Searched refs:nshift (Results 1 – 10 of 10) sorted by relevance
/Linux-v5.10/drivers/clk/ |
D | clk-fractional-divider.c | 55 n = (val & fd->nmask) >> fd->nshift; in clk_fd_recalc_rate() 137 val |= (m << fd->mshift) | (n << fd->nshift); in clk_fd_set_rate() 157 void __iomem *reg, u8 mshift, u8 mwidth, u8 nshift, u8 nwidth, in clk_hw_register_fractional_divider() argument 179 fd->nshift = nshift; in clk_hw_register_fractional_divider() 181 fd->nmask = GENMASK(nwidth - 1, 0) << nshift; in clk_hw_register_fractional_divider() 199 void __iomem *reg, u8 mshift, u8 mwidth, u8 nshift, u8 nwidth, in clk_register_fractional_divider() argument 205 reg, mshift, mwidth, nshift, nwidth, clk_divider_flags, in clk_register_fractional_divider()
|
D | clk-stm32h7.c | 673 u8 nshift; member 757 mask = GENMASK(fd->nwidth - 1, 0) << fd->nshift; in pll_fd_recalc_rate() 758 n = ((val & mask) >> fd->nshift) + 1; in pll_fd_recalc_rate() 821 div->nshift = 0; in clk_register_stm32_pll()
|
/Linux-v5.10/drivers/net/ethernet/tehuti/ |
D | tehuti.h | 128 #define GET_BITS_SHIFT(x, nbits, nshift) (((x)>>nshift)&BITS_MASK(nbits)) argument 129 #define BITS_SHIFT_MASK(nbits, nshift) (BITS_MASK(nbits)<<nshift) argument 130 #define BITS_SHIFT_VAL(x, nbits, nshift) (((x)&BITS_MASK(nbits))<<nshift) argument 131 #define BITS_SHIFT_CLEAR(x, nbits, nshift) \ argument 132 ((x)&(~BITS_SHIFT_MASK(nbits, nshift)))
|
/Linux-v5.10/drivers/clk/sunxi/ |
D | clk-factors.h | 11 u8 nshift; member
|
D | clk-sunxi.c | 416 .nshift = 8, 427 .nshift = 8, 437 .nshift = 8, 449 .nshift = 8, 456 .nshift = 8,
|
D | clk-factors.c | 54 n = FACTOR_GET(config->nshift, config->nwidth, reg); in clk_factors_recalc_rate() 153 reg = FACTOR_SET(config->nshift, config->nwidth, reg, req.n); in clk_factors_set_rate()
|
D | clk-sun9i-core.c | 62 .nshift = 8,
|
/Linux-v5.10/drivers/clk/imx/ |
D | clk-composite-7ulp.c | 58 fd->nshift = PCG_PCD_SHIFT; in imx7ulp_clk_hw_composite()
|
/Linux-v5.10/include/linux/ |
D | clk-provider.h | 946 u8 nshift; member 964 void __iomem *reg, u8 mshift, u8 mwidth, u8 nshift, u8 nwidth, 968 void __iomem *reg, u8 mshift, u8 mwidth, u8 nshift, u8 nwidth,
|
/Linux-v5.10/drivers/clk/rockchip/ |
D | clk.c | 249 div->nshift = 0; in rockchip_clk_register_frac_branch() 251 div->nmask = GENMASK(div->nwidth - 1, 0) << div->nshift; in rockchip_clk_register_frac_branch()
|