/net/rxrpc/ |
D | output.c | 135 struct kvec iov[2]; in rxrpc_send_ack_packet() local 188 iov[0].iov_base = pkt; in rxrpc_send_ack_packet() 189 iov[0].iov_len = sizeof(pkt->whdr) + sizeof(pkt->ack) + n; in rxrpc_send_ack_packet() 190 iov[1].iov_base = &pkt->ackinfo; in rxrpc_send_ack_packet() 191 iov[1].iov_len = sizeof(pkt->ackinfo); in rxrpc_send_ack_packet() 192 len = iov[0].iov_len + iov[1].iov_len; in rxrpc_send_ack_packet() 216 ret = kernel_sendmsg(conn->params.local->socket, &msg, iov, 2, len); in rxrpc_send_ack_packet() 260 struct kvec iov[1]; in rxrpc_send_abort_packet() local 299 iov[0].iov_base = &pkt; in rxrpc_send_abort_packet() 300 iov[0].iov_len = sizeof(pkt); in rxrpc_send_abort_packet() [all …]
|
D | local_event.c | 32 struct kvec iov[2]; in rxrpc_send_version_request() local 59 iov[0].iov_base = &whdr; in rxrpc_send_version_request() 60 iov[0].iov_len = sizeof(whdr); in rxrpc_send_version_request() 61 iov[1].iov_base = (char *)rxrpc_version_string; in rxrpc_send_version_request() 62 iov[1].iov_len = sizeof(rxrpc_version_string); in rxrpc_send_version_request() 64 len = iov[0].iov_len + iov[1].iov_len; in rxrpc_send_version_request() 68 ret = kernel_sendmsg(local->socket, &msg, iov, 2, len); in rxrpc_send_version_request()
|
D | conn_event.c | 29 struct kvec iov[3]; in rxrpc_conn_retransmit_call() local 61 iov[0].iov_base = &pkt; in rxrpc_conn_retransmit_call() 62 iov[0].iov_len = sizeof(pkt.whdr); in rxrpc_conn_retransmit_call() 63 iov[1].iov_base = &padding; in rxrpc_conn_retransmit_call() 64 iov[1].iov_len = 3; in rxrpc_conn_retransmit_call() 65 iov[2].iov_base = &ack_info; in rxrpc_conn_retransmit_call() 66 iov[2].iov_len = sizeof(ack_info); in rxrpc_conn_retransmit_call() 83 iov[0].iov_len += sizeof(pkt.abort_code); in rxrpc_conn_retransmit_call() 104 iov[0].iov_len += sizeof(pkt.ack); in rxrpc_conn_retransmit_call() 136 ret = kernel_sendmsg(conn->params.local->socket, &msg, iov, ioc, len); in rxrpc_conn_retransmit_call() [all …]
|
D | rxkad.c | 646 struct kvec iov[2]; in rxkad_issue_challenge() local 681 iov[0].iov_base = &whdr; in rxkad_issue_challenge() 682 iov[0].iov_len = sizeof(whdr); in rxkad_issue_challenge() 683 iov[1].iov_base = &challenge; in rxkad_issue_challenge() 684 iov[1].iov_len = sizeof(challenge); in rxkad_issue_challenge() 686 len = iov[0].iov_len + iov[1].iov_len; in rxkad_issue_challenge() 692 ret = kernel_sendmsg(conn->params.local->socket, &msg, iov, 2, len); in rxkad_issue_challenge() 716 struct kvec iov[3]; in rxkad_send_response() local 737 iov[0].iov_base = &whdr; in rxkad_send_response() 738 iov[0].iov_len = sizeof(whdr); in rxkad_send_response() [all …]
|
/net/sunrpc/ |
D | xdr.c | 525 struct kvec *iov = buf->head; in xdr_init_encode() local 531 xdr->iov = iov; in xdr_init_encode() 532 xdr->p = (__be32 *)((char *)iov->iov_base + iov->iov_len); in xdr_init_encode() 533 xdr->end = (__be32 *)((char *)iov->iov_base + scratch_len); in xdr_init_encode() 534 BUG_ON(iov->iov_len > scratch_len); in xdr_init_encode() 543 iov->iov_len += len; in xdr_init_encode() 589 if (xdr->iov) in xdr_get_next_encode_buffer() 590 xdr->iov->iov_len += frag1bytes; in xdr_get_next_encode_buffer() 594 xdr->iov = NULL; in xdr_get_next_encode_buffer() 642 if (xdr->iov) in xdr_reserve_space() [all …]
|
D | svcsock.c | 322 static ssize_t svc_recvfrom(struct svc_rqst *rqstp, struct kvec *iov, in svc_recvfrom() argument 333 iov_iter_kvec(&msg.msg_iter, READ, iov, nr, buflen); in svc_recvfrom() 346 svsk, iov[0].iov_base, iov[0].iov_len, len); in svc_recvfrom() 924 struct kvec iov; in svc_tcp_recv_record() local 927 iov.iov_base = ((char *) &svsk->sk_reclen) + svsk->sk_tcplen; in svc_tcp_recv_record() 928 iov.iov_len = want; in svc_tcp_recv_record() 929 len = svc_recvfrom(rqstp, &iov, 1, want, 0); in svc_tcp_recv_record()
|
D | xprtsock.c | 789 struct kvec iov[2] = { in xs_send_rm_and_kvec() local 796 size_t len = iov[0].iov_len + iov[1].iov_len; in xs_send_rm_and_kvec() 798 iov_iter_kvec(&msg->msg_iter, WRITE, iov, 2, len); in xs_send_rm_and_kvec() 2657 struct kvec iov = { in bc_sendto() local 2664 len = kernel_sendmsg(transport->sock, &msg, &iov, 1, iov.iov_len); in bc_sendto() 2665 if (len != iov.iov_len) in bc_sendto()
|
/net/rds/ |
D | rdma.c | 496 static int rds_rdma_pages(struct rds_iovec iov[], int nr_iovecs) in rds_rdma_pages() argument 504 nr_pages = rds_pages_in_vec(&iov[i]); in rds_rdma_pages() 522 struct rds_iov_vector *iov) in rds_rdma_extra_size() argument 535 iov->iov = kcalloc(args->nr_local, in rds_rdma_extra_size() 538 if (!iov->iov) in rds_rdma_extra_size() 541 vec = &iov->iov[0]; in rds_rdma_extra_size() 546 iov->len = args->nr_local; in rds_rdma_extra_size() 606 iovs = vec->iov; in rds_cmsg_rdma_args() 664 struct rds_iovec *iov = &iovs[i]; in rds_cmsg_rdma_args() local 666 unsigned int nr = rds_pages_in_vec(iov); in rds_cmsg_rdma_args() [all …]
|
D | send.c | 897 struct rds_iov_vector *iov, *tmp_iov; in rds_rm_size() local 924 iov = &vct->vec[vct->indx]; in rds_rm_size() 925 memset(iov, 0, sizeof(struct rds_iov_vector)); in rds_rm_size() 928 retval = rds_rdma_extra_size(CMSG_DATA(cmsg), iov); in rds_rm_size() 1394 kfree(vct.vec[ind].iov); in rds_sendmsg() 1401 kfree(vct.vec[ind].iov); in rds_sendmsg()
|
D | rds.h | 398 struct rds_iovec *iov; member 931 struct rds_iov_vector *iov);
|
/net/tipc/ |
D | topsrv.c | 254 struct kvec iov; in tipc_conn_send_to_sock() local 270 iov.iov_base = evt; in tipc_conn_send_to_sock() 271 iov.iov_len = sizeof(*evt); in tipc_conn_send_to_sock() 275 ret = kernel_sendmsg(con->sock, &msg, &iov, in tipc_conn_send_to_sock() 391 struct kvec iov; in tipc_conn_rcv_from_sock() local 394 iov.iov_base = &s; in tipc_conn_rcv_from_sock() 395 iov.iov_len = sizeof(s); in tipc_conn_rcv_from_sock() 397 iov_iter_kvec(&msg.msg_iter, READ, &iov, 1, iov.iov_len); in tipc_conn_rcv_from_sock()
|
/net/sunrpc/auth_gss/ |
D | gss_krb5_wrap.c | 53 struct kvec *iov; in gss_krb5_add_padding() local 56 iov = &buf->tail[0]; in gss_krb5_add_padding() 58 iov = &buf->head[0]; in gss_krb5_add_padding() 59 p = iov->iov_base + iov->iov_len; in gss_krb5_add_padding() 60 iov->iov_len += padding; in gss_krb5_add_padding()
|
D | auth_gss.c | 1535 struct kvec iov; in gss_marshal() local 1566 iov.iov_base = req->rq_snd_buf.head[0].iov_base; in gss_marshal() 1567 iov.iov_len = (u8 *)p - (u8 *)iov.iov_base; in gss_marshal() 1568 xdr_buf_from_iov(&iov, &verf_buf); in gss_marshal() 1676 struct kvec iov; in gss_validate() local 1698 iov.iov_base = seq; in gss_validate() 1699 iov.iov_len = 4; in gss_validate() 1700 xdr_buf_from_iov(&iov, &verf_buf); in gss_validate() 1829 struct kvec *iov; in gss_wrap_req_priv() local 1876 iov = snd_buf->tail; in gss_wrap_req_priv() [all …]
|
D | svcauth_gss.c | 689 struct kvec iov; in gss_verify_header() local 692 iov.iov_base = rpcstart; in gss_verify_header() 693 iov.iov_len = (u8 *)argv->iov_base - (u8 *)rpcstart; in gss_verify_header() 694 xdr_buf_from_iov(&iov, &rpchdr); in gss_verify_header() 748 struct kvec iov; in gss_write_verf() local 757 iov.iov_base = xdr_seq; in gss_write_verf() 758 iov.iov_len = 4; in gss_write_verf() 759 xdr_buf_from_iov(&iov, &verf_data); in gss_write_verf()
|
/net/ |
D | socket.c | 1929 struct iovec iov; in __sys_sendto() local 1932 err = import_single_range(WRITE, buff, len, &iov, &msg.msg_iter); in __sys_sendto() 1987 struct iovec iov; in __sys_recvfrom() local 1993 err = import_single_range(READ, ubuf, size, &iov, &msg.msg_iter); in __sys_recvfrom() 2187 struct iovec **iov) in copy_msghdr_from_user() argument 2232 UIO_FASTIOV, iov, &kmsg->msg_iter); in copy_msghdr_from_user() 2319 struct iovec **iov) in sendmsg_copy_msghdr() argument 2327 err = get_compat_msghdr(msg, msg_compat, NULL, iov); in sendmsg_copy_msghdr() 2329 err = copy_msghdr_from_user(msg, umsg, NULL, iov); in sendmsg_copy_msghdr() 2343 struct iovec iovstack[UIO_FASTIOV], *iov = iovstack; in ___sys_sendmsg() local [all …]
|
D | compat.c | 39 struct iovec **iov) in get_compat_msghdr() argument 85 UIO_FASTIOV, iov, &kmsg->msg_iter); in get_compat_msghdr()
|
/net/ipv4/ |
D | tcp_ipv4.c | 698 arg.iov[0].iov_base = (unsigned char *)&rep; in tcp_v4_send_reset() 699 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_reset() 743 arg.iov[0].iov_len += TCPOLEN_MD5SIG_ALIGNED; in tcp_v4_send_reset() 744 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset() 753 arg.iov[0].iov_len, IPPROTO_TCP, 0); in tcp_v4_send_reset() 784 &arg, arg.iov[0].iov_len, in tcp_v4_send_reset() 825 arg.iov[0].iov_base = (unsigned char *)&rep; in tcp_v4_send_ack() 826 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_ack() 833 arg.iov[0].iov_len += TCPOLEN_TSTAMP_ALIGNED; in tcp_v4_send_ack() 839 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack() [all …]
|
D | ip_output.c | 1708 err = ip_append_data(sk, &fl4, ip_reply_glue_bits, arg->iov->iov_base, in ip_send_unicast_reply()
|
/net/tls/ |
D | tls_device.c | 553 struct kvec iov; in tls_device_sendpage() local 567 iov.iov_base = kaddr + offset; in tls_device_sendpage() 568 iov.iov_len = size; in tls_device_sendpage() 569 iov_iter_kvec(&msg_iter, WRITE, &iov, 1, size); in tls_device_sendpage()
|
/net/netfilter/ipvs/ |
D | ip_vs_sync.c | 1585 struct kvec iov; in ip_vs_send_async() local 1589 iov.iov_base = (void *)buffer; in ip_vs_send_async() 1590 iov.iov_len = length; in ip_vs_send_async() 1592 len = kernel_sendmsg(sock, &msg, &iov, 1, (size_t)(length)); in ip_vs_send_async() 1617 struct kvec iov = {buffer, buflen}; in ip_vs_receive() local 1623 iov_iter_kvec(&msg.msg_iter, READ, &iov, 1, buflen); in ip_vs_receive()
|
/net/core/ |
D | sock.c | 2738 struct kvec iov; in sock_no_sendpage() local 2740 iov.iov_base = kaddr + offset; in sock_no_sendpage() 2741 iov.iov_len = size; in sock_no_sendpage() 2742 res = kernel_sendmsg(sock, &msg, &iov, 1, size); in sock_no_sendpage() 2753 struct kvec iov; in sock_no_sendpage_locked() local 2756 iov.iov_base = kaddr + offset; in sock_no_sendpage_locked() 2757 iov.iov_len = size; in sock_no_sendpage_locked() 2758 res = kernel_sendmsg_locked(sk, &msg, &iov, 1, size); in sock_no_sendpage_locked()
|
/net/ceph/ |
D | messenger.c | 512 struct kvec iov = {buf, len}; in ceph_tcp_recvmsg() local 519 iov_iter_kvec(&msg.msg_iter, READ, &iov, 1, len); in ceph_tcp_recvmsg() 549 static int ceph_tcp_sendmsg(struct socket *sock, struct kvec *iov, in ceph_tcp_sendmsg() argument 560 r = kernel_sendmsg(sock, &msg, iov, kvlen, len); in ceph_tcp_sendmsg()
|
/net/caif/ |
D | caif_socket.c | 542 if (unlikely(msg->msg_iter.iov->iov_base == NULL)) in caif_seqpkt_sendmsg()
|