Home | History | Annotate | Download | only in libpuffs

Lines Matching defs:pcc

59 	struct puffs_cc *pcc = puffs_cc_getcc(pu);
62 pcc->pcc_pb = pb;
63 pcc->pcc_flags |= PCC_MLCONT;
64 dispatch(pcc);
67 preq = puffs__framebuf_getdataptr(pcc->pcc_pb);
73 pcc->pcc_pb, 0, 0);
75 puffs_framebuf_destroy(pcc->pcc_pb);
79 if (pcc->pcc_flags & PCC_BORROWED) {
80 puffs_cc_yield(pcc); /* back to borrow source */
82 pcc->pcc_flags = 0;
90 struct puffs_cc *pcc;
92 if (puffs__cc_create(pu, dispatch, &pcc) == -1)
95 pcc->pcc_pb = pb;
96 *pccp = pcc;
102 puffs_dispatch_exec(struct puffs_cc *pcc, struct puffs_framebuf **pbp)
106 puffs_cc_continue(pcc);
108 if (pcc->pcc_flags & PCC_DONE) {
110 *pbp = pcc->pcc_pb;
111 pcc->pcc_flags = 0;
112 puffs__cc_destroy(pcc, 0);
121 dispatch(struct puffs_cc *pcc)
123 struct puffs_usermount *pu = pcc->pcc_pu;
125 struct puffs_req *preq = puffs__framebuf_getdataptr(pcc->pcc_pb);
136 if (puffs_framebuf_reserve_space(pcc->pcc_pb,
139 preq = puffs__framebuf_getdataptr(pcc->pcc_pb);
145 assert((pcc->pcc_flags & PCC_DONE) == 0);
156 puffs__cc_setcaller(pcc, preq->preq_pid, preq->preq_lid);
1208 pcc->pcc_flags |= PCC_DONE;