Searched refs:buf_avail (Results 1 - 6 of 6) sorted by relevance

/freebsd-10-stable/contrib/xz/src/liblzma/lzma/
H A Dlzma_encoder_optimum_fast.c38 const uint32_t buf_avail = my_min(mf_avail(mf) + 1, MATCH_LEN_MAX); local
40 if (buf_avail < 2) {
63 buf, buf_back, 2, buf_avail);
122 if (len_main < 2 || buf_avail <= 2) {
H A Dlzma_encoder_optimum_normal.c289 const uint32_t buf_avail = my_min(mf_avail(mf) + 1, MATCH_LEN_MAX); local
290 if (buf_avail < 2) {
309 rep_lens[i] = lzma_memcmplen(buf, buf_back, 2, buf_avail);
561 const uint32_t buf_avail = my_min(buf_avail_full, nice_len); local
608 uint32_t len_test = lzma_memcmplen(buf, buf_back, 2, buf_avail);
692 if (new_len > buf_avail) {
693 new_len = buf_avail;
/freebsd-10-stable/contrib/xz/src/liblzma/simple/
H A Dsimple_coder.c111 const size_t buf_avail = coder->size - coder->pos; local
112 if (out_avail > buf_avail || buf_avail == 0) {
121 memcpy(out + *out_pos, coder->buffer + coder->pos, buf_avail);
122 *out_pos += buf_avail;
159 memmove(coder->buffer, coder->buffer + coder->pos, buf_avail);
/freebsd-10-stable/usr.bin/csup/
H A Dstream.c126 #define buf_avail(buf) ((buf)->size - (buf)->off - (buf)->in) macro
262 if (buf_count(buf) > 0 && buf_avail(buf) == 0) {
273 assert(n <= buf_avail(buf));
632 if (nbytes > buf_avail(buf)) {
653 ret = vsnprintf(buf->buf + buf->off + buf->in, buf_avail(buf), fmt, ap);
657 if ((unsigned)ret >= buf_avail(buf)) {
660 if ((unsigned)ret >= buf_avail(buf)) {
837 assert(buf_avail(buf) > 0);
839 buf_avail(buf));
1077 if ((buf_avail(zbu
[all...]
H A Dmux.c204 static size_t buf_avail(struct buf *);
495 avail = buf_avail(chan->sendbuf);
1048 (len > buf_avail(buf) ||
1147 buf_avail(struct buf *buf) function
1165 assert(buf_avail(buf) >= size);
/freebsd-10-stable/contrib/pf/ftp-proxy/
H A Dftp-proxy.c243 size_t buf_avail, clientread; local
247 buf_avail = sizeof s->cbuf - s->cbuf_valid;
249 buf_avail);
267 } while (clientread == buf_avail);
1079 size_t buf_avail, srvread; local
1085 buf_avail = sizeof s->sbuf - s->sbuf_valid;
1087 buf_avail);
1105 } while (srvread == buf_avail);

Completed in 73 milliseconds