Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 35 files:
- arch/arm/mach-mvebu/kirkwood.c, line 95
- arch/powerpc/sysdev/tsi108_dev.c, line 103
- drivers/net/ethernet/aeroflex/greth.c, line 1455
- drivers/net/ethernet/cavium/thunder/thunder_bgx.c, line 1485
- drivers/net/ethernet/cortina/gemini.c, line 2547
- drivers/net/ethernet/davicom/dm9000.c, line 1401
- drivers/net/ethernet/engleder/tsnep_main.c, line 2404
- drivers/net/ethernet/freescale/enetc/enetc_pf_common.c, line 50
- drivers/net/ethernet/freescale/fec_main.c, line 2551
- drivers/net/ethernet/freescale/fman/mac.c, line 226
- drivers/net/ethernet/marvell/mv643xx_eth.c, line 2757
- drivers/net/ethernet/marvell/prestera/prestera_main.c, line 861
- drivers/net/ethernet/microchip/lan743x_main.c, line 3723
- drivers/net/ethernet/microchip/sparx5/sparx5_main.c, line 897
- drivers/net/ethernet/renesas/rtsn.c, line 980
- drivers/net/ethernet/renesas/sh_eth.c, line 3220
- drivers/net/ethernet/spacemit/k1_emac.c, line 1872
- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c, line 430
- drivers/net/ethernet/ti/am65-cpsw-nuss.c, line 2701
- drivers/net/ethernet/ti/cpsw.c, line 1412
- drivers/net/ethernet/ti/cpsw_new.c, line 1343
- drivers/net/ethernet/ti/davinci_emac.c, line 1736
- drivers/net/ethernet/wiznet/w5100-spi.c, line 430
- drivers/net/ethernet/xilinx/ll_temac_main.c, line 1581
- drivers/net/ethernet/xilinx/xilinx_axienet_main.c, line 3057
- drivers/net/ethernet/xscale/ixp4xx_eth.c, line 1484
- drivers/net/wireless/ath/ath9k/init.c, line 649
- drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c, line 131
- drivers/net/wireless/mediatek/mt76/eeprom.c, line 180
- drivers/net/wireless/ralink/rt2x00/rt2x00dev.c, line 995
- drivers/net/wireless/realtek/rtw88/rtw8703b.c, line 529
- drivers/net/wireless/silabs/wfx/main.c, line 447
- net/core/of_net.c
- net/dsa/dsa.c, line 514
- net/ethernet/eth.c, line 489
Smatch caller information:
drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c brcmf_of_probe() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | np | 4096-ptr_max |
| PARAM_VALUE | 0 | np->properties | 0,4096-ptr_max |
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
drivers/net/wireless/realtek/rtw88/rtw8703b.c try_mac_from_devicetree() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | np | 1-u64max |
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
| LOCK2 | &rtwdev->mutex | ||
| TYPE_LOCK | (struct rtw_dev)->mutex |
net/dsa/dsa.c dsa_port_setup() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | np | unit_byte |
| LOCK2 | global &dsa2_mutex |
drivers/net/ethernet/ti/cpsw.c cpsw_probe_dt() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | np | 4096-ptr_max |
| PARAM_VALUE | 0 | np->fwnode.ops->get | 0,4096-ptr_max |
| PARAM_VALUE | 0 | np->properties | 0,4096-ptr_max |
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/ethernet/marvell/mv643xx_eth.c mv643xx_eth_shared_of_add_port() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | np | 4096-ptr_max |
| PARAM_VALUE | 0 | np->fwnode.ops->get | 0,4096-ptr_max |
| PARAM_VALUE | 0 | np->kobj.release->timer->entry.pprev | 4096-ptr_max |
| PARAM_VALUE | 0 | np->properties | 4096-ptr_max |
| PARAM_VALUE | 1 | addr | 0 |
| BUF_SIZE | 1 | addr | 6 |
| DATA_SOURCE | 0 | np | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_probe() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | np | 4096-ptr_max |
| PARAM_VALUE | 0 | np->properties | 4096-ptr_max |
| PARAM_VALUE | 1 | addr | 1942226238610075648 |
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
drivers/net/ethernet/microchip/sparx5/sparx5_main.c mchp_sparx5_probe() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | np | 1-u64max |
| PARAM_VALUE | 1 | addr | 0 |
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
drivers/net/ethernet/cortina/gemini.c gemini_ethernet_port_probe() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr | 1526431714517016576 |
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
net/ethernet/eth.c eth_platform_get_mac_address() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 1 | addr | (-1),6,126 |
| BUF_SIZE | 1 | addr | (-1),6,126 |
| DATA_SOURCE | 1 | addr | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
drivers/net/ethernet/freescale/fman/mac.c mac_probe() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | np | 4096-ptr_max |
| PARAM_VALUE | 0 | np->parent | 1-u64max |
| PARAM_VALUE | 0 | np->properties | 4096-ptr_max |
| PARAM_VALUE | 1 | addr | 0 |
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
net/core/of_net.c of_get_ethdev_address() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | np->fwnode.ops->get | 0,4096-ptr_max |
| PARAM_VALUE | 1 | addr | 1450264552912670720 |
| BUF_SIZE | 1 | addr | 6 |
| DATA_SOURCE | 0 | np | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
drivers/net/ethernet/engleder/tsnep_main.c tsnep_mac_init() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
drivers/net/ethernet/xilinx/ll_temac_main.c temac_probe() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | np | 4096-ptr_max |
| PARAM_VALUE | 0 | np->fwnode.ops->get | 0,4096-ptr_max |
| PARAM_VALUE | 0 | np->properties | 4096-ptr_max |
| PARAM_VALUE | 1 | addr | 7243845867230097408 |
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
drivers/net/ethernet/ti/cpsw_new.c cpsw_probe_dt() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | np | 4096-ptr_max |
| PARAM_VALUE | 0 | np->fwnode.ops->get | 0,4096-ptr_max |
| PARAM_VALUE | 0 | np->properties | 4096-ptr_max |
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/ethernet/davicom/dm9000.c dm9000_parse_dt() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | np | 4096-ptr_max |
| PARAM_VALUE | 0 | np->properties | 0,4096-ptr_max |
| PARAM_VALUE | 1 | addr | 0 |
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
drivers/net/wireless/silabs/wfx/main.c wfx_probe() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
drivers/net/ethernet/renesas/sh_eth.c sh_eth_parse_dt() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | np | 4096-ptr_max |
| PARAM_VALUE | 0 | np->properties | 4096-ptr_max |
| PARAM_VALUE | 1 | addr | 0 |
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | np | unit_byte |
drivers/net/ethernet/marvell/prestera/prestera_main.c prestera_switch_set_base_mac_addr() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | np | 1-u64max |
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
| HALF_LOCKED2 | &pool->lock |
drivers/net/ethernet/renesas/rtsn.c rtsn_parse_mac_address() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr | 116863403066089472 |
| BUF_SIZE | 1 | addr | 6 |
| DATA_SOURCE | 0 | np | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
drivers/net/wireless/mediatek/mt76/eeprom.c mt76_eeprom_override() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
drivers/net/ethernet/microchip/lan743x_main.c lan743x_pcidev_probe() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | np | unit_byte |
drivers/net/ethernet/ti/davinci_emac.c davinci_emac_of_get_pdata() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | np | 1-u64max |
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | np | unit_byte |
drivers/net/ethernet/freescale/fec_main.c fec_get_mac() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | np | 1-u64max |
| PARAM_VALUE | 1 | addr | 1636011711986716672 |
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_init_of_phy() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | np | 4096-ptr_max |
| PARAM_VALUE | 0 | np->fwnode.ops->get | 0,4096-ptr_max |
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/net/ethernet/freescale/enetc/enetc_pf_common.c enetc_setup_mac_address() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | np | 1-u64max |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| BUF_SIZE | 1 | addr | 6 |
| DATA_SOURCE | 0 | np | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
| HALF_LOCKED2 | &pool->lock |
drivers/net/ethernet/wiznet/w5100-spi.c w5100_spi_probe() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr | 9041530455721725952 |
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
drivers/net/ethernet/spacemit/k1_emac.c emac_config_dt() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | np | 4096-ptr_max |
| PARAM_VALUE | 0 | np->properties | 4096-ptr_max |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
drivers/net/wireless/ath/ath9k/init.c ath9k_of_init() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | np | 4096-ptr_max |
| PARAM_VALUE | 0 | np->properties | 0,4096-ptr_max |
| BUF_SIZE | 1 | addr | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
drivers/net/wireless/ralink/rt2x00/rt2x00dev.c rt2x00lib_set_mac_address() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| DATA_SOURCE | 1 | addr | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c stmmac_probe_config_dt() -> of_get_mac_address()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr | 0 |
| BUF_SIZE | 1 | addr | 6 |
| BUF_SIZE | 1 | addr | 6 |
| DATA_SOURCE | 1 | addr | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | np | unit_byte |