Lines Matching full:section

34 static int iwl_nvm_write_chunk(struct iwl_mvm *mvm, u16 section,  in iwl_nvm_write_chunk()  argument
40 .type = cpu_to_le16(section), in iwl_nvm_write_chunk()
64 "NVM access write command failed for section %u (status = 0x%x)\n", in iwl_nvm_write_chunk()
65 section, le16_to_cpu(nvm_resp->status)); in iwl_nvm_write_chunk()
73 static int iwl_nvm_read_chunk(struct iwl_mvm *mvm, u16 section, in iwl_nvm_read_chunk() argument
79 .type = cpu_to_le16(section), in iwl_nvm_read_chunk()
118 "NVM access command failed on offset 0x%x since that section size is multiple 2K\n", in iwl_nvm_read_chunk()
146 static int iwl_nvm_write_section(struct iwl_mvm *mvm, u16 section, in iwl_nvm_write_section() argument
159 ret = iwl_nvm_write_chunk(mvm, section, offset, in iwl_nvm_write_section()
171 * Reads an NVM section completely.
173 * section 0 which is the EEPROM. Because the EEPROM reading is unlimited
180 static int iwl_nvm_read_section(struct iwl_mvm *mvm, u16 section, in iwl_nvm_read_section() argument
186 /* Set nvm section read length */ in iwl_nvm_read_section()
200 ret = iwl_nvm_read_chunk(mvm, section, offset, length, data); in iwl_nvm_read_section()
203 "Cannot read NVM from section %d offset %d, length %d\n", in iwl_nvm_read_section()
204 section, offset, length); in iwl_nvm_read_section()
210 iwl_nvm_fixups(mvm->trans->hw_id, section, data, offset); in iwl_nvm_read_section()
213 "NVM section %d read completed\n", section); in iwl_nvm_read_section()
245 /* MAC_OVERRIDE or at least HW section must exist */ in iwl_parse_nvm_sections()
253 /* PHY_SKU section is mandatory in B0 */ in iwl_parse_nvm_sections()
301 int ret, section; in iwl_nvm_init() local
317 for (section = 0; section < NVM_MAX_NUM_SECTIONS; section++) { in iwl_nvm_init()
319 ret = iwl_nvm_read_section(mvm, section, nvm_buffer, in iwl_nvm_init()
334 iwl_nvm_fixups(mvm->trans->hw_id, section, temp, ret); in iwl_nvm_init()
336 mvm->nvm_sections[section].data = temp; in iwl_nvm_init()
337 mvm->nvm_sections[section].length = ret; in iwl_nvm_init()
340 switch (section) { in iwl_nvm_init()
363 if (section == mvm->cfg->nvm_hw_section_num) { in iwl_nvm_init()