Lines Matching refs:mstc

933 	struct nv50_mstc *mstc;  member
946 if (!msto->mstc) in nv50_real_outp()
948 return msto->mstc->mstm->outp; in nv50_real_outp()
959 drm_atomic_get_mst_payload_state(mst_state, msto->mstc->port); in nv50_msto_cleanup()
964 msto->mstc = NULL; in nv50_msto_cleanup()
979 struct nv50_mstc *mstc = msto->mstc; in nv50_msto_prepare() local
980 struct nv50_mstm *mstm = mstc->mstm; in nv50_msto_prepare()
995 payload = drm_atomic_get_mst_payload_state(mst_state, mstc->port); in nv50_msto_prepare()
1026 struct nv50_mstc *mstc = nv50_mstc(connector); in nv50_msto_atomic_check() local
1027 struct nv50_mstm *mstm = mstc->mstm; in nv50_msto_atomic_check()
1033 mstc->native); in nv50_msto_atomic_check()
1058 struct nouveau_encoder *outp = mstc->mstm->outp; in nv50_msto_atomic_check()
1064 slots = drm_dp_atomic_find_time_slots(state, &mstm->mgr, mstc->port, asyh->dp.pbn); in nv50_msto_atomic_check()
1091 struct nv50_mstc *mstc = NULL; in nv50_msto_atomic_enable() local
1100 mstc = nv50_mstc(connector); in nv50_msto_atomic_enable()
1101 mstm = mstc->mstm; in nv50_msto_atomic_enable()
1107 if (WARN_ON(!mstc)) in nv50_msto_atomic_enable()
1121 msto->mstc = mstc; in nv50_msto_atomic_enable()
1130 struct nv50_mstc *mstc = msto->mstc; in nv50_msto_atomic_disable() local
1131 struct nv50_mstm *mstm = mstc->mstm; in nv50_msto_atomic_disable()
1189 struct nv50_mstc *mstc = nv50_mstc(connector); in nv50_mstc_atomic_best_encoder() local
1192 if (!(mstc->mstm->outp->dcb->heads & drm_crtc_mask(crtc))) in nv50_mstc_atomic_best_encoder()
1202 struct nv50_mstc *mstc = nv50_mstc(connector); in nv50_mstc_mode_valid() local
1203 struct nouveau_encoder *outp = mstc->mstm->outp; in nv50_mstc_mode_valid()
1215 struct nv50_mstc *mstc = nv50_mstc(connector); in nv50_mstc_get_modes() local
1218 mstc->edid = drm_dp_mst_get_edid(&mstc->connector, mstc->port->mgr, mstc->port); in nv50_mstc_get_modes()
1219 drm_connector_update_edid_property(&mstc->connector, mstc->edid); in nv50_mstc_get_modes()
1220 if (mstc->edid) in nv50_mstc_get_modes()
1221 ret = drm_add_edid_modes(&mstc->connector, mstc->edid); in nv50_mstc_get_modes()
1235 if (mstc->native) in nv50_mstc_get_modes()
1236 drm_mode_destroy(mstc->connector.dev, mstc->native); in nv50_mstc_get_modes()
1237 mstc->native = nouveau_conn_native_mode(&mstc->connector); in nv50_mstc_get_modes()
1245 struct nv50_mstc *mstc = nv50_mstc(connector); in nv50_mstc_atomic_check() local
1246 struct drm_dp_mst_topology_mgr *mgr = &mstc->mstm->mgr; in nv50_mstc_atomic_check()
1248 return drm_dp_atomic_release_time_slots(state, mgr, mstc->port); in nv50_mstc_atomic_check()
1255 struct nv50_mstc *mstc = nv50_mstc(connector); in nv50_mstc_detect() local
1267 ret = drm_dp_mst_detect_port(connector, ctx, mstc->port->mgr, in nv50_mstc_detect()
1268 mstc->port); in nv50_mstc_detect()
1290 struct nv50_mstc *mstc = nv50_mstc(connector); in nv50_mstc_destroy() local
1292 drm_connector_cleanup(&mstc->connector); in nv50_mstc_destroy()
1293 drm_dp_mst_put_port_malloc(mstc->port); in nv50_mstc_destroy()
1295 kfree(mstc); in nv50_mstc_destroy()
1315 struct nv50_mstc *mstc; in nv50_mstc_new() local
1318 if (!(mstc = *pmstc = kzalloc(sizeof(*mstc), GFP_KERNEL))) in nv50_mstc_new()
1320 mstc->mstm = mstm; in nv50_mstc_new()
1321 mstc->port = port; in nv50_mstc_new()
1323 ret = drm_connector_init(dev, &mstc->connector, &nv50_mstc, in nv50_mstc_new()
1331 drm_connector_helper_add(&mstc->connector, &nv50_mstc_help); in nv50_mstc_new()
1333 mstc->connector.funcs->reset(&mstc->connector); in nv50_mstc_new()
1334 nouveau_conn_attach_properties(&mstc->connector); in nv50_mstc_new()
1340 drm_connector_attach_encoder(&mstc->connector, in nv50_mstc_new()
1344 drm_object_attach_property(&mstc->connector.base, dev->mode_config.path_property, 0); in nv50_mstc_new()
1345 drm_object_attach_property(&mstc->connector.base, dev->mode_config.tile_property, 0); in nv50_mstc_new()
1346 drm_connector_set_path_property(&mstc->connector, path); in nv50_mstc_new()
1365 struct nv50_mstc *mstc = msto->mstc; in nv50_mstm_cleanup() local
1366 if (mstc && mstc->mstm == mstm) in nv50_mstm_cleanup()
1388 struct nv50_mstc *mstc = msto->mstc; in nv50_mstm_prepare() local
1389 if (mstc && mstc->mstm == mstm && msto->disabled) in nv50_mstm_prepare()
1400 struct nv50_mstc *mstc = msto->mstc; in nv50_mstm_prepare() local
1401 if (mstc && mstc->mstm == mstm && !msto->disabled) in nv50_mstm_prepare()
1418 struct nv50_mstc *mstc; in nv50_mstm_add_connector() local
1421 ret = nv50_mstc_new(mstm, port, path, &mstc); in nv50_mstm_add_connector()
1425 return &mstc->connector; in nv50_mstm_add_connector()