tag | line | file | source code |
len | 32 | drivers/block/ramdisk.c | int len; |
len | 38 | drivers/block/ramdisk.c | len = CURRENT->current_nr_sectors << 9; |
len | 41 | drivers/block/ramdisk.c | (addr+len > rd_start+rd_length)) { |
len | 48 | drivers/block/ramdisk.c | len); |
len | 52 | drivers/block/ramdisk.c | len); |
len | 272 | drivers/net/3c501.c | if (skb->len <= 0) |
len | 282 | drivers/net/3c501.c | int gp_start = 0x800 - (ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN); |
len | 294 | drivers/net/3c501.c | outsb(DATAPORT,buf,skb->len); |
len | 430 | drivers/net/3c501.c | skb->len = pkt_len; |
len | 545 | drivers/net/3c505.c | int len) |
len | 560 | drivers/net/3c505.c | int sksize = sizeof(struct sk_buff) + len + 4; |
len | 566 | drivers/net/3c505.c | if (len <= 0 || ((len & ~1) != len)) |
len | 568 | drivers/net/3c505.c | printk("*** bad packet len %d at %s(%d)\n",len,filename,__LINE__); |
len | 570 | drivers/net/3c505.c | rlen = (len+1) & ~1; |
len | 601 | drivers/net/3c505.c | skb->len = rlen; |
len | 672 | drivers/net/3c505.c | int len; |
len | 785 | drivers/net/3c505.c | len = adapter->irx_pcb.data.rcv_resp.pkt_len; |
len | 791 | drivers/net/3c505.c | printk("%s: interrupt - packet received of length %i (%i)\n", dev->name, len, dlen); |
len | 971 | drivers/net/3c505.c | static int send_packet (elp_device * adapter, unsigned char * ptr, int len) |
len | 979 | drivers/net/3c505.c | unsigned int nlen = (((len < 60) ? 60 : len) + 1) & (~1); |
len | 984 | drivers/net/3c505.c | if (nlen < len) |
len | 985 | drivers/net/3c505.c | printk("Warning, bad length nlen=%d len=%d %s(%d)\n",nlen,len,filename,__LINE__); |
len | 1064 | drivers/net/3c505.c | if (skb->len <= 0) |
len | 1068 | drivers/net/3c505.c | printk("%s: request to send packet of length %d\n", dev->name, (int)skb->len); |
len | 1088 | drivers/net/3c505.c | if (!send_packet(adapter, (unsigned char *)SKB_DATA, skb->len)) { |
len | 1094 | drivers/net/3c505.c | printk("%s: packet of length %d sent\n", dev->name, (int)skb->len); |
len | 471 | drivers/net/3c507.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 825 | drivers/net/3c507.c | skb->len = pkt_len; |
len | 366 | drivers/net/3c509.c | if (skb->len <= 0) |
len | 371 | drivers/net/3c509.c | dev->name, skb->len, inw(ioaddr + EL3_STATUS)); |
len | 394 | drivers/net/3c509.c | outw(skb->len, ioaddr + TX_FIFO); |
len | 397 | drivers/net/3c509.c | outsl(ioaddr + TX_FIFO, skb->data, (skb->len + 3) >> 2); |
len | 564 | drivers/net/3c509.c | skb->len = pkt_len; |
len | 168 | drivers/net/8390.c | length = skb->len; |
len | 169 | drivers/net/8390.c | if (skb->len <= 0) |
len | 448 | drivers/net/8390.c | skb->len = pkt_len; |
len | 335 | drivers/net/apricot.c | skb->len = pkt_len; |
len | 584 | drivers/net/apricot.c | if (skb->len <= 0) return 0; |
len | 594 | drivers/net/apricot.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 384 | drivers/net/at1700.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 510 | drivers/net/at1700.c | skb->len = pkt_len; |
len | 445 | drivers/net/atp.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 637 | drivers/net/atp.c | skb->len = pkt_len; |
len | 408 | drivers/net/de600.c | int len; |
len | 442 | drivers/net/de600.c | PRINTK(("de600_start_xmit:len=%d, page %d/%d\n", skb->len, tx_fifo_in, free_tx_pages)); |
len | 444 | drivers/net/de600.c | if ((len = skb->len) < RUNT) |
len | 445 | drivers/net/de600.c | len = RUNT; |
len | 449 | drivers/net/de600.c | tx_fifo[tx_fifo_in] = transmit_from = tx_page_adr(tx_fifo_in) - len; |
len | 465 | drivers/net/de600.c | for ( ; len > 0; --len, ++buffer) |
len | 482 | drivers/net/de620.c | int len; |
len | 518 | drivers/net/de620.c | if ((len = skb->len) < RUNT) |
len | 519 | drivers/net/de620.c | len = RUNT; |
len | 520 | drivers/net/de620.c | if (len & 1) /* send an even number of bytes */ |
len | 521 | drivers/net/de620.c | ++len; |
len | 528 | drivers/net/de620.c | (int)skb->len, using_txbuf)); |
len | 549 | drivers/net/de620.c | de620_write_block(buffer, len); |
len | 683 | drivers/net/de620.c | skb->len = size; skb->dev = dev; skb->free = 1; |
len | 814 | drivers/net/depca.c | if (skb->len <= 0) { |
len | 837 | drivers/net/depca.c | int len; |
len | 838 | drivers/net/depca.c | long skbL = skb->len; |
len | 852 | drivers/net/depca.c | len = ((skbL > PKT_SZ) ? PKT_SZ : skbL); /* skb too long */ |
len | 853 | drivers/net/depca.c | if (len < ETH_ZLEN) len = ETH_ZLEN; /* len too short */ |
len | 854 | drivers/net/depca.c | skbL -= len; |
len | 855 | drivers/net/depca.c | lp->tx_ring[entry].length = -len; |
len | 861 | drivers/net/depca.c | memcpy((unsigned char *)(buf), skb->data, len); |
len | 873 | drivers/net/depca.c | for (p += len; skbL > 0; p += len) { |
len | 889 | drivers/net/depca.c | len = ((skbL > DAT_SZ) ? DAT_SZ : skbL); /* skbL too long */ |
len | 890 | drivers/net/depca.c | if (len < ETH_ZLEN) len = ETH_ZLEN; /* len too short */ |
len | 891 | drivers/net/depca.c | skbL -= len; |
len | 892 | drivers/net/depca.c | lp->tx_ring[entry].length = -len; |
len | 898 | drivers/net/depca.c | memcpy((unsigned char *)(buf + PKT_HDR_LEN), (unsigned char *)p, len); |
len | 1041 | drivers/net/depca.c | skb->len = pkt_len; |
len | 486 | drivers/net/eexpress.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 932 | drivers/net/eexpress.c | skb->len = pkt_len; |
len | 620 | drivers/net/lance.c | if (skb->len <= 0) |
len | 655 | drivers/net/lance.c | -(ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN); |
len | 657 | drivers/net/lance.c | lp->tx_ring[entry].length = -skb->len; |
len | 663 | drivers/net/lance.c | if ((int)(skb->data) + skb->len > 0x01000000) { |
len | 667 | drivers/net/lance.c | memcpy(&lp->tx_bounce_buffs[entry], skb->data, skb->len); |
len | 841 | drivers/net/lance.c | skb->len = pkt_len; |
len | 63 | drivers/net/loopback.c | done = dev_rint(skb->data, skb->len, 0, dev); |
len | 871 | drivers/net/ni52.c | skb->len = totlen; |
len | 1001 | drivers/net/ni52.c | int len; |
len | 1030 | drivers/net/ni52.c | if (skb->len <= 0) |
len | 1037 | drivers/net/ni52.c | memcpy((char *)p->xmit_cbuffs[p->xmit_count],(char *)(skb->data),skb->len); |
len | 1038 | drivers/net/ni52.c | len = (ETH_ZLEN < skb->len) ? skb->len : ETH_ZLEN; |
len | 1042 | drivers/net/ni52.c | p->xmit_buffs[0]->size = TBD_LAST | len; |
len | 1050 | drivers/net/ni52.c | for(len=0;len<256;len++); |
len | 1055 | drivers/net/ni52.c | p->xmit_buffs[0]->size = TBD_LAST | len; |
len | 1068 | drivers/net/ni52.c | p->xmit_buffs[p->xmit_count]->size = TBD_LAST | len; |
len | 501 | drivers/net/ni65.c | int rmdstat,len; |
len | 530 | drivers/net/ni65.c | len = (rmdp->mlen & 0x0fff) - 4; /* -4: ignore FCS */ |
len | 535 | drivers/net/ni65.c | memcpy(skb->data,p->recv_skb[p->rmdnum]->data,len); |
len | 545 | drivers/net/ni65.c | skb1->len = len; |
len | 589 | drivers/net/ni65.c | if (skb->len <= 0) |
len | 604 | drivers/net/ni65.c | short len = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 612 | drivers/net/ni65.c | memcpy((char *) (tmdp->u.buffer & 0x00ffffff),(char *)skb->data,skb->len); |
len | 615 | drivers/net/ni65.c | tmdp->blen = -len; |
len | 125 | drivers/net/plip.c | void *source, unsigned len, struct sk_buff *skb); |
len | 318 | drivers/net/plip.c | if (skb->len > dev->mtu) { |
len | 319 | drivers/net/plip.c | printk("%s: packet too big, %d.\n", dev->name, (int)skb->len); |
len | 324 | drivers/net/plip.c | snd->length = skb->len; |
len | 360 | drivers/net/plip.c | rcv->skb->len = dev->mtu; |
len | 407 | drivers/net/plip.c | void *saddr, unsigned len, struct sk_buff *skb) |
len | 417 | drivers/net/plip.c | return eth_header(buff, dev, type, daddr, saddr, len, skb); |
len | 483 | drivers/net/plip.c | rcv->skb->len = dev->mtu; |
len | 592 | drivers/net/plip.c | if (rcv->length > rcv->skb->len || rcv->length < 8) { |
len | 597 | drivers/net/plip.c | rcv->skb->len = rcv->length; |
len | 636 | drivers/net/plip.c | rcv->skb->len = dev->mtu; |
len | 118 | drivers/net/ppp.c | unsigned long saddr, unsigned len); |
len | 1152 | drivers/net/ppp.c | unsigned char *buf, int len) |
len | 1157 | drivers/net/ppp.c | totlen = len+2; /* including protocol */ |
len | 1170 | drivers/net/ppp.c | while (len-- > 0) { |
len | 1218 | drivers/net/ppp.c | int len, i; |
len | 1248 | drivers/net/ppp.c | GETC (c); len = c << 8; GETC (c); len += c; |
len | 1250 | drivers/net/ppp.c | PRINTKN (4,(KERN_DEBUG "ppp_read: len = %d\n", len)); |
len | 1252 | drivers/net/ppp.c | if (len + 2 > nr) { |
len | 1256 | drivers/net/ppp.c | nr, len+2)); |
len | 1257 | drivers/net/ppp.c | ppp->us_rbuff_head += len; |
len | 1268 | drivers/net/ppp.c | i = len; |
len | 1276 | drivers/net/ppp.c | PRINTKN (3,(KERN_DEBUG "ppp_read: passing %d bytes up\n", len + 2)); |
len | 1278 | drivers/net/ppp.c | return len + 2; |
len | 1683 | drivers/net/ppp.c | int len; |
len | 1695 | drivers/net/ppp.c | len = skb->len; |
len | 1716 | drivers/net/ppp.c | if (len < sizeof(struct iphdr)) { |
len | 1720 | drivers/net/ppp.c | len = ntohs( ((struct iphdr *)(skb->data)) -> tot_len ); |
len | 1725 | drivers/net/ppp.c | if (ppp_us_queue (ppp, proto, p, len)) |
len | 1743 | drivers/net/ppp.c | len = slhc_compress(ppp->slcomp, p, len, ppp->cbuff, &p, 0); |
len | 1763 | drivers/net/ppp.c | dev->name, (int) proto, (int) len, (int) iph->saddr, |
len | 1787 | drivers/net/ppp.c | while (len-- > 0) |
len | 1821 | drivers/net/ppp.c | unsigned long daddr, unsigned long saddr, unsigned len) |
len | 1841 | drivers/net/ppp.c | void *daddr, void *saddr, unsigned len, struct sk_buff *skb) |
len | 1251 | drivers/net/sk_g16.c | short len = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 1260 | drivers/net/sk_g16.c | skb->len); |
len | 1262 | drivers/net/sk_g16.c | tmdp->blen = -len; /* set length to transmit */ |
len | 1572 | drivers/net/sk_g16.c | int len = (rmdp->mlen & 0x0fff); /* extract message length from receive buffer */ |
len | 1575 | drivers/net/sk_g16.c | skb = alloc_skb(len, GFP_ATOMIC); /* allocate socket buffer */ |
len | 1595 | drivers/net/sk_g16.c | skb->len = len; |
len | 1606 | drivers/net/sk_g16.c | len); |
len | 289 | drivers/net/skeleton.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 374 | drivers/net/skeleton.c | skb->len = pkt_len; |
len | 486 | drivers/net/slhc.c | int len, hdrlen; |
len | 591 | drivers/net/slhc.c | len = isize - (cp - icp); |
len | 592 | drivers/net/slhc.c | if (len < 0) |
len | 594 | drivers/net/slhc.c | len += hdrlen; |
len | 595 | drivers/net/slhc.c | ip->tot_len = htons(len); |
len | 598 | drivers/net/slhc.c | memmove(icp + hdrlen, cp, len - hdrlen); |
len | 619 | drivers/net/slhc.c | return len; |
len | 354 | drivers/net/slip.c | sl_encaps(struct slip *sl, unsigned char *icp, int len) |
len | 363 | drivers/net/slip.c | if(len>sl->mtu) /* Sigh, shouldn't occur BUT ... */ |
len | 365 | drivers/net/slip.c | len=sl->mtu; |
len | 372 | drivers/net/slip.c | len = slhc_compress(sl->slcomp, p, len, sl->cbuff, &p, 1); |
len | 375 | drivers/net/slip.c | count=slip_esc6(p, (unsigned char *)sl->xbuff,len); |
len | 377 | drivers/net/slip.c | count=slip_esc(p, (unsigned char *)sl->xbuff,len); |
len | 474 | drivers/net/slip.c | size=skb->len; |
len | 498 | drivers/net/slip.c | void *daddr, void *saddr, unsigned len, struct sk_buff *skb) |
len | 504 | drivers/net/slip.c | return ax25_encapsulate(buff,dev,type,daddr,saddr,len,skb); |
len | 769 | drivers/net/slip.c | slip_esc(unsigned char *s, unsigned char *d, int len) |
len | 786 | drivers/net/slip.c | while(len-- > 0) { |
len | 847 | drivers/net/slip.c | slip_esc6(unsigned char *s, unsigned char *d, int len) |
len | 866 | drivers/net/slip.c | for (i = 0; i < len; ++i) { |
len | 87 | drivers/net/slip.h | extern int slip_esc(unsigned char *s, unsigned char *d, int len); |
len | 88 | drivers/net/slip.h | extern int slip_esc6(unsigned char *s, unsigned char *d, int len); |
len | 361 | drivers/net/znet.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 387 | drivers/net/znet.c | memcpy(zn.tx_cur, buf, skb->len); |
len | 563 | drivers/net/znet.c | skb->len = pkt_len; |
len | 1962 | drivers/scsi/53c7,8xx.c | size_t len; |
len | 1979 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
len | 1982 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "%08x\n", * (long *) bp->addr); |
len | 1984 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "\n"); |
len | 1986 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
len | 1987 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, len); |
len | 1999 | drivers/scsi/53c7,8xx.c | size_t len; |
len | 2059 | drivers/scsi/53c7,8xx.c | int i, j, error, len; |
len | 2080 | drivers/scsi/53c7,8xx.c | len = strlen (debugger_tokens[i].name); |
len | 2081 | drivers/scsi/53c7,8xx.c | if (!strncmp(input_buf, debugger_tokens[i].name, len)) |
len | 2088 | drivers/scsi/53c7,8xx.c | for (ptr = input_buf + len, j = 0; j < debugger_tokens[i].nargs && *ptr;) { |
len | 3613 | drivers/scsi/53c7,8xx.c | size_t len = strlen(buf); |
len | 3614 | drivers/scsi/53c7,8xx.c | debugger_kernel_write(host, buf, len); |
len | 3758 | drivers/scsi/53c7,8xx.c | int i, len; |
len | 3769 | drivers/scsi/53c7,8xx.c | ptr += len, i -= len) { |
len | 3771 | drivers/scsi/53c7,8xx.c | len = print_msg (ptr); |
len | 1171 | drivers/scsi/NCR5380.c | int len; |
len | 1411 | drivers/scsi/NCR5380.c | len = 3; |
len | 1415 | drivers/scsi/NCR5380.c | len = 1; |
len | 1422 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 1915 | drivers/scsi/NCR5380.c | int len, transfersize; |
len | 1999 | drivers/scsi/NCR5380.c | len = transfersize; |
len | 2001 | drivers/scsi/NCR5380.c | &len, (unsigned char **) &cmd->SCp.ptr)) { |
len | 2015 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual -= transfersize - len; |
len | 2023 | drivers/scsi/NCR5380.c | len = 1; |
len | 2025 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2227 | drivers/scsi/NCR5380.c | len = 2; |
len | 2230 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2238 | drivers/scsi/NCR5380.c | if (!len && extended_msg[1] <= |
len | 2242 | drivers/scsi/NCR5380.c | len = extended_msg[1] - 1; |
len | 2246 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2250 | drivers/scsi/NCR5380.c | instance->host_no, len); |
len | 2260 | drivers/scsi/NCR5380.c | } else if (len) { |
len | 2294 | drivers/scsi/NCR5380.c | len = 1; |
len | 2297 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2309 | drivers/scsi/NCR5380.c | len = COMMAND_SIZE(cmd->cmnd[0]); |
len | 2316 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, |
len | 2331 | drivers/scsi/NCR5380.c | len = 1; |
len | 2333 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2378 | drivers/scsi/NCR5380.c | int len; |
len | 2422 | drivers/scsi/NCR5380.c | len = 1; |
len | 2425 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2487 | drivers/scsi/NCR5380.c | len = 1; |
len | 2491 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2576 | drivers/scsi/NCR5380.c | int len; |
len | 2707 | drivers/scsi/NCR5380.c | len = 1; |
len | 2710 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio (instance, &phase, &len, &msgptr); |
len | 119 | drivers/scsi/aha1542.c | static int aha1542_out(unsigned int base, unchar *cmdp, int len) |
len | 121 | drivers/scsi/aha1542.c | if(len == 1) { |
len | 132 | drivers/scsi/aha1542.c | while (len--) |
len | 142 | drivers/scsi/aha1542.c | printk("aha1542_out failed(%d): ", len+1); aha1542_stat(); |
len | 148 | drivers/scsi/aha1542.c | static int aha1542_in(unsigned int base, unchar *cmdp, int len) |
len | 151 | drivers/scsi/aha1542.c | while (len--) |
len | 160 | drivers/scsi/aha1542.c | printk("aha1542_in failed(%d): ", len+1); aha1542_stat(); |
len | 167 | drivers/scsi/aha1542.c | static int aha1542_in1(unsigned int base, unchar *cmdp, int len) |
len | 170 | drivers/scsi/aha1542.c | while (len--) |
len | 244 | drivers/scsi/aha1542.c | int len; |
len | 276 | drivers/scsi/aha1542.c | len = 4; |
len | 279 | drivers/scsi/aha1542.c | while (len--) |
len | 204 | drivers/scsi/buslogic.c | size_t len) |
len | 206 | drivers/scsi/buslogic.c | if (len == 1) { |
len | 219 | drivers/scsi/buslogic.c | while (len--) { |
len | 228 | drivers/scsi/buslogic.c | buslogic_printk("buslogic_out failed(%u): ", len + 1); |
len | 235 | drivers/scsi/buslogic.c | static int buslogic_in(unsigned int base, unsigned char *cmdp, size_t len) |
len | 238 | drivers/scsi/buslogic.c | while (len--) { |
len | 246 | drivers/scsi/buslogic.c | buslogic_printk("buslogic_in failed(%u): ", len + 1); |
len | 255 | drivers/scsi/buslogic.c | static int buslogic_in_fast(unsigned int base, unsigned char *cmdp, size_t len) |
len | 258 | drivers/scsi/buslogic.c | while (len--) { |
len | 349 | drivers/scsi/buslogic.c | int len; |
len | 387 | drivers/scsi/buslogic.c | len = 4; |
len | 389 | drivers/scsi/buslogic.c | while (len--) { |
len | 478 | drivers/scsi/constants.c | int len = 0, i; |
len | 480 | drivers/scsi/constants.c | len = 3 + msg[1]; |
len | 499 | drivers/scsi/constants.c | for (i = 2; i < len; ++i) |
len | 503 | drivers/scsi/constants.c | for (i = 0; i < len; ++i) |
len | 516 | drivers/scsi/constants.c | len = 1; |
len | 527 | drivers/scsi/constants.c | len = 1; |
len | 540 | drivers/scsi/constants.c | len = 2; |
len | 547 | drivers/scsi/constants.c | return len; |
len | 477 | drivers/scsi/pas16.c | int len) { |
len | 481 | drivers/scsi/pas16.c | register i = len; |
len | 510 | drivers/scsi/pas16.c | int len) { |
len | 513 | drivers/scsi/pas16.c | register i = len; |
len | 1641 | drivers/scsi/scsi.c | void *scsi_malloc(unsigned int len) |
len | 1645 | drivers/scsi/scsi.c | if((len & 0x1ff) || len > 8192) |
len | 1649 | drivers/scsi/scsi.c | nbits = len >> 9; |
len | 1659 | drivers/scsi/scsi.c | printk("SMalloc: %d %x ",len, dma_malloc_buffer + (i << 13) + (j << 9)); |
len | 1668 | drivers/scsi/scsi.c | int scsi_free(void *obj, unsigned int len) |
len | 1674 | drivers/scsi/scsi.c | printk("Sfree %x %d\n",obj, len); |
len | 1685 | drivers/scsi/scsi.c | nbits = len >> 9; |
len | 31 | drivers/scsi/scsi_ioctl.c | unsigned int len,slen; |
len | 35 | drivers/scsi/scsi_ioctl.c | len = get_fs_long ((unsigned long *) buffer); |
len | 38 | drivers/scsi/scsi_ioctl.c | if (len > slen) |
len | 39 | drivers/scsi/scsi_ioctl.c | len = slen + 1; |
len | 40 | drivers/scsi/scsi_ioctl.c | verify_area(VERIFY_WRITE, buffer, len); |
len | 41 | drivers/scsi/scsi_ioctl.c | memcpy_tofs (buffer, string, len); |
len | 575 | drivers/scsi/seagate.c | int len = 0; |
len | 704 | drivers/scsi/seagate.c | len=current_bufflen; /* WDE add */ |
len | 902 | drivers/scsi/seagate.c | len = buffer->length; |
len | 909 | drivers/scsi/seagate.c | len = SCint->request_bufflen; |
len | 914 | drivers/scsi/seagate.c | printk("scsi%d : len = %d\n", hostno, len); |
len | 1027 | drivers/scsi/seagate.c | if (!len) { |
len | 1037 | drivers/scsi/seagate.c | if (fast && transfersize && !(len % transfersize) && (len >= transfersize) |
len | 1045 | drivers/scsi/seagate.c | SCint->transfersize, len, data); |
len | 1067 | drivers/scsi/seagate.c | len -= transfersize; |
len | 1072 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1128 | drivers/scsi/seagate.c | "=S" (data), "=c" (len) : |
len | 1130 | drivers/scsi/seagate.c | "0" (data), "1" (len) : |
len | 1135 | drivers/scsi/seagate.c | if (!len && nobuffs) { |
len | 1138 | drivers/scsi/seagate.c | len = buffer->length; |
len | 1142 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1151 | drivers/scsi/seagate.c | transfered += len; |
len | 1153 | drivers/scsi/seagate.c | for (; len && (STATUS & (REQ_MASK | STAT_REQ)) == (REQ_DATAIN | |
len | 1154 | drivers/scsi/seagate.c | STAT_REQ); --len) { |
len | 1159 | drivers/scsi/seagate.c | transfered -= len; |
len | 1164 | drivers/scsi/seagate.c | if (fast && transfersize && !(len % transfersize) && (len >= transfersize) |
len | 1172 | drivers/scsi/seagate.c | SCint->transfersize, len, data); |
len | 1194 | drivers/scsi/seagate.c | len -= transfersize; |
len | 1204 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1212 | drivers/scsi/seagate.c | printk("scsi%d: transfered += %d\n", hostno, len); |
len | 1213 | drivers/scsi/seagate.c | transfered += len; /* Assume we'll transfer it all, then |
len | 1268 | drivers/scsi/seagate.c | "=D" (data), "=c" (len) : |
len | 1270 | drivers/scsi/seagate.c | "0" (data), "1" (len) : |
len | 1275 | drivers/scsi/seagate.c | printk("scsi%d: transfered -= %d\n", hostno, len); |
len | 1276 | drivers/scsi/seagate.c | transfered -= len; /* Since we assumed all of Len got |
len | 1281 | drivers/scsi/seagate.c | if (!len && nobuffs) { |
len | 1284 | drivers/scsi/seagate.c | len = buffer->length; |
len | 1288 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1355 | drivers/scsi/seagate.c | current_bufflen = len; /* WDE add */ |
len | 1387 | drivers/scsi/seagate.c | current_bufflen = len; /* WDE add */ |
len | 1398 | drivers/scsi/seagate.c | len=current_bufflen; |
len | 315 | drivers/scsi/t128.c | int len) { |
len | 318 | drivers/scsi/t128.c | register i = len; |
len | 359 | drivers/scsi/t128.c | int len) { |
len | 362 | drivers/scsi/t128.c | register i = len; |
len | 205 | drivers/scsi/wd7000.c | unsigned len; /* length of string */ |
len | 321 | drivers/scsi/wd7000.c | unchar len[3]; |
len | 377 | drivers/scsi/wd7000.c | unchar len[3]; /* command buffer length */ |
len | 419 | drivers/scsi/wd7000.c | unchar len[3]; /* buffer length */ |
len | 435 | drivers/scsi/wd7000.c | unchar len[3]; /* parms buffer length */ |
len | 567 | drivers/scsi/wd7000.c | static inline int command_out(Adapter *host, unchar *cmd, int len) |
len | 570 | drivers/scsi/wd7000.c | while (len--) { |
len | 580 | drivers/scsi/wd7000.c | printk("wd7000 command_out: WAIT failed(%d)\n", len+1); |
len | 934 | drivers/scsi/wd7000.c | any2scsi(sgb[i].len, sg[i].length); |
len | 964 | drivers/scsi/wd7000.c | any2scsi(icb.len, sizeof(buf)); |
len | 1115 | drivers/scsi/wd7000.c | if (!memcmp(cfg->bios+sig->ofs, sig->sig, sig->len)) { |
len | 197 | drivers/sound/configure.c | int len; |
len | 199 | drivers/sound/configure.c | if ((len = read (0, &answ, sizeof (answ))) < 1) |
len | 209 | drivers/sound/configure.c | if (len < 2) /* |
len | 214 | drivers/sound/configure.c | answ[len - 1] = 0; |
len | 226 | drivers/sound/configure.c | int len, num; |
len | 230 | drivers/sound/configure.c | if ((len = read (0, &answ, sizeof (answ))) < 1) |
len | 240 | drivers/sound/configure.c | if (len < 2) /* |
len | 245 | drivers/sound/configure.c | answ[len - 1] = 0; |
len | 131 | drivers/sound/dev_table.h | snd_rw_buf *userbuf, int useroffs, int len); |
len | 298 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len) |
len | 363 | drivers/sound/dmabuf.c | *len = dmap->fragment_size - dmap->counts[dmap->qhead]; |
len | 491 | drivers/sound/dmabuf.c | int len, max, tmp; |
len | 503 | drivers/sound/dmabuf.c | len = dmap->qlen; |
len | 508 | drivers/sound/dmabuf.c | if (tmp & len) |
len | 512 | drivers/sound/dmabuf.c | len += tmp; |
len | 515 | drivers/sound/dmabuf.c | if (len >= max) |
len | 897 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len) |
len | 461 | drivers/sound/gus_wave.c | if (position < samples[sample_no].len) |
len | 1290 | drivers/sound/gus_wave.c | ((sample_ptrs[sample] + samples[sample].len) >> 18)) |
len | 1317 | drivers/sound/gus_wave.c | gus_write_addr (0x0a, sample_ptrs[sample] + samples[sample].len - |
len | 1350 | drivers/sound/gus_wave.c | gus_write_addr (0x04, sample_ptrs[sample] + samples[sample].len - 1, |
len | 1518 | drivers/sound/gus_wave.c | if (count < patch.len) |
len | 1521 | drivers/sound/gus_wave.c | count, (int) patch.len); |
len | 1522 | drivers/sound/gus_wave.c | patch.len = count; |
len | 1525 | drivers/sound/gus_wave.c | if (patch.len <= 0 || patch.len > gus_mem_size) |
len | 1527 | drivers/sound/gus_wave.c | printk ("GUS: Invalid sample length %d\n", (int) patch.len); |
len | 1533 | drivers/sound/gus_wave.c | if (patch.loop_start < 0 || patch.loop_start >= patch.len) |
len | 1539 | drivers/sound/gus_wave.c | if (patch.loop_end < patch.loop_start || patch.loop_end > patch.len) |
len | 1555 | drivers/sound/gus_wave.c | if (patch.len >= GUS_BANK_SIZE) |
len | 1557 | drivers/sound/gus_wave.c | printk ("GUS: Sample (16 bit) too long %d\n", (int) patch.len); |
len | 1562 | drivers/sound/gus_wave.c | ((free_mem_ptr + patch.len) / GUS_BANK_SIZE)) |
len | 1567 | drivers/sound/gus_wave.c | if ((tmp_mem + patch.len) > gus_mem_size) |
len | 1574 | drivers/sound/gus_wave.c | if ((free_mem_ptr + patch.len) > gus_mem_size) |
len | 1599 | drivers/sound/gus_wave.c | left = patch.len; |
len | 1712 | drivers/sound/gus_wave.c | free_mem_ptr += patch.len; |
len | 2335 | drivers/sound/gus_wave.c | snd_rw_buf * userbuf, int useroffs, int len) |
len | 2339 | drivers/sound/gus_wave.c | COPY_FROM_USER (&localbuf[localoffs], userbuf, useroffs, len); |
len | 2348 | drivers/sound/gus_wave.c | len /= 2; |
len | 2353 | drivers/sound/gus_wave.c | for (i = 0; i < len; i++) |
len | 2368 | drivers/sound/gus_wave.c | len /= 4; |
len | 2374 | drivers/sound/gus_wave.c | for (i = 0; i < len; i++) |
len | 2501 | drivers/sound/gus_wave.c | if (pat->len > samples[ptr].len) /* Cannot expand sample */ |
len | 2524 | drivers/sound/gus_wave.c | if (offs < 0 || offs >= samples[sample].len) |
len | 2527 | drivers/sound/gus_wave.c | n = samples[sample].len - offs; /* Num of bytes left */ |
len | 2565 | drivers/sound/gus_wave.c | if (offs < 0 || offs >= samples[sample].len) |
len | 2570 | drivers/sound/gus_wave.c | n = samples[sample].len - offs; /* |
len | 331 | drivers/sound/midi_synth.c | if (count < sysex.len) |
len | 334 | drivers/sound/midi_synth.c | count, (int) sysex.len); |
len | 335 | drivers/sound/midi_synth.c | sysex.len = count; |
len | 338 | drivers/sound/midi_synth.c | left = sysex.len; |
len | 45 | drivers/sound/midibuf.c | int len, head, tail; |
len | 67 | drivers/sound/midibuf.c | #define DATA_AVAIL(q) (q->len) |
len | 68 | drivers/sound/midibuf.c | #define SPACE_AVAIL(q) (MAX_QUEUE_SIZE - q->len) |
len | 76 | drivers/sound/midibuf.c | q->len++; q->tail = (q->tail+1) % MAX_QUEUE_SIZE; \ |
len | 86 | drivers/sound/midibuf.c | q->len--; q->head = (q->head+1) % MAX_QUEUE_SIZE; \ |
len | 151 | drivers/sound/midibuf.c | midi_out_buf[dev]->len--; |
len | 212 | drivers/sound/midibuf.c | midi_in_buf[dev]->len = midi_in_buf[dev]->head = midi_in_buf[dev]->tail = 0; |
len | 225 | drivers/sound/midibuf.c | midi_out_buf[dev]->len = midi_out_buf[dev]->head = midi_out_buf[dev]->tail = 0; |
len | 147 | drivers/sound/mpu401.c | int len; \ |
len | 150 | drivers/sound/mpu401.c | seq_input_event(obuf, len); \ |
len | 154 | drivers/sound/mpu401.c | #define _SEQ_ADVBUF(x) len=x |
len | 149 | drivers/sound/sequencer.c | seq_copy_to_input (unsigned char *event, int len) |
len | 157 | drivers/sound/sequencer.c | if (len != 4 && len != 8) |
len | 159 | drivers/sound/sequencer.c | if ((seq_mode == SEQ_1) != (len == 4)) |
len | 166 | drivers/sound/sequencer.c | memcpy (&iqueue[iqtail * IEV_SZ], event, len); |
len | 204 | drivers/sound/sequencer.c | seq_input_event (unsigned char *event, int len) |
len | 227 | drivers/sound/sequencer.c | seq_copy_to_input (event, len); |
len | 8 | drivers/sound/sound_calls.h | int DMAbuf_getrdbuffer(int dev, char **buf, int *len); |
len | 48 | drivers/sound/sound_calls.h | void seq_input_event(unsigned char *event, int len); |
len | 49 | drivers/sound/sound_calls.h | void seq_copy_to_input (unsigned char *event, int len); |
len | 105 | fs/dcache.c | static inline unsigned long namehash(const char * name, int len) |
len | 107 | fs/dcache.c | return len * *(unsigned char *) name; |
len | 133 | fs/dcache.c | static struct dir_cache_entry * find_entry(struct inode * dir, const char * name, int len, struct hash_list * hash) |
len | 144 | fs/dcache.c | if (de->name_len != len) |
len | 146 | fs/dcache.c | if (memcmp(de->name, name, len)) |
len | 172 | fs/dcache.c | int dcache_lookup(struct inode * dir, const char * name, int len, unsigned long * ino) |
len | 177 | fs/dcache.c | if (len > DCACHE_NAME_LEN) |
len | 179 | fs/dcache.c | hash = hash_table + hash_fn(dir->i_dev, dir->i_ino, namehash(name,len)); |
len | 180 | fs/dcache.c | de = find_entry(dir, name, len, hash); |
len | 188 | fs/dcache.c | void dcache_add(struct inode * dir, const char * name, int len, unsigned long ino) |
len | 193 | fs/dcache.c | if (len > DCACHE_NAME_LEN) |
len | 195 | fs/dcache.c | hash = hash_table + hash_fn(dir->i_dev, dir->i_ino, namehash(name,len)); |
len | 196 | fs/dcache.c | if ((de = find_entry(dir, name, len, hash)) != NULL) { |
len | 208 | fs/dcache.c | de->name_len = len; |
len | 209 | fs/dcache.c | memcpy(de->name, name, len); |
len | 34 | fs/devices.c | int len; |
len | 36 | fs/devices.c | len = sprintf(page, "Character devices:\n"); |
len | 39 | fs/devices.c | len += sprintf(page+len, "%2d %s\n", i, chrdevs[i].name); |
len | 42 | fs/devices.c | len += sprintf(page+len, "\nBlock devices:\n"); |
len | 45 | fs/devices.c | len += sprintf(page+len, "%2d %s\n", i, blkdevs[i].name); |
len | 48 | fs/devices.c | return len; |
len | 393 | fs/exec.c | int len, offset = 0; |
len | 409 | fs/exec.c | len=0; /* remember zero-padding */ |
len | 411 | fs/exec.c | len++; |
len | 413 | fs/exec.c | if (p < len) { /* this shouldn't happen - 128kB */ |
len | 417 | fs/exec.c | while (len) { |
len | 418 | fs/exec.c | --p; --tmp; --len; |
len | 900 | fs/exec.c | unsigned int len; |
len | 940 | fs/exec.c | len = PAGE_ALIGN(ex.a_text + ex.a_data); |
len | 942 | fs/exec.c | if (bss > len) |
len | 943 | fs/exec.c | do_mmap(NULL, start_addr + len, bss-len, |
len | 56 | fs/ext/namei.c | static int ext_match(int len,const char * name,struct ext_dir_entry * de) |
len | 60 | fs/ext/namei.c | if (!de || !de->inode || len > EXT_NAME_LEN) |
len | 63 | fs/ext/namei.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 65 | fs/ext/namei.c | if (len < EXT_NAME_LEN && len != de->name_len) |
len | 72 | fs/ext/namei.c | :"0" (0),"S" ((long) name),"D" ((long) de->name),"c" (len) |
len | 158 | fs/ext/namei.c | int ext_lookup(struct inode * dir,const char * name, int len, |
len | 172 | fs/ext/namei.c | if (!(bh = ext_find_entry(dir,name,len,&de,NULL,NULL))) { |
len | 311 | fs/ext/namei.c | int ext_create(struct inode * dir,const char * name, int len, int mode, |
len | 329 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 345 | fs/ext/namei.c | int ext_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
len | 353 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 388 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 404 | fs/ext/namei.c | int ext_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 410 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 455 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 532 | fs/ext/namei.c | int ext_rmdir(struct inode * dir, const char * name, int len) |
len | 540 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
len | 586 | fs/ext/namei.c | int ext_unlink(struct inode * dir, const char * name, int len) |
len | 595 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
len | 629 | fs/ext/namei.c | int ext_symlink(struct inode * dir, const char * name, int len, const char * symname) |
len | 659 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 668 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 684 | fs/ext/namei.c | int ext_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
len | 699 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 706 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 35 | fs/ext2/balloc.c | #define in_range(b, first, len) ((b) >= (first) && (b) <= (first) + (len) - 1) |
len | 43 | fs/ext2/namei.c | static int ext2_match (int len, const char * const name, |
len | 46 | fs/ext2/namei.c | if (!de || !de->inode || len > EXT2_NAME_LEN) |
len | 51 | fs/ext2/namei.c | if (!len && de->name_len == 1 && (de->name[0] == '.') && |
len | 54 | fs/ext2/namei.c | if (len != de->name_len) |
len | 56 | fs/ext2/namei.c | return !memcmp(name, de->name, len); |
len | 162 | fs/ext2/namei.c | int ext2_lookup (struct inode * dir, const char * name, int len, |
len | 176 | fs/ext2/namei.c | if (dcache_lookup(dir, name, len, &ino)) { |
len | 189 | fs/ext2/namei.c | if (!(bh = ext2_find_entry (dir, name, len, &de))) { |
len | 191 | fs/ext2/namei.c | dcache_add(dir, name, len, 0); |
len | 196 | fs/ext2/namei.c | dcache_add(dir, name, len, ino); |
len | 363 | fs/ext2/namei.c | int ext2_create (struct inode * dir,const char * name, int len, int mode, |
len | 382 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 404 | fs/ext2/namei.c | int ext2_mknod (struct inode * dir, const char * name, int len, int mode, |
len | 414 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 446 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 468 | fs/ext2/namei.c | int ext2_mkdir (struct inode * dir, const char * name, int len, int mode) |
len | 477 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 520 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 598 | fs/ext2/namei.c | int ext2_rmdir (struct inode * dir, const char * name, int len) |
len | 609 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 679 | fs/ext2/namei.c | int ext2_unlink (struct inode * dir, const char * name, int len) |
len | 691 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 740 | fs/ext2/namei.c | int ext2_symlink (struct inode * dir, const char * name, int len, |
len | 789 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 798 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 821 | fs/ext2/namei.c | const char * name, int len) |
len | 842 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 849 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 357 | fs/hpfs/hpfs.h | unsigned char len, name[15]; /* true length, truncated name */ |
len | 235 | fs/hpfs/hpfs_fs.c | static int zerop(void *addr, unsigned len); |
len | 243 | fs/hpfs/hpfs_fs.c | const unsigned char *name, unsigned len, |
len | 253 | fs/hpfs/hpfs_fs.c | static unsigned choose_conv(unsigned char *p, unsigned len); |
len | 255 | fs/hpfs/hpfs_fs.c | unsigned len); |
len | 529 | fs/hpfs/hpfs_fs.c | static int zerop(void *addr, unsigned len) |
len | 532 | fs/hpfs/hpfs_fs.c | return p[0] == 0 && memcmp(p, p + 1, len - 1) == 0; |
len | 944 | fs/hpfs/hpfs_fs.c | static unsigned choose_conv(unsigned char *p, unsigned len) |
len | 951 | fs/hpfs/hpfs_fs.c | while (len--) { |
len | 954 | fs/hpfs/hpfs_fs.c | if (c == '\r' && len && *p == '\n') |
len | 976 | fs/hpfs/hpfs_fs.c | unsigned len) |
len | 980 | fs/hpfs/hpfs_fs.c | while (len--) { |
len | 982 | fs/hpfs/hpfs_fs.c | if (c == '\r' && (len == 0 || *in == '\n')); |
len | 1101 | fs/hpfs/hpfs_fs.c | static int hpfs_lookup(struct inode *dir, const char *name, int len, |
len | 1122 | fs/hpfs/hpfs_fs.c | if (name[0] == '.' && len == 1) |
len | 1124 | fs/hpfs/hpfs_fs.c | else if (name[0] == '.' && name[1] == '.' && len == 2) |
len | 1129 | fs/hpfs/hpfs_fs.c | de = map_dirent(dir, dir->i_hpfs_dno, name, len, &qbh); |
len | 1228 | fs/hpfs/hpfs_fs.c | const unsigned char *name, unsigned len, |
len | 1257 | fs/hpfs/hpfs_fs.c | l = len < de->namelen ? len : de->namelen; |
len | 1264 | fs/hpfs/hpfs_fs.c | t = len - de->namelen; |
len | 1281 | fs/hpfs/hpfs_fs.c | name, len, qbh); |
len | 27 | fs/isofs/namei.c | static int isofs_match(int len,const char * name, char * compare, int dlen) |
len | 33 | fs/isofs/namei.c | if (!len && (compare[0]==0) && (dlen==1)) |
len | 36 | fs/isofs/namei.c | if (compare[0]==0 && dlen==1 && len == 1) |
len | 38 | fs/isofs/namei.c | if (compare[0]==1 && dlen==1 && len == 2) { |
len | 43 | fs/isofs/namei.c | if (len <= 2) printk("Match: %d %d %s %d %d \n",len,dlen,compare,de->name[0], dlen); |
len | 46 | fs/isofs/namei.c | if (dlen != len) |
len | 53 | fs/isofs/namei.c | :"0" (0),"S" ((long) name),"D" ((long) compare),"c" (len) |
len | 213 | fs/isofs/namei.c | int isofs_lookup(struct inode * dir,const char * name, int len, |
len | 220 | fs/isofs/namei.c | printk("lookup: %x %d\n",dir->i_ino, len); |
len | 233 | fs/isofs/namei.c | if (dcache_lookup(dir, name, len, &ino)) ino_back = dir->i_ino; |
len | 236 | fs/isofs/namei.c | if (!(bh = isofs_find_entry(dir,name,len, &ino, &ino_back))) { |
len | 241 | fs/isofs/namei.c | dcache_add(dir, name, len, ino); |
len | 83 | fs/isofs/rock.c | len = cont_size; \ |
len | 99 | fs/isofs/rock.c | int len; |
len | 114 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(de, chr, len); |
len | 120 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 122 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 124 | fs/isofs/rock.c | chr += rr->len; |
len | 125 | fs/isofs/rock.c | len -= rr->len; |
len | 172 | fs/isofs/rock.c | int len; |
len | 180 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(de, chr, len); |
len | 186 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 188 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 190 | fs/isofs/rock.c | chr += rr->len; |
len | 191 | fs/isofs/rock.c | len -= rr->len; |
len | 220 | fs/isofs/rock.c | if((strlen(retname) + rr->len - 5) >= 254) { |
len | 224 | fs/isofs/rock.c | strncat(retname, rr->u.NM.name, rr->len - 5); |
len | 225 | fs/isofs/rock.c | retnamlen += rr->len - 5; |
len | 254 | fs/isofs/rock.c | int len; |
len | 260 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(de, chr, len); |
len | 268 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 270 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 272 | fs/isofs/rock.c | chr += rr->len; |
len | 273 | fs/isofs/rock.c | len -= rr->len; |
len | 322 | fs/isofs/rock.c | slen = rr->len - 5; |
len | 329 | fs/isofs/rock.c | inode->i_size += slp->len; |
len | 344 | fs/isofs/rock.c | slen -= slp->len + 2; |
len | 345 | fs/isofs/rock.c | slp = (struct SL_component *) (((char *) slp) + slp->len + 2); |
len | 402 | fs/isofs/rock.c | int len; |
len | 444 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(raw_inode, chr, len); |
len | 447 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 450 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 452 | fs/isofs/rock.c | chr += rr->len; |
len | 453 | fs/isofs/rock.c | len -= rr->len; |
len | 465 | fs/isofs/rock.c | slen = rr->len - 5; |
len | 475 | fs/isofs/rock.c | strncat(rpnt,slp->text, slp->len); |
len | 490 | fs/isofs/rock.c | slen -= slp->len + 2; |
len | 491 | fs/isofs/rock.c | slp = (struct SL_component *) (((char *) slp) + slp->len + 2); |
len | 44 | fs/isofs/rock.h | unsigned char len; |
len | 87 | fs/isofs/rock.h | unsigned char len; |
len | 23 | fs/minix/namei.c | static inline int namecompare(int len, int maxlen, |
len | 26 | fs/minix/namei.c | if (len >= maxlen || !buffer[len]) { |
len | 30 | fs/minix/namei.c | :"S" ((long) name),"D" ((long) buffer),"c" (len) |
len | 44 | fs/minix/namei.c | static int minix_match(int len, const char * name, |
len | 52 | fs/minix/namei.c | if (!de->inode || len > info->s_namelen) |
len | 55 | fs/minix/namei.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 57 | fs/minix/namei.c | return namecompare(len,info->s_namelen,name,de->name); |
len | 111 | fs/minix/namei.c | int minix_lookup(struct inode * dir,const char * name, int len, |
len | 125 | fs/minix/namei.c | if (!(bh = minix_find_entry(dir,name,len,&de))) { |
len | 213 | fs/minix/namei.c | int minix_create(struct inode * dir,const char * name, int len, int mode, |
len | 232 | fs/minix/namei.c | error = minix_add_entry(dir,name,len, &bh ,&de); |
len | 248 | fs/minix/namei.c | int minix_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
len | 257 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 289 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
len | 305 | fs/minix/namei.c | int minix_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 318 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 356 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
len | 431 | fs/minix/namei.c | int minix_rmdir(struct inode * dir, const char * name, int len) |
len | 439 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 487 | fs/minix/namei.c | int minix_unlink(struct inode * dir, const char * name, int len) |
len | 497 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 540 | fs/minix/namei.c | int minix_symlink(struct inode * dir, const char * name, int len, const char * symname) |
len | 570 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 579 | fs/minix/namei.c | i = minix_add_entry(dir, name, len, &bh, &de); |
len | 595 | fs/minix/namei.c | int minix_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
len | 611 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 618 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
len | 33 | fs/msdos/namei.c | static int msdos_format_name(char conv,const char *name,int len,char *res, |
len | 41 | fs/msdos/namei.c | if (name[0] == '.' && (len == 1 || (len == 2 && name[1] == '.'))) { |
len | 44 | fs/msdos/namei.c | while (len--) *res++ = '.'; |
len | 49 | fs/msdos/namei.c | for (walk = res; len && walk-res < 8; walk++) { |
len | 51 | fs/msdos/namei.c | len--; |
len | 61 | fs/msdos/namei.c | if (conv == 's' && len && c != '.') { |
len | 63 | fs/msdos/namei.c | len--; |
len | 66 | fs/msdos/namei.c | while (c != '.' && len--) c = *name++; |
len | 69 | fs/msdos/namei.c | while (len > 0 && walk-res < MSDOS_NAME) { |
len | 71 | fs/msdos/namei.c | len--; |
len | 82 | fs/msdos/namei.c | if (conv == 's' && len) return -EINVAL; |
len | 93 | fs/msdos/namei.c | static int msdos_find(struct inode *dir,const char *name,int len, |
len | 99 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
len | 105 | fs/msdos/namei.c | int msdos_lookup(struct inode *dir,const char *name,int len, |
len | 119 | fs/msdos/namei.c | if (len == 1 && name[0] == '.') { |
len | 123 | fs/msdos/namei.c | if (len == 2 && name[0] == '.' && name[1] == '.') { |
len | 130 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) { |
len | 197 | fs/msdos/namei.c | int msdos_create(struct inode *dir,const char *name,int len,int mode, |
len | 206 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
len | 245 | fs/msdos/namei.c | int msdos_mkdir(struct inode *dir,const char *name,int len,int mode) |
len | 253 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
len | 295 | fs/msdos/namei.c | if (msdos_rmdir(dir,name,len) < 0) |
len | 327 | fs/msdos/namei.c | int msdos_rmdir(struct inode *dir,const char *name,int len) |
len | 337 | fs/msdos/namei.c | if (name[0] == '.' && (len == 1 || (len == 2 && name[1] == '.'))) |
len | 339 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done; |
len | 367 | fs/msdos/namei.c | int len, |
len | 377 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) |
len | 400 | fs/msdos/namei.c | int msdos_unlink(struct inode *dir,const char *name,int len) |
len | 402 | fs/msdos/namei.c | return msdos_unlinkx (dir,name,len,1); |
len | 407 | fs/msdos/namei.c | int msdos_unlink_umsdos(struct inode *dir,const char *name,int len) |
len | 409 | fs/msdos/namei.c | return msdos_unlinkx (dir,name,len,0); |
len | 125 | fs/namei.c | int lookup(struct inode * dir,const char * name, int len, |
len | 136 | fs/namei.c | if (len==2 && name[0] == '.' && name[1] == '.') { |
len | 157 | fs/namei.c | if (!len) { |
len | 161 | fs/namei.c | return dir->i_op->lookup(dir,name,len,result); |
len | 192 | fs/namei.c | int len,error; |
len | 208 | fs/namei.c | for(len=0;(c = *(pathname++))&&(c != '/');len++) |
len | 213 | fs/namei.c | error = lookup(base,thisname,len,&inode); |
len | 227 | fs/namei.c | *namelen = len; |
len | 24 | fs/nfs/dir.c | static int nfs_lookup(struct inode *dir, const char *name, int len, |
len | 26 | fs/nfs/dir.c | static int nfs_create(struct inode *dir, const char *name, int len, int mode, |
len | 28 | fs/nfs/dir.c | static int nfs_mkdir(struct inode *dir, const char *name, int len, int mode); |
len | 29 | fs/nfs/dir.c | static int nfs_rmdir(struct inode *dir, const char *name, int len); |
len | 30 | fs/nfs/dir.c | static int nfs_unlink(struct inode *dir, const char *name, int len); |
len | 31 | fs/nfs/dir.c | static int nfs_symlink(struct inode *inode, const char *name, int len, |
len | 34 | fs/nfs/dir.c | const char *name, int len); |
len | 35 | fs/nfs/dir.c | static int nfs_mknod(struct inode *dir, const char *name, int len, int mode, |
len | 287 | fs/nfs/dir.c | static int nfs_lookup(struct inode *dir, const char *__name, int len, |
len | 292 | fs/nfs/dir.c | char name[len > NFS_MAXNAMLEN? 1 : len+1]; |
len | 301 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 305 | fs/nfs/dir.c | memcpy(name,__name,len); |
len | 306 | fs/nfs/dir.c | name[len] = '\0'; |
len | 307 | fs/nfs/dir.c | if (len == 1 && name[0] == '.') { /* cheat for "." */ |
len | 328 | fs/nfs/dir.c | static int nfs_create(struct inode *dir, const char *name, int len, int mode, |
len | 342 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 363 | fs/nfs/dir.c | static int nfs_mknod(struct inode *dir, const char *name, int len, |
len | 376 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 395 | fs/nfs/dir.c | static int nfs_mkdir(struct inode *dir, const char *name, int len, int mode) |
len | 407 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 422 | fs/nfs/dir.c | static int nfs_rmdir(struct inode *dir, const char *name, int len) |
len | 431 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 442 | fs/nfs/dir.c | static int nfs_unlink(struct inode *dir, const char *name, int len) |
len | 451 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 462 | fs/nfs/dir.c | static int nfs_symlink(struct inode *dir, const char *name, int len, |
len | 473 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 491 | fs/nfs/dir.c | const char *name, int len) |
len | 507 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 97 | fs/nfs/proc.c | int len, quadlen; |
len | 99 | fs/nfs/proc.c | len = strlen(string); |
len | 100 | fs/nfs/proc.c | quadlen = (len + 3) >> 2; |
len | 101 | fs/nfs/proc.c | *p++ = htonl(len); |
len | 102 | fs/nfs/proc.c | memcpy((char *) p, string, len); |
len | 103 | fs/nfs/proc.c | memset(((char *) p) + len, '\0', (quadlen << 2) - len); |
len | 110 | fs/nfs/proc.c | unsigned int len; |
len | 112 | fs/nfs/proc.c | len = ntohl(*p++); |
len | 113 | fs/nfs/proc.c | if (len > maxlen) |
len | 115 | fs/nfs/proc.c | memcpy(string, (char *) p, len); |
len | 116 | fs/nfs/proc.c | string[len] = '\0'; |
len | 117 | fs/nfs/proc.c | p += (len + 3) >> 2; |
len | 121 | fs/nfs/proc.c | static inline int *xdr_encode_data(int *p, char *data, int len) |
len | 125 | fs/nfs/proc.c | quadlen = (len + 3) >> 2; |
len | 126 | fs/nfs/proc.c | *p++ = htonl(len); |
len | 127 | fs/nfs/proc.c | memcpy((char *) p, data, len); |
len | 128 | fs/nfs/proc.c | memset(((char *) p) + len, '\0', (quadlen << 2) - len); |
len | 135 | fs/nfs/proc.c | unsigned int len; |
len | 137 | fs/nfs/proc.c | len = *lenp = ntohl(*p++); |
len | 138 | fs/nfs/proc.c | if (len > maxlen) |
len | 140 | fs/nfs/proc.c | memcpy(data, (char *) p, len); |
len | 141 | fs/nfs/proc.c | p += (len + 3) >> 2; |
len | 357 | fs/nfs/proc.c | int len = 0; /* = 0 is for gcc */ |
len | 376 | fs/nfs/proc.c | if (!(p = xdr_decode_data(p, data, &len, count))) { |
len | 381 | fs/nfs/proc.c | PRINTK("NFS reply read %d\n", len); |
len | 391 | fs/nfs/proc.c | return (status == NFS_OK) ? len : -nfs_stat_to_errno(status); |
len | 55 | fs/nfs/sock.c | int len; |
len | 72 | fs/nfs/sock.c | len = ((char *) end) - ((char *) start); |
len | 100 | fs/nfs/sock.c | result = sock->ops->send(sock, (void *) start, len, 0, 0); |
len | 109 | fs/proc/array.c | int i, len; |
len | 114 | fs/proc/array.c | len = sprintf(buffer, |
len | 134 | fs/proc/array.c | len += sprintf(buffer + len, " %u", kstat.interrupts[i]); |
len | 135 | fs/proc/array.c | len += sprintf(buffer + len, |
len | 140 | fs/proc/array.c | return len; |
len | 70 | fs/proc/base.c | int proc_match(int len,const char * name,struct proc_dir_entry * de) |
len | 77 | fs/proc/base.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 79 | fs/proc/base.c | if (de->namelen != len) |
len | 86 | fs/proc/base.c | :"0" (0),"S" ((long) name),"D" ((long) de->name),"c" (len) |
len | 91 | fs/proc/base.c | static int proc_lookupbase(struct inode * dir,const char * name, int len, |
len | 107 | fs/proc/base.c | while (i-- > 0 && !proc_match(len,name,base_dir+i)) |
len | 53 | fs/proc/fd.c | static int proc_lookupfd(struct inode * dir,const char * name, int len, |
len | 73 | fs/proc/fd.c | if (!len || (name[0] == '.' && (len == 1 || |
len | 74 | fs/proc/fd.c | (name[1] == '.' && len == 2)))) { |
len | 75 | fs/proc/fd.c | if (len < 2) { |
len | 88 | fs/proc/fd.c | while (len-- > 0) { |
len | 137 | fs/proc/net.c | static int proc_lookupnet(struct inode * dir,const char * name, int len, |
len | 150 | fs/proc/net.c | if (!proc_match(len, name, de)) |
len | 79 | fs/proc/root.c | static int proc_lookuproot(struct inode * dir,const char * name, int len, |
len | 93 | fs/proc/root.c | while (i-- > 0 && !proc_match(len,name,root_dir+i)) |
len | 105 | fs/proc/root.c | while (len-- > 0) { |
len | 101 | fs/super.c | int err, len; |
len | 110 | fs/super.c | len = strlen(tmp->name) + 1; |
len | 111 | fs/super.c | err = verify_area(VERIFY_WRITE, buf, len); |
len | 114 | fs/super.c | memcpy_tofs(buf, tmp->name, len); |
len | 159 | fs/super.c | int len = 0; |
len | 163 | fs/super.c | while (tmp && len < PAGE_SIZE - 80) { |
len | 164 | fs/super.c | len += sprintf(buf+len, "%s\t%s\n", |
len | 169 | fs/super.c | return len; |
len | 25 | fs/sysv/namei.c | static inline int namecompare(int len, int maxlen, |
len | 28 | fs/sysv/namei.c | if (len >= maxlen || !buffer[len]) { |
len | 32 | fs/sysv/namei.c | :"S" ((long) name),"D" ((long) buffer),"c" (len) |
len | 47 | fs/sysv/namei.c | static int sysv_match(int len, const char * name, struct sysv_dir_entry * de) |
len | 49 | fs/sysv/namei.c | if (!de->inode || len > SYSV_NAMELEN) |
len | 52 | fs/sysv/namei.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 54 | fs/sysv/namei.c | return namecompare(len,SYSV_NAMELEN,name,de->name); |
len | 109 | fs/sysv/namei.c | int sysv_lookup(struct inode * dir,const char * name, int len, |
len | 123 | fs/sysv/namei.c | if (!(bh = sysv_find_entry(dir,name,len,&de))) { |
len | 210 | fs/sysv/namei.c | int sysv_create(struct inode * dir,const char * name, int len, int mode, |
len | 232 | fs/sysv/namei.c | error = sysv_add_entry(dir,name,len, &bh ,&de); |
len | 248 | fs/sysv/namei.c | int sysv_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
len | 257 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 292 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
len | 308 | fs/sysv/namei.c | int sysv_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 320 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 358 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
len | 435 | fs/sysv/namei.c | int sysv_rmdir(struct inode * dir, const char * name, int len) |
len | 443 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 491 | fs/sysv/namei.c | int sysv_unlink(struct inode * dir, const char * name, int len) |
len | 501 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 544 | fs/sysv/namei.c | int sysv_symlink(struct inode * dir, const char * name, int len, const char * symname) |
len | 578 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 587 | fs/sysv/namei.c | i = sysv_add_entry(dir, name, len, &bh, &de); |
len | 603 | fs/sysv/namei.c | int sysv_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
len | 619 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 626 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
len | 154 | fs/umsdos/dir.c | ,info.fake.len,&inode); |
len | 478 | fs/umsdos/dir.c | int len) |
len | 488 | fs/umsdos/dir.c | && len == 3 |
len | 498 | fs/umsdos/dir.c | int len, |
len | 505 | fs/umsdos/dir.c | if (len == 1 && name[0] == '.'){ |
len | 509 | fs/umsdos/dir.c | }else if (len == 2 && name[0] == '.' && name[1] == '.'){ |
len | 541 | fs/umsdos/dir.c | }else if (umsdos_is_pseudodos(dir,name,len)){ |
len | 551 | fs/umsdos/dir.c | ret = umsdos_parse (name,len,&info); |
len | 554 | fs/umsdos/dir.c | ,info.fake.len)); |
len | 566 | fs/umsdos/dir.c | ret = umsdos_real_lookup (dir,info.fake.fname,info.fake.len,result); |
len | 607 | fs/umsdos/dir.c | int len, |
len | 610 | fs/umsdos/dir.c | return umsdos_lookup_x(dir,name,len,result,0); |
len | 638 | fs/umsdos/dir.c | int len; |
len | 640 | fs/umsdos/dir.c | len = (int)(pt - start); |
len | 644 | fs/umsdos/dir.c | ret = msdos_lookup(dir,start,len,result); |
len | 646 | fs/umsdos/dir.c | ret = umsdos_lookup_x(dir,start,len,result,1); |
len | 67 | fs/umsdos/inode.c | int len, |
len | 72 | fs/umsdos/inode.c | ret = msdos_lookup (dir,name,len,result); |
len | 113 | fs/umsdos/ioctl.c | ,info.fake.fname,info.fake.len+1); |
len | 73 | fs/umsdos/mangle.c | char *pt = info->fake.fname + info->fake.len; |
len | 98 | fs/umsdos/mangle.c | info->fake.len += 4; |
len | 107 | fs/umsdos/mangle.c | int umsdos_evalrecsize (int len) |
len | 110 | fs/umsdos/mangle.c | int nbrec = 1+((len-1+(dirent.name-(char*)&dirent)) |
len | 119 | fs/umsdos/mangle.c | int umsdos_evalrecsize_old (int len) |
len | 122 | fs/umsdos/mangle.c | int size = len + (dirent.name-(char*)&dirent); |
len | 135 | fs/umsdos/mangle.c | int len, |
len | 144 | fs/umsdos/mangle.c | if (len > UMSDOS_MAXNAME) len = UMSDOS_MAXNAME; |
len | 152 | fs/umsdos/mangle.c | int msdos_len = len; |
len | 191 | fs/umsdos/mangle.c | if (len<=(8+1+3)){ |
len | 193 | fs/umsdos/mangle.c | const char *endpt = fname + len; |
len | 252 | fs/umsdos/mangle.c | || (firstpt == NULL && len > 8) |
len | 253 | fs/umsdos/mangle.c | || (len == UMSDOS_EMD_NAMELEN |
len | 299 | fs/umsdos/mangle.c | base_len = firstpt != NULL ? (int)(firstpt - fname) : len; |
len | 366 | fs/umsdos/mangle.c | info->fake.len = msdos_len; |
len | 368 | fs/umsdos/mangle.c | memcpy (info->entry.name,fname,len); |
len | 369 | fs/umsdos/mangle.c | info->entry.name_len = len; |
len | 375 | fs/umsdos/mangle.c | info->recsize = umsdos_evalrecsize (len); |
len | 161 | fs/umsdos/namei.c | int len, |
len | 165 | fs/umsdos/namei.c | if (umsdos_is_pseudodos(dir,name,len)){ |
len | 176 | fs/umsdos/namei.c | && (len == 1 || (len == 2 && name[1] == '.'))){ |
len | 202 | fs/umsdos/namei.c | int len, /* Length of the name */ |
len | 210 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EEXIST); |
len | 213 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
len | 229 | fs/umsdos/namei.c | ret = msdos_create (dir,info.fake.fname,info.fake.len |
len | 337 | fs/umsdos/namei.c | PRINTK (("ret %d %d ",ret,new_info.fake.len)); |
len | 343 | fs/umsdos/namei.c | ,old_info.fake.fname,old_info.fake.len |
len | 345 | fs/umsdos/namei.c | ,new_info.fake.fname,new_info.fake.len); |
len | 402 | fs/umsdos/namei.c | int len, |
len | 421 | fs/umsdos/namei.c | ret = umsdos_create_any (dir,name,len,mode,0,flags,&inode); |
len | 424 | fs/umsdos/namei.c | int len = strlen(symname); |
len | 428 | fs/umsdos/namei.c | ret = umsdos_file_write_kmem (inode,&filp,(char*)symname,len); |
len | 431 | fs/umsdos/namei.c | if (ret != len){ |
len | 440 | fs/umsdos/namei.c | UMSDOS_unlink (dir,name,len); |
len | 455 | fs/umsdos/namei.c | int len, |
len | 458 | fs/umsdos/namei.c | return umsdos_symlink_x (dir,name,len,symname,S_IFLNK|0777,0); |
len | 467 | fs/umsdos/namei.c | int len) |
len | 540 | fs/umsdos/namei.c | }else if ((ret = umsdos_nevercreat(dir,name,len,-EPERM))==0){ |
len | 590 | fs/umsdos/namei.c | ret = umsdos_symlink_x (dir,name,len |
len | 607 | fs/umsdos/namei.c | ret = umsdos_symlink_x (dir,name,len,path |
len | 638 | fs/umsdos/namei.c | int len, /* Length of the name */ |
len | 643 | fs/umsdos/namei.c | return umsdos_create_any (dir,name,len,mode,0,0,result); |
len | 651 | fs/umsdos/namei.c | int len, |
len | 654 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EEXIST); |
len | 657 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
len | 674 | fs/umsdos/namei.c | ret = msdos_mkdir (dir,info.fake.fname,info.fake.len,mode); |
len | 690 | fs/umsdos/namei.c | ,info.fake.len,&subdir); |
len | 717 | fs/umsdos/namei.c | int len, |
len | 736 | fs/umsdos/namei.c | int ret = umsdos_create_any (dir,name,len,mode,rdev,0,&inode); |
len | 747 | fs/umsdos/namei.c | int len) |
len | 830 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EPERM); |
len | 834 | fs/umsdos/namei.c | ret = UMSDOS_lookup (dir,name,len,&sdir); |
len | 854 | fs/umsdos/namei.c | umsdos_parse (name,len,&info); |
len | 859 | fs/umsdos/namei.c | ,info.fake.len); |
len | 884 | fs/umsdos/namei.c | int len) |
len | 887 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EPERM); |
len | 889 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
len | 910 | fs/umsdos/namei.c | ret = UMSDOS_lookup (dir,name,len,&inode); |
len | 937 | fs/umsdos/namei.c | ,info.fake.len); |
len | 66 | fs/umsdos/rdir.c | int len, |
len | 71 | fs/umsdos/rdir.c | && len == 2 |
len | 84 | fs/umsdos/rdir.c | ret = umsdos_real_lookup (dir,name,len,result); |
len | 109 | fs/umsdos/rdir.c | int len) |
len | 126 | fs/umsdos/rdir.c | if (umsdos_is_pseudodos(dir,name,len)){ |
len | 139 | fs/umsdos/rdir.c | ret = msdos_rmdir (dir,name,len); |
len | 143 | fs/umsdos/rdir.c | ret = UMSDOS_rlookup (dir,name,len,&sdir); |
len | 162 | fs/umsdos/rdir.c | ret = msdos_rmdir (dir,name,len); |
len | 31 | fs/xiafs/namei.c | static int xiafs_match(int len, const char * name, struct xiafs_direct * dep) |
len | 35 | fs/xiafs/namei.c | if (!dep || !dep->d_ino || len > _XIAFS_NAME_LEN) |
len | 38 | fs/xiafs/namei.c | if (!len && (dep->d_name[0]=='.') && (dep->d_name[1]=='\0')) |
len | 40 | fs/xiafs/namei.c | if (len != dep->d_name_len) |
len | 42 | fs/xiafs/namei.c | for (i=0; i < len; i++) |
len | 115 | fs/xiafs/namei.c | int xiafs_lookup(struct inode * dir, const char * name, int len, |
len | 129 | fs/xiafs/namei.c | if (!(bh = xiafs_find_entry(dir, name, len, &dep, NULL))) { |
len | 244 | fs/xiafs/namei.c | int xiafs_create(struct inode * dir, const char * name, int len, int mode, |
len | 262 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 278 | fs/xiafs/namei.c | int xiafs_mknod(struct inode *dir, const char *name, int len, int mode, int rdev) |
len | 286 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len,&de, NULL); |
len | 319 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 335 | fs/xiafs/namei.c | int xiafs_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 341 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len,&de, NULL); |
len | 384 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 484 | fs/xiafs/namei.c | int xiafs_rmdir(struct inode * dir, const char * name, int len) |
len | 492 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, &de_pre); |
len | 536 | fs/xiafs/namei.c | int xiafs_unlink(struct inode * dir, const char * name, int len) |
len | 546 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, &de_pre); |
len | 584 | fs/xiafs/namei.c | int len, const char * symname) |
len | 592 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len, &de, NULL); |
len | 619 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 636 | fs/xiafs/namei.c | const char * name, int len) |
len | 651 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, NULL); |
len | 658 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 134 | ibcs/binfmt_elf.c | unsigned int len; |
len | 204 | ibcs/binfmt_elf.c | len = (elf_bss + 0xfff) & 0xfffff000; /* What we have mapped so far */ |
len | 207 | ibcs/binfmt_elf.c | if (last_bss > len) |
len | 208 | ibcs/binfmt_elf.c | do_mmap(NULL, len, last_bss-len, |
len | 571 | ibcs/binfmt_elf.c | unsigned int len; |
len | 578 | ibcs/binfmt_elf.c | len = 0; |
len | 646 | ibcs/binfmt_elf.c | len = (elf_phdata->p_filesz + elf_phdata->p_vaddr+ 0xfff) & 0xfffff000; |
len | 648 | ibcs/binfmt_elf.c | if (bss > len) |
len | 649 | ibcs/binfmt_elf.c | do_mmap(NULL, len, bss-len, |
len | 33 | include/linux/etherdevice.h | void *saddr, unsigned len, |
len | 65 | include/linux/ext_fs.h | extern int ext_lookup(struct inode * dir,const char * name, int len, |
len | 67 | include/linux/ext_fs.h | extern int ext_create(struct inode * dir,const char * name, int len, int mode, |
len | 69 | include/linux/ext_fs.h | extern int ext_mkdir(struct inode * dir, const char * name, int len, int mode); |
len | 70 | include/linux/ext_fs.h | extern int ext_rmdir(struct inode * dir, const char * name, int len); |
len | 71 | include/linux/ext_fs.h | extern int ext_unlink(struct inode * dir, const char * name, int len); |
len | 72 | include/linux/ext_fs.h | extern int ext_symlink(struct inode * inode, const char * name, int len, |
len | 74 | include/linux/ext_fs.h | extern int ext_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
len | 75 | include/linux/ext_fs.h | extern int ext_mknod(struct inode * dir, const char * name, int len, int mode, int rdev); |
len | 32 | include/linux/ip.h | unsigned char len; |
len | 159 | include/linux/iso_fs.h | extern int get_rock_ridge_filename(struct iso_directory_record *, char ** name, int * len, struct inode *); |
len | 169 | include/linux/iso_fs.h | extern int isofs_lookup(struct inode * dir,const char * name, int len, |
len | 80 | include/linux/minix_fs.h | extern int minix_lookup(struct inode * dir,const char * name, int len, |
len | 82 | include/linux/minix_fs.h | extern int minix_create(struct inode * dir,const char * name, int len, int mode, |
len | 84 | include/linux/minix_fs.h | extern int minix_mkdir(struct inode * dir, const char * name, int len, int mode); |
len | 85 | include/linux/minix_fs.h | extern int minix_rmdir(struct inode * dir, const char * name, int len); |
len | 86 | include/linux/minix_fs.h | extern int minix_unlink(struct inode * dir, const char * name, int len); |
len | 87 | include/linux/minix_fs.h | extern int minix_symlink(struct inode * inode, const char * name, int len, |
len | 89 | include/linux/minix_fs.h | extern int minix_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
len | 90 | include/linux/minix_fs.h | extern int minix_mknod(struct inode * dir, const char * name, int len, int mode, int rdev); |
len | 195 | include/linux/mm.h | extern int do_mmap(struct file * file, unsigned long addr, unsigned long len, |
len | 157 | include/linux/msdos_fs.h | extern int msdos_lookup(struct inode *dir,const char *name,int len, |
len | 159 | include/linux/msdos_fs.h | extern int msdos_create(struct inode *dir,const char *name,int len,int mode, |
len | 161 | include/linux/msdos_fs.h | extern int msdos_mkdir(struct inode *dir,const char *name,int len,int mode); |
len | 162 | include/linux/msdos_fs.h | extern int msdos_rmdir(struct inode *dir,const char *name,int len); |
len | 163 | include/linux/msdos_fs.h | extern int msdos_unlink(struct inode *dir,const char *name,int len); |
len | 164 | include/linux/msdos_fs.h | extern int msdos_unlink_umsdos(struct inode *dir,const char *name,int len); |
len | 107 | include/linux/net.h | int (*listen) (struct socket *sock, int len); |
len | 108 | include/linux/net.h | int (*send) (struct socket *sock, void *buff, int len, int nonblock, |
len | 110 | include/linux/net.h | int (*recv) (struct socket *sock, void *buff, int len, int nonblock, |
len | 112 | include/linux/net.h | int (*sendto) (struct socket *sock, void *buff, int len, int nonblock, |
len | 114 | include/linux/net.h | int (*recvfrom) (struct socket *sock, void *buff, int len, int nonblock, |
len | 129 | include/linux/netdevice.h | unsigned len, |
len | 185 | include/linux/netdevice.h | extern int dev_rint(unsigned char *buff, long len, int flags, |
len | 8 | include/linux/pipe_fs_i.h | unsigned int len; |
len | 19 | include/linux/pipe_fs_i.h | #define PIPE_LEN(inode) ((inode).u.pipe_i.len) |
len | 60 | include/linux/skbuff.h | unsigned long len; |
len | 156 | include/linux/soundcard.h | long len; /* Size of the wave data in bytes */ |
len | 215 | include/linux/soundcard.h | long len; /* Size of the sysex data in bytes */ |
len | 795 | include/linux/soundcard.h | #define SEQ_DEFINEBUF(len) unsigned char _seqbuf[len]; int _seqbuflen = len;int _seqbufptr = 0 |
len | 799 | include/linux/soundcard.h | #define _SEQ_NEEDBUF(len) if ((_seqbufptr+(len)) > _seqbuflen) seqbuf_dump() |
len | 800 | include/linux/soundcard.h | #define _SEQ_ADVBUF(len) _seqbufptr += len |
len | 817 | include/linux/soundcard.h | #define _SEQ_NEEDBUF(len) /* empty */ |
len | 960 | include/linux/soundcard.h | #define SEQ_WRPATCH(patchx, len) {if (_seqbufptr) seqbuf_dump();\ |
len | 961 | include/linux/soundcard.h | if (write(seqfd, (char*)(patchx), len)==-1) \ |
len | 963 | include/linux/soundcard.h | #define SEQ_WRPATCH2(patchx, len) (seqbuf_dump(), write(seqfd, (char*)(patchx), len)) |
len | 393 | include/linux/sysv_fs.h | extern int sysv_lookup(struct inode * dir,const char * name, int len, |
len | 395 | include/linux/sysv_fs.h | extern int sysv_create(struct inode * dir,const char * name, int len, int mode, |
len | 397 | include/linux/sysv_fs.h | extern int sysv_mkdir(struct inode * dir, const char * name, int len, int mode); |
len | 398 | include/linux/sysv_fs.h | extern int sysv_rmdir(struct inode * dir, const char * name, int len); |
len | 399 | include/linux/sysv_fs.h | extern int sysv_unlink(struct inode * dir, const char * name, int len); |
len | 400 | include/linux/sysv_fs.h | extern int sysv_symlink(struct inode * inode, const char * name, int len, |
len | 402 | include/linux/sysv_fs.h | extern int sysv_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
len | 403 | include/linux/sysv_fs.h | extern int sysv_mknod(struct inode * dir, const char * name, int len, int mode, int rdev); |
len | 24 | include/linux/udp.h | unsigned short len; |
len | 19 | include/linux/umsdos_fs.h | int len; |
len | 65 | include/linux/xia_fs.h | extern int xiafs_lookup(struct inode * dir,const char * name, int len, |
len | 67 | include/linux/xia_fs.h | extern int xiafs_create(struct inode * dir,const char * name, int len, int mode, |
len | 69 | include/linux/xia_fs.h | extern int xiafs_mkdir(struct inode * dir, const char * name, int len, int mode); |
len | 70 | include/linux/xia_fs.h | extern int xiafs_rmdir(struct inode * dir, const char * name, int len); |
len | 71 | include/linux/xia_fs.h | extern int xiafs_unlink(struct inode * dir, const char * name, int len); |
len | 72 | include/linux/xia_fs.h | extern int xiafs_symlink(struct inode * inode, const char * name, int len, |
len | 75 | include/linux/xia_fs.h | const char * name, int len); |
len | 76 | include/linux/xia_fs.h | extern int xiafs_mknod(struct inode * dir, const char * name, int len, |
len | 314 | init/main.c | int len = strlen(devnames[n]); |
len | 315 | init/main.c | if (!strncmp(line,devnames[n],len)) { |
len | 316 | init/main.c | ROOT_DEV = devnums[n]+simple_strtoul(line+len,NULL,16); |
len | 368 | init/main.c | int len = 0; |
len | 376 | init/main.c | if (COMMAND_LINE_SIZE <= ++len) |
len | 396 | ipc/shm.c | static int add_vm_area(unsigned long addr, unsigned long len, int readonly) |
len | 403 | ipc/shm.c | do_munmap(addr, len); |
len | 406 | ipc/shm.c | vma->vm_end = addr + len; |
len | 75 | kernel/dma.c | int i, len = 0; |
len | 79 | kernel/dma.c | len += sprintf(buf+len, "%2d: %s\n", |
len | 84 | kernel/dma.c | return len; |
len | 195 | kernel/irq.c | int i, len = 0; |
len | 201 | kernel/irq.c | len += sprintf(buf+len, "%2d: %8d %c %s\n", |
len | 206 | kernel/irq.c | return len; |
len | 54 | kernel/printk.c | asmlinkage int sys_syslog(int type, char * buf, int len) |
len | 69 | kernel/printk.c | if (!buf || len < 0) |
len | 71 | kernel/printk.c | if (!len) |
len | 73 | kernel/printk.c | error = verify_area(VERIFY_WRITE,buf,len); |
len | 85 | kernel/printk.c | while (log_size && i < len) { |
len | 102 | kernel/printk.c | if (!buf || len < 0) |
len | 104 | kernel/printk.c | if (!len) |
len | 106 | kernel/printk.c | error = verify_area(VERIFY_WRITE,buf,len); |
len | 109 | kernel/printk.c | count = len; |
len | 132 | kernel/printk.c | if (len < 0 || len > 8) |
len | 134 | kernel/printk.c | console_loglevel = len; |
len | 645 | kernel/sys.c | asmlinkage int sys_sethostname(char *name, int len) |
len | 651 | kernel/sys.c | if (len > __NEW_UTS_LEN) |
len | 653 | kernel/sys.c | for (i=0; i < len; i++) { |
len | 665 | kernel/sys.c | asmlinkage int sys_setdomainname(char *name, int len) |
len | 671 | kernel/sys.c | if (len > __NEW_UTS_LEN) |
len | 673 | kernel/sys.c | for (i=0; i < len; i++) { |
len | 136 | kernel/vsprintf.c | int len; |
len | 218 | kernel/vsprintf.c | len = strlen(s); |
len | 220 | kernel/vsprintf.c | precision = len; |
len | 221 | kernel/vsprintf.c | else if (len > precision) |
len | 222 | kernel/vsprintf.c | len = precision; |
len | 225 | kernel/vsprintf.c | while (len < field_width--) |
len | 227 | kernel/vsprintf.c | for (i = 0; i < len; ++i) |
len | 229 | kernel/vsprintf.c | while (len < field_width--) |
len | 38 | mm/mmap.c | int do_mmap(struct file * file, unsigned long addr, unsigned long len, |
len | 44 | mm/mmap.c | if ((len = PAGE_ALIGN(len)) == 0) |
len | 47 | mm/mmap.c | if (addr > TASK_SIZE || len > TASK_SIZE || addr > TASK_SIZE-len) |
len | 51 | mm/mmap.c | if (off + len < off) |
len | 85 | mm/mmap.c | if (len > TASK_SIZE || addr > TASK_SIZE - len) |
len | 92 | mm/mmap.c | while (addr+len < SHM_RANGE_END) { |
len | 96 | mm/mmap.c | if (addr + len <= vmm->vm_start) |
len | 104 | mm/mmap.c | if (addr+len >= SHM_RANGE_END) |
len | 131 | mm/mmap.c | vma->vm_end = addr + len; |
len | 151 | mm/mmap.c | do_munmap(addr, len); /* Clear old maps */ |
len | 211 | mm/mmap.c | unsigned long addr, size_t len) |
len | 214 | mm/mmap.c | unsigned long end = addr + len; |
len | 267 | mm/mmap.c | asmlinkage int sys_munmap(unsigned long addr, size_t len) |
len | 269 | mm/mmap.c | return do_munmap(addr, len); |
len | 278 | mm/mmap.c | int do_munmap(unsigned long addr, size_t len) |
len | 282 | mm/mmap.c | if ((addr & ~PAGE_MASK) || addr > TASK_SIZE || len > TASK_SIZE-addr) |
len | 285 | mm/mmap.c | if ((len = PAGE_ALIGN(len)) == 0) |
len | 297 | mm/mmap.c | unsigned long end = addr+len; |
len | 327 | mm/mmap.c | end = addr+len; |
len | 338 | mm/mmap.c | unmap_page_range(addr, len); |
len | 171 | mm/mprotect.c | asmlinkage int sys_mprotect(unsigned long start, size_t len, unsigned long prot) |
len | 178 | mm/mprotect.c | len = (len + ~PAGE_MASK) & PAGE_MASK; |
len | 179 | mm/mprotect.c | end = start + len; |
len | 461 | net/inet/af_inet.c | static void def_callback2(struct sock *sk,int len) |
len | 302 | net/inet/arp.c | skb->len = sizeof(struct arphdr) + dev->hard_header_len + 2*(dev->addr_len+4); |
len | 311 | net/inet/arp.c | dev->hard_header(skb->data,dev,ptype,dest_hw?dest_hw:dev->broadcast,src_hw?src_hw:NULL,skb->len,skb); |
len | 868 | net/inet/arp.c | int len=0; |
len | 879 | net/inet/arp.c | len+=size; |
len | 907 | net/inet/arp.c | size = sprintf(buffer+len, |
len | 914 | net/inet/arp.c | len+=size; |
len | 915 | net/inet/arp.c | pos=begin+len; |
len | 919 | net/inet/arp.c | len=0; |
len | 929 | net/inet/arp.c | len-=(offset-begin); /* Start slop */ |
len | 930 | net/inet/arp.c | if(len>length) |
len | 931 | net/inet/arp.c | len=length; /* Ending slop */ |
len | 932 | net/inet/arp.c | return len; |
len | 529 | net/inet/dev.c | int dev_rint(unsigned char *buff, long len, int flags, struct device *dev) |
len | 537 | net/inet/dev.c | if (dev == NULL || buff == NULL || len <= 0) |
len | 554 | net/inet/dev.c | skb = alloc_skb(len, GFP_ATOMIC); |
len | 569 | net/inet/dev.c | left = len; |
len | 571 | net/inet/dev.c | len2 = len; |
len | 590 | net/inet/dev.c | skb->len = len; |
len | 703 | net/inet/dev.c | skb->len -= skb->dev->hard_header_len; |
len | 744 | net/inet/dev.c | skb2 = alloc_skb(skb->len, GFP_ATOMIC); |
len | 873 | net/inet/dev.c | int len; |
len | 884 | net/inet/dev.c | len = ifc.ifc_len; |
len | 892 | net/inet/dev.c | err=verify_area(VERIFY_WRITE,pos,len); |
len | 915 | net/inet/dev.c | len -= sizeof(struct ifreq); |
len | 921 | net/inet/dev.c | if (len < sizeof(struct ifreq)) |
len | 976 | net/inet/dev.c | int len=0; |
len | 988 | net/inet/dev.c | len+=size; |
len | 993 | net/inet/dev.c | size = sprintf_stats(buffer+len, dev); |
len | 994 | net/inet/dev.c | len+=size; |
len | 995 | net/inet/dev.c | pos=begin+len; |
len | 999 | net/inet/dev.c | len=0; |
len | 1007 | net/inet/dev.c | len-=(offset-begin); /* Start slop */ |
len | 1008 | net/inet/dev.c | if(len>length) |
len | 1009 | net/inet/dev.c | len=length; /* Ending slop */ |
len | 1010 | net/inet/dev.c | return len; |
len | 83 | net/inet/eth.c | void *daddr, void *saddr, unsigned len, |
len | 96 | net/inet/eth.c | eth->h_proto = htons(len); |
len | 29 | net/inet/eth.h | unsigned long saddr, unsigned len); |
len | 98 | net/inet/icmp.c | int len; |
len | 163 | net/inet/icmp.c | len = dev->hard_header_len + sizeof(struct iphdr) + sizeof(struct icmphdr) + |
len | 166 | net/inet/icmp.c | skb = (struct sk_buff *) alloc_skb(len, GFP_ATOMIC); |
len | 179 | net/inet/icmp.c | &ndev, IPPROTO_ICMP, NULL, len, skb_in->ip_hdr->tos,255); |
len | 193 | net/inet/icmp.c | skb->len = offset + sizeof(struct icmphdr) + sizeof(struct iphdr) + 8; |
len | 352 | net/inet/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
len | 363 | net/inet/icmp.c | size = dev->hard_header_len + 64 + len; |
len | 376 | net/inet/icmp.c | IPPROTO_ICMP, opt, len, skb->ip_hdr->tos,255); |
len | 390 | net/inet/icmp.c | skb2->len = offset + len; |
len | 396 | net/inet/icmp.c | memcpy((char *) icmphr, (char *) icmph, len); |
len | 400 | net/inet/icmp.c | icmphr->checksum = ip_compute_csum((unsigned char *)icmphr, len); |
len | 419 | net/inet/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
len | 428 | net/inet/icmp.c | size = dev->hard_header_len + 64 + len; |
len | 443 | net/inet/icmp.c | offset = ip_build_header(skb2, daddr, saddr, &ndev, IPPROTO_ICMP, opt, len, |
len | 457 | net/inet/icmp.c | skb2->len = offset + len; |
len | 464 | net/inet/icmp.c | memcpy((char *) icmphr, (char *) icmph, len); |
len | 476 | net/inet/icmp.c | icmphr->checksum = ip_compute_csum((unsigned char *) icmphr, len); |
len | 495 | net/inet/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
len | 508 | net/inet/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
len | 519 | net/inet/icmp.c | size = dev->hard_header_len + 64 + len; |
len | 534 | net/inet/icmp.c | IPPROTO_ICMP, opt, len, skb->ip_hdr->tos,255); |
len | 548 | net/inet/icmp.c | skb2->len = offset + len; |
len | 562 | net/inet/icmp.c | icmphr->checksum = ip_compute_csum((unsigned char *)icmphr, len); |
len | 577 | net/inet/icmp.c | unsigned long daddr, unsigned short len, |
len | 602 | net/inet/icmp.c | if (ip_compute_csum((unsigned char *) icmph, len)) |
len | 646 | net/inet/icmp.c | icmp_echo(icmph, skb1, dev, saddr, daddr, len, opt); |
len | 654 | net/inet/icmp.c | icmp_timestamp(icmph, skb1, dev, saddr, daddr, len, opt); |
len | 662 | net/inet/icmp.c | icmp_info(icmph, skb1, dev, saddr, daddr, len, opt); |
len | 670 | net/inet/icmp.c | icmp_address(icmph, skb1, dev, saddr, daddr, len, opt); |
len | 32 | net/inet/icmp.h | unsigned short len, unsigned long saddr, |
len | 161 | net/inet/ip.c | static int ip_send(struct sk_buff *skb, unsigned long daddr, int len, struct device *dev, unsigned long saddr) |
len | 173 | net/inet/ip.c | mac = dev->hard_header(skb->data, dev, ETH_P_IP, NULL, NULL, len, skb); |
len | 193 | net/inet/ip.c | struct device **dev, int type, struct options *opt, int len, int tos, int ttl) |
len | 268 | net/inet/ip.c | tmp = ip_send(skb, raddr, len, *dev, saddr); |
len | 270 | net/inet/ip.c | len -= tmp; |
len | 317 | net/inet/ip.c | int i, len = sizeof(struct iphdr); |
len | 335 | net/inet/ip.c | while (!done && len < iph->ihl*4) switch(*buff) { |
len | 341 | net/inet/ip.c | len++; |
len | 355 | net/inet/ip.c | len += 11; |
len | 360 | net/inet/ip.c | len += *buff; |
len | 377 | net/inet/ip.c | len += *buff; |
len | 394 | net/inet/ip.c | len += *buff; |
len | 409 | net/inet/ip.c | len += 4; |
len | 416 | net/inet/ip.c | len += *buff; |
len | 418 | net/inet/ip.c | opt->tstamp.len = *buff / 4 - 1; |
len | 425 | net/inet/ip.c | for (i = 0; i < opt->tstamp.len; i++) { |
len | 493 | net/inet/ip.c | unsigned short ip_compute_csum(unsigned char * buff, int len) |
len | 498 | net/inet/ip.c | if (len > 3) |
len | 511 | net/inet/ip.c | : "0" (sum), "c" (len >> 2) ,"1" (buff) |
len | 514 | net/inet/ip.c | if (len & 2) |
len | 523 | net/inet/ip.c | if (len & 1) |
len | 585 | net/inet/ip.c | fp->len = end - offset; |
len | 759 | net/inet/ip.c | qp->len = 0; |
len | 793 | net/inet/ip.c | if (qp->len == 0) |
len | 827 | net/inet/ip.c | int count, len; |
len | 833 | net/inet/ip.c | len = qp->maclen + qp->ihlen + qp->len; |
len | 835 | net/inet/ip.c | if ((skb = alloc_skb(len,GFP_ATOMIC)) == NULL) |
len | 844 | net/inet/ip.c | skb->len = (len - qp->maclen); |
len | 862 | net/inet/ip.c | if(count+fp->len>skb->len) |
len | 870 | net/inet/ip.c | memcpy((ptr + fp->offset), fp->ptr, fp->len); |
len | 871 | net/inet/ip.c | count += fp->len; |
len | 967 | net/inet/ip.c | qp->len = end; |
len | 1007 | net/inet/ip.c | next->len -= i; /* so reduce size of */ |
len | 1015 | net/inet/ip.c | if (next->len <= 0) |
len | 1091 | net/inet/ip.c | int left, mtu, hlen, len; |
len | 1160 | net/inet/ip.c | len = left; |
len | 1162 | net/inet/ip.c | if (len > mtu) |
len | 1163 | net/inet/ip.c | len = mtu; |
len | 1166 | net/inet/ip.c | if (len < left) |
len | 1168 | net/inet/ip.c | len/=8; |
len | 1169 | net/inet/ip.c | len*=8; |
len | 1175 | net/inet/ip.c | if ((skb2 = alloc_skb(len + hlen,GFP_ATOMIC)) == NULL) |
len | 1190 | net/inet/ip.c | skb2->len = len + hlen; |
len | 1216 | net/inet/ip.c | memcpy(skb2->h.raw + hlen, ptr, len); |
len | 1217 | net/inet/ip.c | left -= len; |
len | 1232 | net/inet/ip.c | ptr += len; |
len | 1233 | net/inet/ip.c | offset += len; |
len | 1369 | net/inet/ip.c | skb2 = alloc_skb(dev2->hard_header_len + skb->len, GFP_ATOMIC); |
len | 1381 | net/inet/ip.c | skb2->len = skb->len + dev2->hard_header_len; |
len | 1387 | net/inet/ip.c | memcpy(ptr + dev2->hard_header_len, skb->h.raw, skb->len); |
len | 1390 | net/inet/ip.c | (void) ip_send(skb2, raddr, skb->len, dev2, dev2->pa_addr); |
len | 1400 | net/inet/ip.c | if(skb2->len > dev2->mtu + dev2->hard_header_len) |
len | 1459 | net/inet/ip.c | if (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0) |
len | 1471 | net/inet/ip.c | skb->len=ntohs(iph->tot_len); |
len | 1670 | net/inet/ip.c | iph->tot_len = ntohs(skb->len-dev->hard_header_len); |
len | 1693 | net/inet/ip.c | if(skb->len > dev->mtu + dev->hard_header_len) |
len | 1835 | net/inet/ip.c | size = skb->len - (((unsigned char *) th) - skb->data); |
len | 44 | net/inet/ip.h | int len; /* length of this fragment */ |
len | 55 | net/inet/ip.h | int len; /* total length of original datagram */ |
len | 76 | net/inet/ip.h | struct options *opt, int len, |
len | 78 | net/inet/ip.h | extern unsigned short ip_compute_csum(unsigned char * buff, int len); |
len | 148 | net/inet/ipx.c | int len=0; |
len | 154 | net/inet/ipx.c | len += sprintf (buffer,"Type local_address rem_address tx_queue rx_queue st uid\n"); |
len | 157 | net/inet/ipx.c | len += sprintf (buffer+len,"%02X ", s->ipx_type); |
len | 158 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX:%02X%02X%02X%02X%02X%02X:%02X ", htonl(s->ipx_source_addr.net), |
len | 162 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX:%02X%02X%02X%02X%02X%02X:%02X ", htonl(s->ipx_dest_addr.net), |
len | 166 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX:%08lX ", s->wmem_alloc, s->rmem_alloc); |
len | 167 | net/inet/ipx.c | len += sprintf (buffer+len,"%02X %d\n", s->state, SOCK_INODE(s->socket)->i_uid); |
len | 170 | net/inet/ipx.c | pos=begin+len; |
len | 174 | net/inet/ipx.c | len=0; /* Keep dumping into the buffer start */ |
len | 183 | net/inet/ipx.c | len-=(offset-begin); /* Remove unwanted header data from length */ |
len | 184 | net/inet/ipx.c | if(len>length) |
len | 185 | net/inet/ipx.c | len=length; /* Remove unwanted tail data from length */ |
len | 187 | net/inet/ipx.c | return len; |
len | 434 | net/inet/ipx.c | int len=0; |
len | 438 | net/inet/ipx.c | len += sprintf (buffer,"Net Router Flags Dev\n"); |
len | 441 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX %08lX:%02X%02X%02X%02X%02X%02X %02X %s\n", ntohl(rt->net), |
len | 444 | net/inet/ipx.c | pos=begin+len; |
len | 447 | net/inet/ipx.c | len=0; |
len | 454 | net/inet/ipx.c | len-=(offset-begin); |
len | 455 | net/inet/ipx.c | if(len>length) |
len | 456 | net/inet/ipx.c | len=length; |
len | 457 | net/inet/ipx.c | return len; |
len | 563 | net/inet/ipx.c | static void def_callback2(struct sock *sk, int len) |
len | 876 | net/inet/ipx.c | incoming_size = skb->len - ntohs(ipx->ipx_pktsize); |
len | 891 | net/inet/ipx.c | skb2->len=ntohs(ipx->ipx_pktsize) + outgoing_size; |
len | 951 | net/inet/ipx.c | sock->data_ready(sock,skb->len); |
len | 955 | net/inet/ipx.c | static int ipx_sendto(struct socket *sock, void *ubuf, int len, int noblock, |
len | 1021 | net/inet/ipx.c | size=sizeof(ipx_packet)+len; /* For mac headers */ |
len | 1057 | net/inet/ipx.c | skb->len=size; |
len | 1084 | net/inet/ipx.c | ipx->ipx_pktsize=htons(len+sizeof(ipx_packet)); |
len | 1095 | net/inet/ipx.c | memcpy_fromfs((char *)(ipx+1),ubuf,len); |
len | 1114 | net/inet/ipx.c | skb2=alloc_skb(skb->len, GFP_ATOMIC); |
len | 1118 | net/inet/ipx.c | skb2->len=skb->len; |
len | 1122 | net/inet/ipx.c | memcpy(skb2->data, skb->data, skb->len); |
len | 1127 | net/inet/ipx.c | return len; |
len | 1232 | net/inet/ipx.c | amount=skb->len; |
len | 43 | net/inet/p8022.c | unsigned long len = skb->len; |
len | 47 | net/inet/p8022.c | dev->hard_header(skb->data, dev, len - hard_len, |
len | 48 | net/inet/p8022.c | dest_node, NULL, len - hard_len, skb); |
len | 12 | net/inet/p8023.c | unsigned long len = skb->len; |
len | 15 | net/inet/p8023.c | dev->hard_header(skb->data, dev, len - hard_len, |
len | 16 | net/inet/p8023.c | dest_node, NULL, len - hard_len, skb); |
len | 85 | net/inet/packet.c | skb->len += dev->hard_header_len; |
len | 123 | net/inet/packet.c | static int packet_sendto(struct sock *sk, unsigned char *from, int len, |
len | 166 | net/inet/packet.c | if(len>dev->mtu+dev->hard_header_len) |
len | 169 | net/inet/packet.c | skb = sk->prot->wmalloc(sk, len, 0, GFP_KERNEL); |
len | 187 | net/inet/packet.c | memcpy_fromfs(skb->data, from, len); |
len | 188 | net/inet/packet.c | skb->len = len; |
len | 199 | net/inet/packet.c | return(len); |
len | 208 | net/inet/packet.c | int len, int noblock, unsigned flags) |
len | 210 | net/inet/packet.c | return(packet_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
len | 266 | net/inet/packet.c | int packet_recvfrom(struct sock *sk, unsigned char *to, int len, |
len | 311 | net/inet/packet.c | truesize = skb->len; |
len | 312 | net/inet/packet.c | copied = min(len, truesize); |
len | 348 | net/inet/packet.c | int len, int noblock, unsigned flags) |
len | 350 | net/inet/packet.c | return(packet_recvfrom(sk, buff, len, noblock, flags, NULL, NULL)); |
len | 12 | net/inet/pe2.c | unsigned long len = skb->len; |
len | 16 | net/inet/pe2.c | dest_node, NULL, len - hard_len, skb); |
len | 65 | net/inet/proc.c | int len=0; |
len | 70 | net/inet/proc.c | len+=sprintf(buffer, "sl local_address rem_address st tx_queue rx_queue tr tm->when uid\n"); |
len | 93 | net/inet/proc.c | len+=sprintf(buffer+len, "%2d: %08lX:%04X %08lX:%04X %02X %08lX:%08lX %02X:%08lX %08X %d\n", |
len | 107 | net/inet/proc.c | pos=begin+len; |
len | 110 | net/inet/proc.c | len=0; |
len | 122 | net/inet/proc.c | len-=(offset-begin); |
len | 123 | net/inet/proc.c | if(len>length) |
len | 124 | net/inet/proc.c | len=length; |
len | 125 | net/inet/proc.c | return len; |
len | 155 | net/inet/proc.c | int len; |
len | 160 | net/inet/proc.c | len = sprintf (buffer, |
len | 174 | net/inet/proc.c | len += sprintf (buffer + len, |
len | 191 | net/inet/proc.c | len += sprintf (buffer + len, |
len | 201 | net/inet/proc.c | len += sprintf (buffer + len, |
len | 211 | net/inet/proc.c | if (offset >= len) |
len | 217 | net/inet/proc.c | len -= offset; |
len | 218 | net/inet/proc.c | if (len > length) |
len | 219 | net/inet/proc.c | len = length; |
len | 220 | net/inet/proc.c | return len; |
len | 33 | net/inet/protocol.h | unsigned short len, unsigned long saddr, |
len | 37 | net/inet/protocol.h | unsigned short len, unsigned long saddr, |
len | 428 | net/inet/rarp.c | int len=0; |
len | 439 | net/inet/rarp.c | len+=size; |
len | 446 | net/inet/rarp.c | len+=size; |
len | 458 | net/inet/rarp.c | size = sprintf(buffer+len, |
len | 469 | net/inet/rarp.c | len+=size; |
len | 470 | net/inet/rarp.c | pos=begin+len; |
len | 474 | net/inet/rarp.c | len=0; |
len | 484 | net/inet/rarp.c | len-=(offset-begin); /* Start slop */ |
len | 485 | net/inet/rarp.c | if(len>length) |
len | 486 | net/inet/rarp.c | len=length; /* Ending slop */ |
len | 487 | net/inet/rarp.c | return len; |
len | 95 | net/inet/raw.c | unsigned long daddr, unsigned short len, unsigned long saddr, |
len | 119 | net/inet/raw.c | skb->len = len + skb->ip_hdr->ihl*sizeof(long); |
len | 138 | net/inet/raw.c | sk->data_ready(sk,skb->len); |
len | 148 | net/inet/raw.c | int len, int noblock, unsigned flags, struct sockaddr_in *usin, int addr_len) |
len | 204 | net/inet/raw.c | len + sk->prot->max_header, |
len | 240 | net/inet/raw.c | memcpy_fromfs(skb->data + tmp, from, len); |
len | 259 | net/inet/raw.c | skb->len = tmp + len; |
len | 263 | net/inet/raw.c | return(len); |
len | 267 | net/inet/raw.c | static int raw_write(struct sock *sk, unsigned char *buff, int len, int noblock, |
len | 270 | net/inet/raw.c | return(raw_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
len | 314 | net/inet/raw.c | int raw_recvfrom(struct sock *sk, unsigned char *to, int len, |
len | 333 | net/inet/raw.c | truesize=skb->len; |
len | 334 | net/inet/raw.c | copied = min(len, truesize); |
len | 351 | net/inet/raw.c | int raw_read (struct sock *sk, unsigned char *buff, int len, int noblock,unsigned flags) |
len | 353 | net/inet/raw.c | return(raw_recvfrom(sk, buff, len, noblock, flags, NULL, NULL)); |
len | 28 | net/inet/raw.h | unsigned short len, unsigned long saddr, |
len | 31 | net/inet/raw.h | int len, int noblock, unsigned flags, |
len | 34 | net/inet/raw.h | int len, int noblock, unsigned flags); |
len | 484 | net/inet/route.c | int len=0; |
len | 489 | net/inet/route.c | len += sprintf(buffer, |
len | 491 | net/inet/route.c | pos=len; |
len | 499 | net/inet/route.c | size = sprintf(buffer+len, "%s\t%08lX\t%08lX\t%02X\t%d\t%lu\t%d\t%08lX\t%d\t%lu\n", |
len | 503 | net/inet/route.c | len+=size; |
len | 507 | net/inet/route.c | len=0; |
len | 515 | net/inet/route.c | len-=(offset-begin); |
len | 516 | net/inet/route.c | if(len>length) |
len | 517 | net/inet/route.c | len=length; |
len | 518 | net/inet/route.c | return len; |
len | 503 | net/inet/skbuff.c | n->len=skb->len; |
len | 426 | net/inet/sock.c | skb->saddr, skb->len, skb->daddr, 1, |
len | 192 | net/inet/sock.h | int len, int nonblock, unsigned flags); |
len | 194 | net/inet/sock.h | int len, int nonblock, unsigned flags); |
len | 196 | net/inet/sock.h | unsigned char *from, int len, int noblock, |
len | 200 | net/inet/sock.h | unsigned char *from, int len, int noblock, |
len | 207 | net/inet/sock.h | struct options *opt, int len, int tos, int ttl); |
len | 219 | net/inet/sock.h | unsigned short len, unsigned long saddr, |
len | 397 | net/inet/tcp.c | sum = skb->len -(counted - skb->h.th->seq); /* Length - header but start from where we are up to (avoid overlaps) */ |
len | 570 | net/inet/tcp.c | unsigned short tcp_check(struct tcphdr *th, int len, |
len | 588 | net/inet/tcp.c | : "0"(daddr), "c"(saddr), "d"((ntohs(len) << 16) + IPPROTO_TCP*256) |
len | 642 | net/inet/tcp.c | : "0"(sum), "c"(len), "S"(th) |
len | 653 | net/inet/tcp.c | unsigned long daddr, int len, struct sock *sk) |
len | 656 | net/inet/tcp.c | th->check = tcp_check(th, len, saddr, daddr); |
len | 666 | net/inet/tcp.c | size = skb->len - ((unsigned char *) th - skb->data); |
len | 669 | net/inet/tcp.c | if (size < sizeof(struct tcphdr) || size > skb->len) |
len | 672 | net/inet/tcp.c | skb, skb->data, th, skb->len); |
len | 802 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
len | 816 | net/inet/tcp.c | buff->len += tmp; |
len | 894 | net/inet/tcp.c | int len, int nonblock, unsigned flags) |
len | 907 | net/inet/tcp.c | while(len > 0) |
len | 1024 | net/inet/tcp.c | copy = min(sk->mss - (skb->len - hdrlen), len); |
len | 1032 | net/inet/tcp.c | memcpy_fromfs(skb->data + skb->len, from, copy); |
len | 1033 | net/inet/tcp.c | skb->len += copy; |
len | 1036 | net/inet/tcp.c | len -= copy; |
len | 1039 | net/inet/tcp.c | if ((skb->len - hdrlen) >= sk->mss || |
len | 1062 | net/inet/tcp.c | if (copy > len) |
len | 1063 | net/inet/tcp.c | copy = len; |
len | 1136 | net/inet/tcp.c | skb->len = 0; |
len | 1158 | net/inet/tcp.c | skb->len += tmp; |
len | 1162 | net/inet/tcp.c | tmp = tcp_build_header((struct tcphdr *)buff, sk, len-copy); |
len | 1177 | net/inet/tcp.c | skb->len += tmp; |
len | 1182 | net/inet/tcp.c | len -= copy; |
len | 1183 | net/inet/tcp.c | skb->len += copy; |
len | 1219 | net/inet/tcp.c | int len, int nonblock, unsigned flags, |
len | 1232 | net/inet/tcp.c | return(tcp_write(sk, from, len, nonblock, flags)); |
len | 1265 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
len | 1282 | net/inet/tcp.c | buff->len += tmp; |
len | 1401 | net/inet/tcp.c | unsigned char *to, int len, unsigned flags) |
len | 1405 | net/inet/tcp.c | while (len > 0) |
len | 1463 | net/inet/tcp.c | int len, int nonblock, unsigned flags) |
len | 1477 | net/inet/tcp.c | return tcp_read_urg(sk, nonblock, to, len, flags); |
len | 1486 | net/inet/tcp.c | while (len > 0) |
len | 1509 | net/inet/tcp.c | if (offset < skb->len) |
len | 1564 | net/inet/tcp.c | used = skb->len - offset; |
len | 1565 | net/inet/tcp.c | if (len < used) |
len | 1566 | net/inet/tcp.c | used = len; |
len | 1590 | net/inet/tcp.c | len -= used; |
len | 1595 | net/inet/tcp.c | if (!(flags & MSG_PEEK) && (used + offset >= skb->len)) |
len | 1669 | net/inet/tcp.c | buff->len = sizeof(*t1); |
len | 1707 | net/inet/tcp.c | buff->len += tmp; |
len | 1804 | net/inet/tcp.c | buff->len = sizeof(*t1); |
len | 1825 | net/inet/tcp.c | buff->len += tmp; |
len | 2124 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr)+4; |
len | 2154 | net/inet/tcp.c | buff->len += tmp; |
len | 2240 | net/inet/tcp.c | if(skb->len > 0 && after(skb->h.th->seq + skb->len , sk->copied_seq)) |
len | 2333 | net/inet/tcp.c | buff->len = sizeof(*t1); |
len | 2366 | net/inet/tcp.c | buff->len += tmp; |
len | 2471 | net/inet/tcp.c | size = skb->len - (((unsigned char *) th) - skb->data); |
len | 2528 | net/inet/tcp.c | static int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len) |
len | 2578 | net/inet/tcp.c | if (len != th->doff*4) |
len | 3059 | net/inet/tcp.c | unsigned long saddr, unsigned short len) |
len | 3067 | net/inet/tcp.c | skb->len = len -(th->doff*4); |
len | 3072 | net/inet/tcp.c | sk->bytes_rcv += skb->len; |
len | 3074 | net/inet/tcp.c | if (skb->len == 0 && !th->fin && !th->urg && !th->psh) |
len | 3092 | net/inet/tcp.c | new_seq= th->seq + skb->len + th->syn; /* Right edge of _data_ part of frame */ |
len | 3155 | net/inet/tcp.c | if (th->seq==skb1->h.th->seq && skb->len>= skb1->len) |
len | 3190 | net/inet/tcp.c | th->ack_seq = th->seq + skb->len; |
len | 3380 | net/inet/tcp.c | unsigned long saddr, unsigned long len) |
len | 3394 | net/inet/tcp.c | if (ptr >= len) |
len | 3421 | net/inet/tcp.c | sk->fin_seq = th->seq + skb->len + th->syn + th->fin; |
len | 3615 | net/inet/tcp.c | buff->len = 24; |
len | 3642 | net/inet/tcp.c | buff->len += tmp; |
len | 3723 | net/inet/tcp.c | tcp_sequence(struct sock *sk, struct tcphdr *th, short len, |
len | 3728 | net/inet/tcp.c | next_seq = len - 4*th->doff; |
len | 3794 | net/inet/tcp.c | unsigned long daddr, unsigned short len, |
len | 3836 | net/inet/tcp.c | if (tcp_check(th, len, saddr, daddr )) |
len | 3858 | net/inet/tcp.c | skb->len = len; |
len | 3927 | net/inet/tcp.c | if(th->ack && !tcp_ack(sk, th, saddr, len)) |
len | 3936 | net/inet/tcp.c | skb->len -= (th->doff *4); |
len | 3937 | net/inet/tcp.c | sk->bytes_rcv += skb->len; |
len | 3939 | net/inet/tcp.c | if(skb->len) |
len | 3942 | net/inet/tcp.c | if(sk->window >= skb->len) |
len | 3943 | net/inet/tcp.c | sk->window-=skb->len; /* We know its effect on the window */ |
len | 3946 | net/inet/tcp.c | sk->acked_seq = th->seq+skb->len; /* Easy */ |
len | 3968 | net/inet/tcp.c | if(!tcp_sequence(sk, th, len, opt, saddr, dev)) |
len | 3974 | net/inet/tcp.c | if(th->ack && !tcp_ack(sk, th, saddr, len)) |
len | 3980 | net/inet/tcp.c | if(tcp_data(skb, sk, saddr, len)) |
len | 4021 | net/inet/tcp.c | if (!tcp_sequence(sk, th, len, opt, saddr,dev)) |
len | 4068 | net/inet/tcp.c | if (th->ack && !tcp_ack(sk, th, saddr, len)) { |
len | 4074 | net/inet/tcp.c | if (tcp_urg(sk, th, saddr, len)) { |
len | 4081 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) { |
len | 4152 | net/inet/tcp.c | if (!tcp_sequence(sk, th, len, opt, saddr,dev)) |
len | 4189 | net/inet/tcp.c | if (!tcp_ack(sk, th, saddr, len)) |
len | 4217 | net/inet/tcp.c | if (!tcp_ack(sk, th, saddr, len)) |
len | 4264 | net/inet/tcp.c | if (tcp_urg(sk, th, saddr, len)) |
len | 4271 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) |
len | 4282 | net/inet/tcp.c | if (tcp_urg(sk, th, saddr, len)) |
len | 4289 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) |
len | 4341 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
len | 4357 | net/inet/tcp.c | buff->len += tmp; |
len | 121 | net/inet/tcp.h | unsigned short len, unsigned long saddr, int redo, |
len | 128 | net/inet/tcp.h | unsigned long daddr, int len, struct sock *sk); |
len | 65 | net/inet/timer.c | void reset_timer (struct sock *t, int timeout, unsigned long len) |
len | 71 | net/inet/timer.c | if ((int) len < 0) /* prevent close to infinite timers. THEY _DO_ */ |
len | 72 | net/inet/timer.c | len = 3; /* happen (negative values ?) - don't ask me why ! -FB */ |
len | 74 | net/inet/timer.c | t->timer.expires = len; |
len | 153 | net/inet/udp.c | static unsigned short udp_check(struct udphdr *uh, int len, unsigned long saddr, unsigned long daddr) |
len | 161 | net/inet/udp.c | : "0"(daddr), "c"(saddr), "d"((ntohs(len) << 16) + IPPROTO_UDP*256) |
len | 164 | net/inet/udp.c | if (len > 3) |
len | 173 | net/inet/udp.c | : "0"(sum), "c"(len/4) ,"1"(uh) |
len | 193 | net/inet/udp.c | if ((len & 2) != 0) |
len | 207 | net/inet/udp.c | if ((len & 1) != 0) |
len | 232 | net/inet/udp.c | unsigned long daddr, int len, struct sock *sk) |
len | 237 | net/inet/udp.c | uh->check = udp_check(uh, len, saddr, daddr); |
len | 250 | net/inet/udp.c | unsigned char *from, int len, int rt) |
len | 263 | net/inet/udp.c | size = sk->prot->max_header + len; |
len | 297 | net/inet/udp.c | skb->len = tmp + sizeof(struct udphdr) + len; /* len + UDP + IP + MAC */ |
len | 305 | net/inet/udp.c | uh->len = htons(len + sizeof(struct udphdr)); |
len | 314 | net/inet/udp.c | memcpy_fromfs(buff, from, len); |
len | 320 | net/inet/udp.c | udp_send_check(uh, saddr, sin->sin_addr.s_addr, skb->len - tmp, sk); |
len | 329 | net/inet/udp.c | return(len); |
len | 333 | net/inet/udp.c | static int udp_sendto(struct sock *sk, unsigned char *from, int len, int noblock, |
len | 381 | net/inet/udp.c | tmp = udp_send(sk, &sin, from, len, flags); |
len | 392 | net/inet/udp.c | static int udp_write(struct sock *sk, unsigned char *buff, int len, int noblock, |
len | 395 | net/inet/udp.c | return(udp_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
len | 436 | net/inet/udp.c | amount = skb->len; |
len | 458 | net/inet/udp.c | int udp_recvfrom(struct sock *sk, unsigned char *to, int len, |
len | 483 | net/inet/udp.c | truesize = skb->len; |
len | 484 | net/inet/udp.c | copied = min(len, truesize); |
len | 510 | net/inet/udp.c | int udp_read(struct sock *sk, unsigned char *buff, int len, int noblock, |
len | 513 | net/inet/udp.c | return(udp_recvfrom(sk, buff, len, noblock, flags, NULL, NULL)); |
len | 553 | net/inet/udp.c | unsigned long daddr, unsigned short len, |
len | 571 | net/inet/udp.c | ulen = ntohs(uh->len); |
len | 573 | net/inet/udp.c | if (ulen > len || len < sizeof(*uh) || ulen < sizeof(*uh)) |
len | 575 | net/inet/udp.c | printk("UDP: short packet: %d/%d\n", ulen, len); |
len | 580 | net/inet/udp.c | len=ulen; |
len | 599 | net/inet/udp.c | if (uh->check && udp_check(uh, len, saddr, daddr)) |
len | 609 | net/inet/udp.c | skb->len = len; |
len | 640 | net/inet/udp.c | skb->len = len - sizeof(*uh); |
len | 645 | net/inet/udp.c | sk->data_ready(sk,skb->len); |
len | 37 | net/inet/udp.h | int len, int noblock, unsigned flags, |
len | 40 | net/inet/udp.h | int len, int noblock, unsigned flags); |
len | 45 | net/inet/udp.h | unsigned short len, unsigned long saddr, int redo, |
len | 123 | net/socket.c | int len; |
len | 128 | net/socket.c | len=get_fs_long(ulen); |
len | 129 | net/socket.c | if(len>klen) |
len | 130 | net/socket.c | len=klen; |
len | 131 | net/socket.c | if(len<0 || len> MAX_SOCK_ADDR) |
len | 133 | net/socket.c | if(len) |
len | 135 | net/socket.c | if((err=verify_area(VERIFY_WRITE,uaddr,len))<0) |
len | 137 | net/socket.c | memcpy_tofs(uaddr,kaddr,len); |
len | 139 | net/socket.c | put_fs_long(len,ulen); |
len | 758 | net/socket.c | int len; |
len | 801 | net/socket.c | newsock->ops->getname(newsock, (struct sockaddr *)address, &len, 1); |
len | 802 | net/socket.c | move_addr_to_user(address,len, upeer_sockaddr, upeer_addrlen); |
len | 869 | net/socket.c | int len; |
len | 877 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 0); |
len | 880 | net/socket.c | if((err=move_addr_to_user(address,len, usockaddr, usockaddr_len))<0) |
len | 894 | net/socket.c | int len; |
len | 902 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 1); |
len | 905 | net/socket.c | if((err=move_addr_to_user(address,len, usockaddr, usockaddr_len))<0) |
len | 915 | net/socket.c | static int sock_send(int fd, void * buff, int len, unsigned flags) |
len | 926 | net/socket.c | if(len<0) |
len | 928 | net/socket.c | err=verify_area(VERIFY_READ, buff, len); |
len | 931 | net/socket.c | return(sock->ops->send(sock, buff, len, (file->f_flags & O_NONBLOCK), flags)); |
len | 940 | net/socket.c | static int sock_sendto(int fd, void * buff, int len, unsigned flags, |
len | 953 | net/socket.c | if(len<0) |
len | 955 | net/socket.c | err=verify_area(VERIFY_READ,buff,len); |
len | 962 | net/socket.c | return(sock->ops->sendto(sock, buff, len, (file->f_flags & O_NONBLOCK), |
len | 975 | net/socket.c | static int sock_recv(int fd, void * buff, int len, unsigned flags) |
len | 987 | net/socket.c | if(len<0) |
len | 989 | net/socket.c | if(len==0) |
len | 991 | net/socket.c | err=verify_area(VERIFY_WRITE, buff, len); |
len | 995 | net/socket.c | return(sock->ops->recv(sock, buff, len,(file->f_flags & O_NONBLOCK), flags)); |
len | 1004 | net/socket.c | static int sock_recvfrom(int fd, void * buff, int len, unsigned flags, |
len | 1016 | net/socket.c | if(len<0) |
len | 1018 | net/socket.c | if(len==0) |
len | 1021 | net/socket.c | err=verify_area(VERIFY_WRITE,buff,len); |
len | 1025 | net/socket.c | len=sock->ops->recvfrom(sock, buff, len, (file->f_flags & O_NONBLOCK), |
len | 1028 | net/socket.c | if(len<0) |
len | 1029 | net/socket.c | return len; |
len | 1033 | net/socket.c | return len; |
len | 43 | net/unix/proc.c | int len=0; |
len | 50 | net/unix/proc.c | len += sprintf(buffer, "Num RefCount Protocol Flags Type St Path\n"); |
len | 63 | net/unix/proc.c | len += sprintf(buffer+len, "%2d: %08X %08X %08lX %04X %02X", i, |
len | 74 | net/unix/proc.c | len += sprintf(buffer+len, " %s\n", |
len | 79 | net/unix/proc.c | buffer[len++]='\n'; |
len | 82 | net/unix/proc.c | pos=begin+len; |
len | 85 | net/unix/proc.c | len=0; |
len | 96 | net/unix/proc.c | len-=(offset-begin); |
len | 97 | net/unix/proc.c | if(len>length) |
len | 98 | net/unix/proc.c | len=length; |
len | 99 | net/unix/proc.c | return len; |
len | 81 | net/unix/sock.c | static int unix_proto_send(struct socket *sock, void *buff, int len, |
len | 83 | net/unix/sock.c | static int unix_proto_recv(struct socket *sock, void *buff, int len, |
len | 85 | net/unix/sock.c | static int unix_proto_sendto(struct socket *sock, void *buff, int len, |
len | 88 | net/unix/sock.c | static int unix_proto_recvfrom(struct socket *sock, void *buff, int len, |
len | 164 | net/unix/sock.c | static int unix_proto_sendto(struct socket *sock, void *buff, int len, int nonblock, |
len | 170 | net/unix/sock.c | static int unix_proto_recvfrom(struct socket *sock, void *buff, int len, int nonblock, |
len | 190 | net/unix/sock.c | static int unix_proto_send(struct socket *sock, void *buff, int len, int nonblock, |
len | 195 | net/unix/sock.c | return(unix_proto_write(sock, (char *) buff, len, nonblock)); |
len | 203 | net/unix/sock.c | static int unix_proto_recv(struct socket *sock, void *buff, int len, int nonblock, |
len | 208 | net/unix/sock.c | return(unix_proto_read(sock, (char *) buff, len, nonblock)); |
len | 584 | net/unix/sock.c | int len; |
len | 597 | net/unix/sock.c | len = upd->sockaddr_len; |
len | 598 | net/unix/sock.c | memcpy(usockaddr, &upd->sockaddr_un, len); |
len | 599 | net/unix/sock.c | *usockaddr_len=len; |
len | 264 | zBoot/gzip.h | void copy_block OF((char *buf, unsigned len, int header)); |
len | 219 | zBoot/misc.c | int len, i; |
len | 224 | zBoot/misc.c | len = INBUFSIZ-insize; |
len | 225 | zBoot/misc.c | if (len > (input_len-input_ptr+1)) len=input_len-input_ptr+1; |
len | 226 | zBoot/misc.c | if (len == 0 || len == EOF) break; |
len | 228 | zBoot/misc.c | for (i=0;i<len;i++) inbuf[insize+i] = input_data[input_ptr+i]; |
len | 229 | zBoot/misc.c | insize += len; |
len | 230 | zBoot/misc.c | input_ptr += len; |
len | 397 | zBoot/misc.c | unsigned len = (unsigned)get_byte(); |
len | 398 | zBoot/misc.c | len |= ((unsigned)get_byte())<<8; |
len | 399 | zBoot/misc.c | while (len--) (void)get_byte(); |
len | 18 | zBoot/piggyback.c | int c, n=0, len=0; |
len | 35 | zBoot/piggyback.c | len = 0; |
len | 36 | zBoot/piggyback.c | while ((n = read(0, &tmp_buf[len], sizeof(tmp_buf)-len+1)) > 0) |
len | 37 | zBoot/piggyback.c | len += n; |
len | 45 | zBoot/piggyback.c | if (len >= sizeof(tmp_buf)) |
len | 51 | zBoot/piggyback.c | fprintf(stderr, "Compressed size %d.\n", len); |
len | 56 | zBoot/piggyback.c | obj.a_data = len + sizeof(long); |
len | 63 | zBoot/piggyback.c | write(1, tmp_buf, len); |
len | 64 | zBoot/piggyback.c | write(1, (char *)&len, sizeof(len)); |
len | 69 | zBoot/piggyback.c | var_names[1].n_value = len; |
len | 75 | zBoot/piggyback.c | len = sizeof(string_names) + sizeof(len); |
len | 76 | zBoot/piggyback.c | write(1, (char *)&len, sizeof(len)); |