Lines Matching refs:dev
34 typedef int32_t (*emul_dev_create) (struct acrn_vm *vm, struct acrn_vdev *dev);
1266 static struct emul_dev_ops *find_emul_dev_ops(struct acrn_vdev *dev) in find_emul_dev_ops() argument
1272 if (emul_dev_ops_tbl[i].dev_id == dev->id.value) { in find_emul_dev_ops()
1295 struct acrn_vdev dev; in hcall_add_vdev() local
1300 if (copy_from_gpa(vm, &dev, param2, sizeof(dev)) == 0) { in hcall_add_vdev()
1301 op = find_emul_dev_ops(&dev); in hcall_add_vdev()
1303 ret = op->create(target_vm, &dev); in hcall_add_vdev()
1327 struct acrn_vdev dev; in hcall_remove_vdev() local
1334 if (copy_from_gpa(vm, &dev, param2, sizeof(dev)) == 0) { in hcall_remove_vdev()
1335 op = find_emul_dev_ops(&dev); in hcall_remove_vdev()
1337 bdf.value = (uint16_t) dev.slot; in hcall_remove_vdev()