Home
last modified time | relevance | path

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

12

/openbmc/linux/include/linux/usb/
H A 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, u32 *vdo);
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 …]
H A Dtypec.h145 struct typec_altmode
149 struct typec_altmode
152 struct typec_altmode
158 struct typec_altmode **altmodes, size_t n);
160 void typec_unregister_altmode(struct typec_altmode *altmode);
162 struct typec_port *typec_altmode2port(struct typec_altmode *alt);
164 void typec_altmode_update_active(struct typec_altmode *alt, bool active);
H A Dtypec_retimer.h11 struct typec_altmode;
15 struct typec_altmode *alt;
H A Dtypec_mux.h14 struct typec_altmode;
46 struct typec_altmode *alt;
/openbmc/linux/drivers/usb/typec/
H A Dbus.c59 static int typec_altmode_set_state(struct typec_altmode *adev, in typec_altmode_set_state()
86 int typec_altmode_notify(struct typec_altmode *adev, in typec_altmode_notify()
126 int typec_altmode_enter(struct typec_altmode *adev, u32 *vdo) in typec_altmode_enter()
129 struct typec_altmode *pdev = &partner->adev; in typec_altmode_enter()
157 int typec_altmode_exit(struct typec_altmode *adev) in typec_altmode_exit()
160 struct typec_altmode *pdev = &partner->adev; in typec_altmode_exit()
186 int typec_altmode_attention(struct typec_altmode *adev, u32 vdo) in typec_altmode_attention()
189 struct typec_altmode *pdev; in typec_altmode_attention()
214 int typec_altmode_vdm(struct typec_altmode *adev, in typec_altmode_vdm()
217 struct typec_altmode *pdev; in typec_altmode_vdm()
[all …]
H A Dclass.c226 struct typec_altmode *adev = to_typec_altmode(dev); in altmode_match()
237 struct typec_altmode *adev = &altmode->adev; in typec_altmode_set_partner()
264 struct typec_altmode *adev; in typec_altmode_put_partner()
265 struct typec_altmode *partner_adev; in typec_altmode_put_partner()
291 void typec_altmode_update_active(struct typec_altmode *adev, bool active) in typec_altmode_update_active()
320 struct typec_port *typec_altmode2port(struct typec_altmode *alt) in typec_altmode2port()
336 struct typec_altmode *alt = to_typec_altmode(dev); in vdo_show()
345 struct typec_altmode *alt = to_typec_altmode(dev); in description_show()
354 struct typec_altmode *alt = to_typec_altmode(dev); in active_show()
362 struct typec_altmode *adev = to_typec_altmode(dev); in active_store()
[all …]
H A Dbus.h14 struct typec_altmode adev;
H A Danx7411.c250 struct typec_altmode *amode[MAX_ALTMODE];
251 struct typec_altmode *port_amode[MAX_ALTMODE];
1014 static void anx7411_port_unregister_altmodes(struct typec_altmode **adev) in anx7411_port_unregister_altmodes()
/openbmc/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()
H 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()
H A Ddisplayport.c67 struct typec_altmode *alt;
68 const struct typec_altmode *port;
255 static void dp_altmode_attention(struct typec_altmode *alt, const u32 vdo) in dp_altmode_attention()
281 static int dp_altmode_vdm(struct typec_altmode *alt, in dp_altmode_vdm()
346 static int dp_altmode_activate(struct typec_altmode *alt, int activate) in dp_altmode_activate()
574 int dp_altmode_probe(struct typec_altmode *alt) in dp_altmode_probe()
576 const struct typec_altmode *port = typec_altmode_get_partner(alt); in dp_altmode_probe()
618 void dp_altmode_remove(struct typec_altmode *alt) in dp_altmode_remove()
/openbmc/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()
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()
288 void ucsi_displayport_remove_partner(struct typec_altmode *alt) in ucsi_displayport_remove_partner()
304 struct typec_altmode *ucsi_register_displayport(struct ucsi_connector *con, in ucsi_register_displayport()
310 struct typec_altmode *alt; in ucsi_register_displayport()
H A Ducsi.h358 struct typec_altmode *port_altmode[UCSI_MAX_ALTMODES];
359 struct typec_altmode *partner_altmode[UCSI_MAX_ALTMODES];
399 struct typec_altmode *
404 void ucsi_displayport_remove_partner(struct typec_altmode *adev); in ucsi_register_displayport()
407 static inline struct typec_altmode * in ucsi_register_displayport()
416 ucsi_displayport_remove_partner(struct typec_altmode *adev) { }
H A Dtrace.h86 TP_PROTO(u8 recipient, struct typec_altmode *alt),
106 TP_PROTO(u8 recipient, struct typec_altmode *alt),
H A Ducsi.c278 const struct typec_altmode *altmode = NULL; in ucsi_altmode_update_active()
303 static int ucsi_altmode_next_mode(struct typec_altmode **alt, u16 svid) in ucsi_altmode_next_mode()
319 static int ucsi_next_altmode(struct typec_altmode **alt) in ucsi_next_altmode()
330 static int ucsi_get_num_altmode(struct typec_altmode **alt) in ucsi_get_num_altmode()
345 struct typec_altmode *alt; in ucsi_register_altmode()
567 const struct typec_altmode *pdev; in ucsi_unregister_altmodes()
568 struct typec_altmode **adev; in ucsi_unregister_altmodes()
H A Ducsi_ccg.c437 struct typec_altmode *alt = NULL; in ucsi_ccg_update_set_new_cam_cmd()
/openbmc/linux/drivers/platform/chrome/
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()
H A Dcros_ec_typec.h26 struct typec_altmode *amode;
68 struct typec_altmode *port_altmode[CROS_EC_ALTMODE_MAX];
H A Dcros_typec_switch.c51 static int cros_typec_get_mux_state(unsigned long mode, struct typec_altmode *alt) in cros_typec_get_mux_state()
109 unsigned long mode, struct typec_altmode *alt) in cros_typec_configure_mux()
H A Dcros_ec_typec.c271 struct typec_altmode *amode; in cros_typec_register_port_altmodes()
715 struct typec_altmode *amode; in cros_typec_register_altmodes()
/openbmc/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
/openbmc/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c458 struct typec_altmode *partner_altmode[ALTMODE_DISCOVERY_MAX];
459 struct typec_altmode *port_altmode[ALTMODE_DISCOVERY_MAX];
1577 struct typec_altmode *altmode; in tcpm_register_partner_altmodes()
1597 static int tcpm_pd_svdm(struct tcpm_port *port, struct typec_altmode *adev, in tcpm_pd_svdm()
1602 struct typec_altmode *pdev; in tcpm_pd_svdm()
1797 struct typec_altmode *adev; in tcpm_handle_vdm_request()
2225 static int tcpm_altmode_enter(struct typec_altmode *altmode, u32 *vdo) in tcpm_altmode_enter()
2242 static int tcpm_altmode_exit(struct typec_altmode *altmode) in tcpm_altmode_exit()
2259 static int tcpm_altmode_vdm(struct typec_altmode *altmode, in tcpm_altmode_vdm()
/openbmc/linux/drivers/soc/qcom/
H A Dpmic_glink_altmode.c75 struct typec_altmode dp_alt;
/openbmc/linux/
H A DMAINTAINERS22432 F: include/linux/usb/typec_altmode.h

12