Home
last modified time | relevance | path

Searched refs:data_role (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/extcon/
H A Dextcon-usbc-tusb320.c286 enum typec_data_role data_role; in tusb320_typec_irq_handler() local
309 data_role = TYPEC_HOST; in tusb320_typec_irq_handler()
315 data_role = TYPEC_DEVICE; in tusb320_typec_irq_handler()
327 data_role = TYPEC_DEVICE; in tusb320_typec_irq_handler()
334 data_role = TYPEC_HOST; in tusb320_typec_irq_handler()
341 data_role = TYPEC_DEVICE; in tusb320_typec_irq_handler()
353 data_role = TYPEC_DEVICE; in tusb320_typec_irq_handler()
359 typec_set_data_role(port, data_role); in tusb320_typec_irq_handler()
/linux/drivers/usb/typec/
H A Dwusb3801.c252 enum typec_data_role data_role; in wusb3801_hw_update() local
284 data_role = pwr_role == TYPEC_SOURCE ? TYPEC_HOST : TYPEC_DEVICE; in wusb3801_hw_update()
285 typec_set_data_role(port, data_role); in wusb3801_hw_update()
H A Drt1719.c192 enum typec_data_role data_role, in rt1719_set_data_role() argument
198 if (data_role == TYPEC_HOST) in rt1719_set_data_role()
205 typec_set_data_role(data->port, data_role); in rt1719_set_data_role()
256 enum typec_data_role data_role; in rt1719_attach() local
263 data_role = rt1719_get_data_role(data->conn_info); in rt1719_attach()
266 rt1719_set_data_role(data, data_role, true); in rt1719_attach()
H A Dclass.c85 if (port->data_role == TYPEC_HOST) in get_pd_product_type()
838 if (to_typec_port(dev->parent)->data_role == TYPEC_HOST) { in typec_partner_set_identity()
1705 return sprintf(buf, "%s\n", port->data_role == TYPEC_HOST ? in data_role_show()
1708 return sprintf(buf, "[%s]\n", typec_data_roles[port->data_role]); in data_role_show()
1710 static DEVICE_ATTR_RW(data_role);
2105 if (port->data_role == role) in typec_set_data_role()
2108 port->data_role = role; in typec_set_data_role()
2132 return port->data_role; in typec_get_data_role()
2630 port->data_role = TYPEC_HOST; in typec_register_port()
2633 port->data_role = TYPEC_DEVICE; in typec_register_port()
[all …]
H A Dclass.h55 enum typec_data_role data_role; member
H A Danx7411.c241 int data_role; member
494 ctx->typec.data_role = (ret & DATA_ROLE) ? TYPEC_HOST : TYPEC_DEVICE; in anx7411_data_role_detect()
497 typec_set_data_role(ctx->typec.port, ctx->typec.data_role); in anx7411_data_role_detect()
501 if (ctx->typec.data_role == TYPEC_HOST) in anx7411_data_role_detect()
970 if (ctx->typec.data_role != ret) in anx7411_work_func()
/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c354 enum typec_data_role data_role; member
1179 port->data_role); in tcpm_set_attached_state()
1234 port->data_role = data; in tcpm_set_roles()
1246 port->data_role); in tcpm_set_pwr_role()
1289 port->data_role, in tcpm_pd_send_revision()
1318 port->data_role, in tcpm_pd_send_source_caps()
1324 port->data_role, in tcpm_pd_send_source_caps()
1355 port->data_role, in tcpm_pd_send_sink_caps()
1361 port->data_role, in tcpm_pd_send_sink_caps()
1961 return port->data_role == TYPEC_HOST; in tcpm_can_communicate_sop_prime()
[all …]
/linux/drivers/usb/typec/tipd/
H A Dcore.c1681 const char *data_role; in tps25750_register_port() local
1689 ret = fwnode_property_read_string(fwnode, "data-role", &data_role); in tps25750_register_port()
1695 ret = typec_find_port_data_role(data_role); in tps25750_register_port()
1697 dev_err(tps->dev, "unknown data-role: %s\n", data_role); in tps25750_register_port()