Home
last modified time | relevance | path

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

/Linux-v6.6/include/linux/usb/
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()
/Linux-v6.6/drivers/soc/qcom/
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()
500 alt_port->typec_switch = fwnode_typec_switch_get(fwnode); in pmic_glink_altmode_probe()
501 if (IS_ERR(alt_port->typec_switch)) in pmic_glink_altmode_probe()
502 return dev_err_probe(dev, PTR_ERR(alt_port->typec_switch), in pmic_glink_altmode_probe()
507 alt_port->typec_switch); in pmic_glink_altmode_probe()
/Linux-v6.6/drivers/usb/typec/mux/
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()
/Linux-v6.6/drivers/usb/typec/
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()
Dclass.h10 struct typec_switch;
56 struct typec_switch *sw;
Danx7411.c249 struct typec_switch_dev *typec_switch; member
1057 ctx->typec.typec_switch = typec_switch_register(dev, &sw_desc); in anx7411_register_switch()
1058 if (IS_ERR(ctx->typec.typec_switch)) { in anx7411_register_switch()
1060 return PTR_ERR(ctx->typec.typec_switch); in anx7411_register_switch()
1096 if (ctx->typec.typec_switch) { in anx7411_unregister_switch()
1097 typec_switch_unregister(ctx->typec.typec_switch); in anx7411_unregister_switch()
1098 ctx->typec.typec_switch = NULL; in anx7411_unregister_switch()
/Linux-v6.6/drivers/platform/chrome/
Dcros_ec_typec.h58 struct typec_switch *ori_sw;