Lines Matching full:init

30 nvkm_devinit_mmio(struct nvkm_devinit *init, u32 addr)  in nvkm_devinit_mmio()  argument
32 if (init->func->mmio) in nvkm_devinit_mmio()
33 addr = init->func->mmio(init, addr); in nvkm_devinit_mmio()
38 nvkm_devinit_pll_set(struct nvkm_devinit *init, u32 type, u32 khz) in nvkm_devinit_pll_set() argument
40 return init->func->pll_set(init, type, khz); in nvkm_devinit_pll_set()
44 nvkm_devinit_meminit(struct nvkm_devinit *init) in nvkm_devinit_meminit() argument
46 if (init->func->meminit) in nvkm_devinit_meminit()
47 init->func->meminit(init); in nvkm_devinit_meminit()
51 nvkm_devinit_disable(struct nvkm_devinit *init) in nvkm_devinit_disable() argument
53 if (init && init->func->disable) in nvkm_devinit_disable()
54 init->func->disable(init); in nvkm_devinit_disable()
60 nvkm_devinit_post(struct nvkm_devinit *init) in nvkm_devinit_post() argument
63 if (init && init->func->post) in nvkm_devinit_post()
64 ret = init->func->post(init, init->post); in nvkm_devinit_post()
65 nvkm_devinit_disable(init); in nvkm_devinit_post()
72 struct nvkm_devinit *init = nvkm_devinit(subdev); in nvkm_devinit_fini() local
75 init->post = true; in nvkm_devinit_fini()
82 struct nvkm_devinit *init = nvkm_devinit(subdev); in nvkm_devinit_preinit() local
84 if (init->func->preinit) in nvkm_devinit_preinit()
85 init->func->preinit(init); in nvkm_devinit_preinit()
88 if (init->force_post) { in nvkm_devinit_preinit()
89 init->post = init->force_post; in nvkm_devinit_preinit()
90 init->force_post = false; in nvkm_devinit_preinit()
101 struct nvkm_devinit *init = nvkm_devinit(subdev); in nvkm_devinit_init() local
102 if (init->func->init) in nvkm_devinit_init()
103 init->func->init(init); in nvkm_devinit_init()
110 struct nvkm_devinit *init = nvkm_devinit(subdev); in nvkm_devinit_dtor() local
111 void *data = init; in nvkm_devinit_dtor()
113 if (init->func->dtor) in nvkm_devinit_dtor()
114 data = init->func->dtor(init); in nvkm_devinit_dtor()
125 .init = nvkm_devinit_init,
131 enum nvkm_subdev_type type, int inst, struct nvkm_devinit *init) in nvkm_devinit_ctor() argument
133 nvkm_subdev_ctor(&nvkm_devinit, device, type, inst, &init->subdev); in nvkm_devinit_ctor()
134 init->func = func; in nvkm_devinit_ctor()
135 init->force_post = nvkm_boolopt(device->cfgopt, "NvForcePost", false); in nvkm_devinit_ctor()