Searched refs:ufile (Results 1 – 11 of 11) sorted by relevance
| /linux/drivers/infiniband/core/ |
| H A D | ib_core_uverbs.c | 38 struct ib_uverbs_file *ufile = vma->vm_file->private_data; in rdma_umap_priv_init() local 48 mutex_lock(&ufile->umap_lock); in rdma_umap_priv_init() 49 list_add(&priv->list, &ufile->umaps); in rdma_umap_priv_init() 50 mutex_unlock(&ufile->umap_lock); in rdma_umap_priv_init() 75 struct ib_uverbs_file *ufile = ucontext->ufile; in rdma_user_mmap_io() local 86 vma->vm_file->private_data != ufile)) in rdma_user_mmap_io() 88 lockdep_assert_held(&ufile->device->disassociate_srcu); in rdma_user_mmap_io() 288 struct ib_uverbs_file *ufile = ucontext->ufile; in rdma_user_mmap_entry_insert_range() local 309 mutex_lock(&ufile->umap_lock); in rdma_user_mmap_entry_insert_range() 349 mutex_unlock(&ufile->umap_lock); in rdma_user_mmap_entry_insert_range() [all …]
|
| H A D | uverbs_main.c | 98 struct ib_ucontext *ib_uverbs_get_ucontext_file(struct ib_uverbs_file *ufile) in ib_uverbs_get_ucontext_file() argument 105 struct ib_ucontext *ucontext = smp_load_acquire(&ufile->ucontext); in ib_uverbs_get_ucontext_file() 107 if (!srcu_dereference(ufile->device->ib_dev, in ib_uverbs_get_ucontext_file() 108 &ufile->device->disassociate_srcu)) in ib_uverbs_get_ucontext_file() 493 struct ib_uverbs_file *uverbs_file = async_file->uobj.ufile; in ib_uverbs_init_async_event_file() 615 bundle.ufile = file; in ib_uverbs_write() 722 struct ib_uverbs_file *ufile = vma->vm_file->private_data; in rdma_umap_open() local 730 if (!down_read_trylock(&ufile->hw_destroy_rwsem)) in rdma_umap_open() 732 mutex_lock(&ufile->disassociation_lock); in rdma_umap_open() 737 if (!ufile->ucontext) in rdma_umap_open() [all …]
|
| H A D | uverbs_std_types.c | 114 mutex_lock(&attrs->ufile->device->xrcd_tree_mutex); in uverbs_free_xrcd() 116 mutex_unlock(&attrs->ufile->device->xrcd_tree_mutex); in uverbs_free_xrcd()
|
| H A D | uverbs_ioctl.c | 442 &pbundle->bundle.ufile->device->disassociate_srcu); in ib_uverbs_run_method() 558 static int ib_uverbs_cmd_verbs(struct ib_uverbs_file *ufile, in ib_uverbs_cmd_verbs() argument 563 struct uverbs_api *uapi = ufile->device->uapi; in ib_uverbs_cmd_verbs() 600 pbundle->bundle.ufile = ufile; in ib_uverbs_cmd_verbs()
|
| H A D | uverbs_cmd.c | 209 struct ib_uverbs_file *ufile = attrs->ufile; in ib_alloc_ucontext() local 213 ib_dev = srcu_dereference(ufile->device->ib_dev, in ib_alloc_ucontext() 214 &ufile->device->disassociate_srcu); in ib_alloc_ucontext() 223 ucontext->ufile = ufile; in ib_alloc_ucontext() 235 struct ib_uverbs_file *file = attrs->ufile; in ib_init_ucontext() 318 .num_comp_vectors = attrs->ufile->device->num_comp_vectors, in ib_uverbs_get_context() 586 struct ib_uverbs_device *ibudev = attrs->ufile->device; in ib_uverbs_open_xrcd() 694 struct ib_uverbs_device *dev = attrs->ufile->device; in ib_uverbs_dealloc_xrcd() 1032 if (cmd->comp_vector >= attrs->ufile->device->num_comp_vectors) in create_cq() 1077 obj->uevent.event_file = READ_ONCE(attrs->ufile->default_async_file); in create_cq() [all …]
|
| H A D | uverbs_std_types_wq.c | 71 wq_init_attr.wq_context = attrs->ufile; in UVERBS_HANDLER()
|
| H A D | uverbs_std_types_cq.c | 113 if (attr.comp_vector >= attrs->ufile->device->num_comp_vectors) { in UVERBS_HANDLER()
|
| /linux/include/rdma/ |
| H A D | uverbs_std_types.h | 22 uapi_get_object((_attrs)->ufile->device->uapi, _object) 25 rdma_lookup_get_uobject(uobj_get_type(_attrs, _type), (_attrs)->ufile, \ 30 rdma_lookup_get_uobject(uobj_get_type(_attrs, _type), (_attrs)->ufile, \ 45 rdma_lookup_get_uobject(uobj_get_type(_attrs, _type), (_attrs)->ufile, \
|
| H A D | uverbs_ioctl.h | 635 struct ib_uverbs_file *ufile; 854 return ib_uverbs_get_ucontext_file(attrs->ufile); in ib_uverbs_get_ucontext()
|
| H A D | ib_verbs.h | 1551 struct ib_uverbs_file *ufile; 1564 /* ufile & ucontext owning this object */ 1565 struct ib_uverbs_file *ufile; 1566 /* FIXME, save memory: ufile->context == context */ 2775 * the ufile. 2777 void (*ufile_hw_cleanup)(struct ib_uverbs_file *ufile); 4909 struct ib_ucontext *ib_uverbs_get_ucontext_file(struct ib_uverbs_file *ufile); 1534 struct ib_uverbs_file *ufile; global() member 1548 struct ib_uverbs_file *ufile; global() member
|
| /linux/drivers/infiniband/hw/mlx5/ |
| H A D | devx.c | 2689 void mlx5_ib_ufile_hw_cleanup(struct ib_uverbs_file *ufile) in mlx5_ib_ufile_hw_cleanup() argument 2692 struct ib_ucontext *ucontext = ufile->ucontext; in mlx5_ib_ufile_hw_cleanup() 2704 list_for_each_entry(uobject, &ufile->uobjects, list) { in mlx5_ib_ufile_hw_cleanup()
|