Lines Matching refs:bwp
53 buf_walk_t *bwp;
79 bwp = mdb_alloc(sizeof (buf_walk_t), UM_SLEEP);
81 bwp->bw_hbufbase = hbuf_addr;
82 bwp->bw_hbufs = hbufs;
83 bwp->bw_nhbufs = v.v_hbuf;
84 bwp->bw_hbufi = 0;
85 bwp->bw_bufp = mdb_alloc(sizeof (buf_t), UM_SLEEP);
88 wsp->walk_data = bwp;
96 buf_walk_t *bwp = wsp->walk_data;
104 while (wsp->walk_addr == NULL || wsp->walk_addr == (bwp->bw_hbufbase +
105 bwp->bw_hbufi * sizeof (struct hbuf))) {
107 if (++bwp->bw_hbufi == bwp->bw_nhbufs)
111 bwp->bw_hbufs[bwp->bw_hbufi].b_forw;
119 (void) mdb_vread(bwp->bw_bufp, sizeof (buf_t), addr);
120 wsp->walk_addr = (uintptr_t)bwp->bw_bufp->b_forw;
122 return (wsp->walk_callback(addr, bwp->bw_bufp, wsp->walk_cbdata));
128 buf_walk_t *bwp = wsp->walk_data;
130 mdb_free(bwp->bw_hbufs, sizeof (struct hbuf) * bwp->bw_nhbufs);
131 mdb_free(bwp->bw_bufp, sizeof (buf_t));
132 mdb_free(bwp, sizeof (buf_walk_t));