Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/infiniband/hw/irdma/utils.c irdma_alloc_ws_node_id() -> irdma_alloc_rsrc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rf | 4096-ptr_max |
| PARAM_VALUE | 3 | req_rsrc_num | 234915248974098432 |
| PARAM_VALUE | 4 | next | 4029208714774278144 |
| PARAM_VALUE | 4 | *next | 1 |
| BUF_SIZE | 1 | rsrc_array | 128 |
| DATA_SOURCE | 0 | rf | r dev_to_rf |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dev->ws_mutex | ||
| HALF_LOCKED2 | &cdev_info->adev->dev.mutex | ||
| TYPE_LOCK | (struct irdma_sc_dev)->ws_mutex |
drivers/infiniband/hw/irdma/utils.c irdma_arp_table() -> irdma_alloc_rsrc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rf | 4096-ptr_max |
| PARAM_VALUE | 0 | rf->arp_table_size | 0-s32max |
| PARAM_VALUE | 0 | rf->cqp.sc_cqp.dev->hw->device->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | rf->iw_qvlist->num_vectors | 1-s32max |
| PARAM_VALUE | 0 | rf->pble_rsrc->pinfo.pble_shift | 0,6 |
| PARAM_VALUE | 0 | rf->sc_dev.hw->device->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 2 | max_rsrc | 0-s32max |
| PARAM_VALUE | 3 | req_rsrc_num | 1785618586027048960 |
| PARAM_VALUE | 3 | *req_rsrc_num | 0 |
| PARAM_VALUE | 4 | next | 4096-ptr_max |
| BUF_SIZE | 0 | rf | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rf | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | rf->arp_table_size | 1 |
| CAPPED_DATA | 2 | max_rsrc | 1 |
| DATA_SOURCE | 0 | rf | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | rf | unit_byte |
| LOCK2 | flags | ||
| LOCK2 | 0 | &rf->arp_lock | |
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct irdma_pci_f)->arp_lock |
drivers/infiniband/hw/irdma/utils.c irdma_puda_create_ah() -> irdma_alloc_rsrc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rf | 4096-ptr_max |
| PARAM_VALUE | 3 | req_rsrc_num | 3667789918412865588,6994176974303043636 |
| PARAM_VALUE | 3 | *req_rsrc_num | 0 |
| PARAM_VALUE | 4 | next | 4096-ptr_max |
| DATA_SOURCE | 0 | rf | r dev_to_rf |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->puda_cq_lock | ||
| HALF_LOCKED2 | &pfpdu->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq |
drivers/infiniband/hw/irdma/verbs.c irdma_alloc_pd() -> irdma_alloc_rsrc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rf | 4096-ptr_max |
| PARAM_VALUE | 3 | req_rsrc_num | 1353032042368184320 |
| PARAM_VALUE | 3 | *req_rsrc_num | 0 |
| PARAM_VALUE | 4 | next | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | rf | unit_byte |
drivers/infiniband/hw/irdma/verbs.c irdma_attach_mcast() -> irdma_alloc_rsrc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rf | 4096-ptr_max |
| PARAM_VALUE | 0 | rf->qh_list_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 3 | req_rsrc_num | 172751380277657600 |
| PARAM_VALUE | 4 | next | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | rf | unit_byte |
| HALF_LOCKED2 | &obj->mcast_lock |
drivers/infiniband/hw/irdma/verbs.c irdma_create_cq() -> irdma_alloc_rsrc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rf | 4096-ptr_max |
| PARAM_VALUE | 3 | req_rsrc_num | 8971762999987703808 |
| PARAM_VALUE | 3 | *req_rsrc_num | 0 |
| PARAM_VALUE | 4 | next | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | rf | unit_byte |
drivers/infiniband/hw/irdma/verbs.c irdma_create_hw_ah() -> irdma_alloc_rsrc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rf | 4096-ptr_max |
| PARAM_VALUE | 3 | req_rsrc_num | 4096-ptr_max |
| PARAM_VALUE | 4 | next | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | rf | unit_byte |
| HALF_LOCKED2 | &iwdev->rf->ah_tbl_lock |
drivers/infiniband/hw/irdma/verbs.c irdma_create_qp() -> irdma_alloc_rsrc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rf | 4096-ptr_max |
| PARAM_VALUE | 0 | rf->sc_dev.hw | 4096-ptr_max |
| PARAM_VALUE | 0 | rf->sc_dev.hw->device | 4096-ptr_max |
| PARAM_VALUE | 0 | rf->sc_dev.hw->device->cma_area->alloc_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | rf->sc_dev.hw->device->cma_area->alloc_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | rf->sc_dev.hw->device->cma_area->alloc_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | rf->sc_dev.hw->device->cma_area->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | rf->sc_dev.hw->device->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | rf->sc_dev.hw->device->dma_io_tlb_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | rf->sc_dev.hw->device->dma_io_tlb_pools.next | 4096-ptr_max |
| PARAM_VALUE | 0 | rf->sc_dev.hw->device->dma_io_tlb_pools.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | rf->sc_dev.hw->device->dma_io_tlb_pools.next->prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | rf->sc_dev.hw->device->dma_mem->spinlock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | rf->sc_dev.hw->device->dma_uses_io_tlb | 1 |
| PARAM_VALUE | 0 | rf->sc_dev.hw->device->iommu->attach_deferred | 0-1 |
| PARAM_VALUE | 3 | req_rsrc_num | 3323537485715947520 |
| PARAM_VALUE | 3 | *req_rsrc_num | 0 |
| PARAM_VALUE | 4 | next | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | rf | unit_byte |
| UNITS | 2 | max_rsrc | unit_array_size |
drivers/infiniband/hw/irdma/verbs.c irdma_create_srq() -> irdma_alloc_rsrc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rf | 4096-ptr_max |
| PARAM_VALUE | 3 | req_rsrc_num | 4096-ptr_max |
| PARAM_VALUE | 4 | next | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | rf | unit_byte |
| HALF_LOCKED2 | &devr->srq_lock | ||
| HALF_LOCKED2 | global &device_list_mutex |
drivers/infiniband/hw/irdma/verbs.c irdma_create_stag() -> irdma_alloc_rsrc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rf | 4096-ptr_max |
| PARAM_VALUE | 0 | rf->pble_rsrc->dev->hw->device->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 3 | req_rsrc_num | 2068692581276078080 |
| PARAM_VALUE | 3 | *req_rsrc_num | 0 |
| PARAM_VALUE | 4 | next | 6369764312532553728 |
| PARAM_VALUE | 4 | *next | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | rf->pble_rsrc->allocdpbles | |
| UNITS | 0 | rf | unit_byte |
drivers/infiniband/hw/irdma/verbs.c irdma_setup_gsi_qp_rsrc() -> irdma_alloc_rsrc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rf | 4096-ptr_max |
| PARAM_VALUE | 0 | rf->hwqp1_rsvd | 1 |
| PARAM_VALUE | 0 | rf->rdma_ver | 3-255 |
| PARAM_VALUE | 0 | rf->rsrc_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 3 | req_rsrc_num | 3323537485715947520 |
| PARAM_VALUE | 3 | *req_rsrc_num | 0 |
| PARAM_VALUE | 4 | next | 4096-ptr_max |
| DATA_SOURCE | 3 | req_rsrc_num | $1 |
| FUZZY_MAX | 0 | rf->rdma_ver | 3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | rf | unit_byte |
| UNITS | 2 | max_rsrc | unit_array_size |