Home
last modified time | relevance | path

Searched refs:div_reg (Results 1 – 22 of 22) sorted by relevance

/linux/drivers/clk/socfpga/
A Dclk-periph.c26 if (socfpgaclk->div_reg) { in clk_periclk_recalc_rate()
27 val = readl(socfpgaclk->div_reg) >> socfpgaclk->shift; in clk_periclk_recalc_rate()
61 u32 div_reg[3]; in __socfpga_periph_init() local
71 rc = of_property_read_u32_array(node, "div-reg", div_reg, 3); in __socfpga_periph_init()
73 periph_clk->div_reg = clk_mgr_base_addr + div_reg[0]; in __socfpga_periph_init()
74 periph_clk->shift = div_reg[1]; in __socfpga_periph_init()
75 periph_clk->width = div_reg[2]; in __socfpga_periph_init()
77 periph_clk->div_reg = NULL; in __socfpga_periph_init()
A Dclk-periph-a10.c28 } else if (socfpgaclk->div_reg) { in clk_periclk_recalc_rate()
29 div = readl(socfpgaclk->div_reg) >> socfpgaclk->shift; in clk_periclk_recalc_rate()
71 u32 div_reg[3]; in __socfpga_periph_init() local
81 rc = of_property_read_u32_array(node, "div-reg", div_reg, 3); in __socfpga_periph_init()
83 periph_clk->div_reg = clk_mgr_a10_base_addr + div_reg[0]; in __socfpga_periph_init()
84 periph_clk->shift = div_reg[1]; in __socfpga_periph_init()
85 periph_clk->width = div_reg[2]; in __socfpga_periph_init()
87 periph_clk->div_reg = NULL; in __socfpga_periph_init()
A Dclk-gate-a10.c29 else if (socfpgaclk->div_reg) { in socfpga_gate_clk_recalc_rate()
30 val = readl(socfpgaclk->div_reg) >> socfpgaclk->shift; in socfpga_gate_clk_recalc_rate()
98 u32 div_reg[3]; in __socfpga_gate_init() local
130 rc = of_property_read_u32_array(node, "div-reg", div_reg, 3); in __socfpga_gate_init()
132 socfpga_clk->div_reg = clk_mgr_a10_base_addr + div_reg[0]; in __socfpga_gate_init()
133 socfpga_clk->shift = div_reg[1]; in __socfpga_gate_init()
134 socfpga_clk->width = div_reg[2]; in __socfpga_gate_init()
136 socfpga_clk->div_reg = NULL; in __socfpga_gate_init()
A Dclk-gate-s10.c29 } else if (socfpgaclk->div_reg) { in socfpga_gate_clk_recalc_rate()
30 val = readl(socfpgaclk->div_reg) >> socfpgaclk->shift; in socfpga_gate_clk_recalc_rate()
43 val = readl(socfpgaclk->div_reg) >> socfpgaclk->shift; in socfpga_dbg_clk_recalc_rate()
147 if (clks->div_reg) in s10_register_gate()
148 socfpga_clk->div_reg = regbase + clks->div_reg; in s10_register_gate()
150 socfpga_clk->div_reg = NULL; in s10_register_gate()
205 if (clks->div_reg) in agilex_register_gate()
206 socfpga_clk->div_reg = regbase + clks->div_reg; in agilex_register_gate()
208 socfpga_clk->div_reg = NULL; in agilex_register_gate()
A Dclk-gate.c98 else if (socfpgaclk->div_reg) { in socfpga_clk_recalc_rate()
99 val = readl(socfpgaclk->div_reg) >> socfpgaclk->shift; in socfpga_clk_recalc_rate()
102 if ((uintptr_t) socfpgaclk->div_reg & SOCFPGA_GPIO_DB_CLK_OFFSET) in socfpga_clk_recalc_rate()
174 u32 div_reg[3]; in socfpga_gate_init() local
212 rc = of_property_read_u32_array(node, "div-reg", div_reg, 3); in socfpga_gate_init()
214 socfpga_clk->div_reg = clk_mgr_base_addr + div_reg[0]; in socfpga_gate_init()
215 socfpga_clk->shift = div_reg[1]; in socfpga_gate_init()
216 socfpga_clk->width = div_reg[2]; in socfpga_gate_init()
218 socfpga_clk->div_reg = NULL; in socfpga_gate_init()
A Dclk.h47 void __iomem *div_reg; member
60 void __iomem *div_reg; member
A Dstratix10-clk.h66 unsigned long div_reg; member
/linux/drivers/clk/bcm/
A Dclk-bcm2835.c491 u32 div_reg; member
1921 .div_reg = CM_OTPDIV,
1951 .div_reg = CM_TECDIV,
1968 .div_reg = CM_ISPDIV,
1981 .div_reg = CM_SDCDIV,
1989 .div_reg = CM_V3DDIV,
2003 .div_reg = CM_VPUDIV,
2039 .div_reg = CM_DFTDIV,
2046 .div_reg = CM_DPIDIV,
2076 .div_reg = CM_GP0DIV,
[all …]
/linux/sound/soc/mediatek/mt8192/
A Dmt8192-afe-clk.c414 int div_reg; member
429 .div_reg = CLK_AUDDIV_2,
442 .div_reg = CLK_AUDDIV_2,
455 .div_reg = CLK_AUDDIV_2,
468 .div_reg = CLK_AUDDIV_2,
481 .div_reg = CLK_AUDDIV_3,
494 .div_reg = CLK_AUDDIV_2,
504 .div_reg = CLK_AUDDIV_3,
517 .div_reg = CLK_AUDDIV_3,
530 .div_reg = CLK_AUDDIV_4,
[all …]
/linux/sound/soc/jz4740/
A Djz4740-i2s.c254 uint32_t ctrl, div_reg; in jz4740_i2s_hw_params() local
259 div_reg = jz4740_i2s_read(i2s, JZ_REG_AIC_CLK_DIV); in jz4740_i2s_hw_params()
281 div_reg &= ~I2SDIV_DV_MASK; in jz4740_i2s_hw_params()
282 div_reg |= (div - 1) << I2SDIV_DV_SHIFT; in jz4740_i2s_hw_params()
288 div_reg &= ~I2SDIV_IDV_MASK; in jz4740_i2s_hw_params()
289 div_reg |= (div - 1) << I2SDIV_IDV_SHIFT; in jz4740_i2s_hw_params()
291 div_reg &= ~I2SDIV_DV_MASK; in jz4740_i2s_hw_params()
292 div_reg |= (div - 1) << I2SDIV_DV_SHIFT; in jz4740_i2s_hw_params()
297 jz4740_i2s_write(i2s, JZ_REG_AIC_CLK_DIV, div_reg); in jz4740_i2s_hw_params()
/linux/drivers/clk/
A Dclk-vt8500.c22 void __iomem *div_reg; member
118 u32 div = readl(cdev->div_reg) & cdev->div_mask; in vt8500_dclk_recalc_rate()
189 writel(divisor, cdev->div_reg); in vt8500_dclk_set_rate()
225 u32 en_reg, div_reg; in vtwm_device_clk_init() local
255 rc = of_property_read_u32(node, "divisor-reg", &div_reg); in vtwm_device_clk_init()
257 dev_clk->div_reg = pmc_base + div_reg; in vtwm_device_clk_init()
A Dclk-k210.c35 u8 div_reg; member
55 .div_reg = (_reg), \
755 if (!cfg->div_reg) in k210_clk_get_rate()
758 reg = readl(ksc->regs + cfg->div_reg); in k210_clk_get_rate()
A Dclk-bm1880.c116 u32 div_reg; member
151 .div_reg = _div_reg, \
827 div_hws->div.reg = clks->div_reg; in bm1880_clk_register_composite()
/linux/drivers/clk/hisilicon/
A Dclk-hi3620.c226 u32 div_reg; member
242 void __iomem *div_reg; member
372 val = readl_relaxed(mclk->div_reg); in mmc_clk_set_timing()
374 writel_relaxed(val, mclk->div_reg); in mmc_clk_set_timing()
432 mclk->div_reg = base + mmc_clk->div_reg; in hisi_register_clk_mmc()
/linux/drivers/clk/samsung/
A Dclk-cpu.c69 static void wait_until_divider_stable(void __iomem *div_reg, unsigned long mask) in wait_until_divider_stable() argument
74 if (!(readl(div_reg) & mask)) in wait_until_divider_stable()
78 if (!(readl(div_reg) & mask)) in wait_until_divider_stable()
/linux/drivers/clk/mediatek/
A Dclk-mtk.h184 u32 div_reg; member
195 .div_reg = _reg, \
A Dclk-mt8167.c661 .div_reg = _reg, \
691 .div_reg = _reg, \
A Dclk-mtk.c292 mcd->flags, base + mcd->div_reg, mcd->div_shift, in mtk_clk_register_dividers()
A Dclk-mt8516.c471 .div_reg = _reg, \
/linux/drivers/gpio/
A Dgpio-rockchip.c193 unsigned long flags, div_reg, freq, max_debounce; in rockchip_gpio_set_debounce() local
206 div_reg = DIV_ROUND_CLOSEST_ULL(div, 2 * USEC_PER_SEC) - 1; in rockchip_gpio_set_debounce()
219 if (cur_div_reg < div_reg) in rockchip_gpio_set_debounce()
220 writel(div_reg, bank->reg_base + in rockchip_gpio_set_debounce()
/linux/drivers/clk/ingenic/
A Dcgu.c388 u32 div_reg, div; in ingenic_clk_recalc_rate() local
395 div_reg = readl(cgu->base + clk_info->div.reg); in ingenic_clk_recalc_rate()
396 div = (div_reg >> clk_info->div.shift) & in ingenic_clk_recalc_rate()
/linux/drivers/net/ethernet/netronome/nfp/bpf/
A Djit.c2406 static int div_reg(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta) in div_reg() function
3459 [BPF_ALU | BPF_DIV | BPF_X] = div_reg,

Completed in 51 milliseconds