Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/extcon/
Dextcon-usbc-tusb320.c285 enum typec_data_role data_role; in tusb320_typec_irq_handler() local
308 data_role = TYPEC_HOST; in tusb320_typec_irq_handler()
314 data_role = TYPEC_DEVICE; in tusb320_typec_irq_handler()
326 data_role = TYPEC_DEVICE; in tusb320_typec_irq_handler()
333 data_role = TYPEC_HOST; in tusb320_typec_irq_handler()
340 data_role = TYPEC_DEVICE; in tusb320_typec_irq_handler()
352 data_role = TYPEC_DEVICE; in tusb320_typec_irq_handler()
358 typec_set_data_role(port, data_role); in tusb320_typec_irq_handler()
/Linux-v6.6/drivers/usb/typec/
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()
Drt1719.c198 enum typec_data_role data_role, in rt1719_set_data_role() argument
204 if (data_role == TYPEC_HOST) in rt1719_set_data_role()
211 typec_set_data_role(data->port, data_role); in rt1719_set_data_role()
262 enum typec_data_role data_role; in rt1719_attach() local
269 data_role = rt1719_get_data_role(data->conn_info); in rt1719_attach()
272 rt1719_set_data_role(data, data_role, true); in rt1719_attach()
Dclass.c83 if (port->data_role == TYPEC_HOST) in get_pd_product_type()
1446 return sprintf(buf, "%s\n", port->data_role == TYPEC_HOST ? in data_role_show()
1449 return sprintf(buf, "[%s]\n", typec_data_roles[port->data_role]); in data_role_show()
1451 static DEVICE_ATTR_RW(data_role);
1789 if (port->data_role == role) in typec_set_data_role()
1792 port->data_role = role; in typec_set_data_role()
2234 port->data_role = TYPEC_HOST; in typec_register_port()
2237 port->data_role = TYPEC_DEVICE; in typec_register_port()
2241 port->data_role = TYPEC_HOST; in typec_register_port()
2243 port->data_role = TYPEC_DEVICE; in typec_register_port()
Dclass.h48 enum typec_data_role data_role; member
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()
Danx7411.c240 int data_role; member
491 ctx->typec.data_role = (ret & DATA_ROLE) ? TYPEC_HOST : TYPEC_DEVICE; in anx7411_data_role_detect()
494 typec_set_data_role(ctx->typec.port, ctx->typec.data_role); in anx7411_data_role_detect()
498 if (ctx->typec.data_role == TYPEC_HOST) in anx7411_data_role_detect()
967 if (ctx->typec.data_role != ret) in anx7411_work_func()
/Linux-v6.6/drivers/usb/typec/tcpm/qcom/
Dqcom_pmic_typec.c122 enum typec_data_role data_role) in qcom_pmic_typec_set_roles() argument
127 data_role, power_role); in qcom_pmic_typec_set_roles()
/Linux-v6.6/drivers/usb/typec/tcpm/
Dtcpm.c313 enum typec_data_role data_role; member
1041 port->data_role); in tcpm_set_attached_state()
1090 port->data_role = data; in tcpm_set_roles()
1102 port->data_role); in tcpm_set_pwr_role()
1156 port->data_role, in tcpm_pd_send_source_caps()
1162 port->data_role, in tcpm_pd_send_source_caps()
1193 port->data_role, in tcpm_pd_send_sink_caps()
1199 port->data_role, in tcpm_pd_send_sink_caps()
1640 if ((port->data_role == TYPEC_DEVICE || svdm_version >= SVDM_VER_2_0) && in tcpm_pd_svdm()
2051 port->data_role, in vdm_run_state_machine()
[all …]
/Linux-v6.6/Documentation/ABI/testing/
Dsysfs-class-typec3 What: /sys/class/typec/<port>/data_role
/Linux-v6.6/include/linux/platform_data/
Dcros_ec_commands.h5881 uint8_t data_role; /* enum pd_data_role */ member