fuc 2043 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c gf100_gr_dtor_fw(struct gf100_gr_fuc *fuc) fuc 2045 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c kfree(fuc->data); fuc 2046 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c fuc->data = NULL; fuc 2098 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c struct gf100_gr_fuc *fuc, int ret) fuc 2134 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c fuc->size = fw->size; fuc 2135 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c fuc->data = kmemdup(fw->data, fuc->size, GFP_KERNEL); fuc 2137 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c return (fuc->data != NULL) ? 0 : -ENOMEM; fuc 2142 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c struct gf100_gr_fuc *fuc) fuc 2149 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c ret = gf100_gr_ctor_fw_legacy(gr, fwname, fuc, ret); fuc 2155 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c fuc->size = fw->size; fuc 2156 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c fuc->data = kmemdup(fw->data, fuc->size, GFP_KERNEL); fuc 2158 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c return (fuc->data != NULL) ? 0 : -ENOMEM; fuc 39 drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c struct gf100_gr_fuc fuc; fuc 46 drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c ret = gf100_gr_ctor_fw(gr, fw_name, &fuc); fuc 50 drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c nent = (fuc.size / sizeof(struct gk20a_fw_av)); fuc 62 drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c struct gk20a_fw_av *av = &((struct gk20a_fw_av *)fuc.data)[i]; fuc 73 drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c gf100_gr_dtor_fw(&fuc); fuc 88 drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c struct gf100_gr_fuc fuc; fuc 95 drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c ret = gf100_gr_ctor_fw(gr, fw_name, &fuc); fuc 99 drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c nent = (fuc.size / sizeof(struct gk20a_fw_aiv)); fuc 111 drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c struct gk20a_fw_aiv *av = &((struct gk20a_fw_aiv *)fuc.data)[i]; fuc 122 drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c gf100_gr_dtor_fw(&fuc); fuc 130 drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c struct gf100_gr_fuc fuc; fuc 140 drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c ret = gf100_gr_ctor_fw(gr, fw_name, &fuc); fuc 144 drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c nent = (fuc.size / sizeof(struct gk20a_fw_av)); fuc 156 drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c struct gk20a_fw_av *av = &((struct gk20a_fw_av *)fuc.data)[i]; fuc 182 drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c gf100_gr_dtor_fw(&fuc); fuc 101 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct gf100_ramfuc fuc; fuc 107 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c gf100_ram_train(struct gf100_ramfuc *fuc, u32 magic) fuc 109 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct gf100_ram *ram = container_of(fuc, typeof(*ram), fuc); fuc 116 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f910, magic); fuc 117 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f914, magic); fuc 122 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wait(fuc, addr, 0x0000000f, 0x00000000, 500000); fuc 130 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct gf100_ramfuc *fuc = &ram->fuc; fuc 180 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ret = ram_init(fuc, ram->base.fb); fuc 185 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c from = !!(ram_rd32(fuc, 0x1373f0) & 0x00000002); /*XXX: ok? */ fuc 188 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c if (!(ram_rd32(fuc, 0x137300) & 0x00000100)) fuc 196 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_mask(fuc, 0x137360, 0x00000002, 0x00000000); fuc 198 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c if ((ram_rd32(fuc, 0x132000) & 0x00000002) || 0 /*XXX*/) { fuc 199 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_nuke(fuc, 0x132000); fuc 200 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_mask(fuc, 0x132000, 0x00000002, 0x00000002); fuc 201 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_mask(fuc, 0x132000, 0x00000002, 0x00000000); fuc 205 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_nuke(fuc, 0x10fe20); fuc 206 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_mask(fuc, 0x10fe20, 0x00000002, 0x00000002); fuc 207 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_mask(fuc, 0x10fe20, 0x00000002, 0x00000000); fuc 211 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x132100, 0x00000001); fuc 222 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10fe20, 0x20010000); fuc 223 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x137320, 0x00000003); fuc 224 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x137330, 0x81200006); fuc 225 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10fe24, (P << 16) | (N1 << 8) | M1); fuc 226 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10fe20, 0x20010001); fuc 227 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wait(fuc, 0x137390, 0x00020000, 0x00020000, 64000); fuc 237 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10fe20, 0x20010005); fuc 238 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x132004, (P << 16) | (N1 << 8) | M1); fuc 239 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x132000, 0x18010101); fuc 240 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wait(fuc, 0x137390, 0x00000002, 0x00000002, 64000); fuc 243 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x137300, 0x00000003); fuc 247 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_nuke(fuc, 0x10fb04); fuc 248 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_mask(fuc, 0x10fb04, 0x0000ffff, 0x00000000); fuc 249 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_nuke(fuc, 0x10fb08); fuc 250 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_mask(fuc, 0x10fb08, 0x0000ffff, 0x00000000); fuc 251 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f988, 0x2004ff00); fuc 252 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f98c, 0x003fc040); fuc 253 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f990, 0x20012001); fuc 254 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f998, 0x00011a00); fuc 255 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x13d8f4, 0x00000000); fuc 257 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f988, 0x20010000); fuc 258 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f98c, 0x00000000); fuc 259 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f990, 0x20012001); fuc 260 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f998, 0x00010a00); fuc 268 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x100b0c, 0x00080012); fuc 271 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x611200, 0x00003300); fuc 275 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_mask(fuc, 0x10f200, 0x00000800, 0x00000000); fuc 276 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f210, 0x00000000); fuc 277 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_nsec(fuc, 1000); fuc 279 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c gf100_ram_train(fuc, 0x000c1001); fuc 280 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f310, 0x00000001); fuc 281 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_nsec(fuc, 1000); fuc 282 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f090, 0x00000061); fuc 283 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f090, 0xc000007f); fuc 284 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_nsec(fuc, 1000); fuc 287 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f824, 0x00007fd4); fuc 289 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x1373ec, 0x00020404); fuc 293 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_mask(fuc, 0x10f808, 0x00080000, 0x00000000); fuc 294 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_mask(fuc, 0x10f200, 0x00008000, 0x00008000); fuc 295 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f830, 0x41500010); fuc 296 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_mask(fuc, 0x10f830, 0x01000000, 0x00000000); fuc 297 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_mask(fuc, 0x132100, 0x00000100, 0x00000100); fuc 298 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f050, 0xff000090); fuc 299 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x1373ec, 0x00020f0f); fuc 300 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x1373f0, 0x00000003); fuc 301 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x137310, 0x81201616); fuc 302 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x132100, 0x00000001); fuc 304 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f830, 0x00300017); fuc 305 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x1373f0, 0x00000001); fuc 306 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f824, 0x00007e77); fuc 307 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x132000, 0x18030001); fuc 308 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f090, 0x4000007e); fuc 309 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_nsec(fuc, 2000); fuc 310 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f314, 0x00000001); fuc 311 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f210, 0x80000000); fuc 312 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f338, 0x00300220); fuc 313 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f300, 0x0000011d); fuc 314 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_nsec(fuc, 1000); fuc 315 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f290, 0x02060505); fuc 316 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f294, 0x34208288); fuc 317 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f298, 0x44050411); fuc 318 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f29c, 0x0000114c); fuc 319 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f2a0, 0x42e10069); fuc 320 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f614, 0x40044f77); fuc 321 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f610, 0x40044f77); fuc 322 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f344, 0x00600009); fuc 323 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_nsec(fuc, 1000); fuc 324 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f348, 0x00700008); fuc 325 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x61c140, 0x19240000); fuc 326 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f830, 0x00300017); fuc 327 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c gf100_ram_train(fuc, 0x80021001); fuc 328 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c gf100_ram_train(fuc, 0x80081001); fuc 329 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f340, 0x00500004); fuc 330 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_nsec(fuc, 1000); fuc 331 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f830, 0x01300017); fuc 332 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f830, 0x00300017); fuc 335 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x100b0c, 0x00080028); fuc 336 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x611200, 0x00003330); fuc 338 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f800, 0x00001800); fuc 339 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x13d8f4, 0x00000000); fuc 340 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x1373ec, 0x00020404); fuc 341 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x1373f0, 0x00000003); fuc 342 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f830, 0x40700010); fuc 343 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f830, 0x40500010); fuc 344 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x13d8f4, 0x00000000); fuc 345 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x1373f8, 0x00000000); fuc 346 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x132100, 0x00000101); fuc 347 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x137310, 0x89201616); fuc 348 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f050, 0xff000090); fuc 349 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x1373ec, 0x00030404); fuc 350 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x1373f0, 0x00000002); fuc 352 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x132100, 0x00000001); fuc 353 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x1373f8, 0x00002000); fuc 354 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_nsec(fuc, 2000); fuc 355 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f808, 0x7aaa0050); fuc 356 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f830, 0x00500010); fuc 357 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f200, 0x00ce1000); fuc 358 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f090, 0x4000007e); fuc 359 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_nsec(fuc, 2000); fuc 360 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f314, 0x00000001); fuc 361 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f210, 0x80000000); fuc 362 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f338, 0x00300200); fuc 363 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f300, 0x0000084d); fuc 364 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_nsec(fuc, 1000); fuc 365 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f290, 0x0b343825); fuc 366 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f294, 0x3483028e); fuc 367 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f298, 0x440c0600); fuc 368 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f29c, 0x0000214c); fuc 369 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f2a0, 0x42e20069); fuc 370 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f200, 0x00ce0000); fuc 371 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f614, 0x60044e77); fuc 372 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f610, 0x60044e77); fuc 373 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f340, 0x00500000); fuc 374 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_nsec(fuc, 1000); fuc 375 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f344, 0x00600228); fuc 376 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_nsec(fuc, 1000); fuc 377 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f348, 0x00700000); fuc 378 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x13d8f4, 0x00000000); fuc 379 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x61c140, 0x09a40000); fuc 381 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c gf100_ram_train(fuc, 0x800e1008); fuc 383 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_nsec(fuc, 1000); fuc 384 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f800, 0x00001804); fuc 387 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x13d8f4, 0x00000000); fuc 388 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x100b0c, 0x00080028); fuc 389 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x611200, 0x00003330); fuc 390 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_nsec(fuc, 100000); fuc 391 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f9b0, 0x05313f41); fuc 392 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_wr32(fuc, 0x10f9b4, 0x00002f50); fuc 394 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c gf100_ram_train(fuc, 0x010c1001); fuc 397 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_mask(fuc, 0x10f200, 0x00000800, 0x00000800); fuc 401 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_mask(fuc, 0x132000, 0x00000001, 0x00000000); fuc 411 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_exec(&ram->fuc, nvkm_boolopt(device->cfgopt, "NvMemExec", true)); fuc 419 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_exec(&ram->fuc, false); fuc 595 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10fe20 = ramfuc_reg(0x10fe20); fuc 596 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10fe24 = ramfuc_reg(0x10fe24); fuc 597 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x137320 = ramfuc_reg(0x137320); fuc 598 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x137330 = ramfuc_reg(0x137330); fuc 600 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x132000 = ramfuc_reg(0x132000); fuc 601 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x132004 = ramfuc_reg(0x132004); fuc 602 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x132100 = ramfuc_reg(0x132100); fuc 604 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x137390 = ramfuc_reg(0x137390); fuc 606 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f290 = ramfuc_reg(0x10f290); fuc 607 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f294 = ramfuc_reg(0x10f294); fuc 608 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f298 = ramfuc_reg(0x10f298); fuc 609 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f29c = ramfuc_reg(0x10f29c); fuc 610 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f2a0 = ramfuc_reg(0x10f2a0); fuc 612 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f300 = ramfuc_reg(0x10f300); fuc 613 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f338 = ramfuc_reg(0x10f338); fuc 614 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f340 = ramfuc_reg(0x10f340); fuc 615 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f344 = ramfuc_reg(0x10f344); fuc 616 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f348 = ramfuc_reg(0x10f348); fuc 618 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f910 = ramfuc_reg(0x10f910); fuc 619 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f914 = ramfuc_reg(0x10f914); fuc 621 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x100b0c = ramfuc_reg(0x100b0c); fuc 622 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f050 = ramfuc_reg(0x10f050); fuc 623 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f090 = ramfuc_reg(0x10f090); fuc 624 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f200 = ramfuc_reg(0x10f200); fuc 625 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f210 = ramfuc_reg(0x10f210); fuc 626 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f310 = ramfuc_reg(0x10f310); fuc 627 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f314 = ramfuc_reg(0x10f314); fuc 628 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f610 = ramfuc_reg(0x10f610); fuc 629 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f614 = ramfuc_reg(0x10f614); fuc 630 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f800 = ramfuc_reg(0x10f800); fuc 631 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f808 = ramfuc_reg(0x10f808); fuc 632 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f824 = ramfuc_reg(0x10f824); fuc 633 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f830 = ramfuc_reg(0x10f830); fuc 634 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f988 = ramfuc_reg(0x10f988); fuc 635 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f98c = ramfuc_reg(0x10f98c); fuc 636 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f990 = ramfuc_reg(0x10f990); fuc 637 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f998 = ramfuc_reg(0x10f998); fuc 638 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f9b0 = ramfuc_reg(0x10f9b0); fuc 639 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f9b4 = ramfuc_reg(0x10f9b4); fuc 640 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10fb04 = ramfuc_reg(0x10fb04); fuc 641 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10fb08 = ramfuc_reg(0x10fb08); fuc 642 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x137310 = ramfuc_reg(0x137300); fuc 643 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x137310 = ramfuc_reg(0x137310); fuc 644 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x137360 = ramfuc_reg(0x137360); fuc 645 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x1373ec = ramfuc_reg(0x1373ec); fuc 646 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x1373f0 = ramfuc_reg(0x1373f0); fuc 647 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x1373f8 = ramfuc_reg(0x1373f8); fuc 649 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x61c140 = ramfuc_reg(0x61c140); fuc 650 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x611200 = ramfuc_reg(0x611200); fuc 652 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x13d8f4 = ramfuc_reg(0x13d8f4); fuc 123 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct gk104_ramfuc fuc; fuc 141 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_train(struct gk104_ramfuc *fuc, u32 mask, u32 data) fuc 143 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct gk104_ram *ram = container_of(fuc, typeof(*ram), fuc); fuc 146 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f910, mask, data); fuc 147 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f914, mask, data); fuc 152 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wait(fuc, addr, 0x0000000f, 0x00000000, 500000); fuc 157 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c r1373f4_init(struct gk104_ramfuc *fuc) fuc 159 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct gk104_ram *ram = container_of(fuc, typeof(*ram), fuc); fuc 166 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f4, 0x00000000, 0x00001100); fuc 167 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f4, 0x00000000, 0x00000010); fuc 169 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f4, 0x00000000, 0x00010010); fuc 172 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f4, 0x00000003, 0x00000000); fuc 173 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f4, 0x00000010, 0x00000000); fuc 176 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if ((ram_rd32(fuc, 0x132024) & 0xffffffff) != rcoef || fuc 177 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c (ram_rd32(fuc, 0x132034) & 0x0000ffff) != runk1) { fuc 178 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132000, 0x00000001, 0x00000000); fuc 179 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132020, 0x00000001, 0x00000000); fuc 180 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x137320, 0x00000000); fuc 181 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132030, 0xffff0000, runk0); fuc 182 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132034, 0x0000ffff, runk1); fuc 183 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x132024, rcoef); fuc 184 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132028, 0x00080000, 0x00080000); fuc 185 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132020, 0x00000001, 0x00000001); fuc 186 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wait(fuc, 0x137390, 0x00020000, 0x00020000, 64000); fuc 187 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132028, 0x00080000, 0x00000000); fuc 192 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f4, 0x00010000, 0x00000000); fuc 193 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132000, 0x80000000, 0x80000000); fuc 194 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132000, 0x00000001, 0x00000000); fuc 195 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132004, 0x103fffff, mcoef); fuc 196 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132000, 0x00000001, 0x00000001); fuc 197 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wait(fuc, 0x137390, 0x00000002, 0x00000002, 64000); fuc 198 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f4, 0x00000000, 0x00001100); fuc 200 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f4, 0x00000000, 0x00010100); fuc 203 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f4, 0x00000000, 0x00000010); fuc 207 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c r1373f4_fini(struct gk104_ramfuc *fuc) fuc 209 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct gk104_ram *ram = container_of(fuc, typeof(*ram), fuc); fuc 215 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c tmp = ram_rd32(fuc, 0x1373ec) & ~0x00030000; fuc 216 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x1373ec, tmp | (v1 << 16)); fuc 217 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f0, (~ram->mode & 3), 0x00000000); fuc 219 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f4, 0x00000003, 0x00000002); fuc 220 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f4, 0x00001100, 0x00000000); fuc 222 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f4, 0x00000003, 0x00000001); fuc 223 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f4, 0x00010000, 0x00000000); fuc 225 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f800, 0x00000030, (v0 ^ v1) << 4); fuc 233 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct ramfuc *fuc = &ram->fuc.base; fuc 244 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c nvkm_memx_wr32(fuc->memx, addr, next); fuc 249 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_nuts((s), &(s)->fuc.r_##r, (m), (d), (c)) fuc 254 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct gk104_ramfuc *fuc = &ram->fuc; fuc 260 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f808, 0x40000000, 0x40000000); fuc 261 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_block(fuc); fuc 264 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x62c000, 0x0f0f0000); fuc 268 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[1], 0x03c, ram->base.mr[1] & 0x03c); fuc 272 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (vc == 1 && ram_have(fuc, gpio2E)) { fuc 273 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c u32 temp = ram_mask(fuc, gpio2E, 0x3000, fuc->r_func2E[1]); fuc 274 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (temp != ram_rd32(fuc, gpio2E)) { fuc 275 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, gpiotrig, 1); fuc 276 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 20000); fuc 280 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f200, 0x00000800, 0x00000000); fuc 282 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_train(fuc, 0x01020000, 0x000c0000); fuc 284 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f210, 0x00000000); /* REFRESH_AUTO = 0 */ fuc 285 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 1000); fuc 286 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f310, 0x00000001); /* REFRESH */ fuc 287 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 1000); fuc 289 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f200, 0x80000000, 0x80000000); fuc 290 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f314, 0x00000001); /* PRECHARGE */ fuc 291 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f200, 0x80000000, 0x00000000); fuc 292 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f090, 0x00000061); fuc 293 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f090, 0xc000007f); fuc 294 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 1000); fuc 296 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f698, 0x00000000); fuc 297 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f69c, 0x00000000); fuc 306 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram_rd32(fuc, 0x10f978) & 0x00800000) fuc 336 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram_rd32(fuc, 0x10f978) & 0x00800000) fuc 339 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f824, mask, data); fuc 341 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132040, 0x00010000, 0x00000000); fuc 344 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f808, 0x00080000, 0x00000000); fuc 345 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f200, 0x18008000, 0x00008000); fuc 346 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f800, 0x00000000, 0x00000004); fuc 347 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f830, 0x00008000, 0x01040010); fuc 348 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f830, 0x01000000, 0x00000000); fuc 349 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c r1373f4_init(fuc); fuc 350 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f0, 0x00000002, 0x00000001); fuc 351 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c r1373f4_fini(fuc); fuc 352 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f830, 0x00c00000, 0x00240001); fuc 355 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c r1373f4_init(fuc); fuc 356 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c r1373f4_fini(fuc); fuc 359 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram_have(fuc, gpioMV)) { fuc 360 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c u32 temp = ram_mask(fuc, gpioMV, 0x3000, fuc->r_funcMV[mv]); fuc 361 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (temp != ram_rd32(fuc, gpioMV)) { fuc 362 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, gpiotrig, 1); fuc 363 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 64000); fuc 369 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132040, 0x00010000, 0x00010000); fuc 370 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 20000); fuc 375 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f200, 0x18000000, 0x18000000); fuc 376 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f800, 0x00000004, 0x00000000); fuc 377 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f0, 0x00000000, 0x00000002); fuc 378 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f830, 0x00800001, 0x00408010); fuc 379 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c r1373f4_init(fuc); fuc 380 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c r1373f4_fini(fuc); fuc 381 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f808, 0x00000000, 0x00080000); fuc 382 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f200, 0x00808000, 0x00800000); fuc 385 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f800, 0x00000004, 0x00000000); fuc 386 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c r1373f4_init(fuc); fuc 387 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c r1373f4_fini(fuc); fuc 392 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f670, 0x80000000, 0x80000000); fuc 395 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f65c, 0x00000011 * next->bios.rammap_11_11_0c); fuc 396 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f6b8, 0x01010101 * next->bios.ramcfg_11_09); fuc 397 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f6bc, 0x01010101 * next->bios.ramcfg_11_09); fuc 400 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f698, 0x01010101 * next->bios.ramcfg_11_04); fuc 401 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f69c, 0x01010101 * next->bios.ramcfg_11_04); fuc 404 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f698, 0x00000000); fuc 405 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f69c, 0x00000000); fuc 410 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nuke(fuc, 0x10f694); fuc 411 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f694, 0xff00ff00, data); fuc 418 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f60c, 0x00000080, data); fuc 432 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f824, mask, data); fuc 438 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f200, 0x00001000, data); fuc 440 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram_rd32(fuc, 0x10f670) & 0x80000000) { fuc 441 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 10000); fuc 442 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f670, 0x80000000, 0x00000000); fuc 449 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f82c, 0x00100000, data); fuc 458 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f830, 0x00007000, data); fuc 461 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f248, 0xffffffff, next->bios.timing[10]); fuc 462 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f290, 0xffffffff, next->bios.timing[0]); fuc 463 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f294, 0xffffffff, next->bios.timing[1]); fuc 464 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f298, 0xffffffff, next->bios.timing[2]); fuc 465 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f29c, 0xffffffff, next->bios.timing[3]); fuc 466 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2a0, 0xffffffff, next->bios.timing[4]); fuc 467 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2a4, 0xffffffff, next->bios.timing[5]); fuc 468 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2a8, 0xffffffff, next->bios.timing[6]); fuc 469 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2ac, 0xffffffff, next->bios.timing[7]); fuc 470 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2cc, 0xffffffff, next->bios.timing[8]); fuc 471 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2e8, 0xffffffff, next->bios.timing[9]); fuc 479 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f200, mask, data); fuc 491 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f604, mask, data); fuc 503 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f614, mask, data); fuc 515 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f610, mask, data); fuc 539 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f808, mask, data); fuc 541 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f870, 0x11111111 * next->bios.ramcfg_11_03_0f); fuc 554 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if ((ram_mask(fuc, 0x100770, mask, data) & mask & 4) != (data & 4)) { fuc 555 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x100750, 0x00000008, 0x00000008); fuc 556 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x100710, 0x00000000); fuc 557 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wait(fuc, 0x100710, 0x80000000, 0x80000000, 200000); fuc 563 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x100778, 0x00000700, data); fuc 565 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f250, 0x000003f0, next->bios.timing_20_2c_003f << 4); fuc 569 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f24c, 0x7f000000, data << 24); fuc 570 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f224, 0x001f0000, next->bios.timing_20_30_f8 << 16); fuc 572 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10fec4, 0x041e0f07, next->bios.timing_20_31_0800 << 26 | fuc 576 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10fec8, 0x00000027, next->bios.timing_20_31_8000 << 5 | fuc 579 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f090, 0x4000007e); fuc 580 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 2000); fuc 581 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f314, 0x00000001); /* PRECHARGE */ fuc 582 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f310, 0x00000001); /* REFRESH */ fuc 583 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f210, 0x80000000); /* REFRESH_AUTO = 1 */ fuc 586 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c u32 temp = ram_mask(fuc, 0x10f294, 0xff000000, 0x24000000); fuc 587 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_train(fuc, 0xbc0e0000, 0xa4010000); /*XXX*/ fuc 588 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 1000); fuc 589 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f294, temp); fuc 592 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[3], 0xfff, ram->base.mr[3]); fuc 593 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, mr[0], ram->base.mr[0]); fuc 594 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[8], 0xfff, ram->base.mr[8]); fuc 595 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 1000); fuc 596 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[1], 0xfff, ram->base.mr[1]); fuc 597 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[5], 0xfff, ram->base.mr[5] & ~0x004); /* LP3 later */ fuc 598 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[6], 0xfff, ram->base.mr[6]); fuc 599 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[7], 0xfff, ram->base.mr[7]); fuc 601 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (vc == 0 && ram_have(fuc, gpio2E)) { fuc 602 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c u32 temp = ram_mask(fuc, gpio2E, 0x3000, fuc->r_func2E[0]); fuc 603 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (temp != ram_rd32(fuc, gpio2E)) { fuc 604 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, gpiotrig, 1); fuc 605 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 20000); fuc 609 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f200, 0x80000000, 0x80000000); fuc 610 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f318, 0x00000001); /* NOP? */ fuc 611 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f200, 0x80000000, 0x00000000); fuc 612 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 1000); fuc 615 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data = ram_rd32(fuc, 0x10f978); fuc 626 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f978, data); fuc 629 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data = ram_rd32(fuc, 0x10f830) | 0x00000001; fuc 630 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f830, data); fuc 642 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_train(fuc, 0xbc0f0000, data); fuc 644 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 1000); fuc 647 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f800, 0x00000004, 0x00000004); fuc 651 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram_mask(fuc, mr[5], 0x004, ram->base.mr[5]) != ram->base.mr[5]) fuc 652 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 1000); fuc 655 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f830, 0x01000000, 0x01000000); fuc 656 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f830, 0x01000000, 0x00000000); fuc 660 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_train(fuc, 0x80020000, 0x01000000); fuc 662 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_unblock(fuc); fuc 665 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x62c000, 0x0f0f0f00); fuc 671 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f200, 0x00000800, data); fuc 681 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c nvkm_sddr3_dll_reset(struct gk104_ramfuc *fuc) fuc 683 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nuke(fuc, mr[0]); fuc 684 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[0], 0x100, 0x100); fuc 685 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[0], 0x100, 0x000); fuc 689 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c nvkm_sddr3_dll_disable(struct gk104_ramfuc *fuc) fuc 691 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c u32 mr1_old = ram_rd32(fuc, mr[1]); fuc 694 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[1], 0x1, 0x1); fuc 695 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 1000); fuc 702 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct gk104_ramfuc *fuc = &ram->fuc; fuc 711 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f808, 0x40000000, 0x40000000); fuc 712 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_block(fuc); fuc 715 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x62c000, 0x0f0f0000); fuc 717 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (vc == 1 && ram_have(fuc, gpio2E)) { fuc 718 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c u32 temp = ram_mask(fuc, gpio2E, 0x3000, fuc->r_func2E[1]); fuc 719 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (temp != ram_rd32(fuc, gpio2E)) { fuc 720 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, gpiotrig, 1); fuc 721 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 20000); fuc 725 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f200, 0x00000800, 0x00000000); fuc 727 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f808, 0x04000000, 0x04000000); fuc 729 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f314, 0x00000001); /* PRECHARGE */ fuc 732 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c nvkm_sddr3_dll_disable(fuc); fuc 734 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f210, 0x00000000); /* REFRESH_AUTO = 0 */ fuc 735 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f310, 0x00000001); /* REFRESH */ fuc 736 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f200, 0x80000000, 0x80000000); fuc 737 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f310, 0x00000001); /* REFRESH */ fuc 738 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f200, 0x80000000, 0x00000000); fuc 739 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 1000); fuc 741 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f090, 0x00000060); fuc 742 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f090, 0xc000007e); fuc 780 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f824, mask, data); fuc 782 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132040, 0x00010000, 0x00000000); fuc 784 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f4, 0x00000000, 0x00010010); fuc 785 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data = ram_rd32(fuc, 0x1373ec) & ~0x00030000; fuc 787 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x1373ec, data); fuc 788 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f4, 0x00000003, 0x00000000); fuc 789 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f4, 0x00000010, 0x00000000); fuc 792 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if ((ram_rd32(fuc, 0x132024) & 0xffffffff) != rcoef || fuc 793 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c (ram_rd32(fuc, 0x132034) & 0x0000ffff) != runk1) { fuc 794 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132000, 0x00000001, 0x00000000); fuc 795 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132020, 0x00000001, 0x00000000); fuc 796 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x137320, 0x00000000); fuc 797 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132030, 0xffff0000, runk0); fuc 798 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132034, 0x0000ffff, runk1); fuc 799 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x132024, rcoef); fuc 800 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132028, 0x00080000, 0x00080000); fuc 801 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132020, 0x00000001, 0x00000001); fuc 802 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wait(fuc, 0x137390, 0x00020000, 0x00020000, 64000); fuc 803 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132028, 0x00080000, 0x00000000); fuc 806 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f4, 0x00000010, 0x00000010); fuc 807 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f4, 0x00000003, 0x00000001); fuc 808 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f4, 0x00010000, 0x00000000); fuc 810 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram_have(fuc, gpioMV)) { fuc 811 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c u32 temp = ram_mask(fuc, gpioMV, 0x3000, fuc->r_funcMV[mv]); fuc 812 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (temp != ram_rd32(fuc, gpioMV)) { fuc 813 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, gpiotrig, 1); fuc 814 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 64000); fuc 820 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x132040, 0x00010000, 0x00010000); fuc 821 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 20000); fuc 826 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f670, 0x80000000, 0x80000000); fuc 829 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f65c, 0x00000011 * next->bios.rammap_11_11_0c); fuc 830 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f6b8, 0x01010101 * next->bios.ramcfg_11_09); fuc 831 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f6bc, 0x01010101 * next->bios.ramcfg_11_09); fuc 845 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f824, mask, data); fuc 846 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 1000); fuc 852 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f82c, 0x00100000, data); fuc 855 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f248, 0xffffffff, next->bios.timing[10]); fuc 856 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f290, 0xffffffff, next->bios.timing[0]); fuc 857 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f294, 0xffffffff, next->bios.timing[1]); fuc 858 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f298, 0xffffffff, next->bios.timing[2]); fuc 859 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f29c, 0xffffffff, next->bios.timing[3]); fuc 860 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2a0, 0xffffffff, next->bios.timing[4]); fuc 861 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2a4, 0xffffffff, next->bios.timing[5]); fuc 862 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2a8, 0xffffffff, next->bios.timing[6]); fuc 863 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2ac, 0xffffffff, next->bios.timing[7]); fuc 864 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2cc, 0xffffffff, next->bios.timing[8]); fuc 865 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2e8, 0xffffffff, next->bios.timing[9]); fuc 890 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f808, mask, data); fuc 892 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f870, 0x11111111 * next->bios.ramcfg_11_03_0f); fuc 894 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f250, 0x000003f0, next->bios.timing_20_2c_003f << 4); fuc 899 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f24c, 0x7f000000, data << 24); fuc 901 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f224, 0x001f0000, next->bios.timing_20_30_f8 << 16); fuc 903 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f090, 0x4000007f); fuc 904 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 1000); fuc 906 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f314, 0x00000001); /* PRECHARGE */ fuc 907 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f310, 0x00000001); /* REFRESH */ fuc 908 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f210, 0x80000000); /* REFRESH_AUTO = 1 */ fuc 909 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 1000); fuc 912 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[1], 0x1, 0x0); fuc 913 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c nvkm_sddr3_dll_reset(fuc); fuc 916 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[2], 0x00000fff, ram->base.mr[2]); fuc 917 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[1], 0xffffffff, ram->base.mr[1]); fuc 918 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, mr[0], ram->base.mr[0]); fuc 919 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 1000); fuc 922 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c nvkm_sddr3_dll_reset(fuc); fuc 923 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 1000); fuc 926 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (vc == 0 && ram_have(fuc, gpio2E)) { fuc 927 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c u32 temp = ram_mask(fuc, gpio2E, 0x3000, fuc->r_func2E[0]); fuc 928 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (temp != ram_rd32(fuc, gpio2E)) { fuc 929 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, gpiotrig, 1); fuc 930 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 20000); fuc 935 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f830, 0x01000000, 0x01000000); fuc 936 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f830, 0x01000000, 0x00000000); fuc 939 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f200, 0x80000000, 0x80000000); fuc 940 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f318, 0x00000001); /* NOP? */ fuc 941 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f200, 0x80000000, 0x00000000); fuc 942 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nsec(fuc, 1000); fuc 944 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_unblock(fuc); fuc 947 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x62c000, 0x0f0f0f00); fuc 953 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f200, 0x00000800, data); fuc 1043 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct gk104_ramfuc *fuc = &ram->fuc; fuc 1048 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = ram_init(fuc, ram->base.fb); fuc 1052 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->mode = (next->freq > fuc->refpll.vco1.max_freq) ? 2 : 1; fuc 1053 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->from = ram_rd32(fuc, 0x1373f4) & 0x0000000f; fuc 1068 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c fuc->mempll.refclk = ret; fuc 1077 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = gt215_pll_calc(subdev, &fuc->refpll, refclk, &ram->N1, fuc 1079 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c fuc->mempll.refclk = ret; fuc 1086 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c for (i = 0; i < ARRAY_SIZE(fuc->r_mr); i++) { fuc 1087 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram_have(fuc, mr[i])) fuc 1088 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->base.mr[i] = ram_rd32(fuc, mr[i]); fuc 1234 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct gk104_ramfuc *fuc = &ram->fuc; fuc 1239 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_exec(fuc, false); fuc 1244 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_exec(fuc, true); fuc 1255 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_exec(&ram->fuc, false); fuc 1582 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = nvbios_pll_parse(bios, 0x0c, &ram->fuc.refpll); fuc 1588 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = nvbios_pll_parse(bios, 0x04, &ram->fuc.mempll); fuc 1597 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_gpioMV = ramfuc_reg(0x00d610 + (gpio.line * 0x04)); fuc 1598 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_funcMV[0] = (gpio.log[0] ^ 2) << 12; fuc 1599 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_funcMV[1] = (gpio.log[1] ^ 2) << 12; fuc 1604 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_gpio2E = ramfuc_reg(0x00d610 + (gpio.line * 0x04)); fuc 1605 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_func2E[0] = (gpio.log[0] ^ 2) << 12; fuc 1606 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_func2E[1] = (gpio.log[1] ^ 2) << 12; fuc 1609 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_gpiotrig = ramfuc_reg(0x00d604); fuc 1611 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x132020 = ramfuc_reg(0x132020); fuc 1612 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x132028 = ramfuc_reg(0x132028); fuc 1613 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x132024 = ramfuc_reg(0x132024); fuc 1614 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x132030 = ramfuc_reg(0x132030); fuc 1615 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x132034 = ramfuc_reg(0x132034); fuc 1616 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x132000 = ramfuc_reg(0x132000); fuc 1617 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x132004 = ramfuc_reg(0x132004); fuc 1618 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x132040 = ramfuc_reg(0x132040); fuc 1620 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f248 = ramfuc_reg(0x10f248); fuc 1621 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f290 = ramfuc_reg(0x10f290); fuc 1622 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f294 = ramfuc_reg(0x10f294); fuc 1623 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f298 = ramfuc_reg(0x10f298); fuc 1624 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f29c = ramfuc_reg(0x10f29c); fuc 1625 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f2a0 = ramfuc_reg(0x10f2a0); fuc 1626 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f2a4 = ramfuc_reg(0x10f2a4); fuc 1627 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f2a8 = ramfuc_reg(0x10f2a8); fuc 1628 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f2ac = ramfuc_reg(0x10f2ac); fuc 1629 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f2cc = ramfuc_reg(0x10f2cc); fuc 1630 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f2e8 = ramfuc_reg(0x10f2e8); fuc 1631 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f250 = ramfuc_reg(0x10f250); fuc 1632 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f24c = ramfuc_reg(0x10f24c); fuc 1633 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10fec4 = ramfuc_reg(0x10fec4); fuc 1634 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10fec8 = ramfuc_reg(0x10fec8); fuc 1635 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f604 = ramfuc_reg(0x10f604); fuc 1636 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f614 = ramfuc_reg(0x10f614); fuc 1637 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f610 = ramfuc_reg(0x10f610); fuc 1638 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x100770 = ramfuc_reg(0x100770); fuc 1639 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x100778 = ramfuc_reg(0x100778); fuc 1640 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f224 = ramfuc_reg(0x10f224); fuc 1642 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f870 = ramfuc_reg(0x10f870); fuc 1643 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f698 = ramfuc_reg(0x10f698); fuc 1644 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f694 = ramfuc_reg(0x10f694); fuc 1645 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f6b8 = ramfuc_reg(0x10f6b8); fuc 1646 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f808 = ramfuc_reg(0x10f808); fuc 1647 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f670 = ramfuc_reg(0x10f670); fuc 1648 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f60c = ramfuc_reg(0x10f60c); fuc 1649 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f830 = ramfuc_reg(0x10f830); fuc 1650 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x1373ec = ramfuc_reg(0x1373ec); fuc 1651 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f800 = ramfuc_reg(0x10f800); fuc 1652 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f82c = ramfuc_reg(0x10f82c); fuc 1654 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f978 = ramfuc_reg(0x10f978); fuc 1655 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f910 = ramfuc_reg(0x10f910); fuc 1656 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f914 = ramfuc_reg(0x10f914); fuc 1660 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[0] = ramfuc_reg(0x10f300); fuc 1661 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[1] = ramfuc_reg(0x10f330); fuc 1662 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[2] = ramfuc_reg(0x10f334); fuc 1663 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[3] = ramfuc_reg(0x10f338); fuc 1664 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[4] = ramfuc_reg(0x10f33c); fuc 1665 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[5] = ramfuc_reg(0x10f340); fuc 1666 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[6] = ramfuc_reg(0x10f344); fuc 1667 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[7] = ramfuc_reg(0x10f348); fuc 1668 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[8] = ramfuc_reg(0x10f354); fuc 1669 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[15] = ramfuc_reg(0x10f34c); fuc 1672 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[0] = ramfuc_reg(0x10f300); fuc 1673 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[1] = ramfuc_reg(0x10f304); fuc 1674 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[2] = ramfuc_reg(0x10f320); fuc 1680 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x62c000 = ramfuc_reg(0x62c000); fuc 1681 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f200 = ramfuc_reg(0x10f200); fuc 1682 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f210 = ramfuc_reg(0x10f210); fuc 1683 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f310 = ramfuc_reg(0x10f310); fuc 1684 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f314 = ramfuc_reg(0x10f314); fuc 1685 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f318 = ramfuc_reg(0x10f318); fuc 1686 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f090 = ramfuc_reg(0x10f090); fuc 1687 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f69c = ramfuc_reg(0x10f69c); fuc 1688 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f824 = ramfuc_reg(0x10f824); fuc 1689 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x1373f0 = ramfuc_reg(0x1373f0); fuc 1690 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x1373f4 = ramfuc_reg(0x1373f4); fuc 1691 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x137320 = ramfuc_reg(0x137320); fuc 1692 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f65c = ramfuc_reg(0x10f65c); fuc 1693 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f6bc = ramfuc_reg(0x10f6bc); fuc 1694 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x100710 = ramfuc_reg(0x100710); fuc 1695 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x100750 = ramfuc_reg(0x100750); fuc 95 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct gt215_ramfuc fuc; fuc 157 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct gt215_ramfuc *fuc = &ram->fuc; fuc 207 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c r1700 = ram_rd32(fuc, 0x001700); fuc 209 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x100200, 0x00000800, 0x00000000); fuc 210 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x611200, 0x3300); fuc 211 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wait_vblank(fuc); fuc 212 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wait(fuc, 0x611200, 0x00000003, 0x00000000, 500000); fuc 213 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x001610, 0x00000083, 0x00000003); fuc 214 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x100080, 0x00000020, 0x00000000); fuc 215 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x10f804, 0x80000000, 0x00000000); fuc 216 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x001700, 0x00000000); fuc 218 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_train(fuc); fuc 221 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x10f804, 0x80000000, 0x80000000); fuc 222 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x10053c, 0x0); fuc 223 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x100720, train->r_100720); fuc 224 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x1111e0, train->r_1111e0); fuc 225 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x111400, train->r_111400); fuc 226 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_nuke(fuc, 0x100080); fuc 227 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x100080, 0x00000020, 0x00000020); fuc 228 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_nsec(fuc, 1000); fuc 230 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x001700, r1700); fuc 231 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x001610, 0x00000083, 0x00000080); fuc 232 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x611200, 0x3330); fuc 233 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x100200, 0x00000800, 0x00000800); fuc 235 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_exec(fuc, true); fuc 238 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_exec(fuc, true); fuc 424 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c nvkm_sddr2_dll_reset(struct gt215_ramfuc *fuc) fuc 426 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, mr[0], 0x100, 0x100); fuc 427 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_nsec(fuc, 1000); fuc 428 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, mr[0], 0x100, 0x000); fuc 429 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_nsec(fuc, 1000); fuc 433 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c nvkm_sddr3_dll_disable(struct gt215_ramfuc *fuc, u32 *mr) fuc 435 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c u32 mr1_old = ram_rd32(fuc, mr[1]); fuc 438 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x1002d4, 0x00000001); fuc 439 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, mr[1], mr[1]); fuc 440 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_nsec(fuc, 1000); fuc 445 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c nvkm_gddr3_dll_disable(struct gt215_ramfuc *fuc, u32 *mr) fuc 447 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c u32 mr1_old = ram_rd32(fuc, mr[1]); fuc 450 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, mr[1], mr[1]); fuc 451 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_nsec(fuc, 1000); fuc 456 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_ram_lock_pll(struct gt215_ramfuc *fuc, struct gt215_clk_info *mclk) fuc 458 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x004004, mclk->pll); fuc 459 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004000, 0x00000001, 0x00000001); fuc 460 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004000, 0x00000010, 0x00000000); fuc 461 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wait(fuc, 0x004000, 0x00020000, 0x00020000, 64000); fuc 462 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004000, 0x00000010, 0x00000010); fuc 466 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_ram_gpio(struct gt215_ramfuc *fuc, u8 tag, u32 val) fuc 468 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct nvkm_gpio *gpio = fuc->base.fb->subdev.device->gpio; fuc 480 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gpio_val = ram_rd32(fuc, gpio[reg]); fuc 486 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, gpio[reg], (0x3 << sh), ((val | 0x2) << sh)); fuc 487 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_nsec(fuc, 20000); fuc 495 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct gt215_ramfuc *fuc = &ram->fuc; fuc 559 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ret = ram_init(fuc, ram->base.fb); fuc 564 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->base.mr[0] = ram_rd32(fuc, mr[0]); fuc 565 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->base.mr[1] = ram_rd32(fuc, mr[1]); fuc 566 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->base.mr[2] = ram_rd32(fuc, mr[2]); fuc 601 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ctrl = ram_rd32(fuc, 0x004000); fuc 606 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x111104, 0x00000600, 0x00000000); fuc 608 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x111100, 0x40000000, 0x40000000); fuc 609 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x111104, 0x00000180, 0x00000000); fuc 612 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x100200, 0x00000800, 0x00000000); fuc 616 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004128, 0x003f3141, mclk.clk | 0x00000101); fuc 617 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_ram_lock_pll(fuc, &mclk); fuc 621 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wait_vblank(fuc); fuc 622 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x611200, 0x3300); fuc 623 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x002504, 0x1, 0x1); fuc 624 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_nsec(fuc, 10000); fuc 625 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wait(fuc, 0x002504, 0x10, 0x10, 20000); /* XXX: or longer? */ fuc 626 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_block(fuc); fuc 627 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_nsec(fuc, 2000); fuc 631 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x111100, 0x04020000, 0x00020000); fuc 633 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x111100, 0x04020000, 0x04020000); fuc 639 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c nvkm_sddr3_dll_disable(fuc, ram->base.mr); fuc 642 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c nvkm_gddr3_dll_disable(fuc, ram->base.mr); fuc 647 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_ram_gpio(fuc, 0x2e, 1); fuc 650 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x1002d4, 0x00000001); fuc 651 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x1002d0, 0x00000001); fuc 652 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x1002d0, 0x00000001); fuc 653 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x100210, 0x00000000); fuc 654 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x1002dc, 0x00000001); fuc 655 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_nsec(fuc, 2000); fuc 658 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x100700, 0x00000006, 0x00000006); fuc 664 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c data = ram_rd32(fuc, 0x004000) & 0x9; fuc 667 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004000, 0x8, 0x8); fuc 669 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004000, 0x1, 0x0); fuc 671 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_ram_gpio(fuc, 0x18, !next->bios.ramcfg_FBVDDQ); fuc 674 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004000, 0x1, 0x1); fuc 686 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004000, 0x00000004, 0x00000004); fuc 687 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004168, 0x003f3141, 0x00083101); fuc 688 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004000, 0x00000008, 0x00000008); fuc 689 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x1110e0, 0x00088000, 0x00088000); fuc 690 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x004018, 0x00001000); fuc 691 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_ram_lock_pll(fuc, &mclk); fuc 695 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004000, 0x00000105, 0x00000105); fuc 696 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x004018, 0x00001000 | r004018); fuc 697 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x100da0, r100da0); fuc 699 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004168, 0x003f3141, mclk.clk | 0x00000101); fuc 700 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004000, 0x00000108, 0x00000008); fuc 701 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x1110e0, 0x00088000, 0x00088000); fuc 702 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x004018, 0x00009000 | r004018); fuc 703 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x100da0, r100da0); fuc 705 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_nsec(fuc, 20000); fuc 708 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x1005a0, next->bios.ramcfg_10_06 << 16 | fuc 711 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x1005a4, next->bios.ramcfg_10_08 << 8 | fuc 713 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x10f804, next->bios.ramcfg_10_09_f0 << 20 | fuc 717 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x10053c, 0x00001000, 0x00000000); fuc 720 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x100080, 0x1020); fuc 721 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x111400, 0xffffffff, train->r_111400); fuc 722 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x1111e0, 0xffffffff, train->r_1111e0); fuc 723 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x100720, 0xffffffff, train->r_100720); fuc 725 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x10053c, 0x00001000, 0x00001000); fuc 726 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x10f804, 0x80000000, 0x00000000); fuc 727 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x100760, 0x22222222, r100760); fuc 728 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x1007a0, 0x22222222, r100760); fuc 729 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x1007e0, 0x22222222, r100760); fuc 733 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x100700, 0x00000006, 0x00000000); fuc 738 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x1110e0, 0x00088000, 0x00011000); fuc 739 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004000, 0x00000008, 0x00000000); fuc 742 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x1002dc, 0x00000000); fuc 743 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x1002d4, 0x00000001); fuc 744 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x100210, 0x80000000); fuc 745 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_nsec(fuc, 2000); fuc 749 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (ram_rd32(fuc, mr[i]) != ram->base.mr[i]) { fuc 750 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, mr[i], ram->base.mr[i]); fuc 751 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_nsec(fuc, 1000); fuc 755 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x100220[3], timing[3]); fuc 756 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x100220[1], timing[1]); fuc 757 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x100220[6], timing[6]); fuc 758 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x100220[7], timing[7]); fuc 759 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x100220[2], timing[2]); fuc 760 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x100220[4], timing[4]); fuc 761 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x100220[5], timing[5]); fuc 762 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x100220[0], timing[0]); fuc 763 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x100220[8], timing[8]); fuc 766 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x100200, 0x00001000, !next->bios.ramcfg_10_02_08 << 12); fuc 769 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c unk714 = ram_rd32(fuc, 0x100714) & ~0xf0000130; fuc 770 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c unk718 = ram_rd32(fuc, 0x100718) & ~0x00000100; fuc 771 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c unk71c = ram_rd32(fuc, 0x10071c) & ~0x00000100; fuc 772 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c r111100 = ram_rd32(fuc, 0x111100) & ~0x3a800000; fuc 829 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x100714, 0xffffffff, unk714); fuc 830 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x10071c, 0xffffffff, unk71c); fuc 831 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x100718, 0xffffffff, unk718); fuc 832 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x111100, 0xffffffff, r111100); fuc 835 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_ram_gpio(fuc, 0x2e, 0); fuc 839 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c nvkm_sddr2_dll_reset(fuc); fuc 842 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_nsec(fuc, 31000); fuc 844 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_nsec(fuc, 14000); fuc 848 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x100264, 0x1); fuc 849 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_nsec(fuc, 2000); fuc 852 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_nuke(fuc, 0x100700); fuc 853 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x100700, 0x01000000, 0x01000000); fuc 854 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x100700, 0x01000000, 0x00000000); fuc 857 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_unblock(fuc); fuc 858 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x611200, 0x3330); fuc 862 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x100200, 0x00000800, 0x00000800); fuc 864 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x111104, 0x00000180, 0x00000180); fuc 865 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x111100, 0x40000000, 0x00000000); fuc 867 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x111104, 0x00000600, 0x00000600); fuc 871 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004168, 0x00000001, 0x00000000); fuc 872 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004168, 0x00000100, 0x00000000); fuc 874 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004000, 0x00000001, 0x00000000); fuc 875 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004128, 0x00000001, 0x00000000); fuc 876 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x004128, 0x00000100, 0x00000000); fuc 886 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct gt215_ramfuc *fuc = &ram->fuc; fuc 893 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_exec(fuc, true); fuc 902 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_exec(fuc, false); fuc 911 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_exec(&ram->fuc, false); fuc 953 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x001610 = ramfuc_reg(0x001610); fuc 954 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x001700 = ramfuc_reg(0x001700); fuc 955 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x002504 = ramfuc_reg(0x002504); fuc 956 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x004000 = ramfuc_reg(0x004000); fuc 957 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x004004 = ramfuc_reg(0x004004); fuc 958 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x004018 = ramfuc_reg(0x004018); fuc 959 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x004128 = ramfuc_reg(0x004128); fuc 960 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x004168 = ramfuc_reg(0x004168); fuc 961 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100080 = ramfuc_reg(0x100080); fuc 962 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100200 = ramfuc_reg(0x100200); fuc 963 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100210 = ramfuc_reg(0x100210); fuc 965 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100220[i] = ramfuc_reg(0x100220 + (i * 4)); fuc 966 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100264 = ramfuc_reg(0x100264); fuc 967 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x1002d0 = ramfuc_reg(0x1002d0); fuc 968 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x1002d4 = ramfuc_reg(0x1002d4); fuc 969 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x1002dc = ramfuc_reg(0x1002dc); fuc 970 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x10053c = ramfuc_reg(0x10053c); fuc 971 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x1005a0 = ramfuc_reg(0x1005a0); fuc 972 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x1005a4 = ramfuc_reg(0x1005a4); fuc 973 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100700 = ramfuc_reg(0x100700); fuc 974 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100714 = ramfuc_reg(0x100714); fuc 975 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100718 = ramfuc_reg(0x100718); fuc 976 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x10071c = ramfuc_reg(0x10071c); fuc 977 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100720 = ramfuc_reg(0x100720); fuc 978 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100760 = ramfuc_stride(0x100760, 4, ram->base.part_mask); fuc 979 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x1007a0 = ramfuc_stride(0x1007a0, 4, ram->base.part_mask); fuc 980 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x1007e0 = ramfuc_stride(0x1007e0, 4, ram->base.part_mask); fuc 981 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100da0 = ramfuc_stride(0x100da0, 4, ram->base.part_mask); fuc 982 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x10f804 = ramfuc_reg(0x10f804); fuc 983 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x1110e0 = ramfuc_stride(0x1110e0, 4, ram->base.part_mask); fuc 984 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x111100 = ramfuc_reg(0x111100); fuc 985 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x111104 = ramfuc_reg(0x111104); fuc 986 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x1111e0 = ramfuc_reg(0x1111e0); fuc 987 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x111400 = ramfuc_reg(0x111400); fuc 988 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x611200 = ramfuc_reg(0x611200); fuc 991 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_mr[0] = ramfuc_reg2(0x1002c0, 0x1002c8); fuc 992 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_mr[1] = ramfuc_reg2(0x1002c4, 0x1002cc); fuc 993 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_mr[2] = ramfuc_reg2(0x1002e0, 0x1002e8); fuc 994 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_mr[3] = ramfuc_reg2(0x1002e4, 0x1002ec); fuc 996 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_mr[0] = ramfuc_reg(0x1002c0); fuc 997 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_mr[1] = ramfuc_reg(0x1002c4); fuc 998 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_mr[2] = ramfuc_reg(0x1002e0); fuc 999 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_mr[3] = ramfuc_reg(0x1002e4); fuc 1001 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_gpio[0] = ramfuc_reg(0x00e104); fuc 1002 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_gpio[1] = ramfuc_reg(0x00e108); fuc 1003 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_gpio[2] = ramfuc_reg(0x00e120); fuc 1004 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_gpio[3] = ramfuc_reg(0x00e124);