Searched refs:tx_spare (Results 1 – 4 of 4) sorted by relevance
/linux-5.19.10/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_enet.c | 961 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 …]
|
D | hns3_debugfs.c | 544 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()
|
D | hns3_enet.h | 495 struct hns3_tx_spare *tx_spare; member
|
D | hns3_ethtool.c | 1904 (!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()
|