Lines Matching defs:tob
61 #define TTYOUTQ_INSERT_TAIL(to, tob) do { \
63 tob->tob_next = to->to_firstblock; \
64 to->to_firstblock = tob; \
66 tob->tob_next = to->to_lastblock->tob_next; \
67 to->to_lastblock->tob_next = tob; \
77 #define TTYOUTQ_RECYCLE(to, tob) do { \
79 uma_zfree(ttyoutq_zone, tob); \
81 TTYOUTQ_INSERT_TAIL(to, tob); \
95 struct ttyoutq_block *tob;
111 tob = uma_zalloc(ttyoutq_zone, M_WAITOK);
114 TTYOUTQ_INSERT_TAIL(to, tob);
121 struct ttyoutq_block *tob;
126 while ((tob = to->to_firstblock) != NULL) {
128 uma_zfree(ttyoutq_zone, tob);
140 struct ttyoutq_block *tob;
146 tob = to->to_firstblock;
147 if (tob == NULL)
162 memcpy(cbuf, tob->tob_data + cbegin, clen);
175 TTYOUTQ_RECYCLE(to, tob);
201 struct ttyoutq_block *tob;
207 tob = to->to_firstblock;
208 if (tob == NULL)
243 error = uiomove(tob->tob_data + cbegin, clen, uio);
247 TTYOUTQ_RECYCLE(to, tob);
254 memcpy(ob, tob->tob_data + cbegin, clen);
275 struct ttyoutq_block *tob;
285 tob = to->to_firstblock;
286 if (tob == NULL) {
290 to->to_lastblock = tob;
293 tob = to->to_lastblock->tob_next;
294 if (tob == NULL) {
298 to->to_lastblock = tob;
300 tob = to->to_lastblock;
306 memcpy(tob->tob_data + boff, cbuf, l);