Lines Matching defs:offset

144 VirtDescriptor::read(size_t offset, uint8_t *dst, size_t size) const
146 DPRINTF(VIO, "VirtDescriptor(%p, 0x%x, %i)::read: offset: %i, dst: 0x%x, size: %i\n",
147 this, desc.addr, desc.len, offset, (long)dst, size);
148 assert(size <= desc.len - offset);
152 memProxy->readBlob(desc.addr + offset, dst, size);
156 VirtDescriptor::write(size_t offset, const uint8_t *src, size_t size)
158 DPRINTF(VIO, "VirtDescriptor(%p, 0x%x, %i)::write: offset: %i, src: 0x%x, size: %i\n",
159 this, desc.addr, desc.len, offset, (long)src, size);
160 assert(size <= desc.len - offset);
164 memProxy->writeBlob(desc.addr + offset, src, size);
168 VirtDescriptor::chainRead(size_t offset, uint8_t *dst, size_t size) const
173 if (offset < desc->size()) {
174 const size_t chunk_size(std::min(desc->size() - offset, size));
175 desc->read(offset, dst, chunk_size);
178 offset = 0;
180 offset -= desc->size();
185 panic("Failed to read %i bytes from chain of %i bytes @ offset %i\n",
186 full_size, chainSize(), offset);
191 VirtDescriptor::chainWrite(size_t offset, const uint8_t *src, size_t size)
196 if (offset < desc->size()) {
197 const size_t chunk_size(std::min(desc->size() - offset, size));
198 desc->write(offset, src, chunk_size);
201 offset = 0;
203 offset -= desc->size();
208 panic("Failed to write %i bytes into chain of %i bytes @ offset %i\n",
209 full_size, chainSize(), offset);
410 panic("Unhandled device config read (offset: 0x%x).\n", cfgOffset);
416 panic("Unhandled device config write (offset: 0x%x).\n", cfgOffset);