Lines Matching full:interface
34 const char *interface) in qvhost_user_blk_get_driver() argument
36 if (!g_strcmp0(interface, "vhost-user-blk")) { in qvhost_user_blk_get_driver()
39 if (!g_strcmp0(interface, "virtio")) { in qvhost_user_blk_get_driver()
43 fprintf(stderr, "%s not present in vhost-user-blk-device\n", interface); in qvhost_user_blk_get_driver()
48 const char *interface) in qvhost_user_blk_device_get_driver() argument
51 return qvhost_user_blk_get_driver(&v_blk->blk, interface); in qvhost_user_blk_device_get_driver()
59 QVhostUserBlk *interface = &vhost_user_blk->blk; in vhost_user_blk_device_create() local
61 interface->vdev = virtio_dev; in vhost_user_blk_device_create()
69 static void *qvhost_user_blk_pci_get_driver(void *object, const char *interface) in qvhost_user_blk_pci_get_driver() argument
72 if (!g_strcmp0(interface, "pci-device")) { in qvhost_user_blk_pci_get_driver()
75 return qvhost_user_blk_get_driver(&v_blk->blk, interface); in qvhost_user_blk_pci_get_driver()
82 QVhostUserBlk *interface = &vhost_user_blk->blk; in vhost_user_blk_pci_create() local
86 interface->vdev = &vhost_user_blk->pci_vdev.vdev; in vhost_user_blk_pci_create()
88 g_assert_cmphex(interface->vdev->device_type, ==, VIRTIO_ID_BLOCK); in vhost_user_blk_pci_create()