Home
last modified time | relevance | path

Searched refs:msg_iter (Results 1 – 25 of 80) sorted by relevance

1234

/Linux-v6.6/io_uring/
Dnet.c187 if ((req->flags & REQ_F_BUFFER_SELECT) && !async_msg->msg.msg_iter.nr_segs) in io_setup_async_msg()
191 if (iter_is_iovec(&kmsg->msg.msg_iter) && !kmsg->free_iov) { in io_setup_async_msg()
192 size_t fast_idx = iter_iov(&kmsg->msg.msg_iter) - kmsg->fast_iov; in io_setup_async_msg()
193 async_msg->msg.msg_iter.__iov = &async_msg->fast_iov[fast_idx]; in io_setup_async_msg()
325 min_ret = iov_iter_count(&kmsg->msg.msg_iter); in io_sendmsg()
394 ret = import_ubuf(ITER_SOURCE, sr->buf, sr->len, &msg.msg_iter); in io_send()
402 min_ret = iov_iter_count(&msg.msg_iter); in io_send()
482 &iomsg->free_iov, &iomsg->msg.msg_iter, in __io_recvmsg_copy_hdr()
536 &iomsg->msg.msg_iter, true); in __io_compat_recvmsg_copy_hdr()
549 iomsg->msg.msg_iter.nr_segs = 0; in io_recvmsg_copy_hdr()
[all …]
/Linux-v6.6/net/handshake/
Dalert.c62 iov_iter_kvec(&msg.msg_iter, ITER_SOURCE, &iov, 1, iov.iov_len); in tls_alert_send()
103 iov = msg->msg_iter.kvec; in tls_alert_recv()
/Linux-v6.6/net/sunrpc/
Dsocklib.c210 iov_iter_advance(&msg->msg_iter, seek); in xprt_sendmsg()
217 iov_iter_kvec(&msg->msg_iter, ITER_SOURCE, vec, 1, vec->iov_len); in xprt_send_kvec()
224 iov_iter_bvec(&msg->msg_iter, ITER_SOURCE, xdr->bvec, xdr_buf_pagecount(xdr), in xprt_send_pagedata()
247 iov_iter_kvec(&msg->msg_iter, ITER_SOURCE, iov, 2, len); in xprt_send_rm_and_kvec()
Dsvcsock.c319 iov_iter_bvec(&msg.msg_iter, ITER_DEST, bvec, i, buflen); in svc_tcp_read_msg()
321 iov_iter_advance(&msg.msg_iter, seek); in svc_tcp_read_msg()
719 iov_iter_bvec(&msg.msg_iter, ITER_SOURCE, rqstp->rq_bvec, in svc_udp_sendto()
724 iov_iter_bvec(&msg.msg_iter, ITER_SOURCE, rqstp->rq_bvec, in svc_udp_sendto()
1021 iov_iter_kvec(&msg.msg_iter, ITER_DEST, &iov, 1, want); in svc_tcp_read_marker()
1254 iov_iter_bvec(&msg.msg_iter, ITER_SOURCE, rqstp->rq_bvec, in svc_tcp_sendmsg()
/Linux-v6.6/fs/afs/
Drxrpc.c363 iov_iter_kvec(&msg.msg_iter, ITER_SOURCE, iov, 1, call->request_size); in afs_make_call()
375 msg.msg_iter = *call->write_iter; in afs_make_call()
381 iov_iter_count(&msg.msg_iter), in afs_make_call()
383 *call->write_iter = msg.msg_iter; in afs_make_call()
405 iov_iter_kvec(&msg.msg_iter, ITER_DEST, NULL, 0, 0); in afs_make_call()
407 &msg.msg_iter, &len, false, in afs_make_call()
829 iov_iter_kvec(&msg.msg_iter, ITER_SOURCE, NULL, 0, 0); in afs_send_empty_reply()
870 iov_iter_kvec(&msg.msg_iter, ITER_SOURCE, iov, 1, len); in afs_send_simple_reply()
/Linux-v6.6/drivers/xen/
Dpvcalls-front.c492 struct iov_iter *msg_iter, in __write_ring() argument
519 len = copy_from_iter(data->out + masked_prod, len, msg_iter); in __write_ring()
523 array_size - masked_prod, msg_iter); in __write_ring()
528 len = ret + copy_from_iter(data->out, len - ret, msg_iter); in __write_ring()
530 len = copy_from_iter(data->out + masked_prod, len, msg_iter); in __write_ring()
568 &map->active.data, &msg->msg_iter, in pvcalls_front_sendmsg()
587 struct iov_iter *msg_iter, in __read_ring() argument
611 len = copy_to_iter(data->in + masked_cons, len, msg_iter); in __read_ring()
615 array_size - masked_cons, msg_iter); in __read_ring()
620 len = ret + copy_to_iter(data->in, len - ret, msg_iter); in __read_ring()
[all …]
Dpvcalls-back.c133 iov_iter_kvec(&msg.msg_iter, ITER_DEST, vec, 1, wanted); in pvcalls_conn_back_read()
139 iov_iter_kvec(&msg.msg_iter, ITER_DEST, vec, 2, wanted); in pvcalls_conn_back_read()
194 iov_iter_kvec(&msg.msg_iter, ITER_SOURCE, vec, 1, size); in pvcalls_conn_back_write()
200 iov_iter_kvec(&msg.msg_iter, ITER_SOURCE, vec, 2, size); in pvcalls_conn_back_write()
/Linux-v6.6/net/rxrpc/
Doutput.c234 iov_iter_kvec(&msg.msg_iter, WRITE, iov, 1, len); in rxrpc_send_ack_packet()
308 iov_iter_kvec(&msg.msg_iter, WRITE, iov, 1, sizeof(pkt)); in rxrpc_send_abort_packet()
347 iov_iter_kvec(&msg.msg_iter, WRITE, iov, 1, len); in rxrpc_send_data_packet()
566 iov_iter_kvec(&msg.msg_iter, WRITE, iov, 2, len); in rxrpc_send_conn_abort()
635 iov_iter_kvec(&msg.msg_iter, WRITE, iov, ioc, size); in rxrpc_reject_packet()
684 iov_iter_kvec(&msg.msg_iter, WRITE, iov, 2, len); in rxrpc_send_keepalive()
Drxperf.c508 iov_iter_bvec(&msg.msg_iter, WRITE, &bv, 1, len); in rxperf_process_call()
522 iov_iter_kvec(&msg.msg_iter, WRITE, iov, 1, len); in rxperf_process_call()
/Linux-v6.6/crypto/
Dalgif_hash.c111 npages = iov_iter_npages(&msg->msg_iter, max_pages); in hash_sendmsg()
117 ctx->sgl.need_unpin = iov_iter_extract_will_pin(&msg->msg_iter); in hash_sendmsg()
119 err = extract_iter_to_sg(&msg->msg_iter, LONG_MAX, in hash_sendmsg()
/Linux-v6.6/include/net/
Dudplite.h25 return copy_from_iter_full(to, len, &msg->msg_iter) ? 0 : -EFAULT; in udplite_getfrag()
/Linux-v6.6/include/linux/
Dsocket.h61 struct iov_iter msg_iter; /* data */ member
172 return iov_iter_count(&msg->msg_iter); in msg_data_left()
/Linux-v6.6/tools/perf/trace/beauty/include/linux/
Dsocket.h61 struct iov_iter msg_iter; /* data */ member
172 return iov_iter_count(&msg->msg_iter); in msg_data_left()
/Linux-v6.6/include/trace/events/
Dafs.h965 __entry->offset = msg->msg_iter.xarray_start + msg->msg_iter.iov_offset;
966 __entry->count = iov_iter_count(&msg->msg_iter);
989 __entry->offset = msg->msg_iter.xarray_start + msg->msg_iter.iov_offset;
990 __entry->count = iov_iter_count(&msg->msg_iter);
/Linux-v6.6/fs/smb/client/
Dsmbdirect.c1912 if (iov_iter_rw(&msg->msg_iter) == WRITE) { in smbd_recv()
1915 iov_iter_rw(&msg->msg_iter)); in smbd_recv()
1920 switch (iov_iter_type(&msg->msg_iter)) { in smbd_recv()
1922 buf = msg->msg_iter.kvec->iov_base; in smbd_recv()
1923 to_read = msg->msg_iter.kvec->iov_len; in smbd_recv()
1928 page = msg->msg_iter.bvec->bv_page; in smbd_recv()
1929 page_offset = msg->msg_iter.bvec->bv_offset; in smbd_recv()
1930 to_read = msg->msg_iter.bvec->bv_len; in smbd_recv()
1937 iov_iter_type(&msg->msg_iter)); in smbd_recv()
1944 msg->msg_iter.count = 0; in smbd_recv()
/Linux-v6.6/net/tipc/
Dmsg.c231 if (cpy != copy_from_iter(skb->data + mlen, cpy, &m->msg_iter)) in tipc_msg_append()
404 if (copy_from_iter_full(pktpos, dsz, &m->msg_iter)) in tipc_msg_build()
435 if (!copy_from_iter_full(pktpos, pktrem, &m->msg_iter)) { in tipc_msg_build()
/Linux-v6.6/net/
Dsocket.c789 iov_iter_kvec(&msg->msg_iter, ITER_SOURCE, vec, num, size); in kernel_sendmsg()
816 iov_iter_kvec(&msg->msg_iter, ITER_SOURCE, vec, num, size); in kernel_sendmsg_locked()
1090 iov_iter_kvec(&msg->msg_iter, ITER_DEST, vec, num, size); in kernel_recvmsg()
1123 struct msghdr msg = {.msg_iter = *to, in sock_read_iter()
1137 *to = msg.msg_iter; in sock_read_iter()
1145 struct msghdr msg = {.msg_iter = *from, in sock_write_iter()
1159 *from = msg.msg_iter; in sock_write_iter()
2171 err = import_single_range(ITER_SOURCE, buff, len, &iov, &msg.msg_iter); in __sys_sendto()
2237 err = import_single_range(ITER_DEST, ubuf, size, &iov, &msg.msg_iter); in __sys_recvfrom()
2497 UIO_FASTIOV, iov, &kmsg->msg_iter); in copy_msghdr_from_user()
/Linux-v6.6/net/rds/
Dtcp_send.c123 iov_iter_bvec(&msg.msg_iter, ITER_SOURCE, &bvec, 1, in rds_tcp_xmit()
/Linux-v6.6/drivers/vhost/
Dnet.c642 *len = init_iov_iter(vq, &msg->msg_iter, nvq->vhost_hlen, *out); in get_tx_bufs()
816 err = vhost_net_build_xdp(nvq, &msg.msg_iter); in handle_tx_copy()
1193 iov_iter_init(&msg.msg_iter, ITER_DEST, vq->iov, 1, 1); in handle_rx()
1200 iov_iter_init(&msg.msg_iter, ITER_DEST, vq->iov, in, vhost_len); in handle_rx()
1201 fixup = msg.msg_iter; in handle_rx()
1206 iov_iter_advance(&msg.msg_iter, vhost_hlen); in handle_rx()
/Linux-v6.6/net/xfrm/
Despintcp.c232 iov_iter_bvec(&msghdr.msg_iter, ITER_SOURCE, &bvec, 1, size); in espintcp_sendskmsg_locked()
371 err = sk_msg_memcopy_from_iter(sk, &msg->msg_iter, &emsg->skmsg, size); in espintcp_sendmsg()
/Linux-v6.6/net/tls/
Dtls_sw.c944 part = iov_iter_extract_pages(&msg->msg_iter, &pages, in tls_sw_sendmsg_splice()
950 iov_iter_revert(&msg->msg_iter, part); in tls_sw_sendmsg_splice()
972 bool is_kvec = iov_iter_is_kvec(&msg->msg_iter); in tls_sw_sendmsg_locked()
1061 ret = sk_msg_zerocopy_from_iter(sk, &msg->msg_iter, in tls_sw_sendmsg_locked()
1087 iov_iter_revert(&msg->msg_iter, in tls_sw_sendmsg_locked()
1111 ret = sk_msg_memcopy_from_iter(sk, &msg->msg_iter, in tls_sw_sendmsg_locked()
1615 err = tls_decrypt_sg(sk, &msg->msg_iter, NULL, darg); in tls_decrypt_sw()
1936 bool is_kvec = iov_iter_is_kvec(&msg->msg_iter); in tls_sw_recvmsg()
/Linux-v6.6/net/kcm/
Dkcmsock.c639 iov_iter_bvec(&msg.msg_iter, ITER_SOURCE, in kcm_write_msgs()
642 iov_iter_advance(&msg.msg_iter, txm->frag_offset); in kcm_write_msgs()
675 } while (msg.msg_iter.count > 0); in kcm_write_msgs()
836 err = skb_splice_from_iter(skb, &msg->msg_iter, copy, in kcm_sendmsg()
857 err = skb_copy_to_page_nocache(sk, &msg->msg_iter, skb, in kcm_sendmsg()
/Linux-v6.6/net/core/
Ddatagram.c772 if (skb_copy_and_csum_datagram(skb, hlen, &msg->msg_iter, in skb_copy_and_csum_datagram_msg()
777 iov_iter_revert(&msg->msg_iter, chunk); in skb_copy_and_csum_datagram_msg()
/Linux-v6.6/net/ipv4/
Dtcp_bpf.c119 iov_iter_bvec(&msghdr.msg_iter, ITER_SOURCE, &bvec, 1, size); in tcp_bpf_push()
541 err = sk_msg_memcopy_from_iter(sk, &msg->msg_iter, msg_tx, in tcp_bpf_sendmsg()
/Linux-v6.6/drivers/nvme/target/
Dtcp.c360 iov_iter_bvec(&cmd->recv_msg.msg_iter, ITER_DEST, cmd->iov, in nvmet_tcp_build_pdu_iovec()
589 iov_iter_bvec(&msg.msg_iter, ITER_SOURCE, &bvec, 1, left); in nvmet_try_send_data_pdu()
624 iov_iter_bvec(&msg.msg_iter, ITER_SOURCE, &bvec, 1, left); in nvmet_try_send_data()
673 iov_iter_bvec(&msg.msg_iter, ITER_SOURCE, &bvec, 1, left); in nvmet_try_send_response()
703 iov_iter_bvec(&msg.msg_iter, ITER_SOURCE, &bvec, 1, left); in nvmet_try_send_r2t()

1234