Lines Matching refs:xbuff
114 kfree(sl->xbuff); in x25_asy_free()
115 sl->xbuff = NULL; in x25_asy_free()
124 unsigned char *xbuff, *rbuff; in x25_asy_change_mtu() local
128 xbuff = kmalloc(len + 4, GFP_ATOMIC); in x25_asy_change_mtu()
131 if (xbuff == NULL || rbuff == NULL) { in x25_asy_change_mtu()
132 kfree(xbuff); in x25_asy_change_mtu()
138 xbuff = xchg(&sl->xbuff, xbuff); in x25_asy_change_mtu()
141 memcpy(sl->xbuff, sl->xhead, sl->xleft); in x25_asy_change_mtu()
147 sl->xhead = sl->xbuff; in x25_asy_change_mtu()
165 kfree(xbuff); in x25_asy_change_mtu()
231 count = x25_asy_esc(p, sl->xbuff, len); in x25_asy_encaps()
242 actual = sl->tty->ops->write(sl->tty, sl->xbuff, count); in x25_asy_encaps()
244 sl->xhead = sl->xbuff + actual; in x25_asy_encaps()
480 sl->xbuff = kmalloc(len + 4, GFP_KERNEL); in x25_asy_open()
481 if (sl->xbuff == NULL) in x25_asy_open()
492 kfree(sl->xbuff); in x25_asy_open()
493 sl->xbuff = NULL; in x25_asy_open()