Lines Matching defs:cur
215 uint8_t *cur; /* current position in upper layer
2227 n = (ch->end - ch->cur);
2231 usbd_copy_in(pc, offset, ch->cur, n);
2234 ch->cur += n;
2237 if (ch->cur >= ch->end)
2238 ch->cur = ch->start;
2317 m = (ch->end - ch->cur);
2322 usbd_copy_out(pc, offset1, ch->cur, m);
2326 ch->cur += m;
2328 if (ch->cur >= ch->end)
2329 ch->cur = ch->start;
2407 ch->cur = ch->buf;
2481 return (ch->cur - ch->start);
2607 ch->cur = ch->buf;