Defined in 3 files as a function:

Referenced in 7 files:

Smatch caller information:

drivers/infiniband/hw/mthca/mthca_provider.c mthca_alloc_ucontext() -> to_mucontext()

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/mthca/mthca_provider.c mthca_dealloc_ucontext() -> to_mucontext()

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/mthca/mthca_provider.c mthca_dealloc_ucontext() -> to_mucontext()

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/mthca/mthca_provider.c mthca_dealloc_ucontext() -> to_mucontext()

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/mthca/mthca_provider.c mthca_mmap_uar() -> to_mucontext()

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/mlx5/dm.c handle_alloc_dm_sw_icm() -> to_mucontext()

Type Parameter Key Value
PARAM_VALUE 0 ibucontext 4096-ptr_max
DATA_SOURCE 0 ibucontext $0
CAPABLE 0 13
CAPABLE 0 17

drivers/infiniband/hw/mlx5/dm.c handle_alloc_dm_sw_icm() -> to_mucontext()

Type Parameter Key Value
PARAM_VALUE 0 ibucontext 4096-ptr_max
DATA_SOURCE 0 ibucontext $0
CAPABLE 0 13
CAPABLE 0 17

drivers/infiniband/hw/mlx4/main.c mlx4_ib_alloc_ucontext() -> to_mucontext()

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/mlx4/main.c mlx4_ib_dealloc_ucontext() -> to_mucontext()

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/mlx4/main.c mlx4_ib_mmap() -> to_mucontext()

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/mlx4/main.c mlx4_ib_mmap() -> to_mucontext()

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/mlx5/std_types.c mlx5_ib_handler_MLX5_IB_METHOD_GET_DATA_DIRECT_SYSFS_PATH() -> to_mucontext()

Type Parameter Key Value
PARAM_VALUE 0 ibucontext 1-u64max

drivers/infiniband/hw/mlx5/std_types.c mlx5_ib_handler_MLX5_IB_METHOD_QUERY_PORT() -> to_mucontext()

Type Parameter Key Value
PARAM_VALUE 0 ibucontext 1-u64max

drivers/infiniband/hw/mlx5/main.c mlx5_ib_alloc_ucontext() -> to_mucontext()

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/mlx5/main.c mlx5_ib_dealloc_ucontext() -> to_mucontext()

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/mlx5/main.c mlx5_ib_handler_MLX5_IB_METHOD_UAR_OBJ_ALLOC() -> to_mucontext()

Type Parameter Key Value
PARAM_VALUE 0 ibucontext 1-u64max

drivers/infiniband/hw/mlx5/main.c mlx5_ib_handler_MLX5_IB_METHOD_VAR_OBJ_ALLOC() -> to_mucontext()

Type Parameter Key Value
PARAM_VALUE 0 ibucontext 1-u64max

drivers/infiniband/hw/mlx5/main.c mlx5_ib_mmap() -> to_mucontext()

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/mlx5/main.c mlx5_ib_mmap_free() -> to_mucontext()

Type Parameter Key Value
PARAM_VALUE 0 ibucontext 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING

drivers/infiniband/hw/mlx5/main.c set_ucontext_resp() -> to_mucontext()

Type Parameter Key Value
PARAM_VALUE 0 ibucontext 4096-ptr_max
DATA_SOURCE 0 ibucontext $0
HALF_LOCKED2 &file->hw_destroy_rwsem
HALF_LOCKED2 &file->ucontext_lock

drivers/infiniband/hw/mlx5/qos.c mlx5_ib_handler_MLX5_IB_METHOD_PP_OBJ_ALLOC() -> to_mucontext()

Type Parameter Key Value
PARAM_VALUE 0 ibucontext 1-u64max

drivers/infiniband/hw/mlx5/devx.c devx_ufile2uctx() -> to_mucontext()

Type Parameter Key Value
PARAM_VALUE 0 ibucontext 1-u64max