Home
last modified time | relevance | path

Searched refs:ufile (Results 1 – 13 of 13) sorted by relevance

/drivers/infiniband/core/
A Drdma_core.c127 struct ib_uverbs_file *ufile = attrs->ufile; in uverbs_destroy_uobject() local
191 struct ib_uverbs_file *ufile = attrs->ufile; in uobj_destroy() local
263 struct ib_uverbs_file *ufile = attrs->ufile; in alloc_uobj() local
282 uobj->ufile = ufile; in alloc_uobj()
502 struct ib_uverbs_file *ufile = attrs->ufile; in rdma_alloc_begin_uobject() local
585 struct ib_uverbs_file *ufile = uobj->ufile; in alloc_commit_idr_uobject() local
647 struct ib_uverbs_file *ufile = attrs->ufile; in rdma_alloc_commit_uobject() local
702 struct ib_uverbs_file *ufile = uobj->ufile; in rdma_alloc_abort_uobject() local
820 ufile = uobj->ufile; in uverbs_uobject_fd_release()
825 .ufile = ufile, in uverbs_uobject_fd_release()
[all …]
A Dib_core_uverbs.c34 struct ib_uverbs_file *ufile = vma->vm_file->private_data; in rdma_umap_priv_init() local
44 mutex_lock(&ufile->umap_lock); in rdma_umap_priv_init()
45 list_add(&priv->list, &ufile->umaps); in rdma_umap_priv_init()
46 mutex_unlock(&ufile->umap_lock); in rdma_umap_priv_init()
71 struct ib_uverbs_file *ufile = ucontext->ufile; in rdma_user_mmap_io() local
82 vma->vm_file->private_data != ufile)) in rdma_user_mmap_io()
84 lockdep_assert_held(&ufile->device->disassociate_srcu); in rdma_user_mmap_io()
267 struct ib_uverbs_file *ufile = ucontext->ufile; in rdma_user_mmap_entry_insert_range() local
285 mutex_lock(&ufile->umap_lock); in rdma_user_mmap_entry_insert_range()
325 mutex_unlock(&ufile->umap_lock); in rdma_user_mmap_entry_insert_range()
[all …]
A Duverbs_main.c615 bundle.ufile = file; in ib_uverbs_write()
737 if (!ufile->ucontext) in rdma_umap_open()
775 mutex_lock(&ufile->umap_lock); in rdma_umap_close()
804 mutex_lock(&ufile->umap_lock); in rdma_umap_fault()
805 if (!ufile->disassociate_page) in rdma_umap_fault()
806 ufile->disassociate_page = in rdma_umap_fault()
809 if (ufile->disassociate_page) { in rdma_umap_fault()
840 mutex_lock(&ufile->umap_lock); in uverbs_user_mmap_disassociate()
872 mutex_lock(&ufile->umap_lock); in uverbs_user_mmap_disassociate()
908 struct ib_uverbs_file *ufile; in rdma_user_mmap_disassociate() local
[all …]
A Drdma_core.h48 void uverbs_destroy_ufile_hw(struct ib_uverbs_file *ufile,
72 void setup_ufile_idr_uobject(struct ib_uverbs_file *ufile);
73 void release_ufile_idr_uobject(struct ib_uverbs_file *ufile);
152 void uverbs_user_mmap_disassociate(struct ib_uverbs_file *ufile);
A Duverbs_std_types_device.c23 struct uverbs_api *uapi = attrs->ufile->device->uapi; in UVERBS_HANDLER()
64 gather_objects_handle(struct ib_uverbs_file *ufile, in gather_objects_handle() argument
82 spin_lock_irq(&ufile->uobjects_lock); in gather_objects_handle()
83 list_for_each_entry(obj, &ufile->uobjects, list) { in gather_objects_handle()
95 spin_unlock_irq(&ufile->uobjects_lock); in gather_objects_handle()
119 uapi_object = uapi_get_object(attrs->ufile->device->uapi, object_id); in UVERBS_HANDLER()
123 handles = gather_objects_handle(attrs->ufile, uapi_object, attrs, in UVERBS_HANDLER()
215 u32 num_comp = attrs->ufile->device->num_comp_vectors; in UVERBS_HANDLER()
258 num_comp = attrs->ufile->device->num_comp_vectors; in UVERBS_HANDLER()
A Duverbs_std_types.c114 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()
A Duverbs_ioctl.c442 &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()
A Duverbs_cmd.c209 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 …]
A Duverbs_std_types_wq.c71 wq_init_attr.wq_context = attrs->ufile; in UVERBS_HANDLER()
A Duverbs.h280 async_ev_file = READ_ONCE(attrs->ufile->default_async_file); in ib_uverbs_get_async_event()
A Duverbs_std_types_cq.c113 if (attr.comp_vector >= attrs->ufile->device->num_comp_vectors) { in UVERBS_HANDLER()
/drivers/infiniband/hw/mlx5/
A Ddevx.h31 void mlx5_ib_ufile_hw_cleanup(struct ib_uverbs_file *ufile);
46 static inline void mlx5_ib_ufile_hw_cleanup(struct ib_uverbs_file *ufile) in mlx5_ib_ufile_hw_cleanup() argument
A Ddevx.c2674 void mlx5_ib_ufile_hw_cleanup(struct ib_uverbs_file *ufile) in mlx5_ib_ufile_hw_cleanup() argument
2677 struct ib_ucontext *ucontext = ufile->ucontext; in mlx5_ib_ufile_hw_cleanup()
2689 list_for_each_entry(uobject, &ufile->uobjects, list) { in mlx5_ib_ufile_hw_cleanup()

Completed in 51 milliseconds