Lines Matching refs:off_t
77 off_t flash_offset;
92 off_t write_offset;
94 off_t page_offset;
102 const off_t address; /* eeprom address */
109 static inline int eeprom_emu_flash_read(const struct device *dev, off_t offset, in eeprom_emu_flash_read()
121 static inline int eeprom_emu_flash_write(const struct device *dev, off_t offset, in eeprom_emu_flash_write()
136 static inline int eeprom_emu_flash_erase(const struct device *dev, off_t offset, in eeprom_emu_flash_erase()
150 static int eeprom_emu_page_invalidate(const struct device *dev, off_t offset) in eeprom_emu_page_invalidate()
230 static int eeprom_emu_word_read(const struct device *dev, off_t address, in eeprom_emu_word_read()
236 off_t direct_address; in eeprom_emu_word_read()
248 off_t offset, ch_address; in eeprom_emu_word_read()
283 off_t address = ctx->address + ctx->len - ctx->rlen; in eeprom_emu_flash_get()
286 const off_t addr_jmp = address & (sizeof(buf) - 1); in eeprom_emu_flash_get()
313 off_t next_page_offset; in eeprom_emu_compactor()
350 off_t rd_offset = 0; in eeprom_emu_compactor()
370 off_t address, addr_jmp; in eeprom_emu_compactor()
415 static int eeprom_emu_word_write(const struct device *dev, off_t address, in eeprom_emu_word_write()
422 off_t direct_address, wraddr; in eeprom_emu_word_write()
485 off_t address = ctx->address + ctx->len - ctx->rlen; in eeprom_emu_flash_set()
488 const off_t addr_jmp = address & (sizeof(buf) - 1); in eeprom_emu_flash_set()
512 static int eeprom_emu_range_is_valid(const struct device *dev, off_t address, in eeprom_emu_range_is_valid()
524 static int eeprom_emu_read(const struct device *dev, off_t address, void *data, in eeprom_emu_read()
575 static int eeprom_emu_write(const struct device *dev, off_t address, in eeprom_emu_write()
643 off_t offset; in eeprom_emu_init()