Lines Matching refs:quanta
71 qp->sq_wrtrk_array[wqe_idx].quanta = IRDMA_QP_WQE_MIN_QUANTA;
150 * @quanta: size of WR in quanta
155 u16 quanta, u32 total_size,
166 if (quanta <= avail_quanta) {
168 if (quanta > IRDMA_SQ_RING_FREE_QUANTA(qp->sq_ring))
172 if (quanta + avail_quanta >
186 IRDMA_RING_MOVE_HEAD_BY_COUNT_NOCHECK(qp->sq_ring, quanta);
189 if (qp->uk_attrs->hw_rev == IRDMA_GEN_1 && quanta == 1 &&
196 qp->sq_wrtrk_array[*wqe_idx].quanta = quanta;
220 /* rq_wqe_size_multiplier is no of 32 byte quanta in one rq wqe */
243 u16 quanta;
259 ret_code = irdma_fragcnt_to_quanta_sq(frag_cnt, &quanta);
263 wqe = irdma_qp_get_next_send_wqe(qp, &wqe_idx, quanta, total_size,
337 u16 quanta;
347 ret_code = irdma_fragcnt_to_quanta_sq(op_info->num_lo_sges, &quanta);
351 wqe = irdma_qp_get_next_send_wqe(qp, &wqe_idx, quanta, total_size,
417 u16 quanta;
430 ret_code = irdma_fragcnt_to_quanta_sq(frag_cnt, &quanta);
434 wqe = irdma_qp_get_next_send_wqe(qp, &wqe_idx, quanta, total_size,
548 * irdma_inline_data_size_to_quanta_gen_1 - based on inline data, quanta
551 * Gets the quanta based on inline and immediate data.
623 * irdma_inline_data_size_to_quanta - based on inline data, quanta
626 * Gets the quanta based on inline and immediate data.
663 u16 quanta;
676 quanta = qp->wqe_ops.iw_inline_data_size_to_quanta(total_size);
677 wqe = irdma_qp_get_next_send_wqe(qp, &wqe_idx, quanta, total_size,
731 u16 quanta;
744 quanta = qp->wqe_ops.iw_inline_data_size_to_quanta(total_size);
745 wqe = irdma_qp_get_next_send_wqe(qp, &wqe_idx, quanta, total_size,
1144 wqe_idx + qp->sq_wrtrk_array[wqe_idx].quanta);
1163 tail + qp->sq_wrtrk_array[tail].quanta);
1214 * @wqdepth: wq depth in quanta to round up
1259 * irdma_get_sqdepth - get SQ depth (quanta)
1282 * irdma_get_rqdepth - get RQ depth (quanta)
1564 * irdma_fragcnt_to_quanta_sq - calculate quanta based on fragment count for SQ
1566 * @quanta: quanta for frag_cnt
1568 int irdma_fragcnt_to_quanta_sq(u32 frag_cnt, u16 *quanta)
1573 *quanta = IRDMA_QP_WQE_MIN_QUANTA;
1577 *quanta = 2;
1581 *quanta = 3;
1585 *quanta = 4;
1589 *quanta = 5;
1593 *quanta = 6;
1597 *quanta = 7;
1601 *quanta = 8;