Home
last modified time | relevance | path

Searched refs:retimer (Results 1 – 19 of 19) sorted by relevance

/linux-6.6.21/drivers/usb/typec/
Dretimer.c49 struct typec_retimer *retimer; in fwnode_typec_retimer_get() local
51 retimer = fwnode_connection_find_match(fwnode, "retimer-switch", NULL, typec_retimer_match); in fwnode_typec_retimer_get()
52 if (!IS_ERR_OR_NULL(retimer)) in fwnode_typec_retimer_get()
53 WARN_ON(!try_module_get(retimer->dev.parent->driver->owner)); in fwnode_typec_retimer_get()
55 return retimer; in fwnode_typec_retimer_get()
65 void typec_retimer_put(struct typec_retimer *retimer) in typec_retimer_put() argument
67 if (!IS_ERR_OR_NULL(retimer)) { in typec_retimer_put()
68 module_put(retimer->dev.parent->driver->owner); in typec_retimer_put()
69 put_device(&retimer->dev); in typec_retimer_put()
74 int typec_retimer_set(struct typec_retimer *retimer, struct typec_retimer_state *state) in typec_retimer_set() argument
[all …]
Dbus.h16 struct typec_retimer *retimer; member
Dclass.c588 typec_retimer_put(to_altmode(adev)->retimer); in typec_unregister_altmode()
1761 typec_retimer_put(port->retimer); in typec_release()
2113 struct typec_retimer *retimer; in typec_port_register_altmode() local
2119 retimer = typec_retimer_get(&port->dev); in typec_port_register_altmode()
2120 if (IS_ERR(retimer)) { in typec_port_register_altmode()
2122 return ERR_CAST(retimer); in typec_port_register_altmode()
2127 typec_retimer_put(retimer); in typec_port_register_altmode()
2131 to_altmode(adev)->retimer = retimer; in typec_port_register_altmode()
2286 port->retimer = typec_retimer_get(&port->dev); in typec_register_port()
2287 if (IS_ERR(port->retimer)) { in typec_register_port()
[all …]
DMakefile3 typec-y := class.o mux.o bus.o pd.o retimer.o
Dclass.h58 struct typec_retimer *retimer; member
Dbus.c21 if (!alt->retimer) in typec_altmode_set_retimer()
28 return typec_retimer_set(alt->retimer, &state); in typec_altmode_set_retimer()
/linux-6.6.21/include/linux/usb/
Dtypec_retimer.h20 typedef int (*typec_retimer_set_fn_t)(struct typec_retimer *retimer,
31 void typec_retimer_put(struct typec_retimer *retimer);
32 int typec_retimer_set(struct typec_retimer *retimer, struct typec_retimer_state *state);
41 void typec_retimer_unregister(struct typec_retimer *retimer);
43 void *typec_retimer_get_drvdata(struct typec_retimer *retimer);
/linux-6.6.21/drivers/platform/chrome/
Dcros_typec_switch.c25 struct typec_retimer *retimer; member
160 static int cros_typec_retimer_set(struct typec_retimer *retimer, struct typec_retimer_state *state) in cros_typec_retimer_set() argument
162 struct cros_typec_port *port = typec_retimer_get_drvdata(retimer); in cros_typec_retimer_set()
175 typec_retimer_unregister(sdata->ports[i]->retimer); in cros_typec_unregister_switches()
204 port->retimer = typec_retimer_register(port->sdata->dev, &retimer_desc); in cros_typec_register_retimer()
206 return PTR_ERR_OR_ZERO(port->retimer); in cros_typec_register_retimer()
Dcros_ec_typec.c87 port->retimer = fwnode_typec_retimer_get(fwnode); in cros_typec_get_switch_handles()
88 if (IS_ERR(port->retimer)) { in cros_typec_get_switch_handles()
89 ret = PTR_ERR(port->retimer); in cros_typec_get_switch_handles()
114 typec_retimer_put(port->retimer); in cros_typec_get_switch_handles()
115 port->retimer = NULL; in cros_typec_get_switch_handles()
166 static int cros_typec_retimer_set(struct typec_retimer *retimer, struct typec_mux_state state) in cros_typec_retimer_set() argument
174 return typec_retimer_set(retimer, &rstate); in cros_typec_retimer_set()
185 cros_typec_retimer_set(port->retimer, port->state); in cros_typec_usb_disconnect_state()
402 ret = cros_typec_retimer_set(port->retimer, port->state); in cros_typec_usb_safe_state()
527 ret = cros_typec_retimer_set(port->retimer, port->state); in cros_typec_enable_dp()
[all …]
Dcros_ec_typec.h60 struct typec_retimer *retimer; member
/linux-6.6.21/drivers/usb/typec/mux/
Dnb7vpq904m.c68 struct typec_retimer *retimer; member
277 static int nb7vpq904m_retimer_set(struct typec_retimer *retimer, struct typec_retimer_state *state) in nb7vpq904m_retimer_set() argument
279 struct nb7vpq904m *nb7 = typec_retimer_get_drvdata(retimer); in nb7vpq904m_retimer_set()
483 nb7->retimer = typec_retimer_register(dev, &retimer_desc); in nb7vpq904m_probe()
484 if (IS_ERR(nb7->retimer)) { in nb7vpq904m_probe()
485 ret = dev_err_probe(dev, PTR_ERR(nb7->retimer), in nb7vpq904m_probe()
506 typec_retimer_unregister(nb7->retimer); in nb7vpq904m_remove()
/linux-6.6.21/Documentation/ABI/testing/
Dsysfs-bus-dfl-devices-n3000-nios18 the retimer A configured by the Nios firmware. The value is
30 retimer modes, more enumeration value is expected.
38 the retimer B configured by the Nios firmware. The value format
Dsysfs-bus-thunderbolt334 retimers. Each retimer appear under the USB4 port as if
364 Description: Holds retimer NVM version number. Format: %x.%x, major.minor.
/linux-6.6.21/Documentation/devicetree/bindings/usb/
Donnn,nb7vpq904m.yaml25 retimer-switch:
112 retimer-switch;
/linux-6.6.21/drivers/thunderbolt/
DMakefile5 thunderbolt-objs += usb4_port.o nvm.o retimer.o quirks.o clx.o
/linux-6.6.21/Documentation/admin-guide/
Dthunderbolt.rst199 Upgrading NVM on Thunderbolt device, host or retimer
211 Before you upgrade firmware on a device, host or retimer, please make
259 Upgrading on-board retimer NVM when there is no cable connected
261 If the platform supports, it may be possible to upgrade the retimer NVM
275 This enumerates and adds the on-board retimers. Now retimer NVM can be
277 section). However, the retimer is not disconnected as we are offline
/linux-6.6.21/drivers/gpu/drm/amd/display/
DTODO105 20. Use kernel i2c device to program HDMI retimer. Some boards have an HDMI
106 retimer that we need to program to pass PHY compliance. Currently that's
/linux-6.6.21/Documentation/firmware-guide/acpi/
Dintel-pmc-mux.rst96 happen for example if a retimer on the platform handles the cable plug
/linux-6.6.21/arch/arm64/boot/dts/qcom/
Dsm8550-qrd.dts536 typec-retimer@1c {
542 retimer-switch;