Searched refs:altmodes (Results 1 – 4 of 4) sorted by relevance
267 struct typec_altmode *typec_match_altmode(struct typec_altmode **altmodes, in typec_match_altmode() argument273 if (!altmodes[i]) in typec_match_altmode()275 if (altmodes[i]->svid == svid && altmodes[i]->mode == mode) in typec_match_altmode()276 return altmodes[i]; in typec_match_altmode()
4 obj-$(CONFIG_TYPEC) += altmodes/
66 source "drivers/usb/typec/altmodes/Kconfig"
180 int altmodes; /* number of alternate modes */ member1015 if (pmdata->altmodes >= ARRAY_SIZE(port->partner_altmode)) { in svdm_consume_modes()1021 paltmode = &pmdata->altmode_desc[pmdata->altmodes]; in svdm_consume_modes()1029 pmdata->altmodes, paltmode->svid, in svdm_consume_modes()1032 pmdata->altmodes++; in svdm_consume_modes()1042 for (i = 0; i < modep->altmodes; i++) { in tcpm_register_partner_altmodes()2687 for (i = 0; i < modep->altmodes; i++) { in tcpm_unregister_altmodes()