Lines Matching refs:mp
73 register gbuf_t *mp;
100 if ((mp = sp->rbuf_mb)) { /* Get header for oldest data */
101 KERNEL_DEBUG(DBG_ADSP_READ, 4, pb, mp, gbuf_msgsize(mp), gbuf_next(mp));
102 sp->rbuf_mb = gbuf_next(mp);
103 gbuf_next(mp) = 0;
105 } else if ((mp = sp->crbuf_mb)) {
106 KERNEL_DEBUG(DBG_ADSP_READ, 5, pb, mp, gbuf_msgsize(mp), gbuf_next(mp));
112 the end of pb->mp. If eom is set, put the remainder of the
114 cnt = gbuf_msgsize(mp); /* # of data bytes in it. */
118 if (!(tmp = (gbuf_t *)m_split(mp, cnt, M_DONTWAIT))) {
120 tmp = mp;
131 gbuf_linkb(pb->mp, mp);
156 mp = gbuf_cont(pb->mp); /* ioctl call */
157 gbuf_cont(pb->mp) = 0;
160 dPrintf(D_M_ADSP, D_L_TRACE, (" (pb->ioc) mp=%p\n", mp));
161 KERNEL_DEBUG(DBG_ADSP_READ, 0x0A, pb, mp,
162 gbuf_next(mp), gbuf_cont(mp));
163 SndMsgUp(gref, mp);
201 tmp = gbuf_cont(pb->mp); /* detatch perhaps delayed data */
202 gbuf_cont(pb->mp) = 0;
203 if ((mp = gbuf_copym(pb->mp))) { /* otherwise, duplicate user request */
204 KERNEL_DEBUG(DBG_ADSP_READ, 0x0F, pb, sp, pb->mp, 0);
206 pb = (struct adspcmd *)gbuf_rptr(mp); /* get new parameter block */
208 pb->mp = mp;
209 gbuf_cont(pb->mp) = tmp; /* reattach data */
218 KERNEL_DEBUG(DBG_ADSP_READ, 0x10, pb, sp, pb->mp, 0);
265 gbuf_t *mp;
271 if ((mp = sp->attn_mb)) {
280 gbuf_freem(mp);
281 mp = 0;
299 if (mp) {
300 SndMsgUp(gref, mp);
326 register gbuf_t *mp;
355 if ((mp = gbuf_copym(pb->mp))) { /* otherwise, duplicate user request */
357 pb = (struct adspcmd *)gbuf_rptr(mp); /* get new parameter block */
359 pb->mp = mp;