Home
last modified time | relevance | path

Searched refs:f_vco (Results 1 – 14 of 14) sorted by relevance

/haiku/src/add-ons/accelerants/matrox/engine/
H A Dmga_dac.c349 float f_vco, max_pclk; in milx_dac_pix_pll_find() local
396 f_vco = req_pclk * p; in milx_dac_pix_pll_find()
399 if ((f_vco >= si->ps.min_pixel_vco) && (f_vco <= si->ps.max_pixel_vco)) in milx_dac_pix_pll_find()
405 m = (int)(((f_vco * n) / (8 * si->ps.f_ref)) + 0.5); in milx_dac_pix_pll_find()
428 f_vco = (((8 * si->ps.f_ref) / n) * m); in milx_dac_pix_pll_find()
429 LOG(2, ("DAC: TVP pix VCO frequency found %fMhz\n", f_vco)); in milx_dac_pix_pll_find()
432 *calc_pclk = (f_vco / p); in milx_dac_pix_pll_find()
469 float f_vco, max_pclk; in g100_g400max_dac_pix_pll_find() local
546 f_vco = req_pclk * p; in g100_g400max_dac_pix_pll_find()
549 if ((f_vco >= si->ps.min_pixel_vco) && (f_vco <= si->ps.max_pixel_vco)) in g100_g400max_dac_pix_pll_find()
[all …]
H A Dmga_maven.c341 float f_vco, max_pclk; in g100_g400max_maven_vid_pll_find() local
400 f_vco = req_pclk * p; in g100_g400max_maven_vid_pll_find()
403 if ((f_vco >= si->ps.min_video_vco) && (f_vco <= si->ps.max_video_vco)) in g100_g400max_maven_vid_pll_find()
409 n = (int)(((f_vco * m) / si->ps.f_ref) + 0.5); in g100_g400max_maven_vid_pll_find()
434 f_vco = (si->ps.f_ref / (m + 1)) * (n + 1); in g100_g400max_maven_vid_pll_find()
435 LOG(2, ("MAVEN: vid VCO frequency found %fMhz\n", f_vco)); in g100_g400max_maven_vid_pll_find()
443 if (f_vco >= 180) {p |= (0x03 << 3); break;}; in g100_g400max_maven_vid_pll_find()
444 if (f_vco >= 140) {p |= (0x02 << 3); break;}; in g100_g400max_maven_vid_pll_find()
445 if (f_vco >= 100) {p |= (0x01 << 3); break;}; in g100_g400max_maven_vid_pll_find()
452 if (f_vco >= 240) {p |= (0x03 << 3); break;}; in g100_g400max_maven_vid_pll_find()
[all …]
H A Dmga_maventv.c38 float fields_sec, f_vco; in g100_g400max_maventv_vid_pll_find() local
166 f_vco = (si->ps.f_ref / m) * n; in g100_g400max_maventv_vid_pll_find()
167 LOG(2, ("found vid VCO freq %fMhz, pixclk %fMhz\n", f_vco, (f_vco / p))); in g100_g400max_maventv_vid_pll_find()
216 f_vco = (si->ps.f_ref / (m + 1)) * (n + 1); in g100_g400max_maventv_vid_pll_find()
217 LOG(2, ("MAVENTV: using vid VCO frequency %fMhz\n", f_vco)); in g100_g400max_maventv_vid_pll_find()
225 if (f_vco >= 180) {p |= (0x03 << 3); break;}; in g100_g400max_maventv_vid_pll_find()
226 if (f_vco >= 140) {p |= (0x02 << 3); break;}; in g100_g400max_maventv_vid_pll_find()
227 if (f_vco >= 100) {p |= (0x01 << 3); break;}; in g100_g400max_maventv_vid_pll_find()
234 if (f_vco >= 240) {p |= (0x03 << 3); break;}; in g100_g400max_maventv_vid_pll_find()
235 if (f_vco >= 170) {p |= (0x02 << 3); break;}; in g100_g400max_maventv_vid_pll_find()
[all …]
H A Dmga_proto.h61 status_t mil2_dac_set_pix_pll(float f_vco,int bpp);
/haiku/src/add-ons/accelerants/via/engine/
H A Ddac.c258 float f_vco, max_pclk; in cle266_km400_dac_pix_pll_find() local
326 f_vco = req_pclk * p; in cle266_km400_dac_pix_pll_find()
329 if ((f_vco >= si->ps.min_pixel_vco) && (f_vco <= si->ps.max_pixel_vco)) in cle266_km400_dac_pix_pll_find()
339 n = (int)(((f_vco * m) / si->ps.f_ref) + 0.5); in cle266_km400_dac_pix_pll_find()
366 f_vco = ((si->ps.f_ref / m) * n); in cle266_km400_dac_pix_pll_find()
368 LOG(2,("DAC: pix VCO frequency found %fMhz\n", f_vco)); in cle266_km400_dac_pix_pll_find()
371 *calc_pclk = (f_vco / p); in cle266_km400_dac_pix_pll_find()
405 float f_vco, max_pclk; in k8m800_dac_pix_pll_find() local
473 f_vco = req_pclk * p; in k8m800_dac_pix_pll_find()
476 if ((f_vco >= si->ps.min_pixel_vco) && (f_vco <= si->ps.max_pixel_vco)) in k8m800_dac_pix_pll_find()
[all …]
H A Ddac2.c234 float f_vco, max_pclk; in nv10_nv20_dac2_pix_pll_find() local
302 f_vco = req_pclk * p; in nv10_nv20_dac2_pix_pll_find()
305 if ((f_vco >= si->ps.min_video_vco) && (f_vco <= si->ps.max_video_vco)) in nv10_nv20_dac2_pix_pll_find()
308 if (si->ps.ext_pll) f_vco /= 4; in nv10_nv20_dac2_pix_pll_find()
325 n = (int)(((f_vco * m) / si->ps.f_ref) + 0.5); in nv10_nv20_dac2_pix_pll_find()
356 f_vco = ((si->ps.f_ref / m) * n); in nv10_nv20_dac2_pix_pll_find()
358 if (si->ps.ext_pll) f_vco *= 4; in nv10_nv20_dac2_pix_pll_find()
360 LOG(2,("DAC2: pix VCO frequency found %fMhz\n", f_vco)); in nv10_nv20_dac2_pix_pll_find()
363 *calc_pclk = (f_vco / p); in nv10_nv20_dac2_pix_pll_find()
H A Dtvout.c43 float fields_sec, f_vco; in g100_g400max_maventv_vid_pll_find() local
171 f_vco = (si->ps.f_ref / m) * n; in g100_g400max_maventv_vid_pll_find()
172 LOG(2,("found vid VCO freq %fMhz, pixclk %fMhz\n", f_vco, (f_vco / p))); in g100_g400max_maventv_vid_pll_find()
223 f_vco = (si->ps.f_ref / (m + 1)) * (n + 1); in g100_g400max_maventv_vid_pll_find()
224 LOG(2,("MAVENTV: using vid VCO frequency %fMhz\n", f_vco)); in g100_g400max_maventv_vid_pll_find()
241 if (f_vco >= 240) {p |= (0x03 << 3); break;}; in g100_g400max_maventv_vid_pll_find()
242 if (f_vco >= 170) {p |= (0x02 << 3); break;}; in g100_g400max_maventv_vid_pll_find()
243 if (f_vco >= 110) {p |= (0x01 << 3); break;}; in g100_g400max_maventv_vid_pll_find()
258 (f_vco / ((p & 0x07) + 1)), m, n, p)); in g100_g400max_maventv_vid_pll_find()
/haiku/src/add-ons/accelerants/skeleton/engine/
H A Ddac.c226 float f_vco, max_pclk; in nv4_nv10_nv20_dac_pix_pll_find() local
294 f_vco = req_pclk * p; in nv4_nv10_nv20_dac_pix_pll_find()
297 if ((f_vco >= si->ps.min_pixel_vco) && (f_vco <= si->ps.max_pixel_vco)) in nv4_nv10_nv20_dac_pix_pll_find()
300 if (si->ps.ext_pll) f_vco /= 4; in nv4_nv10_nv20_dac_pix_pll_find()
317 n = (int)(((f_vco * m) / si->ps.f_ref) + 0.5); in nv4_nv10_nv20_dac_pix_pll_find()
349 f_vco = ((si->ps.f_ref / m) * n); in nv4_nv10_nv20_dac_pix_pll_find()
351 if (si->ps.ext_pll) f_vco *= 4; in nv4_nv10_nv20_dac_pix_pll_find()
353 LOG(2,("DAC: pix VCO frequency found %fMhz\n", f_vco)); in nv4_nv10_nv20_dac_pix_pll_find()
356 *calc_pclk = (f_vco / p); in nv4_nv10_nv20_dac_pix_pll_find()
393 float f_vco, discr_low, discr_high; in eng_dac_sys_pll_find() local
[all …]
H A Ddac2.c234 float f_vco, max_pclk; in nv10_nv20_dac2_pix_pll_find() local
302 f_vco = req_pclk * p; in nv10_nv20_dac2_pix_pll_find()
305 if ((f_vco >= si->ps.min_video_vco) && (f_vco <= si->ps.max_video_vco)) in nv10_nv20_dac2_pix_pll_find()
308 if (si->ps.ext_pll) f_vco /= 4; in nv10_nv20_dac2_pix_pll_find()
325 n = (int)(((f_vco * m) / si->ps.f_ref) + 0.5); in nv10_nv20_dac2_pix_pll_find()
356 f_vco = ((si->ps.f_ref / m) * n); in nv10_nv20_dac2_pix_pll_find()
358 if (si->ps.ext_pll) f_vco *= 4; in nv10_nv20_dac2_pix_pll_find()
360 LOG(2,("DAC2: pix VCO frequency found %fMhz\n", f_vco)); in nv10_nv20_dac2_pix_pll_find()
363 *calc_pclk = (f_vco / p); in nv10_nv20_dac2_pix_pll_find()
H A Dtvout.c43 float fields_sec, f_vco; in g100_g400max_maventv_vid_pll_find() local
171 f_vco = (si->ps.f_ref / m) * n; in g100_g400max_maventv_vid_pll_find()
172 LOG(2,("found vid VCO freq %fMhz, pixclk %fMhz\n", f_vco, (f_vco / p))); in g100_g400max_maventv_vid_pll_find()
223 f_vco = (si->ps.f_ref / (m + 1)) * (n + 1); in g100_g400max_maventv_vid_pll_find()
224 LOG(2,("MAVENTV: using vid VCO frequency %fMhz\n", f_vco)); in g100_g400max_maventv_vid_pll_find()
241 if (f_vco >= 240) {p |= (0x03 << 3); break;}; in g100_g400max_maventv_vid_pll_find()
242 if (f_vco >= 170) {p |= (0x02 << 3); break;}; in g100_g400max_maventv_vid_pll_find()
243 if (f_vco >= 110) {p |= (0x01 << 3); break;}; in g100_g400max_maventv_vid_pll_find()
258 (f_vco / ((p & 0x07) + 1)), m, n, p)); in g100_g400max_maventv_vid_pll_find()
/haiku/src/add-ons/accelerants/nvidia/engine/
H A Dnv_dac.c275 float f_vco, f_phase, f_pixel; in nv_dac_dump_pix_pll() local
299 f_vco = (f_phase * n1 * n2); in nv_dac_dump_pix_pll()
300 f_pixel = f_vco / p1; in nv_dac_dump_pix_pll()
303 LOG(2,("DAC: VCO frequency is %fMhz\n", f_vco)); in nv_dac_dump_pix_pll()
335 float f_vco, max_pclk; in nv4_nv10_nv20_dac_pix_pll_find() local
390 f_vco = req_pclk * p; in nv4_nv10_nv20_dac_pix_pll_find()
393 if ((f_vco >= si->ps.min_pixel_vco) && (f_vco <= si->ps.max_pixel_vco)) in nv4_nv10_nv20_dac_pix_pll_find()
396 if (si->ps.ext_pll) f_vco /= 4; in nv4_nv10_nv20_dac_pix_pll_find()
415 n = (int)(((f_vco * m) / si->ps.f_ref) + 0.5); in nv4_nv10_nv20_dac_pix_pll_find()
447 f_vco = ((si->ps.f_ref / m) * n); in nv4_nv10_nv20_dac_pix_pll_find()
[all …]
H A Dnv_dac2.c236 float f_vco, f_phase, f_pixel; in nv_dac2_dump_pix_pll() local
260 f_vco = (f_phase * n1 * n2); in nv_dac2_dump_pix_pll()
261 f_pixel = f_vco / p1; in nv_dac2_dump_pix_pll()
264 LOG(2,("DAC2: VCO frequency is %fMhz\n", f_vco)); in nv_dac2_dump_pix_pll()
292 float f_vco, max_pclk; in nv10_nv20_dac2_pix_pll_find() local
347 f_vco = req_pclk * p; in nv10_nv20_dac2_pix_pll_find()
350 if ((f_vco >= si->ps.min_video_vco) && (f_vco <= si->ps.max_video_vco)) in nv10_nv20_dac2_pix_pll_find()
353 if (si->ps.ext_pll) f_vco /= 4; in nv10_nv20_dac2_pix_pll_find()
372 n = (int)(((f_vco * m) / si->ps.f_ref) + 0.5); in nv10_nv20_dac2_pix_pll_find()
403 f_vco = ((si->ps.f_ref / m) * n); in nv10_nv20_dac2_pix_pll_find()
[all …]
/haiku/src/add-ons/accelerants/neomagic/engine/
H A Dnm_dac.c209 float f_vco, max_pclk; in nm_dac_pix_pll_find() local
272 f_vco = req_pclk; in nm_dac_pix_pll_find()
280 n = (int)(((f_vco * m) / si->ps.f_ref) + 0.5); in nm_dac_pix_pll_find()
/haiku/src/add-ons/accelerants/intel_810/
H A Di810_mode.cpp39 double f_vco; in CalcVCLK() local
52 f_vco = f_target * (1 << p); in CalcVCLK()
57 m = int(f_vco / (REF_FREQ / (double)n) / (double)4.0 + 0.5); in CalcVCLK()