Lines Matching defs:udata
138 static int mlx4_ib_get_cq_umem(struct mlx4_ib_dev *dev, struct ib_udata *udata,
175 struct ib_udata *udata)
186 udata, struct mlx4_ib_ucontext, ibucontext);
204 if (udata) {
207 if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) {
213 err = mlx4_ib_get_cq_umem(dev, udata, &cq->buf, &cq->umem,
218 err = mlx4_ib_db_map_user(udata, ucmd.db_addr, &cq->db);
251 buf_addr, !!udata);
255 if (udata)
261 if (udata)
262 if (ib_copy_to_udata(udata, &cq->mcq.cqn, sizeof (__u32))) {
273 if (udata)
280 if (!udata)
284 if (!udata)
315 int entries, struct ib_udata *udata)
323 if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd))
330 err = mlx4_ib_get_cq_umem(dev, udata, &cq->resize_buf->buf,
379 int mlx4_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata)
405 err = mlx4_alloc_resize_umem(dev, cq, entries, udata);
477 int mlx4_ib_destroy_cq(struct ib_cq *cq, struct ib_udata *udata)
485 if (udata) {
488 udata,