Searched refs:smooth (Results 1 – 3 of 3) sorted by relevance
227 int smooth[ATP_SMOOTHSIZE]; member405 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()[all …]
231 #define CFG_GRA_HSMOOTH(smooth) ((smooth) << 14) argument248 #define CFG_DMA_HSMOOTH(smooth) ((smooth) << 6) argument
455 #define CFG_GRA_HSMOOTH(smooth) ((smooth)<<14) argument476 #define CFG_DMA_HSMOOTH(smooth) ((smooth)<<6) argument