Home
last modified time | relevance | path

Searched refs:pwr_role (Results 1 - 7 of 7) sorted by relevance

/kernel/linux/linux-6.6/drivers/extcon/
H A Dextcon-usbc-tusb320.c284 enum typec_role pwr_role; in tusb320_typec_irq_handler() local
307 pwr_role = TYPEC_SOURCE; in tusb320_typec_irq_handler()
313 pwr_role = TYPEC_SINK; in tusb320_typec_irq_handler()
325 pwr_role = TYPEC_SINK; in tusb320_typec_irq_handler()
331 pwr_role = TYPEC_SOURCE; in tusb320_typec_irq_handler()
338 pwr_role = TYPEC_SINK; in tusb320_typec_irq_handler()
351 pwr_role = TYPEC_SINK; in tusb320_typec_irq_handler()
356 typec_set_vconn_role(port, pwr_role); in tusb320_typec_irq_handler()
357 typec_set_pwr_role(port, pwr_role); in tusb320_typec_irq_handler()
/kernel/linux/linux-6.6/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.h49 enum typec_role pwr_role; member
H A Dclass.c1501 return sprintf(buf, "%s\n", port->pwr_role == TYPEC_SOURCE ? in power_role_show()
1504 return sprintf(buf, "[%s]\n", typec_roles[port->pwr_role]); in power_role_show()
1819 if (port->pwr_role == role) in typec_set_pwr_role()
1822 port->pwr_role = role; in typec_set_pwr_role()
2220 port->pwr_role = TYPEC_SOURCE; in typec_register_port()
2224 port->pwr_role = TYPEC_SINK; in typec_register_port()
2229 port->pwr_role = cap->prefer_role; in typec_register_port()
2231 port->pwr_role = TYPEC_SINK; in typec_register_port()
/kernel/linux/linux-6.6/drivers/usb/typec/tcpm/
H A Dtcpm.c312 enum typec_role pwr_role; member
869 if (port->pd_capable && port->pwr_role == TYPEC_SOURCE) { in tcpm_ams_finish()
874 } else if (port->pwr_role == TYPEC_SOURCE) { in tcpm_ams_finish()
1040 return port->tcpc->set_roles(port->tcpc, attached, port->pwr_role, in tcpm_set_attached_state()
1089 port->pwr_role = role; in tcpm_set_roles()
1106 port->pwr_role = role; in tcpm_set_pwr_role()
1155 port->pwr_role, in tcpm_pd_send_source_caps()
1161 port->pwr_role, in tcpm_pd_send_source_caps()
1192 port->pwr_role, in tcpm_pd_send_sink_caps()
1198 port->pwr_role, in tcpm_pd_send_sink_caps()
[all...]
/kernel/linux/linux-5.10/drivers/usb/typec/
H A Dclass.c45 enum typec_role pwr_role; member
1099 return sprintf(buf, "%s\n", port->pwr_role == TYPEC_SOURCE ? in power_role_show()
1102 return sprintf(buf, "[%s]\n", typec_roles[port->pwr_role]); in power_role_show()
1387 if (port->pwr_role == role) in typec_set_pwr_role()
1390 port->pwr_role = role; in typec_set_pwr_role()
1659 port->pwr_role = TYPEC_SOURCE; in typec_register_port()
1663 port->pwr_role = TYPEC_SINK; in typec_register_port()
1668 port->pwr_role = cap->prefer_role; in typec_register_port()
1670 port->pwr_role = TYPEC_SINK; in typec_register_port()
/kernel/linux/linux-5.10/drivers/usb/typec/tcpm/
H A Dtcpm.c259 enum typec_role pwr_role; member
849 return port->tcpc->set_roles(port->tcpc, attached, port->pwr_role, in tcpm_set_attached_state()
898 port->pwr_role = role; in tcpm_set_roles()
915 port->pwr_role = role; in tcpm_set_pwr_role()
930 port->pwr_role, in tcpm_pd_send_source_caps()
936 port->pwr_role, in tcpm_pd_send_source_caps()
957 port->pwr_role, in tcpm_pd_send_sink_caps()
963 port->pwr_role, in tcpm_pd_send_sink_caps()
1480 port->pwr_role, in vdm_run_state_machine()
1709 if (port->pwr_role in ready_state()
[all...]

Completed in 14 milliseconds