Lines Matching refs:num_segs
108 for (seg = 0; seg < sg->num_segs; seg++) { in otx2_dma_unmap_skb_frags()
112 sg->num_segs = 0; in otx2_dma_unmap_skb_frags()
618 struct sk_buff *skb, int num_segs, int *offset) in otx2_sqe_add_sg() argument
625 sq->sg[sq->head].num_segs = 0; in otx2_sqe_add_sg()
627 for (seg = 0; seg < num_segs; seg++) { in otx2_sqe_add_sg()
638 if ((num_segs - seg) >= (MAX_SEGS_PER_SG - 1)) in otx2_sqe_add_sg()
654 sq->sg[sq->head].num_segs++; in otx2_sqe_add_sg()
805 int num_segs = skb_shinfo(skb)->nr_frags + 1; in otx2_dma_map_tso_skb() local
810 sg->num_segs = 0; in otx2_dma_map_tso_skb()
815 for (seg = 0; seg < num_segs; seg++) { in otx2_dma_map_tso_skb()
824 sg->dma_addr[sg->num_segs] = dma_addr; in otx2_dma_map_tso_skb()
825 sg->size[sg->num_segs] = len; in otx2_dma_map_tso_skb()
826 sg->num_segs++; in otx2_dma_map_tso_skb()
861 for (seg = 0; seg < list->num_segs; seg++) { in otx2_sqe_tso_add_sg()
872 if ((list->num_segs - seg) >= (MAX_SEGS_PER_SG - 1)) in otx2_sqe_tso_add_sg()
924 list.num_segs = 1; in otx2_sq_append_tso()
933 list.size[list.num_segs] = size; in otx2_sq_append_tso()
934 list.dma_addr[list.num_segs] = in otx2_sq_append_tso()
939 list.num_segs++; in otx2_sq_append_tso()
1149 int offset, num_segs, free_desc; in otx2_sq_append_skb() local
1162 num_segs = skb_shinfo(skb)->nr_frags + 1; in otx2_sq_append_skb()
1167 if (unlikely(num_segs > OTX2_MAX_FRAGS_IN_SQE)) { in otx2_sq_append_skb()
1172 num_segs = skb_shinfo(skb)->nr_frags + 1; in otx2_sq_append_skb()
1198 if (!otx2_sqe_add_sg(pfvf, sq, skb, num_segs, &offset)) { in otx2_sq_append_skb()
1370 sq->sg[sq->head].num_segs = 1; in otx2_xdp_sqe_add_sg()