Lines Matching refs:phb

489 static void pnv_pci_handle_eeh_config(struct pnv_phb *phb, u32 pe_no)  in pnv_pci_handle_eeh_config()  argument
494 spin_lock_irqsave(&phb->lock, flags); in pnv_pci_handle_eeh_config()
497 rc = opal_pci_get_phb_diag_data2(phb->opal_id, phb->diag_data, in pnv_pci_handle_eeh_config()
498 phb->diag_data_size); in pnv_pci_handle_eeh_config()
502 if (phb->unfreeze_pe) { in pnv_pci_handle_eeh_config()
503 ret = phb->unfreeze_pe(phb, in pnv_pci_handle_eeh_config()
507 rc = opal_pci_eeh_freeze_clear(phb->opal_id, in pnv_pci_handle_eeh_config()
513 __func__, rc, phb->hose->global_number, in pnv_pci_handle_eeh_config()
526 pnv_pci_dump_phb_diag_data(phb->hose, phb->diag_data); in pnv_pci_handle_eeh_config()
528 spin_unlock_irqrestore(&phb->lock, flags); in pnv_pci_handle_eeh_config()
533 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_config_check_eeh() local
546 pe_no = phb->ioda.reserved_pe_idx; in pnv_pci_config_check_eeh()
553 if (phb->get_pe_state) { in pnv_pci_config_check_eeh()
554 fstate = phb->get_pe_state(phb, pe_no); in pnv_pci_config_check_eeh()
556 rc = opal_pci_eeh_freeze_status(phb->opal_id, in pnv_pci_config_check_eeh()
563 __func__, rc, phb->hose->global_number, pe_no); in pnv_pci_config_check_eeh()
579 if (phb->freeze_pe) in pnv_pci_config_check_eeh()
580 phb->freeze_pe(phb, pe_no); in pnv_pci_config_check_eeh()
582 pnv_pci_handle_eeh_config(phb, pe_no); in pnv_pci_config_check_eeh()
589 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_cfg_read() local
596 rc = opal_pci_config_read_byte(phb->opal_id, bdfn, where, &v8); in pnv_pci_cfg_read()
602 rc = opal_pci_config_read_half_word(phb->opal_id, bdfn, where, in pnv_pci_cfg_read()
609 rc = opal_pci_config_read_word(phb->opal_id, bdfn, where, &v32); in pnv_pci_cfg_read()
625 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_cfg_write() local
632 opal_pci_config_write_byte(phb->opal_id, bdfn, where, val); in pnv_pci_cfg_write()
635 opal_pci_config_write_half_word(phb->opal_id, bdfn, where, val); in pnv_pci_cfg_write()
638 opal_pci_config_write_word(phb->opal_id, bdfn, where, val); in pnv_pci_cfg_write()
651 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_cfg_check() local
654 if (!(phb->flags & PNV_PHB_FLAG_EEH)) in pnv_pci_cfg_check()
682 struct pnv_phb *phb; in pnv_pci_read_config() local
694 phb = pdn->phb->private_data; in pnv_pci_read_config()
695 if (phb->flags & PNV_PHB_FLAG_EEH && pdn->edev) { in pnv_pci_read_config()
711 struct pnv_phb *phb; in pnv_pci_write_config() local
722 phb = pdn->phb->private_data; in pnv_pci_write_config()
723 if (!(phb->flags & PNV_PHB_FLAG_EEH)) in pnv_pci_write_config()
758 struct pnv_phb *phb = pci_bus_to_pnvhb(dev->bus); in pnv_pci_set_tunnel_bar() local
769 rc = opal_pci_get_pbcq_tunnel_bar(phb->opal_id, &val); in pnv_pci_set_tunnel_bar()
798 rc = opal_pci_set_pbcq_tunnel_bar(phb->opal_id, addr); in pnv_pci_set_tunnel_bar()