Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 155) sorted by relevance

1234567

/fs/configfs/
Dfile.c64 static int fill_read_buffer(struct dentry * dentry, struct configfs_buffer * buffer) in fill_read_buffer() argument
68 struct configfs_item_operations * ops = buffer->ops; in fill_read_buffer()
72 if (!buffer->page) in fill_read_buffer()
73 buffer->page = (char *) get_zeroed_page(GFP_KERNEL); in fill_read_buffer()
74 if (!buffer->page) in fill_read_buffer()
77 count = ops->show_attribute(item,attr,buffer->page); in fill_read_buffer()
78 buffer->needs_read_fill = 0; in fill_read_buffer()
81 buffer->count = count; in fill_read_buffer()
109 struct configfs_buffer * buffer = file->private_data; in configfs_read_file() local
112 mutex_lock(&buffer->mutex); in configfs_read_file()
[all …]
/fs/sysfs/
Dfile.c74 static int fill_read_buffer(struct dentry * dentry, struct sysfs_buffer * buffer) in fill_read_buffer() argument
78 struct sysfs_ops * ops = buffer->ops; in fill_read_buffer()
82 if (!buffer->page) in fill_read_buffer()
83 buffer->page = (char *) get_zeroed_page(GFP_KERNEL); in fill_read_buffer()
84 if (!buffer->page) in fill_read_buffer()
91 buffer->event = atomic_read(&attr_sd->s_attr.open->event); in fill_read_buffer()
92 count = ops->show(kobj, attr_sd->s_attr.attr, buffer->page); in fill_read_buffer()
107 buffer->needs_read_fill = 0; in fill_read_buffer()
108 buffer->count = count; in fill_read_buffer()
137 struct sysfs_buffer * buffer = file->private_data; in sysfs_read_file() local
[all …]
Dbin.c31 void *buffer; member
36 fill_read(struct dentry *dentry, char *buffer, loff_t off, size_t count) in fill_read() argument
49 rc = attr->read(kobj, attr, buffer, off, count); in fill_read()
82 count = fill_read(dentry, bb->buffer, offs, count); in read()
88 memcpy(temp, bb->buffer, count); in read()
107 flush_write(struct dentry *dentry, char *buffer, loff_t offset, size_t count) in flush_write() argument
120 rc = attr->write(kobj, attr, buffer, offset, count); in flush_write()
158 memcpy(bb->buffer, temp, count); in write()
160 count = flush_write(dentry, bb->buffer, offs, count); in write()
221 bb->buffer = kmalloc(PAGE_SIZE, GFP_KERNEL); in open()
[all …]
/fs/partitions/
Dldm.c680 static int ldm_relative(const u8 *buffer, int buflen, int base, int offset) in ldm_relative() argument
684 if (!buffer || offset < 0 || base > buflen) { in ldm_relative()
685 if (!buffer) in ldm_relative()
693 if (base + buffer[base] >= buflen) { in ldm_relative()
695 buffer[base], buflen); in ldm_relative()
698 return buffer[base] + offset + 1; in ldm_relative()
751 static int ldm_get_vstr (const u8 *block, u8 *buffer, int buflen) in ldm_get_vstr() argument
755 BUG_ON (!block || !buffer); in ldm_get_vstr()
762 memcpy (buffer, block + 1, length); in ldm_get_vstr()
763 buffer[length] = 0; in ldm_get_vstr()
[all …]
/fs/cifs/
Dmisc.c286 header_assemble(struct smb_hdr *buffer, char smb_command /* command */ , in header_assemble() argument
292 char *temp = (char *) buffer; in header_assemble()
296 buffer->smb_buf_length = in header_assemble()
303 buffer->Protocol[0] = 0xFF; in header_assemble()
304 buffer->Protocol[1] = 'S'; in header_assemble()
305 buffer->Protocol[2] = 'M'; in header_assemble()
306 buffer->Protocol[3] = 'B'; in header_assemble()
307 buffer->Command = smb_command; in header_assemble()
308 buffer->Flags = 0x00; /* case sensitive */ in header_assemble()
309 buffer->Flags2 = SMBFLG2_KNOWS_LONG_NAMES; in header_assemble()
[all …]
Dcifs_debug.c230 const char __user *buffer, size_t count, loff_t *ppos) in cifs_stats_proc_write() argument
239 rc = get_user(c, buffer); in cifs_stats_proc_write()
458 static ssize_t cifsFYI_proc_write(struct file *file, const char __user *buffer, in cifsFYI_proc_write() argument
464 rc = get_user(c, buffer); in cifsFYI_proc_write()
498 const char __user *buffer, size_t count, loff_t *ppos) in cifs_oplock_proc_write() argument
503 rc = get_user(c, buffer); in cifs_oplock_proc_write()
535 const char __user *buffer, size_t count, loff_t *ppos) in cifs_experimental_proc_write() argument
540 rc = get_user(c, buffer); in cifs_experimental_proc_write()
574 const char __user *buffer, size_t count, loff_t *ppos) in cifs_linux_ext_proc_write() argument
579 rc = get_user(c, buffer); in cifs_linux_ext_proc_write()
[all …]
/fs/xfs/quota/
Dxfs_qm_stats.c54 char *buffer, in xfs_qm_read_xfsquota() argument
64 len = sprintf(buffer, "%d\t%d\t%d\t%u\n", in xfs_qm_read_xfsquota()
71 *start = buffer; in xfs_qm_read_xfsquota()
75 *start = buffer + offset; in xfs_qm_read_xfsquota()
85 char *buffer, in xfs_qm_read_stats() argument
95 len = sprintf(buffer, "qm %u %u %u %u %u %u %u %u\n", in xfs_qm_read_stats()
106 *start = buffer; in xfs_qm_read_stats()
110 *start = buffer + offset; in xfs_qm_read_stats()
/fs/xfs/
Dxfs_itable.h28 void __user *buffer,
69 char __user *buffer,
76 const xfs_bstat_t *buffer); /* buffer to read from */
82 void __user *buffer,
94 void __user *buffer,
109 const xfs_inogrp_t *buffer, /* buffer to read from */
116 const xfs_inogrp_t *buffer, /* buffer to read from */
125 void __user *buffer, /* buffer with inode info */
Dxfs_itable.c197 const xfs_bstat_t *buffer) in xfs_bulkstat_one_fmt() argument
199 if (ubsize < sizeof(*buffer)) in xfs_bulkstat_one_fmt()
201 if (copy_to_user(ubuffer, buffer, sizeof(*buffer))) in xfs_bulkstat_one_fmt()
204 *ubused = sizeof(*buffer); in xfs_bulkstat_one_fmt()
216 void __user *buffer, /* buffer to place output in */ in xfs_bulkstat_one_int() argument
231 if (!buffer || xfs_internal_inum(mp, ino)) in xfs_bulkstat_one_int()
247 error = formatter(buffer, ubsize, ubused, buf); in xfs_bulkstat_one_int()
262 void __user *buffer, /* buffer to place output in */ in xfs_bulkstat_one() argument
270 return xfs_bulkstat_one_int(mp, ino, buffer, ubsize, in xfs_bulkstat_one()
745 char __user *buffer, /* buffer with inode stats */ in xfs_bulkstat_single() argument
[all …]
/fs/xfs/linux-2.6/
Dxfs_stats.c25 char *buffer, in xfs_read_xfsstats() argument
64 len += sprintf(buffer + len, "%s", xstats[i].desc); in xfs_read_xfsstats()
71 len += sprintf(buffer + len, " %u", val); in xfs_read_xfsstats()
74 buffer[len++] = '\n'; in xfs_read_xfsstats()
83 len += sprintf(buffer + len, "xpc %Lu %Lu %Lu\n", in xfs_read_xfsstats()
85 len += sprintf(buffer + len, "debug %u\n", in xfs_read_xfsstats()
93 *start = buffer; in xfs_read_xfsstats()
97 *start = buffer + offset; in xfs_read_xfsstats()
Dxfs_ioctl32.c112 const xfs_inogrp_t *buffer, in xfs_inumbers_fmt_compat() argument
120 if (put_user(buffer[i].xi_startino, &p32[i].xi_startino) || in xfs_inumbers_fmt_compat()
121 put_user(buffer[i].xi_alloccount, &p32[i].xi_alloccount) || in xfs_inumbers_fmt_compat()
122 put_user(buffer[i].xi_allocmask, &p32[i].xi_allocmask)) in xfs_inumbers_fmt_compat()
199 const xfs_bstat_t *buffer) in xfs_bulkstat_one_fmt_compat() argument
206 if (put_user(buffer->bs_ino, &p32->bs_ino) || in xfs_bulkstat_one_fmt_compat()
207 put_user(buffer->bs_mode, &p32->bs_mode) || in xfs_bulkstat_one_fmt_compat()
208 put_user(buffer->bs_nlink, &p32->bs_nlink) || in xfs_bulkstat_one_fmt_compat()
209 put_user(buffer->bs_uid, &p32->bs_uid) || in xfs_bulkstat_one_fmt_compat()
210 put_user(buffer->bs_gid, &p32->bs_gid) || in xfs_bulkstat_one_fmt_compat()
[all …]
/fs/squashfs/
Dcache.c294 int squashfs_copy_data(void *buffer, struct squashfs_cache_entry *entry, in squashfs_copy_data() argument
301 else if (buffer == NULL) in squashfs_copy_data()
311 memcpy(buffer, buff, remaining); in squashfs_copy_data()
316 memcpy(buffer, buff, bytes); in squashfs_copy_data()
317 buffer += bytes; in squashfs_copy_data()
332 int squashfs_read_metadata(struct super_block *sb, void *buffer, in squashfs_read_metadata() argument
348 bytes = squashfs_copy_data(buffer, entry, *offset, length); in squashfs_read_metadata()
349 if (buffer) in squashfs_read_metadata()
350 buffer += bytes; in squashfs_read_metadata()
397 int squashfs_read_table(struct super_block *sb, void *buffer, u64 block, in squashfs_read_table() argument
[all …]
Dfile.c380 struct squashfs_cache_entry *buffer = NULL; in squashfs_readpage() local
416 buffer = squashfs_get_datablock(inode->i_sb, in squashfs_readpage()
418 if (buffer->error) { in squashfs_readpage()
421 squashfs_cache_put(buffer); in squashfs_readpage()
424 bytes = buffer->length; in squashfs_readpage()
431 buffer = squashfs_get_fragment(inode->i_sb, in squashfs_readpage()
435 if (buffer->error) { in squashfs_readpage()
439 squashfs_cache_put(buffer); in squashfs_readpage()
469 squashfs_copy_data(pageaddr, buffer, offset, avail); in squashfs_readpage()
481 squashfs_cache_put(buffer); in squashfs_readpage()
/fs/proc/
Dbase.c273 static int proc_pid_cmdline(struct task_struct *task, char * buffer) in proc_pid_cmdline() argument
288 res = access_process_vm(task, mm->arg_start, buffer, len, 0); in proc_pid_cmdline()
292 if (res > 0 && buffer[res-1] != '\0' && len < PAGE_SIZE) { in proc_pid_cmdline()
293 len = strnlen(buffer, res); in proc_pid_cmdline()
300 res += access_process_vm(task, mm->env_start, buffer+res, len, 0); in proc_pid_cmdline()
301 res = strnlen(buffer, res); in proc_pid_cmdline()
310 static int proc_pid_auxv(struct task_struct *task, char *buffer) in proc_pid_auxv() argument
322 memcpy(buffer, mm->saved_auxv, res); in proc_pid_auxv()
334 static int proc_pid_wchan(struct task_struct *task, char *buffer) in proc_pid_wchan() argument
342 return sprintf(buffer, "%lu", wchan); in proc_pid_wchan()
[all …]
/fs/yaffs2/
Dyaffs_nand.c24 __u8 *buffer, in yaffs_ReadChunkWithTagsFromNAND() argument
39 result = dev->readChunkWithTagsFromNAND(dev, realignedChunkInNAND, buffer, in yaffs_ReadChunkWithTagsFromNAND()
44 buffer, in yaffs_ReadChunkWithTagsFromNAND()
58 const __u8 *buffer, in yaffs_WriteChunkWithTagsToNAND() argument
84 return dev->writeChunkWithTagsToNAND(dev, chunkInNAND, buffer, in yaffs_WriteChunkWithTagsToNAND()
89 buffer, in yaffs_WriteChunkWithTagsToNAND()
/fs/btrfs/
Dxattr.c33 void *buffer, size_t size) in __btrfs_getxattr() argument
79 read_extent_buffer(leaf, buffer, data_ptr, in __btrfs_getxattr()
158 ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size) in btrfs_listxattr() argument
238 if (!buffer || (name_len + 1) > size_left) { in btrfs_listxattr()
244 read_extent_buffer(leaf, buffer, name_ptr, name_len); in btrfs_listxattr()
245 buffer[name_len] = '\0'; in btrfs_listxattr()
248 buffer += name_len + 1; in btrfs_listxattr()
286 void *buffer, size_t size) in btrfs_getxattr() argument
294 return generic_getxattr(dentry, name, buffer, size); in btrfs_getxattr()
298 return __btrfs_getxattr(dentry->d_inode, name, buffer, size); in btrfs_getxattr()
/fs/adfs/
Ddir_f.c251 int thissize, buffer, offset; in __adfs_dir_get() local
253 buffer = pos >> sb->s_blocksize_bits; in __adfs_dir_get()
255 if (buffer > dir->nr_buffers) in __adfs_dir_get()
263 memcpy(&de, dir->bh[buffer]->b_data + offset, thissize); in __adfs_dir_get()
265 memcpy(((char *)&de) + thissize, dir->bh[buffer + 1]->b_data, in __adfs_dir_get()
281 int thissize, buffer, offset; in __adfs_dir_put() local
283 buffer = pos >> sb->s_blocksize_bits; in __adfs_dir_put()
285 if (buffer > dir->nr_buffers) in __adfs_dir_put()
296 memcpy(&de, dir->bh[buffer]->b_data + offset, thissize); in __adfs_dir_put()
298 memcpy(((char *)&de) + thissize, dir->bh[buffer + 1]->b_data, in __adfs_dir_put()
[all …]
/fs/9p/
Dvfs_addr.c54 char *buffer; in v9fs_vfs_readpage() local
57 buffer = kmap(page); in v9fs_vfs_readpage()
60 retval = v9fs_file_readn(filp, buffer, NULL, offset, PAGE_CACHE_SIZE); in v9fs_vfs_readpage()
64 memset(buffer + retval, 0, PAGE_CACHE_SIZE - retval); in v9fs_vfs_readpage()
/fs/jffs2/
Dxattr_trusted.c20 void *buffer, size_t size) in jffs2_trusted_getxattr() argument
24 return do_jffs2_getxattr(inode, JFFS2_XPREFIX_TRUSTED, name, buffer, size); in jffs2_trusted_getxattr()
27 static int jffs2_trusted_setxattr(struct inode *inode, const char *name, const void *buffer, in jffs2_trusted_setxattr() argument
32 return do_jffs2_setxattr(inode, JFFS2_XPREFIX_TRUSTED, name, buffer, size, flags); in jffs2_trusted_setxattr()
Dxattr_user.c20 void *buffer, size_t size) in jffs2_user_getxattr() argument
24 return do_jffs2_getxattr(inode, JFFS2_XPREFIX_USER, name, buffer, size); in jffs2_user_getxattr()
27 static int jffs2_user_setxattr(struct inode *inode, const char *name, const void *buffer, in jffs2_user_setxattr() argument
32 return do_jffs2_setxattr(inode, JFFS2_XPREFIX_USER, name, buffer, size, flags); in jffs2_user_setxattr()
Dsecurity.c48 void *buffer, size_t size) in jffs2_security_getxattr() argument
53 return do_jffs2_getxattr(inode, JFFS2_XPREFIX_SECURITY, name, buffer, size); in jffs2_security_getxattr()
56 static int jffs2_security_setxattr(struct inode *inode, const char *name, const void *buffer, in jffs2_security_setxattr() argument
62 return do_jffs2_setxattr(inode, JFFS2_XPREFIX_SECURITY, name, buffer, size, flags); in jffs2_security_setxattr()
/fs/reiserfs/
Dxattr_security.c10 security_get(struct inode *inode, const char *name, void *buffer, size_t size) in security_get() argument
18 return reiserfs_xattr_get(inode, name, buffer, size); in security_get()
22 security_set(struct inode *inode, const char *name, const void *buffer, in security_set() argument
31 return reiserfs_xattr_set(inode, name, buffer, size, flags); in security_set()
Dxattr_user.c14 user_get(struct inode *inode, const char *name, void *buffer, size_t size) in user_get() argument
21 return reiserfs_xattr_get(inode, name, buffer, size); in user_get()
25 user_set(struct inode *inode, const char *name, const void *buffer, in user_set() argument
34 return reiserfs_xattr_set(inode, name, buffer, size, flags); in user_set()
Dxattr_trusted.c11 trusted_get(struct inode *inode, const char *name, void *buffer, size_t size) in trusted_get() argument
22 return reiserfs_xattr_get(inode, name, buffer, size); in trusted_get()
26 trusted_set(struct inode *inode, const char *name, const void *buffer, in trusted_set() argument
38 return reiserfs_xattr_set(inode, name, buffer, size, flags); in trusted_set()
/fs/ext4/
Dxattr.c95 static int ext4_xattr_list(struct inode *inode, char *buffer,
141 ext4_listxattr(struct dentry *dentry, char *buffer, size_t size) in ext4_listxattr() argument
143 return ext4_xattr_list(dentry->d_inode, buffer, size); in ext4_listxattr()
210 void *buffer, size_t buffer_size) in ext4_xattr_block_get() argument
218 name_index, name, buffer, (long)buffer_size); in ext4_xattr_block_get()
244 if (buffer) { in ext4_xattr_block_get()
248 memcpy(buffer, bh->b_data + le16_to_cpu(entry->e_value_offs), in ext4_xattr_block_get()
260 void *buffer, size_t buffer_size) in ext4_xattr_ibody_get() argument
287 if (buffer) { in ext4_xattr_ibody_get()
291 memcpy(buffer, (void *)IFIRST(header) + in ext4_xattr_ibody_get()
[all …]

1234567