| /OK3568_Linux_fs/kernel/include/linux/usb/ |
| H A D | typec_altmode.h | 24 struct typec_altmode { struct 36 #define to_typec_altmode(d) container_of(d, struct typec_altmode, dev) argument 38 static inline void typec_altmode_set_drvdata(struct typec_altmode *altmode, in typec_altmode_set_drvdata() 44 static inline void *typec_altmode_get_drvdata(struct typec_altmode *altmode) in typec_altmode_get_drvdata() 59 int (*enter)(struct typec_altmode *altmode, u32 *vdo); 60 int (*exit)(struct typec_altmode *altmode); 61 void (*attention)(struct typec_altmode *altmode, u32 vdo); 62 int (*vdm)(struct typec_altmode *altmode, const u32 hdr, 64 int (*notify)(struct typec_altmode *altmode, unsigned long conf, 66 int (*activate)(struct typec_altmode *altmode, int activate); [all …]
|
| H A D | typec.h | 133 struct typec_altmode 137 struct typec_altmode 140 struct typec_altmode 147 struct typec_altmode **altmodes, size_t n); 151 struct typec_altmode **altmodes, size_t n) in typec_port_register_altmodes() 156 void typec_unregister_altmode(struct typec_altmode *altmode); 158 struct typec_port *typec_altmode2port(struct typec_altmode *alt); 160 void typec_altmode_update_active(struct typec_altmode *alt, bool active);
|
| H A D | typec_mux.h | 12 struct typec_altmode; 44 struct typec_altmode *alt;
|
| /OK3568_Linux_fs/kernel/drivers/usb/typec/ |
| H A 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 …]
|
| H A D | class.c | 285 struct typec_altmode *adev = to_typec_altmode(dev); in altmode_match() 296 struct typec_altmode *adev = &altmode->adev; in typec_altmode_set_partner() 323 struct typec_altmode *adev; in typec_altmode_put_partner() 348 void typec_altmode_update_active(struct typec_altmode *adev, bool active) in typec_altmode_update_active() 377 struct typec_port *typec_altmode2port(struct typec_altmode *alt) in typec_altmode2port() 393 struct typec_altmode *alt = to_typec_altmode(dev); in vdo_show() 402 struct typec_altmode *alt = to_typec_altmode(dev); in description_show() 411 struct typec_altmode *alt = to_typec_altmode(dev); in active_show() 419 struct typec_altmode *adev = to_typec_altmode(dev); in active_store() 481 struct typec_altmode *adev = to_typec_altmode(dev); in mode_show() [all …]
|
| H A D | bus.h | 13 struct typec_altmode adev;
|
| /OK3568_Linux_fs/u-boot/include/power/power_delivery/ |
| H A D | typec.h | 132 struct typec_altmode 136 struct typec_altmode 139 struct typec_altmode 146 struct typec_altmode **altmodes, size_t n); 150 struct typec_altmode **altmodes, size_t n) in typec_port_register_altmodes() 155 void typec_unregister_altmode(struct typec_altmode *altmode); 157 struct typec_port *typec_altmode2port(struct typec_altmode *alt); 159 void typec_altmode_update_active(struct typec_altmode *alt, bool active);
|
| /OK3568_Linux_fs/kernel/drivers/usb/typec/altmodes/ |
| 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 | 77 struct typec_altmode *alt; 78 const struct typec_altmode *port; 259 static void dp_altmode_attention(struct typec_altmode *alt, const u32 vdo) in dp_altmode_attention() 285 static int dp_altmode_vdm(struct typec_altmode *alt, in dp_altmode_vdm() 343 static int dp_altmode_activate(struct typec_altmode *alt, int activate) in dp_altmode_activate() 541 int dp_altmode_probe(struct typec_altmode *alt) in dp_altmode_probe() 543 const struct typec_altmode *port = typec_altmode_get_partner(alt); in dp_altmode_probe() 587 void dp_altmode_remove(struct typec_altmode *alt) in dp_altmode_remove()
|
| 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()
|
| /OK3568_Linux_fs/kernel/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() 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()
|
| H A D | ucsi.h | 347 struct typec_altmode *port_altmode[UCSI_MAX_ALTMODES]; 348 struct typec_altmode *partner_altmode[UCSI_MAX_ALTMODES]; 381 struct typec_altmode * 386 void ucsi_displayport_remove_partner(struct typec_altmode *adev); 389 static inline struct typec_altmode * 398 ucsi_displayport_remove_partner(struct typec_altmode *adev) { } in ucsi_displayport_remove_partner()
|
| H A D | trace.h | 86 TP_PROTO(u8 recipient, struct typec_altmode *alt), 106 TP_PROTO(u8 recipient, struct typec_altmode *alt),
|
| H A D | ucsi.c | 198 const struct typec_altmode *altmode = NULL; in ucsi_altmode_update_active() 223 static int ucsi_altmode_next_mode(struct typec_altmode **alt, u16 svid) in ucsi_altmode_next_mode() 239 static int ucsi_next_altmode(struct typec_altmode **alt) in ucsi_next_altmode() 254 struct typec_altmode *alt; in ucsi_register_altmode() 474 const struct typec_altmode *pdev; in ucsi_unregister_altmodes() 475 struct typec_altmode **adev; in ucsi_unregister_altmodes()
|
| H A D | ucsi_ccg.c | 432 struct typec_altmode *alt = NULL; in ucsi_ccg_update_set_new_cam_cmd()
|
| /OK3568_Linux_fs/kernel/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
|
| H A D | typec.rst | 173 typec_altmode on success, or NULL. The unregistration will happen with the same
|
| /OK3568_Linux_fs/kernel/drivers/usb/typec/tcpm/ |
| H A D | tcpm.c | 449 struct typec_altmode *partner_altmode[ALTMODE_DISCOVERY_MAX]; 450 struct typec_altmode *port_altmode[ALTMODE_DISCOVERY_MAX]; 1579 struct typec_altmode *altmode; in tcpm_register_partner_altmodes() 1596 static int tcpm_pd_svdm(struct tcpm_port *port, struct typec_altmode *adev, in tcpm_pd_svdm() 1601 struct typec_altmode *pdev; in tcpm_pd_svdm() 1814 struct typec_altmode *adev; in tcpm_handle_vdm_request() 2238 static int tcpm_altmode_enter(struct typec_altmode *altmode, u32 *vdo) in tcpm_altmode_enter() 2255 static int tcpm_altmode_exit(struct typec_altmode *altmode) in tcpm_altmode_exit() 2272 static int tcpm_altmode_vdm(struct typec_altmode *altmode, in tcpm_altmode_vdm()
|
| /OK3568_Linux_fs/kernel/drivers/platform/chrome/ |
| H A D | cros_ec_typec.c | 50 struct typec_altmode p_altmode[CROS_EC_ALTMODE_MAX];
|
| /OK3568_Linux_fs/kernel/ |
| H A D | MAINTAINERS | 18286 F: include/linux/usb/typec_altmode.h
|