Lines Matching refs:to
140 void ttyoutq_flush(struct ttyoutq *to);
141 int ttyoutq_setsize(struct ttyoutq *to, struct tty *tp, size_t len);
142 void ttyoutq_free(struct ttyoutq *to);
143 size_t ttyoutq_read(struct ttyoutq *to, void *buf, size_t len);
144 int ttyoutq_read_uio(struct ttyoutq *to, struct tty *tp, struct uio *uio);
145 size_t ttyoutq_write(struct ttyoutq *to, const void *buf, size_t len);
146 int ttyoutq_write_nofrag(struct ttyoutq *to, const void *buf, size_t len);
149 ttyoutq_getsize(struct ttyoutq *to) in ttyoutq_getsize() argument
151 return (to->to_nblocks * TTYOUTQ_DATASIZE); in ttyoutq_getsize()
155 ttyoutq_getallocatedsize(struct ttyoutq *to) in ttyoutq_getallocatedsize() argument
158 return (to->to_quota * TTYOUTQ_DATASIZE); in ttyoutq_getallocatedsize()
162 ttyoutq_bytesleft(struct ttyoutq *to) in ttyoutq_bytesleft() argument
167 len = to->to_nblocks * TTYOUTQ_DATASIZE; in ttyoutq_bytesleft()
168 MPASS(len >= to->to_end); in ttyoutq_bytesleft()
170 return (len - to->to_end); in ttyoutq_bytesleft()
174 ttyoutq_bytesused(struct ttyoutq *to) in ttyoutq_bytesused() argument
176 return (to->to_end - to->to_begin); in ttyoutq_bytesused()