tag | line | file | source code |
buff | 677 | drivers/char/console.c | char buff[3]; |
buff | 681 | drivers/char/console.c | buff[i++] = (n%10)+'0'; |
buff | 685 | drivers/char/console.c | put_tty_queue(buff[i], &tty->read_q); |
buff | 45 | drivers/net/lance.c | #define kfree_skbmem(buff, size) kfree_s(buff,size) |
buff | 140 | drivers/net/plip.c | static int plip_header (unsigned char *buff, struct device *dev, |
buff | 305 | drivers/net/plip.c | plip_header (unsigned char *buff, struct device *dev, |
buff | 313 | drivers/net/plip.c | return eth_header(buff, dev, type, h_dest, h_source, len); |
buff | 550 | drivers/net/slip.c | sl_header(unsigned char *buff, struct device *dev, unsigned short type, |
buff | 561 | drivers/net/slip.c | *buff++=0; |
buff | 562 | drivers/net/slip.c | memcpy(buff,dev->broadcast,dev->addr_len); /* QST-0 */ |
buff | 570 | drivers/net/slip.c | *buff++=0; /* KISS DATA */ |
buff | 571 | drivers/net/slip.c | memcpy(buff,&daddr,4); /* In case arp fails */ |
buff | 572 | drivers/net/slip.c | if(arp_find(buff,daddr,dev, saddr)) |
buff | 574 | drivers/net/slip.c | memcpy(buff+7,&saddr,4); |
buff | 575 | drivers/net/slip.c | buff+=14; |
buff | 576 | drivers/net/slip.c | *buff++=LAPB_UI; /* UI */ |
buff | 578 | drivers/net/slip.c | *buff++=PID_IP; /* AX25 IP */ |
buff | 583 | drivers/net/slip.c | buff[6]&=~LAPB_C; |
buff | 584 | drivers/net/slip.c | buff[6]&=~LAPB_E; |
buff | 585 | drivers/net/slip.c | buff+=7; |
buff | 586 | drivers/net/slip.c | memcpy(buff,dev->dev_addr,dev->addr_len); |
buff | 587 | drivers/net/slip.c | buff[6]&=~LAPB_C; |
buff | 588 | drivers/net/slip.c | buff[6]|=LAPB_E; |
buff | 589 | drivers/net/slip.c | buff+=7; |
buff | 590 | drivers/net/slip.c | *buff++=LAPB_UI; /* UI */ |
buff | 595 | drivers/net/slip.c | *buff++=PID_IP; /* AX25 IP */ |
buff | 598 | drivers/net/slip.c | *buff++=PID_ARP; |
buff | 601 | drivers/net/slip.c | *buff++=0; |
buff | 627 | drivers/net/slip.c | sl_rebuild_header(void *buff, struct device *dev) |
buff | 634 | drivers/net/slip.c | unsigned char *bp=(unsigned char *)buff; |
buff | 759 | drivers/net/slip.c | unsigned char buff[128]; |
buff | 772 | drivers/net/slip.c | count = tty_read_raw_data(tty, buff, 128); |
buff | 780 | drivers/net/slip.c | p = buff; |
buff | 804 | drivers/net/slip.c | slip_unesc6(sl,buff,count,error); |
buff | 806 | drivers/net/slip.c | slip_unesc(sl,buff,count,error); |
buff | 393 | drivers/scsi/aha1542.c | void *buff = SCpnt->request_buffer; |
buff | 510 | drivers/scsi/aha1542.c | if(((unsigned int) buff & 0xff000000)) goto baddma; |
buff | 521 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].dataptr, buff); |
buff | 243 | drivers/scsi/aha1740.c | void *buff = SCpnt->request_buffer; |
buff | 339 | drivers/scsi/aha1740.c | ecb[ecbno].dataptr = (long) buff; |
buff | 143 | drivers/scsi/scsi_debug.c | unsigned char * buff; |
buff | 155 | drivers/scsi/scsi_debug.c | buff = (unsigned char *) SCpnt->request_buffer; |
buff | 168 | drivers/scsi/scsi_debug.c | printk("scsi_debug: Requesting sense buffer (%x %x %x %d):", SCpnt, buff, done, bufflen); |
buff | 173 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 174 | drivers/scsi/scsi_debug.c | memcpy(buff, sense_buffer, bufflen); |
buff | 185 | drivers/scsi/scsi_debug.c | printk("Inquiry...(%x %d)\n", buff, bufflen); |
buff | 186 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 187 | drivers/scsi/scsi_debug.c | buff[0] = TYPE_DISK; |
buff | 188 | drivers/scsi/scsi_debug.c | buff[1] = 0x80; /* Removable disk */ |
buff | 189 | drivers/scsi/scsi_debug.c | buff[2] = 1; |
buff | 190 | drivers/scsi/scsi_debug.c | memcpy(&buff[8],"Foo Inc",7); |
buff | 191 | drivers/scsi/scsi_debug.c | memcpy(&buff[16],"XYZZY",5); |
buff | 192 | drivers/scsi/scsi_debug.c | memcpy(&buff[32],"1",1); |
buff | 197 | drivers/scsi/scsi_debug.c | if (buff) |
buff | 198 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 204 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 205 | drivers/scsi/scsi_debug.c | buff[0] = (CAPACITY >> 24); |
buff | 206 | drivers/scsi/scsi_debug.c | buff[1] = (CAPACITY >> 16) & 0xff; |
buff | 207 | drivers/scsi/scsi_debug.c | buff[2] = (CAPACITY >> 8) & 0xff; |
buff | 208 | drivers/scsi/scsi_debug.c | buff[3] = CAPACITY & 0xff; |
buff | 209 | drivers/scsi/scsi_debug.c | buff[6] = 2; /* 512 byte sectors */ |
buff | 226 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) buff; |
buff | 227 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
buff | 234 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 238 | drivers/scsi/scsi_debug.c | *((unsigned short *) (buff+510)) = 0xAA55; |
buff | 239 | drivers/scsi/scsi_debug.c | p = (struct partition* ) (buff + 0x1be); |
buff | 273 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 274 | drivers/scsi/scsi_debug.c | memcpy(buff, &target, sizeof(target)); |
buff | 275 | drivers/scsi/scsi_debug.c | memcpy(buff+sizeof(target), cmd, 24); |
buff | 276 | drivers/scsi/scsi_debug.c | memcpy(buff+60, &block, sizeof(block)); |
buff | 277 | drivers/scsi/scsi_debug.c | memcpy(buff+64, SCpnt, sizeof(Scsi_Cmnd)); |
buff | 280 | drivers/scsi/scsi_debug.c | memcpy(buff+128, bh, sizeof(struct buffer_head)); |
buff | 286 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
buff | 308 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) buff; |
buff | 309 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
buff | 312 | drivers/scsi/scsi_debug.c | if (block != *((unsigned long *) (buff+60))) { |
buff | 313 | drivers/scsi/scsi_debug.c | printk("%x %x :",block, *((unsigned long *) (buff+60))); |
buff | 384 | drivers/scsi/sd.c | char * buff; |
buff | 448 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buff | 468 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buff | 497 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buff | 499 | drivers/scsi/sd.c | buff = (char *) sgpnt; |
buff | 530 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buff | 532 | drivers/scsi/sd.c | scsi_free(buff, SCpnt->sglist_len); |
buff | 547 | drivers/scsi/sd.c | if (((int) buff) + (this_count << 9) > ISA_DMA_THRESHOLD && |
buff | 549 | drivers/scsi/sd.c | buff = (char *) scsi_malloc(this_count << 9); |
buff | 550 | drivers/scsi/sd.c | if(buff == NULL) panic("Ran out of DMA buffers."); |
buff | 552 | drivers/scsi/sd.c | memcpy(buff, (char *)SCpnt->request.buffer, this_count << 9); |
buff | 611 | 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 | 45 | drivers/scsi/sg.c | char *buff; /* the buffer */ |
buff | 103 | drivers/scsi/sg.c | scsi_free(scsi_generics[dev].buff,scsi_generics[dev].buff_len); |
buff | 140 | drivers/scsi/sg.c | static void sg_free(char *buff,int size) |
buff | 143 | drivers/scsi/sg.c | if (buff==big_buff) |
buff | 150 | drivers/scsi/sg.c | scsi_free(buff,size); |
buff | 176 | drivers/scsi/sg.c | memcpy_tofs(buf,device->buff,count-sizeof(struct sg_header)); |
buff | 180 | drivers/scsi/sg.c | sg_free(device->buff,device->buff_len); |
buff | 242 | drivers/scsi/sg.c | if ((bsize<0) || !(device->buff=sg_malloc(device->buff_len=bsize))) |
buff | 255 | drivers/scsi/sg.c | sg_free(device->buff,device->buff_len); |
buff | 267 | drivers/scsi/sg.c | memcpy_fromfs(device->buff,buf,device->header.pack_len-size-sizeof(struct sg_header)); |
buff | 273 | drivers/scsi/sg.c | (void *) device->buff,amt,sg_command_done,device->timeout,SG_DEFAULT_RETRIES); |
buff | 101 | drivers/sound/audio.c | translate_bytes (const unsigned char *table, unsigned char *buff, unsigned long n) |
buff | 106 | drivers/sound/audio.c | buff[i] = table[buff[i]]; |
buff | 111 | drivers/sound/audio.c | translate_bytes (const void *table, void *buff, unsigned long n) |
buff | 118 | drivers/sound/audio.c | :"b" ((long) table), "c" (n), "D" ((long) buff), "S" ((long) buff) |
buff | 108 | include/linux/net.h | int (*send) (struct socket *sock, void *buff, int len, int nonblock, |
buff | 110 | include/linux/net.h | int (*recv) (struct socket *sock, void *buff, int len, int nonblock, |
buff | 112 | include/linux/net.h | int (*sendto) (struct socket *sock, void *buff, int len, int nonblock, |
buff | 114 | include/linux/net.h | int (*recvfrom) (struct socket *sock, void *buff, int len, int nonblock, |
buff | 130 | net/inet/arp.c | static char buff[32]; |
buff | 131 | net/inet/arp.c | char *bufp = buff; |
buff | 136 | net/inet/arp.c | return(buff); |
buff | 499 | net/inet/dev.c | dev_rint(unsigned char *buff, long len, int flags, struct device *dev) |
buff | 507 | net/inet/dev.c | if (dev == NULL || buff == NULL || len <= 0) return(1); |
buff | 509 | net/inet/dev.c | skb = (struct sk_buff *) buff; |
buff | 534 | net/inet/dev.c | (unsigned long) buff); |
buff | 535 | net/inet/dev.c | memcpy(to, buff, amount); |
buff | 538 | net/inet/dev.c | buff += amount; |
buff | 540 | net/inet/dev.c | if ((unsigned long) buff == dev->rmem_end) |
buff | 541 | net/inet/dev.c | buff = (unsigned char *) dev->rmem_start; |
buff | 121 | net/inet/dev.h | int (*hard_header) (unsigned char *buff, |
buff | 180 | net/inet/dev.h | extern int dev_rint(unsigned char *buff, long len, int flags, |
buff | 51 | net/inet/eth.c | static char buff[64]; |
buff | 54 | net/inet/eth.c | sprintf(buff, "%02X:%02X:%02X:%02X:%02X:%02X", |
buff | 58 | net/inet/eth.c | return(buff); |
buff | 97 | net/inet/eth.c | eth_header(unsigned char *buff, struct device *dev, unsigned short type, |
buff | 106 | net/inet/eth.c | eth = (struct ethhdr *) buff; |
buff | 146 | net/inet/eth.c | eth_rebuild_header(void *buff, struct device *dev) |
buff | 152 | net/inet/eth.c | 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 | 360 | net/inet/icmp.c | unsigned char *buff; |
buff | 371 | net/inet/icmp.c | buff = skb1->h.raw; |
buff | 372 | net/inet/icmp.c | icmph = (struct icmphdr *) buff; |
buff | 75 | net/inet/ip.c | unsigned char buff[32]; |
buff | 100 | net/inet/ip.c | buff[i] = *ptr++; |
buff | 101 | net/inet/ip.c | if (buff[i] < 32 || buff[i] > 126) buff[i] = '.'; |
buff | 104 | net/inet/ip.c | buff[i] = ' '; |
buff | 109 | net/inet/ip.c | buff[i] = '\0'; |
buff | 110 | net/inet/ip.c | printk(" \"%s\"\n", buff); |
buff | 206 | net/inet/ip.c | unsigned char *buff; |
buff | 218 | net/inet/ip.c | buff = (unsigned char *)(skb + 1); |
buff | 243 | net/inet/ip.c | buff += tmp; |
buff | 257 | net/inet/ip.c | iph = (struct iphdr *)buff; |
buff | 280 | net/inet/ip.c | unsigned char *buff; |
buff | 297 | net/inet/ip.c | buff = (unsigned char *)(iph + 1); |
buff | 300 | net/inet/ip.c | while (!done && len < iph->ihl*4) switch(*buff) { |
buff | 305 | net/inet/ip.c | buff++; |
buff | 309 | net/inet/ip.c | buff++; |
buff | 310 | net/inet/ip.c | if (*buff != 11) return(1); |
buff | 311 | net/inet/ip.c | buff++; |
buff | 312 | net/inet/ip.c | opt->security = ntohs(*(unsigned short *)buff); |
buff | 313 | net/inet/ip.c | buff += 2; |
buff | 314 | net/inet/ip.c | opt->compartment = ntohs(*(unsigned short *)buff); |
buff | 315 | net/inet/ip.c | buff += 2; |
buff | 316 | net/inet/ip.c | opt->handling = ntohs(*(unsigned short *)buff); |
buff | 317 | net/inet/ip.c | buff += 2; |
buff | 318 | net/inet/ip.c | opt->tcc = ((*buff) << 16) + ntohs(*(unsigned short *)(buff+1)); |
buff | 319 | net/inet/ip.c | buff += 3; |
buff | 323 | net/inet/ip.c | buff++; |
buff | 324 | net/inet/ip.c | if ((*buff - 3)% 4 != 0) return(1); |
buff | 325 | net/inet/ip.c | len += *buff; |
buff | 326 | net/inet/ip.c | opt->loose_route.route_size = (*buff -3)/4; |
buff | 327 | net/inet/ip.c | buff++; |
buff | 328 | net/inet/ip.c | if (*buff % 4 != 0) return(1); |
buff | 329 | net/inet/ip.c | opt->loose_route.pointer = *buff/4 - 1; |
buff | 330 | net/inet/ip.c | buff++; |
buff | 331 | net/inet/ip.c | buff++; |
buff | 335 | net/inet/ip.c | opt->loose_route.route[i] = *(unsigned long *)buff; |
buff | 336 | net/inet/ip.c | buff += 4; |
buff | 340 | net/inet/ip.c | buff++; |
buff | 341 | net/inet/ip.c | if ((*buff - 3)% 4 != 0) return(1); |
buff | 342 | net/inet/ip.c | len += *buff; |
buff | 343 | net/inet/ip.c | opt->strict_route.route_size = (*buff -3)/4; |
buff | 344 | net/inet/ip.c | buff++; |
buff | 345 | net/inet/ip.c | if (*buff % 4 != 0) return(1); |
buff | 346 | net/inet/ip.c | opt->strict_route.pointer = *buff/4 - 1; |
buff | 347 | net/inet/ip.c | buff++; |
buff | 348 | net/inet/ip.c | buff++; |
buff | 352 | net/inet/ip.c | opt->strict_route.route[i] = *(unsigned long *)buff; |
buff | 353 | net/inet/ip.c | buff += 4; |
buff | 357 | net/inet/ip.c | buff++; |
buff | 358 | net/inet/ip.c | if ((*buff - 3)% 4 != 0) return(1); |
buff | 359 | net/inet/ip.c | len += *buff; |
buff | 360 | net/inet/ip.c | opt->record_route.route_size = (*buff -3)/4; |
buff | 361 | net/inet/ip.c | buff++; |
buff | 362 | net/inet/ip.c | if (*buff % 4 != 0) return(1); |
buff | 363 | net/inet/ip.c | opt->record_route.pointer = *buff/4 - 1; |
buff | 364 | net/inet/ip.c | buff++; |
buff | 365 | net/inet/ip.c | buff++; |
buff | 369 | net/inet/ip.c | opt->record_route.route[i] = *(unsigned long *)buff; |
buff | 370 | net/inet/ip.c | buff += 4; |
buff | 375 | net/inet/ip.c | buff +=2; |
buff | 376 | net/inet/ip.c | opt->stream = *(unsigned short *)buff; |
buff | 377 | net/inet/ip.c | buff += 2; |
buff | 380 | net/inet/ip.c | buff++; |
buff | 381 | net/inet/ip.c | len += *buff; |
buff | 382 | net/inet/ip.c | if (*buff % 4 != 0) return(1); |
buff | 383 | net/inet/ip.c | opt->tstamp.len = *buff / 4 - 1; |
buff | 384 | net/inet/ip.c | buff++; |
buff | 385 | net/inet/ip.c | if ((*buff - 1) % 4 != 0) return(1); |
buff | 386 | net/inet/ip.c | opt->tstamp.ptr = (*buff-1)/4; |
buff | 387 | net/inet/ip.c | buff++; |
buff | 388 | net/inet/ip.c | opt->tstamp.x.full_char = *buff; |
buff | 389 | net/inet/ip.c | buff++; |
buff | 391 | net/inet/ip.c | opt->tstamp.data[i] = *(unsigned long *)buff; |
buff | 392 | net/inet/ip.c | buff += 4; |
buff | 427 | net/inet/ip.c | ip_fast_csum(unsigned char * buff, int wlen) |
buff | 443 | net/inet/ip.c | : "=r" (sum), "=S" (buff), "=r" (wlen) |
buff | 444 | net/inet/ip.c | : "0" (sum), "1" (buff), "2" (wlen) |
buff | 454 | net/inet/ip.c | ip_compute_csum(unsigned char * buff, int len) |
buff | 470 | net/inet/ip.c | : "=b" (sum) , "=S" (buff) |
buff | 471 | net/inet/ip.c | : "0" (sum), "c" (len >> 2) ,"1" (buff) |
buff | 478 | net/inet/ip.c | : "=b" (sum), "=S" (buff) |
buff | 479 | net/inet/ip.c | : "0" (sum), "1" (buff) |
buff | 487 | net/inet/ip.c | : "=b" (sum), "=S" (buff) |
buff | 488 | net/inet/ip.c | : "0" (sum), "1" (buff) |
buff | 73 | net/inet/ip.h | extern unsigned short ip_compute_csum(unsigned char * buff, int len); |
buff | 143 | net/inet/packet.c | packet_write(struct sock *sk, unsigned char *buff, |
buff | 146 | net/inet/packet.c | return(packet_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
buff | 236 | net/inet/packet.c | packet_read(struct sock *sk, unsigned char *buff, |
buff | 239 | 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 | 232 | net/inet/raw.c | unsigned char *buff; |
buff | 235 | net/inet/raw.c | buff = (unsigned char *)(skb + 1); |
buff | 236 | net/inet/raw.c | buff += tmp; |
buff | 237 | net/inet/raw.c | iph = (struct iphdr *)buff; |
buff | 257 | net/inet/raw.c | raw_write(struct sock *sk, unsigned char *buff, int len, int noblock, |
buff | 260 | net/inet/raw.c | return(raw_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
buff | 362 | net/inet/raw.c | raw_read (struct sock *sk, unsigned char *buff, int len, int noblock, |
buff | 365 | net/inet/raw.c | return(raw_recvfrom(sk, buff, len, noblock, flags, NULL, NULL)); |
buff | 33 | net/inet/raw.h | extern int raw_read(struct sock *sk, unsigned char *buff, |
buff | 190 | net/inet/sock.h | int (*rcv)(struct sk_buff *buff, struct device *dev, |
buff | 595 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 606 | net/inet/tcp.c | buff = (struct sk_buff *) sk->prot->wmalloc(sk, MAX_ACK_SIZE, 1, GFP_ATOMIC); |
buff | 607 | net/inet/tcp.c | if (buff == NULL) { |
buff | 617 | net/inet/tcp.c | buff->mem_addr = buff; |
buff | 618 | net/inet/tcp.c | buff->mem_len = MAX_ACK_SIZE; |
buff | 619 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
buff | 620 | net/inet/tcp.c | buff->sk = sk; |
buff | 621 | net/inet/tcp.c | t1 =(struct tcphdr *)(buff + 1); |
buff | 624 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev, |
buff | 627 | net/inet/tcp.c | buff->free=1; |
buff | 628 | net/inet/tcp.c | sk->prot->wfree(sk, buff->mem_addr, buff->mem_len); |
buff | 632 | net/inet/tcp.c | buff->len += tmp; |
buff | 665 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
buff | 704 | net/inet/tcp.c | unsigned char *buff; |
buff | 883 | net/inet/tcp.c | buff =(unsigned char *)(skb+1); |
buff | 900 | net/inet/tcp.c | buff += tmp; |
buff | 901 | net/inet/tcp.c | skb->h.th =(struct tcphdr *) buff; |
buff | 902 | net/inet/tcp.c | tmp = tcp_build_header((struct tcphdr *)buff, sk, len-copy); |
buff | 912 | net/inet/tcp.c | ((struct tcphdr *)buff)->urg = 1; |
buff | 913 | net/inet/tcp.c | ((struct tcphdr *)buff)->urg_ptr = ntohs(copy); |
buff | 916 | net/inet/tcp.c | memcpy_fromfs(buff+tmp, from, copy); |
buff | 927 | net/inet/tcp.c | tcp_send_check((struct tcphdr *)buff, sk->saddr, sk->daddr, |
buff | 982 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 997 | net/inet/tcp.c | buff = (struct sk_buff *) sk->prot->wmalloc(sk,MAX_ACK_SIZE,1, GFP_ATOMIC); |
buff | 998 | net/inet/tcp.c | if (buff == NULL) { |
buff | 1004 | net/inet/tcp.c | buff->mem_addr = buff; |
buff | 1005 | net/inet/tcp.c | buff->mem_len = MAX_ACK_SIZE; |
buff | 1006 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
buff | 1007 | net/inet/tcp.c | buff->sk = sk; |
buff | 1010 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
buff | 1013 | net/inet/tcp.c | buff->free=1; |
buff | 1014 | net/inet/tcp.c | sk->prot->wfree(sk, buff->mem_addr, buff->mem_len); |
buff | 1018 | net/inet/tcp.c | buff->len += tmp; |
buff | 1019 | net/inet/tcp.c | t1 =(struct tcphdr *)((char *)(buff+1) +tmp); |
buff | 1037 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
buff | 1449 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 1473 | net/inet/tcp.c | buff = (struct sk_buff *) prot->wmalloc(sk, MAX_RESET_SIZE,1 , GFP_KERNEL); |
buff | 1474 | net/inet/tcp.c | if (buff == NULL) return; |
buff | 1477 | net/inet/tcp.c | DPRINTF((DBG_TCP, "tcp_shutdown_send buff = %X\n", buff)); |
buff | 1478 | net/inet/tcp.c | buff->mem_addr = buff; |
buff | 1479 | net/inet/tcp.c | buff->mem_len = MAX_RESET_SIZE; |
buff | 1480 | net/inet/tcp.c | buff->sk = sk; |
buff | 1481 | net/inet/tcp.c | buff->len = sizeof(*t1); |
buff | 1482 | net/inet/tcp.c | t1 =(struct tcphdr *)(buff + 1); |
buff | 1485 | net/inet/tcp.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
buff | 1489 | net/inet/tcp.c | buff->free=1; |
buff | 1490 | net/inet/tcp.c | prot->wfree(sk,buff->mem_addr, buff->mem_len); |
buff | 1497 | net/inet/tcp.c | buff ->len += tmp; |
buff | 1498 | net/inet/tcp.c | buff->dev = dev; |
buff | 1502 | net/inet/tcp.c | buff->h.seq = sk->send_seq; |
buff | 1516 | net/inet/tcp.c | buff->free=0; |
buff | 1517 | net/inet/tcp.c | buff->next = NULL; |
buff | 1518 | net/inet/tcp.c | sk->wback->next = buff; |
buff | 1519 | net/inet/tcp.c | sk->wback = buff; |
buff | 1520 | net/inet/tcp.c | buff->magic = TCP_WRITE_QUEUE_MAGIC; |
buff | 1522 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 0); |
buff | 1574 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 1582 | net/inet/tcp.c | buff = (struct sk_buff *) prot->wmalloc(NULL, MAX_RESET_SIZE, 1, GFP_ATOMIC); |
buff | 1583 | net/inet/tcp.c | if (buff == NULL) |
buff | 1586 | net/inet/tcp.c | DPRINTF((DBG_TCP, "tcp_reset buff = %X\n", buff)); |
buff | 1587 | net/inet/tcp.c | buff->mem_addr = buff; |
buff | 1588 | net/inet/tcp.c | buff->mem_len = MAX_RESET_SIZE; |
buff | 1589 | net/inet/tcp.c | buff->len = sizeof(*t1); |
buff | 1590 | net/inet/tcp.c | buff->sk = NULL; |
buff | 1591 | net/inet/tcp.c | buff->dev = dev; |
buff | 1593 | net/inet/tcp.c | t1 =(struct tcphdr *)(buff + 1); |
buff | 1596 | net/inet/tcp.c | tmp = prot->build_header(buff, saddr, daddr, &dev, IPPROTO_TCP, opt, |
buff | 1599 | net/inet/tcp.c | buff->free = 1; |
buff | 1600 | net/inet/tcp.c | prot->wfree(NULL, buff->mem_addr, buff->mem_len); |
buff | 1604 | net/inet/tcp.c | buff->len += tmp; |
buff | 1635 | net/inet/tcp.c | prot->queue_xmit(NULL, dev, buff, 1); |
buff | 1702 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 1820 | net/inet/tcp.c | buff = (struct sk_buff *) newsk->prot->wmalloc(newsk, MAX_SYN_SIZE, 1, GFP_ATOMIC); |
buff | 1821 | net/inet/tcp.c | if (buff == NULL) { |
buff | 1829 | net/inet/tcp.c | buff->mem_addr = buff; |
buff | 1830 | net/inet/tcp.c | buff->mem_len = MAX_SYN_SIZE; |
buff | 1831 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr)+4; |
buff | 1832 | net/inet/tcp.c | buff->sk = newsk; |
buff | 1834 | net/inet/tcp.c | t1 =(struct tcphdr *)(buff + 1); |
buff | 1837 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, newsk->saddr, newsk->daddr, &dev, |
buff | 1843 | net/inet/tcp.c | buff->free=1; |
buff | 1844 | net/inet/tcp.c | kfree_skb(buff,FREE_WRITE); |
buff | 1852 | net/inet/tcp.c | buff->len += tmp; |
buff | 1856 | net/inet/tcp.c | buff->h.seq = newsk->send_seq; |
buff | 1881 | net/inet/tcp.c | newsk->prot->queue_xmit(newsk, dev, buff, 0); |
buff | 1899 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 1981 | net/inet/tcp.c | buff = (struct sk_buff *) prot->wmalloc(sk, MAX_FIN_SIZE, 1, GFP_ATOMIC); |
buff | 1982 | net/inet/tcp.c | if (buff == NULL) { |
buff | 1992 | net/inet/tcp.c | buff->mem_addr = buff; |
buff | 1993 | net/inet/tcp.c | buff->mem_len = MAX_FIN_SIZE; |
buff | 1994 | net/inet/tcp.c | buff->sk = sk; |
buff | 1995 | net/inet/tcp.c | buff->free = 1; |
buff | 1996 | net/inet/tcp.c | buff->len = sizeof(*t1); |
buff | 1997 | net/inet/tcp.c | t1 =(struct tcphdr *)(buff + 1); |
buff | 2000 | net/inet/tcp.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
buff | 2004 | net/inet/tcp.c | kfree_skb(buff,FREE_WRITE); |
buff | 2011 | net/inet/tcp.c | buff ->len += tmp; |
buff | 2012 | net/inet/tcp.c | buff->dev = dev; |
buff | 2016 | net/inet/tcp.c | buff->h.seq = sk->send_seq; |
buff | 2029 | net/inet/tcp.c | prot->queue_xmit(sk, dev, buff, 0); |
buff | 2033 | net/inet/tcp.c | buff->next = NULL; |
buff | 2035 | net/inet/tcp.c | sk->wfront=buff; |
buff | 2037 | net/inet/tcp.c | sk->wback->next = buff; |
buff | 2039 | net/inet/tcp.c | sk->wback = buff; |
buff | 2040 | net/inet/tcp.c | buff->magic = TCP_WRITE_QUEUE_MAGIC; |
buff | 2766 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 2801 | net/inet/tcp.c | buff = (struct sk_buff *) sk->prot->wmalloc(sk,MAX_SYN_SIZE,0, GFP_KERNEL); |
buff | 2802 | net/inet/tcp.c | if (buff == NULL) { |
buff | 2806 | net/inet/tcp.c | buff->mem_addr = buff; |
buff | 2807 | net/inet/tcp.c | buff->mem_len = MAX_SYN_SIZE; |
buff | 2808 | net/inet/tcp.c | buff->len = 24; |
buff | 2809 | net/inet/tcp.c | buff->sk = sk; |
buff | 2810 | net/inet/tcp.c | buff->free = 1; |
buff | 2811 | net/inet/tcp.c | t1 = (struct tcphdr *)(buff + 1); |
buff | 2815 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
buff | 2818 | net/inet/tcp.c | sk->prot->wfree(sk, buff->mem_addr, buff->mem_len); |
buff | 2822 | net/inet/tcp.c | buff->len += tmp; |
buff | 2827 | net/inet/tcp.c | buff->h.seq = sk->send_seq; |
buff | 2855 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 0); |
buff | 3334 | net/inet/tcp.c | struct sk_buff *buff; |
buff | 3344 | net/inet/tcp.c | buff = (struct sk_buff *) sk->prot->wmalloc(sk,MAX_ACK_SIZE,1, GFP_ATOMIC); |
buff | 3345 | net/inet/tcp.c | if (buff == NULL) return; |
buff | 3347 | net/inet/tcp.c | buff->mem_addr = buff; |
buff | 3348 | net/inet/tcp.c | buff->mem_len = MAX_ACK_SIZE; |
buff | 3349 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
buff | 3350 | net/inet/tcp.c | buff->free = 1; |
buff | 3351 | net/inet/tcp.c | buff->sk = sk; |
buff | 3353 | net/inet/tcp.c | t1 = (struct tcphdr *)(buff + 1); |
buff | 3356 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
buff | 3359 | net/inet/tcp.c | sk->prot->wfree(sk, buff->mem_addr, buff->mem_len); |
buff | 3363 | net/inet/tcp.c | buff->len += tmp; |
buff | 3389 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
buff | 221 | net/inet/udp.c | unsigned char *buff; |
buff | 246 | net/inet/udp.c | buff = (unsigned char *) (skb+1); |
buff | 259 | net/inet/udp.c | buff += tmp; |
buff | 282 | net/inet/udp.c | uh = (struct udphdr *) buff; |
buff | 286 | net/inet/udp.c | buff = (unsigned char *) (uh + 1); |
buff | 289 | net/inet/udp.c | memcpy_fromfs(buff, from, len); |
buff | 351 | net/inet/udp.c | udp_write(struct sock *sk, unsigned char *buff, int len, int noblock, |
buff | 354 | net/inet/udp.c | return(udp_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
buff | 500 | net/inet/udp.c | udp_read(struct sock *sk, unsigned char *buff, int len, int noblock, |
buff | 503 | 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 | 47 | net/inet/utils.c | static char buff[18]; |
buff | 51 | net/inet/utils.c | sprintf(buff, "%d.%d.%d.%d", |
buff | 53 | net/inet/utils.c | return(buff); |
buff | 87 | net/inet/utils.c | char *buff; |
buff | 92 | net/inet/utils.c | buff = (char *) kmalloc(256, GFP_ATOMIC); |
buff | 93 | net/inet/utils.c | if (buff != NULL) { |
buff | 95 | net/inet/utils.c | vsprintf(buff, fmt, args); |
buff | 97 | net/inet/utils.c | printk(buff); |
buff | 98 | net/inet/utils.c | kfree(buff); |
buff | 85 | net/socket.c | char buff[1024]; |
buff | 91 | net/socket.c | vsprintf(buff, fmt, args); |
buff | 93 | net/socket.c | printk(buff); |
buff | 701 | net/socket.c | sock_send(int fd, void * buff, int len, unsigned flags) |
buff | 708 | net/socket.c | fd, buff, len, flags)); |
buff | 714 | net/socket.c | return(sock->ops->send(sock, buff, len, (file->f_flags & O_NONBLOCK), flags)); |
buff | 719 | net/socket.c | sock_sendto(int fd, void * buff, int len, unsigned flags, |
buff | 727 | net/socket.c | " addr=%X, alen = %d\n", fd, buff, len, flags, addr, addr_len)); |
buff | 733 | net/socket.c | return(sock->ops->sendto(sock, buff, len, (file->f_flags & O_NONBLOCK), |
buff | 739 | net/socket.c | sock_recv(int fd, void * buff, int len, unsigned flags) |
buff | 746 | net/socket.c | fd, buff, len, flags)); |
buff | 752 | net/socket.c | return(sock->ops->recv(sock, buff, len,(file->f_flags & O_NONBLOCK), flags)); |
buff | 757 | net/socket.c | sock_recvfrom(int fd, void * buff, int len, unsigned flags, |
buff | 765 | net/socket.c | " addr=%X, alen=%X\n", fd, buff, len, flags, addr, addr_len)); |
buff | 771 | net/socket.c | return(sock->ops->recvfrom(sock, buff, len, (file->f_flags & O_NONBLOCK), |
buff | 77 | net/unix/sock.c | static int unix_proto_send(struct socket *sock, void *buff, int len, |
buff | 79 | net/unix/sock.c | static int unix_proto_recv(struct socket *sock, void *buff, int len, |
buff | 81 | net/unix/sock.c | static int unix_proto_sendto(struct socket *sock, void *buff, int len, |
buff | 84 | net/unix/sock.c | static int unix_proto_recvfrom(struct socket *sock, void *buff, int len, |
buff | 100 | net/unix/sock.c | char *buff; |
buff | 105 | net/unix/sock.c | buff = (char *) kmalloc(256, GFP_KERNEL); |
buff | 106 | net/unix/sock.c | if (buff != NULL) { |
buff | 108 | net/unix/sock.c | vsprintf(buff, fmt, args); |
buff | 110 | net/unix/sock.c | printk(buff); |
buff | 111 | net/unix/sock.c | kfree(buff); |
buff | 168 | net/unix/sock.c | unix_proto_sendto(struct socket *sock, void *buff, int len, int nonblock, |
buff | 175 | net/unix/sock.c | unix_proto_recvfrom(struct socket *sock, void *buff, int len, int nonblock, |
buff | 191 | net/unix/sock.c | unix_proto_send(struct socket *sock, void *buff, int len, int nonblock, |
buff | 195 | net/unix/sock.c | return(unix_proto_write(sock, (char *) buff, len, nonblock)); |
buff | 201 | net/unix/sock.c | unix_proto_recv(struct socket *sock, void *buff, int len, int nonblock, |
buff | 205 | net/unix/sock.c | return(unix_proto_read(sock, (char *) buff, len, nonblock)); |