Searched refs:typec_mux (Results 1 – 13 of 13) sorted by relevance
/linux-6.12.1/include/linux/usb/ |
D | typec_mux.h | 10 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/ |
D | ptn36502.c | 70 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()
|
D | nb7vpq904m.c | 72 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()
|
D | intel_pmc_mux.c | 136 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()
|
D | wcd939x-usbss.c | 194 struct typec_mux *codec;
|
/linux-6.12.1/drivers/soc/qcom/ |
D | pmic_glink_altmode.c | 71 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/ |
D | bus.h | 9 struct typec_mux; 15 struct typec_mux *mux;
|
D | mux.c | 252 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()
|
D | class.h | 9 struct typec_mux; 62 struct typec_mux *mux;
|
D | anx7411.c | 249 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()
|
D | class.c | 2266 struct typec_mux *mux; in typec_port_register_altmode()
|
/linux-6.12.1/drivers/platform/chrome/ |
D | cros_ec_typec.h | 59 struct typec_mux *mux;
|
/linux-6.12.1/sound/soc/codecs/ |
D | wcd939x.c | 3522 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()
|