Searched hist:e6e49e43 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/net/ipa/ |
H A D | ipa_mem.c | e6e49e43 Wed Mar 24 08:15:26 CDT 2021 Alex Elder <elder@linaro.org> net: ipa: limit local processing context address
Not all of the bits of the LOCAL_PKT_PROC_CNTXT register are valid. Until IPA v4.5, there are 17 valid bits (though the bottom three must be zero). Starting with IPA v4.5, 18 bits are valid.
Introduce proc_cntxt_base_addr_encoded() to encode the base address for use in the register using only the valid bits.
Shorten the name of the register (omit "_BASE") to avoid the need to wrap the line in the one place it's used.
Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | ipa_reg.h | e6e49e43 Wed Mar 24 08:15:26 CDT 2021 Alex Elder <elder@linaro.org> net: ipa: limit local processing context address
Not all of the bits of the LOCAL_PKT_PROC_CNTXT register are valid. Until IPA v4.5, there are 17 valid bits (though the bottom three must be zero). Starting with IPA v4.5, 18 bits are valid.
Introduce proc_cntxt_base_addr_encoded() to encode the base address for use in the register using only the valid bits.
Shorten the name of the register (omit "_BASE") to avoid the need to wrap the line in the one place it's used.
Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|