Lines Matching refs:user_buf
192 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()
655 static ssize_t ath10k_read_chip_id(struct file *file, char __user *user_buf, in ath10k_read_chip_id() argument
664 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_chip_id()
675 char __user *user_buf, in ath10k_reg_addr_read() argument
689 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_reg_addr_read()
693 const char __user *user_buf, in ath10k_reg_addr_write() argument
700 ret = kstrtou32_from_user(user_buf, count, 0, ®_addr); in ath10k_reg_addr_write()
723 char __user *user_buf, in ath10k_reg_value_read() argument
745 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_reg_value_read()
754 const char __user *user_buf, in ath10k_reg_value_write() argument
771 ret = kstrtou32_from_user(user_buf, count, 0, ®_val); in ath10k_reg_value_write()
794 char __user *user_buf, in ath10k_mem_value_read() argument
828 ret = copy_to_user(user_buf, buf, count); in ath10k_mem_value_read()
846 const char __user *user_buf, in ath10k_mem_value_write() argument
873 ret = copy_from_user(buf, user_buf, count); in ath10k_mem_value_write()
946 char __user *user_buf, in ath10k_read_htt_stats_mask() argument
955 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_htt_stats_mask()
959 const char __user *user_buf, in ath10k_write_htt_stats_mask() argument
966 ret = kstrtoul_from_user(user_buf, count, 0, &mask); in ath10k_write_htt_stats_mask()
999 char __user *user_buf, in ath10k_read_htt_max_amsdu_ampdu() argument
1015 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_htt_max_amsdu_ampdu()
1019 const char __user *user_buf, in ath10k_write_htt_max_amsdu_ampdu() argument
1028 user_buf, count); in ath10k_write_htt_max_amsdu_ampdu()
1061 char __user *user_buf, in ath10k_read_fw_dbglog() argument
1071 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_fw_dbglog()
1075 const char __user *user_buf, in ath10k_write_fw_dbglog() argument
1085 user_buf, count); in ath10k_write_fw_dbglog()
1342 char __user *user_buf, in ath10k_debug_cal_data_read() argument
1349 count = simple_read_from_buffer(user_buf, count, ppos, in ath10k_debug_cal_data_read()
1359 const char __user *user_buf, in ath10k_write_ani_enable() argument
1366 if (kstrtou8_from_user(user_buf, count, 0, &enable)) in ath10k_write_ani_enable()
1392 static ssize_t ath10k_read_ani_enable(struct file *file, char __user *user_buf, in ath10k_read_ani_enable() argument
1401 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_ani_enable()
1420 char __user *user_buf, in ath10k_read_nf_cal_period() argument
1429 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_nf_cal_period()
1433 const char __user *user_buf, in ath10k_write_nf_cal_period() argument
1440 ret = kstrtoul_from_user(user_buf, count, 0, &period); in ath10k_write_nf_cal_period()
1716 static ssize_t ath10k_tpc_stats_read(struct file *file, char __user *user_buf, in ath10k_tpc_stats_read() argument
1722 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_tpc_stats_read()
1803 const char __user *user_buf, in ath10k_write_simulate_radar() argument
1837 static ssize_t ath10k_read_dfs_stats(struct file *file, char __user *user_buf, in ath10k_read_dfs_stats() argument
1878 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_dfs_stats()
2212 char __user *user_buf, in ath10k_debug_fw_checksums_read() argument
2251 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_debug_fw_checksums_read()
2267 char __user *user_buf, in ath10k_sta_tid_stats_mask_read() argument
2275 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_sta_tid_stats_mask_read()
2279 const char __user *user_buf, in ath10k_sta_tid_stats_mask_write() argument
2288 if (copy_from_user(buf, user_buf, len)) in ath10k_sta_tid_stats_mask_write()
2380 char __user *user_buf, in ath10k_tpc_stats_final_read() argument
2386 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_tpc_stats_final_read()
2398 const char __user *user_buf, in ath10k_write_warm_hw_reset() argument
2405 if (kstrtobool_from_user(user_buf, count, &val)) in ath10k_write_warm_hw_reset()
2452 const char __user *user_buf, in ath10k_write_ps_state_enable() argument
2460 if (kstrtou8_from_user(user_buf, count, 0, &ps_state_enable)) in ath10k_write_ps_state_enable()
2496 char __user *user_buf, in ath10k_read_ps_state_enable() argument
2508 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_ps_state_enable()
2520 const char __user *user_buf, in ath10k_write_reset_htt_stats() argument
2527 ret = kstrtoul_from_user(user_buf, count, 0, &reset); in ath10k_write_reset_htt_stats()