Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 9 files:
- drivers/net/ethernet/intel/ice/devlink/port.c
- drivers/net/ethernet/marvell/octeontx2/nic/rep.c, line 257
- drivers/net/ethernet/mellanox/mlx4/main.c, line 3082
- drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c, line 244
- drivers/net/ethernet/mellanox/mlxsw/core.c, line 3092
- drivers/net/ethernet/netronome/nfp/nfp_devlink.c, line 362
- drivers/net/ethernet/sfc/efx_devlink.c, line 165
- include/net/devlink.h, line 1811
- net/devlink/port.c
Smatch caller information:
drivers/net/ethernet/marvell/octeontx2/nic/rep.c rvu_rep_devlink_port_register() -> devl_port_register_with_ops()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | devlink_port | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port->attrs.flavour | 0-2,4-7 |
| PARAM_VALUE | 1 | devlink_port->attrs.switch_id.id_len | 0-32 |
| PARAM_VALUE | 1 | devlink_port->attrs_set | 1 |
| PARAM_VALUE | 3 | ops | 911891483763847168 |
| CAPPED_DATA | 2 | port_index | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | devlink_port->attrs.phys.port_number | |
| NO_OVERFLOW_SIMPLE | 1 | devlink_port->index | |
| NO_OVERFLOW_SIMPLE | 2 | port_index | |
| UNITS | 2 | port_index | unit_array_size |
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &devlink->lock | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &cb_lock | ||
| HALF_LOCKED2 | global &crypto_cfg_mutex | ||
| HALF_LOCKED2 | global &dpll_lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &net_dm_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read |
drivers/net/ethernet/netronome/nfp/nfp_devlink.c nfp_devlink_port_register() -> devl_port_register_with_ops()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port->attrs.flavour | 0-2,4-7 |
| PARAM_VALUE | 1 | devlink_port->attrs.switch_id.id_len | 0-32 |
| PARAM_VALUE | 1 | devlink_port->attrs_set | 1 |
| PARAM_VALUE | 3 | ops | 9169193212566683648 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | devlink_port->attrs.lanes | 0-u32max |
| HOST_DATA | 1 | devlink_port->attrs.no_phys_port_name | 0-1 |
| HOST_DATA | 1 | devlink_port->attrs.pci_pf.controller | 0-u32max |
| HOST_DATA | 1 | devlink_port->attrs.pci_pf.external | 0-1 |
| HOST_DATA | 1 | devlink_port->attrs.pci_pf.pf | 0-u16max |
| HOST_DATA | 1 | devlink_port->attrs.pci_sf.controller | 0-u32max |
| HOST_DATA | 1 | devlink_port->attrs.pci_sf.external | 0-1 |
| HOST_DATA | 1 | devlink_port->attrs.pci_sf.pf | 0-u16max |
| HOST_DATA | 1 | devlink_port->attrs.pci_sf.sf | 0-u32max |
| HOST_DATA | 1 | devlink_port->attrs.pci_vf.controller | 0-u32max |
| HOST_DATA | 1 | devlink_port->attrs.pci_vf.external | 0-1 |
| HOST_DATA | 1 | devlink_port->attrs.pci_vf.pf | 0-u16max |
| HOST_DATA | 1 | devlink_port->attrs.pci_vf.vf | 0-u16max |
| HOST_DATA | 1 | devlink_port->attrs.phys.port_number | 0-u32max |
| HOST_DATA | 1 | devlink_port->attrs.phys.split_subport_number | 0-u32max |
| HOST_DATA | 1 | devlink_port->attrs.split | 0-1 |
| HOST_DATA | 1 | devlink_port->attrs.splittable | 0-1 |
| NO_OVERFLOW_SIMPLE | 1 | devlink_port->attrs.phys.port_number | |
| LOCK2 | &devlink->lock | ||
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/amazon/ena/ena_devlink.c devl_port_register() -> devl_port_register_with_ops()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port->attrs.flavour | 0-2,4-7 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_sf.pf | 0-255 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_vf.pf | 0-255 |
| PARAM_VALUE | 1 | devlink_port->attrs.switch_id.id_len | 0-32 |
| PARAM_VALUE | 1 | devlink_port->attrs_set | 1 |
| PARAM_VALUE | 2 | port_index | 0 |
| PARAM_VALUE | 3 | ops | 0 |
| DATA_SOURCE | 0 | devlink | $0 |
| DATA_SOURCE | 1 | devlink_port | $1 |
| DATA_SOURCE | 2 | port_index | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | 0 | &devlink->lock |
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c mlx5_esw_offloads_devlink_port_register() -> devl_port_register_with_ops()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port | 1-u64max |
| PARAM_VALUE | 3 | ops | 0,1493301149010857984,7833232888813289472 |
| BUF_SIZE | 3 | ops | 0,144 |
| BUF_SIZE | 3 | ops | 0,144 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| DATA_SOURCE | 2 | port_index | r mlx5_esw_vport_to_devlink_port_index |
| BIT_INFO | 3 | ops | 0x0,0x7cbd7ffff5ff9000 |
| BIT_INFO | 3 | ops | 0x0,0x7cbd7ffff5ff9000 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &esw->offloads.reps_lock | ||
| HALF_LOCKED2 | &devlink->lock | ||
| TYPE_LOCK | (struct mlx5_esw_offload)->reps_lock |
drivers/net/ethernet/mellanox/mlxsw/core.c __mlxsw_core_port_init() -> devl_port_register_with_ops()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port->attrs.flavour | 0-2,4-7 |
| PARAM_VALUE | 1 | devlink_port->attrs.switch_id.id_len | 0-32 |
| PARAM_VALUE | 1 | devlink_port->attrs_set | 1 |
| PARAM_VALUE | 3 | ops | 5678929270854713344 |
| BUF_SIZE | 1 | devlink_port | 472 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| DATA_SOURCE | 2 | port_index | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | devlink_port->attrs.phys.port_number | |
| UNITS | 2 | port_index | unit_array_size |
drivers/net/ethernet/mellanox/mlx4/main.c mlx4_init_port_info() -> devl_port_register_with_ops()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port | 4096-ptr_max |
| PARAM_VALUE | 3 | ops | 9017657905302642688 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| DATA_SOURCE | 2 | port_index | $1 |
drivers/net/netdevsim/dev.c devl_port_register() -> devl_port_register_with_ops()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port->attrs.flavour | 0-2,4-7 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_pf.controller | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_pf.external | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_pf.pf | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_sf.controller | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_sf.external | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_sf.pf | 0-255 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_vf.controller | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_vf.external | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_vf.pf | 0-255 |
| PARAM_VALUE | 1 | devlink_port->attrs.switch_id.id_len | 0-32 |
| PARAM_VALUE | 1 | devlink_port->attrs_set | 1 |
| PARAM_VALUE | 3 | ops | 0 |
| BUF_SIZE | 1 | devlink_port | 472 |
| DATA_SOURCE | 0 | devlink | $0 |
| DATA_SOURCE | 1 | devlink_port | $1 |
| DATA_SOURCE | 2 | port_index | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex |
drivers/net/ethernet/intel/ixgbe/devlink/devlink.c devl_port_register() -> devl_port_register_with_ops()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port->attrs.flavour | 0-2,4-7 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_pf.controller | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_pf.external | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_pf.pf | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_sf.controller | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_sf.external | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_sf.pf | 0-255 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_vf.controller | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_vf.external | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_vf.pf | 0-255 |
| PARAM_VALUE | 1 | devlink_port->attrs.switch_id.id_len | 0-32 |
| PARAM_VALUE | 1 | devlink_port->attrs_set | 1 |
| PARAM_VALUE | 2 | port_index | 0 |
| PARAM_VALUE | 3 | ops | 0 |
| BUF_SIZE | 1 | devlink_port | 472 |
| DATA_SOURCE | 0 | devlink | $0 |
| DATA_SOURCE | 1 | devlink_port | $1 |
| DATA_SOURCE | 2 | port_index | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &adapter->devlink->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/sfc/efx_devlink.c efx_devlink_add_port() -> devl_port_register_with_ops()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink->index | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->reload_failed | 0-1 |
| PARAM_VALUE | 1 | devlink_port | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port->attrs.flavour | 3-4 |
| PARAM_VALUE | 1 | devlink_port->attrs.switch_id.id_len | 0-32 |
| PARAM_VALUE | 1 | devlink_port->attrs_set | 1 |
| PARAM_VALUE | 3 | ops | 5627431584326205440 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->dev.mutex | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &pci_rescan_remove_lock |
drivers/net/ethernet/intel/ice/devlink/port.c devl_port_register() -> devl_port_register_with_ops()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port->attrs.flavour | 0-2,4-7 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_pf.controller | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_pf.external | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_pf.pf | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_sf.controller | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_sf.external | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_sf.pf | 0-255 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_vf.controller | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_vf.external | 0 |
| PARAM_VALUE | 1 | devlink_port->attrs.pci_vf.pf | 0-255 |
| PARAM_VALUE | 1 | devlink_port->attrs.switch_id.id_len | 0-32 |
| PARAM_VALUE | 1 | devlink_port->attrs_set | 1 |
| PARAM_VALUE | 3 | ops | 0 |
| BUF_SIZE | 1 | devlink_port | 472 |
| DATA_SOURCE | 0 | devlink | $0 |
| DATA_SOURCE | 1 | devlink_port | $1 |
| DATA_SOURCE | 2 | port_index | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &devlink->lock | ||
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/intel/ice/devlink/port.c ice_devlink_create_pf_port() -> devl_port_register_with_ops()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port->attrs.flavour | 0-2,4-7 |
| PARAM_VALUE | 1 | devlink_port->attrs.switch_id.id_len | 0-32 |
| PARAM_VALUE | 1 | devlink_port->attrs_set | 1 |
| PARAM_VALUE | 3 | ops | 6915495660413046784 |
| BUF_SIZE | 1 | devlink_port | 472 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | devlink_port->attrs.phys.port_number |
drivers/net/ethernet/intel/ice/devlink/port.c ice_devlink_create_sf_port() -> devl_port_register_with_ops()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port->attrs.flavour | 0-2,4-7 |
| PARAM_VALUE | 1 | devlink_port->attrs.switch_id.id_len | 0-32 |
| PARAM_VALUE | 1 | devlink_port->attrs_set | 1 |
| PARAM_VALUE | 3 | ops | 2774674792273338368 |
| BUF_SIZE | 1 | devlink_port | 472 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | devlink_port->attrs.phys.port_number | |
| HALF_LOCKED2 | &devlink->lock | ||
| HALF_LOCKED2 | &pf->vfs.table_lock |
drivers/net/ethernet/intel/ice/devlink/port.c ice_devlink_create_vf_port() -> devl_port_register_with_ops()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port->attrs.flavour | 0-2,4-7 |
| PARAM_VALUE | 1 | devlink_port->attrs.switch_id.id_len | 0-32 |
| PARAM_VALUE | 1 | devlink_port->attrs_set | 1 |
| PARAM_VALUE | 3 | ops | 465460120479637504 |
| BUF_SIZE | 1 | devlink_port | 472 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | devlink_port->attrs.phys.port_number | |
| HALF_LOCKED2 | &devlink->lock | ||
| HALF_LOCKED2 | &pf->vfs.table_lock |
net/devlink/port.c devlink_port_register_with_ops() -> devl_port_register_with_ops()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | devlink->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | devlink->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | devlink->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | devlink_port | 4096-ptr_max |
| PARAM_VALUE | 1 | devlink_port->attrs.flavour | 0-2,4-7 |
| PARAM_VALUE | 1 | devlink_port->attrs.switch_id.id_len | 0-32 |
| PARAM_VALUE | 1 | devlink_port->attrs_set | 1 |
| PARAM_VALUE | 3 | ops | 0 |
| BUF_SIZE | 1 | devlink_port | (-1),472 |
| BUF_SIZE | 1 | devlink_port | (-1),472 |
| DATA_SOURCE | 0 | devlink | $0 |
| DATA_SOURCE | 1 | devlink_port | $1 |
| DATA_SOURCE | 2 | port_index | $2 |
| DATA_SOURCE | 3 | ops | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | devlink_port->attrs.lanes | 0-u32max |
| HOST_DATA | 1 | devlink_port->attrs.no_phys_port_name | 0-1 |
| HOST_DATA | 1 | devlink_port->attrs.pci_pf.controller | 0-u32max |
| HOST_DATA | 1 | devlink_port->attrs.pci_pf.external | 0-1 |
| HOST_DATA | 1 | devlink_port->attrs.pci_pf.pf | 0-u16max |
| HOST_DATA | 1 | devlink_port->attrs.pci_sf.controller | 0-u32max |
| HOST_DATA | 1 | devlink_port->attrs.pci_sf.external | 0-1 |
| HOST_DATA | 1 | devlink_port->attrs.pci_sf.pf | 0-u16max |
| HOST_DATA | 1 | devlink_port->attrs.pci_sf.sf | 0-u32max |
| HOST_DATA | 1 | devlink_port->attrs.pci_vf.controller | 0-u32max |
| HOST_DATA | 1 | devlink_port->attrs.pci_vf.external | 0-1 |
| HOST_DATA | 1 | devlink_port->attrs.pci_vf.pf | 0-u16max |
| HOST_DATA | 1 | devlink_port->attrs.pci_vf.vf | 0-u16max |
| HOST_DATA | 1 | devlink_port->attrs.phys.port_number | 0-u32max |
| HOST_DATA | 1 | devlink_port->attrs.phys.split_subport_number | 0-u32max |
| HOST_DATA | 1 | devlink_port->attrs.split | 0-1 |
| HOST_DATA | 1 | devlink_port->attrs.splittable | 0-1 |
| HOST_DATA | 1 | devlink_port->desired_type | 0-u32max |
| HOST_DATA | 1 | devlink_port->index | 0-u32max |
| HOST_DATA | 1 | devlink_port->initialized | 0-1 |
| HOST_DATA | 1 | devlink_port->registered | 0-1 |
| HOST_DATA | 1 | devlink_port->rel_index | 0-u32max |
| HOST_DATA | 1 | devlink_port->switch_port | 0-1 |
| HOST_DATA | 1 | devlink_port->type | 0-u32max |
| HOST_DATA | 1 | devlink_port->type_eth.ifindex | s32min-s32max |
| HOST_DATA | 1 | devlink_port->type_warn_dw.cpu | s32min-s32max |
| HOST_DATA | 1 | devlink_port->type_warn_dw.timer.expires | 0-u64max |
| HOST_DATA | 1 | devlink_port->type_warn_dw.timer.flags | 0-u32max |
| HOST_DATA | 1 | devlink_port->type_warn_dw.work.data.counter | s64min-s64max |
| NO_OVERFLOW_SIMPLE | 1 | devlink_port->attrs.phys.port_number | |
| NO_OVERFLOW_SIMPLE | 2 | port_index | |
| UNITS | 2 | port_index | unit_array_size |
| LOCK2 | 0 | &devlink->lock | |
| HALF_LOCKED2 | global &dsa2_mutex | ||
| TYPE_LOCK | (struct devlink)->lock |