Lines Matching refs:pos
24 int pos, budget; in iwl_dbgfs_ctdp_budget_read() local
40 pos = scnprintf(buf, sizeof(buf), "%d\n", budget); in iwl_dbgfs_ctdp_budget_read()
42 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_ctdp_budget_read()
213 int pos; in iwl_dbgfs_set_nic_temperature_read() local
216 pos = scnprintf(buf , sizeof(buf), "disabled\n"); in iwl_dbgfs_set_nic_temperature_read()
218 pos = scnprintf(buf , sizeof(buf), "%d\n", mvm->temperature); in iwl_dbgfs_set_nic_temperature_read()
220 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_set_nic_temperature_read()
280 int pos, ret; in iwl_dbgfs_nic_temp_read() local
293 pos = scnprintf(buf , sizeof(buf), "%d\n", temp); in iwl_dbgfs_nic_temp_read()
295 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_nic_temp_read()
305 int pos = 0; in iwl_dbgfs_sar_geo_profile_read() local
320 pos = scnprintf(buf, bufsz, in iwl_dbgfs_sar_geo_profile_read()
323 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sar_geo_profile_read()
325 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sar_geo_profile_read()
330 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sar_geo_profile_read()
338 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_sar_geo_profile_read()
348 int i, pos = 0, bufsz = sizeof(buf); in iwl_dbgfs_stations_read() local
353 pos += scnprintf(buf + pos, bufsz - pos, "%.2d: ", i); in iwl_dbgfs_stations_read()
357 pos += scnprintf(buf + pos, bufsz - pos, "N/A\n"); in iwl_dbgfs_stations_read()
359 pos += scnprintf(buf + pos, bufsz - pos, "%ld\n", in iwl_dbgfs_stations_read()
362 pos += scnprintf(buf + pos, bufsz - pos, "%pM\n", in iwl_dbgfs_stations_read()
368 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_stations_read()
452 int pos; in iwl_dbgfs_amsdu_len_read() local
454 pos = scnprintf(buf, sizeof(buf), "current %d ", sta->max_amsdu_len); in iwl_dbgfs_amsdu_len_read()
455 pos += scnprintf(buf + pos, sizeof(buf) - pos, "stored %d\n", in iwl_dbgfs_amsdu_len_read()
458 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_amsdu_len_read()
468 int pos = 0; in iwl_dbgfs_disable_power_off_read() local
470 pos += scnprintf(buf+pos, bufsz-pos, "disable_power_off_d0=%d\n", in iwl_dbgfs_disable_power_off_read()
472 pos += scnprintf(buf+pos, bufsz-pos, "disable_power_off_d3=%d\n", in iwl_dbgfs_disable_power_off_read()
475 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_disable_power_off_read()
507 int pos, int bufsz) in iwl_mvm_coex_dump_mbox() argument
509 pos += scnprintf(buf+pos, bufsz-pos, "MBOX dw0:\n"); in iwl_mvm_coex_dump_mbox()
523 pos += scnprintf(buf+pos, bufsz-pos, "MBOX dw1:\n"); in iwl_mvm_coex_dump_mbox()
532 pos += scnprintf(buf+pos, bufsz-pos, "MBOX dw2:\n"); in iwl_mvm_coex_dump_mbox()
545 pos += scnprintf(buf+pos, bufsz-pos, "MBOX dw3:\n"); in iwl_mvm_coex_dump_mbox()
562 return pos; in iwl_mvm_coex_dump_mbox()
571 int ret, pos = 0, bufsz = sizeof(char) * 1024; in iwl_dbgfs_bt_notif_read() local
579 pos += iwl_mvm_coex_dump_mbox(notif, buf, pos, bufsz); in iwl_dbgfs_bt_notif_read()
581 pos += scnprintf(buf + pos, bufsz - pos, "bt_ci_compliance = %d\n", in iwl_dbgfs_bt_notif_read()
583 pos += scnprintf(buf + pos, bufsz - pos, "primary_ch_lut = %d\n", in iwl_dbgfs_bt_notif_read()
585 pos += scnprintf(buf + pos, bufsz - pos, "secondary_ch_lut = %d\n", in iwl_dbgfs_bt_notif_read()
587 pos += scnprintf(buf + pos, in iwl_dbgfs_bt_notif_read()
588 bufsz - pos, "bt_activity_grading = %d\n", in iwl_dbgfs_bt_notif_read()
590 pos += scnprintf(buf + pos, bufsz - pos, "bt_rrc = %d\n", in iwl_dbgfs_bt_notif_read()
592 pos += scnprintf(buf + pos, bufsz - pos, "bt_ttc = %d\n", in iwl_dbgfs_bt_notif_read()
595 pos += scnprintf(buf + pos, bufsz - pos, "sync_sco = %d\n", in iwl_dbgfs_bt_notif_read()
597 pos += scnprintf(buf + pos, bufsz - pos, "mplut = %d\n", in iwl_dbgfs_bt_notif_read()
602 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_bt_notif_read()
616 int pos = 0; in iwl_dbgfs_bt_cmd_read() local
620 pos += scnprintf(buf + pos, bufsz - pos, "Channel inhibition CMD\n"); in iwl_dbgfs_bt_cmd_read()
621 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_bt_cmd_read()
624 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_bt_cmd_read()
630 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_bt_cmd_read()
689 char *buff, *pos, *endpos; in iwl_dbgfs_fw_ver_read() local
697 pos = buff; in iwl_dbgfs_fw_ver_read()
698 endpos = pos + bufsz; in iwl_dbgfs_fw_ver_read()
700 pos += scnprintf(pos, endpos - pos, "FW prefix: %s\n", in iwl_dbgfs_fw_ver_read()
702 pos += scnprintf(pos, endpos - pos, "FW: %s\n", in iwl_dbgfs_fw_ver_read()
704 pos += scnprintf(pos, endpos - pos, "Device: %s\n", in iwl_dbgfs_fw_ver_read()
706 pos += scnprintf(pos, endpos - pos, "Bus: %s\n", in iwl_dbgfs_fw_ver_read()
709 ret = simple_read_from_buffer(user_buf, count, ppos, buff, pos - buff); in iwl_dbgfs_fw_ver_read()
722 int pos; in iwl_dbgfs_phy_integration_ver_read() local
730 pos = scnprintf(buf, bufsz, "%.*s\n", mvm->fw->phy_integration_ver_len, in iwl_dbgfs_phy_integration_ver_read()
733 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_phy_integration_ver_read()
740 pos += scnprintf(buf + pos, bufsz - pos, \
751 int pos = 0; in iwl_dbgfs_fw_rx_stats_read() local
773 pos += scnprintf(buf + pos, bufsz - pos, fmt_header, in iwl_dbgfs_fw_rx_stats_read()
808 pos += scnprintf(buf + pos, bufsz - pos, fmt_header, in iwl_dbgfs_fw_rx_stats_read()
843 pos += scnprintf(buf + pos, bufsz - pos, fmt_header, in iwl_dbgfs_fw_rx_stats_read()
899 pos += scnprintf(buf + pos, bufsz - pos, fmt_header, in iwl_dbgfs_fw_rx_stats_read()
927 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_fw_rx_stats_read()
939 char *buff, *pos, *endpos; in iwl_dbgfs_frame_stats_read() local
950 pos = buff; in iwl_dbgfs_frame_stats_read()
951 endpos = pos + bufsz; in iwl_dbgfs_frame_stats_read()
953 pos += scnprintf(pos, endpos - pos, in iwl_dbgfs_frame_stats_read()
958 pos += scnprintf(pos, endpos - pos, "20/40/80\t:\t%d/%d/%d\n", in iwl_dbgfs_frame_stats_read()
962 pos += scnprintf(pos, endpos - pos, "NGI/SGI\t\t:\t%d/%d\n", in iwl_dbgfs_frame_stats_read()
965 pos += scnprintf(pos, endpos - pos, "SISO/MIMO2\t:\t%d/%d\n", in iwl_dbgfs_frame_stats_read()
968 pos += scnprintf(pos, endpos - pos, "FAIL/SCSS\t:\t%d/%d\n", in iwl_dbgfs_frame_stats_read()
971 pos += scnprintf(pos, endpos - pos, "MPDUs agg\t:\t%d\n", in iwl_dbgfs_frame_stats_read()
973 pos += scnprintf(pos, endpos - pos, "A-MPDUs\t\t:\t%d\n", in iwl_dbgfs_frame_stats_read()
975 pos += scnprintf(pos, endpos - pos, "Avg MPDUs/A-MPDU:\t%d\n", in iwl_dbgfs_frame_stats_read()
979 pos += scnprintf(pos, endpos - pos, "Last Rates\n"); in iwl_dbgfs_frame_stats_read()
986 pos += scnprintf(pos, endpos - pos, "Rate[%d]: ", in iwl_dbgfs_frame_stats_read()
988 pos += rs_pretty_print_rate_v1(pos, endpos - pos, in iwl_dbgfs_frame_stats_read()
990 if (pos < endpos - 1) in iwl_dbgfs_frame_stats_read()
991 *pos++ = '\n'; in iwl_dbgfs_frame_stats_read()
995 ret = simple_read_from_buffer(user_buf, count, ppos, buff, pos - buff); in iwl_dbgfs_frame_stats_read()
1052 int pos = 0; in iwl_dbgfs_scan_ant_rxchain_read() local
1057 pos += scnprintf(buf + pos, bufsz - pos, "Antennas for scan: "); in iwl_dbgfs_scan_ant_rxchain_read()
1059 pos += scnprintf(buf + pos, bufsz - pos, "A"); in iwl_dbgfs_scan_ant_rxchain_read()
1061 pos += scnprintf(buf + pos, bufsz - pos, "B"); in iwl_dbgfs_scan_ant_rxchain_read()
1062 pos += scnprintf(buf + pos, bufsz - pos, " (%hhx)\n", mvm->scan_rx_ant); in iwl_dbgfs_scan_ant_rxchain_read()
1064 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_scan_ant_rxchain_read()
1295 int pos = 0; in iwl_dbgfs_fw_dbg_conf_read() local
1301 pos += scnprintf(buf + pos, bufsz - pos, "%d\n", conf); in iwl_dbgfs_fw_dbg_conf_read()
1303 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_fw_dbg_conf_read()
1364 #define ADD_TEXT(...) pos += scnprintf(buf + pos, bufsz - pos, __VA_ARGS__)
1375 int i, j, pos = 0; in iwl_dbgfs_bcast_filters_read() local
1415 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_bcast_filters_read()
1423 int pos, next_pos; in iwl_dbgfs_bcast_filters_write() local
1430 &filter.frame_type, &pos) != 3) in iwl_dbgfs_bcast_filters_write()
1442 if (pos >= count) in iwl_dbgfs_bcast_filters_write()
1445 if (sscanf(&buf[pos], "%hhi %hhi %i %i %n", in iwl_dbgfs_bcast_filters_write()
1455 pos += next_pos; in iwl_dbgfs_bcast_filters_write()
1481 int i, pos = 0; in iwl_dbgfs_bcast_filters_macs_read() local
1503 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_bcast_filters_macs_read()
1576 int pos = 0; in iwl_dbgfs_prph_reg_read() local
1583 pos += scnprintf(buf + pos, bufsz - pos, "Reg 0x%x: (0x%x)\n", in iwl_dbgfs_prph_reg_read()
1587 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_prph_reg_read()
1726 unsigned int pos = 0; in iwl_dbgfs_uapsd_noagg_bssids_read() local
1733 pos += scnprintf(buf + pos, bufsz - pos, "%pM\n", in iwl_dbgfs_uapsd_noagg_bssids_read()
1738 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_uapsd_noagg_bssids_read()
1810 int i, j, pos = 0; in iwl_dbgfs_rfi_freq_table_read() local
1823 pos += scnprintf(buf + pos, IWL_RFI_BUF_SIZE - pos, "%d: ", in iwl_dbgfs_rfi_freq_table_read()
1827 pos += scnprintf(buf + pos, IWL_RFI_BUF_SIZE - pos, in iwl_dbgfs_rfi_freq_table_read()
1831 pos += scnprintf(buf + pos, IWL_RFI_BUF_SIZE - pos, "\n"); in iwl_dbgfs_rfi_freq_table_read()
1836 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_rfi_freq_table_read()