Home
last modified time | relevance | path

Searched refs:f_pos (Results 1 – 25 of 216) sorted by relevance

123456789

/linux-2.4.37.9/fs/affs/
Ddir.c61 u32 f_pos; in affs_readdir() local
66 pr_debug("AFFS: readdir(ino=%lu,f_pos=%lx)\n",inode->i_ino,(unsigned long)filp->f_pos); in affs_readdir()
72 f_pos = filp->f_pos; in affs_readdir()
74 if (f_pos == 0) { in affs_readdir()
76 if (filldir(dirent, ".", 1, f_pos, inode->i_ino, DT_DIR) < 0) in affs_readdir()
78 filp->f_pos = f_pos = 1; in affs_readdir()
81 if (f_pos == 1) { in affs_readdir()
82 if (filldir(dirent, "..", 2, f_pos, filp->f_dentry->d_parent->d_inode->i_ino, DT_DIR) < 0) in affs_readdir()
84 filp->f_pos = f_pos = 2; in affs_readdir()
89 chain_pos = (f_pos - 2) & 0xffff; in affs_readdir()
[all …]
/linux-2.4.37.9/fs/hpfs/
Ddir.c16 hpfs_del_pos(inode, &filp->f_pos); in hpfs_dir_release()
26 loff_t new_off = off + (whence == 1 ? filp->f_pos : 0); in hpfs_dir_lseek()
42 return filp->f_pos = new_off; in hpfs_dir_lseek()
83 if (filp->f_pos == 12) { /* diff -r requires this (note, that diff -r */ in hpfs_readdir()
84 filp->f_pos = 13; /* also fails on msdos filesystem in 2.0) */ in hpfs_readdir()
87 if (filp->f_pos == 13) return -ENOENT; in hpfs_readdir()
97 if (hpfs_stop_cycles(inode->i_sb, filp->f_pos, &c1, &c2, "hpfs_readdir")) { in hpfs_readdir()
101 if (filp->f_pos == 12) { in hpfs_readdir()
105 if (filp->f_pos == 3 || filp->f_pos == 4 || filp->f_pos == 5) { in hpfs_readdir()
106 printk("HPFS: warning: pos==%d\n",(int)filp->f_pos); in hpfs_readdir()
[all …]
/linux-2.4.37.9/fs/hfs/
Ddir_cap.c191 if (filp->f_pos == 0) { in cap_readdir()
196 filp->f_pos = 1; in cap_readdir()
199 if (filp->f_pos == 1) { in cap_readdir()
213 filp->f_pos = 2; in cap_readdir()
216 if (filp->f_pos < (dir->i_size - 3)) { in cap_readdir()
221 hfs_cat_next(entry, &brec, filp->f_pos - 2, &cnid, &type)) { in cap_readdir()
224 while (filp->f_pos < (dir->i_size - 3)) { in cap_readdir()
237 filp->f_pos, ino, DT_UNKNOWN)) { in cap_readdir()
242 ++filp->f_pos; in cap_readdir()
247 if (filp->f_pos == (dir->i_size - 3)) { in cap_readdir()
[all …]
Ddir_nat.c192 if (filp->f_pos == 0) { in nat_readdir()
198 filp->f_pos = 1; in nat_readdir()
201 if (filp->f_pos == 1) { in nat_readdir()
215 filp->f_pos = 2; in nat_readdir()
218 if (filp->f_pos < (dir->i_size - 2)) { in nat_readdir()
223 hfs_cat_next(entry, &brec, filp->f_pos - 2, &cnid, &type)) { in nat_readdir()
226 while (filp->f_pos < (dir->i_size - 2)) { in nat_readdir()
239 filp->f_pos, ino, DT_UNKNOWN)) { in nat_readdir()
244 ++filp->f_pos; in nat_readdir()
249 if (filp->f_pos == (dir->i_size - 2)) { in nat_readdir()
[all …]
Ddir_dbl.c184 if (filp->f_pos == 0) { in dbl_readdir()
190 filp->f_pos = 1; in dbl_readdir()
193 if (filp->f_pos == 1) { in dbl_readdir()
199 filp->f_pos = 2; in dbl_readdir()
202 if (filp->f_pos < (dir->i_size - 1)) { in dbl_readdir()
207 hfs_cat_next(entry, &brec, (filp->f_pos - 1) >> 1, in dbl_readdir()
212 while (filp->f_pos < (dir->i_size - 1)) { in dbl_readdir()
215 int is_hdr = (filp->f_pos & 1); in dbl_readdir()
233 if (filldir(dirent, tmp_name, len, filp->f_pos, ino, in dbl_readdir()
238 ++filp->f_pos; in dbl_readdir()
[all …]
/linux-2.4.37.9/fs/ext3/
Ddir.c85 offset = filp->f_pos & (sb->s_blocksize - 1); in ext3_readdir()
87 while (!error && !stored && filp->f_pos < inode->i_size) { in ext3_readdir()
88 blk = (filp->f_pos) >> EXT3_BLOCK_SIZE_BITS(sb); in ext3_readdir()
94 inode->i_ino, filp->f_pos); in ext3_readdir()
97 filp->f_pos += sb->s_blocksize - offset; in ext3_readdir()
142 filp->f_pos = (filp->f_pos & ~(sb->s_blocksize - 1)) in ext3_readdir()
147 while (!error && filp->f_pos < inode->i_size in ext3_readdir()
154 filp->f_pos = (filp->f_pos | in ext3_readdir()
178 filp->f_pos, in ext3_readdir()
187 filp->f_pos += le16_to_cpu(de->rec_len); in ext3_readdir()
/linux-2.4.37.9/fs/isofs/
Ddir.c118 offset = filp->f_pos & (bufsize - 1); in do_isofs_readdir()
119 block = filp->f_pos >> bufbits; in do_isofs_readdir()
122 while (filp->f_pos < inode->i_size) { in do_isofs_readdir()
144 filp->f_pos = (filp->f_pos + ISOFS_BLOCK_SIZE) & ~(ISOFS_BLOCK_SIZE - 1); in do_isofs_readdir()
145 block = filp->f_pos >> bufbits; in do_isofs_readdir()
171 filp->f_pos += de_len; in do_isofs_readdir()
178 if (filldir(dirent, ".", 1, filp->f_pos, inode->i_ino, DT_DIR) < 0) in do_isofs_readdir()
180 filp->f_pos += de_len; in do_isofs_readdir()
189 if (filldir(dirent, "..", 2, filp->f_pos, inode_number, DT_DIR) < 0) in do_isofs_readdir()
191 filp->f_pos += de_len; in do_isofs_readdir()
[all …]
Dnamei.c65 unsigned int block, f_pos, offset; in isofs_find_entry() local
71 f_pos = 0; in isofs_find_entry()
75 while (f_pos < dir->i_size) { in isofs_find_entry()
93 f_pos = (f_pos + ISOFS_BLOCK_SIZE) & ~(ISOFS_BLOCK_SIZE - 1); in isofs_find_entry()
94 block = f_pos >> bufbits; in isofs_find_entry()
100 f_pos += de_len; in isofs_find_entry()
/linux-2.4.37.9/fs/qnx4/
Ddir.c35 QNX4DEBUG(("filp->f_pos = %ld\n", (long) filp->f_pos)); in qnx4_readdir()
37 while (filp->f_pos < inode->i_size) { in qnx4_readdir()
38 blknum = qnx4_block_map( inode, filp->f_pos >> QNX4_BLOCK_SIZE_BITS ); in qnx4_readdir()
44 ix = (int)(filp->f_pos >> QNX4_DIR_ENTRY_SIZE_BITS) % QNX4_INODES_PER_BLOCK; in qnx4_readdir()
65 if (filldir(dirent, de->di_fname, size, filp->f_pos, ino, DT_UNKNOWN) < 0) { in qnx4_readdir()
72 filp->f_pos += QNX4_DIR_ENTRY_SIZE; in qnx4_readdir()
/linux-2.4.37.9/fs/efs/
Ddir.c35 block = filp->f_pos >> EFS_DIRBSIZE_BITS; in efs_readdir()
38 slot = filp->f_pos & 0xff; in efs_readdir()
75 filp->f_pos = (block << EFS_DIRBSIZE_BITS) | slot; in efs_readdir()
78 filldir(dirent, nameptr, namelen, filp->f_pos, inodenum, DT_UNKNOWN); in efs_readdir()
93 filp->f_pos = (block << EFS_DIRBSIZE_BITS) | slot; in efs_readdir()
104 filp->f_pos = (block << EFS_DIRBSIZE_BITS) | slot; in efs_readdir()
/linux-2.4.37.9/fs/
Dreaddir.c56 offset += file->f_pos; in dcache_dir_lseek()
64 if (offset != file->f_pos) { in dcache_dir_lseek()
65 file->f_pos = offset; in dcache_dir_lseek()
66 if (file->f_pos >= 2) { in dcache_dir_lseek()
69 loff_t n = file->f_pos - 2; in dcache_dir_lseek()
106 int i = filp->f_pos; in dcache_readdir()
113 filp->f_pos++; in dcache_readdir()
122 filp->f_pos++; in dcache_readdir()
127 if (filp->f_pos == 2) { in dcache_readdir()
138 …if (filldir(dirent, next->d_name.name, next->d_name.len, filp->f_pos, next->d_inode->i_ino, DT_UNK… in dcache_readdir()
[all …]
Dread_write.c74 offset += file->f_pos; in generic_file_llseek()
78 if (offset != file->f_pos) { in generic_file_llseek()
79 file->f_pos = offset; in generic_file_llseek()
102 offset += file->f_pos; in default_llseek()
106 if (offset != file->f_pos) { in default_llseek()
107 file->f_pos = offset; in default_llseek()
193 ret = rw_verify_area(READ, file, &file->f_pos, count); in sys_read()
199 ret = read(file, buf, count, &file->f_pos); in sys_read()
218 ret = rw_verify_area(WRITE, file, &file->f_pos, count); in sys_write()
223 ret = write(file, buf, count, &file->f_pos); in sys_write()
[all …]
/linux-2.4.37.9/fs/umsdos/
Ddir.c109 if (filp->f_pos == UMSDOS_SPECIAL_DIRFPOS && dir == pseudo_root) { in umsdos_readdir_x()
125 filp->f_pos++; in umsdos_readdir_x()
130 if (filp->f_pos < 2 || in umsdos_readdir_x()
131 (dir->i_ino != UMSDOS_ROOT_INO && filp->f_pos == 32)) { in umsdos_readdir_x()
133 int last_f_pos = filp->f_pos; in umsdos_readdir_x()
143 if (last_f_pos > 0 && filp->f_pos > last_f_pos) in umsdos_readdir_x()
144 filp->f_pos = UMSDOS_SPECIAL_DIRFPOS; in umsdos_readdir_x()
165 pos = filp->f_pos; in umsdos_readdir_x()
166 start_fpos = filp->f_pos; in umsdos_readdir_x()
190 info.f_pos = cur_f_pos; in umsdos_readdir_x()
[all …]
/linux-2.4.37.9/drivers/parport/
Dprocfs.c44 if (filp->f_pos) { in do_active_device()
64 filp->f_pos += len; in do_active_device()
81 if (filp->f_pos) { in do_autoprobe()
106 filp->f_pos += len; in do_autoprobe()
120 if (filp->f_pos) { in do_hardware_base_addr()
135 filp->f_pos += len; in do_hardware_base_addr()
148 if (filp->f_pos) { in do_hardware_irq()
163 filp->f_pos += len; in do_hardware_irq()
176 if (filp->f_pos) { in do_hardware_dma()
191 filp->f_pos += len; in do_hardware_dma()
[all …]
/linux-2.4.37.9/fs/udf/
Ddir.c86 if ( filp->f_pos == 0 ) in udf_readdir()
88 if (filldir(dirent, ".", 1, filp->f_pos, dir->i_ino, DT_DIR) < 0) in udf_readdir()
90 filp->f_pos ++; in udf_readdir()
105 loff_t nf_pos = filp->f_pos - 1; in do_udf_readdir()
176 filp->f_pos = nf_pos + 1; in do_udf_readdir()
238 if (filldir(dirent, fname, flen, filp->f_pos, iblock, dt_type) < 0) in do_udf_readdir()
249 filp->f_pos = nf_pos + 1; in do_udf_readdir()
/linux-2.4.37.9/fs/adfs/
Ddir.c38 if (filp->f_pos >> 32) in adfs_readdir()
45 switch ((unsigned long)filp->f_pos) { in adfs_readdir()
49 filp->f_pos += 1; in adfs_readdir()
54 filp->f_pos += 1; in adfs_readdir()
62 ret = ops->setpos(&dir, filp->f_pos - 2); in adfs_readdir()
67 filp->f_pos, obj.file_id, DT_UNKNOWN) < 0) in adfs_readdir()
69 filp->f_pos += 1; in adfs_readdir()
/linux-2.4.37.9/fs/freevxfs/
Dvxfs_lookup.c246 switch ((long)fp->f_pos) { in vxfs_readdir()
248 if (filler(retp, ".", 1, fp->f_pos, ip->i_ino, DT_DIR) < 0) in vxfs_readdir()
250 fp->f_pos++; in vxfs_readdir()
253 if (filler(retp, "..", 2, fp->f_pos, VXFS_INO(ip)->vii_dotdot, DT_DIR) < 0) in vxfs_readdir()
255 fp->f_pos++; in vxfs_readdir()
259 pos = fp->f_pos - 2; in vxfs_readdir()
319 fp->f_pos = ((page << PAGE_CACHE_SHIFT) | offset) + 2; in vxfs_readdir()
/linux-2.4.37.9/drivers/usb/
Ddrivers.c101 file->f_pos = offset; in usb_driver_lseek()
102 return file->f_pos; in usb_driver_lseek()
105 file->f_pos += offset; in usb_driver_lseek()
106 return file->f_pos; in usb_driver_lseek()
/linux-2.4.37.9/fs/ufs/
Ddir.c68 UFSD(("ENTER, ino %lu f_pos %lu\n", inode->i_ino, (unsigned long) filp->f_pos)) in ufs_readdir()
72 offset = filp->f_pos & (sb->s_blocksize - 1); in ufs_readdir()
74 while (!error && !stored && filp->f_pos < inode->i_size) { in ufs_readdir()
75 lblk = (filp->f_pos) >> sb->s_blocksize_bits; in ufs_readdir()
81 inode->i_ino, (unsigned long int)filp->f_pos); in ufs_readdir()
82 filp->f_pos += sb->s_blocksize - offset; in ufs_readdir()
106 filp->f_pos = (filp->f_pos & ~(sb->s_blocksize - 1)) in ufs_readdir()
111 while (!error && filp->f_pos < inode->i_size in ufs_readdir()
116 filp->f_pos = (filp->f_pos & in ufs_readdir()
126 filp->f_pos = (filp->f_pos | in ufs_readdir()
[all …]
/linux-2.4.37.9/arch/x86_64/kernel/
Dcpuid.c87 file->f_pos = offset; in cpuid_seek()
88 return file->f_pos; in cpuid_seek()
90 file->f_pos += offset; in cpuid_seek()
91 return file->f_pos; in cpuid_seek()
/linux-2.4.37.9/arch/i386/kernel/
Dcpuid.c87 file->f_pos = offset; in cpuid_seek()
88 return file->f_pos; in cpuid_seek()
90 file->f_pos += offset; in cpuid_seek()
91 return file->f_pos; in cpuid_seek()
/linux-2.4.37.9/fs/bfs/
Ddir.c35 if (f->f_pos & (BFS_DIRENT_SIZE-1)) { in bfs_readdir()
36 printf("Bad f_pos=%08lx for %s:%08lx\n", (unsigned long)f->f_pos, in bfs_readdir()
41 while (f->f_pos < dir->i_size) { in bfs_readdir()
42 offset = f->f_pos & (BFS_BSIZE-1); in bfs_readdir()
43 block = dir->iu_sblock + (f->f_pos >> BFS_BSIZE_BITS); in bfs_readdir()
46 f->f_pos += BFS_BSIZE - offset; in bfs_readdir()
53 if (filldir(dirent, de->name, size, f->f_pos, de->ino, DT_UNKNOWN) < 0) { in bfs_readdir()
59 f->f_pos += BFS_DIRENT_SIZE; in bfs_readdir()
60 } while (offset < BFS_BSIZE && f->f_pos < dir->i_size); in bfs_readdir()
/linux-2.4.37.9/drivers/sbus/char/
Dflash.c88 file->f_pos = offset; in flash_llseek()
91 file->f_pos += offset; in flash_llseek()
92 if (file->f_pos > flash.read_size) in flash_llseek()
93 file->f_pos = flash.read_size; in flash_llseek()
96 file->f_pos = flash.read_size; in flash_llseek()
101 return file->f_pos; in flash_llseek()
/linux-2.4.37.9/fs/devpts/
Droot.c50 nr = filp->f_pos; in devpts_root_readdir()
57 filp->f_pos = ++nr; in devpts_root_readdir()
62 filp->f_pos = ++nr; in devpts_root_readdir()
72 filp->f_pos = ++nr; in devpts_root_readdir()
/linux-2.4.37.9/arch/cris/drivers/
Deeprom.c464 file->f_pos = offset; in eeprom_lseek()
467 file->f_pos += offset; in eeprom_lseek()
470 file->f_pos = eeprom.size - offset; in eeprom_lseek()
477 if (file->f_pos < 0) in eeprom_lseek()
479 file->f_pos = 0; in eeprom_lseek()
483 if (file->f_pos >= eeprom.size) in eeprom_lseek()
485 file->f_pos = eeprom.size - 1; in eeprom_lseek()
489 return ( file->f_pos ); in eeprom_lseek()
498 f.f_pos = addr; in eeprom_read_buf()
577 f.f_pos = addr; in eeprom_write_buf()

123456789