Lines Matching defs:calc
1354 "What method do we do for TLP time calc 0=no-de-ack-comp, 1=ID, 2=2.1, 3=2.2");
3843 int32_t calc, logged, plus;
3879 calc = rack->r_ctl.rack_per_of_gp_rec + plus;
3880 if (calc > 0xffff)
3881 calc = 0xffff;
3883 rack->r_ctl.rack_per_of_gp_rec = (uint16_t)calc;
3894 calc = rack->r_ctl.rack_per_of_gp_ca + plus;
3895 if (calc > 0xffff)
3896 calc = 0xffff;
3898 rack->r_ctl.rack_per_of_gp_ca = (uint16_t)calc;
3908 calc = rack->r_ctl.rack_per_of_gp_ss + plus;
3909 if (calc > 0xffff)
3910 calc = 0xffff;
3911 rack->r_ctl.rack_per_of_gp_ss = (uint16_t)calc;
4466 uint32_t calc;
4470 calc = us_cts - rack->r_ctl.rc_time_probertt_entered;
4472 calc = 0;
4473 calc /= max(rack->r_ctl.rc_gp_srtt, 1);
4474 if (calc) {
4476 calc *= rack_per_of_gp_probertt_reduce;
4477 if (calc > rack_per_of_gp_probertt)
4480 rack->r_ctl.rack_per_of_gp_probertt = rack_per_of_gp_probertt - calc;