Lines Matching refs:length
96 u16 offset, u16 length, const u8 *data) in iwl_nvm_write_chunk() argument
100 .length = cpu_to_le16(length), in iwl_nvm_write_chunk()
106 .len = { sizeof(struct iwl_nvm_access_cmd), length }, in iwl_nvm_write_chunk()
117 u16 offset, u16 length, u8 *data) in iwl_nvm_read_chunk() argument
121 .length = cpu_to_le16(length), in iwl_nvm_read_chunk()
146 bytes_read = le16_to_cpu(nvm_resp->length); in iwl_nvm_read_chunk()
190 const u8 *data, u16 length) in iwl_nvm_write_section() argument
196 while (offset < length) { in iwl_nvm_write_section()
200 length - offset); in iwl_nvm_write_section()
226 u16 length, offset = 0; in iwl_nvm_read_section() local
230 length = IWL_NVM_DEFAULT_CHUNK_SIZE; in iwl_nvm_read_section()
232 ret = length; in iwl_nvm_read_section()
235 while (ret == length) { in iwl_nvm_read_section()
237 if ((size_read + offset + length) > in iwl_nvm_read_section()
243 ret = iwl_nvm_read_chunk(mvm, section, offset, length, data); in iwl_nvm_read_section()
247 section, offset, length); in iwl_nvm_read_section()
488 mvm->nvm_sections[section_id].length = section_size; in iwl_mvm_read_external_nvm()
507 if (!mvm->nvm_sections[i].data || !mvm->nvm_sections[i].length) in iwl_mvm_load_nvm_to_nic()
510 sections[i].length); in iwl_mvm_load_nvm_to_nic()
552 mvm->nvm_sections[section].length = ret; in iwl_nvm_init()