Home
last modified time | relevance | path

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

/linux/include/linux/usb/
H A Dtypec_altmode.h52 static inline void typec_altmode_set_drvdata(struct typec_altmode *altmode, in typec_altmode_set_drvdata() argument
55 dev_set_drvdata(&altmode->dev, data); in typec_altmode_set_drvdata()
58 static inline void *typec_altmode_get_drvdata(struct typec_altmode *altmode) in typec_altmode_get_drvdata() argument
60 return dev_get_drvdata(&altmode->dev); in typec_altmode_get_drvdata()
73 int (*enter)(struct typec_altmode *altmode, u32 *vdo);
74 int (*exit)(struct typec_altmode *altmode);
75 void (*attention)(struct typec_altmode *altmode, u32 vdo);
76 int (*vdm)(struct typec_altmode *altmode, const u32 hdr,
78 int (*notify)(struct typec_altmode *altmode, unsigned long conf,
80 int (*activate)(struct typec_altmode *altmode, int activate);
[all …]
/linux/drivers/usb/typec/
H A Dmode_selection.c214 struct typec_altmode *altmode = to_typec_altmode(dev); in altmode_add_to_list() local
215 const struct typec_altmode *pdev = typec_altmode_get_partner(altmode); in altmode_add_to_list()
218 if (pdev && altmode->ops && altmode->ops->activate) { in altmode_add_to_list()
/linux/drivers/platform/chrome/
H A Dcros_typec_altmode.c276 int cros_typec_displayport_status_update(struct typec_altmode *altmode, in cros_typec_displayport_status_update() argument
280 typec_altmode_get_drvdata(altmode); in cros_typec_displayport_status_update()
284 dev_dbg(&altmode->dev, in cros_typec_displayport_status_update()
290 dev_dbg(&altmode->dev, in cros_typec_displayport_status_update()