/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
H A D | pci.c | 42 u32 bdfn; in pnv_pci_get_slot_id() local 46 ret = of_property_read_u32(np, "reg", &bdfn); in pnv_pci_get_slot_id() 50 bdfn = ((bdfn & 0x00ffff00) >> 8); in pnv_pci_get_slot_id() 73 *id = PCI_SLOT_ID(phbid, bdfn); in pnv_pci_get_slot_id() 635 pr_devel(" -> EEH check, bdfn=%04x PE#%x fstate=%x\n", in pnv_pci_config_check_eeh() 657 u32 bdfn = (pdn->busno << 8) | pdn->devfn; in pnv_pci_cfg_read() local 663 rc = opal_pci_config_read_byte(phb->opal_id, bdfn, where, &v8); in pnv_pci_cfg_read() 669 rc = opal_pci_config_read_half_word(phb->opal_id, bdfn, where, in pnv_pci_cfg_read() 676 rc = opal_pci_config_read_word(phb->opal_id, bdfn, wher in pnv_pci_cfg_read() 693 u32 bdfn = (pdn->busno << 8) | pdn->devfn; pnv_pci_cfg_write() local [all...] |
H A D | ocxl.c | 435 u32 bdfn; member 444 u32 bdfn; in pnv_ocxl_spa_setup() local 451 bdfn = (dev->bus->number << 8) | dev->devfn; in pnv_ocxl_spa_setup() 452 rc = opal_npu_spa_setup(phb->opal_id, bdfn, virt_to_phys(spa_mem), in pnv_ocxl_spa_setup() 460 data->bdfn = bdfn; in pnv_ocxl_spa_setup() 471 rc = opal_npu_spa_setup(data->phb_opal_id, data->bdfn, 0, 0); in pnv_ocxl_spa_release() 482 rc = opal_npu_spa_clear_cache(data->phb_opal_id, data->bdfn, pe_handle); in pnv_ocxl_spa_remove_pe_from_cache()
|
H A D | pci.h | 301 extern struct pnv_ioda_pe *pnv_pci_bdfn_to_pe(struct pnv_phb *phb, u16 bdfn);
|
H A D | eeh-powernv.c | 1616 OPAL_REINIT_PCI_DEV, edev->bdfn); in pnv_eeh_restore_config() 1620 __func__, edev->bdfn, ret); in pnv_eeh_restore_config()
|
H A D | pci-ioda.c | 670 struct pnv_ioda_pe *pnv_pci_bdfn_to_pe(struct pnv_phb *phb, u16 bdfn) in pnv_pci_bdfn_to_pe() argument 672 int pe_number = phb->ioda.pe_rmap[bdfn]; in pnv_pci_bdfn_to_pe()
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/ |
H A D | pci.c | 41 u32 bdfn; in pnv_pci_get_slot_id() local 45 ret = of_property_read_u32(np, "reg", &bdfn); in pnv_pci_get_slot_id() 49 bdfn = ((bdfn & 0x00ffff00) >> 8); in pnv_pci_get_slot_id() 72 *id = PCI_SLOT_ID(phbid, bdfn); in pnv_pci_get_slot_id() 567 pr_devel(" -> EEH check, bdfn=%04x PE#%x fstate=%x\n", in pnv_pci_config_check_eeh() 589 u32 bdfn = (pdn->busno << 8) | pdn->devfn; in pnv_pci_cfg_read() local 595 rc = opal_pci_config_read_byte(phb->opal_id, bdfn, where, &v8); in pnv_pci_cfg_read() 601 rc = opal_pci_config_read_half_word(phb->opal_id, bdfn, where, in pnv_pci_cfg_read() 608 rc = opal_pci_config_read_word(phb->opal_id, bdfn, wher in pnv_pci_cfg_read() 625 u32 bdfn = (pdn->busno << 8) | pdn->devfn; pnv_pci_cfg_write() local [all...] |
H A D | ocxl.c | 436 u32 bdfn; member 445 u32 bdfn; in pnv_ocxl_spa_setup() local 452 bdfn = pci_dev_id(dev); in pnv_ocxl_spa_setup() 453 rc = opal_npu_spa_setup(phb->opal_id, bdfn, virt_to_phys(spa_mem), in pnv_ocxl_spa_setup() 461 data->bdfn = bdfn; in pnv_ocxl_spa_setup() 472 rc = opal_npu_spa_setup(data->phb_opal_id, data->bdfn, 0, 0); in pnv_ocxl_spa_release() 482 return opal_npu_spa_clear_cache(data->phb_opal_id, data->bdfn, pe_handle); in pnv_ocxl_spa_remove_pe_from_cache()
|
H A D | pci.h | 283 extern struct pnv_ioda_pe *pnv_pci_bdfn_to_pe(struct pnv_phb *phb, u16 bdfn);
|
H A D | eeh-powernv.c | 1616 OPAL_REINIT_PCI_DEV, edev->bdfn); in pnv_eeh_restore_config() 1620 __func__, edev->bdfn, ret); in pnv_eeh_restore_config()
|
H A D | pci-ioda.c | 583 struct pnv_ioda_pe *pnv_pci_bdfn_to_pe(struct pnv_phb *phb, u16 bdfn) in pnv_pci_bdfn_to_pe() argument 585 int pe_number = phb->ioda.pe_rmap[bdfn]; in pnv_pci_bdfn_to_pe()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | pnv-pci.h | 16 #define PCI_SLOT_ID(phb_id, bdfn) \ 17 (PCI_SLOT_ID_PREFIX | ((uint64_t)(bdfn) << 16) | (phb_id))
|
H A D | ppc-pci.h | 72 #define PCI_BUSNO(bdfn) ((bdfn >> 8) & 0xff)
|
H A D | eeh.h | 134 int bdfn; /* bdfn of device (for cfg ops) */ member 157 (edev)->controller->global_number, PCI_BUSNO((edev)->bdfn), \ 158 PCI_SLOT((edev)->bdfn), PCI_FUNC((edev)->bdfn), \
|
H A D | opal.h | 36 int64_t opal_npu_spa_setup(uint64_t phb_id, uint32_t bdfn, 38 int64_t opal_npu_spa_clear_cache(uint64_t phb_id, uint32_t bdfn, 40 int64_t opal_npu_tl_set(uint64_t phb_id, uint32_t bdfn, long cap,
|
/kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
H A D | pnv-pci.h | 17 #define PCI_SLOT_ID(phb_id, bdfn) \ 18 (PCI_SLOT_ID_PREFIX | ((uint64_t)(bdfn) << 16) | (phb_id))
|
H A D | ppc-pci.h | 74 #define PCI_BUSNO(bdfn) ((bdfn >> 8) & 0xff)
|
H A D | eeh.h | 134 int bdfn; /* bdfn of device (for cfg ops) */ member 157 (edev)->controller->global_number, PCI_BUSNO((edev)->bdfn), \ 158 PCI_SLOT((edev)->bdfn), PCI_FUNC((edev)->bdfn), \
|
H A D | opal.h | 33 int64_t opal_npu_spa_setup(uint64_t phb_id, uint32_t bdfn, 35 int64_t opal_npu_spa_clear_cache(uint64_t phb_id, uint32_t bdfn, 37 int64_t opal_npu_tl_set(uint64_t phb_id, uint32_t bdfn, long cap,
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | eeh.c | 176 edev->pe->phb->global_number, edev->bdfn >> 8, in eeh_dump_dev_log() 177 PCI_SLOT(edev->bdfn), PCI_FUNC(edev->bdfn)); in eeh_dump_dev_log() 179 edev->pe->phb->global_number, edev->bdfn >> 8, in eeh_dump_dev_log() 180 PCI_SLOT(edev->bdfn), PCI_FUNC(edev->bdfn)); in eeh_dump_dev_log()
|
H A D | pci_dn.c | 140 edev->bdfn = (pdn->busno << 8) | pdn->devfn; in eeh_dev_init()
|
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | eeh.c | 176 edev->pe->phb->global_number, edev->bdfn >> 8, in eeh_dump_dev_log() 177 PCI_SLOT(edev->bdfn), PCI_FUNC(edev->bdfn)); in eeh_dump_dev_log() 179 edev->pe->phb->global_number, edev->bdfn >> 8, in eeh_dump_dev_log() 180 PCI_SLOT(edev->bdfn), PCI_FUNC(edev->bdfn)); in eeh_dump_dev_log()
|
H A D | pci_dn.c | 140 edev->bdfn = (pdn->busno << 8) | pdn->devfn; in eeh_dev_init()
|