Home
last modified time | relevance | path

Searched refs:ucontext (Results 1 – 25 of 36) sorted by relevance

12

/freebsd-14.2/sys/ofed/drivers/infiniband/core/
H A Dib_core_uverbs.c155 xa_lock(&ucontext->mmap_xa); in rdma_user_mmap_entry_get_pgoff()
168 xa_unlock(&ucontext->mmap_xa); in rdma_user_mmap_entry_get_pgoff()
173 xa_unlock(&ucontext->mmap_xa); in rdma_user_mmap_entry_get_pgoff()
210 struct ib_ucontext *ucontext = entry->ucontext; in rdma_user_mmap_entry_free() local
217 xa_lock(&ucontext->mmap_xa); in rdma_user_mmap_entry_free()
220 xa_unlock(&ucontext->mmap_xa); in rdma_user_mmap_entry_free()
222 if (ucontext->device->mmap_free) in rdma_user_mmap_entry_free()
301 entry->ucontext = ucontext; in rdma_user_mmap_entry_insert_range()
311 xa_lock(&ucontext->mmap_xa); in rdma_user_mmap_entry_insert_range()
348 xa_unlock(&ucontext->mmap_xa); in rdma_user_mmap_entry_insert_range()
[all …]
H A Dib_rdma_core.c266 struct ib_ucontext *ucontext = in alloc_uobj() local
269 if (IS_ERR(ucontext)) in alloc_uobj()
270 return ERR_CAST(ucontext); in alloc_uobj()
271 attrs->context = ucontext; in alloc_uobj()
785 struct ib_ucontext *ucontext = ufile->ucontext; in ufile_destroy_ucontext() local
799 ib_dev->dealloc_ucontext(ucontext); in ufile_destroy_ucontext()
800 WARN_ON(!xa_empty(&ucontext->mmap_xa)); in ufile_destroy_ucontext()
801 kfree(ucontext); in ufile_destroy_ucontext()
803 ufile->ucontext = NULL; in ufile_destroy_ucontext()
852 if (!ufile->ucontext) in uverbs_destroy_ufile_hw()
[all …]
H A Dib_uverbs_std_types_device.c167 struct ib_ucontext *ucontext; in UVERBS_HANDLER() local
171 ucontext = ib_uverbs_get_ucontext(attrs); in UVERBS_HANDLER()
172 if (IS_ERR(ucontext)) in UVERBS_HANDLER()
173 return PTR_ERR(ucontext); in UVERBS_HANDLER()
174 ib_dev = ucontext->device; in UVERBS_HANDLER()
H A Dib_uverbs_main.c93 struct ib_ucontext *ucontext = READ_ONCE(ufile->ucontext); in ib_uverbs_get_ucontext_file() local
99 if (!ucontext) in ib_uverbs_get_ucontext_file()
102 return ucontext; in ib_uverbs_get_ucontext_file()
675 struct ib_ucontext *ucontext; in ib_uverbs_mmap() local
680 ucontext = ib_uverbs_get_ucontext_file(file); in ib_uverbs_mmap()
681 if (IS_ERR(ucontext)) { in ib_uverbs_mmap()
682 ret = PTR_ERR(ucontext); in ib_uverbs_mmap()
686 ret = ucontext->device->mmap(ucontext, vma); in ib_uverbs_mmap()
711 if (!ufile->ucontext) in rdma_umap_open()
H A Dib_uverbs_cmd.c227 if (!ucontext) in ib_alloc_ucontext()
230 ucontext->device = ib_dev; in ib_alloc_ucontext()
231 ucontext->ufile = ufile; in ib_alloc_ucontext()
233 attrs->context = ucontext; in ib_alloc_ucontext()
246 if (file->ucontext) { in ib_init_ucontext()
251 ret = ucontext->device->alloc_ucontext(ucontext, in ib_init_ucontext()
260 atomic_store_rel_ptr((uintptr_t *)&file->ucontext, (uintptr_t)ucontext); in ib_init_ucontext()
376 if (IS_ERR(ucontext)) in ib_uverbs_query_device()
384 copy_query_dev_fields(ucontext, &resp, &ucontext->device->attrs); in ib_uverbs_query_device()
399 if (IS_ERR(ucontext)) in ib_uverbs_query_port()
[all …]
H A Duverbs.h148 struct ib_ucontext *ucontext; member
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux.cpp2097 (void)ucontext; in GetWriteFlag()
2116 *pc = _UC_MACHINE_PC(ucontext); in GetPcSpBp()
2117 *bp = _UC_MACHINE_FP(ucontext); in GetPcSpBp()
2118 *sp = _UC_MACHINE_SP(ucontext); in GetPcSpBp()
2132 *pc = ucontext->uc_mcontext.pc; in GetPcSpBp()
2134 *sp = ucontext->uc_mcontext.sp; in GetPcSpBp()
2217 *pc = ucontext->uc_mcontext.pc; in GetPcSpBp()
2242 *pc = ucontext->uc_mcontext.pc; in GetPcSpBp()
2243 *bp = ucontext->uc_mcontext.r30; in GetPcSpBp()
2244 *sp = ucontext->uc_mcontext.r29; in GetPcSpBp()
[all …]
H A Dsanitizer_mac.cpp907 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp() local
913 *pc = ucontext->uc_mcontext->__ss.__rip; in GetPcSpBp()
914 *bp = ucontext->uc_mcontext->__ss.__rbp; in GetPcSpBp()
915 *sp = ucontext->uc_mcontext->__ss.__rsp; in GetPcSpBp()
917 *pc = ucontext->uc_mcontext->__ss.__pc; in GetPcSpBp()
918 *bp = ucontext->uc_mcontext->__ss.__r[7]; in GetPcSpBp()
919 *sp = ucontext->uc_mcontext->__ss.__sp; in GetPcSpBp()
921 *pc = ucontext->uc_mcontext->__ss.__eip; in GetPcSpBp()
922 *bp = ucontext->uc_mcontext->__ss.__ebp; in GetPcSpBp()
923 *sp = ucontext->uc_mcontext->__ss.__esp; in GetPcSpBp()
[all …]
/freebsd-14.2/sys/dev/cxgbe/iw_cxgbe/
H A Dcq.c889 struct c4iw_ucontext *ucontext; in c4iw_destroy_cq() local
901 ucontext ? &ucontext->uctx : &chp->cq.rdev->uctx); in c4iw_destroy_cq()
955 if (ucontext) in c4iw_create_cq()
962 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_create_cq()
977 if (ucontext) { in c4iw_create_cq()
992 uresp.key = ucontext->key; in c4iw_create_cq()
993 ucontext->key += PAGE_SIZE; in c4iw_create_cq()
995 ucontext->key += PAGE_SIZE; in c4iw_create_cq()
1005 insert_mmap(ucontext, mm); in c4iw_create_cq()
1010 insert_mmap(ucontext, mm2); in c4iw_create_cq()
[all …]
H A Dprovider.c95 struct c4iw_ucontext *ucontext = to_c4iw_ucontext(context); in c4iw_dealloc_ucontext() local
100 rhp = to_c4iw_dev(ucontext->ibucontext.device); in c4iw_dealloc_ucontext()
102 CTR2(KTR_IW_CXGBE, "%s ucontext %p", __func__, ucontext); in c4iw_dealloc_ucontext()
104 list_for_each_entry_safe(mm, tmp, &ucontext->mmaps, entry) in c4iw_dealloc_ucontext()
106 c4iw_release_dev_ucontext(&rhp->rdev, &ucontext->uctx); in c4iw_dealloc_ucontext()
109 static int c4iw_alloc_ucontext(struct ib_ucontext *ucontext, in c4iw_alloc_ucontext() argument
112 struct ib_device *ibdev = ucontext->device; in c4iw_alloc_ucontext()
168 struct c4iw_ucontext *ucontext; in c4iw_mmap() local
184 ucontext = to_c4iw_ucontext(context); in c4iw_mmap()
186 mm = remove_mmap(ucontext, key, len); in c4iw_mmap()
[all …]
H A Diw_cxgbe.h497 struct c4iw_ucontext *ucontext; member
525 static inline struct c4iw_mm_entry *remove_mmap(struct c4iw_ucontext *ucontext, in remove_mmap() argument
531 spin_lock(&ucontext->mmap_lock); in remove_mmap()
532 list_for_each_safe(pos, nxt, &ucontext->mmaps) { in remove_mmap()
537 spin_unlock(&ucontext->mmap_lock); in remove_mmap()
544 spin_unlock(&ucontext->mmap_lock); in remove_mmap()
548 static inline void insert_mmap(struct c4iw_ucontext *ucontext, in insert_mmap() argument
551 spin_lock(&ucontext->mmap_lock); in insert_mmap()
554 list_add_tail(&mm->entry, &ucontext->mmaps); in insert_mmap()
555 spin_unlock(&ucontext->mmap_lock); in insert_mmap()
H A Dqp.c579 ucontext = qhp->ucontext; in free_qp_work()
583 qhp, ucontext); in free_qp_work()
585 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in free_qp_work()
1769 if (ucontext) { in c4iw_create_qp()
1778 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_create_qp()
1845 ucontext->key += PAGE_SIZE; in c4iw_create_qp()
1847 ucontext->key += PAGE_SIZE; in c4iw_create_qp()
1849 ucontext->key += PAGE_SIZE; in c4iw_create_qp()
1851 ucontext->key += PAGE_SIZE; in c4iw_create_qp()
1885 qhp->ucontext = ucontext; in c4iw_create_qp()
[all …]
/freebsd-14.2/lib/libc/arm/gen/
H A Dgetcontextx.c36 ucontext_t ucontext; member
56 ucp = &ucxp->ucontext; in __fillcontextx2()
74 if (getcontext(&ucxp->ucontext) == -1) in __fillcontextx()
/freebsd-14.2/sys/dev/irdma/
H A Dirdma_kcompat.c192 ucontext->iwdev = iwdev; in irdma_alloc_ucontext()
193 ucontext->abi_ver = req.userspace_ver; in irdma_alloc_ucontext()
196 ucontext->use_raw_attrs = true; in irdma_alloc_ucontext()
203 ucontext->legacy_mode = true; in irdma_alloc_ucontext()
230 ucontext->db_mmap_entry = in irdma_alloc_ucontext()
234 if (!ucontext->db_mmap_entry) { in irdma_alloc_ucontext()
249 INIT_LIST_HEAD(&ucontext->vma_list); in irdma_alloc_ucontext()
250 mutex_init(&ucontext->vma_list_mutex); in irdma_alloc_ucontext()
305 struct irdma_ucontext *ucontext = in irdma_alloc_pd() local
983 struct irdma_ucontext *ucontext; in irdma_create_cq() local
[all …]
H A Dirdma_verbs.c105 vma->vm_private_data = ucontext; in irdma_mmap_legacy()
155 struct irdma_ucontext *ucontext; in irdma_mmap() local
159 ucontext = to_ucontext(context); in irdma_mmap()
162 if (ucontext->legacy_mode) in irdma_mmap()
415 if (!ucontext->use_raw_attrs) { in irdma_setup_umode_qp()
1109 struct irdma_ucontext *ucontext; in irdma_modify_qp_roce() local
1356 struct irdma_ucontext *ucontext; in irdma_modify_qp() local
1496 struct irdma_ucontext *ucontext = in irdma_resize_cq() local
1500 if (ucontext->legacy_mode) in irdma_resize_cq()
2101 struct irdma_ucontext *ucontext; in irdma_reg_user_mr_type_qp() local
[all …]
H A Dirdma_verbs.h386 irdma_user_mmap_entry_insert(struct irdma_ucontext *ucontext, u64 bar_offset,
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/gwp_asan/optional/
H A Dsegv_handler_posix.cpp196 static void sigSegvHandler(int sig, siginfo_t *info, void *ucontext) { in sigSegvHandler() argument
207 PrintBacktraceForSignalHandler, ucontext); in sigSegvHandler()
218 PreviousHandler.sa_sigaction(sig, info, ucontext); in sigSegvHandler()
/freebsd-14.2/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_srq.c77 struct mlx4_ib_ucontext *ucontext = rdma_udata_to_drv_context( in mlx4_ib_create_srq() local
114 ib_umem_get(&ucontext->ibucontext, ucmd.buf_addr, buf_size, 0, 0); in mlx4_ib_create_srq()
127 err = mlx4_ib_db_map_user(ucontext, in mlx4_ib_create_srq()
205 mlx4_ib_db_unmap_user(ucontext, &srq->db); in mlx4_ib_create_srq()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerUtilPosix.cpp38 static void SegvHandler(int sig, siginfo_t *si, void *ucontext) { in SegvHandler() argument
41 return upstream_segv_handler(sig, si, ucontext); in SegvHandler()
/freebsd-14.2/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_srq.c75 struct mlx5_ib_ucontext *ucontext = rdma_udata_to_drv_context( in create_srq_user() local
101 err = get_srq_user_index(ucontext, &ucmd, udata->inlen, &uidx); in create_srq_user()
108 srq->umem = ib_umem_get(&ucontext->ibucontext, ucmd.buf_addr, buf_size, 0, 0); in create_srq_user()
132 err = mlx5_ib_db_map_user(ucontext, ucmd.db_addr, &srq->db); in create_srq_user()
H A Dmlx5_ib.h1149 static inline int get_qp_user_index(struct mlx5_ib_ucontext *ucontext, in get_qp_user_index() argument
1154 u8 cqe_version = ucontext->cqe_version; in get_qp_user_index()
1167 static inline int get_srq_user_index(struct mlx5_ib_ucontext *ucontext, in get_srq_user_index() argument
1172 u8 cqe_version = ucontext->cqe_version; in get_srq_user_index()
/freebsd-14.2/include/arm/
H A DMakefile41 ucontext.h \
/freebsd-14.2/sys/dev/mthca/
H A Dmthca_srq.c103 struct mthca_ucontext *ucontext = rdma_udata_to_drv_context( in mthca_tavor_init_srq_context() local
113 context->uar = cpu_to_be32(ucontext->uar.index); in mthca_tavor_init_srq_context()
124 struct mthca_ucontext *ucontext = rdma_udata_to_drv_context( in mthca_arbel_init_srq_context() local
135 context->logstride_usrpage |= cpu_to_be32(ucontext->uar.index); in mthca_arbel_init_srq_context()
/freebsd-14.2/sys/dev/bnxt/bnxt_re/
H A Dib_verbs.h369 struct ib_ucontext *ucontext,
375 struct ib_ucontext *ucontext,
/freebsd-14.2/sys/ofed/include/rdma/
H A Dib_verbs.h2087 struct ib_ucontext *ucontext; member
2486 int rdma_user_mmap_io(struct ib_ucontext *ucontext, struct vm_area_struct *vma,
2489 int rdma_user_mmap_entry_insert(struct ib_ucontext *ucontext,
2492 int rdma_user_mmap_entry_insert_range(struct ib_ucontext *ucontext,
2498 rdma_user_mmap_entry_get_pgoff(struct ib_ucontext *ucontext,
2501 rdma_user_mmap_entry_get(struct ib_ucontext *ucontext,

12