/kernel/linux/linux-5.10/drivers/clk/ |
H A D | clk-fractional-divider.c | 81 * by (scale - fd->nwidth) bits. in clk_fd_general_approximation() 84 if (scale > fd->nwidth) in clk_fd_general_approximation() 85 rate <<= scale - fd->nwidth; in clk_fd_general_approximation() 88 GENMASK(fd->mwidth - 1, 0), GENMASK(fd->nwidth - 1, 0), in clk_fd_general_approximation() 122 GENMASK(fd->mwidth - 1, 0), GENMASK(fd->nwidth - 1, 0), in clk_fd_set_rate() 157 void __iomem *reg, u8 mshift, u8 mwidth, u8 nshift, u8 nwidth, in clk_hw_register_fractional_divider() 180 fd->nwidth = nwidth; 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() 155 clk_hw_register_fractional_divider(struct device *dev, const char *name, const char *parent_name, unsigned long flags, void __iomem *reg, u8 mshift, u8 mwidth, u8 nshift, u8 nwidth, u8 clk_divider_flags, spinlock_t *lock) clk_hw_register_fractional_divider() argument 197 clk_register_fractional_divider(struct device *dev, const char *name, const char *parent_name, unsigned long flags, void __iomem *reg, u8 mshift, u8 mwidth, u8 nshift, u8 nwidth, u8 clk_divider_flags, spinlock_t *lock) clk_register_fractional_divider() argument [all...] |
H A D | clk-stm32h7.c | 674 u8 nwidth; member 757 mask = GENMASK(fd->nwidth - 1, 0) << fd->nshift; in pll_fd_recalc_rate() 822 div->nwidth = 9; in clk_register_stm32_pll()
|
/kernel/linux/linux-6.6/drivers/clk/ |
H A D | clk-fractional-divider.c | 18 * n >= 1, n < N_width, where N_width = 2^nwidth (2) 23 * floor(log2(parent_rate / rate)) <= nwidth (3) 32 * scale = floor(log2(parent_rate / rate)) - nwidth (5) 90 nmask = GENMASK(fd->nwidth - 1, 0) << fd->nshift; in clk_fd_get_div() 130 * by (scale - fd->nwidth) bits. in clk_fractional_divider_general_approximation() 137 if (scale > fd->nwidth) in clk_fractional_divider_general_approximation() 138 rate <<= scale - fd->nwidth; in clk_fractional_divider_general_approximation() 142 GENMASK(fd->mwidth - 1, 0), GENMASK(fd->nwidth - 1, 0), in clk_fractional_divider_general_approximation() 177 GENMASK(fd->mwidth - 1, 0), GENMASK(fd->nwidth - 1, 0), in clk_fd_set_rate() 191 nmask = GENMASK(fd->nwidth in clk_fd_set_rate() 248 clk_hw_register_fractional_divider(struct device *dev, const char *name, const char *parent_name, unsigned long flags, void __iomem *reg, u8 mshift, u8 mwidth, u8 nshift, u8 nwidth, u8 clk_divider_flags, spinlock_t *lock) clk_hw_register_fractional_divider() argument 288 clk_register_fractional_divider(struct device *dev, const char *name, const char *parent_name, unsigned long flags, void __iomem *reg, u8 mshift, u8 mwidth, u8 nshift, u8 nwidth, u8 clk_divider_flags, spinlock_t *lock) clk_register_fractional_divider() argument [all...] |
H A D | clk-stm32h7.c | 673 u8 nwidth; member 756 mask = GENMASK(fd->nwidth - 1, 0) << fd->nshift; in pll_fd_recalc_rate() 821 div->nwidth = 9; in clk_register_stm32_pll()
|
/kernel/linux/linux-5.10/drivers/clk/sunxi/ |
H A D | clk-factors.c | 53 if (config->nwidth != SUNXI_FACTORS_NOT_APPLICABLE) in clk_factors_recalc_rate() 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()
|
H A D | clk-factors.h | 12 u8 nwidth; member
|
H A D | clk-sunxi.c | 417 .nwidth = 5, 428 .nwidth = 5, 438 .nwidth = 5, 450 .nwidth = 5, 457 .nwidth = 5,
|
H A D | clk-sun9i-core.c | 63 .nwidth = 8,
|
/kernel/linux/linux-6.6/drivers/clk/sunxi/ |
H A D | clk-factors.c | 53 if (config->nwidth != SUNXI_FACTORS_NOT_APPLICABLE) in clk_factors_recalc_rate() 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()
|
H A D | clk-factors.h | 12 u8 nwidth; member
|
H A D | clk-sunxi.c | 417 .nwidth = 5, 428 .nwidth = 5, 438 .nwidth = 5, 450 .nwidth = 5, 457 .nwidth = 5,
|
H A D | clk-sun9i-core.c | 63 .nwidth = 8,
|
/kernel/linux/linux-5.10/drivers/clk/rockchip/ |
H A D | clk.c | 196 * by (scale - fd->nwidth) bits. in rockchip_fractional_approximation() 199 if (scale > fd->nwidth) in rockchip_fractional_approximation() 200 rate <<= scale - fd->nwidth; in rockchip_fractional_approximation() 203 GENMASK(fd->mwidth - 1, 0), GENMASK(fd->nwidth - 1, 0), in rockchip_fractional_approximation() 250 div->nwidth = 16; in rockchip_clk_register_frac_branch() 251 div->nmask = GENMASK(div->nwidth - 1, 0) << div->nshift; in rockchip_clk_register_frac_branch()
|
/kernel/linux/linux-5.10/drivers/clk/imx/ |
H A D | clk-composite-7ulp.c | 59 fd->nwidth = PCG_PCD_WIDTH; in imx7ulp_clk_hw_composite()
|
/kernel/linux/linux-6.6/drivers/clk/imx/ |
H A D | clk-composite-7ulp.c | 104 fd->nwidth = PCG_PCD_WIDTH; in imx_ulp_clk_hw_composite()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/ |
H A D | cirrusfb.c | 2595 u_short nwidth, u_short nheight, in cirrusfb_set_blitter() 2612 vga_wgfx(regbase, CL_GR20, nwidth & 0xff); in cirrusfb_set_blitter() 2614 vga_wgfx(regbase, CL_GR21, nwidth >> 8); in cirrusfb_set_blitter() 2660 u_short nwidth = width - 1; in cirrusfb_BitBLT() local 2682 nsrc += nheight * line_length + nwidth; in cirrusfb_BitBLT() 2683 ndest += nheight * line_length + nwidth; in cirrusfb_BitBLT() 2688 cirrusfb_set_blitter(regbase, nwidth, nheight, in cirrusfb_BitBLT() 2594 cirrusfb_set_blitter(u8 __iomem *regbase, u_short nwidth, u_short nheight, u_long nsrc, u_long ndest, u_short bltmode, u_short line_length) cirrusfb_set_blitter() argument
|
H A D | tgafb.c | 1017 unsigned long nwidth = width & -2048; local 1024 for (j = 0; j < nwidth; j += 2048)
|
/kernel/linux/linux-6.6/drivers/video/fbdev/ |
H A D | cirrusfb.c | 2597 u_short nwidth, u_short nheight, in cirrusfb_set_blitter() 2614 vga_wgfx(regbase, CL_GR20, nwidth & 0xff); in cirrusfb_set_blitter() 2616 vga_wgfx(regbase, CL_GR21, nwidth >> 8); in cirrusfb_set_blitter() 2662 u_short nwidth = width - 1; in cirrusfb_BitBLT() local 2684 nsrc += nheight * line_length + nwidth; in cirrusfb_BitBLT() 2685 ndest += nheight * line_length + nwidth; in cirrusfb_BitBLT() 2690 cirrusfb_set_blitter(regbase, nwidth, nheight, in cirrusfb_BitBLT() 2596 cirrusfb_set_blitter(u8 __iomem *regbase, u_short nwidth, u_short nheight, u_long nsrc, u_long ndest, u_short bltmode, u_short line_length) cirrusfb_set_blitter() argument
|
H A D | tgafb.c | 1023 unsigned long nwidth = width & -2048; local 1030 for (j = 0; j < nwidth; j += 2048)
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | clk-provider.h | 960 * @nwidth: width of the denominator bit field 982 u8 nwidth; member 999 void __iomem *reg, u8 mshift, u8 mwidth, u8 nshift, u8 nwidth, 1003 void __iomem *reg, u8 mshift, u8 mwidth, u8 nshift, u8 nwidth,
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | clk-provider.h | 1132 * @nwidth: width of the denominator bit field 1159 u8 nwidth; member 1175 void __iomem *reg, u8 mshift, u8 mwidth, u8 nshift, u8 nwidth, 1179 void __iomem *reg, u8 mshift, u8 mwidth, u8 nshift, u8 nwidth,
|
/kernel/linux/linux-6.6/drivers/clk/rockchip/ |
H A D | clk.c | 248 div->nwidth = 16; in rockchip_clk_register_frac_branch()
|