Lines Matching full:disp
94 struct nouveau_display *disp = nouveau_display(crtc->dev); in nouveau_display_scanoutpos_head() local
100 ret = nvif_mthd(&disp->disp.object, 0, &args, sizeof(args)); in nouveau_display_scanoutpos_head()
142 struct nouveau_display *disp = nouveau_display(drm->dev); in nouveau_decode_mod() local
157 modifier |= disp->format_modifiers[0] & (0xffull << 12); in nouveau_decode_mod()
201 struct nouveau_display *disp = nouveau_display(drm->dev); in nouveau_validate_decode_mod() local
208 BUG_ON(!disp->format_modifiers); in nouveau_validate_decode_mod()
211 (disp->format_modifiers[mod] != DRM_FORMAT_MOD_INVALID) && in nouveau_validate_decode_mod()
212 (disp->format_modifiers[mod] != modifier); in nouveau_validate_decode_mod()
215 if (disp->format_modifiers[mod] == DRM_FORMAT_MOD_INVALID) { in nouveau_validate_decode_mod()
564 struct nouveau_display *disp = nouveau_display(dev); in nouveau_display_init() local
580 ret = disp->init(dev, resume, runtime); in nouveau_display_init()
595 struct nouveau_display *disp = nouveau_display(dev); in nouveau_display_fini() local
619 disp->fini(dev, runtime, suspend); in nouveau_display_fini()
625 struct nouveau_display *disp = nouveau_display(dev); in nouveau_display_create_properties() local
628 if (disp->disp.object.oclass < NV50_DISP) in nouveau_display_create_properties()
631 if (disp->disp.object.oclass < GF110_DISP) in nouveau_display_create_properties()
636 PROP_ENUM(disp->dithering_mode, gen, "dithering mode", dither_mode); in nouveau_display_create_properties()
637 PROP_ENUM(disp->dithering_depth, gen, "dithering depth", dither_depth); in nouveau_display_create_properties()
638 PROP_ENUM(disp->underscan_property, gen, "underscan", underscan); in nouveau_display_create_properties()
640 disp->underscan_hborder_property = in nouveau_display_create_properties()
643 disp->underscan_vborder_property = in nouveau_display_create_properties()
650 disp->vibrant_hue_property = in nouveau_display_create_properties()
654 disp->color_vibrance_property = in nouveau_display_create_properties()
663 struct nouveau_display *disp; in nouveau_display_create() local
666 disp = drm->display = kzalloc(sizeof(*disp), GFP_KERNEL); in nouveau_display_create()
667 if (!disp) in nouveau_display_create()
708 &disp->disp); in nouveau_display_create()
711 if (disp->disp.object.oclass < NV50_DISP) { in nouveau_display_create()
732 if (disp->disp.object.oclass >= NV50_DISP) in nouveau_display_create()
746 disp->dtor(dev); in nouveau_display_create()
756 struct nouveau_display *disp = nouveau_display(dev); in nouveau_display_destroy() local
766 if (disp->dtor) in nouveau_display_destroy()
767 disp->dtor(dev); in nouveau_display_destroy()
769 nvif_disp_dtor(&disp->disp); in nouveau_display_destroy()
773 kfree(disp); in nouveau_display_destroy()
779 struct nouveau_display *disp = nouveau_display(dev); in nouveau_display_suspend() local
783 disp->suspend = drm_atomic_helper_suspend(dev); in nouveau_display_suspend()
784 if (IS_ERR(disp->suspend)) { in nouveau_display_suspend()
785 int ret = PTR_ERR(disp->suspend); in nouveau_display_suspend()
786 disp->suspend = NULL; in nouveau_display_suspend()
799 struct nouveau_display *disp = nouveau_display(dev); in nouveau_display_resume() local
804 if (disp->suspend) { in nouveau_display_resume()
805 drm_atomic_helper_resume(dev, disp->suspend); in nouveau_display_resume()
806 disp->suspend = NULL; in nouveau_display_resume()