Home
last modified time | relevance | path

Searched refs:typec_switch (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/usb/typec/mux/
H A Dps883x.c58 struct typec_switch *typec_switch; member
275 ret = typec_switch_set(retimer->typec_switch, orientation); in ps883x_sw_set()
402 retimer->typec_switch = typec_switch_get(dev); in ps883x_retimer_probe()
403 if (IS_ERR(retimer->typec_switch)) in ps883x_retimer_probe()
404 return dev_err_probe(dev, PTR_ERR(retimer->typec_switch), in ps883x_retimer_probe()
492 typec_switch_put(retimer->typec_switch); in ps883x_retimer_probe()
511 typec_switch_put(retimer->typec_switch); in ps883x_retimer_remove()
/linux/drivers/usb/typec/
H A Dmux.c22 struct typec_switch { struct
80 struct typec_switch *fwnode_typec_switch_get(struct fwnode_handle *fwnode) in fwnode_typec_switch_get()
83 struct typec_switch *sw; in fwnode_typec_switch_get()
136 void typec_switch_put(struct typec_switch *sw) in typec_switch_put()
213 int typec_switch_set(struct typec_switch *sw, in typec_switch_set()
H A Danx7411.c250 struct typec_switch_dev *typec_switch; member
1070 ctx->typec.typec_switch = typec_switch_register(dev, &sw_desc); in anx7411_register_switch()
1071 if (IS_ERR(ctx->typec.typec_switch)) { in anx7411_register_switch()
1073 return PTR_ERR(ctx->typec.typec_switch); in anx7411_register_switch()
1110 if (ctx->typec.typec_switch) { in anx7411_unregister_switch()
1111 typec_switch_unregister(ctx->typec.typec_switch); in anx7411_unregister_switch()
1112 ctx->typec.typec_switch = NULL; in anx7411_unregister_switch()
/linux/sound/soc/codecs/
H A Dwcd939x.c189 struct typec_switch *typec_switch;
3158 if (!wcd939x->typec_analog_mux || !wcd939x->typec_switch) in wcd939x_typec_mux_set()
3162 typec_switch_set(wcd939x->typec_switch,
3303 * typec_switch is fetched now to avoid a probe deadlock since
3307 wcd939x->typec_switch = fwnode_typec_switch_get(dev->fwnode); in wcd939x_bind()
3308 if (IS_ERR(wcd939x->typec_switch)) in wcd939x_bind()
3309 return dev_err_probe(dev, PTR_ERR(wcd939x->typec_switch), in wcd939x_bind()
3420 typec_switch_put(wcd939x->typec_switch); in wcd939x_bind()
188 struct typec_switch *typec_switch; global() member
/linux/drivers/extcon/
H A Dextcon-ptn5150.c61 struct typec_switch *orient_sw;