Searched refs:data_role (Results 1 – 11 of 11) sorted by relevance
/openbmc/linux/drivers/extcon/ |
H A D | extcon-usbc-tusb320.c | 285 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()
|
/openbmc/linux/drivers/usb/typec/ |
H A D | wusb3801.c | 252 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 D | rt1719.c | 198 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()
|
H A D | class.c | 83 if (port->data_role == TYPEC_HOST) in get_pd_product_type() 1457 return sprintf(buf, "%s\n", port->data_role == TYPEC_HOST ? in data_role_show() 1460 return sprintf(buf, "[%s]\n", typec_data_roles[port->data_role]); in data_role_show() 1462 static DEVICE_ATTR_RW(data_role); 1800 if (port->data_role == role) in typec_set_data_role() 1803 port->data_role = role; in typec_set_data_role() 2248 port->data_role = TYPEC_HOST; in typec_register_port() 2251 port->data_role = TYPEC_DEVICE; in typec_register_port() 2255 port->data_role = TYPEC_HOST; in typec_register_port() 2257 port->data_role = TYPEC_DEVICE; in typec_register_port()
|
H A D | class.h | 48 enum typec_data_role data_role; member
|
H A D | stusb160x.c | 328 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 D | anx7411.c | 240 int data_role; member 493 ctx->typec.data_role = (ret & DATA_ROLE) ? TYPEC_HOST : TYPEC_DEVICE; in anx7411_data_role_detect() 496 typec_set_data_role(ctx->typec.port, ctx->typec.data_role); in anx7411_data_role_detect() 500 if (ctx->typec.data_role == TYPEC_HOST) in anx7411_data_role_detect() 969 if (ctx->typec.data_role != ret) in anx7411_work_func()
|
/openbmc/linux/drivers/usb/typec/tcpm/qcom/ |
H A D | qcom_pmic_typec.c | 122 enum typec_data_role data_role) in qcom_pmic_typec_set_roles() argument 127 data_role, power_role); in qcom_pmic_typec_set_roles()
|
/openbmc/linux/drivers/usb/typec/tcpm/ |
H A D | tcpm.c | 313 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() 1647 if ((port->data_role == TYPEC_DEVICE || svdm_version >= SVDM_VER_2_0) && in tcpm_pd_svdm() 2058 port->data_role, in vdm_run_state_machine() [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-typec | 3 What: /sys/class/typec/<port>/data_role
|
/openbmc/linux/include/linux/platform_data/ |
H A D | cros_ec_commands.h | 5881 uint8_t data_role; /* enum pd_data_role */ member
|