Lines Matching refs:count

176 sc_vtb_copy(sc_vtb_t *vtb1, int from, sc_vtb_t *vtb2, int to, int count)  in sc_vtb_copy()  argument
182 count*sizeof(u_int16_t)); in sc_vtb_copy()
186 count*sizeof(u_int16_t)); in sc_vtb_copy()
190 count*sizeof(u_int16_t)); in sc_vtb_copy()
194 sc_vtb_append(sc_vtb_t *vtb1, int from, sc_vtb_t *vtb2, int count) in sc_vtb_append() argument
201 while (count > 0) { in sc_vtb_append()
202 len = imin(count, vtb2->vtb_size - vtb2->vtb_tail); in sc_vtb_append()
212 count -= len; in sc_vtb_append()
224 sc_vtb_erase(sc_vtb_t *vtb, int at, int count, int c, int attr) in sc_vtb_erase() argument
226 if (at + count > vtb->vtb_size) in sc_vtb_erase()
227 count = vtb->vtb_size - at; in sc_vtb_erase()
229 fillw_io(attr | c, sc_vtb_pointer(vtb, at), count); in sc_vtb_erase()
231 fillw(attr | c, (void *)sc_vtb_pointer(vtb, at), count); in sc_vtb_erase()
235 sc_vtb_move(sc_vtb_t *vtb, int from, int to, int count) in sc_vtb_move() argument
237 if (from + count > vtb->vtb_size) in sc_vtb_move()
238 count = vtb->vtb_size - from; in sc_vtb_move()
239 if (to + count > vtb->vtb_size) in sc_vtb_move()
240 count = vtb->vtb_size - to; in sc_vtb_move()
241 if (count <= 0) in sc_vtb_move()
245 sc_vtb_pointer(vtb, to), count*sizeof(u_int16_t)); in sc_vtb_move()
248 (void *)sc_vtb_pointer(vtb, to), count*sizeof(u_int16_t)); in sc_vtb_move()
252 sc_vtb_delete(sc_vtb_t *vtb, int at, int count, int c, int attr) in sc_vtb_delete() argument
256 if (at + count > vtb->vtb_size) in sc_vtb_delete()
257 count = vtb->vtb_size - at; in sc_vtb_delete()
258 len = vtb->vtb_size - at - count; in sc_vtb_delete()
261 bcopy_io(sc_vtb_pointer(vtb, at + count), in sc_vtb_delete()
265 bcopy((void *)sc_vtb_pointer(vtb, at + count), in sc_vtb_delete()
278 sc_vtb_ins(sc_vtb_t *vtb, int at, int count, int c, int attr) in sc_vtb_ins() argument
280 if (at + count > vtb->vtb_size) in sc_vtb_ins()
281 count = vtb->vtb_size - at; in sc_vtb_ins()
285 sc_vtb_pointer(vtb, at + count), in sc_vtb_ins()
286 (vtb->vtb_size - at - count)*sizeof(u_int16_t)); in sc_vtb_ins()
289 (void *)sc_vtb_pointer(vtb, at + count), in sc_vtb_ins()
290 (vtb->vtb_size - at - count)*sizeof(u_int16_t)); in sc_vtb_ins()
293 fillw_io(attr | c, sc_vtb_pointer(vtb, at), count); in sc_vtb_ins()
295 fillw(attr | c, (void *)sc_vtb_pointer(vtb, at), count); in sc_vtb_ins()