Lines Matching refs:fwrt

269 int iwl_acpi_get_tas(struct iwl_fw_runtime *fwrt,  in iwl_acpi_get_tas()  argument
275 data = iwl_acpi_get_object(fwrt->dev, ACPI_WTAS_METHOD); in iwl_acpi_get_tas()
280 wifi_pkg = iwl_acpi_get_wifi_pkg(fwrt->dev, data, in iwl_acpi_get_tas()
318 IWL_DEBUG_RADIO(fwrt, "TAS not enabled\n"); in iwl_acpi_get_tas()
323 IWL_DEBUG_RADIO(fwrt, "Reading TAS table revision %d\n", tbl_rev); in iwl_acpi_get_tas()
327 IWL_DEBUG_RADIO(fwrt, "TAS invalid array size %llu\n", in iwl_acpi_get_tas()
335 IWL_DEBUG_RADIO(fwrt, "TAS array size %u\n", block_list_size); in iwl_acpi_get_tas()
337 IWL_DEBUG_RADIO(fwrt, "TAS invalid array size value %u\n", in iwl_acpi_get_tas()
348 IWL_DEBUG_RADIO(fwrt, in iwl_acpi_get_tas()
356 IWL_DEBUG_RADIO(fwrt, "TAS block list country %d\n", country); in iwl_acpi_get_tas()
496 static int iwl_sar_fill_table(struct iwl_fw_runtime *fwrt, in iwl_sar_fill_table() argument
515 prof = &fwrt->sar_profiles[profs[i] - 1]; in iwl_sar_fill_table()
519 IWL_DEBUG_RADIO(fwrt, "SAR profile %d is disabled.\n", in iwl_sar_fill_table()
529 IWL_DEBUG_INFO(fwrt, in iwl_sar_fill_table()
532 IWL_DEBUG_RADIO(fwrt, " Chain[%d]:\n", i); in iwl_sar_fill_table()
536 IWL_DEBUG_RADIO(fwrt, " Band[%d] = %d * .125dBm\n", in iwl_sar_fill_table()
544 int iwl_sar_select_profile(struct iwl_fw_runtime *fwrt, in iwl_sar_select_profile() argument
551 ret = iwl_sar_fill_table(fwrt, in iwl_sar_select_profile()
562 int iwl_sar_get_wrds_table(struct iwl_fw_runtime *fwrt) in iwl_sar_get_wrds_table() argument
569 data = iwl_acpi_get_object(fwrt->dev, ACPI_WRDS_METHOD); in iwl_sar_get_wrds_table()
574 wifi_pkg = iwl_acpi_get_wifi_pkg(fwrt->dev, data, in iwl_sar_get_wrds_table()
590 wifi_pkg = iwl_acpi_get_wifi_pkg(fwrt->dev, data, in iwl_sar_get_wrds_table()
606 wifi_pkg = iwl_acpi_get_wifi_pkg(fwrt->dev, data, in iwl_sar_get_wrds_table()
630 IWL_DEBUG_RADIO(fwrt, "Reading WRDS tbl_rev=%d\n", tbl_rev); in iwl_sar_get_wrds_table()
633 fwrt->reduced_power_flags = flags >> IWL_REDUCE_POWER_FLAGS_POS; in iwl_sar_get_wrds_table()
641 ret = iwl_sar_set_profile(table, &fwrt->sar_profiles[0], in iwl_sar_get_wrds_table()
650 int iwl_sar_get_ewrd_table(struct iwl_fw_runtime *fwrt) in iwl_sar_get_ewrd_table() argument
658 data = iwl_acpi_get_object(fwrt->dev, ACPI_EWRD_METHOD); in iwl_sar_get_ewrd_table()
663 wifi_pkg = iwl_acpi_get_wifi_pkg(fwrt->dev, data, in iwl_sar_get_ewrd_table()
679 wifi_pkg = iwl_acpi_get_wifi_pkg(fwrt->dev, data, in iwl_sar_get_ewrd_table()
695 wifi_pkg = iwl_acpi_get_wifi_pkg(fwrt->dev, data, in iwl_sar_get_ewrd_table()
742 &fwrt->sar_profiles[i + 1], enabled, in iwl_sar_get_ewrd_table()
757 int iwl_sar_get_wgds_table(struct iwl_fw_runtime *fwrt) in iwl_sar_get_wgds_table() argument
792 data = iwl_acpi_get_object(fwrt->dev, ACPI_WGDS_METHOD); in iwl_sar_get_wgds_table()
811 wifi_pkg = iwl_acpi_get_wifi_pkg_range(fwrt->dev, data, in iwl_sar_get_wgds_table()
856 fwrt->geo_rev = tbl_rev; in iwl_sar_get_wgds_table()
867 fwrt->geo_profiles[i].bands[j].max = in iwl_sar_get_wgds_table()
868 fwrt->geo_profiles[i].bands[1].max; in iwl_sar_get_wgds_table()
878 fwrt->geo_profiles[i].bands[j].max = in iwl_sar_get_wgds_table()
885 fwrt->geo_profiles[i].bands[j].chains[k] = in iwl_sar_get_wgds_table()
886 fwrt->geo_profiles[i].bands[1].chains[k]; in iwl_sar_get_wgds_table()
896 fwrt->geo_profiles[i].bands[j].chains[k] = in iwl_sar_get_wgds_table()
903 fwrt->geo_num_profiles = num_profiles; in iwl_sar_get_wgds_table()
904 fwrt->geo_enabled = true; in iwl_sar_get_wgds_table()
912 bool iwl_sar_geo_support(struct iwl_fw_runtime *fwrt) in iwl_sar_geo_support() argument
925 return IWL_UCODE_SERIAL(fwrt->fw->ucode_ver) >= 38 || in iwl_sar_geo_support()
926 (IWL_UCODE_SERIAL(fwrt->fw->ucode_ver) == 17 && in iwl_sar_geo_support()
927 fwrt->trans->hw_rev != CSR_HW_REV_TYPE_3160) || in iwl_sar_geo_support()
928 (IWL_UCODE_SERIAL(fwrt->fw->ucode_ver) == 29 && in iwl_sar_geo_support()
929 ((fwrt->trans->hw_rev & CSR_HW_REV_TYPE_MSK) == in iwl_sar_geo_support()
934 int iwl_sar_geo_init(struct iwl_fw_runtime *fwrt, in iwl_sar_geo_init() argument
940 if (!fwrt->geo_enabled) in iwl_sar_geo_init()
943 if (!iwl_sar_geo_support(fwrt)) in iwl_sar_geo_init()
952 cpu_to_le16(fwrt->geo_profiles[i].bands[j].max); in iwl_sar_geo_init()
953 chain->chain_a = fwrt->geo_profiles[i].bands[j].chains[0]; in iwl_sar_geo_init()
954 chain->chain_b = fwrt->geo_profiles[i].bands[j].chains[1]; in iwl_sar_geo_init()
955 IWL_DEBUG_RADIO(fwrt, in iwl_sar_geo_init()
958 fwrt->geo_profiles[i].bands[j].chains[0], in iwl_sar_geo_init()
959 fwrt->geo_profiles[i].bands[j].chains[1], in iwl_sar_geo_init()
960 fwrt->geo_profiles[i].bands[j].max); in iwl_sar_geo_init()
968 __le32 iwl_acpi_get_lari_config_bitmap(struct iwl_fw_runtime *fwrt) in iwl_acpi_get_lari_config_bitmap() argument
977 ret = iwl_acpi_get_dsm_u8(fwrt->dev, 0, in iwl_acpi_get_lari_config_bitmap()
988 ret = iwl_acpi_get_dsm_u8(fwrt->dev, 0, in iwl_acpi_get_lari_config_bitmap()
1004 int iwl_acpi_get_ppag_table(struct iwl_fw_runtime *fwrt) in iwl_acpi_get_ppag_table() argument
1010 fwrt->ppag_flags = 0; in iwl_acpi_get_ppag_table()
1012 data = iwl_acpi_get_object(fwrt->dev, ACPI_PPAG_METHOD); in iwl_acpi_get_ppag_table()
1017 wifi_pkg = iwl_acpi_get_wifi_pkg(fwrt->dev, data, in iwl_acpi_get_ppag_table()
1023 IWL_DEBUG_RADIO(fwrt, in iwl_acpi_get_ppag_table()
1034 wifi_pkg = iwl_acpi_get_wifi_pkg(fwrt->dev, data, in iwl_acpi_get_ppag_table()
1043 IWL_DEBUG_RADIO(fwrt, "Reading PPAG table v1 (tbl_rev=0)\n"); in iwl_acpi_get_ppag_table()
1048 fwrt->ppag_ver = tbl_rev; in iwl_acpi_get_ppag_table()
1056 fwrt->ppag_flags = flags->integer.value & ACPI_PPAG_MASK; in iwl_acpi_get_ppag_table()
1058 if (!fwrt->ppag_flags) { in iwl_acpi_get_ppag_table()
1078 fwrt->ppag_chains[i].subbands[j] = ent->integer.value; in iwl_acpi_get_ppag_table()
1081 (fwrt->ppag_chains[i].subbands[j] > ACPI_PPAG_MAX_LB || in iwl_acpi_get_ppag_table()
1082 fwrt->ppag_chains[i].subbands[j] < ACPI_PPAG_MIN_LB)) || in iwl_acpi_get_ppag_table()
1084 (fwrt->ppag_chains[i].subbands[j] > ACPI_PPAG_MAX_HB || in iwl_acpi_get_ppag_table()
1085 fwrt->ppag_chains[i].subbands[j] < ACPI_PPAG_MIN_HB))) { in iwl_acpi_get_ppag_table()
1086 fwrt->ppag_flags = 0; in iwl_acpi_get_ppag_table()
1102 int iwl_read_ppag_table(struct iwl_fw_runtime *fwrt, union iwl_ppag_table_cmd *cmd, in iwl_read_ppag_table() argument
1110 if (CSR_HW_RFID_TYPE(fwrt->trans->hw_rf_id) == in iwl_read_ppag_table()
1114 if (!fw_has_capa(&fwrt->fw->ucode_capa, IWL_UCODE_TLV_CAPA_SET_PPAG)) { in iwl_read_ppag_table()
1115 IWL_DEBUG_RADIO(fwrt, in iwl_read_ppag_table()
1119 if (!fwrt->ppag_flags) { in iwl_read_ppag_table()
1120 IWL_DEBUG_RADIO(fwrt, "PPAG not enabled, command not sent.\n"); in iwl_read_ppag_table()
1127 cmd->v1.flags = cpu_to_le32(fwrt->ppag_flags); in iwl_read_ppag_table()
1128 cmd_ver = iwl_fw_lookup_cmd_ver(fwrt->fw, in iwl_read_ppag_table()
1135 if (fwrt->ppag_ver == 1 || fwrt->ppag_ver == 2) { in iwl_read_ppag_table()
1136 IWL_DEBUG_RADIO(fwrt, in iwl_read_ppag_table()
1138 fwrt->ppag_ver); in iwl_read_ppag_table()
1145 if (fwrt->ppag_ver == 0) { in iwl_read_ppag_table()
1146 IWL_DEBUG_RADIO(fwrt, in iwl_read_ppag_table()
1148 } else if (cmd_ver == 2 && fwrt->ppag_ver == 2) { in iwl_read_ppag_table()
1149 IWL_DEBUG_RADIO(fwrt, in iwl_read_ppag_table()
1154 IWL_DEBUG_RADIO(fwrt, "Unsupported PPAG command version\n"); in iwl_read_ppag_table()
1161 fwrt->ppag_chains[i].subbands[j]; in iwl_read_ppag_table()
1162 IWL_DEBUG_RADIO(fwrt, in iwl_read_ppag_table()
1172 bool iwl_acpi_is_ppag_approved(struct iwl_fw_runtime *fwrt) in iwl_acpi_is_ppag_approved() argument
1176 IWL_DEBUG_RADIO(fwrt, in iwl_acpi_is_ppag_approved()
1179 fwrt->ppag_flags = 0; in iwl_acpi_is_ppag_approved()