Lines Matching defs:mp
551 gbuf_t *mp;
567 mp = gbuf_alloc(AT_WR_OFFSET + DDPL_FRAME_LEN + ADSP_FRAME_LEN + ADSP_OPEN_FRAME_LEN,
569 gbuf_rinc(mp,AT_WR_OFFSET);
570 gbuf_wset(mp,DDPL_FRAME_LEN);
571 adspp = (ADSP_FRAMEPtr)gbuf_wptr(mp);
572 gbuf_winc(mp,ADSP_FRAME_LEN);
573 bzero((caddr_t) gbuf_rptr(mp),DDPL_FRAME_LEN + ADSP_FRAME_LEN +
576 adspop = (ADSP_OPEN_DATAPtr)gbuf_wptr(mp);
577 gbuf_winc(mp,ADSP_OPEN_FRAME_LEN);
580 adsp_sendddp(0, mp, DDPL_FRAME_LEN + ADSP_FRAME_LEN +
717 * Note that the incoming message block (mp) is usually discarded, either
720 * non control packet switch. I zero mp after the RxData case succeeds
721 * so that mp will not be freed.
723 int adspPacket(gref, mp)
726 gbuf_t *mp;
737 bp = (unsigned char *)gbuf_rptr(mp);
758 if (sp && RXAttention(sp, mp, f, len))
761 mp = 0; /* attention data is being held */
819 if ((sp == 0) || RXData(sp, mp, f, len))
822 mp = 0; /* RXData used up the data, DONT free it! */
825 if (mp)
826 gbuf_freem(mp);
835 gbuf_freem(mp);