Defined in 2 files as a function:
- drivers/net/ethernet/sfc/nic_common.h, line 27 (as a function)
- drivers/net/ethernet/sfc/siena/nic_common.h, line 27 (as a function)
Referenced in 12 files:
- drivers/net/ethernet/sfc/efx.c, line 798
- drivers/net/ethernet/sfc/efx_common.c
- drivers/net/ethernet/sfc/mcdi_port_common.c, line 1170
- drivers/net/ethernet/sfc/siena/efx.c, line 718
- drivers/net/ethernet/sfc/siena/efx_common.c
- drivers/net/ethernet/sfc/siena/mcdi_port_common.c, line 1177
- drivers/net/ethernet/sfc/siena/ptp.c, line 1453
- drivers/net/ethernet/sfc/siena/tx.c, line 369
- drivers/net/ethernet/sfc/siena/tx_common.c, line 410
- drivers/net/ethernet/sfc/siena/workarounds.h
- drivers/net/ethernet/sfc/tx_common.c, line 450
- drivers/net/ethernet/sfc/workarounds.h
Smatch caller information:
drivers/net/ethernet/sfc/siena/efx_common.c efx_siena_reset() -> efx_nic_rev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | efx | 4096-ptr_max |
| BUF_SIZE | 0 | efx | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | efx | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | efx->net_dev->num_tx_queues | 1 |
| DATA_SOURCE | 0 | efx | $0 |
| BIT_INFO | 0 | efx->msg_enable | 0x0,0xffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | efx | unit_byte |
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/sfc/siena/efx_common.c efx_siena_reset() -> efx_nic_rev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | efx | 4096-ptr_max |
| PARAM_VALUE | 0 | efx->type | 4096-ptr_max |
| PARAM_VALUE | 0 | efx->type->revision | 3-6 |
| BUF_SIZE | 0 | efx | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | efx | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | efx->net_dev->num_tx_queues | 1 |
| DATA_SOURCE | 0 | efx | $0 |
| BIT_INFO | 0 | efx->msg_enable | 0x0,0xffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | efx->pci_dev->current_state | 0-3[c] |
| HOST_DATA | 0 | efx->pci_dev->sriov->offset | 0 |
| HOST_DATA | 0 | efx->pci_dev->sriov->stride | 0 |
| NO_OVERFLOW_SIMPLE | 0 | efx->num_mac_stats | |
| UNITS | 0 | efx | unit_byte |
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | 0 | &efx->filter_sem | |
| HALF_LOCKED2 | 0 | &efx->mac_lock |
drivers/net/ethernet/sfc/efx.c efx_register_netdev() -> efx_nic_rev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | efx | 4096-ptr_max |
| PARAM_VALUE | 0 | efx->type | 4096-ptr_max |
| PARAM_VALUE | 0 | efx->type->revision | 3-6 |
| BUF_SIZE | 0 | efx | 5888 |
| CAPPED_DATA | 0 | efx | 1 |
| CAPPED_DATA | 0 | efx->net_dev->num_tx_queues | 1 |
| DATA_SOURCE | 0 | efx | $0 |
| CONSTRAINT | 0 | efx | <=3121 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | efx->pci_dev->acs_capabilities | 0-u16max |
| HOST_DATA | 0 | efx->pci_dev->bus->bridge_ctl | 0-u16max |
| HOST_DATA | 0 | efx->pci_dev->class | 0-16777215 |
| HOST_DATA | 0 | efx->pci_dev->current_state | 0-3[c] |
| HOST_DATA | 0 | efx->pci_dev->devcap | 0-u32max |
| HOST_DATA | 0 | efx->pci_dev->devfn | 0-503[c] |
| HOST_DATA | 0 | efx->pci_dev->device | 0-u16max |
| HOST_DATA | 0 | efx->pci_dev->eetlp_prefix_max | 0-7[c] |
| HOST_DATA | 0 | efx->pci_dev->fm_enabled | 0-1[c] |
| HOST_DATA | 0 | efx->pci_dev->hdr_type | 0-255[c] |
| HOST_DATA | 0 | efx->pci_dev->ide_cfg | 0-1[c] |
| HOST_DATA | 0 | efx->pci_dev->ide_tee_limit | 0-1[c] |
| HOST_DATA | 0 | efx->pci_dev->irq | 0-255 |
| HOST_DATA | 0 | efx->pci_dev->is_cxl | 0-1 |
| HOST_DATA | 0 | efx->pci_dev->multifunction | 0-1[c] |
| HOST_DATA | 0 | efx->pci_dev->nr_ide_mem | 0-255[c] |
| HOST_DATA | 0 | efx->pci_dev->pcie_flags_reg | 0-u16max |
| HOST_DATA | 0 | efx->pci_dev->pcie_mpss | 0-7[c] |
| HOST_DATA | 0 | efx->pci_dev->pin | 0 |
| HOST_DATA | 0 | efx->pci_dev->pme_support | 0-31[c] |
| HOST_DATA | 0 | efx->pci_dev->ptm_granularity | 0-255[c] |
| HOST_DATA | 0 | efx->pci_dev->revision | 0-255 |
| HOST_DATA | 0 | efx->pci_dev->subsystem_device | 0-u16max |
| HOST_DATA | 0 | efx->pci_dev->subsystem_vendor | 0-u16max |
| HOST_DATA | 0 | efx->pci_dev->supported_speeds | 0,2-254[c] |
| HOST_DATA | 0 | efx->pci_dev->transparent | 0[c] |
| HOST_DATA | 0 | efx->pci_dev->vendor | 0-u16max |
| HOST_DATA | 0 | efx->rss_spread | 1[c] |
| NO_OVERFLOW_SIMPLE | 0 | efx->ptp_data->pps_workwq->rescuer->task->dl.pi_se->dl_runtime | |
| NO_OVERFLOW_SIMPLE | 0 | efx->ptp_data->workwq->rescuer->task->dl.pi_se->dl_runtime | |
| NO_OVERFLOW_SIMPLE | 0 | efx->vf_count | |
| NO_OVERFLOW_SIMPLE | 0 | efx->vf_init_count | |
| HALF_LOCKED2 | &pool->lock |
drivers/net/ethernet/sfc/siena/tx_common.c efx_siena_tx_max_skb_descs() -> efx_nic_rev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | efx | 4096-ptr_max |
| PARAM_VALUE | 0 | efx->type | 4096-ptr_max |
| PARAM_VALUE | 0 | efx->type->revision | 3-6 |
| BUF_SIZE | 0 | efx | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | efx | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | efx | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | efx->legacy_irq | 0-255 |
| HOST_DATA | 0 | efx->pci_dev->current_state | 0-3[c] |
| HOST_DATA | 0 | efx->pci_dev->devfn | 0-503[c] |
| HOST_DATA | 0 | efx->rss_spread | 1[c] |
| UNITS | 0 | efx | unit_byte |
drivers/net/ethernet/sfc/siena/mcdi_port_common.c efx_mcdi_mac_stats() -> efx_nic_rev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | efx | 4096-ptr_max |
| PARAM_VALUE | 0 | efx->type | 4096-ptr_max |
| PARAM_VALUE | 0 | efx->type->revision | 3-6 |
| BUF_SIZE | 0 | efx | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | efx | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | efx | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | efx->pci_dev->current_state | 0-3[c] |
| NO_OVERFLOW_SIMPLE | 0 | efx->num_mac_stats | |
| NO_OVERFLOW_SIMPLE | 0 | efx->xdp_tx_queue_count | |
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/sfc/siena/efx_channels.c efx_allocate_msix_channels() -> efx_nic_rev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | efx | 4096-ptr_max |
| PARAM_VALUE | 0 | efx->type | 4096-ptr_max |
| CAPPED_DATA | 0 | efx->pci_dev | 1 |
| CAPPED_DATA | 0 | efx->rps_hash_table | 1 |
| DATA_SOURCE | 0 | efx | $0 |
| BIT_INFO | 0 | efx->msg_enable | 0x0,0xffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | efx->pci_dev->current_state | 0-3[c] |
| HOST_DATA | 0 | efx->pci_dev->devfn | 0-503[c] |
| HOST_DATA | 0 | efx->rss_spread | 1[c] |
| NO_OVERFLOW_SIMPLE | 0 | efx->stats_buffer.len |
drivers/net/ethernet/sfc/siena/ptp.c efx_ptp_probe() -> efx_nic_rev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | efx | 4096-ptr_max |
| BUF_SIZE | 0 | efx->ptp_data | 1840 |
| DATA_SOURCE | 0 | efx | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/ethernet/sfc/efx_common.c efx_reset() -> efx_nic_rev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | efx | 4096-ptr_max |
| BUF_SIZE | 0 | efx | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | efx | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | efx->net_dev->num_tx_queues | 1 |
| DATA_SOURCE | 0 | efx | $0 |
| BIT_INFO | 0 | efx->msg_enable | 0x0,0xffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | efx | unit_byte |
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/sfc/efx_common.c efx_reset() -> efx_nic_rev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | efx | 4096-ptr_max |
| PARAM_VALUE | 0 | efx->type | 4096-ptr_max |
| PARAM_VALUE | 0 | efx->type->revision | 3-6 |
| BUF_SIZE | 0 | efx | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | efx | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | efx->net_dev->num_tx_queues | 1 |
| DATA_SOURCE | 0 | efx | $0 |
| BIT_INFO | 0 | efx->msg_enable | 0x0,0xffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | efx->pci_dev->current_state | 0-3[c] |
| HOST_DATA | 0 | efx->pci_dev->sriov->offset | 0 |
| HOST_DATA | 0 | efx->pci_dev->sriov->stride | 0 |
| NO_OVERFLOW_SIMPLE | 0 | efx->num_mac_stats | |
| UNITS | 0 | efx | unit_byte |
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | 0 | &efx->filter_sem | |
| HALF_LOCKED2 | 0 | &efx->mac_lock | |
| HALF_LOCKED2 | 0 | &efx->net_dev->ethtool->rss_lock |
drivers/net/ethernet/sfc/mcdi_port_common.c efx_mcdi_mac_stats() -> efx_nic_rev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | efx | 4096-ptr_max |
| PARAM_VALUE | 0 | efx->type | 4096-ptr_max |
| PARAM_VALUE | 0 | efx->type->revision | 3-6 |
| BUF_SIZE | 0 | efx | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | efx | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | efx | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | efx->pci_dev->current_state | 0-3[c] |
| NO_OVERFLOW_SIMPLE | 0 | efx->num_mac_stats | |
| NO_OVERFLOW_SIMPLE | 0 | efx->xdp_tx_queue_count | |
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/sfc/siena/tx.c efx_siena_setup_tc() -> efx_nic_rev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/sfc/siena/ethtool.c efx_ethtool_get_ringparam() -> efx_nic_rev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/ethernet/sfc/siena/ethtool.c efx_ethtool_set_ringparam() -> efx_nic_rev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/ethernet/sfc/tx_common.c efx_tx_max_skb_descs() -> efx_nic_rev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | efx->type->revision | 3-6 |
| BUF_SIZE | 0 | efx | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | efx | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | efx | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | efx->legacy_irq | 0-255 |
| HOST_DATA | 0 | efx->pci_dev->current_state | 0-3[c] |
| HOST_DATA | 0 | efx->pci_dev->devfn | 0-503[c] |
| HOST_DATA | 0 | efx->rss_spread | 1[c] |
| NO_OVERFLOW_SIMPLE | 0 | efx->xdp_tx_queue_count | |
| UNITS | 0 | efx | unit_byte |
drivers/net/ethernet/sfc/efx_channels.c efx_allocate_msix_channels() -> efx_nic_rev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | efx | 4096-ptr_max |
| PARAM_VALUE | 0 | efx->type | 4096-ptr_max |
| BUF_SIZE | 0 | efx | (-1),5888 |
| BUF_SIZE | 0 | efx | (-1),5888 |
| DATA_SOURCE | 0 | efx | $0 |
| BIT_INFO | 0 | efx->msg_enable | 0x0,0xffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | efx->pci_dev->current_state | 0-3[c] |
| HOST_DATA | 0 | efx->pci_dev->devfn | 0-503[c] |
| HOST_DATA | 0 | efx->rss_spread | 1[c] |
| NO_OVERFLOW_SIMPLE | 0 | efx->stats_buffer.len |
drivers/net/ethernet/sfc/ethtool.c efx_ethtool_get_ringparam() -> efx_nic_rev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | efx | 4096-ptr_max |
| BUF_SIZE | 0 | efx | 5888 |
| DATA_SOURCE | 0 | efx | r efx_netdev_priv |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/ethernet/sfc/ethtool.c efx_ethtool_set_ringparam() -> efx_nic_rev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | efx | 4096-ptr_max |
| BUF_SIZE | 0 | efx | 5888 |
| DATA_SOURCE | 0 | efx | r efx_netdev_priv |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/ethernet/sfc/siena/farch.c efx_farch_init_common() -> efx_nic_rev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | efx | 4096-ptr_max |
| PARAM_VALUE | 0 | efx->type | 4096-ptr_max |
| PARAM_VALUE | 0 | efx->type->revision | 3-6 |
| BUF_SIZE | 0 | efx | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | efx | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | efx->pci_dev->dev.cma_area->nranges | 1 |
| DATA_SOURCE | 0 | efx | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | efx->pci_dev->acs_capabilities | 0-u16max |
| HOST_DATA | 0 | efx->pci_dev->class | 0-16777215 |
| HOST_DATA | 0 | efx->pci_dev->current_state | 0-3[c] |
| HOST_DATA | 0 | efx->pci_dev->devcap | 0-u32max |
| HOST_DATA | 0 | efx->pci_dev->device | 0-u16max |
| HOST_DATA | 0 | efx->pci_dev->eetlp_prefix_max | 0-7[c] |
| HOST_DATA | 0 | efx->pci_dev->fm_enabled | 0-1[c] |
| HOST_DATA | 0 | efx->pci_dev->hdr_type | 0-255[c] |
| HOST_DATA | 0 | efx->pci_dev->ide_cfg | 0-1[c] |
| HOST_DATA | 0 | efx->pci_dev->ide_tee_limit | 0-1[c] |
| HOST_DATA | 0 | efx->pci_dev->irq | 0-255 |
| HOST_DATA | 0 | efx->pci_dev->is_cxl | 0-1 |
| HOST_DATA | 0 | efx->pci_dev->multifunction | 0-1[c] |
| HOST_DATA | 0 | efx->pci_dev->nr_ide_mem | 0-255[c] |
| HOST_DATA | 0 | efx->pci_dev->pcie_flags_reg | 0-u16max |
| HOST_DATA | 0 | efx->pci_dev->pcie_mpss | 0-7[c] |
| HOST_DATA | 0 | efx->pci_dev->pin | 0 |
| HOST_DATA | 0 | efx->pci_dev->pme_support | 0-31[c] |
| HOST_DATA | 0 | efx->pci_dev->ptm_granularity | 0-255[c] |
| HOST_DATA | 0 | efx->pci_dev->revision | 0-255 |
| HOST_DATA | 0 | efx->pci_dev->subsystem_device | 0-u16max |
| HOST_DATA | 0 | efx->pci_dev->subsystem_vendor | 0-u16max |
| HOST_DATA | 0 | efx->pci_dev->supported_speeds | 0,2-254[c] |
| HOST_DATA | 0 | efx->pci_dev->transparent | 0[c] |
| HOST_DATA | 0 | efx->pci_dev->vendor | 0-u16max |
| HALF_LOCKED2 | 0 | &efx->filter_sem | |
| HALF_LOCKED2 | 0 | &efx->mac_lock | |
| HALF_LOCKED2 | 0 | &efx->net_dev->ethtool->rss_lock |
drivers/net/ethernet/sfc/siena/efx.c efx_register_netdev() -> efx_nic_rev()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | efx | 4096-ptr_max |
| PARAM_VALUE | 0 | efx->type | 4096-ptr_max |
| PARAM_VALUE | 0 | efx->type->revision | 3-6 |
| CAPPED_DATA | 0 | efx | 1 |
| CAPPED_DATA | 0 | efx->net_dev->num_tx_queues | 1 |
| DATA_SOURCE | 0 | efx | $0 |
| CONSTRAINT | 0 | efx | <=3121 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | efx->pci_dev->acs_capabilities | 0-u16max |
| HOST_DATA | 0 | efx->pci_dev->bus->bridge_ctl | 0-u16max |
| HOST_DATA | 0 | efx->pci_dev->class | 0-16777215 |
| HOST_DATA | 0 | efx->pci_dev->current_state | 0-3[c] |
| HOST_DATA | 0 | efx->pci_dev->devcap | 0-u32max |
| HOST_DATA | 0 | efx->pci_dev->devfn | 0-503[c] |
| HOST_DATA | 0 | efx->pci_dev->device | 0-u16max |
| HOST_DATA | 0 | efx->pci_dev->eetlp_prefix_max | 0-7[c] |
| HOST_DATA | 0 | efx->pci_dev->fm_enabled | 0-1[c] |
| HOST_DATA | 0 | efx->pci_dev->hdr_type | 0-255[c] |
| HOST_DATA | 0 | efx->pci_dev->ide_cfg | 0-1[c] |
| HOST_DATA | 0 | efx->pci_dev->ide_tee_limit | 0-1[c] |
| HOST_DATA | 0 | efx->pci_dev->irq | 0-255 |
| HOST_DATA | 0 | efx->pci_dev->is_cxl | 0-1 |
| HOST_DATA | 0 | efx->pci_dev->multifunction | 0-1[c] |
| HOST_DATA | 0 | efx->pci_dev->nr_ide_mem | 0-255[c] |
| HOST_DATA | 0 | efx->pci_dev->pcie_flags_reg | 0-u16max |
| HOST_DATA | 0 | efx->pci_dev->pcie_mpss | 0-7[c] |
| HOST_DATA | 0 | efx->pci_dev->pin | 0 |
| HOST_DATA | 0 | efx->pci_dev->pme_support | 0-31[c] |
| HOST_DATA | 0 | efx->pci_dev->ptm_granularity | 0-255[c] |
| HOST_DATA | 0 | efx->pci_dev->revision | 0-255 |
| HOST_DATA | 0 | efx->pci_dev->subsystem_device | 0-u16max |
| HOST_DATA | 0 | efx->pci_dev->subsystem_vendor | 0-u16max |
| HOST_DATA | 0 | efx->pci_dev->supported_speeds | 0,2-254[c] |
| HOST_DATA | 0 | efx->pci_dev->transparent | 0[c] |
| HOST_DATA | 0 | efx->pci_dev->vendor | 0-u16max |
| HOST_DATA | 0 | efx->rss_spread | 1[c] |
| NO_OVERFLOW_SIMPLE | 0 | efx->ptp_data->pps_workwq->rescuer->task->dl.pi_se->dl_runtime | |
| NO_OVERFLOW_SIMPLE | 0 | efx->ptp_data->workwq->rescuer->task->dl.pi_se->dl_runtime | |
| NO_OVERFLOW_SIMPLE | 0 | efx->vf_count | |
| NO_OVERFLOW_SIMPLE | 0 | efx->vf_init_count | |
| HALF_LOCKED2 | &pool->lock |