Lines Matching defs:drm

35 #include <drm/drm_atomic_helper.h>
36 #include <drm/drm_dp_helper.h>
37 #include <drm/drm_edid.h>
38 #include <drm/drm_fb_helper.h>
39 #include <drm/drm_plane_helper.h>
40 #include <drm/drm_probe_helper.h>
41 #include <drm/drm_scdc_helper.h>
42 #include <drm/drm_vblank.h>
327 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev);
328 struct nv50_disp *disp = nv50_disp(drm->dev);
343 NV_ERROR(drm, "error acquiring output path: %d\n", ret);
362 struct nouveau_drm *drm = nouveau_drm(encoder->dev);
364 NV_ATOMIC(drm, "%s atomic_check\n", encoder->name);
580 struct nouveau_drm *drm = nouveau_drm(connector->dev);
581 struct nvkm_i2c *i2c = nvxx_i2c(&drm->client.device);
624 struct nouveau_drm *drm = nouveau_drm(drm_dev);
634 drm_for_each_encoder(encoder, drm->dev) {
675 struct nouveau_drm *drm = nouveau_drm(drm_dev);
684 drm->audio.component = acomp;
694 struct nouveau_drm *drm = nouveau_drm(drm_dev);
698 drm->audio.component = NULL;
710 nv50_audio_component_init(struct nouveau_drm *drm)
712 if (!component_add(drm->dev->dev, &nv50_audio_component_bind_ops))
713 drm->audio.component_registered = true;
717 nv50_audio_component_fini(struct nouveau_drm *drm)
719 if (drm->audio.component_registered) {
720 component_del(drm->dev->dev, &nv50_audio_component_bind_ops);
721 drm->audio.component_registered = false;
731 struct nouveau_drm *drm = nouveau_drm(encoder->dev);
751 nv50_audio_component_eld_notify(drm->audio.component, nv_encoder->or,
759 struct nouveau_drm *drm = nouveau_drm(encoder->dev);
788 nv50_audio_component_eld_notify(drm->audio.component, nv_encoder->or,
818 struct nouveau_drm *drm = nouveau_drm(encoder->dev);
901 NV_ERROR(drm, "Failure to read SCDC_TMDS_CONFIG: %d\n", ret);
909 NV_ERROR(drm, "Failure to write SCDC_TMDS_CONFIG = 0x%02x: %d\n",
953 struct nouveau_drm *drm = nouveau_drm(msto->encoder.dev);
960 NV_ATOMIC(drm, "%s: vcpi %d\n", msto->encoder.name, vcpi);
963 NV_ATOMIC(drm, "%s: %d: vcpi %d start 0x%02x slots 0x%02x\n",
980 struct nouveau_drm *drm = nouveau_drm(msto->encoder.dev);
987 NV_ATOMIC(drm, "%s: msto cleanup\n", msto->encoder.name);
998 struct nouveau_drm *drm = nouveau_drm(msto->encoder.dev);
1014 NV_ATOMIC(drm, "%s: msto prepare\n", msto->encoder.name);
1025 NV_ATOMIC(drm, "%s: %s: %02x %02x %04x %04x\n",
1030 nvif_mthd(&drm->display->disp.object, 0, &args, sizeof(args));
1384 struct nouveau_drm *drm = nouveau_drm(mstm->outp->base.base.dev);
1388 NV_ATOMIC(drm, "%s: mstm cleanup\n", mstm->outp->base.base.name);
1408 struct nouveau_drm *drm = nouveau_drm(mstm->outp->base.base.dev);
1412 NV_ATOMIC(drm, "%s: mstm prepare\n", mstm->outp->base.base.name);
1452 nv50_mstm_service(struct nouveau_drm *drm,
1481 NV_DEBUG(drm, "Failed to handle ESI on %s: %d\n",
1508 struct nouveau_drm *drm = nouveau_drm(outp->base.base.dev);
1509 struct nvif_object *disp = &drm->display->disp.object;
1697 struct nouveau_drm *drm = nouveau_drm(dev);
1699 struct nvbios *bios = &drm->vbios;
1807 static bool nv50_has_mst(struct nouveau_drm *drm)
1809 struct nvkm_bios *bios = nvxx_bios(&drm->client.device);
1821 struct nouveau_drm *drm = nouveau_drm(connector->dev);
1822 struct nvkm_i2c *i2c = nvxx_i2c(&drm->client.device);
1874 nv50_has_mst(drm)) {
1981 struct nouveau_drm *drm = nouveau_drm(dev);
1983 struct nvkm_i2c *i2c = nvxx_i2c(&drm->client.device);
2034 struct nouveau_drm *drm = nouveau_drm(state->dev);
2035 struct nv50_disp *disp = nv50_disp(drm->dev);
2040 NV_ATOMIC(drm, "commit core %08x\n", interlock[NV50_DISP_INTERLOCK_BASE]);
2042 drm_for_each_encoder(encoder, drm->dev) {
2054 NV_ERROR(drm, "core notifier timeout\n");
2056 drm_for_each_encoder(encoder, drm->dev) {
2089 struct nouveau_drm *drm = nouveau_drm(dev);
2098 NV_ATOMIC(drm, "commit %d %d\n", atom->lock_core, atom->flush_disable);
2113 NV_ATOMIC(drm, "%s: clr %04x (set %04x)\n", crtc->name,
2132 NV_ATOMIC(drm, "%s: clr %02x (set %02x)\n", plane->name,
2148 NV_ATOMIC(drm, "%s: clr %02x (set %02x)\n", encoder->name,
2187 NV_ATOMIC(drm, "%s: set %02x (clr %02x)\n", encoder->name,
2204 NV_ATOMIC(drm, "%s: set %04x (clr %04x)\n", crtc->name,
2255 NV_ATOMIC(drm, "%s: set %04x (clr %04x)\n", crtc->name,
2269 NV_ATOMIC(drm, "%s: set %02x (clr %02x)\n", plane->name,
2300 NV_ERROR(drm, "%s: timeout\n", plane->name);
2588 struct nouveau_drm *drm = nouveau_drm(dev);
2597 cancel_work_sync(&drm->hpd_work);
2644 struct nouveau_drm *drm = nouveau_drm(dev);
2645 struct dcb_table *dcb = &drm->vbios.dcb;
2650 bool has_mst = nv50_has_mst(drm);
2668 ret = nouveau_bo_new(&drm->client, 4096, 0x1000,
2686 ret = nv50_core_new(drm, &disp->core);
2692 ret = disp->core->func->caps_init(drm, disp);
2701 if (drm->client.device.info.family >= NV_DEVICE_INFO_V0_FERMI)
2774 NV_WARN(drm, "failed to create encoder %d/%d/%d: %d\n",
2786 NV_WARN(drm, "%s has no encoders, removing\n",
2794 nv50_audio_component_init(drm);