Home
last modified time | relevance | path

Searched refs:port_altmode (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/drivers/platform/chrome/
H A Dcros_typec_vdm.c43 amode = typec_match_altmode(typec->ports[port_num]->port_altmode, in cros_typec_handle_vdm_attention()
81 amode = typec_match_altmode(typec->ports[port_num]->port_altmode, CROS_EC_ALTMODE_MAX, in cros_typec_handle_vdm_response()
H A Dcros_ec_typec.h68 struct typec_altmode *port_altmode[CROS_EC_ALTMODE_MAX]; member
H A Dcros_ec_typec.c240 typec_unregister_altmode(port->port_altmode[i]); in cros_typec_unregister_port_altmodes()
280 port->port_altmode[CROS_EC_ALTMODE_DP] = amode; in cros_typec_register_port_altmodes()
295 port->port_altmode[CROS_EC_ALTMODE_TBT] = amode; in cros_typec_register_port_altmodes()
476 port->state.alt = port->port_altmode[CROS_EC_ALTMODE_TBT]; in cros_typec_enable_tbt()
518 port->state.alt = port->port_altmode[CROS_EC_ALTMODE_DP]; in cros_typec_enable_dp()
/openbmc/linux/drivers/usb/typec/
H A Dbus.c63 struct altmode *port_altmode; in typec_altmode_set_state() local
65 port_altmode = is_port ? to_altmode(adev) : to_altmode(adev)->partner; in typec_altmode_set_state()
67 return typec_altmode_set_switches(port_altmode, conf, data); in typec_altmode_set_state()
/openbmc/linux/drivers/usb/typec/ucsi/
H A Ducsi.c296 altmode = typec_altmode_get_partner(con->port_altmode[cur]); in ucsi_altmode_update_active()
354 i = ucsi_next_altmode(con->port_altmode); in ucsi_register_altmode()
360 ret = ucsi_altmode_next_mode(con->port_altmode, desc->svid); in ucsi_register_altmode()
388 con->port_altmode[i] = alt; in ucsi_register_altmode()
573 adev = con->port_altmode; in ucsi_unregister_altmodes()
H A Ddisplayport.c77 ret = dp->con->port_altmode[cur] == alt ? 0 : -EBUSY; in ucsi_displayport_enter()
H A Ducsi.h353 struct typec_altmode *port_altmode[UCSI_MAX_ALTMODES]; member
/openbmc/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c459 struct typec_altmode *port_altmode[ALTMODE_DISCOVERY_MAX]; member
1805 adev = typec_match_altmode(port->port_altmode, ALTMODE_DISCOVERY_MAX, in tcpm_handle_vdm_request()
6650 port->port_altmode, ALTMODE_DISCOVERY_MAX); in tcpm_register_port()
6687 for (i = 0; i < ARRAY_SIZE(port->port_altmode); i++) in tcpm_unregister_port()
6688 typec_unregister_altmode(port->port_altmode[i]); in tcpm_unregister_port()