Lines Matching refs:mdata
1617 gbuf_t *m, *mdata;
1691 if ((mdata = gbuf_alloc_wait((space = (size > MCLBYTES ? MCLBYTES : size)), TRUE)) == 0) {
1697 gbuf_cont(m) = mdata;
1698 dataptr = mtod(mdata, caddr_t);
1703 gbuf_wset(mdata, dataptr - mtod(mdata, caddr_t)); /* set len of last mbuf */
1705 if ((gbuf_cont(mdata) = m_get((M_WAIT), MSG_DATA)) == 0) {
1711 mdata = gbuf_cont(mdata);
1712 MCLGET(mdata, M_WAIT);
1713 if (!(mdata->m_flags & M_EXT)) {
1718 dataptr = mtod(mdata, caddr_t);
1731 gbuf_wset(mdata, dataptr - mtod(mdata, caddr_t)); /* set len of last mbuf */