| /Linux-v5.10/include/linux/usb/ |
| D | typec_altmode.h | 24 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 …]
|
| D | typec.h | 129 struct typec_altmode 132 struct typec_altmode 135 struct typec_altmode 138 void typec_unregister_altmode(struct typec_altmode *altmode); 140 struct typec_port *typec_altmode2port(struct typec_altmode *alt); 142 void typec_altmode_update_active(struct typec_altmode *alt, bool active);
|
| D | typec_mux.h | 12 struct typec_altmode; 44 struct typec_altmode *alt;
|
| /Linux-v5.10/drivers/usb/typec/ |
| D | bus.c | 28 static int typec_altmode_set_state(struct typec_altmode *adev, in typec_altmode_set_state() 55 int typec_altmode_notify(struct typec_altmode *adev, in typec_altmode_notify() 95 int typec_altmode_enter(struct typec_altmode *adev, u32 *vdo) in typec_altmode_enter() 98 struct typec_altmode *pdev = &partner->adev; in typec_altmode_enter() 126 int typec_altmode_exit(struct typec_altmode *adev) in typec_altmode_exit() 129 struct typec_altmode *pdev = &partner->adev; in typec_altmode_exit() 155 void typec_altmode_attention(struct typec_altmode *adev, u32 vdo) in typec_altmode_attention() 157 struct typec_altmode *pdev = &to_altmode(adev)->partner->adev; in typec_altmode_attention() 175 int typec_altmode_vdm(struct typec_altmode *adev, in typec_altmode_vdm() 178 struct typec_altmode *pdev; in typec_altmode_vdm() [all …]
|
| D | class.c | 154 struct typec_altmode *adev = to_typec_altmode(dev); in altmode_match() 165 struct typec_altmode *adev = &altmode->adev; in typec_altmode_set_partner() 192 struct typec_altmode *adev; in typec_altmode_put_partner() 217 void typec_altmode_update_active(struct typec_altmode *adev, bool active) in typec_altmode_update_active() 246 struct typec_port *typec_altmode2port(struct typec_altmode *alt) in typec_altmode2port() 262 struct typec_altmode *alt = to_typec_altmode(dev); in vdo_show() 271 struct typec_altmode *alt = to_typec_altmode(dev); in description_show() 280 struct typec_altmode *alt = to_typec_altmode(dev); in active_show() 288 struct typec_altmode *adev = to_typec_altmode(dev); in active_store() 350 struct typec_altmode *adev = to_typec_altmode(dev); in mode_show() [all …]
|
| D | bus.h | 13 struct typec_altmode adev;
|
| /Linux-v5.10/drivers/usb/typec/altmodes/ |
| 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()
|
| 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()
|
| D | displayport.c | 63 struct typec_altmode *alt; 64 const struct typec_altmode *port; 224 static void dp_altmode_attention(struct typec_altmode *alt, const u32 vdo) in dp_altmode_attention() 250 static int dp_altmode_vdm(struct typec_altmode *alt, in dp_altmode_vdm() 308 static int dp_altmode_activate(struct typec_altmode *alt, int activate) in dp_altmode_activate() 512 int dp_altmode_probe(struct typec_altmode *alt) in dp_altmode_probe() 514 const struct typec_altmode *port = typec_altmode_get_partner(alt); in dp_altmode_probe() 552 void dp_altmode_remove(struct typec_altmode *alt) in dp_altmode_remove()
|
| /Linux-v5.10/drivers/usb/typec/ucsi/ |
| D | displayport.c | 21 struct typec_altmode *alt; 48 static int ucsi_displayport_enter(struct typec_altmode *alt, u32 *vdo) in ucsi_displayport_enter() 59 const struct typec_altmode *p = typec_altmode_get_partner(alt); in ucsi_displayport_enter() 101 static int ucsi_displayport_exit(struct typec_altmode *alt) in ucsi_displayport_exit() 110 const struct typec_altmode *p = typec_altmode_get_partner(alt); in ucsi_displayport_exit() 183 static int ucsi_displayport_vdm(struct typec_altmode *alt, in ucsi_displayport_vdm() 193 const struct typec_altmode *p = typec_altmode_get_partner(alt); in ucsi_displayport_vdm() 266 void ucsi_displayport_remove_partner(struct typec_altmode *alt) in ucsi_displayport_remove_partner() 282 struct typec_altmode *ucsi_register_displayport(struct ucsi_connector *con, in ucsi_register_displayport() 288 struct typec_altmode *alt; in ucsi_register_displayport()
|
| D | ucsi.h | 320 struct typec_altmode *port_altmode[UCSI_MAX_ALTMODES]; 321 struct typec_altmode *partner_altmode[UCSI_MAX_ALTMODES]; 351 struct typec_altmode * 356 void ucsi_displayport_remove_partner(struct typec_altmode *adev); 359 static inline struct typec_altmode * 368 ucsi_displayport_remove_partner(struct typec_altmode *adev) { } in ucsi_displayport_remove_partner()
|
| D | trace.h | 86 TP_PROTO(u8 recipient, struct typec_altmode *alt), 106 TP_PROTO(u8 recipient, struct typec_altmode *alt),
|
| D | ucsi.c | 194 const struct typec_altmode *altmode = NULL; in ucsi_altmode_update_active() 219 static int ucsi_altmode_next_mode(struct typec_altmode **alt, u16 svid) in ucsi_altmode_next_mode() 235 static int ucsi_next_altmode(struct typec_altmode **alt) in ucsi_next_altmode() 250 struct typec_altmode *alt; in ucsi_register_altmode() 470 const struct typec_altmode *pdev; in ucsi_unregister_altmodes() 471 struct typec_altmode **adev; in ucsi_unregister_altmodes()
|
| D | ucsi_ccg.c | 432 struct typec_altmode *alt = NULL; in ucsi_ccg_update_set_new_cam_cmd()
|
| /Linux-v5.10/Documentation/driver-api/usb/ |
| D | typec_bus.rst | 97 .. kernel-doc:: include/linux/usb/typec_altmode.h 103 .. kernel-doc:: include/linux/usb/typec_altmode.h
|
| D | typec.rst | 173 typec_altmode on success, or NULL. The unregistration will happen with the same
|
| /Linux-v5.10/drivers/usb/typec/tcpm/ |
| D | tcpm.c | 357 struct typec_altmode *partner_altmode[ALTMODE_DISCOVERY_MAX]; 358 struct typec_altmode *port_altmode[ALTMODE_DISCOVERY_MAX]; 1146 struct typec_altmode *altmode; in tcpm_register_partner_altmodes() 1163 static int tcpm_pd_svdm(struct tcpm_port *port, struct typec_altmode *adev, in tcpm_pd_svdm() 1167 struct typec_altmode *pdev; in tcpm_pd_svdm() 1299 struct typec_altmode *adev; in tcpm_handle_vdm_request() 1630 static int tcpm_altmode_enter(struct typec_altmode *altmode, u32 *vdo) in tcpm_altmode_enter() 1642 static int tcpm_altmode_exit(struct typec_altmode *altmode) in tcpm_altmode_exit() 1654 static int tcpm_altmode_vdm(struct typec_altmode *altmode, in tcpm_altmode_vdm()
|
| /Linux-v5.10/drivers/platform/chrome/ |
| D | cros_ec_typec.c | 50 struct typec_altmode p_altmode[CROS_EC_ALTMODE_MAX];
|
| /Linux-v5.10/ |
| D | MAINTAINERS | 18246 F: include/linux/usb/typec_altmode.h
|