| /arch/loongarch/kernel/ |
| A D | kdebugfs.c | 20 static ssize_t sfb_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) in sfb_read() argument 29 if (*ppos >= s) in sfb_read() 32 s -= *ppos; in sfb_read() 35 if (copy_to_user(buf, &str[*ppos], s)) in sfb_read() 38 *ppos += s; in sfb_read() 43 static ssize_t sfb_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) in sfb_write() argument 93 static ssize_t tso_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) in tso_read() argument 108 if (*ppos >= s) in tso_read() 111 s -= *ppos; in tso_read() 114 if (copy_to_user(buf, &str[*ppos], s)) in tso_read() [all …]
|
| /arch/um/drivers/ |
| A D | mmapper_kern.c | 30 loff_t *ppos) in mmapper_read() argument 32 return simple_read_from_buffer(buf, count, ppos, v_buf, mmapper_size); in mmapper_read() 36 size_t count, loff_t *ppos) in mmapper_write() argument 38 if (*ppos > mmapper_size) in mmapper_write() 41 return simple_write_to_buffer(v_buf, mmapper_size, ppos, buf, count); in mmapper_write()
|
| /arch/arm64/kernel/ |
| A D | crash_dump.c | 43 ssize_t elfcorehdr_read(char *buf, size_t count, u64 *ppos) in elfcorehdr_read() argument 45 memcpy(buf, phys_to_virt((phys_addr_t)*ppos), count); in elfcorehdr_read() 46 *ppos += count; in elfcorehdr_read()
|
| /arch/powerpc/platforms/pseries/ |
| A D | htmdump.c | 87 size_t count, loff_t *ppos) in htmdump_read() argument 94 page = ALIGN_DOWN(*ppos, PAGE_SIZE); in htmdump_read() 95 offset = (*ppos) % PAGE_SIZE; in htmdump_read() 114 *ppos += read_size; in htmdump_read() 227 size_t count, loff_t *ppos) in htmstatus_read() argument 264 return simple_read_from_buffer(ubuf, count, ppos, htm_status_buf, to_copy); in htmstatus_read() 274 size_t count, loff_t *ppos) in htminfo_read() argument 306 return simple_read_from_buffer(ubuf, count, ppos, htm_info_buf, to_copy); in htminfo_read() 310 size_t count, loff_t *ppos) in htmcaps_read() argument 331 return simple_read_from_buffer(ubuf, count, ppos, htm_caps_buf, 0x80); in htmcaps_read()
|
| /arch/m68k/atari/ |
| A D | nvram.c | 99 ssize_t atari_nvram_read(char *buf, size_t count, loff_t *ppos) in atari_nvram_read() argument 109 for (i = *ppos; count > 0 && i < NVRAM_BYTES; --count, ++i, ++p) in atari_nvram_read() 113 *ppos = i; in atari_nvram_read() 117 ssize_t atari_nvram_write(char *buf, size_t count, loff_t *ppos) in atari_nvram_write() argument 127 for (i = *ppos; count > 0 && i < NVRAM_BYTES; --count, ++i, ++p) in atari_nvram_write() 132 *ppos = i; in atari_nvram_write()
|
| /arch/mips/mm/ |
| A D | sc-debugfs.c | 14 size_t count, loff_t *ppos) in sc_prefetch_read() argument 23 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in sc_prefetch_read() 28 size_t count, loff_t *ppos) in sc_prefetch_write() argument
|
| /arch/s390/appldata/ |
| A D | appldata_base.c | 51 void *buffer, size_t *lenp, loff_t *ppos); 53 void *buffer, size_t *lenp, loff_t *ppos); 204 void *buffer, size_t *lenp, loff_t *ppos) in appldata_timer_handler() argument 216 rc = proc_douintvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_timer_handler() 237 void *buffer, size_t *lenp, loff_t *ppos) in appldata_interval_handler() argument 248 rc = proc_dointvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_interval_handler() 267 void *buffer, size_t *lenp, loff_t *ppos) in appldata_generic_handler() argument 300 rc = proc_douintvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in appldata_generic_handler()
|
| /arch/powerpc/platforms/powernv/ |
| A D | opal-xscom.c | 88 size_t count, loff_t *ppos) in scom_debug_read() argument 92 loff_t off = *ppos; in scom_debug_read() 112 *ppos += 8; in scom_debug_read() 119 size_t count, loff_t *ppos) in scom_debug_write() argument 123 loff_t off = *ppos; in scom_debug_write()
|
| A D | opal-lpc.c | 185 size_t count, loff_t *ppos) in lpc_debug_read() argument 196 pos = *ppos; in lpc_debug_read() 267 *ppos += len; in lpc_debug_read() 276 size_t count, loff_t *ppos) in lpc_debug_write() argument 287 pos = *ppos; in lpc_debug_write() 338 *ppos += len; in lpc_debug_write()
|
| /arch/s390/mm/ |
| A D | cmm.c | 263 void *buffer, size_t *lenp, loff_t *ppos) in cmm_pages_handler() argument 273 rc = proc_doulongvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in cmm_pages_handler() 283 loff_t *ppos) in cmm_timed_pages_handler() argument 293 rc = proc_doulongvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in cmm_timed_pages_handler() 302 void *buffer, size_t *lenp, loff_t *ppos) in cmm_timeout_handler() argument 308 if (!*lenp || (*ppos && !write)) { in cmm_timeout_handler() 322 *ppos += *lenp; in cmm_timeout_handler() 330 *ppos += len; in cmm_timeout_handler()
|
| /arch/x86/mm/ |
| A D | pkeys.c | 131 size_t count, loff_t *ppos) in init_pkru_read_file() argument 137 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in init_pkru_read_file() 141 const char __user *user_buf, size_t count, loff_t *ppos) in init_pkru_write_file() argument
|
| /arch/s390/hypfs/ |
| A D | hypfs_dbfs.c | 32 size_t size, loff_t *ppos) in dbfs_read() argument 38 if (*ppos != 0) in dbfs_read() 58 rc = simple_read_from_buffer(buf, size, ppos, data->buf, data->size); in dbfs_read()
|
| /arch/powerpc/kernel/ |
| A D | rtas-proc.c | 141 const char __user *buf, size_t count, loff_t *ppos); 144 const char __user *buf, size_t count, loff_t *ppos); 147 const char __user *buf, size_t count, loff_t *ppos); 150 const char __user *buf, size_t count, loff_t *ppos); 153 const char __user *buf, size_t count, loff_t *ppos); 278 const char __user *buf, size_t count, loff_t *ppos) in ppc_rtas_poweron_write() argument 312 const char __user *buf, size_t count, loff_t *ppos) in ppc_rtas_progress_write() argument 344 const char __user *buf, size_t count, loff_t *ppos) in ppc_rtas_clock_write() argument 703 const char __user *buf, size_t count, loff_t *ppos) in ppc_rtas_tone_freq_write() argument 728 const char __user *buf, size_t count, loff_t *ppos) in ppc_rtas_tone_volume_write() argument
|
| A D | dawr.c | 64 size_t count, loff_t *ppos) in dawr_write_file_bool() argument 75 rc = debugfs_write_file_bool(file, user_buf, count, ppos); in dawr_write_file_bool()
|
| A D | rtas_flash.c | 273 size_t count, loff_t *ppos) in rtas_flash_read_msg() argument 286 return simple_read_from_buffer(buf, count, ppos, msg, len); in rtas_flash_read_msg() 290 size_t count, loff_t *ppos) in rtas_flash_read_num() argument 302 return simple_read_from_buffer(buf, count, ppos, msg, strlen(msg)); in rtas_flash_read_num() 379 size_t count, loff_t *ppos) in manage_flash_read() argument 390 return simple_read_from_buffer(buf, count, ppos, msg, msglen); in manage_flash_read() 467 size_t count, loff_t *ppos) in validate_flash_read() argument 478 return simple_read_from_buffer(buf, count, ppos, msg, msglen); in validate_flash_read()
|
| A D | proc_powerpc.c | 28 loff_t *ppos) in page_map_read() argument 30 return simple_read_from_buffer(buf, nbytes, ppos, in page_map_read()
|
| /arch/x86/kernel/ |
| A D | crash_dump_64.c | 55 ssize_t elfcorehdr_read(char *buf, size_t count, u64 *ppos) in elfcorehdr_read() argument 62 return read_from_oldmem(&iter, count, ppos, in elfcorehdr_read()
|
| A D | cpuid.c | 62 size_t count, loff_t *ppos) in cpuid_read() argument 67 u64 pos = *ppos; in cpuid_read() 93 *ppos = ++pos; in cpuid_read()
|
| A D | tboot.c | 358 static ssize_t tboot_log_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) in tboot_log_read() argument 375 if (*ppos >= max_size) { in tboot_log_read() 380 if (*ppos + count > max_size) in tboot_log_read() 381 count = max_size - *ppos; in tboot_log_read() 389 memcpy_fromio(kbuf, log_base + LOG_BUF_OFF + *ppos, count); in tboot_log_read() 393 *ppos += count; in tboot_log_read()
|
| A D | msr.c | 53 size_t count, loff_t *ppos) in msr_read() argument 57 u32 reg = *ppos; in msr_read() 109 size_t count, loff_t *ppos) in msr_write() argument 113 u32 reg = *ppos; in msr_write()
|
| A D | itmt.c | 44 size_t cnt, loff_t *ppos) in sched_itmt_enabled_write() argument 52 result = debugfs_write_file_bool(filp, ubuf, cnt, ppos); in sched_itmt_enabled_write()
|
| A D | kdebugfs.c | 30 size_t count, loff_t *ppos) in setup_data_read() argument 34 loff_t pos = *ppos; in setup_data_read() 64 *ppos = pos + count; in setup_data_read()
|
| /arch/m68k/kernel/ |
| A D | bootinfo_proc.c | 23 size_t count, loff_t *ppos) in bootinfo_read() argument 25 return simple_read_from_buffer(buf, count, ppos, bootinfo_copy, in bootinfo_read()
|
| A D | setup_mm.c | 548 static ssize_t m68k_nvram_read(char *buf, size_t count, loff_t *ppos) in m68k_nvram_read() argument 551 return atari_nvram_read(buf, count, ppos); in m68k_nvram_read() 553 return nvram_read_bytes(buf, count, ppos); in m68k_nvram_read() 557 static ssize_t m68k_nvram_write(char *buf, size_t count, loff_t *ppos) in m68k_nvram_write() argument 560 return atari_nvram_write(buf, count, ppos); in m68k_nvram_write() 562 return nvram_write_bytes(buf, count, ppos); in m68k_nvram_write()
|
| /arch/arm/kernel/ |
| A D | atags_proc.c | 14 size_t count, loff_t *ppos) in atags_read() argument 17 return simple_read_from_buffer(buf, count, ppos, b->data, b->size); in atags_read()
|