• Home
  • Raw
  • Download

Lines Matching refs:e

77 	const struct pmu0_plltab_entry *e;  in pmu0_plltab_find_entry()  local
81 e = &pmu0_plltab[i]; in pmu0_plltab_find_entry()
82 if (e->freq == crystalfreq) in pmu0_plltab_find_entry()
83 return e; in pmu0_plltab_find_entry()
94 const struct pmu0_plltab_entry *e = NULL; in ssb_pmu0_pllinit_r0() local
99 e = pmu0_plltab_find_entry(crystalfreq); in ssb_pmu0_pllinit_r0()
100 if (!e) in ssb_pmu0_pllinit_r0()
101 e = pmu0_plltab_find_entry(SSB_PMU0_DEFAULT_XTALFREQ); in ssb_pmu0_pllinit_r0()
102 BUG_ON(!e); in ssb_pmu0_pllinit_r0()
103 crystalfreq = e->freq; in ssb_pmu0_pllinit_r0()
104 cc->pmu.crystalfreq = e->freq; in ssb_pmu0_pllinit_r0()
108 if (((pmuctl & SSB_CHIPCO_PMU_CTL_XTALFREQ) >> SSB_CHIPCO_PMU_CTL_XTALFREQ_SHIFT) == e->xf) { in ssb_pmu0_pllinit_r0()
155 pllctl |= ((u32)e->wb_int << SSB_PMU0_PLLCTL1_WILD_IMSK_SHIFT) & SSB_PMU0_PLLCTL1_WILD_IMSK; in ssb_pmu0_pllinit_r0()
156 pllctl |= ((u32)e->wb_frac << SSB_PMU0_PLLCTL1_WILD_FMSK_SHIFT) & SSB_PMU0_PLLCTL1_WILD_FMSK; in ssb_pmu0_pllinit_r0()
157 if (e->wb_frac == 0) in ssb_pmu0_pllinit_r0()
164 …pllctl |= (((u32)e->wb_int >> 4) << SSB_PMU0_PLLCTL2_WILD_IMSKHI_SHIFT) & SSB_PMU0_PLLCTL2_WILD_IM… in ssb_pmu0_pllinit_r0()
173 pmuctl |= ((u32)e->xf << SSB_CHIPCO_PMU_CTL_XTALFREQ_SHIFT) & SSB_CHIPCO_PMU_CTL_XTALFREQ; in ssb_pmu0_pllinit_r0()
208 const struct pmu1_plltab_entry *e; in pmu1_plltab_find_entry() local
212 e = &pmu1_plltab[i]; in pmu1_plltab_find_entry()
213 if (e->freq == crystalfreq) in pmu1_plltab_find_entry()
214 return e; in pmu1_plltab_find_entry()
225 const struct pmu1_plltab_entry *e = NULL; in ssb_pmu1_pllinit_r0() local
238 e = pmu1_plltab_find_entry(crystalfreq); in ssb_pmu1_pllinit_r0()
239 if (!e) in ssb_pmu1_pllinit_r0()
240 e = pmu1_plltab_find_entry(SSB_PMU1_DEFAULT_XTALFREQ); in ssb_pmu1_pllinit_r0()
241 BUG_ON(!e); in ssb_pmu1_pllinit_r0()
242 crystalfreq = e->freq; in ssb_pmu1_pllinit_r0()
243 cc->pmu.crystalfreq = e->freq; in ssb_pmu1_pllinit_r0()
247 if (((pmuctl & SSB_CHIPCO_PMU_CTL_XTALFREQ) >> SSB_CHIPCO_PMU_CTL_XTALFREQ_SHIFT) == e->xf) { in ssb_pmu1_pllinit_r0()
283 pllctl |= ((u32)e->p1div << SSB_PMU1_PLLCTL0_P1DIV_SHIFT) & SSB_PMU1_PLLCTL0_P1DIV; in ssb_pmu1_pllinit_r0()
284 pllctl |= ((u32)e->p2div << SSB_PMU1_PLLCTL0_P2DIV_SHIFT) & SSB_PMU1_PLLCTL0_P2DIV; in ssb_pmu1_pllinit_r0()
290 pllctl |= ((u32)e->ndiv_int << SSB_PMU1_PLLCTL2_NDIVINT_SHIFT) & SSB_PMU1_PLLCTL2_NDIVINT; in ssb_pmu1_pllinit_r0()
297 pllctl |= ((u32)e->ndiv_frac << SSB_PMU1_PLLCTL3_NDIVFRAC_SHIFT) & SSB_PMU1_PLLCTL3_NDIVFRAC; in ssb_pmu1_pllinit_r0()
311 pmuctl |= ((((u32)e->freq + 127) / 128 - 1) << SSB_CHIPCO_PMU_CTL_ILP_DIV_SHIFT) in ssb_pmu1_pllinit_r0()
313 pmuctl |= ((u32)e->xf << SSB_CHIPCO_PMU_CTL_XTALFREQ_SHIFT) & SSB_CHIPCO_PMU_CTL_XTALFREQ; in ssb_pmu1_pllinit_r0()
622 const struct pmu0_plltab_entry *e = NULL; in ssb_pmu_get_alp_clock_clk0() local
626 e = pmu0_plltab_find_entry(crystalfreq); in ssb_pmu_get_alp_clock_clk0()
627 BUG_ON(!e); in ssb_pmu_get_alp_clock_clk0()
628 return e->freq * 1000; in ssb_pmu_get_alp_clock_clk0()