Searched refs:buf (Results 1 - 25 of 321) sorted by relevance

1234567891011>>

/fs/
H A Dstatfs.c49 static int statfs_by_dentry(struct dentry *dentry, struct kstatfs *buf) argument
56 memset(buf, 0, sizeof(*buf));
60 retval = dentry->d_sb->s_op->statfs(dentry, buf);
61 if (retval == 0 && buf->f_frsize == 0)
62 buf->f_frsize = buf->f_bsize;
66 int vfs_statfs(struct path *path, struct kstatfs *buf) argument
70 error = statfs_by_dentry(path->dentry, buf);
72 buf
108 struct statfs buf; local
150 struct statfs64 buf; local
[all...]
H A Dreaddir.c80 struct readdir_callback *buf = (struct readdir_callback *) __buf; local
84 if (buf->result)
88 buf->result = -EOVERFLOW;
91 buf->result++;
92 dirent = buf->dirent;
105 buf->result = -EFAULT;
114 struct readdir_callback buf = { local
122 error = iterate_dir(f.file, &buf.ctx);
123 if (buf.result)
124 error = buf
155 struct getdents_callback * buf = (struct getdents_callback *) __buf; local
199 struct getdents_callback buf = { local
239 struct getdents_callback64 * buf = (struct getdents_callback64 *) __buf; local
279 struct getdents_callback64 buf = { local
[all...]
H A Dbinfmt_script.c25 if ((bprm->buf[0] != '#') || (bprm->buf[1] != '!'))
36 bprm->buf[BINPRM_BUF_SIZE - 1] = '\0';
37 if ((cp = strchr(bprm->buf, '\n')) == NULL)
38 cp = bprm->buf+BINPRM_BUF_SIZE-1;
40 while (cp > bprm->buf) {
47 for (cp = bprm->buf+2; (*cp == ' ') || (*cp == '\t'); cp++);
/fs/f2fs/
H A Dhash.c28 static void TEA_transform(unsigned int buf[4], unsigned int const in[]) argument
31 __u32 b0 = buf[0], b1 = buf[1];
41 buf[0] += b0;
42 buf[1] += b1;
46 unsigned int *buf, int num)
62 *buf++ = val;
68 *buf++ = val;
70 *buf++ = pad;
78 __u32 in[8], buf[ local
45 str2hashbuf(const unsigned char *msg, size_t len, unsigned int *buf, int num) argument
[all...]
/fs/ext3/
H A Dhash.c17 static void TEA_transform(__u32 buf[4], __u32 const in[]) argument
20 __u32 b0 = buf[0], b1 = buf[1];
30 buf[0] += b0;
31 buf[1] += b1;
68 static void str2hashbuf_signed(const char *msg, int len, __u32 *buf, int num) argument
85 *buf++ = val;
91 *buf++ = val;
93 *buf++ = pad;
96 static void str2hashbuf_unsigned(const char *msg, int len, __u32 *buf, in argument
143 __u32 in[8], buf[4]; local
[all...]
/fs/ext4/
H A Dhash.c19 static void TEA_transform(__u32 buf[4], __u32 const in[]) argument
22 __u32 b0 = buf[0], b1 = buf[1];
32 buf[0] += b0;
33 buf[1] += b1;
70 static void str2hashbuf_signed(const char *msg, int len, __u32 *buf, int num) argument
87 *buf++ = val;
93 *buf++ = val;
95 *buf++ = pad;
98 static void str2hashbuf_unsigned(const char *msg, int len, __u32 *buf, in argument
145 __u32 in[8], buf[4]; local
[all...]
/fs/xfs/
H A Dxfs_sysfs.c27 ssize_t (*show)(char *buf, void *data);
28 ssize_t (*store)(const char *buf, size_t count, void *data);
59 const char *buf,
66 ret = kstrtoint(buf, 0, &val);
80 char *buf,
83 return snprintf(buf, PAGE_SIZE, "%d\n", xfs_globals.log_recovery_delay);
96 char *buf)
100 return xfs_attr->show ? xfs_attr->show(buf, NULL) : 0;
107 const char *buf,
112 return xfs_attr->store ? xfs_attr->store(buf, coun
58 log_recovery_delay_store( const char *buf, size_t count, void *data) argument
79 log_recovery_delay_show( char *buf, void *data) argument
93 xfs_dbg_show( struct kobject *kobject, struct attribute *attr, char *buf) argument
104 xfs_dbg_store( struct kobject *kobject, struct attribute *attr, const char *buf, size_t count) argument
131 log_head_lsn_show( char *buf, void *data) argument
149 log_tail_lsn_show( char *buf, void *data) argument
163 reserve_grant_head_show( char *buf, void *data) argument
177 write_grant_head_show( char *buf, void *data) argument
206 xfs_log_show( struct kobject *kobject, struct attribute *attr, char *buf) argument
218 xfs_log_store( struct kobject *kobject, struct attribute *attr, const char *buf, size_t count) argument
[all...]
/fs/squashfs/
H A Dxz_wrapper.c39 struct xz_buf buf; member in struct:squashfs_xz
141 stream->buf.in_pos = 0;
142 stream->buf.in_size = 0;
143 stream->buf.out_pos = 0;
144 stream->buf.out_size = PAGE_CACHE_SIZE;
145 stream->buf.out = squashfs_first_page(output);
148 if (stream->buf.in_pos == stream->buf.in_size && k < b) {
151 stream->buf.in = bh[k]->b_data + offset;
152 stream->buf
[all...]
/fs/hostfs/
H A Dhostfs_user.c21 static void stat64_to_hostfs(const struct stat64 *buf, struct hostfs_stat *p) argument
23 p->ino = buf->st_ino;
24 p->mode = buf->st_mode;
25 p->nlink = buf->st_nlink;
26 p->uid = buf->st_uid;
27 p->gid = buf->st_gid;
28 p->size = buf->st_size;
29 p->atime.tv_sec = buf->st_atime;
31 p->ctime.tv_sec = buf->st_ctime;
33 p->mtime.tv_sec = buf
43 struct stat64 buf; local
118 read_file(int fd, unsigned long long *offset, char *buf, int len) argument
129 write_file(int fd, unsigned long long *offset, const char *buf, int len) argument
342 hostfs_do_readlink(char *file, char *buf, int size) argument
396 struct statfs64 buf; local
[all...]
/fs/quota/
H A Dquota_tree.c45 char *buf = kmalloc(size, GFP_NOFS); local
46 if (!buf)
49 return buf;
52 static ssize_t read_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) argument
56 memset(buf, 0, info->dqi_usable_bs);
57 return sb->s_op->quota_read(sb, info->dqi_type, buf,
61 static ssize_t write_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) argument
66 ret = sb->s_op->quota_write(sb, info->dqi_type, buf,
79 char *buf = getdqbuf(info->dqi_usable_bs); local
80 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf;
108 put_free_dqblk(struct qtree_mem_dqinfo *info, char *buf, uint blk) argument
125 remove_free_dqentry(struct qtree_mem_dqinfo *info, char *buf, uint blk) argument
172 insert_free_dqentry(struct qtree_mem_dqinfo *info, char *buf, uint blk) argument
223 char *buf = getdqbuf(info->dqi_usable_bs); local
294 char *buf = getdqbuf(info->dqi_usable_bs); local
403 char *buf = getdqbuf(info->dqi_usable_bs); local
463 char *buf = getdqbuf(info->dqi_usable_bs); local
522 char *buf = getdqbuf(info->dqi_usable_bs); local
560 char *buf = getdqbuf(info->dqi_usable_bs); local
[all...]
/fs/ocfs2/dlm/
H A Ddlmdebug.c47 static int stringify_lockname(const char *lockname, int locklen, char *buf,
100 char buf[DLM_LOCKID_NAME_MAX]; local
105 buf, sizeof(buf));
107 buf, res->owner, res->state);
251 static int stringify_lockname(const char *lockname, int locklen, char *buf, argument
262 out += snprintf(buf + out, len - out, "%.*s%08x",
266 out += snprintf(buf + out, len - out, "%.*s",
272 char *buf, int len)
278 out += snprintf(buf
271 stringify_nodemap(unsigned long *nodemap, int maxnodes, char *buf, int len) argument
283 dump_mle(struct dlm_master_list_entry *mle, char *buf, int len) argument
330 char *buf; local
376 debug_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) argument
385 debug_purgelist_print(struct dlm_ctxt *dlm, char *buf, int len) argument
417 char *buf = NULL; local
441 debug_mle_print(struct dlm_ctxt *dlm, char *buf, int len) argument
474 char *buf = NULL; local
499 dump_lock(struct dlm_lock *lock, int list_type, char *buf, int len) argument
523 dump_lockres(struct dlm_lock_resource *res, char *buf, int len) argument
651 void *buf; local
697 debug_state_print(struct dlm_ctxt *dlm, char *buf, int len) argument
865 char *buf = NULL; local
[all...]
/fs/ubifs/
H A Dscan.c34 * @buf: buffer to scan
40 static int scan_padding_bytes(void *buf, int len) argument
43 uint8_t *p = buf;
61 * @buf: buffer to scan
69 int ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum, argument
72 struct ubifs_ch *ch = buf;
83 return scan_padding_bytes(buf, len);
91 if (ubifs_check_node(c, buf, lnum, offs, quiet, 1))
95 struct ubifs_pad_node *pad = buf;
151 sleb->buf
194 ubifs_add_snod(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, void *buf, int offs) argument
238 ubifs_scanned_corruption(const struct ubifs_info *c, int lnum, int offs, void *buf) argument
270 void *buf = sbuf + offs; local
[all...]
/fs/gfs2/
H A Dsys.c39 char *buf)
43 return a->show ? a->show(sdp, buf) : 0;
47 const char *buf, size_t len)
51 return a->store ? a->store(sdp, buf, len) : len;
62 static ssize_t id_show(struct gfs2_sbd *sdp, char *buf) argument
64 return snprintf(buf, PAGE_SIZE, "%u:%u\n",
68 static ssize_t fsname_show(struct gfs2_sbd *sdp, char *buf) argument
70 return snprintf(buf, PAGE_SIZE, "%s\n", sdp->sd_fsname);
84 static ssize_t uuid_show(struct gfs2_sbd *sdp, char *buf) argument
88 buf[
38 gfs2_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
46 gfs2_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t len) argument
94 freeze_show(struct gfs2_sbd *sdp, char *buf) argument
102 freeze_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument
129 withdraw_show(struct gfs2_sbd *sdp, char *buf) argument
135 withdraw_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument
148 statfs_sync_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument
161 quota_sync_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument
174 quota_refresh_user_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument
194 quota_refresh_group_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument
214 demote_rq_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument
306 proto_name_show(struct gfs2_sbd *sdp, char *buf) argument
312 block_show(struct gfs2_sbd *sdp, char *buf) argument
324 block_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument
344 wdack_show(struct gfs2_sbd *sdp, char *buf) argument
351 wdack_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument
366 lkfirst_show(struct gfs2_sbd *sdp, char *buf) argument
372 lkfirst_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument
399 first_done_show(struct gfs2_sbd *sdp, char *buf) argument
429 recover_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument
448 recover_done_show(struct gfs2_sbd *sdp, char *buf) argument
454 recover_status_show(struct gfs2_sbd *sdp, char *buf) argument
460 jid_show(struct gfs2_sbd *sdp, char *buf) argument
465 jid_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument
525 quota_scale_show(struct gfs2_sbd *sdp, char *buf) argument
532 quota_scale_store(struct gfs2_sbd *sdp, const char *buf, size_t len) argument
551 tune_set(struct gfs2_sbd *sdp, unsigned int *field, int check_zero, const char *buf, size_t len) argument
[all...]
/fs/nilfs2/
H A Dsysfs.c31 #define NILFS_SHOW_TIME(time_t_val, buf) ({ \
37 count = scnprintf(buf, PAGE_SIZE, \
46 struct attribute *attr, char *buf) \
54 return a->show ? a->show(a, nilfs, buf) : 0; \
58 const char *buf, size_t len) \
66 return a->store ? a->store(a, nilfs, buf, len) : 0; \
120 struct nilfs_root *root, char *buf)
122 return snprintf(buf, PAGE_SIZE, "%llu\n",
128 struct nilfs_root *root, char *buf)
130 return snprintf(buf, PAGE_SIZ
119 nilfs_snapshot_inodes_count_show(struct nilfs_snapshot_attr *attr, struct nilfs_root *root, char *buf) argument
127 nilfs_snapshot_blocks_count_show(struct nilfs_snapshot_attr *attr, struct nilfs_root *root, char *buf) argument
140 nilfs_snapshot_README_show(struct nilfs_snapshot_attr *attr, struct nilfs_root *root, char *buf) argument
157 nilfs_snapshot_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
168 nilfs_snapshot_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t len) argument
241 nilfs_mounted_snapshots_README_show(struct nilfs_mounted_snapshots_attr *attr, struct the_nilfs *nilfs, char *buf) argument
263 nilfs_checkpoints_checkpoints_number_show(struct nilfs_checkpoints_attr *attr, struct the_nilfs *nilfs, char *buf) argument
286 nilfs_checkpoints_snapshots_number_show(struct nilfs_checkpoints_attr *attr, struct the_nilfs *nilfs, char *buf) argument
309 nilfs_checkpoints_last_seg_checkpoint_show(struct nilfs_checkpoints_attr *attr, struct the_nilfs *nilfs, char *buf) argument
323 nilfs_checkpoints_next_checkpoint_show(struct nilfs_checkpoints_attr *attr, struct the_nilfs *nilfs, char *buf) argument
346 nilfs_checkpoints_README_show(struct nilfs_checkpoints_attr *attr, struct the_nilfs *nilfs, char *buf) argument
376 nilfs_segments_segments_number_show(struct nilfs_segments_attr *attr, struct the_nilfs *nilfs, char *buf) argument
384 nilfs_segments_blocks_per_segment_show(struct nilfs_segments_attr *attr, struct the_nilfs *nilfs, char *buf) argument
392 nilfs_segments_clean_segments_show(struct nilfs_segments_attr *attr, struct the_nilfs *nilfs, char *buf) argument
406 nilfs_segments_dirty_segments_show(struct nilfs_segments_attr *attr, struct the_nilfs *nilfs, char *buf) argument
434 nilfs_segments_README_show(struct nilfs_segments_attr *attr, struct the_nilfs *nilfs, char *buf) argument
465 nilfs_segctor_last_pseg_block_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument
480 nilfs_segctor_last_seg_sequence_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument
494 nilfs_segctor_last_seg_checkpoint_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument
508 nilfs_segctor_current_seg_sequence_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument
522 nilfs_segctor_current_last_full_seg_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument
536 nilfs_segctor_next_full_seg_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument
550 nilfs_segctor_next_pseg_offset_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument
564 nilfs_segctor_next_checkpoint_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument
578 nilfs_segctor_last_seg_write_time_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument
592 nilfs_segctor_last_seg_write_time_secs_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument
606 nilfs_segctor_last_nongc_write_time_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument
620 nilfs_segctor_last_nongc_write_time_secs_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument
635 nilfs_segctor_dirty_data_blocks_count_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument
679 nilfs_segctor_README_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument
727 nilfs_superblock_sb_write_time_show(struct nilfs_superblock_attr *attr, struct the_nilfs *nilfs, char *buf) argument
741 nilfs_superblock_sb_write_time_secs_show(struct nilfs_superblock_attr *attr, struct the_nilfs *nilfs, char *buf) argument
755 nilfs_superblock_sb_write_count_show(struct nilfs_superblock_attr *attr, struct the_nilfs *nilfs, char *buf) argument
769 nilfs_superblock_sb_update_frequency_show(struct nilfs_superblock_attr *attr, struct the_nilfs *nilfs, char *buf) argument
783 nilfs_superblock_sb_update_frequency_store(struct nilfs_superblock_attr *attr, struct the_nilfs *nilfs, const char *buf, size_t count) argument
823 nilfs_superblock_README_show(struct nilfs_superblock_attr *attr, struct the_nilfs *nilfs, char *buf) argument
853 nilfs_dev_revision_show(struct nilfs_dev_attr *attr, struct the_nilfs *nilfs, char *buf) argument
865 nilfs_dev_blocksize_show(struct nilfs_dev_attr *attr, struct the_nilfs *nilfs, char *buf) argument
873 nilfs_dev_device_size_show(struct nilfs_dev_attr *attr, struct the_nilfs *nilfs, char *buf) argument
884 nilfs_dev_free_blocks_show(struct nilfs_dev_attr *attr, struct the_nilfs *nilfs, char *buf) argument
896 nilfs_dev_uuid_show(struct nilfs_dev_attr *attr, struct the_nilfs *nilfs, char *buf) argument
906 nilfs_dev_volume_name_show(struct nilfs_dev_attr *attr, struct the_nilfs *nilfs, char *buf) argument
926 nilfs_dev_README_show(struct nilfs_dev_attr *attr, struct the_nilfs *nilfs, char *buf) argument
952 nilfs_dev_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
963 nilfs_dev_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t len) argument
1072 nilfs_feature_revision_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
1084 nilfs_feature_README_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
[all...]
/fs/nfsd/
H A Dnfsctl.c59 static ssize_t write_filehandle(struct file *file, char *buf, size_t size);
60 static ssize_t write_unlock_ip(struct file *file, char *buf, size_t size);
61 static ssize_t write_unlock_fs(struct file *file, char *buf, size_t size);
62 static ssize_t write_threads(struct file *file, char *buf, size_t size);
63 static ssize_t write_pool_threads(struct file *file, char *buf, size_t size);
64 static ssize_t write_versions(struct file *file, char *buf, size_t size);
65 static ssize_t write_ports(struct file *file, char *buf, size_t size);
66 static ssize_t write_maxblksize(struct file *file, char *buf, size_t size);
67 static ssize_t write_maxconn(struct file *file, char *buf, size_t size);
69 static ssize_t write_leasetime(struct file *file, char *buf, size_
93 nfsctl_transaction_write(struct file *file, const char __user *buf, size_t size, loff_t *pos) argument
114 nfsctl_transaction_read(struct file *file, char __user *buf, size_t size, loff_t *pos) argument
249 write_unlock_ip(struct file *file, char *buf, size_t size) argument
288 write_unlock_fs(struct file *file, char *buf, size_t size) argument
345 write_filehandle(struct file *file, char *buf, size_t size) argument
428 write_threads(struct file *file, char *buf, size_t size) argument
472 write_pool_threads(struct file *file, char *buf, size_t size) argument
538 __write_versions(struct file *file, char *buf, size_t size) argument
669 write_versions(struct file *file, char *buf, size_t size) argument
683 __write_ports_names(char *buf, struct net *net) argument
697 __write_ports_addfd(char *buf, struct net *net) argument
731 __write_ports_addxprt(char *buf, struct net *net) argument
772 __write_ports(struct file *file, char *buf, size_t size, struct net *net) argument
830 write_ports(struct file *file, char *buf, size_t size) argument
865 write_maxblksize(struct file *file, char *buf, size_t size) argument
915 write_maxconn(struct file *file, char *buf, size_t size) argument
934 __nfsd4_write_time(struct file *file, char *buf, size_t size, time_t *time, struct nfsd_net *nn) argument
966 nfsd4_write_time(struct file *file, char *buf, size_t size, time_t *time, struct nfsd_net *nn) argument
998 write_leasetime(struct file *file, char *buf, size_t size) argument
1015 write_gracetime(struct file *file, char *buf, size_t size) argument
1022 __write_recoverydir(struct file *file, char *buf, size_t size, struct nfsd_net *nn) argument
1071 write_recoverydir(struct file *file, char *buf, size_t size) argument
1103 write_v4_end_grace(struct file *file, char *buf, size_t size) argument
[all...]
/fs/romfs/
H A Dstorage.c28 void *buf, size_t buflen)
33 ret = ROMFS_MTD_READ(sb, pos, buflen, &rlen, buf);
45 u_char buf[16], *p; local
52 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf);
55 p = memchr(buf, 0, len);
57 return n + (p - buf);
73 u_char buf[17]; local
79 buf[0] = 0xff;
83 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf);
87 if (memcmp(buf, st
27 romfs_mtd_read(struct super_block *sb, unsigned long pos, void *buf, size_t buflen) argument
107 romfs_blk_read(struct super_block *sb, unsigned long pos, void *buf, size_t buflen) argument
141 u_char *buf, *p; local
218 romfs_dev_read(struct super_block *sb, unsigned long pos, void *buf, size_t buflen) argument
[all...]
/fs/cifs/
H A Dsmb2file.c39 __u32 *oplock, FILE_ALL_INFO *buf)
70 if (buf) {
80 move_smb2_info_to_cifs(buf, smb2_data);
96 struct smb2_lock_element *buf, *cur; local
114 buf = kzalloc(max_num * sizeof(struct smb2_lock_element), GFP_KERNEL);
115 if (!buf)
118 cur = buf;
150 current->tgid, num, buf);
166 cur = buf;
174 num, buf);
38 smb2_open_file(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock, FILE_ALL_INFO *buf) argument
188 smb2_push_mand_fdlocks(struct cifs_fid_locks *fdlocks, const unsigned int xid, struct smb2_lock_element *buf, unsigned int max_num) argument
233 struct smb2_lock_element *buf; local
[all...]
/fs/exofs/
H A Dsys.c34 char *buf)
39 return a->show ? a->show(edp, buf) : 0;
43 const char *buf, size_t len)
48 return a->store ? a->store(edp, buf, len) : len;
59 static ssize_t osdname_show(struct exofs_dev *edp, char *buf) argument
64 return snprintf(buf, odi->osdname_len + 1, "%s", odi->osdname);
67 static ssize_t systemid_show(struct exofs_dev *edp, char *buf) argument
72 memcpy(buf, odi->systemid, odi->systemid_len);
76 static ssize_t uri_show(struct exofs_dev *edp, char *buf) argument
78 return snprintf(buf, ed
33 odev_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
42 odev_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t len) argument
81 uri_store(struct exofs_dev *edp, const char *buf, size_t len) argument
[all...]
/fs/hfsplus/
H A Dpart_tbl.c91 static int hfs_parse_new_pmap(struct super_block *sb, void *buf, argument
112 if ((u8 *)pm - (u8 *)buf >= buf_size) {
115 buf, (void **)&pm, READ);
131 void *buf, *data; local
134 buf = kmalloc(hfsplus_min_io_size(sb), GFP_KERNEL);
135 if (!buf)
139 buf, &data, READ);
148 res = hfs_parse_new_pmap(sb, buf, data, part_start, part_size);
155 kfree(buf);
/fs/btrfs/tests/
H A Dextent-buffer-tests.c36 char buf[32]; local
106 read_extent_buffer(eb, buf, btrfs_item_ptr_offset(eb, 0),
108 if (memcmp(buf, split1, strlen(split1))) {
111 (int)strlen(split1), buf, split1);
131 read_extent_buffer(eb, buf, btrfs_item_ptr_offset(eb, 1),
133 if (memcmp(buf, split2, strlen(split2))) {
163 read_extent_buffer(eb, buf, btrfs_item_ptr_offset(eb, 0),
165 if (memcmp(buf, split3, strlen(split3))) {
187 read_extent_buffer(eb, buf, btrfs_item_ptr_offset(eb, 1),
189 if (memcmp(buf, split
[all...]
/fs/jffs2/
H A Dwritev.c33 size_t *retlen, const u_char *buf)
36 ret = mtd_write(c->mtd, ofs, len, retlen, buf);
42 vecs[0].iov_base = (unsigned char *) buf;
32 jffs2_flash_direct_write(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, const u_char *buf) argument
H A Dread.c24 struct jffs2_full_dnode *fd, unsigned char *buf,
53 jffs2_dbg(1, "Node read from %08x: node_crc %08x, calculated CRC %08x. dsize %x, csize %x, offset %x, buf %p\n",
56 je32_to_cpu(ri->offset), buf);
80 memset(buf, 0, len);
91 readbuf = buf;
107 decomprbuf = buf;
143 memcpy(buf, decomprbuf+ofs, len);
146 if(decomprbuf != buf && decomprbuf != readbuf)
149 if(readbuf != buf)
158 unsigned char *buf, uint32_
23 jffs2_read_dnode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, struct jffs2_full_dnode *fd, unsigned char *buf, int ofs, int len) argument
157 jffs2_read_inode_range(struct jffs2_sb_info *c, struct jffs2_inode_info *f, unsigned char *buf, uint32_t offset, uint32_t len) argument
[all...]
/fs/ncpfs/
H A Dncpsign_kernel.c23 #define BVAL(buf,pos) (((const __u8 *)(buf))[pos])
24 #define PVAL(buf,pos) ((unsigned)BVAL(buf,pos))
25 #define BSET(buf,pos,val) (((__u8 *)(buf))[pos] = (val))
28 WVAL_LH(const __u8 * buf, int pos) argument
30 return PVAL(buf, pos) | PVAL(buf, pos + 1) << 8;
33 DVAL_LH(const __u8 * buf, in argument
38 WSET_LH(__u8 * buf, int pos, __u16 val) argument
44 DSET_LH(__u8 * buf, int pos, __u32 val) argument
[all...]
/fs/btrfs/
H A Dlzo.c34 void *buf; /* where decompressed data goes */ member in struct:workspace
43 vfree(workspace->buf);
58 workspace->buf = vmalloc(lzo1x_worst_compress(PAGE_CACHE_SIZE));
60 if (!workspace->mem || !workspace->buf || !workspace->cbuf)
71 static inline void write_compress_length(char *buf, size_t len) argument
76 memcpy(buf, &dlen, LZO_LEN);
79 static inline size_t read_compress_length(char *buf) argument
83 memcpy(&dlen, buf, LZO_LEN);
108 char *buf; local
160 buf
283 char *buf; local
[all...]
/fs/lockd/
H A Dprocfs.c20 nlm_end_grace_write(struct file *file, const char __user *buf, size_t size, argument
30 data = simple_transaction_get(file, buf, size);
48 nlm_end_grace_read(struct file *file, char __user *buf, size_t size, argument
59 return simple_read_from_buffer(buf, size, pos, resp, sizeof(resp));

Completed in 462 milliseconds

1234567891011>>