| /devicemodel/hw/pci/ |
| A D | ptm.c | 59 __func__, pdev->bus, pdev->dev, pdev->func, pos, reg_val); in get_ptm_reg_value() 79 rp_vdev.slot = PCI_BDF(ptdev->dev->bus, ptdev->dev->slot, ptdev->dev->func); in add_vroot_port() 81 rp_priv->phy_bdf = PCI_BDF(root_port->bus, root_port->dev, root_port->func); in add_vroot_port() 127 phys_dev->bus, phys_dev->dev, phys_dev->func); in ptm_probe() 134 phys_dev->bus, phys_dev->dev, phys_dev->func); in ptm_probe() 153 phys_dev->bus, phys_dev->dev, phys_dev->func); in ptm_probe() 161 phys_dev->bus, phys_dev->dev, phys_dev->func); in ptm_probe() 169 __func__, rp->bus, rp->dev, rp->func, in ptm_probe() 170 phys_dev->bus, phys_dev->dev, phys_dev->func); in ptm_probe() 179 __func__, rp->bus, rp->dev, rp->func); in ptm_probe() [all …]
|
| A D | passthrough.c | 406 int slot, int func) in cfginit() argument 415 ptdev->sel.func = func; in cfginit() 419 bus, slot, func); in cfginit() 426 bus, slot, func); in cfginit() 439 bus, slot, func); in cfginit() 820 phys_dev->func == func) { in passthru_init() 1130 dev->func); in write_dsdt_xdci() 1148 dev->func); in write_dsdt_hdac() 1267 dev->func); in write_dsdt_hdas() 1717 dev->func); in write_dsdt_urt1() [all …]
|
| A D | gsi_sharing.c | 82 int bus, slot, func; in check_msi_capability() local 88 if (parse_bdf(dev_name, &bus, &slot, &func, 16) != 0) in check_msi_capability() 91 phys_dev = pci_device_find_by_slot(0, bus, slot, func); in check_msi_capability() 166 int i, bus, slot, func; in update_pt_info() local 172 if (parse_bdf(name, &bus, &slot, &func, 16) != 0) in update_pt_info() 175 if (phys_bdf == (PCI_BDF(bus, slot, func))) in update_pt_info()
|
| A D | core.c | 261 func ? *func = 0 : 0; in parse_bdf() 275 if (s_func && func) in parse_bdf() 1046 pdi->func = func; in pci_emul_init() 1529 for (func = 0; func < MAXFUNCS; func++) { in init_pci() 1622 for (func = 0; func < MAXFUNCS; func++) { in init_pci() 1693 for (func = 0; func < MAXFUNCS; func++) { in init_pci() 1712 func, fi); in init_pci() 1728 int bus, slot, func; in deinit_pci() local 1759 for (func = 0; func < MAXFUNCS; func++) { in deinit_pci() 1770 func, fi); in deinit_pci() [all …]
|
| A D | uart.c | 121 vdev.slot = PCI_BDF(dev->bus, dev->slot, dev->func); in pci_uart_init() 141 "pci uart at %d:%d\n", opts, dev->slot, dev->func); in pci_uart_init() 158 emul_dev.slot = PCI_BDF(dev->bus, dev->slot, dev->func); in pci_uart_deinit()
|
| A D | npk.c | 297 error = vm_map_ptdev_mmio(ctx, dev->bus, dev->slot, dev->func, in pci_npk_init() 329 vm_unmap_ptdev_mmio(ctx, dev->bus, dev->slot, dev->func, in pci_npk_deinit()
|
| A D | ivshmem.c | 156 dev.slot = PCI_BDF(vdev->bus, vdev->slot, vdev->func); in create_ivshmem_from_hv() 365 emul_dev.slot = PCI_BDF(vdev->bus, vdev->slot, vdev->func); in destroy_ivshmem_from_hv()
|
| A D | gvt.c | 384 gvt->addr.function = pi->func; in pci_gvt_init()
|
| A D | lpc.c | 274 dsdt_line(" Name (_ADR, 0x%04X%04X)", dev->slot, dev->func); in pci_lpc_write_dsdt()
|
| /devicemodel/include/ |
| A D | pcireg.h | 62 #define PCI_RID(bus, slot, func) \ argument 65 (((func) & PCI_FUNCMAX) << PCI_RID_FUNC_SHIFT)) 67 #define PCI_ARI_RID(bus, func) \ argument 69 (((func) & PCIE_ARI_FUNCMAX) << PCI_RID_FUNC_SHIFT)) 79 #define PCIE_ARI_SLOT(func) (((func) >> PCI_RID_SLOT_SHIFT) & PCI_SLOTMAX) argument 80 #define PCIE_ARI_FUNC(func) (((func) >> PCI_RID_FUNC_SHIFT) & PCI_FUNCMAX) argument
|
| A D | vmmapi.h | 140 int vm_map_ptdev_mmio(struct vmctx *ctx, int bus, int slot, int func, 142 int vm_unmap_ptdev_mmio(struct vmctx *ctx, int bus, int slot, int func,
|
| A D | pci_core.h | 144 uint8_t bus, slot, func; member 395 int slot, int func, int reg, int bytes, int *value); 401 int parse_bdf(char *s, int *bus, int *dev, int *func, int base);
|
| A D | pciio.h | 62 u_int8_t func; /* function on this device */ member
|
| /devicemodel/core/ |
| A D | monitor.c | 311 #define DEFINE_HANDLER(name, func) \ argument 325 if (ops->ops->func) { \ 326 ret += ops->ops->func(ops->arg); \
|
| A D | vmmapi.c | 596 vm_map_ptdev_mmio(struct vmctx *ctx, int bus, int slot, int func, in vm_map_ptdev_mmio() argument 615 vm_unmap_ptdev_mmio(struct vmctx *ctx, int bus, int slot, int func, in vm_unmap_ptdev_mmio() argument
|
| A D | main.c | 428 io_req->reqs.pci_request.func, in vmexit_pci_emul() 436 io_req->reqs.pci_request.func, in vmexit_pci_emul()
|
| /devicemodel/hw/pci/virtio/ |
| A D | virtio_mei.c | 2204 unsigned int bus, unsigned int slot, unsigned int func) in vmei_get_devname() argument 2213 bus, slot, func); in vmei_get_devname() 2241 int bus = 0, slot = 0, func = 0; in vmei_init() local 2250 if (parse_bdf(opt, &bus, &slot, &func, 16) == 0) in vmei_init() 2268 rc = vmei_get_devname(name, sizeof(name), bus, slot, func); in vmei_init() 2366 snprintf(tname, sizeof(tname), "vmei-%d:%d tx", dev->slot, dev->func); in vmei_init() 2376 snprintf(tname, sizeof(tname), "vmei-%d:%d rx", dev->slot, dev->func); in vmei_init()
|
| A D | virtio_net.c | 971 dev->func, mac_seed); in virtio_net_init() 974 dev->func); in virtio_net_init() 1042 dev->func); in virtio_net_init()
|
| A D | virtio_coreu.c | 348 dev->slot, dev->func); in virtio_coreu_init()
|
| A D | virtio_block.c | 505 dev->slot, dev->func) >= sizeof(bident)) { in virtio_blk_init() 838 dev->slot, dev->func) >= sizeof(bident)) { in virtio_blk_rescan()
|
| A D | virtio_hdcp.c | 476 dev->slot, dev->func); in virtio_hdcp_init()
|
| A D | virtio_rnd.c | 469 dev->func); in virtio_rnd_init()
|
| A D | virtio_i2c.c | 160 dsdt_line(" Name (_ADR, 0x%04X%04X)", dev->slot, dev->func); in acpi_add_i2c_adapter()
|
| A D | virtio_gpio.c | 1448 dsdt_line(" Name (_ADR, 0x%04X%04X)", dev->slot, dev->func); in virtio_gpio_write_dsdt()
|
| /devicemodel/hw/platform/ |
| A D | ioc.c | 1373 ioc_work func, void *arg) in ioc_create_thread() argument 1375 if (pthread_create(tid, NULL, func, arg) != 0) { in ioc_create_thread()
|