/linux-6.1.9/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 | 144 struct typec_altmode 148 struct typec_altmode 151 struct typec_altmode 157 struct typec_altmode **altmodes, size_t n); 159 void typec_unregister_altmode(struct typec_altmode *altmode); 161 struct typec_port *typec_altmode2port(struct typec_altmode *alt); 163 void typec_altmode_update_active(struct typec_altmode *alt, bool active);
|
D | typec_retimer.h | 11 struct typec_altmode; 15 struct typec_altmode *alt;
|
D | typec_mux.h | 14 struct typec_altmode; 46 struct typec_altmode *alt;
|
/linux-6.1.9/drivers/usb/typec/ |
D | bus.c | 30 static int typec_altmode_set_state(struct typec_altmode *adev, in typec_altmode_set_state() 57 int typec_altmode_notify(struct typec_altmode *adev, in typec_altmode_notify() 97 int typec_altmode_enter(struct typec_altmode *adev, u32 *vdo) in typec_altmode_enter() 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() 157 void typec_altmode_attention(struct typec_altmode *adev, u32 vdo) in typec_altmode_attention() 159 struct typec_altmode *pdev = &to_altmode(adev)->partner->adev; in typec_altmode_attention() 177 int typec_altmode_vdm(struct typec_altmode *adev, in typec_altmode_vdm() 180 struct typec_altmode *pdev; in typec_altmode_vdm() [all …]
|
D | class.c | 227 struct typec_altmode *adev = to_typec_altmode(dev); in altmode_match() 238 struct typec_altmode *adev = &altmode->adev; in typec_altmode_set_partner() 265 struct typec_altmode *adev; in typec_altmode_put_partner() 290 void typec_altmode_update_active(struct typec_altmode *adev, bool active) in typec_altmode_update_active() 319 struct typec_port *typec_altmode2port(struct typec_altmode *alt) in typec_altmode2port() 335 struct typec_altmode *alt = to_typec_altmode(dev); in vdo_show() 344 struct typec_altmode *alt = to_typec_altmode(dev); in description_show() 353 struct typec_altmode *alt = to_typec_altmode(dev); in active_show() 361 struct typec_altmode *adev = to_typec_altmode(dev); in active_store() 423 struct typec_altmode *adev = to_typec_altmode(dev); in mode_show() [all …]
|
D | bus.h | 13 struct typec_altmode adev;
|
D | anx7411.c | 250 struct typec_altmode *amode[MAX_ALTMODE]; 251 struct typec_altmode *port_amode[MAX_ALTMODE]; 1012 static void anx7411_port_unregister_altmodes(struct typec_altmode **adev) in anx7411_port_unregister_altmodes()
|
/linux-6.1.9/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 | 66 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() 528 int dp_altmode_probe(struct typec_altmode *alt) in dp_altmode_probe() 530 const struct typec_altmode *port = typec_altmode_get_partner(alt); in dp_altmode_probe() 574 void dp_altmode_remove(struct typec_altmode *alt) in dp_altmode_remove()
|
/linux-6.1.9/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() 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()
|
D | ucsi.h | 330 struct typec_altmode *port_altmode[UCSI_MAX_ALTMODES]; 331 struct typec_altmode *partner_altmode[UCSI_MAX_ALTMODES]; 363 struct typec_altmode * 368 void ucsi_displayport_remove_partner(struct typec_altmode *adev); 371 static inline struct typec_altmode * 380 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 | 253 const struct typec_altmode *altmode = NULL; in ucsi_altmode_update_active() 278 static int ucsi_altmode_next_mode(struct typec_altmode **alt, u16 svid) in ucsi_altmode_next_mode() 294 static int ucsi_next_altmode(struct typec_altmode **alt) in ucsi_next_altmode() 305 static int ucsi_get_num_altmode(struct typec_altmode **alt) in ucsi_get_num_altmode() 320 struct typec_altmode *alt; in ucsi_register_altmode() 542 const struct typec_altmode *pdev; in ucsi_unregister_altmodes() 543 struct typec_altmode **adev; in ucsi_unregister_altmodes()
|
D | ucsi_ccg.c | 437 struct typec_altmode *alt = NULL; in ucsi_ccg_update_set_new_cam_cmd()
|
/linux-6.1.9/drivers/platform/chrome/ |
D | cros_typec_switch.c | 51 static int cros_typec_get_mux_state(unsigned long mode, struct typec_altmode *alt) in cros_typec_get_mux_state() 104 unsigned long mode, struct typec_altmode *alt) in cros_typec_configure_mux()
|
D | cros_ec_typec.c | 41 struct typec_altmode *amode; 68 struct typec_altmode *port_altmode[CROS_EC_ALTMODE_MAX]; 335 struct typec_altmode *amode; in cros_typec_register_port_altmodes() 744 struct typec_altmode *amode; in cros_typec_register_altmodes()
|
/linux-6.1.9/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-6.1.9/drivers/usb/typec/tcpm/ |
D | tcpm.c | 456 struct typec_altmode *partner_altmode[ALTMODE_DISCOVERY_MAX]; 457 struct typec_altmode *port_altmode[ALTMODE_DISCOVERY_MAX]; 1545 struct typec_altmode *altmode; in tcpm_register_partner_altmodes() 1562 static int tcpm_pd_svdm(struct tcpm_port *port, struct typec_altmode *adev, in tcpm_pd_svdm() 1567 struct typec_altmode *pdev; in tcpm_pd_svdm() 1762 struct typec_altmode *adev; in tcpm_handle_vdm_request() 2186 static int tcpm_altmode_enter(struct typec_altmode *altmode, u32 *vdo) in tcpm_altmode_enter() 2203 static int tcpm_altmode_exit(struct typec_altmode *altmode) in tcpm_altmode_exit() 2220 static int tcpm_altmode_vdm(struct typec_altmode *altmode, in tcpm_altmode_vdm()
|
/linux-6.1.9/ |
D | MAINTAINERS | 21399 F: include/linux/usb/typec_altmode.h
|