| /linux/include/linux/usb/ |
| H A D | typec_altmode.h | 33 struct typec_altmode { struct 47 #define to_typec_altmode(d) container_of(d, struct typec_altmode, dev) argument 49 static inline void typec_altmode_set_drvdata(struct typec_altmode *altmode, in typec_altmode_set_drvdata() 55 static inline void *typec_altmode_get_drvdata(struct typec_altmode *altmode) in typec_altmode_get_drvdata() 70 int (*enter)(struct typec_altmode *altmode, u32 *vdo); 71 int (*exit)(struct typec_altmode *altmode); 72 void (*attention)(struct typec_altmode *altmode, u32 vdo); 73 int (*vdm)(struct typec_altmode *altmode, const u32 hdr, 75 int (*notify)(struct typec_altmode *altmode, unsigned long conf, 77 int (*activate)(struct typec_altmode *altmode, int activate); [all …]
|
| H A D | typec.h | 163 struct typec_altmode 167 struct typec_altmode 170 struct typec_altmode 176 struct typec_altmode **altmodes, size_t n); 178 void typec_port_register_cable_ops(struct typec_altmode **altmodes, int max_altmodes, 181 void typec_unregister_altmode(struct typec_altmode *altmode); 183 struct typec_port *typec_altmode2port(struct typec_altmode *alt); 185 void typec_altmode_update_active(struct typec_altmode *alt, bool active); 187 void typec_altmode_set_ops(struct typec_altmode *alt,
|
| H A D | typec_retimer.h | 11 struct typec_altmode; 15 struct typec_altmode *alt;
|
| H A D | typec_mux.h | 15 struct typec_altmode; 82 struct typec_altmode *alt;
|
| /linux/drivers/usb/typec/ |
| H A D | bus.c | 59 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 D | class.c | 235 struct typec_altmode *adev = to_typec_altmode(dev); in altmode_match() 246 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() 300 void typec_altmode_update_active(struct typec_altmode *adev, bool active) in typec_altmode_update_active() 329 struct typec_port *typec_altmode2port(struct typec_altmode *alt) in typec_altmode2port() 345 struct typec_altmode *alt = to_typec_altmode(dev); in vdo_show() 354 struct typec_altmode *alt = to_typec_altmode(dev); in description_show() 363 struct typec_altmode *alt = to_typec_altmode(dev); in active_show() 371 struct typec_altmode *adev = to_typec_altmode(dev); in active_store() [all …]
|
| H A D | mode_selection.c | 66 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 D | bus.h | 13 struct typec_altmode adev;
|
| H A D | anx7411.c | 251 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/drivers/platform/chrome/ |
| H A D | cros_typec_altmode.h | 10 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 D | cros_typec_altmode.c | 21 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 D | cros_typec_vdm.c | 26 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 D | cros_ec_typec.h | 27 struct typec_altmode *amode; 70 struct typec_altmode *port_altmode[CROS_EC_ALTMODE_MAX];
|
| /linux/drivers/usb/typec/altmodes/ |
| H A D | thunderbolt.c | 30 struct typec_altmode *alt; 31 struct typec_altmode *plug[2]; 38 static bool tbt_ready(struct typec_altmode *alt); 112 static int tbt_enter_modes_ordered(struct typec_altmode *alt) in tbt_enter_modes_ordered() 139 static int tbt_cable_altmode_vdm(struct typec_altmode *alt, in tbt_cable_altmode_vdm() 189 static int tbt_altmode_vdm(struct typec_altmode *alt, in tbt_altmode_vdm() 247 static int tbt_altmode_activate(struct typec_altmode *alt, int activate) in tbt_altmode_activate() 273 static int tbt_altmode_probe(struct typec_altmode *alt) in tbt_altmode_probe() 302 static void tbt_altmode_remove(struct typec_altmode *alt) in tbt_altmode_remove() 315 static bool tbt_ready(struct typec_altmode *alt) in tbt_ready() [all …]
|
| H A D | displayport.h | 3 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 D | displayport.c | 78 struct typec_altmode *alt; 79 const struct typec_altmode *port; 81 struct typec_altmode *plug_prime; 346 static void dp_altmode_attention(struct typec_altmode *alt, const u32 vdo) in dp_altmode_attention() 372 static int dp_altmode_vdm(struct typec_altmode *alt, in dp_altmode_vdm() 443 static int dp_cable_altmode_vdm(struct typec_altmode *alt, enum typec_plug_index sop, in dp_cable_altmode_vdm() 502 static int dp_altmode_activate(struct typec_altmode *alt, int activate) in dp_altmode_activate() 759 int dp_altmode_probe(struct typec_altmode *alt) in dp_altmode_probe() 761 const struct typec_altmode *port = typec_altmode_get_partner(alt); in dp_altmode_probe() 762 struct typec_altmode *plug = typec_altmode_get_plug(alt, TYPEC_PLUG_SOP_P); in dp_altmode_probe() [all …]
|
| H A D | nvidia.c | 12 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/ |
| H A D | displayport.c | 21 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 D | thunderbolt.c | 30 struct typec_altmode *alt; 81 static int ucsi_thunderbolt_enter(struct typec_altmode *alt, u32 *vdo) in ucsi_thunderbolt_enter() 117 static int ucsi_thunderbolt_exit(struct typec_altmode *alt) in ucsi_thunderbolt_exit() 132 static int ucsi_thunderbolt_vdm(struct typec_altmode *alt, in ucsi_thunderbolt_vdm() 176 struct typec_altmode *ucsi_register_thunderbolt(struct ucsi_connector *con, in ucsi_register_thunderbolt() 180 struct typec_altmode *alt; in ucsi_register_thunderbolt() 203 void ucsi_thunderbolt_remove_partner(struct typec_altmode *alt) in ucsi_thunderbolt_remove_partner()
|
| H A D | ucsi.h | 527 struct typec_altmode *port_altmode[UCSI_MAX_ALTMODES]; 528 struct typec_altmode *partner_altmode[UCSI_MAX_ALTMODES]; 529 struct typec_altmode *plug_altmode[UCSI_MAX_ALTMODES]; 583 struct typec_altmode * 588 void ucsi_displayport_remove_partner(struct typec_altmode *adev); 591 static inline struct typec_altmode * 600 ucsi_displayport_remove_partner(struct typec_altmode *adev) { } in ucsi_displayport_remove_partner() 604 struct typec_altmode * 609 void ucsi_thunderbolt_remove_partner(struct typec_altmode *adev); 611 static inline struct typec_altmode * [all …]
|
| H A D | trace.h | 85 TP_PROTO(u8 recipient, struct typec_altmode *alt), 105 TP_PROTO(u8 recipient, struct typec_altmode *alt),
|
| H A D | ucsi.c | 321 const struct typec_altmode *altmode = NULL; in ucsi_altmode_update_active() 351 static int ucsi_altmode_next_mode(struct typec_altmode **alt, u16 svid) in ucsi_altmode_next_mode() 367 static int ucsi_next_altmode(struct typec_altmode **alt) in ucsi_next_altmode() 378 static int ucsi_get_num_altmode(struct typec_altmode **alt) in ucsi_get_num_altmode() 393 struct typec_altmode *alt; in ucsi_register_altmode() 640 const struct typec_altmode *pdev; in ucsi_unregister_altmodes() 641 struct typec_altmode **adev; in ucsi_unregister_altmodes()
|
| /linux/Documentation/driver-api/usb/ |
| H A D | typec_bus.rst | 97 .. kernel-doc:: include/linux/usb/typec_altmode.h 103 .. kernel-doc:: include/linux/usb/typec_altmode.h
|
| /linux/drivers/soc/qcom/ |
| H A D | pmic_glink_altmode.c | 108 struct typec_altmode dp_alt; 109 struct typec_altmode tbt_alt;
|
| /linux/drivers/usb/typec/tcpm/ |
| H A D | tcpm.c | 509 struct typec_altmode *partner_altmode[ALTMODE_DISCOVERY_MAX]; 510 struct typec_altmode *plug_prime_altmode[ALTMODE_DISCOVERY_MAX]; 511 struct typec_altmode *port_altmode[ALTMODE_DISCOVERY_MAX]; 1872 struct typec_altmode *altmode; in tcpm_register_partner_altmodes() 1893 struct typec_altmode *altmode; in tcpm_register_plug_altmodes() 1998 static int tcpm_pd_svdm(struct tcpm_port *port, struct typec_altmode *adev, in tcpm_pd_svdm() 2005 struct typec_altmode *pdev, *pdev_prime; in tcpm_pd_svdm() 2370 struct typec_altmode *adev; in tcpm_handle_vdm_request() 2902 static int tcpm_altmode_enter(struct typec_altmode *altmode, u32 *vdo) in tcpm_altmode_enter() 2918 static int tcpm_altmode_exit(struct typec_altmode *altmode) in tcpm_altmode_exit() [all …]
|