Home
last modified time | relevance | path

Searched refs:write_offset (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/drivers/flash/
Dsoc_flash_nios2_qspi.c189 uint32_t write_offset = mem_offset; /* offset into flash to write too */ in flash_nios2_qspi_write_block() local
208 if (0 != (write_offset & (NIOS2_WRITE_BLOCK_SIZE - 1))) { in flash_nios2_qspi_write_block()
213 padding = write_offset & (NIOS2_WRITE_BLOCK_SIZE - 1); in flash_nios2_qspi_write_block()
225 write_offset = write_offset - padding; in flash_nios2_qspi_write_block()
227 if (0 != (write_offset & in flash_nios2_qspi_write_block()
255 IOWR_32DIRECT(qspi_dev->data_base, write_offset, word_to_write); in flash_nios2_qspi_write_block()
272 write_offset = write_offset + NIOS2_WRITE_BLOCK_SIZE; in flash_nios2_qspi_write_block()
285 uint32_t write_offset = offset; /* address of next byte to write */ in flash_nios2_qspi_write() local
301 (0 != (write_offset & in flash_nios2_qspi_write()
320 block_offset = write_offset & ~(qspi_dev->sector_size - 1); in flash_nios2_qspi_write()
[all …]
Dflash_ifx_cat1.c80 uint32_t write_offset = dev_config->base_addr + (uint32_t)offset; in ifx_cat1_flash_write() local
96 rslt = cyhal_flash_write(&dev_data->flash_obj, write_offset, in ifx_cat1_flash_write()
99 LOG_ERR("Error in writing @ 0x%x (Err:0x%x)", write_offset, rslt); in ifx_cat1_flash_write()
105 write_offset += PAGE_LEN; in ifx_cat1_flash_write()
/Zephyr-latest/drivers/eeprom/
Deeprom_emulator.c92 off_t write_offset; member
251 offset = dev_data->write_offset; in eeprom_emu_word_read()
406 dev_data->write_offset = dev_config->size; in eeprom_emu_compactor()
457 dev_data->write_offset, tmp, in eeprom_emu_word_write()
463 dev_data->write_offset += sizeof(buf); in eeprom_emu_word_write()
464 if ((dev_data->write_offset + sizeof(buf)) >= in eeprom_emu_word_write()
655 dev_data->write_offset = dev_config->page_size - sizeof(buf); in eeprom_emu_init()
657 offset = dev_data->page_offset + dev_data->write_offset; in eeprom_emu_init()
675 dev_data->write_offset = dev_config->size; in eeprom_emu_init()
678 while ((dev_data->write_offset + sizeof(buf)) < dev_config->page_size) { in eeprom_emu_init()
[all …]