Lines Matching refs:iov

285 	struct iovec *iov)  in prep_msg()  argument
297 iov[iov_index].iov_len = vp->header_size; in prep_msg()
298 vp->form_header(iov[iov_index].iov_base, skb, vp); in prep_msg()
301 iov[iov_index].iov_base = skb->data; in prep_msg()
303 iov[iov_index].iov_len = skb->len - skb->data_len; in prep_msg()
306 iov[iov_index].iov_len = skb->len; in prep_msg()
310 iov[iov_index].iov_base = skb_frag_address_safe(skb_frag); in prep_msg()
311 iov[iov_index].iov_len = skb_frag_size(skb_frag); in prep_msg()
468 struct iovec *iov; in destroy_queue() local
488 iov = mmsg_vector->msg_hdr.msg_iov; in destroy_queue()
489 if (iov != NULL) { in destroy_queue()
491 (iov->iov_base != NULL)) in destroy_queue()
492 kfree(iov->iov_base); in destroy_queue()
493 kfree(iov); in destroy_queue()
513 struct iovec *iov; in create_queue() local
545 iov = kmalloc_array(3 + num_extra_frags, in create_queue()
550 iov = kmalloc_array(2 + num_extra_frags, in create_queue()
554 if (iov == NULL) in create_queue()
556 mmsg_vector->msg_hdr.msg_iov = iov; in create_queue()
564 iov->iov_base = kmalloc(header_size, GFP_KERNEL); in create_queue()
565 if (iov->iov_base == NULL) in create_queue()
567 iov->iov_len = header_size; in create_queue()
569 iov++; in create_queue()
571 iov->iov_base = NULL; in create_queue()
572 iov->iov_len = 0; in create_queue()
607 struct iovec *iov = msg->msg_iov; in prep_skb() local
625 iov[iov_index].iov_base = NULL; in prep_skb()
626 iov[iov_index].iov_len = 0; in prep_skb()
636 iov[iov_index].iov_base = result->data; in prep_skb()
637 iov[iov_index].iov_len = vp->max_packet; in prep_skb()
643 iov[iov_index].iov_base = skb_frag_address_safe(skb_frag); in prep_skb()
644 if (iov[iov_index].iov_base != NULL) in prep_skb()
645 iov[iov_index].iov_len = skb_frag_size(skb_frag); in prep_skb()
647 iov[iov_index].iov_len = 0; in prep_skb()
834 struct iovec iov[2 + MAX_IOV_SIZE]; /* header + data use case only */ in vector_legacy_rx() local
841 hdr.msg_iov = (struct iovec *) &iov; in vector_legacy_rx()
847 iov[0].iov_base = vp->header_rxbuffer; in vector_legacy_rx()
848 iov[0].iov_len = vp->header_size; in vector_legacy_rx()
857 iov[iovpos].iov_base = drop_buffer; in vector_legacy_rx()
858 iov[iovpos].iov_len = DROP_BUFFER_SIZE; in vector_legacy_rx()
906 struct iovec iov[3 + MAX_IOV_SIZE]; in writev_tx() local
909 iov[0].iov_base = vp->header_txbuffer; in writev_tx()
910 iov_count = prep_msg(vp, skb, (struct iovec *) &iov); in writev_tx()
917 (struct iovec *) &iov, in writev_tx()