Home
last modified time | relevance | path

Searched refs:vec (Results 1 – 14 of 14) sorted by relevance

/fs/smbfs/
Dsock.c159 smb_move_iov(struct kvec **data, size_t *num, struct kvec *vec, unsigned amount) in smb_move_iov() argument
177 vec[0].iov_len = iv->iov_len-amount; in smb_move_iov()
178 vec[0].iov_base =((unsigned char *)iv->iov_base)+amount; in smb_move_iov()
181 len = vec[0].iov_len; in smb_move_iov()
187 vec[i] = *iv++; in smb_move_iov()
188 len += vec[i].iov_len; in smb_move_iov()
191 *data = vec; in smb_move_iov()
/fs/nfsd/
Dnfscache.c38 static int nfsd_cache_append(struct svc_rqst *rqstp, struct kvec *vec);
311 struct kvec *vec = &rqstp->rq_res.head[0]; in nfsd_cache_append() local
313 if (vec->iov_len + data->iov_len > PAGE_SIZE) { 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()
Dvfs.c892 loff_t offset, struct kvec *vec, int vlen, unsigned long *count) in nfsd_vfs_read() argument
925 host_err = vfs_readv(file, (struct iovec __user *)vec, vlen, &offset); in nfsd_vfs_read()
962 loff_t offset, struct kvec *vec, int vlen, in nfsd_vfs_write() argument
1006 host_err = vfs_writev(file, (struct iovec __user *)vec, vlen, &offset); in nfsd_vfs_write()
1069 loff_t offset, struct kvec *vec, int vlen, in nfsd_read() argument
1079 err = nfsd_vfs_read(rqstp, fhp, file, offset, vec, vlen, count); in nfsd_read()
1084 err = nfsd_vfs_read(rqstp, fhp, file, offset, vec, vlen, count); in nfsd_read()
1098 loff_t offset, struct kvec *vec, int vlen, unsigned long cnt, in nfsd_write() argument
1108 err = nfsd_vfs_write(rqstp, fhp, file, offset, vec, vlen, cnt, in nfsd_write()
1116 err = nfsd_vfs_write(rqstp, fhp, file, offset, vec, vlen, in nfsd_write()
Dnfs3xdr.c458 struct kvec *vec; in nfs3svc_decode_symlinkargs() local
479 vec = &rqstp->rq_arg.head[0]; in nfs3svc_decode_symlinkargs()
480 avail = vec->iov_len - (old - (char*)vec->iov_base); in nfs3svc_decode_symlinkargs()
/fs/ocfs2/dlm/
Ddlmast.c429 struct kvec vec[2]; in dlm_send_proxy_ast_msg() local
445 vec[0].iov_len = sizeof(struct dlm_proxy_ast); in dlm_send_proxy_ast_msg()
446 vec[0].iov_base = &past; in dlm_send_proxy_ast_msg()
450 vec[1].iov_len = DLM_LVB_LEN; in dlm_send_proxy_ast_msg()
451 vec[1].iov_base = lock->lksb->lvb; in dlm_send_proxy_ast_msg()
455 ret = o2net_send_message_vec(DLM_PROXY_AST_MSG, dlm->key, vec, veclen, in dlm_send_proxy_ast_msg()
Ddlmconvert.c355 struct kvec vec[2]; in dlm_send_remote_convert_request() local
368 vec[0].iov_len = sizeof(struct dlm_convert_lock); in dlm_send_remote_convert_request()
369 vec[0].iov_base = &convert; in dlm_send_remote_convert_request()
373 vec[1].iov_len = DLM_LVB_LEN; in dlm_send_remote_convert_request()
374 vec[1].iov_base = lock->lksb->lvb; in dlm_send_remote_convert_request()
379 vec, veclen, res->owner, &status); in dlm_send_remote_convert_request()
Ddlmunlock.c319 struct kvec vec[2]; in dlm_send_remote_unlock_request() local
341 vec[0].iov_len = sizeof(struct dlm_unlock_lock); in dlm_send_remote_unlock_request()
342 vec[0].iov_base = &unlock; in dlm_send_remote_unlock_request()
346 vec[1].iov_len = DLM_LVB_LEN; in dlm_send_remote_unlock_request()
347 vec[1].iov_base = lock->lksb->lvb; in dlm_send_remote_unlock_request()
352 vec, veclen, owner, &status); in dlm_send_remote_unlock_request()
Ddlmdomain.c82 static void dlm_free_pagevec(void **vec, int pages) in dlm_free_pagevec() argument
85 free_page((unsigned long)vec[pages]); in dlm_free_pagevec()
86 kfree(vec); in dlm_free_pagevec()
91 void **vec = kmalloc(pages * sizeof(void *), GFP_KERNEL); in dlm_alloc_pagevec() local
94 if (!vec) in dlm_alloc_pagevec()
98 if (!(vec[i] = (void *)__get_free_page(GFP_KERNEL))) in dlm_alloc_pagevec()
104 return vec; in dlm_alloc_pagevec()
106 dlm_free_pagevec(vec, i); in dlm_alloc_pagevec()
/fs/ncpfs/
Dsock.c41 static inline int do_send(struct socket *sock, struct kvec *vec, int count, in do_send() argument
45 return kernel_sendmsg(sock, &msg, vec, count, len); in do_send()
50 struct kvec vec; in _send() local
51 vec.iov_base = (void *) buff; in _send()
52 vec.iov_len = len; in _send()
53 return do_send(sock, &vec, 1, len, 0); in _send()
206 struct kvec vec[3]; in ncpdgram_send() local
208 memcpy(vec, req->tx_ciov, req->tx_iovlen * sizeof(vec[0])); in ncpdgram_send()
209 return do_send(sock, vec, req->tx_iovlen, in ncpdgram_send()
/fs/ocfs2/cluster/
Dtcp.c859 struct kvec vec = { in o2net_recv_tcp_msg() local
865 .msg_iov = (struct iovec *)&vec, in o2net_recv_tcp_msg()
877 static int o2net_send_tcp_msg(struct socket *sock, struct kvec *vec, in o2net_send_tcp_msg() argument
883 .msg_iov = (struct iovec *)vec, in o2net_send_tcp_msg()
980 struct kvec *vec = NULL; in o2net_send_message_vec() local
1028 vec = kmalloc(sizeof(struct kvec) * veclen, GFP_ATOMIC); in o2net_send_message_vec()
1029 if (vec == NULL) { in o2net_send_message_vec()
1044 vec[0].iov_len = sizeof(struct o2net_msg); in o2net_send_message_vec()
1045 vec[0].iov_base = msg; in o2net_send_message_vec()
1046 memcpy(&vec[1], caller_vec, caller_veclen * sizeof(struct kvec)); in o2net_send_message_vec()
[all …]
Dtcp.h100 int o2net_send_message_vec(u32 msg_type, u32 key, struct kvec *vec,
/fs/
Dread_write.c666 ssize_t vfs_readv(struct file *file, const struct iovec __user *vec, in vfs_readv() argument
674 return do_readv_writev(READ, file, vec, vlen, pos); in vfs_readv()
679 ssize_t vfs_writev(struct file *file, const struct iovec __user *vec, in vfs_writev() argument
687 return do_readv_writev(WRITE, file, vec, vlen, pos); in vfs_writev()
692 SYSCALL_DEFINE3(readv, unsigned long, fd, const struct iovec __user *, vec, in SYSCALL_DEFINE3() argument
702 ret = vfs_readv(file, vec, vlen, &pos); in SYSCALL_DEFINE3()
713 SYSCALL_DEFINE3(writev, unsigned long, fd, const struct iovec __user *, vec, in SYSCALL_DEFINE3() argument
723 ret = vfs_writev(file, vec, vlen, &pos); in SYSCALL_DEFINE3()
Dcompat.c1171 compat_sys_readv(unsigned long fd, const struct compat_iovec __user *vec, unsigned long vlen) in compat_sys_readv() argument
1187 ret = compat_do_readv_writev(READ, file, vec, vlen, &file->f_pos); in compat_sys_readv()
1198 compat_sys_writev(unsigned long fd, const struct compat_iovec __user *vec, unsigned long vlen) in compat_sys_writev() argument
1213 ret = compat_do_readv_writev(WRITE, file, vec, vlen, &file->f_pos); in compat_sys_writev()
/fs/nfs/
Ddirect.c390 const struct iovec *vec = &iov[seg]; in nfs_direct_read_schedule_iovec() local
391 result = nfs_direct_read_schedule_segment(dreq, vec, pos); in nfs_direct_read_schedule_iovec()
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()
808 const struct iovec *vec = &iov[seg]; in nfs_direct_write_schedule_iovec() local
809 result = nfs_direct_write_schedule_segment(dreq, vec, in nfs_direct_write_schedule_iovec()
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()