Lines Matching refs:to
146 void ttyoutq_flush(struct ttyoutq *to);
147 int ttyoutq_setsize(struct ttyoutq *to, struct lwp_tty *tp, size_t len);
148 void ttyoutq_free(struct ttyoutq *to);
149 size_t ttyoutq_read(struct ttyoutq *to, void *buf, size_t len);
150 int ttyoutq_read_uio(struct ttyoutq *to, struct lwp_tty *tp, struct uio *uio);
151 size_t ttyoutq_write(struct ttyoutq *to, const void *buf, size_t len);
152 int ttyoutq_write_nofrag(struct ttyoutq *to, const void *buf, size_t len);
154 rt_inline size_t ttyoutq_getsize(struct ttyoutq *to) in ttyoutq_getsize() argument
156 return (to->to_nblocks * TTYOUTQ_DATASIZE); in ttyoutq_getsize()
159 rt_inline size_t ttyoutq_getallocatedsize(struct ttyoutq *to) in ttyoutq_getallocatedsize() argument
161 return (to->to_quota * TTYOUTQ_DATASIZE); in ttyoutq_getallocatedsize()
164 rt_inline size_t ttyoutq_bytesleft(struct ttyoutq *to) in ttyoutq_bytesleft() argument
169 len = to->to_nblocks * TTYOUTQ_DATASIZE; in ttyoutq_bytesleft()
170 MPASS(len >= to->to_end); in ttyoutq_bytesleft()
172 return (len - to->to_end); in ttyoutq_bytesleft()
175 rt_inline size_t ttyoutq_bytesused(struct ttyoutq *to) in ttyoutq_bytesused() argument
177 return (to->to_end - to->to_begin); in ttyoutq_bytesused()