Home
last modified time | relevance | path

Searched refs:ppos (Results 1 – 25 of 180) sorted by relevance

12345678

/linux-4.19.296/fs/fuse/
Dcontrol.c34 size_t count, loff_t *ppos) in fuse_conn_abort_write() argument
45 size_t len, loff_t *ppos) in fuse_conn_waiting_read() argument
50 if (!*ppos) { in fuse_conn_waiting_read()
61 return simple_read_from_buffer(buf, len, ppos, tmp, size); in fuse_conn_waiting_read()
65 size_t len, loff_t *ppos, unsigned val) in fuse_conn_limit_read() argument
70 return simple_read_from_buffer(buf, len, ppos, tmp, size); in fuse_conn_limit_read()
74 size_t count, loff_t *ppos, unsigned *val, in fuse_conn_limit_write() argument
81 if (*ppos) in fuse_conn_limit_write()
101 loff_t *ppos) in fuse_conn_max_background_read() argument
113 return fuse_conn_limit_read(file, buf, len, ppos, val); in fuse_conn_max_background_read()
[all …]
/linux-4.19.296/drivers/char/
Dgeneric_nvram.c42 size_t count, loff_t *ppos) in read_nvram() argument
49 if (*ppos >= nvram_len) in read_nvram()
51 for (i = *ppos; count > 0 && i < nvram_len; ++i, ++p, --count) in read_nvram()
54 *ppos = i; in read_nvram()
59 size_t count, loff_t *ppos) in write_nvram() argument
67 if (*ppos >= nvram_len) in write_nvram()
69 for (i = *ppos; count > 0 && i < nvram_len; ++i, ++p, --count) { in write_nvram()
74 *ppos = i; in write_nvram()
Dmem.c112 size_t count, loff_t *ppos) in read_mem() argument
114 phys_addr_t p = *ppos; in read_mem()
120 if (p != *ppos) in read_mem()
190 *ppos += read; in read_mem()
199 size_t count, loff_t *ppos) in write_mem() argument
201 phys_addr_t p = *ppos; in write_mem()
206 if (p != *ppos) in write_mem()
267 *ppos += written; in write_mem()
437 size_t count, loff_t *ppos) in read_kmem() argument
439 unsigned long p = *ppos; in read_kmem()
[all …]
Dnwflash.c123 loff_t *ppos) in flash_read() argument
129 "buffer=%p, count=0x%zx.\n", *ppos, buf, size); in flash_read()
136 ret = simple_read_from_buffer(buf, size, ppos, (void *)FLASH_BASE, gbFlashSize); in flash_read()
143 size_t size, loff_t * ppos) in flash_write() argument
145 unsigned long p = *ppos; in flash_write()
251 *ppos += rc; in flash_write()
/linux-4.19.296/include/linux/sched/
Dsysctl.h17 size_t *lenp, loff_t *ppos);
47 loff_t *ppos);
72 loff_t *ppos);
76 loff_t *ppos);
80 loff_t *ppos);
84 loff_t *ppos);
/linux-4.19.296/drivers/parisc/
Deisa_eeprom.c40 char __user *buf, size_t count, loff_t *ppos ) in eisa_eeprom_read() argument
46 if (*ppos < 0 || *ppos >= HPEE_MAX_LENGTH) in eisa_eeprom_read()
49 count = *ppos + count < HPEE_MAX_LENGTH ? count : HPEE_MAX_LENGTH - *ppos; in eisa_eeprom_read()
53 tmp[i] = readb(eisa_eeprom_addr+(*ppos)++); in eisa_eeprom_read()
/linux-4.19.296/drivers/parport/
Dprocfs.c37 void __user *result, size_t *lenp, loff_t *ppos) in do_active_device() argument
47 if (*ppos) { in do_active_device()
67 *ppos += len; in do_active_device()
74 void __user *result, size_t *lenp, loff_t *ppos) in do_autoprobe() argument
84 if (*ppos) { in do_autoprobe()
109 *ppos += len; in do_autoprobe()
117 size_t *lenp, loff_t *ppos) in do_hardware_base_addr() argument
123 if (*ppos) { in do_hardware_base_addr()
138 *ppos += len; in do_hardware_base_addr()
145 size_t *lenp, loff_t *ppos) in do_hardware_irq() argument
[all …]
/linux-4.19.296/drivers/bluetooth/
Dbtmrvl_debugfs.c35 const char __user *ubuf, size_t count, loff_t *ppos) in btmrvl_hscfgcmd_write() argument
55 size_t count, loff_t *ppos) in btmrvl_hscfgcmd_read() argument
64 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_hscfgcmd_read()
75 size_t count, loff_t *ppos) in btmrvl_pscmd_write() argument
96 size_t count, loff_t *ppos) in btmrvl_pscmd_read() argument
104 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_pscmd_read()
115 size_t count, loff_t *ppos) in btmrvl_hscmd_write() argument
134 size_t count, loff_t *ppos) in btmrvl_hscmd_read() argument
142 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_hscmd_read()
/linux-4.19.296/drivers/base/regmap/
Dregmap-debugfs.c41 loff_t *ppos) in regmap_name_read_file() argument
61 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret); in regmap_name_read_file()
200 size_t count, loff_t *ppos) in regmap_read_debugfs() argument
203 loff_t p = *ppos; in regmap_read_debugfs()
209 if (*ppos < 0 || !count) in regmap_read_debugfs()
222 start_reg = regmap_debugfs_get_dump_start(map, from, *ppos, &p); in regmap_read_debugfs()
232 if (p >= *ppos) { in regmap_read_debugfs()
264 *ppos += buf_pos; in regmap_read_debugfs()
272 size_t count, loff_t *ppos) in regmap_map_read_file() argument
277 count, ppos); in regmap_map_read_file()
[all …]
/linux-4.19.296/fs/proc/
Dpage.c30 size_t count, loff_t *ppos) in kpagecount_read() argument
34 unsigned long src = *ppos; in kpagecount_read()
68 *ppos += (char __user *)out - buf; in kpagecount_read()
207 size_t count, loff_t *ppos) in kpageflags_read() argument
211 unsigned long src = *ppos; in kpageflags_read()
239 *ppos += (char __user *)out - buf; in kpageflags_read()
252 size_t count, loff_t *ppos) in kpagecgroup_read() argument
256 unsigned long src = *ppos; in kpagecgroup_read()
290 *ppos += (char __user *)out - buf; in kpagecgroup_read()
/linux-4.19.296/fs/ocfs2/dlmfs/
Ddlmfs.c242 loff_t *ppos) in dlmfs_file_read() argument
250 inode->i_ino, count, *ppos); in dlmfs_file_read()
252 if (*ppos >= i_size_read(inode)) in dlmfs_file_read()
262 if ((count + *ppos) > i_size_read(inode)) in dlmfs_file_read()
263 readlen = i_size_read(inode) - *ppos; in dlmfs_file_read()
281 *ppos = *ppos + readlen; in dlmfs_file_read()
290 loff_t *ppos) in dlmfs_file_write() argument
298 inode->i_ino, count, *ppos); in dlmfs_file_write()
300 if (*ppos >= i_size_read(inode)) in dlmfs_file_write()
310 if ((count + *ppos) > i_size_read(inode)) in dlmfs_file_write()
[all …]
/linux-4.19.296/fs/configfs/
Dfile.c116 configfs_read_file(struct file *file, char __user *buf, size_t count, loff_t *ppos) in configfs_read_file() argument
128 __func__, count, *ppos, buffer->page); in configfs_read_file()
129 retval = simple_read_from_buffer(buf, count, ppos, buffer->page, in configfs_read_file()
158 size_t count, loff_t *ppos) in configfs_read_bin_file() argument
219 retval = simple_read_from_buffer(buf, count, ppos, buffer->bin_buffer, in configfs_read_bin_file()
289 configfs_write_file(struct file *file, const char __user *buf, size_t count, loff_t *ppos) in configfs_write_file() argument
299 *ppos += len; in configfs_write_file()
319 size_t count, loff_t *ppos) in configfs_write_bin_file() argument
335 if (*ppos + count > buffer->bin_buffer_size) { in configfs_write_bin_file()
338 *ppos + count > buffer->cb_max_size) { in configfs_write_bin_file()
[all …]
/linux-4.19.296/fs/debugfs/
Dfile.c29 size_t count, loff_t *ppos) in default_read_file() argument
35 size_t count, loff_t *ppos) in default_write_file() argument
198 loff_t *ppos),
199 ARGS(filp, buf, size, ppos));
203 loff_t *ppos),
204 ARGS(filp, buf, size, ppos));
320 size_t len, loff_t *ppos) in debugfs_attr_read() argument
328 ret = simple_attr_read(file, buf, len, ppos); in debugfs_attr_read()
335 size_t len, loff_t *ppos, bool is_signed) in debugfs_attr_write_xsigned() argument
344 ret = simple_attr_write_signed(file, buf, len, ppos); in debugfs_attr_write_xsigned()
[all …]
/linux-4.19.296/drivers/misc/mei/
Ddebugfs.c28 size_t cnt, loff_t *ppos) in mei_dbgfs_read_meclients() argument
78 ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, pos); in mei_dbgfs_read_meclients()
90 size_t cnt, loff_t *ppos) in mei_dbgfs_read_active() argument
141 ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, pos); in mei_dbgfs_read_active()
153 size_t cnt, loff_t *ppos) in mei_dbgfs_read_devstate() argument
193 ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, pos); in mei_dbgfs_read_devstate()
205 size_t count, loff_t *ppos) in mei_dbgfs_write_allow_fa() argument
213 ret = debugfs_write_file_bool(file, user_buf, count, ppos); in mei_dbgfs_write_allow_fa()
/linux-4.19.296/include/linux/
Ddebugfs.h103 size_t len, loff_t *ppos);
105 size_t len, loff_t *ppos);
107 size_t len, loff_t *ppos);
160 size_t count, loff_t *ppos);
163 size_t count, loff_t *ppos);
246 size_t len, loff_t *ppos) in debugfs_attr_read() argument
253 size_t len, loff_t *ppos) in debugfs_attr_write() argument
260 size_t len, loff_t *ppos) in debugfs_attr_write_signed() argument
397 size_t count, loff_t *ppos) in debugfs_read_file_bool() argument
404 size_t count, loff_t *ppos) in debugfs_write_file_bool() argument
Dwriteback.h337 loff_t *ppos);
340 loff_t *ppos);
343 loff_t *ppos);
346 loff_t *ppos);
348 void __user *buffer, size_t *lenp, loff_t *ppos);
Dnsc_gpio.h35 size_t len, loff_t *ppos);
38 size_t len, loff_t *ppos);
/linux-4.19.296/drivers/s390/char/
Dzcore.c152 size_t count, loff_t *ppos) in zcore_memmap_read() argument
154 return simple_read_from_buffer(buf, count, ppos, filp->private_data, in zcore_memmap_read()
192 size_t count, loff_t *ppos) in zcore_reipl_write() argument
220 size_t count, loff_t *ppos) in zcore_hsa_read() argument
228 return simple_read_from_buffer(buf, count, ppos, str, strlen(str)); in zcore_hsa_read()
232 size_t count, loff_t *ppos) in zcore_hsa_write() argument
236 if (*ppos != 0) in zcore_hsa_write()
/linux-4.19.296/fs/nfsd/
Dfault_inject.c30 size_t len, loff_t *ppos) in fault_inject_read() argument
35 loff_t pos = *ppos; in fault_inject_read()
42 return simple_read_from_buffer(buf, len, ppos, read_buf, size); in fault_inject_read()
46 size_t len, loff_t *ppos) in fault_inject_write() argument
/linux-4.19.296/fs/kernfs/
Dfile.c103 static void *kernfs_seq_start(struct seq_file *sf, loff_t *ppos) in kernfs_seq_start() argument
118 void *next = ops->seq_start(sf, ppos); in kernfs_seq_start()
128 return NULL + !*ppos; in kernfs_seq_start()
132 static void *kernfs_seq_next(struct seq_file *sf, void *v, loff_t *ppos) in kernfs_seq_next() argument
138 void *next = ops->seq_next(sf, v, ppos); in kernfs_seq_next()
148 ++*ppos; in kernfs_seq_next()
186 loff_t *ppos) in kernfs_file_direct_read() argument
214 len = ops->read(of, buf, len, *ppos); in kernfs_file_direct_read()
229 *ppos += len; in kernfs_file_direct_read()
247 size_t count, loff_t *ppos) in kernfs_fop_read() argument
[all …]
/linux-4.19.296/fs/
Dsplice.c296 ssize_t generic_file_splice_read(struct file *in, loff_t *ppos, in generic_file_splice_read() argument
307 kiocb.ki_pos = *ppos; in generic_file_splice_read()
310 *ppos = kiocb.ki_pos; in generic_file_splice_read()
368 static ssize_t default_file_splice_read(struct file *in, loff_t *ppos, in default_file_splice_read() argument
387 offset = *ppos & ~PAGE_MASK; in default_file_splice_read()
417 res = kernel_readv(in, vec, nr_pages, *ppos); in default_file_splice_read()
420 *ppos += res; in default_file_splice_read()
650 loff_t *ppos, size_t len, unsigned int flags, in splice_from_pipe() argument
657 .pos = *ppos, in splice_from_pipe()
684 loff_t *ppos, size_t len, unsigned int flags) in iter_file_splice_write() argument
[all …]
Dlibfs.c215 ssize_t generic_read_dir(struct file *filp, char __user *buf, size_t siz, loff_t *ppos) in generic_read_dir() argument
626 ssize_t simple_read_from_buffer(void __user *to, size_t count, loff_t *ppos, in simple_read_from_buffer() argument
629 loff_t pos = *ppos; in simple_read_from_buffer()
642 *ppos = pos + count; in simple_read_from_buffer()
661 ssize_t simple_write_to_buffer(void *to, size_t available, loff_t *ppos, in simple_write_to_buffer() argument
664 loff_t pos = *ppos; in simple_write_to_buffer()
677 *ppos = pos + count; in simple_write_to_buffer()
696 ssize_t memory_read_from_buffer(void *to, size_t count, loff_t *ppos, in memory_read_from_buffer() argument
699 loff_t pos = *ppos; in memory_read_from_buffer()
708 *ppos = pos + count; in memory_read_from_buffer()
[all …]
/linux-4.19.296/fs/pstore/
Dftrace.c69 size_t count, loff_t *ppos) in pstore_ftrace_knob_write() argument
106 size_t count, loff_t *ppos) in pstore_ftrace_knob_read() argument
110 return simple_read_from_buffer(buf, count, ppos, val, sizeof(val)); in pstore_ftrace_knob_read()
/linux-4.19.296/drivers/s390/cio/
Dvfio_ccw_ops.c177 loff_t *ppos) in vfio_ccw_mdev_read() argument
182 if (*ppos + count > sizeof(*region)) in vfio_ccw_mdev_read()
187 if (copy_to_user(buf, (void *)region + *ppos, count)) in vfio_ccw_mdev_read()
196 loff_t *ppos) in vfio_ccw_mdev_write() argument
201 if (*ppos + count > sizeof(*region)) in vfio_ccw_mdev_write()
209 if (copy_from_user((void *)region + *ppos, buf, count)) in vfio_ccw_mdev_write()
/linux-4.19.296/fs/xfs/
Dxfs_sysctl.c21 loff_t *ppos) in xfs_stats_clear_proc_handler() argument
25 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_stats_clear_proc_handler()
41 loff_t *ppos) in xfs_panic_mask_proc_handler() argument
45 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_panic_mask_proc_handler()

12345678