Lines Matching defs:pb

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