Home
last modified time | relevance | path

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

1234

/linux/drivers/net/wireless/intel/iwlegacy/
H A 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 …]
/linux/samples/hung_task/
H A Dhung_task_tests.c37 static ssize_t read_dummy_mutex(struct file *file, char __user *user_buf, in read_dummy_mutex() argument
50 return simple_read_from_buffer(user_buf, count, ppos, dummy_string, in read_dummy_mutex()
55 static ssize_t read_dummy_semaphore(struct file *file, char __user *user_buf, in read_dummy_semaphore() argument
70 return simple_read_from_buffer(user_buf, count, ppos, dummy_string, in read_dummy_semaphore()
75 static ssize_t read_dummy_rwsem_read(struct file *file, char __user *user_buf, in read_dummy_rwsem_read() argument
90 return simple_read_from_buffer(user_buf, count, ppos, dummy_string, in read_dummy_rwsem_read()
95 static ssize_t read_dummy_rwsem_write(struct file *file, char __user *user_buf, in read_dummy_rwsem_write() argument
110 return simple_read_from_buffer(user_buf, count, ppos, dummy_string, in read_dummy_rwsem_write()
/linux/drivers/net/wireless/ath/ath6kl/
H A 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 …]
/linux/drivers/net/wireless/ath/ath10k/
H A Ddebug.c154 char __user *user_buf, in ath10k_read_wmi_services() argument
191 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_wmi_services()
447 static ssize_t ath10k_fw_stats_read(struct file *file, char __user *user_buf, in ath10k_fw_stats_read() argument
453 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_fw_stats_read()
465 char __user *user_buf, in ath10k_debug_fw_reset_stats_read() argument
490 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_debug_fw_reset_stats_read()
525 char __user *user_buf, in ath10k_read_simulate_fw_crash() argument
535 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath10k_read_simulate_fw_crash()
546 const char __user *user_buf, in ath10k_write_simulate_fw_crash() argument
558 rc = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, user_buf, count); in ath10k_write_simulate_fw_crash()
[all …]
H A Ddebugfs_sta.c178 char __user *user_buf, in ath10k_dbg_sta_read_aggr_mode() argument
193 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_dbg_sta_read_aggr_mode()
197 const char __user *user_buf, in ath10k_dbg_sta_write_aggr_mode() argument
206 if (kstrtouint_from_user(user_buf, count, 0, &aggr_mode)) in ath10k_dbg_sta_write_aggr_mode()
240 const char __user *user_buf, in ath10k_dbg_sta_write_addba() argument
251 user_buf, count); in ath10k_dbg_sta_write_addba()
291 const char __user *user_buf, in ath10k_dbg_sta_write_addba_resp() argument
302 user_buf, count); in ath10k_dbg_sta_write_addba_resp()
341 const char __user *user_buf, in ath10k_dbg_sta_write_delba() argument
352 user_buf, count); in ath10k_dbg_sta_write_delba()
[all …]
H A 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
389 ret = kstrtoul_from_user(user_buf, count, 0, &val); in write_file_spectral_count()
412 char __user *user_buf, in read_file_spectral_bins() argument
429 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_spectral_bins()
[all …]
/linux/drivers/net/wireless/ath/wcn36xx/
H A Ddebug.c28 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/drivers/net/wireless/intel/iwlwifi/mld/
H A Ddebugfs.h36 char __user *user_buf, \
50 return simple_read_from_buffer(user_buf, count, ppos, \
102 const char __user *user_buf, \
111 user_buf, count, \
147 const char __user *user_buf, \
155 user_buf, count, \
163 char __user *user_buf, \
173 user_buf, count, ppos, \
180 return simple_read_from_buffer(user_buf, count, ppos, \
219 const char __user *user_buf, \
[all …]
/linux/drivers/net/wireless/ath/ath9k/
H A 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 …]
H A 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
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()
H A Dcommon-debug.c20 static ssize_t read_file_modal_eeprom(struct file *file, char __user *user_buf, in read_file_modal_eeprom() argument
34 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_modal_eeprom()
56 static ssize_t read_file_base_eeprom(struct file *file, char __user *user_buf, in read_file_base_eeprom() argument
70 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_base_eeprom()
124 static ssize_t read_file_recv(struct file *file, char __user *user_buf, in read_file_recv() argument
166 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_recv()
188 static ssize_t read_file_phy_err(struct file *file, char __user *user_buf, in read_file_phy_err() argument
242 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_phy_err()
H A Dcommon-spectral.c690 static ssize_t read_file_spec_scan_ctl(struct file *file, char __user *user_buf, in read_file_spec_scan_ctl() argument
712 return simple_read_from_buffer(user_buf, count, ppos, mode, len); in read_file_spec_scan_ctl()
791 const char __user *user_buf, in write_file_spec_scan_ctl() argument
803 if (copy_from_user(buf, user_buf, len)) in write_file_spec_scan_ctl()
842 char __user *user_buf, in read_file_spectral_short_repeat() argument
850 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_spectral_short_repeat()
854 const char __user *user_buf, in write_file_spectral_short_repeat() argument
861 ret = kstrtoul_from_user(user_buf, count, 0, &val); in write_file_spectral_short_repeat()
885 char __user *user_buf, in read_file_spectral_count() argument
893 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_spectral_count()
[all …]
H A 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
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/net/bluetooth/
H A Dhci_debugfs.c35 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); \
276 static ssize_t use_debug_keys_read(struct file *file, char __user *user_buf, in use_debug_keys_read() argument
285 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in use_debug_keys_read()
294 static ssize_t sc_only_mode_read(struct file *file, char __user *user_buf, in sc_only_mode_read() argument
303 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in sc_only_mode_read()
430 static ssize_t ssp_debug_mode_read(struct file *file, char __user *user_buf, in ssp_debug_mode_read() argument
439 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in ssp_debug_mode_read()
[all …]
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_heartbeat_dbgfs.c44 static ssize_t adf_hb_status_read(struct file *file, char __user *user_buf, in adf_hb_status_read() argument
66 return simple_read_from_buffer(user_buf, count, ppos, ret_str, len + 1); in adf_hb_status_read()
75 static ssize_t adf_hb_cfg_read(struct file *file, char __user *user_buf, in adf_hb_cfg_read() argument
90 return simple_read_from_buffer(user_buf, count, ppos, timer_str, in adf_hb_cfg_read()
94 static ssize_t adf_hb_cfg_write(struct file *file, const char __user *user_buf, in adf_hb_cfg_write() argument
111 ppos, user_buf, count); in adf_hb_cfg_write()
159 const char __user *user_buf, in adf_hb_error_inject_write() argument
170 if (copy_from_user(buf, user_buf, count)) in adf_hb_error_inject_write()
/linux/drivers/base/regmap/
H A 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 …]
/linux/arch/mips/mm/
H A Dsc-debugfs.c13 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/kernel/trace/rv/
H A Drv.c241 static ssize_t monitor_enable_read_data(struct file *filp, char __user *user_buf, size_t count, in monitor_enable_read_data() argument
249 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff)+1); in monitor_enable_read_data()
367 static ssize_t monitor_enable_write_data(struct file *filp, const char __user *user_buf, in monitor_enable_write_data() argument
374 retval = kstrtobool_from_user(user_buf, count, &val); in monitor_enable_write_data()
397 static ssize_t monitor_desc_read_data(struct file *filp, char __user *user_buf, size_t count, in monitor_desc_read_data() argument
407 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff) + 1); in monitor_desc_read_data()
584 static ssize_t enabled_monitors_write(struct file *filp, const char __user *user_buf, in enabled_monitors_write() argument
599 retval = simple_write_to_buffer(buff, sizeof(buff) - 1, ppos, user_buf, count); in enabled_monitors_write()
669 static ssize_t monitoring_on_read_data(struct file *filp, char __user *user_buf, in monitoring_on_read_data() argument
676 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff) + 1); in monitoring_on_read_data()
[all …]
H A Drv_reactors.c204 monitor_reactors_write(struct file *file, const char __user *user_buf, in monitor_reactors_write() argument
220 retval = simple_write_to_buffer(buff, sizeof(buff) - 1, ppos, user_buf, count); in monitor_reactors_write()
349 char __user *user_buf, in reacting_on_read_data() argument
356 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff)+1); in reacting_on_read_data()
373 static ssize_t reacting_on_write_data(struct file *filp, const char __user *user_buf, in reacting_on_write_data() argument
379 retval = kstrtobool_from_user(user_buf, count, &val); in reacting_on_write_data()
/linux/drivers/misc/lkdtm/
H A 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,
228 const char __user *user_buf, in lkdtm_debugfs_entry() argument
242 if (copy_from_user(buf, user_buf, count)) { in lkdtm_debugfs_entry()
267 static ssize_t lkdtm_debugfs_read(struct file *f, char __user *user_buf, in lkdtm_debugfs_read() argument
291 out = simple_read_from_buffer(user_buf, count, off, in lkdtm_debugfs_read()
304 static ssize_t direct_entry(struct file *f, const char __user *user_buf, in direct_entry() argument
319 if (copy_from_user(buf, user_buf, count)) { in direct_entry()
/linux/drivers/bluetooth/
H A Dhci_vhci.c112 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/drivers/net/wireless/ath/ath11k/
H A Ddebugfs_sta.c137 char __user *user_buf, in ath11k_dbg_sta_dump_tx_stats() argument
229 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_dbg_sta_dump_tx_stats()
244 char __user *user_buf, in ath11k_dbg_sta_dump_rx_stats() argument
327 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_dbg_sta_dump_rx_stats()
393 char __user *user_buf, in ath11k_dbg_sta_read_htt_peer_stats() argument
402 return simple_read_from_buffer(user_buf, count, ppos, buf, length); in ath11k_dbg_sta_read_htt_peer_stats()
481 const char __user *user_buf, in ath11k_dbg_sta_write_delba() argument
492 user_buf, count); in ath11k_dbg_sta_write_delba()
532 const char __user *user_buf, in ath11k_dbg_sta_write_addba_resp() argument
543 user_buf, count); in ath11k_dbg_sta_write_addba_resp()
[all …]
H A Ddebugfs.c180 char __user *user_buf, in ath11k_read_pdev_stats() argument
186 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_pdev_stats()
251 char __user *user_buf, in ath11k_read_vdev_stats() argument
257 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_vdev_stats()
335 char __user *user_buf, in ath11k_read_bcn_stats() argument
341 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_bcn_stats()
353 char __user *user_buf, in ath11k_read_simulate_fw_crash() argument
361 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath11k_read_simulate_fw_crash()
372 const char __user *user_buf, in ath11k_write_simulate_fw_crash() argument
394 rc = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, user_buf, count); in ath11k_write_simulate_fw_crash()
[all …]
/linux/arch/x86/mm/
H A Dpkeys.c130 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()
/linux/drivers/thunderbolt/
H A Ddebugfs.c127 static void *validate_and_copy_from_user(const void __user *user_buf, in validate_and_copy_from_user() argument
136 if (!access_ok(user_buf, *count)) in validate_and_copy_from_user()
144 if (copy_from_user(buf, user_buf, nbytes)) { in validate_and_copy_from_user()
222 enum tb_cfg_space space, const char __user *user_buf, in regs_write() argument
230 buf = validate_and_copy_from_user(user_buf, &count); in regs_write()
273 static ssize_t port_regs_write(struct file *file, const char __user *user_buf, in port_regs_write() argument
279 return regs_write(port->sw, port, TB_CFG_PORT, user_buf, count, ppos); in port_regs_write()
282 static ssize_t path_write(struct file *file, const char __user *user_buf, in path_write() argument
288 return regs_write(port->sw, port, TB_CFG_HOPS, user_buf, count, ppos); in path_write()
291 static ssize_t switch_regs_write(struct file *file, const char __user *user_buf, in switch_regs_write() argument
[all …]

1234