Lines Matching refs:mst_enc

28 				     struct radeon_encoder_mst *mst_enc,  in radeon_dp_mst_set_be_cntl()  argument
44 reg |= NI_DIG_FE_SOURCE_SELECT(1 << mst_enc->fe); in radeon_dp_mst_set_be_cntl()
46 reg &= ~NI_DIG_FE_SOURCE_SELECT(1 << mst_enc->fe); in radeon_dp_mst_set_be_cntl()
53 uint32_t offset = radeon_atom_set_enc_offset(mst_enc->fe); 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()
125 struct radeon_encoder_mst *mst_enc; in radeon_dp_mst_update_stream_attribs() local
135 mst_enc = subenc->enc_priv; in radeon_dp_mst_update_stream_attribs()
137 if (!mst_enc->enc_active) in radeon_dp_mst_update_stream_attribs()
140 new_attribs[idx].fe = mst_enc->fe; in radeon_dp_mst_update_stream_attribs()
141 new_attribs[idx].slots = drm_dp_mst_get_vcpi_slots(&mst_conn->mst_mgr, mst_enc->port); in radeon_dp_mst_update_stream_attribs()
167 struct radeon_encoder_mst *mst_enc = mst->enc_priv; in radeon_dp_mst_set_vcp_size() local
169 uint32_t offset = radeon_atom_set_enc_offset(mst_enc->fe); in radeon_dp_mst_set_vcp_size()
184 DRM_ERROR("timed out wait for rate cntl %d\n", mst_enc->fe); in radeon_dp_mst_set_vcp_size()
336 struct radeon_encoder_mst *mst_enc = radeon_encoder->enc_priv; in radeon_dp_mst_prepare_pll() local
339 struct radeon_connector_atom_dig *dig_connector = mst_enc->connector->con_priv; in radeon_dp_mst_prepare_pll()
363 struct radeon_encoder_mst *mst_enc; in radeon_mst_encoder_dpms() local
381 mst_enc = radeon_encoder->enc_priv; in radeon_mst_encoder_dpms()
383 primary = mst_enc->primary; in radeon_mst_encoder_dpms()
397 mst_enc->fe = dig_enc->dig_encoder; in radeon_mst_encoder_dpms()
398 mst_enc->fe_from_be = true; in radeon_mst_encoder_dpms()
399 atombios_set_mst_encoder_crtc_source(encoder, mst_enc->fe); in radeon_mst_encoder_dpms()
405 if (radeon_dp_needs_link_train(mst_enc->connector) || in radeon_mst_encoder_dpms()
407 radeon_dp_link_train(&primary->base, &mst_enc->connector->base); in radeon_mst_encoder_dpms()
411 mst_enc->fe = radeon_atom_pick_dig_encoder(encoder, radeon_crtc->crtc_id); in radeon_mst_encoder_dpms()
412 if (mst_enc->fe == -1) in radeon_mst_encoder_dpms()
414 mst_enc->fe_from_be = false; in radeon_mst_encoder_dpms()
415 atombios_set_mst_encoder_crtc_source(encoder, mst_enc->fe); in radeon_mst_encoder_dpms()
422 mst_enc->pbn); in radeon_mst_encoder_dpms()
425 mst_enc->pbn, slots); in radeon_mst_encoder_dpms()
428 radeon_dp_mst_set_be_cntl(primary, mst_enc, in radeon_mst_encoder_dpms()
431 mst_enc->enc_active = true; in radeon_mst_encoder_dpms()
434 fixed_pbn = drm_int2fixp(mst_enc->pbn); in radeon_mst_encoder_dpms()
440 mst_enc->fe); in radeon_mst_encoder_dpms()
451 if (!mst_enc->enc_active) in radeon_mst_encoder_dpms()
454 drm_dp_mst_reset_vcpi_slots(&radeon_connector->mst_port->mst_mgr, mst_enc->port); in radeon_mst_encoder_dpms()
461 drm_dp_mst_deallocate_vcpi(&radeon_connector->mst_port->mst_mgr, mst_enc->port); in radeon_mst_encoder_dpms()
463 mst_enc->enc_active = false; in radeon_mst_encoder_dpms()
466 radeon_dp_mst_set_be_cntl(primary, mst_enc, in radeon_mst_encoder_dpms()
469 mst_enc->fe); in radeon_mst_encoder_dpms()
471 if (!mst_enc->fe_from_be) in radeon_mst_encoder_dpms()
472 radeon_atom_release_dig_encoder(rdev, mst_enc->fe); in radeon_mst_encoder_dpms()
474 mst_enc->fe_from_be = false; in radeon_mst_encoder_dpms()
489 struct radeon_encoder_mst *mst_enc; in radeon_mst_mode_fixup() local
494 mst_enc = radeon_encoder->enc_priv; in radeon_mst_mode_fixup()
496 mst_enc->pbn = drm_dp_calc_pbn_mode(adjusted_mode->clock, bpp, false); in radeon_mst_mode_fixup()
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()
505 dig_connector = mst_enc->connector->con_priv; in radeon_mst_mode_fixup()
517 struct radeon_encoder_mst *mst_enc; in radeon_mst_encoder_prepare() local
529 mst_enc = radeon_encoder->enc_priv; in radeon_mst_encoder_prepare()
531 primary = mst_enc->primary; in radeon_mst_encoder_prepare()
535 mst_enc->port = radeon_connector->port; in radeon_mst_encoder_prepare()
585 struct radeon_encoder_mst *mst_enc; in radeon_dp_create_fake_mst_encoder() local
595 radeon_encoder->enc_priv = kzalloc(sizeof(*mst_enc), GFP_KERNEL); in radeon_dp_create_fake_mst_encoder()
621 mst_enc = radeon_encoder->enc_priv; in radeon_dp_create_fake_mst_encoder()
622 mst_enc->connector = connector; in radeon_dp_create_fake_mst_encoder()
623 mst_enc->primary = to_radeon_encoder(enc_master); in radeon_dp_create_fake_mst_encoder()