Home
last modified time | relevance | path

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

/lib/fs/ext2/
A Dio.c198 size_t tocopy = MIN(len, EXT2_BLOCK_SIZE(ext2->sb) - block_offset); in ext2_read_inode() local
199 memcpy(buf, temp + block_offset, tocopy); in ext2_read_inode()
203 len -= tocopy; in ext2_read_inode()
204 bytes_read += tocopy; in ext2_read_inode()
205 buf += tocopy; in ext2_read_inode()
/lib/bio/
A Dbio.c57 size_t tocopy = MIN(dev->block_size - block_offset, len); in bio_default_read() local
58 memcpy(buf, temp + block_offset, tocopy); in bio_default_read()
61 buf += tocopy; in bio_default_read()
62 len -= tocopy; in bio_default_read()
63 bytes_read += tocopy; in bio_default_read()
153 size_t tocopy = MIN(dev->block_size - block_offset, len); in bio_default_write() local
154 memcpy(temp + block_offset, buf, tocopy); in bio_default_write()
166 buf += tocopy; in bio_default_write()
167 len -= tocopy; in bio_default_write()
168 bytes_written += tocopy; in bio_default_write()

Completed in 11 milliseconds