Lines Matching defs:private
63 struct TslibPrivate *private = pi->driverPrivate;
68 if (private->raw_event_hook) {
69 while (ts_read_raw(private->tsDev, &event, 1) == 1)
70 private->raw_event_hook (event.x, event.y, event.pressure,
71 private->raw_event_closure);
75 while (ts_read(private->tsDev, &event, 1) == 1) {
84 if (KdCurScreen == private->phys_screen) {
89 if ((private->lastx == 0) || (private->lasty == 0)) {
93 x = event.x - private->lastx;
94 y = event.y - private->lasty;
97 private->lastx = event.x;
98 private->lasty = event.y;
101 x = private->lastx;
102 y = private->lasty;
112 struct TslibPrivate *private = pi->driverPrivate;
114 private->raw_event_hook = NULL;
115 private->raw_event_closure = NULL;
121 private->tsDev = ts_open(pi->path, 0);
122 if (!private->tsDev) {
127 if (ts_config(private->tsDev)) {
129 ts_close(private->tsDev);
130 private->tsDev = NULL;
134 private->fd = ts_fd(private->tsDev);
136 KdRegisterFd(private->fd, TsRead, pi);
145 struct TslibPrivate *private = pi->driverPrivate;
147 if (private->fd)
148 KdUnregisterFd(pi, private->fd, TRUE);
150 if (private->tsDev)
151 ts_close(private->tsDev);
153 private->fd = 0;
154 private->tsDev = NULL;
161 struct TslibPrivate *private = NULL;
171 private = pi->driverPrivate;
173 private->phys_screen = 0;