Home
last modified time | relevance | path

Searched refs:altmode (Results 1 – 7 of 7) sorted by relevance

/linux/include/linux/usb/
A Dtypec_altmode.h40 dev_set_drvdata(&altmode->dev, data); in typec_altmode_set_drvdata()
45 return dev_get_drvdata(&altmode->dev); 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,
69 int typec_altmode_exit(struct typec_altmode *altmode);
71 int typec_altmode_vdm(struct typec_altmode *altmode,
76 typec_altmode_get_partner(struct typec_altmode *altmode);
157 int (*probe)(struct typec_altmode *altmode);
[all …]
A Dtypec.h147 void typec_unregister_altmode(struct typec_altmode *altmode);
/linux/drivers/usb/typec/
A Dbus.c34 struct altmode *port_altmode; in typec_altmode_set_state()
61 struct altmode *altmode; in typec_altmode_notify() local
62 struct altmode *partner; in typec_altmode_notify()
68 altmode = to_altmode(adev); in typec_altmode_notify()
70 if (!altmode->partner) in typec_altmode_notify()
181 struct altmode *altmode; in typec_altmode_vdm() local
188 if (!altmode->partner) in typec_altmode_vdm()
335 altmode->svid, altmode->mode); in typec_uevent()
365 struct altmode *altmode = to_altmode(adev); in typec_probe() local
369 if (!altmode->partner) in typec_probe()
[all …]
A Dbus.h11 struct altmode { struct
23 struct altmode *partner; argument
24 struct altmode *plug[2]; argument
27 #define to_altmode(d) container_of(d, struct altmode, adev)
A Dclass.c234 static void typec_altmode_set_partner(struct altmode *altmode) in typec_altmode_set_partner() argument
239 struct altmode *partner; in typec_altmode_set_partner()
248 altmode->partner = partner; in typec_altmode_set_partner()
254 partner->plug[plug->index] = altmode; in typec_altmode_set_partner()
256 partner->partner = altmode; in typec_altmode_set_partner()
260 static void typec_altmode_put_partner(struct altmode *altmode) in typec_altmode_put_partner() argument
262 struct altmode *partner = altmode->partner; in typec_altmode_put_partner()
360 struct altmode *altmode = to_altmode(adev); in active_store() local
375 if (altmode->partner && !enter && altmode->partner->adev.active) in active_store()
377 } else if (altmode->partner) { in active_store()
[all …]
/linux/drivers/usb/typec/tcpm/
A Dtcpm.c1537 struct typec_altmode *altmode; in tcpm_register_partner_altmodes() local
1541 altmode = typec_partner_register_altmode(port->partner, in tcpm_register_partner_altmodes()
1543 if (IS_ERR(altmode)) { in tcpm_register_partner_altmodes()
1546 altmode = NULL; in tcpm_register_partner_altmodes()
1548 port->partner_altmode[i] = altmode; in tcpm_register_partner_altmodes()
2180 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); in tcpm_altmode_enter()
2189 header |= VDO_OPOS(altmode->mode); in tcpm_altmode_enter()
2195 static int tcpm_altmode_exit(struct typec_altmode *altmode) in tcpm_altmode_exit() argument
2197 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); in tcpm_altmode_exit()
2206 header |= VDO_OPOS(altmode->mode); in tcpm_altmode_exit()
[all …]
/linux/drivers/usb/typec/ucsi/
A Ducsi.c254 const struct typec_altmode *altmode = NULL; in ucsi_altmode_update_active() local
272 altmode = typec_altmode_get_partner(con->port_altmode[cur]); in ucsi_altmode_update_active()
276 con->partner_altmode[i] == altmode); in ucsi_altmode_update_active()

Completed in 22 milliseconds