Home
last modified time | relevance | path

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

/Linux-v6.6/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-v6.6/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()
478 alt_port->typec_mux = fwnode_typec_mux_get(fwnode); in pmic_glink_altmode_probe()
479 if (IS_ERR(alt_port->typec_mux)) in pmic_glink_altmode_probe()
480 return dev_err_probe(dev, PTR_ERR(alt_port->typec_mux), in pmic_glink_altmode_probe()
485 alt_port->typec_mux); in pmic_glink_altmode_probe()
/Linux-v6.6/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;
57 struct typec_mux *mux;
Danx7411.c248 struct typec_mux_dev *typec_mux; member
1077 ctx->typec.typec_mux = typec_mux_register(dev, &mux_desc); in anx7411_register_mux()
1078 if (IS_ERR(ctx->typec.typec_mux)) { in anx7411_register_mux()
1080 return PTR_ERR(ctx->typec.typec_mux); in anx7411_register_mux()
1088 if (ctx->typec.typec_mux) { in anx7411_unregister_mux()
1089 typec_mux_unregister(ctx->typec.typec_mux); in anx7411_unregister_mux()
1090 ctx->typec.typec_mux = NULL; in anx7411_unregister_mux()
Dclass.c2109 struct typec_mux *mux; in typec_port_register_altmode()
/Linux-v6.6/drivers/usb/typec/mux/
Dintel_pmc_mux.c137 struct typec_mux_dev *typec_mux; member
592 port->typec_mux = typec_mux_register(pmc->dev, &mux_desc); in pmc_usb_register_port()
593 if (IS_ERR(port->typec_mux)) { in pmc_usb_register_port()
594 ret = PTR_ERR(port->typec_mux); in pmc_usb_register_port()
612 typec_mux_unregister(port->typec_mux); in pmc_usb_register_port()
768 typec_mux_unregister(pmc->port[i].typec_mux); in pmc_usb_probe()
786 typec_mux_unregister(pmc->port[i].typec_mux); in pmc_usb_remove()
/Linux-v6.6/drivers/platform/chrome/
Dcros_ec_typec.h59 struct typec_mux *mux;