wqe_shift 432 drivers/infiniband/hw/hns/hns_roce_device.h int wqe_shift; /* WQE size */ wqe_shift 528 drivers/infiniband/hw/hns/hns_roce_device.h int wqe_shift; wqe_shift 2473 drivers/infiniband/hw/hns/hns_roce_hw_v2.c return hns_roce_buf_offset(&srq->buf, n << srq->wqe_shift); wqe_shift 313 drivers/infiniband/hw/hns/hns_roce_qp.c hr_qp->rq.wqe_shift = wqe_shift 316 drivers/infiniband/hw/hns/hns_roce_qp.c hr_qp->rq.wqe_shift = wqe_shift 370 drivers/infiniband/hw/hns/hns_roce_qp.c hr_qp->sq.wqe_shift = ucmd->log_sq_stride; wqe_shift 397 drivers/infiniband/hw/hns/hns_roce_qp.c hr_qp->rq.wqe_shift), PAGE_SIZE) + wqe_shift 399 drivers/infiniband/hw/hns/hns_roce_qp.c hr_qp->sq.wqe_shift), PAGE_SIZE); wqe_shift 403 drivers/infiniband/hw/hns/hns_roce_qp.c hr_qp->sq.wqe_shift), PAGE_SIZE); wqe_shift 409 drivers/infiniband/hw/hns/hns_roce_qp.c hr_qp->rq.wqe_shift), page_size) + wqe_shift 413 drivers/infiniband/hw/hns/hns_roce_qp.c hr_qp->sq.wqe_shift), page_size); wqe_shift 419 drivers/infiniband/hw/hns/hns_roce_qp.c hr_qp->sq.wqe_shift), wqe_shift 428 drivers/infiniband/hw/hns/hns_roce_qp.c hr_qp->sq.wqe_shift), wqe_shift 567 drivers/infiniband/hw/hns/hns_roce_qp.c hr_qp->sq.wqe_shift = ilog2(hr_dev->caps.max_sq_desc_sz); wqe_shift 596 drivers/infiniband/hw/hns/hns_roce_qp.c size = HNS_ROCE_ALOGN_UP(hr_qp->sq.wqe_cnt << hr_qp->sq.wqe_shift, wqe_shift 608 drivers/infiniband/hw/hns/hns_roce_qp.c size += HNS_ROCE_ALOGN_UP((hr_qp->rq.wqe_cnt << hr_qp->rq.wqe_shift), wqe_shift 1273 drivers/infiniband/hw/hns/hns_roce_qp.c return get_wqe(hr_qp, hr_qp->rq.offset + (n << hr_qp->rq.wqe_shift)); wqe_shift 1278 drivers/infiniband/hw/hns/hns_roce_qp.c return get_wqe(hr_qp, hr_qp->sq.offset + (n << hr_qp->sq.wqe_shift)); wqe_shift 385 drivers/infiniband/hw/hns/hns_roce_srq.c srq->wqe_shift = ilog2(srq_desc_size); wqe_shift 456 drivers/infiniband/hw/hns/hns_roce_srq.c hns_roce_buf_free(hr_dev, srq->max << srq->wqe_shift, wqe_shift 174 drivers/infiniband/hw/mlx4/mlx4_ib.h int wqe_shift; wqe_shift 199 drivers/infiniband/hw/mlx4/qp.c return get_wqe(qp, qp->rq.offset + (n << qp->rq.wqe_shift)); wqe_shift 204 drivers/infiniband/hw/mlx4/qp.c return get_wqe(qp, qp->sq.offset + (n << qp->sq.wqe_shift)); wqe_shift 354 drivers/infiniband/hw/mlx4/qp.c qp->rq.wqe_shift = ilog2(max_t(u32, wqe_size, inl_recv_sz)); wqe_shift 400 drivers/infiniband/hw/mlx4/qp.c qp->sq.wqe_shift = ilog2(roundup_pow_of_two(s)); wqe_shift 406 drivers/infiniband/hw/mlx4/qp.c qp->sq_spare_wqes = MLX4_IB_SQ_HEADROOM(qp->sq.wqe_shift); wqe_shift 412 drivers/infiniband/hw/mlx4/qp.c (1 << qp->sq.wqe_shift)) - wqe_shift 416 drivers/infiniband/hw/mlx4/qp.c qp->buf_size = (qp->rq.wqe_cnt << qp->rq.wqe_shift) + wqe_shift 417 drivers/infiniband/hw/mlx4/qp.c (qp->sq.wqe_cnt << qp->sq.wqe_shift); wqe_shift 418 drivers/infiniband/hw/mlx4/qp.c if (qp->rq.wqe_shift > qp->sq.wqe_shift) { wqe_shift 420 drivers/infiniband/hw/mlx4/qp.c qp->sq.offset = qp->rq.wqe_cnt << qp->rq.wqe_shift; wqe_shift 422 drivers/infiniband/hw/mlx4/qp.c qp->rq.offset = qp->sq.wqe_cnt << qp->sq.wqe_shift; wqe_shift 449 drivers/infiniband/hw/mlx4/qp.c qp->sq.wqe_shift = ucmd->log_sq_stride; wqe_shift 451 drivers/infiniband/hw/mlx4/qp.c qp->buf_size = (qp->rq.wqe_cnt << qp->rq.wqe_shift) + wqe_shift 452 drivers/infiniband/hw/mlx4/qp.c (qp->sq.wqe_cnt << qp->sq.wqe_shift); wqe_shift 670 drivers/infiniband/hw/mlx4/qp.c qp->sq.wqe_shift = MLX4_IB_MIN_SQ_STRIDE; wqe_shift 915 drivers/infiniband/hw/mlx4/qp.c qp->sq.wqe_shift = MLX4_IB_MIN_SQ_STRIDE; wqe_shift 916 drivers/infiniband/hw/mlx4/qp.c qp->buf_size = (qp->rq.wqe_cnt << qp->rq.wqe_shift) + wqe_shift 917 drivers/infiniband/hw/mlx4/qp.c (qp->sq.wqe_cnt << qp->sq.wqe_shift); wqe_shift 2235 drivers/infiniband/hw/mlx4/qp.c context->rq_size_stride |= qp->rq.wqe_shift - 4; wqe_shift 2240 drivers/infiniband/hw/mlx4/qp.c context->sq_size_stride |= qp->sq.wqe_shift - 4; wqe_shift 2546 drivers/infiniband/hw/mlx4/qp.c 1 << (qp->sq.wqe_shift - 4); wqe_shift 44 drivers/infiniband/hw/mlx4/srq.c return mlx4_buf_offset(&srq->buf, n << srq->msrq.wqe_shift); wqe_shift 103 drivers/infiniband/hw/mlx4/srq.c srq->msrq.wqe_shift = ilog2(desc_size); wqe_shift 279 drivers/infiniband/hw/mlx4/srq.c mlx4_buf_free(dev->dev, msrq->msrq.max << msrq->msrq.wqe_shift, wqe_shift 282 drivers/infiniband/hw/mlx5/mlx5_ib.h int wqe_shift; wqe_shift 318 drivers/infiniband/hw/mlx5/mlx5_ib.h u32 wqe_shift; wqe_shift 1090 drivers/infiniband/hw/mlx5/odp.c int wqe_size = 1 << srq->msrq.wqe_shift; wqe_shift 1109 drivers/infiniband/hw/mlx5/odp.c int wqe_size = 1 << wq->wqe_shift; wqe_shift 189 drivers/infiniband/hw/mlx5/qp.c wq->wqe_shift, wqe_shift 219 drivers/infiniband/hw/mlx5/qp.c wq->wqe_shift, wqe_shift 247 drivers/infiniband/hw/mlx5/qp.c wq->wqe_shift, wqe_shift 273 drivers/infiniband/hw/mlx5/qp.c srq->msrq.wqe_shift, wqe_shift 343 drivers/infiniband/hw/mlx5/qp.c qp->rq.wqe_shift = 0; wqe_shift 351 drivers/infiniband/hw/mlx5/qp.c qp->rq.wqe_shift = ucmd->rq_wqe_shift; wqe_shift 352 drivers/infiniband/hw/mlx5/qp.c if ((1 << qp->rq.wqe_shift) / sizeof(struct mlx5_wqe_data_seg) < qp->wq_sig) wqe_shift 354 drivers/infiniband/hw/mlx5/qp.c qp->rq.max_gs = (1 << qp->rq.wqe_shift) / sizeof(struct mlx5_wqe_data_seg) - qp->wq_sig; wqe_shift 370 drivers/infiniband/hw/mlx5/qp.c qp->rq.wqe_shift = ilog2(wqe_size); wqe_shift 371 drivers/infiniband/hw/mlx5/qp.c qp->rq.max_gs = (1 << qp->rq.wqe_shift) / sizeof(struct mlx5_wqe_data_seg) - qp->wq_sig; wqe_shift 509 drivers/infiniband/hw/mlx5/qp.c qp->sq.wqe_shift = ilog2(MLX5_SEND_WQE_BB); wqe_shift 527 drivers/infiniband/hw/mlx5/qp.c int desc_sz = 1 << qp->sq.wqe_shift; wqe_shift 552 drivers/infiniband/hw/mlx5/qp.c base->ubuffer.buf_size = qp->rq.wqe_cnt << qp->rq.wqe_shift; wqe_shift 555 drivers/infiniband/hw/mlx5/qp.c base->ubuffer.buf_size = (qp->rq.wqe_cnt << qp->rq.wqe_shift) + wqe_shift 910 drivers/infiniband/hw/mlx5/qp.c qp->sq.wqe_shift = ilog2(MLX5_SEND_WQE_BB); wqe_shift 911 drivers/infiniband/hw/mlx5/qp.c qp->sq.offset = qp->rq.wqe_cnt << qp->rq.wqe_shift; wqe_shift 1065 drivers/infiniband/hw/mlx5/qp.c qp->sq.offset = qp->rq.wqe_cnt << qp->rq.wqe_shift; wqe_shift 1066 drivers/infiniband/hw/mlx5/qp.c base->ubuffer.buf_size = err + (qp->rq.wqe_cnt << qp->rq.wqe_shift); wqe_shift 1076 drivers/infiniband/hw/mlx5/qp.c mlx5_init_fbc(qp->buf.frags, qp->rq.wqe_shift, wqe_shift 2132 drivers/infiniband/hw/mlx5/qp.c if (ucmd.rq_wqe_shift != qp->rq.wqe_shift || wqe_shift 2204 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(qpc, qpc, log_rq_stride, qp->rq.wqe_shift - 4); wqe_shift 6031 drivers/infiniband/hw/mlx5/qp.c rwq->wqe_shift = ucmd->rq_wqe_shift; wqe_shift 6032 drivers/infiniband/hw/mlx5/qp.c if (check_shl_overflow(rwq->wqe_count, rwq->wqe_shift, &rwq->buf_size)) wqe_shift 6035 drivers/infiniband/hw/mlx5/qp.c rwq->log_rq_stride = rwq->wqe_shift; wqe_shift 151 drivers/infiniband/hw/mlx5/srq.c mlx5_init_fbc(srq->buf.frags, srq->msrq.wqe_shift, ilog2(srq->msrq.max), wqe_shift 254 drivers/infiniband/hw/mlx5/srq.c srq->msrq.wqe_shift = ilog2(desc_size); wqe_shift 273 drivers/infiniband/hw/mlx5/srq.c in.wqe_shift = srq->msrq.wqe_shift - 4; wqe_shift 19 drivers/infiniband/hw/mlx5/srq.h u32 wqe_shift; wqe_shift 46 drivers/infiniband/hw/mlx5/srq.h int wqe_shift; wqe_shift 16 drivers/infiniband/hw/mlx5/srq_cmd.c u32 log_rq_stride = in->wqe_shift; wqe_shift 32 drivers/infiniband/hw/mlx5/srq_cmd.c MLX5_SET(wq, wq, log_wq_stride, in->wqe_shift + 4); wqe_shift 45 drivers/infiniband/hw/mlx5/srq_cmd.c MLX5_SET(srqc, srqc, log_rq_stride, in->wqe_shift); wqe_shift 60 drivers/infiniband/hw/mlx5/srq_cmd.c in->wqe_shift = MLX5_GET(wq, wq, log_wq_stride) - 4; wqe_shift 73 drivers/infiniband/hw/mlx5/srq_cmd.c in->wqe_shift = MLX5_GET(srqc, srqc, log_rq_stride); wqe_shift 536 drivers/infiniband/hw/mthca/mthca_cq.c >> wq->wqe_shift); wqe_shift 543 drivers/infiniband/hw/mthca/mthca_cq.c wqe_index = wqe >> srq->wqe_shift; wqe_shift 550 drivers/infiniband/hw/mthca/mthca_cq.c wqe_index = wqe >> wq->wqe_shift; wqe_shift 229 drivers/infiniband/hw/mthca/mthca_provider.h int wqe_shift; wqe_shift 255 drivers/infiniband/hw/mthca/mthca_provider.h int wqe_shift; wqe_shift 211 drivers/infiniband/hw/mthca/mthca_qp.c return qp->queue.direct.buf + (n << qp->rq.wqe_shift); wqe_shift 213 drivers/infiniband/hw/mthca/mthca_qp.c return qp->queue.page_list[(n << qp->rq.wqe_shift) >> PAGE_SHIFT].buf + wqe_shift 214 drivers/infiniband/hw/mthca/mthca_qp.c ((n << qp->rq.wqe_shift) & (PAGE_SIZE - 1)); wqe_shift 221 drivers/infiniband/hw/mthca/mthca_qp.c (n << qp->sq.wqe_shift); wqe_shift 224 drivers/infiniband/hw/mthca/mthca_qp.c (n << qp->sq.wqe_shift)) >> wqe_shift 226 drivers/infiniband/hw/mthca/mthca_qp.c ((qp->send_wqe_offset + (n << qp->sq.wqe_shift)) & wqe_shift 617 drivers/infiniband/hw/mthca/mthca_qp.c qp_context->rq_size_stride |= qp->rq.wqe_shift - 4; wqe_shift 621 drivers/infiniband/hw/mthca/mthca_qp.c qp_context->sq_size_stride |= qp->sq.wqe_shift - 4; wqe_shift 968 drivers/infiniband/hw/mthca/mthca_qp.c 1 << qp->sq.wqe_shift)); wqe_shift 975 drivers/infiniband/hw/mthca/mthca_qp.c (min(dev->limits.max_desc_sz, 1 << qp->rq.wqe_shift) - wqe_shift 1001 drivers/infiniband/hw/mthca/mthca_qp.c for (qp->rq.wqe_shift = 6; 1 << qp->rq.wqe_shift < size; wqe_shift 1002 drivers/infiniband/hw/mthca/mthca_qp.c qp->rq.wqe_shift++) wqe_shift 1045 drivers/infiniband/hw/mthca/mthca_qp.c for (qp->sq.wqe_shift = 6; 1 << qp->sq.wqe_shift < size; wqe_shift 1046 drivers/infiniband/hw/mthca/mthca_qp.c qp->sq.wqe_shift++) wqe_shift 1049 drivers/infiniband/hw/mthca/mthca_qp.c qp->send_wqe_offset = ALIGN(qp->rq.max << qp->rq.wqe_shift, wqe_shift 1050 drivers/infiniband/hw/mthca/mthca_qp.c 1 << qp->sq.wqe_shift); wqe_shift 1061 drivers/infiniband/hw/mthca/mthca_qp.c (qp->sq.max << qp->sq.wqe_shift)); wqe_shift 1084 drivers/infiniband/hw/mthca/mthca_qp.c (qp->sq.max << qp->sq.wqe_shift)), wqe_shift 1219 drivers/infiniband/hw/mthca/mthca_qp.c qp->rq.wqe_shift); wqe_shift 1223 drivers/infiniband/hw/mthca/mthca_qp.c (void *) scatter < (void *) next + (1 << qp->rq.wqe_shift); wqe_shift 1231 drivers/infiniband/hw/mthca/mthca_qp.c qp->sq.wqe_shift) + wqe_shift 1238 drivers/infiniband/hw/mthca/mthca_qp.c qp->rq.wqe_shift) | 1); wqe_shift 1782 drivers/infiniband/hw/mthca/mthca_qp.c cpu_to_be32(((ind << qp->sq.wqe_shift) + wqe_shift 1807 drivers/infiniband/hw/mthca/mthca_qp.c mthca_write64(((qp->sq.next_ind << qp->sq.wqe_shift) + wqe_shift 1901 drivers/infiniband/hw/mthca/mthca_qp.c mthca_write64((qp->rq.next_ind << qp->rq.wqe_shift) | size0, wqe_shift 1914 drivers/infiniband/hw/mthca/mthca_qp.c mthca_write64((qp->rq.next_ind << qp->rq.wqe_shift) | size0, wqe_shift 2112 drivers/infiniband/hw/mthca/mthca_qp.c cpu_to_be32(((ind << qp->sq.wqe_shift) + wqe_shift 77 drivers/infiniband/hw/mthca/mthca_srq.c return srq->queue.direct.buf + (n << srq->wqe_shift); wqe_shift 79 drivers/infiniband/hw/mthca/mthca_srq.c return srq->queue.page_list[(n << srq->wqe_shift) >> PAGE_SHIFT].buf + wqe_shift 80 drivers/infiniband/hw/mthca/mthca_srq.c ((n << srq->wqe_shift) & (PAGE_SIZE - 1)); wqe_shift 108 drivers/infiniband/hw/mthca/mthca_srq.c context->wqe_base_ds = cpu_to_be64(1 << (srq->wqe_shift - 4)); wqe_shift 139 drivers/infiniband/hw/mthca/mthca_srq.c context->logstride_usrpage = cpu_to_be32((srq->wqe_shift - 4) << 29); wqe_shift 149 drivers/infiniband/hw/mthca/mthca_srq.c mthca_buf_free(dev, srq->max << srq->wqe_shift, &srq->queue, wqe_shift 169 drivers/infiniband/hw/mthca/mthca_srq.c err = mthca_buf_alloc(dev, srq->max << srq->wqe_shift, wqe_shift 189 drivers/infiniband/hw/mthca/mthca_srq.c next->nda_op = htonl(((i + 1) << srq->wqe_shift) | 1); wqe_shift 196 drivers/infiniband/hw/mthca/mthca_srq.c (void *) scatter < wqe + (1 << srq->wqe_shift); wqe_shift 235 drivers/infiniband/hw/mthca/mthca_srq.c srq->wqe_shift = ilog2(ds); wqe_shift 470 drivers/infiniband/hw/mthca/mthca_srq.c ind = wqe_addr >> srq->wqe_shift; wqe_shift 476 drivers/infiniband/hw/mthca/mthca_srq.c last_free->nda_op = htonl((ind << srq->wqe_shift) | 1); wqe_shift 553 drivers/infiniband/hw/mthca/mthca_srq.c mthca_write64(first_ind << srq->wqe_shift, srq->srqn << 8, wqe_shift 568 drivers/infiniband/hw/mthca/mthca_srq.c mthca_write64(first_ind << srq->wqe_shift, (srq->srqn << 8) | nreq, wqe_shift 190 drivers/net/ethernet/mellanox/mlx4/srq.c srq_context->logstride = srq->wqe_shift - 4; wqe_shift 781 include/linux/mlx4/device.h int wqe_shift;