tag | line | file | source code |
len | 93 | arch/alpha/kernel/irq.c | int i, len = 0; |
len | 99 | arch/alpha/kernel/irq.c | len += sprintf(buf+len, "%2d: %8d %c %s\n", |
len | 104 | 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 | 165 | arch/i386/kernel/irq.c | int i, len = 0; |
len | 171 | arch/i386/kernel/irq.c | len += sprintf(buf+len, "%2d: %8d %c %s\n", |
len | 176 | arch/i386/kernel/irq.c | return len; |
len | 84 | arch/i386/kernel/setup.c | int len = 0; |
len | 129 | arch/i386/kernel/setup.c | if (COMMAND_LINE_SIZE <= ++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 | 740 | drivers/block/ide-cd.c | int cdrom_read_check_ireason (ide_drive_t *drive, int len, int ireason) |
len | 754 | drivers/block/ide-cd.c | while (len > 0) |
len | 758 | drivers/block/ide-cd.c | len -= 2; |
len | 781 | drivers/block/ide-cd.c | int ireason, len, sectors_to_transfer, nskip; |
len | 790 | drivers/block/ide-cd.c | len = IN_BYTE (IDE_LCYL_REG) + 256 * IN_BYTE (IDE_HCYL_REG); |
len | 811 | drivers/block/ide-cd.c | if (cdrom_read_check_ireason (drive, len, ireason)) return; |
len | 815 | drivers/block/ide-cd.c | if ((len % SECTOR_SIZE) != 0) |
len | 818 | drivers/block/ide-cd.c | drive->name, len); |
len | 826 | drivers/block/ide-cd.c | sectors_to_transfer = len / SECTOR_SIZE; |
len | 1079 | drivers/block/ide-cd.c | int ireason, len, stat, thislen; |
len | 1088 | drivers/block/ide-cd.c | len = IN_BYTE (IDE_LCYL_REG) + 256 * IN_BYTE (IDE_HCYL_REG); |
len | 1119 | drivers/block/ide-cd.c | if (thislen > len) thislen = len; |
len | 1138 | drivers/block/ide-cd.c | while (len > thislen) |
len | 1142 | drivers/block/ide-cd.c | len -= 2; |
len | 1167 | drivers/block/ide-cd.c | while (len > thislen) |
len | 1171 | drivers/block/ide-cd.c | len -= 2; |
len | 1208 | drivers/block/ide-cd.c | int len; |
len | 1212 | drivers/block/ide-cd.c | len = pc->buflen; |
len | 1213 | drivers/block/ide-cd.c | if (len < 0) len = -len; |
len | 1217 | drivers/block/ide-cd.c | if (cdrom_start_packet_command (drive, 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 | 310 | drivers/block/sjcd.c | static int sjcd_load_response( void *buf, int len ){ |
len | 313 | drivers/block/sjcd.c | for( ; len; --len ){ |
len | 319 | drivers/block/sjcd.c | return( len ); |
len | 374 | drivers/net/3c501.c | int gp_start = 0x800 - (ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN); |
len | 398 | drivers/net/3c501.c | outsb(DATAPORT,buf,skb->len); /* load buffer (usual thing each byte increments the pointer) */ |
len | 77 | drivers/net/3c505.c | #define INVALID_PCB_MSG(len) \ |
len | 78 | drivers/net/3c505.c | printk(invalid_pcb_msg, (len),filename,__FUNCTION__,__LINE__) |
len | 547 | drivers/net/3c505.c | receive_packet (struct device * dev, int len) |
len | 559 | drivers/net/3c505.c | if (len <= 0 || ((len & ~1) != len)) |
len | 562 | drivers/net/3c505.c | printk("*** bad packet len %d at %s(%d)\n",len,filename,__LINE__); |
len | 566 | drivers/net/3c505.c | rlen = (len+1) & ~1; |
len | 601 | drivers/net/3c505.c | ptr = (unsigned short *)skb_put(skb,len); |
len | 636 | drivers/net/3c505.c | int len; |
len | 689 | drivers/net/3c505.c | len = adapter->irx_pcb.data.rcv_resp.pkt_len; |
len | 697 | drivers/net/3c505.c | printk("%s: interrupt - packet received of length %i (%i)\n", dev->name, len, dlen); |
len | 940 | drivers/net/3c505.c | send_packet (struct device * dev, unsigned char * ptr, int len) |
len | 949 | drivers/net/3c505.c | unsigned int nlen = (((len < 60) ? 60 : len) + 1) & (~1); |
len | 956 | drivers/net/3c505.c | if (nlen < len) |
len | 957 | drivers/net/3c505.c | printk("Warning, bad length nlen=%d len=%d %s(%d)\n",nlen,len,filename,__LINE__); |
len | 1018 | drivers/net/3c505.c | if (skb->len <= 0) |
len | 1022 | drivers/net/3c505.c | printk("%s: request to send packet of length %d\n", dev->name, (int)skb->len); |
len | 1043 | drivers/net/3c505.c | if (!send_packet(dev, skb->data, skb->len)) { |
len | 1049 | drivers/net/3c505.c | printk("%s: packet of length %d sent\n", dev->name, (int)skb->len); |
len | 499 | drivers/net/3c507.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 412 | drivers/net/3c509.c | if (skb->len <= 0) |
len | 417 | drivers/net/3c509.c | dev->name, skb->len, inw(ioaddr + EL3_STATUS)); |
len | 441 | drivers/net/3c509.c | outw(skb->len, ioaddr + TX_FIFO); |
len | 444 | drivers/net/3c509.c | outsl(ioaddr + TX_FIFO, skb->data, (skb->len + 3) >> 2); |
len | 180 | drivers/net/8390.c | length = skb->len; |
len | 181 | drivers/net/8390.c | if (skb->len <= 0) |
len | 620 | drivers/net/apricot.c | if (skb->len <= 0) return 0; |
len | 630 | drivers/net/apricot.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 478 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len, |
len | 482 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len); |
len | 1166 | drivers/net/arcnet.c | out->length = 1 < skb->len ? skb->len : 1; |
len | 1173 | drivers/net/arcnet.c | for( i=0; i< skb->len; i++) |
len | 1484 | drivers/net/arcnet.c | short offset,length=skb->len+1; |
len | 1541 | drivers/net/arcnet.c | memcpy(arcsoft,skb->data,skb->len); |
len | 1954 | drivers/net/arcnet.c | skb->len = length; |
len | 2002 | drivers/net/arcnet.c | for( i=0; i< skb->len; i++) |
len | 2096 | drivers/net/arcnet.c | skb->len=sizeof(struct ClientData); |
len | 2147 | drivers/net/arcnet.c | memcpy(skb->data+skb->len, |
len | 2151 | drivers/net/arcnet.c | skb->len+=length-sizeof(struct ClientData); |
len | 2168 | drivers/net/arcnet.c | for( i=0; i< skb->len; i++) |
len | 2208 | drivers/net/arcnet.c | skb->len = length; |
len | 2217 | drivers/net/arcnet.c | for(i=0; i<skb->len; i++) |
len | 2282 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len, |
len | 2286 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len) |
len | 414 | drivers/net/at1700.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 448 | drivers/net/atp.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 422 | drivers/net/de4x5.c | static void create_packet(struct device *dev, char *frame, int len); |
len | 985 | drivers/net/de4x5.c | if (lp->skb[i]->len != FAKE_FRAME_LEN) { |
len | 997 | drivers/net/de4x5.c | if (skb->len != FAKE_FRAME_LEN) { |
len | 1032 | drivers/net/de4x5.c | } else if (skb->len == FAKE_FRAME_LEN) { /* Don't TX a fake frame! */ |
len | 1034 | drivers/net/de4x5.c | } else if (skb->len > 0) { |
len | 1042 | drivers/net/de4x5.c | load_packet(dev, skb->data, TD_IC | TD_LS | TD_FS | skb->len, skb); |
len | 1161 | drivers/net/de4x5.c | short len = (lp->rxRingSize - lp->rx_old) * RX_BUFF_SZ; |
len | 1162 | drivers/net/de4x5.c | memcpy(skb_put(skb,len), bus_to_virt(lp->rx_ring[lp->rx_old].buf), len); |
len | 1163 | drivers/net/de4x5.c | memcpy(skb_put(skb,pkt_len-len), bus_to_virt(lp->rx_ring[0].buf), pkt_len - len); |
len | 2125 | drivers/net/de4x5.c | static void create_packet(struct device *dev, char *frame, int len) |
len | 2481 | drivers/net/de4x5.c | skb->len= FAKE_FRAME_LEN; |
len | 2509 | drivers/net/de4x5.c | ioc->len = ETH_ALEN; |
len | 2510 | drivers/net/de4x5.c | status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len); |
len | 2516 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 2571 | drivers/net/de4x5.c | ioc->len = (HASH_TABLE_LEN >> 3); |
len | 2572 | drivers/net/de4x5.c | status = verify_area(VERIFY_WRITE, ioc->data, ioc->len); |
len | 2575 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, lp->setup_frame, ioc->len); |
len | 2580 | drivers/net/de4x5.c | if (ioc->len != HASH_TABLE_LEN) { /* MCA changes */ |
len | 2581 | drivers/net/de4x5.c | if (!(status = verify_area(VERIFY_READ, (void *)ioc->data, ETH_ALEN * ioc->len))) { |
len | 2582 | drivers/net/de4x5.c | memcpy_fromfs(tmp.addr, ioc->data, ETH_ALEN * ioc->len); |
len | 2583 | drivers/net/de4x5.c | set_multicast_list(dev, ioc->len, tmp.addr); |
len | 2586 | drivers/net/de4x5.c | set_multicast_list(dev, ioc->len, NULL); |
len | 2612 | drivers/net/de4x5.c | ioc->len = sizeof(lp->pktStats); |
len | 2613 | drivers/net/de4x5.c | status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len); |
len | 2618 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, &lp->pktStats, ioc->len); |
len | 2660 | drivers/net/de4x5.c | ioc->len = j; |
len | 2661 | drivers/net/de4x5.c | if (!(status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len))) { |
len | 2662 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 2723 | drivers/net/de4x5.c | ioc->len = j; |
len | 2724 | drivers/net/de4x5.c | if (!(status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len))) { |
len | 2725 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 624 | drivers/net/de4x5.h | unsigned short len; /* Length of the data buffer */ |
len | 407 | drivers/net/de600.c | int len; |
len | 441 | drivers/net/de600.c | PRINTK(("de600_start_xmit:len=%d, page %d/%d\n", skb->len, tx_fifo_in, free_tx_pages)); |
len | 443 | drivers/net/de600.c | if ((len = skb->len) < RUNT) |
len | 444 | drivers/net/de600.c | len = RUNT; |
len | 448 | drivers/net/de600.c | tx_fifo[tx_fifo_in] = transmit_from = tx_page_adr(tx_fifo_in) - len; |
len | 464 | drivers/net/de600.c | for ( ; len > 0; --len, ++buffer) |
len | 488 | drivers/net/de620.c | int len; |
len | 524 | drivers/net/de620.c | if ((len = skb->len) < RUNT) |
len | 525 | drivers/net/de620.c | len = RUNT; |
len | 526 | drivers/net/de620.c | if (len & 1) /* send an even number of bytes */ |
len | 527 | drivers/net/de620.c | ++len; |
len | 534 | drivers/net/de620.c | (int)skb->len, using_txbuf)); |
len | 555 | drivers/net/de620.c | de620_write_block(dev, buffer, len); |
len | 838 | drivers/net/depca.c | } else if (skb->len > 0) { |
len | 943 | drivers/net/depca.c | short len, pkt_len = readw(&lp->rx_ring[entry].msg_length); |
len | 953 | drivers/net/depca.c | len = (lp->rxRingMask - lp->rx_old + 1) * RX_BUFF_SZ; |
len | 954 | drivers/net/depca.c | memcpy_fromio(buf, lp->rx_memcpy[lp->rx_old], len); |
len | 955 | drivers/net/depca.c | memcpy_fromio(buf + len, lp->rx_memcpy[0], pkt_len-len); |
len | 1568 | drivers/net/depca.c | int i, entry, end, len, status = 0; |
len | 1571 | drivers/net/depca.c | end = (entry + (skb->len - 1) / TX_BUFF_SZ) & lp->txRingMask; |
len | 1578 | drivers/net/depca.c | len = (lp->txRingMask - entry + 1) * TX_BUFF_SZ; |
len | 1579 | drivers/net/depca.c | memcpy_toio(lp->tx_memcpy[entry], skb->data, len); |
len | 1580 | drivers/net/depca.c | memcpy_toio(lp->tx_memcpy[0], skb->data + len, skb->len - len); |
len | 1582 | drivers/net/depca.c | memcpy_toio(lp->tx_memcpy[entry], skb->data, skb->len); |
len | 1586 | drivers/net/depca.c | len = (skb->len < ETH_ZLEN) ? ETH_ZLEN : skb->len; |
len | 1592 | drivers/net/depca.c | len -= TX_BUFF_SZ; |
len | 1597 | drivers/net/depca.c | writew(-len, &lp->tx_ring[end].length); /* packet length in last buff */ |
len | 1674 | drivers/net/depca.c | ioc->len = ETH_ALEN; |
len | 1675 | drivers/net/depca.c | if (!(status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len))) { |
len | 1676 | drivers/net/depca.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 1743 | drivers/net/depca.c | ioc->len = (HASH_TABLE_LEN >> 3); |
len | 1744 | drivers/net/depca.c | if (!(status = verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
len | 1745 | drivers/net/depca.c | memcpy_tofs(ioc->data, lp->init_block.mcast_table, ioc->len); |
len | 1751 | drivers/net/depca.c | if (ioc->len != HASH_TABLE_LEN) { /* MCA changes */ |
len | 1752 | drivers/net/depca.c | if (!(status=verify_area(VERIFY_READ, ioc->data, ETH_ALEN*ioc->len))) { |
len | 1753 | drivers/net/depca.c | memcpy_fromfs(tmp.addr, ioc->data, ETH_ALEN * ioc->len); |
len | 1754 | drivers/net/depca.c | set_multicast_list(dev, ioc->len, tmp.addr); |
len | 1757 | drivers/net/depca.c | set_multicast_list(dev, ioc->len, NULL); |
len | 1782 | drivers/net/depca.c | ioc->len = sizeof(lp->pktStats); |
len | 1783 | drivers/net/depca.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
len | 1784 | drivers/net/depca.c | memcpy_tofs(ioc->data, &lp->pktStats, ioc->len); |
len | 1805 | drivers/net/depca.c | ioc->len = i+sizeof(struct depca_init); |
len | 1806 | drivers/net/depca.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
len | 1807 | 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 | 650 | drivers/net/eepro.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 497 | drivers/net/eexpress.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 154 | drivers/net/eql.c | unsigned len); /* */ |
len | 378 | drivers/net/eql.c | dev->name, eql_number_slaves (eql->queue), skb->len, |
len | 384 | drivers/net/eql.c | slave->bytes_queued += skb->len; |
len | 412 | drivers/net/eql.c | unsigned len) |
len | 798 | drivers/net/ewrk3.c | } else if (skb->len > 0) { |
len | 851 | drivers/net/ewrk3.c | outb((char)(skb->len & 0xff), EWRK3_DATA); |
len | 852 | drivers/net/ewrk3.c | outb((char)((skb->len >> 8) & 0xff), EWRK3_DATA); |
len | 854 | drivers/net/ewrk3.c | for (i=0; i<skb->len; i++) { |
len | 860 | drivers/net/ewrk3.c | *buf++ = (char)(skb->len & 0xff); /* length (16 bit xfer)*/ |
len | 862 | drivers/net/ewrk3.c | *buf++ = (char)(((skb->len >> 8) & 0xff) | XCT); |
len | 864 | drivers/net/ewrk3.c | *(buf + skb->len) = 0x00; /* Write the XCT flag */ |
len | 867 | drivers/net/ewrk3.c | memcpy(buf + PRELOAD, skb->data + PRELOAD, skb->len - PRELOAD); |
len | 868 | drivers/net/ewrk3.c | *(buf + skb->len) = 0xff; /* Write the XCT flag */ |
len | 870 | drivers/net/ewrk3.c | *buf++ = (char)((skb->len >> 8) & 0xff); |
len | 872 | drivers/net/ewrk3.c | memcpy(buf, skb->data, skb->len); /* Write data bytes */ |
len | 1628 | drivers/net/ewrk3.c | ioc->len = ETH_ALEN; |
len | 1632 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 1696 | drivers/net/ewrk3.c | ioc->len = (HASH_TABLE_LEN >> 3); |
len | 1697 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 1703 | drivers/net/ewrk3.c | err = verify_area(VERIFY_READ, (void *)ioc->data, ETH_ALEN * ioc->len); |
len | 1706 | drivers/net/ewrk3.c | if (ioc->len != HASH_TABLE_LEN) { /* MCA changes */ |
len | 1707 | drivers/net/ewrk3.c | memcpy_fromfs(tmp.addr, ioc->data, ETH_ALEN * ioc->len); |
len | 1709 | drivers/net/ewrk3.c | set_multicast_list(dev, ioc->len, tmp.addr); |
len | 1740 | drivers/net/ewrk3.c | ioc->len = EWRK3_PKT_STAT_SZ; |
len | 1776 | drivers/net/ewrk3.c | err = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len); |
len | 1787 | drivers/net/ewrk3.c | ioc->len = EEPROM_MAX + 1 + ETH_ALEN; |
len | 1788 | 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 | 605 | drivers/net/hp100.c | if ( ( i = ( hp100_inl( TX_MEM_FREE ) & ~0x7fffffff ) ) < skb -> len + 16 ) |
len | 655 | drivers/net/hp100.c | if ( skb -> len <= 0 ) return 0; |
len | 668 | drivers/net/hp100.c | printk( "hp100_start_xmit: irq_status = 0x%x, len = %d\n", val, (int)skb -> len ); |
len | 670 | drivers/net/hp100.c | ok_flag = skb -> len >= HP100_MIN_PACKET_SIZE; |
len | 671 | drivers/net/hp100.c | i = ok_flag ? skb -> len : HP100_MIN_PACKET_SIZE; |
len | 678 | drivers/net/hp100.c | memcpy( lp -> mem_ptr_virt, skb -> data, skb -> len ); |
len | 680 | drivers/net/hp100.c | memset( lp -> mem_ptr_virt, 0, HP100_MIN_PACKET_SIZE - skb -> len ); |
len | 684 | drivers/net/hp100.c | memcpy_toio( lp -> mem_ptr_phys, skb -> data, skb -> len ); |
len | 686 | drivers/net/hp100.c | memset_io( lp -> mem_ptr_phys, 0, HP100_MIN_PACKET_SIZE - skb -> len ); |
len | 691 | drivers/net/hp100.c | outsl( ioaddr + HP100_REG_DATA32, skb -> data, ( skb -> len + 3 ) >> 2 ); |
len | 693 | drivers/net/hp100.c | for ( i = ( skb -> len + 3 ) & ~3; i < HP100_MIN_PACKET_SIZE; i += 4 ) |
len | 1018 | drivers/net/ibmtr.c | ti->current_skb->len-18)); |
len | 1028 | drivers/net/ibmtr.c | ti->current_skb->len-18+hdr_len); |
len | 1038 | drivers/net/ibmtr.c | xmit_resp->frame_length=htons(ti->current_skb->len |
len | 1043 | drivers/net/ibmtr.c | ti->current_skb->len-sizeof(struct trh_hdr)); |
len | 756 | drivers/net/lance.c | if (skb->len <= 0) |
len | 791 | drivers/net/lance.c | -(ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN); |
len | 793 | drivers/net/lance.c | lp->tx_ring[entry].length = -skb->len; |
len | 799 | drivers/net/lance.c | if ((int)(skb->data) + skb->len > 0x01000000) { |
len | 803 | drivers/net/lance.c | memcpy(&lp->tx_bounce_buffs[entry], skb->data, skb->len); |
len | 601 | drivers/net/ni52.c | int len = ((char *) p->iscp - (char *) ptr - 8) / 6; |
len | 602 | drivers/net/ni52.c | if(len <= 0) |
len | 608 | drivers/net/ni52.c | if(len < num_addrs) |
len | 610 | drivers/net/ni52.c | num_addrs = len; |
len | 927 | drivers/net/ni52.c | int len,i; |
len | 975 | drivers/net/ni52.c | if (skb->len <= 0) |
len | 977 | drivers/net/ni52.c | if(skb->len > XMIT_BUFF_SIZE) |
len | 979 | 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 | 987 | drivers/net/ni52.c | memcpy((char *)p->xmit_cbuffs[p->xmit_count],(char *)(skb->data),skb->len); |
len | 988 | drivers/net/ni52.c | len = (ETH_ZLEN < skb->len) ? skb->len : ETH_ZLEN; |
len | 992 | drivers/net/ni52.c | p->xmit_buffs[0]->size = TBD_LAST | len; |
len | 1013 | drivers/net/ni52.c | p->xmit_buffs[0]->size = TBD_LAST | len; |
len | 1025 | drivers/net/ni52.c | p->xmit_buffs[p->xmit_count]->size = TBD_LAST | len; |
len | 497 | drivers/net/ni65.c | int rmdstat,len; |
len | 526 | drivers/net/ni65.c | len = (rmdp->mlen & 0x0fff) - 4; /* -4: ignore FCS */ |
len | 531 | drivers/net/ni65.c | memcpy(skb_put(skb,len),p->recv_skb[p->rmdnum]->data,len); |
len | 537 | drivers/net/ni65.c | rmdp->u.buffer = (unsigned long) skb_put(skb1,len); |
len | 585 | drivers/net/ni65.c | if (skb->len <= 0) |
len | 600 | drivers/net/ni65.c | short len = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 608 | drivers/net/ni65.c | memcpy((char *) (tmdp->u.buffer & 0x00ffffff),(char *)skb->data,skb->len); |
len | 611 | drivers/net/ni65.c | tmdp->blen = -len; |
len | 445 | drivers/net/pi2.c | length = lp->sndbuf->len - 1; |
len | 704 | drivers/net/pi2.c | lp->txcnt = (int) lp->sndbuf->len - 1; |
len | 818 | drivers/net/pi2.c | lp->txcnt = (int) lp->sndbuf->len - 1; |
len | 1079 | drivers/net/pi2.c | void *daddr, void *saddr, unsigned len) |
len | 1081 | drivers/net/pi2.c | return ax25_encapsulate(skb, dev, type, daddr, saddr, len); |
len | 882 | drivers/net/plip.c | if (skb->len > dev->mtu) { |
len | 883 | drivers/net/plip.c | printk("%s: packet too big, %d.\n", dev->name, (int)skb->len); |
len | 894 | drivers/net/plip.c | snd->length.h = skb->len; |
len | 122 | drivers/net/ppp.c | unsigned long saddr, unsigned len); |
len | 1179 | drivers/net/ppp.c | unsigned char *buf, int len) |
len | 1184 | drivers/net/ppp.c | totlen = len+2; /* including protocol */ |
len | 1197 | drivers/net/ppp.c | while (len-- > 0) { |
len | 1245 | drivers/net/ppp.c | int len, i; |
len | 1280 | drivers/net/ppp.c | GETC (c); len = c << 8; GETC (c); len += c; |
len | 1282 | drivers/net/ppp.c | PRINTKN (4,(KERN_DEBUG "ppp_read: len = %d\n", len)); |
len | 1284 | drivers/net/ppp.c | if (len + 2 > nr) { |
len | 1288 | drivers/net/ppp.c | nr, len+2)); |
len | 1289 | drivers/net/ppp.c | ppp->us_rbuff_head += len; |
len | 1300 | drivers/net/ppp.c | i = len; |
len | 1308 | drivers/net/ppp.c | PRINTKN (3,(KERN_DEBUG "ppp_read: passing %d bytes up\n", len + 2)); |
len | 1310 | drivers/net/ppp.c | return len + 2; |
len | 1730 | drivers/net/ppp.c | int len; |
len | 1742 | drivers/net/ppp.c | len = skb->len; |
len | 1769 | drivers/net/ppp.c | if (len < sizeof(struct iphdr)) { |
len | 1773 | drivers/net/ppp.c | len = ntohs( ((struct iphdr *)(skb->data)) -> tot_len ); |
len | 1779 | drivers/net/ppp.c | if (ppp_us_queue (ppp, proto, p, len)) |
len | 1796 | drivers/net/ppp.c | len = slhc_compress(ppp->slcomp, p, len, ppp->cbuff, &p, |
len | 1817 | drivers/net/ppp.c | dev->name, (int) proto, (int) len, (int) iph->saddr, |
len | 1841 | drivers/net/ppp.c | while (len-- > 0) |
len | 1869 | drivers/net/ppp.c | unsigned long daddr, unsigned long saddr, unsigned len) |
len | 1889 | drivers/net/ppp.c | void *daddr, void *saddr, unsigned len) |
len | 408 | drivers/net/seeq8005.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 1250 | drivers/net/sk_g16.c | short len = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 1259 | drivers/net/sk_g16.c | skb->len); |
len | 1261 | drivers/net/sk_g16.c | tmdp->blen = -len; /* set length to transmit */ |
len | 1570 | drivers/net/sk_g16.c | int len = (rmdp->mlen & 0x0fff); /* extract message length from receive buffer */ |
len | 1573 | drivers/net/sk_g16.c | skb = dev_alloc_skb(len+2); /* allocate socket buffer */ |
len | 1603 | drivers/net/sk_g16.c | memcpy(skb_put(skb,len), (unsigned char *) (rmdp->u.buffer & 0x00ffffff), |
len | 1604 | drivers/net/sk_g16.c | len); |
len | 367 | drivers/net/skeleton.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 501 | drivers/net/slhc.c | int len, hdrlen; |
len | 606 | drivers/net/slhc.c | len = isize - (cp - icp); |
len | 607 | drivers/net/slhc.c | if (len < 0) |
len | 609 | drivers/net/slhc.c | len += hdrlen; |
len | 610 | drivers/net/slhc.c | ip->tot_len = htons(len); |
len | 613 | drivers/net/slhc.c | memmove(icp + hdrlen, cp, len - hdrlen); |
len | 634 | drivers/net/slhc.c | return len; |
len | 103 | drivers/net/slip.c | static int slip_esc(unsigned char *p, unsigned char *d, int len); |
len | 106 | drivers/net/slip.c | static int slip_esc6(unsigned char *p, unsigned char *d, int len); |
len | 226 | drivers/net/slip.c | int len; |
len | 229 | drivers/net/slip.c | len = dev->mtu * 2; |
len | 235 | drivers/net/slip.c | if (len < 576 * 2) { |
len | 236 | drivers/net/slip.c | len = 576 * 2; |
len | 239 | drivers/net/slip.c | xbuff = (unsigned char *) kmalloc (len + 4, GFP_ATOMIC); |
len | 240 | drivers/net/slip.c | rbuff = (unsigned char *) kmalloc (len + 4, GFP_ATOMIC); |
len | 242 | drivers/net/slip.c | cbuff = (unsigned char *) kmalloc (len + 4, GFP_ATOMIC); |
len | 278 | drivers/net/slip.c | if (sl->xleft <= len) { |
len | 288 | drivers/net/slip.c | if (sl->rcount <= len) { |
len | 301 | drivers/net/slip.c | sl->buffsize = len; |
len | 398 | drivers/net/slip.c | sl_encaps(struct slip *sl, unsigned char *icp, int len) |
len | 412 | drivers/net/slip.c | if (len > sl->mtu) { /* Sigh, shouldn't occur BUT ... */ |
len | 413 | drivers/net/slip.c | len = sl->mtu; |
len | 423 | drivers/net/slip.c | len = slhc_compress(sl->slcomp, p, len, sl->cbuff, &p, 1); |
len | 428 | drivers/net/slip.c | count = slip_esc6(p, (unsigned char *) sl->xbuff, len); |
len | 431 | drivers/net/slip.c | count = slip_esc(p, (unsigned char *) sl->xbuff, len); |
len | 522 | drivers/net/slip.c | sl_encaps(sl, skb->data, skb->len); |
len | 534 | drivers/net/slip.c | void *daddr, void *saddr, unsigned len) |
len | 541 | drivers/net/slip.c | return ax25_encapsulate(skb, dev, type, daddr, saddr, len); |
len | 572 | drivers/net/slip.c | unsigned long len; |
len | 585 | drivers/net/slip.c | len = dev->mtu * 2; |
len | 591 | drivers/net/slip.c | if (len < 576 * 2) { |
len | 592 | drivers/net/slip.c | len = 576 * 2; |
len | 594 | drivers/net/slip.c | sl->rbuff = (unsigned char *) kmalloc(len + 4, GFP_KERNEL); |
len | 598 | drivers/net/slip.c | sl->xbuff = (unsigned char *) kmalloc(len + 4, GFP_KERNEL); |
len | 603 | drivers/net/slip.c | sl->cbuff = (unsigned char *) kmalloc(len + 4, GFP_KERNEL); |
len | 618 | drivers/net/slip.c | sl->buffsize = len; |
len | 840 | drivers/net/slip.c | slip_esc(unsigned char *s, unsigned char *d, int len) |
len | 858 | drivers/net/slip.c | while (len-- > 0) { |
len | 921 | drivers/net/slip.c | slip_esc6(unsigned char *s, unsigned char *d, int len) |
len | 941 | drivers/net/slip.c | for (i = 0; i < len; ++i) { |
len | 419 | drivers/net/tulip.c | if (skb == NULL || skb->len <= 0) { |
len | 442 | drivers/net/tulip.c | tp->tx_ring[entry].length = skb->len | |
len | 207 | drivers/net/tunnel.c | newlen = (skb->len + ip_header_len); |
len | 222 | drivers/net/tunnel.c | memcpy(skb2->data + ip_header_len, skb->data, skb->len); |
len | 232 | drivers/net/tunnel.c | iph->tot_len = htons(skb2->len); |
len | 1447 | drivers/net/wavelan.c | length = (ETH_ZLEN < skb->len) ? skb->len : ETH_ZLEN; |
len | 2124 | drivers/net/wavelan.c | int len; |
len | 2130 | drivers/net/wavelan.c | len = 0; |
len | 2137 | drivers/net/wavelan.c | len += size; |
len | 2148 | drivers/net/wavelan.c | size = sprintf_stats(buffer + len, lp->dev); |
len | 2150 | drivers/net/wavelan.c | len += size; |
len | 2151 | drivers/net/wavelan.c | pos = begin + len; |
len | 2155 | drivers/net/wavelan.c | len = 0; |
len | 2168 | drivers/net/wavelan.c | len -= (offset - begin); /* Start slop */ |
len | 2169 | drivers/net/wavelan.c | if (len > length) |
len | 2170 | drivers/net/wavelan.c | len = length; /* Ending slop */ |
len | 2172 | 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 | 454 | drivers/pci/pci.c | int reg, len = 0; |
len | 468 | drivers/pci/pci.c | if (len + 80 > size) { |
len | 471 | drivers/pci/pci.c | len += sprintf(buf + len, " Bus %2d, device %3d, function %2d:\n", |
len | 474 | drivers/pci/pci.c | if (len + 80 > size) { |
len | 477 | drivers/pci/pci.c | len += sprintf(buf + len, " %s: %s %s (rev %d).\n ", |
len | 482 | drivers/pci/pci.c | len += sprintf(buf + len, |
len | 493 | drivers/pci/pci.c | if (len + strlen(str) > size) { |
len | 496 | drivers/pci/pci.c | len += sprintf(buf + len, str); |
len | 500 | drivers/pci/pci.c | if (len + strlen(fast_b2b_capable) > size) { |
len | 503 | drivers/pci/pci.c | len += sprintf(buf + len, fast_b2b_capable); |
len | 509 | drivers/pci/pci.c | if (len + strlen(BIST_capable) > size) { |
len | 512 | drivers/pci/pci.c | len += sprintf(buf + len, BIST_capable); |
len | 517 | drivers/pci/pci.c | if (len + 40 > size) { |
len | 520 | drivers/pci/pci.c | len += sprintf(buf + len, "IRQ %d. ", dev->irq); |
len | 524 | drivers/pci/pci.c | if (len + 80 > size) { |
len | 527 | drivers/pci/pci.c | len += sprintf(buf + len, "Master Capable. "); |
len | 529 | drivers/pci/pci.c | len += sprintf(buf + len, "Latency=%d. ", latency); |
len | 531 | drivers/pci/pci.c | len += sprintf(buf + len, "No bursts. "); |
len | 533 | drivers/pci/pci.c | len += sprintf(buf + len, "Min Gnt=%d.", min_gnt); |
len | 535 | drivers/pci/pci.c | len += sprintf(buf + len, "Max Lat=%d.", max_lat); |
len | 539 | drivers/pci/pci.c | if (len + 40 > size) { |
len | 549 | drivers/pci/pci.c | len += sprintf(buf + len, |
len | 573 | drivers/pci/pci.c | len += sprintf(buf + len, |
len | 580 | drivers/pci/pci.c | len += sprintf(buf + len, "\n"); |
len | 581 | drivers/pci/pci.c | return len; |
len | 591 | drivers/pci/pci.c | int nprinted, len, size; |
len | 597 | drivers/pci/pci.c | len = sprintf(buf, "PCI devices found:\n"); |
len | 600 | drivers/pci/pci.c | nprinted = sprint_dev_config(dev, buf + len, size - len); |
len | 602 | drivers/pci/pci.c | return len + sprintf(buf + len, MSG); |
len | 604 | drivers/pci/pci.c | len += nprinted; |
len | 606 | drivers/pci/pci.c | return len; |
len | 803 | drivers/pci/pci.c | int len = get_pci_list(mem_start); |
len | 804 | drivers/pci/pci.c | if (len) { |
len | 805 | drivers/pci/pci.c | ((char*)mem_start)[len] = '\0'; |
len | 2055 | drivers/scsi/53c7,8xx.c | size_t len; |
len | 2073 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
len | 2076 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "%08x\n", * (u32 *) bp->addr); |
len | 2078 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "\n"); |
len | 2080 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
len | 2081 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, len); |
len | 2093 | drivers/scsi/53c7,8xx.c | size_t len; |
len | 2155 | drivers/scsi/53c7,8xx.c | int i, j, error, len; |
len | 2176 | drivers/scsi/53c7,8xx.c | len = strlen (debugger_tokens[i].name); |
len | 2177 | drivers/scsi/53c7,8xx.c | if (!strncmp(input_buf, debugger_tokens[i].name, len)) |
len | 2184 | drivers/scsi/53c7,8xx.c | for (ptr = input_buf + len, j = 0; j < debugger_tokens[i].nargs && *ptr;) { |
len | 3737 | drivers/scsi/53c7,8xx.c | size_t len = strlen(buf); |
len | 3738 | drivers/scsi/53c7,8xx.c | debugger_kernel_write(host, buf, len); |
len | 3894 | drivers/scsi/53c7,8xx.c | int i, len; |
len | 3905 | drivers/scsi/53c7,8xx.c | ptr += len, i -= len) { |
len | 3907 | 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 | 154 | drivers/scsi/aha1542.c | static int aha1542_out(unsigned int base, unchar *cmdp, int len) |
len | 158 | drivers/scsi/aha1542.c | if(len == 1) { |
len | 171 | drivers/scsi/aha1542.c | while (len--) |
len | 181 | drivers/scsi/aha1542.c | printk("aha1542_out failed(%d): ", len+1); aha1542_stat(); |
len | 187 | drivers/scsi/aha1542.c | static int aha1542_in(unsigned int base, unchar *cmdp, int len) |
len | 193 | drivers/scsi/aha1542.c | while (len--) |
len | 202 | drivers/scsi/aha1542.c | printk("aha1542_in failed(%d): ", len+1); aha1542_stat(); |
len | 209 | drivers/scsi/aha1542.c | static int aha1542_in1(unsigned int base, unchar *cmdp, int len) |
len | 215 | drivers/scsi/aha1542.c | while (len--) |
len | 289 | drivers/scsi/aha1542.c | int len; |
len | 322 | drivers/scsi/aha1542.c | len = 4; |
len | 325 | drivers/scsi/aha1542.c | while (len--) |
len | 1228 | drivers/scsi/aic7xxx.c | register int len = ep - bp; |
len | 1230 | drivers/scsi/aic7xxx.c | strncpy(buf, bp, len); |
len | 1231 | drivers/scsi/aic7xxx.c | buf[len] = '\0'; |
len | 2424 | drivers/scsi/aic7xxx.c | unsigned char len; |
len | 2470 | drivers/scsi/aic7xxx.c | for (i = 0; i < seeprom_read.len; i++) |
len | 250 | drivers/scsi/buslogic.c | size_t len) |
len | 254 | drivers/scsi/buslogic.c | if (len == 1) { |
len | 269 | drivers/scsi/buslogic.c | while (len--) { |
len | 278 | drivers/scsi/buslogic.c | buslogic_printk("failed(%u): ", len + 1); |
len | 286 | drivers/scsi/buslogic.c | static int buslogic_in(unsigned int base, unsigned char *cmdp, size_t len) |
len | 292 | drivers/scsi/buslogic.c | while (len--) { |
len | 301 | drivers/scsi/buslogic.c | buslogic_printk("failed(%u): ", len + 1); |
len | 493 | drivers/scsi/constants.c | int len = 0, i; |
len | 495 | drivers/scsi/constants.c | len = 3 + msg[1]; |
len | 514 | drivers/scsi/constants.c | for (i = 2; i < len; ++i) |
len | 518 | drivers/scsi/constants.c | for (i = 0; i < len; ++i) |
len | 531 | drivers/scsi/constants.c | len = 1; |
len | 542 | drivers/scsi/constants.c | len = 1; |
len | 555 | drivers/scsi/constants.c | len = 2; |
len | 562 | drivers/scsi/constants.c | return len; |
len | 239 | drivers/scsi/eata.c | ushort len; /* Number of bytes following this field */ |
len | 463 | drivers/scsi/eata.c | config.len = (ushort) htons((ushort)510); |
len | 458 | drivers/scsi/eata_dma.c | cp->sg_list[i].len = htonl((u32) sl->length); |
len | 803 | drivers/scsi/eata_dma.c | (u32) ntohl(gc->len), gc->version, |
len | 838 | drivers/scsi/eata_dma.c | if(gc->HAA_valid == FALSE || ntohl(gc->len) < 0x22) |
len | 962 | drivers/scsi/eata_dma.c | switch (ntohl(gc->len)) { |
len | 978 | drivers/scsi/eata_dma.c | if(ntohl(gc->len) >= 0x22) { |
len | 995 | drivers/scsi/eata_dma.c | if(ntohl(gc->len) >= 0x22) { |
len | 90 | drivers/scsi/eata_dma_proc.c | int size, len = 0; |
len | 119 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len, "EATA (Extended Attachment) driver version: " |
len | 121 | drivers/scsi/eata_dma_proc.c | len += size; pos = begin + len; |
len | 122 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "queued commands: %10ld\n" |
len | 124 | drivers/scsi/eata_dma_proc.c | len += size; pos = begin + len; |
len | 126 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "\nscsi%-2d: HBA %.10s\n", |
len | 128 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 129 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 130 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Firmware revision: v%s\n", |
len | 132 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 133 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 134 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Hardware Configuration:\n"); |
len | 135 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 136 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 140 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "DMA: BUSMASTER\n"); |
len | 142 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "DMA: %d\n", HBA_ptr->dma_channel); |
len | 143 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 144 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 146 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Base IO : %#.4x\n", (u32) HBA_ptr->base); |
len | 147 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 148 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 149 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Host Bus: EISA\n"); |
len | 150 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 151 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 205 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "IRQ: %2d, %s triggered\n", cc->interrupt, |
len | 207 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 208 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 210 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "DMA: BUSMASTER\n"); |
len | 212 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "DMA: %d\n", HBA_ptr->dma_channel); |
len | 213 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 214 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 215 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "CPU: MC680%02d %dMHz\n", bt->cpu_type, |
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, "Base IO : %#.4x\n", (u32) HBA_ptr->base); |
len | 220 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 221 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 222 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Host Bus: %s\n", |
len | 226 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 227 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 228 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "SCSI Bus:%s%s Speed: %sMB/sec. %s\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, "SCSI channel expansion Module: %s present\n", |
len | 238 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 239 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 240 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "SmartRAID hardware: %spresent.\n", |
len | 242 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 243 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 244 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, " Type: %s\n", |
len | 250 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 251 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 253 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, " Max array groups: %d\n", |
len | 255 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 256 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 257 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, " Max drives per RAID 0 array: %d\n", |
len | 259 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 260 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 261 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, " Max drives per RAID 3/5 array: %d\n", |
len | 263 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 264 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 265 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Cache Module: %spresent.\n", |
len | 267 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 268 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 269 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, " Type: %s\n", |
len | 275 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 276 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 278 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, " Bank%d: %dMB with%s ECC\n",x, |
len | 281 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 282 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 284 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Timer Mod.: %spresent\n", |
len | 286 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 287 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 288 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "NVRAM : %spresent\n", |
len | 290 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 291 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 292 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "SmartROM : %sabled\n", |
len | 294 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 295 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 296 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Alarm : %s\n", |
len | 298 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 299 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 302 | drivers/scsi/eata_dma_proc.c | len = 0; |
len | 354 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Host<->Disk command statistics:\n" |
len | 356 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 357 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 359 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,"%5dk:%12u %12u\n", 1 << x, |
len | 362 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 363 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 365 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,">1024k:%12u %12u\n", |
len | 368 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 369 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 370 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,"Sum : %12u %12u\n", |
len | 373 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 374 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 378 | drivers/scsi/eata_dma_proc.c | len = 0; |
len | 385 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Host Latency Command Statistics:\n" |
len | 388 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 389 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 391 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,"%5dk:%12u %12u %12u %12u\n", |
len | 400 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 401 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 403 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,">1024k:%12u %12u %12u %12u\n", |
len | 411 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 412 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 415 | drivers/scsi/eata_dma_proc.c | len = 0; |
len | 421 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, |
len | 423 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 424 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 426 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,"%5dk:%12u %12u %12u %12u\n", |
len | 435 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 436 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 438 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,">1024k:%12u %12u %12u %12u\n", |
len | 446 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 447 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 450 | drivers/scsi/eata_dma_proc.c | len = 0; |
len | 459 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,"Attached devices: %s\n", (scd)?"":"none"); |
len | 460 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 461 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 465 | drivers/scsi/eata_dma_proc.c | proc_print_scsidevice(scd, buffer, &size, len); |
len | 466 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 467 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 470 | drivers/scsi/eata_dma_proc.c | len = 0; |
len | 480 | drivers/scsi/eata_dma_proc.c | DBG(DBG_PROC, printk("2pos: %ld offset: %ld len: %d\n", pos, offset, len)); |
len | 482 | drivers/scsi/eata_dma_proc.c | len-=(offset-begin); /* Start slop */ |
len | 483 | drivers/scsi/eata_dma_proc.c | if(len>length) |
len | 484 | drivers/scsi/eata_dma_proc.c | len = length; /* Ending slop */ |
len | 485 | drivers/scsi/eata_dma_proc.c | DBG(DBG_PROC, printk("3pos: %ld offset: %ld len: %d\n", pos, offset, len)); |
len | 487 | drivers/scsi/eata_dma_proc.c | return (len); |
len | 200 | drivers/scsi/eata_generic.h | __u32 len; /* Should return 0x22, 0x24, etc */ |
len | 251 | drivers/scsi/eata_generic.h | __u32 len; |
len | 631 | drivers/scsi/eata_pio.c | (uint) ntohl(gc->len), gc->version, |
len | 741 | drivers/scsi/eata_pio.c | switch (ntohl(gc->len)) { |
len | 757 | 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 | 482 | drivers/scsi/pas16.c | int len) { |
len | 486 | drivers/scsi/pas16.c | register i = len; |
len | 515 | drivers/scsi/pas16.c | int len) { |
len | 518 | drivers/scsi/pas16.c | register i = len; |
len | 2084 | drivers/scsi/scsi.c | void *scsi_malloc(unsigned int len) |
len | 2089 | drivers/scsi/scsi.c | if((len & 0x1ff) || len > (1<<MALLOC_PAGEBITS)) |
len | 2094 | drivers/scsi/scsi.c | nbits = len >> 9; |
len | 2104 | drivers/scsi/scsi.c | printk("SMalloc: %d %p ",len, dma_malloc_pages[i] + (j << 9)); |
len | 2113 | drivers/scsi/scsi.c | int scsi_free(void *obj, unsigned int len) |
len | 2120 | drivers/scsi/scsi.c | printk("Sfree %p %d\n",obj, len); |
len | 2138 | drivers/scsi/scsi.c | nbits = len >> 9; |
len | 2439 | drivers/scsi/scsi.c | int size, len = 0; |
len | 2447 | drivers/scsi/scsi.c | size = sprintf(buffer+len,"Attached devices: %s\n", (scd)?"":"none"); |
len | 2448 | drivers/scsi/scsi.c | len += size; |
len | 2449 | drivers/scsi/scsi.c | pos = begin + len; |
len | 2452 | drivers/scsi/scsi.c | size += sprintf(buffer+len,"scsi%2d: %s\n", (int) HBA_ptr->host_no, HBA_ptr->hostt->procname); |
len | 2453 | drivers/scsi/scsi.c | len += size; |
len | 2454 | drivers/scsi/scsi.c | pos = begin + len; |
len | 2459 | drivers/scsi/scsi.c | proc_print_scsidevice(scd, buffer, &size, len); |
len | 2460 | drivers/scsi/scsi.c | len += size; |
len | 2461 | drivers/scsi/scsi.c | pos = begin + len; |
len | 2464 | drivers/scsi/scsi.c | len = 0; |
len | 2477 | drivers/scsi/scsi.c | len-=(offset-begin); /* Start slop */ |
len | 2478 | drivers/scsi/scsi.c | if(len>length) |
len | 2479 | drivers/scsi/scsi.c | len = length; /* Ending slop */ |
len | 2480 | drivers/scsi/scsi.c | return (len); |
len | 622 | drivers/scsi/scsi_debug.c | int len, pos, begin; |
len | 656 | drivers/scsi/scsi_debug.c | pos = len = sprintf(buffer, |
len | 662 | drivers/scsi/scsi_debug.c | len = 0; |
len | 667 | drivers/scsi/scsi_debug.c | len -= (offset - begin); |
len | 668 | drivers/scsi/scsi_debug.c | if(len > length) |
len | 669 | drivers/scsi/scsi_debug.c | len = length; |
len | 671 | drivers/scsi/scsi_debug.c | return(len); |
len | 46 | drivers/scsi/scsi_ioctl.c | unsigned int len,slen; |
len | 53 | drivers/scsi/scsi_ioctl.c | len = get_user ((unsigned int *) buffer); |
len | 60 | drivers/scsi/scsi_ioctl.c | if (len > slen) |
len | 61 | drivers/scsi/scsi_ioctl.c | len = slen + 1; |
len | 62 | drivers/scsi/scsi_ioctl.c | result = verify_area(VERIFY_WRITE, buffer, len); |
len | 65 | drivers/scsi/scsi_ioctl.c | memcpy_tofs (buffer, string, len); |
len | 81 | drivers/scsi/scsi_proc.c | int len, pos, begin; |
len | 87 | drivers/scsi/scsi_proc.c | pos = len = sprintf(buffer, |
len | 90 | drivers/scsi/scsi_proc.c | len = 0; |
len | 95 | drivers/scsi/scsi_proc.c | len -= (offset - begin); |
len | 96 | drivers/scsi/scsi_proc.c | if(len > length) |
len | 97 | drivers/scsi/scsi_proc.c | len = length; |
len | 99 | drivers/scsi/scsi_proc.c | return(len); |
len | 348 | drivers/scsi/scsi_proc.c | void proc_print_scsidevice(Scsi_Device *scd, char *buffer, int *size, int len) |
len | 352 | drivers/scsi/scsi_proc.c | y = sprintf(buffer + len, |
len | 357 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, "%c", scd->vendor[x]); |
len | 359 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y," "); |
len | 361 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " Model: "); |
len | 364 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, "%c", scd->model[x]); |
len | 366 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " "); |
len | 368 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " Rev: "); |
len | 371 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, "%c", scd->rev[x]); |
len | 373 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " "); |
len | 375 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, "\n"); |
len | 377 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " Type: %s ", |
len | 380 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " ANSI" |
len | 383 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " CCS\n"); |
len | 385 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, "\n"); |
len | 587 | drivers/scsi/seagate.c | int len = 0; |
len | 716 | drivers/scsi/seagate.c | len=current_bufflen; /* WDE add */ |
len | 914 | drivers/scsi/seagate.c | len = buffer->length; |
len | 921 | drivers/scsi/seagate.c | len = SCint->request_bufflen; |
len | 926 | drivers/scsi/seagate.c | printk("scsi%d : len = %d\n", hostno, len); |
len | 1039 | drivers/scsi/seagate.c | if (!len) { |
len | 1049 | drivers/scsi/seagate.c | if (fast && transfersize && !(len % transfersize) && (len >= transfersize) |
len | 1057 | drivers/scsi/seagate.c | SCint->transfersize, len, data); |
len | 1079 | drivers/scsi/seagate.c | len -= transfersize; |
len | 1084 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1140 | drivers/scsi/seagate.c | "=S" (data), "=c" (len) : |
len | 1142 | drivers/scsi/seagate.c | "0" (data), "1" (len) : |
len | 1147 | drivers/scsi/seagate.c | if (!len && nobuffs) { |
len | 1150 | drivers/scsi/seagate.c | len = buffer->length; |
len | 1154 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1163 | drivers/scsi/seagate.c | transfered += len; |
len | 1165 | drivers/scsi/seagate.c | for (; len && (STATUS & (REQ_MASK | STAT_REQ)) == (REQ_DATAIN | |
len | 1166 | drivers/scsi/seagate.c | STAT_REQ); --len) { |
len | 1171 | drivers/scsi/seagate.c | transfered -= len; |
len | 1176 | drivers/scsi/seagate.c | if (fast && transfersize && !(len % transfersize) && (len >= transfersize) |
len | 1184 | drivers/scsi/seagate.c | SCint->transfersize, len, data); |
len | 1206 | drivers/scsi/seagate.c | len -= transfersize; |
len | 1216 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1224 | drivers/scsi/seagate.c | printk("scsi%d: transfered += %d\n", hostno, len); |
len | 1225 | drivers/scsi/seagate.c | transfered += len; /* Assume we'll transfer it all, then |
len | 1280 | drivers/scsi/seagate.c | "=D" (data), "=c" (len) : |
len | 1282 | drivers/scsi/seagate.c | "0" (data), "1" (len) : |
len | 1287 | drivers/scsi/seagate.c | printk("scsi%d: transfered -= %d\n", hostno, len); |
len | 1288 | drivers/scsi/seagate.c | transfered -= len; /* Since we assumed all of Len got |
len | 1293 | drivers/scsi/seagate.c | if (!len && nobuffs) { |
len | 1296 | drivers/scsi/seagate.c | len = buffer->length; |
len | 1300 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1367 | drivers/scsi/seagate.c | current_bufflen = len; /* WDE add */ |
len | 1399 | drivers/scsi/seagate.c | current_bufflen = len; /* WDE add */ |
len | 1410 | drivers/scsi/seagate.c | len=current_bufflen; |
len | 315 | drivers/scsi/t128.c | int len) { |
len | 318 | drivers/scsi/t128.c | register i = len; |
len | 359 | drivers/scsi/t128.c | int len) { |
len | 362 | drivers/scsi/t128.c | register i = len; |
len | 209 | drivers/scsi/wd7000.c | unsigned len; /* length of string */ |
len | 325 | drivers/scsi/wd7000.c | unchar len[3]; |
len | 381 | drivers/scsi/wd7000.c | unchar len[3]; /* command buffer length */ |
len | 423 | drivers/scsi/wd7000.c | unchar len[3]; /* buffer length */ |
len | 439 | drivers/scsi/wd7000.c | unchar len[3]; /* parms buffer length */ |
len | 571 | drivers/scsi/wd7000.c | static inline int command_out(Adapter *host, unchar *cmd, int len) |
len | 574 | drivers/scsi/wd7000.c | while (len--) { |
len | 584 | drivers/scsi/wd7000.c | printk("wd7000 command_out: WAIT failed(%d)\n", len+1); |
len | 931 | drivers/scsi/wd7000.c | any2scsi(sgb[i].len, sg[i].length); |
len | 961 | drivers/scsi/wd7000.c | any2scsi(icb.len, sizeof(buf)); |
len | 1114 | drivers/scsi/wd7000.c | if (!memcmp(cfg->bios+sig->ofs, sig->sig, sig->len)) { |
len | 510 | drivers/sound/aedsp16.c | int len = 0; |
len | 522 | drivers/sound/aedsp16.c | ver[len++] = ret; |
len | 524 | drivers/sound/aedsp16.c | while (len < CARDVERLEN); |
len | 532 | drivers/sound/aedsp16.c | int len = 0; |
len | 542 | drivers/sound/aedsp16.c | return (len ? 0 : -1); |
len | 544 | drivers/sound/aedsp16.c | AudioExcelName[len++] = ret; |
len | 547 | drivers/sound/aedsp16.c | while (len < CARDNAMELEN); |
len | 221 | drivers/sound/configure.c | int len; |
len | 223 | drivers/sound/configure.c | if ((len = read (0, &answ, sizeof (answ))) < 1) |
len | 233 | drivers/sound/configure.c | if (len < 2) /* |
len | 238 | drivers/sound/configure.c | answ[len - 1] = 0; |
len | 250 | drivers/sound/configure.c | int len, num; |
len | 254 | drivers/sound/configure.c | if ((len = read (0, &answ, sizeof (answ))) < 1) |
len | 264 | drivers/sound/configure.c | if (len < 2) /* |
len | 269 | drivers/sound/configure.c | answ[len - 1] = 0; |
len | 145 | drivers/sound/dev_table.h | snd_rw_buf *userbuf, int useroffs, int len); |
len | 299 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock) |
len | 370 | drivers/sound/dmabuf.c | *len = dmap->fragment_size - dmap->counts[dmap->qhead]; |
len | 543 | drivers/sound/dmabuf.c | int len, max, tmp; |
len | 555 | drivers/sound/dmabuf.c | len = dmap->qlen; |
len | 560 | drivers/sound/dmabuf.c | if (tmp & len) |
len | 564 | drivers/sound/dmabuf.c | len += tmp; |
len | 567 | drivers/sound/dmabuf.c | if (len >= max) |
len | 1034 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock) |
len | 465 | drivers/sound/gus_wave.c | if (position < samples[sample_no].len) |
len | 1321 | drivers/sound/gus_wave.c | ((sample_ptrs[sample] + samples[sample].len) >> 18)) |
len | 1348 | drivers/sound/gus_wave.c | gus_write_addr (0x0a, sample_ptrs[sample] + samples[sample].len - |
len | 1381 | drivers/sound/gus_wave.c | gus_write_addr (0x04, sample_ptrs[sample] + samples[sample].len - 1, |
len | 1553 | drivers/sound/gus_wave.c | if (count < patch.len) |
len | 1556 | drivers/sound/gus_wave.c | count, (int) patch.len); |
len | 1557 | drivers/sound/gus_wave.c | patch.len = count; |
len | 1560 | drivers/sound/gus_wave.c | if (patch.len <= 0 || patch.len > gus_mem_size) |
len | 1562 | drivers/sound/gus_wave.c | printk ("GUS: Invalid sample length %d\n", (int) patch.len); |
len | 1568 | drivers/sound/gus_wave.c | if (patch.loop_start < 0 || patch.loop_start >= patch.len) |
len | 1574 | drivers/sound/gus_wave.c | if (patch.loop_end < patch.loop_start || patch.loop_end > patch.len) |
len | 1590 | drivers/sound/gus_wave.c | if (patch.len >= GUS_BANK_SIZE) |
len | 1592 | drivers/sound/gus_wave.c | printk ("GUS: Sample (16 bit) too long %d\n", (int) patch.len); |
len | 1597 | drivers/sound/gus_wave.c | ((free_mem_ptr + patch.len) / GUS_BANK_SIZE)) |
len | 1602 | drivers/sound/gus_wave.c | if ((tmp_mem + patch.len) > gus_mem_size) |
len | 1609 | drivers/sound/gus_wave.c | if ((free_mem_ptr + patch.len) > gus_mem_size) |
len | 1634 | drivers/sound/gus_wave.c | left = patch.len; |
len | 1747 | drivers/sound/gus_wave.c | free_mem_ptr += patch.len; |
len | 2390 | drivers/sound/gus_wave.c | snd_rw_buf * userbuf, int useroffs, int len) |
len | 2394 | drivers/sound/gus_wave.c | COPY_FROM_USER (&localbuf[localoffs], userbuf, useroffs, len); |
len | 2403 | drivers/sound/gus_wave.c | len /= 2; |
len | 2408 | drivers/sound/gus_wave.c | for (i = 0; i < len; i++) |
len | 2423 | drivers/sound/gus_wave.c | len /= 4; |
len | 2429 | drivers/sound/gus_wave.c | for (i = 0; i < len; i++) |
len | 2573 | drivers/sound/gus_wave.c | if (pat->len > samples[ptr].len) /* Cannot expand sample */ |
len | 2596 | drivers/sound/gus_wave.c | if (offs < 0 || offs >= samples[sample].len) |
len | 2599 | drivers/sound/gus_wave.c | n = samples[sample].len - offs; /* Num of bytes left */ |
len | 2637 | drivers/sound/gus_wave.c | if (offs < 0 || offs >= samples[sample].len) |
len | 2642 | drivers/sound/gus_wave.c | n = samples[sample].len - offs; /* |
len | 48 | drivers/sound/midi_synth.c | int len; \ |
len | 51 | drivers/sound/midi_synth.c | seq_input_event(obuf, len); \ |
len | 55 | drivers/sound/midi_synth.c | #define _SEQ_ADVBUF(x) len=x |
len | 495 | drivers/sound/midi_synth.c | if (count < sysex.len) |
len | 498 | drivers/sound/midi_synth.c | count, (int) sysex.len); |
len | 499 | drivers/sound/midi_synth.c | sysex.len = count; |
len | 502 | drivers/sound/midi_synth.c | left = sysex.len; |
len | 45 | drivers/sound/midibuf.c | int len, head, tail; |
len | 67 | drivers/sound/midibuf.c | #define DATA_AVAIL(q) (q->len) |
len | 68 | drivers/sound/midibuf.c | #define SPACE_AVAIL(q) (MAX_QUEUE_SIZE - q->len) |
len | 76 | drivers/sound/midibuf.c | q->len++; q->tail = (q->tail+1) % MAX_QUEUE_SIZE; \ |
len | 86 | drivers/sound/midibuf.c | q->len--; q->head = (q->head+1) % MAX_QUEUE_SIZE; \ |
len | 151 | drivers/sound/midibuf.c | midi_out_buf[dev]->len--; |
len | 212 | drivers/sound/midibuf.c | midi_in_buf[dev]->len = midi_in_buf[dev]->head = midi_in_buf[dev]->tail = 0; |
len | 225 | drivers/sound/midibuf.c | midi_out_buf[dev]->len = midi_out_buf[dev]->head = midi_out_buf[dev]->tail = 0; |
len | 152 | drivers/sound/mpu401.c | int len; \ |
len | 155 | drivers/sound/mpu401.c | seq_input_event(obuf, len); \ |
len | 159 | drivers/sound/mpu401.c | #define _SEQ_ADVBUF(x) len=x |
len | 452 | drivers/sound/pss.c | if (buf->len <= 0 || buf->len > sizeof (buf->data)) |
len | 455 | drivers/sound/pss.c | if (!pss_download_boot (devc, buf->data, buf->len, buf->flags)) |
len | 156 | drivers/sound/sequencer.c | seq_copy_to_input (unsigned char *event, int len) |
len | 164 | drivers/sound/sequencer.c | if (len != 4 && len != 8) |
len | 166 | drivers/sound/sequencer.c | if ((seq_mode == SEQ_1) != (len == 4)) |
len | 173 | drivers/sound/sequencer.c | memcpy (&iqueue[iqtail * IEV_SZ], event, len); |
len | 211 | drivers/sound/sequencer.c | seq_input_event (unsigned char *event, int len) |
len | 234 | 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 | 55 | drivers/sound/sound_calls.h | void seq_input_event(unsigned char *event, int len); |
len | 56 | drivers/sound/sound_calls.h | void seq_copy_to_input (unsigned char *event, int len); |
len | 153 | drivers/sound/soundcard.c | int len, err; |
len | 155 | drivers/sound/soundcard.c | len = (cmd & IOCSIZE_MASK) >> IOCSIZE_SHIFT; |
len | 159 | drivers/sound/soundcard.c | if ((err = verify_area (VERIFY_READ, (void *) arg, len)) < 0) |
len | 165 | drivers/sound/soundcard.c | if ((err = verify_area (VERIFY_WRITE, (void *) arg, len)) < 0) |
len | 579 | drivers/sound/sscape.c | if (buf->len <= 0 || buf->len > sizeof (buf->data)) |
len | 582 | 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 | 272 | fs/binfmt_elf.c | len = (elf_bss + 0xfff) & 0xfffff000; /* What we have mapped so far */ |
len | 275 | fs/binfmt_elf.c | if (last_bss > len) |
len | 276 | fs/binfmt_elf.c | do_mmap(NULL, len, last_bss-len, |
len | 690 | fs/binfmt_elf.c | unsigned int len; |
len | 698 | fs/binfmt_elf.c | len = 0; |
len | 770 | fs/binfmt_elf.c | len = (elf_phdata->p_filesz + elf_phdata->p_vaddr+ 0xfff) & 0xfffff000; |
len | 772 | fs/binfmt_elf.c | if (bss > len) |
len | 773 | fs/binfmt_elf.c | do_mmap(NULL, len, bss-len, |
len | 1057 | fs/binfmt_elf.c | int i, len; |
len | 1061 | fs/binfmt_elf.c | len = current->mm->arg_end - current->mm->arg_start; |
len | 1062 | fs/binfmt_elf.c | len = len >= ELF_PRARGSZ ? ELF_PRARGSZ : len; |
len | 1064 | fs/binfmt_elf.c | (const char *)current->mm->arg_start, len); |
len | 1065 | fs/binfmt_elf.c | for(i = 0; i < len; i++) |
len | 1068 | fs/binfmt_elf.c | psinfo.pr_psargs[len] = 0; |
len | 1156 | fs/binfmt_elf.c | unsigned long len = vma->vm_end - vma->vm_start; |
len | 1162 | fs/binfmt_elf.c | printk("elf_core_dump: writing %08lx %lx\n", addr, len); |
len | 1164 | 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 | 391 | fs/exec.c | int len, offset = 0; |
len | 407 | fs/exec.c | len=0; /* remember zero-padding */ |
len | 409 | fs/exec.c | len++; |
len | 411 | fs/exec.c | if (p < len) { /* this shouldn't happen - 128kB */ |
len | 415 | fs/exec.c | while (len) { |
len | 416 | fs/exec.c | --p; --tmp; --len; |
len | 870 | fs/exec.c | unsigned int len; |
len | 910 | fs/exec.c | len = PAGE_ALIGN(ex.a_text + ex.a_data); |
len | 912 | fs/exec.c | if (bss > len) |
len | 913 | fs/exec.c | do_mmap(NULL, start_addr + len, bss-len, |
len | 56 | fs/ext/namei.c | static int ext_match(int len,const char * name,struct ext_dir_entry * de) |
len | 58 | fs/ext/namei.c | if (!de || !de->inode || len > EXT_NAME_LEN) |
len | 61 | fs/ext/namei.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 63 | fs/ext/namei.c | if (len != de->name_len) |
len | 65 | fs/ext/namei.c | return !memcmp(name, de->name, len); |
len | 149 | fs/ext/namei.c | int ext_lookup(struct inode * dir,const char * name, int len, |
len | 163 | fs/ext/namei.c | if (!(bh = ext_find_entry(dir,name,len,&de,NULL,NULL))) { |
len | 303 | fs/ext/namei.c | int ext_create(struct inode * dir,const char * name, int len, int mode, |
len | 321 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 337 | fs/ext/namei.c | int ext_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
len | 345 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 380 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 396 | fs/ext/namei.c | int ext_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 402 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 447 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 524 | fs/ext/namei.c | int ext_rmdir(struct inode * dir, const char * name, int len) |
len | 532 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
len | 578 | fs/ext/namei.c | int ext_unlink(struct inode * dir, const char * name, int len) |
len | 587 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
len | 621 | fs/ext/namei.c | int ext_symlink(struct inode * dir, const char * name, int len, const char * symname) |
len | 651 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 660 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 676 | fs/ext/namei.c | int ext_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
len | 691 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 698 | 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 | 236 | fs/hpfs/hpfs_fs.c | static int zerop(void *addr, unsigned len); |
len | 244 | fs/hpfs/hpfs_fs.c | const unsigned char *name, unsigned len, |
len | 252 | fs/hpfs/hpfs_fs.c | static unsigned choose_conv(unsigned char *p, unsigned len); |
len | 254 | fs/hpfs/hpfs_fs.c | unsigned len); |
len | 528 | fs/hpfs/hpfs_fs.c | static int zerop(void *addr, unsigned len) |
len | 531 | fs/hpfs/hpfs_fs.c | return p[0] == 0 && memcmp(p, p + 1, len - 1) == 0; |
len | 944 | fs/hpfs/hpfs_fs.c | static unsigned choose_conv(unsigned char *p, unsigned len) |
len | 951 | fs/hpfs/hpfs_fs.c | while (len--) { |
len | 954 | fs/hpfs/hpfs_fs.c | if (c == '\r' && len && *p == '\n') |
len | 976 | fs/hpfs/hpfs_fs.c | unsigned len) |
len | 980 | fs/hpfs/hpfs_fs.c | while (len--) { |
len | 982 | fs/hpfs/hpfs_fs.c | if (c == '\r' && (len == 0 || *in == '\n')); |
len | 1101 | fs/hpfs/hpfs_fs.c | static int hpfs_lookup(struct inode *dir, const char *name, int len, |
len | 1122 | fs/hpfs/hpfs_fs.c | if (name[0] == '.' && len == 1) |
len | 1124 | fs/hpfs/hpfs_fs.c | else if (name[0] == '.' && name[1] == '.' && len == 2) |
len | 1129 | fs/hpfs/hpfs_fs.c | de = map_dirent(dir, dir->i_hpfs_dno, name, len, &qbh); |
len | 1224 | fs/hpfs/hpfs_fs.c | const unsigned char *name, unsigned len, |
len | 1253 | fs/hpfs/hpfs_fs.c | l = len < de->namelen ? len : de->namelen; |
len | 1260 | fs/hpfs/hpfs_fs.c | t = len - de->namelen; |
len | 1277 | fs/hpfs/hpfs_fs.c | name, len, qbh); |
len | 1334 | fs/hpfs/hpfs_fs.c | static void translate_hpfs_name(const unsigned char * from, int len, char * to, int lowercase) |
len | 1336 | fs/hpfs/hpfs_fs.c | while (len > 0) { |
len | 1338 | fs/hpfs/hpfs_fs.c | len--; |
len | 80 | fs/isofs/dir.c | static int isofs_name_translate(char * old, int len, char * new) |
len | 84 | fs/isofs/dir.c | for (i = 0; i < len; i++) { |
len | 92 | fs/isofs/dir.c | if (c == '.' && i == len - 3 && old[i + 1] == ';' && old[i + 2] == '1') |
len | 96 | fs/isofs/dir.c | if (c == ';' && i == len - 2 && old[i + 1] == '1') |
len | 120 | fs/isofs/dir.c | int len, rrflag; |
len | 227 | fs/isofs/dir.c | len = de->name_len[0]; |
len | 229 | fs/isofs/dir.c | rrflag = get_rock_ridge_filename(de, &name, &len, inode); |
len | 233 | fs/isofs/dir.c | rrflag = filldir(dirent, name, len, filp->f_pos, inode_number); |
len | 234 | fs/isofs/dir.c | dcache_add(inode, name, len, inode_number); |
len | 244 | fs/isofs/dir.c | len = isofs_name_translate(name, len, tmpname); |
len | 245 | fs/isofs/dir.c | if (filldir(dirent, tmpname, len, filp->f_pos, inode_number) < 0) |
len | 247 | fs/isofs/dir.c | dcache_add(inode, tmpname, len, inode_number); |
len | 252 | fs/isofs/dir.c | if (filldir(dirent, name, len, filp->f_pos, inode_number) < 0) |
len | 255 | fs/isofs/dir.c | dcache_add(inode, name, len, inode_number); |
len | 31 | fs/isofs/namei.c | static int isofs_match(int len,const char * name, const char * compare, int dlen) |
len | 40 | fs/isofs/namei.c | if (!len) |
len | 49 | fs/isofs/namei.c | if (len <= 2) printk("Match: %d %d %s %d %d \n",len,dlen,compare,de->name[0], dlen); |
len | 52 | fs/isofs/namei.c | if (dlen != len) |
len | 54 | fs/isofs/namei.c | return !memcmp(name, compare, len); |
len | 222 | fs/isofs/namei.c | int isofs_lookup(struct inode * dir,const char * name, int len, |
len | 229 | fs/isofs/namei.c | printk("lookup: %x %d\n",dir->i_ino, len); |
len | 242 | fs/isofs/namei.c | if (dcache_lookup(dir, name, len, &ino)) ino_back = dir->i_ino; |
len | 245 | fs/isofs/namei.c | if (!(bh = isofs_find_entry(dir,name,len, &ino, &ino_back))) { |
len | 250 | fs/isofs/namei.c | dcache_add(dir, name, len, ino); |
len | 87 | fs/isofs/rock.c | len = cont_size; \ |
len | 103 | fs/isofs/rock.c | int len; |
len | 118 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(de, chr, len); |
len | 124 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 126 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 128 | fs/isofs/rock.c | chr += rr->len; |
len | 129 | fs/isofs/rock.c | len -= rr->len; |
len | 176 | fs/isofs/rock.c | int len; |
len | 184 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(de, chr, len); |
len | 190 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 192 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 194 | fs/isofs/rock.c | chr += rr->len; |
len | 195 | fs/isofs/rock.c | len -= rr->len; |
len | 225 | fs/isofs/rock.c | if((strlen(retname) + rr->len - 5) >= 254) { |
len | 229 | fs/isofs/rock.c | strncat(retname, rr->u.NM.name, rr->len - 5); |
len | 230 | fs/isofs/rock.c | retnamlen += rr->len - 5; |
len | 259 | fs/isofs/rock.c | int len; |
len | 265 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(de, chr, len); |
len | 273 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 275 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 277 | fs/isofs/rock.c | chr += rr->len; |
len | 278 | fs/isofs/rock.c | len -= rr->len; |
len | 338 | fs/isofs/rock.c | slen = rr->len - 5; |
len | 345 | fs/isofs/rock.c | inode->i_size += slp->len; |
len | 360 | fs/isofs/rock.c | slen -= slp->len + 2; |
len | 361 | fs/isofs/rock.c | slp = (struct SL_component *) (((char *) slp) + slp->len + 2); |
len | 418 | fs/isofs/rock.c | int len; |
len | 460 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(raw_inode, chr, len); |
len | 463 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 466 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 468 | fs/isofs/rock.c | chr += rr->len; |
len | 469 | fs/isofs/rock.c | len -= rr->len; |
len | 481 | fs/isofs/rock.c | slen = rr->len - 5; |
len | 492 | fs/isofs/rock.c | strncat(rpnt,slp->text, slp->len); |
len | 507 | fs/isofs/rock.c | slen -= slp->len + 2; |
len | 508 | 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 | 27 | fs/minix/namei.c | static inline int namecompare(int len, int maxlen, |
len | 30 | fs/minix/namei.c | if (len > maxlen) |
len | 32 | fs/minix/namei.c | if (len < maxlen && buffer[len]) |
len | 34 | fs/minix/namei.c | return !memcmp(name, buffer, len); |
len | 44 | fs/minix/namei.c | static int minix_match(int len, const char * name, |
len | 52 | fs/minix/namei.c | if (!de->inode || len > info->s_namelen) |
len | 55 | fs/minix/namei.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 57 | fs/minix/namei.c | return namecompare(len,info->s_namelen,name,de->name); |
len | 111 | fs/minix/namei.c | int minix_lookup(struct inode * dir,const char * name, int len, |
len | 125 | fs/minix/namei.c | if (!(bh = minix_find_entry(dir,name,len,&de))) { |
len | 215 | fs/minix/namei.c | int minix_create(struct inode * dir,const char * name, int len, int mode, |
len | 234 | fs/minix/namei.c | error = minix_add_entry(dir,name,len, &bh ,&de); |
len | 250 | fs/minix/namei.c | int minix_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
len | 259 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 291 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
len | 307 | fs/minix/namei.c | int minix_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 320 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 358 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
len | 433 | fs/minix/namei.c | int minix_rmdir(struct inode * dir, const char * name, int len) |
len | 441 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 490 | fs/minix/namei.c | int minix_unlink(struct inode * dir, const char * name, int len) |
len | 500 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 544 | fs/minix/namei.c | int minix_symlink(struct inode * dir, const char * name, int len, const char * symname) |
len | 574 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 583 | fs/minix/namei.c | i = minix_add_entry(dir, name, len, &bh, &de); |
len | 599 | fs/minix/namei.c | int minix_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
len | 615 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 622 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
len | 41 | fs/msdos/namei.c | static int msdos_format_name(char conv,const char *name,int len,char *res, |
len | 50 | fs/msdos/namei.c | if (name[0] == '.' && (len == 1 || (len == 2 && name[1] == '.'))) { |
len | 53 | fs/msdos/namei.c | while (len--) *res++ = '.'; |
len | 58 | fs/msdos/namei.c | for (walk = res; len && walk-res < 8; walk++) { |
len | 60 | fs/msdos/namei.c | len--; |
len | 70 | fs/msdos/namei.c | if (conv == 's' && len && c != '.') { |
len | 72 | fs/msdos/namei.c | len--; |
len | 75 | fs/msdos/namei.c | while (c != '.' && len--) c = *name++; |
len | 78 | fs/msdos/namei.c | while (len > 0 && walk-res < MSDOS_NAME) { |
len | 80 | fs/msdos/namei.c | len--; |
len | 91 | fs/msdos/namei.c | if (conv == 's' && len) return -EINVAL; |
len | 102 | fs/msdos/namei.c | static int msdos_find(struct inode *dir,const char *name,int len, |
len | 108 | fs/msdos/namei.c | res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, msdos_name,1); |
len | 115 | fs/msdos/namei.c | int msdos_lookup(struct inode *dir,const char *name,int len, |
len | 133 | fs/msdos/namei.c | if (len == 1 && name[0] == '.') { |
len | 137 | fs/msdos/namei.c | if (len == 2 && name[0] == '.' && name[1] == '.') { |
len | 145 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) { |
len | 219 | fs/msdos/namei.c | int msdos_create(struct inode *dir,const char *name,int len,int mode, |
len | 229 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
len | 268 | fs/msdos/namei.c | int msdos_mkdir(struct inode *dir,const char *name,int len,int mode) |
len | 277 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
len | 319 | fs/msdos/namei.c | if (msdos_rmdir(dir,name,len) < 0) |
len | 352 | fs/msdos/namei.c | int msdos_rmdir(struct inode *dir,const char *name,int len) |
len | 363 | fs/msdos/namei.c | if (name[0] == '.' && (len == 1 || (len == 2 && name[1] == '.'))) |
len | 365 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done; |
len | 393 | fs/msdos/namei.c | int len, |
len | 404 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) |
len | 427 | fs/msdos/namei.c | int msdos_unlink(struct inode *dir,const char *name,int len) |
len | 429 | fs/msdos/namei.c | return msdos_unlinkx (dir,name,len,1); |
len | 434 | fs/msdos/namei.c | int msdos_unlink_umsdos(struct inode *dir,const char *name,int len) |
len | 436 | 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 | 28 | fs/nfs/dir.c | static int nfs_lookup(struct inode *dir, const char *name, int len, |
len | 30 | fs/nfs/dir.c | static int nfs_create(struct inode *dir, const char *name, int len, int mode, |
len | 32 | fs/nfs/dir.c | static int nfs_mkdir(struct inode *dir, const char *name, int len, int mode); |
len | 33 | fs/nfs/dir.c | static int nfs_rmdir(struct inode *dir, const char *name, int len); |
len | 34 | fs/nfs/dir.c | static int nfs_unlink(struct inode *dir, const char *name, int len); |
len | 35 | fs/nfs/dir.c | static int nfs_symlink(struct inode *inode, const char *name, int len, |
len | 38 | fs/nfs/dir.c | const char *name, int len); |
len | 39 | fs/nfs/dir.c | static int nfs_mknod(struct inode *dir, const char *name, int len, int mode, |
len | 299 | fs/nfs/dir.c | static int nfs_lookup(struct inode *dir, const char *__name, int len, |
len | 304 | fs/nfs/dir.c | char name[len > NFS_MAXNAMLEN? 1 : len+1]; |
len | 313 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 317 | fs/nfs/dir.c | memcpy(name,__name,len); |
len | 318 | fs/nfs/dir.c | name[len] = '\0'; |
len | 319 | fs/nfs/dir.c | if (len == 1 && name[0] == '.') { /* cheat for "." */ |
len | 340 | fs/nfs/dir.c | static int nfs_create(struct inode *dir, const char *name, int len, int mode, |
len | 354 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 375 | fs/nfs/dir.c | static int nfs_mknod(struct inode *dir, const char *name, int len, |
len | 388 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 407 | fs/nfs/dir.c | static int nfs_mkdir(struct inode *dir, const char *name, int len, int mode) |
len | 419 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 434 | fs/nfs/dir.c | static int nfs_rmdir(struct inode *dir, const char *name, int len) |
len | 443 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 454 | fs/nfs/dir.c | static int nfs_unlink(struct inode *dir, const char *name, int len) |
len | 463 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 474 | fs/nfs/dir.c | static int nfs_symlink(struct inode *dir, const char *name, int len, |
len | 485 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 503 | fs/nfs/dir.c | const char *name, int len) |
len | 519 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 72 | fs/nfs/file.c | int len; /* size of data */ |
len | 125 | fs/nfs/file.c | && (cache[i].file_pos + cache[i].len >= pos + count) |
len | 183 | fs/nfs/file.c | cache[tail].len = result; |
len | 101 | fs/nfs/proc.c | #define QUADLEN(len) (((len) + 3) >> 2) |
len | 117 | fs/nfs/proc.c | int len = strlen(string); |
len | 118 | fs/nfs/proc.c | int quadlen = QUADLEN(len); |
len | 121 | fs/nfs/proc.c | *p++ = htonl(len); |
len | 122 | fs/nfs/proc.c | memcpy(p, string, len); |
len | 128 | fs/nfs/proc.c | unsigned int len = ntohl(*p++); |
len | 129 | fs/nfs/proc.c | if (len > maxlen) |
len | 131 | fs/nfs/proc.c | memcpy(string, p, len); |
len | 132 | fs/nfs/proc.c | string[len] = '\0'; |
len | 133 | fs/nfs/proc.c | return p + QUADLEN(len); |
len | 136 | fs/nfs/proc.c | static inline int *xdr_decode_string2(int *p, char **string, unsigned int *len, |
len | 139 | fs/nfs/proc.c | *len = ntohl(*p++); |
len | 140 | fs/nfs/proc.c | if (*len > maxlen) |
len | 143 | fs/nfs/proc.c | return p + QUADLEN(*len); |
len | 147 | fs/nfs/proc.c | static inline int *xdr_encode_data(int *p, const char *data, int len) |
len | 149 | fs/nfs/proc.c | int quadlen = QUADLEN(len); |
len | 152 | fs/nfs/proc.c | *p++ = htonl(len); |
len | 153 | fs/nfs/proc.c | memcpy_fromfs(p, data, len); |
len | 160 | fs/nfs/proc.c | unsigned len = *lenp = ntohl(*p++); |
len | 161 | fs/nfs/proc.c | if (len > maxlen) |
len | 164 | fs/nfs/proc.c | memcpy_tofs(data, p, len); |
len | 166 | fs/nfs/proc.c | memcpy(data, p, len); |
len | 167 | fs/nfs/proc.c | return p + QUADLEN(len); |
len | 345 | fs/nfs/proc.c | int **p0, char **string, unsigned int *len, unsigned int maxlen) |
len | 361 | fs/nfs/proc.c | if (!(p = xdr_decode_string2(p, string, len, maxlen))) { |
len | 385 | fs/nfs/proc.c | int len; |
len | 404 | fs/nfs/proc.c | if (!(p = xdr_decode_data(p, data, &len, count, fs))) { |
len | 409 | fs/nfs/proc.c | status = len; |
len | 410 | fs/nfs/proc.c | PRINTK("NFS reply read %d\n", len); |
len | 60 | fs/nfs/sock.c | int len; |
len | 77 | fs/nfs/sock.c | len = ((char *) end) - ((char *) start); |
len | 107 | fs/nfs/sock.c | result = sock->ops->sendto(sock, (void *) start, len, 0, 0, |
len | 54 | fs/nfs/symlink.c | unsigned int len; |
len | 77 | fs/nfs/symlink.c | &res, &len, NFS_MAXPATHLEN); |
len | 87 | fs/nfs/symlink.c | memcpy(res2, res, len); |
len | 88 | fs/nfs/symlink.c | res2[len] = '\0'; |
len | 101 | fs/nfs/symlink.c | unsigned int len; |
len | 111 | fs/nfs/symlink.c | &res, &len, buflen); |
len | 114 | fs/nfs/symlink.c | memcpy_tofs(buffer, res, len); |
len | 115 | fs/nfs/symlink.c | put_user('\0', buffer + len); |
len | 116 | fs/nfs/symlink.c | error = len; |
len | 187 | fs/proc/array.c | int i, len; |
len | 192 | fs/proc/array.c | len = sprintf(buffer, |
len | 212 | fs/proc/array.c | len += sprintf(buffer + len, " %u", kstat.interrupts[i]); |
len | 213 | fs/proc/array.c | len += sprintf(buffer + len, |
len | 218 | fs/proc/array.c | return len; |
len | 638 | fs/proc/array.c | int len; |
len | 656 | fs/proc/array.c | len = sprintf(line, MAPS_LINE_FORMAT, |
len | 660 | fs/proc/array.c | if (column >= len) { |
len | 667 | fs/proc/array.c | i = len-column; |
len | 673 | 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 | 179 | fs/proc/root.c | int len; |
len | 183 | fs/proc/root.c | len = 1 + sprintf(tmp, "%d", current->pid); |
len | 184 | fs/proc/root.c | if (buflen < len) |
len | 185 | fs/proc/root.c | len = buflen; |
len | 186 | fs/proc/root.c | memcpy_tofs(buffer, tmp, len); |
len | 187 | fs/proc/root.c | return len; |
len | 304 | fs/proc/root.c | int proc_match(int len,const char * name,struct proc_dir_entry * de) |
len | 309 | fs/proc/root.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 311 | fs/proc/root.c | if (de->namelen != len) |
len | 313 | fs/proc/root.c | return !memcmp(name, de->name, len); |
len | 316 | fs/proc/root.c | int proc_lookup(struct inode * dir,const char * name, int len, |
len | 334 | fs/proc/root.c | if (!len) |
len | 337 | fs/proc/root.c | if (len == 1) |
len | 339 | fs/proc/root.c | if (name[1] == '.' && len == 2) { |
len | 352 | fs/proc/root.c | if (proc_match(len, name, de)) |
len | 368 | fs/proc/root.c | static int proc_root_lookup(struct inode * dir,const char * name, int len, |
len | 374 | fs/proc/root.c | int retval = proc_lookup(dir, name, len, result); |
len | 379 | fs/proc/root.c | while (len-- > 0) { |
len | 134 | fs/proc/scsi.c | static int proc_lookupscsi(struct inode * dir, const char * name, int len, |
len | 157 | fs/proc/scsi.c | if (!proc_match(len, name, de)) |
len | 171 | fs/proc/scsi.c | int len, pos, begin; |
len | 174 | fs/proc/scsi.c | pos = len = sprintf(buffer, |
len | 177 | fs/proc/scsi.c | len = 0; |
len | 182 | fs/proc/scsi.c | len -= (offset - begin); |
len | 183 | fs/proc/scsi.c | if(len > length) |
len | 184 | fs/proc/scsi.c | len = length; |
len | 186 | fs/proc/scsi.c | return(len); |
len | 35 | fs/smbfs/dir.c | get_pname(struct inode *dir, const char *name, int len, |
len | 39 | fs/smbfs/dir.c | get_pname_static(struct inode *dir, const char *name, int len, |
len | 53 | fs/smbfs/dir.c | int len, struct inode **result); |
len | 56 | fs/smbfs/dir.c | smb_create(struct inode *dir, const char *name, int len, int mode, |
len | 60 | fs/smbfs/dir.c | smb_mkdir(struct inode *dir, const char *name, int len, int mode); |
len | 63 | fs/smbfs/dir.c | smb_rmdir(struct inode *dir, const char *name, int len); |
len | 66 | fs/smbfs/dir.c | smb_unlink(struct inode *dir, const char *name, int len); |
len | 256 | fs/smbfs/dir.c | int len; |
len | 260 | fs/smbfs/dir.c | len = strlen(entry->path); |
len | 261 | fs/smbfs/dir.c | if ((result = get_pname_static(inode, entry->path, len, |
len | 278 | fs/smbfs/dir.c | if (filldir(dirent, entry->path, len, |
len | 338 | fs/smbfs/dir.c | get_pname_static(struct inode *dir, const char *name, int len, |
len | 342 | fs/smbfs/dir.c | int parentlen = SMB_INOP(dir)->finfo.len; |
len | 355 | fs/smbfs/dir.c | if (len > SMB_MAXNAMELEN) { |
len | 360 | fs/smbfs/dir.c | if (len == 0 || (len == 1 && name[0] == '.')) { |
len | 368 | fs/smbfs/dir.c | if (len == 2 && name[0] == '.' && name[1] == '.') { |
len | 390 | fs/smbfs/dir.c | len = pos - parentname; |
len | 392 | fs/smbfs/dir.c | memcpy(path, parentname, len); |
len | 393 | fs/smbfs/dir.c | path[len] = '\0'; |
len | 397 | fs/smbfs/dir.c | if (len + parentlen + 2 > SMB_MAXPATHLEN) |
len | 402 | fs/smbfs/dir.c | memcpy(path + parentlen + 1, name, len); |
len | 403 | fs/smbfs/dir.c | path[parentlen + 1 + len] = '\0'; |
len | 404 | fs/smbfs/dir.c | len = parentlen + len + 1; |
len | 419 | fs/smbfs/dir.c | *res_len = len; |
len | 427 | fs/smbfs/dir.c | get_pname(struct inode *dir, const char *name, int len, |
len | 434 | fs/smbfs/dir.c | if ((res = get_pname_static(dir,name,len,result,&result_len) != 0)) { |
len | 463 | fs/smbfs/dir.c | int error, len; |
len | 477 | fs/smbfs/dir.c | len = strlen(path); |
len | 481 | fs/smbfs/dir.c | path, len, &newent); |
len | 506 | fs/smbfs/dir.c | new_inode_info->finfo.len = len; |
len | 544 | fs/smbfs/dir.c | smb_kfree_s(i->finfo.path, i->finfo.len+1); |
len | 560 | fs/smbfs/dir.c | root->finfo.len = strlen(root->finfo.path); |
len | 576 | fs/smbfs/dir.c | if (root->finfo.len == 0) { |
len | 582 | fs/smbfs/dir.c | root->finfo.path, root->finfo.len, |
len | 653 | fs/smbfs/dir.c | smb_lookup(struct inode *dir, const char *__name, int len, |
len | 673 | fs/smbfs/dir.c | if (len == 0 || (len == 1 && __name[0] == '.')) { |
len | 679 | fs/smbfs/dir.c | if ((error = get_pname(dir, __name, len, &name, &len)) < 0) { |
len | 737 | fs/smbfs/dir.c | error = smb_proc_getattr(SMB_SERVER(dir), name, len, &finfo); |
len | 757 | fs/smbfs/dir.c | smb_create(struct inode *dir, const char *name, int len, int mode, |
len | 773 | fs/smbfs/dir.c | if ((error = get_pname(dir, name, len, &path, &len)) < 0) { |
len | 784 | fs/smbfs/dir.c | error = smb_proc_create(SMB_SERVER(dir), path, len, &entry); |
len | 803 | fs/smbfs/dir.c | smb_mkdir(struct inode *dir, const char *name, int len, int mode) |
len | 815 | fs/smbfs/dir.c | if ((error = get_pname_static(dir, name, len, path, &len)) < 0) { |
len | 820 | fs/smbfs/dir.c | if ((error = smb_proc_mkdir(SMB_SERVER(dir), path, len)) == 0) { |
len | 829 | fs/smbfs/dir.c | smb_rmdir(struct inode *dir, const char *name, int len) |
len | 839 | fs/smbfs/dir.c | if ((error = get_pname_static(dir, name, len, path, &len)) < 0) { |
len | 846 | fs/smbfs/dir.c | if ((error = smb_proc_rmdir(SMB_SERVER(dir), path, len)) == 0) |
len | 854 | fs/smbfs/dir.c | smb_unlink(struct inode *dir, const char *name, int len) |
len | 864 | fs/smbfs/dir.c | if ((error = get_pname_static(dir, name, len, path, &len)) < 0) { |
len | 871 | fs/smbfs/dir.c | if ((error = smb_proc_unlink(SMB_SERVER(dir), path, len)) == 0) |
len | 50 | fs/smbfs/file.c | dirent->path, dirent->len, |
len | 73 | fs/smbfs/proc.c | smb_encode_smb_length(byte *p, dword len) |
len | 76 | fs/smbfs/proc.c | p[2] = (len & 0xFF00) >> 8; |
len | 77 | fs/smbfs/proc.c | p[3] = (len & 0xFF); |
len | 78 | fs/smbfs/proc.c | if (len > 0xFFFF) |
len | 84 | fs/smbfs/proc.c | smb_encode_dialect(byte *p, const byte *name, int len) |
len | 88 | fs/smbfs/proc.c | return p + len + 1; |
len | 92 | fs/smbfs/proc.c | smb_encode_ascii(byte *p, const byte *name, int len) |
len | 96 | fs/smbfs/proc.c | return p + len + 1; |
len | 100 | fs/smbfs/proc.c | smb_encode_vblock(byte *p, const byte *data, word len, int fs) |
len | 103 | fs/smbfs/proc.c | p = smb_encode_word(p, len); |
len | 105 | fs/smbfs/proc.c | memcpy_fromfs(p, data, len); |
len | 107 | fs/smbfs/proc.c | memcpy(p, data, len); |
len | 108 | fs/smbfs/proc.c | return p + len; |
len | 114 | fs/smbfs/proc.c | word len; |
len | 121 | fs/smbfs/proc.c | len = WVAL(p, 1); |
len | 125 | fs/smbfs/proc.c | memcpy_tofs(data, p, len); |
len | 127 | fs/smbfs/proc.c | memcpy(data, p, len); |
len | 129 | fs/smbfs/proc.c | *data_len = len; |
len | 131 | fs/smbfs/proc.c | return p + len; |
len | 137 | fs/smbfs/proc.c | int len, pad = 0; |
len | 139 | fs/smbfs/proc.c | len = strlen(name); |
len | 141 | fs/smbfs/proc.c | if (len < 16) |
len | 142 | fs/smbfs/proc.c | pad = 16 - len; |
len | 144 | fs/smbfs/proc.c | *p ++ = 2 * (len + pad); |
len | 353 | fs/smbfs/proc.c | int i, j, len; |
len | 360 | fs/smbfs/proc.c | len = smb_len(packet), smb_valid_packet(packet)); |
len | 370 | fs/smbfs/proc.c | if (len > 100) |
len | 371 | fs/smbfs/proc.c | len = 100; |
len | 373 | fs/smbfs/proc.c | for (i = 0; i < len; i += 10) { |
len | 376 | fs/smbfs/proc.c | if (j < len) |
len | 382 | fs/smbfs/proc.c | if (j < len) |
len | 536 | fs/smbfs/proc.c | smb_proc_open(struct smb_server *server, const char *pathname, int len, |
len | 549 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBopen, 2, 2 + len); |
len | 552 | fs/smbfs/proc.c | smb_encode_ascii(p, pathname, len); |
len | 565 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBopen, 2, 2 + len); |
len | 568 | fs/smbfs/proc.c | smb_encode_ascii(p, pathname, len); |
len | 762 | fs/smbfs/proc.c | smb_proc_do_create(struct smb_server *server, const char *path, int len, |
len | 771 | fs/smbfs/proc.c | p = smb_setup_header(server, command, 3, len + 2); |
len | 774 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
len | 794 | fs/smbfs/proc.c | smb_proc_create(struct smb_server *server, const char *path, int len, |
len | 797 | fs/smbfs/proc.c | return smb_proc_do_create(server, path, len, entry, SMBcreate); |
len | 801 | fs/smbfs/proc.c | smb_proc_mknew(struct smb_server *server, const char *path, int len, |
len | 804 | fs/smbfs/proc.c | return smb_proc_do_create(server, path, len, entry, SMBmknew); |
len | 834 | fs/smbfs/proc.c | smb_proc_mkdir(struct smb_server *server, const char *path, const int len) |
len | 842 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBmkdir, 0, 2 + len); |
len | 843 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
len | 855 | fs/smbfs/proc.c | smb_proc_rmdir(struct smb_server *server, const char *path, const int len) |
len | 863 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBrmdir, 0, 2 + len); |
len | 864 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
len | 876 | fs/smbfs/proc.c | smb_proc_unlink(struct smb_server *server, const char *path, const int len) |
len | 885 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBunlink, 1, 2 + len); |
len | 887 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
len | 1083 | fs/smbfs/proc.c | finfo->len = strlen(finfo->path); |
len | 1098 | fs/smbfs/proc.c | finfo->len = strlen(finfo->path); |
len | 1134 | fs/smbfs/proc.c | finfo->len = namelen; |
len | 1385 | fs/smbfs/proc.c | smb_proc_getattr_core(struct smb_server *server, const char *path, int len, |
len | 1397 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBgetatr, 0, 2 + len); |
len | 1398 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
len | 1444 | fs/smbfs/proc.c | smb_proc_getattr(struct smb_server *server, const char *path, int len, |
len | 1452 | fs/smbfs/proc.c | if ((result=smb_proc_open(server,path,len, |
len | 1456 | fs/smbfs/proc.c | return smb_proc_getattr_core(server,path,len,entry); |
len | 1471 | fs/smbfs/proc.c | return smb_proc_getattr_core(server, path, len, entry); |
len | 1480 | fs/smbfs/proc.c | const char *path, int len, |
len | 1490 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBsetatr, 8, 4 + len); |
len | 1493 | fs/smbfs/proc.c | p = smb_encode_ascii(p, path, len); |
len | 1547 | fs/smbfs/proc.c | return smb_proc_setattr_core(server, finfo->path, finfo->len, |
len | 34 | fs/smbfs/sock.c | smb_data_callback(struct sock *sk,int len) |
len | 186 | fs/smbfs/sock.c | int len, result; |
len | 227 | fs/smbfs/sock.c | len = smb_len(peek_buf); |
len | 228 | fs/smbfs/sock.c | if (len > max_raw_length) { |
len | 230 | fs/smbfs/sock.c | len, max_raw_length); |
len | 241 | fs/smbfs/sock.c | while (already_read < len) { |
len | 246 | fs/smbfs/sock.c | len - already_read, 0, 0, |
len | 467 | fs/smbfs/sock.c | int len, result, result2; |
len | 486 | fs/smbfs/sock.c | len = smb_len(buffer) + 4; |
len | 488 | fs/smbfs/sock.c | DDPRINTK("smb_request: len = %d cmd = 0x%X\n", len, buffer[8]); |
len | 495 | fs/smbfs/sock.c | result = sock->ops->send(sock, (void *)buffer, len, 0, 0); |
len | 535 | fs/smbfs/sock.c | int len, result, result2; |
len | 554 | fs/smbfs/sock.c | len = smb_len(buffer) + 4; |
len | 561 | fs/smbfs/sock.c | DDPRINTK("smb_request: len = %d cmd = 0x%X\n", len, buffer[8]); |
len | 563 | fs/smbfs/sock.c | result = sock->ops->send(sock, (void *)buffer, len, 0, 0); |
len | 599 | fs/smbfs/sock.c | int len, result, result2; |
len | 620 | fs/smbfs/sock.c | len = smb_len(buffer) + 4; |
len | 628 | fs/smbfs/sock.c | len, buffer[8]); |
len | 634 | fs/smbfs/sock.c | result = sock->ops->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 | 29 | fs/sysv/namei.c | static inline int namecompare(int len, int maxlen, |
len | 32 | fs/sysv/namei.c | if (len > maxlen) |
len | 34 | fs/sysv/namei.c | if (len < maxlen && buffer[len]) |
len | 36 | fs/sysv/namei.c | return !memcmp(name, buffer, len); |
len | 46 | fs/sysv/namei.c | static int sysv_match(int len, const char * name, struct sysv_dir_entry * de) |
len | 48 | fs/sysv/namei.c | if (!de->inode || len > SYSV_NAMELEN) |
len | 51 | fs/sysv/namei.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 53 | fs/sysv/namei.c | return namecompare(len,SYSV_NAMELEN,name,de->name); |
len | 107 | fs/sysv/namei.c | int sysv_lookup(struct inode * dir,const char * name, int len, |
len | 121 | fs/sysv/namei.c | if (!(bh = sysv_find_entry(dir,name,len,&de))) { |
len | 208 | fs/sysv/namei.c | int sysv_create(struct inode * dir,const char * name, int len, int mode, |
len | 227 | fs/sysv/namei.c | error = sysv_add_entry(dir,name,len, &bh ,&de); |
len | 243 | fs/sysv/namei.c | int sysv_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
len | 252 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 284 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
len | 300 | fs/sysv/namei.c | int sysv_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 311 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 349 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
len | 425 | fs/sysv/namei.c | int sysv_rmdir(struct inode * dir, const char * name, int len) |
len | 433 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 481 | fs/sysv/namei.c | int sysv_unlink(struct inode * dir, const char * name, int len) |
len | 491 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 534 | fs/sysv/namei.c | int sysv_symlink(struct inode * dir, const char * name, int len, const char * symname) |
len | 569 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 578 | fs/sysv/namei.c | i = sysv_add_entry(dir, name, len, &bh, &de); |
len | 594 | fs/sysv/namei.c | int sysv_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
len | 610 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 617 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
len | 201 | fs/umsdos/dir.c | ,info.fake.len,&inode); |
len | 606 | fs/umsdos/dir.c | int len) |
len | 616 | fs/umsdos/dir.c | && len == 3 |
len | 626 | fs/umsdos/dir.c | int len, |
len | 633 | fs/umsdos/dir.c | if (len == 1 && name[0] == '.'){ |
len | 637 | fs/umsdos/dir.c | }else if (len == 2 && name[0] == '.' && name[1] == '.'){ |
len | 669 | fs/umsdos/dir.c | }else if (umsdos_is_pseudodos(dir,name,len)){ |
len | 679 | fs/umsdos/dir.c | ret = umsdos_parse (name,len,&info); |
len | 682 | fs/umsdos/dir.c | ,info.fake.len)); |
len | 694 | fs/umsdos/dir.c | ret = umsdos_real_lookup (dir,info.fake.fname,info.fake.len,result); |
len | 735 | fs/umsdos/dir.c | int len, |
len | 738 | fs/umsdos/dir.c | return umsdos_lookup_x(dir,name,len,result,0); |
len | 767 | fs/umsdos/dir.c | int len; |
len | 769 | fs/umsdos/dir.c | len = (int)(pt - start); |
len | 773 | fs/umsdos/dir.c | ret = umsdos_rlookup_x(dir,start,len,result,1); |
len | 775 | fs/umsdos/dir.c | ret = umsdos_lookup_x(dir,start,len,result,1); |
len | 77 | fs/umsdos/inode.c | int len, |
len | 82 | fs/umsdos/inode.c | ret = msdos_lookup (dir,name,len,result); |
len | 159 | fs/umsdos/ioctl.c | ,info.fake.fname,info.fake.len+1); |
len | 77 | fs/umsdos/mangle.c | char *pt = info->fake.fname + info->fake.len; |
len | 102 | fs/umsdos/mangle.c | info->fake.len += 4; |
len | 111 | fs/umsdos/mangle.c | int umsdos_evalrecsize (int len) |
len | 114 | fs/umsdos/mangle.c | int nbrec = 1+((len-1+(dirent.name-(char*)&dirent)) |
len | 123 | fs/umsdos/mangle.c | int umsdos_evalrecsize_old (int len) |
len | 126 | fs/umsdos/mangle.c | int size = len + (dirent.name-(char*)&dirent); |
len | 139 | fs/umsdos/mangle.c | int len, |
len | 148 | fs/umsdos/mangle.c | if (len > UMSDOS_MAXNAME) len = UMSDOS_MAXNAME; |
len | 156 | fs/umsdos/mangle.c | int msdos_len = len; |
len | 195 | fs/umsdos/mangle.c | if (len<=(8+1+3)){ |
len | 197 | fs/umsdos/mangle.c | const char *endpt = fname + len; |
len | 258 | fs/umsdos/mangle.c | || (firstpt == NULL && len > 8) |
len | 259 | fs/umsdos/mangle.c | || (len == UMSDOS_EMD_NAMELEN |
len | 305 | fs/umsdos/mangle.c | strncpy (info->fake.fname,fname,len); |
len | 307 | fs/umsdos/mangle.c | base_len = firstpt != NULL ? (int)(firstpt - fname) : len; |
len | 376 | fs/umsdos/mangle.c | info->fake.len = msdos_len; |
len | 378 | fs/umsdos/mangle.c | memcpy (info->entry.name,fname,len); |
len | 379 | fs/umsdos/mangle.c | info->entry.name_len = len; |
len | 385 | fs/umsdos/mangle.c | info->recsize = umsdos_evalrecsize (len); |
len | 164 | fs/umsdos/namei.c | int len, |
len | 168 | fs/umsdos/namei.c | if (umsdos_is_pseudodos(dir,name,len)){ |
len | 179 | fs/umsdos/namei.c | && (len == 1 || (len == 2 && name[1] == '.'))){ |
len | 205 | fs/umsdos/namei.c | int len, /* Length of the name */ |
len | 213 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EEXIST); |
len | 216 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
len | 232 | fs/umsdos/namei.c | ret = msdos_create (dir,info.fake.fname,info.fake.len |
len | 351 | fs/umsdos/namei.c | PRINTK (("ret %d %d ",ret,new_info.fake.len)); |
len | 357 | fs/umsdos/namei.c | ,old_info.fake.fname,old_info.fake.len |
len | 359 | fs/umsdos/namei.c | ,new_info.fake.fname,new_info.fake.len); |
len | 426 | fs/umsdos/namei.c | int len, |
len | 445 | fs/umsdos/namei.c | ret = umsdos_create_any (dir,name,len,mode,0,flags,&inode); |
len | 448 | fs/umsdos/namei.c | int len = strlen(symname); |
len | 452 | fs/umsdos/namei.c | ret = umsdos_file_write_kmem (inode,&filp,symname,len); |
len | 455 | fs/umsdos/namei.c | if (ret != len){ |
len | 464 | fs/umsdos/namei.c | UMSDOS_unlink (dir,name,len); |
len | 479 | fs/umsdos/namei.c | int len, |
len | 482 | fs/umsdos/namei.c | return umsdos_symlink_x (dir,name,len,symname,S_IFLNK|0777,0); |
len | 491 | fs/umsdos/namei.c | int len) |
len | 570 | fs/umsdos/namei.c | }else if ((ret = umsdos_nevercreat(dir,name,len,-EPERM))==0){ |
len | 620 | fs/umsdos/namei.c | ret = umsdos_symlink_x (dir,name,len |
len | 637 | fs/umsdos/namei.c | ret = umsdos_symlink_x (dir,name,len,path |
len | 670 | fs/umsdos/namei.c | int len, /* Length of the name */ |
len | 675 | fs/umsdos/namei.c | return umsdos_create_any (dir,name,len,mode,0,0,result); |
len | 683 | fs/umsdos/namei.c | int len, |
len | 686 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EEXIST); |
len | 689 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
len | 706 | fs/umsdos/namei.c | ret = msdos_mkdir (dir,info.fake.fname,info.fake.len,mode); |
len | 722 | fs/umsdos/namei.c | ,info.fake.len,&subdir); |
len | 749 | fs/umsdos/namei.c | int len, |
len | 768 | fs/umsdos/namei.c | int ret = umsdos_create_any (dir,name,len,mode,rdev,0,&inode); |
len | 779 | fs/umsdos/namei.c | int len) |
len | 868 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EPERM); |
len | 872 | fs/umsdos/namei.c | ret = UMSDOS_lookup (dir,name,len,&sdir); |
len | 898 | fs/umsdos/namei.c | umsdos_parse (name,len,&info); |
len | 903 | fs/umsdos/namei.c | ,info.fake.len); |
len | 933 | fs/umsdos/namei.c | int len) |
len | 935 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EPERM); |
len | 938 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
len | 963 | fs/umsdos/namei.c | ret = UMSDOS_lookup (dir,name,len,&inode); |
len | 992 | fs/umsdos/namei.c | ,info.fake.len); |
len | 90 | fs/umsdos/rdir.c | int len, |
len | 97 | fs/umsdos/rdir.c | && len == 2 |
len | 110 | fs/umsdos/rdir.c | ret = umsdos_real_lookup (dir,name,len,result); |
len | 134 | fs/umsdos/rdir.c | int len, |
len | 137 | fs/umsdos/rdir.c | return umsdos_rlookup_x(dir,name,len,result,0); |
len | 143 | fs/umsdos/rdir.c | int len) |
len | 160 | fs/umsdos/rdir.c | if (umsdos_is_pseudodos(dir,name,len)){ |
len | 173 | fs/umsdos/rdir.c | ret = msdos_rmdir (dir,name,len); |
len | 177 | fs/umsdos/rdir.c | ret = UMSDOS_rlookup (dir,name,len,&sdir); |
len | 196 | fs/umsdos/rdir.c | ret = msdos_rmdir (dir,name,len); |
len | 35 | fs/xiafs/namei.c | static int xiafs_match(int len, const char * name, struct xiafs_direct * dep) |
len | 39 | fs/xiafs/namei.c | if (!dep || !dep->d_ino || len > _XIAFS_NAME_LEN) |
len | 42 | fs/xiafs/namei.c | if (!len && (dep->d_name[0]=='.') && (dep->d_name[1]=='\0')) |
len | 44 | fs/xiafs/namei.c | if (len != dep->d_name_len) |
len | 46 | fs/xiafs/namei.c | for (i=0; i < len; i++) |
len | 119 | fs/xiafs/namei.c | int xiafs_lookup(struct inode * dir, const char * name, int len, |
len | 133 | fs/xiafs/namei.c | if (!(bh = xiafs_find_entry(dir, name, len, &dep, NULL))) { |
len | 248 | fs/xiafs/namei.c | int xiafs_create(struct inode * dir, const char * name, int len, int mode, |
len | 266 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 282 | fs/xiafs/namei.c | int xiafs_mknod(struct inode *dir, const char *name, int len, int mode, int rdev) |
len | 290 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len,&de, NULL); |
len | 323 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 339 | fs/xiafs/namei.c | int xiafs_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 345 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len,&de, NULL); |
len | 389 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 489 | fs/xiafs/namei.c | int xiafs_rmdir(struct inode * dir, const char * name, int len) |
len | 497 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, &de_pre); |
len | 541 | fs/xiafs/namei.c | int xiafs_unlink(struct inode * dir, const char * name, int len) |
len | 551 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, &de_pre); |
len | 589 | fs/xiafs/namei.c | int len, const char * symname) |
len | 597 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len, &de, NULL); |
len | 624 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 641 | fs/xiafs/namei.c | const char * name, int len) |
len | 656 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, NULL); |
len | 663 | 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 | 124 | include/asm-alpha/io.h | #define memset_io(addr,c,len) (memset_io)((unsigned long)(addr),(c),(len)) |
len | 125 | include/asm-alpha/io.h | #define memcpy_fromio(to,from,len) (memcpy_fromio)((to),(unsigned long)(from),(len)) |
len | 126 | include/asm-alpha/io.h | #define memcpy_toio(to,from,len) (memcpy_toio)((unsigned long)(to),(from),(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 | 107 | include/asm-i386/checksum.h | static inline unsigned short ip_compute_csum(unsigned char * buff, int len) { |
len | 119 | 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 | 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 | 210 | include/linux/mm.h | extern unsigned long do_mmap(struct file * file, unsigned long addr, unsigned long len, |
len | 145 | include/linux/msdos_fs.h | extern int msdos_lookup(struct inode *dir,const char *name,int len, |
len | 147 | include/linux/msdos_fs.h | extern int msdos_create(struct inode *dir,const char *name,int len,int mode, |
len | 149 | include/linux/msdos_fs.h | extern int msdos_mkdir(struct inode *dir,const char *name,int len,int mode); |
len | 150 | include/linux/msdos_fs.h | extern int msdos_rmdir(struct inode *dir,const char *name,int len); |
len | 151 | include/linux/msdos_fs.h | extern int msdos_unlink(struct inode *dir,const char *name,int len); |
len | 152 | include/linux/msdos_fs.h | extern int msdos_unlink_umsdos(struct inode *dir,const char *name,int len); |
len | 113 | include/linux/net.h | int (*listen) (struct socket *sock, int len); |
len | 114 | include/linux/net.h | int (*send) (struct socket *sock, const void *buff, int len, int nonblock, |
len | 116 | include/linux/net.h | int (*recv) (struct socket *sock, void *buff, int len, int nonblock, |
len | 118 | include/linux/net.h | int (*sendto) (struct socket *sock, const void *buff, int len, int nonblock, |
len | 120 | include/linux/net.h | int (*recvfrom) (struct socket *sock, void *buff, int len, int nonblock, |
len | 151 | include/linux/netdevice.h | unsigned len); |
len | 207 | 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 | 66 | include/linux/skbuff.h | unsigned long len; /* Length of actual data */ |
len | 134 | include/linux/skbuff.h | extern unsigned char * skb_put(struct sk_buff *skb, int len); |
len | 135 | include/linux/skbuff.h | extern unsigned char * skb_push(struct sk_buff *skb, int len); |
len | 136 | include/linux/skbuff.h | extern unsigned char * skb_pull(struct sk_buff *skb, int len); |
len | 139 | include/linux/skbuff.h | extern void skb_reserve(struct sk_buff *skb, int len); |
len | 140 | include/linux/skbuff.h | extern void skb_trim(struct sk_buff *skb, int len); |
len | 308 | include/linux/skbuff.h | extern __inline__ unsigned char *skb_put(struct sk_buff *skb, int len) |
len | 311 | include/linux/skbuff.h | skb->tail+=len; |
len | 312 | include/linux/skbuff.h | skb->len+=len; |
len | 314 | include/linux/skbuff.h | panic("skput:over: %p:%d", __builtin_return_address(0),len); |
len | 318 | include/linux/skbuff.h | extern __inline__ unsigned char *skb_push(struct sk_buff *skb, int len) |
len | 320 | include/linux/skbuff.h | skb->data-=len; |
len | 321 | include/linux/skbuff.h | skb->len+=len; |
len | 323 | include/linux/skbuff.h | panic("skpush:under: %p:%d", __builtin_return_address(0),len); |
len | 327 | include/linux/skbuff.h | extern __inline__ unsigned char * skb_pull(struct sk_buff *skb, int len) |
len | 329 | include/linux/skbuff.h | if(len > skb->len) |
len | 331 | include/linux/skbuff.h | skb->data+=len; |
len | 332 | include/linux/skbuff.h | skb->len-=len; |
len | 346 | include/linux/skbuff.h | extern __inline__ void skb_reserve(struct sk_buff *skb, int len) |
len | 348 | include/linux/skbuff.h | skb->data+=len; |
len | 349 | include/linux/skbuff.h | skb->tail+=len; |
len | 352 | include/linux/skbuff.h | extern __inline__ void skb_trim(struct sk_buff *skb, int len) |
len | 354 | include/linux/skbuff.h | if(skb->len>len) |
len | 356 | include/linux/skbuff.h | skb->len=len; |
len | 357 | 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 | 122 | include/linux/socket.h | extern void memcpy_fromiovec(unsigned char *kdata, struct iovec *iov, int len); |
len | 124 | include/linux/socket.h | extern void memcpy_toiovec(struct iovec *v, unsigned char *kdata, int len); |
len | 179 | include/linux/soundcard.h | long len; /* Size of the wave data in bytes */ |
len | 239 | include/linux/soundcard.h | long len; /* Size of the sysex data in bytes */ |
len | 625 | include/linux/soundcard.h | int len; |
len | 636 | include/linux/soundcard.h | int len; /* Length of data in bytes */ |
len | 640 | include/linux/soundcard.h | int len; |
len | 886 | include/linux/soundcard.h | #define SEQ_DEFINEBUF(len) unsigned char _seqbuf[len]; int _seqbuflen = len;int _seqbufptr = 0 |
len | 890 | include/linux/soundcard.h | #define _SEQ_NEEDBUF(len) if ((_seqbufptr+(len)) > _seqbuflen) seqbuf_dump() |
len | 891 | include/linux/soundcard.h | #define _SEQ_ADVBUF(len) _seqbufptr += len |
len | 908 | include/linux/soundcard.h | #define _SEQ_NEEDBUF(len) /* empty */ |
len | 1051 | include/linux/soundcard.h | #define SEQ_WRPATCH(patchx, len) {if (_seqbufptr) seqbuf_dump();\ |
len | 1052 | include/linux/soundcard.h | if (write(seqfd, (char*)(patchx), len)==-1) \ |
len | 1054 | 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 | 32 | include/net/icmp.h | unsigned short len, unsigned long saddr, |
len | 54 | include/net/ip.h | int len; /* length of this fragment */ |
len | 65 | include/net/ip.h | int len; /* total length of original datagram */ |
len | 86 | include/net/ip.h | struct options *opt, int len, |
len | 2 | include/net/ipip.h | unsigned long daddr, unsigned short len, unsigned long saddr, |
len | 33 | include/net/protocol.h | unsigned short len, unsigned long saddr, |
len | 37 | include/net/protocol.h | unsigned short len, unsigned long 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 | 250 | include/net/sock.h | int len, int nonblock, unsigned flags); |
len | 252 | include/net/sock.h | int len, int nonblock, unsigned flags); |
len | 254 | include/net/sock.h | const unsigned char *from, int len, |
len | 258 | include/net/sock.h | unsigned char *from, int len, int noblock, |
len | 265 | include/net/sock.h | struct options *opt, int len, |
len | 278 | include/net/sock.h | unsigned short len, unsigned long saddr, |
len | 378 | include/net/sock.h | sk->data_ready(sk,skb->len); |
len | 131 | include/net/tcp.h | unsigned short len, unsigned long saddr, int redo, |
len | 138 | include/net/tcp.h | unsigned long daddr, int len, struct sock *sk); |
len | 37 | include/net/udp.h | unsigned long 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, unsigned long saddr, int redo, |
len | 333 | init/main.c | int len = strlen(devnames[n]); |
len | 334 | init/main.c | if (!strncmp(line,devnames[n],len)) { |
len | 335 | init/main.c | ROOT_DEV = devnums[n]+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 | 584 | kernel/module.c | int len = 0; /* code from net/ipv4/proc.c */ |
len | 596 | kernel/module.c | p = buf + len; |
len | 598 | kernel/module.c | len += sprintf(p, "%08lx %s\t[%s]\n", |
len | 602 | kernel/module.c | len += sprintf(p, "%08lx %s\n", |
len | 606 | kernel/module.c | pos = begin + len; |
len | 608 | kernel/module.c | len = 0; |
len | 611 | kernel/module.c | pos = begin + len; |
len | 619 | kernel/module.c | len -= (offset - begin); |
len | 620 | kernel/module.c | if (len > length) |
len | 621 | kernel/module.c | len = length; |
len | 622 | kernel/module.c | return len; |
len | 55 | kernel/printk.c | asmlinkage int sys_syslog(int type, char * buf, int len) |
len | 70 | kernel/printk.c | if (!buf || len < 0) |
len | 72 | kernel/printk.c | if (!len) |
len | 74 | kernel/printk.c | error = verify_area(VERIFY_WRITE,buf,len); |
len | 86 | kernel/printk.c | while (log_size && i < len) { |
len | 103 | kernel/printk.c | if (!buf || len < 0) |
len | 105 | kernel/printk.c | if (!len) |
len | 107 | kernel/printk.c | error = verify_area(VERIFY_WRITE,buf,len); |
len | 110 | kernel/printk.c | count = len; |
len | 133 | kernel/printk.c | if (len < 1 || len > 8) |
len | 135 | 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 | 655 | kernel/sys.c | asmlinkage int sys_sethostname(char *name, int len) |
len | 661 | kernel/sys.c | if (len < 0 || len > __NEW_UTS_LEN) |
len | 663 | kernel/sys.c | error = verify_area(VERIFY_READ, name, len); |
len | 666 | kernel/sys.c | memcpy_fromfs(system_utsname.nodename, name, len); |
len | 667 | kernel/sys.c | system_utsname.nodename[len] = 0; |
len | 671 | kernel/sys.c | asmlinkage int sys_gethostname(char *name, int len) |
len | 675 | kernel/sys.c | if (len < 0) |
len | 677 | kernel/sys.c | i = verify_area(VERIFY_WRITE, name, len); |
len | 681 | kernel/sys.c | if (i > len) |
len | 682 | kernel/sys.c | i = len; |
len | 691 | kernel/sys.c | asmlinkage int sys_setdomainname(char *name, int len) |
len | 697 | kernel/sys.c | if (len > __NEW_UTS_LEN) |
len | 699 | kernel/sys.c | error = verify_area(VERIFY_READ, name, len); |
len | 702 | kernel/sys.c | memcpy_fromfs(system_utsname.domainname, name, len); |
len | 703 | 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 | 276 | mm/filemap.c | static void filemap_unmap(struct vm_area_struct *vma, unsigned long start, size_t len) |
len | 278 | 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 | 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 | 93 | mm/mmap.c | if (len > TASK_SIZE || addr > TASK_SIZE - len) |
len | 96 | mm/mmap.c | addr = get_unmapped_area(addr, len); |
len | 116 | mm/mmap.c | vma->vm_end = addr + len; |
len | 146 | mm/mmap.c | do_munmap(addr, len); /* Clear old maps */ |
len | 167 | mm/mmap.c | unsigned long get_unmapped_area(unsigned long addr, unsigned long len) |
len | 171 | mm/mmap.c | if (len > TASK_SIZE) |
len | 178 | mm/mmap.c | if (TASK_SIZE - len < addr) |
len | 184 | mm/mmap.c | if (addr + len > vmm->vm_start) { |
len | 636 | mm/mmap.c | unsigned long addr, size_t len) |
len | 639 | mm/mmap.c | unsigned long end = addr + len; |
len | 699 | mm/mmap.c | asmlinkage int sys_munmap(unsigned long addr, size_t len) |
len | 701 | mm/mmap.c | return do_munmap(addr, len); |
len | 710 | mm/mmap.c | int do_munmap(unsigned long addr, size_t len) |
len | 714 | mm/mmap.c | if ((addr & ~PAGE_MASK) || addr > TASK_SIZE || len > TASK_SIZE-addr) |
len | 717 | mm/mmap.c | if ((len = PAGE_ALIGN(len)) == 0) |
len | 735 | mm/mmap.c | for ( ; mpnt && mpnt->vm_start < addr+len; mpnt = *npp) { |
len | 760 | mm/mmap.c | end = addr+len; |
len | 770 | mm/mmap.c | unmap_page_range(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 | 167 | net/appletalk/aarp.c | int len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length; |
len | 168 | net/appletalk/aarp.c | struct sk_buff *skb=alloc_skb(len, GFP_ATOMIC); |
len | 229 | net/appletalk/aarp.c | int len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length; |
len | 230 | net/appletalk/aarp.c | struct sk_buff *skb=alloc_skb(len, GFP_ATOMIC); |
len | 221 | net/appletalk/ddp.c | int len=0; |
len | 231 | net/appletalk/ddp.c | len += sprintf (buffer,"Type local_addr remote_addr tx_queue rx_queue st uid\n"); |
len | 234 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%02X ", s->type); |
len | 235 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%04X:%02X:%02X ", |
len | 237 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%04X:%02X:%02X ", |
len | 239 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%08lX:%08lX ", s->wmem_alloc, s->rmem_alloc); |
len | 240 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%02X %d\n", s->state, SOCK_INODE(s->socket)->i_uid); |
len | 243 | net/appletalk/ddp.c | pos=begin+len; |
len | 247 | net/appletalk/ddp.c | len=0; /* Keep dumping into the buffer start */ |
len | 256 | net/appletalk/ddp.c | len-=(offset-begin); /* Remove unwanted header data from length */ |
len | 257 | net/appletalk/ddp.c | if(len>length) |
len | 258 | net/appletalk/ddp.c | len=length; /* Remove unwanted tail data from length */ |
len | 260 | net/appletalk/ddp.c | return len; |
len | 823 | net/appletalk/ddp.c | int len=0; |
len | 827 | net/appletalk/ddp.c | len += sprintf (buffer,"Interface Address Networks Status\n"); |
len | 830 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%-16s %04X:%02X %04X-%04X %d\n", |
len | 835 | net/appletalk/ddp.c | pos=begin+len; |
len | 838 | net/appletalk/ddp.c | len=0; |
len | 845 | net/appletalk/ddp.c | len-=(offset-begin); |
len | 846 | net/appletalk/ddp.c | if(len>length) |
len | 847 | net/appletalk/ddp.c | len=length; |
len | 848 | net/appletalk/ddp.c | return len; |
len | 856 | net/appletalk/ddp.c | int len=0; |
len | 860 | net/appletalk/ddp.c | len += sprintf (buffer,"Target Router Flags Dev\n"); |
len | 864 | net/appletalk/ddp.c | len += sprintf (buffer+len,"Default %5d:%-3d %-4d %s\n", |
len | 870 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%04X:%02X %5d:%-3d %-4d %s\n", |
len | 874 | net/appletalk/ddp.c | pos=begin+len; |
len | 877 | net/appletalk/ddp.c | len=0; |
len | 884 | net/appletalk/ddp.c | len-=(offset-begin); |
len | 885 | net/appletalk/ddp.c | if(len>length) |
len | 886 | net/appletalk/ddp.c | len=length; |
len | 887 | net/appletalk/ddp.c | return len; |
len | 901 | net/appletalk/ddp.c | unsigned short atalk_checksum(struct ddpehdr *ddp, int len) |
len | 906 | net/appletalk/ddp.c | len-=4; /* skip header 4 bytes */ |
len | 910 | net/appletalk/ddp.c | while(len--) |
len | 1038 | net/appletalk/ddp.c | static void def_callback2(struct sock *sk, int len) |
len | 1348 | net/appletalk/ddp.c | if(skb->len<sizeof(*ddp)) |
len | 1367 | net/appletalk/ddp.c | origlen = skb->len; |
len | 1369 | net/appletalk/ddp.c | skb_trim(skb,min(skb->len,ddp->deh_len)); |
len | 1377 | net/appletalk/ddp.c | if(skb->len<sizeof(*ddp)) |
len | 1470 | net/appletalk/ddp.c | static int atalk_sendmsg(struct socket *sock, struct msghdr *msg, int len, int nonblock, int flags) |
len | 1486 | net/appletalk/ddp.c | if(len>587) |
len | 1523 | net/appletalk/ddp.c | size=sizeof(struct ddpehdr)+len+ddp_dl->header_length; /* For headers */ |
len | 1566 | net/appletalk/ddp.c | ddp->deh_len=len+sizeof(*ddp); |
len | 1582 | net/appletalk/ddp.c | printk("SK %p: Copy user data (%d bytes).\n", sk, len); |
len | 1584 | net/appletalk/ddp.c | memcpy_fromiovec(skb_put(skb,len),msg->msg_iov,len); |
len | 1589 | net/appletalk/ddp.c | ddp->deh_sum=atalk_checksum(ddp, len+sizeof(*ddp)); |
len | 1642 | net/appletalk/ddp.c | printk("SK %p: Done write (%d).\n", sk, len); |
len | 1643 | net/appletalk/ddp.c | return len; |
len | 1794 | net/appletalk/ddp.c | v=skb->len-sizeof(struct ddpehdr); |
len | 368 | net/ax25/af_ax25.c | sk->data_ready(sk, skb->len); |
len | 843 | net/ax25/af_ax25.c | static void def_callback2(struct sock *sk, int len) |
len | 1354 | net/ax25/af_ax25.c | if (ax25_parse_addr(skb->data, skb->len, &src, &dest, &dp, &type) == NULL) { |
len | 1451 | net/ax25/af_ax25.c | sk->data_ready(sk, skb->len); |
len | 1585 | net/ax25/af_ax25.c | sk->data_ready(sk, skb->len ); |
len | 1616 | net/ax25/af_ax25.c | int len; |
len | 1625 | net/ax25/af_ax25.c | len = skb->data[0] + skb->data[1] * 256 - 5; |
len | 1628 | net/ax25/af_ax25.c | skb_trim(skb, len); /* Set the length of the data */ |
len | 1633 | net/ax25/af_ax25.c | static int ax25_sendmsg(struct socket *sock, struct msghdr *msg, int len, int noblock, int flags) |
len | 1721 | net/ax25/af_ax25.c | size = len + 3 + size_ax25_addr(dp) + AX25_BPQ_HEADER_LEN; |
len | 1730 | net/ax25/af_ax25.c | skb_reserve(skb, size - len); |
len | 1736 | net/ax25/af_ax25.c | memcpy_fromiovec(skb_put(skb, len), msg->msg_iov, len); |
len | 1754 | net/ax25/af_ax25.c | return len; |
len | 1780 | net/ax25/af_ax25.c | return len; |
len | 1843 | net/ax25/af_ax25.c | length = skb->len + (skb->data - skb->h.raw); |
len | 1847 | net/ax25/af_ax25.c | length = skb->len; |
len | 1861 | net/ax25/af_ax25.c | ax25_parse_addr(dp, skb->len, NULL, &dest, &digi, NULL); |
len | 1948 | net/ax25/af_ax25.c | amount = skb->len; |
len | 2032 | net/ax25/af_ax25.c | int len = 0; |
len | 2038 | 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 | 2046 | net/ax25/af_ax25.c | len += sprintf(buffer + len, "%-9s ", |
len | 2048 | 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 | 2063 | net/ax25/af_ax25.c | len += sprintf(buffer + len, " %5ld %5ld\n", |
len | 2067 | net/ax25/af_ax25.c | len += sprintf(buffer + len, "\n"); |
len | 2070 | net/ax25/af_ax25.c | pos = begin + len; |
len | 2073 | net/ax25/af_ax25.c | len = 0; |
len | 2084 | net/ax25/af_ax25.c | len -= (offset - begin); |
len | 2086 | net/ax25/af_ax25.c | if (len > length) len = length; |
len | 2088 | net/ax25/af_ax25.c | return(len); |
len | 2193 | net/ax25/af_ax25.c | size = skb->len; |
len | 2224 | 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 > 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 | 312 | 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 | 316 | net/ax25/ax25_subr.c | if (len < 14) return NULL; |
len | 333 | net/ax25/ax25_subr.c | len -= 2 * AX25_ADDR_LEN; |
len | 340 | net/ax25/ax25_subr.c | if (len < 7) return NULL; /* Short packet */ |
len | 354 | net/ax25/ax25_subr.c | len -= AX25_ADDR_LEN; |
len | 366 | net/ax25/ax25_subr.c | int len = 0; |
len | 376 | net/ax25/ax25_subr.c | len += AX25_ADDR_LEN; |
len | 399 | net/ax25/ax25_subr.c | len += AX25_ADDR_LEN; |
len | 411 | net/ax25/ax25_subr.c | len += AX25_ADDR_LEN; |
len | 417 | net/ax25/ax25_subr.c | return len; |
len | 483 | net/core/dev.c | int dev_rint(unsigned char *buff, long len, int flags, struct device *dev) |
len | 491 | net/core/dev.c | if (dev == NULL || buff == NULL || len <= 0) |
len | 508 | net/core/dev.c | skb = alloc_skb(len, GFP_ATOMIC); |
len | 522 | net/core/dev.c | to = skb_put(skb,len); |
len | 523 | net/core/dev.c | left = len; |
len | 525 | net/core/dev.c | len2 = len; |
len | 804 | net/core/dev.c | int len; |
len | 815 | net/core/dev.c | len = ifc.ifc_len; |
len | 823 | net/core/dev.c | err=verify_area(VERIFY_WRITE,pos,len); |
len | 844 | net/core/dev.c | if (len < sizeof(struct ifreq)) |
len | 853 | net/core/dev.c | len -= sizeof(struct ifreq); |
len | 907 | net/core/dev.c | int len=0; |
len | 919 | net/core/dev.c | len+=size; |
len | 924 | net/core/dev.c | size = sprintf_stats(buffer+len, dev); |
len | 925 | net/core/dev.c | len+=size; |
len | 926 | net/core/dev.c | pos=begin+len; |
len | 930 | net/core/dev.c | len=0; |
len | 938 | net/core/dev.c | len-=(offset-begin); /* Start slop */ |
len | 939 | net/core/dev.c | if(len>length) |
len | 940 | net/core/dev.c | len=length; /* Ending slop */ |
len | 941 | net/core/dev.c | return len; |
len | 29 | net/core/iovec.c | int len=0; |
len | 53 | net/core/iovec.c | len+=m->msg_iov[ct].iov_len; |
len | 56 | net/core/iovec.c | return len; |
len | 63 | net/core/iovec.c | void memcpy_toiovec(struct iovec *iov, unsigned char *kdata, int len) |
len | 65 | net/core/iovec.c | while(len>0) |
len | 67 | net/core/iovec.c | int copy = min(iov->iov_len,len); |
len | 70 | net/core/iovec.c | len-=copy; |
len | 79 | net/core/iovec.c | void memcpy_fromiovec(unsigned char *kdata, struct iovec *iov, int len) |
len | 82 | net/core/iovec.c | while(len>0) |
len | 84 | net/core/iovec.c | copy=min(len,iov->iov_len); |
len | 86 | net/core/iovec.c | len-=copy; |
len | 161 | net/core/skbuff.c | if(skb->tail-skb->data!=skb->len) |
len | 165 | net/core/skbuff.c | skb,skb->data,skb->end,skb->len); |
len | 359 | net/core/skbuff.c | unsigned char *skb_put(struct sk_buff *skb, int len) |
len | 363 | net/core/skbuff.c | skb->tail+=len; |
len | 364 | net/core/skbuff.c | skb->len+=len; |
len | 367 | net/core/skbuff.c | panic("skput:over: %p:%d", __builtin_return_address(0),len); |
len | 371 | net/core/skbuff.c | unsigned char *skb_push(struct sk_buff *skb, int len) |
len | 374 | net/core/skbuff.c | skb->data-=len; |
len | 375 | net/core/skbuff.c | skb->len+=len; |
len | 378 | net/core/skbuff.c | panic("skpush:under: %p:%d", __builtin_return_address(0),len); |
len | 382 | net/core/skbuff.c | unsigned char * skb_pull(struct sk_buff *skb, int len) |
len | 385 | net/core/skbuff.c | if(len>skb->len) |
len | 387 | net/core/skbuff.c | skb->data+=len; |
len | 388 | net/core/skbuff.c | skb->len-=len; |
len | 404 | net/core/skbuff.c | void skb_reserve(struct sk_buff *skb, int len) |
len | 407 | net/core/skbuff.c | skb->data+=len; |
len | 408 | net/core/skbuff.c | skb->tail+=len; |
len | 416 | net/core/skbuff.c | void skb_trim(struct sk_buff *skb, int len) |
len | 419 | net/core/skbuff.c | if(skb->len>len) |
len | 421 | net/core/skbuff.c | skb->len=len; |
len | 422 | net/core/skbuff.c | skb->tail=skb->data+len; |
len | 496 | net/core/skbuff.c | int len=size; |
len | 560 | net/core/skbuff.c | skb->end=bptr+len; |
len | 561 | net/core/skbuff.c | skb->len=0; |
len | 608 | net/core/skbuff.c | skb_put(n,skb->len); |
len | 528 | net/core/sock.c | skb->saddr, skb->len, skb->daddr, 1, |
len | 88 | net/ethernet/eth.c | void *daddr, void *saddr, unsigned len) |
len | 100 | 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 | 529 | net/ipv4/af_inet.c | static void def_callback2(struct sock *sk,int len) |
len | 370 | net/ipv4/arp.c | dev->hard_header(skb,dev,ptype,dest_hw?dest_hw:dev->broadcast,src_hw?src_hw:NULL,skb->len); |
len | 1049 | net/ipv4/arp.c | int len=0; |
len | 1061 | net/ipv4/arp.c | len+=size; |
len | 1094 | net/ipv4/arp.c | size = sprintf(buffer+len, |
len | 1100 | net/ipv4/arp.c | size += sprintf(buffer+len+size, |
len | 1105 | net/ipv4/arp.c | len+=size; |
len | 1106 | net/ipv4/arp.c | pos=begin+len; |
len | 1110 | net/ipv4/arp.c | len=0; |
len | 1120 | net/ipv4/arp.c | len-=(offset-begin); /* Start slop */ |
len | 1121 | net/ipv4/arp.c | if(len>length) |
len | 1122 | net/ipv4/arp.c | len=length; /* Ending slop */ |
len | 1123 | net/ipv4/arp.c | return len; |
len | 171 | net/ipv4/icmp.c | int len; |
len | 281 | net/ipv4/icmp.c | len = dev->hard_header_len + sizeof(struct iphdr) + sizeof(struct icmphdr) + |
len | 284 | net/ipv4/icmp.c | skb = (struct sk_buff *) alloc_skb(len+15, GFP_ATOMIC); |
len | 305 | net/ipv4/icmp.c | &ndev, IPPROTO_ICMP, NULL, len, |
len | 509 | net/ipv4/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
len | 520 | net/ipv4/icmp.c | size = dev->hard_header_len + 64 + len + 15; |
len | 533 | net/ipv4/icmp.c | IPPROTO_ICMP, opt, len, skb->ip_hdr->tos,255); |
len | 547 | net/ipv4/icmp.c | skb_put(skb2,len); |
len | 553 | net/ipv4/icmp.c | memcpy((char *) icmphr, (char *) icmph, len); |
len | 563 | net/ipv4/icmp.c | icmphr->checksum = ip_compute_csum((unsigned char *)icmphr, len); |
len | 582 | net/ipv4/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
len | 591 | net/ipv4/icmp.c | if (len < 12) |
len | 595 | net/ipv4/icmp.c | len); |
len | 615 | net/ipv4/icmp.c | offset = ip_build_header(skb2, daddr, saddr, &ndev, IPPROTO_ICMP, opt, len, |
len | 667 | net/ipv4/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
len | 688 | net/ipv4/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
len | 700 | net/ipv4/icmp.c | size = dev->hard_header_len + 64 + len + 15; |
len | 715 | net/ipv4/icmp.c | IPPROTO_ICMP, opt, len, skb->ip_hdr->tos,255); |
len | 729 | net/ipv4/icmp.c | skb_put(skb2,len); |
len | 743 | net/ipv4/icmp.c | icmphr->checksum = ip_compute_csum((unsigned char *)icmphr, len); |
len | 758 | net/ipv4/icmp.c | unsigned long daddr, unsigned short len, |
len | 783 | net/ipv4/icmp.c | if (ip_compute_csum((unsigned char *) icmph, len)) |
len | 832 | net/ipv4/icmp.c | icmp_echo(icmph, skb1, dev, saddr, daddr, len, opt); |
len | 840 | net/ipv4/icmp.c | icmp_timestamp(icmph, skb1, dev, saddr, daddr, len, opt); |
len | 851 | net/ipv4/icmp.c | icmp_info(icmph, skb1, dev, saddr, daddr, len, opt); |
len | 859 | net/ipv4/icmp.c | icmp_address(icmph, skb1, dev, saddr, daddr, len, opt); |
len | 201 | net/ipv4/igmp.c | unsigned long daddr, unsigned short len, unsigned long saddr, int redo, |
len | 209 | 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 | 184 | net/ipv4/ip.c | static int ip_send(struct sk_buff *skb, unsigned long daddr, int len, struct device *dev, unsigned long saddr) |
len | 197 | net/ipv4/ip.c | mac = dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, len); |
len | 208 | net/ipv4/ip.c | static int ip_send_room(struct sk_buff *skb, unsigned long daddr, int len, struct device *dev, unsigned long saddr) |
len | 217 | net/ipv4/ip.c | mac = dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, len); |
len | 237 | net/ipv4/ip.c | struct device **dev, int type, struct options *opt, int len, int tos, int ttl) |
len | 311 | net/ipv4/ip.c | tmp = ip_send_room(skb, raddr, len, *dev, saddr); |
len | 313 | net/ipv4/ip.c | tmp = ip_send(skb, raddr, len, *dev, saddr); |
len | 395 | net/ipv4/ip.c | fp->len = end - offset; |
len | 546 | net/ipv4/ip.c | qp->len = 0; |
len | 579 | net/ipv4/ip.c | if (qp->len == 0) |
len | 612 | net/ipv4/ip.c | int count, len; |
len | 617 | net/ipv4/ip.c | len = qp->ihlen + qp->len; |
len | 619 | net/ipv4/ip.c | if ((skb = dev_alloc_skb(len)) == NULL) |
len | 628 | net/ipv4/ip.c | skb_put(skb,len); |
len | 643 | net/ipv4/ip.c | if(count+fp->len > skb->len) |
len | 651 | net/ipv4/ip.c | memcpy((ptr + fp->offset), fp->ptr, fp->len); |
len | 652 | net/ipv4/ip.c | count += fp->len; |
len | 748 | net/ipv4/ip.c | qp->len = end; |
len | 788 | net/ipv4/ip.c | tmp->len -= i; /* so reduce size of */ |
len | 795 | net/ipv4/ip.c | if (tmp->len <= 0) |
len | 874 | net/ipv4/ip.c | int left, mtu, hlen, len; |
len | 949 | net/ipv4/ip.c | len = left; |
len | 951 | net/ipv4/ip.c | if (len > mtu) |
len | 952 | net/ipv4/ip.c | len = mtu; |
len | 955 | net/ipv4/ip.c | if (len < left) |
len | 957 | net/ipv4/ip.c | len/=8; |
len | 958 | net/ipv4/ip.c | len*=8; |
len | 964 | net/ipv4/ip.c | if ((skb2 = alloc_skb(len + hlen+15,GFP_ATOMIC)) == NULL) |
len | 979 | net/ipv4/ip.c | skb_put(skb2,len + hlen); |
len | 1005 | net/ipv4/ip.c | memcpy(skb2->h.raw + hlen, ptr, len); |
len | 1006 | net/ipv4/ip.c | left -= len; |
len | 1022 | net/ipv4/ip.c | ptr += len; |
len | 1023 | net/ipv4/ip.c | offset += len; |
len | 1204 | net/ipv4/ip.c | skb2 = alloc_skb(dev2->hard_header_len + skb->len + 15, GFP_ATOMIC); |
len | 1222 | net/ipv4/ip.c | ip_send(skb2,raddr,skb->len,dev2,dev2->pa_addr); |
len | 1229 | net/ipv4/ip.c | ptr = skb_put(skb2,skb->len); |
len | 1236 | net/ipv4/ip.c | memcpy(ptr, skb->h.raw, skb->len); |
len | 1250 | net/ipv4/ip.c | if(dev2->hard_header(skb, dev2, ETH_P_IP, NULL, NULL, skb->len)<0) |
len | 1261 | net/ipv4/ip.c | if(skb2->len > dev2->mtu + dev2->hard_header_len) |
len | 1356 | net/ipv4/ip.c | if (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0 |
len | 1357 | net/ipv4/ip.c | || skb->len < ntohs(iph->tot_len)) |
len | 1732 | net/ipv4/ip.c | int len=skb->len-old_dev->hard_header_len; |
len | 1733 | net/ipv4/ip.c | struct sk_buff *newskb=dev_alloc_skb(len+dev->hard_header_len+15); |
len | 1752 | net/ipv4/ip.c | ip_send(newskb, skb->ip_hdr->daddr, len, dev, skb->ip_hdr->saddr); |
len | 1756 | net/ipv4/ip.c | newskb->ip_hdr=(struct iphdr *)skb_put(newskb, len); |
len | 1760 | net/ipv4/ip.c | memcpy(newskb->ip_hdr,skb->ip_hdr,len); |
len | 1817 | net/ipv4/ip.c | iph->tot_len = ntohs(skb->len-(((unsigned char *)iph)-skb->data)); |
len | 2001 | net/ipv4/ip.c | int len=0; |
len | 2004 | net/ipv4/ip.c | len=sprintf(buffer,"Device : Count\tGroup Users Timer\n"); |
len | 2012 | net/ipv4/ip.c | len+=sprintf(buffer+len,"%-10s: %5d\n", |
len | 2016 | net/ipv4/ip.c | len+=sprintf(buffer+len, |
len | 2020 | net/ipv4/ip.c | pos=begin+len; |
len | 2023 | net/ipv4/ip.c | len=0; |
len | 2033 | net/ipv4/ip.c | len-=(offset-begin); |
len | 2034 | net/ipv4/ip.c | if(len>length) |
len | 2035 | net/ipv4/ip.c | len=length; |
len | 2036 | net/ipv4/ip.c | return len; |
len | 2321 | net/ipv4/ip.c | int len; |
len | 2346 | net/ipv4/ip.c | len=strlen(sk->ip_mc_name); |
len | 2347 | net/ipv4/ip.c | err=verify_area(VERIFY_WRITE, optval, len); |
len | 2350 | net/ipv4/ip.c | put_user(len,(int *) optlen); |
len | 2351 | net/ipv4/ip.c | memcpy_tofs((void *)optval,sk->ip_mc_name, len); |
len | 568 | net/ipv4/ip_fw.c | while (skb->len - ((unsigned char *)data - skb->h.raw) > 18) |
len | 639 | net/ipv4/ip_fw.c | printk("MASQUERADE: resizing needed for %d bytes (%ld)\n",ftp->delta, skb->len); |
len | 643 | net/ipv4/ip_fw.c | skb2 = alloc_skb(MAX_HEADER + skb->len+ftp->delta, GFP_ATOMIC); |
len | 650 | net/ipv4/ip_fw.c | skb_put(skb2,skb->len + ftp->delta); |
len | 660 | net/ipv4/ip_fw.c | skb->len - ((char *)skb->h.raw - data)); |
len | 674 | net/ipv4/ip_fw.c | unsigned long daddr, int len) |
len | 677 | net/ipv4/ip_fw.c | uh->check=csum_tcpudp_magic(saddr,daddr,len, |
len | 678 | net/ipv4/ip_fw.c | IPPROTO_UDP, csum_partial((char *)uh,len,0)); |
len | 746 | net/ipv4/ip_fw.c | size = skb->len - ((unsigned char *)portptr - skb->h.raw); |
len | 838 | net/ipv4/ip_fw.c | int size = skb_ptr->len - ((unsigned char *)portptr - skb_ptr->h.raw); |
len | 1165 | net/ipv4/ip_fw.c | struct ip_fw *check_ipfw_struct(struct ip_fw *frwl, int len) |
len | 1168 | net/ipv4/ip_fw.c | if ( len != sizeof(struct ip_fw) ) |
len | 1171 | net/ipv4/ip_fw.c | printk("ip_fw_ctl: len=%d, want %d\n",len, sizeof(struct ip_fw)); |
len | 1228 | net/ipv4/ip_fw.c | int ip_acct_ctl(int stage, void *m, int len) |
len | 1246 | net/ipv4/ip_fw.c | if (!(frwl=check_ipfw_struct(m,len))) |
len | 1273 | net/ipv4/ip_fw.c | int ip_fw_ctl(int stage, void *m, int len) |
len | 1318 | net/ipv4/ip_fw.c | if ( len < sizeof(struct ip_fwpkt) ) |
len | 1322 | net/ipv4/ip_fw.c | len, sizeof(struct ip_fwpkt)); |
len | 1364 | net/ipv4/ip_fw.c | frwl=check_ipfw_struct(m,len); |
len | 1404 | net/ipv4/ip_fw.c | int len, p; |
len | 1412 | net/ipv4/ip_fw.c | len=sprintf(buffer, "IP firewall block rules, default %d\n", |
len | 1417 | net/ipv4/ip_fw.c | len=sprintf(buffer, "IP firewall forward rules, default %d\n", |
len | 1424 | net/ipv4/ip_fw.c | len=sprintf(buffer,"IP accounting rules\n"); |
len | 1430 | net/ipv4/ip_fw.c | len=0; |
len | 1439 | net/ipv4/ip_fw.c | len+=sprintf(buffer+len,"%08lX/%08lX->%08lX/%08lX %08lX %X ", |
len | 1443 | net/ipv4/ip_fw.c | len+=sprintf(buffer+len,"%u %u %-9lu %-9lu", |
len | 1446 | net/ipv4/ip_fw.c | len+=sprintf(buffer+len, " %u", i->fw_pts[p]); |
len | 1447 | net/ipv4/ip_fw.c | buffer[len++]='\n'; |
len | 1448 | net/ipv4/ip_fw.c | buffer[len]='\0'; |
len | 1449 | net/ipv4/ip_fw.c | pos=begin+len; |
len | 1452 | net/ipv4/ip_fw.c | len=0; |
len | 1467 | net/ipv4/ip_fw.c | len-=(offset-begin); |
len | 1468 | net/ipv4/ip_fw.c | if(len>length) |
len | 1469 | net/ipv4/ip_fw.c | len=length; |
len | 1470 | net/ipv4/ip_fw.c | return len; |
len | 1510 | net/ipv4/ip_fw.c | int len=0; |
len | 1512 | net/ipv4/ip_fw.c | len=sprintf(buffer,"Prc FromIP FPrt ToIP TPrt Masq Init-seq Delta Expires\n"); |
len | 1522 | net/ipv4/ip_fw.c | len+=sprintf(buffer+len,"%s %08lX:%04X %08lX:%04X %04X %08X %5d %lu\n", |
len | 1531 | net/ipv4/ip_fw.c | pos=begin+len; |
len | 1534 | net/ipv4/ip_fw.c | len=0; |
len | 1543 | net/ipv4/ip_fw.c | len-=(offset-begin); |
len | 1544 | net/ipv4/ip_fw.c | if(len>length) |
len | 1545 | net/ipv4/ip_fw.c | len=length; |
len | 1546 | net/ipv4/ip_fw.c | return len; |
len | 53 | net/ipv4/ipip.c | unsigned long daddr, unsigned short len, unsigned long saddr, |
len | 127 | net/ipv4/packet.c | sk->data_ready(sk,skb->len); |
len | 144 | net/ipv4/packet.c | static int packet_sendto(struct sock *sk, const unsigned char *from, int len, |
len | 187 | net/ipv4/packet.c | if(len>dev->mtu+dev->hard_header_len) |
len | 190 | net/ipv4/packet.c | skb = sk->prot->wmalloc(sk, len, 0, GFP_KERNEL); |
len | 208 | net/ipv4/packet.c | memcpy_fromfs(skb_put(skb,len), from, len); |
len | 219 | net/ipv4/packet.c | return(len); |
len | 228 | net/ipv4/packet.c | int len, int noblock, unsigned flags) |
len | 230 | net/ipv4/packet.c | return(packet_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
len | 287 | net/ipv4/packet.c | int packet_recvfrom(struct sock *sk, unsigned char *to, int len, |
len | 331 | net/ipv4/packet.c | copied = min(len, skb->len); |
len | 368 | net/ipv4/packet.c | int len, int noblock, unsigned flags) |
len | 370 | net/ipv4/packet.c | return(packet_recvfrom(sk, buff, len, noblock, flags, NULL, NULL)); |
len | 69 | net/ipv4/proc.c | int len=0; |
len | 74 | net/ipv4/proc.c | len += sprintf(buffer, "sl local_address rem_address st tx_queue rx_queue tr tm->when uid\n"); |
len | 111 | net/ipv4/proc.c | len += sprintf(buffer+len, "%2d: %08lX:%04X %08lX:%04X %02X %08lX:%08lX %02X:%08lX %08X %d %d\n", |
len | 126 | net/ipv4/proc.c | pos=begin+len; |
len | 129 | net/ipv4/proc.c | len=0; |
len | 143 | net/ipv4/proc.c | len-=(offset-begin); |
len | 144 | net/ipv4/proc.c | if(len>length) |
len | 145 | net/ipv4/proc.c | len=length; |
len | 146 | net/ipv4/proc.c | return len; |
len | 177 | net/ipv4/proc.c | int len = socket_get_info(buffer,start,offset,length); |
len | 179 | net/ipv4/proc.c | len += sprintf(buffer+len,"SOCK_ARRAY_SIZE=%d\n",SOCK_ARRAY_SIZE); |
len | 180 | net/ipv4/proc.c | len += sprintf(buffer+len,"TCP: inuse %d highest %d\n", |
len | 182 | net/ipv4/proc.c | len += sprintf(buffer+len,"UDP: inuse %d highest %d\n", |
len | 184 | net/ipv4/proc.c | len += sprintf(buffer+len,"RAW: inuse %d highest %d\n", |
len | 186 | net/ipv4/proc.c | len += sprintf(buffer+len,"PAC: inuse %d highest %d\n", |
len | 189 | net/ipv4/proc.c | len -= offset; |
len | 190 | net/ipv4/proc.c | if (len > length) |
len | 191 | net/ipv4/proc.c | len = length; |
len | 192 | net/ipv4/proc.c | return len; |
len | 204 | net/ipv4/proc.c | int len; |
len | 209 | net/ipv4/proc.c | len = sprintf (buffer, |
len | 223 | net/ipv4/proc.c | len += sprintf (buffer + len, |
len | 240 | net/ipv4/proc.c | len += sprintf (buffer + len, |
len | 250 | net/ipv4/proc.c | len += sprintf (buffer + len, |
len | 260 | net/ipv4/proc.c | if (offset >= len) |
len | 266 | net/ipv4/proc.c | len -= offset; |
len | 267 | net/ipv4/proc.c | if (len > length) |
len | 268 | net/ipv4/proc.c | len = length; |
len | 269 | net/ipv4/proc.c | return len; |
len | 484 | net/ipv4/rarp.c | int len=0; |
len | 495 | net/ipv4/rarp.c | len+=size; |
len | 502 | net/ipv4/rarp.c | len+=size; |
len | 514 | net/ipv4/rarp.c | size = sprintf(buffer+len, |
len | 525 | net/ipv4/rarp.c | len+=size; |
len | 526 | net/ipv4/rarp.c | pos=begin+len; |
len | 530 | net/ipv4/rarp.c | len=0; |
len | 540 | net/ipv4/rarp.c | len -= (offset-begin); /* Start slop */ |
len | 541 | net/ipv4/rarp.c | if (len>length) |
len | 542 | net/ipv4/rarp.c | len = length; /* Ending slop */ |
len | 543 | net/ipv4/rarp.c | return len; |
len | 159 | net/ipv4/raw.c | int len, int noblock, unsigned flags, struct sockaddr_in *usin, int addr_len) |
len | 203 | net/ipv4/raw.c | err=ip_build_xmit(sk, raw_getrawfrag, from, len, sin.sin_addr.s_addr, flags, sin.sin_port); |
len | 205 | net/ipv4/raw.c | err=ip_build_xmit(sk, raw_getfrag, from, len, sin.sin_addr.s_addr, flags, sin.sin_port); |
len | 206 | net/ipv4/raw.c | return err<0?err:len; |
len | 210 | net/ipv4/raw.c | static int raw_write(struct sock *sk, const unsigned char *buff, int len, int noblock, |
len | 213 | net/ipv4/raw.c | return(raw_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
len | 234 | net/ipv4/raw.c | int raw_recvfrom(struct sock *sk, unsigned char *to, int len, |
len | 256 | net/ipv4/raw.c | truesize=skb->len; |
len | 257 | net/ipv4/raw.c | copied = min(len, truesize); |
len | 274 | net/ipv4/raw.c | int raw_read (struct sock *sk, unsigned char *buff, int len, int noblock,unsigned flags) |
len | 276 | net/ipv4/raw.c | return(raw_recvfrom(sk, buff, len, noblock, flags, NULL, NULL)); |
len | 557 | net/ipv4/route.c | int len=0; |
len | 562 | net/ipv4/route.c | len += sprintf(buffer, |
len | 564 | net/ipv4/route.c | pos=len; |
len | 572 | net/ipv4/route.c | size = sprintf(buffer+len, "%s\t%08lX\t%08lX\t%02X\t%d\t%lu\t%d\t%08lX\t%d\t%lu\t%u\n", |
len | 576 | net/ipv4/route.c | len+=size; |
len | 580 | net/ipv4/route.c | len=0; |
len | 588 | net/ipv4/route.c | len-=(offset-begin); |
len | 589 | net/ipv4/route.c | if(len>length) |
len | 590 | net/ipv4/route.c | len=length; |
len | 591 | net/ipv4/route.c | return len; |
len | 516 | net/ipv4/tcp.c | if(dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, skb->len)<0) |
len | 941 | 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 | 1115 | net/ipv4/tcp.c | unsigned short tcp_check(struct tcphdr *th, int len, |
len | 1118 | net/ipv4/tcp.c | return csum_tcpudp_magic(saddr,daddr,len,IPPROTO_TCP,base); |
len | 1124 | net/ipv4/tcp.c | unsigned long daddr, int len, struct sock *sk) |
len | 1127 | net/ipv4/tcp.c | th->check = tcp_check(th, len, saddr, daddr, |
len | 1128 | net/ipv4/tcp.c | csum_partial((char *)th,len,0)); |
len | 1146 | net/ipv4/tcp.c | size = skb->len - ((unsigned char *) th - skb->data); |
len | 1152 | net/ipv4/tcp.c | if (size < sizeof(struct tcphdr) || size > skb->len) |
len | 1155 | net/ipv4/tcp.c | skb, skb->data, th, skb->len); |
len | 1460 | net/ipv4/tcp.c | int len, int nonblock, unsigned flags) |
len | 1472 | net/ipv4/tcp.c | while(len > 0) |
len | 1588 | net/ipv4/tcp.c | copy = min(sk->mss - (skb->len - hdrlen), len); |
len | 1599 | net/ipv4/tcp.c | len -= copy; |
len | 1602 | net/ipv4/tcp.c | if ((skb->len - hdrlen) >= sk->mss || |
len | 1625 | net/ipv4/tcp.c | if (copy > len) |
len | 1626 | net/ipv4/tcp.c | copy = len; |
len | 1722 | net/ipv4/tcp.c | tmp = tcp_build_header(skb->h.th, sk, len-copy); |
len | 1742 | net/ipv4/tcp.c | len -= copy; |
len | 1781 | net/ipv4/tcp.c | int len, int nonblock, unsigned flags, |
len | 1796 | net/ipv4/tcp.c | return tcp_write(sk, from, len, nonblock, flags); |
len | 1976 | net/ipv4/tcp.c | unsigned char *to, int len, unsigned flags) |
len | 2033 | net/ipv4/tcp.c | int len, int nonblock, unsigned flags) |
len | 2053 | net/ipv4/tcp.c | return tcp_read_urg(sk, nonblock, to, len, flags); |
len | 2068 | net/ipv4/tcp.c | while (len > 0) |
len | 2096 | net/ipv4/tcp.c | if (offset < skb->len) |
len | 2167 | net/ipv4/tcp.c | used = skb->len - offset; |
len | 2168 | net/ipv4/tcp.c | if (len < used) |
len | 2169 | net/ipv4/tcp.c | used = len; |
len | 2209 | net/ipv4/tcp.c | len -= used; |
len | 2222 | net/ipv4/tcp.c | if (used + offset < skb->len) |
len | 3087 | net/ipv4/tcp.c | size = skb->len - (((unsigned char *) th) - skb->data); |
len | 3116 | net/ipv4/tcp.c | extern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len) |
len | 3192 | net/ipv4/tcp.c | if (len != th->doff*4) |
len | 3721 | net/ipv4/tcp.c | sk->fin_seq = th->seq + skb->len + th->syn + th->fin; |
len | 3807 | net/ipv4/tcp.c | unsigned long saddr, unsigned short len) |
len | 3816 | net/ipv4/tcp.c | skb_trim(skb,len-(th->doff*4)); |
len | 3823 | net/ipv4/tcp.c | sk->bytes_rcv += skb->len; |
len | 3825 | net/ipv4/tcp.c | if (skb->len == 0 && !th->fin) |
len | 3852 | net/ipv4/tcp.c | if(skb->len) /* We don't care if it's just an ack or |
len | 3855 | net/ipv4/tcp.c | new_seq= th->seq + skb->len + th->syn; /* Right edge of _data_ part of frame */ |
len | 3931 | net/ipv4/tcp.c | if (th->seq==skb1->h.th->seq && skb->len>= skb1->len) |
len | 3966 | net/ipv4/tcp.c | th->ack_seq = th->seq + skb->len; |
len | 4166 | net/ipv4/tcp.c | unsigned long saddr, unsigned long len) |
len | 4189 | net/ipv4/tcp.c | if (ptr >= len) |
len | 4425 | net/ipv4/tcp.c | extern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len, |
len | 4430 | net/ipv4/tcp.c | next_seq = len - 4*th->doff; |
len | 4515 | net/ipv4/tcp.c | unsigned long daddr, unsigned short len, |
len | 4569 | net/ipv4/tcp.c | (skb->ip_summed && tcp_check(th, len, saddr, daddr, skb->csum ))|| |
len | 4570 | net/ipv4/tcp.c | (!skb->ip_summed && tcp_check(th, len, saddr, daddr, csum_partial((char *)th, len, 0))) |
len | 4720 | net/ipv4/tcp.c | if(!tcp_ack(sk,th,saddr,len)) |
len | 4839 | net/ipv4/tcp.c | if(!tcp_sequence(sk,th,len,opt,saddr,dev)) |
len | 4864 | net/ipv4/tcp.c | if(th->ack && !tcp_ack(sk,th,saddr,len)) |
len | 4885 | net/ipv4/tcp.c | if(tcp_urg(sk, th, saddr, len)) |
len | 4897 | net/ipv4/tcp.c | if(tcp_data(skb,sk, saddr, len)) |
len | 5048 | net/ipv4/tcp.c | ow_size = skb->len - win_size - |
len | 5052 | 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 | 137 | 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 | 200 | net/ipv4/udp.c | static unsigned short udp_check(struct udphdr *uh, int len, unsigned long saddr, unsigned long daddr, unsigned long base) |
len | 202 | net/ipv4/udp.c | return(csum_tcpudp_magic(saddr, daddr, len, IPPROTO_UDP, base)); |
len | 225 | net/ipv4/udp.c | unsigned int len; |
len | 229 | net/ipv4/udp.c | len = fraglen; |
len | 235 | net/ipv4/udp.c | len = fraglen-sizeof(struct udphdr); |
len | 239 | net/ipv4/udp.c | ufh->wcheck = csum_partial_copy_fromuser(src, dst, len, ufh->wcheck); |
len | 245 | net/ipv4/udp.c | ntohs(ufh->uh.len), |
len | 265 | net/ipv4/udp.c | unsigned int len; |
len | 269 | net/ipv4/udp.c | len = fraglen; |
len | 275 | net/ipv4/udp.c | len = fraglen-sizeof(struct udphdr); |
len | 279 | net/ipv4/udp.c | memcpy_fromfs(dst,src,len); |
len | 290 | net/ipv4/udp.c | const unsigned char *from, int len, int rt) |
len | 292 | net/ipv4/udp.c | int ulen = len + sizeof(struct udphdr); |
len | 298 | net/ipv4/udp.c | ufh.uh.len = htons(ulen); |
len | 324 | net/ipv4/udp.c | return len; |
len | 328 | net/ipv4/udp.c | static int udp_sendto(struct sock *sk, const unsigned char *from, int len, int noblock, |
len | 386 | net/ipv4/udp.c | tmp = udp_send(sk, usin, from, len, flags); |
len | 397 | net/ipv4/udp.c | static int udp_write(struct sock *sk, const unsigned char *buff, int len, int noblock, |
len | 400 | net/ipv4/udp.c | return(udp_sendto(sk, buff, len, noblock, flags, NULL, 0)); |
len | 441 | net/ipv4/udp.c | amount = skb->len; |
len | 463 | net/ipv4/udp.c | int udp_recvfrom(struct sock *sk, unsigned char *to, int len, |
len | 488 | net/ipv4/udp.c | truesize = skb->len - sizeof(struct udphdr); |
len | 489 | net/ipv4/udp.c | copied = min(len, truesize); |
len | 515 | net/ipv4/udp.c | int udp_read(struct sock *sk, unsigned char *buff, int len, int noblock, |
len | 518 | net/ipv4/udp.c | return(udp_recvfrom(sk, buff, len, noblock, flags, NULL, NULL)); |
len | 569 | net/ipv4/udp.c | unsigned long daddr, unsigned short len, |
len | 592 | net/ipv4/udp.c | ulen = ntohs(uh->len); |
len | 594 | net/ipv4/udp.c | if (ulen > len || len < sizeof(*uh) || ulen < sizeof(*uh)) |
len | 596 | net/ipv4/udp.c | NETDEBUG(printk("UDP: short packet: %d/%d\n", ulen, len)); |
len | 610 | net/ipv4/udp.c | ( skb->ip_summed && udp_check(uh, len, saddr, daddr, skb->csum ) ) || |
len | 611 | net/ipv4/udp.c | ( !skb->ip_summed && udp_check(uh, len, saddr, daddr,csum_partial((char*)uh, len, 0))) |
len | 631 | net/ipv4/udp.c | len=ulen; |
len | 654 | net/ipv4/udp.c | udp_deliver(sk, uh, skb1, dev,saddr,daddr,len); |
len | 691 | net/ipv4/udp.c | return udp_deliver(sk,uh,skb,dev, saddr, daddr, len); |
len | 694 | 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 | 698 | net/ipv4/udp.c | skb_trim(skb,len); |
len | 436 | net/ipx/af_ipx.c | int len; |
len | 450 | net/ipx/af_ipx.c | memmove(skb->h.raw, oldraw, skb->len); |
len | 451 | net/ipx/af_ipx.c | skb->len += out_offset; |
len | 458 | net/ipx/af_ipx.c | len = skb->len + out_offset; |
len | 459 | net/ipx/af_ipx.c | skb2 = alloc_skb(len, GFP_ATOMIC); |
len | 462 | net/ipx/af_ipx.c | skb2->h.raw=skb_put(skb2,skb->len); |
len | 465 | net/ipx/af_ipx.c | memcpy(skb2->h.raw, skb->h.raw, skb->len); |
len | 992 | net/ipx/af_ipx.c | ipxrtr_route_packet(ipx_socket *sk, struct sockaddr_ipx *usipx, const void *ubuf, int len) |
len | 1014 | net/ipx/af_ipx.c | size=sizeof(ipx_packet)+len; |
len | 1030 | net/ipx/af_ipx.c | ipx->ipx_pktsize=htons(len+sizeof(ipx_packet)); |
len | 1042 | net/ipx/af_ipx.c | memcpy_fromfs(skb_put(skb,len),ubuf,len); |
len | 1133 | net/ipx/af_ipx.c | int len=0; |
len | 1139 | net/ipx/af_ipx.c | len += sprintf (buffer,"%-11s%-15s%-9s%-11s%s\n", "Network", |
len | 1142 | net/ipx/af_ipx.c | len += sprintf(buffer+len, "%08lX ", ntohl(i->if_netnum)); |
len | 1143 | net/ipx/af_ipx.c | len += sprintf (buffer+len,"%02X%02X%02X%02X%02X%02X ", |
len | 1146 | net/ipx/af_ipx.c | len += sprintf(buffer+len, "%-9s", (i == ipx_primary_net) ? |
len | 1148 | net/ipx/af_ipx.c | len += sprintf (buffer+len, "%-11s", ipx_device_name(i)); |
len | 1149 | net/ipx/af_ipx.c | len += sprintf (buffer+len, "%s\n", |
len | 1153 | net/ipx/af_ipx.c | pos=begin+len; |
len | 1156 | net/ipx/af_ipx.c | len=0; /* Keep dumping into the buffer start */ |
len | 1165 | net/ipx/af_ipx.c | len-=(offset-begin); /* Remove unwanted header data from length */ |
len | 1166 | net/ipx/af_ipx.c | if(len>length) |
len | 1167 | net/ipx/af_ipx.c | len=length; /* Remove unwanted tail data from length */ |
len | 1169 | net/ipx/af_ipx.c | return len; |
len | 1177 | net/ipx/af_ipx.c | int len=0; |
len | 1183 | net/ipx/af_ipx.c | len += sprintf (buffer,"%-15s%-28s%-10s%-10s%-7s%s\n", "Local_Address", |
len | 1188 | net/ipx/af_ipx.c | len += sprintf (buffer+len,"%08lX:%04X ", |
len | 1192 | net/ipx/af_ipx.c | len += sprintf(buffer+len, "%-28s", "Not_Connected"); |
len | 1194 | net/ipx/af_ipx.c | len += sprintf (buffer+len, |
len | 1202 | net/ipx/af_ipx.c | len += sprintf (buffer+len,"%08lX %08lX ", |
len | 1204 | net/ipx/af_ipx.c | len += sprintf (buffer+len,"%02X %03d\n", |
len | 1208 | net/ipx/af_ipx.c | pos=begin+len; |
len | 1212 | net/ipx/af_ipx.c | len=0; /* Keep dumping into the buffer start */ |
len | 1222 | net/ipx/af_ipx.c | len-=(offset-begin); /* Remove unwanted header data from length */ |
len | 1223 | net/ipx/af_ipx.c | if(len>length) |
len | 1224 | net/ipx/af_ipx.c | len=length; /* Remove unwanted tail data from length */ |
len | 1226 | net/ipx/af_ipx.c | return len; |
len | 1233 | net/ipx/af_ipx.c | int len=0; |
len | 1237 | net/ipx/af_ipx.c | len += sprintf (buffer,"%-11s%-13s%s\n", |
len | 1241 | net/ipx/af_ipx.c | len += sprintf (buffer+len,"%08lX ", ntohl(rt->ir_net)); |
len | 1243 | net/ipx/af_ipx.c | len += sprintf (buffer+len,"%08lX %02X%02X%02X%02X%02X%02X\n", |
len | 1249 | net/ipx/af_ipx.c | len += sprintf (buffer+len, "%-13s%s\n", |
len | 1252 | net/ipx/af_ipx.c | pos=begin+len; |
len | 1255 | net/ipx/af_ipx.c | len=0; |
len | 1262 | net/ipx/af_ipx.c | len-=(offset-begin); |
len | 1263 | net/ipx/af_ipx.c | if(len>length) |
len | 1264 | net/ipx/af_ipx.c | len=length; |
len | 1265 | net/ipx/af_ipx.c | return len; |
len | 1368 | net/ipx/af_ipx.c | static void def_callback2(struct sock *sk, int len) |
len | 1601 | net/ipx/af_ipx.c | void dump_data(char *str,unsigned char *d, int len) { |
len | 1605 | net/ipx/af_ipx.c | for (l=0;len > 0 && l<16;l++) { |
len | 1607 | net/ipx/af_ipx.c | for (i=0; i < 8 ; i++, --len) { |
len | 1608 | net/ipx/af_ipx.c | if (len > 0) { |
len | 1620 | net/ipx/af_ipx.c | len += 8; |
len | 1621 | net/ipx/af_ipx.c | for (i=0; i < 8 ; i++, --len) |
len | 1622 | net/ipx/af_ipx.c | if (len > 0) |
len | 1647 | net/ipx/af_ipx.c | int len = ntohs(p->ipx_pktsize); |
len | 1649 | net/ipx/af_ipx.c | if (len > 30) |
len | 1650 | net/ipx/af_ipx.c | dump_data(str,(unsigned char *)p + 30, len - 30); |
len | 1694 | net/ipx/af_ipx.c | static int ipx_sendto(struct socket *sock, const void *ubuf, int len, int noblock, |
len | 1731 | net/ipx/af_ipx.c | retval = ipxrtr_route_packet(sk, usipx, ubuf, len); |
len | 1734 | net/ipx/af_ipx.c | return len; |
len | 1842 | net/ipx/af_ipx.c | amount=skb->len; |
len | 412 | net/netrom/af_netrom.c | static void def_callback2(struct sock *sk, int len) |
len | 948 | net/netrom/af_netrom.c | if ((frametype & 0x0F) == NR_CONNACK && skb->len == 22) |
len | 990 | net/netrom/af_netrom.c | if (skb->len == 37) { |
len | 1017 | net/netrom/af_netrom.c | sk->data_ready(sk, skb->len); |
len | 1022 | net/netrom/af_netrom.c | static int nr_sendto(struct socket *sock, const void *ubuf, int len, int noblock, |
len | 1070 | net/netrom/af_netrom.c | size = len + AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + 3 + NR_NETWORK_LEN + NR_TRANSPORT_LEN; |
len | 1079 | net/netrom/af_netrom.c | skb_reserve(skb, size - len); |
len | 1105 | net/netrom/af_netrom.c | skb->h.raw = skb_put(skb, len); |
len | 1113 | net/netrom/af_netrom.c | memcpy_fromfs(asmptr, ubuf, len); |
len | 1125 | net/netrom/af_netrom.c | return len; |
len | 1172 | net/netrom/af_netrom.c | copied = (size < skb->len) ? size : skb->len; |
len | 1240 | net/netrom/af_netrom.c | amount = skb->len - 20; |
len | 1312 | net/netrom/af_netrom.c | int len = 0; |
len | 1318 | 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 | 1326 | net/netrom/af_netrom.c | len += sprintf(buffer + len, "%-9s ", |
len | 1328 | net/netrom/af_netrom.c | len += sprintf(buffer + len, "%-9s ", |
len | 1330 | 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 | 1345 | net/netrom/af_netrom.c | pos = begin + len; |
len | 1348 | net/netrom/af_netrom.c | len = 0; |
len | 1359 | net/netrom/af_netrom.c | len -= (offset - begin); |
len | 1361 | net/netrom/af_netrom.c | if (len > length) len = length; |
len | 1363 | net/netrom/af_netrom.c | return(len); |
len | 76 | net/netrom/nr_dev.c | void *daddr, void *saddr, unsigned len) |
len | 56 | net/netrom/nr_in.c | sk->nr->fraglen += skb->len; |
len | 62 | net/netrom/nr_in.c | sk->nr->fraglen += skb->len; |
len | 75 | net/netrom/nr_in.c | memcpy(skb_put(skbn, skbo->len), skbo->data, skbo->len); |
len | 80 | net/netrom/nr_in.c | memcpy(skb_put(skbn, skbo->len), skbo->data, skbo->len); |
len | 52 | net/netrom/nr_out.c | int err, frontlen, len, mtu; |
len | 56 | net/netrom/nr_out.c | if (skb->len - NR_TRANSPORT_LEN > mtu) { |
len | 63 | net/netrom/nr_out.c | while (skb->len > 0) { |
len | 73 | net/netrom/nr_out.c | len = (mtu > skb->len) ? skb->len : mtu; |
len | 76 | net/netrom/nr_out.c | memcpy(skb_put(skbn, len), skb->data, len); |
len | 77 | net/netrom/nr_out.c | skb_pull(skb, len); |
len | 83 | net/netrom/nr_out.c | if (skb->len > 0) |
len | 700 | net/netrom/nr_route.c | int len = 0; |
len | 707 | net/netrom/nr_route.c | len += sprintf(buffer, "callsign mnemonic w n qual obs neigh qual obs neigh qual obs neigh\n"); |
len | 710 | net/netrom/nr_route.c | len += sprintf(buffer + len, "%-9s %-7s %d %d", |
len | 717 | net/netrom/nr_route.c | len += sprintf(buffer + len, " %3d %d %05d", |
len | 723 | net/netrom/nr_route.c | len += sprintf(buffer + len, "\n"); |
len | 725 | net/netrom/nr_route.c | pos = begin + len; |
len | 728 | net/netrom/nr_route.c | len = 0; |
len | 739 | net/netrom/nr_route.c | len -= (offset - begin); |
len | 741 | net/netrom/nr_route.c | if (len > length) len = length; |
len | 743 | net/netrom/nr_route.c | return(len); |
len | 750 | net/netrom/nr_route.c | int len = 0; |
len | 756 | net/netrom/nr_route.c | len += sprintf(buffer, "addr callsign dev qual lock count\n"); |
len | 759 | net/netrom/nr_route.c | len += sprintf(buffer + len, "%05d %-9s %-4s %3d %d %3d\n", |
len | 767 | net/netrom/nr_route.c | pos = begin + len; |
len | 770 | net/netrom/nr_route.c | len = 0; |
len | 781 | net/netrom/nr_route.c | len -= (offset - begin); |
len | 783 | net/netrom/nr_route.c | if (len > length) len = length; |
len | 785 | net/netrom/nr_route.c | return(len); |
len | 157 | net/netrom/nr_subr.c | int len, timeout; |
len | 159 | net/netrom/nr_subr.c | len = AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + 3 + NR_NETWORK_LEN + NR_TRANSPORT_LEN; |
len | 163 | net/netrom/nr_subr.c | len += 17; |
len | 166 | net/netrom/nr_subr.c | len += (sk->nr->bpqext) ? 2 : 1; |
len | 177 | net/netrom/nr_subr.c | if ((skb = alloc_skb(len, GFP_ATOMIC)) == NULL) |
len | 252 | net/netrom/nr_subr.c | int len; |
len | 254 | net/netrom/nr_subr.c | len = AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + 3 + NR_NETWORK_LEN + NR_TRANSPORT_LEN + 1; |
len | 256 | net/netrom/nr_subr.c | if ((skbn = alloc_skb(len, GFP_ATOMIC)) == NULL) |
len | 135 | net/socket.c | int len; |
len | 140 | net/socket.c | len=get_user(ulen); |
len | 141 | net/socket.c | if(len>klen) |
len | 142 | net/socket.c | len=klen; |
len | 143 | net/socket.c | if(len<0 || len> MAX_SOCK_ADDR) |
len | 145 | net/socket.c | if(len) |
len | 147 | net/socket.c | if((err=verify_area(VERIFY_WRITE,uaddr,len))<0) |
len | 149 | net/socket.c | memcpy_tofs(uaddr,kaddr,len); |
len | 151 | net/socket.c | put_user(len,ulen); |
len | 759 | net/socket.c | int len; |
len | 803 | net/socket.c | newsock->ops->getname(newsock, (struct sockaddr *)address, &len, 1); |
len | 804 | net/socket.c | move_addr_to_user(address,len, upeer_sockaddr, upeer_addrlen); |
len | 870 | net/socket.c | int len; |
len | 878 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 0); |
len | 881 | net/socket.c | if((err=move_addr_to_user(address,len, usockaddr, usockaddr_len))<0) |
len | 895 | net/socket.c | int len; |
len | 903 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 1); |
len | 906 | net/socket.c | if((err=move_addr_to_user(address,len, usockaddr, usockaddr_len))<0) |
len | 916 | net/socket.c | asmlinkage int sys_send(int fd, void * buff, int len, unsigned flags) |
len | 927 | net/socket.c | if(len<0) |
len | 929 | net/socket.c | err=verify_area(VERIFY_READ, buff, len); |
len | 932 | net/socket.c | return(sock->ops->send(sock, buff, len, (file->f_flags & O_NONBLOCK), flags)); |
len | 941 | net/socket.c | asmlinkage int sys_sendto(int fd, void * buff, int len, unsigned flags, |
len | 954 | net/socket.c | if(len<0) |
len | 956 | net/socket.c | err=verify_area(VERIFY_READ,buff,len); |
len | 963 | net/socket.c | return(sock->ops->sendto(sock, buff, len, (file->f_flags & O_NONBLOCK), |
len | 976 | net/socket.c | asmlinkage int sys_recv(int fd, void * buff, int len, unsigned flags) |
len | 988 | net/socket.c | if(len<0) |
len | 990 | net/socket.c | if(len==0) |
len | 992 | net/socket.c | err=verify_area(VERIFY_WRITE, buff, len); |
len | 996 | net/socket.c | return(sock->ops->recv(sock, buff, len,(file->f_flags & O_NONBLOCK), flags)); |
len | 1005 | net/socket.c | asmlinkage int sys_recvfrom(int fd, void * buff, int len, unsigned flags, |
len | 1017 | net/socket.c | if(len<0) |
len | 1019 | net/socket.c | if(len==0) |
len | 1022 | net/socket.c | err=verify_area(VERIFY_WRITE,buff,len); |
len | 1026 | net/socket.c | len=sock->ops->recvfrom(sock, buff, len, (file->f_flags & O_NONBLOCK), |
len | 1029 | net/socket.c | if(len<0) |
len | 1030 | net/socket.c | return len; |
len | 1034 | net/socket.c | return len; |
len | 1142 | net/socket.c | int len; |
len | 1162 | net/socket.c | len=sock->ops->recvmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags, &addr_len); |
len | 1163 | net/socket.c | if(len<0) |
len | 1164 | net/socket.c | return len; |
len | 1170 | net/socket.c | return len; |
len | 1396 | net/socket.c | int len = sprintf(buffer, "sockets: used %d\n", sockets_in_use); |
len | 1397 | net/socket.c | if (offset >= len) |
len | 1403 | net/socket.c | len -= offset; |
len | 1404 | net/socket.c | if (len > length) |
len | 1405 | net/socket.c | len = length; |
len | 1406 | net/socket.c | return len; |
len | 56 | net/unix/af_unix.c | static inline void unix_mkname(struct sockaddr_un * sun, unsigned long len) |
len | 58 | net/unix/af_unix.c | if (len >= sizeof(*sun)) |
len | 59 | net/unix/af_unix.c | len = sizeof(*sun)-1; |
len | 60 | net/unix/af_unix.c | ((char *)sun)[len]=0; |
len | 240 | net/unix/af_unix.c | static void def_callback2(struct sock *sk, int len) |
len | 652 | net/unix/af_unix.c | static int unix_sendmsg(struct socket *sock, struct msghdr *msg, int len, int nonblock, int flags) |
len | 693 | net/unix/af_unix.c | if(len>(sk->sndbuf-sizeof(struct sk_buff))/2) /* Keep two messages in the pipe so it schedules better */ |
len | 697 | net/unix/af_unix.c | len=(sk->sndbuf-sizeof(struct sk_buff))/2; |
len | 703 | net/unix/af_unix.c | if(len > 4000 && sock->type!=SOCK_DGRAM) |
len | 704 | net/unix/af_unix.c | len = 4000; |
len | 707 | net/unix/af_unix.c | size=/*protocol_size(&proto_unix)+*/len; |
len | 714 | net/unix/af_unix.c | memcpy_fromiovec(skb_put(skb,len),msg->msg_iov, len); |
len | 740 | net/unix/af_unix.c | other->data_ready(other,len); |
len | 741 | net/unix/af_unix.c | return len; |
len | 752 | net/unix/af_unix.c | int len; |
len | 777 | net/unix/af_unix.c | len=iov->iov_len; |
len | 780 | net/unix/af_unix.c | while(done<len) |
len | 827 | net/unix/af_unix.c | num=min(skb->len,size-copied); |
len | 840 | net/unix/af_unix.c | if(skb->len==0) |
len | 913 | net/unix/af_unix.c | amount=skb->len; |
len | 930 | net/unix/af_unix.c | int len=0; |
len | 933 | net/unix/af_unix.c | len+= sprintf(buffer,"Num RefCount Protocol Flags Type St Path\n"); |
len | 937 | net/unix/af_unix.c | len+=sprintf(buffer+len,"%p: %08X %08X %08lX %04X %02X", |
len | 945 | net/unix/af_unix.c | len+=sprintf(buffer+len, " %s\n", s->protinfo.af_unix.name); |
len | 947 | net/unix/af_unix.c | buffer[len++]='\n'; |
len | 949 | net/unix/af_unix.c | pos=begin+len; |
len | 952 | net/unix/af_unix.c | len=0; |
len | 960 | net/unix/af_unix.c | len-=(offset-begin); |
len | 961 | net/unix/af_unix.c | if(len>length) |
len | 962 | net/unix/af_unix.c | len=length; |
len | 963 | net/unix/af_unix.c | return len; |