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_try_alloc_resources()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | priv | 4096-ptr_max |
| 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->prof | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->tx_ring_num | 4096-ptr_max |
| PARAM_VALUE | 1 | tmp | 4096-ptr_max |
| PARAM_VALUE | 2 | prof | 11560345668075520 |
| PARAM_VALUE | 3 | carry_xdp_prog | 1 |
| BUF_SIZE | 1 | tmp | 78568 |
| DATA_SOURCE | 1 | tmp | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| 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_try_alloc_resources()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | priv | 4096-ptr_max |
| 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->rx_ring | 4096-ptr_max |
| PARAM_VALUE | 0 | priv->tx_ring | 4096-ptr_max |
| PARAM_VALUE | 1 | tmp | 4096-ptr_max |
| PARAM_VALUE | 2 | prof | 2878649339466862592 |
| PARAM_VALUE | 3 | carry_xdp_prog | 1 |
| BUF_SIZE | 1 | tmp | 78568 |
| DATA_SOURCE | 1 | tmp | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| 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_try_alloc_resources()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | priv | 4096-ptr_max |
| 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 | 1 | tmp | 4096-ptr_max |
| PARAM_VALUE | 2 | prof | 4715939051659575296 |
| PARAM_VALUE | 2 | prof->num_up | 1,8 |
| PARAM_VALUE | 3 | carry_xdp_prog | 1 |
| BUF_SIZE | 1 | tmp | 78568 |
| DATA_SOURCE | 1 | tmp | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| 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_try_alloc_resources()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | priv | 4096-ptr_max |
| 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 | 1 | tmp | 4096-ptr_max |
| PARAM_VALUE | 2 | prof | 1236414981855416320 |
| PARAM_VALUE | 3 | carry_xdp_prog | 1 |
| BUF_SIZE | 1 | tmp | 78568 |
| DATA_SOURCE | 1 | tmp | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | prof->hwtstamp_config.flags | s32min-s32max |
| USER_DATA | 2 | prof->hwtstamp_config.rx_filter | 0 |
| USER_DATA | 2 | 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_try_alloc_resources()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | priv | 4096-ptr_max |
| 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->tx_ring_num | 4096-ptr_max |
| PARAM_VALUE | 1 | tmp | 4096-ptr_max |
| PARAM_VALUE | 2 | prof | 6801831202754191360 |
| PARAM_VALUE | 3 | carry_xdp_prog | 0 |
| BUF_SIZE | 1 | tmp | 78568 |
| DATA_SOURCE | 1 | tmp | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &mdev->state_lock | ||
| HALF_LOCKED2 | &dev->lock | ||
| TYPE_LOCK | (struct mlx4_en_dev)->state_lock |