Home
last modified time | relevance | path

Searched refs:wqe_shift (Results 1 – 19 of 19) sorted by relevance

/linux-6.3-rc2/drivers/infiniband/hw/mthca/
A Dmthca_srq.c77 return srq->queue.direct.buf + (n << srq->wqe_shift); 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()
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()
470 ind = wqe_addr >> srq->wqe_shift; in mthca_free_srq_wqe()
476 last_free->nda_op = htonl((ind << srq->wqe_shift) | 1); in mthca_free_srq_wqe()
[all …]
A Dmthca_qp.c221 (n << qp->sq.wqe_shift); in get_send_wqe()
224 (n << qp->sq.wqe_shift)) >> in get_send_wqe()
971 1 << qp->sq.wqe_shift)); in mthca_adjust_qp_caps()
1004 for (qp->rq.wqe_shift = 6; 1 << qp->rq.wqe_shift < size; in mthca_alloc_wqe_buf()
1005 qp->rq.wqe_shift++) in mthca_alloc_wqe_buf()
1048 for (qp->sq.wqe_shift = 6; 1 << qp->sq.wqe_shift < size; in mthca_alloc_wqe_buf()
1049 qp->sq.wqe_shift++) in mthca_alloc_wqe_buf()
1053 1 << qp->sq.wqe_shift); in mthca_alloc_wqe_buf()
1222 qp->rq.wqe_shift); in mthca_alloc_qp_common()
1234 qp->sq.wqe_shift) + in mthca_alloc_qp_common()
[all …]
A Dmthca_provider.h211 int wqe_shift; member
237 int wqe_shift; member
A Dmthca_cq.c536 >> 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-6.3-rc2/drivers/infiniband/hw/mlx5/
A Dsrq.h19 u32 wqe_shift; member
47 int wqe_shift; member
A Dsrq.c125 mlx5_init_fbc(srq->buf.frags, srq->msrq.wqe_shift, ilog2(srq->msrq.max), in create_srq_kernel()
233 srq->msrq.wqe_shift = ilog2(desc_size); in mlx5_ib_create_srq()
252 in.wqe_shift = srq->msrq.wqe_shift - 4; in mlx5_ib_create_srq()
A Dsrq_cmd.c16 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()
A Dqp.c193 wq->wqe_shift, buflen, in mlx5_ib_read_user_wqe_sq()
218 wq->wqe_cnt, wq->wqe_shift, in mlx5_ib_read_user_wqe_sq()
255 wq->wqe_shift, buflen, in mlx5_ib_read_user_wqe_rq()
270 size_t wqe_size = 1 << wq->wqe_shift; in mlx5_ib_read_wqe_rq()
442 qp->rq.wqe_shift = 0; in set_rq_size()
453 if ((1 << qp->rq.wqe_shift) / in set_rq_size()
458 (1 << qp->rq.wqe_shift) / in set_rq_size()
478 qp->rq.wqe_shift = ilog2(wqe_size); in set_rq_size()
480 (1 << qp->rq.wqe_shift) / in set_rq_size()
638 int desc_sz = 1 << qp->sq.wqe_shift; in set_user_buf_size()
[all …]
A Dmlx5_ib.h358 int wqe_shift; member
394 u32 wqe_shift; member
A Dodp.c1118 int wqe_size = 1 << srq->msrq.wqe_shift; in mlx5_ib_mr_responder_pfault_handler_srq()
1137 int wqe_size = 1 << wq->wqe_shift; in mlx5_ib_mr_responder_pfault_handler_rq()
/linux-6.3-rc2/drivers/infiniband/hw/mlx4/
A Dsrq.c44 return mlx4_buf_offset(&srq->buf, n << srq->msrq.wqe_shift); in get_wqe()
107 srq->msrq.wqe_shift = ilog2(desc_size); in mlx4_ib_create_srq()
285 mlx4_buf_free(dev->dev, msrq->msrq.max << msrq->msrq.wqe_shift, in mlx4_ib_destroy_srq()
A Dqp.c409 qp->sq.wqe_shift = ilog2(roundup_pow_of_two(s)); in set_kernel_sq_size()
421 (1 << qp->sq.wqe_shift)) - in set_kernel_sq_size()
426 (qp->sq.wqe_cnt << qp->sq.wqe_shift); in set_kernel_sq_size()
427 if (qp->rq.wqe_shift > qp->sq.wqe_shift) { in set_kernel_sq_size()
458 qp->sq.wqe_shift = ucmd->log_sq_stride; in set_user_sq_size()
461 (qp->sq.wqe_cnt << qp->sq.wqe_shift); in set_user_sq_size()
677 qp->sq.wqe_shift = MLX4_IB_MIN_SQ_STRIDE; in create_qp_rss()
913 qp->sq.wqe_shift = MLX4_IB_MIN_SQ_STRIDE; in create_rq()
915 (qp->sq.wqe_cnt << qp->sq.wqe_shift); in create_rq()
2213 context->sq_size_stride |= qp->sq.wqe_shift - 4; in __mlx4_ib_modify_qp()
[all …]
A Dmlx4_ib.h169 int wqe_shift; member
/linux-6.3-rc2/drivers/infiniband/hw/hns/
A Dhns_roce_qp.c461 hr_qp->rq.wqe_shift = ilog2(hr_dev->caps.max_rq_desc_sz * in set_rq_size()
621 hr_qp->sq.wqe_shift = ucmd->log_sq_stride; in set_user_sq_size()
640 hr_qp->sq.wqe_shift); in set_wqe_buf_attr()
662 hr_qp->rq.wqe_shift); in set_wqe_buf_attr()
698 hr_qp->sq.wqe_shift = ilog2(hr_dev->caps.max_sq_desc_sz); in set_kernel_sq_size()
1413 return get_wqe(hr_qp, hr_qp->rq.offset + (n << hr_qp->rq.wqe_shift)); in hns_roce_get_recv_wqe()
1418 return get_wqe(hr_qp, hr_qp->sq.offset + (n << hr_qp->sq.wqe_shift)); in hns_roce_get_send_wqe()
A Dhns_roce_srq.c226 srq->wqe_shift = ilog2(roundup_pow_of_two(max(HNS_ROCE_SGE_SIZE, in alloc_srq_wqe_buf()
232 srq->wqe_shift); in alloc_srq_wqe_buf()
A Dhns_roce_device.h335 u32 wqe_shift; /* WQE size */ member
440 u32 wqe_shift; member
A Dhns_roce_hw_v2.c885 return hns_roce_buf_offset(srq->buf_mtr.kmem, n << srq->wqe_shift); in get_srq_wqe_buf()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/
A Dsrq.c190 srq_context->logstride = srq->wqe_shift - 4; in mlx4_srq_alloc()
/linux-6.3-rc2/include/linux/mlx4/
A Ddevice.h769 int wqe_shift; member

Completed in 84 milliseconds