Home
last modified time | relevance | path

Searched refs:user_buf (Results 1 – 25 of 72) sorted by relevance

123

/drivers/net/wireless/ti/wlcore/
Ddebugfs.c129 char __user *user_buf, \
133 return wl1271_format_buffer(user_buf, count, \
139 const char __user *user_buf, \
146 ret = kstrtoul_from_user(user_buf, count, 10, &value); \
180 static ssize_t gpio_power_read(struct file *file, char __user *user_buf, in gpio_power_read() argument
191 return simple_read_from_buffer(user_buf, count, ppos, buf, res); in gpio_power_read()
195 const char __user *user_buf, in gpio_power_write() argument
202 ret = kstrtoul_from_user(user_buf, count, 10, &value); in gpio_power_write()
227 const char __user *user_buf, in start_recovery_write() argument
245 static ssize_t dynamic_ps_timeout_read(struct file *file, char __user *user_buf, in dynamic_ps_timeout_read() argument
[all …]
/drivers/net/wireless/intel/iwlegacy/
Ddebug.c124 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 …]
/drivers/net/wireless/ath/ath6kl/
Ddebug.c300 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 …]
/drivers/net/wireless/intel/iwlwifi/dvm/
Ddebugfs.c56 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 …]
/drivers/net/wireless/ath/ath10k/
Ddebug.c150 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 …]
Ddebugfs_sta.c176 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 …]
Dspectral.c273 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 …]
/drivers/net/wireless/ath/ath9k/
Dhtc_drv_debug.c19 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 …]
Ddebug.c71 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 …]
Dcommon-debug.c19 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()
Dcommon-spectral.c689 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 …]
Dtx99.c159 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()
Ddfs_debug.c34 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
/drivers/base/regmap/
Dregmap-debugfs.c35 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 …]
/drivers/net/wireless/intel/iwlwifi/mvm/
Ddebugfs.c20 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 …]
Ddebugfs-vif.c136 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 …]
/drivers/net/wireless/ath/wcn36xx/
Ddebug.c27 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()
/drivers/misc/lkdtm/
Dcore.c34 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,
302 const char __user *user_buf, in lkdtm_debugfs_entry() argument
316 if (copy_from_user(buf, user_buf, count)) { in lkdtm_debugfs_entry()
341 static ssize_t lkdtm_debugfs_read(struct file *f, char __user *user_buf, in lkdtm_debugfs_read() argument
358 out = simple_read_from_buffer(user_buf, count, off, in lkdtm_debugfs_read()
371 static ssize_t direct_entry(struct file *f, const char __user *user_buf, in direct_entry() argument
385 if (copy_from_user(buf, user_buf, count)) { in direct_entry()
/drivers/net/wireless/ath/ath11k/
Ddebugfs_sta.c211 char __user *user_buf, in ath11k_dbg_sta_dump_tx_stats() argument
303 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_dbg_sta_dump_tx_stats()
318 char __user *user_buf, in ath11k_dbg_sta_dump_rx_stats() argument
401 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_dbg_sta_dump_rx_stats()
461 char __user *user_buf, in ath11k_dbg_sta_read_htt_peer_stats() argument
470 return simple_read_from_buffer(user_buf, count, ppos, buf, length); in ath11k_dbg_sta_read_htt_peer_stats()
549 const char __user *user_buf, in ath11k_dbg_sta_write_delba() argument
560 user_buf, count); in ath11k_dbg_sta_write_delba()
600 const char __user *user_buf, in ath11k_dbg_sta_write_addba_resp() argument
611 user_buf, count); in ath11k_dbg_sta_write_addba_resp()
[all …]
/drivers/thunderbolt/
Ddebugfs.c55 static void *validate_and_copy_from_user(const void __user *user_buf, in validate_and_copy_from_user() argument
64 if (!access_ok(user_buf, *count)) in validate_and_copy_from_user()
72 if (copy_from_user(buf, user_buf, nbytes)) { in validate_and_copy_from_user()
124 const char __user *user_buf, size_t count, in regs_write() argument
132 buf = validate_and_copy_from_user(user_buf, &count); in regs_write()
166 static ssize_t port_regs_write(struct file *file, const char __user *user_buf, in port_regs_write() argument
172 return regs_write(port->sw, port, user_buf, count, ppos); in port_regs_write()
175 static ssize_t switch_regs_write(struct file *file, const char __user *user_buf, in switch_regs_write() argument
181 return regs_write(sw, NULL, user_buf, count, ppos); in switch_regs_write()
207 static ssize_t counters_write(struct file *file, const char __user *user_buf, in counters_write() argument
[all …]
/drivers/acpi/
Dcustom_method.c22 static ssize_t cm_write(struct file *file, const char __user *user_buf, in cm_write() argument
41 if (copy_from_user(&table, user_buf, in cm_write()
64 if (copy_from_user(buf + (*ppos), user_buf, count)) { in cm_write()
/drivers/staging/wfx/
Ddebug.c206 const char __user *user_buf, in wfx_send_pds_write() argument
217 buf = memdup_user(user_buf, count); in wfx_send_pds_write()
241 const char __user *user_buf, in wfx_send_hif_msg_write() argument
259 request = memdup_user(user_buf, count); in wfx_send_hif_msg_write()
274 static ssize_t wfx_send_hif_msg_read(struct file *file, char __user *user_buf, in wfx_send_hif_msg_read() argument
289 if (copy_to_user(user_buf, context->reply, count)) in wfx_send_hif_msg_read()
/drivers/net/wireless/ath/ath5k/
Ddebug.c175 static ssize_t read_file_beacon(struct file *file, char __user *user_buf, in read_file_beacon() argument
220 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_beacon()
296 static ssize_t read_file_debug(struct file *file, char __user *user_buf, in read_file_debug() argument
321 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_debug()
358 static ssize_t read_file_antenna(struct file *file, char __user *user_buf, in read_file_antenna() argument
426 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_antenna()
471 static ssize_t read_file_misc(struct file *file, char __user *user_buf, in read_file_misc() argument
514 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_misc()
526 static ssize_t read_file_frameerrors(struct file *file, char __user *user_buf, in read_file_frameerrors() argument
599 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_frameerrors()
[all …]
/drivers/platform/chrome/wilco_ec/
Ddebugfs.c95 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()
/drivers/remoteproc/
Dremoteproc_debugfs.c72 const char __user *user_buf, size_t count, in rproc_coredump_write() argument
82 ret = copy_from_user(buf, user_buf, count); in rproc_coredump_write()
209 rproc_recovery_write(struct file *filp, const char __user *user_buf, in rproc_recovery_write() argument
219 ret = copy_from_user(buf, user_buf, count); in rproc_recovery_write()
252 rproc_crash_write(struct file *filp, const char __user *user_buf, in rproc_crash_write() argument
259 ret = kstrtouint_from_user(user_buf, count, 0, &type); in rproc_crash_write()

123