Defined in 2 files as a function:
- drivers/net/ethernet/marvell/skge.h, line 2555 (as a function)
- drivers/net/ethernet/marvell/sky2.h, line 2350 (as a function)
Referenced in 2 files:
Smatch caller information:
drivers/net/ethernet/marvell/skge.c __gm_phy_read() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 128 |
| DATA_SOURCE | 0 | hw | $0 |
| DATA_SOURCE | 1 | port | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | 0 | &hw->phy_lock |
drivers/net/ethernet/marvell/skge.c __gm_phy_read() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 132 |
| DATA_SOURCE | 0 | hw | $0 |
| DATA_SOURCE | 1 | port | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | 0 | &hw->phy_lock |
drivers/net/ethernet/marvell/skge.c gm_phy_write() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 128 |
| BUF_SIZE | 0 | hw | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | hw | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | hw->pdev | (-1),1-s32max |
| DATA_SOURCE | 0 | hw | $0 |
| DATA_SOURCE | 1 | port | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | hw->chip_id | 176-178 |
| HOST_DATA | 0 | hw->chip_rev | 0-15[c] |
| HOST_DATA | 0 | hw->copper | 0[c] |
| HOST_DATA | 0 | hw->pdev->current_state | 0-3[c] |
| HOST_DATA | 0 | hw->phy_type | 0-15 |
| HOST_DATA | 0 | hw->ram_size | 4096-1044480 |
| UNITS | 0 | hw | unit_byte |
| HALF_LOCKED2 | &hw->phy_lock | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | 0 | &hw->phy_lock |
drivers/net/ethernet/marvell/skge.c skge_set_mac_address() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 4 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | bh | ||
| LOCK2 | 0 | &hw->phy_lock | |
| HALF_LOCKED2 | global &dev_addr_sem | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct skge_hw)->phy_lock |
drivers/net/ethernet/marvell/skge.c yukon_link_down() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 4 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &hw->phy_lock | ||
| HALF_LOCKED2 | bh | ||
| TYPE_LOCK | (struct skge_hw)->phy_lock |
drivers/net/ethernet/marvell/skge.c yukon_link_up() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 4 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &hw->phy_lock | ||
| HALF_LOCKED2 | bh | ||
| TYPE_LOCK | (struct skge_hw)->phy_lock |
drivers/net/ethernet/marvell/skge.c yukon_mac_init() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 4 |
| DATA_SOURCE | 0 | hw | $0 |
| DATA_SOURCE | 1 | port | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | bh | ||
| LOCK2 | 0 | &hw->phy_lock | |
| HALF_LOCKED2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct skge_hw)->phy_lock |
drivers/net/ethernet/marvell/skge.c yukon_mac_init() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 136 |
| DATA_SOURCE | 0 | hw | $0 |
| DATA_SOURCE | 1 | port | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | bh | ||
| LOCK2 | 0 | &hw->phy_lock | |
| HALF_LOCKED2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct skge_hw)->phy_lock |
drivers/net/ethernet/marvell/skge.c yukon_mac_init() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 256-600 |
| DATA_SOURCE | 0 | hw | $0 |
| DATA_SOURCE | 1 | port | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | bh | ||
| LOCK2 | 0 | &hw->phy_lock | |
| HALF_LOCKED2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct skge_hw)->phy_lock |
drivers/net/ethernet/marvell/skge.c yukon_reset() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 12 |
| BUF_SIZE | 0 | hw | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | hw | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | hw->pdev | (-1),16,24,40,56,108-1096,1384,1600,1616,1752,2072,2576,7472,8064 |
| DATA_SOURCE | 0 | hw | $0 |
| DATA_SOURCE | 1 | port | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | hw->chip_id | 176-178 |
| HOST_DATA | 0 | hw->chip_rev | 0-15[c] |
| HOST_DATA | 0 | hw->copper | 0[c] |
| HOST_DATA | 0 | hw->pdev->current_state | 0-3[c] |
| HOST_DATA | 0 | hw->phy_type | 0-15 |
| HOST_DATA | 0 | hw->ram_size | 4096-1044480 |
| UNITS | 0 | hw | unit_byte |
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | 0 | &hw->phy_lock |
drivers/net/ethernet/marvell/skge.c yukon_set_multicast() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | reg | 12 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->addr_list_lock | ||
| HALF_LOCKED2 | &dev->ethtool->rss_lock | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/marvell/skge.c yukon_stop() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &rdev->wiphy.mtx | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/marvell/skge.c yukon_stop() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &rdev->wiphy.mtx | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/marvell/sky2.c __gm_phy_read() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 128 |
| DATA_SOURCE | 0 | hw | $0 |
| DATA_SOURCE | 1 | port | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | hw | unit_byte |
| HALF_LOCKED2 | &sky2->phy_lock | ||
| HALF_LOCKED2 | bh |
drivers/net/ethernet/marvell/sky2.c __gm_phy_read() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 132 |
| DATA_SOURCE | 0 | hw | $0 |
| DATA_SOURCE | 1 | port | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | hw | unit_byte |
| HALF_LOCKED2 | &sky2->phy_lock | ||
| HALF_LOCKED2 | bh |
drivers/net/ethernet/marvell/sky2.c gm_phy_write() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 128 |
| DATA_SOURCE | 0 | hw | $0 |
| DATA_SOURCE | 1 | port | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | hw | unit_byte |
| HALF_LOCKED2 | &sky2->phy_lock | ||
| HALF_LOCKED2 | bh |
drivers/net/ethernet/marvell/sky2.c sky2_change_mtu() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 4 |
| CAPPED_DATA | 0 | hw->napi.timer.base | 1 |
| PARAM_COMPARE | 0 | &hw->napi.timer | != $0->napi.timer.base->running |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | hw | unit_byte |
drivers/net/ethernet/marvell/sky2.c sky2_enable_rx_tx() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 4 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | hw | unit_byte |
| HALF_LOCKED2 | &sky2->phy_lock | ||
| HALF_LOCKED2 | bh |
drivers/net/ethernet/marvell/sky2.c sky2_gmac_reset() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 1 | port | 0-254 |
| PARAM_VALUE | 2 | reg | 12 |
| BUF_SIZE | 0 | hw | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | hw | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | hw->pdev | (-1),16,24,40,56,108-1096,1384,1600,1616,1752,2072,2576,7472,8064 |
| BUF_SIZE | 0 | hw->st_le | (-1)-s32max |
| CAPPED_DATA | 0 | hw->ports | 1 |
| CAPPED_DATA | 1 | port | 1 |
| DATA_SOURCE | 0 | hw | $0 |
| DATA_SOURCE | 1 | port | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | hw->chip_id | 179-180,182-184,186 |
| HOST_DATA | 0 | hw->pdev->current_state | 0-3[c] |
| UNITS | 0 | hw | unit_byte |
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/marvell/sky2.c sky2_hw_down() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | hw | unit_byte |
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/marvell/sky2.c sky2_link_down() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 4 |
| PREEMPT_ADD | |||
| UNITS | 0 | hw | unit_byte |
| LOCK2 | &sky2->phy_lock | ||
| TYPE_LOCK | (struct sky2_port)->phy_lock |
drivers/net/ethernet/marvell/sky2.c sky2_mac_init() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 136 |
| DATA_SOURCE | 0 | hw | $0 |
| DATA_SOURCE | 1 | port | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | hw | unit_byte |
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/marvell/sky2.c sky2_mac_init() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 256,260-604 |
| DATA_SOURCE | 0 | hw | $0 |
| DATA_SOURCE | 1 | port | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | hw | unit_byte |
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/marvell/sky2.c sky2_mac_intr() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 1 | port | 0-1 |
| PARAM_VALUE | 2 | reg | 72 |
| DATA_SOURCE | 0 | hw | $0 |
| DATA_SOURCE | 1 | port | $1 |
| HARD_MAX | 1 | port | 1 |
| NOCHECK_CALL |
drivers/net/ethernet/marvell/sky2.c sky2_mac_intr() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw | 4096-ptr_max |
| PARAM_VALUE | 1 | port | 0-1 |
| PARAM_VALUE | 2 | reg | 68 |
| DATA_SOURCE | 0 | hw | $0 |
| DATA_SOURCE | 1 | port | $1 |
| HARD_MAX | 1 | port | 1 |
| NOCHECK_CALL |
drivers/net/ethernet/marvell/sky2.c sky2_set_ipg() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | reg | 24 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | hw | unit_byte |
| HALF_LOCKED2 | &sky2->phy_lock | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |
drivers/net/ethernet/marvell/sky2.c sky2_set_multicast() -> gma_read16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | reg | 12 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | hw | unit_byte |
| HALF_LOCKED2 | &dev->addr_list_lock | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | global &rtnl_mutex |