Lines Matching refs:disp
136 struct nouveau_display *disp = nouveau_display(drm->dev); in nouveau_decode_mod() local
151 modifier |= disp->format_modifiers[0] & (0xffull << 12); in nouveau_decode_mod()
195 struct nouveau_display *disp = nouveau_display(drm->dev); in nouveau_validate_decode_mod() local
202 BUG_ON(!disp->format_modifiers); in nouveau_validate_decode_mod()
205 (disp->format_modifiers[mod] != DRM_FORMAT_MOD_INVALID) && in nouveau_validate_decode_mod()
206 (disp->format_modifiers[mod] != modifier); in nouveau_validate_decode_mod()
209 if (disp->format_modifiers[mod] == DRM_FORMAT_MOD_INVALID) { in nouveau_validate_decode_mod()
585 struct nouveau_display *disp = nouveau_display(dev); in nouveau_display_init() local
602 ret = disp->init(dev, resume, runtime); in nouveau_display_init()
617 struct nouveau_display *disp = nouveau_display(dev); in nouveau_display_fini() local
642 disp->fini(dev, runtime, suspend); in nouveau_display_fini()
648 struct nouveau_display *disp = nouveau_display(dev); in nouveau_display_create_properties() local
651 if (disp->disp.object.oclass < NV50_DISP) in nouveau_display_create_properties()
654 if (disp->disp.object.oclass < GF110_DISP) in nouveau_display_create_properties()
659 PROP_ENUM(disp->dithering_mode, gen, "dithering mode", dither_mode); in nouveau_display_create_properties()
660 PROP_ENUM(disp->dithering_depth, gen, "dithering depth", dither_depth); in nouveau_display_create_properties()
661 PROP_ENUM(disp->underscan_property, gen, "underscan", underscan); in nouveau_display_create_properties()
663 disp->underscan_hborder_property = in nouveau_display_create_properties()
666 disp->underscan_vborder_property = in nouveau_display_create_properties()
673 disp->vibrant_hue_property = in nouveau_display_create_properties()
677 disp->color_vibrance_property = in nouveau_display_create_properties()
685 struct nouveau_display *disp; in nouveau_display_create() local
688 disp = drm->display = kzalloc(sizeof(*disp), GFP_KERNEL); in nouveau_display_create()
689 if (!disp) in nouveau_display_create()
728 ret = nvif_disp_ctor(&drm->client.device, "kmsDisp", 0, &disp->disp); in nouveau_display_create()
736 if (!ret && (disp->disp.outp_mask || drm->vbios.dcb.entries)) { in nouveau_display_create()
738 if (disp->disp.object.oclass < NV50_DISP) { in nouveau_display_create()
759 if (disp->disp.object.oclass >= NV50_DISP) in nouveau_display_create()
773 disp->dtor(dev); in nouveau_display_create()
783 struct nouveau_display *disp = nouveau_display(dev); in nouveau_display_destroy() local
793 if (disp->dtor) in nouveau_display_destroy()
794 disp->dtor(dev); in nouveau_display_destroy()
796 nvif_disp_dtor(&disp->disp); in nouveau_display_destroy()
799 kfree(disp); in nouveau_display_destroy()
805 struct nouveau_display *disp = nouveau_display(dev); in nouveau_display_suspend() local
812 disp->suspend = drm_atomic_helper_suspend(dev); in nouveau_display_suspend()
813 if (IS_ERR(disp->suspend)) { in nouveau_display_suspend()
814 int ret = PTR_ERR(disp->suspend); in nouveau_display_suspend()
815 disp->suspend = NULL; in nouveau_display_suspend()
828 struct nouveau_display *disp = nouveau_display(dev); in nouveau_display_resume() local
833 if (disp->suspend) { in nouveau_display_resume()
834 drm_atomic_helper_resume(dev, disp->suspend); in nouveau_display_resume()
835 disp->suspend = NULL; in nouveau_display_resume()