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()
152 bytes_read = le16_to_cpu(nvm_resp->length); in iwl_nvm_read_chunk()
196 const u8 *data, u16 length) in iwl_nvm_write_section() argument
202 while (offset < length) { in iwl_nvm_write_section()
206 length - offset); in iwl_nvm_write_section()
232 u16 length, offset = 0; in iwl_nvm_read_section() local
236 length = IWL_NVM_DEFAULT_CHUNK_SIZE; in iwl_nvm_read_section()
238 ret = length; in iwl_nvm_read_section()
241 while (ret == length) { in iwl_nvm_read_section()
243 if ((size_read + offset + length) > in iwl_nvm_read_section()
249 ret = iwl_nvm_read_chunk(mvm, section, offset, length, data); in iwl_nvm_read_section()
253 section, offset, length); in iwl_nvm_read_section()
492 mvm->nvm_sections[section_id].length = section_size; in iwl_mvm_read_external_nvm()
511 if (!mvm->nvm_sections[i].data || !mvm->nvm_sections[i].length) in iwl_mvm_load_nvm_to_nic()
514 sections[i].length); in iwl_mvm_load_nvm_to_nic()
556 mvm->nvm_sections[section].length = ret; in iwl_nvm_init()