Lines Matching full:primary

27 static int radeon_dp_mst_set_be_cntl(struct radeon_encoder *primary,  in radeon_dp_mst_set_be_cntl()  argument
31 struct drm_device *dev = primary->base.dev; in radeon_dp_mst_set_be_cntl()
37 reg = RREG32(NI_DIG_BE_CNTL + primary->offset); in radeon_dp_mst_set_be_cntl()
49 DRM_DEBUG_KMS("writing 0x%08x 0x%08x\n", NI_DIG_BE_CNTL + primary->offset, reg); in radeon_dp_mst_set_be_cntl()
50 WREG32(NI_DIG_BE_CNTL + primary->offset, reg); in radeon_dp_mst_set_be_cntl()
59 DRM_ERROR("timed out waiting for FE %d %d\n", primary->offset, mst_enc->fe); in radeon_dp_mst_set_be_cntl()
64 static int radeon_dp_mst_set_stream_attrib(struct radeon_encoder *primary, in radeon_dp_mst_set_stream_attrib() argument
69 struct drm_device *dev = primary->base.dev; in radeon_dp_mst_set_stream_attrib()
78 temp = RREG32(NI_DP_MSE_SAT0 + satreg + primary->offset); in radeon_dp_mst_set_stream_attrib()
88 DRM_DEBUG_KMS("writing 0x%08x 0x%08x\n", NI_DP_MSE_SAT0 + satreg + primary->offset, temp); in radeon_dp_mst_set_stream_attrib()
89 WREG32(NI_DP_MSE_SAT0 + satreg + primary->offset, temp); in radeon_dp_mst_set_stream_attrib()
91 WREG32(NI_DP_MSE_SAT_UPDATE + primary->offset, 1); in radeon_dp_mst_set_stream_attrib()
96 temp = RREG32(NI_DP_MSE_SAT_UPDATE + primary->offset); in radeon_dp_mst_set_stream_attrib()
106 DRM_ERROR("timed out waitin for SAT update %d\n", primary->offset); in radeon_dp_mst_set_stream_attrib()
113 struct radeon_encoder *primary) in radeon_dp_mst_update_stream_attribs() argument
148 radeon_dp_mst_set_stream_attrib(primary, i, new_attribs[i].fe, new_attribs[i].slots); in radeon_dp_mst_update_stream_attribs()
155 radeon_dp_mst_set_stream_attrib(primary, i, 0, 0); in radeon_dp_mst_update_stream_attribs()
362 struct radeon_encoder *radeon_encoder, *primary; in radeon_mst_encoder_dpms() local
383 primary = mst_enc->primary; in radeon_mst_encoder_dpms()
385 dig_enc = primary->enc_priv; in radeon_mst_encoder_dpms()
401 atombios_dig_encoder_setup(&primary->base, ATOM_ENCODER_CMD_SETUP, 0); in radeon_mst_encoder_dpms()
402 atombios_dig_transmitter_setup2(&primary->base, ATOM_TRANSMITTER_ACTION_ENABLE, in radeon_mst_encoder_dpms()
407 radeon_dp_link_train(&primary->base, &mst_enc->connector->base); in radeon_mst_encoder_dpms()
428 radeon_dp_mst_set_be_cntl(primary, mst_enc, in radeon_mst_encoder_dpms()
432 radeon_dp_mst_update_stream_attribs(radeon_connector->mst_port, primary); in radeon_mst_encoder_dpms()
439 atombios_dig_encoder_setup2(&primary->base, ATOM_ENCODER_CMD_DP_VIDEO_ON, 0, in radeon_mst_encoder_dpms()
464 radeon_dp_mst_update_stream_attribs(radeon_connector->mst_port, primary); in radeon_mst_encoder_dpms()
466 radeon_dp_mst_set_be_cntl(primary, mst_enc, in radeon_mst_encoder_dpms()
468 atombios_dig_encoder_setup2(&primary->base, ATOM_ENCODER_CMD_DP_VIDEO_OFF, 0, in radeon_mst_encoder_dpms()
498 mst_enc->primary->active_device = mst_enc->primary->devices & mst_enc->connector->devices; in radeon_mst_mode_fixup()
500 mst_enc->primary->active_device, mst_enc->primary->devices, in radeon_mst_mode_fixup()
501 mst_enc->connector->devices, mst_enc->primary->base.encoder_type); in radeon_mst_mode_fixup()
516 struct radeon_encoder *radeon_encoder, *primary; in radeon_mst_encoder_prepare() local
531 primary = mst_enc->primary; in radeon_mst_encoder_prepare()
533 dig_enc = primary->enc_priv; in radeon_mst_encoder_prepare()
538 dig_enc->dig_encoder = radeon_atom_pick_dig_encoder(&primary->base, -1); in radeon_mst_encoder_prepare()
539 primary->offset = radeon_atom_set_enc_offset(dig_enc->dig_encoder); in radeon_mst_encoder_prepare()
544 DRM_DEBUG_KMS("%d %d\n", dig_enc->dig_encoder, primary->offset); in radeon_mst_encoder_prepare()
623 mst_enc->primary = to_radeon_encoder(enc_master); in radeon_dp_create_fake_mst_encoder()
772 struct dentry *root = rdev->ddev->primary->debugfs_root; in radeon_mst_debugfs_init()