Lines Matching refs:udata
204 struct ib_udata *udata) in efa_query_device() argument
211 if (udata && udata->inlen && in efa_query_device()
212 !ib_is_udata_cleared(udata, 0, udata->inlen)) { in efa_query_device()
239 if (udata && udata->outlen) { in efa_query_device()
256 err = ib_copy_to_udata(udata, &resp, in efa_query_device()
257 min(sizeof(resp), udata->outlen)); in efa_query_device()
369 int efa_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in efa_alloc_pd() argument
377 if (udata->inlen && in efa_alloc_pd()
378 !ib_is_udata_cleared(udata, 0, udata->inlen)) { in efa_alloc_pd()
392 if (udata->outlen) { in efa_alloc_pd()
393 err = ib_copy_to_udata(udata, &resp, in efa_alloc_pd()
394 min(sizeof(resp), udata->outlen)); in efa_alloc_pd()
413 int efa_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in efa_dealloc_pd() argument
438 int efa_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) in efa_destroy_qp() argument
620 struct ib_udata *udata) in efa_create_qp() argument
631 ucontext = rdma_udata_to_drv_context(udata, struct efa_ucontext, in efa_create_qp()
642 if (offsetofend(typeof(cmd), driver_qp_type) > udata->inlen) { in efa_create_qp()
649 if (udata->inlen > sizeof(cmd) && in efa_create_qp()
650 !ib_is_udata_cleared(udata, sizeof(cmd), in efa_create_qp()
651 udata->inlen - sizeof(cmd))) { in efa_create_qp()
658 err = ib_copy_from_udata(&cmd, udata, in efa_create_qp()
659 min(sizeof(cmd), udata->inlen)); in efa_create_qp()
736 if (udata->outlen) { in efa_create_qp()
737 err = ib_copy_to_udata(udata, &resp, in efa_create_qp()
738 min(sizeof(resp), udata->outlen)); in efa_create_qp()
918 int qp_attr_mask, struct ib_udata *udata) in efa_modify_qp() argument
930 if (udata->inlen && in efa_modify_qp()
931 !ib_is_udata_cleared(udata, 0, udata->inlen)) { in efa_modify_qp()
1001 int efa_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata) in efa_destroy_cq() argument
1057 struct ib_udata *udata) in efa_create_cq() argument
1060 udata, struct efa_ucontext, ibucontext); in efa_create_cq()
1085 if (offsetofend(typeof(cmd), num_sub_cqs) > udata->inlen) { in efa_create_cq()
1092 if (udata->inlen > sizeof(cmd) && in efa_create_cq()
1093 !ib_is_udata_cleared(udata, sizeof(cmd), in efa_create_cq()
1094 udata->inlen - sizeof(cmd))) { in efa_create_cq()
1101 err = ib_copy_from_udata(&cmd, udata, in efa_create_cq()
1102 min(sizeof(cmd), udata->inlen)); in efa_create_cq()
1180 if (udata->outlen) { in efa_create_cq()
1181 err = ib_copy_to_udata(udata, &resp, in efa_create_cq()
1182 min(sizeof(resp), udata->outlen)); in efa_create_cq()
1557 struct ib_udata *udata) in efa_alloc_mr() argument
1563 if (udata && udata->inlen && in efa_alloc_mr()
1564 !ib_is_udata_cleared(udata, 0, sizeof(udata->inlen))) { in efa_alloc_mr()
1653 struct ib_udata *udata) in efa_reg_user_mr_dmabuf() argument
1660 mr = efa_alloc_mr(ibpd, access_flags, udata); in efa_reg_user_mr_dmabuf()
1692 struct ib_udata *udata) in efa_reg_mr() argument
1698 mr = efa_alloc_mr(ibpd, access_flags, udata); in efa_reg_mr()
1727 int efa_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata) in efa_dereg_mr() argument
1801 int efa_alloc_ucontext(struct ib_ucontext *ibucontext, struct ib_udata *udata) in efa_alloc_ucontext() argument
1815 err = ib_copy_from_udata(&cmd, udata, in efa_alloc_ucontext()
1816 min(sizeof(cmd), udata->inlen)); in efa_alloc_ucontext()
1841 err = ib_copy_to_udata(udata, &resp, in efa_alloc_ucontext()
1842 min(sizeof(resp), udata->outlen)); in efa_alloc_ucontext()
1959 struct ib_udata *udata) in efa_create_ah() argument
1976 if (udata->inlen && in efa_create_ah()
1977 !ib_is_udata_cleared(udata, 0, udata->inlen)) { in efa_create_ah()
1995 if (udata->outlen) { in efa_create_ah()
1996 err = ib_copy_to_udata(udata, &resp, in efa_create_ah()
1997 min(sizeof(resp), udata->outlen)); in efa_create_ah()