Lines Matching refs:rhp

1512 	vlds_recv_hdr_t *rhp;  in vlds_recvq_get_data()  local
1553 rhp = dpsp->recv_headp; in vlds_recvq_get_data()
1559 if (rhp->datasz > buflen) { in vlds_recvq_get_data()
1560 *msglenp = rhp->datasz; in vlds_recvq_get_data()
1564 if (rhp == dpsp->recv_tailp) { in vlds_recvq_get_data()
1568 dpsp->recv_headp = rhp->next; in vlds_recvq_get_data()
1572 dpsp->recv_size -= rhp->datasz; in vlds_recvq_get_data()
1576 msglen = rhp->datasz; in vlds_recvq_get_data()
1577 rv = ddi_copyout(rhp->data, buf, msglen, mode); in vlds_recvq_get_data()
1581 __func__, rhp->datasz); in vlds_recvq_get_data()
1582 DS_DUMP_MSG(DS_DBG_FLAG_VLDS, rhp->data, rhp->datasz); in vlds_recvq_get_data()
1585 DS_FREE(rhp->data, rhp->datasz); in vlds_recvq_get_data()
1586 DS_FREE(rhp, sizeof (vlds_recv_hdr_t)); in vlds_recvq_get_data()
1602 vlds_recv_hdr_t *rhp, *nextp; in vlds_recvq_drain() local
1606 for (rhp = dpsp->recv_tailp; rhp != NULL; rhp = nextp) { in vlds_recvq_drain()
1607 nextp = rhp->next; in vlds_recvq_drain()
1608 DS_FREE(rhp->data, rhp->datasz); in vlds_recvq_drain()
1609 DS_FREE(rhp, sizeof (vlds_recv_hdr_t)); in vlds_recvq_drain()
1632 vlds_recv_hdr_t *rhp; in vlds_recvq_put_data() local
1659 rhp = DS_MALLOC(sizeof (vlds_recv_hdr_t)); in vlds_recvq_put_data()
1660 rhp->data = DS_MALLOC(buflen); in vlds_recvq_put_data()
1661 (void) memcpy(rhp->data, buf, buflen); in vlds_recvq_put_data()
1662 rhp->datasz = buflen; in vlds_recvq_put_data()
1663 rhp->next = NULL; in vlds_recvq_put_data()
1665 dpsp->recv_headp = rhp; in vlds_recvq_put_data()
1666 dpsp->recv_tailp = rhp; in vlds_recvq_put_data()
1668 dpsp->recv_tailp->next = rhp; in vlds_recvq_put_data()
1669 dpsp->recv_tailp = rhp; in vlds_recvq_put_data()
1671 dpsp->recv_size += rhp->datasz; in vlds_recvq_put_data()