Home
last modified time | relevance | path

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

/linux-6.15/drivers/extcon/
H A Dextcon-usbc-tusb320.c285 enum typec_role pwr_role; in tusb320_typec_irq_handler() local
308 pwr_role = TYPEC_SOURCE; in tusb320_typec_irq_handler()
314 pwr_role = TYPEC_SINK; in tusb320_typec_irq_handler()
326 pwr_role = TYPEC_SINK; in tusb320_typec_irq_handler()
332 pwr_role = TYPEC_SOURCE; in tusb320_typec_irq_handler()
339 pwr_role = TYPEC_SINK; in tusb320_typec_irq_handler()
352 pwr_role = TYPEC_SINK; in tusb320_typec_irq_handler()
357 typec_set_vconn_role(port, pwr_role); in tusb320_typec_irq_handler()
358 typec_set_pwr_role(port, pwr_role); in tusb320_typec_irq_handler()
/linux-6.15/drivers/usb/typec/
H A Dwusb3801.c253 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()
H A Dclass.h56 enum typec_role pwr_role; member
H A Dclass.c1757 return sprintf(buf, "%s\n", port->pwr_role == TYPEC_SOURCE ? in power_role_show()
1760 return sprintf(buf, "[%s]\n", typec_roles[port->pwr_role]); in power_role_show()
2132 if (port->pwr_role == role) in typec_set_pwr_role()
2135 port->pwr_role = role; in typec_set_pwr_role()
2600 port->pwr_role = TYPEC_SOURCE; in typec_register_port()
2604 port->pwr_role = TYPEC_SINK; in typec_register_port()
2609 port->pwr_role = cap->prefer_role; in typec_register_port()
2611 port->pwr_role = TYPEC_SINK; in typec_register_port()
/linux-6.15/drivers/usb/typec/tcpm/
H A Dtcpm.c1205 port->pwr_role = role; in tcpm_set_roles()
1222 port->pwr_role = role; in tcpm_set_pwr_role()
1260 port->pwr_role, in tcpm_pd_send_revision()
1289 port->pwr_role, in tcpm_pd_send_source_caps()
1295 port->pwr_role, in tcpm_pd_send_source_caps()
1326 port->pwr_role, in tcpm_pd_send_sink_caps()
1332 port->pwr_role, in tcpm_pd_send_sink_caps()
3762 port->pwr_role, in tcpm_pd_send_control()
3770 port->pwr_role, in tcpm_pd_send_control()
4154 port->pwr_role, in tcpm_pd_send_request()
[all …]