Home
last modified time | relevance | path

Searched refs:bdfn (Results 1 – 25 of 225) sorted by relevance

123456789

/dports/emulators/qemu60/qemu-6.0.0/roms/skiboot/core/
H A Dpci.c227 uint16_t bdfn) in pci_scan_one() argument
249 pd->bdfn = bdfn; in pci_scan_one()
470 pci_cfg_read16(phb, pd->bdfn, in pci_bridge_power_on()
476 pci_cfg_read16(phb, pd->bdfn, in pci_bridge_power_on()
621 PCIDBG(phb, pd->bdfn, in pci_enable_bridge()
1532 PCINOTICE(phb, pd->bdfn, in pci_print_summary_line()
1538 PCINOTICE(phb, pd->bdfn, in pci_print_summary_line()
1581 if (pd->bdfn & 0x7) in pci_add_one_device_node()
1583 cname, (pd->bdfn >> 3) & 0x1f, pd->bdfn & 0x7); in pci_add_one_device_node()
1642 reg[0] = pd->bdfn << 8; in pci_add_one_device_node()
[all …]
H A Dpci-virt.c110 uint32_t bdfn) in pci_virt_find_device() argument
115 if (pvd->bdfn == bdfn) in pci_virt_find_device()
137 int64_t pci_virt_cfg_read(struct phb *phb, uint32_t bdfn, in pci_virt_cfg_read() argument
148 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_cfg_read()
182 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_cfg_write()
228 if (!phb || (bdfn & 0xffff0000) || (cfg_size < 64)) in pci_virt_add_device()
232 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_add_device()
235 __func__, bdfn); in pci_virt_add_device()
243 __func__, bdfn); in pci_virt_add_device()
250 __func__, bdfn); in pci_virt_add_device()
[all …]
/dports/emulators/qemu42/qemu-4.2.1/roms/skiboot/core/
H A Dpci.c227 uint16_t bdfn) in pci_scan_one() argument
249 pd->bdfn = bdfn; in pci_scan_one()
470 pci_cfg_read16(phb, pd->bdfn, in pci_bridge_power_on()
476 pci_cfg_read16(phb, pd->bdfn, in pci_bridge_power_on()
621 PCIDBG(phb, pd->bdfn, in pci_enable_bridge()
1532 PCINOTICE(phb, pd->bdfn, in pci_print_summary_line()
1538 PCINOTICE(phb, pd->bdfn, in pci_print_summary_line()
1581 if (pd->bdfn & 0x7) in pci_add_one_device_node()
1583 cname, (pd->bdfn >> 3) & 0x1f, pd->bdfn & 0x7); in pci_add_one_device_node()
1642 reg[0] = pd->bdfn << 8; in pci_add_one_device_node()
[all …]
H A Dpci-virt.c110 uint32_t bdfn) in pci_virt_find_device() argument
115 if (pvd->bdfn == bdfn) in pci_virt_find_device()
137 int64_t pci_virt_cfg_read(struct phb *phb, uint32_t bdfn, in pci_virt_cfg_read() argument
148 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_cfg_read()
182 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_cfg_write()
228 if (!phb || (bdfn & 0xffff0000) || (cfg_size < 64)) in pci_virt_add_device()
232 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_add_device()
235 __func__, bdfn); in pci_virt_add_device()
243 __func__, bdfn); in pci_virt_add_device()
250 __func__, bdfn); in pci_virt_add_device()
[all …]
H A Dpci-dt-slot.c69 static struct dt_node *find_devfn(struct dt_node *bus, uint32_t bdfn) in find_devfn() argument
71 uint32_t port_dev_id = (bdfn >> 3) & 0x1f; in find_devfn()
110 PCIDBG(pd->phb, pd->bdfn, in find_dev_under_slot()
155 return find_devfn(sw_up, pd->bdfn); in find_node_for_dev()
158 PCIDBG(phb, pd->bdfn, in find_node_for_dev()
182 PCIDBG(phb, pd->bdfn, "Finding slot\n"); in map_pci_dev_to_slot()
186 PCIDBG(phb, pd->bdfn, "No slot found!\n"); in map_pci_dev_to_slot()
189 PCIDBG(phb, pd->bdfn, "Slot found %s\n", path); in map_pci_dev_to_slot()
221 PCIDBG(phb, pd->bdfn, "Mapped to slot %s (%x)\n", in __print_slot()
/dports/emulators/qemu5/qemu-5.2.0/roms/skiboot/core/
H A Dpci.c227 uint16_t bdfn) in pci_scan_one() argument
249 pd->bdfn = bdfn; in pci_scan_one()
470 pci_cfg_read16(phb, pd->bdfn, in pci_bridge_power_on()
476 pci_cfg_read16(phb, pd->bdfn, in pci_bridge_power_on()
621 PCIDBG(phb, pd->bdfn, in pci_enable_bridge()
1532 PCINOTICE(phb, pd->bdfn, in pci_print_summary_line()
1538 PCINOTICE(phb, pd->bdfn, in pci_print_summary_line()
1581 if (pd->bdfn & 0x7) in pci_add_one_device_node()
1583 cname, (pd->bdfn >> 3) & 0x1f, pd->bdfn & 0x7); in pci_add_one_device_node()
1642 reg[0] = pd->bdfn << 8; in pci_add_one_device_node()
[all …]
H A Dpci-virt.c110 uint32_t bdfn) in pci_virt_find_device() argument
115 if (pvd->bdfn == bdfn) in pci_virt_find_device()
137 int64_t pci_virt_cfg_read(struct phb *phb, uint32_t bdfn, in pci_virt_cfg_read() argument
148 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_cfg_read()
182 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_cfg_write()
228 if (!phb || (bdfn & 0xffff0000) || (cfg_size < 64)) in pci_virt_add_device()
232 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_add_device()
235 __func__, bdfn); in pci_virt_add_device()
243 __func__, bdfn); in pci_virt_add_device()
250 __func__, bdfn); in pci_virt_add_device()
[all …]
H A Dpci-dt-slot.c69 static struct dt_node *find_devfn(struct dt_node *bus, uint32_t bdfn) in find_devfn() argument
71 uint32_t port_dev_id = (bdfn >> 3) & 0x1f; in find_devfn()
110 PCIDBG(pd->phb, pd->bdfn, in find_dev_under_slot()
155 return find_devfn(sw_up, pd->bdfn); in find_node_for_dev()
158 PCIDBG(phb, pd->bdfn, in find_node_for_dev()
182 PCIDBG(phb, pd->bdfn, "Finding slot\n"); in map_pci_dev_to_slot()
186 PCIDBG(phb, pd->bdfn, "No slot found!\n"); in map_pci_dev_to_slot()
189 PCIDBG(phb, pd->bdfn, "Slot found %s\n", path); in map_pci_dev_to_slot()
221 PCIDBG(phb, pd->bdfn, "Mapped to slot %s (%x)\n", in __print_slot()
/dports/emulators/qemu-utils/qemu-4.2.1/roms/skiboot/core/
H A Dpci.c227 uint16_t bdfn) in pci_scan_one() argument
249 pd->bdfn = bdfn; in pci_scan_one()
470 pci_cfg_read16(phb, pd->bdfn, in pci_bridge_power_on()
476 pci_cfg_read16(phb, pd->bdfn, in pci_bridge_power_on()
621 PCIDBG(phb, pd->bdfn, in pci_enable_bridge()
1532 PCINOTICE(phb, pd->bdfn, in pci_print_summary_line()
1538 PCINOTICE(phb, pd->bdfn, in pci_print_summary_line()
1581 if (pd->bdfn & 0x7) in pci_add_one_device_node()
1583 cname, (pd->bdfn >> 3) & 0x1f, pd->bdfn & 0x7); in pci_add_one_device_node()
1642 reg[0] = pd->bdfn << 8; in pci_add_one_device_node()
[all …]
H A Dpci-virt.c110 uint32_t bdfn) in pci_virt_find_device() argument
115 if (pvd->bdfn == bdfn) in pci_virt_find_device()
137 int64_t pci_virt_cfg_read(struct phb *phb, uint32_t bdfn, in pci_virt_cfg_read() argument
148 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_cfg_read()
182 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_cfg_write()
228 if (!phb || (bdfn & 0xffff0000) || (cfg_size < 64)) in pci_virt_add_device()
232 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_add_device()
235 __func__, bdfn); in pci_virt_add_device()
243 __func__, bdfn); in pci_virt_add_device()
250 __func__, bdfn); in pci_virt_add_device()
[all …]
/dports/emulators/qemu-guest-agent/qemu-5.0.1/roms/skiboot/core/
H A Dpci.c227 uint16_t bdfn) in pci_scan_one() argument
249 pd->bdfn = bdfn; in pci_scan_one()
470 pci_cfg_read16(phb, pd->bdfn, in pci_bridge_power_on()
476 pci_cfg_read16(phb, pd->bdfn, in pci_bridge_power_on()
621 PCIDBG(phb, pd->bdfn, in pci_enable_bridge()
1532 PCINOTICE(phb, pd->bdfn, in pci_print_summary_line()
1538 PCINOTICE(phb, pd->bdfn, in pci_print_summary_line()
1581 if (pd->bdfn & 0x7) in pci_add_one_device_node()
1583 cname, (pd->bdfn >> 3) & 0x1f, pd->bdfn & 0x7); in pci_add_one_device_node()
1642 reg[0] = pd->bdfn << 8; in pci_add_one_device_node()
[all …]
H A Dpci-virt.c110 uint32_t bdfn) in pci_virt_find_device() argument
115 if (pvd->bdfn == bdfn) in pci_virt_find_device()
137 int64_t pci_virt_cfg_read(struct phb *phb, uint32_t bdfn, in pci_virt_cfg_read() argument
148 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_cfg_read()
182 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_cfg_write()
228 if (!phb || (bdfn & 0xffff0000) || (cfg_size < 64)) in pci_virt_add_device()
232 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_add_device()
235 __func__, bdfn); in pci_virt_add_device()
243 __func__, bdfn); in pci_virt_add_device()
250 __func__, bdfn); in pci_virt_add_device()
[all …]
/dports/emulators/qemu/qemu-6.2.0/roms/skiboot/core/
H A Dpci.c223 uint16_t bdfn) in pci_scan_one() argument
245 pd->bdfn = bdfn; in pci_scan_one()
471 pci_cfg_read16(phb, pd->bdfn, in pci_bridge_power_on()
477 pci_cfg_read16(phb, pd->bdfn, in pci_bridge_power_on()
483 pci_cfg_read32(phb, pd->bdfn, in pci_bridge_power_on()
622 PCIDBG(phb, pd->bdfn, in pci_enable_bridge()
1465 PCINOTICE(phb, pd->bdfn, in pci_print_summary_line()
1472 PCINOTICE(phb, pd->bdfn, in pci_print_summary_line()
1507 if (PCI_FUNC(pd->bdfn)) in pci_add_one_device_node()
1509 cname, PCI_DEV(pd->bdfn), PCI_FUNC(pd->bdfn)); in pci_add_one_device_node()
[all …]
H A Dpci-virt.c101 uint32_t bdfn) in pci_virt_find_device() argument
106 if (pvd->bdfn == bdfn) in pci_virt_find_device()
128 int64_t pci_virt_cfg_read(struct phb *phb, uint32_t bdfn, in pci_virt_cfg_read() argument
139 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_cfg_read()
173 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_cfg_write()
219 if (!phb || (bdfn & 0xffff0000) || (cfg_size < 64)) in pci_virt_add_device()
223 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_add_device()
226 __func__, bdfn); in pci_virt_add_device()
234 __func__, bdfn); in pci_virt_add_device()
241 __func__, bdfn); in pci_virt_add_device()
[all …]
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/roms/skiboot/core/
H A Dpci.c251 uint16_t bdfn) in pci_scan_one() argument
273 pd->bdfn = bdfn; in pci_scan_one()
492 pci_cfg_read16(phb, pd->bdfn, in pci_bridge_power_on()
498 pci_cfg_read16(phb, pd->bdfn, in pci_bridge_power_on()
643 PCIDBG(phb, pd->bdfn, in pci_enable_bridge()
1495 PCINOTICE(phb, pd->bdfn, in pci_print_summary_line()
1501 PCINOTICE(phb, pd->bdfn, in pci_print_summary_line()
1543 if (pd->bdfn & 0x7) in pci_add_one_device_node()
1545 cname, (pd->bdfn >> 3) & 0x1f, pd->bdfn & 0x7); in pci_add_one_device_node()
1591 reg[0] = pd->bdfn << 8; in pci_add_one_device_node()
[all …]
H A Dpci-iov.c74 __func__, phb->opal_id, (vf->bdfn >> 8), in pci_iov_vf_quirk()
75 ((vf->bdfn >> 3) & 0x1f), (vf->bdfn & 0x7)); in pci_iov_vf_quirk()
85 uint16_t bdfn = iov->pd->bdfn; in pci_iov_update_parameters() local
98 pci_cfg_read16(phb, bdfn, pos + PCIECAP_SRIOV_NUM_VF, in pci_iov_update_parameters()
144 vf->bdfn = pd->bdfn + iov->offset + iov->stride * i; in pci_iov_change()
218 __func__, phb->opal_id, (pd->bdfn >> 8), in pci_init_iov_cap()
219 ((pd->bdfn >> 3) & 0x1f), (pd->bdfn & 0x7)); in pci_init_iov_cap()
230 (pd->bdfn >> 8), ((pd->bdfn >> 3) & 0x1f), in pci_init_iov_cap()
231 (pd->bdfn & 0x7)); in pci_init_iov_cap()
245 __func__, phb->opal_id, (pd->bdfn >> 8), in pci_init_iov_cap()
[all …]
H A Dpci-dt-slot.c89 port_dev_id = (cursor->bdfn >> 3) & 0x1f; in map_downport_to_slot()
119 if (pd->bdfn & 0x7) { in __map_pci_dev_to_slot()
122 PCIDBG(phb, pd->bdfn, "mapping fn %x to 0th fn (%x)\n", in __map_pci_dev_to_slot()
123 pd->bdfn, pd->bdfn & (~0x7)); in __map_pci_dev_to_slot()
126 if ((pd->bdfn & ~0x7) == cursor->bdfn) in __map_pci_dev_to_slot()
169 PCIDBG(phb, pd->bdfn, in __map_pci_dev_to_slot()
178 uint32_t bdfn = pd ? pd->bdfn : 0; in map_pci_dev_to_slot() local
185 PCIDBG(phb, bdfn, "Finding slot\n"); in map_pci_dev_to_slot()
189 PCIDBG(phb, bdfn, "No slot found!\n"); in map_pci_dev_to_slot()
192 PCIDBG(phb, bdfn, "Slot found %s\n", path); in map_pci_dev_to_slot()
[all …]
H A Dpci-virt.c110 uint32_t bdfn) in pci_virt_find_device() argument
115 if (pvd->bdfn == bdfn) in pci_virt_find_device()
137 int64_t pci_virt_cfg_read(struct phb *phb, uint32_t bdfn, in pci_virt_cfg_read() argument
148 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_cfg_read()
182 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_cfg_write()
228 if (!phb || (bdfn & 0xffff0000) || (cfg_size < 64)) in pci_virt_add_device()
232 pvd = pci_virt_find_device(phb, bdfn); in pci_virt_add_device()
235 __func__, bdfn); in pci_virt_add_device()
243 __func__, bdfn); in pci_virt_add_device()
250 __func__, bdfn); in pci_virt_add_device()
[all …]
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/roms/skiboot/include/
H A Dpci.h66 uint16_t bdfn; member
192 int64_t (*cfg_read8)(struct phb *phb, uint32_t bdfn,
194 int64_t (*cfg_read16)(struct phb *phb, uint32_t bdfn,
196 int64_t (*cfg_read32)(struct phb *phb, uint32_t bdfn,
198 int64_t (*cfg_write8)(struct phb *phb, uint32_t bdfn,
200 int64_t (*cfg_write16)(struct phb *phb, uint32_t bdfn,
202 int64_t (*cfg_write32)(struct phb *phb, uint32_t bdfn,
386 return phb->ops->cfg_read8(phb, bdfn, offset, data); in pci_cfg_read8()
392 return phb->ops->cfg_read16(phb, bdfn, offset, data); in pci_cfg_read16()
398 return phb->ops->cfg_read32(phb, bdfn, offset, data); in pci_cfg_read32()
[all …]
/dports/emulators/qemu42/qemu-4.2.1/roms/skiboot/include/
H A Dpci.h87 uint16_t bdfn; member
221 int64_t (*cfg_read8)(struct phb *phb, uint32_t bdfn,
223 int64_t (*cfg_read16)(struct phb *phb, uint32_t bdfn,
225 int64_t (*cfg_read32)(struct phb *phb, uint32_t bdfn,
227 int64_t (*cfg_write8)(struct phb *phb, uint32_t bdfn,
229 int64_t (*cfg_write16)(struct phb *phb, uint32_t bdfn,
231 int64_t (*cfg_write32)(struct phb *phb, uint32_t bdfn,
411 return phb->ops->cfg_read8(phb, bdfn, offset, data); in pci_cfg_read8()
417 return phb->ops->cfg_read16(phb, bdfn, offset, data); in pci_cfg_read16()
423 return phb->ops->cfg_read32(phb, bdfn, offset, data); in pci_cfg_read32()
[all …]
/dports/emulators/qemu5/qemu-5.2.0/roms/skiboot/include/
H A Dpci.h87 uint16_t bdfn; member
221 int64_t (*cfg_read8)(struct phb *phb, uint32_t bdfn,
223 int64_t (*cfg_read16)(struct phb *phb, uint32_t bdfn,
225 int64_t (*cfg_read32)(struct phb *phb, uint32_t bdfn,
227 int64_t (*cfg_write8)(struct phb *phb, uint32_t bdfn,
229 int64_t (*cfg_write16)(struct phb *phb, uint32_t bdfn,
231 int64_t (*cfg_write32)(struct phb *phb, uint32_t bdfn,
411 return phb->ops->cfg_read8(phb, bdfn, offset, data); in pci_cfg_read8()
417 return phb->ops->cfg_read16(phb, bdfn, offset, data); in pci_cfg_read16()
423 return phb->ops->cfg_read32(phb, bdfn, offset, data); in pci_cfg_read32()
[all …]
/dports/emulators/qemu-utils/qemu-4.2.1/roms/skiboot/include/
H A Dpci.h87 uint16_t bdfn; member
221 int64_t (*cfg_read8)(struct phb *phb, uint32_t bdfn,
223 int64_t (*cfg_read16)(struct phb *phb, uint32_t bdfn,
225 int64_t (*cfg_read32)(struct phb *phb, uint32_t bdfn,
227 int64_t (*cfg_write8)(struct phb *phb, uint32_t bdfn,
229 int64_t (*cfg_write16)(struct phb *phb, uint32_t bdfn,
231 int64_t (*cfg_write32)(struct phb *phb, uint32_t bdfn,
411 return phb->ops->cfg_read8(phb, bdfn, offset, data); in pci_cfg_read8()
417 return phb->ops->cfg_read16(phb, bdfn, offset, data); in pci_cfg_read16()
423 return phb->ops->cfg_read32(phb, bdfn, offset, data); in pci_cfg_read32()
[all …]
/dports/emulators/qemu-guest-agent/qemu-5.0.1/roms/skiboot/include/
H A Dpci.h87 uint16_t bdfn; member
221 int64_t (*cfg_read8)(struct phb *phb, uint32_t bdfn,
223 int64_t (*cfg_read16)(struct phb *phb, uint32_t bdfn,
225 int64_t (*cfg_read32)(struct phb *phb, uint32_t bdfn,
227 int64_t (*cfg_write8)(struct phb *phb, uint32_t bdfn,
229 int64_t (*cfg_write16)(struct phb *phb, uint32_t bdfn,
231 int64_t (*cfg_write32)(struct phb *phb, uint32_t bdfn,
411 return phb->ops->cfg_read8(phb, bdfn, offset, data); in pci_cfg_read8()
417 return phb->ops->cfg_read16(phb, bdfn, offset, data); in pci_cfg_read16()
423 return phb->ops->cfg_read32(phb, bdfn, offset, data); in pci_cfg_read32()
[all …]
/dports/emulators/qemu/qemu-6.2.0/roms/skiboot/include/
H A Dpci.h74 uint16_t bdfn; member
208 int64_t (*cfg_read8)(struct phb *phb, uint32_t bdfn,
210 int64_t (*cfg_read16)(struct phb *phb, uint32_t bdfn,
212 int64_t (*cfg_read32)(struct phb *phb, uint32_t bdfn,
214 int64_t (*cfg_write8)(struct phb *phb, uint32_t bdfn,
216 int64_t (*cfg_write16)(struct phb *phb, uint32_t bdfn,
218 int64_t (*cfg_write32)(struct phb *phb, uint32_t bdfn,
408 return phb->ops->cfg_read8(phb, bdfn, offset, data); in pci_cfg_read8()
414 return phb->ops->cfg_read16(phb, bdfn, offset, data); in pci_cfg_read16()
420 return phb->ops->cfg_read32(phb, bdfn, offset, data); in pci_cfg_read32()
[all …]
/dports/emulators/qemu60/qemu-6.0.0/roms/skiboot/include/
H A Dpci.h87 uint16_t bdfn; member
221 int64_t (*cfg_read8)(struct phb *phb, uint32_t bdfn,
223 int64_t (*cfg_read16)(struct phb *phb, uint32_t bdfn,
225 int64_t (*cfg_read32)(struct phb *phb, uint32_t bdfn,
227 int64_t (*cfg_write8)(struct phb *phb, uint32_t bdfn,
229 int64_t (*cfg_write16)(struct phb *phb, uint32_t bdfn,
231 int64_t (*cfg_write32)(struct phb *phb, uint32_t bdfn,
411 return phb->ops->cfg_read8(phb, bdfn, offset, data); in pci_cfg_read8()
417 return phb->ops->cfg_read16(phb, bdfn, offset, data); in pci_cfg_read16()
423 return phb->ops->cfg_read32(phb, bdfn, offset, data); in pci_cfg_read32()
[all …]

123456789