Home
last modified time | relevance | path

Searched refs:altmode (Results 1 – 4 of 4) sorted by relevance

/linux/include/linux/usb/
H A Dtypec_altmode.h39 static inline void typec_altmode_set_drvdata(struct typec_altmode *altmode, in typec_altmode_set_drvdata() argument
42 dev_set_drvdata(&altmode->dev, data); in typec_altmode_set_drvdata()
45 static inline void *typec_altmode_get_drvdata(struct typec_altmode *altmode) in typec_altmode_get_drvdata() argument
47 return dev_get_drvdata(&altmode->dev); in typec_altmode_get_drvdata()
60 int (*enter)(struct typec_altmode *altmode, u32 *vdo);
61 int (*exit)(struct typec_altmode *altmode);
62 void (*attention)(struct typec_altmode *altmode, u32 vdo);
63 int (*vdm)(struct typec_altmode *altmode, const u32 hdr,
65 int (*notify)(struct typec_altmode *altmode, unsigned long conf,
67 int (*activate)(struct typec_altmode *altmode, int activate);
[all …]
/linux/drivers/usb/typec/
H A Dbus.c17 typec_altmode_set_retimer(struct altmode *alt, unsigned long conf, void *data) in typec_altmode_set_retimer()
32 typec_altmode_set_mux(struct altmode *alt, unsigned long conf, void *data) in typec_altmode_set_mux()
48 typec_altmode_set_switches(struct altmode *alt, unsigned long conf, void *data) in typec_altmode_set_switches()
63 struct altmode *port_altmode; in typec_altmode_set_state()
90 struct altmode *altmode; in typec_altmode_notify() local
91 struct altmode *partner; in typec_altmode_notify()
97 altmode = to_altmode(adev); in typec_altmode_notify()
99 if (!altmode->partner) in typec_altmode_notify()
103 partner = altmode in typec_altmode_notify()
218 struct altmode *altmode; typec_altmode_vdm() local
324 struct altmode *altmode; typec_cable_altmode_vdm() local
453 struct typec_altmode *altmode = to_typec_altmode(dev); typec_match() local
465 const struct typec_altmode *altmode = to_typec_altmode(dev); typec_uevent() local
504 struct altmode *altmode = to_altmode(adev); typec_probe() local
528 struct altmode *altmode = to_altmode(adev); typec_remove() local
[all...]
H A Dbus.h12 struct altmode { struct
25 struct altmode *partner; argument
26 struct altmode *plug[2]; argument
29 #define to_altmode(d) container_of(d, struct altmode, adev)
/linux/drivers/usb/typec/ucsi/
H A Ducsi.c312 const struct typec_altmode *altmode = NULL; in ucsi_altmode_update_active() local
330 altmode = typec_altmode_get_partner(con->port_altmode[cur]); in ucsi_altmode_update_active()
334 con->partner_altmode[i] == altmode); in ucsi_altmode_update_active()