Home
last modified time | relevance | path

Searched refs:typec (Results 1 – 11 of 11) sorted by relevance

/drivers/platform/chrome/
Dcros_ec_typec.c187 static int cros_typec_add_partner(struct cros_typec_data *typec, int port_num, in cros_typec_add_partner() argument
190 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_add_partner()
211 static void cros_typec_unregister_altmodes(struct cros_typec_data *typec, int port_num, in cros_typec_unregister_altmodes() argument
214 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_unregister_altmodes()
222 devm_kfree(typec->dev, node); in cros_typec_unregister_altmodes()
254 static void cros_typec_remove_partner(struct cros_typec_data *typec, in cros_typec_remove_partner() argument
257 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_remove_partner()
262 cros_typec_unregister_altmodes(typec, port_num, true); in cros_typec_remove_partner()
281 static void cros_typec_remove_cable(struct cros_typec_data *typec, in cros_typec_remove_cable() argument
284 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_remove_cable()
[all …]
/drivers/usb/typec/
Danx7411.c280 struct typec_params typec; member
342 ctx->typec.request_current = ret * CURRENT_UNIT; /* 50ma per unit */ in anx7411_detect_power_mode()
348 ctx->typec.request_voltage = ret * VOLTAGE_UNIT; /* 100mv per unit */ in anx7411_detect_power_mode()
356 if (!ctx->typec.cc_orientation_valid) in anx7411_detect_power_mode()
359 if (ctx->typec.cc_connect == CC1_CONNECTED) in anx7411_detect_power_mode()
360 mode = CC1_RP(ctx->typec.cc_status); in anx7411_detect_power_mode()
362 mode = CC2_RP(ctx->typec.cc_status); in anx7411_detect_power_mode()
364 typec_set_pwr_opmode(ctx->typec.port, mode - 1); in anx7411_detect_power_mode()
368 typec_set_pwr_opmode(ctx->typec.port, TYPEC_PWR_MODE_PD); in anx7411_detect_power_mode()
379 if (ctx->typec.partner) in anx7411_register_partner()
[all …]
DMakefile2 obj-$(CONFIG_TYPEC) += typec.o
3 typec-y := class.o mux.o bus.o pd.o retimer.o
4 typec-$(CONFIG_ACPI) += port-mapper.o
11 obj-$(CONFIG_TYPEC_QCOM_PMIC) += qcom-pmic-typec.o
DKconfig43 Connector Class API (Documentation/driver-api/usb/typec.rst)
44 <https://www.kernel.org/doc/html/latest/driver-api/usb/typec.html>
45 and ABI (Documentation/ABI/testing/sysfs-class-typec).
49 source "drivers/usb/typec/tcpm/Kconfig"
51 source "drivers/usb/typec/ucsi/Kconfig"
53 source "drivers/usb/typec/tipd/Kconfig"
126 source "drivers/usb/typec/mux/Kconfig"
128 source "drivers/usb/typec/altmodes/Kconfig"
Dbus.c322 ATTRIBUTE_GROUPS(typec);
/drivers/usb/typec/altmodes/
Dnvidia.c30 MODULE_DEVICE_TABLE(typec, nvidia_typec_id);
Ddisplayport.c632 MODULE_DEVICE_TABLE(typec, dp_typec_id);
/drivers/phy/rockchip/
DMakefile12 obj-$(CONFIG_PHY_ROCKCHIP_TYPEC) += phy-rockchip-typec.o
/drivers/usb/
DMakefile66 obj-$(CONFIG_TYPEC) += typec/
DKconfig173 source "drivers/usb/typec/Kconfig"
/drivers/usb/typec/tcpm/
Dtcpm.c1614 struct typec_port *typec = port->typec_port; in tcpm_pd_svdm() local
1634 svdm_version = typec_get_negotiated_svdm_version(typec); in tcpm_pd_svdm()
1703 (VDO_SVDM_VERS(typec_get_negotiated_svdm_version(typec))); in tcpm_pd_svdm()
1719 response[0] = VDO(USB_SID_PD, 1, typec_get_negotiated_svdm_version(typec), in tcpm_pd_svdm()