Lines Matching refs:priv
30 gm107_ltc_cbc_clear(struct nvkm_ltc_priv *priv, u32 start, u32 limit) in gm107_ltc_cbc_clear() argument
32 nv_wr32(priv, 0x17e270, start); in gm107_ltc_cbc_clear()
33 nv_wr32(priv, 0x17e274, limit); in gm107_ltc_cbc_clear()
34 nv_wr32(priv, 0x17e26c, 0x00000004); in gm107_ltc_cbc_clear()
38 gm107_ltc_cbc_wait(struct nvkm_ltc_priv *priv) in gm107_ltc_cbc_wait() argument
41 for (c = 0; c < priv->ltc_nr; c++) { in gm107_ltc_cbc_wait()
42 for (s = 0; s < priv->lts_nr; s++) in gm107_ltc_cbc_wait()
43 nv_wait(priv, 0x14046c + c * 0x2000 + s * 0x200, ~0, 0); in gm107_ltc_cbc_wait()
48 gm107_ltc_zbc_clear_color(struct nvkm_ltc_priv *priv, int i, const u32 color[4]) in gm107_ltc_zbc_clear_color() argument
50 nv_mask(priv, 0x17e338, 0x0000000f, i); in gm107_ltc_zbc_clear_color()
51 nv_wr32(priv, 0x17e33c, color[0]); in gm107_ltc_zbc_clear_color()
52 nv_wr32(priv, 0x17e340, color[1]); in gm107_ltc_zbc_clear_color()
53 nv_wr32(priv, 0x17e344, color[2]); in gm107_ltc_zbc_clear_color()
54 nv_wr32(priv, 0x17e348, color[3]); in gm107_ltc_zbc_clear_color()
58 gm107_ltc_zbc_clear_depth(struct nvkm_ltc_priv *priv, int i, const u32 depth) in gm107_ltc_zbc_clear_depth() argument
60 nv_mask(priv, 0x17e338, 0x0000000f, i); in gm107_ltc_zbc_clear_depth()
61 nv_wr32(priv, 0x17e34c, depth); in gm107_ltc_zbc_clear_depth()
65 gm107_ltc_lts_isr(struct nvkm_ltc_priv *priv, int ltc, int lts) in gm107_ltc_lts_isr() argument
68 u32 stat = nv_rd32(priv, base + 0x00c); in gm107_ltc_lts_isr()
71 nv_info(priv, "LTC%d_LTS%d: 0x%08x\n", ltc, lts, stat); in gm107_ltc_lts_isr()
72 nv_wr32(priv, base + 0x00c, stat); in gm107_ltc_lts_isr()
79 struct nvkm_ltc_priv *priv = (void *)subdev; in gm107_ltc_intr() local
82 mask = nv_rd32(priv, 0x00017c); in gm107_ltc_intr()
85 for (lts = 0; lts < priv->lts_nr; lts++) in gm107_ltc_intr()
86 gm107_ltc_lts_isr(priv, ltc, lts); in gm107_ltc_intr()
94 struct nvkm_ltc_priv *priv = (void *)object; in gm107_ltc_init() local
95 u32 lpg128 = !(nv_rd32(priv, 0x100c80) & 0x00000001); in gm107_ltc_init()
98 ret = nvkm_ltc_init(priv); in gm107_ltc_init()
102 nv_wr32(priv, 0x17e27c, priv->ltc_nr); in gm107_ltc_init()
103 nv_wr32(priv, 0x17e278, priv->tag_base); in gm107_ltc_init()
104 nv_mask(priv, 0x17e264, 0x00000002, lpg128 ? 0x00000002 : 0x00000000); in gm107_ltc_init()
114 struct nvkm_ltc_priv *priv; in gm107_ltc_ctor() local
118 ret = nvkm_ltc_create(parent, engine, oclass, &priv); in gm107_ltc_ctor()
119 *pobject = nv_object(priv); in gm107_ltc_ctor()
123 parts = nv_rd32(priv, 0x022438); in gm107_ltc_ctor()
124 mask = nv_rd32(priv, 0x021c14); in gm107_ltc_ctor()
127 priv->ltc_nr++; in gm107_ltc_ctor()
129 priv->lts_nr = nv_rd32(priv, 0x17e280) >> 28; in gm107_ltc_ctor()
131 ret = gf100_ltc_init_tag_ram(pfb, priv); in gm107_ltc_ctor()