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/mellanox/mlx5/core/sf/hw_table.c
- drivers/net/ethernet/mellanox/mlxsw/core.c, line 134
- drivers/net/ethernet/mellanox/mlxsw/spectrum.c
- drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c
- drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c
- drivers/net/ethernet/mellanox/mlxsw/spectrum_policer.c
- drivers/net/netdevsim/dev.c
- net/devlink/resource.c, line 563
- net/dsa/devlink.c, line 236
Smatch caller information:
drivers/net/ethernet/mellanox/mlx5/core/sf/hw_table.c mlx5_sf_hw_table_res_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | resource_name | 6797280811518734336 |
| PARAM_VALUE | 3 | resource_id | 1 |
| PARAM_VALUE | 4 | parent_resource_id | 0 |
| PARAM_VALUE | 5 | params | 2010254869628379136 |
| PARAM_VALUE | 5 | params->size_granularity | 1 |
| PARAM_VALUE | 5 | params->size_max | 0-u16max |
| PARAM_VALUE | 5 | params->size_min | 0-u16max |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 14 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| DATA_SOURCE | 2 | resource_size | $1 |
| STR_LEN | 0 | devlink | 13 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dev->intf_state_mutex | ||
| HALF_LOCKED2 | &devlink->lock | ||
| TYPE_LOCK | (struct mlx5_core_dev)->intf_state_mutex |
drivers/net/ethernet/mellanox/mlx5/core/sf/hw_table.c mlx5_sf_hw_table_res_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | resource_name | 3004921994667163648 |
| PARAM_VALUE | 3 | resource_id | 2 |
| PARAM_VALUE | 4 | parent_resource_id | 0 |
| PARAM_VALUE | 5 | params | 2010254869628379136 |
| PARAM_VALUE | 5 | params->size_granularity | 1 |
| PARAM_VALUE | 5 | params->size_max | 0-u16max |
| PARAM_VALUE | 5 | params->size_min | 0-u16max |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 17 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| DATA_SOURCE | 2 | resource_size | $2 |
| STR_LEN | 0 | devlink | 16 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dev->intf_state_mutex | ||
| HALF_LOCKED2 | &devlink->lock | ||
| TYPE_LOCK | (struct mlx5_core_dev)->intf_state_mutex |
drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c mlxsw_sp_counter_resources_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | resource_name | 3294456536865284096 |
| PARAM_VALUE | 3 | resource_id | 10 |
| PARAM_VALUE | 4 | parent_resource_id | 0 |
| PARAM_VALUE | 5 | params | 4355130953093259264 |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 9 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| DATA_SOURCE | 2 | resource_size | r mlxsw_core_res_get |
| STR_LEN | 0 | devlink | 8 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &devlink->lock | ||
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c mlxsw_sp_counter_resources_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 4 | parent_resource_id | 10 |
| PARAM_VALUE | 5 | params | 4355130953093259264 |
| PARAM_VALUE | 5 | params->unit | 0 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &devlink->lock | ||
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_core_resources_ports_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | resource_name | 7016899741649547264 |
| PARAM_VALUE | 3 | resource_id | 1 |
| PARAM_VALUE | 4 | parent_resource_id | 0 |
| PARAM_VALUE | 5 | params | 2135885059197042688 |
| PARAM_VALUE | 5 | params->size_granularity | 1 |
| PARAM_VALUE | 5 | params->size_max | 0-u32max |
| PARAM_VALUE | 5 | params->size_min | 0-u32max |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 15 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| STR_LEN | 0 | devlink | 14 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &devlink->lock |
drivers/net/netdevsim/dev.c nsim_dev_resources_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink->index | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->lock->first_waiter->task->blocked_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | devlink->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | devlink->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | devlink->lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | devlink->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | devlink->nested_rels.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->params.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->ports.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->refcount.refs.counter | (-1073741824),0-s32max |
| PARAM_VALUE | 0 | devlink->reload_failed | 0-1 |
| PARAM_VALUE | 0 | devlink->snapshot_ids.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | *devlink->_net.net->netns_ids.idr_rt.xa_head | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 1 | resource_name | 724015881162059776 |
| PARAM_VALUE | 2 | resource_size | u64max |
| PARAM_VALUE | 3 | resource_id | 1 |
| PARAM_VALUE | 4 | parent_resource_id | 0 |
| PARAM_VALUE | 5 | params | 8111399047845404672 |
| PARAM_VALUE | 5 | params->size_granularity | 1 |
| PARAM_VALUE | 5 | params->size_max | u64max |
| PARAM_VALUE | 5 | params->size_min | 0 |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 5 |
| CAPPED_DATA | 0 | devlink | 1 |
| DATA_SOURCE | 0 | devlink | $0 |
| STR_LEN | 0 | devlink | 4 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &devlink->lock | |
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/netdevsim/dev.c nsim_dev_resources_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink->index | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->lock->first_waiter->task->blocked_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | devlink->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | devlink->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | devlink->lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | devlink->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | devlink->nested_rels.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->params.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->ports.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->refcount.refs.counter | (-1073741824),0-s32max |
| PARAM_VALUE | 0 | devlink->reload_failed | 0-1 |
| PARAM_VALUE | 0 | devlink->snapshot_ids.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | *devlink->_net.net->netns_ids.idr_rt.xa_head | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 1 | resource_name | 2880579980927959040 |
| PARAM_VALUE | 2 | resource_size | u64max |
| PARAM_VALUE | 3 | resource_id | 2 |
| PARAM_VALUE | 4 | parent_resource_id | 1 |
| PARAM_VALUE | 5 | params | 8111399047845404672 |
| PARAM_VALUE | 5 | params->size_granularity | 1 |
| PARAM_VALUE | 5 | params->size_max | u64max |
| PARAM_VALUE | 5 | params->size_min | 0 |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 4 |
| CAPPED_DATA | 0 | devlink | 1 |
| DATA_SOURCE | 0 | devlink | $0 |
| STR_LEN | 0 | devlink | 3 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &devlink->lock | |
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/netdevsim/dev.c nsim_dev_resources_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink->index | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->lock->first_waiter->task->blocked_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | devlink->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | devlink->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | devlink->lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | devlink->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | devlink->nested_rels.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->params.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->ports.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->refcount.refs.counter | (-1073741824),0-s32max |
| PARAM_VALUE | 0 | devlink->reload_failed | 0-1 |
| PARAM_VALUE | 0 | devlink->snapshot_ids.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | *devlink->_net.net->netns_ids.idr_rt.xa_head | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 1 | resource_name | 8655214769448099840 |
| PARAM_VALUE | 2 | resource_size | u64max |
| PARAM_VALUE | 3 | resource_id | 3 |
| PARAM_VALUE | 4 | parent_resource_id | 1 |
| PARAM_VALUE | 5 | params | 8111399047845404672 |
| PARAM_VALUE | 5 | params->size_granularity | 1 |
| PARAM_VALUE | 5 | params->size_max | u64max |
| PARAM_VALUE | 5 | params->size_min | 0 |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 10 |
| CAPPED_DATA | 0 | devlink | 1 |
| DATA_SOURCE | 0 | devlink | $0 |
| STR_LEN | 0 | devlink | 9 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &devlink->lock | |
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/netdevsim/dev.c nsim_dev_resources_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink->index | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->lock->first_waiter->task->blocked_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | devlink->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | devlink->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | devlink->lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | devlink->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | devlink->nested_rels.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->params.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->ports.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->refcount.refs.counter | (-1073741824),0-s32max |
| PARAM_VALUE | 0 | devlink->reload_failed | 0-1 |
| PARAM_VALUE | 0 | devlink->snapshot_ids.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | *devlink->_net.net->netns_ids.idr_rt.xa_head | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 1 | resource_name | 5911772725193007104 |
| PARAM_VALUE | 2 | resource_size | u64max |
| PARAM_VALUE | 3 | resource_id | 4 |
| PARAM_VALUE | 4 | parent_resource_id | 0 |
| PARAM_VALUE | 5 | params | 8111399047845404672 |
| PARAM_VALUE | 5 | params->size_granularity | 1 |
| PARAM_VALUE | 5 | params->size_max | u64max |
| PARAM_VALUE | 5 | params->size_min | 0 |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 5 |
| CAPPED_DATA | 0 | devlink | 1 |
| DATA_SOURCE | 0 | devlink | $0 |
| STR_LEN | 0 | devlink | 4 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &devlink->lock | |
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/netdevsim/dev.c nsim_dev_resources_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink->index | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->lock->first_waiter->task->blocked_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | devlink->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | devlink->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | devlink->lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | devlink->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | devlink->nested_rels.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->params.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->ports.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->refcount.refs.counter | (-1073741824),0-s32max |
| PARAM_VALUE | 0 | devlink->reload_failed | 0-1 |
| PARAM_VALUE | 0 | devlink->snapshot_ids.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | *devlink->_net.net->netns_ids.idr_rt.xa_head | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 1 | resource_name | 2880579980927959040 |
| PARAM_VALUE | 2 | resource_size | u64max |
| PARAM_VALUE | 3 | resource_id | 5 |
| PARAM_VALUE | 4 | parent_resource_id | 4 |
| PARAM_VALUE | 5 | params | 8111399047845404672 |
| PARAM_VALUE | 5 | params->size_granularity | 1 |
| PARAM_VALUE | 5 | params->size_max | u64max |
| PARAM_VALUE | 5 | params->size_min | 0 |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 4 |
| CAPPED_DATA | 0 | devlink | 1 |
| DATA_SOURCE | 0 | devlink | $0 |
| STR_LEN | 0 | devlink | 3 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &devlink->lock | |
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/netdevsim/dev.c nsim_dev_resources_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink->index | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->lock->first_waiter->task->blocked_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | devlink->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | devlink->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | devlink->lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | devlink->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | devlink->nested_rels.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->params.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->ports.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->refcount.refs.counter | (-1073741824),0-s32max |
| PARAM_VALUE | 0 | devlink->reload_failed | 0-1 |
| PARAM_VALUE | 0 | devlink->snapshot_ids.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | *devlink->_net.net->netns_ids.idr_rt.xa_head | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 1 | resource_name | 8655214769448099840 |
| PARAM_VALUE | 2 | resource_size | u64max |
| PARAM_VALUE | 3 | resource_id | 6 |
| PARAM_VALUE | 4 | parent_resource_id | 4 |
| PARAM_VALUE | 5 | params | 8111399047845404672 |
| PARAM_VALUE | 5 | params->size_granularity | 1 |
| PARAM_VALUE | 5 | params->size_max | u64max |
| PARAM_VALUE | 5 | params->size_min | 0 |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 10 |
| CAPPED_DATA | 0 | devlink | 1 |
| DATA_SOURCE | 0 | devlink | $0 |
| STR_LEN | 0 | devlink | 9 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &devlink->lock | |
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/netdevsim/dev.c nsim_dev_resources_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 0 | devlink->index | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->lock->first_waiter->task->blocked_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | devlink->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | devlink->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | devlink->lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | devlink->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | devlink->nested_rels.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->params.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->ports.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->refcount.refs.counter | (-1073741824),0-s32max |
| PARAM_VALUE | 0 | devlink->reload_failed | 0-1 |
| PARAM_VALUE | 0 | devlink->snapshot_ids.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | *devlink->_net.net->netns_ids.idr_rt.xa_head | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 1 | resource_name | 3277528103663181824 |
| PARAM_VALUE | 2 | resource_size | u64max |
| PARAM_VALUE | 3 | resource_id | 7 |
| PARAM_VALUE | 4 | parent_resource_id | 0 |
| PARAM_VALUE | 5 | params | 8111399047845404672 |
| PARAM_VALUE | 5 | params->size_granularity | 1 |
| PARAM_VALUE | 5 | params->size_max | u64max |
| PARAM_VALUE | 5 | params->size_min | 0 |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 9 |
| CAPPED_DATA | 0 | devlink | 1 |
| DATA_SOURCE | 0 | devlink | $0 |
| STR_LEN | 0 | devlink | 8 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &devlink->lock | |
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c mlxsw_sp1_kvdl_resources_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | resource_name | 2207241272677150720 |
| PARAM_VALUE | 2 | resource_size | 16384 |
| PARAM_VALUE | 3 | resource_id | 6 |
| PARAM_VALUE | 4 | parent_resource_id | 3 |
| PARAM_VALUE | 5 | params | 2626120184134250496 |
| PARAM_VALUE | 5 | params->size_granularity | 1 |
| PARAM_VALUE | 5 | params->size_max | 0-u32max |
| PARAM_VALUE | 5 | params->size_min | 0 |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 8 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| STR_LEN | 0 | devlink | 7 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &devlink->lock | ||
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c mlxsw_sp1_kvdl_resources_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | resource_name | 6701782907965296640 |
| PARAM_VALUE | 2 | resource_size | 49152 |
| PARAM_VALUE | 3 | resource_id | 7 |
| PARAM_VALUE | 4 | parent_resource_id | 3 |
| PARAM_VALUE | 5 | params | 2626120184134250496 |
| PARAM_VALUE | 5 | params->size_granularity | 32 |
| PARAM_VALUE | 5 | params->size_max | 0-u32max |
| PARAM_VALUE | 5 | params->size_min | 0 |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 7 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| STR_LEN | 0 | devlink | 6 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &devlink->lock | ||
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c mlxsw_sp1_kvdl_resources_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | resource_name | 8264566684193607680 |
| PARAM_VALUE | 2 | resource_size | 32768 |
| PARAM_VALUE | 3 | resource_id | 8 |
| PARAM_VALUE | 4 | parent_resource_id | 3 |
| PARAM_VALUE | 5 | params | 2626120184134250496 |
| PARAM_VALUE | 5 | params->size_granularity | 512 |
| PARAM_VALUE | 5 | params->size_max | 0-u32max |
| PARAM_VALUE | 5 | params->size_min | 0 |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 13 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| STR_LEN | 0 | devlink | 12 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &devlink->lock | ||
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp1_resources_kvd_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | resource_name | 6954443865412243456 |
| PARAM_VALUE | 3 | resource_id | 2 |
| PARAM_VALUE | 4 | parent_resource_id | 0 |
| PARAM_VALUE | 5 | params | 6298398225006080000 |
| PARAM_VALUE | 5 | params->size_granularity | 128 |
| PARAM_VALUE | 5 | params->size_max | 0-u32max |
| PARAM_VALUE | 5 | params->size_min | 0-u32max |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 4 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| DATA_SOURCE | 2 | resource_size | r mlxsw_core_res_get |
| STR_LEN | 0 | devlink | 3 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &devlink->lock | ||
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp1_resources_kvd_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | resource_name | 8833408770561622016 |
| PARAM_VALUE | 2 | resource_size | 98304 |
| PARAM_VALUE | 3 | resource_id | 3 |
| PARAM_VALUE | 4 | parent_resource_id | 2 |
| PARAM_VALUE | 5 | params | 4593932631471886336 |
| PARAM_VALUE | 5 | params->size_granularity | 128 |
| PARAM_VALUE | 5 | params->size_max | 0-u32max |
| PARAM_VALUE | 5 | params->size_min | 0 |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 7 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| STR_LEN | 0 | devlink | 6 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &devlink->lock | ||
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp1_resources_kvd_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | resource_name | 315822907981963264 |
| PARAM_VALUE | 3 | resource_id | 5 |
| PARAM_VALUE | 4 | parent_resource_id | 2 |
| PARAM_VALUE | 5 | params | 3993280837187252224 |
| PARAM_VALUE | 5 | params->size_granularity | 128 |
| PARAM_VALUE | 5 | params->size_max | 0-u32max |
| PARAM_VALUE | 5 | params->size_min | 0-u32max |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 12 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| STR_LEN | 0 | devlink | 11 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &devlink->lock | ||
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp1_resources_kvd_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | resource_name | 6909056755697242112 |
| PARAM_VALUE | 3 | resource_id | 4 |
| PARAM_VALUE | 4 | parent_resource_id | 2 |
| PARAM_VALUE | 5 | params | 2682945398319386624 |
| PARAM_VALUE | 5 | params->size_granularity | 128 |
| PARAM_VALUE | 5 | params->size_max | 0-u32max |
| PARAM_VALUE | 5 | params->size_min | 0-u32max |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 12 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| STR_LEN | 0 | devlink | 11 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &devlink->lock | ||
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp2_resources_kvd_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | resource_name | 6954443865412243456 |
| PARAM_VALUE | 3 | resource_id | 2 |
| PARAM_VALUE | 4 | parent_resource_id | 0 |
| PARAM_VALUE | 5 | params | 6269208356129021952 |
| PARAM_VALUE | 5 | params->size_granularity | 128 |
| PARAM_VALUE | 5 | params->size_max | 0-u32max |
| PARAM_VALUE | 5 | params->size_min | 0-u32max |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 4 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| DATA_SOURCE | 2 | resource_size | r mlxsw_core_res_get |
| STR_LEN | 0 | devlink | 3 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &devlink->lock | ||
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp_resources_port_range_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | resource_name | 419714340078231552 |
| PARAM_VALUE | 3 | resource_id | 17 |
| PARAM_VALUE | 4 | parent_resource_id | 0 |
| PARAM_VALUE | 5 | params | 4887232066637041664 |
| PARAM_VALUE | 5 | params->size_granularity | 1 |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 21 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| DATA_SOURCE | 2 | resource_size | r mlxsw_core_res_get |
| STR_LEN | 0 | devlink | 20 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &devlink->lock | ||
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp_resources_rif_mac_profile_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | resource_name | 2662313184529502208 |
| PARAM_VALUE | 3 | resource_id | 15 |
| PARAM_VALUE | 4 | parent_resource_id | 0 |
| PARAM_VALUE | 5 | params | 5083504609355309056 |
| PARAM_VALUE | 5 | params->size_granularity | 1 |
| PARAM_VALUE | 5 | params->size_max | 0-255 |
| PARAM_VALUE | 5 | params->size_min | 0-255 |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 17 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| STR_LEN | 0 | devlink | 16 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &devlink->lock | ||
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp_resources_rifs_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | resource_name | 5343752212690280448 |
| PARAM_VALUE | 3 | resource_id | 16 |
| PARAM_VALUE | 4 | parent_resource_id | 0 |
| PARAM_VALUE | 5 | params | 7370487004344668160 |
| PARAM_VALUE | 5 | params->size_granularity | 1 |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 5 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| DATA_SOURCE | 2 | resource_size | r mlxsw_core_res_get |
| STR_LEN | 0 | devlink | 4 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &devlink->lock | ||
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp_resources_span_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | resource_name | 3905232621057654784 |
| PARAM_VALUE | 3 | resource_id | 9 |
| PARAM_VALUE | 4 | parent_resource_id | 0 |
| PARAM_VALUE | 5 | params | 1914853675688566784 |
| PARAM_VALUE | 5 | params->size_granularity | 1 |
| PARAM_VALUE | 5 | params->size_max | 0-u32max |
| PARAM_VALUE | 5 | params->size_min | 0-u32max |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 12 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| DATA_SOURCE | 2 | resource_size | r mlxsw_core_res_get |
| STR_LEN | 0 | devlink | 11 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &devlink->lock | ||
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/mellanox/mlxsw/spectrum_policer.c mlxsw_sp_policer_resources_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | resource_name | 9086755173660110848 |
| PARAM_VALUE | 3 | resource_id | 13 |
| PARAM_VALUE | 4 | parent_resource_id | 0 |
| PARAM_VALUE | 5 | params | 2407433513868857344 |
| PARAM_VALUE | 5 | params->size_granularity | 1 |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 16 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| DATA_SOURCE | 2 | resource_size | r mlxsw_core_res_get |
| STR_LEN | 0 | devlink | 15 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &devlink->lock | ||
| TYPE_LOCK | (struct devlink)->lock |
drivers/net/ethernet/mellanox/mlxsw/spectrum_policer.c mlxsw_sp_policer_resources_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink | 4096-ptr_max |
| PARAM_VALUE | 1 | resource_name | 4220419454066966528 |
| PARAM_VALUE | 3 | resource_id | 14 |
| PARAM_VALUE | 4 | parent_resource_id | 13 |
| PARAM_VALUE | 5 | params | 2407433513868857344 |
| PARAM_VALUE | 5 | params->size_granularity | 1 |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 21 |
| DATA_SOURCE | 0 | devlink | r priv_to_devlink |
| STR_LEN | 0 | devlink | 20 |
| TERMINATED | 1 | resource_name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &devlink->lock | ||
| TYPE_LOCK | (struct devlink)->lock |
net/dsa/devlink.c dsa_devlink_resource_register() -> devl_resource_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | devlink->index | 0-4294967295 |
| PARAM_VALUE | 0 | devlink->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | devlink->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | devlink->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | resource_name | 4096-ptr_max |
| PARAM_VALUE | 3 | resource_id | 1-5 |
| PARAM_VALUE | 4 | parent_resource_id | 0 |
| PARAM_VALUE | 5 | params | 101152865339396096,741011757832679424,1074016384471416832,3419292799783837696,6857424256951930880 |
| PARAM_VALUE | 5 | params->size_granularity | 1 |
| PARAM_VALUE | 5 | params->size_max | 0-u32max |
| PARAM_VALUE | 5 | params->size_min | 0-u32max |
| PARAM_VALUE | 5 | params->unit | 0 |
| BUF_SIZE | 1 | resource_name | 4-5,10 |
| BUF_SIZE | 1 | resource_name | 4-5,10 |
| DATA_SOURCE | 1 | resource_name | $1 |
| DATA_SOURCE | 2 | resource_size | $2 |
| DATA_SOURCE | 3 | resource_id | $3 |
| DATA_SOURCE | 4 | parent_resource_id | $4 |
| DATA_SOURCE | 5 | params | $5 |
| TERMINATED | 1 | resource_name | 1 |
| HARD_MAX | 3 | resource_id | 5 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | resource_size | unit_array_size |
| LOCK2 | 0 | &devlink->lock | |
| HALF_LOCKED2 | global &dsa2_mutex | ||
| TYPE_LOCK | (struct devlink)->lock |