Searched refs:port_altmode (Results 1 – 8 of 8) sorted by relevance
43 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()
68 struct typec_altmode *port_altmode[CROS_EC_ALTMODE_MAX]; member
240 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()
63 struct altmode *port_altmode; in typec_altmode_set_state() local65 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()
296 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()
77 ret = dp->con->port_altmode[cur] == alt ? 0 : -EBUSY; in ucsi_displayport_enter()
353 struct typec_altmode *port_altmode[UCSI_MAX_ALTMODES]; member
459 struct typec_altmode *port_altmode[ALTMODE_DISCOVERY_MAX]; member1805 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()