Lines Matching refs:device

256 nv50_grctx_fill(struct nvkm_device *device, struct nvkm_gpuobj *mem)  in nv50_grctx_fill()  argument
259 .device = device, in nv50_grctx_fill()
266 nv50_grctx_init(struct nvkm_device *device, u32 *size) in nv50_grctx_init() argument
270 .device = device, in nv50_grctx_init()
280 nv_wr32(device, 0x400324, 0); in nv50_grctx_init()
282 nv_wr32(device, 0x400328, ctxprog[i]); in nv50_grctx_init()
299 struct nvkm_device *device = ctx->device; in nv50_gr_construct_mmio() local
302 u32 units = nv_rd32 (ctx->device, 0x1540); in nv50_gr_construct_mmio()
308 if (device->chipset == 0x50) { in nv50_gr_construct_mmio()
315 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_mmio()
319 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
321 else if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
326 if (device->chipset >= 0xa0) in nv50_gr_construct_mmio()
328 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_mmio()
342 if (device->chipset < 0xa0) { in nv50_gr_construct_mmio()
345 } else if (!IS_NVA3F(device->chipset)) { in nv50_gr_construct_mmio()
356 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
366 if (device->chipset == 0x50) { in nv50_gr_construct_mmio()
369 } else if (device->chipset < 0xa0) { in nv50_gr_construct_mmio()
379 switch (device->chipset) { in nv50_gr_construct_mmio()
408 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
416 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
421 if (device->chipset != 0x50) in nv50_gr_construct_mmio()
424 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
428 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
430 else if (!IS_NVA3F(device->chipset)) in nv50_gr_construct_mmio()
441 if (device->chipset >= 0xa0) { in nv50_gr_construct_mmio()
448 switch (device->chipset) { in nv50_gr_construct_mmio()
477 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
481 if (device->chipset < 0x90) { in nv50_gr_construct_mmio()
488 if (device->chipset == 0x98) in nv50_gr_construct_mmio()
492 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_mmio()
501 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
503 else if (device->chipset != 0xa5) in nv50_gr_construct_mmio()
509 if (device->chipset == 0x50) { in nv50_gr_construct_mmio()
511 } else if (device->chipset < 0xa0) { in nv50_gr_construct_mmio()
518 if (device->chipset != 0xa5) in nv50_gr_construct_mmio()
525 if (device->chipset != 0xa5) in nv50_gr_construct_mmio()
529 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
535 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
537 else if (!IS_NVA3F(device->chipset)) in nv50_gr_construct_mmio()
547 if (device->chipset < 0x90) in nv50_gr_construct_mmio()
549 else if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
554 if (device->chipset >= 0xa0) { in nv50_gr_construct_mmio()
560 if (device->chipset < 0xa0) { in nv50_gr_construct_mmio()
565 if (device->chipset == 0x98) in nv50_gr_construct_mmio()
568 if (device->chipset < 0x90) in nv50_gr_construct_mmio()
570 else if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
573 if (nvkm_fb(device)->ram->type != NV_MEM_TYPE_GDDR5) in nv50_gr_construct_mmio()
584 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
588 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
597 for (j = 0; j < (device->chipset < 0xa0 ? 2 : 4); j++) { in nv50_gr_construct_mmio()
599 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
608 switch (device->chipset) { in nv50_gr_construct_mmio()
639 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
645 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
649 if (device->chipset >= 0xa0) in nv50_gr_construct_mmio()
653 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
657 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
659 else if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
661 else if (!IS_NVA3F(device->chipset)) in nv50_gr_construct_mmio()
666 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
670 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
672 else if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
677 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
682 if (device->chipset < 0xa0) { in nv50_gr_construct_mmio()
685 } else if (!IS_NVA3F(device->chipset)) { in nv50_gr_construct_mmio()
694 if (device->chipset == 0x84) in nv50_gr_construct_mmio()
699 if (device->chipset == 0xa3) in nv50_gr_construct_mmio()
708 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
716 if (device->chipset == 0x50 || IS_NVAAF(device->chipset)) in nv50_gr_construct_mmio()
720 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
726 if (device->chipset >= 0xa0) { in nv50_gr_construct_mmio()
728 if (!IS_NVA3F(device->chipset)) in nv50_gr_construct_mmio()
735 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
742 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
747 if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
749 else if (device->chipset == 0xa5) in nv50_gr_construct_mmio()
751 else if (device->chipset == 0xa8) in nv50_gr_construct_mmio()
753 else if (device->chipset == 0xac) in nv50_gr_construct_mmio()
757 if (device->chipset == 0x50) in nv50_gr_construct_mmio()
759 else if (device->chipset < 0xa0) in nv50_gr_construct_mmio()
764 if (device->chipset == 0x50) { in nv50_gr_construct_mmio()
773 } 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()
1189 struct nvkm_device *device = ctx->device; in nv50_gr_construct_xfer1() local
1193 u32 units = nv_rd32 (ctx->device, 0x1540); in nv50_gr_construct_xfer1()
1198 if (device->chipset < 0xa0) { in nv50_gr_construct_xfer1()
1268 if (device->chipset == 0xa0) in nv50_gr_construct_xfer1()
1315 if (device->chipset == 0xa0) { in nv50_gr_construct_xfer1()
1353 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_dispatch() local
1355 if (device->chipset == 0x50) in nv50_gr_construct_gene_dispatch()
1357 else if (!IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_dispatch()
1363 if (device->chipset == 0x50) in nv50_gr_construct_gene_dispatch()
1370 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_dispatch()
1382 if (device->chipset < 0x90) in nv50_gr_construct_gene_dispatch()
1395 if (device->chipset == 0x50) in nv50_gr_construct_gene_dispatch()
1397 else if (device->chipset < 0xa0) in nv50_gr_construct_gene_dispatch()
1409 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_m2mf() local
1411 if (device->chipset < 0x92 || device->chipset == 0x98) in nv50_gr_construct_gene_m2mf()
1460 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_ccache() local
1463 switch (device->chipset) { in nv50_gr_construct_gene_ccache()
1528 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_unk10xx() local
1538 if (device->chipset == 0x50) in nv50_gr_construct_gene_unk10xx()
1545 switch (device->chipset) { in nv50_gr_construct_gene_unk10xx()
1588 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_unk34xx() local
1602 if (device->chipset >= 0xa0) in nv50_gr_construct_gene_unk34xx()
1604 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_gene_unk34xx()
1613 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_unk14xx() local
1615 if (device->chipset != 0x50) { in nv50_gr_construct_gene_unk14xx()
1631 if (device->chipset != 0x50) in nv50_gr_construct_gene_unk14xx()
1638 if (device->chipset != 0x50) in nv50_gr_construct_gene_unk14xx()
1657 if (device->chipset == 0x50) in nv50_gr_construct_gene_unk14xx()
1692 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_unk14xx()
1696 if (device->chipset != 0x50) { in nv50_gr_construct_gene_unk14xx()
1724 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_zcull() local
1762 if (device->chipset != 0x50) in nv50_gr_construct_gene_zcull()
1777 if (device->chipset != 0x50) in nv50_gr_construct_gene_zcull()
1805 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_unk24xx() local
1817 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_gene_unk24xx()
1848 if (device->chipset != 0x50) in nv50_gr_construct_gene_unk24xx()
1857 if (device->chipset >= 0xa0) in nv50_gr_construct_gene_unk24xx()
1881 if (device->chipset != 0x50) in nv50_gr_construct_gene_unk24xx()
1888 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_vfetch() local
1891 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_vfetch()
1894 if (device->chipset >= 0xa0) { in nv50_gr_construct_gene_vfetch()
1911 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_vfetch()
1913 else if (device->chipset >= 0xa0) in nv50_gr_construct_gene_vfetch()
1932 if (device->chipset == 0x50) in nv50_gr_construct_gene_vfetch()
1936 if (device->chipset == 0xa8) in nv50_gr_construct_gene_vfetch()
1944 if (device->chipset > 0x50 && device->chipset < 0xa0) in nv50_gr_construct_gene_vfetch()
1950 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_gene_vfetch()
1963 if (device->chipset >= 0xa0) in nv50_gr_construct_gene_vfetch()
2001 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_gene_vfetch()
2006 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_vfetch()
2013 if (device->chipset < 0xa0) { in nv50_gr_construct_gene_vfetch()
2017 } else if (!IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_vfetch()
2029 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_vfetch()
2037 if (device->chipset < 0xa0) in nv50_gr_construct_gene_vfetch()
2039 else if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_vfetch()
2045 if (device->chipset == 0xa0) in nv50_gr_construct_gene_vfetch()
2051 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_vfetch()
2065 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_vfetch()
2074 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_eng2d() local
2080 if (device->chipset < 0xa0) { in nv50_gr_construct_gene_eng2d()
2136 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_csched() local
2161 switch (device->chipset) { in nv50_gr_construct_gene_csched()
2235 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_unk1cxx() local
2265 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_unk1cxx()
2267 else if (device->chipset >= 0xa0) in nv50_gr_construct_gene_unk1cxx()
2281 if (device->chipset != 0x50) { in nv50_gr_construct_gene_unk1cxx()
2285 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_unk1cxx()
2304 if (device->chipset != 0x50) in nv50_gr_construct_gene_unk1cxx()
2306 if (device->chipset < 0xa0) in nv50_gr_construct_gene_unk1cxx()
2308 else if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_unk1cxx()
2316 if (device->chipset != 0x50) { in nv50_gr_construct_gene_unk1cxx()
2322 if (device->chipset < 0xa0) in nv50_gr_construct_gene_unk1cxx()
2331 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_strmout() local
2335 if (device->chipset >= 0xa0) { in nv50_gr_construct_gene_strmout()
2342 if (device->chipset == 0x50) in nv50_gr_construct_gene_strmout()
2353 if (device->chipset >= 0xa0) { in nv50_gr_construct_gene_strmout()
2373 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_ropm1() local
2378 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_ropm1()
2386 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_ropm2() local
2404 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_ropm2()
2412 struct nvkm_device *device = ctx->device; in nv50_gr_construct_gene_ropc() local
2414 if (device->chipset == 0x50) { in nv50_gr_construct_gene_ropc()
2416 } else if (!IS_NVA3F(device->chipset)) { in nv50_gr_construct_gene_ropc()
2434 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_ropc()
2441 if (device->chipset >= 0xa0 && !IS_NVAAF(device->chipset)) in nv50_gr_construct_gene_ropc()
2450 …if (device->chipset == 0x86 || device->chipset == 0x92 || device->chipset == 0x98 || device->chips… in nv50_gr_construct_gene_ropc()
2456 if (device->chipset != 0xa0) { in nv50_gr_construct_gene_ropc()
2457 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_gene_ropc()
2535 if (device->chipset >= 0xa0) { in nv50_gr_construct_gene_ropc()
2552 if (device->chipset != 0x50) { in nv50_gr_construct_gene_ropc()
2569 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_gene_ropc()
2588 } else if (device->chipset >= 0xa0) { in nv50_gr_construct_gene_ropc()
2602 if (device->chipset >= 0xa0) in nv50_gr_construct_gene_ropc()
2616 if (device->chipset >= 0xa0) in nv50_gr_construct_gene_ropc()
2618 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_gene_ropc()
2647 struct nvkm_device *device = ctx->device; in nv50_gr_construct_xfer_unk84xx() local
2649 switch (device->chipset) { in nv50_gr_construct_xfer_unk84xx()
2669 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_unk84xx()
2671 else if (device->chipset >= 0xa0) in nv50_gr_construct_xfer_unk84xx()
2678 if (device->chipset >= 0xa0) in nv50_gr_construct_xfer_unk84xx()
2721 if (device->chipset == 0x94 || device->chipset == 0x96) in nv50_gr_construct_xfer_unk84xx()
2723 else if (device->chipset < 0xa0) in nv50_gr_construct_xfer_unk84xx()
2725 else if (!IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_unk84xx()
2739 struct nvkm_device *device = ctx->device; in nv50_gr_construct_xfer_tprop() local
2741 if (device->chipset == 0x50) { in nv50_gr_construct_xfer_tprop()
2744 } else if (!IS_NVA3F(device->chipset)) { in nv50_gr_construct_xfer_tprop()
2754 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_tprop()
2788 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_xfer_tprop()
2792 } else if (device->chipset >= 0xa0) { in nv50_gr_construct_xfer_tprop()
2806 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_xfer_tprop()
2834 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_tprop()
2858 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_tprop()
2860 if (device->chipset == 0x50) in nv50_gr_construct_xfer_tprop()
2895 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_tprop()
2933 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_tprop()
2962 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_tprop()
2976 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_xfer_tprop()
2983 if (device->chipset >= 0xa0) in nv50_gr_construct_xfer_tprop()
3000 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_xfer_tprop()
3005 if (device->chipset >= 0xa0) { in nv50_gr_construct_xfer_tprop()
3015 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_tprop()
3029 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_xfer_tprop()
3039 struct nvkm_device *device = ctx->device; in nv50_gr_construct_xfer_tex() local
3041 if (device->chipset != 0x50) in nv50_gr_construct_xfer_tex()
3047 if (device->chipset == 0x50) in nv50_gr_construct_xfer_tex()
3059 if (device->chipset == 0x50) { in nv50_gr_construct_xfer_tex()
3065 } else if (!IS_NVAAF(device->chipset)) { in nv50_gr_construct_xfer_tex()
3085 struct nvkm_device *device = ctx->device; in nv50_gr_construct_xfer_unk8cxx() local
3097 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_unk8cxx()
3124 struct nvkm_device *device = ctx->device; in nv50_gr_construct_xfer_tp() local
3125 if (device->chipset < 0xa0) { in nv50_gr_construct_xfer_tp()
3141 struct nvkm_device *device = ctx->device; in nv50_gr_construct_xfer_mpc() local
3143 switch (device->chipset) { in nv50_gr_construct_xfer_mpc()
3170 if (device->chipset >= 0xa0) in nv50_gr_construct_xfer_mpc()
3175 …if (device->chipset == 0x86 || device->chipset == 0x98 || device->chipset == 0xa8 || IS_NVAAF(devi… in nv50_gr_construct_xfer_mpc()
3182 if (device->chipset == 0x50) in nv50_gr_construct_xfer_mpc()
3188 if (IS_NVAAF(device->chipset)) in nv50_gr_construct_xfer_mpc()
3190 else if (device->chipset >= 0xa0) in nv50_gr_construct_xfer_mpc()
3197 if (device->chipset >= 0xa0) { in nv50_gr_construct_xfer_mpc()
3211 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_mpc()
3226 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_xfer_mpc()
3241 if (IS_NVA3F(device->chipset)) { in nv50_gr_construct_xfer_mpc()
3256 if (device->chipset == 0x50) in nv50_gr_construct_xfer_mpc()
3258 else if (device->chipset < 0x94) in nv50_gr_construct_xfer_mpc()
3260 else if (device->chipset == 0x98 || device->chipset == 0xaa) in nv50_gr_construct_xfer_mpc()
3273 struct nvkm_device *device = ctx->device; in nv50_gr_construct_xfer2() local
3276 u32 units = nv_rd32 (ctx->device, 0x1540); in nv50_gr_construct_xfer2()
3281 if (device->chipset < 0xa0) { in nv50_gr_construct_xfer2()