Lines Matching refs:b_cont
55 #define MI_IS_TRANSPARENT(mp) (mp->b_cont && \
56 (mp->b_cont->b_rptr != mp->b_cont->b_wptr))
217 cq->cq_private = mp->b_cont; in mi_copyin()
220 bcopy(mp->b_cont->b_rptr, &cq->cq_addr, sizeof (cq->cq_addr)); in mi_copyin()
221 mp->b_cont = 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()
270 if (mp->b_cont) { in mi_copyin()
271 freemsg(mp->b_cont); in mi_copyin()
272 mp->b_cont = NULL; in mi_copyin()
302 cq->cq_private = mp->b_cont; in mi_copyin_n()
305 bcopy(mp->b_cont->b_rptr, &cq->cq_addr, sizeof (cq->cq_addr)); in mi_copyin_n()
307 mp->b_cont = NULL; in mi_copyin_n()
321 if (mp->b_datap->db_type != M_IOCDATA || !mp->b_cont) { in mi_copyout()
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()
334 mp->b_cont = mp1->b_cont; in mi_copyout()
336 mp1 = mp->b_cont; in mi_copyout()
354 for (mp2 = mp1; mp2->b_cont->b_cont; mp2 = mp2->b_cont) in mi_copyout()
360 cq->cq_addr = (char *)mp2->b_cont->b_next; in mi_copyout()
361 mp1 = mp2->b_cont; in mi_copyout()
363 mp->b_cont = mp1; in mi_copyout()
364 mp2->b_cont = NULL; in mi_copyout()
385 freemsg(mp->b_cont); in mi_copyout_alloc()
386 mp->b_cont = 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()
429 if ((mp1 = mp->b_cont) != NULL) { in mi_copy_done()
430 for (; mp1; mp1 = mp1->b_cont) { in mi_copy_done()
434 freemsg(mp->b_cont); in mi_copy_done()
435 mp->b_cont = NULL; in mi_copy_done()
447 mp1 = mp->b_cont; in mi_copy_state()
448 mp->b_cont = cp->cp_private; 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()
674 while (mp->b_cont) in mi_mpprintf_putc()
675 mp = mp->b_cont; in mi_mpprintf_putc()
677 mp->b_cont = allocb(1024, BPRI_HI); in mi_mpprintf_putc()
678 mp = mp->b_cont; in mi_mpprintf_putc()
894 for (; mp; mp = mp->b_cont) { in mi_offset_paramc()
1520 mp->b_cont = trailer_mp; in mi_tpi_trailer_alloc()