Lines Matching defs:alt

21 	struct typec_altmode *alt;
39 * them. That is because UCSI defines alt mode details and alt mode "overriding"
42 * In case alt mode details are supported, but overriding is not, the driver
48 static int ucsi_displayport_enter(struct typec_altmode *alt, u32 *vdo)
50 struct ucsi_dp *dp = typec_altmode_get_drvdata(alt);
60 const struct typec_altmode *p = typec_altmode_get_partner(alt);
77 ret = dp->con->port_altmode[cur] == alt ? 0 : -EBUSY;
84 * mode, and letting the alt mode driver continue.
87 svdm_version = typec_altmode_get_svdm_version(alt);
108 static int ucsi_displayport_exit(struct typec_altmode *alt)
110 struct ucsi_dp *dp = typec_altmode_get_drvdata(alt);
118 const struct typec_altmode *p = typec_altmode_get_partner(alt);
131 svdm_version = typec_altmode_get_svdm_version(alt);
158 u32 cap = dp->alt->vdo;
197 static int ucsi_displayport_vdm(struct typec_altmode *alt,
200 struct ucsi_dp *dp = typec_altmode_get_drvdata(alt);
208 const struct typec_altmode *p = typec_altmode_get_partner(alt);
216 svdm_version = typec_altmode_get_svdm_version(alt);
280 ret = typec_altmode_vdm(dp->alt, dp->header,
283 dev_err(&dp->alt->dev, "VDM 0x%x failed\n", dp->header);
292 void ucsi_displayport_remove_partner(struct typec_altmode *alt)
296 if (!alt)
299 dp = typec_altmode_get_drvdata(alt);
314 struct typec_altmode *alt;
324 alt = typec_port_register_altmode(con->port, desc);
325 if (IS_ERR(alt))
326 return alt;
328 dp = devm_kzalloc(&alt->dev, sizeof(*dp), GFP_KERNEL);
330 typec_unregister_altmode(alt);
338 dp->alt = alt;
340 alt->ops = &ucsi_displayport_ops;
341 typec_altmode_set_drvdata(alt, dp);
343 return alt;