Lines Matching refs:user_buf
151 char __user *user_buf, in ath10k_read_wmi_services() argument
188 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_wmi_services()
444 static ssize_t ath10k_fw_stats_read(struct file *file, char __user *user_buf, in ath10k_fw_stats_read() argument
450 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_fw_stats_read()
462 char __user *user_buf, in ath10k_debug_fw_reset_stats_read() argument
487 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_debug_fw_reset_stats_read()
522 char __user *user_buf, in ath10k_read_simulate_fw_crash() argument
532 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath10k_read_simulate_fw_crash()
543 const char __user *user_buf, in ath10k_write_simulate_fw_crash() argument
555 rc = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, user_buf, count); in ath10k_write_simulate_fw_crash()
614 static ssize_t ath10k_read_chip_id(struct file *file, char __user *user_buf, in ath10k_read_chip_id() argument
623 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_chip_id()
634 char __user *user_buf, in ath10k_reg_addr_read() argument
648 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_reg_addr_read()
652 const char __user *user_buf, in ath10k_reg_addr_write() argument
659 ret = kstrtou32_from_user(user_buf, count, 0, ®_addr); in ath10k_reg_addr_write()
682 char __user *user_buf, in ath10k_reg_value_read() argument
704 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_reg_value_read()
713 const char __user *user_buf, in ath10k_reg_value_write() argument
730 ret = kstrtou32_from_user(user_buf, count, 0, ®_val); in ath10k_reg_value_write()
753 char __user *user_buf, in ath10k_mem_value_read() argument
787 ret = copy_to_user(user_buf, buf, count); in ath10k_mem_value_read()
805 const char __user *user_buf, in ath10k_mem_value_write() argument
832 ret = copy_from_user(buf, user_buf, count); in ath10k_mem_value_write()
905 char __user *user_buf, in ath10k_read_htt_stats_mask() argument
914 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_htt_stats_mask()
918 const char __user *user_buf, in ath10k_write_htt_stats_mask() argument
925 ret = kstrtoul_from_user(user_buf, count, 0, &mask); in ath10k_write_htt_stats_mask()
958 char __user *user_buf, in ath10k_read_htt_max_amsdu_ampdu() argument
974 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_htt_max_amsdu_ampdu()
978 const char __user *user_buf, in ath10k_write_htt_max_amsdu_ampdu() argument
987 user_buf, count); in ath10k_write_htt_max_amsdu_ampdu()
1020 char __user *user_buf, in ath10k_read_fw_dbglog() argument
1030 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_fw_dbglog()
1034 const char __user *user_buf, in ath10k_write_fw_dbglog() argument
1044 user_buf, count); in ath10k_write_fw_dbglog()
1301 char __user *user_buf, in ath10k_debug_cal_data_read() argument
1308 count = simple_read_from_buffer(user_buf, count, ppos, in ath10k_debug_cal_data_read()
1318 const char __user *user_buf, in ath10k_write_ani_enable() argument
1325 if (kstrtou8_from_user(user_buf, count, 0, &enable)) in ath10k_write_ani_enable()
1351 static ssize_t ath10k_read_ani_enable(struct file *file, char __user *user_buf, in ath10k_read_ani_enable() argument
1360 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_ani_enable()
1379 char __user *user_buf, in ath10k_read_nf_cal_period() argument
1388 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_nf_cal_period()
1392 const char __user *user_buf, in ath10k_write_nf_cal_period() argument
1399 ret = kstrtoul_from_user(user_buf, count, 0, &period); in ath10k_write_nf_cal_period()
1675 static ssize_t ath10k_tpc_stats_read(struct file *file, char __user *user_buf, in ath10k_tpc_stats_read() argument
1681 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_tpc_stats_read()
1762 const char __user *user_buf, in ath10k_write_simulate_radar() argument
1796 static ssize_t ath10k_read_dfs_stats(struct file *file, char __user *user_buf, in ath10k_read_dfs_stats() argument
1837 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_dfs_stats()
2171 char __user *user_buf, in ath10k_debug_fw_checksums_read() argument
2210 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_debug_fw_checksums_read()
2226 char __user *user_buf, in ath10k_sta_tid_stats_mask_read() argument
2234 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_sta_tid_stats_mask_read()
2238 const char __user *user_buf, in ath10k_sta_tid_stats_mask_write() argument
2247 if (copy_from_user(buf, user_buf, len)) in ath10k_sta_tid_stats_mask_write()
2339 char __user *user_buf, in ath10k_tpc_stats_final_read() argument
2345 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_tpc_stats_final_read()
2357 const char __user *user_buf, in ath10k_write_warm_hw_reset() argument
2364 if (kstrtobool_from_user(user_buf, count, &val)) in ath10k_write_warm_hw_reset()
2411 const char __user *user_buf, in ath10k_write_ps_state_enable() argument
2419 if (kstrtou8_from_user(user_buf, count, 0, &ps_state_enable)) in ath10k_write_ps_state_enable()
2455 char __user *user_buf, in ath10k_read_ps_state_enable() argument
2467 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_ps_state_enable()
2479 const char __user *user_buf, in ath10k_write_reset_htt_stats() argument
2486 ret = kstrtoul_from_user(user_buf, count, 0, &reset); in ath10k_write_reset_htt_stats()