Lines Matching refs:byte_len
14 lbaint_t sector, int byte_offset, int byte_len, char *buf) in fs_devread() argument
26 if ((sector + ((byte_offset + byte_len - 1) >> log2blksz)) in fs_devread()
37 debug(" <" LBAFU ", %d, %d>\n", sector, byte_offset, byte_len); in fs_devread()
48 byte_len); in fs_devread()
51 byte_len -= readlen; in fs_devread()
55 if (byte_len == 0) in fs_devread()
59 block_len = byte_len & ~(blk->blksz - 1); in fs_devread()
67 memcpy(buf, p, byte_len); in fs_devread()
77 block_len = byte_len & ~(blk->blksz - 1); in fs_devread()
79 byte_len -= block_len; in fs_devread()
82 if (byte_len != 0) { in fs_devread()
89 memcpy(buf, sec_buf, byte_len); in fs_devread()