Lines Matching full:section
91 static int iwl_nvm_write_chunk(struct iwl_mvm *mvm, u16 section, in iwl_nvm_write_chunk() argument
97 .type = cpu_to_le16(section), in iwl_nvm_write_chunk()
121 "NVM access write command failed for section %u (status = 0x%x)\n", in iwl_nvm_write_chunk()
122 section, le16_to_cpu(nvm_resp->status)); in iwl_nvm_write_chunk()
130 static int iwl_nvm_read_chunk(struct iwl_mvm *mvm, u16 section, in iwl_nvm_read_chunk() argument
136 .type = cpu_to_le16(section), in iwl_nvm_read_chunk()
175 "NVM access command failed on offset 0x%x since that section size is multiple 2K\n", in iwl_nvm_read_chunk()
203 static int iwl_nvm_write_section(struct iwl_mvm *mvm, u16 section, in iwl_nvm_write_section() argument
216 ret = iwl_nvm_write_chunk(mvm, section, offset, in iwl_nvm_write_section()
228 * Reads an NVM section completely.
230 * section 0 which is the EEPROM. Because the EEPROM reading is unlimited
237 static int iwl_nvm_read_section(struct iwl_mvm *mvm, u16 section, in iwl_nvm_read_section() argument
243 /* Set nvm section read length */ in iwl_nvm_read_section()
257 ret = iwl_nvm_read_chunk(mvm, section, offset, length, data); in iwl_nvm_read_section()
260 "Cannot read NVM from section %d offset %d, length %d\n", in iwl_nvm_read_section()
261 section, offset, length); in iwl_nvm_read_section()
267 iwl_nvm_fixups(mvm->trans->hw_id, section, data, offset); in iwl_nvm_read_section()
270 "NVM section %d read completed\n", section); in iwl_nvm_read_section()
303 /* MAC_OVERRIDE or at least HW section must exist */ in iwl_parse_nvm_sections()
311 /* PHY_SKU section is mandatory in B0 */ in iwl_parse_nvm_sections()
363 int ret, section; in iwl_nvm_init() local
379 for (section = 0; section < NVM_MAX_NUM_SECTIONS; section++) { in iwl_nvm_init()
381 ret = iwl_nvm_read_section(mvm, section, nvm_buffer, in iwl_nvm_init()
396 iwl_nvm_fixups(mvm->trans->hw_id, section, temp, ret); in iwl_nvm_init()
398 mvm->nvm_sections[section].data = temp; in iwl_nvm_init()
399 mvm->nvm_sections[section].length = ret; in iwl_nvm_init()
402 switch (section) { in iwl_nvm_init()
425 if (section == mvm->cfg->nvm_hw_section_num) { in iwl_nvm_init()