Lines Matching refs:mp1
209 MBLKP mp1;
240 mp1 = allocb(0, BPRI_MED);
241 if (mp1 == NULL) {
247 * Temporarily insert mp1 between the M_IOCTL and M_DATA blocks so
250 mp1->b_cont = mp->b_cont;
251 mp->b_cont = mp1;
254 mp->b_cont = mp1->b_cont;
255 mp1->b_cont = NULL;
262 cp->cp_private = mp1;
318 MBLKP mp1;
326 mp1 = mp->b_cont;
327 if ((int)(uintptr_t)cp->cp_rval || !mp1->b_cont) {
331 if (!mp1->b_cont->b_cont && !MI_IS_TRANSPARENT(mp)) {
332 mp1->b_next = NULL;
333 mp1->b_prev = NULL;
334 mp->b_cont = mp1->b_cont;
335 freeb(mp1);
336 mp1 = mp->b_cont;
337 mp1->b_next = NULL;
338 mp1->b_prev = NULL;
339 iocp->ioc_count = mp1->b_wptr - mp1->b_rptr;
352 cq->cq_private = mp1;
354 for (mp2 = mp1; mp2->b_cont->b_cont; mp2 = mp2->b_cont)
356 if (mp2 == mp1)
357 bcopy((char *)mp1->b_rptr, (char *)&cq->cq_addr,
361 mp1 = mp2->b_cont;
363 mp->b_cont = mp1;
365 mp1->b_next = NULL;
366 cq->cq_size = mp1->b_wptr - mp1->b_rptr;
376 MBLKP mp1;
380 mp1 = allocb(0, BPRI_MED);
381 if (mp1 == NULL) {
392 mp1->b_cont = mp->b_cont;
393 mp->b_cont = mp1;
401 mp1 = allocb(len, BPRI_MED);
402 if (mp1 == NULL) {
407 linkb(mp, mp1);
408 mp1->b_next = (MBLKP)uaddr;
409 return (mp1);
416 MBLKP mp1;
429 if ((mp1 = mp->b_cont) != NULL) {
430 for (; mp1; mp1 = mp1->b_cont) {
431 mp1->b_prev = NULL;
432 mp1->b_next = NULL;
445 MBLKP mp1;
447 mp1 = mp->b_cont;
449 if (mp1) {
450 if (mp1->b_cont && !pullupmsg(mp1, -1)) {
454 linkb(mp->b_cont, mp1);
461 *mpp = mp1;