tag | line | file | source code |
len | 34 | drivers/block/ramdisk.c | int len; |
len | 40 | drivers/block/ramdisk.c | len = CURRENT->current_nr_sectors << 9; |
len | 43 | drivers/block/ramdisk.c | (addr+len > rd_start+rd_length)) { |
len | 50 | drivers/block/ramdisk.c | len); |
len | 54 | drivers/block/ramdisk.c | len); |
len | 303 | drivers/net/3c501.c | int gp_start = 0x800 - (ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN); |
len | 314 | drivers/net/3c501.c | outsb(DATAPORT,buf,skb->len); |
len | 452 | drivers/net/3c501.c | skb->len = pkt_len; |
len | 545 | drivers/net/3c505.c | int len) |
len | 560 | drivers/net/3c505.c | int sksize = sizeof(struct sk_buff) + len + 4; |
len | 566 | drivers/net/3c505.c | if (len <= 0 || ((len & ~1) != len)) |
len | 568 | drivers/net/3c505.c | printk("*** bad packet len %d at %s(%d)\n",len,filename,__LINE__); |
len | 570 | drivers/net/3c505.c | rlen = (len+1) & ~1; |
len | 601 | drivers/net/3c505.c | skb->len = rlen; |
len | 672 | drivers/net/3c505.c | int len; |
len | 785 | drivers/net/3c505.c | len = adapter->irx_pcb.data.rcv_resp.pkt_len; |
len | 791 | drivers/net/3c505.c | printk("%s: interrupt - packet received of length %i (%i)\n", dev->name, len, dlen); |
len | 971 | drivers/net/3c505.c | static int send_packet (elp_device * adapter, unsigned char * ptr, int len) |
len | 979 | drivers/net/3c505.c | unsigned int nlen = (((len < 60) ? 60 : len) + 1) & (~1); |
len | 984 | drivers/net/3c505.c | if (nlen < len) |
len | 985 | drivers/net/3c505.c | printk("Warning, bad length nlen=%d len=%d %s(%d)\n",nlen,len,filename,__LINE__); |
len | 1064 | drivers/net/3c505.c | if (skb->len <= 0) |
len | 1068 | drivers/net/3c505.c | printk("%s: request to send packet of length %d\n", dev->name, (int)skb->len); |
len | 1088 | drivers/net/3c505.c | if (!send_packet(adapter, (unsigned char *)SKB_DATA, skb->len)) { |
len | 1094 | drivers/net/3c505.c | printk("%s: packet of length %d sent\n", dev->name, (int)skb->len); |
len | 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 | 167 | drivers/net/8390.c | length = skb->len; |
len | 168 | drivers/net/8390.c | if (skb->len <= 0) |
len | 451 | drivers/net/8390.c | skb->len = pkt_len; |
len | 357 | drivers/net/apricot.c | skb->len = pkt_len; |
len | 621 | drivers/net/apricot.c | if (skb->len <= 0) return 0; |
len | 631 | 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 | 445 | drivers/net/atp.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 637 | drivers/net/atp.c | skb->len = pkt_len; |
len | 408 | drivers/net/de600.c | int len; |
len | 442 | drivers/net/de600.c | PRINTK(("de600_start_xmit:len=%d, page %d/%d\n", skb->len, tx_fifo_in, free_tx_pages)); |
len | 444 | drivers/net/de600.c | if ((len = skb->len) < RUNT) |
len | 445 | drivers/net/de600.c | len = RUNT; |
len | 449 | drivers/net/de600.c | tx_fifo[tx_fifo_in] = transmit_from = tx_page_adr(tx_fifo_in) - len; |
len | 465 | drivers/net/de600.c | for ( ; len > 0; --len, ++buffer) |
len | 482 | drivers/net/de620.c | int len; |
len | 518 | drivers/net/de620.c | if ((len = skb->len) < RUNT) |
len | 519 | drivers/net/de620.c | len = RUNT; |
len | 520 | drivers/net/de620.c | if (len & 1) /* send an even number of bytes */ |
len | 521 | drivers/net/de620.c | ++len; |
len | 528 | drivers/net/de620.c | (int)skb->len, using_txbuf)); |
len | 549 | drivers/net/de620.c | de620_write_block(buffer, len); |
len | 683 | drivers/net/de620.c | skb->len = size; skb->dev = dev; skb->free = 1; |
len | 834 | drivers/net/depca.c | if (skb->len <= 0) { |
len | 857 | drivers/net/depca.c | int len; |
len | 858 | drivers/net/depca.c | long skbL = skb->len; |
len | 872 | drivers/net/depca.c | len = ((skbL > PKT_SZ) ? PKT_SZ : skbL); /* skb too long */ |
len | 873 | drivers/net/depca.c | if (len < ETH_ZLEN) len = ETH_ZLEN; /* len too short */ |
len | 874 | drivers/net/depca.c | skbL -= len; |
len | 875 | drivers/net/depca.c | lp->tx_ring[entry].length = -len; |
len | 881 | drivers/net/depca.c | memcpy((unsigned char *)(buf), skb->data, len); |
len | 893 | drivers/net/depca.c | for (p += len; skbL > 0; p += len) { |
len | 909 | drivers/net/depca.c | len = ((skbL > DAT_SZ) ? DAT_SZ : skbL); /* skbL too long */ |
len | 910 | drivers/net/depca.c | if (len < ETH_ZLEN) len = ETH_ZLEN; /* len too short */ |
len | 911 | drivers/net/depca.c | skbL -= len; |
len | 912 | drivers/net/depca.c | lp->tx_ring[entry].length = -len; |
len | 918 | drivers/net/depca.c | memcpy((unsigned char *)(buf + PKT_HDR_LEN), (unsigned char *)p, len); |
len | 1061 | drivers/net/depca.c | skb->len = pkt_len; |
len | 495 | drivers/net/eexpress.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 950 | drivers/net/eexpress.c | skb->len = pkt_len; |
len | 795 | drivers/net/ewrk3.c | } else if (skb->len > 0) { |
len | 848 | drivers/net/ewrk3.c | outb((char)(skb->len & 0xff), EWRK3_DATA); |
len | 849 | drivers/net/ewrk3.c | outb((char)((skb->len >> 8) & 0xff), EWRK3_DATA); |
len | 851 | drivers/net/ewrk3.c | for (i=0; i<skb->len; i++) { |
len | 857 | drivers/net/ewrk3.c | *buf++ = (char)(skb->len & 0xff); /* length (16 bit xfer)*/ |
len | 859 | drivers/net/ewrk3.c | *buf++ = (char)(((skb->len >> 8) & 0xff) | XCT); |
len | 861 | drivers/net/ewrk3.c | *(buf + skb->len) = 0x00; /* Write the XCT flag */ |
len | 864 | drivers/net/ewrk3.c | memcpy(buf + PRELOAD, skb->data + PRELOAD, skb->len - PRELOAD); |
len | 865 | drivers/net/ewrk3.c | *(buf + skb->len) = 0xff; /* Write the XCT flag */ |
len | 867 | drivers/net/ewrk3.c | *buf++ = (char)((skb->len >> 8) & 0xff); |
len | 869 | drivers/net/ewrk3.c | memcpy(buf, skb->data, skb->len); /* Write data bytes */ |
len | 1037 | drivers/net/ewrk3.c | skb->len = pkt_len; |
len | 1044 | drivers/net/ewrk3.c | for (i=0; i<skb->len; i++) { |
len | 1623 | drivers/net/ewrk3.c | ioc->len = ETH_ALEN; |
len | 1624 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 1683 | drivers/net/ewrk3.c | ioc->len = (HASH_TABLE_LEN >> 3); |
len | 1684 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 1690 | drivers/net/ewrk3.c | if (ioc->len != HASH_TABLE_LEN) { /* MCA changes */ |
len | 1691 | drivers/net/ewrk3.c | memcpy_fromfs(tmp.addr, ioc->data, ETH_ALEN * ioc->len); |
len | 1693 | drivers/net/ewrk3.c | set_multicast_list(dev, ioc->len, tmp.addr); |
len | 1721 | drivers/net/ewrk3.c | ioc->len = EWRK3_PKT_STAT_SZ; |
len | 1759 | drivers/net/ewrk3.c | ioc->len = EEPROM_MAX + 1 + ETH_ALEN; |
len | 1760 | 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 | 63 | drivers/net/loopback.c | done = dev_rint(skb->data, skb->len, 0, dev); |
len | 871 | drivers/net/ni52.c | skb->len = totlen; |
len | 1001 | drivers/net/ni52.c | int len; |
len | 1030 | drivers/net/ni52.c | if (skb->len <= 0) |
len | 1037 | drivers/net/ni52.c | memcpy((char *)p->xmit_cbuffs[p->xmit_count],(char *)(skb->data),skb->len); |
len | 1038 | drivers/net/ni52.c | len = (ETH_ZLEN < skb->len) ? skb->len : ETH_ZLEN; |
len | 1042 | drivers/net/ni52.c | p->xmit_buffs[0]->size = TBD_LAST | len; |
len | 1050 | drivers/net/ni52.c | for(len=0;len<256;len++); |
len | 1055 | drivers/net/ni52.c | p->xmit_buffs[0]->size = TBD_LAST | len; |
len | 1068 | drivers/net/ni52.c | p->xmit_buffs[p->xmit_count]->size = TBD_LAST | len; |
len | 501 | drivers/net/ni65.c | int rmdstat,len; |
len | 530 | drivers/net/ni65.c | len = (rmdp->mlen & 0x0fff) - 4; /* -4: ignore FCS */ |
len | 535 | drivers/net/ni65.c | memcpy(skb->data,p->recv_skb[p->rmdnum]->data,len); |
len | 545 | drivers/net/ni65.c | skb1->len = len; |
len | 589 | drivers/net/ni65.c | if (skb->len <= 0) |
len | 604 | drivers/net/ni65.c | short len = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 612 | drivers/net/ni65.c | memcpy((char *) (tmdp->u.buffer & 0x00ffffff),(char *)skb->data,skb->len); |
len | 615 | drivers/net/ni65.c | tmdp->blen = -len; |
len | 436 | drivers/net/plip.c | if (skb->len > dev->mtu) { |
len | 437 | drivers/net/plip.c | printk("%s: packet too big, %d.\n", dev->name, (int)skb->len); |
len | 446 | drivers/net/plip.c | snd->length = skb->len; |
len | 658 | 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 | 1251 | drivers/net/sk_g16.c | short len = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 1260 | drivers/net/sk_g16.c | skb->len); |
len | 1262 | drivers/net/sk_g16.c | tmdp->blen = -len; /* set length to transmit */ |
len | 1572 | drivers/net/sk_g16.c | int len = (rmdp->mlen & 0x0fff); /* extract message length from receive buffer */ |
len | 1575 | drivers/net/sk_g16.c | skb = alloc_skb(len, GFP_ATOMIC); /* allocate socket buffer */ |
len | 1595 | drivers/net/sk_g16.c | skb->len = len; |
len | 1606 | drivers/net/sk_g16.c | len); |
len | 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 | 93 | drivers/net/slip.c | static int slip_esc(unsigned char *p, unsigned char *d, int len); |
len | 96 | drivers/net/slip.c | static int slip_esc6(unsigned char *p, unsigned char *d, int len); |
len | 151 | drivers/net/slip.c | int len; |
len | 154 | drivers/net/slip.c | len = dev->mtu * 2; |
len | 160 | drivers/net/slip.c | if (len < 576 * 2) { |
len | 161 | drivers/net/slip.c | len = 576 * 2; |
len | 164 | drivers/net/slip.c | xbuff = (unsigned char *) kmalloc (len + 4, GFP_ATOMIC); |
len | 165 | drivers/net/slip.c | rbuff = (unsigned char *) kmalloc (len + 4, GFP_ATOMIC); |
len | 167 | drivers/net/slip.c | cbuff = (unsigned char *) kmalloc (len + 4, GFP_ATOMIC); |
len | 203 | drivers/net/slip.c | if (sl->xleft <= len) { |
len | 213 | drivers/net/slip.c | if (sl->rcount <= len) { |
len | 226 | drivers/net/slip.c | sl->buffsize = len; |
len | 309 | drivers/net/slip.c | skb->len = count; |
len | 318 | drivers/net/slip.c | sl_encaps(struct slip *sl, unsigned char *icp, int len) |
len | 332 | drivers/net/slip.c | if (len > sl->mtu) { /* Sigh, shouldn't occur BUT ... */ |
len | 333 | drivers/net/slip.c | len = sl->mtu; |
len | 343 | drivers/net/slip.c | len = slhc_compress(sl->slcomp, p, len, sl->cbuff, &p, 1); |
len | 348 | drivers/net/slip.c | count = slip_esc6(p, (unsigned char *) sl->xbuff, len); |
len | 351 | drivers/net/slip.c | count = slip_esc(p, (unsigned char *) sl->xbuff, len); |
len | 442 | drivers/net/slip.c | sl_encaps(sl, skb->data, skb->len); |
len | 467 | drivers/net/slip.c | void *daddr, void *saddr, unsigned len, struct sk_buff *skb) |
len | 474 | drivers/net/slip.c | return ax25_encapsulate(buff, dev, type, daddr, saddr, len, skb); |
len | 505 | drivers/net/slip.c | unsigned long len; |
len | 518 | drivers/net/slip.c | len = dev->mtu * 2; |
len | 524 | drivers/net/slip.c | if (len < 576 * 2) { |
len | 525 | drivers/net/slip.c | len = 576 * 2; |
len | 527 | drivers/net/slip.c | sl->rbuff = (unsigned char *) kmalloc(len + 4, GFP_KERNEL); |
len | 531 | drivers/net/slip.c | sl->xbuff = (unsigned char *) kmalloc(len + 4, GFP_KERNEL); |
len | 536 | drivers/net/slip.c | sl->cbuff = (unsigned char *) kmalloc(len + 4, GFP_KERNEL); |
len | 551 | drivers/net/slip.c | sl->buffsize = len; |
len | 774 | drivers/net/slip.c | slip_esc(unsigned char *s, unsigned char *d, int len) |
len | 792 | drivers/net/slip.c | while (len-- > 0) { |
len | 855 | drivers/net/slip.c | slip_esc6(unsigned char *s, unsigned char *d, int len) |
len | 875 | drivers/net/slip.c | for (i = 0; i < len; ++i) { |
len | 361 | drivers/net/znet.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 387 | drivers/net/znet.c | memcpy(zn.tx_cur, buf, skb->len); |
len | 560 | drivers/net/znet.c | skb->len = pkt_len; |
len | 1965 | drivers/scsi/53c7,8xx.c | size_t len; |
len | 1982 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
len | 1985 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "%08x\n", * (long *) bp->addr); |
len | 1987 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "\n"); |
len | 1989 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
len | 1990 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, len); |
len | 2002 | drivers/scsi/53c7,8xx.c | size_t len; |
len | 2062 | drivers/scsi/53c7,8xx.c | int i, j, error, len; |
len | 2083 | drivers/scsi/53c7,8xx.c | len = strlen (debugger_tokens[i].name); |
len | 2084 | drivers/scsi/53c7,8xx.c | if (!strncmp(input_buf, debugger_tokens[i].name, len)) |
len | 2091 | drivers/scsi/53c7,8xx.c | for (ptr = input_buf + len, j = 0; j < debugger_tokens[i].nargs && *ptr;) { |
len | 3616 | drivers/scsi/53c7,8xx.c | size_t len = strlen(buf); |
len | 3617 | drivers/scsi/53c7,8xx.c | debugger_kernel_write(host, buf, len); |
len | 3757 | drivers/scsi/53c7,8xx.c | int i, len; |
len | 3768 | drivers/scsi/53c7,8xx.c | ptr += len, i -= len) { |
len | 3770 | 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 | 152 | drivers/scsi/aha1542.c | if(len == 1) { |
len | 163 | drivers/scsi/aha1542.c | while (len--) |
len | 173 | drivers/scsi/aha1542.c | printk("aha1542_out failed(%d): ", len+1); aha1542_stat(); |
len | 179 | drivers/scsi/aha1542.c | static int aha1542_in(unsigned int base, unchar *cmdp, int len) |
len | 182 | drivers/scsi/aha1542.c | while (len--) |
len | 191 | drivers/scsi/aha1542.c | printk("aha1542_in failed(%d): ", len+1); aha1542_stat(); |
len | 198 | drivers/scsi/aha1542.c | static int aha1542_in1(unsigned int base, unchar *cmdp, int len) |
len | 201 | drivers/scsi/aha1542.c | while (len--) |
len | 275 | drivers/scsi/aha1542.c | int len; |
len | 308 | drivers/scsi/aha1542.c | len = 4; |
len | 311 | drivers/scsi/aha1542.c | while (len--) |
len | 241 | drivers/scsi/buslogic.c | size_t len) |
len | 243 | drivers/scsi/buslogic.c | if (len == 1) { |
len | 256 | drivers/scsi/buslogic.c | while (len--) { |
len | 265 | drivers/scsi/buslogic.c | buslogic_printk("failed(%u): ", len + 1); |
len | 273 | drivers/scsi/buslogic.c | static int buslogic_in(unsigned int base, unsigned char *cmdp, size_t len) |
len | 276 | drivers/scsi/buslogic.c | while (len--) { |
len | 285 | 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 | 1794 | drivers/scsi/scsi.c | void *scsi_malloc(unsigned int len) |
len | 1799 | drivers/scsi/scsi.c | if((len & 0x1ff) || len > 8192) |
len | 1804 | drivers/scsi/scsi.c | nbits = len >> 9; |
len | 1814 | drivers/scsi/scsi.c | printk("SMalloc: %d %x ",len, dma_malloc_buffer + (i << 13) + (j << 9)); |
len | 1823 | drivers/scsi/scsi.c | int scsi_free(void *obj, unsigned int len) |
len | 1830 | drivers/scsi/scsi.c | printk("Sfree %x %d\n",obj, len); |
len | 1841 | 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 | 576 | drivers/scsi/seagate.c | int len = 0; |
len | 705 | drivers/scsi/seagate.c | len=current_bufflen; /* WDE add */ |
len | 903 | drivers/scsi/seagate.c | len = buffer->length; |
len | 910 | drivers/scsi/seagate.c | len = SCint->request_bufflen; |
len | 915 | drivers/scsi/seagate.c | printk("scsi%d : len = %d\n", hostno, len); |
len | 1028 | drivers/scsi/seagate.c | if (!len) { |
len | 1038 | drivers/scsi/seagate.c | if (fast && transfersize && !(len % transfersize) && (len >= transfersize) |
len | 1046 | drivers/scsi/seagate.c | SCint->transfersize, len, data); |
len | 1068 | drivers/scsi/seagate.c | len -= transfersize; |
len | 1073 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1129 | drivers/scsi/seagate.c | "=S" (data), "=c" (len) : |
len | 1131 | drivers/scsi/seagate.c | "0" (data), "1" (len) : |
len | 1136 | drivers/scsi/seagate.c | if (!len && nobuffs) { |
len | 1139 | drivers/scsi/seagate.c | len = buffer->length; |
len | 1143 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1152 | drivers/scsi/seagate.c | transfered += len; |
len | 1154 | drivers/scsi/seagate.c | for (; len && (STATUS & (REQ_MASK | STAT_REQ)) == (REQ_DATAIN | |
len | 1155 | drivers/scsi/seagate.c | STAT_REQ); --len) { |
len | 1160 | drivers/scsi/seagate.c | transfered -= len; |
len | 1165 | drivers/scsi/seagate.c | if (fast && transfersize && !(len % transfersize) && (len >= transfersize) |
len | 1173 | drivers/scsi/seagate.c | SCint->transfersize, len, data); |
len | 1195 | drivers/scsi/seagate.c | len -= transfersize; |
len | 1205 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1213 | drivers/scsi/seagate.c | printk("scsi%d: transfered += %d\n", hostno, len); |
len | 1214 | drivers/scsi/seagate.c | transfered += len; /* Assume we'll transfer it all, then |
len | 1269 | drivers/scsi/seagate.c | "=D" (data), "=c" (len) : |
len | 1271 | drivers/scsi/seagate.c | "0" (data), "1" (len) : |
len | 1276 | drivers/scsi/seagate.c | printk("scsi%d: transfered -= %d\n", hostno, len); |
len | 1277 | drivers/scsi/seagate.c | transfered -= len; /* Since we assumed all of Len got |
len | 1282 | drivers/scsi/seagate.c | if (!len && nobuffs) { |
len | 1285 | drivers/scsi/seagate.c | len = buffer->length; |
len | 1289 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1356 | drivers/scsi/seagate.c | current_bufflen = len; /* WDE add */ |
len | 1388 | drivers/scsi/seagate.c | current_bufflen = len; /* WDE add */ |
len | 1399 | 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 | 659 | fs/binfmt_elf.c | unsigned int len; |
len | 670 | fs/binfmt_elf.c | len = 0; |
len | 757 | fs/binfmt_elf.c | len = (elf_phdata->p_filesz + elf_phdata->p_vaddr+ 0xfff) & 0xfffff000; |
len | 759 | fs/binfmt_elf.c | if (bss > len) |
len | 760 | 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 | 407 | fs/exec.c | int len, offset = 0; |
len | 423 | fs/exec.c | len=0; /* remember zero-padding */ |
len | 425 | fs/exec.c | len++; |
len | 427 | fs/exec.c | if (p < len) { /* this shouldn't happen - 128kB */ |
len | 431 | fs/exec.c | while (len) { |
len | 432 | fs/exec.c | --p; --tmp; --len; |
len | 914 | fs/exec.c | unsigned int len; |
len | 954 | fs/exec.c | len = PAGE_ALIGN(ex.a_text + ex.a_data); |
len | 956 | fs/exec.c | if (bss > len) |
len | 957 | 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 | 84 | fs/isofs/rock.c | len = cont_size; \ |
len | 100 | fs/isofs/rock.c | int len; |
len | 115 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(de, chr, len); |
len | 121 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 123 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 125 | fs/isofs/rock.c | chr += rr->len; |
len | 126 | fs/isofs/rock.c | len -= rr->len; |
len | 173 | fs/isofs/rock.c | int len; |
len | 181 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(de, chr, len); |
len | 187 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 189 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 191 | fs/isofs/rock.c | chr += rr->len; |
len | 192 | fs/isofs/rock.c | len -= rr->len; |
len | 222 | fs/isofs/rock.c | if((strlen(retname) + rr->len - 5) >= 254) { |
len | 226 | fs/isofs/rock.c | strncat(retname, rr->u.NM.name, rr->len - 5); |
len | 227 | fs/isofs/rock.c | retnamlen += rr->len - 5; |
len | 256 | fs/isofs/rock.c | int len; |
len | 262 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(de, chr, len); |
len | 270 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 272 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 274 | fs/isofs/rock.c | chr += rr->len; |
len | 275 | fs/isofs/rock.c | len -= rr->len; |
len | 324 | fs/isofs/rock.c | slen = rr->len - 5; |
len | 331 | fs/isofs/rock.c | inode->i_size += slp->len; |
len | 346 | fs/isofs/rock.c | slen -= slp->len + 2; |
len | 347 | fs/isofs/rock.c | slp = (struct SL_component *) (((char *) slp) + slp->len + 2); |
len | 404 | fs/isofs/rock.c | int len; |
len | 446 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(raw_inode, chr, len); |
len | 449 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 452 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 454 | fs/isofs/rock.c | chr += rr->len; |
len | 455 | fs/isofs/rock.c | len -= rr->len; |
len | 467 | fs/isofs/rock.c | slen = rr->len - 5; |
len | 478 | fs/isofs/rock.c | strncat(rpnt,slp->text, slp->len); |
len | 493 | fs/isofs/rock.c | slen -= slp->len + 2; |
len | 494 | 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 | 98 | fs/nfs/proc.c | #define QUADLEN(len) (((len) + 3) >> 2) |
len | 114 | fs/nfs/proc.c | int len = strlen(string); |
len | 115 | fs/nfs/proc.c | int quadlen = QUADLEN(len); |
len | 118 | fs/nfs/proc.c | *p++ = htonl(len); |
len | 119 | fs/nfs/proc.c | memcpy(p, string, len); |
len | 125 | fs/nfs/proc.c | unsigned int len = ntohl(*p++); |
len | 126 | fs/nfs/proc.c | if (len > maxlen) |
len | 128 | fs/nfs/proc.c | memcpy(string, p, len); |
len | 129 | fs/nfs/proc.c | string[len] = '\0'; |
len | 130 | fs/nfs/proc.c | return p + QUADLEN(len); |
len | 133 | fs/nfs/proc.c | static inline int *xdr_decode_string2(int *p, char **string, unsigned int *len, |
len | 136 | fs/nfs/proc.c | *len = ntohl(*p++); |
len | 137 | fs/nfs/proc.c | if (*len > maxlen) |
len | 140 | fs/nfs/proc.c | return p + QUADLEN(*len); |
len | 144 | fs/nfs/proc.c | static inline int *xdr_encode_data(int *p, char *data, int len) |
len | 146 | fs/nfs/proc.c | int quadlen = QUADLEN(len); |
len | 149 | fs/nfs/proc.c | *p++ = htonl(len); |
len | 150 | fs/nfs/proc.c | memcpy_fromfs(p, data, len); |
len | 157 | fs/nfs/proc.c | unsigned len = *lenp = ntohl(*p++); |
len | 158 | fs/nfs/proc.c | if (len > maxlen) |
len | 161 | fs/nfs/proc.c | memcpy_tofs(data, p, len); |
len | 163 | fs/nfs/proc.c | memcpy(data, p, len); |
len | 164 | fs/nfs/proc.c | return p + QUADLEN(len); |
len | 342 | fs/nfs/proc.c | int **p0, char **string, unsigned int *len, unsigned int maxlen) |
len | 358 | fs/nfs/proc.c | if (!(p = xdr_decode_string2(p, string, len, maxlen))) { |
len | 382 | fs/nfs/proc.c | int len; |
len | 401 | fs/nfs/proc.c | if (!(p = xdr_decode_data(p, data, &len, count, fs))) { |
len | 406 | fs/nfs/proc.c | status = len; |
len | 407 | fs/nfs/proc.c | PRINTK("NFS reply read %d\n", len); |
len | 60 | fs/nfs/sock.c | int len; |
len | 77 | fs/nfs/sock.c | len = ((char *) end) - ((char *) start); |
len | 105 | 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 | 174 | fs/proc/array.c | int i, len; |
len | 179 | fs/proc/array.c | len = sprintf(buffer, |
len | 199 | fs/proc/array.c | len += sprintf(buffer + len, " %u", kstat.interrupts[i]); |
len | 200 | fs/proc/array.c | len += sprintf(buffer + len, |
len | 205 | 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 | 151 | fs/proc/net.c | static int proc_lookupnet(struct inode * dir,const char * name, int len, |
len | 164 | 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 | 133 | ibcs/binfmt_elf.c | unsigned int len; |
len | 203 | ibcs/binfmt_elf.c | len = (elf_bss + 0xfff) & 0xfffff000; /* What we have mapped so far */ |
len | 206 | ibcs/binfmt_elf.c | if (last_bss > len) |
len | 207 | ibcs/binfmt_elf.c | do_mmap(NULL, len, last_bss-len, |
len | 570 | ibcs/binfmt_elf.c | unsigned int len; |
len | 577 | ibcs/binfmt_elf.c | len = 0; |
len | 645 | ibcs/binfmt_elf.c | len = (elf_phdata->p_filesz + elf_phdata->p_vaddr+ 0xfff) & 0xfffff000; |
len | 647 | ibcs/binfmt_elf.c | if (bss > len) |
len | 648 | ibcs/binfmt_elf.c | do_mmap(NULL, len, bss-len, |
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 | 263 | include/asm-sparc/openprom.h | int (*no_setprop)(int node, caddr_t name, caddr_t val, int len); |
len | 33 | include/linux/etherdevice.h | void *saddr, unsigned len, |
len | 65 | include/linux/ext_fs.h | extern int ext_lookup(struct inode * dir,const char * name, int len, |
len | 67 | include/linux/ext_fs.h | extern int ext_create(struct inode * dir,const char * name, int len, int mode, |
len | 69 | include/linux/ext_fs.h | extern int ext_mkdir(struct inode * dir, const char * name, int len, int mode); |
len | 70 | include/linux/ext_fs.h | extern int ext_rmdir(struct inode * dir, const char * name, int len); |
len | 71 | include/linux/ext_fs.h | extern int ext_unlink(struct inode * dir, const char * name, int len); |
len | 72 | include/linux/ext_fs.h | extern int ext_symlink(struct inode * inode, const char * name, int len, |
len | 74 | include/linux/ext_fs.h | extern int ext_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
len | 75 | include/linux/ext_fs.h | extern int ext_mknod(struct inode * dir, const char * name, int len, int mode, int rdev); |
len | 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 | 80 | include/linux/minix_fs.h | extern int minix_lookup(struct inode * dir,const char * name, int len, |
len | 82 | include/linux/minix_fs.h | extern int minix_create(struct inode * dir,const char * name, int len, int mode, |
len | 84 | include/linux/minix_fs.h | extern int minix_mkdir(struct inode * dir, const char * name, int len, int mode); |
len | 85 | include/linux/minix_fs.h | extern int minix_rmdir(struct inode * dir, const char * name, int len); |
len | 86 | include/linux/minix_fs.h | extern int minix_unlink(struct inode * dir, const char * name, int len); |
len | 87 | include/linux/minix_fs.h | extern int minix_symlink(struct inode * inode, const char * name, int len, |
len | 89 | include/linux/minix_fs.h | extern int minix_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
len | 90 | include/linux/minix_fs.h | extern int minix_mknod(struct inode * dir, const char * name, int len, int mode, int rdev); |
len | 204 | 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 | 108 | include/linux/net.h | int (*listen) (struct socket *sock, int len); |
len | 109 | include/linux/net.h | int (*send) (struct socket *sock, void *buff, int len, int nonblock, |
len | 111 | include/linux/net.h | int (*recv) (struct socket *sock, void *buff, int len, int nonblock, |
len | 113 | include/linux/net.h | int (*sendto) (struct socket *sock, void *buff, int len, int nonblock, |
len | 115 | include/linux/net.h | int (*recvfrom) (struct socket *sock, void *buff, int len, int nonblock, |
len | 147 | include/linux/netdevice.h | unsigned len, |
len | 204 | 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 | 60 | include/linux/skbuff.h | unsigned long len; |
len | 156 | include/linux/soundcard.h | long len; /* Size of the wave data in bytes */ |
len | 215 | include/linux/soundcard.h | long len; /* Size of the sysex data in bytes */ |
len | 795 | include/linux/soundcard.h | #define SEQ_DEFINEBUF(len) unsigned char _seqbuf[len]; int _seqbuflen = len;int _seqbufptr = 0 |
len | 799 | include/linux/soundcard.h | #define _SEQ_NEEDBUF(len) if ((_seqbufptr+(len)) > _seqbuflen) seqbuf_dump() |
len | 800 | include/linux/soundcard.h | #define _SEQ_ADVBUF(len) _seqbufptr += len |
len | 817 | include/linux/soundcard.h | #define _SEQ_NEEDBUF(len) /* empty */ |
len | 960 | include/linux/soundcard.h | #define SEQ_WRPATCH(patchx, len) {if (_seqbufptr) seqbuf_dump();\ |
len | 961 | include/linux/soundcard.h | if (write(seqfd, (char*)(patchx), len)==-1) \ |
len | 963 | include/linux/soundcard.h | #define SEQ_WRPATCH2(patchx, len) (seqbuf_dump(), write(seqfd, (char*)(patchx), len)) |
len | 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 | 337 | init/main.c | int len = strlen(devnames[n]); |
len | 338 | init/main.c | if (!strncmp(line,devnames[n],len)) { |
len | 339 | init/main.c | ROOT_DEV = devnums[n]+simple_strtoul(line+len,NULL,0); |
len | 380 | init/main.c | int len = 0; |
len | 396 | init/main.c | if (COMMAND_LINE_SIZE <= ++len) |
len | 75 | kernel/dma.c | int i, len = 0; |
len | 79 | kernel/dma.c | len += sprintf(buf+len, "%2d: %s\n", |
len | 84 | kernel/dma.c | return len; |
len | 112 | kernel/ioport.c | { int len=0,num,from; |
len | 120 | kernel/ioport.c | len+=sprintf(buf+len,"%04x\n",num); |
len | 122 | kernel/ioport.c | len+=sprintf(buf+len,"%04x-%04x\n",from,num); |
len | 123 | kernel/ioport.c | if(len>4000) { |
len | 124 | kernel/ioport.c | len+=sprintf((buf+len),"4k-Limit reached!\n"); |
len | 125 | kernel/ioport.c | return len; |
len | 128 | kernel/ioport.c | return len; |
len | 195 | kernel/irq.c | int i, len = 0; |
len | 201 | kernel/irq.c | len += sprintf(buf+len, "%2d: %8d %c %s\n", |
len | 206 | kernel/irq.c | return len; |
len | 54 | kernel/printk.c | asmlinkage int sys_syslog(int type, char * buf, int len) |
len | 69 | kernel/printk.c | if (!buf || len < 0) |
len | 71 | kernel/printk.c | if (!len) |
len | 73 | kernel/printk.c | error = verify_area(VERIFY_WRITE,buf,len); |
len | 85 | kernel/printk.c | while (log_size && i < len) { |
len | 102 | kernel/printk.c | if (!buf || len < 0) |
len | 104 | kernel/printk.c | if (!len) |
len | 106 | kernel/printk.c | error = verify_area(VERIFY_WRITE,buf,len); |
len | 109 | kernel/printk.c | count = len; |
len | 132 | kernel/printk.c | if (len < 0 || len > 8) |
len | 134 | kernel/printk.c | console_loglevel = len; |
len | 655 | kernel/sys.c | asmlinkage int sys_sethostname(char *name, int len) |
len | 661 | kernel/sys.c | if (len > __NEW_UTS_LEN) |
len | 663 | kernel/sys.c | for (i=0; i < len; i++) { |
len | 675 | kernel/sys.c | asmlinkage int sys_setdomainname(char *name, int len) |
len | 681 | kernel/sys.c | if (len > __NEW_UTS_LEN) |
len | 683 | 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 | 478 | net/inet/af_inet.c | static void def_callback2(struct sock *sk,int len) |
len | 312 | net/inet/arp.c | skb->len = sizeof(struct arphdr) + dev->hard_header_len + 2*(dev->addr_len+4); |
len | 321 | 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 | 922 | net/inet/arp.c | int len=0; |
len | 934 | net/inet/arp.c | len+=size; |
len | 962 | net/inet/arp.c | size = sprintf(buffer+len, |
len | 968 | net/inet/arp.c | size += sprintf(buffer+len+size, |
len | 973 | net/inet/arp.c | len+=size; |
len | 974 | net/inet/arp.c | pos=begin+len; |
len | 978 | net/inet/arp.c | len=0; |
len | 988 | net/inet/arp.c | len-=(offset-begin); /* Start slop */ |
len | 989 | net/inet/arp.c | if(len>length) |
len | 990 | net/inet/arp.c | len=length; /* Ending slop */ |
len | 991 | net/inet/arp.c | return len; |
len | 548 | net/inet/dev.c | int dev_rint(unsigned char *buff, long len, int flags, struct device *dev) |
len | 556 | net/inet/dev.c | if (dev == NULL || buff == NULL || len <= 0) |
len | 573 | net/inet/dev.c | skb = alloc_skb(len, GFP_ATOMIC); |
len | 588 | net/inet/dev.c | left = len; |
len | 590 | net/inet/dev.c | len2 = len; |
len | 609 | net/inet/dev.c | skb->len = len; |
len | 722 | net/inet/dev.c | skb->len -= skb->dev->hard_header_len; |
len | 763 | net/inet/dev.c | skb2 = alloc_skb(skb->len, GFP_ATOMIC); |
len | 892 | net/inet/dev.c | int len; |
len | 903 | net/inet/dev.c | len = ifc.ifc_len; |
len | 911 | net/inet/dev.c | err=verify_area(VERIFY_WRITE,pos,len); |
len | 934 | net/inet/dev.c | len -= sizeof(struct ifreq); |
len | 940 | net/inet/dev.c | if (len < sizeof(struct ifreq)) |
len | 995 | net/inet/dev.c | int len=0; |
len | 1007 | net/inet/dev.c | len+=size; |
len | 1012 | net/inet/dev.c | size = sprintf_stats(buffer+len, dev); |
len | 1013 | net/inet/dev.c | len+=size; |
len | 1014 | net/inet/dev.c | pos=begin+len; |
len | 1018 | net/inet/dev.c | len=0; |
len | 1026 | net/inet/dev.c | len-=(offset-begin); /* Start slop */ |
len | 1027 | net/inet/dev.c | if(len>length) |
len | 1028 | net/inet/dev.c | len=length; /* Ending slop */ |
len | 1029 | net/inet/dev.c | return len; |
len | 83 | net/inet/eth.c | void *daddr, void *saddr, unsigned len, |
len | 96 | net/inet/eth.c | eth->h_proto = htons(len); |
len | 29 | net/inet/eth.h | unsigned long saddr, unsigned len); |
len | 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 | 90 | net/inet/igmp.c | skb->len=tmp+sizeof(*igh); |
len | 190 | net/inet/igmp.c | unsigned long daddr, unsigned short len, unsigned long saddr, int redo, |
len | 188 | net/inet/ip.c | static int ip_send(struct sk_buff *skb, unsigned long daddr, int len, struct device *dev, unsigned long saddr) |
len | 200 | net/inet/ip.c | mac = dev->hard_header(skb->data, dev, ETH_P_IP, NULL, NULL, len, skb); |
len | 220 | net/inet/ip.c | struct device **dev, int type, struct options *opt, int len, int tos, int ttl) |
len | 298 | net/inet/ip.c | tmp = ip_send(skb, raddr, len, *dev, saddr); |
len | 300 | net/inet/ip.c | len -= tmp; |
len | 352 | net/inet/ip.c | int i, len = sizeof(struct iphdr); |
len | 370 | net/inet/ip.c | while (!done && len < iph->ihl*4) switch(*buff) { |
len | 376 | net/inet/ip.c | len++; |
len | 390 | net/inet/ip.c | len += 11; |
len | 395 | net/inet/ip.c | len += *buff; |
len | 412 | net/inet/ip.c | len += *buff; |
len | 429 | net/inet/ip.c | len += *buff; |
len | 444 | net/inet/ip.c | len += 4; |
len | 451 | net/inet/ip.c | len += *buff; |
len | 453 | net/inet/ip.c | opt->tstamp.len = *buff / 4 - 1; |
len | 460 | net/inet/ip.c | for (i = 0; i < opt->tstamp.len; i++) { |
len | 528 | net/inet/ip.c | unsigned short ip_compute_csum(unsigned char * buff, int len) |
len | 533 | net/inet/ip.c | if (len > 3) |
len | 546 | net/inet/ip.c | : "0" (sum), "c" (len >> 2) ,"1" (buff) |
len | 549 | net/inet/ip.c | if (len & 2) |
len | 558 | net/inet/ip.c | if (len & 1) |
len | 620 | net/inet/ip.c | fp->len = end - offset; |
len | 794 | net/inet/ip.c | qp->len = 0; |
len | 828 | net/inet/ip.c | if (qp->len == 0) |
len | 862 | net/inet/ip.c | int count, len; |
len | 868 | net/inet/ip.c | len = qp->maclen + qp->ihlen + qp->len; |
len | 870 | net/inet/ip.c | if ((skb = alloc_skb(len,GFP_ATOMIC)) == NULL) |
len | 879 | net/inet/ip.c | skb->len = (len - qp->maclen); |
len | 897 | net/inet/ip.c | if(count+fp->len > skb->len) |
len | 905 | net/inet/ip.c | memcpy((ptr + fp->offset), fp->ptr, fp->len); |
len | 906 | net/inet/ip.c | count += fp->len; |
len | 1002 | net/inet/ip.c | qp->len = end; |
len | 1042 | net/inet/ip.c | next->len -= i; /* so reduce size of */ |
len | 1050 | net/inet/ip.c | if (next->len <= 0) |
len | 1126 | net/inet/ip.c | int left, mtu, hlen, len; |
len | 1195 | net/inet/ip.c | len = left; |
len | 1197 | net/inet/ip.c | if (len > mtu) |
len | 1198 | net/inet/ip.c | len = mtu; |
len | 1201 | net/inet/ip.c | if (len < left) |
len | 1203 | net/inet/ip.c | len/=8; |
len | 1204 | net/inet/ip.c | len*=8; |
len | 1210 | net/inet/ip.c | if ((skb2 = alloc_skb(len + hlen,GFP_ATOMIC)) == NULL) |
len | 1225 | net/inet/ip.c | skb2->len = len + hlen; |
len | 1251 | net/inet/ip.c | memcpy(skb2->h.raw + hlen, ptr, len); |
len | 1252 | net/inet/ip.c | left -= len; |
len | 1267 | net/inet/ip.c | ptr += len; |
len | 1268 | net/inet/ip.c | offset += len; |
len | 1414 | net/inet/ip.c | skb2 = alloc_skb(dev2->hard_header_len + skb->len, GFP_ATOMIC); |
len | 1426 | net/inet/ip.c | skb2->len = skb->len + dev2->hard_header_len; |
len | 1432 | net/inet/ip.c | memcpy(ptr + dev2->hard_header_len, skb->h.raw, skb->len); |
len | 1435 | net/inet/ip.c | (void) ip_send(skb2, raddr, skb->len, dev2, dev2->pa_addr); |
len | 1445 | net/inet/ip.c | if(skb2->len > dev2->mtu + dev2->hard_header_len) |
len | 1512 | 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 | 1538 | net/inet/ip.c | skb->len=ntohs(iph->tot_len); |
len | 1765 | net/inet/ip.c | int len=skb->len-old_dev->hard_header_len; |
len | 1766 | net/inet/ip.c | struct sk_buff *newskb=alloc_skb(len+dev->hard_header_len, GFP_ATOMIC); |
len | 1781 | net/inet/ip.c | newskb->len=len+dev->hard_header_len; |
len | 1784 | 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 | 1785 | net/inet/ip.c | memcpy(newskb->ip_hdr,skb->ip_hdr,len); |
len | 1838 | net/inet/ip.c | iph->tot_len = ntohs(skb->len-dev->hard_header_len); |
len | 1861 | net/inet/ip.c | if(skb->len > dev->mtu + dev->hard_header_len) |
len | 2019 | net/inet/ip.c | int len=0; |
len | 2022 | net/inet/ip.c | len=sprintf(buffer,"Device : Multicast\n"); |
len | 2030 | net/inet/ip.c | len+=sprintf(buffer+len,"%-10s: %08lX\n", im->interface->name, im->multiaddr); |
len | 2031 | net/inet/ip.c | pos=begin+len; |
len | 2034 | net/inet/ip.c | len=0; |
len | 2043 | net/inet/ip.c | len-=(offset-begin); |
len | 2044 | net/inet/ip.c | if(len>length) |
len | 2045 | net/inet/ip.c | len=length; |
len | 2046 | net/inet/ip.c | return len; |
len | 2352 | net/inet/ip.c | int len; |
len | 2377 | net/inet/ip.c | len=strlen(sk->ip_mc_name); |
len | 2378 | net/inet/ip.c | err=verify_area(VERIFY_WRITE, optval, len); |
len | 2381 | net/inet/ip.c | put_fs_long(len,(unsigned long *) optlen); |
len | 2382 | net/inet/ip.c | memcpy_tofs((void *)optval,sk->ip_mc_name, len); |
len | 51 | net/inet/ip.h | int len; /* length of this fragment */ |
len | 62 | net/inet/ip.h | int len; /* total length of original datagram */ |
len | 83 | net/inet/ip.h | struct options *opt, int len, |
len | 85 | net/inet/ip.h | extern unsigned short ip_compute_csum(unsigned char * buff, int len); |
len | 710 | net/inet/ip_fw.c | struct ip_fw *check_ipfw_struct(struct ip_fw *frwl, int len) |
len | 713 | net/inet/ip_fw.c | if ( len != sizeof(struct ip_fw) ) |
len | 765 | net/inet/ip_fw.c | int ip_acct_ctl(int stage, void *m, int len) |
len | 783 | net/inet/ip_fw.c | if (!(frwl=check_ipfw_struct(m,len))) |
len | 810 | net/inet/ip_fw.c | int ip_fw_ctl(int stage, void *m, int len) |
len | 834 | net/inet/ip_fw.c | if ( len < sizeof(struct iphdr) + 2 * sizeof(unsigned short) ) |
len | 838 | net/inet/ip_fw.c | len,sizeof(struct ip) + 2 * sizeof(unsigned short)); |
len | 873 | net/inet/ip_fw.c | frwl=check_ipfw_struct(m,len); |
len | 912 | net/inet/ip_fw.c | int len=0; |
len | 915 | net/inet/ip_fw.c | len=sprintf(buffer,"Firewall Rules\n"); |
len | 923 | net/inet/ip_fw.c | len+=sprintf(buffer+len,"%08lX/%08lX->%08lX/%08lX %X ", |
len | 927 | net/inet/ip_fw.c | len+=sprintf(buffer+len,"%u %u %lu %lu ", |
len | 929 | net/inet/ip_fw.c | len+=sprintf(buffer+len,"%u %u %u %u %u %u %u %u %u %u\n", |
len | 933 | net/inet/ip_fw.c | pos=begin+len; |
len | 936 | net/inet/ip_fw.c | len=0; |
len | 945 | net/inet/ip_fw.c | len-=(offset-begin); |
len | 946 | net/inet/ip_fw.c | if(len>length) |
len | 947 | net/inet/ip_fw.c | len=length; |
len | 948 | net/inet/ip_fw.c | return len; |
len | 151 | net/inet/ipx.c | int len=0; |
len | 157 | net/inet/ipx.c | len += sprintf (buffer,"Type local_address rem_address tx_queue rx_queue st uid\n"); |
len | 160 | net/inet/ipx.c | len += sprintf (buffer+len,"%02X ", s->ipx_type); |
len | 161 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX:%02X%02X%02X%02X%02X%02X:%04X ", htonl(s->ipx_source_addr.net), |
len | 165 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX:%02X%02X%02X%02X%02X%02X:%04X ", htonl(s->ipx_dest_addr.net), |
len | 169 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX:%08lX ", s->wmem_alloc, s->rmem_alloc); |
len | 170 | net/inet/ipx.c | len += sprintf (buffer+len,"%02X %d\n", s->state, SOCK_INODE(s->socket)->i_uid); |
len | 173 | net/inet/ipx.c | pos=begin+len; |
len | 177 | net/inet/ipx.c | len=0; /* Keep dumping into the buffer start */ |
len | 186 | net/inet/ipx.c | len-=(offset-begin); /* Remove unwanted header data from length */ |
len | 187 | net/inet/ipx.c | if(len>length) |
len | 188 | net/inet/ipx.c | len=length; /* Remove unwanted tail data from length */ |
len | 190 | net/inet/ipx.c | return len; |
len | 437 | net/inet/ipx.c | int len=0; |
len | 441 | net/inet/ipx.c | len += sprintf (buffer,"Net Router Flags Dev\n"); |
len | 444 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX %08lX:%02X%02X%02X%02X%02X%02X %02X %s\n", ntohl(rt->net), |
len | 447 | net/inet/ipx.c | pos=begin+len; |
len | 450 | net/inet/ipx.c | len=0; |
len | 457 | net/inet/ipx.c | len-=(offset-begin); |
len | 458 | net/inet/ipx.c | if(len>length) |
len | 459 | net/inet/ipx.c | len=length; |
len | 460 | net/inet/ipx.c | return len; |
len | 566 | net/inet/ipx.c | static void def_callback2(struct sock *sk, int len) |
len | 887 | net/inet/ipx.c | incoming_size = skb->len - ntohs(ipx->ipx_pktsize); |
len | 902 | net/inet/ipx.c | skb2->len=ntohs(ipx->ipx_pktsize) + outgoing_size; |
len | 960 | net/inet/ipx.c | static int ipx_sendto(struct socket *sock, void *ubuf, int len, int noblock, |
len | 1027 | net/inet/ipx.c | size=sizeof(ipx_packet)+len; /* For mac headers */ |
len | 1063 | net/inet/ipx.c | skb->len=size; |
len | 1090 | net/inet/ipx.c | ipx->ipx_pktsize=htons(len+sizeof(ipx_packet)); |
len | 1101 | net/inet/ipx.c | memcpy_fromfs((char *)(ipx+1),ubuf,len); |
len | 1120 | net/inet/ipx.c | skb2=alloc_skb(skb->len, GFP_ATOMIC); |
len | 1124 | net/inet/ipx.c | skb2->len=skb->len; |
len | 1128 | net/inet/ipx.c | memcpy(skb2->data, skb->data, skb->len); |
len | 1133 | net/inet/ipx.c | return len; |
len | 1238 | net/inet/ipx.c | amount=skb->len; |
len | 43 | net/inet/p8022.c | unsigned long len = skb->len; |
len | 47 | net/inet/p8022.c | dev->hard_header(skb->data, dev, len - hard_len, |
len | 48 | net/inet/p8022.c | dest_node, NULL, len - hard_len, skb); |
len | 12 | net/inet/p8023.c | unsigned long len = skb->len; |
len | 15 | net/inet/p8023.c | dev->hard_header(skb->data, dev, len - hard_len, |
len | 16 | net/inet/p8023.c | dest_node, NULL, len - hard_len, skb); |
len | 85 | net/inet/packet.c | skb->len += dev->hard_header_len; |
len | 123 | net/inet/packet.c | static int packet_sendto(struct sock *sk, unsigned char *from, int len, |
len | 166 | net/inet/packet.c | if(len>dev->mtu+dev->hard_header_len) |
len | 169 | net/inet/packet.c | skb = sk->prot->wmalloc(sk, len, 0, GFP_KERNEL); |
len | 187 | net/inet/packet.c | memcpy_fromfs(skb->data, from, len); |
len | 188 | net/inet/packet.c | skb->len = len; |
len | 199 | net/inet/packet.c | return(len); |
len | 208 | net/inet/packet.c | int len, int noblock, unsigned flags) |
len | 210 | net/inet/packet.c | return(packet_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
len | 266 | net/inet/packet.c | int packet_recvfrom(struct sock *sk, unsigned char *to, int len, |
len | 311 | net/inet/packet.c | truesize = skb->len; |
len | 312 | net/inet/packet.c | copied = min(len, truesize); |
len | 348 | net/inet/packet.c | int len, int noblock, unsigned flags) |
len | 350 | net/inet/packet.c | return(packet_recvfrom(sk, buff, len, noblock, flags, NULL, NULL)); |
len | 12 | net/inet/pe2.c | unsigned long len = skb->len; |
len | 16 | net/inet/pe2.c | dest_node, NULL, len - hard_len, skb); |
len | 65 | net/inet/proc.c | int len=0; |
len | 70 | net/inet/proc.c | len+=sprintf(buffer, "sl local_address rem_address st tx_queue rx_queue tr tm->when uid\n"); |
len | 93 | net/inet/proc.c | len+=sprintf(buffer+len, "%2d: %08lX:%04X %08lX:%04X %02X %08lX:%08lX %02X:%08lX %08X %d %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 | 500 | net/inet/skbuff.c | n->len=skb->len; |
len | 500 | net/inet/sock.c | sk->data_ready(sk,skb->len); |
len | 535 | net/inet/sock.c | skb->saddr, skb->len, skb->daddr, 1, |
len | 200 | net/inet/sock.h | int len, int nonblock, unsigned flags); |
len | 202 | net/inet/sock.h | int len, int nonblock, unsigned flags); |
len | 204 | net/inet/sock.h | unsigned char *from, int len, int noblock, |
len | 208 | net/inet/sock.h | unsigned char *from, int len, int noblock, |
len | 215 | net/inet/sock.h | struct options *opt, int len, int tos, int ttl); |
len | 227 | net/inet/sock.h | unsigned short len, unsigned long saddr, |
len | 392 | net/inet/tcp.c | size = skb->len - (((unsigned char *) th) - skb->data); |
len | 613 | 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 | 776 | net/inet/tcp.c | unsigned short tcp_check(struct tcphdr *th, int len, |
len | 794 | net/inet/tcp.c | : "0"(daddr), "c"(saddr), "d"((ntohs(len) << 16) + IPPROTO_TCP*256) |
len | 848 | net/inet/tcp.c | : "0"(sum), "c"(len), "S"(th) |
len | 859 | net/inet/tcp.c | unsigned long daddr, int len, struct sock *sk) |
len | 862 | net/inet/tcp.c | th->check = tcp_check(th, len, saddr, daddr); |
len | 872 | net/inet/tcp.c | size = skb->len - ((unsigned char *) th - skb->data); |
len | 875 | net/inet/tcp.c | if (size < sizeof(struct tcphdr) || size > skb->len) |
len | 878 | net/inet/tcp.c | skb, skb->data, th, skb->len); |
len | 1008 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
len | 1022 | net/inet/tcp.c | buff->len += tmp; |
len | 1100 | net/inet/tcp.c | int len, int nonblock, unsigned flags) |
len | 1113 | net/inet/tcp.c | while(len > 0) |
len | 1230 | net/inet/tcp.c | copy = min(sk->mss - (skb->len - hdrlen), len); |
len | 1238 | net/inet/tcp.c | memcpy_fromfs(skb->data + skb->len, from, copy); |
len | 1239 | net/inet/tcp.c | skb->len += copy; |
len | 1242 | net/inet/tcp.c | len -= copy; |
len | 1245 | net/inet/tcp.c | if ((skb->len - hdrlen) >= sk->mss || |
len | 1268 | net/inet/tcp.c | if (copy > len) |
len | 1269 | net/inet/tcp.c | copy = len; |
len | 1342 | net/inet/tcp.c | skb->len = 0; |
len | 1364 | net/inet/tcp.c | skb->len += tmp; |
len | 1368 | net/inet/tcp.c | tmp = tcp_build_header((struct tcphdr *)buff, sk, len-copy); |
len | 1383 | net/inet/tcp.c | skb->len += tmp; |
len | 1388 | net/inet/tcp.c | len -= copy; |
len | 1389 | net/inet/tcp.c | skb->len += copy; |
len | 1425 | net/inet/tcp.c | int len, int nonblock, unsigned flags, |
len | 1440 | net/inet/tcp.c | return tcp_write(sk, from, len, nonblock, flags); |
len | 1473 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
len | 1490 | net/inet/tcp.c | buff->len += tmp; |
len | 1609 | net/inet/tcp.c | unsigned char *to, int len, unsigned flags) |
len | 1662 | net/inet/tcp.c | int len, int nonblock, unsigned flags) |
len | 1676 | net/inet/tcp.c | return tcp_read_urg(sk, nonblock, to, len, flags); |
len | 1685 | net/inet/tcp.c | while (len > 0) |
len | 1708 | net/inet/tcp.c | if (offset < skb->len) |
len | 1765 | net/inet/tcp.c | used = skb->len - offset; |
len | 1766 | net/inet/tcp.c | if (len < used) |
len | 1767 | net/inet/tcp.c | used = len; |
len | 1791 | net/inet/tcp.c | len -= used; |
len | 1796 | net/inet/tcp.c | if (used + offset < skb->len) |
len | 1885 | net/inet/tcp.c | buff->len = sizeof(*t1); |
len | 1923 | net/inet/tcp.c | buff->len += tmp; |
len | 2027 | net/inet/tcp.c | buff->len = sizeof(*t1); |
len | 2048 | net/inet/tcp.c | buff->len += tmp; |
len | 2363 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr)+4; |
len | 2393 | net/inet/tcp.c | buff->len += tmp; |
len | 2559 | net/inet/tcp.c | buff->len = sizeof(*t1); |
len | 2592 | net/inet/tcp.c | buff->len += tmp; |
len | 2697 | net/inet/tcp.c | size = skb->len - (((unsigned char *) th) - skb->data); |
len | 2715 | net/inet/tcp.c | extern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len) |
len | 2765 | net/inet/tcp.c | if (len != th->doff*4) |
len | 3257 | net/inet/tcp.c | sk->fin_seq = th->seq + skb->len + th->syn + th->fin; |
len | 3343 | net/inet/tcp.c | unsigned long saddr, unsigned short len) |
len | 3352 | net/inet/tcp.c | skb->len = len -(th->doff*4); |
len | 3359 | net/inet/tcp.c | sk->bytes_rcv += skb->len; |
len | 3361 | net/inet/tcp.c | if (skb->len == 0 && !th->fin && !th->urg && !th->psh) |
len | 3386 | net/inet/tcp.c | if(skb->len) /* We don't care if its just an ack or |
len | 3389 | net/inet/tcp.c | new_seq= th->seq + skb->len + th->syn; /* Right edge of _data_ part of frame */ |
len | 3467 | net/inet/tcp.c | if (th->seq==skb1->h.th->seq && skb->len>= skb1->len) |
len | 3502 | net/inet/tcp.c | th->ack_seq = th->seq + skb->len; |
len | 3702 | net/inet/tcp.c | unsigned long saddr, unsigned long len) |
len | 3725 | net/inet/tcp.c | if (ptr >= len) |
len | 3851 | net/inet/tcp.c | buff->len = 24; |
len | 3878 | net/inet/tcp.c | buff->len += tmp; |
len | 3957 | net/inet/tcp.c | extern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len, |
len | 3962 | net/inet/tcp.c | next_seq = len - 4*th->doff; |
len | 4046 | net/inet/tcp.c | unsigned long daddr, unsigned short len, |
len | 4095 | net/inet/tcp.c | if (tcp_check(th, len, saddr, daddr )) |
len | 4122 | net/inet/tcp.c | skb->len = len; |
len | 4244 | net/inet/tcp.c | if(!tcp_ack(sk,th,saddr,len)) |
len | 4356 | net/inet/tcp.c | if(!tcp_sequence(sk,th,len,opt,saddr,dev)) |
len | 4381 | net/inet/tcp.c | if(th->ack && !tcp_ack(sk,th,saddr,len)) |
len | 4402 | net/inet/tcp.c | if(tcp_urg(sk, th, saddr, len)) |
len | 4414 | net/inet/tcp.c | if(tcp_data(skb,sk, saddr, len)) |
len | 4463 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
len | 4479 | 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 | 82 | 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 | 154 | net/inet/udp.c | static unsigned short udp_check(struct udphdr *uh, int len, unsigned long saddr, unsigned long daddr) |
len | 162 | net/inet/udp.c | : "0"(daddr), "c"(saddr), "d"((ntohs(len) << 16) + IPPROTO_UDP*256) |
len | 165 | net/inet/udp.c | if (len > 3) |
len | 174 | net/inet/udp.c | : "0"(sum), "c"(len/4) ,"1"(uh) |
len | 194 | net/inet/udp.c | if ((len & 2) != 0) |
len | 208 | net/inet/udp.c | if ((len & 1) != 0) |
len | 233 | net/inet/udp.c | unsigned long daddr, int len, struct sock *sk) |
len | 238 | net/inet/udp.c | uh->check = udp_check(uh, len, saddr, daddr); |
len | 251 | net/inet/udp.c | unsigned char *from, int len, int rt) |
len | 265 | net/inet/udp.c | size = sk->prot->max_header + len; |
len | 305 | net/inet/udp.c | skb->len = tmp + sizeof(struct udphdr) + len; /* len + UDP + IP + MAC */ |
len | 313 | net/inet/udp.c | uh->len = htons(len + sizeof(struct udphdr)); |
len | 322 | net/inet/udp.c | memcpy_fromfs(buff, from, len); |
len | 328 | net/inet/udp.c | udp_send_check(uh, saddr, sin->sin_addr.s_addr, skb->len - tmp, sk); |
len | 337 | net/inet/udp.c | return(len); |
len | 341 | net/inet/udp.c | static int udp_sendto(struct sock *sk, unsigned char *from, int len, int noblock, |
len | 389 | net/inet/udp.c | tmp = udp_send(sk, &sin, from, len, flags); |
len | 400 | net/inet/udp.c | static int udp_write(struct sock *sk, unsigned char *buff, int len, int noblock, |
len | 403 | net/inet/udp.c | return(udp_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
len | 444 | net/inet/udp.c | amount = skb->len; |
len | 466 | net/inet/udp.c | int udp_recvfrom(struct sock *sk, unsigned char *to, int len, |
len | 491 | net/inet/udp.c | truesize = skb->len; |
len | 492 | net/inet/udp.c | copied = min(len, truesize); |
len | 518 | net/inet/udp.c | int udp_read(struct sock *sk, unsigned char *buff, int len, int noblock, |
len | 521 | net/inet/udp.c | return(udp_recvfrom(sk, buff, len, noblock, flags, NULL, NULL)); |
len | 567 | net/inet/udp.c | unsigned long daddr, unsigned short len, |
len | 589 | net/inet/udp.c | ulen = ntohs(uh->len); |
len | 591 | net/inet/udp.c | if (ulen > len || len < sizeof(*uh) || ulen < sizeof(*uh)) |
len | 593 | net/inet/udp.c | printk("UDP: short packet: %d/%d\n", ulen, len); |
len | 599 | net/inet/udp.c | if (uh->check && udp_check(uh, len, saddr, daddr)) |
len | 608 | net/inet/udp.c | len=ulen; |
len | 631 | net/inet/udp.c | udp_deliver(sk, uh, skb1, dev,saddr,daddr,len); |
len | 658 | net/inet/udp.c | return udp_deliver(sk,uh,skb,dev, saddr, daddr, len); |
len | 661 | 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 | 665 | net/inet/udp.c | skb->len = len; |
len | 679 | 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 | 129 | net/socket.c | int len; |
len | 134 | net/socket.c | len=get_fs_long(ulen); |
len | 135 | net/socket.c | if(len>klen) |
len | 136 | net/socket.c | len=klen; |
len | 137 | net/socket.c | if(len<0 || len> MAX_SOCK_ADDR) |
len | 139 | net/socket.c | if(len) |
len | 141 | net/socket.c | if((err=verify_area(VERIFY_WRITE,uaddr,len))<0) |
len | 143 | net/socket.c | memcpy_tofs(uaddr,kaddr,len); |
len | 145 | net/socket.c | put_fs_long(len,ulen); |
len | 820 | net/socket.c | int len; |
len | 863 | net/socket.c | newsock->ops->getname(newsock, (struct sockaddr *)address, &len, 1); |
len | 864 | net/socket.c | move_addr_to_user(address,len, upeer_sockaddr, upeer_addrlen); |
len | 931 | net/socket.c | int len; |
len | 939 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 0); |
len | 942 | net/socket.c | if((err=move_addr_to_user(address,len, usockaddr, usockaddr_len))<0) |
len | 956 | net/socket.c | int len; |
len | 964 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 1); |
len | 967 | net/socket.c | if((err=move_addr_to_user(address,len, usockaddr, usockaddr_len))<0) |
len | 977 | net/socket.c | static int sock_send(int fd, void * buff, int len, unsigned flags) |
len | 988 | net/socket.c | if(len<0) |
len | 990 | net/socket.c | err=verify_area(VERIFY_READ, buff, len); |
len | 993 | net/socket.c | return(sock->ops->send(sock, buff, len, (file->f_flags & O_NONBLOCK), flags)); |
len | 1002 | net/socket.c | static int sock_sendto(int fd, void * buff, int len, unsigned flags, |
len | 1015 | net/socket.c | if(len<0) |
len | 1017 | net/socket.c | err=verify_area(VERIFY_READ,buff,len); |
len | 1024 | net/socket.c | return(sock->ops->sendto(sock, buff, len, (file->f_flags & O_NONBLOCK), |
len | 1037 | net/socket.c | static int sock_recv(int fd, void * buff, int len, unsigned flags) |
len | 1049 | net/socket.c | if(len<0) |
len | 1051 | net/socket.c | if(len==0) |
len | 1053 | net/socket.c | err=verify_area(VERIFY_WRITE, buff, len); |
len | 1057 | net/socket.c | return(sock->ops->recv(sock, buff, len,(file->f_flags & O_NONBLOCK), flags)); |
len | 1066 | net/socket.c | static int sock_recvfrom(int fd, void * buff, int len, unsigned flags, |
len | 1078 | net/socket.c | if(len<0) |
len | 1080 | net/socket.c | if(len==0) |
len | 1083 | net/socket.c | err=verify_area(VERIFY_WRITE,buff,len); |
len | 1087 | net/socket.c | len=sock->ops->recvfrom(sock, buff, len, (file->f_flags & O_NONBLOCK), |
len | 1090 | net/socket.c | if(len<0) |
len | 1091 | net/socket.c | return len; |
len | 1095 | net/socket.c | return len; |
len | 43 | net/unix/proc.c | int len=0; |
len | 50 | net/unix/proc.c | len += sprintf(buffer, "Num RefCount Protocol Flags Type St Path\n"); |
len | 63 | net/unix/proc.c | len += sprintf(buffer+len, "%2d: %08X %08X %08lX %04X %02X", i, |
len | 74 | net/unix/proc.c | len += sprintf(buffer+len, " %s\n", |
len | 79 | net/unix/proc.c | buffer[len++]='\n'; |
len | 82 | net/unix/proc.c | pos=begin+len; |
len | 85 | net/unix/proc.c | len=0; |
len | 96 | net/unix/proc.c | len-=(offset-begin); |
len | 97 | net/unix/proc.c | if(len>length) |
len | 98 | net/unix/proc.c | len=length; |
len | 99 | net/unix/proc.c | return len; |
len | 81 | net/unix/sock.c | static int unix_proto_send(struct socket *sock, void *buff, int len, |
len | 83 | net/unix/sock.c | static int unix_proto_recv(struct socket *sock, void *buff, int len, |
len | 85 | net/unix/sock.c | static int unix_proto_sendto(struct socket *sock, void *buff, int len, |
len | 88 | net/unix/sock.c | static int unix_proto_recvfrom(struct socket *sock, void *buff, int len, |
len | 164 | net/unix/sock.c | static int unix_proto_sendto(struct socket *sock, void *buff, int len, int nonblock, |
len | 170 | net/unix/sock.c | static int unix_proto_recvfrom(struct socket *sock, void *buff, int len, int nonblock, |
len | 190 | net/unix/sock.c | static int unix_proto_send(struct socket *sock, void *buff, int len, int nonblock, |
len | 195 | net/unix/sock.c | return(unix_proto_write(sock, (char *) buff, len, nonblock)); |
len | 203 | net/unix/sock.c | static int unix_proto_recv(struct socket *sock, void *buff, int len, int nonblock, |
len | 208 | net/unix/sock.c | return(unix_proto_read(sock, (char *) buff, len, nonblock)); |
len | 584 | net/unix/sock.c | int len; |
len | 597 | net/unix/sock.c | len = upd->sockaddr_len; |
len | 598 | net/unix/sock.c | memcpy(usockaddr, &upd->sockaddr_un, len); |
len | 599 | net/unix/sock.c | *usockaddr_len=len; |
len | 264 | zBoot/gzip.h | void copy_block OF((char *buf, unsigned len, int header)); |
len | 219 | zBoot/misc.c | int len, i; |
len | 224 | zBoot/misc.c | len = INBUFSIZ-insize; |
len | 225 | zBoot/misc.c | if (len > (input_len-input_ptr+1)) len=input_len-input_ptr+1; |
len | 226 | zBoot/misc.c | if (len == 0 || len == EOF) break; |
len | 228 | zBoot/misc.c | for (i=0;i<len;i++) inbuf[insize+i] = input_data[input_ptr+i]; |
len | 229 | zBoot/misc.c | insize += len; |
len | 230 | zBoot/misc.c | input_ptr += len; |
len | 397 | zBoot/misc.c | unsigned len = (unsigned)get_byte(); |
len | 398 | zBoot/misc.c | len |= ((unsigned)get_byte())<<8; |
len | 399 | zBoot/misc.c | while (len--) (void)get_byte(); |
len | 18 | zBoot/piggyback.c | int c, n=0, len=0; |
len | 35 | zBoot/piggyback.c | len = 0; |
len | 36 | zBoot/piggyback.c | while ((n = read(0, &tmp_buf[len], sizeof(tmp_buf)-len+1)) > 0) |
len | 37 | zBoot/piggyback.c | len += n; |
len | 45 | zBoot/piggyback.c | if (len >= sizeof(tmp_buf)) |
len | 51 | zBoot/piggyback.c | fprintf(stderr, "Compressed size %d.\n", len); |
len | 56 | zBoot/piggyback.c | obj.a_data = len + sizeof(long); |
len | 63 | zBoot/piggyback.c | write(1, tmp_buf, len); |
len | 64 | zBoot/piggyback.c | write(1, (char *)&len, sizeof(len)); |
len | 69 | zBoot/piggyback.c | var_names[1].n_value = len; |
len | 75 | zBoot/piggyback.c | len = sizeof(string_names) + sizeof(len); |
len | 76 | zBoot/piggyback.c | write(1, (char *)&len, sizeof(len)); |