Searched refs:try_role (Results 1 – 5 of 5) sorted by relevance
140 int (*try_role)(struct tcpc_dev *dev, int role); member
218 int (*try_role)(struct typec_port *port, int role); member
208 .try_role = wusb3801_try_role,
1220 if (!port->ops || !port->ops->try_role) { in preferred_role_store()1233 ret = port->ops->try_role(port, role); in preferred_role_store()1561 !port->ops || !port->ops->try_role) in typec_attr_is_visible()
351 int try_role; member528 ((port)->try_snk_count == 0 && (port)->try_role == TYPEC_SINK && \532 ((port)->try_src_count == 0 && (port)->try_role == TYPEC_SOURCE && \553 if (port->try_role == TYPEC_SINK) in tcpm_default_state()555 else if (port->try_role == TYPEC_SOURCE) in tcpm_default_state()5506 if (port->try_role == TYPEC_NO_PREFERRED_ROLE || in tcpm_dr_set()5507 port->try_role == port->pwr_role) { in tcpm_dr_set()5644 if (tcpc->try_role) in tcpm_try_role()5645 ret = tcpc->try_role(tcpc, role); in tcpm_try_role()5647 port->try_role = role; in tcpm_try_role()[all …]