Lines Matching defs:msto

939 	struct nv50_msto *msto;
944 msto = nv50_msto(encoder);
945 if (!msto->mstc)
947 return msto->mstc->mstm->outp;
951 nv50_msto_payload(struct nv50_msto *msto)
953 struct nouveau_drm *drm = nouveau_drm(msto->encoder.dev);
954 struct nv50_mstc *mstc = msto->mstc;
960 NV_ATOMIC(drm, "%s: vcpi %d\n", msto->encoder.name, vcpi);
978 nv50_msto_cleanup(struct nv50_msto *msto)
980 struct nouveau_drm *drm = nouveau_drm(msto->encoder.dev);
981 struct nv50_mstc *mstc = msto->mstc;
984 if (!msto->disabled)
987 NV_ATOMIC(drm, "%s: msto cleanup\n", msto->encoder.name);
991 msto->mstc = NULL;
992 msto->disabled = false;
996 nv50_msto_prepare(struct nv50_msto *msto)
998 struct nouveau_drm *drm = nouveau_drm(msto->encoder.dev);
999 struct nv50_mstc *mstc = msto->mstc;
1009 (0x0100 << msto->head->base.index),
1014 NV_ATOMIC(drm, "%s: msto prepare\n", msto->encoder.name);
1016 struct drm_dp_payload *payload = nv50_msto_payload(msto);
1026 msto->encoder.name, msto->head->base.base.name,
1094 struct nv50_msto *msto = nv50_msto(encoder);
1104 if (connector->state->best_encoder == &msto->encoder) {
1131 msto->mstc = mstc;
1138 struct nv50_msto *msto = nv50_msto(encoder);
1139 struct nv50_mstc *mstc = msto->mstc;
1144 mstm->outp->update(mstm->outp, msto->head->base.index, NULL, 0, 0);
1148 msto->disabled = true;
1161 struct nv50_msto *msto = nv50_msto(encoder);
1162 drm_encoder_cleanup(&msto->encoder);
1163 kfree(msto);
1174 struct nv50_msto *msto;
1177 msto = kzalloc(sizeof(*msto), GFP_KERNEL);
1178 if (!msto)
1181 ret = drm_encoder_init(dev, &msto->encoder, &nv50_msto,
1184 kfree(msto);
1188 drm_encoder_helper_add(&msto->encoder, &nv50_msto_help);
1189 msto->encoder.possible_crtcs = drm_crtc_mask(&head->base.base);
1190 msto->head = head;
1191 return msto;
1204 return &nv50_head(crtc)->msto->encoder;
1371 &nv50_head(crtc)->msto->encoder);
1395 struct nv50_msto *msto = nv50_msto(encoder);
1396 struct nv50_mstc *mstc = msto->mstc;
1398 nv50_msto_cleanup(msto);
1417 struct nv50_msto *msto = nv50_msto(encoder);
1418 struct nv50_mstc *mstc = msto->mstc;
1420 nv50_msto_prepare(msto);
2728 head->msto = nv50_msto_new(dev, head, i);
2729 if (IS_ERR(head->msto)) {
2730 ret = PTR_ERR(head->msto);
2731 head->msto = NULL;
2745 head->msto->encoder.possible_crtcs = crtcs;