fll 1351 arch/x86/events/intel/ds.c int fll; fll 1357 arch/x86/events/intel/ds.c fll = event->hw.flags & PERF_X86_EVENT_PEBS_LDLAT; fll 1366 arch/x86/events/intel/ds.c if (fll && (sample_type & PERF_SAMPLE_WEIGHT)) fll 1459 arch/x86/events/intel/ds.c if ((sample_type & PERF_SAMPLE_WEIGHT) && !fll) fll 318 drivers/mfd/arizona-core.c unsigned int fll; fll 328 drivers/mfd/arizona-core.c ret = regmap_read(arizona->regmap, ARIZONA_FLL1_CONTROL_1, &state->fll); fll 366 drivers/mfd/arizona-core.c err = regmap_write(arizona->regmap, ARIZONA_FLL1_CONTROL_1, state->fll); fll 387 drivers/mfd/arizona-core.c ret = regmap_write(arizona->regmap, ARIZONA_FLL1_CONTROL_1, state->fll); fll 668 fs/locks.c struct file_lock_list_struct *fll = this_cpu_ptr(&file_lock_list); fll 672 fs/locks.c spin_lock(&fll->lock); fll 674 fs/locks.c hlist_add_head(&fl->fl_link, &fll->hlist); fll 675 fs/locks.c spin_unlock(&fll->lock); fll 681 fs/locks.c struct file_lock_list_struct *fll; fll 693 fs/locks.c fll = per_cpu_ptr(&file_lock_list, fl->fl_link_cpu); fll 694 fs/locks.c spin_lock(&fll->lock); fll 696 fs/locks.c spin_unlock(&fll->lock); fll 3010 fs/locks.c struct file_lock_list_struct *fll = per_cpu_ptr(&file_lock_list, i); fll 3012 fs/locks.c spin_lock_init(&fll->lock); fll 3013 fs/locks.c INIT_HLIST_HEAD(&fll->hlist); fll 2104 sound/soc/codecs/arizona.c static int arizona_validate_fll(struct arizona_fll *fll, fll 2110 sound/soc/codecs/arizona.c if (fll->fout && Fout != fll->fout) { fll 2111 sound/soc/codecs/arizona.c arizona_fll_err(fll, fll 2117 sound/soc/codecs/arizona.c arizona_fll_err(fll, fll 2123 sound/soc/codecs/arizona.c Fvco_min = ARIZONA_FLL_MIN_FVCO * fll->vco_mult; fll 2125 sound/soc/codecs/arizona.c arizona_fll_err(fll, "No FLL_OUTDIV for Fout=%uHz\n", fll 2149 sound/soc/codecs/arizona.c static int arizona_calc_fratio(struct arizona_fll *fll, fll 2172 sound/soc/codecs/arizona.c arizona_fll_err(fll, "Unable to find FRATIO for Fref=%uHz\n", fll 2177 sound/soc/codecs/arizona.c switch (fll->arizona->type) { fll 2183 sound/soc/codecs/arizona.c if (fll->arizona->rev < 3 || sync) fll 2197 sound/soc/codecs/arizona.c arizona_fll_dbg(fll, "pseudo: initial ratio=%u fref=%u refdiv=%u\n", fll 2208 sound/soc/codecs/arizona.c arizona_fll_dbg(fll, fll 2218 sound/soc/codecs/arizona.c (fll->vco_mult * ratio) < Fref) { fll 2219 sound/soc/codecs/arizona.c arizona_fll_dbg(fll, "pseudo: hit VCO corner\n"); fll 2224 sound/soc/codecs/arizona.c arizona_fll_dbg(fll, fll 2234 sound/soc/codecs/arizona.c arizona_fll_dbg(fll, fll 2245 sound/soc/codecs/arizona.c arizona_fll_dbg(fll, fll 2250 sound/soc/codecs/arizona.c arizona_fll_warn(fll, "Falling back to integer mode operation\n"); fll 2254 sound/soc/codecs/arizona.c static int arizona_calc_fll(struct arizona_fll *fll, fll 2261 sound/soc/codecs/arizona.c arizona_fll_dbg(fll, "Fref=%u Fout=%u\n", Fref, fll->fout); fll 2265 sound/soc/codecs/arizona.c while (fll->fout * div < ARIZONA_FLL_MIN_FVCO * fll->vco_mult) { fll 2270 sound/soc/codecs/arizona.c target = fll->fout * div / fll->vco_mult; fll 2273 sound/soc/codecs/arizona.c arizona_fll_dbg(fll, "Fvco=%dHz\n", target); fll 2276 sound/soc/codecs/arizona.c ratio = arizona_calc_fratio(fll, cfg, target, Fref, sync); fll 2287 sound/soc/codecs/arizona.c arizona_fll_dbg(fll, "GCD=%u\n", gcd_fll); fll 2313 sound/soc/codecs/arizona.c arizona_fll_err(fll, "Unable to find gain for Fref=%uHz\n", fll 2318 sound/soc/codecs/arizona.c arizona_fll_dbg(fll, "N=%d THETA=%d LAMBDA=%d\n", fll 2320 sound/soc/codecs/arizona.c arizona_fll_dbg(fll, "FRATIO=0x%x(%d) OUTDIV=%d REFCLK_DIV=0x%x(%d)\n", fll 2323 sound/soc/codecs/arizona.c arizona_fll_dbg(fll, "GAIN=0x%x(%d)\n", cfg->gain, 1 << cfg->gain); fll 2363 sound/soc/codecs/arizona.c static int arizona_is_enabled_fll(struct arizona_fll *fll, int base) fll 2365 sound/soc/codecs/arizona.c struct arizona *arizona = fll->arizona; fll 2371 sound/soc/codecs/arizona.c arizona_fll_err(fll, "Failed to read current state: %d\n", fll 2379 sound/soc/codecs/arizona.c static int arizona_set_fll_clks(struct arizona_fll *fll, int base, bool ena) fll 2381 sound/soc/codecs/arizona.c struct arizona *arizona = fll->arizona; fll 2388 sound/soc/codecs/arizona.c arizona_fll_err(fll, "Failed to read current source: %d\n", fll 2415 sound/soc/codecs/arizona.c static int arizona_enable_fll(struct arizona_fll *fll) fll 2417 sound/soc/codecs/arizona.c struct arizona *arizona = fll->arizona; fll 2419 sound/soc/codecs/arizona.c int already_enabled = arizona_is_enabled_fll(fll, fll->base); fll 2420 sound/soc/codecs/arizona.c int sync_enabled = arizona_is_enabled_fll(fll, fll->base + 0x10); fll 2432 sound/soc/codecs/arizona.c regmap_update_bits(fll->arizona->regmap, fll->base + 1, fll 2435 sound/soc/codecs/arizona.c regmap_update_bits_async(fll->arizona->regmap, fll->base + 0x9, fll 2438 sound/soc/codecs/arizona.c if (arizona_is_enabled_fll(fll, fll->base + 0x10) > 0) fll 2439 sound/soc/codecs/arizona.c arizona_set_fll_clks(fll, fll->base + 0x10, false); fll 2440 sound/soc/codecs/arizona.c arizona_set_fll_clks(fll, fll->base, false); fll 2447 sound/soc/codecs/arizona.c if (fll->ref_src >= 0 && fll->ref_freq && fll 2448 sound/soc/codecs/arizona.c fll->ref_src != fll->sync_src) { fll 2449 sound/soc/codecs/arizona.c arizona_calc_fll(fll, &cfg, fll->ref_freq, false); fll 2452 sound/soc/codecs/arizona.c if (fll->sync_src >= 0 && cfg.lambda) fll 2455 sound/soc/codecs/arizona.c arizona_apply_fll(arizona, fll->base, &cfg, fll->ref_src, fll 2457 sound/soc/codecs/arizona.c if (fll->sync_src >= 0) { fll 2458 sound/soc/codecs/arizona.c arizona_calc_fll(fll, &cfg, fll->sync_freq, true); fll 2460 sound/soc/codecs/arizona.c arizona_apply_fll(arizona, fll->base + 0x10, &cfg, fll 2461 sound/soc/codecs/arizona.c fll->sync_src, true); fll 2464 sound/soc/codecs/arizona.c } else if (fll->sync_src >= 0) { fll 2465 sound/soc/codecs/arizona.c arizona_calc_fll(fll, &cfg, fll->sync_freq, false); fll 2467 sound/soc/codecs/arizona.c arizona_apply_fll(arizona, fll->base, &cfg, fll 2468 sound/soc/codecs/arizona.c fll->sync_src, false); fll 2470 sound/soc/codecs/arizona.c regmap_update_bits_async(arizona->regmap, fll->base + 0x11, fll 2473 sound/soc/codecs/arizona.c arizona_fll_err(fll, "No clocks provided\n"); fll 2478 sound/soc/codecs/arizona.c arizona_fll_warn(fll, "Synchroniser changed on active FLL\n"); fll 2484 sound/soc/codecs/arizona.c if (use_sync && fll->sync_freq > 100000) fll 2485 sound/soc/codecs/arizona.c regmap_update_bits_async(arizona->regmap, fll->base + 0x17, fll 2488 sound/soc/codecs/arizona.c regmap_update_bits_async(arizona->regmap, fll->base + 0x17, fll 2496 sound/soc/codecs/arizona.c arizona_set_fll_clks(fll, fll->base + 0x10, true); fll 2497 sound/soc/codecs/arizona.c regmap_update_bits_async(arizona->regmap, fll->base + 0x11, fll 2501 sound/soc/codecs/arizona.c arizona_set_fll_clks(fll, fll->base, true); fll 2502 sound/soc/codecs/arizona.c regmap_update_bits_async(arizona->regmap, fll->base + 1, fll 2506 sound/soc/codecs/arizona.c regmap_update_bits_async(arizona->regmap, fll->base + 1, fll 2509 sound/soc/codecs/arizona.c arizona_fll_dbg(fll, "Waiting for FLL lock...\n"); fll 2520 sound/soc/codecs/arizona.c if (val & (ARIZONA_FLL1_CLOCK_OK_STS << (fll->id - 1))) fll 2524 sound/soc/codecs/arizona.c arizona_fll_warn(fll, "Timed out waiting for lock\n"); fll 2526 sound/soc/codecs/arizona.c arizona_fll_dbg(fll, "FLL locked (%d polls)\n", i); fll 2531 sound/soc/codecs/arizona.c static void arizona_disable_fll(struct arizona_fll *fll) fll 2533 sound/soc/codecs/arizona.c struct arizona *arizona = fll->arizona; fll 2536 sound/soc/codecs/arizona.c regmap_update_bits_async(arizona->regmap, fll->base + 1, fll 2538 sound/soc/codecs/arizona.c regmap_update_bits_check(arizona->regmap, fll->base + 1, fll 2540 sound/soc/codecs/arizona.c regmap_update_bits_check(arizona->regmap, fll->base + 0x11, fll 2542 sound/soc/codecs/arizona.c regmap_update_bits_async(arizona->regmap, fll->base + 1, fll 2546 sound/soc/codecs/arizona.c arizona_set_fll_clks(fll, fll->base + 0x10, false); fll 2549 sound/soc/codecs/arizona.c arizona_set_fll_clks(fll, fll->base, false); fll 2554 sound/soc/codecs/arizona.c int arizona_set_fll_refclk(struct arizona_fll *fll, int source, fll 2559 sound/soc/codecs/arizona.c if (fll->ref_src == source && fll->ref_freq == Fref) fll 2562 sound/soc/codecs/arizona.c if (fll->fout && Fref > 0) { fll 2563 sound/soc/codecs/arizona.c ret = arizona_validate_fll(fll, Fref, fll->fout); fll 2568 sound/soc/codecs/arizona.c fll->ref_src = source; fll 2569 sound/soc/codecs/arizona.c fll->ref_freq = Fref; fll 2571 sound/soc/codecs/arizona.c if (fll->fout && Fref > 0) fll 2572 sound/soc/codecs/arizona.c ret = arizona_enable_fll(fll); fll 2578 sound/soc/codecs/arizona.c int arizona_set_fll(struct arizona_fll *fll, int source, fll 2583 sound/soc/codecs/arizona.c if (fll->sync_src == source && fll 2584 sound/soc/codecs/arizona.c fll->sync_freq == Fref && fll->fout == Fout) fll 2588 sound/soc/codecs/arizona.c if (fll->ref_src >= 0) { fll 2589 sound/soc/codecs/arizona.c ret = arizona_validate_fll(fll, fll->ref_freq, Fout); fll 2594 sound/soc/codecs/arizona.c ret = arizona_validate_fll(fll, Fref, Fout); fll 2599 sound/soc/codecs/arizona.c fll->sync_src = source; fll 2600 sound/soc/codecs/arizona.c fll->sync_freq = Fref; fll 2601 sound/soc/codecs/arizona.c fll->fout = Fout; fll 2604 sound/soc/codecs/arizona.c ret = arizona_enable_fll(fll); fll 2606 sound/soc/codecs/arizona.c arizona_disable_fll(fll); fll 2613 sound/soc/codecs/arizona.c int ok_irq, struct arizona_fll *fll) fll 2617 sound/soc/codecs/arizona.c fll->id = id; fll 2618 sound/soc/codecs/arizona.c fll->base = base; fll 2619 sound/soc/codecs/arizona.c fll->arizona = arizona; fll 2620 sound/soc/codecs/arizona.c fll->sync_src = ARIZONA_FLL_SRC_NONE; fll 2627 sound/soc/codecs/arizona.c fll->ref_src = val & ARIZONA_CLK_32K_SRC_MASK; fll 2630 sound/soc/codecs/arizona.c fll->ref_src = ARIZONA_FLL_SRC_NONE; fll 2632 sound/soc/codecs/arizona.c fll->ref_freq = 32768; fll 2634 sound/soc/codecs/arizona.c snprintf(fll->lock_name, sizeof(fll->lock_name), "FLL%d lock", id); fll 2635 sound/soc/codecs/arizona.c snprintf(fll->clock_ok_name, sizeof(fll->clock_ok_name), fll 2638 sound/soc/codecs/arizona.c regmap_update_bits(arizona->regmap, fll->base + 1, fll 304 sound/soc/codecs/arizona.h int lock_irq, int ok_irq, struct arizona_fll *fll); fll 305 sound/soc/codecs/arizona.h int arizona_set_fll_refclk(struct arizona_fll *fll, int source, fll 307 sound/soc/codecs/arizona.h int arizona_set_fll(struct arizona_fll *fll, int source, fll 43 sound/soc/codecs/cs47l15.c struct madera_fll fll[2]; fll 1123 sound/soc/codecs/cs47l15.c return madera_set_fll_refclk(&cs47l15->fll[0], source, fref, fll 1126 sound/soc/codecs/cs47l15.c return madera_set_fll_ao_refclk(&cs47l15->fll[1], source, fref, fll 1129 sound/soc/codecs/cs47l15.c return madera_set_fll_syncclk(&cs47l15->fll[0], source, fref, fll 1415 sound/soc/codecs/cs47l15.c &cs47l15->fll[0]); fll 1417 sound/soc/codecs/cs47l15.c &cs47l15->fll[1]); fll 37 sound/soc/codecs/cs47l24.c struct arizona_fll fll[2]; fll 941 sound/soc/codecs/cs47l24.c return arizona_set_fll(&cs47l24->fll[0], source, Fref, Fout); fll 943 sound/soc/codecs/cs47l24.c return arizona_set_fll(&cs47l24->fll[1], source, Fref, Fout); fll 945 sound/soc/codecs/cs47l24.c return arizona_set_fll_refclk(&cs47l24->fll[0], source, Fref, fll 948 sound/soc/codecs/cs47l24.c return arizona_set_fll_refclk(&cs47l24->fll[1], source, Fref, fll 1253 sound/soc/codecs/cs47l24.c for (i = 0; i < ARRAY_SIZE(cs47l24->fll); i++) fll 1254 sound/soc/codecs/cs47l24.c cs47l24->fll[i].vco_mult = 3; fll 1258 sound/soc/codecs/cs47l24.c &cs47l24->fll[0]); fll 1261 sound/soc/codecs/cs47l24.c &cs47l24->fll[1]); fll 37 sound/soc/codecs/cs47l35.c struct madera_fll fll; fll 1343 sound/soc/codecs/cs47l35.c return madera_set_fll_refclk(&cs47l35->fll, source, fref, fll 1346 sound/soc/codecs/cs47l35.c return madera_set_fll_syncclk(&cs47l35->fll, source, fref, fll 1705 sound/soc/codecs/cs47l35.c madera_init_fll(madera, 1, MADERA_FLL1_CONTROL_1 - 1, &cs47l35->fll); fll 37 sound/soc/codecs/cs47l85.c struct madera_fll fll[3]; fll 2229 sound/soc/codecs/cs47l85.c return madera_set_fll_refclk(&cs47l85->fll[0], source, fref, fll 2232 sound/soc/codecs/cs47l85.c return madera_set_fll_refclk(&cs47l85->fll[1], source, fref, fll 2235 sound/soc/codecs/cs47l85.c return madera_set_fll_refclk(&cs47l85->fll[2], source, fref, fll 2238 sound/soc/codecs/cs47l85.c return madera_set_fll_syncclk(&cs47l85->fll[0], source, fref, fll 2241 sound/soc/codecs/cs47l85.c return madera_set_fll_syncclk(&cs47l85->fll[1], source, fref, fll 2244 sound/soc/codecs/cs47l85.c return madera_set_fll_syncclk(&cs47l85->fll[2], source, fref, fll 2654 sound/soc/codecs/cs47l85.c &cs47l85->fll[0]); fll 2656 sound/soc/codecs/cs47l85.c &cs47l85->fll[1]); fll 2658 sound/soc/codecs/cs47l85.c &cs47l85->fll[2]); fll 37 sound/soc/codecs/cs47l90.c struct madera_fll fll[3]; fll 2143 sound/soc/codecs/cs47l90.c return madera_set_fll_refclk(&cs47l90->fll[0], source, fref, fll 2146 sound/soc/codecs/cs47l90.c return madera_set_fll_refclk(&cs47l90->fll[1], source, fref, fll 2149 sound/soc/codecs/cs47l90.c return madera_set_fll_ao_refclk(&cs47l90->fll[2], source, fref, fll 2152 sound/soc/codecs/cs47l90.c return madera_set_fll_syncclk(&cs47l90->fll[0], source, fref, fll 2155 sound/soc/codecs/cs47l90.c return madera_set_fll_syncclk(&cs47l90->fll[1], source, fref, fll 2569 sound/soc/codecs/cs47l90.c &cs47l90->fll[0]); fll 2571 sound/soc/codecs/cs47l90.c &cs47l90->fll[1]); fll 2573 sound/soc/codecs/cs47l90.c &cs47l90->fll[2]); fll 37 sound/soc/codecs/cs47l92.c struct madera_fll fll[2]; fll 1625 sound/soc/codecs/cs47l92.c return madera_fllhj_set_refclk(&cs47l92->fll[0], source, fref, fll 1628 sound/soc/codecs/cs47l92.c return madera_fllhj_set_refclk(&cs47l92->fll[1], source, fref, fll 1968 sound/soc/codecs/cs47l92.c &cs47l92->fll[0]); fll 1970 sound/soc/codecs/cs47l92.c &cs47l92->fll[1]); fll 3444 sound/soc/codecs/madera.c static int madera_find_fratio(struct madera_fll *fll, unsigned int fref, fll 3447 sound/soc/codecs/madera.c switch (fll->madera->type) { fll 3449 sound/soc/codecs/madera.c switch (fll->madera->rev) { fll 3458 sound/soc/codecs/madera.c fll->fout, fll 3470 sound/soc/codecs/madera.c return madera_find_main_fratio(fref, fll->fout, fratio); fll 3474 sound/soc/codecs/madera.c static int madera_calc_fratio(struct madera_fll *fll, fll 3494 sound/soc/codecs/madera.c init_ratio = madera_find_fratio(fll, fref, sync, &cfg->fratio); fll 3496 sound/soc/codecs/madera.c madera_fll_err(fll, "Unable to find FRATIO for fref=%uHz\n", fll 3504 sound/soc/codecs/madera.c switch (fll->madera->type) { fll 3506 sound/soc/codecs/madera.c switch (fll->madera->rev) { fll 3536 sound/soc/codecs/madera.c if (fll->fout % (ratio * fref)) { fll 3552 sound/soc/codecs/madera.c if (fll->fout % (ratio * fref)) { fll 3562 sound/soc/codecs/madera.c init_ratio = madera_find_fratio(fll, fref, sync, NULL); fll 3565 sound/soc/codecs/madera.c madera_fll_warn(fll, "Falling back to integer mode operation\n"); fll 3570 sound/soc/codecs/madera.c static int madera_find_fll_gain(struct madera_fll *fll, fll 3586 sound/soc/codecs/madera.c madera_fll_err(fll, "Unable to find gain for fref=%uHz\n", fref); fll 3591 sound/soc/codecs/madera.c static int madera_calc_fll(struct madera_fll *fll, fll 3600 sound/soc/codecs/madera.c madera_fll_dbg(fll, "fref=%u Fout=%u fvco=%u\n", fll 3601 sound/soc/codecs/madera.c fref, fll->fout, fll->fout * MADERA_FLL_VCO_MULT); fll 3604 sound/soc/codecs/madera.c ratio = madera_calc_fratio(fll, cfg, fref, sync); fll 3611 sound/soc/codecs/madera.c cfg->n = fll->fout / (ratio * fref); fll 3613 sound/soc/codecs/madera.c if (fll->fout % (ratio * fref)) { fll 3614 sound/soc/codecs/madera.c gcd_fll = gcd(fll->fout, ratio * fref); fll 3615 sound/soc/codecs/madera.c madera_fll_dbg(fll, "GCD=%u\n", gcd_fll); fll 3617 sound/soc/codecs/madera.c cfg->theta = (fll->fout - (cfg->n * ratio * fref)) fll 3635 sound/soc/codecs/madera.c switch (fll->madera->type) { fll 3637 sound/soc/codecs/madera.c switch (fll->madera->rev) { fll 3671 sound/soc/codecs/madera.c ret = madera_find_fll_gain(fll, cfg, fref, gains, n_gains); fll 3675 sound/soc/codecs/madera.c madera_fll_dbg(fll, "N=%d THETA=%d LAMBDA=%d\n", fll 3677 sound/soc/codecs/madera.c madera_fll_dbg(fll, "FRATIO=0x%x(%d) REFCLK_DIV=0x%x(%d)\n", fll 3679 sound/soc/codecs/madera.c madera_fll_dbg(fll, "GAIN=0x%x(%d)\n", cfg->gain, 1 << cfg->gain); fll 3741 sound/soc/codecs/madera.c static int madera_is_enabled_fll(struct madera_fll *fll, int base) fll 3743 sound/soc/codecs/madera.c struct madera *madera = fll->madera; fll 3750 sound/soc/codecs/madera.c madera_fll_err(fll, "Failed to read current state: %d\n", ret); fll 3757 sound/soc/codecs/madera.c static int madera_wait_for_fll(struct madera_fll *fll, bool requested) fll 3759 sound/soc/codecs/madera.c struct madera *madera = fll->madera; fll 3764 sound/soc/codecs/madera.c madera_fll_dbg(fll, "Waiting for FLL...\n"); fll 3768 sound/soc/codecs/madera.c status = val & (MADERA_FLL1_LOCK_STS1 << (fll->id - 1)); fll 3785 sound/soc/codecs/madera.c madera_fll_warn(fll, "Timed out waiting for lock\n"); fll 3790 sound/soc/codecs/madera.c static bool madera_set_fll_phase_integrator(struct madera_fll *fll, fll 3803 sound/soc/codecs/madera.c regmap_update_bits_check(fll->madera->regmap, fll 3804 sound/soc/codecs/madera.c fll->base + MADERA_FLL_EFS_2_OFFS, fll 3812 sound/soc/codecs/madera.c static void madera_disable_fll(struct madera_fll *fll) fll 3814 sound/soc/codecs/madera.c struct madera *madera = fll->madera; fll 3820 sound/soc/codecs/madera.c sync_base = fll->base + CS47L35_FLL_SYNCHRONISER_OFFS; fll 3823 sound/soc/codecs/madera.c sync_base = fll->base + MADERA_FLL_SYNCHRONISER_OFFS; fll 3827 sound/soc/codecs/madera.c madera_fll_dbg(fll, "Disabling FLL\n"); fll 3830 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_1_OFFS, fll 3833 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_1_OFFS, fll 3839 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_1_OFFS, fll 3842 sound/soc/codecs/madera.c madera_wait_for_fll(fll, false); fll 3848 sound/soc/codecs/madera.c static int madera_enable_fll(struct madera_fll *fll) fll 3850 sound/soc/codecs/madera.c struct madera *madera = fll->madera; fll 3852 sound/soc/codecs/madera.c int already_enabled = madera_is_enabled_fll(fll, fll->base); fll 3862 sound/soc/codecs/madera.c if (fll->ref_src < 0 || fll->ref_freq == 0) { fll 3863 sound/soc/codecs/madera.c madera_fll_err(fll, "No REFCLK\n"); fll 3868 sound/soc/codecs/madera.c madera_fll_dbg(fll, "Enabling FLL, initially %s\n", fll 3871 sound/soc/codecs/madera.c if (fll->fout < MADERA_FLL_MIN_FOUT || fll 3872 sound/soc/codecs/madera.c fll->fout > MADERA_FLL_MAX_FOUT) { fll 3873 sound/soc/codecs/madera.c madera_fll_err(fll, "invalid fout %uHz\n", fll->fout); fll 3880 sound/soc/codecs/madera.c sync_base = fll->base + CS47L35_FLL_SYNCHRONISER_OFFS; fll 3883 sound/soc/codecs/madera.c sync_base = fll->base + MADERA_FLL_SYNCHRONISER_OFFS; fll 3887 sound/soc/codecs/madera.c sync_enabled = madera_is_enabled_fll(fll, sync_base); fll 3893 sound/soc/codecs/madera.c regmap_update_bits(fll->madera->regmap, fll 3894 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_1_OFFS, fll 3898 sound/soc/codecs/madera.c regmap_update_bits(fll->madera->regmap, fll 3899 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_7_OFFS, fll 3904 sound/soc/codecs/madera.c if (fll->sync_src >= 0) { fll 3905 sound/soc/codecs/madera.c ret = madera_calc_fll(fll, &cfg, fll->sync_freq, true); fll 3910 sound/soc/codecs/madera.c &cfg, fll->sync_src, fll 3916 sound/soc/codecs/madera.c madera_fll_warn(fll, "Synchroniser changed on active FLL\n"); fll 3919 sound/soc/codecs/madera.c ret = madera_calc_fll(fll, &cfg, fll->ref_freq, false); fll 3927 sound/soc/codecs/madera.c switch (fll->madera->type) { fll 3929 sound/soc/codecs/madera.c switch (fll->madera->rev) { fll 3935 sound/soc/codecs/madera.c madera_set_fll_phase_integrator(fll, &cfg, fll 3949 sound/soc/codecs/madera.c fll_change |= madera_set_fll_phase_integrator(fll, &cfg, fll 3958 sound/soc/codecs/madera.c fll_change |= madera_write_fll(madera, fll->base, fll 3959 sound/soc/codecs/madera.c &cfg, fll->ref_src, fll 3966 sound/soc/codecs/madera.c if (have_sync && fll->sync_freq > 100000) fll 3985 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_1_OFFS, fll 3990 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_1_OFFS, fll 3994 sound/soc/codecs/madera.c madera_wait_for_fll(fll, true); fll 4000 sound/soc/codecs/madera.c madera_disable_fll(fll); fll 4005 sound/soc/codecs/madera.c static int madera_apply_fll(struct madera_fll *fll) fll 4007 sound/soc/codecs/madera.c if (fll->fout) { fll 4008 sound/soc/codecs/madera.c return madera_enable_fll(fll); fll 4010 sound/soc/codecs/madera.c madera_disable_fll(fll); fll 4015 sound/soc/codecs/madera.c int madera_set_fll_syncclk(struct madera_fll *fll, int source, fll 4024 sound/soc/codecs/madera.c if (fll->sync_src == source && fll->sync_freq == fref) fll 4027 sound/soc/codecs/madera.c fll->sync_src = source; fll 4028 sound/soc/codecs/madera.c fll->sync_freq = fref; fll 4030 sound/soc/codecs/madera.c return madera_apply_fll(fll); fll 4034 sound/soc/codecs/madera.c int madera_set_fll_refclk(struct madera_fll *fll, int source, fll 4039 sound/soc/codecs/madera.c if (fll->ref_src == source && fll 4040 sound/soc/codecs/madera.c fll->ref_freq == fref && fll->fout == fout) fll 4047 sound/soc/codecs/madera.c if (fout && fout != fll->fout) { fll 4048 sound/soc/codecs/madera.c ret = madera_is_enabled_fll(fll, fll->base); fll 4053 sound/soc/codecs/madera.c madera_fll_err(fll, "Can't change Fout on active FLL\n"); fll 4058 sound/soc/codecs/madera.c fll->ref_src = source; fll 4059 sound/soc/codecs/madera.c fll->ref_freq = fref; fll 4060 sound/soc/codecs/madera.c fll->fout = fout; fll 4062 sound/soc/codecs/madera.c return madera_apply_fll(fll); fll 4067 sound/soc/codecs/madera.c struct madera_fll *fll) fll 4069 sound/soc/codecs/madera.c fll->id = id; fll 4070 sound/soc/codecs/madera.c fll->base = base; fll 4071 sound/soc/codecs/madera.c fll->madera = madera; fll 4072 sound/soc/codecs/madera.c fll->ref_src = MADERA_FLL_SRC_NONE; fll 4073 sound/soc/codecs/madera.c fll->sync_src = MADERA_FLL_SRC_NONE; fll 4076 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_1_OFFS, fll 4132 sound/soc/codecs/madera.c static int madera_enable_fll_ao(struct madera_fll *fll, fll 4136 sound/soc/codecs/madera.c struct madera *madera = fll->madera; fll 4137 sound/soc/codecs/madera.c int already_enabled = madera_is_enabled_fll(fll, fll->base); fll 4147 sound/soc/codecs/madera.c madera_fll_dbg(fll, "Enabling FLL_AO, initially %s\n", fll 4151 sound/soc/codecs/madera.c regmap_update_bits(fll->madera->regmap, fll 4152 sound/soc/codecs/madera.c fll->base + MADERA_FLLAO_CONTROL_1_OFFS, fll 4161 sound/soc/codecs/madera.c val |= (fll->ref_src << MADERA_FLL_AO_REFCLK_SRC_SHIFT) fll 4169 sound/soc/codecs/madera.c fll->base + MADERA_FLLAO_CONTROL_1_OFFS, fll 4174 sound/soc/codecs/madera.c fll->base + MADERA_FLLAO_CONTROL_1_OFFS, fll 4178 sound/soc/codecs/madera.c madera_wait_for_fll(fll, true); fll 4183 sound/soc/codecs/madera.c static int madera_disable_fll_ao(struct madera_fll *fll) fll 4185 sound/soc/codecs/madera.c struct madera *madera = fll->madera; fll 4188 sound/soc/codecs/madera.c madera_fll_dbg(fll, "Disabling FLL_AO\n"); fll 4191 sound/soc/codecs/madera.c fll->base + MADERA_FLLAO_CONTROL_1_OFFS, fll 4194 sound/soc/codecs/madera.c fll->base + MADERA_FLLAO_CONTROL_1_OFFS, fll 4197 sound/soc/codecs/madera.c madera_wait_for_fll(fll, false); fll 4208 sound/soc/codecs/madera.c fll->base + MADERA_FLLAO_CONTROL_2_OFFS, fll 4217 sound/soc/codecs/madera.c int madera_set_fll_ao_refclk(struct madera_fll *fll, int source, fll 4225 sound/soc/codecs/madera.c if (fll->ref_src == source && fll 4226 sound/soc/codecs/madera.c fll->ref_freq == fin && fll->fout == fout) fll 4229 sound/soc/codecs/madera.c madera_fll_dbg(fll, "Change FLL_AO refclk to fin=%u fout=%u source=%d\n", fll 4232 sound/soc/codecs/madera.c if (fout && (fll->ref_freq != fin || fll->fout != fout)) { fll 4240 sound/soc/codecs/madera.c madera_fll_err(fll, fll 4249 sound/soc/codecs/madera.c fll->ref_src = source; fll 4250 sound/soc/codecs/madera.c fll->ref_freq = fin; fll 4251 sound/soc/codecs/madera.c fll->fout = fout; fll 4254 sound/soc/codecs/madera.c ret = madera_enable_fll_ao(fll, patch, patch_size); fll 4256 sound/soc/codecs/madera.c madera_disable_fll_ao(fll); fll 4262 sound/soc/codecs/madera.c static int madera_fllhj_disable(struct madera_fll *fll) fll 4264 sound/soc/codecs/madera.c struct madera *madera = fll->madera; fll 4267 sound/soc/codecs/madera.c madera_fll_dbg(fll, "Disabling FLL\n"); fll 4276 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_11_OFFS, fll 4279 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_1_OFFS, fll 4282 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_1_OFFS, fll 4285 sound/soc/codecs/madera.c madera_wait_for_fll(fll, false); fll 4295 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_2_OFFS, fll 4304 sound/soc/codecs/madera.c static int madera_fllhj_apply(struct madera_fll *fll, int fin) fll 4306 sound/soc/codecs/madera.c struct madera *madera = fll->madera; fll 4312 sound/soc/codecs/madera.c madera_fll_dbg(fll, "fin=%d, fout=%d\n", fin, fll->fout); fll 4324 sound/soc/codecs/madera.c fout = fll->fout; fll 4347 sound/soc/codecs/madera.c fout = fll->fout * 6; fll 4363 sound/soc/codecs/madera.c madera_fll_dbg(fll, "refdiv=%d, fref=%d, frac:%d\n", fll 4369 sound/soc/codecs/madera.c madera_fll_err(fll, "FBDIV (%d) must be >= 1\n", fbdiv); fll 4376 sound/soc/codecs/madera.c madera_fll_err(fll, "FBDIV (%u) >= 1024\n", fbdiv); fll 4381 sound/soc/codecs/madera.c madera_fll_dbg(fll, "lockdet=%d, hp=0x%x, fbdiv:%d\n", fll 4391 sound/soc/codecs/madera.c madera_fll_dbg(fll, "fll_n=%d, gcd=%d, theta=%d, lambda=%d\n", fll 4396 sound/soc/codecs/madera.c madera_fll_err(fll, "N not in valid %s mode range %d-%d: %d\n", fll 4402 sound/soc/codecs/madera.c madera_fll_err(fll, "Invalid fbdiv for %s mode (%u)\n", fll 4409 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_2_OFFS, fll 4412 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_3_OFFS, fll 4416 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_4_OFFS, fll 4420 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_5_OFFS, fll 4424 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_6_OFFS, fll 4428 sound/soc/codecs/madera.c fll->base + MADERA_FLL_GAIN_OFFS, fll 4434 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_10_OFFS, fll 4438 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_11_OFFS, fll 4442 sound/soc/codecs/madera.c fll->base + MADERA_FLL1_DIGITAL_TEST_1_OFFS, fll 4450 sound/soc/codecs/madera.c static int madera_fllhj_enable(struct madera_fll *fll) fll 4452 sound/soc/codecs/madera.c struct madera *madera = fll->madera; fll 4453 sound/soc/codecs/madera.c int already_enabled = madera_is_enabled_fll(fll, fll->base); fll 4462 sound/soc/codecs/madera.c madera_fll_dbg(fll, "Enabling FLL, initially %s\n", fll 4466 sound/soc/codecs/madera.c regmap_update_bits(fll->madera->regmap, fll 4467 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_1_OFFS, fll 4472 sound/soc/codecs/madera.c ret = madera_fllhj_apply(fll, fll->ref_freq); fll 4474 sound/soc/codecs/madera.c madera_fll_err(fll, "Failed to set FLL: %d\n", ret); fll 4478 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_1_OFFS, fll 4480 sound/soc/codecs/madera.c fll->ref_src << CS47L92_FLL1_REFCLK_SRC_SHIFT); fll 4483 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_1_OFFS, fll 4489 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_11_OFFS, fll 4494 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_2_OFFS, fll 4500 sound/soc/codecs/madera.c fll->base + MADERA_FLL_CONTROL_1_OFFS, fll 4505 sound/soc/codecs/madera.c madera_wait_for_fll(fll, true); fll 4510 sound/soc/codecs/madera.c static int madera_fllhj_validate(struct madera_fll *fll, fll 4515 sound/soc/codecs/madera.c madera_fll_err(fll, "fllout set without valid input clk\n"); fll 4519 sound/soc/codecs/madera.c if (fll->fout && fout != fll->fout) { fll 4520 sound/soc/codecs/madera.c madera_fll_err(fll, "Can't change output on active FLL\n"); fll 4525 sound/soc/codecs/madera.c madera_fll_err(fll, "Can't scale %dMHz to <=13MHz\n", ref_in); fll 4532 sound/soc/codecs/madera.c int madera_fllhj_set_refclk(struct madera_fll *fll, int source, fll 4544 sound/soc/codecs/madera.c if (fll->ref_src == source && fll->ref_freq == fin && fll 4545 sound/soc/codecs/madera.c fll->fout == fout) fll 4548 sound/soc/codecs/madera.c if (fin && fout && madera_fllhj_validate(fll, fin, fout)) fll 4551 sound/soc/codecs/madera.c fll->ref_src = source; fll 4552 sound/soc/codecs/madera.c fll->ref_freq = fin; fll 4553 sound/soc/codecs/madera.c fll->fout = fout; fll 4556 sound/soc/codecs/madera.c ret = madera_fllhj_enable(fll); fll 4558 sound/soc/codecs/madera.c madera_fllhj_disable(fll); fll 407 sound/soc/codecs/madera.h struct madera_fll *fll); fll 408 sound/soc/codecs/madera.h int madera_set_fll_refclk(struct madera_fll *fll, int source, fll 410 sound/soc/codecs/madera.h int madera_set_fll_syncclk(struct madera_fll *fll, int source, fll 412 sound/soc/codecs/madera.h int madera_set_fll_ao_refclk(struct madera_fll *fll, int source, fll 414 sound/soc/codecs/madera.h int madera_fllhj_set_refclk(struct madera_fll *fll, int source, fll 76 sound/soc/codecs/wm5100.c struct wm5100_fll fll[2]; fll 1760 sound/soc/codecs/wm5100.c struct wm5100_fll *fll; fll 1766 sound/soc/codecs/wm5100.c fll = &wm5100->fll[0]; fll 1771 sound/soc/codecs/wm5100.c fll = &wm5100->fll[1]; fll 1782 sound/soc/codecs/wm5100.c if (fll->fout) fll 1784 sound/soc/codecs/wm5100.c fll->fout = 0; fll 1826 sound/soc/codecs/wm5100.c try_wait_for_completion(&fll->lock); fll 1843 sound/soc/codecs/wm5100.c time_left = wait_for_completion_timeout(&fll->lock, fll 1868 sound/soc/codecs/wm5100.c fll->src = source; fll 1869 sound/soc/codecs/wm5100.c fll->fref = Fref; fll 1870 sound/soc/codecs/wm5100.c fll->fout = Fout; fll 2184 sound/soc/codecs/wm5100.c complete(&wm5100->fll[0].lock); fll 2188 sound/soc/codecs/wm5100.c complete(&wm5100->fll[1].lock); fll 2437 sound/soc/codecs/wm5100.c for (i = 0; i < ARRAY_SIZE(wm5100->fll); i++) fll 2438 sound/soc/codecs/wm5100.c init_completion(&wm5100->fll[i].lock); fll 38 sound/soc/codecs/wm5102.c struct arizona_fll fll[2]; fll 1746 sound/soc/codecs/wm5102.c return arizona_set_fll(&wm5102->fll[0], source, Fref, Fout); fll 1748 sound/soc/codecs/wm5102.c return arizona_set_fll(&wm5102->fll[1], source, Fref, Fout); fll 1750 sound/soc/codecs/wm5102.c return arizona_set_fll_refclk(&wm5102->fll[0], source, Fref, fll 1753 sound/soc/codecs/wm5102.c return arizona_set_fll_refclk(&wm5102->fll[1], source, Fref, fll 2063 sound/soc/codecs/wm5102.c for (i = 0; i < ARRAY_SIZE(wm5102->fll); i++) fll 2064 sound/soc/codecs/wm5102.c wm5102->fll[i].vco_mult = 1; fll 2068 sound/soc/codecs/wm5102.c &wm5102->fll[0]); fll 2071 sound/soc/codecs/wm5102.c &wm5102->fll[1]); fll 39 sound/soc/codecs/wm5110.c struct arizona_fll fll[2]; fll 2053 sound/soc/codecs/wm5110.c return arizona_set_fll(&wm5110->fll[0], source, Fref, Fout); fll 2055 sound/soc/codecs/wm5110.c return arizona_set_fll(&wm5110->fll[1], source, Fref, Fout); fll 2057 sound/soc/codecs/wm5110.c return arizona_set_fll_refclk(&wm5110->fll[0], source, Fref, fll 2060 sound/soc/codecs/wm5110.c return arizona_set_fll_refclk(&wm5110->fll[1], source, Fref, fll 2427 sound/soc/codecs/wm5110.c for (i = 0; i < ARRAY_SIZE(wm5110->fll); i++) fll 2428 sound/soc/codecs/wm5110.c wm5110->fll[i].vco_mult = 3; fll 2432 sound/soc/codecs/wm5110.c &wm5110->fll[0]); fll 2435 sound/soc/codecs/wm5110.c &wm5110->fll[1]); fll 180 sound/soc/codecs/wm8994.c rate = wm8994->fll[0].out; fll 185 sound/soc/codecs/wm8994.c rate = wm8994->fll[1].out; fll 2051 sound/soc/codecs/wm8994.c static int wm8994_get_fll_config(struct wm8994 *control, struct fll_div *fll, fll 2060 sound/soc/codecs/wm8994.c fll->clk_ref_div = 0; fll 2062 sound/soc/codecs/wm8994.c fll->clk_ref_div++; fll 2065 sound/soc/codecs/wm8994.c if (fll->clk_ref_div > 3) fll 2068 sound/soc/codecs/wm8994.c pr_debug("CLK_REF_DIV=%d, Fref=%dHz\n", fll->clk_ref_div, freq_in); fll 2071 sound/soc/codecs/wm8994.c fll->outdiv = 3; fll 2072 sound/soc/codecs/wm8994.c while (freq_out * (fll->outdiv + 1) < 90000000) { fll 2073 sound/soc/codecs/wm8994.c fll->outdiv++; fll 2074 sound/soc/codecs/wm8994.c if (fll->outdiv > 63) fll 2077 sound/soc/codecs/wm8994.c freq_out *= fll->outdiv + 1; fll 2078 sound/soc/codecs/wm8994.c pr_debug("OUTDIV=%d, Fvco=%dHz\n", fll->outdiv, freq_out); fll 2081 sound/soc/codecs/wm8994.c fll->fll_fratio = 0; fll 2083 sound/soc/codecs/wm8994.c fll->fll_fratio = 1; fll 2086 sound/soc/codecs/wm8994.c fll->fll_fratio = 2; fll 2089 sound/soc/codecs/wm8994.c fll->fll_fratio = 3; fll 2092 sound/soc/codecs/wm8994.c fll->fll_fratio = 4; fll 2095 sound/soc/codecs/wm8994.c pr_debug("FLL_FRATIO=%d, Fref=%dHz\n", fll->fll_fratio, freq_in); fll 2100 sound/soc/codecs/wm8994.c fll->n = Ndiv; fll 2117 sound/soc/codecs/wm8994.c fll->k = K / 10; fll 2118 sound/soc/codecs/wm8994.c fll->lambda = 0; fll 2120 sound/soc/codecs/wm8994.c pr_debug("N=%x K=%x\n", fll->n, fll->k); fll 2126 sound/soc/codecs/wm8994.c fll->k = (freq_out - (freq_in * fll->n)) / gcd_fll; fll 2127 sound/soc/codecs/wm8994.c fll->lambda = freq_in / gcd_fll; fll 2140 sound/soc/codecs/wm8994.c struct fll_div fll; fll 2168 sound/soc/codecs/wm8994.c src = wm8994->fll[id].src; fll 2184 sound/soc/codecs/wm8994.c if (wm8994->fll[id].src == src && fll 2185 sound/soc/codecs/wm8994.c wm8994->fll[id].in == freq_in && wm8994->fll[id].out == freq_out) fll 2193 sound/soc/codecs/wm8994.c ret = wm8994_get_fll_config(control, &fll, freq_in, freq_out); fll 2195 sound/soc/codecs/wm8994.c ret = wm8994_get_fll_config(control, &fll, wm8994->fll[id].in, fll 2196 sound/soc/codecs/wm8994.c wm8994->fll[id].out); fll 2227 sound/soc/codecs/wm8994.c reg = (fll.outdiv << WM8994_FLL1_OUTDIV_SHIFT) | fll 2228 sound/soc/codecs/wm8994.c (fll.fll_fratio << WM8994_FLL1_FRATIO_SHIFT); fll 2234 sound/soc/codecs/wm8994.c WM8994_FLL1_K_MASK, fll.k); fll 2238 sound/soc/codecs/wm8994.c fll.n << WM8994_FLL1_N_SHIFT); fll 2240 sound/soc/codecs/wm8994.c if (fll.lambda) { fll 2243 sound/soc/codecs/wm8994.c fll.lambda); fll 2257 sound/soc/codecs/wm8994.c (fll.clk_ref_div << WM8994_FLL1_REFCLK_DIV_SHIFT) | fll 2284 sound/soc/codecs/wm8994.c if (fll.k) fll 2321 sound/soc/codecs/wm8994.c wm8994->fll[id].in = freq_in; fll 2322 sound/soc/codecs/wm8994.c wm8994->fll[id].out = freq_out; fll 2323 sound/soc/codecs/wm8994.c wm8994->fll[id].src = src; fll 3162 sound/soc/codecs/wm8994.c for (i = 0; i < ARRAY_SIZE(wm8994->fll); i++) { fll 3163 sound/soc/codecs/wm8994.c memcpy(&wm8994->fll_suspend[i], &wm8994->fll[i], fll 3181 sound/soc/codecs/wm8994.c for (i = 0; i < ARRAY_SIZE(wm8994->fll); i++) { fll 82 sound/soc/codecs/wm8994.h struct wm8994_fll_config fll[2], fll_suspend[2]; fll 382 sound/soc/codecs/wm8995.c struct fll_config fll[2], fll_suspend[2]; fll 693 sound/soc/codecs/wm8995.c rate = wm8995->fll[0].out; fll 697 sound/soc/codecs/wm8995.c rate = wm8995->fll[1].out; fll 1723 sound/soc/codecs/wm8995.c static int wm8995_get_fll_config(struct fll_div *fll, fll 1732 sound/soc/codecs/wm8995.c fll->clk_ref_div = 0; fll 1734 sound/soc/codecs/wm8995.c fll->clk_ref_div++; fll 1737 sound/soc/codecs/wm8995.c if (fll->clk_ref_div > 3) fll 1740 sound/soc/codecs/wm8995.c pr_debug("CLK_REF_DIV=%d, Fref=%dHz\n", fll->clk_ref_div, freq_in); fll 1743 sound/soc/codecs/wm8995.c fll->outdiv = 3; fll 1744 sound/soc/codecs/wm8995.c while (freq_out * (fll->outdiv + 1) < 90000000) { fll 1745 sound/soc/codecs/wm8995.c fll->outdiv++; fll 1746 sound/soc/codecs/wm8995.c if (fll->outdiv > 63) fll 1749 sound/soc/codecs/wm8995.c freq_out *= fll->outdiv + 1; fll 1750 sound/soc/codecs/wm8995.c pr_debug("OUTDIV=%d, Fvco=%dHz\n", fll->outdiv, freq_out); fll 1753 sound/soc/codecs/wm8995.c fll->fll_fratio = 0; fll 1755 sound/soc/codecs/wm8995.c fll->fll_fratio = 1; fll 1758 sound/soc/codecs/wm8995.c fll->fll_fratio = 2; fll 1761 sound/soc/codecs/wm8995.c fll->fll_fratio = 3; fll 1764 sound/soc/codecs/wm8995.c fll->fll_fratio = 4; fll 1767 sound/soc/codecs/wm8995.c pr_debug("FLL_FRATIO=%d, Fref=%dHz\n", fll->fll_fratio, freq_in); fll 1772 sound/soc/codecs/wm8995.c fll->n = Ndiv; fll 1787 sound/soc/codecs/wm8995.c fll->k = K / 10; fll 1789 sound/soc/codecs/wm8995.c pr_debug("N=%x K=%x\n", fll->n, fll->k); fll 1801 sound/soc/codecs/wm8995.c struct fll_div fll; fll 1842 sound/soc/codecs/wm8995.c if (wm8995->fll[id].src == src && fll 1843 sound/soc/codecs/wm8995.c wm8995->fll[id].in == freq_in && wm8995->fll[id].out == freq_out) fll 1851 sound/soc/codecs/wm8995.c ret = wm8995_get_fll_config(&fll, freq_in, freq_out); fll 1853 sound/soc/codecs/wm8995.c ret = wm8995_get_fll_config(&fll, wm8995->fll[id].in, fll 1854 sound/soc/codecs/wm8995.c wm8995->fll[id].out); fll 1868 sound/soc/codecs/wm8995.c reg = (fll.outdiv << WM8995_FLL1_OUTDIV_SHIFT) | fll 1869 sound/soc/codecs/wm8995.c (fll.fll_fratio << WM8995_FLL1_FRATIO_SHIFT); fll 1874 sound/soc/codecs/wm8995.c snd_soc_component_write(component, WM8995_FLL1_CONTROL_3 + reg_offset, fll.k); fll 1878 sound/soc/codecs/wm8995.c fll.n << WM8995_FLL1_N_SHIFT); fll 1883 sound/soc/codecs/wm8995.c (fll.clk_ref_div << WM8995_FLL1_REFCLK_DIV_SHIFT) | fll 1890 sound/soc/codecs/wm8995.c wm8995->fll[id].in = freq_in; fll 1891 sound/soc/codecs/wm8995.c wm8995->fll[id].out = freq_out; fll 1892 sound/soc/codecs/wm8995.c wm8995->fll[id].src = src; fll 34 sound/soc/codecs/wm8997.c struct arizona_fll fll[2]; fll 933 sound/soc/codecs/wm8997.c return arizona_set_fll(&wm8997->fll[0], source, Fref, Fout); fll 935 sound/soc/codecs/wm8997.c return arizona_set_fll(&wm8997->fll[1], source, Fref, Fout); fll 937 sound/soc/codecs/wm8997.c return arizona_set_fll_refclk(&wm8997->fll[0], source, Fref, fll 940 sound/soc/codecs/wm8997.c return arizona_set_fll_refclk(&wm8997->fll[1], source, Fref, fll 1135 sound/soc/codecs/wm8997.c for (i = 0; i < ARRAY_SIZE(wm8997->fll); i++) fll 1136 sound/soc/codecs/wm8997.c wm8997->fll[i].vco_mult = 1; fll 1140 sound/soc/codecs/wm8997.c &wm8997->fll[0]); fll 1143 sound/soc/codecs/wm8997.c &wm8997->fll[1]); fll 34 sound/soc/codecs/wm8998.c struct arizona_fll fll[2]; fll 1258 sound/soc/codecs/wm8998.c return arizona_set_fll(&wm8998->fll[0], source, Fref, Fout); fll 1260 sound/soc/codecs/wm8998.c return arizona_set_fll(&wm8998->fll[1], source, Fref, Fout); fll 1262 sound/soc/codecs/wm8998.c return arizona_set_fll_refclk(&wm8998->fll[0], source, Fref, fll 1265 sound/soc/codecs/wm8998.c return arizona_set_fll_refclk(&wm8998->fll[1], source, Fref, fll 1353 sound/soc/codecs/wm8998.c for (i = 0; i < ARRAY_SIZE(wm8998->fll); i++) fll 1354 sound/soc/codecs/wm8998.c wm8998->fll[i].vco_mult = 1; fll 1358 sound/soc/codecs/wm8998.c &wm8998->fll[0]); fll 1361 sound/soc/codecs/wm8998.c &wm8998->fll[1]); fll 643 sound/soc/codecs/wm9081.c int fll = 0; fll 700 sound/soc/codecs/wm9081.c fll = 1; fll 718 sound/soc/codecs/wm9081.c if (fll)