• Home
  • Raw
  • Download

Lines Matching refs:udata

277 		     struct ib_udata *udata)  in efa_query_device()  argument
284 if (udata && udata->inlen && in efa_query_device()
285 !ib_is_udata_cleared(udata, 0, udata->inlen)) { in efa_query_device()
310 if (udata && udata->outlen) { in efa_query_device()
316 err = ib_copy_to_udata(udata, &resp, in efa_query_device()
317 min(sizeof(resp), udata->outlen)); in efa_query_device()
428 int efa_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in efa_alloc_pd() argument
436 if (udata->inlen && in efa_alloc_pd()
437 !ib_is_udata_cleared(udata, 0, udata->inlen)) { in efa_alloc_pd()
451 if (udata->outlen) { in efa_alloc_pd()
452 err = ib_copy_to_udata(udata, &resp, in efa_alloc_pd()
453 min(sizeof(resp), udata->outlen)); in efa_alloc_pd()
472 void efa_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in efa_dealloc_pd() argument
488 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
642 ucontext = rdma_udata_to_drv_context(udata, struct efa_ucontext, in efa_create_qp()
653 if (!field_avail(cmd, driver_qp_type, udata->inlen)) { in efa_create_qp()
660 if (udata->inlen > sizeof(cmd) && in efa_create_qp()
661 !ib_is_udata_cleared(udata, sizeof(cmd), in efa_create_qp()
662 udata->inlen - sizeof(cmd))) { in efa_create_qp()
669 err = ib_copy_from_udata(&cmd, udata, in efa_create_qp()
670 min(sizeof(cmd), udata->inlen)); in efa_create_qp()
755 if (udata->outlen) { in efa_create_qp()
756 err = ib_copy_to_udata(udata, &resp, in efa_create_qp()
757 min(sizeof(resp), udata->outlen)); in efa_create_qp()
822 int qp_attr_mask, struct ib_udata *udata) in efa_modify_qp() argument
831 if (udata->inlen && in efa_modify_qp()
832 !ib_is_udata_cleared(udata, 0, udata->inlen)) { in efa_modify_qp()
888 void efa_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata) in efa_destroy_cq() argument
916 struct ib_udata *udata) in efa_create_cq() argument
919 udata, struct efa_ucontext, ibucontext); in efa_create_cq()
941 if (!field_avail(cmd, num_sub_cqs, udata->inlen)) { in efa_create_cq()
948 if (udata->inlen > sizeof(cmd) && in efa_create_cq()
949 !ib_is_udata_cleared(udata, sizeof(cmd), in efa_create_cq()
950 udata->inlen - sizeof(cmd))) { in efa_create_cq()
957 err = ib_copy_from_udata(&cmd, udata, in efa_create_cq()
958 min(sizeof(cmd), udata->inlen)); in efa_create_cq()
1018 if (udata->outlen) { in efa_create_cq()
1019 err = ib_copy_to_udata(udata, &resp, in efa_create_cq()
1020 min(sizeof(resp), udata->outlen)); in efa_create_cq()
1393 struct ib_udata *udata) in efa_reg_mr() argument
1404 if (udata->inlen && in efa_reg_mr()
1405 !ib_is_udata_cleared(udata, 0, sizeof(udata->inlen))) { in efa_reg_mr()
1426 mr->umem = ib_umem_get(udata, start, length, access_flags, 0); in efa_reg_mr()
1494 int efa_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata) in efa_dereg_mr() argument
1541 int efa_alloc_ucontext(struct ib_ucontext *ibucontext, struct ib_udata *udata) in efa_alloc_ucontext() argument
1567 if (udata && udata->outlen) { in efa_alloc_ucontext()
1568 err = ib_copy_to_udata(udata, &resp, in efa_alloc_ucontext()
1569 min(sizeof(resp), udata->outlen)); in efa_alloc_ucontext()
1684 struct ib_udata *udata) in efa_create_ah() argument
1700 if (udata->inlen && in efa_create_ah()
1701 !ib_is_udata_cleared(udata, 0, udata->inlen)) { in efa_create_ah()
1719 if (udata->outlen) { in efa_create_ah()
1720 err = ib_copy_to_udata(udata, &resp, in efa_create_ah()
1721 min(sizeof(resp), udata->outlen)); in efa_create_ah()