Lines Matching refs:mc

33 tu102_mc_intr_update(struct tu102_mc *mc)  in tu102_mc_intr_update()  argument
35 struct nvkm_device *device = mc->base.subdev.device; in tu102_mc_intr_update()
36 u32 mask = mc->intr ? mc->mask : 0, i; in tu102_mc_intr_update()
52 struct tu102_mc *mc = tu102_mc(base); in tu102_mc_intr_unarm() local
55 spin_lock_irqsave(&mc->lock, flags); in tu102_mc_intr_unarm()
56 mc->intr = false; in tu102_mc_intr_unarm()
57 tu102_mc_intr_update(mc); in tu102_mc_intr_unarm()
58 spin_unlock_irqrestore(&mc->lock, flags); in tu102_mc_intr_unarm()
64 struct tu102_mc *mc = tu102_mc(base); in tu102_mc_intr_rearm() local
67 spin_lock_irqsave(&mc->lock, flags); in tu102_mc_intr_rearm()
68 mc->intr = true; in tu102_mc_intr_rearm()
69 tu102_mc_intr_update(mc); in tu102_mc_intr_rearm()
70 spin_unlock_irqrestore(&mc->lock, flags); in tu102_mc_intr_rearm()
76 struct tu102_mc *mc = tu102_mc(base); in tu102_mc_intr_mask() local
79 spin_lock_irqsave(&mc->lock, flags); in tu102_mc_intr_mask()
80 mc->mask = (mc->mask & ~mask) | intr; in tu102_mc_intr_mask()
81 tu102_mc_intr_update(mc); in tu102_mc_intr_mask()
82 spin_unlock_irqrestore(&mc->lock, flags); in tu102_mc_intr_mask()
86 tu102_mc_intr_stat(struct nvkm_mc *mc) in tu102_mc_intr_stat() argument
88 struct nvkm_device *device = mc->subdev.device; in tu102_mc_intr_stat()
119 struct tu102_mc *mc; in tu102_mc_new_() local
121 if (!(mc = kzalloc(sizeof(*mc), GFP_KERNEL))) in tu102_mc_new_()
123 nvkm_mc_ctor(func, device, type, inst, &mc->base); in tu102_mc_new_()
124 *pmc = &mc->base; in tu102_mc_new_()
126 spin_lock_init(&mc->lock); in tu102_mc_new_()
127 mc->intr = false; in tu102_mc_new_()
128 mc->mask = 0x7fffffff; in tu102_mc_new_()