Lines Matching full:primary
28 static int radeon_dp_mst_set_be_cntl(struct radeon_encoder *primary, in radeon_dp_mst_set_be_cntl() argument
32 struct drm_device *dev = primary->base.dev; in radeon_dp_mst_set_be_cntl()
38 reg = RREG32(NI_DIG_BE_CNTL + primary->offset); in radeon_dp_mst_set_be_cntl()
50 DRM_DEBUG_KMS("writing 0x%08x 0x%08x\n", NI_DIG_BE_CNTL + primary->offset, reg); in radeon_dp_mst_set_be_cntl()
51 WREG32(NI_DIG_BE_CNTL + primary->offset, reg); in radeon_dp_mst_set_be_cntl()
60 DRM_ERROR("timed out waiting for FE %d %d\n", primary->offset, mst_enc->fe); in radeon_dp_mst_set_be_cntl()
65 static int radeon_dp_mst_set_stream_attrib(struct radeon_encoder *primary, in radeon_dp_mst_set_stream_attrib() argument
70 struct drm_device *dev = primary->base.dev; in radeon_dp_mst_set_stream_attrib()
79 temp = RREG32(NI_DP_MSE_SAT0 + satreg + primary->offset); in radeon_dp_mst_set_stream_attrib()
89 DRM_DEBUG_KMS("writing 0x%08x 0x%08x\n", NI_DP_MSE_SAT0 + satreg + primary->offset, temp); in radeon_dp_mst_set_stream_attrib()
90 WREG32(NI_DP_MSE_SAT0 + satreg + primary->offset, temp); in radeon_dp_mst_set_stream_attrib()
92 WREG32(NI_DP_MSE_SAT_UPDATE + primary->offset, 1); in radeon_dp_mst_set_stream_attrib()
97 temp = RREG32(NI_DP_MSE_SAT_UPDATE + primary->offset); in radeon_dp_mst_set_stream_attrib()
107 DRM_ERROR("timed out waitin for SAT update %d\n", primary->offset); in radeon_dp_mst_set_stream_attrib()
114 struct radeon_encoder *primary) in radeon_dp_mst_update_stream_attribs() argument
149 radeon_dp_mst_set_stream_attrib(primary, i, new_attribs[i].fe, new_attribs[i].slots); in radeon_dp_mst_update_stream_attribs()
156 radeon_dp_mst_set_stream_attrib(primary, i, 0, 0); in radeon_dp_mst_update_stream_attribs()
360 struct radeon_encoder *radeon_encoder, *primary; in radeon_mst_encoder_dpms() local
381 primary = mst_enc->primary; in radeon_mst_encoder_dpms()
383 dig_enc = primary->enc_priv; in radeon_mst_encoder_dpms()
399 atombios_dig_encoder_setup(&primary->base, ATOM_ENCODER_CMD_SETUP, 0); in radeon_mst_encoder_dpms()
400 atombios_dig_transmitter_setup2(&primary->base, ATOM_TRANSMITTER_ACTION_ENABLE, in radeon_mst_encoder_dpms()
405 radeon_dp_link_train(&primary->base, &mst_enc->connector->base); in radeon_mst_encoder_dpms()
426 radeon_dp_mst_set_be_cntl(primary, mst_enc, in radeon_mst_encoder_dpms()
430 radeon_dp_mst_update_stream_attribs(radeon_connector->mst_port, primary); in radeon_mst_encoder_dpms()
437 atombios_dig_encoder_setup2(&primary->base, ATOM_ENCODER_CMD_DP_VIDEO_ON, 0, in radeon_mst_encoder_dpms()
462 radeon_dp_mst_update_stream_attribs(radeon_connector->mst_port, primary); in radeon_mst_encoder_dpms()
464 radeon_dp_mst_set_be_cntl(primary, mst_enc, in radeon_mst_encoder_dpms()
466 atombios_dig_encoder_setup2(&primary->base, ATOM_ENCODER_CMD_DP_VIDEO_OFF, 0, in radeon_mst_encoder_dpms()
496 mst_enc->primary->active_device = mst_enc->primary->devices & mst_enc->connector->devices; in radeon_mst_mode_fixup()
498 mst_enc->primary->active_device, mst_enc->primary->devices, in radeon_mst_mode_fixup()
499 mst_enc->connector->devices, mst_enc->primary->base.encoder_type); in radeon_mst_mode_fixup()
514 struct radeon_encoder *radeon_encoder, *primary; in radeon_mst_encoder_prepare() local
529 primary = mst_enc->primary; in radeon_mst_encoder_prepare()
531 dig_enc = primary->enc_priv; in radeon_mst_encoder_prepare()
536 dig_enc->dig_encoder = radeon_atom_pick_dig_encoder(&primary->base, -1); in radeon_mst_encoder_prepare()
537 primary->offset = radeon_atom_set_enc_offset(dig_enc->dig_encoder); in radeon_mst_encoder_prepare()
542 DRM_DEBUG_KMS("%d %d\n", dig_enc->dig_encoder, primary->offset); in radeon_mst_encoder_prepare()
621 mst_enc->primary = to_radeon_encoder(enc_master); in radeon_dp_create_fake_mst_encoder()