zephyr/drivers/ethernet
Tomasz Gorochowik 35b7fde8a6 drivers: eth: gmac: fix screening registers limit check
The j iterator is used for priorities, and the i iterator is used for
choosing the actual screening register. Therefore the screening register
availability needs to be checked with i.

This commit also improves the readability by doing two things:
* by moving the screening register index check to a place where the
  index is going to be actually used
* by using the ARRAY_SIZE macro instead of a hard-coded number as the
  upper limit

Signed-off-by: Tomasz Gorochowik <tgorochowik@antmicro.com>
2019-03-06 11:43:17 -06:00
..
CMakeLists.txt
Kconfig
Kconfig.dw
Kconfig.e1000 kconfig: Use a short consistent prompt style 2019-02-27 09:23:30 +01:00
Kconfig.enc28j60 drivers: eth_enc28j60: fix typo and build for half duplex 2019-03-05 13:38:43 -05:00
Kconfig.mcux eth: eth_mcux: wait in send for the packet to be sent [REVERT ME] 2019-02-21 09:27:47 -05:00
Kconfig.native_posix
Kconfig.sam_gmac drivers: eth: gmac: kconfig: remove unused kconfig symbol 2019-03-01 19:45:54 +01:00
Kconfig.smsc911x
Kconfig.stellaris
Kconfig.stm32_hal
eth_dw.c eth: eth_dw: rename CONFIG_ETH_DW_0_IRQ_SHARED_NAME to DT_* 2019-03-01 09:42:56 -08:00
eth_dw_priv.h
eth_e1000.c
eth_e1000_priv.h
eth_enc28j60.c drivers: eth_enc28j60: fix typo and build for half duplex 2019-03-05 13:38:43 -05:00
eth_enc28j60_priv.h
eth_mcux.c eth: eth_mcux: wait in send for the packet to be sent [REVERT ME] 2019-02-21 09:27:47 -05:00
eth_native_posix.c
eth_native_posix_adapt.c
eth_native_posix_priv.h
eth_sam_gmac.c drivers: eth: gmac: fix screening registers limit check 2019-03-06 11:43:17 -06:00
eth_sam_gmac_priv.h driver: eth: gmac: remove ring_buf usage in the RX path 2019-02-14 22:15:29 -05:00
eth_smsc911x.c drivers/ethernet: Fix net API usage in smsc911x driver 2019-02-21 09:34:30 -05:00
eth_smsc911x_priv.h
eth_stellaris.c drivers: eth: stellaris: Properly ifdef stats handling 2019-03-01 09:44:01 -08:00
eth_stellaris_priv.h
eth_stm32_hal.c
eth_stm32_hal_priv.h
phy_sam_gmac.c
phy_sam_gmac.h