Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/infiniband/hw/usnic/usnic_ib_verbs.c usnic_ib_alloc_ucontext() -> to_ucontext()

Type Parameter Key Value
PARAM_VALUE 0 ibucontext 4096-ptr_max
DATA_SOURCE 0 ibucontext $0
LOCK2 &file->hw_destroy_rwsem
LOCK2 &file->ucontext_lock
TYPE_LOCK (struct ib_uverbs_file)->hw_destroy_rwsem
TYPE_LOCK (struct ib_uverbs_file)->ucontext_lock

drivers/infiniband/hw/usnic/usnic_ib_verbs.c usnic_ib_mmap() -> to_ucontext()

Type Parameter Key Value
PARAM_VALUE 0 ibucontext 4096-ptr_max
DATA_SOURCE 0 ibucontext $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &file->device->disassociate_srcu
LOCK2 &file->disassociation_lock
HALF_LOCKED2 &ipcp->lock
TYPE_LOCK (struct ib_uverbs_device)->disassociate_srcu
TYPE_LOCK (struct ib_uverbs_file)->disassociation_lock

drivers/infiniband/hw/irdma/verbs.c irdma_alloc_ucontext() -> to_ucontext()

Type Parameter Key Value
PARAM_VALUE 0 ibucontext 4096-ptr_max
DATA_SOURCE 0 ibucontext $0
LOCK2 &file->hw_destroy_rwsem
LOCK2 &file->ucontext_lock
TYPE_LOCK (struct ib_uverbs_file)->hw_destroy_rwsem
TYPE_LOCK (struct ib_uverbs_file)->ucontext_lock

drivers/infiniband/hw/irdma/verbs.c irdma_dealloc_ucontext() -> to_ucontext()

Type Parameter Key Value
PARAM_VALUE 0 ibucontext 4096-ptr_max
DATA_SOURCE 0 ibucontext $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ufile->hw_destroy_rwsem
TYPE_LOCK (struct ib_uverbs_file)->hw_destroy_rwsem

drivers/infiniband/hw/irdma/verbs.c irdma_mmap() -> to_ucontext()

Type Parameter Key Value
PARAM_VALUE 0 ibucontext 4096-ptr_max
DATA_SOURCE 0 ibucontext $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &file->device->disassociate_srcu
LOCK2 &file->disassociation_lock
HALF_LOCKED2 &ipcp->lock
TYPE_LOCK (struct ib_uverbs_device)->disassociate_srcu
TYPE_LOCK (struct ib_uverbs_file)->disassociation_lock