Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- drivers/infiniband/hw/mlx4/cq.c
- drivers/infiniband/hw/mlx4/qp.c
- drivers/infiniband/hw/mlx4/srq.c
- drivers/net/ethernet/mellanox/mlx4/alloc.c, line 766
- drivers/net/ethernet/mellanox/mlx4/eq.c, line 1028
- drivers/net/ethernet/mellanox/mlx4/mr.c
Smatch caller information:
drivers/infiniband/hw/mlx4/qp.c create_qp_common() -> mlx4_mtt_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 2 | page_shift | 0-64 |
| PARAM_VALUE | 3 | mtt | 4096-ptr_max |
| DATA_SOURCE | 2 | page_shift | r mlx4_ib_umem_calc_optimal_mtt_size |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/infiniband/hw/mlx4/qp.c create_qp_common() -> mlx4_mtt_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->caps.max_sq_desc_sz | s32min-(-1),4-s32max |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 1 | npages | 1-524288 |
| PARAM_VALUE | 2 | page_shift | s32min-44 |
| PARAM_VALUE | 3 | mtt | 4096-ptr_max |
| CAPPED_DATA | 0 | dev->caps.max_sq_desc_sz | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | npages | unit_array_size |
drivers/infiniband/hw/mlx4/qp.c create_rq() -> mlx4_mtt_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 2 | page_shift | 0-64 |
| PARAM_VALUE | 3 | mtt | 4096-ptr_max |
| DATA_SOURCE | 2 | page_shift | r mlx4_ib_umem_calc_optimal_mtt_size |
drivers/infiniband/hw/mlx4/srq.c mlx4_ib_create_srq() -> mlx4_mtt_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->caps.max_srq_wqes | s32min-(-1),1-s32max |
| PARAM_VALUE | 2 | page_shift | 12 |
| PARAM_VALUE | 3 | mtt | 4096-ptr_max |
| CAPPED_DATA | 1 | npages | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | npages | 0-s32max |
| HALF_LOCKED2 | &devr->srq_lock | ||
| HALF_LOCKED2 | global &device_list_mutex |
drivers/infiniband/hw/mlx4/srq.c mlx4_ib_create_srq() -> mlx4_mtt_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->caps.max_srq_wqes | s32min-(-1),1-s32max |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.cma_area->alloc_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.cma_area->alloc_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.cma_area->alloc_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.dma_io_tlb_pools.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.dma_io_tlb_pools.next->prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.dma_mem->spinlock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | npages | 1-524288 |
| PARAM_VALUE | 2 | page_shift | s32min-44 |
| PARAM_VALUE | 3 | mtt | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | npages | unit_array_size |
| HALF_LOCKED2 | &devr->srq_lock | ||
| HALF_LOCKED2 | global &device_list_mutex |
drivers/net/ethernet/mellanox/mlx4/eq.c mlx4_create_eq() -> mlx4_mtt_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->caps.num_uars | 1-s32max |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.iommu->attach_deferred | 0-1 |
| PARAM_VALUE | 1 | npages | 0-1048575 |
| PARAM_VALUE | 2 | page_shift | 12 |
| PARAM_VALUE | 3 | mtt | 4096-ptr_max |
| CAPPED_DATA | 0 | dev->caps.num_pds | 1 |
| CAPPED_DATA | 1 | npages | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| NO_OVERFLOW_SIMPLE | 1 | npages | |
| UNITS | 1 | npages | unit_array_size |
drivers/infiniband/hw/mlx4/cq.c mlx4_alloc_resize_umem() -> mlx4_mtt_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->caps.max_cqes | s32min-(-1),1-s32max |
| PARAM_VALUE | 2 | page_shift | 0-64 |
| PARAM_VALUE | 3 | mtt | 4096-ptr_max |
| DATA_SOURCE | 2 | page_shift | r mlx4_ib_umem_calc_optimal_mtt_size |
| LOCK2 | &cq->resize_mutex | ||
| HALF_LOCKED2 | &file->device->disassociate_srcu | ||
| TYPE_LOCK | (struct mlx4_ib_cq)->resize_mutex |
drivers/infiniband/hw/mlx4/cq.c mlx4_ib_alloc_cq_buf() -> mlx4_mtt_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->caps.max_cqes | s32min-(-1),1-s32max |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 1 | npages | 1-524288 |
| PARAM_VALUE | 2 | page_shift | s32min-44 |
| PARAM_VALUE | 3 | mtt | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | npages | unit_array_size |
| HALF_LOCKED2 | &cq->resize_mutex |
drivers/infiniband/hw/mlx4/cq.c mlx4_ib_create_user_cq() -> mlx4_mtt_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->caps.max_cqes | s32min-(-1),1-s32max |
| PARAM_VALUE | 2 | page_shift | 0-64 |
| PARAM_VALUE | 3 | mtt | 4096-ptr_max |
| DATA_SOURCE | 2 | page_shift | r mlx4_ib_umem_calc_optimal_mtt_size |
drivers/net/ethernet/mellanox/mlx4/alloc.c mlx4_alloc_hwq_res() -> mlx4_mtt_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->persist | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->persist->pdev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.cma_area->alloc_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.cma_area->alloc_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.cma_area->alloc_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.dma_io_tlb_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.dma_io_tlb_pools.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.dma_io_tlb_pools.next->prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.dma_mem->spinlock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.iommu->attach_deferred | 0-1 |
| PARAM_VALUE | 0 | dev->persist->pdev->dev.iommu->pci_32bit_workaround | 0-1 |
| PARAM_VALUE | 1 | npages | 1-4 |
| PARAM_VALUE | 2 | page_shift | s32min-44 |
| PARAM_VALUE | 3 | mtt | 4096-ptr_max |
| DATA_SOURCE | 0 | dev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | npages | unit_array_size |
drivers/net/ethernet/mellanox/mlx4/mr.c mlx4_mr_alloc_reserved() -> mlx4_mtt_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 2 | page_shift | 0-64 |
| PARAM_VALUE | 3 | mtt | 4096-ptr_max |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | npages | $6 |
| DATA_SOURCE | 2 | page_shift | $7 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | npages |
drivers/net/ethernet/mellanox/mlx4/mr.c mlx4_mr_rereg_mem_write() -> mlx4_mtt_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->persist->device_state_mutex->first_waiter->task->blocked_lock.owner | (-4611686018427387904)-4611686018427387903 |
| 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->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->persist->device_state_mutex.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | dev->persist->device_state_mutex.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | dev->persist->device_state_mutex.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | dev->persist->device_state_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 2 | page_shift | 12 |
| PARAM_VALUE | 3 | mtt | 4096-ptr_max |
| PARAM_VALUE | 3 | mtt->order | (-1) |
| CAPPED_DATA | 1 | npages | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | npages | $4 |
| DATA_SOURCE | 2 | page_shift | $5 |
| USER_DATA | 1 | npages | 0-s32max |
| HALF_LOCKED2 | &file->device->disassociate_srcu |