Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/infiniband/ulp/rtrs/rtrs-clt.c __rtrs_get_permit() -> get_permit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | clt | 4096-ptr_max |
| PARAM_VALUE | 1 | idx | 0-64 |
| BUF_SIZE | 0 | clt | (-1),2408 |
| BUF_SIZE | 0 | clt | (-1),2408 |
| CAPPED_DATA | 1 | idx | 1 |
| DATA_SOURCE | 0 | clt | $0 |
| DATA_SOURCE | 1 | idx | r find_first_zero_bit |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | clt->queue_depth | |
| UNITS | 1 | idx | unit_array_size |
drivers/infiniband/ulp/rtrs/rtrs-clt.c alloc_permits() -> get_permit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | clt | 4096-ptr_max |
| PARAM_VALUE | 0 | clt->pdu_sz | 0 |
| PARAM_VALUE | 0 | clt->permits | 16,4096-ptr_max |
| PARAM_VALUE | 1 | idx | 0-s32max |
| BUF_SIZE | 0 | clt | 2408 |
| BUF_SIZE | 0 | clt->permits | 0-s32max,18446744071562067968-u64max |
| CAPPED_DATA | 1 | idx | 1 |
| DATA_SOURCE | 0 | clt | $0 |
| FUZZY_MAX | 1 | idx | 0 |
| PARAM_COMPARE | 0 | clt->queue_depth | > $1 |
| PARAM_COMPARE | 1 | idx | < $0->queue_depth |
| MEM_ZERO | 0 | clt->permits_map | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | clt->queue_depth | |
| NO_OVERFLOW_SIMPLE | 1 | idx | |
| UNITS | 1 | idx | unit_array_size |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |