/kernel/linux/linux-5.10/drivers/infiniband/hw/qedr/ |
D | verbs.h | 36 struct ib_device_attr *attr, struct ib_udata *udata); 44 int qedr_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata); 49 int qedr_alloc_pd(struct ib_pd *pd, struct ib_udata *udata); 50 int qedr_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata); 51 int qedr_alloc_xrcd(struct ib_xrcd *ibxrcd, struct ib_udata *udata); 52 int qedr_dealloc_xrcd(struct ib_xrcd *ibxrcd, struct ib_udata *udata); 54 struct ib_udata *udata); 56 int qedr_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata); 61 int attr_mask, struct ib_udata *udata); 64 int qedr_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata); [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/sw/siw/ |
D | siw_verbs.h | 37 int siw_alloc_ucontext(struct ib_ucontext *base_ctx, struct ib_udata *udata); 44 struct ib_udata *udata); 46 struct ib_udata *udata); 51 int siw_alloc_pd(struct ib_pd *base_pd, struct ib_udata *udata); 52 int siw_dealloc_pd(struct ib_pd *base_pd, struct ib_udata *udata); 55 struct ib_udata *udata); 59 int attr_mask, struct ib_udata *udata); 60 int siw_destroy_qp(struct ib_qp *base_qp, struct ib_udata *udata); 65 int siw_destroy_cq(struct ib_cq *base_cq, struct ib_udata *udata); 69 u64 rnic_va, int rights, struct ib_udata *udata); [all …]
|
D | siw_verbs.c | 79 int siw_alloc_ucontext(struct ib_ucontext *base_ctx, struct ib_udata *udata) in siw_alloc_ucontext() argument 94 if (udata->outlen < sizeof(uresp)) { in siw_alloc_ucontext() 98 rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in siw_alloc_ucontext() 123 struct ib_udata *udata) in siw_query_device() argument 127 if (udata->inlen || udata->outlen) in siw_query_device() 224 int siw_alloc_pd(struct ib_pd *pd, struct ib_udata *udata) in siw_alloc_pd() argument 237 int siw_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata) in siw_dealloc_pd() argument 295 struct ib_udata *udata) in siw_create_qp() argument 301 rdma_udata_to_drv_context(udata, struct siw_ucontext, in siw_create_qp() 380 if (udata) in siw_create_qp() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/usnic/ |
D | usnic_ib_verbs.h | 51 int usnic_ib_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata); 52 int usnic_ib_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata); 55 struct ib_udata *udata); 56 int usnic_ib_destroy_qp(struct ib_qp *qp, struct ib_udata *udata); 58 int attr_mask, struct ib_udata *udata); 60 struct ib_udata *udata); 61 int usnic_ib_destroy_cq(struct ib_cq *cq, struct ib_udata *udata); 64 struct ib_udata *udata); 65 int usnic_ib_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata); 66 int usnic_ib_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata);
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/ |
D | hns_roce_cq.c | 146 struct ib_udata *udata, unsigned long addr) in alloc_cq_buf() argument 160 udata, addr); in alloc_cq_buf() 173 struct ib_udata *udata, unsigned long addr, in alloc_cq_db() argument 180 if (udata) { in alloc_cq_db() 182 udata->outlen >= offsetofend(typeof(*resp), cap_flags)) { in alloc_cq_db() 183 uctx = rdma_udata_to_drv_context(udata, in alloc_cq_db() 185 err = hns_roce_db_map_user(uctx, udata, addr, in alloc_cq_db() 209 struct ib_udata *udata) in free_cq_db() argument 217 if (udata) { in free_cq_db() 218 uctx = rdma_udata_to_drv_context(udata, in free_cq_db() [all …]
|
D | hns_roce_srq.c | 183 struct ib_udata *udata, unsigned long addr) in alloc_srq_buf() argument 202 HNS_HW_PAGE_SHIFT, udata, addr); in alloc_srq_buf() 216 struct ib_udata *udata, unsigned long addr) in alloc_srq_idx() argument 234 udata, addr); in alloc_srq_idx() 241 if (!udata) { in alloc_srq_idx() 286 struct ib_udata *udata) in hns_roce_create_srq() argument 307 if (udata) { in hns_roce_create_srq() 308 ret = ib_copy_from_udata(&ucmd, udata, in hns_roce_create_srq() 309 min(udata->inlen, sizeof(ucmd))); in hns_roce_create_srq() 317 ret = alloc_srq_buf(hr_dev, srq, udata, ucmd.buf_addr); in hns_roce_create_srq() [all …]
|
D | hns_roce_qp.c | 646 struct ib_udata *udata, unsigned long addr) in alloc_qp_buf() argument 652 if (!udata && hr_qp->rq_inl_buf.wqe_cnt) { in alloc_qp_buf() 671 udata, addr); in alloc_qp_buf() 692 struct ib_udata *udata, in user_qp_has_sdb() argument 697 udata->outlen >= offsetofend(typeof(*resp), cap_flags) && in user_qp_has_sdb() 699 udata->inlen >= offsetofend(typeof(*ucmd), sdb_addr)); in user_qp_has_sdb() 704 struct ib_udata *udata, in user_qp_has_rdb() argument 708 udata->outlen >= offsetofend(typeof(*resp), cap_flags) && in user_qp_has_rdb() 721 struct ib_udata *udata, in alloc_qp_db() argument 726 udata, struct hns_roce_ucontext, ibucontext); in alloc_qp_db() [all …]
|
D | hns_roce_pd.c | 60 int hns_roce_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in hns_roce_alloc_pd() argument 72 if (udata) { in hns_roce_alloc_pd() 75 ret = ib_copy_to_udata(udata, &resp, in hns_roce_alloc_pd() 76 min(udata->outlen, sizeof(resp))); in hns_roce_alloc_pd() 86 int hns_roce_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata) in hns_roce_dealloc_pd() argument
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/ |
D | ib_verbs.h | 151 struct ib_udata *udata); 165 int bnxt_re_alloc_pd(struct ib_pd *pd, struct ib_udata *udata); 166 int bnxt_re_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata); 168 struct ib_udata *udata); 174 struct ib_udata *udata); 177 struct ib_udata *udata); 179 int bnxt_re_destroy_srq(struct ib_srq *srq, struct ib_udata *udata); 184 struct ib_udata *udata); 186 int qp_attr_mask, struct ib_udata *udata); 189 int bnxt_re_destroy_qp(struct ib_qp *qp, struct ib_udata *udata); [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.h | 64 int ocrdma_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata); 69 int ocrdma_alloc_pd(struct ib_pd *pd, struct ib_udata *udata); 70 int ocrdma_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata); 73 struct ib_udata *udata); 75 int ocrdma_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata); 83 int attr_mask, struct ib_udata *udata); 87 int ocrdma_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata); 91 struct ib_udata *udata); 95 int ocrdma_destroy_srq(struct ib_srq *ibsrq, struct ib_udata *udata); 99 int ocrdma_dereg_mr(struct ib_mr *ib_mr, struct ib_udata *udata);
|
/kernel/linux/linux-5.10/drivers/infiniband/sw/rdmavt/ |
D | srq.c | 77 struct ib_udata *udata) in rvt_create_srq() argument 101 dev->dparms.node, udata)) { in rvt_create_srq() 110 if (udata && udata->outlen >= sizeof(__u64)) { in rvt_create_srq() 113 srq->ip = rvt_create_mmap_info(dev, s, udata, srq->rq.wq); in rvt_create_srq() 119 ret = ib_copy_to_udata(udata, &srq->ip->offset, in rvt_create_srq() 168 struct ib_udata *udata) in rvt_modify_srq() argument 190 udata)) in rvt_modify_srq() 193 if (udata && udata->inlen >= sizeof(__u64)) { in rvt_modify_srq() 197 ret = ib_copy_from_udata(&offset_addr, udata, in rvt_modify_srq() 201 udata->outbuf = (void __user *) in rvt_modify_srq() [all …]
|
D | cq.c | 201 struct ib_udata *udata) in rvt_create_cq() argument 231 if (udata && udata->outlen >= sizeof(__u64)) { in rvt_create_cq() 249 if (udata && udata->outlen >= sizeof(__u64)) { in rvt_create_cq() 250 cq->ip = rvt_create_mmap_info(rdi, sz, udata, u_wc); in rvt_create_cq() 256 err = ib_copy_to_udata(udata, &cq->ip->offset, in rvt_create_cq() 318 int rvt_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata) in rvt_destroy_cq() argument 380 int rvt_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata) in rvt_resize_cq() argument 398 if (udata && udata->outlen >= sizeof(__u64)) { in rvt_resize_cq() 412 if (udata && udata->outlen >= sizeof(__u64)) { in rvt_resize_cq() 415 ret = ib_copy_to_udata(udata, &offset, sizeof(offset)); in rvt_resize_cq() [all …]
|
D | qp.h | 57 struct ib_udata *udata); 59 int attr_mask, struct ib_udata *udata); 60 int rvt_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata); 72 struct ib_udata *udata);
|
D | srq.h | 54 struct ib_udata *udata); 57 struct ib_udata *udata); 59 int rvt_destroy_srq(struct ib_srq *ibsrq, struct ib_udata *udata);
|
D | cq.h | 55 struct ib_udata *udata); 56 int rvt_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata); 58 int rvt_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata);
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/efa/ |
D | efa.h | 122 struct ib_udata *udata); 132 int efa_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata); 133 int efa_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata); 134 int efa_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata); 137 struct ib_udata *udata); 138 int efa_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata); 140 struct ib_udata *udata); 143 struct ib_udata *udata); 144 int efa_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata); 147 int efa_alloc_ucontext(struct ib_ucontext *ibucontext, struct ib_udata *udata); [all …]
|
D | efa_verbs.c | 190 struct ib_udata *udata) in efa_query_device() argument 197 if (udata && udata->inlen && in efa_query_device() 198 !ib_is_udata_cleared(udata, 0, udata->inlen)) { in efa_query_device() 225 if (udata && udata->outlen) { in efa_query_device() 238 err = ib_copy_to_udata(udata, &resp, in efa_query_device() 239 min(sizeof(resp), udata->outlen)); in efa_query_device() 351 int efa_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in efa_alloc_pd() argument 359 if (udata->inlen && in efa_alloc_pd() 360 !ib_is_udata_cleared(udata, 0, udata->inlen)) { in efa_alloc_pd() 374 if (udata->outlen) { in efa_alloc_pd() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
D | srq.c | 46 struct ib_udata *udata, int buf_size) in create_srq_user() argument 51 udata, struct mlx5_ib_ucontext, ibucontext); in create_srq_user() 60 ucmdlen = min(udata->inlen, sizeof(ucmd)); in create_srq_user() 62 if (ib_copy_from_udata(&ucmd, udata, ucmdlen)) { in create_srq_user() 70 if (udata->inlen > sizeof(ucmd) && in create_srq_user() 71 !ib_is_udata_cleared(udata, sizeof(ucmd), in create_srq_user() 72 udata->inlen - sizeof(ucmd))) in create_srq_user() 76 err = get_srq_user_index(ucontext, &ucmd, udata->inlen, &uidx); in create_srq_user() 107 err = mlx5_ib_db_map_user(ucontext, udata, ucmd.db_addr, &srq->db); in create_srq_user() 198 struct ib_udata *udata) in destroy_srq_user() argument [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/vmw_pvrdma/ |
D | pvrdma_verbs.h | 385 struct ib_udata *udata); 399 int pvrdma_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata); 401 int pvrdma_alloc_pd(struct ib_pd *pd, struct ib_udata *udata); 402 int pvrdma_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata); 406 struct ib_udata *udata); 407 int pvrdma_dereg_mr(struct ib_mr *mr, struct ib_udata *udata); 413 struct ib_udata *udata); 414 int pvrdma_destroy_cq(struct ib_cq *cq, struct ib_udata *udata); 418 struct ib_udata *udata); 422 struct ib_udata *udata); [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/ |
D | mthca_provider.c | 295 struct ib_udata *udata) in mthca_alloc_ucontext() argument 322 if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) { in mthca_alloc_ucontext() 356 static int mthca_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in mthca_alloc_pd() argument 362 err = mthca_pd_alloc(to_mdev(ibdev), !udata, pd); in mthca_alloc_pd() 366 if (udata) { in mthca_alloc_pd() 367 if (ib_copy_to_udata(udata, &pd->pd_num, sizeof (__u32))) { in mthca_alloc_pd() 376 static int mthca_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata) in mthca_dealloc_pd() argument 384 struct ib_udata *udata) in mthca_ah_create() argument 401 struct ib_udata *udata) in mthca_create_srq() argument 405 udata, struct mthca_ucontext, ibucontext); in mthca_create_srq() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/ |
D | rxe_verbs.c | 109 static int rxe_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata) in rxe_alloc_ucontext() argument 143 static int rxe_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in rxe_alloc_pd() argument 151 static int rxe_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in rxe_dealloc_pd() argument 161 struct ib_udata *udata) in rxe_create_ah() argument 260 struct ib_udata *udata) in rxe_create_srq() argument 268 if (udata) { in rxe_create_srq() 269 if (udata->outlen < sizeof(*uresp)) in rxe_create_srq() 271 uresp = udata->outbuf; in rxe_create_srq() 285 err = rxe_srq_from_init(rxe, srq, init, udata, uresp); in rxe_create_srq() 300 struct ib_udata *udata) in rxe_modify_srq() argument [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/ |
D | srq.c | 74 struct ib_udata *udata) in mlx4_ib_create_srq() argument 78 udata, struct mlx4_ib_ucontext, ibucontext); in mlx4_ib_create_srq() 107 if (udata) { in mlx4_ib_create_srq() 110 if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd))) in mlx4_ib_create_srq() 128 err = mlx4_ib_db_map_user(udata, ucmd.db_addr, &srq->db); in mlx4_ib_create_srq() 189 if (udata) in mlx4_ib_create_srq() 190 if (ib_copy_to_udata(udata, &srq->msrq.srqn, sizeof (__u32))) { in mlx4_ib_create_srq() 200 if (udata) in mlx4_ib_create_srq() 214 if (!udata) in mlx4_ib_create_srq() 221 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata) in mlx4_ib_modify_srq() argument [all …]
|
D | mlx4_ib.h | 748 int mlx4_ib_db_map_user(struct ib_udata *udata, unsigned long virt, 757 struct ib_udata *udata); 758 int mlx4_ib_dereg_mr(struct ib_mr *mr, struct ib_udata *udata); 759 int mlx4_ib_alloc_mw(struct ib_mw *mw, struct ib_udata *udata); 766 int mlx4_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata); 768 struct ib_udata *udata); 769 int mlx4_ib_destroy_cq(struct ib_cq *cq, struct ib_udata *udata); 776 struct ib_udata *udata); 786 struct ib_udata *udata); 788 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata); [all …]
|
/kernel/linux/linux-5.10/drivers/xen/ |
D | privcmd.c | 67 static long privcmd_ioctl_hypercall(struct file *file, void __user *udata) in privcmd_ioctl_hypercall() argument 77 if (copy_from_user(&hypercall, udata, sizeof(hypercall))) in privcmd_ioctl_hypercall() 250 static long privcmd_ioctl_mmap(struct file *file, void __user *udata) in privcmd_ioctl_mmap() argument 264 if (copy_from_user(&mmapcmd, udata, sizeof(mmapcmd))) in privcmd_ioctl_mmap() 443 struct file *file, void __user *udata, int version) in privcmd_ioctl_mmap_batch() argument 456 if (copy_from_user(&m, udata, sizeof(struct privcmd_mmapbatch))) in privcmd_ioctl_mmap_batch() 464 if (copy_from_user(&m, udata, sizeof(struct privcmd_mmapbatch_v2))) in privcmd_ioctl_mmap_batch() 618 static long privcmd_ioctl_dm_op(struct file *file, void __user *udata) in privcmd_ioctl_dm_op() argument 630 if (copy_from_user(&kdata, udata, sizeof(kdata))) in privcmd_ioctl_dm_op() 704 static long privcmd_ioctl_restrict(struct file *file, void __user *udata) in privcmd_ioctl_restrict() argument [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
D | uverbs.h | 55 ib_uverbs_init_udata(struct ib_udata *udata, in ib_uverbs_init_udata() argument 60 udata->inbuf = ibuf; in ib_uverbs_init_udata() 61 udata->outbuf = obuf; in ib_uverbs_init_udata() 62 udata->inlen = ilen; in ib_uverbs_init_udata() 63 udata->outlen = olen; in ib_uverbs_init_udata() 67 ib_uverbs_init_udata_buf_or_null(struct ib_udata *udata, in ib_uverbs_init_udata_buf_or_null() argument 72 ib_uverbs_init_udata(udata, in ib_uverbs_init_udata_buf_or_null()
|