Defined in 2 files as a function:
- drivers/net/ethernet/sun/sungem.c, line 146 (as a function)
- drivers/net/sungem_phy.c, line 52 (as a function)
Referenced in 2 files:
Smatch caller information:
drivers/net/ethernet/sun/sungem.c _sungem_phy_write() -> __sungem_phy_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | reg | 0,4,9,11,21,23-24,26-31 |
| DATA_SOURCE | 1 | phy_addr | $1 |
| DATA_SOURCE | 2 | reg | $2 |
| HARD_MAX | 2 | reg | 31 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 3 | val | 256,64927[c] |
drivers/net/ethernet/sun/sungem.c gem_ioctl() -> __sungem_phy_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | phy_addr | 0-31 |
| PARAM_VALUE | 2 | reg | 0-31 |
| NOCHECK_CALL |
drivers/net/ethernet/sun/sungem.c sungem_phy_write() -> __sungem_phy_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gp | 4096-ptr_max |
| PARAM_VALUE | 0 | gp->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | gp->mac_rx_cfg | 12,36 |
| PARAM_VALUE | 0 | gp->napi.dev | 4096-ptr_max |
| PARAM_VALUE | 0 | gp->napi.dev->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | gp->napi.dev->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | gp->napi.dev->lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | gp->napi.dev->lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | gp->napi.dev->lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | gp->napi.dev->lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | gp->napi.dev->lock.first_waiter->task->blocked_lock.raw_lock.val.counter | 0-s32max |
| PARAM_VALUE | 0 | gp->napi.dev->lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | gp->napi.napi_hash_node.pprev | 4096-ptr_max |
| PARAM_VALUE | 0 | gp->pdev | 4096-ptr_max |
| PARAM_VALUE | 0 | gp->pdev->error_state | 0-2,4-u32max |
| PARAM_VALUE | 0 | gp->pdev->irq | 0 |
| PARAM_VALUE | 0 | gp->pdev->is_busmaster | 1 |
| PARAM_VALUE | 0 | gp->pdev->pcie_cap | 0-1 |
| PARAM_VALUE | 0 | gp->pdev->vendor | 4203 |
| PARAM_VALUE | 0 | gp->rx_buf_sz | s32min-(-1),1518-s32max |
| PARAM_VALUE | 0 | gp->rx_new | 0 |
| PARAM_VALUE | 0 | gp->rx_old | 0 |
| PARAM_VALUE | 0 | gp->tx_new | 0 |
| PARAM_VALUE | 0 | gp->tx_old | 0 |
| PARAM_VALUE | 0 | *gp->dev->name | 0 |
| PARAM_VALUE | 0 | *gp->rx_skbs | 0 |
| PARAM_VALUE | 0 | *gp->tx_skbs | 0 |
| PARAM_VALUE | 2 | reg | 0 |
| PARAM_VALUE | 3 | val | 32768 |
| DATA_SOURCE | 0 | gp | $0 |
| DATA_SOURCE | 2 | reg | $1 |
| DATA_SOURCE | 3 | val | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/sungem_phy.c bcm5400_init() -> __sungem_phy_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gp | 4096-ptr_max |
| PARAM_VALUE | 0 | gp->def | 4096-ptr_max |
| PARAM_VALUE | 0 | gp->mdio_read | 4096-ptr_max |
| PARAM_VALUE | 0 | gp->mdio_write | 4096-ptr_max |
| PARAM_VALUE | 1 | phy_addr | 31 |
| PARAM_VALUE | 2 | reg | 30 |
| PARAM_VALUE | 3 | val | 2,u16max |
| DATA_SOURCE | 0 | gp | $0 |
| BIT_INFO | 3 | val | 0x2,0xffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/sungem_phy.c bcm5401_init() -> __sungem_phy_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gp | 4096-ptr_max |
| PARAM_VALUE | 0 | gp->def | 4096-ptr_max |
| PARAM_VALUE | 0 | gp->mdio_read | 4096-ptr_max |
| PARAM_VALUE | 0 | gp->mdio_write | 4096-ptr_max |
| PARAM_VALUE | 1 | phy_addr | 31 |
| PARAM_VALUE | 2 | reg | 30 |
| PARAM_VALUE | 3 | val | 2,u16max |
| DATA_SOURCE | 0 | gp | $0 |
| BIT_INFO | 3 | val | 0x2,0xffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/sungem_phy.c reset_one_mii_phy() -> __sungem_phy_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gp | 4096-ptr_max |
| PARAM_VALUE | 0 | gp->mdio_read | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 0 |
| PARAM_VALUE | 3 | val | 32768,62463 |
| DATA_SOURCE | 0 | gp | $0 |
| DATA_SOURCE | 1 | phy_addr | $1 |
| BIT_INFO | 3 | val | 0x8000,0xf3ff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/sungem_phy.c reset_one_mii_phy() -> __sungem_phy_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gp | 4096-ptr_max |
| PARAM_VALUE | 0 | gp->mdio_read | 4096-ptr_max |
| PARAM_VALUE | 0 | gp->mdio_write | 4096-ptr_max |
| PARAM_VALUE | 2 | reg | 0 |
| PARAM_VALUE | 3 | val | 32768,62463,64511 |
| DATA_SOURCE | 0 | gp | $0 |
| DATA_SOURCE | 1 | phy_addr | $1 |
| BIT_INFO | 3 | val | 0x0,0xfbff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &rtnl_mutex |