Searched refs:typec_switch (Results 1 – 11 of 11) sorted by relevance
/linux/include/linux/usb/ |
H A D | typec_mux.h | 12 struct typec_switch; 27 struct typec_switch *fwnode_typec_switch_get(struct fwnode_handle *fwnode); 28 void typec_switch_put(struct typec_switch *sw); 29 int typec_switch_set(struct typec_switch *sw, 32 static inline struct typec_switch *typec_switch_get(struct device *dev) in typec_switch_get()
|
/linux/drivers/usb/typec/mux/ |
H A D | ptn36502.c | 69 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 D | ps883x.c | 51 struct typec_switch *typec_switch; member 143 ret = typec_switch_set(retimer->typec_switch, orientation); in ps883x_sw_set() 340 retimer->typec_switch = typec_switch_get(dev); in ps883x_retimer_probe() 341 if (IS_ERR(retimer->typec_switch)) in ps883x_retimer_probe() 342 return dev_err_probe(dev, PTR_ERR(retimer->typec_switch), in ps883x_retimer_probe() 426 typec_switch_put(retimer->typec_switch); in ps883x_retimer_probe() 445 typec_switch_put(retimer->typec_switch); in ps883x_retimer_remove()
|
H A D | nb7vpq904m.c | 71 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 D | wcd939x-usbss.c | 195 struct typec_switch *codec_switch;
|
/linux/drivers/soc/qcom/ |
H A D | pmic_glink_altmode.c | 71 struct typec_switch *typec_switch; member 223 typec_switch_set(alt_port->typec_switch, alt_port->orientation); in pmic_glink_altmode_worker() 504 alt_port->typec_switch = fwnode_typec_switch_get(fwnode); in pmic_glink_altmode_probe() 505 if (IS_ERR(alt_port->typec_switch)) { in pmic_glink_altmode_probe() 507 return dev_err_probe(dev, PTR_ERR(alt_port->typec_switch), in pmic_glink_altmode_probe() 513 alt_port->typec_switch); in pmic_glink_altmode_probe()
|
/linux/drivers/usb/typec/ |
H A D | mux.c | 22 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() 23 sw_devstypec_switch global() argument 29 num_sw_devstypec_switch switch_fwnode_match() argument
|
H A D | class.h | 10 struct typec_switch; 65 struct typec_switch *sw;
|
H A D | anx7411.c | 250 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/drivers/platform/chrome/ |
H A D | cros_ec_typec.h | 60 struct typec_switch *ori_sw;
|
/linux/sound/soc/codecs/ |
H A D | wcd939x.c | 187 struct typec_switch *typec_switch; member 3225 if (!wcd939x->typec_analog_mux || !wcd939x->typec_switch) in wcd939x_swap_gnd_mic() 3229 typec_switch_set(wcd939x->typec_switch, in wcd939x_swap_gnd_mic() 3368 * typec_switch is fetched now to avoid a probe deadlock since in wcd939x_bind() 3372 wcd939x->typec_switch = fwnode_typec_switch_get(dev->fwnode); in wcd939x_bind() 3373 if (IS_ERR(wcd939x->typec_switch)) in wcd939x_bind() 3374 return dev_err_probe(dev, PTR_ERR(wcd939x->typec_switch), in wcd939x_bind() 3489 typec_switch_put(wcd939x->typec_switch); in wcd939x_bind()
|