Lines Matching refs:iov

294 	struct iovec *iov)  in prep_msg()  argument
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()
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()
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()
483 struct iovec *iov; in destroy_queue() local
503 iov = mmsg_vector->msg_hdr.msg_iov; in destroy_queue()
504 if (iov != NULL) { in destroy_queue()
506 (iov->iov_base != NULL)) in destroy_queue()
507 kfree(iov->iov_base); in destroy_queue()
508 kfree(iov); in destroy_queue()
528 struct iovec *iov; in create_queue() local
560 iov = kmalloc_array(3 + num_extra_frags, in create_queue()
565 iov = kmalloc_array(2 + num_extra_frags, in create_queue()
569 if (iov == NULL) in create_queue()
571 mmsg_vector->msg_hdr.msg_iov = iov; in create_queue()
579 iov->iov_base = kmalloc(header_size, GFP_KERNEL); in create_queue()
580 if (iov->iov_base == NULL) in create_queue()
582 iov->iov_len = header_size; in create_queue()
584 iov++; in create_queue()
586 iov->iov_base = NULL; in create_queue()
587 iov->iov_len = 0; in create_queue()
622 struct iovec *iov = msg->msg_iov; in prep_skb() local
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()
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()
842 struct iovec iov[2 + MAX_IOV_SIZE]; /* header + data use case only */ in vector_legacy_rx() local
849 hdr.msg_iov = (struct iovec *) &iov; in vector_legacy_rx()
855 iov[0].iov_base = vp->header_rxbuffer; in vector_legacy_rx()
856 iov[0].iov_len = vp->header_size; in vector_legacy_rx()
865 iov[iovpos].iov_base = drop_buffer; in vector_legacy_rx()
866 iov[iovpos].iov_len = DROP_BUFFER_SIZE; in vector_legacy_rx()
914 struct iovec iov[3 + MAX_IOV_SIZE]; in writev_tx() local
917 iov[0].iov_base = vp->header_txbuffer; in writev_tx()
918 iov_count = prep_msg(vp, skb, (struct iovec *) &iov); in writev_tx()
925 (struct iovec *) &iov, in writev_tx()