Lines Matching refs:quanta
72 qp->sq_wrtrk_array[wqe_idx].quanta = IRDMA_QP_WQE_MIN_QUANTA; in irdma_nop_1()
164 void irdma_qp_push_wqe(struct irdma_qp_uk *qp, __le64 *wqe, u16 quanta, in irdma_qp_push_wqe() argument
177 memcpy(push, wqe, quanta * IRDMA_QP_WQE_MIN_SIZE); in irdma_qp_push_wqe()
191 u16 quanta, u32 total_size, in irdma_qp_get_next_send_wqe() argument
203 if (quanta <= avail_quanta) { in irdma_qp_get_next_send_wqe()
205 if (quanta > IRDMA_SQ_RING_FREE_QUANTA(qp->sq_ring)) in irdma_qp_get_next_send_wqe()
209 if (quanta + avail_quanta > in irdma_qp_get_next_send_wqe()
227 IRDMA_RING_MOVE_HEAD_BY_COUNT_NOCHECK(qp->sq_ring, quanta); in irdma_qp_get_next_send_wqe()
230 if (qp->uk_attrs->hw_rev == IRDMA_GEN_1 && quanta == 1 && in irdma_qp_get_next_send_wqe()
237 qp->sq_wrtrk_array[*wqe_idx].quanta = quanta; in irdma_qp_get_next_send_wqe()
285 u16 quanta; in irdma_uk_rdma_write() local
303 ret_code = irdma_fragcnt_to_quanta_sq(frag_cnt, &quanta); in irdma_uk_rdma_write()
307 wqe = irdma_qp_get_next_send_wqe(qp, &wqe_idx, quanta, total_size, in irdma_uk_rdma_write()
359 irdma_qp_push_wqe(qp, wqe, quanta, wqe_idx, post_sq); in irdma_uk_rdma_write()
386 u16 quanta; in irdma_uk_rdma_read() local
398 ret_code = irdma_fragcnt_to_quanta_sq(op_info->num_lo_sges, &quanta); in irdma_uk_rdma_read()
402 wqe = irdma_qp_get_next_send_wqe(qp, &wqe_idx, quanta, total_size, in irdma_uk_rdma_read()
447 irdma_qp_push_wqe(qp, wqe, quanta, wqe_idx, post_sq); in irdma_uk_rdma_read()
473 u16 quanta; in irdma_uk_send() local
488 ret_code = irdma_fragcnt_to_quanta_sq(frag_cnt, &quanta); in irdma_uk_send()
492 wqe = irdma_qp_get_next_send_wqe(qp, &wqe_idx, quanta, total_size, in irdma_uk_send()
549 irdma_qp_push_wqe(qp, wqe, quanta, wqe_idx, post_sq); in irdma_uk_send()
693 u16 quanta; in irdma_uk_inline_rdma_write() local
701 quanta = qp->wqe_ops.iw_inline_data_size_to_quanta(op_info->len); in irdma_uk_inline_rdma_write()
702 wqe = irdma_qp_get_next_send_wqe(qp, &wqe_idx, quanta, op_info->len, in irdma_uk_inline_rdma_write()
736 irdma_qp_push_wqe(qp, wqe, quanta, wqe_idx, post_sq); in irdma_uk_inline_rdma_write()
760 u16 quanta; in irdma_uk_inline_send() local
768 quanta = qp->wqe_ops.iw_inline_data_size_to_quanta(op_info->len); in irdma_uk_inline_send()
769 wqe = irdma_qp_get_next_send_wqe(qp, &wqe_idx, quanta, op_info->len, in irdma_uk_inline_send()
808 irdma_qp_push_wqe(qp, wqe, quanta, wqe_idx, post_sq); in irdma_uk_inline_send()
1247 wqe_idx + qp->sq_wrtrk_array[wqe_idx].quanta); in irdma_uk_cq_poll_cmpl()
1266 tail + qp->sq_wrtrk_array[tail].quanta); in irdma_uk_cq_poll_cmpl()
1611 enum irdma_status_code irdma_fragcnt_to_quanta_sq(u32 frag_cnt, u16 *quanta) in irdma_fragcnt_to_quanta_sq() argument
1616 *quanta = IRDMA_QP_WQE_MIN_QUANTA; in irdma_fragcnt_to_quanta_sq()
1620 *quanta = 2; in irdma_fragcnt_to_quanta_sq()
1624 *quanta = 3; in irdma_fragcnt_to_quanta_sq()
1628 *quanta = 4; in irdma_fragcnt_to_quanta_sq()
1632 *quanta = 5; in irdma_fragcnt_to_quanta_sq()
1636 *quanta = 6; in irdma_fragcnt_to_quanta_sq()
1640 *quanta = 7; in irdma_fragcnt_to_quanta_sq()
1644 *quanta = 8; in irdma_fragcnt_to_quanta_sq()