| /OK3568_Linux_fs/u-boot/arch/arm/mach-uniphier/ |
| H A D | sg-regs.h | 93 .macro sg_set_pinsel, pin, muxval, mux_bits, reg_stride, ra, rd 94 ldr \ra, =(SG_PINCTRL_BASE + \pin * \mux_bits / 32 * \reg_stride) 96 and \rd, \rd, #~(((1 << \mux_bits) - 1) << (\pin * \mux_bits % 32)) 97 orr \rd, \rd, #(\muxval << (\pin * \mux_bits % 32)) 107 unsigned mux_bits, unsigned reg_stride) in sg_set_pinsel() argument 109 unsigned shift = pin * mux_bits % 32; in sg_set_pinsel() 110 unsigned long reg = SG_PINCTRL_BASE + pin * mux_bits / 32 * reg_stride; in sg_set_pinsel() 111 u32 mask = (1U << mux_bits) - 1; in sg_set_pinsel()
|
| /OK3568_Linux_fs/kernel/drivers/iio/adc/ |
| H A D | ti-adc0832.c | 31 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() 259 adc->mux_bits = 0; in adc0832_probe() 264 adc->mux_bits = 1; in adc0832_probe() 269 adc->mux_bits = 2; in adc0832_probe() 274 adc->mux_bits = 3; in adc0832_probe()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-tegra/ |
| H A D | clock.c | 181 int clock_ll_set_source_bits(enum periph_id periph_id, int mux_bits, in clock_ll_set_source_bits() argument 186 switch (mux_bits) { in clock_ll_set_source_bits() 209 static int clock_ll_get_source_bits(enum periph_id periph_id, int mux_bits) in clock_ll_get_source_bits() argument 214 switch (mux_bits) { in clock_ll_get_source_bits() 408 int mux_bits, unsigned divider) in adjust_periph_pll() argument 420 clock_ll_set_source_bits(periph_id, mux_bits, source); in adjust_periph_pll() 428 int err, mux_bits, divider_bits, type; in clock_get_periph_parent() local 431 err = get_periph_clock_info(periph_id, &mux_bits, ÷r_bits, &type); in clock_get_periph_parent() 435 source = clock_ll_get_source_bits(periph_id, mux_bits); in clock_get_periph_parent() 444 int mux_bits, divider_bits, source; in clock_adjust_periph_pll_div() local [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/pinctrl/uniphier/ |
| H A D | pinctrl-uniphier-core.c | 220 unsigned mux_bits = 8; in uniphier_pinmux_set_one() local 232 mux_bits = 4; in uniphier_pinmux_set_one() 240 mux_bits /= 2; in uniphier_pinmux_set_one() 245 reg = UNIPHIER_PINCTRL_PINMUX_BASE + pin * mux_bits / 32 * reg_stride; in uniphier_pinmux_set_one() 247 shift = pin * mux_bits % 32; in uniphier_pinmux_set_one() 248 mask = (1U << mux_bits) - 1; in uniphier_pinmux_set_one() 260 muxval >>= mux_bits; in uniphier_pinmux_set_one()
|
| /OK3568_Linux_fs/u-boot/arch/arm/include/asm/arch-tegra/ |
| H A D | clock.h | 171 int clock_ll_set_source_bits(enum periph_id periph_id, int mux_bits, 314 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, 343 enum clock_id parent, int *mux_bits, int *divider_bits);
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/uniphier/ |
| H A D | pinctrl-uniphier-core.c | 582 unsigned int mux_bits, reg_stride, reg, reg_end, shift, mask; in uniphier_pmx_set_one_mux() local 600 mux_bits = 4; in uniphier_pmx_set_one_mux() 609 mux_bits = 8; in uniphier_pmx_set_one_mux() 614 reg = UNIPHIER_PINCTRL_PINMUX_BASE + pin * mux_bits / 32 * reg_stride; in uniphier_pmx_set_one_mux() 616 shift = pin * mux_bits % 32; in uniphier_pmx_set_one_mux() 617 mask = (1U << mux_bits) - 1; in uniphier_pmx_set_one_mux() 628 muxval >>= mux_bits; in uniphier_pmx_set_one_mux()
|
| /OK3568_Linux_fs/kernel/sound/pci/ice1712/ |
| H A D | maya44.c | 116 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()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-tegra/tegra20/ |
| H A D | clock.c | 416 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument 437 *mux_bits = MASK_BITS_31_28; in get_periph_clock_info() 439 *mux_bits = MASK_BITS_31_30; in get_periph_clock_info() 480 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() argument 485 err = get_periph_clock_info(periph_id, mux_bits, divider_bits, &type); in get_periph_clock_source()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-tegra/tegra124/ |
| H A D | clock.c | 645 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument 661 *mux_bits = clock_source[*type][CLOCK_MAX_MUX]; in get_periph_clock_info() 703 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() argument 708 err = get_periph_clock_info(periph_id, mux_bits, divider_bits, &type); in get_periph_clock_source() 1073 int mux_bits, divider_bits, source; in clock_set_display_rate() local 1131 &mux_bits, ÷r_bits); in clock_set_display_rate() 1132 clock_ll_set_source_bits(PERIPH_ID_DISP1, mux_bits, source); in clock_set_display_rate()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-tegra/tegra114/ |
| H A D | clock.c | 499 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument 515 *mux_bits = clock_source[*type][CLOCK_MAX_MUX]; in get_periph_clock_info() 557 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() argument 562 err = get_periph_clock_info(periph_id, mux_bits, divider_bits, &type); in get_periph_clock_source()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-tegra/tegra30/ |
| H A D | clock.c | 479 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument 495 *mux_bits = clock_source[*type][CLOCK_MAX_MUX]; in get_periph_clock_info() 537 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() argument 542 err = get_periph_clock_info(periph_id, mux_bits, divider_bits, &type); in get_periph_clock_source()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-tegra/tegra210/ |
| H A D | clock.c | 735 int get_periph_clock_info(enum periph_id periph_id, int *mux_bits, in get_periph_clock_info() argument 751 *mux_bits = clock_source[*type][CLOCK_MAX_MUX]; in get_periph_clock_info() 793 enum clock_id parent, int *mux_bits, int *divider_bits) in get_periph_clock_source() argument 798 err = get_periph_clock_info(periph_id, mux_bits, divider_bits, &type); in get_periph_clock_source()
|