/Linux-v4.19/drivers/net/wireless/ti/wlcore/ |
D | debugfs.c | 150 char __user *user_buf, \ 154 return wl1271_format_buffer(user_buf, count, \ 160 const char __user *user_buf, \ 167 ret = kstrtoul_from_user(user_buf, count, 10, &value); \ 201 static ssize_t gpio_power_read(struct file *file, char __user *user_buf, in gpio_power_read() argument 212 return simple_read_from_buffer(user_buf, count, ppos, buf, res); in gpio_power_read() 216 const char __user *user_buf, in gpio_power_write() argument 223 ret = kstrtoul_from_user(user_buf, count, 10, &value); in gpio_power_write() 248 const char __user *user_buf, in start_recovery_write() argument 266 static ssize_t dynamic_ps_timeout_read(struct file *file, char __user *user_buf, in dynamic_ps_timeout_read() argument [all …]
|
/Linux-v4.19/drivers/net/wireless/intel/iwlegacy/ |
D | debug.c | 153 char __user *user_buf, \ 158 const char __user *user_buf, \ 229 il_dbgfs_tx_stats_read(struct file *file, char __user *user_buf, size_t count, in il_dbgfs_tx_stats_read() argument 263 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_tx_stats_read() 270 const char __user *user_buf, size_t count, in il_dbgfs_clear_traffic_stats_write() argument 280 if (copy_from_user(buf, user_buf, buf_size)) in il_dbgfs_clear_traffic_stats_write() 290 il_dbgfs_rx_stats_read(struct file *file, char __user *user_buf, size_t count, in il_dbgfs_rx_stats_read() argument 325 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_rx_stats_read() 334 il_dbgfs_sram_read(struct file *file, char __user *user_buf, size_t count, in il_dbgfs_sram_read() argument 387 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_sram_read() [all …]
|
/Linux-v4.19/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-v4.19/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | debugfs.c | 96 char __user *user_buf, in iwl_dbgfs_sram_read() argument 180 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_sram_read() 186 const char __user *user_buf, in iwl_dbgfs_sram_write() argument 196 if (copy_from_user(buf, user_buf, buf_size)) in iwl_dbgfs_sram_write() 214 char __user *user_buf, in iwl_dbgfs_wowlan_sram_read() argument 223 return simple_read_from_buffer(user_buf, count, ppos, in iwl_dbgfs_wowlan_sram_read() 227 static ssize_t iwl_dbgfs_stations_read(struct file *file, char __user *user_buf, in iwl_dbgfs_stations_read() argument 278 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_stations_read() 284 char __user *user_buf, in iwl_dbgfs_nvm_read() argument 317 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_nvm_read() [all …]
|
/Linux-v4.19/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 163 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_recv() 185 static ssize_t read_file_phy_err(struct file *file, char __user *user_buf, in read_file_phy_err() argument 239 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_phy_err()
|
D | tx99.c | 161 static ssize_t read_file_tx99(struct file *file, char __user *user_buf, in read_file_tx99() argument 169 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_tx99() 172 static ssize_t write_file_tx99(struct file *file, const char __user *user_buf, in write_file_tx99() argument 189 if (copy_from_user(buf, user_buf, len)) in write_file_tx99() 230 char __user *user_buf, in read_file_tx99_power() argument 241 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_tx99_power() 245 const char __user *user_buf, in write_file_tx99_power() argument 252 r = kstrtou8_from_user(user_buf, count, 0, &tx_power); in write_file_tx99_power()
|
D | common-spectral.c | 708 static ssize_t read_file_spec_scan_ctl(struct file *file, char __user *user_buf, in read_file_spec_scan_ctl() argument 730 return simple_read_from_buffer(user_buf, count, ppos, mode, len); in read_file_spec_scan_ctl() 809 const char __user *user_buf, in write_file_spec_scan_ctl() argument 821 if (copy_from_user(buf, user_buf, len)) in write_file_spec_scan_ctl() 860 char __user *user_buf, in read_file_spectral_short_repeat() argument 868 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_spectral_short_repeat() 872 const char __user *user_buf, in write_file_spectral_short_repeat() argument 881 if (copy_from_user(buf, user_buf, len)) in write_file_spectral_short_repeat() 908 char __user *user_buf, in read_file_spectral_count() argument 916 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
|
D | debug_sta.c | 23 static ssize_t read_file_node_aggr(struct file *file, char __user *user_buf, in read_file_node_aggr() argument 74 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_node_aggr() 168 static ssize_t read_file_node_recv(struct file *file, char __user *user_buf, in read_file_node_recv() argument 229 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_node_recv() 256 static ssize_t read_airtime(struct file *file, char __user *user_buf, in read_airtime() argument 283 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_airtime()
|
/Linux-v4.19/drivers/net/wireless/ath/ath10k/ |
D | debug.c | 161 char __user *user_buf, in ath10k_read_wmi_services() argument 198 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_wmi_services() 451 static ssize_t ath10k_fw_stats_read(struct file *file, char __user *user_buf, in ath10k_fw_stats_read() argument 457 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_fw_stats_read() 469 char __user *user_buf, in ath10k_debug_fw_reset_stats_read() argument 494 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_debug_fw_reset_stats_read() 529 char __user *user_buf, in ath10k_read_simulate_fw_crash() argument 539 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath10k_read_simulate_fw_crash() 550 const char __user *user_buf, in ath10k_write_simulate_fw_crash() argument 562 rc = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, user_buf, count); in ath10k_write_simulate_fw_crash() [all …]
|
D | debugfs_sta.c | 187 char __user *user_buf, in ath10k_dbg_sta_read_aggr_mode() argument 202 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_dbg_sta_read_aggr_mode() 206 const char __user *user_buf, in ath10k_dbg_sta_write_aggr_mode() argument 215 if (kstrtouint_from_user(user_buf, count, 0, &aggr_mode)) in ath10k_dbg_sta_write_aggr_mode() 249 const char __user *user_buf, in ath10k_dbg_sta_write_addba() argument 260 user_buf, count); in ath10k_dbg_sta_write_addba() 300 const char __user *user_buf, in ath10k_dbg_sta_write_addba_resp() argument 311 user_buf, count); in ath10k_dbg_sta_write_addba_resp() 350 const char __user *user_buf, in ath10k_dbg_sta_write_delba() argument 361 user_buf, count); in ath10k_dbg_sta_write_delba() [all …]
|
D | spectral.c | 284 static ssize_t read_file_spec_scan_ctl(struct file *file, char __user *user_buf, in read_file_spec_scan_ctl() argument 309 return simple_read_from_buffer(user_buf, count, ppos, mode, len); in read_file_spec_scan_ctl() 313 const char __user *user_buf, in write_file_spec_scan_ctl() argument 322 if (copy_from_user(buf, user_buf, len)) in write_file_spec_scan_ctl() 376 char __user *user_buf, in read_file_spectral_count() argument 389 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_spectral_count() 393 const char __user *user_buf, in write_file_spectral_count() argument 402 if (copy_from_user(buf, user_buf, len)) in write_file_spectral_count() 428 char __user *user_buf, in read_file_spectral_bins() argument 445 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_spectral_bins() [all …]
|
/Linux-v4.19/arch/mips/mm/ |
D | sc-debugfs.c | 17 static ssize_t sc_prefetch_read(struct file *file, char __user *user_buf, in sc_prefetch_read() argument 27 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in sc_prefetch_read() 31 const char __user *user_buf, in sc_prefetch_write() argument 37 err = kstrtobool_from_user(user_buf, count, &enabled); in sc_prefetch_write()
|
/Linux-v4.19/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-v4.19/drivers/base/regmap/ |
D | regmap-debugfs.c | 40 char __user *user_buf, size_t count, in regmap_name_read_file() argument 61 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret); in regmap_name_read_file() 199 unsigned int to, char __user *user_buf, in regmap_read_debugfs() argument 256 if (copy_to_user(user_buf, buf, buf_pos)) { in regmap_read_debugfs() 268 static ssize_t regmap_map_read_file(struct file *file, char __user *user_buf, in regmap_map_read_file() argument 273 return regmap_read_debugfs(map, 0, map->max_register, user_buf, in regmap_map_read_file() 286 const char __user *user_buf, in regmap_map_write_file() argument 297 if (copy_from_user(buf, user_buf, buf_size)) in regmap_map_write_file() 328 static ssize_t regmap_range_read_file(struct file *file, char __user *user_buf, in regmap_range_read_file() argument 335 user_buf, count, ppos); in regmap_range_read_file() [all …]
|
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | debugfs.c | 80 char __user *user_buf, in iwl_dbgfs_ctdp_budget_read() argument 103 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_ctdp_budget_read() 201 static ssize_t iwl_dbgfs_sram_read(struct file *file, char __user *user_buf, in iwl_dbgfs_sram_read() argument 229 ret = simple_read_from_buffer(user_buf, count, ppos, ptr, len); in iwl_dbgfs_sram_read() 268 char __user *user_buf, in iwl_dbgfs_set_nic_temperature_read() argument 280 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_set_nic_temperature_read() 335 char __user *user_buf, in iwl_dbgfs_nic_temp_read() argument 355 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_nic_temp_read() 360 char __user *user_buf, in iwl_dbgfs_sar_geo_profile_read() argument 397 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_sar_geo_profile_read() [all …]
|
D | debugfs-vif.c | 197 char __user *user_buf, in iwl_dbgfs_tx_pwr_lmt_read() argument 208 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_tx_pwr_lmt_read() 212 char __user *user_buf, in iwl_dbgfs_pm_params_read() argument 224 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_pm_params_read() 228 char __user *user_buf, in iwl_dbgfs_mac_params_read() argument 308 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_mac_params_read() 454 char __user *user_buf, in iwl_dbgfs_bf_params_read() argument 499 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_bf_params_read() 510 char __user *user_buf, in iwl_dbgfs_os_device_timediff_read() argument 528 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_os_device_timediff_read() [all …]
|
/Linux-v4.19/net/mac80211/ |
D | debugfs.c | 75 char __user *user_buf, in aqm_read() argument 111 return simple_read_from_buffer(user_buf, count, ppos, in aqm_read() 116 const char __user *user_buf, in aqm_write() argument 127 if (copy_from_user(buf, user_buf, count)) in aqm_write() 153 static ssize_t reset_write(struct file *file, const char __user *user_buf, in reset_write() argument 220 static ssize_t hwflags_read(struct file *file, char __user *user_buf, in hwflags_read() argument 244 rv = simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in hwflags_read() 249 static ssize_t misc_read(struct file *file, char __user *user_buf, in misc_read() argument 276 rv = simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in misc_read() 281 static ssize_t queues_read(struct file *file, char __user *user_buf, in queues_read() argument [all …]
|
/Linux-v4.19/drivers/misc/lkdtm/ |
D | core.c | 53 static ssize_t lkdtm_debugfs_read(struct file *f, char __user *user_buf, 55 static ssize_t direct_entry(struct file *f, const char __user *user_buf, 61 const char __user *user_buf, 299 const char __user *user_buf, in lkdtm_debugfs_entry() argument 313 if (copy_from_user(buf, user_buf, count)) { in lkdtm_debugfs_entry() 338 static ssize_t lkdtm_debugfs_read(struct file *f, char __user *user_buf, in lkdtm_debugfs_read() argument 355 out = simple_read_from_buffer(user_buf, count, off, in lkdtm_debugfs_read() 368 static ssize_t direct_entry(struct file *f, const char __user *user_buf, in direct_entry() argument 382 if (copy_from_user(buf, user_buf, count)) { in direct_entry()
|
/Linux-v4.19/arch/x86/mm/ |
D | pkeys.c | 163 static ssize_t init_pkru_read_file(struct file *file, char __user *user_buf, in init_pkru_read_file() argument 170 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in init_pkru_read_file() 174 const char __user *user_buf, size_t count, loff_t *ppos) in init_pkru_write_file() argument 181 if (copy_from_user(buf, user_buf, len)) in init_pkru_write_file()
|
/Linux-v4.19/drivers/acpi/ |
D | custom_method.c | 22 static ssize_t cm_write(struct file *file, const char __user * user_buf, in cm_write() argument 36 if (copy_from_user(&table, user_buf, in cm_write() 54 if (copy_from_user(buf + (*ppos), user_buf, count)) { in cm_write()
|
/Linux-v4.19/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-v4.19/arch/s390/kernel/ |
D | debug.c | 68 static ssize_t debug_output(struct file *file, char __user *user_buf, 70 static ssize_t debug_input(struct file *file, const char __user *user_buf, 81 struct file *file, const char __user *user_buf, 86 struct file *file, const char __user *user_buf, 89 struct file *file, const char __user *user_buf, 503 char __user *user_buf, /* user buffer */ in debug_output() argument 528 if (copy_to_user(user_buf + count, p_info->temp_buf in debug_output() 552 static ssize_t debug_input(struct file *file, const char __user *user_buf, in debug_input() argument 562 p_info->view, file, user_buf, in debug_input() 1116 static inline char *debug_get_user_string(const char __user *user_buf, in debug_get_user_string() argument [all …]
|