Lines Matching refs:cqe_size
668 int cqe_size) in alloc_cq_frag_buf() argument
671 u8 log_wq_stride = 6 + (cqe_size == 128 ? 1 : 0); in alloc_cq_frag_buf()
672 u8 log_wq_sz = ilog2(cqe_size); in alloc_cq_frag_buf()
676 nent * cqe_size, in alloc_cq_frag_buf()
684 buf->cqe_size = cqe_size; in alloc_cq_frag_buf()
714 int *cqe_size, int *index, int *inlen) in create_cq_user() argument
739 if ((ucmd.cqe_size != 64 && ucmd.cqe_size != 128) || in create_cq_user()
743 *cqe_size = ucmd.cqe_size; in create_cq_user()
747 entries * ucmd.cqe_size, IB_ACCESS_LOCAL_WRITE); in create_cq_user()
769 ucmd.buf_addr, entries * ucmd.cqe_size, in create_cq_user()
800 if (!((*cqe_size == 128 && in create_cq_user()
802 (*cqe_size == 64 && in create_cq_user()
806 *cqe_size); in create_cq_user()
825 if (*cqe_size != 128 || in create_cq_user()
830 *cqe_size); in create_cq_user()
871 cqe64 = buf->cqe_size == 64 ? cqe : cqe + 64; in init_cq_frag_buf()
877 int entries, int cqe_size, in create_cq_kernel() argument
890 cq->mcq.cqe_sz = cqe_size; in create_cq_kernel()
892 err = alloc_cq_frag_buf(dev, &cq->buf, entries, cqe_size); in create_cq_kernel()
954 int cqe_size; in mlx5_ib_create_cq() local
979 err = create_cq_user(dev, udata, cq, entries, &cqb, &cqe_size, in mlx5_ib_create_cq()
984 cqe_size = cache_line_size() == 128 ? 128 : 64; in mlx5_ib_create_cq()
985 err = create_cq_kernel(dev, cq, entries, cqe_size, &cqb, in mlx5_ib_create_cq()
997 cq->cqe_size = cqe_size; in mlx5_ib_create_cq()
1001 cqe_sz_to_mlx_sz(cqe_size, in mlx5_ib_create_cq()
1151 int *cqe_size) in resize_user() argument
1165 if (ucmd.cqe_size && SIZE_MAX / ucmd.cqe_size <= entries - 1) in resize_user()
1169 (size_t)ucmd.cqe_size * entries, in resize_user()
1177 *cqe_size = ucmd.cqe_size; in resize_user()
1183 int entries, int cqe_size) in resize_kernel() argument
1191 err = alloc_cq_frag_buf(dev, cq->resize_buf, entries, cqe_size); in resize_kernel()
1217 ssize = cq->buf.cqe_size; in copy_resize_cqes()
1218 dsize = cq->resize_buf->cqe_size; in copy_resize_cqes()
1271 int cqe_size; in mlx5_ib_resize_cq() local
1298 err = resize_user(dev, cq, entries, udata, &cqe_size); in mlx5_ib_resize_cq()
1315 cqe_size = 64; in mlx5_ib_resize_cq()
1316 err = resize_kernel(dev, cq, entries, cqe_size); in mlx5_ib_resize_cq()
1352 cqe_sz_to_mlx_sz(cqe_size, in mlx5_ib_resize_cq()
1416 return cq->cqe_size; in mlx5_ib_get_cqe_size()