Home
last modified time | relevance | path

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

/linux/include/linux/usb/
A Dtypec_altmode.h42 dev_set_drvdata(&altmode->dev, data); in typec_altmode_set_drvdata()
47 return dev_get_drvdata(&altmode->dev); in typec_altmode_get_drvdata()
60 int (*enter)(struct typec_altmode *altmode, u32 *vdo);
61 int (*exit)(struct typec_altmode *altmode);
62 void (*attention)(struct typec_altmode *altmode, u32 vdo);
63 int (*vdm)(struct typec_altmode *altmode, const u32 hdr,
71 int typec_altmode_exit(struct typec_altmode *altmode);
73 int typec_altmode_vdm(struct typec_altmode *altmode,
78 typec_altmode_get_partner(struct typec_altmode *altmode);
187 int (*probe)(struct typec_altmode *altmode);
[all …]
A Dtypec.h164 void typec_unregister_altmode(struct typec_altmode *altmode);
/linux/drivers/soc/qcom/
A Dpmic_glink_altmode.c117 mutex_lock(&altmode->lock); in pmic_glink_altmode_request()
138 mutex_unlock(&altmode->lock); in pmic_glink_altmode_request()
221 struct pmic_glink_altmode *altmode = alt_port->altmode; in pmic_glink_altmode_worker() local
288 if (port >= ARRAY_SIZE(altmode->ports) || !altmode->ports[port].altmode) { in pmic_glink_altmode_sc8180xp_notify()
331 if (port >= ARRAY_SIZE(altmode->ports) || !altmode->ports[port].altmode) { in pmic_glink_altmode_sc8280xp_notify()
417 altmode = devm_kzalloc(dev, sizeof(*altmode), GFP_KERNEL); in pmic_glink_altmode_probe()
418 if (!altmode) in pmic_glink_altmode_probe()
421 altmode->dev = dev; in pmic_glink_altmode_probe()
446 if (altmode->ports[port].altmode) { in pmic_glink_altmode_probe()
453 alt_port->altmode = altmode; in pmic_glink_altmode_probe()
[all …]
/linux/drivers/usb/typec/
A Dbus.c90 struct altmode *altmode; in typec_altmode_notify() local
91 struct altmode *partner; in typec_altmode_notify()
99 if (!altmode->partner) in typec_altmode_notify()
218 struct altmode *altmode; in typec_altmode_vdm() local
225 if (!altmode->partner) in typec_altmode_vdm()
324 struct altmode *altmode; in typec_cable_altmode_vdm() local
333 if (!altmode->partner) in typec_cable_altmode_vdm()
474 altmode->svid, altmode->mode); in typec_uevent()
504 struct altmode *altmode = to_altmode(adev); in typec_probe() local
508 if (!altmode->partner) in typec_probe()
[all …]
A Dbus.h12 struct altmode { struct
25 struct altmode *partner; argument
26 struct altmode *plug[2]; argument
29 #define to_altmode(d) container_of(d, struct altmode, adev)
A Dclass.c236 static void typec_altmode_set_partner(struct altmode *altmode) in typec_altmode_set_partner() argument
241 struct altmode *partner; in typec_altmode_set_partner()
250 altmode->partner = partner; in typec_altmode_set_partner()
258 partner->partner = altmode; in typec_altmode_set_partner()
262 static void typec_altmode_put_partner(struct altmode *altmode) in typec_altmode_put_partner() argument
264 struct altmode *partner = altmode->partner; in typec_altmode_put_partner()
271 adev = &altmode->adev; in typec_altmode_put_partner()
364 struct altmode *altmode = to_altmode(adev); in active_store() local
379 if (altmode->partner && !enter && altmode->partner->adev.active) in active_store()
381 } else if (altmode->partner) { in active_store()
[all …]
/linux/Documentation/devicetree/bindings/sound/
A Dqcom,wcd939x.yaml19 to handle USB-C altmode & orientation switching for Audio Accessory Mode.
34 description: Flag the port as possible handler of altmode switching
45 purpose of handling altmode muxing and orientation switching to detect and
/linux/Documentation/devicetree/bindings/usb/
A Dite,it5205.yaml24 description: Flag the port as possible handle of altmode switching
39 handling altmode muxing and orientation switching.
A Dusb-switch.yaml17 description: Possible handler of altmode switching
32 handling altmode muxing and orientation switching.
A Dgpio-sbu-mux.yaml14 and swapped depending on the altmode and orientation. This binding describes
44 handling altmode muxing and orientation switching.
A Dqcom,wcd939x-usbss.yaml18 graph description to handle USB-C altmode & orientation switching for Audio
48 purpose of handling altmode muxing and orientation switching.
A Dnxp,ptn36502.yaml41 handling altmode muxing and orientation switching.
A Dfcs,fsa4480.yaml37 handling altmode muxing and orientation switching.
A Donnn,nb7vpq904m.yaml86 handling altmode muxing and orientation switching.
/linux/drivers/usb/typec/tcpm/
A Dtcpm.c1748 struct typec_altmode *altmode; in tcpm_register_partner_altmodes() local
1757 if (IS_ERR(altmode)) { in tcpm_register_partner_altmodes()
1760 altmode = NULL; in tcpm_register_partner_altmodes()
1762 port->partner_altmode[i] = altmode; in tcpm_register_partner_altmodes()
1769 struct typec_altmode *altmode; in tcpm_register_plug_altmodes() local
1777 if (IS_ERR(altmode)) { in tcpm_register_plug_altmodes()
1780 altmode = NULL; in tcpm_register_plug_altmodes()
2785 header |= VDO_OPOS(altmode->mode); in tcpm_altmode_enter()
2802 header |= VDO_OPOS(altmode->mode); in tcpm_altmode_exit()
2837 header |= VDO_OPOS(altmode->mode); in tcpm_cable_altmode_enter()
[all …]
/linux/Documentation/devicetree/bindings/phy/
A Dphy-rockchip-usbdp.yaml104 description: Flag the port as possible handler of altmode switching
/linux/drivers/usb/typec/ucsi/
A Ducsi.c310 const struct typec_altmode *altmode = NULL; in ucsi_altmode_update_active() local
328 altmode = typec_altmode_get_partner(con->port_altmode[cur]); in ucsi_altmode_update_active()
332 con->partner_altmode[i] == altmode); in ucsi_altmode_update_active()

Completed in 787 milliseconds