Searched refs:altmodes (Results 1 – 5 of 5) sorted by relevance
315 struct typec_altmode *typec_match_altmode(struct typec_altmode **altmodes, in typec_match_altmode() argument321 if (!altmodes[i]) in typec_match_altmode()323 if (altmodes[i]->svid == svid && altmodes[i]->mode == mode) in typec_match_altmode()324 return altmodes[i]; in typec_match_altmode()
5 obj-$(CONFIG_TYPEC) += altmodes/
115 source "drivers/usb/typec/altmodes/Kconfig"
2145 struct typec_altmode **altmodes, size_t n) in typec_port_register_altmodes() argument2191 altmodes[index] = alt; in typec_port_register_altmodes()
270 int altmodes; /* number of alternate modes */ member1565 if (pmdata->altmodes >= ARRAY_SIZE(port->partner_altmode)) { in svdm_consume_modes()1571 paltmode = &pmdata->altmode_desc[pmdata->altmodes]; in svdm_consume_modes()1579 pmdata->altmodes, paltmode->svid, in svdm_consume_modes()1582 pmdata->altmodes++; in svdm_consume_modes()1595 for (i = 0; i < modep->altmodes; i++) { in tcpm_register_partner_altmodes()3703 for (i = 0; i < modep->altmodes; i++) { in tcpm_unregister_altmodes()