Lines Matching defs:udata
190 struct ib_udata *udata)
197 if (udata && udata->inlen &&
198 !ib_is_udata_cleared(udata, 0, udata->inlen)) {
200 "Incompatible ABI params, udata not cleared\n");
225 if (udata && udata->outlen) {
238 err = ib_copy_to_udata(udata, &resp,
239 min(sizeof(resp), udata->outlen));
242 "Failed to copy udata for query_device\n");
351 int efa_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata)
359 if (udata->inlen &&
360 !ib_is_udata_cleared(udata, 0, udata->inlen)) {
362 "Incompatible ABI params, udata not cleared\n");
374 if (udata->outlen) {
375 err = ib_copy_to_udata(udata, &resp,
376 min(sizeof(resp), udata->outlen));
379 "Failed to copy udata for alloc_pd\n");
395 int efa_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata)
420 int efa_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata)
604 struct ib_udata *udata)
615 ucontext = rdma_udata_to_drv_context(udata, struct efa_ucontext,
626 if (offsetofend(typeof(cmd), driver_qp_type) > udata->inlen) {
628 "Incompatible ABI params, no input udata\n");
633 if (udata->inlen > sizeof(cmd) &&
634 !ib_is_udata_cleared(udata, sizeof(cmd),
635 udata->inlen - sizeof(cmd))) {
637 "Incompatible ABI params, unknown fields in udata\n");
642 err = ib_copy_from_udata(&cmd, udata,
643 min(sizeof(cmd), udata->inlen));
646 "Cannot copy udata for create_qp\n");
652 "Incompatible ABI params, unknown fields in udata\n");
726 if (udata->outlen) {
727 err = ib_copy_to_udata(udata, &resp,
728 min(sizeof(resp), udata->outlen));
731 "Failed to copy udata for qp[%u]\n",
910 int qp_attr_mask, struct ib_udata *udata)
919 if (udata->inlen &&
920 !ib_is_udata_cleared(udata, 0, udata->inlen)) {
922 "Incompatible ABI params, udata not cleared\n");
984 int efa_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata)
1015 struct ib_udata *udata)
1018 udata, struct efa_ucontext, ibucontext);
1039 if (offsetofend(typeof(cmd), num_sub_cqs) > udata->inlen) {
1041 "Incompatible ABI params, no input udata\n");
1046 if (udata->inlen > sizeof(cmd) &&
1047 !ib_is_udata_cleared(udata, sizeof(cmd),
1048 udata->inlen - sizeof(cmd))) {
1050 "Incompatible ABI params, unknown fields in udata\n");
1055 err = ib_copy_from_udata(&cmd, udata,
1056 min(sizeof(cmd), udata->inlen));
1058 ibdev_dbg(ibdev, "Cannot copy udata for create_cq\n");
1064 "Incompatible ABI params, unknown fields in udata\n");
1114 if (udata->outlen) {
1115 err = ib_copy_to_udata(udata, &resp,
1116 min(sizeof(resp), udata->outlen));
1119 "Failed to copy udata for create_cq\n");
1489 struct ib_udata *udata)
1501 if (udata && udata->inlen &&
1502 !ib_is_udata_cleared(udata, 0, sizeof(udata->inlen))) {
1504 "Incompatible ABI params, udata not cleared\n");
1595 int efa_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata)
1669 int efa_alloc_ucontext(struct ib_ucontext *ibucontext, struct ib_udata *udata)
1683 err = ib_copy_from_udata(&cmd, udata,
1684 min(sizeof(cmd), udata->inlen));
1687 "Cannot copy udata for alloc_ucontext\n");
1709 err = ib_copy_to_udata(udata, &resp,
1710 min(sizeof(resp), udata->outlen));
1827 struct ib_udata *udata)
1844 if (udata->inlen &&
1845 !ib_is_udata_cleared(udata, 0, udata->inlen)) {
1863 if (udata->outlen) {
1864 err = ib_copy_to_udata(udata, &resp,
1865 min(sizeof(resp), udata->outlen));
1868 "Failed to copy udata for create_ah response\n");