Lines Matching refs:tv_enc
150 struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); in nv17_tv_detect() local
151 struct dcb_output *dcb = tv_enc->base.dcb; in nv17_tv_detect()
152 bool reliable = get_tv_detect_quirks(dev, &tv_enc->pin_mask); in nv17_tv_detect()
160 tv_enc->pin_mask = in nv17_tv_detect()
163 tv_enc->pin_mask = in nv17_tv_detect()
167 switch (tv_enc->pin_mask) { in nv17_tv_detect()
170 tv_enc->subconnector = DRM_MODE_SUBCONNECTOR_Composite; in nv17_tv_detect()
173 tv_enc->subconnector = DRM_MODE_SUBCONNECTOR_SVIDEO; in nv17_tv_detect()
177 tv_enc->subconnector = DRM_MODE_SUBCONNECTOR_Component; in nv17_tv_detect()
179 tv_enc->subconnector = DRM_MODE_SUBCONNECTOR_SCART; in nv17_tv_detect()
182 tv_enc->subconnector = DRM_MODE_SUBCONNECTOR_Unknown; in nv17_tv_detect()
188 tv_enc->subconnector); in nv17_tv_detect()
192 } else if (tv_enc->subconnector) { in nv17_tv_detect()
523 tv_regs->tv_enc[i] = tv_norm->tv_enc_mode.tv_enc[i]; in nv17_tv_mode_set()
616 struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); in nv17_tv_save() local
623 nv17_tv_state_save(dev, &tv_enc->saved_state); in nv17_tv_save()
625 tv_enc->state.ptv_200 = tv_enc->saved_state.ptv_200; in nv17_tv_save()
647 struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); in nv17_tv_create_resources() local
660 tv_enc->tv_norm = i; in nv17_tv_create_resources()
667 tv_enc->select_subconnector); in nv17_tv_create_resources()
670 tv_enc->subconnector); in nv17_tv_create_resources()
673 tv_enc->tv_norm); in nv17_tv_create_resources()
676 tv_enc->flicker); in nv17_tv_create_resources()
679 tv_enc->saturation); in nv17_tv_create_resources()
682 tv_enc->hue); in nv17_tv_create_resources()
685 tv_enc->overscan); in nv17_tv_create_resources()
697 struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); in nv17_tv_set_property() local
702 tv_enc->overscan = val; in nv17_tv_set_property()
714 tv_enc->saturation = val; in nv17_tv_set_property()
721 tv_enc->hue = val; in nv17_tv_set_property()
728 tv_enc->flicker = val; in nv17_tv_set_property()
736 tv_enc->tv_norm = val; in nv17_tv_set_property()
744 tv_enc->select_subconnector = val; in nv17_tv_set_property()
767 struct nv17_tv_encoder *tv_enc = to_tv_enc(encoder); in nv17_tv_destroy() local
770 kfree(tv_enc); in nv17_tv_destroy()
798 struct nv17_tv_encoder *tv_enc = NULL; in nv17_tv_create() local
800 tv_enc = kzalloc(sizeof(*tv_enc), GFP_KERNEL); in nv17_tv_create()
801 if (!tv_enc) in nv17_tv_create()
804 tv_enc->overscan = 50; in nv17_tv_create()
805 tv_enc->flicker = 50; in nv17_tv_create()
806 tv_enc->saturation = 50; in nv17_tv_create()
807 tv_enc->hue = 0; in nv17_tv_create()
808 tv_enc->tv_norm = TV_NORM_PAL; in nv17_tv_create()
809 tv_enc->subconnector = DRM_MODE_SUBCONNECTOR_Unknown; in nv17_tv_create()
810 tv_enc->select_subconnector = DRM_MODE_SUBCONNECTOR_Automatic; in nv17_tv_create()
811 tv_enc->pin_mask = 0; in nv17_tv_create()
813 encoder = to_drm_encoder(&tv_enc->base); in nv17_tv_create()
815 tv_enc->base.dcb = entry; in nv17_tv_create()
816 tv_enc->base.or = ffs(entry->or) - 1; in nv17_tv_create()
823 tv_enc->base.enc_save = nv17_tv_save; in nv17_tv_create()
824 tv_enc->base.enc_restore = nv17_tv_restore; in nv17_tv_create()