Lines Matching refs:smooth
227 int smooth[ATP_SMOOTHSIZE]; member
405 memset(dev->smooth, 0, 4 * sizeof(dev->smooth[0])); in atp_calculate_abs()
408 dev->smooth[i + 4] = xy_sensors[i] << ATP_SCALE; in atp_calculate_abs()
409 memset(&dev->smooth[nb_sensors + 4], 0, 4 * sizeof(dev->smooth[0])); in atp_calculate_abs()
413 dev->smooth_tmp[0] = (dev->smooth[0] + dev->smooth[1]) / 2; in atp_calculate_abs()
417 dev->smooth_tmp[i] = (dev->smooth[i - 1] + in atp_calculate_abs()
418 dev->smooth[i] * 2 + in atp_calculate_abs()
419 dev->smooth[i + 1]) / 4; in atp_calculate_abs()
422 dev->smooth_tmp[i] = (dev->smooth[i - 1] + dev->smooth[i]) / 2; in atp_calculate_abs()
424 memcpy(dev->smooth, dev->smooth_tmp, sizeof(dev->smooth)); in atp_calculate_abs()
432 if ((dev->smooth[i] >> ATP_SCALE) > 0) { in atp_calculate_abs()
433 pcum += dev->smooth[i] * i; in atp_calculate_abs()
434 psum += dev->smooth[i]; in atp_calculate_abs()