Lines Matching refs:udata
138 static int mlx4_ib_get_cq_umem(struct mlx4_ib_dev *dev, struct ib_udata *udata, in mlx4_ib_get_cq_umem() argument
147 *umem = ib_umem_get(udata, buf_addr, cqe * cqe_size, in mlx4_ib_get_cq_umem()
176 struct ib_udata *udata) in mlx4_ib_create_cq() argument
187 udata, struct mlx4_ib_ucontext, ibucontext); in mlx4_ib_create_cq()
205 if (udata) { in mlx4_ib_create_cq()
208 if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) { in mlx4_ib_create_cq()
214 err = mlx4_ib_get_cq_umem(dev, udata, &cq->buf, &cq->umem, in mlx4_ib_create_cq()
219 err = mlx4_ib_db_map_user(udata, ucmd.db_addr, &cq->db); in mlx4_ib_create_cq()
252 buf_addr, !!udata); in mlx4_ib_create_cq()
256 if (udata) in mlx4_ib_create_cq()
262 if (udata) in mlx4_ib_create_cq()
263 if (ib_copy_to_udata(udata, &cq->mcq.cqn, sizeof (__u32))) { in mlx4_ib_create_cq()
274 if (udata) in mlx4_ib_create_cq()
281 if (!udata) in mlx4_ib_create_cq()
285 if (!udata) in mlx4_ib_create_cq()
316 int entries, struct ib_udata *udata) in mlx4_alloc_resize_umem() argument
324 if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) in mlx4_alloc_resize_umem()
331 err = mlx4_ib_get_cq_umem(dev, udata, &cq->resize_buf->buf, in mlx4_alloc_resize_umem()
380 int mlx4_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata) in mlx4_ib_resize_cq() argument
406 err = mlx4_alloc_resize_umem(dev, cq, entries, udata); in mlx4_ib_resize_cq()
478 void mlx4_ib_destroy_cq(struct ib_cq *cq, struct ib_udata *udata) in mlx4_ib_destroy_cq() argument
486 if (udata) { in mlx4_ib_destroy_cq()
489 udata, in mlx4_ib_destroy_cq()