Home
last modified time | relevance | path

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

/linux/include/linux/usb/
H A Dtypec_altmode.h36 struct typec_altmode { struct
50 #define to_typec_altmode(d) container_of(d, struct typec_altmode, dev) argument
52 static inline void typec_altmode_set_drvdata(struct typec_altmode *altmode, in typec_altmode_set_drvdata()
58 static inline void *typec_altmode_get_drvdata(struct typec_altmode *altmode) 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 …]
H A Dtypec_retimer.h11 struct typec_altmode;
15 struct typec_altmode *alt;
/linux/drivers/usb/typec/altmodes/
H A Ddisplayport.h3 int dp_altmode_probe(struct typec_altmode *alt);
4 void dp_altmode_remove(struct typec_altmode *alt);
6 int dp_altmode_probe(struct typec_altmode *alt) { return -ENOTSUPP; } in dp_altmode_probe()
7 void dp_altmode_remove(struct typec_altmode *alt) { } in dp_altmode_remove()
/linux/drivers/platform/chrome/
H A Dcros_typec_altmode.c21 struct typec_altmode *alt;
58 static int cros_typec_altmode_enter(struct typec_altmode *alt, u32 *vdo) in cros_typec_altmode_enter()
103 static int cros_typec_altmode_exit(struct typec_altmode *alt) in cros_typec_altmode_exit()
142 static int cros_typec_displayport_vdm(struct typec_altmode *alt, u32 header, in cros_typec_displayport_vdm()
202 static int cros_typec_thunderbolt_vdm(struct typec_altmode *alt, u32 header, in cros_typec_thunderbolt_vdm()
252 static int cros_typec_altmode_vdm(struct typec_altmode *alt, u32 header, in cros_typec_altmode_vdm()
276 int cros_typec_displayport_status_update(struct typec_altmode *altmode, in cros_typec_displayport_status_update()
308 struct typec_altmode *
313 struct typec_altmode *alt; in cros_typec_register_displayport()
344 struct typec_altmode *
[all …]
H A Dcros_typec_vdm.c26 struct typec_altmode *amode; in cros_typec_handle_vdm_attention()
65 struct typec_altmode *amode; in cros_typec_handle_vdm_response()
95 static int cros_typec_port_amode_enter(struct typec_altmode *amode, u32 *vdo) in cros_typec_port_amode_enter()
120 static int cros_typec_port_amode_vdm(struct typec_altmode *amode, const u32 hdr, in cros_typec_port_amode_vdm()
/linux/drivers/usb/typec/ucsi/
H A Ddisplayport.c21 struct typec_altmode *alt;
48 static int ucsi_displayport_enter(struct typec_altmode *alt, u32 *vdo) in ucsi_displayport_enter()
61 const struct typec_altmode *p = typec_altmode_get_partner(alt); in ucsi_displayport_enter()
109 static int ucsi_displayport_exit(struct typec_altmode *alt) in ucsi_displayport_exit()
120 const struct typec_altmode *p = typec_altmode_get_partner(alt); in ucsi_displayport_exit()
198 static int ucsi_displayport_vdm(struct typec_altmode *alt, in ucsi_displayport_vdm()
210 const struct typec_altmode *p = typec_altmode_get_partner(alt); in ucsi_displayport_vdm()
294 void ucsi_displayport_remove_partner(struct typec_altmode *alt) in ucsi_displayport_remove_partner()
312 struct typec_altmode *ucsi_register_displayport(struct ucsi_connector *con, in ucsi_register_displayport()
318 struct typec_altmode *alt; in ucsi_register_displayport()
H A Dtrace.h85 TP_PROTO(u8 recipient, struct typec_altmode *alt),
105 TP_PROTO(u8 recipient, struct typec_altmode *alt),
H A Ducsi_ccg.c482 struct typec_altmode *alt = NULL; in ucsi_ccg_update_set_new_cam_cmd()
/linux/drivers/usb/typec/
H A Dmode_selection.c66 struct typec_altmode *alt = to_typec_altmode(dev); in activate_altmode()
214 struct typec_altmode *altmode = to_typec_altmode(dev); in altmode_add_to_list()
215 const struct typec_altmode *pdev = typec_altmode_get_partner(altmode); in altmode_add_to_list()
H A Danx7411.c251 struct typec_altmode *amode[MAX_ALTMODE];
252 struct typec_altmode *port_amode[MAX_ALTMODE];
1015 static void anx7411_port_unregister_altmodes(struct typec_altmode **adev) in anx7411_port_unregister_altmodes()
/linux/Documentation/driver-api/usb/
H A Dtypec_bus.rst97 .. kernel-doc:: include/linux/usb/typec_altmode.h
103 .. kernel-doc:: include/linux/usb/typec_altmode.h
H A Dtypec.rst173 typec_altmode on success, or NULL. The unregistration will happen with the same
/linux/
H A DMAINTAINERS28390 F: include/linux/usb/typec_altmode.h