Home
last modified time | relevance | path

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

/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_rdma_core.c126 struct ib_uverbs_file *ufile = attrs->ufile; in uverbs_destroy_uobject() local
130 lockdep_assert_held(&ufile->hw_destroy_rwsem); in uverbs_destroy_uobject()
166 spin_lock_irqsave(&ufile->uobjects_lock, flags); in uverbs_destroy_uobject()
168 spin_unlock_irqrestore(&ufile->uobjects_lock, flags); in uverbs_destroy_uobject()
196 struct ib_uverbs_file *ufile = attrs->ufile; in uobj_destroy() local
199 down_read(&ufile->hw_destroy_rwsem); in uobj_destroy()
212 up_read(&ufile->hw_destroy_rwsem); in uobj_destroy()
227 uobj = rdma_lookup_get_uobject(obj, attrs->ufile, i in __uobj_get_destroy()
262 struct ib_uverbs_file *ufile = attrs->ufile; alloc_uobj() local
312 lookup_get_idr_uobject(const struct uverbs_api_object * obj,struct ib_uverbs_file * ufile,s64 id,enum rdma_lookup_mode mode) lookup_get_idr_uobject() argument
336 lookup_get_fd_uobject(const struct uverbs_api_object * obj,struct ib_uverbs_file * ufile,s64 id,enum rdma_lookup_mode mode) lookup_get_fd_uobject() argument
375 rdma_lookup_get_uobject(const struct uverbs_api_object * obj,struct ib_uverbs_file * ufile,s64 id,enum rdma_lookup_mode mode,struct uverbs_attr_bundle * attrs) rdma_lookup_get_uobject() argument
496 struct ib_uverbs_file *ufile = attrs->ufile; rdma_alloc_begin_uobject() local
581 struct ib_uverbs_file *ufile = uobj->ufile; alloc_commit_idr_uobject() local
622 struct ib_uverbs_file *ufile = attrs->ufile; rdma_alloc_commit_uobject() local
647 struct ib_uverbs_file *ufile = uobj->ufile; rdma_alloc_abort_uobject() local
698 setup_ufile_idr_uobject(struct ib_uverbs_file * ufile) setup_ufile_idr_uobject() argument
703 release_ufile_idr_uobject(struct ib_uverbs_file * ufile) release_ufile_idr_uobject() argument
741 struct ib_uverbs_file *ufile; uverbs_uobject_fd_release() local
782 ufile_destroy_ucontext(struct ib_uverbs_file * ufile,enum rdma_remove_reason reason) ufile_destroy_ucontext() argument
806 __uverbs_cleanup_ufile(struct ib_uverbs_file * ufile,enum rdma_remove_reason reason) __uverbs_cleanup_ufile() argument
843 uverbs_destroy_ufile_hw(struct ib_uverbs_file * ufile,enum rdma_remove_reason reason) uverbs_destroy_ufile_hw() argument
[all...]
H A Dib_core_uverbs.c65 struct ib_uverbs_file *ufile = vma->vm_file->private_data; in rdma_umap_priv_init() local
75 mutex_lock(&ufile->umap_lock); in rdma_umap_priv_init()
76 list_add(&priv->list, &ufile->umaps); in rdma_umap_priv_init()
77 mutex_unlock(&ufile->umap_lock); in rdma_umap_priv_init()
102 struct ib_uverbs_file *ufile = ucontext->ufile; in rdma_user_mmap_io() local
113 vma->vm_file->private_data != ufile)) in rdma_user_mmap_io()
291 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()
359 mutex_unlock(&ufile->umap_lock); in rdma_user_mmap_entry_insert_range()
H A Dib_uverbs_std_types_device.c20 struct uverbs_api *uapi = attrs->ufile->device->uapi; in UVERBS_HANDLER()
56 gather_objects_handle(struct ib_uverbs_file *ufile, in gather_objects_handle() argument
74 spin_lock_irq(&ufile->uobjects_lock); in gather_objects_handle()
75 list_for_each_entry(obj, &ufile->uobjects, list) { in gather_objects_handle()
87 spin_unlock_irq(&ufile->uobjects_lock); in gather_objects_handle()
111 uapi_object = uapi_get_object(attrs->ufile->device->uapi, object_id); in UVERBS_HANDLER()
115 handles = gather_objects_handle(attrs->ufile, uapi_object, attrs, in UVERBS_HANDLER()
199 u32 num_comp = attrs->ufile->device->num_comp_vectors; in UVERBS_HANDLER()
H A Dib_uverbs_main.c86 struct ib_ucontext *ib_uverbs_get_ucontext_file(struct ib_uverbs_file *ufile) in ib_uverbs_get_ucontext_file() argument
93 struct ib_ucontext *ucontext = READ_ONCE(ufile->ucontext); in ib_uverbs_get_ucontext_file()
95 if (!srcu_dereference(ufile->device->ib_dev, in ib_uverbs_get_ucontext_file()
96 &ufile->device->disassociate_srcu)) in ib_uverbs_get_ucontext_file()
151 READ_ONCE(uobj->uobject.ufile->async_file); in ib_uverbs_release_uevent()
428 ib_uverbs_async_handler(READ_ONCE(eobj->uobject.ufile->async_file), in uverbs_uobj_event()
478 struct ib_uverbs_file *uverbs_file = async_file->uobj.ufile; in ib_uverbs_init_async_event_file()
600 bundle.ufile = file; in ib_uverbs_write()
698 struct ib_uverbs_file *ufile = vma->vm_file->private_data; in rdma_umap_open() local
706 if (!down_read_trylock(&ufile->hw_destroy_rwsem)) in rdma_umap_open()
[all …]
H A Drdma_core.h49 void uverbs_destroy_ufile_hw(struct ib_uverbs_file *ufile,
73 void setup_ufile_idr_uobject(struct ib_uverbs_file *ufile);
74 void release_ufile_idr_uobject(struct ib_uverbs_file *ufile);
153 void uverbs_user_mmap_disassociate(struct ib_uverbs_file *ufile);
H A Dib_uverbs_ioctl.c405 &pbundle->bundle.ufile->device->disassociate_srcu); in ib_uverbs_run_method()
520 static int ib_uverbs_cmd_verbs(struct ib_uverbs_file *ufile, in ib_uverbs_cmd_verbs() argument
525 struct uverbs_api *uapi = ufile->device->uapi; in ib_uverbs_cmd_verbs()
562 pbundle->bundle.ufile = ufile; in ib_uverbs_cmd_verbs()
H A Dib_uverbs_std_types.c181 mutex_lock(&attrs->ufile->device->xrcd_tree_mutex); in uverbs_free_xrcd()
183 mutex_unlock(&attrs->ufile->device->xrcd_tree_mutex); in uverbs_free_xrcd()
H A Dib_uverbs_std_types_cq.c103 if (attr.comp_vector >= attrs->ufile->device->num_comp_vectors) { in UVERBS_HANDLER()
H A Dib_uverbs_cmd.c217 struct ib_uverbs_file *ufile = attrs->ufile; in ib_alloc_ucontext() local
221 ib_dev = srcu_dereference(ufile->device->ib_dev, in ib_alloc_ucontext()
222 &ufile->device->disassociate_srcu); in ib_alloc_ucontext()
231 ucontext->ufile = ufile; in ib_alloc_ucontext()
240 struct ib_uverbs_file *file = attrs->ufile; in ib_init_ucontext()
296 .num_comp_vectors = attrs->ufile->device->num_comp_vectors, in ib_uverbs_get_context()
569 struct ib_uverbs_device *ibudev = attrs->ufile->device; in ib_uverbs_open_xrcd()
693 struct ib_uverbs_device *dev = attrs->ufile->device; in ib_uverbs_dealloc_xrcd()
1004 if (cmd->comp_vector >= attrs->ufile->device->num_comp_vectors) in create_cq()
2935 wq_init_attr.wq_context = attrs->ufile; in ib_uverbs_ex_create_wq()
[all …]
/freebsd/sys/fs/unionfs/
H A Dunion_vfsops.c90 u_short ufile; in unionfs_domount() local
99 ufile = 0; in unionfs_domount()
141 ufile = (mode_t)strtol(tmp, &ep, 8); in unionfs_domount()
146 ufile &= S_IRWXU | S_IRWXG | S_IRWXO; in unionfs_domount()
149 if (udir == 0 && ufile != 0) in unionfs_domount()
150 udir = ufile; in unionfs_domount()
151 if (ufile == 0 && udir != 0) in unionfs_domount()
152 ufile = udir; in unionfs_domount()
159 if (ufile == 0) in unionfs_domount()
160 ufile = va.va_mode; in unionfs_domount()
[all …]
/freebsd/sys/ofed/include/rdma/
H A Duverbs_std_types.h49 uapi_get_object((_attrs)->ufile->device->uapi, _object)
52 rdma_lookup_get_uobject(uobj_get_type(_attrs, _type), (_attrs)->ufile, \
58 rdma_lookup_get_uobject(uobj_get_type(_attrs, _type), (_attrs)->ufile, \
74 rdma_lookup_get_uobject(uobj_get_type(_attrs, _type), (_attrs)->ufile, \
H A Duverbs_types.h98 struct ib_uverbs_file *ufile, s64 id,
139 struct ib_uverbs_file *ufile, s64 id,
H A Duverbs_ioctl.h654 struct ib_uverbs_file *ufile; member
865 return ib_uverbs_get_ucontext_file(attrs->ufile); in ib_uverbs_get_ucontext()
H A Dib_verbs.h1387 struct ib_uverbs_file *ufile; member
1407 struct ib_uverbs_file *ufile; member
3969 struct ib_ucontext *ib_uverbs_get_ucontext_file(struct ib_uverbs_file *ufile);
/freebsd/cddl/contrib/opensolaris/tools/ctf/dump/
H A Ddump.c897 const char *ufile = NULL; in main() local
934 ufile = optarg; in main()
954 if (flags == 0 && ufile == NULL) in main()
1098 if (ufile != NULL) { in main()
1104 if ((ufd = open(ufile, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0 || in main()
1107 warn("failed to write CTF data to '%s'", ufile); in main()