Lines Matching refs:regs
23 u8 *regs; member
71 u8 *regs = priv->regs; in haswell_early_init() local
75 writel(0x00000020, regs + 0xa180); in haswell_early_init()
76 writel(0x00010001, regs + 0xa188); in haswell_early_init()
77 ret = poll32(regs + 0x130044, 1, 1); in haswell_early_init()
82 setbits_le32(regs + 0xa248, 0x00000016); in haswell_early_init()
85 writel(0x00070020, regs + 0xa000); in haswell_early_init()
88 clrsetbits_le32(regs + 0xa180, ~0xff3fffff, 0x15000000); in haswell_early_init()
91 writel(0x000003fd, regs + 0x9424); in haswell_early_init()
94 writel(0x00000080, regs + 0x9400); in haswell_early_init()
95 writel(0x40401000, regs + 0x9404); in haswell_early_init()
96 writel(0x00000000, regs + 0x9408); in haswell_early_init()
97 writel(0x02000001, regs + 0x940c); in haswell_early_init()
104 setbits_le32(regs + 0xa090, 0x00000000); in haswell_early_init()
105 setbits_le32(regs + 0xa098, 0x03e80000); in haswell_early_init()
106 setbits_le32(regs + 0xa09c, 0x00280000); in haswell_early_init()
107 setbits_le32(regs + 0xa0a8, 0x0001e848); in haswell_early_init()
108 setbits_le32(regs + 0xa0ac, 0x00000019); in haswell_early_init()
111 writel(0x0000000a, regs + 0x02054); in haswell_early_init()
112 writel(0x0000000a, regs + 0x12054); in haswell_early_init()
113 writel(0x0000000a, regs + 0x22054); in haswell_early_init()
114 writel(0x0000000a, regs + 0x1a054); in haswell_early_init()
117 setbits_le32(regs + 0xa0b0, 0x00000000); in haswell_early_init()
118 setbits_le32(regs + 0xa0b4, 0x000003e8); in haswell_early_init()
119 setbits_le32(regs + 0xa0b8, 0x0000c350); in haswell_early_init()
122 setbits_le32(regs + 0xa010, 0x000f4240); in haswell_early_init()
123 setbits_le32(regs + 0xa014, 0x12060000); in haswell_early_init()
124 setbits_le32(regs + 0xa02c, 0x0000e808); in haswell_early_init()
125 setbits_le32(regs + 0xa030, 0x0003bd08); in haswell_early_init()
126 setbits_le32(regs + 0xa068, 0x000101d0); in haswell_early_init()
127 setbits_le32(regs + 0xa06c, 0x00055730); in haswell_early_init()
128 setbits_le32(regs + 0xa070, 0x0000000a); in haswell_early_init()
131 writel(0x00000b92, regs + 0xa024); in haswell_early_init()
134 writel(0x88040000, regs + 0xa090); in haswell_early_init()
137 writel(0x08000000, regs + 0xa00c); in haswell_early_init()
140 ret = poll32(regs + 0x138124, (1 << 31), 0); in haswell_early_init()
143 writel(0, regs + 0x138128); in haswell_early_init()
144 writel(0x80000004, regs + 0x138124); in haswell_early_init()
145 ret = poll32(regs + 0x138124, (1 << 31), 0); in haswell_early_init()
150 writel(0x03000076, regs + 0x4402c); in haswell_early_init()
153 writel(0x00040000, regs + 0xa094); in haswell_early_init()
164 u8 *regs = priv->regs; in haswell_late_init() local
168 setbits_le32(regs + 0x0a248, (1 << 31)); in haswell_late_init()
169 setbits_le32(regs + 0x0a004, (1 << 4)); in haswell_late_init()
170 setbits_le32(regs + 0x0a080, (1 << 2)); in haswell_late_init()
171 setbits_le32(regs + 0x0a180, (1 << 31)); in haswell_late_init()
174 writel(0x00010000, regs + 0xa188); in haswell_late_init()
175 ret = poll32(regs + 0x130044, 1, 0); in haswell_late_init()
178 writel(0x00000001, regs + 0xa188); in haswell_late_init()
181 setbits_le32(regs + 0x45400, (1 << 31)); in haswell_late_init()
182 ret = poll32(regs + 0x45400, 1 << 30, 1 << 30); in haswell_late_init()
195 u8 *regs = priv->regs; in broadwell_early_init() local
199 writel(0x00010001, regs + 0xa188); in broadwell_early_init()
200 ret = poll32(regs + 0x130044, 1, 1); in broadwell_early_init()
205 writel(0x00000004, regs + 0xa248); in broadwell_early_init()
206 writel(0x000000ff, regs + 0xa250); in broadwell_early_init()
207 writel(0x00000010, regs + 0xa25c); in broadwell_early_init()
212 writel(0x45200000, regs + 0xa180); in broadwell_early_init()
215 writel(0x000000fd, regs + 0x9424); in broadwell_early_init()
218 writel(0x00000000, regs + 0x9400); in broadwell_early_init()
219 writel(0x40401000, regs + 0x9404); in broadwell_early_init()
220 writel(0x00000000, regs + 0x9408); in broadwell_early_init()
221 writel(0x02000001, regs + 0x940c); in broadwell_early_init()
222 writel(0x0000000a, regs + 0x1a054); in broadwell_early_init()
225 writel(0x08000000, regs + 0xa00c); in broadwell_early_init()
227 writel(0x00000009, regs + 0x138158); in broadwell_early_init()
228 writel(0x0000000d, regs + 0x13815c); in broadwell_early_init()
235 clrsetbits_le32(regs + 0x0a090, ~0, 0); in broadwell_early_init()
236 setbits_le32(regs + 0x0a098, 0x03e80000); in broadwell_early_init()
237 setbits_le32(regs + 0x0a09c, 0x00280000); in broadwell_early_init()
238 setbits_le32(regs + 0x0a0a8, 0x0001e848); in broadwell_early_init()
239 setbits_le32(regs + 0x0a0ac, 0x00000019); in broadwell_early_init()
242 writel(0x0000000a, regs + 0x02054); in broadwell_early_init()
243 writel(0x0000000a, regs + 0x12054); in broadwell_early_init()
244 writel(0x0000000a, regs + 0x22054); in broadwell_early_init()
247 setbits_le32(regs + 0x0a0b0, 0x00000000); in broadwell_early_init()
248 setbits_le32(regs + 0x0a0b8, 0x00000271); in broadwell_early_init()
251 setbits_le32(regs + 0x0a010, 0x000f4240); in broadwell_early_init()
252 setbits_le32(regs + 0x0a014, 0x12060000); in broadwell_early_init()
253 setbits_le32(regs + 0x0a02c, 0x0000e808); in broadwell_early_init()
254 setbits_le32(regs + 0x0a030, 0x0003bd08); in broadwell_early_init()
255 setbits_le32(regs + 0x0a068, 0x000101d0); in broadwell_early_init()
256 setbits_le32(regs + 0x0a06c, 0x00055730); in broadwell_early_init()
257 setbits_le32(regs + 0x0a070, 0x0000000a); in broadwell_early_init()
258 setbits_le32(regs + 0x0a168, 0x00000006); in broadwell_early_init()
261 writel(0x00000b92, regs + 0xa024); in broadwell_early_init()
264 writel(0x90040000, regs + 0xa090); in broadwell_early_init()
267 ret = poll32(regs + 0x138124, (1 << 31), 0); in broadwell_early_init()
270 writel(0, regs + 0x138128); in broadwell_early_init()
271 writel(0x80000004, regs + 0x138124); in broadwell_early_init()
272 ret = poll32(regs + 0x138124, (1 << 31), 0); in broadwell_early_init()
277 writel(0x03000076, regs + 0x4402c); in broadwell_early_init()
280 writel(0x00040000, regs + 0xa094); in broadwell_early_init()
291 u8 *regs = priv->regs; in broadwell_late_init() local
295 setbits_le32(regs + 0x0a248, 1 << 31); in broadwell_late_init()
296 setbits_le32(regs + 0x0a000, 1 << 18); in broadwell_late_init()
297 setbits_le32(regs + 0x0a180, 1 << 31); in broadwell_late_init()
300 writel(0x00010000, regs + 0xa188); in broadwell_late_init()
301 ret = poll32(regs + 0x130044, 1, 0); in broadwell_late_init()
306 setbits_le32(regs + 0x45400, 1 << 31); in broadwell_late_init()
307 ret = poll32(regs + 0x45400, 1 << 30, 1 << 30); in broadwell_late_init()
321 return readl(priv->regs + reg); in gtt_read()
327 writel(data, priv->regs + reg); in gtt_write()
333 clrsetbits_le32(priv->regs + reg, bic, or); in gtt_clrsetbits()
731 priv->regs = (u8 *)dm_pci_read_bar32(dev, 0); in broadwell_igd_ofdata_to_platdata()
732 debug("%s: regs at %p\n", __func__, priv->regs); in broadwell_igd_ofdata_to_platdata()