Searched refs:try_role (Results 1 – 4 of 4) sorted by relevance
151 int (*try_role)(struct tcpc_dev *dev, int role); member
202 int (*try_role)(const struct typec_capability *, member
230 int try_role; member364 ((port)->try_snk_count == 0 && (port)->try_role == TYPEC_SINK && \368 ((port)->try_src_count == 0 && (port)->try_role == TYPEC_SOURCE && \374 if (port->try_role == TYPEC_SINK) in tcpm_default_state()376 else if (port->try_role == TYPEC_SOURCE) in tcpm_default_state()3956 if (port->try_role == TYPEC_NO_PREFERRED_ROLE || in tcpm_dr_set()3957 port->try_role == port->pwr_role) { in tcpm_dr_set()4079 if (tcpc->try_role) in tcpm_try_role()4080 ret = tcpc->try_role(tcpc, role); in tcpm_try_role()4082 port->try_role = role; in tcpm_try_role()[all …]
952 if (!port->cap->try_role) { in preferred_role_store()965 ret = port->cap->try_role(port->cap, role); in preferred_role_store()