Lines Matching refs:quanta

71 	qp->sq_wrtrk_array[wqe_idx].quanta = IRDMA_QP_WQE_MIN_QUANTA;  in irdma_nop_1()
161 void irdma_qp_push_wqe(struct irdma_qp_uk *qp, __le64 *wqe, u16 quanta, in irdma_qp_push_wqe() argument
174 memcpy(push, wqe, quanta * IRDMA_QP_WQE_MIN_SIZE); in irdma_qp_push_wqe()
188 u16 quanta, u32 total_size, in irdma_qp_get_next_send_wqe() argument
200 if (quanta <= avail_quanta) { in irdma_qp_get_next_send_wqe()
202 if (quanta > IRDMA_SQ_RING_FREE_QUANTA(qp->sq_ring)) in irdma_qp_get_next_send_wqe()
206 if (quanta + avail_quanta > in irdma_qp_get_next_send_wqe()
224 IRDMA_RING_MOVE_HEAD_BY_COUNT_NOCHECK(qp->sq_ring, quanta); in irdma_qp_get_next_send_wqe()
227 if (qp->uk_attrs->hw_rev == IRDMA_GEN_1 && quanta == 1 && in irdma_qp_get_next_send_wqe()
234 qp->sq_wrtrk_array[*wqe_idx].quanta = quanta; in irdma_qp_get_next_send_wqe()
281 u16 quanta; in irdma_uk_rdma_write() local
299 ret_code = irdma_fragcnt_to_quanta_sq(frag_cnt, &quanta); in irdma_uk_rdma_write()
303 wqe = irdma_qp_get_next_send_wqe(qp, &wqe_idx, quanta, total_size, in irdma_uk_rdma_write()
355 irdma_qp_push_wqe(qp, wqe, quanta, wqe_idx, post_sq); in irdma_uk_rdma_write()
381 u16 quanta; in irdma_uk_rdma_read() local
393 ret_code = irdma_fragcnt_to_quanta_sq(op_info->num_lo_sges, &quanta); in irdma_uk_rdma_read()
397 wqe = irdma_qp_get_next_send_wqe(qp, &wqe_idx, quanta, total_size, in irdma_uk_rdma_read()
442 irdma_qp_push_wqe(qp, wqe, quanta, wqe_idx, post_sq); in irdma_uk_rdma_read()
467 u16 quanta; in irdma_uk_send() local
482 ret_code = irdma_fragcnt_to_quanta_sq(frag_cnt, &quanta); in irdma_uk_send()
486 wqe = irdma_qp_get_next_send_wqe(qp, &wqe_idx, quanta, total_size, in irdma_uk_send()
543 irdma_qp_push_wqe(qp, wqe, quanta, wqe_idx, post_sq); in irdma_uk_send()
719 u16 quanta; in irdma_uk_inline_rdma_write() local
733 quanta = qp->wqe_ops.iw_inline_data_size_to_quanta(total_size); in irdma_uk_inline_rdma_write()
734 wqe = irdma_qp_get_next_send_wqe(qp, &wqe_idx, quanta, total_size, in irdma_uk_inline_rdma_write()
769 irdma_qp_push_wqe(qp, wqe, quanta, wqe_idx, post_sq); in irdma_uk_inline_rdma_write()
793 u16 quanta; in irdma_uk_inline_send() local
807 quanta = qp->wqe_ops.iw_inline_data_size_to_quanta(total_size); in irdma_uk_inline_send()
808 wqe = irdma_qp_get_next_send_wqe(qp, &wqe_idx, quanta, total_size, in irdma_uk_inline_send()
847 irdma_qp_push_wqe(qp, wqe, quanta, wqe_idx, post_sq); in irdma_uk_inline_send()
1225 wqe_idx + qp->sq_wrtrk_array[wqe_idx].quanta); in irdma_uk_cq_poll_cmpl()
1244 tail + qp->sq_wrtrk_array[tail].quanta); in irdma_uk_cq_poll_cmpl()
1583 int irdma_fragcnt_to_quanta_sq(u32 frag_cnt, u16 *quanta) in irdma_fragcnt_to_quanta_sq() argument
1588 *quanta = IRDMA_QP_WQE_MIN_QUANTA; in irdma_fragcnt_to_quanta_sq()
1592 *quanta = 2; in irdma_fragcnt_to_quanta_sq()
1596 *quanta = 3; in irdma_fragcnt_to_quanta_sq()
1600 *quanta = 4; in irdma_fragcnt_to_quanta_sq()
1604 *quanta = 5; in irdma_fragcnt_to_quanta_sq()
1608 *quanta = 6; in irdma_fragcnt_to_quanta_sq()
1612 *quanta = 7; in irdma_fragcnt_to_quanta_sq()
1616 *quanta = 8; in irdma_fragcnt_to_quanta_sq()