tag | line | file | source code |
len | 264 | arch/i386/boot/compressed/gzip.h | void copy_block OF((char *buf, unsigned len, int header)); |
len | 219 | arch/i386/boot/compressed/misc.c | int len, i; |
len | 224 | arch/i386/boot/compressed/misc.c | len = INBUFSIZ-insize; |
len | 225 | arch/i386/boot/compressed/misc.c | if (len > (input_len-input_ptr+1)) len=input_len-input_ptr+1; |
len | 226 | arch/i386/boot/compressed/misc.c | if (len == 0 || len == EOF) break; |
len | 228 | arch/i386/boot/compressed/misc.c | for (i=0;i<len;i++) inbuf[insize+i] = input_data[input_ptr+i]; |
len | 229 | arch/i386/boot/compressed/misc.c | insize += len; |
len | 230 | arch/i386/boot/compressed/misc.c | input_ptr += len; |
len | 397 | arch/i386/boot/compressed/misc.c | unsigned len = (unsigned)get_byte(); |
len | 398 | arch/i386/boot/compressed/misc.c | len |= ((unsigned)get_byte())<<8; |
len | 399 | arch/i386/boot/compressed/misc.c | while (len--) (void)get_byte(); |
len | 18 | arch/i386/boot/compressed/piggyback.c | int c, n=0, len=0; |
len | 35 | arch/i386/boot/compressed/piggyback.c | len = 0; |
len | 36 | arch/i386/boot/compressed/piggyback.c | while ((n = read(0, &tmp_buf[len], sizeof(tmp_buf)-len+1)) > 0) |
len | 37 | arch/i386/boot/compressed/piggyback.c | len += n; |
len | 45 | arch/i386/boot/compressed/piggyback.c | if (len >= sizeof(tmp_buf)) |
len | 51 | arch/i386/boot/compressed/piggyback.c | fprintf(stderr, "Compressed size %d.\n", len); |
len | 56 | arch/i386/boot/compressed/piggyback.c | obj.a_data = len + sizeof(long); |
len | 63 | arch/i386/boot/compressed/piggyback.c | write(1, tmp_buf, len); |
len | 64 | arch/i386/boot/compressed/piggyback.c | write(1, (char *)&len, sizeof(len)); |
len | 69 | arch/i386/boot/compressed/piggyback.c | var_names[1].n_value = len; |
len | 75 | arch/i386/boot/compressed/piggyback.c | len = sizeof(string_names) + sizeof(len); |
len | 76 | arch/i386/boot/compressed/piggyback.c | write(1, (char *)&len, sizeof(len)); |
len | 133 | arch/i386/ibcs/binfmt_elf.c | unsigned int len; |
len | 203 | arch/i386/ibcs/binfmt_elf.c | len = (elf_bss + 0xfff) & 0xfffff000; /* What we have mapped so far */ |
len | 206 | arch/i386/ibcs/binfmt_elf.c | if (last_bss > len) |
len | 207 | arch/i386/ibcs/binfmt_elf.c | do_mmap(NULL, len, last_bss-len, |
len | 570 | arch/i386/ibcs/binfmt_elf.c | unsigned int len; |
len | 577 | arch/i386/ibcs/binfmt_elf.c | len = 0; |
len | 645 | arch/i386/ibcs/binfmt_elf.c | len = (elf_phdata->p_filesz + elf_phdata->p_vaddr+ 0xfff) & 0xfffff000; |
len | 647 | arch/i386/ibcs/binfmt_elf.c | if (bss > len) |
len | 648 | arch/i386/ibcs/binfmt_elf.c | do_mmap(NULL, len, bss-len, |
len | 121 | arch/i386/kernel/ioport.c | { int i=0,len=0; |
len | 122 | arch/i386/kernel/ioport.c | while(i<IOPORTNAMES_LEN && len<4000) |
len | 124 | arch/i386/kernel/ioport.c | len+=sprintf(buf+len,"%04x-%04x : %s\n", |
len | 130 | arch/i386/kernel/ioport.c | if(len>=4000) |
len | 131 | arch/i386/kernel/ioport.c | len+=sprintf(buf+len,"4k-Limit reached!\n"); |
len | 132 | arch/i386/kernel/ioport.c | return len; |
len | 163 | arch/i386/kernel/irq.c | int i, len = 0; |
len | 169 | arch/i386/kernel/irq.c | len += sprintf(buf+len, "%2d: %8d %c %s\n", |
len | 174 | arch/i386/kernel/irq.c | return len; |
len | 307 | drivers/block/ide-cd.c | int stat_dum, len; |
len | 315 | drivers/block/ide-cd.c | len = IN_BYTE (HD_LCYL, dev->hwif) + 256 * IN_BYTE (HD_HCYL, dev->hwif); |
len | 317 | drivers/block/ide-cd.c | if (len != CD_FRAMESIZE) |
len | 319 | drivers/block/ide-cd.c | printk ("cdrom_read_intr: funny value for read length %d\n", len); |
len | 320 | drivers/block/ide-cd.c | if (len > CD_FRAMESIZE) len = CD_FRAMESIZE; |
len | 323 | drivers/block/ide-cd.c | IN_WORDS (rq->buffer, len/2); |
len | 416 | drivers/block/ide-cd.c | int ireason, len, stat, thislen; |
len | 425 | drivers/block/ide-cd.c | len = IN_BYTE (HD_LCYL, dev->hwif) + 256 * IN_BYTE (HD_HCYL, dev->hwif); |
len | 447 | drivers/block/ide-cd.c | if (thislen > len) thislen = len; |
len | 466 | drivers/block/ide-cd.c | while (len > thislen) |
len | 470 | drivers/block/ide-cd.c | len -= 2; |
len | 495 | drivers/block/ide-cd.c | while (len > thislen) |
len | 499 | drivers/block/ide-cd.c | len -= 2; |
len | 536 | drivers/block/ide-cd.c | int len; |
len | 540 | drivers/block/ide-cd.c | len = pc->buflen; |
len | 541 | drivers/block/ide-cd.c | if (len < 0) len = -len; |
len | 545 | drivers/block/ide-cd.c | if (cdrom_start_packet_command (dev, len)) |
len | 33 | drivers/block/ramdisk.c | int len; |
len | 39 | drivers/block/ramdisk.c | len = CURRENT->current_nr_sectors << 9; |
len | 42 | drivers/block/ramdisk.c | (addr+len > rd_start+rd_length)) { |
len | 49 | drivers/block/ramdisk.c | len); |
len | 53 | drivers/block/ramdisk.c | len); |
len | 362 | drivers/net/3c501.c | int gp_start = 0x800 - (ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN); |
len | 382 | drivers/net/3c501.c | outsb(DATAPORT,buf,skb->len); /* load buffer (usual thing each byte increments the pointer) */ |
len | 562 | drivers/net/3c501.c | skb->len = pkt_len; |
len | 544 | drivers/net/3c505.c | int len) |
len | 559 | drivers/net/3c505.c | int sksize = sizeof(struct sk_buff) + len + 4; |
len | 565 | drivers/net/3c505.c | if (len <= 0 || ((len & ~1) != len)) |
len | 567 | drivers/net/3c505.c | printk("*** bad packet len %d at %s(%d)\n",len,filename,__LINE__); |
len | 569 | drivers/net/3c505.c | rlen = (len+1) & ~1; |
len | 600 | drivers/net/3c505.c | skb->len = rlen; |
len | 671 | drivers/net/3c505.c | int len; |
len | 784 | drivers/net/3c505.c | len = adapter->irx_pcb.data.rcv_resp.pkt_len; |
len | 790 | drivers/net/3c505.c | printk("%s: interrupt - packet received of length %i (%i)\n", dev->name, len, dlen); |
len | 970 | drivers/net/3c505.c | static int send_packet (elp_device * adapter, unsigned char * ptr, int len) |
len | 978 | drivers/net/3c505.c | unsigned int nlen = (((len < 60) ? 60 : len) + 1) & (~1); |
len | 983 | drivers/net/3c505.c | if (nlen < len) |
len | 984 | drivers/net/3c505.c | printk("Warning, bad length nlen=%d len=%d %s(%d)\n",nlen,len,filename,__LINE__); |
len | 1063 | drivers/net/3c505.c | if (skb->len <= 0) |
len | 1067 | drivers/net/3c505.c | printk("%s: request to send packet of length %d\n", dev->name, (int)skb->len); |
len | 1087 | drivers/net/3c505.c | if (!send_packet(adapter, (unsigned char *)SKB_DATA, skb->len)) { |
len | 1093 | drivers/net/3c505.c | printk("%s: packet of length %d sent\n", dev->name, (int)skb->len); |
len | 491 | drivers/net/3c507.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 845 | drivers/net/3c507.c | skb->len = pkt_len; |
len | 402 | drivers/net/3c509.c | if (skb->len <= 0) |
len | 407 | drivers/net/3c509.c | dev->name, skb->len, inw(ioaddr + EL3_STATUS)); |
len | 431 | drivers/net/3c509.c | outw(skb->len, ioaddr + TX_FIFO); |
len | 434 | drivers/net/3c509.c | outsl(ioaddr + TX_FIFO, skb->data, (skb->len + 3) >> 2); |
len | 600 | drivers/net/3c509.c | skb->len = pkt_len; |
len | 169 | drivers/net/8390.c | length = skb->len; |
len | 170 | drivers/net/8390.c | if (skb->len <= 0) |
len | 458 | drivers/net/8390.c | skb->len = pkt_len; |
len | 356 | drivers/net/apricot.c | skb->len = pkt_len; |
len | 620 | drivers/net/apricot.c | if (skb->len <= 0) return 0; |
len | 630 | drivers/net/apricot.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 403 | drivers/net/at1700.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 533 | drivers/net/at1700.c | skb->len = pkt_len; |
len | 444 | drivers/net/atp.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 636 | drivers/net/atp.c | skb->len = pkt_len; |
len | 407 | drivers/net/de600.c | int len; |
len | 441 | drivers/net/de600.c | PRINTK(("de600_start_xmit:len=%d, page %d/%d\n", skb->len, tx_fifo_in, free_tx_pages)); |
len | 443 | drivers/net/de600.c | if ((len = skb->len) < RUNT) |
len | 444 | drivers/net/de600.c | len = RUNT; |
len | 448 | drivers/net/de600.c | tx_fifo[tx_fifo_in] = transmit_from = tx_page_adr(tx_fifo_in) - len; |
len | 464 | drivers/net/de600.c | for ( ; len > 0; --len, ++buffer) |
len | 481 | drivers/net/de620.c | int len; |
len | 517 | drivers/net/de620.c | if ((len = skb->len) < RUNT) |
len | 518 | drivers/net/de620.c | len = RUNT; |
len | 519 | drivers/net/de620.c | if (len & 1) /* send an even number of bytes */ |
len | 520 | drivers/net/de620.c | ++len; |
len | 527 | drivers/net/de620.c | (int)skb->len, using_txbuf)); |
len | 548 | drivers/net/de620.c | de620_write_block(buffer, len); |
len | 682 | drivers/net/de620.c | skb->len = size; skb->dev = dev; skb->free = 1; |
len | 838 | drivers/net/depca.c | if (skb->len <= 0) { |
len | 861 | drivers/net/depca.c | int len; |
len | 862 | drivers/net/depca.c | long skbL = skb->len; |
len | 876 | drivers/net/depca.c | len = ((skbL > PKT_SZ) ? PKT_SZ : skbL); /* skb too long */ |
len | 877 | drivers/net/depca.c | if (len < ETH_ZLEN) len = ETH_ZLEN; /* len too short */ |
len | 878 | drivers/net/depca.c | skbL -= len; |
len | 879 | drivers/net/depca.c | lp->tx_ring[entry].length = -len; |
len | 885 | drivers/net/depca.c | memcpy((unsigned char *)(buf), skb->data, len); |
len | 897 | drivers/net/depca.c | for (p += len; skbL > 0; p += len) { |
len | 913 | drivers/net/depca.c | len = ((skbL > DAT_SZ) ? DAT_SZ : skbL); /* skbL too long */ |
len | 914 | drivers/net/depca.c | if (len < ETH_ZLEN) len = ETH_ZLEN; /* len too short */ |
len | 915 | drivers/net/depca.c | skbL -= len; |
len | 916 | drivers/net/depca.c | lp->tx_ring[entry].length = -len; |
len | 922 | drivers/net/depca.c | memcpy((unsigned char *)(buf + PKT_HDR_LEN), (unsigned char *)p, len); |
len | 1065 | drivers/net/depca.c | skb->len = pkt_len; |
len | 496 | drivers/net/eexpress.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 951 | drivers/net/eexpress.c | skb->len = pkt_len; |
len | 796 | drivers/net/ewrk3.c | } else if (skb->len > 0) { |
len | 849 | drivers/net/ewrk3.c | outb((char)(skb->len & 0xff), EWRK3_DATA); |
len | 850 | drivers/net/ewrk3.c | outb((char)((skb->len >> 8) & 0xff), EWRK3_DATA); |
len | 852 | drivers/net/ewrk3.c | for (i=0; i<skb->len; i++) { |
len | 858 | drivers/net/ewrk3.c | *buf++ = (char)(skb->len & 0xff); /* length (16 bit xfer)*/ |
len | 860 | drivers/net/ewrk3.c | *buf++ = (char)(((skb->len >> 8) & 0xff) | XCT); |
len | 862 | drivers/net/ewrk3.c | *(buf + skb->len) = 0x00; /* Write the XCT flag */ |
len | 865 | drivers/net/ewrk3.c | memcpy(buf + PRELOAD, skb->data + PRELOAD, skb->len - PRELOAD); |
len | 866 | drivers/net/ewrk3.c | *(buf + skb->len) = 0xff; /* Write the XCT flag */ |
len | 868 | drivers/net/ewrk3.c | *buf++ = (char)((skb->len >> 8) & 0xff); |
len | 870 | drivers/net/ewrk3.c | memcpy(buf, skb->data, skb->len); /* Write data bytes */ |
len | 1038 | drivers/net/ewrk3.c | skb->len = pkt_len; |
len | 1045 | drivers/net/ewrk3.c | for (i=0; i<skb->len; i++) { |
len | 1624 | drivers/net/ewrk3.c | ioc->len = ETH_ALEN; |
len | 1625 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 1684 | drivers/net/ewrk3.c | ioc->len = (HASH_TABLE_LEN >> 3); |
len | 1685 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 1691 | drivers/net/ewrk3.c | if (ioc->len != HASH_TABLE_LEN) { /* MCA changes */ |
len | 1692 | drivers/net/ewrk3.c | memcpy_fromfs(tmp.addr, ioc->data, ETH_ALEN * ioc->len); |
len | 1694 | drivers/net/ewrk3.c | set_multicast_list(dev, ioc->len, tmp.addr); |
len | 1722 | drivers/net/ewrk3.c | ioc->len = EWRK3_PKT_STAT_SZ; |
len | 1760 | drivers/net/ewrk3.c | ioc->len = EEPROM_MAX + 1 + ETH_ALEN; |
len | 1761 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 295 | drivers/net/ewrk3.h | unsigned short len; /* Length of the data buffer */ |
len | 677 | drivers/net/lance.c | if (skb->len <= 0) |
len | 712 | drivers/net/lance.c | -(ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN); |
len | 714 | drivers/net/lance.c | lp->tx_ring[entry].length = -skb->len; |
len | 720 | drivers/net/lance.c | if ((int)(skb->data) + skb->len > 0x01000000) { |
len | 724 | drivers/net/lance.c | memcpy(&lp->tx_bounce_buffs[entry], skb->data, skb->len); |
len | 913 | drivers/net/lance.c | skb->len = pkt_len; |
len | 64 | drivers/net/loopback.c | done = dev_rint(skb->data, skb->len, 0, dev); |
len | 870 | drivers/net/ni52.c | skb->len = totlen; |
len | 1000 | drivers/net/ni52.c | int len; |
len | 1029 | drivers/net/ni52.c | if (skb->len <= 0) |
len | 1036 | drivers/net/ni52.c | memcpy((char *)p->xmit_cbuffs[p->xmit_count],(char *)(skb->data),skb->len); |
len | 1037 | drivers/net/ni52.c | len = (ETH_ZLEN < skb->len) ? skb->len : ETH_ZLEN; |
len | 1041 | drivers/net/ni52.c | p->xmit_buffs[0]->size = TBD_LAST | len; |
len | 1049 | drivers/net/ni52.c | for(len=0;len<256;len++); |
len | 1054 | drivers/net/ni52.c | p->xmit_buffs[0]->size = TBD_LAST | len; |
len | 1067 | drivers/net/ni52.c | p->xmit_buffs[p->xmit_count]->size = TBD_LAST | len; |
len | 500 | drivers/net/ni65.c | int rmdstat,len; |
len | 529 | drivers/net/ni65.c | len = (rmdp->mlen & 0x0fff) - 4; /* -4: ignore FCS */ |
len | 534 | drivers/net/ni65.c | memcpy(skb->data,p->recv_skb[p->rmdnum]->data,len); |
len | 544 | drivers/net/ni65.c | skb1->len = len; |
len | 588 | drivers/net/ni65.c | if (skb->len <= 0) |
len | 603 | drivers/net/ni65.c | short len = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 611 | drivers/net/ni65.c | memcpy((char *) (tmdp->u.buffer & 0x00ffffff),(char *)skb->data,skb->len); |
len | 614 | drivers/net/ni65.c | tmdp->blen = -len; |
len | 434 | drivers/net/plip.c | if (skb->len > dev->mtu) { |
len | 435 | drivers/net/plip.c | printk("%s: packet too big, %d.\n", dev->name, (int)skb->len); |
len | 444 | drivers/net/plip.c | snd->length = skb->len; |
len | 656 | drivers/net/plip.c | rcv->skb->len = rcv->length; |
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 | 1250 | drivers/net/sk_g16.c | short len = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 1259 | drivers/net/sk_g16.c | skb->len); |
len | 1261 | drivers/net/sk_g16.c | tmdp->blen = -len; /* set length to transmit */ |
len | 1571 | drivers/net/sk_g16.c | int len = (rmdp->mlen & 0x0fff); /* extract message length from receive buffer */ |
len | 1574 | drivers/net/sk_g16.c | skb = alloc_skb(len, GFP_ATOMIC); /* allocate socket buffer */ |
len | 1594 | drivers/net/sk_g16.c | skb->len = len; |
len | 1605 | drivers/net/sk_g16.c | len); |
len | 340 | drivers/net/skeleton.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 426 | drivers/net/skeleton.c | skb->len = pkt_len; |
len | 499 | drivers/net/slhc.c | int len, hdrlen; |
len | 604 | drivers/net/slhc.c | len = isize - (cp - icp); |
len | 605 | drivers/net/slhc.c | if (len < 0) |
len | 607 | drivers/net/slhc.c | len += hdrlen; |
len | 608 | drivers/net/slhc.c | ip->tot_len = htons(len); |
len | 611 | drivers/net/slhc.c | memmove(icp + hdrlen, cp, len - hdrlen); |
len | 632 | drivers/net/slhc.c | return len; |
len | 97 | drivers/net/slip.c | static int slip_esc(unsigned char *p, unsigned char *d, int len); |
len | 100 | drivers/net/slip.c | static int slip_esc6(unsigned char *p, unsigned char *d, int len); |
len | 142 | drivers/net/slip.c | int len; |
len | 145 | drivers/net/slip.c | len = dev->mtu * 2; |
len | 151 | drivers/net/slip.c | if (len < 576 * 2) { |
len | 152 | drivers/net/slip.c | len = 576 * 2; |
len | 155 | drivers/net/slip.c | xbuff = (unsigned char *) kmalloc (len + 4, GFP_ATOMIC); |
len | 156 | drivers/net/slip.c | rbuff = (unsigned char *) kmalloc (len + 4, GFP_ATOMIC); |
len | 158 | drivers/net/slip.c | cbuff = (unsigned char *) kmalloc (len + 4, GFP_ATOMIC); |
len | 194 | drivers/net/slip.c | if (sl->xleft <= len) { |
len | 204 | drivers/net/slip.c | if (sl->rcount <= len) { |
len | 217 | drivers/net/slip.c | sl->buffsize = len; |
len | 301 | drivers/net/slip.c | skb->len = count; |
len | 310 | drivers/net/slip.c | sl_encaps(struct slip *sl, unsigned char *icp, int len) |
len | 324 | drivers/net/slip.c | if (len > sl->mtu) { /* Sigh, shouldn't occur BUT ... */ |
len | 325 | drivers/net/slip.c | len = sl->mtu; |
len | 335 | drivers/net/slip.c | len = slhc_compress(sl->slcomp, p, len, sl->cbuff, &p, 1); |
len | 340 | drivers/net/slip.c | count = slip_esc6(p, (unsigned char *) sl->xbuff, len); |
len | 343 | drivers/net/slip.c | count = slip_esc(p, (unsigned char *) sl->xbuff, len); |
len | 434 | drivers/net/slip.c | sl_encaps(sl, skb->data, skb->len); |
len | 459 | drivers/net/slip.c | void *daddr, void *saddr, unsigned len, struct sk_buff *skb) |
len | 466 | drivers/net/slip.c | return ax25_encapsulate(buff, dev, type, daddr, saddr, len, skb); |
len | 497 | drivers/net/slip.c | unsigned long len; |
len | 510 | drivers/net/slip.c | len = dev->mtu * 2; |
len | 516 | drivers/net/slip.c | if (len < 576 * 2) { |
len | 517 | drivers/net/slip.c | len = 576 * 2; |
len | 519 | drivers/net/slip.c | sl->rbuff = (unsigned char *) kmalloc(len + 4, GFP_KERNEL); |
len | 523 | drivers/net/slip.c | sl->xbuff = (unsigned char *) kmalloc(len + 4, GFP_KERNEL); |
len | 528 | drivers/net/slip.c | sl->cbuff = (unsigned char *) kmalloc(len + 4, GFP_KERNEL); |
len | 543 | drivers/net/slip.c | sl->buffsize = len; |
len | 788 | drivers/net/slip.c | slip_esc(unsigned char *s, unsigned char *d, int len) |
len | 806 | drivers/net/slip.c | while (len-- > 0) { |
len | 869 | drivers/net/slip.c | slip_esc6(unsigned char *s, unsigned char *d, int len) |
len | 889 | drivers/net/slip.c | for (i = 0; i < len; ++i) { |
len | 360 | drivers/net/znet.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 386 | drivers/net/znet.c | memcpy(zn.tx_cur, buf, skb->len); |
len | 559 | drivers/net/znet.c | skb->len = pkt_len; |
len | 1982 | drivers/scsi/53c7,8xx.c | size_t len; |
len | 1999 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
len | 2002 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "%08x\n", * (long *) bp->addr); |
len | 2004 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "\n"); |
len | 2006 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
len | 2007 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, len); |
len | 2019 | drivers/scsi/53c7,8xx.c | size_t len; |
len | 2079 | drivers/scsi/53c7,8xx.c | int i, j, error, len; |
len | 2100 | drivers/scsi/53c7,8xx.c | len = strlen (debugger_tokens[i].name); |
len | 2101 | drivers/scsi/53c7,8xx.c | if (!strncmp(input_buf, debugger_tokens[i].name, len)) |
len | 2108 | drivers/scsi/53c7,8xx.c | for (ptr = input_buf + len, j = 0; j < debugger_tokens[i].nargs && *ptr;) { |
len | 3633 | drivers/scsi/53c7,8xx.c | size_t len = strlen(buf); |
len | 3634 | drivers/scsi/53c7,8xx.c | debugger_kernel_write(host, buf, len); |
len | 3774 | drivers/scsi/53c7,8xx.c | int i, len; |
len | 3785 | drivers/scsi/53c7,8xx.c | ptr += len, i -= len) { |
len | 3787 | 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 = cmd->cmd_len; |
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 | 150 | drivers/scsi/aha1542.c | static int aha1542_out(unsigned int base, unchar *cmdp, int len) |
len | 154 | drivers/scsi/aha1542.c | if(len == 1) { |
len | 167 | drivers/scsi/aha1542.c | while (len--) |
len | 177 | drivers/scsi/aha1542.c | printk("aha1542_out failed(%d): ", len+1); aha1542_stat(); |
len | 183 | drivers/scsi/aha1542.c | static int aha1542_in(unsigned int base, unchar *cmdp, int len) |
len | 189 | drivers/scsi/aha1542.c | while (len--) |
len | 198 | drivers/scsi/aha1542.c | printk("aha1542_in failed(%d): ", len+1); aha1542_stat(); |
len | 205 | drivers/scsi/aha1542.c | static int aha1542_in1(unsigned int base, unchar *cmdp, int len) |
len | 211 | drivers/scsi/aha1542.c | while (len--) |
len | 285 | drivers/scsi/aha1542.c | int len; |
len | 318 | drivers/scsi/aha1542.c | len = 4; |
len | 321 | drivers/scsi/aha1542.c | while (len--) |
len | 242 | drivers/scsi/buslogic.c | size_t len) |
len | 246 | drivers/scsi/buslogic.c | if (len == 1) { |
len | 261 | drivers/scsi/buslogic.c | while (len--) { |
len | 270 | drivers/scsi/buslogic.c | buslogic_printk("failed(%u): ", len + 1); |
len | 278 | drivers/scsi/buslogic.c | static int buslogic_in(unsigned int base, unsigned char *cmdp, size_t len) |
len | 284 | drivers/scsi/buslogic.c | while (len--) { |
len | 293 | drivers/scsi/buslogic.c | buslogic_printk("failed(%u): ", len + 1); |
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 | 176 | drivers/scsi/eata.c | ushort len; /* Number of bytes following this field */ |
len | 370 | drivers/scsi/eata.c | config.len = (ushort) htons((ushort)510); |
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 | 1814 | drivers/scsi/scsi.c | void *scsi_malloc(unsigned int len) |
len | 1819 | drivers/scsi/scsi.c | if((len & 0x1ff) || len > 8192) |
len | 1824 | drivers/scsi/scsi.c | nbits = len >> 9; |
len | 1834 | drivers/scsi/scsi.c | printk("SMalloc: %d %x ",len, dma_malloc_buffer + (i << 13) + (j << 9)); |
len | 1843 | drivers/scsi/scsi.c | int scsi_free(void *obj, unsigned int len) |
len | 1850 | drivers/scsi/scsi.c | printk("Sfree %x %d\n",obj, len); |
len | 1861 | 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 | 42 | drivers/scsi/scsi_ioctl.c | if (len > slen) |
len | 43 | drivers/scsi/scsi_ioctl.c | len = slen + 1; |
len | 44 | drivers/scsi/scsi_ioctl.c | verify_area(VERIFY_WRITE, buffer, len); |
len | 45 | drivers/scsi/scsi_ioctl.c | memcpy_tofs (buffer, string, len); |
len | 578 | drivers/scsi/seagate.c | int len = 0; |
len | 707 | drivers/scsi/seagate.c | len=current_bufflen; /* WDE add */ |
len | 905 | drivers/scsi/seagate.c | len = buffer->length; |
len | 912 | drivers/scsi/seagate.c | len = SCint->request_bufflen; |
len | 917 | drivers/scsi/seagate.c | printk("scsi%d : len = %d\n", hostno, len); |
len | 1030 | drivers/scsi/seagate.c | if (!len) { |
len | 1040 | drivers/scsi/seagate.c | if (fast && transfersize && !(len % transfersize) && (len >= transfersize) |
len | 1048 | drivers/scsi/seagate.c | SCint->transfersize, len, data); |
len | 1070 | drivers/scsi/seagate.c | len -= transfersize; |
len | 1075 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1131 | drivers/scsi/seagate.c | "=S" (data), "=c" (len) : |
len | 1133 | drivers/scsi/seagate.c | "0" (data), "1" (len) : |
len | 1138 | drivers/scsi/seagate.c | if (!len && nobuffs) { |
len | 1141 | drivers/scsi/seagate.c | len = buffer->length; |
len | 1145 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1154 | drivers/scsi/seagate.c | transfered += len; |
len | 1156 | drivers/scsi/seagate.c | for (; len && (STATUS & (REQ_MASK | STAT_REQ)) == (REQ_DATAIN | |
len | 1157 | drivers/scsi/seagate.c | STAT_REQ); --len) { |
len | 1162 | drivers/scsi/seagate.c | transfered -= len; |
len | 1167 | drivers/scsi/seagate.c | if (fast && transfersize && !(len % transfersize) && (len >= transfersize) |
len | 1175 | drivers/scsi/seagate.c | SCint->transfersize, len, data); |
len | 1197 | drivers/scsi/seagate.c | len -= transfersize; |
len | 1207 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1215 | drivers/scsi/seagate.c | printk("scsi%d: transfered += %d\n", hostno, len); |
len | 1216 | drivers/scsi/seagate.c | transfered += len; /* Assume we'll transfer it all, then |
len | 1271 | drivers/scsi/seagate.c | "=D" (data), "=c" (len) : |
len | 1273 | drivers/scsi/seagate.c | "0" (data), "1" (len) : |
len | 1278 | drivers/scsi/seagate.c | printk("scsi%d: transfered -= %d\n", hostno, len); |
len | 1279 | drivers/scsi/seagate.c | transfered -= len; /* Since we assumed all of Len got |
len | 1284 | drivers/scsi/seagate.c | if (!len && nobuffs) { |
len | 1287 | drivers/scsi/seagate.c | len = buffer->length; |
len | 1291 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1358 | drivers/scsi/seagate.c | current_bufflen = len; /* WDE add */ |
len | 1390 | drivers/scsi/seagate.c | current_bufflen = len; /* WDE add */ |
len | 1401 | 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 | 162 | fs/binfmt_elf.c | unsigned int len; |
len | 232 | fs/binfmt_elf.c | len = (elf_bss + 0xfff) & 0xfffff000; /* What we have mapped so far */ |
len | 235 | fs/binfmt_elf.c | if (last_bss > len) |
len | 236 | fs/binfmt_elf.c | do_mmap(NULL, len, last_bss-len, |
len | 658 | fs/binfmt_elf.c | unsigned int len; |
len | 669 | fs/binfmt_elf.c | len = 0; |
len | 756 | fs/binfmt_elf.c | len = (elf_phdata->p_filesz + elf_phdata->p_vaddr+ 0xfff) & 0xfffff000; |
len | 758 | fs/binfmt_elf.c | if (bss > len) |
len | 759 | fs/binfmt_elf.c | do_mmap(NULL, len, bss-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 | 388 | fs/exec.c | int len, offset = 0; |
len | 404 | fs/exec.c | len=0; /* remember zero-padding */ |
len | 406 | fs/exec.c | len++; |
len | 408 | fs/exec.c | if (p < len) { /* this shouldn't happen - 128kB */ |
len | 412 | fs/exec.c | while (len) { |
len | 413 | fs/exec.c | --p; --tmp; --len; |
len | 863 | fs/exec.c | unsigned int len; |
len | 903 | fs/exec.c | len = PAGE_ALIGN(ex.a_text + ex.a_data); |
len | 905 | fs/exec.c | if (bss > len) |
len | 906 | 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 | 58 | fs/ext/namei.c | if (!de || !de->inode || len > EXT_NAME_LEN) |
len | 61 | fs/ext/namei.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 63 | fs/ext/namei.c | if (len != de->name_len) |
len | 65 | fs/ext/namei.c | return !memcmp(name, de->name, len); |
len | 149 | fs/ext/namei.c | int ext_lookup(struct inode * dir,const char * name, int len, |
len | 163 | fs/ext/namei.c | if (!(bh = ext_find_entry(dir,name,len,&de,NULL,NULL))) { |
len | 302 | fs/ext/namei.c | int ext_create(struct inode * dir,const char * name, int len, int mode, |
len | 320 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 336 | fs/ext/namei.c | int ext_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
len | 344 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 379 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 395 | fs/ext/namei.c | int ext_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 401 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 446 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 523 | fs/ext/namei.c | int ext_rmdir(struct inode * dir, const char * name, int len) |
len | 531 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
len | 577 | fs/ext/namei.c | int ext_unlink(struct inode * dir, const char * name, int len) |
len | 586 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
len | 620 | fs/ext/namei.c | int ext_symlink(struct inode * dir, const char * name, int len, const char * symname) |
len | 650 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 659 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 675 | fs/ext/namei.c | int ext_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
len | 690 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 697 | 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 | 364 | fs/ext2/namei.c | int ext2_create (struct inode * dir,const char * name, int len, int mode, |
len | 383 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 405 | fs/ext2/namei.c | int ext2_mknod (struct inode * dir, const char * name, int len, int mode, |
len | 415 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 447 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 469 | fs/ext2/namei.c | int ext2_mkdir (struct inode * dir, const char * name, int len, int mode) |
len | 478 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 521 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 599 | fs/ext2/namei.c | int ext2_rmdir (struct inode * dir, const char * name, int len) |
len | 610 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 680 | fs/ext2/namei.c | int ext2_unlink (struct inode * dir, const char * name, int len) |
len | 692 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 741 | fs/ext2/namei.c | int ext2_symlink (struct inode * dir, const char * name, int len, |
len | 790 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 799 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 822 | fs/ext2/namei.c | const char * name, int len) |
len | 843 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 850 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 361 | fs/hpfs/hpfs.h | unsigned char len, name[15]; /* true length, truncated name */ |
len | 238 | fs/hpfs/hpfs_fs.c | static int zerop(void *addr, unsigned len); |
len | 246 | fs/hpfs/hpfs_fs.c | const unsigned char *name, unsigned len, |
len | 256 | fs/hpfs/hpfs_fs.c | static unsigned choose_conv(unsigned char *p, unsigned len); |
len | 258 | fs/hpfs/hpfs_fs.c | unsigned len); |
len | 532 | fs/hpfs/hpfs_fs.c | static int zerop(void *addr, unsigned len) |
len | 535 | fs/hpfs/hpfs_fs.c | return p[0] == 0 && memcmp(p, p + 1, len - 1) == 0; |
len | 947 | fs/hpfs/hpfs_fs.c | static unsigned choose_conv(unsigned char *p, unsigned len) |
len | 954 | fs/hpfs/hpfs_fs.c | while (len--) { |
len | 957 | fs/hpfs/hpfs_fs.c | if (c == '\r' && len && *p == '\n') |
len | 979 | fs/hpfs/hpfs_fs.c | unsigned len) |
len | 983 | fs/hpfs/hpfs_fs.c | while (len--) { |
len | 985 | fs/hpfs/hpfs_fs.c | if (c == '\r' && (len == 0 || *in == '\n')); |
len | 1104 | fs/hpfs/hpfs_fs.c | static int hpfs_lookup(struct inode *dir, const char *name, int len, |
len | 1125 | fs/hpfs/hpfs_fs.c | if (name[0] == '.' && len == 1) |
len | 1127 | fs/hpfs/hpfs_fs.c | else if (name[0] == '.' && name[1] == '.' && len == 2) |
len | 1132 | fs/hpfs/hpfs_fs.c | de = map_dirent(dir, dir->i_hpfs_dno, name, len, &qbh); |
len | 1231 | fs/hpfs/hpfs_fs.c | const unsigned char *name, unsigned len, |
len | 1260 | fs/hpfs/hpfs_fs.c | l = len < de->namelen ? len : de->namelen; |
len | 1267 | fs/hpfs/hpfs_fs.c | t = len - de->namelen; |
len | 1284 | 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 | 36 | fs/isofs/namei.c | if (!len) |
len | 45 | fs/isofs/namei.c | if (len <= 2) printk("Match: %d %d %s %d %d \n",len,dlen,compare,de->name[0], dlen); |
len | 48 | fs/isofs/namei.c | if (dlen != len) |
len | 50 | fs/isofs/namei.c | return !memcmp(name, compare, len); |
len | 219 | fs/isofs/namei.c | int isofs_lookup(struct inode * dir,const char * name, int len, |
len | 226 | fs/isofs/namei.c | printk("lookup: %x %d\n",dir->i_ino, len); |
len | 239 | fs/isofs/namei.c | if (dcache_lookup(dir, name, len, &ino)) ino_back = dir->i_ino; |
len | 242 | fs/isofs/namei.c | if (!(bh = isofs_find_entry(dir,name,len, &ino, &ino_back))) { |
len | 247 | 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 | 221 | fs/isofs/rock.c | if((strlen(retname) + rr->len - 5) >= 254) { |
len | 225 | fs/isofs/rock.c | strncat(retname, rr->u.NM.name, rr->len - 5); |
len | 226 | fs/isofs/rock.c | retnamlen += rr->len - 5; |
len | 255 | fs/isofs/rock.c | int len; |
len | 261 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(de, chr, len); |
len | 269 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 271 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 273 | fs/isofs/rock.c | chr += rr->len; |
len | 274 | fs/isofs/rock.c | len -= rr->len; |
len | 323 | fs/isofs/rock.c | slen = rr->len - 5; |
len | 330 | fs/isofs/rock.c | inode->i_size += slp->len; |
len | 345 | fs/isofs/rock.c | slen -= slp->len + 2; |
len | 346 | fs/isofs/rock.c | slp = (struct SL_component *) (((char *) slp) + slp->len + 2); |
len | 403 | fs/isofs/rock.c | int len; |
len | 445 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(raw_inode, chr, len); |
len | 448 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 451 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 453 | fs/isofs/rock.c | chr += rr->len; |
len | 454 | fs/isofs/rock.c | len -= rr->len; |
len | 466 | fs/isofs/rock.c | slen = rr->len - 5; |
len | 477 | fs/isofs/rock.c | strncat(rpnt,slp->text, slp->len); |
len | 492 | fs/isofs/rock.c | slen -= slp->len + 2; |
len | 493 | 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) |
len | 28 | fs/minix/namei.c | if (len < maxlen && buffer[len]) |
len | 30 | fs/minix/namei.c | return !memcmp(name, buffer, len); |
len | 40 | fs/minix/namei.c | static int minix_match(int len, const char * name, |
len | 48 | fs/minix/namei.c | if (!de->inode || len > info->s_namelen) |
len | 51 | fs/minix/namei.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 53 | fs/minix/namei.c | return namecompare(len,info->s_namelen,name,de->name); |
len | 107 | fs/minix/namei.c | int minix_lookup(struct inode * dir,const char * name, int len, |
len | 121 | fs/minix/namei.c | if (!(bh = minix_find_entry(dir,name,len,&de))) { |
len | 210 | fs/minix/namei.c | int minix_create(struct inode * dir,const char * name, int len, int mode, |
len | 229 | fs/minix/namei.c | error = minix_add_entry(dir,name,len, &bh ,&de); |
len | 245 | fs/minix/namei.c | int minix_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
len | 254 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 286 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
len | 302 | fs/minix/namei.c | int minix_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 315 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 353 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
len | 428 | fs/minix/namei.c | int minix_rmdir(struct inode * dir, const char * name, int len) |
len | 436 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 485 | fs/minix/namei.c | int minix_unlink(struct inode * dir, const char * name, int len) |
len | 495 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 539 | fs/minix/namei.c | int minix_symlink(struct inode * dir, const char * name, int len, const char * symname) |
len | 569 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 578 | fs/minix/namei.c | i = minix_add_entry(dir, name, len, &bh, &de); |
len | 594 | fs/minix/namei.c | int minix_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
len | 610 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 617 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
len | 37 | fs/msdos/namei.c | static int msdos_format_name(char conv,const char *name,int len,char *res, |
len | 45 | fs/msdos/namei.c | if (name[0] == '.' && (len == 1 || (len == 2 && name[1] == '.'))) { |
len | 48 | fs/msdos/namei.c | while (len--) *res++ = '.'; |
len | 53 | fs/msdos/namei.c | for (walk = res; len && walk-res < 8; walk++) { |
len | 55 | fs/msdos/namei.c | len--; |
len | 65 | fs/msdos/namei.c | if (conv == 's' && len && c != '.') { |
len | 67 | fs/msdos/namei.c | len--; |
len | 70 | fs/msdos/namei.c | while (c != '.' && len--) c = *name++; |
len | 73 | fs/msdos/namei.c | while (len > 0 && walk-res < MSDOS_NAME) { |
len | 75 | fs/msdos/namei.c | len--; |
len | 86 | fs/msdos/namei.c | if (conv == 's' && len) return -EINVAL; |
len | 97 | fs/msdos/namei.c | static int msdos_find(struct inode *dir,const char *name,int len, |
len | 103 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
len | 109 | fs/msdos/namei.c | int msdos_lookup(struct inode *dir,const char *name,int len, |
len | 127 | fs/msdos/namei.c | if (len == 1 && name[0] == '.') { |
len | 131 | fs/msdos/namei.c | if (len == 2 && name[0] == '.' && name[1] == '.') { |
len | 139 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) { |
len | 213 | fs/msdos/namei.c | int msdos_create(struct inode *dir,const char *name,int len,int mode, |
len | 223 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
len | 262 | fs/msdos/namei.c | int msdos_mkdir(struct inode *dir,const char *name,int len,int mode) |
len | 271 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
len | 313 | fs/msdos/namei.c | if (msdos_rmdir(dir,name,len) < 0) |
len | 346 | fs/msdos/namei.c | int msdos_rmdir(struct inode *dir,const char *name,int len) |
len | 357 | fs/msdos/namei.c | if (name[0] == '.' && (len == 1 || (len == 2 && name[1] == '.'))) |
len | 359 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done; |
len | 387 | fs/msdos/namei.c | int len, |
len | 398 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) |
len | 421 | fs/msdos/namei.c | int msdos_unlink(struct inode *dir,const char *name,int len) |
len | 423 | fs/msdos/namei.c | return msdos_unlinkx (dir,name,len,1); |
len | 428 | fs/msdos/namei.c | int msdos_unlink_umsdos(struct inode *dir,const char *name,int len) |
len | 430 | fs/msdos/namei.c | return msdos_unlinkx (dir,name,len,0); |
len | 157 | fs/namei.c | int lookup(struct inode * dir,const char * name, int len, |
len | 168 | fs/namei.c | if (len==2 && name[0] == '.' && name[1] == '.') { |
len | 189 | fs/namei.c | if (!len) { |
len | 193 | fs/namei.c | return dir->i_op->lookup(dir,name,len,result); |
len | 224 | fs/namei.c | int len,error; |
len | 240 | fs/namei.c | for(len=0;(c = *(pathname++))&&(c != '/');len++) |
len | 245 | fs/namei.c | error = lookup(base,thisname,len,&inode); |
len | 259 | fs/namei.c | *namelen = len; |
len | 27 | fs/nfs/dir.c | static int nfs_lookup(struct inode *dir, const char *name, int len, |
len | 29 | fs/nfs/dir.c | static int nfs_create(struct inode *dir, const char *name, int len, int mode, |
len | 31 | fs/nfs/dir.c | static int nfs_mkdir(struct inode *dir, const char *name, int len, int mode); |
len | 32 | fs/nfs/dir.c | static int nfs_rmdir(struct inode *dir, const char *name, int len); |
len | 33 | fs/nfs/dir.c | static int nfs_unlink(struct inode *dir, const char *name, int len); |
len | 34 | fs/nfs/dir.c | static int nfs_symlink(struct inode *inode, const char *name, int len, |
len | 37 | fs/nfs/dir.c | const char *name, int len); |
len | 38 | fs/nfs/dir.c | static int nfs_mknod(struct inode *dir, const char *name, int len, int mode, |
len | 290 | fs/nfs/dir.c | static int nfs_lookup(struct inode *dir, const char *__name, int len, |
len | 295 | fs/nfs/dir.c | char name[len > NFS_MAXNAMLEN? 1 : len+1]; |
len | 304 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 308 | fs/nfs/dir.c | memcpy(name,__name,len); |
len | 309 | fs/nfs/dir.c | name[len] = '\0'; |
len | 310 | fs/nfs/dir.c | if (len == 1 && name[0] == '.') { /* cheat for "." */ |
len | 331 | fs/nfs/dir.c | static int nfs_create(struct inode *dir, const char *name, int len, int mode, |
len | 345 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 366 | fs/nfs/dir.c | static int nfs_mknod(struct inode *dir, const char *name, int len, |
len | 379 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 398 | fs/nfs/dir.c | static int nfs_mkdir(struct inode *dir, const char *name, int len, int mode) |
len | 410 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 425 | fs/nfs/dir.c | static int nfs_rmdir(struct inode *dir, const char *name, int len) |
len | 434 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 445 | fs/nfs/dir.c | static int nfs_unlink(struct inode *dir, const char *name, int len) |
len | 454 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 465 | fs/nfs/dir.c | static int nfs_symlink(struct inode *dir, const char *name, int len, |
len | 476 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 494 | fs/nfs/dir.c | const char *name, int len) |
len | 510 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 68 | fs/nfs/file.c | int len; /* size of data */ |
len | 121 | fs/nfs/file.c | && (cache[i].file_pos + cache[i].len >= pos + count) |
len | 179 | fs/nfs/file.c | cache[tail].len = result; |
len | 97 | fs/nfs/proc.c | #define QUADLEN(len) (((len) + 3) >> 2) |
len | 113 | fs/nfs/proc.c | int len = strlen(string); |
len | 114 | fs/nfs/proc.c | int quadlen = QUADLEN(len); |
len | 117 | fs/nfs/proc.c | *p++ = htonl(len); |
len | 118 | fs/nfs/proc.c | memcpy(p, string, len); |
len | 124 | fs/nfs/proc.c | unsigned int len = ntohl(*p++); |
len | 125 | fs/nfs/proc.c | if (len > maxlen) |
len | 127 | fs/nfs/proc.c | memcpy(string, p, len); |
len | 128 | fs/nfs/proc.c | string[len] = '\0'; |
len | 129 | fs/nfs/proc.c | return p + QUADLEN(len); |
len | 132 | fs/nfs/proc.c | static inline int *xdr_decode_string2(int *p, char **string, unsigned int *len, |
len | 135 | fs/nfs/proc.c | *len = ntohl(*p++); |
len | 136 | fs/nfs/proc.c | if (*len > maxlen) |
len | 139 | fs/nfs/proc.c | return p + QUADLEN(*len); |
len | 143 | fs/nfs/proc.c | static inline int *xdr_encode_data(int *p, char *data, int len) |
len | 145 | fs/nfs/proc.c | int quadlen = QUADLEN(len); |
len | 148 | fs/nfs/proc.c | *p++ = htonl(len); |
len | 149 | fs/nfs/proc.c | memcpy_fromfs(p, data, len); |
len | 156 | fs/nfs/proc.c | unsigned len = *lenp = ntohl(*p++); |
len | 157 | fs/nfs/proc.c | if (len > maxlen) |
len | 160 | fs/nfs/proc.c | memcpy_tofs(data, p, len); |
len | 162 | fs/nfs/proc.c | memcpy(data, p, len); |
len | 163 | fs/nfs/proc.c | return p + QUADLEN(len); |
len | 341 | fs/nfs/proc.c | int **p0, char **string, unsigned int *len, unsigned int maxlen) |
len | 357 | fs/nfs/proc.c | if (!(p = xdr_decode_string2(p, string, len, maxlen))) { |
len | 381 | fs/nfs/proc.c | int len; |
len | 400 | fs/nfs/proc.c | if (!(p = xdr_decode_data(p, data, &len, count, fs))) { |
len | 405 | fs/nfs/proc.c | status = len; |
len | 406 | fs/nfs/proc.c | PRINTK("NFS reply read %d\n", len); |
len | 59 | fs/nfs/sock.c | int len; |
len | 76 | fs/nfs/sock.c | len = ((char *) end) - ((char *) start); |
len | 104 | fs/nfs/sock.c | result = sock->ops->send(sock, (void *) start, len, 0, 0); |
len | 50 | fs/nfs/symlink.c | unsigned int len; |
len | 73 | fs/nfs/symlink.c | &res, &len, NFS_MAXPATHLEN); |
len | 83 | fs/nfs/symlink.c | memcpy(res2, res, len); |
len | 84 | fs/nfs/symlink.c | res2[len] = '\0'; |
len | 97 | fs/nfs/symlink.c | unsigned int len; |
len | 107 | fs/nfs/symlink.c | &res, &len, buflen); |
len | 110 | fs/nfs/symlink.c | memcpy_tofs(buffer, res, len); |
len | 111 | fs/nfs/symlink.c | put_fs_byte('\0', buffer + len); |
len | 112 | fs/nfs/symlink.c | error = len; |
len | 175 | fs/proc/array.c | int i, len; |
len | 180 | fs/proc/array.c | len = sprintf(buffer, |
len | 200 | fs/proc/array.c | len += sprintf(buffer + len, " %u", kstat.interrupts[i]); |
len | 201 | fs/proc/array.c | len += sprintf(buffer + len, |
len | 206 | 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 | 75 | fs/proc/base.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 77 | fs/proc/base.c | if (de->namelen != len) |
len | 79 | fs/proc/base.c | return !memcmp(name, de->name, len); |
len | 82 | fs/proc/base.c | static int proc_lookupbase(struct inode * dir,const char * name, int len, |
len | 98 | 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 | 72 | fs/proc/fd.c | if (!len || (name[0] == '.' && (len == 1 || |
len | 73 | fs/proc/fd.c | (name[1] == '.' && len == 2)))) { |
len | 74 | fs/proc/fd.c | if (len < 2) { |
len | 87 | fs/proc/fd.c | while (len-- > 0) { |
len | 152 | fs/proc/net.c | static int proc_lookupnet(struct inode * dir,const char * name, int len, |
len | 165 | fs/proc/net.c | if (!proc_match(len, name, de)) |
len | 82 | fs/proc/root.c | static int proc_lookuproot(struct inode * dir,const char * name, int len, |
len | 96 | fs/proc/root.c | while (i-- > 0 && !proc_match(len,name,root_dir+i)) |
len | 108 | fs/proc/root.c | while (len-- > 0) { |
len | 99 | fs/super.c | int err, len; |
len | 108 | fs/super.c | len = strlen(tmp->name) + 1; |
len | 109 | fs/super.c | err = verify_area(VERIFY_WRITE, buf, len); |
len | 112 | fs/super.c | memcpy_tofs(buf, tmp->name, len); |
len | 157 | fs/super.c | int len = 0; |
len | 161 | fs/super.c | while (tmp && len < PAGE_SIZE - 80) { |
len | 162 | fs/super.c | len += sprintf(buf+len, "%s\t%s\n", |
len | 167 | 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) |
len | 30 | fs/sysv/namei.c | if (len < maxlen && buffer[len]) |
len | 32 | fs/sysv/namei.c | return !memcmp(name, buffer, len); |
len | 42 | fs/sysv/namei.c | static int sysv_match(int len, const char * name, struct sysv_dir_entry * de) |
len | 44 | fs/sysv/namei.c | if (!de->inode || len > SYSV_NAMELEN) |
len | 47 | fs/sysv/namei.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 49 | fs/sysv/namei.c | return namecompare(len,SYSV_NAMELEN,name,de->name); |
len | 103 | fs/sysv/namei.c | int sysv_lookup(struct inode * dir,const char * name, int len, |
len | 117 | fs/sysv/namei.c | if (!(bh = sysv_find_entry(dir,name,len,&de))) { |
len | 203 | fs/sysv/namei.c | int sysv_create(struct inode * dir,const char * name, int len, int mode, |
len | 222 | fs/sysv/namei.c | error = sysv_add_entry(dir,name,len, &bh ,&de); |
len | 238 | fs/sysv/namei.c | int sysv_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
len | 247 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 279 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
len | 295 | fs/sysv/namei.c | int sysv_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 306 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 344 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
len | 420 | fs/sysv/namei.c | int sysv_rmdir(struct inode * dir, const char * name, int len) |
len | 428 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 476 | fs/sysv/namei.c | int sysv_unlink(struct inode * dir, const char * name, int len) |
len | 486 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 529 | fs/sysv/namei.c | int sysv_symlink(struct inode * dir, const char * name, int len, const char * symname) |
len | 564 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 573 | fs/sysv/namei.c | i = sysv_add_entry(dir, name, len, &bh, &de); |
len | 589 | fs/sysv/namei.c | int sysv_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
len | 605 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 612 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
len | 158 | fs/umsdos/dir.c | ,info.fake.len,&inode); |
len | 484 | fs/umsdos/dir.c | int len) |
len | 494 | fs/umsdos/dir.c | && len == 3 |
len | 504 | fs/umsdos/dir.c | int len, |
len | 511 | fs/umsdos/dir.c | if (len == 1 && name[0] == '.'){ |
len | 515 | fs/umsdos/dir.c | }else if (len == 2 && name[0] == '.' && name[1] == '.'){ |
len | 547 | fs/umsdos/dir.c | }else if (umsdos_is_pseudodos(dir,name,len)){ |
len | 557 | fs/umsdos/dir.c | ret = umsdos_parse (name,len,&info); |
len | 560 | fs/umsdos/dir.c | ,info.fake.len)); |
len | 572 | fs/umsdos/dir.c | ret = umsdos_real_lookup (dir,info.fake.fname,info.fake.len,result); |
len | 613 | fs/umsdos/dir.c | int len, |
len | 616 | fs/umsdos/dir.c | return umsdos_lookup_x(dir,name,len,result,0); |
len | 645 | fs/umsdos/dir.c | int len; |
len | 647 | fs/umsdos/dir.c | len = (int)(pt - start); |
len | 651 | fs/umsdos/dir.c | ret = msdos_lookup(dir,start,len,result); |
len | 653 | fs/umsdos/dir.c | ret = umsdos_lookup_x(dir,start,len,result,1); |
len | 77 | fs/umsdos/inode.c | int len, |
len | 82 | 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 | 254 | fs/umsdos/mangle.c | || (firstpt == NULL && len > 8) |
len | 255 | fs/umsdos/mangle.c | || (len == UMSDOS_EMD_NAMELEN |
len | 303 | fs/umsdos/mangle.c | base_len = firstpt != NULL ? (int)(firstpt - fname) : len; |
len | 372 | fs/umsdos/mangle.c | info->fake.len = msdos_len; |
len | 374 | fs/umsdos/mangle.c | memcpy (info->entry.name,fname,len); |
len | 375 | fs/umsdos/mangle.c | info->entry.name_len = len; |
len | 381 | 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 | 546 | fs/umsdos/namei.c | }else if ((ret = umsdos_nevercreat(dir,name,len,-EPERM))==0){ |
len | 596 | fs/umsdos/namei.c | ret = umsdos_symlink_x (dir,name,len |
len | 613 | fs/umsdos/namei.c | ret = umsdos_symlink_x (dir,name,len,path |
len | 646 | fs/umsdos/namei.c | int len, /* Length of the name */ |
len | 651 | fs/umsdos/namei.c | return umsdos_create_any (dir,name,len,mode,0,0,result); |
len | 659 | fs/umsdos/namei.c | int len, |
len | 662 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EEXIST); |
len | 665 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
len | 682 | fs/umsdos/namei.c | ret = msdos_mkdir (dir,info.fake.fname,info.fake.len,mode); |
len | 698 | fs/umsdos/namei.c | ,info.fake.len,&subdir); |
len | 725 | fs/umsdos/namei.c | int len, |
len | 744 | fs/umsdos/namei.c | int ret = umsdos_create_any (dir,name,len,mode,rdev,0,&inode); |
len | 755 | fs/umsdos/namei.c | int len) |
len | 844 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EPERM); |
len | 848 | fs/umsdos/namei.c | ret = UMSDOS_lookup (dir,name,len,&sdir); |
len | 870 | fs/umsdos/namei.c | umsdos_parse (name,len,&info); |
len | 875 | fs/umsdos/namei.c | ,info.fake.len); |
len | 900 | fs/umsdos/namei.c | int len) |
len | 903 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EPERM); |
len | 905 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
len | 926 | fs/umsdos/namei.c | ret = UMSDOS_lookup (dir,name,len,&inode); |
len | 955 | fs/umsdos/namei.c | ,info.fake.len); |
len | 35 | fs/umsdos/rdir.c | int len = -1; |
len | 37 | fs/umsdos/rdir.c | if (ret > 0) len = get_fs_word(&dirent->d_reclen); |
len | 38 | fs/umsdos/rdir.c | if (len == 5 |
len | 50 | fs/umsdos/rdir.c | && len == 2 |
len | 68 | fs/umsdos/rdir.c | int len, |
len | 73 | fs/umsdos/rdir.c | && len == 2 |
len | 86 | fs/umsdos/rdir.c | ret = umsdos_real_lookup (dir,name,len,result); |
len | 111 | fs/umsdos/rdir.c | int len) |
len | 128 | fs/umsdos/rdir.c | if (umsdos_is_pseudodos(dir,name,len)){ |
len | 141 | fs/umsdos/rdir.c | ret = msdos_rmdir (dir,name,len); |
len | 145 | fs/umsdos/rdir.c | ret = UMSDOS_rlookup (dir,name,len,&sdir); |
len | 164 | 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 | 176 | include/asm-sparc/openprom.h | void (*pv_putstr)(char *str, int len); |
len | 191 | include/asm-sparc/openprom.h | void (*v0_eval)(int len, char *str); |
len | 300 | include/asm-sparc/openprom.h | int (*no_setprop)(int node, char* name, char* val, int len); |
len | 146 | include/asm-sparc/string.h | extern __inline__ char *strncat(char *dest, const char *src, size_t len) |
len | 164 | include/asm-sparc/string.h | "r" (dest), "r" (src), "r" (len), "r" (temp=0)); |
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 | 34 | include/linux/ip.h | __u8 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 | 84 | include/linux/minix_fs.h | extern int minix_lookup(struct inode * dir,const char * name, int len, |
len | 86 | include/linux/minix_fs.h | extern int minix_create(struct inode * dir,const char * name, int len, int mode, |
len | 88 | include/linux/minix_fs.h | extern int minix_mkdir(struct inode * dir, const char * name, int len, int mode); |
len | 89 | include/linux/minix_fs.h | extern int minix_rmdir(struct inode * dir, const char * name, int len); |
len | 90 | include/linux/minix_fs.h | extern int minix_unlink(struct inode * dir, const char * name, int len); |
len | 91 | include/linux/minix_fs.h | extern int minix_symlink(struct inode * inode, const char * name, int len, |
len | 93 | include/linux/minix_fs.h | extern int minix_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
len | 94 | include/linux/minix_fs.h | extern int minix_mknod(struct inode * dir, const char * name, int len, int mode, int rdev); |
len | 202 | include/linux/mm.h | extern int do_mmap(struct file * file, unsigned long addr, unsigned long len, |
len | 146 | include/linux/msdos_fs.h | extern int msdos_lookup(struct inode *dir,const char *name,int len, |
len | 148 | include/linux/msdos_fs.h | extern int msdos_create(struct inode *dir,const char *name,int len,int mode, |
len | 150 | include/linux/msdos_fs.h | extern int msdos_mkdir(struct inode *dir,const char *name,int len,int mode); |
len | 151 | include/linux/msdos_fs.h | extern int msdos_rmdir(struct inode *dir,const char *name,int len); |
len | 152 | include/linux/msdos_fs.h | extern int msdos_unlink(struct inode *dir,const char *name,int len); |
len | 153 | include/linux/msdos_fs.h | extern int msdos_unlink_umsdos(struct inode *dir,const char *name,int len); |
len | 110 | include/linux/net.h | int (*listen) (struct socket *sock, int len); |
len | 111 | include/linux/net.h | int (*send) (struct socket *sock, void *buff, int len, int nonblock, |
len | 113 | include/linux/net.h | int (*recv) (struct socket *sock, void *buff, int len, int nonblock, |
len | 115 | include/linux/net.h | int (*sendto) (struct socket *sock, void *buff, int len, int nonblock, |
len | 117 | include/linux/net.h | int (*recvfrom) (struct socket *sock, void *buff, int len, int nonblock, |
len | 147 | include/linux/netdevice.h | unsigned len, |
len | 206 | include/linux/netdevice.h | extern int dev_rint(unsigned char *buff, long len, int flags, |
len | 60 | include/linux/nfs_fs.h | int **p0, char **string, unsigned int *len, |
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 | 61 | 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 | 364 | include/linux/sysv_fs.h | extern int sysv_lookup(struct inode * dir,const char * name, int len, |
len | 366 | include/linux/sysv_fs.h | extern int sysv_create(struct inode * dir,const char * name, int len, int mode, |
len | 368 | include/linux/sysv_fs.h | extern int sysv_mkdir(struct inode * dir, const char * name, int len, int mode); |
len | 369 | include/linux/sysv_fs.h | extern int sysv_rmdir(struct inode * dir, const char * name, int len); |
len | 370 | include/linux/sysv_fs.h | extern int sysv_unlink(struct inode * dir, const char * name, int len); |
len | 371 | include/linux/sysv_fs.h | extern int sysv_symlink(struct inode * inode, const char * name, int len, |
len | 373 | include/linux/sysv_fs.h | extern int sysv_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
len | 374 | 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 | 343 | init/main.c | int len = strlen(devnames[n]); |
len | 344 | init/main.c | if (!strncmp(line,devnames[n],len)) { |
len | 345 | init/main.c | ROOT_DEV = devnums[n]+simple_strtoul(line+len,NULL,0); |
len | 386 | init/main.c | int len = 0; |
len | 402 | init/main.c | if (COMMAND_LINE_SIZE <= ++len) |
len | 59 | kernel/dma.c | int i, len = 0; |
len | 63 | kernel/dma.c | len += sprintf(buf+len, "%2d: %s\n", |
len | 68 | kernel/dma.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 < 1 || len > 8) |
len | 134 | kernel/printk.c | console_loglevel = len; |
len | 639 | kernel/sys.c | asmlinkage int sys_sethostname(char *name, int len) |
len | 645 | kernel/sys.c | if (len > __NEW_UTS_LEN) |
len | 647 | kernel/sys.c | for (i=0; i < len; i++) { |
len | 659 | kernel/sys.c | asmlinkage int sys_setdomainname(char *name, int len) |
len | 665 | kernel/sys.c | if (len > __NEW_UTS_LEN) |
len | 667 | kernel/sys.c | for (i=0; i < len; i++) { |
len | 136 | kernel/vsprintf.c | int len; |
len | 220 | kernel/vsprintf.c | len = strlen(s); |
len | 222 | kernel/vsprintf.c | precision = len; |
len | 223 | kernel/vsprintf.c | else if (len > precision) |
len | 224 | kernel/vsprintf.c | len = precision; |
len | 227 | kernel/vsprintf.c | while (len < field_width--) |
len | 229 | kernel/vsprintf.c | for (i = 0; i < len; ++i) |
len | 231 | kernel/vsprintf.c | while (len < field_width--) |
len | 136 | mm/filemap.c | static void file_mmap_unmap(struct vm_area_struct *vma, unsigned long start, size_t len) |
len | 139 | mm/filemap.c | file_mmap_sync(vma, start, len, MS_ASYNC); |
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 | 87 | mm/mmap.c | if (len > TASK_SIZE || addr > TASK_SIZE - len) |
len | 90 | mm/mmap.c | addr = get_unmapped_area(len); |
len | 118 | mm/mmap.c | vma->vm_end = addr + len; |
len | 138 | mm/mmap.c | do_munmap(addr, len); /* Clear old maps */ |
len | 159 | mm/mmap.c | unsigned long get_unmapped_area(unsigned long len) |
len | 171 | mm/mmap.c | if ((gap_start <= gap_end) && (gap_end - gap_start >= len)) |
len | 221 | mm/mmap.c | unsigned long addr, size_t len) |
len | 224 | mm/mmap.c | unsigned long end = addr + len; |
len | 285 | mm/mmap.c | asmlinkage int sys_munmap(unsigned long addr, size_t len) |
len | 287 | mm/mmap.c | return do_munmap(addr, len); |
len | 296 | mm/mmap.c | int do_munmap(unsigned long addr, size_t len) |
len | 300 | mm/mmap.c | if ((addr & ~PAGE_MASK) || addr > TASK_SIZE || len > TASK_SIZE-addr) |
len | 303 | mm/mmap.c | if ((len = PAGE_ALIGN(len)) == 0) |
len | 315 | mm/mmap.c | unsigned long end = addr+len; |
len | 347 | mm/mmap.c | end = addr+len; |
len | 357 | mm/mmap.c | unmap_page_range(addr, len); |
len | 175 | mm/mprotect.c | asmlinkage int sys_mprotect(unsigned long start, size_t len, unsigned long prot) |
len | 183 | mm/mprotect.c | len = (len + ~PAGE_MASK) & PAGE_MASK; |
len | 184 | mm/mprotect.c | end = start + len; |
len | 481 | net/inet/af_inet.c | static void def_callback2(struct sock *sk,int len) |
len | 319 | net/inet/arp.c | skb->len = sizeof(struct arphdr) + dev->hard_header_len + 2*(dev->addr_len+4); |
len | 328 | 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 | 930 | net/inet/arp.c | int len=0; |
len | 942 | net/inet/arp.c | len+=size; |
len | 970 | net/inet/arp.c | size = sprintf(buffer+len, |
len | 976 | net/inet/arp.c | size += sprintf(buffer+len+size, |
len | 981 | net/inet/arp.c | len+=size; |
len | 982 | net/inet/arp.c | pos=begin+len; |
len | 986 | net/inet/arp.c | len=0; |
len | 996 | net/inet/arp.c | len-=(offset-begin); /* Start slop */ |
len | 997 | net/inet/arp.c | if(len>length) |
len | 998 | net/inet/arp.c | len=length; /* Ending slop */ |
len | 999 | net/inet/arp.c | return len; |
len | 490 | net/inet/dev.c | int dev_rint(unsigned char *buff, long len, int flags, struct device *dev) |
len | 498 | net/inet/dev.c | if (dev == NULL || buff == NULL || len <= 0) |
len | 515 | net/inet/dev.c | skb = alloc_skb(len, GFP_ATOMIC); |
len | 530 | net/inet/dev.c | left = len; |
len | 532 | net/inet/dev.c | len2 = len; |
len | 551 | net/inet/dev.c | skb->len = len; |
len | 661 | net/inet/dev.c | skb->len -= skb->dev->hard_header_len; |
len | 813 | net/inet/dev.c | int len; |
len | 824 | net/inet/dev.c | len = ifc.ifc_len; |
len | 832 | net/inet/dev.c | err=verify_area(VERIFY_WRITE,pos,len); |
len | 855 | net/inet/dev.c | len -= sizeof(struct ifreq); |
len | 861 | net/inet/dev.c | if (len < sizeof(struct ifreq)) |
len | 916 | net/inet/dev.c | int len=0; |
len | 928 | net/inet/dev.c | len+=size; |
len | 933 | net/inet/dev.c | size = sprintf_stats(buffer+len, dev); |
len | 934 | net/inet/dev.c | len+=size; |
len | 935 | net/inet/dev.c | pos=begin+len; |
len | 939 | net/inet/dev.c | len=0; |
len | 947 | net/inet/dev.c | len-=(offset-begin); /* Start slop */ |
len | 948 | net/inet/dev.c | if(len>length) |
len | 949 | net/inet/dev.c | len=length; /* Ending slop */ |
len | 950 | net/inet/dev.c | return len; |
len | 85 | net/inet/eth.c | void *daddr, void *saddr, unsigned len, |
len | 98 | net/inet/eth.c | eth->h_proto = htons(len); |
len | 29 | net/inet/eth.h | unsigned long saddr, unsigned len); |
len | 103 | net/inet/icmp.c | int len; |
len | 192 | net/inet/icmp.c | len = dev->hard_header_len + sizeof(struct iphdr) + sizeof(struct icmphdr) + |
len | 195 | net/inet/icmp.c | skb = (struct sk_buff *) alloc_skb(len, GFP_ATOMIC); |
len | 211 | net/inet/icmp.c | &ndev, IPPROTO_ICMP, NULL, len, |
len | 225 | net/inet/icmp.c | skb->len = offset + sizeof(struct icmphdr) + sizeof(struct iphdr) + 8; |
len | 384 | net/inet/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
len | 395 | net/inet/icmp.c | size = dev->hard_header_len + 64 + len; |
len | 408 | net/inet/icmp.c | IPPROTO_ICMP, opt, len, skb->ip_hdr->tos,255); |
len | 422 | net/inet/icmp.c | skb2->len = offset + len; |
len | 428 | net/inet/icmp.c | memcpy((char *) icmphr, (char *) icmph, len); |
len | 432 | net/inet/icmp.c | icmphr->checksum = ip_compute_csum((unsigned char *)icmphr, len); |
len | 451 | net/inet/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
len | 460 | net/inet/icmp.c | if (len != 20) |
len | 464 | net/inet/icmp.c | len); |
len | 468 | net/inet/icmp.c | if (len < 12) |
len | 488 | net/inet/icmp.c | offset = ip_build_header(skb2, daddr, saddr, &ndev, IPPROTO_ICMP, opt, len, |
len | 502 | net/inet/icmp.c | skb2->len = offset + 20; |
len | 540 | net/inet/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
len | 553 | net/inet/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
len | 564 | net/inet/icmp.c | size = dev->hard_header_len + 64 + len; |
len | 579 | net/inet/icmp.c | IPPROTO_ICMP, opt, len, skb->ip_hdr->tos,255); |
len | 593 | net/inet/icmp.c | skb2->len = offset + len; |
len | 607 | net/inet/icmp.c | icmphr->checksum = ip_compute_csum((unsigned char *)icmphr, len); |
len | 622 | net/inet/icmp.c | unsigned long daddr, unsigned short len, |
len | 647 | net/inet/icmp.c | if (ip_compute_csum((unsigned char *) icmph, len)) |
len | 691 | net/inet/icmp.c | icmp_echo(icmph, skb1, dev, saddr, daddr, len, opt); |
len | 699 | net/inet/icmp.c | icmp_timestamp(icmph, skb1, dev, saddr, daddr, len, opt); |
len | 707 | net/inet/icmp.c | icmp_info(icmph, skb1, dev, saddr, daddr, len, opt); |
len | 715 | 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 | 91 | net/inet/igmp.c | skb->len=tmp+sizeof(*igh); |
len | 193 | net/inet/igmp.c | unsigned long daddr, unsigned short len, unsigned long saddr, int redo, |
len | 194 | net/inet/ip.c | static int ip_send(struct sk_buff *skb, unsigned long daddr, int len, struct device *dev, unsigned long saddr) |
len | 206 | net/inet/ip.c | mac = dev->hard_header(skb->data, dev, ETH_P_IP, NULL, NULL, len, skb); |
len | 226 | net/inet/ip.c | struct device **dev, int type, struct options *opt, int len, int tos, int ttl) |
len | 304 | net/inet/ip.c | tmp = ip_send(skb, raddr, len, *dev, saddr); |
len | 306 | net/inet/ip.c | len -= tmp; |
len | 358 | net/inet/ip.c | int i, len = sizeof(struct iphdr); |
len | 376 | net/inet/ip.c | while (!done && len < iph->ihl*4) switch(*buff) { |
len | 382 | net/inet/ip.c | len++; |
len | 396 | net/inet/ip.c | len += 11; |
len | 401 | net/inet/ip.c | len += *buff; |
len | 418 | net/inet/ip.c | len += *buff; |
len | 435 | net/inet/ip.c | len += *buff; |
len | 450 | net/inet/ip.c | len += 4; |
len | 457 | net/inet/ip.c | len += *buff; |
len | 459 | net/inet/ip.c | opt->tstamp.len = *buff / 4 - 1; |
len | 466 | net/inet/ip.c | for (i = 0; i < opt->tstamp.len; i++) { |
len | 534 | net/inet/ip.c | unsigned short ip_compute_csum(unsigned char * buff, int len) |
len | 539 | net/inet/ip.c | if (len > 3) |
len | 552 | net/inet/ip.c | : "0" (sum), "c" (len >> 2) ,"1" (buff) |
len | 555 | net/inet/ip.c | if (len & 2) |
len | 564 | net/inet/ip.c | if (len & 1) |
len | 626 | net/inet/ip.c | fp->len = end - offset; |
len | 800 | net/inet/ip.c | qp->len = 0; |
len | 834 | net/inet/ip.c | if (qp->len == 0) |
len | 868 | net/inet/ip.c | int count, len; |
len | 874 | net/inet/ip.c | len = qp->maclen + qp->ihlen + qp->len; |
len | 876 | net/inet/ip.c | if ((skb = alloc_skb(len,GFP_ATOMIC)) == NULL) |
len | 885 | net/inet/ip.c | skb->len = (len - qp->maclen); |
len | 903 | net/inet/ip.c | if(count+fp->len > skb->len) |
len | 911 | net/inet/ip.c | memcpy((ptr + fp->offset), fp->ptr, fp->len); |
len | 912 | net/inet/ip.c | count += fp->len; |
len | 1008 | net/inet/ip.c | qp->len = end; |
len | 1048 | net/inet/ip.c | next->len -= i; /* so reduce size of */ |
len | 1056 | net/inet/ip.c | if (next->len <= 0) |
len | 1132 | net/inet/ip.c | int left, mtu, hlen, len; |
len | 1201 | net/inet/ip.c | len = left; |
len | 1203 | net/inet/ip.c | if (len > mtu) |
len | 1204 | net/inet/ip.c | len = mtu; |
len | 1207 | net/inet/ip.c | if (len < left) |
len | 1209 | net/inet/ip.c | len/=8; |
len | 1210 | net/inet/ip.c | len*=8; |
len | 1216 | net/inet/ip.c | if ((skb2 = alloc_skb(len + hlen,GFP_ATOMIC)) == NULL) |
len | 1231 | net/inet/ip.c | skb2->len = len + hlen; |
len | 1257 | net/inet/ip.c | memcpy(skb2->h.raw + hlen, ptr, len); |
len | 1258 | net/inet/ip.c | left -= len; |
len | 1273 | net/inet/ip.c | ptr += len; |
len | 1274 | net/inet/ip.c | offset += len; |
len | 1420 | net/inet/ip.c | skb2 = alloc_skb(dev2->hard_header_len + skb->len, GFP_ATOMIC); |
len | 1432 | net/inet/ip.c | skb2->len = skb->len + dev2->hard_header_len; |
len | 1438 | net/inet/ip.c | memcpy(ptr + dev2->hard_header_len, skb->h.raw, skb->len); |
len | 1441 | net/inet/ip.c | (void) ip_send(skb2, raddr, skb->len, dev2, dev2->pa_addr); |
len | 1451 | net/inet/ip.c | if(skb2->len > dev2->mtu + dev2->hard_header_len) |
len | 1518 | 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 | 1544 | net/inet/ip.c | skb->len=ntohs(iph->tot_len); |
len | 1771 | net/inet/ip.c | int len=skb->len-old_dev->hard_header_len; |
len | 1772 | net/inet/ip.c | struct sk_buff *newskb=alloc_skb(len+dev->hard_header_len, GFP_ATOMIC); |
len | 1787 | net/inet/ip.c | newskb->len=len+dev->hard_header_len; |
len | 1790 | net/inet/ip.c | newskb->ip_hdr=(struct iphdr *)(newskb->data+ip_send(newskb, skb->ip_hdr->daddr, len, dev, skb->ip_hdr->saddr)); |
len | 1791 | net/inet/ip.c | memcpy(newskb->ip_hdr,skb->ip_hdr,len); |
len | 1844 | net/inet/ip.c | iph->tot_len = ntohs(skb->len-dev->hard_header_len); |
len | 1867 | net/inet/ip.c | if(skb->len > dev->mtu + dev->hard_header_len) |
len | 2022 | net/inet/ip.c | int len=0; |
len | 2025 | net/inet/ip.c | len=sprintf(buffer,"Device : Multicast\n"); |
len | 2033 | net/inet/ip.c | len+=sprintf(buffer+len,"%-10s: %08lX\n", im->interface->name, im->multiaddr); |
len | 2034 | net/inet/ip.c | pos=begin+len; |
len | 2037 | net/inet/ip.c | len=0; |
len | 2046 | net/inet/ip.c | len-=(offset-begin); |
len | 2047 | net/inet/ip.c | if(len>length) |
len | 2048 | net/inet/ip.c | len=length; |
len | 2049 | net/inet/ip.c | return len; |
len | 2355 | net/inet/ip.c | int len; |
len | 2380 | net/inet/ip.c | len=strlen(sk->ip_mc_name); |
len | 2381 | net/inet/ip.c | err=verify_area(VERIFY_WRITE, optval, len); |
len | 2384 | net/inet/ip.c | put_fs_long(len,(unsigned long *) optlen); |
len | 2385 | net/inet/ip.c | memcpy_tofs((void *)optval,sk->ip_mc_name, len); |
len | 52 | net/inet/ip.h | int len; /* length of this fragment */ |
len | 63 | net/inet/ip.h | int len; /* total length of original datagram */ |
len | 84 | net/inet/ip.h | struct options *opt, int len, |
len | 86 | net/inet/ip.h | extern unsigned short ip_compute_csum(unsigned char * buff, int len); |
len | 712 | net/inet/ip_fw.c | struct ip_fw *check_ipfw_struct(struct ip_fw *frwl, int len) |
len | 715 | net/inet/ip_fw.c | if ( len != sizeof(struct ip_fw) ) |
len | 767 | net/inet/ip_fw.c | int ip_acct_ctl(int stage, void *m, int len) |
len | 785 | net/inet/ip_fw.c | if (!(frwl=check_ipfw_struct(m,len))) |
len | 812 | net/inet/ip_fw.c | int ip_fw_ctl(int stage, void *m, int len) |
len | 836 | net/inet/ip_fw.c | if ( len < sizeof(struct iphdr) + 2 * sizeof(unsigned short) ) |
len | 840 | net/inet/ip_fw.c | len,sizeof(struct ip) + 2 * sizeof(unsigned short)); |
len | 875 | net/inet/ip_fw.c | frwl=check_ipfw_struct(m,len); |
len | 914 | net/inet/ip_fw.c | int len=0; |
len | 917 | net/inet/ip_fw.c | len=sprintf(buffer,"Firewall Rules\n"); |
len | 925 | net/inet/ip_fw.c | len+=sprintf(buffer+len,"%08lX/%08lX->%08lX/%08lX %X ", |
len | 929 | net/inet/ip_fw.c | len+=sprintf(buffer+len,"%u %u %lu %lu ", |
len | 931 | net/inet/ip_fw.c | len+=sprintf(buffer+len,"%u %u %u %u %u %u %u %u %u %u\n", |
len | 935 | net/inet/ip_fw.c | pos=begin+len; |
len | 938 | net/inet/ip_fw.c | len=0; |
len | 947 | net/inet/ip_fw.c | len-=(offset-begin); |
len | 948 | net/inet/ip_fw.c | if(len>length) |
len | 949 | net/inet/ip_fw.c | len=length; |
len | 950 | net/inet/ip_fw.c | return len; |
len | 149 | net/inet/ipx.c | int len=0; |
len | 155 | net/inet/ipx.c | len += sprintf (buffer,"Type local_address rem_address tx_queue rx_queue st uid\n"); |
len | 158 | net/inet/ipx.c | len += sprintf (buffer+len,"%02X ", s->ipx_type); |
len | 159 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX:%02X%02X%02X%02X%02X%02X:%04X ", htonl(s->ipx_source_addr.net), |
len | 163 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX:%02X%02X%02X%02X%02X%02X:%04X ", htonl(s->ipx_dest_addr.net), |
len | 167 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX:%08lX ", s->wmem_alloc, s->rmem_alloc); |
len | 168 | net/inet/ipx.c | len += sprintf (buffer+len,"%02X %d\n", s->state, SOCK_INODE(s->socket)->i_uid); |
len | 171 | net/inet/ipx.c | pos=begin+len; |
len | 175 | net/inet/ipx.c | len=0; /* Keep dumping into the buffer start */ |
len | 184 | net/inet/ipx.c | len-=(offset-begin); /* Remove unwanted header data from length */ |
len | 185 | net/inet/ipx.c | if(len>length) |
len | 186 | net/inet/ipx.c | len=length; /* Remove unwanted tail data from length */ |
len | 188 | net/inet/ipx.c | return len; |
len | 439 | net/inet/ipx.c | int len=0; |
len | 443 | net/inet/ipx.c | len += sprintf (buffer,"Net Router Flags Dev\n"); |
len | 446 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX %08lX:%02X%02X%02X%02X%02X%02X %02X %s\n", ntohl(rt->net), |
len | 449 | net/inet/ipx.c | pos=begin+len; |
len | 452 | net/inet/ipx.c | len=0; |
len | 459 | net/inet/ipx.c | len-=(offset-begin); |
len | 460 | net/inet/ipx.c | if(len>length) |
len | 461 | net/inet/ipx.c | len=length; |
len | 462 | net/inet/ipx.c | return len; |
len | 568 | net/inet/ipx.c | static void def_callback2(struct sock *sk, int len) |
len | 889 | net/inet/ipx.c | incoming_size = skb->len - ntohs(ipx->ipx_pktsize); |
len | 904 | net/inet/ipx.c | skb2->len=ntohs(ipx->ipx_pktsize) + outgoing_size; |
len | 962 | net/inet/ipx.c | static int ipx_sendto(struct socket *sock, void *ubuf, int len, int noblock, |
len | 1029 | net/inet/ipx.c | size=sizeof(ipx_packet)+len; /* For mac headers */ |
len | 1065 | net/inet/ipx.c | skb->len=size; |
len | 1092 | net/inet/ipx.c | ipx->ipx_pktsize=htons(len+sizeof(ipx_packet)); |
len | 1103 | net/inet/ipx.c | memcpy_fromfs((char *)(ipx+1),ubuf,len); |
len | 1122 | net/inet/ipx.c | skb2=alloc_skb(skb->len, GFP_ATOMIC); |
len | 1126 | net/inet/ipx.c | skb2->len=skb->len; |
len | 1130 | net/inet/ipx.c | memcpy(skb2->data, skb->data, skb->len); |
len | 1135 | net/inet/ipx.c | return len; |
len | 1240 | 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 | 89 | net/inet/packet.c | skb->len += dev->hard_header_len; |
len | 121 | net/inet/packet.c | sk->data_ready(sk,skb->len); |
len | 139 | net/inet/packet.c | static int packet_sendto(struct sock *sk, unsigned char *from, int len, |
len | 182 | net/inet/packet.c | if(len>dev->mtu+dev->hard_header_len) |
len | 185 | net/inet/packet.c | skb = sk->prot->wmalloc(sk, len, 0, GFP_KERNEL); |
len | 203 | net/inet/packet.c | memcpy_fromfs(skb->data, from, len); |
len | 204 | net/inet/packet.c | skb->len = len; |
len | 215 | net/inet/packet.c | return(len); |
len | 224 | net/inet/packet.c | int len, int noblock, unsigned flags) |
len | 226 | net/inet/packet.c | return(packet_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
len | 283 | net/inet/packet.c | int packet_recvfrom(struct sock *sk, unsigned char *to, int len, |
len | 328 | net/inet/packet.c | truesize = skb->len; |
len | 329 | net/inet/packet.c | copied = min(len, truesize); |
len | 365 | net/inet/packet.c | int len, int noblock, unsigned flags) |
len | 367 | 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 %d\n", |
len | 108 | net/inet/proc.c | pos=begin+len; |
len | 111 | net/inet/proc.c | len=0; |
len | 123 | net/inet/proc.c | len-=(offset-begin); |
len | 124 | net/inet/proc.c | if(len>length) |
len | 125 | net/inet/proc.c | len=length; |
len | 126 | net/inet/proc.c | return len; |
len | 156 | net/inet/proc.c | int len; |
len | 161 | net/inet/proc.c | len = sprintf (buffer, |
len | 175 | net/inet/proc.c | len += sprintf (buffer + len, |
len | 192 | net/inet/proc.c | len += sprintf (buffer + len, |
len | 202 | net/inet/proc.c | len += sprintf (buffer + len, |
len | 212 | net/inet/proc.c | if (offset >= len) |
len | 218 | net/inet/proc.c | len -= offset; |
len | 219 | net/inet/proc.c | if (len > length) |
len | 220 | net/inet/proc.c | len = length; |
len | 221 | 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 | 101 | net/inet/raw.c | skb->len = ntohs(skb->ip_hdr->tot_len); |
len | 127 | net/inet/raw.c | int len, int noblock, unsigned flags, struct sockaddr_in *usin, int addr_len) |
len | 173 | net/inet/raw.c | skb=sock_alloc_send_skb(sk, len+sk->prot->max_header, noblock, &err); |
len | 191 | net/inet/raw.c | memcpy_fromfs(skb->data + tmp, from, len); |
len | 210 | net/inet/raw.c | skb->len = tmp + len; |
len | 214 | net/inet/raw.c | return(len); |
len | 218 | net/inet/raw.c | static int raw_write(struct sock *sk, unsigned char *buff, int len, int noblock, |
len | 221 | net/inet/raw.c | return(raw_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
len | 242 | net/inet/raw.c | int raw_recvfrom(struct sock *sk, unsigned char *to, int len, |
len | 264 | net/inet/raw.c | truesize=skb->len; |
len | 265 | net/inet/raw.c | copied = min(len, truesize); |
len | 282 | net/inet/raw.c | int raw_read (struct sock *sk, unsigned char *buff, int len, int noblock,unsigned flags) |
len | 284 | net/inet/raw.c | return(raw_recvfrom(sk, buff, len, noblock, flags, NULL, NULL)); |
len | 27 | net/inet/raw.h | int len, int noblock, unsigned flags, |
len | 30 | net/inet/raw.h | int len, int noblock, unsigned flags); |
len | 497 | net/inet/route.c | int len=0; |
len | 502 | net/inet/route.c | len += sprintf(buffer, |
len | 504 | net/inet/route.c | pos=len; |
len | 512 | 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 | 516 | net/inet/route.c | len+=size; |
len | 520 | net/inet/route.c | len=0; |
len | 528 | net/inet/route.c | len-=(offset-begin); |
len | 529 | net/inet/route.c | if(len>length) |
len | 530 | net/inet/route.c | len=length; |
len | 531 | net/inet/route.c | return len; |
len | 505 | net/inet/skbuff.c | n->len=skb->len; |
len | 519 | net/inet/sock.c | sk->data_ready(sk,skb->len); |
len | 554 | net/inet/sock.c | skb->saddr, skb->len, skb->daddr, 1, |
len | 205 | net/inet/sock.h | int len, int nonblock, unsigned flags); |
len | 207 | net/inet/sock.h | int len, int nonblock, unsigned flags); |
len | 209 | net/inet/sock.h | unsigned char *from, int len, int noblock, |
len | 213 | net/inet/sock.h | unsigned char *from, int len, int noblock, |
len | 220 | net/inet/sock.h | struct options *opt, int len, int tos, int ttl); |
len | 232 | net/inet/sock.h | unsigned short len, unsigned long saddr, |
len | 400 | net/inet/tcp.c | size = skb->len - (((unsigned char *) th) - skb->data); |
len | 787 | 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 | 950 | net/inet/tcp.c | unsigned short tcp_check(struct tcphdr *th, int len, |
len | 968 | net/inet/tcp.c | : "0"(daddr), "c"(saddr), "d"((ntohs(len) << 16) + IPPROTO_TCP*256) |
len | 1022 | net/inet/tcp.c | : "0"(sum), "c"(len), "S"(th) |
len | 1033 | net/inet/tcp.c | unsigned long daddr, int len, struct sock *sk) |
len | 1036 | net/inet/tcp.c | th->check = tcp_check(th, len, saddr, daddr); |
len | 1046 | net/inet/tcp.c | size = skb->len - ((unsigned char *) th - skb->data); |
len | 1049 | net/inet/tcp.c | if (size < sizeof(struct tcphdr) || size > skb->len) |
len | 1052 | net/inet/tcp.c | skb, skb->data, th, skb->len); |
len | 1183 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
len | 1197 | net/inet/tcp.c | buff->len += tmp; |
len | 1275 | net/inet/tcp.c | int len, int nonblock, unsigned flags) |
len | 1288 | net/inet/tcp.c | while(len > 0) |
len | 1405 | net/inet/tcp.c | copy = min(sk->mss - (skb->len - hdrlen), len); |
len | 1413 | net/inet/tcp.c | memcpy_fromfs(skb->data + skb->len, from, copy); |
len | 1414 | net/inet/tcp.c | skb->len += copy; |
len | 1417 | net/inet/tcp.c | len -= copy; |
len | 1420 | net/inet/tcp.c | if ((skb->len - hdrlen) >= sk->mss || |
len | 1443 | net/inet/tcp.c | if (copy > len) |
len | 1444 | net/inet/tcp.c | copy = len; |
len | 1519 | net/inet/tcp.c | skb->len = 0; |
len | 1541 | net/inet/tcp.c | skb->len += tmp; |
len | 1545 | net/inet/tcp.c | tmp = tcp_build_header((struct tcphdr *)buff, sk, len-copy); |
len | 1560 | net/inet/tcp.c | skb->len += tmp; |
len | 1565 | net/inet/tcp.c | len -= copy; |
len | 1566 | net/inet/tcp.c | skb->len += copy; |
len | 1602 | net/inet/tcp.c | int len, int nonblock, unsigned flags, |
len | 1617 | net/inet/tcp.c | return tcp_write(sk, from, len, nonblock, flags); |
len | 1650 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
len | 1667 | net/inet/tcp.c | buff->len += tmp; |
len | 1786 | net/inet/tcp.c | unsigned char *to, int len, unsigned flags) |
len | 1839 | net/inet/tcp.c | int len, int nonblock, unsigned flags) |
len | 1853 | net/inet/tcp.c | return tcp_read_urg(sk, nonblock, to, len, flags); |
len | 1862 | net/inet/tcp.c | while (len > 0) |
len | 1885 | net/inet/tcp.c | if (offset < skb->len) |
len | 1944 | net/inet/tcp.c | used = skb->len - offset; |
len | 1945 | net/inet/tcp.c | if (len < used) |
len | 1946 | net/inet/tcp.c | used = len; |
len | 1970 | net/inet/tcp.c | len -= used; |
len | 1975 | net/inet/tcp.c | if (used + offset < skb->len) |
len | 2064 | net/inet/tcp.c | buff->len = sizeof(*t1); |
len | 2102 | net/inet/tcp.c | buff->len += tmp; |
len | 2207 | net/inet/tcp.c | buff->len = sizeof(*t1); |
len | 2228 | net/inet/tcp.c | buff->len += tmp; |
len | 2547 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr)+4; |
len | 2577 | net/inet/tcp.c | buff->len += tmp; |
len | 2744 | net/inet/tcp.c | buff->len = sizeof(*t1); |
len | 2777 | net/inet/tcp.c | buff->len += tmp; |
len | 2883 | net/inet/tcp.c | size = skb->len - (((unsigned char *) th) - skb->data); |
len | 2902 | net/inet/tcp.c | extern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len) |
len | 2952 | net/inet/tcp.c | if (len != th->doff*4) |
len | 3445 | net/inet/tcp.c | sk->fin_seq = th->seq + skb->len + th->syn + th->fin; |
len | 3532 | net/inet/tcp.c | unsigned long saddr, unsigned short len) |
len | 3541 | net/inet/tcp.c | skb->len = len -(th->doff*4); |
len | 3548 | net/inet/tcp.c | sk->bytes_rcv += skb->len; |
len | 3550 | net/inet/tcp.c | if (skb->len == 0 && !th->fin && !th->urg && !th->psh) |
len | 3575 | net/inet/tcp.c | if(skb->len) /* We don't care if its just an ack or |
len | 3578 | net/inet/tcp.c | new_seq= th->seq + skb->len + th->syn; /* Right edge of _data_ part of frame */ |
len | 3656 | net/inet/tcp.c | if (th->seq==skb1->h.th->seq && skb->len>= skb1->len) |
len | 3691 | net/inet/tcp.c | th->ack_seq = th->seq + skb->len; |
len | 3891 | net/inet/tcp.c | unsigned long saddr, unsigned long len) |
len | 3914 | net/inet/tcp.c | if (ptr >= len) |
len | 4040 | net/inet/tcp.c | buff->len = 24; |
len | 4067 | net/inet/tcp.c | buff->len += tmp; |
len | 4150 | net/inet/tcp.c | extern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len, |
len | 4155 | net/inet/tcp.c | next_seq = len - 4*th->doff; |
len | 4239 | net/inet/tcp.c | unsigned long daddr, unsigned short len, |
len | 4288 | net/inet/tcp.c | if (tcp_check(th, len, saddr, daddr )) |
len | 4315 | net/inet/tcp.c | skb->len = len; |
len | 4437 | net/inet/tcp.c | if(!tcp_ack(sk,th,saddr,len)) |
len | 4552 | net/inet/tcp.c | if(!tcp_sequence(sk,th,len,opt,saddr,dev)) |
len | 4577 | net/inet/tcp.c | if(th->ack && !tcp_ack(sk,th,saddr,len)) |
len | 4598 | net/inet/tcp.c | if(tcp_urg(sk, th, saddr, len)) |
len | 4610 | net/inet/tcp.c | if(tcp_data(skb,sk, saddr, len)) |
len | 4659 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
len | 4675 | net/inet/tcp.c | buff->len += tmp; |
len | 122 | net/inet/tcp.h | unsigned short len, unsigned long saddr, int redo, |
len | 129 | net/inet/tcp.h | unsigned long daddr, int len, struct sock *sk); |
len | 66 | net/inet/timer.c | void reset_timer (struct sock *t, int timeout, unsigned long len) |
len | 72 | net/inet/timer.c | if ((int) len < 0) /* prevent close to infinite timers. THEY _DO_ */ |
len | 73 | net/inet/timer.c | len = 3; /* happen (negative values ?) - don't ask me why ! -FB */ |
len | 75 | net/inet/timer.c | t->timer.expires = len; |
len | 83 | net/inet/udp.c | static int udp_deliver(struct sock *sk, struct udphdr *uh, struct sk_buff *skb, struct device *dev, long saddr, long daddr, int len); |
len | 155 | net/inet/udp.c | static unsigned short udp_check(struct udphdr *uh, int len, unsigned long saddr, unsigned long daddr) |
len | 163 | net/inet/udp.c | : "0"(daddr), "c"(saddr), "d"((ntohs(len) << 16) + IPPROTO_UDP*256) |
len | 166 | net/inet/udp.c | if (len > 3) |
len | 175 | net/inet/udp.c | : "0"(sum), "c"(len/4) ,"1"(uh) |
len | 195 | net/inet/udp.c | if ((len & 2) != 0) |
len | 209 | net/inet/udp.c | if ((len & 1) != 0) |
len | 234 | net/inet/udp.c | unsigned long daddr, int len, struct sock *sk) |
len | 239 | net/inet/udp.c | uh->check = udp_check(uh, len, saddr, daddr); |
len | 252 | net/inet/udp.c | unsigned char *from, int len, int rt) |
len | 266 | net/inet/udp.c | size = sk->prot->max_header + len; |
len | 306 | net/inet/udp.c | skb->len = tmp + sizeof(struct udphdr) + len; /* len + UDP + IP + MAC */ |
len | 314 | net/inet/udp.c | uh->len = htons(len + sizeof(struct udphdr)); |
len | 323 | net/inet/udp.c | memcpy_fromfs(buff, from, len); |
len | 329 | net/inet/udp.c | udp_send_check(uh, saddr, sin->sin_addr.s_addr, skb->len - tmp, sk); |
len | 338 | net/inet/udp.c | return(len); |
len | 342 | net/inet/udp.c | static int udp_sendto(struct sock *sk, unsigned char *from, int len, int noblock, |
len | 390 | net/inet/udp.c | tmp = udp_send(sk, &sin, from, len, flags); |
len | 401 | net/inet/udp.c | static int udp_write(struct sock *sk, unsigned char *buff, int len, int noblock, |
len | 404 | net/inet/udp.c | return(udp_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
len | 445 | net/inet/udp.c | amount = skb->len; |
len | 467 | net/inet/udp.c | int udp_recvfrom(struct sock *sk, unsigned char *to, int len, |
len | 492 | net/inet/udp.c | truesize = skb->len; |
len | 493 | net/inet/udp.c | copied = min(len, truesize); |
len | 519 | net/inet/udp.c | int udp_read(struct sock *sk, unsigned char *buff, int len, int noblock, |
len | 522 | net/inet/udp.c | return(udp_recvfrom(sk, buff, len, noblock, flags, NULL, NULL)); |
len | 568 | net/inet/udp.c | unsigned long daddr, unsigned short len, |
len | 590 | net/inet/udp.c | ulen = ntohs(uh->len); |
len | 592 | net/inet/udp.c | if (ulen > len || len < sizeof(*uh) || ulen < sizeof(*uh)) |
len | 594 | net/inet/udp.c | printk("UDP: short packet: %d/%d\n", ulen, len); |
len | 600 | net/inet/udp.c | if (uh->check && udp_check(uh, len, saddr, daddr)) |
len | 609 | net/inet/udp.c | len=ulen; |
len | 632 | net/inet/udp.c | udp_deliver(sk, uh, skb1, dev,saddr,daddr,len); |
len | 659 | net/inet/udp.c | return udp_deliver(sk,uh,skb,dev, saddr, daddr, len); |
len | 662 | net/inet/udp.c | static int udp_deliver(struct sock *sk, struct udphdr *uh, struct sk_buff *skb, struct device *dev, long saddr, long daddr, int len) |
len | 666 | net/inet/udp.c | skb->len = len; |
len | 680 | net/inet/udp.c | skb->len = len - sizeof(*uh); |
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 | 143 | net/socket.c | int len; |
len | 148 | net/socket.c | len=get_fs_long(ulen); |
len | 149 | net/socket.c | if(len>klen) |
len | 150 | net/socket.c | len=klen; |
len | 151 | net/socket.c | if(len<0 || len> MAX_SOCK_ADDR) |
len | 153 | net/socket.c | if(len) |
len | 155 | net/socket.c | if((err=verify_area(VERIFY_WRITE,uaddr,len))<0) |
len | 157 | net/socket.c | memcpy_tofs(uaddr,kaddr,len); |
len | 159 | net/socket.c | put_fs_long(len,ulen); |
len | 856 | net/socket.c | int len; |
len | 899 | net/socket.c | newsock->ops->getname(newsock, (struct sockaddr *)address, &len, 1); |
len | 900 | net/socket.c | move_addr_to_user(address,len, upeer_sockaddr, upeer_addrlen); |
len | 966 | net/socket.c | int len; |
len | 974 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 0); |
len | 977 | net/socket.c | if((err=move_addr_to_user(address,len, usockaddr, usockaddr_len))<0) |
len | 991 | net/socket.c | int len; |
len | 999 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 1); |
len | 1002 | net/socket.c | if((err=move_addr_to_user(address,len, usockaddr, usockaddr_len))<0) |
len | 1012 | net/socket.c | static int sock_send(int fd, void * buff, int len, unsigned flags) |
len | 1023 | net/socket.c | if(len<0) |
len | 1025 | net/socket.c | err=verify_area(VERIFY_READ, buff, len); |
len | 1028 | net/socket.c | return(sock->ops->send(sock, buff, len, (file->f_flags & O_NONBLOCK), flags)); |
len | 1037 | net/socket.c | static int sock_sendto(int fd, void * buff, int len, unsigned flags, |
len | 1050 | net/socket.c | if(len<0) |
len | 1052 | net/socket.c | err=verify_area(VERIFY_READ,buff,len); |
len | 1059 | net/socket.c | return(sock->ops->sendto(sock, buff, len, (file->f_flags & O_NONBLOCK), |
len | 1072 | net/socket.c | static int sock_recv(int fd, void * buff, int len, unsigned flags) |
len | 1084 | net/socket.c | if(len<0) |
len | 1086 | net/socket.c | if(len==0) |
len | 1088 | net/socket.c | err=verify_area(VERIFY_WRITE, buff, len); |
len | 1092 | net/socket.c | return(sock->ops->recv(sock, buff, len,(file->f_flags & O_NONBLOCK), flags)); |
len | 1101 | net/socket.c | static int sock_recvfrom(int fd, void * buff, int len, unsigned flags, |
len | 1113 | net/socket.c | if(len<0) |
len | 1115 | net/socket.c | if(len==0) |
len | 1118 | net/socket.c | err=verify_area(VERIFY_WRITE,buff,len); |
len | 1122 | net/socket.c | len=sock->ops->recvfrom(sock, buff, len, (file->f_flags & O_NONBLOCK), |
len | 1125 | net/socket.c | if(len<0) |
len | 1126 | net/socket.c | return len; |
len | 1130 | 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 | 80 | net/unix/sock.c | static int unix_proto_send(struct socket *sock, void *buff, int len, |
len | 82 | net/unix/sock.c | static int unix_proto_recv(struct socket *sock, void *buff, int len, |
len | 84 | net/unix/sock.c | static int unix_proto_sendto(struct socket *sock, void *buff, int len, |
len | 87 | net/unix/sock.c | static int unix_proto_recvfrom(struct socket *sock, void *buff, int len, |
len | 163 | net/unix/sock.c | static int unix_proto_sendto(struct socket *sock, void *buff, int len, int nonblock, |
len | 169 | net/unix/sock.c | static int unix_proto_recvfrom(struct socket *sock, void *buff, int len, int nonblock, |
len | 189 | net/unix/sock.c | static int unix_proto_send(struct socket *sock, void *buff, int len, int nonblock, |
len | 194 | net/unix/sock.c | return(unix_proto_write(sock, (char *) buff, len, nonblock)); |
len | 202 | net/unix/sock.c | static int unix_proto_recv(struct socket *sock, void *buff, int len, int nonblock, |
len | 207 | net/unix/sock.c | return(unix_proto_read(sock, (char *) buff, len, nonblock)); |
len | 585 | net/unix/sock.c | int len; |
len | 598 | net/unix/sock.c | len = upd->sockaddr_len; |
len | 599 | net/unix/sock.c | memcpy(usockaddr, &upd->sockaddr_un, len); |
len | 600 | net/unix/sock.c | *usockaddr_len=len; |