Home
last modified time | relevance | path

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

/fs/xfs/
Dxfs_log.h28 struct xfs_log_iovec *vec = *vecp; in xlog_prepare_iovec() local
30 if (vec) { in xlog_prepare_iovec()
31 ASSERT(vec - lv->lv_iovecp < lv->lv_niovecs); in xlog_prepare_iovec()
32 vec++; in xlog_prepare_iovec()
34 vec = &lv->lv_iovecp[0]; in xlog_prepare_iovec()
37 vec->i_type = type; in xlog_prepare_iovec()
38 vec->i_addr = lv->lv_buf + lv->lv_buf_len; in xlog_prepare_iovec()
40 ASSERT(IS_ALIGNED((unsigned long)vec->i_addr, sizeof(uint64_t))); in xlog_prepare_iovec()
42 *vecp = vec; in xlog_prepare_iovec()
43 return vec->i_addr; in xlog_prepare_iovec()
[all …]
Dxfs_log.c825 struct xfs_log_vec vec = { in xfs_log_write_unmount_record() local
856 error = xlog_write(log, &vec, tic, &lsn, NULL, flags); in xfs_log_write_unmount_record()
1526 struct xfs_log_vec vec = { in xlog_commit_record() local
1532 error = xlog_write(log, &vec, ticket, commitlsnp, iclog, in xlog_commit_record()
2082 struct xfs_log_iovec *vec; in xlog_print_trans() local
2096 vec = lv->lv_iovecp; in xlog_print_trans()
2098 int dumplen = min(vec->i_len, 32); in xlog_print_trans()
2101 xfs_warn(mp, " type = 0x%x", vec->i_type); in xlog_print_trans()
2102 xfs_warn(mp, " len = %d", vec->i_len); in xlog_print_trans()
2104 xfs_hex_dump(vec->i_addr, dumplen); in xlog_print_trans()
[all …]
/fs/
Dread_write.c990 ssize_t vfs_readv(struct file *file, const struct iovec __user *vec, in vfs_readv() argument
998 ret = import_iovec(READ, vec, vlen, ARRAY_SIZE(iovstack), &iov, &iter); in vfs_readv()
1007 static ssize_t vfs_writev(struct file *file, const struct iovec __user *vec, in vfs_writev() argument
1015 ret = import_iovec(WRITE, vec, vlen, ARRAY_SIZE(iovstack), &iov, &iter); in vfs_writev()
1025 static ssize_t do_readv(unsigned long fd, const struct iovec __user *vec, in do_readv() argument
1037 ret = vfs_readv(f.file, vec, vlen, ppos, flags); in do_readv()
1049 static ssize_t do_writev(unsigned long fd, const struct iovec __user *vec, in do_writev() argument
1061 ret = vfs_writev(f.file, vec, vlen, ppos, flags); in do_writev()
1079 static ssize_t do_preadv(unsigned long fd, const struct iovec __user *vec, in do_preadv() argument
1092 ret = vfs_readv(f.file, vec, vlen, &pos, flags); in do_preadv()
[all …]
Dsplice.c349 static ssize_t kernel_readv(struct file *file, const struct kvec *vec, in kernel_readv() argument
359 res = vfs_readv(file, (const struct iovec __user *)vec, vlen, &pos, 0); in kernel_readv()
369 struct kvec *vec, __vec[PIPE_DEF_BUFFERS]; in default_file_splice_read() local
394 vec = __vec; in default_file_splice_read()
396 vec = kmalloc_array(nr_pages, sizeof(struct kvec), GFP_KERNEL); in default_file_splice_read()
397 if (unlikely(!vec)) { in default_file_splice_read()
408 vec[i].iov_base = page_address(pages[i]) + offset; in default_file_splice_read()
409 vec[i].iov_len = this_len; in default_file_splice_read()
414 res = kernel_readv(in, vec, nr_pages, *ppos); in default_file_splice_read()
420 if (vec != __vec) in default_file_splice_read()
[all …]
/fs/ocfs2/dlm/
Ddlmconvert.c363 struct kvec vec[2]; in dlm_send_remote_convert_request() local
376 vec[0].iov_len = sizeof(struct dlm_convert_lock); in dlm_send_remote_convert_request()
377 vec[0].iov_base = &convert; in dlm_send_remote_convert_request()
381 vec[1].iov_len = DLM_LVB_LEN; in dlm_send_remote_convert_request()
382 vec[1].iov_base = lock->lksb->lvb; in dlm_send_remote_convert_request()
387 vec, veclen, res->owner, &status); in dlm_send_remote_convert_request()
Ddlmast.c439 struct kvec vec[2]; in dlm_send_proxy_ast_msg() local
455 vec[0].iov_len = sizeof(struct dlm_proxy_ast); in dlm_send_proxy_ast_msg()
456 vec[0].iov_base = &past; in dlm_send_proxy_ast_msg()
459 vec[1].iov_len = DLM_LVB_LEN; in dlm_send_proxy_ast_msg()
460 vec[1].iov_base = lock->lksb->lvb; in dlm_send_proxy_ast_msg()
464 ret = o2net_send_message_vec(DLM_PROXY_AST_MSG, dlm->key, vec, veclen, in dlm_send_proxy_ast_msg()
Ddlmunlock.c320 struct kvec vec[2]; in dlm_send_remote_unlock_request() local
342 vec[0].iov_len = sizeof(struct dlm_unlock_lock); in dlm_send_remote_unlock_request()
343 vec[0].iov_base = &unlock; in dlm_send_remote_unlock_request()
347 vec[1].iov_len = DLM_LVB_LEN; in dlm_send_remote_unlock_request()
348 vec[1].iov_base = lock->lksb->lvb; in dlm_send_remote_unlock_request()
353 vec, veclen, owner, &status); in dlm_send_remote_unlock_request()
Ddlmdomain.c65 static void dlm_free_pagevec(void **vec, int pages) in dlm_free_pagevec() argument
68 free_page((unsigned long)vec[pages]); in dlm_free_pagevec()
69 kfree(vec); in dlm_free_pagevec()
74 void **vec = kmalloc_array(pages, sizeof(void *), GFP_KERNEL); in dlm_alloc_pagevec() local
77 if (!vec) in dlm_alloc_pagevec()
81 if (!(vec[i] = (void *)__get_free_page(GFP_KERNEL))) in dlm_alloc_pagevec()
87 return vec; in dlm_alloc_pagevec()
89 dlm_free_pagevec(vec, i); in dlm_alloc_pagevec()
/fs/nfsd/
Dnfscache.c39 static int nfsd_cache_append(struct svc_rqst *rqstp, struct kvec *vec);
555 struct kvec *vec = &rqstp->rq_res.head[0]; in nfsd_cache_append() local
557 if (vec->iov_len + data->iov_len > PAGE_SIZE) { in nfsd_cache_append()
562 memcpy((char*)vec->iov_base + vec->iov_len, data->iov_base, data->iov_len); in nfsd_cache_append()
563 vec->iov_len += data->iov_len; in nfsd_cache_append()
Dvfs.h87 struct kvec *vec, int vlen,
97 struct kvec *vec, int vlen, unsigned long *cnt,
Dvfs.c890 struct kvec *vec, int vlen, unsigned long *count, in nfsd_readv() argument
898 iov_iter_kvec(&iter, READ, vec, vlen, *count); in nfsd_readv()
942 loff_t offset, struct kvec *vec, int vlen, in nfsd_vfs_write() argument
974 iov_iter_kvec(&iter, WRITE, vec, vlen, *cnt); in nfsd_vfs_write()
1007 loff_t offset, struct kvec *vec, int vlen, unsigned long *count, in nfsd_read() argument
1023 err = nfsd_readv(rqstp, fhp, file, offset, vec, vlen, count, eof); in nfsd_read()
1039 struct kvec *vec, int vlen, unsigned long *cnt, int stable) in nfsd_write() argument
1050 err = nfsd_vfs_write(rqstp, fhp, nf->nf_file, offset, vec, in nfsd_write()
Dnfs4xdr.c164 struct kvec *vec = &argp->rqstp->rq_arg.tail[0]; in read_buf() local
168 avail = vec->iov_len; in read_buf()
169 argp->p = vec->iov_base; in read_buf()
170 argp->end = vec->iov_base + avail; in read_buf()
/fs/ocfs2/cluster/
Dtcp.c903 struct kvec vec = { .iov_len = len, .iov_base = data, }; in o2net_recv_tcp_msg() local
905 iov_iter_kvec(&msg.msg_iter, READ, &vec, 1, len); in o2net_recv_tcp_msg()
909 static int o2net_send_tcp_msg(struct socket *sock, struct kvec *vec, in o2net_send_tcp_msg() argument
920 ret = kernel_sendmsg(sock, &msg, vec, veclen, total); in o2net_send_tcp_msg()
1020 struct kvec *vec = NULL; in o2net_send_message_vec() local
1065 vec = kmalloc_array(veclen, sizeof(struct kvec), GFP_ATOMIC); in o2net_send_message_vec()
1066 if (vec == NULL) { in o2net_send_message_vec()
1081 vec[0].iov_len = sizeof(struct o2net_msg); in o2net_send_message_vec()
1082 vec[0].iov_base = msg; in o2net_send_message_vec()
1083 memcpy(&vec[1], caller_vec, caller_veclen * sizeof(struct kvec)); in o2net_send_message_vec()
[all …]
Dtcp.h86 int o2net_send_message_vec(u32 msg_type, u32 key, struct kvec *vec,
/fs/ceph/
Dxattr.c664 ci->i_xattrs.blob ? (int)ci->i_xattrs.blob->vec.iov_len : 0); in __build_xattrs()
673 if (ci->i_xattrs.blob && ci->i_xattrs.blob->vec.iov_len > 4) { in __build_xattrs()
674 p = ci->i_xattrs.blob->vec.iov_base; in __build_xattrs()
675 end = p + ci->i_xattrs.blob->vec.iov_len; in __build_xattrs()
776 dest = ci->i_xattrs.prealloc_blob->vec.iov_base; in __ceph_build_xattrs_blob()
793 ci->i_xattrs.prealloc_blob->vec.iov_len = in __ceph_build_xattrs_blob()
794 dest - ci->i_xattrs.prealloc_blob->vec.iov_base; in __ceph_build_xattrs_blob()
Dcaps.c1151 arg->xattr_buf ? (int)arg->xattr_buf->vec.iov_len : 0); in send_cap_msg()
1192 fc->xattr_len = cpu_to_le32(arg->xattr_buf->vec.iov_len); in send_cap_msg()
1193 msg->hdr.middle_len = cpu_to_le32(arg->xattr_buf->vec.iov_len); in send_cap_msg()
Dinode.c895 memcpy(ci->i_xattrs.blob->vec.iov_base, in fill_inode()
/fs/cifs/
Dsmbdirect.c2074 struct kvec vec; in smbd_send() local
2153 vec.iov_base = in smbd_send()
2156 vec.iov_len = max_iov_size; in smbd_send()
2158 vec.iov_len = in smbd_send()
2161 remaining_data_length -= vec.iov_len; in smbd_send()
2166 j, vec.iov_base, vec.iov_len, in smbd_send()
2169 info, &vec, 1, in smbd_send()