Lines Matching refs:bpt
1546 mblk_t *bpt; in ldtermrmsg() local
1549 bpt = NULL; in ldtermrmsg()
1676 if ((bpt = newmsg(tp)) != NULL) { in ldtermrmsg()
1700 if ((bpt = ldterm_docanon(c, in ldtermrmsg()
1701 bpt, ebsize, q, tp, &dofree)) == in ldtermrmsg()
1715 bpt = ldterm_dononcanon(bp, bpt, ebsize, q, tp); in ldtermrmsg()
1716 if (bpt == NULL) { in ldtermrmsg()
1748 ldterm_docanon(uchar_t c, mblk_t *bpt, size_t ebsize, queue_t *q, in ldterm_docanon() argument
1795 bpt = tp->t_endmsg; in ldterm_docanon()
1804 bpt = tp->t_endmsg; in ldterm_docanon()
1816 bpt = tp->t_endmsg; in ldterm_docanon()
1826 bpt = tp->t_endmsg; in ldterm_docanon()
1830 bpt = tp->t_endmsg; in ldterm_docanon()
1855 bpt = tp->t_endmsg; in ldterm_docanon()
1867 bpt = tp->t_endmsg; in ldterm_docanon()
1892 bpt->b_datap->db_type = M_DATA; in ldterm_docanon()
1895 bpt = NULL; in ldterm_docanon()
1898 bpt = newmsg(tp); in ldterm_docanon()
1945 bpt = newmsg(tp); in ldterm_docanon()
1951 if (bpt->b_wptr >= bpt->b_datap->db_lim) { in ldterm_docanon()
1956 bpt->b_datap->db_type = M_DATA; in ldterm_docanon()
1957 if ((bpt = allocb(IBSIZE, BPRI_MED)) == NULL) in ldterm_docanon()
1964 tp->t_endmsg->b_cont = bpt; in ldterm_docanon()
1965 tp->t_endmsg = bpt; in ldterm_docanon()
1967 *bpt->b_wptr++ = c; in ldterm_docanon()
2025 bpt->b_datap->db_type = M_DATA; in ldterm_docanon()
2031 if ((bpt = newmsg(tp)) == NULL) in ldterm_docanon()
2072 return (bpt); in ldterm_docanon()
2079 mblk_t *bpt; in ldterm_unget() local
2081 if ((bpt = tp->t_endmsg) == NULL) in ldterm_unget()
2083 if (bpt->b_rptr == bpt->b_wptr) in ldterm_unget()
2086 return (*--bpt->b_wptr); in ldterm_unget()
2093 mblk_t *bpt; in ldterm_trim() local
2097 bpt = tp->t_endmsg; in ldterm_trim()
2099 if (bpt->b_rptr == bpt->b_wptr) { in ldterm_trim()
2105 if (bp != bpt) { in ldterm_trim()
2106 while (bp->b_cont != bpt) { in ldterm_trim()
2111 freeb(bpt); in ldterm_trim()
2666 ldterm_dononcanon(mblk_t *bp, mblk_t *bpt, size_t ebsize, queue_t *q, in ldterm_dononcanon() argument
2749 roomleft = bpt->b_datap->db_lim - bpt->b_wptr; in ldterm_dononcanon()
2755 if ((bpt = allocb(IBSIZE, BPRI_MED)) == NULL) { in ldterm_dononcanon()
2758 return (bpt); in ldterm_dononcanon()
2765 tp->t_endmsg->b_cont = bpt; in ldterm_dononcanon()
2766 tp->t_endmsg = bpt; in ldterm_dononcanon()
2786 bcopy(rptr, bpt->b_wptr, bytes_to_move); in ldterm_dononcanon()
2787 bpt->b_wptr += bytes_to_move; in ldterm_dononcanon()