Home
last modified time | relevance | path

Searched refs:to_altmode (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/usb/typec/
H A Dbus.c65 port_altmode = is_port ? to_altmode(adev) : to_altmode(adev)->partner; in typec_altmode_set_state()
97 altmode = to_altmode(adev); in typec_altmode_notify()
128 struct altmode *partner = to_altmode(adev)->partner; in typec_altmode_enter()
159 struct altmode *partner = to_altmode(adev)->partner; in typec_altmode_exit()
188 struct altmode *partner = to_altmode(adev)->partner; in typec_altmode_attention()
223 altmode = to_altmode(adev); in typec_altmode_vdm()
240 if (!adev || !to_altmode(adev)->partner) in typec_altmode_get_partner()
243 return &to_altmode(adev)->partner->adev; in typec_altmode_get_partner()
261 struct altmode *partner = to_altmode(adev)->partner; in typec_cable_altmode_enter()
291 struct altmode *partner = to_altmode(adev)->partner; in typec_cable_altmode_exit()
[all …]
H A Dbus.h29 #define to_altmode(d) container_of(d, struct altmode, adev) macro
H A Dclass.c256 partner = to_altmode(to_typec_altmode(dev)); in typec_altmode_set_partner()
371 struct altmode *altmode = to_altmode(adev); in active_store()
410 struct altmode *alt = to_altmode(to_typec_altmode(dev)); in supported_roles_show()
523 struct altmode *alt = to_altmode(to_typec_altmode(dev)); in typec_altmode_release()
615 typec_retimer_put(to_altmode(adev)->retimer); in typec_unregister_altmode()
616 typec_mux_put(to_altmode(adev)->mux); in typec_unregister_altmode()
2474 to_altmode(adev)->mux = mux; in typec_port_register_altmode()
2475 to_altmode(adev)->retimer = retimer; in typec_port_register_altmode()