Searched refs:xbuff (Results 1 – 7 of 7) sorted by relevance
/drivers/net/wan/ |
D | x25_asy.c | 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 127 xbuff = kmalloc(len + 4, GFP_ATOMIC); in x25_asy_change_mtu() 130 if (xbuff == NULL || rbuff == NULL) { in x25_asy_change_mtu() 131 kfree(xbuff); in x25_asy_change_mtu() 137 xbuff = xchg(&sl->xbuff, xbuff); in x25_asy_change_mtu() 140 memcpy(sl->xbuff, sl->xhead, sl->xleft); in x25_asy_change_mtu() 146 sl->xhead = sl->xbuff; in x25_asy_change_mtu() 164 kfree(xbuff); in x25_asy_change_mtu() [all …]
|
D | x25_asy.h | 28 unsigned char *xbuff; /* transmitter buffer */ member
|
/drivers/net/hamradio/ |
D | mkiss.c | 59 unsigned char *xbuff; /* transmitter buffer */ member 370 unsigned char *xbuff, *rbuff, *oxbuff, *orbuff; in ax_changedmtu() local 383 xbuff = kmalloc(len + 4, GFP_ATOMIC); in ax_changedmtu() 386 if (xbuff == NULL || rbuff == NULL) { in ax_changedmtu() 391 kfree(xbuff); in ax_changedmtu() 398 oxbuff = ax->xbuff; in ax_changedmtu() 399 ax->xbuff = xbuff; in ax_changedmtu() 405 memcpy(ax->xbuff, ax->xhead, ax->xleft); in ax_changedmtu() 412 ax->xhead = ax->xbuff; in ax_changedmtu() 488 count = kiss_esc(p, ax->xbuff, len); in ax_encaps() [all …]
|
D | 6pack.c | 93 unsigned char *xbuff; /* transmitter buffer */ member 151 actual = sp->tty->ops->write(sp->tty, sp->xbuff, sp->status2); in sp_xmit_on_air() 194 count = encode_sixpack(p, sp->xbuff, len, sp->tx_delay); in sp_encaps() 223 actual = sp->tty->ops->write(sp->tty, sp->xbuff, count); in sp_encaps() 225 sp->xhead = sp->xbuff + actual; in sp_encaps() 230 sp->xhead = sp->xbuff; in sp_encaps() 588 char *rbuff = NULL, *xbuff = NULL; in sixpack_open() local 617 xbuff = kmalloc(len + 4, GFP_KERNEL); in sixpack_open() 619 if (rbuff == NULL || xbuff == NULL) { in sixpack_open() 629 sp->xbuff = xbuff; in sixpack_open() [all …]
|
/drivers/net/slip/ |
D | slip.c | 133 char *xbuff = NULL; in sl_alloc_bufs() local 158 xbuff = kmalloc(len + 4, GFP_KERNEL); in sl_alloc_bufs() 159 if (xbuff == NULL) in sl_alloc_bufs() 180 xbuff = xchg(&sl->xbuff, xbuff); in sl_alloc_bufs() 198 kfree(xbuff); in sl_alloc_bufs() 208 kfree(xchg(&sl->xbuff, NULL)); in sl_free_bufs() 223 unsigned char *xbuff, *rbuff; local 237 xbuff = kmalloc(len + 4, GFP_ATOMIC); 245 if (xbuff == NULL || rbuff == NULL || cbuff == NULL) { 247 if (xbuff == NULL || rbuff == NULL) { [all …]
|
D | slip.h | 65 unsigned char *xbuff; /* transmitter buffer */ member
|
/drivers/net/can/ |
D | slcan.c | 90 unsigned char xbuff[SLC_MTU]; /* transmitter buffer */ member 248 sprintf(sl->xbuff, "%c%08X%d", cmd, in slc_encaps() 251 sprintf(sl->xbuff, "%c%03X%d", cmd | 0x20, in slc_encaps() 254 idx = strlen(sl->xbuff); in slc_encaps() 257 sprintf(&sl->xbuff[idx + 2*i], "%02X", cf->data[i]); in slc_encaps() 259 strcat(sl->xbuff, "\r"); /* add terminating character */ in slc_encaps() 270 actual = sl->tty->ops->write(sl->tty, sl->xbuff, strlen(sl->xbuff)); in slc_encaps() 271 sl->xleft = strlen(sl->xbuff) - actual; in slc_encaps() 272 sl->xhead = sl->xbuff + actual; in slc_encaps()
|