Home
last modified time | relevance | path

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

/linux/drivers/usb/typec/mux/
H A Dptn36502.c69 struct typec_switch *typec_switch; member
219 ret = typec_switch_set(ptn->typec_switch, orientation); in ptn36502_sw_set()
328 ptn->typec_switch = fwnode_typec_switch_get(dev->fwnode); in ptn36502_probe()
329 if (IS_ERR(ptn->typec_switch)) in ptn36502_probe()
330 return dev_err_probe(dev, PTR_ERR(ptn->typec_switch), in ptn36502_probe()
388 typec_switch_put(ptn->typec_switch); in ptn36502_probe()
403 typec_switch_put(ptn->typec_switch); in ptn36502_remove()
H A Dnb7vpq904m.c71 struct typec_switch *typec_switch; member
259 ret = typec_switch_set(nb7->typec_switch, orientation); in nb7vpq904m_sw_set()
420 nb7->typec_switch = fwnode_typec_switch_get(dev->fwnode); in nb7vpq904m_probe()
421 if (IS_ERR(nb7->typec_switch)) in nb7vpq904m_probe()
422 return dev_err_probe(dev, PTR_ERR(nb7->typec_switch), in nb7vpq904m_probe()
481 typec_switch_put(nb7->typec_switch); in nb7vpq904m_probe()
498 typec_switch_put(nb7->typec_switch); in nb7vpq904m_remove()
H A Dps883x.c58 struct typec_switch *typec_switch; member
183 ret = typec_switch_set(retimer->typec_switch, orientation); in ps883x_sw_set()
373 retimer->typec_switch = typec_switch_get(dev); in ps883x_retimer_probe()
374 if (IS_ERR(retimer->typec_switch)) in ps883x_retimer_probe()
375 return dev_err_probe(dev, PTR_ERR(retimer->typec_switch), in ps883x_retimer_probe()
459 typec_switch_put(retimer->typec_switch); in ps883x_retimer_probe()
478 typec_switch_put(retimer->typec_switch); in ps883x_retimer_remove()
H A Dwcd939x-usbss.c195 struct typec_switch *codec_switch;
/linux/drivers/usb/typec/
H A Dmux.c22 struct typec_switch { struct
71 struct typec_switch *fwnode_typec_switch_get(struct fwnode_handle *fwnode) in fwnode_typec_switch_get()
74 struct typec_switch *sw; in fwnode_typec_switch_get()
126 void typec_switch_put(struct typec_switch *sw) in typec_switch_put()
203 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.c188 struct typec_switch *typec_switch; member
3169 if (!wcd939x->typec_analog_mux || !wcd939x->typec_switch) in wcd939x_swap_gnd_mic()
3173 typec_switch_set(wcd939x->typec_switch, in wcd939x_swap_gnd_mic()
3318 wcd939x->typec_switch = fwnode_typec_switch_get(dev->fwnode); in wcd939x_bind()
3319 if (IS_ERR(wcd939x->typec_switch)) in wcd939x_bind()
3320 return dev_err_probe(dev, PTR_ERR(wcd939x->typec_switch), in wcd939x_bind()
3431 typec_switch_put(wcd939x->typec_switch); in wcd939x_bind()