Documented in 1 files:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/accel/habanalabs/common/memory.c map_device_va() -> init_phys_pg_pack_from_userptr()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->hdev 4096-ptr_max
PARAM_VALUE 0 ctx->hdev->hl_debugfs.userptr_list.next 4096-ptr_max
PARAM_VALUE 0 ctx->hdev->hl_debugfs.userptr_list.next->next 4096-ptr_max
PARAM_VALUE 0 ctx->hdev->hl_debugfs.userptr_list.next->prev 4096-ptr_max
PARAM_VALUE 0 ctx->hdev->hl_debugfs.userptr_spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctx->hdev->pdev->dev.iommu->pci_32bit_workaround 0-1
PARAM_VALUE 1 userptr 4096-ptr_max
PARAM_VALUE 1 userptr->dir 0
PARAM_VALUE 1 userptr->dma_mapped 1
PARAM_VALUE 1 userptr->vm_type 1
PARAM_VALUE 2 pphys_pg_pack 106694648527716352
PARAM_VALUE 3 force_regular_page 0
DATA_SOURCE 0 ctx $0
NOSPEC 1 userptr->addr
USER_DATA 1 userptr->addr 0-s32max[c]
USER_DATA 1 userptr->npages 0-4294967295[c]
USER_DATA 1 userptr->size s64min-s64max[u]
NO_OVERFLOW_SIMPLE 1 userptr->addr
NO_OVERFLOW_SIMPLE 1 userptr->size

drivers/accel/habanalabs/common/memory.c unmap_device_va() -> init_phys_pg_pack_from_userptr()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->hdev->pdev->dev.cma_area->available_count 0-s64max
PARAM_VALUE 0 ctx->mem_hash_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ctx->mem_hash_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ctx->mem_hash_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ctx->mem_hash_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 1 userptr 4096-ptr_max
PARAM_VALUE 2 pphys_pg_pack 5389002875024822272
PARAM_VALUE 2 *pphys_pg_pack 0
PARAM_VALUE 3 force_regular_page 0
BUF_SIZE 0 ctx->cs_pending (-1)-s32max
CAPPED_DATA 0 &ctx->mem_hash_lock 1
DATA_SOURCE 0 ctx $0
RX_PATH
TASK_NOT_RUNNING