Searched refs:prefer_role (Results 1 – 8 of 8) sorted by relevance
53 int prefer_role; member1298 port->prefer_role = role; in preferred_role_store()1311 if (port->prefer_role < 0) in preferred_role_show()1314 return sprintf(buf, "%s\n", typec_roles[port->prefer_role]); in preferred_role_show()2080 if (cap->prefer_role != TYPEC_NO_PREFERRED_ROLE) in typec_register_port()2081 port->pwr_role = cap->prefer_role; in typec_register_port()2095 if (cap->prefer_role == TYPEC_SOURCE) in typec_register_port()2108 port->prefer_role = cap->prefer_role; in typec_register_port()
196 typec_cap.prefer_role = TYPEC_NO_PREFERRED_ROLE; in hd3ss3220_probe()
186 cap.prefer_role = TYPEC_NO_PREFERRED_ROLE; in qcom_pmic_typec_probe()
529 typec_cap.prefer_role = TYPEC_NO_PREFERRED_ROLE; in tps6598x_probe()
559 chip->capability.prefer_role = TYPEC_SINK; in stusb160x_get_fw_caps()
104 cap->prefer_role = ret; in cros_typec_parse_port_props()
1092 cap->prefer_role = TYPEC_NO_PREFERRED_ROLE; in ucsi_register_port()
6184 port->typec_caps.prefer_role = typec_find_power_role(cap_str); in tcpm_fw_get_caps()6185 if (port->typec_caps.prefer_role < 0) in tcpm_fw_get_caps()6618 port->try_role = port->typec_caps.prefer_role; in tcpm_register_port()