/linux-6.6.21/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-loongson2.c | 34 unsigned int devfn, int where, in loongson_pcibios_config_access() argument 41 int device = PCI_SLOT(devfn); in loongson_pcibios_config_access() 42 int function = PCI_FUNC(devfn); in loongson_pcibios_config_access() 118 static int loongson_pcibios_read(struct pci_bus *bus, unsigned int devfn, in loongson_pcibios_read() argument 128 if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in loongson_pcibios_read() 142 static int loongson_pcibios_write(struct pci_bus *bus, unsigned int devfn, in loongson_pcibios_write() argument 155 if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, in loongson_pcibios_write() 167 if (loongson_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where, in loongson_pcibios_write() 187 u32 devfn = PCI_DEVFN(PCI_IDSEL_CS5536, 0); in _rdmsr() local 191 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-bcm1480ht.c | 38 #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where)) argument 39 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) argument 75 static int bcm1480ht_can_access(struct pci_bus *bus, int devfn) in bcm1480ht_can_access() argument 83 devno = PCI_SLOT(devfn); in bcm1480ht_can_access() 96 static int bcm1480ht_pcibios_read(struct pci_bus *bus, unsigned int devfn, in bcm1480ht_pcibios_read() argument 106 if (bcm1480ht_can_access(bus, devfn)) in bcm1480ht_pcibios_read() 107 data = READCFG32(CFGADDR(bus, devfn, where)); in bcm1480ht_pcibios_read() 121 static int bcm1480ht_pcibios_write(struct pci_bus *bus, unsigned int devfn, in bcm1480ht_pcibios_write() argument 124 u32 cfgaddr = CFGADDR(bus, devfn, where); in bcm1480ht_pcibios_write() 132 if (!bcm1480ht_can_access(bus, devfn)) in bcm1480ht_pcibios_write()
|
D | ops-lantiq.c | 27 unsigned int devfn, unsigned int where, u32 *data) in ltq_pci_config_access() argument 35 if ((bus->number != 0) || ((devfn & 0xf8) > 0x78) in ltq_pci_config_access() 36 || ((devfn & 0xf8) == 0) || ((devfn & 0xf8) == 0x68)) in ltq_pci_config_access() 42 cfg_base |= (bus->number << LTQ_PCI_CFG_BUSNUM_SHF) | (devfn << in ltq_pci_config_access() 71 int ltq_pci_read_config_dword(struct pci_bus *bus, unsigned int devfn, in ltq_pci_read_config_dword() argument 76 if (ltq_pci_config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) in ltq_pci_read_config_dword() 89 int ltq_pci_write_config_dword(struct pci_bus *bus, unsigned int devfn, in ltq_pci_write_config_dword() argument 98 devfn, where, &data)) in ltq_pci_write_config_dword() 109 if (ltq_pci_config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data)) in ltq_pci_write_config_dword()
|
D | ops-gt64xxx_pci0.c | 31 struct pci_bus *bus, unsigned int devfn, int where, u32 * data) in gt64xxx_pci0_pcibios_config_access() argument 36 if ((busnum == 0) && (devfn >= PCI_DEVFN(31, 0))) in gt64xxx_pci0_pcibios_config_access() 46 (devfn << GT_PCI0_CFGADDR_FUNCTNUM_SHF) | in gt64xxx_pci0_pcibios_config_access() 51 if (busnum == 0 && PCI_SLOT(devfn) == 0) { in gt64xxx_pci0_pcibios_config_access() 60 if (busnum == 0 && PCI_SLOT(devfn) == 0) { in gt64xxx_pci0_pcibios_config_access() 91 static int gt64xxx_pci0_pcibios_read(struct pci_bus *bus, unsigned int devfn, in gt64xxx_pci0_pcibios_read() argument 96 if (gt64xxx_pci0_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, in gt64xxx_pci0_pcibios_read() 110 static int gt64xxx_pci0_pcibios_write(struct pci_bus *bus, unsigned int devfn, in gt64xxx_pci0_pcibios_write() argument 119 devfn, where, &data)) in gt64xxx_pci0_pcibios_write() 130 if (gt64xxx_pci0_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, in gt64xxx_pci0_pcibios_write()
|
D | pci-bcm1480.c | 40 #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where)) argument 41 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) argument 84 static int bcm1480_pci_can_access(struct pci_bus *bus, int devfn) in bcm1480_pci_can_access() argument 92 devno = PCI_SLOT(devfn); in bcm1480_pci_can_access() 107 static int bcm1480_pcibios_read(struct pci_bus *bus, unsigned int devfn, in bcm1480_pcibios_read() argument 117 if (bcm1480_pci_can_access(bus, devfn)) in bcm1480_pcibios_read() 118 data = READCFG32(CFGADDR(bus, devfn, where)); in bcm1480_pcibios_read() 132 static int bcm1480_pcibios_write(struct pci_bus *bus, unsigned int devfn, in bcm1480_pcibios_write() argument 135 u32 cfgaddr = CFGADDR(bus, devfn, where); in bcm1480_pcibios_write() 143 if (!bcm1480_pci_can_access(bus, devfn)) in bcm1480_pcibios_write()
|
D | pci-sb1250.c | 40 #define CFGOFFSET(bus, devfn, where) (((bus)<<16) + ((devfn)<<8) + (where)) argument 41 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) argument 91 static int sb1250_pci_can_access(struct pci_bus *bus, int devfn) in sb1250_pci_can_access() argument 99 devno = PCI_SLOT(devfn); in sb1250_pci_can_access() 116 static int sb1250_pcibios_read(struct pci_bus *bus, unsigned int devfn, in sb1250_pcibios_read() argument 126 if (sb1250_pci_can_access(bus, devfn)) in sb1250_pcibios_read() 127 data = READCFG32(CFGADDR(bus, devfn, where)); in sb1250_pcibios_read() 141 static int sb1250_pcibios_write(struct pci_bus *bus, unsigned int devfn, in sb1250_pcibios_write() argument 144 u32 cfgaddr = CFGADDR(bus, devfn, where); in sb1250_pcibios_write() 152 if (!sb1250_pci_can_access(bus, devfn)) in sb1250_pcibios_write()
|
/linux-6.6.21/drivers/pci/hotplug/ |
D | cpci_hotplug_pci.c | 39 slot->devfn, in cpci_get_attention_status() 45 slot->devfn, in cpci_get_attention_status() 59 slot->devfn, in cpci_set_attention_status() 64 slot->devfn, in cpci_set_attention_status() 73 slot->devfn, in cpci_set_attention_status() 86 slot->devfn, in cpci_get_hs_csr() 91 slot->devfn, in cpci_get_hs_csr() 105 slot->devfn, in cpci_check_and_clear_ins() 110 slot->devfn, in cpci_check_and_clear_ins() 117 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() 348 unsigned int devfn; in configure_device() local 352 devfn = PCI_DEVFN(func->device, func->function); in configure_device() 370 pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], 0xFFFFFFFF); in configure_device() 371 pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]); in configure_device() [all …]
|
/linux-6.6.21/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 | 65 static int fixed_bar_cap(struct pci_bus *bus, unsigned int devfn) in fixed_bar_cap() argument 77 devfn, pos, 4, &pcie_cap)) in fixed_bar_cap() 86 devfn, pos + 4, 4, &cap_data); in fixed_bar_cap() 97 static int pci_device_update_fixed(struct pci_bus *bus, unsigned int devfn, in pci_device_update_fixed() argument 110 raw_pci_ext_ops->read(domain, busnum, devfn, in pci_device_update_fixed() 133 return raw_pci_ext_ops->write(domain, busnum, devfn, reg, 4, in pci_device_update_fixed() 138 return raw_pci_ext_ops->write(domain, busnum, devfn, reg, len, val); in pci_device_update_fixed() 152 static bool type1_access_ok(unsigned int bus, unsigned int devfn, int reg) in type1_access_ok() argument 164 if (bus == 0 && (devfn == PCI_DEVFN(2, 0) in type1_access_ok() 165 || devfn == PCI_DEVFN(0, 0) in type1_access_ok() [all …]
|
D | numachip.c | 19 static inline char __iomem *pci_dev_base(unsigned int seg, unsigned int bus, unsigned int devfn) in pci_dev_base() argument 24 return cfg->virt + (PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12)); in pci_dev_base() 29 unsigned int devfn, int reg, int len, u32 *value) in pci_mmcfg_read_numachip() argument 34 if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) { in pci_mmcfg_read_numachip() 40 if (unlikely(bus == 0 && devfn >= limit)) { in pci_mmcfg_read_numachip() 46 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_read_numachip() 69 unsigned int devfn, int reg, int len, u32 value) in pci_mmcfg_write_numachip() argument 74 if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) in pci_mmcfg_write_numachip() 78 if (unlikely(bus == 0 && devfn >= limit)) in pci_mmcfg_write_numachip() 82 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_write_numachip()
|
D | olpc.c | 173 static int is_simulated(unsigned int bus, unsigned int devfn) in is_simulated() argument 175 return (!bus && ((PCI_SLOT(devfn) == NB_SLOT) || in is_simulated() 176 (PCI_SLOT(devfn) == SB_SLOT))); in is_simulated() 201 unsigned int devfn, int reg, int len, uint32_t *value) in pci_olpc_read() argument 208 if (!is_simulated(bus, devfn)) in pci_olpc_read() 209 return pci_direct_conf1.read(seg, bus, devfn, reg, len, value); in pci_olpc_read() 218 switch (devfn) { in pci_olpc_read() 263 unsigned int devfn, int reg, int len, uint32_t value) in pci_olpc_write() argument 268 if (!is_simulated(bus, devfn)) in pci_olpc_write() 269 return pci_direct_conf1.write(seg, bus, devfn, reg, len, value); in pci_olpc_write() [all …]
|
D | mmconfig_32.c | 27 static u32 get_base_addr(unsigned int seg, int bus, unsigned devfn) in get_base_addr() argument 39 static void pci_exp_set_dev_base(unsigned int base, int bus, int devfn) in pci_exp_set_dev_base() argument 41 u32 dev_base = base | PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12); in pci_exp_set_dev_base() 52 unsigned int devfn, int reg, int len, u32 *value) in pci_mmcfg_read() argument 57 if ((bus > 255) || (devfn > 255) || (reg > 4095)) { in pci_mmcfg_read() 63 base = get_base_addr(seg, bus, devfn); in pci_mmcfg_read() 71 pci_exp_set_dev_base(base, bus, devfn); in pci_mmcfg_read() 91 unsigned int devfn, int reg, int len, u32 value) in pci_mmcfg_write() argument 96 if ((bus > 255) || (devfn > 255) || (reg > 4095)) in pci_mmcfg_write() 100 base = get_base_addr(seg, bus, devfn); in pci_mmcfg_write() [all …]
|
/linux-6.6.21/arch/powerpc/platforms/pasemi/ |
D | pci.c | 26 #define PA_PXP_CFA(bus, devfn, off) (((bus) << 20) | ((devfn) << 12) | (off)) argument 28 static inline int pa_pxp_offset_valid(u8 bus, u8 devfn, int offset) in pa_pxp_offset_valid() argument 34 if (bus == 0 && devfn == 0) in pa_pxp_offset_valid() 41 u8 bus, u8 devfn, int offset) in pa_pxp_cfg_addr() argument 43 return hose->cfg_data + PA_PXP_CFA(bus, devfn, offset); in pa_pxp_cfg_addr() 46 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() 49 ((PCI_SLOT(devfn) == 16) || (PCI_SLOT(devfn) == 17))); in is_root_port() 58 static int workaround_5945(struct pci_bus *bus, unsigned int devfn, in workaround_5945() argument 66 if (!is_root_port(bus->number, devfn) || !is_5945_reg(offset)) in workaround_5945() [all …]
|
/linux-6.6.21/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() 57 addr = bus->ops->map_bus(bus, devfn, bar); /* BAR 0 */ in handle_ea_bar() 72 addr = bus->ops->map_bus(bus, devfn, bar + 4); /* BAR 1 */ in handle_ea_bar() 83 static int thunder_ecam_p2_config_read(struct pci_bus *bus, unsigned int devfn, in thunder_ecam_p2_config_read() argument 100 return pci_generic_config_read(bus, devfn, where, size, val); in thunder_ecam_p2_config_read() 103 addr = bus->ops->map_bus(bus, devfn, where_a); in thunder_ecam_p2_config_read() 122 static int thunder_ecam_config_read(struct pci_bus *bus, unsigned int devfn, in thunder_ecam_config_read() argument 132 addr = bus->ops->map_bus(bus, devfn, 0xc); in thunder_ecam_config_read() 141 addr = bus->ops->map_bus(bus, devfn, 8); in thunder_ecam_config_read() [all …]
|
/linux-6.6.21/drivers/platform/x86/ |
D | p2sb.c | 44 static int p2sb_get_devfn(unsigned int *devfn) in p2sb_get_devfn() argument 53 *devfn = fn; in p2sb_get_devfn() 84 static void p2sb_scan_and_cache_devfn(struct pci_bus *bus, unsigned int devfn) in p2sb_scan_and_cache_devfn() argument 86 struct p2sb_res_cache *cache = &p2sb_resources[PCI_FUNC(devfn)]; in p2sb_scan_and_cache_devfn() 89 pdev = pci_scan_single_device(bus, devfn); in p2sb_scan_and_cache_devfn() 99 static int p2sb_scan_and_cache(struct pci_bus *bus, unsigned int devfn) in p2sb_scan_and_cache() argument 103 if (PCI_FUNC(devfn) == 0) { in p2sb_scan_and_cache() 109 slot = PCI_SLOT(devfn); in p2sb_scan_and_cache() 114 p2sb_scan_and_cache_devfn(bus, devfn); in p2sb_scan_and_cache() 117 if (!p2sb_valid_resource(&p2sb_resources[PCI_FUNC(devfn)].res)) in p2sb_scan_and_cache() [all …]
|
/linux-6.6.21/arch/powerpc/platforms/maple/ |
D | pci.c | 81 static unsigned long u3_agp_cfa0(u8 devfn, u8 off) in u3_agp_cfa0() argument 83 return (1 << (unsigned long)PCI_SLOT(devfn)) | in u3_agp_cfa0() 84 ((unsigned long)PCI_FUNC(devfn) << 8) | in u3_agp_cfa0() 88 static unsigned long u3_agp_cfa1(u8 bus, u8 devfn, u8 off) in u3_agp_cfa1() argument 91 ((unsigned long)devfn << 8) | in u3_agp_cfa1() 117 static int u3_agp_read_config(struct pci_bus *bus, unsigned int devfn, in u3_agp_read_config() argument 127 addr = u3_agp_cfg_access(hose, bus->number, devfn, offset); in u3_agp_read_config() 148 static int u3_agp_write_config(struct pci_bus *bus, unsigned int devfn, in u3_agp_write_config() argument 158 addr = u3_agp_cfg_access(hose, bus->number, devfn, offset); in u3_agp_write_config() 185 static unsigned long u3_ht_cfa0(u8 devfn, u8 off) in u3_ht_cfa0() argument [all …]
|
/linux-6.6.21/drivers/xen/ |
D | pci.c | 53 .add.devfn = pci_dev->devfn in xen_add_device() 65 add->physfn.devfn = physfn->devfn; in xen_add_device() 68 if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) in xen_add_device() 119 .devfn = pci_dev->devfn, in xen_add_device() 122 .physfn.devfn = physfn->devfn, in xen_add_device() 129 else if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) { in xen_add_device() 132 .devfn = pci_dev->devfn, in xen_add_device() 141 .devfn = pci_dev->devfn, in xen_add_device() 160 .devfn = pci_dev->devfn in xen_remove_device() 170 .devfn = pci_dev->devfn in xen_remove_device()
|
/linux-6.6.21/arch/sparc/kernel/ |
D | pci_common.c | 22 unsigned long devfn, in config_out_of_range() argument 33 unsigned long devfn, in sun4u_config_mkaddr() argument 38 if (config_out_of_range(pbm, bus, devfn, reg)) in sun4u_config_mkaddr() 42 devfn <<= rbits; in sun4u_config_mkaddr() 45 return (void *) (pbm->config_space | bus | devfn | reg); in sun4u_config_mkaddr() 54 unsigned char bus, unsigned int devfn, in sun4u_read_pci_cfg_host() argument 61 addr = sun4u_config_mkaddr(pbm, bus, devfn, where); in sun4u_read_pci_cfg_host() 96 sun4u_read_pci_cfg_host(pbm, bus, devfn, in sun4u_read_pci_cfg_host() 101 sun4u_read_pci_cfg_host(pbm, bus, devfn, in sun4u_read_pci_cfg_host() 109 static int sun4u_read_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, in sun4u_read_pci_cfg() argument [all …]
|
D | leon_pci_grpci1.c | 104 unsigned int devfn, int where, u32 val); 119 unsigned int devfn, int where, u32 *val) in grpci1_cfg_r32() argument 127 devfn += (0x8 * 6); /* start at AD16=Device0 */ in grpci1_cfg_r32() 130 devfn = 0; /* special case: bridge controller itself */ in grpci1_cfg_r32() 138 pci_conf = (u32 *) (priv->pci_conf | (devfn << 8) | (where & 0xfc)); in grpci1_cfg_r32() 156 unsigned int devfn, int where, u32 *val) in grpci1_cfg_r16() argument 163 ret = grpci1_cfg_r32(priv, bus, devfn, where & ~0x3, &v); in grpci1_cfg_r16() 169 unsigned int devfn, int where, u32 *val) in grpci1_cfg_r8() argument 174 ret = grpci1_cfg_r32(priv, bus, devfn, where & ~0x3, &v); in grpci1_cfg_r8() 181 unsigned int devfn, int where, u32 val) in grpci1_cfg_w32() argument [all …]
|
/linux-6.6.21/arch/powerpc/sysdev/ |
D | indirect_pci.c | 19 unsigned char bus_number, unsigned int devfn, in __indirect_read_config() argument 29 if (devfn != 0) in __indirect_read_config() 34 if (ppc_md.pci_exclude_device(hose, bus_number, devfn)) in __indirect_read_config() 51 (devfn << 8) | reg | cfg_type)); in __indirect_read_config() 54 (devfn << 8) | reg | cfg_type)); in __indirect_read_config() 75 int indirect_read_config(struct pci_bus *bus, unsigned int devfn, in indirect_read_config() argument 80 return __indirect_read_config(hose, bus->number, devfn, offset, len, in indirect_read_config() 84 int indirect_write_config(struct pci_bus *bus, unsigned int devfn, in indirect_write_config() argument 95 if (devfn != 0) in indirect_write_config() 100 if (ppc_md.pci_exclude_device(hose, bus->number, devfn)) in indirect_write_config() [all …]
|
/linux-6.6.21/arch/alpha/kernel/ |
D | sys_miata.c | 185 if((slot == 7) && (PCI_FUNC(dev->devfn) == 3)) { in miata_map_irq() 187 struct pci_dev *pdev = pci_get_slot(dev->bus, dev->devfn & ~7); in miata_map_irq() 207 slot = PCI_SLOT(dev->devfn); in miata_swizzle() 210 else if ((PCI_SLOT(dev->bus->self->devfn) == 8) || in miata_swizzle() 211 (PCI_SLOT(dev->bus->self->devfn) == 20)) { in miata_swizzle() 212 slot = PCI_SLOT(dev->devfn) + 9; in miata_swizzle() 218 if ((PCI_SLOT(dev->bus->self->devfn) == 8) || in miata_swizzle() 219 (PCI_SLOT(dev->bus->self->devfn) == 20)) { in miata_swizzle() 220 slot = PCI_SLOT(dev->devfn) + 9; in miata_swizzle() 228 slot = PCI_SLOT(dev->devfn); in miata_swizzle()
|