Lines Matching refs: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()
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()
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()
180 static int iwl_nvm_read_section(struct iwl_mvm *mvm, u16 section, in iwl_nvm_read_section() argument
200 ret = iwl_nvm_read_chunk(mvm, section, offset, length, data); 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()
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()