Lines Matching refs:cqe_size
661 int cqe_size) in alloc_cq_frag_buf() argument
664 u8 log_wq_stride = 6 + (cqe_size == 128 ? 1 : 0); in alloc_cq_frag_buf()
665 u8 log_wq_sz = ilog2(cqe_size); in alloc_cq_frag_buf()
669 nent * cqe_size, in alloc_cq_frag_buf()
677 buf->cqe_size = cqe_size; in alloc_cq_frag_buf()
707 int *cqe_size, int *index, int *inlen) in create_cq_user() argument
732 if ((ucmd.cqe_size != 64 && ucmd.cqe_size != 128) || in create_cq_user()
736 *cqe_size = ucmd.cqe_size; in create_cq_user()
740 entries * ucmd.cqe_size, IB_ACCESS_LOCAL_WRITE); in create_cq_user()
762 ucmd.buf_addr, entries * ucmd.cqe_size, in create_cq_user()
793 if (!((*cqe_size == 128 && in create_cq_user()
795 (*cqe_size == 64 && in create_cq_user()
799 *cqe_size); in create_cq_user()
818 if (*cqe_size != 128 || in create_cq_user()
823 *cqe_size); in create_cq_user()
864 cqe64 = buf->cqe_size == 64 ? cqe : cqe + 64; in init_cq_frag_buf()
870 int entries, int cqe_size, in create_cq_kernel() argument
883 cq->mcq.cqe_sz = cqe_size; in create_cq_kernel()
885 err = alloc_cq_frag_buf(dev, &cq->buf, entries, cqe_size); in create_cq_kernel()
947 int cqe_size; in mlx5_ib_create_cq() local
972 err = create_cq_user(dev, udata, cq, entries, &cqb, &cqe_size, in mlx5_ib_create_cq()
977 cqe_size = cache_line_size() == 128 ? 128 : 64; in mlx5_ib_create_cq()
978 err = create_cq_kernel(dev, cq, entries, cqe_size, &cqb, in mlx5_ib_create_cq()
990 cq->cqe_size = cqe_size; in mlx5_ib_create_cq()
994 cqe_sz_to_mlx_sz(cqe_size, in mlx5_ib_create_cq()
1144 int *cqe_size) in resize_user() argument
1158 if (ucmd.cqe_size && SIZE_MAX / ucmd.cqe_size <= entries - 1) in resize_user()
1162 (size_t)ucmd.cqe_size * entries, in resize_user()
1170 *cqe_size = ucmd.cqe_size; in resize_user()
1176 int entries, int cqe_size) in resize_kernel() argument
1184 err = alloc_cq_frag_buf(dev, cq->resize_buf, entries, cqe_size); in resize_kernel()
1210 ssize = cq->buf.cqe_size; in copy_resize_cqes()
1211 dsize = cq->resize_buf->cqe_size; in copy_resize_cqes()
1264 int cqe_size; in mlx5_ib_resize_cq() local
1291 err = resize_user(dev, cq, entries, udata, &cqe_size); in mlx5_ib_resize_cq()
1308 cqe_size = 64; in mlx5_ib_resize_cq()
1309 err = resize_kernel(dev, cq, entries, cqe_size); in mlx5_ib_resize_cq()
1345 cqe_sz_to_mlx_sz(cqe_size, in mlx5_ib_resize_cq()
1409 return cq->cqe_size; in mlx5_ib_get_cqe_size()