/kernel/linux/linux-5.10/drivers/infiniband/core/ |
H A D | ib_core_uverbs.c | 53 * @ucontext: associated user context 67 int rdma_user_mmap_io(struct ib_ucontext *ucontext, struct vm_area_struct *vma, in rdma_user_mmap_io() argument 71 struct ib_uverbs_file *ufile = ucontext->ufile; in rdma_user_mmap_io() 104 * @ucontext: associated user context 117 rdma_user_mmap_entry_get_pgoff(struct ib_ucontext *ucontext, in rdma_user_mmap_entry_get_pgoff() argument 125 xa_lock(&ucontext->mmap_xa); in rdma_user_mmap_entry_get_pgoff() 127 entry = xa_load(&ucontext->mmap_xa, pgoff); in rdma_user_mmap_entry_get_pgoff() 138 xa_unlock(&ucontext->mmap_xa); in rdma_user_mmap_entry_get_pgoff() 140 ibdev_dbg(ucontext->device, "mmap: pgoff[%#lx] npages[%#zx] returned\n", in rdma_user_mmap_entry_get_pgoff() 146 xa_unlock(&ucontext in rdma_user_mmap_entry_get_pgoff() 161 rdma_user_mmap_entry_get(struct ib_ucontext *ucontext, struct vm_area_struct *vma) rdma_user_mmap_entry_get() argument 183 struct ib_ucontext *ucontext = entry->ucontext; rdma_user_mmap_entry_free() local 262 rdma_user_mmap_entry_insert_range(struct ib_ucontext *ucontext, struct rdma_user_mmap_entry *entry, size_t length, u32 min_pgoff, u32 max_pgoff) rdma_user_mmap_entry_insert_range() argument 360 rdma_user_mmap_entry_insert(struct ib_ucontext *ucontext, struct rdma_user_mmap_entry *entry, size_t length) rdma_user_mmap_entry_insert() argument [all...] |
H A D | uverbs_std_types_device.c | 182 struct ib_ucontext *ucontext; in UVERBS_METHOD_QUERY_PORT() local 186 ucontext = ib_uverbs_get_ucontext(attrs); in UVERBS_METHOD_QUERY_PORT() 187 if (IS_ERR(ucontext)) in UVERBS_METHOD_QUERY_PORT() 188 return PTR_ERR(ucontext); in UVERBS_METHOD_QUERY_PORT() 189 ib_dev = ucontext->device; in UVERBS_METHOD_QUERY_PORT() 244 struct ib_ucontext *ucontext; in UVERBS_METHOD_QUERY_CONTEXT() local 249 ucontext = ib_uverbs_get_ucontext(attrs); in UVERBS_METHOD_QUERY_CONTEXT() 250 if (IS_ERR(ucontext)) in UVERBS_METHOD_QUERY_CONTEXT() 251 return PTR_ERR(ucontext); in UVERBS_METHOD_QUERY_CONTEXT() 252 ib_dev = ucontext in UVERBS_METHOD_QUERY_CONTEXT() 316 struct ib_ucontext *ucontext; UVERBS_METHOD_QUERY_GID_TABLE() local 372 struct ib_ucontext *ucontext; UVERBS_METHOD_QUERY_GID_ENTRY() local [all...] |
H A D | rdma_core.c | 272 struct ib_ucontext *ucontext = in alloc_uobj() local 275 if (IS_ERR(ucontext)) in alloc_uobj() 276 return ERR_CAST(ucontext); in alloc_uobj() 277 attrs->context = ucontext; in alloc_uobj() 811 * Drop the ucontext off the ufile and completely disconnect it from the 817 struct ib_ucontext *ucontext = ufile->ucontext; in ufile_destroy_ucontext() local 818 struct ib_device *ib_dev = ucontext->device; in ufile_destroy_ucontext() 828 ib_dev->ops.disassociate_ucontext(ucontext); in ufile_destroy_ucontext() 831 ib_rdmacg_uncharge(&ucontext in ufile_destroy_ucontext() [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | ib_core_uverbs.c | 53 * @ucontext: associated user context 67 int rdma_user_mmap_io(struct ib_ucontext *ucontext, struct vm_area_struct *vma, in rdma_user_mmap_io() argument 71 struct ib_uverbs_file *ufile = ucontext->ufile; in rdma_user_mmap_io() 104 * @ucontext: associated user context 117 rdma_user_mmap_entry_get_pgoff(struct ib_ucontext *ucontext, in rdma_user_mmap_entry_get_pgoff() argument 125 xa_lock(&ucontext->mmap_xa); in rdma_user_mmap_entry_get_pgoff() 127 entry = xa_load(&ucontext->mmap_xa, pgoff); in rdma_user_mmap_entry_get_pgoff() 138 xa_unlock(&ucontext->mmap_xa); in rdma_user_mmap_entry_get_pgoff() 140 ibdev_dbg(ucontext->device, "mmap: pgoff[%#lx] npages[%#zx] returned\n", in rdma_user_mmap_entry_get_pgoff() 146 xa_unlock(&ucontext in rdma_user_mmap_entry_get_pgoff() 161 rdma_user_mmap_entry_get(struct ib_ucontext *ucontext, struct vm_area_struct *vma) rdma_user_mmap_entry_get() argument 183 struct ib_ucontext *ucontext = entry->ucontext; rdma_user_mmap_entry_free() local 262 rdma_user_mmap_entry_insert_range(struct ib_ucontext *ucontext, struct rdma_user_mmap_entry *entry, size_t length, u32 min_pgoff, u32 max_pgoff) rdma_user_mmap_entry_insert_range() argument 360 rdma_user_mmap_entry_insert(struct ib_ucontext *ucontext, struct rdma_user_mmap_entry *entry, size_t length) rdma_user_mmap_entry_insert() argument [all...] |
H A D | uverbs_std_types_device.c | 182 struct ib_ucontext *ucontext; in UVERBS_METHOD_QUERY_PORT() local 186 ucontext = ib_uverbs_get_ucontext(attrs); in UVERBS_METHOD_QUERY_PORT() 187 if (IS_ERR(ucontext)) in UVERBS_METHOD_QUERY_PORT() 188 return PTR_ERR(ucontext); in UVERBS_METHOD_QUERY_PORT() 189 ib_dev = ucontext->device; in UVERBS_METHOD_QUERY_PORT() 244 struct ib_ucontext *ucontext; in UVERBS_METHOD_QUERY_CONTEXT() local 249 ucontext = ib_uverbs_get_ucontext(attrs); in UVERBS_METHOD_QUERY_CONTEXT() 250 if (IS_ERR(ucontext)) in UVERBS_METHOD_QUERY_CONTEXT() 251 return PTR_ERR(ucontext); in UVERBS_METHOD_QUERY_CONTEXT() 252 ib_dev = ucontext in UVERBS_METHOD_QUERY_CONTEXT() 316 struct ib_ucontext *ucontext; UVERBS_METHOD_QUERY_GID_TABLE() local 372 struct ib_ucontext *ucontext; UVERBS_METHOD_QUERY_GID_ENTRY() local [all...] |
H A D | rdma_core.c | 141 /* Nothing to be done, wait till ucontext will clean it */ in uverbs_destroy_uobject() 266 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() 848 * Drop the ucontext off the ufile and completely disconnect it from the 854 struct ib_ucontext *ucontext = ufile->ucontext; in ufile_destroy_ucontext() local 855 struct ib_device *ib_dev = ucontext->device; in ufile_destroy_ucontext() 865 ib_dev->ops.disassociate_ucontext(ucontext); in ufile_destroy_ucontext() [all...] |
/kernel/linux/linux-5.10/arch/s390/include/uapi/asm/ |
H A D | ucontext.h | 5 * Derived from "include/asm-i386/ucontext.h" 22 struct ucontext *uc_link; 31 struct ucontext { struct 33 struct ucontext *uc_link;
|
/kernel/linux/linux-6.6/arch/s390/include/uapi/asm/ |
H A D | ucontext.h | 5 * Derived from "include/asm-i386/ucontext.h" 22 struct ucontext *uc_link; 31 struct ucontext { struct 33 struct ucontext *uc_link;
|
/kernel/linux/linux-5.10/arch/sparc/include/uapi/asm/ |
H A D | uctx.h | 64 struct ucontext { struct 65 struct ucontext *uc_link; 70 typedef struct ucontext ucontext_t;
|
/kernel/linux/linux-6.6/arch/sparc/include/uapi/asm/ |
H A D | uctx.h | 64 struct ucontext { struct 65 struct ucontext *uc_link; 70 typedef struct ucontext ucontext_t;
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/cxgb4/ |
H A D | cq.c | 80 struct c4iw_ucontext *ucontext = NULL; in create_cq() local 83 ucontext = container_of(uctx, struct c4iw_ucontext, uctx); in create_cq() 106 if (user && ucontext->is_32b_cqe) { in create_cq() 148 ((user && ucontext->is_32b_cqe) ? in create_cq() 973 struct c4iw_ucontext *ucontext; in c4iw_destroy_cq() local 982 ucontext = rdma_udata_to_drv_context(udata, struct c4iw_ucontext, in c4iw_destroy_cq() 985 ucontext ? &ucontext->uctx : &chp->cq.rdev->uctx, in c4iw_destroy_cq() 1004 struct c4iw_ucontext *ucontext = rdma_udata_to_drv_context( in c4iw_create_cq() local 1019 ucontext in c4iw_create_cq() [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/cxgb4/ |
H A D | cq.c | 80 struct c4iw_ucontext *ucontext = NULL; in create_cq() local 83 ucontext = container_of(uctx, struct c4iw_ucontext, uctx); in create_cq() 106 if (user && ucontext->is_32b_cqe) { in create_cq() 148 ((user && ucontext->is_32b_cqe) ? in create_cq() 979 struct c4iw_ucontext *ucontext; in c4iw_destroy_cq() local 988 ucontext = rdma_udata_to_drv_context(udata, struct c4iw_ucontext, in c4iw_destroy_cq() 991 ucontext ? &ucontext->uctx : &chp->cq.rdev->uctx, in c4iw_destroy_cq() 1010 struct c4iw_ucontext *ucontext = rdma_udata_to_drv_context( in c4iw_create_cq() local 1025 ucontext in c4iw_create_cq() [all...] |
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | sigframe.h | 7 #include <asm/ucontext.h> 13 #define ucontext_ia32 ucontext 61 struct ucontext uc;
|
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | sigframe.h | 7 #include <asm/ucontext.h> 13 #define ucontext_ia32 ucontext 61 struct ucontext uc;
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/irdma/ |
H A D | verbs.c | 119 static int irdma_mmap_legacy(struct irdma_ucontext *ucontext, in irdma_mmap_legacy() argument 127 vma->vm_private_data = ucontext; in irdma_mmap_legacy() 128 pfn = ((uintptr_t)ucontext->iwdev->rf->sc_dev.hw_regs[IRDMA_DB_ADDR_OFFSET] + in irdma_mmap_legacy() 129 pci_resource_start(ucontext->iwdev->rf->pcidev, 0)) >> PAGE_SHIFT; in irdma_mmap_legacy() 131 return rdma_user_mmap_io(&ucontext->ibucontext, vma, pfn, PAGE_SIZE, in irdma_mmap_legacy() 143 irdma_user_mmap_entry_insert(struct irdma_ucontext *ucontext, u64 bar_offset, in irdma_user_mmap_entry_insert() argument 155 ret = rdma_user_mmap_entry_insert(&ucontext->ibucontext, in irdma_user_mmap_entry_insert() 175 struct irdma_ucontext *ucontext; in irdma_mmap() local 179 ucontext = to_ucontext(context); in irdma_mmap() 182 if (ucontext in irdma_mmap() 279 struct irdma_ucontext *ucontext = to_ucontext(uctx); irdma_alloc_ucontext() local 362 struct irdma_ucontext *ucontext = to_ucontext(context); irdma_dealloc_ucontext() local 394 struct irdma_ucontext *ucontext = irdma_alloc_pd() local 479 irdma_setup_push_mmap_entries(struct irdma_ucontext *ucontext, struct irdma_qp *iwqp, u64 *push_wqe_mmap_key, u64 *push_db_mmap_key) irdma_setup_push_mmap_entries() argument 588 struct irdma_ucontext *ucontext = rdma_udata_to_drv_context(udata, irdma_setup_umode_qp() local 1504 struct irdma_ucontext *ucontext; irdma_modify_qp_roce() local 1750 struct irdma_ucontext *ucontext; irdma_modify_qp() local 1928 struct irdma_ucontext *ucontext = irdma_resize_cq() local 2092 struct irdma_ucontext *ucontext; irdma_create_cq() local 2932 struct irdma_ucontext *ucontext = NULL; irdma_reg_user_mr_type_qp() local 2969 struct irdma_ucontext *ucontext = NULL; irdma_reg_user_mr_type_cq() local 3186 irdma_del_memlist(struct irdma_mr *iwmr, struct irdma_ucontext *ucontext) irdma_del_memlist() argument 3234 struct irdma_ucontext *ucontext; irdma_dereg_mr() local [all...] |
/kernel/linux/linux-5.10/arch/xtensa/include/asm/ |
H A D | ucontext.h | 2 * include/asm-xtensa/ucontext.h 14 struct ucontext { struct 16 struct ucontext *uc_link;
|
/kernel/linux/linux-5.10/arch/loongarch/include/uapi/asm/ |
H A D | ucontext.h | 6 * struct ucontext - user context structure 14 struct ucontext { struct 16 struct ucontext *uc_link; 28 * ucontext, so we're putting this at the end in order to allow for
|
/kernel/linux/linux-5.10/arch/parisc/include/asm/ |
H A D | ucontext.h | 5 struct ucontext { struct 7 struct ucontext *uc_link;
|
/kernel/linux/linux-5.10/arch/alpha/include/asm/ |
H A D | ucontext.h | 5 struct ucontext { struct 7 struct ucontext *uc_link;
|
/kernel/linux/linux-5.10/arch/arm/kernel/ |
H A D | signal.h | 1 #include <asm/ucontext.h> 4 struct ucontext uc;
|
/kernel/linux/linux-6.6/arch/loongarch/include/uapi/asm/ |
H A D | ucontext.h | 6 * struct ucontext - user context structure 14 struct ucontext { struct 16 struct ucontext *uc_link; 28 * ucontext, so we're putting this at the end in order to allow for
|
/kernel/linux/linux-6.6/arch/arm/kernel/ |
H A D | signal.h | 1 #include <asm/ucontext.h> 4 struct ucontext uc;
|
/kernel/linux/linux-6.6/arch/alpha/include/asm/ |
H A D | ucontext.h | 5 struct ucontext { struct 7 struct ucontext *uc_link;
|
/kernel/linux/linux-6.6/arch/parisc/include/asm/ |
H A D | ucontext.h | 5 struct ucontext { struct 7 struct ucontext *uc_link;
|
/kernel/linux/linux-5.10/include/uapi/asm-generic/ |
H A D | ucontext.h | 5 struct ucontext { struct 7 struct ucontext *uc_link;
|