Lines Matching refs:qpi
1598 struct virtchnl_queue_pair_info *qpi; in ice_vc_cfg_qs_msg() local
1621 qpi = &qci->qpair[i]; in ice_vc_cfg_qs_msg()
1622 if (qpi->txq.vsi_id != qci->vsi_id || in ice_vc_cfg_qs_msg()
1623 qpi->rxq.vsi_id != qci->vsi_id || in ice_vc_cfg_qs_msg()
1624 qpi->rxq.queue_id != qpi->txq.queue_id || in ice_vc_cfg_qs_msg()
1625 qpi->txq.headwb_enabled || in ice_vc_cfg_qs_msg()
1626 !ice_vc_isvalid_ring_len(qpi->txq.ring_len) || in ice_vc_cfg_qs_msg()
1627 !ice_vc_isvalid_ring_len(qpi->rxq.ring_len) || in ice_vc_cfg_qs_msg()
1628 !ice_vc_isvalid_q_id(vf, qci->vsi_id, qpi->txq.queue_id)) { in ice_vc_cfg_qs_msg()
1632 q_idx = qpi->rxq.queue_id; in ice_vc_cfg_qs_msg()
1642 if (qpi->txq.ring_len > 0) { in ice_vc_cfg_qs_msg()
1643 vsi->tx_rings[i]->dma = qpi->txq.dma_ring_addr; in ice_vc_cfg_qs_msg()
1644 vsi->tx_rings[i]->count = qpi->txq.ring_len; in ice_vc_cfg_qs_msg()
1659 if (qpi->rxq.ring_len > 0) { in ice_vc_cfg_qs_msg()
1662 vsi->rx_rings[i]->dma = qpi->rxq.dma_ring_addr; in ice_vc_cfg_qs_msg()
1663 vsi->rx_rings[i]->count = qpi->rxq.ring_len; in ice_vc_cfg_qs_msg()
1665 if (qpi->rxq.databuffer_size != 0 && in ice_vc_cfg_qs_msg()
1666 (qpi->rxq.databuffer_size > ((16 * 1024) - 128) || in ice_vc_cfg_qs_msg()
1667 qpi->rxq.databuffer_size < 1024)) in ice_vc_cfg_qs_msg()
1669 vsi->rx_buf_len = qpi->rxq.databuffer_size; in ice_vc_cfg_qs_msg()
1671 if (qpi->rxq.max_pkt_size > max_frame_size || in ice_vc_cfg_qs_msg()
1672 qpi->rxq.max_pkt_size < 64) in ice_vc_cfg_qs_msg()
1675 vsi->max_frame = qpi->rxq.max_pkt_size; in ice_vc_cfg_qs_msg()