Home
last modified time | relevance | path

Searched refs:iov (Results 1 – 25 of 28) sorted by relevance

12

/fs/cifs/
Dsmb2pdu.c400 struct kvec iov[1]; in SMB2_negotiate() local
445 iov[0].iov_base = (char *)req; in SMB2_negotiate()
447 iov[0].iov_len = get_rfc1002_length(req) + 4; in SMB2_negotiate()
449 rc = SendReceive2(xid, ses, iov, 1, &resp_buftype, flags); in SMB2_negotiate()
451 rsp = (struct smb2_negotiate_rsp *)iov[0].iov_base; in SMB2_negotiate()
625 struct kvec iov[2]; member
660 sess_data->iov[0].iov_base = (char *)req; in SMB2_sess_alloc_buffer()
662 sess_data->iov[0].iov_len = get_rfc1002_length(req) + 4 - 1; in SMB2_sess_alloc_buffer()
675 free_rsp_buf(sess_data->buf0_type, sess_data->iov[0].iov_base); in SMB2_sess_free_buffer()
683 struct smb2_sess_setup_req *req = sess_data->iov[0].iov_base; in SMB2_sess_sendreceive()
[all …]
Dsess.c565 struct kvec iov[3]; member
581 sess_data->iov[0].iov_base = (char *)smb_buf; in sess_alloc_buffer()
582 sess_data->iov[0].iov_len = be32_to_cpu(smb_buf->smb_buf_length) + 4; in sess_alloc_buffer()
590 sess_data->iov[2].iov_base = kmalloc(2000, GFP_KERNEL); in sess_alloc_buffer()
591 if (!sess_data->iov[2].iov_base) { in sess_alloc_buffer()
600 sess_data->iov[0].iov_base = NULL; in sess_alloc_buffer()
601 sess_data->iov[0].iov_len = 0; in sess_alloc_buffer()
610 free_rsp_buf(sess_data->buf0_type, sess_data->iov[0].iov_base); in sess_free_buffer()
612 kfree(sess_data->iov[2].iov_base); in sess_free_buffer()
651 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base; in sess_sendreceive()
[all …]
Dtransport.c206 struct kvec *iov = rqst->rq_iov; in rqst_len() local
211 buflen += iov[i].iov_len; in rqst_len()
226 struct kvec *iov = rqst->rq_iov; in smb_send_rqst() local
228 unsigned int smb_buf_length = get_rfc1002_length(iov[0].iov_base); in smb_send_rqst()
248 dump_smb(iov[0].iov_base, iov[0].iov_len); in smb_send_rqst()
256 size += iov[i].iov_len; in smb_send_rqst()
258 iov_iter_kvec(&smb_msg.msg_iter, WRITE | ITER_KVEC, iov, n_vec, size); in smb_send_rqst()
311 smb_sendv(struct TCP_Server_Info *server, struct kvec *iov, int n_vec) in smb_sendv() argument
313 struct smb_rqst rqst = { .rq_iov = iov, in smb_sendv()
323 struct kvec iov; in smb_send() local
[all …]
Dcifsencrypt.c75 struct kvec *iov = rqst->rq_iov; in __cifs_calc_signature() local
79 if (iov[i].iov_len == 0) in __cifs_calc_signature()
81 if (iov[i].iov_base == NULL) { in __cifs_calc_signature()
88 if (iov[0].iov_len <= 8) /* cmd field at offset 9 */ in __cifs_calc_signature()
91 iov[i].iov_base + 4, iov[i].iov_len - 4); in __cifs_calc_signature()
94 iov[i].iov_base, iov[i].iov_len); in __cifs_calc_signature()
199 int cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *server, in cifs_sign_smbv() argument
202 struct smb_rqst rqst = { .rq_iov = iov, in cifs_sign_smbv()
212 struct kvec iov; in cifs_sign_smb() local
214 iov.iov_base = cifs_pdu; in cifs_sign_smb()
[all …]
Dsmb2transport.c187 struct kvec *iov = rqst->rq_iov; in smb2_calc_signature() local
188 struct smb2_hdr *smb2_pdu = (struct smb2_hdr *)iov[0].iov_base; in smb2_calc_signature()
404 struct kvec *iov = rqst->rq_iov; in smb3_calc_signature() local
405 struct smb2_hdr *smb2_pdu = (struct smb2_hdr *)iov[0].iov_base; in smb3_calc_signature()
600 struct kvec iov; in smb2_check_receive() local
601 struct smb_rqst rqst = { .rq_iov = &iov, in smb2_check_receive()
604 iov.iov_base = (char *)mid->resp_buf; in smb2_check_receive()
605 iov.iov_len = get_rfc1002_length(mid->resp_buf) + 4; in smb2_check_receive()
Dcifssmb.c710 struct kvec iov; in CIFSSMBEcho() local
711 struct smb_rqst rqst = { .rq_iov = &iov, in CIFSSMBEcho()
730 iov.iov_base = smb; in CIFSSMBEcho()
731 iov.iov_len = be32_to_cpu(smb->hdr.smb_buf_length) + 4; in CIFSSMBEcho()
1522 rdata->iov.iov_base = buf; in cifs_readv_receive()
1523 rdata->iov.iov_len = server->total_read; in cifs_readv_receive()
1525 rdata->iov.iov_base, rdata->iov.iov_len); in cifs_readv_receive()
1560 struct smb_rqst rqst = { .rq_iov = &rdata->iov, in cifs_readv_callback()
1616 struct smb_rqst rqst = { .rq_iov = &rdata->iov, in cifs_async_readv()
1657 rdata->iov.iov_base = smb; in cifs_async_readv()
[all …]
Dlink.c485 struct kvec iov[2]; in smb3_create_mf_symlink() local
519 iov[1].iov_base = pbuf; in smb3_create_mf_symlink()
520 iov[1].iov_len = CIFS_MF_SYMLINK_FILE_SIZE; in smb3_create_mf_symlink()
522 rc = SMB2_write(xid, &io_parms, pbytes_written, iov, 1); in smb3_create_mf_symlink()
Ddir.c627 struct kvec iov[2]; in cifs_mknod() local
721 iov[1].iov_base = buf; in cifs_mknod()
722 iov[1].iov_len = sizeof(struct win_dev); in cifs_mknod()
728 &bytes_written, iov, 1); in cifs_mknod()
734 &bytes_written, iov, 1); in cifs_mknod()
Dcifsproto.h402 unsigned int *nbytes, struct kvec *iov, const int nvec);
433 extern int cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *,
Dsmb2proto.h141 unsigned int *nbytes, struct kvec *iov, int n_vec);
Dsmb1ops.c757 struct kvec *iov, unsigned long nr_segs) in cifs_sync_write() argument
761 return CIFSSMBWrite2(xid, parms, written, iov, nr_segs); in cifs_sync_write()
Dfile.c1732 struct kvec iov[2]; in cifs_write() local
1748 iov[1].iov_base = (char *)write_data + total_written; in cifs_write()
1749 iov[1].iov_len = len; in cifs_write()
1755 &io_parms, &bytes_written, iov, 1); in cifs_write()
Dsmb2ops.c747 struct kvec *iov, unsigned long nr_segs) in smb2_sync_write() argument
752 return SMB2_write(xid, parms, written, iov, nr_segs); in smb2_sync_write()
Dcifsglob.h1120 struct kvec iov; member
Dconnect.c573 struct kvec iov = {.iov_base = buf, .iov_len = to_read}; in cifs_read_from_socket() local
574 iov_iter_kvec(&smb_msg.msg_iter, READ | ITER_KVEC, &iov, 1, to_read); in cifs_read_from_socket()
/fs/ncpfs/
Dsock.c39 struct kvec iov = {buf, size}; in _recv() local
40 return kernel_recvmsg(sock, &msg, &iov, 1, size, flags); in _recv()
218 struct kvec *iov; in __ncptcp_try_send() local
227 memcpy(iovc, rq->tx_ciov, rq->tx_iovlen * sizeof(iov[0])); in __ncptcp_try_send()
245 iov = rq->tx_ciov; in __ncptcp_try_send()
246 while (iov->iov_len <= result) { in __ncptcp_try_send()
247 result -= iov->iov_len; in __ncptcp_try_send()
248 iov++; in __ncptcp_try_send()
251 iov->iov_base += result; in __ncptcp_try_send()
252 iov->iov_len -= result; in __ncptcp_try_send()
[all …]
/fs/afs/
Drxrpc.c253 struct kvec *iov) in afs_send_pages() argument
282 iov->iov_base = kmap(pages[loop]) + offset; in afs_send_pages()
283 iov->iov_len = to - offset; in afs_send_pages()
289 iov, 1, to - offset); in afs_send_pages()
323 struct kvec iov[1]; in afs_make_call() local
362 iov[0].iov_base = call->request; in afs_make_call()
363 iov[0].iov_len = call->request_size; in afs_make_call()
367 iov_iter_kvec(&msg.msg_iter, WRITE | ITER_KVEC, iov, 1, in afs_make_call()
386 ret = afs_send_pages(call, &msg, iov); in afs_make_call()
748 struct kvec iov[1]; in afs_send_simple_reply() local
[all …]
/fs/
Dread_write.c430 struct iovec iov = { .iov_base = buf, .iov_len = len }; in new_sync_read() local
437 iov_iter_init(&iter, READ, &iov, 1, len); in new_sync_read()
487 struct iovec iov = { .iov_base = (void __user *)buf, .iov_len = len }; in new_sync_write() local
494 iov_iter_init(&iter, WRITE, &iov, 1, len); in new_sync_write()
656 unsigned long iov_shorten(struct iovec *iov, unsigned long nr_segs, size_t to) in iov_shorten() argument
663 if (len + iov->iov_len >= to) { in iov_shorten()
664 iov->iov_len = to - len; in iov_shorten()
667 len += iov->iov_len; in iov_shorten()
668 iov++; in iov_shorten()
775 struct iovec *iov = fast_pointer; in rw_copy_check_uvector() local
[all …]
Dsplice.c1271 struct iovec *iov = iovstack; in vmsplice_to_user() local
1279 ARRAY_SIZE(iovstack), &iov, &iter); in vmsplice_to_user()
1295 kfree(iov); in vmsplice_to_user()
1309 struct iovec *iov = iovstack; in vmsplice_to_pipe() local
1322 ARRAY_SIZE(iovstack), &iov, &from); in vmsplice_to_pipe()
1333 kfree(iov); in vmsplice_to_pipe()
1353 SYSCALL_DEFINE4(vmsplice, int, fd, const struct iovec __user *, iov, in SYSCALL_DEFINE4() argument
1368 error = vmsplice_to_pipe(f.file, iov, nr_segs, flags); in SYSCALL_DEFINE4()
1370 error = vmsplice_to_user(f.file, iov, nr_segs, flags); in SYSCALL_DEFINE4()
1383 struct iovec __user *iov; in COMPAT_SYSCALL_DEFINE4() local
[all …]
Dcompat.c538 struct iovec *iov = *ret_pointer = fast_pointer; in compat_rw_copy_check_uvector() local
555 iov = kmalloc(nr_segs*sizeof(struct iovec), GFP_KERNEL); in compat_rw_copy_check_uvector()
556 if (iov == NULL) in compat_rw_copy_check_uvector()
559 *ret_pointer = iov; in compat_rw_copy_check_uvector()
594 iov->iov_base = compat_ptr(buf); in compat_rw_copy_check_uvector()
595 iov->iov_len = (compat_size_t) len; in compat_rw_copy_check_uvector()
597 iov++; in compat_rw_copy_check_uvector()
Dcompat_ioctl.c282 sg_iovec_t __user *iov = (sg_iovec_t __user *) (sgio + 1); in sg_build_iovec() local
291 put_user(compat_ptr(base), &iov[i].iov_base) || in sg_build_iovec()
292 put_user(len, &iov[i].iov_len)) in sg_build_iovec()
296 if (put_user(iov, &sgio->dxferp)) in sg_build_iovec()
/fs/dlm/
Dlowcomms.c618 struct kvec iov[2]; in receive_from_sock() local
650 iov[0].iov_len = con->cb.base - cbuf_data(&con->cb); in receive_from_sock()
651 iov[0].iov_base = page_address(con->rx_page) + cbuf_data(&con->cb); in receive_from_sock()
652 iov[1].iov_len = 0; in receive_from_sock()
660 iov[0].iov_len = PAGE_SIZE - cbuf_data(&con->cb); in receive_from_sock()
661 iov[1].iov_len = con->cb.base; in receive_from_sock()
662 iov[1].iov_base = page_address(con->rx_page); in receive_from_sock()
665 len = iov[0].iov_len + iov[1].iov_len; in receive_from_sock()
667 r = ret = kernel_recvmsg(con->sock, &msg, iov, nvec, len, in receive_from_sock()
/fs/ceph/
Dfile.c43 const struct iovec *iov = it->iov; in dio_get_pagev_size() local
44 const struct iovec *iovend = iov + it->nr_segs; in dio_get_pagev_size()
47 size = iov->iov_len - it->iov_offset; in dio_get_pagev_size()
52 while (PAGE_ALIGNED((iov->iov_base + iov->iov_len)) && in dio_get_pagev_size()
53 (++iov < iovend && PAGE_ALIGNED((iov->iov_base)))) { in dio_get_pagev_size()
54 size += iov->iov_len; in dio_get_pagev_size()
74 align = (unsigned long)(it->iov->iov_base + it->iov_offset) & in dio_get_pages_alloc()
/fs/fuse/
Dfile.c1251 return (unsigned long)ii->iov->iov_base + ii->iov_offset; in fuse_get_user_addr()
2375 static int fuse_verify_ioctl_iov(struct iovec *iov, size_t count) in fuse_verify_ioctl_iov() argument
2380 for (n = 0; n < count; n++, iov++) { in fuse_verify_ioctl_iov()
2381 if (iov->iov_len > (size_t) max) in fuse_verify_ioctl_iov()
2383 max -= iov->iov_len; in fuse_verify_ioctl_iov()
2512 struct iovec *iov = iov_page; in fuse_do_ioctl() local
2514 iov->iov_base = (void __user *)arg; in fuse_do_ioctl()
2515 iov->iov_len = _IOC_SIZE(cmd); in fuse_do_ioctl()
2518 in_iov = iov; in fuse_do_ioctl()
2523 out_iov = iov; in fuse_do_ioctl()
/fs/orangefs/
Dorangefs-kernel.h277 struct iovec *iov; member

12