Lines Matching refs:count

193 					size_t count, loff_t *ppos)  in ath10k_read_wmi_services()  argument
229 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_wmi_services()
486 size_t count, loff_t *ppos) in ath10k_fw_stats_read() argument
491 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_fw_stats_read()
504 size_t count, loff_t *ppos) 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()
564 size_t count, loff_t *ppos) 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()
585 size_t count, loff_t *ppos) in ath10k_write_simulate_fw_crash() argument
593 if (*ppos != 0 || count >= sizeof(buf) || count == 0) in ath10k_write_simulate_fw_crash()
596 rc = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, user_buf, count); in ath10k_write_simulate_fw_crash()
640 ret = count; in ath10k_write_simulate_fw_crash()
656 size_t count, loff_t *ppos) in ath10k_read_chip_id() argument
664 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_chip_id()
676 size_t count, loff_t *ppos) in ath10k_reg_addr_read() argument
689 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_reg_addr_read()
694 size_t count, loff_t *ppos) in ath10k_reg_addr_write() argument
700 ret = kstrtou32_from_user(user_buf, count, 0, &reg_addr); in ath10k_reg_addr_write()
711 return count; in ath10k_reg_addr_write()
724 size_t count, loff_t *ppos) in ath10k_reg_value_read() argument
745 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_reg_value_read()
755 size_t count, loff_t *ppos) in ath10k_reg_value_write() argument
771 ret = kstrtou32_from_user(user_buf, count, 0, &reg_val); in ath10k_reg_value_write()
777 ret = count; in ath10k_reg_value_write()
795 size_t count, loff_t *ppos) in ath10k_mem_value_read() argument
804 if (!count) in ath10k_mem_value_read()
809 buf = vmalloc(count); in ath10k_mem_value_read()
821 ret = ath10k_hif_diag_read(ar, *ppos, buf, count); in ath10k_mem_value_read()
828 ret = copy_to_user(user_buf, buf, count); in ath10k_mem_value_read()
834 count -= ret; in ath10k_mem_value_read()
835 *ppos += count; in ath10k_mem_value_read()
836 ret = count; in ath10k_mem_value_read()
847 size_t count, loff_t *ppos) in ath10k_mem_value_write() argument
856 if (!count) in ath10k_mem_value_write()
861 buf = vmalloc(count); in ath10k_mem_value_write()
873 ret = copy_from_user(buf, user_buf, count); in ath10k_mem_value_write()
879 ret = ath10k_hif_diag_write(ar, *ppos, buf, count); in ath10k_mem_value_write()
886 *ppos += count; in ath10k_mem_value_write()
887 ret = count; in ath10k_mem_value_write()
947 size_t count, loff_t *ppos) 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()
960 size_t count, loff_t *ppos) in ath10k_write_htt_stats_mask() argument
966 ret = kstrtoul_from_user(user_buf, count, 0, &mask); in ath10k_write_htt_stats_mask()
982 ret = count; in ath10k_write_htt_stats_mask()
1000 size_t count, loff_t *ppos) 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()
1020 size_t count, loff_t *ppos) in ath10k_write_htt_max_amsdu_ampdu() argument
1028 user_buf, count); in ath10k_write_htt_max_amsdu_ampdu()
1043 res = count; in ath10k_write_htt_max_amsdu_ampdu()
1062 size_t count, loff_t *ppos) in ath10k_read_fw_dbglog() argument
1071 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_fw_dbglog()
1076 size_t count, loff_t *ppos) in ath10k_write_fw_dbglog() argument
1085 user_buf, count); in ath10k_write_fw_dbglog()
1113 ret = count; in ath10k_write_fw_dbglog()
1343 size_t count, loff_t *ppos) in ath10k_debug_cal_data_read() argument
1349 count = simple_read_from_buffer(user_buf, count, ppos, in ath10k_debug_cal_data_read()
1355 return count; in ath10k_debug_cal_data_read()
1360 size_t count, loff_t *ppos) in ath10k_write_ani_enable() argument
1366 if (kstrtou8_from_user(user_buf, count, 0, &enable)) in ath10k_write_ani_enable()
1372 ret = count; in ath10k_write_ani_enable()
1384 ret = count; in ath10k_write_ani_enable()
1393 size_t count, loff_t *ppos) in ath10k_read_ani_enable() argument
1401 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_ani_enable()
1421 size_t count, loff_t *ppos) 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()
1434 size_t count, loff_t *ppos) in ath10k_write_nf_cal_period() argument
1440 ret = kstrtoul_from_user(user_buf, count, 0, &period); in ath10k_write_nf_cal_period()
1457 ret = count; in ath10k_write_nf_cal_period()
1469 ret = count; in ath10k_write_nf_cal_period()
1717 size_t count, loff_t *ppos) in ath10k_tpc_stats_read() argument
1722 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_tpc_stats_read()
1804 size_t count, loff_t *ppos) in ath10k_write_simulate_radar() argument
1819 return count; in ath10k_write_simulate_radar()
1838 size_t count, loff_t *ppos) in ath10k_read_dfs_stats() argument
1878 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_dfs_stats()
1893 size_t count, loff_t *ppos) in ath10k_write_pktlog_filter() argument
1899 if (kstrtouint_from_user(ubuf, count, 0, &filter)) in ath10k_write_pktlog_filter()
1906 ret = count; in ath10k_write_pktlog_filter()
1911 ret = count; in ath10k_write_pktlog_filter()
1931 ret = count; in ath10k_write_pktlog_filter()
1939 size_t count, loff_t *ppos) in ath10k_read_pktlog_filter() argument
1950 return simple_read_from_buffer(ubuf, count, ppos, buf, len); in ath10k_read_pktlog_filter()
1961 size_t count, loff_t *ppos) in ath10k_write_quiet_period() argument
1966 if (kstrtouint_from_user(ubuf, count, 0, &period)) in ath10k_write_quiet_period()
1979 return count; in ath10k_write_quiet_period()
1983 size_t count, loff_t *ppos) in ath10k_read_quiet_period() argument
1994 return simple_read_from_buffer(ubuf, count, ppos, buf, len); in ath10k_read_quiet_period()
2005 size_t count, loff_t *ppos) in ath10k_write_btcoex() argument
2014 buf_size = min(count, (sizeof(buf) - 1)); in ath10k_write_btcoex()
2035 ret = count; in ath10k_write_btcoex()
2045 ret = count; in ath10k_write_btcoex()
2058 ret = count; in ath10k_write_btcoex()
2067 size_t count, loff_t *ppos) in ath10k_read_btcoex() argument
2078 return simple_read_from_buffer(ubuf, count, ppos, buf, len); in ath10k_read_btcoex()
2089 size_t count, loff_t *ppos) in ath10k_write_enable_extd_tx_stats() argument
2095 if (kstrtouint_from_user(ubuf, count, 0, &filter)) in ath10k_write_enable_extd_tx_stats()
2102 ret = count; in ath10k_write_enable_extd_tx_stats()
2107 ret = count; in ath10k_write_enable_extd_tx_stats()
2112 ret = count; in ath10k_write_enable_extd_tx_stats()
2121 size_t count, loff_t *ppos) in ath10k_read_enable_extd_tx_stats() argument
2133 return simple_read_from_buffer(ubuf, count, ppos, buf, len); in ath10k_read_enable_extd_tx_stats()
2144 size_t count, loff_t *ppos) in ath10k_write_peer_stats() argument
2152 buf_size = min(count, (sizeof(buf) - 1)); in ath10k_write_peer_stats()
2170 ret = count; in ath10k_write_peer_stats()
2182 ret = count; in ath10k_write_peer_stats()
2190 size_t count, loff_t *ppos) in ath10k_read_peer_stats() argument
2202 return simple_read_from_buffer(ubuf, count, ppos, buf, len); in ath10k_read_peer_stats()
2213 size_t count, loff_t *ppos) 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()
2268 size_t count, loff_t *ppos) 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()
2280 size_t count, loff_t *ppos) in ath10k_sta_tid_stats_mask_write() argument
2287 len = min(count, sizeof(buf) - 1); in ath10k_sta_tid_stats_mask_write()
2381 size_t count, loff_t *ppos) 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()
2399 size_t count, loff_t *ppos) in ath10k_write_warm_hw_reset() argument
2405 if (kstrtobool_from_user(user_buf, count, &val)) in ath10k_write_warm_hw_reset()
2426 ret = count; in ath10k_write_warm_hw_reset()
2453 size_t count, loff_t *ppos) 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()
2469 ret = count; in ath10k_write_ps_state_enable()
2487 ret = count; in ath10k_write_ps_state_enable()
2497 size_t count, loff_t *ppos) 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()
2521 size_t count, loff_t *ppos) in ath10k_write_reset_htt_stats() argument
2527 ret = kstrtoul_from_user(user_buf, count, 0, &reset); in ath10k_write_reset_htt_stats()
2543 ret = count; in ath10k_write_reset_htt_stats()