Searched defs:read_head (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/lib/libpcp/common/
H A Dlibpcp.c135 static uint8_t *read_head = NULL; variable
750 read_head = read_area;
758 if (byte_cnt <= (read_tail - read_head)) {
759 (void) memcpy(buf, read_head, byte_cnt);
760 read_head += byte_cnt;
768 for (i = 0; i < (read_tail - read_head); ++i) {
769 read_area[i] = read_head[i];
771 read_head = read_area;
772 read_tail = read_head + i;
794 m = byte_cnt - (read_tail - read_head);
[all...]
/illumos-gate/usr/src/uts/sun4v/ontario/io/
H A Dtsalarm.c204 uint8_t *read_head; member in struct:tsalarm_softc
401 softc->read_head = NULL;
1224 sc->read_head = sc->read_area;
1232 if (byte_cnt <= (sc->read_tail - sc->read_head)) {
1233 (void) memcpy(buf, sc->read_head, byte_cnt);
1234 sc->read_head += byte_cnt;
1242 for (i = 0; i < (sc->read_tail - sc->read_head); ++i) {
1243 sc->read_area[i] = sc->read_head[i];
1245 sc->read_head = sc->read_area;
1246 sc->read_tail = sc->read_head
[all...]

Completed in 61 milliseconds