tag | line | file | source code |
len | 130 | arch/alpha/kernel/irq.c | int i, len = 0; |
len | 136 | arch/alpha/kernel/irq.c | len += sprintf(buf+len, "%2d: %8d %c %s\n", |
len | 141 | arch/alpha/kernel/irq.c | return len; |
len | 14 | arch/alpha/kernel/ksyms.c | extern void bcopy (const char *src, char *dst, int len); |
len | 168 | arch/alpha/kernel/osf_sys.c | asmlinkage unsigned long osf_mmap(unsigned long addr, unsigned long len, |
len | 180 | arch/alpha/kernel/osf_sys.c | return do_mmap(file, addr, len, prot, flags, off); |
len | 479 | arch/alpha/kernel/osf_sys.c | unsigned len; |
len | 486 | arch/alpha/kernel/osf_sys.c | len = namelen; |
len | 488 | arch/alpha/kernel/osf_sys.c | len = 32; |
len | 490 | 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 | 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 | 181 | arch/i386/kernel/irq.c | int i, len = 0; |
len | 187 | arch/i386/kernel/irq.c | len += sprintf(buf+len, "%3d: %8d %c %s\n", |
len | 196 | arch/i386/kernel/irq.c | len+=sprintf(buf+len, "IPI: %8lu received\n", |
len | 199 | arch/i386/kernel/irq.c | return len; |
len | 205 | arch/i386/kernel/irq.c | int i,j, len = 0; |
len | 219 | arch/i386/kernel/irq.c | len += sprintf(buf+len,"CPUS: %10i \n", |
len | 221 | arch/i386/kernel/irq.c | len += sprintf(buf+len," SUM "); |
len | 223 | arch/i386/kernel/irq.c | len += sprintf(buf+len," P%1d ",i); |
len | 224 | arch/i386/kernel/irq.c | len += sprintf(buf+len,"\n"); |
len | 228 | arch/i386/kernel/irq.c | len += sprintf(buf+len, "%3d: %10d ", |
len | 231 | arch/i386/kernel/irq.c | len+=sprintf(buf+len, "%10d ",int_count[j][i]); |
len | 232 | arch/i386/kernel/irq.c | len += sprintf(buf+len, "%c %s\n", |
len | 236 | arch/i386/kernel/irq.c | len+=sprintf(buf+len, "LCK: %10lu", |
len | 239 | arch/i386/kernel/irq.c | len+=sprintf(buf+len," %10lu",smp_spins[i]); |
len | 240 | arch/i386/kernel/irq.c | len +=sprintf(buf+len," spins from int\n"); |
len | 242 | arch/i386/kernel/irq.c | len+=sprintf(buf+len, "LCK: %10lu", |
len | 245 | arch/i386/kernel/irq.c | len+=sprintf(buf+len," %10lu",smp_spins_syscall[i]); |
len | 246 | arch/i386/kernel/irq.c | len +=sprintf(buf+len," spins from syscall\n"); |
len | 248 | arch/i386/kernel/irq.c | len+=sprintf(buf+len, "LCK: %10lu", |
len | 251 | arch/i386/kernel/irq.c | len+=sprintf(buf+len," %10lu",smp_spins_sys_idle[i]); |
len | 252 | arch/i386/kernel/irq.c | len +=sprintf(buf+len," spins from sysidle\n"); |
len | 253 | arch/i386/kernel/irq.c | len+=sprintf(buf+len,"IDLE %10lu",sum_smp_idle_count); |
len | 255 | arch/i386/kernel/irq.c | len+=sprintf(buf+len," %10lu",smp_idle_count[i]); |
len | 256 | arch/i386/kernel/irq.c | len +=sprintf(buf+len," idle ticks\n"); |
len | 258 | arch/i386/kernel/irq.c | len+=sprintf(buf+len, "IPI: %10lu received\n", |
len | 261 | arch/i386/kernel/irq.c | return len; |
len | 106 | arch/i386/kernel/setup.c | int len = 0; |
len | 169 | arch/i386/kernel/setup.c | if (COMMAND_LINE_SIZE <= ++len) |
len | 93 | arch/i386/kernel/smp.c | static int mpf_checksum(unsigned char *mp, int len) |
len | 96 | arch/i386/kernel/smp.c | while(len--) |
len | 26 | arch/i386/lib/checksum.c | unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum) { |
len | 93 | arch/i386/lib/checksum.c | : "0"(sum), "c"(len), "S"(buff) |
len | 105 | arch/i386/lib/checksum.c | int len, int sum) { |
len | 191 | arch/i386/lib/checksum.c | : "0"(sum), "c"(len), "S"(src), "D" (dst) |
len | 200 | arch/i386/lib/checksum.c | int len, int sum) { |
len | 286 | arch/i386/lib/checksum.c | : "0"(sum), "c"(len), "S"(src), "D" (dst) |
len | 121 | arch/mips/kernel/irq.c | int i, len = 0; |
len | 127 | arch/mips/kernel/irq.c | len += sprintf(buf+len, "%3d: %8d %c %s\n", |
len | 132 | arch/mips/kernel/irq.c | return len; |
len | 39 | arch/mips/kernel/syscall.c | asmlinkage unsigned long sys_mmap(unsigned long addr, size_t len, int prot, |
len | 50 | arch/mips/kernel/syscall.c | return do_mmap(file, addr, len, prot, flags, offset); |
len | 55 | arch/mips/kernel/sysmips.c | int flags, len, retval = -EINVAL; |
len | 63 | arch/mips/kernel/sysmips.c | len = get_max_hostname((unsigned long)name); |
len | 65 | arch/mips/kernel/sysmips.c | return len; |
len | 66 | arch/mips/kernel/sysmips.c | len = strnlen_user(name, retval); |
len | 67 | arch/mips/kernel/sysmips.c | if (len == 0 || len > __NEW_UTS_LEN) |
len | 69 | arch/mips/kernel/sysmips.c | memcpy_fromfs(system_utsname.nodename, name, len); |
len | 70 | arch/mips/kernel/sysmips.c | system_utsname.nodename[len] = '\0'; |
len | 24 | arch/mips/lib/checksum.c | unsigned int csum_partial(const unsigned char *buff, int len, unsigned int sum) |
len | 128 | arch/mips/lib/checksum.c | : "0"(sum), "r"(len), "r"(buff) |
len | 138 | arch/mips/lib/checksum.c | int len, int sum) |
len | 144 | arch/mips/lib/checksum.c | sum = csum_partial(src, len, sum); |
len | 145 | arch/mips/lib/checksum.c | memcpy(dst, src, len); |
len | 96 | arch/ppc/kernel/irq.c | int i, len = 0; |
len | 102 | arch/ppc/kernel/irq.c | len += sprintf(buf+len, "%2d: %8d %c %s\n", |
len | 107 | arch/ppc/kernel/irq.c | return len; |
len | 27 | arch/ppc/kernel/port_io.c | void insl(int port, long *ptr, int len) |
len | 30 | arch/ppc/kernel/port_io.c | while (len-- > 0) |
len | 61 | arch/ppc/kernel/port_io.c | void outsl(int port, long *ptr, int len) |
len | 64 | arch/ppc/kernel/port_io.c | while (len-- > 0) |
len | 38 | arch/ppc/kernel/stubs.c | extern unsigned short _ip_fast_csum(unsigned char *buf, int len); |
len | 41 | arch/ppc/kernel/stubs.c | ip_fast_csum(unsigned char *buf, int len) |
len | 44 | arch/ppc/kernel/stubs.c | _val = _ip_fast_csum(buf, len); |
len | 46 | arch/ppc/kernel/stubs.c | printk("IP CKSUM(%x, %d) = %x\n", buf, len, _val); |
len | 51 | arch/ppc/kernel/stubs.c | extern unsigned short _ip_compute_csum(unsigned char *buf, int len); |
len | 54 | arch/ppc/kernel/stubs.c | ip_compute_csum(unsigned char *buf, int len) |
len | 57 | arch/ppc/kernel/stubs.c | _val = _ip_compute_csum(buf, len); |
len | 59 | arch/ppc/kernel/stubs.c | printk("Compute IP CKSUM(%x, %d) = %x\n", buf, len, _val); |
len | 65 | arch/ppc/kernel/stubs.c | _udp_check(unsigned char *buf, int len, int saddr, int daddr, int hdr); |
len | 68 | arch/ppc/kernel/stubs.c | udp_check(unsigned char *buf, int len, int saddr, int daddr) |
len | 72 | arch/ppc/kernel/stubs.c | hdr = (len << 16) + IPPROTO_UDP; |
len | 73 | arch/ppc/kernel/stubs.c | _val = _udp_check(buf, len, saddr, daddr, hdr); |
len | 75 | arch/ppc/kernel/stubs.c | printk("UDP CSUM(%x,%d,%x,%x) = %x\n", buf, len, saddr, daddr, _val); |
len | 76 | arch/ppc/kernel/stubs.c | dump_buf(buf, len); |
len | 82 | arch/ppc/kernel/stubs.c | _tcp_check(unsigned char *buf, int len, int saddr, int daddr, int hdr); |
len | 85 | arch/ppc/kernel/stubs.c | tcp_check(unsigned char *buf, int len, int saddr, int daddr) |
len | 89 | arch/ppc/kernel/stubs.c | hdr = (len << 16) + IPPROTO_TCP; |
len | 91 | arch/ppc/kernel/stubs.c | _val = _tcp_check(buf, len, saddr, daddr, hdr); |
len | 93 | arch/ppc/kernel/stubs.c | printk("TCP CSUM(%x,%d,%x,%x) = %x\n", buf, len, saddr, daddr, _val); |
len | 94 | arch/ppc/kernel/stubs.c | dump_buf(buf, len); |
len | 107 | arch/ppc/kernel/stubs.c | unsigned int csum_partial(unsigned char * buff, int len, unsigned int sum) |
len | 113 | arch/ppc/kernel/stubs.c | unsigned int csum_partial_copy(char *src, char *dst, int len, int sum) |
len | 154 | arch/sparc/kernel/idprom.c | register int len; |
len | 160 | arch/sparc/kernel/idprom.c | len = prom_getproperty(prom_root_node, "vac_hwflush", |
len | 162 | arch/sparc/kernel/idprom.c | if(len != 4) tmp1=0; |
len | 164 | arch/sparc/kernel/idprom.c | len = prom_getproperty(prom_root_node, "vac-hwflush", |
len | 166 | arch/sparc/kernel/idprom.c | if(len != 4) tmp2=0; |
len | 50 | arch/sparc/kernel/ioport.c | void *sparc_alloc_io (void *address, void *virtual, int len, char *name, |
len | 63 | arch/sparc/kernel/ioport.c | len += offset; |
len | 64 | arch/sparc/kernel/ioport.c | if (((unsigned long) virtual + len) > (IOBASE_VADDR + IOBASE_LEN)){ |
len | 68 | arch/sparc/kernel/ioport.c | if (check_region ((vaddr | offset), len)){ |
len | 74 | arch/sparc/kernel/ioport.c | request_region ((vaddr | offset), len, name); |
len | 78 | arch/sparc/kernel/ioport.c | for (; len > 0; len -= PAGE_SIZE){ |
len | 97 | arch/sparc/kernel/ioport.c | void *sparc_dvma_malloc (int len, char *name) |
len | 102 | arch/sparc/kernel/ioport.c | if (check_region (vaddr, len)){ |
len | 106 | arch/sparc/kernel/ioport.c | if (vaddr + len > (DVMA_VADDR + DVMA_LEN)){ |
len | 117 | arch/sparc/kernel/ioport.c | dvma_next_free = PAGE_ALIGN(dvma_next_free+len); |
len | 119 | arch/sparc/kernel/ioport.c | request_region(base_address, len, name); |
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 | 40 | arch/sparc/kernel/sys_sunos.c | static unsigned long get_sparc_unmapped_area(unsigned long len) |
len | 45 | arch/sparc/kernel/sys_sunos.c | if (len > TASK_SIZE) |
len | 49 | arch/sparc/kernel/sys_sunos.c | if (TASK_SIZE - len < addr) |
len | 55 | arch/sparc/kernel/sys_sunos.c | if (addr + len > vmm->vm_start) { |
len | 64 | arch/sparc/kernel/sys_sunos.c | asmlinkage unsigned long sunos_mmap(unsigned long addr, unsigned long len, |
len | 80 | arch/sparc/kernel/sys_sunos.c | addr = get_sparc_unmapped_area(len); |
len | 95 | arch/sparc/kernel/sys_sunos.c | retval = do_mmap(file, addr, len, prot, flags, off); |
len | 103 | arch/sparc/kernel/sys_sunos.c | asmlinkage int sunos_mctl(unsigned long addr, unsigned long len, int function, char *arg) |
len | 106 | arch/sparc/kernel/sys_sunos.c | "is unsupported\n", current->comm, addr, len, function, arg); |
len | 113 | arch/sparc/kernel/sys_sunos.c | asmlinkage int sunos_msync(unsigned long addr, unsigned long len, unsigned long flags) |
len | 116 | arch/sparc/kernel/sys_sunos.c | "is unsupported\n", current->comm, addr, len, flags); |
len | 249 | arch/sparc/kernel/sys_sunos.c | asmlinkage void sunos_madvise(unsigned long address, unsigned long len, |
len | 256 | arch/sparc/kernel/sys_sunos.c | address, len); |
len | 270 | arch/sparc/kernel/sys_sunos.c | asmlinkage int sunos_mincore(unsigned long addr, unsigned long len, char *array) |
len | 281 | arch/sparc/kernel/sys_sunos.c | num_pages = (len / PAGE_SIZE); |
len | 284 | arch/sparc/kernel/sys_sunos.c | if((addr >= KERNBASE) || ((addr + len) > KERNBASE)) |
len | 289 | arch/sparc/kernel/sys_sunos.c | for(limit = addr + len; addr < limit; addr += PAGE_SIZE, pnum++) { |
len | 402 | arch/sparc/kernel/sys_sunos.c | asmlinkage int sunos_getdomainname(char *name, int len) |
len | 406 | arch/sparc/kernel/sys_sunos.c | if(len > __NEW_UTS_LEN) |
len | 408 | arch/sparc/kernel/sys_sunos.c | error = verify_area(VERIFY_WRITE, name, len); |
len | 411 | arch/sparc/kernel/sys_sunos.c | memcpy_tofs(name, system_utsname.domainname, len); |
len | 432 | arch/sparc/mm/srmmu.c | char *srmmu_lockarea(char *vaddr, unsigned long len) |
len | 437 | arch/sparc/mm/srmmu.c | void srmmu_unlockarea(char *vaddr, unsigned long len) |
len | 441 | arch/sparc/mm/srmmu.c | char *srmmu_get_scsi_buffer(char *vaddr, unsigned long len) |
len | 446 | arch/sparc/mm/srmmu.c | void srmmu_release_scsi_buffer(char *vaddr, unsigned long len) |
len | 574 | arch/sparc/mm/sun4c.c | char *sun4c_get_scsi_buffer(char *bufptr, unsigned long len) |
len | 577 | arch/sparc/mm/sun4c.c | unsigned long last_page = (((unsigned long) bufptr) + len) & PAGE_MASK; |
len | 580 | arch/sparc/mm/sun4c.c | bufptr = sun4c_lockarea(bufptr, len); |
len | 590 | arch/sparc/mm/sun4c.c | void sun4c_release_scsi_buffer(char *bufptr, unsigned long len) |
len | 593 | arch/sparc/mm/sun4c.c | unsigned long last_page = (((unsigned long) bufptr) + len) & PAGE_MASK; |
len | 600 | arch/sparc/mm/sun4c.c | sun4c_unlockarea(bufptr, len); |
len | 71 | arch/sparc/prom/misc.c | int len; |
len | 73 | arch/sparc/prom/misc.c | len = prom_getproplen(prom_root_node, "idprom"); |
len | 74 | arch/sparc/prom/misc.c | if((len>num_bytes) || (len==-1)) return 0xff; |
len | 116 | arch/sparc/prom/tree.c | int len; |
len | 118 | arch/sparc/prom/tree.c | len = prom_getproperty(node, prop, user_buf, ubuf_size); |
len | 119 | arch/sparc/prom/tree.c | if(len != -1) return; |
len | 548 | drivers/block/ide-cd.c | int len; |
len | 564 | drivers/block/ide-cd.c | len = sizeof (*reqbuf) / 4; |
len | 565 | drivers/block/ide-cd.c | len *= 4; |
len | 568 | drivers/block/ide-cd.c | pc->c[4] = len; |
len | 570 | drivers/block/ide-cd.c | pc->buflen = len; |
len | 908 | drivers/block/ide-cd.c | int cdrom_read_check_ireason (ide_drive_t *drive, int len, int ireason) |
len | 922 | drivers/block/ide-cd.c | while (len > 0) |
len | 926 | drivers/block/ide-cd.c | len -= sizeof (dum); |
len | 948 | drivers/block/ide-cd.c | int ireason, len, sectors_to_transfer, nskip; |
len | 957 | drivers/block/ide-cd.c | len = IN_BYTE (IDE_LCYL_REG) + 256 * IN_BYTE (IDE_HCYL_REG); |
len | 977 | drivers/block/ide-cd.c | if (cdrom_read_check_ireason (drive, len, ireason)) return; |
len | 981 | drivers/block/ide-cd.c | if ((len % SECTOR_SIZE) != 0) |
len | 984 | drivers/block/ide-cd.c | drive->name, len); |
len | 991 | drivers/block/ide-cd.c | sectors_to_transfer = len / SECTOR_SIZE; |
len | 1229 | drivers/block/ide-cd.c | int ireason, len, stat, thislen; |
len | 1238 | drivers/block/ide-cd.c | len = IN_BYTE (IDE_LCYL_REG) + 256 * IN_BYTE (IDE_HCYL_REG); |
len | 1268 | drivers/block/ide-cd.c | if (thislen > len) thislen = len; |
len | 1287 | drivers/block/ide-cd.c | while (len > thislen) |
len | 1291 | drivers/block/ide-cd.c | len -= sizeof (dum); |
len | 1316 | drivers/block/ide-cd.c | while (len > thislen) |
len | 1320 | drivers/block/ide-cd.c | len -= sizeof (dum); |
len | 1352 | drivers/block/ide-cd.c | int len; |
len | 1356 | drivers/block/ide-cd.c | len = pc->buflen; |
len | 1357 | drivers/block/ide-cd.c | if (len < 0) len = -len; |
len | 1362 | drivers/block/ide-cd.c | cdrom_start_packet_command (drive, len, cdrom_do_pc_continuation); |
len | 2533 | drivers/block/ide-cd.c | int len, lena; |
len | 2542 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (len)); |
len | 2544 | drivers/block/ide-cd.c | memcpy_fromfs (&len, (void *) arg , sizeof (len)); |
len | 2545 | drivers/block/ide-cd.c | arg += sizeof (len); |
len | 2547 | drivers/block/ide-cd.c | if (len > 0) { |
len | 2548 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, len); |
len | 2552 | drivers/block/ide-cd.c | lena = len; |
len | 2557 | drivers/block/ide-cd.c | if (len > 0) { |
len | 2558 | drivers/block/ide-cd.c | pc.buflen = len; |
len | 2564 | drivers/block/ide-cd.c | if (len > 0) |
len | 2565 | drivers/block/ide-cd.c | memcpy_tofs ((void *)arg, buf, len); |
len | 99 | drivers/block/rd.c | int offset, len; |
len | 112 | drivers/block/rd.c | len = CURRENT->current_nr_sectors << 9; |
len | 114 | drivers/block/rd.c | if ((offset + len) > rd_length[minor]) { |
len | 127 | drivers/block/rd.c | memset(CURRENT->buffer, 0, len); |
len | 259 | drivers/cdrom/sjcd.c | static int sjcd_load_response( void *buf, int len ){ |
len | 262 | drivers/cdrom/sjcd.c | for( ; len; --len ){ |
len | 268 | drivers/cdrom/sjcd.c | return( len ); |
len | 653 | drivers/char/istallion.c | static void stli_delay(int len); |
len | 664 | drivers/char/istallion.c | static void *stli_memalloc(int len); |
len | 845 | drivers/char/istallion.c | static void *stli_memalloc(int len) |
len | 847 | drivers/char/istallion.c | return((void *) kmalloc(len, GFP_KERNEL)); |
len | 1344 | drivers/char/istallion.c | static void stli_delay(int len) |
len | 1347 | drivers/char/istallion.c | printk("stl_delay(len=%d)\n", len); |
len | 1349 | drivers/char/istallion.c | if (len > 0) { |
len | 1351 | drivers/char/istallion.c | current->timeout = jiffies + len; |
len | 1430 | drivers/char/istallion.c | unsigned int len, stlen, head, tail, size; |
len | 1471 | drivers/char/istallion.c | len = (head >= tail) ? (portp->txsize - (head - tail) - 1) : (tail - head - 1); |
len | 1472 | drivers/char/istallion.c | count = MIN(len, count); |
len | 1495 | drivers/char/istallion.c | len = size - (head - tail) - 1; |
len | 1498 | drivers/char/istallion.c | len = tail - head - 1; |
len | 1499 | drivers/char/istallion.c | stlen = len; |
len | 1502 | drivers/char/istallion.c | len = MIN(len, count); |
len | 1506 | drivers/char/istallion.c | while (len > 0) { |
len | 1507 | drivers/char/istallion.c | stlen = MIN(len, stlen); |
len | 1510 | drivers/char/istallion.c | len -= stlen; |
len | 1582 | drivers/char/istallion.c | unsigned int len, stlen, head, tail, size, count, cooksize; |
len | 1625 | drivers/char/istallion.c | len = size - (head - tail) - 1; |
len | 1628 | drivers/char/istallion.c | len = tail - head - 1; |
len | 1629 | drivers/char/istallion.c | stlen = len; |
len | 1632 | drivers/char/istallion.c | len = MIN(len, cooksize); |
len | 1637 | drivers/char/istallion.c | while (len > 0) { |
len | 1638 | drivers/char/istallion.c | stlen = MIN(len, stlen); |
len | 1641 | drivers/char/istallion.c | len -= stlen; |
len | 1674 | drivers/char/istallion.c | unsigned int head, tail, len; |
len | 1685 | drivers/char/istallion.c | len = stli_txcookrealsize - stli_txcooksize; |
len | 1686 | drivers/char/istallion.c | return(len); |
len | 1707 | drivers/char/istallion.c | len = (head >= tail) ? (portp->txsize - (head - tail)) : (tail - head); |
len | 1708 | drivers/char/istallion.c | len--; |
len | 1713 | drivers/char/istallion.c | stli_txcookrealsize = len; |
len | 1714 | drivers/char/istallion.c | len -= stli_txcooksize; |
len | 1716 | drivers/char/istallion.c | return(len); |
len | 1734 | drivers/char/istallion.c | unsigned int head, tail, len; |
len | 1762 | drivers/char/istallion.c | len = (head >= tail) ? (head - tail) : (portp->txsize - (tail - head)); |
len | 1763 | drivers/char/istallion.c | if ((len == 0) && test_bit(ST_TXBUSY, &portp->state)) |
len | 1764 | drivers/char/istallion.c | len = 1; |
len | 1768 | drivers/char/istallion.c | return(len); |
len | 2329 | drivers/char/istallion.c | unsigned int len, stlen; |
len | 2348 | drivers/char/istallion.c | len = head - tail; |
len | 2349 | drivers/char/istallion.c | stlen = len; |
len | 2351 | drivers/char/istallion.c | len = size - (tail - head); |
len | 2355 | drivers/char/istallion.c | len = MIN(len, (TTY_FLIPBUF_SIZE - tty->flip.count)); |
len | 2358 | drivers/char/istallion.c | while (len > 0) { |
len | 2359 | drivers/char/istallion.c | stlen = MIN(len, stlen); |
len | 2366 | drivers/char/istallion.c | len -= stlen; |
len | 75 | drivers/char/softdog.c | static int softdog_write(struct inode *inode, struct file *file, const char *data, int len) |
len | 489 | drivers/char/stallion.c | static void stl_sendbreak(stlport_t *portp, long len); |
len | 491 | drivers/char/stallion.c | static void stl_delay(int len); |
len | 494 | drivers/char/stallion.c | static void *stl_memalloc(int len); |
len | 610 | drivers/char/stallion.c | static void *stl_memalloc(int len) |
len | 612 | drivers/char/stallion.c | return((void *) kmalloc(len, GFP_KERNEL)); |
len | 871 | drivers/char/stallion.c | static void stl_delay(int len) |
len | 874 | drivers/char/stallion.c | printk("stl_delay(len=%d)\n", len); |
len | 876 | drivers/char/stallion.c | if (len > 0) { |
len | 878 | drivers/char/stallion.c | current->timeout = jiffies + len; |
len | 893 | drivers/char/stallion.c | unsigned int len, stlen; |
len | 920 | drivers/char/stallion.c | len = (head >= tail) ? (STL_TXBUFSIZE - (head - tail) - 1) : |
len | 922 | drivers/char/stallion.c | count = MIN(len, count); |
len | 936 | drivers/char/stallion.c | len = STL_TXBUFSIZE - (head - tail) - 1; |
len | 939 | drivers/char/stallion.c | len = tail - head - 1; |
len | 940 | drivers/char/stallion.c | stlen = len; |
len | 943 | drivers/char/stallion.c | len = MIN(len, count); |
len | 945 | drivers/char/stallion.c | while (len > 0) { |
len | 946 | drivers/char/stallion.c | stlen = MIN(len, stlen); |
len | 948 | drivers/char/stallion.c | len -= stlen; |
len | 970 | drivers/char/stallion.c | unsigned int len; |
len | 988 | drivers/char/stallion.c | len = (head >= tail) ? (STL_TXBUFSIZE - (head - tail)) : (tail - head); |
len | 989 | drivers/char/stallion.c | len--; |
len | 991 | drivers/char/stallion.c | if (len > 0) { |
len | 1532 | drivers/char/stallion.c | int len, stlen; |
len | 1573 | drivers/char/stallion.c | len = (head >= tail) ? (head - tail) : (STL_TXBUFSIZE - (tail - head)); |
len | 1574 | drivers/char/stallion.c | if ((len == 0) || ((len < STL_TXBUFLOW) && (test_bit(ASYI_TXLOW, &portp->istate) == 0))) { |
len | 1579 | drivers/char/stallion.c | if (len == 0) { |
len | 1590 | drivers/char/stallion.c | len = MIN(len, CD1400_TXFIFOSIZE); |
len | 1591 | drivers/char/stallion.c | stlen = MIN(len, ((portp->tx.buf + STL_TXBUFSIZE) - tail)); |
len | 1594 | drivers/char/stallion.c | len -= stlen; |
len | 1598 | drivers/char/stallion.c | if (len > 0) { |
len | 1599 | drivers/char/stallion.c | outsb((ioaddr + EREG_DATA), tail, len); |
len | 1600 | drivers/char/stallion.c | tail += len; |
len | 1626 | drivers/char/stallion.c | unsigned int ioack, len, buflen; |
len | 1645 | drivers/char/stallion.c | len = inb(ioaddr + EREG_DATA); |
len | 1649 | drivers/char/stallion.c | insb((ioaddr + EREG_DATA), &unwanted[0], len); |
len | 1651 | drivers/char/stallion.c | len = MIN(len, buflen); |
len | 1652 | drivers/char/stallion.c | if (len > 0) { |
len | 1654 | drivers/char/stallion.c | insb((ioaddr + EREG_DATA), tty->flip.char_buf_ptr, len); |
len | 1655 | drivers/char/stallion.c | memset(tty->flip.flag_buf_ptr, 0, len); |
len | 1656 | drivers/char/stallion.c | tty->flip.flag_buf_ptr += len; |
len | 1657 | drivers/char/stallion.c | tty->flip.char_buf_ptr += len; |
len | 1658 | drivers/char/stallion.c | tty->flip.count += len; |
len | 2325 | drivers/char/stallion.c | static void stl_sendbreak(stlport_t *portp, long len) |
len | 2330 | drivers/char/stallion.c | printk("stl_sendbreak(portp=%x,len=%d)\n", (int) portp, (int) len); |
len | 2340 | drivers/char/stallion.c | len = len / 5; |
len | 2341 | drivers/char/stallion.c | portp->brklen = (len > 255) ? 255 : len; |
len | 433 | drivers/net/3c501.c | int gp_start = 0x800 - (ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN); |
len | 462 | drivers/net/3c501.c | outsb(DATAPORT,buf,skb->len); /* load buffer (usual thing each byte increments the pointer) */ |
len | 74 | drivers/net/3c505.c | #define INVALID_PCB_MSG(len) \ |
len | 75 | drivers/net/3c505.c | printk(invalid_pcb_msg, (len),filename,__FUNCTION__,__LINE__) |
len | 551 | drivers/net/3c505.c | receive_packet (struct device * dev, int len) |
len | 563 | drivers/net/3c505.c | if (len <= 0 || ((len & ~1) != len)) |
len | 566 | drivers/net/3c505.c | printk("*** bad packet len %d at %s(%d)\n",len,filename,__LINE__); |
len | 570 | drivers/net/3c505.c | rlen = (len+1) & ~1; |
len | 605 | drivers/net/3c505.c | ptr = (unsigned short *)skb_put(skb,len); |
len | 640 | drivers/net/3c505.c | int len; |
len | 693 | drivers/net/3c505.c | len = adapter->irx_pcb.data.rcv_resp.pkt_len; |
len | 701 | drivers/net/3c505.c | printk("%s: interrupt - packet received of length %i (%i)\n", dev->name, len, dlen); |
len | 942 | drivers/net/3c505.c | send_packet (struct device * dev, unsigned char * ptr, int len) |
len | 951 | drivers/net/3c505.c | unsigned int nlen = (((len < 60) ? 60 : len) + 1) & (~1); |
len | 958 | drivers/net/3c505.c | if (nlen < len) |
len | 959 | drivers/net/3c505.c | printk("Warning, bad length nlen=%d len=%d %s(%d)\n",nlen,len,filename,__LINE__); |
len | 1020 | drivers/net/3c505.c | if (skb->len <= 0) |
len | 1024 | drivers/net/3c505.c | printk("%s: request to send packet of length %d\n", dev->name, (int)skb->len); |
len | 1045 | drivers/net/3c505.c | if (!send_packet(dev, skb->data, skb->len)) { |
len | 1051 | drivers/net/3c505.c | printk("%s: packet of length %d sent\n", dev->name, (int)skb->len); |
len | 495 | drivers/net/3c507.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 406 | drivers/net/3c509.c | if (skb->len <= 0) |
len | 411 | drivers/net/3c509.c | dev->name, skb->len, inw(ioaddr + EL3_STATUS)); |
len | 435 | drivers/net/3c509.c | outw(skb->len, ioaddr + TX_FIFO); |
len | 438 | drivers/net/3c509.c | outsl(ioaddr + TX_FIFO, skb->data, (skb->len + 3) >> 2); |
len | 663 | drivers/net/3c59x.c | if (skb == NULL || skb->len <= 0) { |
len | 679 | drivers/net/3c59x.c | outl(skb->len, ioaddr + TX_FIFO); |
len | 684 | drivers/net/3c59x.c | outw((skb->len + 3) & ~3, ioaddr + Wn7_MasterLen); |
len | 689 | drivers/net/3c59x.c | outsl(ioaddr + TX_FIFO, skb->data, (skb->len + 3) >> 2); |
len | 699 | drivers/net/3c59x.c | outsl(ioaddr + TX_FIFO, skb->data, (skb->len + 3) >> 2); |
len | 187 | drivers/net/8390.c | length = skb->len; |
len | 188 | drivers/net/8390.c | if (skb->len <= 0) |
len | 613 | drivers/net/apricot.c | if (skb->len <= 0) return 0; |
len | 623 | drivers/net/apricot.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 603 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len); |
len | 623 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len); |
len | 1502 | drivers/net/arcnet.c | out->length = 1 < skb->len ? skb->len : 1; |
len | 1509 | drivers/net/arcnet.c | for(i=0; i<skb->len; i++) |
len | 2260 | drivers/net/arcnet.c | skb->len = length; |
len | 2309 | drivers/net/arcnet.c | for(i=0; i< skb->len; i++) |
len | 2400 | drivers/net/arcnet.c | skb->len=sizeof(struct ClientData); |
len | 2454 | drivers/net/arcnet.c | memcpy(skb->data+skb->len, |
len | 2458 | drivers/net/arcnet.c | skb->len+=length-sizeof(struct ClientData); |
len | 2479 | drivers/net/arcnet.c | for(i=0; i<skb->len; i++) |
len | 2546 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len) |
len | 2555 | drivers/net/arcnet.c | type,type,len); |
len | 2739 | drivers/net/arcnet.c | short offset,length=skb->len+1; |
len | 2806 | drivers/net/arcnet.c | memcpy(arcsoft,skb->data,skb->len); |
len | 2870 | drivers/net/arcnet.c | skb->len = length; |
len | 2879 | drivers/net/arcnet.c | for(i=0; i<skb->len; i++) |
len | 2947 | drivers/net/arcnet.c | length = 1 < skb->len ? skb->len : 1; |
len | 2952 | drivers/net/arcnet.c | for(i=0; i<skb->len; i++) |
len | 3028 | drivers/net/arcnet.c | skb->len = length; |
len | 3043 | drivers/net/arcnet.c | for(i=0; i<skb->len; i++) |
len | 3064 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len) |
len | 408 | drivers/net/at1700.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 450 | drivers/net/atp.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 415 | drivers/net/de4x5.c | static void create_packet(struct device *dev, char *frame, int len); |
len | 978 | drivers/net/de4x5.c | if (lp->skb[i]->len != FAKE_FRAME_LEN) { |
len | 990 | drivers/net/de4x5.c | if (skb->len != FAKE_FRAME_LEN) { |
len | 1025 | drivers/net/de4x5.c | } else if (skb->len == FAKE_FRAME_LEN) { /* Don't TX a fake frame! */ |
len | 1027 | drivers/net/de4x5.c | } else if (skb->len > 0) { |
len | 1035 | drivers/net/de4x5.c | load_packet(dev, skb->data, TD_IC | TD_LS | TD_FS | skb->len, skb); |
len | 1154 | drivers/net/de4x5.c | short len = (lp->rxRingSize - lp->rx_old) * RX_BUFF_SZ; |
len | 1155 | drivers/net/de4x5.c | memcpy(skb_put(skb,len), bus_to_virt(lp->rx_ring[lp->rx_old].buf), len); |
len | 1156 | 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 | 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 | 625 | drivers/net/de4x5.h | unsigned short len; /* Length of the data buffer */ |
len | 400 | drivers/net/de600.c | int len; |
len | 434 | drivers/net/de600.c | PRINTK(("de600_start_xmit:len=%d, page %d/%d\n", skb->len, tx_fifo_in, free_tx_pages)); |
len | 436 | drivers/net/de600.c | if ((len = skb->len) < RUNT) |
len | 437 | drivers/net/de600.c | len = RUNT; |
len | 441 | drivers/net/de600.c | tx_fifo[tx_fifo_in] = transmit_from = tx_page_adr(tx_fifo_in) - len; |
len | 457 | drivers/net/de600.c | for ( ; len > 0; --len, ++buffer) |
len | 514 | drivers/net/de620.c | int len; |
len | 550 | drivers/net/de620.c | if ((len = skb->len) < RUNT) |
len | 551 | drivers/net/de620.c | len = RUNT; |
len | 552 | drivers/net/de620.c | if (len & 1) /* send an even number of bytes */ |
len | 553 | drivers/net/de620.c | ++len; |
len | 560 | drivers/net/de620.c | (int)skb->len, using_txbuf)); |
len | 581 | drivers/net/de620.c | de620_write_block(dev, buffer, len); |
len | 806 | drivers/net/depca.c | } else if (skb->len > 0) { |
len | 911 | drivers/net/depca.c | short len, pkt_len = readw(&lp->rx_ring[entry].msg_length); |
len | 921 | drivers/net/depca.c | len = (lp->rxRingMask - lp->rx_old + 1) * RX_BUFF_SZ; |
len | 922 | drivers/net/depca.c | memcpy_fromio(buf, lp->rx_memcpy[lp->rx_old], len); |
len | 923 | drivers/net/depca.c | memcpy_fromio(buf + len, lp->rx_memcpy[0], pkt_len-len); |
len | 1532 | drivers/net/depca.c | int i, entry, end, len, status = 0; |
len | 1535 | drivers/net/depca.c | end = (entry + (skb->len - 1) / TX_BUFF_SZ) & lp->txRingMask; |
len | 1542 | drivers/net/depca.c | len = (lp->txRingMask - entry + 1) * TX_BUFF_SZ; |
len | 1543 | drivers/net/depca.c | memcpy_toio(lp->tx_memcpy[entry], skb->data, len); |
len | 1544 | drivers/net/depca.c | memcpy_toio(lp->tx_memcpy[0], skb->data + len, skb->len - len); |
len | 1546 | drivers/net/depca.c | memcpy_toio(lp->tx_memcpy[entry], skb->data, skb->len); |
len | 1550 | drivers/net/depca.c | len = (skb->len < ETH_ZLEN) ? ETH_ZLEN : skb->len; |
len | 1556 | drivers/net/depca.c | len -= TX_BUFF_SZ; |
len | 1561 | drivers/net/depca.c | writew(-len, &lp->tx_ring[end].length); /* packet length in last buff */ |
len | 1713 | drivers/net/depca.c | ioc->len = ETH_ALEN; |
len | 1714 | drivers/net/depca.c | if (!(status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len))) { |
len | 1715 | drivers/net/depca.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 1782 | drivers/net/depca.c | ioc->len = (HASH_TABLE_LEN >> 3); |
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->init_block.mcast_table, ioc->len); |
len | 1790 | drivers/net/depca.c | if (!(status=verify_area(VERIFY_READ, ioc->data, ETH_ALEN*ioc->len))) { |
len | 1791 | drivers/net/depca.c | memcpy_fromfs(tmp.addr, ioc->data, ETH_ALEN * ioc->len); |
len | 1817 | drivers/net/depca.c | ioc->len = sizeof(lp->pktStats); |
len | 1818 | drivers/net/depca.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
len | 1819 | drivers/net/depca.c | memcpy_tofs(ioc->data, &lp->pktStats, ioc->len); |
len | 1840 | drivers/net/depca.c | ioc->len = i+sizeof(struct depca_init); |
len | 1841 | drivers/net/depca.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
len | 1842 | drivers/net/depca.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 164 | drivers/net/depca.h | unsigned short len; /* Length of the data buffer */ |
len | 642 | drivers/net/eepro.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 494 | drivers/net/eexpress.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 154 | drivers/net/eql.c | unsigned len); /* */ |
len | 380 | drivers/net/eql.c | dev->name, eql_number_slaves (eql->queue), skb->len, |
len | 385 | drivers/net/eql.c | slave->bytes_queued += skb->len; |
len | 410 | drivers/net/eql.c | unsigned len) |
len | 932 | drivers/net/eth16i.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 758 | drivers/net/ewrk3.c | } else if (skb->len > 0) { |
len | 809 | drivers/net/ewrk3.c | outb((char)(skb->len & 0xff), EWRK3_DATA); |
len | 810 | drivers/net/ewrk3.c | outb((char)((skb->len >> 8) & 0xff), EWRK3_DATA); |
len | 812 | drivers/net/ewrk3.c | for (i=0; i<skb->len; i++) { |
len | 819 | drivers/net/ewrk3.c | writeb((char)(skb->len & 0xff), (char *)buf);/* length (16 bit xfer)*/ |
len | 822 | drivers/net/ewrk3.c | writeb((char)(((skb->len >> 8) & 0xff) | XCT), (char *)buf); |
len | 826 | drivers/net/ewrk3.c | writeb(0x00, (char *)(buf + skb->len)); /* Write the XCT flag */ |
len | 829 | drivers/net/ewrk3.c | memcpy_toio(buf+PRELOAD, skb->data+PRELOAD, skb->len-PRELOAD); |
len | 830 | drivers/net/ewrk3.c | writeb(0xff, (char *)(buf + skb->len)); /* Write the XCT flag */ |
len | 832 | drivers/net/ewrk3.c | writeb((char)((skb->len >> 8) & 0xff), (char *)buf); |
len | 836 | drivers/net/ewrk3.c | memcpy_toio((char *)buf, skb->data, skb->len);/* Write data bytes */ |
len | 1687 | drivers/net/ewrk3.c | ioc->len = ETH_ALEN; |
len | 1688 | drivers/net/ewrk3.c | if (!(status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len))) { |
len | 1689 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 1740 | drivers/net/ewrk3.c | if (!(status = verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
len | 1752 | drivers/net/ewrk3.c | ioc->len = (HASH_TABLE_LEN >> 3); |
len | 1753 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 1760 | drivers/net/ewrk3.c | if (!(status=verify_area(VERIFY_READ, ioc->data, ETH_ALEN*ioc->len))) { |
len | 1761 | drivers/net/ewrk3.c | memcpy_fromfs(tmp.addr, ioc->data, ETH_ALEN * ioc->len); |
len | 1790 | drivers/net/ewrk3.c | ioc->len = sizeof(lp->pktStats); |
len | 1791 | drivers/net/ewrk3.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
len | 1792 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, &lp->pktStats, ioc->len); |
len | 1809 | drivers/net/ewrk3.c | ioc->len = 1; |
len | 1810 | drivers/net/ewrk3.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
len | 1811 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 1836 | drivers/net/ewrk3.c | ioc->len = EEPROM_MAX + 1 + ETH_ALEN; |
len | 1837 | drivers/net/ewrk3.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
len | 1838 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 1860 | drivers/net/ewrk3.c | ioc->len = 1; |
len | 1861 | drivers/net/ewrk3.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
len | 1862 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
len | 298 | drivers/net/ewrk3.h | unsigned short len; /* Length of the data buffer */ |
len | 595 | drivers/net/hp100.c | if ( ( i = ( hp100_inl( TX_MEM_FREE ) & ~0x7fffffff ) ) < skb -> len + 16 ) |
len | 645 | drivers/net/hp100.c | if ( skb -> len <= 0 ) return 0; |
len | 658 | drivers/net/hp100.c | printk( "hp100_start_xmit: irq_status = 0x%x, len = %d\n", val, (int)skb -> len ); |
len | 660 | drivers/net/hp100.c | ok_flag = skb -> len >= HP100_MIN_PACKET_SIZE; |
len | 661 | drivers/net/hp100.c | i = ok_flag ? skb -> len : HP100_MIN_PACKET_SIZE; |
len | 668 | drivers/net/hp100.c | memcpy( lp -> mem_ptr_virt, skb -> data, skb -> len ); |
len | 670 | drivers/net/hp100.c | memset( lp -> mem_ptr_virt, 0, HP100_MIN_PACKET_SIZE - skb -> len ); |
len | 674 | drivers/net/hp100.c | memcpy_toio( lp -> mem_ptr_phys, skb -> data, skb -> len ); |
len | 676 | drivers/net/hp100.c | memset_io( lp -> mem_ptr_phys, 0, HP100_MIN_PACKET_SIZE - skb -> len ); |
len | 681 | drivers/net/hp100.c | outsl( ioaddr + HP100_REG_DATA32, skb -> data, ( skb -> len + 3 ) >> 2 ); |
len | 683 | drivers/net/hp100.c | for ( i = ( skb -> len + 3 ) & ~3; i < HP100_MIN_PACKET_SIZE; i += 4 ) |
len | 1094 | drivers/net/ibmtr.c | ti->current_skb->len-18)); |
len | 1104 | drivers/net/ibmtr.c | ti->current_skb->len-18+hdr_len); |
len | 1114 | drivers/net/ibmtr.c | xmit_resp->frame_length=htons(ti->current_skb->len |
len | 1119 | drivers/net/ibmtr.c | ti->current_skb->len-sizeof(struct trh_hdr)); |
len | 752 | drivers/net/lance.c | if (skb->len <= 0) |
len | 787 | drivers/net/lance.c | -(ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN); |
len | 789 | drivers/net/lance.c | lp->tx_ring[entry].length = -skb->len; |
len | 795 | drivers/net/lance.c | if ((int)(skb->data) + skb->len > 0x01000000) { |
len | 799 | drivers/net/lance.c | memcpy(&lp->tx_bounce_buffs[entry], skb->data, skb->len); |
len | 612 | drivers/net/ni52.c | int len = ((char *) p->iscp - (char *) ptr - 8) / 6; |
len | 613 | drivers/net/ni52.c | if(len <= 0) |
len | 619 | drivers/net/ni52.c | if(len < num_addrs) |
len | 622 | drivers/net/ni52.c | num_addrs = len; |
len | 942 | drivers/net/ni52.c | int len,i; |
len | 990 | drivers/net/ni52.c | if (skb->len <= 0) |
len | 992 | drivers/net/ni52.c | if(skb->len > XMIT_BUFF_SIZE) |
len | 994 | 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 | 1002 | drivers/net/ni52.c | memcpy((char *)p->xmit_cbuffs[p->xmit_count],(char *)(skb->data),skb->len); |
len | 1003 | drivers/net/ni52.c | len = (ETH_ZLEN < skb->len) ? skb->len : ETH_ZLEN; |
len | 1007 | drivers/net/ni52.c | p->xmit_buffs[0]->size = TBD_LAST | len; |
len | 1028 | drivers/net/ni52.c | p->xmit_buffs[0]->size = TBD_LAST | len; |
len | 1040 | drivers/net/ni52.c | p->xmit_buffs[p->xmit_count]->size = TBD_LAST | len; |
len | 502 | drivers/net/ni65.c | int rmdstat,len; |
len | 531 | drivers/net/ni65.c | len = (rmdp->mlen & 0x0fff) - 4; /* -4: ignore FCS */ |
len | 536 | drivers/net/ni65.c | memcpy(skb_put(skb,len),p->recv_skb[p->rmdnum]->data,len); |
len | 542 | drivers/net/ni65.c | rmdp->u.buffer = (unsigned long) skb_put(skb1,len); |
len | 590 | drivers/net/ni65.c | if (skb->len <= 0) |
len | 605 | drivers/net/ni65.c | short len = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 613 | drivers/net/ni65.c | memcpy((char *) (tmdp->u.buffer & 0x00ffffff),(char *)skb->data,skb->len); |
len | 616 | drivers/net/ni65.c | tmdp->blen = -len; |
len | 443 | drivers/net/pi2.c | length = lp->sndbuf->len - 1; |
len | 703 | drivers/net/pi2.c | lp->txcnt = (int) lp->sndbuf->len - 1; |
len | 817 | drivers/net/pi2.c | lp->txcnt = (int) lp->sndbuf->len - 1; |
len | 1078 | drivers/net/pi2.c | void *daddr, void *saddr, unsigned len) |
len | 1080 | drivers/net/pi2.c | return ax25_encapsulate(skb, dev, type, daddr, saddr, len); |
len | 901 | drivers/net/plip.c | if (skb->len > dev->mtu + dev->hard_header_len) { |
len | 902 | drivers/net/plip.c | printk("%s: packet too big, %d.\n", dev->name, (int)skb->len); |
len | 913 | drivers/net/plip.c | snd->length.h = skb->len; |
len | 157 | drivers/net/ppp.c | static void ppp_proto_ccp (struct ppp *ppp, u_char *dp, int len, int rcvd); |
len | 204 | drivers/net/ppp.c | unsigned len, struct sk_buff *skb); |
len | 1270 | drivers/net/ppp.c | skb->len = count; |
len | 1360 | drivers/net/ppp.c | u_char *data, int len) |
len | 1386 | drivers/net/ppp.c | totlen = len + 2; |
len | 1412 | drivers/net/ppp.c | len + 2, ppp->flags); |
len | 1442 | drivers/net/ppp.c | static void ppp_proto_ccp (struct ppp *ppp, u_char *dp, int len, int rcvd) |
len | 1448 | drivers/net/ppp.c | if (slen > len) |
len | 1530 | drivers/net/ppp.c | rcv_proto_ccp (struct ppp *ppp, unsigned short proto, u_char *dp, int len) |
len | 1532 | drivers/net/ppp.c | ppp_proto_ccp (ppp, dp, len, 1); |
len | 1533 | drivers/net/ppp.c | return rcv_proto_unknown (ppp, proto, dp, len); |
len | 1545 | drivers/net/ppp.c | rcv_proto_lqr (struct ppp *ppp, unsigned short proto, u_char * data, int len) |
len | 1549 | drivers/net/ppp.c | if (len > 8) { |
len | 1550 | drivers/net/ppp.c | if (len < 48) |
len | 1551 | drivers/net/ppp.c | memset (&data [len], '\0', 48 - len); |
len | 1560 | drivers/net/ppp.c | p = store_long (p, ppp->stats.ppp_ioctects + len); |
len | 1562 | drivers/net/ppp.c | len = 68; |
len | 1568 | drivers/net/ppp.c | return rcv_proto_unknown (ppp, proto, data, len); |
len | 1778 | drivers/net/ppp.c | int len, indx; |
len | 1833 | drivers/net/ppp.c | len = 0; |
len | 1836 | drivers/net/ppp.c | len = c << 8; |
len | 1838 | drivers/net/ppp.c | len += c; |
len | 1843 | drivers/net/ppp.c | if (len == 0) { |
len | 1868 | drivers/net/ppp.c | printk (KERN_DEBUG "ppp_tty_read: len = %d\n", len); |
len | 1873 | drivers/net/ppp.c | if (len + 2 > nr) { |
len | 1879 | drivers/net/ppp.c | "frame\n", nr, len + 2); |
len | 1880 | drivers/net/ppp.c | ppp->ubuf->tail += len; |
len | 1890 | drivers/net/ppp.c | indx = verify_area (VERIFY_WRITE, buf, len + 2); |
len | 1892 | drivers/net/ppp.c | ppp->ubuf->tail += len; |
len | 1904 | drivers/net/ppp.c | indx = len; |
len | 1917 | drivers/net/ppp.c | len += 2; /* Account for ADDRESS and CONTROL bytes */ |
len | 1920 | drivers/net/ppp.c | "ppp_tty_read: passing %d bytes up\n", len); |
len | 1921 | drivers/net/ppp.c | return len; |
len | 2123 | drivers/net/ppp.c | send_revise_frame (register struct ppp *ppp, u_char *data, int len) |
len | 2133 | drivers/net/ppp.c | len = 48; /* total size of this frame */ |
len | 2136 | drivers/net/ppp.c | p = store_long (p, ppp->stats.ppp_ooctects + len); |
len | 2144 | drivers/net/ppp.c | len - PPP_HARD_HDR_LEN, |
len | 2154 | drivers/net/ppp.c | return len; |
len | 2753 | drivers/net/ppp.c | int len; |
len | 2759 | drivers/net/ppp.c | len = strlen (szVersion) + 1; |
len | 2760 | drivers/net/ppp.c | error = verify_area (VERIFY_WRITE, result, len); |
len | 2765 | drivers/net/ppp.c | memcpy_tofs (result, szVersion, len); |
len | 2893 | drivers/net/ppp.c | int len; |
len | 2899 | drivers/net/ppp.c | len = ((struct iphdr *)data) -> tot_len; |
len | 2900 | drivers/net/ppp.c | len = ntohs (len); |
len | 2942 | drivers/net/ppp.c | ppp_print_buffer ("ppp outpkt", data, len); |
len | 2949 | drivers/net/ppp.c | len = slhc_compress (ppp->slcomp, data, len, |
len | 2966 | drivers/net/ppp.c | len += PPP_HARD_HDR_LEN; |
len | 2974 | drivers/net/ppp.c | return ppp_dev_xmit_frame (ppp, ppp->wbuf, (u_char *) hdr, len); |
len | 2990 | drivers/net/ppp.c | int len; |
len | 2993 | drivers/net/ppp.c | len = ((struct iphdr *)data) -> tot_len; |
len | 2994 | drivers/net/ppp.c | len = ntohs (len); |
len | 2996 | drivers/net/ppp.c | hdr = (struct ppp_hdr *) kmalloc (len + sizeof (struct ppp_hdr), |
len | 3002 | drivers/net/ppp.c | memcpy (&hdr[1], data, len); |
len | 3020 | drivers/net/ppp.c | u_char *data, int len, int proto) |
len | 3065 | drivers/net/ppp.c | ppp_print_buffer ("ppp outpkt", data, len); |
len | 3069 | drivers/net/ppp.c | len += PPP_HARD_HDR_LEN; |
len | 3077 | drivers/net/ppp.c | return ppp_dev_xmit_frame (ppp, ppp->wbuf, (u_char *) hdr, len); |
len | 3091 | drivers/net/ppp.c | u_char *data, int len, int proto) |
len | 3096 | drivers/net/ppp.c | hdr = (struct ppp_hdr *) kmalloc (len + sizeof (struct ppp_hdr), |
len | 3101 | drivers/net/ppp.c | memcpy (&hdr[1], data, len); |
len | 3103 | drivers/net/ppp.c | len, proto); |
len | 3118 | drivers/net/ppp.c | int answer, len; |
len | 3158 | drivers/net/ppp.c | len = skb->len; |
len | 3168 | drivers/net/ppp.c | answer = ppp_dev_xmit_ipx (dev, ppp, data, len, PPP_IPX); |
len | 3285 | drivers/net/ppp.c | unsigned len, struct sk_buff *skb) |
len | 3289 | drivers/net/ppp.c | void *saddr, unsigned len) |
len | 186 | drivers/net/pt.c | if (ptr[0] != 0 && skb->len >= 2) |
len | 188 | drivers/net/pt.c | printk("Rx KISS... Control = %d, value = %d.\n", ptr[0], (skb->len > 1? ptr[1] : -1)); |
len | 340 | drivers/net/pt.c | void *daddr, void *saddr, unsigned len) |
len | 342 | drivers/net/pt.c | return ax25_encapsulate(skb, dev, type, daddr, saddr, len); |
len | 1183 | drivers/net/pt.c | lp->txcnt = (int) lp->sndbuf->len - 1; |
len | 1624 | drivers/net/pt.c | lp->txcnt = (int) lp->sndbuf->len - 1; |
len | 1637 | drivers/net/pt.c | length = lp->sndbuf->len - 1; |
len | 405 | drivers/net/seeq8005.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 1249 | drivers/net/sk_g16.c | short len = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 1258 | drivers/net/sk_g16.c | skb->len); |
len | 1260 | drivers/net/sk_g16.c | tmdp->blen = -len; /* set length to transmit */ |
len | 1569 | drivers/net/sk_g16.c | int len = (rmdp->mlen & 0x0fff); /* extract message length from receive buffer */ |
len | 1572 | drivers/net/sk_g16.c | skb = dev_alloc_skb(len+2); /* allocate socket buffer */ |
len | 1602 | drivers/net/sk_g16.c | memcpy(skb_put(skb,len), (unsigned char *) (rmdp->u.buffer & 0x00ffffff), |
len | 1603 | drivers/net/sk_g16.c | len); |
len | 380 | drivers/net/skeleton.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 499 | drivers/net/slhc.c | int len, hdrlen; |
len | 604 | drivers/net/slhc.c | len = isize - (cp - icp); |
len | 605 | drivers/net/slhc.c | if (len < 0) |
len | 607 | drivers/net/slhc.c | len += hdrlen; |
len | 608 | drivers/net/slhc.c | ip->tot_len = htons(len); |
len | 611 | drivers/net/slhc.c | memmove(icp + hdrlen, cp, len - hdrlen); |
len | 636 | drivers/net/slhc.c | return len; |
len | 104 | drivers/net/slip.c | static int slip_esc(unsigned char *p, unsigned char *d, int len); |
len | 107 | drivers/net/slip.c | static int slip_esc6(unsigned char *p, unsigned char *d, int len); |
len | 230 | drivers/net/slip.c | int len; |
len | 233 | drivers/net/slip.c | len = dev->mtu * 2; |
len | 239 | drivers/net/slip.c | if (len < 576 * 2) { |
len | 240 | drivers/net/slip.c | len = 576 * 2; |
len | 243 | drivers/net/slip.c | xbuff = (unsigned char *) kmalloc (len + 4, GFP_ATOMIC); |
len | 244 | drivers/net/slip.c | rbuff = (unsigned char *) kmalloc (len + 4, GFP_ATOMIC); |
len | 246 | drivers/net/slip.c | cbuff = (unsigned char *) kmalloc (len + 4, GFP_ATOMIC); |
len | 282 | drivers/net/slip.c | if (sl->xleft <= len) { |
len | 292 | drivers/net/slip.c | if (sl->rcount <= len) { |
len | 305 | drivers/net/slip.c | sl->buffsize = len; |
len | 402 | drivers/net/slip.c | sl_encaps(struct slip *sl, unsigned char *icp, int len) |
len | 416 | drivers/net/slip.c | if (len > sl->mtu) { /* Sigh, shouldn't occur BUT ... */ |
len | 417 | drivers/net/slip.c | len = sl->mtu; |
len | 427 | drivers/net/slip.c | len = slhc_compress(sl->slcomp, p, len, sl->cbuff, &p, 1); |
len | 432 | drivers/net/slip.c | count = slip_esc6(p, (unsigned char *) sl->xbuff, len); |
len | 435 | drivers/net/slip.c | count = slip_esc(p, (unsigned char *) sl->xbuff, len); |
len | 528 | drivers/net/slip.c | sl_encaps(sl, skb->data, skb->len); |
len | 540 | drivers/net/slip.c | void *daddr, void *saddr, unsigned len) |
len | 547 | drivers/net/slip.c | return ax25_encapsulate(skb, dev, type, daddr, saddr, len); |
len | 578 | drivers/net/slip.c | unsigned long len; |
len | 591 | drivers/net/slip.c | len = dev->mtu * 2; |
len | 597 | drivers/net/slip.c | if (len < 576 * 2) { |
len | 598 | drivers/net/slip.c | len = 576 * 2; |
len | 600 | drivers/net/slip.c | sl->rbuff = (unsigned char *) kmalloc(len + 4, GFP_KERNEL); |
len | 604 | drivers/net/slip.c | sl->xbuff = (unsigned char *) kmalloc(len + 4, GFP_KERNEL); |
len | 609 | drivers/net/slip.c | sl->cbuff = (unsigned char *) kmalloc(len + 4, GFP_KERNEL); |
len | 624 | drivers/net/slip.c | sl->buffsize = len; |
len | 851 | drivers/net/slip.c | slip_esc(unsigned char *s, unsigned char *d, int len) |
len | 869 | drivers/net/slip.c | while (len-- > 0) { |
len | 936 | drivers/net/slip.c | slip_esc6(unsigned char *s, unsigned char *d, int len) |
len | 956 | drivers/net/slip.c | for (i = 0; i < len; ++i) { |
len | 607 | drivers/net/sunlance.c | int entry, skblen, len; |
len | 631 | drivers/net/sunlance.c | if (skb->len <= 0){ |
len | 632 | drivers/net/sunlance.c | printk ("skb len is %ld\n", skb->len); |
len | 644 | drivers/net/sunlance.c | skblen = skb->len; |
len | 657 | drivers/net/sunlance.c | len = (skblen < ETH_ZLEN) ? ETH_ZLEN : skblen; |
len | 659 | drivers/net/sunlance.c | ib->btx_ring [entry].length = (-len) | 0xf000; |
len | 665 | drivers/net/sunlance.c | if (len != skblen){ |
len | 666 | drivers/net/sunlance.c | memset ((char *) &ib->tx_buf [entry][skblen], 0, len - skblen); |
len | 406 | drivers/net/tulip.c | if (skb == NULL || skb->len <= 0) { |
len | 429 | drivers/net/tulip.c | tp->tx_ring[entry].length = skb->len | |
len | 209 | drivers/net/tunnel.c | newlen = (skb->len + ip_header_len); |
len | 225 | drivers/net/tunnel.c | memcpy(skb2->data + ip_header_len, skb->data, skb->len); |
len | 235 | drivers/net/tunnel.c | iph->tot_len = htons(skb2->len); |
len | 1444 | drivers/net/wavelan.c | length = (ETH_ZLEN < skb->len) ? skb->len : ETH_ZLEN; |
len | 2117 | drivers/net/wavelan.c | int len; |
len | 2123 | drivers/net/wavelan.c | len = 0; |
len | 2130 | drivers/net/wavelan.c | len += size; |
len | 2141 | drivers/net/wavelan.c | size = sprintf_stats(buffer + len, lp->dev); |
len | 2143 | drivers/net/wavelan.c | len += size; |
len | 2144 | drivers/net/wavelan.c | pos = begin + len; |
len | 2148 | drivers/net/wavelan.c | len = 0; |
len | 2161 | drivers/net/wavelan.c | len -= (offset - begin); /* Start slop */ |
len | 2162 | drivers/net/wavelan.c | if (len > length) |
len | 2163 | drivers/net/wavelan.c | len = length; /* Ending slop */ |
len | 2165 | drivers/net/wavelan.c | return len; |
len | 360 | drivers/net/znet.c | short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; |
len | 386 | drivers/net/znet.c | memcpy(zn.tx_cur, buf, skb->len); |
len | 549 | drivers/pci/pci.c | int reg, len = 0; |
len | 563 | drivers/pci/pci.c | if (len + 80 > size) { |
len | 566 | drivers/pci/pci.c | len += sprintf(buf + len, " Bus %2d, device %3d, function %2d:\n", |
len | 569 | drivers/pci/pci.c | if (len + 80 > size) { |
len | 572 | drivers/pci/pci.c | len += sprintf(buf + len, " %s: %s %s (rev %d).\n ", |
len | 577 | drivers/pci/pci.c | len += sprintf(buf + len, |
len | 588 | drivers/pci/pci.c | if (len + strlen(str) > size) { |
len | 591 | drivers/pci/pci.c | len += sprintf(buf + len, str); |
len | 595 | drivers/pci/pci.c | if (len + strlen(fast_b2b_capable) > size) { |
len | 598 | drivers/pci/pci.c | len += sprintf(buf + len, fast_b2b_capable); |
len | 604 | drivers/pci/pci.c | if (len + strlen(BIST_capable) > size) { |
len | 607 | drivers/pci/pci.c | len += sprintf(buf + len, BIST_capable); |
len | 612 | drivers/pci/pci.c | if (len + 40 > size) { |
len | 615 | drivers/pci/pci.c | len += sprintf(buf + len, "IRQ %d. ", dev->irq); |
len | 619 | drivers/pci/pci.c | if (len + 80 > size) { |
len | 622 | drivers/pci/pci.c | len += sprintf(buf + len, "Master Capable. "); |
len | 624 | drivers/pci/pci.c | len += sprintf(buf + len, "Latency=%d. ", latency); |
len | 626 | drivers/pci/pci.c | len += sprintf(buf + len, "No bursts. "); |
len | 628 | drivers/pci/pci.c | len += sprintf(buf + len, "Min Gnt=%d.", min_gnt); |
len | 630 | drivers/pci/pci.c | len += sprintf(buf + len, "Max Lat=%d.", max_lat); |
len | 634 | drivers/pci/pci.c | if (len + 40 > size) { |
len | 644 | drivers/pci/pci.c | len += sprintf(buf + len, |
len | 668 | drivers/pci/pci.c | len += sprintf(buf + len, |
len | 675 | drivers/pci/pci.c | len += sprintf(buf + len, "\n"); |
len | 676 | drivers/pci/pci.c | return len; |
len | 686 | drivers/pci/pci.c | int nprinted, len, size; |
len | 692 | drivers/pci/pci.c | len = sprintf(buf, "PCI devices found:\n"); |
len | 695 | drivers/pci/pci.c | nprinted = sprint_dev_config(dev, buf + len, size - len); |
len | 697 | drivers/pci/pci.c | return len + sprintf(buf + len, MSG); |
len | 699 | drivers/pci/pci.c | len += nprinted; |
len | 701 | drivers/pci/pci.c | return len; |
len | 899 | drivers/pci/pci.c | int len = get_pci_list((char*)mem_start); |
len | 900 | drivers/pci/pci.c | if (len) { |
len | 901 | drivers/pci/pci.c | ((char *) mem_start)[len] = '\0'; |
len | 3099 | drivers/scsi/53c7,8xx.c | size_t len; |
len | 3117 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
len | 3120 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "%08x\n", * (u32 *) bp->addr); |
len | 3122 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "\n"); |
len | 3124 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
len | 3125 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, len); |
len | 3138 | drivers/scsi/53c7,8xx.c | size_t len; |
len | 3200 | drivers/scsi/53c7,8xx.c | int i, j, error, len; |
len | 3221 | drivers/scsi/53c7,8xx.c | len = strlen (debugger_tokens[i].name); |
len | 3222 | drivers/scsi/53c7,8xx.c | if (!strncmp(input_buf, debugger_tokens[i].name, len)) |
len | 3229 | drivers/scsi/53c7,8xx.c | for (ptr = input_buf + len, j = 0; j < debugger_tokens[i].nargs && *ptr;) { |
len | 5377 | drivers/scsi/53c7,8xx.c | size_t len = strlen(buf); |
len | 5378 | drivers/scsi/53c7,8xx.c | debugger_kernel_write(host, buf, len); |
len | 5782 | drivers/scsi/53c7,8xx.c | int i, len; |
len | 5810 | drivers/scsi/53c7,8xx.c | ptr += len, i -= len) { |
len | 5812 | drivers/scsi/53c7,8xx.c | len = print_msg (ptr); |
len | 5814 | drivers/scsi/53c7,8xx.c | if (!len) |
len | 1393 | drivers/scsi/AM53C974.c | int ret, i, len, residual=-1; |
len | 1471 | drivers/scsi/AM53C974.c | len = 1; |
len | 1481 | drivers/scsi/AM53C974.c | len = hostdata->msgout[1] + 2; } |
len | 1483 | drivers/scsi/AM53C974.c | len = 2; |
len | 1485 | drivers/scsi/AM53C974.c | for (i = 0; i < len; i++) AM53C974_write_8(FFREG, hostdata->msgout[i]); |
len | 1550 | drivers/scsi/AM53C974.c | int len, ret = 0; |
len | 1724 | drivers/scsi/AM53C974.c | extended_msg[1] = len = AM53C974_read_8(FFREG); /* get length */ |
len | 1727 | drivers/scsi/AM53C974.c | while (len) { |
len | 1730 | drivers/scsi/AM53C974.c | if (len > 1) { |
len | 1734 | drivers/scsi/AM53C974.c | p++; len--; } |
len | 1791 | drivers/scsi/AM53C974.c | unsigned int i, len, cmd_size = COMMAND_SIZE(cmd->cmnd[0]); |
len | 1814 | drivers/scsi/AM53C974.c | len = 3; |
len | 1822 | drivers/scsi/AM53C974.c | len = 1; |
len | 1836 | drivers/scsi/AM53C974.c | len += 5; } |
len | 1840 | drivers/scsi/AM53C974.c | switch (len) { |
len | 1265 | drivers/scsi/NCR5380.c | int len; |
len | 1536 | drivers/scsi/NCR5380.c | len = 3; |
len | 1540 | drivers/scsi/NCR5380.c | len = 1; |
len | 1547 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 1740 | drivers/scsi/NCR5380.c | int len; |
len | 1770 | drivers/scsi/NCR5380.c | len = 1; |
len | 1772 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio (host, &phase, &len, &msgptr); |
len | 1779 | drivers/scsi/NCR5380.c | return len ? -1 : 0; |
len | 2154 | drivers/scsi/NCR5380.c | int len; |
len | 2251 | drivers/scsi/NCR5380.c | len = transfersize; |
len | 2253 | drivers/scsi/NCR5380.c | &len, (unsigned char **) &cmd->SCp.ptr)) { |
len | 2269 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual -= transfersize - len; |
len | 2277 | drivers/scsi/NCR5380.c | len = 1; |
len | 2279 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2485 | drivers/scsi/NCR5380.c | len = 2; |
len | 2488 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2496 | drivers/scsi/NCR5380.c | if (!len && extended_msg[1] <= |
len | 2500 | drivers/scsi/NCR5380.c | len = extended_msg[1] - 1; |
len | 2504 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2508 | drivers/scsi/NCR5380.c | instance->host_no, len); |
len | 2518 | drivers/scsi/NCR5380.c | } else if (len) { |
len | 2552 | drivers/scsi/NCR5380.c | len = 1; |
len | 2555 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2567 | drivers/scsi/NCR5380.c | len = cmd->cmd_len; |
len | 2574 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, |
len | 2589 | drivers/scsi/NCR5380.c | len = 1; |
len | 2591 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 2636 | drivers/scsi/NCR5380.c | int len; |
len | 2680 | drivers/scsi/NCR5380.c | len = 1; |
len | 2683 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
len | 358 | drivers/scsi/NCR53c406a.c | int len; /* current scsi fifo size */ |
len | 371 | drivers/scsi/NCR53c406a.c | len=0; break; |
len | 373 | drivers/scsi/NCR53c406a.c | len=1; break; |
len | 375 | drivers/scsi/NCR53c406a.c | len=42; break; |
len | 377 | drivers/scsi/NCR53c406a.c | len=84; break; |
len | 379 | drivers/scsi/NCR53c406a.c | len=128; break; |
len | 382 | drivers/scsi/NCR53c406a.c | if ((i & 0x40) && len == 0) { /* fifo empty and interrupt occured */ |
len | 386 | drivers/scsi/NCR53c406a.c | if (len) { |
len | 387 | drivers/scsi/NCR53c406a.c | if( len > reqlen ) |
len | 388 | drivers/scsi/NCR53c406a.c | len = reqlen; |
len | 392 | drivers/scsi/NCR53c406a.c | if( fast_pio && len > 3 ) { |
len | 393 | drivers/scsi/NCR53c406a.c | insl(PIO_FIFO,request,len>>2); |
len | 394 | drivers/scsi/NCR53c406a.c | request += len & 0xfc; |
len | 395 | drivers/scsi/NCR53c406a.c | reqlen -= len & 0xfc; |
len | 398 | drivers/scsi/NCR53c406a.c | while(len--) { |
len | 413 | drivers/scsi/NCR53c406a.c | int len; /* current scsi fifo size */ |
len | 425 | drivers/scsi/NCR53c406a.c | len=128; break; |
len | 427 | drivers/scsi/NCR53c406a.c | len=84; break; |
len | 429 | drivers/scsi/NCR53c406a.c | len=42; break; |
len | 431 | drivers/scsi/NCR53c406a.c | len=1; break; |
len | 434 | drivers/scsi/NCR53c406a.c | len=0; break; |
len | 437 | drivers/scsi/NCR53c406a.c | if (len) { |
len | 438 | drivers/scsi/NCR53c406a.c | if( len > reqlen ) |
len | 439 | drivers/scsi/NCR53c406a.c | len = reqlen; |
len | 443 | drivers/scsi/NCR53c406a.c | if( fast_pio && len > 3 ) { |
len | 444 | drivers/scsi/NCR53c406a.c | outsl(PIO_FIFO,request,len>>2); |
len | 445 | drivers/scsi/NCR53c406a.c | request += len & 0xfc; |
len | 446 | drivers/scsi/NCR53c406a.c | reqlen -= len & 0xfc; |
len | 449 | drivers/scsi/NCR53c406a.c | while(len--) { |
len | 2254 | drivers/scsi/advansys.c | #define ASC_DBG_PRT_CDB(lvl, cdb, len) |
len | 2255 | drivers/scsi/advansys.c | #define ASC_DBG_PRT_SENSE(lvl, sense, len) |
len | 2256 | drivers/scsi/advansys.c | #define ASC_DBG_PRT_INQUIRY(lvl, inq, len) |
len | 2345 | drivers/scsi/advansys.c | #define ASC_DBG_PRT_CDB(lvl, cdb, len) \ |
len | 2346 | drivers/scsi/advansys.c | ASC_DBG_PRT_HEX((lvl), "CDB", (uchar *) (cdb), (len)); |
len | 2348 | drivers/scsi/advansys.c | #define ASC_DBG_PRT_SENSE(lvl, sense, len) \ |
len | 2349 | drivers/scsi/advansys.c | ASC_DBG_PRT_HEX((lvl), "SENSE", (uchar *) (sense), (len)); |
len | 2351 | drivers/scsi/advansys.c | #define ASC_DBG_PRT_INQUIRY(lvl, inq, len) \ |
len | 2352 | drivers/scsi/advansys.c | ASC_DBG_PRT_HEX((lvl), "INQUIRY", (uchar *) (inq), (len)); |
len | 4630 | drivers/scsi/advansys.c | totlen += len; \ |
len | 4631 | drivers/scsi/advansys.c | leftlen -= len; \ |
len | 4635 | drivers/scsi/advansys.c | cp += len; \ |
len | 4653 | drivers/scsi/advansys.c | int len; |
len | 4657 | drivers/scsi/advansys.c | totlen = len = 0; |
len | 4659 | drivers/scsi/advansys.c | len = asc_prt_stats_line(cp, leftlen, |
len | 4663 | drivers/scsi/advansys.c | len = asc_prt_stats_line(cp, leftlen, |
len | 4668 | drivers/scsi/advansys.c | len = asc_prt_stats_line(cp, leftlen, |
len | 4673 | drivers/scsi/advansys.c | len = asc_prt_stats_line(cp, leftlen, |
len | 4679 | drivers/scsi/advansys.c | len = asc_prt_stats_line(cp, leftlen, |
len | 4686 | drivers/scsi/advansys.c | len = asc_prt_stats_line(cp, leftlen, |
len | 159 | drivers/scsi/aha1542.c | static int aha1542_out(unsigned int base, unchar *cmdp, int len) |
len | 164 | drivers/scsi/aha1542.c | if(len == 1) { |
len | 175 | drivers/scsi/aha1542.c | while (len--) |
len | 185 | drivers/scsi/aha1542.c | printk("aha1542_out failed(%d): ", len+1); aha1542_stat(); |
len | 191 | drivers/scsi/aha1542.c | static int aha1542_in(unsigned int base, unchar *cmdp, int len) |
len | 197 | drivers/scsi/aha1542.c | while (len--) |
len | 206 | drivers/scsi/aha1542.c | printk("aha1542_in failed(%d): ", len+1); aha1542_stat(); |
len | 213 | drivers/scsi/aha1542.c | static int aha1542_in1(unsigned int base, unchar *cmdp, int len) |
len | 219 | drivers/scsi/aha1542.c | while (len--) |
len | 293 | drivers/scsi/aha1542.c | int len; |
len | 326 | drivers/scsi/aha1542.c | len = 4; |
len | 329 | drivers/scsi/aha1542.c | while (len--) |
len | 991 | drivers/scsi/aic7xxx.c | register int len = ep - bp; |
len | 993 | drivers/scsi/aic7xxx.c | strncpy(buf, bp, len); |
len | 994 | drivers/scsi/aic7xxx.c | buf[len] = '\0'; |
len | 2656 | drivers/scsi/aic7xxx.c | unsigned char len; |
len | 2686 | drivers/scsi/aic7xxx.c | for (i = 0; i < seeprom_read.len; i++) |
len | 2830 | drivers/scsi/aic7xxx.c | unsigned char len; |
len | 2878 | drivers/scsi/aic7xxx.c | for (i = 0; i < seeprom_read.len; i++) |
len | 30 | drivers/scsi/aic7xxx_proc.c | #define BLS buffer + len + size |
len | 82 | drivers/scsi/aic7xxx_proc.c | int len = 0; |
len | 113 | drivers/scsi/aic7xxx_proc.c | len += size; pos = begin + len; size = 0; |
len | 133 | drivers/scsi/aic7xxx_proc.c | len += size; pos = begin + len; size = 0; |
len | 160 | drivers/scsi/aic7xxx_proc.c | len += size; pos = begin + len; size = 0; |
len | 189 | drivers/scsi/aic7xxx_proc.c | len += size; pos = begin + len; size = 0; |
len | 237 | drivers/scsi/aic7xxx_proc.c | len += size; pos = begin + len; size = 0; |
len | 242 | drivers/scsi/aic7xxx_proc.c | proc_debug("2pos: %ld offset: %ld len: %d\n", pos, offset, len); |
len | 244 | drivers/scsi/aic7xxx_proc.c | len -= (offset - begin); /* Start slop */ |
len | 245 | drivers/scsi/aic7xxx_proc.c | if (len > length) |
len | 247 | drivers/scsi/aic7xxx_proc.c | len = length; /* Ending slop */ |
len | 249 | drivers/scsi/aic7xxx_proc.c | proc_debug("3pos: %ld offset: %ld len: %d\n", pos, offset, len); |
len | 251 | drivers/scsi/aic7xxx_proc.c | return (len); |
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 | 245 | drivers/scsi/eata.c | ushort len; /* Number of bytes following this field */ |
len | 469 | drivers/scsi/eata.c | config.len = (ushort) htons((ushort)510); |
len | 484 | drivers/scsi/eata_dma.c | cp->sg_list[i].len = htonl((u32) sl->length); |
len | 831 | drivers/scsi/eata_dma.c | (u32) ntohl(gc->len), gc->version, |
len | 865 | drivers/scsi/eata_dma.c | if(gc->HAA_valid == FALSE || ntohl(gc->len) < 0x22) |
len | 989 | drivers/scsi/eata_dma.c | switch (ntohl(gc->len)) { |
len | 1005 | drivers/scsi/eata_dma.c | if(ntohl(gc->len) >= 0x22) { |
len | 1022 | drivers/scsi/eata_dma.c | if(ntohl(gc->len) >= 0x22) { |
len | 90 | drivers/scsi/eata_dma_proc.c | int size, len = 0; |
len | 120 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len, "EATA (Extended Attachment) driver version: " |
len | 122 | drivers/scsi/eata_dma_proc.c | len += size; pos = begin + len; |
len | 123 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "queued commands: %10ld\n" |
len | 125 | drivers/scsi/eata_dma_proc.c | len += size; pos = begin + len; |
len | 127 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "\nscsi%-2d: HBA %.10s\n", |
len | 129 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 130 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 131 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Firmware revision: v%s\n", |
len | 133 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 134 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 135 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Hardware Configuration:\n"); |
len | 136 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 137 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 141 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "DMA: BUSMASTER\n"); |
len | 143 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "DMA: %d\n", HBA_ptr->dma_channel); |
len | 144 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 145 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 147 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Base IO : %#.4x\n", (u32) HBA_ptr->base); |
len | 148 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 149 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 151 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Host Bus: EISA\n"); |
len | 152 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 153 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 196 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "IRQ: %2d, %s triggered\n", cc->interrupt, |
len | 198 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 199 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 201 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "DMA: BUSMASTER\n"); |
len | 203 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "DMA: %d\n", HBA_ptr->dma_channel); |
len | 204 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 205 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 206 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "CPU: MC680%02d %dMHz\n", bt->cpu_type, |
len | 208 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 209 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 210 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Base IO : %#.4x\n", (u32) HBA_ptr->base); |
len | 211 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 212 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 213 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Host Bus: %s\n", |
len | 217 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 218 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 219 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "SCSI Bus:%s%s Speed: %sMB/sec. %s\n", |
len | 224 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 225 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 226 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "SCSI channel expansion Module: %s present\n", |
len | 229 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 230 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 231 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "SmartRAID hardware: %spresent.\n", |
len | 233 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 234 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 235 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, " Type: %s\n", |
len | 241 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 242 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 244 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, " Max array groups: %d\n", |
len | 246 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 247 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 248 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, " Max drives per RAID 0 array: %d\n", |
len | 250 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 251 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 252 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, " Max drives per RAID 3/5 array: %d\n", |
len | 254 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 255 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 256 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Cache Module: %spresent.\n", |
len | 258 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 259 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 260 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, " Type: %s\n", |
len | 266 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 267 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 269 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, " Bank%d: %dMB with%s ECC\n",x, |
len | 272 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 273 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 275 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Timer Mod.: %spresent\n", |
len | 277 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 278 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 279 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "NVRAM : %spresent\n", |
len | 281 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 282 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 283 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "SmartROM : %sabled\n", |
len | 285 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 286 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 287 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Alarm : %s\n", |
len | 289 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 290 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 293 | drivers/scsi/eata_dma_proc.c | len = 0; |
len | 334 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Host<->Disk command statistics:\n" |
len | 336 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 337 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 339 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,"%5dk:%12u %12u\n", 1 << x, |
len | 342 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 343 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 345 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,">1024k:%12u %12u\n", |
len | 348 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 349 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 350 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,"Sum :%12u %12u\n", |
len | 353 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 354 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 358 | drivers/scsi/eata_dma_proc.c | len = 0; |
len | 365 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Host Latency Command Statistics:\n" |
len | 368 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 369 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 371 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,"%5dk:%12u %12u %12u %12u\n", |
len | 380 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 381 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 383 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,">1024k:%12u %12u %12u %12u\n", |
len | 391 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 392 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 395 | drivers/scsi/eata_dma_proc.c | len = 0; |
len | 401 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, |
len | 403 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 404 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 406 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,"%5dk:%12u %12u %12u %12u\n", |
len | 415 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 416 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 418 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,">1024k:%12u %12u %12u %12u\n", |
len | 426 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 427 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 430 | drivers/scsi/eata_dma_proc.c | len = 0; |
len | 440 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer+len,"Attached devices: %s\n", (scd)?"":"none"); |
len | 441 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 442 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 446 | drivers/scsi/eata_dma_proc.c | proc_print_scsidevice(scd, buffer, &size, len); |
len | 447 | drivers/scsi/eata_dma_proc.c | len += size; |
len | 448 | drivers/scsi/eata_dma_proc.c | pos = begin + len; |
len | 451 | drivers/scsi/eata_dma_proc.c | len = 0; |
len | 462 | drivers/scsi/eata_dma_proc.c | DBG(DBG_PROC, printk("2pos: %ld offset: %ld len: %d\n", pos, offset, len)); |
len | 464 | drivers/scsi/eata_dma_proc.c | len-=(offset-begin); /* Start slop */ |
len | 465 | drivers/scsi/eata_dma_proc.c | if(len>length) |
len | 466 | drivers/scsi/eata_dma_proc.c | len = length; /* Ending slop */ |
len | 467 | drivers/scsi/eata_dma_proc.c | DBG(DBG_PROC, printk("3pos: %ld offset: %ld len: %d\n", pos, offset, len)); |
len | 469 | drivers/scsi/eata_dma_proc.c | return (len); |
len | 215 | drivers/scsi/eata_generic.h | __u32 len; /* Should return 0x22, 0x24, etc */ |
len | 266 | drivers/scsi/eata_generic.h | __u32 len; |
len | 638 | drivers/scsi/eata_pio.c | (uint) ntohl(gc->len), gc->version, |
len | 748 | drivers/scsi/eata_pio.c | switch (ntohl(gc->len)) { |
len | 764 | drivers/scsi/eata_pio.c | if(ntohl(gc->len) >= 0x22) { |
len | 48 | drivers/scsi/eata_pio_proc.c | int size, len = 0; |
len | 65 | drivers/scsi/eata_pio_proc.c | size = sprintf(buffer+len, "EATA (Extended Attachment) PIO driver version: " |
len | 67 | drivers/scsi/eata_pio_proc.c | len += size; pos = begin + len; |
len | 68 | drivers/scsi/eata_pio_proc.c | size = sprintf(buffer + len, "queued commands: %10ld\n" |
len | 70 | drivers/scsi/eata_pio_proc.c | len += size; pos = begin + len; |
len | 72 | drivers/scsi/eata_pio_proc.c | size = sprintf(buffer + len, "\nscsi%-2d: HBA %.10s\n", |
len | 74 | drivers/scsi/eata_pio_proc.c | len += size; |
len | 75 | drivers/scsi/eata_pio_proc.c | pos = begin + len; |
len | 76 | drivers/scsi/eata_pio_proc.c | size = sprintf(buffer + len, "Firmware revision: v%s\n", |
len | 78 | drivers/scsi/eata_pio_proc.c | len += size; |
len | 79 | drivers/scsi/eata_pio_proc.c | pos = begin + len; |
len | 80 | drivers/scsi/eata_pio_proc.c | size = sprintf(buffer + len, "IO: PIO\n"); |
len | 81 | drivers/scsi/eata_pio_proc.c | len += size; |
len | 82 | drivers/scsi/eata_pio_proc.c | pos = begin + len; |
len | 83 | drivers/scsi/eata_pio_proc.c | size = sprintf(buffer + len, "Base IO : %#.4x\n", (u32) HBA_ptr->base); |
len | 84 | drivers/scsi/eata_pio_proc.c | len += size; |
len | 85 | drivers/scsi/eata_pio_proc.c | pos = begin + len; |
len | 86 | drivers/scsi/eata_pio_proc.c | size = sprintf(buffer + len, "Host Bus: %s\n", |
len | 90 | drivers/scsi/eata_pio_proc.c | len += size; |
len | 91 | drivers/scsi/eata_pio_proc.c | pos = begin + len; |
len | 94 | drivers/scsi/eata_pio_proc.c | len = 0; |
len | 102 | drivers/scsi/eata_pio_proc.c | size = sprintf(buffer+len,"Attached devices: %s\n", (scd)?"":"none"); |
len | 103 | drivers/scsi/eata_pio_proc.c | len += size; |
len | 104 | drivers/scsi/eata_pio_proc.c | pos = begin + len; |
len | 108 | drivers/scsi/eata_pio_proc.c | proc_print_scsidevice(scd, buffer, &size, len); |
len | 109 | drivers/scsi/eata_pio_proc.c | len += size; |
len | 110 | drivers/scsi/eata_pio_proc.c | pos = begin + len; |
len | 113 | drivers/scsi/eata_pio_proc.c | len = 0; |
len | 123 | drivers/scsi/eata_pio_proc.c | DBG(DBG_PROC, printk("2pos: %ld offset: %ld len: %d\n", pos, offset, len)); |
len | 125 | drivers/scsi/eata_pio_proc.c | len-=(offset-begin); /* Start slop */ |
len | 126 | drivers/scsi/eata_pio_proc.c | if(len>length) |
len | 127 | drivers/scsi/eata_pio_proc.c | len = length; /* Ending slop */ |
len | 128 | drivers/scsi/eata_pio_proc.c | DBG(DBG_PROC, printk("3pos: %ld offset: %ld len: %d\n", pos, offset, len)); |
len | 130 | drivers/scsi/eata_pio_proc.c | return (len); |
len | 1098 | drivers/scsi/fdomain.c | int len; |
len | 1108 | drivers/scsi/fdomain.c | pos = len = strlen( buffer ); |
len | 1111 | drivers/scsi/fdomain.c | len = 0; |
len | 1116 | drivers/scsi/fdomain.c | len -= (offset - begin); |
len | 1117 | drivers/scsi/fdomain.c | if(len > length) len = length; |
len | 1119 | drivers/scsi/fdomain.c | return(len); |
len | 290 | drivers/scsi/g_NCR5380.c | int len = 0; |
len | 297 | drivers/scsi/g_NCR5380.c | len += sprintf(buffer+len, "SCSI host number %d : %s\n", scsi_ptr->host_no, scsi_ptr->hostt->name); |
len | 298 | drivers/scsi/g_NCR5380.c | len += sprintf(buffer+len, "Generic NCR5380 driver version %d\n", GENERIC_NCR5380_PUBLIC_RELEASE); |
len | 299 | drivers/scsi/g_NCR5380.c | len += sprintf(buffer+len, "NCR5380 driver core version %d\n", NCR5380_PUBLIC_RELEASE); |
len | 301 | drivers/scsi/g_NCR5380.c | len += sprintf(buffer+len, "NCR53C400 driver extension version %d\n", NCR53C400_PUBLIC_RELEASE); |
len | 302 | drivers/scsi/g_NCR5380.c | len += sprintf(buffer+len, "NCR53C400 card%s detected\n", (((struct NCR5380_hostdata *)scsi_ptr->hostdata)->flags & FLAG_NCR53C400)?"":" not"); |
len | 304 | drivers/scsi/g_NCR5380.c | len += sprintf(buffer+len, "NCR53C400 pseudo DMA being used\n"); |
len | 307 | drivers/scsi/g_NCR5380.c | len += sprintf(buffer+len, "NO NCR53C400 driver extensions\n"); |
len | 309 | drivers/scsi/g_NCR5380.c | len += sprintf(buffer+len, "Using %s mapping at %s 0x%x, ", STRVAL(NCR5380_map_config), STRVAL(NCR5380_map_name), scsi_ptr->NCR5380_instance_name); |
len | 311 | drivers/scsi/g_NCR5380.c | len += sprintf(buffer+len, "interrupts disabled\n"); |
len | 313 | drivers/scsi/g_NCR5380.c | len += sprintf(buffer+len, "on interrupt %d\n", scsi_ptr->irq); |
len | 316 | drivers/scsi/g_NCR5380.c | len -= offset; |
len | 317 | drivers/scsi/g_NCR5380.c | if (len > length) |
len | 318 | drivers/scsi/g_NCR5380.c | len = length; |
len | 319 | drivers/scsi/g_NCR5380.c | return len; |
len | 323 | drivers/scsi/g_NCR5380.c | static inline int NCR5380_pread (struct Scsi_Host *instance, unsigned char *dst, int len) |
len | 325 | drivers/scsi/g_NCR5380.c | int blocks = len / 128; |
len | 334 | drivers/scsi/g_NCR5380.c | printk("53C400r: About to read %d blocks for %d bytes\n", blocks, len); |
len | 431 | drivers/scsi/g_NCR5380.c | static inline int NCR5380_pwrite (struct Scsi_Host *instance, unsigned char *src, int len) |
len | 433 | drivers/scsi/g_NCR5380.c | int blocks = len / 128; |
len | 442 | drivers/scsi/g_NCR5380.c | printk("53C400w: About to write %d blocks for %d bytes\n", blocks, len); |
len | 490 | drivers/scsi/pas16.c | int len) { |
len | 494 | drivers/scsi/pas16.c | register i = len; |
len | 523 | drivers/scsi/pas16.c | int len) { |
len | 526 | drivers/scsi/pas16.c | register i = len; |
len | 2172 | drivers/scsi/scsi.c | void *scsi_malloc(unsigned int len) |
len | 2177 | drivers/scsi/scsi.c | if(len % SECTOR_SIZE != 0 || len > PAGE_SIZE) |
len | 2182 | drivers/scsi/scsi.c | nbits = len >> 9; |
len | 2192 | drivers/scsi/scsi.c | printk("SMalloc: %d %p\n",len, dma_malloc_pages[i] + (j << 9)); |
len | 2201 | drivers/scsi/scsi.c | int scsi_free(void *obj, unsigned int len) |
len | 2207 | drivers/scsi/scsi.c | printk("scsi_free %p %d\n",obj, len); |
len | 2217 | drivers/scsi/scsi.c | nbits = len >> 9; |
len | 2442 | drivers/scsi/scsi.c | int i,size, len = 0; |
len | 2450 | drivers/scsi/scsi.c | size = sprintf(buffer+len,"Attached devices: %s\n", (scd)?"":"none"); |
len | 2451 | drivers/scsi/scsi.c | len += size; |
len | 2452 | drivers/scsi/scsi.c | pos = begin + len; |
len | 2455 | drivers/scsi/scsi.c | size += sprintf(buffer+len,"scsi%2d: %s\n", (int) HBA_ptr->host_no, |
len | 2457 | drivers/scsi/scsi.c | len += size; |
len | 2458 | drivers/scsi/scsi.c | pos = begin + len; |
len | 2463 | drivers/scsi/scsi.c | proc_print_scsidevice(scd, buffer, &size, len); |
len | 2464 | drivers/scsi/scsi.c | len += size; |
len | 2465 | drivers/scsi/scsi.c | pos = begin + len; |
len | 2468 | drivers/scsi/scsi.c | len = 0; |
len | 2481 | drivers/scsi/scsi.c | len-=(offset-begin); /* Start slop */ |
len | 2482 | drivers/scsi/scsi.c | if(len>length) |
len | 2483 | drivers/scsi/scsi.c | len = length; /* Ending slop */ |
len | 2484 | drivers/scsi/scsi.c | return (len); |
len | 633 | drivers/scsi/scsi_debug.c | int len, pos, begin; |
len | 668 | drivers/scsi/scsi_debug.c | pos = len = sprintf(buffer, |
len | 674 | drivers/scsi/scsi_debug.c | len = 0; |
len | 679 | drivers/scsi/scsi_debug.c | len -= (offset - begin); |
len | 680 | drivers/scsi/scsi_debug.c | if(len > length) |
len | 681 | drivers/scsi/scsi_debug.c | len = length; |
len | 683 | drivers/scsi/scsi_debug.c | return(len); |
len | 40 | drivers/scsi/scsi_ioctl.c | unsigned int len,slen; |
len | 47 | drivers/scsi/scsi_ioctl.c | len = get_user ((unsigned int *) buffer); |
len | 54 | drivers/scsi/scsi_ioctl.c | if (len > slen) |
len | 55 | drivers/scsi/scsi_ioctl.c | len = slen + 1; |
len | 56 | drivers/scsi/scsi_ioctl.c | result = verify_area(VERIFY_WRITE, buffer, len); |
len | 59 | drivers/scsi/scsi_ioctl.c | memcpy_tofs (buffer, string, len); |
len | 53 | drivers/scsi/scsi_proc.c | int len, pos, begin; |
len | 59 | drivers/scsi/scsi_proc.c | pos = len = sprintf(buffer, |
len | 62 | drivers/scsi/scsi_proc.c | len = 0; |
len | 67 | drivers/scsi/scsi_proc.c | len -= (offset - begin); |
len | 68 | drivers/scsi/scsi_proc.c | if(len > length) |
len | 69 | drivers/scsi/scsi_proc.c | len = length; |
len | 71 | drivers/scsi/scsi_proc.c | return(len); |
len | 257 | drivers/scsi/scsi_proc.c | void proc_print_scsidevice(Scsi_Device *scd, char *buffer, int *size, int len) |
len | 261 | drivers/scsi/scsi_proc.c | y = sprintf(buffer + len, |
len | 266 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, "%c", scd->vendor[x]); |
len | 268 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y," "); |
len | 270 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " Model: "); |
len | 273 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, "%c", scd->model[x]); |
len | 275 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " "); |
len | 277 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " Rev: "); |
len | 280 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, "%c", scd->rev[x]); |
len | 282 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " "); |
len | 284 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, "\n"); |
len | 286 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " Type: %s ", |
len | 289 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " ANSI" |
len | 292 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, " CCS\n"); |
len | 294 | drivers/scsi/scsi_proc.c | y += sprintf(buffer + len + y, "\n"); |
len | 413 | drivers/scsi/seagate.c | int len; |
len | 423 | drivers/scsi/seagate.c | pos = len = strlen(buffer); |
len | 426 | drivers/scsi/seagate.c | len = 0; |
len | 431 | drivers/scsi/seagate.c | len -= (offset - begin); |
len | 432 | drivers/scsi/seagate.c | if ( len > length ) len = length; |
len | 433 | drivers/scsi/seagate.c | return(len); |
len | 621 | drivers/scsi/seagate.c | int len = 0; |
len | 750 | drivers/scsi/seagate.c | len=current_bufflen; /* WDE add */ |
len | 948 | drivers/scsi/seagate.c | len = buffer->length; |
len | 955 | drivers/scsi/seagate.c | len = SCint->request_bufflen; |
len | 960 | drivers/scsi/seagate.c | printk("scsi%d : len = %d\n", hostno, len); |
len | 1073 | drivers/scsi/seagate.c | if (!len) { |
len | 1083 | drivers/scsi/seagate.c | if (fast && transfersize && !(len % transfersize) && (len >= transfersize) |
len | 1091 | drivers/scsi/seagate.c | SCint->transfersize, len, data); |
len | 1113 | drivers/scsi/seagate.c | len -= transfersize; |
len | 1118 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1174 | drivers/scsi/seagate.c | "=S" (data), "=c" (len) : |
len | 1176 | drivers/scsi/seagate.c | "0" (data), "1" (len) : |
len | 1181 | drivers/scsi/seagate.c | if (!len && nobuffs) { |
len | 1184 | drivers/scsi/seagate.c | len = buffer->length; |
len | 1188 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1197 | drivers/scsi/seagate.c | transfered += len; |
len | 1199 | drivers/scsi/seagate.c | for (; len && (STATUS & (REQ_MASK | STAT_REQ)) == (REQ_DATAIN | |
len | 1200 | drivers/scsi/seagate.c | STAT_REQ); --len) { |
len | 1205 | drivers/scsi/seagate.c | transfered -= len; |
len | 1210 | drivers/scsi/seagate.c | if (fast && transfersize && !(len % transfersize) && (len >= transfersize) |
len | 1218 | drivers/scsi/seagate.c | SCint->transfersize, len, data); |
len | 1240 | drivers/scsi/seagate.c | len -= transfersize; |
len | 1250 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1258 | drivers/scsi/seagate.c | printk("scsi%d: transfered += %d\n", hostno, len); |
len | 1259 | drivers/scsi/seagate.c | transfered += len; /* Assume we'll transfer it all, then |
len | 1314 | drivers/scsi/seagate.c | "=D" (data), "=c" (len) : |
len | 1316 | drivers/scsi/seagate.c | "0" (data), "1" (len) : |
len | 1321 | drivers/scsi/seagate.c | printk("scsi%d: transfered -= %d\n", hostno, len); |
len | 1322 | drivers/scsi/seagate.c | transfered -= len; /* Since we assumed all of Len got |
len | 1327 | drivers/scsi/seagate.c | if (!len && nobuffs) { |
len | 1330 | drivers/scsi/seagate.c | len = buffer->length; |
len | 1334 | drivers/scsi/seagate.c | hostno, len, data); |
len | 1401 | drivers/scsi/seagate.c | current_bufflen = len; /* WDE add */ |
len | 1433 | drivers/scsi/seagate.c | current_bufflen = len; /* WDE add */ |
len | 1444 | drivers/scsi/seagate.c | len=current_bufflen; |
len | 167 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = blk.len >> 8; |
len | 168 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = blk.len; |
len | 323 | drivers/scsi/t128.c | int len) { |
len | 326 | drivers/scsi/t128.c | register i = len; |
len | 367 | drivers/scsi/t128.c | int len) { |
len | 370 | drivers/scsi/t128.c | register i = len; |
len | 216 | drivers/scsi/wd7000.c | unsigned len; /* length of string */ |
len | 332 | drivers/scsi/wd7000.c | unchar len[3]; |
len | 388 | drivers/scsi/wd7000.c | unchar len[3]; /* command buffer length */ |
len | 430 | drivers/scsi/wd7000.c | unchar len[3]; /* buffer length */ |
len | 446 | drivers/scsi/wd7000.c | unchar len[3]; /* parms buffer length */ |
len | 578 | drivers/scsi/wd7000.c | static inline int command_out(Adapter *host, unchar *cmd, int len) |
len | 581 | drivers/scsi/wd7000.c | while (len--) { |
len | 591 | drivers/scsi/wd7000.c | printk("wd7000 command_out: WAIT failed(%d)\n", len+1); |
len | 938 | drivers/scsi/wd7000.c | any2scsi(sgb[i].len, sg[i].length); |
len | 968 | drivers/scsi/wd7000.c | any2scsi(icb.len, sizeof(buf)); |
len | 1123 | drivers/scsi/wd7000.c | if (!memcmp(cfg->bios+sig->ofs, sig->sig, sig->len)) { |
len | 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 | 247 | drivers/sound/configure.c | int len; |
len | 249 | drivers/sound/configure.c | if ((len = read (0, answ, sizeof (answ))) < 1) |
len | 258 | drivers/sound/configure.c | if (len < 2) /* |
len | 263 | drivers/sound/configure.c | answ[len - 1] = 0; |
len | 275 | drivers/sound/configure.c | int len, num; |
len | 279 | drivers/sound/configure.c | if ((len = read (0, answ, sizeof (answ))) < 1) |
len | 288 | drivers/sound/configure.c | if (len < 2) /* |
len | 293 | drivers/sound/configure.c | answ[len - 1] = 0; |
len | 166 | drivers/sound/dev_table.h | const char *userbuf, int useroffs, int len); |
len | 209 | drivers/sound/dev_table.h | int (*send_sysex)(int dev, unsigned char *bytes, int len); |
len | 505 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock) |
len | 581 | drivers/sound/dmabuf.c | *len = dmap->fragment_size - dmap->counts[dmap->qhead]; |
len | 959 | drivers/sound/dmabuf.c | int len, max, tmp; |
len | 971 | drivers/sound/dmabuf.c | len = dmap->qlen; |
len | 976 | drivers/sound/dmabuf.c | if (tmp && len) |
len | 980 | drivers/sound/dmabuf.c | len += tmp; |
len | 983 | drivers/sound/dmabuf.c | if (len >= max) |
len | 1648 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock) |
len | 486 | drivers/sound/gus_wave.c | if (position < samples[sample_no].len) |
len | 1313 | drivers/sound/gus_wave.c | ((sample_ptrs[sample] + samples[sample].len) >> 18)) |
len | 1344 | drivers/sound/gus_wave.c | gus_write_addr (0x0a, sample_ptrs[sample] + samples[sample].len - |
len | 1377 | drivers/sound/gus_wave.c | gus_write_addr (0x04, sample_ptrs[sample] + samples[sample].len - 1, |
len | 1556 | drivers/sound/gus_wave.c | if (count < patch.len) |
len | 1559 | drivers/sound/gus_wave.c | count, (int) patch.len); |
len | 1560 | drivers/sound/gus_wave.c | patch.len = count; |
len | 1563 | drivers/sound/gus_wave.c | if (patch.len <= 0 || patch.len > gus_mem_size) |
len | 1565 | drivers/sound/gus_wave.c | printk ("GUS: Invalid sample length %d\n", (int) patch.len); |
len | 1571 | drivers/sound/gus_wave.c | if (patch.loop_start < 0 || patch.loop_start >= patch.len) |
len | 1577 | drivers/sound/gus_wave.c | if (patch.loop_end < patch.loop_start || patch.loop_end > patch.len) |
len | 1593 | drivers/sound/gus_wave.c | if (patch.len >= GUS_BANK_SIZE) |
len | 1595 | drivers/sound/gus_wave.c | printk ("GUS: Sample (16 bit) too long %d\n", (int) patch.len); |
len | 1600 | drivers/sound/gus_wave.c | ((free_mem_ptr + patch.len) / GUS_BANK_SIZE)) |
len | 1605 | drivers/sound/gus_wave.c | if ((tmp_mem + patch.len) > gus_mem_size) |
len | 1612 | drivers/sound/gus_wave.c | if ((free_mem_ptr + patch.len) > gus_mem_size) |
len | 1637 | drivers/sound/gus_wave.c | left = patch.len; |
len | 1767 | drivers/sound/gus_wave.c | free_mem_ptr += patch.len; |
len | 2431 | drivers/sound/gus_wave.c | const char *userbuf, int useroffs, int len) |
len | 2435 | drivers/sound/gus_wave.c | memcpy_fromfs (&localbuf[localoffs], &((userbuf)[useroffs]), len); |
len | 2444 | drivers/sound/gus_wave.c | len /= 2; |
len | 2449 | drivers/sound/gus_wave.c | for (i = 0; i < len; i++) |
len | 2464 | drivers/sound/gus_wave.c | len /= 4; |
len | 2470 | drivers/sound/gus_wave.c | for (i = 0; i < len; i++) |
len | 2615 | drivers/sound/gus_wave.c | if (pat->len > samples[ptr].len) /* Cannot expand sample */ |
len | 2638 | drivers/sound/gus_wave.c | if (offs < 0 || offs >= samples[sample].len) |
len | 2641 | drivers/sound/gus_wave.c | n = samples[sample].len - offs; /* Num of bytes left */ |
len | 2679 | drivers/sound/gus_wave.c | if (offs < 0 || offs >= samples[sample].len) |
len | 2684 | drivers/sound/gus_wave.c | n = samples[sample].len - offs; /* |
len | 135 | drivers/sound/maui.c | if (count < header.len) |
len | 138 | drivers/sound/maui.c | count, (int) header.len); |
len | 139 | drivers/sound/maui.c | header.len = count; |
len | 142 | drivers/sound/maui.c | left = header.len; |
len | 57 | drivers/sound/midi_synth.c | int len; \ |
len | 60 | drivers/sound/midi_synth.c | seq_input_event(obuf, len); \ |
len | 66 | drivers/sound/midi_synth.c | #define _SEQ_ADVBUF(x) len=x |
len | 540 | drivers/sound/midi_synth.c | if (count < sysex.len) |
len | 543 | drivers/sound/midi_synth.c | count, (int) sysex.len); |
len | 544 | drivers/sound/midi_synth.c | sysex.len = count; |
len | 547 | drivers/sound/midi_synth.c | left = sysex.len; |
len | 712 | drivers/sound/midi_synth.c | midi_synth_send_sysex (int dev, unsigned char *bytes, int len) |
len | 717 | drivers/sound/midi_synth.c | for (i = 0; i < len; i++) |
len | 18 | drivers/sound/midi_synth.h | int midi_synth_send_sysex(int dev, unsigned char *bytes,int len); |
len | 55 | drivers/sound/midibuf.c | int len, head, tail; |
len | 79 | drivers/sound/midibuf.c | #define DATA_AVAIL(q) (q->len) |
len | 80 | drivers/sound/midibuf.c | #define SPACE_AVAIL(q) (MAX_QUEUE_SIZE - q->len) |
len | 88 | drivers/sound/midibuf.c | q->len++; q->tail = (q->tail+1) % MAX_QUEUE_SIZE; \ |
len | 98 | drivers/sound/midibuf.c | q->len--; q->head = (q->head+1) % MAX_QUEUE_SIZE; \ |
len | 183 | drivers/sound/midibuf.c | midi_out_buf[dev]->len--; |
len | 244 | drivers/sound/midibuf.c | midi_in_buf[dev]->len = midi_in_buf[dev]->head = midi_in_buf[dev]->tail = 0; |
len | 256 | drivers/sound/midibuf.c | midi_out_buf[dev]->len = midi_out_buf[dev]->head = midi_out_buf[dev]->tail = 0; |
len | 174 | drivers/sound/mpu401.c | int len; \ |
len | 177 | drivers/sound/mpu401.c | seq_input_event(obuf, len); \ |
len | 183 | drivers/sound/mpu401.c | #define _SEQ_ADVBUF(x) len=x |
len | 480 | drivers/sound/pss.c | if (buf->len <= 0 || buf->len > sizeof (buf->data)) |
len | 483 | drivers/sound/pss.c | if (!pss_download_boot (devc, buf->data, buf->len, buf->flags)) |
len | 179 | drivers/sound/sequencer.c | seq_copy_to_input (unsigned char *event_rec, int len) |
len | 187 | drivers/sound/sequencer.c | if (len != 4 && len != 8) |
len | 189 | drivers/sound/sequencer.c | if ((seq_mode == SEQ_1) != (len == 4)) |
len | 197 | drivers/sound/sequencer.c | memcpy (&iqueue[iqtail * IEV_SZ], event_rec, len); |
len | 238 | drivers/sound/sequencer.c | seq_input_event (unsigned char *event_rec, int len) |
len | 261 | drivers/sound/sequencer.c | seq_copy_to_input (event_rec, len); |
len | 9 | drivers/sound/sound_calls.h | int DMAbuf_getrdbuffer(int dev, char **buf, int *len, int dontblock); |
len | 54 | drivers/sound/sound_calls.h | void seq_input_event(unsigned char *event, int len); |
len | 55 | drivers/sound/sound_calls.h | void seq_copy_to_input (unsigned char *event, int len); |
len | 169 | drivers/sound/soundcard.c | int len; |
len | 171 | drivers/sound/soundcard.c | len = _IOC_SIZE (cmd); |
len | 175 | drivers/sound/soundcard.c | if ((err = verify_area (VERIFY_READ, (void *) arg, len)) < 0) |
len | 181 | drivers/sound/soundcard.c | if ((err = verify_area (VERIFY_WRITE, (void *) arg, len)) < 0) |
len | 638 | drivers/sound/sscape.c | if (buf->len <= 0 || buf->len > sizeof (buf->data)) |
len | 641 | drivers/sound/sscape.c | if (!sscape_download_boot (devc, buf->data, buf->len, buf->flags)) |
len | 366 | fs/binfmt_aout.c | unsigned int len; |
len | 416 | fs/binfmt_aout.c | len = PAGE_ALIGN(ex.a_text + ex.a_data); |
len | 418 | fs/binfmt_aout.c | if (bss > len) |
len | 419 | fs/binfmt_aout.c | do_mmap(NULL, start_addr + len, bss-len, |
len | 176 | fs/binfmt_elf.c | unsigned int len; |
len | 285 | fs/binfmt_elf.c | len = (elf_bss + 0xfff) & 0xfffff000; /* What we have mapped so far */ |
len | 288 | fs/binfmt_elf.c | if (last_bss > len) |
len | 289 | fs/binfmt_elf.c | do_mmap(NULL, len, last_bss-len, |
len | 719 | fs/binfmt_elf.c | unsigned int len; |
len | 726 | fs/binfmt_elf.c | len = 0; |
len | 799 | fs/binfmt_elf.c | len = (elf_phdata->p_filesz + elf_phdata->p_vaddr+ 0xfff) & 0xfffff000; |
len | 801 | fs/binfmt_elf.c | if (bss > len) |
len | 802 | fs/binfmt_elf.c | do_mmap(NULL, len, bss-len, |
len | 1095 | fs/binfmt_elf.c | int i, len; |
len | 1099 | fs/binfmt_elf.c | len = current->mm->arg_end - current->mm->arg_start; |
len | 1100 | fs/binfmt_elf.c | len = len >= ELF_PRARGSZ ? ELF_PRARGSZ : len; |
len | 1102 | fs/binfmt_elf.c | (const char *)current->mm->arg_start, len); |
len | 1103 | fs/binfmt_elf.c | for(i = 0; i < len; i++) |
len | 1106 | fs/binfmt_elf.c | psinfo.pr_psargs[len] = 0; |
len | 1194 | fs/binfmt_elf.c | unsigned long len = vma->vm_end - vma->vm_start; |
len | 1200 | fs/binfmt_elf.c | printk("elf_core_dump: writing %08lx %lx\n", addr, len); |
len | 1202 | 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 inline 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 | 40 | fs/devices.c | int len; |
len | 42 | fs/devices.c | len = sprintf(page, "Character devices:\n"); |
len | 45 | fs/devices.c | len += sprintf(page+len, "%2d %s\n", i, chrdevs[i].name); |
len | 48 | fs/devices.c | len += sprintf(page+len, "\nBlock devices:\n"); |
len | 51 | fs/devices.c | len += sprintf(page+len, "%2d %s\n", i, blkdevs[i].name); |
len | 54 | fs/devices.c | return len; |
len | 294 | fs/exec.c | int len, offset = 0; |
len | 310 | fs/exec.c | len=0; /* remember zero-padding */ |
len | 312 | fs/exec.c | len++; |
len | 314 | fs/exec.c | if (p < len) { /* this shouldn't happen - 128kB */ |
len | 318 | fs/exec.c | while (len) { |
len | 319 | fs/exec.c | --p; --tmp; --len; |
len | 56 | fs/ext/namei.c | static int ext_match(int len,const char * name,struct ext_dir_entry * de) |
len | 58 | fs/ext/namei.c | if (!de || !de->inode || len > EXT_NAME_LEN) |
len | 61 | fs/ext/namei.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 63 | fs/ext/namei.c | if (len != de->name_len) |
len | 65 | fs/ext/namei.c | return !memcmp(name, de->name, len); |
len | 151 | fs/ext/namei.c | int ext_lookup(struct inode * dir,const char * name, int len, |
len | 165 | fs/ext/namei.c | if (!(bh = ext_find_entry(dir,name,len,&de,NULL,NULL))) { |
len | 307 | fs/ext/namei.c | int ext_create(struct inode * dir,const char * name, int len, int mode, |
len | 325 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 341 | fs/ext/namei.c | int ext_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
len | 349 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 384 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 400 | fs/ext/namei.c | int ext_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 406 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 451 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 532 | fs/ext/namei.c | int ext_rmdir(struct inode * dir, const char * name, int len) |
len | 540 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
len | 586 | fs/ext/namei.c | int ext_unlink(struct inode * dir, const char * name, int len) |
len | 595 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
len | 630 | fs/ext/namei.c | int ext_symlink(struct inode * dir, const char * name, int len, const char * symname) |
len | 660 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 669 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 685 | fs/ext/namei.c | int ext_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
len | 700 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 707 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 36 | fs/ext2/balloc.c | #define in_range(b, first, len) ((b) >= (first) && (b) <= (first) + (len) - 1) |
len | 44 | fs/ext2/namei.c | static int ext2_match (int len, const char * const name, |
len | 47 | fs/ext2/namei.c | if (!de || !de->inode || len > EXT2_NAME_LEN) |
len | 52 | fs/ext2/namei.c | if (!len && de->name_len == 1 && (de->name[0] == '.') && |
len | 55 | fs/ext2/namei.c | if (len != de->name_len) |
len | 57 | fs/ext2/namei.c | return !memcmp(name, de->name, len); |
len | 165 | fs/ext2/namei.c | int ext2_lookup (struct inode * dir, const char * name, int len, |
len | 179 | fs/ext2/namei.c | if (dcache_lookup(dir, name, len, &ino)) { |
len | 192 | fs/ext2/namei.c | if (!(bh = ext2_find_entry (dir, name, len, &de))) { |
len | 194 | fs/ext2/namei.c | dcache_add(dir, name, len, 0); |
len | 199 | fs/ext2/namei.c | dcache_add(dir, name, len, ino); |
len | 367 | fs/ext2/namei.c | int ext2_create (struct inode * dir,const char * name, int len, int mode, |
len | 386 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 408 | fs/ext2/namei.c | int ext2_mknod (struct inode * dir, const char * name, int len, int mode, |
len | 418 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 450 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 472 | fs/ext2/namei.c | int ext2_mkdir (struct inode * dir, const char * name, int len, int mode) |
len | 481 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 524 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 607 | fs/ext2/namei.c | int ext2_rmdir (struct inode * dir, const char * name, int len) |
len | 618 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 690 | fs/ext2/namei.c | int ext2_unlink (struct inode * dir, const char * name, int len) |
len | 702 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 753 | fs/ext2/namei.c | int ext2_symlink (struct inode * dir, const char * name, int len, |
len | 803 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 812 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 835 | fs/ext2/namei.c | const char * name, int len) |
len | 856 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de); |
len | 863 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 293 | fs/fat/dir.c | int len, slen; |
len | 303 | fs/fat/dir.c | len = name_len; |
len | 306 | fs/fat/dir.c | len = strlen(name); |
len | 308 | fs/fat/dir.c | if (len != name_len) { |
len | 309 | fs/fat/dir.c | memcpy_tofs(d2->d_name, name, len); |
len | 310 | fs/fat/dir.c | put_user(0, d2->d_name + len); |
len | 311 | fs/fat/dir.c | put_user(len, &d2->d_reclen); |
len | 314 | fs/fat/dir.c | slen = name_len - len; |
len | 315 | fs/fat/dir.c | memcpy_tofs(d1->d_name, name+len+1, slen); |
len | 321 | fs/fat/dir.c | memcpy_tofs(d1->d_name, name, len); |
len | 322 | fs/fat/dir.c | put_user(0, d1->d_name+len); |
len | 323 | fs/fat/dir.c | put_user(len, &d1->d_reclen); |
len | 326 | fs/fat/dir.c | d1, d2, len, name_len)); |
len | 363 | fs/hpfs/hpfs.h | unsigned char len, name[15]; /* true length, truncated name */ |
len | 242 | fs/hpfs/hpfs_fs.c | static int zerop(void *addr, unsigned len); |
len | 250 | fs/hpfs/hpfs_fs.c | const unsigned char *name, unsigned len, |
len | 258 | fs/hpfs/hpfs_fs.c | static unsigned choose_conv(unsigned char *p, unsigned len); |
len | 260 | fs/hpfs/hpfs_fs.c | unsigned len); |
len | 542 | fs/hpfs/hpfs_fs.c | static int zerop(void *addr, unsigned len) |
len | 545 | fs/hpfs/hpfs_fs.c | return p[0] == 0 && memcmp(p, p + 1, len - 1) == 0; |
len | 962 | fs/hpfs/hpfs_fs.c | static unsigned choose_conv(unsigned char *p, unsigned len) |
len | 969 | fs/hpfs/hpfs_fs.c | while (len--) { |
len | 972 | fs/hpfs/hpfs_fs.c | if (c == '\r' && len && *p == '\n') |
len | 994 | fs/hpfs/hpfs_fs.c | unsigned len) |
len | 998 | fs/hpfs/hpfs_fs.c | while (len--) { |
len | 1000 | fs/hpfs/hpfs_fs.c | if (c == '\r' && (len == 0 || *in == '\n')); |
len | 1119 | fs/hpfs/hpfs_fs.c | static int hpfs_lookup(struct inode *dir, const char *name, int len, |
len | 1140 | fs/hpfs/hpfs_fs.c | if (name[0] == '.' && len == 1) |
len | 1142 | fs/hpfs/hpfs_fs.c | else if (name[0] == '.' && name[1] == '.' && len == 2) |
len | 1147 | fs/hpfs/hpfs_fs.c | de = map_dirent(dir, dir->i_hpfs_dno, name, len, &qbh); |
len | 1242 | fs/hpfs/hpfs_fs.c | const unsigned char *name, unsigned len, |
len | 1271 | fs/hpfs/hpfs_fs.c | l = len < de->namelen ? len : de->namelen; |
len | 1278 | fs/hpfs/hpfs_fs.c | t = len - de->namelen; |
len | 1295 | fs/hpfs/hpfs_fs.c | name, len, qbh); |
len | 1352 | fs/hpfs/hpfs_fs.c | static void translate_hpfs_name(const unsigned char * from, int len, char * to, int lowercase) |
len | 1354 | fs/hpfs/hpfs_fs.c | while (len > 0) { |
len | 1356 | fs/hpfs/hpfs_fs.c | len--; |
len | 77 | fs/isofs/dir.c | static int isofs_name_translate(char * old, int len, char * new) |
len | 81 | fs/isofs/dir.c | for (i = 0; i < len; i++) { |
len | 89 | fs/isofs/dir.c | if (c == '.' && i == len - 3 && old[i + 1] == ';' && old[i + 2] == '1') |
len | 93 | fs/isofs/dir.c | if (c == ';' && i == len - 2 && old[i + 1] == '1') |
len | 117 | fs/isofs/dir.c | int len, rrflag; |
len | 224 | fs/isofs/dir.c | len = de->name_len[0]; |
len | 226 | fs/isofs/dir.c | rrflag = get_rock_ridge_filename(de, &name, &len, inode); |
len | 230 | fs/isofs/dir.c | rrflag = filldir(dirent, name, len, filp->f_pos, inode_number); |
len | 231 | fs/isofs/dir.c | dcache_add(inode, name, len, inode_number); |
len | 241 | fs/isofs/dir.c | len = isofs_name_translate(name, len, tmpname); |
len | 242 | fs/isofs/dir.c | if (filldir(dirent, tmpname, len, filp->f_pos, inode_number) < 0) |
len | 244 | fs/isofs/dir.c | dcache_add(inode, tmpname, len, inode_number); |
len | 249 | fs/isofs/dir.c | if (filldir(dirent, name, len, filp->f_pos, inode_number) < 0) |
len | 252 | fs/isofs/dir.c | dcache_add(inode, name, len, inode_number); |
len | 27 | fs/isofs/namei.c | static int isofs_match(int len,const char * name, const char * compare, int dlen) |
len | 36 | fs/isofs/namei.c | if (!len) |
len | 45 | fs/isofs/namei.c | if (len <= 2) printk("Match: %d %d %s %d %d \n",len,dlen,compare,de->name[0], dlen); |
len | 48 | fs/isofs/namei.c | if (dlen != len) |
len | 50 | fs/isofs/namei.c | return !memcmp(name, compare, len); |
len | 218 | fs/isofs/namei.c | int isofs_lookup(struct inode * dir,const char * name, int len, |
len | 225 | fs/isofs/namei.c | printk("lookup: %x %d\n",dir->i_ino, len); |
len | 238 | fs/isofs/namei.c | if (dcache_lookup(dir, name, len, &ino)) ino_back = dir->i_ino; |
len | 246 | fs/isofs/namei.c | && (lcname = kmalloc(len, GFP_KERNEL)) != NULL) { |
len | 250 | fs/isofs/namei.c | for (i=0; i<len; i++) { |
len | 255 | fs/isofs/namei.c | bh = isofs_find_entry(dir,lcname,len, &ino, &ino_back); |
len | 258 | fs/isofs/namei.c | bh = isofs_find_entry(dir,name,len, &ino, &ino_back); |
len | 265 | fs/isofs/namei.c | dcache_add(dir, name, len, ino); |
len | 84 | fs/isofs/rock.c | len = cont_size; \ |
len | 100 | fs/isofs/rock.c | int len; |
len | 115 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(de, chr, len); |
len | 121 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 123 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 125 | fs/isofs/rock.c | chr += rr->len; |
len | 126 | fs/isofs/rock.c | len -= rr->len; |
len | 173 | fs/isofs/rock.c | int len; |
len | 181 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(de, chr, len); |
len | 187 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 189 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 191 | fs/isofs/rock.c | chr += rr->len; |
len | 192 | fs/isofs/rock.c | len -= rr->len; |
len | 222 | fs/isofs/rock.c | if((strlen(retname) + rr->len - 5) >= 254) { |
len | 226 | fs/isofs/rock.c | strncat(retname, rr->u.NM.name, rr->len - 5); |
len | 227 | fs/isofs/rock.c | retnamlen += rr->len - 5; |
len | 256 | fs/isofs/rock.c | int len; |
len | 262 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(de, chr, len); |
len | 270 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 272 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 274 | fs/isofs/rock.c | chr += rr->len; |
len | 275 | fs/isofs/rock.c | len -= rr->len; |
len | 335 | fs/isofs/rock.c | slen = rr->len - 5; |
len | 342 | fs/isofs/rock.c | inode->i_size += slp->len; |
len | 357 | fs/isofs/rock.c | slen -= slp->len + 2; |
len | 358 | fs/isofs/rock.c | slp = (struct SL_component *) (((char *) slp) + slp->len + 2); |
len | 415 | fs/isofs/rock.c | int len; |
len | 457 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(raw_inode, chr, len); |
len | 460 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 463 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 465 | fs/isofs/rock.c | chr += rr->len; |
len | 466 | fs/isofs/rock.c | len -= rr->len; |
len | 478 | fs/isofs/rock.c | slen = rr->len - 5; |
len | 489 | fs/isofs/rock.c | strncat(rpnt,slp->text, slp->len); |
len | 504 | fs/isofs/rock.c | slen -= slp->len + 2; |
len | 505 | fs/isofs/rock.c | slp = (struct SL_component *) (((char *) slp) + slp->len + 2); |
len | 44 | fs/isofs/rock.h | unsigned char len; |
len | 87 | fs/isofs/rock.h | unsigned char len; |
len | 23 | fs/minix/namei.c | static inline int namecompare(int len, int maxlen, |
len | 26 | fs/minix/namei.c | if (len > maxlen) |
len | 28 | fs/minix/namei.c | if (len < maxlen && buffer[len]) |
len | 30 | fs/minix/namei.c | return !memcmp(name, buffer, len); |
len | 40 | fs/minix/namei.c | static int minix_match(int len, const char * name, |
len | 48 | fs/minix/namei.c | if (!de->inode || len > info->s_namelen) |
len | 51 | fs/minix/namei.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 53 | fs/minix/namei.c | return namecompare(len,info->s_namelen,name,de->name); |
len | 107 | fs/minix/namei.c | int minix_lookup(struct inode * dir,const char * name, int len, |
len | 121 | fs/minix/namei.c | if (!(bh = minix_find_entry(dir,name,len,&de))) { |
len | 211 | fs/minix/namei.c | int minix_create(struct inode * dir,const char * name, int len, int mode, |
len | 230 | fs/minix/namei.c | error = minix_add_entry(dir,name,len, &bh ,&de); |
len | 246 | fs/minix/namei.c | int minix_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
len | 255 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 287 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
len | 303 | fs/minix/namei.c | int minix_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 316 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 354 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
len | 430 | fs/minix/namei.c | int minix_rmdir(struct inode * dir, const char * name, int len) |
len | 438 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 487 | fs/minix/namei.c | int minix_unlink(struct inode * dir, const char * name, int len) |
len | 497 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 542 | fs/minix/namei.c | int minix_symlink(struct inode * dir, const char * name, int len, const char * symname) |
len | 572 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 581 | fs/minix/namei.c | i = minix_add_entry(dir, name, len, &bh, &de); |
len | 597 | fs/minix/namei.c | int minix_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
len | 613 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 620 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
len | 76 | fs/msdos/namei.c | static int msdos_format_name(char conv,const char *name,int len, |
len | 88 | fs/msdos/namei.c | if (name[0] == '.' && (len == 1 || (len == 2 && name[1] == '.'))) { |
len | 91 | fs/msdos/namei.c | while (len--) *res++ = '.'; |
len | 97 | fs/msdos/namei.c | name++; len--; |
len | 101 | fs/msdos/namei.c | for (walk = res; len && walk-res < 8; walk++) { |
len | 103 | fs/msdos/namei.c | len--; |
len | 118 | fs/msdos/namei.c | if (conv == 's' && len && c != '.') { |
len | 120 | fs/msdos/namei.c | len--; |
len | 123 | fs/msdos/namei.c | while (c != '.' && len--) c = *name++; |
len | 126 | fs/msdos/namei.c | while (len > 0 && walk-res < MSDOS_NAME) { |
len | 128 | fs/msdos/namei.c | len--; |
len | 139 | fs/msdos/namei.c | if (conv == 's' && len) return -EINVAL; |
len | 149 | fs/msdos/namei.c | static int msdos_find(struct inode *dir,const char *name,int len, |
len | 159 | fs/msdos/namei.c | name,len, msdos_name,1,dotsOK); |
len | 163 | fs/msdos/namei.c | switch(len){ |
len | 176 | fs/msdos/namei.c | int msdos_lookup(struct inode *dir,const char *name,int len, |
len | 194 | fs/msdos/namei.c | if (len == 1 && name[0] == '.') { |
len | 198 | fs/msdos/namei.c | if (len == 2 && name[0] == '.' && name[1] == '.') { |
len | 206 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) { |
len | 286 | fs/msdos/namei.c | int msdos_create(struct inode *dir,const char *name,int len,int mode, |
len | 296 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
len | 372 | fs/msdos/namei.c | int msdos_rmdir(struct inode *dir,const char *name,int len) |
len | 383 | fs/msdos/namei.c | if (name[0] == '.' && (len == 1 || (len == 2 && name[1] == '.'))) |
len | 385 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done; |
len | 411 | fs/msdos/namei.c | int msdos_mkdir(struct inode *dir,const char *name,int len,int mode) |
len | 420 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
len | 463 | fs/msdos/namei.c | if (msdos_rmdir(dir,name,len) < 0) |
len | 473 | fs/msdos/namei.c | int len, |
len | 484 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) |
len | 512 | fs/msdos/namei.c | int msdos_unlink(struct inode *dir,const char *name,int len) |
len | 514 | fs/msdos/namei.c | return msdos_unlinkx (dir,name,len,1); |
len | 518 | fs/msdos/namei.c | int msdos_unlink_umsdos(struct inode *dir,const char *name,int len) |
len | 520 | 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 | 48 | fs/ncpfs/dir.c | int len, struct inode **result); |
len | 51 | fs/ncpfs/dir.c | ncp_create(struct inode *dir, const char *name, int len, int mode, |
len | 55 | fs/ncpfs/dir.c | ncp_mkdir(struct inode *dir, const char *name, int len, int mode); |
len | 58 | fs/ncpfs/dir.c | ncp_rmdir(struct inode *dir, const char *name, int len); |
len | 61 | fs/ncpfs/dir.c | ncp_unlink(struct inode *dir, const char *name, int len); |
len | 626 | fs/ncpfs/dir.c | ncp_lookup(struct inode *dir, const char *__name, int len, |
len | 633 | fs/ncpfs/dir.c | char name[len+1]; |
len | 644 | fs/ncpfs/dir.c | DDPRINTK("ncp_lookup: %s, len %d\n", __name, len); |
len | 649 | fs/ncpfs/dir.c | if (len == 0 || (len == 1 && __name[0] == '.')) |
len | 656 | fs/ncpfs/dir.c | if (len == 2 && __name[0] == '.' && __name[1] == '.') |
len | 677 | fs/ncpfs/dir.c | memcpy(name, __name, len); |
len | 678 | fs/ncpfs/dir.c | name[len] = 0; |
len | 761 | fs/ncpfs/dir.c | ncp_create(struct inode *dir, const char *name, int len, int mode, |
len | 765 | fs/ncpfs/dir.c | __u8 _name[len+1]; |
len | 776 | fs/ncpfs/dir.c | strncpy(_name, name, len); |
len | 777 | fs/ncpfs/dir.c | _name[len] = '\0'; |
len | 807 | fs/ncpfs/dir.c | ncp_mkdir(struct inode *dir, const char *name, int len, int mode) |
len | 811 | fs/ncpfs/dir.c | __u8 _name[len+1]; |
len | 814 | fs/ncpfs/dir.c | && ( (len == 1) |
len | 815 | fs/ncpfs/dir.c | || ( (len == 2) |
len | 821 | fs/ncpfs/dir.c | strncpy(_name, name, len); |
len | 822 | fs/ncpfs/dir.c | _name[len] = '\0'; |
len | 850 | fs/ncpfs/dir.c | ncp_rmdir(struct inode *dir, const char *name, int len) |
len | 853 | fs/ncpfs/dir.c | __u8 _name[len+1]; |
len | 868 | fs/ncpfs/dir.c | strncpy(_name, name, len); |
len | 869 | fs/ncpfs/dir.c | _name[len] = '\0'; |
len | 888 | fs/ncpfs/dir.c | ncp_unlink(struct inode *dir, const char *name, int len) |
len | 891 | fs/ncpfs/dir.c | __u8 _name[len+1]; |
len | 905 | fs/ncpfs/dir.c | strncpy(_name, name, len); |
len | 906 | fs/ncpfs/dir.c | _name[len] = '\0'; |
len | 69 | fs/ncpfs/ncplib_kernel.c | int len = strlen(s); |
len | 71 | fs/ncpfs/ncplib_kernel.c | if (len > 255) |
len | 74 | fs/ncpfs/ncplib_kernel.c | len = 255; |
len | 76 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, len); |
len | 77 | fs/ncpfs/ncplib_kernel.c | ncp_add_mem(server, s, len); |
len | 151 | fs/ncpfs/ncplib_kernel.c | int len; |
len | 172 | fs/ncpfs/ncplib_kernel.c | len = ncp_reply_byte(server, 29); |
len | 173 | fs/ncpfs/ncplib_kernel.c | if (len > NCP_VOLNAME_LEN) |
len | 175 | fs/ncpfs/ncplib_kernel.c | DPRINTK("ncpfs: volume name too long: %d\n", len); |
len | 180 | fs/ncpfs/ncplib_kernel.c | memcpy(&(target->volume_name), ncp_reply_data(server, 30), len); |
len | 52 | fs/ncpfs/sock.c | int len, int nonblock, unsigned flags, |
len | 60 | fs/ncpfs/sock.c | iov.iov_len = len; |
len | 68 | fs/ncpfs/sock.c | return sock->ops->sendmsg(sock, &msg, len, nonblock, flags); |
len | 73 | fs/ncpfs/sock.c | ncp_wdog_data_ready(struct sock *sk, int len) |
len | 24 | fs/nfs/dir.c | static int nfs_lookup(struct inode *dir, const char *name, int len, |
len | 26 | fs/nfs/dir.c | static int nfs_create(struct inode *dir, const char *name, int len, int mode, |
len | 28 | fs/nfs/dir.c | static int nfs_mkdir(struct inode *dir, const char *name, int len, int mode); |
len | 29 | fs/nfs/dir.c | static int nfs_rmdir(struct inode *dir, const char *name, int len); |
len | 30 | fs/nfs/dir.c | static int nfs_unlink(struct inode *dir, const char *name, int len); |
len | 31 | fs/nfs/dir.c | static int nfs_symlink(struct inode *inode, const char *name, int len, |
len | 34 | fs/nfs/dir.c | const char *name, int len); |
len | 35 | fs/nfs/dir.c | static int nfs_mknod(struct inode *dir, const char *name, int len, int mode, |
len | 329 | fs/nfs/dir.c | static int nfs_lookup(struct inode *dir, const char *__name, int len, |
len | 334 | fs/nfs/dir.c | char name[len > NFS_MAXNAMLEN? 1 : len+1]; |
len | 343 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 347 | fs/nfs/dir.c | memcpy(name,__name,len); |
len | 348 | fs/nfs/dir.c | name[len] = '\0'; |
len | 349 | fs/nfs/dir.c | if (len == 1 && name[0] == '.') { /* cheat for "." */ |
len | 370 | fs/nfs/dir.c | static int nfs_create(struct inode *dir, const char *name, int len, int mode, |
len | 384 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 405 | fs/nfs/dir.c | static int nfs_mknod(struct inode *dir, const char *name, int len, |
len | 418 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 437 | fs/nfs/dir.c | static int nfs_mkdir(struct inode *dir, const char *name, int len, int mode) |
len | 449 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 464 | fs/nfs/dir.c | static int nfs_rmdir(struct inode *dir, const char *name, int len) |
len | 473 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 484 | fs/nfs/dir.c | static int nfs_unlink(struct inode *dir, const char *name, int len) |
len | 493 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 504 | fs/nfs/dir.c | static int nfs_symlink(struct inode *dir, const char *name, int len, |
len | 515 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 533 | fs/nfs/dir.c | const char *name, int len) |
len | 549 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 70 | fs/nfs/file.c | int len; /* size of data */ |
len | 123 | fs/nfs/file.c | && (cache[i].file_pos + cache[i].len >= pos + count) |
len | 181 | fs/nfs/file.c | cache[tail].len = result; |
len | 914 | fs/nfs/nfsroot.c | int len, status, *p; |
len | 923 | fs/nfs/nfsroot.c | len = strlen(nfs_path); |
len | 924 | fs/nfs/nfsroot.c | *p++ = htonl(len); |
len | 925 | fs/nfs/nfsroot.c | memcpy(p, nfs_path, len); |
len | 926 | fs/nfs/nfsroot.c | len = (len + 3) >> 2; |
len | 927 | fs/nfs/nfsroot.c | p[len] = 0; |
len | 928 | fs/nfs/nfsroot.c | p += len; |
len | 97 | fs/nfs/proc.c | #define QUADLEN(len) (((len) + 3) >> 2) |
len | 113 | fs/nfs/proc.c | int len = strlen(string); |
len | 114 | fs/nfs/proc.c | int quadlen = QUADLEN(len); |
len | 117 | fs/nfs/proc.c | *p++ = htonl(len); |
len | 118 | fs/nfs/proc.c | memcpy(p, string, len); |
len | 124 | fs/nfs/proc.c | unsigned int len = ntohl(*p++); |
len | 125 | fs/nfs/proc.c | if (len > maxlen) |
len | 127 | fs/nfs/proc.c | memcpy(string, p, len); |
len | 128 | fs/nfs/proc.c | string[len] = '\0'; |
len | 129 | fs/nfs/proc.c | return p + QUADLEN(len); |
len | 132 | fs/nfs/proc.c | static inline int *xdr_decode_string2(int *p, char **string, unsigned int *len, |
len | 135 | fs/nfs/proc.c | *len = ntohl(*p++); |
len | 136 | fs/nfs/proc.c | if (*len > maxlen) |
len | 139 | fs/nfs/proc.c | return p + QUADLEN(*len); |
len | 143 | fs/nfs/proc.c | static inline int *xdr_encode_data(int *p, const char *data, int len) |
len | 145 | fs/nfs/proc.c | int quadlen = QUADLEN(len); |
len | 148 | fs/nfs/proc.c | *p++ = htonl(len); |
len | 149 | fs/nfs/proc.c | memcpy_fromfs(p, data, len); |
len | 156 | fs/nfs/proc.c | unsigned len = *lenp = ntohl(*p++); |
len | 157 | fs/nfs/proc.c | if (len > maxlen) |
len | 160 | fs/nfs/proc.c | memcpy_tofs(data, p, len); |
len | 162 | fs/nfs/proc.c | memcpy(data, p, len); |
len | 163 | fs/nfs/proc.c | return p + QUADLEN(len); |
len | 341 | fs/nfs/proc.c | int **p0, char **string, unsigned int *len, unsigned int maxlen) |
len | 357 | fs/nfs/proc.c | if (!(p = xdr_decode_string2(p, string, len, maxlen))) { |
len | 381 | fs/nfs/proc.c | int len; |
len | 400 | fs/nfs/proc.c | if (!(p = xdr_decode_data(p, data, &len, count, fs))) { |
len | 405 | fs/nfs/proc.c | status = len; |
len | 406 | fs/nfs/proc.c | PRINTK("NFS reply read %d\n", len); |
len | 85 | fs/nfs/rpcsock.c | rpc_sendmsg(struct rpc_sock *rsock, struct msghdr *msg, int len) |
len | 91 | fs/nfs/rpcsock.c | dprintk(("RPC: sending %d bytes (buf %p)\n", len, msg->msg_iov[0].iov_base)); |
len | 94 | fs/nfs/rpcsock.c | result = sock->ops->sendmsg(sock, msg, len, 0, 0); |
len | 133 | fs/nfs/rpcsock.c | rpc_recvmsg(struct rpc_sock *rsock, struct msghdr *msg, int len,int flags) |
len | 141 | fs/nfs/rpcsock.c | dprintk(("RPC: receiving %d bytes max (buf %p)\n", len, msg->msg_iov[0].iov_base)); |
len | 144 | fs/nfs/rpcsock.c | result = sock->ops->recvmsg(sock, msg, len, 1, flags, &alen); |
len | 253 | fs/nfs/rpcsock.c | iov.iov_len=rovr->len; |
len | 255 | fs/nfs/rpcsock.c | result = rpc_recvmsg(rsock, &msg, rovr->len, 0); |
len | 313 | fs/nfs/rpcsock.c | slot->len = rlen; |
len | 52 | fs/nfs/symlink.c | unsigned int len; |
len | 75 | fs/nfs/symlink.c | &res, &len, NFS_MAXPATHLEN); |
len | 85 | fs/nfs/symlink.c | memcpy(res2, res, len); |
len | 86 | fs/nfs/symlink.c | res2[len] = '\0'; |
len | 99 | fs/nfs/symlink.c | unsigned int len; |
len | 109 | fs/nfs/symlink.c | &res, &len, buflen); |
len | 112 | fs/nfs/symlink.c | memcpy_tofs(buffer, res, len); |
len | 113 | fs/nfs/symlink.c | put_user('\0', buffer + len); |
len | 114 | fs/nfs/symlink.c | error = len; |
len | 195 | fs/proc/array.c | int i, len; |
len | 200 | fs/proc/array.c | len = sprintf(buffer, |
len | 230 | fs/proc/array.c | len += sprintf(buffer + len, " %u", kstat.interrupts[i]); |
len | 231 | fs/proc/array.c | len += sprintf(buffer + len, |
len | 236 | fs/proc/array.c | return len; |
len | 714 | fs/proc/array.c | int len; |
len | 732 | fs/proc/array.c | len = sprintf(line, MAPS_LINE_FORMAT, |
len | 736 | fs/proc/array.c | if (column >= len) { |
len | 743 | fs/proc/array.c | i = len-column; |
len | 749 | fs/proc/array.c | if (column >= len) { |
len | 55 | fs/proc/fd.c | static int proc_lookupfd(struct inode * dir, const char * name, int len, |
len | 74 | fs/proc/fd.c | if (!len || (name[0] == '.' && (len == 1 || |
len | 75 | fs/proc/fd.c | (name[1] == '.' && len == 2)))) { |
len | 76 | fs/proc/fd.c | if (len < 2) { |
len | 89 | fs/proc/fd.c | while (len-- > 0) { |
len | 225 | fs/proc/root.c | int len; |
len | 229 | fs/proc/root.c | len = 1 + sprintf(tmp, "%d", current->pid); |
len | 230 | fs/proc/root.c | if (buflen < len) |
len | 231 | fs/proc/root.c | len = buflen; |
len | 232 | fs/proc/root.c | memcpy_tofs(buffer, tmp, len); |
len | 233 | fs/proc/root.c | return len; |
len | 377 | fs/proc/root.c | int proc_match(int len,const char * name,struct proc_dir_entry * de) |
len | 382 | fs/proc/root.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 384 | fs/proc/root.c | if (de->namelen != len) |
len | 386 | fs/proc/root.c | return !memcmp(name, de->name, len); |
len | 389 | fs/proc/root.c | int proc_lookup(struct inode * dir,const char * name, int len, |
len | 409 | fs/proc/root.c | if (!len) |
len | 412 | fs/proc/root.c | if (len == 1) |
len | 414 | fs/proc/root.c | if (name[1] == '.' && len == 2) { |
len | 427 | fs/proc/root.c | if (proc_match(len, name, de)) |
len | 445 | fs/proc/root.c | static int proc_root_lookup(struct inode * dir,const char * name, int len, |
len | 452 | fs/proc/root.c | retval = proc_lookup(dir, name, len, result); |
len | 459 | fs/proc/root.c | while (len-- > 0) { |
len | 82 | fs/proc/scsi.c | int len, pos, begin; |
len | 85 | fs/proc/scsi.c | pos = len = sprintf(buffer, |
len | 88 | fs/proc/scsi.c | len = 0; |
len | 93 | fs/proc/scsi.c | len -= (offset - begin); |
len | 94 | fs/proc/scsi.c | if(len > length) |
len | 95 | fs/proc/scsi.c | len = length; |
len | 97 | fs/proc/scsi.c | return(len); |
len | 236 | fs/read_write.c | int len, nr; |
len | 239 | fs/read_write.c | len = vector->iov_len; |
len | 242 | fs/read_write.c | nr = fn(inode, file, base, len); |
len | 250 | fs/read_write.c | if (nr != len) |
len | 29 | fs/smbfs/dir.c | get_pname(struct inode *dir, const char *name, int len, |
len | 33 | fs/smbfs/dir.c | get_pname_static(struct inode *dir, const char *name, int len, |
len | 47 | fs/smbfs/dir.c | int len, struct inode **result); |
len | 50 | fs/smbfs/dir.c | smb_create(struct inode *dir, const char *name, int len, int mode, |
len | 54 | fs/smbfs/dir.c | smb_mkdir(struct inode *dir, const char *name, int len, int mode); |
len | 57 | fs/smbfs/dir.c | smb_rmdir(struct inode *dir, const char *name, int len); |
len | 60 | fs/smbfs/dir.c | smb_unlink(struct inode *dir, const char *name, int len); |
len | 261 | fs/smbfs/dir.c | int len; |
len | 265 | fs/smbfs/dir.c | len = strlen(entry->path); |
len | 266 | fs/smbfs/dir.c | if ((result = get_pname_static(inode, entry->path, len, |
len | 283 | fs/smbfs/dir.c | if (filldir(dirent, entry->path, len, |
len | 343 | fs/smbfs/dir.c | get_pname_static(struct inode *dir, const char *name, int len, |
len | 347 | fs/smbfs/dir.c | int parentlen = SMB_INOP(dir)->finfo.len; |
len | 360 | fs/smbfs/dir.c | if (len > SMB_MAXNAMELEN) { |
len | 365 | fs/smbfs/dir.c | if (len == 0 || (len == 1 && name[0] == '.')) { |
len | 373 | fs/smbfs/dir.c | if (len == 2 && name[0] == '.' && name[1] == '.') { |
len | 395 | fs/smbfs/dir.c | len = pos - parentname; |
len | 397 | fs/smbfs/dir.c | memcpy(path, parentname, len); |
len | 398 | fs/smbfs/dir.c | path[len] = '\0'; |
len | 402 | fs/smbfs/dir.c | if (len + parentlen + 2 > SMB_MAXPATHLEN) |
len | 407 | fs/smbfs/dir.c | memcpy(path + parentlen + 1, name, len); |
len | 408 | fs/smbfs/dir.c | path[parentlen + 1 + len] = '\0'; |
len | 409 | fs/smbfs/dir.c | len = parentlen + len + 1; |
len | 424 | fs/smbfs/dir.c | *res_len = len; |
len | 432 | fs/smbfs/dir.c | get_pname(struct inode *dir, const char *name, int len, |
len | 439 | fs/smbfs/dir.c | if ((res = get_pname_static(dir,name,len,result,&result_len) != 0)) { |
len | 468 | fs/smbfs/dir.c | int error, len; |
len | 482 | fs/smbfs/dir.c | len = strlen(path); |
len | 486 | fs/smbfs/dir.c | path, len, &newent); |
len | 511 | fs/smbfs/dir.c | new_inode_info->finfo.len = len; |
len | 549 | fs/smbfs/dir.c | smb_kfree_s(i->finfo.path, i->finfo.len+1); |
len | 565 | fs/smbfs/dir.c | root->finfo.len = strlen(root->finfo.path); |
len | 581 | fs/smbfs/dir.c | if (root->finfo.len == 0) { |
len | 587 | fs/smbfs/dir.c | root->finfo.path, root->finfo.len, |
len | 658 | fs/smbfs/dir.c | smb_lookup(struct inode *dir, const char *__name, int len, |
len | 678 | fs/smbfs/dir.c | if (len == 0 || (len == 1 && __name[0] == '.')) { |
len | 684 | fs/smbfs/dir.c | if ((error = get_pname(dir, __name, len, &name, &len)) < 0) { |
len | 742 | fs/smbfs/dir.c | error = smb_proc_getattr(SMB_SERVER(dir), name, len, &finfo); |
len | 762 | fs/smbfs/dir.c | smb_create(struct inode *dir, const char *name, int len, int mode, |
len | 778 | fs/smbfs/dir.c | if ((error = get_pname(dir, name, len, &path, &len)) < 0) { |
len | 789 | fs/smbfs/dir.c | error = smb_proc_create(SMB_SERVER(dir), path, len, &entry); |
len | 808 | fs/smbfs/dir.c | smb_mkdir(struct inode *dir, const char *name, int len, int mode) |
len | 820 | fs/smbfs/dir.c | if ((error = get_pname_static(dir, name, len, path, &len)) < 0) { |
len | 825 | fs/smbfs/dir.c | if ((error = smb_proc_mkdir(SMB_SERVER(dir), path, len)) == 0) { |
len | 834 | fs/smbfs/dir.c | smb_rmdir(struct inode *dir, const char *name, int len) |
len | 844 | fs/smbfs/dir.c | if ((error = get_pname_static(dir, name, len, path, &len)) < 0) { |
len | 851 | fs/smbfs/dir.c | if ((error = smb_proc_rmdir(SMB_SERVER(dir), path, len)) == 0) |
len | 859 | fs/smbfs/dir.c | smb_unlink(struct inode *dir, const char *name, int len) |
len | 869 | fs/smbfs/dir.c | if ((error = get_pname_static(dir, name, len, path, &len)) < 0) { |
len | 876 | fs/smbfs/dir.c | if ((error = smb_proc_unlink(SMB_SERVER(dir), path, len)) == 0) |
len | 49 | fs/smbfs/file.c | dirent->path, dirent->len, |
len | 71 | fs/smbfs/proc.c | smb_encode_smb_length(byte *p, dword len) |
len | 74 | fs/smbfs/proc.c | p[2] = (len & 0xFF00) >> 8; |
len | 75 | fs/smbfs/proc.c | p[3] = (len & 0xFF); |
len | 76 | fs/smbfs/proc.c | if (len > 0xFFFF) |
len | 82 | fs/smbfs/proc.c | smb_encode_dialect(byte *p, const byte *name, int len) |
len | 86 | fs/smbfs/proc.c | return p + len + 1; |
len | 90 | fs/smbfs/proc.c | smb_encode_ascii(byte *p, const byte *name, int len) |
len | 94 | fs/smbfs/proc.c | return p + len + 1; |
len | 98 | fs/smbfs/proc.c | smb_encode_vblock(byte *p, const byte *data, word len, int fs) |
len | 101 | fs/smbfs/proc.c | p = smb_encode_word(p, len); |
len | 103 | fs/smbfs/proc.c | memcpy_fromfs(p, data, len); |
len | 105 | fs/smbfs/proc.c | memcpy(p, data, len); |
len | 106 | fs/smbfs/proc.c | return p + len; |
len | 112 | fs/smbfs/proc.c | word len; |
len | 119 | fs/smbfs/proc.c | len = WVAL(p, 1); |
len | 123 | fs/smbfs/proc.c | memcpy_tofs(data, p, len); |
len | 125 | fs/smbfs/proc.c | memcpy(data, p, len); |
len | 127 | fs/smbfs/proc.c | *data_len = len; |
len | 129 | fs/smbfs/proc.c | return p + len; |
len | 135 | fs/smbfs/proc.c | int len, pad = 0; |
len | 137 | fs/smbfs/proc.c | len = strlen(name); |
len | 139 | fs/smbfs/proc.c | if (len < 16) |
len | 140 | fs/smbfs/proc.c | pad = 16 - len; |
len | 142 | fs/smbfs/proc.c | *p ++ = 2 * (len + pad); |
len | 351 | fs/smbfs/proc.c | int i, j, len; |
len | 358 | fs/smbfs/proc.c | len = smb_len(packet), smb_valid_packet(packet)); |
len | 368 | fs/smbfs/proc.c | if (len > 100) |
len | 369 | fs/smbfs/proc.c | len = 100; |
len | 371 | fs/smbfs/proc.c | for (i = 0; i < len; i += 10) { |
len | 374 | fs/smbfs/proc.c | if (j < len) |
len | 380 | fs/smbfs/proc.c | if (j < len) |
len | 534 | fs/smbfs/proc.c | smb_proc_open(struct smb_server *server, const char *pathname, int len, |
len | 547 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBopen, 2, 2 + len); |
len | 550 | fs/smbfs/proc.c | smb_encode_ascii(p, pathname, len); |
len | 563 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBopen, 2, 2 + len); |
len | 566 | fs/smbfs/proc.c | smb_encode_ascii(p, pathname, len); |
len | 760 | fs/smbfs/proc.c | smb_proc_do_create(struct smb_server *server, const char *path, int len, |
len | 769 | fs/smbfs/proc.c | p = smb_setup_header(server, command, 3, len + 2); |
len | 772 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
len | 792 | fs/smbfs/proc.c | smb_proc_create(struct smb_server *server, const char *path, int len, |
len | 795 | fs/smbfs/proc.c | return smb_proc_do_create(server, path, len, entry, SMBcreate); |
len | 799 | fs/smbfs/proc.c | smb_proc_mknew(struct smb_server *server, const char *path, int len, |
len | 802 | fs/smbfs/proc.c | return smb_proc_do_create(server, path, len, entry, SMBmknew); |
len | 832 | fs/smbfs/proc.c | smb_proc_mkdir(struct smb_server *server, const char *path, const int len) |
len | 840 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBmkdir, 0, 2 + len); |
len | 841 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
len | 853 | fs/smbfs/proc.c | smb_proc_rmdir(struct smb_server *server, const char *path, const int len) |
len | 861 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBrmdir, 0, 2 + len); |
len | 862 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
len | 874 | fs/smbfs/proc.c | smb_proc_unlink(struct smb_server *server, const char *path, const int len) |
len | 883 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBunlink, 1, 2 + len); |
len | 885 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
len | 1081 | fs/smbfs/proc.c | finfo->len = strlen(finfo->path); |
len | 1096 | fs/smbfs/proc.c | finfo->len = strlen(finfo->path); |
len | 1132 | fs/smbfs/proc.c | finfo->len = namelen; |
len | 1384 | fs/smbfs/proc.c | smb_proc_getattr_core(struct smb_server *server, const char *path, int len, |
len | 1396 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBgetatr, 0, 2 + len); |
len | 1397 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
len | 1443 | fs/smbfs/proc.c | smb_proc_getattr(struct smb_server *server, const char *path, int len, |
len | 1451 | fs/smbfs/proc.c | if ((result=smb_proc_open(server,path,len, |
len | 1455 | fs/smbfs/proc.c | return smb_proc_getattr_core(server,path,len,entry); |
len | 1470 | fs/smbfs/proc.c | return smb_proc_getattr_core(server, path, len, entry); |
len | 1479 | fs/smbfs/proc.c | const char *path, int len, |
len | 1489 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBsetatr, 8, 4 + len); |
len | 1492 | fs/smbfs/proc.c | p = smb_encode_ascii(p, path, len); |
len | 1546 | fs/smbfs/proc.c | return smb_proc_setattr_core(server, finfo->path, finfo->len, |
len | 47 | fs/smbfs/sock.c | static int _send(struct socket *sock, const void *buff, int len, int nonblock, unsigned flags) { |
len | 52 | fs/smbfs/sock.c | iov.iov_len = len; |
len | 60 | fs/smbfs/sock.c | return sock->ops->sendmsg(sock, &msg, len, nonblock, flags); |
len | 64 | fs/smbfs/sock.c | smb_data_callback(struct sock *sk,int len) |
len | 216 | fs/smbfs/sock.c | int len, result; |
len | 257 | fs/smbfs/sock.c | len = smb_len(peek_buf); |
len | 258 | fs/smbfs/sock.c | if (len > max_raw_length) { |
len | 260 | fs/smbfs/sock.c | len, max_raw_length); |
len | 271 | fs/smbfs/sock.c | while (already_read < len) { |
len | 275 | fs/smbfs/sock.c | len - already_read, 0, 0, |
len | 496 | fs/smbfs/sock.c | int len, result, result2; |
len | 515 | fs/smbfs/sock.c | len = smb_len(buffer) + 4; |
len | 517 | fs/smbfs/sock.c | DDPRINTK("smb_request: len = %d cmd = 0x%X\n", len, buffer[8]); |
len | 524 | fs/smbfs/sock.c | result = _send(sock, (void *)buffer, len, 0, 0); |
len | 564 | fs/smbfs/sock.c | int len, result, result2; |
len | 583 | fs/smbfs/sock.c | len = smb_len(buffer) + 4; |
len | 590 | fs/smbfs/sock.c | DDPRINTK("smb_request: len = %d cmd = 0x%X\n", len, buffer[8]); |
len | 592 | fs/smbfs/sock.c | result = _send(sock, (void *)buffer, len, 0, 0); |
len | 628 | fs/smbfs/sock.c | int len, result, result2; |
len | 649 | fs/smbfs/sock.c | len = smb_len(buffer) + 4; |
len | 657 | fs/smbfs/sock.c | len, buffer[8]); |
len | 663 | fs/smbfs/sock.c | result = _send(sock, (void *)buffer, len, 0, 0); |
len | 209 | fs/super.c | int err, len; |
len | 218 | fs/super.c | len = strlen(tmp->name) + 1; |
len | 219 | fs/super.c | err = verify_area(VERIFY_WRITE, buf, len); |
len | 222 | fs/super.c | memcpy_tofs(buf, tmp->name, len); |
len | 268 | fs/super.c | int len = 0; |
len | 270 | fs/super.c | while ( tmp && len < PAGE_SIZE - 80 ) |
len | 272 | fs/super.c | len += sprintf( buf + len, "%s %s %s %s", |
len | 275 | fs/super.c | len += sprintf( buf + len, " 0 0\n" ); |
len | 279 | fs/super.c | return len; |
len | 284 | fs/super.c | int len = 0; |
len | 288 | fs/super.c | while (tmp && len < PAGE_SIZE - 80) { |
len | 289 | fs/super.c | len += sprintf(buf+len, "%s\t%s\n", |
len | 294 | fs/super.c | return len; |
len | 25 | fs/sysv/namei.c | static inline int namecompare(int len, int maxlen, |
len | 28 | fs/sysv/namei.c | if (len > maxlen) |
len | 30 | fs/sysv/namei.c | if (len < maxlen && buffer[len]) |
len | 32 | fs/sysv/namei.c | return !memcmp(name, buffer, len); |
len | 42 | fs/sysv/namei.c | static int sysv_match(int len, const char * name, struct sysv_dir_entry * de) |
len | 44 | fs/sysv/namei.c | if (!de->inode || len > SYSV_NAMELEN) |
len | 47 | fs/sysv/namei.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 49 | fs/sysv/namei.c | return namecompare(len,SYSV_NAMELEN,name,de->name); |
len | 103 | fs/sysv/namei.c | int sysv_lookup(struct inode * dir,const char * name, int len, |
len | 117 | fs/sysv/namei.c | if (!(bh = sysv_find_entry(dir,name,len,&de))) { |
len | 204 | fs/sysv/namei.c | int sysv_create(struct inode * dir,const char * name, int len, int mode, |
len | 223 | fs/sysv/namei.c | error = sysv_add_entry(dir,name,len, &bh ,&de); |
len | 239 | fs/sysv/namei.c | int sysv_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
len | 248 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 280 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
len | 296 | fs/sysv/namei.c | int sysv_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 307 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 345 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
len | 422 | fs/sysv/namei.c | int sysv_rmdir(struct inode * dir, const char * name, int len) |
len | 430 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 478 | fs/sysv/namei.c | int sysv_unlink(struct inode * dir, const char * name, int len) |
len | 488 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 532 | fs/sysv/namei.c | int sysv_symlink(struct inode * dir, const char * name, int len, const char * symname) |
len | 567 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 576 | fs/sysv/namei.c | i = sysv_add_entry(dir, name, len, &bh, &de); |
len | 592 | fs/sysv/namei.c | int sysv_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
len | 608 | fs/sysv/namei.c | bh = sysv_find_entry(dir,name,len,&de); |
len | 615 | fs/sysv/namei.c | error = sysv_add_entry(dir, name, len, &bh, &de); |
len | 197 | fs/umsdos/dir.c | ,info.fake.len,&inode); |
len | 602 | fs/umsdos/dir.c | int len) |
len | 612 | fs/umsdos/dir.c | && len == 3 |
len | 622 | fs/umsdos/dir.c | int len, |
len | 629 | fs/umsdos/dir.c | if (len == 1 && name[0] == '.'){ |
len | 633 | fs/umsdos/dir.c | }else if (len == 2 && name[0] == '.' && name[1] == '.'){ |
len | 665 | fs/umsdos/dir.c | }else if (umsdos_is_pseudodos(dir,name,len)){ |
len | 675 | fs/umsdos/dir.c | ret = umsdos_parse (name,len,&info); |
len | 678 | fs/umsdos/dir.c | ,info.fake.len)); |
len | 690 | fs/umsdos/dir.c | ret = umsdos_real_lookup (dir,info.fake.fname,info.fake.len,result); |
len | 731 | fs/umsdos/dir.c | int len, |
len | 734 | fs/umsdos/dir.c | return umsdos_lookup_x(dir,name,len,result,0); |
len | 763 | fs/umsdos/dir.c | int len; |
len | 765 | fs/umsdos/dir.c | len = (int)(pt - start); |
len | 769 | fs/umsdos/dir.c | ret = umsdos_rlookup_x(dir,start,len,result,1); |
len | 771 | fs/umsdos/dir.c | ret = umsdos_lookup_x(dir,start,len,result,1); |
len | 71 | fs/umsdos/inode.c | int len, |
len | 76 | fs/umsdos/inode.c | ret = msdos_lookup (dir,name,len,result); |
len | 157 | fs/umsdos/ioctl.c | ,info.fake.fname,info.fake.len+1); |
len | 74 | fs/umsdos/mangle.c | char *pt = info->fake.fname + info->fake.len; |
len | 99 | fs/umsdos/mangle.c | info->fake.len += 4; |
len | 108 | fs/umsdos/mangle.c | int umsdos_evalrecsize (int len) |
len | 111 | fs/umsdos/mangle.c | int nbrec = 1+((len-1+(dirent.name-(char*)&dirent)) |
len | 120 | fs/umsdos/mangle.c | int umsdos_evalrecsize_old (int len) |
len | 123 | fs/umsdos/mangle.c | int size = len + (dirent.name-(char*)&dirent); |
len | 136 | fs/umsdos/mangle.c | int len, |
len | 145 | fs/umsdos/mangle.c | if (len > UMSDOS_MAXNAME) len = UMSDOS_MAXNAME; |
len | 153 | fs/umsdos/mangle.c | int msdos_len = len; |
len | 192 | fs/umsdos/mangle.c | if (len<=(8+1+3)){ |
len | 194 | fs/umsdos/mangle.c | const char *endpt = fname + len; |
len | 255 | fs/umsdos/mangle.c | || (firstpt == NULL && len > 8) |
len | 256 | fs/umsdos/mangle.c | || (len == UMSDOS_EMD_NAMELEN |
len | 302 | fs/umsdos/mangle.c | strncpy (info->fake.fname,fname,len); |
len | 304 | fs/umsdos/mangle.c | base_len = firstpt != NULL ? (int)(firstpt - fname) : len; |
len | 373 | fs/umsdos/mangle.c | info->fake.len = msdos_len; |
len | 375 | fs/umsdos/mangle.c | memcpy (info->entry.name,fname,len); |
len | 376 | fs/umsdos/mangle.c | info->entry.name_len = len; |
len | 382 | fs/umsdos/mangle.c | info->recsize = umsdos_evalrecsize (len); |
len | 161 | fs/umsdos/namei.c | int len, |
len | 165 | fs/umsdos/namei.c | if (umsdos_is_pseudodos(dir,name,len)){ |
len | 176 | fs/umsdos/namei.c | && (len == 1 || (len == 2 && name[1] == '.'))){ |
len | 202 | fs/umsdos/namei.c | int len, /* Length of the name */ |
len | 210 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EEXIST); |
len | 213 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
len | 229 | fs/umsdos/namei.c | ret = msdos_create (dir,info.fake.fname,info.fake.len |
len | 348 | fs/umsdos/namei.c | PRINTK (("ret %d %d ",ret,new_info.fake.len)); |
len | 354 | fs/umsdos/namei.c | ,old_info.fake.fname,old_info.fake.len |
len | 356 | fs/umsdos/namei.c | ,new_info.fake.fname,new_info.fake.len); |
len | 423 | fs/umsdos/namei.c | int len, |
len | 442 | fs/umsdos/namei.c | ret = umsdos_create_any (dir,name,len,mode,0,flags,&inode); |
len | 445 | fs/umsdos/namei.c | int len = strlen(symname); |
len | 449 | fs/umsdos/namei.c | ret = umsdos_file_write_kmem (inode,&filp,symname,len); |
len | 452 | fs/umsdos/namei.c | if (ret != len){ |
len | 461 | fs/umsdos/namei.c | UMSDOS_unlink (dir,name,len); |
len | 476 | fs/umsdos/namei.c | int len, |
len | 479 | fs/umsdos/namei.c | return umsdos_symlink_x (dir,name,len,symname,S_IFLNK|0777,0); |
len | 488 | fs/umsdos/namei.c | int len) |
len | 567 | fs/umsdos/namei.c | }else if ((ret = umsdos_nevercreat(dir,name,len,-EPERM))==0){ |
len | 617 | fs/umsdos/namei.c | ret = umsdos_symlink_x (dir,name,len |
len | 634 | fs/umsdos/namei.c | ret = umsdos_symlink_x (dir,name,len,path |
len | 667 | fs/umsdos/namei.c | int len, /* Length of the name */ |
len | 672 | fs/umsdos/namei.c | return umsdos_create_any (dir,name,len,mode,0,0,result); |
len | 680 | fs/umsdos/namei.c | int len, |
len | 683 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EEXIST); |
len | 686 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
len | 703 | fs/umsdos/namei.c | ret = msdos_mkdir (dir,info.fake.fname,info.fake.len,mode); |
len | 719 | fs/umsdos/namei.c | ,info.fake.len,&subdir); |
len | 746 | fs/umsdos/namei.c | int len, |
len | 765 | fs/umsdos/namei.c | int ret = umsdos_create_any (dir,name,len,mode,rdev,0,&inode); |
len | 776 | fs/umsdos/namei.c | int len) |
len | 865 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EPERM); |
len | 869 | fs/umsdos/namei.c | ret = UMSDOS_lookup (dir,name,len,&sdir); |
len | 895 | fs/umsdos/namei.c | umsdos_parse (name,len,&info); |
len | 900 | fs/umsdos/namei.c | ,info.fake.len); |
len | 930 | fs/umsdos/namei.c | int len) |
len | 932 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(dir,name,len,-EPERM); |
len | 935 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
len | 960 | fs/umsdos/namei.c | ret = UMSDOS_lookup (dir,name,len,&inode); |
len | 989 | fs/umsdos/namei.c | ,info.fake.len); |
len | 86 | fs/umsdos/rdir.c | int len, |
len | 93 | fs/umsdos/rdir.c | && len == 2 |
len | 106 | fs/umsdos/rdir.c | ret = umsdos_real_lookup (dir,name,len,result); |
len | 130 | fs/umsdos/rdir.c | int len, |
len | 133 | fs/umsdos/rdir.c | return umsdos_rlookup_x(dir,name,len,result,0); |
len | 139 | fs/umsdos/rdir.c | int len) |
len | 156 | fs/umsdos/rdir.c | if (umsdos_is_pseudodos(dir,name,len)){ |
len | 169 | fs/umsdos/rdir.c | ret = msdos_rmdir (dir,name,len); |
len | 173 | fs/umsdos/rdir.c | ret = UMSDOS_rlookup (dir,name,len,&sdir); |
len | 192 | fs/umsdos/rdir.c | ret = msdos_rmdir (dir,name,len); |
len | 124 | fs/vfat/namei.c | static int vfat_find(struct inode *dir,const char *name,int len, |
len | 132 | fs/vfat/namei.c | static int vfat_valid_longname(const char *name, int len, int dot_dirs) |
len | 139 | fs/vfat/namei.c | if (name[0] == '.' && (len == 1 || (len == 2 && name[1] == '.'))) { |
len | 144 | fs/vfat/namei.c | if (len && name[len-1] == ' ') return -EINVAL; |
len | 145 | fs/vfat/namei.c | if (len >= 256) return -EINVAL; |
len | 146 | fs/vfat/namei.c | for (i = 0; i < len; i++) { |
len | 150 | fs/vfat/namei.c | if (len == 3 || len == 4) { |
len | 157 | fs/vfat/namei.c | static int vfat_valid_shortname(char conv,const char *name,int len, |
len | 165 | fs/vfat/namei.c | if (name[0] == '.' && (len == 1 || (len == 2 && name[1] == '.'))) { |
len | 172 | fs/vfat/namei.c | for (walk = name; len && walk-name < 8;) { |
len | 174 | fs/vfat/namei.c | len--; |
len | 185 | fs/vfat/namei.c | if ((conv == 's' || conv == 'x') && len && c != '.') { |
len | 187 | fs/vfat/namei.c | len--; |
len | 190 | fs/vfat/namei.c | while (c != '.' && len--) c = *walk++; |
len | 192 | fs/vfat/namei.c | if (len >= 4) return -EINVAL; |
len | 193 | fs/vfat/namei.c | while (len > 0 && walk-name < (MSDOS_NAME+1)) { |
len | 195 | fs/vfat/namei.c | len--; |
len | 207 | fs/vfat/namei.c | if ((conv == 's' || conv == 'x') && len) return -EINVAL; |
len | 220 | fs/vfat/namei.c | static int vfat_format_name(char conv,const char *name,int len,char *res, |
len | 229 | fs/vfat/namei.c | if (name[0] == '.' && (len == 1 || (len == 2 && name[1] == '.'))) { |
len | 232 | fs/vfat/namei.c | while (len--) *res++ = '.'; |
len | 238 | fs/vfat/namei.c | for (walk = res; len && walk-res < 8; walk++) { |
len | 240 | fs/vfat/namei.c | len--; |
len | 251 | fs/vfat/namei.c | if ((conv == 's' || conv == 'x') && len && c != '.') { |
len | 253 | fs/vfat/namei.c | len--; |
len | 256 | fs/vfat/namei.c | while (c != '.' && len--) c = *name++; |
len | 259 | fs/vfat/namei.c | while (len > 0 && walk-res < MSDOS_NAME) { |
len | 261 | fs/vfat/namei.c | len--; |
len | 274 | fs/vfat/namei.c | if ((conv == 's' || conv == 'x') && len) return -EINVAL; |
len | 289 | fs/vfat/namei.c | int len, char *name_res) |
len | 306 | fs/vfat/namei.c | PRINTK(("Entering vfat_create_shortname: name=%s, len=%d\n", name, len)); |
len | 309 | fs/vfat/namei.c | if (len && name[len-1]==' ') return -EINVAL; |
len | 310 | fs/vfat/namei.c | if (len <= 12) { |
len | 313 | fs/vfat/namei.c | for (i = 0, p = msdos_name, ip = name; i < len; i++, p++, ip++) |
len | 321 | fs/vfat/namei.c | res = vfat_format_name('x', msdos_name, len, name_res, 1); |
len | 324 | fs/vfat/namei.c | res = vfat_find(dir, msdos_name, len, 0, 0, 0, &sinfo); |
len | 334 | fs/vfat/namei.c | ext_start = end = &name[len]; |
len | 338 | fs/vfat/namei.c | sz = len; |
len | 345 | fs/vfat/namei.c | sz = len; |
len | 363 | fs/vfat/namei.c | sz = len; |
len | 491 | fs/vfat/namei.c | static int vfat_build_slots(struct inode *dir,const char *name,int len, |
len | 506 | fs/vfat/namei.c | PRINTK(("Entering vfat_build_slots: name=%s, len=%d\n", name, len)); |
len | 513 | fs/vfat/namei.c | if (len == 1 && name[0] == '.') { |
len | 516 | fs/vfat/namei.c | } else if (len == 2 && name[0] == '.' && name[1] == '.') { |
len | 521 | fs/vfat/namei.c | res = vfat_valid_shortname('x', name, len, 1); |
len | 524 | fs/vfat/namei.c | res = vfat_format_name('x', name, len, de->name, 1); |
len | 529 | fs/vfat/namei.c | PRINTK(("vfat_build_slots 5A: %s (len=%d) is an invalid shortname\n", name, len)); |
len | 534 | fs/vfat/namei.c | res = vfat_create_shortname(dir, name, len, msdos_name); |
len | 550 | fs/vfat/namei.c | res = vfat_valid_longname(name, len, 1); |
len | 554 | fs/vfat/namei.c | *slots = (len + 12) / 13; |
len | 576 | fs/vfat/namei.c | if (!end && j == len) { |
len | 603 | fs/vfat/namei.c | if (!end && j == len) { |
len | 628 | fs/vfat/namei.c | if (!end && j == len) { |
len | 711 | fs/vfat/namei.c | static int vfat_find(struct inode *dir,const char *name,int len, |
len | 728 | fs/vfat/namei.c | PRINTK(("vfat_find 1: name=%s, len=%d\n",name,len)); |
len | 730 | fs/vfat/namei.c | res = vfat_build_slots(dir, name, len, find_long, new_filename, |
len | 904 | fs/vfat/namei.c | int vfat_lookup(struct inode *dir,const char *name,int len, |
len | 911 | fs/vfat/namei.c | PRINTK (("vfat_lookup: name=%s, len=%d\n", name, len)); |
len | 920 | fs/vfat/namei.c | if (len == 1 && name[0] == '.') { |
len | 924 | fs/vfat/namei.c | if (len == 2 && name[0] == '.' && name[1] == '.') { |
len | 932 | fs/vfat/namei.c | if ((res = vfat_find(dir,name,len,1,0,0,&sinfo)) < 0) { |
len | 968 | fs/vfat/namei.c | static int vfat_create_entry(struct inode *dir,const char *name,int len, |
len | 979 | fs/vfat/namei.c | res = vfat_find(dir, name, len, 1, 1, is_dir, &sinfo); |
len | 1007 | fs/vfat/namei.c | int vfat_create(struct inode *dir,const char *name,int len,int mode, |
len | 1015 | fs/vfat/namei.c | if ((res = vfat_create_entry(dir,name,len,0,result)) < 0) { |
len | 1235 | fs/vfat/namei.c | static int vfat_rmdirx(struct inode *dir,const char *name,int len) |
len | 1245 | fs/vfat/namei.c | if (name[0] == '.' && (len == 1 || (len == 2 && name[1] == '.'))) |
len | 1247 | fs/vfat/namei.c | res = vfat_find(dir,name,len,1,0,0,&sinfo); |
len | 1264 | fs/vfat/namei.c | int vfat_rmdir(struct inode *dir,const char *name,int len) |
len | 1268 | fs/vfat/namei.c | res = vfat_rmdirx(dir, name, len); |
len | 1276 | fs/vfat/namei.c | int len, |
len | 1286 | fs/vfat/namei.c | if ((res = vfat_find(dir,name,len,1,0,0,&sinfo)) < 0) |
len | 1304 | fs/vfat/namei.c | int vfat_mkdir(struct inode *dir,const char *name,int len,int mode) |
len | 1310 | fs/vfat/namei.c | if ((res = vfat_create_entry(dir,name,len,1,&inode)) < 0) { |
len | 1326 | fs/vfat/namei.c | if (vfat_rmdir(dir,name,len) < 0) |
len | 1333 | fs/vfat/namei.c | int vfat_unlink(struct inode *dir,const char *name,int len) |
len | 1337 | fs/vfat/namei.c | res = vfat_unlinkx (dir,name,len,1); |
len | 32 | fs/xiafs/namei.c | static int xiafs_match(int len, const char * name, struct xiafs_direct * dep) |
len | 36 | fs/xiafs/namei.c | if (!dep || !dep->d_ino || len > _XIAFS_NAME_LEN) |
len | 39 | fs/xiafs/namei.c | if (!len && (dep->d_name[0]=='.') && (dep->d_name[1]=='\0')) |
len | 41 | fs/xiafs/namei.c | if (len != dep->d_name_len) |
len | 43 | fs/xiafs/namei.c | for (i=0; i < len; i++) |
len | 116 | fs/xiafs/namei.c | int xiafs_lookup(struct inode * dir, const char * name, int len, |
len | 130 | fs/xiafs/namei.c | if (!(bh = xiafs_find_entry(dir, name, len, &dep, NULL))) { |
len | 245 | fs/xiafs/namei.c | int xiafs_create(struct inode * dir, const char * name, int len, int mode, |
len | 263 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 279 | fs/xiafs/namei.c | int xiafs_mknod(struct inode *dir, const char *name, int len, int mode, int rdev) |
len | 287 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len,&de, NULL); |
len | 320 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 336 | fs/xiafs/namei.c | int xiafs_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 342 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len,&de, NULL); |
len | 386 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 486 | fs/xiafs/namei.c | int xiafs_rmdir(struct inode * dir, const char * name, int len) |
len | 494 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, &de_pre); |
len | 538 | fs/xiafs/namei.c | int xiafs_unlink(struct inode * dir, const char * name, int len) |
len | 548 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, &de_pre); |
len | 586 | fs/xiafs/namei.c | int len, const char * symname) |
len | 594 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len, &de, NULL); |
len | 621 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 638 | fs/xiafs/namei.c | const char * name, int len) |
len | 653 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, NULL); |
len | 660 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 17 | include/asm-alpha/checksum.h | unsigned short len, |
len | 33 | include/asm-alpha/checksum.h | extern unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum); |
len | 42 | include/asm-alpha/checksum.h | unsigned int csum_partial_copy( const char *src, char *dst, int len, int sum); |
len | 56 | include/asm-alpha/checksum.h | extern unsigned short ip_compute_csum(unsigned char * buff, int len); |
len | 189 | include/asm-alpha/io.h | #define memcpy_fromio(to,from,len) _memcpy_fromio((to),(unsigned long)(from),(len)) |
len | 190 | include/asm-alpha/io.h | #define memcpy_toio(to,from,len) _memcpy_toio((unsigned long)(to),(from),(len)) |
len | 191 | include/asm-alpha/io.h | #define memset_io(addr,c,len) _memset_io((unsigned long)(addr),(c),(len)) |
len | 209 | include/asm-alpha/io.h | #define eth_io_copy_and_sum(skb,src,len,unused) memcpy_fromio((skb)->data,(src),(len)) |
len | 7 | include/asm-alpha/ipsum.h | extern inline unsigned short udp_check(struct udphdr *uh, int len, u32 saddr, u32 daddr) |
len | 16 | include/asm-alpha/ipsum.h | extern inline unsigned short tcp_check(struct tcphdr *th, int len, u32 saddr, u32 daddr) |
len | 28 | include/asm-alpha/ipsum.h | extern inline unsigned short ip_compute_csum(unsigned char * buff, int len) |
len | 16 | include/asm-i386/checksum.h | unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum); |
len | 26 | include/asm-i386/checksum.h | unsigned int csum_partial_copy( const char *src, char *dst, int len, int sum); |
len | 36 | include/asm-i386/checksum.h | unsigned int csum_partial_copy_fromuser(const char *src, char *dst, int len, int sum); |
len | 83 | include/asm-i386/checksum.h | unsigned short len, |
len | 98 | include/asm-i386/checksum.h | : "0" (daddr), "1"(saddr), "r"((ntohs(len)<<16)+proto*256), "r"(sum)); |
len | 123 | include/asm-i386/checksum.h | static inline unsigned short ip_compute_csum(unsigned char * buff, int len) { |
len | 135 | include/asm-i386/checksum.h | : "0" (csum_partial(buff, len, 0))); |
len | 25 | include/asm-mips/checksum.h | unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum); |
len | 34 | include/asm-mips/checksum.h | unsigned int csum_partial_copy(const char *src, char *dst, int len, int sum); |
len | 108 | include/asm-mips/checksum.h | unsigned short len, |
len | 131 | include/asm-mips/checksum.h | : "0" (daddr), "r"(saddr), "r"((ntohs(len)<<16)+proto*256), "r"(sum) |
len | 161 | include/asm-mips/checksum.h | static inline unsigned short ip_compute_csum(unsigned char * buff, int len) { |
len | 173 | include/asm-mips/checksum.h | : "r" (csum_partial(buff, len, 0)) |
len | 17 | include/asm-ppc/checksum.h | unsigned short len, |
len | 33 | include/asm-ppc/checksum.h | extern unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum); |
len | 42 | include/asm-ppc/checksum.h | unsigned int csum_partial_copy( const char *src, char *dst, int len, int sum); |
len | 56 | include/asm-ppc/checksum.h | extern unsigned short ip_compute_csum(unsigned char * buff, int len); |
len | 72 | include/asm-ppc/io.h | void outsl(int port, long *ptr, int len); |
len | 25 | include/asm-sparc/checksum.h | do_csum(unsigned char * buff, int len) |
len | 30 | include/asm-sparc/checksum.h | if (len <= 0) |
len | 35 | include/asm-sparc/checksum.h | len--; |
len | 38 | include/asm-sparc/checksum.h | count = len >> 1; /* nr of 16-bit words.. */ |
len | 43 | include/asm-sparc/checksum.h | len -= 2; |
len | 53 | include/asm-sparc/checksum.h | len -= 4; |
len | 61 | include/asm-sparc/checksum.h | if (len & 2) { |
len | 66 | include/asm-sparc/checksum.h | if (len & 1) |
len | 92 | include/asm-sparc/checksum.h | extern inline unsigned int csum_partial(unsigned char * buff, int len, unsigned int sum) |
len | 94 | include/asm-sparc/checksum.h | unsigned long result = do_csum(buff, len); |
len | 110 | include/asm-sparc/checksum.h | extern inline unsigned int csum_partial_copy(char *src, char *dst, int len, int sum) |
len | 119 | include/asm-sparc/checksum.h | sum = csum_partial(src, len, sum); |
len | 120 | include/asm-sparc/checksum.h | memcpy(dst, src, len); |
len | 128 | include/asm-sparc/checksum.h | extern inline unsigned short ip_compute_csum(unsigned char * buff, int len) |
len | 130 | include/asm-sparc/checksum.h | return ~from32to16(do_csum(buff,len)); |
len | 153 | include/asm-sparc/checksum.h | unsigned short len, |
len | 159 | include/asm-sparc/checksum.h | (sum & 0xffff) + proto + len)); |
len | 116 | include/asm-sparc/openprom.h | void (*pv_putstr)(char *str, int len); |
len | 128 | include/asm-sparc/openprom.h | void (*v0_eval)(int len, char *str); |
len | 179 | include/asm-sparc/openprom.h | int (*no_setprop)(int node, char *name, char *val, int len); |
len | 71 | include/linux/cdrom.h | unsigned short len; |
len | 33 | include/linux/etherdevice.h | void *saddr, unsigned len); |
len | 65 | include/linux/ext_fs.h | extern int ext_lookup(struct inode * dir,const char * name, int len, |
len | 67 | include/linux/ext_fs.h | extern int ext_create(struct inode * dir,const char * name, int len, int mode, |
len | 69 | include/linux/ext_fs.h | extern int ext_mkdir(struct inode * dir, const char * name, int len, int mode); |
len | 70 | include/linux/ext_fs.h | extern int ext_rmdir(struct inode * dir, const char * name, int len); |
len | 71 | include/linux/ext_fs.h | extern int ext_unlink(struct inode * dir, const char * name, int len); |
len | 72 | include/linux/ext_fs.h | extern int ext_symlink(struct inode * inode, const char * name, int len, |
len | 74 | include/linux/ext_fs.h | extern int ext_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
len | 75 | include/linux/ext_fs.h | extern int ext_mknod(struct inode * dir, const char * name, int len, int mode, int rdev); |
len | 34 | include/linux/ip.h | __u8 len; |
len | 159 | include/linux/iso_fs.h | extern int get_rock_ridge_filename(struct iso_directory_record *, char ** name, int * len, struct inode *); |
len | 169 | include/linux/iso_fs.h | extern int isofs_lookup(struct inode * dir,const char * name, int len, |
len | 91 | include/linux/minix_fs.h | extern int minix_lookup(struct inode * dir,const char * name, int len, |
len | 93 | include/linux/minix_fs.h | extern int minix_create(struct inode * dir,const char * name, int len, int mode, |
len | 95 | include/linux/minix_fs.h | extern int minix_mkdir(struct inode * dir, const char * name, int len, int mode); |
len | 96 | include/linux/minix_fs.h | extern int minix_rmdir(struct inode * dir, const char * name, int len); |
len | 97 | include/linux/minix_fs.h | extern int minix_unlink(struct inode * dir, const char * name, int len); |
len | 98 | include/linux/minix_fs.h | extern int minix_symlink(struct inode * inode, const char * name, int len, |
len | 100 | include/linux/minix_fs.h | extern int minix_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
len | 101 | include/linux/minix_fs.h | extern int minix_mknod(struct inode * dir, const char * name, int len, int mode, int rdev); |
len | 213 | include/linux/mm.h | extern unsigned long do_mmap(struct file * file, unsigned long addr, unsigned long len, |
len | 239 | include/linux/msdos_fs.h | extern int msdos_lookup(struct inode *dir,const char *name,int len, |
len | 241 | include/linux/msdos_fs.h | extern int msdos_create(struct inode *dir,const char *name,int len,int mode, |
len | 243 | include/linux/msdos_fs.h | extern int msdos_rmdir(struct inode *dir,const char *name,int len); |
len | 244 | include/linux/msdos_fs.h | extern int msdos_mkdir(struct inode *dir,const char *name,int len,int mode); |
len | 245 | include/linux/msdos_fs.h | extern int msdos_unlink(struct inode *dir,const char *name,int len); |
len | 246 | include/linux/msdos_fs.h | extern int msdos_unlink_umsdos(struct inode *dir,const char *name,int len); |
len | 109 | include/linux/net.h | int (*listen) (struct socket *sock, int len); |
len | 87 | include/linux/net_alias.h | (struct net_alias_type *this, struct net_alias *alias, char *buf, int len); |
len | 172 | include/linux/netdevice.h | unsigned len); |
len | 59 | include/linux/nfs_fs.h | int **p0, char **string, unsigned int *len, |
len | 8 | include/linux/pipe_fs_i.h | unsigned int len; |
len | 19 | include/linux/pipe_fs_i.h | #define PIPE_LEN(inode) ((inode).u.pipe_i.len) |
len | 32 | include/linux/rpcsock.h | int len; |
len | 78 | include/linux/skbuff.h | unsigned long len; /* Length of actual data */ |
len | 156 | include/linux/skbuff.h | extern unsigned char * skb_put(struct sk_buff *skb, int len); |
len | 157 | include/linux/skbuff.h | extern unsigned char * skb_push(struct sk_buff *skb, int len); |
len | 158 | include/linux/skbuff.h | extern unsigned char * skb_pull(struct sk_buff *skb, int len); |
len | 161 | include/linux/skbuff.h | extern void skb_reserve(struct sk_buff *skb, int len); |
len | 162 | include/linux/skbuff.h | extern void skb_trim(struct sk_buff *skb, int len); |
len | 389 | include/linux/skbuff.h | extern __inline__ unsigned char *skb_put(struct sk_buff *skb, int len) |
len | 392 | include/linux/skbuff.h | skb->tail+=len; |
len | 393 | include/linux/skbuff.h | skb->len+=len; |
len | 395 | include/linux/skbuff.h | panic("skput:over: %p:%d", __builtin_return_address(0),len); |
len | 399 | include/linux/skbuff.h | extern __inline__ unsigned char *skb_push(struct sk_buff *skb, int len) |
len | 401 | include/linux/skbuff.h | skb->data-=len; |
len | 402 | include/linux/skbuff.h | skb->len+=len; |
len | 404 | include/linux/skbuff.h | panic("skpush:under: %p:%d", __builtin_return_address(0),len); |
len | 408 | include/linux/skbuff.h | extern __inline__ unsigned char * skb_pull(struct sk_buff *skb, int len) |
len | 410 | include/linux/skbuff.h | if(len > skb->len) |
len | 412 | include/linux/skbuff.h | skb->data+=len; |
len | 413 | include/linux/skbuff.h | skb->len-=len; |
len | 427 | include/linux/skbuff.h | extern __inline__ void skb_reserve(struct sk_buff *skb, int len) |
len | 429 | include/linux/skbuff.h | skb->data+=len; |
len | 430 | include/linux/skbuff.h | skb->tail+=len; |
len | 433 | include/linux/skbuff.h | extern __inline__ void skb_trim(struct sk_buff *skb, int len) |
len | 435 | include/linux/skbuff.h | if(skb->len>len) |
len | 437 | include/linux/skbuff.h | skb->len=len; |
len | 438 | include/linux/skbuff.h | skb->tail=skb->data+len; |
len | 102 | include/linux/smb.h | int len; /* Namelength. */ |
len | 124 | include/linux/smb_fs.h | byte *smb_encode_smb_length(byte *p, dword len); |
len | 126 | include/linux/smb_fs.h | int len, struct smb_dirent *entry); |
len | 137 | include/linux/smb_fs.h | int len, struct smb_dirent *entry); |
len | 138 | include/linux/smb_fs.h | int smb_proc_mknew(struct smb_server *server, const char *path, int len, |
len | 142 | include/linux/smb_fs.h | int smb_proc_mkdir(struct smb_server *server, const char *path, const int len); |
len | 143 | include/linux/smb_fs.h | int smb_proc_rmdir(struct smb_server *server, const char *path, const int len); |
len | 145 | include/linux/smb_fs.h | const int len); |
len | 150 | include/linux/smb_fs.h | int len, struct smb_dirent *entry); |
len | 154 | include/linux/smb_fs.h | int smb_proc_chkpath(struct smb_server *server, char *path, int len, |
len | 120 | include/linux/socket.h | extern void memcpy_fromiovec(unsigned char *kdata, struct iovec *iov, int len); |
len | 122 | include/linux/socket.h | extern void memcpy_toiovec(struct iovec *v, unsigned char *kdata, int len); |
len | 172 | include/linux/soundcard.h | int len; /* Size of the wave data in bytes */ |
len | 231 | include/linux/soundcard.h | int len; /* Size of the sysex data in bytes */ |
len | 661 | include/linux/soundcard.h | int len; |
len | 672 | include/linux/soundcard.h | int len; /* Length of data in bytes */ |
len | 676 | include/linux/soundcard.h | int len; |
len | 936 | include/linux/soundcard.h | #define SEQ_DEFINEBUF(len) unsigned char _seqbuf[len]; int _seqbuflen = len;int _seqbufptr = 0 |
len | 940 | include/linux/soundcard.h | #define _SEQ_NEEDBUF(len) if ((_seqbufptr+(len)) > _seqbuflen) seqbuf_dump() |
len | 941 | include/linux/soundcard.h | #define _SEQ_ADVBUF(len) _seqbufptr += len |
len | 958 | include/linux/soundcard.h | #define _SEQ_NEEDBUF(len) /* empty */ |
len | 1035 | include/linux/soundcard.h | #define SEQ_SYSEX(dev, buf, len) \ |
len | 1036 | include/linux/soundcard.h | {int i, l=(len); if (l>6)l=6;\ |
len | 1125 | include/linux/soundcard.h | #define SEQ_WRPATCH(patchx, len) {if (_seqbufptr) seqbuf_dump();\ |
len | 1126 | include/linux/soundcard.h | if (write(seqfd, (char*)(patchx), len)==-1) \ |
len | 1128 | include/linux/soundcard.h | #define SEQ_WRPATCH2(patchx, len) (seqbuf_dump(), write(seqfd, (char*)(patchx), len)) |
len | 114 | include/linux/sysctl.h | int rdwr, void *data, size_t 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 | 25 | 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 | 34 | include/net/icmp.h | unsigned short len, __u32 saddr, |
len | 57 | include/net/ip.h | int len; /* length of this fragment */ |
len | 72 | include/net/ip.h | int len; /* total length of original datagram */ |
len | 89 | include/net/ip.h | extern int ip_send(struct rtable *rt, struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr); |
len | 94 | include/net/ip.h | struct options *opt, int len, |
len | 2 | include/net/ipip.h | __u32 daddr, unsigned short len, __u32 saddr, |
len | 33 | include/net/protocol.h | unsigned short len, __u32 saddr, |
len | 27 | include/net/raw.h | int len, int noblock, unsigned flags, |
len | 30 | include/net/raw.h | int len, int noblock, unsigned flags); |
len | 285 | include/net/sock.h | struct options *opt, int len, |
len | 298 | include/net/sock.h | unsigned short len, __u32 saddr, |
len | 310 | include/net/sock.h | int (*sendmsg)(struct sock *sk, struct msghdr *msg, int len, |
len | 312 | include/net/sock.h | int (*recvmsg)(struct sock *sk, struct msghdr *msg, int len, |
len | 449 | include/net/sock.h | sk->data_ready(sk,skb->len); |
len | 124 | include/net/tcp.h | unsigned short len, __u32 saddr, int redo, |
len | 135 | include/net/tcp.h | unsigned long daddr, int len, struct sk_buff *skb); |
len | 280 | include/net/tcp.h | static __inline__ u16 tcp_check(struct tcphdr *th, int len, |
len | 283 | include/net/tcp.h | return csum_tcpudp_magic(saddr,daddr,len,IPPROTO_TCP,base); |
len | 37 | include/net/udp.h | __u32 daddr, int len, struct sock *sk); |
len | 39 | include/net/udp.h | int len, int noblock, unsigned flags, |
len | 42 | include/net/udp.h | int len, int noblock, unsigned flags); |
len | 47 | include/net/udp.h | unsigned short len, __u32 saddr, int redo, |
len | 439 | init/main.c | int len = strlen(devnames[n]); |
len | 440 | init/main.c | if (!strncmp(line,devnames[n],len)) { |
len | 442 | init/main.c | simple_strtoul(line+len,NULL,0)); |
len | 59 | kernel/dma.c | int i, len = 0; |
len | 63 | kernel/dma.c | len += sprintf(buf+len, "%2d: %s\n", |
len | 68 | kernel/dma.c | return len; |
len | 621 | kernel/module.c | int len = 0; /* code from net/ipv4/proc.c */ |
len | 633 | kernel/module.c | p = buf + len; |
len | 635 | kernel/module.c | len += sprintf(p, "%08lx %s\t[%s]\n", |
len | 639 | kernel/module.c | len += sprintf(p, "%08lx %s\n", |
len | 643 | kernel/module.c | pos = begin + len; |
len | 645 | kernel/module.c | len = 0; |
len | 648 | kernel/module.c | pos = begin + len; |
len | 656 | kernel/module.c | len -= (offset - begin); |
len | 657 | kernel/module.c | if (len > length) |
len | 658 | kernel/module.c | len = length; |
len | 659 | kernel/module.c | return len; |
len | 61 | kernel/printk.c | asmlinkage int sys_syslog(int type, char * buf, int len) |
len | 76 | kernel/printk.c | if (!buf || len < 0) |
len | 78 | kernel/printk.c | if (!len) |
len | 80 | kernel/printk.c | error = verify_area(VERIFY_WRITE,buf,len); |
len | 92 | kernel/printk.c | while (log_size && i < len) { |
len | 109 | kernel/printk.c | if (!buf || len < 0) |
len | 111 | kernel/printk.c | if (!len) |
len | 113 | kernel/printk.c | error = verify_area(VERIFY_WRITE,buf,len); |
len | 116 | kernel/printk.c | count = len; |
len | 139 | kernel/printk.c | if (len < 1 || len > 8) |
len | 141 | kernel/printk.c | if (len < MINIMUM_CONSOLE_LOGLEVEL) |
len | 142 | kernel/printk.c | len = MINIMUM_CONSOLE_LOGLEVEL; |
len | 143 | 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 | 718 | kernel/sys.c | asmlinkage int sys_sethostname(char *name, int len) |
len | 724 | kernel/sys.c | if (len < 0 || len > __NEW_UTS_LEN) |
len | 726 | kernel/sys.c | error = verify_area(VERIFY_READ, name, len); |
len | 729 | kernel/sys.c | memcpy_fromfs(system_utsname.nodename, name, len); |
len | 730 | kernel/sys.c | system_utsname.nodename[len] = 0; |
len | 734 | kernel/sys.c | asmlinkage int sys_gethostname(char *name, int len) |
len | 738 | kernel/sys.c | if (len < 0) |
len | 740 | kernel/sys.c | i = verify_area(VERIFY_WRITE, name, len); |
len | 744 | kernel/sys.c | if (i > len) |
len | 745 | kernel/sys.c | i = len; |
len | 754 | kernel/sys.c | asmlinkage int sys_setdomainname(char *name, int len) |
len | 760 | kernel/sys.c | if (len < 0 || len > __NEW_UTS_LEN) |
len | 762 | kernel/sys.c | error = verify_area(VERIFY_READ, name, len); |
len | 765 | kernel/sys.c | memcpy_fromfs(system_utsname.domainname, name, len); |
len | 766 | kernel/sys.c | system_utsname.domainname[len] = 0; |
len | 265 | kernel/sysctl.c | int op = 0, rc, len; |
len | 287 | kernel/sysctl.c | len = get_user(oldlenp); |
len | 288 | kernel/sysctl.c | if (len > table->maxlen) |
len | 289 | kernel/sysctl.c | len = table->maxlen; |
len | 290 | kernel/sysctl.c | memcpy_tofs(oldval, table->data, len); |
len | 291 | kernel/sysctl.c | put_user(len, oldlenp); |
len | 294 | kernel/sysctl.c | len = newlen; |
len | 295 | kernel/sysctl.c | if (len > table->maxlen) |
len | 296 | kernel/sysctl.c | len = table->maxlen; |
len | 297 | kernel/sysctl.c | memcpy_fromfs(table->data, newval, len); |
len | 470 | kernel/sysctl.c | int len; |
len | 480 | kernel/sysctl.c | len = 0; |
len | 482 | kernel/sysctl.c | while (len < *lenp && |
len | 484 | kernel/sysctl.c | len++; |
len | 485 | kernel/sysctl.c | if (len >= table->maxlen) |
len | 486 | kernel/sysctl.c | len = table->maxlen-1; |
len | 487 | kernel/sysctl.c | memcpy_fromfs(table->data, buffer, len); |
len | 488 | kernel/sysctl.c | ((char *) table->data)[len] = 0; |
len | 491 | kernel/sysctl.c | len = strlen(table->data) + 1; |
len | 492 | kernel/sysctl.c | if (len > table->maxlen) |
len | 493 | kernel/sysctl.c | len = table->maxlen; |
len | 494 | kernel/sysctl.c | if (len > *lenp) |
len | 495 | kernel/sysctl.c | len = *lenp; |
len | 496 | kernel/sysctl.c | if (len) { |
len | 497 | kernel/sysctl.c | memcpy_tofs(buffer, table->data, len-1); |
len | 498 | kernel/sysctl.c | put_user(0, ((char *) buffer) + len - 1); |
len | 500 | kernel/sysctl.c | if (len < *lenp) { |
len | 501 | kernel/sysctl.c | put_user('\n', ((char *) buffer) + len); |
len | 502 | kernel/sysctl.c | len++; |
len | 504 | kernel/sysctl.c | *lenp = len; |
len | 505 | kernel/sysctl.c | filp->f_pos += len; |
len | 513 | kernel/sysctl.c | int *i, vleft, first=1, len, left, neg, val; |
len | 534 | kernel/sysctl.c | len = left; |
len | 535 | kernel/sysctl.c | if (len > TMPBUFLEN-1) |
len | 536 | kernel/sysctl.c | len = TMPBUFLEN-1; |
len | 537 | kernel/sysctl.c | memcpy_fromfs(buf, buffer, len); |
len | 538 | kernel/sysctl.c | buf[len] = 0; |
len | 547 | kernel/sysctl.c | len = p-buf; |
len | 548 | kernel/sysctl.c | if ((len < left) && *p && !isspace(*p)) |
len | 552 | kernel/sysctl.c | buffer += len; |
len | 553 | kernel/sysctl.c | left -= len; |
len | 560 | kernel/sysctl.c | len = strlen(buf); |
len | 561 | kernel/sysctl.c | if (len > left) |
len | 562 | kernel/sysctl.c | len = left; |
len | 563 | kernel/sysctl.c | memcpy_tofs(buffer, buf, len); |
len | 564 | kernel/sysctl.c | left -= len; |
len | 565 | kernel/sysctl.c | buffer += len; |
len | 611 | kernel/sysctl.c | int l, len; |
len | 617 | kernel/sysctl.c | len = get_user(oldlenp); |
len | 619 | kernel/sysctl.c | if (len > l) len = l; |
len | 620 | kernel/sysctl.c | if (len >= table->maxlen) |
len | 621 | kernel/sysctl.c | len = table->maxlen; |
len | 622 | kernel/sysctl.c | memcpy_tofs(oldval, table->data, len); |
len | 623 | kernel/sysctl.c | put_user(0, ((char *) oldval) + len); |
len | 624 | kernel/sysctl.c | put_user(len, oldlenp); |
len | 627 | kernel/sysctl.c | len = newlen; |
len | 628 | kernel/sysctl.c | if (len > table->maxlen) |
len | 629 | kernel/sysctl.c | len = table->maxlen; |
len | 630 | kernel/sysctl.c | memcpy_fromfs(table->data, newval, len); |
len | 631 | kernel/sysctl.c | if (len == table->maxlen) |
len | 632 | kernel/sysctl.c | len--; |
len | 633 | kernel/sysctl.c | ((char *) table->data)[len] = 0; |
len | 681 | kernel/sysctl.c | int rdwr, void *data, size_t len) |
len | 685 | kernel/sysctl.c | if (newval && newlen != len) |
len | 688 | kernel/sysctl.c | if (get_user(oldlenp) < len) |
len | 690 | kernel/sysctl.c | put_user(len, oldlenp); |
len | 691 | kernel/sysctl.c | memcpy_tofs(oldval, data, len); |
len | 694 | kernel/sysctl.c | memcpy_fromfs(data, newval, len); |
len | 1105 | lib/inflate.c | unsigned len = (unsigned)get_byte(); |
len | 1106 | lib/inflate.c | len |= ((unsigned)get_byte())<<8; |
len | 1107 | lib/inflate.c | while (len--) (void)get_byte(); |
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 | 655 | mm/filemap.c | static void filemap_unmap(struct vm_area_struct *vma, unsigned long start, size_t len) |
len | 657 | mm/filemap.c | filemap_sync(vma, start, len, MS_ASYNC); |
len | 749 | mm/filemap.c | asmlinkage int sys_msync(unsigned long start, size_t len, int flags) |
len | 757 | mm/filemap.c | len = (len + ~PAGE_MASK) & PAGE_MASK; |
len | 758 | mm/filemap.c | end = start + len; |
len | 810 | mm/memory.c | unsigned long len = mpnt->vm_end - start; |
len | 815 | mm/memory.c | zap_page_range(mpnt->vm_mm, start, len); |
len | 820 | mm/memory.c | if (diff >= len) |
len | 824 | mm/memory.c | len = (len - diff) & PAGE_MASK; |
len | 829 | mm/memory.c | zap_page_range(mpnt->vm_mm, start, len); |
len | 136 | mm/mlock.c | static int do_mlock(unsigned long start, size_t len, int on) |
len | 144 | mm/mlock.c | len = (len + ~PAGE_MASK) & PAGE_MASK; |
len | 145 | mm/mlock.c | end = start + len; |
len | 184 | mm/mlock.c | asmlinkage int sys_mlock(unsigned long start, size_t len) |
len | 189 | mm/mlock.c | len = (len + (start & ~PAGE_MASK) + ~PAGE_MASK) & PAGE_MASK; |
len | 192 | mm/mlock.c | locked = len >> PAGE_SHIFT; |
len | 207 | mm/mlock.c | return do_mlock(start, len, 1); |
len | 210 | mm/mlock.c | asmlinkage int sys_munlock(unsigned long start, size_t len) |
len | 212 | mm/mlock.c | len = (len + (start & ~PAGE_MASK) + ~PAGE_MASK) & PAGE_MASK; |
len | 214 | mm/mlock.c | return do_mlock(start, len, 0); |
len | 53 | mm/mmap.c | unsigned long do_mmap(struct file * file, unsigned long addr, unsigned long len, |
len | 59 | mm/mmap.c | if ((len = PAGE_ALIGN(len)) == 0) |
len | 62 | mm/mmap.c | if (addr > TASK_SIZE || len > TASK_SIZE || addr > TASK_SIZE-len) |
len | 66 | mm/mmap.c | if (off + len < off) |
len | 72 | mm/mmap.c | locked += len; |
len | 112 | mm/mmap.c | if (len > TASK_SIZE || addr > TASK_SIZE - len) |
len | 115 | mm/mmap.c | addr = get_unmapped_area(addr, len); |
len | 135 | mm/mmap.c | vma->vm_end = addr + len; |
len | 166 | mm/mmap.c | do_munmap(addr, len); /* Clear old maps */ |
len | 179 | mm/mmap.c | current->mm->total_vm += len >> PAGE_SHIFT; |
len | 183 | mm/mmap.c | current->mm->locked_vm += len >> PAGE_SHIFT; |
len | 198 | mm/mmap.c | unsigned long get_unmapped_area(unsigned long addr, unsigned long len) |
len | 202 | mm/mmap.c | if (len > TASK_SIZE) |
len | 209 | mm/mmap.c | if (TASK_SIZE - len < addr) |
len | 215 | mm/mmap.c | if (addr + len > vmm->vm_start) { |
len | 614 | mm/mmap.c | unsigned long addr, size_t len) |
len | 617 | mm/mmap.c | unsigned long end = addr + len; |
len | 627 | mm/mmap.c | area->vm_mm->total_vm -= len >> PAGE_SHIFT; |
len | 629 | mm/mmap.c | area->vm_mm->locked_vm -= len >> PAGE_SHIFT; |
len | 680 | mm/mmap.c | asmlinkage int sys_munmap(unsigned long addr, size_t len) |
len | 682 | mm/mmap.c | return do_munmap(addr, len); |
len | 691 | mm/mmap.c | int do_munmap(unsigned long addr, size_t len) |
len | 695 | mm/mmap.c | if ((addr & ~PAGE_MASK) || addr > TASK_SIZE || len > TASK_SIZE-addr) |
len | 698 | mm/mmap.c | if ((len = PAGE_ALIGN(len)) == 0) |
len | 716 | mm/mmap.c | for ( ; mpnt && mpnt->vm_start < addr+len; mpnt = *npp) { |
len | 741 | mm/mmap.c | end = addr+len; |
len | 751 | mm/mmap.c | zap_page_range(current->mm, addr, len); |
len | 202 | mm/mprotect.c | asmlinkage int sys_mprotect(unsigned long start, size_t len, unsigned long prot) |
len | 210 | mm/mprotect.c | len = (len + ~PAGE_MASK) & PAGE_MASK; |
len | 211 | mm/mprotect.c | end = start + len; |
len | 57 | net/802/p8022.c | dev->hard_header(skb, dev, ETH_P_802_3, dest_node, NULL, skb->len); |
len | 13 | net/802/p8023.c | dev->hard_header(skb, dev, ETH_P_802_3, dest_node, NULL, skb->len); |
len | 42 | net/802/tr.c | void *daddr, void *saddr, unsigned len) |
len | 246 | net/802/tr.c | int len=0; |
len | 256 | net/802/tr.c | len+=size; |
len | 260 | net/802/tr.c | size=sprintf(buffer+len,"%02X:%02X:%02X:%02X:%02X:%02X %04X %04X %04X %04X %04X %04X %04X %04X %04X %lu\n", |
len | 264 | net/802/tr.c | len+=size; |
len | 265 | net/802/tr.c | pos=begin+len; |
len | 268 | net/802/tr.c | len=0; |
len | 279 | net/802/tr.c | len-=(offset-begin); /* Start slop */ |
len | 280 | net/802/tr.c | if(len>length) |
len | 281 | net/802/tr.c | len=length; /* Ending slop */ |
len | 282 | net/802/tr.c | return len; |
len | 105 | net/appletalk/aarp.c | int len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length; |
len | 106 | net/appletalk/aarp.c | struct sk_buff *skb=alloc_skb(len, GFP_ATOMIC); |
len | 166 | net/appletalk/aarp.c | int len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length; |
len | 167 | net/appletalk/aarp.c | struct sk_buff *skb=alloc_skb(len, GFP_ATOMIC); |
len | 228 | net/appletalk/aarp.c | int len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length; |
len | 229 | net/appletalk/aarp.c | struct sk_buff *skb=alloc_skb(len, GFP_ATOMIC); |
len | 237 | net/appletalk/ddp.c | int len=0; |
len | 245 | net/appletalk/ddp.c | len += sprintf (buffer,"Type local_addr remote_addr tx_queue rx_queue st uid\n"); |
len | 248 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%02X ", s->type); |
len | 249 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%04X:%02X:%02X ", |
len | 251 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%04X:%02X:%02X ", |
len | 253 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%08lX:%08lX ", s->wmem_alloc, s->rmem_alloc); |
len | 254 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%02X %d\n", s->state, SOCK_INODE(s->socket)->i_uid); |
len | 257 | net/appletalk/ddp.c | pos=begin+len; |
len | 261 | net/appletalk/ddp.c | len=0; /* Keep dumping into the buffer start */ |
len | 270 | net/appletalk/ddp.c | len-=(offset-begin); /* Remove unwanted header data from length */ |
len | 271 | net/appletalk/ddp.c | if(len>length) |
len | 272 | net/appletalk/ddp.c | len=length; /* Remove unwanted tail data from length */ |
len | 274 | net/appletalk/ddp.c | return len; |
len | 844 | net/appletalk/ddp.c | int len=0; |
len | 848 | net/appletalk/ddp.c | len += sprintf (buffer,"Interface Address Networks Status\n"); |
len | 851 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%-16s %04X:%02X %04X-%04X %d\n", |
len | 856 | net/appletalk/ddp.c | pos=begin+len; |
len | 859 | net/appletalk/ddp.c | len=0; |
len | 866 | net/appletalk/ddp.c | len-=(offset-begin); |
len | 867 | net/appletalk/ddp.c | if(len>length) |
len | 868 | net/appletalk/ddp.c | len=length; |
len | 869 | net/appletalk/ddp.c | return len; |
len | 877 | net/appletalk/ddp.c | int len=0; |
len | 881 | net/appletalk/ddp.c | len += sprintf (buffer,"Target Router Flags Dev\n"); |
len | 885 | net/appletalk/ddp.c | len += sprintf (buffer+len,"Default %5d:%-3d %-4d %s\n", |
len | 891 | net/appletalk/ddp.c | len += sprintf (buffer+len,"%04X:%02X %5d:%-3d %-4d %s\n", |
len | 895 | net/appletalk/ddp.c | pos=begin+len; |
len | 898 | net/appletalk/ddp.c | len=0; |
len | 905 | net/appletalk/ddp.c | len-=(offset-begin); |
len | 906 | net/appletalk/ddp.c | if(len>length) |
len | 907 | net/appletalk/ddp.c | len=length; |
len | 908 | net/appletalk/ddp.c | return len; |
len | 922 | net/appletalk/ddp.c | unsigned short atalk_checksum(struct ddpehdr *ddp, int len) |
len | 927 | net/appletalk/ddp.c | len-=4; /* skip header 4 bytes */ |
len | 931 | net/appletalk/ddp.c | while(len--) |
len | 1061 | net/appletalk/ddp.c | static void def_callback2(struct sock *sk, int len) |
len | 1372 | net/appletalk/ddp.c | if(skb->len<sizeof(*ddp)) |
len | 1391 | net/appletalk/ddp.c | origlen = skb->len; |
len | 1393 | net/appletalk/ddp.c | skb_trim(skb,min(skb->len,ddp->deh_len)); |
len | 1401 | net/appletalk/ddp.c | if(skb->len<sizeof(*ddp)) |
len | 1515 | net/appletalk/ddp.c | static int atalk_sendmsg(struct socket *sock, struct msghdr *msg, int len, int nonblock, int flags) |
len | 1531 | net/appletalk/ddp.c | if(len>587) |
len | 1568 | net/appletalk/ddp.c | size=sizeof(struct ddpehdr)+len+ddp_dl->header_length; /* For headers */ |
len | 1611 | net/appletalk/ddp.c | ddp->deh_len=len+sizeof(*ddp); |
len | 1627 | net/appletalk/ddp.c | printk("SK %p: Copy user data (%d bytes).\n", sk, len); |
len | 1629 | net/appletalk/ddp.c | memcpy_fromiovec(skb_put(skb,len),msg->msg_iov,len); |
len | 1634 | net/appletalk/ddp.c | ddp->deh_sum=atalk_checksum(ddp, len+sizeof(*ddp)); |
len | 1697 | net/appletalk/ddp.c | printk("SK %p: Done write (%d).\n", sk, len); |
len | 1698 | net/appletalk/ddp.c | return len; |
len | 1785 | net/appletalk/ddp.c | amount=skb->len-sizeof(struct ddpehdr); |
len | 377 | net/ax25/af_ax25.c | sk->data_ready(sk, skb->len); |
len | 886 | net/ax25/af_ax25.c | static void def_callback2(struct sock *sk, int len) |
len | 1465 | net/ax25/af_ax25.c | if (ax25_parse_addr(skb->data, skb->len, &src, &dest, &dp, &type, &dama) == NULL) { |
len | 1583 | net/ax25/af_ax25.c | sk->data_ready(sk, skb->len); |
len | 1729 | net/ax25/af_ax25.c | sk->data_ready(sk, skb->len ); |
len | 1761 | net/ax25/af_ax25.c | int len; |
len | 1770 | net/ax25/af_ax25.c | len = skb->data[0] + skb->data[1] * 256 - 5; |
len | 1773 | net/ax25/af_ax25.c | skb_trim(skb, len); /* Set the length of the data */ |
len | 1779 | net/ax25/af_ax25.c | static int ax25_sendmsg(struct socket *sock, struct msghdr *msg, int len, int noblock, int flags) |
len | 1855 | net/ax25/af_ax25.c | size = len + 3 + size_ax25_addr(dp) + AX25_BPQ_HEADER_LEN; |
len | 1864 | net/ax25/af_ax25.c | skb_reserve(skb, size - len); |
len | 1870 | net/ax25/af_ax25.c | memcpy_fromiovec(skb_put(skb, len), msg->msg_iov, len); |
len | 1888 | net/ax25/af_ax25.c | return len; |
len | 1914 | net/ax25/af_ax25.c | return len; |
len | 1947 | net/ax25/af_ax25.c | length = skb->len + (skb->data - skb->h.raw); |
len | 1951 | net/ax25/af_ax25.c | length = skb->len; |
len | 1967 | net/ax25/af_ax25.c | ax25_parse_addr(skb->data, skb->len, NULL, &dest, &digi, NULL, &dama); |
len | 2030 | net/ax25/af_ax25.c | amount = skb->len; |
len | 2112 | net/ax25/af_ax25.c | int len = 0; |
len | 2118 | 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 | 2126 | net/ax25/af_ax25.c | len += sprintf(buffer + len, "%-9s ", |
len | 2128 | 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 | 2143 | net/ax25/af_ax25.c | len += sprintf(buffer + len, " %5ld %5ld\n", |
len | 2147 | net/ax25/af_ax25.c | len += sprintf(buffer + len, "\n"); |
len | 2150 | net/ax25/af_ax25.c | pos = begin + len; |
len | 2153 | net/ax25/af_ax25.c | len = 0; |
len | 2164 | net/ax25/af_ax25.c | len -= (offset - begin); |
len | 2166 | net/ax25/af_ax25.c | if (len > length) len = length; |
len | 2168 | net/ax25/af_ax25.c | return(len); |
len | 2299 | net/ax25/af_ax25.c | size = skb->len; |
len | 2346 | net/ax25/af_ax25.c | void *saddr, unsigned len) |
len | 76 | net/ax25/ax25_in.c | ax25->fraglen += skb->len; |
len | 97 | net/ax25/ax25_in.c | memcpy(skb_put(skbn, skbo->len), skbo->data, skbo->len); |
len | 102 | net/ax25/ax25_in.c | memcpy(skb_put(skbn, skbo->len), skbo->data, skbo->len); |
len | 119 | net/ax25/ax25_in.c | ax25->fraglen = skb->len; |
len | 61 | net/ax25/ax25_out.c | int err, frontlen, mtu, len, fragno, first = 1; |
len | 65 | net/ax25/ax25_out.c | if ((skb->len - 1) > mtu) { |
len | 68 | net/ax25/ax25_out.c | fragno = skb->len / mtu; |
len | 69 | net/ax25/ax25_out.c | if (skb->len % mtu == 0) fragno--; |
len | 73 | net/ax25/ax25_out.c | while (skb->len > 0) { |
len | 88 | net/ax25/ax25_out.c | len = (mtu > skb->len) ? skb->len : mtu; |
len | 90 | net/ax25/ax25_out.c | memcpy(skb_put(skbn, len), skb->data, len); |
len | 91 | net/ax25/ax25_out.c | skb_pull(skb, len); |
len | 274 | net/ax25/ax25_route.c | int len = 0; |
len | 282 | net/ax25/ax25_route.c | len += sprintf(buffer, "callsign dev count time mode digipeaters\n"); |
len | 289 | net/ax25/ax25_route.c | len += sprintf(buffer + len, "%-9s %-4s %5d %9d", |
len | 298 | net/ax25/ax25_route.c | len += sprintf(buffer + len, " vc"); |
len | 302 | net/ax25/ax25_route.c | len += sprintf(buffer + len, " dg"); |
len | 305 | net/ax25/ax25_route.c | len += sprintf(buffer + len, " *"); |
len | 311 | net/ax25/ax25_route.c | len += sprintf(buffer + len, " %s", ax2asc(&ax25_rt->digipeat->calls[i])); |
len | 313 | net/ax25/ax25_route.c | len += sprintf(buffer + len, "\n"); |
len | 315 | net/ax25/ax25_route.c | pos = begin + len; |
len | 318 | net/ax25/ax25_route.c | len = 0; |
len | 329 | net/ax25/ax25_route.c | len -= (offset - begin); |
len | 331 | net/ax25/ax25_route.c | if (len > length) len = length; |
len | 333 | net/ax25/ax25_route.c | return len; |
len | 339 | net/ax25/ax25_route.c | int len = 0; |
len | 345 | net/ax25/ax25_route.c | len += sprintf(buffer, "Policy: %d\n", ax25_uid_policy); |
len | 348 | net/ax25/ax25_route.c | len += sprintf(buffer + len, "%6d %s\n", pt->uid, ax2asc(&pt->call)); |
len | 350 | net/ax25/ax25_route.c | pos = begin + len; |
len | 353 | net/ax25/ax25_route.c | len = 0; |
len | 364 | net/ax25/ax25_route.c | len -= offset - begin; |
len | 366 | net/ax25/ax25_route.c | if (len > length) len = length; |
len | 368 | net/ax25/ax25_route.c | return len; |
len | 652 | net/ax25/ax25_route.c | int len = 0; |
len | 658 | net/ax25/ax25_route.c | len += sprintf(buffer, "dev callsign\n"); |
len | 661 | net/ax25/ax25_route.c | len += sprintf(buffer + len, "%-4s %-9s\n", |
len | 665 | net/ax25/ax25_route.c | pos = begin + len; |
len | 668 | net/ax25/ax25_route.c | len = 0; |
len | 679 | net/ax25/ax25_route.c | len -= (offset - begin); |
len | 681 | net/ax25/ax25_route.c | if (len > length) len = length; |
len | 683 | net/ax25/ax25_route.c | return len; |
len | 333 | 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, int *dama) |
len | 337 | net/ax25/ax25_subr.c | if (len < 14) return NULL; |
len | 359 | net/ax25/ax25_subr.c | len -= 2 * AX25_ADDR_LEN; |
len | 366 | net/ax25/ax25_subr.c | if (len < 7) return NULL; /* Short packet */ |
len | 380 | net/ax25/ax25_subr.c | len -= AX25_ADDR_LEN; |
len | 392 | net/ax25/ax25_subr.c | int len = 0; |
len | 402 | net/ax25/ax25_subr.c | len += AX25_ADDR_LEN; |
len | 425 | net/ax25/ax25_subr.c | len += AX25_ADDR_LEN; |
len | 437 | net/ax25/ax25_subr.c | len += AX25_ADDR_LEN; |
len | 443 | net/ax25/ax25_subr.c | return len; |
len | 760 | net/core/dev.c | int len; |
len | 771 | net/core/dev.c | len = ifc.ifc_len; |
len | 779 | net/core/dev.c | err=verify_area(VERIFY_WRITE,pos,len); |
len | 800 | net/core/dev.c | if (len < sizeof(struct ifreq)) |
len | 809 | net/core/dev.c | len -= sizeof(struct ifreq); |
len | 864 | net/core/dev.c | int len=0; |
len | 876 | net/core/dev.c | len+=size; |
len | 881 | net/core/dev.c | size = sprintf_stats(buffer+len, dev); |
len | 882 | net/core/dev.c | len+=size; |
len | 883 | net/core/dev.c | pos=begin+len; |
len | 887 | net/core/dev.c | len=0; |
len | 895 | net/core/dev.c | len-=(offset-begin); /* Start slop */ |
len | 896 | net/core/dev.c | if(len>length) |
len | 897 | net/core/dev.c | len=length; /* Ending slop */ |
len | 898 | net/core/dev.c | return len; |
len | 31 | net/core/iovec.c | int len=0; |
len | 60 | net/core/iovec.c | len+=iov[ct].iov_len; |
len | 63 | net/core/iovec.c | return len; |
len | 70 | net/core/iovec.c | void memcpy_toiovec(struct iovec *iov, unsigned char *kdata, int len) |
len | 72 | net/core/iovec.c | while(len>0) |
len | 76 | net/core/iovec.c | int copy = min(iov->iov_len,len); |
len | 79 | net/core/iovec.c | len-=copy; |
len | 91 | net/core/iovec.c | void memcpy_fromiovec(unsigned char *kdata, struct iovec *iov, int len) |
len | 93 | net/core/iovec.c | while(len>0) |
len | 97 | net/core/iovec.c | int copy=min(len,iov->iov_len); |
len | 99 | net/core/iovec.c | len-=copy; |
len | 871 | net/core/net_alias.c | int len=0; |
len | 874 | net/core/net_alias.c | len=sprintf(buffer,"type name n_attach\n"); |
len | 878 | net/core/net_alias.c | len += sprintf(buffer+len, "%-7d %-15s %-7d\n", |
len | 880 | net/core/net_alias.c | pos=begin+len; |
len | 883 | net/core/net_alias.c | len=0; |
len | 890 | net/core/net_alias.c | len-=(offset-begin); |
len | 891 | net/core/net_alias.c | if(len>length) |
len | 892 | net/core/net_alias.c | len=length; |
len | 893 | net/core/net_alias.c | return len; |
len | 908 | net/core/net_alias.c | int len=0; |
len | 914 | net/core/net_alias.c | len=sprintf(buffer,"%-*s\n",NET_ALIASES_RECSIZ-1,"device family address"); |
len | 920 | net/core/net_alias.c | dlen=sprintf(buffer+len, "%-16s %-6d ", alias->name, alias->dev.family); |
len | 927 | net/core/net_alias.c | dlen += nat->alias_print_1(nat, alias, buffer+len+dlen, NET_ALIASES_RECSIZ - dlen); |
len | 929 | net/core/net_alias.c | dlen += sprintf(buffer+len+dlen, "-"); |
len | 935 | net/core/net_alias.c | if (dlen < NET_ALIASES_RECSIZ) memset(buffer+len+dlen, ' ', NET_ALIASES_RECSIZ - dlen); |
len | 940 | net/core/net_alias.c | len += NET_ALIASES_RECSIZ; |
len | 941 | net/core/net_alias.c | buffer[len-1] = '\n'; |
len | 943 | net/core/net_alias.c | pos=begin+len; |
len | 946 | net/core/net_alias.c | len=0; |
len | 953 | net/core/net_alias.c | len-=(offset-begin); |
len | 954 | net/core/net_alias.c | if(len>length) |
len | 955 | net/core/net_alias.c | len=length; |
len | 956 | net/core/net_alias.c | return len; |
len | 169 | net/core/skbuff.c | if(skb->tail-skb->data!=skb->len) |
len | 173 | net/core/skbuff.c | skb,skb->data,skb->end,skb->len); |
len | 381 | net/core/skbuff.c | unsigned char *skb_put(struct sk_buff *skb, int len) |
len | 385 | net/core/skbuff.c | skb->tail+=len; |
len | 386 | net/core/skbuff.c | skb->len+=len; |
len | 389 | net/core/skbuff.c | panic("skput:over: %p:%d", __builtin_return_address(0),len); |
len | 393 | net/core/skbuff.c | unsigned char *skb_push(struct sk_buff *skb, int len) |
len | 396 | net/core/skbuff.c | skb->data-=len; |
len | 397 | net/core/skbuff.c | skb->len+=len; |
len | 400 | net/core/skbuff.c | panic("skpush:under: %p:%d", __builtin_return_address(0),len); |
len | 404 | net/core/skbuff.c | unsigned char * skb_pull(struct sk_buff *skb, int len) |
len | 407 | net/core/skbuff.c | if(len>skb->len) |
len | 409 | net/core/skbuff.c | skb->data+=len; |
len | 410 | net/core/skbuff.c | skb->len-=len; |
len | 426 | net/core/skbuff.c | void skb_reserve(struct sk_buff *skb, int len) |
len | 429 | net/core/skbuff.c | skb->data+=len; |
len | 430 | net/core/skbuff.c | skb->tail+=len; |
len | 438 | net/core/skbuff.c | void skb_trim(struct sk_buff *skb, int len) |
len | 441 | net/core/skbuff.c | if(skb->len>len) |
len | 443 | net/core/skbuff.c | skb->len=len; |
len | 444 | net/core/skbuff.c | skb->tail=skb->data+len; |
len | 520 | net/core/skbuff.c | int len=size; |
len | 585 | net/core/skbuff.c | skb->end=bptr+len; |
len | 586 | net/core/skbuff.c | skb->len=0; |
len | 688 | net/core/skbuff.c | skb_put(n,skb->len); |
len | 567 | net/core/sock.c | skb->saddr, skb->len, skb->daddr, 1, |
len | 90 | net/ethernet/eth.c | void *daddr, void *saddr, unsigned len) |
len | 102 | net/ethernet/eth.c | eth->h_proto = htons(len); |
len | 14 | net/ethernet/pe2.c | dev->hard_header(skb, dev, ETH_P_IPX, dest_node, NULL, skb->len); |
len | 558 | net/ipv4/af_inet.c | static void def_callback2(struct sock *sk,int len) |
len | 662 | net/ipv4/arp.c | dev->hard_header(skb,dev,ptype,dest_hw?dest_hw:dev->broadcast,src_hw?src_hw:NULL,skb->len); |
len | 1320 | net/ipv4/arp.c | int len=0; |
len | 1331 | net/ipv4/arp.c | len+=size; |
len | 1365 | net/ipv4/arp.c | size = sprintf(buffer+len, |
len | 1372 | net/ipv4/arp.c | size += sprintf(buffer+len+size, |
len | 1377 | net/ipv4/arp.c | size += sprintf(buffer+len+size, |
len | 1385 | net/ipv4/arp.c | len += size; |
len | 1389 | net/ipv4/arp.c | len=0; |
len | 1396 | net/ipv4/arp.c | *start = buffer+len-(pos-offset); /* Start of wanted data */ |
len | 1397 | net/ipv4/arp.c | len = pos-offset; /* Start slop */ |
len | 1398 | net/ipv4/arp.c | if (len>length) |
len | 1399 | net/ipv4/arp.c | len = length; /* Ending slop */ |
len | 1400 | net/ipv4/arp.c | return len; |
len | 1638 | net/ipv4/arp.c | static inline int empty(unsigned char * addr, int len) |
len | 1640 | net/ipv4/arp.c | while (len > 0) { |
len | 1643 | net/ipv4/arp.c | len--; |
len | 151 | net/ipv4/icmp.c | void (*handler)(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len); |
len | 339 | net/ipv4/icmp.c | static void icmp_unreach(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
len | 470 | net/ipv4/icmp.c | static void icmp_redirect(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 source, __u32 daddr, int len) |
len | 540 | net/ipv4/icmp.c | static void icmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
len | 546 | net/ipv4/icmp.c | icmp_param.data_len=len; |
len | 560 | net/ipv4/icmp.c | static void icmp_timestamp(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
len | 569 | net/ipv4/icmp.c | if(len<12) |
len | 610 | net/ipv4/icmp.c | static void icmp_address(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
len | 627 | net/ipv4/icmp.c | static void icmp_discard(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
len | 637 | net/ipv4/icmp.c | __u32 daddr, unsigned short len, |
len | 647 | net/ipv4/icmp.c | if (ip_compute_csum((unsigned char *) icmph, len)) |
len | 694 | net/ipv4/icmp.c | len-=sizeof(struct icmphdr); |
len | 696 | net/ipv4/icmp.c | (icmp_pointers[icmph->type].handler)(icmph,skb,skb->dev,saddr,daddr,len); |
len | 427 | net/ipv4/igmp.c | __u32 daddr, unsigned short len, __u32 saddr, int redo, |
len | 447 | 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 | 71 | net/ipv4/ip_alias.c | ip_alias_print_1(struct net_alias_type *this, struct net_alias *alias, char *buf, int len) |
len | 45 | net/ipv4/ip_forward.c | static void ip_encap(struct sk_buff *skb, int len, struct device *out, __u32 daddr) |
len | 53 | net/ipv4/ip_forward.c | if(len>65515) |
len | 54 | net/ipv4/ip_forward.c | len=65515; |
len | 63 | net/ipv4/ip_forward.c | iph->tot_len = htons(skb->len); |
len | 73 | net/ipv4/ip_forward.c | if (out->hard_header && out->hard_header(skb, out, ETH_P_IP, NULL, NULL, len)<0) |
len | 248 | net/ipv4/ip_forward.c | if (skb->len+encap > dev2->mtu && (ntohs(iph->frag_off) & IP_DF)) |
len | 260 | net/ipv4/ip_forward.c | skb2 = alloc_skb(dev2->hard_header_len + skb->len + encap + 15, GFP_ATOMIC); |
len | 264 | net/ipv4/ip_forward.c | skb2 = alloc_skb(dev2->hard_header_len + skb->len + 15, GFP_ATOMIC); |
len | 288 | net/ipv4/ip_forward.c | ip_encap(skb2,skb->len, dev2, raddr); |
len | 292 | net/ipv4/ip_forward.c | ip_send(rt,skb2,raddr,skb->len,dev2,dev2->pa_addr); |
len | 299 | net/ipv4/ip_forward.c | ptr = skb_put(skb2,skb->len); |
len | 306 | net/ipv4/ip_forward.c | memcpy(ptr, skb->h.raw, skb->len); |
len | 320 | net/ipv4/ip_forward.c | ip_encap(skb,skb->len, dev2, raddr); |
len | 339 | net/ipv4/ip_forward.c | if(dev2->hard_header(skb, dev2, ETH_P_IP, NULL, NULL, skb->len)<0) |
len | 418 | net/ipv4/ip_forward.c | if(skb2->len > dev2->mtu + dev2->hard_header_len) |
len | 64 | net/ipv4/ip_fragment.c | extern __inline__ void frag_kfree_s(void *ptr, int len) |
len | 69 | net/ipv4/ip_fragment.c | ip_frag_mem-=len; |
len | 71 | net/ipv4/ip_fragment.c | kfree_s(ptr,len); |
len | 107 | net/ipv4/ip_fragment.c | fp->len = end - offset; |
len | 281 | net/ipv4/ip_fragment.c | qp->len = 0; |
len | 314 | net/ipv4/ip_fragment.c | if (qp->len == 0) |
len | 347 | net/ipv4/ip_fragment.c | int count, len; |
len | 352 | net/ipv4/ip_fragment.c | len = qp->ihlen + qp->len; |
len | 354 | net/ipv4/ip_fragment.c | if ((skb = dev_alloc_skb(len)) == NULL) |
len | 363 | net/ipv4/ip_fragment.c | skb_put(skb,len); |
len | 378 | net/ipv4/ip_fragment.c | if(count+fp->len > skb->len) |
len | 386 | net/ipv4/ip_fragment.c | memcpy((ptr + fp->offset), fp->ptr, fp->len); |
len | 387 | net/ipv4/ip_fragment.c | count += fp->len; |
len | 500 | net/ipv4/ip_fragment.c | qp->len = end; |
len | 540 | net/ipv4/ip_fragment.c | tmp->len -= i; /* so reduce size of */ |
len | 547 | net/ipv4/ip_fragment.c | if (tmp->len <= 0) |
len | 624 | net/ipv4/ip_fragment.c | int left, mtu, hlen, len; |
len | 696 | net/ipv4/ip_fragment.c | len = left; |
len | 698 | net/ipv4/ip_fragment.c | if (len > mtu) |
len | 699 | net/ipv4/ip_fragment.c | len = mtu; |
len | 702 | net/ipv4/ip_fragment.c | if (len < left) |
len | 704 | net/ipv4/ip_fragment.c | len/=8; |
len | 705 | net/ipv4/ip_fragment.c | len*=8; |
len | 711 | net/ipv4/ip_fragment.c | if ((skb2 = alloc_skb(len + hlen+15,GFP_ATOMIC)) == NULL) |
len | 726 | net/ipv4/ip_fragment.c | skb_put(skb2,len + hlen); |
len | 752 | net/ipv4/ip_fragment.c | memcpy(skb2->h.raw + hlen, ptr, len); |
len | 753 | net/ipv4/ip_fragment.c | left -= len; |
len | 779 | net/ipv4/ip_fragment.c | ptr += len; |
len | 780 | net/ipv4/ip_fragment.c | offset += len; |
len | 646 | net/ipv4/ip_fw.c | while (skb->len - ((unsigned char *)data - skb->h.raw) > 18) |
len | 746 | net/ipv4/ip_fw.c | printk("MASQUERADE: resizing needed for %d bytes (%ld)\n",diff, skb->len); |
len | 748 | net/ipv4/ip_fw.c | skb2 = alloc_skb(MAX_HEADER + skb->len+diff, GFP_ATOMIC); |
len | 755 | net/ipv4/ip_fw.c | skb_put(skb2,skb->len + diff); |
len | 772 | net/ipv4/ip_fw.c | skb->len - (data-(char *)skb->data)); |
len | 778 | net/ipv4/ip_fw.c | iph->tot_len = htons(skb->len + diff); |
len | 792 | net/ipv4/ip_fw.c | unsigned long daddr, int len) |
len | 795 | net/ipv4/ip_fw.c | uh->check=csum_tcpudp_magic(saddr,daddr,len, |
len | 796 | net/ipv4/ip_fw.c | IPPROTO_UDP, csum_partial((char *)uh,len,0)); |
len | 864 | net/ipv4/ip_fw.c | size = skb->len - ((unsigned char *)portptr - skb->h.raw); |
len | 886 | net/ipv4/ip_fw.c | size = skb->len - ((unsigned char *)portptr-skb->h.raw); |
len | 959 | net/ipv4/ip_fw.c | int size = skb->len - ((unsigned char *)portptr - skb->h.raw); |
len | 1051 | net/ipv4/ip_fw.c | static int insert_in_chain(struct ip_fw *volatile* chainptr, struct ip_fw *frwl,int len) |
len | 1067 | net/ipv4/ip_fw.c | memcpy(ftmp, frwl, len); |
len | 1081 | net/ipv4/ip_fw.c | static int append_to_chain(struct ip_fw *volatile* chainptr, struct ip_fw *frwl,int len) |
len | 1099 | net/ipv4/ip_fw.c | memcpy(ftmp, frwl, len); |
len | 1197 | net/ipv4/ip_fw.c | struct ip_fw *check_ipfw_struct(struct ip_fw *frwl, int len) |
len | 1200 | net/ipv4/ip_fw.c | if ( len != sizeof(struct ip_fw) ) |
len | 1203 | net/ipv4/ip_fw.c | printk("ip_fw_ctl: len=%d, want %d\n",len, sizeof(struct ip_fw)); |
len | 1260 | net/ipv4/ip_fw.c | int ip_acct_ctl(int stage, void *m, int len) |
len | 1277 | net/ipv4/ip_fw.c | if (!(frwl=check_ipfw_struct(m,len))) |
len | 1283 | net/ipv4/ip_fw.c | return( insert_in_chain(&ip_acct_chain,frwl,len)); |
len | 1285 | net/ipv4/ip_fw.c | return( append_to_chain(&ip_acct_chain,frwl,len)); |
len | 1306 | net/ipv4/ip_fw.c | int ip_fw_ctl(int stage, void *m, int len) |
len | 1339 | net/ipv4/ip_fw.c | if ( len < sizeof(struct ip_fwpkt) ) |
len | 1343 | net/ipv4/ip_fw.c | len, sizeof(struct ip_fwpkt)); |
len | 1383 | net/ipv4/ip_fw.c | frwl=check_ipfw_struct(m,len); |
len | 1391 | net/ipv4/ip_fw.c | return(insert_in_chain(chains[fwtype],frwl,len)); |
len | 1393 | net/ipv4/ip_fw.c | return(append_to_chain(chains[fwtype],frwl,len)); |
len | 1422 | net/ipv4/ip_fw.c | int len, p; |
len | 1430 | net/ipv4/ip_fw.c | len=sprintf(buffer, "IP firewall input rules, default %d\n", |
len | 1435 | net/ipv4/ip_fw.c | len=sprintf(buffer, "IP firewall output rules, default %d\n", |
len | 1440 | net/ipv4/ip_fw.c | len=sprintf(buffer, "IP firewall forward rules, default %d\n", |
len | 1447 | net/ipv4/ip_fw.c | len=sprintf(buffer,"IP accounting rules\n"); |
len | 1453 | net/ipv4/ip_fw.c | len=0; |
len | 1462 | net/ipv4/ip_fw.c | len+=sprintf(buffer+len,"%08lX/%08lX->%08lX/%08lX %08lX %X ", |
len | 1466 | net/ipv4/ip_fw.c | len+=sprintf(buffer+len,"%u %u %-9lu %-9lu", |
len | 1469 | net/ipv4/ip_fw.c | len+=sprintf(buffer+len, " %u", i->fw_pts[p]); |
len | 1470 | net/ipv4/ip_fw.c | len+=sprintf(buffer+len, " A%02X X%02X", i->fw_tosand, i->fw_tosxor); |
len | 1471 | net/ipv4/ip_fw.c | buffer[len++]='\n'; |
len | 1472 | net/ipv4/ip_fw.c | buffer[len]='\0'; |
len | 1473 | net/ipv4/ip_fw.c | pos=begin+len; |
len | 1476 | net/ipv4/ip_fw.c | len=0; |
len | 1491 | net/ipv4/ip_fw.c | len-=(offset-begin); |
len | 1492 | net/ipv4/ip_fw.c | if(len>length) |
len | 1493 | net/ipv4/ip_fw.c | len=length; |
len | 1494 | net/ipv4/ip_fw.c | return len; |
len | 1541 | net/ipv4/ip_fw.c | int len=0; |
len | 1543 | net/ipv4/ip_fw.c | len=sprintf(buffer,"Prc FromIP FPrt ToIP TPrt Masq Init-seq Delta PDelta Expires\n"); |
len | 1553 | net/ipv4/ip_fw.c | len+=sprintf(buffer+len,"%s %08lX:%04X %08lX:%04X %04X %08X %6d %6d %lu\n", |
len | 1562 | net/ipv4/ip_fw.c | pos=begin+len; |
len | 1565 | net/ipv4/ip_fw.c | len=0; |
len | 1574 | net/ipv4/ip_fw.c | len-=(offset-begin); |
len | 1575 | net/ipv4/ip_fw.c | if(len>length) |
len | 1576 | net/ipv4/ip_fw.c | len=length; |
len | 1577 | net/ipv4/ip_fw.c | return len; |
len | 247 | net/ipv4/ip_input.c | if (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0 |
len | 248 | net/ipv4/ip_input.c | || skb->len < ntohs(iph->tot_len)) |
len | 369 | net/ipv4/ip_options.c | if (ts->ptr+3 > ts->len) |
len | 384 | net/ipv4/ip_options.c | if (ts->ptr+7 > ts->len) |
len | 400 | net/ipv4/ip_options.c | if (ts->ptr+7 > ts->len) |
len | 70 | net/ipv4/ip_output.c | int len=ntohs(skb->ip_hdr->tot_len); |
len | 71 | net/ipv4/ip_output.c | struct sk_buff *newskb=dev_alloc_skb(len+dev->hard_header_len+15); |
len | 90 | net/ipv4/ip_output.c | ip_send(NULL,newskb, skb->ip_hdr->daddr, len, dev, skb->ip_hdr->saddr); |
len | 94 | net/ipv4/ip_output.c | newskb->ip_hdr=(struct iphdr *)skb_put(newskb, len); |
len | 100 | net/ipv4/ip_output.c | memcpy(newskb->ip_hdr,skb->ip_hdr,len); |
len | 114 | net/ipv4/ip_output.c | int ip_send(struct rtable * rt, struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr) |
len | 140 | net/ipv4/ip_output.c | mac = dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, len); |
len | 151 | net/ipv4/ip_output.c | static int ip_send_room(struct rtable * rt, struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr) |
len | 173 | net/ipv4/ip_output.c | mac = dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, len); |
len | 194 | net/ipv4/ip_output.c | int len, int tos, int ttl, struct rtable ** rp) |
len | 263 | net/ipv4/ip_output.c | tmp = ip_send_room(rt, skb, raddr, len, *dev, saddr); |
len | 265 | net/ipv4/ip_output.c | tmp = ip_send(rt, skb, raddr, len, *dev, saddr); |
len | 366 | net/ipv4/ip_output.c | iph->tot_len = ntohs(skb->len-(((unsigned char *)iph)-skb->data)); |
len | 48 | net/ipv4/ip_sockglue.c | int len=0; |
len | 51 | net/ipv4/ip_sockglue.c | len=sprintf(buffer,"Device : Count\tGroup Users Timer\n"); |
len | 59 | net/ipv4/ip_sockglue.c | len+=sprintf(buffer+len,"%-10s: %5d\n", |
len | 63 | net/ipv4/ip_sockglue.c | len+=sprintf(buffer+len, |
len | 67 | net/ipv4/ip_sockglue.c | pos=begin+len; |
len | 70 | net/ipv4/ip_sockglue.c | len=0; |
len | 80 | net/ipv4/ip_sockglue.c | len-=(offset-begin); |
len | 81 | net/ipv4/ip_sockglue.c | if(len>length) |
len | 82 | net/ipv4/ip_sockglue.c | len=length; |
len | 83 | net/ipv4/ip_sockglue.c | return len; |
len | 434 | net/ipv4/ip_sockglue.c | int len; |
len | 522 | net/ipv4/ip_sockglue.c | len=strlen(sk->ip_mc_name); |
len | 523 | net/ipv4/ip_sockglue.c | err=verify_area(VERIFY_WRITE, optval, len); |
len | 526 | net/ipv4/ip_sockglue.c | put_user(len,(int *) optlen); |
len | 527 | net/ipv4/ip_sockglue.c | memcpy_tofs((void *)optval,sk->ip_mc_name, len); |
len | 53 | net/ipv4/ipip.c | __u32 daddr, unsigned short len, __u32 saddr, |
len | 279 | net/ipv4/ipmr.c | skb->ip_hdr->tot_len=htons(skb->len); /* Fix the length */ |
len | 712 | net/ipv4/ipmr.c | vif->bytes_out+=skb->len; |
len | 740 | net/ipv4/ipmr.c | vif_table[vif].bytes_in+=skb->len; |
len | 799 | net/ipv4/ipmr.c | int len=0; |
len | 805 | net/ipv4/ipmr.c | len += sprintf(buffer, |
len | 807 | net/ipv4/ipmr.c | pos=len; |
len | 816 | net/ipv4/ipmr.c | size = sprintf(buffer+len, "%-10s %8ld %7ld %8ld %7ld %05X %08lX %08lX\n", |
len | 819 | net/ipv4/ipmr.c | len+=size; |
len | 823 | net/ipv4/ipmr.c | len=0; |
len | 831 | net/ipv4/ipmr.c | len-=(offset-begin); |
len | 832 | net/ipv4/ipmr.c | if(len>length) |
len | 833 | net/ipv4/ipmr.c | len=length; |
len | 834 | net/ipv4/ipmr.c | return len; |
len | 840 | net/ipv4/ipmr.c | int len=0; |
len | 846 | net/ipv4/ipmr.c | len += sprintf(buffer, |
len | 848 | net/ipv4/ipmr.c | pos=len; |
len | 876 | net/ipv4/ipmr.c | size = sprintf(buffer+len, "%08lX %08lX %-8s %s\n", |
len | 881 | net/ipv4/ipmr.c | len+=size; |
len | 885 | net/ipv4/ipmr.c | len=0; |
len | 899 | net/ipv4/ipmr.c | len-=(offset-begin); |
len | 900 | net/ipv4/ipmr.c | if(len>length) |
len | 901 | net/ipv4/ipmr.c | len=length; |
len | 902 | net/ipv4/ipmr.c | return len; |
len | 122 | net/ipv4/packet.c | static int packet_sendmsg(struct sock *sk, struct msghdr *msg, int len, |
len | 164 | net/ipv4/packet.c | if(len>dev->mtu+dev->hard_header_len) |
len | 167 | net/ipv4/packet.c | skb = sock_wmalloc(sk, len, 0, GFP_KERNEL); |
len | 186 | net/ipv4/packet.c | memcpy_fromiovec(skb_put(skb,len), msg->msg_iov, len); |
len | 197 | net/ipv4/packet.c | return(len); |
len | 378 | net/ipv4/packet.c | int packet_recvmsg(struct sock *sk, struct msghdr *msg, int len, |
len | 426 | net/ipv4/packet.c | copied = min(len, skb->len); |
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 | 486 | net/ipv4/rarp.c | int len=0; |
len | 497 | net/ipv4/rarp.c | len+=size; |
len | 504 | net/ipv4/rarp.c | len+=size; |
len | 516 | net/ipv4/rarp.c | size = sprintf(buffer+len, |
len | 527 | net/ipv4/rarp.c | len+=size; |
len | 528 | net/ipv4/rarp.c | pos=begin+len; |
len | 532 | net/ipv4/rarp.c | len=0; |
len | 542 | net/ipv4/rarp.c | len -= (offset-begin); /* Start slop */ |
len | 543 | net/ipv4/rarp.c | if (len>length) |
len | 544 | net/ipv4/rarp.c | len = length; /* Ending slop */ |
len | 545 | net/ipv4/rarp.c | return len; |
len | 191 | net/ipv4/raw.c | int len, int noblock, unsigned flags, struct sockaddr_in *usin, int addr_len) |
len | 240 | net/ipv4/raw.c | if(len>65535) |
len | 242 | net/ipv4/raw.c | err=ip_build_xmit(sk, raw_getrawfrag, from, len, sin.sin_addr.s_addr, 0, sk->opt, flags, sin.sin_port, noblock); |
len | 246 | net/ipv4/raw.c | if(len>65535-sizeof(struct iphdr)) |
len | 248 | net/ipv4/raw.c | err=ip_build_xmit(sk, raw_getfrag, from, len, sin.sin_addr.s_addr, 0, sk->opt, flags, sin.sin_port, noblock); |
len | 250 | net/ipv4/raw.c | return err<0?err:len; |
len | 257 | net/ipv4/raw.c | static int raw_sendmsg(struct sock *sk, struct msghdr *msg, int len, int noblock, |
len | 261 | net/ipv4/raw.c | return raw_sendto(sk,msg->msg_iov[0].iov_base,len, noblock, flags, msg->msg_name, msg->msg_namelen); |
len | 273 | net/ipv4/raw.c | if(len>65515) |
len | 275 | net/ipv4/raw.c | buf=kmalloc(len, GFP_KERNEL); |
len | 278 | net/ipv4/raw.c | memcpy_fromiovec(buf, msg->msg_iov, len); |
len | 281 | net/ipv4/raw.c | err=raw_sendto(sk,buf,len, noblock, flags, msg->msg_name, msg->msg_namelen); |
len | 283 | net/ipv4/raw.c | kfree_s(buf,len); |
len | 312 | net/ipv4/raw.c | int raw_recvmsg(struct sock *sk, struct msghdr *msg, int len, |
len | 333 | net/ipv4/raw.c | copied = min(len, skb->len); |
len | 806 | net/ipv4/route.c | int len=0; |
len | 816 | net/ipv4/route.c | len = 128; |
len | 834 | net/ipv4/route.c | len = 0; |
len | 862 | net/ipv4/route.c | len=0; |
len | 871 | net/ipv4/route.c | sprintf(buffer+len,"%-127s\n",temp); |
len | 873 | net/ipv4/route.c | len += 128; |
len | 884 | net/ipv4/route.c | *start = buffer+len-(pos-offset); |
len | 885 | net/ipv4/route.c | len = pos - offset; |
len | 886 | net/ipv4/route.c | if (len>length) |
len | 887 | net/ipv4/route.c | len = length; |
len | 888 | net/ipv4/route.c | return len; |
len | 893 | net/ipv4/route.c | int len=0; |
len | 904 | net/ipv4/route.c | len = 128; |
len | 923 | net/ipv4/route.c | len = 0; |
len | 931 | net/ipv4/route.c | sprintf(buffer+len,"%-127s\n",temp); |
len | 932 | net/ipv4/route.c | len += 128; |
len | 942 | net/ipv4/route.c | *start = buffer+len-(pos-offset); |
len | 943 | net/ipv4/route.c | len = pos-offset; |
len | 944 | net/ipv4/route.c | if (len>length) |
len | 945 | net/ipv4/route.c | len = length; |
len | 946 | net/ipv4/route.c | return len; |
len | 632 | net/ipv4/tcp.c | sum = skb->len - (counted - skb->seq); /* Length - header but start from where we are up to (avoid overlaps) */ |
len | 807 | net/ipv4/tcp.c | unsigned long daddr, int len, struct sk_buff *skb) |
len | 813 | net/ipv4/tcp.c | th->check = tcp_check(th, len, saddr, daddr, |
len | 819 | net/ipv4/tcp.c | th->check = tcp_check(th, len, saddr, daddr, |
len | 820 | net/ipv4/tcp.c | csum_partial((char *)th,len,0)); |
len | 893 | net/ipv4/tcp.c | int len, int nonblock, int flags) |
len | 1018 | net/ipv4/tcp.c | len -= copy; |
len | 1130 | net/ipv4/tcp.c | len -= copy; |
len | 1150 | net/ipv4/tcp.c | int len, int nonblock, int flags) |
len | 1178 | net/ipv4/tcp.c | retval = do_tcp_sendmsg(sk, msg, len, nonblock, flags); |
len | 1286 | net/ipv4/tcp.c | struct msghdr *msg, int len, int flags, int *addr_len) |
len | 1433 | net/ipv4/tcp.c | int len, int nonblock, int flags, int *addr_len) |
len | 1453 | net/ipv4/tcp.c | return tcp_recv_urg(sk, nonblock, msg, len, flags, addr_len); |
len | 1468 | net/ipv4/tcp.c | while (len > 0) |
len | 1496 | net/ipv4/tcp.c | if (offset < skb->len) |
len | 1566 | net/ipv4/tcp.c | used = skb->len - offset; |
len | 1567 | net/ipv4/tcp.c | if (len < used) |
len | 1568 | net/ipv4/tcp.c | used = len; |
len | 1608 | net/ipv4/tcp.c | len -= used; |
len | 1620 | net/ipv4/tcp.c | if (used + offset < skb->len) |
len | 154 | net/ipv4/tcp_input.c | static void bad_tcp_sequence(struct sock *sk, struct tcphdr *th, short len, |
len | 588 | net/ipv4/tcp_input.c | static int tcp_ack(struct sock *sk, struct tcphdr *th, u32 ack, int len) |
len | 623 | net/ipv4/tcp_input.c | if (len != th->doff*4) |
len | 1190 | net/ipv4/tcp_input.c | unsigned long saddr, unsigned short len) |
len | 1199 | net/ipv4/tcp_input.c | skb_trim(skb,len-(th->doff*4)); |
len | 1206 | net/ipv4/tcp_input.c | sk->bytes_rcv += skb->len; |
len | 1208 | net/ipv4/tcp_input.c | if (skb->len == 0 && !th->fin) |
len | 1235 | net/ipv4/tcp_input.c | if(skb->len) /* We don't care if it's just an ack or |
len | 1238 | net/ipv4/tcp_input.c | new_seq = skb->seq + skb->len + th->syn; /* Right edge of _data_ part of frame */ |
len | 1315 | net/ipv4/tcp_input.c | if (skb->seq==skb1->seq && skb->len>=skb1->len) |
len | 1539 | net/ipv4/tcp_input.c | static inline void tcp_urg(struct sock *sk, struct tcphdr *th, unsigned long len) |
len | 1559 | net/ipv4/tcp_input.c | if (ptr < len) { |
len | 1574 | net/ipv4/tcp_input.c | __u32 daddr, unsigned short len, |
len | 1606 | net/ipv4/tcp_input.c | skb->csum = csum_partial((char *)th, len, 0); |
len | 1608 | net/ipv4/tcp_input.c | if (tcp_check(th, len, saddr, daddr, skb->csum)) |
len | 1618 | net/ipv4/tcp_input.c | skb->end_seq = skb->seq + th->syn + th->fin + len - th->doff*4; |
len | 1740 | net/ipv4/tcp_input.c | if(!tcp_ack(sk,th,skb->ack_seq,len)) |
len | 1865 | net/ipv4/tcp_input.c | bad_tcp_sequence(sk, th, len, opt, saddr, dev); |
len | 1890 | net/ipv4/tcp_input.c | if(th->ack && !tcp_ack(sk,th,skb->ack_seq,len)) |
len | 1923 | net/ipv4/tcp_input.c | tcp_urg(sk, th, len); |
len | 1929 | net/ipv4/tcp_input.c | if(tcp_data(skb,sk, saddr, len)) |
len | 40 | net/ipv4/tcp_output.c | size = skb->len - ((unsigned char *) th - skb->data); |
len | 46 | net/ipv4/tcp_output.c | if (size < sizeof(struct tcphdr) || size > skb->len) |
len | 49 | net/ipv4/tcp_output.c | skb, skb->data, th, skb->len); |
len | 272 | net/ipv4/tcp_output.c | size = skb->len - (((unsigned char *) th) - skb->data); |
len | 416 | net/ipv4/tcp_output.c | if(dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, skb->len)<0) |
len | 66 | net/ipv4/timer.c | void reset_timer (struct sock *t, int timeout, unsigned long len) |
len | 72 | net/ipv4/timer.c | if ((int) len < 0) /* prevent close to infinite timers. THEY _DO_ */ |
len | 73 | net/ipv4/timer.c | len = 3; /* happen (negative values ?) - don't ask me why ! -FB */ |
len | 75 | net/ipv4/timer.c | t->timer.expires = jiffies+len; |
len | 138 | net/ipv4/udp.c | static int udp_deliver(struct sock *sk, struct udphdr *uh, struct sk_buff *skb, struct device *dev, long saddr, long daddr, int len); |
len | 211 | net/ipv4/udp.c | static unsigned short udp_check(struct udphdr *uh, int len, unsigned long saddr, unsigned long daddr, unsigned long base) |
len | 213 | net/ipv4/udp.c | return(csum_tcpudp_magic(saddr, daddr, len, IPPROTO_UDP, base)); |
len | 236 | net/ipv4/udp.c | unsigned int len; |
len | 240 | net/ipv4/udp.c | len = fraglen; |
len | 246 | net/ipv4/udp.c | len = fraglen-sizeof(struct udphdr); |
len | 250 | net/ipv4/udp.c | ufh->wcheck = csum_partial_copy_fromuser(src, dst, len, ufh->wcheck); |
len | 256 | net/ipv4/udp.c | ntohs(ufh->uh.len), |
len | 276 | net/ipv4/udp.c | unsigned int len; |
len | 280 | net/ipv4/udp.c | len = fraglen; |
len | 286 | net/ipv4/udp.c | len = fraglen-sizeof(struct udphdr); |
len | 290 | net/ipv4/udp.c | memcpy_fromfs(dst,src,len); |
len | 301 | net/ipv4/udp.c | const unsigned char *from, int len, int rt, |
len | 304 | net/ipv4/udp.c | int ulen = len + sizeof(struct udphdr); |
len | 313 | net/ipv4/udp.c | ufh.uh.len = htons(ulen); |
len | 334 | net/ipv4/udp.c | return len; |
len | 338 | net/ipv4/udp.c | static int udp_sendto(struct sock *sk, const unsigned char *from, int len, int noblock, |
len | 398 | net/ipv4/udp.c | tmp = udp_send(sk, usin, from, len, flags, saddr, noblock); |
len | 409 | net/ipv4/udp.c | static int udp_sendmsg(struct sock *sk, struct msghdr *msg, int len, int noblock, |
len | 413 | net/ipv4/udp.c | return udp_sendto(sk,msg->msg_iov[0].iov_base,len, noblock, flags, msg->msg_name, msg->msg_namelen); |
len | 425 | net/ipv4/udp.c | if(len>65515) |
len | 427 | net/ipv4/udp.c | buf=kmalloc(len, GFP_KERNEL); |
len | 430 | net/ipv4/udp.c | memcpy_fromiovec(buf, msg->msg_iov, len); |
len | 433 | net/ipv4/udp.c | err=udp_sendto(sk,buf,len, noblock, flags, msg->msg_name, msg->msg_namelen); |
len | 435 | net/ipv4/udp.c | kfree_s(buf,len); |
len | 477 | net/ipv4/udp.c | amount = skb->len-sizeof(struct udphdr); |
len | 499 | net/ipv4/udp.c | int udp_recvmsg(struct sock *sk, struct msghdr *msg, int len, |
len | 524 | net/ipv4/udp.c | truesize = skb->len - sizeof(struct udphdr); |
len | 525 | net/ipv4/udp.c | copied = min(len, truesize); |
len | 593 | net/ipv4/udp.c | __u32 daddr, unsigned short len, |
len | 616 | net/ipv4/udp.c | ulen = ntohs(uh->len); |
len | 618 | net/ipv4/udp.c | if (ulen > len || len < sizeof(*uh) || ulen < sizeof(*uh)) |
len | 620 | net/ipv4/udp.c | NETDEBUG(printk("UDP: short packet: %d/%d\n", ulen, len)); |
len | 634 | net/ipv4/udp.c | ( (skb->ip_summed == CHECKSUM_HW) && udp_check(uh, len, saddr, daddr, skb->csum ) ) || |
len | 635 | net/ipv4/udp.c | ( (skb->ip_summed == CHECKSUM_NONE) && udp_check(uh, len, saddr, daddr,csum_partial((char*)uh, len, 0))) |
len | 656 | net/ipv4/udp.c | len=ulen; |
len | 679 | net/ipv4/udp.c | udp_deliver(sk, uh, skb1, dev,saddr,daddr,len); |
len | 716 | net/ipv4/udp.c | return udp_deliver(sk,uh,skb,dev, saddr, daddr, len); |
len | 719 | 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 | 723 | net/ipv4/udp.c | skb_trim(skb,len); |
len | 536 | net/ipx/af_ipx.c | int len; |
len | 545 | net/ipx/af_ipx.c | len = skb->len + out_offset; |
len | 546 | net/ipx/af_ipx.c | skb2 = alloc_skb(len, GFP_ATOMIC); |
len | 549 | net/ipx/af_ipx.c | skb2->h.raw=skb_put(skb2,skb->len); |
len | 552 | net/ipx/af_ipx.c | memcpy(skb2->h.raw, skb->h.raw, skb->len); |
len | 1157 | net/ipx/af_ipx.c | static int ipxrtr_route_packet(ipx_socket *sk, struct sockaddr_ipx *usipx, struct iovec *iov, int len) |
len | 1183 | net/ipx/af_ipx.c | size=sizeof(ipx_packet)+len; |
len | 1198 | net/ipx/af_ipx.c | ipx->ipx_pktsize=htons(len+sizeof(ipx_packet)); |
len | 1224 | net/ipx/af_ipx.c | memcpy_fromiovec(skb_put(skb,len),iov,len); |
len | 1324 | net/ipx/af_ipx.c | int len=0; |
len | 1330 | net/ipx/af_ipx.c | len += sprintf (buffer,"%-11s%-15s%-9s%-11s%s\n", "Network", |
len | 1333 | net/ipx/af_ipx.c | len += sprintf(buffer+len, "%08lX ", ntohl(i->if_netnum)); |
len | 1334 | net/ipx/af_ipx.c | len += sprintf (buffer+len,"%02X%02X%02X%02X%02X%02X ", |
len | 1337 | net/ipx/af_ipx.c | len += sprintf(buffer+len, "%-9s", (i == ipx_primary_net) ? |
len | 1339 | net/ipx/af_ipx.c | len += sprintf (buffer+len, "%-11s", ipx_device_name(i)); |
len | 1340 | net/ipx/af_ipx.c | len += sprintf (buffer+len, "%s\n", |
len | 1344 | net/ipx/af_ipx.c | pos=begin+len; |
len | 1347 | net/ipx/af_ipx.c | len=0; /* Keep dumping into the buffer start */ |
len | 1356 | net/ipx/af_ipx.c | len-=(offset-begin); /* Remove unwanted header data from length */ |
len | 1357 | net/ipx/af_ipx.c | if(len>length) |
len | 1358 | net/ipx/af_ipx.c | len=length; /* Remove unwanted tail data from length */ |
len | 1360 | net/ipx/af_ipx.c | return len; |
len | 1368 | net/ipx/af_ipx.c | int len=0; |
len | 1375 | net/ipx/af_ipx.c | len += sprintf (buffer,"%-28s%-28s%-10s%-10s%-7s%s\n", "Local_Address", |
len | 1377 | net/ipx/af_ipx.c | len += sprintf (buffer,"%-15s%-28s%-10s%-10s%-7s%s\n", "Local_Address", |
len | 1384 | net/ipx/af_ipx.c | len += sprintf(buffer+len, |
len | 1392 | net/ipx/af_ipx.c | len += sprintf(buffer+len,"%08lX:%04X ", |
len | 1397 | net/ipx/af_ipx.c | len += sprintf(buffer+len, "%-28s", "Not_Connected"); |
len | 1399 | net/ipx/af_ipx.c | len += sprintf (buffer+len, |
len | 1407 | net/ipx/af_ipx.c | len += sprintf (buffer+len,"%08lX %08lX ", |
len | 1409 | net/ipx/af_ipx.c | len += sprintf (buffer+len,"%02X %03d\n", |
len | 1413 | net/ipx/af_ipx.c | pos=begin+len; |
len | 1417 | net/ipx/af_ipx.c | len=0; /* Keep dumping into the buffer start */ |
len | 1427 | net/ipx/af_ipx.c | len-=(offset-begin); /* Remove unwanted header data from length */ |
len | 1428 | net/ipx/af_ipx.c | if(len>length) |
len | 1429 | net/ipx/af_ipx.c | len=length; /* Remove unwanted tail data from length */ |
len | 1431 | net/ipx/af_ipx.c | return len; |
len | 1438 | net/ipx/af_ipx.c | int len=0; |
len | 1442 | net/ipx/af_ipx.c | len += sprintf (buffer,"%-11s%-13s%s\n", |
len | 1446 | net/ipx/af_ipx.c | len += sprintf (buffer+len,"%08lX ", ntohl(rt->ir_net)); |
len | 1448 | net/ipx/af_ipx.c | len += sprintf (buffer+len,"%08lX %02X%02X%02X%02X%02X%02X\n", |
len | 1454 | net/ipx/af_ipx.c | len += sprintf (buffer+len, "%-13s%s\n", |
len | 1457 | net/ipx/af_ipx.c | pos=begin+len; |
len | 1460 | net/ipx/af_ipx.c | len=0; |
len | 1467 | net/ipx/af_ipx.c | len-=(offset-begin); |
len | 1468 | net/ipx/af_ipx.c | if(len>length) |
len | 1469 | net/ipx/af_ipx.c | len=length; |
len | 1470 | net/ipx/af_ipx.c | return len; |
len | 1574 | net/ipx/af_ipx.c | static void def_callback2(struct sock *sk, int len) |
len | 1870 | net/ipx/af_ipx.c | void dump_data(char *str,unsigned char *d, int len) { |
len | 1874 | net/ipx/af_ipx.c | for (l=0;len > 0 && l<16;l++) { |
len | 1876 | net/ipx/af_ipx.c | for (i=0; i < 8 ; i++, --len) { |
len | 1877 | net/ipx/af_ipx.c | if (len > 0) { |
len | 1889 | net/ipx/af_ipx.c | len += 8; |
len | 1890 | net/ipx/af_ipx.c | for (i=0; i < 8 ; i++, --len) |
len | 1891 | net/ipx/af_ipx.c | if (len > 0) |
len | 1916 | net/ipx/af_ipx.c | int len = ntohs(p->ipx_pktsize); |
len | 1918 | net/ipx/af_ipx.c | if (len > 30) |
len | 1919 | net/ipx/af_ipx.c | dump_data(str,(unsigned char *)p + 30, len - 30); |
len | 1963 | net/ipx/af_ipx.c | static int ipx_sendmsg(struct socket *sock, struct msghdr *msg, int len, int noblock, |
len | 2009 | net/ipx/af_ipx.c | retval = ipxrtr_route_packet(sk, usipx, msg->msg_iov, len); |
len | 2012 | net/ipx/af_ipx.c | return len; |
len | 2092 | net/ipx/af_ipx.c | amount=skb->len-sizeof(struct ipx_packet); |
len | 103 | net/netlink.c | rdq_size[minor]-=skb->len; |
len | 105 | net/netlink.c | if(skb->len<count) |
len | 106 | net/netlink.c | count=skb->len; |
len | 202 | net/netlink.c | if(rdq_size[unit]+skb->len>MAX_QBYTES) |
len | 207 | net/netlink.c | rdq_size[unit]+=skb->len; |
len | 404 | net/netrom/af_netrom.c | static void def_callback2(struct sock *sk, int len) |
len | 936 | net/netrom/af_netrom.c | if ((frametype & 0x0F) == NR_CONNACK && skb->len == 22) |
len | 979 | net/netrom/af_netrom.c | if (skb->len == 37) { |
len | 1006 | net/netrom/af_netrom.c | sk->data_ready(sk, skb->len); |
len | 1011 | net/netrom/af_netrom.c | static int nr_sendmsg(struct socket *sock, struct msghdr *msg, int len, int noblock, int flags) |
len | 1055 | net/netrom/af_netrom.c | size = len + AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + NR_NETWORK_LEN + NR_TRANSPORT_LEN; |
len | 1064 | net/netrom/af_netrom.c | skb_reserve(skb, size - len); |
len | 1090 | net/netrom/af_netrom.c | skb->h.raw = skb_put(skb, len); |
len | 1098 | net/netrom/af_netrom.c | memcpy_fromiovec(asmptr, msg->msg_iov, len); |
len | 1110 | net/netrom/af_netrom.c | return len; |
len | 1145 | net/netrom/af_netrom.c | copied = (size < skb->len) ? size : skb->len; |
len | 1197 | net/netrom/af_netrom.c | amount = skb->len - 20; |
len | 1269 | net/netrom/af_netrom.c | int len = 0; |
len | 1275 | 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 | 1283 | net/netrom/af_netrom.c | len += sprintf(buffer + len, "%-9s ", |
len | 1285 | net/netrom/af_netrom.c | len += sprintf(buffer + len, "%-9s ", |
len | 1287 | 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 | 1302 | net/netrom/af_netrom.c | pos = begin + len; |
len | 1305 | net/netrom/af_netrom.c | len = 0; |
len | 1316 | net/netrom/af_netrom.c | len -= (offset - begin); |
len | 1318 | net/netrom/af_netrom.c | if (len > length) len = length; |
len | 1320 | net/netrom/af_netrom.c | return(len); |
len | 77 | net/netrom/nr_dev.c | void *daddr, void *saddr, unsigned len) |
len | 58 | net/netrom/nr_in.c | sk->nr->fraglen += skb->len; |
len | 64 | net/netrom/nr_in.c | sk->nr->fraglen += skb->len; |
len | 77 | net/netrom/nr_in.c | memcpy(skb_put(skbn, skbo->len), skbo->data, skbo->len); |
len | 82 | net/netrom/nr_in.c | memcpy(skb_put(skbn, skbo->len), skbo->data, skbo->len); |
len | 53 | net/netrom/nr_out.c | int err, frontlen, len, mtu; |
len | 57 | net/netrom/nr_out.c | if (skb->len - NR_TRANSPORT_LEN > mtu) { |
len | 64 | net/netrom/nr_out.c | while (skb->len > 0) { |
len | 74 | net/netrom/nr_out.c | len = (mtu > skb->len) ? skb->len : mtu; |
len | 77 | net/netrom/nr_out.c | memcpy(skb_put(skbn, len), skb->data, len); |
len | 78 | net/netrom/nr_out.c | skb_pull(skb, len); |
len | 84 | net/netrom/nr_out.c | if (skb->len > 0) |
len | 716 | net/netrom/nr_route.c | int len = 0; |
len | 723 | net/netrom/nr_route.c | len += sprintf(buffer, "callsign mnemonic w n qual obs neigh qual obs neigh qual obs neigh\n"); |
len | 726 | net/netrom/nr_route.c | len += sprintf(buffer + len, "%-9s %-7s %d %d", |
len | 733 | net/netrom/nr_route.c | len += sprintf(buffer + len, " %3d %d %05d", |
len | 739 | net/netrom/nr_route.c | len += sprintf(buffer + len, "\n"); |
len | 741 | net/netrom/nr_route.c | pos = begin + len; |
len | 744 | net/netrom/nr_route.c | len = 0; |
len | 755 | net/netrom/nr_route.c | len -= (offset - begin); |
len | 757 | net/netrom/nr_route.c | if (len > length) len = length; |
len | 759 | net/netrom/nr_route.c | return(len); |
len | 766 | net/netrom/nr_route.c | int len = 0; |
len | 772 | net/netrom/nr_route.c | len += sprintf(buffer, "addr callsign dev qual lock count\n"); |
len | 775 | net/netrom/nr_route.c | len += sprintf(buffer + len, "%05d %-9s %-4s %3d %d %3d\n", |
len | 783 | net/netrom/nr_route.c | pos = begin + len; |
len | 786 | net/netrom/nr_route.c | len = 0; |
len | 797 | net/netrom/nr_route.c | len -= (offset - begin); |
len | 799 | net/netrom/nr_route.c | if (len > length) len = length; |
len | 801 | net/netrom/nr_route.c | return(len); |
len | 155 | net/netrom/nr_subr.c | int len, timeout; |
len | 157 | net/netrom/nr_subr.c | len = AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + NR_NETWORK_LEN + NR_TRANSPORT_LEN; |
len | 161 | net/netrom/nr_subr.c | len += 17; |
len | 164 | net/netrom/nr_subr.c | len += (sk->nr->bpqext) ? 2 : 1; |
len | 175 | net/netrom/nr_subr.c | if ((skb = alloc_skb(len, GFP_ATOMIC)) == NULL) |
len | 250 | net/netrom/nr_subr.c | int len; |
len | 252 | net/netrom/nr_subr.c | len = AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + NR_NETWORK_LEN + NR_TRANSPORT_LEN + 1; |
len | 254 | net/netrom/nr_subr.c | if ((skbn = alloc_skb(len, GFP_ATOMIC)) == NULL) |
len | 138 | net/socket.c | int len; |
len | 143 | net/socket.c | len=get_user(ulen); |
len | 144 | net/socket.c | if(len>klen) |
len | 145 | net/socket.c | len=klen; |
len | 146 | net/socket.c | if(len<0 || len> MAX_SOCK_ADDR) |
len | 148 | net/socket.c | if(len) |
len | 150 | net/socket.c | if((err=verify_area(VERIFY_WRITE,uaddr,len))<0) |
len | 152 | net/socket.c | memcpy_tofs(uaddr,kaddr,len); |
len | 154 | net/socket.c | put_user(len,ulen); |
len | 707 | net/socket.c | int len; |
len | 751 | net/socket.c | newsock->ops->getname(newsock, (struct sockaddr *)address, &len, 1); |
len | 752 | net/socket.c | move_addr_to_user(address,len, upeer_sockaddr, upeer_addrlen); |
len | 818 | net/socket.c | int len; |
len | 826 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 0); |
len | 829 | net/socket.c | if((err=move_addr_to_user(address,len, usockaddr, usockaddr_len))<0) |
len | 843 | net/socket.c | int len; |
len | 851 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 1); |
len | 854 | net/socket.c | if((err=move_addr_to_user(address,len, usockaddr, usockaddr_len))<0) |
len | 864 | net/socket.c | asmlinkage int sys_send(int fd, void * buff, int len, unsigned flags) |
len | 877 | net/socket.c | if(len<0) |
len | 879 | net/socket.c | err=verify_area(VERIFY_READ, buff, len); |
len | 884 | net/socket.c | iov.iov_len=len; |
len | 889 | net/socket.c | return(sock->ops->sendmsg(sock, &msg, len, (file->f_flags & O_NONBLOCK), flags)); |
len | 898 | net/socket.c | asmlinkage int sys_sendto(int fd, void * buff, int len, unsigned flags, |
len | 913 | net/socket.c | if(len<0) |
len | 915 | net/socket.c | err=verify_area(VERIFY_READ,buff,len); |
len | 923 | net/socket.c | iov.iov_len=len; |
len | 929 | net/socket.c | return(sock->ops->sendmsg(sock, &msg, len, (file->f_flags & O_NONBLOCK), |
len | 1128 | net/socket.c | int len; |
len | 1148 | net/socket.c | len=sock->ops->recvmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags, &addr_len); |
len | 1149 | net/socket.c | if(len<0) |
len | 1150 | net/socket.c | return len; |
len | 1156 | net/socket.c | return len; |
len | 1390 | net/socket.c | int len = sprintf(buffer, "sockets: used %d\n", sockets_in_use); |
len | 1391 | net/socket.c | if (offset >= len) |
len | 1397 | net/socket.c | len -= offset; |
len | 1398 | net/socket.c | if (len > length) |
len | 1399 | net/socket.c | len = length; |
len | 1400 | net/socket.c | return len; |
len | 74 | net/unix/af_unix.c | static inline void unix_mkname(struct sockaddr_un * sunaddr, unsigned long len) |
len | 76 | net/unix/af_unix.c | if (len >= sizeof(*sunaddr)) |
len | 77 | net/unix/af_unix.c | len = sizeof(*sunaddr)-1; |
len | 78 | net/unix/af_unix.c | ((char *)sunaddr)[len]=0; |
len | 253 | net/unix/af_unix.c | static void def_callback2(struct sock *sk, int len) |
len | 683 | net/unix/af_unix.c | static int unix_sendmsg(struct socket *sock, struct msghdr *msg, int len, int nonblock, int flags) |
len | 742 | net/unix/af_unix.c | while(sent < len) |
len | 749 | net/unix/af_unix.c | size=len-sent; |
len | 889 | net/unix/af_unix.c | int len; |
len | 909 | net/unix/af_unix.c | len=iov->iov_len; |
len | 912 | net/unix/af_unix.c | while(done<len) |
len | 948 | net/unix/af_unix.c | num=min(skb->len,size-copied); |
len | 963 | net/unix/af_unix.c | if (skb->len) { |
len | 1036 | net/unix/af_unix.c | amount=skb->len; |
len | 1054 | net/unix/af_unix.c | int len=0; |
len | 1057 | net/unix/af_unix.c | len+= sprintf(buffer,"Num RefCount Protocol Flags Type St Path\n"); |
len | 1061 | net/unix/af_unix.c | len+=sprintf(buffer+len,"%p: %08X %08X %08lX %04X %02X", |
len | 1069 | net/unix/af_unix.c | len+=sprintf(buffer+len, " %s\n", s->protinfo.af_unix.name); |
len | 1071 | net/unix/af_unix.c | buffer[len++]='\n'; |
len | 1073 | net/unix/af_unix.c | pos=begin+len; |
len | 1076 | net/unix/af_unix.c | len=0; |
len | 1084 | net/unix/af_unix.c | len-=(offset-begin); |
len | 1085 | net/unix/af_unix.c | if(len>length) |
len | 1086 | net/unix/af_unix.c | len=length; |
len | 1087 | net/unix/af_unix.c | return len; |