/fs/btrfs/tests/ |
H A D | extent-buffer-tests.c | 36 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/cifs/ |
H A D | smb2maperror.c | 2450 map_smb2_to_linux_error(char *buf, bool log_err) argument 2452 struct smb2_hdr *hdr = (struct smb2_hdr *)buf;
|
H A D | smb2file.c | 39 __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/jffs2/ |
H A D | writev.c | 33 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 D | read.c | 24 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/lockd/ |
H A D | procfs.c | 20 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));
|
/fs/ocfs2/cluster/ |
H A D | sys.c | 39 char *buf) 41 return snprintf(buf, PAGE_SIZE, "%u\n", O2NM_API_VERSION); 38 version_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
|
H A D | masklog.c | 36 static ssize_t mlog_mask_show(u64 mask, char *buf) argument 47 return snprintf(buf, PAGE_SIZE, "%s\n", state); 50 static ssize_t mlog_mask_store(u64 mask, const char *buf, size_t count) argument 52 if (!strncasecmp(buf, "allow", 5)) { 55 } else if (!strncasecmp(buf, "deny", 4)) { 58 } else if (!strncasecmp(buf, "off", 3)) { 108 char *buf) 112 return mlog_mask_show(mlog_attr->mask, buf); 116 const char *buf, size_t count) 120 return mlog_mask_store(mlog_attr->mask, buf, coun 107 mlog_show(struct kobject *obj, struct attribute *attr, char *buf) argument 115 mlog_store(struct kobject *obj, struct attribute *attr, const char *buf, size_t count) argument [all...] |
/fs/proc/ |
H A D | kmsg.c | 33 static ssize_t kmsg_read(struct file *file, char __user *buf, argument 39 return do_syslog(SYSLOG_ACTION_READ, buf, count, SYSLOG_FROM_PROC);
|
H A D | page.c | 23 static ssize_t kpagecount_read(struct file *file, char __user *buf, argument 26 u64 __user *out = (u64 __user *)buf; 58 *ppos += (char __user *)out - buf; 60 ret = (char __user *)out - buf; 177 static ssize_t kpageflags_read(struct file *file, char __user *buf, argument 180 u64 __user *out = (u64 __user *)buf; 207 *ppos += (char __user *)out - buf; 209 ret = (char __user *)out - buf;
|
/fs/ecryptfs/ |
H A D | super.c | 99 * @buf: The struct kstatfs to fill in with stats 104 static int ecryptfs_statfs(struct dentry *dentry, struct kstatfs *buf) argument 112 rc = lower_dentry->d_sb->s_op->statfs(lower_dentry, buf); 116 buf->f_type = ECRYPTFS_SUPER_MAGIC; 117 rc = ecryptfs_set_f_namelen(&buf->f_namelen, buf->f_namelen,
|
/fs/sysfs/ |
H A D | dir.c | 24 char *buf, *path = NULL; local 26 buf = kzalloc(PATH_MAX, GFP_KERNEL); 27 if (buf) 28 path = kernfs_path(parent, buf, PATH_MAX); 33 kfree(buf);
|
/fs/9p/ |
H A D | vfs_dir.c | 47 * @buf: dirread buffer 56 uint8_t buf[]; member in struct:p9_rdir 130 err = v9fs_file_readn(file, rdir->buf, NULL, 140 err = p9stat_read(fid->clnt, rdir->buf + rdir->head, 186 err = p9_client_readdir(fid, rdir->buf, buflen, 197 err = p9dirent_read(fid->clnt, rdir->buf + rdir->head,
|
H A D | vfs_super.c | 245 static int v9fs_statfs(struct dentry *dentry, struct kstatfs *buf) argument 262 buf->f_type = rs.type; 263 buf->f_bsize = rs.bsize; 264 buf->f_blocks = rs.blocks; 265 buf->f_bfree = rs.bfree; 266 buf->f_bavail = rs.bavail; 267 buf->f_files = rs.files; 268 buf->f_ffree = rs.ffree; 269 buf->f_fsid.val[0] = rs.fsid & 0xFFFFFFFFUL; 270 buf [all...] |
/fs/coda/ |
H A D | file.c | 30 coda_file_read(struct file *coda_file, char __user *buf, size_t count, loff_t *ppos) argument 42 return host_file->f_op->read(host_file, buf, count, ppos); 67 coda_file_write(struct file *coda_file, const char __user *buf, size_t count, loff_t *ppos) argument 85 ret = host_file->f_op->write(host_file, buf, count, ppos);
|
/fs/f2fs/ |
H A D | hash.c | 28 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/freevxfs/ |
H A D | vxfs_bmap.c | 86 struct buffer_head *buf; local 90 buf = sb_bread(sb, vip->vii_ext4.ve4_indir[0]); 91 if (!buf || !buffer_mapped(buf)) 94 indir = (u32 *)buf->b_data; 97 brelse(buf);
|
/fs/ncpfs/ |
H A D | symlink.c | 47 char *buf = kmap(page); local 78 error = ncp_vol2io(NCP_SERVER(inode), buf, &len, link, length, 0);
|
/fs/nfsd/ |
H A D | fault_inject.c | 27 static ssize_t fault_inject_read(struct file *file, char __user *buf, argument 40 return simple_read_from_buffer(buf, len, ppos, read_buf, size); 43 static ssize_t fault_inject_write(struct file *file, const char __user *buf, argument 54 if (copy_from_user(write_buf, buf, size))
|
/fs/pstore/ |
H A D | ftrace.c | 59 static ssize_t pstore_ftrace_knob_write(struct file *f, const char __user *buf, argument 65 ret = kstrtou8_from_user(buf, count, 2, &on); 93 static ssize_t pstore_ftrace_knob_read(struct file *f, char __user *buf, argument 98 return simple_read_from_buffer(buf, count, ppos, val, sizeof(val));
|
H A D | pmsg.c | 24 static ssize_t write_pmsg(struct file *file, const char __user *buf, argument 33 if (!access_ok(VERIFY_READ, buf, count)) 49 ret = __copy_from_user(buffer, buf + i, c);
|
/fs/romfs/ |
H A D | storage.c | 28 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/xfs/libxfs/ |
H A D | xfs_symlink_remote.c | 181 char *buf; local 198 buf = bp->b_addr; 199 buf += xfs_symlink_hdr_set(mp, ip->i_ino, 0, ifp->if_bytes, bp); 200 memcpy(buf, ifp->if_u1.if_data, ifp->if_bytes);
|
/fs/afs/ |
H A D | mntpt.c | 57 char *buf; local 75 buf = kmap(page); 79 _debug("symlink to %*.*s", (int) size, (int) size, buf); 82 (buf[0] == '%' || buf[0] == '#') && 83 buf[size - 1] == '.' 187 char *buf; local 203 buf = kmap_atomic(page); 204 memcpy(devname, buf, size); 205 kunmap_atomic(buf); [all...] |
/fs/ |
H A D | binfmt_som.c | 108 int *buf = (int *)som_ex; local 127 ck ^= buf[i]; 193 som_ex = (struct som_hdr *) bprm->buf;
|