Lines Matching refs:limit
136 int read, write, limit, src, dst; in gigaset_isowbuf_getbytes() local
147 limit = read + size; in gigaset_isowbuf_getbytes()
149 __func__, read, write, limit); in gigaset_isowbuf_getbytes()
159 if (limit >= write) { in gigaset_isowbuf_getbytes()
165 if (limit >= write) { in gigaset_isowbuf_getbytes()
168 limit = write + BAS_OUTBUFPAD; in gigaset_isowbuf_getbytes()
171 __func__, write, limit, iwb->idle); in gigaset_isowbuf_getbytes()
180 limit = 0; in gigaset_isowbuf_getbytes()
184 __func__, pbyte, limit); in gigaset_isowbuf_getbytes()
185 iwb->data[limit] = pbyte; /* restore in gigaset_isowbuf_getbytes()
187 iwb->write = limit; in gigaset_isowbuf_getbytes()
193 if (limit >= BAS_OUTBUFSIZE) { in gigaset_isowbuf_getbytes()
197 while (dst < limit && src < write) in gigaset_isowbuf_getbytes()
199 if (dst <= limit) { in gigaset_isowbuf_getbytes()
204 limit = src; in gigaset_isowbuf_getbytes()
207 iwb->nextread = limit; in gigaset_isowbuf_getbytes()