Lines Matching defs:bytes_needed
760 mbc_marshal_make_room(mbuf_chain_t *mbc, int32_t bytes_needed)
766 bytes_needed += mbc->chain_offset;
767 if (bytes_needed > mbc->max_bytes)
784 while ((m != 0) && (bytes_needed >= m->m_len)) {
786 bytes_needed -= m->m_len;
790 if ((bytes_needed == 0) || (m != 0)) {
799 bytes_needed += m->m_len;
809 while ((bytes_needed != 0) && (bytes_needed > bytes_available)) {
811 bytes_needed -= m->m_len;
818 if (bytes_needed > MLEN)
831 if (m->m_len <= bytes_needed) {
832 m->m_len = bytes_needed;