Lines Matching refs:chunk_idx
231 uint32_t chunk_idx = 0; in eeprom_xec_read() local
247 for (chunk_idx = 0; chunk_idx < len; chunk_idx += XEC_EEPROM_TRANSFER_SIZE_READ) { in eeprom_xec_read()
248 if ((len-chunk_idx) < XEC_EEPROM_TRANSFER_SIZE_READ) { in eeprom_xec_read()
249 chunk_size = (len-chunk_idx); in eeprom_xec_read()
251 eeprom_xec_data_read_32_bytes(regs, &data_buf[chunk_idx], in eeprom_xec_read()
252 chunk_size, (offset+chunk_idx)); in eeprom_xec_read()
267 uint32_t chunk_idx = 0; in eeprom_xec_write() local
283 for (chunk_idx = 0; chunk_idx < len; chunk_idx += XEC_EEPROM_TRANSFER_SIZE_WRITE) { in eeprom_xec_write()
284 if ((len-chunk_idx) < XEC_EEPROM_TRANSFER_SIZE_WRITE) { in eeprom_xec_write()
285 chunk_size = (len-chunk_idx); in eeprom_xec_write()
287 eeprom_xec_data_write_32_bytes(regs, &data_buf[chunk_idx], in eeprom_xec_write()
288 chunk_size, (offset+chunk_idx)); in eeprom_xec_write()