Lines Matching full:full
79 tmp.full = dfixed_const(100); in rs690_pm_info()
80 rdev->pm.igp_sideport_mclk.full = dfixed_const(le32_to_cpu(info->info.ulBootUpMemoryClock)); in rs690_pm_info()
81 rdev->pm.igp_sideport_mclk.full = dfixed_div(rdev->pm.igp_sideport_mclk, tmp); in rs690_pm_info()
83 rdev->pm.igp_system_mclk.full = dfixed_const(le16_to_cpu(info->info.usK8MemoryClock)); in rs690_pm_info()
85 rdev->pm.igp_system_mclk.full = dfixed_const(rdev->clock.default_mclk); in rs690_pm_info()
86 rdev->pm.igp_system_mclk.full = dfixed_div(rdev->pm.igp_system_mclk, tmp); in rs690_pm_info()
88 rdev->pm.igp_system_mclk.full = dfixed_const(400); in rs690_pm_info()
89 rdev->pm.igp_ht_link_clk.full = dfixed_const(le16_to_cpu(info->info.usFSBClock)); in rs690_pm_info()
90 rdev->pm.igp_ht_link_width.full = dfixed_const(info->info.ucHTLinkWidth); in rs690_pm_info()
93 tmp.full = dfixed_const(100); in rs690_pm_info()
94 rdev->pm.igp_sideport_mclk.full = dfixed_const(le32_to_cpu(info->info_v2.ulBootUpSidePortClock)); in rs690_pm_info()
95 rdev->pm.igp_sideport_mclk.full = dfixed_div(rdev->pm.igp_sideport_mclk, tmp); in rs690_pm_info()
97 rdev->pm.igp_system_mclk.full = dfixed_const(le32_to_cpu(info->info_v2.ulBootUpUMAClock)); in rs690_pm_info()
99 rdev->pm.igp_system_mclk.full = dfixed_const(rdev->clock.default_mclk); in rs690_pm_info()
101 rdev->pm.igp_system_mclk.full = dfixed_const(66700); in rs690_pm_info()
102 rdev->pm.igp_system_mclk.full = dfixed_div(rdev->pm.igp_system_mclk, tmp); in rs690_pm_info()
103 rdev->pm.igp_ht_link_clk.full = dfixed_const(le32_to_cpu(info->info_v2.ulHTLinkFreq)); in rs690_pm_info()
104 rdev->pm.igp_ht_link_clk.full = dfixed_div(rdev->pm.igp_ht_link_clk, tmp); in rs690_pm_info()
105 rdev->pm.igp_ht_link_width.full = dfixed_const(le16_to_cpu(info->info_v2.usMinHTLinkWidth)); in rs690_pm_info()
109 rdev->pm.igp_sideport_mclk.full = dfixed_const(200); in rs690_pm_info()
110 rdev->pm.igp_system_mclk.full = dfixed_const(200); in rs690_pm_info()
111 rdev->pm.igp_ht_link_clk.full = dfixed_const(1000); in rs690_pm_info()
112 rdev->pm.igp_ht_link_width.full = dfixed_const(8); in rs690_pm_info()
118 rdev->pm.igp_sideport_mclk.full = dfixed_const(200); in rs690_pm_info()
119 rdev->pm.igp_system_mclk.full = dfixed_const(200); in rs690_pm_info()
120 rdev->pm.igp_ht_link_clk.full = dfixed_const(1000); in rs690_pm_info()
121 rdev->pm.igp_ht_link_width.full = dfixed_const(8); in rs690_pm_info()
126 tmp.full = dfixed_const(4); in rs690_pm_info()
127 rdev->pm.k8_bandwidth.full = dfixed_mul(rdev->pm.igp_system_mclk, tmp); in rs690_pm_info()
131 tmp.full = dfixed_const(5); in rs690_pm_info()
132 rdev->pm.ht_bandwidth.full = dfixed_mul(rdev->pm.igp_ht_link_clk, in rs690_pm_info()
134 rdev->pm.ht_bandwidth.full = dfixed_div(rdev->pm.ht_bandwidth, tmp); in rs690_pm_info()
135 if (tmp.full < rdev->pm.max_bandwidth.full) { in rs690_pm_info()
137 rdev->pm.max_bandwidth.full = tmp.full; in rs690_pm_info()
142 tmp.full = dfixed_const(14); in rs690_pm_info()
143 rdev->pm.sideport_bandwidth.full = dfixed_mul(rdev->pm.igp_sideport_mclk, tmp); in rs690_pm_info()
144 tmp.full = dfixed_const(10); in rs690_pm_info()
145 rdev->pm.sideport_bandwidth.full = dfixed_div(rdev->pm.sideport_bandwidth, tmp); in rs690_pm_info()
242 if (crtc->vsc.full > dfixed_const(2)) in rs690_crtc_bandwidth_compute()
243 wm->num_line_pair.full = dfixed_const(2); in rs690_crtc_bandwidth_compute()
245 wm->num_line_pair.full = dfixed_const(1); in rs690_crtc_bandwidth_compute()
247 b.full = dfixed_const(mode->crtc_hdisplay); in rs690_crtc_bandwidth_compute()
248 c.full = dfixed_const(256); in rs690_crtc_bandwidth_compute()
249 a.full = dfixed_div(b, c); in rs690_crtc_bandwidth_compute()
250 request_fifo_depth.full = dfixed_mul(a, wm->num_line_pair); in rs690_crtc_bandwidth_compute()
251 request_fifo_depth.full = dfixed_ceil(request_fifo_depth); in rs690_crtc_bandwidth_compute()
252 if (a.full < dfixed_const(4)) { in rs690_crtc_bandwidth_compute()
264 a.full = dfixed_const(mode->clock); in rs690_crtc_bandwidth_compute()
265 b.full = dfixed_const(1000); in rs690_crtc_bandwidth_compute()
266 a.full = dfixed_div(a, b); in rs690_crtc_bandwidth_compute()
267 pclk.full = dfixed_div(b, a); in rs690_crtc_bandwidth_compute()
269 b.full = dfixed_const(2); in rs690_crtc_bandwidth_compute()
270 if (crtc->vsc.full > b.full) in rs690_crtc_bandwidth_compute()
271 b.full = crtc->vsc.full; in rs690_crtc_bandwidth_compute()
272 b.full = dfixed_mul(b, crtc->hsc); in rs690_crtc_bandwidth_compute()
273 c.full = dfixed_const(2); in rs690_crtc_bandwidth_compute()
274 b.full = dfixed_div(b, c); in rs690_crtc_bandwidth_compute()
275 consumption_time.full = dfixed_div(pclk, b); in rs690_crtc_bandwidth_compute()
277 consumption_time.full = pclk.full; in rs690_crtc_bandwidth_compute()
279 a.full = dfixed_const(1); in rs690_crtc_bandwidth_compute()
280 wm->consumption_rate.full = dfixed_div(a, consumption_time); in rs690_crtc_bandwidth_compute()
288 a.full = dfixed_const(crtc->base.mode.crtc_htotal); in rs690_crtc_bandwidth_compute()
289 line_time.full = dfixed_mul(a, pclk); in rs690_crtc_bandwidth_compute()
296 a.full = dfixed_const(crtc->base.mode.crtc_htotal); in rs690_crtc_bandwidth_compute()
297 b.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rs690_crtc_bandwidth_compute()
298 wm->active_time.full = dfixed_mul(line_time, b); in rs690_crtc_bandwidth_compute()
299 wm->active_time.full = dfixed_div(wm->active_time, a); in rs690_crtc_bandwidth_compute()
304 if (rdev->pm.max_bandwidth.full > rdev->pm.sideport_bandwidth.full && in rs690_crtc_bandwidth_compute()
305 rdev->pm.sideport_bandwidth.full) in rs690_crtc_bandwidth_compute()
307 read_delay_latency.full = dfixed_const(370 * 800 * 1000); in rs690_crtc_bandwidth_compute()
308 read_delay_latency.full = dfixed_div(read_delay_latency, in rs690_crtc_bandwidth_compute()
311 if (rdev->pm.max_bandwidth.full > rdev->pm.k8_bandwidth.full && in rs690_crtc_bandwidth_compute()
312 rdev->pm.k8_bandwidth.full) in rs690_crtc_bandwidth_compute()
314 if (rdev->pm.max_bandwidth.full > rdev->pm.ht_bandwidth.full && in rs690_crtc_bandwidth_compute()
315 rdev->pm.ht_bandwidth.full) in rs690_crtc_bandwidth_compute()
317 read_delay_latency.full = dfixed_const(5000); in rs690_crtc_bandwidth_compute()
321 a.full = dfixed_const(16); in rs690_crtc_bandwidth_compute()
322 rdev->pm.sclk.full = dfixed_mul(rdev->pm.max_bandwidth, a); in rs690_crtc_bandwidth_compute()
323 a.full = dfixed_const(1000); in rs690_crtc_bandwidth_compute()
324 rdev->pm.sclk.full = dfixed_div(a, rdev->pm.sclk); in rs690_crtc_bandwidth_compute()
330 a.full = dfixed_const(256 * 13); in rs690_crtc_bandwidth_compute()
331 chunk_time.full = dfixed_mul(rdev->pm.sclk, a); in rs690_crtc_bandwidth_compute()
332 a.full = dfixed_const(10); in rs690_crtc_bandwidth_compute()
333 chunk_time.full = dfixed_div(chunk_time, a); in rs690_crtc_bandwidth_compute()
344 a.full = dfixed_const(3); in rs690_crtc_bandwidth_compute()
345 wm->worst_case_latency.full = dfixed_mul(a, chunk_time); in rs690_crtc_bandwidth_compute()
346 wm->worst_case_latency.full += read_delay_latency.full; in rs690_crtc_bandwidth_compute()
348 a.full = dfixed_const(2); in rs690_crtc_bandwidth_compute()
349 wm->worst_case_latency.full = dfixed_mul(a, chunk_time); in rs690_crtc_bandwidth_compute()
350 wm->worst_case_latency.full += read_delay_latency.full; in rs690_crtc_bandwidth_compute()
364 tolerable_latency.full = line_time.full; in rs690_crtc_bandwidth_compute()
366 tolerable_latency.full = dfixed_const(wm->lb_request_fifo_depth - 2); in rs690_crtc_bandwidth_compute()
367 tolerable_latency.full = request_fifo_depth.full - tolerable_latency.full; in rs690_crtc_bandwidth_compute()
368 tolerable_latency.full = dfixed_mul(tolerable_latency, chunk_time); in rs690_crtc_bandwidth_compute()
369 tolerable_latency.full = line_time.full - tolerable_latency.full; in rs690_crtc_bandwidth_compute()
372 wm->dbpp.full = dfixed_const(4 * 8); in rs690_crtc_bandwidth_compute()
377 a.full = dfixed_const(16); in rs690_crtc_bandwidth_compute()
378 wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rs690_crtc_bandwidth_compute()
379 wm->priority_mark_max.full = dfixed_div(wm->priority_mark_max, a); in rs690_crtc_bandwidth_compute()
380 wm->priority_mark_max.full = dfixed_ceil(wm->priority_mark_max); in rs690_crtc_bandwidth_compute()
383 estimated_width.full = tolerable_latency.full - wm->worst_case_latency.full; in rs690_crtc_bandwidth_compute()
384 estimated_width.full = dfixed_div(estimated_width, consumption_time); in rs690_crtc_bandwidth_compute()
386 wm->priority_mark.full = dfixed_const(10); in rs690_crtc_bandwidth_compute()
388 a.full = dfixed_const(16); in rs690_crtc_bandwidth_compute()
389 wm->priority_mark.full = dfixed_div(estimated_width, a); in rs690_crtc_bandwidth_compute()
390 wm->priority_mark.full = dfixed_ceil(wm->priority_mark); in rs690_crtc_bandwidth_compute()
391 wm->priority_mark.full = wm->priority_mark_max.full - wm->priority_mark.full; in rs690_crtc_bandwidth_compute()
445 a.full = dfixed_mul(wm0.dbpp, wm0.num_line_pair); in rs690_bandwidth_update()
447 a.full = wm0.num_line_pair.full; in rs690_bandwidth_update()
449 b.full = dfixed_mul(wm1.dbpp, wm1.num_line_pair); in rs690_bandwidth_update()
451 b.full = wm1.num_line_pair.full; in rs690_bandwidth_update()
452 a.full += b.full; in rs690_bandwidth_update()
453 fill_rate.full = dfixed_div(wm0.sclk, a); in rs690_bandwidth_update()
454 if (wm0.consumption_rate.full > fill_rate.full) { in rs690_bandwidth_update()
455 b.full = wm0.consumption_rate.full - fill_rate.full; in rs690_bandwidth_update()
456 b.full = dfixed_mul(b, wm0.active_time); in rs690_bandwidth_update()
457 a.full = dfixed_mul(wm0.worst_case_latency, in rs690_bandwidth_update()
459 a.full = a.full + b.full; in rs690_bandwidth_update()
460 b.full = dfixed_const(16 * 1000); in rs690_bandwidth_update()
461 priority_mark02.full = dfixed_div(a, b); in rs690_bandwidth_update()
463 a.full = dfixed_mul(wm0.worst_case_latency, in rs690_bandwidth_update()
465 b.full = dfixed_const(16 * 1000); in rs690_bandwidth_update()
466 priority_mark02.full = dfixed_div(a, b); in rs690_bandwidth_update()
468 if (wm1.consumption_rate.full > fill_rate.full) { in rs690_bandwidth_update()
469 b.full = wm1.consumption_rate.full - fill_rate.full; in rs690_bandwidth_update()
470 b.full = dfixed_mul(b, wm1.active_time); in rs690_bandwidth_update()
471 a.full = dfixed_mul(wm1.worst_case_latency, in rs690_bandwidth_update()
473 a.full = a.full + b.full; in rs690_bandwidth_update()
474 b.full = dfixed_const(16 * 1000); in rs690_bandwidth_update()
475 priority_mark12.full = dfixed_div(a, b); in rs690_bandwidth_update()
477 a.full = dfixed_mul(wm1.worst_case_latency, in rs690_bandwidth_update()
479 b.full = dfixed_const(16 * 1000); in rs690_bandwidth_update()
480 priority_mark12.full = dfixed_div(a, b); in rs690_bandwidth_update()
482 if (wm0.priority_mark.full > priority_mark02.full) in rs690_bandwidth_update()
483 priority_mark02.full = wm0.priority_mark.full; in rs690_bandwidth_update()
485 priority_mark02.full = 0; in rs690_bandwidth_update()
486 if (wm0.priority_mark_max.full > priority_mark02.full) in rs690_bandwidth_update()
487 priority_mark02.full = wm0.priority_mark_max.full; in rs690_bandwidth_update()
488 if (wm1.priority_mark.full > priority_mark12.full) in rs690_bandwidth_update()
489 priority_mark12.full = wm1.priority_mark.full; in rs690_bandwidth_update()
491 priority_mark12.full = 0; in rs690_bandwidth_update()
492 if (wm1.priority_mark_max.full > priority_mark12.full) in rs690_bandwidth_update()
493 priority_mark12.full = wm1.priority_mark_max.full; in rs690_bandwidth_update()
502 a.full = dfixed_mul(wm0.dbpp, wm0.num_line_pair); in rs690_bandwidth_update()
504 a.full = wm0.num_line_pair.full; in rs690_bandwidth_update()
505 fill_rate.full = dfixed_div(wm0.sclk, a); in rs690_bandwidth_update()
506 if (wm0.consumption_rate.full > fill_rate.full) { in rs690_bandwidth_update()
507 b.full = wm0.consumption_rate.full - fill_rate.full; in rs690_bandwidth_update()
508 b.full = dfixed_mul(b, wm0.active_time); in rs690_bandwidth_update()
509 a.full = dfixed_mul(wm0.worst_case_latency, in rs690_bandwidth_update()
511 a.full = a.full + b.full; in rs690_bandwidth_update()
512 b.full = dfixed_const(16 * 1000); in rs690_bandwidth_update()
513 priority_mark02.full = dfixed_div(a, b); in rs690_bandwidth_update()
515 a.full = dfixed_mul(wm0.worst_case_latency, in rs690_bandwidth_update()
517 b.full = dfixed_const(16 * 1000); in rs690_bandwidth_update()
518 priority_mark02.full = dfixed_div(a, b); in rs690_bandwidth_update()
520 if (wm0.priority_mark.full > priority_mark02.full) in rs690_bandwidth_update()
521 priority_mark02.full = wm0.priority_mark.full; in rs690_bandwidth_update()
523 priority_mark02.full = 0; in rs690_bandwidth_update()
524 if (wm0.priority_mark_max.full > priority_mark02.full) in rs690_bandwidth_update()
525 priority_mark02.full = wm0.priority_mark_max.full; in rs690_bandwidth_update()
531 a.full = dfixed_mul(wm1.dbpp, wm1.num_line_pair); in rs690_bandwidth_update()
533 a.full = wm1.num_line_pair.full; in rs690_bandwidth_update()
534 fill_rate.full = dfixed_div(wm1.sclk, a); in rs690_bandwidth_update()
535 if (wm1.consumption_rate.full > fill_rate.full) { in rs690_bandwidth_update()
536 b.full = wm1.consumption_rate.full - fill_rate.full; in rs690_bandwidth_update()
537 b.full = dfixed_mul(b, wm1.active_time); in rs690_bandwidth_update()
538 a.full = dfixed_mul(wm1.worst_case_latency, in rs690_bandwidth_update()
540 a.full = a.full + b.full; in rs690_bandwidth_update()
541 b.full = dfixed_const(16 * 1000); in rs690_bandwidth_update()
542 priority_mark12.full = dfixed_div(a, b); in rs690_bandwidth_update()
544 a.full = dfixed_mul(wm1.worst_case_latency, in rs690_bandwidth_update()
546 b.full = dfixed_const(16 * 1000); in rs690_bandwidth_update()
547 priority_mark12.full = dfixed_div(a, b); in rs690_bandwidth_update()
549 if (wm1.priority_mark.full > priority_mark12.full) in rs690_bandwidth_update()
550 priority_mark12.full = wm1.priority_mark.full; in rs690_bandwidth_update()
552 priority_mark12.full = 0; in rs690_bandwidth_update()
553 if (wm1.priority_mark_max.full > priority_mark12.full) in rs690_bandwidth_update()
554 priority_mark12.full = wm1.priority_mark_max.full; in rs690_bandwidth_update()