Home
last modified time | relevance | path

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

/linux-6.15/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-6.15/drivers/usb/typec/tcpm/qcom/
H A Dqcom_pmic_typec_pdphy_stub.c49 enum typec_data_role data_role) in qcom_pmic_typec_pdphy_stub_set_roles() argument
55 data_role, power_role); in qcom_pmic_typec_pdphy_stub_set_roles()
H A Dqcom_pmic_typec_pdphy.c429 enum typec_data_role data_role) in qcom_pmic_typec_pdphy_set_roles() argument
443 (data_role == TYPEC_HOST ? MSG_CONFIG_PORT_DATA_ROLE : 0) | in qcom_pmic_typec_pdphy_set_roles()
449 data_role, power_role); in qcom_pmic_typec_pdphy_set_roles()
/linux-6.15/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()
2617 port->data_role = TYPEC_HOST; in typec_register_port()
2620 port->data_role = TYPEC_DEVICE; in typec_register_port()
2624 port->data_role = TYPEC_HOST; in typec_register_port()
[all …]
H A Dclass.h55 enum typec_data_role data_role; member
H A Dstusb160x.c328 enum typec_data_role data_role, in stusb160x_set_data_role() argument
334 if (data_role == TYPEC_HOST) in stusb160x_set_data_role()
341 typec_set_data_role(chip->port, data_role); in stusb160x_set_data_role()
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-6.15/drivers/usb/typec/tcpm/
H A Dtcpm.c1206 port->data_role = data; in tcpm_set_roles()
1218 port->data_role); in tcpm_set_pwr_role()
1261 port->data_role, in tcpm_pd_send_revision()
1290 port->data_role, in tcpm_pd_send_source_caps()
1296 port->data_role, in tcpm_pd_send_source_caps()
1327 port->data_role, in tcpm_pd_send_sink_caps()
1333 port->data_role, in tcpm_pd_send_sink_caps()
3763 port->data_role, in tcpm_pd_send_control()
3771 port->data_role, in tcpm_pd_send_control()
4155 port->data_role, in tcpm_pd_send_request()
[all …]
/linux-6.15/drivers/usb/typec/tipd/
H A Dcore.c1245 const char *data_role; in tps25750_register_port() local
1253 ret = fwnode_property_read_string(fwnode, "data-role", &data_role); in tps25750_register_port()
1259 ret = typec_find_port_data_role(data_role); in tps25750_register_port()
1261 dev_err(tps->dev, "unknown data-role: %s\n", data_role); in tps25750_register_port()
/linux-6.15/Documentation/ABI/testing/
H A Dsysfs-class-typec3 What: /sys/class/typec/<port>/data_role
/linux-6.15/include/linux/platform_data/
H A Dcros_ec_commands.h6050 uint8_t data_role; /* enum pd_data_role */ member