• Alex Elder's avatar
    net: ipa: introduce ipa_mem_find() · 5e3bc1e5
    Alex Elder authored
    Introduce a new function that abstracts finding information about a
    region in IPA-local memory, given its memory region ID.  For now it
    simply uses the region ID as an index into the IPA memory array.
    If the region is not defined, ipa_mem_find() returns a null pointer.
    
    Update all code that accesses the ipa->mem[] array directly to use
    ipa_mem_find() instead.  The return value must be checked for null
    when optional memory regions are sought.
    Signed-off-by: default avatarAlex Elder <elder@linaro.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    5e3bc1e5
ipa_mem.h 3.88 KB