Home
last modified time | relevance | path

Searched refs:udata (Results 1 – 25 of 127) sorted by relevance

123456

/linux-5.19.10/drivers/infiniband/hw/qedr/
Dverbs.h36 struct ib_device_attr *attr, struct ib_udata *udata);
45 int qedr_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata);
50 int qedr_alloc_pd(struct ib_pd *pd, struct ib_udata *udata);
51 int qedr_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata);
52 int qedr_alloc_xrcd(struct ib_xrcd *ibxrcd, struct ib_udata *udata);
53 int qedr_dealloc_xrcd(struct ib_xrcd *ibxrcd, struct ib_udata *udata);
55 struct ib_udata *udata);
56 int qedr_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata);
59 struct ib_udata *udata);
61 int attr_mask, struct ib_udata *udata);
[all …]
/linux-5.19.10/drivers/infiniband/sw/siw/
Dsiw_verbs.h37 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);
54 struct ib_udata *udata);
58 int attr_mask, struct ib_udata *udata);
59 int siw_destroy_qp(struct ib_qp *base_qp, struct ib_udata *udata);
64 int siw_destroy_cq(struct ib_cq *base_cq, struct ib_udata *udata);
68 u64 rnic_va, int rights, struct ib_udata *udata);
[all …]
Dsiw_verbs.c80 int siw_alloc_ucontext(struct ib_ucontext *base_ctx, struct ib_udata *udata) in siw_alloc_ucontext() argument
95 if (udata->outlen < sizeof(uresp)) { in siw_alloc_ucontext()
99 rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in siw_alloc_ucontext()
124 struct ib_udata *udata) in siw_query_device() argument
128 if (udata->inlen || udata->outlen) in siw_query_device()
226 int siw_alloc_pd(struct ib_pd *pd, struct ib_udata *udata) in siw_alloc_pd() argument
239 int siw_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata) in siw_dealloc_pd() argument
296 struct ib_udata *udata) in siw_create_qp() argument
303 rdma_udata_to_drv_context(udata, struct siw_ucontext, in siw_create_qp()
381 if (udata) in siw_create_qp()
[all …]
/linux-5.19.10/drivers/infiniband/hw/usnic/
Dusnic_ib_verbs.h51 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);
54 struct ib_udata *udata);
55 int usnic_ib_destroy_qp(struct ib_qp *qp, struct ib_udata *udata);
57 int attr_mask, struct ib_udata *udata);
59 struct ib_udata *udata);
60 int usnic_ib_destroy_cq(struct ib_cq *cq, struct ib_udata *udata);
63 struct ib_udata *udata);
64 int usnic_ib_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata);
65 int usnic_ib_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata);
/linux-5.19.10/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.h64 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);
78 struct ib_udata *udata);
82 int attr_mask, struct ib_udata *udata);
86 int ocrdma_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata);
90 struct ib_udata *udata);
94 int ocrdma_destroy_srq(struct ib_srq *ibsrq, struct ib_udata *udata);
[all …]
/linux-5.19.10/drivers/infiniband/hw/bnxt_re/
Dib_verbs.h151 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);
173 struct ib_udata *udata);
176 struct ib_udata *udata);
178 int bnxt_re_destroy_srq(struct ib_srq *srq, struct ib_udata *udata);
182 struct ib_udata *udata);
184 int qp_attr_mask, struct ib_udata *udata);
187 int bnxt_re_destroy_qp(struct ib_qp *qp, struct ib_udata *udata);
[all …]
/linux-5.19.10/drivers/infiniband/sw/rdmavt/
Dsrq.c35 struct ib_udata *udata) in rvt_create_srq() argument
59 dev->dparms.node, udata)) { in rvt_create_srq()
68 if (udata && udata->outlen >= sizeof(__u64)) { in rvt_create_srq()
71 srq->ip = rvt_create_mmap_info(dev, s, udata, srq->rq.wq); in rvt_create_srq()
77 ret = ib_copy_to_udata(udata, &srq->ip->offset, in rvt_create_srq()
126 struct ib_udata *udata) in rvt_modify_srq() argument
148 udata)) in rvt_modify_srq()
151 if (udata && udata->inlen >= sizeof(__u64)) { in rvt_modify_srq()
155 ret = ib_copy_from_udata(&offset_addr, udata, in rvt_modify_srq()
159 udata->outbuf = (void __user *) in rvt_modify_srq()
[all …]
Dcq.c159 struct ib_udata *udata) in rvt_create_cq() argument
189 if (udata && udata->outlen >= sizeof(__u64)) { in rvt_create_cq()
207 if (udata && udata->outlen >= sizeof(__u64)) { in rvt_create_cq()
208 cq->ip = rvt_create_mmap_info(rdi, sz, udata, u_wc); in rvt_create_cq()
214 err = ib_copy_to_udata(udata, &cq->ip->offset, in rvt_create_cq()
276 int rvt_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata) in rvt_destroy_cq() argument
338 int rvt_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata) in rvt_resize_cq() argument
356 if (udata && udata->outlen >= sizeof(__u64)) { in rvt_resize_cq()
370 if (udata && udata->outlen >= sizeof(__u64)) { in rvt_resize_cq()
373 ret = ib_copy_to_udata(udata, &offset, sizeof(offset)); in rvt_resize_cq()
[all …]
Dqp.h14 struct ib_udata *udata);
16 int attr_mask, struct ib_udata *udata);
17 int rvt_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata);
29 struct ib_udata *udata);
Dsrq.h12 struct ib_udata *udata);
15 struct ib_udata *udata);
17 int rvt_destroy_srq(struct ib_srq *ibsrq, struct ib_udata *udata);
Dcq.h13 struct ib_udata *udata);
14 int rvt_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata);
16 int rvt_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata);
/linux-5.19.10/drivers/infiniband/hw/efa/
Defa.h136 struct ib_udata *udata);
146 int efa_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata);
147 int efa_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata);
148 int efa_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata);
150 struct ib_udata *udata);
151 int efa_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata);
153 struct ib_udata *udata);
156 struct ib_udata *udata);
160 struct ib_udata *udata);
161 int efa_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata);
[all …]
Defa_verbs.c203 struct ib_udata *udata) in efa_query_device() argument
210 if (udata && udata->inlen && in efa_query_device()
211 !ib_is_udata_cleared(udata, 0, udata->inlen)) { in efa_query_device()
238 if (udata && udata->outlen) { in efa_query_device()
254 err = ib_copy_to_udata(udata, &resp, in efa_query_device()
255 min(sizeof(resp), udata->outlen)); in efa_query_device()
367 int efa_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in efa_alloc_pd() argument
375 if (udata->inlen && in efa_alloc_pd()
376 !ib_is_udata_cleared(udata, 0, udata->inlen)) { in efa_alloc_pd()
390 if (udata->outlen) { in efa_alloc_pd()
[all …]
/linux-5.19.10/drivers/infiniband/hw/hns/
Dhns_roce_cq.c200 struct ib_udata *udata, unsigned long addr) in alloc_cq_buf() argument
213 udata, addr); in alloc_cq_buf()
226 struct ib_udata *udata, unsigned long addr, in alloc_cq_db() argument
233 if (udata) { in alloc_cq_db()
235 udata->outlen >= offsetofend(typeof(*resp), cap_flags)) { in alloc_cq_db()
236 uctx = rdma_udata_to_drv_context(udata, in alloc_cq_db()
261 struct ib_udata *udata) in free_cq_db() argument
269 if (udata) { in free_cq_db()
270 uctx = rdma_udata_to_drv_context(udata, in free_cq_db()
299 static int get_cq_ucmd(struct hns_roce_cq *hr_cq, struct ib_udata *udata, in get_cq_ucmd() argument
[all …]
Dhns_roce_srq.c166 struct ib_udata *udata, unsigned long addr) in alloc_srq_idx() argument
183 udata, addr); in alloc_srq_idx()
190 if (!udata) { in alloc_srq_idx()
220 struct ib_udata *udata, unsigned long addr) in alloc_srq_wqe_buf() argument
238 udata, addr); in alloc_srq_wqe_buf()
291 struct ib_udata *udata) in set_srq_basic_param() argument
297 max_sge = proc_srq_sge(hr_dev, srq, !!udata); in set_srq_basic_param()
329 struct ib_udata *udata) in set_srq_param() argument
333 ret = set_srq_basic_param(srq, init_attr, udata); in set_srq_param()
343 struct ib_udata *udata) in alloc_srq_buf() argument
[all …]
Dhns_roce_qp.c711 struct ib_udata *udata, unsigned long addr) in alloc_qp_buf() argument
717 if (!udata && hr_qp->rq_inl_buf.wqe_cnt) { in alloc_qp_buf()
736 udata, addr); in alloc_qp_buf()
761 struct ib_udata *udata, in user_qp_has_sdb() argument
766 udata->outlen >= offsetofend(typeof(*resp), cap_flags) && in user_qp_has_sdb()
768 udata->inlen >= offsetofend(typeof(*ucmd), sdb_addr)); in user_qp_has_sdb()
773 struct ib_udata *udata, in user_qp_has_rdb() argument
777 udata->outlen >= offsetofend(typeof(*resp), cap_flags) && in user_qp_has_rdb()
790 struct ib_udata *udata, in qp_mmap_entry() argument
794 rdma_udata_to_drv_context(udata, in qp_mmap_entry()
[all …]
Dhns_roce_pd.c45 int hns_roce_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in hns_roce_alloc_pd() argument
62 if (udata) { in hns_roce_alloc_pd()
65 ret = ib_copy_to_udata(udata, &resp, in hns_roce_alloc_pd()
66 min(udata->outlen, sizeof(resp))); in hns_roce_alloc_pd()
76 int hns_roce_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata) in hns_roce_dealloc_pd() argument
146 int hns_roce_alloc_xrcd(struct ib_xrcd *ib_xrcd, struct ib_udata *udata) in hns_roce_alloc_xrcd() argument
162 int hns_roce_dealloc_xrcd(struct ib_xrcd *ib_xrcd, struct ib_udata *udata) in hns_roce_dealloc_xrcd() argument
/linux-5.19.10/drivers/infiniband/hw/mthca/
Dmthca_provider.c287 struct ib_udata *udata) in mthca_alloc_ucontext() argument
314 if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) { in mthca_alloc_ucontext()
348 static int mthca_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in mthca_alloc_pd() argument
354 err = mthca_pd_alloc(to_mdev(ibdev), !udata, pd); in mthca_alloc_pd()
358 if (udata) { in mthca_alloc_pd()
359 if (ib_copy_to_udata(udata, &pd->pd_num, sizeof (__u32))) { in mthca_alloc_pd()
368 static int mthca_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata) in mthca_dealloc_pd() argument
376 struct ib_udata *udata) in mthca_ah_create() argument
393 struct ib_udata *udata) in mthca_create_srq() argument
397 udata, struct mthca_ucontext, ibucontext); in mthca_create_srq()
[all …]
/linux-5.19.10/drivers/infiniband/hw/mlx5/
Dsrq.c45 struct ib_udata *udata, int buf_size) in create_srq_user() argument
50 udata, struct mlx5_ib_ucontext, ibucontext); in create_srq_user()
55 ucmdlen = min(udata->inlen, sizeof(ucmd)); in create_srq_user()
57 if (ib_copy_from_udata(&ucmd, udata, ucmdlen)) { in create_srq_user()
65 if (udata->inlen > sizeof(ucmd) && in create_srq_user()
66 !ib_is_udata_cleared(udata, sizeof(ucmd), in create_srq_user()
67 udata->inlen - sizeof(ucmd))) in create_srq_user()
71 err = get_srq_user_index(ucontext, &ucmd, udata->inlen, &uidx); in create_srq_user()
172 struct ib_udata *udata) in destroy_srq_user() argument
176 udata, in destroy_srq_user()
[all …]
/linux-5.19.10/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_verbs.h350 struct ib_udata *udata);
364 int pvrdma_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata);
366 int pvrdma_alloc_pd(struct ib_pd *pd, struct ib_udata *udata);
367 int pvrdma_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata);
371 struct ib_udata *udata);
372 int pvrdma_dereg_mr(struct ib_mr *mr, struct ib_udata *udata);
378 struct ib_udata *udata);
379 int pvrdma_destroy_cq(struct ib_cq *cq, struct ib_udata *udata);
383 struct ib_udata *udata);
387 struct ib_udata *udata);
[all …]
/linux-5.19.10/drivers/infiniband/sw/rxe/
Drxe_verbs.c106 static int rxe_alloc_ucontext(struct ib_ucontext *ibuc, struct ib_udata *udata) in rxe_alloc_ucontext() argument
140 static int rxe_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in rxe_alloc_pd() argument
148 static int rxe_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in rxe_dealloc_pd() argument
158 struct ib_udata *udata) in rxe_create_ah() argument
166 if (udata) { in rxe_create_ah()
168 if (udata->outlen >= sizeof(*uresp)) in rxe_create_ah()
169 uresp = udata->outbuf; in rxe_create_ah()
281 struct ib_udata *udata) in rxe_create_srq() argument
289 if (udata) { in rxe_create_srq()
290 if (udata->outlen < sizeof(*uresp)) in rxe_create_srq()
[all …]
Drxe_loc.h29 int comp_vector, struct ib_udata *udata,
34 struct ib_udata *udata);
61 struct ib_udata *udata, void *obj);
82 int rxe_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata);
86 int rxe_alloc_mw(struct ib_mw *ibmw, struct ib_udata *udata);
107 struct ib_pd *ibpd, struct ib_udata *udata);
112 int mask, struct ib_udata *udata);
162 struct ib_srq_init_attr *init, struct ib_udata *udata,
168 struct rxe_modify_srq_cmd *ucmd, struct ib_udata *udata);
/linux-5.19.10/drivers/infiniband/hw/mlx4/
Dsrq.c74 struct ib_udata *udata) in mlx4_ib_create_srq() argument
78 udata, struct mlx4_ib_ucontext, ibucontext); in mlx4_ib_create_srq()
111 if (udata) { in mlx4_ib_create_srq()
114 if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd))) in mlx4_ib_create_srq()
132 err = mlx4_ib_db_map_user(udata, ucmd.db_addr, &srq->db); in mlx4_ib_create_srq()
193 if (udata) in mlx4_ib_create_srq()
194 if (ib_copy_to_udata(udata, &srq->msrq.srqn, sizeof (__u32))) { in mlx4_ib_create_srq()
204 if (udata) in mlx4_ib_create_srq()
218 if (!udata) in mlx4_ib_create_srq()
225 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata) in mlx4_ib_modify_srq() argument
[all …]
/linux-5.19.10/drivers/xen/
Dprivcmd.c67 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 …]
/linux-5.19.10/drivers/infiniband/core/
Duverbs.h55 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()

123456