Home
last modified time | relevance | path

Searched refs:pwr_role (Results 1 – 2 of 2) sorted by relevance

/drivers/usb/typec/tcpm/
Dtcpm.c311 enum typec_role pwr_role; member
858 if (port->pd_capable && port->pwr_role == TYPEC_SOURCE) { in tcpm_ams_finish()
863 } else if (port->pwr_role == TYPEC_SOURCE) { in tcpm_ams_finish()
1044 return port->tcpc->set_roles(port->tcpc, attached, port->pwr_role, in tcpm_set_attached_state()
1093 port->pwr_role = role; in tcpm_set_roles()
1110 port->pwr_role = role; in tcpm_set_pwr_role()
1159 port->pwr_role, in tcpm_pd_send_source_caps()
1165 port->pwr_role, in tcpm_pd_send_source_caps()
1196 port->pwr_role, in tcpm_pd_send_sink_caps()
1202 port->pwr_role, in tcpm_pd_send_sink_caps()
[all …]
/drivers/usb/typec/
Dclass.c55 enum typec_role pwr_role; member
1408 return sprintf(buf, "%s\n", port->pwr_role == TYPEC_SOURCE ? in power_role_show()
1411 return sprintf(buf, "[%s]\n", typec_roles[port->pwr_role]); in power_role_show()
1724 if (port->pwr_role == role) in typec_set_pwr_role()
1727 port->pwr_role = role; in typec_set_pwr_role()
2072 port->pwr_role = TYPEC_SOURCE; in typec_register_port()
2076 port->pwr_role = TYPEC_SINK; in typec_register_port()
2081 port->pwr_role = cap->prefer_role; in typec_register_port()
2083 port->pwr_role = TYPEC_SINK; in typec_register_port()