Lines Matching refs:attached
304 bool attached; member
527 return (!port->attached && port->cc1 == TYPEC_CC_OPEN && in tcpm_port_is_disconnected()
529 (port->attached && ((port->polarity == TYPEC_POLARITY_CC1 && in tcpm_port_is_disconnected()
698 static int tcpm_set_attached_state(struct tcpm_port *port, bool attached) in tcpm_set_attached_state() argument
700 return port->tcpc->set_roles(port->tcpc, attached, port->pwr_role, in tcpm_set_attached_state()
704 static int tcpm_set_roles(struct tcpm_port *port, bool attached, in tcpm_set_roles() argument
729 ret = port->tcpc->set_roles(port->tcpc, attached, role, data); in tcpm_set_roles()
1368 port->attached); in tcpm_pd_rx_handler()
1370 if (port->attached) { in tcpm_pd_rx_handler()
2013 if (port->attached) in tcpm_src_attach()
2048 port->attached = true; in tcpm_src_attach()
2078 port->attached = false; in tcpm_reset_port()
2104 if (!port->attached) in tcpm_detach()
2119 if (port->attached) in tcpm_snk_attach()
2135 port->attached = true; in tcpm_snk_attach()
2152 if (port->attached) in tcpm_acc_attach()
2163 port->attached = true; in tcpm_acc_attach()
3128 if (port->pwr_role == TYPEC_SINK && port->attached) in _tcpm_pd_vbus_off()
3498 port->attached, in tcpm_poll_event()