Lines Matching full:bar

27 nvkm_bar_flush(struct nvkm_bar *bar)  in nvkm_bar_flush()  argument
29 if (bar && bar->func->flush) in nvkm_bar_flush()
30 bar->func->flush(bar); in nvkm_bar_flush()
36 return device->bar->func->bar1.vmm(device->bar); in nvkm_bar_bar1_vmm()
42 struct nvkm_bar *bar = device->bar; in nvkm_bar_bar1_reset() local
43 if (bar) { in nvkm_bar_bar1_reset()
44 bar->func->bar1.init(bar); in nvkm_bar_bar1_reset()
45 bar->func->bar1.wait(bar); in nvkm_bar_bar1_reset()
55 struct nvkm_bar *bar = device->bar; in nvkm_bar_bar2_vmm() local
56 if (bar && bar->bar2) in nvkm_bar_bar2_vmm()
57 return bar->func->bar2.vmm(bar); in nvkm_bar_bar2_vmm()
64 struct nvkm_bar *bar = device->bar; in nvkm_bar_bar2_reset() local
65 if (bar && bar->bar2) { in nvkm_bar_bar2_reset()
66 bar->func->bar2.init(bar); in nvkm_bar_bar2_reset()
67 bar->func->bar2.wait(bar); in nvkm_bar_bar2_reset()
74 struct nvkm_bar *bar = device->bar; in nvkm_bar_bar2_fini() local
75 if (bar && bar->bar2) { in nvkm_bar_bar2_fini()
76 bar->func->bar2.fini(bar); in nvkm_bar_bar2_fini()
77 bar->bar2 = false; in nvkm_bar_bar2_fini()
84 struct nvkm_bar *bar = device->bar; in nvkm_bar_bar2_init() local
85 if (bar && bar->subdev.oneinit && !bar->bar2 && bar->func->bar2.init) { in nvkm_bar_bar2_init()
86 bar->func->bar2.init(bar); in nvkm_bar_bar2_init()
87 bar->func->bar2.wait(bar); in nvkm_bar_bar2_init()
88 bar->bar2 = true; in nvkm_bar_bar2_init()
95 struct nvkm_bar *bar = nvkm_bar(subdev); in nvkm_bar_fini() local
100 if (bar->func->bar1.fini) in nvkm_bar_fini()
101 bar->func->bar1.fini(bar); in nvkm_bar_fini()
112 struct nvkm_bar *bar = nvkm_bar(subdev); in nvkm_bar_init() local
113 bar->func->bar1.init(bar); in nvkm_bar_init()
114 bar->func->bar1.wait(bar); in nvkm_bar_init()
115 if (bar->func->init) in nvkm_bar_init()
116 bar->func->init(bar); in nvkm_bar_init()
123 struct nvkm_bar *bar = nvkm_bar(subdev); in nvkm_bar_oneinit() local
124 return bar->func->oneinit(bar); in nvkm_bar_oneinit()
130 struct nvkm_bar *bar = nvkm_bar(subdev); in nvkm_bar_dtor() local
132 return bar->func->dtor(bar); in nvkm_bar_dtor()
145 enum nvkm_subdev_type type, int inst, struct nvkm_bar *bar) in nvkm_bar_ctor() argument
147 nvkm_subdev_ctor(&nvkm_bar, device, type, inst, &bar->subdev); in nvkm_bar_ctor()
148 bar->func = func; in nvkm_bar_ctor()
149 spin_lock_init(&bar->lock); in nvkm_bar_ctor()