Home
last modified time | relevance | path

Searched refs:coff (Results 1 – 4 of 4) sorted by relevance

/devicemodel/hw/pci/
A Dcore.c988 int coff = 0; in pci_emul_find_capability() local
1005 while (coff >= CAP_START_OFFSET && coff <= dev->prevcap) { in pci_emul_find_capability()
1007 *p_capoff = coff; in pci_emul_find_capability()
1010 coff = pci_get_cfgdata8(dev, coff + 1); in pci_emul_find_capability()
1472 int bus, slot, func, coff, in; in pci_emul_ecfg_handler() local
1474 coff = addr & 0xfff; in pci_emul_ecfg_handler()
2323 rshift = (coff & 0x3) * 8; in pci_emul_cmdsts_write()
2417 if (coff >= PCI_REGMAX + 1) { in pci_cfgrw()
2427 if (coff <= PCI_REGMAX + 4) in pci_cfgrw()
2460 if (coff >= PCIR_BAR(0) && coff < PCIR_BAR(PCI_BARMAX + 1)) { in pci_cfgrw()
[all …]
A Dlpc.c389 int coff, int bytes, uint32_t val) in pci_lpc_cfgwrite() argument
395 if (coff >= 0x60 && coff <= 0x63) in pci_lpc_cfgwrite()
396 pirq_pin = coff - 0x60 + 1; in pci_lpc_cfgwrite()
397 if (coff >= 0x68 && coff <= 0x6b) in pci_lpc_cfgwrite()
398 pirq_pin = coff - 0x68 + 5; in pci_lpc_cfgwrite()
401 pci_set_cfgdata8(pi, coff, pirq_read(pirq_pin)); in pci_lpc_cfgwrite()
A Dpassthrough.c1061 int coff, int bytes, uint32_t *rv) in passthru_cfgread() argument
1065 if (coff == PCIR_BIOS) { in passthru_cfgread()
1066 *rv = pci_get_cfgdata32(dev, coff); in passthru_cfgread()
1067 } else if (ptdev->has_virt_pcicfg_regs && ptdev->has_virt_pcicfg_regs(coff)) in passthru_cfgread()
1068 *rv = pci_get_cfgdata32(dev, coff); in passthru_cfgread()
1070 *rv = read_config(ptdev->phys_dev, coff, bytes); in passthru_cfgread()
1077 int coff, int bytes, uint32_t val) in passthru_cfgwrite() argument
1082 if (coff == PCIR_BIOS) { in passthru_cfgwrite()
1104 if (!(ptdev->has_virt_pcicfg_regs && ptdev->has_virt_pcicfg_regs(coff))) in passthru_cfgwrite()
1105 write_config(ptdev->phys_dev, coff, bytes, val); in passthru_cfgwrite()
/devicemodel/hw/pci/virtio/
A Dvirtio.c1165 int rc, coff = 0; in virtio_find_capability() local
1167 rc = pci_emul_find_capability(dev, PCIY_VENDOR, &coff); in virtio_find_capability()
1170 coff + offsetof(struct virtio_pci_cap, cfg_type)); in virtio_find_capability()
1172 return coff; in virtio_find_capability()
1173 rc = pci_emul_find_capability(dev, PCIY_VENDOR, &coff); in virtio_find_capability()

Completed in 21 milliseconds