Home
last modified time | relevance | path

Searched refs:typec_switch_dev (Results 1 – 22 of 22) sorted by relevance

/linux/include/linux/usb/
H A Dtypec_mux.h14 struct typec_switch_dev;
18 typedef int (*typec_switch_set_fn_t)(struct typec_switch_dev *sw,
35 struct typec_switch_dev *
38 void typec_switch_unregister(struct typec_switch_dev *sw);
40 void typec_switch_set_drvdata(struct typec_switch_dev *sw, void *data);
41 void *typec_switch_get_drvdata(struct typec_switch_dev *sw);
59 static inline struct typec_switch_dev *
66 static inline void typec_switch_unregister(struct typec_switch_dev *sw) {} in typec_switch_unregister()
68 static inline void typec_switch_set_drvdata(struct typec_switch_dev *sw, void *data) {} in typec_switch_set_drvdata()
69 static inline void *typec_switch_get_drvdata(struct typec_switch_dev *sw) in typec_switch_get_drvdata()
/linux/drivers/usb/typec/
H A Dmux.c23 struct typec_switch_dev *sw_devs[TYPEC_MUX_MAX_DEVS];
73 struct typec_switch_dev *sw_devs[TYPEC_MUX_MAX_DEVS]; in fwnode_typec_switch_get()
128 struct typec_switch_dev *sw_dev; in typec_switch_put()
164 struct typec_switch_dev *
168 struct typec_switch_dev *sw_dev; in typec_switch_register()
206 struct typec_switch_dev *sw_dev; in typec_switch_set()
231 void typec_switch_unregister(struct typec_switch_dev *sw_dev) in typec_switch_unregister()
238 void typec_switch_set_drvdata(struct typec_switch_dev *sw_dev, void *data) in typec_switch_set_drvdata()
244 void *typec_switch_get_drvdata(struct typec_switch_dev *sw_dev) in typec_switch_get_drvdata()
H A Dmux.h8 struct typec_switch_dev { struct
18 #define to_typec_switch_dev(_dev_) container_of(_dev_, struct typec_switch_dev, dev) argument
H A Danx7411.c250 struct typec_switch_dev *typec_switch;
1051 static int anx7411_usb_set_orientation(struct typec_switch_dev *sw, in anx7411_usb_set_orientation()
/linux/drivers/usb/typec/mux/
H A Dgpio-sbu-mux.c18 struct typec_switch_dev *sw;
26 static int gpio_sbu_switch_set(struct typec_switch_dev *sw, in gpio_sbu_switch_set()
H A Dpi3usb30532.c26 struct typec_switch_dev *sw;
48 static int pi3usb30532_sw_set(struct typec_switch_dev *sw, in pi3usb30532_sw_set()
H A Dtusb1046.c34 struct typec_switch_dev *sw;
91 static int tusb1046_switch_set(struct typec_switch_dev *sw, in tusb1046_switch_set()
H A Dit5205.c65 struct typec_switch_dev *sw;
69 static int it5205_switch_set(struct typec_switch_dev *sw, enum typec_orientation orientation) in it5205_switch_set()
H A Dfsa4480.c58 struct typec_switch_dev *sw;
149 static int fsa4480_switch_set(struct typec_switch_dev *sw, in fsa4480_switch_set()
H A Dptn36502.c66 struct typec_switch_dev *sw;
214 static int ptn36502_sw_set(struct typec_switch_dev *sw, enum typec_orientation orientation) in ptn36502_sw_set()
H A Dnb7vpq904m.c67 struct typec_switch_dev *sw;
254 static int nb7vpq904m_sw_set(struct typec_switch_dev *sw, enum typec_orientation orientation) in nb7vpq904m_sw_set()
H A Dps883x.c48 struct typec_switch_dev *sw;
177 static int ps883x_sw_set(struct typec_switch_dev *sw, in ps883x_sw_set()
H A Dwcd939x-usbss.c189 struct typec_switch_dev *sw;
534 static int wcd939x_usbss_switch_set(struct typec_switch_dev *sw, in wcd939x_usbss_switch_set()
H A Dintel_pmc_mux.c137 struct typec_switch_dev *typec_sw;
543 static int pmc_usb_set_orientation(struct typec_switch_dev *sw, in pmc_usb_set_orientation()
/linux/drivers/phy/freescale/
H A Dphy-fsl-imx8mq-usb.c108 struct typec_switch_dev *sw;
134 static int tca_blk_typec_switch_set(struct typec_switch_dev *sw, in tca_blk_typec_switch_set()
154 static struct typec_switch_dev *tca_blk_get_typec_switch(struct platform_device *pdev, in tca_blk_get_typec_switch()
158 struct typec_switch_dev *sw; in tca_blk_get_typec_switch()
176 static void tca_blk_put_typec_switch(struct typec_switch_dev *sw) in tca_blk_put_typec_switch()
/linux/drivers/phy/
H A Dphy-google-usb.c60 struct typec_switch_dev *sw;
79 static int google_usb_set_orientation(struct typec_switch_dev *sw, in google_usb_set_orientation()
/linux/drivers/phy/rockchip/
H A Dphy-rockchip-usbdp.c161 struct typec_switch_dev *sw;
654 static int rk_udphy_orien_sw_set(struct typec_switch_dev *sw, in rk_udphy_orien_sw_set()
/linux/drivers/phy/qualcomm/
H A Dphy-qcom-qmp-usbc.c473 struct typec_switch_dev *sw;
1703 static int qmp_usbc_typec_switch_set(struct typec_switch_dev *sw, in qmp_usbc_typec_switch_set()
H A Dphy-qcom-qmp-combo.c2313 struct typec_switch_dev *sw;
4424 static int qmp_combo_typec_switch_set(struct typec_switch_dev *sw, in qmp_combo_typec_switch_set()
/linux/sound/soc/codecs/
H A Dwcd939x.c3132 static int wcd939x_typec_switch_set(struct typec_switch_dev *sw, in wcd939x_typec_switch_set()
3464 struct typec_switch_dev *typec_sw = data; in wcd939x_typec_switch_unregister()
3474 struct typec_switch_dev *typec_sw; in wcd939x_add_typec()
/linux/drivers/phy/samsung/
H A Dphy-exynos5-usbdrd.c532 struct typec_switch_dev *sw;
1841 static int exynos5_usbdrd_orien_sw_set(struct typec_switch_dev *sw, in exynos5_usbdrd_orien_sw_set()
/linux/drivers/phy/apple/
H A Datc.c2049 static int atcphy_sw_set(struct typec_switch_dev *sw, enum typec_orientation orientation) in atcphy_sw_set()