Lines Matching refs:tun
850 struct wsp_tuning tun = wsp_tuning;
862 wsp_runing_rangecheck(&tun);
948 if (sc->index[0]->touch_major > tun.pressure_tap_threshold &&
953 if (sc->index[0]->touch_major > tun.pressure_tap_threshold-30 &&
954 sc->index[1]->touch_major > tun.pressure_tap_threshold-30)
958 if (sc->index[0]->touch_major > tun.pressure_tap_threshold-40 &&
959 sc->index[1]->touch_major > tun.pressure_tap_threshold-40 &&
960 sc->index[2]->touch_major > tun.pressure_tap_threshold-40)
972 if (sc->index[0]->touch_major < tun.pressure_untouch_threshold &&
984 if (!(params->caps & HAS_INTEGRATED_BUTTON) || tun.enable_single_tap_clicks) {
1007 if ((sc->dt_sum / tun.scr_hor_threshold) != 0 &&
1032 } else if (sc->index[0]->touch_major >= tun.pressure_touch_threshold &&
1035 } else if (sc->index[0]->touch_major >= tun.pressure_touch_threshold &&
1045 sc->index[0]->touch_major >= tun.pressure_touch_threshold) {
1097 rdz = (dy + sc->rdz) % tun.scale_factor;
1098 sc->dz_sum -= (dy + sc->rdz) / tun.scale_factor;
1101 if ((sc->dz_sum / tun.z_factor) != 0)
1104 rdx = (dx + sc->rdx) % tun.scale_factor;
1105 dx = (dx + sc->rdx) / tun.scale_factor;
1108 rdy = (dy + sc->rdy) % tun.scale_factor;
1109 dy = (dy + sc->rdy) / tun.scale_factor;
1117 abs(sc->dx_sum) + abs(sc->dy_sum) > tun.scr_hor_threshold)
1129 dz = sc->dz_sum / tun.z_factor;