tag | line | file | source code |
buff | 669 | drivers/block/sbpcd.c | char buff[256]; |
buff | 676 | drivers/block/sbpcd.c | vsprintf(buff, fmt, args); |
buff | 678 | drivers/block/sbpcd.c | printk(buff); |
buff | 602 | drivers/block/sonycd535.c | Byte **buff, int buf_size) |
buff | 642 | drivers/block/sonycd535.c | data_buff = buff[sector_count++]; |
buff | 52 | drivers/net/apricot.c | #define kfree_skbmem(buff, size) kfree_s(buff,size) |
buff | 379 | drivers/net/arcnet.c | int arc_header(unsigned char *buff,struct device *dev,unsigned short type, |
buff | 1988 | drivers/net/arcnet.c | int arc_header(unsigned char *buff,struct device *dev,unsigned short type, |
buff | 1991 | drivers/net/arcnet.c | struct ClientData *head = (struct ClientData *)buff; |
buff | 2066 | drivers/net/arcnet.c | int arc_rebuild_header(void *buff,struct device *dev,unsigned long dst, |
buff | 2069 | drivers/net/arcnet.c | struct ClientData *head = (struct ClientData *)buff; |
buff | 131 | drivers/net/plip.c | static int plip_rebuild_header(void *buff, struct device *dev, |
buff | 845 | drivers/net/plip.c | plip_rebuild_header(void *buff, struct device *dev, unsigned long dst, |
buff | 849 | drivers/net/plip.c | struct ethhdr *eth = (struct ethhdr *)buff; |
buff | 853 | drivers/net/plip.c | return nl->orig_rebuild_header(buff, dev, dst, skb); |
buff | 121 | drivers/net/ppp.c | static int ppp_header(unsigned char *buff, struct device *dev, |
buff | 124 | drivers/net/ppp.c | static int ppp_rebuild_header(void *buff, struct device *dev); |
buff | 826 | drivers/net/ppp.c | unsigned char buff[128]; |
buff | 842 | drivers/net/ppp.c | n = tty_read_raw_data(tty, buff, 128); |
buff | 847 | drivers/net/ppp.c | ppp_print_buffer ("receive buffer", buff, n > 0 ? n : -n, KERNEL_DS); |
buff | 853 | drivers/net/ppp.c | error = buff[n]; |
buff | 856 | drivers/net/ppp.c | ppp_unesc(ppp,buff,n); |
buff | 1831 | drivers/net/ppp.c | ppp_header(unsigned char *buff, struct device *dev, unsigned short type, |
buff | 1838 | drivers/net/ppp.c | ppp_rebuild_header(void *buff, struct device *dev) |
buff | 1851 | drivers/net/ppp.c | ppp_header(unsigned char *buff, struct device *dev, unsigned short type, |
buff | 1858 | drivers/net/ppp.c | ppp_rebuild_header(void *buff, struct device *dev, unsigned long raddr, |
buff | 478 | drivers/net/slip.c | sl_header(unsigned char *buff, struct device *dev, unsigned short type, |
buff | 486 | drivers/net/slip.c | return ax25_encapsulate(buff, dev, type, daddr, saddr, len, skb); |
buff | 496 | drivers/net/slip.c | sl_rebuild_header(void *buff, struct device *dev, unsigned long raddr, |
buff | 504 | drivers/net/slip.c | return ax25_rebuild_header(buff, dev, raddr, skb); |
buff | 514 | drivers/scsi/aha1542.c | void *buff = SCpnt->request_buffer; |
buff | 641 | drivers/scsi/aha1542.c | if(((unsigned int) buff & 0xff000000)) goto baddma; |
buff | 642 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].dataptr, buff); |
buff | 251 | drivers/scsi/aha1740.c | void *buff = SCpnt->request_buffer; |
buff | 347 | drivers/scsi/aha1740.c | ecb[ecbno].dataptr = (long) buff; |
buff | 604 | drivers/scsi/buslogic.c | void *buff = scpnt->request_buffer; |
buff | 754 | drivers/scsi/buslogic.c | CHECK_DMA_ADDR(shpnt->unchecked_isa_dma, buff, goto baddma); |
buff | 756 | drivers/scsi/buslogic.c | ccb[mbo].dataptr = buff; |
buff | 580 | drivers/scsi/eata_dma.c | static char buff[256]; |
buff | 583 | drivers/scsi/eata_dma.c | memset(buff, 0, sizeof(buff)); |
buff | 589 | drivers/scsi/eata_dma.c | cp.cp_dataDMA = htonl((long)buff); |
buff | 608 | drivers/scsi/eata_dma.c | return (buff); |
buff | 697 | drivers/scsi/eata_dma.c | char *buff; |
buff | 709 | drivers/scsi/eata_dma.c | if ((buff = get_board_data((uint)base, gc->IRQ, gc->scsi_id[3])) == NULL){ |
buff | 717 | drivers/scsi/eata_dma.c | if(strncmp("PM2322", &buff[16], 6) && strncmp("PM3021", &buff[16], 6) |
buff | 718 | drivers/scsi/eata_dma.c | && strncmp("PM3222", &buff[16], 6) && strncmp("PM3224", &buff[16], 6)) |
buff | 778 | drivers/scsi/eata_dma.c | strncpy(SD(sh)->vendor, &buff[8], 8); |
buff | 780 | drivers/scsi/eata_dma.c | strncpy(SD(sh)->name, &buff[16], 17); |
buff | 782 | drivers/scsi/eata_dma.c | SD(sh)->revision[0] = buff[32]; |
buff | 783 | drivers/scsi/eata_dma.c | SD(sh)->revision[1] = buff[33]; |
buff | 784 | drivers/scsi/eata_dma.c | SD(sh)->revision[2] = buff[34]; |
buff | 786 | drivers/scsi/eata_dma.c | SD(sh)->revision[4] = buff[35]; |
buff | 826 | drivers/scsi/eata_dma.c | if (buff[21] == '4') |
buff | 828 | drivers/scsi/eata_dma.c | else if (buff[21] == '2') |
buff | 414 | drivers/scsi/in2000.c | void *buff = SCpnt->request_buffer; |
buff | 495 | drivers/scsi/in2000.c | in2000_scatter = (struct scatterlist *) buff; |
buff | 501 | drivers/scsi/in2000.c | in2000_dataptr = (unsigned short*) buff; |
buff | 161 | drivers/scsi/scsi_debug.c | unsigned char * buff; |
buff | 174 | drivers/scsi/scsi_debug.c | buff = (unsigned char *) SCpnt->request_buffer; |
buff | 187 | drivers/scsi/scsi_debug.c | printk("scsi_debug: Requesting sense buffer (%x %x %x %d):", SCpnt, buff, done, bufflen); |
buff | 192 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 193 | drivers/scsi/scsi_debug.c | memcpy(buff, sense_buffer, bufflen); |
buff | 204 | drivers/scsi/scsi_debug.c | printk("Inquiry...(%x %d)\n", buff, bufflen); |
buff | 205 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 206 | drivers/scsi/scsi_debug.c | buff[0] = TYPE_DISK; |
buff | 207 | drivers/scsi/scsi_debug.c | buff[1] = 0x80; /* Removable disk */ |
buff | 208 | drivers/scsi/scsi_debug.c | buff[2] = 1; |
buff | 209 | drivers/scsi/scsi_debug.c | buff[4] = 33 - 5; |
buff | 210 | drivers/scsi/scsi_debug.c | memcpy(&buff[8],"Foo Inc",7); |
buff | 211 | drivers/scsi/scsi_debug.c | memcpy(&buff[16],"XYZZY",5); |
buff | 212 | drivers/scsi/scsi_debug.c | memcpy(&buff[32],"1",1); |
buff | 217 | drivers/scsi/scsi_debug.c | if (buff) |
buff | 218 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 224 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 225 | drivers/scsi/scsi_debug.c | buff[0] = (CAPACITY >> 24); |
buff | 226 | drivers/scsi/scsi_debug.c | buff[1] = (CAPACITY >> 16) & 0xff; |
buff | 227 | drivers/scsi/scsi_debug.c | buff[2] = (CAPACITY >> 8) & 0xff; |
buff | 228 | drivers/scsi/scsi_debug.c | buff[3] = CAPACITY & 0xff; |
buff | 229 | drivers/scsi/scsi_debug.c | buff[6] = 2; /* 512 byte sectors */ |
buff | 260 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) buff; |
buff | 261 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
buff | 270 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 275 | drivers/scsi/scsi_debug.c | *((unsigned short *) (buff+510)) = 0xAA55; |
buff | 276 | drivers/scsi/scsi_debug.c | p = (struct partition* ) (buff + 0x1be); |
buff | 315 | drivers/scsi/scsi_debug.c | memcpy(buff, &target, sizeof(target)); |
buff | 316 | drivers/scsi/scsi_debug.c | memcpy(buff+sizeof(target), cmd, 24); |
buff | 317 | drivers/scsi/scsi_debug.c | memcpy(buff+60, &block, sizeof(block)); |
buff | 318 | drivers/scsi/scsi_debug.c | memcpy(buff+64, SCpnt, sizeof(Scsi_Cmnd)); |
buff | 323 | drivers/scsi/scsi_debug.c | memcpy(buff+128, bh, sizeof(struct buffer_head)); |
buff | 330 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
buff | 357 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) buff; |
buff | 358 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
buff | 361 | drivers/scsi/scsi_debug.c | if (block != *((unsigned long *) (buff+60))) { |
buff | 362 | drivers/scsi/scsi_debug.c | printk("%x %x :",block, *((unsigned long *) (buff+60))); |
buff | 440 | drivers/scsi/sd.c | char * buff, *bounce_buffer; |
buff | 551 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buff | 571 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buff | 616 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buff | 618 | drivers/scsi/sd.c | buff = (char *) sgpnt; |
buff | 655 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buff | 729 | drivers/scsi/sd.c | if (((long) buff) + (this_count << 9) - 1 > ISA_DMA_THRESHOLD && |
buff | 732 | drivers/scsi/sd.c | buff = bounce_buffer; |
buff | 734 | drivers/scsi/sd.c | buff = (char *) scsi_malloc(this_count << 9); |
buff | 735 | drivers/scsi/sd.c | if(buff == NULL) { /* Try backing off a bit if we are low on mem*/ |
buff | 737 | drivers/scsi/sd.c | buff = (char *) scsi_malloc(this_count << 9); |
buff | 738 | drivers/scsi/sd.c | if(!buff) panic("Ran out of DMA buffers."); |
buff | 741 | drivers/scsi/sd.c | memcpy(buff, (char *)SCpnt->request.buffer, this_count << 9); |
buff | 798 | drivers/scsi/sd.c | scsi_do_cmd (SCpnt, (void *) cmd, buff, |
buff | 87 | drivers/scsi/seagate.c | void *buff, int bufflen, int reselect); |
buff | 582 | drivers/scsi/seagate.c | void *buff, int bufflen, int reselect) { |
buff | 55 | drivers/scsi/sg.c | char *buff; /* the buffer */ |
buff | 63 | drivers/scsi/sg.c | static void sg_free(char *buff,int size); |
buff | 114 | drivers/scsi/sg.c | if (scsi_generics[dev].buff != NULL) |
buff | 115 | drivers/scsi/sg.c | sg_free(scsi_generics[dev].buff,scsi_generics[dev].buff_len); |
buff | 116 | drivers/scsi/sg.c | scsi_generics[dev].buff=NULL; |
buff | 157 | drivers/scsi/sg.c | static void sg_free(char *buff,int size) |
buff | 160 | drivers/scsi/sg.c | if (buff==big_buff) |
buff | 167 | drivers/scsi/sg.c | scsi_free(buff,size); |
buff | 194 | drivers/scsi/sg.c | memcpy_tofs(buf,device->buff,count-sizeof(struct sg_header)); |
buff | 199 | drivers/scsi/sg.c | sg_free(device->buff,device->buff_len); |
buff | 200 | drivers/scsi/sg.c | device->buff = NULL; |
buff | 269 | drivers/scsi/sg.c | if ((bsize<0) || !(device->buff=sg_malloc(device->buff_len=bsize))) |
buff | 282 | drivers/scsi/sg.c | sg_free(device->buff,device->buff_len); |
buff | 283 | drivers/scsi/sg.c | device->buff = NULL; |
buff | 303 | drivers/scsi/sg.c | sg_free(device->buff,device->buff_len); |
buff | 304 | drivers/scsi/sg.c | device->buff = NULL; |
buff | 310 | drivers/scsi/sg.c | memcpy_fromfs(device->buff,buf,device->header.pack_len-size-sizeof(struct sg_header)); |
buff | 316 | drivers/scsi/sg.c | (void *) device->buff,amt, |
buff | 401 | drivers/scsi/sg.c | scsi_generics[i].buff=NULL; |
buff | 142 | drivers/sound/audio.c | translate_bytes (const unsigned char *table, unsigned char *buff, unsigned long n) |
buff | 147 | drivers/sound/audio.c | buff[i] = table[buff[i]]; |
buff | 152 | drivers/sound/audio.c | translate_bytes (const void *table, void *buff, unsigned long n) |
buff | 159 | drivers/sound/audio.c | :"b" ((long) table), "c" (n), "D" ((long) buff), "S" ((long) buff) |
buff | 31 | include/linux/etherdevice.h | extern int eth_header(unsigned char *buff, struct device *dev, |
buff | 35 | include/linux/etherdevice.h | extern int eth_rebuild_header(void *buff, struct device *dev, |
buff | 112 | include/linux/net.h | int (*send) (struct socket *sock, void *buff, int len, int nonblock, |
buff | 114 | include/linux/net.h | int (*recv) (struct socket *sock, void *buff, int len, int nonblock, |
buff | 116 | include/linux/net.h | int (*sendto) (struct socket *sock, void *buff, int len, int nonblock, |
buff | 118 | include/linux/net.h | int (*recvfrom) (struct socket *sock, void *buff, int len, int nonblock, |
buff | 142 | include/linux/netdevice.h | int (*hard_header) (unsigned char *buff, |
buff | 206 | include/linux/netdevice.h | extern int dev_rint(unsigned char *buff, long len, int flags, |
buff | 501 | net/inet/dev.c | int dev_rint(unsigned char *buff, long len, int flags, struct device *dev) |
buff | 509 | net/inet/dev.c | if (dev == NULL || buff == NULL || len <= 0) |
buff | 514 | net/inet/dev.c | skb = (struct sk_buff *) buff; |
buff | 547 | net/inet/dev.c | (unsigned long) buff); |
buff | 548 | net/inet/dev.c | memcpy(to, buff, amount); |
buff | 551 | net/inet/dev.c | buff += amount; |
buff | 553 | net/inet/dev.c | if ((unsigned long) buff == dev->rmem_end) |
buff | 554 | net/inet/dev.c | buff = (unsigned char *) dev->rmem_start; |
buff | 84 | net/inet/eth.c | int eth_header(unsigned char *buff, struct device *dev, unsigned short type, |
buff | 88 | net/inet/eth.c | struct ethhdr *eth = (struct ethhdr *)buff; |
buff | 135 | net/inet/eth.c | int eth_rebuild_header(void *buff, struct device *dev, unsigned long dst, |
buff | 138 | net/inet/eth.c | struct ethhdr *eth = (struct ethhdr *)buff; |
buff | 27 | net/inet/eth.h | extern int eth_header(unsigned char *buff, struct device *dev, |
buff | 30 | net/inet/eth.h | extern int eth_rebuild_header(void *buff, struct device *dev); |
buff | 651 | net/inet/icmp.c | unsigned char *buff; |
buff | 665 | net/inet/icmp.c | buff = skb1->h.raw; |
buff | 666 | net/inet/icmp.c | icmph = (struct icmphdr *) buff; |
buff | 234 | net/inet/ip.c | unsigned char *buff; |
buff | 239 | net/inet/ip.c | buff = skb->data; |
buff | 308 | net/inet/ip.c | buff += tmp; |
buff | 332 | net/inet/ip.c | iph = (struct iphdr *)buff; |
buff | 355 | net/inet/ip.c | unsigned char *buff; |
buff | 372 | net/inet/ip.c | buff = (unsigned char *)(iph + 1); |
buff | 375 | net/inet/ip.c | while (!done && len < iph->ihl*4) switch(*buff) { |
buff | 380 | net/inet/ip.c | buff++; |
buff | 384 | net/inet/ip.c | buff++; |
buff | 385 | net/inet/ip.c | if (*buff != 11) return(1); |
buff | 386 | net/inet/ip.c | buff++; |
buff | 387 | net/inet/ip.c | opt->security = ntohs(*(unsigned short *)buff); |
buff | 388 | net/inet/ip.c | buff += 2; |
buff | 389 | net/inet/ip.c | opt->compartment = ntohs(*(unsigned short *)buff); |
buff | 390 | net/inet/ip.c | buff += 2; |
buff | 391 | net/inet/ip.c | opt->handling = ntohs(*(unsigned short *)buff); |
buff | 392 | net/inet/ip.c | buff += 2; |
buff | 393 | net/inet/ip.c | opt->tcc = ((*buff) << 16) + ntohs(*(unsigned short *)(buff+1)); |
buff | 394 | net/inet/ip.c | buff += 3; |
buff | 398 | net/inet/ip.c | buff++; |
buff | 399 | net/inet/ip.c | if ((*buff - 3)% 4 != 0) return(1); |
buff | 400 | net/inet/ip.c | len += *buff; |
buff | 401 | net/inet/ip.c | opt->loose_route.route_size = (*buff -3)/4; |
buff | 402 | net/inet/ip.c | buff++; |
buff | 403 | net/inet/ip.c | if (*buff % 4 != 0) return(1); |
buff | 404 | net/inet/ip.c | opt->loose_route.pointer = *buff/4 - 1; |
buff | 405 | net/inet/ip.c | buff++; |
buff | 406 | net/inet/ip.c | buff++; |
buff | 410 | net/inet/ip.c | opt->loose_route.route[i] = *(unsigned long *)buff; |
buff | 411 | net/inet/ip.c | buff += 4; |
buff | 415 | net/inet/ip.c | buff++; |
buff | 416 | net/inet/ip.c | if ((*buff - 3)% 4 != 0) return(1); |
buff | 417 | net/inet/ip.c | len += *buff; |
buff | 418 | net/inet/ip.c | opt->strict_route.route_size = (*buff -3)/4; |
buff | 419 | net/inet/ip.c | buff++; |
buff | 420 | net/inet/ip.c | if (*buff % 4 != 0) return(1); |
buff | 421 | net/inet/ip.c | opt->strict_route.pointer = *buff/4 - 1; |
buff | 422 | net/inet/ip.c | buff++; |
buff | 423 | net/inet/ip.c | buff++; |
buff | 427 | net/inet/ip.c | opt->strict_route.route[i] = *(unsigned long *)buff; |
buff | 428 | net/inet/ip.c | buff += 4; |
buff | 432 | net/inet/ip.c | buff++; |
buff | 433 | net/inet/ip.c | if ((*buff - 3)% 4 != 0) return(1); |
buff | 434 | net/inet/ip.c | len += *buff; |
buff | 435 | net/inet/ip.c | opt->record_route.route_size = (*buff -3)/4; |
buff | 436 | net/inet/ip.c | buff++; |
buff | 437 | net/inet/ip.c | if (*buff % 4 != 0) return(1); |
buff | 438 | net/inet/ip.c | opt->record_route.pointer = *buff/4 - 1; |
buff | 439 | net/inet/ip.c | buff++; |
buff | 440 | net/inet/ip.c | buff++; |
buff | 444 | net/inet/ip.c | opt->record_route.route[i] = *(unsigned long *)buff; |
buff | 445 | net/inet/ip.c | buff += 4; |
buff | 450 | net/inet/ip.c | buff +=2; |
buff | 451 | net/inet/ip.c | opt->stream = *(unsigned short *)buff; |
buff | 452 | net/inet/ip.c | buff += 2; |
buff | 455 | net/inet/ip.c | buff++; |
buff | 456 | net/inet/ip.c | len += *buff; |
buff | 457 | net/inet/ip.c | if (*buff % 4 != 0) return(1); |
buff | 458 | net/inet/ip.c | opt->tstamp.len = *buff / 4 - 1; |
buff | 459 | net/inet/ip.c | buff++; |
buff | 460 | net/inet/ip.c | if ((*buff - 1) % 4 != 0) return(1); |
buff | 461 | net/inet/ip.c | opt->tstamp.ptr = (*buff-1)/4; |
buff | 462 | net/inet/ip.c | buff++; |
buff | 463 | net/inet/ip.c | opt->tstamp.x.full_char = *buff; |
buff | 464 | net/inet/ip.c | buff++; |
buff | 466 | net/inet/ip.c | opt->tstamp.data[i] = *(unsigned long *)buff; |
buff | 467 | net/inet/ip.c | buff += 4; |
buff | 504 | net/inet/ip.c | unsigned short ip_compute_csum(unsigned char * buff, int len) |
buff | 521 | net/inet/ip.c | : "=b" (sum) , "=S" (buff) |
buff | 522 | net/inet/ip.c | : "0" (sum), "c" (len >> 2) ,"1" (buff) |
buff | 530 | net/inet/ip.c | : "=b" (sum), "=S" (buff) |
buff | 531 | net/inet/ip.c | : "0" (sum), "1" (buff) |
buff | 540 | net/inet/ip.c | : "=b" (sum), "=S" (buff) |
buff | 541 | net/inet/ip.c | : "0" (sum), "1" (buff) |
buff | 86 | net/inet/ip.h | extern unsigned short ip_compute_csum(unsigned char * buff, int len); |
buff | 107 | net/inet/ip.h | static inline unsigned short ip_fast_csum(unsigned char * buff, int wlen) |
buff | 125 | net/inet/ip.h | : "=r" (sum), "=S" (buff), "=r" (wlen), "=a" (bogus) |
buff | 126 | net/inet/ip.h | : "0" (sum), "1" (buff), "2" (wlen)); |
buff | 224 | net/inet/packet.c | static int packet_write(struct sock *sk, unsigned char *buff, |
buff | 227 | net/inet/packet.c | return(packet_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
buff | 365 | net/inet/packet.c | int packet_read(struct sock *sk, unsigned char *buff, |
buff | 368 | net/inet/packet.c | return(packet_recvfrom(sk, buff, len, noblock, flags, NULL, NULL)); |
buff | 39 | net/inet/protocol.h | void (*err_handler)(int err, unsigned char *buff, |
buff | 200 | net/inet/raw.c | unsigned char *buff; |
buff | 203 | net/inet/raw.c | buff = skb->data; |
buff | 204 | net/inet/raw.c | buff += tmp; |
buff | 206 | net/inet/raw.c | iph = (struct iphdr *)buff; |
buff | 218 | net/inet/raw.c | static int raw_write(struct sock *sk, unsigned char *buff, int len, int noblock, |
buff | 221 | net/inet/raw.c | return(raw_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
buff | 282 | net/inet/raw.c | int raw_read (struct sock *sk, unsigned char *buff, int len, int noblock,unsigned flags) |
buff | 284 | net/inet/raw.c | return(raw_recvfrom(sk, buff, len, noblock, flags, NULL, NULL)); |
buff | 29 | net/inet/raw.h | extern int raw_read(struct sock *sk, unsigned char *buff, |
buff | 240 | net/inet/sock.h | int (*rcv)(struct sk_buff *buff, struct device *dev, |
buff | 1300 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 1313 | net/inet/tcp.c | buff = sk->prot->wmalloc(sk, MAX_ACK_SIZE, 1, GFP_ATOMIC); |
buff | 1314 | net/inet/tcp.c | if (buff == NULL) |
buff | 1335 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
buff | 1336 | net/inet/tcp.c | buff->sk = sk; |
buff | 1337 | net/inet/tcp.c | buff->localroute = sk->localroute; |
buff | 1338 | net/inet/tcp.c | t1 =(struct tcphdr *) buff->data; |
buff | 1344 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev, |
buff | 1348 | net/inet/tcp.c | buff->free = 1; |
buff | 1349 | net/inet/tcp.c | sk->prot->wfree(sk, buff->mem_addr, buff->mem_len); |
buff | 1352 | net/inet/tcp.c | buff->len += tmp; |
buff | 1407 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
buff | 1447 | net/inet/tcp.c | unsigned char *buff; |
buff | 1688 | net/inet/tcp.c | buff = skb->data; |
buff | 1707 | net/inet/tcp.c | buff += tmp; |
buff | 1708 | net/inet/tcp.c | skb->h.th =(struct tcphdr *) buff; |
buff | 1709 | net/inet/tcp.c | tmp = tcp_build_header((struct tcphdr *)buff, sk, len-copy); |
buff | 1721 | net/inet/tcp.c | ((struct tcphdr *)buff)->urg = 1; |
buff | 1722 | net/inet/tcp.c | ((struct tcphdr *)buff)->urg_ptr = ntohs(copy); |
buff | 1725 | net/inet/tcp.c | memcpy_fromfs(buff+tmp, from, copy); |
buff | 1798 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 1814 | net/inet/tcp.c | buff = sk->prot->wmalloc(sk,MAX_ACK_SIZE,1, GFP_ATOMIC); |
buff | 1815 | net/inet/tcp.c | if (buff == NULL) |
buff | 1822 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
buff | 1823 | net/inet/tcp.c | buff->sk = sk; |
buff | 1824 | net/inet/tcp.c | buff->localroute = sk->localroute; |
buff | 1830 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
buff | 1834 | net/inet/tcp.c | buff->free = 1; |
buff | 1835 | net/inet/tcp.c | sk->prot->wfree(sk, buff->mem_addr, buff->mem_len); |
buff | 1839 | net/inet/tcp.c | buff->len += tmp; |
buff | 1840 | net/inet/tcp.c | t1 =(struct tcphdr *)(buff->data +tmp); |
buff | 1858 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
buff | 2308 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 2314 | net/inet/tcp.c | buff = prot->wmalloc(sk, MAX_RESET_SIZE,1 , GFP_KERNEL); |
buff | 2317 | net/inet/tcp.c | if (buff == NULL) |
buff | 2328 | net/inet/tcp.c | buff->sk = sk; |
buff | 2329 | net/inet/tcp.c | buff->len = sizeof(*t1); |
buff | 2330 | net/inet/tcp.c | buff->localroute = sk->localroute; |
buff | 2331 | net/inet/tcp.c | t1 =(struct tcphdr *) buff->data; |
buff | 2337 | net/inet/tcp.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
buff | 2348 | net/inet/tcp.c | buff->free = 1; |
buff | 2349 | net/inet/tcp.c | prot->wfree(sk,buff->mem_addr, buff->mem_len); |
buff | 2365 | net/inet/tcp.c | buff->len += tmp; |
buff | 2366 | net/inet/tcp.c | buff->dev = dev; |
buff | 2370 | net/inet/tcp.c | buff->h.seq = sk->write_seq; |
buff | 2386 | net/inet/tcp.c | buff->free = 0; |
buff | 2387 | net/inet/tcp.c | if (buff->next != NULL) |
buff | 2390 | net/inet/tcp.c | skb_unlink(buff); |
buff | 2392 | net/inet/tcp.c | skb_queue_tail(&sk->write_queue, buff); |
buff | 2397 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 0); |
buff | 2496 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 2513 | net/inet/tcp.c | buff = prot->wmalloc(NULL, MAX_RESET_SIZE, 1, GFP_ATOMIC); |
buff | 2514 | net/inet/tcp.c | if (buff == NULL) |
buff | 2517 | net/inet/tcp.c | buff->len = sizeof(*t1); |
buff | 2518 | net/inet/tcp.c | buff->sk = NULL; |
buff | 2519 | net/inet/tcp.c | buff->dev = dev; |
buff | 2520 | net/inet/tcp.c | buff->localroute = 0; |
buff | 2522 | net/inet/tcp.c | t1 =(struct tcphdr *) buff->data; |
buff | 2528 | net/inet/tcp.c | tmp = prot->build_header(buff, saddr, daddr, &ndev, IPPROTO_TCP, opt, |
buff | 2532 | net/inet/tcp.c | buff->free = 1; |
buff | 2533 | net/inet/tcp.c | prot->wfree(NULL, buff->mem_addr, buff->mem_len); |
buff | 2538 | net/inet/tcp.c | buff->len += tmp; |
buff | 2572 | net/inet/tcp.c | prot->queue_xmit(NULL, ndev, buff, 1); |
buff | 2677 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 2854 | net/inet/tcp.c | buff = newsk->prot->wmalloc(newsk, MAX_SYN_SIZE, 1, GFP_ATOMIC); |
buff | 2855 | net/inet/tcp.c | if (buff == NULL) |
buff | 2867 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr)+4; |
buff | 2868 | net/inet/tcp.c | buff->sk = newsk; |
buff | 2869 | net/inet/tcp.c | buff->localroute = newsk->localroute; |
buff | 2871 | net/inet/tcp.c | t1 =(struct tcphdr *) buff->data; |
buff | 2877 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, newsk->saddr, newsk->daddr, &ndev, |
buff | 2887 | net/inet/tcp.c | buff->free = 1; |
buff | 2888 | net/inet/tcp.c | kfree_skb(buff,FREE_WRITE); |
buff | 2898 | net/inet/tcp.c | buff->len += tmp; |
buff | 2902 | net/inet/tcp.c | buff->h.seq = newsk->write_seq; |
buff | 2928 | net/inet/tcp.c | newsk->prot->queue_xmit(newsk, ndev, buff, 0); |
buff | 4258 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 4300 | net/inet/tcp.c | buff = sk->prot->wmalloc(sk,MAX_SYN_SIZE,0, GFP_KERNEL); |
buff | 4301 | net/inet/tcp.c | if (buff == NULL) |
buff | 4306 | net/inet/tcp.c | buff->len = 24; |
buff | 4307 | net/inet/tcp.c | buff->sk = sk; |
buff | 4308 | net/inet/tcp.c | buff->free = 0; |
buff | 4309 | net/inet/tcp.c | buff->localroute = sk->localroute; |
buff | 4311 | net/inet/tcp.c | t1 = (struct tcphdr *) buff->data; |
buff | 4324 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
buff | 4328 | net/inet/tcp.c | sk->prot->wfree(sk, buff->mem_addr, buff->mem_len); |
buff | 4333 | net/inet/tcp.c | buff->len += tmp; |
buff | 4339 | net/inet/tcp.c | buff->h.seq = sk->write_seq; |
buff | 4407 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 0); |
buff | 4904 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 4928 | net/inet/tcp.c | buff = sk->prot->wmalloc(sk,MAX_ACK_SIZE,1, GFP_ATOMIC); |
buff | 4929 | net/inet/tcp.c | if (buff == NULL) |
buff | 4932 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
buff | 4933 | net/inet/tcp.c | buff->free = 1; |
buff | 4934 | net/inet/tcp.c | buff->sk = sk; |
buff | 4935 | net/inet/tcp.c | buff->localroute = sk->localroute; |
buff | 4937 | net/inet/tcp.c | t1 = (struct tcphdr *) buff->data; |
buff | 4940 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
buff | 4944 | net/inet/tcp.c | sk->prot->wfree(sk, buff->mem_addr, buff->mem_len); |
buff | 4948 | net/inet/tcp.c | buff->len += tmp; |
buff | 4975 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
buff | 257 | net/inet/udp.c | unsigned char *buff; |
buff | 281 | net/inet/udp.c | buff = skb->data; |
buff | 304 | net/inet/udp.c | buff += tmp; |
buff | 313 | net/inet/udp.c | uh = (struct udphdr *) buff; |
buff | 317 | net/inet/udp.c | buff = (unsigned char *) (uh + 1); |
buff | 323 | net/inet/udp.c | memcpy_fromfs(buff, from, len); |
buff | 401 | net/inet/udp.c | static int udp_write(struct sock *sk, unsigned char *buff, int len, int noblock, |
buff | 404 | net/inet/udp.c | return(udp_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
buff | 519 | net/inet/udp.c | int udp_read(struct sock *sk, unsigned char *buff, int len, int noblock, |
buff | 522 | net/inet/udp.c | return(udp_recvfrom(sk, buff, len, noblock, flags, NULL, NULL)); |
buff | 39 | net/inet/udp.h | extern int udp_read(struct sock *sk, unsigned char *buff, |
buff | 51 | net/inet/utils.c | static char buff[18]; |
buff | 55 | net/inet/utils.c | sprintf(buff, "%d.%d.%d.%d", |
buff | 57 | net/inet/utils.c | return(buff); |
buff | 951 | net/socket.c | static int sock_send(int fd, void * buff, int len, unsigned flags) |
buff | 964 | net/socket.c | err=verify_area(VERIFY_READ, buff, len); |
buff | 967 | net/socket.c | return(sock->ops->send(sock, buff, len, (file->f_flags & O_NONBLOCK), flags)); |
buff | 976 | net/socket.c | static int sock_sendto(int fd, void * buff, int len, unsigned flags, |
buff | 991 | net/socket.c | err=verify_area(VERIFY_READ,buff,len); |
buff | 998 | net/socket.c | return(sock->ops->sendto(sock, buff, len, (file->f_flags & O_NONBLOCK), |
buff | 1011 | net/socket.c | static int sock_recv(int fd, void * buff, int len, unsigned flags) |
buff | 1027 | net/socket.c | err=verify_area(VERIFY_WRITE, buff, len); |
buff | 1031 | net/socket.c | return(sock->ops->recv(sock, buff, len,(file->f_flags & O_NONBLOCK), flags)); |
buff | 1040 | net/socket.c | static int sock_recvfrom(int fd, void * buff, int len, unsigned flags, |
buff | 1057 | net/socket.c | err=verify_area(VERIFY_WRITE,buff,len); |
buff | 1061 | net/socket.c | len=sock->ops->recvfrom(sock, buff, len, (file->f_flags & O_NONBLOCK), |
buff | 80 | net/unix/sock.c | static int unix_proto_send(struct socket *sock, void *buff, int len, |
buff | 82 | net/unix/sock.c | static int unix_proto_recv(struct socket *sock, void *buff, int len, |
buff | 84 | net/unix/sock.c | static int unix_proto_sendto(struct socket *sock, void *buff, int len, |
buff | 87 | net/unix/sock.c | static int unix_proto_recvfrom(struct socket *sock, void *buff, int len, |
buff | 163 | net/unix/sock.c | static int unix_proto_sendto(struct socket *sock, void *buff, int len, int nonblock, |
buff | 169 | net/unix/sock.c | static int unix_proto_recvfrom(struct socket *sock, void *buff, int len, int nonblock, |
buff | 189 | net/unix/sock.c | static int unix_proto_send(struct socket *sock, void *buff, int len, int nonblock, |
buff | 194 | net/unix/sock.c | return(unix_proto_write(sock, (char *) buff, len, nonblock)); |
buff | 202 | net/unix/sock.c | static int unix_proto_recv(struct socket *sock, void *buff, int len, int nonblock, |
buff | 207 | net/unix/sock.c | return(unix_proto_read(sock, (char *) buff, len, nonblock)); |