Home
last modified time | relevance | path

Searched defs:mux (Results 1 – 25 of 181) sorted by relevance

12345678

/drivers/iio/multiplexer/
Diio-mux.c28 struct mux { struct
30 struct mux_control *control; argument
35 struct mux_child *child; argument
38 static int iio_mux_select(struct mux *mux, int idx) in iio_mux_select()
80 static void iio_mux_deselect(struct mux *mux) in iio_mux_deselect()
89 struct mux *mux = iio_priv(indio_dev); in mux_read_raw() local
120 struct mux *mux = iio_priv(indio_dev); in mux_read_avail() local
147 struct mux *mux = iio_priv(indio_dev); in mux_write_raw() local
178 struct mux *mux = iio_priv(indio_dev); in mux_read_ext_info() local
200 struct mux *mux = iio_priv(indio_dev); in mux_write_ext_info() local
[all …]
/drivers/mux/
Dcore.c113 struct mux_control *mux = &mux_chip->mux[i]; in mux_chip_alloc() local
127 static int mux_control_set(struct mux_control *mux, int state) in mux_control_set()
153 struct mux_control *mux = &mux_chip->mux[i]; in mux_chip_register() local
287 unsigned int mux_control_states(struct mux_control *mux) in mux_control_states()
296 static int __mux_control_select(struct mux_control *mux, int state) in __mux_control_select()
334 int mux_control_select(struct mux_control *mux, unsigned int state) in mux_control_select()
366 int mux_control_try_select(struct mux_control *mux, unsigned int state) in mux_control_try_select()
394 int mux_control_deselect(struct mux_control *mux) in mux_control_deselect()
487 void mux_control_put(struct mux_control *mux) in mux_control_put()
495 struct mux_control *mux = *(struct mux_control **)res; in devm_mux_control_release() local
[all …]
Dadg792a.c18 #define ADG792A_DISABLE(mux) (0x50 | (mux)) argument
20 #define ADG792A_MUX(mux, state) (0xc0 | (((mux) + 1) << 2) | (state)) argument
34 static int adg792a_set(struct mux_control *mux, int state) in adg792a_set()
99 struct mux_control *mux = &mux_chip->mux[i]; in adg792a_probe() local
Dmmio.c18 static int mux_mmio_set(struct mux_control *mux, int state) in mux_mmio_set()
75 struct mux_control *mux = &mux_chip->mux[i]; in mux_mmio_probe() local
/drivers/clk/mediatek/
Dclk-mux.c23 struct mtk_clk_mux *mux = to_mtk_clk_mux(hw); in mtk_clk_mux_enable_setclr() local
55 struct mtk_clk_mux *mux = to_mtk_clk_mux(hw); in mtk_clk_mux_disable_setclr() local
63 struct mtk_clk_mux *mux = to_mtk_clk_mux(hw); in mtk_clk_mux_is_enabled() local
73 struct mtk_clk_mux *mux = to_mtk_clk_mux(hw); in mtk_clk_mux_get_parent() local
85 struct mtk_clk_mux *mux = to_mtk_clk_mux(hw); in mtk_clk_mux_set_parent_setclr_lock() local
135 static struct clk *mtk_clk_register_mux(const struct mtk_mux *mux, in mtk_clk_register_mux()
184 const struct mtk_mux *mux = &muxes[i]; in mtk_clk_register_muxes() local
Dclk-cpumux.c22 struct mtk_clk_cpumux *mux = to_mtk_clk_cpumux(hw); in clk_cpumux_get_parent() local
35 struct mtk_clk_cpumux *mux = to_mtk_clk_cpumux(hw); in clk_cpumux_set_parent() local
50 mtk_clk_register_cpumux(const struct mtk_composite *mux, in mtk_clk_register_cpumux()
96 const struct mtk_composite *mux = &clks[i]; in mtk_clk_register_cpumuxes() local
/drivers/i2c/muxes/
Di2c-mux-gpmux.c17 struct mux { struct
18 struct mux_control *control; argument
25 struct mux *mux = i2c_mux_priv(muxc); in i2c_mux_select() local
36 struct mux *mux = i2c_mux_priv(muxc); in i2c_mux_deselect() local
75 struct mux *mux; in i2c_mux_probe() local
Di2c-mux-reg.c23 static int i2c_mux_reg_set(const struct regmux *mux, unsigned int chan_id) in i2c_mux_reg_set()
63 struct regmux *mux = i2c_mux_priv(muxc); in i2c_mux_reg_select() local
70 struct regmux *mux = i2c_mux_priv(muxc); in i2c_mux_reg_deselect() local
79 static int i2c_mux_reg_probe_dt(struct regmux *mux, in i2c_mux_reg_probe_dt()
149 static int i2c_mux_reg_probe_dt(struct regmux *mux, in i2c_mux_reg_probe_dt()
159 struct regmux *mux; in i2c_mux_reg_probe() local
Di2c-mux-gpio.c25 static void i2c_mux_gpio_set(const struct gpiomux *mux, unsigned val) in i2c_mux_gpio_set()
36 struct gpiomux *mux = i2c_mux_priv(muxc); in i2c_mux_gpio_select() local
45 struct gpiomux *mux = i2c_mux_priv(muxc); in i2c_mux_gpio_deselect() local
52 static int i2c_mux_gpio_probe_fw(struct gpiomux *mux, in i2c_mux_gpio_probe_fw()
125 struct gpiomux *mux; in i2c_mux_gpio_probe() local
Di2c-mux-mlxcpld.c61 struct mlxcpld_mux *mux, u32 val) in mlxcpld_mux_reg_write()
90 struct mlxcpld_mux *mux = i2c_mux_priv(muxc); in mlxcpld_mux_select_chan() local
108 struct mlxcpld_mux *mux = i2c_mux_priv(muxc); in mlxcpld_mux_deselect() local
/drivers/clk/ti/
Dmux.c31 struct clk_omap_mux *mux = to_clk_omap_mux(hw); in ti_clk_mux_get_parent() local
68 struct clk_omap_mux *mux = to_clk_omap_mux(hw); in ti_clk_mux_set_parent() local
102 struct clk_omap_mux *mux = to_clk_omap_mux(hw); in clk_mux_save_context() local
116 struct clk_omap_mux *mux = to_clk_omap_mux(hw); in clk_mux_restore_context() local
135 struct clk_omap_mux *mux; in _register_mux() local
232 struct clk_omap_mux *mux; in ti_clk_build_component_mux() local
261 struct clk_omap_mux *mux; in of_ti_composite_mux_clk_setup() local
/drivers/usb/typec/
Dmux.c268 struct typec_mux *mux; in fwnode_typec_mux_get() local
285 void typec_mux_put(struct typec_mux *mux) in typec_mux_put()
294 int typec_mux_set(struct typec_mux *mux, struct typec_mux_state *state) in typec_mux_set()
326 struct typec_mux *mux; in typec_mux_register() local
367 void typec_mux_unregister(struct typec_mux *mux) in typec_mux_unregister()
374 void typec_mux_set_drvdata(struct typec_mux *mux, void *data) in typec_mux_set_drvdata()
380 void *typec_mux_get_drvdata(struct typec_mux *mux) in typec_mux_get_drvdata()
/drivers/clk/
Dclk-mux.c27 static inline u32 clk_mux_readl(struct clk_mux *mux) in clk_mux_readl()
35 static inline void clk_mux_writel(struct clk_mux *mux, u32 val) in clk_mux_writel()
90 struct clk_mux *mux = to_clk_mux(hw); in clk_mux_get_parent() local
101 struct clk_mux *mux = to_clk_mux(hw); in clk_mux_set_parent() local
132 struct clk_mux *mux = to_clk_mux(hw); in clk_mux_determine_rate() local
157 struct clk_mux *mux; in __clk_hw_register_mux() local
262 struct clk_mux *mux; in clk_unregister_mux() local
278 struct clk_mux *mux; in clk_hw_unregister_mux() local
/drivers/tty/serial/
Ddz.c71 struct dz_mux *mux; member
178 static inline void dz_receive_chars(struct dz_mux *mux) in dz_receive_chars()
252 static inline void dz_transmit_chars(struct dz_mux *mux) in dz_transmit_chars()
335 struct dz_mux *mux = dev_id; in dz_interrupt() local
401 struct dz_mux *mux = dport->mux; in dz_startup() local
442 struct dz_mux *mux = dport->mux; in dz_shutdown() local
546 struct dz_mux *mux = dport->mux; in dz_reset() local
662 struct dz_mux *mux = to_dport(uport)->mux; in dz_release_port() local
687 struct dz_mux *mux = to_dport(uport)->mux; in dz_request_port() local
/drivers/clk/imx/
Dclk-fixup-mux.c23 struct clk_mux mux; member
30 struct clk_mux *mux = to_clk_mux(hw); in to_clk_fixup_mux() local
45 struct clk_mux *mux = to_clk_mux(hw); in clk_fixup_mux_set_parent() local
/drivers/clk/uniphier/
Dclk-uniphier-mux.c25 struct uniphier_clk_mux *mux = to_uniphier_clk_mux(hw); in uniphier_clk_mux_set_parent() local
33 struct uniphier_clk_mux *mux = to_uniphier_clk_mux(hw); in uniphier_clk_mux_get_parent() local
61 struct uniphier_clk_mux *mux; in uniphier_clk_register_mux() local
/drivers/clk/qcom/
Dkrait-cc.c38 struct krait_mux_clk *mux = container_of(nb, struct krait_mux_clk, in krait_notifier_cb() local
60 struct krait_mux_clk *mux) in krait_notifier_register()
117 struct krait_mux_clk *mux; in krait_add_sec_mux() local
173 struct krait_mux_clk *mux; in krait_add_pri_mux() local
Dclk-krait.c21 static void __krait_mux_set_sel(struct krait_mux_clk *mux, int sel) in __krait_mux_set_sel()
49 struct krait_mux_clk *mux = to_krait_mux_clk(hw); in krait_mux_set_parent() local
65 struct krait_mux_clk *mux = to_krait_mux_clk(hw); in krait_mux_get_parent() local
Dclk-regmap-mux.c20 struct clk_regmap_mux *mux = to_clk_regmap_mux(hw); in mux_get_parent() local
38 struct clk_regmap_mux *mux = to_clk_regmap_mux(hw); in mux_set_parent() local
/drivers/clk/zynqmp/
Dclk-mux-zynqmp.c45 struct zynqmp_clk_mux *mux = to_zynqmp_clk_mux(hw); in zynqmp_clk_mux_get_parent() local
75 struct zynqmp_clk_mux *mux = to_zynqmp_clk_mux(hw); in zynqmp_clk_mux_set_parent() local
136 struct zynqmp_clk_mux *mux; in zynqmp_clk_register_mux() local
/drivers/clk/meson/
Dclk-regmap.c139 struct clk_regmap_mux_data *mux = clk_get_regmap_mux_data(clk); in clk_regmap_mux_get_parent() local
155 struct clk_regmap_mux_data *mux = clk_get_regmap_mux_data(clk); in clk_regmap_mux_set_parent() local
167 struct clk_regmap_mux_data *mux = clk_get_regmap_mux_data(clk); in clk_regmap_mux_determine_rate() local
/drivers/clk/actions/
Dowl-mux.c31 struct owl_mux *mux = hw_to_owl_mux(hw); in owl_mux_get_parent() local
51 struct owl_mux *mux = hw_to_owl_mux(hw); in owl_mux_set_parent() local
/drivers/clk/sprd/
Dmux.c15 const struct sprd_mux_ssel *mux) in sprd_mux_helper_get_parent()
47 const struct sprd_mux_ssel *mux, in sprd_mux_helper_set_parent()
/drivers/iio/gyro/
Dmpu3050-i2c.c17 static int mpu3050_i2c_bypass_select(struct i2c_mux_core *mux, u32 chan_id) in mpu3050_i2c_bypass_select()
26 static int mpu3050_i2c_bypass_deselect(struct i2c_mux_core *mux, u32 chan_id) in mpu3050_i2c_bypass_deselect()
/drivers/clk/at91/
Dclk-i2s-mux.c29 struct clk_i2s_mux *mux = to_clk_i2s_mux(hw); in clk_i2s_mux_get_parent() local
39 struct clk_i2s_mux *mux = to_clk_i2s_mux(hw); in clk_i2s_mux_set_parent() local

12345678