Lines Matching refs:udata
166 struct ib_udata *udata, unsigned long addr) in alloc_srq_idx() argument
183 udata, addr); in alloc_srq_idx()
190 if (!udata) { in alloc_srq_idx()
220 struct ib_udata *udata, unsigned long addr) in alloc_srq_wqe_buf() argument
238 udata, addr); in alloc_srq_wqe_buf()
291 struct ib_udata *udata) in set_srq_basic_param() argument
297 max_sge = proc_srq_sge(hr_dev, srq, !!udata); in set_srq_basic_param()
329 struct ib_udata *udata) in set_srq_param() argument
333 ret = set_srq_basic_param(srq, init_attr, udata); in set_srq_param()
343 struct ib_udata *udata) in alloc_srq_buf() argument
348 if (udata) { in alloc_srq_buf()
349 ret = ib_copy_from_udata(&ucmd, udata, in alloc_srq_buf()
350 min(udata->inlen, sizeof(ucmd))); in alloc_srq_buf()
359 ret = alloc_srq_idx(hr_dev, srq, udata, ucmd.que_addr); in alloc_srq_buf()
363 ret = alloc_srq_wqe_buf(hr_dev, srq, udata, ucmd.buf_addr); in alloc_srq_buf()
367 if (!udata) { in alloc_srq_buf()
392 struct ib_udata *udata) in hns_roce_create_srq() argument
402 ret = set_srq_param(srq, init_attr, udata); in hns_roce_create_srq()
406 ret = alloc_srq_buf(hr_dev, srq, udata); in hns_roce_create_srq()
418 if (udata) { in hns_roce_create_srq()
420 if (ib_copy_to_udata(udata, &resp, in hns_roce_create_srq()
421 min(udata->outlen, sizeof(resp)))) { in hns_roce_create_srq()
444 int hns_roce_destroy_srq(struct ib_srq *ibsrq, struct ib_udata *udata) in hns_roce_destroy_srq() argument