Home
last modified time | relevance | path

Searched refs:devfn (Results 1 – 15 of 15) sorted by relevance

/tools/firmware/hvmloader/
A Dpci.c105 uint32_t devfn; in pci_setup() member
162 for ( devfn = 0; devfn < 256; devfn++ ) in pci_setup()
293 devfn >> 3, devfn & 7, bar); in pci_setup()
301 devfn >> 3, devfn & 7, bar, bar_sz); in pci_setup()
315 devfn >> 3, devfn & 7, bar_reg, in pci_setup()
330 bars[i].devfn = devfn; in pci_setup()
357 devfn>>3, devfn&7, 'A'+pin-1, isa_irq); in pci_setup()
473 devfn = bars[i].devfn; in pci_setup()
553 "resource!\n", devfn>>3, devfn&7, bar_reg, in pci_setup()
564 devfn>>3, devfn&7, bar_reg, in pci_setup()
[all …]
A Doptionroms.c35 uint8_t devfn, uint16_t vendor_id, uint16_t device_id, in scan_option_rom() argument
111 *(uint8_t *)(dest + rom->rom_size * 512) = devfn; in scan_option_rom()
124 uint16_t class, vendor_id, device_id, devfn; in scan_etherboot_nic() local
127 for ( devfn = 0; (devfn < 256) && !rom_size; devfn++ ) in scan_etherboot_nic()
130 vendor_id = pci_readw(devfn, PCI_VENDOR_ID); in scan_etherboot_nic()
131 device_id = pci_readw(devfn, PCI_DEVICE_ID); in scan_etherboot_nic()
153 uint16_t vendor_id, device_id, devfn, class; in pci_load_option_roms() local
155 for ( devfn = 0; devfn < 256; devfn++ ) in pci_load_option_roms()
158 vendor_id = pci_readw(devfn, PCI_VENDOR_ID); in pci_load_option_roms()
159 device_id = pci_readw(devfn, PCI_DEVICE_ID); in pci_load_option_roms()
[all …]
A Dutil.h164 uint32_t pci_read(uint32_t devfn, uint32_t reg, uint32_t len);
165 #define pci_readb(devfn, reg) ((uint8_t) pci_read(devfn, reg, 1)) argument
166 #define pci_readw(devfn, reg) ((uint16_t)pci_read(devfn, reg, 2)) argument
167 #define pci_readl(devfn, reg) ((uint32_t)pci_read(devfn, reg, 4)) argument
168 void pci_write(uint32_t devfn, uint32_t reg, uint32_t len, uint32_t val);
169 #define pci_writeb(devfn, reg, val) pci_write(devfn, reg, 1, (uint8_t) (val)) argument
170 #define pci_writew(devfn, reg, val) pci_write(devfn, reg, 2, (uint16_t)(val)) argument
171 #define pci_writel(devfn, reg, val) pci_write(devfn, reg, 4, (uint32_t)(val)) argument
A Dutil.c431 #define PCI_CONF1_ADDRESS(bus, devfn, reg) \ argument
432 (0x80000000 | (bus << 16) | (devfn << 8) | (reg & ~3))
434 uint32_t pci_read(uint32_t devfn, uint32_t reg, uint32_t len) in pci_read() argument
436 outl(0xcf8, PCI_CONF1_ADDRESS(0, devfn, reg)); in pci_read()
447 void pci_write(uint32_t devfn, uint32_t reg, uint32_t len, uint32_t val) in pci_write() argument
449 outl(0xcf8, PCI_CONF1_ADDRESS(0, devfn, reg)); in pci_write()
/tools/libs/ctrl/
A Dxc_physdev.c67 int devfn, in xc_physdev_map_pirq_msi() argument
86 map.devfn = devfn; in xc_physdev_map_pirq_msi()
A Dxc_domain.c776 uint8_t devfn, in xc_reserved_device_memory_map() argument
785 .dev.pci.devfn = devfn, in xc_reserved_device_memory_map()
/tools/libs/light/
A Dlibxl_linux.c304 devs[i].devfn = ((dev & 0x1f) << 3) | (func & 7); in libxl__pci_topology_init()
A Dlibxl.c492 ret[i].devfn = devs[i].devfn; in libxl_get_pci_topology()
A Dlibxl_dm.c383 uint8_t devfn, in libxl__xc_device_get_rdm() argument
393 r = xc_reserved_device_memory_map(CTX->xch, flags, seg, bus, devfn, in libxl__xc_device_get_rdm()
405 r = xc_reserved_device_memory_map(CTX->xch, flags, seg, bus, devfn, in libxl__xc_device_get_rdm()
477 uint8_t bus, devfn; in libxl__domain_device_construct_rdm() local
522 devfn = PCI_DEVFN(d_config->pcidevs[i].dev, in libxl__domain_device_construct_rdm()
526 seg, bus, devfn, &nr_entries, &xrdm); in libxl__domain_device_construct_rdm()
A Dlibxl_internal.h762 #define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f) argument
763 #define PCI_FUNC(devfn) ((devfn) & 0x07) argument
A Dlibxl_types.idl1254 ("devfn", uint8),
/tools/xl/
A Dxl_info.c323 ((pciinfo[i].devfn >> 3) & 0x1f), (pciinfo[i].devfn & 7), in output_topologyinfo()
/tools/xentrace/
A Dxenalyze.c8471 uint8_t devfn; member
8486 struct pci_dev * pdev_find(uint8_t bus, uint8_t devfn) in pdev_find() argument
8494 || (d->bus == bus && d->devfn < devfn) ) ; in pdev_find()
8497 if(d && d->bus == bus && d->devfn == devfn) in pdev_find()
8501 fprintf(warn, "Creating pdev %02x:%02x.%x\n", bus, devfn>>4, devfn&3); in pdev_find()
8512 n->devfn=devfn; in pdev_find()
8602 pdev->bus, pdev->devfn); in irq_process()
/tools/include/
A Dxenctrl.h1239 uint8_t devfn,
1625 int devfn,
/tools/golang/xenlight/
A Dhelpers.gen.go4008 x.Devfn = byte(xc.devfn)
4020 xc.devfn = C.uint8_t(x.Devfn)

Completed in 120 milliseconds