Lines Matching refs:regs

28 	u8 *regs;  member
76 u8 *regs = priv->regs; in haswell_early_init() local
80 writel(0x00000020, regs + 0xa180); in haswell_early_init()
81 writel(0x00010001, regs + 0xa188); in haswell_early_init()
82 ret = poll32(regs + 0x130044, 1, 1); in haswell_early_init()
87 setbits_le32(regs + 0xa248, 0x00000016); in haswell_early_init()
90 writel(0x00070020, regs + 0xa000); in haswell_early_init()
93 clrsetbits_le32(regs + 0xa180, ~0xff3fffff, 0x15000000); in haswell_early_init()
96 writel(0x000003fd, regs + 0x9424); in haswell_early_init()
99 writel(0x00000080, regs + 0x9400); in haswell_early_init()
100 writel(0x40401000, regs + 0x9404); in haswell_early_init()
101 writel(0x00000000, regs + 0x9408); in haswell_early_init()
102 writel(0x02000001, regs + 0x940c); in haswell_early_init()
109 setbits_le32(regs + 0xa090, 0x00000000); in haswell_early_init()
110 setbits_le32(regs + 0xa098, 0x03e80000); in haswell_early_init()
111 setbits_le32(regs + 0xa09c, 0x00280000); in haswell_early_init()
112 setbits_le32(regs + 0xa0a8, 0x0001e848); in haswell_early_init()
113 setbits_le32(regs + 0xa0ac, 0x00000019); in haswell_early_init()
116 writel(0x0000000a, regs + 0x02054); in haswell_early_init()
117 writel(0x0000000a, regs + 0x12054); in haswell_early_init()
118 writel(0x0000000a, regs + 0x22054); in haswell_early_init()
119 writel(0x0000000a, regs + 0x1a054); in haswell_early_init()
122 setbits_le32(regs + 0xa0b0, 0x00000000); in haswell_early_init()
123 setbits_le32(regs + 0xa0b4, 0x000003e8); in haswell_early_init()
124 setbits_le32(regs + 0xa0b8, 0x0000c350); in haswell_early_init()
127 setbits_le32(regs + 0xa010, 0x000f4240); in haswell_early_init()
128 setbits_le32(regs + 0xa014, 0x12060000); in haswell_early_init()
129 setbits_le32(regs + 0xa02c, 0x0000e808); in haswell_early_init()
130 setbits_le32(regs + 0xa030, 0x0003bd08); in haswell_early_init()
131 setbits_le32(regs + 0xa068, 0x000101d0); in haswell_early_init()
132 setbits_le32(regs + 0xa06c, 0x00055730); in haswell_early_init()
133 setbits_le32(regs + 0xa070, 0x0000000a); in haswell_early_init()
136 writel(0x00000b92, regs + 0xa024); in haswell_early_init()
139 writel(0x88040000, regs + 0xa090); in haswell_early_init()
142 writel(0x08000000, regs + 0xa00c); in haswell_early_init()
145 ret = poll32(regs + 0x138124, (1 << 31), 0); in haswell_early_init()
148 writel(0, regs + 0x138128); in haswell_early_init()
149 writel(0x80000004, regs + 0x138124); in haswell_early_init()
150 ret = poll32(regs + 0x138124, (1 << 31), 0); in haswell_early_init()
155 writel(0x03000076, regs + 0x4402c); in haswell_early_init()
158 writel(0x00040000, regs + 0xa094); in haswell_early_init()
169 u8 *regs = priv->regs; in haswell_late_init() local
173 setbits_le32(regs + 0x0a248, (1 << 31)); in haswell_late_init()
174 setbits_le32(regs + 0x0a004, (1 << 4)); in haswell_late_init()
175 setbits_le32(regs + 0x0a080, (1 << 2)); in haswell_late_init()
176 setbits_le32(regs + 0x0a180, (1 << 31)); in haswell_late_init()
179 writel(0x00010000, regs + 0xa188); in haswell_late_init()
180 ret = poll32(regs + 0x130044, 1, 0); in haswell_late_init()
183 writel(0x00000001, regs + 0xa188); in haswell_late_init()
186 setbits_le32(regs + 0x45400, (1 << 31)); in haswell_late_init()
187 ret = poll32(regs + 0x45400, 1 << 30, 1 << 30); in haswell_late_init()
200 u8 *regs = priv->regs; in broadwell_early_init() local
204 writel(0x00010001, regs + 0xa188); in broadwell_early_init()
205 ret = poll32(regs + 0x130044, 1, 1); in broadwell_early_init()
210 writel(0x00000004, regs + 0xa248); in broadwell_early_init()
211 writel(0x000000ff, regs + 0xa250); in broadwell_early_init()
212 writel(0x00000010, regs + 0xa25c); in broadwell_early_init()
217 writel(0x45200000, regs + 0xa180); in broadwell_early_init()
220 writel(0x000000fd, regs + 0x9424); in broadwell_early_init()
223 writel(0x00000000, regs + 0x9400); in broadwell_early_init()
224 writel(0x40401000, regs + 0x9404); in broadwell_early_init()
225 writel(0x00000000, regs + 0x9408); in broadwell_early_init()
226 writel(0x02000001, regs + 0x940c); in broadwell_early_init()
227 writel(0x0000000a, regs + 0x1a054); in broadwell_early_init()
230 writel(0x08000000, regs + 0xa00c); in broadwell_early_init()
232 writel(0x00000009, regs + 0x138158); in broadwell_early_init()
233 writel(0x0000000d, regs + 0x13815c); in broadwell_early_init()
240 clrsetbits_le32(regs + 0x0a090, ~0, 0); in broadwell_early_init()
241 setbits_le32(regs + 0x0a098, 0x03e80000); in broadwell_early_init()
242 setbits_le32(regs + 0x0a09c, 0x00280000); in broadwell_early_init()
243 setbits_le32(regs + 0x0a0a8, 0x0001e848); in broadwell_early_init()
244 setbits_le32(regs + 0x0a0ac, 0x00000019); in broadwell_early_init()
247 writel(0x0000000a, regs + 0x02054); in broadwell_early_init()
248 writel(0x0000000a, regs + 0x12054); in broadwell_early_init()
249 writel(0x0000000a, regs + 0x22054); in broadwell_early_init()
252 setbits_le32(regs + 0x0a0b0, 0x00000000); in broadwell_early_init()
253 setbits_le32(regs + 0x0a0b8, 0x00000271); in broadwell_early_init()
256 setbits_le32(regs + 0x0a010, 0x000f4240); in broadwell_early_init()
257 setbits_le32(regs + 0x0a014, 0x12060000); in broadwell_early_init()
258 setbits_le32(regs + 0x0a02c, 0x0000e808); in broadwell_early_init()
259 setbits_le32(regs + 0x0a030, 0x0003bd08); in broadwell_early_init()
260 setbits_le32(regs + 0x0a068, 0x000101d0); in broadwell_early_init()
261 setbits_le32(regs + 0x0a06c, 0x00055730); in broadwell_early_init()
262 setbits_le32(regs + 0x0a070, 0x0000000a); in broadwell_early_init()
263 setbits_le32(regs + 0x0a168, 0x00000006); in broadwell_early_init()
266 writel(0x00000b92, regs + 0xa024); in broadwell_early_init()
269 writel(0x90040000, regs + 0xa090); in broadwell_early_init()
272 ret = poll32(regs + 0x138124, (1 << 31), 0); in broadwell_early_init()
275 writel(0, regs + 0x138128); in broadwell_early_init()
276 writel(0x80000004, regs + 0x138124); in broadwell_early_init()
277 ret = poll32(regs + 0x138124, (1 << 31), 0); in broadwell_early_init()
282 writel(0x03000076, regs + 0x4402c); in broadwell_early_init()
285 writel(0x00040000, regs + 0xa094); in broadwell_early_init()
296 u8 *regs = priv->regs; in broadwell_late_init() local
300 setbits_le32(regs + 0x0a248, 1 << 31); in broadwell_late_init()
301 setbits_le32(regs + 0x0a000, 1 << 18); in broadwell_late_init()
302 setbits_le32(regs + 0x0a180, 1 << 31); in broadwell_late_init()
305 writel(0x00010000, regs + 0xa188); in broadwell_late_init()
306 ret = poll32(regs + 0x130044, 1, 0); in broadwell_late_init()
311 setbits_le32(regs + 0x45400, 1 << 31); in broadwell_late_init()
312 ret = poll32(regs + 0x45400, 1 << 30, 1 << 30); in broadwell_late_init()
326 return readl(priv->regs + reg); in gtt_read()
332 writel(data, priv->regs + reg); in gtt_write()
338 clrsetbits_le32(priv->regs + reg, bic, or); in gtt_clrsetbits()
738 priv->regs = (u8 *)dm_pci_read_bar32(dev, 0); in broadwell_igd_of_to_plat()
739 debug("%s: regs at %p\n", __func__, priv->regs); in broadwell_igd_of_to_plat()