Lines Matching refs:req_clock
352 uint32_t req_clock, in calc_eng_mem_clock() argument
363 if (req_clock < 15000) { in calc_eng_mem_clock()
365 req_clock *= 8; in calc_eng_mem_clock()
366 } else if (req_clock < 30000) { in calc_eng_mem_clock()
368 req_clock *= 4; in calc_eng_mem_clock()
369 } else if (req_clock < 60000) { in calc_eng_mem_clock()
371 req_clock *= 2; in calc_eng_mem_clock()
375 req_clock *= ref_div; in calc_eng_mem_clock()
376 req_clock += spll->reference_freq; in calc_eng_mem_clock()
377 req_clock /= (2 * spll->reference_freq); in calc_eng_mem_clock()
379 *fb_div = req_clock & 0xff; in calc_eng_mem_clock()
381 req_clock = (req_clock & 0xffff) << 1; in calc_eng_mem_clock()
382 req_clock *= spll->reference_freq; in calc_eng_mem_clock()
383 req_clock /= ref_div; in calc_eng_mem_clock()
384 req_clock /= *post_div; in calc_eng_mem_clock()
386 return req_clock; in calc_eng_mem_clock()