Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/include/linux/usb/
Dtcpm.h107 int (*try_role)(struct tcpc_dev *dev, int role); member
Dtypec.h199 int (*try_role)(struct typec_port *port, int role); member
/kernel/linux/linux-5.10/drivers/usb/typec/tcpm/
Dtcpm.c284 int try_role; member
434 ((port)->try_snk_count == 0 && (port)->try_role == TYPEC_SINK && \
438 ((port)->try_src_count == 0 && (port)->try_role == TYPEC_SOURCE && \
452 if (port->try_role == TYPEC_SINK) in tcpm_default_state()
454 else if (port->try_role == TYPEC_SOURCE) in tcpm_default_state()
4391 if (port->try_role == TYPEC_NO_PREFERRED_ROLE || in tcpm_dr_set()
4392 port->try_role == port->pwr_role) { in tcpm_dr_set()
4512 if (tcpc->try_role) in tcpm_try_role()
4513 ret = tcpc->try_role(tcpc, role); in tcpm_try_role()
4515 port->try_role = role; in tcpm_try_role()
[all …]
/kernel/linux/linux-5.10/drivers/usb/typec/
Dclass.c969 if (!port->ops || !port->ops->try_role) { in preferred_role_store()
982 ret = port->ops->try_role(port, role); in preferred_role_store()
1298 !port->ops || !port->ops->try_role) in typec_attr_is_visible()
/kernel/linux/patches/linux-5.10/yangfan_patch/
Dinclude.patch3333 int (*try_role)(struct tcpc_dev *dev, int role);