Lines Matching refs:length
16 bool DevMemDevice::read(const std::size_t offset, const std::size_t length, in read() argument
28 const std::size_t alignedSize = length + alignedDiff; in read()
36 offset, length); in read()
45 std::memcpy(destination, alignedSource, length); in read()
48 sys->munmap(devMemMapped, length); in read()
54 bool DevMemDevice::write(const std::size_t offset, const std::size_t length, in write() argument
67 const std::size_t alignedSize = length + alignedDiff; in write()
76 offset, length); in write()
85 std::memcpy(alignedDestination, source, length); in write()
88 sys->munmap(devMemMapped, length); in write()
109 bool PpcMemDevice::read(const std::size_t offset, const std::size_t length, in read() argument
120 int ret = sys->pread(ppcMemFd, destination, length, offset); in read()
124 offset, length); in read()
133 bool PpcMemDevice::write(const std::size_t offset, const std::size_t length, in write() argument
144 ssize_t ret = sys->pwrite(ppcMemFd, source, length, offset); in write()
148 offset, length); in write()