Lines Matching refs:vdev
10 struct virtio_device *vdev; member
32 struct virtio_input *vi = vq->vdev->priv; in virtinput_recv_events()
90 struct virtio_input *vi = vq->vdev->priv; in virtinput_recv_status()
114 virtio_cwrite(vi->vdev, struct virtio_input_config, select, &select); in virtinput_cfg_select()
115 virtio_cwrite(vi->vdev, struct virtio_input_config, subsel, &subsel); in virtinput_cfg_select()
116 virtio_cread(vi->vdev, struct virtio_input_config, size, &size); in virtinput_cfg_select()
141 virtio_cread_bytes(vi->vdev, offsetof(struct virtio_input_config, in virtinput_cfg_bits()
159 virtio_cread(vi->vdev, struct virtio_input_config, u.abs.min, &mi); in virtinput_cfg_abs()
160 virtio_cread(vi->vdev, struct virtio_input_config, u.abs.max, &ma); in virtinput_cfg_abs()
161 virtio_cread(vi->vdev, struct virtio_input_config, u.abs.res, &re); in virtinput_cfg_abs()
162 virtio_cread(vi->vdev, struct virtio_input_config, u.abs.fuzz, &fu); in virtinput_cfg_abs()
163 virtio_cread(vi->vdev, struct virtio_input_config, u.abs.flat, &fl); in virtinput_cfg_abs()
176 err = vi->vdev->config->find_vqs(vi->vdev, 2, vqs, cbs, names); in virtinput_init_vqs()
200 static int virtinput_probe(struct virtio_device *vdev) in virtinput_probe() argument
207 if (!virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) in virtinput_probe()
214 vdev->priv = vi; in virtinput_probe()
215 vi->vdev = vdev; in virtinput_probe()
230 virtio_cread_bytes(vi->vdev, offsetof(struct virtio_input_config, in virtinput_probe()
234 virtio_cread_bytes(vi->vdev, offsetof(struct virtio_input_config, in virtinput_probe()
238 "virtio%d/input0", vdev->index); in virtinput_probe()
245 virtio_cread(vi->vdev, struct virtio_input_config, in virtinput_probe()
247 virtio_cread(vi->vdev, struct virtio_input_config, in virtinput_probe()
249 virtio_cread(vi->vdev, struct virtio_input_config, in virtinput_probe()
251 virtio_cread(vi->vdev, struct virtio_input_config, in virtinput_probe()
263 vi->idev->dev.parent = &vdev->dev; in virtinput_probe()
292 virtio_device_ready(vdev); in virtinput_probe()
307 vdev->config->del_vqs(vdev); in virtinput_probe()
313 static void virtinput_remove(struct virtio_device *vdev) in virtinput_remove() argument
315 struct virtio_input *vi = vdev->priv; in virtinput_remove()
323 vdev->config->del_vqs(vdev); in virtinput_remove()
328 static int virtinput_freeze(struct virtio_device *vdev) in virtinput_freeze() argument
330 struct virtio_input *vi = vdev->priv; in virtinput_freeze()
337 vdev->config->del_vqs(vdev); in virtinput_freeze()
341 static int virtinput_restore(struct virtio_device *vdev) in virtinput_restore() argument
343 struct virtio_input *vi = vdev->priv; in virtinput_restore()
350 virtio_device_ready(vdev); in virtinput_restore()