Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c961 struct hns3_tx_spare *tx_spare = ring->tx_spare; in hns3_tx_spare_space() local
967 ntc = smp_load_acquire(&tx_spare->last_to_clean); in hns3_tx_spare_space()
968 ntu = tx_spare->next_to_use; in hns3_tx_spare_space()
976 return max(ntc, tx_spare->len - ntu) - 1; in hns3_tx_spare_space()
981 struct hns3_tx_spare *tx_spare = ring->tx_spare; in hns3_tx_spare_update() local
983 if (!tx_spare || in hns3_tx_spare_update()
984 tx_spare->last_to_clean == tx_spare->next_to_clean) in hns3_tx_spare_update()
990 smp_store_release(&tx_spare->last_to_clean, in hns3_tx_spare_update()
991 tx_spare->next_to_clean); in hns3_tx_spare_update()
1032 struct hns3_tx_spare *tx_spare; in hns3_init_tx_spare_buffer() local
[all …]
Dhns3_debugfs.c544 struct hns3_tx_spare *tx_spare = ring->tx_spare; in hns3_dbg_tx_spare_info() local
549 if (!tx_spare) { in hns3_dbg_tx_spare_info()
567 sprintf(result[j++], "%u", tx_spare->len); in hns3_dbg_tx_spare_info()
568 sprintf(result[j++], "%u", tx_spare->next_to_use); in hns3_dbg_tx_spare_info()
569 sprintf(result[j++], "%u", tx_spare->next_to_clean); in hns3_dbg_tx_spare_info()
570 sprintf(result[j++], "%u", tx_spare->last_to_clean); in hns3_dbg_tx_spare_info()
571 sprintf(result[j++], "%pad", &tx_spare->dma); in hns3_dbg_tx_spare_info()
Dhns3_enet.h495 struct hns3_tx_spare *tx_spare; member
Dhns3_ethtool.c1904 (!priv->ring->tx_spare && new_tx_spare_buf_size != 0)) { in hns3_set_tunable()
1918 if (!priv->ring->tx_spare) in hns3_set_tunable()
1922 priv->ring->tx_spare->len); in hns3_set_tunable()