Lines Matching refs:alt
17 typec_altmode_set_retimer(struct altmode *alt, unsigned long conf, void *data)
21 if (!alt->retimer)
24 state.alt = &alt->adev;
28 return typec_retimer_set(alt->retimer, &state);
32 typec_altmode_set_mux(struct altmode *alt, unsigned long conf, void *data)
36 if (!alt->mux)
39 state.alt = &alt->adev;
43 return typec_mux_set(alt->mux, &state);
48 typec_altmode_set_switches(struct altmode *alt, unsigned long conf, void *data)
52 ret = typec_altmode_set_retimer(alt, conf, data);
56 return typec_altmode_set_mux(alt, conf, data);
438 struct typec_altmode *alt = to_typec_altmode(dev);
440 return sprintf(buf, "%s\n", alt->desc ? alt->desc : "");
477 static int typec_altmode_create_links(struct altmode *alt)
479 struct device *port_dev = &alt->partner->adev.dev;
480 struct device *dev = &alt->adev.dev;
494 static void typec_altmode_remove_links(struct altmode *alt)
496 sysfs_remove_link(&alt->partner->adev.dev.kobj, "partner");
497 sysfs_remove_link(&alt->adev.dev.kobj, "port");