Lines Matching refs:pb
169 struct puffs_framebuf *pb; in perfused_new_pb() local
176 if ((pb = puffs_framebuf_make()) == NULL) in perfused_new_pb()
185 if (puffs_framebuf_reserve_space(pb, len) != 0) in perfused_new_pb()
188 if (puffs_framebuf_getwindow(pb, 0, &data, &len) != 0) in perfused_new_pb()
223 return (perfuse_msg_t *)(void *)pb; in perfused_new_pb()
232 xchg_pb_early(struct puffs_usermount *pu, struct puffs_framebuf *pb, int fd, in xchg_pb_early() argument
240 if ((error = perfused_writeframe(pu, pb, fd, &done)) != 0) in xchg_pb_early()
245 puffs_framebuf_destroy(pb); in xchg_pb_early()
248 puffs_framebuf_recycle(pb); in xchg_pb_early()
253 if ((error = perfused_readframe(pu, pb, fd, &done)) != 0) in xchg_pb_early()
261 xchg_pb_inloop(struct puffs_usermount *pu, struct puffs_framebuf *pb, int fd, in xchg_pb_inloop() argument
268 error = puffs_framev_enqueue_justsend(pu, fd, pb, 0, 0); in xchg_pb_inloop()
271 error = puffs_framev_enqueue_cc(pcc, fd, pb, 0); in xchg_pb_inloop()
281 struct puffs_framebuf *pb = (struct puffs_framebuf *)(void *)pm; in perfused_xchg_pb() local
310 error = xchg_pb_inloop(pu, pb, fd, reply); in perfused_xchg_pb()
312 error = xchg_pb_early(pu, pb, fd, reply); in perfused_xchg_pb()
320 foh = perfused_get_outhdr((perfuse_msg_t *)(void *)pb); in perfused_xchg_pb()
372 struct puffs_framebuf *pb; in perfused_get_inhdr() local
377 pb = (struct puffs_framebuf *)(void *)pm; in perfused_get_inhdr()
379 if (puffs_framebuf_getwindow(pb, 0, &hdr, &len) != 0) in perfused_get_inhdr()
392 struct puffs_framebuf *pb; in perfused_get_outhdr() local
397 pb = (struct puffs_framebuf *)(void *)pm; in perfused_get_outhdr()
399 if (puffs_framebuf_getwindow(pb, 0, &hdr, &len) != 0) in perfused_get_outhdr()
412 struct puffs_framebuf *pb; in perfused_get_inpayload() local
418 pb = (struct puffs_framebuf *)(void *)pm; in perfused_get_inpayload()
420 if (puffs_framebuf_getwindow(pb, 0, &hdr, &len) != 0) in perfused_get_inpayload()
428 if (puffs_framebuf_getwindow(pb, sizeof(*fih), &payload, &len) != 0) in perfused_get_inpayload()
439 struct puffs_framebuf *pb; in perfused_get_outpayload() local
445 pb = (struct puffs_framebuf *)(void *)pm; in perfused_get_outpayload()
447 if (puffs_framebuf_getwindow(pb, 0, &hdr, &len) != 0) in perfused_get_outpayload()
455 if (puffs_framebuf_getwindow(pb, sizeof(*foh), &payload, &len) != 0) in perfused_get_outpayload()
463 #define PUFFS_FRAMEBUF_GETWINDOW(pb, offset, data, len) \ argument
468 pfg_error = puffs_framebuf_getwindow(pb, offset, data, len); \
639 perfused_gotframe(struct puffs_usermount *pu, struct puffs_framebuf *pb) in perfused_gotframe() argument
645 PUFFS_FRAMEBUF_GETWINDOW(pb, 0, (void **)(void *)&foh, &len); in perfused_gotframe()