Searched refs:altmode (Results 1 – 6 of 6) sorted by relevance
| /linux/include/linux/usb/ |
| H A D | typec_altmode.h | 49 static inline void typec_altmode_set_drvdata(struct typec_altmode *altmode, 52 dev_set_drvdata(&altmode->dev, data); 55 static inline void *typec_altmode_get_drvdata(struct typec_altmode *altmode) 57 return dev_get_drvdata(&altmode->dev); 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, in 39 typec_altmode_set_drvdata(struct typec_altmode * altmode,void * data) typec_altmode_set_drvdata() argument 45 typec_altmode_get_drvdata(struct typec_altmode * altmode) typec_altmode_get_drvdata() argument 103 typec_altmode_get_cable_svdm_version(struct typec_altmode * altmode) typec_altmode_get_cable_svdm_version() argument 160 typec_altmode_get_orientation(struct typec_altmode * altmode) typec_altmode_get_orientation() argument 170 typec_altmode_get_svdm_version(struct typec_altmode * altmode) typec_altmode_get_svdm_version() argument 183 typec_altmode_get_data_role(struct typec_altmode * altmode) typec_altmode_get_data_role() argument [all...] |
| H A D | typec.h | 181 void typec_unregister_altmode(struct typec_altmode *altmode);
|
| /linux/drivers/usb/typec/ |
| H A D | mode_selection.c | 214 struct typec_altmode *altmode = to_typec_altmode(dev); in altmode_add_to_list() local 215 const struct typec_altmode *pdev = typec_altmode_get_partner(altmode); in altmode_add_to_list() 218 if (pdev && altmode->ops && altmode->ops->activate) { in altmode_add_to_list()
|
| H A D | class.c | 244 static void typec_altmode_set_partner(struct altmode *altmode) in typec_altmode_set_partner() argument 246 struct typec_altmode *adev = &altmode->adev; in typec_altmode_set_partner() 249 struct altmode *partner; in typec_altmode_set_partner() 258 altmode->partner = partner; in typec_altmode_set_partner() 264 partner->plug[plug->index] = altmode; in typec_altmode_set_partner() 266 partner->partner = altmode; in typec_altmode_set_partner() 270 static void typec_altmode_put_partner(struct altmode *altmode) in typec_altmode_put_partner() argument 272 struct altmode *partner = altmode->partner; in typec_altmode_put_partner() 279 adev = &altmode->adev; in typec_altmode_put_partner() 372 struct altmode *altmode = to_altmode(adev); in active_store() local [all …]
|
| /linux/drivers/usb/typec/tcpm/ |
| H A D | tcpm.c | 1872 struct typec_altmode *altmode; in tcpm_register_partner_altmodes() local 1879 altmode = typec_partner_register_altmode(port->partner, in tcpm_register_partner_altmodes() 1881 if (IS_ERR(altmode)) { in tcpm_register_partner_altmodes() 1884 altmode = NULL; in tcpm_register_partner_altmodes() 1886 port->partner_altmode[i] = altmode; in tcpm_register_partner_altmodes() 1893 struct typec_altmode *altmode; in tcpm_register_plug_altmodes() local 1899 altmode = typec_plug_register_altmode(port->plug_prime, in tcpm_register_plug_altmodes() 1901 if (IS_ERR(altmode)) { in tcpm_register_plug_altmodes() 1904 altmode = NULL; in tcpm_register_plug_altmodes() 1906 port->plug_prime_altmode[i] = altmode; in tcpm_register_plug_altmodes() [all …]
|
| /linux/drivers/usb/typec/ucsi/ |
| H A D | ucsi.c | 316 const struct typec_altmode *altmode = NULL; in ucsi_altmode_update_active() local 335 altmode = typec_altmode_get_partner(con->port_altmode[cur]); in ucsi_altmode_update_active() 339 con->partner_altmode[i] == altmode); in ucsi_altmode_update_active() 341 if (altmode) in ucsi_altmode_update_active() 342 svid = altmode->svid; in ucsi_altmode_update_active()
|