Searched refs:pwr_role (Results 1 – 4 of 4) sorted by relevance
/linux-5.19.10/drivers/usb/typec/ |
D | wusb3801.c | 253 enum typec_role pwr_role = wusb3801_get_default_role(wusb3801); in wusb3801_hw_update() local 259 pwr_role = TYPEC_SOURCE; in wusb3801_hw_update() 262 pwr_role = TYPEC_SINK; in wusb3801_hw_update() 284 data_role = pwr_role == TYPEC_SOURCE ? TYPEC_HOST : TYPEC_DEVICE; in wusb3801_hw_update() 286 typec_set_pwr_role(port, pwr_role); in wusb3801_hw_update() 287 typec_set_vconn_role(port, pwr_role); in wusb3801_hw_update()
|
D | class.h | 45 enum typec_role pwr_role; member
|
D | class.c | 1347 return sprintf(buf, "%s\n", port->pwr_role == TYPEC_SOURCE ? in power_role_show() 1350 return sprintf(buf, "[%s]\n", typec_roles[port->pwr_role]); in power_role_show() 1663 if (port->pwr_role == role) in typec_set_pwr_role() 1666 port->pwr_role = role; in typec_set_pwr_role() 2054 port->pwr_role = TYPEC_SOURCE; in typec_register_port() 2058 port->pwr_role = TYPEC_SINK; in typec_register_port() 2063 port->pwr_role = cap->prefer_role; in typec_register_port() 2065 port->pwr_role = TYPEC_SINK; in typec_register_port()
|
/linux-5.19.10/drivers/usb/typec/tcpm/ |
D | tcpm.c | 310 enum typec_role pwr_role; member 852 if (port->pd_capable && port->pwr_role == TYPEC_SOURCE) { in tcpm_ams_finish() 857 } else if (port->pwr_role == TYPEC_SOURCE) { in tcpm_ams_finish() 1023 return port->tcpc->set_roles(port->tcpc, attached, port->pwr_role, in tcpm_set_attached_state() 1072 port->pwr_role = role; in tcpm_set_roles() 1089 port->pwr_role = role; in tcpm_set_pwr_role() 1138 port->pwr_role, in tcpm_pd_send_source_caps() 1144 port->pwr_role, in tcpm_pd_send_source_caps() 1175 port->pwr_role, in tcpm_pd_send_sink_caps() 1181 port->pwr_role, in tcpm_pd_send_sink_caps() [all …]
|