Home
last modified time | relevance | path

Searched refs:where (Results 1 – 200 of 1162) sorted by relevance

123456

/linux-4.4.14/arch/mips/pci/
Dops-rc32434.c48 unsigned char where, u32 *data) in config_access() argument
54 PCI_CFG_SET(bus->number, slot, func, where); in config_access()
73 int where, u8 *val) in read_config_byte() argument
78 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); in read_config_byte()
79 *val = (data >> ((where & 3) << 3)) & 0xff; in read_config_byte()
84 int where, u16 *val) in read_config_word() argument
89 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); in read_config_word()
90 *val = (data >> ((where & 3) << 3)) & 0xffff; in read_config_word()
95 int where, u32 *val) in read_config_dword() argument
108 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, val); in read_config_dword()
[all …]
Dops-bridge.c20 static u32 emulate_ioc3_cfg(int where, int size) in emulate_ioc3_cfg() argument
22 if (size == 1 && where == 0x3d) in emulate_ioc3_cfg()
24 else if (size == 2 && where == 0x3c) in emulate_ioc3_cfg()
26 else if (size == 4 && where == 0x3c) in emulate_ioc3_cfg()
44 int where, int size, u32 * value) in pci_conf0_read_config() argument
65 addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[where ^ (4 - size)]; in pci_conf0_read_config()
82 if ((where >= 0x14 && where < 0x40) || (where >= 0x48)) { in pci_conf0_read_config()
83 *value = emulate_ioc3_cfg(where, size); in pci_conf0_read_config()
91 addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; in pci_conf0_read_config()
96 shift = ((where & 3) << 3); in pci_conf0_read_config()
[all …]
Dops-nile4.c17 struct pci_bus *bus, unsigned int devfn, int where, u32 *val) in nile4_pcibios_config_access() argument
31 vrc_pciregs[(0x200 + where) >> 2] = *val; in nile4_pcibios_config_access()
33 *val = vrc_pciregs[(0x200 + where) >> 2]; in nile4_pcibios_config_access()
52 | (where & ~3)); in nile4_pcibios_config_access()
55 (where & ~3); in nile4_pcibios_config_access()
75 int where, int size, u32 *val) in nile4_pcibios_read() argument
80 if ((size == 2) && (where & 1)) in nile4_pcibios_read()
82 else if ((size == 4) && (where & 3)) in nile4_pcibios_read()
85 err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in nile4_pcibios_read()
91 *val = (data >> ((where & 3) << 3)) & 0xff; in nile4_pcibios_read()
[all …]
Dops-pmcmsp.c118 unsigned char where = 0; /* Write to static Device/Vendor ID */ in gen_pci_cfg_wr_show() local
146 (where & 0xFC); in gen_pci_cfg_wr_show()
363 unsigned char where, in msp_pcibios_config_access() argument
426 (where & 0xFC); in msp_pcibios_config_access()
492 int where, in msp_pcibios_read_config_byte() argument
503 where, &data)) { in msp_pcibios_read_config_byte()
508 *val = (data >> ((where & 3) << 3)) & 0x0ff; in msp_pcibios_read_config_byte()
540 int where, in msp_pcibios_read_config_word() argument
551 if ((where & 3) == 3) { in msp_pcibios_read_config_word()
562 where, &data)) { in msp_pcibios_read_config_word()
[all …]
Dops-msc.c47 struct pci_bus *bus, unsigned int devfn, int where, u32 * data) in msc_pcibios_config_access() argument
60 ((where / 4) << MSC01_PCI_CFGADDR_RNUM_SHF))); in msc_pcibios_config_access()
89 int where, int size, u32 * val) in msc_pcibios_read() argument
93 if ((size == 2) && (where & 1)) in msc_pcibios_read()
95 else if ((size == 4) && (where & 3)) in msc_pcibios_read()
98 if (msc_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in msc_pcibios_read()
103 *val = (data >> ((where & 3) << 3)) & 0xff; in msc_pcibios_read()
105 *val = (data >> ((where & 3) << 3)) & 0xffff; in msc_pcibios_read()
113 int where, int size, u32 val) in msc_pcibios_write() argument
117 if ((size == 2) && (where & 1)) in msc_pcibios_write()
[all …]
Dops-bcm63xx.c20 static int postprocess_read(u32 data, int where, unsigned int size) in postprocess_read() argument
27 ret = (data >> ((where & 3) << 3)) & 0xff; in postprocess_read()
30 ret = (data >> ((where & 3) << 3)) & 0xffff; in postprocess_read()
39 static int preprocess_write(u32 orig_data, u32 val, int where, in preprocess_write() argument
47 ret = (orig_data & ~(0xff << ((where & 3) << 3))) | in preprocess_write()
48 (val << ((where & 3) << 3)); in preprocess_write()
51 ret = (orig_data & ~(0xffff << ((where & 3) << 3))) | in preprocess_write()
52 (val << ((where & 3) << 3)); in preprocess_write()
65 unsigned int devfn, int where) in bcm63xx_setup_cfg_access() argument
72 reg = where >> 2; in bcm63xx_setup_cfg_access()
[all …]
Dops-bonito64.c38 unsigned int devfn, int where, in bonito64_pcibios_config_access() argument
47 int reg = where & ~3; in bonito64_pcibios_config_access()
102 int where, int size, u32 * val) in bonito64_pcibios_read() argument
106 if ((size == 2) && (where & 1)) in bonito64_pcibios_read()
108 else if ((size == 4) && (where & 3)) in bonito64_pcibios_read()
111 if (bonito64_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in bonito64_pcibios_read()
116 *val = (data >> ((where & 3) << 3)) & 0xff; in bonito64_pcibios_read()
118 *val = (data >> ((where & 3) << 3)) & 0xffff; in bonito64_pcibios_read()
126 int where, int size, u32 val) in bonito64_pcibios_write() argument
130 if ((size == 2) && (where & 1)) in bonito64_pcibios_write()
[all …]
Dpci-bcm1480ht.c51 #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where)) argument
52 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) argument
110 int where, int size, u32 * val) in bcm1480ht_pcibios_read() argument
114 if ((size == 2) && (where & 1)) in bcm1480ht_pcibios_read()
116 else if ((size == 4) && (where & 3)) in bcm1480ht_pcibios_read()
120 data = READCFG32(CFGADDR(bus, devfn, where)); in bcm1480ht_pcibios_read()
125 *val = (data >> ((where & 3) << 3)) & 0xff; in bcm1480ht_pcibios_read()
127 *val = (data >> ((where & 3) << 3)) & 0xffff; in bcm1480ht_pcibios_read()
135 int where, int size, u32 val) in bcm1480ht_pcibios_write() argument
137 u32 cfgaddr = CFGADDR(bus, devfn, where); in bcm1480ht_pcibios_write()
[all …]
Dops-vr41xx.c36 unsigned int devfn, int where) in set_pci_configuration_address() argument
42 if (PCI_SLOT(devfn) < 11 || where > 0xff) in set_pci_configuration_address()
46 (where & 0xfc), PCICONFAREG); in set_pci_configuration_address()
51 if (where > 0xff) in set_pci_configuration_address()
55 (where & 0xfc) | 1U, PCICONFAREG); 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()
74 *val = (data >> ((where & 3) << 3)) & 0xffU; in pci_config_read()
77 *val = (data >> ((where & 2) << 3)) & 0xffffU; in pci_config_read()
89 static int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, in pci_config_write() argument
[all …]
Dpci-sb1250.c53 #define CFGOFFSET(bus, devfn, where) (((bus)<<16) + ((devfn)<<8) + (where)) argument
54 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) argument
130 int where, int size, u32 * val) in sb1250_pcibios_read() argument
134 if ((size == 2) && (where & 1)) in sb1250_pcibios_read()
136 else if ((size == 4) && (where & 3)) in sb1250_pcibios_read()
140 data = READCFG32(CFGADDR(bus, devfn, where)); in sb1250_pcibios_read()
145 *val = (data >> ((where & 3) << 3)) & 0xff; in sb1250_pcibios_read()
147 *val = (data >> ((where & 3) << 3)) & 0xffff; in sb1250_pcibios_read()
155 int where, int size, u32 val) in sb1250_pcibios_write() argument
157 u32 cfgaddr = CFGADDR(bus, devfn, where); in sb1250_pcibios_write()
[all …]
Dpci-bcm1480.c53 #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where)) argument
54 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) argument
121 int where, int size, u32 * val) in bcm1480_pcibios_read() argument
125 if ((size == 2) && (where & 1)) in bcm1480_pcibios_read()
127 else if ((size == 4) && (where & 3)) in bcm1480_pcibios_read()
131 data = READCFG32(CFGADDR(bus, devfn, where)); in bcm1480_pcibios_read()
136 *val = (data >> ((where & 3) << 3)) & 0xff; in bcm1480_pcibios_read()
138 *val = (data >> ((where & 3) << 3)) & 0xffff; in bcm1480_pcibios_read()
146 int where, int size, u32 val) in bcm1480_pcibios_write() argument
148 u32 cfgaddr = CFGADDR(bus, devfn, where); in bcm1480_pcibios_write()
[all …]
Dops-loongson3.c17 int where, u32 *data) in loongson3_pci_config_access() argument
24 int reg = where & ~3; in loongson3_pci_config_access()
51 int where, int size, u32 *val) in loongson3_pci_pcibios_read() argument
55 bus, devfn, where, &data); in loongson3_pci_pcibios_read()
61 *val = (data >> ((where & 3) << 3)) & 0xff; in loongson3_pci_pcibios_read()
63 *val = (data >> ((where & 3) << 3)) & 0xffff; in loongson3_pci_pcibios_read()
71 int where, int size, u32 val) in loongson3_pci_pcibios_write() argument
80 bus, devfn, where, &data); in loongson3_pci_pcibios_write()
85 data = (data & ~(0xff << ((where & 3) << 3))) | in loongson3_pci_pcibios_write()
86 (val << ((where & 3) << 3)); in loongson3_pci_pcibios_write()
[all …]
Dops-lantiq.c29 unsigned int devfn, unsigned int where, u32 *data) in ltq_pci_config_access() argument
45 LTQ_PCI_CFG_FUNNUM_SHF) | (where & ~0x3); in ltq_pci_config_access()
74 int where, int size, u32 *val) 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()
82 *val = (data >> ((where & 3) << 3)) & 0xff; in ltq_pci_read_config_dword()
84 *val = (data >> ((where & 3) << 3)) & 0xffff; in ltq_pci_read_config_dword()
92 int where, int size, u32 val) in ltq_pci_write_config_dword() argument
100 devfn, where, &data)) in ltq_pci_write_config_dword()
104 data = (data & ~(0xff << ((where & 3) << 3))) | in ltq_pci_write_config_dword()
105 (val << ((where & 3) << 3)); in ltq_pci_write_config_dword()
[all …]
Dops-gt64xxx_pci0.c43 struct pci_bus *bus, unsigned int devfn, int where, u32 * data) in gt64xxx_pci0_pcibios_config_access() argument
59 ((where / 4) << GT_PCI0_CFGADDR_REGNUM_SHF) | in gt64xxx_pci0_pcibios_config_access()
104 int where, int size, u32 * val) in gt64xxx_pci0_pcibios_read() argument
109 where, &data)) in gt64xxx_pci0_pcibios_read()
113 *val = (data >> ((where & 3) << 3)) & 0xff; in gt64xxx_pci0_pcibios_read()
115 *val = (data >> ((where & 3) << 3)) & 0xffff; in gt64xxx_pci0_pcibios_read()
123 int where, int size, u32 val) in gt64xxx_pci0_pcibios_write() argument
131 devfn, where, &data)) in gt64xxx_pci0_pcibios_write()
135 data = (data & ~(0xff << ((where & 3) << 3))) | in gt64xxx_pci0_pcibios_write()
136 (val << ((where & 3) << 3)); in gt64xxx_pci0_pcibios_write()
[all …]
Dops-loongson2.c37 unsigned int devfn, int where, in loongson_pcibios_config_access() argument
46 int reg = where & ~3; in loongson_pcibios_config_access()
122 int where, int size, u32 *val) in loongson_pcibios_read() argument
126 if ((size == 2) && (where & 1)) in loongson_pcibios_read()
128 else if ((size == 4) && (where & 3)) in loongson_pcibios_read()
131 if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in loongson_pcibios_read()
136 *val = (data >> ((where & 3) << 3)) & 0xff; in loongson_pcibios_read()
138 *val = (data >> ((where & 3) << 3)) & 0xffff; in loongson_pcibios_read()
146 int where, int size, u32 val) in loongson_pcibios_write() argument
150 if ((size == 2) && (where & 1)) in loongson_pcibios_write()
[all …]
Dpci-xlp.c64 int where) in pci_cfg_read_32bit() argument
69 where &= ~3; 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()
93 int where, u32 data) in pci_cfg_write_32bit() argument
98 pci_cfg_addr(bus->number, devfn, where & ~3)); in pci_cfg_write_32bit()
103 int where, int size, u32 *val) in nlm_pcibios_read() argument
107 if ((size == 2) && (where & 1)) in nlm_pcibios_read()
109 else if ((size == 4) && (where & 3)) in nlm_pcibios_read()
112 data = pci_cfg_read_32bit(bus, devfn, where); in nlm_pcibios_read()
[all …]
Dpci-xlr.c63 int where) in pci_cfg_read_32bit() argument
69 pci_cfg_addr(bus->number, devfn, where & ~3)); in pci_cfg_read_32bit()
75 int where, u32 data) in pci_cfg_write_32bit() argument
80 pci_cfg_addr(bus->number, devfn, where & ~3)); in pci_cfg_write_32bit()
85 int where, int size, u32 *val) in nlm_pcibios_read() argument
89 if ((size == 2) && (where & 1)) in nlm_pcibios_read()
91 else if ((size == 4) && (where & 3)) in nlm_pcibios_read()
94 data = pci_cfg_read_32bit(bus, devfn, where); in nlm_pcibios_read()
97 *val = (data >> ((where & 3) << 3)) & 0xff; in nlm_pcibios_read()
99 *val = (data >> ((where & 3) << 3)) & 0xffff; in nlm_pcibios_read()
[all …]
Dops-emma2rh.c60 unsigned int devfn, int where) in set_pci_configuration_address() argument
82 static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, in pci_config_read() argument
97 if (set_pci_configuration_address(bus_num, devfn, where) < 0) in pci_config_read()
102 (where & 0xfffffffc)); in pci_config_read()
106 *val = (data >> ((where & 3) << 3)) & 0xffU; in pci_config_read()
109 *val = (data >> ((where & 2) << 3)) & 0xffffU; in pci_config_read()
127 static int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, in pci_config_write() argument
141 if (set_pci_configuration_address(bus_num, devfn, where) < 0) in pci_config_write()
147 (where & 0xfffffffc)); in pci_config_write()
151 shift = (where & 3) << 3; in pci_config_write()
[all …]
Dpci-alchemy.c99 unsigned int dev_fn, unsigned char where, u32 *data) in config_access() argument
134 offset = (function << 8) | (where & ~0x3); in config_access()
160 access_type, bus->number, device, where, *data, offset); in config_access()
188 int where, u8 *val) in read_config_byte() argument
191 int ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); in read_config_byte()
193 if (where & 1) in read_config_byte()
195 if (where & 2) in read_config_byte()
202 int where, u16 *val) in read_config_word() argument
205 int ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); in read_config_word()
207 if (where & 2) in read_config_word()
[all …]
Dpci-ar724x.c73 int where, int size, u32 value) in ar724x_pci_local_write() argument
79 WARN_ON(where & (size - 1)); in ar724x_pci_local_write()
85 data = __raw_readl(base + (where & ~3)); in ar724x_pci_local_write()
89 s = ((where & 3) * 8); in ar724x_pci_local_write()
94 s = ((where & 2) * 8); in ar724x_pci_local_write()
105 __raw_writel(data, base + (where & ~3)); in ar724x_pci_local_write()
107 __raw_readl(base + (where & ~3)); in ar724x_pci_local_write()
112 static int ar724x_pci_read(struct pci_bus *bus, unsigned int devfn, int where, in ar724x_pci_read() argument
127 data = __raw_readl(base + (where & ~3)); in ar724x_pci_read()
131 if (where & 1) in ar724x_pci_read()
[all …]
Dpci-ar71xx.c72 static inline u32 ar71xx_pci_get_ble(int where, int size, int local) in ar71xx_pci_get_ble() argument
76 t = ar71xx_pci_ble_table[size & 3][where & 3]; in ar71xx_pci_get_ble()
84 int where) in ar71xx_pci_bus_addr() argument
91 (where & ~3); in ar71xx_pci_bus_addr()
95 (PCI_FUNC(devfn) << 8) | (where & ~3) | 1; in ar71xx_pci_bus_addr()
148 int where, int size, u32 value) in ar71xx_pci_local_write() argument
153 value = value << (8 * (where & 3)); in ar71xx_pci_local_write()
155 ad_cbe = AR71XX_PCI_CRP_CMD_WRITE | (where & ~3); in ar71xx_pci_local_write()
156 ad_cbe |= ar71xx_pci_get_ble(where, size, 1); in ar71xx_pci_local_write()
164 int where, int size, u32 cmd) in ar71xx_pci_set_cfgaddr() argument
[all …]
Dpci-rt2880.c61 unsigned int func, unsigned int where) in rt2880_pci_get_cfgaddr() argument
63 return ((bus << 16) | (slot << 11) | (func << 8) | (where & 0xfc) | in rt2880_pci_get_cfgaddr()
68 int where, int size, u32 *val) in rt2880_pci_config_read() argument
75 PCI_FUNC(devfn), where); in rt2880_pci_config_read()
84 *val = (data >> ((where & 3) << 3)) & 0xff; in rt2880_pci_config_read()
87 *val = (data >> ((where & 3) << 3)) & 0xffff; in rt2880_pci_config_read()
98 int where, int size, u32 val) in rt2880_pci_config_write() argument
105 PCI_FUNC(devfn), where); in rt2880_pci_config_write()
113 data = (data & ~(0xff << ((where & 3) << 3))) | in rt2880_pci_config_write()
114 (val << ((where & 3) << 3)); in rt2880_pci_config_write()
[all …]
Dops-tx3927.c48 static int mkaddr(struct pci_bus *bus, unsigned char devfn, unsigned char where) in mkaddr() argument
56 (where & 0xfc) | (bus->parent ? 1 : 0); in mkaddr()
77 int where, int size, u32 * val) in tx3927_pci_read_config() argument
79 if (mkaddr(bus, devfn, where)) { in tx3927_pci_read_config()
86 *val = *(volatile u8 *) ((unsigned long) & tx3927_pcicptr->icd | (where & 3)); in tx3927_pci_read_config()
90 *val = le16_to_cpu(*(volatile u16 *) ((unsigned long) & tx3927_pcicptr->icd | (where & 3))); in tx3927_pci_read_config()
102 int where, int size, u32 val) in tx3927_pci_write_config() argument
104 if (mkaddr(bus, devfn, where)) in tx3927_pci_write_config()
109 *(volatile u8 *) ((unsigned long) & tx3927_pcicptr->icd | (where & 3)) = val; in tx3927_pci_write_config()
113 *(volatile u16 *) ((unsigned long) & tx3927_pcicptr->icd | (where & 2)) = in tx3927_pci_write_config()
Dpci-ar2315.c199 int where, int size, u32 *ptr, bool write) in ar2315_pci_cfg_access() argument
203 u32 addr = (1 << (13 + dev)) | (func << 8) | (where & ~3); in ar2315_pci_cfg_access()
205 u32 sh = (where & 3) * 8; in ar2315_pci_cfg_access()
254 unsigned devfn, int where, u32 *val) in ar2315_pci_local_cfg_rd() argument
256 return ar2315_pci_cfg_access(apc, devfn, where, sizeof(u32), val, in ar2315_pci_local_cfg_rd()
261 unsigned devfn, int where, u32 val) in ar2315_pci_local_cfg_wr() argument
263 return ar2315_pci_cfg_access(apc, devfn, where, sizeof(u32), &val, in ar2315_pci_local_cfg_wr()
267 static int ar2315_pci_cfg_read(struct pci_bus *bus, unsigned devfn, int where, in ar2315_pci_cfg_read() argument
275 return ar2315_pci_cfg_access(apc, devfn, where, size, value, false); in ar2315_pci_cfg_read()
278 static int ar2315_pci_cfg_write(struct pci_bus *bus, unsigned devfn, int where, in ar2315_pci_cfg_write() argument
[all …]
Dpci-rt3883.c97 unsigned int func, unsigned int where) in rt3883_pci_get_cfgaddr() argument
99 return (bus << 16) | (slot << 11) | (func << 8) | (where & 0xfc) | in rt3883_pci_get_cfgaddr()
234 int where, int size, u32 *val) in rt3883_pci_config_read() argument
247 PCI_FUNC(devfn), where); in rt3883_pci_config_read()
254 *val = (data >> ((where & 3) << 3)) & 0xff; in rt3883_pci_config_read()
257 *val = (data >> ((where & 3) << 3)) & 0xffff; in rt3883_pci_config_read()
268 int where, int size, u32 val) in rt3883_pci_config_write() argument
281 PCI_FUNC(devfn), where); in rt3883_pci_config_write()
288 data = (data & ~(0xff << ((where & 3) << 3))) | in rt3883_pci_config_write()
289 (val << ((where & 3) << 3)); in rt3883_pci_config_write()
[all …]
Dops-tx4927.c62 static int mkaddr(struct pci_bus *bus, unsigned int devfn, int where, in mkaddr() argument
69 | ((devfn & 0xff) << 0x08) | (where & 0xfc) in mkaddr()
144 int where, int size, u32 *val) in tx4927_pci_config_read() argument
148 if (mkaddr(bus, devfn, where, pcicptr)) { in tx4927_pci_config_read()
154 *val = icd_readb(where & 3, pcicptr); in tx4927_pci_config_read()
157 *val = icd_readw(where & 3, pcicptr); in tx4927_pci_config_read()
166 int where, int size, u32 val) in tx4927_pci_config_write() argument
170 if (mkaddr(bus, devfn, where, pcicptr)) in tx4927_pci_config_write()
174 icd_writeb(val, where & 3, pcicptr); in tx4927_pci_config_write()
177 icd_writew(val, where & 3, pcicptr); in tx4927_pci_config_write()
Dpci-lantiq.h14 unsigned int devfn, int where, int size, u32 *val);
16 unsigned int devfn, int where, int size, u32 val);
/linux-4.4.14/arch/mn10300/unit-asb2305/
Dpci.c55 #define CONFIG_CMD(bus, devfn, where) \ argument
56 (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3))
83 int where, u32 *_value) in pci_ampci_read_config_byte() argument
88 value = BRIDGEREGB(where); in pci_ampci_read_config_byte()
89 __pcbdebug("=> %02hx", &BRIDGEREGL(where), value); in pci_ampci_read_config_byte()
91 CONFIG_ADDRESS = CONFIG_CMD(bus, devfn, where); in pci_ampci_read_config_byte()
93 value = CONFIG_DATAB(where); in pci_ampci_read_config_byte()
95 __pcidebug("=> %02hx", bus, devfn, where, value); in pci_ampci_read_config_byte()
103 int where, u32 *_value) in pci_ampci_read_config_word() argument
108 value = BRIDGEREGW(where); in pci_ampci_read_config_word()
[all …]
/linux-4.4.14/arch/sh/drivers/pci/
Dops-sh7786.c23 struct pci_bus *bus, unsigned int devfn, int where, u32 *data) in sh7786_pcie_config_access() argument
31 reg = where & ~3; in sh7786_pcie_config_access()
93 int where, int size, u32 *val) in sh7786_pcie_read() argument
99 if ((size == 2) && (where & 1)) in sh7786_pcie_read()
101 else if ((size == 4) && (where & 3)) in sh7786_pcie_read()
106 devfn, where, &data); in sh7786_pcie_read()
113 *val = (data >> ((where & 3) << 3)) & 0xff; in sh7786_pcie_read()
115 *val = (data >> ((where & 2) << 3)) & 0xffff; in sh7786_pcie_read()
121 devfn, where, size, (unsigned long)*val); in sh7786_pcie_read()
129 int where, int size, u32 val) in sh7786_pcie_write() argument
[all …]
Dops-sh4.c19 #define CONFIG_CMD(bus, devfn, where) \ argument
20 (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3))
26 int where, int size, u32 *val) in sh4_pci_read() argument
37 pci_write_reg(chan, CONFIG_CMD(bus, devfn, where), SH4_PCIPAR); in sh4_pci_read()
43 *val = (data >> ((where & 3) << 3)) & 0xff; in sh4_pci_read()
46 *val = (data >> ((where & 2) << 3)) & 0xffff; in sh4_pci_read()
64 int where, int size, u32 val) in sh4_pci_write() argument
72 pci_write_reg(chan, CONFIG_CMD(bus, devfn, where), SH4_PCIPAR); in sh4_pci_write()
78 shift = (where & 3) << 3; in sh4_pci_write()
83 shift = (where & 2) << 3; in sh4_pci_write()
Dops-sh5.c24 static int sh5pci_read(struct pci_bus *bus, unsigned int devfn, int where, in sh5pci_read() argument
27 SH5PCI_WRITE(PAR, CONFIG_CMD(bus, devfn, where)); in sh5pci_read()
31 *val = (u8)SH5PCI_READ_BYTE(PDR + (where & 3)); in sh5pci_read()
34 *val = (u16)SH5PCI_READ_SHORT(PDR + (where & 2)); in sh5pci_read()
44 static int sh5pci_write(struct pci_bus *bus, unsigned int devfn, int where, in sh5pci_write() argument
47 SH5PCI_WRITE(PAR, CONFIG_CMD(bus, devfn, where)); in sh5pci_write()
51 SH5PCI_WRITE_BYTE(PDR + (where & 3), (u8)val); in sh5pci_write()
54 SH5PCI_WRITE_SHORT(PDR + (where & 2), (u16)val); in sh5pci_write()
Dops-dreamcast.c49 static int gapspci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) in gapspci_read() argument
57 case 1: *val = inb(GAPSPCI_BBA_CONFIG+where); break; in gapspci_read()
58 case 2: *val = inw(GAPSPCI_BBA_CONFIG+where); break; in gapspci_read()
59 case 4: *val = inl(GAPSPCI_BBA_CONFIG+where); break; in gapspci_read()
65 static int gapspci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) in gapspci_write() argument
71 case 1: outb(( u8)val, GAPSPCI_BBA_CONFIG+where); break; in gapspci_write()
72 case 2: outw((u16)val, GAPSPCI_BBA_CONFIG+where); break; in gapspci_write()
73 case 4: outl((u32)val, GAPSPCI_BBA_CONFIG+where); break; in gapspci_write()
Dpci-sh5.h99 #define SET_CONFIG_BITS(bus,devfn,where) ((((bus) << 16) | ((devfn) << 8) | ((where) & ~3)) | 0x80… argument
102 #define CONFIG_CMD(bus, devfn, where) SET_CONFIG_BITS(bus->number,devfn,where) argument
/linux-4.4.14/arch/sparc/kernel/
Dpci_common.c53 int where, int size, u32 *value) in sun4u_read_pci_cfg_host() argument
59 addr = sun4u_config_mkaddr(pbm, bus, devfn, where); in sun4u_read_pci_cfg_host()
65 if (where < 8) { in sun4u_read_pci_cfg_host()
70 if (where & 1) in sun4u_read_pci_cfg_host()
81 if (where < 8) { in sun4u_read_pci_cfg_host()
95 where, 2, &tmp32); in sun4u_read_pci_cfg_host()
100 where + 2, 2, &tmp32); in sun4u_read_pci_cfg_host()
108 int where, int size, u32 *value) in sun4u_read_pci_cfg() argument
129 return sun4u_read_pci_cfg_host(pbm, bus, devfn, where, in sun4u_read_pci_cfg()
132 addr = sun4u_config_mkaddr(pbm, bus, devfn, where); in sun4u_read_pci_cfg()
[all …]
Dleon_pci_grpci1.c102 unsigned int devfn, int where, u32 val);
117 unsigned int devfn, int where, u32 *val) in grpci1_cfg_r32() argument
121 if (where & 0x3) in grpci1_cfg_r32()
136 pci_conf = (u32 *) (priv->pci_conf | (devfn << 8) | (where & 0xfc)); in grpci1_cfg_r32()
154 unsigned int devfn, int where, u32 *val) in grpci1_cfg_r16() argument
159 if (where & 0x1) in grpci1_cfg_r16()
161 ret = grpci1_cfg_r32(priv, bus, devfn, where & ~0x3, &v); in grpci1_cfg_r16()
162 *val = 0xffff & (v >> (8 * (where & 0x3))); in grpci1_cfg_r16()
167 unsigned int devfn, int where, u32 *val) in grpci1_cfg_r8() argument
172 ret = grpci1_cfg_r32(priv, bus, devfn, where & ~0x3, &v); in grpci1_cfg_r8()
[all …]
Dleon_pci_grpci2.c234 unsigned int devfn, int where, u32 *val) in grpci2_cfg_r32() argument
240 if (where & 0x3) in grpci2_cfg_r32()
260 (devfn << 8) | (where & 0xfc)); in grpci2_cfg_r32()
280 unsigned int devfn, int where, u32 *val) in grpci2_cfg_r16() argument
285 if (where & 0x1) in grpci2_cfg_r16()
287 ret = grpci2_cfg_r32(priv, bus, devfn, where & ~0x3, &v); in grpci2_cfg_r16()
288 *val = 0xffff & (v >> (8 * (where & 0x3))); in grpci2_cfg_r16()
293 unsigned int devfn, int where, u32 *val) in grpci2_cfg_r8() argument
298 ret = grpci2_cfg_r32(priv, bus, devfn, where & ~0x3, &v); in grpci2_cfg_r8()
299 *val = 0xff & (v >> (8 * (where & 3))); in grpci2_cfg_r8()
[all …]
Dpcic.c173 …ne CONFIG_CMD(bus, device_fn, where) (0x80000000 | (((unsigned int)bus) << 16) | (((unsigned int)d… argument
176 int where, u32 *value) in pcic_read_config_dword() argument
188 writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr); in pcic_read_config_dword()
199 *value = readl(pcic->pcic_config_space_data + (where&4)); in pcic_read_config_dword()
213 int where, int size, u32 *val) in pcic_read_config() argument
220 pcic_read_config_dword(bus->number, devfn, where&~3, &v); in pcic_read_config()
221 *val = 0xff & (v >> (8*(where & 3))); in pcic_read_config()
224 if (where&1) return -EINVAL; in pcic_read_config()
225 pcic_read_config_dword(bus->number, devfn, where&~3, &v); in pcic_read_config()
226 *val = 0xffff & (v >> (8*(where & 3))); in pcic_read_config()
[all …]
Dpsycho_common.h22 int where) in psycho_pci_config_mkaddr() argument
26 PSYCHO_CONFIG_ENCODE(bus, devfn, where)); in psycho_pci_config_mkaddr()
/linux-4.4.14/arch/arm/mach-ixp4xx/
Dcommon-pci.c169 static u32 ixp4xx_config_addr(u8 bus_num, u16 devfn, int where) in ixp4xx_config_addr() argument
175 (where & ~3); in ixp4xx_config_addr()
179 ((PCI_FUNC(devfn)) << 8) | (where & ~3) | 1; in ixp4xx_config_addr()
207 static int local_read_config(int where, int size, u32 *value) in local_read_config() argument
210 pr_debug("local_read_config from %d size %d\n", where, size); in local_read_config()
211 n = where % 4; in local_read_config()
212 crp_read(where & ~3, &data); in local_read_config()
218 static int local_write_config(int where, int size, u32 value) in local_write_config() argument
221 pr_debug("local_write_config %#x to %d size %d\n", value, where, size); in local_write_config()
222 n = where % 4; in local_write_config()
[all …]
/linux-4.4.14/arch/frv/mb93090-mb00/
Dpci-vdk.c57 #define CONFIG_CMD(bus, dev, where) \ argument
58 (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3))
96 static int pci_frv_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, in pci_frv_read_config() argument
102 _value = __get_PciBridgeDataL(where & ~3); in pci_frv_read_config()
105 __set_PciCfgAddr(CONFIG_CMD(bus, devfn, where)); in pci_frv_read_config()
106 _value = __get_PciCfgDataL(where & ~3); in pci_frv_read_config()
111 _value = _value >> ((where & 3) * 8); in pci_frv_read_config()
115 _value = _value >> ((where & 2) * 8); in pci_frv_read_config()
129 static int pci_frv_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, in pci_frv_write_config() argument
135 __set_PciBridgeDataB(where, value); in pci_frv_write_config()
[all …]
/linux-4.4.14/arch/arm/plat-orion/
Dpcie.c209 u32 devfn, int where, int size, u32 *val) in orion_pcie_rd_conf() argument
214 PCIE_CONF_REG(where) | PCIE_CONF_ADDR_EN, in orion_pcie_rd_conf()
220 *val = (*val >> (8 * (where & 3))) & 0xff; in orion_pcie_rd_conf()
222 *val = (*val >> (8 * (where & 3))) & 0xffff; in orion_pcie_rd_conf()
228 u32 devfn, int where, int size, u32 *val) in orion_pcie_rd_conf_tlp() argument
233 PCIE_CONF_REG(where) | PCIE_CONF_ADDR_EN, in orion_pcie_rd_conf_tlp()
243 *val = (*val >> (8 * (where & 3))) & 0xff; in orion_pcie_rd_conf_tlp()
245 *val = (*val >> (8 * (where & 3))) & 0xffff; in orion_pcie_rd_conf_tlp()
251 u32 devfn, int where, int size, u32 *val) in orion_pcie_rd_conf_wa() argument
256 PCIE_CONF_REG(where))); in orion_pcie_rd_conf_wa()
[all …]
/linux-4.4.14/fs/ext4/
Dext4_jbd2.c80 int __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle) in __ext4_journal_stop() argument
103 __ext4_std_error(sb, where, line, err); in __ext4_journal_stop()
156 int __ext4_journal_get_write_access(const char *where, unsigned int line, in __ext4_journal_get_write_access() argument
166 ext4_journal_abort_handle(where, line, __func__, bh, in __ext4_journal_get_write_access()
184 int __ext4_forget(const char *where, unsigned int line, handle_t *handle, in __ext4_forget() argument
217 ext4_journal_abort_handle(where, line, __func__, in __ext4_forget()
230 ext4_journal_abort_handle(where, line, __func__, in __ext4_forget()
232 __ext4_abort(inode->i_sb, where, line, in __ext4_forget()
239 int __ext4_journal_get_create_access(const char *where, unsigned int line, in __ext4_journal_get_create_access() argument
247 ext4_journal_abort_handle(where, line, __func__, in __ext4_journal_get_create_access()
[all …]
Dext4_jbd2.h232 int __ext4_journal_get_write_access(const char *where, unsigned int line,
235 int __ext4_forget(const char *where, unsigned int line, handle_t *handle,
239 int __ext4_journal_get_create_access(const char *where, unsigned int line,
242 int __ext4_handle_dirty_metadata(const char *where, unsigned int line,
246 int __ext4_handle_dirty_super(const char *where, unsigned int line,
264 int __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle);
Dindirect.c414 Indirect *where, int num) in ext4_splice_branch() argument
425 if (where->bh) { in ext4_splice_branch()
426 BUFFER_TRACE(where->bh, "get_write_access"); in ext4_splice_branch()
427 err = ext4_journal_get_write_access(handle, where->bh); in ext4_splice_branch()
433 *where->p = where->key; in ext4_splice_branch()
440 current_block = le32_to_cpu(where->key) + 1; in ext4_splice_branch()
442 *(where->p + i) = cpu_to_le32(current_block++); in ext4_splice_branch()
447 if (where->bh) { in ext4_splice_branch()
457 BUFFER_TRACE(where->bh, "call ext4_handle_dirty_metadata"); in ext4_splice_branch()
458 err = ext4_handle_dirty_metadata(handle, ar->inode, where->bh); in ext4_splice_branch()
[all …]
/linux-4.4.14/arch/powerpc/kernel/
Drtas_pci.c48 static inline int config_access_valid(struct pci_dn *dn, int where) in config_access_valid() argument
50 if (where < 256) in config_access_valid()
52 if (where < 4096 && dn->pci_ext_config_space) in config_access_valid()
58 int rtas_read_config(struct pci_dn *pdn, int where, int size, u32 *val) in rtas_read_config() argument
66 if (!config_access_valid(pdn, where)) in rtas_read_config()
74 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_read_config()
92 int where, int size, u32 *val) in rtas_pci_read_config() argument
114 ret = rtas_read_config(pdn, where, size, val); in rtas_pci_read_config()
122 int rtas_write_config(struct pci_dn *pdn, int where, int size, u32 val) in rtas_write_config() argument
129 if (!config_access_valid(pdn, where)) in rtas_write_config()
[all …]
/linux-4.4.14/arch/arm/plat-iop/
Dpci.c39 static u32 iop3xx_cfg_address(struct pci_bus *bus, int devfn, int where) in iop3xx_cfg_address() argument
49 addr |= PCI_FUNC(devfn) << 8 | (where & ~3); in iop3xx_cfg_address()
113 iop3xx_read_config(struct pci_bus *bus, unsigned int devfn, int where, in iop3xx_read_config() argument
116 unsigned long addr = iop3xx_cfg_address(bus, devfn, where); in iop3xx_read_config()
117 u32 val = iop3xx_read(addr) >> ((where & 3) * 8); in iop3xx_read_config()
128 iop3xx_write_config(struct pci_bus *bus, unsigned int devfn, int where, in iop3xx_write_config() argument
131 unsigned long addr = iop3xx_cfg_address(bus, devfn, where); in iop3xx_write_config()
139 where = (where & 3) * 8; in iop3xx_write_config()
142 val &= ~(0xff << where); in iop3xx_write_config()
144 val &= ~(0xffff << where); in iop3xx_write_config()
[all …]
/linux-4.4.14/drivers/video/fbdev/i810/
Di810.h291 #define i810_readb(where, mmio) readb(mmio + where) argument
292 #define i810_readw(where, mmio) readw(mmio + where) argument
293 #define i810_readl(where, mmio) readl(mmio + where) argument
294 #define i810_writeb(where, mmio, val) writeb(val, mmio + where) argument
295 #define i810_writew(where, mmio, val) writew(val, mmio + where) argument
296 #define i810_writel(where, mmio, val) writel(val, mmio + where) argument
/linux-4.4.14/tools/power/acpi/os_specific/service_layers/
Dosunixmap.c97 void *acpi_os_map_memory(acpi_physical_address where, acpi_size length) in acpi_os_map_memory() argument
113 offset = where % page_size; in acpi_os_map_memory()
118 fd, (where - offset)); in acpi_os_map_memory()
143 void acpi_os_unmap_memory(void *where, acpi_size length) in acpi_os_unmap_memory() argument
149 offset = ACPI_TO_INTEGER(where) % page_size; in acpi_os_unmap_memory()
150 munmap((u8 *)where - offset, (length + offset)); in acpi_os_unmap_memory()
Dosunixxf.c506 void *acpi_os_map_memory(acpi_physical_address where, acpi_size length) in acpi_os_map_memory() argument
509 return (ACPI_TO_POINTER((acpi_size) where)); in acpi_os_map_memory()
526 void acpi_os_unmap_memory(void *where, acpi_size length) in acpi_os_unmap_memory() argument
/linux-4.4.14/arch/x86/pci/
Dintel_mid_pci.c165 static int pci_read(struct pci_bus *bus, unsigned int devfn, int where, in pci_read() argument
168 if (type1_access_ok(bus->number, devfn, where)) in pci_read()
170 devfn, where, size, value); in pci_read()
172 devfn, where, size, value); in pci_read()
175 static int pci_write(struct pci_bus *bus, unsigned int devfn, int where, in pci_write() argument
184 if (where == PCI_ROM_ADDRESS) in pci_write()
195 (where >= PCI_BASE_ADDRESS_0 && where <= PCI_BASE_ADDRESS_5)) { in pci_write()
196 return pci_device_update_fixed(bus, devfn, where, size, value, in pci_write()
205 if (type1_access_ok(bus->number, devfn, where)) in pci_write()
207 devfn, where, size, value); in pci_write()
[all …]
Dfixup.c109 int where = 0x55; in pci_fixup_via_northbridge_bug() local
118 where = 0x95; /* the memory write queue timer register is in pci_fixup_via_northbridge_bug()
127 pci_read_config_byte(d, where, &v); in pci_fixup_via_northbridge_bug()
130 d->device, d->revision, where, v, mask, v & mask); in pci_fixup_via_northbridge_bug()
132 pci_write_config_byte(d, where, v); in pci_fixup_via_northbridge_bug()
204 static int quirk_pcie_aspm_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *… in quirk_pcie_aspm_read() argument
207 devfn, where, size, value); in quirk_pcie_aspm_read()
214 static int quirk_pcie_aspm_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 … in quirk_pcie_aspm_write() argument
220 if ((offset) && (where == offset)) in quirk_pcie_aspm_write()
224 devfn, where, size, value); in quirk_pcie_aspm_write()
Dcommon.c61 static int pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value) in pci_read() argument
64 devfn, where, size, value); in pci_read()
67 static int pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) in pci_write() argument
70 devfn, where, size, value); in pci_write()
/linux-4.4.14/arch/arm/mach-orion5x/
Dpci.c76 static int pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, in pcie_rd_conf() argument
88 ret = orion_pcie_rd_conf(PCIE_BASE, bus, devfn, where, size, val); in pcie_rd_conf()
95 int where, int size, u32 *val) in pcie_rd_conf_wa() argument
109 if (where >= 0x100) { in pcie_rd_conf_wa()
115 bus, devfn, where, size, val); in pcie_rd_conf_wa()
121 int where, int size, u32 val) in pcie_wr_conf() argument
130 ret = orion_pcie_wr_conf(PCIE_BASE, bus, devfn, where, size, val); in pcie_wr_conf()
274 u32 where, u32 size, u32 *val) in orion5x_pci_hw_rd_conf() argument
280 PCI_CONF_DEV(dev) | PCI_CONF_REG(where) | in orion5x_pci_hw_rd_conf()
286 *val = (*val >> (8*(where & 0x3))) & 0xff; in orion5x_pci_hw_rd_conf()
[all …]
/linux-4.4.14/drivers/pci/host/
Dpcie-altera.c236 int where, u8 byte_en, u32 *value) in tlp_cfg_dword_read() argument
247 headers[2] = TLP_CFG_DW2(bus, devfn, where); in tlp_cfg_dword_read()
255 int where, u8 byte_en, u32 value) in tlp_cfg_dword_write() argument
267 headers[2] = TLP_CFG_DW2(bus, devfn, where); in tlp_cfg_dword_write()
270 if ((where & 0x7) == 0) in tlp_cfg_dword_write()
283 if ((bus == pcie->root_bus_nr) && (where == PCI_PRIMARY_BUS)) in tlp_cfg_dword_write()
290 int where, int size, u32 *value) in altera_pcie_cfg_read() argument
297 if (altera_pcie_hide_rc_bar(bus, devfn, where)) in altera_pcie_cfg_read()
307 byte_en = 1 << (where & 3); in altera_pcie_cfg_read()
310 byte_en = 3 << (where & 3); in altera_pcie_cfg_read()
[all …]
Dpci-mvebu.c48 #define PCIE_CONF_ADDR(bus, devfn, where) \ argument
50 PCIE_CONF_FUNC(PCI_FUNC(devfn)) | PCIE_CONF_REG(where) | \
278 u32 devfn, int where, int size, u32 *val) in mvebu_pcie_hw_rd_conf() argument
282 mvebu_writel(port, PCIE_CONF_ADDR(bus->number, devfn, where), in mvebu_pcie_hw_rd_conf()
287 *val = readb_relaxed(conf_data + (where & 3)); in mvebu_pcie_hw_rd_conf()
290 *val = readw_relaxed(conf_data + (where & 2)); in mvebu_pcie_hw_rd_conf()
302 u32 devfn, int where, int size, u32 val) in mvebu_pcie_hw_wr_conf() argument
306 mvebu_writel(port, PCIE_CONF_ADDR(bus->number, devfn, where), in mvebu_pcie_hw_wr_conf()
311 writeb(val, conf_data + (where & 3)); in mvebu_pcie_hw_wr_conf()
314 writew(val, conf_data + (where & 2)); in mvebu_pcie_hw_wr_conf()
[all …]
Dpcie-hisi.c48 static int hisi_pcie_cfg_read(struct pcie_port *pp, int where, int size, in hisi_pcie_cfg_read() argument
56 walker += (where & 0x3); in hisi_pcie_cfg_read()
57 reg = where & ~0x3; in hisi_pcie_cfg_read()
73 static int hisi_pcie_cfg_write(struct pcie_port *pp, int where, int size, in hisi_pcie_cfg_write() argument
81 walker += (where & 0x3); in hisi_pcie_cfg_write()
82 reg = where & ~0x3; in hisi_pcie_cfg_write()
Dpcie-rcar.c166 static void rcar_rmw32(struct rcar_pcie *pcie, int where, u32 mask, u32 data) in rcar_rmw32() argument
168 int shift = 8 * (where & 3); in rcar_rmw32()
169 u32 val = rcar_pci_read_reg(pcie, where & ~3); in rcar_rmw32()
173 rcar_pci_write_reg(pcie, val, where & ~3); in rcar_rmw32()
176 static u32 rcar_read_conf(struct rcar_pcie *pcie, int where) in rcar_read_conf() argument
178 int shift = 8 * (where & 3); in rcar_read_conf()
179 u32 val = rcar_pci_read_reg(pcie, where & ~3); in rcar_read_conf()
187 unsigned int devfn, int where, u32 *data) in rcar_pcie_config_access() argument
193 reg = where & ~3; in rcar_pcie_config_access()
265 int where, int size, u32 *val) in rcar_pcie_read_conf() argument
[all …]
Dpcie-designware.c128 static int dw_pcie_rd_own_conf(struct pcie_port *pp, int where, int size, in dw_pcie_rd_own_conf() argument
134 ret = pp->ops->rd_own_conf(pp, where, size, val); in dw_pcie_rd_own_conf()
136 ret = dw_pcie_cfg_read(pp->dbi_base + where, size, val); in dw_pcie_rd_own_conf()
141 static int dw_pcie_wr_own_conf(struct pcie_port *pp, int where, int size, in dw_pcie_wr_own_conf() argument
147 ret = pp->ops->wr_own_conf(pp, where, size, val); in dw_pcie_wr_own_conf()
149 ret = dw_pcie_cfg_write(pp->dbi_base + where, size, val); in dw_pcie_wr_own_conf()
567 u32 devfn, int where, int size, u32 *val) in dw_pcie_rd_other_conf() argument
592 ret = dw_pcie_cfg_read(va_cfg_base + where, size, val); in dw_pcie_rd_other_conf()
601 u32 devfn, int where, int size, u32 val) in dw_pcie_wr_other_conf() argument
626 ret = dw_pcie_cfg_write(va_cfg_base + where, size, val); in dw_pcie_wr_other_conf()
[all …]
Dpcie-designware.h59 int (*rd_own_conf)(struct pcie_port *pp, int where, int size, u32 *val);
60 int (*wr_own_conf)(struct pcie_port *pp, int where, int size, u32 val);
62 unsigned int devfn, int where, int size, u32 *val);
64 unsigned int devfn, int where, int size, u32 val);
Dpci-keystone.h48 unsigned int devfn, int where, int size, u32 val);
50 unsigned int devfn, int where, int size, u32 *val);
Dpci-host-generic.c58 int where) in gen_pci_map_cfg_bus_cam() argument
63 return pci->cfg.win[idx] + ((devfn << 8) | where); in gen_pci_map_cfg_bus_cam()
77 int where) in gen_pci_map_cfg_bus_ecam() argument
82 return pci->cfg.win[idx] + ((devfn << 12) | where); in gen_pci_map_cfg_bus_ecam()
Dpci-keystone-dw.c388 unsigned int devfn, int where, int size, u32 *val) in ks_dw_pcie_rd_other_conf() argument
396 return dw_pcie_cfg_read(addr + where, size, val); in ks_dw_pcie_rd_other_conf()
400 unsigned int devfn, int where, int size, u32 val) in ks_dw_pcie_wr_other_conf() argument
408 return dw_pcie_cfg_write(addr + where, size, val); in ks_dw_pcie_wr_other_conf()
Dpcie-iproc.c100 int where) in iproc_pcie_map_cfg_bus() argument
112 writel(where & CFG_IND_ADDR_MASK, in iproc_pcie_map_cfg_bus()
124 (where & CFG_ADDR_REG_NUM_MASK) | in iproc_pcie_map_cfg_bus()
Dpci-rcar-gen2.c109 int where) in rcar_pci_cfg_base() argument
124 if (slot == 0x0 && where >= 0x40) in rcar_pci_cfg_base()
131 return priv->reg + (slot >> 1) * 0x100 + where; in rcar_pci_cfg_base()
/linux-4.4.14/arch/alpha/kernel/
Dcore_polaris.c66 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, in mk_conf_addr() argument
72 *pci_addr = (bus << 16) | (device_fn << 8) | (where) | in mk_conf_addr()
77 bus, device_fn, where, *pci_addr)); in mk_conf_addr()
83 polaris_read_config(struct pci_bus *bus, unsigned int devfn, int where, in polaris_read_config() argument
89 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) in polaris_read_config()
109 polaris_write_config(struct pci_bus *bus, unsigned int devfn, int where, in polaris_write_config() argument
115 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) in polaris_write_config()
Dcore_apecs.c92 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, in mk_conf_addr() argument
100 bus, device_fn, where, pci_addr, type1)); in mk_conf_addr()
114 addr = (device_fn << 8) | (where); in mk_conf_addr()
118 addr = (bus << 16) | (device_fn << 8) | (where); in mk_conf_addr()
274 apecs_read_config(struct pci_bus *bus, unsigned int devfn, int where, in apecs_read_config() argument
282 if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) in apecs_read_config()
286 shift = (where & 3) * 8; in apecs_read_config()
293 apecs_write_config(struct pci_bus *bus, unsigned int devfn, int where, in apecs_write_config() argument
300 if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) in apecs_write_config()
305 conf_write(addr, value << ((where & 3) * 8), type1); in apecs_write_config()
Dcore_lca.c101 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, in mk_conf_addr() argument
118 addr = (1 << (11 + device)) | (func << 8) | where; in mk_conf_addr()
122 addr = (bus << 16) | (device_fn << 8) | where; in mk_conf_addr()
201 lca_read_config(struct pci_bus *bus, unsigned int devfn, int where, in lca_read_config() argument
208 if (mk_conf_addr(bus, devfn, where, &pci_addr)) in lca_read_config()
211 shift = (where & 3) * 8; in lca_read_config()
219 lca_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, in lca_write_config() argument
225 if (mk_conf_addr(bus, devfn, where, &pci_addr)) in lca_write_config()
230 conf_write(addr, value << ((where & 3) * 8)); in lca_write_config()
Dsys_marvel.c175 unsigned int where) in io7_redirect_irq() argument
181 val |= ((unsigned long)where << 24); /* set the new target pid */ in io7_redirect_irq()
189 io7_redirect_one_lsi(struct io7 *io7, unsigned int which, unsigned int where) in io7_redirect_one_lsi() argument
198 val |= ((unsigned long)where << 14); /* set the new target pid */ in io7_redirect_one_lsi()
206 io7_redirect_one_msi(struct io7 *io7, unsigned int which, unsigned int where) in io7_redirect_one_msi() argument
215 val |= ((unsigned long)where << 14); /* set the new target pid */ in io7_redirect_one_msi()
223 init_one_io7_lsi(struct io7 *io7, unsigned int which, unsigned int where) in init_one_io7_lsi() argument
228 io7->csrs->PO7_LSI_CTL[which].csr = ((unsigned long)where << 14); in init_one_io7_lsi()
234 init_one_io7_msi(struct io7 *io7, unsigned int which, unsigned int where) in init_one_io7_msi() argument
239 io7->csrs->PO7_MSI_CTL[which].csr = ((unsigned long)where << 14); in init_one_io7_msi()
Dcore_t2.c140 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, in mk_conf_addr() argument
148 bus, device_fn, where, pci_addr, type1)); in mk_conf_addr()
162 addr = (0x0800L << device) | ((device_fn & 7) << 8) | (where); in mk_conf_addr()
166 addr = (bus << 16) | (device_fn << 8) | (where); in mk_conf_addr()
283 t2_read_config(struct pci_bus *bus, unsigned int devfn, int where, in t2_read_config() argument
291 if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) in t2_read_config()
295 shift = (where & 3) * 8; in t2_read_config()
302 t2_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, in t2_write_config() argument
309 if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) in t2_write_config()
314 conf_write(addr, value << ((where & 3) * 8), type1); in t2_write_config()
Dcore_irongate.c81 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, in mk_conf_addr() argument
89 bus, device_fn, where, pci_addr, type1)); in mk_conf_addr()
93 addr = (bus << 16) | (device_fn << 8) | where; in mk_conf_addr()
102 irongate_read_config(struct pci_bus *bus, unsigned int devfn, int where, in irongate_read_config() argument
108 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) in irongate_read_config()
127 irongate_write_config(struct pci_bus *bus, unsigned int devfn, int where, in irongate_write_config() argument
133 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) in irongate_write_config()
Dcore_mcpcia.c169 mk_conf_addr(struct pci_bus *pbus, unsigned int devfn, int where, in mk_conf_addr() argument
178 bus, devfn, hose->index, where, pci_addr, type1)); in mk_conf_addr()
185 addr = (bus << 16) | (devfn << 8) | (where); in mk_conf_addr()
195 mcpcia_read_config(struct pci_bus *bus, unsigned int devfn, int where, in mcpcia_read_config() argument
202 if (mk_conf_addr(bus, devfn, where, hose, &addr, &type1)) in mcpcia_read_config()
209 *value = __kernel_extbl(w, where & 3); in mcpcia_read_config()
212 *value = __kernel_extwl(w, where & 3); in mcpcia_read_config()
222 mcpcia_write_config(struct pci_bus *bus, unsigned int devfn, int where, in mcpcia_write_config() argument
229 if (mk_conf_addr(bus, devfn, where, hose, &addr, &type1)) in mcpcia_write_config()
233 value = __kernel_insql(value, where & 3); in mcpcia_write_config()
Dcore_tsunami.c91 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, in mk_conf_addr() argument
100 bus, device_fn, where, pci_addr, type1)); in mk_conf_addr()
106 addr = (bus << 16) | (device_fn << 8) | where; in mk_conf_addr()
115 tsunami_read_config(struct pci_bus *bus, unsigned int devfn, int where, in tsunami_read_config() argument
121 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) in tsunami_read_config()
140 tsunami_write_config(struct pci_bus *bus, unsigned int devfn, int where, in tsunami_write_config() argument
146 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) in tsunami_write_config()
Dcore_cia.c89 mk_conf_addr(struct pci_bus *bus_dev, unsigned int device_fn, int where, in mk_conf_addr() argument
95 *pci_addr = (bus << 16) | (device_fn << 8) | where; in mk_conf_addr()
99 bus, device_fn, where, *pci_addr)); in mk_conf_addr()
208 cia_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, in cia_read_config() argument
216 if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) in cia_read_config()
220 shift = (where & 3) * 8; in cia_read_config()
227 cia_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, in cia_write_config() argument
234 if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) in cia_write_config()
239 conf_write(addr, value << ((where & 3) * 8), type1); in cia_write_config()
Dcore_wildfire.c355 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, in mk_conf_addr() argument
364 bus, device_fn, where, pci_addr, type1)); in mk_conf_addr()
370 addr = (bus << 16) | (device_fn << 8) | where; in mk_conf_addr()
379 wildfire_read_config(struct pci_bus *bus, unsigned int devfn, int where, in wildfire_read_config() argument
385 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) in wildfire_read_config()
404 wildfire_write_config(struct pci_bus *bus, unsigned int devfn, int where, in wildfire_write_config() argument
410 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) in wildfire_write_config()
Dcore_titan.c115 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, in mk_conf_addr() argument
124 bus, device_fn, where, pci_addr, type1)); in mk_conf_addr()
130 addr = (bus << 16) | (device_fn << 8) | where; in mk_conf_addr()
139 titan_read_config(struct pci_bus *bus, unsigned int devfn, int where, in titan_read_config() argument
145 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) in titan_read_config()
164 titan_write_config(struct pci_bus *bus, unsigned int devfn, int where, in titan_write_config() argument
170 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) in titan_write_config()
Dcore_marvel.c499 unsigned int devfn, int where) in build_conf_addr() argument
501 return (hose->config_space_base | (bus << 16) | (devfn << 8) | where); in build_conf_addr()
505 mk_conf_addr(struct pci_bus *pbus, unsigned int devfn, int where) in mk_conf_addr() argument
527 addr = build_conf_addr(hose, bus, devfn, where); in mk_conf_addr()
534 marvel_read_config(struct pci_bus *bus, unsigned int devfn, int where, in marvel_read_config() argument
539 if (0 == (addr = mk_conf_addr(bus, devfn, where))) in marvel_read_config()
560 marvel_write_config(struct pci_bus *bus, unsigned int devfn, int where, in marvel_write_config() argument
565 if (0 == (addr = mk_conf_addr(bus, devfn, where))) in marvel_write_config()
/linux-4.4.14/drivers/gpu/drm/mga/
Dmga_warp.c58 int n_pipes, where; in mga_warp_install_microcode() local
89 where = 0; in mga_warp_install_microcode()
94 where++; in mga_warp_install_microcode()
97 if (where != n_pipes) { in mga_warp_install_microcode()
113 where = 0; in mga_warp_install_microcode()
120 dev_priv->warp_pipe_phys[where] = pcbase; in mga_warp_install_microcode()
126 where++; in mga_warp_install_microcode()
/linux-4.4.14/arch/arm/mach-iop13xx/
Dpci.c181 static u32 iop13xx_atux_cfg_address(struct pci_bus *bus, int devfn, int where) in iop13xx_atux_cfg_address() argument
191 addr |= PCI_FUNC(devfn) << 8 | ((where & 0xff) & ~3); in iop13xx_atux_cfg_address()
192 addr |= ((where & 0xf00) >> 8) << 24; /* upper register number */ in iop13xx_atux_cfg_address()
204 static u32 iop13xx_atue_cfg_address(struct pci_bus *bus, int devfn, int where) in iop13xx_atue_cfg_address() argument
214 (where & ~0x3); in iop13xx_atue_cfg_address()
279 iop13xx_atux_read_config(struct pci_bus *bus, unsigned int devfn, int where, in iop13xx_atux_read_config() argument
282 unsigned long addr = iop13xx_atux_cfg_address(bus, devfn, where); in iop13xx_atux_read_config()
283 u32 val = iop13xx_atux_read(addr) >> ((where & 3) * 8); in iop13xx_atux_read_config()
297 iop13xx_atux_write_config(struct pci_bus *bus, unsigned int devfn, int where, in iop13xx_atux_write_config() argument
300 unsigned long addr = iop13xx_atux_cfg_address(bus, devfn, where); in iop13xx_atux_write_config()
[all …]
/linux-4.4.14/arch/unicore32/kernel/
Dpci.c25 #define CONFIG_CMD(bus, devfn, where) \ argument
26 (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3))
29 puv3_read_config(struct pci_bus *bus, unsigned int devfn, int where, in puv3_read_config() argument
32 writel(CONFIG_CMD(bus, devfn, where), PCICFG_ADDR); in puv3_read_config()
35 *value = (readl(PCICFG_DATA) >> ((where & 3) * 8)) & 0xFF; in puv3_read_config()
38 *value = (readl(PCICFG_DATA) >> ((where & 2) * 8)) & 0xFFFF; in puv3_read_config()
48 puv3_write_config(struct pci_bus *bus, unsigned int devfn, int where, in puv3_write_config() argument
51 writel(CONFIG_CMD(bus, devfn, where), PCICFG_ADDR); in puv3_write_config()
54 writel((readl(PCICFG_DATA) & ~FMASK(8, (where&3)*8)) in puv3_write_config()
55 | FIELD(value, 8, (where&3)*8), PCICFG_DATA); in puv3_write_config()
[all …]
Dtraps.c35 void dump_backtrace_entry(unsigned long where, in dump_backtrace_entry() argument
40 where, (void *)where, from, (void *)from); in dump_backtrace_entry()
43 where, from); in dump_backtrace_entry()
/linux-4.4.14/arch/microblaze/include/asm/
Dpci-bridge.h112 int dev_fn, int where, u8 *val);
114 int dev_fn, int where, u16 *val);
116 int dev_fn, int where, u32 *val);
118 int dev_fn, int where, u8 val);
120 int dev_fn, int where, u16 val);
122 int dev_fn, int where, u32 val);
/linux-4.4.14/drivers/md/
Ddm-io.c281 static void do_region(int rw, unsigned region, struct dm_io_region *where, in do_region() argument
289 sector_t remaining = where->count; in do_region()
290 struct request_queue *q = bdev_get_queue(where->bdev); in do_region()
322 bio->bi_iter.bi_sector = where->sector + (where->count - remaining); in do_region()
323 bio->bi_bdev = where->bdev; in do_region()
363 struct dm_io_region *where, struct dpages *dp, in dispatch_io() argument
380 if (where[i].count || (rw & REQ_FLUSH)) in dispatch_io()
381 do_region(rw, i, where + i, dp, io); in dispatch_io()
405 struct dm_io_region *where, int rw, struct dpages *dp, in sync_io() argument
428 dispatch_io(rw, num_regions, where, dp, io, 1); in sync_io()
[all …]
Ddm-snap-persistent.c213 struct dm_io_region *where; member
223 req->result = dm_io(req->io_req, 1, req->where, NULL); in do_metadata()
232 struct dm_io_region where = { in chunk_io() local
247 return dm_io(&io_req, 1, &where, NULL); in chunk_io()
249 req.where = &where; in chunk_io()
/linux-4.4.14/arch/arm/mach-cns3xxx/
Dpcie.c55 unsigned int devfn, int where) in cns3xxx_pci_map_bus() argument
86 return base + (where & 0xffc) + (devfn << 12); in cns3xxx_pci_map_bus()
90 int where, int size, u32 *val) in cns3xxx_pci_read_config() argument
94 int shift = (where % 4) * 8; in cns3xxx_pci_read_config()
96 ret = pci_generic_config_read32(bus, devfn, where, size, val); in cns3xxx_pci_read_config()
99 (where & 0xffc) == PCI_CLASS_REVISION) in cns3xxx_pci_read_config()
216 int where, int size, u32 val) in cns3xxx_write_config() argument
218 void __iomem *base = cnspci->host_regs + (where & 0xffc); in cns3xxx_write_config()
221 int shift = (where % 4) * 8; in cns3xxx_write_config()
/linux-4.4.14/arch/arm/plat-orion/include/plat/
Dpcie.h25 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-4.4.14/arch/arm/mach-footbridge/
Ddc21285.c63 dc21285_read_config(struct pci_bus *bus, unsigned int devfn, int where, in dc21285_read_config() argument
73 : "=r" (v) : "r" (addr), "r" (where) : "cc"); in dc21285_read_config()
77 : "=r" (v) : "r" (addr), "r" (where) : "cc"); in dc21285_read_config()
81 : "=r" (v) : "r" (addr), "r" (where) : "cc"); in dc21285_read_config()
97 dc21285_write_config(struct pci_bus *bus, unsigned int devfn, int where, in dc21285_write_config() argument
107 : : "r" (value), "r" (addr), "r" (where) in dc21285_write_config()
112 : : "r" (value), "r" (addr), "r" (where) in dc21285_write_config()
117 : : "r" (value), "r" (addr), "r" (where) in dc21285_write_config()
/linux-4.4.14/arch/m68k/coldfire/
Dpci.c70 static unsigned long mcf_mk_pcicar(int bus, unsigned int devfn, int where) in mcf_mk_pcicar() argument
72 return (bus << PCICAR_BUSN) | (devfn << PCICAR_DEVFNN) | (where & 0xfc); in mcf_mk_pcicar()
76 int where, int size, u32 *value) in mcf_pci_readconfig() argument
88 addr = mcf_mk_pcicar(bus->number, devfn, where); in mcf_pci_readconfig()
90 addr = iospace + (where & 0x3); in mcf_pci_readconfig()
110 int where, int size, u32 value) in mcf_pci_writeconfig() argument
120 addr = mcf_mk_pcicar(bus->number, devfn, where); in mcf_pci_writeconfig()
122 addr = iospace + (where & 0x3); in mcf_pci_writeconfig()
/linux-4.4.14/arch/powerpc/kvm/
Dtrace_hv.h388 TP_PROTO(struct kvmppc_vcore *vc, int where),
390 TP_ARGS(vc, where),
395 __field(int, where)
402 __entry->where = where;
407 __entry->where ? "Exit" : "Enter",
412 TP_PROTO(struct kvmppc_vcore *vc, int where),
414 TP_ARGS(vc, where),
419 __field(int, where)
426 __entry->where = where;
431 __entry->where ? "Exit" : "Enter",
/linux-4.4.14/drivers/isdn/hisax/
Dfsm.c111 FsmDelTimer(struct FsmTimer *ft, int where) in FsmDelTimer() argument
115 ft->fi->printdebug(ft->fi, "FsmDelTimer %lx %d", (long) ft, where); in FsmDelTimer()
122 int millisec, int event, void *arg, int where) in FsmAddTimer() argument
128 (long) ft, millisec, where); in FsmAddTimer()
146 int millisec, int event, void *arg, int where) in FsmRestartTimer() argument
152 (long) ft, millisec, where); in FsmRestartTimer()
Dfsm.h56 void *arg, int where);
58 void *arg, int where);
59 void FsmDelTimer(struct FsmTimer *ft, int where);
/linux-4.4.14/arch/arm/mach-versatile/
Dpci.c97 static int versatile_read_config(struct pci_bus *bus, unsigned int devfn, int where, in versatile_read_config() argument
100 void __iomem *addr = __pci_addr(bus, devfn, where & ~3); in versatile_read_config()
120 if (where & 2) v >>= 16; in versatile_read_config()
121 if (where & 1) v >>= 8; in versatile_read_config()
127 if (where & 2) v >>= 16; in versatile_read_config()
141 static int versatile_write_config(struct pci_bus *bus, unsigned int devfn, int where, in versatile_write_config() argument
144 void __iomem *addr = __pci_addr(bus, devfn, where); in versatile_write_config()
/linux-4.4.14/drivers/isdn/mISDN/
Dfsm.c124 mISDN_FsmDelTimer(struct FsmTimer *ft, int where) in mISDN_FsmDelTimer() argument
129 (long) ft, where); in mISDN_FsmDelTimer()
137 int millisec, int event, void *arg, int where) in mISDN_FsmAddTimer() argument
143 (long) ft, millisec, where); in mISDN_FsmAddTimer()
166 int millisec, int event, void *arg, int where) in mISDN_FsmRestartTimer() argument
172 (long) ft, millisec, where); in mISDN_FsmRestartTimer()
/linux-4.4.14/arch/powerpc/include/asm/
Dpci-bridge.h135 int dev_fn, int where, u8 *val);
137 int dev_fn, int where, u16 *val);
139 int dev_fn, int where, u32 *val);
141 int dev_fn, int where, u8 val);
143 int dev_fn, int where, u16 val);
145 int dev_fn, int where, u32 val);
Dppc-pci.h60 int rtas_write_config(struct pci_dn *, int where, int size, u32 val);
61 int rtas_read_config(struct pci_dn *, int where, int size, u32 *val);
/linux-4.4.14/arch/arm/mach-ks8695/
Dpci.c42 static void ks8695_pci_setupconfig(unsigned int bus_nr, unsigned int devfn, unsigned int where) in ks8695_pci_setupconfig() argument
46 pbca = PBCA_ENABLE | (where & ~3); in ks8695_pci_setupconfig()
61 int where) in ks8695_pci_map_bus() argument
63 ks8695_pci_setupconfig(bus->number, devfn, where); in ks8695_pci_map_bus()
67 static void ks8695_local_writeconfig(int where, u32 value) in ks8695_local_writeconfig() argument
69 ks8695_pci_setupconfig(0, 0, where); in ks8695_local_writeconfig()
/linux-4.4.14/arch/arm/common/
Dit8152.c178 unsigned int devfn, int where, in it8152_pci_read_config() argument
185 shift = (where & 3); in it8152_pci_read_config()
187 __raw_writel((addr + where), IT8152_PCI_CFG_ADDR); in it8152_pci_read_config()
196 unsigned int devfn, int where, in it8152_pci_write_config() argument
208 shift = (where & 3); in it8152_pci_write_config()
210 __raw_writel((addr + where), IT8152_PCI_CFG_ADDR); in it8152_pci_write_config()
219 __raw_writel((addr + where), IT8152_PCI_CFG_ADDR); in it8152_pci_write_config()
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-class-led-driver-lm35337 ALS-current-control mode (1, 2), where
25 Set the pattern generator fall and rise times (0..7), where
48 Set the brightness-mapping mode (0, 1), where
58 Set the PWM-input control mask (5 bits), where
Dsysfs-class-backlight-driver-lm35337 ALS-current-control mode (0, 1), where
31 Set the brightness-mapping mode (0, 1), where
41 Set the PWM-input control mask (5 bits), where
Dsysfs-ata12 For each port, a directory ataX is created where X is the ata_port_id of
29 If a link is behind a port, the directory name is linkX, where X is
31 If a link is behind a PM, its name is linkX.Y where X is ata_port_id
50 The name of the directory is devX[.Y].Z where:
51 - X is ata_port_id of the port where the device is connected,
Dsysfs-driver-hid-corsair6 where G-keys triggers their regular key codes. "HW" for
7 hardware playback mode where the G-keys play their macro
Dsysfs-bus-iio-light-lm3533-als27 in_illuminance0_thresh_either_en (0..255), where Y in 0..3.
50 out_currentY_currentZ_raw, where Z is the current zone.
58 Z (0..255), where Y in 0..2 and Z in 0..4.
Dsysfs-bus-usb-lvstest16 Set "U1 timeout" for the downstream port where Link Layer
24 Set "U2 timeout" for the downstream port where Link Layer
Dsysfs-bus-iio-vf6107 where the last is the default mode.
Dsysfs-class-pwm16 probed PWM controller/chip where N is the base of the
47 each exported PWM channel where X is the exported PWM
Dsysfs-bus-iio-gyro-bmg1606 which sets driver in a mode, where data is pushed to the buffer
Dsysfs-bus-iio-accel-bmc1506 which sets driver in a mode, where data is pushed to the buffer
Dsysfs-kernel-mm-hugepages6 of the form hugepages-<size>kB, where <size> is the page size
Dsysfs-class-stm_source6 stm_source device linkage to stm device, where its tracing data
/linux-4.4.14/fs/minix/
Ditree_common.c110 Indirect *where, in splice_branch() argument
118 if (!verify_chain(chain, where-1) || *where->p) in splice_branch()
121 *where->p = where->key; in splice_branch()
130 if (where->bh) in splice_branch()
131 mark_buffer_dirty_inode(where->bh, inode); in splice_branch()
139 bforget(where[i].bh); in splice_branch()
141 minix_free_block(inode, block_to_cpu(where[i].key)); in splice_branch()
/linux-4.4.14/include/linux/
Dpci.h582 void __iomem *(*map_bus)(struct pci_bus *bus, unsigned int devfn, int where);
583 int (*read)(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val);
584 int (*write)(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val);
884 int where, u8 *val);
886 int where, u16 *val);
888 int where, u32 *val);
890 int where, u8 val);
892 int where, u16 val);
894 int where, u32 val);
897 int where, int size, u32 *val);
[all …]
/linux-4.4.14/drivers/video/fbdev/
Dvga16fb.c835 char __iomem *where; in vga_8planes_fillrect() local
838 where = info->screen_base + dx + rect->dy * info->fix.line_length; in vga_8planes_fillrect()
855 writeb(rect->color, where); in vga_8planes_fillrect()
856 where++; in vga_8planes_fillrect()
858 where += line_ofs; in vga_8planes_fillrect()
868 rmw(where); in vga_8planes_fillrect()
869 rmw(where+1); in vga_8planes_fillrect()
870 where += info->fix.line_length; in vga_8planes_fillrect()
1127 char __iomem *where; in vga_8planes_imageblit() local
1131 where = info->screen_base + dx + image->dy * info->fix.line_length; in vga_8planes_imageblit()
[all …]
/linux-4.4.14/drivers/staging/rts5208/
Drtsx.h67 #define rtsx_read_config_byte(chip, where, val) \ argument
68 pci_read_config_byte((chip)->rtsx->pci, where, val)
70 #define rtsx_write_config_byte(chip, where, val) \ argument
71 pci_write_config_byte((chip)->rtsx->pci, where, val)
/linux-4.4.14/scripts/coccinelle/locks/
Dmini_lock.cocci2 /// where the unlock is missing from an if branch, and there is a lock
4 /// cases where the if branch represents a case where the function is
5 /// supposed to exit with the lock held, or where there is some preceding
/linux-4.4.14/drivers/mfd/
Dlpc_sch.c94 static int lpc_sch_get_io(struct pci_dev *pdev, int where, const char *name, in lpc_sch_get_io() argument
103 pci_read_config_dword(pdev, where, &base_addr_cfg); in lpc_sch_get_io()
123 static int lpc_sch_populate_cell(struct pci_dev *pdev, int where, in lpc_sch_populate_cell() argument
134 ret = lpc_sch_get_io(pdev, where, name, res, size); in lpc_sch_populate_cell()
/linux-4.4.14/Documentation/device-mapper/
Ddm-io.txt29 int dm_io_sync(unsigned int num_regions, struct io_region *where, int rw,
32 int dm_io_async(unsigned int num_regions, struct io_region *where, int rw,
40 int dm_io_sync_bvec(unsigned int num_regions, struct io_region *where,
43 int dm_io_async_bvec(unsigned int num_regions, struct io_region *where,
52 int dm_io_sync_vm(unsigned int num_regions, struct io_region *where, int rw,
54 int dm_io_async_vm(unsigned int num_regions, struct io_region *where, int rw,
/linux-4.4.14/drivers/pci/
Daccess.c71 int where, int size, u32 *val) in pci_generic_config_read() argument
75 addr = bus->ops->map_bus(bus, devfn, where); in pci_generic_config_read()
93 int where, int size, u32 val) in pci_generic_config_write() argument
97 addr = bus->ops->map_bus(bus, devfn, where); in pci_generic_config_write()
113 int where, int size, u32 *val) in pci_generic_config_read32() argument
117 addr = bus->ops->map_bus(bus, devfn, where & ~0x3); in pci_generic_config_read32()
126 *val = (*val >> (8 * (where & 3))) & ((1 << (size * 8)) - 1); in pci_generic_config_read32()
133 int where, int size, u32 val) in pci_generic_config_write32() argument
138 addr = bus->ops->map_bus(bus, devfn, where & ~0x3); in pci_generic_config_write32()
146 mask = ~(((1 << (size * 8)) - 1) << ((where & 0x3) * 8)); in pci_generic_config_write32()
[all …]
/linux-4.4.14/Documentation/
Dbtmrvl.txt19 where GPIO is the pin number of GPIO used to wake up the host.
23 where Gap is the gap in milli seconds between wakeup signal and
39 where the option is:
57 where the option is:
79 where the args are:
Dvolatile-considered-harmful.txt58 Another situation where one might be tempted to use volatile is
70 There are still a few rare situations where volatile makes sense in the
74 architectures where direct I/O memory access does work. Essentially,
91 used by a network adapter, where that adapter changes pointers to
/linux-4.4.14/arch/powerpc/platforms/powernv/
Dpci.c429 int where, int size, u32 *val) in pnv_pci_cfg_read() argument
438 rc = opal_pci_config_read_byte(phb->opal_id, bdfn, where, &v8); in pnv_pci_cfg_read()
444 rc = opal_pci_config_read_half_word(phb->opal_id, bdfn, where, in pnv_pci_cfg_read()
451 rc = opal_pci_config_read_word(phb->opal_id, bdfn, where, &v32); in pnv_pci_cfg_read()
460 __func__, pdn->busno, pdn->devfn, where, size, *val); in pnv_pci_cfg_read()
465 int where, int size, u32 val) in pnv_pci_cfg_write() argument
471 pdn->busno, pdn->devfn, where, size, val); in pnv_pci_cfg_write()
474 opal_pci_config_write_byte(phb->opal_id, bdfn, where, val); in pnv_pci_cfg_write()
477 opal_pci_config_write_half_word(phb->opal_id, bdfn, where, val); in pnv_pci_cfg_write()
480 opal_pci_config_write_word(phb->opal_id, bdfn, where, val); in pnv_pci_cfg_write()
[all …]
Dpci.h216 int where, int size, u32 *val);
218 int where, int size, u32 val);
/linux-4.4.14/fs/bfs/
Dfile.c49 unsigned long end, unsigned long where) in bfs_move_blocks() argument
53 dprintf("%08lx-%08lx->%08lx\n", start, end, where); in bfs_move_blocks()
55 if(bfs_move_block(i, where + i, sb)) { in bfs_move_blocks()
57 where + i); in bfs_move_blocks()
/linux-4.4.14/fs/gfs2/
Drecovery.h26 extern int gfs2_revoke_add(struct gfs2_jdesc *jd, u64 blkno, unsigned int where);
27 extern int gfs2_revoke_check(struct gfs2_jdesc *jd, u64 blkno, unsigned int where);
Drecovery.c55 int gfs2_revoke_add(struct gfs2_jdesc *jd, u64 blkno, unsigned int where) in gfs2_revoke_add() argument
69 rr->rr_where = where; in gfs2_revoke_add()
78 rr->rr_where = where; in gfs2_revoke_add()
84 int gfs2_revoke_check(struct gfs2_jdesc *jd, u64 blkno, unsigned int where) in gfs2_revoke_check() argument
101 a = (jd->jd_replay_tail < where); in gfs2_revoke_check()
102 b = (where < rr->rr_where); in gfs2_revoke_check()
/linux-4.4.14/drivers/media/pci/ivtv/
Divtv-firmware.c335 int ivtv_firmware_check(struct ivtv *itv, char *where) in ivtv_firmware_check() argument
341 IVTV_WARN("Encoder has died : %s\n", where); in ivtv_firmware_check()
352 IVTV_WARN("Audio has died (Encoder OK) : %s\n", where); in ivtv_firmware_check()
364 where); in ivtv_firmware_check()
371 IVTV_WARN("Decoder has died : %s\n", where); in ivtv_firmware_check()
380 "Reloading\n", where); in ivtv_firmware_check()
Divtv-firmware.h29 int ivtv_firmware_check(struct ivtv *itv, char *where);
/linux-4.4.14/fs/sysv/
Ditree.c169 Indirect *where, in splice_branch() argument
176 if (!verify_chain(chain, where-1) || *where->p) in splice_branch()
178 *where->p = where->key; in splice_branch()
184 if (where->bh) in splice_branch()
185 dirty_indirect(where->bh, inode); in splice_branch()
196 bforget(where[i].bh); in splice_branch()
198 sysv_free_block(inode->i_sb, where[i].key); in splice_branch()
/linux-4.4.14/arch/ia64/kernel/
Dunwind.c706 set_reg (struct unw_reg_info *reg, enum unw_where where, int when, unsigned long val) in set_reg() argument
709 reg->where = where; in set_reg()
721 if (reg->where == UNW_WHERE_SPILL_HOME) { in alloc_spill_area()
722 reg->where = UNW_WHERE_PSPREL; in alloc_spill_area()
735 if (reg->where == UNW_WHERE_SPILL_HOME) { in spill_next_when()
757 if (reg->where == UNW_WHERE_GR_SAVE) { in finish_prologue()
758 reg->where = UNW_WHERE_GR; in finish_prologue()
1003 if (reg->where == UNW_WHERE_NONE) in desc_reg_when()
1004 reg->where = UNW_WHERE_GR_SAVE; in desc_reg_when()
1092 r->where = UNW_WHERE_NONE; in desc_restore_p()
[all …]
/linux-4.4.14/drivers/pci/pcie/aer/
Daer_inject.c141 static u32 *find_pci_config_dword(struct aer_error *err, int where, in find_pci_config_dword() argument
150 switch (where - err->pos_cap_err) { in find_pci_config_dword()
184 static int pci_read_aer(struct pci_bus *bus, unsigned int devfn, int where, in pci_read_aer() argument
203 sim = find_pci_config_dword(err, where, NULL); in pci_read_aer()
212 return ops->read(bus, devfn, where, size, val); in pci_read_aer()
215 static int pci_write_aer(struct pci_bus *bus, unsigned int devfn, int where, in pci_write_aer() argument
235 sim = find_pci_config_dword(err, where, &rw1cs); in pci_write_aer()
247 return ops->write(bus, devfn, where, size, val); in pci_write_aer()
/linux-4.4.14/drivers/staging/speakup/
Dvarhandlers.c163 struct punc_var_t *where; in spk_get_punc_var() local
165 where = punc_vars; in spk_get_punc_var()
166 while ((where->var_id != -1) && (!rv)) { in spk_get_punc_var()
167 if (where->var_id == var_id) in spk_get_punc_var()
168 rv = where; in spk_get_punc_var()
170 where++; in spk_get_punc_var()
/linux-4.4.14/drivers/md/bcache/
Dbset.h408 static inline bool bch_cut_front(const struct bkey *where, struct bkey *k) in bch_cut_front() argument
410 BUG_ON(bkey_cmp(where, k) > 0); in bch_cut_front()
411 return __bch_cut_front(where, k); in bch_cut_front()
414 static inline bool bch_cut_back(const struct bkey *where, struct bkey *k) in bch_cut_back() argument
416 BUG_ON(bkey_cmp(where, &START_KEY(k)) < 0); in bch_cut_back()
417 return __bch_cut_back(where, k); in bch_cut_back()
Dbset.c193 bool __bch_cut_front(const struct bkey *where, struct bkey *k) in __bch_cut_front() argument
197 if (bkey_cmp(where, &START_KEY(k)) <= 0) in __bch_cut_front()
200 if (bkey_cmp(where, k) < 0) in __bch_cut_front()
201 len = KEY_OFFSET(k) - KEY_OFFSET(where); in __bch_cut_front()
203 bkey_copy_key(k, where); in __bch_cut_front()
213 bool __bch_cut_back(const struct bkey *where, struct bkey *k) in __bch_cut_back() argument
217 if (bkey_cmp(where, k) >= 0) in __bch_cut_back()
220 BUG_ON(KEY_INODE(where) != KEY_INODE(k)); in __bch_cut_back()
222 if (bkey_cmp(where, &START_KEY(k)) > 0) in __bch_cut_back()
223 len = KEY_OFFSET(where) - KEY_START(k); in __bch_cut_back()
[all …]
/linux-4.4.14/arch/arm/mach-dove/
Dpcie.c95 static int pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, in pcie_rd_conf() argument
109 ret = orion_pcie_rd_conf(pp->base, bus, devfn, where, size, val); in pcie_rd_conf()
116 int where, int size, u32 val) in pcie_wr_conf() argument
127 ret = orion_pcie_wr_conf(pp->base, bus, devfn, where, size, val); in pcie_wr_conf()
/linux-4.4.14/Documentation/devicetree/bindings/powerpc/fsl/
Dmcm.txt8 The LAW node represents the region of CCSR space where local access
37 The MPX LAW node represents the region of CCSR space where MCM config
46 Definition: Must include "fsl,CHIP-mcm", "fsl,mcm" where
Decm.txt8 The LAW node represents the region of CCSR space where local access
37 The E500 LAW node represents the region of CCSR space where ECM config
46 Definition: Must include "fsl,CHIP-ecm", "fsl,ecm" where
Dmpic-msgr.txt11 "fsl,mpic-v<version>-msgr", where <version> is the version number of
26 are allowed to receive interrupts. The value is a bit mask where a set
37 'mpic-msgr-block<n>', where <n> is an integer specifying the block's number.
Dmsi-pic.txt5 The first is "fsl,CHIP-msi", where CHIP is the processor(mpc8610, mpc8572,
42 This property may be used in virtualized environments where the hypervisor
109 covers MSIIR where it's normally located.
112 primary window used for memory, but mapped to the MSIR block (where MSIIR
Dmem-ctrlr.txt5 - compatible : Should include "fsl,chip-memory-controller" where
/linux-4.4.14/Documentation/devicetree/bindings/power/
Dda9150-fg.txt8 - dlg,warn-soc-level: Battery discharge level (%) where warning event raised.
10 - dlg,crit-soc-level: Battery discharge level (%) where critical event raised.
/linux-4.4.14/Documentation/devicetree/bindings/arm/
Dxen.txt8 where <version> is the version of the Xen ABI of the platform.
11 memory where the grant table should be mapped to, using an
Dtopology.txt22 For instance in a system where CPUs support SMT, "cpu" nodes represent all
24 In systems where SMT is not supported "cpu" nodes represent all cores present
47 child of the cpus node and provides a container where the actual topology
57 Description: The cpu-map node is just a container node where its
87 cpu-map child nodes must follow a naming convention where the node name
89 cluster/core/thread) (where N = {0, 1, ...} is the node number; nodes which
/linux-4.4.14/arch/arm/mach-mv78xx0/
Dpcie.c137 static int pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, in pcie_rd_conf() argument
151 ret = orion_pcie_rd_conf(pp->base, bus, devfn, where, size, val); in pcie_rd_conf()
158 int where, int size, u32 val) in pcie_wr_conf() argument
169 ret = orion_pcie_wr_conf(pp->base, bus, devfn, where, size, val); in pcie_wr_conf()
/linux-4.4.14/arch/parisc/kernel/
Dreal2.S125 # define PUSH_CR(r, where) mfctl r, %r1 ! STREG,ma %r1, REG_SZ(where) argument
126 # define POP_CR(r, where) LDREG,mb -REG_SZ(where), %r1 ! mtctl %r1, r argument
/linux-4.4.14/drivers/parisc/
Ddino.c173 static int dino_cfg_read(struct pci_bus *bus, unsigned int devfn, int where, in dino_cfg_read() argument
178 u32 v = DINO_CFG_TOK(local_bus, devfn, where & ~3); in dino_cfg_read()
182 DBG("%s: %p, %d, %d, %d\n", __func__, base_addr, devfn, where, in dino_cfg_read()
191 *val = readb(base_addr + DINO_CONFIG_DATA + (where & 3)); in dino_cfg_read()
193 *val = readw(base_addr + DINO_CONFIG_DATA + (where & 2)); in dino_cfg_read()
208 static int dino_cfg_write(struct pci_bus *bus, unsigned int devfn, int where, in dino_cfg_write() argument
213 u32 v = DINO_CFG_TOK(local_bus, devfn, where & ~3); in dino_cfg_write()
217 DBG("%s: %p, %d, %d, %d\n", __func__, base_addr, devfn, where, in dino_cfg_write()
229 writeb(val, base_addr + DINO_CONFIG_DATA + (where & 3)); in dino_cfg_write()
231 writew(val, base_addr + DINO_CONFIG_DATA + (where & 2)); in dino_cfg_write()
/linux-4.4.14/block/
Dblk-exec.c55 int where = at_head ? ELEVATOR_INSERT_FRONT : ELEVATOR_INSERT_BACK; in blk_execute_rq_nowait() local
82 __elv_add_request(q, rq, where); in blk_execute_rq_nowait()
Delevator.c593 void __elv_add_request(struct request_queue *q, struct request *rq, int where) in __elv_add_request() argument
608 (where == ELEVATOR_INSERT_SORT || in __elv_add_request()
609 where == ELEVATOR_INSERT_SORT_MERGE)) in __elv_add_request()
610 where = ELEVATOR_INSERT_BACK; in __elv_add_request()
612 switch (where) { in __elv_add_request()
668 __func__, where); in __elv_add_request()
674 void elv_add_request(struct request_queue *q, struct request *rq, int where) in elv_add_request() argument
679 __elv_add_request(q, rq, where); in elv_add_request()
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_sd7220.c103 static void qib_sd_trimdone_monitor(struct qib_devdata *dd, const char *where);
304 const char *where) in qib_sd_trimdone_monitor() argument
309 if (!where) in qib_sd_trimdone_monitor()
310 where = "?"; in qib_sd_trimdone_monitor()
317 qib_dev_err(dd, "not able to re-sync IB EPB (%s)\n", where); in qib_sd_trimdone_monitor()
322 qib_dev_err(dd, "Failed TRIMDONE 1st read, (%s)\n", where); in qib_sd_trimdone_monitor()
327 qib_dev_err(dd, "IBCS TRIMDONE clear (%s)\n", where); in qib_sd_trimdone_monitor()
336 qib_dev_err(dd, "Failed Dummy RMW, (%s)\n", where); in qib_sd_trimdone_monitor()
348 chn, where); in qib_sd_trimdone_monitor()
356 chn, ret, where); in qib_sd_trimdone_monitor()
[all …]
/linux-4.4.14/drivers/net/team/
DKconfig21 Basic mode where packets are transmitted always by all suitable ports.
32 Basic mode where port used for transmitting packets is selected in
44 Basic mode where port used for transmitting packets is selected
/linux-4.4.14/arch/arm/mach-sa1100/
Dpci-nanoengine.c33 unsigned int devfn, int where) in nanoengine_pci_map_bus() argument
39 ((bus->number << 16) | (devfn << 8) | (where & ~3)); in nanoengine_pci_map_bus()
/linux-4.4.14/arch/parisc/include/asm/
Dassembly.h175 #define SAVE_SP(r, where) mfsp r, %r1 ! STREG %r1, where argument
176 #define REST_SP(r, where) LDREG where, %r1 ! mtsp %r1, r argument
177 #define SAVE_CR(r, where) mfctl r, %r1 ! STREG %r1, where argument
178 #define REST_CR(r, where) LDREG where, %r1 ! mtctl %r1, r argument
/linux-4.4.14/drivers/misc/
Dspear13xx_pcie_gadget.c90 int where, int size, u32 *val) in spear_dbi_read_reg() argument
98 va_address = (ulong)config->va_dbi_base + (where & ~0x3); in spear_dbi_read_reg()
103 *val = (*val >> (8 * (where & 3))) & 0xff; in spear_dbi_read_reg()
105 *val = (*val >> (8 * (where & 3))) & 0xffff; in spear_dbi_read_reg()
112 int where, int size, u32 val) in spear_dbi_write_reg() argument
120 va_address = (ulong)config->va_dbi_base + (where & ~0x3); in spear_dbi_write_reg()
125 writew(val, va_address + (where & 2)); in spear_dbi_write_reg()
127 writeb(val, va_address + (where & 3)); in spear_dbi_write_reg()
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_debugfs.c1417 int where, count; in lpfc_idiag_pcicfg_read() local
1441 where = idiag.cmd.data[IDIAG_PCICFG_WHERE_INDX]; in lpfc_idiag_pcicfg_read()
1449 pci_read_config_byte(pdev, where, &u8val); in lpfc_idiag_pcicfg_read()
1451 "%03x: %02x\n", where, u8val); in lpfc_idiag_pcicfg_read()
1454 pci_read_config_word(pdev, where, &u16val); in lpfc_idiag_pcicfg_read()
1456 "%03x: %04x\n", where, u16val); in lpfc_idiag_pcicfg_read()
1459 pci_read_config_dword(pdev, where, &u32val); in lpfc_idiag_pcicfg_read()
1461 "%03x: %08x\n", where, u32val); in lpfc_idiag_pcicfg_read()
1538 uint32_t where, value, count; in lpfc_idiag_pcicfg_write() local
1561 where = idiag.cmd.data[IDIAG_PCICFG_WHERE_INDX]; in lpfc_idiag_pcicfg_write()
[all …]
/linux-4.4.14/arch/arm64/kernel/
Dtraps.c106 static void dump_backtrace_entry(unsigned long where) in dump_backtrace_entry() argument
111 print_ip_sym(where); in dump_backtrace_entry()
174 unsigned long where = frame.pc; in dump_backtrace() local
178 dump_backtrace_entry(where); in dump_backtrace()
183 if (in_exception_text(where)) in dump_backtrace()
/linux-4.4.14/Documentation/sound/oss/
DWaveArtist6 nn30 read registers nn, where nn = 00 - 09 for mixer settings
8 mm31 write the volume setting in pairs, where mm = (nn - 10) / 2
9 rr32 write the mixer settings in pairs, where rr = nn/2
/linux-4.4.14/drivers/acpi/acpica/
Ddbobject.c318 where); in acpi_db_display_internal_object()
319 if (!obj_desc->reference.where) { in acpi_db_display_internal_object()
326 where)); in acpi_db_display_internal_object()
/linux-4.4.14/scripts/
Dcleanfile169 if ( !defined($where = tell(FILE)) ||
170 !truncate(FILE, $where) ) {
Dcleanpatch250 if ( !defined($where = tell(FILE)) ||
251 !truncate(FILE, $where) ) {
/linux-4.4.14/include/linux/mfd/
Drtsx_pci.h114 #define rtsx_pci_read_config_byte(pcr, where, val) \ argument
115 pci_read_config_byte((pcr)->pci, where, val)
117 #define rtsx_pci_write_config_byte(pcr, where, val) \ argument
118 pci_write_config_byte((pcr)->pci, where, val)
120 #define rtsx_pci_read_config_dword(pcr, where, val) \ argument
121 pci_read_config_dword((pcr)->pci, where, val)
123 #define rtsx_pci_write_config_dword(pcr, where, val) \ argument
124 pci_write_config_dword((pcr)->pci, where, val)
/linux-4.4.14/tools/perf/Documentation/
Dperf-inject.txt40 Merge sched_stat and sched_switch for getting events where and how long
41 tasks slept. sched_switch contains a callchain where a task slept and
/linux-4.4.14/scripts/coccinelle/misc/
Darray_size.cocci3 //# This makes an effort to find cases where ARRAY_SIZE can be used such as
4 //# where there is a division of sizeof the array by the sizeof its first
/linux-4.4.14/Documentation/power/
Dvideo.txt39 There are a few types of systems where video works after S3 resume:
41 (1) systems where video state is preserved over S3.
43 (2) systems where it is possible to call the video BIOS during S3
48 (3) systems that initialize video card into vga text mode and where
55 (5) radeon systems, where X can soft-boot your video card. You'll need
60 (6) other radeon systems, where vbetool is enough to bring system back
82 You may have a system where none of above works. At that point you
/linux-4.4.14/Documentation/kbuild/
Dkbuild.txt20 will be used in all cases where kbuild does preprocessing including
113 INSTALL_PATH specifies where to place the updated kernel and system map
135 Specify where to install modules.
157 INSTALL_FW_PATH specifies where to install the firmware blobs.
166 INSTALL_HDR_PATH specifies where to install user space headers when
172 $(objtree) is the directory where output files are saved.
/linux-4.4.14/arch/m68k/fpsp040/
Dslogn.S28 | u, where u = 2(X-1)/(X+1). Otherwise, move on to Step 2.
30 | Step 2. X = 2**k * Y where 1 <= Y < 2. Define F to be the first seven
32 | 2 where the six "x" match those of Y. Note that |Y-F| <= 2**(-7).
43 | u where u = 2X/(2+X). Otherwise, move on to Step 2.
45 | Step 2: Let 1+X = 2**k * Y, where 1 <= Y < 2. Define F as done in Step 2
47 | k*log(2) + log(F) + poly where poly approximates log(1+u),
/linux-4.4.14/arch/unicore32/include/asm/
Dtraps.h16 extern void dump_backtrace_entry(unsigned long where,
/linux-4.4.14/Documentation/devicetree/bindings/net/
Dphy.txt5 - interrupts : <a b> where a is the interrupt number and b is a
24 of the form: "ethernet-phy-idAAAA.BBBB" where
/linux-4.4.14/Documentation/devicetree/bindings/mmc/
Dti-omap.txt14 - ti,hwmods: For 2420, must be "msdi<n>", where n is controller
41 - ti,hwmods: For 2420, must be "msdi<n>", where n is controller
/linux-4.4.14/net/dccp/ccids/
DKconfig20 where a flow is "reasonably fair" if its sending rate is generally
24 suitable than CCID-2 for applications such streaming media where a
/linux-4.4.14/Documentation/devicetree/bindings/i2c/
Di2c-mpc.txt6 - compatible : should be "fsl,CHIP-i2c" where CHIP is the name of a
13 - interrupts : <a b> where a is the interrupt number and b is a
/linux-4.4.14/Documentation/fb/
Ddeferred_io.txt14 - we get page_mkwrite where we add this page to a list
34 has mentioned a case where it is beneficial to use the page count to decide
65 The deferred_io callback is where you would perform all your IO to the display
/linux-4.4.14/Documentation/parisc/
Ddebugging33 registers interruption handlers read to find out where the machine
36 where exactly it happened. If you're lucky the IAOQ will point to the
/linux-4.4.14/include/pcmcia/
Dds.h203 int pcmcia_read_config_byte(struct pcmcia_device *p_dev, off_t where, u8 *val);
204 int pcmcia_write_config_byte(struct pcmcia_device *p_dev, off_t where, u8 val);
/linux-4.4.14/Documentation/devicetree/bindings/regulator/
Dmax77686.txt24 -LDOn : for LDOs, where n can lie in range 1 to 26.
26 -BUCKn : for BUCKs, where n can lie in range 1 to 9.
/linux-4.4.14/arch/powerpc/platforms/pseries/
Deeh_pseries.c674 static int pseries_eeh_read_config(struct pci_dn *pdn, int where, int size, u32 *val) in pseries_eeh_read_config() argument
676 return rtas_read_config(pdn, where, size, val); in pseries_eeh_read_config()
688 static int pseries_eeh_write_config(struct pci_dn *pdn, int where, int size, u32 val) in pseries_eeh_write_config() argument
690 return rtas_write_config(pdn, where, size, val); in pseries_eeh_write_config()
/linux-4.4.14/drivers/edac/
Dedac_pci_sysfs.c500 int where; in get_pci_parity_status() local
503 where = secondary ? PCI_SEC_STATUS : PCI_STATUS; in get_pci_parity_status()
504 pci_read_config_word(dev, where, &status); in get_pci_parity_status()
525 pci_write_config_word(dev, where, status); in get_pci_parity_status()
/linux-4.4.14/arch/x86/include/asm/
Dsighandling.h15 void signal_fault(struct pt_regs *regs, void __user *frame, char *where);
/linux-4.4.14/Documentation/video4linux/bttv/
DREADME.freeze16 bug. It is very helpful if you can tell where exactly it broke
31 This way it is possible to figure where *exactly* some process in "D"
36 0.7.x. I have no idea where exactly, it works stable for me and a lot of
/linux-4.4.14/arch/arm/kernel/
Dtraps.c65 void dump_backtrace_entry(unsigned long where, unsigned long from, unsigned long frame) in dump_backtrace_entry() argument
68 printk("[<%08lx>] (%ps) from [<%08lx>] (%pS)\n", where, (void *)where, from, (void *)from); in dump_backtrace_entry()
70 printk("Function entered at [<%08lx>] from [<%08lx>]\n", where, from); in dump_backtrace_entry()
73 if (in_exception_text(where)) in dump_backtrace_entry()
/linux-4.4.14/net/xfrm/
DKconfig40 where mobile nodes change their attachment point to the Internet.
79 environment with IPsec configuration where mobile nodes
/linux-4.4.14/Documentation/devicetree/bindings/memory-controllers/ti/
Demif.txt9 - compatible : Should be of the form "ti,emif-<ip-rev>" where <ip-rev>
21 the value shall be "emif<n>" where <n> is the number of the EMIF
/linux-4.4.14/Documentation/devicetree/bindings/nvmem/
Dnvmem.txt8 and act upon it. Obviously, the OS has to know about where to retrieve
9 these data from, and where they are stored on the storage device.
/linux-4.4.14/Documentation/devicetree/bindings/dma/
Dshdma.txt25 - compatible: should be of the form "renesas,shdma-<soc>", where <soc> should
77 where MID/RID values are fixed handles, specified in the SoC
/linux-4.4.14/Documentation/isdn/
DREADME.act200049 where
81 where b, p, i and idstring have the same meanings as the parameters
98 where idstring is the Name of the card, given during insmod-time or
/linux-4.4.14/Documentation/devicetree/bindings/powerpc/4xx/
Demac.txt16 "ibm,emac-CHIP" where CHIP is the host ASIC (440gx,
112 "ibm,mcmal-CHIP" where CHIP is the host ASIC (like
132 "ibm,zmii-CHIP" where CHIP is the host ASIC (like
141 "ibm,rgmii-CHIP" where CHIP is the host ASIC (like
/linux-4.4.14/arch/arm/mach-integrator/
Dpci_v3.c456 static int v3_read_config(struct pci_bus *bus, unsigned int devfn, int where, in v3_read_config() argument
459 int ret = pci_generic_config_read(bus, devfn, where, size, val); in v3_read_config()
464 static int v3_write_config(struct pci_bus *bus, unsigned int devfn, int where, in v3_write_config() argument
467 int ret = pci_generic_config_write(bus, devfn, where, size, val); in v3_write_config()
/linux-4.4.14/Documentation/trace/
Devents-kmem.txt24 kmalloc with kfree, it may be possible to identify memory leaks and where
86 refills and drains could imply an imbalance between CPUs where too much work
99 it is avoided where possible. If the system is using huge pages and needs
106 min_free_kbytes in increments of 3*pageblock_size*nr_online_nodes where
/linux-4.4.14/arch/x86/realmode/rm/
Dtrampoline_32.S41 movl tr_start, %eax # where we need to go
/linux-4.4.14/drivers/block/paride/
DTransition-notes5 under ps_spinlock. There are three places where that can happen:
83 it is holding pd_lock. The only place within the area where we
96 (4) is done the same way - all places where we release pi_spinlock within
99 also in the area. The only place where ->claimed_cont is made non-NULL is
106 Corollary 1: ps_tq_active can be killed. Indeed, the only place where we
/linux-4.4.14/fs/squashfs/
DKconfig16 archival use (i.e. in cases where a .tar.gz file may be used), and in
17 embedded systems where low overhead is needed. Further information
130 aimed at embedded systems with slower CPUs where the overheads
145 aimed at embedded systems with slower CPUs where the overheads
177 This, however, gives poor performance on MTD NAND devices where
/linux-4.4.14/arch/arc/kernel/
Dunwind.c136 } where; member
669 static void set_rule(uleb128_t reg, enum item_location where, uleb128_t value, in set_rule() argument
673 state->regs[reg].where = where; in set_rule()
678 switch (where) { in set_rule()
1156 switch (state.regs[i].where) { in arc_unwind()
1193 if (state.regs[i].where == Nowhere) in arc_unwind()
1197 switch (state.regs[i].where) { in arc_unwind()
1238 switch (state.regs[i].where) { in arc_unwind()
/linux-4.4.14/Documentation/dvb/
Dudev.txt21 dir where udev can execute it, most likely /etc/udev/scripts/
34 will tell you the directory where the rules are, most likely it's /etc/udev/rules.d/
/linux-4.4.14/Documentation/arm/Samsung/
DOverview.txt9 the current kernel support, how to use it and where to find the code
63 where to simplify the include and dependency issues involved with having
/linux-4.4.14/net/can/
DKconfig27 most cases where no higher level protocol is being used. The raw
39 You probably want to use the bcm socket in most cases where cyclic
/linux-4.4.14/arch/arm/include/asm/
Dtraps.h50 extern void dump_backtrace_entry(unsigned long where, unsigned long from, unsigned long frame);
/linux-4.4.14/Documentation/scsi/
Dppa.txt1 -------- Terse where to get ZIP Drive help info --------
/linux-4.4.14/include/linux/decompress/
Dmm.h54 static void free(void *where) in free() argument
/linux-4.4.14/arch/ia64/pci/
Dpci.c99 static int pci_read(struct pci_bus *bus, unsigned int devfn, int where, in pci_read() argument
103 devfn, where, size, value); in pci_read()
106 static int pci_write(struct pci_bus *bus, unsigned int devfn, int where, in pci_write() argument
110 devfn, where, size, value); in pci_write()
/linux-4.4.14/drivers/md/persistent-data/
Ddm-transaction-manager.c79 dm_block_t where; member
111 if (si->where == b) { in is_shadow()
131 si->where = b; in insert_shadow()
/linux-4.4.14/drivers/media/common/saa7146/
Dsaa7146_hlp.c673 int where = 0; in saa7146_write_out_dma() local
680 where = (which-1)*0x18; in saa7146_write_out_dma()
682 saa7146_write(dev, where, vdma->base_odd); in saa7146_write_out_dma()
683 saa7146_write(dev, where+0x04, vdma->base_even); in saa7146_write_out_dma()
684 saa7146_write(dev, where+0x08, vdma->prot_addr); in saa7146_write_out_dma()
685 saa7146_write(dev, where+0x0c, vdma->pitch); in saa7146_write_out_dma()
686 saa7146_write(dev, where+0x10, vdma->base_page); in saa7146_write_out_dma()
687 saa7146_write(dev, where+0x14, vdma->num_line_byte); in saa7146_write_out_dma()
/linux-4.4.14/arch/alpha/lib/
Dmemchr.S72 # Deal with the case where at most 8 bytes remain to be searched
103 # Deal with the case where $18 > 8 bytes remain to be
/linux-4.4.14/Documentation/devicetree/bindings/leds/
Dregister-bit-led.txt4 where single bits in a certain register can turn on/off a
29 glitch should be produced where the LED momentarily turns off (or
/linux-4.4.14/Documentation/devicetree/bindings/sound/
Dnvidia,tegra30-ahub.txt7 plus at least one of the above, where <chip> is tegra132.
52 ... where n is:

123456