Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/infiniband/core/counters.c alloc_and_bind() -> __counter_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port_counter | 4096-ptr_max |
| PARAM_VALUE | 1 | new_mode | 2 |
| PARAM_VALUE | 2 | new_mask | 0 |
| PARAM_VALUE | 3 | bind_opcnt | 1 |
| BUF_SIZE | 0 | port_counter | 184 |
| CAPPED_DATA | 0 | &port_counter->lock | 1 |
| DATA_SOURCE | 3 | bind_opcnt | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &port_counter->lock | |
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct rdma_port_counter)->lock |
drivers/infiniband/core/counters.c alloc_and_bind() -> __counter_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port_counter | 4096-ptr_max |
| PARAM_VALUE | 0 | port_counter->mode.mode | 2 |
| PARAM_VALUE | 0 | port_counter->num_counters | 0 |
| PARAM_VALUE | 1 | new_mode | 0 |
| PARAM_VALUE | 2 | new_mask | 0 |
| PARAM_VALUE | 3 | bind_opcnt | 0 |
| BUF_SIZE | 0 | port_counter | 184 |
| CAPPED_DATA | 0 | &port_counter->lock | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &port_counter->lock | |
| TYPE_LOCK | (struct rdma_port_counter)->lock |
drivers/infiniband/core/counters.c rdma_counter_free() -> __counter_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port_counter | 4096-ptr_max |
| PARAM_VALUE | 0 | port_counter->mode.mode | 2 |
| PARAM_VALUE | 0 | port_counter->num_counters | 0 |
| PARAM_VALUE | 1 | new_mode | 0 |
| PARAM_VALUE | 2 | new_mask | 0 |
| PARAM_VALUE | 3 | bind_opcnt | 0 |
| BUF_SIZE | 0 | port_counter | 184 |
| CAPPED_DATA | 0 | &port_counter->lock | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &port_counter->lock | |
| TYPE_LOCK | (struct rdma_port_counter)->lock |
drivers/infiniband/core/counters.c rdma_counter_set_auto_mode() -> __counter_set_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port_counter | 4096-ptr_max |
| PARAM_VALUE | 1 | new_mode | 0-2 |
| BUF_SIZE | 0 | port_counter | 184 |
| CAPPED_DATA | 0 | &port_counter->lock | 1 |
| CAPPED_DATA | 1 | new_mode | 1 |
| DATA_SOURCE | 2 | new_mask | $2 |
| DATA_SOURCE | 3 | bind_opcnt | $3 |
| FUZZY_MAX | 1 | new_mode | 2 |
| HARD_MAX | 1 | new_mode | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &port_counter->lock | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct rdma_port_counter)->lock |