Lines Matching full:bar
36 r535_bar_flush(struct nvkm_bar *bar) in r535_bar_flush() argument
38 ioread32_native(bar->flushBAR2); in r535_bar_flush()
63 r535_bar_bar2_fini(struct nvkm_bar *bar) in r535_bar_bar2_fini() argument
65 struct nvkm_gsp *gsp = bar->subdev.device->gsp; in r535_bar_bar2_fini()
67 bar->flushBAR2 = bar->flushBAR2PhysMode; in r535_bar_bar2_fini()
68 nvkm_done(bar->flushFBZero); in r535_bar_bar2_fini()
74 r535_bar_bar2_init(struct nvkm_bar *bar) in r535_bar_bar2_init() argument
76 struct nvkm_device *device = bar->subdev.device; in r535_bar_bar2_init()
77 struct nvkm_vmm *vmm = gf100_bar(bar)->bar[0].vmm; in r535_bar_bar2_init()
81 vmm->rm.bar2_pdb = gsp->bar.rm_bar2_pdb; in r535_bar_bar2_init()
83 if (!bar->flushFBZero) { in r535_bar_bar2_init()
89 ret = nvkm_memory_kmap(fbZero, &bar->flushFBZero); in r535_bar_bar2_init()
95 bar->bar2 = true; in r535_bar_bar2_init()
96 bar->flushBAR2 = nvkm_kmap(bar->flushFBZero); in r535_bar_bar2_init()
97 WARN_ON(!bar->flushBAR2); in r535_bar_bar2_init()
111 r535_bar_bar1_init(struct nvkm_bar *bar) in r535_bar_bar1_init() argument
113 struct nvkm_device *device = bar->subdev.device; in r535_bar_bar1_init()
115 struct nvkm_vmm *vmm = gf100_bar(bar)->bar[1].vmm; in r535_bar_bar1_init()
119 ret = nvkm_ram_wrap(device, gsp->bar.rm_bar1_pdb, 0x1000, &pd3); in r535_bar_bar1_init()
134 r535_bar_dtor(struct nvkm_bar *bar) in r535_bar_dtor() argument
136 void *data = gf100_bar_dtor(bar); in r535_bar_dtor()
138 nvkm_memory_unref(&bar->flushFBZero); in r535_bar_dtor()
140 if (bar->flushBAR2PhysMode) in r535_bar_dtor()
141 iounmap(bar->flushBAR2PhysMode); in r535_bar_dtor()
143 kfree(bar->func); in r535_bar_dtor()
152 struct nvkm_bar *bar; in r535_bar_new_() local
170 ret = gf100_bar_new_(rm, device, type, inst, &bar); in r535_bar_new_()
175 *pbar = bar; in r535_bar_new_()
177 bar->flushBAR2PhysMode = ioremap(device->func->resource_addr(device, 3), PAGE_SIZE); in r535_bar_new_()
178 if (!bar->flushBAR2PhysMode) in r535_bar_new_()
181 bar->flushBAR2 = bar->flushBAR2PhysMode; in r535_bar_new_()