Lines Matching refs:mc
35 gp100_mc_intr_update(struct gp100_mc *mc) in gp100_mc_intr_update() argument
37 struct nvkm_device *device = mc->base.subdev.device; in gp100_mc_intr_update()
38 u32 mask = mc->intr ? mc->mask : 0, i; in gp100_mc_intr_update()
48 struct gp100_mc *mc = gp100_mc(base); in gp100_mc_intr_unarm() local
50 spin_lock_irqsave(&mc->lock, flags); in gp100_mc_intr_unarm()
51 mc->intr = false; in gp100_mc_intr_unarm()
52 gp100_mc_intr_update(mc); in gp100_mc_intr_unarm()
53 spin_unlock_irqrestore(&mc->lock, flags); in gp100_mc_intr_unarm()
59 struct gp100_mc *mc = gp100_mc(base); in gp100_mc_intr_rearm() local
61 spin_lock_irqsave(&mc->lock, flags); in gp100_mc_intr_rearm()
62 mc->intr = true; in gp100_mc_intr_rearm()
63 gp100_mc_intr_update(mc); in gp100_mc_intr_rearm()
64 spin_unlock_irqrestore(&mc->lock, flags); in gp100_mc_intr_rearm()
70 struct gp100_mc *mc = gp100_mc(base); in gp100_mc_intr_mask() local
72 spin_lock_irqsave(&mc->lock, flags); in gp100_mc_intr_mask()
73 mc->mask = (mc->mask & ~mask) | intr; in gp100_mc_intr_mask()
74 gp100_mc_intr_update(mc); in gp100_mc_intr_mask()
75 spin_unlock_irqrestore(&mc->lock, flags); in gp100_mc_intr_mask()
111 struct gp100_mc *mc; in gp100_mc_new_() local
113 if (!(mc = kzalloc(sizeof(*mc), GFP_KERNEL))) in gp100_mc_new_()
115 nvkm_mc_ctor(func, device, type, inst, &mc->base); in gp100_mc_new_()
116 *pmc = &mc->base; in gp100_mc_new_()
118 spin_lock_init(&mc->lock); in gp100_mc_new_()
119 mc->intr = false; in gp100_mc_new_()
120 mc->mask = 0x7fffffff; in gp100_mc_new_()