Lines Matching refs:sum
842 s64 integ_p, deriv_p, prop_p, sum;
874 sum = 0;
904 sum += deriv_p;
910 sum += prop_p;
912 /* Scale sum */
913 sum >>= 36;
915 DBG(" sum: %d\n", (int)sum);
916 state->rpm += (s32)sum;
1235 s64 integ_p, deriv_p, prop_p, sum;
1277 sum = 0;
1285 sum += integ_p;
1294 sum += deriv_p;
1299 sum += prop_p;
1301 /* Scale sum */
1302 sum >>= 36;
1304 DBG(" sum: %d\n", (int)sum);
1306 state->pwm += (s32)sum;
1308 state->pwm = sum;
1409 s64 integ_p, deriv_p, prop_p, sum;
1452 sum = 0;
1460 sum += integ_p;
1469 sum += deriv_p;
1474 sum += prop_p;
1476 /* Scale sum */
1477 sum >>= 36;
1479 DBG(" sum: %d\n", (int)sum);
1480 state->rpm += (s32)sum;
1533 s64 integ_p, deriv_p, prop_p, sum;
1570 sum = 0;
1578 sum += integ_p;
1587 sum += deriv_p;
1592 sum += prop_p;
1594 /* Scale sum */
1595 sum >>= 36;
1597 DBG(" sum: %d\n", (int)sum);
1598 state->output = (s32)sum;
1654 s64 integ_p, deriv_p, prop_p, sum;
1697 sum = 0;
1705 sum += integ_p;
1714 sum += deriv_p;
1719 sum += prop_p;
1721 /* Scale sum */
1722 sum >>= 36;
1724 DBG(" sum: %d\n", (int)sum);
1725 state->pwm = (s32)sum;