Lines Matching defs:cbp
2963 mblk_t *cbp;
3001 cbp = allocb_tmpl(sz, mp);
3002 if (cbp == NULL) {
3008 cbp->b_cont = mp->b_cont;
3014 ASSERT(cbp->b_rptr + P2ROUNDUP(plainlen+headspace, 8)
3015 <= DB_LIM(cbp));
3017 cbp->b_rptr = DB_BASE(cbp) + headspace;
3018 bcopy(mp->b_rptr, cbp->b_rptr, plainlen);
3019 cbp->b_wptr = cbp->b_rptr + plainlen;
3024 cbp = mp;
3041 if ((cbp->b_rptr + P2ROUNDUP(cipherlen + extra, 8) >
3042 DB_LIM(cbp)) ||
3043 (cbp->b_rptr - headspace < DB_BASE(cbp))) {
3044 ovbcopy(cbp->b_rptr, DB_BASE(cbp) + headspace,
3046 cbp->b_rptr = DB_BASE(cbp) + headspace;
3047 cbp->b_wptr = cbp->b_rptr + plainlen;
3051 ASSERT(cbp->b_rptr - headspace >= DB_BASE(cbp));
3052 ASSERT(cbp->b_wptr <= DB_LIM(cbp));
3059 cbp->b_rptr -= RCMD_LEN_SZ;
3062 *(cbp->b_rptr + 3) = (uchar_t)(plainlen & 0xff);
3063 *(cbp->b_rptr + 2) = (uchar_t)((plainlen >> 8) & 0xff);
3064 *(cbp->b_rptr + 1) = (uchar_t)((plainlen >> 16) & 0xff);
3065 *(cbp->b_rptr) = (uchar_t)((plainlen >> 24) & 0xff);
3068 newmp = do_encrypt(q, cbp);