Lines Matching refs:offset

62 	void (*get)(struct virtio_device *vdev, unsigned offset,
64 void (*set)(struct virtio_device *vdev, unsigned offset,
309 unsigned int offset, in __virtio_cread_many() argument
320 vdev->config->get(vdev, offset + bytes * i, in __virtio_cread_many()
329 unsigned int offset, in virtio_cread_bytes() argument
332 __virtio_cread_many(vdev, offset, buf, len, 1); in virtio_cread_bytes()
335 static inline u8 virtio_cread8(struct virtio_device *vdev, unsigned int offset) in virtio_cread8() argument
338 vdev->config->get(vdev, offset, &ret, sizeof(ret)); in virtio_cread8()
343 unsigned int offset, u8 val) in virtio_cwrite8() argument
345 vdev->config->set(vdev, offset, &val, sizeof(val)); in virtio_cwrite8()
349 unsigned int offset) in virtio_cread16() argument
352 vdev->config->get(vdev, offset, &ret, sizeof(ret)); in virtio_cread16()
357 unsigned int offset, u16 val) in virtio_cwrite16() argument
360 vdev->config->set(vdev, offset, &val, sizeof(val)); in virtio_cwrite16()
364 unsigned int offset) in virtio_cread32() argument
367 vdev->config->get(vdev, offset, &ret, sizeof(ret)); in virtio_cread32()
372 unsigned int offset, u32 val) in virtio_cwrite32() argument
375 vdev->config->set(vdev, offset, &val, sizeof(val)); in virtio_cwrite32()
379 unsigned int offset) in virtio_cread64() argument
382 __virtio_cread_many(vdev, offset, &ret, 1, sizeof(ret)); in virtio_cread64()
387 unsigned int offset, u64 val) in virtio_cwrite64() argument
390 vdev->config->set(vdev, offset, &val, sizeof(val)); in virtio_cwrite64()