• Home
  • Raw
  • Download

Lines Matching refs:udata

208 		     struct ib_udata *udata)  in efa_query_device()  argument
215 if (udata && udata->inlen && in efa_query_device()
216 !ib_is_udata_cleared(udata, 0, udata->inlen)) { in efa_query_device()
243 if (udata && udata->outlen) { in efa_query_device()
266 err = ib_copy_to_udata(udata, &resp, in efa_query_device()
267 min(sizeof(resp), udata->outlen)); in efa_query_device()
379 int efa_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in efa_alloc_pd() argument
387 if (udata->inlen && in efa_alloc_pd()
388 !ib_is_udata_cleared(udata, 0, udata->inlen)) { in efa_alloc_pd()
402 if (udata->outlen) { in efa_alloc_pd()
403 err = ib_copy_to_udata(udata, &resp, in efa_alloc_pd()
404 min(sizeof(resp), udata->outlen)); in efa_alloc_pd()
423 int efa_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in efa_dealloc_pd() argument
448 int efa_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) in efa_destroy_qp() argument
630 struct ib_udata *udata) in efa_create_qp() argument
641 ucontext = rdma_udata_to_drv_context(udata, struct efa_ucontext, in efa_create_qp()
652 if (offsetofend(typeof(cmd), driver_qp_type) > udata->inlen) { in efa_create_qp()
659 if (udata->inlen > sizeof(cmd) && in efa_create_qp()
660 !ib_is_udata_cleared(udata, sizeof(cmd), in efa_create_qp()
661 udata->inlen - sizeof(cmd))) { in efa_create_qp()
668 err = ib_copy_from_udata(&cmd, udata, in efa_create_qp()
669 min(sizeof(cmd), udata->inlen)); in efa_create_qp()
746 if (udata->outlen) { in efa_create_qp()
747 err = ib_copy_to_udata(udata, &resp, in efa_create_qp()
748 min(sizeof(resp), udata->outlen)); in efa_create_qp()
928 int qp_attr_mask, struct ib_udata *udata) in efa_modify_qp() argument
940 if (udata->inlen && in efa_modify_qp()
941 !ib_is_udata_cleared(udata, 0, udata->inlen)) { in efa_modify_qp()
1011 int efa_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata) in efa_destroy_cq() argument
1067 struct ib_udata *udata) in efa_create_cq() argument
1070 udata, struct efa_ucontext, ibucontext); in efa_create_cq()
1095 if (offsetofend(typeof(cmd), num_sub_cqs) > udata->inlen) { in efa_create_cq()
1102 if (udata->inlen > sizeof(cmd) && in efa_create_cq()
1103 !ib_is_udata_cleared(udata, sizeof(cmd), in efa_create_cq()
1104 udata->inlen - sizeof(cmd))) { in efa_create_cq()
1111 err = ib_copy_from_udata(&cmd, udata, in efa_create_cq()
1112 min(sizeof(cmd), udata->inlen)); in efa_create_cq()
1190 if (udata->outlen) { in efa_create_cq()
1191 err = ib_copy_to_udata(udata, &resp, in efa_create_cq()
1192 min(sizeof(resp), udata->outlen)); in efa_create_cq()
1567 struct ib_udata *udata) in efa_alloc_mr() argument
1573 if (udata && udata->inlen && in efa_alloc_mr()
1574 !ib_is_udata_cleared(udata, 0, sizeof(udata->inlen))) { in efa_alloc_mr()
1664 struct ib_udata *udata) in efa_reg_user_mr_dmabuf() argument
1671 mr = efa_alloc_mr(ibpd, access_flags, udata); in efa_reg_user_mr_dmabuf()
1703 struct ib_udata *udata) in efa_reg_mr() argument
1709 mr = efa_alloc_mr(ibpd, access_flags, udata); in efa_reg_mr()
1738 int efa_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata) in efa_dereg_mr() argument
1812 int efa_alloc_ucontext(struct ib_ucontext *ibucontext, struct ib_udata *udata) in efa_alloc_ucontext() argument
1826 err = ib_copy_from_udata(&cmd, udata, in efa_alloc_ucontext()
1827 min(sizeof(cmd), udata->inlen)); in efa_alloc_ucontext()
1852 err = ib_copy_to_udata(udata, &resp, in efa_alloc_ucontext()
1853 min(sizeof(resp), udata->outlen)); in efa_alloc_ucontext()
1970 struct ib_udata *udata) in efa_create_ah() argument
1987 if (udata->inlen && in efa_create_ah()
1988 !ib_is_udata_cleared(udata, 0, udata->inlen)) { in efa_create_ah()
2006 if (udata->outlen) { in efa_create_ah()
2007 err = ib_copy_to_udata(udata, &resp, in efa_create_ah()
2008 min(sizeof(resp), udata->outlen)); in efa_create_ah()