tag | line | file | source code |
len | 309 | fs/exec.c | int len, offset = 0; |
len | 325 | fs/exec.c | len=0; /* remember zero-padding */ |
len | 327 | fs/exec.c | len++; |
len | 329 | fs/exec.c | if (p < len) { /* this shouldn't happen - 128kB */ |
len | 333 | fs/exec.c | while (len) { |
len | 334 | 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 | 60 | fs/ext/namei.c | if (!de || !de->inode || len > EXT_NAME_LEN) |
len | 63 | fs/ext/namei.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 65 | fs/ext/namei.c | if (len < EXT_NAME_LEN && len != de->name_len) |
len | 71 | fs/ext/namei.c | :"0" (0),"S" ((long) name),"D" ((long) de->name),"c" (len) |
len | 157 | fs/ext/namei.c | int ext_lookup(struct inode * dir,const char * name, int len, |
len | 171 | fs/ext/namei.c | if (!(bh = ext_find_entry(dir,name,len,&de,NULL,NULL))) { |
len | 306 | fs/ext/namei.c | int ext_create(struct inode * dir,const char * name, int len, int mode, |
len | 324 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 340 | fs/ext/namei.c | int ext_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
len | 348 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 381 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 397 | fs/ext/namei.c | int ext_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 403 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 446 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 523 | fs/ext/namei.c | int ext_rmdir(struct inode * dir, const char * name, int len) |
len | 531 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
len | 576 | fs/ext/namei.c | int ext_unlink(struct inode * dir, const char * name, int len) |
len | 585 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,&pde,&nde); |
len | 619 | fs/ext/namei.c | int ext_symlink(struct inode * dir, const char * name, int len, const char * symname) |
len | 649 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 658 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 674 | fs/ext/namei.c | int ext_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
len | 689 | fs/ext/namei.c | bh = ext_find_entry(dir,name,len,&de,NULL,NULL); |
len | 696 | fs/ext/namei.c | bh = ext_add_entry(dir,name,len,&de); |
len | 27 | fs/ext2/dcache.c | int len; |
len | 83 | fs/ext2/dcache.c | int len) |
len | 88 | fs/ext2/dcache.c | p->dir != dir || p->len != len || strncmp (name, p->name, p->len)); |
len | 198 | fs/ext2/dcache.c | const char *name, int len) |
len | 206 | fs/ext2/dcache.c | if (len > EXT2_NAME_LEN) |
len | 207 | fs/ext2/dcache.c | len = EXT2_NAME_LEN; |
len | 208 | fs/ext2/dcache.c | memcpy (our_name, (char *) name, len); |
len | 209 | fs/ext2/dcache.c | our_name[len] = '\0'; |
len | 211 | fs/ext2/dcache.c | printk ("dcache_lookup (%04x, %d, %s, %d)\n", dev, dir, our_name, len); |
len | 214 | fs/ext2/dcache.c | if ((p = find_name (queue, dev, dir, our_name, len))) { |
len | 250 | fs/ext2/dcache.c | int len, int ino) |
len | 259 | fs/ext2/dcache.c | dev, dir, name, len, ino); |
len | 261 | fs/ext2/dcache.c | if (len > EXT2_NAME_LEN) |
len | 262 | fs/ext2/dcache.c | len = EXT2_NAME_LEN; |
len | 264 | fs/ext2/dcache.c | if ((p = find_name (queue, dev, dir, name, len))) { |
len | 293 | fs/ext2/dcache.c | strncpy (p->name, name, len); |
len | 294 | fs/ext2/dcache.c | p->len = len; |
len | 295 | fs/ext2/dcache.c | p->name[len] = '\0'; |
len | 312 | fs/ext2/dcache.c | const char *name, int len) |
len | 320 | fs/ext2/dcache.c | printk ("dcache_remove (%04x, %d, %s, %d)\n", dev, dir, name, len); |
len | 322 | fs/ext2/dcache.c | if (len > EXT2_NAME_LEN) |
len | 323 | fs/ext2/dcache.c | len = EXT2_NAME_LEN; |
len | 325 | fs/ext2/dcache.c | if ((p = find_name (queue, dev, dir, name, len))) { |
len | 36 | fs/ext2/namei.c | static int ext2_match (int len, const char * const name, |
len | 41 | fs/ext2/namei.c | if (!de || !de->inode || len > EXT2_NAME_LEN) |
len | 44 | fs/ext2/namei.c | if (!len && de->name_len == 1 && (de->name[0] == '.') && |
len | 47 | fs/ext2/namei.c | if (len != de->name_len) |
len | 53 | fs/ext2/namei.c | :"S" ((long) name), "D" ((long) de->name), "c" (len) |
len | 129 | fs/ext2/namei.c | int ext2_lookup (struct inode * dir, const char * name, int len, |
len | 144 | fs/ext2/namei.c | if (!(ino = ext2_dcache_lookup (dir->i_dev, dir->i_ino, name, len))) { |
len | 146 | fs/ext2/namei.c | if (!(bh = ext2_find_entry (dir, name, len, &de, NULL))) { |
len | 287 | fs/ext2/namei.c | int ext2_create (struct inode * dir,const char * name, int len, int mode, |
len | 306 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 326 | fs/ext2/namei.c | int ext2_mknod (struct inode * dir, const char * name, int len, int mode, |
len | 336 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de, NULL); |
len | 369 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 389 | fs/ext2/namei.c | int ext2_mkdir (struct inode * dir, const char * name, int len, int mode) |
len | 398 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de, NULL); |
len | 442 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 517 | fs/ext2/namei.c | int ext2_rmdir (struct inode * dir, const char * name, int len) |
len | 527 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de, &pde); |
len | 573 | fs/ext2/namei.c | int ext2_unlink (struct inode * dir, const char * name, int len) |
len | 584 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de, &pde); |
len | 619 | fs/ext2/namei.c | int ext2_symlink (struct inode * dir, const char * name, int len, |
len | 668 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de, NULL); |
len | 677 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 698 | fs/ext2/namei.c | const char * name, int len) |
len | 714 | fs/ext2/namei.c | bh = ext2_find_entry (dir, name, len, &de, NULL); |
len | 721 | fs/ext2/namei.c | bh = ext2_add_entry (dir, name, len, &de, &err); |
len | 26 | fs/isofs/namei.c | static int isofs_match(int len,const char * name, char * compare, int dlen) |
len | 32 | fs/isofs/namei.c | if (!len && (compare[0]==0) && (dlen==1)) |
len | 35 | fs/isofs/namei.c | if (compare[0]==0 && dlen==1 && len == 1) |
len | 37 | fs/isofs/namei.c | if (compare[0]==1 && dlen==1 && len == 2) { |
len | 42 | fs/isofs/namei.c | if (len <= 2) printk("Match: %d %d %s %d %d \n",len,dlen,compare,de->name[0], dlen); |
len | 45 | fs/isofs/namei.c | if (dlen != len) |
len | 51 | fs/isofs/namei.c | :"0" (0),"S" ((long) name),"D" ((long) compare),"c" (len) |
len | 193 | fs/isofs/namei.c | int isofs_lookup(struct inode * dir,const char * name, int len, |
len | 200 | fs/isofs/namei.c | printk("lookup: %x %d\n",dir->i_ino, len); |
len | 216 | fs/isofs/namei.c | len == cache.dlen && |
len | 217 | fs/isofs/namei.c | isofs_match(len, name, cache.filename, cache.dlen)) |
len | 230 | fs/isofs/namei.c | if (!(bh = isofs_find_entry(dir,name,len, &ino, &ino_back))) { |
len | 67 | fs/isofs/rock.c | len = cont_size; \ |
len | 83 | fs/isofs/rock.c | int len; |
len | 98 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(de, chr, len); |
len | 104 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 106 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 108 | fs/isofs/rock.c | chr += rr->len; |
len | 109 | fs/isofs/rock.c | len -= rr->len; |
len | 156 | fs/isofs/rock.c | int len; |
len | 164 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(de, chr, len); |
len | 170 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 172 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 174 | fs/isofs/rock.c | chr += rr->len; |
len | 175 | fs/isofs/rock.c | len -= rr->len; |
len | 204 | fs/isofs/rock.c | if((strlen(retname) + rr->len - 5) >= 254) { |
len | 208 | fs/isofs/rock.c | strncat(retname, rr->u.NM.name, rr->len - 5); |
len | 209 | fs/isofs/rock.c | retnamlen += rr->len - 5; |
len | 238 | fs/isofs/rock.c | int len; |
len | 244 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(de, chr, len); |
len | 251 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 253 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 255 | fs/isofs/rock.c | chr += rr->len; |
len | 256 | fs/isofs/rock.c | len -= rr->len; |
len | 298 | fs/isofs/rock.c | slen = rr->len - 5; |
len | 303 | fs/isofs/rock.c | inode->i_size += slp->len; |
len | 317 | fs/isofs/rock.c | slen -= slp->len + 2; |
len | 318 | fs/isofs/rock.c | slp = (struct SL_component *) (((char *) slp) + slp->len + 2); |
len | 371 | fs/isofs/rock.c | int len; |
len | 402 | fs/isofs/rock.c | SETUP_ROCK_RIDGE(raw_inode, chr, len); |
len | 405 | fs/isofs/rock.c | while (len > 1){ /* There may be one byte for padding somewhere */ |
len | 408 | fs/isofs/rock.c | if (rr->len == 0) goto out; /* Something got screwed up here */ |
len | 410 | fs/isofs/rock.c | chr += rr->len; |
len | 411 | fs/isofs/rock.c | len -= rr->len; |
len | 423 | fs/isofs/rock.c | slen = rr->len - 5; |
len | 432 | fs/isofs/rock.c | strncat(rpnt,slp->text, slp->len); |
len | 446 | fs/isofs/rock.c | slen -= slp->len + 2; |
len | 447 | fs/isofs/rock.c | slp = (struct SL_component *) (((char *) slp) + slp->len + 2); |
len | 44 | fs/isofs/rock.h | unsigned char len; |
len | 87 | fs/isofs/rock.h | unsigned char len; |
len | 23 | fs/minix/namei.c | static inline int namecompare(int len, int maxlen, |
len | 26 | fs/minix/namei.c | if (len >= maxlen || !buffer[len]) { |
len | 30 | fs/minix/namei.c | :"S" ((long) name),"D" ((long) buffer),"c" (len) |
len | 44 | fs/minix/namei.c | static int minix_match(int len, const char * name, |
len | 52 | fs/minix/namei.c | if (!de->inode || len > info->s_namelen) |
len | 55 | fs/minix/namei.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 57 | fs/minix/namei.c | return namecompare(len,info->s_namelen,name,de->name); |
len | 111 | fs/minix/namei.c | int minix_lookup(struct inode * dir,const char * name, int len, |
len | 125 | fs/minix/namei.c | if (!(bh = minix_find_entry(dir,name,len,&de))) { |
len | 214 | fs/minix/namei.c | int minix_create(struct inode * dir,const char * name, int len, int mode, |
len | 233 | fs/minix/namei.c | error = minix_add_entry(dir,name,len, &bh ,&de); |
len | 249 | fs/minix/namei.c | int minix_mknod(struct inode * dir, const char * name, int len, int mode, int rdev) |
len | 258 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 291 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
len | 307 | fs/minix/namei.c | int minix_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 320 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 359 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
len | 434 | fs/minix/namei.c | int minix_rmdir(struct inode * dir, const char * name, int len) |
len | 442 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 485 | fs/minix/namei.c | int minix_unlink(struct inode * dir, const char * name, int len) |
len | 495 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 534 | fs/minix/namei.c | int minix_symlink(struct inode * dir, const char * name, int len, const char * symname) |
len | 564 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 573 | fs/minix/namei.c | i = minix_add_entry(dir, name, len, &bh, &de); |
len | 589 | fs/minix/namei.c | int minix_link(struct inode * oldinode, struct inode * dir, const char * name, int len) |
len | 605 | fs/minix/namei.c | bh = minix_find_entry(dir,name,len,&de); |
len | 612 | fs/minix/namei.c | error = minix_add_entry(dir, name, len, &bh, &de); |
len | 33 | fs/msdos/namei.c | static int msdos_format_name(char conv,const char *name,int len,char *res, |
len | 41 | fs/msdos/namei.c | if (name[0] == '.' && (len == 1 || (len == 2 && name[1] == '.'))) { |
len | 44 | fs/msdos/namei.c | while (len--) *res++ = '.'; |
len | 49 | fs/msdos/namei.c | for (walk = res; len && walk-res < 8; walk++) { |
len | 51 | fs/msdos/namei.c | len--; |
len | 61 | fs/msdos/namei.c | if (conv == 's' && len && c != '.') { |
len | 63 | fs/msdos/namei.c | len--; |
len | 66 | fs/msdos/namei.c | while (c != '.' && len--) c = *name++; |
len | 69 | fs/msdos/namei.c | while (len > 0 && walk-res < MSDOS_NAME) { |
len | 71 | fs/msdos/namei.c | len--; |
len | 82 | fs/msdos/namei.c | if (conv == 's' && len) return -EINVAL; |
len | 93 | fs/msdos/namei.c | static int msdos_find(struct inode *dir,const char *name,int len, |
len | 99 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
len | 105 | fs/msdos/namei.c | int msdos_lookup(struct inode *dir,const char *name,int len, |
len | 119 | fs/msdos/namei.c | if (len == 1 && name[0] == '.') { |
len | 123 | fs/msdos/namei.c | if (len == 2 && name[0] == '.' && name[1] == '.') { |
len | 130 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) { |
len | 191 | fs/msdos/namei.c | int msdos_create(struct inode *dir,const char *name,int len,int mode, |
len | 200 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
len | 239 | fs/msdos/namei.c | int msdos_mkdir(struct inode *dir,const char *name,int len,int mode) |
len | 247 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
len | 289 | fs/msdos/namei.c | if (msdos_rmdir(dir,name,len) < 0) |
len | 321 | fs/msdos/namei.c | int msdos_rmdir(struct inode *dir,const char *name,int len) |
len | 331 | fs/msdos/namei.c | if (name[0] == '.' && (len == 1 || (len == 2 && name[1] == '.'))) |
len | 333 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) goto rmdir_done; |
len | 358 | fs/msdos/namei.c | int msdos_unlink(struct inode *dir,const char *name,int len) |
len | 367 | fs/msdos/namei.c | if ((res = msdos_find(dir,name,len,&bh,&de,&ino)) < 0) |
len | 98 | fs/namei.c | int lookup(struct inode * dir,const char * name, int len, |
len | 109 | fs/namei.c | if (len==2 && name[0] == '.' && name[1] == '.') { |
len | 130 | fs/namei.c | if (!len) { |
len | 134 | fs/namei.c | return dir->i_op->lookup(dir,name,len,result); |
len | 165 | fs/namei.c | int len,error; |
len | 181 | fs/namei.c | for(len=0;(c = *(pathname++))&&(c != '/');len++) |
len | 186 | fs/namei.c | error = lookup(base,thisname,len,&inode); |
len | 200 | fs/namei.c | *namelen = len; |
len | 23 | fs/nfs/dir.c | static int nfs_lookup(struct inode *dir, const char *name, int len, |
len | 25 | fs/nfs/dir.c | static int nfs_create(struct inode *dir, const char *name, int len, int mode, |
len | 27 | fs/nfs/dir.c | static int nfs_mkdir(struct inode *dir, const char *name, int len, int mode); |
len | 28 | fs/nfs/dir.c | static int nfs_rmdir(struct inode *dir, const char *name, int len); |
len | 29 | fs/nfs/dir.c | static int nfs_unlink(struct inode *dir, const char *name, int len); |
len | 30 | fs/nfs/dir.c | static int nfs_symlink(struct inode *inode, const char *name, int len, |
len | 33 | fs/nfs/dir.c | const char *name, int len); |
len | 34 | fs/nfs/dir.c | static int nfs_mknod(struct inode *dir, const char *name, int len, int mode, |
len | 286 | fs/nfs/dir.c | static int nfs_lookup(struct inode *dir, const char *__name, int len, |
len | 291 | fs/nfs/dir.c | char name[len > NFS_MAXNAMLEN? 1 : len+1]; |
len | 300 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 304 | fs/nfs/dir.c | memcpy(name,__name,len); |
len | 305 | fs/nfs/dir.c | name[len] = '\0'; |
len | 306 | fs/nfs/dir.c | if (len == 1 && name[0] == '.') { /* cheat for "." */ |
len | 327 | fs/nfs/dir.c | static int nfs_create(struct inode *dir, const char *name, int len, int mode, |
len | 341 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 362 | fs/nfs/dir.c | static int nfs_mknod(struct inode *dir, const char *name, int len, |
len | 375 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 394 | fs/nfs/dir.c | static int nfs_mkdir(struct inode *dir, const char *name, int len, int mode) |
len | 406 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 421 | fs/nfs/dir.c | static int nfs_rmdir(struct inode *dir, const char *name, int len) |
len | 430 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 441 | fs/nfs/dir.c | static int nfs_unlink(struct inode *dir, const char *name, int len) |
len | 450 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 461 | fs/nfs/dir.c | static int nfs_symlink(struct inode *dir, const char *name, int len, |
len | 472 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 490 | fs/nfs/dir.c | const char *name, int len) |
len | 506 | fs/nfs/dir.c | if (len > NFS_MAXNAMLEN) { |
len | 61 | fs/nfs/proc.c | int len, quadlen; |
len | 63 | fs/nfs/proc.c | len = strlen(string); |
len | 64 | fs/nfs/proc.c | quadlen = (len + 3) >> 2; |
len | 65 | fs/nfs/proc.c | *p++ = htonl(len); |
len | 66 | fs/nfs/proc.c | memcpy((char *) p, string, len); |
len | 67 | fs/nfs/proc.c | memset(((char *) p) + len, '\0', (quadlen << 2) - len); |
len | 74 | fs/nfs/proc.c | unsigned int len; |
len | 76 | fs/nfs/proc.c | len = ntohl(*p++); |
len | 77 | fs/nfs/proc.c | if (len > maxlen) |
len | 79 | fs/nfs/proc.c | memcpy(string, (char *) p, len); |
len | 80 | fs/nfs/proc.c | string[len] = '\0'; |
len | 81 | fs/nfs/proc.c | p += (len + 3) >> 2; |
len | 85 | fs/nfs/proc.c | static inline int *xdr_encode_data(int *p, char *data, int len) |
len | 89 | fs/nfs/proc.c | quadlen = (len + 3) >> 2; |
len | 90 | fs/nfs/proc.c | *p++ = htonl(len); |
len | 91 | fs/nfs/proc.c | memcpy((char *) p, data, len); |
len | 92 | fs/nfs/proc.c | memset(((char *) p) + len, '\0', (quadlen << 2) - len); |
len | 99 | fs/nfs/proc.c | unsigned int len; |
len | 101 | fs/nfs/proc.c | len = *lenp = ntohl(*p++); |
len | 102 | fs/nfs/proc.c | if (len > maxlen) |
len | 104 | fs/nfs/proc.c | memcpy(data, (char *) p, len); |
len | 105 | fs/nfs/proc.c | data[len] = '\0'; |
len | 106 | fs/nfs/proc.c | p += (len + 3) >> 2; |
len | 285 | fs/nfs/proc.c | int len = 0; /* = 0 is for gcc */ |
len | 302 | fs/nfs/proc.c | if (!(p = xdr_decode_data(p, data, &len, count))) { |
len | 307 | fs/nfs/proc.c | PRINTK("NFS reply read %d\n", len); |
len | 312 | fs/nfs/proc.c | return (status == NFS_OK) ? len : -nfs_stat_to_errno(status); |
len | 40 | fs/nfs/sock.c | int len; |
len | 53 | fs/nfs/sock.c | len = ((char *) end) - ((char *) start); |
len | 70 | fs/nfs/sock.c | result = sock->ops->send(sock, (void *) start, len, 0, 0); |
len | 70 | fs/proc/base.c | int proc_match(int len,const char * name,struct proc_dir_entry * de) |
len | 77 | fs/proc/base.c | if (!len && (de->name[0]=='.') && (de->name[1]=='\0')) |
len | 79 | fs/proc/base.c | if (de->namelen != len) |
len | 85 | fs/proc/base.c | :"0" (0),"S" ((long) name),"D" ((long) de->name),"c" (len) |
len | 90 | fs/proc/base.c | static int proc_lookupbase(struct inode * dir,const char * name, int len, |
len | 106 | fs/proc/base.c | while (i-- > 0 && !proc_match(len,name,base_dir+i)) |
len | 53 | fs/proc/fd.c | static int proc_lookupfd(struct inode * dir,const char * name, int len, |
len | 73 | fs/proc/fd.c | if (!len || (name[0] == '.' && (len == 1 || |
len | 74 | fs/proc/fd.c | (name[1] == '.' && len == 2)))) { |
len | 75 | fs/proc/fd.c | if (len < 2) { |
len | 88 | fs/proc/fd.c | while (len-- > 0) { |
len | 66 | fs/proc/root.c | static int proc_lookuproot(struct inode * dir,const char * name, int len, |
len | 80 | fs/proc/root.c | while (i-- > 0 && !proc_match(len,name,root_dir+i)) |
len | 92 | fs/proc/root.c | while (len-- > 0) { |
len | 31 | fs/xiafs/namei.c | static int xiafs_match(int len, const char * name, struct xiafs_direct * dep) |
len | 35 | fs/xiafs/namei.c | if (!dep || !dep->d_ino || len > _XIAFS_NAME_LEN) |
len | 38 | fs/xiafs/namei.c | if (!len && (dep->d_name[0]=='.') && (dep->d_name[1]=='\0')) |
len | 40 | fs/xiafs/namei.c | if (len != dep->d_name_len) |
len | 42 | fs/xiafs/namei.c | for (i=0; i < len; i++) |
len | 115 | fs/xiafs/namei.c | int xiafs_lookup(struct inode * dir, const char * name, int len, |
len | 129 | fs/xiafs/namei.c | if (!(bh = xiafs_find_entry(dir, name, len, &dep, NULL))) { |
len | 240 | fs/xiafs/namei.c | int xiafs_create(struct inode * dir, const char * name, int len, int mode, |
len | 258 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 274 | fs/xiafs/namei.c | int xiafs_mknod(struct inode *dir, const char *name, int len, int mode, int rdev) |
len | 282 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len,&de, NULL); |
len | 315 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 331 | fs/xiafs/namei.c | int xiafs_mkdir(struct inode * dir, const char * name, int len, int mode) |
len | 337 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len,&de, NULL); |
len | 380 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 480 | fs/xiafs/namei.c | int xiafs_rmdir(struct inode * dir, const char * name, int len) |
len | 488 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, &de_pre); |
len | 531 | fs/xiafs/namei.c | int xiafs_unlink(struct inode * dir, const char * name, int len) |
len | 541 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, &de_pre); |
len | 579 | fs/xiafs/namei.c | int len, const char * symname) |
len | 587 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir,name,len, &de, NULL); |
len | 614 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 631 | fs/xiafs/namei.c | const char * name, int len) |
len | 646 | fs/xiafs/namei.c | bh = xiafs_find_entry(dir, name, len, &de, NULL); |
len | 653 | fs/xiafs/namei.c | bh = xiafs_add_entry(dir, name, len, &de, NULL); |
len | 64 | include/linux/ext_fs.h | extern int ext_lookup(struct inode * dir,const char * name, int len, |
len | 66 | include/linux/ext_fs.h | extern int ext_create(struct inode * dir,const char * name, int len, int mode, |
len | 68 | include/linux/ext_fs.h | extern int ext_mkdir(struct inode * dir, const char * name, int len, int mode); |
len | 69 | include/linux/ext_fs.h | extern int ext_rmdir(struct inode * dir, const char * name, int len); |
len | 70 | include/linux/ext_fs.h | extern int ext_unlink(struct inode * dir, const char * name, int len); |
len | 71 | include/linux/ext_fs.h | extern int ext_symlink(struct inode * inode, const char * name, int len, |
len | 73 | include/linux/ext_fs.h | extern int ext_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
len | 74 | include/linux/ext_fs.h | extern int ext_mknod(struct inode * dir, const char * name, int len, int mode, int rdev); |
len | 131 | include/linux/iso_fs.h | extern int get_rock_ridge_filename(struct iso_directory_record *, char ** name, int * len, struct inode *); |
len | 158 | include/linux/iso_fs.h | extern int isofs_lookup(struct inode * dir,const char * name, int len, |
len | 75 | include/linux/minix_fs.h | extern int minix_lookup(struct inode * dir,const char * name, int len, |
len | 77 | include/linux/minix_fs.h | extern int minix_create(struct inode * dir,const char * name, int len, int mode, |
len | 79 | include/linux/minix_fs.h | extern int minix_mkdir(struct inode * dir, const char * name, int len, int mode); |
len | 80 | include/linux/minix_fs.h | extern int minix_rmdir(struct inode * dir, const char * name, int len); |
len | 81 | include/linux/minix_fs.h | extern int minix_unlink(struct inode * dir, const char * name, int len); |
len | 82 | include/linux/minix_fs.h | extern int minix_symlink(struct inode * inode, const char * name, int len, |
len | 84 | include/linux/minix_fs.h | extern int minix_link(struct inode * oldinode, struct inode * dir, const char * name, int len); |
len | 85 | include/linux/minix_fs.h | extern int minix_mknod(struct inode * dir, const char * name, int len, int mode, int rdev); |
len | 157 | include/linux/msdos_fs.h | extern int msdos_lookup(struct inode *dir,const char *name,int len, |
len | 159 | include/linux/msdos_fs.h | extern int msdos_create(struct inode *dir,const char *name,int len,int mode, |
len | 161 | include/linux/msdos_fs.h | extern int msdos_mkdir(struct inode *dir,const char *name,int len,int mode); |
len | 162 | include/linux/msdos_fs.h | extern int msdos_rmdir(struct inode *dir,const char *name,int len); |
len | 163 | include/linux/msdos_fs.h | extern int msdos_unlink(struct inode *dir,const char *name,int len); |
len | 65 | include/linux/xia_fs.h | extern int xiafs_lookup(struct inode * dir,const char * name, int len, |
len | 67 | include/linux/xia_fs.h | extern int xiafs_create(struct inode * dir,const char * name, int len, int mode, |
len | 69 | include/linux/xia_fs.h | extern int xiafs_mkdir(struct inode * dir, const char * name, int len, int mode); |
len | 70 | include/linux/xia_fs.h | extern int xiafs_rmdir(struct inode * dir, const char * name, int len); |
len | 71 | include/linux/xia_fs.h | extern int xiafs_unlink(struct inode * dir, const char * name, int len); |
len | 72 | include/linux/xia_fs.h | extern int xiafs_symlink(struct inode * inode, const char * name, int len, |
len | 75 | include/linux/xia_fs.h | const char * name, int len); |
len | 76 | include/linux/xia_fs.h | extern int xiafs_mknod(struct inode * dir, const char * name, int len, |
len | 25 | kernel/blk_drv/ramdisk.c | int len; |
len | 31 | kernel/blk_drv/ramdisk.c | len = CURRENT->nr_sectors << 9; |
len | 32 | kernel/blk_drv/ramdisk.c | if ((MINOR(CURRENT->dev) != 1) || (addr+len > rd_start+rd_length)) { |
len | 39 | kernel/blk_drv/ramdisk.c | len); |
len | 43 | kernel/blk_drv/ramdisk.c | len); |
len | 90 | kernel/blk_drv/scsi/aha1542.c | static int aha1542_out(unchar *cmdp, int len) |
len | 92 | kernel/blk_drv/scsi/aha1542.c | while (len--) |
len | 99 | kernel/blk_drv/scsi/aha1542.c | printk("aha1542_out failed(%d): ", len+1); aha1542_stat(); |
len | 103 | kernel/blk_drv/scsi/aha1542.c | static int aha1542_in(unchar *cmdp, int len) |
len | 105 | kernel/blk_drv/scsi/aha1542.c | while (len--) |
len | 112 | kernel/blk_drv/scsi/aha1542.c | printk("aha1542_in failed(%d): ", len+1); aha1542_stat(); |
len | 1280 | kernel/blk_drv/scsi/scsi.c | char *scsi_malloc(unsigned int len) |
len | 1284 | kernel/blk_drv/scsi/scsi.c | if((len & 0x1ff) || len > 4096) |
len | 1288 | kernel/blk_drv/scsi/scsi.c | nbits = len >> 9; |
len | 1298 | kernel/blk_drv/scsi/scsi.c | printk("SMalloc: %d %x ",len, dma_malloc_buffer + (i << 13) + (j << 9)); |
len | 1307 | kernel/blk_drv/scsi/scsi.c | int scsi_free(char *obj, unsigned int len) |
len | 1313 | kernel/blk_drv/scsi/scsi.c | printk("Sfree %x %d\n",obj, len); |
len | 1324 | kernel/blk_drv/scsi/scsi.c | nbits = len >> 9; |
len | 31 | kernel/blk_drv/scsi/scsi_ioctl.c | unsigned int len,slen; |
len | 35 | kernel/blk_drv/scsi/scsi_ioctl.c | len = get_fs_long ((int *) buffer); |
len | 38 | kernel/blk_drv/scsi/scsi_ioctl.c | if (len > slen) |
len | 39 | kernel/blk_drv/scsi/scsi_ioctl.c | len = slen + 1; |
len | 40 | kernel/blk_drv/scsi/scsi_ioctl.c | verify_area(VERIFY_WRITE, buffer, len); |
len | 41 | kernel/blk_drv/scsi/scsi_ioctl.c | memcpy_tofs (buffer, string, len); |
len | 454 | kernel/blk_drv/scsi/seagate.c | int len; |
len | 570 | kernel/blk_drv/scsi/seagate.c | len=current_bufflen; /* WDE add */ |
len | 746 | kernel/blk_drv/scsi/seagate.c | len = buffer->length; |
len | 753 | kernel/blk_drv/scsi/seagate.c | len = SCint->request_bufflen; |
len | 868 | kernel/blk_drv/scsi/seagate.c | if (!len) { |
len | 878 | kernel/blk_drv/scsi/seagate.c | if (fast && transfersize && !(len % transfersize) && (len >= transfersize) |
len | 886 | kernel/blk_drv/scsi/seagate.c | SCint->transfersize, len, data); |
len | 909 | kernel/blk_drv/scsi/seagate.c | len -= transfersize; |
len | 914 | kernel/blk_drv/scsi/seagate.c | hostno, len, data); |
len | 974 | kernel/blk_drv/scsi/seagate.c | "=r" (data), "=r" (len) : |
len | 976 | kernel/blk_drv/scsi/seagate.c | "0" (data), "1" (len) : |
len | 981 | kernel/blk_drv/scsi/seagate.c | if (!len && nobuffs) { |
len | 984 | kernel/blk_drv/scsi/seagate.c | len = buffer->length; |
len | 988 | kernel/blk_drv/scsi/seagate.c | hostno, len, data); |
len | 995 | kernel/blk_drv/scsi/seagate.c | if (!len) { |
len | 1005 | kernel/blk_drv/scsi/seagate.c | if (fast && transfersize && !(len % transfersize) && (len >= transfersize) |
len | 1013 | kernel/blk_drv/scsi/seagate.c | SCint->transfersize, len, data); |
len | 1036 | kernel/blk_drv/scsi/seagate.c | len -= transfersize; |
len | 1041 | kernel/blk_drv/scsi/seagate.c | hostno, len, data); |
len | 1102 | kernel/blk_drv/scsi/seagate.c | "=r" (data), "=r" (len) : |
len | 1104 | kernel/blk_drv/scsi/seagate.c | "0" (data), "1" (len) : |
len | 1108 | kernel/blk_drv/scsi/seagate.c | if (!len && nobuffs) { |
len | 1111 | kernel/blk_drv/scsi/seagate.c | len = buffer->length; |
len | 1115 | kernel/blk_drv/scsi/seagate.c | hostno, len, data); |
len | 1177 | kernel/blk_drv/scsi/seagate.c | current_bufflen = len; /* WDE add */ |
len | 1209 | kernel/blk_drv/scsi/seagate.c | current_bufflen = len; /* WDE add */ |
len | 1220 | kernel/blk_drv/scsi/seagate.c | len=current_bufflen; |
len | 1266 | kernel/blk_drv/scsi/seagate.c | printk("Transfered %d bytes, allowed %d additional bytes\n", (bufflen - len), len); |
len | 119 | kernel/blk_drv/scsi/wd7000.c | static inline int command_out(unchar *cmdp, int len) |
len | 121 | kernel/blk_drv/scsi/wd7000.c | while (len--) { |
len | 128 | kernel/blk_drv/scsi/wd7000.c | printk("wd7000_out WAIT failed(%d): ", len+1); |
len | 402 | kernel/blk_drv/scsi/wd7000.c | any2scsi(sgb->len, sg[i].length); |
len | 149 | kernel/blk_drv/scsi/wd7000.h | unchar len[3]; |
len | 128 | kernel/chr_drv/mem.c | unsigned long addr, size_t len, int prot, unsigned long off) |
len | 130 | kernel/chr_drv/mem.c | if (len > high_memory || off > high_memory - len) /* avoid overflow */ |
len | 133 | kernel/chr_drv/mem.c | if (remap_page_range(addr, off, len, prot)) |
len | 194 | kernel/chr_drv/mem.c | unsigned long addr, size_t len, int prot, unsigned long off) |
len | 198 | kernel/chr_drv/mem.c | if (zeromap_page_range(addr, len, prot)) |
len | 48 | kernel/printk.c | int sys_syslog(int type, char * buf, int len) |
len | 62 | kernel/printk.c | if (!buf || len < 0) |
len | 64 | kernel/printk.c | if (!len) |
len | 66 | kernel/printk.c | verify_area(VERIFY_WRITE,buf,len); |
len | 76 | kernel/printk.c | while (log_size && i < len) { |
len | 89 | kernel/printk.c | if (!buf || len < 0) |
len | 91 | kernel/printk.c | if (!len) |
len | 93 | kernel/printk.c | verify_area(VERIFY_WRITE,buf,len); |
len | 94 | kernel/printk.c | count = len; |
len | 591 | kernel/sys.c | int sys_sethostname(char *name, int len) |
len | 597 | kernel/sys.c | if (len > __NEW_UTS_LEN) |
len | 599 | kernel/sys.c | for (i=0; i < len; i++) { |
len | 121 | kernel/vsprintf.c | int len; |
len | 198 | kernel/vsprintf.c | len = strlen(s); |
len | 200 | kernel/vsprintf.c | precision = len; |
len | 201 | kernel/vsprintf.c | else if (len > precision) |
len | 202 | kernel/vsprintf.c | len = precision; |
len | 205 | kernel/vsprintf.c | while (len < field_width--) |
len | 207 | kernel/vsprintf.c | for (i = 0; i < len; ++i) |
len | 209 | kernel/vsprintf.c | while (len < field_width--) |
len | 147 | lib/malloc.c | kmalloc(unsigned int len, int priority) |
len | 160 | lib/malloc.c | if (bdir->size >= len) |
len | 165 | lib/malloc.c | printk("kmalloc called with impossibly large argument (%d)\n", len); |
len | 40 | mm/mmap.c | unsigned long len, limit, off; |
len | 45 | mm/mmap.c | len = (size_t) get_fs_long(buffer+1); /* nbytes of mapping */ |
len | 53 | mm/mmap.c | if (addr > TASK_SIZE || len > TASK_SIZE || addr > TASK_SIZE-len) |
len | 97 | mm/mmap.c | if (addr + len > limit) |
len | 132 | mm/mmap.c | error = file->f_op->mmap(file->f_inode, file, base + addr, len, mask, off); |
len | 138 | mm/mmap.c | int sys_munmap(unsigned long addr, size_t len) |
len | 146 | mm/mmap.c | addr + len > limit) |
len | 148 | mm/mmap.c | if (unmap_page_range(base + addr, len)) |
len | 61 | net/kern_sock.h | int (*listen)(struct socket *sock, int len); |
len | 62 | net/kern_sock.h | int (*send)(struct socket *sock, void *buff, int len, int nonblock, |
len | 64 | net/kern_sock.h | int (*recv)(struct socket *sock, void *buff, int len, int nonblock, |
len | 66 | net/kern_sock.h | int (*sendto)(struct socket *sock, void *buff, int len, int nonblock, |
len | 68 | net/kern_sock.h | int (*recvfrom)(struct socket *sock, void *buff, int len, int nonblock, |
len | 680 | net/socket.c | sys_send( int fd, void * buff, int len, unsigned flags) |
len | 686 | net/socket.c | fd, buff, len, flags)); |
len | 694 | net/socket.c | return (sock->ops->send (sock, buff, len, (file->f_flags & O_NONBLOCK), |
len | 700 | net/socket.c | sys_sendto( int fd, void * buff, int len, unsigned flags, |
len | 707 | net/socket.c | " addr=%X, alen = %d\n", fd, buff, len, flags, addr, addr_len)); |
len | 715 | net/socket.c | return (sock->ops->sendto (sock, buff, len, |
len | 723 | net/socket.c | sys_recv( int fd, void * buff, int len, unsigned flags) |
len | 729 | net/socket.c | fd, buff, len, flags)); |
len | 737 | net/socket.c | return (sock->ops->recv (sock, buff, len,(file->f_flags & O_NONBLOCK), |
len | 743 | net/socket.c | sys_recvfrom( int fd, void * buff, int len, unsigned flags, |
len | 750 | net/socket.c | " addr=%X, alen=%X\n", fd, buff, len, flags, addr, addr_len)); |
len | 758 | net/socket.c | return (sock->ops->recvfrom (sock, buff, len, |
len | 230 | net/tcp/arp.c | arp_free (void *ptr, unsigned long len) |
len | 232 | net/tcp/arp.c | kfree_s(ptr, len); |
len | 258 | net/tcp/arp.c | skb->len = sizeof (*arp2) + 2*arp1->hlen + |
len | 263 | net/tcp/arp.c | *arp_targetp(arp1),skb->len); |
len | 445 | net/tcp/arp.c | skb->len = sizeof (*arp) + dev->hard_header_len + 2*dev->addr_len+8; |
len | 449 | net/tcp/arp.c | ETHERTYPE_ARP, 0, saddr, skb->len); |
len | 256 | net/tcp/dev.c | dev_rint(unsigned char *buff, long len, int flags, |
len | 263 | net/tcp/dev.c | if (dev == NULL || buff == NULL || len <= 0) return (1); |
len | 271 | net/tcp/dev.c | skb = kmalloc (sizeof (*skb) + len, GFP_ATOMIC); |
len | 278 | net/tcp/dev.c | skb->mem_len = sizeof (*skb) + len; |
len | 283 | net/tcp/dev.c | while (len > 0) |
len | 285 | net/tcp/dev.c | amount = min (len, (unsigned long) dev->rmem_end - |
len | 288 | net/tcp/dev.c | len -= amount; |
len | 296 | net/tcp/dev.c | skb->len = len; |
len | 376 | net/tcp/dev.c | skb->len -= skb->dev->hard_header_len; |
len | 82 | net/tcp/dev.h | unsigned long saddr, unsigned len); |
len | 119 | net/tcp/dev.h | int dev_rint (unsigned char *buff, long len, int flags, struct device *dev); |
len | 90 | net/tcp/eth.c | unsigned long saddr, unsigned len) |
len | 96 | net/tcp/eth.h | unsigned long saddr, unsigned len); |
len | 126 | net/tcp/icmp.c | int len; |
len | 132 | net/tcp/icmp.c | len = sizeof (*skb) + 8 /* amount of header to return. */ + |
len | 137 | net/tcp/icmp.c | skb = kmalloc (len, GFP_ATOMIC); |
len | 142 | net/tcp/icmp.c | skb->mem_len = len; |
len | 144 | net/tcp/icmp.c | len -= sizeof (*skb); |
len | 152 | net/tcp/icmp.c | &dev, IPPROTO_ICMP, NULL, len ); |
len | 162 | net/tcp/icmp.c | skb->len = offset + sizeof (struct icmp_header) + 8; |
len | 179 | net/tcp/icmp.c | unsigned long daddr, unsigned short len, |
len | 203 | net/tcp/icmp.c | if( ip_compute_csum( (unsigned char *)icmph, len ) ) |
len | 280 | net/tcp/icmp.c | size = sizeof( struct sk_buff ) + dev->hard_header_len + 64 + len; |
len | 294 | net/tcp/icmp.c | offset = ip_build_header( skb, daddr, saddr, &dev, IPPROTO_ICMP, opt, len ); |
len | 306 | net/tcp/icmp.c | skb->len = offset + len; |
len | 310 | net/tcp/icmp.c | memcpy( (char *)icmphr, (char *)icmph, len ); |
len | 317 | net/tcp/icmp.c | icmphr->checksum = ip_compute_csum( (void *)icmphr, len ); |
len | 72 | net/tcp/icmp.h | unsigned long daddr, unsigned short len, |
len | 516 | net/tcp/ip.c | struct options *opt, int len) |
len | 527 | net/tcp/ip.c | skb, saddr, daddr, *dev, type, opt, len)); |
len | 551 | net/tcp/ip.c | tmp = (*dev)->hard_header(buff, *dev, ETHERTYPE_IP, raddr, saddr, len); |
len | 567 | net/tcp/ip.c | len -= tmp; |
len | 589 | net/tcp/ip.c | int len=sizeof (*iph); |
len | 606 | net/tcp/ip.c | while (!done && len < iph->ihl*4) |
len | 616 | net/tcp/ip.c | len ++; |
len | 632 | net/tcp/ip.c | len += 11; |
len | 638 | net/tcp/ip.c | len += *buff; |
len | 656 | net/tcp/ip.c | len += *buff; |
len | 673 | net/tcp/ip.c | len += *buff; |
len | 688 | net/tcp/ip.c | len += 4; |
len | 696 | net/tcp/ip.c | len += *buff; |
len | 698 | net/tcp/ip.c | opt->tstamp.len = *buff / 4 - 1; |
len | 705 | net/tcp/ip.c | for (i = 0; i < opt->tstamp.len; i++) |
len | 752 | net/tcp/ip.c | ip_compute_csum(unsigned char * buff, int len) |
len | 755 | net/tcp/ip.c | if (len > 3) |
len | 769 | net/tcp/ip.c | : "0" (sum), "c" (len >> 2) ,"1" (buff) |
len | 772 | net/tcp/ip.c | if (len & 2) |
len | 781 | net/tcp/ip.c | if (len & 1) |
len | 934 | net/tcp/ip.c | iph->tot_len = net16(skb->len-dev->hard_header_len); |
len | 959 | net/tcp/ip.c | sk->time_wait.len = sk->rtt*2; |
len | 1033 | net/tcp/ip.c | sk->time_wait.len = sk->rtt; |
len | 65 | net/tcp/ip.h | unsigned char len; |
len | 140 | net/tcp/ip.h | unsigned short len, unsigned long saddr, |
len | 177 | net/tcp/ip.h | struct options *opt, int len); |
len | 185 | net/tcp/ip.h | unsigned short ip_compute_csum (unsigned char *buff, int len); |
len | 100 | net/tcp/loopback.c | done = dev_rint ((unsigned char *)(skb+1), skb->len, 0, dev); |
len | 82 | net/tcp/packet.c | skb->len += dev->hard_header_len; |
len | 133 | net/tcp/packet.c | packet_sendto (volatile struct sock *sk, unsigned char *from, int len, |
len | 143 | net/tcp/packet.c | if (len < 0) return (-EINVAL); |
len | 156 | net/tcp/packet.c | skb = sk->prot->wmalloc (sk, len+sizeof (*skb), 0, GFP_KERNEL); |
len | 166 | net/tcp/packet.c | skb->mem_len = len + sizeof (*skb); |
len | 177 | net/tcp/packet.c | memcpy_fromfs (skb+1, from, len); |
len | 178 | net/tcp/packet.c | skb->len = len; |
len | 184 | net/tcp/packet.c | return (len); |
len | 189 | net/tcp/packet.c | int len, int noblock, unsigned flags) |
len | 191 | net/tcp/packet.c | return (packet_sendto (sk, buff, len, noblock, flags, NULL, 0)); |
len | 225 | net/tcp/packet.c | packet_recvfrom (volatile struct sock *sk, unsigned char *to, int len, |
len | 236 | net/tcp/packet.c | if (len == 0) return (0); |
len | 237 | net/tcp/packet.c | if (len < 0) return (-EINVAL); |
len | 284 | net/tcp/packet.c | copied = min (len, skb->len); |
len | 309 | net/tcp/packet.c | int len, int noblock, unsigned flags) |
len | 311 | net/tcp/packet.c | return (packet_recvfrom (sk, buff, len, noblock, flags, NULL, NULL)); |
len | 37 | net/tcp/protocols.c | unsigned long daddr, unsigned short len, |
len | 45 | net/tcp/protocols.c | unsigned long daddr, unsigned short len, |
len | 52 | net/tcp/protocols.c | unsigned long daddr, unsigned short len, |
len | 138 | net/tcp/raw.c | unsigned long daddr, unsigned short len, unsigned long saddr, |
len | 146 | net/tcp/raw.c | skb, dev, opt, daddr, len, saddr, redo, protocol)); |
len | 163 | net/tcp/raw.c | skb->len = len; |
len | 226 | net/tcp/raw.c | raw_sendto (volatile struct sock *sk, unsigned char *from, int len, |
len | 236 | net/tcp/raw.c | " usin=%X, addr_len = %d)\n", sk, from, len, noblock, |
len | 241 | net/tcp/raw.c | if (len < 0) return (-EINVAL); |
len | 268 | net/tcp/raw.c | skb = sk->prot->wmalloc (sk, len+sizeof (*skb) + sk->prot->max_header, |
len | 295 | net/tcp/raw.c | skb->mem_len = len + sizeof (*skb) +sk->prot->max_header; |
len | 313 | net/tcp/raw.c | memcpy_fromfs ((unsigned char *)(skb+1)+tmp, from, len); |
len | 314 | net/tcp/raw.c | skb->len = tmp + len; |
len | 317 | net/tcp/raw.c | return (len); |
len | 321 | net/tcp/raw.c | raw_write (volatile struct sock *sk, unsigned char *buff, int len, int noblock, |
len | 324 | net/tcp/raw.c | return (raw_sendto (sk, buff, len, noblock, flags, NULL, 0)); |
len | 364 | net/tcp/raw.c | raw_recvfrom (volatile struct sock *sk, unsigned char *to, int len, |
len | 374 | net/tcp/raw.c | " sin=%X, addr_len=%X)\n", sk, to, len, noblock, |
len | 377 | net/tcp/raw.c | if (len == 0) return (0); |
len | 378 | net/tcp/raw.c | if (len < 0) return (-EINVAL); |
len | 424 | net/tcp/raw.c | copied = min (len, skb->len); |
len | 447 | net/tcp/raw.c | raw_read (volatile struct sock *sk, unsigned char *buff, int len, int noblock, |
len | 450 | net/tcp/raw.c | return (raw_recvfrom (sk, buff, len, noblock, flags, NULL, NULL)); |
len | 147 | net/tcp/sock.c | static int ip_proto_send (struct socket *sock, void *buff, int len, |
len | 149 | net/tcp/sock.c | static int ip_proto_recv (struct socket *sock, void *buff, int len, |
len | 151 | net/tcp/sock.c | static int ip_proto_sendto (struct socket *sock, void *buff, int len, |
len | 154 | net/tcp/sock.c | static int ip_proto_recvfrom (struct socket *sock, void *buff, int len, |
len | 661 | net/tcp/sock.c | sk->time_wait.len = SOCK_DESTROY_TIME; |
len | 1063 | net/tcp/sock.c | sk->time_wait.len = TCP_CONNECT_TIME; |
len | 1388 | net/tcp/sock.c | int len; |
len | 1389 | net/tcp/sock.c | len = get_fs_long(uaddr_len); |
len | 1391 | net/tcp/sock.c | if (len < sizeof (sin)) return (-EINVAL); |
len | 1414 | net/tcp/sock.c | len = sizeof (sin); |
len | 1415 | net/tcp/sock.c | verify_area (VERIFY_WRITE, uaddr, len); |
len | 1417 | net/tcp/sock.c | verify_area(VERIFY_WRITE, uaddr_len, sizeof (len)); |
len | 1418 | net/tcp/sock.c | put_fs_long (len, uaddr_len); |
len | 1870 | net/tcp/sock.c | skb->saddr, skb->len, skb->daddr, 1, |
len | 1881 | net/tcp/sock.c | sk->time_wait.len = min (sk->rtt * 2, TCP_DONE_TIME); |
len | 119 | net/tcp/sock.h | int (*read)(volatile struct sock *sk, unsigned char *to, int len, |
len | 121 | net/tcp/sock.h | int (*write)(volatile struct sock *sk, unsigned char *to, int len, |
len | 123 | net/tcp/sock.h | int (*sendto) (volatile struct sock *sk, unsigned char *from, int len, |
len | 126 | net/tcp/sock.h | int (*recvfrom) (volatile struct sock *sk, unsigned char *from, int len, |
len | 131 | net/tcp/sock.h | struct options *opt, int len); |
len | 141 | net/tcp/sock.h | unsigned long daddr, unsigned short len, |
len | 184 | net/tcp/sock.h | unsigned long len; |
len | 179 | net/tcp/tcp.c | sk->time_wait.len = TCP_TIMEWAIT_LEN; |
len | 280 | net/tcp/tcp.c | sum = skb->len - ( counted - skb->h.th->seq); |
len | 444 | net/tcp/tcp.c | tcp_check (struct tcp_header *th, int len, unsigned long saddr, |
len | 455 | net/tcp/tcp.c | : "0" (daddr), "c" (saddr), "d" ((net16(len) << 16) + IPPROTO_TCP*256) |
len | 458 | net/tcp/tcp.c | if (len > 3) |
len | 468 | net/tcp/tcp.c | : "0" (sum), "c" (len/4) ,"1" (th) |
len | 483 | net/tcp/tcp.c | if ((len & 2) != 0) |
len | 494 | net/tcp/tcp.c | if ((len & 1) != 0) |
len | 513 | net/tcp/tcp.c | unsigned long daddr, int len, volatile struct sock *sk) |
len | 518 | net/tcp/tcp.c | th->check = tcp_check (th, len, saddr, daddr); |
len | 532 | net/tcp/tcp.c | skb->len-(unsigned long)skb->h.th + |
len | 586 | net/tcp/tcp.c | sk->time_wait.len = 10; /* got to do it quickly. */ |
len | 595 | net/tcp/tcp.c | buff->len=sizeof (struct tcp_header); |
len | 606 | net/tcp/tcp.c | buff->len += tmp; |
len | 671 | net/tcp/tcp.c | int len, int nonblock, unsigned flags) |
len | 682 | net/tcp/tcp.c | sk, from, len, nonblock, flags)); |
len | 685 | net/tcp/tcp.c | while (len > 0) |
len | 780 | net/tcp/tcp.c | copy = min (sk->mss - skb->len + 128 + prot->max_header, len); |
len | 786 | net/tcp/tcp.c | memcpy_fromfs ((unsigned char *)(skb+1) + skb->len, from, copy); |
len | 787 | net/tcp/tcp.c | skb->len += copy; |
len | 790 | net/tcp/tcp.c | len -= copy; |
len | 794 | net/tcp/tcp.c | if (skb->len - (unsigned long)skb->h.th + |
len | 811 | net/tcp/tcp.c | copy = min (copy, len); |
len | 873 | net/tcp/tcp.c | skb->len = 0; |
len | 892 | net/tcp/tcp.c | skb->len += tmp; |
len | 896 | net/tcp/tcp.c | tmp = tcp_build_header((struct tcp_header *)buff, sk, len-copy); |
len | 912 | net/tcp/tcp.c | skb->len += tmp; |
len | 917 | net/tcp/tcp.c | len -= copy; |
len | 918 | net/tcp/tcp.c | skb->len += copy; |
len | 964 | net/tcp/tcp.c | int len, int nonblock, unsigned flags, |
len | 977 | net/tcp/tcp.c | return (tcp_write (sk, from, len, nonblock, flags)); |
len | 1002 | net/tcp/tcp.c | sk->time_wait.len = 10; |
len | 1010 | net/tcp/tcp.c | buff->len=sizeof (struct tcp_header); |
len | 1022 | net/tcp/tcp.c | buff->len += tmp; |
len | 1099 | net/tcp/tcp.c | sk->time_wait.len = TCP_ACK_TIME; |
len | 1109 | net/tcp/tcp.c | unsigned char *to, int len, unsigned flags) |
len | 1115 | net/tcp/tcp.c | sk, to, len, flags)); |
len | 1117 | net/tcp/tcp.c | while (len > 0) |
len | 1184 | net/tcp/tcp.c | skb->h.th->urg_ptr = net16(skb->len); |
len | 1186 | net/tcp/tcp.c | amt = min(net16(skb->h.th->urg_ptr),len); |
len | 1211 | net/tcp/tcp.c | int len, int nonblock, unsigned flags) |
len | 1218 | net/tcp/tcp.c | if (len == 0) return (0); |
len | 1219 | net/tcp/tcp.c | if (len < 0) |
len | 1229 | net/tcp/tcp.c | return (tcp_read_urg (sk, nonblock, to, len, flags)); |
len | 1239 | net/tcp/tcp.c | sk, to, len, nonblock, flags)); |
len | 1241 | net/tcp/tcp.c | while ( len > 0) |
len | 1354 | net/tcp/tcp.c | if (offset < skb->len ) |
len | 1364 | net/tcp/tcp.c | if (offset >= skb->len) |
len | 1378 | net/tcp/tcp.c | used = min(skb->len - offset, len); |
len | 1386 | net/tcp/tcp.c | len -= used; |
len | 1396 | net/tcp/tcp.c | (used + offset >= skb->len) ) |
len | 1466 | net/tcp/tcp.c | buff->len = sizeof (*t1); |
len | 1482 | net/tcp/tcp.c | buff ->len += tmp; |
len | 1534 | net/tcp/tcp.c | int len; |
len | 1537 | net/tcp/tcp.c | len = get_fs_long(addr_len); |
len | 1538 | net/tcp/tcp.c | if (len > sizeof (sin)) |
len | 1539 | net/tcp/tcp.c | len = sizeof (sin); |
len | 1543 | net/tcp/tcp.c | verify_area (VERIFY_WRITE, addr, len); |
len | 1544 | net/tcp/tcp.c | memcpy_tofs (addr, &sin, len); |
len | 1545 | net/tcp/tcp.c | verify_area (VERIFY_WRITE, addr_len, sizeof (len)); |
len | 1546 | net/tcp/tcp.c | put_fs_long (len, addr_len); |
len | 1567 | net/tcp/tcp.c | buff->len = sizeof (*t1); |
len | 1581 | net/tcp/tcp.c | buff->len += tmp; |
len | 1744 | net/tcp/tcp.c | buff->len=sizeof (struct tcp_header)+4; |
len | 1765 | net/tcp/tcp.c | buff->len += tmp; |
len | 1795 | net/tcp/tcp.c | newsk->time_wait.len = TCP_CONNECT_TIME; |
len | 1849 | net/tcp/tcp.c | if (skb->len > 0 && |
len | 1850 | net/tcp/tcp.c | after (skb->h.th->seq + skb->len + 1, sk->copied_seq)) |
len | 1871 | net/tcp/tcp.c | sk->time_wait.len = 4*sk->rtt;; |
len | 1911 | net/tcp/tcp.c | sk->time_wait.len = 100; /* wait a second. */ |
len | 1920 | net/tcp/tcp.c | buff->len = sizeof (*t1); |
len | 1935 | net/tcp/tcp.c | buff ->len += tmp; |
len | 1958 | net/tcp/tcp.c | sk->time_wait.len = sk->rtt; |
len | 2245 | net/tcp/tcp.c | sk->time_wait.len = sk->rtt*2; |
len | 2250 | net/tcp/tcp.c | sk->time_wait.len = TCP_TIMEWAIT_LEN; |
len | 2306 | net/tcp/tcp.c | unsigned long saddr, unsigned short len) |
len | 2313 | net/tcp/tcp.c | skb->len = len - (th->doff*4); |
len | 2315 | net/tcp/tcp.c | PRINTK(("tcp_data len = %d sk = %X:\n",skb->len, sk)); |
len | 2317 | net/tcp/tcp.c | sk->bytes_rcv += skb->len; |
len | 2319 | net/tcp/tcp.c | if (skb->len == 0 && !th->fin && !th->urg && !th->psh) |
len | 2330 | net/tcp/tcp.c | sk->acked_seq = th->seq + skb->len + th->syn + th->fin; |
len | 2391 | net/tcp/tcp.c | th->ack_seq = th->seq + skb->len; |
len | 2456 | net/tcp/tcp.c | sk->time_wait.len = TCP_ACK_TIME; |
len | 2565 | net/tcp/tcp.c | sk->time_wait.len = TCP_TIMEWAIT_LEN; |
len | 2586 | net/tcp/tcp.c | buff->len=sizeof (struct tcp_header); |
len | 2599 | net/tcp/tcp.c | buff->len += tmp; |
len | 2737 | net/tcp/tcp.c | buff->len=24; |
len | 2751 | net/tcp/tcp.c | buff->len += tmp; |
len | 2782 | net/tcp/tcp.c | sk->time_wait.len = TCP_CONNECT_TIME; |
len | 2795 | net/tcp/tcp.c | tcp_sequence (volatile struct sock *sk, struct tcp_header *th, short len, |
len | 2804 | net/tcp/tcp.c | sk, th, len, opt, saddr)); |
len | 2807 | net/tcp/tcp.c | between(th->seq + len-(th->doff * 4), sk->acked_seq + 1, |
len | 2810 | net/tcp/tcp.c | after (th->seq + len - (th->doff * 4), sk->acked_seq + sk->window))) |
len | 2826 | net/tcp/tcp.c | if (th->ack && len == (th->doff * 4) && after (th->seq, sk->acked_seq - 32767) && |
len | 2855 | net/tcp/tcp.c | unsigned long daddr, unsigned short len, |
len | 2889 | net/tcp/tcp.c | PRINTK(("len = %d, redo = %d, skb=%X\n", len, redo, skb)); |
len | 2898 | net/tcp/tcp.c | if (th->check && tcp_check (th, len, saddr, daddr )) |
len | 2918 | net/tcp/tcp.c | skb->len = len; |
len | 3009 | net/tcp/tcp.c | if (!tcp_sequence (sk, th, len, opt, saddr)) |
len | 3083 | net/tcp/tcp.c | if ( tcp_data (skb, sk, saddr, len)) |
len | 3153 | net/tcp/tcp.c | if (!tcp_sequence (sk, th, len, opt, saddr)) |
len | 3260 | net/tcp/tcp.c | if (tcp_data (skb, sk, saddr, len)) |
len | 3280 | net/tcp/tcp.c | if (tcp_data (skb, sk, saddr, len)) |
len | 3318 | net/tcp/tcp.c | buff->len=sizeof (struct tcp_header); |
len | 3333 | net/tcp/tcp.c | buff->len += tmp; |
len | 126 | net/tcp/timer.c | t->when = timer_seq + t->len; |
len | 191 | net/tcp/timer.c | sk->time_wait.len = TCP_TIMEOUT_LEN; |
len | 251 | net/tcp/timer.c | sk->time_wait.len = 2*sk->rtt; |
len | 277 | net/tcp/timer.c | sk->time_wait.len = TCP_TIMEWAIT_LEN; |
len | 45 | net/tcp/timer.h | unsigned long len; |
len | 105 | net/tcp/udp.c | PRINTK(("len = %d, check = %d\n", net16(uh->len), net16(uh->check))); |
len | 175 | net/tcp/udp.c | udp_check (struct udp_header *uh, int len, |
len | 180 | net/tcp/udp.c | uh, len, saddr, daddr)); |
len | 188 | net/tcp/udp.c | : "0" (daddr), "c" (saddr), "d" ((net16(len) << 16) + IPPROTO_UDP*256) |
len | 191 | net/tcp/udp.c | if (len > 3) |
len | 201 | net/tcp/udp.c | : "0" (sum), "c" (len/4) ,"1" (uh) |
len | 217 | net/tcp/udp.c | if ((len & 2) != 0) |
len | 228 | net/tcp/udp.c | if ((len & 1) != 0) |
len | 245 | net/tcp/udp.c | unsigned long daddr, int len, volatile struct sock *sk) |
len | 249 | net/tcp/udp.c | uh->check = udp_check (uh, len, saddr, daddr); |
len | 255 | net/tcp/udp.c | int len, unsigned long daddr, unsigned long saddr) |
len | 270 | net/tcp/udp.c | sizeof (*skb) + sizeof (*uh) + len + 4, |
len | 274 | net/tcp/udp.c | if (skb == NULL) return (len); |
len | 277 | net/tcp/udp.c | skb->mem_len = sizeof (*skb) + len + sizeof (*uh) + 4; |
len | 282 | net/tcp/udp.c | skb->len = len; |
len | 288 | net/tcp/udp.c | uh -> len = len + sizeof (*uh); |
len | 290 | net/tcp/udp.c | memcpy_fromfs(uh+1, from, len); |
len | 308 | net/tcp/udp.c | return (len); |
len | 313 | net/tcp/udp.c | udp_sendto (volatile struct sock *sk, unsigned char *from, int len, |
len | 329 | net/tcp/udp.c | if (len < 0) return (-EINVAL); |
len | 330 | net/tcp/udp.c | if (len == 0) return (0); |
len | 332 | net/tcp/udp.c | PRINTK (("sendto len = %d\n", len)); |
len | 367 | net/tcp/udp.c | err = udp_loopback (sk, sin.sin_port, from, len, |
len | 375 | net/tcp/udp.c | while (len > 0) |
len | 378 | net/tcp/udp.c | skb = sk->prot->wmalloc (sk, len + sizeof (*skb) |
len | 407 | net/tcp/udp.c | skb->mem_len = len + sizeof (*skb) + sk->prot->max_header; |
len | 427 | net/tcp/udp.c | amt = min (len + tmp + sizeof (*uh), dev->mtu); |
len | 432 | net/tcp/udp.c | skb->len = amt; |
len | 436 | net/tcp/udp.c | uh->len = net16(amt); |
len | 452 | net/tcp/udp.c | len -= amt; |
len | 465 | net/tcp/udp.c | udp_write (volatile struct sock *sk, unsigned char *buff, int len, int noblock, |
len | 468 | net/tcp/udp.c | return (udp_sendto (sk, buff, len, noblock, flags, NULL, 0)); |
len | 505 | net/tcp/udp.c | amount = skb->len; |
len | 516 | net/tcp/udp.c | udp_recvfrom (volatile struct sock *sk, unsigned char *to, int len, |
len | 524 | net/tcp/udp.c | if (len == 0) return (0); |
len | 525 | net/tcp/udp.c | if (len < 0) return (-EINVAL); |
len | 584 | net/tcp/udp.c | copied = min (len, skb->len); |
len | 609 | net/tcp/udp.c | udp_read (volatile struct sock *sk, unsigned char *buff, int len, int noblock, |
len | 612 | net/tcp/udp.c | return (udp_recvfrom (sk, buff, len, noblock, flags, NULL, NULL)); |
len | 643 | net/tcp/udp.c | unsigned long daddr, unsigned short len, |
len | 673 | net/tcp/udp.c | if (uh->check && udp_check (uh, len, saddr, daddr)) |
len | 683 | net/tcp/udp.c | skb->len = len; |
len | 742 | net/tcp/udp.c | skb->len = len - sizeof (*uh); |
len | 41 | net/tcp/udp.h | unsigned short len; |
len | 201 | net/tcp/we.c | long len; |
len | 206 | net/tcp/we.c | len = ring->count-4; |
len | 207 | net/tcp/we.c | if (len < 56) |
len | 210 | net/tcp/we.c | return (dev_rint(fptr, len, 0, dev)); |
len | 217 | net/tcp/we.c | int len; |
len | 264 | net/tcp/we.c | memcpy ((unsigned char *)dev->mem_start, skb+1, skb->len); |
len | 266 | net/tcp/we.c | len = skb->len; |
len | 270 | net/tcp/we.c | len=max(len, ETHER_MIN_LEN); /* actually we should zero out |
len | 282 | net/tcp/we.c | outb_p(len&0xff,WD_TB0); |
len | 283 | net/tcp/we.c | outb_p(len>>8,WD_TB1); |
len | 484 | net/tcp/we.c | len = dev_tint( (unsigned char *)dev->mem_start, dev ); |
len | 485 | net/tcp/we.c | if( len != 0 ){ |
len | 486 | net/tcp/we.c | len=max(len, ETHER_MIN_LEN); |
len | 488 | net/tcp/we.c | outb_p(len&0xff,WD_TB0); |
len | 489 | net/tcp/we.c | outb_p(len>>8,WD_TB1); |
len | 64 | net/unix.c | static int unix_proto_send (struct socket *sock, void *buff, int len, |
len | 66 | net/unix.c | static int unix_proto_recv (struct socket *sock, void *buff, int len, |
len | 68 | net/unix.c | static int unix_proto_sendto (struct socket *sock, void *buff, int len, |
len | 71 | net/unix.c | static int unix_proto_recvfrom (struct socket *sock, void *buff, int len, |
len | 156 | net/unix.c | unix_proto_sendto(struct socket *sock, void *buff, int len, int nonblock, |
len | 163 | net/unix.c | unix_proto_recvfrom(struct socket *sock, void *buff, int len, int nonblock, |
len | 176 | net/unix.c | unix_proto_send(struct socket *sock, void *buff, int len, int nonblock, |
len | 182 | net/unix.c | return (unix_proto_write (sock, buff, len, nonblock)); |
len | 186 | net/unix.c | unix_proto_recv(struct socket *sock, void *buff, int len, int nonblock, |
len | 192 | net/unix.c | return (unix_proto_read (sock, buff, len, nonblock)); |
len | 512 | net/unix.c | int len; |
len | 526 | net/unix.c | if ((len = get_fs_long(usockaddr_len)) <= 0) |
len | 528 | net/unix.c | if (len > upd->sockaddr_len) |
len | 529 | net/unix.c | len = upd->sockaddr_len; |
len | 530 | net/unix.c | if (len) { |
len | 531 | net/unix.c | verify_area(VERIFY_WRITE,usockaddr, len); |
len | 532 | net/unix.c | memcpy_tofs(usockaddr, &upd->sockaddr_un, len); |
len | 534 | net/unix.c | put_fs_long(len, usockaddr_len); |
len | 264 | zBoot/gzip.h | void copy_block OF((char *buf, unsigned len, int header)); |
len | 178 | zBoot/misc.c | int len, i; |
len | 183 | zBoot/misc.c | len = INBUFSIZ-insize; |
len | 184 | zBoot/misc.c | if (len > (input_len-input_ptr+1)) len=input_len-input_ptr+1; |
len | 185 | zBoot/misc.c | if (len == 0 || len == EOF) break; |
len | 187 | zBoot/misc.c | for (i=0;i<len;i++) inbuf[insize+i] = input_data[input_ptr+i]; |
len | 188 | zBoot/misc.c | insize += len; |
len | 189 | zBoot/misc.c | input_ptr += len; |
len | 371 | zBoot/misc.c | unsigned len = (unsigned)get_byte(); |
len | 372 | zBoot/misc.c | len |= ((unsigned)get_byte())<<8; |
len | 373 | zBoot/misc.c | while (len--) (void)get_byte(); |
len | 18 | zBoot/piggyback.c | int c, n=0, len=0; |
len | 35 | zBoot/piggyback.c | len = 0; |
len | 36 | zBoot/piggyback.c | while ((n = read(0, &tmp_buf[len], sizeof(tmp_buf)-len+1)) > 0) |
len | 37 | zBoot/piggyback.c | len += n; |
len | 45 | zBoot/piggyback.c | if (len >= sizeof(tmp_buf)) |
len | 51 | zBoot/piggyback.c | fprintf(stderr, "Compressed size %d.\n", len); |
len | 56 | zBoot/piggyback.c | obj.a_data = len + sizeof(long); |
len | 63 | zBoot/piggyback.c | write(1, tmp_buf, len); |
len | 64 | zBoot/piggyback.c | write(1, (char *)&len, sizeof(len)); |
len | 69 | zBoot/piggyback.c | var_names[1].n_value = len; |
len | 75 | zBoot/piggyback.c | len = sizeof(string_names) + sizeof(len); |
len | 76 | zBoot/piggyback.c | write(1, (char *)&len, sizeof(len)); |