Home
last modified time | relevance | path

Searched refs:tx_spare (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_enet.c987 struct hns3_tx_spare *tx_spare = ring->tx_spare; in hns3_tx_spare_space() local
993 ntc = smp_load_acquire(&tx_spare->last_to_clean); in hns3_tx_spare_space()
994 ntu = tx_spare->next_to_use; in hns3_tx_spare_space()
1002 return max(ntc, tx_spare->len - ntu) - 1; in hns3_tx_spare_space()
1007 struct hns3_tx_spare *tx_spare = ring->tx_spare; in hns3_tx_spare_update() local
1009 if (!tx_spare || in hns3_tx_spare_update()
1010 tx_spare->last_to_clean == tx_spare->next_to_clean) in hns3_tx_spare_update()
1016 smp_store_release(&tx_spare->last_to_clean, in hns3_tx_spare_update()
1017 tx_spare->next_to_clean); in hns3_tx_spare_update()
1060 struct hns3_tx_spare *tx_spare; in hns3_init_tx_spare_buffer() local
[all …]
H A Dhns3_enet.h498 struct hns3_tx_spare *tx_spare; member
H A Dhns3_ethtool.c2009 (!priv->ring->tx_spare && new_tx_spare_buf_size != 0)) { in hns3_set_tunable()
2023 if (!priv->ring->tx_spare) in hns3_set_tunable()
2027 priv->ring->tx_spare->len); in hns3_set_tunable()