/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
H A D | pci.c | 556 static void pnv_pci_handle_eeh_config(struct pnv_phb *phb, u32 pe_no) in pnv_pci_handle_eeh_config() argument 571 pe_no, in pnv_pci_handle_eeh_config() 575 pe_no, in pnv_pci_handle_eeh_config() 581 pe_no); in pnv_pci_handle_eeh_config() 603 unsigned int pe_no; in pnv_pci_config_check_eeh() local 611 pe_no = pdn->pe_number; in pnv_pci_config_check_eeh() 612 if (pe_no == IODA_INVALID_PE) { in pnv_pci_config_check_eeh() 613 pe_no = phb->ioda.reserved_pe_idx; in pnv_pci_config_check_eeh() 621 fstate = phb->get_pe_state(phb, pe_no); in pnv_pci_config_check_eeh() 624 pe_no, in pnv_pci_config_check_eeh() [all...] |
H A D | pci-ioda.c | 118 static struct pnv_ioda_pe *pnv_ioda_init_pe(struct pnv_phb *phb, int pe_no) in pnv_ioda_init_pe() argument 122 phb->ioda.pe_array[pe_no].phb = phb; in pnv_ioda_init_pe() 123 phb->ioda.pe_array[pe_no].pe_number = pe_no; in pnv_ioda_init_pe() 124 phb->ioda.pe_array[pe_no].dma_setup_done = false; in pnv_ioda_init_pe() 131 rc = opal_pci_eeh_freeze_clear(phb->opal_id, pe_no, in pnv_ioda_init_pe() 135 __func__, rc, phb->hose->global_number, pe_no); in pnv_ioda_init_pe() 137 return &phb->ioda.pe_array[pe_no]; in pnv_ioda_init_pe() 140 static void pnv_ioda_reserve_pe(struct pnv_phb *phb, int pe_no) in pnv_ioda_reserve_pe() argument 142 if (!(pe_no > in pnv_ioda_reserve_pe() 528 pnv_ioda_freeze_pe(struct pnv_phb *phb, int pe_no) pnv_ioda_freeze_pe() argument 568 pnv_ioda_unfreeze_pe(struct pnv_phb *phb, int pe_no, int opt) pnv_ioda_unfreeze_pe() argument 608 pnv_ioda_get_pe_state(struct pnv_phb *phb, int pe_no) pnv_ioda_get_pe_state() argument [all...] |
H A D | pci.h | 137 int (*get_pe_state)(struct pnv_phb *phb, int pe_no); 138 void (*freeze_pe)(struct pnv_phb *phb, int pe_no); 139 int (*unfreeze_pe)(struct pnv_phb *phb, int pe_no, int opt);
|
H A D | eeh-powernv.c | 70 int pe_no, type, func; in pnv_eeh_ei_write() local 85 &pe_no, &type, &func, &addr, &mask); in pnv_eeh_ei_write() 90 pe = eeh_pe_get(hose, pe_no); in pnv_eeh_ei_write() 1341 u16 pe_no, struct eeh_pe **pe) in pnv_eeh_get_pe() 1352 pnv_pe = &phb->ioda.pe_array[pe_no]; in pnv_eeh_get_pe() 1357 pe_no = pnv_pe->pe_number; in pnv_eeh_get_pe() 1361 dev_pe = eeh_pe_get(hose, pe_no); in pnv_eeh_get_pe() 1368 phb->freeze_pe(phb, pe_no); in pnv_eeh_get_pe() 1340 pnv_eeh_get_pe(struct pci_controller *hose, u16 pe_no, struct eeh_pe **pe) pnv_eeh_get_pe() argument
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/ |
H A D | pci.c | 488 static void pnv_pci_handle_eeh_config(struct pnv_phb *phb, u32 pe_no) in pnv_pci_handle_eeh_config() argument 503 pe_no, in pnv_pci_handle_eeh_config() 507 pe_no, in pnv_pci_handle_eeh_config() 513 pe_no); in pnv_pci_handle_eeh_config() 535 unsigned int pe_no; in pnv_pci_config_check_eeh() local 543 pe_no = pdn->pe_number; in pnv_pci_config_check_eeh() 544 if (pe_no == IODA_INVALID_PE) { in pnv_pci_config_check_eeh() 545 pe_no = phb->ioda.reserved_pe_idx; in pnv_pci_config_check_eeh() 553 fstate = phb->get_pe_state(phb, pe_no); in pnv_pci_config_check_eeh() 556 pe_no, in pnv_pci_config_check_eeh() [all...] |
H A D | pci-ioda.c | 116 static struct pnv_ioda_pe *pnv_ioda_init_pe(struct pnv_phb *phb, int pe_no) in pnv_ioda_init_pe() argument 120 phb->ioda.pe_array[pe_no].phb = phb; in pnv_ioda_init_pe() 121 phb->ioda.pe_array[pe_no].pe_number = pe_no; in pnv_ioda_init_pe() 122 phb->ioda.pe_array[pe_no].dma_setup_done = false; in pnv_ioda_init_pe() 129 rc = opal_pci_eeh_freeze_clear(phb->opal_id, pe_no, in pnv_ioda_init_pe() 133 __func__, rc, phb->hose->global_number, pe_no); in pnv_ioda_init_pe() 135 return &phb->ioda.pe_array[pe_no]; in pnv_ioda_init_pe() 138 static void pnv_ioda_reserve_pe(struct pnv_phb *phb, int pe_no) in pnv_ioda_reserve_pe() argument 140 if (!(pe_no > in pnv_ioda_reserve_pe() 441 pnv_ioda_freeze_pe(struct pnv_phb *phb, int pe_no) pnv_ioda_freeze_pe() argument 481 pnv_ioda_unfreeze_pe(struct pnv_phb *phb, int pe_no, int opt) pnv_ioda_unfreeze_pe() argument 521 pnv_ioda_get_pe_state(struct pnv_phb *phb, int pe_no) pnv_ioda_get_pe_state() argument [all...] |
H A D | pci.h | 127 int (*get_pe_state)(struct pnv_phb *phb, int pe_no); 128 void (*freeze_pe)(struct pnv_phb *phb, int pe_no); 129 int (*unfreeze_pe)(struct pnv_phb *phb, int pe_no, int opt);
|
H A D | eeh-powernv.c | 71 int pe_no, type, func; in pnv_eeh_ei_write() local 86 &pe_no, &type, &func, &addr, &mask); in pnv_eeh_ei_write() 91 pe = eeh_pe_get(hose, pe_no); in pnv_eeh_ei_write() 1341 u16 pe_no, struct eeh_pe **pe) in pnv_eeh_get_pe() 1352 pnv_pe = &phb->ioda.pe_array[pe_no]; in pnv_eeh_get_pe() 1357 pe_no = pnv_pe->pe_number; in pnv_eeh_get_pe() 1361 dev_pe = eeh_pe_get(hose, pe_no); in pnv_eeh_get_pe() 1368 phb->freeze_pe(phb, pe_no); in pnv_eeh_get_pe() 1340 pnv_eeh_get_pe(struct pci_controller *hose, u16 pe_no, struct eeh_pe **pe) pnv_eeh_get_pe() argument
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | eeh_pe.c | 277 * @pe_no: PE number 286 struct eeh_pe *eeh_pe_get(struct pci_controller *phb, int pe_no) in eeh_pe_get() argument 290 return eeh_pe_traverse(root, __eeh_pe_get, &pe_no); in eeh_pe_get()
|
H A D | eeh.c | 1623 uint32_t phbid, pe_no; in eeh_force_recover_write() local 1643 ret = sscanf(buf, "%x:%x", &phbid, &pe_no); in eeh_force_recover_write() 1652 pe = eeh_pe_get(hose, pe_no); in eeh_force_recover_write()
|
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | eeh_pe.c | 278 * @pe_no: PE number 287 struct eeh_pe *eeh_pe_get(struct pci_controller *phb, int pe_no) in eeh_pe_get() argument 291 return eeh_pe_traverse(root, __eeh_pe_get, &pe_no); in eeh_pe_get()
|
H A D | eeh.c | 1645 uint32_t phbid, pe_no; in eeh_force_recover_write() local 1665 ret = sscanf(buf, "%x:%x", &phbid, &pe_no); in eeh_force_recover_write() 1674 pe = eeh_pe_get(hose, pe_no); in eeh_force_recover_write()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | eeh.h | 281 struct eeh_pe *eeh_pe_get(struct pci_controller *phb, int pe_no);
|
H A D | opal.h | 93 int64_t opal_pci_err_inject(uint64_t phb_id, uint32_t pe_no, uint32_t type,
|
/kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
H A D | eeh.h | 281 struct eeh_pe *eeh_pe_get(struct pci_controller *phb, int pe_no);
|
H A D | opal.h | 90 int64_t opal_pci_err_inject(uint64_t phb_id, uint32_t pe_no, uint32_t type,
|