Lines Matching refs:xbuff
134 char *xbuff = NULL; in sl_alloc_bufs() local
159 xbuff = kmalloc(len + 4, GFP_KERNEL); in sl_alloc_bufs()
160 if (xbuff == NULL) in sl_alloc_bufs()
181 xbuff = xchg(&sl->xbuff, xbuff); in sl_alloc_bufs()
199 kfree(xbuff); in sl_alloc_bufs()
209 kfree(xchg(&sl->xbuff, NULL)); in sl_free_bufs()
224 unsigned char *xbuff, *rbuff; local
238 xbuff = kmalloc(len + 4, GFP_ATOMIC);
246 if (xbuff == NULL || rbuff == NULL || cbuff == NULL) {
248 if (xbuff == NULL || rbuff == NULL) {
263 xbuff = xchg(&sl->xbuff, xbuff);
270 memcpy(sl->xbuff, sl->xhead, sl->xleft);
276 sl->xhead = sl->xbuff;
296 kfree(xbuff);
394 count = slip_esc6(p, sl->xbuff, len);
397 count = slip_esc(p, sl->xbuff, len);
408 actual = sl->tty->ops->write(sl->tty, sl->xbuff, count);
413 sl->xhead = sl->xbuff + actual;