Home
last modified time | relevance | path

Searched refs:typec_altmode (Results 1 – 9 of 9) sorted by relevance

/Linux-v4.19/include/linux/usb/
Dtypec_altmode.h24 struct typec_altmode { struct
35 #define to_typec_altmode(d) container_of(d, struct typec_altmode, dev) argument
37 static inline void typec_altmode_set_drvdata(struct typec_altmode *altmode, in typec_altmode_set_drvdata()
43 static inline void *typec_altmode_get_drvdata(struct typec_altmode *altmode) in typec_altmode_get_drvdata()
58 int (*enter)(struct typec_altmode *altmode);
59 int (*exit)(struct typec_altmode *altmode);
60 void (*attention)(struct typec_altmode *altmode, u32 vdo);
61 int (*vdm)(struct typec_altmode *altmode, const u32 hdr,
63 int (*notify)(struct typec_altmode *altmode, unsigned long conf,
65 int (*activate)(struct typec_altmode *altmode, int activate);
[all …]
Dtypec.h110 struct typec_altmode
113 struct typec_altmode
116 struct typec_altmode
119 void typec_unregister_altmode(struct typec_altmode *altmode);
121 struct typec_port *typec_altmode2port(struct typec_altmode *alt);
123 void typec_altmode_update_active(struct typec_altmode *alt, bool active);
/Linux-v4.19/drivers/usb/typec/
Dbus.c18 static int typec_altmode_set_state(struct typec_altmode *adev, int state) in typec_altmode_set_state()
51 int typec_altmode_notify(struct typec_altmode *adev, in typec_altmode_notify()
92 int typec_altmode_enter(struct typec_altmode *adev) in typec_altmode_enter()
95 struct typec_altmode *pdev = &partner->adev; in typec_altmode_enter()
120 int typec_altmode_exit(struct typec_altmode *adev) in typec_altmode_exit()
123 struct typec_altmode *pdev = &partner->adev; in typec_altmode_exit()
149 void typec_altmode_attention(struct typec_altmode *adev, u32 vdo) in typec_altmode_attention()
151 struct typec_altmode *pdev = &to_altmode(adev)->partner->adev; in typec_altmode_attention()
169 int typec_altmode_vdm(struct typec_altmode *adev, in typec_altmode_vdm()
172 struct typec_altmode *pdev; in typec_altmode_vdm()
[all …]
Dclass.c152 struct typec_altmode *adev = to_typec_altmode(dev); in altmode_match()
163 struct typec_altmode *adev = &altmode->adev; in typec_altmode_set_partner()
190 struct typec_altmode *adev; in typec_altmode_put_partner()
218 struct typec_altmode *
255 void typec_altmode_unregister_notifier(struct typec_altmode *adev, in typec_altmode_unregister_notifier()
273 void typec_altmode_update_active(struct typec_altmode *adev, bool active) in typec_altmode_update_active()
302 struct typec_port *typec_altmode2port(struct typec_altmode *alt) in typec_altmode2port()
318 struct typec_altmode *alt = to_typec_altmode(dev); in vdo_show()
327 struct typec_altmode *alt = to_typec_altmode(dev); in description_show()
336 struct typec_altmode *alt = to_typec_altmode(dev); in active_show()
[all …]
Dbus.h13 struct typec_altmode adev;
Dtcpm.c314 struct typec_altmode *partner_altmode[ALTMODE_DISCOVERY_MAX];
315 struct typec_altmode *port_altmode[ALTMODE_DISCOVERY_MAX];
1028 struct typec_altmode *altmode; in tcpm_register_partner_altmodes()
1046 struct typec_altmode *adev; in tcpm_pd_svdm()
1047 struct typec_altmode *pdev; in tcpm_pd_svdm()
1466 static int tcpm_altmode_enter(struct typec_altmode *altmode) in tcpm_altmode_enter()
1482 static int tcpm_altmode_exit(struct typec_altmode *altmode) in tcpm_altmode_exit()
1498 static int tcpm_altmode_vdm(struct typec_altmode *altmode, in tcpm_altmode_vdm()
4803 struct typec_altmode *alt; in tcpm_register_port()
/Linux-v4.19/drivers/usb/typec/altmodes/
Ddisplayport.c66 struct typec_altmode *alt;
67 const struct typec_altmode *port;
227 static void dp_altmode_attention(struct typec_altmode *alt, const u32 vdo) in dp_altmode_attention()
253 static int dp_altmode_vdm(struct typec_altmode *alt, in dp_altmode_vdm()
311 static int dp_altmode_activate(struct typec_altmode *alt, int activate) in dp_altmode_activate()
514 static int dp_altmode_probe(struct typec_altmode *alt) in dp_altmode_probe()
516 const struct typec_altmode *port = typec_altmode_get_partner(alt); in dp_altmode_probe()
553 static void dp_altmode_remove(struct typec_altmode *alt) in dp_altmode_remove()
/Linux-v4.19/Documentation/driver-api/usb/
Dtypec.rst172 typec_altmode on success, or NULL. The unregistration will happen with the same
/Linux-v4.19/
DMAINTAINERS15305 F: include/linux/usb/typec_altmode.h