Home
last modified time | relevance | path

Searched refs:mux_bits (Results 1 – 12 of 12) sorted by relevance

/openbmc/u-boot/arch/arm/mach-uniphier/
H A Dsg-regs.h92 .macro sg_set_pinsel, pin, muxval, mux_bits, reg_stride, ra, rd
93 ldr \ra, =(SG_PINCTRL_BASE + \pin * \mux_bits / 32 * \reg_stride)
95 and \rd, \rd, #~(((1 << \mux_bits) - 1) << (\pin * \mux_bits % 32))
96 orr \rd, \rd, #(\muxval << (\pin * \mux_bits % 32))
106 unsigned mux_bits, unsigned reg_stride) in sg_set_pinsel() argument
108 unsigned shift = pin * mux_bits % 32; in sg_set_pinsel()
109 unsigned long reg = SG_PINCTRL_BASE + pin * mux_bits / 32 * reg_stride; in sg_set_pinsel()
110 u32 mask = (1U << mux_bits) - 1; in sg_set_pinsel()
/openbmc/linux/drivers/iio/adc/
H A Dti-adc0832.c31 u8 mux_bits; member
146 if (!adc->mux_bits) in adc0832_adc_conversion()
150 adc->tx_buf[0] = 1 << (adc->mux_bits + 1); in adc0832_adc_conversion()
152 adc->tx_buf[0] |= differential ? 0 : (1 << adc->mux_bits); in adc0832_adc_conversion()
154 adc->tx_buf[0] |= (channel % 2) << (adc->mux_bits - 1); in adc0832_adc_conversion()
156 if (adc->mux_bits > 1) in adc0832_adc_conversion()
264 adc->mux_bits = 0; in adc0832_probe()
269 adc->mux_bits = 1; in adc0832_probe()
274 adc->mux_bits = 2; in adc0832_probe()
279 adc->mux_bits = 3; in adc0832_probe()
/openbmc/u-boot/arch/arm/mach-tegra/
H A Dclock.c180 int clock_ll_set_source_bits(enum periph_id periph_id, int mux_bits, in clock_ll_set_source_bits() argument
185 switch (mux_bits) { in clock_ll_set_source_bits()
208 static int clock_ll_get_source_bits(enum periph_id periph_id, int mux_bits) in clock_ll_get_source_bits() argument
213 switch (mux_bits) { in clock_ll_get_source_bits()
407 int mux_bits, unsigned divider) in adjust_periph_pll() argument
419 clock_ll_set_source_bits(periph_id, mux_bits, source); in adjust_periph_pll()
427 int err, mux_bits, divider_bits, type; in clock_get_periph_parent() local
430 err = get_periph_clock_info(periph_id, &mux_bits, &divider_bits, &type); in clock_get_periph_parent()
434 source = clock_ll_get_source_bits(periph_id, mux_bits); in clock_get_periph_parent()
443 int mux_bits, divider_bits, source; in clock_adjust_periph_pll_div() local
[all …]
/openbmc/u-boot/drivers/pinctrl/uniphier/
H A Dpinctrl-uniphier-core.c337 unsigned mux_bits = 8; in uniphier_pinmux_set_one() local
349 mux_bits = 4; in uniphier_pinmux_set_one()
357 mux_bits /= 2; in uniphier_pinmux_set_one()
362 reg = UNIPHIER_PINCTRL_PINMUX_BASE + pin * mux_bits / 32 * reg_stride; in uniphier_pinmux_set_one()
364 shift = pin * mux_bits % 32; in uniphier_pinmux_set_one()
365 mask = (1U << mux_bits) - 1; in uniphier_pinmux_set_one()
377 muxval >>= mux_bits; in uniphier_pinmux_set_one()
/openbmc/u-boot/arch/arm/include/asm/arch-tegra/
H A Dclock.h170 int clock_ll_set_source_bits(enum periph_id periph_id, int mux_bits,
313 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits,
342 enum clock_id parent, int *mux_bits, int *divider_bits);
/openbmc/linux/drivers/pinctrl/uniphier/
H A Dpinctrl-uniphier-core.c584 unsigned int mux_bits, reg_stride, reg, reg_end, shift, mask; in uniphier_pmx_set_one_mux() local
602 mux_bits = 4; in uniphier_pmx_set_one_mux()
611 mux_bits = 8; in uniphier_pmx_set_one_mux()
616 reg = UNIPHIER_PINCTRL_PINMUX_BASE + pin * mux_bits / 32 * reg_stride; in uniphier_pmx_set_one_mux()
618 shift = pin * mux_bits % 32; in uniphier_pmx_set_one_mux()
619 mask = (1U << mux_bits) - 1; in uniphier_pmx_set_one_mux()
630 muxval >>= mux_bits; in uniphier_pmx_set_one_mux()
/openbmc/linux/sound/pci/ice1712/
H A Dmaya44.c116 unsigned char mux_bits[2]; /* extra bits for ADC mute */ member
143 .mux_bits = { 0x80, 0x40 }, /* ADCMUX bits */
210 if (vol->mux_bits[ch]) in maya_vol_put()
212 vol->mux_bits[ch], in maya_vol_put()
213 val ? 0 : vol->mux_bits[ch]); in maya_vol_put()
/openbmc/u-boot/arch/arm/mach-tegra/tegra20/
H A Dclock.c415 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument
436 *mux_bits = MASK_BITS_31_28; in get_periph_clock_info()
438 *mux_bits = MASK_BITS_31_30; in get_periph_clock_info()
479 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() argument
484 err = get_periph_clock_info(periph_id, mux_bits, divider_bits, &type); in get_periph_clock_source()
/openbmc/u-boot/arch/arm/mach-tegra/tegra124/
H A Dclock.c644 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument
660 *mux_bits = clock_source[*type][CLOCK_MAX_MUX]; in get_periph_clock_info()
702 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() argument
707 err = get_periph_clock_info(periph_id, mux_bits, divider_bits, &type); in get_periph_clock_source()
1072 int mux_bits, divider_bits, source; in clock_set_display_rate() local
1130 &mux_bits, &divider_bits); in clock_set_display_rate()
1131 clock_ll_set_source_bits(PERIPH_ID_DISP1, mux_bits, source); in clock_set_display_rate()
/openbmc/u-boot/arch/arm/mach-tegra/tegra114/
H A Dclock.c498 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument
514 *mux_bits = clock_source[*type][CLOCK_MAX_MUX]; in get_periph_clock_info()
556 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() argument
561 err = get_periph_clock_info(periph_id, mux_bits, divider_bits, &type); in get_periph_clock_source()
/openbmc/u-boot/arch/arm/mach-tegra/tegra30/
H A Dclock.c478 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument
494 *mux_bits = clock_source[*type][CLOCK_MAX_MUX]; in get_periph_clock_info()
536 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() argument
541 err = get_periph_clock_info(periph_id, mux_bits, divider_bits, &type); in get_periph_clock_source()
/openbmc/u-boot/arch/arm/mach-tegra/tegra210/
H A Dclock.c734 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument
750 *mux_bits = clock_source[*type][CLOCK_MAX_MUX]; in get_periph_clock_info()
792 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() argument
797 err = get_periph_clock_info(periph_id, mux_bits, divider_bits, &type); in get_periph_clock_source()