Lines Matching refs:bpt
1529 mblk_t *bpt; in ldtermrmsg() local
1532 bpt = NULL; in ldtermrmsg()
1659 if ((bpt = newmsg(tp)) != NULL) { in ldtermrmsg()
1683 if ((bpt = ldterm_docanon(c, in ldtermrmsg()
1684 bpt, ebsize, q, tp, &dofree)) == in ldtermrmsg()
1698 bpt = ldterm_dononcanon(bp, bpt, ebsize, q, tp); in ldtermrmsg()
1699 if (bpt == NULL) { in ldtermrmsg()
1731 ldterm_docanon(uchar_t c, mblk_t *bpt, size_t ebsize, queue_t *q, in ldterm_docanon() argument
1778 bpt = tp->t_endmsg; in ldterm_docanon()
1787 bpt = tp->t_endmsg; in ldterm_docanon()
1799 bpt = tp->t_endmsg; in ldterm_docanon()
1809 bpt = tp->t_endmsg; in ldterm_docanon()
1813 bpt = tp->t_endmsg; in ldterm_docanon()
1838 bpt = tp->t_endmsg; in ldterm_docanon()
1850 bpt = tp->t_endmsg; in ldterm_docanon()
1875 bpt->b_datap->db_type = M_DATA; in ldterm_docanon()
1878 bpt = NULL; in ldterm_docanon()
1881 bpt = newmsg(tp); in ldterm_docanon()
1928 bpt = newmsg(tp); in ldterm_docanon()
1934 if (bpt->b_wptr >= bpt->b_datap->db_lim) { in ldterm_docanon()
1939 bpt->b_datap->db_type = M_DATA; in ldterm_docanon()
1940 if ((bpt = allocb(IBSIZE, BPRI_MED)) == NULL) in ldterm_docanon()
1947 tp->t_endmsg->b_cont = bpt; in ldterm_docanon()
1948 tp->t_endmsg = bpt; in ldterm_docanon()
1950 *bpt->b_wptr++ = c; in ldterm_docanon()
2008 bpt->b_datap->db_type = M_DATA; in ldterm_docanon()
2014 if ((bpt = newmsg(tp)) == NULL) in ldterm_docanon()
2055 return (bpt); in ldterm_docanon()
2062 mblk_t *bpt; in ldterm_unget() local
2064 if ((bpt = tp->t_endmsg) == NULL) in ldterm_unget()
2066 if (bpt->b_rptr == bpt->b_wptr) in ldterm_unget()
2069 return (*--bpt->b_wptr); in ldterm_unget()
2076 mblk_t *bpt; in ldterm_trim() local
2080 bpt = tp->t_endmsg; in ldterm_trim()
2082 if (bpt->b_rptr == bpt->b_wptr) { in ldterm_trim()
2088 if (bp != bpt) { in ldterm_trim()
2089 while (bp->b_cont != bpt) { in ldterm_trim()
2094 freeb(bpt); in ldterm_trim()
2649 ldterm_dononcanon(mblk_t *bp, mblk_t *bpt, size_t ebsize, queue_t *q, in ldterm_dononcanon() argument
2732 roomleft = bpt->b_datap->db_lim - bpt->b_wptr; in ldterm_dononcanon()
2738 if ((bpt = allocb(IBSIZE, BPRI_MED)) == NULL) { in ldterm_dononcanon()
2741 return (bpt); in ldterm_dononcanon()
2748 tp->t_endmsg->b_cont = bpt; in ldterm_dononcanon()
2749 tp->t_endmsg = bpt; in ldterm_dononcanon()
2769 bcopy(rptr, bpt->b_wptr, bytes_to_move); in ldterm_dononcanon()
2770 bpt->b_wptr += bytes_to_move; in ldterm_dononcanon()