• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/syscons/

Lines Matching defs:count

178 sc_vtb_copy(sc_vtb_t *vtb1, int from, sc_vtb_t *vtb2, int to, int count)
184 count*sizeof(u_int16_t));
188 count*sizeof(u_int16_t));
192 count*sizeof(u_int16_t));
196 sc_vtb_append(sc_vtb_t *vtb1, int from, sc_vtb_t *vtb2, int count)
203 while (count > 0) {
204 len = imin(count, vtb2->vtb_size - vtb2->vtb_tail);
214 count -= len;
226 sc_vtb_erase(sc_vtb_t *vtb, int at, int count, int c, int attr)
228 if (at + count > vtb->vtb_size)
229 count = vtb->vtb_size - at;
231 fillw_io(attr | c, sc_vtb_pointer(vtb, at), count);
233 fillw(attr | c, (void *)sc_vtb_pointer(vtb, at), count);
237 sc_vtb_move(sc_vtb_t *vtb, int from, int to, int count)
239 if (from + count > vtb->vtb_size)
240 count = vtb->vtb_size - from;
241 if (to + count > vtb->vtb_size)
242 count = vtb->vtb_size - to;
243 if (count <= 0)
247 sc_vtb_pointer(vtb, to), count*sizeof(u_int16_t));
250 (void *)sc_vtb_pointer(vtb, to), count*sizeof(u_int16_t));
254 sc_vtb_delete(sc_vtb_t *vtb, int at, int count, int c, int attr)
258 if (at + count > vtb->vtb_size)
259 count = vtb->vtb_size - at;
260 len = vtb->vtb_size - at - count;
263 bcopy_io(sc_vtb_pointer(vtb, at + count),
267 bcopy((void *)sc_vtb_pointer(vtb, at + count),
280 sc_vtb_ins(sc_vtb_t *vtb, int at, int count, int c, int attr)
282 if (at + count > vtb->vtb_size)
283 count = vtb->vtb_size - at;
287 sc_vtb_pointer(vtb, at + count),
288 (vtb->vtb_size - at - count)*sizeof(u_int16_t));
291 (void *)sc_vtb_pointer(vtb, at + count),
292 (vtb->vtb_size - at - count)*sizeof(u_int16_t));
295 fillw_io(attr | c, sc_vtb_pointer(vtb, at), count);
297 fillw(attr | c, (void *)sc_vtb_pointer(vtb, at), count);