Lines Matching refs:dz
947 int dz = 0; in wsp_intr_callback() local
1265 dz = (sc->dz_sum / tun.z_factor) * (tun.z_invert ? -1 : 1); in wsp_intr_callback()
1267 dz = 0; in wsp_intr_callback()
1270 dx = dy = dz = 0; in wsp_intr_callback()
1272 abs(dx) < 3 && abs(dy) < 3 && abs(dz) < 3) in wsp_intr_callback()
1273 dx = dy = dz = 0; in wsp_intr_callback()
1276 if (dx || dy || dz) in wsp_intr_callback()
1279 dx, dy, dz, sc->sc_touch, sc->sc_status.button); in wsp_intr_callback()
1282 sc->sc_status.dz += dz; in wsp_intr_callback()
1284 wsp_add_to_queue(sc, dx, -dy, dz, sc->sc_status.button); in wsp_intr_callback()
1321 wsp_add_to_queue(struct wsp_softc *sc, int dx, int dy, int dz, in wsp_add_to_queue() argument
1331 dz = imin(dz, 126); in wsp_add_to_queue()
1332 dz = imax(dz, -128); in wsp_add_to_queue()
1351 buf[5] = dz >> 1; /* dz / 2 */ in wsp_add_to_queue()
1352 buf[6] = dz - (dz >> 1);/* dz - (dz / 2) */ in wsp_add_to_queue()
1567 sc->sc_status.dz = 0; in wsp_ioctl()
1569 if (status->dx || status->dy || status->dz) in wsp_ioctl()