/src/sys/arch/arm/imx/ |
imxi2c.c | 40 static const struct clk_div { struct
|
/src/sys/dev/acpi/ |
nxpiic_acpi.c | 49 static const struct clk_div { struct
|
/src/sys/dev/ic/ |
pl181.c | 340 u_int pll_freq, clk_div; local in function:plmmc_bus_clock 346 clk_div = (howmany(pll_freq, freq) >> 1) - 1; 347 clock |= __SHIFTIN(clk_div, MMCI_CLOCK_CLKDIV);
|
dwc_mmc.c | 392 u_int clk_div, ciu_div; local in function:dwc_mmc_set_clock 397 clk_div = howmany(pll_freq, freq * ciu_div); 399 clk_div = 0; 401 MMC_WRITE(sc, DWC_MMC_CLKDIV, clk_div);
|
/src/sys/arch/arm/amlogic/ |
meson_sdio.c | 321 int clk_div; local in function:meson_sdio_set_clock 326 clk_div = howmany(pll_freq, freq); 330 conf |= __SHIFTIN(clk_div - 1, SDIO_CONF_COMMAND_CLK_DIV);
|
meson_pwm.c | 127 u_int period, duty, clk_div, hi, lo; local in function:meson_pwm_get_current 135 clk_div = __SHIFTOUT(val, MESON_PWM_MISC_AB_A_CLK_DIV); 142 clk_div = __SHIFTOUT(val, MESON_PWM_MISC_AB_B_CLK_DIV); 153 clk_div += 1; 154 duty_hz = (uint64_t)hi * clk_div; 155 period_hz = (uint64_t)(hi + lo) * clk_div; 181 u_int period, duty, clk_div, hi, lo; local in function:meson_pwm_set_config 197 clk_div = 1; 203 clk_div = (period_hz + 0x7fff) / 0xffff; 204 period_hz /= clk_div; [all...] |
meson_sdhc.c | 365 const u_int clk_div = __SHIFTOUT(clkc, SD_CLKC_CLK_DIV); local in function:meson_sdhc_default_rx_phase 366 const u_int act_freq = pll_freq / clk_div; 392 u_int pll_freq, clk_div; local in function:meson_sdhc_set_clock 412 clk_div = howmany(pll_freq, freq); 414 clkc |= __SHIFTIN(clk_div - 1, SD_CLKC_CLK_DIV); 906 u_int ph, rx_phase, clk_div; local in function:meson_sdhc_execute_tuning 926 clk_div = __SHIFTOUT(clkc, SD_CLKC_CLK_DIV); 928 for (ph = 0; ph <= clk_div; ph++) {
|
/src/sys/arch/arm/ti/ |
ti_lcdc.c | 160 int clk_div, div, diff, best_diff; local in function:tilcdc_mode_set 172 clk_div = 255; 179 clk_div = div; 182 if (clk_div == 255) { 189 (clk_div << CTRL_DIV_SHIFT);
|
/src/sys/external/bsd/drm2/dist/drm/i915/display/ |
intel_dpll_mgr.c | 1759 struct bxt_clk_div *clk_div) 1776 clk_div->p1 = best_clock.p1; 1777 clk_div->p2 = best_clock.p2; 1779 clk_div->n = best_clock.n; 1780 clk_div->m2_int = best_clock.m2 >> 22; 1781 clk_div->m2_frac = best_clock.m2 & ((1 << 22) - 1); 1782 clk_div->m2_frac_en = clk_div->m2_frac != 0; 1784 clk_div->vco = best_clock.vco; 1790 struct bxt_clk_div *clk_div) 1878 struct bxt_clk_div clk_div = {}; local in function:bxt_ddi_dp_set_dpll_hw_state 1888 struct bxt_clk_div clk_div = {}; local in function:bxt_ddi_hdmi_set_dpll_hw_state [all...] |