Lines Matching refs:at

42 #define vtb_wrap(vtb, at, offset)				\  argument
43 (((at) + (offset) + (vtb)->vtb_size)%(vtb)->vtb_size)
146 sc_vtb_getc(sc_vtb_t *vtb, int at) in sc_vtb_getc() argument
149 return (readw(vtb->vtb_buffer + at) & 0x00ff); in sc_vtb_getc()
151 return (*(vtb->vtb_buffer + at) & 0x00ff); in sc_vtb_getc()
155 sc_vtb_geta(sc_vtb_t *vtb, int at) in sc_vtb_geta() argument
158 return (readw(vtb->vtb_buffer + at) & 0xff00); in sc_vtb_geta()
160 return (*(vtb->vtb_buffer + at) & 0xff00); in sc_vtb_geta()
164 sc_vtb_putc(sc_vtb_t *vtb, int at, int c, int a) in sc_vtb_putc() argument
167 writew(vtb->vtb_buffer + at, a | c); in sc_vtb_putc()
169 *(vtb->vtb_buffer + at) = a | c; in sc_vtb_putc()
245 sc_vtb_erase(sc_vtb_t *vtb, int at, int count, int c, int attr) in sc_vtb_erase() argument
247 if (at + count > vtb->vtb_size) in sc_vtb_erase()
248 count = vtb->vtb_size - at; in sc_vtb_erase()
250 fillw_io(attr | c, vtb->vtb_buffer + at, count); in sc_vtb_erase()
252 fillw(attr | c, vtb->vtb_buffer + at, count); in sc_vtb_erase()
274 sc_vtb_delete(sc_vtb_t *vtb, int at, int count, int c, int attr) in sc_vtb_delete() argument
278 if (at + count > vtb->vtb_size) in sc_vtb_delete()
279 count = vtb->vtb_size - at; in sc_vtb_delete()
280 len = vtb->vtb_size - at - count; in sc_vtb_delete()
283 sc_vtb_bcopy(vtb->vtb_buffer + at + count, in sc_vtb_delete()
284 vtb->vtb_buffer + at, in sc_vtb_delete()
287 sc_vtb_bcopy(vtb->vtb_buffer + at + count, in sc_vtb_delete()
288 vtb->vtb_buffer + at, in sc_vtb_delete()
293 fillw_io(attr | c, vtb->vtb_buffer + at + len, in sc_vtb_delete()
294 vtb->vtb_size - at - len); in sc_vtb_delete()
296 fillw(attr | c, vtb->vtb_buffer + at + len, in sc_vtb_delete()
297 vtb->vtb_size - at - len); in sc_vtb_delete()
301 sc_vtb_ins(sc_vtb_t *vtb, int at, int count, int c, int attr) in sc_vtb_ins() argument
303 if (at + count > vtb->vtb_size) { in sc_vtb_ins()
304 count = vtb->vtb_size - at; in sc_vtb_ins()
307 sc_vtb_bcopy(vtb->vtb_buffer + at, in sc_vtb_ins()
308 vtb->vtb_buffer + at + count, in sc_vtb_ins()
309 (vtb->vtb_size - at - count)*sizeof(uint16_t)); in sc_vtb_ins()
311 sc_vtb_bcopy(vtb->vtb_buffer + at, in sc_vtb_ins()
312 vtb->vtb_buffer + at + count, in sc_vtb_ins()
313 (vtb->vtb_size - at - count)*sizeof(uint16_t)); in sc_vtb_ins()
317 fillw_io(attr | c, vtb->vtb_buffer + at, count); in sc_vtb_ins()
319 fillw(attr | c, vtb->vtb_buffer + at, count); in sc_vtb_ins()