Home
last modified time | relevance | path

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

1234

/linux/net/mac80211/
H A Ddebugfs.c75 char __user *user_buf, in aqm_read() argument
109 return simple_read_from_buffer(user_buf, count, ppos, in aqm_read()
114 const char __user *user_buf, in aqm_write() argument
124 if (copy_from_user(buf, user_buf, count)) in aqm_write()
149 char __user *user_buf, in airtime_flags_read() argument
165 return simple_read_from_buffer(user_buf, count, ppos, buf, in airtime_flags_read()
170 const char __user *user_buf, in airtime_flags_write() argument
176 ret = kstrtou16_from_user(user_buf, count, 0, &local->airtime_flags); in airtime_flags_write()
187 char __user *user_buf, in aql_pending_read() argument
208 return simple_read_from_buffer(user_buf, count, ppos, in aql_pending_read()
[all …]
/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/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
H A Ddebug_sta.c23 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()
/linux/drivers/accel/ivpu/
H A Divpu_debugfs.c170 fw_dyndbg_fops_write(struct file *file, const char __user *user_buf, size_t size, loff_t *pos) in fw_dyndbg_fops_write() argument
179 ret = strncpy_from_user(buffer, user_buf, size); in fw_dyndbg_fops_write()
208 fw_log_fops_write(struct file *file, const char __user *user_buf, size_t size, loff_t *pos) in fw_log_fops_write() argument
230 fw_profiling_freq_fops_write(struct file *file, const char __user *user_buf, in fw_profiling_freq_fops_write() argument
237 ret = kstrtobool_from_user(user_buf, size, &enable); in fw_profiling_freq_fops_write()
257 fw_trace_destination_mask_fops_write(struct file *file, const char __user *user_buf, in fw_trace_destination_mask_fops_write() argument
265 ret = kstrtou32_from_user(user_buf, size, 0, &trace_destination_mask); in fw_trace_destination_mask_fops_write()
284 fw_trace_hw_comp_mask_fops_write(struct file *file, const char __user *user_buf, in fw_trace_hw_comp_mask_fops_write() argument
292 ret = kstrtou64_from_user(user_buf, size, 0, &trace_hw_component_mask); in fw_trace_hw_comp_mask_fops_write()
311 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
[all …]
/linux/net/bluetooth/
H A Dhci_debugfs.c32 char __user *user_buf, \
41 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); \
45 const char __user *user_buf, \
55 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, coun in ssp_debug_mode_read()
500 force_bredr_smp_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) force_bredr_smp_read() argument
513 force_bredr_smp_write(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) force_bredr_smp_write() argument
745 force_static_address_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) force_static_address_read() argument
758 force_static_address_write(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) force_static_address_write() argument
1147 force_no_mitm_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) force_no_mitm_read() argument
1160 force_no_mitm_write(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) force_no_mitm_write() argument
1268 dut_mode_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) dut_mode_read() argument
1280 dut_mode_write(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) dut_mode_write() argument
1324 vendor_diag_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) vendor_diag_read() argument
1336 vendor_diag_write(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) vendor_diag_write() argument
[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/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/drivers/net/wireless/ath/ath10k/
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/gpio/
H A Dgpio-virtuser.c150 char __user *user_buf, in gpio_virtuser_value_array_do_read() argument
176 return simple_read_from_buffer(user_buf, size, ppos, buf, in gpio_virtuser_value_array_do_read()
228 const char __user *user_buf, in gpio_virtuser_value_array_do_write() argument
243 ret = simple_write_to_buffer(buf, count, ppos, user_buf, count); in gpio_virtuser_value_array_do_write()
264 char __user *user_buf, in gpio_virtuser_value_array_read() argument
267 return gpio_virtuser_value_array_do_read(file, user_buf, count, ppos, in gpio_virtuser_value_array_read()
272 const char __user *user_buf, in gpio_virtuser_value_array_write() argument
275 return gpio_virtuser_value_array_do_write(file, user_buf, count, ppos, in gpio_virtuser_value_array_write()
288 gpio_virtuser_value_array_atomic_read(struct file *file, char __user *user_buf, in gpio_virtuser_value_array_atomic_read() argument
291 return gpio_virtuser_value_array_do_read(file, user_buf, count, ppos, in gpio_virtuser_value_array_atomic_read()
[all …]
/linux/drivers/net/wireless/silabs/wfx/
H A Ddebug.c205 static ssize_t wfx_send_pds_write(struct file *file, const char __user *user_buf, in wfx_send_pds_write() argument
216 buf = memdup_user(user_buf, count); in wfx_send_pds_write()
239 static ssize_t wfx_send_hif_msg_write(struct file *file, const char __user *user_buf, in wfx_send_hif_msg_write() argument
258 request = memdup_user(user_buf, count); in wfx_send_hif_msg_write()
272 static ssize_t wfx_send_hif_msg_read(struct file *file, char __user *user_buf, in wfx_send_hif_msg_read() argument
286 if (copy_to_user(user_buf, context->reply, count)) in wfx_send_hif_msg_read()
/linux/kernel/locking/
H A Dlock_events.c61 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/drivers/net/wireless/ath/ath5k/
H A 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 …]
/linux/drivers/net/wireless/ath/ath12k/
H A Ddebugfs.c14 const char __user *user_buf, in ath12k_write_simulate_radar() argument
37 char __user *user_buf, in ath12k_read_simulate_fw_crash() argument
44 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath12k_read_simulate_fw_crash()
49 const char __user *user_buf, in ath12k_write_simulate_fw_crash() argument
63 rc = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, user_buf, count); in ath12k_write_simulate_fw_crash()
107 const char __user *user_buf, in ath12k_write_tpc_stats_type() argument
114 ret = kstrtou8_from_user(user_buf, count, 0, &type); in ath12k_write_tpc_stats_type()
784 char __user *user_buf, in ath12k_read_tpc_stats() argument
790 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath12k_read_tpc_stats()
998 char __user *user_buf, in ath12k_read_link_stats() argument
[all …]
/linux/drivers/platform/chrome/wilco_ec/
H A 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()
/linux/drivers/remoteproc/
H A 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()
/linux/drivers/mtd/ubi/
H A Ddebug.c328 static ssize_t dfs_file_read(struct file *file, char __user *user_buf, in dfs_file_read() argument
357 count = simple_read_from_buffer(user_buf, count, ppos, in dfs_file_read()
362 count = simple_read_from_buffer(user_buf, count, ppos, in dfs_file_read()
367 count = simple_read_from_buffer(user_buf, count, ppos, in dfs_file_read()
372 count = simple_read_from_buffer(user_buf, count, ppos, in dfs_file_read()
387 count = simple_read_from_buffer(user_buf, count, ppos, buf, 2); in dfs_file_read()
395 static ssize_t dfs_file_write(struct file *file, const char __user *user_buf, in dfs_file_write() argument
412 if (copy_from_user(buf, user_buf, buf_size)) { in dfs_file_write()
/linux/arch/s390/kernel/
H A Ddebug.c71 static ssize_t debug_output(struct file *file, char __user *user_buf,
73 static ssize_t debug_input(struct file *file, const char __user *user_buf,
85 struct file *file, const char __user *user_buf,
91 struct file *file, const char __user *user_buf,
94 struct file *file, const char __user *user_buf,
638 char __user *user_buf, /* user buffer */ in debug_output() argument
663 if (copy_to_user(user_buf + count, p_info->temp_buf in debug_output()
687 static ssize_t debug_input(struct file *file, const char __user *user_buf, in debug_input() argument
697 p_info->view, file, user_buf, in debug_input()
1538 static inline char *debug_get_user_string(const char __user *user_buf, in debug_get_user_string() argument
[all …]

1234