| /linux-6.15/include/linux/usb/ |
| H A D | typec_altmode.h | 42 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 …]
|
| H A D | typec.h | 177 void typec_unregister_altmode(struct typec_altmode *altmode);
|
| /linux-6.15/drivers/soc/qcom/ |
| H A D | pmic_glink_altmode.c | 118 guard(mutex)(&altmode->lock); in pmic_glink_altmode_request() 220 struct pmic_glink_altmode *altmode = alt_port->altmode; in pmic_glink_altmode_worker() local 287 if (port >= ARRAY_SIZE(altmode->ports) || !altmode->ports[port].altmode) { in pmic_glink_altmode_sc8180xp_notify() 330 if (port >= ARRAY_SIZE(altmode->ports) || !altmode->ports[port].altmode) { in pmic_glink_altmode_sc8280xp_notify() 416 altmode = devm_kzalloc(dev, sizeof(*altmode), GFP_KERNEL); in pmic_glink_altmode_probe() 417 if (!altmode) in pmic_glink_altmode_probe() 420 altmode->dev = dev; in pmic_glink_altmode_probe() 430 mutex_init(&altmode->lock); in pmic_glink_altmode_probe() 445 if (altmode->ports[port].altmode) { in pmic_glink_altmode_probe() 452 alt_port->altmode = altmode; in pmic_glink_altmode_probe() [all …]
|
| /linux-6.15/drivers/usb/typec/ |
| H A D | bus.c | 90 struct altmode *altmode; in typec_altmode_notify() local 91 struct altmode *partner; in typec_altmode_notify() 97 altmode = to_altmode(adev); 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() 502 struct altmode *altmode = to_altmode(adev); in typec_probe() local 506 if (!altmode->partner) in typec_probe() [all …]
|
| H A D | bus.h | 12 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)
|
| H A D | class.c | 244 static void typec_altmode_set_partner(struct altmode *altmode) in typec_altmode_set_partner() argument 249 struct altmode *partner; in typec_altmode_set_partner() 258 altmode->partner = partner; 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 387 if (altmode->partner && !enter && altmode->partner->adev.active) in active_store() 389 } else if (altmode->partner) { in active_store() [all …]
|
| /linux-6.15/drivers/platform/chrome/ |
| H A D | cros_typec_altmode.h | 20 int cros_typec_displayport_status_update(struct typec_altmode *altmode, 31 static inline int cros_typec_displayport_status_update(struct typec_altmode *altmode, in cros_typec_displayport_status_update() argument
|
| H A D | cros_typec_altmode.c | 276 int cros_typec_displayport_status_update(struct typec_altmode *altmode, in cros_typec_displayport_status_update() argument 280 typec_altmode_get_drvdata(altmode); in cros_typec_displayport_status_update() 284 dev_dbg(&altmode->dev, in cros_typec_displayport_status_update() 290 dev_dbg(&altmode->dev, in cros_typec_displayport_status_update()
|
| /linux-6.15/Documentation/devicetree/bindings/sound/ |
| H A D | qcom,wcd939x.yaml | 19 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-6.15/Documentation/devicetree/bindings/usb/ |
| H A D | ite,it5205.yaml | 24 description: Flag the port as possible handle of altmode switching 39 handling altmode muxing and orientation switching.
|
| H A D | usb-switch.yaml | 17 description: Possible handler of altmode switching 32 handling altmode muxing and orientation switching.
|
| H A D | gpio-sbu-mux.yaml | 14 and swapped depending on the altmode and orientation. This binding describes 45 handling altmode muxing and orientation switching.
|
| H A D | qcom,wcd939x-usbss.yaml | 18 graph description to handle USB-C altmode & orientation switching for Audio 48 purpose of handling altmode muxing and orientation switching.
|
| H A D | nxp,ptn36502.yaml | 41 handling altmode muxing and orientation switching.
|
| H A D | fcs,fsa4480.yaml | 37 handling altmode muxing and orientation switching.
|
| H A D | parade,ps8830.yaml | 64 handling altmode muxing and orientation switching.
|
| H A D | onnn,nb7vpq904m.yaml | 86 handling altmode muxing and orientation switching.
|
| /linux-6.15/drivers/usb/typec/tcpm/ |
| H A D | tcpm.c | 1794 struct typec_altmode *altmode; in tcpm_register_partner_altmodes() local 1803 if (IS_ERR(altmode)) { in tcpm_register_partner_altmodes() 1806 altmode = NULL; in tcpm_register_partner_altmodes() 1808 port->partner_altmode[i] = altmode; in tcpm_register_partner_altmodes() 1815 struct typec_altmode *altmode; in tcpm_register_plug_altmodes() local 1823 if (IS_ERR(altmode)) { in tcpm_register_plug_altmodes() 1826 altmode = NULL; in tcpm_register_plug_altmodes() 2831 header |= VDO_OPOS(altmode->mode); in tcpm_altmode_enter() 2848 header |= VDO_OPOS(altmode->mode); in tcpm_altmode_exit() 2883 header |= VDO_OPOS(altmode->mode); in tcpm_cable_altmode_enter() [all …]
|
| /linux-6.15/Documentation/devicetree/bindings/phy/ |
| H A D | phy-rockchip-usbdp.yaml | 105 description: Flag the port as possible handler of altmode switching
|
| /linux-6.15/drivers/usb/typec/ucsi/ |
| H A D | ucsi.c | 315 const struct typec_altmode *altmode = NULL; in ucsi_altmode_update_active() local 333 altmode = typec_altmode_get_partner(con->port_altmode[cur]); in ucsi_altmode_update_active() 337 con->partner_altmode[i] == altmode); in ucsi_altmode_update_active()
|