Home
last modified time | relevance | path

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

/openbmc/linux/include/linux/usb/
H A Dtypec_mux.h12 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()
/openbmc/linux/drivers/usb/typec/mux/
H A Dnb7vpq904m.c71 struct typec_switch *typec_switch; member
260 ret = typec_switch_set(nb7->typec_switch, orientation); in nb7vpq904m_sw_set()
449 nb7->typec_switch = fwnode_typec_switch_get(dev->fwnode); in nb7vpq904m_probe()
450 if (IS_ERR(nb7->typec_switch)) in nb7vpq904m_probe()
451 return dev_err_probe(dev, PTR_ERR(nb7->typec_switch), in nb7vpq904m_probe()
500 typec_switch_put(nb7->typec_switch); in nb7vpq904m_probe()
516 typec_switch_put(nb7->typec_switch); in nb7vpq904m_remove()
/openbmc/linux/drivers/soc/qcom/
H A Dpmic_glink_altmode.c70 struct typec_switch *typec_switch; member
223 typec_switch_set(alt_port->typec_switch, alt_port->orientation); in pmic_glink_altmode_worker()
506 alt_port->typec_switch = fwnode_typec_switch_get(fwnode); in pmic_glink_altmode_probe()
507 if (IS_ERR(alt_port->typec_switch)) { in pmic_glink_altmode_probe()
509 return dev_err_probe(dev, PTR_ERR(alt_port->typec_switch), in pmic_glink_altmode_probe()
515 alt_port->typec_switch); in pmic_glink_altmode_probe()
/openbmc/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 Dclass.h10 struct typec_switch;
56 struct typec_switch *sw;
H A Danx7411.c249 struct typec_switch_dev *typec_switch; member
1069 ctx->typec.typec_switch = typec_switch_register(dev, &sw_desc); in anx7411_register_switch()
1070 if (IS_ERR(ctx->typec.typec_switch)) { in anx7411_register_switch()
1072 return PTR_ERR(ctx->typec.typec_switch); in anx7411_register_switch()
1109 if (ctx->typec.typec_switch) { in anx7411_unregister_switch()
1110 typec_switch_unregister(ctx->typec.typec_switch); in anx7411_unregister_switch()
1111 ctx->typec.typec_switch = NULL; in anx7411_unregister_switch()
/openbmc/linux/drivers/platform/chrome/
H A Dcros_ec_typec.h58 struct typec_switch *ori_sw;
/openbmc/linux/drivers/usb/typec/ucsi/
H A Ducsi_glink.c60 struct typec_switch *port_switch[PMIC_GLINK_MAX_PORTS];