Home
last modified time | relevance | path

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

12

/fs/nfsd/
Dnfscache.c265 len = resv->iov_len - ((char*)statp - (char*)resv->iov_base); in nfsd_cache_update()
289 cachv->iov_len = len << 2; in nfsd_cache_update()
313 if (vec->iov_len + data->iov_len > PAGE_SIZE) { in nfsd_cache_append()
315 data->iov_len); in nfsd_cache_append()
318 memcpy((char*)vec->iov_base + vec->iov_len, data->iov_base, data->iov_len); in nfsd_cache_append()
319 vec->iov_len += data->iov_len; in nfsd_cache_append()
Dnfsxdr.c277 rqstp->rq_vec[v].iov_len = len < PAGE_SIZE?len:PAGE_SIZE; in nfssvc_decode_readargs()
278 len -= rqstp->rq_vec[v].iov_len; in nfssvc_decode_readargs()
310 dlen = rqstp->rq_arg.head[0].iov_len + rqstp->rq_arg.page_len in nfssvc_decode_writeargs()
325 rqstp->rq_vec[0].iov_len = rqstp->rq_arg.head[0].iov_len - hdr; in nfssvc_decode_writeargs()
327 while (len > rqstp->rq_vec[v].iov_len) { in nfssvc_decode_writeargs()
328 len -= rqstp->rq_vec[v].iov_len; in nfssvc_decode_writeargs()
331 rqstp->rq_vec[v].iov_len = PAGE_SIZE; in nfssvc_decode_writeargs()
333 rqstp->rq_vec[v].iov_len = len; in nfssvc_decode_writeargs()
451 rqstp->rq_res.tail[0].iov_len = 4 - (resp->len&3); in nfssvc_encode_readlinkres()
470 rqstp->rq_res.tail[0].iov_len = 4 - (resp->count&3); in nfssvc_encode_readres()
Dnfs3xdr.c353 rqstp->rq_vec[v].iov_len = len < PAGE_SIZE? len : PAGE_SIZE; in nfs3svc_decode_readargs()
354 len -= rqstp->rq_vec[v].iov_len; in nfs3svc_decode_readargs()
386 dlen = rqstp->rq_arg.head[0].iov_len + rqstp->rq_arg.page_len in nfs3svc_decode_writeargs()
404 rqstp->rq_vec[0].iov_len = rqstp->rq_arg.head[0].iov_len - hdr; in nfs3svc_decode_writeargs()
406 while (len > rqstp->rq_vec[v].iov_len) { in nfs3svc_decode_writeargs()
407 len -= rqstp->rq_vec[v].iov_len; in nfs3svc_decode_writeargs()
410 rqstp->rq_vec[v].iov_len = PAGE_SIZE; in nfs3svc_decode_writeargs()
412 rqstp->rq_vec[v].iov_len = len; in nfs3svc_decode_writeargs()
480 avail = vec->iov_len - (old - (char*)vec->iov_base); in nfs3svc_decode_symlinkargs()
697 rqstp->rq_res.tail[0].iov_len = 4 - (resp->len&3); in nfs3svc_encode_readlinkres()
[all …]
Dnfs4xdr.c961 argp->rqstp->rq_vec[0].iov_len = avail; in nfsd4_decode_write()
964 while (len > argp->rqstp->rq_vec[v].iov_len) { in nfsd4_decode_write()
965 len -= argp->rqstp->rq_vec[v].iov_len; in nfsd4_decode_write()
970 argp->rqstp->rq_vec[v].iov_len = PAGE_SIZE; in nfsd4_decode_write()
973 argp->rqstp->rq_vec[v].iov_len = argp->pagelen; in nfsd4_decode_write()
977 argp->end = (__be32*) (argp->rqstp->rq_vec[v].iov_base + argp->rqstp->rq_vec[v].iov_len); in nfsd4_decode_write()
979 argp->rqstp->rq_vec[v].iov_len = len; in nfsd4_decode_write()
2256 resp->rqstp->rq_vec[v].iov_len = in nfsd4_encode_read()
2277 resp->xbuf->head[0].iov_len = (char*)p in nfsd4_encode_read()
2283 resp->xbuf->tail[0].iov_len = 0; in nfsd4_encode_read()
[all …]
Dnfssvc.c543 + rqstp->rq_res.head[0].iov_len; in nfsd_dispatch()
544 rqstp->rq_res.head[0].iov_len += sizeof(__be32); in nfsd_dispatch()
/fs/jffs2/
Dwritev.c27 if (!vecs[i].iov_len) in mtd_fake_writev()
29 ret = mtd->write(mtd, to, vecs[i].iov_len, &thislen, vecs[i].iov_base); in mtd_fake_writev()
31 if (ret || thislen != vecs[i].iov_len) in mtd_fake_writev()
33 to += vecs[i].iov_len; in mtd_fake_writev()
71 vecs[0].iov_len = len; in jffs2_flash_direct_write()
Dwrite.c77 vecs[0].iov_len = sizeof(*ri); in jffs2_write_dnode()
79 vecs[1].iov_len = datalen; in jffs2_write_dnode()
95 jffs2_dbg_prewrite_paranoia_check(c, flash_ofs, vecs[0].iov_len + vecs[1].iov_len); in jffs2_write_dnode()
231 vecs[0].iov_len = sizeof(*rd); in jffs2_write_dirent()
233 vecs[1].iov_len = namelen; in jffs2_write_dirent()
249 jffs2_dbg_prewrite_paranoia_check(c, flash_ofs, vecs[0].iov_len + vecs[1].iov_len); in jffs2_write_dirent()
/fs/smbfs/
Dsock.c168 while (iv->iov_len <= amount) { in smb_move_iov()
169 amount -= iv->iov_len; in smb_move_iov()
177 vec[0].iov_len = iv->iov_len-amount; in smb_move_iov()
181 len = vec[0].iov_len; in smb_move_iov()
188 len += vec[i].iov_len; in smb_move_iov()
281 iov.iov_len = PAGE_SIZE; in smb_receive_drop()
Drequest.c159 req->rq_iov[0].iov_len = req->rq_rlen; in smb_setup_bcc()
253 req->rq_iov[0].iov_len = oparam; in smb_setup_trans2request()
255 req->rq_iov[1].iov_len = req->rq_lparm; in smb_setup_trans2request()
261 req->rq_iov[2].iov_len = odata - oparam - req->rq_lparm; in smb_setup_trans2request()
263 req->rq_iov[3].iov_len = req->rq_ldata; in smb_setup_trans2request()
494 req->rq_iov[0].iov_len = hdrlen; in smb_init_request()
Dproc.c1039 req->rq_iov[0].iov_len = xmit_len - bcc; in smb_setup_header()
1058 req->rq_iov[1].iov_len = bcc; in smb_setup_bcc()
1314 req->rq_iov[0].iov_len = 3; in smb_proc_read_data()
1317 req->rq_iov[1].iov_len = req->rq_rsize; in smb_proc_read_data()
1397 req->rq_iov[1].iov_len = 3; in smb_proc_write()
1399 req->rq_iov[2].iov_len = count; in smb_proc_write()
1437 req->rq_iov[0].iov_len = data_off; in smb_proc_readX_data()
1440 req->rq_iov[1].iov_len = req->rq_rsize; in smb_proc_readX_data()
1522 req->rq_iov[1].iov_len = 1; in smb_proc_writeX()
1524 req->rq_iov[2].iov_len = count; in smb_proc_writeX()
/fs/cifs/
Dsess.c472 iov[0].iov_len = smb_buf->smb_buf_length + 4; in CIFS_SessSetup()
489 iov[1].iov_len = 0; in CIFS_SessSetup()
545 if (iov[0].iov_len % 2) { in CIFS_SessSetup()
589 if (iov[0].iov_len % 2) { in CIFS_SessSetup()
633 iov[1].iov_len = msg->secblob_len; in CIFS_SessSetup()
634 pSMB->req.SecurityBlobLength = cpu_to_le16(iov[1].iov_len); in CIFS_SessSetup()
638 if ((iov[0].iov_len + iov[1].iov_len) % 2) { in CIFS_SessSetup()
659 iov[2].iov_len = (long) bcc_ptr - (long) str_area; in CIFS_SessSetup()
661 count = iov[1].iov_len + iov[2].iov_len; in CIFS_SessSetup()
Dtransport.c164 unsigned int len = iov[0].iov_len; in smb_sendv()
190 total_len += iov[i].iov_len; in smb_sendv()
250 if (iov[i].iov_len) { in smb_sendv()
251 if (rc > iov[i].iov_len) { in smb_sendv()
252 rc -= iov[i].iov_len; in smb_sendv()
253 iov[i].iov_len = 0; in smb_sendv()
256 iov[i].iov_len -= rc; in smb_sendv()
294 iov.iov_len = smb_buf_length + 4; in smb_send()
429 iov[0].iov_len = in_buf->smb_buf_length + 4; in SendReceiveNoRsp()
590 iov[0].iov_len = receive_len + 4; in SendReceive2()
Dcifsencrypt.c102 if (iov[i].iov_len == 0) in cifs_calc_signature2()
111 if (iov[0].iov_len <= 8) /* cmd field at offset 9 */ in cifs_calc_signature2()
114 iov[0].iov_len-4); in cifs_calc_signature2()
116 cifs_MD5_update(&context, iov[i].iov_base, iov[i].iov_len); in cifs_calc_signature2()
/fs/nfs/
Dnfs2xdr.c276 if (iov->iov_len < hdrlen) { in nfs_xdr_readres()
278 "length %Zu > %Zu\n", hdrlen, iov->iov_len); in nfs_xdr_readres()
280 } else if (iov->iov_len != hdrlen) { in nfs_xdr_readres()
282 xdr_shift_buf(&req->rq_rcv_buf, iov->iov_len - hdrlen); in nfs_xdr_readres()
385 pad = sndbuf->tail->iov_len; in nfs_xdr_symlinkargs()
438 if (iov->iov_len < hdrlen) { in nfs_xdr_readdirres()
440 "length %Zu > %Zu\n", hdrlen, iov->iov_len); in nfs_xdr_readdirres()
442 } else if (iov->iov_len != hdrlen) { in nfs_xdr_readdirres()
444 xdr_shift_buf(rcvbuf, iov->iov_len - hdrlen); in nfs_xdr_readdirres()
615 if (iov->iov_len < hdrlen) { in nfs_xdr_readlinkres()
[all …]
Dnfs3xdr.c530 if (iov->iov_len < hdrlen) { in nfs3_xdr_readdirres()
532 "length %Zu > %Zu\n", hdrlen, iov->iov_len); in nfs3_xdr_readdirres()
534 } else if (iov->iov_len != hdrlen) { in nfs3_xdr_readdirres()
536 xdr_shift_buf(rcvbuf, iov->iov_len - hdrlen); in nfs3_xdr_readdirres()
848 if (iov->iov_len < hdrlen) { in nfs3_xdr_readlinkres()
850 "length %Zu > %Zu\n", hdrlen, iov->iov_len); in nfs3_xdr_readlinkres()
852 } else if (iov->iov_len != hdrlen) { in nfs3_xdr_readlinkres()
855 xdr_shift_buf(rcvbuf, iov->iov_len - hdrlen); in nfs3_xdr_readlinkres()
901 if (iov->iov_len < hdrlen) { in nfs3_xdr_readres()
903 "length %Zu > %Zu\n", hdrlen, iov->iov_len); in nfs3_xdr_readres()
[all …]
Ddirect.c280 size_t count = iov->iov_len; in nfs_direct_read_schedule_segment()
395 if ((size_t)result < vec->iov_len) in nfs_direct_read_schedule_iovec()
397 pos += vec->iov_len; in nfs_direct_read_schedule_iovec()
694 size_t count = iov->iov_len; in nfs_direct_write_schedule_segment()
814 if ((size_t)result < vec->iov_len) in nfs_direct_write_schedule_iovec()
816 pos += vec->iov_len; in nfs_direct_write_schedule_iovec()
/fs/ncpfs/
Dsock.c52 vec.iov_len = len; in _send()
244 while (iov->iov_len <= result) { in __ncptcp_try_send()
245 result -= iov->iov_len; in __ncptcp_try_send()
250 iov->iov_len -= result; in __ncptcp_try_send()
272 req->tx_iov[1].iov_len - sizeof(struct ncp_request_header) + 1, in ncpdgram_start_request()
276 req->tx_ciov[1].iov_len = signlen; in ncpdgram_start_request()
300 req->tx_iov[1].iov_len - sizeof(struct ncp_request_header) + 1, in ncptcp_start_request()
308 req->tx_iov[0].iov_len = signlen; in ncptcp_start_request()
320 memcpy(server->txbuf, req->tx_iov[1].iov_base, req->tx_iov[1].iov_len); in __ncp_start_request()
372 iov[0].iov_len = 8; in info_server()
[all …]
/fs/
Dpipe.c65 while (!iov->iov_len) in pipe_iov_copy_from_user()
67 copy = min_t(unsigned long, len, iov->iov_len); in pipe_iov_copy_from_user()
79 iov->iov_len -= copy; in pipe_iov_copy_from_user()
91 while (!iov->iov_len) in pipe_iov_copy_to_user()
93 copy = min_t(unsigned long, len, iov->iov_len); in pipe_iov_copy_to_user()
105 iov->iov_len -= copy; in pipe_iov_copy_to_user()
116 while (!iov->iov_len) in iov_fault_in_pages_write()
122 this_len = min_t(unsigned long, len, iov->iov_len); in iov_fault_in_pages_write()
138 while (!iov->iov_len) in iov_fault_in_pages_read()
144 this_len = min_t(unsigned long, len, iov->iov_len); in iov_fault_in_pages_read()
Dread_write.c254 struct iovec iov = { .iov_base = buf, .iov_len = len }; in do_sync_read()
309 struct iovec iov = { .iov_base = (void __user *)buf, .iov_len = len }; in do_sync_write()
475 if (len + iov->iov_len >= to) { in iov_shorten()
476 iov->iov_len = to - len; in iov_shorten()
479 len += iov->iov_len; in iov_shorten()
523 len = vector->iov_len; in do_loop_readv_writev()
593 ssize_t len = (ssize_t)iov[seg].iov_len; in rw_copy_check_uvector()
Dbio.c716 iov[iov_idx].iov_len - iov_off, bv_len); in __bio_copy_iov()
736 if (iov[iov_idx].iov_len == iov_off) { in __bio_copy_iov()
802 end = (uaddr + iov[i].iov_len + PAGE_SIZE - 1) >> PAGE_SHIFT; in bio_copy_user_iov()
806 len += iov[i].iov_len; in bio_copy_user_iov()
904 iov.iov_len = len; in bio_copy_user()
923 unsigned long len = iov[i].iov_len; in __bio_map_user_iov()
949 unsigned long len = iov[i].iov_len; in __bio_map_user_iov()
1034 iov.iov_len = len; in bio_map_user()
Ddirect-io.c973 ((user_addr+iov[seg].iov_len +PAGE_SIZE-1)/PAGE_SIZE in direct_io_worker()
979 dio->size += bytes = iov[seg].iov_len; in direct_io_worker()
1000 dio->result += iov[seg].iov_len - in direct_io_worker()
1145 size = iov[seg].iov_len; in __blockdev_direct_IO()
/fs/dlm/
Dlowcomms.c569 iov[0].iov_len = con->cb.base - cbuf_data(&con->cb); in receive_from_sock()
571 iov[1].iov_len = 0; in receive_from_sock()
579 iov[0].iov_len = PAGE_CACHE_SIZE - cbuf_data(&con->cb); in receive_from_sock()
580 iov[1].iov_len = con->cb.base; in receive_from_sock()
584 len = iov[0].iov_len + iov[1].iov_len; in receive_from_sock()
830 iov[0].iov_len = len; in sctp_init_assoc()
/fs/afs/
Drxrpc.c273 iov->iov_len = to - offset; in afs_send_pages()
350 iov[0].iov_len = call->request_size; in afs_make_call()
761 iov[0].iov_len = 0; in afs_send_empty_reply()
801 iov[0].iov_len = len; in afs_send_simple_reply()
/fs/ocfs2/dlm/
Ddlmast.c445 vec[0].iov_len = sizeof(struct dlm_proxy_ast); in dlm_send_proxy_ast_msg()
450 vec[1].iov_len = DLM_LVB_LEN; in dlm_send_proxy_ast_msg()
Ddlmconvert.c368 vec[0].iov_len = sizeof(struct dlm_convert_lock); in dlm_send_remote_convert_request()
373 vec[1].iov_len = DLM_LVB_LEN; in dlm_send_remote_convert_request()

12