Lines Matching refs:fuc
102 struct gf100_ramfuc fuc; member
108 gf100_ram_train(struct gf100_ramfuc *fuc, u32 magic) in gf100_ram_train() argument
110 struct gf100_ram *ram = container_of(fuc, typeof(*ram), fuc); in gf100_ram_train()
117 ram_wr32(fuc, 0x10f910, magic); in gf100_ram_train()
118 ram_wr32(fuc, 0x10f914, magic); in gf100_ram_train()
123 ram_wait(fuc, addr, 0x0000000f, 0x00000000, 500000); in gf100_ram_train()
131 struct gf100_ramfuc *fuc = &ram->fuc; in gf100_ram_calc() local
181 ret = ram_init(fuc, ram->base.fb); in gf100_ram_calc()
186 from = !!(ram_rd32(fuc, 0x1373f0) & 0x00000002); /*XXX: ok? */ in gf100_ram_calc()
189 if (!(ram_rd32(fuc, 0x137300) & 0x00000100)) in gf100_ram_calc()
197 ram_mask(fuc, 0x137360, 0x00000002, 0x00000000); in gf100_ram_calc()
199 if ((ram_rd32(fuc, 0x132000) & 0x00000002) || 0 /*XXX*/) { in gf100_ram_calc()
200 ram_nuke(fuc, 0x132000); in gf100_ram_calc()
201 ram_mask(fuc, 0x132000, 0x00000002, 0x00000002); in gf100_ram_calc()
202 ram_mask(fuc, 0x132000, 0x00000002, 0x00000000); in gf100_ram_calc()
206 ram_nuke(fuc, 0x10fe20); in gf100_ram_calc()
207 ram_mask(fuc, 0x10fe20, 0x00000002, 0x00000002); in gf100_ram_calc()
208 ram_mask(fuc, 0x10fe20, 0x00000002, 0x00000000); in gf100_ram_calc()
212 ram_wr32(fuc, 0x132100, 0x00000001); in gf100_ram_calc()
223 ram_wr32(fuc, 0x10fe20, 0x20010000); in gf100_ram_calc()
224 ram_wr32(fuc, 0x137320, 0x00000003); in gf100_ram_calc()
225 ram_wr32(fuc, 0x137330, 0x81200006); in gf100_ram_calc()
226 ram_wr32(fuc, 0x10fe24, (P << 16) | (N1 << 8) | M1); in gf100_ram_calc()
227 ram_wr32(fuc, 0x10fe20, 0x20010001); in gf100_ram_calc()
228 ram_wait(fuc, 0x137390, 0x00020000, 0x00020000, 64000); in gf100_ram_calc()
238 ram_wr32(fuc, 0x10fe20, 0x20010005); in gf100_ram_calc()
239 ram_wr32(fuc, 0x132004, (P << 16) | (N1 << 8) | M1); in gf100_ram_calc()
240 ram_wr32(fuc, 0x132000, 0x18010101); in gf100_ram_calc()
241 ram_wait(fuc, 0x137390, 0x00000002, 0x00000002, 64000); in gf100_ram_calc()
244 ram_wr32(fuc, 0x137300, 0x00000003); in gf100_ram_calc()
248 ram_nuke(fuc, 0x10fb04); in gf100_ram_calc()
249 ram_mask(fuc, 0x10fb04, 0x0000ffff, 0x00000000); in gf100_ram_calc()
250 ram_nuke(fuc, 0x10fb08); in gf100_ram_calc()
251 ram_mask(fuc, 0x10fb08, 0x0000ffff, 0x00000000); in gf100_ram_calc()
252 ram_wr32(fuc, 0x10f988, 0x2004ff00); in gf100_ram_calc()
253 ram_wr32(fuc, 0x10f98c, 0x003fc040); in gf100_ram_calc()
254 ram_wr32(fuc, 0x10f990, 0x20012001); in gf100_ram_calc()
255 ram_wr32(fuc, 0x10f998, 0x00011a00); in gf100_ram_calc()
256 ram_wr32(fuc, 0x13d8f4, 0x00000000); in gf100_ram_calc()
258 ram_wr32(fuc, 0x10f988, 0x20010000); in gf100_ram_calc()
259 ram_wr32(fuc, 0x10f98c, 0x00000000); in gf100_ram_calc()
260 ram_wr32(fuc, 0x10f990, 0x20012001); in gf100_ram_calc()
261 ram_wr32(fuc, 0x10f998, 0x00010a00); in gf100_ram_calc()
269 ram_wr32(fuc, 0x100b0c, 0x00080012); in gf100_ram_calc()
272 ram_wr32(fuc, 0x611200, 0x00003300); in gf100_ram_calc()
276 ram_mask(fuc, 0x10f200, 0x00000800, 0x00000000); in gf100_ram_calc()
277 ram_wr32(fuc, 0x10f210, 0x00000000); in gf100_ram_calc()
278 ram_nsec(fuc, 1000); in gf100_ram_calc()
280 gf100_ram_train(fuc, 0x000c1001); in gf100_ram_calc()
281 ram_wr32(fuc, 0x10f310, 0x00000001); in gf100_ram_calc()
282 ram_nsec(fuc, 1000); in gf100_ram_calc()
283 ram_wr32(fuc, 0x10f090, 0x00000061); in gf100_ram_calc()
284 ram_wr32(fuc, 0x10f090, 0xc000007f); in gf100_ram_calc()
285 ram_nsec(fuc, 1000); in gf100_ram_calc()
288 ram_wr32(fuc, 0x10f824, 0x00007fd4); in gf100_ram_calc()
290 ram_wr32(fuc, 0x1373ec, 0x00020404); in gf100_ram_calc()
294 ram_mask(fuc, 0x10f808, 0x00080000, 0x00000000); in gf100_ram_calc()
295 ram_mask(fuc, 0x10f200, 0x00008000, 0x00008000); in gf100_ram_calc()
296 ram_wr32(fuc, 0x10f830, 0x41500010); in gf100_ram_calc()
297 ram_mask(fuc, 0x10f830, 0x01000000, 0x00000000); in gf100_ram_calc()
298 ram_mask(fuc, 0x132100, 0x00000100, 0x00000100); in gf100_ram_calc()
299 ram_wr32(fuc, 0x10f050, 0xff000090); in gf100_ram_calc()
300 ram_wr32(fuc, 0x1373ec, 0x00020f0f); in gf100_ram_calc()
301 ram_wr32(fuc, 0x1373f0, 0x00000003); in gf100_ram_calc()
302 ram_wr32(fuc, 0x137310, 0x81201616); in gf100_ram_calc()
303 ram_wr32(fuc, 0x132100, 0x00000001); in gf100_ram_calc()
305 ram_wr32(fuc, 0x10f830, 0x00300017); in gf100_ram_calc()
306 ram_wr32(fuc, 0x1373f0, 0x00000001); in gf100_ram_calc()
307 ram_wr32(fuc, 0x10f824, 0x00007e77); in gf100_ram_calc()
308 ram_wr32(fuc, 0x132000, 0x18030001); in gf100_ram_calc()
309 ram_wr32(fuc, 0x10f090, 0x4000007e); in gf100_ram_calc()
310 ram_nsec(fuc, 2000); in gf100_ram_calc()
311 ram_wr32(fuc, 0x10f314, 0x00000001); in gf100_ram_calc()
312 ram_wr32(fuc, 0x10f210, 0x80000000); in gf100_ram_calc()
313 ram_wr32(fuc, 0x10f338, 0x00300220); in gf100_ram_calc()
314 ram_wr32(fuc, 0x10f300, 0x0000011d); in gf100_ram_calc()
315 ram_nsec(fuc, 1000); in gf100_ram_calc()
316 ram_wr32(fuc, 0x10f290, 0x02060505); in gf100_ram_calc()
317 ram_wr32(fuc, 0x10f294, 0x34208288); in gf100_ram_calc()
318 ram_wr32(fuc, 0x10f298, 0x44050411); in gf100_ram_calc()
319 ram_wr32(fuc, 0x10f29c, 0x0000114c); in gf100_ram_calc()
320 ram_wr32(fuc, 0x10f2a0, 0x42e10069); in gf100_ram_calc()
321 ram_wr32(fuc, 0x10f614, 0x40044f77); in gf100_ram_calc()
322 ram_wr32(fuc, 0x10f610, 0x40044f77); in gf100_ram_calc()
323 ram_wr32(fuc, 0x10f344, 0x00600009); in gf100_ram_calc()
324 ram_nsec(fuc, 1000); in gf100_ram_calc()
325 ram_wr32(fuc, 0x10f348, 0x00700008); in gf100_ram_calc()
326 ram_wr32(fuc, 0x61c140, 0x19240000); in gf100_ram_calc()
327 ram_wr32(fuc, 0x10f830, 0x00300017); in gf100_ram_calc()
328 gf100_ram_train(fuc, 0x80021001); in gf100_ram_calc()
329 gf100_ram_train(fuc, 0x80081001); in gf100_ram_calc()
330 ram_wr32(fuc, 0x10f340, 0x00500004); in gf100_ram_calc()
331 ram_nsec(fuc, 1000); in gf100_ram_calc()
332 ram_wr32(fuc, 0x10f830, 0x01300017); in gf100_ram_calc()
333 ram_wr32(fuc, 0x10f830, 0x00300017); in gf100_ram_calc()
336 ram_wr32(fuc, 0x100b0c, 0x00080028); in gf100_ram_calc()
337 ram_wr32(fuc, 0x611200, 0x00003330); in gf100_ram_calc()
339 ram_wr32(fuc, 0x10f800, 0x00001800); in gf100_ram_calc()
340 ram_wr32(fuc, 0x13d8f4, 0x00000000); in gf100_ram_calc()
341 ram_wr32(fuc, 0x1373ec, 0x00020404); in gf100_ram_calc()
342 ram_wr32(fuc, 0x1373f0, 0x00000003); in gf100_ram_calc()
343 ram_wr32(fuc, 0x10f830, 0x40700010); in gf100_ram_calc()
344 ram_wr32(fuc, 0x10f830, 0x40500010); in gf100_ram_calc()
345 ram_wr32(fuc, 0x13d8f4, 0x00000000); in gf100_ram_calc()
346 ram_wr32(fuc, 0x1373f8, 0x00000000); in gf100_ram_calc()
347 ram_wr32(fuc, 0x132100, 0x00000101); in gf100_ram_calc()
348 ram_wr32(fuc, 0x137310, 0x89201616); in gf100_ram_calc()
349 ram_wr32(fuc, 0x10f050, 0xff000090); in gf100_ram_calc()
350 ram_wr32(fuc, 0x1373ec, 0x00030404); in gf100_ram_calc()
351 ram_wr32(fuc, 0x1373f0, 0x00000002); in gf100_ram_calc()
353 ram_wr32(fuc, 0x132100, 0x00000001); in gf100_ram_calc()
354 ram_wr32(fuc, 0x1373f8, 0x00002000); in gf100_ram_calc()
355 ram_nsec(fuc, 2000); in gf100_ram_calc()
356 ram_wr32(fuc, 0x10f808, 0x7aaa0050); in gf100_ram_calc()
357 ram_wr32(fuc, 0x10f830, 0x00500010); in gf100_ram_calc()
358 ram_wr32(fuc, 0x10f200, 0x00ce1000); in gf100_ram_calc()
359 ram_wr32(fuc, 0x10f090, 0x4000007e); in gf100_ram_calc()
360 ram_nsec(fuc, 2000); in gf100_ram_calc()
361 ram_wr32(fuc, 0x10f314, 0x00000001); in gf100_ram_calc()
362 ram_wr32(fuc, 0x10f210, 0x80000000); in gf100_ram_calc()
363 ram_wr32(fuc, 0x10f338, 0x00300200); in gf100_ram_calc()
364 ram_wr32(fuc, 0x10f300, 0x0000084d); in gf100_ram_calc()
365 ram_nsec(fuc, 1000); in gf100_ram_calc()
366 ram_wr32(fuc, 0x10f290, 0x0b343825); in gf100_ram_calc()
367 ram_wr32(fuc, 0x10f294, 0x3483028e); in gf100_ram_calc()
368 ram_wr32(fuc, 0x10f298, 0x440c0600); in gf100_ram_calc()
369 ram_wr32(fuc, 0x10f29c, 0x0000214c); in gf100_ram_calc()
370 ram_wr32(fuc, 0x10f2a0, 0x42e20069); in gf100_ram_calc()
371 ram_wr32(fuc, 0x10f200, 0x00ce0000); in gf100_ram_calc()
372 ram_wr32(fuc, 0x10f614, 0x60044e77); in gf100_ram_calc()
373 ram_wr32(fuc, 0x10f610, 0x60044e77); in gf100_ram_calc()
374 ram_wr32(fuc, 0x10f340, 0x00500000); in gf100_ram_calc()
375 ram_nsec(fuc, 1000); in gf100_ram_calc()
376 ram_wr32(fuc, 0x10f344, 0x00600228); in gf100_ram_calc()
377 ram_nsec(fuc, 1000); in gf100_ram_calc()
378 ram_wr32(fuc, 0x10f348, 0x00700000); in gf100_ram_calc()
379 ram_wr32(fuc, 0x13d8f4, 0x00000000); in gf100_ram_calc()
380 ram_wr32(fuc, 0x61c140, 0x09a40000); in gf100_ram_calc()
382 gf100_ram_train(fuc, 0x800e1008); in gf100_ram_calc()
384 ram_nsec(fuc, 1000); in gf100_ram_calc()
385 ram_wr32(fuc, 0x10f800, 0x00001804); in gf100_ram_calc()
388 ram_wr32(fuc, 0x13d8f4, 0x00000000); in gf100_ram_calc()
389 ram_wr32(fuc, 0x100b0c, 0x00080028); in gf100_ram_calc()
390 ram_wr32(fuc, 0x611200, 0x00003330); in gf100_ram_calc()
391 ram_nsec(fuc, 100000); in gf100_ram_calc()
392 ram_wr32(fuc, 0x10f9b0, 0x05313f41); in gf100_ram_calc()
393 ram_wr32(fuc, 0x10f9b4, 0x00002f50); in gf100_ram_calc()
395 gf100_ram_train(fuc, 0x010c1001); in gf100_ram_calc()
398 ram_mask(fuc, 0x10f200, 0x00000800, 0x00000800); in gf100_ram_calc()
402 ram_mask(fuc, 0x132000, 0x00000001, 0x00000000); in gf100_ram_calc()
412 ram_exec(&ram->fuc, nvkm_boolopt(device->cfgopt, "NvMemExec", true)); in gf100_ram_prog()
420 ram_exec(&ram->fuc, false); in gf100_ram_tidy()
656 ram->fuc.r_0x10fe20 = ramfuc_reg(0x10fe20); in gf100_ram_new()
657 ram->fuc.r_0x10fe24 = ramfuc_reg(0x10fe24); in gf100_ram_new()
658 ram->fuc.r_0x137320 = ramfuc_reg(0x137320); in gf100_ram_new()
659 ram->fuc.r_0x137330 = ramfuc_reg(0x137330); in gf100_ram_new()
661 ram->fuc.r_0x132000 = ramfuc_reg(0x132000); in gf100_ram_new()
662 ram->fuc.r_0x132004 = ramfuc_reg(0x132004); in gf100_ram_new()
663 ram->fuc.r_0x132100 = ramfuc_reg(0x132100); in gf100_ram_new()
665 ram->fuc.r_0x137390 = ramfuc_reg(0x137390); in gf100_ram_new()
667 ram->fuc.r_0x10f290 = ramfuc_reg(0x10f290); in gf100_ram_new()
668 ram->fuc.r_0x10f294 = ramfuc_reg(0x10f294); in gf100_ram_new()
669 ram->fuc.r_0x10f298 = ramfuc_reg(0x10f298); in gf100_ram_new()
670 ram->fuc.r_0x10f29c = ramfuc_reg(0x10f29c); in gf100_ram_new()
671 ram->fuc.r_0x10f2a0 = ramfuc_reg(0x10f2a0); in gf100_ram_new()
673 ram->fuc.r_0x10f300 = ramfuc_reg(0x10f300); in gf100_ram_new()
674 ram->fuc.r_0x10f338 = ramfuc_reg(0x10f338); in gf100_ram_new()
675 ram->fuc.r_0x10f340 = ramfuc_reg(0x10f340); in gf100_ram_new()
676 ram->fuc.r_0x10f344 = ramfuc_reg(0x10f344); in gf100_ram_new()
677 ram->fuc.r_0x10f348 = ramfuc_reg(0x10f348); in gf100_ram_new()
679 ram->fuc.r_0x10f910 = ramfuc_reg(0x10f910); in gf100_ram_new()
680 ram->fuc.r_0x10f914 = ramfuc_reg(0x10f914); in gf100_ram_new()
682 ram->fuc.r_0x100b0c = ramfuc_reg(0x100b0c); in gf100_ram_new()
683 ram->fuc.r_0x10f050 = ramfuc_reg(0x10f050); in gf100_ram_new()
684 ram->fuc.r_0x10f090 = ramfuc_reg(0x10f090); in gf100_ram_new()
685 ram->fuc.r_0x10f200 = ramfuc_reg(0x10f200); in gf100_ram_new()
686 ram->fuc.r_0x10f210 = ramfuc_reg(0x10f210); in gf100_ram_new()
687 ram->fuc.r_0x10f310 = ramfuc_reg(0x10f310); in gf100_ram_new()
688 ram->fuc.r_0x10f314 = ramfuc_reg(0x10f314); in gf100_ram_new()
689 ram->fuc.r_0x10f610 = ramfuc_reg(0x10f610); in gf100_ram_new()
690 ram->fuc.r_0x10f614 = ramfuc_reg(0x10f614); in gf100_ram_new()
691 ram->fuc.r_0x10f800 = ramfuc_reg(0x10f800); in gf100_ram_new()
692 ram->fuc.r_0x10f808 = ramfuc_reg(0x10f808); in gf100_ram_new()
693 ram->fuc.r_0x10f824 = ramfuc_reg(0x10f824); in gf100_ram_new()
694 ram->fuc.r_0x10f830 = ramfuc_reg(0x10f830); in gf100_ram_new()
695 ram->fuc.r_0x10f988 = ramfuc_reg(0x10f988); in gf100_ram_new()
696 ram->fuc.r_0x10f98c = ramfuc_reg(0x10f98c); in gf100_ram_new()
697 ram->fuc.r_0x10f990 = ramfuc_reg(0x10f990); in gf100_ram_new()
698 ram->fuc.r_0x10f998 = ramfuc_reg(0x10f998); in gf100_ram_new()
699 ram->fuc.r_0x10f9b0 = ramfuc_reg(0x10f9b0); in gf100_ram_new()
700 ram->fuc.r_0x10f9b4 = ramfuc_reg(0x10f9b4); in gf100_ram_new()
701 ram->fuc.r_0x10fb04 = ramfuc_reg(0x10fb04); in gf100_ram_new()
702 ram->fuc.r_0x10fb08 = ramfuc_reg(0x10fb08); in gf100_ram_new()
703 ram->fuc.r_0x137310 = ramfuc_reg(0x137300); in gf100_ram_new()
704 ram->fuc.r_0x137310 = ramfuc_reg(0x137310); in gf100_ram_new()
705 ram->fuc.r_0x137360 = ramfuc_reg(0x137360); in gf100_ram_new()
706 ram->fuc.r_0x1373ec = ramfuc_reg(0x1373ec); in gf100_ram_new()
707 ram->fuc.r_0x1373f0 = ramfuc_reg(0x1373f0); in gf100_ram_new()
708 ram->fuc.r_0x1373f8 = ramfuc_reg(0x1373f8); in gf100_ram_new()
710 ram->fuc.r_0x61c140 = ramfuc_reg(0x61c140); in gf100_ram_new()
711 ram->fuc.r_0x611200 = ramfuc_reg(0x611200); in gf100_ram_new()
713 ram->fuc.r_0x13d8f4 = ramfuc_reg(0x13d8f4); in gf100_ram_new()