Lines Matching refs:pwr_role
290 enum typec_role pwr_role; member
700 return port->tcpc->set_roles(port->tcpc, attached, port->pwr_role, in tcpm_set_attached_state()
733 port->pwr_role = role; in tcpm_set_roles()
753 port->pwr_role, in tcpm_pd_send_source_caps()
759 port->pwr_role, in tcpm_pd_send_source_caps()
782 port->pwr_role, in tcpm_pd_send_sink_caps()
788 port->pwr_role, in tcpm_pd_send_sink_caps()
1030 if (port->pwr_role == TYPEC_SOURCE) in ready_state()
1058 tcpm_set_state(port, port->pwr_role == TYPEC_SOURCE ?
1258 if (port->pwr_role == TYPEC_SOURCE) in tcpm_pd_ctrl_request()
1428 msg.header = PD_HEADER_LE(type, port->pwr_role, in tcpm_pd_send_control()
1827 port->pwr_role, in tcpm_pd_send_request()
1924 port->pwr_role, in tcpm_pd_send_pps_request()
2181 if (port->pwr_role == TYPEC_SOURCE) in hard_reset_state()
2191 if (port->pwr_role == TYPEC_SOURCE) in unattached_state()
2519 if (port->pwr_role == TYPEC_SOURCE) in run_state_machine()
2590 if (port->pwr_role == TYPEC_SOURCE) { in run_state_machine()
2628 tcpm_set_roles(port, true, port->pwr_role, in run_state_machine()
2631 tcpm_set_roles(port, true, port->pwr_role, in run_state_machine()
2657 if (port->pwr_role == TYPEC_SOURCE) in run_state_machine()
3128 if (port->pwr_role == TYPEC_SINK && port->attached) in _tcpm_pd_vbus_off()