Lines Matching refs:mpeg
45 struct nv44_mpeg *mpeg; member
72 struct nv44_mpeg *mpeg = chan->mpeg; in nv44_mpeg_chan_fini() local
73 struct nvkm_device *device = mpeg->engine.subdev.device; in nv44_mpeg_chan_fini()
87 struct nv44_mpeg *mpeg = chan->mpeg; in nv44_mpeg_chan_dtor() local
89 spin_lock_irqsave(&mpeg->engine.lock, flags); in nv44_mpeg_chan_dtor()
91 spin_unlock_irqrestore(&mpeg->engine.lock, flags); in nv44_mpeg_chan_dtor()
107 struct nv44_mpeg *mpeg = nv44_mpeg(oclass->engine); in nv44_mpeg_chan_new() local
114 chan->mpeg = mpeg; in nv44_mpeg_chan_new()
118 spin_lock_irqsave(&mpeg->engine.lock, flags); in nv44_mpeg_chan_new()
119 list_add(&chan->head, &mpeg->chan); in nv44_mpeg_chan_new()
120 spin_unlock_irqrestore(&mpeg->engine.lock, flags); in nv44_mpeg_chan_new()
145 struct nv44_mpeg *mpeg = nv44_mpeg(engine); in nv44_mpeg_intr() local
146 struct nvkm_subdev *subdev = &mpeg->engine.subdev; in nv44_mpeg_intr()
157 spin_lock_irqsave(&mpeg->engine.lock, flags); in nv44_mpeg_intr()
158 list_for_each_entry(temp, &mpeg->chan, head) { in nv44_mpeg_intr()
162 list_add(&chan->head, &mpeg->chan); in nv44_mpeg_intr()
190 spin_unlock_irqrestore(&mpeg->engine.lock, flags); in nv44_mpeg_intr()
209 struct nv44_mpeg *mpeg; in nv44_mpeg_new() local
211 if (!(mpeg = kzalloc(sizeof(*mpeg), GFP_KERNEL))) in nv44_mpeg_new()
213 INIT_LIST_HEAD(&mpeg->chan); in nv44_mpeg_new()
214 *pmpeg = &mpeg->engine; in nv44_mpeg_new()
216 return nvkm_engine_ctor(&nv44_mpeg, device, type, inst, true, &mpeg->engine); in nv44_mpeg_new()