Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c963 struct hns3_tx_spare *tx_spare = ring->tx_spare; in hns3_tx_spare_space() local
969 ntc = smp_load_acquire(&tx_spare->last_to_clean); in hns3_tx_spare_space()
970 ntu = tx_spare->next_to_use; in hns3_tx_spare_space()
978 return max(ntc, tx_spare->len - ntu) - 1; in hns3_tx_spare_space()
983 struct hns3_tx_spare *tx_spare = ring->tx_spare; in hns3_tx_spare_update() local
985 if (!tx_spare || in hns3_tx_spare_update()
986 tx_spare->last_to_clean == tx_spare->next_to_clean) in hns3_tx_spare_update()
992 smp_store_release(&tx_spare->last_to_clean, in hns3_tx_spare_update()
993 tx_spare->next_to_clean); in hns3_tx_spare_update()
1034 struct hns3_tx_spare *tx_spare; in hns3_init_tx_spare_buffer() local
[all …]
Dhns3_debugfs.c557 struct hns3_tx_spare *tx_spare = ring->tx_spare; in hns3_dbg_tx_spare_info() local
562 if (!tx_spare) { in hns3_dbg_tx_spare_info()
580 sprintf(result[j++], "%u", tx_spare->len); in hns3_dbg_tx_spare_info()
581 sprintf(result[j++], "%u", tx_spare->next_to_use); in hns3_dbg_tx_spare_info()
582 sprintf(result[j++], "%u", tx_spare->next_to_clean); in hns3_dbg_tx_spare_info()
583 sprintf(result[j++], "%u", tx_spare->last_to_clean); in hns3_dbg_tx_spare_info()
584 sprintf(result[j++], "%pad", &tx_spare->dma); in hns3_dbg_tx_spare_info()
Dhns3_enet.h496 struct hns3_tx_spare *tx_spare; member
Dhns3_ethtool.c1953 (!priv->ring->tx_spare && new_tx_spare_buf_size != 0)) { in hns3_set_tunable()
1967 if (!priv->ring->tx_spare) in hns3_set_tunable()
1971 priv->ring->tx_spare->len); in hns3_set_tunable()