Home
last modified time | relevance | path

Searched refs:read_head (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/lib/libpcp/common/
H A Dlibpcp.c133 static uint8_t *read_head = NULL; variable
748 read_head = read_area; in pcp_read()
756 if (byte_cnt <= (read_tail - read_head)) { in pcp_read()
757 (void) memcpy(buf, read_head, byte_cnt); in pcp_read()
758 read_head += byte_cnt; in pcp_read()
766 for (i = 0; i < (read_tail - read_head); ++i) { in pcp_read()
767 read_area[i] = read_head[i]; in pcp_read()
769 read_head = read_area; in pcp_read()
770 read_tail = read_head + i; in pcp_read()
792 m = byte_cnt - (read_tail - read_head); in pcp_read()
[all …]
/illumos-gate/usr/src/uts/sun4v/ontario/io/
H A Dtsalarm.c204 uint8_t *read_head; member
401 softc->read_head = NULL; in tsalarm_attach()
1224 sc->read_head = sc->read_area; in tsal_pcp_read()
1232 if (byte_cnt <= (sc->read_tail - sc->read_head)) { in tsal_pcp_read()
1233 (void) memcpy(buf, sc->read_head, byte_cnt); in tsal_pcp_read()
1234 sc->read_head += byte_cnt; in tsal_pcp_read()
1242 for (i = 0; i < (sc->read_tail - sc->read_head); ++i) { in tsal_pcp_read()
1243 sc->read_area[i] = sc->read_head[i]; in tsal_pcp_read()
1245 sc->read_head = sc->read_area; in tsal_pcp_read()
1246 sc->read_tail = sc->read_head + i; in tsal_pcp_read()
[all …]