/fs/proc/ |
H A D | interrupts.c | 11 static void *int_seq_start(struct seq_file *f, loff_t *pos) argument 13 return (*pos <= nr_irqs) ? pos : NULL; 16 static void *int_seq_next(struct seq_file *f, void *v, loff_t *pos) argument 18 (*pos)++; 19 if (*pos > nr_irqs) 21 return pos;
|
H A D | devices.c | 26 static void *devinfo_start(struct seq_file *f, loff_t *pos) argument 28 if (*pos < (BLKDEV_MAJOR_HASH_SIZE + CHRDEV_MAJOR_HASH_SIZE)) 29 return pos; 33 static void *devinfo_next(struct seq_file *f, void *v, loff_t *pos) argument 35 (*pos)++; 36 if (*pos >= (BLKDEV_MAJOR_HASH_SIZE + CHRDEV_MAJOR_HASH_SIZE)) 38 return pos;
|
/fs/jffs2/ |
H A D | compr_rtime.c | 38 int pos=0; local 42 while (pos < (*sourcelen) && outpos <= (*dstlen)-2) { 46 value = data_in[pos]; 48 cpage_out[outpos++] = data_in[pos++]; 51 positions[value]=pos; 53 while ((backpos < pos) && (pos < (*sourcelen)) && 54 (data_in[pos]==data_in[backpos++]) && (runlen<255)) { 55 pos++; 61 if (outpos >= pos) { 79 int pos=0; local [all...] |
/fs/romfs/ |
H A D | storage.c | 27 static int romfs_mtd_read(struct super_block *sb, unsigned long pos, argument 33 ret = ROMFS_MTD_READ(sb, pos, buflen, &rlen, buf); 41 unsigned long pos, size_t maxlen) 52 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); 59 pos += len; 70 static int romfs_mtd_strcmp(struct super_block *sb, unsigned long pos, argument 83 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); 91 pos += len; 107 static int romfs_blk_read(struct super_block *sb, unsigned long pos, argument 116 offset = pos 40 romfs_mtd_strnlen(struct super_block *sb, unsigned long pos, size_t maxlen) argument 134 romfs_blk_strnlen(struct super_block *sb, unsigned long pos, size_t limit) argument 167 romfs_blk_strcmp(struct super_block *sb, unsigned long pos, const char *str, size_t size) argument 218 romfs_dev_read(struct super_block *sb, unsigned long pos, void *buf, size_t buflen) argument 243 romfs_dev_strnlen(struct super_block *sb, unsigned long pos, size_t maxlen) argument 271 romfs_dev_strcmp(struct super_block *sb, unsigned long pos, const char *str, size_t size) argument [all...] |
H A D | internal.h | 42 extern int romfs_dev_read(struct super_block *sb, unsigned long pos, 45 unsigned long pos, size_t maxlen); 46 extern int romfs_dev_strcmp(struct super_block *sb, unsigned long pos,
|
/fs/ncpfs/ |
H A D | file.c | 106 off_t pos; local 114 pos = *ppos; 121 if (pos > inode->i_sb->s_maxbytes) 123 if (pos + count > inode->i_sb->s_maxbytes) { 124 count = inode->i_sb->s_maxbytes - pos; 145 bufsize - (pos % bufsize), 150 pos, to_read, buf, &read_this_time, 156 pos += read_this_time; 166 *ppos = pos; 182 off_t pos; local [all...] |
H A D | ncpsign_kernel.c | 23 #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, int pos) argument 38 WSET_LH(__u8 * buf, int pos, __u16 val) argument 44 DSET_LH(__u8 * buf, int pos, __u32 val) argument [all...] |
/fs/ntfs/ |
H A D | bitmap.c | 55 int pos, len; local 84 /* Set @pos to the position of the byte containing @start_bit. */ 85 pos = (start_bit >> 3) & ~PAGE_CACHE_MASK; 92 u8 *byte = kaddr + pos; 104 /* Update @pos to the new position. */ 105 pos++; 111 len = min_t(s64, cnt >> 3, PAGE_CACHE_SIZE - pos); 112 memset(kaddr + pos, value ? 0xff : 0, len); 117 len += pos; 174 pos [all...] |
/fs/hpfs/ |
H A D | ea.c | 16 unsigned pos = 0; local 17 while (pos < len) { 20 if (pos + 4 > len) { 25 if (hpfs_ea_read(s, a, ano, pos, 4, ex)) return; 28 hpfs_error(s, "ea_indirect(ea) set while ea->valuelen!=8, %s %08x, pos %08x", 29 ano ? "anode" : "sectors", a, pos); 32 if (hpfs_ea_read(s, a, ano, pos + 4, ea->namelen + 9, ex+4)) 36 pos += ea->namelen + ea_valuelen(ea) + 5; 76 unsigned pos; local 95 pos 132 unsigned pos; local 194 unsigned pos; local [all...] |
H A D | dir.c | 26 loff_t pos; local 41 pos = ((loff_t) hpfs_de_as_down_as_possible(s, hpfs_inode->i_dno) << 4) + 1; 42 while (pos != new_off) { 43 if (map_pos_dirent(i, &pos, &qbh)) hpfs_brelse4(&qbh); 45 if (pos == 12) goto fail; 108 if (ctx->pos == 12) { /* diff -r requires this (note, that diff -r */ 109 ctx->pos = 13; /* also fails on msdos filesystem in 2.0) */ 112 if (ctx->pos == 13) { 123 if (hpfs_stop_cycles(inode->i_sb, ctx->pos, &c1, &c2, "hpfs_readdir")) { 127 if (ctx->pos [all...] |
/fs/ecryptfs/ |
H A D | read_write.c | 113 loff_t pos; local 118 * if we are writing beyond current size, then start pos 122 pos = ecryptfs_file_size; 124 pos = offset; 125 while (pos < (offset + size)) { 126 pgoff_t ecryptfs_page_idx = (pos >> PAGE_CACHE_SHIFT); 127 size_t start_offset_in_page = (pos & ~PAGE_CACHE_MASK); 129 loff_t total_remaining_bytes = ((offset + size) - pos); 138 if (pos < offset) { 140 loff_t total_remaining_zeros = (offset - pos); [all...] |
/fs/kernfs/ |
H A D | dir.c | 236 struct kernfs_node *pos; local 239 pos = rb_to_kn(*node); 241 result = kernfs_sd_compare(kn, pos); 243 node = &pos->rb.rb_left; 245 node = &pos->rb.rb_right; 894 static struct kernfs_node *kernfs_leftmost_descendant(struct kernfs_node *pos) argument 901 last = pos; 903 if (kernfs_type(pos) != KERNFS_DIR) 906 rbn = rb_first(&pos->dir.children); 910 pos 925 kernfs_next_descendant_post(struct kernfs_node *pos, struct kernfs_node *root) argument 964 struct kernfs_node *pos; local 985 struct kernfs_node *pos; local 1316 kernfs_dir_pos(const void *ns, struct kernfs_node *parent, loff_t hash, struct kernfs_node *pos) argument 1350 kernfs_dir_next_pos(const void *ns, struct kernfs_node *parent, ino_t ino, struct kernfs_node *pos) argument 1370 struct kernfs_node *pos = file->private_data; local [all...] |
/fs/ |
H A D | read_write.c | 344 loff_t pos; local 350 pos = *ppos; 351 if (unlikely(pos < 0)) { 354 if (count >= -pos) /* both values are in 0..LLONG_MAX */ 356 } else if (unlikely((loff_t) (pos + count) < 0)) { 364 inode, file, pos, count); 415 ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos) argument 426 ret = rw_verify_area(READ, file, pos, count); 430 ret = file->f_op->read(file, buf, count, pos); 432 ret = do_sync_read(file, buf, count, pos); 487 __kernel_write(struct file *file, const char *buf, size_t count, loff_t *pos) argument 518 vfs_write(struct file *file, const char __user *buf, size_t count, loff_t *pos) argument 557 file_pos_write(struct file *file, loff_t pos) argument 568 loff_t pos = file_pos_read(f.file); local 584 loff_t pos = file_pos_read(f.file); local 801 do_readv_writev(int type, struct file *file, const struct iovec __user * uvector, unsigned long nr_segs, loff_t *pos) argument 859 vfs_readv(struct file *file, const struct iovec __user *vec, unsigned long vlen, loff_t *pos) argument 872 vfs_writev(struct file *file, const struct iovec __user *vec, unsigned long vlen, loff_t *pos) argument 892 loff_t pos = file_pos_read(f.file); local 912 loff_t pos = file_pos_read(f.file); local 934 loff_t pos = pos_from_hilo(pos_h, pos_l); local 958 loff_t pos = pos_from_hilo(pos_h, pos_l); local 981 compat_do_readv_writev(int type, struct file *file, const struct compat_iovec __user *uvector, unsigned long nr_segs, loff_t *pos) argument 1039 compat_readv(struct file *file, const struct compat_iovec __user *vec, unsigned long vlen, loff_t *pos) argument 1067 loff_t pos; local 1079 __compat_sys_preadv64(unsigned long fd, const struct compat_iovec __user *vec, unsigned long vlen, loff_t pos) argument 1111 loff_t pos = ((loff_t)pos_high << 32) | pos_low; local 1116 compat_writev(struct file *file, const struct compat_iovec __user *vec, unsigned long vlen, loff_t *pos) argument 1144 loff_t pos; local 1156 __compat_sys_pwritev64(unsigned long fd, const struct compat_iovec __user *vec, unsigned long vlen, loff_t pos) argument 1188 loff_t pos = ((loff_t)pos_high << 32) | pos_low; local 1199 loff_t pos; local 1296 loff_t pos; local 1315 loff_t pos; local 1334 loff_t pos; local 1354 loff_t pos; local [all...] |
/fs/ext3/ |
H A D | dir.c | 113 offset = ctx->pos & (sb->s_blocksize - 1); 115 while (ctx->pos < inode->i_size) { 116 unsigned long blk = ctx->pos >> EXT3_BLOCK_SIZE_BITS(sb); 142 inode->i_ino, ctx->pos); 146 if (ctx->pos > inode->i_blocks << 9) 148 ctx->pos += sb->s_blocksize - offset; 172 ctx->pos = (ctx->pos & ~(sb->s_blocksize - 1)) 177 while (ctx->pos < inode->i_size 184 ctx->pos 235 pos2maj_hash(struct file *filp, loff_t pos) argument 244 pos2min_hash(struct file *filp, loff_t pos) argument 324 ext3_htree_create_dir_info(struct file *filp, loff_t pos) argument [all...] |
/fs/cifs/ |
H A D | cifs_dfs_ref.c | 69 char *pos; local 76 /* get length of UNC and set pos to last char */ 78 pos = nodename + unclen - 1; 81 while (*pos == '\\') { 82 --pos; 96 pos = dev; 98 *pos = '/'; 99 ++pos; 100 *pos = '/'; 101 ++pos; [all...] |
/fs/qnx4/ |
H A D | dir.c | 29 QNX4DEBUG((KERN_INFO "pos = %ld\n", (long) ctx->pos)); 31 while (ctx->pos < inode->i_size) { 32 blknum = qnx4_block_map(inode, ctx->pos >> QNX4_BLOCK_SIZE_BITS); 38 ix = (ctx->pos >> QNX4_DIR_ENTRY_SIZE_BITS) % QNX4_INODES_PER_BLOCK; 39 for (; ix < QNX4_INODES_PER_BLOCK; ix++, ctx->pos += QNX4_DIR_ENTRY_SIZE) {
|
/fs/freevxfs/ |
H A D | vxfs_lookup.c | 244 loff_t pos; local 246 if (ctx->pos == 0) { 249 ctx->pos = 1; 251 if (ctx->pos == 1) { 254 ctx->pos = 2; 256 pos = ctx->pos - 2; 258 if (pos > VXFS_DIRROUND(ip->i_size)) 265 page = pos >> PAGE_CACHE_SHIFT; 266 offset = pos [all...] |
/fs/sysv/ |
H A D | dir.c | 41 static int dir_commit_chunk(struct page *page, loff_t pos, unsigned len) argument 47 block_write_end(NULL, mapping, pos, len, len, page, NULL); 48 if (pos+len > dir->i_size) { 49 i_size_write(dir, pos+len); 70 unsigned long pos = ctx->pos; local 77 ctx->pos = pos = (pos + SYSV_DIRSIZE-1) & ~(SYSV_DIRSIZE-1); 78 if (pos > 187 loff_t pos; local 238 loff_t pos = page_offset(page) + (char *)de - kaddr; local 335 loff_t pos = page_offset(page) + local [all...] |
/fs/affs/ |
H A D | dir.c | 58 __func__, inode->i_ino, (unsigned long)ctx->pos); 60 if (ctx->pos < 2) { 67 chain_pos = (ctx->pos - 2) & 0xffff; 68 hash_pos = (ctx->pos - 2) >> 16; 73 ctx->pos = ((hash_pos << 16) | chain_pos) + 2; 108 ctx->pos = (hash_pos << 16) + 2; 122 namelen, name, ino, hash_pos, (u32)ctx->pos); 126 ctx->pos++;
|
/fs/befs/ |
H A D | datastream.h | 7 befs_data_stream * ds, befs_off_t pos,
|
/fs/ext4/ |
H A D | dir.c | 136 offset = ctx->pos & (sb->s_blocksize - 1); 138 while (ctx->pos < inode->i_size) { 142 map.m_lblk = ctx->pos >> EXT4_BLOCK_SIZE_BITS(sb); 164 (unsigned long long) ctx->pos); 168 if (ctx->pos > inode->i_blocks << 9) 170 ctx->pos += sb->s_blocksize - offset; 180 (unsigned long long)ctx->pos); 181 ctx->pos += sb->s_blocksize - offset; 208 ctx->pos = (ctx->pos 277 pos2maj_hash(struct file *filp, loff_t pos) argument 286 pos2min_hash(struct file *filp, loff_t pos) argument 366 ext4_htree_create_dir_info(struct file *filp, loff_t pos) argument [all...] |
/fs/hfs/ |
H A D | bitmap.c | 142 u32 pos; local 151 pos = hfs_find_set_zero_bits(bitmap, HFS_SB(sb)->fs_ablocks, goal, num_bits); 152 if (pos >= HFS_SB(sb)->fs_ablocks) { 154 pos = hfs_find_set_zero_bits(bitmap, goal, 0, num_bits); 155 if (pos >= HFS_SB(sb)->fs_ablocks) { 156 *num_bits = pos = 0; 161 hfs_dbg(BITMAP, "alloc_bits: %u,%u\n", pos, *num_bits); 166 return pos;
|
/fs/cachefiles/ |
H A D | proc.c | 66 static void *cachefiles_histogram_next(struct seq_file *m, void *v, loff_t *pos) argument 68 (*pos)++; 69 return (unsigned long long)*pos > HZ + 2 ? 70 NULL : (void *)(unsigned long) *pos;
|
/fs/efs/ |
H A D | dir.c | 33 block = ctx->pos >> EFS_DIRBSIZE_BITS; 36 slot = ctx->pos & 0xff; 80 ctx->pos = (block << EFS_DIRBSIZE_BITS) | slot; 100 ctx->pos = (block << EFS_DIRBSIZE_BITS) | slot;
|
/fs/fscache/ |
H A D | histogram.c | 72 static void *fscache_histogram_next(struct seq_file *m, void *v, loff_t *pos) argument 74 (*pos)++; 75 return (unsigned long long)*pos > HZ + 2 ? 76 NULL : (void *)(unsigned long) *pos;
|