Home
last modified time | relevance | path

Searched refs:typec_mux (Results 1 – 13 of 13) sorted by relevance

/linux-6.12.1/include/linux/usb/
Dtypec_mux.h10 struct typec_mux;
63 struct typec_mux *fwnode_typec_mux_get(struct fwnode_handle *fwnode);
64 void typec_mux_put(struct typec_mux *mux);
65 int typec_mux_set(struct typec_mux *mux, struct typec_mux_state *state);
76 static inline struct typec_mux *fwnode_typec_mux_get(struct fwnode_handle *fwnode) in fwnode_typec_mux_get()
81 static inline void typec_mux_put(struct typec_mux *mux) {} in typec_mux_put()
83 static inline int typec_mux_set(struct typec_mux *mux, struct typec_mux_state *state) in typec_mux_set()
103 static inline struct typec_mux *typec_mux_get(struct device *dev) in typec_mux_get()
/linux-6.12.1/drivers/usb/typec/mux/
Dptn36502.c70 struct typec_mux *typec_mux; member
264 return typec_mux_set(ptn->typec_mux, &mux_state); in ptn36502_retimer_set()
333 ptn->typec_mux = fwnode_typec_mux_get(dev->fwnode); in ptn36502_probe()
334 if (IS_ERR(ptn->typec_mux)) { in ptn36502_probe()
335 ret = dev_err_probe(dev, PTR_ERR(ptn->typec_mux), in ptn36502_probe()
385 typec_mux_put(ptn->typec_mux); in ptn36502_probe()
402 typec_mux_put(ptn->typec_mux); in ptn36502_remove()
Dnb7vpq904m.c72 struct typec_mux *typec_mux; member
304 return typec_mux_set(nb7->typec_mux, &mux_state); in nb7vpq904m_retimer_set()
425 nb7->typec_mux = fwnode_typec_mux_get(dev->fwnode); in nb7vpq904m_probe()
426 if (IS_ERR(nb7->typec_mux)) { in nb7vpq904m_probe()
427 ret = dev_err_probe(dev, PTR_ERR(nb7->typec_mux), in nb7vpq904m_probe()
478 typec_mux_put(nb7->typec_mux); in nb7vpq904m_probe()
497 typec_mux_put(nb7->typec_mux); in nb7vpq904m_remove()
Dintel_pmc_mux.c136 struct typec_mux_dev *typec_mux; member
615 port->typec_mux = typec_mux_register(pmc->dev, &mux_desc); in pmc_usb_register_port()
616 if (IS_ERR(port->typec_mux)) { in pmc_usb_register_port()
617 ret = PTR_ERR(port->typec_mux); in pmc_usb_register_port()
636 typec_mux_unregister(port->typec_mux); in pmc_usb_register_port()
792 typec_mux_unregister(pmc->port[i].typec_mux); in pmc_usb_probe()
810 typec_mux_unregister(pmc->port[i].typec_mux); in pmc_usb_remove()
Dwcd939x-usbss.c194 struct typec_mux *codec;
/linux-6.12.1/drivers/soc/qcom/
Dpmic_glink_altmode.c71 struct typec_mux *typec_mux; member
161 ret = typec_mux_set(port->typec_mux, &port->state); in pmic_glink_altmode_enable_dp()
183 ret = typec_mux_set(port->typec_mux, &port->state); in pmic_glink_altmode_enable_usb()
205 ret = typec_mux_set(port->typec_mux, &port->state); in pmic_glink_altmode_safe()
467 alt_port->typec_mux = fwnode_typec_mux_get(fwnode); in pmic_glink_altmode_probe()
468 if (IS_ERR(alt_port->typec_mux)) { in pmic_glink_altmode_probe()
470 return dev_err_probe(dev, PTR_ERR(alt_port->typec_mux), in pmic_glink_altmode_probe()
476 alt_port->typec_mux); in pmic_glink_altmode_probe()
/linux-6.12.1/drivers/usb/typec/
Dbus.h9 struct typec_mux;
15 struct typec_mux *mux;
Dmux.c252 struct typec_mux { struct
296 struct typec_mux *fwnode_typec_mux_get(struct fwnode_handle *fwnode) in fwnode_typec_mux_get()
299 struct typec_mux *mux; in fwnode_typec_mux_get()
351 void typec_mux_put(struct typec_mux *mux) in typec_mux_put()
368 int typec_mux_set(struct typec_mux *mux, struct typec_mux_state *state) in typec_mux_set()
Dclass.h9 struct typec_mux;
62 struct typec_mux *mux;
Danx7411.c249 struct typec_mux_dev *typec_mux; member
1078 ctx->typec.typec_mux = typec_mux_register(dev, &mux_desc); in anx7411_register_mux()
1079 if (IS_ERR(ctx->typec.typec_mux)) { in anx7411_register_mux()
1081 return PTR_ERR(ctx->typec.typec_mux); in anx7411_register_mux()
1089 if (ctx->typec.typec_mux) { in anx7411_unregister_mux()
1090 typec_mux_unregister(ctx->typec.typec_mux); in anx7411_unregister_mux()
1091 ctx->typec.typec_mux = NULL; in anx7411_unregister_mux()
Dclass.c2266 struct typec_mux *mux; in typec_port_register_altmode()
/linux-6.12.1/drivers/platform/chrome/
Dcros_ec_typec.h59 struct typec_mux *mux;
/linux-6.12.1/sound/soc/codecs/
Dwcd939x.c3522 struct typec_mux_dev *typec_mux = data; in wcd939x_typec_mux_unregister() local
3524 typec_mux_unregister(typec_mux); in wcd939x_typec_mux_unregister()
3538 struct typec_mux_dev *typec_mux; in wcd939x_add_typec() local
3558 typec_mux = typec_mux_register(dev, &mux_desc); in wcd939x_add_typec()
3559 if (IS_ERR(typec_mux)) in wcd939x_add_typec()
3560 return dev_err_probe(dev, PTR_ERR(typec_mux), in wcd939x_add_typec()
3564 typec_mux); in wcd939x_add_typec()