Lines Matching defs:section
35 static int iwl_nvm_write_chunk(struct iwl_mvm *mvm, u16 section,
41 .type = cpu_to_le16(section),
65 "NVM access write command failed for section %u (status = 0x%x)\n",
66 section, le16_to_cpu(nvm_resp->status));
74 static int iwl_nvm_read_chunk(struct iwl_mvm *mvm, u16 section,
80 .type = cpu_to_le16(section),
119 "NVM access command failed on offset 0x%x since that section size is multiple 2K\n",
147 static int iwl_nvm_write_section(struct iwl_mvm *mvm, u16 section,
160 ret = iwl_nvm_write_chunk(mvm, section, offset,
172 * Reads an NVM section completely.
174 * section 0 which is the EEPROM. Because the EEPROM reading is unlimited
181 static int iwl_nvm_read_section(struct iwl_mvm *mvm, u16 section,
187 /* Set nvm section read length */
201 ret = iwl_nvm_read_chunk(mvm, section, offset, length, data);
204 "Cannot read NVM from section %d offset %d, length %d\n",
205 section, offset, length);
211 iwl_nvm_fixups(mvm->trans->hw_id, section, data, offset);
214 "NVM section %d read completed\n", section);
248 /* MAC_OVERRIDE or at least HW section must exist */
256 /* PHY_SKU section is mandatory in B0 */
310 int ret, section;
326 for (section = 0; section < NVM_MAX_NUM_SECTIONS; section++) {
328 ret = iwl_nvm_read_section(mvm, section, nvm_buffer,
343 iwl_nvm_fixups(mvm->trans->hw_id, section, temp, ret);
345 mvm->nvm_sections[section].data = temp;
346 mvm->nvm_sections[section].length = ret;
349 switch (section) {
372 if (section == mvm->cfg->nvm_hw_section_num) {