Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c mlx4_en_set_channels() -> mlx4_en_safe_replace_resources()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | priv | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->counter_index | 0-4294967295 |
| PARAM_VALUE | 0 | priv->drop_qp.free.done | 0-4294967295 |
| PARAM_VALUE | 0 | priv->drop_qp.free.wait.lock.owner_cpu | 0-4294967295 |
| PARAM_VALUE | 0 | priv->drop_qp.free.wait.lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | priv->flags | 0-4294967295 |
| PARAM_VALUE | 0 | priv->mdev->dev->qp_table_tree.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | priv->mdev->state_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | priv->mdev->state_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | priv->mdev->state_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | priv->mdev->state_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | priv->mdev->state_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | priv->mdev->state_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | priv->mdev->state_lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | priv->port_up | 0 |
| PARAM_VALUE | 0 | priv->prof | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->rx_ring_num | 0-4294967295 |
| PARAM_VALUE | 0 | priv->tx_ring_num | 4096-ptr_max |
| PARAM_VALUE | 1 | tmp | 4096-ptr_max |
| PARAM_VALUE | 1 | tmp->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | tmp->mdev->dev->persist->device_state_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | tmp->mdev->mr.access | 0,1024-66559 |
| PARAM_VALUE | 1 | tmp->mdev->mr.enabled | 0-2 |
| PARAM_VALUE | 1 | tmp->mdev->state_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | tmp->mdev->state_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | tmp->prof | 11560345668075520 |
| PARAM_VALUE | 1 | *tmp->tx_ring_num | 0-4294967295 |
| BUF_SIZE | 1 | tmp | 78568 |
| DATA_SOURCE | 1 | tmp | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &mdev->state_lock | ||
| TYPE_LOCK | (struct mlx4_en_dev)->state_lock |
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c mlx4_en_set_ringparam() -> mlx4_en_safe_replace_resources()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | priv | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->counter_index | 0-4294967295 |
| PARAM_VALUE | 0 | priv->drop_qp.free.done | 0-4294967295 |
| PARAM_VALUE | 0 | priv->drop_qp.free.wait.lock.owner_cpu | 0-4294967295 |
| PARAM_VALUE | 0 | priv->drop_qp.free.wait.lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | priv->flags | 0-4294967295 |
| PARAM_VALUE | 0 | priv->mdev->dev->qp_table_tree.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | priv->mdev->state_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | priv->mdev->state_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | priv->mdev->state_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | priv->mdev->state_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | priv->mdev->state_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | priv->mdev->state_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | priv->mdev->state_lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | priv->port_up | 0 |
| PARAM_VALUE | 0 | priv->rx_ring | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->rx_ring_num | 0-4294967295 |
| PARAM_VALUE | 0 | priv->tx_ring | 4096-ptr_max |
| PARAM_VALUE | 1 | tmp | 4096-ptr_max |
| PARAM_VALUE | 1 | tmp->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | tmp->mdev->dev->persist->device_state_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | tmp->mdev->mr.access | 0,1024-66559 |
| PARAM_VALUE | 1 | tmp->mdev->mr.enabled | 0-2 |
| PARAM_VALUE | 1 | tmp->mdev->state_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | tmp->mdev->state_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | tmp->prof | 2878649339466862592 |
| PARAM_VALUE | 1 | tmp->rx_ring_num | 0-s32max |
| PARAM_VALUE | 1 | *tmp->tx_ring_num | 0-4294967295 |
| BUF_SIZE | 1 | tmp | 78568 |
| DATA_SOURCE | 1 | tmp | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &mdev->state_lock | ||
| TYPE_LOCK | (struct mlx4_en_dev)->state_lock |
drivers/net/ethernet/mellanox/mlx4/en_netdev.c mlx4_en_alloc_tx_queue_per_tc() -> mlx4_en_safe_replace_resources()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | priv | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->counter_index | 0-4294967295 |
| PARAM_VALUE | 0 | priv->drop_qp.free.done | 0-4294967295 |
| PARAM_VALUE | 0 | priv->drop_qp.free.wait.lock.owner_cpu | 0-4294967295 |
| PARAM_VALUE | 0 | priv->drop_qp.free.wait.lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | priv->flags | 0-4294967295 |
| PARAM_VALUE | 0 | priv->mdev->dev->qp_table_tree.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | priv->mdev->state_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | priv->mdev->state_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | priv->mdev->state_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | priv->mdev->state_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | priv->mdev->state_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | priv->mdev->state_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | priv->mdev->state_lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | priv->port_up | 0 |
| PARAM_VALUE | 0 | priv->rx_ring_num | 0-4294967295 |
| PARAM_VALUE | 1 | tmp | 4096-ptr_max |
| PARAM_VALUE | 1 | tmp->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | tmp->mdev->dev->persist->device_state_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | tmp->mdev->mr.access | 0,1024-66559 |
| PARAM_VALUE | 1 | tmp->mdev->mr.enabled | 0-2 |
| PARAM_VALUE | 1 | tmp->mdev->state_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | tmp->mdev->state_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | tmp->prof | 4715939051659575296 |
| PARAM_VALUE | 1 | tmp->rx_ring_num | 0-s32max |
| PARAM_VALUE | 1 | *tmp->tx_ring_num | 0-4294967295 |
| BUF_SIZE | 1 | tmp | 78568 |
| DATA_SOURCE | 1 | tmp | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &mdev->state_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct mlx4_en_dev)->state_lock |
drivers/net/ethernet/mellanox/mlx4/en_netdev.c mlx4_en_reset_config() -> mlx4_en_safe_replace_resources()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | priv | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->counter_index | 0-4294967295 |
| PARAM_VALUE | 0 | priv->drop_qp.free.done | 0-4294967295 |
| PARAM_VALUE | 0 | priv->drop_qp.free.wait.lock.owner_cpu | 0-4294967295 |
| PARAM_VALUE | 0 | priv->drop_qp.free.wait.lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | priv->flags | 0-4294967295 |
| PARAM_VALUE | 0 | priv->mdev->dev->qp_table_tree.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | priv->mdev->state_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | priv->mdev->state_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | priv->mdev->state_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | priv->mdev->state_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | priv->mdev->state_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | priv->mdev->state_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | priv->mdev->state_lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | priv->port_up | 0 |
| PARAM_VALUE | 0 | priv->rx_ring_num | 0-4294967295 |
| PARAM_VALUE | 1 | tmp | 4096-ptr_max |
| PARAM_VALUE | 1 | tmp->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | tmp->mdev->dev->persist->device_state_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | tmp->mdev->mr.access | 0,1024-66559 |
| PARAM_VALUE | 1 | tmp->mdev->mr.enabled | 0-2 |
| PARAM_VALUE | 1 | tmp->mdev->state_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | tmp->mdev->state_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | tmp->prof | 1236414981855416320 |
| PARAM_VALUE | 1 | tmp->rx_ring_num | 0-s32max |
| PARAM_VALUE | 1 | *tmp->tx_ring_num | 0-4294967295 |
| BUF_SIZE | 1 | tmp | 78568 |
| DATA_SOURCE | 1 | tmp | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 1 | tmp->prof->hwtstamp_config.flags | s32min-s32max |
| USER_DATA | 1 | tmp->prof->hwtstamp_config.rx_filter | 0 |
| USER_DATA | 1 | tmp->prof->hwtstamp_config.tx_type | 0-1 |
| LOCK2 | &mdev->state_lock | ||
| TYPE_LOCK | (struct mlx4_en_dev)->state_lock |
drivers/net/ethernet/mellanox/mlx4/en_netdev.c mlx4_xdp_set() -> mlx4_en_safe_replace_resources()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | priv | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->counter_index | 0-4294967295 |
| PARAM_VALUE | 0 | priv->drop_qp.free.done | 0-4294967295 |
| PARAM_VALUE | 0 | priv->drop_qp.free.wait.lock.owner_cpu | 0-4294967295 |
| PARAM_VALUE | 0 | priv->drop_qp.free.wait.lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | priv->flags | 0-4294967295 |
| PARAM_VALUE | 0 | priv->mdev->dev->qp_table_tree.xa_flags | 0-4294967295 |
| PARAM_VALUE | 0 | priv->mdev->state_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | priv->mdev->state_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | priv->mdev->state_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | priv->mdev->state_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | priv->mdev->state_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | priv->mdev->state_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | priv->mdev->state_lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | priv->port_up | 0 |
| PARAM_VALUE | 0 | priv->rx_ring_num | 0-4294967295 |
| PARAM_VALUE | 0 | priv->tx_ring_num | 4096-ptr_max |
| PARAM_VALUE | 1 | tmp | 4096-ptr_max |
| PARAM_VALUE | 1 | tmp->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | tmp->mdev->dev->persist->device_state_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | tmp->mdev->mr.access | 0,1024-66559 |
| PARAM_VALUE | 1 | tmp->mdev->mr.enabled | 0-2 |
| PARAM_VALUE | 1 | tmp->mdev->state_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | tmp->mdev->state_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | tmp->prof | 6801831202754191360 |
| PARAM_VALUE | 1 | tmp->rx_ring_num | 0-s32max |
| PARAM_VALUE | 1 | *tmp->tx_ring_num | 0-4294967295 |
| BUF_SIZE | 1 | tmp | 78568 |
| DATA_SOURCE | 1 | tmp | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &mdev->state_lock | ||
| HALF_LOCKED2 | &dev->lock | ||
| TYPE_LOCK | (struct mlx4_en_dev)->state_lock |