tag | line | file | source code |
len | 32 | drivers/block/ramdisk.c | int len; |
len | 38 | drivers/block/ramdisk.c | len = CURRENT->current_nr_sectors << 9; |
len | 41 | drivers/block/ramdisk.c | (addr+len > rd_start+rd_length)) { |
len | 48 | drivers/block/ramdisk.c | len); |
len | 52 | drivers/block/ramdisk.c | len); |
len | 87 | drivers/char/mem.c | unsigned long addr, size_t len, int prot, unsigned long off) |
len | 91 | drivers/char/mem.c | if (off & 0xfff || off + len < off) |
len | 95 | drivers/char/mem.c | if (remap_page_range(addr, off, len, prot)) |
len | 104 | drivers/char/mem.c | mpnt->vm_end = addr + len; |
len | 180 | drivers/char/mem.c | unsigned long addr, size_t len, int prot, unsigned long off) |
len | 186 | drivers/char/mem.c | if (zeromap_page_range(addr, len, prot)) |
len | 198 | drivers/char/mem.c | mpnt->vm_end = addr + len; |
len | 302 | drivers/net/3c501.c | if (skb->len <= 0) |
len | 309 | drivers/net/3c501.c | int gp_start = 0x800 - (ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN); |
len | 320 | drivers/net/3c501.c | outsb(DATAPORT,buf,skb->len); |
len | 460 | drivers/net/3c501.c | skb->len = pkt_len; |
len | 512 | drivers/net/3c507.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 871 | drivers/net/3c507.c | skb->len = pkt_len; |
len | 376 | drivers/net/3c509.c | if (skb->len <= 0) |
len | 381 | drivers/net/3c509.c | dev->name, skb->len, inw(ioaddr + EL3_STATUS)); |
len | 404 | drivers/net/3c509.c | outw(skb->len, ioaddr + TX_FIFO); |
len | 407 | drivers/net/3c509.c | outsl(ioaddr + TX_FIFO, skb->data, (skb->len + 3) >> 2); |
len | 578 | drivers/net/3c509.c | skb->len = pkt_len; |
len | 179 | drivers/net/8390.c | length = skb->len; |
len | 180 | drivers/net/8390.c | if (skb->len <= 0) |
len | 464 | drivers/net/8390.c | skb->len = pkt_len; |
len | 427 | drivers/net/at1700.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 557 | drivers/net/at1700.c | skb->len = pkt_len; |
len | 492 | drivers/net/atp.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 688 | drivers/net/atp.c | skb->len = pkt_len; |
len | 387 | drivers/net/d_link.c | int len; |
len | 428 | drivers/net/d_link.c | PRINTK(("d_link_start_xmit:len=%d, page %d/%d\n", skb->len, tx_fifo_in, free_tx_pages)); |
len | 430 | drivers/net/d_link.c | if ((len = skb->len) < RUNT) |
len | 431 | drivers/net/d_link.c | len = RUNT; |
len | 436 | drivers/net/d_link.c | tx_fifo[tx_fifo_in] = transmit_from = tx_page_adr(tx_fifo_in) - len; |
len | 440 | drivers/net/d_link.c | for ( ; len > 0; --len, ++buffer) |
len | 792 | drivers/net/depca.c | if (skb->len <= 0) { |
len | 815 | drivers/net/depca.c | int len; |
len | 816 | drivers/net/depca.c | long skbL = skb->len; |
len | 829 | drivers/net/depca.c | len = ((skbL > PKT_SZ) ? PKT_SZ : skbL); /* skb too long */ |
len | 830 | drivers/net/depca.c | if (len < ETH_ZLEN) len = ETH_ZLEN; /* len too short */ |
len | 831 | drivers/net/depca.c | skbL -= len; |
len | 832 | drivers/net/depca.c | lp->tx_ring[entry].length = -len; |
len | 838 | drivers/net/depca.c | memcpy((unsigned char *)(buf), skb->data, len); |
len | 850 | drivers/net/depca.c | for (p += len; skbL > 0; p += len) { |
len | 865 | drivers/net/depca.c | len = ((skbL > DAT_SZ) ? DAT_SZ : skbL); /* skbL too long */ |
len | 866 | drivers/net/depca.c | if (len < ETH_ZLEN) len = ETH_ZLEN; /* len too short */ |
len | 867 | drivers/net/depca.c | skbL -= len; |
len | 868 | drivers/net/depca.c | lp->tx_ring[entry].length = -len; |
len | 874 | drivers/net/depca.c | memcpy((unsigned char *)(buf + PKT_HDR_LEN), (unsigned char *)p, len); |
len | 999 | drivers/net/depca.c | skb->len = pkt_len; |
len | 527 | drivers/net/eexpress.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 980 | drivers/net/eexpress.c | skb->len = pkt_len; |
len | 522 | drivers/net/lance.c | if (skb->len <= 0) |
len | 548 | drivers/net/lance.c | -(ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN); |
len | 550 | drivers/net/lance.c | lp->tx_ring[entry].length = -skb->len; |
len | 556 | drivers/net/lance.c | if ((int)(skb->data) + skb->len > 0x01000000) { |
len | 560 | drivers/net/lance.c | memcpy(&lp->tx_bounce_buffs[entry], skb->data, skb->len); |
len | 734 | drivers/net/lance.c | skb->len = pkt_len; |
len | 142 | drivers/net/plip.c | unsigned long h_source, unsigned len); |
len | 296 | drivers/net/plip.c | ret_val = plip_send_packet(dev, skb->data, skb->len); |
len | 307 | drivers/net/plip.c | unsigned long h_source, unsigned len) |
len | 313 | drivers/net/plip.c | return eth_header(buff, dev, type, h_dest, h_source, len); |
len | 331 | drivers/net/skeleton.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 420 | drivers/net/skeleton.c | skb->len = pkt_len; |
len | 483 | drivers/net/slhc.c | int len, hdrlen; |
len | 596 | drivers/net/slhc.c | len = isize - (cp - icp); |
len | 597 | drivers/net/slhc.c | if (len < 0) |
len | 599 | drivers/net/slhc.c | len += hdrlen; |
len | 600 | drivers/net/slhc.c | ip->tot_len = htons(len); |
len | 603 | drivers/net/slhc.c | DPRINT(("uncomp: %d %d %d %d\n", cp - icp, hdrlen, isize, len)); |
len | 605 | drivers/net/slhc.c | memmove(icp + hdrlen, cp, len - hdrlen); |
len | 626 | drivers/net/slhc.c | if (inet_debug == DBG_SLIP) printk("\runcomp: change %x len %d\n", changes, len); |
len | 627 | drivers/net/slhc.c | return len; |
len | 79 | drivers/net/slip.c | ip_dump(unsigned char *ptr, int len) |
len | 96 | drivers/net/slip.c | printk("%p %d\n", ptr, len); |
len | 118 | drivers/net/slip.c | void clh_dump(unsigned char *cp, int len) |
len | 120 | drivers/net/slip.c | if (len > 60) |
len | 121 | drivers/net/slip.c | len = 60; |
len | 122 | drivers/net/slip.c | printk("%d:", len); |
len | 123 | drivers/net/slip.c | while (len > 0) { |
len | 125 | drivers/net/slip.c | len--; |
len | 437 | drivers/net/slip.c | sl_encaps(struct slip *sl, unsigned char *icp, int len) |
len | 442 | drivers/net/slip.c | DPRINTF((DBG_SLIP, "SLIP: sl_encaps(0x%X, %d) called\n", icp, len)); |
len | 445 | drivers/net/slip.c | ip_dump(icp, len); |
len | 450 | drivers/net/slip.c | if(len>sl->mtu) /* Sigh, shouldn't occur BUT ... */ |
len | 452 | drivers/net/slip.c | len=sl->mtu; |
len | 458 | drivers/net/slip.c | len = slhc_compress(sl->slcomp, p, len, sl->cbuff, &p, 1); |
len | 474 | drivers/net/slip.c | while(len-- > 0) { |
len | 496 | drivers/net/slip.c | count=slip_esc6(p, (unsigned char *)sl->xbuff,len); |
len | 498 | drivers/net/slip.c | count=slip_esc(p, (unsigned char *)sl->xbuff,len); |
len | 568 | drivers/net/slip.c | size = skb->len; |
len | 601 | drivers/net/slip.c | unsigned long daddr, unsigned long saddr, unsigned len) |
len | 606 | drivers/net/slip.c | return ax25_encapsulate_ip(buff,dev,type,daddr,saddr,len); |
len | 914 | drivers/net/slip.c | slip_esc(unsigned char *s, unsigned char *d, int len) |
len | 931 | drivers/net/slip.c | while(len-- > 0) { |
len | 997 | drivers/net/slip.c | slip_esc6(unsigned char *s, unsigned char *d, int len) |
len | 1016 | drivers/net/slip.c | for (i = 0; i < len; ++i) { |
len | 77 | drivers/net/slip.h | extern int slip_esc(unsigned char *s, unsigned char *d, int len); |
len | 78 | drivers/net/slip.h | extern int slip_esc6(unsigned char *s, unsigned char *d, int len); |
len | 1085 | drivers/scsi/NCR5380.c | int len; |
len | 1273 | drivers/scsi/NCR5380.c | len = 3; |
len | 1277 | drivers/scsi/NCR5380.c | len = 1; |
len | 1284 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 1741 | drivers/scsi/NCR5380.c | int len, transfersize; |
len | 1805 | drivers/scsi/NCR5380.c | len = transfersize; |
len | 1807 | drivers/scsi/NCR5380.c | &len, (unsigned char **) &cmd->SCp.ptr)) { |
len | 1819 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual -= transfersize - len; |
len | 1833 | drivers/scsi/NCR5380.c | len = 1; |
len | 1835 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2014 | drivers/scsi/NCR5380.c | len = 1; |
len | 2017 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2029 | drivers/scsi/NCR5380.c | len = COMMAND_SIZE(cmd->cmnd[0]); |
len | 2036 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, |
len | 2051 | drivers/scsi/NCR5380.c | len = 1; |
len | 2053 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2098 | drivers/scsi/NCR5380.c | int len; |
len | 2134 | drivers/scsi/NCR5380.c | len = 3; |
len | 2137 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2153 | drivers/scsi/NCR5380.c | if (!len) |
len | 2206 | drivers/scsi/NCR5380.c | len = 1; |
len | 2210 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2295 | drivers/scsi/NCR5380.c | int len; |
len | 2387 | drivers/scsi/NCR5380.c | len = 1; |
len | 2390 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio (instance, &phase, &len, &msgptr); |
len | 98 | drivers/scsi/aha1542.c | static int aha1542_out(unsigned int base, unchar *cmdp, int len) |
len | 100 | drivers/scsi/aha1542.c | while (len--) |
len | 107 | drivers/scsi/aha1542.c | printk("aha1542_out failed(%d): ", len+1); aha1542_stat(); |
len | 111 | drivers/scsi/aha1542.c | static int aha1542_in(unsigned int base, unchar *cmdp, int len) |
len | 113 | drivers/scsi/aha1542.c | while (len--) |
len | 120 | drivers/scsi/aha1542.c | printk("aha1542_in failed(%d): ", len+1); aha1542_stat(); |
len | 186 | drivers/scsi/aha1542.c | int len; |
len | 216 | drivers/scsi/aha1542.c | len = 4; |
len | 219 | drivers/scsi/aha1542.c | while (len--) |
len | 474 | drivers/scsi/constants.c | int len = 0, i; |
len | 476 | drivers/scsi/constants.c | len = 3 + msg[1]; |
len | 497 | drivers/scsi/constants.c | len = 1; |
len | 508 | drivers/scsi/constants.c | len = 1; |
len | 521 | drivers/scsi/constants.c | len = 2; |
len | 528 | drivers/scsi/constants.c | return len; |
len | 418 | drivers/scsi/pas16.c | int len) { |
len | 422 | drivers/scsi/pas16.c | register i = len; |
len | 452 | drivers/scsi/pas16.c | int len) { |
len | 455 | drivers/scsi/pas16.c | register i = len; |
len | 1501 | drivers/scsi/scsi.c | void *scsi_malloc(unsigned int len) |
len | 1505 | drivers/scsi/scsi.c | if((len & 0x1ff) || len > 4096) |
len | 1509 | drivers/scsi/scsi.c | nbits = len >> 9; |
len | 1519 | drivers/scsi/scsi.c | printk("SMalloc: %d %x ",len, dma_malloc_buffer + (i << 13) + (j << 9)); |
len | 1528 | drivers/scsi/scsi.c | int scsi_free(void *obj, unsigned int len) |
len | 1534 | drivers/scsi/scsi.c | printk("Sfree %x %d\n",obj, len); |
len | 1545 | drivers/scsi/scsi.c | nbits = len >> 9; |
len | 31 | drivers/scsi/scsi_ioctl.c | unsigned int len,slen; |
len | 35 | drivers/scsi/scsi_ioctl.c | len = get_fs_long ((unsigned long *) buffer); |
len | 38 | drivers/scsi/scsi_ioctl.c | if (len > slen) |
len | 39 | drivers/scsi/scsi_ioctl.c | len = slen + 1; |
len | 40 | drivers/scsi/scsi_ioctl.c | verify_area(VERIFY_WRITE, buffer, len); |
len | 41 | drivers/scsi/scsi_ioctl.c | memcpy_tofs (buffer, string, len); |
len | 583 | drivers/scsi/seagate.c | int len = 0; |
len | 710 | drivers/scsi/seagate.c | len=current_bufflen; /* WDE add */ |
len | 908 | drivers/scsi/seagate.c | len = buffer->length; |
len | 915 | drivers/scsi/seagate.c | len = SCint->request_bufflen; |
len | 920 | drivers/scsi/seagate.c | printk("scsi%d : len = %d\n", hostno, len); |
len | 1033 | drivers/scsi/seagate.c | if (!len) { |
len | 1043 | drivers/scsi/seagate.c | if (fast && transfersize && !(len % transfersize) && (len >= transfersize) |
len | 1051 | drivers/scsi/seagate.c | SCint->transfersize, len, data); |
len | 1073 | drivers/scsi/seagate.c | len -= transfersize; |
len | 1078 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1134 | drivers/scsi/seagate.c | "=S" (data), "=c" (len) : |
len | 1136 | drivers/scsi/seagate.c | "0" (data), "1" (len) : |
len | 1141 | drivers/scsi/seagate.c | if (!len && nobuffs) { |
len | 1144 | drivers/scsi/seagate.c | len = buffer->length; |
len | 1148 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1157 | drivers/scsi/seagate.c | transfered += len; |
len | 1159 | drivers/scsi/seagate.c | for (; len && (STATUS & (REQ_MASK | STAT_REQ)) == (REQ_DATAIN | |
len | 1160 | drivers/scsi/seagate.c | STAT_REQ); --len) { |
len | 1165 | drivers/scsi/seagate.c | transfered -= len; |
len | 1170 | drivers/scsi/seagate.c | if (fast && transfersize && !(len % transfersize) && (len >= transfersize) |
len | 1178 | drivers/scsi/seagate.c | SCint->transfersize, len, data); |
len | 1200 | drivers/scsi/seagate.c | len -= transfersize; |
len | 1210 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1218 | drivers/scsi/seagate.c | printk("scsi%d: transfered += %d\n", hostno, len); |
len | 1219 | drivers/scsi/seagate.c | transfered += len; /* Assume we'll transfer it all, then |
len | 1274 | drivers/scsi/seagate.c | "=D" (data), "=c" (len) : |
len | 1276 | drivers/scsi/seagate.c | "0" (data), "1" (len) : |
len | 1281 | drivers/scsi/seagate.c | printk("scsi%d: transfered -= %d\n", hostno, len); |
len | 1282 | drivers/scsi/seagate.c | transfered -= len; /* Since we assumed all of Len got |
len | 1287 | drivers/scsi/seagate.c | if (!len && nobuffs) { |
len | 1290 | drivers/scsi/seagate.c | len = buffer->length; |
len | 1294 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1361 | drivers/scsi/seagate.c | current_bufflen = len; /* WDE add */ |
len | 1393 | drivers/scsi/seagate.c | current_bufflen = len; /* WDE add */ |
len | 1404 | drivers/scsi/seagate.c | len=current_bufflen; |
len | 317 | drivers/scsi/t128.c | int len) { |
len | 320 | drivers/scsi/t128.c | register i = len; |
len | 355 | drivers/scsi/t128.c | int len) { |
len | 358 | drivers/scsi/t128.c | register i = len; |
len | 121 | drivers/scsi/wd7000.c | static inline int command_out(unchar *cmdp, int len) |
len | 123 | drivers/scsi/wd7000.c | while (len--) { |
len | 130 | drivers/scsi/wd7000.c | printk("wd7000_out WAIT failed(%d): ", len+1); |
len | 404 | drivers/scsi/wd7000.c | any2scsi(sgb->len, sg[i].length); |
len | 149 | drivers/scsi/wd7000.h | unchar len[3]; |
len | 176 | drivers/sound/configure.c | int len; |
len | 178 | drivers/sound/configure.c | if ((len = read (0, &answ, sizeof (answ))) < 1) |
len | 188 | drivers/sound/configure.c | if (len < 2) /* There is an additional LF at the end */ |
len | 191 | drivers/sound/configure.c | answ[len - 1] = 0; |
len | 203 | drivers/sound/configure.c | int len, num; |
len | 207 | drivers/sound/configure.c | if ((len = read (0, &answ, sizeof (answ))) < 1) |
len | 217 | drivers/sound/configure.c | if (len < 2) /* There is an additional LF at the end */ |
len | 220 | drivers/sound/configure.c | answ[len - 1] = 0; |
len | 74 | drivers/sound/dev_table.h | snd_rw_buf *userbuf, int useroffs, int len); |
len | 321 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len) |
len | 385 | drivers/sound/dmabuf.c | *len = dev_buffsize[dev] - dev_counts[dev][dev_qhead[dev]]; |
len | 834 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len) |
len | 535 | drivers/sound/gus_wave.c | if (position < samples[sample_no].len) |
len | 1486 | drivers/sound/gus_wave.c | ((sample_ptrs[sample] + samples[sample].len) >> 18)) |
len | 1509 | drivers/sound/gus_wave.c | gus_write_addr (0x0a, sample_ptrs[sample] + samples[sample].len - |
len | 1560 | drivers/sound/gus_wave.c | gus_write_addr (0x04, sample_ptrs[sample] + samples[sample].len-1, is16bits); /* |
len | 1729 | drivers/sound/gus_wave.c | if (count < patch.len) |
len | 1732 | drivers/sound/gus_wave.c | count, (int) patch.len); |
len | 1733 | drivers/sound/gus_wave.c | patch.len = count; |
len | 1736 | drivers/sound/gus_wave.c | if (patch.len <= 0 || patch.len > gus_mem_size) |
len | 1738 | drivers/sound/gus_wave.c | printk ("GUS: Invalid sample length %d\n", (int) patch.len); |
len | 1744 | drivers/sound/gus_wave.c | if (patch.loop_start < 0 || patch.loop_start >= patch.len) |
len | 1750 | drivers/sound/gus_wave.c | if (patch.loop_end < patch.loop_start || patch.loop_end > patch.len) |
len | 1768 | drivers/sound/gus_wave.c | if (patch.len >= GUS_BANK_SIZE) |
len | 1770 | drivers/sound/gus_wave.c | printk ("GUS: Sample (16 bit) too long %d\n", (int) patch.len); |
len | 1775 | drivers/sound/gus_wave.c | ((free_mem_ptr + patch.len) / GUS_BANK_SIZE)) |
len | 1782 | drivers/sound/gus_wave.c | if ((tmp_mem + patch.len) > gus_mem_size) |
len | 1791 | drivers/sound/gus_wave.c | if ((free_mem_ptr + patch.len) > gus_mem_size) |
len | 1816 | drivers/sound/gus_wave.c | left = patch.len; |
len | 1952 | drivers/sound/gus_wave.c | free_mem_ptr += patch.len; |
len | 2667 | drivers/sound/gus_wave.c | snd_rw_buf * userbuf, int useroffs, int len) |
len | 2671 | drivers/sound/gus_wave.c | COPY_FROM_USER (&localbuf[localoffs], userbuf, useroffs, len); |
len | 2680 | drivers/sound/gus_wave.c | len /= 2; |
len | 2685 | drivers/sound/gus_wave.c | for (i = 0; i < len; i++) |
len | 2700 | drivers/sound/gus_wave.c | len /= 4; |
len | 2706 | drivers/sound/gus_wave.c | for (i = 0; i < len; i++) |
len | 2839 | drivers/sound/gus_wave.c | if (pat->len > samples[ptr].len) /* |
len | 2868 | drivers/sound/gus_wave.c | if (offs < 0 || offs >= samples[sample].len) |
len | 2873 | drivers/sound/gus_wave.c | n = samples[sample].len - offs; /* |
len | 2913 | drivers/sound/gus_wave.c | if (offs < 0 || offs >= samples[sample].len) |
len | 2918 | drivers/sound/gus_wave.c | n = samples[sample].len - offs; /* |
len | 9 | drivers/sound/sound_calls.h | int DMAbuf_getrdbuffer(int dev, char **buf, int *len); |
len | 125 | fs/binfmt_elf.c | unsigned int len; |
len | 195 | fs/binfmt_elf.c | len = (elf_bss + 0xfff) & 0xfffff000; /* What we have mapped so far */ |
len | 198 | fs/binfmt_elf.c | if (last_bss > len) |
len | 199 | fs/binfmt_elf.c | do_mmap(NULL, len, last_bss-len, |
len | 553 | fs/binfmt_elf.c | unsigned int len; |
len | 560 | fs/binfmt_elf.c | len = 0; |
len | 628 | fs/binfmt_elf.c | len = (elf_phdata->p_filesz + elf_phdata->p_vaddr+ 0xfff) & 0xfffff000; |
len | 630 | fs/binfmt_elf.c | if (bss > len) |
len | 631 | fs/binfmt_elf.c | do_mmap(NULL, len, bss-len, |
len | 349 | fs/exec.c | int len, offset = 0; |
len | 365 | fs/exec.c | len=0; /* remember zero-padding */ |
len | 367 | fs/exec.c | len++; |
len | 369 | fs/exec.c | if (p < len) { /* this shouldn't happen - 128kB */ |
len | 373 | fs/exec.c | while (len) { |
len | 374 | fs/exec.c | --p; --tmp; --len; |
len | 864 | fs/exec.c | unsigned int len; |
len | 903 | fs/exec.c | len = PAGE_ALIGN(ex.a_text + ex.a_data); |
len | 905 | fs/exec.c | if (bss > len) |
len | 906 | fs/exec.c | do_mmap(NULL, start_addr + len, bss-len, |
len | 56 | fs/ext/namei.c | static int ext_match(int len,const char * name,struct ext_dir_entry * de) |
len | 60 | fs/ext/namei.c | if (!de || !de->inode || len > EXT_NAME_LEN) |
len | 63 | fs/ext/namei.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 65 | fs/ext/namei.c | if (len < EXT_NAME_LEN && len != de->name_len) |
len | 71 | fs/ext/namei.c | :"0" (0),"S" ((long) name),"D" ((long) de->name),"c" (len) |
len | 157 | fs/ext/namei.c | int ext_lookup(struct inode * dir,const char * name, int len, |
len | 171 | fs/ext/namei.c | if (!(bh = ext_find_entry(dir,name,len,&de,NULL,NULL))) { |
len | 310 | fs/ext/namei.c | int ext_create(struct inode * dir,const char * name, int len, int mode, |
len | 328 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 344 | fs/ext/namei.c | int ext_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
len | 352 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 387 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 403 | fs/ext/namei.c | int ext_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 409 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 454 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 531 | fs/ext/namei.c | int ext_rmdir(struct inode * dir, const char * name, int len) |
len | 539 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
len | 584 | fs/ext/namei.c | int ext_unlink(struct inode * dir, const char * name, int len) |
len | 593 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
len | 627 | fs/ext/namei.c | int ext_symlink(struct inode * dir, const char * name, int len, const char * symname) |
len | 657 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 666 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 682 | fs/ext/namei.c | int ext_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
len | 697 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 704 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 43 | fs/ext2/balloc.c | #define in_range(b, first, len) ((b) >= (first) && (b) <= (first) + (len) - 1) |
len | 30 | fs/ext2/dcache.c | int len; |
len | 86 | fs/ext2/dcache.c | const char * name, int len) |
len | 91 | fs/ext2/dcache.c | p->dir != dir || p->len != len || |
len | 92 | fs/ext2/dcache.c | strncmp (name, p->name, p->len) != 0); |
len | 204 | fs/ext2/dcache.c | const char * name, int len) |
len | 212 | fs/ext2/dcache.c | if (len > DCACHE_NAME_LEN) |
len | 214 | fs/ext2/dcache.c | memcpy (our_name, (char *) name, len); |
len | 215 | fs/ext2/dcache.c | our_name[len] = '\0'; |
len | 217 | fs/ext2/dcache.c | printk ("dcache_lookup (%04x, %lu, %s, %d)\n", dev, dir, our_name, len); |
len | 220 | fs/ext2/dcache.c | if ((p = find_name (queue, dev, dir, our_name, len))) { |
len | 254 | fs/ext2/dcache.c | int len, unsigned long ino) |
len | 263 | fs/ext2/dcache.c | dev, dir, name, len, ino); |
len | 265 | fs/ext2/dcache.c | if (len > DCACHE_NAME_LEN) |
len | 268 | fs/ext2/dcache.c | if ((p = find_name (queue, dev, dir, name, len))) { |
len | 297 | fs/ext2/dcache.c | strncpy (p->name, name, len); |
len | 298 | fs/ext2/dcache.c | p->len = len; |
len | 299 | fs/ext2/dcache.c | p->name[len] = '\0'; |
len | 314 | fs/ext2/dcache.c | const char * name, int len) |
len | 322 | fs/ext2/dcache.c | printk ("dcache_remove (%04x, %lu, %s, %d)\n", dev, dir, name, len); |
len | 324 | fs/ext2/dcache.c | if (len > DCACHE_NAME_LEN) |
len | 327 | fs/ext2/dcache.c | if ((p = find_name (queue, dev, dir, name, len))) { |
len | 43 | fs/ext2/namei.c | static int ext2_match (int len, const char * const name, |
len | 48 | fs/ext2/namei.c | if (!de || !de->inode || len > EXT2_NAME_LEN) |
len | 53 | fs/ext2/namei.c | if (!len && de->name_len == 1 && (de->name[0] == '.') && |
len | 56 | fs/ext2/namei.c | if (len != de->name_len) |
len | 62 | fs/ext2/namei.c | :"S" ((long) name), "D" ((long) de->name), "c" (len) |
len | 170 | fs/ext2/namei.c | int ext2_lookup (struct inode * dir, const char * name, int len, |
len | 185 | fs/ext2/namei.c | if (!(ino = ext2_dcache_lookup (dir->i_dev, dir->i_ino, name, len))) { |
len | 187 | fs/ext2/namei.c | if (!(bh = ext2_find_entry (dir, name, len, &de))) { |
len | 368 | fs/ext2/namei.c | int ext2_create (struct inode * dir,const char * name, int len, int mode, |
len | 387 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 411 | fs/ext2/namei.c | int ext2_mknod (struct inode * dir, const char * name, int len, int mode, |
len | 421 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 461 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 485 | fs/ext2/namei.c | int ext2_mkdir (struct inode * dir, const char * name, int len, int mode) |
len | 494 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 540 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 620 | fs/ext2/namei.c | int ext2_rmdir (struct inode * dir, const char * name, int len) |
len | 631 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 705 | fs/ext2/namei.c | int ext2_unlink (struct inode * dir, const char * name, int len) |
len | 717 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 766 | fs/ext2/namei.c | int ext2_symlink (struct inode * dir, const char * name, int len, |
len | 815 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 824 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 849 | fs/ext2/namei.c | const char * name, int len) |
len | 865 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 872 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 357 | fs/hpfs/hpfs.h | unsigned char len, name[15]; /* true length, truncated name */ |
len | 234 | fs/hpfs/hpfs_fs.c | static int zerop(void *addr, unsigned len); |
len | 242 | fs/hpfs/hpfs_fs.c | const unsigned char *name, unsigned len, |
len | 252 | fs/hpfs/hpfs_fs.c | static unsigned choose_conv(unsigned char *p, unsigned len); |
len | 254 | fs/hpfs/hpfs_fs.c | unsigned len); |
len | 528 | fs/hpfs/hpfs_fs.c | static int zerop(void *addr, unsigned len) |
len | 531 | fs/hpfs/hpfs_fs.c | return p[0] == 0 && memcmp(p, p + 1, len - 1) == 0; |
len | 943 | fs/hpfs/hpfs_fs.c | static unsigned choose_conv(unsigned char *p, unsigned len) |
len | 950 | fs/hpfs/hpfs_fs.c | while (len--) { |
len | 953 | fs/hpfs/hpfs_fs.c | if (c == '\r' && len && *p == '\n') |
len | 975 | fs/hpfs/hpfs_fs.c | unsigned len) |
len | 979 | fs/hpfs/hpfs_fs.c | while (len--) { |
len | 981 | fs/hpfs/hpfs_fs.c | if (c == '\r' && (len == 0 || *in == '\n')); |
len | 1100 | fs/hpfs/hpfs_fs.c | static int hpfs_lookup(struct inode *dir, const char *name, int len, |
len | 1121 | fs/hpfs/hpfs_fs.c | if (name[0] == '.' && len == 1) |
len | 1123 | fs/hpfs/hpfs_fs.c | else if (name[0] == '.' && name[1] == '.' && len == 2) |
len | 1128 | fs/hpfs/hpfs_fs.c | de = map_dirent(dir, dir->i_hpfs_dno, name, len, &qbh); |
len | 1227 | fs/hpfs/hpfs_fs.c | const unsigned char *name, unsigned len, |
len | 1256 | fs/hpfs/hpfs_fs.c | l = len < de->namelen ? len : de->namelen; |
len | 1263 | fs/hpfs/hpfs_fs.c | t = len - de->namelen; |
len | 1280 | fs/hpfs/hpfs_fs.c | name, len, qbh); |
len | 27 | fs/isofs/namei.c | static int isofs_match(int len,const char * name, char * compare, int dlen) |
len | 33 | fs/isofs/namei.c | if (!len && (compare[0]==0) && (dlen==1)) |
len | 36 | fs/isofs/namei.c | if (compare[0]==0 && dlen==1 && len == 1) |
len | 38 | fs/isofs/namei.c | if (compare[0]==1 && dlen==1 && len == 2) { |
len | 43 | fs/isofs/namei.c | if (len <= 2) printk("Match: %d %d %s %d %d \n",len,dlen,compare,de->name[0], dlen); |
len | 46 | fs/isofs/namei.c | if (dlen != len) |
len | 52 | fs/isofs/namei.c | :"0" (0),"S" ((long) name),"D" ((long) compare),"c" (len) |
len | 210 | fs/isofs/namei.c | int isofs_lookup(struct inode * dir,const char * name, int len, |
len | 217 | fs/isofs/namei.c | printk("lookup: %x %d\n",dir->i_ino, len); |
len | 231 | fs/isofs/namei.c | len == cache.dlen && |
len | 232 | fs/isofs/namei.c | isofs_match(len, name, cache.filename, cache.dlen)) |
len | 244 | fs/isofs/namei.c | if (!(bh = isofs_find_entry(dir,name,len, &ino, &ino_back))) { |
len | 79 | fs/isofs/rock.c | len = cont_size; \ |
len | 94 | fs/isofs/rock.c | int len; |
len | 109 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(de, chr, len); |
len | 115 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 117 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 119 | fs/isofs/rock.c | chr += rr->len; |
len | 120 | fs/isofs/rock.c | len -= rr->len; |
len | 167 | fs/isofs/rock.c | int len; |
len | 175 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(de, chr, len); |
len | 181 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 183 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 185 | fs/isofs/rock.c | chr += rr->len; |
len | 186 | fs/isofs/rock.c | len -= rr->len; |
len | 215 | fs/isofs/rock.c | if((strlen(retname) + rr->len - 5) >= 254) { |
len | 219 | fs/isofs/rock.c | strncat(retname, rr->u.NM.name, rr->len - 5); |
len | 220 | fs/isofs/rock.c | retnamlen += rr->len - 5; |
len | 249 | fs/isofs/rock.c | int len; |
len | 255 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(de, chr, len); |
len | 263 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 265 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 267 | fs/isofs/rock.c | chr += rr->len; |
len | 268 | fs/isofs/rock.c | len -= rr->len; |
len | 317 | fs/isofs/rock.c | slen = rr->len - 5; |
len | 324 | fs/isofs/rock.c | inode->i_size += slp->len; |
len | 339 | fs/isofs/rock.c | slen -= slp->len + 2; |
len | 340 | fs/isofs/rock.c | slp = (struct SL_component *) (((char *) slp) + slp->len + 2); |
len | 397 | fs/isofs/rock.c | int len; |
len | 433 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(raw_inode, chr, len); |
len | 436 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 439 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 441 | fs/isofs/rock.c | chr += rr->len; |
len | 442 | fs/isofs/rock.c | len -= rr->len; |
len | 454 | fs/isofs/rock.c | slen = rr->len - 5; |
len | 464 | fs/isofs/rock.c | strncat(rpnt,slp->text, slp->len); |
len | 479 | fs/isofs/rock.c | slen -= slp->len + 2; |
len | 480 | fs/isofs/rock.c | slp = (struct SL_component *) (((char *) slp) + slp->len + 2); |
len | 44 | fs/isofs/rock.h | unsigned char len; |
len | 87 | fs/isofs/rock.h | unsigned char len; |
len | 23 | fs/minix/namei.c | static inline int namecompare(int len, int maxlen, |
len | 26 | fs/minix/namei.c | if (len >= maxlen || !buffer[len]) { |
len | 30 | fs/minix/namei.c | :"S" ((long) name),"D" ((long) buffer),"c" (len) |
len | 44 | fs/minix/namei.c | static int minix_match(int len, const char * name, |
len | 52 | fs/minix/namei.c | if (!de->inode || len > info->s_namelen) |
len | 55 | fs/minix/namei.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 57 | fs/minix/namei.c | return namecompare(len,info->s_namelen,name,de->name); |
len | 111 | fs/minix/namei.c | int minix_lookup(struct inode * dir,const char * name, int len, |
len | 125 | fs/minix/namei.c | if (!(bh = minix_find_entry(dir,name,len,&de))) { |
len | 213 | fs/minix/namei.c | int minix_create(struct inode * dir,const char * name, int len, int mode, |
len | 232 | fs/minix/namei.c | error = minix_add_entry(dir,name,len, &bh ,&de); |
len | 248 | fs/minix/namei.c | int minix_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
len | 257 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 289 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
len | 305 | fs/minix/namei.c | int minix_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 318 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 356 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
len | 431 | fs/minix/namei.c | int minix_rmdir(struct inode * dir, const char * name, int len) |
len | 439 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 486 | fs/minix/namei.c | int minix_unlink(struct inode * dir, const char * name, int len) |
len | 496 | 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 | 33 | fs/msdos/namei.c | static int msdos_format_name(char conv,const char *name,int len,char *res, |
len | 41 | fs/msdos/namei.c | if (name[0] == '.' && (len == 1 || (len == 2 && name[1] == '.'))) { |
len | 44 | fs/msdos/namei.c | while (len--) *res++ = '.'; |
len | 49 | fs/msdos/namei.c | for (walk = res; len && walk-res < 8; walk++) { |
len | 51 | fs/msdos/namei.c | len--; |
len | 61 | fs/msdos/namei.c | if (conv == 's' && len && c != '.') { |
len | 63 | fs/msdos/namei.c | len--; |
len | 66 | fs/msdos/namei.c | while (c != '.' && len--) c = *name++; |
len | 69 | fs/msdos/namei.c | while (len > 0 && walk-res < MSDOS_NAME) { |
len | 71 | fs/msdos/namei.c | len--; |
len | 82 | fs/msdos/namei.c | if (conv == 's' && len) return -EINVAL; |
len | 93 | fs/msdos/namei.c | static int msdos_find(struct inode *dir,const char *name,int len, |
len | 99 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
len | 105 | fs/msdos/namei.c | int msdos_lookup(struct inode *dir,const char *name,int len, |
len | 119 | fs/msdos/namei.c | if (len == 1 && name[0] == '.') { |
len | 123 | fs/msdos/namei.c | if (len == 2 && name[0] == '.' && name[1] == '.') { |
len | 130 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) { |
len | 196 | fs/msdos/namei.c | int msdos_create(struct inode *dir,const char *name,int len,int mode, |
len | 205 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
len | 244 | fs/msdos/namei.c | int msdos_mkdir(struct inode *dir,const char *name,int len,int mode) |
len | 252 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
len | 294 | fs/msdos/namei.c | if (msdos_rmdir(dir,name,len) < 0) |
len | 326 | fs/msdos/namei.c | int msdos_rmdir(struct inode *dir,const char *name,int len) |
len | 336 | fs/msdos/namei.c | if (name[0] == '.' && (len == 1 || (len == 2 && name[1] == '.'))) |
len | 338 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done; |
len | 363 | fs/msdos/namei.c | int msdos_unlink(struct inode *dir,const char *name,int len) |
len | 372 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) |
len | 94 | fs/namei.c | int lookup(struct inode * dir,const char * name, int len, |
len | 105 | fs/namei.c | if (len==2 && name[0] == '.' && name[1] == '.') { |
len | 126 | fs/namei.c | if (!len) { |
len | 130 | fs/namei.c | return dir->i_op->lookup(dir,name,len,result); |
len | 161 | fs/namei.c | int len,error; |
len | 177 | fs/namei.c | for(len=0;(c = *(pathname++))&&(c != '/');len++) |
len | 182 | fs/namei.c | error = lookup(base,thisname,len,&inode); |
len | 196 | fs/namei.c | *namelen = len; |
len | 24 | fs/nfs/dir.c | static int nfs_lookup(struct inode *dir, const char *name, int len, |
len | 26 | fs/nfs/dir.c | static int nfs_create(struct inode *dir, const char *name, int len, int mode, |
len | 28 | fs/nfs/dir.c | static int nfs_mkdir(struct inode *dir, const char *name, int len, int mode); |
len | 29 | fs/nfs/dir.c | static int nfs_rmdir(struct inode *dir, const char *name, int len); |
len | 30 | fs/nfs/dir.c | static int nfs_unlink(struct inode *dir, const char *name, int len); |
len | 31 | fs/nfs/dir.c | static int nfs_symlink(struct inode *inode, const char *name, int len, |
len | 34 | fs/nfs/dir.c | const char *name, int len); |
len | 35 | fs/nfs/dir.c | static int nfs_mknod(struct inode *dir, const char *name, int len, int mode, |
len | 287 | fs/nfs/dir.c | static int nfs_lookup(struct inode *dir, const char *__name, int len, |
len | 292 | fs/nfs/dir.c | char name[len > NFS_MAXNAMLEN? 1 : len+1]; |
len | 301 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 305 | fs/nfs/dir.c | memcpy(name,__name,len); |
len | 306 | fs/nfs/dir.c | name[len] = '\0'; |
len | 307 | fs/nfs/dir.c | if (len == 1 && name[0] == '.') { /* cheat for "." */ |
len | 328 | fs/nfs/dir.c | static int nfs_create(struct inode *dir, const char *name, int len, int mode, |
len | 342 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 363 | fs/nfs/dir.c | static int nfs_mknod(struct inode *dir, const char *name, int len, |
len | 376 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 395 | fs/nfs/dir.c | static int nfs_mkdir(struct inode *dir, const char *name, int len, int mode) |
len | 407 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 422 | fs/nfs/dir.c | static int nfs_rmdir(struct inode *dir, const char *name, int len) |
len | 431 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 442 | fs/nfs/dir.c | static int nfs_unlink(struct inode *dir, const char *name, int len) |
len | 451 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 462 | fs/nfs/dir.c | static int nfs_symlink(struct inode *dir, const char *name, int len, |
len | 473 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 491 | fs/nfs/dir.c | const char *name, int len) |
len | 507 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 25 | fs/nfs/file.c | unsigned long addr, size_t len, int prot, unsigned long off); |
len | 52 | fs/nfs/mmap.c | unsigned long addr, size_t len, int prot, unsigned long off) |
len | 71 | fs/nfs/mmap.c | unmap_page_range(addr, len); |
len | 74 | fs/nfs/mmap.c | mpnt->vm_end = addr + len; |
len | 83 | fs/nfs/proc.c | int len, quadlen; |
len | 85 | fs/nfs/proc.c | len = strlen(string); |
len | 86 | fs/nfs/proc.c | quadlen = (len + 3) >> 2; |
len | 87 | fs/nfs/proc.c | *p++ = htonl(len); |
len | 88 | fs/nfs/proc.c | memcpy((char *) p, string, len); |
len | 89 | fs/nfs/proc.c | memset(((char *) p) + len, '\0', (quadlen << 2) - len); |
len | 96 | fs/nfs/proc.c | unsigned int len; |
len | 98 | fs/nfs/proc.c | len = ntohl(*p++); |
len | 99 | fs/nfs/proc.c | if (len > maxlen) |
len | 101 | fs/nfs/proc.c | memcpy(string, (char *) p, len); |
len | 102 | fs/nfs/proc.c | string[len] = '\0'; |
len | 103 | fs/nfs/proc.c | p += (len + 3) >> 2; |
len | 107 | fs/nfs/proc.c | static inline int *xdr_encode_data(int *p, char *data, int len) |
len | 111 | fs/nfs/proc.c | quadlen = (len + 3) >> 2; |
len | 112 | fs/nfs/proc.c | *p++ = htonl(len); |
len | 113 | fs/nfs/proc.c | memcpy((char *) p, data, len); |
len | 114 | fs/nfs/proc.c | memset(((char *) p) + len, '\0', (quadlen << 2) - len); |
len | 121 | fs/nfs/proc.c | unsigned int len; |
len | 123 | fs/nfs/proc.c | len = *lenp = ntohl(*p++); |
len | 124 | fs/nfs/proc.c | if (len > maxlen) |
len | 126 | fs/nfs/proc.c | memcpy(data, (char *) p, len); |
len | 127 | fs/nfs/proc.c | p += (len + 3) >> 2; |
len | 343 | fs/nfs/proc.c | int len = 0; /* = 0 is for gcc */ |
len | 362 | fs/nfs/proc.c | if (!(p = xdr_decode_data(p, data, &len, count))) { |
len | 367 | fs/nfs/proc.c | PRINTK("NFS reply read %d\n", len); |
len | 377 | fs/nfs/proc.c | return (status == NFS_OK) ? len : -nfs_stat_to_errno(status); |
len | 42 | fs/nfs/sock.c | int len; |
len | 56 | fs/nfs/sock.c | len = ((char *) end) - ((char *) start); |
len | 84 | fs/nfs/sock.c | result = sock->ops->send(sock, (void *) start, len, 0, 0); |
len | 71 | fs/proc/base.c | int proc_match(int len,const char * name,struct proc_dir_entry * de) |
len | 78 | fs/proc/base.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 80 | fs/proc/base.c | if (de->namelen != len) |
len | 86 | fs/proc/base.c | :"0" (0),"S" ((long) name),"D" ((long) de->name),"c" (len) |
len | 91 | fs/proc/base.c | static int proc_lookupbase(struct inode * dir,const char * name, int len, |
len | 107 | fs/proc/base.c | while (i-- > 0 && !proc_match(len,name,base_dir+i)) |
len | 53 | fs/proc/fd.c | static int proc_lookupfd(struct inode * dir,const char * name, int len, |
len | 73 | fs/proc/fd.c | if (!len || (name[0] == '.' && (len == 1 || |
len | 74 | fs/proc/fd.c | (name[1] == '.' && len == 2)))) { |
len | 75 | fs/proc/fd.c | if (len < 2) { |
len | 88 | fs/proc/fd.c | while (len-- > 0) { |
len | 101 | fs/proc/net.c | static int proc_lookupnet(struct inode * dir,const char * name, int len, |
len | 115 | fs/proc/net.c | while (i-- > 0 && !proc_match(len,name,net_dir+i)) |
len | 74 | fs/proc/root.c | static int proc_lookuproot(struct inode * dir,const char * name, int len, |
len | 88 | fs/proc/root.c | while (i-- > 0 && !proc_match(len,name,root_dir+i)) |
len | 100 | fs/proc/root.c | while (len-- > 0) { |
len | 25 | fs/sysv/namei.c | static inline int namecompare(int len, int maxlen, |
len | 28 | fs/sysv/namei.c | if (len >= maxlen || !buffer[len]) { |
len | 32 | fs/sysv/namei.c | :"S" ((long) name),"D" ((long) buffer),"c" (len) |
len | 47 | fs/sysv/namei.c | static int sysv_match(int len, const char * name, struct sysv_dir_entry * de) |
len | 49 | fs/sysv/namei.c | if (!de->inode || len > SYSV_NAMELEN) |
len | 52 | fs/sysv/namei.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 54 | fs/sysv/namei.c | return namecompare(len,SYSV_NAMELEN,name,de->name); |
len | 109 | fs/sysv/namei.c | int sysv_lookup(struct inode * dir,const char * name, int len, |
len | 123 | fs/sysv/namei.c | if (!(bh = sysv_find_entry(dir,name,len,&de))) { |
len | 210 | fs/sysv/namei.c | int sysv_create(struct inode * dir,const char * name, int len, int mode, |
len | 232 | fs/sysv/namei.c | error = sysv_add_entry(dir,name,len, &bh ,&de); |
len | 248 | fs/sysv/namei.c | int sysv_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
len | 257 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 292 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
len | 308 | fs/sysv/namei.c | int sysv_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 320 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 358 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
len | 435 | fs/sysv/namei.c | int sysv_rmdir(struct inode * dir, const char * name, int len) |
len | 443 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 490 | fs/sysv/namei.c | int sysv_unlink(struct inode * dir, const char * name, int len) |
len | 500 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 543 | fs/sysv/namei.c | int sysv_symlink(struct inode * dir, const char * name, int len, const char * symname) |
len | 577 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 586 | fs/sysv/namei.c | i = sysv_add_entry(dir, name, len, &bh, &de); |
len | 602 | fs/sysv/namei.c | int sysv_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
len | 618 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 625 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
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 | 535 | fs/xiafs/namei.c | int xiafs_unlink(struct inode * dir, const char * name, int len) |
len | 545 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, &de_pre); |
len | 583 | fs/xiafs/namei.c | int len, const char * symname) |
len | 591 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len, &de, NULL); |
len | 618 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 635 | fs/xiafs/namei.c | const char * name, int len) |
len | 650 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, NULL); |
len | 657 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 64 | include/linux/ext_fs.h | extern int ext_lookup(struct inode * dir,const char * name, int len, |
len | 66 | include/linux/ext_fs.h | extern int ext_create(struct inode * dir,const char * name, int len, int mode, |
len | 68 | include/linux/ext_fs.h | extern int ext_mkdir(struct inode * dir, const char * name, int len, int mode); |
len | 69 | include/linux/ext_fs.h | extern int ext_rmdir(struct inode * dir, const char * name, int len); |
len | 70 | include/linux/ext_fs.h | extern int ext_unlink(struct inode * dir, const char * name, int len); |
len | 71 | include/linux/ext_fs.h | extern int ext_symlink(struct inode * inode, const char * name, int len, |
len | 73 | include/linux/ext_fs.h | extern int ext_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
len | 74 | include/linux/ext_fs.h | extern int ext_mknod(struct inode * dir, const char * name, int len, int mode, int rdev); |
len | 32 | include/linux/ip.h | unsigned char len; |
len | 131 | 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 | 78 | include/linux/minix_fs.h | extern int minix_lookup(struct inode * dir,const char * name, int len, |
len | 80 | include/linux/minix_fs.h | extern int minix_create(struct inode * dir,const char * name, int len, int mode, |
len | 82 | include/linux/minix_fs.h | extern int minix_mkdir(struct inode * dir, const char * name, int len, int mode); |
len | 83 | include/linux/minix_fs.h | extern int minix_rmdir(struct inode * dir, const char * name, int len); |
len | 84 | include/linux/minix_fs.h | extern int minix_unlink(struct inode * dir, const char * name, int len); |
len | 85 | include/linux/minix_fs.h | extern int minix_symlink(struct inode * inode, const char * name, int len, |
len | 87 | include/linux/minix_fs.h | extern int minix_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
len | 88 | include/linux/minix_fs.h | extern int minix_mknod(struct inode * dir, const char * name, int len, int mode, int rdev); |
len | 145 | include/linux/mm.h | extern int do_mmap(struct file * file, unsigned long addr, unsigned long len, |
len | 157 | include/linux/msdos_fs.h | extern int msdos_lookup(struct inode *dir,const char *name,int len, |
len | 159 | include/linux/msdos_fs.h | extern int msdos_create(struct inode *dir,const char *name,int len,int mode, |
len | 161 | include/linux/msdos_fs.h | extern int msdos_mkdir(struct inode *dir,const char *name,int len,int mode); |
len | 162 | include/linux/msdos_fs.h | extern int msdos_rmdir(struct inode *dir,const char *name,int len); |
len | 163 | include/linux/msdos_fs.h | extern int msdos_unlink(struct inode *dir,const char *name,int len); |
len | 107 | include/linux/net.h | int (*listen) (struct socket *sock, int len); |
len | 108 | include/linux/net.h | int (*send) (struct socket *sock, void *buff, int len, int nonblock, |
len | 110 | include/linux/net.h | int (*recv) (struct socket *sock, void *buff, int len, int nonblock, |
len | 112 | include/linux/net.h | int (*sendto) (struct socket *sock, void *buff, int len, int nonblock, |
len | 114 | include/linux/net.h | int (*recvfrom) (struct socket *sock, void *buff, int len, int nonblock, |
len | 122 | include/linux/nfs_fs.h | unsigned long addr, size_t len, int prot, unsigned long off); |
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 | 135 | include/linux/soundcard.h | long len; /* Size of the wave data in bytes */ |
len | 633 | include/linux/soundcard.h | #define SEQ_DEFINEBUF(len) unsigned char _seqbuf[len]; int _seqbuflen = len, _seqbufptr = 0 |
len | 635 | include/linux/soundcard.h | #define _SEQ_NEEDBUF(len) if ((_seqbufptr+(len)) > _seqbuflen) seqbuf_dump() |
len | 636 | include/linux/soundcard.h | #define _SEQ_ADVBUF(len) _seqbufptr += len |
len | 737 | include/linux/soundcard.h | #define SEQ_WRPATCH(patch, len) {if (_seqbufptr) seqbuf_dump();\ |
len | 738 | include/linux/soundcard.h | if (write(seqfd, (char*)(patch), len)==-1) \ |
len | 391 | include/linux/sysv_fs.h | extern int sysv_lookup(struct inode * dir,const char * name, int len, |
len | 393 | include/linux/sysv_fs.h | extern int sysv_create(struct inode * dir,const char * name, int len, int mode, |
len | 395 | include/linux/sysv_fs.h | extern int sysv_mkdir(struct inode * dir, const char * name, int len, int mode); |
len | 396 | include/linux/sysv_fs.h | extern int sysv_rmdir(struct inode * dir, const char * name, int len); |
len | 397 | include/linux/sysv_fs.h | extern int sysv_unlink(struct inode * dir, const char * name, int len); |
len | 398 | include/linux/sysv_fs.h | extern int sysv_symlink(struct inode * inode, const char * name, int len, |
len | 400 | include/linux/sysv_fs.h | extern int sysv_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
len | 401 | 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 | 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 | 292 | init/main.c | int len = strlen(devnames[n]); |
len | 293 | init/main.c | if (!strncmp(line,devnames[n],len)) { |
len | 294 | init/main.c | ROOT_DEV = devnums[n]+simple_strtoul(line+len,NULL,16); |
len | 25 | kernel/module.c | int len; |
len | 40 | kernel/module.c | len = strlen(name) + 1; |
len | 41 | kernel/module.c | if ((savename = (char*) kmalloc(len, GFP_KERNEL)) == NULL) |
len | 43 | kernel/module.c | memcpy(savename, name, len); |
len | 55 | kernel/printk.c | asmlinkage int sys_syslog(int type, char * buf, int len) |
len | 70 | kernel/printk.c | if (!buf || len < 0) |
len | 72 | kernel/printk.c | if (!len) |
len | 74 | kernel/printk.c | error = verify_area(VERIFY_WRITE,buf,len); |
len | 86 | kernel/printk.c | while (log_size && i < len) { |
len | 103 | kernel/printk.c | if (!buf || len < 0) |
len | 105 | kernel/printk.c | if (!len) |
len | 107 | kernel/printk.c | error = verify_area(VERIFY_WRITE,buf,len); |
len | 110 | kernel/printk.c | count = len; |
len | 133 | kernel/printk.c | if (len < 0 || len > 8) |
len | 135 | kernel/printk.c | console_loglevel = len; |
len | 649 | kernel/sys.c | asmlinkage int sys_sethostname(char *name, int len) |
len | 655 | kernel/sys.c | if (len > __NEW_UTS_LEN) |
len | 657 | kernel/sys.c | for (i=0; i < len; i++) { |
len | 669 | kernel/sys.c | asmlinkage int sys_setdomainname(char *name, int len) |
len | 675 | kernel/sys.c | if (len > __NEW_UTS_LEN) |
len | 677 | kernel/sys.c | for (i=0; i < len; i++) { |
len | 121 | kernel/vsprintf.c | int len; |
len | 200 | kernel/vsprintf.c | len = strlen(s); |
len | 202 | kernel/vsprintf.c | precision = len; |
len | 203 | kernel/vsprintf.c | else if (len > precision) |
len | 204 | kernel/vsprintf.c | len = precision; |
len | 207 | kernel/vsprintf.c | while (len < field_width--) |
len | 209 | kernel/vsprintf.c | for (i = 0; i < len; ++i) |
len | 211 | kernel/vsprintf.c | while (len < field_width--) |
len | 168 | lib/malloc.c | unsigned int len, int priority) |
len | 171 | lib/malloc.c | kmalloc(unsigned int len, int priority) |
len | 182 | lib/malloc.c | len += sizeof(struct hdr_start)+sizeof(struct hdr_end); |
len | 191 | lib/malloc.c | for (bdir = bucket_dir ; bdir->size < len ; bdir++) { |
len | 285 | lib/malloc.c | len -= sizeof(struct hdr_start)+sizeof(struct hdr_end); |
len | 292 | lib/malloc.c | if(len > hd->size || len > bdir->size-sizeof(struct hdr_start)-sizeof(struct hdr_end)) { |
len | 294 | lib/malloc.c | hd->size,bdir->size,len,hd->file,hd->line,deb_file,deb_line); |
len | 314 | lib/malloc.c | memset(retval, 0xf0, len); |
len | 315 | lib/malloc.c | he = (struct hdr_end *)(((char *)retval)+len); |
len | 318 | lib/malloc.c | hd->size = len; |
len | 327 | lib/malloc.c | printk("kmalloc called with impossibly large argument (%d)\n", len); |
len | 508 | lib/malloc.c | int len = 0; |
len | 524 | lib/malloc.c | if(len > PAGE_SIZE-80) { |
len | 526 | lib/malloc.c | len += sprintf(buffer+len,"...\n"); |
len | 527 | lib/malloc.c | return len; |
len | 529 | lib/malloc.c | len += sprintf(buffer+len,"%08x:%03x %s:%d %s:%d\n", |
len | 538 | lib/malloc.c | return len; |
len | 42 | mm/mmap.c | int do_mmap(struct file * file, unsigned long addr, unsigned long len, |
len | 47 | mm/mmap.c | if ((len = PAGE_ALIGN(len)) == 0) |
len | 50 | mm/mmap.c | if (addr > TASK_SIZE || len > TASK_SIZE || addr > TASK_SIZE-len) |
len | 81 | mm/mmap.c | if (len > TASK_SIZE || addr > TASK_SIZE - len) |
len | 88 | mm/mmap.c | while (addr+len < SHM_RANGE_END) { |
len | 92 | mm/mmap.c | if (addr + len <= vmm->vm_start) |
len | 100 | mm/mmap.c | if (addr+len >= SHM_RANGE_END) |
len | 122 | mm/mmap.c | do_munmap(addr, len); /* Clear old maps */ |
len | 125 | mm/mmap.c | error = file->f_op->mmap(file->f_inode, file, addr, len, mask, off); |
len | 127 | mm/mmap.c | error = anon_map(NULL, NULL, addr, len, mask, off); |
len | 179 | mm/mmap.c | unsigned long addr, size_t len) |
len | 182 | mm/mmap.c | unsigned long end = addr + len; |
len | 230 | mm/mmap.c | asmlinkage int sys_mprotect(unsigned long addr, size_t len, unsigned long prot) |
len | 235 | mm/mmap.c | asmlinkage int sys_munmap(unsigned long addr, size_t len) |
len | 237 | mm/mmap.c | return do_munmap(addr, len); |
len | 246 | mm/mmap.c | int do_munmap(unsigned long addr, size_t len) |
len | 250 | mm/mmap.c | if ((addr & ~PAGE_MASK) || addr > TASK_SIZE || len > TASK_SIZE-addr) |
len | 253 | mm/mmap.c | if ((len = PAGE_ALIGN(len)) == 0) |
len | 265 | mm/mmap.c | unsigned long end = addr+len; |
len | 295 | mm/mmap.c | end = addr+len; |
len | 306 | mm/mmap.c | unmap_page_range(addr, len); |
len | 312 | mm/mmap.c | unsigned long addr, size_t len, int prot, unsigned long off) |
len | 338 | mm/mmap.c | unmap_page_range(addr, len); |
len | 341 | mm/mmap.c | mpnt->vm_end = addr + len; |
len | 446 | mm/mmap.c | unsigned long addr, size_t len, int mask, |
len | 451 | mm/mmap.c | if (zeromap_page_range(addr, len, mask)) |
len | 460 | mm/mmap.c | mpnt->vm_end = addr + len; |
len | 102 | net/inet/arp.c | char *(*print)(unsigned char *ptr, int len); |
len | 133 | net/inet/arp.c | unk_print(unsigned char *ptr, int len) |
len | 139 | net/inet/arp.c | for (i = 0; i < len; i++) |
len | 147 | net/inet/arp.c | eth_aprint(unsigned char *ptr, int len) |
len | 149 | net/inet/arp.c | if (len != ETH_ALEN) return(""); |
len | 158 | net/inet/arp.c | int len, idx; |
len | 170 | net/inet/arp.c | len = htons(arp->ar_op); |
len | 171 | net/inet/arp.c | if (len < ARP_MAX_CMDS) idx = len; |
len | 174 | net/inet/arp.c | printk(arp_cmds[idx], len); |
len | 177 | net/inet/arp.c | len = htons(arp->ar_hrd); |
len | 178 | net/inet/arp.c | if (len < ARP_MAX_TYPE) idx = len; |
len | 180 | net/inet/arp.c | printk(" hrd = "); printk(arp_types[idx].name, len); |
len | 311 | net/inet/arp.c | skb->len = sizeof(struct arphdr) + (2 * arp1->ar_hln) + |
len | 313 | net/inet/arp.c | skb->mem_len = sizeof(struct sk_buff) + skb->len; |
len | 314 | net/inet/arp.c | hlen = dev->hard_header(skb->data, dev, ETH_P_ARP, src, dst, skb->len); |
len | 636 | net/inet/arp.c | skb->len = sizeof(struct arphdr) + |
len | 638 | net/inet/arp.c | skb->mem_len = sizeof(struct sk_buff) + skb->len; |
len | 643 | net/inet/arp.c | tmp = dev->hard_header(skb->data, dev, ETH_P_ARP, 0, saddr, skb->len); |
len | 523 | net/inet/dev.c | dev_rint(unsigned char *buff, long len, int flags, struct device *dev) |
len | 531 | net/inet/dev.c | if (dev == NULL || buff == NULL || len <= 0) return(1); |
len | 542 | net/inet/dev.c | skb = alloc_skb(sizeof(*skb) + len, GFP_ATOMIC); |
len | 549 | net/inet/dev.c | skb->mem_len = sizeof(*skb) + len; |
len | 554 | net/inet/dev.c | left = len; |
len | 555 | net/inet/dev.c | len2 = len; |
len | 568 | net/inet/dev.c | skb->len = len; |
len | 633 | net/inet/dev.c | skb->len -= skb->dev->hard_header_len; |
len | 738 | net/inet/dev.c | int len; |
len | 746 | net/inet/dev.c | len = ifc.ifc_len; |
len | 761 | net/inet/dev.c | len -= sizeof(struct ifreq); |
len | 762 | net/inet/dev.c | if (len < sizeof(struct ifreq)) break; |
len | 126 | net/inet/dev.h | unsigned len); |
len | 180 | net/inet/dev.h | extern int dev_rint(unsigned char *buff, long len, int flags, |
len | 99 | net/inet/eth.c | unsigned long daddr, unsigned long saddr, unsigned len) |
len | 29 | net/inet/eth.h | unsigned long saddr, unsigned len); |
len | 87 | net/inet/icmp.c | int len; |
len | 93 | net/inet/icmp.c | len = sizeof(struct sk_buff) + dev->hard_header_len + |
len | 97 | net/inet/icmp.c | skb = (struct sk_buff *) alloc_skb(len, GFP_ATOMIC); |
len | 103 | net/inet/icmp.c | skb->mem_len = len; |
len | 104 | net/inet/icmp.c | len -= sizeof(struct sk_buff); |
len | 111 | net/inet/icmp.c | &dev, IPPROTO_ICMP, NULL, len, skb_in->ip_hdr->tos,255); |
len | 119 | net/inet/icmp.c | skb->len = offset + sizeof(struct icmphdr) + sizeof(struct iphdr) + 8; |
len | 239 | net/inet/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
len | 246 | net/inet/icmp.c | size = sizeof(struct sk_buff) + dev->hard_header_len + 64 + len; |
len | 260 | net/inet/icmp.c | IPPROTO_ICMP, opt, len, skb->ip_hdr->tos,255); |
len | 270 | net/inet/icmp.c | skb2->len = offset + len; |
len | 274 | net/inet/icmp.c | memcpy((char *) icmphr, (char *) icmph, len); |
len | 278 | net/inet/icmp.c | icmphr->checksum = ip_compute_csum((unsigned char *)icmphr, len); |
len | 291 | net/inet/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
len | 303 | net/inet/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
len | 310 | net/inet/icmp.c | size = sizeof(struct sk_buff) + dev->hard_header_len + 64 + len; |
len | 324 | net/inet/icmp.c | IPPROTO_ICMP, opt, len, skb->ip_hdr->tos,255); |
len | 334 | net/inet/icmp.c | skb2->len = offset + len; |
len | 345 | net/inet/icmp.c | icmphr->checksum = ip_compute_csum((unsigned char *)icmphr, len); |
len | 358 | net/inet/icmp.c | unsigned long daddr, unsigned short len, |
len | 377 | net/inet/icmp.c | if (ip_compute_csum((unsigned char *) icmph, len)) { |
len | 397 | net/inet/icmp.c | icmp_echo(icmph, skb1, dev, saddr, daddr, len, opt); |
len | 404 | net/inet/icmp.c | icmp_info(icmph, skb1, dev, saddr, daddr, len, opt); |
len | 411 | net/inet/icmp.c | icmp_address(icmph, skb1, dev, saddr, daddr, len, opt); |
len | 30 | net/inet/icmp.h | unsigned short len, unsigned long saddr, |
len | 92 | net/inet/ip.c | int addr, len, i; |
len | 109 | net/inet/ip.c | len = ntohs(ip->tot_len) - (4 * ip->ihl); |
len | 110 | net/inet/ip.c | while (len > 0) { |
len | 113 | net/inet/ip.c | if (len > 0) { |
len | 122 | net/inet/ip.c | len--; |
len | 187 | net/inet/ip.c | ip_send(struct sk_buff *skb, unsigned long daddr, int len, struct device *dev, |
len | 197 | net/inet/ip.c | mac = dev->hard_header(ptr, dev, ETH_P_IP, daddr, saddr, len); |
len | 216 | net/inet/ip.c | struct device **dev, int type, struct options *opt, int len, int tos, int ttl) |
len | 231 | net/inet/ip.c | skb, saddr, daddr, *dev, type, opt, len)); |
len | 257 | net/inet/ip.c | tmp = ip_send(skb, raddr, len, *dev, saddr); |
len | 259 | net/inet/ip.c | len -= tmp; |
len | 297 | net/inet/ip.c | int i, len = sizeof(struct iphdr); |
len | 315 | net/inet/ip.c | while (!done && len < iph->ihl*4) switch(*buff) { |
len | 321 | net/inet/ip.c | len++; |
len | 335 | net/inet/ip.c | len += 11; |
len | 340 | net/inet/ip.c | len += *buff; |
len | 357 | net/inet/ip.c | len += *buff; |
len | 374 | net/inet/ip.c | len += *buff; |
len | 389 | net/inet/ip.c | len += 4; |
len | 396 | net/inet/ip.c | len += *buff; |
len | 398 | net/inet/ip.c | opt->tstamp.len = *buff / 4 - 1; |
len | 405 | net/inet/ip.c | for (i = 0; i < opt->tstamp.len; i++) { |
len | 470 | net/inet/ip.c | ip_compute_csum(unsigned char * buff, int len) |
len | 475 | net/inet/ip.c | if (len > 3) { |
len | 487 | net/inet/ip.c | : "0" (sum), "c" (len >> 2) ,"1" (buff) |
len | 490 | net/inet/ip.c | if (len & 2) { |
len | 498 | net/inet/ip.c | if (len & 1) { |
len | 545 | net/inet/ip.c | fp->len = end - offset; |
len | 704 | net/inet/ip.c | qp->len = 0; |
len | 736 | net/inet/ip.c | if (qp->len == 0) |
len | 762 | net/inet/ip.c | int count, len; |
len | 765 | net/inet/ip.c | len = sizeof(struct sk_buff)+qp->maclen + qp->ihlen + qp->len; |
len | 766 | net/inet/ip.c | if ((skb = alloc_skb(len,GFP_ATOMIC)) == NULL) |
len | 774 | net/inet/ip.c | skb->len = (len - qp->maclen); |
len | 795 | net/inet/ip.c | if(count+fp->len>skb->len) |
len | 803 | net/inet/ip.c | memcpy((ptr + fp->offset), fp->ptr, fp->len); |
len | 804 | net/inet/ip.c | count += fp->len; |
len | 873 | net/inet/ip.c | qp->len = end; |
len | 913 | net/inet/ip.c | next->len -= i; /* so reduce size of */ |
len | 918 | net/inet/ip.c | if (next->len <= 0) |
len | 921 | net/inet/ip.c | next, next->len)); |
len | 983 | net/inet/ip.c | int left, mtu, hlen, len; |
len | 1023 | net/inet/ip.c | len = left; |
len | 1025 | net/inet/ip.c | if (len > mtu) |
len | 1026 | net/inet/ip.c | len = mtu; |
len | 1029 | net/inet/ip.c | if (len < left) |
len | 1031 | net/inet/ip.c | len/=8; |
len | 1032 | net/inet/ip.c | len*=8; |
len | 1035 | net/inet/ip.c | len, len + hlen)); |
len | 1038 | net/inet/ip.c | if ((skb2 = alloc_skb(sizeof(struct sk_buff) + len + hlen,GFP_ATOMIC)) == NULL) |
len | 1045 | net/inet/ip.c | skb2->len = len + hlen; |
len | 1055 | net/inet/ip.c | memcpy(skb2->h.raw + hlen, ptr, len); |
len | 1056 | net/inet/ip.c | left -= len; |
len | 1066 | net/inet/ip.c | ptr += len; |
len | 1067 | net/inet/ip.c | offset += len; |
len | 1166 | net/inet/ip.c | in_ntoa(raddr), dev2->name, skb->len)); |
len | 1170 | net/inet/ip.c | dev2->hard_header_len + skb->len, GFP_ATOMIC); |
len | 1178 | net/inet/ip.c | skb2->len = skb->len + dev2->hard_header_len; |
len | 1180 | net/inet/ip.c | skb2->mem_len = sizeof(struct sk_buff) + skb2->len; |
len | 1185 | net/inet/ip.c | memcpy(ptr + dev2->hard_header_len, skb->h.raw, skb->len); |
len | 1188 | net/inet/ip.c | (void) ip_send(skb2, raddr, skb->len, dev2, dev2->pa_addr); |
len | 1190 | net/inet/ip.c | if(skb2->len > dev2->mtu) |
len | 1228 | 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 | 1395 | net/inet/ip.c | iph->tot_len = ntohs(skb->len-dev->hard_header_len); |
len | 1397 | net/inet/ip.c | if(skb->len > dev->mtu) |
len | 40 | net/inet/ip.h | int len; /* length of this fragment */ |
len | 51 | net/inet/ip.h | int len; /* total length of original datagram */ |
len | 72 | net/inet/ip.h | struct options *opt, int len, |
len | 74 | net/inet/ip.h | extern unsigned short ip_compute_csum(unsigned char * buff, int len); |
len | 64 | net/inet/loopback.c | done = dev_rint(skb->data, skb->len, 0, dev); |
len | 65 | net/inet/packet.c | skb->len += dev->hard_header_len; |
len | 85 | net/inet/packet.c | packet_sendto(struct sock *sk, unsigned char *from, int len, |
len | 96 | net/inet/packet.c | if (len < 0) return(-EINVAL); |
len | 108 | net/inet/packet.c | err=verify_area(VERIFY_READ,from,len); |
len | 118 | net/inet/packet.c | if(len>dev->mtu) |
len | 122 | net/inet/packet.c | skb = sk->prot->wmalloc(sk, len+sizeof(*skb), 0, GFP_KERNEL); |
len | 131 | net/inet/packet.c | skb->mem_len = len + sizeof(*skb); |
len | 134 | net/inet/packet.c | memcpy_fromfs(skb->data, from, len); |
len | 135 | net/inet/packet.c | skb->len = len; |
len | 140 | net/inet/packet.c | return(len); |
len | 146 | net/inet/packet.c | int len, int noblock, unsigned flags) |
len | 148 | net/inet/packet.c | return(packet_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
len | 189 | net/inet/packet.c | packet_recvfrom(struct sock *sk, unsigned char *to, int len, |
len | 199 | net/inet/packet.c | if (len == 0) return(0); |
len | 200 | net/inet/packet.c | if (len < 0) return(-EINVAL); |
len | 210 | net/inet/packet.c | err=verify_area(VERIFY_WRITE,to,len); |
len | 216 | net/inet/packet.c | copied = min(len, skb->len); |
len | 239 | net/inet/packet.c | int len, int noblock, unsigned flags) |
len | 241 | net/inet/packet.c | return(packet_recvfrom(sk, buff, len, noblock, flags, NULL, NULL)); |
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 | 95 | net/inet/raw.c | unsigned long daddr, unsigned short len, unsigned long saddr, |
len | 102 | net/inet/raw.c | skb, dev, opt, daddr, len, saddr, redo, protocol)); |
len | 117 | net/inet/raw.c | skb->len = len + skb->ip_hdr->ihl*sizeof(long); |
len | 131 | net/inet/raw.c | sk->data_ready(sk,skb->len); |
len | 139 | net/inet/raw.c | raw_sendto(struct sock *sk, unsigned char *from, int len, |
len | 150 | net/inet/raw.c | " usin=%X, addr_len = %d)\n", sk, from, len, noblock, |
len | 155 | net/inet/raw.c | if (len < 0) return(-EINVAL); |
len | 157 | net/inet/raw.c | err=verify_area(VERIFY_READ,from,len); |
len | 191 | net/inet/raw.c | len+sizeof(*skb) + sk->prot->max_header, |
len | 214 | net/inet/raw.c | skb->mem_len = len + sizeof(*skb) +sk->prot->max_header; |
len | 231 | net/inet/raw.c | memcpy_fromfs(skb->data + tmp, from, len); |
len | 246 | net/inet/raw.c | skb->len = tmp + len; |
len | 248 | net/inet/raw.c | if(dev!=NULL && skb->len > 4095) |
len | 257 | net/inet/raw.c | return(len); |
len | 262 | net/inet/raw.c | raw_write(struct sock *sk, unsigned char *buff, int len, int noblock, |
len | 265 | net/inet/raw.c | return(raw_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
len | 316 | net/inet/raw.c | raw_recvfrom(struct sock *sk, unsigned char *to, int len, |
len | 326 | net/inet/raw.c | sk, to, len, noblock, flags, sin, addr_len)); |
len | 328 | net/inet/raw.c | if (len == 0) return(0); |
len | 329 | net/inet/raw.c | if (len < 0) return(-EINVAL); |
len | 345 | net/inet/raw.c | err=verify_area(VERIFY_WRITE,to,len); |
len | 353 | net/inet/raw.c | copied = min(len, skb->len); |
len | 373 | net/inet/raw.c | raw_read (struct sock *sk, unsigned char *buff, int len, int noblock, |
len | 376 | net/inet/raw.c | return(raw_recvfrom(sk, buff, len, noblock, flags, NULL, NULL)); |
len | 28 | net/inet/raw.h | unsigned short len, unsigned long saddr, |
len | 31 | net/inet/raw.h | int len, int noblock, unsigned flags, |
len | 34 | net/inet/raw.h | int len, int noblock, unsigned flags); |
len | 318 | net/inet/skbuff.c | unsigned int len; |
len | 332 | net/inet/skbuff.c | len=orig->truesize; |
len | 335 | net/inet/skbuff.c | newsk=alloc_skb(len,GFP_KERNEL); /* May sleep */ |
len | 348 | net/inet/skbuff.c | newsk->mem_len=len; |
len | 355 | net/inet/skbuff.c | memcpy(newsk,orig,len); |
len | 65 | net/inet/skbuff.h | unsigned long len; |
len | 747 | net/inet/sock.c | static void def_callback2(struct sock *sk,int len) |
len | 1253 | net/inet/sock.c | int len; |
len | 1261 | net/inet/sock.c | len=get_fs_long(uaddr_len); |
len | 1263 | net/inet/sock.c | err = verify_area(VERIFY_WRITE, uaddr, len); |
len | 1268 | net/inet/sock.c | if (len < sizeof(sin)) return(-EINVAL); |
len | 1285 | net/inet/sock.c | len = sizeof(sin); |
len | 1289 | net/inet/sock.c | put_fs_long(len, uaddr_len); |
len | 1762 | net/inet/sock.c | skb->saddr, skb->len, skb->daddr, 1, |
len | 188 | net/inet/sock.h | int len, int nonblock, unsigned flags); |
len | 190 | net/inet/sock.h | int len, int nonblock, unsigned flags); |
len | 192 | net/inet/sock.h | unsigned char *from, int len, int noblock, |
len | 196 | net/inet/sock.h | unsigned char *from, int len, int noblock, |
len | 203 | net/inet/sock.h | struct options *opt, int len, int tos, int ttl); |
len | 215 | net/inet/sock.h | unsigned short len, unsigned long saddr, |
len | 350 | 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 | 527 | net/inet/tcp.c | tcp_check(struct tcphdr *th, int len, |
len | 538 | net/inet/tcp.c | : "0"(daddr), "c"(saddr), "d"((ntohs(len) << 16) + IPPROTO_TCP*256) |
len | 541 | net/inet/tcp.c | if (len > 3) { |
len | 549 | net/inet/tcp.c | : "0"(sum), "c"(len/4) ,"1"(th) |
len | 563 | net/inet/tcp.c | if ((len & 2) != 0) { |
len | 573 | net/inet/tcp.c | if ((len & 1) != 0) { |
len | 589 | net/inet/tcp.c | unsigned long daddr, int len, struct sock *sk) |
len | 592 | net/inet/tcp.c | th->check = tcp_check(th, len, saddr, daddr); |
len | 602 | net/inet/tcp.c | size = skb->len - ((unsigned char *) th - skb->data); |
len | 605 | net/inet/tcp.c | if (size < sizeof(struct tcphdr) || size > skb->len) { |
len | 607 | net/inet/tcp.c | skb, skb->data, th, skb->len); |
len | 728 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
len | 741 | net/inet/tcp.c | buff->len += tmp; |
len | 810 | net/inet/tcp.c | int len, int nonblock, unsigned flags) |
len | 822 | net/inet/tcp.c | sk, from, len, nonblock, flags)); |
len | 826 | net/inet/tcp.c | while(len > 0) { |
len | 918 | net/inet/tcp.c | copy = min(sk->mss - (skb->len - hdrlen), len); |
len | 925 | net/inet/tcp.c | memcpy_fromfs(skb->data + skb->len, from, copy); |
len | 926 | net/inet/tcp.c | skb->len += copy; |
len | 929 | net/inet/tcp.c | len -= copy; |
len | 932 | net/inet/tcp.c | if ((skb->len - hdrlen) >= sk->mss || |
len | 956 | net/inet/tcp.c | if (copy > len) |
len | 957 | net/inet/tcp.c | copy = len; |
len | 1006 | net/inet/tcp.c | skb->len = 0; |
len | 1025 | net/inet/tcp.c | skb->len += tmp; |
len | 1029 | net/inet/tcp.c | tmp = tcp_build_header((struct tcphdr *)buff, sk, len-copy); |
len | 1042 | net/inet/tcp.c | skb->len += tmp; |
len | 1047 | net/inet/tcp.c | len -= copy; |
len | 1048 | net/inet/tcp.c | skb->len += copy; |
len | 1083 | net/inet/tcp.c | int len, int nonblock, unsigned flags, |
len | 1093 | net/inet/tcp.c | return(tcp_write(sk, from, len, nonblock, flags)); |
len | 1127 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
len | 1139 | net/inet/tcp.c | buff->len += tmp; |
len | 1249 | net/inet/tcp.c | unsigned char *to, int len, unsigned flags) |
len | 1253 | net/inet/tcp.c | while (len > 0) { |
len | 1303 | net/inet/tcp.c | int len, int nonblock, unsigned flags) |
len | 1312 | net/inet/tcp.c | if (len == 0) |
len | 1315 | net/inet/tcp.c | if (len < 0) |
len | 1318 | net/inet/tcp.c | err = verify_area(VERIFY_WRITE, to, len); |
len | 1328 | net/inet/tcp.c | return tcp_read_urg(sk, nonblock, to, len, flags); |
len | 1337 | net/inet/tcp.c | while (len > 0) { |
len | 1358 | net/inet/tcp.c | if (offset < skb->len) |
len | 1406 | net/inet/tcp.c | used = skb->len - offset; |
len | 1407 | net/inet/tcp.c | if (len < used) |
len | 1408 | net/inet/tcp.c | used = len; |
len | 1427 | net/inet/tcp.c | len -= used; |
len | 1432 | net/inet/tcp.c | if (!(flags & MSG_PEEK) && (used + offset >= skb->len)) |
len | 1486 | net/inet/tcp.c | buff->len = sizeof(*t1); |
len | 1507 | net/inet/tcp.c | buff->len += tmp; |
len | 1549 | net/inet/tcp.c | int len; |
len | 1559 | net/inet/tcp.c | len = get_fs_long(addr_len); |
len | 1560 | net/inet/tcp.c | if(len > sizeof(sin)) |
len | 1561 | net/inet/tcp.c | len = sizeof(sin); |
len | 1562 | net/inet/tcp.c | err=verify_area(VERIFY_WRITE, addr, len); |
len | 1574 | net/inet/tcp.c | memcpy_tofs(addr, &sin, len); |
len | 1575 | net/inet/tcp.c | put_fs_long(len, addr_len); |
len | 1600 | net/inet/tcp.c | buff->len = sizeof(*t1); |
len | 1615 | net/inet/tcp.c | buff->len += tmp; |
len | 1870 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr)+4; |
len | 1891 | net/inet/tcp.c | buff->len += tmp; |
len | 1966 | net/inet/tcp.c | if(skb->len > 0 && after(skb->h.th->seq + skb->len + 1 , sk->copied_seq)) |
len | 2027 | net/inet/tcp.c | buff->len = sizeof(*t1); |
len | 2049 | net/inet/tcp.c | buff->len += tmp; |
len | 2175 | net/inet/tcp.c | tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len) |
len | 2214 | net/inet/tcp.c | if (len != th->doff*4) flag |= 1; |
len | 2551 | net/inet/tcp.c | unsigned long saddr, unsigned short len) |
len | 2559 | net/inet/tcp.c | skb->len = len -(th->doff*4); |
len | 2561 | net/inet/tcp.c | DPRINTF((DBG_TCP, "tcp_data len = %d sk = %X:\n", skb->len, sk)); |
len | 2563 | net/inet/tcp.c | sk->bytes_rcv += skb->len; |
len | 2564 | net/inet/tcp.c | if (skb->len == 0 && !th->fin && !th->urg && !th->psh) { |
len | 2572 | net/inet/tcp.c | sk->acked_seq = th->seq + skb->len + th->syn + th->fin; |
len | 2634 | net/inet/tcp.c | if (th->seq==skb1->h.th->seq && skb->len>= skb1->len) |
len | 2658 | net/inet/tcp.c | th->ack_seq = th->seq + skb->len; |
len | 2831 | net/inet/tcp.c | unsigned long saddr, unsigned long len) |
len | 2845 | net/inet/tcp.c | if (ptr >= len) |
len | 3005 | net/inet/tcp.c | buff->len = 24; |
len | 3019 | net/inet/tcp.c | buff->len += tmp; |
len | 3077 | net/inet/tcp.c | tcp_sequence(struct sock *sk, struct tcphdr *th, short len, |
len | 3082 | net/inet/tcp.c | next_seq = len - 4*th->doff; |
len | 3133 | net/inet/tcp.c | unsigned long daddr, unsigned short len, |
len | 3162 | net/inet/tcp.c | DPRINTF((DBG_TCP, "len = %d, redo = %d, skb=%X\n", len, redo, skb)); |
len | 3174 | net/inet/tcp.c | if (tcp_check(th, len, saddr, daddr )) { |
len | 3197 | net/inet/tcp.c | skb->len = len; |
len | 3272 | net/inet/tcp.c | if (!tcp_sequence(sk, th, len, opt, saddr,dev)) { |
len | 3325 | net/inet/tcp.c | if (th->ack && !tcp_ack(sk, th, saddr, len)) { |
len | 3331 | net/inet/tcp.c | if (tcp_urg(sk, th, saddr, len)) { |
len | 3337 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) { |
len | 3408 | net/inet/tcp.c | if (!tcp_sequence(sk, th, len, opt, saddr,dev)) { |
len | 3453 | net/inet/tcp.c | if (!tcp_ack(sk, th, saddr, len)) { |
len | 3478 | net/inet/tcp.c | if (!tcp_ack(sk, th, saddr, len)) { |
len | 3518 | net/inet/tcp.c | if (tcp_urg(sk, th, saddr, len)) { |
len | 3524 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) |
len | 3533 | net/inet/tcp.c | if (tcp_urg(sk, th, saddr, len)) { |
len | 3540 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) { |
len | 3581 | net/inet/tcp.c | buff->len = sizeof(struct tcphdr); |
len | 3595 | net/inet/tcp.c | buff->len += tmp; |
len | 122 | net/inet/tcp.h | unsigned short len, unsigned long saddr, int redo, |
len | 67 | net/inet/timer.c | reset_timer (struct sock *t, int timeout, unsigned long len) |
len | 76 | net/inet/timer.c | if ((int) len < 0) /* prevent close to infinite timers. THEY _DO_ */ |
len | 77 | net/inet/timer.c | len = 3; /* happen (negative values ?) - don't ask me why ! -FB */ |
len | 79 | net/inet/timer.c | t->timer.expires = len; |
len | 81 | net/inet/udp.c | printk(" len = %d, check = %d\n", ntohs(uh->len), ntohs(uh->check)); |
len | 139 | net/inet/udp.c | udp_check(struct udphdr *uh, int len, |
len | 145 | net/inet/udp.c | uh, len, saddr, daddr)); |
len | 153 | net/inet/udp.c | : "0"(daddr), "c"(saddr), "d"((ntohs(len) << 16) + IPPROTO_UDP*256) |
len | 156 | net/inet/udp.c | if (len > 3) { |
len | 164 | net/inet/udp.c | : "0"(sum), "c"(len/4) ,"1"(uh) |
len | 178 | net/inet/udp.c | if ((len & 2) != 0) { |
len | 188 | net/inet/udp.c | if ((len & 1) != 0) { |
len | 205 | net/inet/udp.c | unsigned long daddr, int len, struct sock *sk) |
len | 210 | net/inet/udp.c | uh->check = udp_check(uh, len, saddr, daddr); |
len | 217 | net/inet/udp.c | unsigned char *from, int len) |
len | 229 | net/inet/udp.c | from, len)); |
len | 231 | net/inet/udp.c | err=verify_area(VERIFY_READ, from, len); |
len | 236 | net/inet/udp.c | size = sizeof(struct sk_buff) + sk->prot->max_header + len; |
len | 264 | net/inet/udp.c | skb->len = tmp + sizeof(struct udphdr) + len; /* len + UDP + IP + MAC */ |
len | 272 | net/inet/udp.c | if (len > dev->mtu) { |
len | 274 | net/inet/udp.c | if (skb->len > 4095) |
len | 277 | net/inet/udp.c | printk("UDP: send: length %d > mtu %d (ignored)\n", len, dev->mtu); |
len | 284 | net/inet/udp.c | uh->len = htons(len + sizeof(struct udphdr)); |
len | 290 | net/inet/udp.c | memcpy_fromfs(buff, from, len); |
len | 293 | net/inet/udp.c | udp_send_check(uh, saddr, sin->sin_addr.s_addr, skb->len - tmp, sk); |
len | 298 | net/inet/udp.c | return(len); |
len | 303 | net/inet/udp.c | udp_sendto(struct sock *sk, unsigned char *from, int len, int noblock, |
len | 310 | net/inet/udp.c | DPRINTF((DBG_UDP, "UDP: sendto(len=%d, flags=%X)\n", len, flags)); |
len | 315 | net/inet/udp.c | if (len < 0) |
len | 317 | net/inet/udp.c | if (len == 0) |
len | 343 | net/inet/udp.c | tmp = udp_send(sk, &sin, from, len); |
len | 352 | net/inet/udp.c | udp_write(struct sock *sk, unsigned char *buff, int len, int noblock, |
len | 355 | net/inet/udp.c | return(udp_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
len | 413 | net/inet/udp.c | amount = skb->len; |
len | 435 | net/inet/udp.c | udp_recvfrom(struct sock *sk, unsigned char *to, int len, |
len | 456 | net/inet/udp.c | if (len == 0) |
len | 458 | net/inet/udp.c | if (len < 0) |
len | 473 | net/inet/udp.c | er=verify_area(VERIFY_WRITE,to,len); |
len | 479 | net/inet/udp.c | copied = min(len, skb->len); |
len | 501 | net/inet/udp.c | udp_read(struct sock *sk, unsigned char *buff, int len, int noblock, |
len | 504 | net/inet/udp.c | return(udp_recvfrom(sk, buff, len, noblock, flags, NULL, NULL)); |
len | 548 | net/inet/udp.c | unsigned long daddr, unsigned short len, |
len | 572 | net/inet/udp.c | if (uh->check && udp_check(uh, len, saddr, daddr)) { |
len | 581 | net/inet/udp.c | skb->len = len; |
len | 606 | net/inet/udp.c | skb->len = len - sizeof(*uh); |
len | 609 | net/inet/udp.c | sk->data_ready(sk,skb->len); |
len | 37 | net/inet/udp.h | int len, int noblock, unsigned flags, |
len | 40 | net/inet/udp.h | int len, int noblock, unsigned flags); |
len | 45 | net/inet/udp.h | unsigned short len, unsigned long saddr, int redo, |
len | 702 | net/socket.c | sock_send(int fd, void * buff, int len, unsigned flags) |
len | 709 | net/socket.c | fd, buff, len, flags)); |
len | 715 | net/socket.c | return(sock->ops->send(sock, buff, len, (file->f_flags & O_NONBLOCK), flags)); |
len | 720 | net/socket.c | sock_sendto(int fd, void * buff, int len, unsigned flags, |
len | 728 | net/socket.c | " addr=%X, alen = %d\n", fd, buff, len, flags, addr, addr_len)); |
len | 734 | net/socket.c | return(sock->ops->sendto(sock, buff, len, (file->f_flags & O_NONBLOCK), |
len | 740 | net/socket.c | sock_recv(int fd, void * buff, int len, unsigned flags) |
len | 747 | net/socket.c | fd, buff, len, flags)); |
len | 753 | net/socket.c | return(sock->ops->recv(sock, buff, len,(file->f_flags & O_NONBLOCK), flags)); |
len | 758 | net/socket.c | sock_recvfrom(int fd, void * buff, int len, unsigned flags, |
len | 766 | net/socket.c | " addr=%X, alen=%X\n", fd, buff, len, flags, addr, addr_len)); |
len | 772 | net/socket.c | return(sock->ops->recvfrom(sock, buff, len, (file->f_flags & O_NONBLOCK), |
len | 79 | net/unix/sock.c | static int unix_proto_send(struct socket *sock, void *buff, int len, |
len | 81 | net/unix/sock.c | static int unix_proto_recv(struct socket *sock, void *buff, int len, |
len | 83 | net/unix/sock.c | static int unix_proto_sendto(struct socket *sock, void *buff, int len, |
len | 86 | net/unix/sock.c | static int unix_proto_recvfrom(struct socket *sock, void *buff, int len, |
len | 193 | net/unix/sock.c | unix_proto_sendto(struct socket *sock, void *buff, int len, int nonblock, |
len | 200 | net/unix/sock.c | unix_proto_recvfrom(struct socket *sock, void *buff, int len, int nonblock, |
len | 216 | net/unix/sock.c | unix_proto_send(struct socket *sock, void *buff, int len, int nonblock, |
len | 220 | net/unix/sock.c | return(unix_proto_write(sock, (char *) buff, len, nonblock)); |
len | 226 | net/unix/sock.c | unix_proto_recv(struct socket *sock, void *buff, int len, int nonblock, |
len | 230 | net/unix/sock.c | return(unix_proto_read(sock, (char *) buff, len, nonblock)); |
len | 570 | net/unix/sock.c | int len; |
len | 586 | net/unix/sock.c | if ((len = get_fs_long(usockaddr_len)) <= 0) return(-EINVAL); |
len | 587 | net/unix/sock.c | if (len > upd->sockaddr_len) len = upd->sockaddr_len; |
len | 588 | net/unix/sock.c | if (len) { |
len | 589 | net/unix/sock.c | er=verify_area(VERIFY_WRITE, usockaddr, len); |
len | 592 | net/unix/sock.c | memcpy_tofs(usockaddr, &upd->sockaddr_un, len); |
len | 594 | net/unix/sock.c | put_fs_long(len, usockaddr_len); |
len | 264 | zBoot/gzip.h | void copy_block OF((char *buf, unsigned len, int header)); |
len | 204 | zBoot/misc.c | int len, i; |
len | 209 | zBoot/misc.c | len = INBUFSIZ-insize; |
len | 210 | zBoot/misc.c | if (len > (input_len-input_ptr+1)) len=input_len-input_ptr+1; |
len | 211 | zBoot/misc.c | if (len == 0 || len == EOF) break; |
len | 213 | zBoot/misc.c | for (i=0;i<len;i++) inbuf[insize+i] = input_data[input_ptr+i]; |
len | 214 | zBoot/misc.c | insize += len; |
len | 215 | zBoot/misc.c | input_ptr += len; |
len | 395 | zBoot/misc.c | unsigned len = (unsigned)get_byte(); |
len | 396 | zBoot/misc.c | len |= ((unsigned)get_byte())<<8; |
len | 397 | 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)); |