Lines Matching refs:smooth
212 int smooth[ATP_SMOOTHSIZE]; member
390 memset(dev->smooth, 0, 4 * sizeof(dev->smooth[0])); in atp_calculate_abs()
393 dev->smooth[i + 4] = xy_sensors[i] << ATP_SCALE; in atp_calculate_abs()
394 memset(&dev->smooth[nb_sensors + 4], 0, 4 * sizeof(dev->smooth[0])); in atp_calculate_abs()
398 dev->smooth_tmp[0] = (dev->smooth[0] + dev->smooth[1]) / 2; in atp_calculate_abs()
402 dev->smooth_tmp[i] = (dev->smooth[i - 1] + in atp_calculate_abs()
403 dev->smooth[i] * 2 + in atp_calculate_abs()
404 dev->smooth[i + 1]) / 4; in atp_calculate_abs()
407 dev->smooth_tmp[i] = (dev->smooth[i - 1] + dev->smooth[i]) / 2; in atp_calculate_abs()
409 memcpy(dev->smooth, dev->smooth_tmp, sizeof(dev->smooth)); in atp_calculate_abs()
417 if ((dev->smooth[i] >> ATP_SCALE) > 0) { in atp_calculate_abs()
418 pcum += dev->smooth[i] * i; in atp_calculate_abs()
419 psum += dev->smooth[i]; in atp_calculate_abs()