Lines Matching refs:device
255 nv50_grctx_fill(struct nvkm_device *device, struct nvkm_gpuobj *mem) in nv50_grctx_fill() argument
258 .device = device, in nv50_grctx_fill()
265 nv50_grctx_init(struct nvkm_device *device, u32 *size) in nv50_grctx_init() argument
269 .device = device, in nv50_grctx_init()
279 nvkm_wr32(device, 0x400324, 0); in nv50_grctx_init()
281 nvkm_wr32(device, 0x400328, ctxprog[i]); in nv50_grctx_init()
298 struct nvkm_device *device = ctx->device; in nv50_gr_construct_mmio() local
301 u32 units = nvkm_rd32(device, 0x1540); in nv50_gr_construct_mmio()
307 if (device->chipset == 0x50) { in nv50_gr_construct_mmio()
314 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_mmio()
318 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
320 else if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
325 if (device->chipset >= 0xa0) in nv50_gr_construct_mmio()
327 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_mmio()
341 if (device->chipset < 0xa0) { in nv50_gr_construct_mmio()
344 } else if (!IS_NVA3F(device->chipset)) { in nv50_gr_construct_mmio()
355 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
365 if (device->chipset == 0x50) { in nv50_gr_construct_mmio()
368 } else if (device->chipset < 0xa0) { in nv50_gr_construct_mmio()
378 switch (device->chipset) { in nv50_gr_construct_mmio()
407 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
415 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
420 if (device->chipset != 0x50) in nv50_gr_construct_mmio()
423 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
427 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
429 else if (!IS_NVA3F(device->chipset)) in nv50_gr_construct_mmio()
440 if (device->chipset >= 0xa0) { in nv50_gr_construct_mmio()
447 switch (device->chipset) { in nv50_gr_construct_mmio()
476 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
480 if (device->chipset < 0x90) { in nv50_gr_construct_mmio()
487 if (device->chipset == 0x98) in nv50_gr_construct_mmio()
491 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_mmio()
500 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
502 else if (device->chipset != 0xa5) in nv50_gr_construct_mmio()
508 if (device->chipset == 0x50) { in nv50_gr_construct_mmio()
510 } else if (device->chipset < 0xa0) { in nv50_gr_construct_mmio()
517 if (device->chipset != 0xa5) in nv50_gr_construct_mmio()
524 if (device->chipset != 0xa5) in nv50_gr_construct_mmio()
528 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
534 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
536 else if (!IS_NVA3F(device->chipset)) in nv50_gr_construct_mmio()
546 if (device->chipset < 0x90) in nv50_gr_construct_mmio()
548 else if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
553 if (device->chipset >= 0xa0) { in nv50_gr_construct_mmio()
559 if (device->chipset < 0xa0) { in nv50_gr_construct_mmio()
564 if (device->chipset == 0x98) in nv50_gr_construct_mmio()
567 if (device->chipset < 0x90) in nv50_gr_construct_mmio()
569 else if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
572 if (device->fb->ram->type != NVKM_RAM_TYPE_GDDR5) in nv50_gr_construct_mmio()
583 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
587 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
596 for (j = 0; j < (device->chipset < 0xa0 ? 2 : 4); j++) { in nv50_gr_construct_mmio()
598 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
607 switch (device->chipset) { in nv50_gr_construct_mmio()
638 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
644 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
648 if (device->chipset >= 0xa0) in nv50_gr_construct_mmio()
652 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
656 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
658 else if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
660 else if (!IS_NVA3F(device->chipset)) in nv50_gr_construct_mmio()
665 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
669 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
671 else if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
676 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
681 if (device->chipset < 0xa0) { in nv50_gr_construct_mmio()
684 } else if (!IS_NVA3F(device->chipset)) { in nv50_gr_construct_mmio()
693 if (device->chipset == 0x84) in nv50_gr_construct_mmio()
698 if (device->chipset == 0xa3) in nv50_gr_construct_mmio()
707 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
715 if (device->chipset == 0x50 || IS_NVAAF(device->chipset)) in nv50_gr_construct_mmio()
719 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
725 if (device->chipset >= 0xa0) { in nv50_gr_construct_mmio()
727 if (!IS_NVA3F(device->chipset)) in nv50_gr_construct_mmio()
734 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
741 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
746 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
748 else if (device->chipset == 0xa5) in nv50_gr_construct_mmio()
750 else if (device->chipset == 0xa8) in nv50_gr_construct_mmio()
752 else if (device->chipset == 0xac) in nv50_gr_construct_mmio()
756 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
758 else if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
763 if (device->chipset == 0x50) { in nv50_gr_construct_mmio()
772 } else if (device->chipset < 0xa0) { in nv50_gr_construct_mmio()
796 struct nvkm_device *device = ctx->device; in nv50_gr_construct_mmio_ddata() local
810 if (device->chipset >= 0x94) in nv50_gr_construct_mmio_ddata()
839 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_mmio_ddata()
851 if (device->chipset == 0x50) { in nv50_gr_construct_mmio_ddata()
911 if (device->chipset == 0x50) { in nv50_gr_construct_mmio_ddata()
945 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_mmio_ddata()
952 if (device->chipset != 0x50) in nv50_gr_construct_mmio_ddata()
956 if (device->chipset == 0x50) { in nv50_gr_construct_mmio_ddata()
982 if (device->chipset != 0x50) in nv50_gr_construct_mmio_ddata()
990 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_mmio_ddata()
994 if (device->chipset != 0x50) in nv50_gr_construct_mmio_ddata()
998 if (device->chipset != 0x50) in nv50_gr_construct_mmio_ddata()
1010 if (device->chipset >= 0xa0) in nv50_gr_construct_mmio_ddata()
1017 if (device->chipset != 0x50) in nv50_gr_construct_mmio_ddata()
1019 if (device->chipset >= 0xa0) { in nv50_gr_construct_mmio_ddata()
1030 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_mmio_ddata()
1033 if (device->chipset >= 0xa0) in nv50_gr_construct_mmio_ddata()
1036 if (device->chipset >= 0xa0) in nv50_gr_construct_mmio_ddata()
1043 if (device->chipset != 0x50) { in nv50_gr_construct_mmio_ddata()
1058 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_mmio_ddata()
1061 if (device->chipset < 0xa0) { in nv50_gr_construct_mmio_ddata()
1108 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_mmio_ddata()
1190 struct nvkm_device *device = ctx->device; in nv50_gr_construct_xfer1() local
1194 u32 units = nvkm_rd32(device, 0x1540); in nv50_gr_construct_xfer1()
1199 if (device->chipset < 0xa0) { in nv50_gr_construct_xfer1()
1269 if (device->chipset == 0xa0) in nv50_gr_construct_xfer1()
1316 if (device->chipset == 0xa0) { in nv50_gr_construct_xfer1()
1354 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_dispatch() local
1356 if (device->chipset == 0x50) in nv50_gr_construct_gene_dispatch()
1358 else if (!IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_dispatch()
1364 if (device->chipset == 0x50) in nv50_gr_construct_gene_dispatch()
1371 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_dispatch()
1383 if (device->chipset < 0x90) in nv50_gr_construct_gene_dispatch()
1396 if (device->chipset == 0x50) in nv50_gr_construct_gene_dispatch()
1398 else if (device->chipset < 0xa0) in nv50_gr_construct_gene_dispatch()
1410 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_m2mf() local
1412 if (device->chipset < 0x92 || device->chipset == 0x98) in nv50_gr_construct_gene_m2mf()
1461 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_ccache() local
1464 switch (device->chipset) { in nv50_gr_construct_gene_ccache()
1529 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_unk10xx() local
1539 if (device->chipset == 0x50) in nv50_gr_construct_gene_unk10xx()
1546 switch (device->chipset) { in nv50_gr_construct_gene_unk10xx()
1589 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_unk34xx() local
1603 if (device->chipset >= 0xa0) in nv50_gr_construct_gene_unk34xx()
1605 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_gene_unk34xx()
1614 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_unk14xx() local
1616 if (device->chipset != 0x50) { in nv50_gr_construct_gene_unk14xx()
1632 if (device->chipset != 0x50) in nv50_gr_construct_gene_unk14xx()
1639 if (device->chipset != 0x50) in nv50_gr_construct_gene_unk14xx()
1658 if (device->chipset == 0x50) in nv50_gr_construct_gene_unk14xx()
1693 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_unk14xx()
1697 if (device->chipset != 0x50) { in nv50_gr_construct_gene_unk14xx()
1725 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_zcull() local
1763 if (device->chipset != 0x50) in nv50_gr_construct_gene_zcull()
1778 if (device->chipset != 0x50) in nv50_gr_construct_gene_zcull()
1806 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_unk24xx() local
1818 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_gene_unk24xx()
1849 if (device->chipset != 0x50) in nv50_gr_construct_gene_unk24xx()
1858 if (device->chipset >= 0xa0) in nv50_gr_construct_gene_unk24xx()
1882 if (device->chipset != 0x50) in nv50_gr_construct_gene_unk24xx()
1889 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_vfetch() local
1892 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_vfetch()
1895 if (device->chipset >= 0xa0) { in nv50_gr_construct_gene_vfetch()
1912 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_vfetch()
1914 else if (device->chipset >= 0xa0) in nv50_gr_construct_gene_vfetch()
1933 if (device->chipset == 0x50) in nv50_gr_construct_gene_vfetch()
1937 if (device->chipset == 0xa8) in nv50_gr_construct_gene_vfetch()
1945 if (device->chipset > 0x50 && device->chipset < 0xa0) in nv50_gr_construct_gene_vfetch()
1951 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_gene_vfetch()
1964 if (device->chipset >= 0xa0) in nv50_gr_construct_gene_vfetch()
2002 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_gene_vfetch()
2007 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_vfetch()
2014 if (device->chipset < 0xa0) { in nv50_gr_construct_gene_vfetch()
2018 } else if (!IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_vfetch()
2030 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_vfetch()
2038 if (device->chipset < 0xa0) in nv50_gr_construct_gene_vfetch()
2040 else if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_vfetch()
2046 if (device->chipset == 0xa0) in nv50_gr_construct_gene_vfetch()
2052 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_vfetch()
2066 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_vfetch()
2075 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_eng2d() local
2081 if (device->chipset < 0xa0) { in nv50_gr_construct_gene_eng2d()
2137 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_csched() local
2162 switch (device->chipset) { in nv50_gr_construct_gene_csched()
2236 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_unk1cxx() local
2266 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_unk1cxx()
2268 else if (device->chipset >= 0xa0) in nv50_gr_construct_gene_unk1cxx()
2282 if (device->chipset != 0x50) { in nv50_gr_construct_gene_unk1cxx()
2286 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_unk1cxx()
2305 if (device->chipset != 0x50) in nv50_gr_construct_gene_unk1cxx()
2307 if (device->chipset < 0xa0) in nv50_gr_construct_gene_unk1cxx()
2309 else if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_unk1cxx()
2317 if (device->chipset != 0x50) { in nv50_gr_construct_gene_unk1cxx()
2323 if (device->chipset < 0xa0) in nv50_gr_construct_gene_unk1cxx()
2332 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_strmout() local
2336 if (device->chipset >= 0xa0) { in nv50_gr_construct_gene_strmout()
2343 if (device->chipset == 0x50) in nv50_gr_construct_gene_strmout()
2354 if (device->chipset >= 0xa0) { in nv50_gr_construct_gene_strmout()
2374 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_ropm1() local
2379 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_ropm1()
2387 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_ropm2() local
2405 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_ropm2()
2413 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_ropc() local
2415 if (device->chipset == 0x50) { in nv50_gr_construct_gene_ropc()
2417 } else if (!IS_NVA3F(device->chipset)) { in nv50_gr_construct_gene_ropc()
2435 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_ropc()
2442 if (device->chipset >= 0xa0 && !IS_NVAAF(device->chipset)) in nv50_gr_construct_gene_ropc()
2451 …if (device->chipset == 0x86 || device->chipset == 0x92 || device->chipset == 0x98 || device->chips… in nv50_gr_construct_gene_ropc()
2457 if (device->chipset != 0xa0) { in nv50_gr_construct_gene_ropc()
2458 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_ropc()
2536 if (device->chipset >= 0xa0) { in nv50_gr_construct_gene_ropc()
2553 if (device->chipset != 0x50) { in nv50_gr_construct_gene_ropc()
2570 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_gene_ropc()
2589 } else if (device->chipset >= 0xa0) { in nv50_gr_construct_gene_ropc()
2603 if (device->chipset >= 0xa0) in nv50_gr_construct_gene_ropc()
2617 if (device->chipset >= 0xa0) in nv50_gr_construct_gene_ropc()
2619 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_gene_ropc()
2648 struct nvkm_device *device = ctx->device; in nv50_gr_construct_xfer_unk84xx() local
2650 switch (device->chipset) { in nv50_gr_construct_xfer_unk84xx()
2670 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_unk84xx()
2672 else if (device->chipset >= 0xa0) in nv50_gr_construct_xfer_unk84xx()
2679 if (device->chipset >= 0xa0) in nv50_gr_construct_xfer_unk84xx()
2722 if (device->chipset == 0x94 || device->chipset == 0x96) in nv50_gr_construct_xfer_unk84xx()
2724 else if (device->chipset < 0xa0) in nv50_gr_construct_xfer_unk84xx()
2726 else if (!IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_unk84xx()
2740 struct nvkm_device *device = ctx->device; in nv50_gr_construct_xfer_tprop() local
2742 if (device->chipset == 0x50) { in nv50_gr_construct_xfer_tprop()
2745 } else if (!IS_NVA3F(device->chipset)) { in nv50_gr_construct_xfer_tprop()
2755 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_tprop()
2789 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_xfer_tprop()
2793 } else if (device->chipset >= 0xa0) { in nv50_gr_construct_xfer_tprop()
2807 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_xfer_tprop()
2835 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_tprop()
2859 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_tprop()
2861 if (device->chipset == 0x50) in nv50_gr_construct_xfer_tprop()
2896 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_tprop()
2934 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_tprop()
2963 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_tprop()
2977 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_xfer_tprop()
2984 if (device->chipset >= 0xa0) in nv50_gr_construct_xfer_tprop()
3001 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_xfer_tprop()
3006 if (device->chipset >= 0xa0) { in nv50_gr_construct_xfer_tprop()
3016 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_tprop()
3030 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_xfer_tprop()
3040 struct nvkm_device *device = ctx->device; in nv50_gr_construct_xfer_tex() local
3042 if (device->chipset != 0x50) in nv50_gr_construct_xfer_tex()
3048 if (device->chipset == 0x50) in nv50_gr_construct_xfer_tex()
3060 if (device->chipset == 0x50) { in nv50_gr_construct_xfer_tex()
3066 } else if (!IS_NVAAF(device->chipset)) { in nv50_gr_construct_xfer_tex()
3086 struct nvkm_device *device = ctx->device; in nv50_gr_construct_xfer_unk8cxx() local
3098 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_unk8cxx()
3125 struct nvkm_device *device = ctx->device; in nv50_gr_construct_xfer_tp() local
3126 if (device->chipset < 0xa0) { in nv50_gr_construct_xfer_tp()
3142 struct nvkm_device *device = ctx->device; in nv50_gr_construct_xfer_mpc() local
3144 switch (device->chipset) { in nv50_gr_construct_xfer_mpc()
3171 if (device->chipset >= 0xa0) in nv50_gr_construct_xfer_mpc()
3176 …if (device->chipset == 0x86 || device->chipset == 0x98 || device->chipset == 0xa8 || IS_NVAAF(devi… in nv50_gr_construct_xfer_mpc()
3183 if (device->chipset == 0x50) in nv50_gr_construct_xfer_mpc()
3189 if (IS_NVAAF(device->chipset)) in nv50_gr_construct_xfer_mpc()
3191 else if (device->chipset >= 0xa0) in nv50_gr_construct_xfer_mpc()
3198 if (device->chipset >= 0xa0) { in nv50_gr_construct_xfer_mpc()
3212 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_mpc()
3227 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_mpc()
3242 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_xfer_mpc()
3257 if (device->chipset == 0x50) in nv50_gr_construct_xfer_mpc()
3259 else if (device->chipset < 0x94) in nv50_gr_construct_xfer_mpc()
3261 else if (device->chipset == 0x98 || device->chipset == 0xaa) in nv50_gr_construct_xfer_mpc()
3274 struct nvkm_device *device = ctx->device; in nv50_gr_construct_xfer2() local
3277 u32 units = nvkm_rd32(device, 0x1540); in nv50_gr_construct_xfer2()
3282 if (device->chipset < 0xa0) { in nv50_gr_construct_xfer2()