Lines Matching refs:lif
46 netdev = q->lif->netdev; in ionic_txq_poke_doorbell()
61 ionic_dbell_ring(q->lif->kern_dbpage, q->hw_type, in ionic_txq_poke_doorbell()
86 ionic_dbell_ring(q->lif->kern_dbpage, q->hw_type, in ionic_rxq_poke_doorbell()
396 struct ionic_lif *lif = netdev_priv(netdev); in ionic_xdp_xmit() local
404 if (unlikely(!test_bit(IONIC_LIF_F_UP, lif->state))) in ionic_xdp_xmit()
416 qi = cpu ? (cpu - 1) % lif->nxqs : cpu; in ionic_xdp_xmit()
418 txq = &lif->txqcqs[qi]->q; in ionic_xdp_xmit()
443 ionic_dbell_ring(lif->kern_dbpage, txq->hw_type, in ionic_xdp_xmit()
608 struct net_device *netdev = q->lif->netdev; in ionic_rx_clean()
642 use_copybreak = len <= q->lif->rx_copybreak; in ionic_rx_clean()
709 skb_hwtstamps(skb)->hwtstamp = ionic_lif_phc_ktime(q->lif, hwstamp); in ionic_rx_clean()
766 struct net_device *netdev = q->lif->netdev; in ionic_rx_fill()
877 ionic_dbell_ring(q->lif->kern_dbpage, q->hw_type, in ionic_rx_fill()
903 struct ionic_lif *lif; in ionic_dim_update() local
910 lif = qcq->q.lif; in ionic_dim_update()
915 pkts = lif->txqstats[qi].pkts; in ionic_dim_update()
916 bytes = lif->txqstats[qi].bytes; in ionic_dim_update()
919 pkts = lif->rxqstats[qi].pkts; in ionic_dim_update()
920 bytes = lif->rxqstats[qi].bytes; in ionic_dim_update()
923 pkts = lif->txqstats[qi].pkts + lif->rxqstats[qi].pkts; in ionic_dim_update()
924 bytes = lif->txqstats[qi].bytes + lif->rxqstats[qi].bytes; in ionic_dim_update()
959 if (!work_done && cq->bound_q->lif->doorbell_wa) in ionic_tx_napi()
1024 if (!work_done && cq->bound_q->lif->doorbell_wa) in ionic_rx_napi()
1036 struct ionic_lif *lif; in ionic_txrx_napi() local
1042 lif = rxcq->bound_q->lif; in ionic_txrx_napi()
1043 txqcq = lif->txqcqs[qi]; in ionic_txrx_napi()
1044 txcq = &lif->txqcqs[qi]->cq; in ionic_txrx_napi()
1065 if (lif->doorbell_wa) { in ionic_txrx_napi()
1186 if (unlikely(__netif_subqueue_stopped(q->lif->netdev, q->index))) in ionic_tx_clean()
1187 netif_wake_subqueue(q->lif->netdev, q->index); in ionic_tx_clean()
1213 hwts.hwtstamp = ionic_lif_phc_ktime(q->lif, hwstamp); in ionic_tx_clean()
1294 netif_txq_completed_wake(q_to_ndq(q->lif->netdev, q), in ionic_tx_cq_service()
1333 struct netdev_queue *ndq = q_to_ndq(q->lif->netdev, q); in ionic_tx_empty()
1769 struct ionic_lif *lif = netdev_priv(netdev); in ionic_start_hwstamp_xmit() local
1778 q = &lif->hwstamp_txq->q; in ionic_start_hwstamp_xmit()
1806 struct ionic_lif *lif = netdev_priv(netdev); in ionic_start_xmit() local
1811 if (unlikely(!test_bit(IONIC_LIF_F_UP, lif->state))) { in ionic_start_xmit()
1817 if (lif->hwstamp_txq && lif->phc->ts_config_tx_mode) in ionic_start_xmit()
1820 if (unlikely(queue_index >= lif->nxqs)) in ionic_start_xmit()
1822 q = &lif->txqcqs[queue_index]->q; in ionic_start_xmit()