Lines Matching full:buf
31 int dev_read_version(void *buf, __u64 offset, size_t len)
35 if (read(config.kd, buf, len) < 0)
40 int dev_read(void *buf, __u64 offset, size_t len)
44 if (read(config.fd, buf, len) < 0)
58 int dev_write(void *buf, __u64 offset, size_t len)
62 if (write(config.fd, buf, len) < 0)
67 int dev_write_block(void *buf, __u64 blk_addr)
69 return dev_write(buf, blk_addr * F2FS_BLKSIZE, F2FS_BLKSIZE);
72 int dev_write_dump(void *buf, __u64 offset, size_t len)
76 if (write(config.dump_fd, buf, len) < 0)
81 int dev_fill(void *buf, __u64 offset, size_t len)
84 if (*((__u8*)buf))
88 if (write(config.fd, buf, len) < 0)
93 int dev_read_block(void *buf, __u64 blk_addr)
95 return dev_read(buf, blk_addr * F2FS_BLKSIZE, F2FS_BLKSIZE);
98 int dev_read_blocks(void *buf, __u64 addr, __u32 nr_blks)
100 return dev_read(buf, addr * F2FS_BLKSIZE, nr_blks * F2FS_BLKSIZE);