Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- drivers/net/ethernet/mellanox/mlx4/cmd.c, line 2833
- drivers/net/ethernet/mellanox/mlx4/eq.c
- drivers/net/ethernet/mellanox/mlx4/main.c
- drivers/net/ethernet/mellanox/mlx4/port.c
- drivers/net/ethernet/mellanox/mlx4/resource_tracker.c, line 584
Smatch caller information:
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c mlx4_init_resource_tracker() -> mlx4_phys_to_slaves_pport()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->caps.function | 0-s32max |
| PARAM_VALUE | 0 | dev->caps.num_ports | 1-s32max |
| PARAM_VALUE | 0 | dev->num_slaves | 0-s32max |
| PARAM_VALUE | 0 | dev->persist | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->persist->pdev | 4096-ptr_max |
| CAPPED_DATA | 0 | dev->num_slaves | 1 |
| CAPPED_DATA | 1 | port | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| FUZZY_MAX | 0 | dev->num_slaves | 1 |
| NO_OVERFLOW_SIMPLE | 0 | dev->num_slaves |
drivers/net/ethernet/mellanox/mlx4/port.c mlx4_get_base_gid_ix() -> mlx4_phys_to_slaves_pport()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.cma_area->available_count | 0-s64max |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | *dev->caps.ib_port_def_cap | 0-4294967295 |
| PARAM_VALUE | 0 | *dev->caps.port_mask | 0-4294967295 |
| PARAM_VALUE | 0 | *dev->caps.port_type | 0-4294967295 |
| PARAM_VALUE | 0 | *dev->caps.possible_type | 0-4294967295 |
| PARAM_VALUE | 0 | *dev->phys_caps.gid_phys_table_len | 0-4294967295 |
| PARAM_VALUE | 0 | *dev->phys_caps.pkey_phys_table_len | 0-4294967295 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | port | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | port | 1-255[c] |
| USER_DATA | 1 | port | 1-255[c] |
| NO_OVERFLOW_SIMPLE | 0 | dev->caps.cqe_size | |
| NO_OVERFLOW_SIMPLE | 0 | dev->caps.max_counters | |
| NO_OVERFLOW_SIMPLE | 0 | dev->caps.num_comp_vectors | |
| NO_OVERFLOW_SIMPLE | 0 | dev->caps.num_ports | |
| NO_OVERFLOW_SIMPLE | 0 | dev->num_slaves | |
| NO_OVERFLOW_SIMPLE | 0 | dev->persist->num_vfs | |
| NO_OVERFLOW_SIMPLE | 0 | dev->persist->pdev->dev.cma_area->available_count | |
| HALF_LOCKED2 | &pool->lock |
drivers/net/ethernet/mellanox/mlx4/port.c mlx4_get_slave_from_roce_gid() -> mlx4_phys_to_slaves_pport()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | port | $1 |
| HALF_LOCKED2 | &pool->lock |
drivers/net/ethernet/mellanox/mlx4/port.c mlx4_get_slave_num_gids() -> mlx4_phys_to_slaves_pport()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->persist | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->persist->catas_wq->flush_color | s32min-s32max |
| PARAM_VALUE | 0 | dev->persist->catas_wq->work_color | s32min-s32max |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.cma_area->available_count | 0-s64max |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | *dev->caps.ib_port_def_cap | 0-4294967295 |
| PARAM_VALUE | 0 | *dev->caps.port_mask | 0-4294967295 |
| PARAM_VALUE | 0 | *dev->caps.port_type | 0-4294967295 |
| PARAM_VALUE | 0 | *dev->caps.possible_type | 0-4294967295 |
| PARAM_VALUE | 0 | *dev->phys_caps.gid_phys_table_len | 0-4294967295 |
| PARAM_VALUE | 0 | *dev->phys_caps.pkey_phys_table_len | 0-4294967295 |
| CAPPED_DATA | 1 | port | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | port | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | port | 1-255[c] |
| USER_DATA | 1 | port | 1-255[c] |
| NO_OVERFLOW_SIMPLE | 0 | dev->caps.cqe_size | |
| NO_OVERFLOW_SIMPLE | 0 | dev->caps.max_counters | |
| NO_OVERFLOW_SIMPLE | 0 | dev->caps.num_comp_vectors | |
| NO_OVERFLOW_SIMPLE | 0 | dev->caps.num_ports | |
| NO_OVERFLOW_SIMPLE | 0 | dev->caps.sqp_demux | |
| NO_OVERFLOW_SIMPLE | 0 | dev->num_slaves | |
| NO_OVERFLOW_SIMPLE | 0 | dev->persist->num_vfs | |
| NO_OVERFLOW_SIMPLE | 0 | dev->persist->pdev->dev.cma_area->available_count |
drivers/net/ethernet/mellanox/mlx4/main.c mlx4_mf_bond() -> mlx4_phys_to_slaves_pport()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->caps.flags2 | 2097152-u64max |
| PARAM_VALUE | 0 | dev->flags | 0,128-u64max |
| PARAM_VALUE | 0 | dev->persist->device_state_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->persist->device_state_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->persist->device_state_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->persist->device_state_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->persist->device_state_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | port | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| LOCK2 | &priv->bond_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct mlx4_priv)->bond_mutex |
drivers/net/ethernet/mellanox/mlx4/main.c mlx4_mf_bond() -> mlx4_phys_to_slaves_pport()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->caps.flags2 | 2097152-u64max |
| PARAM_VALUE | 0 | dev->flags | 0,128-u64max |
| PARAM_VALUE | 0 | dev->persist->device_state_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->persist->device_state_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->persist->device_state_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->persist->device_state_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->persist->device_state_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | port | 2 |
| DATA_SOURCE | 0 | dev | $0 |
| LOCK2 | &priv->bond_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct mlx4_priv)->bond_mutex |
drivers/net/ethernet/mellanox/mlx4/eq.c mlx4_eq_int() -> mlx4_phys_to_slaves_pport()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | port | 0-15 |
| CAPPED_DATA | 1 | port | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq |
drivers/net/ethernet/mellanox/mlx4/eq.c set_all_slave_state() -> mlx4_phys_to_slaves_pport()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->caps.port_type | 4096-ptr_max |
| PARAM_VALUE | 1 | port | 0-15 |
| CAPPED_DATA | 1 | port | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | port | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags |