/linux-6.1.9/drivers/net/wireless/ti/wlcore/ |
D | debugfs.c | 124 char __user *user_buf, \ 128 return wl1271_format_buffer(user_buf, count, \ 134 const char __user *user_buf, \ 141 ret = kstrtoul_from_user(user_buf, count, 10, &value); \ 175 static ssize_t gpio_power_read(struct file *file, char __user *user_buf, in gpio_power_read() argument 186 return simple_read_from_buffer(user_buf, count, ppos, buf, res); in gpio_power_read() 190 const char __user *user_buf, in gpio_power_write() argument 197 ret = kstrtoul_from_user(user_buf, count, 10, &value); in gpio_power_write() 222 const char __user *user_buf, in start_recovery_write() argument 240 static ssize_t dynamic_ps_timeout_read(struct file *file, char __user *user_buf, in dynamic_ps_timeout_read() argument [all …]
|
/linux-6.1.9/net/mac80211/ |
D | debugfs.c | 76 char __user *user_buf, in aqm_read() argument 112 return simple_read_from_buffer(user_buf, count, ppos, in aqm_read() 117 const char __user *user_buf, in aqm_write() argument 127 if (copy_from_user(buf, user_buf, count)) in aqm_write() 153 char __user *user_buf, in airtime_flags_read() argument 169 return simple_read_from_buffer(user_buf, count, ppos, buf, in airtime_flags_read() 174 const char __user *user_buf, in airtime_flags_write() argument 183 if (copy_from_user(buf, user_buf, count)) in airtime_flags_write() 205 char __user *user_buf, in aql_pending_read() argument 224 return simple_read_from_buffer(user_buf, count, ppos, in aql_pending_read() [all …]
|
/linux-6.1.9/drivers/net/wireless/intel/iwlegacy/ |
D | debug.c | 124 char __user *user_buf, \ 129 const char __user *user_buf, \ 200 il_dbgfs_tx_stats_read(struct file *file, char __user *user_buf, size_t count, in il_dbgfs_tx_stats_read() argument 234 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_tx_stats_read() 241 const char __user *user_buf, size_t count, in il_dbgfs_clear_traffic_stats_write() argument 251 if (copy_from_user(buf, user_buf, buf_size)) in il_dbgfs_clear_traffic_stats_write() 261 il_dbgfs_rx_stats_read(struct file *file, char __user *user_buf, size_t count, in il_dbgfs_rx_stats_read() argument 296 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_rx_stats_read() 305 il_dbgfs_sram_read(struct file *file, char __user *user_buf, size_t count, in il_dbgfs_sram_read() argument 358 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_sram_read() [all …]
|
/linux-6.1.9/drivers/net/wireless/ath/ath6kl/ |
D | debug.c | 300 static ssize_t read_file_war_stats(struct file *file, char __user *user_buf, in read_file_war_stats() argument 323 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_war_stats() 398 static ssize_t ath6kl_fwlog_read(struct file *file, char __user *user_buf, in ath6kl_fwlog_read() argument 434 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath6kl_fwlog_read() 450 char __user *user_buf, in ath6kl_fwlog_block_read() argument 501 not_copied = copy_to_user(user_buf, buf, len); in ath6kl_fwlog_block_read() 525 static ssize_t ath6kl_fwlog_mask_read(struct file *file, char __user *user_buf, in ath6kl_fwlog_mask_read() argument 534 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath6kl_fwlog_mask_read() 538 const char __user *user_buf, in ath6kl_fwlog_mask_write() argument 544 ret = kstrtou32_from_user(user_buf, count, 0, &ar->debug.fwlog_mask); in ath6kl_fwlog_mask_write() [all …]
|
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | debugfs.c | 52 char __user *user_buf, in iwl_dbgfs_sram_read() argument 136 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_sram_read() 142 const char __user *user_buf, in iwl_dbgfs_sram_write() argument 152 if (copy_from_user(buf, user_buf, buf_size)) in iwl_dbgfs_sram_write() 170 char __user *user_buf, in iwl_dbgfs_wowlan_sram_read() argument 179 return simple_read_from_buffer(user_buf, count, ppos, in iwl_dbgfs_wowlan_sram_read() 183 static ssize_t iwl_dbgfs_stations_read(struct file *file, char __user *user_buf, in iwl_dbgfs_stations_read() argument 234 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_stations_read() 240 char __user *user_buf, in iwl_dbgfs_nvm_read() argument 273 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_nvm_read() [all …]
|
/linux-6.1.9/drivers/net/wireless/ath/wcn36xx/ |
D | debug.c | 28 static ssize_t read_file_bool_bmps(struct file *file, char __user *user_buf, in read_file_bool_bmps() argument 49 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in read_file_bool_bmps() 53 const char __user *user_buf, in write_file_bool_bmps() argument 64 if (copy_from_user(buf, user_buf, buf_size)) in write_file_bool_bmps() 100 const char __user *user_buf, in write_file_dump() argument 113 if (copy_from_user(buf, user_buf, buf_size)) in write_file_dump() 141 char __user *user_buf, in read_file_firmware_feature_caps() argument 165 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_firmware_feature_caps()
|
/linux-6.1.9/drivers/net/wireless/ath/ath9k/ |
D | htc_drv_debug.c | 19 static ssize_t read_file_tgt_int_stats(struct file *file, char __user *user_buf, in read_file_tgt_int_stats() argument 67 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_tgt_int_stats() 77 static ssize_t read_file_tgt_tx_stats(struct file *file, char __user *user_buf, in read_file_tgt_tx_stats() argument 137 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_tgt_tx_stats() 147 static ssize_t read_file_tgt_rx_stats(struct file *file, char __user *user_buf, in read_file_tgt_rx_stats() argument 183 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_tgt_rx_stats() 193 static ssize_t read_file_xmit(struct file *file, char __user *user_buf, in read_file_xmit() argument 235 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_xmit() 251 static ssize_t read_file_skb_rx(struct file *file, char __user *user_buf, in read_file_skb_rx() argument 276 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_skb_rx() [all …]
|
D | debug.c | 71 static ssize_t ath9k_debugfs_read_buf(struct file *file, char __user *user_buf, in ath9k_debugfs_read_buf() argument 75 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath9k_debugfs_read_buf() 86 static ssize_t read_file_debug(struct file *file, char __user *user_buf, in read_file_debug() argument 95 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_debug() 98 static ssize_t write_file_debug(struct file *file, const char __user *user_buf, in write_file_debug() argument 108 if (copy_from_user(buf, user_buf, len)) in write_file_debug() 132 static ssize_t read_file_ani(struct file *file, char __user *user_buf, in read_file_ani() argument 181 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_ani() 188 const char __user *user_buf, in write_file_ani() argument 198 if (copy_from_user(buf, user_buf, len)) in write_file_ani() [all …]
|
D | common-debug.c | 19 static ssize_t read_file_modal_eeprom(struct file *file, char __user *user_buf, in read_file_modal_eeprom() argument 33 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_modal_eeprom() 55 static ssize_t read_file_base_eeprom(struct file *file, char __user *user_buf, in read_file_base_eeprom() argument 69 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_base_eeprom() 123 static ssize_t read_file_recv(struct file *file, char __user *user_buf, in read_file_recv() argument 165 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_recv() 187 static ssize_t read_file_phy_err(struct file *file, char __user *user_buf, in read_file_phy_err() argument 241 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_phy_err()
|
D | tx99.c | 159 static ssize_t read_file_tx99(struct file *file, char __user *user_buf, in read_file_tx99() argument 167 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_tx99() 170 static ssize_t write_file_tx99(struct file *file, const char __user *user_buf, in write_file_tx99() argument 187 if (copy_from_user(buf, user_buf, len)) in write_file_tx99() 228 char __user *user_buf, in read_file_tx99_power() argument 239 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_tx99_power() 243 const char __user *user_buf, in write_file_tx99_power() argument 250 r = kstrtou8_from_user(user_buf, count, 0, &tx_power); in write_file_tx99_power()
|
D | common-spectral.c | 689 static ssize_t read_file_spec_scan_ctl(struct file *file, char __user *user_buf, in read_file_spec_scan_ctl() argument 711 return simple_read_from_buffer(user_buf, count, ppos, mode, len); in read_file_spec_scan_ctl() 790 const char __user *user_buf, in write_file_spec_scan_ctl() argument 802 if (copy_from_user(buf, user_buf, len)) in write_file_spec_scan_ctl() 841 char __user *user_buf, in read_file_spectral_short_repeat() argument 849 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_spectral_short_repeat() 853 const char __user *user_buf, in write_file_spectral_short_repeat() argument 862 if (copy_from_user(buf, user_buf, len)) in write_file_spectral_short_repeat() 889 char __user *user_buf, in read_file_spectral_count() argument 897 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_spectral_count() [all …]
|
D | dfs_debug.c | 34 static ssize_t read_file_dfs(struct file *file, char __user *user_buf, in read_file_dfs() argument 89 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_dfs() 97 static ssize_t write_file_dfs(struct file *file, const char __user *user_buf, in write_file_dfs() argument 106 if (copy_from_user(buf, user_buf, len)) in write_file_dfs() 120 const char __user *user_buf, in write_file_simulate_radar() argument
|
/linux-6.1.9/drivers/net/wireless/ath/ath10k/ |
D | debug.c | 150 char __user *user_buf, in ath10k_read_wmi_services() argument 187 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_wmi_services() 443 static ssize_t ath10k_fw_stats_read(struct file *file, char __user *user_buf, in ath10k_fw_stats_read() argument 449 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_fw_stats_read() 461 char __user *user_buf, in ath10k_debug_fw_reset_stats_read() argument 486 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_debug_fw_reset_stats_read() 521 char __user *user_buf, in ath10k_read_simulate_fw_crash() argument 531 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath10k_read_simulate_fw_crash() 542 const char __user *user_buf, in ath10k_write_simulate_fw_crash() argument 554 rc = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, user_buf, count); in ath10k_write_simulate_fw_crash() [all …]
|
D | debugfs_sta.c | 176 char __user *user_buf, in ath10k_dbg_sta_read_aggr_mode() argument 191 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_dbg_sta_read_aggr_mode() 195 const char __user *user_buf, in ath10k_dbg_sta_write_aggr_mode() argument 204 if (kstrtouint_from_user(user_buf, count, 0, &aggr_mode)) in ath10k_dbg_sta_write_aggr_mode() 238 const char __user *user_buf, in ath10k_dbg_sta_write_addba() argument 249 user_buf, count); in ath10k_dbg_sta_write_addba() 289 const char __user *user_buf, in ath10k_dbg_sta_write_addba_resp() argument 300 user_buf, count); in ath10k_dbg_sta_write_addba_resp() 339 const char __user *user_buf, in ath10k_dbg_sta_write_delba() argument 350 user_buf, count); in ath10k_dbg_sta_write_delba() [all …]
|
D | spectral.c | 273 static ssize_t read_file_spec_scan_ctl(struct file *file, char __user *user_buf, in read_file_spec_scan_ctl() argument 298 return simple_read_from_buffer(user_buf, count, ppos, mode, len); in read_file_spec_scan_ctl() 302 const char __user *user_buf, in write_file_spec_scan_ctl() argument 311 if (copy_from_user(buf, user_buf, len)) in write_file_spec_scan_ctl() 365 char __user *user_buf, in read_file_spectral_count() argument 378 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_spectral_count() 382 const char __user *user_buf, in write_file_spectral_count() argument 391 if (copy_from_user(buf, user_buf, len)) in write_file_spectral_count() 417 char __user *user_buf, in read_file_spectral_bins() argument 434 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_spectral_bins() [all …]
|
/linux-6.1.9/arch/mips/mm/ |
D | sc-debugfs.c | 13 static ssize_t sc_prefetch_read(struct file *file, char __user *user_buf, in sc_prefetch_read() argument 23 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in sc_prefetch_read() 27 const char __user *user_buf, in sc_prefetch_write() argument 33 err = kstrtobool_from_user(user_buf, count, &enabled); in sc_prefetch_write()
|
/linux-6.1.9/net/bluetooth/ |
D | hci_debugfs.c | 35 char __user *user_buf, \ 44 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); \ 48 const char __user *user_buf, \ 58 err = kstrtobool_from_user(user_buf, count, &enable); \ 272 static ssize_t use_debug_keys_read(struct file *file, char __user *user_buf, in use_debug_keys_read() argument 281 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in use_debug_keys_read() 290 static ssize_t sc_only_mode_read(struct file *file, char __user *user_buf, in sc_only_mode_read() argument 299 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in sc_only_mode_read() 426 static ssize_t ssp_debug_mode_read(struct file *file, char __user *user_buf, in ssp_debug_mode_read() argument 435 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in ssp_debug_mode_read() [all …]
|
/linux-6.1.9/kernel/trace/rv/ |
D | rv.c | 212 static ssize_t monitor_enable_read_data(struct file *filp, char __user *user_buf, size_t count, in monitor_enable_read_data() argument 220 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff)+1); in monitor_enable_read_data() 282 static ssize_t monitor_enable_write_data(struct file *filp, const char __user *user_buf, in monitor_enable_write_data() argument 289 retval = kstrtobool_from_user(user_buf, count, &val); in monitor_enable_write_data() 317 static ssize_t monitor_desc_read_data(struct file *filp, char __user *user_buf, size_t count, in monitor_desc_read_data() argument 327 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff) + 1); in monitor_desc_read_data() 512 static ssize_t enabled_monitors_write(struct file *filp, const char __user *user_buf, in enabled_monitors_write() argument 527 retval = simple_write_to_buffer(buff, sizeof(buff) - 1, ppos, user_buf, count); in enabled_monitors_write() 596 static ssize_t monitoring_on_read_data(struct file *filp, char __user *user_buf, in monitoring_on_read_data() argument 603 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff) + 1); in monitoring_on_read_data() [all …]
|
/linux-6.1.9/drivers/base/regmap/ |
D | regmap-debugfs.c | 35 char __user *user_buf, size_t count, in regmap_name_read_file() argument 56 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret); in regmap_name_read_file() 216 unsigned int to, char __user *user_buf, in regmap_read_debugfs() argument 272 if (copy_to_user(user_buf, buf, buf_pos)) { in regmap_read_debugfs() 284 static ssize_t regmap_map_read_file(struct file *file, char __user *user_buf, in regmap_map_read_file() argument 289 return regmap_read_debugfs(map, 0, map->max_register, user_buf, in regmap_map_read_file() 302 const char __user *user_buf, in regmap_map_write_file() argument 313 if (copy_from_user(buf, user_buf, buf_size)) in regmap_map_write_file() 344 static ssize_t regmap_range_read_file(struct file *file, char __user *user_buf, in regmap_range_read_file() argument 351 user_buf, count, ppos); in regmap_range_read_file() [all …]
|
/linux-6.1.9/drivers/misc/lkdtm/ |
D | core.c | 34 static ssize_t lkdtm_debugfs_read(struct file *f, char __user *user_buf, 36 static ssize_t direct_entry(struct file *f, const char __user *user_buf, 42 const char __user *user_buf, 225 const char __user *user_buf, in lkdtm_debugfs_entry() argument 239 if (copy_from_user(buf, user_buf, count)) { in lkdtm_debugfs_entry() 264 static ssize_t lkdtm_debugfs_read(struct file *f, char __user *user_buf, in lkdtm_debugfs_read() argument 288 out = simple_read_from_buffer(user_buf, count, off, in lkdtm_debugfs_read() 301 static ssize_t direct_entry(struct file *f, const char __user *user_buf, in direct_entry() argument 315 if (copy_from_user(buf, user_buf, count)) { in direct_entry()
|
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | debugfs.c | 20 char __user *user_buf, in iwl_dbgfs_ctdp_budget_read() argument 43 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_ctdp_budget_read() 142 static ssize_t iwl_dbgfs_sram_read(struct file *file, char __user *user_buf, in iwl_dbgfs_sram_read() argument 170 ret = simple_read_from_buffer(user_buf, count, ppos, ptr, len); in iwl_dbgfs_sram_read() 209 char __user *user_buf, in iwl_dbgfs_set_nic_temperature_read() argument 221 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_set_nic_temperature_read() 276 char __user *user_buf, in iwl_dbgfs_nic_temp_read() argument 296 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_nic_temp_read() 301 char __user *user_buf, in iwl_dbgfs_sar_geo_profile_read() argument 339 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_sar_geo_profile_read() [all …]
|
D | debugfs-vif.c | 136 char __user *user_buf, in iwl_dbgfs_tx_pwr_lmt_read() argument 147 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_tx_pwr_lmt_read() 151 char __user *user_buf, in iwl_dbgfs_pm_params_read() argument 163 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_pm_params_read() 167 char __user *user_buf, in iwl_dbgfs_mac_params_read() argument 247 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_mac_params_read() 393 char __user *user_buf, in iwl_dbgfs_bf_params_read() argument 438 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_bf_params_read() 449 char __user *user_buf, in iwl_dbgfs_os_device_timediff_read() argument 470 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_os_device_timediff_read() [all …]
|
/linux-6.1.9/drivers/bluetooth/ |
D | hci_vhci.c | 108 static ssize_t force_suspend_read(struct file *file, char __user *user_buf, in force_suspend_read() argument 117 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in force_suspend_read() 132 const char __user *user_buf, in force_suspend_write() argument 139 err = kstrtobool_from_user(user_buf, count, &enable); in force_suspend_write() 160 static ssize_t force_wakeup_read(struct file *file, char __user *user_buf, in force_wakeup_read() argument 169 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in force_wakeup_read() 173 const char __user *user_buf, size_t count, in force_wakeup_write() argument 180 err = kstrtobool_from_user(user_buf, count, &enable); in force_wakeup_write() 226 static ssize_t aosp_capable_read(struct file *file, char __user *user_buf, in aosp_capable_read() argument 235 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in aosp_capable_read() [all …]
|
/linux-6.1.9/drivers/net/wireless/ath/ath11k/ |
D | debugfs_sta.c | 135 char __user *user_buf, in ath11k_dbg_sta_dump_tx_stats() argument 227 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_dbg_sta_dump_tx_stats() 242 char __user *user_buf, in ath11k_dbg_sta_dump_rx_stats() argument 325 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_dbg_sta_dump_rx_stats() 391 char __user *user_buf, in ath11k_dbg_sta_read_htt_peer_stats() argument 400 return simple_read_from_buffer(user_buf, count, ppos, buf, length); in ath11k_dbg_sta_read_htt_peer_stats() 479 const char __user *user_buf, in ath11k_dbg_sta_write_delba() argument 490 user_buf, count); in ath11k_dbg_sta_write_delba() 530 const char __user *user_buf, in ath11k_dbg_sta_write_addba_resp() argument 541 user_buf, count); in ath11k_dbg_sta_write_addba_resp() [all …]
|
/linux-6.1.9/arch/x86/mm/ |
D | pkeys.c | 130 static ssize_t init_pkru_read_file(struct file *file, char __user *user_buf, 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 148 if (copy_from_user(buf, user_buf, len)) in init_pkru_write_file()
|