Lines Matching refs:mxm
29 #include <subdev/bios/mxm.h>
37 mxm_match_tmds_partner(struct nvkm_mxm *mxm, u8 *data, void *info)
42 mxms_output_device(mxm, data, &desc);
50 mxm_match_dcb(struct nvkm_mxm *mxm, u8 *data, void *info)
52 struct nvkm_bios *bios = mxm->subdev.device->bios;
56 mxms_output_device(mxm, data, &ctx->desc);
58 /* match dcb encoder type to mxm-ods device type */
63 * table in the vbios that provides a mapping from the mxm digital
85 mxms_foreach(mxm, 0x01, mxm_match_tmds_partner, ctx)) {
97 struct nvkm_mxm *mxm = data;
105 if (mxms_foreach(mxm, 0x01, mxm_match_dcb, &ctx)) {
106 nvkm_debug(&mxm->subdev, "disable %d: %08x %08x\n",
113 * with the mapping from mxm ddc/aux port to dcb i2c_index in the
114 * vbios mxm table
127 /* override dcb sorconf.link, based on what mxm data says */
143 * and the mxm data says the connector is really HDMI. another
171 if (mxms_version(mxm) >= 0x0300)
178 mxm_show_unmatched(struct nvkm_mxm *mxm, u8 *data, void *info)
180 struct nvkm_subdev *subdev = &mxm->subdev;
188 mxm_dcb_sanitise(struct nvkm_mxm *mxm)
190 struct nvkm_subdev *subdev = &mxm->subdev;
199 dcb_outp_foreach(bios, mxm, mxm_dcb_sanitise_entry);
200 mxms_foreach(mxm, 0x01, mxm_show_unmatched, NULL);
207 struct nvkm_mxm *mxm;
210 ret = nvkm_mxm_new_(device, type, inst, &mxm);
211 if (mxm)
212 *pmxm = &mxm->subdev;
216 if (mxm->action & MXM_SANITISE_DCB)
217 mxm_dcb_sanitise(mxm);