Searched refs:where (Results 1 - 200 of 3733) sorted by relevance

1234567891011>>

/linux-4.1.27/fs/ext3/
H A Dext3_jbd.c7 int __ext3_journal_get_undo_access(const char *where, handle_t *handle, __ext3_journal_get_undo_access() argument
12 ext3_journal_abort_handle(where, __func__, bh, handle,err); __ext3_journal_get_undo_access()
16 int __ext3_journal_get_write_access(const char *where, handle_t *handle, __ext3_journal_get_write_access() argument
21 ext3_journal_abort_handle(where, __func__, bh, handle,err); __ext3_journal_get_write_access()
25 int __ext3_journal_forget(const char *where, handle_t *handle, __ext3_journal_forget() argument
30 ext3_journal_abort_handle(where, __func__, bh, handle,err); __ext3_journal_forget()
34 int __ext3_journal_revoke(const char *where, handle_t *handle, __ext3_journal_revoke() argument
39 ext3_journal_abort_handle(where, __func__, bh, handle,err); __ext3_journal_revoke()
43 int __ext3_journal_get_create_access(const char *where, __ext3_journal_get_create_access() argument
48 ext3_journal_abort_handle(where, __func__, bh, handle,err); __ext3_journal_get_create_access()
52 int __ext3_journal_dirty_metadata(const char *where, __ext3_journal_dirty_metadata() argument
57 ext3_journal_abort_handle(where, __func__, bh, handle,err); __ext3_journal_dirty_metadata()
/linux-4.1.27/arch/mips/pci/
H A Dops-nile4.c17 struct pci_bus *bus, unsigned int devfn, int where, u32 *val) nile4_pcibios_config_access()
31 vrc_pciregs[(0x200 + where) >> 2] = *val; nile4_pcibios_config_access()
33 *val = vrc_pciregs[(0x200 + where) >> 2]; nile4_pcibios_config_access()
52 | (where & ~3)); nile4_pcibios_config_access()
55 (where & ~3); nile4_pcibios_config_access()
75 int where, int size, u32 *val) nile4_pcibios_read()
80 if ((size == 2) && (where & 1)) nile4_pcibios_read()
82 else if ((size == 4) && (where & 3)) nile4_pcibios_read()
85 err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, nile4_pcibios_read()
91 *val = (data >> ((where & 3) << 3)) & 0xff; nile4_pcibios_read()
93 *val = (data >> ((where & 3) << 3)) & 0xffff; nile4_pcibios_read()
101 int where, int size, u32 val) nile4_pcibios_write()
106 if ((size == 2) && (where & 1)) nile4_pcibios_write()
108 else if ((size == 4) && (where & 3)) nile4_pcibios_write()
111 err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, nile4_pcibios_write()
117 data = (data & ~(0xff << ((where & 3) << 3))) | nile4_pcibios_write()
118 (val << ((where & 3) << 3)); nile4_pcibios_write()
120 data = (data & ~(0xffff << ((where & 3) << 3))) | nile4_pcibios_write()
121 (val << ((where & 3) << 3)); nile4_pcibios_write()
126 (PCI_ACCESS_WRITE, bus, devfn, where, &data)) nile4_pcibios_write()
16 nile4_pcibios_config_access(unsigned char access_type, struct pci_bus *bus, unsigned int devfn, int where, u32 *val) nile4_pcibios_config_access() argument
74 nile4_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) nile4_pcibios_read() argument
100 nile4_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) nile4_pcibios_write() argument
H A Dops-loongson3.c17 int where, u32 *data) loongson3_pci_config_access()
24 int reg = where & ~3; loongson3_pci_config_access()
51 int where, int size, u32 *val) loongson3_pci_pcibios_read()
55 bus, devfn, where, &data); loongson3_pci_pcibios_read()
61 *val = (data >> ((where & 3) << 3)) & 0xff; loongson3_pci_pcibios_read()
63 *val = (data >> ((where & 3) << 3)) & 0xffff; loongson3_pci_pcibios_read()
71 int where, int size, u32 val) loongson3_pci_pcibios_write()
80 bus, devfn, where, &data); loongson3_pci_pcibios_write()
85 data = (data & ~(0xff << ((where & 3) << 3))) | loongson3_pci_pcibios_write()
86 (val << ((where & 3) << 3)); loongson3_pci_pcibios_write()
88 data = (data & ~(0xffff << ((where & 3) << 3))) | loongson3_pci_pcibios_write()
89 (val << ((where & 3) << 3)); loongson3_pci_pcibios_write()
93 bus, devfn, where, &data); loongson3_pci_pcibios_write()
15 loongson3_pci_config_access(unsigned char access_type, struct pci_bus *bus, unsigned int devfn, int where, u32 *data) loongson3_pci_config_access() argument
50 loongson3_pci_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) loongson3_pci_pcibios_read() argument
70 loongson3_pci_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) loongson3_pci_pcibios_write() argument
H A Dops-rc32434.c48 unsigned char where, u32 *data) config_access()
54 PCI_CFG_SET(bus->number, slot, func, where); config_access()
73 int where, u8 *val) read_config_byte()
78 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); read_config_byte()
79 *val = (data >> ((where & 3) << 3)) & 0xff; read_config_byte()
84 int where, u16 *val) read_config_word()
89 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); read_config_word()
90 *val = (data >> ((where & 3) << 3)) & 0xffff; read_config_word()
95 int where, u32 *val) read_config_dword()
108 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, val); read_config_dword()
114 if (where == PCI_VENDOR_ID) { read_config_dword()
129 write_config_byte(struct pci_bus *bus, unsigned int devfn, int where, write_config_byte() argument
134 if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) write_config_byte()
137 data = (data & ~(0xff << ((where & 3) << 3))) | write_config_byte()
138 (val << ((where & 3) << 3)); write_config_byte()
140 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data)) write_config_byte()
148 write_config_word(struct pci_bus *bus, unsigned int devfn, int where, write_config_word() argument
153 if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) write_config_word()
156 data = (data & ~(0xffff << ((where & 3) << 3))) | write_config_word()
157 (val << ((where & 3) << 3)); write_config_word()
159 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data)) write_config_word()
168 write_config_dword(struct pci_bus *bus, unsigned int devfn, int where, write_config_dword() argument
171 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &val)) write_config_dword()
178 int where, int size, u32 *val) pci_config_read()
182 return read_config_byte(bus, devfn, where, (u8 *) val); pci_config_read()
184 return read_config_word(bus, devfn, where, (u16 *) val); pci_config_read()
186 return read_config_dword(bus, devfn, where, val); pci_config_read()
191 int where, int size, u32 val) pci_config_write()
195 return write_config_byte(bus, devfn, where, (u8) val); pci_config_write()
197 return write_config_word(bus, devfn, where, (u16) val); pci_config_write()
199 return write_config_dword(bus, devfn, where, val); pci_config_write()
46 config_access(unsigned char access_type, struct pci_bus *bus, unsigned int devfn, unsigned char where, u32 *data) config_access() argument
72 read_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 *val) read_config_byte() argument
83 read_config_word(struct pci_bus *bus, unsigned int devfn, int where, u16 *val) read_config_word() argument
94 read_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 *val) read_config_dword() argument
177 pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) pci_config_read() argument
190 pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) pci_config_write() argument
H A Dops-lantiq.c29 unsigned int devfn, unsigned int where, u32 *data) ltq_pci_config_access()
45 LTQ_PCI_CFG_FUNNUM_SHF) | (where & ~0x3); ltq_pci_config_access()
74 int where, int size, u32 *val) ltq_pci_read_config_dword()
78 if (ltq_pci_config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) ltq_pci_read_config_dword()
82 *val = (data >> ((where & 3) << 3)) & 0xff; ltq_pci_read_config_dword()
84 *val = (data >> ((where & 3) << 3)) & 0xffff; ltq_pci_read_config_dword()
92 int where, int size, u32 val) ltq_pci_write_config_dword()
100 devfn, where, &data)) ltq_pci_write_config_dword()
104 data = (data & ~(0xff << ((where & 3) << 3))) | ltq_pci_write_config_dword()
105 (val << ((where & 3) << 3)); ltq_pci_write_config_dword()
107 data = (data & ~(0xffff << ((where & 3) << 3))) | ltq_pci_write_config_dword()
108 (val << ((where & 3) << 3)); ltq_pci_write_config_dword()
111 if (ltq_pci_config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data)) ltq_pci_write_config_dword()
28 ltq_pci_config_access(unsigned char access_type, struct pci_bus *bus, unsigned int devfn, unsigned int where, u32 *data) ltq_pci_config_access() argument
73 ltq_pci_read_config_dword(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) ltq_pci_read_config_dword() argument
91 ltq_pci_write_config_dword(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) ltq_pci_write_config_dword() argument
H A Dops-bonito64.c38 unsigned int devfn, int where, bonito64_pcibios_config_access()
47 int reg = where & ~3; bonito64_pcibios_config_access()
102 int where, int size, u32 * val) bonito64_pcibios_read()
106 if ((size == 2) && (where & 1)) bonito64_pcibios_read()
108 else if ((size == 4) && (where & 3)) bonito64_pcibios_read()
111 if (bonito64_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, bonito64_pcibios_read()
116 *val = (data >> ((where & 3) << 3)) & 0xff; bonito64_pcibios_read()
118 *val = (data >> ((where & 3) << 3)) & 0xffff; bonito64_pcibios_read()
126 int where, int size, u32 val) bonito64_pcibios_write()
130 if ((size == 2) && (where & 1)) bonito64_pcibios_write()
132 else if ((size == 4) && (where & 3)) bonito64_pcibios_write()
139 where, &data)) bonito64_pcibios_write()
143 data = (data & ~(0xff << ((where & 3) << 3))) | bonito64_pcibios_write()
144 (val << ((where & 3) << 3)); bonito64_pcibios_write()
146 data = (data & ~(0xffff << ((where & 3) << 3))) | bonito64_pcibios_write()
147 (val << ((where & 3) << 3)); bonito64_pcibios_write()
150 if (bonito64_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where, bonito64_pcibios_write()
36 bonito64_pcibios_config_access(unsigned char access_type, struct pci_bus *bus, unsigned int devfn, int where, u32 * data) bonito64_pcibios_config_access() argument
101 bonito64_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * val) bonito64_pcibios_read() argument
125 bonito64_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) bonito64_pcibios_write() argument
H A Dops-msc.c47 struct pci_bus *bus, unsigned int devfn, int where, u32 * data) msc_pcibios_config_access()
60 ((where / 4) << MSC01_PCI_CFGADDR_RNUM_SHF))); msc_pcibios_config_access()
89 int where, int size, u32 * val) msc_pcibios_read()
93 if ((size == 2) && (where & 1)) msc_pcibios_read()
95 else if ((size == 4) && (where & 3)) msc_pcibios_read()
98 if (msc_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, msc_pcibios_read()
103 *val = (data >> ((where & 3) << 3)) & 0xff; msc_pcibios_read()
105 *val = (data >> ((where & 3) << 3)) & 0xffff; msc_pcibios_read()
113 int where, int size, u32 val) msc_pcibios_write()
117 if ((size == 2) && (where & 1)) msc_pcibios_write()
119 else if ((size == 4) && (where & 3)) msc_pcibios_write()
126 where, &data)) msc_pcibios_write()
130 data = (data & ~(0xff << ((where & 3) << 3))) | msc_pcibios_write()
131 (val << ((where & 3) << 3)); msc_pcibios_write()
133 data = (data & ~(0xffff << ((where & 3) << 3))) | msc_pcibios_write()
134 (val << ((where & 3) << 3)); msc_pcibios_write()
137 if (msc_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where, msc_pcibios_write()
46 msc_pcibios_config_access(unsigned char access_type, struct pci_bus *bus, unsigned int devfn, int where, u32 * data) msc_pcibios_config_access() argument
88 msc_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * val) msc_pcibios_read() argument
112 msc_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) msc_pcibios_write() argument
H A Dops-bridge.c20 static u32 emulate_ioc3_cfg(int where, int size) emulate_ioc3_cfg() argument
22 if (size == 1 && where == 0x3d) emulate_ioc3_cfg()
24 else if (size == 2 && where == 0x3c) emulate_ioc3_cfg()
26 else if (size == 4 && where == 0x3c) emulate_ioc3_cfg()
44 int where, int size, u32 * value) pci_conf0_read_config()
65 addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[where ^ (4 - size)]; pci_conf0_read_config()
82 if ((where >= 0x14 && where < 0x40) || (where >= 0x48)) { pci_conf0_read_config()
83 *value = emulate_ioc3_cfg(where, size); pci_conf0_read_config()
91 addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; pci_conf0_read_config()
96 shift = ((where & 3) << 3); pci_conf0_read_config()
104 int where, int size, u32 * value) pci_conf1_read_config()
128 addr = &bridge->b_type1_cfg.c[(fn << 8) | (where ^ (4 - size))]; pci_conf1_read_config()
145 if ((where >= 0x14 && where < 0x40) || (where >= 0x48)) { pci_conf1_read_config()
146 *value = emulate_ioc3_cfg(where, size); pci_conf1_read_config()
155 addr = &bridge->b_type1_cfg.c[(fn << 8) | where]; pci_conf1_read_config()
160 shift = ((where & 3) << 3); pci_conf1_read_config()
168 int where, int size, u32 * value) pci_read_config()
171 return pci_conf1_read_config(bus, devfn, where, size, value); pci_read_config()
173 return pci_conf0_read_config(bus, devfn, where, size, value); pci_read_config()
177 int where, int size, u32 value) pci_conf0_write_config()
198 addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[where ^ (4 - size)]; pci_conf0_write_config()
219 if ((where >= 0x14 && where < 0x40) || (where >= 0x48)) pci_conf0_write_config()
226 addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; pci_conf0_write_config()
231 shift = ((where & 3) << 3); pci_conf0_write_config()
243 int where, int size, u32 value) pci_conf1_write_config()
266 addr = &bridge->b_type1_cfg.c[(fn << 8) | (where ^ (4 - size))]; pci_conf1_write_config()
287 if ((where >= 0x14 && where < 0x40) || (where >= 0x48)) pci_conf1_write_config()
294 addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; pci_conf1_write_config()
299 shift = ((where & 3) << 3); pci_conf1_write_config()
311 int where, int size, u32 value) pci_write_config()
314 return pci_conf1_write_config(bus, devfn, where, size, value); pci_write_config()
316 return pci_conf0_write_config(bus, devfn, where, size, value); pci_write_config()
43 pci_conf0_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * value) pci_conf0_read_config() argument
103 pci_conf1_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * value) pci_conf1_read_config() argument
167 pci_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * value) pci_read_config() argument
176 pci_conf0_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) pci_conf0_write_config() argument
242 pci_conf1_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) pci_conf1_write_config() argument
310 pci_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) pci_write_config() argument
H A Dops-bcm63xx.c20 static int postprocess_read(u32 data, int where, unsigned int size) postprocess_read() argument
27 ret = (data >> ((where & 3) << 3)) & 0xff; postprocess_read()
30 ret = (data >> ((where & 3) << 3)) & 0xffff; postprocess_read()
39 static int preprocess_write(u32 orig_data, u32 val, int where, preprocess_write() argument
47 ret = (orig_data & ~(0xff << ((where & 3) << 3))) | preprocess_write()
48 (val << ((where & 3) << 3)); preprocess_write()
51 ret = (orig_data & ~(0xffff << ((where & 3) << 3))) | preprocess_write()
52 (val << ((where & 3) << 3)); preprocess_write()
65 unsigned int devfn, int where) bcm63xx_setup_cfg_access()
72 reg = where >> 2; bcm63xx_setup_cfg_access()
101 unsigned int devfn, int where, int size, bcm63xx_do_cfg_read()
109 if (bcm63xx_setup_cfg_access(type, busn, devfn, where)) bcm63xx_do_cfg_read()
116 *val = postprocess_read(data, where, size); bcm63xx_do_cfg_read()
122 unsigned int devfn, int where, int size, bcm63xx_do_cfg_write()
130 if (bcm63xx_setup_cfg_access(type, busn, devfn, where)) bcm63xx_do_cfg_write()
135 data = preprocess_write(data, val, where, size); bcm63xx_do_cfg_write()
148 int where, int size, u32 *val) bcm63xx_pci_read()
158 where, size, val); bcm63xx_pci_read()
162 int where, int size, u32 val) bcm63xx_pci_write()
172 where, size, val); bcm63xx_pci_write()
208 static int fake_cb_bridge_read(int where, int size, u32 *val) fake_cb_bridge_read() argument
214 reg = where >> 2; fake_cb_bridge_read()
284 *val = postprocess_read(data, where, size); fake_cb_bridge_read()
291 static int fake_cb_bridge_write(int where, int size, u32 val) fake_cb_bridge_write() argument
297 ret = fake_cb_bridge_read((where & ~0x3), 4, &data); fake_cb_bridge_write()
301 data = preprocess_write(data, val, where, size); fake_cb_bridge_write()
303 reg = where >> 2; fake_cb_bridge_write()
363 int where, int size, u32 *val) bcm63xx_cb_read()
369 return fake_cb_bridge_read(where, size, val); bcm63xx_cb_read()
381 where, size, val); bcm63xx_cb_read()
387 int where, int size, u32 val) bcm63xx_cb_write()
391 return fake_cb_bridge_write(where, size, val); bcm63xx_cb_write()
399 where, size, val); bcm63xx_cb_write()
483 int where, int size, u32 *val) bcm63xx_pcie_read()
486 u32 reg = where & ~3; bcm63xx_pcie_read()
496 *val = postprocess_read(data, where, size); bcm63xx_pcie_read()
503 int where, int size, u32 val) bcm63xx_pcie_write()
506 u32 reg = where & ~3; bcm63xx_pcie_write()
517 data = preprocess_write(data, val, where, size); bcm63xx_pcie_write()
64 bcm63xx_setup_cfg_access(int type, unsigned int busn, unsigned int devfn, int where) bcm63xx_setup_cfg_access() argument
100 bcm63xx_do_cfg_read(int type, unsigned int busn, unsigned int devfn, int where, int size, u32 *val) bcm63xx_do_cfg_read() argument
121 bcm63xx_do_cfg_write(int type, unsigned int busn, unsigned int devfn, int where, int size, u32 val) bcm63xx_do_cfg_write() argument
147 bcm63xx_pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) bcm63xx_pci_read() argument
161 bcm63xx_pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) bcm63xx_pci_write() argument
362 bcm63xx_cb_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) bcm63xx_cb_read() argument
386 bcm63xx_cb_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) bcm63xx_cb_write() argument
482 bcm63xx_pcie_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) bcm63xx_pcie_read() argument
502 bcm63xx_pcie_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) bcm63xx_pcie_write() argument
H A Dops-gt64xxx_pci0.c43 struct pci_bus *bus, unsigned int devfn, int where, u32 * data) gt64xxx_pci0_pcibios_config_access()
59 ((where / 4) << GT_PCI0_CFGADDR_REGNUM_SHF) | gt64xxx_pci0_pcibios_config_access()
104 int where, int size, u32 * val) gt64xxx_pci0_pcibios_read()
109 where, &data)) gt64xxx_pci0_pcibios_read()
113 *val = (data >> ((where & 3) << 3)) & 0xff; gt64xxx_pci0_pcibios_read()
115 *val = (data >> ((where & 3) << 3)) & 0xffff; gt64xxx_pci0_pcibios_read()
123 int where, int size, u32 val) gt64xxx_pci0_pcibios_write()
131 devfn, where, &data)) gt64xxx_pci0_pcibios_write()
135 data = (data & ~(0xff << ((where & 3) << 3))) | gt64xxx_pci0_pcibios_write()
136 (val << ((where & 3) << 3)); gt64xxx_pci0_pcibios_write()
138 data = (data & ~(0xffff << ((where & 3) << 3))) | gt64xxx_pci0_pcibios_write()
139 (val << ((where & 3) << 3)); gt64xxx_pci0_pcibios_write()
143 where, &data)) gt64xxx_pci0_pcibios_write()
42 gt64xxx_pci0_pcibios_config_access(unsigned char access_type, struct pci_bus *bus, unsigned int devfn, int where, u32 * data) gt64xxx_pci0_pcibios_config_access() argument
103 gt64xxx_pci0_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * val) gt64xxx_pci0_pcibios_read() argument
122 gt64xxx_pci0_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) gt64xxx_pci0_pcibios_write() argument
H A Dops-vr41xx.c36 unsigned int devfn, int where) set_pci_configuration_address()
42 if (PCI_SLOT(devfn) < 11 || where > 0xff) set_pci_configuration_address()
46 (where & 0xfc), PCICONFAREG); set_pci_configuration_address()
51 if (where > 0xff) set_pci_configuration_address()
55 (where & 0xfc) | 1U, PCICONFAREG); set_pci_configuration_address()
61 static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, pci_config_read() argument
67 if (set_pci_configuration_address(bus->number, devfn, where) < 0) pci_config_read()
74 *val = (data >> ((where & 3) << 3)) & 0xffU; pci_config_read()
77 *val = (data >> ((where & 2) << 3)) & 0xffffU; pci_config_read()
89 static int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, pci_config_write() argument
95 if (set_pci_configuration_address(bus->number, devfn, where) < 0) pci_config_write()
102 shift = (where & 3) << 3; pci_config_write()
107 shift = (where & 2) << 3; pci_config_write()
35 set_pci_configuration_address(unsigned char number, unsigned int devfn, int where) set_pci_configuration_address() argument
H A Dpci-bcm1480ht.c51 #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where))
52 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where)
110 int where, int size, u32 * val) bcm1480ht_pcibios_read()
114 if ((size == 2) && (where & 1)) bcm1480ht_pcibios_read()
116 else if ((size == 4) && (where & 3)) bcm1480ht_pcibios_read()
120 data = READCFG32(CFGADDR(bus, devfn, where)); bcm1480ht_pcibios_read()
125 *val = (data >> ((where & 3) << 3)) & 0xff; bcm1480ht_pcibios_read()
127 *val = (data >> ((where & 3) << 3)) & 0xffff; bcm1480ht_pcibios_read()
135 int where, int size, u32 val) bcm1480ht_pcibios_write()
137 u32 cfgaddr = CFGADDR(bus, devfn, where); bcm1480ht_pcibios_write()
140 if ((size == 2) && (where & 1)) bcm1480ht_pcibios_write()
142 else if ((size == 4) && (where & 3)) bcm1480ht_pcibios_write()
151 data = (data & ~(0xff << ((where & 3) << 3))) | bcm1480ht_pcibios_write()
152 (val << ((where & 3) << 3)); bcm1480ht_pcibios_write()
154 data = (data & ~(0xffff << ((where & 3) << 3))) | bcm1480ht_pcibios_write()
155 (val << ((where & 3) << 3)); bcm1480ht_pcibios_write()
109 bcm1480ht_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * val) bcm1480ht_pcibios_read() argument
134 bcm1480ht_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) bcm1480ht_pcibios_write() argument
H A Dops-emma2rh.c62 unsigned int devfn, int where) set_pci_configuration_address()
84 static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, pci_config_read() argument
99 if (set_pci_configuration_address(bus_num, devfn, where) < 0) pci_config_read()
104 (where & 0xfffffffc)); pci_config_read()
108 *val = (data >> ((where & 3) << 3)) & 0xffU; pci_config_read()
111 *val = (data >> ((where & 2) << 3)) & 0xffffU; pci_config_read()
129 static int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, pci_config_write() argument
143 if (set_pci_configuration_address(bus_num, devfn, where) < 0) pci_config_write()
149 (where & 0xfffffffc)); pci_config_write()
153 shift = (where & 3) << 3; pci_config_write()
158 shift = (where & 2) << 3; pci_config_write()
170 (where & 0xfffffffc)) = data; pci_config_write()
61 set_pci_configuration_address(unsigned char bus_num, unsigned int devfn, int where) set_pci_configuration_address() argument
H A Dops-loongson2.c37 unsigned int devfn, int where, loongson_pcibios_config_access()
46 int reg = where & ~3; loongson_pcibios_config_access()
122 int where, int size, u32 *val) loongson_pcibios_read()
126 if ((size == 2) && (where & 1)) loongson_pcibios_read()
128 else if ((size == 4) && (where & 3)) loongson_pcibios_read()
131 if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, loongson_pcibios_read()
136 *val = (data >> ((where & 3) << 3)) & 0xff; loongson_pcibios_read()
138 *val = (data >> ((where & 3) << 3)) & 0xffff; loongson_pcibios_read()
146 int where, int size, u32 val) loongson_pcibios_write()
150 if ((size == 2) && (where & 1)) loongson_pcibios_write()
152 else if ((size == 4) && (where & 3)) loongson_pcibios_write()
159 where, &data)) loongson_pcibios_write()
163 data = (data & ~(0xff << ((where & 3) << 3))) | loongson_pcibios_write()
164 (val << ((where & 3) << 3)); loongson_pcibios_write()
166 data = (data & ~(0xffff << ((where & 3) << 3))) | loongson_pcibios_write()
167 (val << ((where & 3) << 3)); loongson_pcibios_write()
170 if (loongson_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where, loongson_pcibios_write()
35 loongson_pcibios_config_access(unsigned char access_type, struct pci_bus *bus, unsigned int devfn, int where, u32 *data) loongson_pcibios_config_access() argument
121 loongson_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) loongson_pcibios_read() argument
145 loongson_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) loongson_pcibios_write() argument
H A Dpci-lantiq.h14 unsigned int devfn, int where, int size, u32 *val);
16 unsigned int devfn, int where, int size, u32 val);
H A Dpci-xlp.c64 int where) pci_cfg_read_32bit()
69 where &= ~3; pci_cfg_read_32bit()
83 } else if (bus->number == 0 && PCI_SLOT(devfn) == 1 && where == 0x954) { pci_cfg_read_32bit()
87 pci_cfg_addr(bus->number, devfn, where)); pci_cfg_read_32bit()
93 int where, u32 data) pci_cfg_write_32bit()
98 pci_cfg_addr(bus->number, devfn, where & ~3)); pci_cfg_write_32bit()
103 int where, int size, u32 *val) nlm_pcibios_read()
107 if ((size == 2) && (where & 1)) nlm_pcibios_read()
109 else if ((size == 4) && (where & 3)) nlm_pcibios_read()
112 data = pci_cfg_read_32bit(bus, devfn, where); nlm_pcibios_read()
115 *val = (data >> ((where & 3) << 3)) & 0xff; nlm_pcibios_read()
117 *val = (data >> ((where & 3) << 3)) & 0xffff; nlm_pcibios_read()
126 int where, int size, u32 val) nlm_pcibios_write()
130 if ((size == 2) && (where & 1)) nlm_pcibios_write()
132 else if ((size == 4) && (where & 3)) nlm_pcibios_write()
135 data = pci_cfg_read_32bit(bus, devfn, where); nlm_pcibios_write()
138 data = (data & ~(0xff << ((where & 3) << 3))) | nlm_pcibios_write()
139 (val << ((where & 3) << 3)); nlm_pcibios_write()
141 data = (data & ~(0xffff << ((where & 3) << 3))) | nlm_pcibios_write()
142 (val << ((where & 3) << 3)); nlm_pcibios_write()
146 pci_cfg_write_32bit(bus, devfn, where, data); nlm_pcibios_write()
63 pci_cfg_read_32bit(struct pci_bus *bus, unsigned int devfn, int where) pci_cfg_read_32bit() argument
92 pci_cfg_write_32bit(struct pci_bus *bus, unsigned int devfn, int where, u32 data) pci_cfg_write_32bit() argument
102 nlm_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) nlm_pcibios_read() argument
125 nlm_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) nlm_pcibios_write() argument
H A Dpci-ar724x.c73 int where, int size, u32 value) ar724x_pci_local_write()
79 WARN_ON(where & (size - 1)); ar724x_pci_local_write()
85 data = __raw_readl(base + (where & ~3)); ar724x_pci_local_write()
89 s = ((where & 3) * 8); ar724x_pci_local_write()
94 s = ((where & 2) * 8); ar724x_pci_local_write()
105 __raw_writel(data, base + (where & ~3)); ar724x_pci_local_write()
107 __raw_readl(base + (where & ~3)); ar724x_pci_local_write()
112 static int ar724x_pci_read(struct pci_bus *bus, unsigned int devfn, int where, ar724x_pci_read() argument
127 data = __raw_readl(base + (where & ~3)); ar724x_pci_read()
131 if (where & 1) ar724x_pci_read()
133 if (where & 2) ar724x_pci_read()
138 if (where & 2) ar724x_pci_read()
148 if (where == PCI_BASE_ADDRESS_0 && size == 4 && ar724x_pci_read()
159 static int ar724x_pci_write(struct pci_bus *bus, unsigned int devfn, int where, ar724x_pci_write() argument
174 if (soc_is_ar7240() && where == PCI_BASE_ADDRESS_0 && size == 4) { ar724x_pci_write()
196 data = __raw_readl(base + (where & ~3)); ar724x_pci_write()
200 s = ((where & 3) * 8); ar724x_pci_write()
205 s = ((where & 2) * 8); ar724x_pci_write()
216 __raw_writel(data, base + (where & ~3)); ar724x_pci_write()
218 __raw_readl(base + (where & ~3)); ar724x_pci_write()
72 ar724x_pci_local_write(struct ar724x_pci_controller *apc, int where, int size, u32 value) ar724x_pci_local_write() argument
H A Dpci-xlr.c63 int where) pci_cfg_read_32bit()
69 pci_cfg_addr(bus->number, devfn, where & ~3)); pci_cfg_read_32bit()
75 int where, u32 data) pci_cfg_write_32bit()
80 pci_cfg_addr(bus->number, devfn, where & ~3)); pci_cfg_write_32bit()
85 int where, int size, u32 *val) nlm_pcibios_read()
89 if ((size == 2) && (where & 1)) nlm_pcibios_read()
91 else if ((size == 4) && (where & 3)) nlm_pcibios_read()
94 data = pci_cfg_read_32bit(bus, devfn, where); nlm_pcibios_read()
97 *val = (data >> ((where & 3) << 3)) & 0xff; nlm_pcibios_read()
99 *val = (data >> ((where & 3) << 3)) & 0xffff; nlm_pcibios_read()
108 int where, int size, u32 val) nlm_pcibios_write()
112 if ((size == 2) && (where & 1)) nlm_pcibios_write()
114 else if ((size == 4) && (where & 3)) nlm_pcibios_write()
117 data = pci_cfg_read_32bit(bus, devfn, where); nlm_pcibios_write()
120 data = (data & ~(0xff << ((where & 3) << 3))) | nlm_pcibios_write()
121 (val << ((where & 3) << 3)); nlm_pcibios_write()
123 data = (data & ~(0xffff << ((where & 3) << 3))) | nlm_pcibios_write()
124 (val << ((where & 3) << 3)); nlm_pcibios_write()
128 pci_cfg_write_32bit(bus, devfn, where, data); nlm_pcibios_write()
62 pci_cfg_read_32bit(struct pci_bus *bus, unsigned int devfn, int where) pci_cfg_read_32bit() argument
74 pci_cfg_write_32bit(struct pci_bus *bus, unsigned int devfn, int where, u32 data) pci_cfg_write_32bit() argument
84 nlm_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) nlm_pcibios_read() argument
107 nlm_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) nlm_pcibios_write() argument
H A Dpci-rt2880.c60 unsigned int func, unsigned int where) rt2880_pci_get_cfgaddr()
62 return ((bus << 16) | (slot << 11) | (func << 8) | (where & 0xfc) | rt2880_pci_get_cfgaddr()
67 int where, int size, u32 *val) rt2880_pci_config_read()
74 PCI_FUNC(devfn), where); rt2880_pci_config_read()
83 *val = (data >> ((where & 3) << 3)) & 0xff; rt2880_pci_config_read()
86 *val = (data >> ((where & 3) << 3)) & 0xffff; rt2880_pci_config_read()
97 int where, int size, u32 val) rt2880_pci_config_write()
104 PCI_FUNC(devfn), where); rt2880_pci_config_write()
112 data = (data & ~(0xff << ((where & 3) << 3))) | rt2880_pci_config_write()
113 (val << ((where & 3) << 3)); rt2880_pci_config_write()
116 data = (data & ~(0xffff << ((where & 3) << 3))) | rt2880_pci_config_write()
117 (val << ((where & 3) << 3)); rt2880_pci_config_write()
59 rt2880_pci_get_cfgaddr(unsigned int bus, unsigned int slot, unsigned int func, unsigned int where) rt2880_pci_get_cfgaddr() argument
66 rt2880_pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) rt2880_pci_config_read() argument
96 rt2880_pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) rt2880_pci_config_write() argument
H A Dpci-alchemy.c99 unsigned int dev_fn, unsigned char where, u32 *data) config_access()
134 offset = (function << 8) | (where & ~0x3); config_access()
160 access_type, bus->number, device, where, *data, offset); config_access()
188 int where, u8 *val) read_config_byte()
191 int ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); read_config_byte()
193 if (where & 1) read_config_byte()
195 if (where & 2) read_config_byte()
202 int where, u16 *val) read_config_word()
205 int ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); read_config_word()
207 if (where & 2) read_config_word()
214 int where, u32 *val) read_config_dword()
216 return config_access(PCI_ACCESS_READ, bus, devfn, where, val); read_config_dword()
220 int where, u8 val) write_config_byte()
224 if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) write_config_byte()
227 data = (data & ~(0xff << ((where & 3) << 3))) | write_config_byte()
228 (val << ((where & 3) << 3)); write_config_byte()
230 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data)) write_config_byte()
237 int where, u16 val) write_config_word()
241 if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) write_config_word()
244 data = (data & ~(0xffff << ((where & 3) << 3))) | write_config_word()
245 (val << ((where & 3) << 3)); write_config_word()
247 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data)) write_config_word()
254 int where, u32 val) write_config_dword()
256 return config_access(PCI_ACCESS_WRITE, bus, devfn, where, &val); write_config_dword()
260 int where, int size, u32 *val) alchemy_pci_read()
265 int rc = read_config_byte(bus, devfn, where, &_val); alchemy_pci_read()
272 int rc = read_config_word(bus, devfn, where, &_val); alchemy_pci_read()
278 return read_config_dword(bus, devfn, where, val); alchemy_pci_read()
283 int where, int size, u32 val) alchemy_pci_write()
287 return write_config_byte(bus, devfn, where, (u8) val); alchemy_pci_write()
289 return write_config_word(bus, devfn, where, (u16) val); alchemy_pci_write()
291 return write_config_dword(bus, devfn, where, val); alchemy_pci_write()
98 config_access(unsigned char access_type, struct pci_bus *bus, unsigned int dev_fn, unsigned char where, u32 *data) config_access() argument
187 read_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 *val) read_config_byte() argument
201 read_config_word(struct pci_bus *bus, unsigned int devfn, int where, u16 *val) read_config_word() argument
213 read_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 *val) read_config_dword() argument
219 write_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 val) write_config_byte() argument
236 write_config_word(struct pci_bus *bus, unsigned int devfn, int where, u16 val) write_config_word() argument
253 write_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 val) write_config_dword() argument
259 alchemy_pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) alchemy_pci_read() argument
282 alchemy_pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) alchemy_pci_write() argument
H A Dpci-ar71xx.c72 static inline u32 ar71xx_pci_get_ble(int where, int size, int local) ar71xx_pci_get_ble() argument
76 t = ar71xx_pci_ble_table[size & 3][where & 3]; ar71xx_pci_get_ble()
84 int where) ar71xx_pci_bus_addr()
91 (where & ~3); ar71xx_pci_bus_addr()
95 (PCI_FUNC(devfn) << 8) | (where & ~3) | 1; ar71xx_pci_bus_addr()
148 int where, int size, u32 value) ar71xx_pci_local_write()
153 value = value << (8 * (where & 3)); ar71xx_pci_local_write()
155 ad_cbe = AR71XX_PCI_CRP_CMD_WRITE | (where & ~3); ar71xx_pci_local_write()
156 ad_cbe |= ar71xx_pci_get_ble(where, size, 1); ar71xx_pci_local_write()
164 int where, int size, u32 cmd) ar71xx_pci_set_cfgaddr()
170 addr = ar71xx_pci_bus_addr(bus, devfn, where); ar71xx_pci_set_cfgaddr()
173 __raw_writel(cmd | ar71xx_pci_get_ble(where, size, 0), ar71xx_pci_set_cfgaddr()
180 int where, int size, u32 *value) ar71xx_pci_read_config()
191 err = ar71xx_pci_set_cfgaddr(bus, devfn, where, size, ar71xx_pci_read_config()
198 *value = (data >> (8 * (where & 3))) & ar71xx_pci_read_mask[size & 7]; ar71xx_pci_read_config()
204 int where, int size, u32 value) ar71xx_pci_write_config()
211 value = value << (8 * (where & 3)); ar71xx_pci_write_config()
214 err = ar71xx_pci_set_cfgaddr(bus, devfn, where, size, ar71xx_pci_write_config()
83 ar71xx_pci_bus_addr(struct pci_bus *bus, unsigned int devfn, int where) ar71xx_pci_bus_addr() argument
147 ar71xx_pci_local_write(struct ar71xx_pci_controller *apc, int where, int size, u32 value) ar71xx_pci_local_write() argument
162 ar71xx_pci_set_cfgaddr(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 cmd) ar71xx_pci_set_cfgaddr() argument
179 ar71xx_pci_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value) ar71xx_pci_read_config() argument
203 ar71xx_pci_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) ar71xx_pci_write_config() argument
H A Dpci-bcm1480.c53 #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where))
54 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where)
121 int where, int size, u32 * val) bcm1480_pcibios_read()
125 if ((size == 2) && (where & 1)) bcm1480_pcibios_read()
127 else if ((size == 4) && (where & 3)) bcm1480_pcibios_read()
131 data = READCFG32(CFGADDR(bus, devfn, where)); bcm1480_pcibios_read()
136 *val = (data >> ((where & 3) << 3)) & 0xff; bcm1480_pcibios_read()
138 *val = (data >> ((where & 3) << 3)) & 0xffff; bcm1480_pcibios_read()
146 int where, int size, u32 val) bcm1480_pcibios_write()
148 u32 cfgaddr = CFGADDR(bus, devfn, where); bcm1480_pcibios_write()
151 if ((size == 2) && (where & 1)) bcm1480_pcibios_write()
153 else if ((size == 4) && (where & 3)) bcm1480_pcibios_write()
162 data = (data & ~(0xff << ((where & 3) << 3))) | bcm1480_pcibios_write()
163 (val << ((where & 3) << 3)); bcm1480_pcibios_write()
165 data = (data & ~(0xffff << ((where & 3) << 3))) | bcm1480_pcibios_write()
166 (val << ((where & 3) << 3)); bcm1480_pcibios_write()
120 bcm1480_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * val) bcm1480_pcibios_read() argument
145 bcm1480_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) bcm1480_pcibios_write() argument
H A Dpci-sb1250.c53 #define CFGOFFSET(bus, devfn, where) (((bus)<<16) + ((devfn)<<8) + (where))
54 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where)
130 int where, int size, u32 * val) sb1250_pcibios_read()
134 if ((size == 2) && (where & 1)) sb1250_pcibios_read()
136 else if ((size == 4) && (where & 3)) sb1250_pcibios_read()
140 data = READCFG32(CFGADDR(bus, devfn, where)); sb1250_pcibios_read()
145 *val = (data >> ((where & 3) << 3)) & 0xff; sb1250_pcibios_read()
147 *val = (data >> ((where & 3) << 3)) & 0xffff; sb1250_pcibios_read()
155 int where, int size, u32 val) sb1250_pcibios_write()
157 u32 cfgaddr = CFGADDR(bus, devfn, where); sb1250_pcibios_write()
160 if ((size == 2) && (where & 1)) sb1250_pcibios_write()
162 else if ((size == 4) && (where & 3)) sb1250_pcibios_write()
171 data = (data & ~(0xff << ((where & 3) << 3))) | sb1250_pcibios_write()
172 (val << ((where & 3) << 3)); sb1250_pcibios_write()
174 data = (data & ~(0xffff << ((where & 3) << 3))) | sb1250_pcibios_write()
175 (val << ((where & 3) << 3)); sb1250_pcibios_write()
129 sb1250_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * val) sb1250_pcibios_read() argument
154 sb1250_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) sb1250_pcibios_write() argument
H A Dops-pmcmsp.c118 unsigned char where = 0; /* Write to static Device/Vendor ID */ gen_pci_cfg_wr_show() local
146 (where & 0xFC); gen_pci_cfg_wr_show()
347 * where - address within the Configuration Header
363 unsigned char where, msp_pcibios_config_access()
426 (where & 0xFC); msp_pcibios_config_access()
480 * where - register within the Configuration Header space
492 int where, msp_pcibios_read_config_byte()
503 where, &data)) { msp_pcibios_read_config_byte()
508 *val = (data >> ((where & 3) << 3)) & 0x0ff; msp_pcibios_read_config_byte()
527 * where - register within the Configuration Header space
540 int where, msp_pcibios_read_config_word()
545 /* if (where & 1) */ /* Commented out non-compliant code. msp_pcibios_read_config_word()
551 if ((where & 3) == 3) { msp_pcibios_read_config_word()
562 where, &data)) { msp_pcibios_read_config_word()
567 *val = (data >> ((where & 3) << 3)) & 0x0ffff; msp_pcibios_read_config_word()
584 * where - register within the Configuration Header space
597 int where, msp_pcibios_read_config_dword()
603 if (where & 3) { msp_pcibios_read_config_dword()
614 where, &data)) { msp_pcibios_read_config_dword()
637 * where - register within the Configuration Header space
650 int where, msp_pcibios_write_config_byte()
657 where, &data)) msp_pcibios_write_config_byte()
661 data = (data & ~(0xff << ((where & 3) << 3))) | msp_pcibios_write_config_byte()
662 (val << ((where & 3) << 3)); msp_pcibios_write_config_byte()
666 where, &data)) msp_pcibios_write_config_byte()
685 * where - register within the Configuration Header space
699 int where, msp_pcibios_write_config_word()
704 /* Fixed non-compliance: if (where & 1) */ msp_pcibios_write_config_word()
705 if ((where & 3) == 3) msp_pcibios_write_config_word()
710 where, &data)) msp_pcibios_write_config_word()
714 data = (data & ~(0xffff << ((where & 3) << 3))) | msp_pcibios_write_config_word()
715 (val << ((where & 3) << 3)); msp_pcibios_write_config_word()
719 where, &data)) msp_pcibios_write_config_word()
737 * where - register within the Configuration Header space
751 int where, msp_pcibios_write_config_dword()
755 if (where & 3) msp_pcibios_write_config_dword()
760 where, &val)) msp_pcibios_write_config_dword()
779 * where - register within the Configuration Header space
793 int where, msp_pcibios_read_config()
798 if (msp_pcibios_read_config_byte(bus, devfn, where, val)) { msp_pcibios_read_config()
802 if (msp_pcibios_read_config_word(bus, devfn, where, val)) { msp_pcibios_read_config()
806 if (msp_pcibios_read_config_dword(bus, devfn, where, val)) { msp_pcibios_read_config()
830 * where - register within the Configuration Header space
844 int where, msp_pcibios_write_config()
850 where, (u8)(0xFF & val))) { msp_pcibios_write_config()
855 where, (u16)(0xFFFF & val))) { msp_pcibios_write_config()
859 if (msp_pcibios_write_config_dword(bus, devfn, where, val)) { msp_pcibios_write_config()
360 msp_pcibios_config_access(unsigned char access_type, struct pci_bus *bus, unsigned int devfn, unsigned char where, u32 *data) msp_pcibios_config_access() argument
490 msp_pcibios_read_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u32 *val) msp_pcibios_read_config_byte() argument
538 msp_pcibios_read_config_word(struct pci_bus *bus, unsigned int devfn, int where, u32 *val) msp_pcibios_read_config_word() argument
595 msp_pcibios_read_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 *val) msp_pcibios_read_config_dword() argument
648 msp_pcibios_write_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 val) msp_pcibios_write_config_byte() argument
697 msp_pcibios_write_config_word(struct pci_bus *bus, unsigned int devfn, int where, u16 val) msp_pcibios_write_config_word() argument
749 msp_pcibios_write_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 val) msp_pcibios_write_config_dword() argument
791 msp_pcibios_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) msp_pcibios_read_config() argument
842 msp_pcibios_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) msp_pcibios_write_config() argument
H A Dops-tx3927.c48 static int mkaddr(struct pci_bus *bus, unsigned char devfn, unsigned char where) mkaddr() argument
56 (where & 0xfc) | (bus->parent ? 1 : 0); mkaddr()
77 int where, int size, u32 * val) tx3927_pci_read_config()
79 if (mkaddr(bus, devfn, where)) { tx3927_pci_read_config()
86 *val = *(volatile u8 *) ((unsigned long) & tx3927_pcicptr->icd | (where & 3)); tx3927_pci_read_config()
90 *val = le16_to_cpu(*(volatile u16 *) ((unsigned long) & tx3927_pcicptr->icd | (where & 3))); tx3927_pci_read_config()
102 int where, int size, u32 val) tx3927_pci_write_config()
104 if (mkaddr(bus, devfn, where)) tx3927_pci_write_config()
109 *(volatile u8 *) ((unsigned long) & tx3927_pcicptr->icd | (where & 3)) = val; tx3927_pci_write_config()
113 *(volatile u16 *) ((unsigned long) & tx3927_pcicptr->icd | (where & 2)) = tx3927_pci_write_config()
76 tx3927_pci_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * val) tx3927_pci_read_config() argument
101 tx3927_pci_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) tx3927_pci_write_config() argument
H A Dpci-rt3883.c97 unsigned int func, unsigned int where) rt3883_pci_get_cfgaddr()
99 return (bus << 16) | (slot << 11) | (func << 8) | (where & 0xfc) | rt3883_pci_get_cfgaddr()
235 int where, int size, u32 *val) rt3883_pci_config_read()
248 PCI_FUNC(devfn), where); rt3883_pci_config_read()
255 *val = (data >> ((where & 3) << 3)) & 0xff; rt3883_pci_config_read()
258 *val = (data >> ((where & 3) << 3)) & 0xffff; rt3883_pci_config_read()
269 int where, int size, u32 val) rt3883_pci_config_write()
282 PCI_FUNC(devfn), where); rt3883_pci_config_write()
289 data = (data & ~(0xff << ((where & 3) << 3))) | rt3883_pci_config_write()
290 (val << ((where & 3) << 3)); rt3883_pci_config_write()
293 data = (data & ~(0xffff << ((where & 3) << 3))) | rt3883_pci_config_write()
294 (val << ((where & 3) << 3)); rt3883_pci_config_write()
96 rt3883_pci_get_cfgaddr(unsigned int bus, unsigned int slot, unsigned int func, unsigned int where) rt3883_pci_get_cfgaddr() argument
234 rt3883_pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) rt3883_pci_config_read() argument
268 rt3883_pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) rt3883_pci_config_write() argument
H A Dpci-ar2315.c199 int where, int size, u32 *ptr, bool write) ar2315_pci_cfg_access()
203 u32 addr = (1 << (13 + dev)) | (func << 8) | (where & ~3); ar2315_pci_cfg_access()
205 u32 sh = (where & 3) * 8; ar2315_pci_cfg_access()
254 unsigned devfn, int where, u32 *val) ar2315_pci_local_cfg_rd()
256 return ar2315_pci_cfg_access(apc, devfn, where, sizeof(u32), val, ar2315_pci_local_cfg_rd()
261 unsigned devfn, int where, u32 val) ar2315_pci_local_cfg_wr()
263 return ar2315_pci_cfg_access(apc, devfn, where, sizeof(u32), &val, ar2315_pci_local_cfg_wr()
267 static int ar2315_pci_cfg_read(struct pci_bus *bus, unsigned devfn, int where, ar2315_pci_cfg_read() argument
275 return ar2315_pci_cfg_access(apc, devfn, where, size, value, false); ar2315_pci_cfg_read()
278 static int ar2315_pci_cfg_write(struct pci_bus *bus, unsigned devfn, int where, ar2315_pci_cfg_write() argument
286 return ar2315_pci_cfg_access(apc, devfn, where, size, &value, true); ar2315_pci_cfg_write()
198 ar2315_pci_cfg_access(struct ar2315_pci_ctrl *apc, unsigned devfn, int where, int size, u32 *ptr, bool write) ar2315_pci_cfg_access() argument
253 ar2315_pci_local_cfg_rd(struct ar2315_pci_ctrl *apc, unsigned devfn, int where, u32 *val) ar2315_pci_local_cfg_rd() argument
260 ar2315_pci_local_cfg_wr(struct ar2315_pci_ctrl *apc, unsigned devfn, int where, u32 val) ar2315_pci_local_cfg_wr() argument
H A Dops-tx4927.c62 static int mkaddr(struct pci_bus *bus, unsigned int devfn, int where, mkaddr() argument
69 | ((devfn & 0xff) << 0x08) | (where & 0xfc) mkaddr()
144 int where, int size, u32 *val) tx4927_pci_config_read()
148 if (mkaddr(bus, devfn, where, pcicptr)) { tx4927_pci_config_read()
154 *val = icd_readb(where & 3, pcicptr); tx4927_pci_config_read()
157 *val = icd_readw(where & 3, pcicptr); tx4927_pci_config_read()
166 int where, int size, u32 val) tx4927_pci_config_write()
170 if (mkaddr(bus, devfn, where, pcicptr)) tx4927_pci_config_write()
174 icd_writeb(val, where & 3, pcicptr); tx4927_pci_config_write()
177 icd_writew(val, where & 3, pcicptr); tx4927_pci_config_write()
143 tx4927_pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) tx4927_pci_config_read() argument
165 tx4927_pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) tx4927_pci_config_write() argument
/linux-4.1.27/arch/sh/drivers/pci/
H A Dops-sh5.c25 static int sh5pci_read(struct pci_bus *bus, unsigned int devfn, int where, sh5pci_read() argument
28 SH5PCI_WRITE(PAR, CONFIG_CMD(bus, devfn, where)); sh5pci_read()
32 *val = (u8)SH5PCI_READ_BYTE(PDR + (where & 3)); sh5pci_read()
35 *val = (u16)SH5PCI_READ_SHORT(PDR + (where & 2)); sh5pci_read()
45 static int sh5pci_write(struct pci_bus *bus, unsigned int devfn, int where, sh5pci_write() argument
48 SH5PCI_WRITE(PAR, CONFIG_CMD(bus, devfn, where)); sh5pci_write()
52 SH5PCI_WRITE_BYTE(PDR + (where & 3), (u8)val); sh5pci_write()
55 SH5PCI_WRITE_SHORT(PDR + (where & 2), (u16)val); sh5pci_write()
H A Dops-sh4.c19 #define CONFIG_CMD(bus, devfn, where) \
20 (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3))
26 int where, int size, u32 *val) sh4_pci_read()
37 pci_write_reg(chan, CONFIG_CMD(bus, devfn, where), SH4_PCIPAR); sh4_pci_read()
43 *val = (data >> ((where & 3) << 3)) & 0xff; sh4_pci_read()
46 *val = (data >> ((where & 2) << 3)) & 0xffff; sh4_pci_read()
64 int where, int size, u32 val) sh4_pci_write()
72 pci_write_reg(chan, CONFIG_CMD(bus, devfn, where), SH4_PCIPAR); sh4_pci_write()
78 shift = (where & 3) << 3; sh4_pci_write()
83 shift = (where & 2) << 3; sh4_pci_write()
25 sh4_pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) sh4_pci_read() argument
63 sh4_pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) sh4_pci_write() argument
H A Dops-sh7786.c23 struct pci_bus *bus, unsigned int devfn, int where, u32 *data) sh7786_pcie_config_access()
31 reg = where & ~3; sh7786_pcie_config_access()
93 int where, int size, u32 *val) sh7786_pcie_read()
99 if ((size == 2) && (where & 1)) sh7786_pcie_read()
101 else if ((size == 4) && (where & 3)) sh7786_pcie_read()
106 devfn, where, &data); sh7786_pcie_read()
113 *val = (data >> ((where & 3) << 3)) & 0xff; sh7786_pcie_read()
115 *val = (data >> ((where & 2) << 3)) & 0xffff; sh7786_pcie_read()
120 "where=0x%04x size=%d val=0x%08lx\n", bus->number, sh7786_pcie_read()
121 devfn, where, size, (unsigned long)*val); sh7786_pcie_read()
129 int where, int size, u32 val) sh7786_pcie_write()
135 if ((size == 2) && (where & 1)) sh7786_pcie_write()
137 else if ((size == 4) && (where & 3)) sh7786_pcie_write()
142 devfn, where, &data); sh7786_pcie_write()
147 "where=0x%04x size=%d val=%08lx\n", bus->number, sh7786_pcie_write()
148 devfn, where, size, (unsigned long)val); sh7786_pcie_write()
151 shift = (where & 3) << 3; sh7786_pcie_write()
155 shift = (where & 2) << 3; sh7786_pcie_write()
162 devfn, where, &data); sh7786_pcie_write()
22 sh7786_pcie_config_access(unsigned char access_type, struct pci_bus *bus, unsigned int devfn, int where, u32 *data) sh7786_pcie_config_access() argument
92 sh7786_pcie_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) sh7786_pcie_read() argument
128 sh7786_pcie_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) sh7786_pcie_write() argument
H A Dops-dreamcast.c49 static int gapspci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) gapspci_read() argument
57 case 1: *val = inb(GAPSPCI_BBA_CONFIG+where); break; gapspci_read()
58 case 2: *val = inw(GAPSPCI_BBA_CONFIG+where); break; gapspci_read()
59 case 4: *val = inl(GAPSPCI_BBA_CONFIG+where); break; gapspci_read()
65 static int gapspci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) gapspci_write() argument
71 case 1: outb(( u8)val, GAPSPCI_BBA_CONFIG+where); break; gapspci_write()
72 case 2: outw((u16)val, GAPSPCI_BBA_CONFIG+where); break; gapspci_write()
73 case 4: outl((u32)val, GAPSPCI_BBA_CONFIG+where); break; gapspci_write()
H A Dpci-sh5.h99 #define SET_CONFIG_BITS(bus,devfn,where) ((((bus) << 16) | ((devfn) << 8) | ((where) & ~3)) | 0x80000000)
102 #define CONFIG_CMD(bus, devfn, where) SET_CONFIG_BITS(bus->number,devfn,where)
/linux-4.1.27/arch/sparc/kernel/
H A Dpci_common.c53 int where, int size, u32 *value) sun4u_read_pci_cfg_host()
59 addr = sun4u_config_mkaddr(pbm, bus, devfn, where); sun4u_read_pci_cfg_host()
65 if (where < 8) { sun4u_read_pci_cfg_host()
70 if (where & 1) sun4u_read_pci_cfg_host()
81 if (where < 8) { sun4u_read_pci_cfg_host()
95 where, 2, &tmp32); sun4u_read_pci_cfg_host()
100 where + 2, 2, &tmp32); sun4u_read_pci_cfg_host()
108 int where, int size, u32 *value) sun4u_read_pci_cfg()
129 return sun4u_read_pci_cfg_host(pbm, bus, devfn, where, sun4u_read_pci_cfg()
132 addr = sun4u_config_mkaddr(pbm, bus, devfn, where); sun4u_read_pci_cfg()
143 if (where & 0x01) { sun4u_read_pci_cfg()
145 where); sun4u_read_pci_cfg()
153 if (where & 0x03) { sun4u_read_pci_cfg()
155 where); sun4u_read_pci_cfg()
166 int where, int size, u32 value) sun4u_write_pci_cfg_host()
170 addr = sun4u_config_mkaddr(pbm, bus, devfn, where); sun4u_write_pci_cfg_host()
176 if (where < 8) { sun4u_write_pci_cfg_host()
182 if (where & 1) { sun4u_write_pci_cfg_host()
194 if (where < 8) { sun4u_write_pci_cfg_host()
203 where, 2, value & 0xffff); sun4u_write_pci_cfg_host()
205 where + 2, 2, value >> 16); sun4u_write_pci_cfg_host()
212 int where, int size, u32 value) sun4u_write_pci_cfg()
219 return sun4u_write_pci_cfg_host(pbm, bus, devfn, where, sun4u_write_pci_cfg()
222 addr = sun4u_config_mkaddr(pbm, bus, devfn, where); sun4u_write_pci_cfg()
232 if (where & 0x01) { sun4u_write_pci_cfg()
234 where); sun4u_write_pci_cfg()
241 if (where & 0x03) { sun4u_write_pci_cfg()
243 where); sun4u_write_pci_cfg()
257 int where, int size, u32 *value) sun4v_read_pci_cfg()
266 if (config_out_of_range(pbm, bus, devfn, where)) { sun4v_read_pci_cfg()
271 where, size); sun4v_read_pci_cfg()
290 int where, int size, u32 value) sun4v_write_pci_cfg()
298 if (config_out_of_range(pbm, bus, devfn, where)) { sun4v_write_pci_cfg()
307 where, size, value); sun4v_write_pci_cfg()
51 sun4u_read_pci_cfg_host(struct pci_pbm_info *pbm, unsigned char bus, unsigned int devfn, int where, int size, u32 *value) sun4u_read_pci_cfg_host() argument
107 sun4u_read_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, int where, int size, u32 *value) sun4u_read_pci_cfg() argument
164 sun4u_write_pci_cfg_host(struct pci_pbm_info *pbm, unsigned char bus, unsigned int devfn, int where, int size, u32 value) sun4u_write_pci_cfg_host() argument
211 sun4u_write_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, int where, int size, u32 value) sun4u_write_pci_cfg() argument
256 sun4v_read_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, int where, int size, u32 *value) sun4v_read_pci_cfg() argument
289 sun4v_write_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, int where, int size, u32 value) sun4v_write_pci_cfg() argument
H A Dpsycho_common.h22 int where) psycho_pci_config_mkaddr()
26 PSYCHO_CONFIG_ENCODE(bus, devfn, where)); psycho_pci_config_mkaddr()
19 psycho_pci_config_mkaddr(struct pci_pbm_info *pbm, unsigned char bus, unsigned int devfn, int where) psycho_pci_config_mkaddr() argument
H A Dleon_pci_grpci1.c102 unsigned int devfn, int where, u32 val);
117 unsigned int devfn, int where, u32 *val) grpci1_cfg_r32()
121 if (where & 0x3) grpci1_cfg_r32()
136 pci_conf = (u32 *) (priv->pci_conf | (devfn << 8) | (where & 0xfc)); grpci1_cfg_r32()
154 unsigned int devfn, int where, u32 *val) grpci1_cfg_r16()
159 if (where & 0x1) grpci1_cfg_r16()
161 ret = grpci1_cfg_r32(priv, bus, devfn, where & ~0x3, &v); grpci1_cfg_r16()
162 *val = 0xffff & (v >> (8 * (where & 0x3))); grpci1_cfg_r16()
167 unsigned int devfn, int where, u32 *val) grpci1_cfg_r8()
172 ret = grpci1_cfg_r32(priv, bus, devfn, where & ~0x3, &v); grpci1_cfg_r8()
173 *val = 0xff & (v >> (8 * (where & 3))); grpci1_cfg_r8()
179 unsigned int devfn, int where, u32 val) grpci1_cfg_w32()
184 if (where & 0x3) grpci1_cfg_w32()
199 (devfn << 8) | (where & 0xfc)); grpci1_cfg_w32()
206 unsigned int devfn, int where, u32 val) grpci1_cfg_w16()
211 if (where & 0x1) grpci1_cfg_w16()
213 ret = grpci1_cfg_r32(priv, bus, devfn, where&~3, &v); grpci1_cfg_w16()
216 v = (v & ~(0xffff << (8 * (where & 0x3)))) | grpci1_cfg_w16()
217 ((0xffff & val) << (8 * (where & 0x3))); grpci1_cfg_w16()
218 return grpci1_cfg_w32(priv, bus, devfn, where & ~0x3, v); grpci1_cfg_w16()
222 unsigned int devfn, int where, u32 val) grpci1_cfg_w8()
227 ret = grpci1_cfg_r32(priv, bus, devfn, where & ~0x3, &v); grpci1_cfg_w8()
230 v = (v & ~(0xff << (8 * (where & 0x3)))) | grpci1_cfg_w8()
231 ((0xff & val) << (8 * (where & 0x3))); grpci1_cfg_w8()
232 return grpci1_cfg_w32(priv, bus, devfn, where & ~0x3, v); grpci1_cfg_w8()
239 int where, int size, u32 *val) grpci1_read_config()
252 ret = grpci1_cfg_r8(priv, busno, devfn, where, val); grpci1_read_config()
255 ret = grpci1_cfg_r16(priv, busno, devfn, where, val); grpci1_read_config()
258 ret = grpci1_cfg_r32(priv, busno, devfn, where, val); grpci1_read_config()
268 busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, *val, size); grpci1_read_config()
278 int where, int size, u32 val) grpci1_write_config()
289 busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, size, val); grpci1_write_config()
296 return grpci1_cfg_w8(priv, busno, devfn, where, val); grpci1_write_config()
298 return grpci1_cfg_w16(priv, busno, devfn, where, val); grpci1_write_config()
300 return grpci1_cfg_w32(priv, busno, devfn, where, val); grpci1_write_config()
310 * 3 where all PCI Interrupts has a separate IRQ on the system IRQ controller
116 grpci1_cfg_r32(struct grpci1_priv *priv, unsigned int bus, unsigned int devfn, int where, u32 *val) grpci1_cfg_r32() argument
153 grpci1_cfg_r16(struct grpci1_priv *priv, unsigned int bus, unsigned int devfn, int where, u32 *val) grpci1_cfg_r16() argument
166 grpci1_cfg_r8(struct grpci1_priv *priv, unsigned int bus, unsigned int devfn, int where, u32 *val) grpci1_cfg_r8() argument
178 grpci1_cfg_w32(struct grpci1_priv *priv, unsigned int bus, unsigned int devfn, int where, u32 val) grpci1_cfg_w32() argument
205 grpci1_cfg_w16(struct grpci1_priv *priv, unsigned int bus, unsigned int devfn, int where, u32 val) grpci1_cfg_w16() argument
221 grpci1_cfg_w8(struct grpci1_priv *priv, unsigned int bus, unsigned int devfn, int where, u32 val) grpci1_cfg_w8() argument
238 grpci1_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) grpci1_read_config() argument
277 grpci1_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) grpci1_write_config() argument
H A Dpcic.c54 * find PCIC pin number where INT line goes. Then we may either program
173 #define CONFIG_CMD(bus, device_fn, where) (0x80000000 | (((unsigned int)bus) << 16) | (((unsigned int)device_fn) << 8) | (where & ~3))
176 int where, u32 *value) pcic_read_config_dword()
188 writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr); pcic_read_config_dword()
199 *value = readl(pcic->pcic_config_space_data + (where&4)); pcic_read_config_dword()
213 int where, int size, u32 *val) pcic_read_config()
220 pcic_read_config_dword(bus->number, devfn, where&~3, &v); pcic_read_config()
221 *val = 0xff & (v >> (8*(where & 3))); pcic_read_config()
224 if (where&1) return -EINVAL; pcic_read_config()
225 pcic_read_config_dword(bus->number, devfn, where&~3, &v); pcic_read_config()
226 *val = 0xffff & (v >> (8*(where & 3))); pcic_read_config()
229 if (where&3) return -EINVAL; pcic_read_config()
230 pcic_read_config_dword(bus->number, devfn, where&~3, val); pcic_read_config()
237 int where, u32 value) pcic_write_config_dword()
245 writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr); pcic_write_config_dword()
246 writel(value, pcic->pcic_config_space_data + (where&4)); pcic_write_config_dword()
252 int where, int size, u32 val) pcic_write_config()
259 pcic_read_config_dword(bus->number, devfn, where&~3, &v); pcic_write_config()
260 v = (v & ~(0xff << (8*(where&3)))) | pcic_write_config()
261 ((0xff&val) << (8*(where&3))); pcic_write_config()
262 return pcic_write_config_dword(bus->number, devfn, where&~3, v); pcic_write_config()
264 if (where&1) return -EINVAL; pcic_write_config()
265 pcic_read_config_dword(bus->number, devfn, where&~3, &v); pcic_write_config()
266 v = (v & ~(0xffff << (8*(where&3)))) | pcic_write_config()
267 ((0xffff&val) << (8*(where&3))); pcic_write_config()
268 return pcic_write_config_dword(bus->number, devfn, where&~3, v); pcic_write_config()
270 if (where&3) return -EINVAL; pcic_write_config()
271 return pcic_write_config_dword(bus->number, devfn, where, val); pcic_write_config()
175 pcic_read_config_dword(unsigned int busno, unsigned int devfn, int where, u32 *value) pcic_read_config_dword() argument
212 pcic_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) pcic_read_config() argument
236 pcic_write_config_dword(unsigned int busno, unsigned int devfn, int where, u32 value) pcic_write_config_dword() argument
251 pcic_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) pcic_write_config() argument
H A Dleon_pci_grpci2.c234 unsigned int devfn, int where, u32 *val) grpci2_cfg_r32()
240 if (where & 0x3) grpci2_cfg_r32()
260 (devfn << 8) | (where & 0xfc)); grpci2_cfg_r32()
280 unsigned int devfn, int where, u32 *val) grpci2_cfg_r16()
285 if (where & 0x1) grpci2_cfg_r16()
287 ret = grpci2_cfg_r32(priv, bus, devfn, where & ~0x3, &v); grpci2_cfg_r16()
288 *val = 0xffff & (v >> (8 * (where & 0x3))); grpci2_cfg_r16()
293 unsigned int devfn, int where, u32 *val) grpci2_cfg_r8()
298 ret = grpci2_cfg_r32(priv, bus, devfn, where & ~0x3, &v); grpci2_cfg_r8()
299 *val = 0xff & (v >> (8 * (where & 3))); grpci2_cfg_r8()
305 unsigned int devfn, int where, u32 val) grpci2_cfg_w32()
310 if (where & 0x3) grpci2_cfg_w32()
330 (devfn << 8) | (where & 0xfc)); grpci2_cfg_w32()
343 unsigned int devfn, int where, u32 val) grpci2_cfg_w16()
348 if (where & 0x1) grpci2_cfg_w16()
350 ret = grpci2_cfg_r32(priv, bus, devfn, where&~3, &v); grpci2_cfg_w16()
353 v = (v & ~(0xffff << (8 * (where & 0x3)))) | grpci2_cfg_w16()
354 ((0xffff & val) << (8 * (where & 0x3))); grpci2_cfg_w16()
355 return grpci2_cfg_w32(priv, bus, devfn, where & ~0x3, v); grpci2_cfg_w16()
359 unsigned int devfn, int where, u32 val) grpci2_cfg_w8()
364 ret = grpci2_cfg_r32(priv, bus, devfn, where & ~0x3, &v); grpci2_cfg_w8()
367 v = (v & ~(0xff << (8 * (where & 0x3)))) | grpci2_cfg_w8()
368 ((0xff & val) << (8 * (where & 0x3))); grpci2_cfg_w8()
369 return grpci2_cfg_w32(priv, bus, devfn, where & ~0x3, v); grpci2_cfg_w8()
376 int where, int size, u32 *val) grpci2_read_config()
389 ret = grpci2_cfg_r8(priv, busno, devfn, where, val); grpci2_read_config()
392 ret = grpci2_cfg_r16(priv, busno, devfn, where, val); grpci2_read_config()
395 ret = grpci2_cfg_r32(priv, busno, devfn, where, val); grpci2_read_config()
404 "size=%d\n", busno, PCI_SLOT(devfn), PCI_FUNC(devfn), where, grpci2_read_config()
415 int where, int size, u32 val) grpci2_write_config()
426 where, size, val); grpci2_write_config()
433 return grpci2_cfg_w8(priv, busno, devfn, where, val); grpci2_write_config()
435 return grpci2_cfg_w16(priv, busno, devfn, where, val); grpci2_write_config()
437 return grpci2_cfg_w32(priv, busno, devfn, where, val); grpci2_write_config()
447 * 3 where all PCI Interrupts has a separate IRQ on the system IRQ controller
233 grpci2_cfg_r32(struct grpci2_priv *priv, unsigned int bus, unsigned int devfn, int where, u32 *val) grpci2_cfg_r32() argument
279 grpci2_cfg_r16(struct grpci2_priv *priv, unsigned int bus, unsigned int devfn, int where, u32 *val) grpci2_cfg_r16() argument
292 grpci2_cfg_r8(struct grpci2_priv *priv, unsigned int bus, unsigned int devfn, int where, u32 *val) grpci2_cfg_r8() argument
304 grpci2_cfg_w32(struct grpci2_priv *priv, unsigned int bus, unsigned int devfn, int where, u32 val) grpci2_cfg_w32() argument
342 grpci2_cfg_w16(struct grpci2_priv *priv, unsigned int bus, unsigned int devfn, int where, u32 val) grpci2_cfg_w16() argument
358 grpci2_cfg_w8(struct grpci2_priv *priv, unsigned int bus, unsigned int devfn, int where, u32 val) grpci2_cfg_w8() argument
375 grpci2_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) grpci2_read_config() argument
414 grpci2_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) grpci2_write_config() argument
/linux-4.1.27/arch/mn10300/unit-asb2305/
H A Dpci.c55 #define CONFIG_CMD(bus, devfn, where) \
56 (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3))
83 int where, u32 *_value) pci_ampci_read_config_byte()
88 value = BRIDGEREGB(where); pci_ampci_read_config_byte()
89 __pcbdebug("=> %02hx", &BRIDGEREGL(where), value); pci_ampci_read_config_byte()
91 CONFIG_ADDRESS = CONFIG_CMD(bus, devfn, where); pci_ampci_read_config_byte()
93 value = CONFIG_DATAB(where); pci_ampci_read_config_byte()
95 __pcidebug("=> %02hx", bus, devfn, where, value); pci_ampci_read_config_byte()
103 int where, u32 *_value) pci_ampci_read_config_word()
108 value = BRIDGEREGW(where); pci_ampci_read_config_word()
109 __pcbdebug("=> %04hx", &BRIDGEREGL(where), value); pci_ampci_read_config_word()
111 CONFIG_ADDRESS = CONFIG_CMD(bus, devfn, where); pci_ampci_read_config_word()
113 value = CONFIG_DATAW(where); pci_ampci_read_config_word()
115 __pcidebug("=> %04hx", bus, devfn, where, value); pci_ampci_read_config_word()
123 int where, u32 *_value) pci_ampci_read_config_dword()
128 value = BRIDGEREGL(where); pci_ampci_read_config_dword()
129 __pcbdebug("=> %08x", &BRIDGEREGL(where), value); pci_ampci_read_config_dword()
131 CONFIG_ADDRESS = CONFIG_CMD(bus, devfn, where); pci_ampci_read_config_dword()
133 value = CONFIG_DATAL(where); pci_ampci_read_config_dword()
135 __pcidebug("=> %08x", bus, devfn, where, value); pci_ampci_read_config_dword()
143 int where, u8 value) pci_ampci_write_config_byte()
148 __pcbdebug("<= %02x", &BRIDGEREGB(where), value); pci_ampci_write_config_byte()
149 BRIDGEREGB(where) = value; pci_ampci_write_config_byte()
154 __pcidebug("<= %02x", bus, devfn, where, value); pci_ampci_write_config_byte()
155 CONFIG_ADDRESS = CONFIG_CMD(bus, devfn, where); pci_ampci_write_config_byte()
157 CONFIG_DATAB(where) = value; pci_ampci_write_config_byte()
163 int where, u16 value) pci_ampci_write_config_word()
168 __pcbdebug("<= %04hx", &BRIDGEREGW(where), value); pci_ampci_write_config_word()
169 BRIDGEREGW(where) = value; pci_ampci_write_config_word()
172 __pcidebug("<= %04hx", bus, devfn, where, value); pci_ampci_write_config_word()
173 CONFIG_ADDRESS = CONFIG_CMD(bus, devfn, where); pci_ampci_write_config_word()
175 CONFIG_DATAW(where) = value; pci_ampci_write_config_word()
181 int where, u32 value) pci_ampci_write_config_dword()
186 __pcbdebug("<= %08x", &BRIDGEREGL(where), value); pci_ampci_write_config_dword()
187 BRIDGEREGL(where) = value; pci_ampci_write_config_dword()
190 __pcidebug("<= %08x", bus, devfn, where, value); pci_ampci_write_config_dword()
191 CONFIG_ADDRESS = CONFIG_CMD(bus, devfn, where); pci_ampci_write_config_dword()
193 CONFIG_DATAL(where) = value; pci_ampci_write_config_dword()
199 int where, int size, u32 *val) pci_ampci_read_config()
203 return pci_ampci_read_config_byte(bus, devfn, where, val); pci_ampci_read_config()
205 return pci_ampci_read_config_word(bus, devfn, where, val); pci_ampci_read_config()
207 return pci_ampci_read_config_dword(bus, devfn, where, val); pci_ampci_read_config()
215 int where, int size, u32 val) pci_ampci_write_config()
219 return pci_ampci_write_config_byte(bus, devfn, where, val); pci_ampci_write_config()
221 return pci_ampci_write_config_word(bus, devfn, where, val); pci_ampci_write_config()
223 return pci_ampci_write_config_dword(bus, devfn, where, val); pci_ampci_write_config()
82 pci_ampci_read_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u32 *_value) pci_ampci_read_config_byte() argument
102 pci_ampci_read_config_word(struct pci_bus *bus, unsigned int devfn, int where, u32 *_value) pci_ampci_read_config_word() argument
122 pci_ampci_read_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 *_value) pci_ampci_read_config_dword() argument
142 pci_ampci_write_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 value) pci_ampci_write_config_byte() argument
162 pci_ampci_write_config_word(struct pci_bus *bus, unsigned int devfn, int where, u16 value) pci_ampci_write_config_word() argument
180 pci_ampci_write_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 value) pci_ampci_write_config_dword() argument
198 pci_ampci_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) pci_ampci_read_config() argument
214 pci_ampci_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) pci_ampci_write_config() argument
/linux-4.1.27/arch/arm/plat-orion/include/plat/
H A 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.1.27/arch/alpha/kernel/
H A Dcore_polaris.c66 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, mk_conf_addr() argument
72 *pci_addr = (bus << 16) | (device_fn << 8) | (where) | mk_conf_addr()
75 DBG_CFG(("mk_conf_addr(bus=%d ,device_fn=0x%x, where=0x%x," mk_conf_addr()
77 bus, device_fn, where, *pci_addr)); mk_conf_addr()
83 polaris_read_config(struct pci_bus *bus, unsigned int devfn, int where, polaris_read_config() argument
89 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) polaris_read_config()
109 polaris_write_config(struct pci_bus *bus, unsigned int devfn, int where, polaris_write_config() argument
115 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) polaris_write_config()
H A Dsys_marvel.c50 * where (interrupt) is: io7_device_interrupt()
56 * where (irq) is io7_device_interrupt()
176 unsigned int where) io7_redirect_irq()
182 val |= ((unsigned long)where << 24); /* set the new target pid */ io7_redirect_irq()
190 io7_redirect_one_lsi(struct io7 *io7, unsigned int which, unsigned int where) io7_redirect_one_lsi()
199 val |= ((unsigned long)where << 14); /* set the new target pid */ io7_redirect_one_lsi()
207 io7_redirect_one_msi(struct io7 *io7, unsigned int which, unsigned int where) io7_redirect_one_msi()
216 val |= ((unsigned long)where << 14); /* set the new target pid */ io7_redirect_one_msi()
224 init_one_io7_lsi(struct io7 *io7, unsigned int which, unsigned int where) init_one_io7_lsi()
229 io7->csrs->PO7_LSI_CTL[which].csr = ((unsigned long)where << 14); init_one_io7_lsi()
235 init_one_io7_msi(struct io7 *io7, unsigned int which, unsigned int where) init_one_io7_msi()
240 io7->csrs->PO7_MSI_CTL[which].csr = ((unsigned long)where << 14); init_one_io7_msi()
173 io7_redirect_irq(struct io7 *io7, volatile unsigned long *csr, unsigned int where) io7_redirect_irq() argument
189 io7_redirect_one_lsi(struct io7 *io7, unsigned int which, unsigned int where) io7_redirect_one_lsi() argument
206 io7_redirect_one_msi(struct io7 *io7, unsigned int which, unsigned int where) io7_redirect_one_msi() argument
223 init_one_io7_lsi(struct io7 *io7, unsigned int which, unsigned int where) init_one_io7_lsi() argument
234 init_one_io7_msi(struct io7 *io7, unsigned int which, unsigned int where) init_one_io7_msi() argument
H A Dcore_apecs.c92 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, mk_conf_addr() argument
98 DBGC(("mk_conf_addr(bus=%d ,device_fn=0x%x, where=0x%x," mk_conf_addr()
100 bus, device_fn, where, pci_addr, type1)); mk_conf_addr()
114 addr = (device_fn << 8) | (where); mk_conf_addr()
118 addr = (bus << 16) | (device_fn << 8) | (where); mk_conf_addr()
274 apecs_read_config(struct pci_bus *bus, unsigned int devfn, int where, apecs_read_config() argument
282 if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) apecs_read_config()
286 shift = (where & 3) * 8; apecs_read_config()
293 apecs_write_config(struct pci_bus *bus, unsigned int devfn, int where, apecs_write_config() argument
300 if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) apecs_write_config()
305 conf_write(addr, value << ((where & 3) * 8), type1); apecs_write_config()
H A Dcore_mcpcia.c169 mk_conf_addr(struct pci_bus *pbus, unsigned int devfn, int where, mk_conf_addr() argument
176 DBG_CFG(("mk_conf_addr(bus=%d,devfn=0x%x,hose=%d,where=0x%x," mk_conf_addr()
178 bus, devfn, hose->index, where, pci_addr, type1)); mk_conf_addr()
185 addr = (bus << 16) | (devfn << 8) | (where); mk_conf_addr()
195 mcpcia_read_config(struct pci_bus *bus, unsigned int devfn, int where, mcpcia_read_config() argument
202 if (mk_conf_addr(bus, devfn, where, hose, &addr, &type1)) mcpcia_read_config()
209 *value = __kernel_extbl(w, where & 3); mcpcia_read_config()
212 *value = __kernel_extwl(w, where & 3); mcpcia_read_config()
222 mcpcia_write_config(struct pci_bus *bus, unsigned int devfn, int where, mcpcia_write_config() argument
229 if (mk_conf_addr(bus, devfn, where, hose, &addr, &type1)) mcpcia_write_config()
233 value = __kernel_insql(value, where & 3); mcpcia_write_config()
H A Dcore_t2.c140 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, mk_conf_addr() argument
146 DBG(("mk_conf_addr(bus=%d, dfn=0x%x, where=0x%x," mk_conf_addr()
148 bus, device_fn, where, pci_addr, type1)); mk_conf_addr()
162 addr = (0x0800L << device) | ((device_fn & 7) << 8) | (where); mk_conf_addr()
166 addr = (bus << 16) | (device_fn << 8) | (where); mk_conf_addr()
283 t2_read_config(struct pci_bus *bus, unsigned int devfn, int where, t2_read_config() argument
291 if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) t2_read_config()
295 shift = (where & 3) * 8; t2_read_config()
302 t2_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, t2_write_config() argument
309 if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) t2_write_config()
314 conf_write(addr, value << ((where & 3) * 8), type1); t2_write_config()
H A Dcore_irongate.c82 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, mk_conf_addr() argument
88 DBG_CFG(("mk_conf_addr(bus=%d ,device_fn=0x%x, where=0x%x, " mk_conf_addr()
90 bus, device_fn, where, pci_addr, type1)); mk_conf_addr()
94 addr = (bus << 16) | (device_fn << 8) | where; mk_conf_addr()
103 irongate_read_config(struct pci_bus *bus, unsigned int devfn, int where, irongate_read_config() argument
109 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) irongate_read_config()
128 irongate_write_config(struct pci_bus *bus, unsigned int devfn, int where, irongate_write_config() argument
134 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) irongate_write_config()
H A Dcore_lca.c101 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, mk_conf_addr() argument
118 addr = (1 << (11 + device)) | (func << 8) | where; mk_conf_addr()
122 addr = (bus << 16) | (device_fn << 8) | where; mk_conf_addr()
201 lca_read_config(struct pci_bus *bus, unsigned int devfn, int where, lca_read_config() argument
208 if (mk_conf_addr(bus, devfn, where, &pci_addr)) lca_read_config()
211 shift = (where & 3) * 8; lca_read_config()
219 lca_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, lca_write_config() argument
225 if (mk_conf_addr(bus, devfn, where, &pci_addr)) lca_write_config()
230 conf_write(addr, value << ((where & 3) * 8)); lca_write_config()
H A Dcore_tsunami.c91 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, mk_conf_addr() argument
98 DBG_CFG(("mk_conf_addr(bus=%d ,device_fn=0x%x, where=0x%x, " mk_conf_addr()
100 bus, device_fn, where, pci_addr, type1)); mk_conf_addr()
106 addr = (bus << 16) | (device_fn << 8) | where; mk_conf_addr()
115 tsunami_read_config(struct pci_bus *bus, unsigned int devfn, int where, tsunami_read_config() argument
121 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) tsunami_read_config()
140 tsunami_write_config(struct pci_bus *bus, unsigned int devfn, int where, tsunami_write_config() argument
146 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) tsunami_write_config()
H A Dcore_wildfire.c355 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, mk_conf_addr() argument
362 DBG_CFG(("mk_conf_addr(bus=%d ,device_fn=0x%x, where=0x%x, " mk_conf_addr()
364 bus, device_fn, where, pci_addr, type1)); mk_conf_addr()
370 addr = (bus << 16) | (device_fn << 8) | where; mk_conf_addr()
379 wildfire_read_config(struct pci_bus *bus, unsigned int devfn, int where, wildfire_read_config() argument
385 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) wildfire_read_config()
404 wildfire_write_config(struct pci_bus *bus, unsigned int devfn, int where, wildfire_write_config() argument
410 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) wildfire_write_config()
/linux-4.1.27/include/linux/platform_data/
H A Dpinctrl-single.h6 * tree except for omap where there are still some dependencies
H A Dvoltage-omap.h18 * control module base address) from where to read
/linux-4.1.27/include/uapi/linux/
H A Dnvram.h10 /* for all current systems, this is where NVRAM starts */
/linux-4.1.27/arch/cris/include/asm/
H A Dtimex.h13 * We don't have a cycle-counter.. but we do not support SMP anyway where this is
/linux-4.1.27/arch/arm/plat-orion/
H A Dpcie.c209 u32 devfn, int where, int size, u32 *val) orion_pcie_rd_conf()
214 PCIE_CONF_REG(where) | PCIE_CONF_ADDR_EN, orion_pcie_rd_conf()
220 *val = (*val >> (8 * (where & 3))) & 0xff; orion_pcie_rd_conf()
222 *val = (*val >> (8 * (where & 3))) & 0xffff; orion_pcie_rd_conf()
228 u32 devfn, int where, int size, u32 *val) orion_pcie_rd_conf_tlp()
233 PCIE_CONF_REG(where) | PCIE_CONF_ADDR_EN, orion_pcie_rd_conf_tlp()
243 *val = (*val >> (8 * (where & 3))) & 0xff; orion_pcie_rd_conf_tlp()
245 *val = (*val >> (8 * (where & 3))) & 0xffff; orion_pcie_rd_conf_tlp()
251 u32 devfn, int where, int size, u32 *val) orion_pcie_rd_conf_wa()
256 PCIE_CONF_REG(where))); orion_pcie_rd_conf_wa()
259 *val = (*val >> (8 * (where & 3))) & 0xff; orion_pcie_rd_conf_wa()
261 *val = (*val >> (8 * (where & 3))) & 0xffff; orion_pcie_rd_conf_wa()
267 u32 devfn, int where, int size, u32 val) orion_pcie_wr_conf()
274 PCIE_CONF_REG(where) | PCIE_CONF_ADDR_EN, orion_pcie_wr_conf()
280 writew(val, base + PCIE_CONF_DATA_OFF + (where & 3)); orion_pcie_wr_conf()
282 writeb(val, base + PCIE_CONF_DATA_OFF + (where & 3)); orion_pcie_wr_conf()
208 orion_pcie_rd_conf(void __iomem *base, struct pci_bus *bus, u32 devfn, int where, int size, u32 *val) orion_pcie_rd_conf() argument
227 orion_pcie_rd_conf_tlp(void __iomem *base, struct pci_bus *bus, u32 devfn, int where, int size, u32 *val) orion_pcie_rd_conf_tlp() argument
250 orion_pcie_rd_conf_wa(void __iomem *wa_base, struct pci_bus *bus, u32 devfn, int where, int size, u32 *val) orion_pcie_rd_conf_wa() argument
266 orion_pcie_wr_conf(void __iomem *base, struct pci_bus *bus, u32 devfn, int where, int size, u32 val) orion_pcie_wr_conf() argument
/linux-4.1.27/fs/ext4/
H A Dext4_jbd2.c80 int __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle) __ext4_journal_stop() argument
103 __ext4_std_error(sb, where, line, err); __ext4_journal_stop()
156 int __ext4_journal_get_write_access(const char *where, unsigned int line, __ext4_journal_get_write_access() argument
166 ext4_journal_abort_handle(where, line, __func__, bh, __ext4_journal_get_write_access()
184 int __ext4_forget(const char *where, unsigned int line, handle_t *handle, __ext4_forget() argument
217 ext4_journal_abort_handle(where, line, __func__, __ext4_forget()
230 ext4_journal_abort_handle(where, line, __func__, __ext4_forget()
232 __ext4_abort(inode->i_sb, where, line, __ext4_forget()
239 int __ext4_journal_get_create_access(const char *where, unsigned int line, __ext4_journal_get_create_access() argument
247 ext4_journal_abort_handle(where, line, __func__, __ext4_journal_get_create_access()
253 int __ext4_handle_dirty_metadata(const char *where, unsigned int line, __ext4_handle_dirty_metadata() argument
267 ext4_journal_abort_handle(where, line, __func__, bh, __ext4_handle_dirty_metadata()
279 ext4_error_inode(inode, where, line, __ext4_handle_dirty_metadata()
302 ext4_error_inode(inode, where, line, __ext4_handle_dirty_metadata()
312 int __ext4_handle_dirty_super(const char *where, unsigned int line, __ext4_handle_dirty_super() argument
322 ext4_journal_abort_handle(where, line, __func__, __ext4_handle_dirty_super()
/linux-4.1.27/arch/arm/mach-ixp4xx/
H A Dcommon-pci.c169 static u32 ixp4xx_config_addr(u8 bus_num, u16 devfn, int where) ixp4xx_config_addr() argument
175 (where & ~3); ixp4xx_config_addr()
179 ((PCI_FUNC(devfn)) << 8) | (where & ~3) | 1; ixp4xx_config_addr()
207 static int local_read_config(int where, int size, u32 *value) local_read_config() argument
210 pr_debug("local_read_config from %d size %d\n", where, size); local_read_config()
211 n = where % 4; local_read_config()
212 crp_read(where & ~3, &data); local_read_config()
218 static int local_write_config(int where, int size, u32 value) local_write_config() argument
221 pr_debug("local_write_config %#x to %d size %d\n", value, where, size); local_write_config()
222 n = where % 4; local_write_config()
227 crp_write((where & ~3) | byte_enables, data); local_write_config()
242 static int ixp4xx_pci_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value) ixp4xx_pci_read_config() argument
247 pr_debug("read_config from %d size %d dev %d:%d:%d\n", where, size, ixp4xx_pci_read_config()
251 n = where % 4; ixp4xx_pci_read_config()
256 addr = ixp4xx_config_addr(bus_num, devfn, where); ixp4xx_pci_read_config()
265 static int ixp4xx_pci_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) ixp4xx_pci_write_config() argument
270 pr_debug("write_config_byte %#x to %d size %d dev %d:%d:%d\n", value, where, ixp4xx_pci_write_config()
273 n = where % 4; ixp4xx_pci_write_config()
278 addr = ixp4xx_config_addr(bus_num, devfn, where); ixp4xx_pci_write_config()
/linux-4.1.27/arch/frv/mb93090-mb00/
H A Dpci-vdk.c57 #define CONFIG_CMD(bus, dev, where) \
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, pci_frv_read_config() argument
102 _value = __get_PciBridgeDataL(where & ~3); pci_frv_read_config()
105 __set_PciCfgAddr(CONFIG_CMD(bus, devfn, where)); pci_frv_read_config()
106 _value = __get_PciCfgDataL(where & ~3); pci_frv_read_config()
111 _value = _value >> ((where & 3) * 8); pci_frv_read_config()
115 _value = _value >> ((where & 2) * 8); pci_frv_read_config()
129 static int pci_frv_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, pci_frv_write_config() argument
135 __set_PciBridgeDataB(where, value); pci_frv_write_config()
138 __set_PciCfgAddr(CONFIG_CMD(bus, devfn, where)); pci_frv_write_config()
139 __set_PciCfgDataB(where, value); pci_frv_write_config()
145 __set_PciBridgeDataW(where, value); pci_frv_write_config()
148 __set_PciCfgAddr(CONFIG_CMD(bus, devfn, where)); pci_frv_write_config()
149 __set_PciCfgDataW(where, value); pci_frv_write_config()
155 __set_PciBridgeDataL(where, value); pci_frv_write_config()
158 __set_PciCfgAddr(CONFIG_CMD(bus, devfn, where)); pci_frv_write_config()
159 __set_PciCfgDataL(where, value); pci_frv_write_config()
/linux-4.1.27/drivers/pci/host/
H A Dpcie-designware.h63 int (*rd_own_conf)(struct pcie_port *pp, int where, int size, u32 *val);
64 int (*wr_own_conf)(struct pcie_port *pp, int where, int size, u32 val);
66 unsigned int devfn, int where, int size, u32 *val);
68 unsigned int devfn, int where, int size, u32 val);
79 int dw_pcie_cfg_read(void __iomem *addr, int where, int size, u32 *val);
80 int dw_pcie_cfg_write(void __iomem *addr, int where, int size, u32 val);
H A Dpcie-designware.c81 int dw_pcie_cfg_read(void __iomem *addr, int where, int size, u32 *val) dw_pcie_cfg_read() argument
86 *val = (*val >> (8 * (where & 3))) & 0xff; dw_pcie_cfg_read()
88 *val = (*val >> (8 * (where & 3))) & 0xffff; dw_pcie_cfg_read()
95 int dw_pcie_cfg_write(void __iomem *addr, int where, int size, u32 val) dw_pcie_cfg_write() argument
100 writew(val, addr + (where & 2)); dw_pcie_cfg_write()
102 writeb(val, addr + (where & 3)); dw_pcie_cfg_write()
125 static int dw_pcie_rd_own_conf(struct pcie_port *pp, int where, int size, dw_pcie_rd_own_conf() argument
131 ret = pp->ops->rd_own_conf(pp, where, size, val); dw_pcie_rd_own_conf()
133 ret = dw_pcie_cfg_read(pp->dbi_base + (where & ~0x3), where, dw_pcie_rd_own_conf()
139 static int dw_pcie_wr_own_conf(struct pcie_port *pp, int where, int size, dw_pcie_wr_own_conf() argument
145 ret = pp->ops->wr_own_conf(pp, where, size, val); dw_pcie_wr_own_conf()
147 ret = dw_pcie_cfg_write(pp->dbi_base + (where & ~0x3), where, dw_pcie_wr_own_conf()
581 u32 devfn, int where, int size, u32 *val) dw_pcie_rd_other_conf()
588 address = where & ~0x3; dw_pcie_rd_other_conf()
592 ret = dw_pcie_cfg_read(pp->va_cfg0_base + address, where, size, dw_pcie_rd_other_conf()
597 ret = dw_pcie_cfg_read(pp->va_cfg1_base + address, where, size, dw_pcie_rd_other_conf()
606 u32 devfn, int where, int size, u32 val) dw_pcie_wr_other_conf()
613 address = where & ~0x3; dw_pcie_wr_other_conf()
617 ret = dw_pcie_cfg_write(pp->va_cfg0_base + address, where, size, dw_pcie_wr_other_conf()
622 ret = dw_pcie_cfg_write(pp->va_cfg1_base + address, where, size, dw_pcie_wr_other_conf()
653 static int dw_pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, dw_pcie_rd_conf() argument
667 where, size, val); dw_pcie_rd_conf()
670 where, size, val); dw_pcie_rd_conf()
672 ret = dw_pcie_rd_own_conf(pp, where, size, val); dw_pcie_rd_conf()
678 int where, int size, u32 val) dw_pcie_wr_conf()
689 where, size, val); dw_pcie_wr_conf()
692 where, size, val); dw_pcie_wr_conf()
694 ret = dw_pcie_wr_own_conf(pp, where, size, val); dw_pcie_wr_conf()
580 dw_pcie_rd_other_conf(struct pcie_port *pp, struct pci_bus *bus, u32 devfn, int where, int size, u32 *val) dw_pcie_rd_other_conf() argument
605 dw_pcie_wr_other_conf(struct pcie_port *pp, struct pci_bus *bus, u32 devfn, int where, int size, u32 val) dw_pcie_wr_other_conf() argument
677 dw_pcie_wr_conf(struct pci_bus *bus, u32 devfn, int where, int size, u32 val) dw_pcie_wr_conf() argument
H A Dpci-keystone.h48 unsigned int devfn, int where, int size, u32 val);
50 unsigned int devfn, int where, int size, u32 *val);
H A Dpci-mvebu.c47 #define PCIE_CONF_ADDR(bus, devfn, where) \
49 PCIE_CONF_FUNC(PCI_FUNC(devfn)) | PCIE_CONF_REG(where) | \
255 u32 devfn, int where, int size, u32 *val) mvebu_pcie_hw_rd_conf()
257 mvebu_writel(port, PCIE_CONF_ADDR(bus->number, devfn, where), mvebu_pcie_hw_rd_conf()
263 *val = (*val >> (8 * (where & 3))) & 0xff; mvebu_pcie_hw_rd_conf()
265 *val = (*val >> (8 * (where & 3))) & 0xffff; mvebu_pcie_hw_rd_conf()
272 u32 devfn, int where, int size, u32 val) mvebu_pcie_hw_wr_conf()
274 u32 _val, shift = 8 * (where & 3); mvebu_pcie_hw_wr_conf()
276 mvebu_writel(port, PCIE_CONF_ADDR(bus->number, devfn, where), mvebu_pcie_hw_wr_conf()
453 unsigned int where, int size, u32 *value) mvebu_sw_pci_bridge_read()
457 switch (where & ~3) { mvebu_sw_pci_bridge_read()
477 *value = bridge->bar[((where & ~3) - PCI_BASE_ADDRESS_0) / 4]; mvebu_sw_pci_bridge_read()
523 *value = (*value >> (8 * (where & 3))) & 0xffff; mvebu_sw_pci_bridge_read()
525 *value = (*value >> (8 * (where & 3))) & 0xff; mvebu_sw_pci_bridge_read()
532 unsigned int where, int size, u32 value) mvebu_sw_pci_bridge_write()
541 mask = ~(0xffff << ((where & 3) * 8)); mvebu_sw_pci_bridge_write()
543 mask = ~(0xff << ((where & 3) * 8)); mvebu_sw_pci_bridge_write()
547 err = mvebu_sw_pci_bridge_read(port, where & ~3, 4, &reg); mvebu_sw_pci_bridge_write()
551 value = (reg & mask) | value << ((where & 3) * 8); mvebu_sw_pci_bridge_write()
553 switch (where & ~3) { mvebu_sw_pci_bridge_write()
570 bridge->bar[((where & ~3) - PCI_BASE_ADDRESS_0) / 4] = value; mvebu_sw_pci_bridge_write()
638 int where, int size, u32 val) mvebu_pcie_wr_conf()
650 return mvebu_sw_pci_bridge_write(port, where, size, val); mvebu_pcie_wr_conf()
668 where, size, val); mvebu_pcie_wr_conf()
674 static int mvebu_pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, mvebu_pcie_rd_conf() argument
689 return mvebu_sw_pci_bridge_read(port, where, size, val); mvebu_pcie_rd_conf()
711 where, size, val); mvebu_pcie_rd_conf()
253 mvebu_pcie_hw_rd_conf(struct mvebu_pcie_port *port, struct pci_bus *bus, u32 devfn, int where, int size, u32 *val) mvebu_pcie_hw_rd_conf() argument
270 mvebu_pcie_hw_wr_conf(struct mvebu_pcie_port *port, struct pci_bus *bus, u32 devfn, int where, int size, u32 val) mvebu_pcie_hw_wr_conf() argument
452 mvebu_sw_pci_bridge_read(struct mvebu_pcie_port *port, unsigned int where, int size, u32 *value) mvebu_sw_pci_bridge_read() argument
531 mvebu_sw_pci_bridge_write(struct mvebu_pcie_port *port, unsigned int where, int size, u32 value) mvebu_sw_pci_bridge_write() argument
637 mvebu_pcie_wr_conf(struct pci_bus *bus, u32 devfn, int where, int size, u32 val) mvebu_pcie_wr_conf() argument
H A Dpcie-rcar.c160 static void rcar_rmw32(struct rcar_pcie *pcie, int where, u32 mask, u32 data) rcar_rmw32() argument
162 int shift = 8 * (where & 3); rcar_rmw32()
163 u32 val = rcar_pci_read_reg(pcie, where & ~3); rcar_rmw32()
167 rcar_pci_write_reg(pcie, val, where & ~3); rcar_rmw32()
170 static u32 rcar_read_conf(struct rcar_pcie *pcie, int where) rcar_read_conf() argument
172 int shift = 8 * (where & 3); rcar_read_conf()
173 u32 val = rcar_pci_read_reg(pcie, where & ~3); rcar_read_conf()
181 unsigned int devfn, int where, u32 *data) rcar_pcie_config_access()
187 reg = where & ~3; rcar_pcie_config_access()
259 int where, int size, u32 *val) rcar_pcie_read_conf()
265 bus, devfn, where, val); rcar_pcie_read_conf()
272 *val = (*val >> (8 * (where & 3))) & 0xff; rcar_pcie_read_conf()
274 *val = (*val >> (8 * (where & 2))) & 0xffff; rcar_pcie_read_conf()
276 dev_dbg(&bus->dev, "pcie-config-read: bus=%3d devfn=0x%04x where=0x%04x size=%d val=0x%08lx\n", rcar_pcie_read_conf()
277 bus->number, devfn, where, size, (unsigned long)*val); rcar_pcie_read_conf()
284 int where, int size, u32 val) rcar_pcie_write_conf()
291 bus, devfn, where, &data); rcar_pcie_write_conf()
295 dev_dbg(&bus->dev, "pcie-config-write: bus=%3d devfn=0x%04x where=0x%04x size=%d val=0x%08lx\n", rcar_pcie_write_conf()
296 bus->number, devfn, where, size, (unsigned long)val); rcar_pcie_write_conf()
299 shift = 8 * (where & 3); rcar_pcie_write_conf()
303 shift = 8 * (where & 2); rcar_pcie_write_conf()
310 bus, devfn, where, &data); rcar_pcie_write_conf()
179 rcar_pcie_config_access(struct rcar_pcie *pcie, unsigned char access_type, struct pci_bus *bus, unsigned int devfn, int where, u32 *data) rcar_pcie_config_access() argument
258 rcar_pcie_read_conf(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) rcar_pcie_read_conf() argument
283 rcar_pcie_write_conf(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) rcar_pcie_write_conf() argument
H A Dpci-host-generic.c49 int where) gen_pci_map_cfg_bus_cam()
55 return pci->cfg.win[idx] + ((devfn << 8) | where); gen_pci_map_cfg_bus_cam()
65 int where) gen_pci_map_cfg_bus_ecam()
71 return pci->cfg.win[idx] + ((devfn << 12) | where); gen_pci_map_cfg_bus_ecam()
47 gen_pci_map_cfg_bus_cam(struct pci_bus *bus, unsigned int devfn, int where) gen_pci_map_cfg_bus_cam() argument
63 gen_pci_map_cfg_bus_ecam(struct pci_bus *bus, unsigned int devfn, int where) gen_pci_map_cfg_bus_ecam() argument
/linux-4.1.27/arch/powerpc/kernel/
H A Drtas_pci.c48 static inline int config_access_valid(struct pci_dn *dn, int where) config_access_valid() argument
50 if (where < 256) config_access_valid()
52 if (where < 4096 && dn->pci_ext_config_space) config_access_valid()
58 int rtas_read_config(struct pci_dn *pdn, int where, int size, u32 *val) rtas_read_config() argument
66 if (!config_access_valid(pdn, where)) rtas_read_config()
74 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); rtas_read_config()
92 int where, int size, u32 *val) rtas_pci_read_config()
114 ret = rtas_read_config(pdn, where, size, val); rtas_pci_read_config()
122 int rtas_write_config(struct pci_dn *pdn, int where, int size, u32 val) rtas_write_config() argument
129 if (!config_access_valid(pdn, where)) rtas_write_config()
137 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); rtas_write_config()
154 int where, int size, u32 val) rtas_pci_write_config()
174 return rtas_write_config(pdn, where, size, val); rtas_pci_write_config()
90 rtas_pci_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) rtas_pci_read_config() argument
152 rtas_pci_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) rtas_pci_write_config() argument
/linux-4.1.27/arch/arm/plat-iop/
H A Dpci.c39 static u32 iop3xx_cfg_address(struct pci_bus *bus, int devfn, int where) iop3xx_cfg_address() argument
49 addr |= PCI_FUNC(devfn) << 8 | (where & ~3); iop3xx_cfg_address()
58 * errors occur during a config cycle where there is no device, like during
113 iop3xx_read_config(struct pci_bus *bus, unsigned int devfn, int where, iop3xx_read_config() argument
116 unsigned long addr = iop3xx_cfg_address(bus, devfn, where); iop3xx_read_config()
117 u32 val = iop3xx_read(addr) >> ((where & 3) * 8); iop3xx_read_config()
128 iop3xx_write_config(struct pci_bus *bus, unsigned int devfn, int where, iop3xx_write_config() argument
131 unsigned long addr = iop3xx_cfg_address(bus, devfn, where); iop3xx_write_config()
139 where = (where & 3) * 8; iop3xx_write_config()
142 val &= ~(0xff << where); iop3xx_write_config()
144 val &= ~(0xffff << where); iop3xx_write_config()
146 *IOP3XX_OCCDR = val | value << where; iop3xx_write_config()
/linux-4.1.27/include/linux/pinctrl/
H A Dpinctrl-state.h13 * when the pins are idle. This is a state where the system is relaxed
18 * when the pins are sleeping. This is a state where the system is in
/linux-4.1.27/fs/gfs2/
H A 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);
/linux-4.1.27/tools/power/acpi/os_specific/service_layers/
H A Dosunixmap.c88 * PARAMETERS: where - Physical address of memory to be mapped
97 void *acpi_os_map_memory(acpi_physical_address where, acpi_size length) acpi_os_map_memory() argument
113 offset = where % page_size; acpi_os_map_memory()
118 fd, (where - offset)); acpi_os_map_memory()
133 * PARAMETERS: where - Logical address of memory to be unmapped
143 void acpi_os_unmap_memory(void *where, acpi_size length) acpi_os_unmap_memory() argument
149 offset = ACPI_TO_INTEGER(where) % page_size; acpi_os_unmap_memory()
150 munmap((u8 *)where - offset, (length + offset)); acpi_os_unmap_memory()
/linux-4.1.27/arch/x86/include/asm/
H A Dsighandling.h15 void signal_fault(struct pt_regs *regs, void __user *frame, char *where);
H A Dboot.h8 /* Physical address where kernel should be loaded. */
H A Dpgtable-3level.h22 * either not present or in a state where the hardware will
23 * not attempt to update the pte. In places where this is
38 * where pte_offset_map_lock is called, concurrent page faults are
134 * Currently all places where pud_clear() is called either have pud_clear()
/linux-4.1.27/arch/unicore32/include/asm/
H A Dtraps.h16 extern void dump_backtrace_entry(unsigned long where,
/linux-4.1.27/arch/blackfin/include/asm/
H A Dmmu.h21 /* Points to the location in SDRAM where the L1 stack is normally
H A Dfixed_code.h2 * This file defines the fixed addresses where userspace programs
/linux-4.1.27/arch/cris/include/arch-v32/arch/
H A Dpage.h11 * selected bit it's possible to convert between KSEG_x and 0x40000000 where the
/linux-4.1.27/arch/ia64/include/asm/
H A Dstring.h5 * Here is where we want to put optimized versions of the string
H A Dagp.h14 * (unlike x86, where it gets mapped "write-coalescing").
/linux-4.1.27/security/integrity/evm/
H A Devm_secfs.c28 * @buf: where to put the result
30 * @ppos: where to start
52 * @buf: where to get the data from
54 * @ppos: where to start
/linux-4.1.27/include/linux/
H A Df75375s.h14 /* We want to set fans spinning on systems where there is no
H A Ddelay.h23 * while loop for the common cases where n <= MAX_UDELAY_MS -- Paul G.
H A Dfcdevice.h12 * Relocated to include/linux where it belongs by Alan Cox
H A Dcpu_cooling.h34 * @clip_cpus: cpumask of cpus where the frequency constraints will happen
42 * @clip_cpus: cpumask of cpus where the frequency constraints will happen
H A Dlguest.h18 * lguest_data". Once the Guest's initialization hypercall tells the Host where
32 * which saves the Guest a hypercall. CR2 is the native register where
/linux-4.1.27/drivers/isdn/hisax/
H A Dfsm.h56 void *arg, int where);
58 void *arg, int where);
59 void FsmDelTimer(struct FsmTimer *ft, int where);
H A Dfsm.c111 FsmDelTimer(struct FsmTimer *ft, int where) FsmDelTimer() argument
115 ft->fi->printdebug(ft->fi, "FsmDelTimer %lx %d", (long) ft, where); FsmDelTimer()
122 int millisec, int event, void *arg, int where) FsmAddTimer()
128 (long) ft, millisec, where); FsmAddTimer()
146 int millisec, int event, void *arg, int where) FsmRestartTimer()
152 (long) ft, millisec, where); FsmRestartTimer()
121 FsmAddTimer(struct FsmTimer *ft, int millisec, int event, void *arg, int where) FsmAddTimer() argument
145 FsmRestartTimer(struct FsmTimer *ft, int millisec, int event, void *arg, int where) FsmRestartTimer() argument
H A Dhisax_debug.h15 * where my_debug is a variable in your code which
/linux-4.1.27/drivers/video/fbdev/i810/
H A Di810.h292 #define i810_readb(where, mmio) readb(mmio + where)
293 #define i810_readw(where, mmio) readw(mmio + where)
294 #define i810_readl(where, mmio) readl(mmio + where)
295 #define i810_writeb(where, mmio, val) writeb(val, mmio + where)
296 #define i810_writew(where, mmio, val) writew(val, mmio + where)
297 #define i810_writel(where, mmio, val) writel(val, mmio + where)
/linux-4.1.27/arch/arm/mach-orion5x/
H A Dpci.c54 * 2. where there's no device connected (no link) pcie_valid_config()
76 static int pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, pcie_rd_conf() argument
88 ret = orion_pcie_rd_conf(PCIE_BASE, bus, devfn, where, size, val); pcie_rd_conf()
95 int where, int size, u32 *val) pcie_rd_conf_wa()
109 if (where >= 0x100) { pcie_rd_conf_wa()
115 bus, devfn, where, size, val); pcie_rd_conf_wa()
121 int where, int size, u32 val) pcie_wr_conf()
130 ret = orion_pcie_wr_conf(PCIE_BASE, bus, devfn, where, size, val); pcie_wr_conf()
274 u32 where, u32 size, u32 *val) orion5x_pci_hw_rd_conf()
280 PCI_CONF_DEV(dev) | PCI_CONF_REG(where) | orion5x_pci_hw_rd_conf()
286 *val = (*val >> (8*(where & 0x3))) & 0xff; orion5x_pci_hw_rd_conf()
288 *val = (*val >> (8*(where & 0x3))) & 0xffff; orion5x_pci_hw_rd_conf()
296 u32 where, u32 size, u32 val) orion5x_pci_hw_wr_conf()
304 PCI_CONF_DEV(dev) | PCI_CONF_REG(where) | orion5x_pci_hw_wr_conf()
310 __raw_writew(val, PCI_CONF_DATA + (where & 0x3)); orion5x_pci_hw_wr_conf()
312 __raw_writeb(val, PCI_CONF_DATA + (where & 0x3)); orion5x_pci_hw_wr_conf()
343 int where, int size, u32 *val) orion5x_pci_rd_conf()
351 PCI_FUNC(devfn), where, size, val); orion5x_pci_rd_conf()
355 int where, int size, u32 val) orion5x_pci_wr_conf()
361 PCI_FUNC(devfn), where, size, val); orion5x_pci_wr_conf()
94 pcie_rd_conf_wa(struct pci_bus *bus, u32 devfn, int where, int size, u32 *val) pcie_rd_conf_wa() argument
120 pcie_wr_conf(struct pci_bus *bus, u32 devfn, int where, int size, u32 val) pcie_wr_conf() argument
273 orion5x_pci_hw_rd_conf(int bus, int dev, u32 func, u32 where, u32 size, u32 *val) orion5x_pci_hw_rd_conf() argument
295 orion5x_pci_hw_wr_conf(int bus, int dev, u32 func, u32 where, u32 size, u32 val) orion5x_pci_hw_wr_conf() argument
342 orion5x_pci_rd_conf(struct pci_bus *bus, u32 devfn, int where, int size, u32 *val) orion5x_pci_rd_conf() argument
354 orion5x_pci_wr_conf(struct pci_bus *bus, u32 devfn, int where, int size, u32 val) orion5x_pci_wr_conf() argument
/linux-4.1.27/drivers/gpu/drm/mga/
H A Dmga_warp.c58 int n_pipes, where; mga_warp_install_microcode() local
89 where = 0; mga_warp_install_microcode()
94 where++; mga_warp_install_microcode()
97 if (where != n_pipes) { mga_warp_install_microcode()
113 where = 0; mga_warp_install_microcode()
120 dev_priv->warp_pipe_phys[where] = pcbase; mga_warp_install_microcode()
126 where++; mga_warp_install_microcode()
/linux-4.1.27/include/rdma/
H A Dib_cache.h56 * ib_find_cached_gid - Returns the port number and GID table index where
60 * @port_num: The port number of the device where the GID value was found.
61 * @index: The index into the cached GID table where the GID was found. This
88 * ib_find_cached_pkey - Returns the PKey table index where a specified
93 * @index: The index into the cached PKey table where the PKey was found.
104 * ib_find_exact_cached_pkey - Returns the PKey table index where a specified
109 * @index: The index into the cached PKey table where the PKey was found.
/linux-4.1.27/drivers/md/
H A Ddm-io.c280 static void do_region(int rw, unsigned region, struct dm_io_region *where, do_region() argument
288 sector_t remaining = where->count; do_region()
289 struct request_queue *q = bdev_get_queue(where->bdev); do_region()
307 * where->count may be zero if rw holds a flush and we need to do_region()
317 num_bvecs = min_t(int, bio_get_nr_vecs(where->bdev), do_region()
321 bio->bi_iter.bi_sector = where->sector + (where->count - remaining); do_region()
322 bio->bi_bdev = where->bdev; do_region()
362 struct dm_io_region *where, struct dpages *dp, dispatch_io()
379 if (where[i].count || (rw & REQ_FLUSH)) dispatch_io()
380 do_region(rw, i, where + i, dp, io); dispatch_io()
404 struct dm_io_region *where, int rw, struct dpages *dp, sync_io()
427 dispatch_io(rw, num_regions, where, dp, io, 1); sync_io()
438 struct dm_io_region *where, int rw, struct dpages *dp, async_io()
459 dispatch_io(rw, num_regions, where, dp, io, 0); async_io()
509 struct dm_io_region *where, unsigned long *sync_error_bits) dm_io()
514 r = dp_init(io_req, &dp, (unsigned long)where->count << SECTOR_SHIFT); dm_io()
519 return sync_io(io_req->client, num_regions, where, dm_io()
522 return async_io(io_req->client, num_regions, where, io_req->bi_rw, dm_io()
361 dispatch_io(int rw, unsigned int num_regions, struct dm_io_region *where, struct dpages *dp, struct io *io, int sync) dispatch_io() argument
403 sync_io(struct dm_io_client *client, unsigned int num_regions, struct dm_io_region *where, int rw, struct dpages *dp, unsigned long *error_bits) sync_io() argument
437 async_io(struct dm_io_client *client, unsigned int num_regions, struct dm_io_region *where, int rw, struct dpages *dp, io_notify_fn fn, void *context) async_io() argument
508 dm_io(struct dm_io_request *io_req, unsigned num_regions, struct dm_io_region *where, unsigned long *sync_error_bits) dm_io() argument
/linux-4.1.27/arch/x86/pci/
H A Dintel_mid_pci.c146 * This is a workaround for A0 LNC bug where PCI status register does type1_access_ok()
162 static int pci_read(struct pci_bus *bus, unsigned int devfn, int where, pci_read() argument
165 if (type1_access_ok(bus->number, devfn, where)) pci_read()
167 devfn, where, size, value); pci_read()
169 devfn, where, size, value); pci_read()
172 static int pci_write(struct pci_bus *bus, unsigned int devfn, int where, pci_write() argument
181 if (where == PCI_ROM_ADDRESS) pci_write()
192 (where >= PCI_BASE_ADDRESS_0 && where <= PCI_BASE_ADDRESS_5)) { pci_write()
193 return pci_device_update_fixed(bus, devfn, where, size, value, pci_write()
202 if (type1_access_ok(bus->number, devfn, where)) pci_write()
204 devfn, where, size, value); pci_write()
206 where, size, value); pci_write()
H A Dfixup.c122 int where = 0x55; pci_fixup_via_northbridge_bug() local
131 where = 0x95; /* the memory write queue timer register is pci_fixup_via_northbridge_bug()
140 pci_read_config_byte(d, where, &v); pci_fixup_via_northbridge_bug()
143 d->device, d->revision, where, v, mask, v & mask); pci_fixup_via_northbridge_bug()
145 pci_write_config_byte(d, where, v); pci_fixup_via_northbridge_bug()
217 static int quirk_pcie_aspm_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value) quirk_pcie_aspm_read() argument
220 devfn, where, size, value); quirk_pcie_aspm_read()
227 static int quirk_pcie_aspm_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) quirk_pcie_aspm_write() argument
233 if ((offset) && (where == offset)) quirk_pcie_aspm_write()
237 devfn, where, size, value); quirk_pcie_aspm_write()
248 * Save the register offset, where the ASPM control bits are located,
/linux-4.1.27/drivers/isdn/mISDN/
H A Dfsm.c124 mISDN_FsmDelTimer(struct FsmTimer *ft, int where) mISDN_FsmDelTimer() argument
129 (long) ft, where); mISDN_FsmDelTimer()
137 int millisec, int event, void *arg, int where) mISDN_FsmAddTimer()
143 (long) ft, millisec, where); mISDN_FsmAddTimer()
166 int millisec, int event, void *arg, int where) mISDN_FsmRestartTimer()
172 (long) ft, millisec, where); mISDN_FsmRestartTimer()
136 mISDN_FsmAddTimer(struct FsmTimer *ft, int millisec, int event, void *arg, int where) mISDN_FsmAddTimer() argument
165 mISDN_FsmRestartTimer(struct FsmTimer *ft, int millisec, int event, void *arg, int where) mISDN_FsmRestartTimer() argument
/linux-4.1.27/drivers/s390/scsi/
H A Dzfcp_reqlist.h72 * @rl: The reqlist where to free memory
97 * @rl: The reqlist where to lookup the FSF request
118 * @rl: reqlist where to search and remove entry
145 * @rl: reqlist where to add the entry
168 * @rl: The zfcp_reqlist where to remove all entries
169 * @list: The list where to move all entries
H A Dzfcp_unit.c43 * @port: The zfcp_port where to register units
80 * @port: zfcp_port where to look for the unit
113 * @port: pointer to port where unit is added
179 * @unit: The zfcp_unit where to get the SCSI device for
224 * @port: The port where to remove the unit from the configuration
/linux-4.1.27/arch/microblaze/include/asm/
H A 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.1.27/arch/unicore32/kernel/
H A Dpci.c25 #define CONFIG_CMD(bus, devfn, where) \
26 (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3))
29 puv3_read_config(struct pci_bus *bus, unsigned int devfn, int where, puv3_read_config() argument
32 writel(CONFIG_CMD(bus, devfn, where), PCICFG_ADDR); puv3_read_config()
35 *value = (readl(PCICFG_DATA) >> ((where & 3) * 8)) & 0xFF; puv3_read_config()
38 *value = (readl(PCICFG_DATA) >> ((where & 2) * 8)) & 0xFFFF; puv3_read_config()
48 puv3_write_config(struct pci_bus *bus, unsigned int devfn, int where, puv3_write_config() argument
51 writel(CONFIG_CMD(bus, devfn, where), PCICFG_ADDR); puv3_write_config()
54 writel((readl(PCICFG_DATA) & ~FMASK(8, (where&3)*8)) puv3_write_config()
55 | FIELD(value, 8, (where&3)*8), PCICFG_DATA); puv3_write_config()
58 writel((readl(PCICFG_DATA) & ~FMASK(16, (where&2)*8)) puv3_write_config()
59 | FIELD(value, 16, (where&2)*8), PCICFG_DATA); puv3_write_config()
H A Dtraps.c35 void dump_backtrace_entry(unsigned long where, dump_backtrace_entry() argument
40 where, (void *)where, from, (void *)from); dump_backtrace_entry()
43 where, from); dump_backtrace_entry()
/linux-4.1.27/arch/powerpc/kvm/
H A 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.1.27/drivers/media/platform/davinci/
H A Dvpif_capture.h79 /* offset where Y top starts from the starting of the buffer */
81 /* offset where Y bottom starts from the starting of the buffer */
83 /* offset where C top starts from the starting of the buffer */
85 /* offset where C bottom starts from the starting of the buffer */
/linux-4.1.27/fs/minix/
H A Ditree_common.c110 Indirect *where, splice_branch()
118 if (!verify_chain(chain, where-1) || *where->p) splice_branch()
121 *where->p = where->key; splice_branch()
130 if (where->bh) splice_branch()
131 mark_buffer_dirty_inode(where->bh, inode); splice_branch()
139 bforget(where[i].bh); splice_branch()
141 minix_free_block(inode, block_to_cpu(where[i].key)); splice_branch()
108 splice_branch(struct inode *inode, Indirect chain[DEPTH], Indirect *where, int num) splice_branch() argument
/linux-4.1.27/arch/parisc/include/asm/
H A Dsignal.h7 /* bits-per-word, where word apparently means 'long' not 'int' */
H A Dassembly.h175 #define SAVE_SP(r, where) mfsp r, %r1 ! STREG %r1, where
176 #define REST_SP(r, where) LDREG where, %r1 ! mtsp %r1, r
177 #define SAVE_CR(r, where) mfctl r, %r1 ! STREG %r1, where
178 #define REST_CR(r, where) LDREG where, %r1 ! mtctl %r1, r
/linux-4.1.27/arch/blackfin/include/uapi/asm/
H A Dfixed_code.h2 * This file defines the fixed addresses where userspace programs
/linux-4.1.27/arch/cris/include/arch-v10/arch/
H A Dpage.h16 * 0x40000000 where the DRAM really resides
/linux-4.1.27/arch/ia64/kernel/
H A Dsigframe.h9 * Place signal handler args where user-level unwinder can find them easily.
H A Dinit_task.c2 * This is where we statically allocate and initialize the initial
H A Dunwind.c708 set_reg (struct unw_reg_info *reg, enum unw_where where, int when, unsigned long val) set_reg()
711 reg->where = where; set_reg()
723 if (reg->where == UNW_WHERE_SPILL_HOME) { alloc_spill_area()
724 reg->where = UNW_WHERE_PSPREL; alloc_spill_area()
737 if (reg->where == UNW_WHERE_SPILL_HOME) { spill_next_when()
759 if (reg->where == UNW_WHERE_GR_SAVE) { finish_prologue()
760 reg->where = UNW_WHERE_GR; finish_prologue()
1005 if (reg->where == UNW_WHERE_NONE) desc_reg_when()
1006 reg->where = UNW_WHERE_GR_SAVE;
1094 r->where = UNW_WHERE_NONE; desc_restore_p()
1103 enum unw_where where = UNW_WHERE_GR; desc_spill_reg_p()
1110 where = UNW_WHERE_BR; desc_spill_reg_p()
1112 where = UNW_WHERE_FR; desc_spill_reg_p()
1115 r->where = where; desc_spill_reg_p()
1130 r->where = UNW_WHERE_PSPREL; desc_spill_psprel_p()
1145 r->where = UNW_WHERE_SPREL; desc_spill_sprel_p()
1366 switch (r->where) { emit_nat_info()
1393 UNW_DPRINT(0, "unwind.%s: don't know how to emit nat info for where = %u\n", emit_nat_info()
1394 __func__, r->where); emit_nat_info()
1412 if (r->where == UNW_WHERE_NONE || r->when >= sr->when_target) compile_reg()
1419 switch (r->where) { compile_reg()
1478 UNW_DPRINT(0, "unwind%s: register %u has unexpected `where' value of %u\n", compile_reg()
1479 __func__, i, r->where); compile_reg()
1590 sr.curr.reg[UNW_REG_RP].where = UNW_WHERE_BR; build_script()
1615 sr.curr.reg[UNW_REG_PSP].where = UNW_WHERE_NONE; build_script()
1618 if ((r->where == UNW_WHERE_PSPREL && r->val <= 0x10) build_script()
1619 || r->where == UNW_WHERE_SPREL) build_script()
1622 r->where = UNW_WHERE_NONE; build_script()
1634 sr.curr.reg[UNW_REG_RP].where = UNW_WHERE_BR; build_script()
1637 UNW_DPRINT(1, "unwind.%s: using default for rp at ip=0x%lx where=%d val=0x%lx\n", build_script()
1638 __func__, ip, sr.curr.reg[UNW_REG_RP].where, build_script()
1646 if (r->where != UNW_WHERE_NONE || r->when != UNW_WHEN_NEVER) { build_script()
1648 switch (r->where) { build_script()
1659 UNW_DPRINT(1, "BADWHERE(%d)", r->where); build_script()
1676 && (sr.curr.reg[UNW_REG_PSP].where == UNW_WHERE_NONE) build_script()
1685 /* determine where the primary UNaT is: */ build_script()
706 set_reg(struct unw_reg_info *reg, enum unw_where where, int when, unsigned long val) set_reg() argument
1101 enum unw_where where = UNW_WHERE_GR; desc_spill_reg_p() local
/linux-4.1.27/arch/metag/include/asm/
H A Dhwthread.h22 * This helper function returns the memory address where "thread"'s
/linux-4.1.27/arch/arm/mach-pxa/include/mach/
H A Daudio.h13 * reset_gpio should only be specified for pxa27x CPUs where a silicon
/linux-4.1.27/arch/arc/include/asm/
H A Dtlb-mmu1.h49 ; Slower in thrash case (where it matters) because more code is executed
67 lr r0,[ARC_REG_TLBINDEX] /* r0 = index where instruction is, if at all */
90 lr r0,[ARC_REG_TLBINDEX] /* r0 = index where instruction is, if at all */
94 lr r1,[ARC_REG_TLBINDEX] /* r1 = index where MMU wants to put data */
/linux-4.1.27/security/smack/
H A Dsmackfs.c457 * @buf: where to get the data from
459 * @ppos: where to start - must be 0
693 * @buf: where to get the data from
695 * @ppos: where to start - must be 0
864 * @buf: where to get the data from
866 * @ppos: where to start
968 * @buf: where to get the data from
970 * @ppos: where to start
1042 * @buf: where to get the data from
1044 * @ppos: where to start
1163 * @buf: where to get the data from
1165 * @ppos: where to start
1336 * @buf: where to put the result
1338 * @ppos: where to start
1360 * @buf: where to get the data from
1362 * @ppos: where to start
1402 * @buf: where to put the result
1404 * @ppos: where to start
1426 * @buf: where to get the data from
1428 * @ppos: where to start
1480 * @buf: where to put the result
1482 * @ppos: where to start
1504 * @buf: where to get the data from
1506 * @ppos: where to start
1558 * @buf: where to put the result
1560 * @ppos: where to start
1573 * Being careful to avoid a problem in the case where smk_read_ambient()
1595 * @buf: where to get the data from
1597 * @ppos: where to start
1649 * @buf: where to put the result
1651 * @ppos: where to start
1679 * @buf: where to get the data from
1681 * @ppos: where to start
1736 * @buf: where to put the result
1738 * @ppos: where to start
1766 * @buf: where to get the data from
1768 * @ppos: where to start
1814 * @buf: where to put the result
1816 * @ppos: where to start
1837 * @buf: where to get the data from
1839 * @ppos: where to start
1928 * @buf: where to get the data from
1930 * @ppos: where to start - must be 0
1955 * @ppos: where to start - must be 0
2003 * @ppos: where to start - must be 0
2056 * @buf: where to get the data from
2058 * @ppos: where to start - must be 0
2133 * @buf: where to get the data from
2135 * @ppos: where to start - must be 0
2160 * @ppos: where to start - must be 0
2180 * @ppos: where to start - must be 0
2262 * @ppos: where to start - must be 0
2287 * @buf: where to put the result
2289 * @ppos: where to start
2320 * @buf: where to get the data from
2322 * @ppos: where to start
2364 * @buf: where to put the result
2366 * @ppos: where to start
2389 * @ppos: where to start - must be 0
/linux-4.1.27/drivers/misc/eeprom/
H A Deeprom_93cx6.c175 * @word: Word index from where we should start reading
176 * @data: target pointer where the information will have to be stored
213 * @word: Word index from where we should start reading
214 * @data: target pointer where the information will have to be stored
240 * @word: Byte index from where we should start reading
241 * @data: target pointer where the information will have to be stored
280 * @byte: Index from where we should start reading
281 * @data: target pointer where the information will have to be stored
/linux-4.1.27/arch/s390/include/asm/
H A Dfacility.h27 * The test_facility function uses the bit odering where the MSB is bit 0.
38 * @stfle_fac_list: array where facility list can be stored
/linux-4.1.27/arch/mips/include/asm/sn/
H A Dmapped_kernel.h17 * on IRIX to see where the sections go. The Origin loader loads
21 * 0xa800000000160000, which is where it physically loaded that
/linux-4.1.27/arch/m68k/coldfire/
H A Dpci.c70 static unsigned long mcf_mk_pcicar(int bus, unsigned int devfn, int where) mcf_mk_pcicar() argument
72 return (bus << PCICAR_BUSN) | (devfn << PCICAR_DEVFNN) | (where & 0xfc); mcf_mk_pcicar()
76 int where, int size, u32 *value) mcf_pci_readconfig()
88 addr = mcf_mk_pcicar(bus->number, devfn, where); mcf_pci_readconfig()
90 addr = iospace + (where & 0x3); mcf_pci_readconfig()
110 int where, int size, u32 value) mcf_pci_writeconfig()
120 addr = mcf_mk_pcicar(bus->number, devfn, where); mcf_pci_writeconfig()
122 addr = iospace + (where & 0x3); mcf_pci_writeconfig()
75 mcf_pci_readconfig(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value) mcf_pci_readconfig() argument
109 mcf_pci_writeconfig(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) mcf_pci_writeconfig() argument
/linux-4.1.27/arch/arm/mach-footbridge/
H A Ddc21285.c63 dc21285_read_config(struct pci_bus *bus, unsigned int devfn, int where, dc21285_read_config() argument
73 : "=r" (v) : "r" (addr), "r" (where) : "cc"); dc21285_read_config()
77 : "=r" (v) : "r" (addr), "r" (where) : "cc"); dc21285_read_config()
81 : "=r" (v) : "r" (addr), "r" (where) : "cc"); dc21285_read_config()
97 dc21285_write_config(struct pci_bus *bus, unsigned int devfn, int where, dc21285_write_config() argument
107 : : "r" (value), "r" (addr), "r" (where) dc21285_write_config()
112 : : "r" (value), "r" (addr), "r" (where) dc21285_write_config()
117 : : "r" (value), "r" (addr), "r" (where) dc21285_write_config()
H A Dnetwinder-pci.c18 * which interrupt is routed where.
/linux-4.1.27/net/ipv4/
H A Dxfrm4_mode_transport.c39 * On entry, skb->h shall point to where the IP header should be and skb->nh
40 * shall be set to where the IP header currently is. skb->data shall point
/linux-4.1.27/net/ipv6/
H A Dxfrm6_mode_transport.c43 * On entry, skb->h shall point to where the IP header should be and skb->nh
44 * shall be set to where the IP header currently is. skb->data shall point
/linux-4.1.27/arch/arm/mach-iop13xx/
H A Dpci.c176 * @where: Desired register's address offset
181 static u32 iop13xx_atux_cfg_address(struct pci_bus *bus, int devfn, int where) iop13xx_atux_cfg_address() argument
191 addr |= PCI_FUNC(devfn) << 8 | ((where & 0xff) & ~3); iop13xx_atux_cfg_address()
192 addr |= ((where & 0xf00) >> 8) << 24; /* upper register number */ iop13xx_atux_cfg_address()
200 * @where: Desired register's address offset
204 static u32 iop13xx_atue_cfg_address(struct pci_bus *bus, int devfn, int where) iop13xx_atue_cfg_address() argument
214 (where & ~0x3); iop13xx_atue_cfg_address()
225 * errors occur during a config cycle where there is no device, like during
279 iop13xx_atux_read_config(struct pci_bus *bus, unsigned int devfn, int where, iop13xx_atux_read_config() argument
282 unsigned long addr = iop13xx_atux_cfg_address(bus, devfn, where); iop13xx_atux_read_config()
283 u32 val = iop13xx_atux_read(addr) >> ((where & 3) * 8); iop13xx_atux_read_config()
297 iop13xx_atux_write_config(struct pci_bus *bus, unsigned int devfn, int where, iop13xx_atux_write_config() argument
300 unsigned long addr = iop13xx_atux_cfg_address(bus, devfn, where); iop13xx_atux_write_config()
308 where = (where & 3) * 8; iop13xx_atux_write_config()
311 val &= ~(0xff << where); iop13xx_atux_write_config()
313 val &= ~(0xffff << where); iop13xx_atux_write_config()
315 __raw_writel(val | value << where, IOP13XX_ATUX_OCCDR); iop13xx_atux_write_config()
332 * errors occur during a config cycle where there is no device, like during
419 iop13xx_atue_read_config(struct pci_bus *bus, unsigned int devfn, int where, iop13xx_atue_read_config() argument
423 unsigned long addr = iop13xx_atue_cfg_address(bus, devfn, where); iop13xx_atue_read_config()
427 val = iop13xx_atue_read(addr) >> ((where & 3) * 8); iop13xx_atue_read_config()
444 iop13xx_atue_write_config(struct pci_bus *bus, unsigned int devfn, int where, iop13xx_atue_write_config() argument
447 unsigned long addr = iop13xx_atue_cfg_address(bus, devfn, where); iop13xx_atue_write_config()
455 where = (where & 3) * 8; iop13xx_atue_write_config()
458 val &= ~(0xff << where); iop13xx_atue_write_config()
460 val &= ~(0xffff << where); iop13xx_atue_write_config()
462 __raw_writel(val | value << where, IOP13XX_ATUE_OCCDR); iop13xx_atue_write_config()
/linux-4.1.27/drivers/acpi/acpica/
H A Dutmath.c53 * environments where a 64-bit double-precision math library is not available.
78 * out_quotient - Pointer to where the quotient is returned
79 * out_remainder - Pointer to where the remainder is returned
135 * out_quotient - Pointer to where the quotient is returned
136 * out_remainder - Pointer to where the remainder is returned
171 * 1) Simplest case is where the divisor is 32 bits, we can acpi_ut_divide()
188 * 2) The general case where the divisor is a full 64 bits acpi_ut_divide()
/linux-4.1.27/arch/arm/mach-versatile/
H A Dpci.c97 static int versatile_read_config(struct pci_bus *bus, unsigned int devfn, int where, versatile_read_config() argument
100 void __iomem *addr = __pci_addr(bus, devfn, where & ~3); versatile_read_config()
120 if (where & 2) v >>= 16; versatile_read_config()
121 if (where & 1) v >>= 8; versatile_read_config()
127 if (where & 2) v >>= 16; versatile_read_config()
141 static int versatile_write_config(struct pci_bus *bus, unsigned int devfn, int where, versatile_write_config() argument
144 void __iomem *addr = __pci_addr(bus, devfn, where); versatile_write_config()
/linux-4.1.27/arch/arm/common/
H A Dit8152.c178 unsigned int devfn, int where, it8152_pci_read_config()
185 shift = (where & 3); it8152_pci_read_config()
187 __raw_writel((addr + where), IT8152_PCI_CFG_ADDR); it8152_pci_read_config()
196 unsigned int devfn, int where, it8152_pci_write_config()
208 shift = (where & 3); it8152_pci_write_config()
210 __raw_writel((addr + where), IT8152_PCI_CFG_ADDR); it8152_pci_write_config()
219 __raw_writel((addr + where), IT8152_PCI_CFG_ADDR); it8152_pci_write_config()
177 it8152_pci_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value) it8152_pci_read_config() argument
195 it8152_pci_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) it8152_pci_write_config() argument
/linux-4.1.27/fs/sysv/
H A Ditree.c169 Indirect *where, splice_branch()
176 if (!verify_chain(chain, where-1) || *where->p) splice_branch()
178 *where->p = where->key; splice_branch()
184 if (where->bh) splice_branch()
185 dirty_indirect(where->bh, inode); splice_branch()
196 bforget(where[i].bh); splice_branch()
198 sysv_free_block(inode->i_sb, where[i].key); splice_branch()
167 splice_branch(struct inode *inode, Indirect chain[], Indirect *where, int num) splice_branch() argument
/linux-4.1.27/arch/mips/sgi-ip27/
H A Dip27-klnuma.c25 * XXX - This needs to be much smarter about where it puts copies of the
93 /* Record where the master node should get its kernel text */ replicate_kernel_text()
107 /* Record where this node should get its kernel text */ for_each_online_node()
/linux-4.1.27/samples/kobject/
H A Dkobject-example.c28 * The "foo" file where a static variable is read from and written to.
53 * More complex function where we determine which variable is being accessed by
123 * any type of dynamic kobjects, where the name and number are example_init()
/linux-4.1.27/include/linux/mfd/syscon/
H A Datmel-smc.h82 * where setup length is the timing expressed in cycles.
112 * where pulse length is the timing expressed in cycles.
142 * where cycle length is the timing expressed in cycles.
/linux-4.1.27/drivers/media/pci/ivtv/
H A Divtv-firmware.h29 int ivtv_firmware_check(struct ivtv *itv, char *where);
H A Divtv-firmware.c335 int ivtv_firmware_check(struct ivtv *itv, char *where) ivtv_firmware_check() argument
341 IVTV_WARN("Encoder has died : %s\n", where); ivtv_firmware_check()
352 IVTV_WARN("Audio has died (Encoder OK) : %s\n", where); ivtv_firmware_check()
364 where); ivtv_firmware_check()
371 IVTV_WARN("Decoder has died : %s\n", where); ivtv_firmware_check()
380 "Reloading\n", where); ivtv_firmware_check()
/linux-4.1.27/drivers/mfd/
H A Dlpc_sch.c94 static int lpc_sch_get_io(struct pci_dev *pdev, int where, const char *name, lpc_sch_get_io() argument
103 pci_read_config_dword(pdev, where, &base_addr_cfg); lpc_sch_get_io()
123 static int lpc_sch_populate_cell(struct pci_dev *pdev, int where, lpc_sch_populate_cell() argument
134 ret = lpc_sch_get_io(pdev, where, name, res, size); lpc_sch_populate_cell()
/linux-4.1.27/drivers/staging/rts5208/
H A Drtsx.h70 #define rtsx_read_config_byte(chip, where, val) \
71 pci_read_config_byte((chip)->rtsx->pci, where, val)
73 #define rtsx_write_config_byte(chip, where, val) \
74 pci_write_config_byte((chip)->rtsx->pci, where, val)
/linux-4.1.27/include/uapi/asm-generic/
H A Dtermios.h47 /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
/linux-4.1.27/include/media/
H A Dtimb_radio.h25 int i2c_adapter; /* I2C adapter where the tuner and dsp are attached */
H A Dtimb_video.h26 int i2c_adapter; /* The I2C adapter where the encoder is attached */
/linux-4.1.27/arch/s390/include/uapi/asm/
H A Dtermios.h46 /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
/linux-4.1.27/arch/parisc/include/uapi/asm/
H A Dtermios.h40 /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
/linux-4.1.27/arch/powerpc/perf/
H A Dbhrb.S18 /* r3 = n (where n = [0-31])
/linux-4.1.27/arch/avr32/include/uapi/asm/
H A Dtermios.h47 /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
/linux-4.1.27/arch/cris/include/uapi/asm/
H A Dtermios.h42 /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
/linux-4.1.27/arch/frv/include/uapi/asm/
H A Dtermios.h43 /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
/linux-4.1.27/arch/ia64/include/uapi/asm/
H A Dtermios.h47 /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
H A Dperfmon_default_smpl.h56 * In the case where multiple counters overflow at the same time, multiple
67 unsigned long ip; /* where did the overflow interrupt happened */
/linux-4.1.27/arch/m32r/include/uapi/asm/
H A Dtermios.h40 /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
/linux-4.1.27/arch/arm/mach-s3c24xx/
H A Dsetup-ts.c25 * Configure the GPIO for the S3C2410 system, where we have external FETs
/linux-4.1.27/arch/arm/include/asm/
H A Dtraps.h50 extern void dump_backtrace_entry(unsigned long where, unsigned long from, unsigned long frame);
H A Dfncpy.h34 * You will typically need a ".align 3" directive in the assembler where the
53 * in the file where f is defined.
/linux-4.1.27/arch/arm/mach-dove/
H A Dpcie.c95 static int pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, pcie_rd_conf() argument
109 ret = orion_pcie_rd_conf(pp->base, bus, devfn, where, size, val); pcie_rd_conf()
116 int where, int size, u32 val) pcie_wr_conf()
127 ret = orion_pcie_wr_conf(pp->base, bus, devfn, where, size, val); pcie_wr_conf()
115 pcie_wr_conf(struct pci_bus *bus, u32 devfn, int where, int size, u32 val) pcie_wr_conf() argument
/linux-4.1.27/fs/bfs/
H A Dfile.c49 unsigned long end, unsigned long where) bfs_move_blocks()
53 dprintf("%08lx-%08lx->%08lx\n", start, end, where); bfs_move_blocks()
55 if(bfs_move_block(i, where + i, sb)) { bfs_move_blocks()
57 where + i); bfs_move_blocks()
48 bfs_move_blocks(struct super_block *sb, unsigned long start, unsigned long end, unsigned long where) bfs_move_blocks() argument
/linux-4.1.27/fs/btrfs/
H A Dqgroup.h28 * BTRFS_QGROUP_OPER_ADD_EXCL: adding bytes where this subvolume is the only
32 * BTRFS_QGROUP_OPER_ADD_SHARED: adding bytes where this bytenr is going to be
36 * BTRFS_QGROUP_OPER_SUB_EXCL: removing bytes where this subvolume is the only
39 * BTRFS_QGROUP_OPER_SUB_SHARED: removing bytes where this subvolume shares with
/linux-4.1.27/tools/lib/api/fd/
H A Darray.h15 * I.e. using 'fda->priv[N].idx = * value' where N < fda->nr is ok,
/linux-4.1.27/tools/perf/util/include/linux/
H A Dlist.h24 * @pos: the &struct list_head to use as a loop cursor, from where to start
/linux-4.1.27/tools/perf/util/
H A Dstrfilter.h26 * In that case, *@err will indicate where it is detected, and *@err is NULL
/linux-4.1.27/include/asm-generic/
H A Dgetorder.h32 * is on a logarithmic scale, where:
/linux-4.1.27/include/linux/dma/
H A Dhsu.h27 * @offset: offset of the I/O space where registers are located
/linux-4.1.27/include/linux/i2c/
H A Di2c-hid.h19 * @hid_descriptor_address: i2c register where the HID descriptor is stored.
/linux-4.1.27/drivers/pci/pcie/aer/
H A Daer_inject.c141 static u32 *find_pci_config_dword(struct aer_error *err, int where, find_pci_config_dword() argument
150 switch (where - err->pos_cap_err) { find_pci_config_dword()
184 static int pci_read_aer(struct pci_bus *bus, unsigned int devfn, int where, pci_read_aer() argument
203 sim = find_pci_config_dword(err, where, NULL); pci_read_aer()
212 return ops->read(bus, devfn, where, size, val); pci_read_aer()
215 static int pci_write_aer(struct pci_bus *bus, unsigned int devfn, int where, pci_write_aer() argument
235 sim = find_pci_config_dword(err, where, &rw1cs); pci_write_aer()
247 return ops->write(bus, devfn, where, size, val); pci_write_aer()
/linux-4.1.27/arch/s390/kernel/
H A Dsys_s390.c70 * the SEMTIMEDOP subcall where on s390 the third parameter is used SYSCALL_DEFINE5()
71 * as a pointer to a struct timespec where the generic variant uses SYSCALL_DEFINE5()
/linux-4.1.27/arch/mn10300/include/asm/
H A Duser.h20 * be used by gdb to figure out where the data and stack segments are within
29 /* The rest of this junk is to help gdb figure out what goes where */
/linux-4.1.27/arch/powerpc/include/asm/
H A 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);
H A Dpci-bridge.h120 int dev_fn, int where, u8 *val);
122 int dev_fn, int where, u16 *val);
124 int dev_fn, int where, u32 *val);
126 int dev_fn, int where, u8 val);
128 int dev_fn, int where, u16 val);
130 int dev_fn, int where, u32 val);
/linux-4.1.27/tools/perf/bench/
H A Dfutex.h20 * @timeout: typically an absolute struct timespec (except where noted
33 * like-named arguments in the following wrappers except where noted below.
/linux-4.1.27/drivers/staging/speakup/
H A Dvarhandlers.c163 struct punc_var_t *where; spk_get_punc_var() local
165 where = punc_vars; spk_get_punc_var()
166 while ((where->var_id != -1) && (rv == NULL)) { spk_get_punc_var()
167 if (where->var_id == var_id) spk_get_punc_var()
168 rv = where; spk_get_punc_var()
170 where++; spk_get_punc_var()
/linux-4.1.27/drivers/video/fbdev/
H A Dvga16fb.c835 char __iomem *where; vga_8planes_fillrect() local
838 where = info->screen_base + dx + rect->dy * info->fix.line_length; vga_8planes_fillrect()
855 writeb(rect->color, where); vga_8planes_fillrect()
856 where++; vga_8planes_fillrect()
858 where += line_ofs; vga_8planes_fillrect()
868 rmw(where); vga_8planes_fillrect()
869 rmw(where+1); vga_8planes_fillrect()
870 where += info->fix.line_length; vga_8planes_fillrect()
1127 char __iomem *where; vga_8planes_imageblit() local
1131 where = info->screen_base + dx + image->dy * info->fix.line_length; vga_8planes_imageblit()
1134 writeb(image->bg_color, where); vga_8planes_imageblit()
1135 readb(where); vga_8planes_imageblit()
1140 for (y = 0; y < image->height; y++, where += info->fix.line_length) vga_8planes_imageblit()
1141 writew(transl_h[cdat[y]&0xF] | transl_l[cdat[y] >> 4], where); vga_8planes_imageblit()
1151 char __iomem *where = info->screen_base + (image->dx/8) + vga_imageblit_expand() local
1169 writeb(image->bg_color, where); vga_imageblit_expand()
1171 readb(where); /* fill latches */ vga_imageblit_expand()
1175 dst = where; vga_imageblit_expand()
1178 where += info->fix.line_length; vga_imageblit_expand()
1190 dst = where; vga_imageblit_expand()
1200 where += info->fix.line_length; vga_imageblit_expand()
1219 char __iomem *where = vga_imageblit_color() local
1236 dst = where + x/8; vga_imageblit_color()
1246 where += info->fix.line_length; vga_imageblit_color()
/linux-4.1.27/arch/parisc/kernel/
H A Dreal2.S60 * arg0p points to where saved arg values may be found
125 # define PUSH_CR(r, where) mfctl r, %r1 ! STREG,ma %r1, REG_SZ(where)
126 # define POP_CR(r, where) LDREG,mb -REG_SZ(where), %r1 ! mtctl %r1, r
238 * arg0p points to where saved arg values may be found
/linux-4.1.27/arch/arm/mach-cns3xxx/
H A Dpcie.c55 unsigned int devfn, int where) cns3xxx_pci_map_bus()
85 return base + (where & 0xffc) + (devfn << 12); cns3xxx_pci_map_bus()
89 int where, int size, u32 *val) cns3xxx_pci_read_config()
93 int shift = (where % 4) * 8; cns3xxx_pci_read_config()
95 ret = pci_generic_config_read32(bus, devfn, where, size, val); cns3xxx_pci_read_config()
98 (where & 0xffc) == PCI_CLASS_REVISION) cns3xxx_pci_read_config()
54 cns3xxx_pci_map_bus(struct pci_bus *bus, unsigned int devfn, int where) cns3xxx_pci_map_bus() argument
88 cns3xxx_pci_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) cns3xxx_pci_read_config() argument
/linux-4.1.27/arch/arm/mach-ks8695/
H A Dpci.c42 static void ks8695_pci_setupconfig(unsigned int bus_nr, unsigned int devfn, unsigned int where) ks8695_pci_setupconfig() argument
46 pbca = PBCA_ENABLE | (where & ~3); ks8695_pci_setupconfig()
61 int where) ks8695_pci_map_bus()
63 ks8695_pci_setupconfig(bus->number, devfn, where); ks8695_pci_map_bus()
67 static void ks8695_local_writeconfig(int where, u32 value) ks8695_local_writeconfig() argument
69 ks8695_pci_setupconfig(0, 0, where); ks8695_local_writeconfig()
60 ks8695_pci_map_bus(struct pci_bus *bus, unsigned int devfn, int where) ks8695_pci_map_bus() argument
/linux-4.1.27/arch/powerpc/platforms/powernv/
H A Dpci.c429 int where, int size, u32 *val) pnv_pci_cfg_read()
438 rc = opal_pci_config_read_byte(phb->opal_id, bdfn, where, &v8); pnv_pci_cfg_read()
444 rc = opal_pci_config_read_half_word(phb->opal_id, bdfn, where, pnv_pci_cfg_read()
451 rc = opal_pci_config_read_word(phb->opal_id, bdfn, where, &v32); pnv_pci_cfg_read()
460 __func__, pdn->busno, pdn->devfn, where, size, *val); pnv_pci_cfg_read()
465 int where, int size, u32 val) pnv_pci_cfg_write()
471 pdn->busno, pdn->devfn, where, size, val); pnv_pci_cfg_write()
474 opal_pci_config_write_byte(phb->opal_id, bdfn, where, val); pnv_pci_cfg_write()
477 opal_pci_config_write_half_word(phb->opal_id, bdfn, where, val); pnv_pci_cfg_write()
480 opal_pci_config_write_word(phb->opal_id, bdfn, where, val); pnv_pci_cfg_write()
521 int where, int size, u32 *val) pnv_pci_read_config()
535 ret = pnv_pci_cfg_read(pdn, where, size, val); pnv_pci_read_config()
550 int where, int size, u32 val) pnv_pci_write_config()
563 ret = pnv_pci_cfg_write(pdn, where, size, val); pnv_pci_write_config()
428 pnv_pci_cfg_read(struct pci_dn *pdn, int where, int size, u32 *val) pnv_pci_cfg_read() argument
464 pnv_pci_cfg_write(struct pci_dn *pdn, int where, int size, u32 val) pnv_pci_cfg_write() argument
519 pnv_pci_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) pnv_pci_read_config() argument
548 pnv_pci_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) pnv_pci_write_config() argument
/linux-4.1.27/arch/x86/boot/compressed/
H A Dhead_64.S10 * NOTE!!! Startup happens at absolute address 0x00001000, which is also where
61 * Calculate the delta between where we were compiled to run
62 * at and where we were actually loaded at. This can only be done
83 * Compute the delta between where we were compiled to run at
84 * and where the code will actually run at.
87 * contains the address where we should move the kernel image temporarily
306 * Compute the decompressed kernel start address. It is where
318 /* Start with the delta to where the kernel will run at. */
344 * where decompression in place becomes safe.
H A Dhead_32.S10 * NOTE!!! Startup happens at absolute address 0x00001000, which is also where
119 * Calculate the delta between where we were compiled to run
120 * at and where we were actually loaded at. This can only be done
133 * contains the address where we should move the kernel image temporarily
162 * where decompression in place becomes safe.
/linux-4.1.27/drivers/media/pci/cx18/
H A Dcx18-scb.h94 /* Offset where to find the Inter-Processor Communication data */
97 /* Offset where to find the start of the CPU code */
100 /* Offset where to find the start of the APU code */
103 /* Offset where to find the start of the HPU code */
106 /* Offset where to find the start of the PPU code */
/linux-4.1.27/drivers/sh/superhyway/
H A Dsuperhyway.c38 * @base: Physical address where module is mapped.
40 * @bus: Bus where SuperHyway module resides.
48 * the devices already discovered regardless of where it resides in memory.
/linux-4.1.27/drivers/net/wireless/ti/wl18xx/
H A Dwl18xx.h71 * Array of host Tx descriptors, where fw_release_idx
143 * A bitmap (where each bit represents a single HLID)
149 * A bitmap (where each bit represents a single HLID) to indicate
/linux-4.1.27/drivers/pci/
H A Daccess.c71 int where, int size, u32 *val) pci_generic_config_read()
75 addr = bus->ops->map_bus(bus, devfn, where); pci_generic_config_read()
93 int where, int size, u32 val) pci_generic_config_write()
97 addr = bus->ops->map_bus(bus, devfn, where); pci_generic_config_write()
113 int where, int size, u32 *val) pci_generic_config_read32()
117 addr = bus->ops->map_bus(bus, devfn, where & ~0x3); pci_generic_config_read32()
126 *val = (*val >> (8 * (where & 3))) & ((1 << (size * 8)) - 1); pci_generic_config_read32()
133 int where, int size, u32 val) pci_generic_config_write32()
138 addr = bus->ops->map_bus(bus, devfn, where & ~0x3); pci_generic_config_write32()
146 mask = ~(((1 << (size * 8)) - 1) << ((where & 0x3) * 8)); pci_generic_config_write32()
150 tmp |= val << ((where & 0x3) * 8); pci_generic_config_write32()
182 * @buf: pointer to where to store result
70 pci_generic_config_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) pci_generic_config_read() argument
92 pci_generic_config_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) pci_generic_config_write() argument
112 pci_generic_config_read32(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) pci_generic_config_read32() argument
132 pci_generic_config_write32(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) pci_generic_config_write32() argument
H A Dsetup-irq.c34 will come in on 'cos that slot is where the bridge is. Each pdev_fixup_irq()
/linux-4.1.27/arch/cris/boot/compressed/
H A Dhead_v32.S48 ;; Figure out where the compressed piggyback image is.
52 ;; The piggyback image is at _edata, but relative to where the
53 ;; image is actually located in memory, not where it is linked
/linux-4.1.27/lib/
H A Dcpumask.c49 * @mask: pointer to cpumask_var_t where the cpumask is returned
84 * @mask: pointer to cpumask_var_t where the cpumask is returned
106 * @mask: pointer to cpumask_var_t where the cpumask is returned
/linux-4.1.27/drivers/net/ethernet/
H A Dnetx-eth.c40 #define IND_FIFO_PORT_HI(xcno) (1 + ((xcno) << 3)) /* Index of the FIFO where received */
42 #define IND_FIFO_PORT_LO(xcno) (2 + ((xcno) << 3)) /* Index of the FIFO where received */
44 #define REQ_FIFO_PORT_HI(xcno) (3 + ((xcno) << 3)) /* Index of the FIFO where Data packages */
47 #define REQ_FIFO_PORT_LO(xcno) (4 + ((xcno) << 3)) /* Index of the FIFO where Data packages */
50 #define CON_FIFO_PORT_HI(xcno) (5 + ((xcno) << 3)) /* Index of the FIFO where sent Data packages */
52 #define CON_FIFO_PORT_LO(xcno) (6 + ((xcno) << 3)) /* Index of the FIFO where sent Data */
/linux-4.1.27/mm/
H A Dprocess_vm_access.c29 * @iter: where to copy to/from locally
69 * @iter: where to copy to/from locally
132 * @iter: where to copy to/from locally
133 * @rvec: iovec array specifying where to copy to/from in the other process
237 * @lvec: iovec array specifying where to copy to/from locally
239 * @rvec: iovec array specifying where to copy to/from in the other process
/linux-4.1.27/drivers/net/wireless/ti/wl12xx/
H A Dwl12xx.h141 * A bitmap (where each bit represents a single HLID)
147 * A bitmap (where each bit represents a single HLID) to indicate
/linux-4.1.27/drivers/pcmcia/
H A Dcardbus.c62 * @s: the pcmcia_socket where the CardBus device is located
103 * @s: the pcmcia_socket where the CardBus device was located
/linux-4.1.27/block/
H A Dblk-exec.c55 int where = at_head ? ELEVATOR_INSERT_FRONT : ELEVATOR_INSERT_BACK; blk_execute_rq_nowait() local
89 __elv_add_request(q, rq, where); blk_execute_rq_nowait()
/linux-4.1.27/arch/mips/include/asm/mach-bcm63xx/
H A Dbcm963xx_tag.h32 * to determine where to flash the image. Since we have the kernel first
80 /* 200-215: Unused except on Alice Gate where is is information */
/linux-4.1.27/arch/nios2/boot/compressed/
H A Dhead.S37 nextpc r1 /* Find out where we are */
68 * set up the stack pointer, some where higher than _end.
/linux-4.1.27/arch/ia64/mm/
H A Dnuma.c56 * If the section of memory exists, then return the node where the section
58 * SPARSEMEM to allocate the SPARSEMEM sectionmap on the NUMA node where
/linux-4.1.27/arch/m68k/kernel/
H A Dmodule.c36 /* This is where to make the change */ apply_relocate()
76 /* This is where to make the change */ apply_relocate_add()
/linux-4.1.27/arch/arm/include/uapi/asm/
H A Dsetup.h70 /* describes where the compressed ramdisk image lives (virtual address) */
77 /* describes where the compressed ramdisk image lives (physical address) */
/linux-4.1.27/scripts/
H A Dcleanfile169 if ( !defined($where = tell(FILE)) ||
170 !truncate(FILE, $where) ) {
/linux-4.1.27/drivers/md/bcache/
H A Dbset.c193 bool __bch_cut_front(const struct bkey *where, struct bkey *k) __bch_cut_front() argument
197 if (bkey_cmp(where, &START_KEY(k)) <= 0) __bch_cut_front()
200 if (bkey_cmp(where, k) < 0) __bch_cut_front()
201 len = KEY_OFFSET(k) - KEY_OFFSET(where); __bch_cut_front()
203 bkey_copy_key(k, where); __bch_cut_front()
213 bool __bch_cut_back(const struct bkey *where, struct bkey *k) __bch_cut_back() argument
217 if (bkey_cmp(where, k) >= 0) __bch_cut_back()
220 BUG_ON(KEY_INODE(where) != KEY_INODE(k)); __bch_cut_back()
222 if (bkey_cmp(where, &START_KEY(k)) > 0) __bch_cut_back()
223 len = KEY_OFFSET(where) - KEY_START(k); __bch_cut_back()
225 bkey_copy_key(k, where); __bch_cut_back()
655 /* First we figure out where the first key in each cacheline is */ bch_bset_build_written_tree()
799 void bch_bset_insert(struct btree_keys *b, struct bkey *where, bch_bset_insert() argument
809 memmove((uint64_t *) where + bkey_u64s(insert), bch_bset_insert()
810 where, bch_bset_insert()
811 (void *) bset_bkey_last(t->data) - (void *) where); bch_bset_insert()
814 bkey_copy(where, insert); bch_bset_insert()
815 bch_bset_fix_lookup_table(b, t, where); bch_bset_insert()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_debugfs.c40 * @buffer: where to write the data for the user to read
75 * @buffer: where to find the user's data
144 * @buffer: where to write the data for the user to read
180 * @buffer: where to find the user's data
/linux-4.1.27/drivers/net/wireless/prism54/
H A Doid_mgt.h30 /* I don't know where to put these 2 */
/linux-4.1.27/arch/x86/kernel/acpi/
H A Dwakeup_32.S36 # jump to place where we left off
/linux-4.1.27/arch/um/include/asm/
H A Dprocessor-generic.h86 /* This decides where the kernel will search for a free chunk of vm
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
H A Dpll.h23 * nvkm uses them on all chipsets internally where a
/linux-4.1.27/drivers/char/tpm/st33zp24/
H A Di2c.c40 * @param: tpm_register, the tpm tis register where the data should be written
57 * @param: tpm_register, the tpm tis register where the data should be read
79 * @param: tpm_register, the tpm tis register where the data should be written
95 * @param: tpm_register, the tpm tis register where the data should be read
/linux-4.1.27/arch/metag/mm/
H A Dmaccess.c14 * IO memory where they could have undesired effects.
/linux-4.1.27/arch/mips/include/asm/
H A Di8259.h47 * cases where no better interrupt acknowledge method is available and we
/linux-4.1.27/drivers/hsi/
H A Dhsi_boardinfo.c42 * controller and the port where the clients wishes to attach are registered
/linux-4.1.27/drivers/video/fbdev/core/
H A Dfb_sys_fops.c2 * linux/drivers/video/fb_sys_read.c - Generic file operations where

Completed in 5677 milliseconds

1234567891011>>