Home
last modified time | relevance | path

Searched full:altmode (Results 1 – 25 of 30) sorted by relevance

12

/linux/include/linux/usb/
H A Dtypec_altmode.h49 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 Dtypec.h181 void typec_unregister_altmode(struct typec_altmode *altmode);
/linux/Documentation/devicetree/bindings/usb/
H A Dqcom,wcd939x-usbss.yaml7 title: Qualcomm WCD9380/WCD9385 USB SubSystem Altmode/Analog Audio Switch
14 functionally separate USB SubSystem for Altmode/Analog Audio Switch
18 graph description to handle USB-C altmode & orientation switching for Audio
48 purpose of handling altmode muxing and orientation switching.
H A Dgpio-sbu-mux.yaml14 and swapped depending on the altmode and orientation. This binding describes
45 handling altmode muxing and orientation switching.
H A Dusb-switch.yaml17 description: Possible handler of altmode switching
H A Dusb-switch-ports.yaml20 handling altmode muxing and orientation switching.
H A Dnxp,ptn36502.yaml41 handling altmode muxing and orientation switching.
H A Dfcs,fsa4480.yaml37 handling altmode muxing and orientation switching.
H A Donnn,nb7vpq904m.yaml86 handling altmode muxing and orientation switching.
H A Dparade,ps8830.yaml67 handling altmode muxing and orientation switching.
/linux/drivers/platform/chrome/
H A Dcros_typec_vdm.c17 * Retrieves pending VDM attention messages from the EC and forwards them to the altmode driver
47 "Received VDM for unregistered altmode (SVID:%x), port: %d\n", in cros_typec_handle_vdm_attention()
57 * Retrieves a VDM response from the EC and forwards it to the altmode driver based on SVID.
84 dev_err(typec->dev, "Received VDM for unregistered altmode (SVID:%x), port: %d\n", in cros_typec_handle_vdm_response()
91 dev_err(typec->dev, "Failed to forward VDM to altmode (SVID:%x), port: %d\n", in cros_typec_handle_vdm_response()
/linux/drivers/usb/typec/
H A Dmode_selection.c145 dev_dbg(&sel->partner->dev, "%x altmode is active\n", ms->svid); in mode_selection_work_fn()
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 Dclass.c244 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 …]
H A Danx7411.c569 dev_err(dev, "no altmode space for registering\n"); in anx7411_typec_register_altmode()
576 dev_err(dev, "failed to register altmode\n"); in anx7411_typec_register_altmode()
680 /* Update DP altmode */ in anx7411_parse_cmd()
692 /* Register DP Altmode */ in anx7411_parse_cmd()
696 /* Register other altmode */ in anx7411_parse_cmd()
1046 dev_err(dev, "dp altmode not register\n"); in anx7411_usb_mux_set()
/linux/Documentation/devicetree/bindings/sound/
H 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/drivers/usb/typec/ucsi/
H A Ducsi_huawei_gaokun.c208 /* For Altmode */
296 dev_warn(uec->dev, "altmode port out of range: %d\n", idx); in gaokun_ucsi_handle_altmode()
344 * USB event is necessary for enabling altmode, the event should follow
346 * then force to enable altmode.
H A Ducsi_ccg.c134 /* Altmode offset for NVIDIA Function Test Board (FTB) */
435 /* Found Non DP altmode */ in ucsi_ccg_update_altmodes()
464 /* Didn't find any duplicate DP altmode */ in ucsi_ccg_update_altmodes()
496 * If CAM is UCSI_MULTI_DP_INDEX then this is DP altmode in ucsi_ccg_update_set_new_cam_cmd()
538 * (Function Test Board) which reports altmode list with vdo=0x3
540 * based on order in altmode list and it causes a mismatch of CON
H A Ducsi.c316 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()
540 * Update the original altmode table as some ppms may report in ucsi_register_altmodes_nvidia()
H A Ducsi_yoga_c630.c109 dev_dbg(ucsi->dev, "faking DP altmode for con1\n"); in yoga_c630_ucsi_sync_control()
/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c1697 tcpm_log_force(port, "failed to queue altmode vdm, err:%d", ret); in tcpm_queue_vdm_unlocked()
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()
[all …]
/linux/Documentation/devicetree/bindings/phy/
H A Dphy-rockchip-usbdp.yaml108 description: Flag the port as possible handler of altmode switching
/linux/drivers/usb/typec/mux/
H A Dptn36502.c125 /* DP Altmode Setup */ in ptn36502_set()
H A Dnb7vpq904m.c174 /* DP Altmode Setup */ in nb7vpq904m_set()
/linux/drivers/platform/x86/intel/
H A Dchtwc_int33fe.c145 .name = "displayport-altmode",
/linux/drivers/soc/qcom/
H A Dpmic_glink.c331 ret = pmic_glink_add_aux_device(pg, &pg->altmode_aux, "altmode"); in pmic_glink_probe()

12