Home
last modified time | relevance | path

Searched refs:iov_len (Results 1 – 25 of 227) sorted by relevance

12345678910

/kernel/linux/linux-5.10/lib/
Diov_iter.c22 __v.iov_len = min(n, __p->iov_len - skip); \
23 if (likely(__v.iov_len)) { \
26 __v.iov_len -= left; \
27 skip += __v.iov_len; \
28 n -= __v.iov_len; \
34 __v.iov_len = min(n, __p->iov_len); \
35 if (unlikely(!__v.iov_len)) \
39 __v.iov_len -= left; \
40 skip = __v.iov_len; \
41 n -= __v.iov_len; \
[all …]
/kernel/linux/linux-5.10/net/sunrpc/
Dxdr.c186 unsigned int buflen = head->iov_len; in xdr_inline_pages()
188 head->iov_len = offset; in xdr_inline_pages()
195 tail->iov_len = buflen - offset; in xdr_inline_pages()
197 tail->iov_len -= sizeof(__be32); in xdr_inline_pages()
274 if (len > tail->iov_len) in _shift_data_left_tail()
275 len = tail->iov_len; in _shift_data_left_tail()
281 tail->iov_len -= len; in _shift_data_left_tail()
283 if (tail->iov_len > 0) in _shift_data_left_tail()
286 tail->iov_len); in _shift_data_left_tail()
362 tailbuf_len = buf->buflen - buf->head->iov_len - buf->page_len; in _shift_data_right_tail()
[all …]
Dsocklib.c96 len = xdr->head[0].iov_len; in xdr_partial_copy_from_skb()
154 len = xdr->tail[0].iov_len; in xdr_partial_copy_from_skb()
216 iov_iter_kvec(&msg->msg_iter, WRITE, vec, 1, vec->iov_len); in xprt_send_kvec()
246 .iov_len = sizeof(marker) in xprt_send_rm_and_kvec()
250 size_t len = iov[0].iov_len + iov[1].iov_len; in xprt_send_rm_and_kvec()
284 want = xdr->head[0].iov_len + rmsize; in xprt_sock_sendmsg()
319 if (base >= xdr->tail[0].iov_len) in xprt_sock_sendmsg()
Dsvc.c1207 !procp->pc_encode(rqstp, resv->iov_base + resv->iov_len)) { in svc_generic_dispatch()
1286 if (argv->iov_len < 6*4) in svc_process_common()
1306 reply_statp = resv->iov_base + resv->iov_len; in svc_process_common()
1374 statp = resv->iov_base +resv->iov_len; in svc_process_common()
1400 resv->iov_len = ((void*)statp) - resv->iov_base + 4; in svc_process_common()
1432 argv->iov_len); in svc_process_common()
1506 resv->iov_len = 0; in svc_process()
1513 rqstp->rq_res.tail[0].iov_len = 0; in svc_process()
1563 if (rqstp->rq_arg.len <= rqstp->rq_arg.head[0].iov_len) { in bc_svc_process()
1564 rqstp->rq_arg.head[0].iov_len = rqstp->rq_arg.len; in bc_svc_process()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/ptrace/
Dptrace.h110 iov.iov_len = n * sizeof(unsigned long); in ptrace_read_regs()
130 iov.iov_len = n * sizeof(unsigned long); in ptrace_write_regs()
152 iov.iov_len = sizeof(unsigned long); in show_tar_registers()
199 iov.iov_len = sizeof(unsigned long); in write_tar_registers()
242 iov.iov_len = sizeof(unsigned long); in show_tm_checkpointed_state()
290 iov.iov_len = sizeof(unsigned long); in write_ckpt_tar_registers()
371 iov.iov_len = sizeof(struct fpr_regs); in show_ckpt_fpr()
395 iov.iov_len = sizeof(struct fpr_regs); in write_ckpt_fpr()
481 iov.iov_len = sizeof(struct pt_regs); in show_ckpt_gpr()
509 iov.iov_len = sizeof(struct pt_regs); in write_ckpt_gpr()
[all …]
/kernel/linux/linux-5.10/fs/cifs/
Dsmb2transport.c273 if (drqst.rq_nvec >= 2 && iov[0].iov_len == 4) { in smb2_calc_signature()
275 iov[0].iov_len); in smb2_calc_signature()
338 label.iov_base, label.iov_len); in generate_key()
352 context.iov_base, context.iov_len); in generate_key()
485 d->label.iov_len = 12; in generate_smb30signingkey()
487 d->context.iov_len = 8; in generate_smb30signingkey()
491 d->label.iov_len = 11; in generate_smb30signingkey()
493 d->context.iov_len = 10; in generate_smb30signingkey()
497 d->label.iov_len = 11; in generate_smb30signingkey()
499 d->context.iov_len = 10; in generate_smb30signingkey()
[all …]
Dtransport.c276 rqst->rq_nvec >= 2 && rqst->rq_iov[0].iov_len == 4) { in smb_rqst_len()
286 buflen += iov[i].iov_len; in smb_rqst_len()
363 .iov_len = 4 in __smb_send_rqst()
382 dump_smb(iov[i].iov_base, iov[i].iov_len); in __smb_send_rqst()
383 size += iov[i].iov_len; in __smb_send_rqst()
485 iov.iov_len = sizeof(*tr_hdr); in smb_send_rqst()
510 iov[0].iov_len = 4; in smb_send()
512 iov[1].iov_len = smb_buf_length; in smb_send()
745 if (rqst->rq_iov[0].iov_len != 4 || in cifs_setup_async_request()
867 iov[0].iov_len = get_rfc1002_length(in_buf) + 4; in SendReceiveNoRsp()
[all …]
/kernel/linux/linux-5.10/include/linux/sunrpc/
Dsvc.h190 iov->iov_len -= sizeof(__be32); in svc_getnl()
196 __be32 *vp = iov->iov_base + iov->iov_len; in svc_putnl()
198 iov->iov_len += sizeof(__be32); in svc_putnl()
207 iov->iov_len -= sizeof(__be32); in svc_getu32()
215 iov->iov_len += sizeof(*vp); in svc_ungetu32()
220 __be32 *vp = iov->iov_base + iov->iov_len; in svc_putu32()
222 iov->iov_len += sizeof(__be32); in svc_putu32()
350 && cp <= (char*)vec->iov_base + vec->iov_len; in xdr_argsize_check()
359 vec->iov_len = cp - (char*)vec->iov_base; in xdr_ressize_check()
361 return vec->iov_len <= PAGE_SIZE; in xdr_ressize_check()
/kernel/linux/linux-5.10/net/sunrpc/auth_gss/
Dgss_krb5_wrap.c55 if (buf->page_len || buf->tail[0].iov_len) 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()
72 if (len <= buf->head[0].iov_len) { in gss_krb5_remove_padding()
74 if (pad > buf->head[0].iov_len) in gss_krb5_remove_padding()
76 buf->head[0].iov_len -= pad; in gss_krb5_remove_padding()
79 len -= buf->head[0].iov_len; in gss_krb5_remove_padding()
91 BUG_ON(len > buf->tail[0].iov_len); in gss_krb5_remove_padding()
343 data_len = (buf->head[0].iov_base + buf->head[0].iov_len) - data_start; in gss_unwrap_kerberos_v1()
345 buf->head[0].iov_len -= (data_start - orig_start); in gss_unwrap_kerberos_v1()
[all …]
Dsvcauth_gss.c678 if (argv->iov_len < 4) in svc_safe_getnetobj()
682 if (argv->iov_len < l) in svc_safe_getnetobj()
686 argv->iov_len -= l; in svc_safe_getnetobj()
695 if (resv->iov_len + 4 > PAGE_SIZE) in svc_safe_putnetobj()
698 p = resv->iov_base + resv->iov_len; in svc_safe_putnetobj()
699 resv->iov_len += round_up_to_quad(o->len); in svc_safe_putnetobj()
700 if (resv->iov_len > PAGE_SIZE) in svc_safe_putnetobj()
725 iov.iov_len = (u8 *)argv->iov_base - (u8 *)rpcstart; in gss_verify_header()
729 if (argv->iov_len < 4) in gss_verify_header()
760 p = rqstp->rq_res.head->iov_base + rqstp->rq_res.head->iov_len; in gss_write_null_verf()
[all …]
/kernel/linux/linux-5.10/arch/arm64/kernel/
Dmte.c218 size_t len = kiov->iov_len; in __access_remote_tags()
276 kiov->iov_len = buf - kiov->iov_base; in __access_remote_tags()
277 if (!kiov->iov_len) { in __access_remote_tags()
327 get_user(kiov.iov_len, &uiov->iov_len)) in mte_ptrace_copy_tags()
338 ret = put_user(kiov.iov_len, &uiov->iov_len); in mte_ptrace_copy_tags()
/kernel/linux/linux-5.10/fs/nfsd/
Dnfscache.c124 nn->drc_mem_usage -= rp->c_replvec.iov_len; in nfsd_reply_cache_free_locked()
299 size_t csum_len = min_t(size_t, buf->head[0].iov_len + buf->page_len, in nfsd_cache_csum()
301 size_t len = min(buf->head[0].iov_len, csum_len); in nfsd_cache_csum()
520 len = resv->iov_len - ((char*)statp - (char*)resv->iov_base); in nfsd_cache_update()
543 cachv->iov_len = bufsize; in nfsd_cache_update()
570 if (vec->iov_len + data->iov_len > PAGE_SIZE) { in nfsd_cache_append()
572 data->iov_len); in nfsd_cache_append()
575 memcpy((char*)vec->iov_base + vec->iov_len, data->iov_base, data->iov_len); in nfsd_cache_append()
576 vec->iov_len += data->iov_len; in nfsd_cache_append()
Dnfsxdr.c261 rqstp->rq_vec[v].iov_len = min_t(unsigned int, len, PAGE_SIZE); in nfssvc_decode_readargs()
262 len -= rqstp->rq_vec[v].iov_len; in nfssvc_decode_readargs()
295 if (hdr > head->iov_len) in nfssvc_decode_writeargs()
297 dlen = head->iov_len + rqstp->rq_arg.page_len - hdr; in nfssvc_decode_writeargs()
311 args->first.iov_len = head->iov_len - hdr; in nfssvc_decode_writeargs()
384 args->first.iov_len = rqstp->rq_arg.head[0].iov_len; in nfssvc_decode_symlinkargs()
385 args->first.iov_len -= (char *)p - base; in nfssvc_decode_symlinkargs()
398 if (xdrlen > args->first.iov_len - (8 * sizeof(__be32))) in nfssvc_decode_symlinkargs()
484 rqstp->rq_res.tail[0].iov_len = 4 - (resp->len&3); in nfssvc_encode_readlinkres()
508 rqstp->rq_res.tail[0].iov_len = 4 - (resp->count&3); in nfssvc_encode_readres()
/kernel/linux/linux-5.10/net/rxrpc/
Doutput.c239 iov[0].iov_len = sizeof(pkt->whdr) + sizeof(pkt->ack) + n; in rxrpc_send_ack_packet()
241 iov[1].iov_len = sizeof(pkt->ackinfo); in rxrpc_send_ack_packet()
242 len = iov[0].iov_len + iov[1].iov_len; in rxrpc_send_ack_packet()
329 iov[0].iov_len = sizeof(pkt); in rxrpc_send_abort_packet()
390 iov[0].iov_len = sizeof(whdr); in rxrpc_send_data_packet()
392 iov[1].iov_len = skb->len; in rxrpc_send_data_packet()
393 len = iov[0].iov_len + iov[1].iov_len; in rxrpc_send_data_packet()
434 if (iov[1].iov_len >= call->peer->maxdata) in rxrpc_send_data_packet()
570 iov[0].iov_len = sizeof(whdr); in rxrpc_reject_packets()
572 iov[1].iov_len = sizeof(code); in rxrpc_reject_packets()
[all …]
Dlocal_event.c60 iov[0].iov_len = sizeof(whdr); 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()
Dconn_event.c62 iov[0].iov_len = sizeof(pkt.whdr); in rxrpc_conn_retransmit_call()
64 iov[1].iov_len = 3; 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()
236 iov[0].iov_len = sizeof(whdr); in rxrpc_abort_connection()
238 iov[1].iov_len = sizeof(word); in rxrpc_abort_connection()
240 len = iov[0].iov_len + iov[1].iov_len; in rxrpc_abort_connection()
/kernel/liteos_a/fs/vfs/operation/
Dvfs_readv.c54 if (SSIZE_MAX - buflen < iov[i].iov_len) { in pread_buf_and_check()
58 buflen += iov[i].iov_len; in pread_buf_and_check()
109 bytestoread = iov[i].iov_len; in vfs_readv()
135 if ((i == 0) && (ret == iov[i].iov_len)) { in vfs_readv()
Dvfs_writev.c51 bytestowrite = iov[i].iov_len; in iov_trans_to_buf()
93 if (SSIZE_MAX - buflen < iov[i].iov_len) { in vfs_writev()
97 buflen += iov[i].iov_len; in vfs_writev()
/kernel/linux/linux-5.10/mm/
Dprocess_vm_access.c164 ssize_t iov_len; in process_vm_rw_core() local
172 iov_len = rvec[i].iov_len; in process_vm_rw_core()
173 if (iov_len > 0) { in process_vm_rw_core()
175 + iov_len) in process_vm_rw_core()
217 (unsigned long)rvec[i].iov_base, rvec[i].iov_len, in process_vm_rw_core()
/kernel/linux/linux-5.10/drivers/net/ethernet/google/gve/
Dgve_tx.c96 iov[0].iov_len = bytes; in gve_tx_alloc_fifo()
105 iov[0].iov_len -= overflow; in gve_tx_alloc_fifo()
107 iov[1].iov_len = overflow; in gve_tx_alloc_fifo()
398 u64 iov_offset, u64 iov_len) in gve_dma_sync_for_device() argument
400 u64 last_page = (iov_offset + iov_len - 1) / PAGE_SIZE; in gve_dma_sync_for_device()
456 info->iov[hdr_nfrags - 1].iov_len); in gve_tx_add_skb()
464 info->iov[i].iov_len, in gve_tx_add_skb()
469 info->iov[i].iov_len); in gve_tx_add_skb()
472 info->iov[i].iov_len); in gve_tx_add_skb()
473 copy_offset += info->iov[i].iov_len; in gve_tx_add_skb()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dtls.c331 vec.iov_len = send_len; in TEST_F()
353 vec[i].iov_len = SEND_LEN; in TEST_F()
404 int iov_len = 5; in TEST_F() local
409 for (i = 0; i < iov_len; i++) { in TEST_F()
413 vec[i].iov_len = strlen(test_strs[i]) + 1; in TEST_F()
414 total_len += vec[i].iov_len; in TEST_F()
417 msg.msg_iovlen = iov_len; in TEST_F()
422 for (i = 0; i < iov_len; i++) { in TEST_F()
428 for (i = 0; i < iov_len; i++) in TEST_F()
438 int iov_len = 1024; in TEST_F() local
[all …]
/kernel/liteos_m/components/net/test/
Dnet_socket_test_003.c99 iov[0].iov_len = strlen(SRV_MSG); in SampleTcpServer()
101 iov[1].iov_len = strlen(SRV_MSG); in SampleTcpServer()
114 iov[0].iov_len = sizeof(g_buf); in SampleTcpServer()
198 iov[0].iov_len = strlen(CLI_MSG); in SampleTcpClient()
200 iov[1].iov_len = strlen(CLI_MSG); in SampleTcpClient()
213 iov[0].iov_len = sizeof(g_buf); in SampleTcpClient()
/kernel/linux/linux-5.10/net/sunrpc/xprtrdma/
Drpc_rdma.c178 return (buf->head[0].iov_len + buf->tail[0].iov_len) < in rpcrdma_nonpayload_inline()
223 remaining = vec->iov_len; in rpcrdma_convert_kvec()
285 if (xdrbuf->tail[0].iov_len) in rpcrdma_convert_iovs()
376 pos = rqst->rq_snd_buf.head[0].iov_len; in rpcrdma_encode_read_list()
435 rqst->rq_rcv_buf.head[0].iov_len, in rpcrdma_encode_write_list()
685 dst += xdr->head[0].iov_len + xdr->page_len; in rpcrdma_pullup_tail_iov()
686 memmove(dst, xdr->tail[0].iov_base, xdr->tail[0].iov_len); in rpcrdma_pullup_tail_iov()
687 r_xprt->rx_stats.pullup_copy_count += xdr->tail[0].iov_len; in rpcrdma_pullup_tail_iov()
701 dst += xdr->head[0].iov_len; in rpcrdma_pullup_pagelist()
732 if (unlikely(xdr->tail[0].iov_len)) in rpcrdma_prepare_noch_pullup()
[all …]
/kernel/linux/linux-5.10/drivers/usb/usbip/
Dvhci_tx.c100 iov[iovnum].iov_len = sizeof(pdu_header); in vhci_send_cmd_submit()
110 iov[iovnum].iov_len = sg->length; in vhci_send_cmd_submit()
115 iov[iovnum].iov_len = in vhci_send_cmd_submit()
134 iov[iovnum].iov_len = len; in vhci_send_cmd_submit()
216 iov.iov_len = sizeof(pdu_header); in vhci_send_cmd_unlink()
Dstub_tx.c218 iov[iovnum].iov_len = sizeof(pdu_header); in stub_send_ret_submit()
232 iov[iovnum].iov_len = in stub_send_ret_submit()
254 iov[iovnum].iov_len = size; in stub_send_ret_submit()
261 iov[iovnum].iov_len = urb->actual_length; in stub_send_ret_submit()
280 iov[iovnum].iov_len = in stub_send_ret_submit()
311 iov[iovnum].iov_len = len; in stub_send_ret_submit()
388 iov[0].iov_len = sizeof(pdu_header); in stub_send_ret_unlink()

12345678910