Home
last modified time | relevance | path

Searched refs:frag_buf_num (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/hisilicon/hns/
Dhns_enet.c292 int frag_buf_num; in fill_tso_desc() local
296 frag_buf_num = (size + BD_MAX_SEND_SIZE - 1) / BD_MAX_SEND_SIZE; in fill_tso_desc()
301 for (k = 0; k < frag_buf_num; k++) in fill_tso_desc()
303 (k == frag_buf_num - 1) ? in fill_tso_desc()
306 frag_end && (k == frag_buf_num - 1) ? 1 : 0, in fill_tso_desc()
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c1686 unsigned int frag_buf_num; in hns3_fill_desc() local
1700 frag_buf_num = hns3_tx_bd_count(size); in hns3_fill_desc()
1705 for (k = 0; k < frag_buf_num; k++) { in hns3_fill_desc()
1708 desc->tx.send_size = cpu_to_le16((k == frag_buf_num - 1) ? in hns3_fill_desc()
1720 return frag_buf_num; in hns3_fill_desc()