/kernel/linux/linux-5.10/drivers/net/wireless/marvell/libertas/ |
H A D | debugfs.c | 33 static ssize_t lbs_dev_info(struct file *file, char __user *userbuf, in lbs_dev_info() argument 49 res = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_dev_info() 92 static ssize_t lbs_sleepparams_read(struct file *file, char __user *userbuf, in lbs_sleepparams_read() argument 113 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_sleepparams_read() 162 static ssize_t lbs_host_sleep_read(struct file *file, char __user *userbuf, in lbs_host_sleep_read() argument 175 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_host_sleep_read() 218 struct file *file, char __user *userbuf, in lbs_threshold_read() 258 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_threshold_read() 271 const char __user *userbuf, size_t count, in lbs_threshold_write() 282 buf = memdup_user_nul(userbuf, mi in lbs_threshold_write() 217 lbs_threshold_read(uint16_t tlv_type, uint16_t event_mask, struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_threshold_read() argument 269 lbs_threshold_write(uint16_t tlv_type, uint16_t event_mask, struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_threshold_write() argument 338 lbs_lowrssi_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_lowrssi_read() argument 346 lbs_lowrssi_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_lowrssi_write() argument 354 lbs_lowsnr_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_lowsnr_read() argument 362 lbs_lowsnr_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_lowsnr_write() argument 370 lbs_failcount_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_failcount_read() argument 378 lbs_failcount_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_failcount_write() argument 386 lbs_highrssi_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_highrssi_read() argument 394 lbs_highrssi_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_highrssi_write() argument 402 lbs_highsnr_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_highsnr_read() argument 410 lbs_highsnr_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_highsnr_write() argument 417 lbs_bcnmiss_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_bcnmiss_read() argument 425 lbs_bcnmiss_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_bcnmiss_write() argument 433 lbs_rdmac_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_rdmac_read() argument 457 lbs_rdmac_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_rdmac_write() argument 473 lbs_wrmac_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_wrmac_write() argument 503 lbs_rdbbp_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_rdbbp_read() argument 528 lbs_rdbbp_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_rdbbp_write() argument 545 lbs_wrbbp_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_wrbbp_write() argument 575 lbs_rdrf_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_rdrf_read() argument 600 lbs_rdrf_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_rdrf_write() argument 616 lbs_wrrf_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_wrrf_write() argument 806 lbs_debugfs_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_debugfs_read() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/marvell/libertas/ |
H A D | debugfs.c | 33 static ssize_t lbs_dev_info(struct file *file, char __user *userbuf, in lbs_dev_info() argument 49 res = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_dev_info() 92 static ssize_t lbs_sleepparams_read(struct file *file, char __user *userbuf, in lbs_sleepparams_read() argument 113 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_sleepparams_read() 162 static ssize_t lbs_host_sleep_read(struct file *file, char __user *userbuf, in lbs_host_sleep_read() argument 175 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_host_sleep_read() 218 struct file *file, char __user *userbuf, in lbs_threshold_read() 258 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_threshold_read() 271 const char __user *userbuf, size_t count, in lbs_threshold_write() 282 buf = memdup_user_nul(userbuf, mi in lbs_threshold_write() 217 lbs_threshold_read(uint16_t tlv_type, uint16_t event_mask, struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_threshold_read() argument 269 lbs_threshold_write(uint16_t tlv_type, uint16_t event_mask, struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_threshold_write() argument 338 lbs_lowrssi_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_lowrssi_read() argument 346 lbs_lowrssi_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_lowrssi_write() argument 354 lbs_lowsnr_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_lowsnr_read() argument 362 lbs_lowsnr_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_lowsnr_write() argument 370 lbs_failcount_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_failcount_read() argument 378 lbs_failcount_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_failcount_write() argument 386 lbs_highrssi_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_highrssi_read() argument 394 lbs_highrssi_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_highrssi_write() argument 402 lbs_highsnr_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_highsnr_read() argument 410 lbs_highsnr_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_highsnr_write() argument 417 lbs_bcnmiss_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_bcnmiss_read() argument 425 lbs_bcnmiss_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_bcnmiss_write() argument 433 lbs_rdmac_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_rdmac_read() argument 457 lbs_rdmac_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_rdmac_write() argument 473 lbs_wrmac_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_wrmac_write() argument 503 lbs_rdbbp_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_rdbbp_read() argument 528 lbs_rdbbp_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_rdbbp_write() argument 545 lbs_wrbbp_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_wrbbp_write() argument 575 lbs_rdrf_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_rdrf_read() argument 600 lbs_rdrf_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_rdrf_write() argument 616 lbs_wrrf_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) lbs_wrrf_write() argument 806 lbs_debugfs_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) lbs_debugfs_read() argument [all...] |
/kernel/linux/linux-5.10/arch/parisc/kernel/ |
H A D | perf.c | 551 uint64_t userbuf[MAX_RDR_WORDS]; in perf_stop_counters() local 561 if (!perf_rdr_read_ubuf(16, userbuf)) in perf_stop_counters() 565 tmp64 = (userbuf[21] << 22) & 0x00000000ffc00000; in perf_stop_counters() 566 tmp64 |= (userbuf[22] >> 42) & 0x00000000003fffff; in perf_stop_counters() 568 tmp64 |= (userbuf[22] >> 10) & 0x0000000080000000; in perf_stop_counters() 572 tmp64 = (userbuf[22] >> 9) & 0x00000000ffffffff; in perf_stop_counters() 574 tmp64 |= (userbuf[22] << 23) & 0x0000000080000000; in perf_stop_counters() 578 tmp64 = (userbuf[22] << 24) & 0x00000000ff000000; in perf_stop_counters() 579 tmp64 |= (userbuf[23] >> 40) & 0x0000000000ffffff; in perf_stop_counters() 581 tmp64 |= (userbuf[2 in perf_stop_counters() [all...] |
/kernel/linux/linux-6.6/arch/parisc/kernel/ |
H A D | perf.c | 551 uint64_t userbuf[MAX_RDR_WORDS]; in perf_stop_counters() local 561 if (!perf_rdr_read_ubuf(16, userbuf)) in perf_stop_counters() 565 tmp64 = (userbuf[21] << 22) & 0x00000000ffc00000; in perf_stop_counters() 566 tmp64 |= (userbuf[22] >> 42) & 0x00000000003fffff; in perf_stop_counters() 568 tmp64 |= (userbuf[22] >> 10) & 0x0000000080000000; in perf_stop_counters() 572 tmp64 = (userbuf[22] >> 9) & 0x00000000ffffffff; in perf_stop_counters() 574 tmp64 |= (userbuf[22] << 23) & 0x0000000080000000; in perf_stop_counters() 578 tmp64 = (userbuf[22] << 24) & 0x00000000ff000000; in perf_stop_counters() 579 tmp64 |= (userbuf[23] >> 40) & 0x0000000000ffffff; in perf_stop_counters() 581 tmp64 |= (userbuf[2 in perf_stop_counters() [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A D | crash_dump_64.c | 15 unsigned long offset, int userbuf, in __copy_oldmem_page() 31 if (userbuf) { in __copy_oldmem_page() 48 * space or user address space (see @userbuf) 51 * @userbuf: if set, @buf is in user address space, use copy_to_user(), 58 unsigned long offset, int userbuf) in copy_oldmem_page() 60 return __copy_oldmem_page(pfn, buf, csize, offset, userbuf, false); in copy_oldmem_page() 69 unsigned long offset, int userbuf) in copy_oldmem_page_encrypted() 71 return __copy_oldmem_page(pfn, buf, csize, offset, userbuf, true); in copy_oldmem_page_encrypted() 14 __copy_oldmem_page(unsigned long pfn, char *buf, size_t csize, unsigned long offset, int userbuf, bool encrypted) __copy_oldmem_page() argument 57 copy_oldmem_page(unsigned long pfn, char *buf, size_t csize, unsigned long offset, int userbuf) copy_oldmem_page() argument 68 copy_oldmem_page_encrypted(unsigned long pfn, char *buf, size_t csize, unsigned long offset, int userbuf) copy_oldmem_page_encrypted() argument
|
/kernel/linux/linux-5.10/net/mac80211/ |
H A D | debugfs_key.c | 18 char __user *userbuf, \ 22 return mac80211_format_buffer(userbuf, count, ppos, \ 70 char __user *userbuf, in key_algorithm_read() 79 return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf)); in key_algorithm_read() 83 static ssize_t key_tx_spec_write(struct file *file, const char __user *userbuf, in key_tx_spec_write() argument 105 ret = kstrtou64_from_user(userbuf, count, 16, &pn); in key_tx_spec_write() 118 static ssize_t key_tx_spec_read(struct file *file, char __user *userbuf, in key_tx_spec_read() argument 153 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in key_tx_spec_read() 157 static ssize_t key_rx_spec_read(struct file *file, char __user *userbuf, in key_rx_spec_read() argument 221 return simple_read_from_buffer(userbuf, coun in key_rx_spec_read() 69 key_algorithm_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) key_algorithm_read() argument 225 key_replays_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) key_replays_read() argument 258 key_icverrors_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) key_icverrors_read() argument 283 key_mic_failures_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) key_mic_failures_read() argument 299 key_key_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) key_key_read() argument [all...] |
H A D | debugfs_sta.c | 23 char __user *userbuf, \ 27 return mac80211_format_buffer(userbuf, count, ppos, \ 85 static ssize_t sta_flags_read(struct file *file, char __user *userbuf, in sta_flags_read() argument 101 return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf)); in sta_flags_read() 106 char __user *userbuf, in sta_num_ps_buf_frames_read() 117 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_num_ps_buf_frames_read() 121 static ssize_t sta_last_seq_ctrl_read(struct file *file, char __user *userbuf, in sta_last_seq_ctrl_read() argument 131 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_last_seq_ctrl_read() 137 static ssize_t sta_aqm_read(struct file *file, char __user *userbuf, in sta_aqm_read() argument 190 rv = simple_read_from_buffer(userbuf, coun in sta_aqm_read() 105 sta_num_ps_buf_frames_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) sta_num_ps_buf_frames_read() argument 196 sta_airtime_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) sta_airtime_read() argument 230 sta_airtime_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) sta_airtime_write() argument 249 sta_aql_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) sta_aql_read() argument 284 sta_aql_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) sta_aql_write() argument 313 sta_agg_status_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) sta_agg_status_read() argument 357 sta_agg_status_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) sta_agg_status_write() argument 428 sta_ht_capa_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) sta_ht_capa_read() argument 510 sta_vht_capa_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) sta_vht_capa_read() argument 615 sta_he_capa_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) sta_he_capa_read() argument [all...] |
/kernel/linux/linux-6.6/net/mac80211/ |
H A D | debugfs_key.c | 19 char __user *userbuf, \ 23 return mac80211_format_buffer(userbuf, count, ppos, \ 70 char __user *userbuf, in key_algorithm_read() 79 return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf)); in key_algorithm_read() 83 static ssize_t key_tx_spec_write(struct file *file, const char __user *userbuf, in key_tx_spec_write() argument 105 ret = kstrtou64_from_user(userbuf, count, 16, &pn); in key_tx_spec_write() 118 static ssize_t key_tx_spec_read(struct file *file, char __user *userbuf, in key_tx_spec_read() argument 153 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in key_tx_spec_read() 157 static ssize_t key_rx_spec_read(struct file *file, char __user *userbuf, in key_rx_spec_read() argument 221 return simple_read_from_buffer(userbuf, coun in key_rx_spec_read() 69 key_algorithm_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) key_algorithm_read() argument 225 key_replays_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) key_replays_read() argument 258 key_icverrors_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) key_icverrors_read() argument 283 key_mic_failures_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) key_mic_failures_read() argument 299 key_key_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) key_key_read() argument [all...] |
H A D | debugfs_sta.c | 23 char __user *userbuf, \ 27 return mac80211_format_buffer(userbuf, count, ppos, \ 86 static ssize_t sta_flags_read(struct file *file, char __user *userbuf, in sta_flags_read() argument 102 return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf)); in sta_flags_read() 107 char __user *userbuf, in sta_num_ps_buf_frames_read() 118 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_num_ps_buf_frames_read() 122 static ssize_t sta_last_seq_ctrl_read(struct file *file, char __user *userbuf, in sta_last_seq_ctrl_read() argument 132 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_last_seq_ctrl_read() 138 static ssize_t sta_aqm_read(struct file *file, char __user *userbuf, in sta_aqm_read() argument 192 rv = simple_read_from_buffer(userbuf, coun in sta_aqm_read() 106 sta_num_ps_buf_frames_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) sta_num_ps_buf_frames_read() argument 198 sta_airtime_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) sta_airtime_read() argument 232 sta_airtime_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) sta_airtime_write() argument 251 sta_aql_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) sta_aql_read() argument 286 sta_aql_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) sta_aql_write() argument 315 sta_agg_status_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) sta_agg_status_read() argument 368 sta_agg_status_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) sta_agg_status_write() argument 447 link_sta_addr_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) link_sta_addr_read() argument 460 link_sta_ht_capa_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) link_sta_ht_capa_read() argument 551 link_sta_vht_capa_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) link_sta_vht_capa_read() argument 665 link_sta_he_capa_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) link_sta_he_capa_read() argument 1038 link_sta_eht_capa_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) link_sta_eht_capa_read() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wlcore/ |
H A D | debugfs.h | 15 __printf(4, 5) int wl1271_format_buffer(char __user *userbuf, size_t count, 26 static ssize_t name## _read(struct file *file, char __user *userbuf, \ 30 return wl1271_format_buffer(userbuf, count, ppos, \ 55 char __user *userbuf, \ 63 return wl1271_format_buffer(userbuf, count, ppos, fmt "\n", \ 75 char __user *userbuf, \ 90 return wl1271_format_buffer(userbuf, count, ppos, "%s", buf); \
|
/kernel/linux/linux-6.6/drivers/net/wireless/ti/wlcore/ |
H A D | debugfs.h | 15 __printf(4, 5) int wl1271_format_buffer(char __user *userbuf, size_t count, 26 static ssize_t name## _read(struct file *file, char __user *userbuf, \ 30 return wl1271_format_buffer(userbuf, count, ppos, \ 55 char __user *userbuf, \ 63 return wl1271_format_buffer(userbuf, count, ppos, fmt "\n", \ 75 char __user *userbuf, \ 90 return wl1271_format_buffer(userbuf, count, ppos, "%s", buf); \
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | crash_dump.c | 72 unsigned long offset, int userbuf) in copy_oldmem_vaddr() 74 if (userbuf) { in copy_oldmem_vaddr() 87 * space or user address space (see @userbuf) 90 * @userbuf: if set, @buf is in user address space, use copy_to_user(), 97 size_t csize, unsigned long offset, int userbuf) in copy_oldmem_page() 110 csize = copy_oldmem_vaddr(vaddr, buf, csize, offset, userbuf); in copy_oldmem_page() 113 csize = copy_oldmem_vaddr(vaddr, buf, csize, offset, userbuf); in copy_oldmem_page() 71 copy_oldmem_vaddr(void *vaddr, char *buf, size_t csize, unsigned long offset, int userbuf) copy_oldmem_vaddr() argument 96 copy_oldmem_page(unsigned long pfn, char *buf, size_t csize, unsigned long offset, int userbuf) copy_oldmem_page() argument
|
/kernel/linux/linux-6.6/fs/efivarfs/ |
H A D | file.c | 16 const char __user *userbuf, size_t count, loff_t *ppos) in efivarfs_file_write() 29 if (copy_from_user(&attributes, userbuf, sizeof(attributes))) in efivarfs_file_write() 35 data = memdup_user(userbuf + sizeof(attributes), datasize); in efivarfs_file_write() 66 static ssize_t efivarfs_file_read(struct file *file, char __user *userbuf, in efivarfs_file_read() argument 101 size = simple_read_from_buffer(userbuf, count, ppos, in efivarfs_file_read() 15 efivarfs_file_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) efivarfs_file_write() argument
|
/kernel/linux/linux-5.10/drivers/char/ |
H A D | ps3flash.c | 93 static ssize_t ps3flash_read(char __user *userbuf, void *kernelbuf, in ps3flash_read() argument 105 __func__, __LINE__, count, *pos, userbuf, kernelbuf); in ps3flash_read() 134 __func__, __LINE__, n, src, userbuf, kernelbuf); in ps3flash_read() 135 if (userbuf) { in ps3flash_read() 136 if (copy_to_user(userbuf, src, n)) { in ps3flash_read() 140 userbuf += n; in ps3flash_read() 162 static ssize_t ps3flash_write(const char __user *userbuf, in ps3flash_write() argument 174 __func__, __LINE__, count, *pos, userbuf, kernelbuf); in ps3flash_write() 206 __func__, __LINE__, n, userbuf, kernelbuf, dst); in ps3flash_write() 207 if (userbuf) { in ps3flash_write() [all...] |
H A D | powernv-op-panel.c | 43 static ssize_t oppanel_read(struct file *filp, char __user *userbuf, size_t len, in oppanel_read() argument 46 return simple_read_from_buffer(userbuf, len, f_pos, oppanel_data, in oppanel_read() 88 static ssize_t oppanel_write(struct file *filp, const char __user *userbuf, in oppanel_write() argument 100 ret = simple_write_to_buffer(oppanel_data, oppanel_size, f_pos, userbuf, in oppanel_write()
|
/kernel/linux/linux-6.6/drivers/char/ |
H A D | ps3flash.c | 93 static ssize_t ps3flash_read(char __user *userbuf, void *kernelbuf, in ps3flash_read() argument 105 __func__, __LINE__, count, *pos, userbuf, kernelbuf); in ps3flash_read() 134 __func__, __LINE__, n, src, userbuf, kernelbuf); in ps3flash_read() 135 if (userbuf) { in ps3flash_read() 136 if (copy_to_user(userbuf, src, n)) { in ps3flash_read() 140 userbuf += n; in ps3flash_read() 162 static ssize_t ps3flash_write(const char __user *userbuf, in ps3flash_write() argument 174 __func__, __LINE__, count, *pos, userbuf, kernelbuf); in ps3flash_write() 206 __func__, __LINE__, n, userbuf, kernelbuf, dst); in ps3flash_write() 207 if (userbuf) { in ps3flash_write() [all...] |
H A D | powernv-op-panel.c | 43 static ssize_t oppanel_read(struct file *filp, char __user *userbuf, size_t len, in oppanel_read() argument 46 return simple_read_from_buffer(userbuf, len, f_pos, oppanel_data, in oppanel_read() 89 static ssize_t oppanel_write(struct file *filp, const char __user *userbuf, in oppanel_write() argument 101 ret = simple_write_to_buffer(oppanel_data, oppanel_size, f_pos, userbuf, in oppanel_write()
|
/kernel/linux/linux-5.10/fs/efivarfs/ |
H A D | file.c | 16 const char __user *userbuf, size_t count, loff_t *ppos) in efivarfs_file_write() 29 if (copy_from_user(&attributes, userbuf, sizeof(attributes))) in efivarfs_file_write() 35 data = memdup_user(userbuf + sizeof(attributes), datasize); in efivarfs_file_write() 66 static ssize_t efivarfs_file_read(struct file *file, char __user *userbuf, in efivarfs_file_read() argument 101 size = simple_read_from_buffer(userbuf, count, ppos, in efivarfs_file_read() 15 efivarfs_file_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) efivarfs_file_write() argument
|
/kernel/linux/linux-5.10/drivers/bluetooth/ |
H A D | btmrvl_debugfs.c | 54 static ssize_t btmrvl_hscfgcmd_read(struct file *file, char __user *userbuf, in btmrvl_hscfgcmd_read() argument 64 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_hscfgcmd_read() 95 static ssize_t btmrvl_pscmd_read(struct file *file, char __user *userbuf, in btmrvl_pscmd_read() argument 104 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_pscmd_read() 133 static ssize_t btmrvl_hscmd_read(struct file *file, char __user *userbuf, in btmrvl_hscmd_read() argument 142 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_hscmd_read()
|
/kernel/linux/linux-6.6/drivers/bluetooth/ |
H A D | btmrvl_debugfs.c | 41 static ssize_t btmrvl_hscfgcmd_read(struct file *file, char __user *userbuf, in btmrvl_hscfgcmd_read() argument 51 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_hscfgcmd_read() 82 static ssize_t btmrvl_pscmd_read(struct file *file, char __user *userbuf, in btmrvl_pscmd_read() argument 91 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_pscmd_read() 120 static ssize_t btmrvl_hscmd_read(struct file *file, char __user *userbuf, in btmrvl_hscmd_read() argument 129 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_hscmd_read()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | crash_dump.h | 32 int userbuf); 120 u64 *ppos, int userbuf, 124 u64 *ppos, int userbuf, in read_from_oldmem() 123 read_from_oldmem(char *buf, size_t count, u64 *ppos, int userbuf, bool encrypted) read_from_oldmem() argument
|
/kernel/linux/linux-5.10/drivers/remoteproc/ |
H A D | remoteproc_debugfs.c | 42 static ssize_t rproc_coredump_read(struct file *filp, char __user *userbuf, in rproc_coredump_read() argument 52 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in rproc_coredump_read() 126 static ssize_t rproc_trace_read(struct file *filp, char __user *userbuf, in rproc_trace_read() argument 145 return simple_read_from_buffer(userbuf, count, ppos, va, len); in rproc_trace_read() 155 static ssize_t rproc_name_read(struct file *filp, char __user *userbuf, in rproc_name_read() argument 165 return simple_read_from_buffer(userbuf, count, ppos, buf, i); in rproc_name_read() 175 static ssize_t rproc_recovery_read(struct file *filp, char __user *userbuf, in rproc_recovery_read() argument 181 return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf)); in rproc_recovery_read()
|
/kernel/linux/linux-6.6/drivers/remoteproc/ |
H A D | remoteproc_debugfs.c | 42 static ssize_t rproc_coredump_read(struct file *filp, char __user *userbuf, in rproc_coredump_read() argument 52 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in rproc_coredump_read() 126 static ssize_t rproc_trace_read(struct file *filp, char __user *userbuf, in rproc_trace_read() argument 145 return simple_read_from_buffer(userbuf, count, ppos, va, len); in rproc_trace_read() 155 static ssize_t rproc_name_read(struct file *filp, char __user *userbuf, in rproc_name_read() argument 165 return simple_read_from_buffer(userbuf, count, ppos, buf, i); in rproc_name_read() 175 static ssize_t rproc_recovery_read(struct file *filp, char __user *userbuf, in rproc_recovery_read() argument 181 return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf)); in rproc_recovery_read()
|
/kernel/linux/linux-5.10/arch/arm/kernel/ |
H A D | crash_dump.c | 24 * @userbuf: if set, @buf is int he user address space 27 * @buf. If @buf is in userspace, set @userbuf to %1. Returns number of bytes 32 int userbuf) in copy_oldmem_page() 43 if (userbuf) { in copy_oldmem_page() 30 copy_oldmem_page(unsigned long pfn, char *buf, size_t csize, unsigned long offset, int userbuf) copy_oldmem_page() argument
|
/kernel/linux/linux-5.10/arch/ia64/kernel/ |
H A D | crash_dump.c | 21 * space or user address space (see @userbuf) 24 * @userbuf: if set, @buf is in user address space, use copy_to_user(), 36 size_t csize, unsigned long offset, int userbuf) in copy_oldmem_page() 43 if (userbuf) { in copy_oldmem_page() 35 copy_oldmem_page(unsigned long pfn, char *buf, size_t csize, unsigned long offset, int userbuf) copy_oldmem_page() argument
|