Lines Matching refs:mb
73 gbuf_t *mb, *nmb;
84 /* The 1st mbuf in the pb->mp chain (mb) is the adspcmd structure.
86 mb = pb->mp;
87 nmb = gbuf_cont(mb);
88 if (gbuf_len(mb) > sizeof(struct adspcmd)) {
89 if ((nmb = gbuf_dupb(mb)) == 0) {
90 gbuf_wset(mb,sizeof(struct adspcmd));
94 gbuf_wset(mb,sizeof(struct adspcmd));
96 gbuf_cont(nmb) = gbuf_cont(mb);
103 gbuf_cont(mb) = 0;
106 if ((mb = sp->csbuf_mb)) { /* add to the current message */
107 gbuf_linkb(mb, nmb);
111 if ((mb = sp->sbuf_mb)) {
112 while (gbuf_next(mb))
113 mb = gbuf_next(mb);
114 gbuf_next(mb) = sp->csbuf_mb; /* add the current item */