Home | History | Annotate | Download | only in libpuffs

Lines Matching refs:pb

59 puffs__fsframe_read(struct puffs_usermount *pu, struct puffs_framebuf *pb,
70 curoff = puffs_framebuf_telloff(pb);
75 puffs_framebuf_getdata_atoff(pb, 0, &phdr, sizeof(phdr));
81 if (puffs_framebuf_reserve_space(pb, howmuch) == -1)
87 curoff = puffs_framebuf_telloff(pb);
88 if (puffs_framebuf_getwindow(pb, curoff, &win, &winlen) == -1)
100 puffs_framebuf_seekset(pb, curoff + n);
108 puffs_framebuf_seekset(pb, 0);
118 puffs__fsframe_write(struct puffs_usermount *pu, struct puffs_framebuf *pb,
133 if (puffs_framebuf_telloff(pb) == 0) {
137 rv = puffs_framebuf_getwindow(pb, 0, (void *)&preq, &winlen);
144 puffs_framebuf_getdata_atoff(pb, 0, &phdr, sizeof(phdr));
154 howmuch = flen - puffs_framebuf_telloff(pb);
158 curoff = puffs_framebuf_telloff(pb);
159 if (puffs_framebuf_getwindow(pb, curoff, &win, &winlen) == -1)
185 puffs_framebuf_seekset(pb, curoff + n);
234 puffs__fsframe_gotframe(struct puffs_usermount *pu, struct puffs_framebuf *pb)
237 puffs_framebuf_seekset(pb, 0);
238 puffs__ml_dispatch(pu, pb);