Home
last modified time | relevance | path

Searched refs:fll (Results 1 – 24 of 24) sorted by relevance

/OK3568_Linux_fs/kernel/sound/soc/codecs/
H A Dmadera.c3474 static int madera_find_fratio(struct madera_fll *fll, unsigned int fref, in madera_find_fratio() argument
3477 switch (fll->madera->type) { in madera_find_fratio()
3479 switch (fll->madera->rev) { in madera_find_fratio()
3488 fll->fout, in madera_find_fratio()
3500 return madera_find_main_fratio(fref, fll->fout, fratio); in madera_find_fratio()
3504 static int madera_calc_fratio(struct madera_fll *fll, in madera_calc_fratio() argument
3524 init_ratio = madera_find_fratio(fll, fref, sync, &cfg->fratio); in madera_calc_fratio()
3526 madera_fll_err(fll, "Unable to find FRATIO for fref=%uHz\n", in madera_calc_fratio()
3534 switch (fll->madera->type) { in madera_calc_fratio()
3536 switch (fll->madera->rev) { in madera_calc_fratio()
[all …]
H A Darizona.c2104 static int arizona_validate_fll(struct arizona_fll *fll, in arizona_validate_fll() argument
2110 if (fll->fout && Fout != fll->fout) { in arizona_validate_fll()
2111 arizona_fll_err(fll, in arizona_validate_fll()
2117 arizona_fll_err(fll, in arizona_validate_fll()
2123 Fvco_min = ARIZONA_FLL_MIN_FVCO * fll->vco_mult; in arizona_validate_fll()
2125 arizona_fll_err(fll, "No FLL_OUTDIV for Fout=%uHz\n", in arizona_validate_fll()
2149 static int arizona_calc_fratio(struct arizona_fll *fll, in arizona_calc_fratio() argument
2172 arizona_fll_err(fll, "Unable to find FRATIO for Fref=%uHz\n", in arizona_calc_fratio()
2177 switch (fll->arizona->type) { in arizona_calc_fratio()
2183 if (fll->arizona->rev < 3 || sync) in arizona_calc_fratio()
[all …]
H A Dwm8995.c382 struct fll_config fll[2], fll_suspend[2]; member
693 rate = wm8995->fll[0].out; in configure_aif_clock()
697 rate = wm8995->fll[1].out; in configure_aif_clock()
1723 static int wm8995_get_fll_config(struct fll_div *fll, in wm8995_get_fll_config() argument
1732 fll->clk_ref_div = 0; in wm8995_get_fll_config()
1734 fll->clk_ref_div++; in wm8995_get_fll_config()
1737 if (fll->clk_ref_div > 3) in wm8995_get_fll_config()
1740 pr_debug("CLK_REF_DIV=%d, Fref=%dHz\n", fll->clk_ref_div, freq_in); in wm8995_get_fll_config()
1743 fll->outdiv = 3; in wm8995_get_fll_config()
1744 while (freq_out * (fll->outdiv + 1) < 90000000) { in wm8995_get_fll_config()
[all …]
H A Dwm8994.c186 rate = wm8994->fll[0].out; in configure_aif_clock()
191 rate = wm8994->fll[1].out; in configure_aif_clock()
2122 static int wm8994_get_fll_config(struct wm8994 *control, struct fll_div *fll, in wm8994_get_fll_config() argument
2131 fll->clk_ref_div = 0; in wm8994_get_fll_config()
2133 fll->clk_ref_div++; in wm8994_get_fll_config()
2136 if (fll->clk_ref_div > 3) in wm8994_get_fll_config()
2139 pr_debug("CLK_REF_DIV=%d, Fref=%dHz\n", fll->clk_ref_div, freq_in); in wm8994_get_fll_config()
2142 fll->outdiv = 3; in wm8994_get_fll_config()
2143 while (freq_out * (fll->outdiv + 1) < 90000000) { in wm8994_get_fll_config()
2144 fll->outdiv++; in wm8994_get_fll_config()
[all …]
H A Dmadera.h411 struct madera_fll *fll);
412 int madera_set_fll_refclk(struct madera_fll *fll, int source,
414 int madera_set_fll_syncclk(struct madera_fll *fll, int source,
416 int madera_set_fll_ao_refclk(struct madera_fll *fll, int source,
418 int madera_fllhj_set_refclk(struct madera_fll *fll, int source,
H A Dwm8997.c34 struct arizona_fll fll[2]; member
933 return arizona_set_fll(&wm8997->fll[0], source, Fref, Fout); in wm8997_set_fll()
935 return arizona_set_fll(&wm8997->fll[1], source, Fref, Fout); in wm8997_set_fll()
937 return arizona_set_fll_refclk(&wm8997->fll[0], source, Fref, in wm8997_set_fll()
940 return arizona_set_fll_refclk(&wm8997->fll[1], source, Fref, in wm8997_set_fll()
1135 for (i = 0; i < ARRAY_SIZE(wm8997->fll); i++) in wm8997_probe()
1136 wm8997->fll[i].vco_mult = 1; in wm8997_probe()
1140 &wm8997->fll[0]); in wm8997_probe()
1143 &wm8997->fll[1]); in wm8997_probe()
H A Dwm5100.c76 struct wm5100_fll fll[2]; member
1760 struct wm5100_fll *fll; in wm5100_set_fll() local
1766 fll = &wm5100->fll[0]; in wm5100_set_fll()
1771 fll = &wm5100->fll[1]; in wm5100_set_fll()
1782 if (fll->fout) in wm5100_set_fll()
1784 fll->fout = 0; in wm5100_set_fll()
1826 try_wait_for_completion(&fll->lock); in wm5100_set_fll()
1843 time_left = wait_for_completion_timeout(&fll->lock, in wm5100_set_fll()
1868 fll->src = source; in wm5100_set_fll()
1869 fll->fref = Fref; in wm5100_set_fll()
[all …]
H A Dcs47l24.c37 struct arizona_fll fll[2]; member
941 return arizona_set_fll(&cs47l24->fll[0], source, Fref, Fout); in cs47l24_set_fll()
943 return arizona_set_fll(&cs47l24->fll[1], source, Fref, Fout); in cs47l24_set_fll()
945 return arizona_set_fll_refclk(&cs47l24->fll[0], source, Fref, in cs47l24_set_fll()
948 return arizona_set_fll_refclk(&cs47l24->fll[1], source, Fref, in cs47l24_set_fll()
1253 for (i = 0; i < ARRAY_SIZE(cs47l24->fll); i++) in cs47l24_probe()
1254 cs47l24->fll[i].vco_mult = 3; in cs47l24_probe()
1258 &cs47l24->fll[0]); in cs47l24_probe()
1261 &cs47l24->fll[1]); in cs47l24_probe()
H A Dwm8998.c34 struct arizona_fll fll[2]; member
1258 return arizona_set_fll(&wm8998->fll[0], source, Fref, Fout); in wm8998_set_fll()
1260 return arizona_set_fll(&wm8998->fll[1], source, Fref, Fout); in wm8998_set_fll()
1262 return arizona_set_fll_refclk(&wm8998->fll[0], source, Fref, in wm8998_set_fll()
1265 return arizona_set_fll_refclk(&wm8998->fll[1], source, Fref, in wm8998_set_fll()
1353 for (i = 0; i < ARRAY_SIZE(wm8998->fll); i++) in wm8998_probe()
1354 wm8998->fll[i].vco_mult = 1; in wm8998_probe()
1358 &wm8998->fll[0]); in wm8998_probe()
1361 &wm8998->fll[1]); in wm8998_probe()
H A Dwm5102.c38 struct arizona_fll fll[2]; member
1746 return arizona_set_fll(&wm5102->fll[0], source, Fref, Fout); in wm5102_set_fll()
1748 return arizona_set_fll(&wm5102->fll[1], source, Fref, Fout); in wm5102_set_fll()
1750 return arizona_set_fll_refclk(&wm5102->fll[0], source, Fref, in wm5102_set_fll()
1753 return arizona_set_fll_refclk(&wm5102->fll[1], source, Fref, in wm5102_set_fll()
2062 for (i = 0; i < ARRAY_SIZE(wm5102->fll); i++) in wm5102_probe()
2063 wm5102->fll[i].vco_mult = 1; in wm5102_probe()
2067 &wm5102->fll[0]); in wm5102_probe()
2070 &wm5102->fll[1]); in wm5102_probe()
H A Darizona.h304 int lock_irq, int ok_irq, struct arizona_fll *fll);
305 int arizona_set_fll_refclk(struct arizona_fll *fll, int source,
307 int arizona_set_fll(struct arizona_fll *fll, int source,
H A Dcs47l85.c37 struct madera_fll fll[3]; member
2230 return madera_set_fll_refclk(&cs47l85->fll[0], source, fref, in cs47l85_set_fll()
2233 return madera_set_fll_refclk(&cs47l85->fll[1], source, fref, in cs47l85_set_fll()
2236 return madera_set_fll_refclk(&cs47l85->fll[2], source, fref, in cs47l85_set_fll()
2239 return madera_set_fll_syncclk(&cs47l85->fll[0], source, fref, in cs47l85_set_fll()
2242 return madera_set_fll_syncclk(&cs47l85->fll[1], source, fref, in cs47l85_set_fll()
2245 return madera_set_fll_syncclk(&cs47l85->fll[2], source, fref, in cs47l85_set_fll()
2655 &cs47l85->fll[0]); in cs47l85_probe()
2657 &cs47l85->fll[1]); in cs47l85_probe()
2659 &cs47l85->fll[2]); in cs47l85_probe()
H A Dcs47l15.c43 struct madera_fll fll[2]; member
1133 return madera_set_fll_refclk(&cs47l15->fll[0], source, fref, in cs47l15_set_fll()
1136 return madera_set_fll_ao_refclk(&cs47l15->fll[1], source, fref, in cs47l15_set_fll()
1139 return madera_set_fll_syncclk(&cs47l15->fll[0], source, fref, in cs47l15_set_fll()
1430 &cs47l15->fll[0]); in cs47l15_probe()
1432 &cs47l15->fll[1]); in cs47l15_probe()
H A Dwm5110.c39 struct arizona_fll fll[2]; member
2057 return arizona_set_fll(&wm5110->fll[0], source, Fref, Fout); in wm5110_set_fll()
2059 return arizona_set_fll(&wm5110->fll[1], source, Fref, Fout); in wm5110_set_fll()
2061 return arizona_set_fll_refclk(&wm5110->fll[0], source, Fref, in wm5110_set_fll()
2064 return arizona_set_fll_refclk(&wm5110->fll[1], source, Fref, in wm5110_set_fll()
2431 for (i = 0; i < ARRAY_SIZE(wm5110->fll); i++) in wm5110_probe()
2432 wm5110->fll[i].vco_mult = 3; in wm5110_probe()
2436 &wm5110->fll[0]); in wm5110_probe()
2439 &wm5110->fll[1]); in wm5110_probe()
H A Dcs47l90.c37 struct madera_fll fll[3]; member
2152 return madera_set_fll_refclk(&cs47l90->fll[0], source, fref, in cs47l90_set_fll()
2155 return madera_set_fll_refclk(&cs47l90->fll[1], source, fref, in cs47l90_set_fll()
2158 return madera_set_fll_ao_refclk(&cs47l90->fll[2], source, fref, in cs47l90_set_fll()
2161 return madera_set_fll_syncclk(&cs47l90->fll[0], source, fref, in cs47l90_set_fll()
2164 return madera_set_fll_syncclk(&cs47l90->fll[1], source, fref, in cs47l90_set_fll()
2578 &cs47l90->fll[0]); in cs47l90_probe()
2580 &cs47l90->fll[1]); in cs47l90_probe()
2582 &cs47l90->fll[2]); in cs47l90_probe()
H A Dwm8994.h90 struct wm8994_fll_config fll[2], fll_suspend[2]; member
H A Dwm9081.c643 int fll = 0; in configure_clock() local
700 fll = 1; in configure_clock()
718 if (fll) in configure_clock()
H A Dcs47l92.c37 struct madera_fll fll[2]; member
1676 return madera_fllhj_set_refclk(&cs47l92->fll[0], source, fref, in cs47l92_set_fll()
1679 return madera_fllhj_set_refclk(&cs47l92->fll[1], source, fref, in cs47l92_set_fll()
2025 &cs47l92->fll[0]); in cs47l92_probe()
2027 &cs47l92->fll[1]); in cs47l92_probe()
H A Dcs47l35.c37 struct madera_fll fll; member
1341 return madera_set_fll_refclk(&cs47l35->fll, source, fref, in cs47l35_set_fll()
1344 return madera_set_fll_syncclk(&cs47l35->fll, source, fref, in cs47l35_set_fll()
1708 madera_init_fll(madera, 1, MADERA_FLL1_CONTROL_1 - 1, &cs47l35->fll); in cs47l35_probe()
/OK3568_Linux_fs/kernel/drivers/media/i2c/
H A Dimx577.c1310 u32 fll, dol_cit1, dol_cit2, dol_off2; in imx577_set_hdrae() local
1372 fll = imx577->cur_vts; in imx577_set_hdrae()
1379 else if (dol_cit1 > fll - 2 * CIT_MARGIN - 2) in imx577_set_hdrae()
1380 dol_cit1 = fll - 2 * CIT_MARGIN - 2; in imx577_set_hdrae()
1385 else if (dol_cit2 > fll - BRL_FULL - CIT_MARGIN) in imx577_set_hdrae()
1386 dol_cit2 = fll - BRL_FULL - CIT_MARGIN; in imx577_set_hdrae()
1392 else if (dol_off2 > fll - BRL_FULL) in imx577_set_hdrae()
1393 dol_off2 = (fll - BRL_FULL) & (~0x1); in imx577_set_hdrae()
1397 l_exp_time, s_exp_time, fll, dol_off2, l_a_gain, s_a_gain); in imx577_set_hdrae()
/OK3568_Linux_fs/kernel/fs/
H A Dlocks.c668 struct file_lock_list_struct *fll = this_cpu_ptr(&file_lock_list); in locks_insert_global_locks() local
672 spin_lock(&fll->lock); in locks_insert_global_locks()
674 hlist_add_head(&fl->fl_link, &fll->hlist); in locks_insert_global_locks()
675 spin_unlock(&fll->lock); in locks_insert_global_locks()
681 struct file_lock_list_struct *fll; in locks_delete_global_locks() local
693 fll = per_cpu_ptr(&file_lock_list, fl->fl_link_cpu); in locks_delete_global_locks()
694 spin_lock(&fll->lock); in locks_delete_global_locks()
696 spin_unlock(&fll->lock); in locks_delete_global_locks()
3014 struct file_lock_list_struct *fll = per_cpu_ptr(&file_lock_list, i); in filelock_init() local
3016 spin_lock_init(&fll->lock); in filelock_init()
[all …]
/OK3568_Linux_fs/u-boot/drivers/sound/
H A Dwm8994.c41 struct wm8994_fll_config fll[2]; /* fll config to configure fll */ member
453 rate = wm8994->fll[0].out; in configure_aif_clock()
458 rate = wm8994->fll[1].out; in configure_aif_clock()
/OK3568_Linux_fs/kernel/drivers/mfd/
H A Darizona-core.c318 unsigned int fll; member
328 ret = regmap_read(arizona->regmap, ARIZONA_FLL1_CONTROL_1, &state->fll); in arizona_enable_freerun_sysclk()
366 err = regmap_write(arizona->regmap, ARIZONA_FLL1_CONTROL_1, state->fll); in arizona_enable_freerun_sysclk()
387 ret = regmap_write(arizona->regmap, ARIZONA_FLL1_CONTROL_1, state->fll); in arizona_disable_freerun_sysclk()
/OK3568_Linux_fs/kernel/arch/x86/events/intel/
H A Dds.c1357 int fll; in setup_pebs_fixed_sample_data() local
1363 fll = event->hw.flags & PERF_X86_EVENT_PEBS_LDLAT; in setup_pebs_fixed_sample_data()
1372 if (fll && (sample_type & PERF_SAMPLE_WEIGHT)) in setup_pebs_fixed_sample_data()
1465 if ((sample_type & PERF_SAMPLE_WEIGHT) && !fll) in setup_pebs_fixed_sample_data()