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.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()
/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c2044 tcpm_log_force(port, "failed to queue altmode vdm, err:%d", ret); in tcpm_queue_vdm_unlocked()
2226 struct typec_altmode *altmode; in tcpm_register_partner_altmodes()
2233 altmode = typec_partner_register_altmode(port->partner, in tcpm_register_partner_altmodes()
2235 if (IS_ERR(altmode)) { in tcpm_register_partner_altmodes()
2238 altmode = NULL; in tcpm_register_partner_altmodes()
2240 port->partner_altmode[i] = altmode; in tcpm_register_partner_altmodes()
2247 struct typec_altmode *altmode; in tcpm_register_plug_altmodes()
2254 altmode = typec_plug_register_altmode(port->plug_prime, in tcpm_register_plug_altmodes()
2256 if (IS_ERR(altmode)) { in tcpm_register_plug_altmodes()
2259 altmode in tcpm_register_plug_altmodes()
2225 struct typec_altmode *altmode; tcpm_register_partner_altmodes() local
2246 struct typec_altmode *altmode; tcpm_register_plug_altmodes() local
3268 tcpm_altmode_enter(struct typec_altmode * altmode,u32 * vdo) tcpm_altmode_enter() argument
3284 tcpm_altmode_exit(struct typec_altmode * altmode) tcpm_altmode_exit() argument
3300 tcpm_altmode_vdm(struct typec_altmode * altmode,u32 header,const u32 * data,int count) tcpm_altmode_vdm() argument
3315 tcpm_cable_altmode_enter(struct typec_altmode * altmode,enum typec_plug_index sop,u32 * vdo) tcpm_cable_altmode_enter() argument
3332 tcpm_cable_altmode_exit(struct typec_altmode * altmode,enum typec_plug_index sop) tcpm_cable_altmode_exit() argument
3348 tcpm_cable_altmode_vdm(struct typec_altmode * altmode,enum typec_plug_index sop,u32 header,const u32 * data,int count) tcpm_cable_altmode_vdm() argument
[all...]