Home
last modified time | relevance | path

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

/linux/include/linux/usb/
A Dtypec_altmode.h24 struct typec_altmode { struct
58 int (*enter)(struct typec_altmode *altmode, u32 *vdo);
59 int (*exit)(struct typec_altmode *altmode);
61 int (*vdm)(struct typec_altmode *altmode, const u32 hdr,
69 int typec_altmode_exit(struct typec_altmode *altmode);
71 int typec_altmode_vdm(struct typec_altmode *altmode,
75 const struct typec_altmode *
118 struct typec_altmode *typec_altmode_get_plug(struct typec_altmode *altmode,
122 struct typec_altmode *typec_match_altmode(struct typec_altmode **altmodes,
157 int (*probe)(struct typec_altmode *altmode);
[all …]
A Dtypec.h132 struct typec_altmode
136 struct typec_altmode
139 struct typec_altmode
145 struct typec_altmode **altmodes, size_t n);
147 void typec_unregister_altmode(struct typec_altmode *altmode);
149 struct typec_port *typec_altmode2port(struct typec_altmode *alt);
151 void typec_altmode_update_active(struct typec_altmode *alt, bool active);
A Dtypec_mux.h12 struct typec_altmode;
44 struct typec_altmode *alt;
/linux/drivers/usb/typec/
A Dbus.c57 int typec_altmode_notify(struct typec_altmode *adev, in typec_altmode_notify()
100 struct typec_altmode *pdev = &partner->adev; in typec_altmode_enter()
128 int typec_altmode_exit(struct typec_altmode *adev) in typec_altmode_exit()
131 struct typec_altmode *pdev = &partner->adev; in typec_altmode_exit()
177 int typec_altmode_vdm(struct typec_altmode *adev, in typec_altmode_vdm()
180 struct typec_altmode *pdev; in typec_altmode_vdm()
200 const struct typec_altmode *
201 typec_altmode_get_partner(struct typec_altmode *adev) in typec_altmode_get_partner()
221 struct typec_altmode *typec_altmode_get_plug(struct typec_altmode *adev, in typec_altmode_get_plug()
278 struct typec_altmode *typec_match_altmode(struct typec_altmode **altmodes, in typec_match_altmode()
[all …]
A Dclass.c236 struct typec_altmode *adev = &altmode->adev; in typec_altmode_set_partner()
263 struct typec_altmode *adev; in typec_altmode_put_partner()
333 struct typec_altmode *alt = to_typec_altmode(dev); in vdo_show()
342 struct typec_altmode *alt = to_typec_altmode(dev); in description_show()
510 static struct typec_altmode *
767 struct typec_altmode *
941 struct typec_altmode *
1907 struct typec_altmode *
1911 struct typec_altmode *adev; in typec_port_register_altmode()
1930 struct typec_altmode **altmodes, size_t n) in typec_port_register_altmodes()
[all …]
A Dbus.h13 struct typec_altmode adev;
/linux/drivers/usb/typec/altmodes/
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()
A Ddisplayport.c66 struct typec_altmode *alt;
67 const struct typec_altmode *port;
234 static void dp_altmode_attention(struct typec_altmode *alt, const u32 vdo) in dp_altmode_attention()
260 static int dp_altmode_vdm(struct typec_altmode *alt, in dp_altmode_vdm()
318 static int dp_altmode_activate(struct typec_altmode *alt, int activate) in dp_altmode_activate()
522 int dp_altmode_probe(struct typec_altmode *alt) in dp_altmode_probe()
524 const struct typec_altmode *port = typec_altmode_get_partner(alt); in dp_altmode_probe()
568 void dp_altmode_remove(struct typec_altmode *alt) in dp_altmode_remove()
A Dnvidia.c12 static int nvidia_altmode_probe(struct typec_altmode *alt) in nvidia_altmode_probe()
20 static void nvidia_altmode_remove(struct typec_altmode *alt) in nvidia_altmode_remove()
/linux/drivers/usb/typec/ucsi/
A Ddisplayport.c21 struct typec_altmode *alt;
48 static int ucsi_displayport_enter(struct typec_altmode *alt, u32 *vdo) in ucsi_displayport_enter()
60 const struct typec_altmode *p = typec_altmode_get_partner(alt); in ucsi_displayport_enter()
108 static int ucsi_displayport_exit(struct typec_altmode *alt) in ucsi_displayport_exit()
118 const struct typec_altmode *p = typec_altmode_get_partner(alt); in ucsi_displayport_exit()
197 static int ucsi_displayport_vdm(struct typec_altmode *alt, in ucsi_displayport_vdm()
208 const struct typec_altmode *p = typec_altmode_get_partner(alt); in ucsi_displayport_vdm()
292 void ucsi_displayport_remove_partner(struct typec_altmode *alt) in ucsi_displayport_remove_partner()
308 struct typec_altmode *ucsi_register_displayport(struct ucsi_connector *con, in ucsi_register_displayport()
314 struct typec_altmode *alt; in ucsi_register_displayport()
A Ducsi.h324 struct typec_altmode *port_altmode[UCSI_MAX_ALTMODES];
325 struct typec_altmode *partner_altmode[UCSI_MAX_ALTMODES];
357 struct typec_altmode *
362 void ucsi_displayport_remove_partner(struct typec_altmode *adev);
365 static inline struct typec_altmode *
374 ucsi_displayport_remove_partner(struct typec_altmode *adev) { } in ucsi_displayport_remove_partner()
A Dtrace.h86 TP_PROTO(u8 recipient, struct typec_altmode *alt),
106 TP_PROTO(u8 recipient, struct typec_altmode *alt),
A Ducsi.c254 const struct typec_altmode *altmode = NULL; in ucsi_altmode_update_active()
279 static int ucsi_altmode_next_mode(struct typec_altmode **alt, u16 svid) in ucsi_altmode_next_mode()
295 static int ucsi_next_altmode(struct typec_altmode **alt) in ucsi_next_altmode()
310 struct typec_altmode *alt; in ucsi_register_altmode()
532 const struct typec_altmode *pdev; in ucsi_unregister_altmodes()
533 struct typec_altmode **adev; in ucsi_unregister_altmodes()
A Ducsi_ccg.c432 struct typec_altmode *alt = NULL; in ucsi_ccg_update_set_new_cam_cmd()
/linux/Documentation/driver-api/usb/
A Dtypec_bus.rst97 .. kernel-doc:: include/linux/usb/typec_altmode.h
103 .. kernel-doc:: include/linux/usb/typec_altmode.h
A Dtypec.rst173 typec_altmode on success, or NULL. The unregistration will happen with the same
/linux/drivers/platform/chrome/
A Dcros_ec_typec.c37 struct typec_altmode *amode;
64 struct typec_altmode p_altmode[CROS_EC_ALTMODE_MAX];
654 struct typec_altmode *amode; in cros_typec_register_altmodes()
/linux/drivers/usb/typec/tcpm/
A Dtcpm.c448 struct typec_altmode *partner_altmode[ALTMODE_DISCOVERY_MAX];
449 struct typec_altmode *port_altmode[ALTMODE_DISCOVERY_MAX];
1537 struct typec_altmode *altmode; in tcpm_register_partner_altmodes()
1554 static int tcpm_pd_svdm(struct tcpm_port *port, struct typec_altmode *adev, in tcpm_pd_svdm()
1559 struct typec_altmode *pdev; in tcpm_pd_svdm()
1754 struct typec_altmode *adev; in tcpm_handle_vdm_request()
2178 static int tcpm_altmode_enter(struct typec_altmode *altmode, u32 *vdo) in tcpm_altmode_enter()
2195 static int tcpm_altmode_exit(struct typec_altmode *altmode) in tcpm_altmode_exit()
2212 static int tcpm_altmode_vdm(struct typec_altmode *altmode, in tcpm_altmode_vdm()
/linux/
A DMAINTAINERS19816 F: include/linux/usb/typec_altmode.h

Completed in 56 milliseconds