/linux-4.19.296/drivers/clk/mxs/ |
D | clk-div.c | 27 struct clk_div { struct 34 static inline struct clk_div *to_clk_div(struct clk_hw *hw) in to_clk_div() argument 38 return container_of(divider, struct clk_div, divider); in to_clk_div() 44 struct clk_div *div = to_clk_div(hw); in clk_div_recalc_rate() 52 struct clk_div *div = to_clk_div(hw); in clk_div_round_rate() 60 struct clk_div *div = to_clk_div(hw); in clk_div_set_rate() 79 struct clk_div *div; in mxs_clk_div()
|
/linux-4.19.296/drivers/i2c/busses/ |
D | i2c-sun6i-p2wi.c | 193 int clk_div; in p2wi_probe() local 291 clk_div = parent_clk_freq / clk_freq; in p2wi_probe() 292 if (!clk_div) { in p2wi_probe() 296 clk_div = 1; in p2wi_probe() 297 } else if (clk_div > P2WI_CCR_MAX_CLK_DIV) { in p2wi_probe() 301 clk_div = P2WI_CCR_MAX_CLK_DIV; in p2wi_probe() 304 writel(P2WI_CCR_SDA_OUT_DELAY(1) | P2WI_CCR_CLK_DIV(clk_div), in p2wi_probe()
|
D | i2c-zx2967.c | 184 u32 clk_div; in zx2967_i2c_reset_hardware() local 189 clk_div = clk_get_rate(i2c->clk) / i2c->clk_freq - 1; in zx2967_i2c_reset_hardware() 190 zx2967_i2c_writel(i2c, clk_div, REG_CLK_DIV_FS); in zx2967_i2c_reset_hardware() 191 zx2967_i2c_writel(i2c, clk_div, REG_CLK_DIV_HS); in zx2967_i2c_reset_hardware()
|
D | i2c-xlr.c | 368 unsigned long clk_div; in xlr_i2c_probe() local 416 clk_div = DIV_ROUND_UP(clk_rate, 2 * busfreq); in xlr_i2c_probe() 417 xlr_i2c_wreg(priv->iobase, XLR_I2C_CLKDIV, clk_div); in xlr_i2c_probe()
|
D | i2c-sirf.c | 82 u32 clk_div; member 429 siic->clk_div = readl(siic->base + SIRFSOC_I2C_CLK_CTRL); in i2c_sirfsoc_suspend() 445 writel(siic->clk_div, siic->base + SIRFSOC_I2C_CLK_CTRL); in i2c_sirfsoc_resume()
|
D | i2c-imx.c | 168 struct imx_i2c_clk_pair *clk_div; member 210 .clk_div = imx_i2c_clk_div, 220 .clk_div = imx_i2c_clk_div, 230 .clk_div = vf610_i2c_clk_div, 492 struct imx_i2c_clk_pair *i2c_clk_div = i2c_imx->hwdata->clk_div; in i2c_imx_set_clk()
|
D | i2c-qcom-geni.c | 111 u8 clk_div; member 156 val = (itr->clk_div << CLK_DIV_SHFT) | SER_CLK_EN; in qcom_geni_i2c_conf()
|
/linux-4.19.296/drivers/pwm/ |
D | pwm-crc.c | 79 int clk_div; in crc_pwm_config() local 83 clk_div = PWM_BASE_CLK * period_ns / NSEC_PER_SEC; in crc_pwm_config() 86 clk_div | PWM_OUTPUT_ENABLE); in crc_pwm_config()
|
D | pwm-mtk-disp.c | 81 u32 clk_div, period, high_width, value; in mtk_disp_pwm_config() local 109 clk_div = div_u64(rate * period_ns, NSEC_PER_SEC) >> in mtk_disp_pwm_config() 111 if (clk_div > PWM_CLKDIV_MAX) { in mtk_disp_pwm_config() 117 div = NSEC_PER_SEC * (clk_div + 1); in mtk_disp_pwm_config() 140 clk_div << PWM_CLKDIV_SHIFT); in mtk_disp_pwm_config()
|
/linux-4.19.296/drivers/bus/ |
D | sunxi-rsb.c | 646 int clk_div, irq, ret; in sunxi_rsb_probe() local 717 clk_div = p_clk_freq / clk_freq / 2; in sunxi_rsb_probe() 718 if (!clk_div) in sunxi_rsb_probe() 719 clk_div = 1; in sunxi_rsb_probe() 720 else if (clk_div > RSB_CCR_MAX_CLK_DIV + 1) in sunxi_rsb_probe() 721 clk_div = RSB_CCR_MAX_CLK_DIV + 1; in sunxi_rsb_probe() 723 clk_delay = clk_div >> 1; in sunxi_rsb_probe() 727 dev_info(dev, "RSB running at %lu Hz\n", p_clk_freq / clk_div / 2); in sunxi_rsb_probe() 728 writel(RSB_CCR_SDA_OUT_DELAY(clk_delay) | RSB_CCR_CLK_DIV(clk_div - 1), in sunxi_rsb_probe()
|
/linux-4.19.296/drivers/media/dvb-frontends/ |
D | stv6110.c | 39 u8 clk_div; member 224 priv->regs[RSTV6110_CTRL2] |= (priv->clk_div << 6); in stv6110_init() 408 reg0[2] |= (config->clk_div << 6); in stv6110_attach() 428 priv->clk_div = config->clk_div; in stv6110_attach()
|
D | stv6110.h | 41 u8 clk_div; /* divisor value for the output clock */ member
|
D | stv6110x.h | 29 u8 clk_div; /* divisor value for the output clock */ member
|
D | stv6110x.c | 388 switch (stv6110x->config->clk_div) { in stv6110x_attach()
|
/linux-4.19.296/include/linux/platform_data/ |
D | shmob_drm.h | 84 unsigned int clk_div; member
|
/linux-4.19.296/drivers/iio/adc/ |
D | meson_saradc.c | 245 struct clk_divider clk_div; member 601 priv->clk_div.reg = base + MESON_SAR_ADC_REG3; in meson_sar_adc_clk_init() 602 priv->clk_div.shift = MESON_SAR_ADC_REG3_ADC_CLK_DIV_SHIFT; in meson_sar_adc_clk_init() 603 priv->clk_div.width = MESON_SAR_ADC_REG3_ADC_CLK_DIV_WIDTH; in meson_sar_adc_clk_init() 604 priv->clk_div.hw.init = &init; in meson_sar_adc_clk_init() 605 priv->clk_div.flags = 0; in meson_sar_adc_clk_init() 608 &priv->clk_div.hw); in meson_sar_adc_clk_init()
|
D | vf610_adc.c | 158 int clk_div; member 205 adc_feature->clk_div = 1 << fls(divisor + 1); in vf610_adc_calculate_rates() 208 adc_feature->clk_div = 8; in vf610_adc_calculate_rates() 211 adck_rate = ipg_rate / adc_feature->clk_div; in vf610_adc_calculate_rates() 376 switch (adc_feature->clk_div) { in vf610_adc_sample_set()
|
D | stm32-dfsdm-core.c | 103 unsigned int clk_div = priv->spi_clk_out_div, clk_src; in stm32_dfsdm_start_dfsdm() local 131 DFSDM_CHCFGR1_CKOUTDIV(clk_div)); in stm32_dfsdm_start_dfsdm()
|
/linux-4.19.296/drivers/clk/berlin/ |
D | berlin2-div.c | 62 static u8 clk_div[] = { 1, 2, 4, 6, 8, 12, 1, 1 }; variable 202 divider = clk_div[reg]; in berlin2_div_recalc_rate()
|
/linux-4.19.296/include/linux/mfd/ |
D | ti_am335x_tscadc.h | 177 unsigned int clk_div; member
|
/linux-4.19.296/include/video/ |
D | omapfb_dss.h | 210 int clk_div; member
|
/linux-4.19.296/drivers/media/usb/dvb-usb-v2/ |
D | anysee.c | 367 .clk_div = 1,
|