Home
last modified time | relevance | path

Searched defs:devfn (Results 1 – 25 of 222) sorted by relevance

123456789

/linux-6.6.21/arch/mips/pci/
Dops-rc32434.c47 struct pci_bus *bus, unsigned int devfn, in config_access()
72 static int read_config_byte(struct pci_bus *bus, unsigned int devfn, in read_config_byte()
83 static int read_config_word(struct pci_bus *bus, unsigned int devfn, in read_config_word()
94 static int read_config_dword(struct pci_bus *bus, unsigned int devfn, in read_config_dword()
129 write_config_byte(struct pci_bus *bus, unsigned int devfn, int where, in write_config_byte()
148 write_config_word(struct pci_bus *bus, unsigned int devfn, int where, in write_config_word()
168 write_config_dword(struct pci_bus *bus, unsigned int devfn, int where, in write_config_dword()
177 static int pci_config_read(struct pci_bus *bus, unsigned int devfn, in pci_config_read()
190 static int pci_config_write(struct pci_bus *bus, unsigned int devfn, in pci_config_write()
Dops-sni.c24 static int set_config_address(unsigned int busno, unsigned int devfn, int reg) in set_config_address()
40 static int pcimt_read(struct pci_bus *bus, unsigned int devfn, int reg, in pcimt_read()
63 static int pcimt_write(struct pci_bus *bus, unsigned int devfn, int reg, in pcimt_write()
91 static int pcit_set_config_address(unsigned int busno, unsigned int devfn, int reg) in pcit_set_config_address()
100 static int pcit_read(struct pci_bus *bus, unsigned int devfn, int reg, in pcit_read()
137 static int pcit_write(struct pci_bus *bus, unsigned int devfn, int reg, in pcit_write()
Dops-bcm63xx.c65 unsigned int devfn, int where) in bcm63xx_setup_cfg_access()
101 unsigned int devfn, int where, int size, in bcm63xx_do_cfg_read()
122 unsigned int devfn, int where, int size, in bcm63xx_do_cfg_write()
147 static int bcm63xx_pci_read(struct pci_bus *bus, unsigned int devfn, in bcm63xx_pci_read()
161 static int bcm63xx_pci_write(struct pci_bus *bus, unsigned int devfn, in bcm63xx_pci_write()
362 static int bcm63xx_cb_read(struct pci_bus *bus, unsigned int devfn, in bcm63xx_cb_read()
386 static int bcm63xx_cb_write(struct pci_bus *bus, unsigned int devfn, in bcm63xx_cb_write()
468 static int bcm63xx_pcie_can_access(struct pci_bus *bus, int devfn) in bcm63xx_pcie_can_access()
483 static int bcm63xx_pcie_read(struct pci_bus *bus, unsigned int devfn, in bcm63xx_pcie_read()
503 static int bcm63xx_pcie_write(struct pci_bus *bus, unsigned int devfn, in bcm63xx_pcie_write()
Dpci-bcm1480ht.c38 #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()
96 static int bcm1480ht_pcibios_read(struct pci_bus *bus, unsigned int devfn, in bcm1480ht_pcibios_read()
121 static int bcm1480ht_pcibios_write(struct pci_bus *bus, unsigned int devfn, in bcm1480ht_pcibios_write()
Dops-loongson2.c34 unsigned int devfn, int where, in loongson_pcibios_config_access()
118 static int loongson_pcibios_read(struct pci_bus *bus, unsigned int devfn, in loongson_pcibios_read()
142 static int loongson_pcibios_write(struct pci_bus *bus, unsigned int devfn, in loongson_pcibios_write()
187 u32 devfn = PCI_DEVFN(PCI_IDSEL_CS5536, 0); in _rdmsr() local
203 u32 devfn = PCI_DEVFN(PCI_IDSEL_CS5536, 0); in _wrmsr() local
Dpci-bcm1480.c40 #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()
107 static int bcm1480_pcibios_read(struct pci_bus *bus, unsigned int devfn, in bcm1480_pcibios_read()
132 static int bcm1480_pcibios_write(struct pci_bus *bus, unsigned int devfn, in bcm1480_pcibios_write()
Dpci-sb1250.c40 #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()
116 static int sb1250_pcibios_read(struct pci_bus *bus, unsigned int devfn, in sb1250_pcibios_read()
141 static int sb1250_pcibios_write(struct pci_bus *bus, unsigned int devfn, in sb1250_pcibios_write()
Dpci-alchemy.c188 static int read_config_byte(struct pci_bus *bus, unsigned int devfn, in read_config_byte()
202 static int read_config_word(struct pci_bus *bus, unsigned int devfn, in read_config_word()
214 static int read_config_dword(struct pci_bus *bus, unsigned int devfn, in read_config_dword()
220 static int write_config_byte(struct pci_bus *bus, unsigned int devfn, in write_config_byte()
237 static int write_config_word(struct pci_bus *bus, unsigned int devfn, in write_config_word()
254 static int write_config_dword(struct pci_bus *bus, unsigned int devfn, in write_config_dword()
260 static int alchemy_pci_read(struct pci_bus *bus, unsigned int devfn, in alchemy_pci_read()
283 static int alchemy_pci_write(struct pci_bus *bus, unsigned int devfn, in alchemy_pci_write()
Dops-mace.c30 static inline int mkaddr(struct pci_bus *bus, unsigned int devfn, in mkaddr()
40 mace_pci_read_config(struct pci_bus *bus, unsigned int devfn, in mace_pci_read_config()
76 mace_pci_write_config(struct pci_bus *bus, unsigned int devfn, in mace_pci_write_config()
Dops-lantiq.c27 unsigned int devfn, unsigned int where, u32 *data) 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()
89 int ltq_pci_write_config_dword(struct pci_bus *bus, unsigned int devfn, in ltq_pci_write_config_dword()
Dops-msc.c34 struct pci_bus *bus, unsigned int devfn, int where, u32 * data) in msc_pcibios_config_access()
75 static int msc_pcibios_read(struct pci_bus *bus, unsigned int devfn, in msc_pcibios_read()
99 static int msc_pcibios_write(struct pci_bus *bus, unsigned int devfn, in msc_pcibios_write()
/linux-6.6.21/arch/powerpc/platforms/maple/
Dpci.c81 static unsigned long u3_agp_cfa0(u8 devfn, u8 off) in u3_agp_cfa0()
88 static unsigned long u3_agp_cfa1(u8 bus, u8 devfn, u8 off) in u3_agp_cfa1()
117 static int u3_agp_read_config(struct pci_bus *bus, unsigned int devfn, in u3_agp_read_config()
148 static int u3_agp_write_config(struct pci_bus *bus, unsigned int devfn, in u3_agp_write_config()
185 static unsigned long u3_ht_cfa0(u8 devfn, u8 off) in u3_ht_cfa0()
190 static unsigned long u3_ht_cfa1(u8 bus, u8 devfn, u8 off) in u3_ht_cfa1()
196 u8 bus, u8 devfn, u8 offset) in u3_ht_cfg_access()
254 static int u3_ht_read_config(struct pci_bus *bus, unsigned int devfn, in u3_ht_read_config()
292 static int u3_ht_write_config(struct pci_bus *bus, unsigned int devfn, in u3_ht_write_config()
335 static unsigned int u4_pcie_cfa0(unsigned int devfn, unsigned int off) in u4_pcie_cfa0()
[all …]
/linux-6.6.21/arch/powerpc/platforms/pasemi/
Dpci.c26 #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()
41 u8 bus, u8 devfn, int offset) in pa_pxp_cfg_addr()
46 static inline int is_root_port(int busno, int devfn) in is_root_port()
58 static int workaround_5945(struct pci_bus *bus, unsigned int devfn, in workaround_5945()
156 static int pa_pxp_read_config(struct pci_bus *bus, unsigned int devfn, in pa_pxp_read_config()
195 static int pa_pxp_write_config(struct pci_bus *bus, unsigned int devfn, in pa_pxp_write_config()
/linux-6.6.21/arch/powerpc/platforms/powermac/
Dpci.c124 #define MACRISC_CFA0(devfn, off) \ argument
129 #define MACRISC_CFA1(bus, devfn, off) \ argument
173 static void __iomem *chaos_map_bus(struct pci_bus *bus, unsigned int devfn, in chaos_map_bus()
230 struct pci_bus *bus, unsigned int devfn) in u3_ht_skip_device()
263 #define U3_HT_CFA0(devfn, off) \ argument
265 #define U3_HT_CFA1(bus, devfn, off) \ argument
271 u8 devfn, u8 offset, int *swap) in u3_ht_cfg_access()
283 static int u3_ht_read_config(struct pci_bus *bus, unsigned int devfn, in u3_ht_read_config()
334 static int u3_ht_write_config(struct pci_bus *bus, unsigned int devfn, in u3_ht_write_config()
383 #define U4_PCIE_CFA0(devfn, off) \ argument
[all …]
/linux-6.6.21/arch/x86/pci/
Ddirect.c17 #define PCI_CONF1_ADDRESS(bus, devfn, reg) \ argument
22 unsigned int devfn, int reg, int len, u32 *value) in pci_conf1_read()
53 unsigned int devfn, int reg, int len, u32 value) in pci_conf1_write()
96 unsigned int devfn, int reg, int len, u32 *value) in pci_conf2_read()
138 unsigned int devfn, int reg, int len, u32 value) in pci_conf2_write()
198 int devfn; in pci_sanity_check() local
Dmmconfig_32.c27 static u32 get_base_addr(unsigned int seg, int bus, unsigned devfn) in get_base_addr()
39 static void pci_exp_set_dev_base(unsigned int base, int bus, int devfn) in pci_exp_set_dev_base()
52 unsigned int devfn, int reg, int len, u32 *value) in pci_mmcfg_read()
91 unsigned int devfn, int reg, int len, u32 value) in pci_mmcfg_write()
Dintel_mid_pci.c65 static int fixed_bar_cap(struct pci_bus *bus, unsigned int devfn) in fixed_bar_cap()
97 static int pci_device_update_fixed(struct pci_bus *bus, unsigned int devfn, in pci_device_update_fixed()
152 static bool type1_access_ok(unsigned int bus, unsigned int devfn, int reg) in type1_access_ok()
171 static int pci_read(struct pci_bus *bus, unsigned int devfn, int where, in pci_read()
181 static int pci_write(struct pci_bus *bus, unsigned int devfn, int where, in pci_write()
Dnumachip.c19 static inline char __iomem *pci_dev_base(unsigned int seg, unsigned int bus, unsigned int devfn) in pci_dev_base()
29 unsigned int devfn, int reg, int len, u32 *value) in pci_mmcfg_read_numachip()
69 unsigned int devfn, int reg, int len, u32 value) in pci_mmcfg_write_numachip()
/linux-6.6.21/arch/sparc/kernel/
Dpci_common.c22 unsigned long devfn, in config_out_of_range()
33 unsigned long devfn, in sun4u_config_mkaddr()
54 unsigned char bus, unsigned int 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()
167 unsigned char bus, unsigned int devfn, in sun4u_write_pci_cfg_host()
213 static int sun4u_write_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, in sun4u_write_pci_cfg()
258 static int sun4v_read_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, in sun4v_read_pci_cfg()
291 static int sun4v_write_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, in sun4v_write_pci_cfg()
/linux-6.6.21/arch/sh/drivers/pci/
Dops-dreamcast.c36 static int gapspci_config_access(unsigned char bus, unsigned int devfn) in gapspci_config_access()
46 static int gapspci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) in gapspci_read()
62 static int gapspci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) in gapspci_write()
Dops-sh4.c16 #define CONFIG_CMD(bus, devfn, where) \ argument
22 static int sh4_pci_read(struct pci_bus *bus, unsigned int devfn, in sh4_pci_read()
60 static int sh4_pci_write(struct pci_bus *bus, unsigned int devfn, in sh4_pci_write()
/linux-6.6.21/drivers/platform/x86/
Dp2sb.c44 static int p2sb_get_devfn(unsigned int *devfn) 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()
99 static int p2sb_scan_and_cache(struct pci_bus *bus, unsigned int devfn) in p2sb_scan_and_cache()
201 int p2sb_bar(struct pci_bus *bus, unsigned int devfn, struct resource *mem) in p2sb_bar()
/linux-6.6.21/drivers/pci/controller/
Dpci-thunder-ecam.c30 unsigned int devfn, int where, int size, u32 *val) 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()
122 static int thunder_ecam_config_read(struct pci_bus *bus, unsigned int devfn, in thunder_ecam_config_read()
319 static int thunder_ecam_config_write(struct pci_bus *bus, unsigned int devfn, in thunder_ecam_config_write()
Dpcie-altera.c58 #define TLP_REQ_ID(bus, devfn) (((bus) << 8) | (devfn)) argument
64 #define TLP_CFG_DW2(bus, devfn, offset) \ argument
158 static bool altera_pcie_hide_rc_bar(struct pci_bus *bus, unsigned int devfn, in altera_pcie_hide_rc_bar()
320 static void get_tlp_header(struct altera_pcie *pcie, u8 bus, u32 devfn, in get_tlp_header()
338 static int tlp_cfg_dword_read(struct altera_pcie *pcie, u8 bus, u32 devfn, in tlp_cfg_dword_read()
351 static int tlp_cfg_dword_write(struct altera_pcie *pcie, u8 bus, u32 devfn, in tlp_cfg_dword_write()
430 unsigned int devfn, int where, int size, in _altera_pcie_cfg_read()
474 unsigned int devfn, int where, int size, in _altera_pcie_cfg_write()
504 static int altera_pcie_cfg_read(struct pci_bus *bus, unsigned int devfn, in altera_pcie_cfg_read()
519 static int altera_pcie_cfg_write(struct pci_bus *bus, unsigned int devfn, in altera_pcie_cfg_write()
[all …]
/linux-6.6.21/drivers/pci/pcie/
Daer_inject.c51 unsigned int devfn; member
78 unsigned int bus, unsigned int devfn, in aer_error_init()
90 unsigned int devfn) in __find_aer_error()
181 static int aer_inj_read(struct pci_bus *bus, unsigned int devfn, int where, in aer_inj_read()
199 static int aer_inj_write(struct pci_bus *bus, unsigned int devfn, int where, in aer_inj_write()
217 static int aer_inj_read_config(struct pci_bus *bus, unsigned int devfn, in aer_inj_read_config()
248 static int aer_inj_write_config(struct pci_bus *bus, unsigned int devfn, in aer_inj_write_config()
327 unsigned int devfn = PCI_DEVFN(einj->dev, einj->fn); in aer_inject() local

123456789