Lines Matching defs:at

45 #define vtb_pointer(vtb, at)					\
46 ((vtb)->vtb_buffer + sizeof(u_int16_t)*(at))
48 #define vtb_wrap(vtb, at, offset) \
49 (((at) + (offset) + (vtb)->vtb_size)%(vtb)->vtb_size)
156 sc_vtb_getc(sc_vtb_t *vtb, int at)
158 vm_offset_t p = vtb_pointer(vtb, at);
167 sc_vtb_geta(sc_vtb_t *vtb, int at)
169 vm_offset_t p = vtb_pointer(vtb, at);
190 sc_vtb_putc(sc_vtb_t *vtb, int at, int c, int a)
192 vtb_putc(vtb, vtb_pointer(vtb, at), c, a);
203 sc_vtb_pointer(sc_vtb_t *vtb, int at)
205 return (vtb_pointer(vtb, at));
291 sc_vtb_erase(sc_vtb_t *vtb, int at, int count, int c, int attr)
295 if (at + count > vtb->vtb_size)
296 count = vtb->vtb_size - at;
297 p = vtb_pointer(vtb, at);
333 sc_vtb_delete(sc_vtb_t *vtb, int at, int count, int c, int attr)
338 if (at + count > vtb->vtb_size)
339 count = vtb->vtb_size - at;
340 len = vtb->vtb_size - at - count;
342 p1 = vtb_pointer(vtb, at + count);
343 p2 = vtb_pointer(vtb, at);
356 p1 = vtb_pointer(vtb, at + len);
358 fillw_io(c, p1, vtb->vtb_size - at - len);
360 vtb->vtb_size - at - len);
362 fillw(c, (void *)p1, vtb->vtb_size - at - len);
364 vtb->vtb_size - at - len);
369 sc_vtb_ins(sc_vtb_t *vtb, int at, int count, int c, int attr)
373 p1 = vtb_pointer(vtb, at);
374 if (at + count > vtb->vtb_size) {
375 count = vtb->vtb_size - at;
377 p2 = vtb_pointer(vtb, at + count);
380 (vtb->vtb_size - at - count)*sizeof(u_int16_t));
383 (vtb->vtb_size - at - count)*sizeof(u_int16_t));
386 (vtb->vtb_size - at - count)*sizeof(u_int16_t));
389 (vtb->vtb_size - at - count)*sizeof(u_int16_t));