linux/drivers/net/ipa
Alex Elder c61cfb941d net: ipa: don't index mem data array by ID
Finally the code handles the IPA memory region array in the
configuration data without assuming it is indexed by region ID.
Get rid of the array index designators where these arrays are
initialized.  As a result, there's no more need to define an
explicitly undefined memory region ID, so get rid of that.

Change ipa_mem_find() so it no longer assumes the ipa->mem[] array
is indexed by memory region ID.  Instead, have it search the array
for the entry having the requested memory ID, and return the address
of the descriptor if found.  Otherwise return NULL.

Stop allowing memory regions to be defined with zero size and zero
canary value.  Check for this condition in ipa_mem_valid_one().
As a result, it is not necessary to check for this case in
ipa_mem_config().

Finally, there is no need for IPA_MEM_UNDEFINED to be defined any
more, so get rid of it.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-06-10 14:50:08 -07:00
..
gsi_private.h net: ipa: DMA addresses are nicely aligned 2021-03-28 18:12:03 -07:00
gsi_reg.h net: ipa: fix inter-EE IRQ register definitions 2021-05-06 16:32:10 -07:00
gsi_trans.c net: ipa: relax pool entry size requirement 2021-04-09 20:57:24 -07:00
gsi_trans.h net: ipa: fix all kernel-doc warnings 2021-03-28 18:12:03 -07:00
gsi.c net: ipa: fix inter-EE IRQ register definitions 2021-05-06 16:32:10 -07:00
gsi.h net: ipa: increase channels and events 2021-03-24 16:52:47 -07:00
ipa_clock.c net: ipa: use dev_err_probe() in ipa_clock.c 2021-02-12 16:54:17 -08:00
ipa_clock.h net: ipa: define clock and interconnect data 2020-11-20 18:44:59 -08:00
ipa_cmd.c net: ipa: introduce ipa_mem_find() 2021-06-10 14:50:08 -07:00
ipa_cmd.h net: ipa: fix all kernel-doc warnings 2021-03-28 18:12:03 -07:00
ipa_data-v3.5.1.c net: ipa: don't index mem data array by ID 2021-06-10 14:50:08 -07:00
ipa_data-v4.2.c net: ipa: don't index mem data array by ID 2021-06-10 14:50:08 -07:00
ipa_data-v4.5.c net: ipa: don't index mem data array by ID 2021-06-10 14:50:08 -07:00
ipa_data-v4.9.c net: ipa: don't index mem data array by ID 2021-06-10 14:50:08 -07:00
ipa_data-v4.11.c net: ipa: don't index mem data array by ID 2021-06-10 14:50:08 -07:00
ipa_data.h net: ipa: add IPA v4.9 configuration data 2021-04-13 15:02:25 -07:00
ipa_endpoint.c Revert "net: ipa: disable checksum offload for IPA v4.5+" 2021-06-03 15:09:40 -07:00
ipa_endpoint.h net: ipa: three small fixes 2021-04-09 20:57:26 -07:00
ipa_gsi.c net: ipa: include declarations in "ipa_gsi.c" 2020-07-07 12:43:18 -07:00
ipa_gsi.h net: ipa: fix kerneldoc comments 2020-07-13 17:11:53 -07:00
ipa_interrupt.c net: ipa: support IPA interrupt addresses for IPA v4.7 2021-03-25 17:22:30 -07:00
ipa_interrupt.h net: ipa: fix all kernel-doc warnings 2021-03-28 18:12:03 -07:00
ipa_main.c net: ipa: optionally define firmware name via DT 2021-04-16 15:38:32 -07:00
ipa_mem.c net: ipa: don't index mem data array by ID 2021-06-10 14:50:08 -07:00
ipa_mem.h net: ipa: don't index mem data array by ID 2021-06-10 14:50:08 -07:00
ipa_modem.c net: ipa: ipa_stop() does not return an error 2021-04-09 20:57:25 -07:00
ipa_modem.h soc: qcom: ipa: modem and microcontroller 2020-03-08 22:07:10 -07:00
ipa_qmi_msg.c net: ipa: extend the INDICATION_REGISTER request 2021-03-16 11:17:59 -07:00
ipa_qmi_msg.h net: ipa: extend the INDICATION_REGISTER request 2021-03-16 11:17:59 -07:00
ipa_qmi.c net: ipa: introduce ipa_mem_find() 2021-06-10 14:50:08 -07:00
ipa_qmi.h net: ipa: fix all kernel-doc warnings 2021-03-28 18:12:03 -07:00
ipa_reg.c
ipa_reg.h net: ipa: add support for inline checksum offload 2021-06-03 15:09:40 -07:00
ipa_resource.c net: ipa: get rid of empty IPA functions 2021-04-09 20:57:25 -07:00
ipa_resource.h net: ipa: get rid of empty IPA functions 2021-04-09 20:57:25 -07:00
ipa_smp2p.c soc: qcom: ipa: Remove superfluous error message around platform_get_irq() 2021-06-10 14:10:23 -07:00
ipa_smp2p.h net: ipa: fix all kernel-doc warnings 2021-03-28 18:12:03 -07:00
ipa_table.c net: ipa: introduce ipa_mem_find() 2021-06-10 14:50:08 -07:00
ipa_table.h net: ipa: get rid of empty IPA functions 2021-04-09 20:57:25 -07:00
ipa_uc.c net: ipa: introduce ipa_mem_find() 2021-06-10 14:50:08 -07:00
ipa_uc.h soc: qcom: ipa: modem and microcontroller 2020-03-08 22:07:10 -07:00
ipa_version.h net: ipa: update version definitions 2021-03-24 16:52:47 -07:00
ipa.h net: ipa: memory region array is variable size 2021-05-11 16:22:37 -07:00
Kconfig net: ipa: switch to version based configuration 2021-03-28 18:12:03 -07:00
Makefile net: ipa: add IPA v4.9 configuration data 2021-04-13 15:02:25 -07:00