Defined in 2 files as a function:
- drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c, line 426 (as a function)
- drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c, line 2498 (as a function)
Referenced in 2 files:
Smatch caller information:
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_check_mode() -> xgbe_phy_get_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pdata | 4096-ptr_max |
| PARAM_VALUE | 0 | pdata->phy_data | 4096-ptr_max |
| BUF_SIZE | 0 | pdata->an_workqueue | (-1),512,528-8720 |
| BUF_SIZE | 0 | pdata->dev_workqueue | (-1),512,528-8720 |
| DATA_SOURCE | 0 | pdata | $0 |
| STR_LEN | 0 | pdata->an_name | (-1),46 |
| STR_LEN | 0 | pdata->ecc_name | (-1),46 |
| STR_LEN | 0 | pdata->i2c_name | (-1),46 |
| BIT_INFO | 0 | pdata->msg_enable | 0x0,0xffffffff |
| NOSPEC | 0 | pdata->channel_count | |
| NOSPEC | 0 | pdata->rx_ring_count | |
| NOSPEC | 0 | pdata->tx_q_count | |
| NOSPEC | 0 | pdata->tx_ring_count | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | pdata->channel_count | 1-s32max[c] |
| USER_DATA | 0 | pdata->netdev->num_tc | 2-16[c] |
| USER_DATA | 0 | pdata->new_tx_ring_count | 0[c] |
| USER_DATA | 0 | pdata->phy.autoneg | 0 |
| USER_DATA | 0 | pdata->phy.duplex | 0-255 |
| USER_DATA | 0 | pdata->phy.pause_autoneg | s32min-s32max |
| USER_DATA | 0 | pdata->phy.rx_pause | s32min-s32max |
| USER_DATA | 0 | pdata->phy.speed | s32min-s32max |
| USER_DATA | 0 | pdata->phy.tx_pause | s32min-s32max |
| USER_DATA | 0 | pdata->rx_ring_count | 1-4294967294[c] |
| USER_DATA | 0 | pdata->tx_q_count | 1-u32max[c] |
| USER_DATA | 0 | pdata->tx_ring_count | 1-u32max[c] |
| USER_DATA | 1 | speed | s32min-s32max |
| NO_OVERFLOW_SIMPLE | 0 | pdata->num_tcs | |
| HALF_LOCKED2 | 0 | &pdata->an_mutex |
drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c xgbe_phy_check_mode() -> xgbe_phy_get_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pdata | 4096-ptr_max |
| BUF_SIZE | 0 | pdata->an_workqueue | (-1),512,528-8720 |
| BUF_SIZE | 0 | pdata->dev_workqueue | (-1),512,528-8720 |
| DATA_SOURCE | 0 | pdata | $0 |
| STR_LEN | 0 | pdata->an_name | (-1),46 |
| STR_LEN | 0 | pdata->ecc_name | (-1),46 |
| STR_LEN | 0 | pdata->i2c_name | (-1),46 |
| BIT_INFO | 0 | pdata->msg_enable | 0x0,0xffffffff |
| NOSPEC | 0 | pdata->channel_count | |
| NOSPEC | 0 | pdata->tx_q_count | |
| NOSPEC | 0 | pdata->tx_ring_count | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | pdata->channel_count | 1-s32max[c] |
| USER_DATA | 0 | pdata->netdev->num_tc | 2-16[c] |
| USER_DATA | 0 | pdata->new_tx_ring_count | 0[c] |
| USER_DATA | 0 | pdata->phy.autoneg | 0 |
| USER_DATA | 0 | pdata->phy.duplex | 0-255 |
| USER_DATA | 0 | pdata->phy.pause_autoneg | s32min-s32max |
| USER_DATA | 0 | pdata->phy.rx_pause | s32min-s32max |
| USER_DATA | 0 | pdata->phy.speed | s32min-s32max |
| USER_DATA | 0 | pdata->phy.tx_pause | s32min-s32max |
| USER_DATA | 0 | pdata->rx_buf_size | 1536-4096[c] |
| USER_DATA | 0 | pdata->tx_q_count | 1-u32max[c] |
| USER_DATA | 0 | pdata->tx_ring_count | 1-u32max[c] |
| USER_DATA | 1 | speed | s32min-s32max |
| NO_OVERFLOW_SIMPLE | 0 | pdata->napi.thread->dl.pi_se->dl_runtime | |
| NO_OVERFLOW_SIMPLE | 0 | pdata->num_tcs | |
| HALF_LOCKED2 | 0 | &pdata->an_mutex |
drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_phy_config_fixed() -> (struct xgbe_phy_impl_if)->get_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pdata | 4096-ptr_max |
| PARAM_VALUE | 0 | pdata->an_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | pdata->an_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | pdata->an_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | pdata->an_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | pdata->an_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | pdata->an_mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | pdata->an_mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | pdata->an_start | 0 |
| PARAM_VALUE | 0 | pdata->i2c.op_state.op->cmd | 0-1 |
| PARAM_VALUE | 0 | pdata->i2c.op_state.op->len | 1-3,5,128,256 |
| PARAM_VALUE | 0 | pdata->phy.autoneg | s32min-0,2-s32max |
| PARAM_VALUE | 0 | pdata->phy_data->phy_cdr_delay | 10000-109999 |
| PARAM_VALUE | 0 | pdata->phy_data->phy_cdr_notrack | 0 |
| PARAM_VALUE | 0 | pdata->vdata->ecc_support | 0-1 |
| PARAM_VALUE | 0 | pdata->vdata->enable_rrc | 0-1 |
| PARAM_VALUE | 0 | pdata->vdata->rx_desc_prefetch | 0,5 |
| PARAM_VALUE | 0 | pdata->vdata->tstamp_ptp_clock_freq | 0-1 |
| PARAM_VALUE | 0 | pdata->vdata->tx_desc_prefetch | 0,5 |
| PARAM_VALUE | 0 | pdata->vdata->xpcs_access | 0-2 |
| PARAM_VALUE | 0 | pdata->xpcs_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | *pdata->netdev->name | 0-255 |
| PARAM_VALUE | 0 | *pdata->pfcq | 0-4294967295 |
| PARAM_VALUE | 0 | *pdata->prio2q_map | 0-4294967295 |
| PARAM_VALUE | 0 | *pdata->q2tc_map | 0-4294967295 |
| PARAM_VALUE | 0 | *pdata->rx_rfa | 0-4294967295 |
| PARAM_VALUE | 0 | *pdata->rx_rfd | 0-4294967295 |
| BUF_SIZE | 0 | pdata->an_workqueue | (-1),512,8712 |
| BUF_SIZE | 0 | pdata->dev_workqueue | (-1),512,8712 |
| DATA_SOURCE | 0 | pdata | $0 |
| STR_LEN | 0 | pdata->an_name | (-1),46 |
| STR_LEN | 0 | pdata->ecc_name | (-1),46 |
| STR_LEN | 0 | pdata->i2c_name | (-1),46 |
| CONTAINER | 0 | -72-88-1184+0 | $(-1) |
| CONTAINER | 1 | *(-72-88-1184+112+6296) | $(-1) |
| BIT_INFO | 0 | pdata->msg_enable | 0x0,0xffffffff |
| NOSPEC | 0 | pdata->channel_count | |
| NOSPEC | 0 | pdata->tx_q_count | |
| NOSPEC | 0 | pdata->tx_ring_count | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | pdata->channel_count | 1-s32max[c] |
| USER_DATA | 0 | pdata->netdev->num_tc | 2-16[c] |
| USER_DATA | 0 | pdata->new_tx_ring_count | 0[c] |
| USER_DATA | 0 | pdata->phy.autoneg | 0 |
| USER_DATA | 0 | pdata->phy.duplex | 0-255 |
| USER_DATA | 0 | pdata->phy.pause_autoneg | s32min-s32max |
| USER_DATA | 0 | pdata->phy.rx_pause | s32min-s32max |
| USER_DATA | 0 | pdata->phy.speed | s32min-s32max |
| USER_DATA | 0 | pdata->phy.tx_pause | s32min-s32max |
| USER_DATA | 0 | pdata->rx_buf_size | 1536-4096[c] |
| USER_DATA | 0 | pdata->tx_q_count | 1-u32max[c] |
| USER_DATA | 0 | pdata->tx_ring_count | 1-u32max[c] |
| USER_DATA | 1 | speed | s32min-s32max |
| NO_OVERFLOW_SIMPLE | 0 | pdata->napi.thread->dl.pi_se->dl_runtime | |
| NO_OVERFLOW_SIMPLE | 0 | pdata->num_tcs | |
| LOCK2 | 0 | &pdata->an_mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct xgbe_prv_data)->an_mutex |