Searched refs:frac (Results 1 – 12 of 12) sorted by relevance
/drivers/clk/spear/ |
D | clk-frac-synth.c | 47 struct clk_frac *frac = to_clk_frac(hw); in frac_calc_rate() local 48 struct frac_rate_tbl *rtbl = frac->rtbl; in frac_calc_rate() 61 struct clk_frac *frac = to_clk_frac(hw); in clk_frac_round_rate() local 65 frac->rtbl_cnt, &unused); in clk_frac_round_rate() 71 struct clk_frac *frac = to_clk_frac(hw); in clk_frac_recalc_rate() local 75 if (frac->lock) in clk_frac_recalc_rate() 76 spin_lock_irqsave(frac->lock, flags); in clk_frac_recalc_rate() 78 val = readl_relaxed(frac->reg); in clk_frac_recalc_rate() 80 if (frac->lock) in clk_frac_recalc_rate() 81 spin_unlock_irqrestore(frac->lock, flags); in clk_frac_recalc_rate() [all …]
|
D | Makefile | 5 obj-y += clk.o clk-aux-synth.o clk-frac-synth.o clk-gpt-synth.o clk-vco-pll.o
|
/drivers/clk/mxs/ |
D | clk-frac.c | 43 struct clk_frac *frac = to_clk_frac(hw); in clk_frac_recalc_rate() local 46 div = readl_relaxed(frac->reg) >> frac->shift; in clk_frac_recalc_rate() 47 div &= (1 << frac->width) - 1; in clk_frac_recalc_rate() 49 return (parent_rate >> frac->width) * div; in clk_frac_recalc_rate() 55 struct clk_frac *frac = to_clk_frac(hw); in clk_frac_round_rate() local 64 tmp <<= frac->width; in clk_frac_round_rate() 71 return (parent_rate >> frac->width) * div; in clk_frac_round_rate() 77 struct clk_frac *frac = to_clk_frac(hw); in clk_frac_set_rate() local 86 tmp <<= frac->width; in clk_frac_set_rate() 95 val = readl_relaxed(frac->reg); in clk_frac_set_rate() [all …]
|
D | clk-ref.c | 59 u8 frac = (readl_relaxed(ref->reg) >> (ref->idx * 8)) & 0x3f; in clk_ref_recalc_rate() local 62 do_div(tmp, frac); in clk_ref_recalc_rate() 72 u8 frac; in clk_ref_round_rate() local 76 frac = tmp; in clk_ref_round_rate() 78 if (frac < 18) in clk_ref_round_rate() 79 frac = 18; in clk_ref_round_rate() 80 else if (frac > 35) in clk_ref_round_rate() 81 frac = 35; in clk_ref_round_rate() 85 do_div(tmp, frac); in clk_ref_round_rate() 97 u8 frac, shift = ref->idx * 8; in clk_ref_set_rate() local [all …]
|
D | Makefile | 5 obj-y += clk.o clk-pll.o clk-ref.o clk-div.o clk-frac.o clk-ssp.o
|
/drivers/media/tuners/ |
D | fc0011.c | 186 u32 fvco, xin, frac, xdiv, xdivr; in fc0011_set_params() local 224 frac = fvco - xdiv * 18000; in fc0011_set_params() 225 frac = (frac << 15) / 18000; in fc0011_set_params() 226 if (frac >= 16384) in fc0011_set_params() 227 frac += 32786; in fc0011_set_params() 228 if (!frac) in fc0011_set_params() 231 xin = clamp_t(u32, frac, 512, 65024); in fc0011_set_params()
|
/drivers/media/platform/ |
D | sh_veu.c | 685 u32 *mant, u32 *frac, u32 *rep) in sh_veu_calc_scale() argument 690 *rep = *mant = *frac = 0; in sh_veu_calc_scale() 702 *frac = (fixpoint - (*mant * 4096)) & ~0x07; in sh_veu_calc_scale() 704 switch (*frac) { in sh_veu_calc_scale() 721 *frac = fixpoint - (*mant * 4096); in sh_veu_calc_scale() 723 if (*frac & 0x07) { in sh_veu_calc_scale() 728 *frac &= ~0x07; in sh_veu_calc_scale() 730 *frac -= 8; /* round down if scaling up */ in sh_veu_calc_scale() 732 *frac += 8; /* round up if scaling down */ in sh_veu_calc_scale() 739 u32 mant, frac, value, rep; in sh_veu_scale_v() local [all …]
|
/drivers/clk/mmp/ |
D | Makefile | 5 obj-y += clk-apbc.o clk-apmu.o clk-frac.o
|
/drivers/video/ |
D | pxa168fb.h | 333 #define CLK_FRACDIV(frac) ((frac) << 16) argument
|
/drivers/scsi/ |
D | scsi_transport_spi.c | 100 int frac = value % denom; in sprint_frac() local 103 if (frac == 0) in sprint_frac() 109 sprintf(dest + result, "%d", frac / denom); in sprint_frac() 111 frac %= denom; in sprint_frac() 112 } while (frac); in sprint_frac()
|
/drivers/video/mmp/hw/ |
D | mmp_ctrl.h | 586 #define CLK_FRACDIV(frac) ((frac)<<16) argument
|
/drivers/hwmon/ |
D | adt7462.c | 893 u8 frac = data->temp_frac[attr->index] >> TEMP_FRAC_OFFSET; in show_temp() local 899 250 * frac); in show_temp()
|