Lines Matching refs:pos
28 int pos, budget; in iwl_dbgfs_ctdp_budget_read() local
44 pos = scnprintf(buf, sizeof(buf), "%d\n", budget); in iwl_dbgfs_ctdp_budget_read()
46 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_ctdp_budget_read()
217 int pos; in iwl_dbgfs_set_nic_temperature_read() local
220 pos = scnprintf(buf, sizeof(buf), "disabled\n"); in iwl_dbgfs_set_nic_temperature_read()
222 pos = scnprintf(buf, sizeof(buf), "%d\n", mvm->temperature); in iwl_dbgfs_set_nic_temperature_read()
224 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_set_nic_temperature_read()
284 int pos, ret; in iwl_dbgfs_nic_temp_read() local
297 pos = scnprintf(buf, sizeof(buf), "%d\n", temp); in iwl_dbgfs_nic_temp_read()
299 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_nic_temp_read()
309 int pos = 0; in iwl_dbgfs_sar_geo_profile_read() local
324 pos = scnprintf(buf, bufsz, in iwl_dbgfs_sar_geo_profile_read()
327 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sar_geo_profile_read()
329 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sar_geo_profile_read()
334 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sar_geo_profile_read()
342 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_sar_geo_profile_read()
350 int err, pos; in iwl_dbgfs_wifi_6e_enable_read() local
360 pos = sprintf(buf, "0x%08x\n", value); in iwl_dbgfs_wifi_6e_enable_read()
362 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_wifi_6e_enable_read()
372 int i, pos = 0, bufsz = sizeof(buf); in iwl_dbgfs_stations_read() local
377 pos += scnprintf(buf + pos, bufsz - pos, "%.2d: ", i); in iwl_dbgfs_stations_read()
381 pos += scnprintf(buf + pos, bufsz - pos, "N/A\n"); in iwl_dbgfs_stations_read()
383 pos += scnprintf(buf + pos, bufsz - pos, "%ld\n", in iwl_dbgfs_stations_read()
386 pos += scnprintf(buf + pos, bufsz - pos, "%pM\n", in iwl_dbgfs_stations_read()
392 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_stations_read()
479 int pos; in iwl_dbgfs_amsdu_len_read() local
481 pos = scnprintf(buf, sizeof(buf), "current %d ", in iwl_dbgfs_amsdu_len_read()
483 pos += scnprintf(buf + pos, sizeof(buf) - pos, "stored %d\n", in iwl_dbgfs_amsdu_len_read()
486 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_amsdu_len_read()
496 int pos = 0; in iwl_dbgfs_disable_power_off_read() local
498 pos += scnprintf(buf+pos, bufsz-pos, "disable_power_off_d0=%d\n", in iwl_dbgfs_disable_power_off_read()
500 pos += scnprintf(buf+pos, bufsz-pos, "disable_power_off_d3=%d\n", in iwl_dbgfs_disable_power_off_read()
503 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_disable_power_off_read()
535 int pos, int bufsz) in iwl_mvm_coex_dump_mbox() argument
537 pos += scnprintf(buf+pos, bufsz-pos, "MBOX dw0:\n"); in iwl_mvm_coex_dump_mbox()
551 pos += scnprintf(buf+pos, bufsz-pos, "MBOX dw1:\n"); in iwl_mvm_coex_dump_mbox()
560 pos += scnprintf(buf+pos, bufsz-pos, "MBOX dw2:\n"); in iwl_mvm_coex_dump_mbox()
573 pos += scnprintf(buf+pos, bufsz-pos, "MBOX dw3:\n"); in iwl_mvm_coex_dump_mbox()
590 return pos; in iwl_mvm_coex_dump_mbox()
599 int ret, pos = 0, bufsz = sizeof(char) * 1024; in iwl_dbgfs_bt_notif_read() local
607 pos += iwl_mvm_coex_dump_mbox(notif, buf, pos, bufsz); in iwl_dbgfs_bt_notif_read()
609 pos += scnprintf(buf + pos, bufsz - pos, "bt_ci_compliance = %d\n", in iwl_dbgfs_bt_notif_read()
611 pos += scnprintf(buf + pos, bufsz - pos, "primary_ch_lut = %d\n", in iwl_dbgfs_bt_notif_read()
613 pos += scnprintf(buf + pos, bufsz - pos, "secondary_ch_lut = %d\n", in iwl_dbgfs_bt_notif_read()
615 pos += scnprintf(buf + pos, in iwl_dbgfs_bt_notif_read()
616 bufsz - pos, "bt_activity_grading = %d\n", in iwl_dbgfs_bt_notif_read()
618 pos += scnprintf(buf + pos, bufsz - pos, "bt_rrc = %d\n", in iwl_dbgfs_bt_notif_read()
620 pos += scnprintf(buf + pos, bufsz - pos, "bt_ttc = %d\n", in iwl_dbgfs_bt_notif_read()
623 pos += scnprintf(buf + pos, bufsz - pos, "sync_sco = %d\n", in iwl_dbgfs_bt_notif_read()
625 pos += scnprintf(buf + pos, bufsz - pos, "mplut = %d\n", in iwl_dbgfs_bt_notif_read()
630 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_bt_notif_read()
644 int pos = 0; in iwl_dbgfs_bt_cmd_read() local
648 pos += scnprintf(buf + pos, bufsz - pos, "Channel inhibition CMD\n"); in iwl_dbgfs_bt_cmd_read()
649 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_bt_cmd_read()
652 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_bt_cmd_read()
658 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_bt_cmd_read()
717 char *buff, *pos, *endpos; in iwl_dbgfs_fw_ver_read() local
726 pos = buff; in iwl_dbgfs_fw_ver_read()
727 endpos = pos + bufsz; in iwl_dbgfs_fw_ver_read()
729 pos += scnprintf(pos, endpos - pos, "FW prefix: %s\n", in iwl_dbgfs_fw_ver_read()
731 pos += scnprintf(pos, endpos - pos, "FW: %s\n", in iwl_dbgfs_fw_ver_read()
733 pos += scnprintf(pos, endpos - pos, "Device: %s\n", in iwl_dbgfs_fw_ver_read()
735 pos += scnprintf(pos, endpos - pos, "Bus: %s\n", in iwl_dbgfs_fw_ver_read()
738 ret = simple_read_from_buffer(user_buf, count, ppos, buff, pos - buff); in iwl_dbgfs_fw_ver_read()
752 char *buff, *pos, *endpos; in iwl_dbgfs_tas_get_status_read() local
795 pos = buff; in iwl_dbgfs_tas_get_status_read()
796 endpos = pos + bufsz; in iwl_dbgfs_tas_get_status_read()
800 pos += scnprintf(pos, endpos - pos, "TAS Conclusion:\n"); in iwl_dbgfs_tas_get_status_read()
804 pos += scnprintf(pos, endpos - pos, "\tON for "); in iwl_dbgfs_tas_get_status_read()
807 pos += scnprintf(pos, endpos - pos, "HB\n"); in iwl_dbgfs_tas_get_status_read()
810 pos += scnprintf(pos, endpos - pos, "LB\n"); in iwl_dbgfs_tas_get_status_read()
813 pos += scnprintf(pos, endpos - pos, "UHB\n"); in iwl_dbgfs_tas_get_status_read()
816 pos += scnprintf(pos, endpos - pos, in iwl_dbgfs_tas_get_status_read()
820 pos += scnprintf(pos, endpos - pos, in iwl_dbgfs_tas_get_status_read()
829 pos += scnprintf(pos, endpos - pos, "\tOFF\n"); in iwl_dbgfs_tas_get_status_read()
831 pos += scnprintf(pos, endpos - pos, "TAS Report\n"); in iwl_dbgfs_tas_get_status_read()
832 pos += scnprintf(pos, endpos - pos, "TAS FW version: %d\n", in iwl_dbgfs_tas_get_status_read()
834 pos += scnprintf(pos, endpos - pos, "Is UHB enabled for USA?: %s\n", in iwl_dbgfs_tas_get_status_read()
836 pos += scnprintf(pos, endpos - pos, "Current MCC: 0x%x\n", in iwl_dbgfs_tas_get_status_read()
839 pos += scnprintf(pos, endpos - pos, "Block list entries:"); in iwl_dbgfs_tas_get_status_read()
841 pos += scnprintf(pos, endpos - pos, " 0x%x", in iwl_dbgfs_tas_get_status_read()
844 pos += scnprintf(pos, endpos - pos, "\nOEM name: %s\n", in iwl_dbgfs_tas_get_status_read()
846 pos += scnprintf(pos, endpos - pos, "\tVendor In Approved List: %s\n", in iwl_dbgfs_tas_get_status_read()
848 pos += scnprintf(pos, endpos - pos, in iwl_dbgfs_tas_get_status_read()
854 pos += scnprintf(pos, endpos - pos, in iwl_dbgfs_tas_get_status_read()
856 pos += scnprintf(pos, endpos - pos, in iwl_dbgfs_tas_get_status_read()
862 pos += scnprintf(pos, endpos - pos, "TAS status for "); in iwl_dbgfs_tas_get_status_read()
865 pos += scnprintf(pos, endpos - pos, "High band\n"); in iwl_dbgfs_tas_get_status_read()
868 pos += scnprintf(pos, endpos - pos, "Low band\n"); in iwl_dbgfs_tas_get_status_read()
871 pos += scnprintf(pos, endpos - pos, in iwl_dbgfs_tas_get_status_read()
875 pos += scnprintf(pos, endpos - pos, in iwl_dbgfs_tas_get_status_read()
879 pos += scnprintf(pos, endpos - pos, in iwl_dbgfs_tas_get_status_read()
884 pos += scnprintf(pos, endpos - pos, "Static status: %sabled\n", in iwl_dbgfs_tas_get_status_read()
887 pos += scnprintf(pos, endpos - pos, in iwl_dbgfs_tas_get_status_read()
890 pos += scnprintf(pos, endpos - pos, "%s (%d)\n", in iwl_dbgfs_tas_get_status_read()
894 pos += scnprintf(pos, endpos - pos, in iwl_dbgfs_tas_get_status_read()
898 pos += scnprintf(pos, endpos - pos, "Dynamic status:\n"); in iwl_dbgfs_tas_get_status_read()
902 pos += scnprintf(pos, endpos - pos, in iwl_dbgfs_tas_get_status_read()
907 pos += scnprintf(pos, endpos - pos, in iwl_dbgfs_tas_get_status_read()
912 pos += scnprintf(pos, endpos - pos, in iwl_dbgfs_tas_get_status_read()
916 pos += scnprintf(pos, endpos - pos, in iwl_dbgfs_tas_get_status_read()
922 ret = simple_read_from_buffer(user_buf, count, ppos, buff, pos - buff); in iwl_dbgfs_tas_get_status_read()
935 int pos; in iwl_dbgfs_phy_integration_ver_read() local
943 pos = scnprintf(buf, bufsz, "%.*s\n", mvm->fw->phy_integration_ver_len, in iwl_dbgfs_phy_integration_ver_read()
946 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_phy_integration_ver_read()
953 pos += scnprintf(buf + pos, bufsz - pos, \
964 int pos = 0; in iwl_dbgfs_fw_rx_stats_read() local
986 pos += scnprintf(buf + pos, bufsz - pos, fmt_header, in iwl_dbgfs_fw_rx_stats_read()
1021 pos += scnprintf(buf + pos, bufsz - pos, fmt_header, in iwl_dbgfs_fw_rx_stats_read()
1056 pos += scnprintf(buf + pos, bufsz - pos, fmt_header, in iwl_dbgfs_fw_rx_stats_read()
1112 pos += scnprintf(buf + pos, bufsz - pos, fmt_header, in iwl_dbgfs_fw_rx_stats_read()
1140 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_fw_rx_stats_read()
1152 char *buff, *pos, *endpos; in iwl_dbgfs_frame_stats_read() local
1163 pos = buff; in iwl_dbgfs_frame_stats_read()
1164 endpos = pos + bufsz; in iwl_dbgfs_frame_stats_read()
1166 pos += scnprintf(pos, endpos - pos, in iwl_dbgfs_frame_stats_read()
1171 pos += scnprintf(pos, endpos - pos, "20/40/80\t:\t%d/%d/%d\n", in iwl_dbgfs_frame_stats_read()
1175 pos += scnprintf(pos, endpos - pos, "NGI/SGI\t\t:\t%d/%d\n", in iwl_dbgfs_frame_stats_read()
1178 pos += scnprintf(pos, endpos - pos, "SISO/MIMO2\t:\t%d/%d\n", in iwl_dbgfs_frame_stats_read()
1181 pos += scnprintf(pos, endpos - pos, "FAIL/SCSS\t:\t%d/%d\n", in iwl_dbgfs_frame_stats_read()
1184 pos += scnprintf(pos, endpos - pos, "MPDUs agg\t:\t%d\n", in iwl_dbgfs_frame_stats_read()
1186 pos += scnprintf(pos, endpos - pos, "A-MPDUs\t\t:\t%d\n", in iwl_dbgfs_frame_stats_read()
1188 pos += scnprintf(pos, endpos - pos, "Avg MPDUs/A-MPDU:\t%d\n", in iwl_dbgfs_frame_stats_read()
1192 pos += scnprintf(pos, endpos - pos, "Last Rates\n"); in iwl_dbgfs_frame_stats_read()
1199 pos += scnprintf(pos, endpos - pos, "Rate[%d]: ", in iwl_dbgfs_frame_stats_read()
1201 pos += rs_pretty_print_rate_v1(pos, endpos - pos, in iwl_dbgfs_frame_stats_read()
1203 if (pos < endpos - 1) in iwl_dbgfs_frame_stats_read()
1204 *pos++ = '\n'; in iwl_dbgfs_frame_stats_read()
1208 ret = simple_read_from_buffer(user_buf, count, ppos, buff, pos - buff); in iwl_dbgfs_frame_stats_read()
1273 int pos = 0; in iwl_dbgfs_scan_ant_rxchain_read() local
1278 pos += scnprintf(buf + pos, bufsz - pos, "Antennas for scan: "); in iwl_dbgfs_scan_ant_rxchain_read()
1280 pos += scnprintf(buf + pos, bufsz - pos, "A"); in iwl_dbgfs_scan_ant_rxchain_read()
1282 pos += scnprintf(buf + pos, bufsz - pos, "B"); in iwl_dbgfs_scan_ant_rxchain_read()
1283 pos += scnprintf(buf + pos, bufsz - pos, " (%x)\n", mvm->scan_rx_ant); in iwl_dbgfs_scan_ant_rxchain_read()
1285 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_scan_ant_rxchain_read()
1524 int pos = 0; in iwl_dbgfs_fw_dbg_conf_read() local
1530 pos += scnprintf(buf + pos, bufsz - pos, "%d\n", conf); in iwl_dbgfs_fw_dbg_conf_read()
1532 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_fw_dbg_conf_read()
1732 int pos = 0; in iwl_dbgfs_prph_reg_read() local
1739 pos += scnprintf(buf + pos, bufsz - pos, "Reg 0x%x: (0x%x)\n", in iwl_dbgfs_prph_reg_read()
1743 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_prph_reg_read()
1883 unsigned int pos = 0; in iwl_dbgfs_uapsd_noagg_bssids_read() local
1890 pos += scnprintf(buf + pos, bufsz - pos, "%pM\n", in iwl_dbgfs_uapsd_noagg_bssids_read()
1895 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_uapsd_noagg_bssids_read()
1967 int i, j, pos = 0; in iwl_dbgfs_rfi_freq_table_read() local
1980 pos += scnprintf(buf + pos, IWL_RFI_BUF_SIZE - pos, "%d: ", in iwl_dbgfs_rfi_freq_table_read()
1984 pos += scnprintf(buf + pos, IWL_RFI_BUF_SIZE - pos, in iwl_dbgfs_rfi_freq_table_read()
1988 pos += scnprintf(buf + pos, IWL_RFI_BUF_SIZE - pos, "\n"); in iwl_dbgfs_rfi_freq_table_read()
1993 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_rfi_freq_table_read()