Searched refs:frag_buf_num (Results 1 – 2 of 2) sorted by relevance
292 int frag_buf_num; in fill_tso_desc() local296 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()
1686 unsigned int frag_buf_num; in hns3_fill_desc() local1700 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()