Lines Matching refs:trans

57 void *iwl_uefi_get_pnvm(struct iwl_trans *trans, size_t *len)
67 IWL_DEBUG_FW(trans,
73 IWL_DEBUG_FW(trans, "Read PNVM from UEFI with size %lu\n", package_size);
80 void *iwl_uefi_get_verified_variable(struct iwl_trans *trans,
93 IWL_DEBUG_RADIO(trans,
100 IWL_DEBUG_RADIO(trans,
107 IWL_DEBUG_RADIO(trans, "%s from UEFI with size %lu\n", var_name,
115 int iwl_uefi_handle_tlv_mem_desc(struct iwl_trans *trans, const u8 *data,
122 IWL_DEBUG_FW(trans, "TLV len (%d) is too small\n", tlv_len);
128 IWL_DEBUG_FW(trans,
133 IWL_DEBUG_FW(trans, "invalid mem desc size %d\n", desc->size);
138 IWL_DEBUG_FW(trans, "too many payloads to allocate in DRAM.\n");
142 IWL_DEBUG_FW(trans, "Adding data (size %d)\n", data_len);
151 static int iwl_uefi_reduce_power_section(struct iwl_trans *trans,
157 IWL_DEBUG_FW(trans, "Handling REDUCE_POWER section\n");
170 IWL_ERR(trans, "invalid TLV len: %zd/%u\n",
179 if (iwl_uefi_handle_tlv_mem_desc(trans, data, tlv_len,
184 IWL_DEBUG_FW(trans,
188 IWL_DEBUG_FW(trans, "Found TLV 0x%0x, len %d\n",
199 IWL_DEBUG_FW(trans, "Empty REDUCE_POWER, skipping.\n");
205 int iwl_uefi_reduce_power_parse(struct iwl_trans *trans,
211 IWL_DEBUG_FW(trans, "Parsing REDUCE_POWER data\n");
223 IWL_ERR(trans, "invalid TLV len: %zd/%u\n",
232 IWL_DEBUG_FW(trans,
235 IWL_DEBUG_FW(trans, "sku_id 0x%0x 0x%0x 0x%0x\n",
243 if (trans->sku_id[0] == le32_to_cpu(sku_id->data[0]) &&
244 trans->sku_id[1] == le32_to_cpu(sku_id->data[1]) &&
245 trans->sku_id[2] == le32_to_cpu(sku_id->data[2])) {
246 int ret = iwl_uefi_reduce_power_section(trans,
252 IWL_DEBUG_FW(trans, "SKU ID didn't match!\n");
263 u8 *iwl_uefi_get_reduced_power(struct iwl_trans *trans, size_t *len)
269 package = iwl_uefi_get_verified_variable(trans,
277 IWL_DEBUG_FW(trans, "rev %d, total_size %d, n_skus %d\n",
293 struct iwl_trans *trans)
298 trans->mbx_addr_0_step = (u32)common_step_data->revision |
302 trans->mbx_addr_1_step = (u32)common_step_data->radio2;
306 void iwl_uefi_get_step_table(struct iwl_trans *trans)
311 if (trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_AX210)
314 data = iwl_uefi_get_verified_variable(trans, IWL_UEFI_STEP_NAME,
319 ret = iwl_uefi_step_parse(data, trans);
321 IWL_DEBUG_FW(trans, "Cannot read STEP tables. rev is invalid\n");
359 void iwl_uefi_get_sgom_table(struct iwl_trans *trans,
368 data = iwl_uefi_get_verified_variable(trans, IWL_UEFI_SGOM_NAME,
375 IWL_DEBUG_FW(trans, "Cannot read SGOM tables. rev is invalid\n");
392 int iwl_uefi_get_uats_table(struct iwl_trans *trans,
398 data = iwl_uefi_get_verified_variable(trans, IWL_UEFI_UATS_NAME,
405 IWL_DEBUG_FW(trans, "Cannot read UATS table. rev is invalid\n");
430 data = iwl_uefi_get_verified_variable(fwrt->trans, IWL_UEFI_WRDS_NAME,
456 data = iwl_uefi_get_verified_variable(fwrt->trans, IWL_UEFI_EWRD_NAME,
491 data = iwl_uefi_get_verified_variable(fwrt->trans, IWL_UEFI_WGDS_NAME,
528 data = iwl_uefi_get_verified_variable(fwrt->trans, IWL_UEFI_PPAG_NAME,
559 uefi_tas = iwl_uefi_get_verified_variable(fwrt->trans, IWL_UEFI_WTAS_NAME,
607 data = iwl_uefi_get_verified_variable(fwrt->trans, IWL_UEFI_SPLC_NAME,
629 data = iwl_uefi_get_verified_variable(fwrt->trans, IWL_UEFI_WRDD_NAME,
660 data = iwl_uefi_get_verified_variable(fwrt->trans, IWL_UEFI_ECKV_NAME,
682 data = iwl_uefi_get_verified_variable(fwrt->trans, IWL_UEFI_WBEM_NAME,
710 data = iwl_uefi_get_verified_variable(fwrt->trans, IWL_UEFI_DSM_NAME,