79 int i = !(vma->
vm == priv->
bar[0].vm);
99 *pobject = nv_object(priv);
105 mem = priv->
bar[0].mem;
121 vm->
pgt[0].refcount[0] = 1;
137 mem = priv->
bar[1].mem;
160 priv->
base.kmap = nvc0_bar_kmap;
161 priv->
base.umap = nvc0_bar_umap;
162 priv->
base.unmap = nvc0_bar_unmap;
174 nouveau_gpuobj_ref(
NULL, &priv->
bar[1].pgd);
175 nouveau_gpuobj_ref(
NULL, &priv->
bar[1].mem);
177 if (priv->
bar[0].vm) {
178 nouveau_gpuobj_ref(
NULL, &priv->
bar[0].vm->pgt[0].obj[0]);
181 nouveau_gpuobj_ref(
NULL, &priv->
bar[0].pgd);
182 nouveau_gpuobj_ref(
NULL, &priv->
bar[0].mem);
197 nv_mask(priv, 0x000200, 0x00000100, 0x00000000);
198 nv_mask(priv, 0x000200, 0x00000100, 0x00000100);
199 nv_mask(priv, 0x100c80, 0x00000001, 0x00000000);
201 nv_wr32(priv, 0x001704, 0x80000000 | priv->
bar[1].mem->addr >> 12);
202 nv_wr32(priv, 0x001714, 0xc0000000 | priv->
bar[0].mem->addr >> 12);
210 .ctor = nvc0_bar_ctor,
211 .dtor = nvc0_bar_dtor,
212 .init = nvc0_bar_init,