/linux-6.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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 106 ret = kstrtoul_from_user(user_buf, count, 0, &mask); in write_file_debug() 127 static ssize_t read_file_ani(struct file *file, char __user *user_buf, in read_file_ani() argument 176 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_ani() 183 const char __user *user_buf, in write_file_ani() argument 191 ret = kstrtoul_from_user(user_buf, count, 0, &ani); 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 185 ret = kstrtobool_from_user(user_buf, count, &start); in write_file_tx99() 222 char __user *user_buf, in read_file_tx99_power() argument 233 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_tx99_power() 237 const char __user *user_buf, in write_file_tx99_power() argument 244 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 860 ret = kstrtoul_from_user(user_buf, count, 0, &val); in write_file_spectral_short_repeat() 884 char __user *user_buf, in read_file_spectral_count() argument 892 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 104 ret = kstrtoul_from_user(user_buf, count, 0, &val); in write_file_dfs() 114 const char __user *user_buf, in write_file_simulate_radar() argument
|
/linux-6.6.21/drivers/net/wireless/ath/ath10k/ |
D | debug.c | 151 char __user *user_buf, in ath10k_read_wmi_services() argument 188 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_wmi_services() 444 static ssize_t ath10k_fw_stats_read(struct file *file, char __user *user_buf, in ath10k_fw_stats_read() argument 450 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_fw_stats_read() 462 char __user *user_buf, in ath10k_debug_fw_reset_stats_read() argument 487 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_debug_fw_reset_stats_read() 522 char __user *user_buf, in ath10k_read_simulate_fw_crash() argument 532 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath10k_read_simulate_fw_crash() 543 const char __user *user_buf, in ath10k_write_simulate_fw_crash() argument 555 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.6.21/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.6.21/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | debugfs.c | 23 char __user *user_buf, in iwl_dbgfs_ctdp_budget_read() argument 46 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_ctdp_budget_read() 145 static ssize_t iwl_dbgfs_sram_read(struct file *file, char __user *user_buf, in iwl_dbgfs_sram_read() argument 173 ret = simple_read_from_buffer(user_buf, count, ppos, ptr, len); in iwl_dbgfs_sram_read() 212 char __user *user_buf, in iwl_dbgfs_set_nic_temperature_read() argument 224 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_set_nic_temperature_read() 279 char __user *user_buf, in iwl_dbgfs_nic_temp_read() argument 299 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_nic_temp_read() 304 char __user *user_buf, in iwl_dbgfs_sar_geo_profile_read() argument 342 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() 442 char __user *user_buf, in iwl_dbgfs_os_device_timediff_read() argument 463 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_os_device_timediff_read() [all …]
|
/linux-6.6.21/net/bluetooth/ |
D | hci_debugfs.c | 36 char __user *user_buf, \ 45 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); \ 49 const char __user *user_buf, \ 59 err = kstrtobool_from_user(user_buf, count, &enable); \ 273 static ssize_t use_debug_keys_read(struct file *file, char __user *user_buf, in use_debug_keys_read() argument 282 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in use_debug_keys_read() 291 static ssize_t sc_only_mode_read(struct file *file, char __user *user_buf, in sc_only_mode_read() argument 300 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in sc_only_mode_read() 427 static ssize_t ssp_debug_mode_read(struct file *file, char __user *user_buf, in ssp_debug_mode_read() argument 436 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in ssp_debug_mode_read() [all …]
|
/linux-6.6.21/drivers/accel/ivpu/ |
D | ivpu_debugfs.c | 132 fw_log_fops_write(struct file *file, const char __user *user_buf, size_t size, loff_t *pos) in fw_log_fops_write() argument 154 fw_trace_destination_mask_fops_write(struct file *file, const char __user *user_buf, in fw_trace_destination_mask_fops_write() argument 162 ret = kstrtou32_from_user(user_buf, size, 0, &trace_destination_mask); in fw_trace_destination_mask_fops_write() 181 fw_trace_hw_comp_mask_fops_write(struct file *file, const char __user *user_buf, in fw_trace_hw_comp_mask_fops_write() argument 189 ret = kstrtou64_from_user(user_buf, size, 0, &trace_hw_component_mask); in fw_trace_hw_comp_mask_fops_write() 208 fw_trace_level_fops_write(struct file *file, const char __user *user_buf, size_t size, loff_t *pos) in fw_trace_level_fops_write() argument 215 ret = kstrtou32_from_user(user_buf, size, 0, &trace_level); in fw_trace_level_fops_write() 234 ivpu_reset_engine_fn(struct file *file, const char __user *user_buf, size_t size, loff_t *pos) in ivpu_reset_engine_fn() argument 250 ivpu_force_recovery_fn(struct file *file, const char __user *user_buf, size_t size, loff_t *pos) in ivpu_force_recovery_fn() argument
|
/linux-6.6.21/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() 315 static ssize_t monitor_desc_read_data(struct file *filp, char __user *user_buf, size_t count, in monitor_desc_read_data() argument 325 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff) + 1); in monitor_desc_read_data() 510 static ssize_t enabled_monitors_write(struct file *filp, const char __user *user_buf, in enabled_monitors_write() argument 525 retval = simple_write_to_buffer(buff, sizeof(buff) - 1, ppos, user_buf, count); in enabled_monitors_write() 594 static ssize_t monitoring_on_read_data(struct file *filp, char __user *user_buf, in monitoring_on_read_data() argument 601 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff) + 1); in monitoring_on_read_data() [all …]
|
/linux-6.6.21/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.6.21/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.6.21/drivers/bluetooth/ |
D | hci_vhci.c | 112 static ssize_t force_suspend_read(struct file *file, char __user *user_buf, in force_suspend_read() argument 121 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in force_suspend_read() 136 const char __user *user_buf, in force_suspend_write() argument 143 err = kstrtobool_from_user(user_buf, count, &enable); in force_suspend_write() 164 static ssize_t force_wakeup_read(struct file *file, char __user *user_buf, in force_wakeup_read() argument 173 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in force_wakeup_read() 177 const char __user *user_buf, size_t count, in force_wakeup_write() argument 184 err = kstrtobool_from_user(user_buf, count, &enable); in force_wakeup_write() 230 static ssize_t aosp_capable_read(struct file *file, char __user *user_buf, in aosp_capable_read() argument 239 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in aosp_capable_read() [all …]
|
/linux-6.6.21/drivers/crypto/intel/qat/qat_common/ |
D | adf_heartbeat_dbgfs.c | 43 static ssize_t adf_hb_status_read(struct file *file, char __user *user_buf, in adf_hb_status_read() argument 65 return simple_read_from_buffer(user_buf, count, ppos, ret_str, len + 1); in adf_hb_status_read() 74 static ssize_t adf_hb_cfg_read(struct file *file, char __user *user_buf, in adf_hb_cfg_read() argument 89 return simple_read_from_buffer(user_buf, count, ppos, timer_str, in adf_hb_cfg_read() 93 static ssize_t adf_hb_cfg_write(struct file *file, const char __user *user_buf, in adf_hb_cfg_write() argument 110 ppos, user_buf, count); in adf_hb_cfg_write()
|