Searched refs:ppos (Results 1 - 25 of 51) sorted by relevance

123

/arch/cris/kernel/
H A Dprofile.c35 size_t count, loff_t *ppos)
37 unsigned long p = *ppos;
40 ret = simple_read_from_buffer(buf, count, ppos, sample_buffer,
52 size_t count, loff_t *ppos)
34 read_cris_profile(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
51 write_cris_profile(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
/arch/frv/kernel/
H A Dsysctl.c51 loff_t *ppos)
88 if (*ppos > 0) {
114 *ppos = len;
126 loff_t *ppos)
155 if (*ppos > 0) {
168 *ppos = len;
49 procctl_frv_cachemode(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
124 procctl_frv_pin_cxnr(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
/arch/mips/lasat/
H A Dsysctl.c43 void *buffer, size_t *lenp, loff_t *ppos)
47 r = proc_dostring(table, write, buffer, lenp, ppos);
58 void *buffer, size_t *lenp, loff_t *ppos)
62 r = proc_dointvec(table, write, buffer, lenp, ppos);
76 void *buffer, size_t *lenp, loff_t *ppos)
88 r = proc_dointvec(table, write, buffer, lenp, ppos);
101 void *buffer, size_t *lenp, loff_t *ppos)
109 (*ppos && !write)) {
129 *ppos += *lenp;
153 *ppos
42 proc_dolasatstring(struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) argument
57 proc_dolasatint(struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) argument
75 proc_dolasatrtc(struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) argument
100 proc_lasat_ip(struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) argument
160 proc_lasat_prid(struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) argument
[all...]
/arch/um/drivers/
H A Dmmapper_kern.c29 loff_t *ppos)
31 return simple_read_from_buffer(buf, count, ppos, v_buf, mmapper_size);
35 size_t count, loff_t *ppos)
37 if (*ppos > mmapper_size)
40 return simple_write_to_buffer(v_buf, mmapper_size, ppos, buf, count);
28 mmapper_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
34 mmapper_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
H A Dhostaudio_kern.c71 size_t count, loff_t *ppos)
98 size_t count, loff_t *ppos)
119 *ppos += err;
70 hostaudio_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) argument
97 hostaudio_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) argument
/arch/arm/kernel/
H A Datags_proc.c13 size_t count, loff_t *ppos)
16 return simple_read_from_buffer(buf, count, ppos, b->data, b->size);
12 atags_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
/arch/m68k/kernel/
H A Dbootinfo_proc.c22 size_t count, loff_t *ppos)
24 return simple_read_from_buffer(buf, count, ppos, bootinfo_copy,
21 bootinfo_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
/arch/powerpc/kernel/
H A Dproc_powerpc.c38 loff_t *ppos)
40 return simple_read_from_buffer(buf, nbytes, ppos,
37 page_map_read( struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) argument
H A Dnvram_64.c81 size_t count, loff_t *ppos)
98 if (*ppos >= size) {
103 count = min_t(size_t, count, size - *ppos);
112 ret = ppc_md.nvram_read(tmp, count, ppos);
126 size_t count, loff_t *ppos)
138 if (*ppos >= size || size < 0)
141 count = min_t(size_t, count, size - *ppos);
153 ret = ppc_md.nvram_write(tmp, count, ppos);
80 dev_nvram_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
125 dev_nvram_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
H A Drtas-proc.c142 const char __user *buf, size_t count, loff_t *ppos);
145 const char __user *buf, size_t count, loff_t *ppos);
148 const char __user *buf, size_t count, loff_t *ppos);
151 const char __user *buf, size_t count, loff_t *ppos);
154 const char __user *buf, size_t count, loff_t *ppos);
308 const char __user *buf, size_t count, loff_t *ppos)
342 const char __user *buf, size_t count, loff_t *ppos)
374 const char __user *buf, size_t count, loff_t *ppos)
733 const char __user *buf, size_t count, loff_t *ppos)
758 const char __user *buf, size_t count, loff_t *ppos)
307 ppc_rtas_poweron_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
341 ppc_rtas_progress_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
373 ppc_rtas_clock_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
732 ppc_rtas_tone_freq_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
757 ppc_rtas_tone_volume_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
[all...]
H A Drtas_flash.c277 size_t count, loff_t *ppos)
290 return simple_read_from_buffer(buf, count, ppos, msg, len);
294 size_t count, loff_t *ppos)
306 return simple_read_from_buffer(buf, count, ppos, msg, strlen(msg));
391 size_t count, loff_t *ppos)
402 return simple_read_from_buffer(buf, count, ppos, msg, msglen);
487 size_t count, loff_t *ppos)
498 return simple_read_from_buffer(buf, count, ppos, msg, msglen);
276 rtas_flash_read_msg(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
293 rtas_flash_read_num(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
390 manage_flash_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
486 validate_flash_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
/arch/s390/appldata/
H A Dappldata_base.c52 void __user *buffer, size_t *lenp, loff_t *ppos);
55 size_t *lenp, loff_t *ppos);
205 void __user *buffer, size_t *lenp, loff_t *ppos)
210 if (!*lenp || *ppos) {
235 *ppos += len;
247 void __user *buffer, size_t *lenp, loff_t *ppos)
253 if (!*lenp || *ppos) {
279 *ppos += len;
291 void __user *buffer, size_t *lenp, loff_t *ppos)
318 if (!*lenp || *ppos) {
204 appldata_timer_handler(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
246 appldata_interval_handler(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
290 appldata_generic_handler(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
[all...]
/arch/powerpc/sysdev/
H A Dscom.c107 size_t count, loff_t *ppos)
111 loff_t off = *ppos;
136 *ppos += 8;
144 size_t count, loff_t *ppos)
148 loff_t off = *ppos;
106 scom_debug_read(struct file *filp, char __user *ubuf, size_t count, loff_t *ppos) argument
143 scom_debug_write(struct file* filp, const char __user *ubuf, size_t count, loff_t *ppos) argument
/arch/s390/hypfs/
H A Dhypfs_dbfs.c48 size_t size, loff_t *ppos)
54 if (*ppos != 0)
79 rc = simple_read_from_buffer(buf, size, ppos, data->buf, data->size);
47 dbfs_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) argument
/arch/x86/kernel/
H A Dkdebugfs.c31 size_t count, loff_t *ppos)
35 loff_t pos = *ppos;
66 *ppos = pos + count;
30 setup_data_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
H A Dmsr.c69 size_t count, loff_t *ppos)
73 u32 reg = *ppos;
97 size_t count, loff_t *ppos)
101 u32 reg = *ppos;
68 msr_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
96 msr_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
H A Dtboot.c363 static ssize_t tboot_log_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
380 if (*ppos >= max_size) {
385 if (*ppos + count > max_size)
386 count = max_size - *ppos;
394 memcpy_fromio(kbuf, log_base + LOG_BUF_OFF + *ppos, count);
398 *ppos += count;
H A Dcpuid.c84 size_t count, loff_t *ppos)
89 u64 pos = *ppos;
108 *ppos = ++pos;
83 cpuid_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
/arch/powerpc/platforms/powernv/
H A Dopal-lpc.c190 size_t count, loff_t *ppos)
201 pos = *ppos;
272 *ppos += len;
281 size_t count, loff_t *ppos)
292 pos = *ppos;
343 *ppos += len;
189 lpc_debug_read(struct file *filp, char __user *ubuf, size_t count, loff_t *ppos) argument
280 lpc_debug_write(struct file *filp, const char __user *ubuf, size_t count, loff_t *ppos) argument
/arch/powerpc/platforms/pseries/
H A Dscanlog.c47 size_t count, loff_t *ppos)
114 size_t count, loff_t *ppos)
46 scanlog_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
113 scanlog_write(struct file * file, const char __user * buf, size_t count, loff_t *ppos) argument
/arch/s390/mm/
H A Dcmm.c257 void __user *buffer, size_t *lenp, loff_t *ppos)
263 if (!*lenp || (*ppos && !write)) {
292 *ppos += len;
297 void __user *buffer, size_t *lenp, loff_t *ppos)
303 if (!*lenp || (*ppos && !write)) {
328 *ppos += len;
256 cmm_pages_handler(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
296 cmm_timeout_handler(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
/arch/blackfin/kernel/
H A Dkgdb_test.c61 size_t count, loff_t *ppos)
60 kgdb_test_proc_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
/arch/xtensa/platforms/iss/
H A Dsimdisk.c217 size_t size, loff_t *ppos)
222 ssize_t n = simple_read_from_buffer(buf, size, ppos,
229 return simple_read_from_buffer(buf, size, ppos, "\n", 1);
233 size_t count, loff_t *ppos)
216 proc_read_simdisk(struct file *file, char __user *buf, size_t size, loff_t *ppos) argument
232 proc_write_simdisk(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
/arch/x86/mm/
H A Dtlb.c285 size_t count, loff_t *ppos)
291 return simple_read_from_buffer(user_buf, count, ppos, buf, len);
295 const char __user *user_buf, size_t count, loff_t *ppos)
284 tlbflush_read_file(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
294 tlbflush_write_file(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
/arch/s390/kernel/
H A Dcrash_dump.c660 ssize_t elfcorehdr_read(char *buf, size_t count, u64 *ppos) argument
662 void *src = (void *)(unsigned long)*ppos;
666 *ppos += count;
673 ssize_t elfcorehdr_read_notes(char *buf, size_t count, u64 *ppos) argument
675 void *src = (void *)(unsigned long)*ppos;
685 *ppos += count;

Completed in 548 milliseconds

123