Lines Matching refs:mp1

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