Lines Matching refs:smooth
213 int smooth[ATP_SMOOTHSIZE]; member
391 memset(dev->smooth, 0, 4 * sizeof(dev->smooth[0])); in atp_calculate_abs()
394 dev->smooth[i + 4] = xy_sensors[i] << ATP_SCALE; in atp_calculate_abs()
395 memset(&dev->smooth[nb_sensors + 4], 0, 4 * sizeof(dev->smooth[0])); in atp_calculate_abs()
399 dev->smooth_tmp[0] = (dev->smooth[0] + dev->smooth[1]) / 2; in atp_calculate_abs()
403 dev->smooth_tmp[i] = (dev->smooth[i - 1] + in atp_calculate_abs()
404 dev->smooth[i] * 2 + in atp_calculate_abs()
405 dev->smooth[i + 1]) / 4; in atp_calculate_abs()
408 dev->smooth_tmp[i] = (dev->smooth[i - 1] + dev->smooth[i]) / 2; in atp_calculate_abs()
410 memcpy(dev->smooth, dev->smooth_tmp, sizeof(dev->smooth)); in atp_calculate_abs()
418 if ((dev->smooth[i] >> ATP_SCALE) > 0) { in atp_calculate_abs()
419 pcum += dev->smooth[i] * i; in atp_calculate_abs()
420 psum += dev->smooth[i]; in atp_calculate_abs()