Home
last modified time | relevance | path

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

/openbmc/linux/drivers/usb/typec/
H A Dwusb3801.c105 return TYPEC_SINK; in wusb3801_get_default_role()
110 return TYPEC_SINK; in wusb3801_get_default_role()
146 case TYPEC_SINK: in wusb3801_map_try_role()
262 pwr_role = TYPEC_SINK; in wusb3801_hw_update()
H A Dstusb160x.c324 return TYPEC_SINK; in stusb160x_get_vconn_role()
559 chip->capability.prefer_role = TYPEC_SINK; in stusb160x_get_fw_caps()
H A Danx7411.c494 ctx->typec.vconn_role = (ret & VCONN_STATUS) ? TYPEC_SOURCE : TYPEC_SINK; in anx7411_data_role_detect()
514 ctx->typec.power_role = (ret & SINK_STATUS) ? TYPEC_SINK : TYPEC_SOURCE; in anx7411_power_role_detect()
973 ret = (int_status & SINK_STATUS) ? TYPEC_SINK : TYPEC_SOURCE; in anx7411_work_func()
H A Dclass.c1342 [TYPEC_SINK] = "sink",
2235 port->pwr_role = TYPEC_SINK; in typec_register_port()
2236 port->vconn_role = TYPEC_SINK; in typec_register_port()
2242 port->pwr_role = TYPEC_SINK; in typec_register_port()
H A Dpd.c456 [TYPEC_SINK] = "sink-capabilities",
/openbmc/linux/drivers/extcon/
H A Dextcon-usbc-tusb320.c313 pwr_role = TYPEC_SINK; in tusb320_typec_irq_handler()
325 pwr_role = TYPEC_SINK; 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()
/openbmc/linux/include/linux/usb/
H A Dtypec.h54 TYPEC_SINK, enumerator
60 return role == TYPEC_SINK; in is_sink()
/openbmc/linux/drivers/platform/chrome/
H A Dcros_ec_typec.c662 typec_set_pwr_role(port, resp->role ? TYPEC_SOURCE : TYPEC_SINK); in cros_typec_set_port_params_v0()
684 TYPEC_SOURCE : TYPEC_SINK); in cros_typec_set_port_params_v1()
686 TYPEC_SOURCE : TYPEC_SINK); in cros_typec_set_port_params_v1()
962 caps_desc.role = TYPEC_SINK; in cros_typec_register_partner_pdos()
/openbmc/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c545 ((port)->try_snk_count == 0 && (port)->try_role == TYPEC_SINK && \
570 if (port->try_role == TYPEC_SINK) in tcpm_default_state()
990 port->vconn_role = enable ? TYPEC_SOURCE : TYPEC_SINK; in tcpm_set_vconn()
1072 if (role == TYPEC_SINK) in tcpm_set_roles()
1121 if (role == TYPEC_SINK) in tcpm_forge_legacy_pdo()
1183 pdo = tcpm_forge_legacy_pdo(port, port->snk_pdo[i], TYPEC_SINK); in tcpm_pd_send_sink_caps()
2444 caps.role = TYPEC_SINK; in tcpm_register_sink_caps()
3579 port->vconn_role = TYPEC_SINK; in tcpm_init_vconn()
3783 ret = tcpm_set_roles(port, true, TYPEC_SINK, tcpm_data_role_for_sink(port)); in tcpm_snk_attach()
4544 tcpm_set_roles(port, port->self_powered, TYPEC_SINK, in run_state_machine()
[all …]
H A Dfusb302.c874 [TYPEC_SINK] = "Sink",
/openbmc/linux/drivers/usb/typec/ucsi/
H A Dpsy.c58 (con->status.flags & UCSI_CONSTAT_PWR_DIR) == TYPEC_SINK) in ucsi_psy_get_online()
H A Ducsi.c704 ret = ucsi_get_pdos(con, TYPEC_SINK, 1, caps.pdo); in ucsi_register_partner_pdos()
709 caps.role = TYPEC_SINK; in ucsi_register_partner_pdos()
1296 ret = ucsi_get_pdos(con, TYPEC_SINK, 0, pd_caps.pdo); in ucsi_register_port()
1301 pd_caps.role = TYPEC_SINK; in ucsi_register_port()
/openbmc/linux/drivers/usb/typec/tipd/
H A Dcore.c381 const char *cmd = (role == TYPEC_SINK) ? "SWSk" : "SWSr"; in tps6598x_pr_set()