/linux-master/arch/mips/pci/ |
H A D | ops-msc.c | 34 struct pci_bus *bus, unsigned int devfn, int where, u32 * data) 47 ((where / 4) << MSC01_PCI_CFGADDR_RNUM_SHF))); 76 int where, int size, u32 * val) 80 if ((size == 2) && (where & 1)) 82 else if ((size == 4) && (where & 3)) 85 if (msc_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, 90 *val = (data >> ((where & 3) << 3)) & 0xff; 92 *val = (data >> ((where & 3) << 3)) & 0xffff; 100 int where, int size, u32 val) 104 if ((size == 2) && (where 33 msc_pcibios_config_access(unsigned char access_type, struct pci_bus *bus, unsigned int devfn, int where, u32 * data) argument 75 msc_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * val) argument 99 msc_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument [all...] |
H A D | pci-lantiq.h | 12 unsigned int devfn, int where, int size, u32 *val); 14 unsigned int devfn, int where, int size, u32 val);
|
H A D | ops-rc32434.c | 48 unsigned char where, u32 *data) 54 PCI_CFG_SET(bus->number, slot, func, where); 73 int where, u8 *val) 78 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); 79 *val = (data >> ((where & 3) << 3)) & 0xff; 84 int where, u16 *val) 89 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); 90 *val = (data >> ((where & 3) << 3)) & 0xffff; 95 int where, u32 *val) 108 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, va 46 config_access(unsigned char access_type, struct pci_bus *bus, unsigned int devfn, unsigned char where, u32 *data) argument 72 read_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 *val) argument 83 read_config_word(struct pci_bus *bus, unsigned int devfn, int where, u16 *val) argument 94 read_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 *val) argument 129 write_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 val) argument 148 write_config_word(struct pci_bus *bus, unsigned int devfn, int where, u16 val) argument 168 write_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 val) argument 177 pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) argument 190 pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument [all...] |
H A D | ops-gt64xxx_pci0.c | 31 struct pci_bus *bus, unsigned int devfn, int where, u32 * data) 47 ((where / 4) << GT_PCI0_CFGADDR_REGNUM_SHF) | 92 int where, int size, u32 * val) 97 where, &data)) 101 *val = (data >> ((where & 3) << 3)) & 0xff; 103 *val = (data >> ((where & 3) << 3)) & 0xffff; 111 int where, int size, u32 val) 119 devfn, where, &data)) 123 data = (data & ~(0xff << ((where & 3) << 3))) | 124 (val << ((where 30 gt64xxx_pci0_pcibios_config_access(unsigned char access_type, struct pci_bus *bus, unsigned int devfn, int where, u32 * data) argument 91 gt64xxx_pci0_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * val) argument 110 gt64xxx_pci0_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument [all...] |
H A D | ops-bonito64.c | 26 unsigned int devfn, int where, 35 int reg = where & ~3; 90 int where, int size, u32 * val) 94 if ((size == 2) && (where & 1)) 96 else if ((size == 4) && (where & 3)) 99 if (bonito64_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, 104 *val = (data >> ((where & 3) << 3)) & 0xff; 106 *val = (data >> ((where & 3) << 3)) & 0xffff; 114 int where, int size, u32 val) 118 if ((size == 2) && (where 24 bonito64_pcibios_config_access(unsigned char access_type, struct pci_bus *bus, unsigned int devfn, int where, u32 * data) argument 89 bonito64_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * val) argument 113 bonito64_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument [all...] |
H A D | ops-lantiq.c | 27 unsigned int devfn, unsigned int where, u32 *data) 43 LTQ_PCI_CFG_FUNNUM_SHF) | (where & ~0x3); 72 int where, int size, u32 *val) 76 if (ltq_pci_config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) 80 *val = (data >> ((where & 3) << 3)) & 0xff; 82 *val = (data >> ((where & 3) << 3)) & 0xffff; 90 int where, int size, u32 val) 98 devfn, where, &data)) 102 data = (data & ~(0xff << ((where & 3) << 3))) | 103 (val << ((where 26 ltq_pci_config_access(unsigned char access_type, struct pci_bus *bus, unsigned int devfn, unsigned int where, u32 *data) argument 71 ltq_pci_read_config_dword(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) argument 89 ltq_pci_write_config_dword(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument [all...] |
H A D | pci-bcm1480.c | 40 #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where)) 41 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) 108 int where, int size, u32 * val) 112 if ((size == 2) && (where & 1)) 114 else if ((size == 4) && (where & 3)) 118 data = READCFG32(CFGADDR(bus, devfn, where)); 123 *val = (data >> ((where & 3) << 3)) & 0xff; 125 *val = (data >> ((where 107 bcm1480_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * val) argument 132 bcm1480_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument [all...] |
H A D | pci-sb1250.c | 40 #define CFGOFFSET(bus, devfn, where) (((bus)<<16) + ((devfn)<<8) + (where)) 41 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) 117 int where, int size, u32 * val) 121 if ((size == 2) && (where & 1)) 123 else if ((size == 4) && (where & 3)) 127 data = READCFG32(CFGADDR(bus, devfn, where)); 132 *val = (data >> ((where & 3) << 3)) & 0xff; 134 *val = (data >> ((where 116 sb1250_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * val) argument 141 sb1250_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument [all...] |
H A D | pci-bcm1480ht.c | 38 #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where)) 39 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) 97 int where, int size, u32 * val) 101 if ((size == 2) && (where & 1)) 103 else if ((size == 4) && (where & 3)) 107 data = READCFG32(CFGADDR(bus, devfn, where)); 112 *val = (data >> ((where & 3) << 3)) & 0xff; 114 *val = (data >> ((where 96 bcm1480ht_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * val) argument 121 bcm1480ht_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument [all...] |
H A D | ops-loongson2.c | 34 unsigned int devfn, int where, 43 int reg = where & ~3; 119 int where, int size, u32 *val) 123 if ((size == 2) && (where & 1)) 125 else if ((size == 4) && (where & 3)) 128 if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, 133 *val = (data >> ((where & 3) << 3)) & 0xff; 135 *val = (data >> ((where & 3) << 3)) & 0xffff; 143 int where, int size, u32 val) 147 if ((size == 2) && (where 32 loongson_pcibios_config_access(unsigned char access_type, struct pci_bus *bus, unsigned int devfn, int where, u32 *data) argument 118 loongson_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) argument 142 loongson_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument [all...] |
H A D | ops-bcm63xx.c | 20 static int postprocess_read(u32 data, int where, unsigned int size) argument 27 ret = (data >> ((where & 3) << 3)) & 0xff; 30 ret = (data >> ((where & 3) << 3)) & 0xffff; 39 static int preprocess_write(u32 orig_data, u32 val, int where, argument 47 ret = (orig_data & ~(0xff << ((where & 3) << 3))) | 48 (val << ((where & 3) << 3)); 51 ret = (orig_data & ~(0xffff << ((where & 3) << 3))) | 52 (val << ((where & 3) << 3)); 65 unsigned int devfn, int where) 72 reg = where >> 64 bcm63xx_setup_cfg_access(int type, unsigned int busn, unsigned int devfn, int where) argument 100 bcm63xx_do_cfg_read(int type, unsigned int busn, unsigned int devfn, int where, int size, u32 *val) argument 121 bcm63xx_do_cfg_write(int type, unsigned int busn, unsigned int devfn, int where, int size, u32 val) argument 147 bcm63xx_pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) argument 161 bcm63xx_pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument 208 fake_cb_bridge_read(int where, int size, u32 *val) argument 291 fake_cb_bridge_write(int where, int size, u32 val) argument 362 bcm63xx_cb_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) argument 386 bcm63xx_cb_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument 483 bcm63xx_pcie_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) argument 503 bcm63xx_pcie_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument [all...] |
H A D | pci-ar724x.c | 74 int where, int size, u32 value) 80 WARN_ON(where & (size - 1)); 86 data = __raw_readl(base + (where & ~3)); 90 s = ((where & 3) * 8); 95 s = ((where & 2) * 8); 106 __raw_writel(data, base + (where & ~3)); 108 __raw_readl(base + (where & ~3)); 113 static int ar724x_pci_read(struct pci_bus *bus, unsigned int devfn, int where, argument 128 data = __raw_readl(base + (where & ~3)); 132 if (where 73 ar724x_pci_local_write(struct ar724x_pci_controller *apc, int where, int size, u32 value) argument 160 ar724x_pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, uint32_t value) argument [all...] |
H A D | pci-ar71xx.c | 69 static inline u32 ar71xx_pci_get_ble(int where, int size, int local) argument 73 t = ar71xx_pci_ble_table[size & 3][where & 3]; 81 int where) 88 (where & ~3); 92 (PCI_FUNC(devfn) << 8) | (where & ~3) | 1; 145 int where, int size, u32 value) 150 value = value << (8 * (where & 3)); 152 ad_cbe = AR71XX_PCI_CRP_CMD_WRITE | (where & ~3); 153 ad_cbe |= ar71xx_pci_get_ble(where, size, 1); 161 int where, in 80 ar71xx_pci_bus_addr(struct pci_bus *bus, unsigned int devfn, int where) argument 144 ar71xx_pci_local_write(struct ar71xx_pci_controller *apc, int where, int size, u32 value) argument 159 ar71xx_pci_set_cfgaddr(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 cmd) argument 176 ar71xx_pci_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value) argument 200 ar71xx_pci_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) argument [all...] |
/linux-master/drivers/pci/controller/ |
H A D | pci-thunder-ecam.c | 16 static void set_val(u32 v, int where, int size, u32 *val) argument 18 int shift = (where & 3) * 8; 20 pr_debug("set_val %04x: %08x\n", (unsigned int)(where & ~3), v); 30 unsigned int devfn, int where, int size, u32 *val) 36 int where_a = where & 0xc; 39 set_val(e0, where, size, val); 50 set_val(v, where, size, val); 68 set_val(v, where, size, val); 77 set_val(v, where, size, val); 84 int where, in 29 handle_ea_bar(u32 e0, int bar, struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) argument 83 thunder_ecam_p2_config_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) argument 122 thunder_ecam_config_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) argument 319 thunder_ecam_config_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument [all...] |
H A D | pci-thunder-pem.c | 38 int where, int size, u32 *val) 44 if (devfn != 0 || where >= 2048) 52 read_val = where & ~3ull; 61 switch (where & ~3) { 68 * Change PME interrupt to vector 2 on T88 where it 122 read_val >>= (8 * (where & 3)); 138 int where, int size, u32 *val) 151 return thunder_pem_bridge_read(bus, devfn, where, size, val); 153 return pci_generic_config_read(bus, devfn, where, size, val); 214 int where, in 37 thunder_pem_bridge_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) argument 137 thunder_pem_config_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) argument 213 thunder_pem_bridge_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument 286 thunder_pem_config_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument [all...] |
/linux-master/arch/sh/drivers/pci/ |
H A D | ops-dreamcast.c | 46 static int gapspci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) argument 54 case 1: *val = inb(GAPSPCI_BBA_CONFIG+where); break; 55 case 2: *val = inw(GAPSPCI_BBA_CONFIG+where); break; 56 case 4: *val = inl(GAPSPCI_BBA_CONFIG+where); break; 62 static int gapspci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument 68 case 1: outb(( u8)val, GAPSPCI_BBA_CONFIG+where); break; 69 case 2: outw((u16)val, GAPSPCI_BBA_CONFIG+where); break; 70 case 4: outl((u32)val, GAPSPCI_BBA_CONFIG+where); break;
|
H A D | ops-sh4.c | 16 #define CONFIG_CMD(bus, devfn, where) \ 17 (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3)) 23 int where, int size, u32 *val) 34 pci_write_reg(chan, CONFIG_CMD(bus, devfn, where), SH4_PCIPAR); 40 *val = (data >> ((where & 3) << 3)) & 0xff; 43 *val = (data >> ((where & 2) << 3)) & 0xffff; 61 int where, int size, u32 val) 69 pci_write_reg(chan, CONFIG_CMD(bus, devfn, where), SH4_PCIPAR); 75 shift = (where & 3) << 3; 80 shift = (where 22 sh4_pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) argument 60 sh4_pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument [all...] |
H A D | ops-sh7786.c | 20 struct pci_bus *bus, unsigned int devfn, int where, u32 *data) 28 reg = where & ~3; 90 int where, int size, u32 *val) 96 if ((size == 2) && (where & 1)) 98 else if ((size == 4) && (where & 3)) 103 devfn, where, &data); 110 *val = (data >> ((where & 3) << 3)) & 0xff; 112 *val = (data >> ((where & 2) << 3)) & 0xffff; 117 "where=0x%04x size=%d val=0x%08lx\n", bus->number, 118 devfn, where, siz 19 sh7786_pcie_config_access(unsigned char access_type, struct pci_bus *bus, unsigned int devfn, int where, u32 *data) argument 89 sh7786_pcie_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) argument 125 sh7786_pcie_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument [all...] |
/linux-master/arch/arm/plat-orion/include/plat/ |
H A D | pcie.h | 25 u32 devfn, int where, int size, u32 *val); 27 u32 devfn, int where, int size, u32 *val); 29 u32 devfn, int where, int size, u32 *val); 31 u32 devfn, int where, int size, u32 val);
|
/linux-master/drivers/media/pci/ivtv/ |
H A D | ivtv-firmware.h | 17 int ivtv_firmware_check(struct ivtv *itv, char *where);
|
/linux-master/tools/power/acpi/os_specific/service_layers/ |
H A D | osunixmap.c | 54 * PARAMETERS: where - Physical address of memory to be mapped 63 void *acpi_os_map_memory(acpi_physical_address where, acpi_size length) argument 79 offset = where % page_size; 84 fd, (where - offset)); 99 * PARAMETERS: where - Logical address of memory to be unmapped 109 void acpi_os_unmap_memory(void *where, acpi_size length) argument 115 offset = ACPI_TO_INTEGER(where) % page_size; 116 munmap((u8 *)where - offset, (length + offset));
|
/linux-master/fs/gfs2/ |
H A D | recovery.h | 23 int gfs2_revoke_add(struct gfs2_jdesc *jd, u64 blkno, unsigned int where); 24 int gfs2_revoke_check(struct gfs2_jdesc *jd, u64 blkno, unsigned int where);
|
/linux-master/arch/arm/plat-orion/ |
H A D | pcie.c | 209 u32 devfn, int where, int size, u32 *val) 214 PCIE_CONF_REG(where) | PCIE_CONF_ADDR_EN, 220 *val = (*val >> (8 * (where & 3))) & 0xff; 222 *val = (*val >> (8 * (where & 3))) & 0xffff; 228 u32 devfn, int where, int size, u32 *val) 233 PCIE_CONF_REG(where) | PCIE_CONF_ADDR_EN, 243 *val = (*val >> (8 * (where & 3))) & 0xff; 245 *val = (*val >> (8 * (where & 3))) & 0xffff; 251 u32 devfn, int where, int size, u32 *val) 256 PCIE_CONF_REG(where))); 208 orion_pcie_rd_conf(void __iomem *base, struct pci_bus *bus, u32 devfn, int where, int size, u32 *val) argument 227 orion_pcie_rd_conf_tlp(void __iomem *base, struct pci_bus *bus, u32 devfn, int where, int size, u32 *val) argument 250 orion_pcie_rd_conf_wa(void __iomem *wa_base, struct pci_bus *bus, u32 devfn, int where, int size, u32 *val) argument 266 orion_pcie_wr_conf(void __iomem *base, struct pci_bus *bus, u32 devfn, int where, int size, u32 val) argument [all...] |
/linux-master/arch/alpha/kernel/ |
H A D | core_polaris.c | 67 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, argument 73 *pci_addr = (bus << 16) | (device_fn << 8) | (where) | 76 DBG_CFG(("mk_conf_addr(bus=%d ,device_fn=0x%x, where=0x%x," 78 bus, device_fn, where, *pci_addr)); 84 polaris_read_config(struct pci_bus *bus, unsigned int devfn, int where, argument 90 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) 110 polaris_write_config(struct pci_bus *bus, unsigned int devfn, int where, argument 116 if (mk_conf_addr(bus, devfn, where, &addr, &type1))
|
/linux-master/drivers/pci/controller/dwc/ |
H A D | pcie-hisi.c | 25 static int hisi_pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, argument 36 return pci_generic_config_read32(bus, devfn, where, 40 return pci_generic_config_read(bus, devfn, where, size, val); 44 int where, int size, u32 val) 54 return pci_generic_config_write32(bus, devfn, where, 58 return pci_generic_config_write(bus, devfn, where, size, val); 62 int where) 68 return pcie->reg_base + where; 70 return pci_ecam_map_bus(bus, devfn, where); 43 hisi_pcie_wr_conf(struct pci_bus *bus, u32 devfn, int where, int size, u32 val) argument 61 hisi_pcie_map_bus(struct pci_bus *bus, unsigned int devfn, int where) argument
|