Home
last modified time | relevance | path

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

12

/arch/mips/pci/
Dops-titan-ht.c38 int busno; in titan_ht_config_read_dword() local
40 busno = bus->number; in titan_ht_config_read_dword()
42 address = (busno << 16) | (devfn << 8) | (offset & 0xfc) | 0x80000000; in titan_ht_config_read_dword()
43 if (busno != 0) in titan_ht_config_read_dword()
83 int busno; in titan_ht_config_write_dword() local
85 busno = bus->number; in titan_ht_config_write_dword()
87 address = (busno << 16) | (devfn << 8) | (offset & 0xfc) | 0x80000000; in titan_ht_config_write_dword()
88 if (busno != 0) in titan_ht_config_write_dword()
Dops-titan.c46 int dev, busno, func; in titan_read_config() local
48 busno = bus->number; in titan_read_config()
52 address = (busno << 16) | (dev << 11) | (func << 8) | in titan_read_config()
75 int dev, busno, func; in titan_write_config() local
77 busno = bus->number; in titan_write_config()
81 address = (busno << 16) | (dev << 11) | (func << 8) | in titan_write_config()
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()
Dops-bridge.c108 int busno = bus->number; in pci_conf1_read_config() local
115 bridge->b_pci_cfg = (busno << 16) | (slot << 11); in pci_conf1_read_config()
127 bridge->b_pci_cfg = (busno << 16) | (slot << 11); in pci_conf1_read_config()
154 bridge->b_pci_cfg = (busno << 16) | (slot << 11); in pci_conf1_read_config()
249 int busno = bus->number; in pci_conf1_write_config() local
254 bridge->b_pci_cfg = (busno << 16) | (slot << 11); in pci_conf1_write_config()
/arch/x86/pci/
Dnumaq_32.c125 u8 busno, suba, subb; in pci_fixup_i450nx() local
131 pci_read_config_byte(d, reg++, &busno); in pci_fixup_i450nx()
135 pxb, busno, suba, subb); in pci_fixup_i450nx()
136 if (busno) { in pci_fixup_i450nx()
138 pci_scan_bus_with_sysdata(QUADLOCAL2BUS(quad, busno)); in pci_fixup_i450nx()
Dfixup.c17 u8 busno, suba, subb; in pci_fixup_i450nx() local
22 pci_read_config_byte(d, reg++, &busno); in pci_fixup_i450nx()
25 dev_dbg(&d->dev, "i450NX PXB %d: %02x/%02x/%02x\n", pxb, busno, in pci_fixup_i450nx()
27 if (busno) in pci_fixup_i450nx()
28 pci_scan_bus_with_sysdata(busno); /* Bus A */ in pci_fixup_i450nx()
42 u8 busno; in pci_fixup_i450gx() local
43 pci_read_config_byte(d, 0x4a, &busno); in pci_fixup_i450gx()
44 dev_info(&d->dev, "i440KX/GX host bridge; secondary bus %02x\n", busno); in pci_fixup_i450gx()
45 pci_scan_bus_with_sysdata(busno); in pci_fixup_i450gx()
Dcommon.c641 struct pci_bus * __devinit pci_scan_bus_on_node(int busno, struct pci_ops *ops, int node) in pci_scan_bus_on_node() argument
654 printk(KERN_ERR "PCI: OOM, skipping PCI bus %02x\n", busno); in pci_scan_bus_on_node()
658 x86_pci_root_bus_resources(busno, &resources); in pci_scan_bus_on_node()
659 bus = pci_scan_root_bus(NULL, busno, ops, sd, &resources); in pci_scan_bus_on_node()
668 struct pci_bus * __devinit pci_scan_bus_with_sysdata(int busno) in pci_scan_bus_with_sysdata() argument
670 return pci_scan_bus_on_node(busno, &pci_root_ops, -1); in pci_scan_bus_with_sysdata()
/arch/powerpc/kernel/
Dprom_parse.c11 unsigned long *busno, unsigned long *phys, unsigned long *size) in of_parse_dma_window() argument
20 *busno = *(dma_window++); in of_parse_dma_window()
Dpci_dn.c59 pdn->busno = (regs[0] >> 16) & 0xff; in update_dn_pci_info()
141 pdn->devfn = pdn->busno = -1; in pci_devs_phb_init_dynamic()
Dio-workarounds.c138 int busno; in iowa_ioremap() local
142 busno = bus - iowa_busses; in iowa_ioremap()
143 PCI_SET_ADDR_TOKEN(res, busno + 1); in iowa_ioremap()
Drtas_pci.c70 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_read_config()
119 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_write_config()
/arch/microblaze/kernel/
Dprom_parse.c12 unsigned long *busno, unsigned long *phys, unsigned long *size) in of_parse_dma_window() argument
21 *busno = *(dma_window++); in of_parse_dma_window()
/arch/sparc/kernel/
Dleon_pci_grpci2.c368 unsigned int busno = bus->number; in grpci2_read_config() local
371 if (PCI_SLOT(devfn) > 15 || (PCI_SLOT(devfn) == 0 && busno == 0)) { in grpci2_read_config()
378 ret = grpci2_cfg_r8(priv, busno, devfn, where, val); in grpci2_read_config()
381 ret = grpci2_cfg_r16(priv, busno, devfn, where, val); in grpci2_read_config()
384 ret = grpci2_cfg_r32(priv, busno, devfn, where, val); in grpci2_read_config()
393 "size=%d\n", busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, in grpci2_read_config()
407 unsigned int busno = bus->number; in grpci2_write_config() local
409 if (PCI_SLOT(devfn) > 15 || (PCI_SLOT(devfn) == 0 && busno == 0)) in grpci2_write_config()
414 "val=%x\n", busno, PCI_SLOT(devfn), PCI_FUNC(devfn), in grpci2_write_config()
422 return grpci2_cfg_w8(priv, busno, devfn, where, val); in grpci2_write_config()
[all …]
Dpcic.c57 unsigned char busno; /* PCI bus number */ member
174 static int pcic_read_config_dword(unsigned int busno, unsigned int devfn, in pcic_read_config_dword() argument
187 writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr); in pcic_read_config_dword()
235 static int pcic_write_config_dword(unsigned int busno, unsigned int devfn, in pcic_write_config_dword() argument
244 writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr); in pcic_write_config_dword()
545 if (p->busno == dev->bus->number && p->devfn == dev->devfn) in pcic_fill_irq()
Dioport.c69 static void __iomem *_sparc_alloc_io(unsigned int busno, unsigned long phys,
179 static void __iomem *_sparc_alloc_io(unsigned int busno, unsigned long phys, in _sparc_alloc_io() argument
210 va = _sparc_ioremap(res, busno, phys, size); in _sparc_alloc_io()
/arch/openrisc/include/asm/
Dprom.h43 unsigned long *busno, unsigned long *phys, unsigned long *size);
/arch/microblaze/include/asm/
Dprom.h49 unsigned long *busno, unsigned long *phys, unsigned long *size);
/arch/powerpc/include/asm/
Dprom.h42 unsigned long *busno, unsigned long *phys, unsigned long *size);
Dpci-bridge.h147 int busno; /* pci bus number */ member
176 *bus = PCI_DN(np)->busno; in pci_device_from_OF_node()
Drtas.h341 static inline u32 rtas_config_addr(int busno, int devfn, int reg) in rtas_config_addr() argument
343 return ((reg & 0xf00) << 20) | ((busno & 0xff) << 16) | in rtas_config_addr()
/arch/x86/include/asm/
Dpci.h27 extern struct pci_bus *pci_scan_bus_on_node(int busno, struct pci_ops *ops,
29 extern struct pci_bus *pci_scan_bus_with_sysdata(int busno);
/arch/arm/mach-cns3xxx/
Dpcie.c66 int busno = bus->number; in cns3xxx_pci_cfg_base() local
73 if (!cnspci->linked && (busno > 0 || slot > 0)) in cns3xxx_pci_cfg_base()
81 if (busno == 0) { in cns3xxx_pci_cfg_base()
90 offset = ((busno & 0xf) << 20) | (devfn << 12) | (where & 0xffc); in cns3xxx_pci_cfg_base()
/arch/mips/include/asm/
Dpci.h47 void (*set_busno)(int busno);
/arch/powerpc/platforms/pasemi/
Dpci.c54 static inline int is_root_port(int busno, int devfn) in is_root_port() argument
56 return ((busno == 0) && (PCI_FUNC(devfn) < 4) && in is_root_port()
/arch/powerpc/platforms/pseries/
Dmsi.c56 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_change_msi()
116 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_query_irq_number()

12