/Linux-v5.10/drivers/infiniband/hw/mthca/ |
D | mthca_srq.c | 77 return srq->queue.direct.buf + (n << srq->wqe_shift); in get_wqe() 79 return srq->queue.page_list[(n << srq->wqe_shift) >> PAGE_SHIFT].buf + in get_wqe() 80 ((n << srq->wqe_shift) & (PAGE_SIZE - 1)); in get_wqe() 108 context->wqe_base_ds = cpu_to_be64(1 << (srq->wqe_shift - 4)); in mthca_tavor_init_srq_context() 139 context->logstride_usrpage = cpu_to_be32((srq->wqe_shift - 4) << 29); in mthca_arbel_init_srq_context() 149 mthca_buf_free(dev, srq->max << srq->wqe_shift, &srq->queue, in mthca_free_srq_buf() 169 err = mthca_buf_alloc(dev, srq->max << srq->wqe_shift, in mthca_alloc_srq_buf() 189 next->nda_op = htonl(((i + 1) << srq->wqe_shift) | 1); in mthca_alloc_srq_buf() 196 (void *) scatter < wqe + (1 << srq->wqe_shift); in mthca_alloc_srq_buf() 235 srq->wqe_shift = ilog2(ds); in mthca_alloc_srq() [all …]
|
D | mthca_qp.c | 211 return qp->queue.direct.buf + (n << qp->rq.wqe_shift); in get_recv_wqe() 213 return qp->queue.page_list[(n << qp->rq.wqe_shift) >> PAGE_SHIFT].buf + in get_recv_wqe() 214 ((n << qp->rq.wqe_shift) & (PAGE_SIZE - 1)); in get_recv_wqe() 221 (n << qp->sq.wqe_shift); in get_send_wqe() 224 (n << qp->sq.wqe_shift)) >> in get_send_wqe() 226 ((qp->send_wqe_offset + (n << qp->sq.wqe_shift)) & in get_send_wqe() 617 qp_context->rq_size_stride |= qp->rq.wqe_shift - 4; in __mthca_modify_qp() 621 qp_context->sq_size_stride |= qp->sq.wqe_shift - 4; in __mthca_modify_qp() 968 1 << qp->sq.wqe_shift)); in mthca_adjust_qp_caps() 975 (min(dev->limits.max_desc_sz, 1 << qp->rq.wqe_shift) - in mthca_adjust_qp_caps() [all …]
|
D | mthca_provider.h | 211 int wqe_shift; member 237 int wqe_shift; member
|
D | mthca_cq.c | 536 >> wq->wqe_shift); in mthca_poll_one() 543 wqe_index = wqe >> srq->wqe_shift; in mthca_poll_one() 550 wqe_index = wqe >> wq->wqe_shift; in mthca_poll_one()
|
/Linux-v5.10/drivers/infiniband/hw/mlx5/ |
D | srq.h | 19 u32 wqe_shift; member 46 int wqe_shift; member
|
D | srq.c | 151 mlx5_init_fbc(srq->buf.frags, srq->msrq.wqe_shift, ilog2(srq->msrq.max), in create_srq_kernel() 254 srq->msrq.wqe_shift = ilog2(desc_size); in mlx5_ib_create_srq() 273 in.wqe_shift = srq->msrq.wqe_shift - 4; in mlx5_ib_create_srq()
|
D | srq_cmd.c | 16 u32 log_rq_stride = in->wqe_shift; in get_pas_size() 32 MLX5_SET(wq, wq, log_wq_stride, in->wqe_shift + 4); in set_wq() 45 MLX5_SET(srqc, srqc, log_rq_stride, in->wqe_shift); in set_srqc() 60 in->wqe_shift = MLX5_GET(wq, wq, log_wq_stride) - 4; in get_wq() 73 in->wqe_shift = MLX5_GET(srqc, srqc, log_rq_stride); in get_srqc()
|
D | qp.c | 184 wq->wqe_shift, buflen, in mlx5_ib_read_user_wqe_sq() 209 wq->wqe_cnt, wq->wqe_shift, in mlx5_ib_read_user_wqe_sq() 246 wq->wqe_shift, buflen, in mlx5_ib_read_user_wqe_rq() 261 size_t wqe_size = 1 << wq->wqe_shift; in mlx5_ib_read_wqe_rq() 280 srq->msrq.max, srq->msrq.wqe_shift, in mlx5_ib_read_user_wqe_srq() 293 size_t wqe_size = 1 << srq->msrq.wqe_shift; in mlx5_ib_read_wqe_srq() 364 qp->rq.wqe_shift = 0; in set_rq_size() 374 qp->rq.wqe_shift = ucmd->rq_wqe_shift; in set_rq_size() 375 if ((1 << qp->rq.wqe_shift) / in set_rq_size() 380 (1 << qp->rq.wqe_shift) / in set_rq_size() [all …]
|
D | mlx5_ib.h | 280 int wqe_shift; member 316 u32 wqe_shift; member
|
D | odp.c | 1191 int wqe_size = 1 << srq->msrq.wqe_shift; in mlx5_ib_mr_responder_pfault_handler_srq() 1210 int wqe_size = 1 << wq->wqe_shift; in mlx5_ib_mr_responder_pfault_handler_rq()
|
/Linux-v5.10/drivers/infiniband/hw/mlx4/ |
D | srq.c | 44 return mlx4_buf_offset(&srq->buf, n << srq->msrq.wqe_shift); in get_wqe() 103 srq->msrq.wqe_shift = ilog2(desc_size); in mlx4_ib_create_srq() 281 mlx4_buf_free(dev->dev, msrq->msrq.max << msrq->msrq.wqe_shift, in mlx4_ib_destroy_srq()
|
D | qp.c | 173 return get_wqe(qp, qp->rq.offset + (n << qp->rq.wqe_shift)); in get_recv_wqe() 178 return get_wqe(qp, qp->sq.offset + (n << qp->sq.wqe_shift)); in get_send_wqe() 328 qp->rq.wqe_shift = ilog2(max_t(u32, wqe_size, inl_recv_sz)); in set_rq_size() 374 qp->sq.wqe_shift = ilog2(roundup_pow_of_two(s)); in set_kernel_sq_size() 380 qp->sq_spare_wqes = MLX4_IB_SQ_HEADROOM(qp->sq.wqe_shift); in set_kernel_sq_size() 386 (1 << qp->sq.wqe_shift)) - in set_kernel_sq_size() 390 qp->buf_size = (qp->rq.wqe_cnt << qp->rq.wqe_shift) + in set_kernel_sq_size() 391 (qp->sq.wqe_cnt << qp->sq.wqe_shift); in set_kernel_sq_size() 392 if (qp->rq.wqe_shift > qp->sq.wqe_shift) { in set_kernel_sq_size() 394 qp->sq.offset = qp->rq.wqe_cnt << qp->rq.wqe_shift; in set_kernel_sq_size() [all …]
|
D | mlx4_ib.h | 169 int wqe_shift; member
|
/Linux-v5.10/drivers/infiniband/hw/hns/ |
D | hns_roce_qp.c | 390 hr_qp->rq.wqe_shift = ilog2(hr_dev->caps.max_rq_desc_sz); in set_rq_size() 392 hr_qp->rq.wqe_shift = ilog2(hr_dev->caps.max_rq_desc_sz * in set_rq_size() 486 hr_qp->sq.wqe_shift = ucmd->log_sq_stride; in set_user_sq_size() 504 hr_qp->sq.wqe_shift); in set_wqe_buf_attr() 526 hr_qp->rq.wqe_shift); in set_wqe_buf_attr() 566 hr_qp->sq.wqe_shift = ilog2(hr_dev->caps.max_sq_desc_sz); in set_kernel_sq_size() 1249 return get_wqe(hr_qp, hr_qp->rq.offset + (n << hr_qp->rq.wqe_shift)); in hns_roce_get_recv_wqe() 1254 return get_wqe(hr_qp, hr_qp->sq.offset + (n << hr_qp->sq.wqe_shift)); in hns_roce_get_send_wqe()
|
D | hns_roce_srq.c | 186 srq->wqe_shift = ilog2(roundup_pow_of_two(max(HNS_ROCE_SGE_SIZE, in alloc_srq_buf() 192 srq->wqe_shift); in alloc_srq_buf()
|
D | hns_roce_device.h | 405 int wqe_shift; /* WQE size */ member 492 int wqe_shift; member
|
D | hns_roce_hw_v2.c | 827 return hns_roce_buf_offset(srq->buf_mtr.kmem, n << srq->wqe_shift); in get_srq_wqe()
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx4/ |
D | srq.c | 190 srq_context->logstride = srq->wqe_shift - 4; in mlx4_srq_alloc()
|
/Linux-v5.10/include/linux/mlx4/ |
D | device.h | 769 int wqe_shift; member
|