Lines Matching defs:alps

177 	struct alps_softc *alps;
1407 struct alps_softc *alps = sc->alps;
1415 alps->sec_buttons = butmap[sc->packet[0] & PMS_PS2_BUTTONSMASK];
1432 WSMOUSE_INPUT(sc->sc_sec_wsmousedev, alps->sec_buttons, dx, dy, 0, 0);
1440 struct alps_softc *alps = sc->alps;
1450 DPRINTF("%s: alps: model query error\n", DEVNAME(sc));
1454 alps->version = (resp[0] << 8) | (resp[1] << 4) | (resp[2] / 20 + 1);
1457 if (alps->version == alps_models[i].version) {
1458 alps->model = alps_models[i].model;
1459 alps->mask = alps_models[i].mask;
1479 struct alps_softc *alps = sc->alps;
1494 if (sc->alps == NULL) {
1495 sc->alps = alps = malloc(sizeof(struct alps_softc),
1497 if (alps == NULL) {
1498 printf("%s: alps: not enough memory\n", DEVNAME(sc));
1503 free(sc->alps, M_DEVBUF, sizeof(struct alps_softc));
1504 sc->alps = NULL;
1510 free(sc->alps, M_DEVBUF, sizeof(struct alps_softc));
1511 sc->alps = NULL;
1517 (alps->model & ALPS_DUALPOINT ? "Dualpoint" : "Glidepoint"),
1518 alps->version);
1521 if (alps->model & ALPS_DUALPOINT) {
1529 if (alps->model == 0)
1532 if ((alps->model & ALPS_PASSTHROUGH) &&
1537 DPRINTF("%s: alps: passthrough on error\n", DEVNAME(sc));
1544 DPRINTF("%s: alps: tapping error\n", DEVNAME(sc));
1553 DPRINTF("%s: alps: absolute mode error\n", DEVNAME(sc));
1557 if ((alps->model & ALPS_PASSTHROUGH) &&
1562 DPRINTF("%s: alps: passthrough off error\n", DEVNAME(sc));
1566 alps->sec_buttons = 0;
1611 struct alps_softc *alps = sc->alps;
1613 if ((alps->model & ALPS_DUALPOINT) &&
1622 if ((data & alps->mask) != alps->mask)
1633 if ((alps->model & ALPS_INTERLEAVED) == 0 &&
1645 struct alps_softc *alps = sc->alps;
1649 if ((alps->model & ALPS_DUALPOINT) && alps_sec_proc(sc))
1680 if (alps->gesture == ALPS_TAP) {
1683 alps->old_x, alps->old_y, ALPS_PRESSURE, 0);
1690 alps->old_x, alps->old_y, 0, 0);
1698 if (alps->gesture != ALPS_DRAG || gesture != ALPS_TAP)
1699 alps->gesture = gesture;
1701 alps->old_x = x;
1702 alps->old_y = y;