Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/subsys/fs/ext2/
Dext2_impl.c566 uint32_t block, block_off, offset = 0; in find_dir_entry() local
573 block_off = offset % fs->block_size; in find_dir_entry()
581 EXT2_DISK_DIRENTRY_BY_OFFSET(inode_current_block_mem(inode), block_off); in find_dir_entry()
618 uint32_t block_off = offset % block_size; in ext2_inode_read() local
625 uint32_t left_on_blk = block_size - block_off; in ext2_inode_read()
629 memcpy((uint8_t *)buf + read, inode_current_block_mem(inode) + block_off, to_read); in ext2_inode_read()
649 uint32_t block_off = offset % block_size; in ext2_inode_write() local
659 size_t to_write = MIN(nbytes, block_size - block_off); in ext2_inode_write()
661 memcpy(inode_current_block_mem(inode) + block_off, (uint8_t *)buf + written, in ext2_inode_write()
663 LOG_DBG("Written %zd bytes at offset %d in block i%d", to_write, block_off, block); in ext2_inode_write()
[all …]