Lines Matching full:mc
32 struct nvkm_mc *mc = device->mc; in nvkm_mc_unk260() local
33 if (likely(mc) && mc->func->unk260) in nvkm_mc_unk260()
34 mc->func->unk260(mc, data); in nvkm_mc_unk260()
53 struct nvkm_mc *mc = device->mc; in nvkm_mc_reset_mask() local
56 if (likely(mc)) { in nvkm_mc_reset_mask()
58 for (map = mc->func->reset; map && map->stat; map++) { in nvkm_mc_reset_mask()
76 device->mc->func->device->disable(device->mc, pmc_enable); in nvkm_mc_reset()
77 device->mc->func->device->enable(device->mc, pmc_enable); in nvkm_mc_reset()
86 device->mc->func->device->disable(device->mc, pmc_enable); in nvkm_mc_disable()
94 device->mc->func->device->enable(device->mc, pmc_enable); in nvkm_mc_enable()
102 return (pmc_enable != 0) && device->mc->func->device->enabled(device->mc, pmc_enable); in nvkm_mc_enabled()
108 struct nvkm_mc *mc = nvkm_mc(subdev); in nvkm_mc_init() local
109 if (mc->func->init) in nvkm_mc_init()
110 mc->func->init(mc); in nvkm_mc_init()
130 struct nvkm_mc *mc; in nvkm_mc_new_() local
133 if (!(mc = *pmc = kzalloc(sizeof(*mc), GFP_KERNEL))) in nvkm_mc_new_()
136 nvkm_subdev_ctor(&nvkm_mc, device, type, inst, &mc->subdev); in nvkm_mc_new_()
137 mc->func = func; in nvkm_mc_new_()
139 if (mc->func->intr) { in nvkm_mc_new_()
140 ret = nvkm_intr_add(mc->func->intr, mc->func->intrs, &mc->subdev, in nvkm_mc_new_()
141 mc->func->intr_nonstall ? 2 : 1, &mc->intr); in nvkm_mc_new_()