Lines Matching refs:mpeg
68 struct nv31_mpeg *mpeg = chan->mpeg; in nv31_mpeg_chan_dtor() local
71 spin_lock_irqsave(&mpeg->engine.lock, flags); in nv31_mpeg_chan_dtor()
72 if (mpeg->chan == chan) in nv31_mpeg_chan_dtor()
73 mpeg->chan = NULL; in nv31_mpeg_chan_dtor()
74 spin_unlock_irqrestore(&mpeg->engine.lock, flags); in nv31_mpeg_chan_dtor()
88 struct nv31_mpeg *mpeg = nv31_mpeg(oclass->engine); in nv31_mpeg_chan_new() local
96 chan->mpeg = mpeg; in nv31_mpeg_chan_new()
100 spin_lock_irqsave(&mpeg->engine.lock, flags); in nv31_mpeg_chan_new()
101 if (!mpeg->chan) { in nv31_mpeg_chan_new()
102 mpeg->chan = chan; in nv31_mpeg_chan_new()
105 spin_unlock_irqrestore(&mpeg->engine.lock, flags); in nv31_mpeg_chan_new()
116 struct nv31_mpeg *mpeg = nv31_mpeg(engine); in nv31_mpeg_tile() local
117 struct nvkm_device *device = mpeg->engine.subdev.device; in nv31_mpeg_tile()
127 struct nv31_mpeg *mpeg = nv31_mpeg(device->mpeg); in nv31_mpeg_mthd_dma() local
128 struct nvkm_subdev *subdev = &mpeg->engine.subdev; in nv31_mpeg_mthd_dma()
169 nv31_mpeg_mthd(struct nv31_mpeg *mpeg, u32 mthd, u32 data) in nv31_mpeg_mthd() argument
171 struct nvkm_device *device = mpeg->engine.subdev.device; in nv31_mpeg_mthd()
176 return mpeg->func->mthd_dma(device, mthd, data); in nv31_mpeg_mthd()
186 struct nv31_mpeg *mpeg = nv31_mpeg(engine); in nv31_mpeg_intr() local
187 struct nvkm_subdev *subdev = &mpeg->engine.subdev; in nv31_mpeg_intr()
196 spin_lock_irqsave(&mpeg->engine.lock, flags); in nv31_mpeg_intr()
206 if (nv31_mpeg_mthd(mpeg, mthd, data)) in nv31_mpeg_intr()
216 mpeg->chan ? mpeg->chan->fifo->id : -1, in nv31_mpeg_intr()
217 mpeg->chan ? mpeg->chan->fifo->name : in nv31_mpeg_intr()
221 spin_unlock_irqrestore(&mpeg->engine.lock, flags); in nv31_mpeg_intr()
225 nv31_mpeg_init(struct nvkm_engine *mpeg) in nv31_mpeg_init() argument
227 struct nvkm_subdev *subdev = &mpeg->subdev; in nv31_mpeg_init()
279 struct nv31_mpeg *mpeg; in nv31_mpeg_new_() local
281 if (!(mpeg = kzalloc(sizeof(*mpeg), GFP_KERNEL))) in nv31_mpeg_new_()
283 mpeg->func = func; in nv31_mpeg_new_()
284 *pmpeg = &mpeg->engine; in nv31_mpeg_new_()
286 return nvkm_engine_ctor(&nv31_mpeg_, device, type, inst, true, &mpeg->engine); in nv31_mpeg_new_()