Lines Matching refs:offset
62 void (*get)(struct virtio_device *vdev, unsigned offset,
64 void (*set)(struct virtio_device *vdev, unsigned offset,
303 unsigned int offset, in __virtio_cread_many() argument
314 vdev->config->get(vdev, offset + bytes * i, in __virtio_cread_many()
323 unsigned int offset, in virtio_cread_bytes() argument
326 __virtio_cread_many(vdev, offset, buf, len, 1); in virtio_cread_bytes()
329 static inline u8 virtio_cread8(struct virtio_device *vdev, unsigned int offset) in virtio_cread8() argument
332 vdev->config->get(vdev, offset, &ret, sizeof(ret)); in virtio_cread8()
337 unsigned int offset, u8 val) in virtio_cwrite8() argument
339 vdev->config->set(vdev, offset, &val, sizeof(val)); in virtio_cwrite8()
343 unsigned int offset) in virtio_cread16() argument
346 vdev->config->get(vdev, offset, &ret, sizeof(ret)); in virtio_cread16()
351 unsigned int offset, u16 val) in virtio_cwrite16() argument
354 vdev->config->set(vdev, offset, &val, sizeof(val)); in virtio_cwrite16()
358 unsigned int offset) in virtio_cread32() argument
361 vdev->config->get(vdev, offset, &ret, sizeof(ret)); in virtio_cread32()
366 unsigned int offset, u32 val) in virtio_cwrite32() argument
369 vdev->config->set(vdev, offset, &val, sizeof(val)); in virtio_cwrite32()
373 unsigned int offset) in virtio_cread64() argument
376 __virtio_cread_many(vdev, offset, &ret, 1, sizeof(ret)); in virtio_cread64()
381 unsigned int offset, u64 val) in virtio_cwrite64() argument
384 vdev->config->set(vdev, offset, &val, sizeof(val)); in virtio_cwrite64()