Lines Matching refs:fwrt
328 struct iwl_fw_runtime *fwrt)
335 memcpy(fwrt->sgom_table.offset_map, sgom_data->offset_map,
336 sizeof(fwrt->sgom_table.offset_map));
343 u8 value = fwrt->sgom_table.offset_map[i][j];
347 if (high > fwrt->geo_num_profiles)
349 if (low > fwrt->geo_num_profiles)
351 fwrt->sgom_table.offset_map[i][j] = (high << 4) | low;
355 fwrt->sgom_enabled = true;
360 struct iwl_fw_runtime *fwrt)
365 if (!fwrt->geo_enabled)
373 ret = iwl_uefi_sgom_parse(data, fwrt);
382 struct iwl_fw_runtime *fwrt)
387 memcpy(fwrt->uats_table.offset_map, uats_data->offset_map,
388 sizeof(fwrt->uats_table.offset_map));
393 struct iwl_fw_runtime *fwrt)
403 ret = iwl_uefi_uats_parse(data, fwrt);
415 static void iwl_uefi_set_sar_profile(struct iwl_fw_runtime *fwrt,
419 memcpy(&fwrt->sar_profiles[prof_index].chains, uefi_sar_prof,
422 fwrt->sar_profiles[prof_index].enabled = enabled & IWL_SAR_ENABLE_MSK;
425 int iwl_uefi_get_wrds_table(struct iwl_fw_runtime *fwrt)
430 data = iwl_uefi_get_verified_variable(fwrt->trans, IWL_UEFI_WRDS_NAME,
437 IWL_DEBUG_RADIO(fwrt, "Unsupported UEFI WRDS revision:%d\n",
445 iwl_uefi_set_sar_profile(fwrt, &data->sar_profile, 0, data->mode);
451 int iwl_uefi_get_ewrd_table(struct iwl_fw_runtime *fwrt)
456 data = iwl_uefi_get_verified_variable(fwrt->trans, IWL_UEFI_EWRD_NAME,
463 IWL_DEBUG_RADIO(fwrt, "Unsupported UEFI EWRD revision:%d\n",
478 iwl_uefi_set_sar_profile(fwrt, &data->sar_profiles[i], i + 1,
486 int iwl_uefi_get_wgds_table(struct iwl_fw_runtime *fwrt)
491 data = iwl_uefi_get_verified_variable(fwrt->trans, IWL_UEFI_WGDS_NAME,
498 IWL_DEBUG_RADIO(fwrt, "Unsupported UEFI WGDS revision:%d\n",
506 IWL_DEBUG_RADIO(fwrt, "Invalid number of profiles in WGDS: %d\n",
511 fwrt->geo_rev = data->revision;
513 memcpy(&fwrt->geo_profiles[i], &data->geo_profiles[i],
516 fwrt->geo_num_profiles = data->num_profiles;
517 fwrt->geo_enabled = true;
523 int iwl_uefi_get_ppag_table(struct iwl_fw_runtime *fwrt)
528 data = iwl_uefi_get_verified_variable(fwrt->trans, IWL_UEFI_PPAG_NAME,
536 IWL_DEBUG_RADIO(fwrt, "Unsupported UEFI PPAG revision:%d\n",
541 fwrt->ppag_ver = data->revision;
542 fwrt->ppag_flags = iwl_bios_get_ppag_flags(data->ppag_modes,
543 fwrt->ppag_ver);
545 BUILD_BUG_ON(sizeof(fwrt->ppag_chains) != sizeof(data->ppag_chains));
546 memcpy(&fwrt->ppag_chains, &data->ppag_chains,
553 int iwl_uefi_get_tas_table(struct iwl_fw_runtime *fwrt,
559 uefi_tas = iwl_uefi_get_verified_variable(fwrt->trans, IWL_UEFI_WTAS_NAME,
566 IWL_DEBUG_RADIO(fwrt, "Unsupported UEFI WTAS revision:%d\n",
571 enabled = iwl_parse_tas_selection(fwrt, tas_data,
574 IWL_DEBUG_RADIO(fwrt, "TAS not enabled\n");
579 IWL_DEBUG_RADIO(fwrt, "Reading TAS table revision %d\n",
582 IWL_DEBUG_RADIO(fwrt, "TAS invalid array size %d\n",
588 IWL_DEBUG_RADIO(fwrt, "TAS array size %u\n", uefi_tas->black_list_size);
593 IWL_DEBUG_RADIO(fwrt, "TAS block list country %d\n",
601 int iwl_uefi_get_pwr_limit(struct iwl_fw_runtime *fwrt,
607 data = iwl_uefi_get_verified_variable(fwrt->trans, IWL_UEFI_SPLC_NAME,
614 IWL_DEBUG_RADIO(fwrt, "Unsupported UEFI SPLC revision:%d\n",
624 int iwl_uefi_get_mcc(struct iwl_fw_runtime *fwrt, char *mcc)
629 data = iwl_uefi_get_verified_variable(fwrt->trans, IWL_UEFI_WRDD_NAME,
636 IWL_DEBUG_RADIO(fwrt, "Unsupported UEFI WRDD revision:%d\n",
643 IWL_DEBUG_RADIO(fwrt, "UEFI WRDD is supported only for CN\n");
655 int iwl_uefi_get_eckv(struct iwl_fw_runtime *fwrt, u32 *extl_clk)
660 data = iwl_uefi_get_verified_variable(fwrt->trans, IWL_UEFI_ECKV_NAME,
667 IWL_DEBUG_RADIO(fwrt, "Unsupported UEFI WRDD revision:%d\n",
677 int iwl_uefi_get_wbem(struct iwl_fw_runtime *fwrt, u32 *value)
682 data = iwl_uefi_get_verified_variable(fwrt->trans, IWL_UEFI_WBEM_NAME,
689 IWL_DEBUG_RADIO(fwrt, "Unsupported UEFI WBEM revision:%d\n",
694 IWL_DEBUG_RADIO(fwrt, "Loaded WBEM config from UEFI\n");
700 int iwl_uefi_get_dsm(struct iwl_fw_runtime *fwrt, enum iwl_dsm_funcs func,
710 data = iwl_uefi_get_verified_variable(fwrt->trans, IWL_UEFI_DSM_NAME,
716 IWL_DEBUG_RADIO(fwrt, "Unsupported UEFI DSM revision:%d\n",
722 IWL_DEBUG_RADIO(fwrt, "Invalid size of DSM functions array\n");