| /NextBSD/contrib/ofed/libmthca/src/ |
| HD | srq.c | 48 return srq->buf.buf + (n << srq->wqe_shift); in get_wqe() 73 last_free->nda_op = htonl((ind << srq->wqe_shift) | 1); in mthca_free_srq_wqe() 150 doorbell[0] = htonl(first_ind << srq->wqe_shift); in mthca_tavor_post_srq_recv() 166 doorbell[0] = htonl(first_ind << srq->wqe_shift); in mthca_tavor_post_srq_recv() 268 for (srq->wqe_shift = 6; 1 << srq->wqe_shift < size; ++srq->wqe_shift) in mthca_alloc_srq_buf() 271 srq->buf_size = srq->max << srq->wqe_shift; in mthca_alloc_srq_buf() 295 next->nda_op = htonl(((i + 1) << srq->wqe_shift) | 1); in mthca_alloc_srq_buf() 302 (void *) scatter < wqe + (1 << srq->wqe_shift); in mthca_alloc_srq_buf()
|
| HD | qp.c | 63 return qp->buf.buf + (n << qp->rq.wqe_shift); in get_recv_wqe() 68 return qp->buf.buf + qp->send_wqe_offset + (n << qp->sq.wqe_shift); in get_send_wqe() 292 htonl(((ind << qp->sq.wqe_shift) + in mthca_tavor_post_send() 320 doorbell[0] = htonl(((qp->sq.next_ind << qp->sq.wqe_shift) + in mthca_tavor_post_send() 404 doorbell[0] = htonl((qp->rq.next_ind << qp->rq.wqe_shift) | size0); in mthca_tavor_post_recv() 423 doorbell[0] = htonl((qp->rq.next_ind << qp->rq.wqe_shift) | size0); in mthca_tavor_post_recv() 658 htonl(((ind << qp->sq.wqe_shift) + in mthca_arbel_post_send() 802 for (qp->rq.wqe_shift = 6; 1 << qp->rq.wqe_shift < size; in mthca_alloc_qp_buf() 803 qp->rq.wqe_shift++) in mthca_alloc_qp_buf() 842 for (qp->sq.wqe_shift = 6; 1 << qp->sq.wqe_shift < size; in mthca_alloc_qp_buf() [all …]
|
| HD | cq.c | 341 wqe_index = ((ntohl(cqe->wqe) - (*cur_qp)->send_wqe_offset) >> wq->wqe_shift); in mthca_poll_one() 347 wqe_index = wqe >> srq->wqe_shift; in mthca_poll_one() 354 wqe_index = wqe >> wq->wqe_shift; in mthca_poll_one() 577 ntohl(cqe->wqe) >> srq->wqe_shift); in __mthca_cq_clean()
|
| HD | mthca.h | 179 int wqe_shift; member 199 int wqe_shift; member
|
| /NextBSD/contrib/ofed/libmlx4/src/ |
| HD | qp.c | 60 return qp->buf.buf + qp->rq.offset + (n << qp->rq.wqe_shift); in get_recv_wqe() 65 return qp->buf.buf + qp->sq.offset + (n << qp->sq.wqe_shift); in get_send_wqe() 99 ctrl->fence_size = 1 << (qp->sq.wqe_shift - 4); in mlx4_qp_init_sq_ownership() 581 for (qp->sq.wqe_shift = 6; 1 << qp->sq.wqe_shift < size; in mlx4_calc_sq_wqe_size() 582 qp->sq.wqe_shift++) in mlx4_calc_sq_wqe_size() 603 for (qp->rq.wqe_shift = 4; in mlx4_alloc_qp_buf() 604 1 << qp->rq.wqe_shift < qp->rq.max_gs * sizeof (struct mlx4_wqe_data_seg); in mlx4_alloc_qp_buf() 605 qp->rq.wqe_shift++) in mlx4_alloc_qp_buf() 608 qp->buf_size = (qp->rq.wqe_cnt << qp->rq.wqe_shift) + in mlx4_alloc_qp_buf() 609 (qp->sq.wqe_cnt << qp->sq.wqe_shift); in mlx4_alloc_qp_buf() [all …]
|
| HD | srq.c | 48 return srq->buf.buf + (n << srq->wqe_shift); in get_wqe() 143 for (srq->wqe_shift = 5; 1 << srq->wqe_shift < size; ++srq->wqe_shift) in mlx4_alloc_srq_buf() 146 buf_size = srq->max << srq->wqe_shift; in mlx4_alloc_srq_buf() 166 (void *) scatter < (void *) next + (1 << srq->wqe_shift); in mlx4_alloc_srq_buf()
|
| HD | mlx4.h | 238 int wqe_shift; member 253 int wqe_shift; member
|
| HD | verbs.c | 470 qp->sq_spare_wqes = (2048 >> qp->sq.wqe_shift) + 1; in mlx4_create_qp() 505 cmd.log_sq_stride = qp->sq.wqe_shift; in mlx4_create_qp()
|
| /NextBSD/sys/ofed/drivers/infiniband/hw/mthca/ |
| HD | mthca_srq.c | 75 return srq->queue.direct.buf + (n << srq->wqe_shift); in get_wqe() 77 return srq->queue.page_list[(n << srq->wqe_shift) >> PAGE_SHIFT].buf + in get_wqe() 78 ((n << srq->wqe_shift) & (PAGE_SIZE - 1)); in get_wqe() 102 context->wqe_base_ds = cpu_to_be64(1 << (srq->wqe_shift - 4)); in mthca_tavor_init_srq_context() 131 context->logstride_usrpage = cpu_to_be32((srq->wqe_shift - 4) << 29); in mthca_arbel_init_srq_context() 142 mthca_buf_free(dev, srq->max << srq->wqe_shift, &srq->queue, in mthca_free_srq_buf() 162 err = mthca_buf_alloc(dev, srq->max << srq->wqe_shift, in mthca_alloc_srq_buf() 182 next->nda_op = htonl(((i + 1) << srq->wqe_shift) | 1); in mthca_alloc_srq_buf() 189 (void *) scatter < wqe + (1 << srq->wqe_shift); in mthca_alloc_srq_buf() 228 srq->wqe_shift = ilog2(ds); in mthca_alloc_srq() [all …]
|
| HD | mthca_qp.c | 210 return qp->queue.direct.buf + (n << qp->rq.wqe_shift); in get_recv_wqe() 212 return qp->queue.page_list[(n << qp->rq.wqe_shift) >> PAGE_SHIFT].buf + in get_recv_wqe() 213 ((n << qp->rq.wqe_shift) & (PAGE_SIZE - 1)); in get_recv_wqe() 220 (n << qp->sq.wqe_shift); in get_send_wqe() 223 (n << qp->sq.wqe_shift)) >> in get_send_wqe() 225 ((qp->send_wqe_offset + (n << qp->sq.wqe_shift)) & in get_send_wqe() 607 qp_context->rq_size_stride |= qp->rq.wqe_shift - 4; in __mthca_modify_qp() 611 qp_context->sq_size_stride |= qp->sq.wqe_shift - 4; in __mthca_modify_qp() 961 1 << qp->sq.wqe_shift)); in mthca_adjust_qp_caps() 968 (min(dev->limits.max_desc_sz, 1 << qp->rq.wqe_shift) - in mthca_adjust_qp_caps() [all …]
|
| HD | mthca_provider.h | 228 int wqe_shift; member 254 int wqe_shift; member
|
| HD | mthca_cq.c | 540 >> wq->wqe_shift); in mthca_poll_one() 546 wqe_index = wqe >> srq->wqe_shift; in mthca_poll_one() 553 wqe_index = wqe >> wq->wqe_shift; in mthca_poll_one()
|
| /NextBSD/sys/ofed/drivers/infiniband/hw/mlx4/ |
| HD | qp.c | 198 return get_wqe(qp, qp->rq.offset + (n << qp->rq.wqe_shift)); in get_recv_wqe() 203 return get_wqe(qp, qp->sq.offset + (n << qp->sq.wqe_shift)); in get_send_wqe() 226 s = roundup(size, 1U << qp->sq.wqe_shift); in stamp_send_wqe() 228 ind = (i >> qp->sq.wqe_shift) + n; in stamp_send_wqe() 232 wqe = buf + (i & ((1 << qp->sq.wqe_shift) - 1)); in stamp_send_wqe() 287 post_nop_wqe(qp, ind, s << qp->sq.wqe_shift); in pad_wraparound() 405 qp->rq.wqe_shift = ilog2(qp->rq.max_gs * sizeof (struct mlx4_wqe_data_seg)); in set_rq_size() 487 qp->sq.wqe_shift = ilog2(64); in set_kernel_sq_size() 489 qp->sq.wqe_shift = ilog2(roundup_pow_of_two(s)); in set_kernel_sq_size() 492 qp->sq_max_wqes_per_wr = DIV_ROUND_UP(s, 1U << qp->sq.wqe_shift); in set_kernel_sq_size() [all …]
|
| HD | srq.c | 43 return mlx4_buf_offset(&srq->buf, n << srq->msrq.wqe_shift); in get_wqe() 104 srq->msrq.wqe_shift = ilog2(desc_size); in mlx4_ib_create_srq() 284 mlx4_buf_free(dev->dev, msrq->msrq.max << msrq->msrq.wqe_shift, in mlx4_ib_destroy_srq()
|
| HD | mlx4_exp.c | 111 mqp->max_inlr_data = 1 << mqp->rq.wqe_shift; in mlx4_ib_exp_create_qp()
|
| HD | mlx4_ib.h | 170 int wqe_shift; member
|
| /NextBSD/contrib/ofed/libmlx4/fixes/ |
| HD | fix_inline_size.patch | 121 - wqe_size = (1 << qp->sq.wqe_shift) - sizeof (struct mlx4_wqe_ctrl_seg); 122 + wqe_size = min((1 << qp->sq.wqe_shift), MLX4_MAX_WQE_SIZE) -
|
| HD | post_rcv_end_of_sg.patch | 24 + (void *) scatter < (void *) next + (1 << srq->wqe_shift);
|
| HD | lim_qp_resources.patch | 20 wqe_size = (1 << qp->sq.wqe_shift) - sizeof (struct mlx4_wqe_ctrl_seg);
|
| /NextBSD/sys/dev/ifmlx4/ |
| HD | srq.c | 194 srq_context->logstride = srq->wqe_shift - 4; in mlx4_srq_alloc()
|
| /NextBSD/sys/ofed/drivers/net/mlx4/ |
| HD | srq.c | 194 srq_context->logstride = srq->wqe_shift - 4; in mlx4_srq_alloc()
|
| /NextBSD/sys/dev/mlx5/ |
| HD | driver.h | 394 int wqe_shift; member
|
| /NextBSD/sys/ofed/include/linux/mlx4/ |
| HD | device.h | 672 int wqe_shift; member
|