Home
last modified time | relevance | path

Searched refs:try_role (Results 1 – 5 of 5) sorted by relevance

/linux-5.19.10/include/linux/usb/
Dtcpm.h140 int (*try_role)(struct tcpc_dev *dev, int role); member
Dtypec.h218 int (*try_role)(struct typec_port *port, int role); member
/linux-5.19.10/drivers/usb/typec/
Dwusb3801.c208 .try_role = wusb3801_try_role,
Dclass.c1220 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()
/linux-5.19.10/drivers/usb/typec/tcpm/
Dtcpm.c351 int try_role; member
528 ((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 …]