Lines Matching refs:pgbuf
90 u8 pgbuf[VTX_VIRTUALSIZE]; /* Page-buffer */
224 if (req->pgbuf < 0 || req->pgbuf >= NUM_DAUS)
226 memset(t->vdau[req->pgbuf].pgbuf, ' ', sizeof(t->vdau[0].pgbuf));
227 t->vdau[req->pgbuf].clrfound = true;
235 if (req->pgbuf < 0 || req->pgbuf >= NUM_DAUS)
237 t->vdau[req->pgbuf].clrfound = true;
254 req->pagemask < 0 || req->pagemask >= PGMASK_MAX || req->pgbuf < 0 || req->pgbuf >= NUM_DAUS)
256 t->vdau[req->pgbuf].sregs[0] = (req->pagemask & PG_HUND ? 0x10 : 0) | (req->page / 0x100);
257 t->vdau[req->pgbuf].sregs[1] = (req->pagemask & PG_TEN ? 0x10 : 0) | ((req->page / 0x10) & 0xf);
258 t->vdau[req->pgbuf].sregs[2] = (req->pagemask & PG_UNIT ? 0x10 : 0) | (req->page & 0xf);
259 t->vdau[req->pgbuf].sregs[3] = (req->pagemask & HR_TEN ? 0x10 : 0) | (req->hour / 0x10);
260 t->vdau[req->pgbuf].sregs[4] = (req->pagemask & HR_UNIT ? 0x10 : 0) | (req->hour & 0xf);
261 t->vdau[req->pgbuf].sregs[5] = (req->pagemask & MIN_TEN ? 0x10 : 0) | (req->minute / 0x10);
262 t->vdau[req->pgbuf].sregs[6] = (req->pagemask & MIN_UNIT ? 0x10 : 0) | (req->minute & 0xf);
263 t->vdau[req->pgbuf].stopped = false;
264 t->vdau[req->pgbuf].clrfound = true;
265 t->is_searching[req->pgbuf] = true;
276 if (req->pgbuf < 0 || req->pgbuf >= NUM_DAUS)
278 if (!t->vdau[req->pgbuf].stopped) {
280 i2c_sendbuf(t, 3, sizeof(t->vdau[0].sregs), t->vdau[req->pgbuf].sregs) ||
282 i2c_senddata(t, 2, 0, t->vdau[req->pgbuf].sregs[0] | 8, -1) ||
290 (memcmp(infobits, t->vdau[req->pgbuf].laststat, sizeof(infobits)) ||
291 time_after_eq(jiffies, t->vdau[req->pgbuf].expire)))
294 i2c_getdata(t, VTX_PAGESIZE, t->vdau[req->pgbuf].pgbuf))
296 t->vdau[req->pgbuf].expire = jiffies + PGBUF_EXPIRE;
297 memset(t->vdau[req->pgbuf].pgbuf + VTX_PAGESIZE, ' ', VTX_VIRTUALSIZE - VTX_PAGESIZE);
301 i2c_getdata(t, 40, t->vdau[req->pgbuf].pgbuf + VTX_PAGESIZE + 20 * 40))
305 i2c_getdata(t, 40, t->vdau[req->pgbuf].pgbuf + VTX_PAGESIZE + 16 * 40))
308 i2c_getdata(t, 40, t->vdau[req->pgbuf].pgbuf + VTX_PAGESIZE + 23 * 40))
311 t->vdau[req->pgbuf].clrfound = false;
312 memcpy(t->vdau[req->pgbuf].laststat, infobits, sizeof(infobits));
314 memcpy(infobits, t->vdau[req->pgbuf].laststat, sizeof(infobits));
317 memcpy(infobits, t->vdau[req->pgbuf].laststat, sizeof(infobits));
343 if (t->vdau[req->pgbuf].clrfound)
348 t->is_searching[req->pgbuf] = false;
357 if (req->pgbuf < 0 || req->pgbuf >= NUM_DAUS || req->start < 0 ||
360 if (copy_to_user(req->buffer, &t->vdau[req->pgbuf].pgbuf[req->start], req->end - req->start + 1))
380 if (req->start <= 31 && req->end >= 7 && t->is_searching[req->pgbuf]) {
400 if (req->pgbuf < 0 || req->pgbuf >= NUM_DAUS)
402 t->vdau[req->pgbuf].stopped = true;
403 t->is_searching[req->pgbuf] = false;
505 int pgbuf;
521 for (pgbuf = 0; pgbuf < NUM_DAUS; pgbuf++) {
522 memset(t->vdau[pgbuf].pgbuf, ' ', sizeof(t->vdau[0].pgbuf));
523 memset(t->vdau[pgbuf].sregs, 0, sizeof(t->vdau[0].sregs));
524 memset(t->vdau[pgbuf].laststat, 0, sizeof(t->vdau[0].laststat));
525 t->vdau[pgbuf].expire = 0;
526 t->vdau[pgbuf].clrfound = true;
527 t->vdau[pgbuf].stopped = true;
528 t->is_searching[pgbuf] = false;
578 int pgbuf;
603 for (pgbuf = 0; pgbuf < NUM_DAUS; pgbuf++) {
604 memset(t->vdau[pgbuf].pgbuf, ' ', sizeof(t->vdau[0].pgbuf));
605 memset(t->vdau[pgbuf].sregs, 0, sizeof(t->vdau[0].sregs));
606 memset(t->vdau[pgbuf].laststat, 0, sizeof(t->vdau[0].laststat));
607 t->vdau[pgbuf].expire = 0;
608 t->vdau[pgbuf].clrfound = true;
609 t->vdau[pgbuf].stopped = true;
610 t->is_searching[pgbuf] = false;