Lines Matching refs:mdata
451 gbuf_t *m, *mdata;
561 mdata = gbuf_cont(m);
562 if (mdata && user_ioccmd.ic_dp) {
563 user_ioccmd.ic_len = gbuf_msgsize(mdata);
564 for (len = 0; mdata; mdata = gbuf_cont(mdata)) {
566 bcopy (gbuf_rptr(mdata), CAST_DOWN(caddr_t, (user_ioccmd.ic_dp + len)), gbuf_len(mdata));
568 if ((err = copyout((caddr_t)gbuf_rptr(mdata), (user_ioccmd.ic_dp + len), gbuf_len(mdata))) < 0) {
571 len, err, (caddr_t)gbuf_rptr(mdata), (caddr_t)&user_ioccmd.ic_dp[len], gbuf_len(mdata));
576 len += gbuf_len(mdata);