tag | line | file | source code |
len | 130 | arch/alpha/kernel/irq.c | int i, len = 0; |
len | 136 | arch/alpha/kernel/irq.c | len += sprintf(buf+len, "%2d: %8d %c %s\n", |
len | 141 | arch/alpha/kernel/irq.c | return len; |
len | 156 | arch/alpha/kernel/osf_sys.c | asmlinkage unsigned long osf_mmap(unsigned long addr, unsigned long len, |
len | 168 | arch/alpha/kernel/osf_sys.c | return do_mmap(file, addr, len, prot, flags, off); |
len | 467 | arch/alpha/kernel/osf_sys.c | unsigned len; |
len | 474 | arch/alpha/kernel/osf_sys.c | len = namelen; |
len | 476 | arch/alpha/kernel/osf_sys.c | len = 32; |
len | 478 | arch/alpha/kernel/osf_sys.c | for (i = 0; i < len; ++i) { |
len | 31 | arch/alpha/lib/checksum.c | unsigned short len, |
len | 36 | arch/alpha/lib/checksum.c | ((unsigned long) ntohs(len) << 16) + |
len | 47 | arch/alpha/lib/checksum.c | static inline unsigned long do_csum(unsigned char * buff, int len) |
len | 52 | arch/alpha/lib/checksum.c | if (len <= 0) |
len | 57 | arch/alpha/lib/checksum.c | len--; |
len | 60 | arch/alpha/lib/checksum.c | count = len >> 1; /* nr of 16-bit words.. */ |
len | 65 | arch/alpha/lib/checksum.c | len -= 2; |
len | 73 | arch/alpha/lib/checksum.c | len -= 4; |
len | 90 | arch/alpha/lib/checksum.c | if (len & 4) { |
len | 95 | arch/alpha/lib/checksum.c | if (len & 2) { |
len | 100 | arch/alpha/lib/checksum.c | if (len & 1) |
len | 130 | arch/alpha/lib/checksum.c | unsigned int csum_partial(unsigned char * buff, int len, unsigned int sum) |
len | 132 | arch/alpha/lib/checksum.c | unsigned long result = do_csum(buff, len); |
len | 149 | arch/alpha/lib/checksum.c | unsigned int csum_partial_copy(char *src, char *dst, int len, int sum) |
len | 158 | arch/alpha/lib/checksum.c | sum = csum_partial(src, len, sum); |
len | 159 | arch/alpha/lib/checksum.c | memcpy(dst, src, len); |
len | 167 | arch/alpha/lib/checksum.c | unsigned short ip_compute_csum(unsigned char * buff, int len) |
len | 169 | arch/alpha/lib/checksum.c | return ~from64to16(do_csum(buff,len)); |
len | 264 | arch/i386/boot/compressed/gzip.h | void copy_block OF((char *buf, unsigned len, int header)); |
len | 220 | arch/i386/boot/compressed/misc.c | int len, i; |
len | 225 | arch/i386/boot/compressed/misc.c | len = INBUFSIZ-insize; |
len | 226 | arch/i386/boot/compressed/misc.c | if (len > (input_len-input_ptr+1)) len=input_len-input_ptr+1; |
len | 227 | arch/i386/boot/compressed/misc.c | if (len == 0 || len == EOF) break; |
len | 229 | arch/i386/boot/compressed/misc.c | for (i=0;i<len;i++) inbuf[insize+i] = input_data[input_ptr+i]; |
len | 230 | arch/i386/boot/compressed/misc.c | insize += len; |
len | 231 | arch/i386/boot/compressed/misc.c | input_ptr += len; |
len | 398 | arch/i386/boot/compressed/misc.c | unsigned len = (unsigned)get_byte(); |
len | 399 | arch/i386/boot/compressed/misc.c | len |= ((unsigned)get_byte())<<8; |
len | 400 | arch/i386/boot/compressed/misc.c | while (len--) (void)get_byte(); |
len | 18 | arch/i386/boot/compressed/piggyback.c | int c, n=0, len=0; |
len | 35 | arch/i386/boot/compressed/piggyback.c | len = 0; |
len | 36 | arch/i386/boot/compressed/piggyback.c | while ((n = read(0, &tmp_buf[len], sizeof(tmp_buf)-len+1)) > 0) |
len | 37 | arch/i386/boot/compressed/piggyback.c | len += n; |
len | 45 | arch/i386/boot/compressed/piggyback.c | if (len >= sizeof(tmp_buf)) |
len | 51 | arch/i386/boot/compressed/piggyback.c | fprintf(stderr, "Compressed size %d.\n", len); |
len | 56 | arch/i386/boot/compressed/piggyback.c | obj.a_data = len + sizeof(long); |
len | 63 | arch/i386/boot/compressed/piggyback.c | write(1, tmp_buf, len); |
len | 64 | arch/i386/boot/compressed/piggyback.c | write(1, (char *)&len, sizeof(len)); |
len | 69 | arch/i386/boot/compressed/piggyback.c | var_names[1].n_value = len; |
len | 75 | arch/i386/boot/compressed/piggyback.c | len = sizeof(string_names) + sizeof(len); |
len | 76 | arch/i386/boot/compressed/piggyback.c | write(1, (char *)&len, sizeof(len)); |
len | 177 | arch/i386/kernel/irq.c | int i, len = 0; |
len | 183 | arch/i386/kernel/irq.c | len += sprintf(buf+len, "%3d: %8d %c %s\n", |
len | 192 | arch/i386/kernel/irq.c | len+=sprintf(buf+len, "IPI: %8lu received\n", |
len | 194 | arch/i386/kernel/irq.c | len+=sprintf(buf+len, "LCK: %8lu spins\n", |
len | 197 | arch/i386/kernel/irq.c | return len; |
len | 86 | arch/i386/kernel/setup.c | int len = 0; |
len | 138 | arch/i386/kernel/setup.c | if (COMMAND_LINE_SIZE <= ++len) |
len | 71 | arch/i386/kernel/smp.c | static int mpf_checksum(unsigned char *mp, int len) |
len | 74 | arch/i386/kernel/smp.c | while(len--) |
len | 26 | arch/i386/lib/checksum.c | unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum) { |
len | 93 | arch/i386/lib/checksum.c | : "0"(sum), "c"(len), "S"(buff) |
len | 105 | arch/i386/lib/checksum.c | int len, int sum) { |
len | 191 | arch/i386/lib/checksum.c | : "0"(sum), "c"(len), "S"(src), "D" (dst) |
len | 200 | arch/i386/lib/checksum.c | int len, int sum) { |
len | 286 | arch/i386/lib/checksum.c | : "0"(sum), "c"(len), "S"(src), "D" (dst) |
len | 114 | arch/mips/kernel/irq.c | int i, len = 0; |
len | 120 | arch/mips/kernel/irq.c | len += sprintf(buf+len, "%2d: %8d %c %s\n", |
len | 125 | arch/mips/kernel/irq.c | return len; |
len | 75 | arch/mips/kernel/setup.c | int len = 0; |
len | 106 | arch/mips/kernel/setup.c | if (CL_SIZE <= ++len) |
len | 153 | arch/sparc/kernel/idprom.c | register int len; |
len | 159 | arch/sparc/kernel/idprom.c | len = prom_getproperty(prom_root_node, "vac_hwflush", |
len | 161 | arch/sparc/kernel/idprom.c | if(len != 4) tmp1=0; |
len | 163 | arch/sparc/kernel/idprom.c | len = prom_getproperty(prom_root_node, "vac-hwflush", |
len | 165 | arch/sparc/kernel/idprom.c | if(len != 4) tmp2=0; |
len | 46 | arch/sparc/kernel/ioport.c | void *sparc_alloc_io (void *address, void *virtual, int len, char *name, |
len | 59 | arch/sparc/kernel/ioport.c | if (((unsigned long) virtual + len) > (IOBASE_VADDR + IOBASE_LEN)){ |
len | 63 | arch/sparc/kernel/ioport.c | if (check_region (vaddr, len)){ |
len | 69 | arch/sparc/kernel/ioport.c | request_region (vaddr, len, name); |
len | 73 | arch/sparc/kernel/ioport.c | for (; len > 0; len -= PAGE_SIZE){ |
len | 84 | arch/sparc/kernel/ioport.c | void *sparc_dvma_malloc (int len, char *name) |
len | 89 | arch/sparc/kernel/ioport.c | if (check_region (vaddr, len)){ |
len | 93 | arch/sparc/kernel/ioport.c | if (vaddr + len > (DVMA_VADDR + DVMA_LEN)){ |
len | 99 | arch/sparc/kernel/ioport.c | request_region (vaddr, len, name); |
len | 104 | arch/sparc/kernel/ioport.c | for (; len > 0; len -= PAGE_SIZE){ |
len | 105 | arch/sparc/kernel/ioport.c | printk ("Len=%d\n", len); |
len | 168 | arch/sparc/kernel/irq.c | int i, len = 0; |
len | 174 | arch/sparc/kernel/irq.c | len += sprintf(buf+len, "%2d: %8d %c %s\n", |
len | 179 | arch/sparc/kernel/irq.c | return len; |
len | 70 | arch/sparc/prom/misc.c | int len; |
len | 72 | arch/sparc/prom/misc.c | len = prom_getproplen(prom_root_node, "idprom"); |
len | 73 | arch/sparc/prom/misc.c | if((len>num_bytes) || (len==-1)) return 0xff; |
len | 115 | arch/sparc/prom/tree.c | int len; |
len | 117 | arch/sparc/prom/tree.c | len = prom_getproperty(node, prop, user_buf, ubuf_size); |
len | 118 | arch/sparc/prom/tree.c | if(len != -1) return; |
len | 505 | drivers/block/ide-cd.c | int len; |
len | 539 | drivers/block/ide-cd.c | len = sizeof (*reqbuf) / 4; |
len | 540 | drivers/block/ide-cd.c | len *= 4; |
len | 543 | drivers/block/ide-cd.c | pc->c[4] = len; |
len | 545 | drivers/block/ide-cd.c | pc->buflen = len; |
len | 898 | drivers/block/ide-cd.c | int cdrom_read_check_ireason (ide_drive_t *drive, int len, int ireason) |
len | 912 | drivers/block/ide-cd.c | while (len > 0) |
len | 916 | drivers/block/ide-cd.c | len -= sizeof (dum); |
len | 939 | drivers/block/ide-cd.c | int ireason, len, sectors_to_transfer, nskip; |
len | 948 | drivers/block/ide-cd.c | len = IN_BYTE (IDE_LCYL_REG) + 256 * IN_BYTE (IDE_HCYL_REG); |
len | 969 | drivers/block/ide-cd.c | if (cdrom_read_check_ireason (drive, len, ireason)) return; |
len | 973 | drivers/block/ide-cd.c | if ((len % SECTOR_SIZE) != 0) |
len | 976 | drivers/block/ide-cd.c | drive->name, len); |
len | 984 | drivers/block/ide-cd.c | sectors_to_transfer = len / SECTOR_SIZE; |
len | 1222 | drivers/block/ide-cd.c | int ireason, len, stat, thislen; |
len | 1231 | drivers/block/ide-cd.c | len = IN_BYTE (IDE_LCYL_REG) + 256 * IN_BYTE (IDE_HCYL_REG); |
len | 1262 | drivers/block/ide-cd.c | if (thislen > len) thislen = len; |
len | 1281 | drivers/block/ide-cd.c | while (len > thislen) |
len | 1285 | drivers/block/ide-cd.c | len -= sizeof (dum); |
len | 1310 | drivers/block/ide-cd.c | while (len > thislen) |
len | 1314 | drivers/block/ide-cd.c | len -= sizeof (dum); |
len | 1346 | drivers/block/ide-cd.c | int len; |
len | 1350 | drivers/block/ide-cd.c | len = pc->buflen; |
len | 1351 | drivers/block/ide-cd.c | if (len < 0) len = -len; |
len | 1356 | drivers/block/ide-cd.c | cdrom_start_packet_command (drive, len, cdrom_do_pc_continuation); |
len | 2450 | drivers/block/ide-cd.c | int len, lena; |
len | 2459 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (len)); |
len | 2461 | drivers/block/ide-cd.c | memcpy_fromfs (&len, (void *) arg , sizeof (len)); |
len | 2462 | drivers/block/ide-cd.c | arg += sizeof (len); |
len | 2464 | drivers/block/ide-cd.c | if (len > 0) { |
len | 2465 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, len); |
len | 2469 | drivers/block/ide-cd.c | lena = len; |
len | 2474 | drivers/block/ide-cd.c | if (len > 0) { |
len | 2475 | drivers/block/ide-cd.c | pc.buflen = len; |
len | 2481 | drivers/block/ide-cd.c | if (len > 0) |
len | 2482 | drivers/block/ide-cd.c | memcpy_tofs ((void *)arg, buf, len); |
len | 35 | drivers/block/ramdisk.c | int len; |
len | 41 | drivers/block/ramdisk.c | len = CURRENT->current_nr_sectors << 9; |
len | 44 | drivers/block/ramdisk.c | (addr+len > rd_start+rd_length)) { |
len | 51 | drivers/block/ramdisk.c | len); |
len | 55 | drivers/block/ramdisk.c | len); |
len | 319 | drivers/cdrom/sjcd.c | static int sjcd_load_response( void *buf, int len ){ |
len | 322 | drivers/cdrom/sjcd.c | for( ; len; --len ){ |
len | 328 | drivers/cdrom/sjcd.c | return( len ); |
len | 579 | drivers/char/istallion.c | static void *stli_memalloc(int len); |
len | 613 | drivers/char/istallion.c | static void stli_delay(int len); |
len | 807 | drivers/char/istallion.c | static void *stli_memalloc(int len) |
len | 809 | drivers/char/istallion.c | return (void *) kmalloc(len, GFP_KERNEL); |
len | 1301 | drivers/char/istallion.c | static void stli_delay(int len) |
len | 1304 | drivers/char/istallion.c | printk("stl_delay(len=%d)\n", len); |
len | 1306 | drivers/char/istallion.c | if (len > 0) { |
len | 1308 | drivers/char/istallion.c | current->timeout = jiffies + len; |
len | 1387 | drivers/char/istallion.c | unsigned int len, stlen, head, tail, size; |
len | 1426 | drivers/char/istallion.c | len = (head >= tail) ? (portp->txsize - (head - tail) - 1) : (tail - head - 1); |
len | 1427 | drivers/char/istallion.c | count = MIN(len, count); |
len | 1450 | drivers/char/istallion.c | len = size - (head - tail) - 1; |
len | 1453 | drivers/char/istallion.c | len = tail - head - 1; |
len | 1454 | drivers/char/istallion.c | stlen = len; |
len | 1457 | drivers/char/istallion.c | len = MIN(len, count); |
len | 1461 | drivers/char/istallion.c | while (len > 0) { |
len | 1462 | drivers/char/istallion.c | stlen = MIN(len, stlen); |
len | 1465 | drivers/char/istallion.c | len -= stlen; |
len | 1537 | drivers/char/istallion.c | unsigned int len, stlen, head, tail, size, count, cooksize; |
len | 1578 | drivers/char/istallion.c | len = size - (head - tail) - 1; |
len | 1581 | drivers/char/istallion.c | len = tail - head - 1; |
len | 1582 | drivers/char/istallion.c | stlen = len; |
len | 1585 | drivers/char/istallion.c | len = MIN(len, cooksize); |
len | 1590 | drivers/char/istallion.c | while (len > 0) { |
len | 1591 | drivers/char/istallion.c | stlen = MIN(len, stlen); |
len | 1594 | drivers/char/istallion.c | len -= stlen; |
len | 1627 | drivers/char/istallion.c | unsigned int head, tail, len; |
len | 1638 | drivers/char/istallion.c | len = stli_txcookrealsize - stli_txcooksize; |
len | 1639 | drivers/char/istallion.c | return(len); |
len | 1658 | drivers/char/istallion.c | len = (head >= tail) ? (portp->txsize - (head - tail)) : (tail - head); |
len | 1659 | drivers/char/istallion.c | len--; |
len | 1664 | drivers/char/istallion.c | stli_txcookrealsize = len; |
len | 1665 | drivers/char/istallion.c | len -= stli_txcooksize; |
len | 1667 | drivers/char/istallion.c | return(len); |
len | 1685 | drivers/char/istallion.c | unsigned int head, tail, len; |
len | 1711 | drivers/char/istallion.c | len = (head >= tail) ? (head - tail) : (portp->txsize - (tail - head)); |
len | 1712 | drivers/char/istallion.c | if ((len == 0) && test_bit(ST_TXBUSY, &portp->state)) |
len | 1713 | drivers/char/istallion.c | len = 1; |
len | 1717 | drivers/char/istallion.c | return(len); |
len | 2249 | drivers/char/istallion.c | unsigned int len, stlen; |
len | 2268 | drivers/char/istallion.c | len = head - tail; |
len | 2269 | drivers/char/istallion.c | stlen = len; |
len | 2271 | drivers/char/istallion.c | len = size - (tail - head); |
len | 2275 | drivers/char/istallion.c | len = MIN(len, (TTY_FLIPBUF_SIZE - tty->flip.count)); |
len | 2278 | drivers/char/istallion.c | while (len > 0) { |
len | 2279 | drivers/char/istallion.c | stlen = MIN(len, stlen); |
len | 2286 | drivers/char/istallion.c | len -= stlen; |
len | 455 | drivers/char/stallion.c | static void *stl_memalloc(int len); |
len | 492 | drivers/char/stallion.c | static void stl_sendbreak(stlport_t *portp, long len); |
len | 494 | drivers/char/stallion.c | static void stl_delay(int len); |
len | 614 | drivers/char/stallion.c | static void *stl_memalloc(int len) |
len | 616 | drivers/char/stallion.c | return (void *) kmalloc(len, GFP_KERNEL); |
len | 875 | drivers/char/stallion.c | static void stl_delay(int len) |
len | 878 | drivers/char/stallion.c | printk("stl_delay(len=%d)\n", len); |
len | 880 | drivers/char/stallion.c | if (len > 0) { |
len | 882 | drivers/char/stallion.c | current->timeout = jiffies + len; |
len | 897 | drivers/char/stallion.c | unsigned int len, stlen; |
len | 924 | drivers/char/stallion.c | len = (head >= tail) ? (STL_TXBUFSIZE - (head - tail) - 1) : |
len | 926 | drivers/char/stallion.c | count = MIN(len, count); |
len | 940 | drivers/char/stallion.c | len = STL_TXBUFSIZE - (head - tail) - 1; |
len | 943 | drivers/char/stallion.c | len = tail - head - 1; |
len | 944 | drivers/char/stallion.c | stlen = len; |
len | 947 | drivers/char/stallion.c | len = MIN(len, count); |
len | 949 | drivers/char/stallion.c | while (len > 0) { |
len | 950 | drivers/char/stallion.c | stlen = MIN(len, stlen); |
len | 952 | drivers/char/stallion.c | len -= stlen; |
len | 974 | drivers/char/stallion.c | unsigned int len; |
len | 992 | drivers/char/stallion.c | len = (head >= tail) ? (STL_TXBUFSIZE - (head - tail)) : (tail - head); |
len | 993 | drivers/char/stallion.c | len--; |
len | 995 | drivers/char/stallion.c | if (len > 0) { |
len | 1536 | drivers/char/stallion.c | int len, stlen; |
len | 1577 | drivers/char/stallion.c | len = (head >= tail) ? (head - tail) : (STL_TXBUFSIZE - (tail - head)); |
len | 1578 | drivers/char/stallion.c | if ((len == 0) || ((len < STL_TXBUFLOW) && (test_bit(ASYI_TXLOW, &portp->istate) == 0))) { |
len | 1583 | drivers/char/stallion.c | if (len == 0) { |
len | 1594 | drivers/char/stallion.c | len = MIN(len, CD1400_TXFIFOSIZE); |
len | 1595 | drivers/char/stallion.c | stlen = MIN(len, ((portp->tx.buf + STL_TXBUFSIZE) - tail)); |
len | 1598 | drivers/char/stallion.c | len -= stlen; |
len | 1602 | drivers/char/stallion.c | if (len > 0) { |
len | 1603 | drivers/char/stallion.c | outsb((ioaddr + EREG_DATA), tail, len); |
len | 1604 | drivers/char/stallion.c | tail += len; |
len | 1630 | drivers/char/stallion.c | unsigned int ioack, len, buflen; |
len | 1649 | drivers/char/stallion.c | len = inb(ioaddr + EREG_DATA); |
len | 1653 | drivers/char/stallion.c | insb((ioaddr + EREG_DATA), &unwanted[0], len); |
len | 1655 | drivers/char/stallion.c | len = MIN(len, buflen); |
len | 1656 | drivers/char/stallion.c | if (len > 0) { |
len | 1658 | drivers/char/stallion.c | insb((ioaddr + EREG_DATA), tty->flip.char_buf_ptr, len); |
len | 1659 | drivers/char/stallion.c | memset(tty->flip.flag_buf_ptr, 0, len); |
len | 1660 | drivers/char/stallion.c | tty->flip.flag_buf_ptr += len; |
len | 1661 | drivers/char/stallion.c | tty->flip.char_buf_ptr += len; |
len | 1662 | drivers/char/stallion.c | tty->flip.count += len; |
len | 2329 | drivers/char/stallion.c | static void stl_sendbreak(stlport_t *portp, long len) |
len | 2334 | drivers/char/stallion.c | printk("stl_sendbreak(portp=%x,len=%d)\n", (int) portp, (int) len); |
len | 2344 | drivers/char/stallion.c | len = len / 5; |
len | 2345 | drivers/char/stallion.c | portp->brklen = (len > 255) ? 255 : len; |
len | 369 | drivers/net/3c501.c | int gp_start = 0x800 - (ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN); |
len | 393 | drivers/net/3c501.c | outsb(DATAPORT,buf,skb->len); /* load buffer (usual thing each byte increments the pointer) */ |
len | 74 | drivers/net/3c505.c | #define INVALID_PCB_MSG(len) \ |
len | 75 | drivers/net/3c505.c | printk(invalid_pcb_msg, (len),filename,__FUNCTION__,__LINE__) |
len | 546 | drivers/net/3c505.c | receive_packet (struct device * dev, int len) |
len | 558 | drivers/net/3c505.c | if (len <= 0 || ((len & ~1) != len)) |
len | 561 | drivers/net/3c505.c | printk("*** bad packet len %d at %s(%d)\n",len,filename,__LINE__); |
len | 565 | drivers/net/3c505.c | rlen = (len+1) & ~1; |
len | 600 | drivers/net/3c505.c | ptr = (unsigned short *)skb_put(skb,len); |
len | 635 | drivers/net/3c505.c | int len; |
len | 688 | drivers/net/3c505.c | len = adapter->irx_pcb.data.rcv_resp.pkt_len; |
len | 696 | drivers/net/3c505.c | printk("%s: interrupt - packet received of length %i (%i)\n", dev->name, len, dlen); |
len | 937 | drivers/net/3c505.c | send_packet (struct device * dev, unsigned char * ptr, int len) |
len | 946 | drivers/net/3c505.c | unsigned int nlen = (((len < 60) ? 60 : len) + 1) & (~1); |
len | 953 | drivers/net/3c505.c | if (nlen < len) |
len | 954 | drivers/net/3c505.c | printk("Warning, bad length nlen=%d len=%d %s(%d)\n",nlen,len,filename,__LINE__); |
len | 1015 | drivers/net/3c505.c | if (skb->len <= 0) |
len | 1019 | drivers/net/3c505.c | printk("%s: request to send packet of length %d\n", dev->name, (int)skb->len); |
len | 1040 | drivers/net/3c505.c | if (!send_packet(dev, skb->data, skb->len)) { |
len | 1046 | drivers/net/3c505.c | printk("%s: packet of length %d sent\n", dev->name, (int)skb->len); |
len | 495 | drivers/net/3c507.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 410 | drivers/net/3c509.c | if (skb->len <= 0) |
len | 415 | drivers/net/3c509.c | dev->name, skb->len, inw(ioaddr + EL3_STATUS)); |
len | 439 | drivers/net/3c509.c | outw(skb->len, ioaddr + TX_FIFO); |
len | 442 | drivers/net/3c509.c | outsl(ioaddr + TX_FIFO, skb->data, (skb->len + 3) >> 2); |
len | 181 | drivers/net/8390.c | length = skb->len; |
len | 182 | drivers/net/8390.c | if (skb->len <= 0) |
len | 615 | drivers/net/apricot.c | if (skb->len <= 0) return 0; |
len | 625 | drivers/net/apricot.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 513 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len, |
len | 516 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len, |
len | 520 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len); |
len | 522 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len); |
len | 1312 | drivers/net/arcnet.c | out->length = 1 < skb->len ? skb->len : 1; |
len | 1319 | drivers/net/arcnet.c | for( i=0; i< skb->len; i++) |
len | 1638 | drivers/net/arcnet.c | short offset,length=skb->len+1; |
len | 1695 | drivers/net/arcnet.c | memcpy(arcsoft,skb->data,skb->len); |
len | 1848 | drivers/net/arcnet.c | length = 1 < skb->len ? skb->len : 1; |
len | 1853 | drivers/net/arcnet.c | for(i=0; i<skb->len; i++) |
len | 2291 | drivers/net/arcnet.c | skb->len = length; |
len | 2339 | drivers/net/arcnet.c | for( i=0; i< skb->len; i++) |
len | 2433 | drivers/net/arcnet.c | skb->len=sizeof(struct ClientData); |
len | 2484 | drivers/net/arcnet.c | memcpy(skb->data+skb->len, |
len | 2488 | drivers/net/arcnet.c | skb->len+=length-sizeof(struct ClientData); |
len | 2505 | drivers/net/arcnet.c | for(i=0; i<skb->len; i++) |
len | 2545 | drivers/net/arcnet.c | skb->len = length; |
len | 2554 | drivers/net/arcnet.c | for(i=0; i<skb->len; i++) |
len | 2600 | drivers/net/arcnet.c | skb->len = length; |
len | 2615 | drivers/net/arcnet.c | for(i=0; i<skb->len; i++) |
len | 2680 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len, |
len | 2684 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len) |
len | 2699 | drivers/net/arcnet.c | type,type,len); |
len | 2761 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len, |
len | 2765 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len) |
len | 408 | drivers/net/at1700.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 450 | drivers/net/atp.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 415 | drivers/net/de4x5.c | static void create_packet(struct device *dev, char *frame, int len); |
len | 980 | drivers/net/de4x5.c | if (lp->skb[i]->len != FAKE_FRAME_LEN) { |
len | 992 | drivers/net/de4x5.c | if (skb->len != FAKE_FRAME_LEN) { |
len | 1027 | drivers/net/de4x5.c | } else if (skb->len == FAKE_FRAME_LEN) { /* Don't TX a fake frame! */ |
len | 1029 | drivers/net/de4x5.c | } else if (skb->len > 0) { |
len | 1037 | drivers/net/de4x5.c | load_packet(dev, skb->data, TD_IC | TD_LS | TD_FS | skb->len, skb); |
len | 1156 | drivers/net/de4x5.c | short len = (lp->rxRingSize - lp->rx_old) * RX_BUFF_SZ; |
len | 1157 | drivers/net/de4x5.c | memcpy(skb_put(skb,len), bus_to_virt(lp->rx_ring[lp->rx_old].buf), len); |
len | 1158 | drivers/net/de4x5.c | memcpy(skb_put(skb,pkt_len-len), bus_to_virt(lp->rx_ring[0].buf), pkt_len - len); |
len | 2130 | drivers/net/de4x5.c | static void create_packet(struct device *dev, char *frame, int len) |
len | 2486 | drivers/net/de4x5.c | skb->len= FAKE_FRAME_LEN; |
len | 2514 | drivers/net/de4x5.c | ioc->len = ETH_ALEN; |
len | 2515 | drivers/net/de4x5.c | status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len); |
len | 2521 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 2576 | drivers/net/de4x5.c | ioc->len = (HASH_TABLE_LEN >> 3); |
len | 2577 | drivers/net/de4x5.c | status = verify_area(VERIFY_WRITE, ioc->data, ioc->len); |
len | 2580 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, lp->setup_frame, ioc->len); |
len | 2585 | drivers/net/de4x5.c | if (ioc->len != HASH_TABLE_LEN) { /* MCA changes */ |
len | 2586 | drivers/net/de4x5.c | if (!(status = verify_area(VERIFY_READ, (void *)ioc->data, ETH_ALEN * ioc->len))) { |
len | 2587 | drivers/net/de4x5.c | memcpy_fromfs(tmp.addr, ioc->data, ETH_ALEN * ioc->len); |
len | 2588 | drivers/net/de4x5.c | set_multicast_list(dev, ioc->len, tmp.addr); |
len | 2591 | drivers/net/de4x5.c | set_multicast_list(dev, ioc->len, NULL); |
len | 2617 | drivers/net/de4x5.c | ioc->len = sizeof(lp->pktStats); |
len | 2618 | drivers/net/de4x5.c | status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len); |
len | 2623 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, &lp->pktStats, ioc->len); |
len | 2665 | drivers/net/de4x5.c | ioc->len = j; |
len | 2666 | drivers/net/de4x5.c | if (!(status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len))) { |
len | 2667 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 2728 | drivers/net/de4x5.c | ioc->len = j; |
len | 2729 | drivers/net/de4x5.c | if (!(status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len))) { |
len | 2730 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 625 | drivers/net/de4x5.h | unsigned short len; /* Length of the data buffer */ |
len | 400 | drivers/net/de600.c | int len; |
len | 434 | drivers/net/de600.c | PRINTK(("de600_start_xmit:len=%d, page %d/%d\n", skb->len, tx_fifo_in, free_tx_pages)); |
len | 436 | drivers/net/de600.c | if ((len = skb->len) < RUNT) |
len | 437 | drivers/net/de600.c | len = RUNT; |
len | 441 | drivers/net/de600.c | tx_fifo[tx_fifo_in] = transmit_from = tx_page_adr(tx_fifo_in) - len; |
len | 457 | drivers/net/de600.c | for ( ; len > 0; --len, ++buffer) |
len | 517 | drivers/net/de620.c | int len; |
len | 553 | drivers/net/de620.c | if ((len = skb->len) < RUNT) |
len | 554 | drivers/net/de620.c | len = RUNT; |
len | 555 | drivers/net/de620.c | if (len & 1) /* send an even number of bytes */ |
len | 556 | drivers/net/de620.c | ++len; |
len | 563 | drivers/net/de620.c | (int)skb->len, using_txbuf)); |
len | 584 | drivers/net/de620.c | de620_write_block(dev, buffer, len); |
len | 833 | drivers/net/depca.c | } else if (skb->len > 0) { |
len | 938 | drivers/net/depca.c | short len, pkt_len = readw(&lp->rx_ring[entry].msg_length); |
len | 948 | drivers/net/depca.c | len = (lp->rxRingMask - lp->rx_old + 1) * RX_BUFF_SZ; |
len | 949 | drivers/net/depca.c | memcpy_fromio(buf, lp->rx_memcpy[lp->rx_old], len); |
len | 950 | drivers/net/depca.c | memcpy_fromio(buf + len, lp->rx_memcpy[0], pkt_len-len); |
len | 1563 | drivers/net/depca.c | int i, entry, end, len, status = 0; |
len | 1566 | drivers/net/depca.c | end = (entry + (skb->len - 1) / TX_BUFF_SZ) & lp->txRingMask; |
len | 1573 | drivers/net/depca.c | len = (lp->txRingMask - entry + 1) * TX_BUFF_SZ; |
len | 1574 | drivers/net/depca.c | memcpy_toio(lp->tx_memcpy[entry], skb->data, len); |
len | 1575 | drivers/net/depca.c | memcpy_toio(lp->tx_memcpy[0], skb->data + len, skb->len - len); |
len | 1577 | drivers/net/depca.c | memcpy_toio(lp->tx_memcpy[entry], skb->data, skb->len); |
len | 1581 | drivers/net/depca.c | len = (skb->len < ETH_ZLEN) ? ETH_ZLEN : skb->len; |
len | 1587 | drivers/net/depca.c | len -= TX_BUFF_SZ; |
len | 1592 | drivers/net/depca.c | writew(-len, &lp->tx_ring[end].length); /* packet length in last buff */ |
len | 1669 | drivers/net/depca.c | ioc->len = ETH_ALEN; |
len | 1670 | drivers/net/depca.c | if (!(status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len))) { |
len | 1671 | drivers/net/depca.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 1738 | drivers/net/depca.c | ioc->len = (HASH_TABLE_LEN >> 3); |
len | 1739 | drivers/net/depca.c | if (!(status = verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
len | 1740 | drivers/net/depca.c | memcpy_tofs(ioc->data, lp->init_block.mcast_table, ioc->len); |
len | 1746 | drivers/net/depca.c | if (ioc->len != HASH_TABLE_LEN) { /* MCA changes */ |
len | 1747 | drivers/net/depca.c | if (!(status=verify_area(VERIFY_READ, ioc->data, ETH_ALEN*ioc->len))) { |
len | 1748 | drivers/net/depca.c | memcpy_fromfs(tmp.addr, ioc->data, ETH_ALEN * ioc->len); |
len | 1749 | drivers/net/depca.c | set_multicast_list(dev, ioc->len, tmp.addr); |
len | 1752 | drivers/net/depca.c | set_multicast_list(dev, ioc->len, NULL); |
len | 1777 | drivers/net/depca.c | ioc->len = sizeof(lp->pktStats); |
len | 1778 | drivers/net/depca.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
len | 1779 | drivers/net/depca.c | memcpy_tofs(ioc->data, &lp->pktStats, ioc->len); |
len | 1800 | drivers/net/depca.c | ioc->len = i+sizeof(struct depca_init); |
len | 1801 | drivers/net/depca.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
len | 1802 | drivers/net/depca.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 164 | drivers/net/depca.h | unsigned short len; /* Length of the data buffer */ |
len | 642 | drivers/net/eepro.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 494 | drivers/net/eexpress.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 150 | drivers/net/eql.c | unsigned len); /* */ |
len | 377 | drivers/net/eql.c | dev->name, eql_number_slaves (eql->queue), skb->len, |
len | 383 | drivers/net/eql.c | slave->bytes_queued += skb->len; |
len | 411 | drivers/net/eql.c | unsigned len) |
len | 928 | drivers/net/eth16i.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 794 | drivers/net/ewrk3.c | } else if (skb->len > 0) { |
len | 847 | drivers/net/ewrk3.c | outb((char)(skb->len & 0xff), EWRK3_DATA); |
len | 848 | drivers/net/ewrk3.c | outb((char)((skb->len >> 8) & 0xff), EWRK3_DATA); |
len | 850 | drivers/net/ewrk3.c | for (i=0; i<skb->len; i++) { |
len | 856 | drivers/net/ewrk3.c | *buf++ = (char)(skb->len & 0xff); /* length (16 bit xfer)*/ |
len | 858 | drivers/net/ewrk3.c | *buf++ = (char)(((skb->len >> 8) & 0xff) | XCT); |
len | 860 | drivers/net/ewrk3.c | *(buf + skb->len) = 0x00; /* Write the XCT flag */ |
len | 863 | drivers/net/ewrk3.c | memcpy(buf + PRELOAD, skb->data + PRELOAD, skb->len - PRELOAD); |
len | 864 | drivers/net/ewrk3.c | *(buf + skb->len) = 0xff; /* Write the XCT flag */ |
len | 866 | drivers/net/ewrk3.c | *buf++ = (char)((skb->len >> 8) & 0xff); |
len | 868 | drivers/net/ewrk3.c | memcpy(buf, skb->data, skb->len); /* Write data bytes */ |
len | 1622 | drivers/net/ewrk3.c | ioc->len = ETH_ALEN; |
len | 1626 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 1690 | drivers/net/ewrk3.c | ioc->len = (HASH_TABLE_LEN >> 3); |
len | 1691 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 1697 | drivers/net/ewrk3.c | err = verify_area(VERIFY_READ, (void *)ioc->data, ETH_ALEN * ioc->len); |
len | 1700 | drivers/net/ewrk3.c | if (ioc->len != HASH_TABLE_LEN) { /* MCA changes */ |
len | 1701 | drivers/net/ewrk3.c | memcpy_fromfs(tmp.addr, ioc->data, ETH_ALEN * ioc->len); |
len | 1703 | drivers/net/ewrk3.c | set_multicast_list(dev, ioc->len, tmp.addr); |
len | 1734 | drivers/net/ewrk3.c | ioc->len = EWRK3_PKT_STAT_SZ; |
len | 1770 | drivers/net/ewrk3.c | err = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len); |
len | 1781 | drivers/net/ewrk3.c | ioc->len = EEPROM_MAX + 1 + ETH_ALEN; |
len | 1782 | 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 | 599 | drivers/net/hp100.c | if ( ( i = ( hp100_inl( TX_MEM_FREE ) & ~0x7fffffff ) ) < skb -> len + 16 ) |
len | 649 | drivers/net/hp100.c | if ( skb -> len <= 0 ) return 0; |
len | 662 | drivers/net/hp100.c | printk( "hp100_start_xmit: irq_status = 0x%x, len = %d\n", val, (int)skb -> len ); |
len | 664 | drivers/net/hp100.c | ok_flag = skb -> len >= HP100_MIN_PACKET_SIZE; |
len | 665 | drivers/net/hp100.c | i = ok_flag ? skb -> len : HP100_MIN_PACKET_SIZE; |
len | 672 | drivers/net/hp100.c | memcpy( lp -> mem_ptr_virt, skb -> data, skb -> len ); |
len | 674 | drivers/net/hp100.c | memset( lp -> mem_ptr_virt, 0, HP100_MIN_PACKET_SIZE - skb -> len ); |
len | 678 | drivers/net/hp100.c | memcpy_toio( lp -> mem_ptr_phys, skb -> data, skb -> len ); |
len | 680 | drivers/net/hp100.c | memset_io( lp -> mem_ptr_phys, 0, HP100_MIN_PACKET_SIZE - skb -> len ); |
len | 685 | drivers/net/hp100.c | outsl( ioaddr + HP100_REG_DATA32, skb -> data, ( skb -> len + 3 ) >> 2 ); |
len | 687 | drivers/net/hp100.c | for ( i = ( skb -> len + 3 ) & ~3; i < HP100_MIN_PACKET_SIZE; i += 4 ) |
len | 1094 | drivers/net/ibmtr.c | ti->current_skb->len-18)); |
len | 1104 | drivers/net/ibmtr.c | ti->current_skb->len-18+hdr_len); |
len | 1114 | drivers/net/ibmtr.c | xmit_resp->frame_length=htons(ti->current_skb->len |
len | 1119 | drivers/net/ibmtr.c | ti->current_skb->len-sizeof(struct trh_hdr)); |
len | 754 | drivers/net/lance.c | if (skb->len <= 0) |
len | 789 | drivers/net/lance.c | -(ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN); |
len | 791 | drivers/net/lance.c | lp->tx_ring[entry].length = -skb->len; |
len | 797 | drivers/net/lance.c | if ((int)(skb->data) + skb->len > 0x01000000) { |
len | 801 | drivers/net/lance.c | memcpy(&lp->tx_bounce_buffs[entry], skb->data, skb->len); |
len | 603 | drivers/net/ni52.c | int len = ((char *) p->iscp - (char *) ptr - 8) / 6; |
len | 604 | drivers/net/ni52.c | if(len <= 0) |
len | 610 | drivers/net/ni52.c | if(len < num_addrs) |
len | 612 | drivers/net/ni52.c | num_addrs = len; |
len | 929 | drivers/net/ni52.c | int len,i; |
len | 977 | drivers/net/ni52.c | if (skb->len <= 0) |
len | 979 | drivers/net/ni52.c | if(skb->len > XMIT_BUFF_SIZE) |
len | 981 | drivers/net/ni52.c | printk("%s: Sorry, max. framelength is %d bytes. The length of your frame is %ld bytes.\n",dev->name,XMIT_BUFF_SIZE,skb->len); |
len | 989 | drivers/net/ni52.c | memcpy((char *)p->xmit_cbuffs[p->xmit_count],(char *)(skb->data),skb->len); |
len | 990 | drivers/net/ni52.c | len = (ETH_ZLEN < skb->len) ? skb->len : ETH_ZLEN; |
len | 994 | drivers/net/ni52.c | p->xmit_buffs[0]->size = TBD_LAST | len; |
len | 1015 | drivers/net/ni52.c | p->xmit_buffs[0]->size = TBD_LAST | len; |
len | 1027 | drivers/net/ni52.c | p->xmit_buffs[p->xmit_count]->size = TBD_LAST | len; |
len | 500 | drivers/net/ni65.c | int rmdstat,len; |
len | 529 | drivers/net/ni65.c | len = (rmdp->mlen & 0x0fff) - 4; /* -4: ignore FCS */ |
len | 534 | drivers/net/ni65.c | memcpy(skb_put(skb,len),p->recv_skb[p->rmdnum]->data,len); |
len | 540 | drivers/net/ni65.c | rmdp->u.buffer = (unsigned long) skb_put(skb1,len); |
len | 588 | drivers/net/ni65.c | if (skb->len <= 0) |
len | 603 | drivers/net/ni65.c | short len = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 611 | drivers/net/ni65.c | memcpy((char *) (tmdp->u.buffer & 0x00ffffff),(char *)skb->data,skb->len); |
len | 614 | drivers/net/ni65.c | tmdp->blen = -len; |
len | 443 | drivers/net/pi2.c | length = lp->sndbuf->len - 1; |
len | 703 | drivers/net/pi2.c | lp->txcnt = (int) lp->sndbuf->len - 1; |
len | 817 | drivers/net/pi2.c | lp->txcnt = (int) lp->sndbuf->len - 1; |
len | 1078 | drivers/net/pi2.c | void *daddr, void *saddr, unsigned len) |
len | 1080 | drivers/net/pi2.c | return ax25_encapsulate(skb, dev, type, daddr, saddr, len); |
len | 901 | drivers/net/plip.c | if (skb->len > dev->mtu + dev->hard_header_len) { |
len | 902 | drivers/net/plip.c | printk("%s: packet too big, %d.\n", dev->name, (int)skb->len); |
len | 913 | drivers/net/plip.c | snd->length.h = skb->len; |
len | 157 | drivers/net/ppp.c | static void ppp_proto_ccp (struct ppp *ppp, u_char *dp, int len, int rcvd); |
len | 204 | drivers/net/ppp.c | unsigned len, struct sk_buff *skb); |
len | 1269 | drivers/net/ppp.c | skb->len = count; |
len | 1359 | drivers/net/ppp.c | u_char *data, int len) |
len | 1385 | drivers/net/ppp.c | totlen = len + 2; |
len | 1411 | drivers/net/ppp.c | len + 2, ppp->flags); |
len | 1441 | drivers/net/ppp.c | static void ppp_proto_ccp (struct ppp *ppp, u_char *dp, int len, int rcvd) |
len | 1447 | drivers/net/ppp.c | if (slen > len) |
len | 1529 | drivers/net/ppp.c | rcv_proto_ccp (struct ppp *ppp, unsigned short proto, u_char *dp, int len) |
len | 1531 | drivers/net/ppp.c | ppp_proto_ccp (ppp, dp, len, 1); |
len | 1532 | drivers/net/ppp.c | return rcv_proto_unknown (ppp, proto, dp, len); |
len | 1544 | drivers/net/ppp.c | rcv_proto_lqr (struct ppp *ppp, unsigned short proto, u_char * data, int len) |
len | 1548 | drivers/net/ppp.c | if (len > 8) { |
len | 1549 | drivers/net/ppp.c | if (len < 48) |
len | 1550 | drivers/net/ppp.c | memset (&data [len], '\0', 48 - len); |
len | 1559 | drivers/net/ppp.c | p = store_long (p, ppp->stats.ppp_ioctects + len); |
len | 1561 | drivers/net/ppp.c | len = 68; |
len | 1567 | drivers/net/ppp.c | return rcv_proto_unknown (ppp, proto, data, len); |
len | 1777 | drivers/net/ppp.c | int len, indx; |
len | 1832 | drivers/net/ppp.c | len = 0; |
len | 1835 | drivers/net/ppp.c | len = c << 8; |
len | 1837 | drivers/net/ppp.c | len += c; |
len | 1842 | drivers/net/ppp.c | if (len == 0) { |
len | 1867 | drivers/net/ppp.c | printk (KERN_DEBUG "ppp_tty_read: len = %d\n", len); |
len | 1872 | drivers/net/ppp.c | if (len + 2 > nr) { |
len | 1878 | drivers/net/ppp.c | "frame\n", nr, len + 2); |
len | 1879 | drivers/net/ppp.c | ppp->ubuf->tail += len; |
len | 1889 | drivers/net/ppp.c | indx = verify_area (VERIFY_WRITE, buf, len + 2); |
len | 1891 | drivers/net/ppp.c | ppp->ubuf->tail += len; |
len | 1903 | drivers/net/ppp.c | indx = len; |
len | 1916 | drivers/net/ppp.c | len += 2; /* Account for ADDRESS and CONTROL bytes */ |
len | 1919 | drivers/net/ppp.c | "ppp_tty_read: passing %d bytes up\n", len); |
len | 1920 | drivers/net/ppp.c | return len; |
len | 2122 | drivers/net/ppp.c | send_revise_frame (register struct ppp *ppp, u_char *data, int len) |
len | 2132 | drivers/net/ppp.c | len = 48; /* total size of this frame */ |
len | 2135 | drivers/net/ppp.c | p = store_long (p, ppp->stats.ppp_ooctects + len); |
len | 2143 | drivers/net/ppp.c | len - PPP_HARD_HDR_LEN, |
len | 2153 | drivers/net/ppp.c | return len; |
len | 2752 | drivers/net/ppp.c | int len; |
len | 2758 | drivers/net/ppp.c | len = strlen (szVersion) + 1; |
len | 2759 | drivers/net/ppp.c | error = verify_area (VERIFY_WRITE, result, len); |
len | 2764 | drivers/net/ppp.c | memcpy_tofs (result, szVersion, len); |
len | 2892 | drivers/net/ppp.c | int len; |
len | 2898 | drivers/net/ppp.c | len = ((struct iphdr *)data) -> tot_len; |
len | 2899 | drivers/net/ppp.c | len = ntohs (len); |
len | 2941 | drivers/net/ppp.c | ppp_print_buffer ("ppp outpkt", data, len); |
len | 2948 | drivers/net/ppp.c | len = slhc_compress (ppp->slcomp, data, len, |
len | 2965 | drivers/net/ppp.c | len += PPP_HARD_HDR_LEN; |
len | 2973 | drivers/net/ppp.c | return ppp_dev_xmit_frame (ppp, ppp->wbuf, (u_char *) hdr, len); |
len | 2989 | drivers/net/ppp.c | int len; |
len | 2992 | drivers/net/ppp.c | len = ((struct iphdr *)data) -> tot_len; |
len | 2993 | drivers/net/ppp.c | len = ntohs (len); |
len | 2995 | drivers/net/ppp.c | hdr = (struct ppp_hdr *) kmalloc (len + sizeof (struct ppp_hdr), |
len | 3001 | drivers/net/ppp.c | memcpy (&hdr[1], data, len); |
len | 3019 | drivers/net/ppp.c | u_char *data, int len, int proto) |
len | 3064 | drivers/net/ppp.c | ppp_print_buffer ("ppp outpkt", data, len); |
len | 3068 | drivers/net/ppp.c | len += PPP_HARD_HDR_LEN; |
len | 3076 | drivers/net/ppp.c | return ppp_dev_xmit_frame (ppp, ppp->wbuf, (u_char *) hdr, len); |
len | 3090 | drivers/net/ppp.c | u_char *data, int len, int proto) |
len | 3095 | drivers/net/ppp.c | hdr = (struct ppp_hdr *) kmalloc (len + sizeof (struct ppp_hdr), |
len | 3100 | drivers/net/ppp.c | memcpy (&hdr[1], data, len); |
len | 3102 | drivers/net/ppp.c | len, proto); |
len | 3117 | drivers/net/ppp.c | int answer, len; |
len | 3157 | drivers/net/ppp.c | len = skb->len; |
len | 3167 | drivers/net/ppp.c | answer = ppp_dev_xmit_ipx (dev, ppp, data, len, PPP_IPX); |
len | 3284 | drivers/net/ppp.c | unsigned len, struct sk_buff *skb) |
len | 3288 | drivers/net/ppp.c | void *saddr, unsigned len) |
len | 405 | drivers/net/seeq8005.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 1254 | drivers/net/sk_g16.c | short len = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 1263 | drivers/net/sk_g16.c | skb->len); |
len | 1265 | drivers/net/sk_g16.c | tmdp->blen = -len; /* set length to transmit */ |
len | 1574 | drivers/net/sk_g16.c | int len = (rmdp->mlen & 0x0fff); /* extract message length from receive buffer */ |
len | 1577 | drivers/net/sk_g16.c | skb = dev_alloc_skb(len+2); /* allocate socket buffer */ |
len | 1607 | drivers/net/sk_g16.c | memcpy(skb_put(skb,len), (unsigned char *) (rmdp->u.buffer & 0x00ffffff), |
len | 1608 | drivers/net/sk_g16.c | len); |
len | 357 | drivers/net/skeleton.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 498 | drivers/net/slhc.c | int len, hdrlen; |
len | 603 | drivers/net/slhc.c | len = isize - (cp - icp); |
len | 604 | drivers/net/slhc.c | if (len < 0) |
len | 606 | drivers/net/slhc.c | len += hdrlen; |
len | 607 | drivers/net/slhc.c | ip->tot_len = htons(len); |
len | 610 | drivers/net/slhc.c | memmove(icp + hdrlen, cp, len - hdrlen); |
len | 635 | drivers/net/slhc.c | return len; |
len | 100 | drivers/net/slip.c | static int slip_esc(unsigned char *p, unsigned char *d, int len); |
len | 103 | drivers/net/slip.c | static int slip_esc6(unsigned char *p, unsigned char *d, int len); |
len | 223 | drivers/net/slip.c | int len; |
len | 226 | drivers/net/slip.c | len = dev->mtu * 2; |
len | 232 | drivers/net/slip.c | if (len < 576 * 2) { |
len | 233 | drivers/net/slip.c | len = 576 * 2; |
len | 236 | drivers/net/slip.c | xbuff = (unsigned char *) kmalloc (len + 4, GFP_ATOMIC); |
len | 237 | drivers/net/slip.c | rbuff = (unsigned char *) kmalloc (len + 4, GFP_ATOMIC); |
len | 239 | drivers/net/slip.c | cbuff = (unsigned char *) kmalloc (len + 4, GFP_ATOMIC); |
len | 275 | drivers/net/slip.c | if (sl->xleft <= len) { |
len | 285 | drivers/net/slip.c | if (sl->rcount <= len) { |
len | 298 | drivers/net/slip.c | sl->buffsize = len; |
len | 395 | drivers/net/slip.c | sl_encaps(struct slip *sl, unsigned char *icp, int len) |
len | 409 | drivers/net/slip.c | if (len > sl->mtu) { /* Sigh, shouldn't occur BUT ... */ |
len | 410 | drivers/net/slip.c | len = sl->mtu; |
len | 420 | drivers/net/slip.c | len = slhc_compress(sl->slcomp, p, len, sl->cbuff, &p, 1); |
len | 425 | drivers/net/slip.c | count = slip_esc6(p, (unsigned char *) sl->xbuff, len); |
len | 428 | drivers/net/slip.c | count = slip_esc(p, (unsigned char *) sl->xbuff, len); |
len | 519 | drivers/net/slip.c | sl_encaps(sl, skb->data, skb->len); |
len | 531 | drivers/net/slip.c | void *daddr, void *saddr, unsigned len) |
len | 538 | drivers/net/slip.c | return ax25_encapsulate(skb, dev, type, daddr, saddr, len); |
len | 569 | drivers/net/slip.c | unsigned long len; |
len | 582 | drivers/net/slip.c | len = dev->mtu * 2; |
len | 588 | drivers/net/slip.c | if (len < 576 * 2) { |
len | 589 | drivers/net/slip.c | len = 576 * 2; |
len | 591 | drivers/net/slip.c | sl->rbuff = (unsigned char *) kmalloc(len + 4, GFP_KERNEL); |
len | 595 | drivers/net/slip.c | sl->xbuff = (unsigned char *) kmalloc(len + 4, GFP_KERNEL); |
len | 600 | drivers/net/slip.c | sl->cbuff = (unsigned char *) kmalloc(len + 4, GFP_KERNEL); |
len | 615 | drivers/net/slip.c | sl->buffsize = len; |
len | 833 | drivers/net/slip.c | slip_esc(unsigned char *s, unsigned char *d, int len) |
len | 851 | drivers/net/slip.c | while (len-- > 0) { |
len | 914 | drivers/net/slip.c | slip_esc6(unsigned char *s, unsigned char *d, int len) |
len | 934 | drivers/net/slip.c | for (i = 0; i < len; ++i) { |
len | 410 | drivers/net/tulip.c | if (skb == NULL || skb->len <= 0) { |
len | 433 | drivers/net/tulip.c | tp->tx_ring[entry].length = skb->len | |
len | 208 | drivers/net/tunnel.c | newlen = (skb->len + ip_header_len); |
len | 224 | drivers/net/tunnel.c | memcpy(skb2->data + ip_header_len, skb->data, skb->len); |
len | 234 | drivers/net/tunnel.c | iph->tot_len = htons(skb2->len); |
len | 1442 | drivers/net/wavelan.c | length = (ETH_ZLEN < skb->len) ? skb->len : ETH_ZLEN; |
len | 2117 | drivers/net/wavelan.c | int len; |
len | 2123 | drivers/net/wavelan.c | len = 0; |
len | 2130 | drivers/net/wavelan.c | len += size; |
len | 2141 | drivers/net/wavelan.c | size = sprintf_stats(buffer + len, lp->dev); |
len | 2143 | drivers/net/wavelan.c | len += size; |
len | 2144 | drivers/net/wavelan.c | pos = begin + len; |
len | 2148 | drivers/net/wavelan.c | len = 0; |
len | 2161 | drivers/net/wavelan.c | len -= (offset - begin); /* Start slop */ |
len | 2162 | drivers/net/wavelan.c | if (len > length) |
len | 2163 | drivers/net/wavelan.c | len = length; /* Ending slop */ |
len | 2165 | drivers/net/wavelan.c | return len; |
len | 360 | drivers/net/znet.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 386 | drivers/net/znet.c | memcpy(zn.tx_cur, buf, skb->len); |
len | 514 | drivers/pci/pci.c | int reg, len = 0; |
len | 528 | drivers/pci/pci.c | if (len + 80 > size) { |
len | 531 | drivers/pci/pci.c | len += sprintf(buf + len, " Bus %2d, device %3d, function %2d:\n", |
len | 534 | drivers/pci/pci.c | if (len + 80 > size) { |
len | 537 | drivers/pci/pci.c | len += sprintf(buf + len, " %s: %s %s (rev %d).\n ", |
len | 542 | drivers/pci/pci.c | len += sprintf(buf + len, |
len | 553 | drivers/pci/pci.c | if (len + strlen(str) > size) { |
len | 556 | drivers/pci/pci.c | len += sprintf(buf + len, str); |
len | 560 | drivers/pci/pci.c | if (len + strlen(fast_b2b_capable) > size) { |
len | 563 | drivers/pci/pci.c | len += sprintf(buf + len, fast_b2b_capable); |
len | 569 | drivers/pci/pci.c | if (len + strlen(BIST_capable) > size) { |
len | 572 | drivers/pci/pci.c | len += sprintf(buf + len, BIST_capable); |
len | 577 | drivers/pci/pci.c | if (len + 40 > size) { |
len | 580 | drivers/pci/pci.c | len += sprintf(buf + len, "IRQ %d. ", dev->irq); |
len | 584 | drivers/pci/pci.c | if (len + 80 > size) { |
len | 587 | drivers/pci/pci.c | len += sprintf(buf + len, "Master Capable. "); |
len | 589 | drivers/pci/pci.c | len += sprintf(buf + len, "Latency=%d. ", latency); |
len | 591 | drivers/pci/pci.c | len += sprintf(buf + len, "No bursts. "); |
len | 593 | drivers/pci/pci.c | len += sprintf(buf + len, "Min Gnt=%d.", min_gnt); |
len | 595 | drivers/pci/pci.c | len += sprintf(buf + len, "Max Lat=%d.", max_lat); |
len | 599 | drivers/pci/pci.c | if (len + 40 > size) { |
len | 609 | drivers/pci/pci.c | len += sprintf(buf + len, |
len | 633 | drivers/pci/pci.c | len += sprintf(buf + len, |
len | 640 | drivers/pci/pci.c | len += sprintf(buf + len, "\n"); |
len | 641 | drivers/pci/pci.c | return len; |
len | 651 | drivers/pci/pci.c | int nprinted, len, size; |
len | 657 | drivers/pci/pci.c | len = sprintf(buf, "PCI devices found:\n"); |
len | 660 | drivers/pci/pci.c | nprinted = sprint_dev_config(dev, buf + len, size - len); |
len | 662 | drivers/pci/pci.c | return len + sprintf(buf + len, MSG); |
len | 664 | drivers/pci/pci.c | len += nprinted; |
len | 666 | drivers/pci/pci.c | return len; |
len | 864 | drivers/pci/pci.c | int len = get_pci_list((char*)mem_start); |
len | 865 | drivers/pci/pci.c | if (len) { |
len | 866 | drivers/pci/pci.c | ((char *) mem_start)[len] = '\0'; |
len | 2061 | drivers/scsi/53c7,8xx.c | size_t len; |
len | 2079 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
len | 2082 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "%08x\n", * (u32 *) bp->addr); |
len | 2084 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "\n"); |
len | 2086 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
len | 2087 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, len); |
len | 2099 | drivers/scsi/53c7,8xx.c | size_t len; |
len | 2161 | drivers/scsi/53c7,8xx.c | int i, j, error, len; |
len | 2182 | drivers/scsi/53c7,8xx.c | len = strlen (debugger_tokens[i].name); |
len | 2183 | drivers/scsi/53c7,8xx.c | if (!strncmp(input_buf, debugger_tokens[i].name, len)) |
len | 2190 | drivers/scsi/53c7,8xx.c | for (ptr = input_buf + len, j = 0; j < debugger_tokens[i].nargs && *ptr;) { |
len | 3743 | drivers/scsi/53c7,8xx.c | size_t len = strlen(buf); |
len | 3744 | drivers/scsi/53c7,8xx.c | debugger_kernel_write(host, buf, len); |
len | 3902 | drivers/scsi/53c7,8xx.c | int i, len; |
len | 3913 | drivers/scsi/53c7,8xx.c | ptr += len, i -= len) { |
len | 3915 | drivers/scsi/53c7,8xx.c | len = print_msg (ptr); |
len | 1172 | drivers/scsi/NCR5380.c | int len; |
len | 1412 | drivers/scsi/NCR5380.c | len = 3; |
len | 1416 | drivers/scsi/NCR5380.c | len = 1; |
len | 1423 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 1916 | drivers/scsi/NCR5380.c | int len; |
len | 2003 | drivers/scsi/NCR5380.c | len = transfersize; |
len | 2005 | drivers/scsi/NCR5380.c | &len, (unsigned char **) &cmd->SCp.ptr)) { |
len | 2019 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual -= transfersize - len; |
len | 2027 | drivers/scsi/NCR5380.c | len = 1; |
len | 2029 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2231 | drivers/scsi/NCR5380.c | len = 2; |
len | 2234 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2242 | drivers/scsi/NCR5380.c | if (!len && extended_msg[1] <= |
len | 2246 | drivers/scsi/NCR5380.c | len = extended_msg[1] - 1; |
len | 2250 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2254 | drivers/scsi/NCR5380.c | instance->host_no, len); |
len | 2264 | drivers/scsi/NCR5380.c | } else if (len) { |
len | 2298 | drivers/scsi/NCR5380.c | len = 1; |
len | 2301 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2313 | drivers/scsi/NCR5380.c | len = cmd->cmd_len; |
len | 2320 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, |
len | 2335 | drivers/scsi/NCR5380.c | len = 1; |
len | 2337 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2382 | drivers/scsi/NCR5380.c | int len; |
len | 2426 | drivers/scsi/NCR5380.c | len = 1; |
len | 2429 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2491 | drivers/scsi/NCR5380.c | len = 1; |
len | 2495 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2580 | drivers/scsi/NCR5380.c | int len; |
len | 2711 | drivers/scsi/NCR5380.c | len = 1; |
len | 2714 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio (instance, &phase, &len, &msgptr); |
len | 352 | drivers/scsi/NCR53c406a.c | int len; /* current scsi fifo size */ |
len | 365 | drivers/scsi/NCR53c406a.c | len=0; break; |
len | 367 | drivers/scsi/NCR53c406a.c | len=1; break; |
len | 369 | drivers/scsi/NCR53c406a.c | len=42; break; |
len | 371 | drivers/scsi/NCR53c406a.c | len=84; break; |
len | 373 | drivers/scsi/NCR53c406a.c | len=128; break; |
len | 376 | drivers/scsi/NCR53c406a.c | if ((i & 0x40) && len == 0) { /* fifo empty and interrupt occured */ |
len | 380 | drivers/scsi/NCR53c406a.c | if (len) { |
len | 381 | drivers/scsi/NCR53c406a.c | if( len > reqlen ) |
len | 382 | drivers/scsi/NCR53c406a.c | len = reqlen; |
len | 386 | drivers/scsi/NCR53c406a.c | if( fast_pio && len > 3 ) { |
len | 387 | drivers/scsi/NCR53c406a.c | insl(PIO_FIFO,request,len>>2); |
len | 388 | drivers/scsi/NCR53c406a.c | request += len & 0xfc; |
len | 389 | drivers/scsi/NCR53c406a.c | reqlen -= len & 0xfc; |
len | 392 | drivers/scsi/NCR53c406a.c | while(len--) { |
len | 407 | drivers/scsi/NCR53c406a.c | int len; /* current scsi fifo size */ |
len | 419 | drivers/scsi/NCR53c406a.c | len=128; break; |
len | 421 | drivers/scsi/NCR53c406a.c | len=84; break; |
len | 423 | drivers/scsi/NCR53c406a.c | len=42; break; |
len | 425 | drivers/scsi/NCR53c406a.c | len=1; break; |
len | 428 | drivers/scsi/NCR53c406a.c | len=0; break; |
len | 431 | drivers/scsi/NCR53c406a.c | if (len) { |
len | 432 | drivers/scsi/NCR53c406a.c | if( len > reqlen ) |
len | 433 | drivers/scsi/NCR53c406a.c | len = reqlen; |
len | 437 | drivers/scsi/NCR53c406a.c | if( fast_pio && len > 3 ) { |
len | 438 | drivers/scsi/NCR53c406a.c | outsl(PIO_FIFO,request,len>>2); |
len | 439 | drivers/scsi/NCR53c406a.c | request += len & 0xfc; |
len | 440 | drivers/scsi/NCR53c406a.c | reqlen -= len & 0xfc; |
len | 443 | drivers/scsi/NCR53c406a.c | while(len--) { |
len | 162 | drivers/scsi/aha1542.c | static int aha1542_out(unsigned int base, unchar *cmdp, int len) |
len | 167 | drivers/scsi/aha1542.c | if(len == 1) { |
len | 178 | drivers/scsi/aha1542.c | while (len--) |
len | 188 | drivers/scsi/aha1542.c | printk("aha1542_out failed(%d): ", len+1); aha1542_stat(); |
len | 194 | drivers/scsi/aha1542.c | static int aha1542_in(unsigned int base, unchar *cmdp, int len) |
len | 200 | drivers/scsi/aha1542.c | while (len--) |
len | 209 | drivers/scsi/aha1542.c | printk("aha1542_in failed(%d): ", len+1); aha1542_stat(); |
len | 216 | drivers/scsi/aha1542.c | static int aha1542_in1(unsigned int base, unchar *cmdp, int len) |
len | 222 | drivers/scsi/aha1542.c | while (len--) |
len | 296 | drivers/scsi/aha1542.c | int len; |
len | 329 | drivers/scsi/aha1542.c | len = 4; |
len | 332 | drivers/scsi/aha1542.c | while (len--) |
len | 1461 | drivers/scsi/aic7xxx.c | register int len = ep - bp; |
len | 1463 | drivers/scsi/aic7xxx.c | strncpy(buf, bp, len); |
len | 1464 | drivers/scsi/aic7xxx.c | buf[len] = '\0'; |
len | 3063 | drivers/scsi/aic7xxx.c | unsigned char len; |
len | 3111 | drivers/scsi/aic7xxx.c | for (i = 0; i < seeprom_read.len; i++) |
len | 30 | drivers/scsi/aic7xxx_proc.c | #define BLS buffer + len + size |
len | 82 | drivers/scsi/aic7xxx_proc.c | int len = 0; |
len | 114 | drivers/scsi/aic7xxx_proc.c | len += size; pos = begin + len; size = 0; |
len | 134 | drivers/scsi/aic7xxx_proc.c | len += size; pos = begin + len; size = 0; |
len | 166 | drivers/scsi/aic7xxx_proc.c | len += size; pos = begin + len; size = 0; |
len | 193 | drivers/scsi/aic7xxx_proc.c | len += size; pos = begin + len; size = 0; |
len | 241 | drivers/scsi/aic7xxx_proc.c | len += size; pos = begin + len; size = 0; |
len | 246 | drivers/scsi/aic7xxx_proc.c | proc_debug("2pos: %ld offset: %ld len: %d\n", pos, offset, len); |
len | 248 | drivers/scsi/aic7xxx_proc.c | len -= (offset - begin); /* Start slop */ |
len | 249 | drivers/scsi/aic7xxx_proc.c | if (len > length) |
len | 251 | drivers/scsi/aic7xxx_proc.c | len = length; /* Ending slop */ |
len | 253 | drivers/scsi/aic7xxx_proc.c | proc_debug("3pos: %ld offset: %ld len: %d\n", pos, offset, len); |
len | 255 | drivers/scsi/aic7xxx_proc.c | return (len); |
len | 257 | drivers/scsi/buslogic.c | size_t len) |
len | 261 | drivers/scsi/buslogic.c | if (len == 1) { |
len | 276 | drivers/scsi/buslogic.c | while (len--) { |
len | 285 | drivers/scsi/buslogic.c | buslogic_printk("failed(%u): ", len + 1); |
len | 293 | drivers/scsi/buslogic.c | static int buslogic_in(unsigned int base, unsigned char *cmdp, size_t len) |
len | 299 | drivers/scsi/buslogic.c | while (len--) { |
len | 308 | drivers/scsi/buslogic.c | buslogic_printk("failed(%u): ", len + 1); |
len | 490 | drivers/scsi/constants.c | int len = 0, i; |
len | 492 | drivers/scsi/constants.c | len = 3 + msg[1]; |
len | 511 | drivers/scsi/constants.c | for (i = 2; i < len; ++i) |
len | 515 | drivers/scsi/constants.c | for (i = 0; i < len; ++i) |
len | 528 | drivers/scsi/constants.c | len = 1; |
len | 539 | drivers/scsi/constants.c | len = 1; |
len | 552 | drivers/scsi/constants.c | len = 2; |
len | 559 | drivers/scsi/constants.c | return len; |
len | 245 | drivers/scsi/eata.c | ushort len; /* Number of bytes following this field */ |
len | 469 | drivers/scsi/eata.c | config.len = (ushort) htons((ushort)510); |
len | 485 | drivers/scsi/eata_dma.c | cp->sg_list[i].len = htonl((u32) sl->length); |
len | 833 | drivers/scsi/eata_dma.c | (u32) ntohl(gc->len), gc->version, |
len | 867 | drivers/scsi/eata_dma.c | if(gc->HAA_valid == FALSE || ntohl(gc->len) < 0x22) |
len | 991 | drivers/scsi/eata_dma.c | switch (ntohl(gc->len)) { |
len | 1007 | drivers/scsi/eata_dma.c | if(ntohl(gc->len) >= 0x22) { |
len | 1024 | drivers/scsi/eata_dma.c | if(ntohl(gc->len) >= 0x22) { |
len | 90 | drivers/scsi/eata_dma_proc.c | int size, len = 0; |
len | 120 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len, "EATA (Extended Attachment) driver version: " |
len | 122 | drivers/scsi/eata_dma_proc.c | len += size; pos = begin + len; |
len | 123 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "queued commands: %10ld\n" |
len | 125 | drivers/scsi/eata_dma_proc.c | len += size; pos = begin + len; |
len | 127 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "\nscsi%-2d: HBA %.10s\n", |
len | 129 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 130 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 131 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Firmware revision: v%s\n", |
len | 133 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 134 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 135 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Hardware Configuration:\n"); |
len | 136 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 137 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 141 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "DMA: BUSMASTER\n"); |
len | 143 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "DMA: %d\n", HBA_ptr->dma_channel); |
len | 144 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 145 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 147 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Base IO : %#.4x\n", (u32) HBA_ptr->base); |
len | 148 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 149 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 151 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Host Bus: EISA\n"); |
len | 152 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 153 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 196 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "IRQ: %2d, %s triggered\n", cc->interrupt, |
len | 198 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 199 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 201 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "DMA: BUSMASTER\n"); |
len | 203 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "DMA: %d\n", HBA_ptr->dma_channel); |
len | 204 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 205 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 206 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "CPU: MC680%02d %dMHz\n", bt->cpu_type, |
len | 208 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 209 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 210 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Base IO : %#.4x\n", (u32) HBA_ptr->base); |
len | 211 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 212 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 213 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Host Bus: %s\n", |
len | 217 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 218 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 219 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "SCSI Bus:%s%s Speed: %sMB/sec. %s\n", |
len | 224 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 225 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 226 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "SCSI channel expansion Module: %s present\n", |
len | 229 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 230 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 231 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "SmartRAID hardware: %spresent.\n", |
len | 233 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 234 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 235 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, " Type: %s\n", |
len | 241 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 242 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 244 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, " Max array groups: %d\n", |
len | 246 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 247 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 248 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, " Max drives per RAID 0 array: %d\n", |
len | 250 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 251 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 252 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, " Max drives per RAID 3/5 array: %d\n", |
len | 254 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 255 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 256 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Cache Module: %spresent.\n", |
len | 258 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 259 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 260 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, " Type: %s\n", |
len | 266 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 267 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 269 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, " Bank%d: %dMB with%s ECC\n",x, |
len | 272 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 273 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 275 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Timer Mod.: %spresent\n", |
len | 277 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 278 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 279 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "NVRAM : %spresent\n", |
len | 281 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 282 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 283 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "SmartROM : %sabled\n", |
len | 285 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 286 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 287 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Alarm : %s\n", |
len | 289 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 290 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 293 | drivers/scsi/eata_dma_proc.c | len = 0; |
len | 334 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Host<->Disk command statistics:\n" |
len | 336 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 337 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 339 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,"%5dk:%12u %12u\n", 1 << x, |
len | 342 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 343 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 345 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,">1024k:%12u %12u\n", |
len | 348 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 349 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 350 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,"Sum :%12u %12u\n", |
len | 353 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 354 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 358 | drivers/scsi/eata_dma_proc.c | len = 0; |
len | 365 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Host Latency Command Statistics:\n" |
len | 368 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 369 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 371 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,"%5dk:%12u %12u %12u %12u\n", |
len | 380 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 381 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 383 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,">1024k:%12u %12u %12u %12u\n", |
len | 391 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 392 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 395 | drivers/scsi/eata_dma_proc.c | len = 0; |
len | 401 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, |
len | 403 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 404 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 406 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,"%5dk:%12u %12u %12u %12u\n", |
len | 415 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 416 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 418 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,">1024k:%12u %12u %12u %12u\n", |
len | 426 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 427 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 430 | drivers/scsi/eata_dma_proc.c | len = 0; |
len | 440 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,"Attached devices: %s\n", (scd)?"":"none"); |
len | 441 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 442 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 446 | drivers/scsi/eata_dma_proc.c | proc_print_scsidevice(scd, buffer, &size, len); |
len | 447 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 448 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 451 | drivers/scsi/eata_dma_proc.c | len = 0; |
len | 462 | drivers/scsi/eata_dma_proc.c | DBG(DBG_PROC, printk("2pos: %ld offset: %ld len: %d\n", pos, offset, len)); |
len | 464 | drivers/scsi/eata_dma_proc.c | len-=(offset-begin); /* Start slop */ |
len | 465 | drivers/scsi/eata_dma_proc.c | if(len>length) |
len | 466 | drivers/scsi/eata_dma_proc.c | len = length; /* Ending slop */ |
len | 467 | drivers/scsi/eata_dma_proc.c | DBG(DBG_PROC, printk("3pos: %ld offset: %ld len: %d\n", pos, offset, len)); |
len | 469 | drivers/scsi/eata_dma_proc.c | return (len); |
len | 215 | drivers/scsi/eata_generic.h | __u32 len; /* Should return 0x22, 0x24, etc */ |
len | 266 | drivers/scsi/eata_generic.h | __u32 len; |
len | 638 | drivers/scsi/eata_pio.c | (uint) ntohl(gc->len), gc->version, |
len | 748 | drivers/scsi/eata_pio.c | switch (ntohl(gc->len)) { |
len | 764 | drivers/scsi/eata_pio.c | if(ntohl(gc->len) >= 0x22) { |
len | 48 | drivers/scsi/eata_pio_proc.c | int size, len = 0; |
len | 65 | drivers/scsi/eata_pio_proc.c | size = sprintf(buffer+len, "EATA (Extended Attachment) PIO driver version: " |
len | 67 | drivers/scsi/eata_pio_proc.c | len += size; pos = begin + len; |
len | 68 | drivers/scsi/eata_pio_proc.c | size = sprintf(buffer + len, "queued commands: %10ld\n" |
len | 70 | drivers/scsi/eata_pio_proc.c | len += size; pos = begin + len; |
len | 72 | drivers/scsi/eata_pio_proc.c | size = sprintf(buffer + len, "\nscsi%-2d: HBA %.10s\n", |
len | 74 | drivers/scsi/eata_pio_proc.c | len += size; |
len | 75 | drivers/scsi/eata_pio_proc.c | pos = begin + len; |
len | 76 | drivers/scsi/eata_pio_proc.c | size = sprintf(buffer + len, "Firmware revision: v%s\n", |
len | 78 | drivers/scsi/eata_pio_proc.c | len += size; |
len | 79 | drivers/scsi/eata_pio_proc.c | pos = begin + len; |
len | 80 | drivers/scsi/eata_pio_proc.c | size = sprintf(buffer + len, "IO: PIO\n"); |
len | 81 | drivers/scsi/eata_pio_proc.c | len += size; |
len | 82 | drivers/scsi/eata_pio_proc.c | pos = begin + len; |
len | 83 | drivers/scsi/eata_pio_proc.c | size = sprintf(buffer + len, "Base IO : %#.4x\n", (u32) HBA_ptr->base); |
len | 84 | drivers/scsi/eata_pio_proc.c | len += size; |
len | 85 | drivers/scsi/eata_pio_proc.c | pos = begin + len; |
len | 86 | drivers/scsi/eata_pio_proc.c | size = sprintf(buffer + len, "Host Bus: %s\n", |
len | 90 | drivers/scsi/eata_pio_proc.c | len += size; |
len | 91 | drivers/scsi/eata_pio_proc.c | pos = begin + len; |
len | 94 | drivers/scsi/eata_pio_proc.c | len = 0; |
len | 102 | drivers/scsi/eata_pio_proc.c | size = sprintf(buffer+len,"Attached devices: %s\n", (scd)?"":"none"); |
len | 103 | drivers/scsi/eata_pio_proc.c | len += size; |
len | 104 | drivers/scsi/eata_pio_proc.c | pos = begin + len; |
len | 108 | drivers/scsi/eata_pio_proc.c | proc_print_scsidevice(scd, buffer, &size, len); |
len | 109 | drivers/scsi/eata_pio_proc.c | len += size; |
len | 110 | drivers/scsi/eata_pio_proc.c | pos = begin + len; |
len | 113 | drivers/scsi/eata_pio_proc.c | len = 0; |
len | 123 | drivers/scsi/eata_pio_proc.c | DBG(DBG_PROC, printk("2pos: %ld offset: %ld len: %d\n", pos, offset, len)); |
len | 125 | drivers/scsi/eata_pio_proc.c | len-=(offset-begin); /* Start slop */ |
len | 126 | drivers/scsi/eata_pio_proc.c | if(len>length) |
len | 127 | drivers/scsi/eata_pio_proc.c | len = length; /* Ending slop */ |
len | 128 | drivers/scsi/eata_pio_proc.c | DBG(DBG_PROC, printk("3pos: %ld offset: %ld len: %d\n", pos, offset, len)); |
len | 130 | drivers/scsi/eata_pio_proc.c | return (len); |
len | 1098 | drivers/scsi/fdomain.c | int len; |
len | 1108 | drivers/scsi/fdomain.c | pos = len = strlen( buffer ); |
len | 1111 | drivers/scsi/fdomain.c | len = 0; |
len | 1116 | drivers/scsi/fdomain.c | len -= (offset - begin); |
len | 1117 | drivers/scsi/fdomain.c | if(len > length) len = length; |
len | 1119 | drivers/scsi/fdomain.c | return(len); |
len | 490 | drivers/scsi/pas16.c | int len) { |
len | 494 | drivers/scsi/pas16.c | register i = len; |
len | 523 | drivers/scsi/pas16.c | int len) { |
len | 526 | drivers/scsi/pas16.c | register i = len; |
len | 2126 | drivers/scsi/scsi.c | void *scsi_malloc(unsigned int len) |
len | 2131 | drivers/scsi/scsi.c | if((len & 0x1ff) || len > (1<<MALLOC_PAGEBITS)) |
len | 2136 | drivers/scsi/scsi.c | nbits = len >> 9; |
len | 2146 | drivers/scsi/scsi.c | printk("SMalloc: %d %p\n",len, dma_malloc_pages[i] + (j << 9)); |
len | 2155 | drivers/scsi/scsi.c | int scsi_free(void *obj, unsigned int len) |
len | 2162 | drivers/scsi/scsi.c | printk("Sfree %p %d\n",obj, len); |
len | 2180 | drivers/scsi/scsi.c | nbits = len >> 9; |
len | 2398 | drivers/scsi/scsi.c | int size, len = 0; |
len | 2406 | drivers/scsi/scsi.c | size = sprintf(buffer+len,"Attached devices: %s\n", (scd)?"":"none"); |
len | 2407 | drivers/scsi/scsi.c | len += size; |
len | 2408 | drivers/scsi/scsi.c | pos = begin + len; |
len | 2411 | drivers/scsi/scsi.c | size += sprintf(buffer+len,"scsi%2d: %s\n", (int) HBA_ptr->host_no, |
len | 2413 | drivers/scsi/scsi.c | len += size; |
len | 2414 | drivers/scsi/scsi.c | pos = begin + len; |
len | 2419 | drivers/scsi/scsi.c | proc_print_scsidevice(scd, buffer, &size, len); |
len | 2420 | drivers/scsi/scsi.c | len += size; |
len | 2421 | drivers/scsi/scsi.c | pos = begin + len; |
len | 2424 | drivers/scsi/scsi.c | len = 0; |
len | 2437 | drivers/scsi/scsi.c | len-=(offset-begin); /* Start slop */ |
len | 2438 | drivers/scsi/scsi.c | if(len>length) |
len | 2439 | drivers/scsi/scsi.c | len = length; /* Ending slop */ |
len | 2440 | drivers/scsi/scsi.c | return (len); |
len | 636 | drivers/scsi/scsi_debug.c | int len, pos, begin; |
len | 671 | drivers/scsi/scsi_debug.c | pos = len = sprintf(buffer, |
len | 677 | drivers/scsi/scsi_debug.c | len = 0; |
len | 682 | drivers/scsi/scsi_debug.c | len -= (offset - begin); |
len | 683 | drivers/scsi/scsi_debug.c | if(len > length) |
len | 684 | drivers/scsi/scsi_debug.c | len = length; |
len | 686 | drivers/scsi/scsi_debug.c | return(len); |
len | 40 | drivers/scsi/scsi_ioctl.c | unsigned int len,slen; |
len | 47 | drivers/scsi/scsi_ioctl.c | len = get_user ((unsigned int *) buffer); |
len | 54 | drivers/scsi/scsi_ioctl.c | if (len > slen) |
len | 55 | drivers/scsi/scsi_ioctl.c | len = slen + 1; |
len | 56 | drivers/scsi/scsi_ioctl.c | result = verify_area(VERIFY_WRITE, buffer, len); |
len | 59 | drivers/scsi/scsi_ioctl.c | memcpy_tofs (buffer, string, len); |
len | 53 | drivers/scsi/scsi_proc.c | int len, pos, begin; |
len | 59 | drivers/scsi/scsi_proc.c | pos = len = sprintf(buffer, |
len | 62 | drivers/scsi/scsi_proc.c | len = 0; |
len | 67 | drivers/scsi/scsi_proc.c | len -= (offset - begin); |
len | 68 | drivers/scsi/scsi_proc.c | if(len > length) |
len | 69 | drivers/scsi/scsi_proc.c | len = length; |
len | 71 | drivers/scsi/scsi_proc.c | return(len); |
len | 257 | drivers/scsi/scsi_proc.c | void proc_print_scsidevice(Scsi_Device *scd, char *buffer, int *size, int len) |
len | 261 | drivers/scsi/scsi_proc.c | y = sprintf(buffer + len, |
len | 266 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, "%c", scd->vendor[x]); |
len | 268 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y," "); |
len | 270 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " Model: "); |
len | 273 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, "%c", scd->model[x]); |
len | 275 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " "); |
len | 277 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " Rev: "); |
len | 280 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, "%c", scd->rev[x]); |
len | 282 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " "); |
len | 284 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, "\n"); |
len | 286 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " Type: %s ", |
len | 289 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " ANSI" |
len | 292 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " CCS\n"); |
len | 294 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, "\n"); |
len | 594 | drivers/scsi/seagate.c | int len = 0; |
len | 723 | drivers/scsi/seagate.c | len=current_bufflen; /* WDE add */ |
len | 921 | drivers/scsi/seagate.c | len = buffer->length; |
len | 928 | drivers/scsi/seagate.c | len = SCint->request_bufflen; |
len | 933 | drivers/scsi/seagate.c | printk("scsi%d : len = %d\n", hostno, len); |
len | 1046 | drivers/scsi/seagate.c | if (!len) { |
len | 1056 | drivers/scsi/seagate.c | if (fast && transfersize && !(len % transfersize) && (len >= transfersize) |
len | 1064 | drivers/scsi/seagate.c | SCint->transfersize, len, data); |
len | 1086 | drivers/scsi/seagate.c | len -= transfersize; |
len | 1091 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1147 | drivers/scsi/seagate.c | "=S" (data), "=c" (len) : |
len | 1149 | drivers/scsi/seagate.c | "0" (data), "1" (len) : |
len | 1154 | drivers/scsi/seagate.c | if (!len && nobuffs) { |
len | 1157 | drivers/scsi/seagate.c | len = buffer->length; |
len | 1161 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1170 | drivers/scsi/seagate.c | transfered += len; |
len | 1172 | drivers/scsi/seagate.c | for (; len && (STATUS & (REQ_MASK | STAT_REQ)) == (REQ_DATAIN | |
len | 1173 | drivers/scsi/seagate.c | STAT_REQ); --len) { |
len | 1178 | drivers/scsi/seagate.c | transfered -= len; |
len | 1183 | drivers/scsi/seagate.c | if (fast && transfersize && !(len % transfersize) && (len >= transfersize) |
len | 1191 | drivers/scsi/seagate.c | SCint->transfersize, len, data); |
len | 1213 | drivers/scsi/seagate.c | len -= transfersize; |
len | 1223 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1231 | drivers/scsi/seagate.c | printk("scsi%d: transfered += %d\n", hostno, len); |
len | 1232 | drivers/scsi/seagate.c | transfered += len; /* Assume we'll transfer it all, then |
len | 1287 | drivers/scsi/seagate.c | "=D" (data), "=c" (len) : |
len | 1289 | drivers/scsi/seagate.c | "0" (data), "1" (len) : |
len | 1294 | drivers/scsi/seagate.c | printk("scsi%d: transfered -= %d\n", hostno, len); |
len | 1295 | drivers/scsi/seagate.c | transfered -= len; /* Since we assumed all of Len got |
len | 1300 | drivers/scsi/seagate.c | if (!len && nobuffs) { |
len | 1303 | drivers/scsi/seagate.c | len = buffer->length; |
len | 1307 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1374 | drivers/scsi/seagate.c | current_bufflen = len; /* WDE add */ |
len | 1406 | drivers/scsi/seagate.c | current_bufflen = len; /* WDE add */ |
len | 1417 | drivers/scsi/seagate.c | len=current_bufflen; |
len | 167 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = blk.len >> 8; |
len | 168 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = blk.len; |
len | 322 | drivers/scsi/t128.c | int len) { |
len | 325 | drivers/scsi/t128.c | register i = len; |
len | 366 | drivers/scsi/t128.c | int len) { |
len | 369 | drivers/scsi/t128.c | register i = len; |
len | 216 | drivers/scsi/wd7000.c | unsigned len; /* length of string */ |
len | 332 | drivers/scsi/wd7000.c | unchar len[3]; |
len | 388 | drivers/scsi/wd7000.c | unchar len[3]; /* command buffer length */ |
len | 430 | drivers/scsi/wd7000.c | unchar len[3]; /* buffer length */ |
len | 446 | drivers/scsi/wd7000.c | unchar len[3]; /* parms buffer length */ |
len | 578 | drivers/scsi/wd7000.c | static inline int command_out(Adapter *host, unchar *cmd, int len) |
len | 581 | drivers/scsi/wd7000.c | while (len--) { |
len | 591 | drivers/scsi/wd7000.c | printk("wd7000 command_out: WAIT failed(%d)\n", len+1); |
len | 938 | drivers/scsi/wd7000.c | any2scsi(sgb[i].len, sg[i].length); |
len | 968 | drivers/scsi/wd7000.c | any2scsi(icb.len, sizeof(buf)); |
len | 1123 | drivers/scsi/wd7000.c | if (!memcmp(cfg->bios+sig->ofs, sig->sig, sig->len)) { |
len | 509 | drivers/sound/aedsp16.c | int len = 0; |
len | 521 | drivers/sound/aedsp16.c | ver[len++] = ret; |
len | 523 | drivers/sound/aedsp16.c | while (len < CARDVERLEN); |
len | 531 | drivers/sound/aedsp16.c | int len = 0; |
len | 541 | drivers/sound/aedsp16.c | return (len ? 0 : -1); |
len | 543 | drivers/sound/aedsp16.c | AudioExcelName[len++] = ret; |
len | 546 | drivers/sound/aedsp16.c | while (len < CARDNAMELEN); |
len | 238 | drivers/sound/configure.c | int len; |
len | 240 | drivers/sound/configure.c | if ((len = read (0, answ, sizeof (answ))) < 1) |
len | 250 | drivers/sound/configure.c | if (len < 2) /* |
len | 255 | drivers/sound/configure.c | answ[len - 1] = 0; |
len | 267 | drivers/sound/configure.c | int len, num; |
len | 271 | drivers/sound/configure.c | if ((len = read (0, answ, sizeof (answ))) < 1) |
len | 281 | drivers/sound/configure.c | if (len < 2) /* |
len | 286 | drivers/sound/configure.c | answ[len - 1] = 0; |
len | 161 | drivers/sound/dev_table.h | const snd_rw_buf *userbuf, int useroffs, int len); |
len | 204 | drivers/sound/dev_table.h | int (*send_sysex)(int dev, unsigned char *bytes, int len); |
len | 480 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock) |
len | 550 | drivers/sound/dmabuf.c | *len = dmap->fragment_size - dmap->counts[dmap->qhead]; |
len | 888 | drivers/sound/dmabuf.c | int len, max, tmp; |
len | 900 | drivers/sound/dmabuf.c | len = dmap->qlen; |
len | 905 | drivers/sound/dmabuf.c | if (tmp & len) |
len | 909 | drivers/sound/dmabuf.c | len += tmp; |
len | 912 | drivers/sound/dmabuf.c | if (len >= max) |
len | 1452 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock) |
len | 482 | drivers/sound/gus_wave.c | if (position < samples[sample_no].len) |
len | 1311 | drivers/sound/gus_wave.c | ((sample_ptrs[sample] + samples[sample].len) >> 18)) |
len | 1342 | drivers/sound/gus_wave.c | gus_write_addr (0x0a, sample_ptrs[sample] + samples[sample].len - |
len | 1375 | drivers/sound/gus_wave.c | gus_write_addr (0x04, sample_ptrs[sample] + samples[sample].len - 1, |
len | 1554 | drivers/sound/gus_wave.c | if (count < patch.len) |
len | 1557 | drivers/sound/gus_wave.c | count, (int) patch.len); |
len | 1558 | drivers/sound/gus_wave.c | patch.len = count; |
len | 1561 | drivers/sound/gus_wave.c | if (patch.len <= 0 || patch.len > gus_mem_size) |
len | 1563 | drivers/sound/gus_wave.c | printk ("GUS: Invalid sample length %d\n", (int) patch.len); |
len | 1569 | drivers/sound/gus_wave.c | if (patch.loop_start < 0 || patch.loop_start >= patch.len) |
len | 1575 | drivers/sound/gus_wave.c | if (patch.loop_end < patch.loop_start || patch.loop_end > patch.len) |
len | 1591 | drivers/sound/gus_wave.c | if (patch.len >= GUS_BANK_SIZE) |
len | 1593 | drivers/sound/gus_wave.c | printk ("GUS: Sample (16 bit) too long %d\n", (int) patch.len); |
len | 1598 | drivers/sound/gus_wave.c | ((free_mem_ptr + patch.len) / GUS_BANK_SIZE)) |
len | 1603 | drivers/sound/gus_wave.c | if ((tmp_mem + patch.len) > gus_mem_size) |
len | 1610 | drivers/sound/gus_wave.c | if ((free_mem_ptr + patch.len) > gus_mem_size) |
len | 1635 | drivers/sound/gus_wave.c | left = patch.len; |
len | 1765 | drivers/sound/gus_wave.c | free_mem_ptr += patch.len; |
len | 2428 | drivers/sound/gus_wave.c | const snd_rw_buf * userbuf, int useroffs, int len) |
len | 2432 | drivers/sound/gus_wave.c | memcpy_fromfs (&localbuf[localoffs], &((userbuf)[useroffs]), len); |
len | 2441 | drivers/sound/gus_wave.c | len /= 2; |
len | 2446 | drivers/sound/gus_wave.c | for (i = 0; i < len; i++) |
len | 2461 | drivers/sound/gus_wave.c | len /= 4; |
len | 2467 | drivers/sound/gus_wave.c | for (i = 0; i < len; i++) |
len | 2612 | drivers/sound/gus_wave.c | if (pat->len > samples[ptr].len) /* Cannot expand sample */ |
len | 2635 | drivers/sound/gus_wave.c | if (offs < 0 || offs >= samples[sample].len) |
len | 2638 | drivers/sound/gus_wave.c | n = samples[sample].len - offs; /* Num of bytes left */ |
len | 2676 | drivers/sound/gus_wave.c | if (offs < 0 || offs >= samples[sample].len) |
len | 2681 | drivers/sound/gus_wave.c | n = samples[sample].len - offs; /* |
len | 133 | drivers/sound/maui.c | if (count < header.len) |
len | 136 | drivers/sound/maui.c | count, (int) header.len); |
len | 137 | drivers/sound/maui.c | header.len = count; |
len | 140 | drivers/sound/maui.c | left = header.len; |
len | 55 | drivers/sound/midi_synth.c | int len; \ |
len | 58 | drivers/sound/midi_synth.c | seq_input_event(obuf, len); \ |
len | 64 | drivers/sound/midi_synth.c | #define _SEQ_ADVBUF(x) len=x |
len | 536 | drivers/sound/midi_synth.c | if (count < sysex.len) |
len | 539 | drivers/sound/midi_synth.c | count, (int) sysex.len); |
len | 540 | drivers/sound/midi_synth.c | sysex.len = count; |
len | 543 | drivers/sound/midi_synth.c | left = sysex.len; |
len | 708 | drivers/sound/midi_synth.c | midi_synth_send_sysex (int dev, unsigned char *bytes, int len) |
len | 713 | drivers/sound/midi_synth.c | for (i = 0; i < len; i++) |
len | 19 | drivers/sound/midi_synth.h | int midi_synth_send_sysex(int dev, unsigned char *bytes,int len); |
len | 53 | drivers/sound/midibuf.c | int len, head, tail; |
len | 77 | drivers/sound/midibuf.c | #define DATA_AVAIL(q) (q->len) |
len | 78 | drivers/sound/midibuf.c | #define SPACE_AVAIL(q) (MAX_QUEUE_SIZE - q->len) |
len | 86 | drivers/sound/midibuf.c | q->len++; q->tail = (q->tail+1) % MAX_QUEUE_SIZE; \ |
len | 96 | drivers/sound/midibuf.c | q->len--; q->head = (q->head+1) % MAX_QUEUE_SIZE; \ |
len | 181 | drivers/sound/midibuf.c | midi_out_buf[dev]->len--; |
len | 250 | drivers/sound/midibuf.c | midi_in_buf[dev]->len = midi_in_buf[dev]->head = midi_in_buf[dev]->tail = 0; |
len | 263 | drivers/sound/midibuf.c | midi_out_buf[dev]->len = midi_out_buf[dev]->head = midi_out_buf[dev]->tail = 0; |
len | 161 | drivers/sound/mpu401.c | int len; \ |
len | 164 | drivers/sound/mpu401.c | seq_input_event(obuf, len); \ |
len | 170 | drivers/sound/mpu401.c | #define _SEQ_ADVBUF(x) len=x |
len | 483 | drivers/sound/pss.c | if (buf->len <= 0 || buf->len > sizeof (buf->data)) |
len | 486 | drivers/sound/pss.c | if (!pss_download_boot (devc, buf->data, buf->len, buf->flags)) |
len | 179 | drivers/sound/sequencer.c | seq_copy_to_input (unsigned char *event, int len) |
len | 187 | drivers/sound/sequencer.c | if (len != 4 && len != 8) |
len | 189 | drivers/sound/sequencer.c | if ((seq_mode == SEQ_1) != (len == 4)) |
len | 197 | drivers/sound/sequencer.c | memcpy (&iqueue[iqtail * IEV_SZ], event, len); |
len | 238 | drivers/sound/sequencer.c | seq_input_event (unsigned char *event, int len) |
len | 261 | 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, int dontblock); |
len | 52 | drivers/sound/sound_calls.h | void seq_input_event(unsigned char *event, int len); |
len | 53 | drivers/sound/sound_calls.h | void seq_copy_to_input (unsigned char *event, int len); |
len | 178 | drivers/sound/soundcard.c | int len; |
len | 180 | drivers/sound/soundcard.c | len = (cmd & IOCSIZE_MASK) >> IOCSIZE_SHIFT; |
len | 184 | drivers/sound/soundcard.c | if ((err = verify_area (VERIFY_READ, (void *) arg, len)) < 0) |
len | 190 | drivers/sound/soundcard.c | if ((err = verify_area (VERIFY_WRITE, (void *) arg, len)) < 0) |
len | 656 | drivers/sound/sscape.c | if (buf->len <= 0 || buf->len > sizeof (buf->data)) |
len | 659 | drivers/sound/sscape.c | if (!sscape_download_boot (devc, buf->data, buf->len, buf->flags)) |
len | 178 | fs/binfmt_elf.c | unsigned int len; |
len | 287 | fs/binfmt_elf.c | len = (elf_bss + 0xfff) & 0xfffff000; /* What we have mapped so far */ |
len | 290 | fs/binfmt_elf.c | if (last_bss > len) |
len | 291 | fs/binfmt_elf.c | do_mmap(NULL, len, last_bss-len, |
len | 725 | fs/binfmt_elf.c | unsigned int len; |
len | 733 | fs/binfmt_elf.c | len = 0; |
len | 809 | fs/binfmt_elf.c | len = (elf_phdata->p_filesz + elf_phdata->p_vaddr+ 0xfff) & 0xfffff000; |
len | 811 | fs/binfmt_elf.c | if (bss > len) |
len | 812 | fs/binfmt_elf.c | do_mmap(NULL, len, bss-len, |
len | 1096 | fs/binfmt_elf.c | int i, len; |
len | 1100 | fs/binfmt_elf.c | len = current->mm->arg_end - current->mm->arg_start; |
len | 1101 | fs/binfmt_elf.c | len = len >= ELF_PRARGSZ ? ELF_PRARGSZ : len; |
len | 1103 | fs/binfmt_elf.c | (const char *)current->mm->arg_start, len); |
len | 1104 | fs/binfmt_elf.c | for(i = 0; i < len; i++) |
len | 1107 | fs/binfmt_elf.c | psinfo.pr_psargs[len] = 0; |
len | 1195 | fs/binfmt_elf.c | unsigned long len = vma->vm_end - vma->vm_start; |
len | 1201 | fs/binfmt_elf.c | printk("elf_core_dump: writing %08lx %lx\n", addr, len); |
len | 1203 | fs/binfmt_elf.c | DUMP_WRITE((void *)addr, len); |
len | 105 | fs/dcache.c | static inline unsigned long namehash(const char * name, int len) |
len | 107 | fs/dcache.c | return len * *(const 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 | 419 | fs/exec.c | int len, offset = 0; |
len | 435 | fs/exec.c | len=0; /* remember zero-padding */ |
len | 437 | fs/exec.c | len++; |
len | 439 | fs/exec.c | if (p < len) { /* this shouldn't happen - 128kB */ |
len | 443 | fs/exec.c | while (len) { |
len | 444 | fs/exec.c | --p; --tmp; --len; |
len | 948 | fs/exec.c | unsigned int len; |
len | 988 | fs/exec.c | len = PAGE_ALIGN(ex.a_text + ex.a_data); |
len | 990 | fs/exec.c | if (bss > len) |
len | 991 | 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 | 151 | fs/ext/namei.c | int ext_lookup(struct inode * dir,const char * name, int len, |
len | 165 | fs/ext/namei.c | if (!(bh = ext_find_entry(dir,name,len,&de,NULL,NULL))) { |
len | 307 | fs/ext/namei.c | int ext_create(struct inode * dir,const char * name, int len, int mode, |
len | 325 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 341 | fs/ext/namei.c | int ext_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
len | 349 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 384 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 400 | fs/ext/namei.c | int ext_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 406 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 451 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 532 | fs/ext/namei.c | int ext_rmdir(struct inode * dir, const char * name, int len) |
len | 540 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
len | 586 | fs/ext/namei.c | int ext_unlink(struct inode * dir, const char * name, int len) |
len | 595 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
len | 630 | fs/ext/namei.c | int ext_symlink(struct inode * dir, const char * name, int len, const char * symname) |
len | 660 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 669 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 685 | fs/ext/namei.c | int ext_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
len | 700 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 707 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 36 | fs/ext2/balloc.c | #define in_range(b, first, len) ((b) >= (first) && (b) <= (first) + (len) - 1) |
len | 44 | fs/ext2/namei.c | static int ext2_match (int len, const char * const name, |
len | 47 | fs/ext2/namei.c | if (!de || !de->inode || len > EXT2_NAME_LEN) |
len | 52 | fs/ext2/namei.c | if (!len && de->name_len == 1 && (de->name[0] == '.') && |
len | 55 | fs/ext2/namei.c | if (len != de->name_len) |
len | 57 | fs/ext2/namei.c | return !memcmp(name, de->name, len); |
len | 165 | fs/ext2/namei.c | int ext2_lookup (struct inode * dir, const char * name, int len, |
len | 179 | fs/ext2/namei.c | if (dcache_lookup(dir, name, len, &ino)) { |
len | 192 | fs/ext2/namei.c | if (!(bh = ext2_find_entry (dir, name, len, &de))) { |
len | 194 | fs/ext2/namei.c | dcache_add(dir, name, len, 0); |
len | 199 | fs/ext2/namei.c | dcache_add(dir, name, len, ino); |
len | 367 | fs/ext2/namei.c | int ext2_create (struct inode * dir,const char * name, int len, int mode, |
len | 386 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 408 | fs/ext2/namei.c | int ext2_mknod (struct inode * dir, const char * name, int len, int mode, |
len | 418 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 450 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 472 | fs/ext2/namei.c | int ext2_mkdir (struct inode * dir, const char * name, int len, int mode) |
len | 481 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 524 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 607 | fs/ext2/namei.c | int ext2_rmdir (struct inode * dir, const char * name, int len) |
len | 618 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 688 | fs/ext2/namei.c | int ext2_unlink (struct inode * dir, const char * name, int len) |
len | 700 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 749 | fs/ext2/namei.c | int ext2_symlink (struct inode * dir, const char * name, int len, |
len | 798 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 807 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 830 | fs/ext2/namei.c | const char * name, int len) |
len | 851 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 858 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 363 | 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 | 254 | fs/hpfs/hpfs_fs.c | static unsigned choose_conv(unsigned char *p, unsigned len); |
len | 256 | fs/hpfs/hpfs_fs.c | unsigned len); |
len | 536 | fs/hpfs/hpfs_fs.c | static int zerop(void *addr, unsigned len) |
len | 539 | fs/hpfs/hpfs_fs.c | return p[0] == 0 && memcmp(p, p + 1, len - 1) == 0; |
len | 953 | fs/hpfs/hpfs_fs.c | static unsigned choose_conv(unsigned char *p, unsigned len) |
len | 960 | fs/hpfs/hpfs_fs.c | while (len--) { |
len | 963 | fs/hpfs/hpfs_fs.c | if (c == '\r' && len && *p == '\n') |
len | 985 | fs/hpfs/hpfs_fs.c | unsigned len) |
len | 989 | fs/hpfs/hpfs_fs.c | while (len--) { |
len | 991 | fs/hpfs/hpfs_fs.c | if (c == '\r' && (len == 0 || *in == '\n')); |
len | 1110 | fs/hpfs/hpfs_fs.c | static int hpfs_lookup(struct inode *dir, const char *name, int len, |
len | 1131 | fs/hpfs/hpfs_fs.c | if (name[0] == '.' && len == 1) |
len | 1133 | fs/hpfs/hpfs_fs.c | else if (name[0] == '.' && name[1] == '.' && len == 2) |
len | 1138 | fs/hpfs/hpfs_fs.c | de = map_dirent(dir, dir->i_hpfs_dno, name, len, &qbh); |
len | 1233 | fs/hpfs/hpfs_fs.c | const unsigned char *name, unsigned len, |
len | 1262 | fs/hpfs/hpfs_fs.c | l = len < de->namelen ? len : de->namelen; |
len | 1269 | fs/hpfs/hpfs_fs.c | t = len - de->namelen; |
len | 1286 | fs/hpfs/hpfs_fs.c | name, len, qbh); |
len | 1343 | fs/hpfs/hpfs_fs.c | static void translate_hpfs_name(const unsigned char * from, int len, char * to, int lowercase) |
len | 1345 | fs/hpfs/hpfs_fs.c | while (len > 0) { |
len | 1347 | fs/hpfs/hpfs_fs.c | len--; |
len | 75 | fs/isofs/dir.c | static int isofs_name_translate(char * old, int len, char * new) |
len | 79 | fs/isofs/dir.c | for (i = 0; i < len; i++) { |
len | 87 | fs/isofs/dir.c | if (c == '.' && i == len - 3 && old[i + 1] == ';' && old[i + 2] == '1') |
len | 91 | fs/isofs/dir.c | if (c == ';' && i == len - 2 && old[i + 1] == '1') |
len | 115 | fs/isofs/dir.c | int len, rrflag; |
len | 222 | fs/isofs/dir.c | len = de->name_len[0]; |
len | 224 | fs/isofs/dir.c | rrflag = get_rock_ridge_filename(de, &name, &len, inode); |
len | 228 | fs/isofs/dir.c | rrflag = filldir(dirent, name, len, filp->f_pos, inode_number); |
len | 229 | fs/isofs/dir.c | dcache_add(inode, name, len, inode_number); |
len | 239 | fs/isofs/dir.c | len = isofs_name_translate(name, len, tmpname); |
len | 240 | fs/isofs/dir.c | if (filldir(dirent, tmpname, len, filp->f_pos, inode_number) < 0) |
len | 242 | fs/isofs/dir.c | dcache_add(inode, tmpname, len, inode_number); |
len | 247 | fs/isofs/dir.c | if (filldir(dirent, name, len, filp->f_pos, inode_number) < 0) |
len | 250 | fs/isofs/dir.c | dcache_add(inode, name, len, inode_number); |
len | 27 | fs/isofs/namei.c | static int isofs_match(int len,const char * name, const 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 | 218 | fs/isofs/namei.c | int isofs_lookup(struct inode * dir,const char * name, int len, |
len | 225 | fs/isofs/namei.c | printk("lookup: %x %d\n",dir->i_ino, len); |
len | 238 | fs/isofs/namei.c | if (dcache_lookup(dir, name, len, &ino)) ino_back = dir->i_ino; |
len | 241 | fs/isofs/namei.c | if (!(bh = isofs_find_entry(dir,name,len, &ino, &ino_back))) { |
len | 246 | 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 | 335 | fs/isofs/rock.c | slen = rr->len - 5; |
len | 342 | fs/isofs/rock.c | inode->i_size += slp->len; |
len | 357 | fs/isofs/rock.c | slen -= slp->len + 2; |
len | 358 | fs/isofs/rock.c | slp = (struct SL_component *) (((char *) slp) + slp->len + 2); |
len | 415 | fs/isofs/rock.c | int len; |
len | 457 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(raw_inode, chr, len); |
len | 460 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 463 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 465 | fs/isofs/rock.c | chr += rr->len; |
len | 466 | fs/isofs/rock.c | len -= rr->len; |
len | 478 | fs/isofs/rock.c | slen = rr->len - 5; |
len | 489 | fs/isofs/rock.c | strncat(rpnt,slp->text, slp->len); |
len | 504 | fs/isofs/rock.c | slen -= slp->len + 2; |
len | 505 | 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 | 211 | fs/minix/namei.c | int minix_create(struct inode * dir,const char * name, int len, int mode, |
len | 230 | fs/minix/namei.c | error = minix_add_entry(dir,name,len, &bh ,&de); |
len | 246 | fs/minix/namei.c | int minix_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
len | 255 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 287 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
len | 303 | fs/minix/namei.c | int minix_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 316 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 354 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
len | 430 | fs/minix/namei.c | int minix_rmdir(struct inode * dir, const char * name, int len) |
len | 438 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 487 | fs/minix/namei.c | int minix_unlink(struct inode * dir, const char * name, int len) |
len | 497 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 542 | fs/minix/namei.c | int minix_symlink(struct inode * dir, const char * name, int len, const char * symname) |
len | 572 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 581 | fs/minix/namei.c | i = minix_add_entry(dir, name, len, &bh, &de); |
len | 597 | fs/minix/namei.c | int minix_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
len | 613 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 620 | 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, |
len | 49 | fs/msdos/namei.c | if (name[0] == '.' && (len == 1 || (len == 2 && name[1] == '.'))) { |
len | 52 | fs/msdos/namei.c | while (len--) *res++ = '.'; |
len | 58 | fs/msdos/namei.c | name++; len--; |
len | 62 | fs/msdos/namei.c | for (walk = res; len && walk-res < 8; walk++) { |
len | 64 | fs/msdos/namei.c | len--; |
len | 79 | fs/msdos/namei.c | if (conv == 's' && len && c != '.') { |
len | 81 | fs/msdos/namei.c | len--; |
len | 84 | fs/msdos/namei.c | while (c != '.' && len--) c = *name++; |
len | 87 | fs/msdos/namei.c | while (len > 0 && walk-res < MSDOS_NAME) { |
len | 89 | fs/msdos/namei.c | len--; |
len | 100 | fs/msdos/namei.c | if (conv == 's' && len) return -EINVAL; |
len | 110 | fs/msdos/namei.c | static int msdos_find(struct inode *dir,const char *name,int len, |
len | 120 | fs/msdos/namei.c | name,len, msdos_name,1,dotsOK); |
len | 124 | fs/msdos/namei.c | switch(len){ |
len | 137 | fs/msdos/namei.c | int msdos_lookup(struct inode *dir,const char *name,int len, |
len | 155 | fs/msdos/namei.c | if (len == 1 && name[0] == '.') { |
len | 159 | fs/msdos/namei.c | if (len == 2 && name[0] == '.' && name[1] == '.') { |
len | 167 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) { |
len | 241 | fs/msdos/namei.c | int msdos_create(struct inode *dir,const char *name,int len,int mode, |
len | 251 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
len | 301 | fs/msdos/namei.c | int msdos_mkdir(struct inode *dir,const char *name,int len,int mode) |
len | 310 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
len | 353 | fs/msdos/namei.c | if (msdos_rmdir(dir,name,len) < 0) |
len | 386 | fs/msdos/namei.c | int msdos_rmdir(struct inode *dir,const char *name,int len) |
len | 397 | fs/msdos/namei.c | if (name[0] == '.' && (len == 1 || (len == 2 && name[1] == '.'))) |
len | 399 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done; |
len | 428 | fs/msdos/namei.c | int len, |
len | 439 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) |
len | 467 | fs/msdos/namei.c | int msdos_unlink(struct inode *dir,const char *name,int len) |
len | 469 | fs/msdos/namei.c | return msdos_unlinkx (dir,name,len,1); |
len | 473 | fs/msdos/namei.c | int msdos_unlink_umsdos(struct inode *dir,const char *name,int len) |
len | 475 | fs/msdos/namei.c | return msdos_unlinkx (dir,name,len,0); |
len | 153 | fs/namei.c | int lookup(struct inode * dir,const char * name, int len, |
len | 164 | fs/namei.c | if (len==2 && name[0] == '.' && name[1] == '.') { |
len | 184 | fs/namei.c | if (!len) { |
len | 188 | fs/namei.c | return dir->i_op->lookup(dir,name,len,result); |
len | 219 | fs/namei.c | int len,error; |
len | 235 | fs/namei.c | for(len=0;(c = *(pathname++))&&(c != '/');len++) |
len | 240 | fs/namei.c | error = lookup(base,thisname,len,&inode); |
len | 254 | 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 | 327 | fs/nfs/dir.c | static int nfs_lookup(struct inode *dir, const char *__name, int len, |
len | 332 | fs/nfs/dir.c | char name[len > NFS_MAXNAMLEN? 1 : len+1]; |
len | 341 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 345 | fs/nfs/dir.c | memcpy(name,__name,len); |
len | 346 | fs/nfs/dir.c | name[len] = '\0'; |
len | 347 | fs/nfs/dir.c | if (len == 1 && name[0] == '.') { /* cheat for "." */ |
len | 368 | fs/nfs/dir.c | static int nfs_create(struct inode *dir, const char *name, int len, int mode, |
len | 382 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 403 | fs/nfs/dir.c | static int nfs_mknod(struct inode *dir, const char *name, int len, |
len | 416 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 435 | fs/nfs/dir.c | static int nfs_mkdir(struct inode *dir, const char *name, int len, int mode) |
len | 447 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 462 | fs/nfs/dir.c | static int nfs_rmdir(struct inode *dir, const char *name, int len) |
len | 471 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 482 | fs/nfs/dir.c | static int nfs_unlink(struct inode *dir, const char *name, int len) |
len | 491 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 502 | fs/nfs/dir.c | static int nfs_symlink(struct inode *dir, const char *name, int len, |
len | 513 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 531 | fs/nfs/dir.c | const char *name, int len) |
len | 547 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 68 | fs/nfs/file.c | int len; /* size of data */ |
len | 121 | fs/nfs/file.c | && (cache[i].file_pos + cache[i].len >= pos + count) |
len | 179 | fs/nfs/file.c | cache[tail].len = result; |
len | 97 | fs/nfs/proc.c | #define QUADLEN(len) (((len) + 3) >> 2) |
len | 113 | fs/nfs/proc.c | int len = strlen(string); |
len | 114 | fs/nfs/proc.c | int quadlen = QUADLEN(len); |
len | 117 | fs/nfs/proc.c | *p++ = htonl(len); |
len | 118 | fs/nfs/proc.c | memcpy(p, string, len); |
len | 124 | fs/nfs/proc.c | unsigned int len = ntohl(*p++); |
len | 125 | fs/nfs/proc.c | if (len > maxlen) |
len | 127 | fs/nfs/proc.c | memcpy(string, p, len); |
len | 128 | fs/nfs/proc.c | string[len] = '\0'; |
len | 129 | fs/nfs/proc.c | return p + QUADLEN(len); |
len | 132 | fs/nfs/proc.c | static inline int *xdr_decode_string2(int *p, char **string, unsigned int *len, |
len | 135 | fs/nfs/proc.c | *len = ntohl(*p++); |
len | 136 | fs/nfs/proc.c | if (*len > maxlen) |
len | 139 | fs/nfs/proc.c | return p + QUADLEN(*len); |
len | 143 | fs/nfs/proc.c | static inline int *xdr_encode_data(int *p, const char *data, int len) |
len | 145 | fs/nfs/proc.c | int quadlen = QUADLEN(len); |
len | 148 | fs/nfs/proc.c | *p++ = htonl(len); |
len | 149 | fs/nfs/proc.c | memcpy_fromfs(p, data, len); |
len | 156 | fs/nfs/proc.c | unsigned len = *lenp = ntohl(*p++); |
len | 157 | fs/nfs/proc.c | if (len > maxlen) |
len | 160 | fs/nfs/proc.c | memcpy_tofs(data, p, len); |
len | 162 | fs/nfs/proc.c | memcpy(data, p, len); |
len | 163 | fs/nfs/proc.c | return p + QUADLEN(len); |
len | 341 | fs/nfs/proc.c | int **p0, char **string, unsigned int *len, unsigned int maxlen) |
len | 357 | fs/nfs/proc.c | if (!(p = xdr_decode_string2(p, string, len, maxlen))) { |
len | 381 | fs/nfs/proc.c | int len; |
len | 400 | fs/nfs/proc.c | if (!(p = xdr_decode_data(p, data, &len, count, fs))) { |
len | 405 | fs/nfs/proc.c | status = len; |
len | 406 | fs/nfs/proc.c | PRINTK("NFS reply read %d\n", len); |
len | 80 | fs/nfs/rpcsock.c | rpc_sendmsg(struct rpc_sock *rsock, struct msghdr *msg, int len) |
len | 86 | fs/nfs/rpcsock.c | dprintk("RPC: sending %d bytes (buf %p)\n", len, msg->msg_iov[0].iov_base); |
len | 89 | fs/nfs/rpcsock.c | result = sock->ops->sendmsg(sock, msg, len, 0, 0); |
len | 128 | fs/nfs/rpcsock.c | rpc_recvmsg(struct rpc_sock *rsock, struct msghdr *msg, int len,int flags) |
len | 136 | fs/nfs/rpcsock.c | dprintk("RPC: receiving %d bytes max (buf %p)\n", len, msg->msg_iov[0].iov_base); |
len | 139 | fs/nfs/rpcsock.c | result = sock->ops->recvmsg(sock, msg, len, 1, flags, &alen); |
len | 248 | fs/nfs/rpcsock.c | iov.iov_len=rovr->len; |
len | 250 | fs/nfs/rpcsock.c | result = rpc_recvmsg(rsock, &msg, rovr->len, 0); |
len | 308 | fs/nfs/rpcsock.c | slot->len = rlen; |
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_user('\0', buffer + len); |
len | 112 | fs/nfs/symlink.c | error = len; |
len | 193 | fs/proc/array.c | int i, len; |
len | 198 | fs/proc/array.c | len = sprintf(buffer, |
len | 218 | fs/proc/array.c | len += sprintf(buffer + len, " %u", kstat.interrupts[i]); |
len | 219 | fs/proc/array.c | len += sprintf(buffer + len, |
len | 224 | fs/proc/array.c | return len; |
len | 695 | fs/proc/array.c | int len; |
len | 713 | fs/proc/array.c | len = sprintf(line, MAPS_LINE_FORMAT, |
len | 717 | fs/proc/array.c | if (column >= len) { |
len | 724 | fs/proc/array.c | i = len-column; |
len | 730 | fs/proc/array.c | if (column >= len) { |
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 | 178 | fs/proc/root.c | int len; |
len | 182 | fs/proc/root.c | len = 1 + sprintf(tmp, "%d", current->pid); |
len | 183 | fs/proc/root.c | if (buflen < len) |
len | 184 | fs/proc/root.c | len = buflen; |
len | 185 | fs/proc/root.c | memcpy_tofs(buffer, tmp, len); |
len | 186 | fs/proc/root.c | return len; |
len | 306 | fs/proc/root.c | int proc_match(int len,const char * name,struct proc_dir_entry * de) |
len | 311 | fs/proc/root.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 313 | fs/proc/root.c | if (de->namelen != len) |
len | 315 | fs/proc/root.c | return !memcmp(name, de->name, len); |
len | 318 | fs/proc/root.c | int proc_lookup(struct inode * dir,const char * name, int len, |
len | 338 | fs/proc/root.c | if (!len) |
len | 341 | fs/proc/root.c | if (len == 1) |
len | 343 | fs/proc/root.c | if (name[1] == '.' && len == 2) { |
len | 356 | fs/proc/root.c | if (proc_match(len, name, de)) |
len | 374 | fs/proc/root.c | static int proc_root_lookup(struct inode * dir,const char * name, int len, |
len | 381 | fs/proc/root.c | retval = proc_lookup(dir, name, len, result); |
len | 388 | fs/proc/root.c | while (len-- > 0) { |
len | 80 | fs/proc/scsi.c | int len, pos, begin; |
len | 83 | fs/proc/scsi.c | pos = len = sprintf(buffer, |
len | 86 | fs/proc/scsi.c | len = 0; |
len | 91 | fs/proc/scsi.c | len -= (offset - begin); |
len | 92 | fs/proc/scsi.c | if(len > length) |
len | 93 | fs/proc/scsi.c | len = length; |
len | 95 | fs/proc/scsi.c | return(len); |
len | 230 | fs/read_write.c | int len, nr; |
len | 233 | fs/read_write.c | len = vector->iov_len; |
len | 236 | fs/read_write.c | nr = fn(inode, file, base, len); |
len | 244 | fs/read_write.c | if (nr != len) |
len | 29 | fs/smbfs/dir.c | get_pname(struct inode *dir, const char *name, int len, |
len | 33 | fs/smbfs/dir.c | get_pname_static(struct inode *dir, const char *name, int len, |
len | 47 | fs/smbfs/dir.c | int len, struct inode **result); |
len | 50 | fs/smbfs/dir.c | smb_create(struct inode *dir, const char *name, int len, int mode, |
len | 54 | fs/smbfs/dir.c | smb_mkdir(struct inode *dir, const char *name, int len, int mode); |
len | 57 | fs/smbfs/dir.c | smb_rmdir(struct inode *dir, const char *name, int len); |
len | 60 | fs/smbfs/dir.c | smb_unlink(struct inode *dir, const char *name, int len); |
len | 259 | fs/smbfs/dir.c | int len; |
len | 263 | fs/smbfs/dir.c | len = strlen(entry->path); |
len | 264 | fs/smbfs/dir.c | if ((result = get_pname_static(inode, entry->path, len, |
len | 281 | fs/smbfs/dir.c | if (filldir(dirent, entry->path, len, |
len | 341 | fs/smbfs/dir.c | get_pname_static(struct inode *dir, const char *name, int len, |
len | 345 | fs/smbfs/dir.c | int parentlen = SMB_INOP(dir)->finfo.len; |
len | 358 | fs/smbfs/dir.c | if (len > SMB_MAXNAMELEN) { |
len | 363 | fs/smbfs/dir.c | if (len == 0 || (len == 1 && name[0] == '.')) { |
len | 371 | fs/smbfs/dir.c | if (len == 2 && name[0] == '.' && name[1] == '.') { |
len | 393 | fs/smbfs/dir.c | len = pos - parentname; |
len | 395 | fs/smbfs/dir.c | memcpy(path, parentname, len); |
len | 396 | fs/smbfs/dir.c | path[len] = '\0'; |
len | 400 | fs/smbfs/dir.c | if (len + parentlen + 2 > SMB_MAXPATHLEN) |
len | 405 | fs/smbfs/dir.c | memcpy(path + parentlen + 1, name, len); |
len | 406 | fs/smbfs/dir.c | path[parentlen + 1 + len] = '\0'; |
len | 407 | fs/smbfs/dir.c | len = parentlen + len + 1; |
len | 422 | fs/smbfs/dir.c | *res_len = len; |
len | 430 | fs/smbfs/dir.c | get_pname(struct inode *dir, const char *name, int len, |
len | 437 | fs/smbfs/dir.c | if ((res = get_pname_static(dir,name,len,result,&result_len) != 0)) { |
len | 466 | fs/smbfs/dir.c | int error, len; |
len | 480 | fs/smbfs/dir.c | len = strlen(path); |
len | 484 | fs/smbfs/dir.c | path, len, &newent); |
len | 509 | fs/smbfs/dir.c | new_inode_info->finfo.len = len; |
len | 547 | fs/smbfs/dir.c | smb_kfree_s(i->finfo.path, i->finfo.len+1); |
len | 563 | fs/smbfs/dir.c | root->finfo.len = strlen(root->finfo.path); |
len | 579 | fs/smbfs/dir.c | if (root->finfo.len == 0) { |
len | 585 | fs/smbfs/dir.c | root->finfo.path, root->finfo.len, |
len | 656 | fs/smbfs/dir.c | smb_lookup(struct inode *dir, const char *__name, int len, |
len | 676 | fs/smbfs/dir.c | if (len == 0 || (len == 1 && __name[0] == '.')) { |
len | 682 | fs/smbfs/dir.c | if ((error = get_pname(dir, __name, len, &name, &len)) < 0) { |
len | 740 | fs/smbfs/dir.c | error = smb_proc_getattr(SMB_SERVER(dir), name, len, &finfo); |
len | 760 | fs/smbfs/dir.c | smb_create(struct inode *dir, const char *name, int len, int mode, |
len | 776 | fs/smbfs/dir.c | if ((error = get_pname(dir, name, len, &path, &len)) < 0) { |
len | 787 | fs/smbfs/dir.c | error = smb_proc_create(SMB_SERVER(dir), path, len, &entry); |
len | 806 | fs/smbfs/dir.c | smb_mkdir(struct inode *dir, const char *name, int len, int mode) |
len | 818 | fs/smbfs/dir.c | if ((error = get_pname_static(dir, name, len, path, &len)) < 0) { |
len | 823 | fs/smbfs/dir.c | if ((error = smb_proc_mkdir(SMB_SERVER(dir), path, len)) == 0) { |
len | 832 | fs/smbfs/dir.c | smb_rmdir(struct inode *dir, const char *name, int len) |
len | 842 | fs/smbfs/dir.c | if ((error = get_pname_static(dir, name, len, path, &len)) < 0) { |
len | 849 | fs/smbfs/dir.c | if ((error = smb_proc_rmdir(SMB_SERVER(dir), path, len)) == 0) |
len | 857 | fs/smbfs/dir.c | smb_unlink(struct inode *dir, const char *name, int len) |
len | 867 | fs/smbfs/dir.c | if ((error = get_pname_static(dir, name, len, path, &len)) < 0) { |
len | 874 | fs/smbfs/dir.c | if ((error = smb_proc_unlink(SMB_SERVER(dir), path, len)) == 0) |
len | 44 | fs/smbfs/file.c | dirent->path, dirent->len, |
len | 66 | fs/smbfs/proc.c | smb_encode_smb_length(byte *p, dword len) |
len | 69 | fs/smbfs/proc.c | p[2] = (len & 0xFF00) >> 8; |
len | 70 | fs/smbfs/proc.c | p[3] = (len & 0xFF); |
len | 71 | fs/smbfs/proc.c | if (len > 0xFFFF) |
len | 77 | fs/smbfs/proc.c | smb_encode_dialect(byte *p, const byte *name, int len) |
len | 81 | fs/smbfs/proc.c | return p + len + 1; |
len | 85 | fs/smbfs/proc.c | smb_encode_ascii(byte *p, const byte *name, int len) |
len | 89 | fs/smbfs/proc.c | return p + len + 1; |
len | 93 | fs/smbfs/proc.c | smb_encode_vblock(byte *p, const byte *data, word len, int fs) |
len | 96 | fs/smbfs/proc.c | p = smb_encode_word(p, len); |
len | 98 | fs/smbfs/proc.c | memcpy_fromfs(p, data, len); |
len | 100 | fs/smbfs/proc.c | memcpy(p, data, len); |
len | 101 | fs/smbfs/proc.c | return p + len; |
len | 107 | fs/smbfs/proc.c | word len; |
len | 114 | fs/smbfs/proc.c | len = WVAL(p, 1); |
len | 118 | fs/smbfs/proc.c | memcpy_tofs(data, p, len); |
len | 120 | fs/smbfs/proc.c | memcpy(data, p, len); |
len | 122 | fs/smbfs/proc.c | *data_len = len; |
len | 124 | fs/smbfs/proc.c | return p + len; |
len | 130 | fs/smbfs/proc.c | int len, pad = 0; |
len | 132 | fs/smbfs/proc.c | len = strlen(name); |
len | 134 | fs/smbfs/proc.c | if (len < 16) |
len | 135 | fs/smbfs/proc.c | pad = 16 - len; |
len | 137 | fs/smbfs/proc.c | *p ++ = 2 * (len + pad); |
len | 346 | fs/smbfs/proc.c | int i, j, len; |
len | 353 | fs/smbfs/proc.c | len = smb_len(packet), smb_valid_packet(packet)); |
len | 363 | fs/smbfs/proc.c | if (len > 100) |
len | 364 | fs/smbfs/proc.c | len = 100; |
len | 366 | fs/smbfs/proc.c | for (i = 0; i < len; i += 10) { |
len | 369 | fs/smbfs/proc.c | if (j < len) |
len | 375 | fs/smbfs/proc.c | if (j < len) |
len | 529 | fs/smbfs/proc.c | smb_proc_open(struct smb_server *server, const char *pathname, int len, |
len | 542 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBopen, 2, 2 + len); |
len | 545 | fs/smbfs/proc.c | smb_encode_ascii(p, pathname, len); |
len | 558 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBopen, 2, 2 + len); |
len | 561 | fs/smbfs/proc.c | smb_encode_ascii(p, pathname, len); |
len | 755 | fs/smbfs/proc.c | smb_proc_do_create(struct smb_server *server, const char *path, int len, |
len | 764 | fs/smbfs/proc.c | p = smb_setup_header(server, command, 3, len + 2); |
len | 767 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
len | 787 | fs/smbfs/proc.c | smb_proc_create(struct smb_server *server, const char *path, int len, |
len | 790 | fs/smbfs/proc.c | return smb_proc_do_create(server, path, len, entry, SMBcreate); |
len | 794 | fs/smbfs/proc.c | smb_proc_mknew(struct smb_server *server, const char *path, int len, |
len | 797 | fs/smbfs/proc.c | return smb_proc_do_create(server, path, len, entry, SMBmknew); |
len | 827 | fs/smbfs/proc.c | smb_proc_mkdir(struct smb_server *server, const char *path, const int len) |
len | 835 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBmkdir, 0, 2 + len); |
len | 836 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
len | 848 | fs/smbfs/proc.c | smb_proc_rmdir(struct smb_server *server, const char *path, const int len) |
len | 856 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBrmdir, 0, 2 + len); |
len | 857 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
len | 869 | fs/smbfs/proc.c | smb_proc_unlink(struct smb_server *server, const char *path, const int len) |
len | 878 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBunlink, 1, 2 + len); |
len | 880 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
len | 1076 | fs/smbfs/proc.c | finfo->len = strlen(finfo->path); |
len | 1091 | fs/smbfs/proc.c | finfo->len = strlen(finfo->path); |
len | 1127 | fs/smbfs/proc.c | finfo->len = namelen; |
len | 1378 | fs/smbfs/proc.c | smb_proc_getattr_core(struct smb_server *server, const char *path, int len, |
len | 1390 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBgetatr, 0, 2 + len); |
len | 1391 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
len | 1437 | fs/smbfs/proc.c | smb_proc_getattr(struct smb_server *server, const char *path, int len, |
len | 1445 | fs/smbfs/proc.c | if ((result=smb_proc_open(server,path,len, |
len | 1449 | fs/smbfs/proc.c | return smb_proc_getattr_core(server,path,len,entry); |
len | 1464 | fs/smbfs/proc.c | return smb_proc_getattr_core(server, path, len, entry); |
len | 1473 | fs/smbfs/proc.c | const char *path, int len, |
len | 1483 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBsetatr, 8, 4 + len); |
len | 1486 | fs/smbfs/proc.c | p = smb_encode_ascii(p, path, len); |
len | 1540 | fs/smbfs/proc.c | return smb_proc_setattr_core(server, finfo->path, finfo->len, |
len | 47 | fs/smbfs/sock.c | static int _send(struct socket *sock, const void *buff, int len, int nonblock, unsigned flags) { |
len | 52 | fs/smbfs/sock.c | iov.iov_len = len; |
len | 60 | fs/smbfs/sock.c | return sock->ops->sendmsg(sock, &msg, len, nonblock, flags); |
len | 64 | fs/smbfs/sock.c | smb_data_callback(struct sock *sk,int len) |
len | 216 | fs/smbfs/sock.c | int len, result; |
len | 257 | fs/smbfs/sock.c | len = smb_len(peek_buf); |
len | 258 | fs/smbfs/sock.c | if (len > max_raw_length) { |
len | 260 | fs/smbfs/sock.c | len, max_raw_length); |
len | 271 | fs/smbfs/sock.c | while (already_read < len) { |
len | 275 | fs/smbfs/sock.c | len - already_read, 0, 0, |
len | 496 | fs/smbfs/sock.c | int len, result, result2; |
len | 515 | fs/smbfs/sock.c | len = smb_len(buffer) + 4; |
len | 517 | fs/smbfs/sock.c | DDPRINTK("smb_request: len = %d cmd = 0x%X\n", len, buffer[8]); |
len | 524 | fs/smbfs/sock.c | result = _send(sock, (void *)buffer, len, 0, 0); |
len | 564 | fs/smbfs/sock.c | int len, result, result2; |
len | 583 | fs/smbfs/sock.c | len = smb_len(buffer) + 4; |
len | 590 | fs/smbfs/sock.c | DDPRINTK("smb_request: len = %d cmd = 0x%X\n", len, buffer[8]); |
len | 592 | fs/smbfs/sock.c | result = _send(sock, (void *)buffer, len, 0, 0); |
len | 628 | fs/smbfs/sock.c | int len, result, result2; |
len | 649 | fs/smbfs/sock.c | len = smb_len(buffer) + 4; |
len | 657 | fs/smbfs/sock.c | len, buffer[8]); |
len | 663 | fs/smbfs/sock.c | result = _send(sock, (void *)buffer, len, 0, 0); |
len | 100 | fs/super.c | int err, len; |
len | 109 | fs/super.c | len = strlen(tmp->name) + 1; |
len | 110 | fs/super.c | err = verify_area(VERIFY_WRITE, buf, len); |
len | 113 | fs/super.c | memcpy_tofs(buf, tmp->name, len); |
len | 158 | fs/super.c | int len = 0; |
len | 162 | fs/super.c | while (tmp && len < PAGE_SIZE - 80) { |
len | 163 | fs/super.c | len += sprintf(buf+len, "%s\t%s\n", |
len | 168 | 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 | 204 | fs/sysv/namei.c | int sysv_create(struct inode * dir,const char * name, int len, int mode, |
len | 223 | fs/sysv/namei.c | error = sysv_add_entry(dir,name,len, &bh ,&de); |
len | 239 | fs/sysv/namei.c | int sysv_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
len | 248 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 280 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
len | 296 | fs/sysv/namei.c | int sysv_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 307 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 345 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
len | 422 | fs/sysv/namei.c | int sysv_rmdir(struct inode * dir, const char * name, int len) |
len | 430 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 478 | fs/sysv/namei.c | int sysv_unlink(struct inode * dir, const char * name, int len) |
len | 488 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 532 | fs/sysv/namei.c | int sysv_symlink(struct inode * dir, const char * name, int len, const char * symname) |
len | 567 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 576 | fs/sysv/namei.c | i = sysv_add_entry(dir, name, len, &bh, &de); |
len | 592 | fs/sysv/namei.c | int sysv_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
len | 608 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 615 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
len | 197 | fs/umsdos/dir.c | ,info.fake.len,&inode); |
len | 602 | fs/umsdos/dir.c | int len) |
len | 612 | fs/umsdos/dir.c | && len == 3 |
len | 622 | fs/umsdos/dir.c | int len, |
len | 629 | fs/umsdos/dir.c | if (len == 1 && name[0] == '.'){ |
len | 633 | fs/umsdos/dir.c | }else if (len == 2 && name[0] == '.' && name[1] == '.'){ |
len | 665 | fs/umsdos/dir.c | }else if (umsdos_is_pseudodos(dir,name,len)){ |
len | 675 | fs/umsdos/dir.c | ret = umsdos_parse (name,len,&info); |
len | 678 | fs/umsdos/dir.c | ,info.fake.len)); |
len | 690 | fs/umsdos/dir.c | ret = umsdos_real_lookup (dir,info.fake.fname,info.fake.len,result); |
len | 731 | fs/umsdos/dir.c | int len, |
len | 734 | fs/umsdos/dir.c | return umsdos_lookup_x(dir,name,len,result,0); |
len | 763 | fs/umsdos/dir.c | int len; |
len | 765 | fs/umsdos/dir.c | len = (int)(pt - start); |
len | 769 | fs/umsdos/dir.c | ret = umsdos_rlookup_x(dir,start,len,result,1); |
len | 771 | fs/umsdos/dir.c | ret = umsdos_lookup_x(dir,start,len,result,1); |
len | 71 | fs/umsdos/inode.c | int len, |
len | 76 | fs/umsdos/inode.c | ret = msdos_lookup (dir,name,len,result); |
len | 156 | fs/umsdos/ioctl.c | ,info.fake.fname,info.fake.len+1); |
len | 74 | fs/umsdos/mangle.c | char *pt = info->fake.fname + info->fake.len; |
len | 99 | fs/umsdos/mangle.c | info->fake.len += 4; |
len | 108 | fs/umsdos/mangle.c | int umsdos_evalrecsize (int len) |
len | 111 | fs/umsdos/mangle.c | int nbrec = 1+((len-1+(dirent.name-(char*)&dirent)) |
len | 120 | fs/umsdos/mangle.c | int umsdos_evalrecsize_old (int len) |
len | 123 | fs/umsdos/mangle.c | int size = len + (dirent.name-(char*)&dirent); |
len | 136 | fs/umsdos/mangle.c | int len, |
len | 145 | fs/umsdos/mangle.c | if (len > UMSDOS_MAXNAME) len = UMSDOS_MAXNAME; |
len | 153 | fs/umsdos/mangle.c | int msdos_len = len; |
len | 192 | fs/umsdos/mangle.c | if (len<=(8+1+3)){ |
len | 194 | fs/umsdos/mangle.c | const char *endpt = fname + len; |
len | 255 | fs/umsdos/mangle.c | || (firstpt == NULL && len > 8) |
len | 256 | fs/umsdos/mangle.c | || (len == UMSDOS_EMD_NAMELEN |
len | 302 | fs/umsdos/mangle.c | strncpy (info->fake.fname,fname,len); |
len | 304 | fs/umsdos/mangle.c | base_len = firstpt != NULL ? (int)(firstpt - fname) : len; |
len | 373 | fs/umsdos/mangle.c | info->fake.len = msdos_len; |
len | 375 | fs/umsdos/mangle.c | memcpy (info->entry.name,fname,len); |
len | 376 | fs/umsdos/mangle.c | info->entry.name_len = len; |
len | 382 | 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 | 348 | fs/umsdos/namei.c | PRINTK (("ret %d %d ",ret,new_info.fake.len)); |
len | 354 | fs/umsdos/namei.c | ,old_info.fake.fname,old_info.fake.len |
len | 356 | fs/umsdos/namei.c | ,new_info.fake.fname,new_info.fake.len); |
len | 423 | fs/umsdos/namei.c | int len, |
len | 442 | fs/umsdos/namei.c | ret = umsdos_create_any (dir,name,len,mode,0,flags,&inode); |
len | 445 | fs/umsdos/namei.c | int len = strlen(symname); |
len | 449 | fs/umsdos/namei.c | ret = umsdos_file_write_kmem (inode,&filp,symname,len); |
len | 452 | fs/umsdos/namei.c | if (ret != len){ |
len | 461 | fs/umsdos/namei.c | UMSDOS_unlink (dir,name,len); |
len | 476 | fs/umsdos/namei.c | int len, |
len | 479 | fs/umsdos/namei.c | return umsdos_symlink_x (dir,name,len,symname,S_IFLNK|0777,0); |
len | 488 | fs/umsdos/namei.c | int len) |
len | 567 | fs/umsdos/namei.c | }else if ((ret = umsdos_nevercreat(dir,name,len,-EPERM))==0){ |
len | 617 | fs/umsdos/namei.c | ret = umsdos_symlink_x (dir,name,len |
len | 634 | fs/umsdos/namei.c | ret = umsdos_symlink_x (dir,name,len,path |
len | 667 | fs/umsdos/namei.c | int len, /* Length of the name */ |
len | 672 | fs/umsdos/namei.c | return umsdos_create_any (dir,name,len,mode,0,0,result); |
len | 680 | fs/umsdos/namei.c | int len, |
len | 683 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EEXIST); |
len | 686 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
len | 703 | fs/umsdos/namei.c | ret = msdos_mkdir (dir,info.fake.fname,info.fake.len,mode); |
len | 719 | fs/umsdos/namei.c | ,info.fake.len,&subdir); |
len | 746 | fs/umsdos/namei.c | int len, |
len | 765 | fs/umsdos/namei.c | int ret = umsdos_create_any (dir,name,len,mode,rdev,0,&inode); |
len | 776 | fs/umsdos/namei.c | int len) |
len | 865 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EPERM); |
len | 869 | fs/umsdos/namei.c | ret = UMSDOS_lookup (dir,name,len,&sdir); |
len | 895 | fs/umsdos/namei.c | umsdos_parse (name,len,&info); |
len | 900 | fs/umsdos/namei.c | ,info.fake.len); |
len | 930 | fs/umsdos/namei.c | int len) |
len | 932 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EPERM); |
len | 935 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
len | 960 | fs/umsdos/namei.c | ret = UMSDOS_lookup (dir,name,len,&inode); |
len | 989 | fs/umsdos/namei.c | ,info.fake.len); |
len | 86 | fs/umsdos/rdir.c | int len, |
len | 93 | fs/umsdos/rdir.c | && len == 2 |
len | 106 | fs/umsdos/rdir.c | ret = umsdos_real_lookup (dir,name,len,result); |
len | 130 | fs/umsdos/rdir.c | int len, |
len | 133 | fs/umsdos/rdir.c | return umsdos_rlookup_x(dir,name,len,result,0); |
len | 139 | fs/umsdos/rdir.c | int len) |
len | 156 | fs/umsdos/rdir.c | if (umsdos_is_pseudodos(dir,name,len)){ |
len | 169 | fs/umsdos/rdir.c | ret = msdos_rmdir (dir,name,len); |
len | 173 | fs/umsdos/rdir.c | ret = UMSDOS_rlookup (dir,name,len,&sdir); |
len | 192 | fs/umsdos/rdir.c | ret = msdos_rmdir (dir,name,len); |
len | 32 | fs/xiafs/namei.c | static int xiafs_match(int len, const char * name, struct xiafs_direct * dep) |
len | 36 | fs/xiafs/namei.c | if (!dep || !dep->d_ino || len > _XIAFS_NAME_LEN) |
len | 39 | fs/xiafs/namei.c | if (!len && (dep->d_name[0]=='.') && (dep->d_name[1]=='\0')) |
len | 41 | fs/xiafs/namei.c | if (len != dep->d_name_len) |
len | 43 | fs/xiafs/namei.c | for (i=0; i < len; i++) |
len | 116 | fs/xiafs/namei.c | int xiafs_lookup(struct inode * dir, const char * name, int len, |
len | 130 | fs/xiafs/namei.c | if (!(bh = xiafs_find_entry(dir, name, len, &dep, NULL))) { |
len | 245 | fs/xiafs/namei.c | int xiafs_create(struct inode * dir, const char * name, int len, int mode, |
len | 263 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 279 | fs/xiafs/namei.c | int xiafs_mknod(struct inode *dir, const char *name, int len, int mode, int rdev) |
len | 287 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len,&de, NULL); |
len | 320 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 336 | fs/xiafs/namei.c | int xiafs_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 342 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len,&de, NULL); |
len | 386 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 486 | fs/xiafs/namei.c | int xiafs_rmdir(struct inode * dir, const char * name, int len) |
len | 494 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, &de_pre); |
len | 538 | fs/xiafs/namei.c | int xiafs_unlink(struct inode * dir, const char * name, int len) |
len | 548 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, &de_pre); |
len | 586 | fs/xiafs/namei.c | int len, const char * symname) |
len | 594 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len, &de, NULL); |
len | 621 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 638 | fs/xiafs/namei.c | const char * name, int len) |
len | 653 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, NULL); |
len | 660 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 17 | include/asm-alpha/checksum.h | unsigned short len, |
len | 33 | include/asm-alpha/checksum.h | extern unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum); |
len | 42 | include/asm-alpha/checksum.h | unsigned int csum_partial_copy( const char *src, char *dst, int len, int sum); |
len | 56 | include/asm-alpha/checksum.h | extern unsigned short ip_compute_csum(unsigned char * buff, int len); |
len | 163 | include/asm-alpha/io.h | #define memcpy_fromio(to,from,len) _memcpy_fromio((to),(unsigned long)(from),(len)) |
len | 164 | include/asm-alpha/io.h | #define memcpy_toio(to,from,len) _memcpy_toio((unsigned long)(to),(from),(len)) |
len | 165 | include/asm-alpha/io.h | #define memset_io(addr,c,len) _memset_io((unsigned long)(addr),(c),(len)) |
len | 183 | include/asm-alpha/io.h | #define eth_io_copy_and_sum(skb,src,len,unused) memcpy_fromio((skb)->data,(src),(len)) |
len | 7 | include/asm-alpha/ipsum.h | extern inline unsigned short udp_check(struct udphdr *uh, int len, u32 saddr, u32 daddr) |
len | 16 | include/asm-alpha/ipsum.h | extern inline unsigned short tcp_check(struct tcphdr *th, int len, u32 saddr, u32 daddr) |
len | 28 | include/asm-alpha/ipsum.h | extern inline unsigned short ip_compute_csum(unsigned char * buff, int len) |
len | 16 | include/asm-i386/checksum.h | unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum); |
len | 26 | include/asm-i386/checksum.h | unsigned int csum_partial_copy( const char *src, char *dst, int len, int sum); |
len | 36 | include/asm-i386/checksum.h | unsigned int csum_partial_copy_fromuser(const char *src, char *dst, int len, int sum); |
len | 83 | include/asm-i386/checksum.h | unsigned short len, |
len | 98 | include/asm-i386/checksum.h | : "0" (daddr), "1"(saddr), "r"((ntohs(len)<<16)+proto*256), "r"(sum)); |
len | 123 | include/asm-i386/checksum.h | static inline unsigned short ip_compute_csum(unsigned char * buff, int len) { |
len | 135 | include/asm-i386/checksum.h | : "0" (csum_partial(buff, len, 0))); |
len | 11 | include/asm-sparc/ipsum.h | extern inline unsigned short udp_check(struct udphdr *uh, int len, u32 saddr, u32 daddr) |
len | 20 | include/asm-sparc/ipsum.h | extern inline unsigned short tcp_check(struct tcphdr *th, int len, u32 saddr, u32 daddr) |
len | 32 | include/asm-sparc/ipsum.h | extern inline unsigned short ip_compute_csum(unsigned char * buff, int len) |
len | 182 | include/asm-sparc/openprom.h | void (*pv_putstr)(char *str, int len); |
len | 197 | include/asm-sparc/openprom.h | void (*v0_eval)(int len, char *str); |
len | 299 | include/asm-sparc/openprom.h | int (*no_setprop)(int node, char* name, char* val, int len); |
len | 76 | include/asm-sparc/string.h | extern __inline__ char *strncat(char *dest, const char *src, size_t len) |
len | 80 | include/asm-sparc/string.h | if (len) { |
len | 84 | include/asm-sparc/string.h | if (--len == 0) |
len | 71 | include/linux/cdrom.h | unsigned short 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 | 84 | include/linux/minix_fs.h | extern int minix_lookup(struct inode * dir,const char * name, int len, |
len | 86 | include/linux/minix_fs.h | extern int minix_create(struct inode * dir,const char * name, int len, int mode, |
len | 88 | include/linux/minix_fs.h | extern int minix_mkdir(struct inode * dir, const char * name, int len, int mode); |
len | 89 | include/linux/minix_fs.h | extern int minix_rmdir(struct inode * dir, const char * name, int len); |
len | 90 | include/linux/minix_fs.h | extern int minix_unlink(struct inode * dir, const char * name, int len); |
len | 91 | include/linux/minix_fs.h | extern int minix_symlink(struct inode * inode, const char * name, int len, |
len | 93 | include/linux/minix_fs.h | extern int minix_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
len | 94 | include/linux/minix_fs.h | extern int minix_mknod(struct inode * dir, const char * name, int len, int mode, int rdev); |
len | 216 | include/linux/mm.h | extern unsigned long do_mmap(struct file * file, unsigned long addr, unsigned long len, |
len | 150 | include/linux/msdos_fs.h | extern int msdos_lookup(struct inode *dir,const char *name,int len, |
len | 152 | include/linux/msdos_fs.h | extern int msdos_create(struct inode *dir,const char *name,int len,int mode, |
len | 154 | include/linux/msdos_fs.h | extern int msdos_mkdir(struct inode *dir,const char *name,int len,int mode); |
len | 155 | include/linux/msdos_fs.h | extern int msdos_rmdir(struct inode *dir,const char *name,int len); |
len | 156 | include/linux/msdos_fs.h | extern int msdos_unlink(struct inode *dir,const char *name,int len); |
len | 157 | include/linux/msdos_fs.h | extern int msdos_unlink_umsdos(struct inode *dir,const char *name,int len); |
len | 109 | include/linux/net.h | int (*listen) (struct socket *sock, int len); |
len | 158 | include/linux/netdevice.h | unsigned len); |
len | 215 | 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 | 32 | include/linux/rpcsock.h | int len; |
len | 66 | include/linux/skbuff.h | unsigned long len; /* Length of actual data */ |
len | 136 | include/linux/skbuff.h | extern unsigned char * skb_put(struct sk_buff *skb, int len); |
len | 137 | include/linux/skbuff.h | extern unsigned char * skb_push(struct sk_buff *skb, int len); |
len | 138 | include/linux/skbuff.h | extern unsigned char * skb_pull(struct sk_buff *skb, int len); |
len | 141 | include/linux/skbuff.h | extern void skb_reserve(struct sk_buff *skb, int len); |
len | 142 | include/linux/skbuff.h | extern void skb_trim(struct sk_buff *skb, int len); |
len | 310 | include/linux/skbuff.h | extern __inline__ unsigned char *skb_put(struct sk_buff *skb, int len) |
len | 313 | include/linux/skbuff.h | skb->tail+=len; |
len | 314 | include/linux/skbuff.h | skb->len+=len; |
len | 316 | include/linux/skbuff.h | panic("skput:over: %p:%d", __builtin_return_address(0),len); |
len | 320 | include/linux/skbuff.h | extern __inline__ unsigned char *skb_push(struct sk_buff *skb, int len) |
len | 322 | include/linux/skbuff.h | skb->data-=len; |
len | 323 | include/linux/skbuff.h | skb->len+=len; |
len | 325 | include/linux/skbuff.h | panic("skpush:under: %p:%d", __builtin_return_address(0),len); |
len | 329 | include/linux/skbuff.h | extern __inline__ unsigned char * skb_pull(struct sk_buff *skb, int len) |
len | 331 | include/linux/skbuff.h | if(len > skb->len) |
len | 333 | include/linux/skbuff.h | skb->data+=len; |
len | 334 | include/linux/skbuff.h | skb->len-=len; |
len | 348 | include/linux/skbuff.h | extern __inline__ void skb_reserve(struct sk_buff *skb, int len) |
len | 350 | include/linux/skbuff.h | skb->data+=len; |
len | 351 | include/linux/skbuff.h | skb->tail+=len; |
len | 354 | include/linux/skbuff.h | extern __inline__ void skb_trim(struct sk_buff *skb, int len) |
len | 356 | include/linux/skbuff.h | if(skb->len>len) |
len | 358 | include/linux/skbuff.h | skb->len=len; |
len | 359 | include/linux/skbuff.h | skb->tail=skb->data+len; |
len | 101 | include/linux/smb.h | int len; /* Namelength. */ |
len | 127 | include/linux/smb_fs.h | byte *smb_encode_smb_length(byte *p, dword len); |
len | 129 | include/linux/smb_fs.h | int len, struct smb_dirent *entry); |
len | 140 | include/linux/smb_fs.h | int len, struct smb_dirent *entry); |
len | 141 | include/linux/smb_fs.h | int smb_proc_mknew(struct smb_server *server, const char *path, int len, |
len | 145 | include/linux/smb_fs.h | int smb_proc_mkdir(struct smb_server *server, const char *path, const int len); |
len | 146 | include/linux/smb_fs.h | int smb_proc_rmdir(struct smb_server *server, const char *path, const int len); |
len | 148 | include/linux/smb_fs.h | const int len); |
len | 153 | include/linux/smb_fs.h | int len, struct smb_dirent *entry); |
len | 157 | include/linux/smb_fs.h | int smb_proc_chkpath(struct smb_server *server, char *path, int len, |
len | 120 | include/linux/socket.h | extern void memcpy_fromiovec(unsigned char *kdata, struct iovec *iov, int len); |
len | 122 | include/linux/socket.h | extern void memcpy_toiovec(struct iovec *v, unsigned char *kdata, int len); |
len | 183 | include/linux/soundcard.h | long len; /* Size of the wave data in bytes */ |
len | 242 | include/linux/soundcard.h | long len; /* Size of the sysex data in bytes */ |
len | 669 | include/linux/soundcard.h | int len; |
len | 680 | include/linux/soundcard.h | int len; /* Length of data in bytes */ |
len | 684 | include/linux/soundcard.h | int len; |
len | 936 | include/linux/soundcard.h | #define SEQ_DEFINEBUF(len) unsigned char _seqbuf[len]; int _seqbuflen = len;int _seqbufptr = 0 |
len | 940 | include/linux/soundcard.h | #define _SEQ_NEEDBUF(len) if ((_seqbufptr+(len)) > _seqbuflen) seqbuf_dump() |
len | 941 | include/linux/soundcard.h | #define _SEQ_ADVBUF(len) _seqbufptr += len |
len | 958 | include/linux/soundcard.h | #define _SEQ_NEEDBUF(len) /* empty */ |
len | 1035 | include/linux/soundcard.h | #define SEQ_SYSEX(dev, buf, len) \ |
len | 1036 | include/linux/soundcard.h | {int i, l=(len); if (l>6)l=6;\ |
len | 1124 | include/linux/soundcard.h | #define SEQ_WRPATCH(patchx, len) {if (_seqbufptr) seqbuf_dump();\ |
len | 1125 | include/linux/soundcard.h | if (write(seqfd, (char*)(patchx), len)==-1) \ |
len | 1127 | 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 | 33 | include/linux/trdevice.h | void *saddr, unsigned len); |
len | 24 | include/linux/udp.h | unsigned short len; |
len | 22 | include/linux/umsdos_fs.h | int len; |
len | 67 | include/linux/xia_fs.h | extern int xiafs_lookup(struct inode * dir,const char * name, int len, |
len | 69 | include/linux/xia_fs.h | extern int xiafs_create(struct inode * dir,const char * name, int len, int mode, |
len | 71 | include/linux/xia_fs.h | extern int xiafs_mkdir(struct inode * dir, const char * name, int len, int mode); |
len | 72 | include/linux/xia_fs.h | extern int xiafs_rmdir(struct inode * dir, const char * name, int len); |
len | 73 | include/linux/xia_fs.h | extern int xiafs_unlink(struct inode * dir, const char * name, int len); |
len | 74 | include/linux/xia_fs.h | extern int xiafs_symlink(struct inode * inode, const char * name, int len, |
len | 77 | include/linux/xia_fs.h | const char * name, int len); |
len | 78 | include/linux/xia_fs.h | extern int xiafs_mknod(struct inode * dir, const char * name, int len, |
len | 30 | include/net/icmp.h | unsigned short len, __u32 saddr, |
len | 55 | include/net/ip.h | int len; /* length of this fragment */ |
len | 70 | include/net/ip.h | int len; /* total length of original datagram */ |
len | 87 | include/net/ip.h | extern int ip_send(struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr); |
len | 92 | include/net/ip.h | struct options *opt, int len, |
len | 2 | include/net/ipip.h | __u32 daddr, unsigned short len, __u32 saddr, |
len | 34 | include/net/protocol.h | unsigned short len, __u32 saddr, |
len | 27 | include/net/raw.h | int len, int noblock, unsigned flags, |
len | 30 | include/net/raw.h | int len, int noblock, unsigned flags); |
len | 288 | include/net/sock.h | struct options *opt, int len, |
len | 301 | include/net/sock.h | unsigned short len, __u32 saddr, |
len | 313 | include/net/sock.h | int (*sendmsg)(struct sock *sk, struct msghdr *msg, int len, |
len | 315 | include/net/sock.h | int (*recvmsg)(struct sock *sk, struct msghdr *msg, int len, |
len | 410 | include/net/sock.h | sk->data_ready(sk,skb->len); |
len | 131 | include/net/tcp.h | unsigned short len, __u32 saddr, int redo, |
len | 138 | include/net/tcp.h | unsigned long daddr, int len, struct sock *sk); |
len | 37 | include/net/udp.h | __u32 daddr, int len, struct sock *sk); |
len | 39 | include/net/udp.h | int len, int noblock, unsigned flags, |
len | 42 | include/net/udp.h | int len, int noblock, unsigned flags); |
len | 47 | include/net/udp.h | unsigned short len, __u32 saddr, int redo, |
len | 378 | init/main.c | int len = strlen(devnames[n]); |
len | 379 | init/main.c | if (!strncmp(line,devnames[n],len)) { |
len | 381 | init/main.c | simple_strtoul(line+len,NULL,0)); |
len | 59 | kernel/dma.c | int i, len = 0; |
len | 63 | kernel/dma.c | len += sprintf(buf+len, "%2d: %s\n", |
len | 68 | kernel/dma.c | return len; |
len | 43 | kernel/ksyms.c | extern void bcopy (const char *src, char *dst, int len); |
len | 586 | kernel/module.c | int len = 0; /* code from net/ipv4/proc.c */ |
len | 598 | kernel/module.c | p = buf + len; |
len | 600 | kernel/module.c | len += sprintf(p, "%08lx %s\t[%s]\n", |
len | 604 | kernel/module.c | len += sprintf(p, "%08lx %s\n", |
len | 608 | kernel/module.c | pos = begin + len; |
len | 610 | kernel/module.c | len = 0; |
len | 613 | kernel/module.c | pos = begin + len; |
len | 621 | kernel/module.c | len -= (offset - begin); |
len | 622 | kernel/module.c | if (len > length) |
len | 623 | kernel/module.c | len = length; |
len | 624 | kernel/module.c | return len; |
len | 59 | kernel/printk.c | asmlinkage int sys_syslog(int type, char * buf, int len) |
len | 74 | kernel/printk.c | if (!buf || len < 0) |
len | 76 | kernel/printk.c | if (!len) |
len | 78 | kernel/printk.c | error = verify_area(VERIFY_WRITE,buf,len); |
len | 90 | kernel/printk.c | while (log_size && i < len) { |
len | 107 | kernel/printk.c | if (!buf || len < 0) |
len | 109 | kernel/printk.c | if (!len) |
len | 111 | kernel/printk.c | error = verify_area(VERIFY_WRITE,buf,len); |
len | 114 | kernel/printk.c | count = len; |
len | 137 | kernel/printk.c | if (len < 1 || len > 8) |
len | 139 | kernel/printk.c | if (len < MINIMUM_CONSOLE_LOGLEVEL) |
len | 140 | kernel/printk.c | len = MINIMUM_CONSOLE_LOGLEVEL; |
len | 141 | kernel/printk.c | console_loglevel = len; |
len | 34 | kernel/resource.c | int len = 0; |
len | 36 | kernel/resource.c | for (p = iolist.next; (p) && (len < 4000); p = p->next) |
len | 37 | kernel/resource.c | len += sprintf(buf+len, "%04lx-%04lx : %s\n", |
len | 40 | kernel/resource.c | len += sprintf(buf+len, "4K limit reached!\n"); |
len | 41 | kernel/resource.c | return len; |
len | 673 | kernel/sys.c | asmlinkage int sys_sethostname(char *name, int len) |
len | 679 | kernel/sys.c | if (len < 0 || len > __NEW_UTS_LEN) |
len | 681 | kernel/sys.c | error = verify_area(VERIFY_READ, name, len); |
len | 684 | kernel/sys.c | memcpy_fromfs(system_utsname.nodename, name, len); |
len | 685 | kernel/sys.c | system_utsname.nodename[len] = 0; |
len | 689 | kernel/sys.c | asmlinkage int sys_gethostname(char *name, int len) |
len | 693 | kernel/sys.c | if (len < 0) |
len | 695 | kernel/sys.c | i = verify_area(VERIFY_WRITE, name, len); |
len | 699 | kernel/sys.c | if (i > len) |
len | 700 | kernel/sys.c | i = len; |
len | 709 | kernel/sys.c | asmlinkage int sys_setdomainname(char *name, int len) |
len | 715 | kernel/sys.c | if (len < 0 || len > __NEW_UTS_LEN) |
len | 717 | kernel/sys.c | error = verify_area(VERIFY_READ, name, len); |
len | 720 | kernel/sys.c | memcpy_fromfs(system_utsname.domainname, name, len); |
len | 721 | kernel/sys.c | system_utsname.domainname[len] = 0; |
len | 136 | lib/vsprintf.c | int len; |
len | 221 | lib/vsprintf.c | len = strnlen(s, precision); |
len | 224 | lib/vsprintf.c | while (len < field_width--) |
len | 226 | lib/vsprintf.c | for (i = 0; i < len; ++i) |
len | 228 | lib/vsprintf.c | while (len < field_width--) |
len | 284 | mm/filemap.c | static void filemap_unmap(struct vm_area_struct *vma, unsigned long start, size_t len) |
len | 286 | mm/filemap.c | filemap_sync(vma, start, len, MS_ASYNC); |
len | 378 | mm/filemap.c | asmlinkage int sys_msync(unsigned long start, size_t len, int flags) |
len | 386 | mm/filemap.c | len = (len + ~PAGE_MASK) & PAGE_MASK; |
len | 387 | mm/filemap.c | end = start + len; |
len | 984 | mm/memory.c | unsigned long len = mpnt->vm_end - start; |
len | 989 | mm/memory.c | zap_page_range(mpnt->vm_mm, start, len); |
len | 994 | mm/memory.c | if (diff >= len) |
len | 998 | mm/memory.c | len = (len - diff) & PAGE_MASK; |
len | 1005 | mm/memory.c | zap_page_range(mpnt->vm_mm, start, len); |
len | 44 | mm/mmap.c | unsigned long do_mmap(struct file * file, unsigned long addr, unsigned long len, |
len | 50 | mm/mmap.c | if ((len = PAGE_ALIGN(len)) == 0) |
len | 53 | mm/mmap.c | if (addr > TASK_SIZE || len > TASK_SIZE || addr > TASK_SIZE-len) |
len | 57 | mm/mmap.c | if (off + len < off) |
len | 95 | mm/mmap.c | if (len > TASK_SIZE || addr > TASK_SIZE - len) |
len | 98 | mm/mmap.c | addr = get_unmapped_area(addr, len); |
len | 118 | mm/mmap.c | vma->vm_end = addr + len; |
len | 148 | mm/mmap.c | do_munmap(addr, len); /* Clear old maps */ |
len | 169 | mm/mmap.c | unsigned long get_unmapped_area(unsigned long addr, unsigned long len) |
len | 173 | mm/mmap.c | if (len > TASK_SIZE) |
len | 180 | mm/mmap.c | if (TASK_SIZE - len < addr) |
len | 186 | mm/mmap.c | if (addr + len > vmm->vm_start) { |
len | 642 | mm/mmap.c | unsigned long addr, size_t len) |
len | 645 | mm/mmap.c | unsigned long end = addr + len; |
len | 705 | mm/mmap.c | asmlinkage int sys_munmap(unsigned long addr, size_t len) |
len | 707 | mm/mmap.c | return do_munmap(addr, len); |
len | 716 | mm/mmap.c | int do_munmap(unsigned long addr, size_t len) |
len | 720 | mm/mmap.c | if ((addr & ~PAGE_MASK) || addr > TASK_SIZE || len > TASK_SIZE-addr) |
len | 723 | mm/mmap.c | if ((len = PAGE_ALIGN(len)) == 0) |
len | 741 | mm/mmap.c | for ( ; mpnt && mpnt->vm_start < addr+len; mpnt = *npp) { |
len | 766 | mm/mmap.c | end = addr+len; |
len | 776 | mm/mmap.c | zap_page_range(current->mm, addr, len); |
len | 201 | mm/mprotect.c | asmlinkage int sys_mprotect(unsigned long start, size_t len, unsigned long prot) |
len | 209 | mm/mprotect.c | len = (len + ~PAGE_MASK) & PAGE_MASK; |
len | 210 | mm/mprotect.c | end = start + len; |
len | 57 | net/802/p8022.c | dev->hard_header(skb, dev, ETH_P_802_3, dest_node, NULL, skb->len); |
len | 13 | net/802/p8023.c | dev->hard_header(skb, dev, ETH_P_802_3, dest_node, NULL, skb->len); |
len | 42 | net/802/tr.c | void *daddr, void *saddr, unsigned len) |
len | 246 | net/802/tr.c | int len=0; |
len | 256 | net/802/tr.c | len+=size; |
len | 260 | net/802/tr.c | size=sprintf(buffer+len,"%02X:%02X:%02X:%02X:%02X:%02X %04X %04X %04X %04X %04X %04X %04X %04X %04X %lu\n", |
len | 264 | net/802/tr.c | len+=size; |
len | 265 | net/802/tr.c | pos=begin+len; |
len | 268 | net/802/tr.c | len=0; |
len | 279 | net/802/tr.c | len-=(offset-begin); /* Start slop */ |
len | 280 | net/802/tr.c | if(len>length) |
len | 281 | net/802/tr.c | len=length; /* Ending slop */ |
len | 282 | net/802/tr.c | return len; |
len | 105 | net/appletalk/aarp.c | int len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length; |
len | 106 | net/appletalk/aarp.c | struct sk_buff *skb=alloc_skb(len, GFP_ATOMIC); |
len | 166 | net/appletalk/aarp.c | int len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length; |
len | 167 | net/appletalk/aarp.c | struct sk_buff *skb=alloc_skb(len, GFP_ATOMIC); |
len | 228 | net/appletalk/aarp.c | int len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length; |
len | 229 | net/appletalk/aarp.c | struct sk_buff *skb=alloc_skb(len, GFP_ATOMIC); |
len | 236 | net/appletalk/ddp.c | int len=0; |
len | 244 | net/appletalk/ddp.c | len += sprintf (buffer,"Type local_addr remote_addr tx_queue rx_queue st uid\n"); |
len | 247 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%02X ", s->type); |
len | 248 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%04X:%02X:%02X ", |
len | 250 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%04X:%02X:%02X ", |
len | 252 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%08lX:%08lX ", s->wmem_alloc, s->rmem_alloc); |
len | 253 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%02X %d\n", s->state, SOCK_INODE(s->socket)->i_uid); |
len | 256 | net/appletalk/ddp.c | pos=begin+len; |
len | 260 | net/appletalk/ddp.c | len=0; /* Keep dumping into the buffer start */ |
len | 269 | net/appletalk/ddp.c | len-=(offset-begin); /* Remove unwanted header data from length */ |
len | 270 | net/appletalk/ddp.c | if(len>length) |
len | 271 | net/appletalk/ddp.c | len=length; /* Remove unwanted tail data from length */ |
len | 273 | net/appletalk/ddp.c | return len; |
len | 843 | net/appletalk/ddp.c | int len=0; |
len | 847 | net/appletalk/ddp.c | len += sprintf (buffer,"Interface Address Networks Status\n"); |
len | 850 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%-16s %04X:%02X %04X-%04X %d\n", |
len | 855 | net/appletalk/ddp.c | pos=begin+len; |
len | 858 | net/appletalk/ddp.c | len=0; |
len | 865 | net/appletalk/ddp.c | len-=(offset-begin); |
len | 866 | net/appletalk/ddp.c | if(len>length) |
len | 867 | net/appletalk/ddp.c | len=length; |
len | 868 | net/appletalk/ddp.c | return len; |
len | 876 | net/appletalk/ddp.c | int len=0; |
len | 880 | net/appletalk/ddp.c | len += sprintf (buffer,"Target Router Flags Dev\n"); |
len | 884 | net/appletalk/ddp.c | len += sprintf (buffer+len,"Default %5d:%-3d %-4d %s\n", |
len | 890 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%04X:%02X %5d:%-3d %-4d %s\n", |
len | 894 | net/appletalk/ddp.c | pos=begin+len; |
len | 897 | net/appletalk/ddp.c | len=0; |
len | 904 | net/appletalk/ddp.c | len-=(offset-begin); |
len | 905 | net/appletalk/ddp.c | if(len>length) |
len | 906 | net/appletalk/ddp.c | len=length; |
len | 907 | net/appletalk/ddp.c | return len; |
len | 921 | net/appletalk/ddp.c | unsigned short atalk_checksum(struct ddpehdr *ddp, int len) |
len | 926 | net/appletalk/ddp.c | len-=4; /* skip header 4 bytes */ |
len | 930 | net/appletalk/ddp.c | while(len--) |
len | 1058 | net/appletalk/ddp.c | static void def_callback2(struct sock *sk, int len) |
len | 1369 | net/appletalk/ddp.c | if(skb->len<sizeof(*ddp)) |
len | 1388 | net/appletalk/ddp.c | origlen = skb->len; |
len | 1390 | net/appletalk/ddp.c | skb_trim(skb,min(skb->len,ddp->deh_len)); |
len | 1398 | net/appletalk/ddp.c | if(skb->len<sizeof(*ddp)) |
len | 1512 | net/appletalk/ddp.c | static int atalk_sendmsg(struct socket *sock, struct msghdr *msg, int len, int nonblock, int flags) |
len | 1528 | net/appletalk/ddp.c | if(len>587) |
len | 1565 | net/appletalk/ddp.c | size=sizeof(struct ddpehdr)+len+ddp_dl->header_length; /* For headers */ |
len | 1608 | net/appletalk/ddp.c | ddp->deh_len=len+sizeof(*ddp); |
len | 1624 | net/appletalk/ddp.c | printk("SK %p: Copy user data (%d bytes).\n", sk, len); |
len | 1626 | net/appletalk/ddp.c | memcpy_fromiovec(skb_put(skb,len),msg->msg_iov,len); |
len | 1631 | net/appletalk/ddp.c | ddp->deh_sum=atalk_checksum(ddp, len+sizeof(*ddp)); |
len | 1694 | net/appletalk/ddp.c | printk("SK %p: Done write (%d).\n", sk, len); |
len | 1695 | net/appletalk/ddp.c | return len; |
len | 1782 | net/appletalk/ddp.c | amount=skb->len-sizeof(struct ddpehdr); |
len | 374 | net/ax25/af_ax25.c | sk->data_ready(sk, skb->len); |
len | 851 | net/ax25/af_ax25.c | static void def_callback2(struct sock *sk, int len) |
len | 1391 | net/ax25/af_ax25.c | if (ax25_parse_addr(skb->data, skb->len, &src, &dest, &dp, &type) == NULL) { |
len | 1503 | net/ax25/af_ax25.c | sk->data_ready(sk, skb->len); |
len | 1637 | net/ax25/af_ax25.c | sk->data_ready(sk, skb->len ); |
len | 1668 | net/ax25/af_ax25.c | int len; |
len | 1677 | net/ax25/af_ax25.c | len = skb->data[0] + skb->data[1] * 256 - 5; |
len | 1680 | net/ax25/af_ax25.c | skb_trim(skb, len); /* Set the length of the data */ |
len | 1685 | net/ax25/af_ax25.c | static int ax25_sendmsg(struct socket *sock, struct msghdr *msg, int len, int noblock, int flags) |
len | 1759 | net/ax25/af_ax25.c | size = len + 3 + size_ax25_addr(dp) + AX25_BPQ_HEADER_LEN; |
len | 1768 | net/ax25/af_ax25.c | skb_reserve(skb, size - len); |
len | 1774 | net/ax25/af_ax25.c | memcpy_fromiovec(skb_put(skb, len), msg->msg_iov, len); |
len | 1792 | net/ax25/af_ax25.c | return len; |
len | 1818 | net/ax25/af_ax25.c | return len; |
len | 1850 | net/ax25/af_ax25.c | length = skb->len + (skb->data - skb->h.raw); |
len | 1854 | net/ax25/af_ax25.c | length = skb->len; |
len | 1870 | net/ax25/af_ax25.c | ax25_parse_addr(skb->data, skb->len, NULL, &dest, &digi, NULL); |
len | 1933 | net/ax25/af_ax25.c | amount = skb->len; |
len | 2008 | net/ax25/af_ax25.c | int len = 0; |
len | 2014 | net/ax25/af_ax25.c | len += sprintf(buffer, "dest_addr src_addr dev st vs vr va t1 t2 t3 n2 rtt wnd Snd-Q Rcv-Q\n"); |
len | 2022 | net/ax25/af_ax25.c | len += sprintf(buffer + len, "%-9s ", |
len | 2024 | net/ax25/af_ax25.c | len += sprintf(buffer + len, "%-9s %-4s %2d %3d %3d %3d %3d/%03d %2d/%02d %3d/%03d %2d/%02d %3d %3d", |
len | 2039 | net/ax25/af_ax25.c | len += sprintf(buffer + len, " %5ld %5ld\n", |
len | 2043 | net/ax25/af_ax25.c | len += sprintf(buffer + len, "\n"); |
len | 2046 | net/ax25/af_ax25.c | pos = begin + len; |
len | 2049 | net/ax25/af_ax25.c | len = 0; |
len | 2060 | net/ax25/af_ax25.c | len -= (offset - begin); |
len | 2062 | net/ax25/af_ax25.c | if (len > length) len = length; |
len | 2064 | net/ax25/af_ax25.c | return(len); |
len | 2176 | net/ax25/af_ax25.c | size = skb->len; |
len | 2208 | net/ax25/af_ax25.c | void *saddr, unsigned len) |
len | 74 | net/ax25/ax25_in.c | ax25->fraglen += skb->len; |
len | 95 | net/ax25/ax25_in.c | memcpy(skb_put(skbn, skbo->len), skbo->data, skbo->len); |
len | 100 | net/ax25/ax25_in.c | memcpy(skb_put(skbn, skbo->len), skbo->data, skbo->len); |
len | 117 | net/ax25/ax25_in.c | ax25->fraglen = skb->len; |
len | 60 | net/ax25/ax25_out.c | int err, frontlen, mtu, len, fragno, first = 1; |
len | 64 | net/ax25/ax25_out.c | if ((skb->len - 1) > mtu) { |
len | 67 | net/ax25/ax25_out.c | fragno = skb->len / mtu; |
len | 68 | net/ax25/ax25_out.c | if (skb->len % mtu == 0) fragno--; |
len | 72 | net/ax25/ax25_out.c | while (skb->len > 0) { |
len | 87 | net/ax25/ax25_out.c | len = (mtu > skb->len) ? skb->len : mtu; |
len | 89 | net/ax25/ax25_out.c | memcpy(skb_put(skbn, len), skb->data, len); |
len | 90 | net/ax25/ax25_out.c | skb_pull(skb, len); |
len | 269 | net/ax25/ax25_route.c | int len = 0; |
len | 276 | net/ax25/ax25_route.c | len += sprintf(buffer, "callsign dev count time mode digipeaters\n"); |
len | 279 | net/ax25/ax25_route.c | len += sprintf(buffer + len, "%-9s %-4s %5d %9d", |
len | 288 | net/ax25/ax25_route.c | len += sprintf(buffer + len, " vc"); |
len | 292 | net/ax25/ax25_route.c | len += sprintf(buffer + len, " dg"); |
len | 295 | net/ax25/ax25_route.c | len += sprintf(buffer + len, " *"); |
len | 301 | net/ax25/ax25_route.c | len += sprintf(buffer + len, " %s", ax2asc(&ax25_rt->digipeat->calls[i])); |
len | 303 | net/ax25/ax25_route.c | len += sprintf(buffer + len, "\n"); |
len | 305 | net/ax25/ax25_route.c | pos = begin + len; |
len | 308 | net/ax25/ax25_route.c | len = 0; |
len | 319 | net/ax25/ax25_route.c | len -= (offset - begin); |
len | 321 | net/ax25/ax25_route.c | if (len > length) len = length; |
len | 323 | net/ax25/ax25_route.c | return len; |
len | 329 | net/ax25/ax25_route.c | int len = 0; |
len | 335 | net/ax25/ax25_route.c | len += sprintf(buffer, "Policy: %d\n", ax25_uid_policy); |
len | 338 | net/ax25/ax25_route.c | len += sprintf(buffer + len, "%6d %s\n", pt->uid, ax2asc(&pt->call)); |
len | 340 | net/ax25/ax25_route.c | pos = begin + len; |
len | 343 | net/ax25/ax25_route.c | len = 0; |
len | 354 | net/ax25/ax25_route.c | len -= offset - begin; |
len | 356 | net/ax25/ax25_route.c | if (len > length) len = length; |
len | 358 | net/ax25/ax25_route.c | return len; |
len | 327 | net/ax25/ax25_subr.c | unsigned char *ax25_parse_addr(unsigned char *buf, int len, ax25_address *src, ax25_address *dest, ax25_digi *digi, int *flags) |
len | 331 | net/ax25/ax25_subr.c | if (len < 14) return NULL; |
len | 348 | net/ax25/ax25_subr.c | len -= 2 * AX25_ADDR_LEN; |
len | 355 | net/ax25/ax25_subr.c | if (len < 7) return NULL; /* Short packet */ |
len | 369 | net/ax25/ax25_subr.c | len -= AX25_ADDR_LEN; |
len | 381 | net/ax25/ax25_subr.c | int len = 0; |
len | 391 | net/ax25/ax25_subr.c | len += AX25_ADDR_LEN; |
len | 414 | net/ax25/ax25_subr.c | len += AX25_ADDR_LEN; |
len | 426 | net/ax25/ax25_subr.c | len += AX25_ADDR_LEN; |
len | 432 | net/ax25/ax25_subr.c | return len; |
len | 482 | net/core/dev.c | int dev_rint(unsigned char *buff, long len, int flags, struct device *dev) |
len | 490 | net/core/dev.c | if (dev == NULL || buff == NULL || len <= 0) |
len | 507 | net/core/dev.c | skb = alloc_skb(len, GFP_ATOMIC); |
len | 521 | net/core/dev.c | to = skb_put(skb,len); |
len | 522 | net/core/dev.c | left = len; |
len | 524 | net/core/dev.c | len2 = len; |
len | 803 | net/core/dev.c | int len; |
len | 814 | net/core/dev.c | len = ifc.ifc_len; |
len | 822 | net/core/dev.c | err=verify_area(VERIFY_WRITE,pos,len); |
len | 843 | net/core/dev.c | if (len < sizeof(struct ifreq)) |
len | 852 | net/core/dev.c | len -= sizeof(struct ifreq); |
len | 906 | net/core/dev.c | int len=0; |
len | 918 | net/core/dev.c | len+=size; |
len | 923 | net/core/dev.c | size = sprintf_stats(buffer+len, dev); |
len | 924 | net/core/dev.c | len+=size; |
len | 925 | net/core/dev.c | pos=begin+len; |
len | 929 | net/core/dev.c | len=0; |
len | 937 | net/core/dev.c | len-=(offset-begin); /* Start slop */ |
len | 938 | net/core/dev.c | if(len>length) |
len | 939 | net/core/dev.c | len=length; /* Ending slop */ |
len | 940 | net/core/dev.c | return len; |
len | 31 | net/core/iovec.c | int len=0; |
len | 59 | net/core/iovec.c | len+=iov[ct].iov_len; |
len | 62 | net/core/iovec.c | return len; |
len | 69 | net/core/iovec.c | void memcpy_toiovec(struct iovec *iov, unsigned char *kdata, int len) |
len | 71 | net/core/iovec.c | while(len>0) |
len | 75 | net/core/iovec.c | int copy = min(iov->iov_len,len); |
len | 78 | net/core/iovec.c | len-=copy; |
len | 90 | net/core/iovec.c | void memcpy_fromiovec(unsigned char *kdata, struct iovec *iov, int len) |
len | 92 | net/core/iovec.c | while(len>0) |
len | 96 | net/core/iovec.c | int copy=min(len,iov->iov_len); |
len | 98 | net/core/iovec.c | len-=copy; |
len | 167 | net/core/skbuff.c | if(skb->tail-skb->data!=skb->len) |
len | 171 | net/core/skbuff.c | skb,skb->data,skb->end,skb->len); |
len | 365 | net/core/skbuff.c | unsigned char *skb_put(struct sk_buff *skb, int len) |
len | 369 | net/core/skbuff.c | skb->tail+=len; |
len | 370 | net/core/skbuff.c | skb->len+=len; |
len | 373 | net/core/skbuff.c | panic("skput:over: %p:%d", __builtin_return_address(0),len); |
len | 377 | net/core/skbuff.c | unsigned char *skb_push(struct sk_buff *skb, int len) |
len | 380 | net/core/skbuff.c | skb->data-=len; |
len | 381 | net/core/skbuff.c | skb->len+=len; |
len | 384 | net/core/skbuff.c | panic("skpush:under: %p:%d", __builtin_return_address(0),len); |
len | 388 | net/core/skbuff.c | unsigned char * skb_pull(struct sk_buff *skb, int len) |
len | 391 | net/core/skbuff.c | if(len>skb->len) |
len | 393 | net/core/skbuff.c | skb->data+=len; |
len | 394 | net/core/skbuff.c | skb->len-=len; |
len | 410 | net/core/skbuff.c | void skb_reserve(struct sk_buff *skb, int len) |
len | 413 | net/core/skbuff.c | skb->data+=len; |
len | 414 | net/core/skbuff.c | skb->tail+=len; |
len | 422 | net/core/skbuff.c | void skb_trim(struct sk_buff *skb, int len) |
len | 425 | net/core/skbuff.c | if(skb->len>len) |
len | 427 | net/core/skbuff.c | skb->len=len; |
len | 428 | net/core/skbuff.c | skb->tail=skb->data+len; |
len | 504 | net/core/skbuff.c | int len=size; |
len | 569 | net/core/skbuff.c | skb->end=bptr+len; |
len | 570 | net/core/skbuff.c | skb->len=0; |
len | 618 | net/core/skbuff.c | skb_put(n,skb->len); |
len | 557 | net/core/sock.c | skb->saddr, skb->len, skb->daddr, 1, |
len | 90 | net/ethernet/eth.c | void *daddr, void *saddr, unsigned len) |
len | 102 | net/ethernet/eth.c | eth->h_proto = htons(len); |
len | 13 | net/ethernet/pe2.c | dev->hard_header(skb, dev, ETH_P_IPX, dest_node, NULL, skb->len); |
len | 548 | net/ipv4/af_inet.c | static void def_callback2(struct sock *sk,int len) |
len | 375 | net/ipv4/arp.c | dev->hard_header(skb,dev,ptype,dest_hw?dest_hw:dev->broadcast,src_hw?src_hw:NULL,skb->len); |
len | 1044 | net/ipv4/arp.c | int len=0; |
len | 1056 | net/ipv4/arp.c | len+=size; |
len | 1089 | net/ipv4/arp.c | size = sprintf(buffer+len, |
len | 1095 | net/ipv4/arp.c | size += sprintf(buffer+len+size, |
len | 1100 | net/ipv4/arp.c | len+=size; |
len | 1101 | net/ipv4/arp.c | pos=begin+len; |
len | 1105 | net/ipv4/arp.c | len=0; |
len | 1115 | net/ipv4/arp.c | len-=(offset-begin); /* Start slop */ |
len | 1116 | net/ipv4/arp.c | if(len>length) |
len | 1117 | net/ipv4/arp.c | len=length; /* Ending slop */ |
len | 1118 | net/ipv4/arp.c | return len; |
len | 151 | net/ipv4/icmp.c | void (*handler)(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len); |
len | 339 | net/ipv4/icmp.c | static void icmp_unreach(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
len | 428 | net/ipv4/icmp.c | static void icmp_redirect(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 source, __u32 daddr, int len) |
len | 509 | net/ipv4/icmp.c | static void icmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
len | 515 | net/ipv4/icmp.c | icmp_param.data_len=len; |
len | 529 | net/ipv4/icmp.c | static void icmp_timestamp(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
len | 538 | net/ipv4/icmp.c | if(len<12) |
len | 579 | net/ipv4/icmp.c | static void icmp_address(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
len | 596 | net/ipv4/icmp.c | static void icmp_discard(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
len | 606 | net/ipv4/icmp.c | __u32 daddr, unsigned short len, |
len | 616 | net/ipv4/icmp.c | if (ip_compute_csum((unsigned char *) icmph, len)) |
len | 663 | net/ipv4/icmp.c | len-=sizeof(struct icmphdr); |
len | 665 | net/ipv4/icmp.c | (icmp_pointers[icmph->type].handler)(icmph,skb,skb->dev,saddr,daddr,len); |
len | 214 | net/ipv4/igmp.c | __u32 daddr, unsigned short len, __u32 saddr, int redo, |
len | 234 | net/ipv4/igmp.c | if(skb->len <sizeof(struct igmphdr) || skb->ip_hdr->ttl>1 || ip_compute_csum((void *)skb->h.raw,sizeof(struct igmphdr))) |
len | 42 | net/ipv4/ip_forward.c | static void ip_encap(struct sk_buff *skb, int len, struct device *out, __u32 daddr) |
len | 50 | net/ipv4/ip_forward.c | if(len>65515) |
len | 51 | net/ipv4/ip_forward.c | len=65515; |
len | 60 | net/ipv4/ip_forward.c | iph->tot_len = htons(skb->len); |
len | 70 | net/ipv4/ip_forward.c | if (out->hard_header && out->hard_header(skb, out, ETH_P_IP, NULL, NULL, len)<0) |
len | 251 | net/ipv4/ip_forward.c | if (skb->len+encap > dev2->mtu && (ntohs(iph->frag_off) & IP_DF)) { |
len | 260 | net/ipv4/ip_forward.c | skb2 = alloc_skb(dev2->hard_header_len + skb->len + encap + 15, GFP_ATOMIC); |
len | 264 | net/ipv4/ip_forward.c | skb2 = alloc_skb(dev2->hard_header_len + skb->len + 15, GFP_ATOMIC); |
len | 285 | net/ipv4/ip_forward.c | ip_encap(skb2,skb->len, dev2, raddr); |
len | 289 | net/ipv4/ip_forward.c | ip_send(skb2,raddr,skb->len,dev2,dev2->pa_addr); |
len | 296 | net/ipv4/ip_forward.c | ptr = skb_put(skb2,skb->len); |
len | 303 | net/ipv4/ip_forward.c | memcpy(ptr, skb->h.raw, skb->len); |
len | 317 | net/ipv4/ip_forward.c | ip_encap(skb,skb->len, dev2, raddr); |
len | 325 | net/ipv4/ip_forward.c | if(dev2->hard_header(skb, dev2, ETH_P_IP, NULL, NULL, skb->len)<0) |
len | 392 | net/ipv4/ip_forward.c | if(skb2->len > dev2->mtu + dev2->hard_header_len) |
len | 64 | net/ipv4/ip_fragment.c | extern __inline__ void frag_kfree_s(void *ptr, int len) |
len | 69 | net/ipv4/ip_fragment.c | ip_frag_mem-=len; |
len | 71 | net/ipv4/ip_fragment.c | kfree_s(ptr,len); |
len | 107 | net/ipv4/ip_fragment.c | fp->len = end - offset; |
len | 281 | net/ipv4/ip_fragment.c | qp->len = 0; |
len | 314 | net/ipv4/ip_fragment.c | if (qp->len == 0) |
len | 347 | net/ipv4/ip_fragment.c | int count, len; |
len | 352 | net/ipv4/ip_fragment.c | len = qp->ihlen + qp->len; |
len | 354 | net/ipv4/ip_fragment.c | if ((skb = dev_alloc_skb(len)) == NULL) |
len | 363 | net/ipv4/ip_fragment.c | skb_put(skb,len); |
len | 378 | net/ipv4/ip_fragment.c | if(count+fp->len > skb->len) |
len | 386 | net/ipv4/ip_fragment.c | memcpy((ptr + fp->offset), fp->ptr, fp->len); |
len | 387 | net/ipv4/ip_fragment.c | count += fp->len; |
len | 500 | net/ipv4/ip_fragment.c | qp->len = end; |
len | 540 | net/ipv4/ip_fragment.c | tmp->len -= i; /* so reduce size of */ |
len | 547 | net/ipv4/ip_fragment.c | if (tmp->len <= 0) |
len | 624 | net/ipv4/ip_fragment.c | int left, mtu, hlen, len; |
len | 696 | net/ipv4/ip_fragment.c | len = left; |
len | 698 | net/ipv4/ip_fragment.c | if (len > mtu) |
len | 699 | net/ipv4/ip_fragment.c | len = mtu; |
len | 702 | net/ipv4/ip_fragment.c | if (len < left) |
len | 704 | net/ipv4/ip_fragment.c | len/=8; |
len | 705 | net/ipv4/ip_fragment.c | len*=8; |
len | 711 | net/ipv4/ip_fragment.c | if ((skb2 = alloc_skb(len + hlen+15,GFP_ATOMIC)) == NULL) |
len | 726 | net/ipv4/ip_fragment.c | skb_put(skb2,len + hlen); |
len | 752 | net/ipv4/ip_fragment.c | memcpy(skb2->h.raw + hlen, ptr, len); |
len | 753 | net/ipv4/ip_fragment.c | left -= len; |
len | 779 | net/ipv4/ip_fragment.c | ptr += len; |
len | 780 | net/ipv4/ip_fragment.c | offset += len; |
len | 620 | net/ipv4/ip_fw.c | while (skb->len - ((unsigned char *)data - skb->h.raw) > 18) |
len | 720 | net/ipv4/ip_fw.c | printk("MASQUERADE: resizing needed for %d bytes (%ld)\n",diff, skb->len); |
len | 722 | net/ipv4/ip_fw.c | skb2 = alloc_skb(MAX_HEADER + skb->len+diff, GFP_ATOMIC); |
len | 729 | net/ipv4/ip_fw.c | skb_put(skb2,skb->len + diff); |
len | 746 | net/ipv4/ip_fw.c | skb->len - (data-(char *)skb->data)); |
len | 752 | net/ipv4/ip_fw.c | iph->tot_len = htons(skb->len + diff); |
len | 766 | net/ipv4/ip_fw.c | unsigned long daddr, int len) |
len | 769 | net/ipv4/ip_fw.c | uh->check=csum_tcpudp_magic(saddr,daddr,len, |
len | 770 | net/ipv4/ip_fw.c | IPPROTO_UDP, csum_partial((char *)uh,len,0)); |
len | 838 | net/ipv4/ip_fw.c | size = skb->len - ((unsigned char *)portptr - skb->h.raw); |
len | 860 | net/ipv4/ip_fw.c | size = skb->len - ((unsigned char *)portptr-skb->h.raw); |
len | 933 | net/ipv4/ip_fw.c | int size = skb_ptr->len - ((unsigned char *)portptr - skb_ptr->h.raw); |
len | 1286 | net/ipv4/ip_fw.c | struct ip_fw *check_ipfw_struct(struct ip_fw *frwl, int len) |
len | 1289 | net/ipv4/ip_fw.c | if ( len != sizeof(struct ip_fw) ) |
len | 1292 | net/ipv4/ip_fw.c | printk("ip_fw_ctl: len=%d, want %d\n",len, sizeof(struct ip_fw)); |
len | 1349 | net/ipv4/ip_fw.c | int ip_acct_ctl(int stage, void *m, int len) |
len | 1367 | net/ipv4/ip_fw.c | if (!(frwl=check_ipfw_struct(m,len))) |
len | 1394 | net/ipv4/ip_fw.c | int ip_fw_ctl(int stage, void *m, int len) |
len | 1439 | net/ipv4/ip_fw.c | if ( len < sizeof(struct ip_fwpkt) ) |
len | 1443 | net/ipv4/ip_fw.c | len, sizeof(struct ip_fwpkt)); |
len | 1485 | net/ipv4/ip_fw.c | frwl=check_ipfw_struct(m,len); |
len | 1525 | net/ipv4/ip_fw.c | int len, p; |
len | 1533 | net/ipv4/ip_fw.c | len=sprintf(buffer, "IP firewall block rules, default %d\n", |
len | 1538 | net/ipv4/ip_fw.c | len=sprintf(buffer, "IP firewall forward rules, default %d\n", |
len | 1545 | net/ipv4/ip_fw.c | len=sprintf(buffer,"IP accounting rules\n"); |
len | 1551 | net/ipv4/ip_fw.c | len=0; |
len | 1560 | net/ipv4/ip_fw.c | len+=sprintf(buffer+len,"%08lX/%08lX->%08lX/%08lX %08lX %X ", |
len | 1564 | net/ipv4/ip_fw.c | len+=sprintf(buffer+len,"%u %u %-9lu %-9lu", |
len | 1567 | net/ipv4/ip_fw.c | len+=sprintf(buffer+len, " %u", i->fw_pts[p]); |
len | 1568 | net/ipv4/ip_fw.c | buffer[len++]='\n'; |
len | 1569 | net/ipv4/ip_fw.c | buffer[len]='\0'; |
len | 1570 | net/ipv4/ip_fw.c | pos=begin+len; |
len | 1573 | net/ipv4/ip_fw.c | len=0; |
len | 1588 | net/ipv4/ip_fw.c | len-=(offset-begin); |
len | 1589 | net/ipv4/ip_fw.c | if(len>length) |
len | 1590 | net/ipv4/ip_fw.c | len=length; |
len | 1591 | net/ipv4/ip_fw.c | return len; |
len | 1631 | net/ipv4/ip_fw.c | int len=0; |
len | 1633 | net/ipv4/ip_fw.c | len=sprintf(buffer,"Prc FromIP FPrt ToIP TPrt Masq Init-seq Delta PDelta Expires\n"); |
len | 1643 | net/ipv4/ip_fw.c | len+=sprintf(buffer+len,"%s %08lX:%04X %08lX:%04X %04X %08X %5d %5d %lu\n", |
len | 1652 | net/ipv4/ip_fw.c | pos=begin+len; |
len | 1655 | net/ipv4/ip_fw.c | len=0; |
len | 1664 | net/ipv4/ip_fw.c | len-=(offset-begin); |
len | 1665 | net/ipv4/ip_fw.c | if(len>length) |
len | 1666 | net/ipv4/ip_fw.c | len=length; |
len | 1667 | net/ipv4/ip_fw.c | return len; |
len | 241 | net/ipv4/ip_input.c | if (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0 |
len | 242 | net/ipv4/ip_input.c | || skb->len < ntohs(iph->tot_len)) |
len | 369 | net/ipv4/ip_options.c | if (ts->ptr+3 > ts->len) |
len | 386 | net/ipv4/ip_options.c | if (ts->ptr+7 > ts->len) |
len | 402 | net/ipv4/ip_options.c | if (ts->ptr+7 > ts->len) |
len | 69 | net/ipv4/ip_output.c | int len=ntohs(skb->ip_hdr->tot_len); |
len | 70 | net/ipv4/ip_output.c | struct sk_buff *newskb=dev_alloc_skb(len+dev->hard_header_len+15); |
len | 89 | net/ipv4/ip_output.c | ip_send(newskb, skb->ip_hdr->daddr, len, dev, skb->ip_hdr->saddr); |
len | 93 | net/ipv4/ip_output.c | newskb->ip_hdr=(struct iphdr *)skb_put(newskb, len); |
len | 99 | net/ipv4/ip_output.c | memcpy(newskb->ip_hdr,skb->ip_hdr,len); |
len | 113 | net/ipv4/ip_output.c | int ip_send(struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr) |
len | 126 | net/ipv4/ip_output.c | mac = dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, len); |
len | 137 | net/ipv4/ip_output.c | static int ip_send_room(struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr) |
len | 146 | net/ipv4/ip_output.c | mac = dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, len); |
len | 166 | net/ipv4/ip_output.c | struct device **dev, int type, struct options *opt, int len, int tos, int ttl) |
len | 244 | net/ipv4/ip_output.c | tmp = ip_send_room(skb, raddr, len, *dev, saddr); |
len | 246 | net/ipv4/ip_output.c | tmp = ip_send(skb, raddr, len, *dev, saddr); |
len | 350 | net/ipv4/ip_output.c | iph->tot_len = ntohs(skb->len-(((unsigned char *)iph)-skb->data)); |
len | 48 | net/ipv4/ip_sockglue.c | int len=0; |
len | 51 | net/ipv4/ip_sockglue.c | len=sprintf(buffer,"Device : Count\tGroup Users Timer\n"); |
len | 59 | net/ipv4/ip_sockglue.c | len+=sprintf(buffer+len,"%-10s: %5d\n", |
len | 63 | net/ipv4/ip_sockglue.c | len+=sprintf(buffer+len, |
len | 67 | net/ipv4/ip_sockglue.c | pos=begin+len; |
len | 70 | net/ipv4/ip_sockglue.c | len=0; |
len | 80 | net/ipv4/ip_sockglue.c | len-=(offset-begin); |
len | 81 | net/ipv4/ip_sockglue.c | if(len>length) |
len | 82 | net/ipv4/ip_sockglue.c | len=length; |
len | 83 | net/ipv4/ip_sockglue.c | return len; |
len | 420 | net/ipv4/ip_sockglue.c | int len; |
len | 508 | net/ipv4/ip_sockglue.c | len=strlen(sk->ip_mc_name); |
len | 509 | net/ipv4/ip_sockglue.c | err=verify_area(VERIFY_WRITE, optval, len); |
len | 512 | net/ipv4/ip_sockglue.c | put_user(len,(int *) optlen); |
len | 513 | net/ipv4/ip_sockglue.c | memcpy_tofs((void *)optval,sk->ip_mc_name, len); |
len | 53 | net/ipv4/ipip.c | __u32 daddr, unsigned short len, __u32 saddr, |
len | 278 | net/ipv4/ipmr.c | skb->ip_hdr->tot_len=htons(skb->len); /* Fix the length */ |
len | 710 | net/ipv4/ipmr.c | vif->bytes_out+=skb->len; |
len | 734 | net/ipv4/ipmr.c | vif_table[vif].bytes_in+=skb->len; |
len | 789 | net/ipv4/ipmr.c | int len=0; |
len | 795 | net/ipv4/ipmr.c | len += sprintf(buffer, |
len | 797 | net/ipv4/ipmr.c | pos=len; |
len | 806 | net/ipv4/ipmr.c | size = sprintf(buffer+len, "%-10s %8ld %7ld %8ld %7ld %05X %08lX %08lX\n", |
len | 809 | net/ipv4/ipmr.c | len+=size; |
len | 813 | net/ipv4/ipmr.c | len=0; |
len | 821 | net/ipv4/ipmr.c | len-=(offset-begin); |
len | 822 | net/ipv4/ipmr.c | if(len>length) |
len | 823 | net/ipv4/ipmr.c | len=length; |
len | 824 | net/ipv4/ipmr.c | return len; |
len | 830 | net/ipv4/ipmr.c | int len=0; |
len | 836 | net/ipv4/ipmr.c | len += sprintf(buffer, |
len | 838 | net/ipv4/ipmr.c | pos=len; |
len | 866 | net/ipv4/ipmr.c | size = sprintf(buffer+len, "%08lX %08lX %-8s %s\n", |
len | 871 | net/ipv4/ipmr.c | len+=size; |
len | 875 | net/ipv4/ipmr.c | len=0; |
len | 889 | net/ipv4/ipmr.c | len-=(offset-begin); |
len | 890 | net/ipv4/ipmr.c | if(len>length) |
len | 891 | net/ipv4/ipmr.c | len=length; |
len | 892 | net/ipv4/ipmr.c | return len; |
len | 123 | net/ipv4/packet.c | static int packet_sendmsg(struct sock *sk, struct msghdr *msg, int len, |
len | 165 | net/ipv4/packet.c | if(len>dev->mtu+dev->hard_header_len) |
len | 168 | net/ipv4/packet.c | skb = sock_wmalloc(sk, len, 0, GFP_KERNEL); |
len | 187 | net/ipv4/packet.c | memcpy_fromiovec(skb_put(skb,len), msg->msg_iov, len); |
len | 198 | net/ipv4/packet.c | return(len); |
len | 379 | net/ipv4/packet.c | int packet_recvmsg(struct sock *sk, struct msghdr *msg, int len, |
len | 427 | net/ipv4/packet.c | copied = min(len, skb->len); |
len | 70 | net/ipv4/proc.c | int len=0; |
len | 75 | net/ipv4/proc.c | len += sprintf(buffer, "sl local_address rem_address st tx_queue rx_queue tr tm->when uid\n"); |
len | 112 | net/ipv4/proc.c | len += sprintf(buffer+len, "%2d: %08lX:%04X %08lX:%04X %02X %08lX:%08lX %02X:%08lX %08X %d %d\n", |
len | 127 | net/ipv4/proc.c | pos=begin+len; |
len | 130 | net/ipv4/proc.c | len=0; |
len | 144 | net/ipv4/proc.c | len-=(offset-begin); |
len | 145 | net/ipv4/proc.c | if(len>length) |
len | 146 | net/ipv4/proc.c | len=length; |
len | 147 | net/ipv4/proc.c | return len; |
len | 178 | net/ipv4/proc.c | int len = socket_get_info(buffer,start,offset,length); |
len | 180 | net/ipv4/proc.c | len += sprintf(buffer+len,"SOCK_ARRAY_SIZE=%d\n",SOCK_ARRAY_SIZE); |
len | 181 | net/ipv4/proc.c | len += sprintf(buffer+len,"TCP: inuse %d highest %d\n", |
len | 183 | net/ipv4/proc.c | len += sprintf(buffer+len,"UDP: inuse %d highest %d\n", |
len | 185 | net/ipv4/proc.c | len += sprintf(buffer+len,"RAW: inuse %d highest %d\n", |
len | 187 | net/ipv4/proc.c | len += sprintf(buffer+len,"PAC: inuse %d highest %d\n", |
len | 190 | net/ipv4/proc.c | len -= offset; |
len | 191 | net/ipv4/proc.c | if (len > length) |
len | 192 | net/ipv4/proc.c | len = length; |
len | 193 | net/ipv4/proc.c | return len; |
len | 205 | net/ipv4/proc.c | int len; |
len | 210 | net/ipv4/proc.c | len = sprintf (buffer, |
len | 224 | net/ipv4/proc.c | len += sprintf (buffer + len, |
len | 241 | net/ipv4/proc.c | len += sprintf (buffer + len, |
len | 251 | net/ipv4/proc.c | len += sprintf (buffer + len, |
len | 261 | net/ipv4/proc.c | if (offset >= len) |
len | 267 | net/ipv4/proc.c | len -= offset; |
len | 268 | net/ipv4/proc.c | if (len > length) |
len | 269 | net/ipv4/proc.c | len = length; |
len | 270 | net/ipv4/proc.c | return len; |
len | 479 | net/ipv4/rarp.c | int len=0; |
len | 490 | net/ipv4/rarp.c | len+=size; |
len | 497 | net/ipv4/rarp.c | len+=size; |
len | 509 | net/ipv4/rarp.c | size = sprintf(buffer+len, |
len | 520 | net/ipv4/rarp.c | len+=size; |
len | 521 | net/ipv4/rarp.c | pos=begin+len; |
len | 525 | net/ipv4/rarp.c | len=0; |
len | 535 | net/ipv4/rarp.c | len -= (offset-begin); /* Start slop */ |
len | 536 | net/ipv4/rarp.c | if (len>length) |
len | 537 | net/ipv4/rarp.c | len = length; /* Ending slop */ |
len | 538 | net/ipv4/rarp.c | return len; |
len | 181 | net/ipv4/raw.c | int len, int noblock, unsigned flags, struct sockaddr_in *usin, int addr_len) |
len | 226 | net/ipv4/raw.c | if(len>65535) |
len | 228 | net/ipv4/raw.c | err=ip_build_xmit(sk, raw_getrawfrag, from, len, sin.sin_addr.s_addr, 0, sk->opt, flags, sin.sin_port, noblock); |
len | 232 | net/ipv4/raw.c | if(len>65535-sizeof(struct iphdr)) |
len | 234 | net/ipv4/raw.c | err=ip_build_xmit(sk, raw_getfrag, from, len, sin.sin_addr.s_addr, 0, sk->opt, flags, sin.sin_port, noblock); |
len | 236 | net/ipv4/raw.c | return err<0?err:len; |
len | 244 | net/ipv4/raw.c | int len, int noblock, int flags) |
len | 247 | net/ipv4/raw.c | return raw_sendto(sk,msg->msg_iov[0].iov_base,len, noblock, flags, msg->msg_name, msg->msg_namelen); |
len | 259 | net/ipv4/raw.c | if(len>65515) |
len | 261 | net/ipv4/raw.c | buf=kmalloc(len, GFP_KERNEL); |
len | 264 | net/ipv4/raw.c | memcpy_fromiovec(buf, msg->msg_iov, len); |
len | 267 | net/ipv4/raw.c | err=raw_sendto(sk,buf,len, noblock, flags, msg->msg_name, msg->msg_namelen); |
len | 269 | net/ipv4/raw.c | kfree_s(buf,len); |
len | 298 | net/ipv4/raw.c | int raw_recvmsg(struct sock *sk, struct msghdr *msg, int len, |
len | 319 | net/ipv4/raw.c | copied = min(len, skb->len); |
len | 578 | net/ipv4/route.c | int len=128; |
len | 602 | net/ipv4/route.c | sprintf(buffer+len,"%-127s\n",temp); |
len | 603 | net/ipv4/route.c | len+=128; |
len | 607 | net/ipv4/route.c | len=0; |
len | 615 | net/ipv4/route.c | len-=(offset-begin); |
len | 616 | net/ipv4/route.c | if(len>length) |
len | 617 | net/ipv4/route.c | len=length; |
len | 618 | net/ipv4/route.c | return len; |
len | 707 | net/ipv4/tcp.c | if(dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, skb->len)<0) |
len | 1131 | net/ipv4/tcp.c | sum = skb->len -(counted - skb->h.th->seq); /* Length - header but start from where we are up to (avoid overlaps) */ |
len | 1305 | net/ipv4/tcp.c | unsigned short tcp_check(struct tcphdr *th, int len, |
len | 1308 | net/ipv4/tcp.c | return csum_tcpudp_magic(saddr,daddr,len,IPPROTO_TCP,base); |
len | 1314 | net/ipv4/tcp.c | unsigned long daddr, int len, struct sock *sk) |
len | 1317 | net/ipv4/tcp.c | th->check = tcp_check(th, len, saddr, daddr, |
len | 1318 | net/ipv4/tcp.c | csum_partial((char *)th,len,0)); |
len | 1336 | net/ipv4/tcp.c | size = skb->len - ((unsigned char *) th - skb->data); |
len | 1342 | net/ipv4/tcp.c | if (size < sizeof(struct tcphdr) || size > skb->len) |
len | 1345 | net/ipv4/tcp.c | skb, skb->data, th, skb->len); |
len | 1650 | net/ipv4/tcp.c | int len, int nonblock, int flags) |
len | 1802 | net/ipv4/tcp.c | copy = min(sk->mss - (skb->len - hdrlen), seglen); |
len | 1806 | net/ipv4/tcp.c | printk("TCP: **bug**: \"copy\" <= 0: %d - (%ld - %d) <= %d\n", sk->mss, skb->len, hdrlen, seglen); |
len | 1812 | net/ipv4/tcp.c | len -= copy; |
len | 1816 | net/ipv4/tcp.c | if ((skb->len - hdrlen) >= sk->mss || |
len | 1956 | net/ipv4/tcp.c | len -= copy; |
len | 2168 | net/ipv4/tcp.c | struct msghdr *msg, int len, int flags, int *addr_len) |
len | 2231 | net/ipv4/tcp.c | int len, int nonblock, int flags, int *addr_len) |
len | 2251 | net/ipv4/tcp.c | return tcp_recv_urg(sk, nonblock, msg, len, flags, addr_len); |
len | 2266 | net/ipv4/tcp.c | while (len > 0) |
len | 2294 | net/ipv4/tcp.c | if (offset < skb->len) |
len | 2364 | net/ipv4/tcp.c | used = skb->len - offset; |
len | 2365 | net/ipv4/tcp.c | if (len < used) |
len | 2366 | net/ipv4/tcp.c | used = len; |
len | 2406 | net/ipv4/tcp.c | len -= used; |
len | 2418 | net/ipv4/tcp.c | if (used + offset < skb->len) |
len | 3283 | net/ipv4/tcp.c | size = skb->len - (((unsigned char *) th) - skb->data); |
len | 3312 | net/ipv4/tcp.c | extern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len) |
len | 3388 | net/ipv4/tcp.c | if (len != th->doff*4) |
len | 3917 | net/ipv4/tcp.c | sk->fin_seq = th->seq + skb->len + th->syn + th->fin; |
len | 4003 | net/ipv4/tcp.c | unsigned long saddr, unsigned short len) |
len | 4012 | net/ipv4/tcp.c | skb_trim(skb,len-(th->doff*4)); |
len | 4019 | net/ipv4/tcp.c | sk->bytes_rcv += skb->len; |
len | 4021 | net/ipv4/tcp.c | if (skb->len == 0 && !th->fin) |
len | 4048 | net/ipv4/tcp.c | if(skb->len) /* We don't care if it's just an ack or |
len | 4051 | net/ipv4/tcp.c | new_seq= th->seq + skb->len + th->syn; /* Right edge of _data_ part of frame */ |
len | 4127 | net/ipv4/tcp.c | if (th->seq==skb1->h.th->seq && skb->len>= skb1->len) |
len | 4162 | net/ipv4/tcp.c | th->ack_seq = th->seq + skb->len; |
len | 4362 | net/ipv4/tcp.c | unsigned long saddr, unsigned long len) |
len | 4385 | net/ipv4/tcp.c | if (ptr >= len) |
len | 4638 | net/ipv4/tcp.c | extern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len, |
len | 4643 | net/ipv4/tcp.c | next_seq = len - 4*th->doff; |
len | 4728 | net/ipv4/tcp.c | __u32 daddr, unsigned short len, |
len | 4789 | net/ipv4/tcp.c | (skb->ip_summed && tcp_check(th, len, saddr, daddr, skb->csum ))|| |
len | 4790 | net/ipv4/tcp.c | (!skb->ip_summed && tcp_check(th, len, saddr, daddr, csum_partial((char *)th, len, 0))) |
len | 4932 | net/ipv4/tcp.c | if(!tcp_ack(sk,th,saddr,len)) |
len | 5051 | net/ipv4/tcp.c | if(!tcp_sequence(sk,th,len,opt,saddr,dev)) |
len | 5076 | net/ipv4/tcp.c | if(th->ack && !tcp_ack(sk,th,saddr,len)) |
len | 5111 | net/ipv4/tcp.c | if(tcp_urg(sk, th, saddr, len)) |
len | 5122 | net/ipv4/tcp.c | if(tcp_data(skb,sk, saddr, len)) |
len | 5276 | net/ipv4/tcp.c | ow_size = skb->len - win_size - |
len | 5280 | net/ipv4/tcp.c | skb_trim(skb,skb->len-win_size); |
len | 66 | net/ipv4/timer.c | void reset_timer (struct sock *t, int timeout, unsigned long len) |
len | 72 | net/ipv4/timer.c | if ((int) len < 0) /* prevent close to infinite timers. THEY _DO_ */ |
len | 73 | net/ipv4/timer.c | len = 3; /* happen (negative values ?) - don't ask me why ! -FB */ |
len | 75 | net/ipv4/timer.c | t->timer.expires = jiffies+len; |
len | 138 | net/ipv4/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 | 205 | net/ipv4/udp.c | static unsigned short udp_check(struct udphdr *uh, int len, unsigned long saddr, unsigned long daddr, unsigned long base) |
len | 207 | net/ipv4/udp.c | return(csum_tcpudp_magic(saddr, daddr, len, IPPROTO_UDP, base)); |
len | 230 | net/ipv4/udp.c | unsigned int len; |
len | 234 | net/ipv4/udp.c | len = fraglen; |
len | 240 | net/ipv4/udp.c | len = fraglen-sizeof(struct udphdr); |
len | 244 | net/ipv4/udp.c | ufh->wcheck = csum_partial_copy_fromuser(src, dst, len, ufh->wcheck); |
len | 250 | net/ipv4/udp.c | ntohs(ufh->uh.len), |
len | 270 | net/ipv4/udp.c | unsigned int len; |
len | 274 | net/ipv4/udp.c | len = fraglen; |
len | 280 | net/ipv4/udp.c | len = fraglen-sizeof(struct udphdr); |
len | 284 | net/ipv4/udp.c | memcpy_fromfs(dst,src,len); |
len | 295 | net/ipv4/udp.c | const unsigned char *from, int len, int rt, |
len | 298 | net/ipv4/udp.c | int ulen = len + sizeof(struct udphdr); |
len | 307 | net/ipv4/udp.c | ufh.uh.len = htons(ulen); |
len | 328 | net/ipv4/udp.c | return len; |
len | 332 | net/ipv4/udp.c | static int udp_sendto(struct sock *sk, const unsigned char *from, int len, int noblock, |
len | 392 | net/ipv4/udp.c | tmp = udp_send(sk, usin, from, len, flags, saddr, noblock); |
len | 404 | net/ipv4/udp.c | int len, int noblock, int flags) |
len | 407 | net/ipv4/udp.c | return udp_sendto(sk,msg->msg_iov[0].iov_base,len, noblock, flags, msg->msg_name, msg->msg_namelen); |
len | 419 | net/ipv4/udp.c | if(len>65515) |
len | 421 | net/ipv4/udp.c | buf=kmalloc(len, GFP_KERNEL); |
len | 424 | net/ipv4/udp.c | memcpy_fromiovec(buf, msg->msg_iov, len); |
len | 427 | net/ipv4/udp.c | err=udp_sendto(sk,buf,len, noblock, flags, msg->msg_name, msg->msg_namelen); |
len | 429 | net/ipv4/udp.c | kfree_s(buf,len); |
len | 471 | net/ipv4/udp.c | amount = skb->len; |
len | 493 | net/ipv4/udp.c | int udp_recvmsg(struct sock *sk, struct msghdr *msg, int len, |
len | 518 | net/ipv4/udp.c | truesize = skb->len - sizeof(struct udphdr); |
len | 519 | net/ipv4/udp.c | copied = min(len, truesize); |
len | 591 | net/ipv4/udp.c | __u32 daddr, unsigned short len, |
len | 614 | net/ipv4/udp.c | ulen = ntohs(uh->len); |
len | 616 | net/ipv4/udp.c | if (ulen > len || len < sizeof(*uh) || ulen < sizeof(*uh)) |
len | 618 | net/ipv4/udp.c | NETDEBUG(printk("UDP: short packet: %d/%d\n", ulen, len)); |
len | 632 | net/ipv4/udp.c | ( skb->ip_summed && udp_check(uh, len, saddr, daddr, skb->csum ) ) || |
len | 633 | net/ipv4/udp.c | ( !skb->ip_summed && udp_check(uh, len, saddr, daddr,csum_partial((char*)uh, len, 0))) |
len | 653 | net/ipv4/udp.c | len=ulen; |
len | 676 | net/ipv4/udp.c | udp_deliver(sk, uh, skb1, dev,saddr,daddr,len); |
len | 713 | net/ipv4/udp.c | return udp_deliver(sk,uh,skb,dev, saddr, daddr, len); |
len | 716 | net/ipv4/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 | 720 | net/ipv4/udp.c | skb_trim(skb,len); |
len | 437 | net/ipx/af_ipx.c | int len; |
len | 451 | net/ipx/af_ipx.c | memmove(skb->h.raw, oldraw, skb->len); |
len | 452 | net/ipx/af_ipx.c | skb->len += out_offset; |
len | 459 | net/ipx/af_ipx.c | len = skb->len + out_offset; |
len | 460 | net/ipx/af_ipx.c | skb2 = alloc_skb(len, GFP_ATOMIC); |
len | 463 | net/ipx/af_ipx.c | skb2->h.raw=skb_put(skb2,skb->len); |
len | 466 | net/ipx/af_ipx.c | memcpy(skb2->h.raw, skb->h.raw, skb->len); |
len | 1024 | net/ipx/af_ipx.c | static int ipxrtr_route_packet(ipx_socket *sk, struct sockaddr_ipx *usipx, struct iovec *iov, int len) |
len | 1050 | net/ipx/af_ipx.c | size=sizeof(ipx_packet)+len; |
len | 1064 | net/ipx/af_ipx.c | ipx->ipx_pktsize=htons(len+sizeof(ipx_packet)); |
len | 1076 | net/ipx/af_ipx.c | memcpy_fromiovec(skb_put(skb,len),iov,len); |
len | 1176 | net/ipx/af_ipx.c | int len=0; |
len | 1182 | net/ipx/af_ipx.c | len += sprintf (buffer,"%-11s%-15s%-9s%-11s%s\n", "Network", |
len | 1185 | net/ipx/af_ipx.c | len += sprintf(buffer+len, "%08lX ", ntohl(i->if_netnum)); |
len | 1186 | net/ipx/af_ipx.c | len += sprintf (buffer+len,"%02X%02X%02X%02X%02X%02X ", |
len | 1189 | net/ipx/af_ipx.c | len += sprintf(buffer+len, "%-9s", (i == ipx_primary_net) ? |
len | 1191 | net/ipx/af_ipx.c | len += sprintf (buffer+len, "%-11s", ipx_device_name(i)); |
len | 1192 | net/ipx/af_ipx.c | len += sprintf (buffer+len, "%s\n", |
len | 1196 | net/ipx/af_ipx.c | pos=begin+len; |
len | 1199 | net/ipx/af_ipx.c | len=0; /* Keep dumping into the buffer start */ |
len | 1208 | net/ipx/af_ipx.c | len-=(offset-begin); /* Remove unwanted header data from length */ |
len | 1209 | net/ipx/af_ipx.c | if(len>length) |
len | 1210 | net/ipx/af_ipx.c | len=length; /* Remove unwanted tail data from length */ |
len | 1212 | net/ipx/af_ipx.c | return len; |
len | 1220 | net/ipx/af_ipx.c | int len=0; |
len | 1226 | net/ipx/af_ipx.c | len += sprintf (buffer,"%-15s%-28s%-10s%-10s%-7s%s\n", "Local_Address", |
len | 1231 | net/ipx/af_ipx.c | len += sprintf (buffer+len,"%08lX:%04X ", |
len | 1235 | net/ipx/af_ipx.c | len += sprintf(buffer+len, "%-28s", "Not_Connected"); |
len | 1237 | net/ipx/af_ipx.c | len += sprintf (buffer+len, |
len | 1245 | net/ipx/af_ipx.c | len += sprintf (buffer+len,"%08lX %08lX ", |
len | 1247 | net/ipx/af_ipx.c | len += sprintf (buffer+len,"%02X %03d\n", |
len | 1251 | net/ipx/af_ipx.c | pos=begin+len; |
len | 1255 | net/ipx/af_ipx.c | len=0; /* Keep dumping into the buffer start */ |
len | 1265 | net/ipx/af_ipx.c | len-=(offset-begin); /* Remove unwanted header data from length */ |
len | 1266 | net/ipx/af_ipx.c | if(len>length) |
len | 1267 | net/ipx/af_ipx.c | len=length; /* Remove unwanted tail data from length */ |
len | 1269 | net/ipx/af_ipx.c | return len; |
len | 1276 | net/ipx/af_ipx.c | int len=0; |
len | 1280 | net/ipx/af_ipx.c | len += sprintf (buffer,"%-11s%-13s%s\n", |
len | 1284 | net/ipx/af_ipx.c | len += sprintf (buffer+len,"%08lX ", ntohl(rt->ir_net)); |
len | 1286 | net/ipx/af_ipx.c | len += sprintf (buffer+len,"%08lX %02X%02X%02X%02X%02X%02X\n", |
len | 1292 | net/ipx/af_ipx.c | len += sprintf (buffer+len, "%-13s%s\n", |
len | 1295 | net/ipx/af_ipx.c | pos=begin+len; |
len | 1298 | net/ipx/af_ipx.c | len=0; |
len | 1305 | net/ipx/af_ipx.c | len-=(offset-begin); |
len | 1306 | net/ipx/af_ipx.c | if(len>length) |
len | 1307 | net/ipx/af_ipx.c | len=length; |
len | 1308 | net/ipx/af_ipx.c | return len; |
len | 1411 | net/ipx/af_ipx.c | static void def_callback2(struct sock *sk, int len) |
len | 1644 | net/ipx/af_ipx.c | void dump_data(char *str,unsigned char *d, int len) { |
len | 1648 | net/ipx/af_ipx.c | for (l=0;len > 0 && l<16;l++) { |
len | 1650 | net/ipx/af_ipx.c | for (i=0; i < 8 ; i++, --len) { |
len | 1651 | net/ipx/af_ipx.c | if (len > 0) { |
len | 1663 | net/ipx/af_ipx.c | len += 8; |
len | 1664 | net/ipx/af_ipx.c | for (i=0; i < 8 ; i++, --len) |
len | 1665 | net/ipx/af_ipx.c | if (len > 0) |
len | 1690 | net/ipx/af_ipx.c | int len = ntohs(p->ipx_pktsize); |
len | 1692 | net/ipx/af_ipx.c | if (len > 30) |
len | 1693 | net/ipx/af_ipx.c | dump_data(str,(unsigned char *)p + 30, len - 30); |
len | 1737 | net/ipx/af_ipx.c | static int ipx_sendmsg(struct socket *sock, struct msghdr *msg, int len, int noblock, |
len | 1774 | net/ipx/af_ipx.c | retval = ipxrtr_route_packet(sk, usipx, msg->msg_iov, len); |
len | 1777 | net/ipx/af_ipx.c | return len; |
len | 1857 | net/ipx/af_ipx.c | amount=skb->len; |
len | 102 | net/netlink.c | rdq_size[minor]-=skb->len; |
len | 104 | net/netlink.c | if(skb->len<count) |
len | 105 | net/netlink.c | count=skb->len; |
len | 201 | net/netlink.c | if(rdq_size[unit]+skb->len>MAX_QBYTES) |
len | 206 | net/netlink.c | rdq_size[unit]+=skb->len; |
len | 415 | net/netrom/af_netrom.c | static void def_callback2(struct sock *sk, int len) |
len | 953 | net/netrom/af_netrom.c | if ((frametype & 0x0F) == NR_CONNACK && skb->len == 22) |
len | 996 | net/netrom/af_netrom.c | if (skb->len == 37) { |
len | 1023 | net/netrom/af_netrom.c | sk->data_ready(sk, skb->len); |
len | 1028 | net/netrom/af_netrom.c | static int nr_sendmsg(struct socket *sock, struct msghdr *msg, int len, int noblock, int flags) |
len | 1072 | net/netrom/af_netrom.c | size = len + AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + NR_NETWORK_LEN + NR_TRANSPORT_LEN; |
len | 1081 | net/netrom/af_netrom.c | skb_reserve(skb, size - len); |
len | 1107 | net/netrom/af_netrom.c | skb->h.raw = skb_put(skb, len); |
len | 1115 | net/netrom/af_netrom.c | memcpy_fromiovec(asmptr, msg->msg_iov, len); |
len | 1127 | net/netrom/af_netrom.c | return len; |
len | 1162 | net/netrom/af_netrom.c | copied = (size < skb->len) ? size : skb->len; |
len | 1214 | net/netrom/af_netrom.c | amount = skb->len - 20; |
len | 1286 | net/netrom/af_netrom.c | int len = 0; |
len | 1292 | net/netrom/af_netrom.c | len += sprintf(buffer, "user_addr dest_node src_node dev my your st vs vr va t1 t2 n2 rtt wnd Snd-Q Rcv-Q\n"); |
len | 1300 | net/netrom/af_netrom.c | len += sprintf(buffer + len, "%-9s ", |
len | 1302 | net/netrom/af_netrom.c | len += sprintf(buffer + len, "%-9s ", |
len | 1304 | net/netrom/af_netrom.c | len += sprintf(buffer + len, "%-9s %-3s %02X/%02X %02X/%02X %2d %2d %2d %2d %3d/%03d %2d/%02d %2d/%02d %3d %3d %5ld %5ld\n", |
len | 1319 | net/netrom/af_netrom.c | pos = begin + len; |
len | 1322 | net/netrom/af_netrom.c | len = 0; |
len | 1333 | net/netrom/af_netrom.c | len -= (offset - begin); |
len | 1335 | net/netrom/af_netrom.c | if (len > length) len = length; |
len | 1337 | net/netrom/af_netrom.c | return(len); |
len | 76 | net/netrom/nr_dev.c | void *daddr, void *saddr, unsigned len) |
len | 58 | net/netrom/nr_in.c | sk->nr->fraglen += skb->len; |
len | 64 | net/netrom/nr_in.c | sk->nr->fraglen += skb->len; |
len | 77 | net/netrom/nr_in.c | memcpy(skb_put(skbn, skbo->len), skbo->data, skbo->len); |
len | 82 | net/netrom/nr_in.c | memcpy(skb_put(skbn, skbo->len), skbo->data, skbo->len); |
len | 53 | net/netrom/nr_out.c | int err, frontlen, len, mtu; |
len | 57 | net/netrom/nr_out.c | if (skb->len - NR_TRANSPORT_LEN > mtu) { |
len | 64 | net/netrom/nr_out.c | while (skb->len > 0) { |
len | 74 | net/netrom/nr_out.c | len = (mtu > skb->len) ? skb->len : mtu; |
len | 77 | net/netrom/nr_out.c | memcpy(skb_put(skbn, len), skb->data, len); |
len | 78 | net/netrom/nr_out.c | skb_pull(skb, len); |
len | 84 | net/netrom/nr_out.c | if (skb->len > 0) |
len | 715 | net/netrom/nr_route.c | int len = 0; |
len | 722 | net/netrom/nr_route.c | len += sprintf(buffer, "callsign mnemonic w n qual obs neigh qual obs neigh qual obs neigh\n"); |
len | 725 | net/netrom/nr_route.c | len += sprintf(buffer + len, "%-9s %-7s %d %d", |
len | 732 | net/netrom/nr_route.c | len += sprintf(buffer + len, " %3d %d %05d", |
len | 738 | net/netrom/nr_route.c | len += sprintf(buffer + len, "\n"); |
len | 740 | net/netrom/nr_route.c | pos = begin + len; |
len | 743 | net/netrom/nr_route.c | len = 0; |
len | 754 | net/netrom/nr_route.c | len -= (offset - begin); |
len | 756 | net/netrom/nr_route.c | if (len > length) len = length; |
len | 758 | net/netrom/nr_route.c | return(len); |
len | 765 | net/netrom/nr_route.c | int len = 0; |
len | 771 | net/netrom/nr_route.c | len += sprintf(buffer, "addr callsign dev qual lock count\n"); |
len | 774 | net/netrom/nr_route.c | len += sprintf(buffer + len, "%05d %-9s %-4s %3d %d %3d\n", |
len | 782 | net/netrom/nr_route.c | pos = begin + len; |
len | 785 | net/netrom/nr_route.c | len = 0; |
len | 796 | net/netrom/nr_route.c | len -= (offset - begin); |
len | 798 | net/netrom/nr_route.c | if (len > length) len = length; |
len | 800 | net/netrom/nr_route.c | return(len); |
len | 155 | net/netrom/nr_subr.c | int len, timeout; |
len | 157 | net/netrom/nr_subr.c | len = AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + NR_NETWORK_LEN + NR_TRANSPORT_LEN; |
len | 161 | net/netrom/nr_subr.c | len += 17; |
len | 164 | net/netrom/nr_subr.c | len += (sk->nr->bpqext) ? 2 : 1; |
len | 175 | net/netrom/nr_subr.c | if ((skb = alloc_skb(len, GFP_ATOMIC)) == NULL) |
len | 250 | net/netrom/nr_subr.c | int len; |
len | 252 | net/netrom/nr_subr.c | len = AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + NR_NETWORK_LEN + NR_TRANSPORT_LEN + 1; |
len | 254 | net/netrom/nr_subr.c | if ((skbn = alloc_skb(len, GFP_ATOMIC)) == NULL) |
len | 138 | net/socket.c | int len; |
len | 143 | net/socket.c | len=get_user(ulen); |
len | 144 | net/socket.c | if(len>klen) |
len | 145 | net/socket.c | len=klen; |
len | 146 | net/socket.c | if(len<0 || len> MAX_SOCK_ADDR) |
len | 148 | net/socket.c | if(len) |
len | 150 | net/socket.c | if((err=verify_area(VERIFY_WRITE,uaddr,len))<0) |
len | 152 | net/socket.c | memcpy_tofs(uaddr,kaddr,len); |
len | 154 | net/socket.c | put_user(len,ulen); |
len | 705 | net/socket.c | int len; |
len | 749 | net/socket.c | newsock->ops->getname(newsock, (struct sockaddr *)address, &len, 1); |
len | 750 | net/socket.c | move_addr_to_user(address,len, upeer_sockaddr, upeer_addrlen); |
len | 816 | net/socket.c | int len; |
len | 824 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 0); |
len | 827 | net/socket.c | if((err=move_addr_to_user(address,len, usockaddr, usockaddr_len))<0) |
len | 841 | net/socket.c | int len; |
len | 849 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 1); |
len | 852 | net/socket.c | if((err=move_addr_to_user(address,len, usockaddr, usockaddr_len))<0) |
len | 862 | net/socket.c | asmlinkage int sys_send(int fd, void * buff, int len, unsigned flags) |
len | 875 | net/socket.c | if(len<0) |
len | 877 | net/socket.c | err=verify_area(VERIFY_READ, buff, len); |
len | 887 | net/socket.c | return(sock->ops->sendmsg(sock, &msg, len, (file->f_flags & O_NONBLOCK), flags)); |
len | 896 | net/socket.c | asmlinkage int sys_sendto(int fd, void * buff, int len, unsigned flags, |
len | 911 | net/socket.c | if(len<0) |
len | 913 | net/socket.c | err=verify_area(VERIFY_READ,buff,len); |
len | 921 | net/socket.c | iov.iov_len=len; |
len | 927 | net/socket.c | return(sock->ops->sendmsg(sock, &msg, len, (file->f_flags & O_NONBLOCK), |
len | 1120 | net/socket.c | int len; |
len | 1140 | net/socket.c | len=sock->ops->recvmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags, &addr_len); |
len | 1141 | net/socket.c | if(len<0) |
len | 1142 | net/socket.c | return len; |
len | 1148 | net/socket.c | return len; |
len | 1382 | net/socket.c | int len = sprintf(buffer, "sockets: used %d\n", sockets_in_use); |
len | 1383 | net/socket.c | if (offset >= len) |
len | 1389 | net/socket.c | len -= offset; |
len | 1390 | net/socket.c | if (len > length) |
len | 1391 | net/socket.c | len = length; |
len | 1392 | net/socket.c | return len; |
len | 73 | net/unix/af_unix.c | static inline void unix_mkname(struct sockaddr_un * sunaddr, unsigned long len) |
len | 75 | net/unix/af_unix.c | if (len >= sizeof(*sunaddr)) |
len | 76 | net/unix/af_unix.c | len = sizeof(*sunaddr)-1; |
len | 77 | net/unix/af_unix.c | ((char *)sunaddr)[len]=0; |
len | 252 | net/unix/af_unix.c | static void def_callback2(struct sock *sk, int len) |
len | 678 | net/unix/af_unix.c | static int unix_sendmsg(struct socket *sock, struct msghdr *msg, int len, int nonblock, int flags) |
len | 714 | net/unix/af_unix.c | while(sent < len) |
len | 721 | net/unix/af_unix.c | size=len-sent; |
len | 821 | net/unix/af_unix.c | int len; |
len | 840 | net/unix/af_unix.c | len=iov->iov_len; |
len | 843 | net/unix/af_unix.c | while(done<len) |
len | 878 | net/unix/af_unix.c | num=min(skb->len,size-copied); |
len | 886 | net/unix/af_unix.c | if (skb->len) { |
len | 959 | net/unix/af_unix.c | amount=skb->len; |
len | 976 | net/unix/af_unix.c | int len=0; |
len | 979 | net/unix/af_unix.c | len+= sprintf(buffer,"Num RefCount Protocol Flags Type St Path\n"); |
len | 983 | net/unix/af_unix.c | len+=sprintf(buffer+len,"%p: %08X %08X %08lX %04X %02X", |
len | 991 | net/unix/af_unix.c | len+=sprintf(buffer+len, " %s\n", s->protinfo.af_unix.name); |
len | 993 | net/unix/af_unix.c | buffer[len++]='\n'; |
len | 995 | net/unix/af_unix.c | pos=begin+len; |
len | 998 | net/unix/af_unix.c | len=0; |
len | 1006 | net/unix/af_unix.c | len-=(offset-begin); |
len | 1007 | net/unix/af_unix.c | if(len>length) |
len | 1008 | net/unix/af_unix.c | len=length; |
len | 1009 | net/unix/af_unix.c | return len; |