Searched refs:mux (Results 1 - 25 of 395) sorted by last modified time

1234567891011>>

/linux-master/drivers/clk/sunxi-ng/
H A Dccu-sun50i-h6.c242 24, 2, /* mux */
251 24, 2, /* mux */
257 24, 2, /* mux */
263 24, 2, /* mux */
270 24, 2, /* mux */
277 24, 1, /* mux */
290 24, 1, /* mux */
300 24, 1, /* mux */
312 24, 1, /* mux */
322 24, 1, /* mux */
[all...]
H A Dccu-sun50i-a64.c237 .mux = {
271 24, 2, /* mux */
279 .mux = {
402 .mux = _SUNXI_CCU_MUX(24, 2),
417 24, 2, /* mux */
438 24, 2, /* mux */
447 24, 2, /* mux */
456 24, 2, /* mux */
465 24, 4, /* mux */
472 24, 2, /* mux */
[all...]
/linux-master/drivers/clk/samsung/
H A Dclk-exynos-clkout.c31 struct clk_mux mux; member in struct:exynos_clkout
171 clkout->mux.reg = clkout->reg + EXYNOS_PMU_DEBUG_REG;
172 clkout->mux.mask = mux_mask;
173 clkout->mux.shift = EXYNOS_CLKOUT_MUX_SHIFT;
174 clkout->mux.lock = &clkout->slock;
177 parent_names, parent_count, &clkout->mux.hw,
/linux-master/sound/soc/intel/avs/
H A Dtopology.c695 .offset = offsetof(struct avs_tplg_modcfg_ext, mux.ref_fmt),
701 .offset = offsetof(struct avs_tplg_modcfg_ext, mux.out_fmt),
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/
H A Dr535.c1249 r535_gsp_acpi_mux(acpi_handle handle, DOD_METHOD_DATA *dod, MUX_METHOD_DATA *mux) argument
1251 mux->tableLen = dod->acpiIdListLen / sizeof(dod->acpiIdList[0]);
1253 for (int i = 0; i < mux->tableLen; i++) {
1254 r535_gsp_acpi_mux_id(handle, dod->acpiIdList[i], &mux->acpiIdMuxModeTable[i],
1255 &mux->acpiIdMuxPartTable[i]);
/linux-master/drivers/pinctrl/renesas/
H A Dpinctrl-rzg2l.c38 * Use 16 higher bits [31:16] for pin mux function
652 /* Collect pin locations and mux settings from DT properties */
707 maps[idx].data.mux.group = name;
708 maps[idx].data.mux.function = name;
/linux-master/drivers/pinctrl/mediatek/
H A Dpinctrl-paris.c420 (*map)[*num_maps].data.mux.group = grp->name;
429 (*map)[*num_maps].data.mux.function = mtk_gpio_functions[fnum];
/linux-master/drivers/usb/typec/mux/
H A Dit5205.c3 * ITE IT5205 Type-C USB alternate mode passive mux
66 struct typec_mux_dev *mux; member in struct:it5205
92 static int it5205_mux_set(struct typec_mux_dev *mux, struct typec_mux_state *state) argument
94 struct it5205 *it = typec_mux_get_drvdata(mux);
235 it->mux = typec_mux_register(dev, &mux_desc);
236 if (IS_ERR(it->mux)) {
238 return dev_err_probe(dev, PTR_ERR(it->mux),
239 "failed to register typec mux\n");
251 typec_mux_unregister(it->mux);
264 typec_mux_unregister(it->mux);
[all...]
H A DMakefile4 obj-$(CONFIG_TYPEC_MUX_GPIO_SBU) += gpio-sbu-mux.o
/linux-master/drivers/clk/mediatek/
H A Dclk-mtk.c21 #include "clk-mux.h"
222 struct clk_mux *mux = NULL; local
233 mux = kzalloc(sizeof(*mux), GFP_KERNEL);
234 if (!mux)
237 mux->reg = base + mc->mux_reg;
238 mux->mask = BIT(mc->mux_width) - 1;
239 mux->shift = mc->mux_shift;
240 mux->lock = lock;
241 mux
308 struct clk_mux *mux = NULL; local
[all...]
/linux-master/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-sun8i.c11 #include <linux/mdio-mux.h>
69 * @mux_handle: Internal pointer used by mdio-mux lib
773 /* Search in mdio-mux node for internal PHY node and get its clk/reset */
781 mdio_mux = of_get_child_by_name(priv->device->of_node, "mdio-mux");
783 dev_err(priv->device, "Cannot get mdio-mux node\n");
865 * This function is called by the mdio-mux layer when it thinks the mdio bus
867 * 'current_child' is the current value of the mux register
871 * If current_child == desired_child, then the mux is already set to the
886 dev_info(priv->device, "Switch mux to internal PHY");
891 dev_info(priv->device, "Switch mux t
[all...]
/linux-master/drivers/usb/typec/
H A Dclass.c590 typec_mux_put(to_altmode(adev)->mux);
1811 typec_mux_put(port->mux);
2106 return typec_mux_set(port->mux, &state);
2247 struct typec_mux *mux; local
2250 mux = typec_mux_get(&port->dev);
2251 if (IS_ERR(mux))
2252 return ERR_CAST(mux);
2256 typec_mux_put(mux);
2263 typec_mux_put(mux);
2265 to_altmode(adev)->mux
[all...]
H A Dmux.c18 #include "mux.h"
291 * Finds a mux linked to the caller. This function is primarily meant for the
292 * Type-C drivers. Returns a reference to the mux on success, NULL if no
294 * was found but the mux has not been enumerated yet.
299 struct typec_mux *mux; local
304 mux = kzalloc(sizeof(*mux), GFP_KERNEL);
305 if (!mux)
313 kfree(mux);
326 mux
351 typec_mux_put(struct typec_mux *mux) argument
368 typec_mux_set(struct typec_mux *mux, struct typec_mux_state *state) argument
[all...]
H A Dclass.h62 struct typec_mux *mux; member in struct:typec_port
H A Dbus.c13 #include "mux.h"
36 if (!alt->mux)
43 return typec_mux_set(alt->mux, &state);
/linux-master/drivers/i2c/busses/
H A Di2c-i801.c124 #include <linux/platform_data/i2c-mux-gpio.h>
1427 lookup->dev_id = "i2c-mux-gpio";
1430 mux_config->gpios[i], "mux", 0);
1434 * Register the mux device, we use PLATFORM_DEVID_NONE here
1440 priv->mux_pdev = platform_device_register_data(dev, "i2c-mux-gpio",
1446 dev_err(dev, "Failed to register i2c-mux-gpio device\n");
/linux-master/drivers/staging/greybus/
H A Daudio_topology.c763 unsigned int val, mux, change; local
802 mux = ucontrol->value.enumerated.item[0];
803 val = mux << e->shift_l;
/linux-master/drivers/platform/chrome/
H A Dcros_ec_typec.c99 port->mux = fwnode_typec_mux_get(fwnode);
100 if (IS_ERR(port->mux)) {
101 ret = PTR_ERR(port->mux);
136 typec_mux_put(port->mux);
137 port->mux = NULL;
183 * because we re-use the Type-C mux state for retimers.
206 return typec_mux_set(port->mux, &port->state);
275 typec_mux_put(typec->ports[i]->mux);
423 ret = typec_mux_set(port->mux, &port->state);
504 return typec_mux_set(port->mux,
[all...]
/linux-master/drivers/i2c/muxes/
H A Di2c-mux-pca954x.c24 * mux can select only one sub-bus at a time; a switch can select any
45 #include <linux/i2c-mux.h>
55 #include <dt-bindings/mux/mux.h>
298 /* Write to mux register. Don't use i2c_transfer()/i2c_smbus_xfer()
344 /* Set the mux back to a predetermined channel */
392 * Set the mux into a state consistent with the new
430 .name = "i2c-mux-pca954x",
624 if (device_property_read_bool(dev, "i2c-mux-idle-disconnect"))
629 * Write the mux registe
[all...]
/linux-master/drivers/clk/ti/
H A Dmux.c23 struct clk_omap_mux *mux = to_clk_omap_mux(hw); local
28 * FIXME need a mux-specific flag to determine if val is bitwise or
34 val = ti_clk_ll_ops->clk_readl(&mux->reg) >> mux->shift;
35 val &= mux->mask;
37 if (mux->table) {
41 if (mux->table[i] == val)
46 if (val && (mux->flags & CLK_MUX_INDEX_BIT))
49 if (val && (mux->flags & CLK_MUX_INDEX_ONE))
60 struct clk_omap_mux *mux local
94 struct clk_omap_mux *mux = to_clk_omap_mux(hw); local
108 struct clk_omap_mux *mux = to_clk_omap_mux(hw); local
127 struct clk_omap_mux *mux; local
224 struct clk_omap_mux *mux; local
253 struct clk_omap_mux *mux; local
[all...]
/linux-master/drivers/phy/ti/
H A Dphy-am654-serdes.c15 #include <linux/mux/consumer.h>
569 struct serdes_am654_clk_mux *mux = to_serdes_am654_clk_mux(hw); local
570 struct regmap *regmap = mux->regmap;
571 unsigned int reg = mux->reg;
578 return serdes_am654_mux_table[val][mux->clk_id];
583 struct serdes_am654_clk_mux *mux = to_serdes_am654_clk_mux(hw); local
584 struct regmap *regmap = mux->regmap;
586 unsigned int reg = mux->reg;
587 int clk_id = mux->clk_id;
647 struct serdes_am654_clk_mux *mux; local
[all...]
/linux-master/drivers/phy/mscc/
H A Dphy-ocelot-serdes.c342 u32 mux; member in struct:serdes_mux
351 .mux = _mux, \
420 ocelot_serdes_muxes[i].mux);
/linux-master/drivers/phy/microchip/
H A Dlan966x_serdes.c35 .mux = _mux, \
65 u32 mux; member in struct:serdes_mux
489 val |= lan966x_serdes_muxes[i].mux;
/linux-master/drivers/phy/marvell/
H A Dphy-mvebu-cp110-comphy.c184 u32 mux; member in struct:mvebu_comphy_conf
194 .mux = _mux, \
204 .mux = -1, \
303 /* Unused PHY mux value is 0x0 */
322 return conf->mux;
726 int ret, mux; local
729 mux = mvebu_comphy_get_mux(lane->id, lane->port,
731 if (mux < 0)
740 val |= mux << MVEBU_COMPHY_SELECTOR_PHY(lane->id);
/linux-master/drivers/of/
H A Dunittest.c29 #include <linux/i2c-mux.h>
2819 dev_err(dev, "Failed to register mux #%d\n", i);
2841 { .name = "unittest-i2c-mux" },
2847 .name = "unittest-i2c-mux",
2882 "could not register unittest i2c mux driver\n"))
2937 /* just check for i2c mux existence */

Completed in 449 milliseconds

1234567891011>>