Home
last modified time | relevance | path

Searched refs:busno (Results 1 – 25 of 39) sorted by relevance

12

/Linux-v6.1/drivers/pci/hotplug/
Dibmphp_pci.c81 debug("inside configure_card, func->busno = %x\n", func->busno); in ibmphp_configure_card()
94 ibmphp_pci_bus->number = cur_func->busno; in ibmphp_configure_card()
99 cur_func->busno, cur_func->device, cur_func->function); in ibmphp_configure_card()
138 cur_func->device, cur_func->busno); in ibmphp_configure_card()
151 cur_func->device, cur_func->busno); in ibmphp_configure_card()
159 newfunc->busno = cur_func->busno; in ibmphp_configure_card()
177 err("Bus %x, devfunc %x\n", cur_func->busno, cur_func->device); in ibmphp_configure_card()
196 newfunc->busno = sec_number; in ibmphp_configure_card()
223 newfunc->busno = cur_func->busno; in ibmphp_configure_card()
242 debug("cur_func->busno b4 configure_bridge is %x\n", cur_func->busno); in ibmphp_configure_card()
[all …]
Dibmphp_res.c35 static struct bus_node * __init alloc_error_bus(struct ebda_pci_rsrc *curr, u8 busno, int flag) in alloc_error_bus() argument
49 newbus->busno = busno; in alloc_error_bus()
51 newbus->busno = curr->bus_num; in alloc_error_bus()
69 rs->busno = curr->bus_num; in alloc_resources()
88 newbus->busno = curr->bus_num; in alloc_bus_range()
118 …debug("%d resource Primary Bus inserted on bus %x [%x - %x]\n", flag, newbus->busno, newrange->sta… in alloc_bus_range()
127 …debug("First Memory Primary on bus %x, [%x - %x]\n", newbus->busno, newrange->start, newrange->end… in alloc_bus_range()
137 debug("First IO Primary on bus %x, [%x - %x]\n", newbus->busno, newrange->start, newrange->end); in alloc_bus_range()
147 …debug("1st PFMemory Primary on Bus %x [%x - %x]\n", newbus->busno, newrange->start, newrange->end); in alloc_bus_range()
210 …debug("gbuses = NULL, Memory Primary Bus %x [%x - %x]\n", newbus->busno, newrange->start, newrange… in ibmphp_rsrc_init()
[all …]
Dibmphp_core.c539 static struct pci_func *ibm_slot_find(u8 busno, u8 device, u8 function) in ibm_slot_find() argument
547 if ((func_cur->busno == busno) && in ibm_slot_find()
600 temp = pci_get_domain_bus_and_slot(0, func->busno, in ibm_unconfigure_device()
618 static u8 bus_structure_fixup(u8 busno) in bus_structure_fixup() argument
624 if (pci_find_bus(0, busno) || !(ibmphp_find_same_bus_num(busno))) in bus_structure_fixup()
637 bus->number = busno; in bus_structure_fixup()
645 b = pci_scan_bus(busno, ibmphp_pci_bus->ops, NULL); in bus_structure_fixup()
669 if (!(bus_structure_fixup(func->busno))) in ibm_configure_device()
672 func->dev = pci_get_domain_bus_and_slot(0, func->busno, in ibm_configure_device()
676 struct pci_bus *bus = pci_find_bus(0, func->busno); in ibm_configure_device()
[all …]
Dibmphp.h241 u8 busno; member
329 u8 busno; member
348 u8 busno; member
678 u8 busno; member
/Linux-v6.1/include/trace/events/
Dsiox.h15 __field(int, busno)
21 __entry->busno = smaster->busno;
28 __entry->busno,
41 __field(int, busno)
48 __entry->busno = smaster->busno;
56 __entry->busno,
/Linux-v6.1/arch/mips/pci/
Dops-sni.c24 static int set_config_address(unsigned int busno, unsigned int devfn, int reg) in set_config_address() argument
29 if (busno == 0 && devfn >= PCI_DEVFN(8, 0)) in set_config_address()
33 ((busno & 0xff) << 16) | in set_config_address()
91 static int pcit_set_config_address(unsigned int busno, unsigned int devfn, int reg) in pcit_set_config_address() argument
93 if ((devfn > 255) || (reg > 255) || (busno > 255)) in pcit_set_config_address()
96 outl((1 << 31) | ((busno & 0xff) << 16) | ((devfn & 0xff) << 8) | (reg & 0xfc), 0xcf8); in pcit_set_config_address()
/Linux-v6.1/arch/powerpc/kernel/
Dpci_dn.c87 if (pdn->busno == bus->number && in pci_get_pdn_by_devfn()
119 if (pdn->busno == pdev->bus->number && in pci_get_pdn()
140 edev->bdfn = (pdn->busno << 8) | pdn->devfn; in eeh_dev_init()
149 int busno, int devfn) in add_one_sriov_vf_pdn() argument
163 pdn->busno = busno; in add_one_sriov_vf_pdn()
247 if (pdn->busno != pci_iov_virtfn_bus(pdev, i) || in remove_sriov_vf_pdns()
304 pdn->busno = (addr >> 16) & 0xff; in pci_add_device_node_info()
370 pdn->busno, pdn->devfn); in pci_remove_device_node_info()
475 pdn->devfn = pdn->busno = -1; in pci_devs_phb_init_dynamic()
Dprom_parse.c12 unsigned long *busno, unsigned long *phys, in of_parse_dma_window() argument
19 *busno = of_read_number(dma_window, 1); in of_parse_dma_window()
Dio-workarounds.c147 int busno; in iowa_ioremap() local
151 busno = bus - iowa_busses; in iowa_ioremap()
152 PCI_SET_ADDR_TOKEN(res, busno + 1); in iowa_ioremap()
Drtas_pci.c62 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_read_config()
113 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_write_config()
/Linux-v6.1/arch/sparc/kernel/
Dleon_pci_grpci1.c243 unsigned int busno = bus->number; in grpci1_read_config() local
246 if (PCI_SLOT(devfn) > 15 || busno > 15) { in grpci1_read_config()
253 ret = grpci1_cfg_r8(priv, busno, devfn, where, val); in grpci1_read_config()
256 ret = grpci1_cfg_r16(priv, busno, devfn, where, val); in grpci1_read_config()
259 ret = grpci1_cfg_r32(priv, busno, devfn, where, val); in grpci1_read_config()
269 busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, *val, size); in grpci1_read_config()
282 unsigned int busno = bus->number; in grpci1_write_config() local
284 if (PCI_SLOT(devfn) > 15 || busno > 15) in grpci1_write_config()
290 busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, size, val); in grpci1_write_config()
297 return grpci1_cfg_w8(priv, busno, devfn, where, val); in grpci1_write_config()
[all …]
Dleon_pci_grpci2.c380 unsigned int busno = bus->number; in grpci2_read_config() local
383 if (PCI_SLOT(devfn) > 15 || busno > 255) { in grpci2_read_config()
390 ret = grpci2_cfg_r8(priv, busno, devfn, where, val); in grpci2_read_config()
393 ret = grpci2_cfg_r16(priv, busno, devfn, where, val); in grpci2_read_config()
396 ret = grpci2_cfg_r32(priv, busno, devfn, where, val); in grpci2_read_config()
405 "size=%d\n", busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, in grpci2_read_config()
419 unsigned int busno = bus->number; in grpci2_write_config() local
421 if (PCI_SLOT(devfn) > 15 || busno > 255) in grpci2_write_config()
426 "val=%x\n", busno, PCI_SLOT(devfn), PCI_FUNC(devfn), in grpci2_write_config()
434 return grpci2_cfg_w8(priv, busno, devfn, where, val); in grpci2_write_config()
[all …]
Dioport.c56 static void __iomem *_sparc_alloc_io(unsigned int busno, unsigned long phys,
166 static void __iomem *_sparc_alloc_io(unsigned int busno, unsigned long phys, in _sparc_alloc_io() argument
197 va = _sparc_ioremap(res, busno, phys, size); in _sparc_alloc_io()
Dpcic.c59 unsigned char busno; /* PCI bus number */ member
176 static int pcic_read_config_dword(unsigned int busno, unsigned int devfn, in pcic_read_config_dword() argument
189 writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr); in pcic_read_config_dword()
237 static int pcic_write_config_dword(unsigned int busno, unsigned int devfn, in pcic_write_config_dword() argument
246 writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr); in pcic_write_config_dword()
549 if (p->busno == dev->bus->number && p->devfn == dev->devfn) in pcic_fill_irq()
/Linux-v6.1/drivers/pci/controller/
Dpcie-altera.c105 int (*rp_write_cfg)(struct altera_pcie *pcie, u8 busno,
403 static int s10_rp_write_cfg(struct altera_pcie *pcie, u8 busno, in s10_rp_write_cfg() argument
424 if (busno == pcie->root_bus_nr && where == PCI_PRIMARY_BUS) in s10_rp_write_cfg()
430 static int _altera_pcie_cfg_read(struct altera_pcie *pcie, u8 busno, in _altera_pcie_cfg_read() argument
438 if (busno == pcie->root_bus_nr && pcie->pcie_data->ops->rp_read_cfg) in _altera_pcie_cfg_read()
454 ret = tlp_cfg_dword_read(pcie, busno, devfn, in _altera_pcie_cfg_read()
474 static int _altera_pcie_cfg_write(struct altera_pcie *pcie, u8 busno, in _altera_pcie_cfg_write() argument
482 if (busno == pcie->root_bus_nr && pcie->pcie_data->ops->rp_write_cfg) in _altera_pcie_cfg_write()
483 return pcie->pcie_data->ops->rp_write_cfg(pcie, busno, in _altera_pcie_cfg_write()
501 return tlp_cfg_dword_write(pcie, busno, devfn, (where & ~DWORD_MASK), in _altera_pcie_cfg_write()
[all …]
Dpcie-iproc.c461 unsigned int busno, in iproc_pcie_map_ep_cfg_reg() argument
469 val = ALIGN_DOWN(PCIE_ECAM_OFFSET(busno, devfn, where), 4) | in iproc_pcie_map_ep_cfg_reg()
573 unsigned int busno = bus->number; in iproc_pcie_config_read() local
579 if (busno == 0) { in iproc_pcie_config_read()
587 cfg_data_p = iproc_pcie_map_ep_cfg_reg(pcie, busno, devfn, where); in iproc_pcie_config_read()
625 int busno, unsigned int devfn, in iproc_pcie_map_cfg_bus() argument
631 if (busno == 0) { in iproc_pcie_map_cfg_bus()
644 return iproc_pcie_map_ep_cfg_reg(pcie, busno, devfn, where); in iproc_pcie_map_cfg_bus()
/Linux-v6.1/arch/arm/mach-cns3xxx/
Dpcie.c55 int busno = bus->number; in cns3xxx_pci_map_bus() local
60 if (!cnspci->linked && busno > 0) in cns3xxx_pci_map_bus()
69 if (busno == 0) { /* internal PCIe bus, host bridge device */ in cns3xxx_pci_map_bus()
75 } else if (busno == 1) { /* directly connected PCIe device */ in cns3xxx_pci_map_bus()
81 base = cnspci->cfg1_regs + ((busno & 0xf) << 20); in cns3xxx_pci_map_bus()
/Linux-v6.1/arch/x86/pci/
Dfixup.c19 u8 busno, suba, subb; in pci_fixup_i450nx() local
24 pci_read_config_byte(d, reg++, &busno); in pci_fixup_i450nx()
27 dev_dbg(&d->dev, "i450NX PXB %d: %02x/%02x/%02x\n", pxb, busno, in pci_fixup_i450nx()
29 if (busno) in pci_fixup_i450nx()
30 pcibios_scan_root(busno); /* Bus A */ in pci_fixup_i450nx()
44 u8 busno; in pci_fixup_i450gx() local
45 pci_read_config_byte(d, 0x4a, &busno); in pci_fixup_i450gx()
46 dev_info(&d->dev, "i440KX/GX host bridge; secondary bus %02x\n", busno); in pci_fixup_i450gx()
47 pcibios_scan_root(busno); in pci_fixup_i450gx()
/Linux-v6.1/arch/powerpc/include/asm/
Drtas.h345 static inline u32 rtas_config_addr(int busno, int devfn, int reg) in rtas_config_addr() argument
347 return ((reg & 0xf00) << 20) | ((busno & 0xff) << 16) | in rtas_config_addr()
Dprom.h67 unsigned long *busno, unsigned long *phys,
/Linux-v6.1/arch/powerpc/platforms/pasemi/
Dpci.c46 static inline int is_root_port(int busno, int devfn) in is_root_port() argument
48 return ((busno == 0) && (PCI_FUNC(devfn) < 4) && in is_root_port()
/Linux-v6.1/drivers/siox/
Dsiox.h12 int busno; member
/Linux-v6.1/arch/powerpc/platforms/pseries/
Deeh_pseries.c79 edev->pe_config_addr = (pdn->busno << 16) | (pdn->devfn << 8); in pseries_pcibios_bus_add_device()
103 int config_addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in pseries_eeh_get_pe_config_addr()
705 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in pseries_send_allow_unfreeze()
750 if (pdn->busno != bus || in pseries_call_allow_unfreeze()
/Linux-v6.1/arch/mips/include/asm/
Dpci.h52 void (*set_busno)(int busno);
/Linux-v6.1/arch/powerpc/platforms/powernv/
Dpci.c568 (pdn->busno << 8) | (pdn->devfn), pe_no, fstate); in pnv_pci_config_check_eeh()
589 u32 bdfn = (pdn->busno << 8) | pdn->devfn; in pnv_pci_cfg_read()
617 __func__, pdn->busno, pdn->devfn, where, size, *val); in pnv_pci_cfg_read()
625 u32 bdfn = (pdn->busno << 8) | pdn->devfn; in pnv_pci_cfg_write()
628 __func__, pdn->busno, pdn->devfn, where, size, val); in pnv_pci_cfg_write()

12