Lines Matching refs:temp2_fp

330 	s64 temp1_fp, temp2_fp, temp3_fp;  in msm_dp_panel_update_tu_timings()  local
375 temp2_fp = drm_fixp_from_fraction(in->bpp, 1); in msm_dp_panel_update_tu_timings()
376 temp3_fp = drm_fixp_div(temp2_fp, temp1_fp); in msm_dp_panel_update_tu_timings()
377 temp2_fp = drm_fixp_mul(tu->lwidth_fp, temp3_fp); in msm_dp_panel_update_tu_timings()
380 temp3_fp = drm_fixp_div(temp2_fp, temp1_fp); in msm_dp_panel_update_tu_timings()
399 temp2_fp = drm_fixp_mul(tu->pclk_fp, dwidth_dsc_fp); in msm_dp_panel_update_tu_timings()
400 temp1_fp = drm_fixp_div(temp2_fp, tu->lwidth_fp); in msm_dp_panel_update_tu_timings()
404 temp2_fp = drm_fixp_mul(tu->hbp_relative_to_pclk_fp, temp1_fp); in msm_dp_panel_update_tu_timings()
405 hbp_dsc_fp = temp2_fp; in msm_dp_panel_update_tu_timings()
421 s64 temp1_fp, temp2_fp, temp, temp1, temp2; in _tu_valid_boundary_calc() local
425 temp2_fp = drm_fixp_mul(tu->ratio_fp, temp1_fp); in _tu_valid_boundary_calc()
427 tu->new_valid_boundary_link = drm_fixp2int_ceil(temp2_fp); in _tu_valid_boundary_calc()
438 temp2_fp = tu->lwidth_fp; in _tu_valid_boundary_calc()
439 temp1_fp = drm_fixp_mul(temp2_fp, temp1_fp); in _tu_valid_boundary_calc()
440 temp2_fp = drm_fixp_div(temp1_fp, tu->average_valid2_fp); in _tu_valid_boundary_calc()
441 tu->n_tus = drm_fixp2int(temp2_fp); in _tu_valid_boundary_calc()
442 if ((temp2_fp & 0xFFFFFFFF) > 0xFFFFF000) in _tu_valid_boundary_calc()
446 temp2_fp = drm_fixp_mul(temp1_fp, tu->average_valid2_fp); in _tu_valid_boundary_calc()
448 temp2_fp = temp1_fp - temp2_fp; in _tu_valid_boundary_calc()
450 temp2_fp = drm_fixp_div(temp2_fp, temp1_fp); in _tu_valid_boundary_calc()
451 tu->n_remainder_symbols_per_lane_fp = temp2_fp; in _tu_valid_boundary_calc()
496 temp2_fp = drm_fixp_from_fraction(tu->n_tus_per_lane, 1); in _tu_valid_boundary_calc()
497 temp2_fp = temp2_fp + tu->last_partial_tu_fp; in _tu_valid_boundary_calc()
498 temp1_fp = drm_fixp_div(temp1_fp, temp2_fp); in _tu_valid_boundary_calc()
500 temp2_fp = drm_fixp_from_fraction(tu->n_tus_per_lane, 1); in _tu_valid_boundary_calc()
501 temp1_fp = drm_fixp_div(tu->total_valid_fp, temp2_fp); in _tu_valid_boundary_calc()
506 temp2_fp = drm_fixp_mul(tu->ratio_fp, temp1_fp); in _tu_valid_boundary_calc()
507 tu->n_n_err_fp = tu->effective_valid_fp - temp2_fp; in _tu_valid_boundary_calc()
510 temp2_fp = drm_fixp_mul(tu->ratio_fp, temp1_fp); in _tu_valid_boundary_calc()
511 tu->n_err_fp = tu->average_valid2_fp - temp2_fp; in _tu_valid_boundary_calc()
516 temp2_fp = tu->lwidth_fp; in _tu_valid_boundary_calc()
517 temp1_fp = drm_fixp_mul(temp2_fp, temp1_fp); in _tu_valid_boundary_calc()
518 temp2_fp = drm_fixp_div(temp1_fp, tu->average_valid2_fp); in _tu_valid_boundary_calc()
520 if (temp2_fp) in _tu_valid_boundary_calc()
521 tu->n_tus_incl_last_incomplete_tu = drm_fixp2int_ceil(temp2_fp); in _tu_valid_boundary_calc()
527 temp2_fp = drm_fixp_mul(tu->original_ratio_fp, temp1_fp); in _tu_valid_boundary_calc()
528 temp1_fp = tu->average_valid2_fp - temp2_fp; in _tu_valid_boundary_calc()
529 temp2_fp = drm_fixp_from_fraction(tu->n_tus_incl_last_incomplete_tu, 1); in _tu_valid_boundary_calc()
530 temp1_fp = drm_fixp_mul(temp2_fp, temp1_fp); in _tu_valid_boundary_calc()
537 temp2_fp = drm_fixp_mul(tu->original_ratio_fp, temp1_fp); in _tu_valid_boundary_calc()
539 temp2_fp = temp1_fp - temp2_fp; in _tu_valid_boundary_calc()
541 temp2_fp = drm_fixp_mul(temp1_fp, temp2_fp); in _tu_valid_boundary_calc()
543 if (temp2_fp) in _tu_valid_boundary_calc()
544 temp2 = drm_fixp2int_ceil(temp2_fp); in _tu_valid_boundary_calc()
550 temp2_fp = drm_fixp_from_fraction( in _tu_valid_boundary_calc()
552 temp1_fp = drm_fixp_mul(temp2_fp, temp1_fp); in _tu_valid_boundary_calc()
560 temp2_fp = drm_fixp_div(tu->lclk_fp, tu->pclk_fp); in _tu_valid_boundary_calc()
561 temp1_fp = drm_fixp_mul(temp1_fp, temp2_fp); in _tu_valid_boundary_calc()
632 s64 temp_fp = 0, temp1_fp = 0, temp2_fp = 0; in _dp_ctrl_calc_tu() local
653 temp2_fp = drm_fixp_mul(temp1_fp, tu->lclk_fp); in _dp_ctrl_calc_tu()
654 temp_fp = drm_fixp_div(temp2_fp, tu->pclk_fp); in _dp_ctrl_calc_tu()
658 temp2_fp = drm_fixp_mul(tu->pclk_fp, temp1_fp); in _dp_ctrl_calc_tu()
660 temp2_fp = drm_fixp_div(temp2_fp, temp1_fp); in _dp_ctrl_calc_tu()
661 tu->ratio_fp = drm_fixp_div(temp2_fp, tu->lclk_fp); in _dp_ctrl_calc_tu()
681 div64_u64_rem(tu->lwidth_fp, temp1_fp, &temp2_fp); in _dp_ctrl_calc_tu()
682 if (temp2_fp != 0 && in _dp_ctrl_calc_tu()
717 temp2_fp = drm_fixp_mul(tu->ratio_fp, temp1_fp); in _dp_ctrl_calc_tu()
718 temp = drm_fixp2int_ceil(temp2_fp); in _dp_ctrl_calc_tu()
720 tu->n_err_fp = temp1_fp - temp2_fp; in _dp_ctrl_calc_tu()
731 temp2_fp = drm_fixp_mul(tu->ratio_fp, temp1_fp); in _dp_ctrl_calc_tu()
732 tu->valid_boundary_link = drm_fixp2int_ceil(temp2_fp); in _dp_ctrl_calc_tu()
735 temp2_fp = tu->lwidth_fp; in _dp_ctrl_calc_tu()
736 temp2_fp = drm_fixp_mul(temp2_fp, temp1_fp); in _dp_ctrl_calc_tu()
739 temp2_fp = drm_fixp_div(temp2_fp, temp1_fp); in _dp_ctrl_calc_tu()
740 tu->n_tus = drm_fixp2int(temp2_fp); in _dp_ctrl_calc_tu()
741 if ((temp2_fp & 0xFFFFFFFF) > 0xFFFFF000) in _dp_ctrl_calc_tu()
751 temp2_fp = drm_fixp_mul(tu->original_ratio_fp, temp1_fp); in _dp_ctrl_calc_tu()
753 temp2_fp = temp1_fp - temp2_fp; in _dp_ctrl_calc_tu()
755 temp2_fp = drm_fixp_mul(temp1_fp, temp2_fp); in _dp_ctrl_calc_tu()
757 temp = drm_fixp2int(temp2_fp); in _dp_ctrl_calc_tu()
758 if (temp && temp2_fp) in _dp_ctrl_calc_tu()
759 tu->extra_bytes = drm_fixp2int_ceil(temp2_fp); in _dp_ctrl_calc_tu()
764 temp2_fp = drm_fixp_from_fraction(8, tu->bpp); in _dp_ctrl_calc_tu()
765 temp1_fp = drm_fixp_mul(temp1_fp, temp2_fp); in _dp_ctrl_calc_tu()
773 temp2_fp = drm_fixp_from_fraction(tu->extra_pclk_cycles, 1); in _dp_ctrl_calc_tu()
774 temp1_fp = drm_fixp_mul(temp2_fp, temp1_fp); in _dp_ctrl_calc_tu()
793 temp2_fp = drm_fixp_div(tu->resulting_valid_fp, temp1_fp); in _dp_ctrl_calc_tu()
794 tu->TU_ratio_err_fp = temp2_fp - tu->original_ratio_fp; in _dp_ctrl_calc_tu()
840 temp2_fp = drm_fixp_from_fraction( in _dp_ctrl_calc_tu()
842 temp1_fp = drm_fixp_mul(temp2_fp, temp1_fp); in _dp_ctrl_calc_tu()
880 temp2_fp = drm_fixp_from_fraction( in _dp_ctrl_calc_tu()
884 drm_fixp_div(temp1_fp, temp2_fp); in _dp_ctrl_calc_tu()
896 temp2_fp = drm_fixp_div(temp1_fp, in _dp_ctrl_calc_tu()
898 tu->n_tus = drm_fixp2int(temp2_fp); in _dp_ctrl_calc_tu()
905 temp2_fp = in _dp_ctrl_calc_tu()
907 tu->TU_ratio_err_fp = temp2_fp - tu->original_ratio_fp; in _dp_ctrl_calc_tu()
911 temp2_fp = drm_fixp_mul(LCLK_FAST_SKEW_fp, tu->lwidth_fp); in _dp_ctrl_calc_tu()
913 if (temp2_fp) in _dp_ctrl_calc_tu()
914 temp = drm_fixp2int_ceil(temp2_fp); in _dp_ctrl_calc_tu()
919 temp2_fp = drm_fixp_mul(tu->original_ratio_fp, temp1_fp); in _dp_ctrl_calc_tu()
921 temp2_fp = drm_fixp_div(temp1_fp, temp2_fp); in _dp_ctrl_calc_tu()
923 temp2_fp = drm_fixp_mul(temp1_fp, temp2_fp); in _dp_ctrl_calc_tu()
924 temp = drm_fixp2int(temp2_fp); in _dp_ctrl_calc_tu()