Home
last modified time | relevance | path

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

12

/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_core_uverbs.c98 int rdma_user_mmap_io(struct ib_ucontext *ucontext, struct vm_area_struct *vma, in rdma_user_mmap_io() argument
102 struct ib_uverbs_file *ufile = ucontext->ufile; in rdma_user_mmap_io()
147 rdma_user_mmap_entry_get_pgoff(struct ib_ucontext *ucontext, in rdma_user_mmap_entry_get_pgoff() argument
155 xa_lock(&ucontext->mmap_xa); in rdma_user_mmap_entry_get_pgoff()
157 entry = xa_load(&ucontext->mmap_xa, pgoff); 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()
188 rdma_user_mmap_entry_get(struct ib_ucontext *ucontext, in rdma_user_mmap_entry_get() argument
195 entry = rdma_user_mmap_entry_get_pgoff(ucontext, vma->vm_pgoff); in rdma_user_mmap_entry_get()
210 struct ib_ucontext *ucontext = entry->ucontext; in rdma_user_mmap_entry_free() local
[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()
777 * Drop the ucontext off the ufile and completely disconnect it from the
783 struct ib_ucontext *ucontext = ufile->ucontext; in ufile_destroy_ucontext()
784 struct ib_device *ib_dev = ucontext->device; in ufile_destroy_ucontext()
794 ib_dev->disassociate_ucontext(ucontext); in ufile_destroy_ucontext()
797 ib_dev->dealloc_ucontext(ucontext); in ufile_destroy_ucontext()
785 struct ib_ucontext *ucontext = ufile->ucontext; ufile_destroy_ucontext() local
[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.c218 struct ib_ucontext *ucontext; in ib_alloc_ucontext() local
226 ucontext = rdma_zalloc_drv_obj(ib_dev, ib_ucontext); in ib_alloc_ucontext()
227 if (!ucontext) in ib_alloc_ucontext()
230 ucontext->device = ib_dev; in ib_alloc_ucontext()
231 ucontext->ufile = ufile; in ib_alloc_ucontext()
232 xa_init_flags(&ucontext->mmap_xa, XA_FLAGS_ALLOC); in ib_alloc_ucontext()
233 attrs->context = ucontext; in ib_alloc_ucontext()
239 struct ib_ucontext *ucontext = attrs->context; in ib_init_ucontext() local
246 if (file->ucontext) { in ib_init_ucontext()
251 ret = ucontext->device->alloc_ucontext(ucontext, in ib_init_ucontext()
[all …]
H A Duverbs.h148 struct ib_ucontext *ucontext; member
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux.cpp1943 static bool Aarch64GetESR(ucontext_t *ucontext, u64 *esr) { in Aarch64GetESR() argument
1945 u8 *aux = reinterpret_cast<u8 *>(ucontext->uc_mcontext.__reserved); in Aarch64GetESR()
1960 static bool Aarch64GetESR(ucontext_t *ucontext, u64 *esr) { return false; } in Aarch64GetESR() argument
1966 Context *ucontext = (Context *)context; in GetWriteFlag() local
1970 uptr err = ucontext->uc_mcontext.mc_err; in GetWriteFlag()
1972 uptr err = ucontext->uc_mcontext.__gregs[_REG_ERR]; in GetWriteFlag()
1975 uptr err = ucontext->uc_mcontext.gregs[Err]; in GetWriteFlag()
1977 uptr err = ucontext->uc_mcontext.gregs[REG_ERR]; in GetWriteFlag()
1985 exception_source = (uint32_t *)ucontext->uc_mcontext.pc; in GetWriteFlag()
2031 uptr fsr = ucontext->uc_mcontext.error_code; in GetWriteFlag()
[all …]
H A Dsanitizer_mac.cpp882 ucontext_t *ucontext = static_cast<ucontext_t*>(context); in GetWriteFlag() local
883 return ucontext->uc_mcontext->__es.__err & 2 /*T_PF_WRITE*/ ? Write : Read; in GetWriteFlag()
885 ucontext_t *ucontext = static_cast<ucontext_t*>(context); in GetWriteFlag()
886 return ucontext->uc_mcontext->__es.__esr & 0x40 /*ISS_DA_WNR*/ ? Write : Read; in GetWriteFlag()
901 (void *)arm_thread_state64_get_##r(ucontext->uc_mcontext->__ss), 0)
903 #define AARCH64_GET_REG(r) (uptr)ucontext->uc_mcontext->__ss.__##r
907 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()
[all …]
/freebsd/sys/dev/cxgbe/iw_cxgbe/
H A Dcq.c889 struct c4iw_ucontext *ucontext; in c4iw_destroy_cq() local
898 ucontext = rdma_udata_to_drv_context(udata, struct c4iw_ucontext, in c4iw_destroy_cq()
901 ucontext ? &ucontext->uctx : &chp->cq.rdev->uctx); in c4iw_destroy_cq()
913 struct c4iw_ucontext *ucontext = NULL; in c4iw_create_cq() local
924 ucontext = rdma_udata_to_drv_context(udata, struct c4iw_ucontext, in c4iw_create_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()
991 spin_lock(&ucontext->mmap_lock); in c4iw_create_cq()
992 uresp.key = ucontext->key; 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()
113 struct c4iw_ucontext *context = to_c4iw_ucontext(ucontext); in c4iw_alloc_ucontext()
168 struct c4iw_ucontext *ucontext; in c4iw_mmap() local
184 ucontext = to_c4iw_ucontext(context); in c4iw_mmap()
[all …]
H A Dqp.c574 struct c4iw_ucontext *ucontext; in free_qp_work() local
579 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()
1722 struct c4iw_ucontext *ucontext; in c4iw_create_qp() local
1754 ucontext = pd->uobject ? to_c4iw_ucontext(pd->uobject->context) : NULL; in c4iw_create_qp()
1769 if (ucontext) { in c4iw_create_qp()
1778 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_create_qp()
1842 spin_lock(&ucontext->mmap_lock); in c4iw_create_qp()
1844 uresp.sq_key = ucontext->key; in c4iw_create_qp()
[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()
/freebsd/sys/dev/irdma/
H A Dirdma_kcompat.c179 struct irdma_ucontext *ucontext = to_ucontext(uctx); in irdma_alloc_ucontext() local
192 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()
231 irdma_user_mmap_entry_insert(ucontext, bar_off, in irdma_alloc_ucontext()
234 if (!ucontext->db_mmap_entry) { in irdma_alloc_ucontext()
240 rdma_user_mmap_entry_remove(ucontext->db_mmap_entry); in irdma_alloc_ucontext()
245 INIT_LIST_HEAD(&ucontext->cq_reg_mem_list); in irdma_alloc_ucontext()
[all …]
H A Dirdma_verbs.c97 irdma_mmap_legacy(struct irdma_ucontext *ucontext, in irdma_mmap_legacy() argument
105 vma->vm_private_data = ucontext; in irdma_mmap_legacy()
106 pfn = ((uintptr_t)ucontext->iwdev->rf->sc_dev.hw_regs[IRDMA_DB_ADDR_OFFSET] + in irdma_mmap_legacy()
107 pci_resource_start(ucontext->iwdev->rf->pcidev, 0)) >> PAGE_SHIFT; in irdma_mmap_legacy()
109 return rdma_user_mmap_io(&ucontext->ibucontext, vma, pfn, PAGE_SIZE, in irdma_mmap_legacy()
122 irdma_user_mmap_entry_insert(struct irdma_ucontext *ucontext, u64 bar_offset, in irdma_user_mmap_entry_insert() argument
134 ret = rdma_user_mmap_entry_insert(&ucontext->ibucontext, in irdma_user_mmap_entry_insert()
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()
[all …]
H A Dirdma_verbs.h386 irdma_user_mmap_entry_insert(struct irdma_ucontext *ucontext, u64 bar_offset,
/freebsd/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/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/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/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/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/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/include/arm/
H A DMakefile41 ucontext.h \
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dib_verbs.h369 struct ib_ucontext *ucontext,
375 struct ib_ucontext *ucontext,
/freebsd/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