/linux-6.1.9/drivers/net/wireless/marvell/libertas/ |
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() argument 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() argument 282 buf = memdup_user_nul(userbuf, min(count, len - 1)); in lbs_threshold_write() [all …]
|
/linux-6.1.9/arch/parisc/kernel/ |
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[23] >> 8) & 0x0000000080000000; in perf_stop_counters() [all …]
|
/linux-6.1.9/drivers/net/wireless/ti/wlcore/ |
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); \
|
D | debugfs.c | 31 int wl1271_format_buffer(char __user *userbuf, size_t count, in wl1271_format_buffer() argument 42 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in wl1271_format_buffer() 78 static ssize_t tx_queue_len_read(struct file *file, char __user *userbuf, in tx_queue_len_read() argument 89 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in tx_queue_len_read() 841 char __user *userbuf, in rx_streaming_interval_read() argument 845 return wl1271_format_buffer(userbuf, count, ppos, in rx_streaming_interval_read() 897 char __user *userbuf, in rx_streaming_always_read() argument 901 return wl1271_format_buffer(userbuf, count, ppos, in rx_streaming_always_read() 951 char __user *userbuf, in fw_stats_raw_read() argument 958 return simple_read_from_buffer(userbuf, count, ppos, in fw_stats_raw_read()
|
/linux-6.1.9/net/mac80211/ |
D | debugfs_key.c | 19 char __user *userbuf, \ 23 return mac80211_format_buffer(userbuf, count, ppos, \ 70 char __user *userbuf, in key_algorithm_read() argument 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, count, ppos, buf, len); in key_rx_spec_read() [all …]
|
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() argument 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, count, ppos, buf, p - buf); in sta_aqm_read() [all …]
|
D | debugfs.c | 20 int mac80211_format_buffer(char __user *userbuf, size_t count, in mac80211_format_buffer() argument 31 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in mac80211_format_buffer() 35 static ssize_t name## _read(struct file *file, char __user *userbuf, \ 40 return mac80211_format_buffer(userbuf, count, ppos, \ 588 char __user *userbuf, in format_devstat_counter() argument 603 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in format_devstat_counter() 613 char __user *userbuf, \ 617 userbuf, \
|
D | debugfs_netdev.c | 27 char __user *userbuf, in ieee80211_if_read() argument 39 ret = simple_read_from_buffer(userbuf, count, ppos, buf, ret); in ieee80211_if_read() 46 const char __user *userbuf, in ieee80211_if_write() argument 56 if (copy_from_user(buf, userbuf, count)) in ieee80211_if_write() 131 char __user *userbuf, \ 135 userbuf, count, ppos, \ 141 const char __user *userbuf, \ 144 return ieee80211_if_write(file->private_data, userbuf, count, \
|
D | debugfs.h | 9 int __printf(4, 5) mac80211_format_buffer(char __user *userbuf, size_t count,
|
/linux-6.1.9/fs/efivarfs/ |
D | file.c | 16 const char __user *userbuf, size_t count, loff_t *ppos) in efivarfs_file_write() argument 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()
|
/linux-6.1.9/drivers/char/ |
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 …]
|
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()
|
/linux-6.1.9/drivers/bluetooth/ |
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()
|
/linux-6.1.9/drivers/remoteproc/ |
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()
|
/linux-6.1.9/drivers/mailbox/ |
D | mailbox-test.c | 47 const char __user *userbuf, in mbox_test_signal_write() argument 71 if (copy_from_user(tdev->signal, userbuf, count)) { in mbox_test_signal_write() 94 const char __user *userbuf, in mbox_test_message_write() argument 117 ret = copy_from_user(tdev->message, userbuf, count); in mbox_test_message_write() 162 static ssize_t mbox_test_message_read(struct file *filp, char __user *userbuf, in mbox_test_message_read() argument 179 ret = simple_read_from_buffer(userbuf, count, ppos, in mbox_test_message_read() 225 ret = simple_read_from_buffer(userbuf, count, ppos, touser, MBOX_HEXDUMP_MAX_LEN); in mbox_test_message_read()
|
/linux-6.1.9/drivers/net/wireless/ti/wl1251/ |
D | debugfs.c | 23 static ssize_t name## _read(struct file *file, char __user *userbuf, \ 31 return simple_read_from_buffer(userbuf, count, ppos, buf, res); \ 52 char __user *userbuf, \ 63 return simple_read_from_buffer(userbuf, count, ppos, buf, res); \ 197 static ssize_t tx_queue_len_read(struct file *file, char __user *userbuf, in tx_queue_len_read() argument 208 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in tx_queue_len_read() 217 static ssize_t tx_queue_status_read(struct file *file, char __user *userbuf, in tx_queue_status_read() argument 230 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in tx_queue_status_read()
|
/linux-6.1.9/drivers/net/wireless/ath/ath5k/ |
D | debug.c | 224 const char __user *userbuf, in write_file_beacon() argument 231 if (copy_from_user(buf, userbuf, count)) in write_file_beacon() 257 const char __user *userbuf, in write_file_reset() argument 325 const char __user *userbuf, in write_file_debug() argument 333 if (copy_from_user(buf, userbuf, count)) in write_file_debug() 430 const char __user *userbuf, in write_file_antenna() argument 438 if (copy_from_user(buf, userbuf, count)) in write_file_antenna() 603 const char __user *userbuf, in write_file_frameerrors() argument 611 if (copy_from_user(buf, userbuf, count)) in write_file_frameerrors() 753 const char __user *userbuf, in write_file_ani() argument [all …]
|
/linux-6.1.9/drivers/misc/sgi-gru/ |
D | gruprocfs.c | 107 static ssize_t statistics_write(struct file *file, const char __user *userbuf, in statistics_write() argument 134 const char __user *userbuf, size_t count, loff_t *data) in mcs_statistics_write() argument 147 static ssize_t options_write(struct file *file, const char __user *userbuf, in options_write() argument 152 ret = kstrtoul_from_user(userbuf, count, 0, &gru_options); in options_write()
|
/linux-6.1.9/net/wireless/ |
D | debugfs.c | 14 static ssize_t name## _read(struct file *file, char __user *userbuf, \ 22 return simple_read_from_buffer(userbuf, count, ppos, buf, res); \
|
/linux-6.1.9/drivers/net/wireless/broadcom/b43legacy/ |
D | debugfs.c | 187 static ssize_t b43legacy_debugfs_read(struct file *file, char __user *userbuf, in b43legacy_debugfs_read() argument 241 ret = simple_read_from_buffer(userbuf, count, ppos, in b43legacy_debugfs_read() 256 const char __user *userbuf, in b43legacy_debugfs_write() argument 290 if (copy_from_user(buf, userbuf, count)) { in b43legacy_debugfs_write()
|
/linux-6.1.9/drivers/media/pci/ivtv/ |
D | ivtv-udma.h | 17 void __user *userbuf, int size_in_bytes);
|
D | ivtv-udma.c | 93 void __user *userbuf, int size_in_bytes) in ivtv_udma_setup() argument 108 ivtv_udma_get_page_info(&user_dma, (unsigned long)userbuf, size_in_bytes); in ivtv_udma_setup()
|
/linux-6.1.9/drivers/iommu/ |
D | omap-iommu-debug.c | 83 static ssize_t debug_read_regs(struct file *file, char __user *userbuf, in debug_read_regs() argument 103 bytes = simple_read_from_buffer(userbuf, count, ppos, buf, bytes); in debug_read_regs()
|
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | debugfs.c | 442 mt7615_ext_mac_addr_read(struct file *file, char __user *userbuf, in mt7615_ext_mac_addr_read() argument 469 ofs = simple_read_from_buffer(userbuf, count, ppos, buf, ofs); in mt7615_ext_mac_addr_read() 476 mt7615_ext_mac_addr_write(struct file *file, const char __user *userbuf, in mt7615_ext_mac_addr_write() argument 488 if (copy_from_user(buf, userbuf, count)) in mt7615_ext_mac_addr_write()
|
/linux-6.1.9/fs/pstore/ |
D | inode.c | 129 static ssize_t pstore_file_read(struct file *file, char __user *userbuf, in pstore_file_read() argument 136 return seq_read(file, userbuf, count, ppos); in pstore_file_read() 137 return simple_read_from_buffer(userbuf, count, ppos, in pstore_file_read()
|