Home
last modified time | relevance | path

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

/linux-6.15/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 Dhd3ss3220.c138 case TYPEC_SINK: in hd3ss3220_set_source_pref()
H A Danx7411.c495 ctx->typec.vconn_role = (ret & VCONN_STATUS) ? TYPEC_SOURCE : TYPEC_SINK; in anx7411_data_role_detect()
515 ctx->typec.power_role = (ret & SINK_STATUS) ? TYPEC_SINK : TYPEC_SOURCE; in anx7411_power_role_detect()
974 ret = (int_status & SINK_STATUS) ? TYPEC_SINK : TYPEC_SOURCE; in anx7411_work_func()
H A Dclass.c1590 [TYPEC_SINK] = "sink",
2604 port->pwr_role = TYPEC_SINK; in typec_register_port()
2605 port->vconn_role = TYPEC_SINK; in typec_register_port()
2611 port->pwr_role = TYPEC_SINK; in typec_register_port()
H A Dpd.c454 [TYPEC_SINK] = "sink-capabilities",
/linux-6.15/drivers/extcon/
H A Dextcon-usbc-tusb320.c314 pwr_role = TYPEC_SINK; in tusb320_typec_irq_handler()
326 pwr_role = TYPEC_SINK; in tusb320_typec_irq_handler()
339 pwr_role = TYPEC_SINK; in tusb320_typec_irq_handler()
352 pwr_role = TYPEC_SINK; in tusb320_typec_irq_handler()
H A Dextcon-rtk-type-c.c355 typec_set_pwr_role(type_c->port, TYPEC_SINK); in switch_type_c_dr_mode()
/linux-6.15/drivers/usb/typec/ucsi/
H A Dpsy.c59 (UCSI_CONSTAT(con, PWR_DIR) == TYPEC_SINK)) in ucsi_psy_get_online()
202 if (UCSI_CONSTAT(con, PWR_DIR) != TYPEC_SINK) { in ucsi_psy_get_charge_type()
H A Ducsi.c859 pd_cap = ucsi_get_pd_caps(con, TYPEC_SINK, false); in ucsi_register_device_pdos()
884 cap = ucsi_get_pd_caps(con, TYPEC_SINK, true); in ucsi_register_partner_pdos()
/linux-6.15/include/linux/usb/
H A Dtypec.h55 TYPEC_SINK, enumerator
61 return role == TYPEC_SINK; in is_sink()
/linux-6.15/drivers/platform/chrome/
H A Dcros_ec_typec.c753 typec_set_pwr_role(port, resp->role ? TYPEC_SOURCE : TYPEC_SINK); in cros_typec_set_port_params_v0()
775 TYPEC_SOURCE : TYPEC_SINK); in cros_typec_set_port_params_v1()
777 TYPEC_SOURCE : TYPEC_SINK); in cros_typec_set_port_params_v1()
1053 caps_desc.role = TYPEC_SINK; in cros_typec_register_partner_pdos()
/linux-6.15/drivers/usb/typec/tcpm/
H A Dtcpm.c659 if (port->try_role == TYPEC_SINK) in tcpm_default_state()
1100 port->vconn_role = enable ? TYPEC_SOURCE : TYPEC_SINK; in tcpm_set_vconn()
1182 if (role == TYPEC_SINK) in tcpm_set_roles()
1237 if (role == TYPEC_SINK) in tcpm_forge_legacy_pdo()
3092 caps.role = TYPEC_SINK; in tcpm_register_sink_caps()
4310 port->vconn_role = TYPEC_SINK; in tcpm_init_vconn()
5361 tcpm_set_roles(port, port->self_powered, TYPEC_SINK, in run_state_machine()
5570 tcpm_set_pwr_role(port, TYPEC_SINK); in run_state_machine()
6220 if (port->pwr_role == TYPEC_SINK && port->attached) in _tcpm_pd_vbus_off()
6937 if (!(port->pwr_role == TYPEC_SINK && in tcpm_port_type_set()
[all …]
H A Dfusb302.c874 [TYPEC_SINK] = "Sink",
/linux-6.15/drivers/usb/typec/tipd/
H A Dcore.c434 const char *cmd = (role == TYPEC_SINK) ? "SWSk" : "SWSr"; in tps6598x_pr_set()