Home | History | Annotate | Download | only in common

Lines Matching refs:ip

204 	struct ite_data *ip;
221 ip = &ite_data[i];
222 ip->scode = hw->hw_sc;
223 ip->isw = &itesw[dtype];
224 ip->regbase = (void *)fb;
226 ip->fbbase = (void *)(*((uint8_t *)ip->regbase + fboff) << 16);
228 if (DIO_ISDIOII(ip->scode))
229 ip->fbbase = (uint8_t *)ip->fbbase + (int)ip->regbase;
230 ip->fbwidth = fb->fbwmsb << 8 | fb->fbwlsb;
231 ip->fbheight = fb->fbhmsb << 8 | fb->fbhlsb;
232 ip->dwidth = fb->dwmsb << 8 | fb->dwlsb;
233 ip->dheight = fb->dhmsb << 8 | fb->dhlsb;
241 if (ip->dwidth > ip->fbwidth)
242 ip->dwidth = ip->fbwidth;
243 if (ip->dheight > ip->fbheight)
244 ip->dheight = ip->fbheight;
247 (*itesw[dtype].ite_probe)(ip) != 0)
249 ip->alive = 1;
283 ip = &ite_data[i];
284 ip->scode = slotno;
285 ip->isw = &itesw[dtype];
287 ip->regbase = (uint8_t *)(INTIOBASE + FB_BASE);
289 ip->alive = 1;
309 struct ite_data *ip;
327 ip = &ite_data[ite];
328 if (ip->alive == 0)
330 if ((int)ip->regbase == INTIOBASE + FB_BASE) {
338 ip = &ite_data[unit];
339 curcons_scode = ip->scode;
348 struct ite_data *ip;
354 ip = &ite_data[ite];
355 sp = ip->isw;
357 ip->curx = 0;
358 ip->cury = 0;
359 ip->cursorx = 0;
360 ip->cursory = 0;
362 (*sp->ite_init)(ip);
363 (*sp->ite_cursor)(ip, DRAW_CURSOR);
372 struct ite_data *ip = &ite_data[itecons];
373 const struct itesw *sp = ip->isw;
379 if (++ip->cury == ip->rows) {
380 ip->cury--;
381 ite_scroll(ip);
383 (*sp->ite_cursor)(ip, MOVE_CURSOR);
387 ip->curx = 0;
388 (*sp->ite_cursor)(ip, MOVE_CURSOR);
392 if (--ip->curx < 0)
393 ip->curx = 0;
395 (*sp->ite_cursor)(ip, MOVE_CURSOR);
401 (*sp->ite_putc)(ip, c, ip->cury, ip->curx);
402 (*sp->ite_cursor)(ip, DRAW_CURSOR);
403 itecheckwrap(ip);
409 itecheckwrap(struct ite_data *ip)
411 const struct itesw *sp = ip->isw;
413 if (++ip->curx == ip->cols) {
414 ip->curx = 0;
415 if (++ip->cury == ip->rows) {
416 --ip->cury;
417 ite_scroll(ip);
421 (*sp->ite_cursor)(ip, MOVE_CURSOR);
425 ite_scroll(struct ite_data *ip)
427 const struct itesw *sp = ip->isw;
430 (*sp->ite_cursor)(ip, ERASE_CURSOR);
432 (*sp->ite_scroll)(ip);
434 (*sp->ite_clear)(ip, ip->rows - 1, 0, 1, ip->cols);
436 (*sp->ite_cursor)(ip, DRAW_CURSOR);