Lines Matching refs:nr_sges
496 int nr_sges, err = NETDEV_TX_OK; in hinic_lb_xmit_frame() local
504 nr_sges = skb_shinfo(skb)->nr_frags + 1; in hinic_lb_xmit_frame()
510 wqe_size = HINIC_SQ_WQE_SIZE(nr_sges); in hinic_lb_xmit_frame()
533 hinic_sq_prepare_wqe(txq->sq, prod_idx, sq_wqe, txq->sges, nr_sges); in hinic_lb_xmit_frame()
557 int nr_sges, err = NETDEV_TX_OK; in hinic_xmit_frame() local
575 nr_sges = skb_shinfo(skb)->nr_frags + 1; in hinic_xmit_frame()
576 if (nr_sges > 17) { in hinic_xmit_frame()
582 if (nr_sges > txq->max_sges) { in hinic_xmit_frame()
591 wqe_size = HINIC_SQ_WQE_SIZE(nr_sges); in hinic_xmit_frame()
617 hinic_sq_prepare_wqe(txq->sq, prod_idx, sq_wqe, txq->sges, nr_sges); in hinic_xmit_frame()
672 int nr_sges; in free_all_tx_skbs() local
680 nr_sges = skb_shinfo(skb)->nr_frags + 1; in free_all_tx_skbs()
682 hinic_sq_get_sges(sq_wqe, txq->free_sges, nr_sges); in free_all_tx_skbs()
707 int nr_sges, pkts = 0; in free_tx_poll() local
735 nr_sges = skb_shinfo(skb)->nr_frags + 1; in free_tx_poll()
737 hinic_sq_get_sges(sq_wqe, txq->free_sges, nr_sges); in free_tx_poll()