Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 10 files:
- drivers/net/ethernet/amazon/ena/ena_devlink.c, line 78
- drivers/net/ethernet/intel/ice/devlink/port.c
- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
- drivers/net/ethernet/mellanox/mlx4/main.c
- drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
- drivers/net/ethernet/mellanox/mlxsw/core.c, line 3105
- drivers/net/ethernet/netronome/nfp/nfp_devlink.c, line 368
- drivers/net/ethernet/sfc/efx_devlink.c, line 137
- drivers/net/netdevsim/dev.c
- net/devlink/port.c
Smatch caller information:
drivers/net/ethernet/netronome/nfp/nfp_devlink.c nfp_devlink_port_unregister() -> devl_port_unregister()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink_port | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | devlink_port->attrs.flavour | 0-2,4-7 |
| HOST_DATA | 0 | devlink_port->attrs.lanes | 0-u32max |
| HOST_DATA | 0 | devlink_port->attrs.no_phys_port_name | 0-1 |
| HOST_DATA | 0 | devlink_port->attrs.pci_pf.controller | 0-u32max |
| HOST_DATA | 0 | devlink_port->attrs.pci_pf.external | 0-1 |
| HOST_DATA | 0 | devlink_port->attrs.pci_pf.pf | 0-u16max |
| HOST_DATA | 0 | devlink_port->attrs.pci_sf.controller | 0-u32max |
| HOST_DATA | 0 | devlink_port->attrs.pci_sf.external | 0-1 |
| HOST_DATA | 0 | devlink_port->attrs.pci_sf.pf | 0-u16max |
| HOST_DATA | 0 | devlink_port->attrs.pci_sf.sf | 0-u32max |
| HOST_DATA | 0 | devlink_port->attrs.pci_vf.controller | 0-u32max |
| HOST_DATA | 0 | devlink_port->attrs.pci_vf.external | 0-1 |
| HOST_DATA | 0 | devlink_port->attrs.pci_vf.pf | 0-u16max |
| HOST_DATA | 0 | devlink_port->attrs.pci_vf.vf | 0-u16max |
| HOST_DATA | 0 | devlink_port->attrs.phys.port_number | 0-u32max |
| HOST_DATA | 0 | devlink_port->attrs.phys.split_subport_number | 0-u32max |
| HOST_DATA | 0 | devlink_port->attrs.split | 0-1 |
| HOST_DATA | 0 | devlink_port->attrs.splittable | 0-1 |
| HOST_DATA | 0 | devlink_port->attrs.switch_id.id_len | 0-32 |
| NO_OVERFLOW_SIMPLE | 0 | devlink_port->attrs.phys.port_number | |
| HALF_LOCKED2 | &devlink->lock |
drivers/net/ethernet/amazon/ena/ena_devlink.c ena_devlink_port_unregister() -> devl_port_unregister()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink_port | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &devlink->lock | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c mlx5_esw_offloads_devlink_port_register() -> devl_port_unregister()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink_port | 1-u64max |
| PARAM_VALUE | 0 | devlink_port->devlink | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->initialized | 1 |
| PARAM_VALUE | 0 | devlink_port->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->region_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->region_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->registered | 1 |
| PARAM_VALUE | 0 | devlink_port->reporter_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->reporter_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->resource_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->resource_list.prev | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &esw->offloads.reps_lock | ||
| HALF_LOCKED2 | &devlink->lock | ||
| TYPE_LOCK | (struct mlx5_esw_offload)->reps_lock |
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c mlx5_esw_offloads_devlink_port_unregister() -> devl_port_unregister()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink_port | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &esw->offloads.reps_lock |
drivers/net/ethernet/mellanox/mlxsw/core.c __mlxsw_core_port_fini() -> devl_port_unregister()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink_port | 4096-ptr_max |
| BUF_SIZE | 0 | devlink_port | 472 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c ixgbe_remove() -> devl_port_unregister()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink_port | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &adapter->devlink->lock | ||
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/mellanox/mlx4/main.c mlx4_cleanup_port_info() -> devl_port_unregister()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink_port | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->devlink | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->type | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | &devlink->lock | ||
| HALF_LOCKED2 | &persist->interface_state_mutex |
drivers/net/ethernet/mellanox/mlx4/main.c mlx4_init_port_info() -> devl_port_unregister()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink_port | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->devlink | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->initialized | 1 |
| PARAM_VALUE | 0 | devlink_port->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->region_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->region_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->registered | 1 |
| PARAM_VALUE | 0 | devlink_port->reporter_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->reporter_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->resource_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->resource_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->type | 0 |
| NOCHECK_CALL |
drivers/net/ethernet/mellanox/mlx4/main.c mlx4_init_port_info() -> devl_port_unregister()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink_port | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->devlink | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->initialized | 1 |
| PARAM_VALUE | 0 | devlink_port->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->region_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->region_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->registered | 1 |
| PARAM_VALUE | 0 | devlink_port->reporter_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->reporter_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->resource_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->resource_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->type | 0 |
| NOCHECK_CALL |
drivers/net/netdevsim/dev.c __nsim_dev_port_add() -> devl_port_unregister()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink_port | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->attrs.flavour | 0-2,4-7 |
| PARAM_VALUE | 0 | devlink_port->attrs.switch_id.id_len | 0-32 |
| PARAM_VALUE | 0 | devlink_port->attrs_set | 1 |
| PARAM_VALUE | 0 | devlink_port->devlink | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->initialized | 1 |
| PARAM_VALUE | 0 | devlink_port->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->ops->port_del | 0,5297280653917495296,7056166776116604928 |
| PARAM_VALUE | 0 | devlink_port->ops->port_fn_hw_addr_get | 0,1105552436811452416,2161372112124977152,2881830882648793088,3086837170211098624,5331084624549416960 |
| PARAM_VALUE | 0 | devlink_port->ops->port_fn_hw_addr_set | 0,3534299544314576896,4238284642390831104,6293962769029922816,7613046309317726208,8690544359101091840 |
| PARAM_VALUE | 0 | devlink_port->ops->port_fn_ipsec_crypto_get | 0,4902228933308452864 |
| PARAM_VALUE | 0 | devlink_port->ops->port_fn_ipsec_crypto_set | 0,5372495510538301440 |
| PARAM_VALUE | 0 | devlink_port->ops->port_fn_ipsec_packet_get | 0,1775539211769454592 |
| PARAM_VALUE | 0 | devlink_port->ops->port_fn_ipsec_packet_set | 0,758161232406708224 |
| PARAM_VALUE | 0 | devlink_port->ops->port_fn_max_io_eqs_get | 0,7025178205638221824 |
| PARAM_VALUE | 0 | devlink_port->ops->port_fn_max_io_eqs_set | 0,8597896118109675520 |
| PARAM_VALUE | 0 | devlink_port->ops->port_fn_migratable_get | 0,609373278646910976 |
| PARAM_VALUE | 0 | devlink_port->ops->port_fn_migratable_set | 0,3871053410285416448 |
| PARAM_VALUE | 0 | devlink_port->ops->port_fn_roce_get | 0,4455983247024910336 |
| PARAM_VALUE | 0 | devlink_port->ops->port_fn_roce_set | 0,1612805619800064000 |
| PARAM_VALUE | 0 | devlink_port->ops->port_fn_state_get | 0,6521951712662228992,7263765225596121088,7671851536357396480 |
| PARAM_VALUE | 0 | devlink_port->ops->port_fn_state_set | 0,784175470144167936,6855704840655306752,9130591050118823936 |
| PARAM_VALUE | 0 | devlink_port->ops->port_split | 0,5395478576842731520,5914476347301904384,7303769814657187840 |
| PARAM_VALUE | 0 | devlink_port->ops->port_type_set | 0,7366619749569720320 |
| PARAM_VALUE | 0 | devlink_port->ops->port_unsplit | 0,958128192443506688,5601030920313925632,7070045751322910720 |
| PARAM_VALUE | 0 | devlink_port->region_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->region_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->region_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->region_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->region_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->registered | 1 |
| PARAM_VALUE | 0 | devlink_port->reporter_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->reporter_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->reporter_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->reporter_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->reporter_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->resource_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->resource_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->resource_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->resource_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->resource_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->type_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | devlink_port->type_warn_dw.timer.entry->pprev | 4096-ptr_max |
| BUF_SIZE | 0 | devlink_port | 472 |
| CAPPED_DATA | 0 | devlink_port | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | devlink_port->attrs.phys.port_number | |
| HALF_LOCKED2 | &of->mutex |
drivers/net/netdevsim/dev.c __nsim_dev_port_del() -> devl_port_unregister()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink_port | 4096-ptr_max |
| BUF_SIZE | 0 | devlink_port | 472 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &of->mutex |
drivers/net/ethernet/sfc/efx_devlink.c efx_devlink_del_port() -> devl_port_unregister()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink_port | 1-u64max |
| DATA_SOURCE | 0 | devlink_port | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/net/ethernet/intel/ice/devlink/port.c ice_devlink_destroy_pf_port() -> devl_port_unregister()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink_port | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/net/ethernet/intel/ice/devlink/port.c ice_devlink_destroy_sf_dev_port() -> devl_port_unregister()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink_port | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &devlink->lock | ||
| HALF_LOCKED2 | &dev->mutex | ||
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/intel/ice/devlink/port.c ice_devlink_destroy_sf_port() -> devl_port_unregister()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink_port | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &devlink->lock |
drivers/net/ethernet/intel/ice/devlink/port.c ice_devlink_destroy_vf_port() -> devl_port_unregister()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink_port | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &devlink->lock |
net/devlink/port.c devlink_port_unregister() -> devl_port_unregister()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink_port | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink_port->devlink->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | devlink_port->devlink->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | devlink_port->devlink->lock.osq.tail.counter | 0-s32max |
| BUF_SIZE | 0 | devlink_port | (-1),472 |
| BUF_SIZE | 0 | devlink_port | (-1),472 |
| DATA_SOURCE | 0 | devlink_port | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | devlink_port->index | |
| LOCK2 | &devlink->lock | ||
| HALF_LOCKED2 | global &dsa2_mutex | ||
| TYPE_LOCK | (struct devlink)->lock |