Lines Matching defs:trans

394 static int iwl_init_channel_map(struct iwl_trans *trans,
400 const struct iwl_cfg *cfg = trans->cfg;
401 struct device *dev = trans->dev;
496 static void iwl_init_vht_hw_capab(struct iwl_trans *trans,
501 const struct iwl_cfg *cfg = trans->cfg;
514 if (!trans->cfg->ht_params->stbc)
532 if (trans->cfg->ht_params->stbc && num_tx_ants > 1)
539 if (trans->trans_cfg->mq_rx_supported)
546 if (trans->trans_cfg->mq_rx_supported)
858 static void iwl_init_he_6ghz_capa(struct iwl_trans *trans,
874 iwl_init_ht_hw_capab(trans, data, &ht_cap, NL80211_BAND_5GHZ,
877 iwl_init_vht_hw_capab(trans, data, &vht_cap, tx_chains, rx_chains);
896 IWL_DEBUG_EEPROM(trans->dev, "he_6ghz_capa=0x%x\n", he_6ghz_capa);
905 iwl_nvm_fixup_sband_iftd(struct iwl_trans *trans,
916 no_320 = (!trans->trans_cfg->integrated &&
917 trans->pcie_link_speed < PCI_EXP_LNKSTA_CLS_8_0GB) ||
918 trans->reduced_cap_sku;
1024 if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210 && !is_ap)
1028 switch (CSR_HW_RFID_TYPE(trans->hw_rf_id)) {
1040 if (CSR_HW_REV_TYPE(trans->hw_rev) == IWL_CFG_MAC_TYPE_GL &&
1069 if (trans->trans_cfg->device_family == IWL_DEVICE_FAMILY_22000 &&
1075 if (!trans->cfg->ht_params->stbc) {
1082 if (trans->step_urm) {
1087 if (trans->no_160)
1091 if (trans->reduced_cap_sku) {
1103 static void iwl_init_he_hw_capab(struct iwl_trans *trans,
1137 iwl_nvm_fixup_sband_iftd(trans, data, sband, &iftype_data[i],
1140 iwl_init_he_6ghz_capa(trans, data, sband, tx_chains, rx_chains);
1143 void iwl_reinit_cab(struct iwl_trans *trans, struct iwl_nvm_data *data,
1149 iwl_init_ht_hw_capab(trans, data, &sband->ht_cap, NL80211_BAND_2GHZ,
1153 iwl_init_he_hw_capab(trans, data, sband, tx_chains, rx_chains,
1157 iwl_init_ht_hw_capab(trans, data, &sband->ht_cap, NL80211_BAND_5GHZ,
1160 iwl_init_vht_hw_capab(trans, data, &sband->vht_cap,
1164 iwl_init_he_hw_capab(trans, data, sband, tx_chains, rx_chains,
1169 iwl_init_he_hw_capab(trans, data, sband, tx_chains, rx_chains,
1174 static void iwl_init_sbands(struct iwl_trans *trans,
1180 struct device *dev = trans->dev;
1185 n_channels = iwl_init_channel_map(trans, fw, data, nvm_ch_flags,
1193 iwl_init_ht_hw_capab(trans, data, &sband->ht_cap, NL80211_BAND_2GHZ,
1197 iwl_init_he_hw_capab(trans, data, sband, tx_chains, rx_chains,
1206 iwl_init_ht_hw_capab(trans, data, &sband->ht_cap, NL80211_BAND_5GHZ,
1209 iwl_init_vht_hw_capab(trans, data, &sband->vht_cap,
1213 iwl_init_he_hw_capab(trans, data, sband, tx_chains, rx_chains,
1226 iwl_init_he_hw_capab(trans, data, sband, tx_chains, rx_chains,
1311 static void iwl_set_hw_address_from_csr(struct iwl_trans *trans,
1314 __le32 mac_addr0 = cpu_to_le32(iwl_read32(trans,
1315 CSR_MAC_ADDR0_STRAP(trans)));
1316 __le32 mac_addr1 = cpu_to_le32(iwl_read32(trans,
1317 CSR_MAC_ADDR1_STRAP(trans)));
1327 mac_addr0 = cpu_to_le32(iwl_read32(trans, CSR_MAC_ADDR0_OTP(trans)));
1328 mac_addr1 = cpu_to_le32(iwl_read32(trans, CSR_MAC_ADDR1_OTP(trans)));
1333 static void iwl_set_hw_address_family_8000(struct iwl_trans *trans,
1363 IWL_ERR(trans,
1369 __le32 mac_addr0 = cpu_to_le32(iwl_trans_read_prph(trans,
1371 __le32 mac_addr1 = cpu_to_le32(iwl_trans_read_prph(trans,
1379 IWL_ERR(trans, "mac address is not found\n");
1382 static int iwl_set_hw_address(struct iwl_trans *trans,
1388 iwl_set_hw_address_from_csr(trans, data);
1400 iwl_set_hw_address_family_8000(trans, cfg, data,
1405 IWL_ERR(trans, "no valid mac address was found\n");
1409 if (!trans->csme_own)
1411 IWL_INFO(trans, "base HW address: %pM, OTP minor version: 0x%x\n",
1412 data->hw_addr, iwl_read_prph(trans, REG_OTP_MINOR));
1414 IWL_INFO(trans, "base HW address: %6D, OTP minor version: 0x%x\n",
1415 data->hw_addr, ":", iwl_read_prph(trans, REG_OTP_MINOR));
1422 iwl_nvm_no_wide_in_5ghz(struct iwl_trans *trans, const struct iwl_cfg *cfg,
1434 if (trans->trans_cfg->device_family == IWL_DEVICE_FAMILY_7000) {
1443 IWL_DEBUG_EEPROM(trans->dev,
1454 iwl_parse_mei_nvm_data(struct iwl_trans *trans, const struct iwl_cfg *cfg,
1501 if (iwl_set_hw_address(trans, cfg, data, NULL, NULL)) {
1510 iwl_init_sbands(trans, data, mei_nvm->channels, tx_chains, rx_chains,
1518 iwl_parse_nvm_data(struct iwl_trans *trans, const struct iwl_cfg *cfg,
1571 IWL_ERR(trans,
1595 if (iwl_set_hw_address(trans, cfg, data, nvm_hw, mac_override)) {
1604 if (iwl_nvm_no_wide_in_5ghz(trans, cfg, nvm_hw))
1607 iwl_init_sbands(trans, data, ch_section, tx_chains, rx_chains,
1913 int iwl_read_external_nvm(struct iwl_trans *trans,
1938 IWL_DEBUG_EEPROM(trans->dev, "Read from external NVM\n");
1941 if (trans->cfg->nvm_type != IWL_NVM_EXT)
1952 ret = request_firmware(&fw_entry, nvm_file_name, trans->dev);
1954 IWL_ERR(trans, "ERROR: %s isn't available %d\n",
1959 IWL_INFO(trans, "Loaded NVM file %s (%zu bytes)\n",
1963 IWL_ERR(trans, "NVM file too large\n");
1982 IWL_INFO(trans, "NVM Version %08X\n", le32_to_cpu(dword_buff[2]));
1983 IWL_INFO(trans, "NVM Manufacturing date %08X\n",
1987 if (trans->trans_cfg->device_family == IWL_DEVICE_FAMILY_8000 &&
1988 trans->hw_rev_step == SILICON_C_STEP &&
1999 IWL_ERR(trans,
2011 if (trans->cfg->nvm_type != IWL_NVM_EXT) {
2023 IWL_ERR(trans, "ERROR - section too large (%d)\n",
2030 IWL_ERR(trans, "ERROR - section empty\n");
2036 IWL_ERR(trans,
2055 iwl_nvm_fixups(trans->hw_id, section_id, temp, section_size);
2070 struct iwl_nvm_data *iwl_get_nvm(struct iwl_trans *trans,
2102 ret = iwl_trans_send_cmd(trans, &hcmd);
2117 IWL_INFO(trans, "OTP is empty\n");
2125 iwl_set_hw_address_from_csr(trans, nvm);
2129 IWL_ERR(trans, "no valid mac address was found\n");
2135 IWL_INFO(trans, "base HW address: %pM\n", nvm->hw_addr);
2137 IWL_INFO(trans, "base HW address: %6D\n", nvm->hw_addr, ":");
2144 IWL_WARN(trans,
2162 if (CSR_HW_RFID_TYPE(trans->hw_rf_id) >= IWL_CFG_RF_TYPE_FM)
2188 iwl_init_sbands(trans, nvm, channel_profile, tx_ant, rx_ant,