Lines Matching refs:nv_encoder

366 	struct nouveau_encoder *nv_encoder;  in find_encoder()  local
371 nv_encoder = nouveau_encoder(enc); in find_encoder()
374 (nv_encoder->dcb && nv_encoder->dcb->type == type)) in find_encoder()
375 return nv_encoder; in find_encoder()
412 struct nouveau_encoder *nv_encoder = NULL, *found = NULL; in nouveau_connector_ddc_detect() local
418 nv_encoder = nouveau_encoder(encoder); in nouveau_connector_ddc_detect()
420 switch (nv_encoder->dcb->type) { in nouveau_connector_ddc_detect()
422 ret = nouveau_dp_detect(nv_encoder); in nouveau_connector_ddc_detect()
426 found = nv_encoder; in nouveau_connector_ddc_detect()
434 if (!nv_encoder->i2c) in nouveau_connector_ddc_detect()
439 if (nvkm_probe_i2c(nv_encoder->i2c, 0x50)) in nouveau_connector_ddc_detect()
440 found = nv_encoder; in nouveau_connector_ddc_detect()
459 struct nouveau_encoder *nv_encoder; in nouveau_connector_of_detect() local
463 !((nv_encoder = find_encoder(connector, DCB_OUTPUT_TMDS)) || in nouveau_connector_of_detect()
464 (nv_encoder = find_encoder(connector, DCB_OUTPUT_ANALOG)))) in nouveau_connector_of_detect()
472 if (nv_encoder->dcb->i2c_index == idx && edid) { in nouveau_connector_of_detect()
476 return nv_encoder; in nouveau_connector_of_detect()
485 struct nouveau_encoder *nv_encoder) in nouveau_connector_set_encoder() argument
491 if (nv_connector->detected_encoder == nv_encoder) in nouveau_connector_set_encoder()
493 nv_connector->detected_encoder = nv_encoder; in nouveau_connector_set_encoder()
499 if (nv_encoder->dcb->type == DCB_OUTPUT_LVDS || in nouveau_connector_set_encoder()
500 nv_encoder->dcb->type == DCB_OUTPUT_TMDS) { in nouveau_connector_set_encoder()
518 nv_encoder->dcb->type == DCB_OUTPUT_TMDS ? in nouveau_connector_set_encoder()
530 struct nouveau_encoder *nv_encoder = NULL; in nouveau_connector_detect() local
558 nv_encoder = nouveau_connector_ddc_detect(connector); in nouveau_connector_detect()
559 if (nv_encoder && (i2c = nv_encoder->i2c) != NULL) { in nouveau_connector_detect()
582 if (nv_encoder->dcb->type == DCB_OUTPUT_TMDS) in nouveau_connector_detect()
584 if (nv_encoder->dcb->type == DCB_OUTPUT_ANALOG) in nouveau_connector_detect()
587 if (nv_partner && ((nv_encoder->dcb->type == DCB_OUTPUT_ANALOG && in nouveau_connector_detect()
589 (nv_encoder->dcb->type == DCB_OUTPUT_TMDS && in nouveau_connector_detect()
596 nv_encoder = find_encoder(connector, type); in nouveau_connector_detect()
599 nouveau_connector_set_encoder(connector, nv_encoder); in nouveau_connector_detect()
604 nv_encoder = nouveau_connector_of_detect(connector); in nouveau_connector_detect()
605 if (nv_encoder) { in nouveau_connector_detect()
606 nouveau_connector_set_encoder(connector, nv_encoder); in nouveau_connector_detect()
612 nv_encoder = find_encoder(connector, DCB_OUTPUT_ANALOG); in nouveau_connector_detect()
613 if (!nv_encoder && !nouveau_tv_disable) in nouveau_connector_detect()
614 nv_encoder = find_encoder(connector, DCB_OUTPUT_TV); in nouveau_connector_detect()
615 if (nv_encoder && force) { in nouveau_connector_detect()
616 struct drm_encoder *encoder = to_drm_encoder(nv_encoder); in nouveau_connector_detect()
622 nouveau_connector_set_encoder(connector, nv_encoder); in nouveau_connector_detect()
643 struct nouveau_encoder *nv_encoder = NULL; in nouveau_connector_detect_lvds() local
653 nv_encoder = find_encoder(connector, DCB_OUTPUT_LVDS); in nouveau_connector_detect_lvds()
654 if (!nv_encoder) in nouveau_connector_detect_lvds()
673 if (nv_encoder->dcb->lvdsconf.use_acpi_for_edid) { in nouveau_connector_detect_lvds()
685 nv_encoder->dcb->lvdsconf.use_straps_for_mode)) { in nouveau_connector_detect_lvds()
713 nouveau_connector_set_encoder(connector, nv_encoder); in nouveau_connector_detect_lvds()
722 struct nouveau_encoder *nv_encoder; in nouveau_connector_force() local
733 nv_encoder = find_encoder(connector, type); in nouveau_connector_force()
734 if (!nv_encoder) { in nouveau_connector_force()
741 nouveau_connector_set_encoder(connector, nv_encoder); in nouveau_connector_force()
750 struct nouveau_encoder *nv_encoder = nv_connector->detected_encoder; in nouveau_connector_set_property() local
751 struct drm_encoder *encoder = to_drm_encoder(nv_encoder); in nouveau_connector_set_property()
758 if (nv_encoder && nv_encoder->dcb->type == DCB_OUTPUT_TV) in nouveau_connector_set_property()
841 struct nouveau_encoder *nv_encoder = nv_connector->detected_encoder; in nouveau_connector_detect_depth() local
857 if (nv_encoder->dcb->type != DCB_OUTPUT_LVDS) { in nouveau_connector_detect_depth()
891 struct nouveau_encoder *nv_encoder = nv_connector->detected_encoder; in nouveau_connector_get_modes() local
892 struct drm_encoder *encoder = to_drm_encoder(nv_encoder); in nouveau_connector_get_modes()
905 if (nv_encoder->dcb->type == DCB_OUTPUT_LVDS && in nouveau_connector_get_modes()
906 (nv_encoder->dcb->lvdsconf.use_straps_for_mode || in nouveau_connector_get_modes()
941 if (nv_encoder->dcb->type == DCB_OUTPUT_TV) in nouveau_connector_get_modes()
986 struct nouveau_encoder *nv_encoder = nv_connector->detected_encoder; in nouveau_connector_mode_valid() local
987 struct drm_encoder *encoder = to_drm_encoder(nv_encoder); in nouveau_connector_mode_valid()
992 switch (nv_encoder->dcb->type) { in nouveau_connector_mode_valid()
1006 nv_encoder->dcb->duallink_possible) in nouveau_connector_mode_valid()
1010 max_clock = nv_encoder->dcb->crtconf.maxfreq; in nouveau_connector_mode_valid()
1017 max_clock = nv_encoder->dp.link_nr; in nouveau_connector_mode_valid()
1018 max_clock *= nv_encoder->dp.link_bw; in nouveau_connector_mode_valid()
1095 struct nouveau_encoder *nv_encoder; in nouveau_connector_hotplug() local
1119 if ((nv_encoder = find_encoder(connector, DCB_OUTPUT_DP))) in nouveau_connector_hotplug()
1120 nv50_mstm_service(nv_encoder->dp.mstm); in nouveau_connector_hotplug()
1125 if ((nv_encoder = find_encoder(connector, DCB_OUTPUT_DP))) { in nouveau_connector_hotplug()
1127 nv50_mstm_remove(nv_encoder->dp.mstm); in nouveau_connector_hotplug()
1143 struct nouveau_encoder *nv_encoder; in nouveau_connector_aux_xfer() local
1148 nv_encoder = find_encoder(&nv_connector->base, DCB_OUTPUT_DP); in nouveau_connector_aux_xfer()
1149 if (!nv_encoder || !(aux = nv_encoder->aux)) in nouveau_connector_aux_xfer()