Home
last modified time | relevance | path

Searched refs:num_altmodes (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/usb/typec/
H A Dclass.c718 int num_altmodes; in number_of_alternate_modes_show() local
722 num_altmodes = partner->num_altmodes; in number_of_alternate_modes_show()
725 num_altmodes = plug->num_altmodes; in number_of_alternate_modes_show()
730 return sysfs_emit(buf, "%d\n", num_altmodes); in number_of_alternate_modes_show()
757 if (partner->num_altmodes < 0) in typec_partner_attr_is_visible()
929 int typec_partner_set_num_altmodes(struct typec_partner *partner, int num_altmodes) in typec_partner_set_num_altmodes() argument
933 if (num_altmodes < 0) in typec_partner_set_num_altmodes()
936 partner->num_altmodes = num_altmodes; in typec_partner_set_num_altmodes()
1023 partner->num_altmodes = -1; in typec_register_partner()
1114 if (plug->num_altmodes < 0) in typec_plug_attr_is_visible()
[all …]
/linux/include/linux/usb/
H A Dtypec.h156 int typec_partner_set_num_altmodes(struct typec_partner *partner, int num_altmodes);
160 int typec_plug_set_num_altmodes(struct typec_plug *plug, int num_altmodes);
/linux/drivers/platform/chrome/
H A Dcros_ec_typec.c763 int num_altmodes = 0; in cros_typec_register_altmodes() local
798 num_altmodes++; in cros_typec_register_altmodes()
803 ret = typec_partner_set_num_altmodes(port->partner, num_altmodes); in cros_typec_register_altmodes()
805 ret = typec_plug_set_num_altmodes(port->plug, num_altmodes); in cros_typec_register_altmodes()