Home
last modified time | relevance | path

Searched refs:div_ratio (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.10/drivers/mmc/host/
Dsdhci-of-esdhc.c90 u32 div_ratio; member
676 esdhc->div_ratio = pre_div * div; in esdhc_of_set_clock()
683 if (esdhc->div_ratio <= 4) { in esdhc_of_set_clock()
686 } else if (esdhc->div_ratio <= 8) { in esdhc_of_set_clock()
689 } else if (esdhc->div_ratio <= 12) { in esdhc_of_set_clock()
696 esdhc->div_ratio = pre_div * div; in esdhc_of_set_clock()
699 host->mmc->actual_clock = host->max_clk / esdhc->div_ratio; in esdhc_of_set_clock()
998 *window_start = 5 * esdhc->div_ratio; in esdhc_prepare_sw_tuning()
999 *window_end = 3 * esdhc->div_ratio; in esdhc_prepare_sw_tuning()
1016 if (abs(start_ptr - end_ptr) > (4 * esdhc->div_ratio + 2)) { in esdhc_prepare_sw_tuning()
[all …]
/Linux-v5.10/drivers/media/cec/platform/s5p/
Dexynos_hdmi_cecctrl.c25 u32 div_ratio, div_val; in s5p_cec_set_divider() local
28 div_ratio = S5P_HDMI_FIN / CEC_DIV_RATIO - 1; in s5p_cec_set_divider()
35 reg = (reg & ~(0x3FF << 16)) | (div_ratio << 16); in s5p_cec_set_divider()
/Linux-v5.10/sound/soc/intel/skylake/
Dskl-nhlt.c299 u32 clkdiv, div_ratio; in skl_get_mclk() local
320 div_ratio = 1; in skl_get_mclk()
324 div_ratio = clkdiv + 2; in skl_get_mclk()
331 mclk[id].rate_cfg[0].rate = parent->rate/div_ratio; in skl_get_mclk()
/Linux-v5.10/drivers/gpu/ipu-v3/
Dipu-csi.c196 int div_ratio; in ipu_csi_set_testgen_mclk() local
198 div_ratio = (ipu_clk / pixel_clk) - 1; in ipu_csi_set_testgen_mclk()
200 if (div_ratio > 0xFF || div_ratio < 0) { in ipu_csi_set_testgen_mclk()
208 ipu_csi_write(csi, temp | (div_ratio << CSI_SENS_CONF_DIVRATIO_SHIFT), in ipu_csi_set_testgen_mclk()
/Linux-v5.10/drivers/net/fddi/skfp/
Dsmt.c100 static int div_ratio(u_long upper, u_long lower);
300 mib->fddiMACFrameErrorRatio = div_ratio(upper,lower) ; in smt_event()
317 mib->fddiMACNotCopiedRatio = div_ratio(upper,lower) ; in smt_event()
444 static int div_ratio(u_long upper, u_long lower) in div_ratio() function