Lines Matching refs:nvm
1887 struct iwl_nvm_data *nvm; in iwl_get_nvm() local
1928 nvm = kzalloc(struct_size(nvm, channels, IWL_NUM_CHANNELS), GFP_KERNEL); in iwl_get_nvm()
1929 if (!nvm) { in iwl_get_nvm()
1934 iwl_set_hw_address_from_csr(trans, nvm); in iwl_get_nvm()
1937 if (!is_valid_ether_addr(nvm->hw_addr)) { in iwl_get_nvm()
1943 IWL_INFO(trans, "base HW address: %pM\n", nvm->hw_addr); in iwl_get_nvm()
1946 nvm->nvm_version = le16_to_cpu(rsp->general.nvm_version); in iwl_get_nvm()
1947 nvm->n_hw_addrs = rsp->general.n_hw_addrs; in iwl_get_nvm()
1948 if (nvm->n_hw_addrs == 0) in iwl_get_nvm()
1955 nvm->sku_cap_11ac_enable = in iwl_get_nvm()
1957 nvm->sku_cap_11n_enable = in iwl_get_nvm()
1959 nvm->sku_cap_11ax_enable = in iwl_get_nvm()
1961 nvm->sku_cap_band_24ghz_enable = in iwl_get_nvm()
1963 nvm->sku_cap_band_52ghz_enable = in iwl_get_nvm()
1965 nvm->sku_cap_mimo_disabled = in iwl_get_nvm()
1968 nvm->sku_cap_11be_enable = true; in iwl_get_nvm()
1971 nvm->valid_tx_ant = (u8)le32_to_cpu(rsp->phy_sku.tx_chains); in iwl_get_nvm()
1972 nvm->valid_rx_ant = (u8)le32_to_cpu(rsp->phy_sku.rx_chains); in iwl_get_nvm()
1977 nvm->lar_enabled = true; in iwl_get_nvm()
1985 iwl_init_sbands(trans, nvm, in iwl_get_nvm()
1987 nvm->valid_tx_ant & fw->valid_tx_ant, in iwl_get_nvm()
1988 nvm->valid_rx_ant & fw->valid_rx_ant, in iwl_get_nvm()
1992 return nvm; in iwl_get_nvm()
1995 kfree(nvm); in iwl_get_nvm()