nvkm_wr32(device, 0x00b230, 0x00000001);
if (show) {
- nv_error(mpeg, "ch %d [%s] 0x%08x 0x%08x 0x%08x 0x%08x\n",
- fifo->chid(fifo, engctx),
- nvkm_client_name(engctx), stat, type, mthd, data);
+ nvkm_error(subdev, "ch %d [%s] %08x %08x %08x %08x\n",
+ fifo->chid(fifo, engctx),
+ nvkm_client_name(engctx), stat, type, mthd, data);
}
spin_unlock_irqrestore(&nv_engine(mpeg)->lock, flags);
{
struct nvkm_engine *engine = nv_engine(object);
struct nv31_mpeg *mpeg = (void *)object;
- struct nvkm_device *device = mpeg->base.engine.subdev.device;
+ struct nvkm_subdev *subdev = &mpeg->base.engine.subdev;
+ struct nvkm_device *device = subdev->device;
struct nvkm_fb *fb = device->fb;
int ret, i;
if (!(nvkm_rd32(device, 0x00b200) & 0x00000001))
break;
) < 0) {
- nv_error(mpeg, "timeout 0x%08x\n", nvkm_rd32(device, 0x00b200));
+ nvkm_error(subdev, "timeout %08x\n",
+ nvkm_rd32(device, 0x00b200));
return -EBUSY;
}
nv31_mpeg_intr(subdev);
if ((stat = nvkm_rd32(device, 0x00b800))) {
- nv_error(mpeg, "PMSRCH 0x%08x\n", stat);
+ nvkm_error(subdev, "PMSRCH %08x\n", stat);
nvkm_wr32(device, 0x00b800, stat);
}
}
nvkm_wr32(device, 0x00b230, 0x00000001);
if (show) {
- nv_error(mpeg,
- "ch %d [0x%08x %s] 0x%08x 0x%08x 0x%08x 0x%08x\n",
- chid, inst << 4, nvkm_client_name(engctx), stat,
- type, mthd, data);
+ nvkm_error(subdev,
+ "ch %d [%08x %s] %08x %08x %08x %08x\n",
+ chid, inst << 4, nvkm_client_name(engctx), stat,
+ type, mthd, data);
}
nvkm_engctx_put(engctx);
nv44_mpeg_intr(subdev);
if ((stat = nvkm_rd32(device, 0x00b800))) {
- nv_error(mpeg, "PMSRCH 0x%08x\n", stat);
+ nvkm_error(subdev, "PMSRCH %08x\n", stat);
nvkm_wr32(device, 0x00b800, stat);
}
}
}
if (show) {
- nv_info(mpeg, "0x%08x 0x%08x 0x%08x 0x%08x\n",
- stat, type, mthd, data);
+ nvkm_info(subdev, "%08x %08x %08x %08x\n",
+ stat, type, mthd, data);
}
nvkm_wr32(device, 0x00b100, stat);
static void
nv50_vpe_intr(struct nvkm_subdev *subdev)
{
- struct nvkm_mpeg *mpeg = (void *)subdev;
- struct nvkm_device *device = mpeg->engine.subdev.device;
+ struct nvkm_device *device = subdev->device;
if (nvkm_rd32(device, 0x00b100))
nv50_mpeg_intr(subdev);
if (nvkm_rd32(device, 0x00b800)) {
u32 stat = nvkm_rd32(device, 0x00b800);
- nv_info(mpeg, "PMSRCH: 0x%08x\n", stat);
+ nvkm_info(subdev, "PMSRCH: %08x\n", stat);
nvkm_wr32(device, 0xb800, stat);
}
}
nv50_mpeg_init(struct nvkm_object *object)
{
struct nvkm_mpeg *mpeg = (void *)object;
- struct nvkm_device *device = mpeg->engine.subdev.device;
+ struct nvkm_subdev *subdev = &mpeg->engine.subdev;
+ struct nvkm_device *device = subdev->device;
int ret;
ret = nvkm_mpeg_init(mpeg);
if (!(nvkm_rd32(device, 0x00b200) & 0x00000001))
break;
) < 0) {
- nv_error(mpeg, "timeout 0x%08x\n", nvkm_rd32(device, 0x00b200));
+ nvkm_error(subdev, "timeout %08x\n",
+ nvkm_rd32(device, 0x00b200));
return -EBUSY;
}