dfixed_const
a.full = dfixed_const(src_v);
b.full = dfixed_const(dst_v);
a.full = dfixed_const(src_h);
b.full = dfixed_const(dst_h);
amdgpu_crtc->vsc.full = dfixed_const(1);
amdgpu_crtc->hsc.full = dfixed_const(1);
a.full = dfixed_const(1000);
yclk.full = dfixed_const(wm->yclk);
dram_channels.full = dfixed_const(wm->dram_channels * 4);
a.full = dfixed_const(10);
dram_efficiency.full = dfixed_const(7);
a.full = dfixed_const(1000);
yclk.full = dfixed_const(wm->yclk);
dram_channels.full = dfixed_const(wm->dram_channels * 4);
a.full = dfixed_const(10);
disp_dram_allocation.full = dfixed_const(3); /* XXX worse case value 0.3 */
a.full = dfixed_const(1000);
sclk.full = dfixed_const(wm->sclk);
a.full = dfixed_const(10);
return_efficiency.full = dfixed_const(8);
a.full = dfixed_const(32);
a.full = dfixed_const(1000);
disp_clk.full = dfixed_const(wm->disp_clk);
a.full = dfixed_const(32);
a.full = dfixed_const(10);
disp_clk_request_efficiency.full = dfixed_const(8);
a.full = dfixed_const(1000);
line_time.full = dfixed_const(wm->active_time + wm->blank_time);
bpp.full = dfixed_const(wm->bytes_per_pixel);
src_width.full = dfixed_const(wm->src_width);
a.full = dfixed_const(2);
b.full = dfixed_const(1);
a.full = dfixed_const(available_bandwidth);
b.full = dfixed_const(wm->num_heads);
a.full = dfixed_const(max_src_lines_per_dst_line * wm->src_width * wm->bytes_per_pixel);
b.full = dfixed_const(1000);
c.full = dfixed_const(lb_fill_bw);
a.full = dfixed_const(1);
a.full = dfixed_const(16);
a.full = dfixed_const(1000);
yclk.full = dfixed_const(wm->yclk);
dram_channels.full = dfixed_const(wm->dram_channels * 4);
a.full = dfixed_const(10);
dram_efficiency.full = dfixed_const(7);
a.full = dfixed_const(1000);
yclk.full = dfixed_const(wm->yclk);
dram_channels.full = dfixed_const(wm->dram_channels * 4);
a.full = dfixed_const(10);
disp_dram_allocation.full = dfixed_const(3); /* XXX worse case value 0.3 */
a.full = dfixed_const(1000);
sclk.full = dfixed_const(wm->sclk);
a.full = dfixed_const(10);
return_efficiency.full = dfixed_const(8);
a.full = dfixed_const(32);
a.full = dfixed_const(1000);
disp_clk.full = dfixed_const(wm->disp_clk);
a.full = dfixed_const(32);
a.full = dfixed_const(10);
disp_clk_request_efficiency.full = dfixed_const(8);
a.full = dfixed_const(1000);
line_time.full = dfixed_const(wm->active_time + wm->blank_time);
bpp.full = dfixed_const(wm->bytes_per_pixel);
src_width.full = dfixed_const(wm->src_width);
a.full = dfixed_const(2);
b.full = dfixed_const(1);
a.full = dfixed_const(available_bandwidth);
b.full = dfixed_const(wm->num_heads);
a.full = dfixed_const(max_src_lines_per_dst_line * wm->src_width * wm->bytes_per_pixel);
b.full = dfixed_const(1000);
c.full = dfixed_const(lb_fill_bw);
a.full = dfixed_const(1);
a.full = dfixed_const(1000);
b.full = dfixed_const(mode->clock);
c.full = dfixed_const(latency_watermark_a);
a.full = dfixed_const(16);
a.full = dfixed_const(1000);
b.full = dfixed_const(mode->clock);
c.full = dfixed_const(latency_watermark_b);
a.full = dfixed_const(1000);
yclk.full = dfixed_const(wm->yclk);
dram_channels.full = dfixed_const(wm->dram_channels * 4);
a.full = dfixed_const(10);
dram_efficiency.full = dfixed_const(7);
a.full = dfixed_const(1000);
yclk.full = dfixed_const(wm->yclk);
dram_channels.full = dfixed_const(wm->dram_channels * 4);
a.full = dfixed_const(10);
disp_dram_allocation.full = dfixed_const(3); /* XXX worse case value 0.3 */
a.full = dfixed_const(1000);
sclk.full = dfixed_const(wm->sclk);
a.full = dfixed_const(10);
return_efficiency.full = dfixed_const(8);
a.full = dfixed_const(32);
a.full = dfixed_const(1000);
disp_clk.full = dfixed_const(wm->disp_clk);
a.full = dfixed_const(32);
a.full = dfixed_const(10);
disp_clk_request_efficiency.full = dfixed_const(8);
a.full = dfixed_const(1000);
line_time.full = dfixed_const(wm->active_time + wm->blank_time);
bpp.full = dfixed_const(wm->bytes_per_pixel);
src_width.full = dfixed_const(wm->src_width);
a.full = dfixed_const(2);
b.full = dfixed_const(1);
a.full = dfixed_const(available_bandwidth);
b.full = dfixed_const(wm->num_heads);
a.full = dfixed_const(max_src_lines_per_dst_line * wm->src_width * wm->bytes_per_pixel);
b.full = dfixed_const(1000);
c.full = dfixed_const(lb_fill_bw);
a.full = dfixed_const(1);
return dfixed_const(pbn_div_x100) / 100;
req_slots = DIV_ROUND_UP(dfixed_const(pbn), topology_state->pbn_div.full);
mst_state->pbn_div.full = dfixed_const(0);
pbn.full = dfixed_const(intel_dp_mst_calc_pbn(adjusted_mode->crtc_clock,
a.full = dfixed_const(1000);
yclk.full = dfixed_const(wm->yclk);
dram_channels.full = dfixed_const(wm->dram_channels * 4);
a.full = dfixed_const(10);
dram_efficiency.full = dfixed_const(7);
a.full = dfixed_const(1000);
yclk.full = dfixed_const(wm->yclk);
dram_channels.full = dfixed_const(wm->dram_channels * 4);
a.full = dfixed_const(10);
disp_dram_allocation.full = dfixed_const(3); /* XXX worse case value 0.3 */
a.full = dfixed_const(1000);
sclk.full = dfixed_const(wm->sclk);
a.full = dfixed_const(10);
return_efficiency.full = dfixed_const(8);
a.full = dfixed_const(32);
a.full = dfixed_const(1000);
disp_clk.full = dfixed_const(wm->disp_clk);
a.full = dfixed_const(32);
a.full = dfixed_const(10);
disp_clk_request_efficiency.full = dfixed_const(8);
a.full = dfixed_const(1000);
line_time.full = dfixed_const(wm->active_time + wm->blank_time);
bpp.full = dfixed_const(wm->bytes_per_pixel);
src_width.full = dfixed_const(wm->src_width);
a.full = dfixed_const(2);
b.full = dfixed_const(1);
a.full = dfixed_const(available_bandwidth);
b.full = dfixed_const(wm->num_heads);
a.full = dfixed_const(max_src_lines_per_dst_line * wm->src_width * wm->bytes_per_pixel);
b.full = dfixed_const(1000);
c.full = dfixed_const(lb_fill_bw);
a.full = dfixed_const(1);
a.full = dfixed_const(1000);
yclk.full = dfixed_const(wm->yclk);
dram_channels.full = dfixed_const(wm->dram_channels * 4);
a.full = dfixed_const(10);
dram_efficiency.full = dfixed_const(7);
a.full = dfixed_const(1000);
yclk.full = dfixed_const(wm->yclk);
dram_channels.full = dfixed_const(wm->dram_channels * 4);
a.full = dfixed_const(10);
disp_dram_allocation.full = dfixed_const(3); /* XXX worse case value 0.3 */
a.full = dfixed_const(1000);
sclk.full = dfixed_const(wm->sclk);
a.full = dfixed_const(10);
return_efficiency.full = dfixed_const(8);
a.full = dfixed_const(32);
a.full = dfixed_const(1000);
disp_clk.full = dfixed_const(wm->disp_clk);
a.full = dfixed_const(10);
disp_clk_request_efficiency.full = dfixed_const(8);
a.full = dfixed_const(32);
a.full = dfixed_const(1000);
line_time.full = dfixed_const(wm->active_time + wm->blank_time);
bpp.full = dfixed_const(wm->bytes_per_pixel);
src_width.full = dfixed_const(wm->src_width);
a.full = dfixed_const(2);
b.full = dfixed_const(1);
a.full = dfixed_const(available_bandwidth);
b.full = dfixed_const(wm->num_heads);
a.full = dfixed_const(max_src_lines_per_dst_line * wm->src_width * wm->bytes_per_pixel);
b.full = dfixed_const(1000);
c.full = dfixed_const(lb_fill_bw);
a.full = dfixed_const(1);
a.full = dfixed_const(1000);
b.full = dfixed_const(mode->clock);
c.full = dfixed_const(latency_watermark_a);
a.full = dfixed_const(16);
a.full = dfixed_const(1000);
b.full = dfixed_const(mode->clock);
c.full = dfixed_const(latency_watermark_b);
a.full = dfixed_const(16);
temp_ff.full = dfixed_const(temp);
temp_ff.full = dfixed_const(1000);
pix_clk.full = dfixed_const(mode1->clock); /* convert to fixed point */
temp_ff.full = dfixed_const(pixel_bytes1);
temp_ff.full = dfixed_const(1000);
pix_clk2.full = dfixed_const(mode2->clock); /* convert to fixed point */
temp_ff.full = dfixed_const(pixel_bytes2);
trcd_ff.full = dfixed_const(mem_trcd);
trp_ff.full = dfixed_const(mem_trp);
tras_ff.full = dfixed_const(mem_tras);
tcas_ff.full += dfixed_const(data);
agpmode_ff.full = dfixed_const(radeon_agpmode);
sclk_delay_ff.full = dfixed_const(250);
sclk_delay_ff.full = dfixed_const(41);
sclk_delay_ff.full = dfixed_const(33);
sclk_delay_ff.full = dfixed_const(57);
sclk_delay_ff.full = dfixed_const(41);
k1.full = dfixed_const(40);
k1.full = dfixed_const(20);
k1.full = dfixed_const(40);
temp_ff.full = dfixed_const(2);
temp_ff.full = dfixed_const(c);
temp_ff.full = dfixed_const(4);
temp_ff.full = dfixed_const((2 * (cur_size - (rdev->mc.vram_is_ddr + 1))));
temp_ff.full = dfixed_const(cur_size);
disp_latency_overhead.full = dfixed_const(8);
temp_ff.full = dfixed_const((16/pixel_bytes1));
temp_ff.full = dfixed_const((16/pixel_bytes2));
temp_ff.full = dfixed_const(temp);
a.full = dfixed_const(100);
rdev->pm.sclk.full = dfixed_const(sclk);
rdev->pm.mclk.full = dfixed_const(mclk);
a.full = dfixed_const(16);
a.full = dfixed_const(src_v);
b.full = dfixed_const(dst_v);
a.full = dfixed_const(src_h);
b.full = dfixed_const(dst_h);
radeon_crtc->vsc.full = dfixed_const(1);
radeon_crtc->hsc.full = dfixed_const(1);
rdev->pm.igp_system_mclk.full = dfixed_const(rdev->clock.default_mclk);
rdev->pm.igp_system_mclk.full = dfixed_const(66700);
rdev->pm.igp_ht_link_clk.full = dfixed_const(le32_to_cpu(info->info_v2.ulHTLinkFreq));
rdev->pm.igp_ht_link_width.full = dfixed_const(le16_to_cpu(info->info_v2.usMinHTLinkWidth));
rdev->pm.igp_sideport_mclk.full = dfixed_const(200);
rdev->pm.igp_system_mclk.full = dfixed_const(200);
rdev->pm.igp_ht_link_clk.full = dfixed_const(1000);
rdev->pm.igp_ht_link_width.full = dfixed_const(8);
rdev->pm.igp_sideport_mclk.full = dfixed_const(200);
rdev->pm.igp_system_mclk.full = dfixed_const(200);
rdev->pm.igp_ht_link_clk.full = dfixed_const(1000);
rdev->pm.igp_ht_link_width.full = dfixed_const(8);
tmp.full = dfixed_const(4);
tmp.full = dfixed_const(5);
tmp.full = dfixed_const(14);
tmp.full = dfixed_const(10);
a.full = dfixed_const(100);
sclk.full = dfixed_const(selected_sclk);
a.full = dfixed_const(16);
if (crtc->vsc.full > dfixed_const(2))
wm->num_line_pair.full = dfixed_const(2);
wm->num_line_pair.full = dfixed_const(1);
b.full = dfixed_const(mode->crtc_hdisplay);
c.full = dfixed_const(256);
if (a.full < dfixed_const(4)) {
a.full = dfixed_const(mode->clock);
b.full = dfixed_const(1000);
b.full = dfixed_const(2);
c.full = dfixed_const(2);
a.full = dfixed_const(1);
a.full = dfixed_const(crtc->base.mode.crtc_htotal);
a.full = dfixed_const(crtc->base.mode.crtc_htotal);
b.full = dfixed_const(crtc->base.mode.crtc_hdisplay);
read_delay_latency.full = dfixed_const(370 * 800);
a.full = dfixed_const(1000);
read_delay_latency.full = dfixed_const(5000);
a.full = dfixed_const(16);
a.full = dfixed_const(1000);
a.full = dfixed_const(256 * 13);
a.full = dfixed_const(10);
a.full = dfixed_const(3);
a.full = dfixed_const(2);
tolerable_latency.full = dfixed_const(wm->lb_request_fifo_depth - 2);
wm->dbpp.full = dfixed_const(4 * 8);
a.full = dfixed_const(16);
wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay);
wm->priority_mark.full = dfixed_const(10);
a.full = dfixed_const(16);
b.full = dfixed_const(16 * 1000);
b.full = dfixed_const(16 * 1000);
b.full = dfixed_const(16 * 1000);
b.full = dfixed_const(16 * 1000);
b.full = dfixed_const(16 * 1000);
b.full = dfixed_const(16 * 1000);
b.full = dfixed_const(16 * 1000);
b.full = dfixed_const(16 * 1000);
tmp.full = dfixed_const(100);
rdev->pm.igp_sideport_mclk.full = dfixed_const(le32_to_cpu(info->info.ulBootUpMemoryClock));
rdev->pm.igp_system_mclk.full = dfixed_const(le16_to_cpu(info->info.usK8MemoryClock));
rdev->pm.igp_system_mclk.full = dfixed_const(rdev->clock.default_mclk);
rdev->pm.igp_system_mclk.full = dfixed_const(400);
rdev->pm.igp_ht_link_clk.full = dfixed_const(le16_to_cpu(info->info.usFSBClock));
rdev->pm.igp_ht_link_width.full = dfixed_const(info->info.ucHTLinkWidth);
tmp.full = dfixed_const(100);
rdev->pm.igp_sideport_mclk.full = dfixed_const(le32_to_cpu(info->info_v2.ulBootUpSidePortClock));
rdev->pm.igp_system_mclk.full = dfixed_const(le32_to_cpu(info->info_v2.ulBootUpUMAClock));
a.full = dfixed_const(crtc->base.mode.crtc_htotal);
b.full = dfixed_const(crtc->base.mode.crtc_hdisplay);
a.full = dfixed_const(600 * 1000);
read_delay_latency.full = dfixed_const(1000);
a.full = dfixed_const(3);
tolerable_latency.full = dfixed_const(wm->lb_request_fifo_depth - 2);
wm->dbpp.full = dfixed_const(2 * 16);
a.full = dfixed_const(16);
wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay);
a.full = dfixed_const(16);
a.full = dfixed_const(16);
b.full = dfixed_const(16 * 1000);
a.full = dfixed_const(16);
b.full = dfixed_const(16 * 1000);
a.full = dfixed_const(16);
b.full = dfixed_const(16);
a.full = dfixed_const(16);
b.full = dfixed_const(16 * 1000);
a.full = dfixed_const(100);
sclk.full = dfixed_const(selected_sclk);
if (crtc->vsc.full > dfixed_const(2))
wm->num_line_pair.full = dfixed_const(2);
wm->num_line_pair.full = dfixed_const(1);
b.full = dfixed_const(mode->crtc_hdisplay);
c.full = dfixed_const(256);
if (a.full < dfixed_const(4)) {
a.full = dfixed_const(mode->clock);
b.full = dfixed_const(1000);
b.full = dfixed_const(2);
c.full = dfixed_const(2);
a.full = dfixed_const(1);
a.full = dfixed_const(crtc->base.mode.crtc_htotal);
a.full = dfixed_const(1000);
yclk.full = dfixed_const(wm->yclk);
dram_channels.full = dfixed_const(wm->dram_channels * 4);
a.full = dfixed_const(10);
dram_efficiency.full = dfixed_const(7);
a.full = dfixed_const(1000);
yclk.full = dfixed_const(wm->yclk);
dram_channels.full = dfixed_const(wm->dram_channels * 4);
a.full = dfixed_const(10);
disp_dram_allocation.full = dfixed_const(3); /* XXX worse case value 0.3 */
a.full = dfixed_const(1000);
sclk.full = dfixed_const(wm->sclk);
a.full = dfixed_const(10);
return_efficiency.full = dfixed_const(8);
a.full = dfixed_const(32);
a.full = dfixed_const(1000);
disp_clk.full = dfixed_const(wm->disp_clk);
a.full = dfixed_const(dce6_get_dmif_bytes_per_request(wm) / 2);
a.full = dfixed_const(1000);
sclk.full = dfixed_const(wm->sclk);
a.full = dfixed_const(dce6_get_dmif_bytes_per_request(wm));
a.full = dfixed_const(10);
disp_clk_request_efficiency.full = dfixed_const(8);
a.full = dfixed_const(min_bandwidth);
a.full = dfixed_const(1000);
line_time.full = dfixed_const(wm->active_time + wm->blank_time);
bpp.full = dfixed_const(wm->bytes_per_pixel);
src_width.full = dfixed_const(wm->src_width);
a.full = dfixed_const(2);
b.full = dfixed_const(1);
a.full = dfixed_const(available_bandwidth);
b.full = dfixed_const(wm->num_heads);
a.full = dfixed_const(max_src_lines_per_dst_line * wm->src_width * wm->bytes_per_pixel);
b.full = dfixed_const(1000);
c.full = dfixed_const(lb_fill_bw);
a.full = dfixed_const(1);
a.full = dfixed_const(1000);
b.full = dfixed_const(mode->clock);
c.full = dfixed_const(latency_watermark_a);
a.full = dfixed_const(16);
a.full = dfixed_const(1000);
b.full = dfixed_const(mode->clock);
c.full = dfixed_const(latency_watermark_b);
a.full = dfixed_const(16);
outf.full = max_t(u32, outf.full - dfixed_const(1), dfixed_const(1));
inf.full -= dfixed_const(1);
dda_inc = min_t(u32, dda_inc, dfixed_const(max));
#define dfixed_init(A) { .full = dfixed_const((A)) }
return dfixed_const(non_frac);
if (A.full > dfixed_const(non_frac))
return dfixed_const(non_frac + 1);
return dfixed_const(non_frac);