Lines Matching refs:full
81 tmp.full = dfixed_const(100); in rs690_pm_info()
82 rdev->pm.igp_sideport_mclk.full = dfixed_const(le32_to_cpu(info->info.ulBootUpMemoryClock)); in rs690_pm_info()
83 rdev->pm.igp_sideport_mclk.full = dfixed_div(rdev->pm.igp_sideport_mclk, tmp); in rs690_pm_info()
85 rdev->pm.igp_system_mclk.full = dfixed_const(le16_to_cpu(info->info.usK8MemoryClock)); in rs690_pm_info()
87 rdev->pm.igp_system_mclk.full = dfixed_const(rdev->clock.default_mclk); in rs690_pm_info()
88 rdev->pm.igp_system_mclk.full = dfixed_div(rdev->pm.igp_system_mclk, tmp); in rs690_pm_info()
90 rdev->pm.igp_system_mclk.full = dfixed_const(400); in rs690_pm_info()
91 rdev->pm.igp_ht_link_clk.full = dfixed_const(le16_to_cpu(info->info.usFSBClock)); in rs690_pm_info()
92 rdev->pm.igp_ht_link_width.full = dfixed_const(info->info.ucHTLinkWidth); in rs690_pm_info()
95 tmp.full = dfixed_const(100); in rs690_pm_info()
96 rdev->pm.igp_sideport_mclk.full = dfixed_const(le32_to_cpu(info->info_v2.ulBootUpSidePortClock)); in rs690_pm_info()
97 rdev->pm.igp_sideport_mclk.full = dfixed_div(rdev->pm.igp_sideport_mclk, tmp); in rs690_pm_info()
99 rdev->pm.igp_system_mclk.full = dfixed_const(le32_to_cpu(info->info_v2.ulBootUpUMAClock)); in rs690_pm_info()
101 rdev->pm.igp_system_mclk.full = dfixed_const(rdev->clock.default_mclk); in rs690_pm_info()
103 rdev->pm.igp_system_mclk.full = dfixed_const(66700); in rs690_pm_info()
104 rdev->pm.igp_system_mclk.full = dfixed_div(rdev->pm.igp_system_mclk, tmp); in rs690_pm_info()
105 rdev->pm.igp_ht_link_clk.full = dfixed_const(le32_to_cpu(info->info_v2.ulHTLinkFreq)); in rs690_pm_info()
106 rdev->pm.igp_ht_link_clk.full = dfixed_div(rdev->pm.igp_ht_link_clk, tmp); in rs690_pm_info()
107 rdev->pm.igp_ht_link_width.full = dfixed_const(le16_to_cpu(info->info_v2.usMinHTLinkWidth)); in rs690_pm_info()
111 rdev->pm.igp_sideport_mclk.full = dfixed_const(200); in rs690_pm_info()
112 rdev->pm.igp_system_mclk.full = dfixed_const(200); in rs690_pm_info()
113 rdev->pm.igp_ht_link_clk.full = dfixed_const(1000); in rs690_pm_info()
114 rdev->pm.igp_ht_link_width.full = dfixed_const(8); in rs690_pm_info()
120 rdev->pm.igp_sideport_mclk.full = dfixed_const(200); in rs690_pm_info()
121 rdev->pm.igp_system_mclk.full = dfixed_const(200); in rs690_pm_info()
122 rdev->pm.igp_ht_link_clk.full = dfixed_const(1000); in rs690_pm_info()
123 rdev->pm.igp_ht_link_width.full = dfixed_const(8); in rs690_pm_info()
128 tmp.full = dfixed_const(4); in rs690_pm_info()
129 rdev->pm.k8_bandwidth.full = dfixed_mul(rdev->pm.igp_system_mclk, tmp); in rs690_pm_info()
133 tmp.full = dfixed_const(5); in rs690_pm_info()
134 rdev->pm.ht_bandwidth.full = dfixed_mul(rdev->pm.igp_ht_link_clk, in rs690_pm_info()
136 rdev->pm.ht_bandwidth.full = dfixed_div(rdev->pm.ht_bandwidth, tmp); in rs690_pm_info()
137 if (tmp.full < rdev->pm.max_bandwidth.full) { in rs690_pm_info()
139 rdev->pm.max_bandwidth.full = tmp.full; in rs690_pm_info()
144 tmp.full = dfixed_const(14); in rs690_pm_info()
145 rdev->pm.sideport_bandwidth.full = dfixed_mul(rdev->pm.igp_sideport_mclk, tmp); in rs690_pm_info()
146 tmp.full = dfixed_const(10); in rs690_pm_info()
147 rdev->pm.sideport_bandwidth.full = dfixed_div(rdev->pm.sideport_bandwidth, tmp); in rs690_pm_info()
297 a.full = dfixed_const(100); in rs690_crtc_bandwidth_compute()
298 sclk.full = dfixed_const(selected_sclk); in rs690_crtc_bandwidth_compute()
299 sclk.full = dfixed_div(sclk, a); in rs690_crtc_bandwidth_compute()
302 a.full = dfixed_const(16); in rs690_crtc_bandwidth_compute()
303 core_bandwidth.full = dfixed_div(rdev->pm.sclk, a); in rs690_crtc_bandwidth_compute()
305 if (crtc->vsc.full > dfixed_const(2)) in rs690_crtc_bandwidth_compute()
306 wm->num_line_pair.full = dfixed_const(2); in rs690_crtc_bandwidth_compute()
308 wm->num_line_pair.full = dfixed_const(1); in rs690_crtc_bandwidth_compute()
310 b.full = dfixed_const(mode->crtc_hdisplay); in rs690_crtc_bandwidth_compute()
311 c.full = dfixed_const(256); in rs690_crtc_bandwidth_compute()
312 a.full = dfixed_div(b, c); in rs690_crtc_bandwidth_compute()
313 request_fifo_depth.full = dfixed_mul(a, wm->num_line_pair); in rs690_crtc_bandwidth_compute()
314 request_fifo_depth.full = dfixed_ceil(request_fifo_depth); in rs690_crtc_bandwidth_compute()
315 if (a.full < dfixed_const(4)) { in rs690_crtc_bandwidth_compute()
327 a.full = dfixed_const(mode->clock); in rs690_crtc_bandwidth_compute()
328 b.full = dfixed_const(1000); in rs690_crtc_bandwidth_compute()
329 a.full = dfixed_div(a, b); in rs690_crtc_bandwidth_compute()
330 pclk.full = dfixed_div(b, a); in rs690_crtc_bandwidth_compute()
332 b.full = dfixed_const(2); in rs690_crtc_bandwidth_compute()
333 if (crtc->vsc.full > b.full) in rs690_crtc_bandwidth_compute()
334 b.full = crtc->vsc.full; in rs690_crtc_bandwidth_compute()
335 b.full = dfixed_mul(b, crtc->hsc); in rs690_crtc_bandwidth_compute()
336 c.full = dfixed_const(2); in rs690_crtc_bandwidth_compute()
337 b.full = dfixed_div(b, c); in rs690_crtc_bandwidth_compute()
338 consumption_time.full = dfixed_div(pclk, b); in rs690_crtc_bandwidth_compute()
340 consumption_time.full = pclk.full; in rs690_crtc_bandwidth_compute()
342 a.full = dfixed_const(1); in rs690_crtc_bandwidth_compute()
343 wm->consumption_rate.full = dfixed_div(a, consumption_time); in rs690_crtc_bandwidth_compute()
351 a.full = dfixed_const(crtc->base.mode.crtc_htotal); in rs690_crtc_bandwidth_compute()
352 line_time.full = dfixed_mul(a, pclk); in rs690_crtc_bandwidth_compute()
359 a.full = dfixed_const(crtc->base.mode.crtc_htotal); in rs690_crtc_bandwidth_compute()
360 b.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rs690_crtc_bandwidth_compute()
361 wm->active_time.full = dfixed_mul(line_time, b); in rs690_crtc_bandwidth_compute()
362 wm->active_time.full = dfixed_div(wm->active_time, a); in rs690_crtc_bandwidth_compute()
367 if (max_bandwidth.full > rdev->pm.sideport_bandwidth.full && in rs690_crtc_bandwidth_compute()
368 rdev->pm.sideport_bandwidth.full) in rs690_crtc_bandwidth_compute()
370 read_delay_latency.full = dfixed_const(370 * 800); in rs690_crtc_bandwidth_compute()
371 a.full = dfixed_const(1000); in rs690_crtc_bandwidth_compute()
372 b.full = dfixed_div(rdev->pm.igp_sideport_mclk, a); in rs690_crtc_bandwidth_compute()
373 read_delay_latency.full = dfixed_div(read_delay_latency, b); in rs690_crtc_bandwidth_compute()
374 read_delay_latency.full = dfixed_mul(read_delay_latency, a); in rs690_crtc_bandwidth_compute()
376 if (max_bandwidth.full > rdev->pm.k8_bandwidth.full && in rs690_crtc_bandwidth_compute()
377 rdev->pm.k8_bandwidth.full) in rs690_crtc_bandwidth_compute()
379 if (max_bandwidth.full > rdev->pm.ht_bandwidth.full && in rs690_crtc_bandwidth_compute()
380 rdev->pm.ht_bandwidth.full) in rs690_crtc_bandwidth_compute()
382 read_delay_latency.full = dfixed_const(5000); in rs690_crtc_bandwidth_compute()
386 a.full = dfixed_const(16); in rs690_crtc_bandwidth_compute()
387 sclk.full = dfixed_mul(max_bandwidth, a); in rs690_crtc_bandwidth_compute()
388 a.full = dfixed_const(1000); in rs690_crtc_bandwidth_compute()
389 sclk.full = dfixed_div(a, sclk); in rs690_crtc_bandwidth_compute()
395 a.full = dfixed_const(256 * 13); in rs690_crtc_bandwidth_compute()
396 chunk_time.full = dfixed_mul(sclk, a); in rs690_crtc_bandwidth_compute()
397 a.full = dfixed_const(10); in rs690_crtc_bandwidth_compute()
398 chunk_time.full = dfixed_div(chunk_time, a); in rs690_crtc_bandwidth_compute()
409 a.full = dfixed_const(3); in rs690_crtc_bandwidth_compute()
410 wm->worst_case_latency.full = dfixed_mul(a, chunk_time); in rs690_crtc_bandwidth_compute()
411 wm->worst_case_latency.full += read_delay_latency.full; in rs690_crtc_bandwidth_compute()
413 a.full = dfixed_const(2); in rs690_crtc_bandwidth_compute()
414 wm->worst_case_latency.full = dfixed_mul(a, chunk_time); in rs690_crtc_bandwidth_compute()
415 wm->worst_case_latency.full += read_delay_latency.full; in rs690_crtc_bandwidth_compute()
429 tolerable_latency.full = line_time.full; in rs690_crtc_bandwidth_compute()
431 tolerable_latency.full = dfixed_const(wm->lb_request_fifo_depth - 2); in rs690_crtc_bandwidth_compute()
432 tolerable_latency.full = request_fifo_depth.full - tolerable_latency.full; in rs690_crtc_bandwidth_compute()
433 tolerable_latency.full = dfixed_mul(tolerable_latency, chunk_time); in rs690_crtc_bandwidth_compute()
434 tolerable_latency.full = line_time.full - tolerable_latency.full; in rs690_crtc_bandwidth_compute()
437 wm->dbpp.full = dfixed_const(4 * 8); in rs690_crtc_bandwidth_compute()
442 a.full = dfixed_const(16); in rs690_crtc_bandwidth_compute()
443 wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rs690_crtc_bandwidth_compute()
444 wm->priority_mark_max.full = dfixed_div(wm->priority_mark_max, a); in rs690_crtc_bandwidth_compute()
445 wm->priority_mark_max.full = dfixed_ceil(wm->priority_mark_max); in rs690_crtc_bandwidth_compute()
448 estimated_width.full = tolerable_latency.full - wm->worst_case_latency.full; in rs690_crtc_bandwidth_compute()
449 estimated_width.full = dfixed_div(estimated_width, consumption_time); in rs690_crtc_bandwidth_compute()
451 wm->priority_mark.full = dfixed_const(10); in rs690_crtc_bandwidth_compute()
453 a.full = dfixed_const(16); in rs690_crtc_bandwidth_compute()
454 wm->priority_mark.full = dfixed_div(estimated_width, a); in rs690_crtc_bandwidth_compute()
455 wm->priority_mark.full = dfixed_ceil(wm->priority_mark); in rs690_crtc_bandwidth_compute()
456 wm->priority_mark.full = wm->priority_mark_max.full - wm->priority_mark.full; in rs690_crtc_bandwidth_compute()
476 a.full = dfixed_mul(wm0->dbpp, wm0->num_line_pair); in rs690_compute_mode_priority()
478 a.full = wm0->num_line_pair.full; in rs690_compute_mode_priority()
480 b.full = dfixed_mul(wm1->dbpp, wm1->num_line_pair); in rs690_compute_mode_priority()
482 b.full = wm1->num_line_pair.full; in rs690_compute_mode_priority()
483 a.full += b.full; in rs690_compute_mode_priority()
484 fill_rate.full = dfixed_div(wm0->sclk, a); in rs690_compute_mode_priority()
485 if (wm0->consumption_rate.full > fill_rate.full) { in rs690_compute_mode_priority()
486 b.full = wm0->consumption_rate.full - fill_rate.full; in rs690_compute_mode_priority()
487 b.full = dfixed_mul(b, wm0->active_time); in rs690_compute_mode_priority()
488 a.full = dfixed_mul(wm0->worst_case_latency, in rs690_compute_mode_priority()
490 a.full = a.full + b.full; in rs690_compute_mode_priority()
491 b.full = dfixed_const(16 * 1000); in rs690_compute_mode_priority()
492 priority_mark02.full = dfixed_div(a, b); in rs690_compute_mode_priority()
494 a.full = dfixed_mul(wm0->worst_case_latency, in rs690_compute_mode_priority()
496 b.full = dfixed_const(16 * 1000); in rs690_compute_mode_priority()
497 priority_mark02.full = dfixed_div(a, b); in rs690_compute_mode_priority()
499 if (wm1->consumption_rate.full > fill_rate.full) { in rs690_compute_mode_priority()
500 b.full = wm1->consumption_rate.full - fill_rate.full; in rs690_compute_mode_priority()
501 b.full = dfixed_mul(b, wm1->active_time); in rs690_compute_mode_priority()
502 a.full = dfixed_mul(wm1->worst_case_latency, in rs690_compute_mode_priority()
504 a.full = a.full + b.full; in rs690_compute_mode_priority()
505 b.full = dfixed_const(16 * 1000); in rs690_compute_mode_priority()
506 priority_mark12.full = dfixed_div(a, b); in rs690_compute_mode_priority()
508 a.full = dfixed_mul(wm1->worst_case_latency, in rs690_compute_mode_priority()
510 b.full = dfixed_const(16 * 1000); in rs690_compute_mode_priority()
511 priority_mark12.full = dfixed_div(a, b); in rs690_compute_mode_priority()
513 if (wm0->priority_mark.full > priority_mark02.full) in rs690_compute_mode_priority()
514 priority_mark02.full = wm0->priority_mark.full; in rs690_compute_mode_priority()
515 if (wm0->priority_mark_max.full > priority_mark02.full) in rs690_compute_mode_priority()
516 priority_mark02.full = wm0->priority_mark_max.full; in rs690_compute_mode_priority()
517 if (wm1->priority_mark.full > priority_mark12.full) in rs690_compute_mode_priority()
518 priority_mark12.full = wm1->priority_mark.full; in rs690_compute_mode_priority()
519 if (wm1->priority_mark_max.full > priority_mark12.full) in rs690_compute_mode_priority()
520 priority_mark12.full = wm1->priority_mark_max.full; in rs690_compute_mode_priority()
529 a.full = dfixed_mul(wm0->dbpp, wm0->num_line_pair); in rs690_compute_mode_priority()
531 a.full = wm0->num_line_pair.full; in rs690_compute_mode_priority()
532 fill_rate.full = dfixed_div(wm0->sclk, a); in rs690_compute_mode_priority()
533 if (wm0->consumption_rate.full > fill_rate.full) { in rs690_compute_mode_priority()
534 b.full = wm0->consumption_rate.full - fill_rate.full; in rs690_compute_mode_priority()
535 b.full = dfixed_mul(b, wm0->active_time); in rs690_compute_mode_priority()
536 a.full = dfixed_mul(wm0->worst_case_latency, in rs690_compute_mode_priority()
538 a.full = a.full + b.full; in rs690_compute_mode_priority()
539 b.full = dfixed_const(16 * 1000); in rs690_compute_mode_priority()
540 priority_mark02.full = dfixed_div(a, b); in rs690_compute_mode_priority()
542 a.full = dfixed_mul(wm0->worst_case_latency, in rs690_compute_mode_priority()
544 b.full = dfixed_const(16 * 1000); in rs690_compute_mode_priority()
545 priority_mark02.full = dfixed_div(a, b); in rs690_compute_mode_priority()
547 if (wm0->priority_mark.full > priority_mark02.full) in rs690_compute_mode_priority()
548 priority_mark02.full = wm0->priority_mark.full; in rs690_compute_mode_priority()
549 if (wm0->priority_mark_max.full > priority_mark02.full) in rs690_compute_mode_priority()
550 priority_mark02.full = wm0->priority_mark_max.full; in rs690_compute_mode_priority()
556 a.full = dfixed_mul(wm1->dbpp, wm1->num_line_pair); in rs690_compute_mode_priority()
558 a.full = wm1->num_line_pair.full; in rs690_compute_mode_priority()
559 fill_rate.full = dfixed_div(wm1->sclk, a); in rs690_compute_mode_priority()
560 if (wm1->consumption_rate.full > fill_rate.full) { in rs690_compute_mode_priority()
561 b.full = wm1->consumption_rate.full - fill_rate.full; in rs690_compute_mode_priority()
562 b.full = dfixed_mul(b, wm1->active_time); in rs690_compute_mode_priority()
563 a.full = dfixed_mul(wm1->worst_case_latency, in rs690_compute_mode_priority()
565 a.full = a.full + b.full; in rs690_compute_mode_priority()
566 b.full = dfixed_const(16 * 1000); in rs690_compute_mode_priority()
567 priority_mark12.full = dfixed_div(a, b); in rs690_compute_mode_priority()
569 a.full = dfixed_mul(wm1->worst_case_latency, in rs690_compute_mode_priority()
571 b.full = dfixed_const(16 * 1000); in rs690_compute_mode_priority()
572 priority_mark12.full = dfixed_div(a, b); in rs690_compute_mode_priority()
574 if (wm1->priority_mark.full > priority_mark12.full) in rs690_compute_mode_priority()
575 priority_mark12.full = wm1->priority_mark.full; in rs690_compute_mode_priority()
576 if (wm1->priority_mark_max.full > priority_mark12.full) in rs690_compute_mode_priority()
577 priority_mark12.full = wm1->priority_mark_max.full; in rs690_compute_mode_priority()