Lines Matching refs:section
34 static int iwl_nvm_write_chunk(struct iwl_mvm *mvm, u16 section,
40 .type = cpu_to_le16(section),
64 "NVM access write command failed for section %u (status = 0x%x)\n",
65 section, le16_to_cpu(nvm_resp->status));
73 static int iwl_nvm_read_chunk(struct iwl_mvm *mvm, u16 section,
79 .type = cpu_to_le16(section),
118 "NVM access command failed on offset 0x%x since that section size is multiple 2K\n",
146 static int iwl_nvm_write_section(struct iwl_mvm *mvm, u16 section,
159 ret = iwl_nvm_write_chunk(mvm, section, offset,
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,
186 /* Set nvm section read length */
200 ret = iwl_nvm_read_chunk(mvm, section, offset, length, data);
203 "Cannot read NVM from section %d offset %d, length %d\n",
204 section, offset, length);
210 iwl_nvm_fixups(mvm->trans->hw_id, section, data, offset);
213 "NVM section %d read completed\n", section);
247 /* MAC_OVERRIDE or at least HW section must exist */
255 /* PHY_SKU section is mandatory in B0 */
309 int ret, section;
325 for (section = 0; section < NVM_MAX_NUM_SECTIONS; section++) {
327 ret = iwl_nvm_read_section(mvm, section, nvm_buffer,
342 iwl_nvm_fixups(mvm->trans->hw_id, section, temp, ret);
344 mvm->nvm_sections[section].data = temp;
345 mvm->nvm_sections[section].length = ret;
348 switch (section) {
371 if (section == mvm->cfg->nvm_hw_section_num) {