Lines Matching refs:pci_bus
409 struct pci_bus lpci_bus, *pci_bus; in pciehprm_set_hpp() local
411 memcpy(&lpci_bus, ctrl->pci_bus, sizeof(lpci_bus)); in pciehprm_set_hpp()
412 pci_bus = &lpci_bus; in pciehprm_set_hpp()
413 pci_bus->number = func->bus; in pciehprm_set_hpp()
419 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_SEC_LATENCY_TIMER, temp_byte); in pciehprm_set_hpp()
428 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_LATENCY_TIMER, temp_byte); in pciehprm_set_hpp()
439 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_CACHE_LINE_SIZE, temp_byte); in pciehprm_set_hpp()
458 struct pci_bus lpci_bus, *pci_bus; in pciehprm_enable_card() local
462 memcpy(&lpci_bus, ctrl->pci_bus, sizeof(lpci_bus)); in pciehprm_enable_card()
463 pci_bus = &lpci_bus; in pciehprm_enable_card()
464 pci_bus->number = func->bus; in pciehprm_enable_card()
467 rc = pci_bus_read_config_word(pci_bus, devfn, PCI_COMMAND, &command); in pciehprm_enable_card()
473 rc = pci_bus_write_config_word(pci_bus, devfn, PCI_COMMAND, command); in pciehprm_enable_card()
477 rc = pci_bus_read_config_word(pci_bus, devfn, PCI_BRIDGE_CONTROL, &bcommand); in pciehprm_enable_card()
482 rc = pci_bus_write_config_word(pci_bus, devfn, PCI_BRIDGE_CONTROL, bcommand); in pciehprm_enable_card()