Home
last modified time | relevance | path

Searched refs:loff_t (Results 1 – 200 of 1724) sorted by relevance

123456789

/linux-4.1.27/include/linux/mtd/
Dmtd.h190 int (*_point) (struct mtd_info *mtd, loff_t from, size_t len,
192 int (*_unpoint) (struct mtd_info *mtd, loff_t from, size_t len);
197 int (*_read) (struct mtd_info *mtd, loff_t from, size_t len,
199 int (*_write) (struct mtd_info *mtd, loff_t to, size_t len,
201 int (*_panic_write) (struct mtd_info *mtd, loff_t to, size_t len,
203 int (*_read_oob) (struct mtd_info *mtd, loff_t from,
205 int (*_write_oob) (struct mtd_info *mtd, loff_t to,
209 int (*_read_fact_prot_reg) (struct mtd_info *mtd, loff_t from,
213 int (*_read_user_prot_reg) (struct mtd_info *mtd, loff_t from,
215 int (*_write_user_prot_reg) (struct mtd_info *mtd, loff_t to,
[all …]
Donenand.h91 loff_t diesize[MAX_DIES];
107 int (*command)(struct mtd_info *mtd, int cmd, loff_t address, size_t len);
119 int (*block_markbad)(struct mtd_info *mtd, loff_t ofs);
226 int onenand_bbt_read_oob(struct mtd_info *mtd, loff_t from,
228 unsigned onenand_block(struct onenand_chip *this, loff_t addr);
229 loff_t onenand_addr(struct onenand_chip *this, int block);
230 int flexonenand_region(struct mtd_info *mtd, loff_t addr);
Dspi-nor.h188 int (*read)(struct spi_nor *nor, loff_t from,
190 void (*write)(struct spi_nor *nor, loff_t to,
192 int (*erase)(struct spi_nor *nor, loff_t offs);
194 int (*flash_lock)(struct spi_nor *nor, loff_t ofs, uint64_t len);
195 int (*flash_unlock)(struct spi_nor *nor, loff_t ofs, uint64_t len);
/linux-4.1.27/fs/
Dread_write.c24 typedef ssize_t (*io_fn_t)(struct file *, char __user *, size_t, loff_t *);
53 loff_t vfs_setpos(struct file *file, loff_t offset, loff_t maxsize) in vfs_setpos()
84 loff_t
85 generic_file_llseek_size(struct file *file, loff_t offset, int whence, in generic_file_llseek_size()
86 loff_t maxsize, loff_t eof) in generic_file_llseek_size()
143 loff_t generic_file_llseek(struct file *file, loff_t offset, int whence) in generic_file_llseek()
161 loff_t fixed_size_llseek(struct file *file, loff_t offset, int whence, loff_t size) in fixed_size_llseek()
184 loff_t noop_llseek(struct file *file, loff_t offset, int whence) in noop_llseek()
190 loff_t no_llseek(struct file *file, loff_t offset, int whence) in no_llseek()
196 loff_t default_llseek(struct file *file, loff_t offset, int whence) in default_llseek()
[all …]
Dseq_file.c90 static int traverse(struct seq_file *m, loff_t offset) in traverse()
92 loff_t pos = 0, index; in traverse()
158 ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) in seq_read()
162 loff_t pos; in seq_read()
256 loff_t next = pos; in seq_read()
309 loff_t seq_lseek(struct file *file, loff_t offset, int whence) in seq_lseek()
312 loff_t retval = -EINVAL; in seq_lseek()
542 static void *single_start(struct seq_file *p, loff_t *pos) in single_start()
547 static void *single_next(struct seq_file *p, void *v, loff_t *pos) in single_next()
758 struct list_head *seq_list_start(struct list_head *head, loff_t pos) in seq_list_start()
[all …]
Dlibfs.c94 loff_t dcache_dir_lseek(struct file *file, loff_t offset, int whence) in dcache_dir_lseek()
113 loff_t n = file->f_pos - 2; in dcache_dir_lseek()
187 ssize_t generic_read_dir(struct file *filp, char __user *buf, size_t siz, loff_t *ppos) in generic_read_dir()
397 loff_t pos, unsigned len, unsigned flags, in simple_write_begin()
442 loff_t pos, unsigned len, unsigned copied, in simple_write_end()
446 loff_t last_pos = pos + copied; in simple_write_end()
590 ssize_t simple_read_from_buffer(void __user *to, size_t count, loff_t *ppos, in simple_read_from_buffer()
593 loff_t pos = *ppos; in simple_read_from_buffer()
625 ssize_t simple_write_to_buffer(void *to, size_t available, loff_t *ppos, in simple_write_to_buffer()
628 loff_t pos = *ppos; in simple_write_to_buffer()
[all …]
Dsync.c178 int vfs_fsync_range(struct file *file, loff_t start, loff_t end, int datasync) in vfs_fsync_range()
277 SYSCALL_DEFINE4(sync_file_range, int, fd, loff_t, offset, loff_t, nbytes, in SYSCALL_DEFINE4() argument
283 loff_t endbyte; /* inclusive */ in SYSCALL_DEFINE4()
363 loff_t, offset, loff_t, nbytes) in SYSCALL_DEFINE4() argument
Ddax.c73 static void dax_new_buf(void *addr, unsigned size, unsigned first, loff_t pos, in dax_new_buf()
74 loff_t end) in dax_new_buf()
76 loff_t final = end - pos + first; /* The final byte of the buffer */ in dax_new_buf()
102 loff_t start, loff_t end, get_block_t get_block, in dax_io()
106 loff_t pos = start; in dax_io()
107 loff_t max = start; in dax_io()
108 loff_t bh_max = start; in dax_io()
192 struct iov_iter *iter, loff_t pos, get_block_t get_block, in dax_do_io()
197 loff_t end = pos + iov_iter_count(iter); in dax_do_io()
509 int dax_zero_page_range(struct inode *inode, loff_t from, unsigned length, in dax_zero_page_range()
[all …]
Dsplice.c306 __generic_file_splice_read(struct file *in, loff_t *ppos, in __generic_file_splice_read()
316 loff_t isize; in __generic_file_splice_read()
499 in->f_ra.prev_pos = (loff_t)index << PAGE_CACHE_SHIFT; in __generic_file_splice_read()
522 ssize_t generic_file_splice_read(struct file *in, loff_t *ppos, in generic_file_splice_read()
526 loff_t isize, left; in generic_file_splice_read()
575 unsigned long vlen, loff_t offset) in kernel_readv()
578 loff_t pos = offset; in kernel_readv()
591 loff_t pos) in kernel_write()
606 ssize_t default_file_splice_read(struct file *in, loff_t *ppos, in default_file_splice_read()
711 loff_t pos = sd->pos; in pipe_to_sendpage()
[all …]
/linux-4.1.27/include/linux/
Dseq_file.h24 loff_t index;
25 loff_t read_pos;
37 void * (*start) (struct seq_file *m, loff_t *pos);
39 void * (*next) (struct seq_file *m, void *v, loff_t *pos);
114 ssize_t seq_read(struct file *, char __user *, size_t, loff_t *);
115 loff_t seq_lseek(struct file *, loff_t, int);
192 loff_t pos);
194 loff_t pos);
196 loff_t *ppos);
203 loff_t pos);
[all …]
Dfs.h71 typedef void (dio_iodone_t)(struct kiocb *iocb, loff_t offset,
250 loff_t ia_size;
324 loff_t ki_pos;
381 loff_t pos, unsigned len, unsigned flags,
384 loff_t pos, unsigned len, unsigned copied,
392 ssize_t (*direct_IO)(struct kiocb *, struct iov_iter *iter, loff_t offset);
418 loff_t pos, unsigned len, unsigned flags,
422 loff_t pos, unsigned len, unsigned copied,
617 loff_t i_size;
716 static inline loff_t i_size_read(const struct inode *inode) in i_size_read()
[all …]
Dsysctl.h38 void __user *buffer, size_t *lenp, loff_t *ppos);
41 void __user *, size_t *, loff_t *);
43 void __user *, size_t *, loff_t *);
45 void __user *, size_t *, loff_t *);
47 void __user *, size_t *, loff_t *);
49 void __user *, size_t *, loff_t *);
51 void __user *, size_t *, loff_t *);
53 void __user *, size_t *, loff_t *);
55 void __user *, size_t *, loff_t *);
57 void __user *, size_t *, loff_t *);
[all …]
Dwriteback.h76 loff_t range_start;
77 loff_t range_end;
140 loff_t *ppos);
143 loff_t *ppos);
146 loff_t *ppos);
149 loff_t *ppos);
151 void __user *buffer, size_t *lenp, loff_t *ppos);
155 void __user *, size_t *, loff_t *);
Dnmi.h73 void __user *, size_t *, loff_t *);
75 void __user *, size_t *, loff_t *);
77 void __user *, size_t *, loff_t *);
79 void __user *, size_t *, loff_t *);
Duprobes.h108 extern int uprobe_register(struct inode *inode, loff_t offset, struct uprobe_consumer *uc);
109 extern int uprobe_apply(struct inode *inode, loff_t offset, struct uprobe_consumer *uc, bool);
110 extern void uprobe_unregister(struct inode *inode, loff_t offset, struct uprobe_consumer *uc);
141 uprobe_register(struct inode *inode, loff_t offset, struct uprobe_consumer *uc) in uprobe_register()
146 uprobe_apply(struct inode *inode, loff_t offset, struct uprobe_consumer *uc, bool add) in uprobe_apply()
151 uprobe_unregister(struct inode *inode, loff_t offset, struct uprobe_consumer *uc) in uprobe_unregister()
Dbuffer_head.h214 int block_write_begin(struct address_space *mapping, loff_t pos, unsigned len,
216 int __block_write_begin(struct page *page, loff_t pos, unsigned len,
219 loff_t, unsigned, unsigned,
222 loff_t, unsigned, unsigned,
225 int cont_write_begin(struct file *, struct address_space *, loff_t,
227 get_block_t *, loff_t *);
228 int generic_cont_expand_simple(struct inode *inode, loff_t size);
249 int block_truncate_page(struct address_space *, loff_t, get_block_t *);
250 int nobh_write_begin(struct address_space *, loff_t, unsigned, unsigned,
253 loff_t, unsigned, unsigned,
[all …]
Dshmem_fs.h51 loff_t size, unsigned long flags);
52 extern struct file *shmem_kernel_file_setup(const char *name, loff_t size,
60 extern void shmem_truncate_range(struct inode *inode, loff_t start, loff_t end);
Duser_namespace.h69 extern ssize_t proc_uid_map_write(struct file *, const char __user *, size_t, loff_t *);
70 extern ssize_t proc_gid_map_write(struct file *, const char __user *, size_t, loff_t *);
71 extern ssize_t proc_projid_map_write(struct file *, const char __user *, size_t, loff_t *);
72 extern ssize_t proc_setgroups_write(struct file *, const char __user *, size_t, loff_t *);
Dkernfs.h93 loff_t size;
203 void *(*seq_start)(struct seq_file *sf, loff_t *ppos);
204 void *(*seq_next)(struct seq_file *sf, void *v, loff_t *ppos);
208 loff_t off);
226 loff_t off);
293 umode_t mode, loff_t size,
372 umode_t mode, loff_t size, const struct kernfs_ops *ops, in __kernfs_create_file()
433 umode_t mode, loff_t size, const struct kernfs_ops *ops, in kernfs_create_file_ns()
447 loff_t size, const struct kernfs_ops *ops, void *priv) in kernfs_create_file()
Dsplice.h38 loff_t pos; /* file position */
39 loff_t *opos; /* sendfile: output position */
69 loff_t *, size_t, unsigned int,
Dvfio.h38 size_t count, loff_t *ppos);
40 size_t count, loff_t *size);
65 size_t count, loff_t *ppos);
67 size_t count, loff_t *size);
Dnsc_gpio.h34 size_t len, loff_t *ppos);
37 size_t len, loff_t *ppos);
Ddevcoredump.h14 ssize_t (*read)(char *buffer, loff_t offset, size_t count,
27 ssize_t (*read)(char *buffer, loff_t offset, size_t count, in dev_coredumpm()
/linux-4.1.27/fs/nfs/
Dnfs42.h9 int nfs42_proc_allocate(struct file *, loff_t, loff_t);
10 int nfs42_proc_deallocate(struct file *, loff_t, loff_t);
11 loff_t nfs42_proc_llseek(struct file *, loff_t, int);
Dnfs42proc.c36 loff_t offset, loff_t len) in _nfs42_proc_fallocate()
72 loff_t offset, loff_t len) in nfs42_proc_fallocate()
88 int nfs42_proc_allocate(struct file *filep, loff_t offset, loff_t len) in nfs42_proc_allocate()
109 int nfs42_proc_deallocate(struct file *filep, loff_t offset, loff_t len) in nfs42_proc_deallocate()
133 loff_t nfs42_proc_llseek(struct file *filep, loff_t offset, int whence) in nfs42_proc_llseek()
Dnfs4file.c100 nfs4_file_fsync(struct file *file, loff_t start, loff_t end, int datasync) in nfs4_file_fsync()
131 static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) in nfs4_file_llseek()
133 loff_t ret; in nfs4_file_llseek()
146 static long nfs42_fallocate(struct file *filep, int mode, loff_t offset, loff_t len) in nfs42_fallocate()
Dfile.c120 loff_t nfs_file_llseek(struct file *filp, loff_t offset, int whence) in nfs_file_llseek()
134 return (loff_t)retval; in nfs_file_llseek()
191 nfs_file_splice_read(struct file *filp, loff_t *ppos, in nfs_file_splice_read()
244 nfs_file_fsync_commit(struct file *file, loff_t start, loff_t end, int datasync) in nfs_file_fsync_commit()
276 nfs_file_fsync(struct file *file, loff_t start, loff_t end, int datasync) in nfs_file_fsync()
325 loff_t pos, unsigned len) in nfs_want_read_modify_write()
355 loff_t pos, unsigned len, unsigned flags, in nfs_write_begin()
401 loff_t pos, unsigned len, unsigned copied, in nfs_write_end()
/linux-4.1.27/arch/tile/kernel/
Dcompat.c38 return sys_truncate(filename, ((loff_t)high << 32) | low); in COMPAT_SYSCALL_DEFINE4()
44 return sys_ftruncate(fd, ((loff_t)high << 32) | low); in COMPAT_SYSCALL_DEFINE4()
50 return sys_pread64(fd, ubuf, count, ((loff_t)high << 32) | low); in COMPAT_SYSCALL_DEFINE6()
56 return sys_pwrite64(fd, ubuf, count, ((loff_t)high << 32) | low); in COMPAT_SYSCALL_DEFINE6()
63 return sys_sync_file_range(fd, ((loff_t)offset_hi << 32) | offset_lo, in COMPAT_SYSCALL_DEFINE6()
64 ((loff_t)nbytes_hi << 32) | nbytes_lo, in COMPAT_SYSCALL_DEFINE6()
72 return sys_fallocate(fd, mode, ((loff_t)offset_hi << 32) | offset_lo, in COMPAT_SYSCALL_DEFINE6()
73 ((loff_t)len_hi << 32) | len_lo); in COMPAT_SYSCALL_DEFINE6()
82 unsigned int, offset_low, loff_t __user *, result, in COMPAT_SYSCALL_DEFINE5()
Dsys.c64 return sys_readahead(fd, ((loff_t)offset_hi << 32) | offset_lo, count); in sys32_readahead()
70 return sys_fadvise64_64(fd, ((loff_t)offset_hi << 32) | offset_lo, in sys32_fadvise64_64()
71 ((loff_t)len_hi << 32) | len_lo, advice); in sys32_fadvise64_64()
/linux-4.1.27/fs/ecryptfs/
Dread_write.c40 loff_t offset, size_t size) in ecryptfs_write_lower()
74 loff_t offset; in ecryptfs_write_lower_page_segment()
77 offset = ((((loff_t)page_for_lower->index) << PAGE_CACHE_SHIFT) in ecryptfs_write_lower_page_segment()
105 int ecryptfs_write(struct inode *ecryptfs_inode, char *data, loff_t offset, in ecryptfs_write()
111 loff_t ecryptfs_file_size = i_size_read(ecryptfs_inode); in ecryptfs_write()
112 loff_t data_offset = 0; in ecryptfs_write()
113 loff_t pos; in ecryptfs_write()
129 loff_t total_remaining_bytes = ((offset + size) - pos); in ecryptfs_write()
140 loff_t total_remaining_zeros = (offset - pos); in ecryptfs_write()
231 int ecryptfs_read_lower(char *data, loff_t offset, size_t size, in ecryptfs_read_lower()
[all …]
Dmmap.c47 struct page *ecryptfs_get_locked_page(struct inode *inode, loff_t index) in ecryptfs_get_locked_page()
125 loff_t extent_num_in_page = 0; in ecryptfs_copy_up_encrypted_with_header()
126 loff_t num_extents_per_page = (PAGE_CACHE_SIZE in ecryptfs_copy_up_encrypted_with_header()
131 loff_t view_extent_num = ((((loff_t)page->index) in ecryptfs_copy_up_encrypted_with_header()
163 loff_t lower_offset = in ecryptfs_copy_up_encrypted_with_header()
280 loff_t pos, unsigned len, unsigned flags, in ecryptfs_write_begin()
285 loff_t prev_page_end_size; in ecryptfs_write_begin()
293 prev_page_end_size = ((loff_t)index << PAGE_CACHE_SHIFT); in ecryptfs_write_begin()
480 loff_t pos, unsigned len, unsigned copied, in ecryptfs_write_end()
/linux-4.1.27/arch/powerpc/kernel/
Dsys_ppc32.c80 return sys_pread64(fd, ubuf, count, ((loff_t)poshi << 32) | poslo); in compat_sys_pread64()
86 return sys_pwrite64(fd, ubuf, count, ((loff_t)poshi << 32) | poslo); in compat_sys_pwrite64()
91 return sys_readahead(fd, ((loff_t)offhi << 32) | offlo, count); in compat_sys_readahead()
103 return sys_fallocate(fd, mode, ((loff_t)offhi << 32) | offlo, in compat_sys_fallocate()
104 ((loff_t)lenhi << 32) | lenlo); in compat_sys_fallocate()
124 loff_t offset = ((loff_t)offset_hi << 32) | offset_lo; in compat_sys_sync_file_range2()
125 loff_t nbytes = ((loff_t)nbytes_hi << 32) | nbytes_lo; in compat_sys_sync_file_range2()
Dproc_powerpc.c32 static loff_t page_map_seek(struct file *file, loff_t off, int whence) in page_map_seek()
38 loff_t *ppos) in page_map_read()
Dnvram_64.c197 loff_t tmp_index; in nvram_write_os_partition()
236 loff_t tmp_index; in nvram_read_partition()
290 loff_t p; in nvram_init_os_partition()
455 loff_t p; in nvram_pstore_read()
734 static loff_t dev_nvram_llseek(struct file *file, loff_t offset, int origin) in dev_nvram_llseek()
758 size_t count, loff_t *ppos) in dev_nvram_read()
803 size_t count, loff_t *ppos) in dev_nvram_write()
901 loff_t tmp_index; in nvram_write_header()
1018 loff_t __init nvram_create_partition(const char *name, int sig, in nvram_create_partition()
1025 loff_t tmp_index; in nvram_create_partition()
[all …]
Drtas-proc.c140 const char __user *buf, size_t count, loff_t *ppos);
143 const char __user *buf, size_t count, loff_t *ppos);
146 const char __user *buf, size_t count, loff_t *ppos);
149 const char __user *buf, size_t count, loff_t *ppos);
152 const char __user *buf, size_t count, loff_t *ppos);
306 const char __user *buf, size_t count, loff_t *ppos) in ppc_rtas_poweron_write()
340 const char __user *buf, size_t count, loff_t *ppos) in ppc_rtas_progress_write()
372 const char __user *buf, size_t count, loff_t *ppos) in ppc_rtas_clock_write()
731 const char __user *buf, size_t count, loff_t *ppos) in ppc_rtas_tone_freq_write()
756 const char __user *buf, size_t count, loff_t *ppos) in ppc_rtas_tone_volume_write()
/linux-4.1.27/fs/ext4/
Dfile.c76 ext4_unaligned_aio(struct inode *inode, struct iov_iter *from, loff_t pos) in ext4_unaligned_aio()
137 loff_t pos = iocb->ki_pos; in ext4_file_write_iter()
199 loff_t offset = (loff_t)(uintptr_t)bh->b_private << inode->i_blkbits; in ext4_end_io_unwritten()
330 loff_t *offset) in ext4_find_unwritten_pgoff()
336 loff_t endoff; in ext4_find_unwritten_pgoff()
337 loff_t startoff; in ext4_find_unwritten_pgoff()
338 loff_t lastoff; in ext4_find_unwritten_pgoff()
344 endoff = (loff_t)(map->m_lblk + map->m_len) << blkbits; in ext4_find_unwritten_pgoff()
423 *offset = max_t(loff_t, in ext4_find_unwritten_pgoff()
459 static loff_t ext4_seek_data(struct file *file, loff_t offset, loff_t maxsize) in ext4_seek_data()
[all …]
Ddir.c165 file->f_ra.prev_pos = (loff_t)index << PAGE_CACHE_SHIFT; in ext4_readdir()
300 static inline loff_t hash2pos(struct file *filp, __u32 major, __u32 minor) in hash2pos()
309 static inline __u32 pos2maj_hash(struct file *filp, loff_t pos) in pos2maj_hash()
318 static inline __u32 pos2min_hash(struct file *filp, loff_t pos) in pos2min_hash()
330 static inline loff_t ext4_get_htree_eof(struct file *filp) in ext4_get_htree_eof()
351 static loff_t ext4_dir_llseek(struct file *file, loff_t offset, int whence) in ext4_dir_llseek()
355 loff_t htree_max = ext4_get_htree_eof(file); in ext4_dir_llseek()
399 loff_t pos) in ext4_htree_create_dir_info()
/linux-4.1.27/fs/afs/
Dproc.c24 static void *afs_proc_cells_start(struct seq_file *p, loff_t *pos);
25 static void *afs_proc_cells_next(struct seq_file *p, void *v, loff_t *pos);
29 size_t size, loff_t *_pos);
47 size_t size, loff_t *_pos);
50 size_t size, loff_t *_pos);
59 static void *afs_proc_cell_volumes_start(struct seq_file *p, loff_t *pos);
61 loff_t *pos);
81 static void *afs_proc_cell_vlservers_start(struct seq_file *p, loff_t *pos);
83 loff_t *pos);
102 static void *afs_proc_cell_servers_start(struct seq_file *p, loff_t *pos);
[all …]
/linux-4.1.27/fs/nfsd/
Dvfs.h39 typedef int (*nfsd_filldir_t)(void *, const char *, int, loff_t, u64, unsigned);
58 struct file *, loff_t, loff_t, int);
70 loff_t, unsigned long);
80 struct file *, loff_t, unsigned long *);
81 __be32 nfsd_readv(struct file *, loff_t, struct kvec *, int,
84 loff_t, struct kvec *, int, unsigned long *);
86 loff_t, struct kvec *,int, unsigned long *, int *);
100 loff_t *, struct readdir_cd *, nfsd_filldir_t);
/linux-4.1.27/drivers/oprofile/
Doprofile_files.c31 size_t count, loff_t *offset) in timeout_read()
39 size_t count, loff_t *offset) in timeout_write()
68 static ssize_t depth_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in depth_read()
75 static ssize_t depth_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) in depth_write()
105 static ssize_t pointer_size_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in pointer_size_read()
117 static ssize_t cpu_type_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in cpu_type_read()
129 static ssize_t enable_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in enable_read()
135 static ssize_t enable_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) in enable_write()
166 static ssize_t dump_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) in dump_write()
Doprofilefs.c45 ssize_t oprofilefs_str_to_user(char const *str, char __user *buf, size_t count, loff_t *offset) in oprofilefs_str_to_user()
53 ssize_t oprofilefs_ulong_to_user(unsigned long val, char __user *buf, size_t count, loff_t *offset) in oprofilefs_ulong_to_user()
93 static ssize_t ulong_read_file(struct file *file, char __user *buf, size_t count, loff_t *offset) in ulong_read_file()
100 static ssize_t ulong_write_file(struct file *file, char const __user *buf, size_t count, loff_t *of… in ulong_write_file()
177 static ssize_t atomic_read_file(struct file *file, char __user *buf, size_t count, loff_t *offset) in atomic_read_file()
/linux-4.1.27/mm/
Dtruncate.c155 (loff_t)page->index << PAGE_CACHE_SHIFT, in truncate_inode_page()
221 loff_t lstart, loff_t lend) in truncate_inode_pages_range()
390 void truncate_inode_pages(struct address_space *mapping, loff_t lstart) in truncate_inode_pages()
392 truncate_inode_pages_range(mapping, lstart, (loff_t)-1); in truncate_inode_pages()
602 (loff_t)index << PAGE_CACHE_SHIFT, in invalidate_inode_pages2_range()
603 (loff_t)(1 + end - index) in invalidate_inode_pages2_range()
612 (loff_t)index << PAGE_CACHE_SHIFT, in invalidate_inode_pages2_range()
666 void truncate_pagecache(struct inode *inode, loff_t newsize) in truncate_pagecache()
669 loff_t holebegin = round_up(newsize, PAGE_SIZE); in truncate_pagecache()
699 void truncate_setsize(struct inode *inode, loff_t newsize) in truncate_setsize()
[all …]
Dfadvise.c28 SYSCALL_DEFINE4(fadvise64_64, int, fd, loff_t, offset, loff_t, len, int, advice) in SYSCALL_DEFINE4() argument
34 loff_t endbyte; /* inclusive */ in SYSCALL_DEFINE4()
157 SYSCALL_DEFINE4(fadvise64, int, fd, loff_t, offset, size_t, len, int, advice) in SYSCALL_DEFINE4() argument
Dfilemap.c270 int __filemap_fdatawrite_range(struct address_space *mapping, loff_t start, in __filemap_fdatawrite_range()
271 loff_t end, int sync_mode) in __filemap_fdatawrite_range()
300 int filemap_fdatawrite_range(struct address_space *mapping, loff_t start, in filemap_fdatawrite_range()
301 loff_t end) in filemap_fdatawrite_range()
329 int filemap_fdatawait_range(struct address_space *mapping, loff_t start_byte, in filemap_fdatawait_range()
330 loff_t end_byte) in filemap_fdatawait_range()
380 loff_t i_size = i_size_read(mapping->host); in filemap_fdatawait()
425 loff_t lstart, loff_t lend) in filemap_write_and_wait_range()
1461 static ssize_t do_generic_file_read(struct file *filp, loff_t *ppos, in do_generic_file_read()
1483 loff_t isize; in do_generic_file_read()
[all …]
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_debugfs.c79 static void *_opcode_stats_seq_start(struct seq_file *s, loff_t *pos) in _opcode_stats_seq_start()
88 static void *_opcode_stats_seq_next(struct seq_file *s, void *v, loff_t *pos) in _opcode_stats_seq_next()
106 loff_t *spos = v; in _opcode_stats_seq_show()
107 loff_t i = *spos, j; in _opcode_stats_seq_show()
129 static void *_ctx_stats_seq_start(struct seq_file *s, loff_t *pos) in DEBUGFS_FILE()
141 static void *_ctx_stats_seq_next(struct seq_file *s, void *v, loff_t *pos) in _ctx_stats_seq_next()
162 loff_t *spos; in _ctx_stats_seq_show()
163 loff_t i, j; in _ctx_stats_seq_show()
191 static void *_qp_stats_seq_start(struct seq_file *s, loff_t *pos) in DEBUGFS_FILE()
194 loff_t n = *pos; in DEBUGFS_FILE()
[all …]
Dqib_fs.c105 size_t count, loff_t *ppos) in driver_stats_read()
133 size_t count, loff_t *ppos) in driver_names_read()
146 size_t count, loff_t *ppos) in dev_counters_read()
158 size_t count, loff_t *ppos) in dev_names_read()
180 size_t count, loff_t *ppos) in portnames_read()
192 size_t count, loff_t *ppos) in portcntrs_1_read()
204 size_t count, loff_t *ppos) in portcntrs_2_read()
224 size_t count, loff_t *ppos) in qsfp_1_read()
245 size_t count, loff_t *ppos) in qsfp_2_read()
271 size_t count, loff_t *ppos) in flash_read()
[all …]
/linux-4.1.27/drivers/net/ethernet/amd/xgbe/
Dxgbe-debugfs.c125 loff_t *ppos, unsigned int value) in xgbe_common_read()
149 loff_t *ppos, unsigned int *value) in xgbe_common_write()
175 size_t count, loff_t *ppos) in xgmac_reg_addr_read()
184 size_t count, loff_t *ppos) in xgmac_reg_addr_write()
193 size_t count, loff_t *ppos) in xgmac_reg_value_read()
205 size_t count, loff_t *ppos) in xgmac_reg_value_write()
235 size_t count, loff_t *ppos) in xpcs_mmd_read()
243 size_t count, loff_t *ppos) in xpcs_mmd_write()
252 size_t count, loff_t *ppos) in xpcs_reg_addr_read()
260 size_t count, loff_t *ppos) in xpcs_reg_addr_write()
[all …]
/linux-4.1.27/fs/hpfs/
Ddnode.c11 static loff_t get_pos(struct dnode *d, struct hpfs_dirent *fde) in get_pos()
17 if (de == fde) return ((loff_t) le32_to_cpu(d->self) << 4) | (loff_t)i; in get_pos()
21 return ((loff_t)le32_to_cpu(d->self) << 4) | (loff_t)1; in get_pos()
24 void hpfs_add_pos(struct inode *inode, loff_t *pos) in hpfs_add_pos()
28 loff_t **ppos; in hpfs_add_pos()
34 if (!(ppos = kmalloc((i+0x11) * sizeof(loff_t*), GFP_NOFS))) { in hpfs_add_pos()
39 memcpy(ppos, hpfs_inode->i_rddir_off, i * sizeof(loff_t)); in hpfs_add_pos()
48 void hpfs_del_pos(struct inode *inode, loff_t *pos) in hpfs_del_pos()
51 loff_t **i, **j; in hpfs_del_pos()
71 static void for_all_poss(struct inode *inode, void (*f)(loff_t *, loff_t, loff_t), in for_all_poss() argument
[all …]
Dhpfs_fn.h45 loff_t mmu_private;
58 loff_t **i_rddir_off;
236 void hpfs_add_pos(struct inode *, loff_t *);
237 void hpfs_del_pos(struct inode *, loff_t *);
245 struct hpfs_dirent *map_pos_dirent(struct inode *, loff_t *, struct quad_buffer_head *);
262 int hpfs_file_fsync(struct file *, loff_t, loff_t, int);
Ddir.c23 static loff_t hpfs_dir_lseek(struct file *filp, loff_t off, int whence) in hpfs_dir_lseek()
25 loff_t new_off = off + (whence == 1 ? filp->f_pos : 0); in hpfs_dir_lseek()
26 loff_t pos; in hpfs_dir_lseek()
41 pos = ((loff_t) hpfs_de_as_down_as_possible(s, hpfs_inode->i_dno) << 4) + 1; in hpfs_dir_lseek()
67 loff_t next_pos; in hpfs_readdir()
144 ctx->pos = ((loff_t) hpfs_de_as_down_as_possible(inode->i_sb, hpfs_inode->i_dno) << 4) + 1; in hpfs_readdir()
Dfile.c22 int hpfs_file_fsync(struct file *file, loff_t start, loff_t end, int datasync) in hpfs_file_fsync()
134 static void hpfs_write_failed(struct address_space *mapping, loff_t to) in hpfs_write_failed()
149 loff_t pos, unsigned len, unsigned flags, in hpfs_write_begin()
165 loff_t pos, unsigned len, unsigned copied, in hpfs_write_end()
/linux-4.1.27/drivers/zorro/
Dproc.c23 static loff_t
24 proc_bus_zorro_lseek(struct file *file, loff_t off, int whence) in proc_bus_zorro_lseek()
30 proc_bus_zorro_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in proc_bus_zorro_read()
34 loff_t pos = *ppos; in proc_bus_zorro_read()
64 static void * zorro_seq_start(struct seq_file *m, loff_t *pos) in zorro_seq_start()
69 static void * zorro_seq_next(struct seq_file *m, void *v, loff_t *pos) in zorro_seq_next()
81 unsigned int slot = *(loff_t *)v; in zorro_seq_show()
/linux-4.1.27/drivers/mtd/tests/
Dspeedtest.c58 loff_t addr = (loff_t)ebnum * mtd->erasesize; in multiblock_erase()
83 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock()
91 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock_by_page()
109 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock_by_2pages()
127 loff_t addr = (loff_t)ebnum * mtd->erasesize; in read_eraseblock()
135 loff_t addr = (loff_t)ebnum * mtd->erasesize; in read_eraseblock_by_page()
153 loff_t addr = (loff_t)ebnum * mtd->erasesize; in read_eraseblock_by_2pages()
Dmtd_test.c13 loff_t addr = (loff_t)ebnum * mtd->erasesize; in mtdtest_erase_eraseblock()
36 loff_t addr = (loff_t)ebnum * mtd->erasesize; in is_block_bad()
83 int mtdtest_read(struct mtd_info *mtd, loff_t addr, size_t size, void *buf) in mtdtest_read()
100 int mtdtest_write(struct mtd_info *mtd, loff_t addr, size_t size, in mtdtest_write()
Dsubpagetest.c60 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock()
95 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock2()
98 if (addr + (subpgsize * k) > (loff_t)(ebnum + 1) * mtd->erasesize) in write_eraseblock2()
134 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock()
195 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock2()
198 if (addr + (subpgsize * k) > (loff_t)(ebnum + 1) * mtd->erasesize) in verify_eraseblock2()
230 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock_ff()
Doobtest.c73 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock()
128 static size_t memcmpshow(loff_t addr, const void *cs, const void *ct, size_t count) in memcmpshow()
151 static size_t memffshow(loff_t addr, loff_t offset, const void *cs, in memffshow()
177 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock()
265 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock_in_one_go()
339 loff_t addr = 0, addr0; in mtd_oobtest_init()
638 addr = (loff_t)(i + 1) * mtd->erasesize - mtd->writesize; in mtd_oobtest_init()
672 addr = (loff_t)(i + 1) * mtd->erasesize - mtd->writesize; in mtd_oobtest_init()
Dpagetest.c55 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock()
66 loff_t addr0, addrn; in verify_eraseblock()
67 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock()
126 loff_t addr, addr0, addrn; in crosstest()
204 loff_t addr0; in erasecrosstest()
283 loff_t addr0; in erasetest()
Dmtd_test.h21 int mtdtest_read(struct mtd_info *mtd, loff_t addr, size_t size, void *buf);
22 int mtdtest_write(struct mtd_info *mtd, loff_t addr, size_t size,
Dstresstest.c91 loff_t addr; in do_read()
99 addr = (loff_t)eb * mtd->erasesize + offs; in do_read()
106 loff_t addr; in do_write()
127 addr = (loff_t)eb * mtd->erasesize + offs; in do_write()
/linux-4.1.27/include/linux/sched/
Dsysctl.h11 size_t *lenp, loff_t *ppos);
65 loff_t *ppos);
100 loff_t *ppos);
104 loff_t *ppos);
108 loff_t *ppos);
/linux-4.1.27/drivers/s390/char/
Dhmcdrv_dev.c57 static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence);
59 size_t len, loff_t *pos);
61 size_t len, loff_t *pos);
62 static ssize_t hmcdrv_dev_transfer(char __kernel *cmd, loff_t offset,
159 static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence) in hmcdrv_dev_seek()
198 static ssize_t hmcdrv_dev_transfer(char __kernel *cmd, loff_t offset, in hmcdrv_dev_transfer()
221 size_t len, loff_t *pos) in hmcdrv_dev_read()
246 size_t len, loff_t *pos) in hmcdrv_dev_write()
Dhmcdrv_ftp.h50 loff_t ofs;
60 ssize_t hmcdrv_ftp_cmd(char __kernel *cmd, loff_t offset,
/linux-4.1.27/arch/s390/oprofile/
Dinit.c124 size_t count, loff_t *offset) in hwsampler_read()
130 size_t count, loff_t *offset) in hwsampler_write()
172 size_t count, loff_t *offset) in hw_interval_read()
179 size_t count, loff_t *offset) in hw_interval_write()
215 size_t count, loff_t *offset) in hwsampler_zero_read()
221 size_t count, loff_t *offset) in hwsampler_zero_write()
245 size_t count, loff_t *offset) in hwsampler_kernel_read()
252 size_t count, loff_t *offset) in hwsampler_kernel_write()
280 size_t count, loff_t *offset) in hwsampler_user_read()
287 size_t count, loff_t *offset) in hwsampler_user_write()
[all …]
/linux-4.1.27/drivers/net/wireless/libertas/
Ddebugfs.c25 size_t count, loff_t *ppos) in write_file_dummy()
33 size_t count, loff_t *ppos) in lbs_dev_info()
56 loff_t *ppos) in lbs_sleepparams_write()
96 size_t count, loff_t *ppos) in lbs_sleepparams_read()
125 loff_t *ppos) in lbs_host_sleep_write()
170 size_t count, loff_t *ppos) in lbs_host_sleep_read()
226 size_t count, loff_t *ppos) in lbs_threshold_read()
279 loff_t *ppos) in lbs_threshold_write()
352 size_t count, loff_t *ppos) in lbs_lowrssi_read()
360 size_t count, loff_t *ppos) in lbs_lowrssi_write()
[all …]
/linux-4.1.27/net/appletalk/
Datalk_proc.c20 static __inline__ struct atalk_iface *atalk_get_interface_idx(loff_t pos) in atalk_get_interface_idx()
30 static void *atalk_seq_interface_start(struct seq_file *seq, loff_t *pos) in atalk_seq_interface_start()
33 loff_t l = *pos; in atalk_seq_interface_start()
39 static void *atalk_seq_interface_next(struct seq_file *seq, void *v, loff_t *pos) in atalk_seq_interface_next()
81 static __inline__ struct atalk_route *atalk_get_route_idx(loff_t pos) in atalk_get_route_idx()
91 static void *atalk_seq_route_start(struct seq_file *seq, loff_t *pos) in atalk_seq_route_start()
94 loff_t l = *pos; in atalk_seq_route_start()
100 static void *atalk_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) in atalk_seq_route_next()
148 static void *atalk_seq_socket_start(struct seq_file *seq, loff_t *pos) in atalk_seq_socket_start()
155 static void *atalk_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) in atalk_seq_socket_next()
/linux-4.1.27/fs/fat/
Dfat.h119 loff_t mmu_private; /* physically allocated size */
124 loff_t i_pos; /* on-disk position of directory entry or 0 */
132 loff_t i_pos; /* on-disk position of directory entry */
133 loff_t slot_off; /* offset for slot or de start */
223 loff_t i_pos, sector_t *blknr, int *offset) in fat_get_blknr_offset()
229 static inline loff_t fat_i_pos_read(struct msdos_sb_info *sbi, in fat_i_pos_read()
232 loff_t i_pos; in fat_i_pos_read()
363 extern void fat_truncate_blocks(struct inode *inode, loff_t offset);
366 extern int fat_file_fsync(struct file *file, loff_t start, loff_t end,
370 extern int fat_block_truncate_page(struct inode *inode, loff_t from);
[all …]
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
Ddebugfs.c45 loff_t *ppos, char *fmt, ...) in wl1271_format_buffer()
91 size_t count, loff_t *ppos) in tx_queue_len_read()
143 size_t count, loff_t *ppos) \
153 size_t count, loff_t *ppos) \
194 size_t count, loff_t *ppos) in gpio_power_read()
209 size_t count, loff_t *ppos) in gpio_power_write()
241 size_t count, loff_t *ppos) in start_recovery_write()
259 size_t count, loff_t *ppos) in dynamic_ps_timeout_read()
270 size_t count, loff_t *ppos) in dynamic_ps_timeout_write()
323 size_t count, loff_t *ppos) in forced_ps_read()
[all …]
Ddebugfs.h30 loff_t *ppos, char *fmt, ...);
41 size_t count, loff_t *ppos) \
74 size_t count, loff_t *ppos) \
94 size_t count, loff_t *ppos) \
/linux-4.1.27/security/smack/
Dsmackfs.c474 size_t count, loff_t *ppos, in smk_write_rules_list()
566 static void *smk_seq_start(struct seq_file *s, loff_t *pos, in smk_seq_start()
589 static void *smk_seq_next(struct seq_file *s, void *v, loff_t *pos, in smk_seq_next()
650 static void *load2_seq_start(struct seq_file *s, loff_t *pos) in load2_seq_start()
655 static void *load2_seq_next(struct seq_file *s, void *v, loff_t *pos) in load2_seq_next()
699 size_t count, loff_t *ppos) in smk_write_load()
794 static void *cipso_seq_start(struct seq_file *s, loff_t *pos) in cipso_seq_start()
799 static void *cipso_seq_next(struct seq_file *s, void *v, loff_t *pos) in cipso_seq_next()
873 size_t count, loff_t *ppos, int format) in smk_set_cipso()
976 size_t count, loff_t *ppos) in smk_write_cipso()
[all …]
/linux-4.1.27/fs/xfs/
Dxfs_file.c94 loff_t pos, /* offset in file */ in xfs_iozero()
175 loff_t start, in xfs_dir_fsync()
176 loff_t end, in xfs_dir_fsync()
198 loff_t start, in xfs_file_fsync()
199 loff_t end, in xfs_file_fsync()
278 loff_t pos = iocb->ki_pos; in xfs_file_read_iter()
360 loff_t *ppos, in xfs_file_splice_read()
668 loff_t pos = iocb->ki_pos; in xfs_file_dio_aio_write()
669 loff_t end; in xfs_file_dio_aio_write()
872 loff_t offset, in xfs_file_fallocate()
[all …]
Dxfs_aops.c277 loff_t offset, in xfs_map_blocks()
686 loff_t tindex, in xfs_convert_page()
887 loff_t offset = page_offset(page); in xfs_aops_discard_page()
946 loff_t offset; in xfs_vm_writepage()
1536 loff_t offset, in xfs_end_io_direct_write()
1614 loff_t offset) in xfs_vm_direct_IO()
1638 loff_t start, in xfs_vm_kill_delalloc_range()
1639 loff_t end) in xfs_vm_kill_delalloc_range()
1669 loff_t pos, in xfs_vm_write_failed()
1672 loff_t block_offset; in xfs_vm_write_failed()
[all …]
/linux-4.1.27/net/core/
Dnet-procfs.c15 static inline struct net_device *dev_from_same_bucket(struct seq_file *seq, loff_t *pos) in dev_from_same_bucket()
31 static inline struct net_device *dev_from_bucket(struct seq_file *seq, loff_t *pos) in dev_from_bucket()
52 static void *dev_seq_start(struct seq_file *seq, loff_t *pos) in dev_seq_start()
65 static void *dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) in dev_seq_next()
118 static struct softnet_data *softnet_get_online(loff_t *pos) in softnet_get_online()
131 static void *softnet_seq_start(struct seq_file *seq, loff_t *pos) in softnet_seq_start()
136 static void *softnet_seq_next(struct seq_file *seq, void *v, loff_t *pos) in softnet_seq_next()
210 static void *ptype_get_idx(loff_t pos) in ptype_get_idx()
213 loff_t i = 0; in ptype_get_idx()
232 static void *ptype_seq_start(struct seq_file *seq, loff_t *pos) in ptype_seq_start()
[all …]
/linux-4.1.27/kernel/power/
Duser.c136 size_t count, loff_t *offp) in snapshot_read()
140 loff_t pg_offp = *offp & ~PAGE_MASK; in snapshot_read()
169 size_t count, loff_t *offp) in snapshot_write()
173 loff_t pg_offp = *offp & ~PAGE_MASK; in snapshot_write()
202 loff_t size; in snapshot_ioctl()
300 error = put_user(size, (loff_t __user *)arg); in snapshot_ioctl()
306 error = put_user(size, (loff_t __user *)arg); in snapshot_ioctl()
317 error = put_user(offset, (loff_t __user *)arg); in snapshot_ioctl()
405 BUILD_BUG_ON(sizeof(loff_t) != sizeof(compat_loff_t)); in snapshot_compat_ioctl()
412 loff_t offset; in snapshot_compat_ioctl()
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dlprocfs_status.h633 size_t count, loff_t *off);
635 size_t count, loff_t *off);
637 size_t count, loff_t *off);
640 size_t count, loff_t *off);
720 loff_t *off) \
731 loff_t *off) \
752 size_t count, loff_t *off);
756 loff_t off, int count,
761 loff_t off, int count,
766 loff_t off, int count,
[all …]
/linux-4.1.27/arch/cris/arch-v10/drivers/
Deeprom.c82 static loff_t eeprom_lseek(struct file * file, loff_t offset, int orig);
84 loff_t *off);
86 loff_t *off);
91 static int eeprom_write_buf(loff_t addr, const char * buf, int count);
92 static int eeprom_read_buf(loff_t addr, char * buf, int count);
395 static loff_t eeprom_lseek(struct file * file, loff_t offset, int orig) in eeprom_lseek()
436 static int eeprom_read_buf(loff_t addr, char * buf, int count) in eeprom_read_buf()
445 static ssize_t eeprom_read(struct file * file, char * buf, size_t count, loff_t *off) in eeprom_read()
502 static int eeprom_write_buf(loff_t addr, const char * buf, int count) in eeprom_write_buf()
511 loff_t *off) in eeprom_write()
/linux-4.1.27/drivers/char/
Dmem.c99 size_t count, loff_t *ppos) in read_mem()
159 size_t count, loff_t *ppos) in write_mem()
380 size_t count, loff_t *ppos) in read_kmem()
456 size_t count, loff_t *ppos) in do_write_kmem()
507 size_t count, loff_t *ppos) in write_kmem()
557 size_t count, loff_t *ppos) in read_port()
575 size_t count, loff_t *ppos) in write_port()
599 size_t count, loff_t *ppos) in read_null()
605 size_t count, loff_t *ppos) in write_null()
629 loff_t *ppos, size_t len, unsigned int flags) in splice_write_null()
[all …]
Dps3flash.c98 static loff_t ps3flash_llseek(struct file *file, loff_t offset, int origin) in ps3flash_llseek()
106 size_t count, loff_t *pos) in ps3flash_read()
175 const void *kernelbuf, size_t count, loff_t *pos) in ps3flash_write()
250 size_t count, loff_t *pos) in ps3flash_user_read()
256 size_t count, loff_t *pos) in ps3flash_user_write()
261 static ssize_t ps3flash_kernel_read(void *buf, size_t count, loff_t pos) in ps3flash_kernel_read()
267 loff_t pos) in ps3flash_kernel_write()
289 static int ps3flash_fsync(struct file *file, loff_t start, loff_t end, int datasync) in ps3flash_fsync()
Dgeneric_nvram.c34 static loff_t nvram_llseek(struct file *file, loff_t offset, int origin) in nvram_llseek()
57 size_t count, loff_t *ppos) in read_nvram()
74 size_t count, loff_t *ppos) in write_nvram()
Dtile-srom.c87 loff_t off, size_t count) in _srom_read()
107 loff_t off, size_t count) in _srom_write()
174 size_t count, loff_t *f_pos) in srom_read()
229 size_t count, loff_t *f_pos) in srom_write()
275 loff_t srom_llseek(struct file *file, loff_t offset, int origin) in srom_llseek()
/linux-4.1.27/fs/isofs/
Dcompress.c43 static loff_t zisofs_uncompress_block(struct inode *inode, loff_t block_start, in zisofs_uncompress_block()
44 loff_t block_end, int pcount, in zisofs_uncompress_block()
77 return ((loff_t)pcount) << PAGE_CACHE_SHIFT; in zisofs_uncompress_block()
202 loff_t start_off, end_off; in zisofs_fill_pages()
203 loff_t block_start, block_end; in zisofs_fill_pages()
207 loff_t poffset = 0; in zisofs_fill_pages()
213 loff_t ret; in zisofs_fill_pages()
223 end_off = min_t(loff_t, start_off + PAGE_CACHE_SIZE, inode->i_size); in zisofs_fill_pages()
/linux-4.1.27/fs/gfs2/
Dfile.c56 static loff_t gfs2_llseek(struct file *file, loff_t offset, int whence) in gfs2_llseek()
60 loff_t error; in gfs2_llseek()
331 static void gfs2_size_hint(struct file *filep, loff_t offset, size_t size) in gfs2_size_hint()
392 loff_t size; in gfs2_page_mkwrite()
651 static int gfs2_fsync(struct file *file, loff_t start, loff_t end, in gfs2_fsync()
724 static int fallocate_chunk(struct inode *inode, loff_t offset, loff_t len, in fallocate_chunk()
778 static void calc_max_reserv(struct gfs2_inode *ip, loff_t *len, in calc_max_reserv()
782 loff_t max = *len; in calc_max_reserv()
793 *len = ((loff_t)max_data - 3) << sdp->sd_sb.sb_bsize_shift; in calc_max_reserv()
800 static long __gfs2_fallocate(struct file *file, int mode, loff_t offset, loff_t len) in __gfs2_fallocate()
[all …]
/linux-4.1.27/security/tomoyo/
Dsecurityfs_if.c40 size_t count, loff_t *ppos) in tomoyo_write_self()
106 size_t count, loff_t *ppos) in tomoyo_read_self()
109 loff_t len = strlen(domain); in tomoyo_read_self()
110 loff_t pos = *ppos; in tomoyo_read_self()
180 loff_t *ppos) in tomoyo_read()
196 size_t count, loff_t *ppos) in tomoyo_write()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
Dmodule.c495 static int proc_call_handler(void *data, int write, loff_t *ppos, in proc_call_handler()
498 loff_t pos, void __user *buffer, int len)) in proc_call_handler()
515 loff_t pos, void __user *buffer, int nob) in __proc_dobitmasks()
556 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dobitmasks()
566 loff_t pos, void __user *buffer, int nob) in __proc_dump_kernel()
575 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dump_kernel()
582 loff_t pos, void __user *buffer, int nob) in __proc_daemon_file()
598 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_daemon_file()
605 loff_t pos, void __user *buffer, int nob) in __proc_debug_mb()
623 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_debug_mb()
[all …]
/linux-4.1.27/drivers/mtd/chips/
Dmap_absent.c29 static int map_absent_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
30 static int map_absent_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
71 static int map_absent_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *b… in map_absent_read()
76 static int map_absent_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_ch… in map_absent_write()
Dmap_rom.c18 static int maprom_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
19 static int maprom_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
83 static int maprom_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in maprom_read()
97 static int maprom_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in maprom_write()
Dmap_ram.c18 static int mapram_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
19 static int mapram_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
99 static int mapram_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in mapram_read()
108 static int mapram_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in mapram_write()
Dcfi_cmdset_0002.c52 static int cfi_amdstd_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
53 static int cfi_amdstd_write_words(struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
54 static int cfi_amdstd_write_buffers(struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
65 static int cfi_amdstd_secsi_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
66 static int cfi_amdstd_read_fact_prot_reg(struct mtd_info *, loff_t, size_t,
68 static int cfi_amdstd_read_user_prot_reg(struct mtd_info *, loff_t, size_t,
70 static int cfi_amdstd_write_user_prot_reg(struct mtd_info *, loff_t, size_t,
72 static int cfi_amdstd_lock_user_prot_reg(struct mtd_info *, loff_t, size_t);
74 static int cfi_amdstd_panic_write(struct mtd_info *mtd, loff_t to, size_t len,
86 static int cfi_atmel_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
[all …]
/linux-4.1.27/security/keys/
Dproc.c22 static void *proc_keys_start(struct seq_file *p, loff_t *_pos);
23 static void *proc_keys_next(struct seq_file *p, void *v, loff_t *_pos);
42 static void *proc_key_users_start(struct seq_file *p, loff_t *_pos);
43 static void *proc_key_users_next(struct seq_file *p, void *v, loff_t *_pos);
138 static void *proc_keys_start(struct seq_file *p, loff_t *_pos) in proc_keys_start()
161 static void *proc_keys_next(struct seq_file *p, void *v, loff_t *_pos) in proc_keys_next()
303 static void *proc_key_users_start(struct seq_file *p, loff_t *_pos) in proc_key_users_start()
307 loff_t pos = *_pos; in proc_key_users_start()
320 static void *proc_key_users_next(struct seq_file *p, void *v, loff_t *_pos) in proc_key_users_next()
/linux-4.1.27/drivers/w1/slaves/
Dw1_ds2408.c76 struct bin_attribute *bin_attr, char *buf, loff_t off, in state_read()
89 loff_t off, size_t count) in output_read()
102 loff_t off, size_t count) in activity_read()
115 loff_t off, size_t count) in cond_search_mask_read()
129 char *buf, loff_t off, size_t count) in cond_search_polarity_read()
139 loff_t off, size_t count) in status_control_read()
149 loff_t off, size_t count) in output_write()
220 loff_t off, size_t count) in activity_write()
250 loff_t off, size_t count) in status_control_write()
/linux-4.1.27/arch/parisc/kernel/
Dsys_parisc.c320 return sys_truncate64(path, (loff_t)high << 32 | low); in parisc_truncate64()
326 return sys_ftruncate64(fd, (loff_t)high << 32 | low); in parisc_ftruncate64()
333 return sys_pread64(fd, buf, count, (loff_t)high << 32 | low); in parisc_pread64()
339 return sys_pwrite64(fd, buf, count, (loff_t)high << 32 | low); in parisc_pwrite64()
345 return sys_readahead(fd, (loff_t)high << 32 | low, count); in parisc_readahead()
352 return sys_fadvise64_64(fd, (loff_t)high_off << 32 | low_off, in parisc_fadvise64_64()
353 (loff_t)high_len << 32 | low_len, advice); in parisc_fadvise64_64()
360 return sys_sync_file_range(fd, (loff_t)hi_off << 32 | lo_off, in parisc_sync_file_range()
361 (loff_t)hi_nbytes << 32 | lo_nbytes, flags); in parisc_sync_file_range()
/linux-4.1.27/drivers/mtd/devices/
Dslram.c76 static int slram_point(struct mtd_info *, loff_t, size_t, size_t *, void **,
78 static int slram_unpoint(struct mtd_info *, loff_t, size_t);
79 static int slram_read(struct mtd_info *, loff_t, size_t, size_t *, u_char *);
80 static int slram_write(struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
96 static int slram_point(struct mtd_info *mtd, loff_t from, size_t len, in slram_point()
106 static int slram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in slram_unpoint()
111 static int slram_read(struct mtd_info *mtd, loff_t from, size_t len, in slram_read()
121 static int slram_write(struct mtd_info *mtd, loff_t to, size_t len, in slram_write()
Dmtdram.c43 static int ram_point(struct mtd_info *mtd, loff_t from, size_t len, in ram_point()
51 static int ram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in ram_unpoint()
69 static int ram_read(struct mtd_info *mtd, loff_t from, size_t len, in ram_read()
77 static int ram_write(struct mtd_info *mtd, loff_t to, size_t len, in ram_write()
/linux-4.1.27/drivers/infiniband/ulp/ipoib/
Dipoib_fs.c58 static void *ipoib_mcg_seq_start(struct seq_file *file, loff_t *pos) in ipoib_mcg_seq_start()
61 loff_t n = *pos; in ipoib_mcg_seq_start()
78 loff_t *pos) in ipoib_mcg_seq_next()
157 static void *ipoib_path_seq_start(struct seq_file *file, loff_t *pos) in ipoib_path_seq_start()
160 loff_t n = *pos; in ipoib_path_seq_start()
177 loff_t *pos) in ipoib_path_seq_next()
/linux-4.1.27/drivers/mtd/nand/
Dnand_bbt.c82 static int nand_update_bbt(struct mtd_info *mtd, loff_t offs);
180 loff_t from; in read_bbt()
188 from = ((loff_t)page) << this->page_shift; in read_bbt()
226 (loff_t)(offs + act) << in read_bbt()
238 (loff_t)(offs + act) << in read_bbt()
293 static int scan_read_data(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_data()
317 static int scan_read_oob(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_oob()
347 static int scan_read(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read()
357 static int scan_write_bbt(struct mtd_info *mtd, loff_t offs, size_t len, in scan_write_bbt()
398 scan_read(mtd, buf, (loff_t)td->pages[0] << this->page_shift, in read_abs_bbts()
[all …]
/linux-4.1.27/drivers/base/regmap/
Dregmap-debugfs.c40 loff_t *ppos) in regmap_name_read_file()
86 loff_t from, in regmap_debugfs_get_dump_start()
87 loff_t *pos) in regmap_debugfs_get_dump_start()
90 loff_t p = 0; in regmap_debugfs_get_dump_start()
186 size_t count, loff_t *ppos) in regmap_read_debugfs()
189 loff_t p = *ppos; in regmap_read_debugfs()
255 size_t count, loff_t *ppos) in regmap_map_read_file()
273 size_t count, loff_t *ppos) in regmap_map_write_file()
315 size_t count, loff_t *ppos) in regmap_range_read_file()
332 loff_t *ppos) in regmap_reg_ranges_read_file()
[all …]
/linux-4.1.27/drivers/bluetooth/
Dbtmrvl_debugfs.c35 const char __user *ubuf, size_t count, loff_t *ppos) in btmrvl_hscfgcmd_write()
61 size_t count, loff_t *ppos) in btmrvl_hscfgcmd_read()
81 size_t count, loff_t *ppos) in btmrvl_pscmd_write()
108 size_t count, loff_t *ppos) in btmrvl_pscmd_read()
127 size_t count, loff_t *ppos) in btmrvl_hscmd_write()
152 size_t count, loff_t *ppos) in btmrvl_hscmd_read()
171 size_t count, loff_t *ppos) in btmrvl_fwdump_write()
/linux-4.1.27/fs/nilfs2/
Dsegment.h148 loff_t sc_dsync_start;
149 loff_t sc_dsync_end;
234 loff_t, loff_t);
/linux-4.1.27/fs/proc/
Dnommu.c62 ((loff_t)region->vm_pgoff) << PAGE_SHIFT, in nommu_region_show()
85 static void *nommu_region_list_start(struct seq_file *m, loff_t *_pos) in nommu_region_list_start()
88 loff_t pos = *_pos; in nommu_region_list_start()
103 static void *nommu_region_list_next(struct seq_file *m, void *v, loff_t *pos) in nommu_region_list_next()
Ddevices.c8 int i = *(loff_t *) v; in devinfo_show()
26 static void *devinfo_start(struct seq_file *f, loff_t *pos) in devinfo_start()
33 static void *devinfo_next(struct seq_file *f, void *v, loff_t *pos) in devinfo_next()
Dinode.c180 static loff_t proc_reg_llseek(struct file *file, loff_t offset, int whence) in proc_reg_llseek()
183 loff_t rv = -EINVAL; in proc_reg_llseek()
185 loff_t (*llseek)(struct file *, loff_t, int); in proc_reg_llseek()
195 static ssize_t proc_reg_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) in proc_reg_read()
197 ssize_t (*read)(struct file *, char __user *, size_t, loff_t *); in proc_reg_read()
209 static ssize_t proc_reg_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) in proc_reg_write()
211 ssize_t (*write)(struct file *, const char __user *, size_t, loff_t *); in proc_reg_write()
Dconsoles.c63 static void *c_start(struct seq_file *m, loff_t *pos) in c_start()
66 loff_t off = 0; in c_start()
76 static void *c_next(struct seq_file *m, void *v, loff_t *pos) in c_next()
Dinterrupts.c11 static void *int_seq_start(struct seq_file *f, loff_t *pos) in int_seq_start()
16 static void *int_seq_next(struct seq_file *f, void *v, loff_t *pos) in int_seq_next()
/linux-4.1.27/drivers/macintosh/
Dnvram.c21 static loff_t nvram_llseek(struct file *file, loff_t offset, int origin) in nvram_llseek()
43 size_t count, loff_t *ppos) in read_nvram()
60 size_t count, loff_t *ppos) in write_nvram()
/linux-4.1.27/fs/f2fs/
Dfile.c172 int f2fs_sync_file(struct file *file, loff_t start, loff_t end, int datasync) in f2fs_sync_file()
313 static loff_t f2fs_seek_block(struct file *file, loff_t offset, int whence) in f2fs_seek_block()
316 loff_t maxbytes = inode->i_sb->s_maxbytes; in f2fs_seek_block()
319 loff_t data_ofs = offset; in f2fs_seek_block()
320 loff_t isize; in f2fs_seek_block()
361 data_ofs = (loff_t)pgofs << PAGE_CACHE_SHIFT) { in f2fs_seek_block()
385 static loff_t f2fs_llseek(struct file *file, loff_t offset, int whence) in f2fs_llseek()
388 loff_t maxbytes = inode->i_sb->s_maxbytes; in f2fs_llseek()
667 loff_t start, loff_t len) in fill_zero()
712 static int punch_hole(struct inode *inode, loff_t offset, loff_t len) in punch_hole()
[all …]
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/
Drouter_proc.c46 #define LNET_LOFFT_BITS (sizeof(loff_t) * 8)
86 (((((loff_t)(cpt)) & LNET_PROC_CPT_MASK) << LNET_PROC_VPOS_BITS) | \
87 ((((loff_t)(ver)) & LNET_PROC_VER_MASK) << LNET_PROC_HPOS_BITS) | \
88 ((((loff_t)(hash)) & LNET_PROC_HASH_MASK) << LNET_PROC_HOFF_BITS) | \
93 static int proc_call_handler(void *data, int write, loff_t *ppos, in proc_call_handler()
96 loff_t pos, void __user *buffer, int len)) in proc_call_handler()
113 loff_t pos, void __user *buffer, int nob) in __proc_lnet_stats()
161 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_lnet_stats()
168 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_lnet_routes()
178 CLASSERT(sizeof(loff_t) >= 4); in proc_lnet_routes()
[all …]
/linux-4.1.27/fs/ceph/
Dfile.c560 ceph_sync_direct_write(struct kiocb *iocb, struct iov_iter *from, loff_t pos) in ceph_sync_direct_write()
677 ceph_sync_write(struct kiocb *iocb, struct iov_iter *from, loff_t pos) in ceph_sync_write()
861 loff_t i_size; in ceph_read_iter()
884 loff_t end = min_t(loff_t, i_size, in ceph_read_iter()
886 end = min_t(loff_t, end, PAGE_CACHE_SIZE); in ceph_read_iter()
946 loff_t pos; in ceph_write_iter()
1018 loff_t old_size = inode->i_size; in ceph_write_iter()
1069 static loff_t ceph_llseek(struct file *file, loff_t offset, int whence) in ceph_llseek()
1124 struct inode *inode, loff_t offset, unsigned size) in ceph_zero_partial_page()
1138 static void ceph_zero_pagecache_range(struct inode *inode, loff_t offset, in ceph_zero_pagecache_range()
[all …]
/linux-4.1.27/net/x25/
Dx25_proc.c30 static void *x25_seq_route_start(struct seq_file *seq, loff_t *pos) in x25_seq_route_start()
37 static void *x25_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) in x25_seq_route_next()
65 static void *x25_seq_socket_start(struct seq_file *seq, loff_t *pos) in x25_seq_socket_start()
72 static void *x25_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) in x25_seq_socket_next()
118 static void *x25_seq_forward_start(struct seq_file *seq, loff_t *pos) in x25_seq_forward_start()
125 static void *x25_seq_forward_next(struct seq_file *seq, void *v, loff_t *pos) in x25_seq_forward_next()
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/linux/
Dlinux-sysctl.c84 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_set_timeout()
95 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_memory_alloc()
119 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_pages_alloc()
143 size_t *lenp, loff_t *ppos) in proc_mem_max()
167 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_pages_max()
191 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_max_dirty_pages_in_mb()
232 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_alloc_fail_rate()
Dlinux-module.c285 size_t count, loff_t *off) in obd_proc_jobid_var_seq_write()
312 size_t count, loff_t *off) in obd_proc_jobid_name_seq_write()
344 static void *obd_device_list_seq_start(struct seq_file *p, loff_t *pos) in obd_device_list_seq_start()
356 static void *obd_device_list_seq_next(struct seq_file *p, void *v, loff_t *pos) in obd_device_list_seq_next()
367 loff_t index = *(loff_t *)v; in obd_device_list_seq_show()
/linux-4.1.27/drivers/mtd/onenand/
Donenand_base.c273 static unsigned flexonenand_block(struct onenand_chip *this, loff_t addr) in flexonenand_block()
292 inline unsigned onenand_block(struct onenand_chip *this, loff_t addr) in onenand_block()
306 static loff_t flexonenand_addr(struct onenand_chip *this, int block) in flexonenand_addr()
308 loff_t ofs = 0; in flexonenand_addr()
318 ofs += (loff_t)block << (this->erase_shift - 1); in flexonenand_addr()
320 ofs += (loff_t)(block - boundary - 1) << (this->erase_shift - 1); in flexonenand_addr()
324 loff_t onenand_addr(struct onenand_chip *this, int block) in onenand_addr()
327 return (loff_t)block << this->erase_shift; in onenand_addr()
349 int flexonenand_region(struct mtd_info *mtd, loff_t addr) in flexonenand_region()
370 static int onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, size_t len) in onenand_command()
[all …]
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Ddebugfs.c74 size_t count, loff_t *ppos) in iwl_dbgfs_tx_flush_write()
95 size_t count, loff_t *ppos) in iwl_dbgfs_sta_drain_write()
125 size_t count, loff_t *ppos) in iwl_dbgfs_sram_read()
160 size_t count, loff_t *ppos) in iwl_dbgfs_sram_write()
192 size_t count, loff_t *ppos) in iwl_dbgfs_set_nic_temperature_read()
215 loff_t *ppos) in iwl_dbgfs_set_nic_temperature_write()
259 size_t count, loff_t *ppos) in iwl_dbgfs_nic_temp_read()
281 size_t count, loff_t *ppos) in iwl_dbgfs_stations_read()
311 size_t count, loff_t *ppos) in iwl_dbgfs_disable_power_off_read()
327 size_t count, loff_t *ppos) in iwl_dbgfs_disable_power_off_write()
[all …]
Ddebugfs-vif.c131 size_t count, loff_t *ppos) in iwl_dbgfs_pm_params_write()
195 size_t count, loff_t *ppos) in iwl_dbgfs_pm_params_read()
211 size_t count, loff_t *ppos) in iwl_dbgfs_mac_params_read()
340 size_t count, loff_t *ppos) in iwl_dbgfs_bf_params_write()
438 size_t count, loff_t *ppos) in iwl_dbgfs_bf_params_read()
486 size_t count, loff_t *ppos) in iwl_dbgfs_low_latency_write()
508 size_t count, loff_t *ppos) in iwl_dbgfs_low_latency_read()
522 size_t count, loff_t *ppos) in iwl_dbgfs_uapsd_misbehaving_read()
535 loff_t *ppos) in iwl_dbgfs_uapsd_misbehaving_write()
549 size_t count, loff_t *ppos) in iwl_dbgfs_rx_phyinfo_write()
[all …]
/linux-4.1.27/fs/fuse/
Dcontrol.c34 size_t count, loff_t *ppos) in fuse_conn_abort_write()
45 size_t len, loff_t *ppos) in fuse_conn_waiting_read()
65 size_t len, loff_t *ppos, unsigned val) in fuse_conn_limit_read()
74 size_t count, loff_t *ppos, unsigned *val, in fuse_conn_limit_write()
101 loff_t *ppos) in fuse_conn_max_background_read()
118 size_t count, loff_t *ppos) in fuse_conn_max_background_write()
138 loff_t *ppos) in fuse_conn_congestion_threshold_read()
155 size_t count, loff_t *ppos) in fuse_conn_congestion_threshold_write()
Dfuse_i.h683 loff_t pos, size_t count, int opcode);
705 int fuse_fsync_common(struct file *file, loff_t start, loff_t end,
874 loff_t offset, loff_t len);
903 loff_t *ppos, int flags);
911 bool fuse_write_update_size(struct inode *inode, loff_t pos);
/linux-4.1.27/net/ipx/
Dipx_proc.c17 static void *ipx_seq_interface_start(struct seq_file *seq, loff_t *pos) in ipx_seq_interface_start()
23 static void *ipx_seq_interface_next(struct seq_file *seq, void *v, loff_t *pos) in ipx_seq_interface_next()
63 static void *ipx_seq_route_start(struct seq_file *seq, loff_t *pos) in ipx_seq_route_start()
69 static void *ipx_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) in ipx_seq_route_next()
103 static __inline__ struct sock *ipx_get_socket_idx(loff_t pos) in ipx_get_socket_idx()
127 static void *ipx_seq_socket_start(struct seq_file *seq, loff_t *pos) in ipx_seq_socket_start()
129 loff_t l = *pos; in ipx_seq_socket_start()
135 static void *ipx_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) in ipx_seq_socket_next()
/linux-4.1.27/drivers/net/wireless/iwlegacy/
Ddebug.c156 size_t count, loff_t *ppos);
161 size_t count, loff_t *ppos);
232 loff_t *ppos) in il_dbgfs_tx_stats_read()
273 loff_t *ppos) in il_dbgfs_clear_traffic_stats_write()
293 loff_t *ppos) in il_dbgfs_rx_stats_read()
337 loff_t *ppos) in il_dbgfs_sram_read()
396 size_t count, loff_t *ppos) in il_dbgfs_sram_write()
421 loff_t *ppos) in il_dbgfs_stations_read()
485 loff_t *ppos) in il_dbgfs_nvm_read()
533 loff_t *ppos) in il_dbgfs_channels_read()
[all …]
/linux-4.1.27/kernel/
Dsysctl.c178 void __user *buffer, size_t *lenp, loff_t *ppos);
180 void __user *buffer, size_t *lenp, loff_t *ppos);
185 void __user *buffer, size_t *lenp, loff_t *ppos);
189 void __user *buffer, size_t *lenp, loff_t *ppos);
192 void __user *buffer, size_t *lenp, loff_t *ppos);
201 loff_t *ppos) in sysrq_sysctl_handler()
1748 size_t *lenp, loff_t *ppos) in _proc_do_string()
1839 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dostring()
2004 size_t *lenp, loff_t *ppos, in __do_proc_dointvec()
2102 void __user *buffer, size_t *lenp, loff_t *ppos, in do_proc_dointvec()
[all …]
/linux-4.1.27/fs/jfs/
Djfs_inode.h24 extern int jfs_fsync(struct file *, loff_t, loff_t, int);
33 extern void jfs_truncate_nolock(struct inode *, loff_t);
Dinode.c304 static void jfs_write_failed(struct address_space *mapping, loff_t to) in jfs_write_failed()
315 loff_t pos, unsigned len, unsigned flags, in jfs_write_begin()
334 loff_t offset) in jfs_direct_IO()
349 loff_t isize = i_size_read(inode); in jfs_direct_IO()
350 loff_t end = offset + count; in jfs_direct_IO()
374 void jfs_truncate_nolock(struct inode *ip, loff_t length) in jfs_truncate_nolock()
376 loff_t newsize; in jfs_truncate_nolock()
/linux-4.1.27/net/sctp/
Dsysctl.c63 loff_t *ppos);
66 loff_t *ppos);
69 loff_t *ppos);
72 loff_t *ppos);
75 loff_t *ppos);
317 loff_t *ppos) in proc_sctp_do_hmac_alg()
363 loff_t *ppos) in proc_sctp_do_rto_min()
392 loff_t *ppos) in proc_sctp_do_rto_max()
421 loff_t *ppos) in proc_sctp_do_alpha_beta()
432 loff_t *ppos) in proc_sctp_do_auth()
Dproc.c180 static void *sctp_eps_seq_start(struct seq_file *seq, loff_t *pos) in sctp_eps_seq_start()
199 static void *sctp_eps_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_eps_seq_next()
215 int hash = *(loff_t *)v; in sctp_eps_seq_show()
285 static void *sctp_assocs_seq_start(struct seq_file *seq, loff_t *pos) in sctp_assocs_seq_start()
308 static void *sctp_assocs_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_assocs_seq_next()
323 int hash = *(loff_t *)v; in sctp_assocs_seq_show()
410 static void *sctp_remaddr_seq_start(struct seq_file *seq, loff_t *pos) in sctp_remaddr_seq_start()
425 static void *sctp_remaddr_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_remaddr_seq_next()
443 int hash = *(loff_t *)v; in sctp_remaddr_seq_show()
Dobjcnt.c83 i = (int)*(loff_t *)v; in sctp_objcnt_seq_show()
91 static void *sctp_objcnt_seq_start(struct seq_file *seq, loff_t *pos) in sctp_objcnt_seq_start()
100 static void *sctp_objcnt_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_objcnt_seq_next()
/linux-4.1.27/drivers/mtd/lpddr/
Dlpddr_cmds.c32 static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len,
34 static int lpddr_write_buffers(struct mtd_info *mtd, loff_t to,
37 unsigned long count, loff_t to, size_t *retlen);
39 static int lpddr_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
40 static int lpddr_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
41 static int lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len,
43 static int lpddr_unpoint(struct mtd_info *mtd, loff_t adr, size_t len);
470 static int do_erase_oneblock(struct mtd_info *mtd, loff_t adr) in do_erase_oneblock()
497 static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len, in lpddr_read()
521 static int lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len, in lpddr_point()
[all …]
/linux-4.1.27/drivers/acpi/
Dec_sys.c32 size_t count, loff_t *off) in acpi_ec_read_io()
38 loff_t init_off = *off; in acpi_ec_read_io()
66 size_t count, loff_t *off) in acpi_ec_write_io()
73 loff_t init_off = *off; in acpi_ec_write_io()
/linux-4.1.27/drivers/remoteproc/
Dremoteproc_debugfs.c48 size_t count, loff_t *ppos) in rproc_trace_read()
76 size_t count, loff_t *ppos) in rproc_state_read()
99 size_t count, loff_t *ppos) in rproc_name_read()
119 size_t count, loff_t *ppos) in rproc_recovery_read()
153 size_t count, loff_t *ppos) in rproc_recovery_write()
/linux-4.1.27/drivers/isdn/capi/
Dkcapi_proc.c38 static void *controller_start(struct seq_file *seq, loff_t *pos) in controller_start()
49 static void *controller_next(struct seq_file *seq, void *v, loff_t *pos) in controller_next()
143 static void *applications_start(struct seq_file *seq, loff_t *pos) in applications_start()
155 applications_next(struct seq_file *seq, void *v, loff_t *pos) in applications_next()
249 static void *capi_driver_start(struct seq_file *seq, loff_t *pos) in capi_driver_start()
256 static void *capi_driver_next(struct seq_file *seq, void *v, loff_t *pos) in capi_driver_next()
/linux-4.1.27/fs/jffs2/
Dos-linux.h115 …v(struct jffs2_sb_info *c, const struct kvec *vecs, unsigned long count, loff_t to, size_t *retlen…
116 int jffs2_flash_write(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, const u_char…
117 int jffs2_flash_read(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, u_char *buf);
156 int jffs2_fsync(struct file *, loff_t, loff_t, int);
193 unsigned long count, loff_t to, size_t *retlen);
194 int jffs2_flash_direct_write(struct jffs2_sb_info *c, loff_t ofs, size_t len,
Dwritev.c17 unsigned long count, loff_t to, size_t *retlen) in jffs2_flash_direct_writev()
32 int jffs2_flash_direct_write(struct jffs2_sb_info *c, loff_t ofs, size_t len, in jffs2_flash_direct_write()
/linux-4.1.27/drivers/mtd/
Dmtdpart.c61 static int part_read(struct mtd_info *mtd, loff_t from, size_t len, in part_read()
80 static int part_point(struct mtd_info *mtd, loff_t from, size_t len, in part_point()
89 static int part_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in part_unpoint()
108 static int part_read_oob(struct mtd_info *mtd, loff_t from, in part_read_oob()
146 static int part_read_user_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_user_prot_reg()
162 static int part_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_fact_prot_reg()
178 static int part_write(struct mtd_info *mtd, loff_t to, size_t len, in part_write()
186 static int part_panic_write(struct mtd_info *mtd, loff_t to, size_t len, in part_panic_write()
194 static int part_write_oob(struct mtd_info *mtd, loff_t to, in part_write_oob()
206 static int part_write_user_prot_reg(struct mtd_info *mtd, loff_t from, in part_write_user_prot_reg()
[all …]
Dmtdcore.c822 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_point()
840 int mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in mtd_unpoint()
868 int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_read()
892 int mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_write()
913 int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_panic_write()
929 int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) in mtd_read_oob()
966 int mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read_fact_prot_reg()
989 int mtd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read_user_prot_reg()
1001 int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to, size_t len, in mtd_write_user_prot_reg()
1023 int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) in mtd_lock_user_prot_reg()
[all …]
/linux-4.1.27/arch/powerpc/include/asm/
Dnvram.h67 extern loff_t nvram_create_partition(const char *name, int sig,
71 extern int nvram_get_partition_size(loff_t data_index);
72 extern loff_t nvram_find_partition(const char *name, int sig, int *out_size);
/linux-4.1.27/drivers/hid/
Dhid-roccat-common.h44 char *buf, loff_t off, size_t count,
47 void const *buf, loff_t off, size_t count,
53 loff_t off, size_t count) \
62 loff_t off, size_t count) \
Dhid-roccat-lua.c30 char *buf, loff_t off, size_t count, in lua_sysfs_read()
52 void const *buf, loff_t off, size_t count, in lua_sysfs_write()
73 char *buf, loff_t off, size_t count) \
82 char *buf, loff_t off, size_t count) \
/linux-4.1.27/ipc/
Dipc_sysctl.c31 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec()
42 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec_minmax()
53 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_dointvec_minmax_orphans()
66 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_doulongvec_minmax()
77 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_ipc_auto_msgmni()
/linux-4.1.27/drivers/parisc/
Deisa_eeprom.c34 static loff_t eisa_eeprom_llseek(struct file *file, loff_t offset, int origin) in eisa_eeprom_llseek()
40 char __user *buf, size_t count, loff_t *ppos ) in eisa_eeprom_read()
/linux-4.1.27/net/mac80211/
Ddebugfs_sta.c25 size_t count, loff_t *ppos) \
61 size_t count, loff_t *ppos) in sta_flags_read()
90 size_t count, loff_t *ppos) in sta_num_ps_buf_frames_read()
105 size_t count, loff_t *ppos) in sta_inactive_ms_read()
115 size_t count, loff_t *ppos) in sta_connected_time_read()
139 size_t count, loff_t *ppos) in sta_last_seq_ctrl_read()
153 size_t count, loff_t *ppos) in sta_agg_status_read()
192 size_t count, loff_t *ppos) in sta_agg_status_write()
251 size_t count, loff_t *ppos) in sta_ht_capa_read()
333 size_t count, loff_t *ppos) in sta_vht_capa_read()
[all …]
Ddebugfs.c22 loff_t *ppos, char *fmt, ...) in mac80211_format_buffer()
37 size_t count, loff_t *ppos) \
76 size_t count, loff_t *ppos) in reset_write()
96 size_t count, loff_t *ppos) in hwflags_read()
158 size_t count, loff_t *ppos) in queues_read()
182 size_t count, loff_t *ppos, in format_devstat_counter()
207 size_t count, loff_t *ppos) \
Ddebugfs_key.c21 size_t count, loff_t *ppos) \
66 size_t count, loff_t *ppos) in key_algorithm_read()
79 size_t count, loff_t *ppos) in key_tx_spec_read()
132 size_t count, loff_t *ppos) in key_rx_spec_read()
200 size_t count, loff_t *ppos) in key_replays_read()
233 size_t count, loff_t *ppos) in key_icverrors_read()
258 size_t count, loff_t *ppos) in key_mic_failures_read()
274 size_t count, loff_t *ppos) in key_key_read()
/linux-4.1.27/drivers/net/wireless/mwifiex/
Ddebugfs.c75 size_t count, loff_t *ppos) in mwifiex_info_read()
165 size_t count, loff_t *ppos) in mwifiex_fw_dump_read()
200 size_t count, loff_t *ppos) in mwifiex_getlog_read()
276 size_t count, loff_t *ppos) in mwifiex_histogram_read()
352 size_t count, loff_t *ppos) in mwifiex_histogram_write()
412 size_t count, loff_t *ppos) in mwifiex_debug_read()
448 const char __user *ubuf, size_t count, loff_t *ppos) in mwifiex_regrdwr_write()
490 size_t count, loff_t *ppos) in mwifiex_regrdwr_read()
549 const char __user *ubuf, size_t count, loff_t *ppos) in mwifiex_rdeeprom_write()
590 size_t count, loff_t *ppos) in mwifiex_rdeeprom_read()
[all …]
/linux-4.1.27/security/integrity/ima/
Dima_fs.c31 loff_t *ppos, atomic_long_t *val) in ima_show_htable_value()
42 size_t count, loff_t *ppos) in ima_show_htable_violations()
54 size_t count, loff_t *ppos) in ima_show_measurements_count()
66 static void *ima_measurements_start(struct seq_file *m, loff_t *pos) in ima_measurements_start()
68 loff_t l = *pos; in ima_measurements_start()
83 static void *ima_measurements_next(struct seq_file *m, void *v, loff_t *pos) in ima_measurements_next()
260 size_t datalen, loff_t *ppos) in ima_write_policy()
/linux-4.1.27/arch/arm/kernel/
Dsys_arm.c36 loff_t offset, loff_t len) in sys_arm_fadvise64_64()
/linux-4.1.27/drivers/staging/vme/devices/
Dvme_user.c134 static ssize_t vme_user_read(struct file *, char __user *, size_t, loff_t *);
136 loff_t *);
137 static loff_t vme_user_llseek(struct file *, loff_t, int);
231 loff_t *ppos) in resource_to_user()
270 size_t count, loff_t *ppos) in resource_from_user()
298 size_t count, loff_t *ppos) in buffer_to_user()
317 size_t count, loff_t *ppos) in buffer_from_user()
336 loff_t *ppos) in vme_user_read()
382 size_t count, loff_t *ppos) in vme_user_write()
427 static loff_t vme_user_llseek(struct file *file, loff_t off, int whence) in vme_user_llseek()
[all …]
/linux-4.1.27/fs/9p/
Dvfs_addr.c164 loff_t size = i_size_read(inode); in v9fs_vfs_writepage_locked()
248 v9fs_direct_IO(struct kiocb *iocb, struct iov_iter *iter, loff_t pos) in v9fs_direct_IO()
257 loff_t i_size = i_size_read(inode); in v9fs_direct_IO()
268 loff_t pos, unsigned len, unsigned flags, in v9fs_write_begin()
304 loff_t pos, unsigned len, unsigned copied, in v9fs_write_end()
307 loff_t last_pos = pos + copied; in v9fs_write_end()
/linux-4.1.27/fs/hppfs/
Dhppfs.c33 loff_t len;
179 loff_t *ppos, int is_user) in read_proc()
181 ssize_t (*read)(struct file *, char __user *, size_t, loff_t *); in read_proc()
237 loff_t *ppos) in hppfs_read()
241 loff_t off; in hppfs_read()
286 size_t len, loff_t *ppos) in hppfs_write()
290 ssize_t (*write)(struct file *, const char __user *, size_t, loff_t *); in hppfs_write()
332 loff_t *size_out) in hppfs_get_data()
509 static loff_t hppfs_llseek(struct file *file, loff_t off, int where) in hppfs_llseek()
513 loff_t (*llseek)(struct file *, loff_t, int); in hppfs_llseek()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/osc/
Dlproc_osc.c58 size_t count, loff_t *off) in osc_active_seq_write()
93 size_t count, loff_t *off) in osc_max_rpcs_in_flight_seq_write()
137 size_t count, loff_t *off) in osc_max_dirty_mb_seq_write()
181 size_t count, loff_t *off) in osc_cached_mb_seq_write()
240 size_t count, loff_t *off) in osc_cur_grant_bytes_seq_write()
297 size_t count, loff_t *off) in osc_grant_shrink_interval_seq_write()
331 size_t count, loff_t *off) in osc_checksum_seq_write()
372 size_t count, loff_t *off) in osc_checksum_type_seq_write()
413 size_t count, loff_t *off) in osc_resend_count_seq_write()
442 size_t count, loff_t *off) in osc_contention_seconds_seq_write()
[all …]
/linux-4.1.27/fs/cifs/
Dcifsfs.h99 extern int cifs_fsync(struct file *, loff_t, loff_t, int);
100 extern int cifs_strict_fsync(struct file *, loff_t, loff_t, int);
/linux-4.1.27/arch/blackfin/kernel/
Dcplbinfo.c30 loff_t pos;
51 loff_t pos; in cplbinfo_show()
82 static void *cplbinfo_start(struct seq_file *m, loff_t *pos) in cplbinfo_start()
98 static void *cplbinfo_next(struct seq_file *m, void *p, loff_t *pos) in cplbinfo_next()
/linux-4.1.27/drivers/misc/
Dlkdtm.c616 const char __user *user_buf, size_t count, loff_t *off) in do_register_entry()
652 size_t count, loff_t *off) in lkdtm_debugfs_read()
680 size_t count, loff_t *off) in int_hardware_entry()
686 size_t count, loff_t *off) in int_hw_irq_en()
692 size_t count, loff_t *off) in int_tasklet_entry()
698 size_t count, loff_t *off) in fs_devrw_entry()
704 size_t count, loff_t *off) in mem_swapout_entry()
710 size_t count, loff_t *off) in timeradd_entry()
716 const char __user *buf, size_t count, loff_t *off) in scsi_dispatch_cmd_entry()
722 size_t count, loff_t *off) in ide_core_cp_entry()
[all …]
/linux-4.1.27/fs/ocfs2/
Daops.c226 loff_t size; in ocfs2_read_inline_data()
285 loff_t start = (loff_t)page->index << PAGE_CACHE_SHIFT; in ocfs2_readpage()
360 loff_t start; in ocfs2_readpages()
388 start = (loff_t)last->index << PAGE_CACHE_SHIFT; in ocfs2_readpages()
612 loff_t offset, in ocfs2_dio_end_io()
645 struct inode *inode, loff_t offset) in ocfs2_is_overwrite()
668 struct inode *inode, loff_t offset, in ocfs2_direct_IO_zero_extend()
702 struct inode *inode, loff_t offset) in ocfs2_direct_IO_extend_no_holes()
780 loff_t offset) in ocfs2_direct_IO_write()
794 loff_t final_size = offset + count; in ocfs2_direct_IO_write()
[all …]
Dquota.h28 loff_t dq_local_off; /* Offset in the local quota file */
94 size_t len, loff_t off);
96 const char *data, size_t len, loff_t off);
/linux-4.1.27/drivers/vfio/pci/
Dvfio_pci_rdwr.c31 loff_t off, size_t count, size_t x_start, in do_io_rw()
117 size_t count, loff_t *ppos, bool iswrite) in vfio_pci_bar_rw()
120 loff_t pos = *ppos & VFIO_PCI_OFFSET_MASK; in vfio_pci_bar_rw()
181 size_t count, loff_t *ppos, bool iswrite) in vfio_pci_vga_rw()
184 loff_t off, pos = *ppos & VFIO_PCI_OFFSET_MASK; in vfio_pci_vga_rw()
Dvfio_pci_private.h79 loff_t *ppos, bool iswrite);
82 size_t count, loff_t *ppos, bool iswrite);
85 size_t count, loff_t *ppos, bool iswrite);
/linux-4.1.27/fs/coda/
Dcoda_int.h14 int coda_fsync(struct file *coda_file, loff_t start, loff_t end, int datasync);
/linux-4.1.27/fs/ext3/
Ddir.c130 file->f_ra.prev_pos = (loff_t)index << PAGE_CACHE_SHIFT; in ext3_readdir()
226 static inline loff_t hash2pos(struct file *filp, __u32 major, __u32 minor) in hash2pos()
235 static inline __u32 pos2maj_hash(struct file *filp, loff_t pos) in pos2maj_hash()
244 static inline __u32 pos2min_hash(struct file *filp, loff_t pos) in pos2min_hash()
256 static inline loff_t ext3_get_htree_eof(struct file *filp) in ext3_get_htree_eof()
278 static loff_t ext3_dir_llseek(struct file *file, loff_t offset, int whence) in ext3_dir_llseek()
282 loff_t htree_max = ext3_get_htree_eof(file); in ext3_dir_llseek()
325 loff_t pos) in ext3_htree_create_dir_info()
/linux-4.1.27/arch/powerpc/platforms/cell/spufs/
Dfile.c83 size_t len, loff_t *ppos) in spufs_attr_read()
116 size_t len, loff_t *ppos) in spufs_attr_write()
189 size_t size, loff_t *pos) in __spufs_mem_read()
198 size_t size, loff_t *pos) in spufs_mem_read()
214 size_t size, loff_t *ppos) in spufs_mem_write()
218 loff_t pos = *ppos; in spufs_mem_write()
531 size_t size, loff_t *pos) in __spufs_regs_read()
540 size_t size, loff_t *pos) in spufs_regs_read()
560 size_t size, loff_t *pos) in spufs_regs_write()
589 size_t size, loff_t * pos) in __spufs_fpcr_read()
[all …]
/linux-4.1.27/drivers/pnp/isapnp/
Dproc.c30 static loff_t isapnp_proc_bus_lseek(struct file *file, loff_t off, int whence) in isapnp_proc_bus_lseek()
36 size_t nbytes, loff_t * ppos) in isapnp_proc_bus_read()
/linux-4.1.27/fs/reiserfs/
Ddir.c17 static int reiserfs_dir_fsync(struct file *filp, loff_t start, loff_t end,
31 static int reiserfs_dir_fsync(struct file *filp, loff_t start, loff_t end, in reiserfs_dir_fsync()
73 loff_t next_pos; in reiserfs_readdir_inode()
144 loff_t cur_pos = deh_offset(deh); in reiserfs_readdir_inode()
Dxattr.h53 static inline loff_t reiserfs_xattr_nblocks(struct inode *inode, loff_t size) in reiserfs_xattr_nblocks()
55 loff_t ret = 0; in reiserfs_xattr_nblocks()
/linux-4.1.27/arch/x86/kernel/
Dmsr.c48 static loff_t msr_seek(struct file *file, loff_t offset, int orig) in msr_seek()
50 loff_t ret; in msr_seek()
71 size_t count, loff_t *ppos) in msr_read()
99 size_t count, loff_t *ppos) in msr_write()
Dcpuid.c61 static loff_t cpuid_seek(struct file *file, loff_t offset, int orig) in cpuid_seek()
63 loff_t ret; in cpuid_seek()
84 size_t count, loff_t *ppos) in cpuid_read()
/linux-4.1.27/kernel/trace/
Dtrace_printk.c116 find_next_mod_format(int start_index, void *v, const char **fmt, loff_t *pos) in find_next_mod_format()
173 find_next_mod_format(int start_index, void *v, const char **fmt, loff_t *pos) in find_next_mod_format()
241 static const char **find_next(void *v, loff_t *pos) in find_next()
274 t_start(struct seq_file *m, loff_t *pos) in t_start()
280 static void *t_next(struct seq_file *m, void * v, loff_t *pos) in t_next()
Dtrace_stack.c230 size_t count, loff_t *ppos) in stack_max_size_read()
244 size_t count, loff_t *ppos) in stack_max_size_write()
283 __next(struct seq_file *m, loff_t *pos) in __next()
295 t_next(struct seq_file *m, void *v, loff_t *pos) in t_next()
301 static void *t_start(struct seq_file *m, loff_t *pos) in t_start()
421 loff_t *ppos) in stack_trace_sysctl()
/linux-4.1.27/net/8021q/
Dvlanproc.c40 static void *vlan_seq_start(struct seq_file *seq, loff_t *pos);
41 static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos);
202 static void *vlan_seq_start(struct seq_file *seq, loff_t *pos) in vlan_seq_start()
207 loff_t i = 1; in vlan_seq_start()
224 static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos) in vlan_seq_next()
/linux-4.1.27/arch/frv/kernel/
Dpm.c154 void __user *buffer, size_t *lenp, loff_t *fpos) in sysctl_pm_do_suspend()
201 void __user *buffer, size_t *lenp, loff_t *fpos) in cmode_procctl()
273 void __user *buffer, size_t *lenp, loff_t *fpos) in p0_procctl()
286 void __user *buffer, size_t *lenp, loff_t *fpos) in cm_procctl()
/linux-4.1.27/net/ipv4/netfilter/
Dnf_conntrack_l3proto_ipv4_compat.c67 static struct hlist_nulls_node *ct_get_idx(struct seq_file *seq, loff_t pos) in ct_get_idx()
77 static void *ct_seq_start(struct seq_file *seq, loff_t *pos) in ct_seq_start()
84 static void *ct_seq_next(struct seq_file *s, void *v, loff_t *pos) in ct_seq_next()
252 static struct hlist_node *ct_expect_get_idx(struct seq_file *seq, loff_t pos) in ct_expect_get_idx()
262 static void *exp_seq_start(struct seq_file *seq, loff_t *pos) in exp_seq_start()
269 static void *exp_seq_next(struct seq_file *seq, void *v, loff_t *pos) in exp_seq_next()
329 static void *ct_cpu_seq_start(struct seq_file *seq, loff_t *pos) in ct_cpu_seq_start()
347 static void *ct_cpu_seq_next(struct seq_file *seq, void *v, loff_t *pos) in ct_cpu_seq_next()
/linux-4.1.27/drivers/scsi/fnic/
Dfnic_debugfs.c148 size_t cnt, loff_t *ppos) in fnic_trace_ctrl_read()
186 size_t cnt, loff_t *ppos) in fnic_trace_ctrl_write()
296 static loff_t fnic_trace_debugfs_lseek(struct file *file, in fnic_trace_debugfs_lseek()
297 loff_t offset, in fnic_trace_debugfs_lseek()
324 loff_t *pos) in fnic_trace_debugfs_read()
564 size_t cnt, loff_t *ppos) in fnic_reset_stats_read()
592 size_t cnt, loff_t *ppos) in fnic_reset_stats_write()
720 loff_t *pos) in fnic_stats_debugfs_read()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dvvp_dev.c285 static void vvp_pgcache_id_unpack(loff_t pos, struct vvp_pgcache_id *id) in vvp_pgcache_id_unpack()
294 static loff_t vvp_pgcache_id_pack(struct vvp_pgcache_id *id) in vvp_pgcache_id_pack()
347 static loff_t vvp_pgcache_find(const struct lu_env *env, in vvp_pgcache_find()
348 struct lu_device *dev, loff_t pos) in vvp_pgcache_find()
433 loff_t pos; in vvp_pgcache_show()
445 pos = *(loff_t *) v; in vvp_pgcache_show()
474 static void *vvp_pgcache_start(struct seq_file *f, loff_t *pos) in vvp_pgcache_start()
498 static void *vvp_pgcache_next(struct seq_file *f, void *v, loff_t *pos) in vvp_pgcache_next()
/linux-4.1.27/security/selinux/
Dselinuxfs.c132 size_t count, loff_t *ppos) in sel_read_enforce()
143 size_t count, loff_t *ppos) in sel_write_enforce()
203 size_t count, loff_t *ppos) in sel_read_handle_unknown()
233 size_t count, loff_t *ppos) in sel_read_handle_status()
275 size_t count, loff_t *ppos) in sel_write_disable()
329 size_t count, loff_t *ppos) in sel_read_policyvers()
353 size_t count, loff_t *ppos) in sel_read_mls()
436 size_t count, loff_t *ppos) in sel_read_policy()
505 size_t count, loff_t *ppos) in sel_write_load()
602 size_t count, loff_t *ppos) in sel_read_checkreqprot()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/lov/
Dlproc_lov.c57 size_t count, loff_t *off) in lov_stripesize_seq_write()
89 size_t count, loff_t *off) in lov_stripeoffset_seq_write()
120 size_t count, loff_t *off) in lov_stripetype_seq_write()
151 size_t count, loff_t *off) in lov_stripecount_seq_write()
205 static void *lov_tgt_seq_start(struct seq_file *p, loff_t *pos) in lov_tgt_seq_start()
222 static void *lov_tgt_seq_next(struct seq_file *p, void *v, loff_t *pos) in lov_tgt_seq_next()
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Dcommon-spectral.c214 size_t count, loff_t *ppos) in read_file_spec_scan_ctl()
312 size_t count, loff_t *ppos) in write_file_spec_scan_ctl()
363 size_t count, loff_t *ppos) in read_file_spectral_short_repeat()
375 size_t count, loff_t *ppos) in write_file_spectral_short_repeat()
411 size_t count, loff_t *ppos) in read_file_spectral_count()
423 size_t count, loff_t *ppos) in write_file_spectral_count()
459 size_t count, loff_t *ppos) in read_file_spectral_period()
471 size_t count, loff_t *ppos) in write_file_spectral_period()
507 size_t count, loff_t *ppos) in read_file_spectral_fft_period()
519 size_t count, loff_t *ppos) in write_file_spectral_fft_period()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe_debugfs.c45 size_t count, loff_t *ppos) in ixgbe_dbg_reg_ops_read()
81 size_t count, loff_t *ppos) in ixgbe_dbg_reg_ops_write()
150 size_t count, loff_t *ppos) in ixgbe_dbg_netdev_ops_read()
186 size_t count, loff_t *ppos) in ixgbe_dbg_netdev_ops_write()
/linux-4.1.27/net/rxrpc/
Dar-proc.c31 static void *rxrpc_call_seq_start(struct seq_file *seq, loff_t *_pos) in rxrpc_call_seq_start()
37 static void *rxrpc_call_seq_next(struct seq_file *seq, void *v, loff_t *pos) in rxrpc_call_seq_next()
112 static void *rxrpc_connection_seq_start(struct seq_file *seq, loff_t *_pos) in rxrpc_connection_seq_start()
119 loff_t *pos) in rxrpc_connection_seq_next()
/linux-4.1.27/arch/mips/lasat/
Dsysctl.c43 void *buffer, size_t *lenp, loff_t *ppos) in proc_dolasatstring()
61 void *buffer, size_t *lenp, loff_t *ppos) in proc_dolasatrtc()
86 void *buffer, size_t *lenp, loff_t *ppos) in proc_lasat_ip()
146 void *buffer, size_t *lenp, loff_t *ppos) in proc_lasat_prid()
/linux-4.1.27/drivers/base/
Ddevcoredump.c47 ssize_t (*read)(char *buffer, loff_t offset, size_t count,
90 char *buffer, loff_t offset, size_t count) in devcd_data_read()
100 char *buffer, loff_t offset, size_t count) in devcd_data_write()
176 static ssize_t devcd_readv(char *buffer, loff_t offset, size_t count, in devcd_readv()
232 ssize_t (*read)(char *buffer, loff_t offset, size_t count, in dev_coredumpm()
/linux-4.1.27/net/atm/
Dmpoa_proc.c51 size_t nbytes, loff_t *ppos);
107 static void *mpc_start(struct seq_file *m, loff_t *pos) in mpc_start()
109 loff_t l = *pos; in mpc_start()
120 static void *mpc_next(struct seq_file *m, void *v, loff_t *pos) in mpc_next()
207 size_t nbytes, loff_t *ppos) in proc_mpc_write()
Dresources.h23 void *atm_dev_seq_start(struct seq_file *seq, loff_t *pos);
25 void *atm_dev_seq_next(struct seq_file *seq, void *v, loff_t *pos);
/linux-4.1.27/drivers/infiniband/hw/ipath/
Dipath_fs.c98 size_t count, loff_t *ppos) in atomic_stats_read()
110 size_t count, loff_t *ppos) in atomic_counters_read()
128 size_t count, loff_t *ppos) in flash_read()
132 loff_t pos; in flash_read()
179 size_t count, loff_t *ppos) in flash_write()
183 loff_t pos; in flash_write()
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
Ddebug.c274 size_t count, loff_t *ppos) in read_file_war_stats()
372 size_t count, loff_t *ppos) in ath6kl_fwlog_read()
425 loff_t *ppos) in ath6kl_fwlog_block_read()
499 size_t count, loff_t *ppos) in ath6kl_fwlog_mask_read()
512 size_t count, loff_t *ppos) in ath6kl_fwlog_mask_write()
539 size_t count, loff_t *ppos) in read_file_tgt_stats()
696 size_t count, loff_t *ppos) in read_file_credit_dist_stats()
774 size_t count, loff_t *ppos) in ath6kl_endpoint_stats_read()
829 size_t count, loff_t *ppos) in ath6kl_endpoint_stats_write()
884 size_t count, loff_t *ppos) in ath6kl_regread_read()
[all …]
/linux-4.1.27/drivers/video/fbdev/mbx/
Dmbxdebugfs.c25 size_t count, loff_t *ppos) in write_file_dummy()
31 size_t count, loff_t *ppos) in sysconf_read_file()
47 size_t count, loff_t *ppos) in gsctl_read_file()
75 size_t count, loff_t *ppos) in display_read_file()
115 size_t count, loff_t *ppos) in clock_read_file()
138 size_t count, loff_t *ppos) in sdram_read_file()
160 size_t count, loff_t *ppos) in misc_read_file()
/linux-4.1.27/fs/sysfs/
Dfile.c83 size_t count, loff_t pos) in sysfs_kf_bin_read()
87 loff_t size = file_inode(of->file)->i_size; in sysfs_kf_bin_read()
107 size_t count, loff_t pos) in sysfs_kf_read()
123 size_t count, loff_t pos) in sysfs_kf_write()
136 size_t count, loff_t pos) in sysfs_kf_bin_write()
140 loff_t size = file_inode(of->file)->i_size; in sysfs_kf_bin_write()
245 loff_t size; in sysfs_add_file_mode_ns()
/linux-4.1.27/drivers/pci/
Dproc.c20 static loff_t proc_bus_pci_lseek(struct file *file, loff_t off, int whence) in proc_bus_pci_lseek()
27 size_t nbytes, loff_t *ppos) in proc_bus_pci_read()
111 size_t nbytes, loff_t *ppos) in proc_bus_pci_write()
299 static void *pci_seq_start(struct seq_file *m, loff_t *pos) in pci_seq_start()
302 loff_t n = *pos; in pci_seq_start()
311 static void *pci_seq_next(struct seq_file *m, void *v, loff_t *pos) in pci_seq_next()
/linux-4.1.27/drivers/firmware/
Ddmi-sysfs.c153 loff_t pos;
312 loff_t offset);
317 loff_t offset) in read_sel_8bit_indexed_io()
329 loff_t offset) in read_sel_2x8bit_indexed_io()
342 loff_t offset) in read_sel_16bit_indexed_io()
361 char *buf, loff_t pos, size_t count) in dmi_sel_raw_read_io()
378 char *buf, loff_t pos, size_t count) in dmi_sel_raw_read_phys32()
430 char *buf, loff_t pos, size_t count) in dmi_sel_raw_read()
536 char *buf, loff_t pos, size_t count) in dmi_entry_raw_read()
/linux-4.1.27/include/trace/events/
Df2fs.h127 __field(loff_t, size)
276 __field(loff_t, size)
349 __field(loff_t, size)
563 loff_t offset, loff_t len, int ret),
571 __field(loff_t, offset)
572 __field(loff_t, len)
573 __field(loff_t, size)
602 TP_PROTO(struct inode *inode, loff_t offset, unsigned long len, int rw),
609 __field(loff_t, pos)
631 TP_PROTO(struct inode *inode, loff_t offset, unsigned long len,
[all …]
/linux-4.1.27/drivers/media/pci/cx18/
Dcx18-fileops.h27 loff_t *pos);
29 loff_t *pos);
/linux-4.1.27/arch/sh/include/asm/
Dsyscalls_32.h16 size_t count, long dummy, loff_t pos);
18 size_t count, long dummy, loff_t pos);
/linux-4.1.27/net/wireless/
Dwext-proc.c90 static void *wireless_dev_seq_start(struct seq_file *seq, loff_t *pos) in wireless_dev_seq_start()
93 loff_t off; in wireless_dev_seq_start()
107 static void *wireless_dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) in wireless_dev_seq_next()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
Ddebugfs.c97 size_t count, loff_t *ppos) in iwl_dbgfs_sram_read()
187 size_t count, loff_t *ppos) in iwl_dbgfs_sram_write()
215 size_t count, loff_t *ppos) in iwl_dbgfs_wowlan_sram_read()
228 size_t count, loff_t *ppos) in iwl_dbgfs_stations_read()
286 loff_t *ppos) in iwl_dbgfs_nvm_read()
327 size_t count, loff_t *ppos) in iwl_dbgfs_channels_read()
393 size_t count, loff_t *ppos) { in iwl_dbgfs_status_read()
427 size_t count, loff_t *ppos) { in iwl_dbgfs_rx_handlers_read()
456 size_t count, loff_t *ppos) in iwl_dbgfs_rx_handlers_write()
478 size_t count, loff_t *ppos) in iwl_dbgfs_qos_read()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
Dfm10k_debugfs.c32 static void *fm10k_dbg_desc_seq_start(struct seq_file *s, loff_t *pos) in fm10k_dbg_desc_seq_start()
40 void __always_unused *v, loff_t *pos) in fm10k_dbg_desc_seq_next()
64 int i = *(loff_t *)v; in fm10k_dbg_tx_desc_seq_show()
91 int i = *(loff_t *)v; in fm10k_dbg_rx_desc_seq_show()
/linux-4.1.27/include/sound/
Dinfo.h56 size_t count, loff_t pos);
59 size_t count, loff_t pos);
60 loff_t (*llseek)(struct snd_info_entry *entry,
62 loff_t offset, int orig);
/linux-4.1.27/fs/ramfs/
Dfile-nommu.c135 static int ramfs_nommu_resize(struct inode *inode, loff_t newsize, loff_t size) in ramfs_nommu_resize()
177 loff_t size = inode->i_size; in ramfs_nommu_setattr()
211 loff_t isize; in ramfs_nommu_get_unmapped_area()
/linux-4.1.27/fs/logfs/
Dfile.c13 loff_t pos, unsigned len, unsigned flags, in logfs_write_begin()
39 loff_t pos, unsigned len, unsigned copied, struct page *page, in logfs_write_end()
120 loff_t i_size = i_size_read(inode); in logfs_writepage()
223 int logfs_fsync(struct file *file, loff_t start, loff_t end, int datasync) in logfs_fsync()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Ddebugfs_sta.c23 size_t count, loff_t *ppos) in ath10k_dbg_sta_read_aggr_mode()
42 size_t count, loff_t *ppos) in ath10k_dbg_sta_write_aggr_mode()
85 size_t count, loff_t *ppos) in ath10k_dbg_sta_write_addba()
136 size_t count, loff_t *ppos) in ath10k_dbg_sta_write_addba_resp()
186 size_t count, loff_t *ppos) in ath10k_dbg_sta_write_delba()
/linux-4.1.27/drivers/media/pci/ivtv/
Divtv-fileops.h27 loff_t * pos);
29 loff_t * pos);
/linux-4.1.27/fs/overlayfs/
Dreaddir.c144 loff_t offset, u64 ino, unsigned int d_type) in ovl_fill_lower()
189 int namelen, loff_t offset, u64 ino, in ovl_fill_merge()
317 static void ovl_seek_cursor(struct ovl_dir_file *od, loff_t pos) in ovl_seek_cursor()
320 loff_t off = 0; in ovl_seek_cursor()
397 static loff_t ovl_dir_llseek(struct file *file, loff_t offset, int origin) in ovl_dir_llseek()
399 loff_t res; in ovl_dir_llseek()
437 static int ovl_dir_fsync(struct file *file, loff_t start, loff_t end, in ovl_dir_fsync()
/linux-4.1.27/drivers/misc/ibmasm/
Dibmasmfs.c264 static ssize_t command_file_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in command_file_read()
301 static ssize_t command_file_write(struct file *file, const char __user *ubuff, size_t count, loff_t in command_file_write()
373 static ssize_t event_file_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in event_file_read()
416 static ssize_t event_file_write(struct file *file, const char __user *buf, size_t count, loff_t *of… in event_file_write()
457 static ssize_t r_heartbeat_file_read(struct file *file, char __user *buf, size_t count, loff_t *off… in r_heartbeat_file_read()
485 …e_t r_heartbeat_file_write(struct file *file, const char __user *buf, size_t count, loff_t *offset) in r_heartbeat_file_write()
507 static ssize_t remote_settings_file_read(struct file *file, char __user *buf, size_t count, loff_t in remote_settings_file_read()
541 …mote_settings_file_write(struct file *file, const char __user *ubuff, size_t count, loff_t *offset) in remote_settings_file_write()
/linux-4.1.27/kernel/events/
Duprobes.c73 loff_t offset;
139 static unsigned long offset_to_vaddr(struct vm_area_struct *vma, loff_t offset) in offset_to_vaddr()
141 return vma->vm_start + offset - ((loff_t)vma->vm_pgoff << PAGE_SHIFT); in offset_to_vaddr()
144 static loff_t vaddr_to_offset(struct vm_area_struct *vma, unsigned long vaddr) in vaddr_to_offset()
146 return ((loff_t)vma->vm_pgoff << PAGE_SHIFT) + (vaddr - vma->vm_start); in vaddr_to_offset()
386 static struct uprobe *__find_uprobe(struct inode *inode, loff_t offset) in __find_uprobe()
413 static struct uprobe *find_uprobe(struct inode *inode, loff_t offset) in find_uprobe()
481 static struct uprobe *alloc_uprobe(struct inode *inode, loff_t offset) in alloc_uprobe()
538 void *insn, int nbytes, loff_t offset) in __copy_insn()
562 loff_t offs = uprobe->offset; in copy_insn()
[all …]
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sysfs.c250 loff_t offset, size_t size) in qlcnic_sysfs_validate_crb()
273 loff_t offset, size_t size) in qlcnic_sysfs_read_crb()
290 loff_t offset, size_t size) in qlcnic_sysfs_write_crb()
306 loff_t offset, size_t size) in qlcnic_sysfs_validate_mem()
319 loff_t offset, size_t size) in qlcnic_sysfs_read_mem()
341 loff_t offset, size_t size) in qlcnic_sysfs_write_mem()
405 char *buf, loff_t offset, in qlcnic_sysfs_write_pm_config()
455 char *buf, loff_t offset, in qlcnic_sysfs_read_pm_config()
548 char *buf, loff_t offset, in qlcnic_sysfs_write_esw_config()
632 char *buf, loff_t offset, in qlcnic_sysfs_read_esw_config()
[all …]
/linux-4.1.27/drivers/vme/
Dvme_bridge.h136 loff_t);
138 loff_t);
140 unsigned int, unsigned int, loff_t);
/linux-4.1.27/arch/tile/include/asm/
Dsyscalls.h55 long sys_truncate64(const char __user *path, loff_t length);
56 long sys_ftruncate64(unsigned int fd, loff_t length);
/linux-4.1.27/include/media/
Dmedia-devnode.h45 ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);
46 ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *);

123456789