Home
last modified time | relevance | path

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

/freebsd/sys/contrib/dev/athk/ath10k/
H A Ddebug.c192 char __user *user_buf, in ath10k_read_wmi_services() argument
229 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_wmi_services()
485 static ssize_t ath10k_fw_stats_read(struct file *file, char __user *user_buf, in ath10k_fw_stats_read() argument
491 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_fw_stats_read()
503 char __user *user_buf, in ath10k_debug_fw_reset_stats_read() argument
528 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_debug_fw_reset_stats_read()
563 char __user *user_buf, in ath10k_read_simulate_fw_crash() argument
573 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath10k_read_simulate_fw_crash()
584 const char __user *user_buf, in ath10k_write_simulate_fw_crash() argument
596 rc = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, user_buf, count); in ath10k_write_simulate_fw_crash()
[all …]
H A 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 …]
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
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 …]
/freebsd/sys/contrib/dev/iwlwifi/mvm/
H A Ddebugfs.c23 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()
154 static ssize_t iwl_dbgfs_sram_read(struct file *file, char __user *user_buf, in iwl_dbgfs_sram_read()
182 ret = simple_read_from_buffer(user_buf, count, ppos, ptr, len); in iwl_dbgfs_sram_write()
221 char __user *user_buf, in iwl_dbgfs_set_nic_temperature_read()
233 return simple_read_from_buffer(user_buf, count, ppos, buf, pos);
288 char __user *user_buf, in iwl_dbgfs_nic_temp_read()
308 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_sar_geo_profile_read()
313 char __user *user_buf, in iwl_dbgfs_sar_geo_profile_read()
351 return simple_read_from_buffer(user_buf, coun in iwl_dbgfs_wifi_6e_enable_read()
145 iwl_dbgfs_sram_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_sram_read() argument
212 iwl_dbgfs_set_nic_temperature_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_set_nic_temperature_read() argument
279 iwl_dbgfs_nic_temp_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_nic_temp_read() argument
304 iwl_dbgfs_sar_geo_profile_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_sar_geo_profile_read() argument
346 iwl_dbgfs_wifi_6e_enable_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_wifi_6e_enable_read() argument
366 iwl_dbgfs_stations_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_stations_read() argument
399 iwl_dbgfs_rs_data_read(struct ieee80211_link_sta * link_sta,struct iwl_mvm_sta * mvmsta,struct iwl_mvm * mvm,struct iwl_mvm_link_sta * mvm_link_sta,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_rs_data_read() argument
475 iwl_dbgfs_amsdu_len_read(struct ieee80211_link_sta * link_sta,struct iwl_mvm_sta * mvmsta,struct iwl_mvm * mvm,struct iwl_mvm_link_sta * mvm_link_sta,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_amsdu_len_read() argument
490 iwl_dbgfs_disable_power_off_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_disable_power_off_read() argument
593 iwl_dbgfs_bt_notif_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_bt_notif_read() argument
637 iwl_dbgfs_bt_cmd_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_bt_cmd_read() argument
713 iwl_dbgfs_fw_ver_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_fw_ver_read() argument
749 iwl_dbgfs_tas_get_status_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_tas_get_status_read() argument
933 iwl_dbgfs_phy_integration_ver_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_phy_integration_ver_read() argument
962 iwl_dbgfs_fw_rx_stats_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_fw_rx_stats_read() argument
1152 iwl_dbgfs_frame_stats_read(struct iwl_mvm * mvm,char __user * user_buf,size_t count,loff_t * ppos,struct iwl_mvm_frame_stats * stats) iwl_dbgfs_frame_stats_read() argument
1219 iwl_dbgfs_drv_rx_stats_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_drv_rx_stats_read() argument
1273 iwl_dbgfs_scan_ant_rxchain_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_scan_ant_rxchain_read() argument
1521 iwl_dbgfs_fw_dbg_conf_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_fw_dbg_conf_read() argument
1648 _iwl_dbgfs_link_sta_wrap_read(ssize_t (* real)(struct ieee80211_link_sta *,struct iwl_mvm_sta *,struct iwl_mvm *,struct iwl_mvm_link_sta *,char __user *,size_t,loff_t *),struct file * file,char __user * user_buf,size_t count,loff_t * ppos) _iwl_dbgfs_link_sta_wrap_read() argument
1732 iwl_dbgfs_prph_reg_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_prph_reg_read() argument
1865 iwl_dbgfs_he_sniffer_params_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_he_sniffer_params_read() argument
1882 iwl_dbgfs_uapsd_noagg_bssids_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_uapsd_noagg_bssids_read() argument
1964 iwl_dbgfs_rfi_freq_table_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_rfi_freq_table_read() argument
2050 iwl_dbgfs_mem_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_mem_read() argument
2111 iwl_dbgfs_mem_write(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_mem_write() argument
[all...]
H A Ddebugfs-vif.c139 char __user *user_buf, in iwl_dbgfs_tx_pwr_lmt_read() argument
150 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_tx_pwr_lmt_read()
154 char __user *user_buf, in iwl_dbgfs_pm_params_read() argument
166 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_pm_params_read()
170 char __user *user_buf, in iwl_dbgfs_mac_params_read() argument
250 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_mac_params_read()
396 char __user *user_buf, in iwl_dbgfs_bf_params_read() argument
441 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_bf_params_read()
445 char __user *user_buf, in iwl_dbgfs_os_device_timediff_read() argument
466 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_os_device_timediff_read()
[all …]
H A Ddebugfs.h16 const char __user *user_buf, \
23 if (copy_from_user(buf, user_buf, buf_size)) \
H A Dd3.c3689 static ssize_t iwl_mvm_d3_test_read(struct file *file, char __user *user_buf,
3239 iwl_mvm_d3_test_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_mvm_d3_test_read() argument
/freebsd/sys/contrib/dev/athk/ath11k/
H A Ddebugfs_sta.c135 char __user *user_buf, in ath11k_dbg_sta_dump_tx_stats() argument
227 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_dbg_sta_dump_tx_stats()
242 char __user *user_buf, in ath11k_dbg_sta_dump_rx_stats() argument
325 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_dbg_sta_dump_rx_stats()
391 char __user *user_buf, in ath11k_dbg_sta_read_htt_peer_stats() argument
400 return simple_read_from_buffer(user_buf, count, ppos, buf, length); in ath11k_dbg_sta_read_htt_peer_stats()
479 const char __user *user_buf, in ath11k_dbg_sta_write_delba() argument
490 user_buf, count); in ath11k_dbg_sta_write_delba()
530 const char __user *user_buf, in ath11k_dbg_sta_write_addba_resp() argument
541 user_buf, count); in ath11k_dbg_sta_write_addba_resp()
[all …]
H A Ddebugfs.c299 char __user *user_buf, in ath11k_read_pdev_stats() argument
305 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_pdev_stats()
370 char __user *user_buf, in ath11k_read_vdev_stats() argument
376 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_vdev_stats()
454 char __user *user_buf, in ath11k_read_bcn_stats() argument
460 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_bcn_stats()
472 char __user *user_buf, in ath11k_read_simulate_fw_crash() argument
480 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath11k_read_simulate_fw_crash()
491 const char __user *user_buf, in ath11k_write_simulate_fw_crash() argument
513 rc = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, user_buf, count); in ath11k_write_simulate_fw_crash()
[all …]
H A Dspectral.c269 char __user *user_buf, in ath11k_read_file_spec_scan_ctl() argument
294 return simple_read_from_buffer(user_buf, count, ppos, mode, len); in ath11k_read_file_spec_scan_ctl()
298 const char __user *user_buf, in ath11k_write_file_spec_scan_ctl() argument
307 if (copy_from_user(buf, user_buf, len)) in ath11k_write_file_spec_scan_ctl()
363 char __user *user_buf, in ath11k_read_file_spectral_count() argument
376 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_file_spectral_count()
380 const char __user *user_buf, in ath11k_write_file_spectral_count() argument
389 if (copy_from_user(buf, user_buf, len)) in ath11k_write_file_spectral_count()
415 char __user *user_buf, in ath11k_read_file_spectral_bins() argument
431 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_file_spectral_bins()
[all …]
H A Ddebugfs_htt_stats.c4605 char __user *user_buf, in ath11k_read_htt_stats_type() argument
4614 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_htt_stats_type()
4618 const char __user *user_buf, in ath11k_write_htt_stats_type() argument
4625 ret = kstrtou8_from_user(user_buf, count, 0, &type); in ath11k_write_htt_stats_type()
4816 char __user *user_buf, in ath11k_read_htt_stats() argument
4825 return simple_read_from_buffer(user_buf, count, ppos, buf, length); in ath11k_read_htt_stats()
4837 char __user *user_buf, in ath11k_read_htt_stats_reset() argument
4846 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_htt_stats_reset()
4850 const char __user *user_buf, in ath11k_write_htt_stats_reset() argument
4858 ret = kstrtou8_from_user(user_buf, count, 0, &type); in ath11k_write_htt_stats_reset()
/freebsd/sys/kern/
H A Dsys_getrandom.c48 kern_getrandom(struct thread *td, void *user_buf, size_t buflen, in kern_getrandom() argument
99 aiov.iov_base = user_buf; in kern_getrandom()
/freebsd/sys/contrib/dev/iwlwifi/fw/
H A Ddebugfs.c37 char __user *user_buf, \
51 return simple_read_from_buffer(user_buf, count, ppos, \
74 const char __user *user_buf, \
82 if (copy_from_user(buf, user_buf, buf_size)) \
/freebsd/sys/contrib/dev/rtw89/
H A Ddebug.c142 const char __user *user_buf, in rtw89_debug_priv_read_reg_select() argument
154 if (copy_from_user(buf, user_buf, buf_size)) in rtw89_debug_priv_read_reg_select()
220 const char __user *user_buf, in rtw89_debug_priv_write_reg_set() argument
231 if (copy_from_user(buf, user_buf, buf_size)) in rtw89_debug_priv_write_reg_set()
264 const char __user *user_buf, in rtw89_debug_priv_read_rf_select() argument
277 if (copy_from_user(buf, user_buf, buf_size)) in rtw89_debug_priv_read_rf_select()
319 const char __user *user_buf, in rtw89_debug_priv_write_rf_set() argument
331 if (copy_from_user(buf, user_buf, buf_size)) in rtw89_debug_priv_write_rf_set()
913 const char __user *user_buf, in rtw89_debug_priv_mac_reg_dump_select() argument
926 if (copy_from_user(buf, user_buf, buf_size)) in rtw89_debug_priv_mac_reg_dump_select()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/
H A Ddebugfs.c49 mt7915_sys_recovery_set(struct file *file, const char __user *user_buf, in mt7915_sys_recovery_set() argument
62 if (copy_from_user(buf, user_buf, count)) in mt7915_sys_recovery_set()
125 mt7915_sys_recovery_get(struct file *file, char __user *user_buf, in mt7915_sys_recovery_get() argument
199 ret = simple_read_from_buffer(user_buf, count, ppos, buff, desc); in mt7915_sys_recovery_get()
972 mt7915_rate_txpower_get(struct file *file, char __user *user_buf, in mt7915_rate_txpower_get() argument
1041 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in mt7915_rate_txpower_get()
1049 mt7915_rate_txpower_set(struct file *file, const char __user *user_buf, in mt7915_rate_txpower_set() argument
1067 if (copy_from_user(buf, user_buf, count)) in mt7915_rate_txpower_set()
1315 const char __user *user_buf, in mt7915_sta_fixed_rate_set() argument
1331 if (copy_from_user(buf, user_buf, count)) in mt7915_sta_fixed_rate_set()
/freebsd/sys/contrib/dev/iwlwifi/pcie/
H A Dtrans.c2757 char __user *user_buf, in iwl_dbgfs_rx_queue_read()
2799 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_interrupt_read()
2806 char __user *user_buf, in iwl_dbgfs_interrupt_read()
2858 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_fh_reg_read()
2864 const char __user *user_buf, in iwl_dbgfs_fh_reg_read()
2873 ret = kstrtou32_from_user(user_buf, count, 16, &reset_flag); in iwl_dbgfs_rfkill_read()
2883 const char __user *user_buf, in iwl_dbgfs_rfkill_read()
2894 char __user *user_buf, in iwl_dbgfs_rfkill_write()
2906 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret);
2912 char __user *user_buf, in iwl_dbgfs_monitor_data_open()
2712 iwl_dbgfs_rx_queue_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_rx_queue_read() argument
2763 iwl_dbgfs_interrupt_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_interrupt_read() argument
2821 iwl_dbgfs_interrupt_write(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_interrupt_write() argument
2840 iwl_dbgfs_csr_write(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_csr_write() argument
2851 iwl_dbgfs_fh_reg_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_fh_reg_read() argument
2869 iwl_dbgfs_rfkill_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_rfkill_read() argument
2886 iwl_dbgfs_rfkill_write(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_rfkill_write() argument
2937 iwl_write_to_user_buf(char __user * user_buf,ssize_t count,void * buf,ssize_t * size,ssize_t * bytes_copied) iwl_write_to_user_buf() argument
2956 iwl_dbgfs_monitor_data_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_monitor_data_read() argument
3039 iwl_dbgfs_rf_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) iwl_dbgfs_rf_read() argument
[all...]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/
H A Ddebugfs.c51 mt7996_sys_recovery_set(struct file *file, const char __user *user_buf, in mt7996_sys_recovery_set() argument
64 if (copy_from_user(buf, user_buf, count)) in mt7996_sys_recovery_set()
126 mt7996_sys_recovery_get(struct file *file, char __user *user_buf, in mt7996_sys_recovery_get() argument
208 ret = simple_read_from_buffer(user_buf, count, ppos, buff, desc); in mt7996_sys_recovery_get()
889 const char __user *user_buf, in mt7996_sta_fixed_rate_set() argument
905 if (copy_from_user(buf, user_buf, count)) in mt7996_sta_fixed_rate_set()
/freebsd/sys/dev/mpi3mr/
H A Dmpi3mr_app.h228 void *user_buf; member
H A Dmpi3mr_app.c577 error = copyin(((U8 *)dma_buffers->user_buf + copied_len), in mpi3mr_map_data_buffer_dma()
872 dma_buff->user_buf = buf_entries->buffer; in mpi3mr_app_mptcmds()
968 if (copyin(dma_buff->user_buf, dma_buff->kern_buf, tmplen)) { in mpi3mr_app_mptcmds()
1131 if (copyout(mpirepbuf, dma_buff->user_buf, tmplen)) { in mpi3mr_app_mptcmds()
1143 if (copyout(kern_erb, dma_buff->user_buf, tmplen)) { in mpi3mr_app_mptcmds()
1154 if (copyout(dma_buff->kern_buf, dma_buff->user_buf,dma_buff->kern_buf_len)) { in mpi3mr_app_mptcmds()
1164 (U8 *)dma_buff->user_buf+tmplen, in mpi3mr_app_mptcmds()
/freebsd/sys/dev/smartpqi/
H A Dsmartpqi_prototypes.h177 void pqisrc_print_buffer(pqisrc_softstate_t *softs, char *msg, void *user_buf, uint32_t total_len, …
H A Dsmartpqi_request.c1668 pqisrc_print_buffer(pqisrc_softstate_t *softs, char *msg, void *user_buf, in pqisrc_print_buffer() argument
1679 if (user_buf == NULL) in pqisrc_print_buffer()
1703 this_char = *((char*)(user_buf) + buf_consumed); in pqisrc_print_buffer()