Searched refs:cdev (Results 1 – 12 of 12) sorted by relevance
/qemu/util/ |
H A D | chardev_open.c | 43 static int open_cdev_internal(const char *path, dev_t cdev) in open_cdev_internal() argument 53 (cdev != 0 && st.st_rdev != cdev)) { in open_cdev_internal() 60 static int open_cdev_robust(dev_t cdev) in open_cdev_robust() argument 68 devpath = g_strdup_printf("/dev/char/%u:%u", major(cdev), minor(cdev)); in open_cdev_robust() 69 return open_cdev_internal(devpath, cdev); in open_cdev_robust() 72 int open_cdev(const char *devpath, dev_t cdev) in open_cdev() argument 76 fd = open_cdev_internal(devpath, cdev); in open_cdev() 77 if (fd == -1 && cdev != 0) { in open_cdev() 78 return open_cdev_robust(cdev); in open_cdev()
|
/qemu/hw/acpi/ |
H A D | cpu.c | 35 if (cdev->cpu) { in acpi_cpu_device_status() 58 AcpiCpuStatus *cdev; in cpu_hotplug_rd() local 109 AcpiCpuStatus *cdev; in cpu_hotplug_wr() local 138 if (!cdev->cpu || cdev->cpu == first_cpu) { in cpu_hotplug_wr() 150 if (!cdev->cpu || cdev->cpu == first_cpu) { in cpu_hotplug_wr() 167 if (cdev->is_inserting || cdev->is_removing || in cpu_hotplug_wr() 171 cdev->is_inserting, cdev->is_removing); in cpu_hotplug_wr() 257 if (!cdev) { in acpi_cpu_plug_cb() 275 if (!cdev) { in acpi_cpu_unplug_request_cb() 289 if (!cdev) { in acpi_cpu_unplug_cb() [all …]
|
/qemu/hw/s390x/ |
H A D | s390-ccw.c | 95 cdev->mdevid = g_path_get_basename(dev_path); in s390_ccw_get_dev_info() 104 cdev->hostid.cssid = cssid; in s390_ccw_get_dev_info() 105 cdev->hostid.ssid = ssid; in s390_ccw_get_dev_info() 106 cdev->hostid.devid = devid; in s390_ccw_get_dev_info() 107 cdev->hostid.valid = true; in s390_ccw_get_dev_info() 112 CcwDevice *ccw_dev = CCW_DEVICE(cdev); in s390_ccw_realize() 119 s390_ccw_get_dev_info(cdev, sysfsdev, &err); in s390_ccw_realize() 128 sch->driver_data = cdev; in s390_ccw_realize() 154 g_free(cdev->mdevid); in s390_ccw_realize() 161 CcwDevice *ccw_dev = CCW_DEVICE(cdev); in s390_ccw_unrealize() [all …]
|
H A D | 3270-ccw.c | 103 CcwDevice *cdev = CCW_DEVICE(ds); in emulated_ccw_3270_realize() local 104 CCWDeviceClass *cdk = CCW_DEVICE_GET_CLASS(cdev); in emulated_ccw_3270_realize() 108 sch = css_create_sch(cdev->devno, errp); in emulated_ccw_3270_realize() 118 cdev->sch = sch; in emulated_ccw_3270_realize() 139 cdk->realize(cdev, &err); in emulated_ccw_3270_realize() 149 cdev->sch = NULL; in emulated_ccw_3270_realize()
|
/qemu/hw/vfio/ |
H A D | ccw.c | 36 S390CCWDevice cdev; member 578 S390CCWDevice *cdev = S390_CCW_DEVICE(dev); in vfio_ccw_realize() local 579 VFIOCCWDevice *vcdev = VFIO_CCW(cdev); in vfio_ccw_realize() 580 S390CCWDeviceClass *cdc = S390_CCW_DEVICE_GET_CLASS(cdev); in vfio_ccw_realize() 587 cdc->realize(cdev, vcdev->vdev.sysfsdev, &err); in vfio_ccw_realize() 597 ret = vfio_attach_device(cdev->mdevid, vbasedev, in vfio_ccw_realize() 642 cdc->unrealize(cdev); in vfio_ccw_realize() 650 S390CCWDevice *cdev = S390_CCW_DEVICE(dev); in vfio_ccw_unrealize() local 651 VFIOCCWDevice *vcdev = VFIO_CCW(cdev); in vfio_ccw_unrealize() 652 S390CCWDeviceClass *cdc = S390_CCW_DEVICE_GET_CLASS(cdev); in vfio_ccw_unrealize() [all …]
|
/qemu/hw/pci/ |
H A D | pci-hmp-cmds.c | 102 PciDeviceInfoList *cdev; in hmp_info_pci_device() local 103 for (cdev = dev->pci_bridge->devices; cdev; cdev = cdev->next) { in hmp_info_pci_device() 104 hmp_info_pci_device(mon, cdev->value); in hmp_info_pci_device()
|
/qemu/hw/audio/ |
H A D | intel-hda.c | 90 HDACodecDevice *cdev; in hda_codec_find() local 94 cdev = HDA_CODEC_DEVICE(qdev); in hda_codec_find() 95 if (cdev->cad == cad) { in hda_codec_find() 96 return cdev; in hda_codec_find() 496 HDACodecDevice *cdev; in intel_hda_notify_codecs() local 502 cdev = HDA_CODEC_DEVICE(qdev); in intel_hda_notify_codecs() 503 cdc = HDA_CODEC_DEVICE_GET_CLASS(cdev); in intel_hda_notify_codecs() 505 cdc->stream(cdev, stream, running, output); in intel_hda_notify_codecs() 1077 HDACodecDevice *cdev; in intel_hda_reset() local 1084 cdev = HDA_CODEC_DEVICE(qdev); in intel_hda_reset() [all …]
|
/qemu/include/qemu/ |
H A D | chardev_open.h | 15 int open_cdev(const char *devpath, dev_t cdev);
|
/qemu/hw/char/ |
H A D | terminal3270.c | 32 EmulatedCcw3270Device cdev; member 196 return &(CCW_DEVICE(&t->cdev)->sch->cds); in get_cds()
|
/qemu/hw/xen/ |
H A D | xen-legacy-backend.c | 566 unsigned int cdev, j; in xenstore_scan() local 580 dev = qemu_xen_xs_directory(xenstore, 0, path, &cdev); in xenstore_scan() 584 for (j = 0; j < cdev; j++) { in xenstore_scan()
|
/qemu/docs/devel/ |
H A D | vfio-iommufd.rst | 103 Note the ``/dev/iommu`` and VFIO cdev can be externally opened by a
|
/qemu/tests/data/qobject/ |
H A D | qdict.txt | 2563 cdev.c: 25135 2564 cdev.h: 677 3229 core-cdev.c: 37224
|