Lines Matching defs:fbp
69 struct fbuf *fbp;
100 *fbpp = fbp = kmem_alloc(sizeof (struct fbuf), KM_SLEEP);
101 fbp->fb_addr = addr + o;
102 fbp->fb_count = len;
117 struct fbuf *fbp;
130 *fbpp = fbp = kmem_alloc(sizeof (struct fbuf), KM_SLEEP);
131 fbp->fb_addr = addr;
132 fbp->fb_count = len;
148 * fbrelse() release fbp
152 #define FBCOMMON(fbp, rw, flags, howtoreturn) \
157 addr = (caddr_t)((uintptr_t)fbp->fb_addr & ~pgoff); \
158 size = ((fbp->fb_addr - addr) + fbp->fb_count + pgoff) & ~pgoff; \
160 addr = (caddr_t)((uintptr_t)fbp->fb_addr & MAXBMASK); \
161 kmem_free(fbp, sizeof (struct fbuf)); \
166 fbrelse(struct fbuf *fbp, enum seg_rw rw)
168 FBCOMMON(fbp, rw, 0, (void))
172 fbwrite(struct fbuf *fbp)
174 FBCOMMON(fbp, S_WRITE, SM_WRITE, return)
178 fbdwrite(struct fbuf *fbp)
180 FBCOMMON(fbp, S_WRITE, 0, return)
185 * on the given device, using the given fbuf. Upon return the fbp
189 fbiwrite(struct fbuf *fbp, vnode_t *devvp, daddr_t bn, int bsize)
205 bp = pageio_setup((struct page *)NULL, fbp->fb_count, devvp, B_WRITE);
207 bp->b_un.b_addr = fbp->fb_addr;
219 FBCOMMON(fbp, S_OTHER, 0, fberror = )