Lines Matching refs:iov_index
296 int iov_index = 0; in prep_msg() local
306 iov[iov_index].iov_len = vp->header_size; in prep_msg()
307 vp->form_header(iov[iov_index].iov_base, skb, vp); in prep_msg()
308 iov_index++; in prep_msg()
310 iov[iov_index].iov_base = skb->data; in prep_msg()
312 iov[iov_index].iov_len = skb->len - skb->data_len; in prep_msg()
315 iov[iov_index].iov_len = skb->len; in prep_msg()
316 iov_index++; in prep_msg()
319 iov[iov_index].iov_base = skb_frag_address_safe(skb_frag); in prep_msg()
320 iov[iov_index].iov_len = skb_frag_size(skb_frag); in prep_msg()
321 iov_index++; in prep_msg()
323 return iov_index; in prep_msg()
621 int iov_index = 0, len; in prep_skb() local
638 iov_index++; in prep_skb()
640 iov[iov_index].iov_base = NULL; in prep_skb()
641 iov[iov_index].iov_len = 0; in prep_skb()
651 iov[iov_index].iov_base = result->data; in prep_skb()
652 iov[iov_index].iov_len = vp->max_packet; in prep_skb()
653 iov_index++; in prep_skb()
658 iov[iov_index].iov_base = skb_frag_address_safe(skb_frag); in prep_skb()
659 if (iov[iov_index].iov_base != NULL) in prep_skb()
660 iov[iov_index].iov_len = skb_frag_size(skb_frag); in prep_skb()
662 iov[iov_index].iov_len = 0; in prep_skb()
663 iov_index++; in prep_skb()
666 msg->msg_iovlen = iov_index; in prep_skb()