Searched refs:tx_spare (Results 1 – 3 of 3) sorted by relevance
| /Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/ |
| D | hns3_enet.c | 964 struct hns3_tx_spare *tx_spare = ring->tx_spare; in hns3_tx_spare_space() local 970 ntc = smp_load_acquire(&tx_spare->last_to_clean); in hns3_tx_spare_space() 971 ntu = tx_spare->next_to_use; in hns3_tx_spare_space() 979 return max(ntc, tx_spare->len - ntu) - 1; in hns3_tx_spare_space() 984 struct hns3_tx_spare *tx_spare = ring->tx_spare; in hns3_tx_spare_update() local 986 if (!tx_spare || in hns3_tx_spare_update() 987 tx_spare->last_to_clean == tx_spare->next_to_clean) in hns3_tx_spare_update() 993 smp_store_release(&tx_spare->last_to_clean, in hns3_tx_spare_update() 994 tx_spare->next_to_clean); in hns3_tx_spare_update() 1038 struct hns3_tx_spare *tx_spare; in hns3_init_tx_spare_buffer() local [all …]
|
| D | hns3_debugfs.c | 422 struct hns3_tx_spare *tx_spare = ring->tx_spare; in hns3_dbg_tx_spare_info() local 427 if (!tx_spare) { in hns3_dbg_tx_spare_info() 445 sprintf(result[j++], "%3u", tx_spare->len); in hns3_dbg_tx_spare_info() 446 sprintf(result[j++], "%3u", tx_spare->next_to_use); in hns3_dbg_tx_spare_info() 447 sprintf(result[j++], "%3u", tx_spare->next_to_clean); in hns3_dbg_tx_spare_info() 448 sprintf(result[j++], "%3u", tx_spare->last_to_clean); in hns3_dbg_tx_spare_info() 449 sprintf(result[j++], "%pad", &tx_spare->dma); in hns3_dbg_tx_spare_info()
|
| D | hns3_enet.h | 485 struct hns3_tx_spare *tx_spare; member
|