Lines Matching refs:cqe_size

671 			     int cqe_size)  in alloc_cq_frag_buf()  argument
674 u8 log_wq_stride = 6 + (cqe_size == 128 ? 1 : 0); in alloc_cq_frag_buf()
675 u8 log_wq_sz = ilog2(cqe_size); in alloc_cq_frag_buf()
679 nent * cqe_size, in alloc_cq_frag_buf()
687 buf->cqe_size = cqe_size; in alloc_cq_frag_buf()
717 int *cqe_size, int *index, int *inlen) in create_cq_user() argument
742 if ((ucmd.cqe_size != 64 && ucmd.cqe_size != 128) || in create_cq_user()
746 *cqe_size = ucmd.cqe_size; in create_cq_user()
750 entries * ucmd.cqe_size, IB_ACCESS_LOCAL_WRITE); in create_cq_user()
772 ucmd.buf_addr, entries * ucmd.cqe_size, in create_cq_user()
803 if (!((*cqe_size == 128 && in create_cq_user()
805 (*cqe_size == 64 && in create_cq_user()
809 *cqe_size); in create_cq_user()
828 if (*cqe_size != 128 || in create_cq_user()
833 *cqe_size); in create_cq_user()
874 cqe64 = buf->cqe_size == 64 ? cqe : cqe + 64; in init_cq_frag_buf()
880 int entries, int cqe_size, in create_cq_kernel() argument
893 cq->mcq.cqe_sz = cqe_size; in create_cq_kernel()
895 err = alloc_cq_frag_buf(dev, &cq->buf, entries, cqe_size); in create_cq_kernel()
957 int cqe_size; in mlx5_ib_create_cq() local
982 err = create_cq_user(dev, udata, cq, entries, &cqb, &cqe_size, in mlx5_ib_create_cq()
987 cqe_size = cache_line_size() == 128 ? 128 : 64; in mlx5_ib_create_cq()
988 err = create_cq_kernel(dev, cq, entries, cqe_size, &cqb, in mlx5_ib_create_cq()
1000 cq->cqe_size = cqe_size; in mlx5_ib_create_cq()
1004 cqe_sz_to_mlx_sz(cqe_size, in mlx5_ib_create_cq()
1154 int *cqe_size) in resize_user() argument
1168 if (ucmd.cqe_size && SIZE_MAX / ucmd.cqe_size <= entries - 1) in resize_user()
1172 (size_t)ucmd.cqe_size * entries, in resize_user()
1180 *cqe_size = ucmd.cqe_size; in resize_user()
1186 int entries, int cqe_size) in resize_kernel() argument
1194 err = alloc_cq_frag_buf(dev, cq->resize_buf, entries, cqe_size); in resize_kernel()
1220 ssize = cq->buf.cqe_size; in copy_resize_cqes()
1221 dsize = cq->resize_buf->cqe_size; in copy_resize_cqes()
1274 int cqe_size; in mlx5_ib_resize_cq() local
1301 err = resize_user(dev, cq, entries, udata, &cqe_size); in mlx5_ib_resize_cq()
1318 cqe_size = 64; in mlx5_ib_resize_cq()
1319 err = resize_kernel(dev, cq, entries, cqe_size); in mlx5_ib_resize_cq()
1355 cqe_sz_to_mlx_sz(cqe_size, in mlx5_ib_resize_cq()
1419 return cq->cqe_size; in mlx5_ib_get_cqe_size()