Searched refs:num_altmodes (Results 1 – 3 of 3) sorted by relevance
718 int num_altmodes; in number_of_alternate_modes_show() local722 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() argument933 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 …]
156 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);
763 int num_altmodes = 0; in cros_typec_register_altmodes() local798 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()