Home
last modified time | relevance | path

Searched refs:div_shift (Results 1 – 7 of 7) sorted by relevance

/external/u-boot/drivers/clk/mvebu/
Darmada-37xx-periph.c77 int div_shift[2]; member
115 .div_shift[0] = _s0, \
116 .div_shift[1] = _s1, \
131 .div_shift[0] = _s, \
145 .div_shift[0] = _s, \
165 .div_shift[0] = _s, \
179 .div_shift[0] = _s0, \
180 .div_shift[1] = _s1, \
280 reg = (reg >> clk->div_shift[idx]) & clk->div_mask[idx]; in get_div()
296 reg &= ~(clk->div_mask[idx] << clk->div_shift[idx]); in set_div_val()
[all …]
/external/mesa3d/src/util/
Dfast_idiv_by_const.c56 unsigned div_shift = util_logbase2_64(D); in util_compute_fast_udiv_info() local
58 if (div_shift) { in util_compute_fast_udiv_info()
60 result.multiplier = 1ull << (UINT_BITS - div_shift); in util_compute_fast_udiv_info()
/external/u-boot/drivers/clk/imx/
Dclk-pllv3.c22 u32 div_shift; member
32 u32 div = (readl(pll->base) >> pll->div_shift) & pll->div_mask; in clk_pllv3_get_rate()
/external/u-boot/drivers/clk/rockchip/
Dclk_rk3368.c360 uint8_t div_shift; member
368 [0] = { .reg = 45, .div_shift = 0, .sel_shift = 7, },
369 [1] = { .reg = 45, .div_shift = 8, .sel_shift = 15, },
370 [2] = { .reg = 46, .div_shift = 8, .sel_shift = 15, },
394 div = extract_bits(val, 7, spiclk->div_shift); in rk3368_spi_get_clk()
419 ((0x7f << spiclk->div_shift) | in rk3368_spi_set_clk()
421 ((src_clk_div << spiclk->div_shift) | in rk3368_spi_set_clk()
Dclk_rk3399.c594 u8 div_shift; member
606 .div_shift = CLK_SPI0_PLL_DIV_CON_SHIFT,
609 .div_shift = CLK_SPI1_PLL_DIV_CON_SHIFT,
612 .div_shift = CLK_SPI2_PLL_DIV_CON_SHIFT,
615 .div_shift = CLK_SPI4_PLL_DIV_CON_SHIFT,
618 .div_shift = CLK_SPI5_PLL_DIV_CON_SHIFT,
638 div = bitfield_extract(val, spiclk->div_shift, in rk3399_spi_get_clk()
663 ((CLK_SPI_PLL_DIV_CON_MASK << spiclk->div_shift) | in rk3399_spi_set_clk()
665 ((src_clk_div << spiclk->div_shift) | in rk3399_spi_set_clk()
/external/libaom/libaom/av1/common/ppc/
Dcfl_ppc.c42 const uint32x4_t div_shift = vec_splats((uint32_t)num_pel_log2); in subtract_average_vsx() local
73 const int32x4_t avg = vec_sr(sum_32x4, div_shift); in subtract_average_vsx()
/external/u-boot/drivers/clk/
Dclk_sandbox_ccf.c25 u32 div_shift; member