Lines Matching refs:hptr
83 ksyms_buflist_hdr_t *hptr = (ksyms_buflist_hdr_t *)ptr; in ksyms_bcopy() local
85 if (hptr->cur == NULL) in ksyms_bcopy()
89 sz = MIN(rsize, (BUF_SIZE - hptr->curbuf_off)); in ksyms_bcopy()
90 bcopy(src, (hptr->cur->buf + hptr->curbuf_off), sz); in ksyms_bcopy()
92 hptr->curbuf_off += sz; in ksyms_bcopy()
93 if (hptr->curbuf_off == BUF_SIZE) { in ksyms_bcopy()
94 hptr->curbuf_off = 0; in ksyms_bcopy()
95 hptr->cur = list_next(&hptr->blist, hptr->cur); in ksyms_bcopy()
96 if (hptr->cur == NULL) in ksyms_bcopy()
220 void *hptr = NULL; in ksyms_open() local
230 realsize = ksyms_snapshot(ksyms_bcopy, hptr, size); in ksyms_open()
237 hptr = (void *)&hdr; in ksyms_open()