Home
last modified time | relevance | path

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

123456

/linux-6.12.1/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);
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);
64 int qedr_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata);
[all …]
/linux-6.12.1/drivers/infiniband/hw/hns/
Dhns_roce_srq.c167 struct ib_udata *udata, unsigned long addr) in alloc_srq_idx() argument
184 udata, addr); in alloc_srq_idx()
191 if (!udata) { in alloc_srq_idx()
221 struct ib_udata *udata, unsigned long addr) in alloc_srq_wqe_buf() argument
239 udata, addr); in alloc_srq_wqe_buf()
292 struct ib_udata *udata) in set_srq_basic_param() argument
298 max_sge = proc_srq_sge(hr_dev, srq, !!udata); in set_srq_basic_param()
330 struct ib_udata *udata) in set_srq_param() argument
334 ret = set_srq_basic_param(srq, init_attr, udata); in set_srq_param()
344 struct ib_udata *udata) in alloc_srq_buf() argument
[all …]
Dhns_roce_cq.c199 struct ib_udata *udata, unsigned long addr) in alloc_cq_buf() argument
212 udata, addr); in alloc_cq_buf()
225 struct ib_udata *udata, unsigned long addr, in alloc_cq_db() argument
232 if (udata) { in alloc_cq_db()
234 udata->outlen >= offsetofend(typeof(*resp), cap_flags)) { in alloc_cq_db()
235 uctx = rdma_udata_to_drv_context(udata, in alloc_cq_db()
260 struct ib_udata *udata) in free_cq_db() argument
268 if (udata) { in free_cq_db()
269 uctx = rdma_udata_to_drv_context(udata, in free_cq_db()
298 static int get_cq_ucmd(struct hns_roce_cq *hr_cq, struct ib_udata *udata, in get_cq_ucmd() argument
[all …]
Dhns_roce_qp.c749 struct ib_udata *udata, unsigned long addr) in alloc_qp_buf() argument
762 udata, addr); in alloc_qp_buf()
785 struct ib_udata *udata, in user_qp_has_sdb() argument
790 udata->outlen >= offsetofend(typeof(*resp), cap_flags) && in user_qp_has_sdb()
792 udata->inlen >= offsetofend(typeof(*ucmd), sdb_addr)); in user_qp_has_sdb()
797 struct ib_udata *udata, in user_qp_has_rdb() argument
801 udata->outlen >= offsetofend(typeof(*resp), cap_flags) && in user_qp_has_rdb()
814 struct ib_udata *udata, in qp_mmap_entry() argument
818 rdma_udata_to_drv_context(udata, in qp_mmap_entry()
844 struct ib_udata *udata, in alloc_user_qp_db() argument
[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
166 int hns_roce_dealloc_xrcd(struct ib_xrcd *ib_xrcd, struct ib_udata *udata) in hns_roce_dealloc_xrcd() argument
/linux-6.12.1/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);
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);
74 int siw_dereg_mr(struct ib_mr *base_mr, struct ib_udata *udata);
[all …]
Dsiw_verbs.c86 int siw_alloc_ucontext(struct ib_ucontext *base_ctx, struct ib_udata *udata) in siw_alloc_ucontext() argument
101 if (udata->outlen < sizeof(uresp)) { in siw_alloc_ucontext()
105 rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in siw_alloc_ucontext()
130 struct ib_udata *udata) in siw_query_device() argument
134 if (udata->inlen || udata->outlen) in siw_query_device()
232 int siw_alloc_pd(struct ib_pd *pd, struct ib_udata *udata) in siw_alloc_pd() argument
245 int siw_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata) in siw_dealloc_pd() argument
302 struct ib_udata *udata) in siw_create_qp() argument
309 rdma_udata_to_drv_context(udata, struct siw_ucontext, in siw_create_qp()
379 if (udata) in siw_create_qp()
[all …]
/linux-6.12.1/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);
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-6.12.1/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);
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);
98 int ocrdma_dereg_mr(struct ib_mr *ib_mr, struct ib_udata *udata);
/linux-6.12.1/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.c162 struct ib_udata *udata = &attrs->driver_udata; in rvt_create_cq() local
191 if (udata && udata->outlen >= sizeof(__u64)) { in rvt_create_cq()
209 if (udata && udata->outlen >= sizeof(__u64)) { in rvt_create_cq()
210 cq->ip = rvt_create_mmap_info(rdi, sz, udata, u_wc); in rvt_create_cq()
216 err = ib_copy_to_udata(udata, &cq->ip->offset, in rvt_create_cq()
278 int rvt_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata) in rvt_destroy_cq() argument
340 int rvt_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata) in rvt_resize_cq() argument
358 if (udata && udata->outlen >= sizeof(__u64)) { in rvt_resize_cq()
372 if (udata && udata->outlen >= sizeof(__u64)) { in rvt_resize_cq()
375 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);
/linux-6.12.1/drivers/infiniband/hw/bnxt_re/
Dib_verbs.h198 struct ib_udata *udata);
212 int bnxt_re_alloc_pd(struct ib_pd *pd, struct ib_udata *udata);
213 int bnxt_re_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata);
215 struct ib_udata *udata);
220 struct ib_udata *udata);
223 struct ib_udata *udata);
225 int bnxt_re_destroy_srq(struct ib_srq *srq, struct ib_udata *udata);
229 struct ib_udata *udata);
231 int qp_attr_mask, struct ib_udata *udata);
234 int bnxt_re_destroy_qp(struct ib_qp *qp, struct ib_udata *udata);
[all …]
/linux-6.12.1/drivers/infiniband/hw/mana/
Dqp.c93 struct ib_udata *udata) in mana_ib_create_qp_rss() argument
114 if (!udata || udata->inlen < sizeof(ucmd)) in mana_ib_create_qp_rss()
117 ret = ib_copy_from_udata(&ucmd, udata, min(sizeof(ucmd), udata->inlen)); in mana_ib_create_qp_rss()
234 ret = ib_copy_to_udata(udata, &resp, sizeof(resp)); in mana_ib_create_qp_rss()
264 struct ib_udata *udata) in mana_ib_create_qp_raw() argument
273 rdma_udata_to_drv_context(udata, struct mana_ib_ucontext, in mana_ib_create_qp_raw()
286 if (!mana_ucontext || udata->inlen < sizeof(ucmd)) in mana_ib_create_qp_raw()
289 err = ib_copy_from_udata(&ucmd, udata, min(sizeof(ucmd), udata->inlen)); in mana_ib_create_qp_raw()
376 err = ib_copy_to_udata(udata, &resp, sizeof(resp)); in mana_ib_create_qp_raw()
418 struct ib_qp_init_attr *attr, struct ib_udata *udata) in mana_ib_create_rc_qp() argument
[all …]
Dwq.c10 struct ib_udata *udata) in mana_ib_create_wq() argument
18 if (udata->inlen < sizeof(ucmd)) in mana_ib_create_wq()
21 err = ib_copy_from_udata(&ucmd, udata, min(sizeof(ucmd), udata->inlen)); in mana_ib_create_wq()
53 u32 wq_attr_mask, struct ib_udata *udata) in mana_ib_modify_wq() argument
59 int mana_ib_destroy_wq(struct ib_wq *ibwq, struct ib_udata *udata) in mana_ib_destroy_wq() argument
76 struct ib_udata *udata) in mana_ib_create_rwq_ind_table() argument
Dcq.c11 struct ib_udata *udata = &attrs->driver_udata; in mana_ib_create_cq() local
27 if (udata->inlen < offsetof(struct mana_ib_create_cq, flags)) in mana_ib_create_cq()
30 err = ib_copy_from_udata(&ucmd, udata, min(sizeof(ucmd), udata->inlen)); in mana_ib_create_cq()
51 mana_ucontext = rdma_udata_to_drv_context(udata, struct mana_ib_ucontext, in mana_ib_create_cq()
70 err = ib_copy_to_udata(udata, &resp, min(sizeof(resp), udata->outlen)); in mana_ib_create_cq()
88 int mana_ib_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata) in mana_ib_destroy_cq() argument
Dmana_ib.h397 struct ib_udata *udata);
400 u32 wq_attr_mask, struct ib_udata *udata);
402 int mana_ib_destroy_wq(struct ib_wq *ibwq, struct ib_udata *udata);
406 struct ib_udata *udata);
414 struct ib_udata *udata);
416 int mana_ib_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata);
419 struct ib_udata *udata);
422 int attr_mask, struct ib_udata *udata);
424 int mana_ib_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata);
434 int mana_ib_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata);
[all …]
/linux-6.12.1/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-6.12.1/drivers/infiniband/hw/efa/
Defa.h147 struct ib_udata *udata);
157 int efa_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata);
158 int efa_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata);
159 int efa_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata);
161 struct ib_udata *udata);
162 int efa_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata);
167 struct ib_udata *udata);
172 int efa_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata);
175 int efa_alloc_ucontext(struct ib_ucontext *ibucontext, struct ib_udata *udata);
182 struct ib_udata *udata);
[all …]
Defa_verbs.c207 struct ib_udata *udata) in efa_query_device() argument
214 if (udata && udata->inlen && in efa_query_device()
215 !ib_is_udata_cleared(udata, 0, udata->inlen)) { in efa_query_device()
242 if (udata && udata->outlen) { in efa_query_device()
268 err = ib_copy_to_udata(udata, &resp, in efa_query_device()
269 min(sizeof(resp), udata->outlen)); in efa_query_device()
381 int efa_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in efa_alloc_pd() argument
389 if (udata->inlen && in efa_alloc_pd()
390 !ib_is_udata_cleared(udata, 0, udata->inlen)) { in efa_alloc_pd()
404 if (udata->outlen) { in efa_alloc_pd()
[all …]
/linux-6.12.1/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-6.12.1/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);
379 int pvrdma_destroy_cq(struct ib_cq *cq, struct ib_udata *udata);
383 struct ib_udata *udata);
387 struct ib_udata *udata);
389 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata);
[all …]
/linux-6.12.1/drivers/infiniband/sw/rxe/
Drxe_verbs.c20 struct ib_udata *udata) in rxe_query_device() argument
25 if (udata->inlen || udata->outlen) { in rxe_query_device()
205 static int rxe_alloc_ucontext(struct ib_ucontext *ibuc, struct ib_udata *udata) in rxe_alloc_ucontext() argument
229 static int rxe_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in rxe_alloc_pd() argument
248 static int rxe_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in rxe_dealloc_pd() argument
263 struct ib_udata *udata) in rxe_create_ah() argument
270 if (udata) { in rxe_create_ah()
272 if (udata->outlen >= sizeof(*uresp)) in rxe_create_ah()
273 uresp = udata->outbuf; in rxe_create_ah()
368 struct ib_udata *udata) in rxe_create_srq() argument
[all …]
/linux-6.12.1/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-6.12.1/drivers/xen/
Dprivcmd.c80 static long privcmd_ioctl_hypercall(struct file *file, void __user *udata) in privcmd_ioctl_hypercall() argument
90 if (copy_from_user(&hypercall, udata, sizeof(hypercall))) in privcmd_ioctl_hypercall()
263 static long privcmd_ioctl_mmap(struct file *file, void __user *udata) in privcmd_ioctl_mmap() argument
277 if (copy_from_user(&mmapcmd, udata, sizeof(mmapcmd))) in privcmd_ioctl_mmap()
456 struct file *file, void __user *udata, int version) in privcmd_ioctl_mmap_batch() argument
469 if (copy_from_user(&m, udata, sizeof(struct privcmd_mmapbatch))) in privcmd_ioctl_mmap_batch()
477 if (copy_from_user(&m, udata, sizeof(struct privcmd_mmapbatch_v2))) in privcmd_ioctl_mmap_batch()
631 static long privcmd_ioctl_dm_op(struct file *file, void __user *udata) in privcmd_ioctl_dm_op() argument
643 if (copy_from_user(&kdata, udata, sizeof(kdata))) in privcmd_ioctl_dm_op()
717 static long privcmd_ioctl_restrict(struct file *file, void __user *udata) in privcmd_ioctl_restrict() argument
[all …]

123456