Lines Matching refs:config
197 int err = vdev->config->find_vqs(vdev, 1, &vq, callbacks, names, NULL, in virtio_find_single_vq()
210 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, NULL, desc); in virtio_find_vqs()
219 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, ctx, in virtio_find_vqs_ctx()
234 unsigned status = dev->config->get_status(dev); in virtio_device_ready()
236 if (dev->config->enable_cbs) in virtio_device_ready()
237 dev->config->enable_cbs(dev); in virtio_device_ready()
240 dev->config->set_status(dev, status | VIRTIO_CONFIG_S_DRIVER_OK); in virtio_device_ready()
246 if (!vdev->config->bus_name) in virtio_bus_name()
248 return vdev->config->bus_name(vdev); in virtio_bus_name()
264 if (vdev->config->set_vq_affinity) in virtqueue_set_affinity()
265 return vdev->config->set_vq_affinity(vq, cpu_mask); in virtqueue_set_affinity()
273 if (!vdev->config->get_shm_region) in virtio_get_shm_region()
275 return vdev->config->get_shm_region(vdev, region, id); in virtio_get_shm_region()
347 vdev->config->get((vdev), \
373 vdev->config->set((vdev), offsetof(structname, member), \
411 vdev->config->get((vdev), \
436 vdev->config->set((vdev), offsetof(structname, member), \
447 u32 old, gen = vdev->config->generation ? in __virtio_cread_many()
448 vdev->config->generation(vdev) : 0; in __virtio_cread_many()
456 vdev->config->get(vdev, offset + bytes * i, in __virtio_cread_many()
459 gen = vdev->config->generation ? in __virtio_cread_many()
460 vdev->config->generation(vdev) : 0; in __virtio_cread_many()
476 vdev->config->get(vdev, offset, &ret, sizeof(ret)); in virtio_cread8()
484 vdev->config->set(vdev, offset, &val, sizeof(val)); in virtio_cwrite8()
493 vdev->config->get(vdev, offset, &ret, sizeof(ret)); in virtio_cread16()
504 vdev->config->set(vdev, offset, &v, sizeof(v)); in virtio_cwrite16()
513 vdev->config->get(vdev, offset, &ret, sizeof(ret)); in virtio_cread32()
524 vdev->config->set(vdev, offset, &v, sizeof(v)); in virtio_cwrite32()
543 vdev->config->set(vdev, offset, &v, sizeof(v)); in virtio_cwrite64()