Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/mmc/host/
Dsdhci-of-esdhc.c90 u32 div_ratio; member
680 esdhc->div_ratio = pre_div * div; in esdhc_of_set_clock()
687 if (esdhc->div_ratio <= 4) { in esdhc_of_set_clock()
690 } else if (esdhc->div_ratio <= 8) { in esdhc_of_set_clock()
693 } else if (esdhc->div_ratio <= 12) { in esdhc_of_set_clock()
700 esdhc->div_ratio = pre_div * div; in esdhc_of_set_clock()
703 host->mmc->actual_clock = host->max_clk / esdhc->div_ratio; in esdhc_of_set_clock()
1003 *window_start = 5 * esdhc->div_ratio; in esdhc_prepare_sw_tuning()
1004 *window_end = 3 * esdhc->div_ratio; in esdhc_prepare_sw_tuning()
1021 if (abs(start_ptr - end_ptr) > (4 * esdhc->div_ratio + 2)) { in esdhc_prepare_sw_tuning()
[all …]
/linux-5.19.10/sound/soc/intel/skylake/
Dskl-nhlt.c211 u32 clkdiv, div_ratio; in skl_get_mclk() local
232 div_ratio = 1; in skl_get_mclk()
236 div_ratio = clkdiv + 2; in skl_get_mclk()
243 mclk[id].rate_cfg[0].rate = parent->rate/div_ratio; in skl_get_mclk()
/linux-5.19.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-5.19.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-5.19.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