Lines Matching refs:ucmd

723 	struct mlx5_ib_create_cq ucmd = {};  in create_cq_user()  local
734 ucmdlen = min(udata->inlen, sizeof(ucmd)); in create_cq_user()
738 if (ib_copy_from_udata(&ucmd, udata, ucmdlen)) in create_cq_user()
741 if ((ucmd.flags & ~(MLX5_IB_CREATE_CQ_FLAGS_CQE_128B_PAD | in create_cq_user()
746 if ((ucmd.cqe_size != 64 && ucmd.cqe_size != 128) || in create_cq_user()
747 ucmd.reserved0 || ucmd.reserved1) in create_cq_user()
750 *cqe_size = ucmd.cqe_size; in create_cq_user()
753 ib_umem_get(&dev->ib_dev, ucmd.buf_addr, in create_cq_user()
754 entries * ucmd.cqe_size, IB_ACCESS_LOCAL_WRITE); in create_cq_user()
768 err = mlx5_ib_db_map_user(context, ucmd.db_addr, &cq->db); in create_cq_user()
776 ucmd.buf_addr, entries * ucmd.cqe_size, in create_cq_user()
799 } else if (ucmd.flags & MLX5_IB_CREATE_CQ_FLAGS_UAR_PAGE_INDEX) { in create_cq_user()
800 *index = ucmd.uar_page_index; in create_cq_user()
808 if (ucmd.cqe_comp_en == 1) { in create_cq_user()
823 ucmd.cqe_comp_res_format); in create_cq_user()
827 ucmd.cqe_comp_res_format, err); in create_cq_user()
835 if (ucmd.flags & MLX5_IB_CREATE_CQ_FLAGS_CQE_128B_PAD) { in create_cq_user()
848 if (ucmd.flags & MLX5_IB_CREATE_CQ_FLAGS_REAL_TIME_TS) in create_cq_user()
1165 struct mlx5_ib_resize_cq ucmd; in resize_user() local
1169 err = ib_copy_from_udata(&ucmd, udata, sizeof(ucmd)); in resize_user()
1173 if (ucmd.reserved0 || ucmd.reserved1) in resize_user()
1177 if (ucmd.cqe_size && SIZE_MAX / ucmd.cqe_size <= entries - 1) in resize_user()
1180 umem = ib_umem_get(&dev->ib_dev, ucmd.buf_addr, in resize_user()
1181 (size_t)ucmd.cqe_size * entries, in resize_user()
1189 *cqe_size = ucmd.cqe_size; in resize_user()