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()
40 struct nvkm_mc *mc = device->mc; in nvkm_mc_intr_mask() local
42 if (likely(mc) && mc->func->intr_mask) { in nvkm_mc_intr_mask()
44 for (map = mc->func->intr; !mask && map->stat; map++) { in nvkm_mc_intr_mask()
48 mc->func->intr_mask(mc, mask, en ? mask : 0); in nvkm_mc_intr_mask()
55 struct nvkm_mc *mc = device->mc; in nvkm_mc_intr_unarm() local
56 if (likely(mc)) in nvkm_mc_intr_unarm()
57 mc->func->intr_unarm(mc); in nvkm_mc_intr_unarm()
63 struct nvkm_mc *mc = device->mc; in nvkm_mc_intr_rearm() local
64 if (likely(mc)) in nvkm_mc_intr_rearm()
65 mc->func->intr_rearm(mc); in nvkm_mc_intr_rearm()
69 nvkm_mc_intr_stat(struct nvkm_mc *mc) in nvkm_mc_intr_stat() argument
71 u32 intr = mc->func->intr_stat(mc); in nvkm_mc_intr_stat()
80 struct nvkm_mc *mc = device->mc; in nvkm_mc_intr() local
87 if (unlikely(!mc)) in nvkm_mc_intr()
90 stat = intr = nvkm_mc_intr_stat(mc); in nvkm_mc_intr()
106 for (map = mc->func->intr; map->stat; map++) { in nvkm_mc_intr()
116 nvkm_error(&mc->subdev, "intr %08x\n", stat); in nvkm_mc_intr()
123 struct nvkm_mc *mc = device->mc; in nvkm_mc_reset_mask() local
126 if (likely(mc)) { in nvkm_mc_reset_mask()
128 for (map = mc->func->reset; map && map->stat; map++) { in nvkm_mc_reset_mask()
190 struct nvkm_mc *mc = nvkm_mc(subdev); in nvkm_mc_init() local
191 if (mc->func->init) in nvkm_mc_init()
192 mc->func->init(mc); in nvkm_mc_init()
212 enum nvkm_subdev_type type, int inst, struct nvkm_mc *mc) in nvkm_mc_ctor() argument
214 nvkm_subdev_ctor(&nvkm_mc, device, type, inst, &mc->subdev); in nvkm_mc_ctor()
215 mc->func = func; in nvkm_mc_ctor()
222 struct nvkm_mc *mc; in nvkm_mc_new_() local
223 if (!(mc = *pmc = kzalloc(sizeof(*mc), GFP_KERNEL))) in nvkm_mc_new_()