Lines Matching refs:section
33 static int iwl_nvm_write_chunk(struct iwl_mvm *mvm, u16 section,
39 .type = cpu_to_le16(section),
63 "NVM access write command failed for section %u (status = 0x%x)\n",
64 section, le16_to_cpu(nvm_resp->status));
72 static int iwl_nvm_read_chunk(struct iwl_mvm *mvm, u16 section,
78 .type = cpu_to_le16(section),
117 "NVM access command failed on offset 0x%x since that section size is multiple 2K\n",
145 static int iwl_nvm_write_section(struct iwl_mvm *mvm, u16 section,
158 ret = iwl_nvm_write_chunk(mvm, section, offset,
170 * Reads an NVM section completely.
172 * section 0 which is the EEPROM. Because the EEPROM reading is unlimited
179 static int iwl_nvm_read_section(struct iwl_mvm *mvm, u16 section,
185 /* Set nvm section read length */
199 ret = iwl_nvm_read_chunk(mvm, section, offset, length, data);
202 "Cannot read NVM from section %d offset %d, length %d\n",
203 section, offset, length);
209 iwl_nvm_fixups(mvm->trans->info.hw_id, section, data, offset);
212 "NVM section %d read completed\n", section);
246 /* MAC_OVERRIDE or at least HW section must exist */
254 /* PHY_SKU section is mandatory in B0 */
308 int ret, section;
323 for (section = 0; section < NVM_MAX_NUM_SECTIONS; section++) {
325 ret = iwl_nvm_read_section(mvm, section, nvm_buffer,
340 iwl_nvm_fixups(mvm->trans->info.hw_id, section, temp, ret);
342 mvm->nvm_sections[section].data = temp;
343 mvm->nvm_sections[section].length = ret;
346 switch (section) {
369 if (section == mvm->trans->mac_cfg->base->nvm_hw_section_num) {