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.c973 struct hns3_tx_spare *tx_spare = ring->tx_spare; in hns3_tx_spare_space() local
979 ntc = smp_load_acquire(&tx_spare->last_to_clean); in hns3_tx_spare_space()
980 ntu = tx_spare->next_to_use; in hns3_tx_spare_space()
988 return max(ntc, tx_spare->len - ntu) - 1; in hns3_tx_spare_space()
993 struct hns3_tx_spare *tx_spare = ring->tx_spare; in hns3_tx_spare_update() local
995 if (!tx_spare || in hns3_tx_spare_update()
996 tx_spare->last_to_clean == tx_spare->next_to_clean) in hns3_tx_spare_update()
1002 smp_store_release(&tx_spare->last_to_clean, in hns3_tx_spare_update()
1003 tx_spare->next_to_clean); in hns3_tx_spare_update()
1046 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.c2004 (!priv->ring->tx_spare && new_tx_spare_buf_size != 0)) { in hns3_set_tunable()
2018 if (!priv->ring->tx_spare) in hns3_set_tunable()
2022 priv->ring->tx_spare->len); in hns3_set_tunable()