Home
last modified time | relevance | path

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

12

/linux-6.15/include/linux/usb/
H A Dtypec_altmode.h25 struct typec_altmode { struct
60 int (*enter)(struct typec_altmode *altmode, u32 *vdo);
61 int (*exit)(struct typec_altmode *altmode);
63 int (*vdm)(struct typec_altmode *altmode, const u32 hdr,
71 int typec_altmode_exit(struct typec_altmode *altmode);
73 int typec_altmode_vdm(struct typec_altmode *altmode,
77 const struct typec_altmode *
148 struct typec_altmode *typec_altmode_get_plug(struct typec_altmode *altmode,
152 struct typec_altmode *typec_match_altmode(struct typec_altmode **altmodes,
187 int (*probe)(struct typec_altmode *altmode);
[all …]
H A Dtypec.h159 struct typec_altmode
163 struct typec_altmode
166 struct typec_altmode
172 struct typec_altmode **altmodes, size_t n);
174 void typec_port_register_cable_ops(struct typec_altmode **altmodes, int max_altmodes,
177 void typec_unregister_altmode(struct typec_altmode *altmode);
179 struct typec_port *typec_altmode2port(struct typec_altmode *alt);
181 void typec_altmode_update_active(struct typec_altmode *alt, bool active);
183 void typec_altmode_set_ops(struct typec_altmode *alt,
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;
/linux-6.15/drivers/usb/typec/
H A Dbus.c129 struct typec_altmode *pdev = &partner->adev; in typec_altmode_enter()
160 struct typec_altmode *pdev = &partner->adev; in typec_altmode_exit()
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()
237 const struct typec_altmode *
262 struct typec_altmode *pdev; in typec_cable_altmode_enter()
292 struct typec_altmode *pdev; in typec_cable_altmode_exit()
325 struct typec_altmode *pdev; in typec_cable_altmode_vdm()
360 struct typec_altmode *typec_altmode_get_plug(struct typec_altmode *adev, in typec_altmode_get_plug()
[all …]
H A Dclass.c246 struct typec_altmode *adev = &altmode->adev; in typec_altmode_set_partner()
273 struct typec_altmode *adev; in typec_altmode_put_partner()
274 struct typec_altmode *partner_adev; in typec_altmode_put_partner()
345 struct typec_altmode *alt = to_typec_altmode(dev); in vdo_show()
541 static struct typec_altmode *
962 struct typec_altmode *
1192 struct typec_altmode *
2465 struct typec_altmode *
2469 struct typec_altmode *adev; in typec_port_register_altmode()
2498 struct typec_altmode **altmodes, size_t n) in typec_port_register_altmodes()
[all …]
H A Dbus.h14 struct typec_altmode adev;
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-6.15/drivers/platform/chrome/
H A Dcros_typec_altmode.h10 struct typec_altmode;
15 struct typec_altmode *
20 int cros_typec_displayport_status_update(struct typec_altmode *altmode,
23 static inline struct typec_altmode *
31 static inline int cros_typec_displayport_status_update(struct typec_altmode *altmode, in cros_typec_displayport_status_update()
39 struct typec_altmode *
43 static inline struct typec_altmode *
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()
H A Dcros_ec_typec.h27 struct typec_altmode *amode;
70 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.c316 struct typec_altmode *amode; in cros_typec_register_port_altmodes()
806 struct typec_altmode *amode; in cros_typec_register_altmodes()
/linux-6.15/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 Dthunderbolt.c30 struct typec_altmode *alt;
31 struct typec_altmode *plug[2];
38 static bool tbt_ready(struct typec_altmode *alt);
42 struct typec_altmode *plug = tbt->plug[TYPEC_PLUG_SOP_P]; in tbt_enter_mode()
133 static int tbt_enter_modes_ordered(struct typec_altmode *alt) in tbt_enter_modes_ordered()
160 static int tbt_cable_altmode_vdm(struct typec_altmode *alt, in tbt_cable_altmode_vdm()
210 static int tbt_altmode_vdm(struct typec_altmode *alt, in tbt_altmode_vdm()
294 static int tbt_altmode_probe(struct typec_altmode *alt) in tbt_altmode_probe()
323 static void tbt_altmode_remove(struct typec_altmode *alt) in tbt_altmode_remove()
336 static bool tbt_ready(struct typec_altmode *alt) in tbt_ready()
[all …]
H A Ddisplayport.c71 struct typec_altmode *alt;
72 const struct typec_altmode *port;
74 struct typec_altmode *plug_prime;
322 static void dp_altmode_attention(struct typec_altmode *alt, const u32 vdo) in dp_altmode_attention()
348 static int dp_altmode_vdm(struct typec_altmode *alt, in dp_altmode_vdm()
416 static int dp_cable_altmode_vdm(struct typec_altmode *alt, enum typec_plug_index sop, in dp_cable_altmode_vdm()
475 static int dp_altmode_activate(struct typec_altmode *alt, int activate) in dp_altmode_activate()
723 int dp_altmode_probe(struct typec_altmode *alt) in dp_altmode_probe()
725 const struct typec_altmode *port = typec_altmode_get_partner(alt); in dp_altmode_probe()
726 struct typec_altmode *plug = typec_altmode_get_plug(alt, TYPEC_PLUG_SOP_P); in dp_altmode_probe()
[all …]
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()
/linux-6.15/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()
199 static int ucsi_displayport_vdm(struct typec_altmode *alt, in ucsi_displayport_vdm()
211 const struct typec_altmode *p = typec_altmode_get_partner(alt); in ucsi_displayport_vdm()
291 void ucsi_displayport_remove_partner(struct typec_altmode *alt) in ucsi_displayport_remove_partner()
309 struct typec_altmode *ucsi_register_displayport(struct ucsi_connector *con, in ucsi_register_displayport()
315 struct typec_altmode *alt; in ucsi_register_displayport()
H A Ducsi.h501 struct typec_altmode *port_altmode[UCSI_MAX_ALTMODES];
502 struct typec_altmode *partner_altmode[UCSI_MAX_ALTMODES];
503 struct typec_altmode *plug_altmode[UCSI_MAX_ALTMODES];
553 struct typec_altmode *
558 void ucsi_displayport_remove_partner(struct typec_altmode *adev);
561 static inline struct typec_altmode *
570 ucsi_displayport_remove_partner(struct typec_altmode *adev) { } in ucsi_displayport_remove_partner()
H A Dtrace.h86 TP_PROTO(u8 recipient, struct typec_altmode *alt),
106 TP_PROTO(u8 recipient, struct typec_altmode *alt),
H A Ducsi.c315 const struct typec_altmode *altmode = NULL; in ucsi_altmode_update_active()
340 static int ucsi_altmode_next_mode(struct typec_altmode **alt, u16 svid) in ucsi_altmode_next_mode()
356 static int ucsi_next_altmode(struct typec_altmode **alt) in ucsi_next_altmode()
367 static int ucsi_get_num_altmode(struct typec_altmode **alt) in ucsi_get_num_altmode()
382 struct typec_altmode *alt; in ucsi_register_altmode()
625 const struct typec_altmode *pdev; in ucsi_unregister_altmodes()
626 struct typec_altmode **adev; in ucsi_unregister_altmodes()
/linux-6.15/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
/linux-6.15/drivers/usb/typec/tcpm/
H A Dtcpm.c504 struct typec_altmode *partner_altmode[ALTMODE_DISCOVERY_MAX];
505 struct typec_altmode *plug_prime_altmode[ALTMODE_DISCOVERY_MAX];
506 struct typec_altmode *port_altmode[ALTMODE_DISCOVERY_MAX];
1794 struct typec_altmode *altmode; in tcpm_register_partner_altmodes()
1815 struct typec_altmode *altmode; in tcpm_register_plug_altmodes()
1920 static int tcpm_pd_svdm(struct tcpm_port *port, struct typec_altmode *adev, in tcpm_pd_svdm()
1927 struct typec_altmode *pdev, *pdev_prime; in tcpm_pd_svdm()
2292 struct typec_altmode *adev; in tcpm_handle_vdm_request()
2820 static int tcpm_altmode_enter(struct typec_altmode *altmode, u32 *vdo) in tcpm_altmode_enter()
2837 static int tcpm_altmode_exit(struct typec_altmode *altmode) in tcpm_altmode_exit()
[all …]
/linux-6.15/drivers/soc/qcom/
H A Dpmic_glink_altmode.c76 struct typec_altmode dp_alt;

12