Lines Matching refs:subdesc_cnt

555 			      int hdr_sqe, u8 subdesc_cnt)  in nicvf_unmap_sndq_buffers()  argument
561 for (idx = 0; idx < subdesc_cnt; idx++) { in nicvf_unmap_sndq_buffers()
611 tso_sqe->subdesc_cnt); in nicvf_free_snd_queue()
614 hdr->subdesc_cnt); in nicvf_free_snd_queue()
1201 nicvf_put_sq_desc(sq, hdr->subdesc_cnt + 1); in nicvf_sq_free_used_descs()
1223 int subdesc_cnt, u64 data, int len) in nicvf_xdp_sq_add_hdr_subdesc() argument
1230 hdr->subdesc_cnt = subdesc_cnt; in nicvf_xdp_sq_add_hdr_subdesc()
1239 int subdesc_cnt = MIN_SQ_DESC_PER_PKT_XMIT; in nicvf_xdp_sq_append_pkt() local
1242 if (subdesc_cnt > sq->xdp_free_cnt) in nicvf_xdp_sq_append_pkt()
1245 qentry = nicvf_get_sq_desc(sq, subdesc_cnt); in nicvf_xdp_sq_append_pkt()
1247 nicvf_xdp_sq_add_hdr_subdesc(sq, qentry, subdesc_cnt - 1, bufaddr, len); in nicvf_xdp_sq_append_pkt()
1252 sq->xdp_desc_cnt += subdesc_cnt; in nicvf_xdp_sq_append_pkt()
1309 int subdesc_cnt = MIN_SQ_DESC_PER_PKT_XMIT; in nicvf_sq_subdesc_required() local
1312 subdesc_cnt = nicvf_tso_count_subdescs(skb); in nicvf_sq_subdesc_required()
1313 return subdesc_cnt; in nicvf_sq_subdesc_required()
1318 subdesc_cnt += POST_CQE_DESC_COUNT; in nicvf_sq_subdesc_required()
1321 subdesc_cnt += skb_shinfo(skb)->nr_frags; in nicvf_sq_subdesc_required()
1323 return subdesc_cnt; in nicvf_sq_subdesc_required()
1331 int subdesc_cnt, struct sk_buff *skb, int len) in nicvf_sq_add_hdr_subdesc() argument
1350 hdr->subdesc_cnt = subdesc_cnt - POST_CQE_DESC_COUNT; in nicvf_sq_add_hdr_subdesc()
1356 hdr->subdesc_cnt = subdesc_cnt; in nicvf_sq_add_hdr_subdesc()
1453 hdr->subdesc_cnt = POST_CQE_DESC_COUNT - 1; in nicvf_sq_add_cqe_subdesc()
1554 int subdesc_cnt, hdr_sqe = 0; in nicvf_sq_append_skb() local
1558 subdesc_cnt = nicvf_sq_subdesc_required(nic, skb); in nicvf_sq_append_skb()
1559 if (subdesc_cnt > atomic_read(&sq->free_cnt)) in nicvf_sq_append_skb()
1562 qentry = nicvf_get_sq_desc(sq, subdesc_cnt); in nicvf_sq_append_skb()
1569 nicvf_sq_add_hdr_subdesc(nic, sq, qentry, subdesc_cnt - 1, in nicvf_sq_append_skb()
1581 nicvf_rollback_sq_desc(sq, qentry, subdesc_cnt); in nicvf_sq_append_skb()
1606 nicvf_rollback_sq_desc(sq, qentry, subdesc_cnt); in nicvf_sq_append_skb()
1618 nicvf_sq_doorbell(nic, skb, sq_num, subdesc_cnt); in nicvf_sq_append_skb()