Home
last modified time | relevance | path

Searched refs:typec_switch (Results 1 - 15 of 15) sorted by relevance

/kernel/linux/linux-5.10/include/linux/usb/
H A Dtypec_mux.h11 struct typec_switch;
15 typedef int (*typec_switch_set_fn_t)(struct typec_switch *sw,
25 struct typec_switch *fwnode_typec_switch_get(struct fwnode_handle *fwnode);
26 void typec_switch_put(struct typec_switch *sw);
27 int typec_switch_set(struct typec_switch *sw,
30 static inline struct typec_switch *typec_switch_get(struct device *dev) in typec_switch_get()
35 struct typec_switch *
38 void typec_switch_unregister(struct typec_switch *sw);
40 void typec_switch_set_drvdata(struct typec_switch *sw, void *data);
41 void *typec_switch_get_drvdata(struct typec_switch *s
[all...]
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/usb/typec/
H A Dmux.c60 struct typec_switch *fwnode_typec_switch_get(struct fwnode_handle *fwnode) in fwnode_typec_switch_get()
62 struct typec_switch *sw; in fwnode_typec_switch_get()
79 void typec_switch_put(struct typec_switch *sw) in typec_switch_put()
108 struct typec_switch *
112 struct typec_switch *sw; in typec_switch_register()
147 int typec_switch_set(struct typec_switch *sw, in typec_switch_set()
163 void typec_switch_unregister(struct typec_switch *sw) in typec_switch_unregister()
170 void typec_switch_set_drvdata(struct typec_switch *sw, void *data) in typec_switch_set_drvdata()
176 void *typec_switch_get_drvdata(struct typec_switch *sw) in typec_switch_get_drvdata()
H A Dbus.h38 struct typec_switch { struct
48 #define to_typec_switch(_dev_) container_of(_dev_, struct typec_switch, dev)
H A Dclass.c52 struct typec_switch *sw;
/kernel/linux/linux-6.6/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
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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/usb/typec/mux/
H A Dpi3usb30532.c26 struct typec_switch *sw;
48 static int pi3usb30532_sw_set(struct typec_switch *sw, in pi3usb30532_sw_set()
H A Dintel_pmc_mux.c125 struct typec_switch *typec_sw;
453 static int pmc_usb_set_orientation(struct typec_switch *sw, in pmc_usb_set_orientation()
/kernel/linux/linux-6.6/drivers/platform/chrome/
H A Dcros_ec_typec.h58 struct typec_switch *ori_sw;
/kernel/linux/linux-6.6/drivers/usb/typec/ucsi/
H A Ducsi_glink.c60 struct typec_switch *port_switch[PMIC_GLINK_MAX_PORTS];
/kernel/linux/linux-5.10/drivers/platform/chrome/
H A Dcros_ec_typec.c41 struct typec_switch *ori_sw;

Completed in 14 milliseconds