/Linux-v4.19/arch/mips/pci/ |
D | ops-rc32434.c | 47 struct pci_bus *bus, unsigned int devfn, in config_access() argument 50 unsigned int slot = PCI_SLOT(devfn); in config_access() 51 u8 func = PCI_FUNC(devfn); in config_access() 72 static int read_config_byte(struct pci_bus *bus, unsigned int devfn, in read_config_byte() argument 78 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); in read_config_byte() 83 static int read_config_word(struct pci_bus *bus, unsigned int devfn, in read_config_word() argument 89 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); in read_config_word() 94 static int read_config_dword(struct pci_bus *bus, unsigned int devfn, in read_config_dword() argument 104 if (bus->number == 0 && PCI_SLOT(devfn) > 21) in read_config_dword() 108 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, val); in read_config_dword() [all …]
|
D | ops-sni.c | 24 static int set_config_address(unsigned int busno, unsigned int devfn, int reg) in set_config_address() argument 26 if ((devfn > 255) || (reg > 255)) in set_config_address() 29 if (busno == 0 && devfn >= PCI_DEVFN(8, 0)) in set_config_address() 34 ((devfn & 0xff) << 8) | in set_config_address() 40 static int pcimt_read(struct pci_bus *bus, unsigned int devfn, int reg, in pcimt_read() argument 45 if ((res = set_config_address(bus->number, devfn, reg))) in pcimt_read() 63 static int pcimt_write(struct pci_bus *bus, unsigned int devfn, int reg, in pcimt_write() argument 68 if ((res = set_config_address(bus->number, devfn, reg))) in pcimt_write() 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() [all …]
|
D | ops-emma2rh.c | 39 static int check_args(struct pci_bus *bus, u32 devfn, u32 * bus_num) in check_args() argument 49 if (PCI_SLOT(devfn) >= 10) in check_args() 53 if ((*bus_num >= 64) || (PCI_SLOT(devfn) >= 16)) in check_args() 60 unsigned int devfn, int where) in set_pci_configuration_address() argument 69 config_win0 = (1 << (22 + PCI_SLOT(devfn))) | (5 << 9); in set_pci_configuration_address() 74 config_win0 = (bus_num << 26) | (PCI_SLOT(devfn) << 22) | in set_pci_configuration_address() 82 static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, in pci_config_read() argument 92 if (check_args(bus, devfn, &bus_num) == PCIBIOS_DEVICE_NOT_FOUND) in pci_config_read() 97 if (set_pci_configuration_address(bus_num, devfn, where) < 0) in pci_config_read() 101 *(volatile u32 *)(base + (PCI_FUNC(devfn) << 8) + in pci_config_read() [all …]
|
D | ops-pmcmsp.c | 338 unsigned int devfn, in msp_pcibios_config_access() argument 344 unsigned char dev_fn = (unsigned char)devfn; in msp_pcibios_config_access() 467 unsigned int devfn, in msp_pcibios_read_config_byte() argument 478 if (msp_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, in msp_pcibios_read_config_byte() 515 unsigned int devfn, in msp_pcibios_read_config_word() argument 537 if (msp_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, in msp_pcibios_read_config_word() 572 unsigned int devfn, in msp_pcibios_read_config_dword() argument 589 if (msp_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, in msp_pcibios_read_config_dword() 625 unsigned int devfn, in msp_pcibios_write_config_byte() argument 632 if (msp_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, in msp_pcibios_write_config_byte() [all …]
|
D | ops-loongson2.c | 37 unsigned int devfn, int where, in loongson_pcibios_config_access() argument 44 int device = PCI_SLOT(devfn); in loongson_pcibios_config_access() 45 int function = PCI_FUNC(devfn); in loongson_pcibios_config_access() 121 static int loongson_pcibios_read(struct pci_bus *bus, unsigned int devfn, in loongson_pcibios_read() argument 131 if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in loongson_pcibios_read() 145 static int loongson_pcibios_write(struct pci_bus *bus, unsigned int devfn, in loongson_pcibios_write() argument 158 if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, in loongson_pcibios_write() 170 if (loongson_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where, in loongson_pcibios_write() 190 u32 devfn = PCI_DEVFN(PCI_IDSEL_CS5536, 0); in _rdmsr() local 194 loongson_pcibios_write(&bus, devfn, PCI_MSR_ADDR, 4, msr); in _rdmsr() [all …]
|
D | ops-bcm63xx.c | 65 unsigned int devfn, int where) in bcm63xx_setup_cfg_access() argument 70 slot = PCI_SLOT(devfn); in bcm63xx_setup_cfg_access() 71 func = PCI_FUNC(devfn); in bcm63xx_setup_cfg_access() 101 unsigned int devfn, int where, int size, in bcm63xx_do_cfg_read() argument 109 if (bcm63xx_setup_cfg_access(type, busn, devfn, where)) in bcm63xx_do_cfg_read() 122 unsigned int devfn, int where, int size, in bcm63xx_do_cfg_write() argument 130 if (bcm63xx_setup_cfg_access(type, busn, devfn, where)) in bcm63xx_do_cfg_write() 147 static int bcm63xx_pci_read(struct pci_bus *bus, unsigned int devfn, in bcm63xx_pci_read() argument 154 if (type == 0 && PCI_SLOT(devfn) == CARDBUS_PCI_IDSEL) in bcm63xx_pci_read() 157 return bcm63xx_do_cfg_read(type, bus->number, devfn, in bcm63xx_pci_read() [all …]
|
D | pci-xlp.c | 60 #define pci_cfg_addr(bus, devfn, off) (((bus) << 20) | ((devfn) << 12) | (off)) argument 63 static inline u32 pci_cfg_read_32bit(struct pci_bus *bus, unsigned int devfn, in pci_cfg_read_32bit() argument 74 if (PCI_SLOT(devfn) != 0 || in pci_cfg_read_32bit() 75 !nlm_node_present(PCI_FUNC(devfn))) in pci_cfg_read_32bit() 78 if (PCI_SLOT(devfn) == 0) /* b.0.0 hangs */ in pci_cfg_read_32bit() 80 if (devfn == 44) /* b.5.4 hangs */ in pci_cfg_read_32bit() 83 } else if (bus->number == 0 && PCI_SLOT(devfn) == 1 && where == 0x954) { in pci_cfg_read_32bit() 87 pci_cfg_addr(bus->number, devfn, where)); in pci_cfg_read_32bit() 92 static inline void pci_cfg_write_32bit(struct pci_bus *bus, unsigned int devfn, in pci_cfg_write_32bit() argument 98 pci_cfg_addr(bus->number, devfn, where & ~3)); in pci_cfg_write_32bit() [all …]
|
D | pci-bcm1480ht.c | 51 #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where)) argument 52 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) argument 88 static int bcm1480ht_can_access(struct pci_bus *bus, int devfn) in bcm1480ht_can_access() argument 96 devno = PCI_SLOT(devfn); in bcm1480ht_can_access() 109 static int bcm1480ht_pcibios_read(struct pci_bus *bus, unsigned int devfn, in bcm1480ht_pcibios_read() argument 119 if (bcm1480ht_can_access(bus, devfn)) in bcm1480ht_pcibios_read() 120 data = READCFG32(CFGADDR(bus, devfn, where)); in bcm1480ht_pcibios_read() 134 static int bcm1480ht_pcibios_write(struct pci_bus *bus, unsigned int devfn, in bcm1480ht_pcibios_write() argument 137 u32 cfgaddr = CFGADDR(bus, devfn, where); in bcm1480ht_pcibios_write() 145 if (!bcm1480ht_can_access(bus, devfn)) in bcm1480ht_pcibios_write()
|
D | ops-nile4.c | 18 struct pci_bus *bus, unsigned int devfn, int where, u32 *val) in nile4_pcibios_config_access() argument 23 if ((busnum == 0) && (PCI_SLOT(devfn) > 8)) in nile4_pcibios_config_access() 29 if ((busnum == 0) && (devfn == PCI_DEVFN(0, 0))) { in nile4_pcibios_config_access() 52 ((1 << (PCI_SLOT(devfn) + 15)) | (PCI_FUNC(devfn) << 8) in nile4_pcibios_config_access() 55 adr = KSEG1ADDR(PCI_WINDOW1) | (busnum << 16) | (devfn << 8) | in nile4_pcibios_config_access() 75 static int nile4_pcibios_read(struct pci_bus *bus, unsigned int devfn, in nile4_pcibios_read() argument 86 err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in nile4_pcibios_read() 101 static int nile4_pcibios_write(struct pci_bus *bus, unsigned int devfn, in nile4_pcibios_write() argument 112 err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in nile4_pcibios_write() 127 (PCI_ACCESS_WRITE, bus, devfn, where, &data)) in nile4_pcibios_write()
|
D | ops-gt64xxx_pci0.c | 43 struct pci_bus *bus, unsigned int devfn, int where, u32 * data) in gt64xxx_pci0_pcibios_config_access() argument 48 if ((busnum == 0) && (devfn >= PCI_DEVFN(31, 0))) in gt64xxx_pci0_pcibios_config_access() 58 (devfn << GT_PCI0_CFGADDR_FUNCTNUM_SHF) | in gt64xxx_pci0_pcibios_config_access() 63 if (busnum == 0 && PCI_SLOT(devfn) == 0) { in gt64xxx_pci0_pcibios_config_access() 72 if (busnum == 0 && PCI_SLOT(devfn) == 0) { in gt64xxx_pci0_pcibios_config_access() 103 static int gt64xxx_pci0_pcibios_read(struct pci_bus *bus, unsigned int devfn, in gt64xxx_pci0_pcibios_read() argument 108 if (gt64xxx_pci0_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, in gt64xxx_pci0_pcibios_read() 122 static int gt64xxx_pci0_pcibios_write(struct pci_bus *bus, unsigned int devfn, in gt64xxx_pci0_pcibios_write() argument 131 devfn, where, &data)) in gt64xxx_pci0_pcibios_write() 142 if (gt64xxx_pci0_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, in gt64xxx_pci0_pcibios_write()
|
D | ops-lantiq.c | 29 unsigned int devfn, unsigned int where, u32 *data) in ltq_pci_config_access() argument 37 if ((bus->number != 0) || ((devfn & 0xf8) > 0x78) in ltq_pci_config_access() 38 || ((devfn & 0xf8) == 0) || ((devfn & 0xf8) == 0x68)) in ltq_pci_config_access() 44 cfg_base |= (bus->number << LTQ_PCI_CFG_BUSNUM_SHF) | (devfn << in ltq_pci_config_access() 73 int ltq_pci_read_config_dword(struct pci_bus *bus, unsigned int devfn, in ltq_pci_read_config_dword() argument 78 if (ltq_pci_config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) in ltq_pci_read_config_dword() 91 int ltq_pci_write_config_dword(struct pci_bus *bus, unsigned int devfn, in ltq_pci_write_config_dword() argument 100 devfn, where, &data)) in ltq_pci_write_config_dword() 111 if (ltq_pci_config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data)) in ltq_pci_write_config_dword()
|
D | ops-vr41xx.c | 36 unsigned int devfn, int where) in set_pci_configuration_address() argument 42 if (PCI_SLOT(devfn) < 11 || where > 0xff) in set_pci_configuration_address() 45 writel((1U << PCI_SLOT(devfn)) | (PCI_FUNC(devfn) << 8) | in set_pci_configuration_address() 54 writel(((uint32_t)number << 16) | ((devfn & 0xff) << 8) | in set_pci_configuration_address() 61 static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, in pci_config_read() argument 67 if (set_pci_configuration_address(bus->number, devfn, where) < 0) in pci_config_read() 89 static int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, in pci_config_write() argument 95 if (set_pci_configuration_address(bus->number, devfn, where) < 0) in pci_config_write()
|
/Linux-v4.19/drivers/pci/hotplug/ |
D | cpci_hotplug_pci.c | 41 slot->devfn, in cpci_get_attention_status() 47 slot->devfn, in cpci_get_attention_status() 61 slot->devfn, in cpci_set_attention_status() 66 slot->devfn, in cpci_set_attention_status() 75 slot->devfn, in cpci_set_attention_status() 88 slot->devfn, in cpci_get_hs_csr() 93 slot->devfn, in cpci_get_hs_csr() 107 slot->devfn, in cpci_check_and_clear_ins() 112 slot->devfn, in cpci_check_and_clear_ins() 119 slot->devfn, in cpci_check_and_clear_ins() [all …]
|
D | ibmphp_pci.c | 93 unsigned int devfn = PCI_DEVFN(device, function); in ibmphp_configure_card() local 101 pci_bus_read_config_word(ibmphp_pci_bus, devfn, PCI_VENDOR_ID, &vendor_id); in ibmphp_configure_card() 115 pci_bus_read_config_byte(ibmphp_pci_bus, devfn, PCI_HEADER_TYPE, &hdr_type); in ibmphp_configure_card() 116 pci_bus_read_config_dword(ibmphp_pci_bus, devfn, PCI_CLASS_REVISION, &class); in ibmphp_configure_card() 188 pci_bus_read_config_byte(ibmphp_pci_bus, devfn, PCI_SECONDARY_BUS, &sec_number); in ibmphp_configure_card() 258 pci_bus_read_config_byte(ibmphp_pci_bus, devfn, PCI_SECONDARY_BUS, &sec_number); in ibmphp_configure_card() 349 unsigned int devfn; in configure_device() local 353 devfn = PCI_DEVFN(func->device, func->function); in configure_device() 371 pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], 0xFFFFFFFF); in configure_device() 372 pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]); in configure_device() [all …]
|
/Linux-v4.19/arch/powerpc/platforms/pasemi/ |
D | pci.c | 36 #define PA_PXP_CFA(bus, devfn, off) (((bus) << 20) | ((devfn) << 12) | (off)) argument 38 static inline int pa_pxp_offset_valid(u8 bus, u8 devfn, int offset) in pa_pxp_offset_valid() argument 44 if (bus == 0 && devfn == 0) in pa_pxp_offset_valid() 51 u8 bus, u8 devfn, int offset) in pa_pxp_cfg_addr() argument 53 return hose->cfg_data + PA_PXP_CFA(bus, devfn, offset); in pa_pxp_cfg_addr() 56 static inline int is_root_port(int busno, int devfn) in is_root_port() argument 58 return ((busno == 0) && (PCI_FUNC(devfn) < 4) && in is_root_port() 59 ((PCI_SLOT(devfn) == 16) || (PCI_SLOT(devfn) == 17))); in is_root_port() 68 static int workaround_5945(struct pci_bus *bus, unsigned int devfn, in workaround_5945() argument 76 if (!is_root_port(bus->number, devfn) || !is_5945_reg(offset)) in workaround_5945() [all …]
|
/Linux-v4.19/arch/x86/pci/ |
D | direct.c | 17 #define PCI_CONF1_ADDRESS(bus, devfn, reg) \ argument 19 | (devfn << 8) | (reg & 0xFC)) 22 unsigned int devfn, int reg, int len, u32 *value) in pci_conf1_read() argument 26 if (seg || (bus > 255) || (devfn > 255) || (reg > 4095)) { in pci_conf1_read() 33 outl(PCI_CONF1_ADDRESS(bus, devfn, reg), 0xCF8); in pci_conf1_read() 53 unsigned int devfn, int reg, int len, u32 value) in pci_conf1_write() argument 57 if (seg || (bus > 255) || (devfn > 255) || (reg > 4095)) in pci_conf1_write() 62 outl(PCI_CONF1_ADDRESS(bus, devfn, reg), 0xCF8); in pci_conf1_write() 96 unsigned int devfn, int reg, int len, u32 *value) in pci_conf2_read() argument 102 if ((bus > 255) || (devfn > 255) || (reg > 255)) { in pci_conf2_read() [all …]
|
D | intel_mid_pci.c | 62 static int fixed_bar_cap(struct pci_bus *bus, unsigned int devfn) in fixed_bar_cap() argument 74 devfn, pos, 4, &pcie_cap)) in fixed_bar_cap() 83 devfn, pos + 4, 4, &cap_data); in fixed_bar_cap() 94 static int pci_device_update_fixed(struct pci_bus *bus, unsigned int devfn, in pci_device_update_fixed() argument 107 raw_pci_ext_ops->read(domain, busnum, devfn, in pci_device_update_fixed() 130 return raw_pci_ext_ops->write(domain, busnum, devfn, reg, 4, in pci_device_update_fixed() 135 return raw_pci_ext_ops->write(domain, busnum, devfn, reg, len, val); in pci_device_update_fixed() 148 static bool type1_access_ok(unsigned int bus, unsigned int devfn, int reg) in type1_access_ok() argument 160 if (bus == 0 && (devfn == PCI_DEVFN(2, 0) in type1_access_ok() 161 || devfn == PCI_DEVFN(0, 0) in type1_access_ok() [all …]
|
D | numachip.c | 21 static inline char __iomem *pci_dev_base(unsigned int seg, unsigned int bus, unsigned int devfn) in pci_dev_base() argument 26 return cfg->virt + (PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12)); in pci_dev_base() 31 unsigned int devfn, int reg, int len, u32 *value) in pci_mmcfg_read_numachip() argument 36 if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) { in pci_mmcfg_read_numachip() 42 if (unlikely(bus == 0 && devfn >= limit)) { in pci_mmcfg_read_numachip() 48 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_read_numachip() 71 unsigned int devfn, int reg, int len, u32 value) in pci_mmcfg_write_numachip() argument 76 if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) in pci_mmcfg_write_numachip() 80 if (unlikely(bus == 0 && devfn >= limit)) in pci_mmcfg_write_numachip() 84 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_write_numachip()
|
D | mmconfig_32.c | 28 static u32 get_base_addr(unsigned int seg, int bus, unsigned devfn) in get_base_addr() argument 40 static void pci_exp_set_dev_base(unsigned int base, int bus, int devfn) in pci_exp_set_dev_base() argument 42 u32 dev_base = base | PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12); in pci_exp_set_dev_base() 53 unsigned int devfn, int reg, int len, u32 *value) in pci_mmcfg_read() argument 58 if ((bus > 255) || (devfn > 255) || (reg > 4095)) { in pci_mmcfg_read() 64 base = get_base_addr(seg, bus, devfn); in pci_mmcfg_read() 72 pci_exp_set_dev_base(base, bus, devfn); in pci_mmcfg_read() 92 unsigned int devfn, int reg, int len, u32 value) in pci_mmcfg_write() argument 97 if ((bus > 255) || (devfn > 255) || (reg > 4095)) in pci_mmcfg_write() 101 base = get_base_addr(seg, bus, devfn); in pci_mmcfg_write() [all …]
|
D | olpc.c | 177 static int is_simulated(unsigned int bus, unsigned int devfn) in is_simulated() argument 179 return (!bus && ((PCI_SLOT(devfn) == NB_SLOT) || in is_simulated() 180 (PCI_SLOT(devfn) == SB_SLOT))); in is_simulated() 205 unsigned int devfn, int reg, int len, uint32_t *value) in pci_olpc_read() argument 212 if (!is_simulated(bus, devfn)) in pci_olpc_read() 213 return pci_direct_conf1.read(seg, bus, devfn, reg, len, value); in pci_olpc_read() 222 switch (devfn) { in pci_olpc_read() 267 unsigned int devfn, int reg, int len, uint32_t value) in pci_olpc_write() argument 272 if (!is_simulated(bus, devfn)) in pci_olpc_write() 273 return pci_direct_conf1.write(seg, bus, devfn, reg, len, value); in pci_olpc_write() [all …]
|
/Linux-v4.19/drivers/pci/controller/ |
D | pci-thunder-ecam.c | 30 unsigned int devfn, int where, int size, u32 *val) in handle_ea_bar() argument 43 addr = bus->ops->map_bus(bus, devfn, bar); /* BAR 0 */ in handle_ea_bar() 58 addr = bus->ops->map_bus(bus, devfn, bar); /* BAR 0 */ in handle_ea_bar() 74 addr = bus->ops->map_bus(bus, devfn, bar + 4); /* BAR 1 */ in handle_ea_bar() 86 static int thunder_ecam_p2_config_read(struct pci_bus *bus, unsigned int devfn, in thunder_ecam_p2_config_read() argument 103 return pci_generic_config_read(bus, devfn, where, size, val); in thunder_ecam_p2_config_read() 106 addr = bus->ops->map_bus(bus, devfn, where_a); in thunder_ecam_p2_config_read() 127 static int thunder_ecam_config_read(struct pci_bus *bus, unsigned int devfn, in thunder_ecam_config_read() argument 137 addr = bus->ops->map_bus(bus, devfn, 0xc); in thunder_ecam_config_read() 148 addr = bus->ops->map_bus(bus, devfn, 8); in thunder_ecam_config_read() [all …]
|
/Linux-v4.19/drivers/xen/ |
D | pci.c | 51 .add.devfn = pci_dev->devfn in xen_add_device() 63 add->physfn.devfn = physfn->devfn; in xen_add_device() 66 if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) in xen_add_device() 117 .devfn = pci_dev->devfn, in xen_add_device() 120 .physfn.devfn = physfn->devfn, in xen_add_device() 127 else if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) { in xen_add_device() 130 .devfn = pci_dev->devfn, in xen_add_device() 139 .devfn = pci_dev->devfn, in xen_add_device() 158 .devfn = pci_dev->devfn in xen_remove_device() 168 .devfn = pci_dev->devfn in xen_remove_device()
|
/Linux-v4.19/arch/powerpc/platforms/maple/ |
D | pci.c | 85 static unsigned long u3_agp_cfa0(u8 devfn, u8 off) in u3_agp_cfa0() argument 87 return (1 << (unsigned long)PCI_SLOT(devfn)) | in u3_agp_cfa0() 88 ((unsigned long)PCI_FUNC(devfn) << 8) | in u3_agp_cfa0() 92 static unsigned long u3_agp_cfa1(u8 bus, u8 devfn, u8 off) in u3_agp_cfa1() argument 95 ((unsigned long)devfn << 8) | in u3_agp_cfa1() 121 static int u3_agp_read_config(struct pci_bus *bus, unsigned int devfn, in u3_agp_read_config() argument 131 addr = u3_agp_cfg_access(hose, bus->number, devfn, offset); in u3_agp_read_config() 152 static int u3_agp_write_config(struct pci_bus *bus, unsigned int devfn, in u3_agp_write_config() argument 162 addr = u3_agp_cfg_access(hose, bus->number, devfn, offset); in u3_agp_write_config() 189 static unsigned long u3_ht_cfa0(u8 devfn, u8 off) in u3_ht_cfa0() argument [all …]
|
/Linux-v4.19/arch/sparc/kernel/ |
D | pci_common.c | 21 unsigned long devfn, in config_out_of_range() argument 32 unsigned long devfn, in sun4u_config_mkaddr() argument 37 if (config_out_of_range(pbm, bus, devfn, reg)) in sun4u_config_mkaddr() 41 devfn <<= rbits; in sun4u_config_mkaddr() 44 return (void *) (pbm->config_space | bus | devfn | reg); in sun4u_config_mkaddr() 53 unsigned char bus, unsigned int devfn, in sun4u_read_pci_cfg_host() argument 60 addr = sun4u_config_mkaddr(pbm, bus, devfn, where); in sun4u_read_pci_cfg_host() 95 sun4u_read_pci_cfg_host(pbm, bus, devfn, in sun4u_read_pci_cfg_host() 100 sun4u_read_pci_cfg_host(pbm, bus, devfn, in sun4u_read_pci_cfg_host() 108 static int sun4u_read_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, in sun4u_read_pci_cfg() argument [all …]
|
/Linux-v4.19/arch/alpha/kernel/ |
D | sys_miata.c | 184 if((slot == 7) && (PCI_FUNC(dev->devfn) == 3)) { in miata_map_irq() 186 struct pci_dev *pdev = pci_get_slot(dev->bus, dev->devfn & ~7); in miata_map_irq() 206 slot = PCI_SLOT(dev->devfn); in miata_swizzle() 209 else if ((PCI_SLOT(dev->bus->self->devfn) == 8) || in miata_swizzle() 210 (PCI_SLOT(dev->bus->self->devfn) == 20)) { in miata_swizzle() 211 slot = PCI_SLOT(dev->devfn) + 9; in miata_swizzle() 217 if ((PCI_SLOT(dev->bus->self->devfn) == 8) || in miata_swizzle() 218 (PCI_SLOT(dev->bus->self->devfn) == 20)) { in miata_swizzle() 219 slot = PCI_SLOT(dev->devfn) + 9; in miata_swizzle() 227 slot = PCI_SLOT(dev->devfn); in miata_swizzle()
|