Lines Matching refs:um_report
242 struct umouse_report um_report; member
272 sc->um_report.buttons = 0; in umouse_event()
273 sc->um_report.z = 0; in umouse_event()
276 sc->um_report.buttons |= 0x01; /* left */ in umouse_event()
278 sc->um_report.buttons |= 0x04; /* middle */ in umouse_event()
280 sc->um_report.buttons |= 0x02; /* right */ in umouse_event()
282 sc->um_report.z = 1; in umouse_event()
284 sc->um_report.z = -1; in umouse_event()
287 sc->um_report.x = MOUSE_MAX_X * x / gc->width; in umouse_event()
288 sc->um_report.y = MOUSE_MAX_Y * y / gc->height; in umouse_event()
605 if ((value >> 8) == 0x01 && len >= sizeof(sc->um_report)) { in umouse_request()
608 if (len > sizeof(sc->um_report)) { in umouse_request()
609 data->blen = len - sizeof(sc->um_report); in umouse_request()
610 len = sizeof(sc->um_report); in umouse_request()
614 memcpy(data->buf, &sc->um_report, len); in umouse_request()
745 memcpy(udata, &sc->um_report, 6); in umouse_data_handler()
795 SNAPSHOT_VAR_OR_LEAVE(sc->um_report, meta, ret, done); in umouse_snapshot()