Searched refs:typec_altmode (Results 1 – 15 of 15) sorted by relevance
| /Linux-v5.4/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); 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 | 110 struct typec_altmode 113 struct typec_altmode 116 struct typec_altmode 119 void typec_unregister_altmode(struct typec_altmode *altmode); 121 struct typec_port *typec_altmode2port(struct typec_altmode *alt); 123 void typec_altmode_update_active(struct typec_altmode *alt, bool active);
|
| /Linux-v5.4/drivers/usb/typec/ |
| D | bus.c | 18 static int typec_altmode_set_state(struct typec_altmode *adev, int state) in typec_altmode_set_state() 51 int typec_altmode_notify(struct typec_altmode *adev, in typec_altmode_notify() 92 int typec_altmode_enter(struct typec_altmode *adev) in typec_altmode_enter() 95 struct typec_altmode *pdev = &partner->adev; in typec_altmode_enter() 120 int typec_altmode_exit(struct typec_altmode *adev) in typec_altmode_exit() 123 struct typec_altmode *pdev = &partner->adev; in typec_altmode_exit() 149 void typec_altmode_attention(struct typec_altmode *adev, u32 vdo) in typec_altmode_attention() 151 struct typec_altmode *pdev = &to_altmode(adev)->partner->adev; in typec_altmode_attention() 169 int typec_altmode_vdm(struct typec_altmode *adev, in typec_altmode_vdm() 172 struct typec_altmode *pdev; in typec_altmode_vdm() [all …]
|
| D | class.c | 153 struct typec_altmode *adev = to_typec_altmode(dev); in altmode_match() 164 struct typec_altmode *adev = &altmode->adev; in typec_altmode_set_partner() 191 struct typec_altmode *adev; in typec_altmode_put_partner() 224 struct typec_altmode * 261 void typec_altmode_unregister_notifier(struct typec_altmode *adev, in typec_altmode_unregister_notifier() 279 void typec_altmode_update_active(struct typec_altmode *adev, bool active) in typec_altmode_update_active() 308 struct typec_port *typec_altmode2port(struct typec_altmode *alt) in typec_altmode2port() 324 struct typec_altmode *alt = to_typec_altmode(dev); in vdo_show() 333 struct typec_altmode *alt = to_typec_altmode(dev); in description_show() 342 struct typec_altmode *alt = to_typec_altmode(dev); in active_show() [all …]
|
| D | bus.h | 13 struct typec_altmode adev;
|
| /Linux-v5.4/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 | 62 struct typec_altmode *alt; 63 const struct typec_altmode *port; 223 static void dp_altmode_attention(struct typec_altmode *alt, const u32 vdo) in dp_altmode_attention() 249 static int dp_altmode_vdm(struct typec_altmode *alt, in dp_altmode_vdm() 307 static int dp_altmode_activate(struct typec_altmode *alt, int activate) in dp_altmode_activate() 510 int dp_altmode_probe(struct typec_altmode *alt) in dp_altmode_probe() 512 const struct typec_altmode *port = typec_altmode_get_partner(alt); in dp_altmode_probe() 550 void dp_altmode_remove(struct typec_altmode *alt) in dp_altmode_remove()
|
| /Linux-v5.4/drivers/usb/typec/ucsi/ |
| D | displayport.c | 21 struct typec_altmode *alt; 48 static int ucsi_displayport_enter(struct typec_altmode *alt) in ucsi_displayport_enter() 58 const struct typec_altmode *p = typec_altmode_get_partner(alt); in ucsi_displayport_enter() 103 static int ucsi_displayport_exit(struct typec_altmode *alt) in ucsi_displayport_exit() 112 const struct typec_altmode *p = typec_altmode_get_partner(alt); in ucsi_displayport_exit() 185 static int ucsi_displayport_vdm(struct typec_altmode *alt, in ucsi_displayport_vdm() 195 const struct typec_altmode *p = typec_altmode_get_partner(alt); in ucsi_displayport_vdm() 268 void ucsi_displayport_remove_partner(struct typec_altmode *alt) in ucsi_displayport_remove_partner() 281 struct typec_altmode *ucsi_register_displayport(struct ucsi_connector *con, in ucsi_register_displayport() 287 struct typec_altmode *alt; in ucsi_register_displayport()
|
| D | ucsi.h | 420 struct typec_altmode *port_altmode[UCSI_MAX_ALTMODES]; 421 struct typec_altmode *partner_altmode[UCSI_MAX_ALTMODES]; 436 struct typec_altmode * 441 void ucsi_displayport_remove_partner(struct typec_altmode *adev); 444 static inline struct typec_altmode * 453 ucsi_displayport_remove_partner(struct typec_altmode *adev) { } in ucsi_displayport_remove_partner()
|
| D | trace.h | 139 TP_PROTO(u8 recipient, struct typec_altmode *alt), 159 TP_PROTO(u8 recipient, struct typec_altmode *alt),
|
| D | ucsi.c | 224 const struct typec_altmode *altmode = NULL; in ucsi_altmode_update_active() 249 static u8 ucsi_altmode_next_mode(struct typec_altmode **alt, u16 svid) in ucsi_altmode_next_mode() 261 static int ucsi_next_altmode(struct typec_altmode **alt) in ucsi_next_altmode() 276 struct typec_altmode *alt; in ucsi_register_altmode() 401 const struct typec_altmode *pdev; in ucsi_unregister_altmodes() 402 struct typec_altmode **adev; in ucsi_unregister_altmodes()
|
| /Linux-v5.4/drivers/usb/typec/tcpm/ |
| D | tcpm.c | 316 struct typec_altmode *partner_altmode[ALTMODE_DISCOVERY_MAX]; 317 struct typec_altmode *port_altmode[ALTMODE_DISCOVERY_MAX]; 1039 struct typec_altmode *altmode; in tcpm_register_partner_altmodes() 1057 struct typec_altmode *adev; in tcpm_pd_svdm() 1058 struct typec_altmode *pdev; in tcpm_pd_svdm() 1487 static int tcpm_altmode_enter(struct typec_altmode *altmode) in tcpm_altmode_enter() 1503 static int tcpm_altmode_exit(struct typec_altmode *altmode) in tcpm_altmode_exit() 1519 static int tcpm_altmode_vdm(struct typec_altmode *altmode, in tcpm_altmode_vdm() 4805 struct typec_altmode *alt; in tcpm_register_port()
|
| /Linux-v5.4/Documentation/driver-api/usb/ |
| D | typec.rst | 173 typec_altmode on success, or NULL. The unregistration will happen with the same
|
| /Linux-v5.4/ |
| D | MAINTAINERS | 16969 F: include/linux/usb/typec_altmode.h
|