/Linux-v5.4/drivers/net/wireless/ti/wlcore/ |
D | debugfs.c | 136 char __user *user_buf, \ 140 return wl1271_format_buffer(user_buf, count, \ 146 const char __user *user_buf, \ 153 ret = kstrtoul_from_user(user_buf, count, 10, &value); \ 187 static ssize_t gpio_power_read(struct file *file, char __user *user_buf, in gpio_power_read() argument 198 return simple_read_from_buffer(user_buf, count, ppos, buf, res); in gpio_power_read() 202 const char __user *user_buf, in gpio_power_write() argument 209 ret = kstrtoul_from_user(user_buf, count, 10, &value); in gpio_power_write() 234 const char __user *user_buf, in start_recovery_write() argument 252 static ssize_t dynamic_ps_timeout_read(struct file *file, char __user *user_buf, in dynamic_ps_timeout_read() argument [all …]
|
/Linux-v5.4/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-v5.4/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-v5.4/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | debugfs.c | 56 char __user *user_buf, in iwl_dbgfs_sram_read() argument 140 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_sram_read() 146 const char __user *user_buf, in iwl_dbgfs_sram_write() argument 156 if (copy_from_user(buf, user_buf, buf_size)) in iwl_dbgfs_sram_write() 174 char __user *user_buf, in iwl_dbgfs_wowlan_sram_read() argument 183 return simple_read_from_buffer(user_buf, count, ppos, in iwl_dbgfs_wowlan_sram_read() 187 static ssize_t iwl_dbgfs_stations_read(struct file *file, char __user *user_buf, in iwl_dbgfs_stations_read() argument 238 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_stations_read() 244 char __user *user_buf, in iwl_dbgfs_nvm_read() argument 277 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_nvm_read() [all …]
|
/Linux-v5.4/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-v5.4/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-v5.4/net/mac80211/ |
D | debugfs.c | 74 char __user *user_buf, in aqm_read() argument 110 return simple_read_from_buffer(user_buf, count, ppos, in aqm_read() 115 const char __user *user_buf, in aqm_write() argument 126 if (copy_from_user(buf, user_buf, count)) in aqm_write() 152 char __user *user_buf, in force_tx_status_read() argument 162 return simple_read_from_buffer(user_buf, count, ppos, in force_tx_status_read() 167 const char __user *user_buf, in force_tx_status_write() argument 178 if (copy_from_user(buf, user_buf, count)) in force_tx_status_write() 204 static ssize_t reset_write(struct file *file, const char __user *user_buf, in reset_write() argument 278 static ssize_t hwflags_read(struct file *file, char __user *user_buf, in hwflags_read() argument [all …]
|
/Linux-v5.4/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-v5.4/drivers/net/wireless/ath/wcn36xx/ |
D | debug.c | 27 static ssize_t read_file_bool_bmps(struct file *file, char __user *user_buf, in read_file_bool_bmps() argument 48 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in read_file_bool_bmps() 52 const char __user *user_buf, in write_file_bool_bmps() argument 63 if (copy_from_user(buf, user_buf, buf_size)) in write_file_bool_bmps() 99 const char __user *user_buf, in write_file_dump() argument 112 if (copy_from_user(buf, user_buf, buf_size)) in write_file_dump()
|
/Linux-v5.4/drivers/base/regmap/ |
D | regmap-debugfs.c | 36 char __user *user_buf, size_t count, in regmap_name_read_file() argument 57 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret); in regmap_name_read_file() 217 unsigned int to, char __user *user_buf, in regmap_read_debugfs() argument 270 if (copy_to_user(user_buf, buf, buf_pos)) { in regmap_read_debugfs() 282 static ssize_t regmap_map_read_file(struct file *file, char __user *user_buf, in regmap_map_read_file() argument 287 return regmap_read_debugfs(map, 0, map->max_register, user_buf, in regmap_map_read_file() 300 const char __user *user_buf, in regmap_map_write_file() argument 311 if (copy_from_user(buf, user_buf, buf_size)) in regmap_map_write_file() 342 static ssize_t regmap_range_read_file(struct file *file, char __user *user_buf, in regmap_range_read_file() argument 349 user_buf, count, ppos); in regmap_range_read_file() [all …]
|
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | debugfs.c | 76 char __user *user_buf, in iwl_dbgfs_ctdp_budget_read() argument 99 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_ctdp_budget_read() 197 static ssize_t iwl_dbgfs_sram_read(struct file *file, char __user *user_buf, in iwl_dbgfs_sram_read() argument 225 ret = simple_read_from_buffer(user_buf, count, ppos, ptr, len); in iwl_dbgfs_sram_read() 264 char __user *user_buf, in iwl_dbgfs_set_nic_temperature_read() argument 276 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_set_nic_temperature_read() 331 char __user *user_buf, in iwl_dbgfs_nic_temp_read() argument 351 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_nic_temp_read() 356 char __user *user_buf, in iwl_dbgfs_sar_geo_profile_read() argument 393 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_sar_geo_profile_read() [all …]
|
D | debugfs-vif.c | 191 char __user *user_buf, in iwl_dbgfs_tx_pwr_lmt_read() argument 202 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_tx_pwr_lmt_read() 206 char __user *user_buf, in iwl_dbgfs_pm_params_read() argument 218 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_pm_params_read() 222 char __user *user_buf, in iwl_dbgfs_mac_params_read() argument 302 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_mac_params_read() 448 char __user *user_buf, in iwl_dbgfs_bf_params_read() argument 493 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_bf_params_read() 504 char __user *user_buf, in iwl_dbgfs_os_device_timediff_read() argument 522 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_os_device_timediff_read() [all …]
|
/Linux-v5.4/drivers/misc/lkdtm/ |
D | core.c | 33 static ssize_t lkdtm_debugfs_read(struct file *f, char __user *user_buf, 35 static ssize_t direct_entry(struct file *f, const char __user *user_buf, 41 const char __user *user_buf, 287 const char __user *user_buf, in lkdtm_debugfs_entry() argument 301 if (copy_from_user(buf, user_buf, count)) { in lkdtm_debugfs_entry() 326 static ssize_t lkdtm_debugfs_read(struct file *f, char __user *user_buf, in lkdtm_debugfs_read() argument 343 out = simple_read_from_buffer(user_buf, count, off, in lkdtm_debugfs_read() 356 static ssize_t direct_entry(struct file *f, const char __user *user_buf, in direct_entry() argument 370 if (copy_from_user(buf, user_buf, count)) { in direct_entry()
|
/Linux-v5.4/arch/x86/mm/ |
D | pkeys.c | 144 static ssize_t init_pkru_read_file(struct file *file, char __user *user_buf, in init_pkru_read_file() argument 151 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in init_pkru_read_file() 155 const char __user *user_buf, size_t count, loff_t *ppos) in init_pkru_write_file() argument 163 if (copy_from_user(buf, user_buf, len)) in init_pkru_write_file()
|
/Linux-v5.4/drivers/acpi/ |
D | custom_method.c | 24 static ssize_t cm_write(struct file *file, const char __user * user_buf, in cm_write() argument 43 if (copy_from_user(&table, user_buf, in cm_write() 63 if (copy_from_user(buf + (*ppos), user_buf, count)) { in cm_write()
|
/Linux-v5.4/kernel/locking/ |
D | lock_events.c | 61 ssize_t __weak lockevent_read(struct file *file, char __user *user_buf, in lockevent_read() argument 80 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in lockevent_read() 88 static ssize_t lockevent_write(struct file *file, const char __user *user_buf, in lockevent_write() argument
|
/Linux-v5.4/net/bluetooth/ |
D | hci_debugfs.c | 33 char __user *user_buf, \ 42 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); \ 46 const char __user *user_buf, \ 56 err = kstrtobool_from_user(user_buf, count, &enable); \ 255 static ssize_t use_debug_keys_read(struct file *file, char __user *user_buf, in use_debug_keys_read() argument 264 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in use_debug_keys_read() 273 static ssize_t sc_only_mode_read(struct file *file, char __user *user_buf, in sc_only_mode_read() argument 282 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in sc_only_mode_read() 407 static ssize_t ssp_debug_mode_read(struct file *file, char __user *user_buf, in ssp_debug_mode_read() argument 416 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in ssp_debug_mode_read() [all …]
|
/Linux-v5.4/drivers/platform/chrome/wilco_ec/ |
D | debugfs.c | 95 static ssize_t raw_write(struct file *file, const char __user *user_buf, in raw_write() argument 108 user_buf, count); in raw_write() 135 static ssize_t raw_read(struct file *file, char __user *user_buf, size_t count, in raw_read() argument 150 return simple_read_from_buffer(user_buf, count, ppos, in raw_read()
|