tag | line | file | source code |
i | 49 | fs/buffer.c | int i; |
i | 53 | fs/buffer.c | for (i = nr_buffers*2 ; i-- > 0 ; bh = bh->b_next_free) { |
i | 64 | fs/buffer.c | int i; |
i | 66 | fs/buffer.c | for (i=0 ; i<NR_SUPER ; i++) |
i | 67 | fs/buffer.c | if (super_block[i].s_dev |
i | 68 | fs/buffer.c | && super_block[i].s_op |
i | 69 | fs/buffer.c | && super_block[i].s_op->write_super |
i | 70 | fs/buffer.c | && super_block[i].s_dirt) |
i | 71 | fs/buffer.c | super_block[i].s_op->write_super(&super_block[i]); |
i | 92 | fs/buffer.c | int i; |
i | 96 | fs/buffer.c | for (i = nr_buffers*2 ; --i > 0 ; bh = bh->b_next_free) { |
i | 121 | fs/buffer.c | int i; |
i | 128 | fs/buffer.c | i = floppy_change(bh); |
i | 130 | fs/buffer.c | if (!i) |
i | 132 | fs/buffer.c | for (i=0 ; i<NR_SUPER ; i++) |
i | 133 | fs/buffer.c | if (super_block[i].s_dev == dev) |
i | 134 | fs/buffer.c | put_super(super_block[i].s_dev); |
i | 377 | fs/buffer.c | int i; |
i | 379 | fs/buffer.c | for (i=0 ; i<4 ; i++) |
i | 380 | fs/buffer.c | if (b[i]) { |
i | 381 | fs/buffer.c | if (bh[i] = getblk(dev, b[i], 1024)) |
i | 382 | fs/buffer.c | if (!bh[i]->b_uptodate) |
i | 383 | fs/buffer.c | ll_rw_block(READ,bh[i]); |
i | 385 | fs/buffer.c | bh[i] = NULL; |
i | 386 | fs/buffer.c | for (i=0 ; i<4 ; i++,address += BLOCK_SIZE) |
i | 387 | fs/buffer.c | if (bh[i]) { |
i | 388 | fs/buffer.c | wait_on_buffer(bh[i]); |
i | 389 | fs/buffer.c | if (bh[i]->b_uptodate) |
i | 390 | fs/buffer.c | COPYBLK((unsigned long) bh[i]->b_data,address); |
i | 391 | fs/buffer.c | brelse(bh[i]); |
i | 477 | fs/buffer.c | int i; |
i | 488 | fs/buffer.c | i = 0; |
i | 489 | fs/buffer.c | for (i = 0 ; i+size <= 4096 ; i += size) { |
i | 495 | fs/buffer.c | bh->b_data = (char * ) (page+i); |
i | 497 | fs/buffer.c | i += size; |
i | 564 | fs/buffer.c | int i; |
i | 567 | fs/buffer.c | for (i = nr_buffers*2 ; i-- > 0 ; bh = bh->b_next_free) { |
i | 595 | fs/buffer.c | int i; |
i | 597 | fs/buffer.c | for (i = 0 ; i < NR_HASH ; i++) |
i | 598 | fs/buffer.c | hash_table[i] = NULL; |
i | 253 | fs/exec.c | int i=0; |
i | 258 | fs/exec.c | i++; |
i | 260 | fs/exec.c | return i; |
i | 333 | fs/exec.c | int i; |
i | 346 | fs/exec.c | for (i=MAX_ARG_PAGES-1 ; i>=0 ; i--) { |
i | 348 | fs/exec.c | if (page[i]) |
i | 349 | fs/exec.c | put_dirty_page(page[i],data_base); |
i | 397 | fs/exec.c | int i,argc,envc; |
i | 406 | fs/exec.c | for (i=0 ; i<MAX_ARG_PAGES ; i++) /* clear page-table */ |
i | 407 | fs/exec.c | page[i]=0; |
i | 426 | fs/exec.c | i = inode->i_mode; |
i | 427 | fs/exec.c | if (IS_NOSUID(inode) && (((i & S_ISUID) && inode->i_uid != current-> |
i | 428 | fs/exec.c | euid) || ((i & S_ISGID) && inode->i_gid != current->egid)) && |
i | 438 | fs/exec.c | e_uid = (i & S_ISUID) ? inode->i_uid : current->euid; |
i | 439 | fs/exec.c | e_gid = (i & S_ISGID) ? inode->i_gid : current->egid; |
i | 442 | fs/exec.c | i >>= 6; |
i | 444 | fs/exec.c | i >>= 3; |
i | 445 | fs/exec.c | if (!(i & 1) && |
i | 554 | fs/exec.c | for (i=0; (ch = get_fs_byte(filename++)) != '\0';) |
i | 556 | fs/exec.c | i = 0; |
i | 558 | fs/exec.c | if (i < 8) |
i | 559 | fs/exec.c | current->comm[i++] = ch; |
i | 560 | fs/exec.c | if (i < 8) |
i | 561 | fs/exec.c | current->comm[i] = '\0'; |
i | 564 | fs/exec.c | i = current->numlibraries; |
i | 565 | fs/exec.c | while (i-- > 0) { |
i | 566 | fs/exec.c | iput(current->libraries[i].library); |
i | 567 | fs/exec.c | current->libraries[i].library = NULL; |
i | 575 | fs/exec.c | for (i=0 ; i<32 ; i++) { |
i | 576 | fs/exec.c | current->sigaction[i].sa_mask = 0; |
i | 577 | fs/exec.c | current->sigaction[i].sa_flags = 0; |
i | 578 | fs/exec.c | if (current->sigaction[i].sa_handler != SIG_IGN) |
i | 579 | fs/exec.c | current->sigaction[i].sa_handler = NULL; |
i | 581 | fs/exec.c | for (i=0 ; i<NR_OPEN ; i++) |
i | 582 | fs/exec.c | if ((current->close_on_exec>>i)&1) |
i | 583 | fs/exec.c | sys_close(i); |
i | 610 | fs/exec.c | for (i=0 ; i<MAX_ARG_PAGES ; i++) |
i | 611 | fs/exec.c | free_page(page[i]); |
i | 61 | fs/ext/bitmap.c | unsigned i, j, end, sum = 0; |
i | 64 | fs/ext/bitmap.c | for (i=0; (i<numblocks) && numbits; i++) { |
i | 65 | fs/ext/bitmap.c | if (!(bh=map[i])) |
i | 120 | fs/ext/bitmap.c | int i,j; |
i | 125 | fs/ext/bitmap.c | for (i=0 ; i<8 ; i++) |
i | 126 | fs/ext/bitmap.c | if (bh=sb->s_zmap[i]) |
i | 129 | fs/ext/bitmap.c | if (i>=8 || !bh || j>=8192) |
i | 134 | fs/ext/bitmap.c | j += i*8192 + sb->s_firstdatazone-1; |
i | 197 | fs/ext/bitmap.c | int i,j; |
i | 208 | fs/ext/bitmap.c | for (i=0 ; i<8 ; i++) |
i | 209 | fs/ext/bitmap.c | if (bh=inode->i_sb->s_imap[i]) |
i | 212 | fs/ext/bitmap.c | if (!bh || j >= 8192 || j+i*8192 > inode->i_sb->s_ninodes) { |
i | 228 | fs/ext/bitmap.c | inode->i_ino = j + i*8192; |
i | 25 | fs/ext/blkdev.c | int i; |
i | 27 | fs/ext/blkdev.c | i = MAJOR(inode->i_rdev); |
i | 28 | fs/ext/blkdev.c | if (i < MAX_BLKDEV) { |
i | 29 | fs/ext/blkdev.c | filp->f_op = blkdev_fops[i]; |
i | 25 | fs/ext/chrdev.c | int i; |
i | 27 | fs/ext/chrdev.c | i = MAJOR(inode->i_rdev); |
i | 28 | fs/ext/chrdev.c | if (i < MAX_CHRDEV) { |
i | 29 | fs/ext/chrdev.c | filp->f_op = chrdev_fops[i]; |
i | 58 | fs/ext/dir.c | unsigned int block,offset,i; |
i | 79 | fs/ext/dir.c | for (i = 0; i < de->name_len; i++) |
i | 80 | fs/ext/dir.c | if (c = de->name[i]) |
i | 81 | fs/ext/dir.c | put_fs_byte(c,i+dirent->d_name); |
i | 84 | fs/ext/dir.c | if (i) { |
i | 86 | fs/ext/dir.c | put_fs_byte(0,i+dirent->d_name); |
i | 87 | fs/ext/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 89 | fs/ext/dir.c | return i; |
i | 35 | fs/ext/inode.c | int i; |
i | 41 | fs/ext/inode.c | for(i = 0 ; i < EXT_I_MAP_SLOTS ; i++) |
i | 42 | fs/ext/inode.c | brelse(sb->u.ext_sb.s_imap[i]); |
i | 43 | fs/ext/inode.c | for(i = 0 ; i < EXT_Z_MAP_SLOTS ; i++) |
i | 44 | fs/ext/inode.c | brelse(sb->u.ext_sb.s_zmap[i]); |
i | 71 | fs/ext/inode.c | int i; |
i | 109 | fs/ext/inode.c | for (i=0;i < EXT_I_MAP_SLOTS;i++) |
i | 110 | fs/ext/inode.c | s->u.ext_sb.s_imap[i] = NULL; |
i | 111 | fs/ext/inode.c | for (i=0;i < EXT_Z_MAP_SLOTS;i++) |
i | 112 | fs/ext/inode.c | s->u.ext_sb.s_zmap[i] = NULL; |
i | 114 | fs/ext/inode.c | for (i=0 ; i < s->u.ext_sb.s_imap_blocks ; i++) |
i | 115 | fs/ext/inode.c | if (s->u.ext_sb.s_imap[i]=bread(dev, block, BLOCK_SIZE)) |
i | 119 | fs/ext/inode.c | for (i=0 ; i < s->u.ext_sb.s_zmap_blocks ; i++) |
i | 120 | fs/ext/inode.c | if (s->u.ext_sb.s_zmap[i]=bread(dev, block, BLOCK_SIZE)) |
i | 125 | fs/ext/inode.c | for(i=0;i<EXT_I_MAP_SLOTS;i++) |
i | 126 | fs/ext/inode.c | brelse(s->u.ext_sb.s_imap[i]); |
i | 127 | fs/ext/inode.c | for(i=0;i<EXT_Z_MAP_SLOTS;i++) |
i | 128 | fs/ext/inode.c | brelse(s->u.ext_sb.s_zmap[i]); |
i | 215 | fs/ext/inode.c | int i; |
i | 244 | fs/ext/inode.c | i = ((unsigned long *) (bh->b_data))[block]; |
i | 245 | fs/ext/inode.c | if (create && !i) |
i | 246 | fs/ext/inode.c | if (i=ext_new_block(inode->i_dev)) { |
i | 247 | fs/ext/inode.c | ((unsigned long *) (bh->b_data))[block]=i; |
i | 251 | fs/ext/inode.c | return i; |
i | 264 | fs/ext/inode.c | i = ((unsigned long *)bh->b_data)[block>>8]; |
i | 265 | fs/ext/inode.c | if (create && !i) |
i | 266 | fs/ext/inode.c | if (i=ext_new_block(inode->i_dev)) { |
i | 267 | fs/ext/inode.c | ((unsigned long *) (bh->b_data))[block>>8]=i; |
i | 271 | fs/ext/inode.c | if (!i) |
i | 273 | fs/ext/inode.c | if (!(bh=bread(inode->i_dev, i, BLOCK_SIZE))) |
i | 275 | fs/ext/inode.c | i = ((unsigned long *)bh->b_data)[block&255]; |
i | 276 | fs/ext/inode.c | if (create && !i) |
i | 277 | fs/ext/inode.c | if (i=ext_new_block(inode->i_dev)) { |
i | 278 | fs/ext/inode.c | ((unsigned long *) (bh->b_data))[block&255]=i; |
i | 282 | fs/ext/inode.c | return i; |
i | 293 | fs/ext/inode.c | i = ((unsigned long *) bh->b_data)[block >> 16]; |
i | 294 | fs/ext/inode.c | if (create && !i) |
i | 295 | fs/ext/inode.c | if (i = ext_new_block(inode->i_dev)) { |
i | 296 | fs/ext/inode.c | ((unsigned long *) bh->b_data)[block >> 16] = i; |
i | 300 | fs/ext/inode.c | if (!i) |
i | 302 | fs/ext/inode.c | if (!(bh = bread(inode->i_dev, i, BLOCK_SIZE))) |
i | 304 | fs/ext/inode.c | i = ((unsigned long *) bh->b_data)[(block >> 8) & 255]; |
i | 305 | fs/ext/inode.c | if (create && !i) |
i | 306 | fs/ext/inode.c | if (i = ext_new_block(inode->i_dev)) { |
i | 307 | fs/ext/inode.c | ((unsigned long *) bh->b_data)[(block >> 8) & 255] = i; |
i | 311 | fs/ext/inode.c | if (!i) |
i | 313 | fs/ext/inode.c | if (!(bh = bread(inode->i_dev, i, BLOCK_SIZE))) |
i | 315 | fs/ext/inode.c | i = ((unsigned long *) bh->b_data)[block & 255]; |
i | 316 | fs/ext/inode.c | if (create && !i) |
i | 317 | fs/ext/inode.c | if (i = ext_new_block(inode->i_dev)) { |
i | 318 | fs/ext/inode.c | ((unsigned long *) bh->b_data)[block & 255] = i; |
i | 322 | fs/ext/inode.c | return i; |
i | 198 | fs/ext/namei.c | int block,i; |
i | 294 | fs/ext/namei.c | for (i=0; i < namelen ; i++) |
i | 295 | fs/ext/namei.c | de->name[i]=/*(i<namelen)?*/get_fs_byte(name+i)/*:0*/; |
i | 630 | fs/ext/namei.c | int i; |
i | 654 | fs/ext/namei.c | i = 0; |
i | 655 | fs/ext/namei.c | while (i < 1023 && (c=get_fs_byte(symname++))) |
i | 656 | fs/ext/namei.c | name_block->b_data[i++] = c; |
i | 657 | fs/ext/namei.c | name_block->b_data[i] = 0; |
i | 660 | fs/ext/namei.c | inode->i_size = i; |
i | 83 | fs/ext/symlink.c | int i; |
i | 99 | fs/ext/symlink.c | i = 0; |
i | 100 | fs/ext/symlink.c | while (i<buflen && (c = bh->b_data[i])) { |
i | 101 | fs/ext/symlink.c | i++; |
i | 105 | fs/ext/symlink.c | return i; |
i | 35 | fs/ext/truncate.c | int i; |
i | 40 | fs/ext/truncate.c | for (i = DIRECT_BLOCK ; i < 9 ; i++) { |
i | 41 | fs/ext/truncate.c | if (i < DIRECT_BLOCK) |
i | 43 | fs/ext/truncate.c | if (!inode->i_data[i]) |
i | 46 | fs/ext/truncate.c | if (ext_free_block(inode->i_dev,inode->i_data[i])) |
i | 47 | fs/ext/truncate.c | inode->i_data[i] = 0; |
i | 54 | fs/ext/truncate.c | int i; |
i | 65 | fs/ext/truncate.c | for (i = INDIRECT_BLOCK ; i < 256 ; i++) { |
i | 66 | fs/ext/truncate.c | if (i < 0) |
i | 67 | fs/ext/truncate.c | i = 0; |
i | 68 | fs/ext/truncate.c | if (i < INDIRECT_BLOCK) |
i | 70 | fs/ext/truncate.c | ind = i+(unsigned long *) bh->b_data; |
i | 78 | fs/ext/truncate.c | for (i = 0; i < 256; i++) |
i | 82 | fs/ext/truncate.c | if (i >= 256) { |
i | 92 | fs/ext/truncate.c | int i; |
i | 103 | fs/ext/truncate.c | for (i = DINDIRECT_BLOCK ; i < 256 ; i ++) { |
i | 104 | fs/ext/truncate.c | if (i < 0) |
i | 105 | fs/ext/truncate.c | i = 0; |
i | 106 | fs/ext/truncate.c | if (i < DINDIRECT_BLOCK) |
i | 108 | fs/ext/truncate.c | dind = i+(unsigned long *) bh->b_data; |
i | 111 | fs/ext/truncate.c | result |= trunc_indirect(inode,offset+(i<<8),dind); |
i | 114 | fs/ext/truncate.c | for (i = 0; i < 256; i++) |
i | 118 | fs/ext/truncate.c | if (i >= 256) { |
i | 128 | fs/ext/truncate.c | int i; |
i | 139 | fs/ext/truncate.c | for (i = TINDIRECT_BLOCK ; i < 256 ; i ++) { |
i | 140 | fs/ext/truncate.c | if (i < 0) |
i | 141 | fs/ext/truncate.c | i = 0; |
i | 142 | fs/ext/truncate.c | if (i < TINDIRECT_BLOCK) |
i | 144 | fs/ext/truncate.c | tind = i+(unsigned long *) bh->b_data; |
i | 147 | fs/ext/truncate.c | result |= trunc_dindirect(inode,9+256+256*256+(i<<16),tind); |
i | 150 | fs/ext/truncate.c | for (i = 0; i < 256; i++) |
i | 154 | fs/ext/truncate.c | if (i >= 256) { |
i | 14 | fs/file_table.c | int i; |
i | 17 | fs/file_table.c | for (i = 0; i++ < NR_FILE; f++) |
i | 79 | fs/inode.c | int i; |
i | 83 | fs/inode.c | for(i=0 ; i<NR_INODE ; i++,inode++) { |
i | 97 | fs/inode.c | int i; |
i | 101 | fs/inode.c | for(i=0 ; i<NR_INODE ; i++,inode++) { |
i | 155 | fs/inode.c | int i; |
i | 159 | fs/inode.c | for (i = NR_INODE; i ; i--) { |
i | 169 | fs/inode.c | for (i=0 ; i<NR_INODE ; i++) |
i | 170 | fs/inode.c | printk("(%04x: %d (%o)) ",inode_table[i].i_dev, |
i | 171 | fs/inode.c | inode_table[i].i_ino,inode_table[i].i_mode); |
i | 222 | fs/inode.c | int i; |
i | 224 | fs/inode.c | for (i = 0 ; i<NR_SUPER ; i++) |
i | 225 | fs/inode.c | if (super_block[i].s_covered==inode) |
i | 227 | fs/inode.c | if (i >= NR_SUPER) { |
i | 234 | fs/inode.c | if (!(inode = super_block[i].s_mounted)) |
i | 52 | fs/minix/bitmap.c | unsigned i, j, end, sum = 0; |
i | 55 | fs/minix/bitmap.c | for (i=0; (i<numblocks) && numbits; i++) { |
i | 56 | fs/minix/bitmap.c | if (!(bh=map[i])) |
i | 111 | fs/minix/bitmap.c | int i,j; |
i | 116 | fs/minix/bitmap.c | for (i=0 ; i<8 ; i++) |
i | 117 | fs/minix/bitmap.c | if (bh=sb->u.minix_sb.s_zmap[i]) |
i | 120 | fs/minix/bitmap.c | if (i>=8 || !bh || j>=8192) |
i | 125 | fs/minix/bitmap.c | j += i*8192 + sb->u.minix_sb.s_firstdatazone-1; |
i | 185 | fs/minix/bitmap.c | int i,j; |
i | 196 | fs/minix/bitmap.c | for (i=0 ; i<8 ; i++) |
i | 197 | fs/minix/bitmap.c | if (bh=inode->i_sb->u.minix_sb.s_imap[i]) |
i | 200 | fs/minix/bitmap.c | if (!bh || j >= 8192 || j+i*8192 > inode->i_sb->u.minix_sb.s_ninodes) { |
i | 216 | fs/minix/bitmap.c | inode->i_ino = j + i*8192; |
i | 19 | fs/minix/blkdev.c | int i; |
i | 21 | fs/minix/blkdev.c | i = MAJOR(inode->i_rdev); |
i | 22 | fs/minix/blkdev.c | if (i < MAX_BLKDEV) { |
i | 23 | fs/minix/blkdev.c | filp->f_op = blkdev_fops[i]; |
i | 19 | fs/minix/chrdev.c | int i; |
i | 21 | fs/minix/chrdev.c | i = MAJOR(inode->i_rdev); |
i | 22 | fs/minix/chrdev.c | if (i < MAX_CHRDEV) { |
i | 23 | fs/minix/chrdev.c | filp->f_op = chrdev_fops[i]; |
i | 52 | fs/minix/dir.c | unsigned int block,offset,i; |
i | 73 | fs/minix/dir.c | for (i = 0; i < MINIX_NAME_LEN; i++) |
i | 74 | fs/minix/dir.c | if (c = de->name[i]) |
i | 75 | fs/minix/dir.c | put_fs_byte(c,i+dirent->d_name); |
i | 78 | fs/minix/dir.c | if (i) { |
i | 80 | fs/minix/dir.c | put_fs_byte(0,i+dirent->d_name); |
i | 81 | fs/minix/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 83 | fs/minix/dir.c | return i; |
i | 28 | fs/minix/inode.c | int i; |
i | 32 | fs/minix/inode.c | for(i = 0 ; i < MINIX_I_MAP_SLOTS ; i++) |
i | 33 | fs/minix/inode.c | brelse(sb->u.minix_sb.s_imap[i]); |
i | 34 | fs/minix/inode.c | for(i = 0 ; i < MINIX_Z_MAP_SLOTS ; i++) |
i | 35 | fs/minix/inode.c | brelse(sb->u.minix_sb.s_zmap[i]); |
i | 53 | fs/minix/inode.c | int i,dev=s->s_dev,block; |
i | 79 | fs/minix/inode.c | for (i=0;i < MINIX_I_MAP_SLOTS;i++) |
i | 80 | fs/minix/inode.c | s->u.minix_sb.s_imap[i] = NULL; |
i | 81 | fs/minix/inode.c | for (i=0;i < MINIX_Z_MAP_SLOTS;i++) |
i | 82 | fs/minix/inode.c | s->u.minix_sb.s_zmap[i] = NULL; |
i | 84 | fs/minix/inode.c | for (i=0 ; i < s->u.minix_sb.s_imap_blocks ; i++) |
i | 85 | fs/minix/inode.c | if (s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) |
i | 89 | fs/minix/inode.c | for (i=0 ; i < s->u.minix_sb.s_zmap_blocks ; i++) |
i | 90 | fs/minix/inode.c | if (s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) |
i | 95 | fs/minix/inode.c | for(i=0;i<MINIX_I_MAP_SLOTS;i++) |
i | 96 | fs/minix/inode.c | brelse(s->u.minix_sb.s_imap[i]); |
i | 97 | fs/minix/inode.c | for(i=0;i<MINIX_Z_MAP_SLOTS;i++) |
i | 98 | fs/minix/inode.c | brelse(s->u.minix_sb.s_zmap[i]); |
i | 136 | fs/minix/inode.c | int i; |
i | 165 | fs/minix/inode.c | i = ((unsigned short *) (bh->b_data))[block]; |
i | 166 | fs/minix/inode.c | if (create && !i) |
i | 167 | fs/minix/inode.c | if (i=minix_new_block(inode->i_dev)) { |
i | 168 | fs/minix/inode.c | ((unsigned short *) (bh->b_data))[block]=i; |
i | 172 | fs/minix/inode.c | return i; |
i | 184 | fs/minix/inode.c | i = ((unsigned short *)bh->b_data)[block>>9]; |
i | 185 | fs/minix/inode.c | if (create && !i) |
i | 186 | fs/minix/inode.c | if (i=minix_new_block(inode->i_dev)) { |
i | 187 | fs/minix/inode.c | ((unsigned short *) (bh->b_data))[block>>9]=i; |
i | 191 | fs/minix/inode.c | if (!i) |
i | 193 | fs/minix/inode.c | if (!(bh=bread(inode->i_dev,i,BLOCK_SIZE))) |
i | 195 | fs/minix/inode.c | i = ((unsigned short *)bh->b_data)[block&511]; |
i | 196 | fs/minix/inode.c | if (create && !i) |
i | 197 | fs/minix/inode.c | if (i=minix_new_block(inode->i_dev)) { |
i | 198 | fs/minix/inode.c | ((unsigned short *) (bh->b_data))[block&511]=i; |
i | 202 | fs/minix/inode.c | return i; |
i | 64 | fs/minix/namei.c | int block,i; |
i | 83 | fs/minix/namei.c | i = 0; |
i | 85 | fs/minix/namei.c | while (i < entries) { |
i | 89 | fs/minix/namei.c | if (!(block = minix_bmap(dir,i/MINIX_DIR_ENTRIES_PER_BLOCK)) || |
i | 91 | fs/minix/namei.c | i += MINIX_DIR_ENTRIES_PER_BLOCK; |
i | 101 | fs/minix/namei.c | i++; |
i | 148 | fs/minix/namei.c | int block,i; |
i | 168 | fs/minix/namei.c | i = 0; |
i | 174 | fs/minix/namei.c | block = minix_create_block(dir,i/MINIX_DIR_ENTRIES_PER_BLOCK); |
i | 178 | fs/minix/namei.c | i += MINIX_DIR_ENTRIES_PER_BLOCK; |
i | 183 | fs/minix/namei.c | if (i*sizeof(struct minix_dir_entry) >= dir->i_size) { |
i | 185 | fs/minix/namei.c | dir->i_size = (i+1)*sizeof(struct minix_dir_entry); |
i | 191 | fs/minix/namei.c | for (i=0; i < MINIX_NAME_LEN ; i++) |
i | 192 | fs/minix/namei.c | de->name[i]=(i<namelen)?get_fs_byte(name+i):0; |
i | 198 | fs/minix/namei.c | i++; |
i | 502 | fs/minix/namei.c | int i; |
i | 526 | fs/minix/namei.c | i = 0; |
i | 527 | fs/minix/namei.c | while (i < 1023 && (c=get_fs_byte(symname++))) |
i | 528 | fs/minix/namei.c | name_block->b_data[i++] = c; |
i | 529 | fs/minix/namei.c | name_block->b_data[i] = 0; |
i | 532 | fs/minix/namei.c | inode->i_size = i; |
i | 77 | fs/minix/symlink.c | int i; |
i | 93 | fs/minix/symlink.c | i = 0; |
i | 94 | fs/minix/symlink.c | while (i<buflen && (c = bh->b_data[i])) { |
i | 95 | fs/minix/symlink.c | i++; |
i | 99 | fs/minix/symlink.c | return i; |
i | 29 | fs/minix/truncate.c | int i; |
i | 34 | fs/minix/truncate.c | for (i = DIRECT_BLOCK ; i < 7 ; i++) { |
i | 35 | fs/minix/truncate.c | if (i < DIRECT_BLOCK) |
i | 37 | fs/minix/truncate.c | if (!inode->i_data[i]) |
i | 40 | fs/minix/truncate.c | if (minix_free_block(inode->i_dev,inode->i_data[i])) |
i | 41 | fs/minix/truncate.c | inode->i_data[i] = 0; |
i | 48 | fs/minix/truncate.c | int i; |
i | 59 | fs/minix/truncate.c | for (i = INDIRECT_BLOCK ; i < 512 ; i++) { |
i | 60 | fs/minix/truncate.c | if (i < 0) |
i | 61 | fs/minix/truncate.c | i = 0; |
i | 62 | fs/minix/truncate.c | if (i < INDIRECT_BLOCK) |
i | 64 | fs/minix/truncate.c | ind = i+(unsigned short *) bh->b_data; |
i | 72 | fs/minix/truncate.c | for (i = 0; i < 512; i++) |
i | 76 | fs/minix/truncate.c | if (i >= 512) { |
i | 86 | fs/minix/truncate.c | int i; |
i | 97 | fs/minix/truncate.c | for (i = DINDIRECT_BLOCK ; i < 512 ; i ++) { |
i | 98 | fs/minix/truncate.c | if (i < 0) |
i | 99 | fs/minix/truncate.c | i = 0; |
i | 100 | fs/minix/truncate.c | if (i < DINDIRECT_BLOCK) |
i | 102 | fs/minix/truncate.c | dind = i+(unsigned short *) bh->b_data; |
i | 105 | fs/minix/truncate.c | result |= trunc_indirect(inode,7+512+(i<<9),dind); |
i | 108 | fs/minix/truncate.c | for (i = 0; i < 512; i++) |
i | 112 | fs/minix/truncate.c | if (i >= 512) { |
i | 70 | fs/msdos/dir.c | int ino,i,i2,last; |
i | 81 | fs/msdos/dir.c | for (i = 0; *walk; walk++) |
i | 82 | fs/msdos/dir.c | put_fs_byte(*walk,dirent->d_name+i++); |
i | 84 | fs/msdos/dir.c | put_fs_byte(0,dirent->d_name+i); |
i | 85 | fs/msdos/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 86 | fs/msdos/dir.c | return i; |
i | 94 | fs/msdos/dir.c | for (i = last = 0; i < 8; i++) { |
i | 95 | fs/msdos/dir.c | if (!(c = de->name[i])) break; |
i | 97 | fs/msdos/dir.c | if (c != ' ') last = i+1; |
i | 98 | fs/msdos/dir.c | put_fs_byte(c,i+dirent->d_name); |
i | 100 | fs/msdos/dir.c | i = last; |
i | 102 | fs/msdos/dir.c | put_fs_byte('.',i+dirent->d_name); |
i | 103 | fs/msdos/dir.c | i++; |
i | 107 | fs/msdos/dir.c | put_fs_byte(c,i+dirent->d_name); |
i | 108 | fs/msdos/dir.c | i++; |
i | 109 | fs/msdos/dir.c | if (c != ' ') last = i; |
i | 112 | fs/msdos/dir.c | if (i = last) { |
i | 118 | fs/msdos/dir.c | put_fs_byte(0,i+dirent->d_name); |
i | 119 | fs/msdos/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 121 | fs/msdos/dir.c | return i; |
i | 200 | fs/namei.c | int namelen,error,i; |
i | 270 | fs/namei.c | for (i=0; i < (*p)->numlibraries; i++) |
i | 271 | fs/namei.c | if (inode == (*p)->libraries[i].library) { |
i | 301 | fs/open.c | int i,fd; |
i | 313 | fs/open.c | if ((i = open_namei(filename,flag,mode,&inode))<0) { |
i | 316 | fs/open.c | return i; |
i | 327 | fs/open.c | if (i = f->f_op->open(inode,f)) { |
i | 331 | fs/open.c | return i; |
i | 207 | fs/pipe.c | int i,j; |
i | 218 | fs/pipe.c | for(i=0;j<2 && i<NR_OPEN;i++) |
i | 219 | fs/pipe.c | if (!current->filp[i]) { |
i | 220 | fs/pipe.c | current->filp[ fd[j]=i ] = f[j]; |
i | 77 | fs/select.c | int i; |
i | 81 | fs/select.c | for (i = 0 ; i < NR_OPEN ; i++,mask >>= 1) { |
i | 84 | fs/select.c | if (!current->filp[i]) |
i | 86 | fs/select.c | if (!current->filp[i]->f_inode) |
i | 88 | fs/select.c | if (current->filp[i]->f_inode->i_pipe) |
i | 90 | fs/select.c | if (S_ISCHR(current->filp[i]->f_inode->i_mode)) |
i | 92 | fs/select.c | if (S_ISFIFO(current->filp[i]->f_inode->i_mode)) |
i | 94 | fs/select.c | if (S_ISSOCK(current->filp[i]->f_inode->i_mode)) |
i | 104 | fs/select.c | for (i = 0 ; i < NR_OPEN ; i++, mask += mask) { |
i | 105 | fs/select.c | file = current->filp[i]; |
i | 141 | fs/select.c | int i; |
i | 172 | fs/select.c | i = do_select(in, out, ex, &res_in, &res_out, &res_ex); |
i | 185 | fs/select.c | if (i < 0) |
i | 186 | fs/select.c | return i; |
i | 187 | fs/select.c | if (!i && (current->signal & ~current->blocked)) |
i | 201 | fs/select.c | return i; |
i | 261 | fs/super.c | int i; |
i | 286 | fs/super.c | i = TASK_SIZE - (unsigned long) data; |
i | 287 | fs/super.c | if (i < 0 || i > 4095) |
i | 288 | fs/super.c | i = 4095; |
i | 289 | fs/super.c | memcpy_fromfs((void *) page,data,i); |
i | 292 | fs/super.c | for (i = 0 ; i < 100 ; i++) |
i | 293 | fs/super.c | if (!(tmp[i] = get_fs_byte(type++))) |
i | 308 | fs/super.c | int i; |
i | 315 | fs/super.c | for(i=0;i<NR_FILE;i++) |
i | 316 | fs/super.c | file_table[i].f_count=0; |
i | 70 | init/main.c | int i; |
i | 73 | init/main.c | i = vsprintf(str, fmt, args); |
i | 75 | init/main.c | return i; |
i | 193 | init/main.c | int i; |
i | 196 | init/main.c | write(1,printbuf,i=vsprintf(printbuf, fmt, args)); |
i | 198 | init/main.c | return i; |
i | 203 | init/main.c | int pid,i; |
i | 225 | init/main.c | while (pid != wait(&i)) |
i | 241 | init/main.c | if (pid == wait(&i)) |
i | 243 | init/main.c | printf("\n\rchild %d died with code %04x\n\r",pid,i); |
i | 422 | kernel/blk_drv/floppy.c | int i = 0, counter, status; |
i | 429 | kernel/blk_drv/floppy.c | return i; |
i | 432 | kernel/blk_drv/floppy.c | if (i >= MAX_REPLIES) { |
i | 436 | kernel/blk_drv/floppy.c | reply_buffer[i++] = inb_p(FD_DATA); |
i | 751 | kernel/blk_drv/floppy.c | short i; |
i | 753 | kernel/blk_drv/floppy.c | for (i=0; i<4; i++) { |
i | 773 | kernel/blk_drv/floppy.c | int i; |
i | 784 | kernel/blk_drv/floppy.c | for (i=0 ; i<1000 ; i++) |
i | 95 | kernel/blk_drv/genhd.c | int i, minor = current_minor; |
i | 110 | kernel/blk_drv/genhd.c | for (i=1 ; i<=4 ; minor++,i++,p++) { |
i | 114 | kernel/blk_drv/genhd.c | printk(" part %d start %d size %d end %d \n\r", i, |
i | 128 | kernel/blk_drv/genhd.c | for (i = 4 ; i < 16 ; i++, current_minor++) { |
i | 151 | kernel/blk_drv/genhd.c | int i; |
i | 157 | kernel/blk_drv/genhd.c | for (i = 0 ; i < j; i++) { |
i | 158 | kernel/blk_drv/genhd.c | dev->part[i].start_sect = 0; |
i | 159 | kernel/blk_drv/genhd.c | dev->part[i].nr_sects = 0; |
i | 166 | kernel/blk_drv/genhd.c | for (i=0 ; i < j ; i++) |
i | 167 | kernel/blk_drv/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
i | 90 | kernel/blk_drv/hd.c | int i; |
i | 95 | kernel/blk_drv/hd.c | i = inb_p(0x40); |
i | 96 | kernel/blk_drv/hd.c | i |= inb(0x40) << 8; |
i | 98 | kernel/blk_drv/hd.c | return(t - i / 2); |
i | 116 | kernel/blk_drv/hd.c | int i=inb_p(HD_STATUS); |
i | 118 | kernel/blk_drv/hd.c | if ((i & (BUSY_STAT | READY_STAT | WRERR_STAT | SEEK_STAT | ERR_STAT)) |
i | 121 | kernel/blk_drv/hd.c | printk("HD: win_result: status = 0x%02x\n",i); |
i | 122 | kernel/blk_drv/hd.c | if (i&1) { |
i | 123 | kernel/blk_drv/hd.c | i=inb(HD_ERROR); |
i | 124 | kernel/blk_drv/hd.c | printk("HD: win_result: error = 0x%02x\n",i); |
i | 159 | kernel/blk_drv/hd.c | unsigned int i; |
i | 162 | kernel/blk_drv/hd.c | for (i = 0; i < 500000 ; i++) { |
i | 174 | kernel/blk_drv/hd.c | int i; |
i | 178 | kernel/blk_drv/hd.c | for(i = 0; i < 1000; i++) nop(); |
i | 182 | kernel/blk_drv/hd.c | if ((i = inb(HD_ERROR)) != 1) |
i | 183 | kernel/blk_drv/hd.c | printk("HD-controller reset failed: %02x\n\r",i); |
i | 188 | kernel/blk_drv/hd.c | static int i; |
i | 193 | kernel/blk_drv/hd.c | i = -1; |
i | 200 | kernel/blk_drv/hd.c | i++; |
i | 201 | kernel/blk_drv/hd.c | if (i < NR_HD) { |
i | 202 | kernel/blk_drv/hd.c | hd_out(i,hd_info[i].sect,hd_info[i].sect,hd_info[i].head-1, |
i | 203 | kernel/blk_drv/hd.c | hd_info[i].cyl,WIN_SPECIFY,&reset_hd); |
i | 249 | kernel/blk_drv/hd.c | int i; |
i | 251 | kernel/blk_drv/hd.c | i = (unsigned) inb_p(HD_STATUS); |
i | 252 | kernel/blk_drv/hd.c | if ((i & STAT_MASK) != STAT_OK) { |
i | 253 | kernel/blk_drv/hd.c | printk("HD: read_intr: status = 0x%02x\n",i); |
i | 261 | kernel/blk_drv/hd.c | i = (unsigned) inb_p(HD_STATUS); |
i | 262 | kernel/blk_drv/hd.c | if (!(i & BUSY_STAT)) |
i | 263 | kernel/blk_drv/hd.c | if ((i & STAT_MASK) != STAT_OK) { |
i | 264 | kernel/blk_drv/hd.c | printk("HD: read_intr: second status = 0x%02x\n",i); |
i | 270 | kernel/blk_drv/hd.c | i = --CURRENT->nr_sectors; |
i | 274 | kernel/blk_drv/hd.c | MINOR(CURRENT->dev), CURRENT->sector, i, CURRENT-> |
i | 277 | kernel/blk_drv/hd.c | if (!i || (CURRENT->bh && !SUBSECTOR(i))) |
i | 279 | kernel/blk_drv/hd.c | if (i > 0) { |
i | 290 | kernel/blk_drv/hd.c | if (i & ERR_STAT) { |
i | 291 | kernel/blk_drv/hd.c | i = (unsigned) inb(HD_ERROR); |
i | 292 | kernel/blk_drv/hd.c | printk("HD: read_intr: error = 0x%02x\n",i); |
i | 301 | kernel/blk_drv/hd.c | int i; |
i | 303 | kernel/blk_drv/hd.c | i = (unsigned) inb_p(HD_STATUS); |
i | 304 | kernel/blk_drv/hd.c | if ((i & STAT_MASK) != STAT_OK) { |
i | 305 | kernel/blk_drv/hd.c | printk("HD: write_intr: status = 0x%02x\n",i); |
i | 313 | kernel/blk_drv/hd.c | i = --CURRENT->nr_sectors; |
i | 316 | kernel/blk_drv/hd.c | if (!i || (CURRENT->bh && !SUBSECTOR(i))) |
i | 318 | kernel/blk_drv/hd.c | if (i > 0) { |
i | 331 | kernel/blk_drv/hd.c | if (i & ERR_STAT) { |
i | 332 | kernel/blk_drv/hd.c | i = (unsigned) inb(HD_ERROR); |
i | 333 | kernel/blk_drv/hd.c | printk("HD: write_intr: error = 0x%02x\n",i); |
i | 507 | kernel/blk_drv/hd.c | int cmos_disks, i; |
i | 550 | kernel/blk_drv/hd.c | for (i = 0 ; i < NR_HD ; i++) |
i | 551 | kernel/blk_drv/hd.c | hd[i<<6].nr_sects = hd_info[i].head* |
i | 552 | kernel/blk_drv/hd.c | hd_info[i].sect*hd_info[i].cyl; |
i | 295 | kernel/blk_drv/ll_rw_blk.c | int i; |
i | 297 | kernel/blk_drv/ll_rw_blk.c | for (i=0 ; i<NR_REQUEST ; i++) { |
i | 298 | kernel/blk_drv/ll_rw_blk.c | request[i].dev = -1; |
i | 299 | kernel/blk_drv/ll_rw_blk.c | request[i].next = NULL; |
i | 310 | kernel/blk_drv/ll_rw_blk.c | int i; |
i | 328 | kernel/blk_drv/ll_rw_blk.c | for (i=0; i<nb; i++, buf += BLOCK_SIZE) |
i | 343 | kernel/blk_drv/ll_rw_blk.c | req->sector = b[i] << 1; |
i | 68 | kernel/blk_drv/ramdisk.c | int i; |
i | 76 | kernel/blk_drv/ramdisk.c | for (i=0; i < length; i++) |
i | 91 | kernel/blk_drv/ramdisk.c | int i = 1; |
i | 136 | kernel/blk_drv/ramdisk.c | i++; |
i | 142 | kernel/blk_drv/scsi/7000fasst.c | { int i; |
i | 152 | kernel/blk_drv/scsi/7000fasst.c | for (i=0; i< 1000; i++) inb(ASC_STAT); |
i | 159 | kernel/blk_drv/scsi/7000fasst.c | if ((i=inb(INTR_STAT))!=1) |
i | 160 | kernel/blk_drv/scsi/7000fasst.c | printk("Power on Diagnostics error %x\n",i); |
i | 170 | kernel/blk_drv/scsi/7000fasst.c | for (i=0;i<sizeof(init_block);i++) printk(" %x",init_block[i]); |
i | 261 | kernel/blk_drv/scsi/7000fasst.c | int i; |
i | 267 | kernel/blk_drv/scsi/7000fasst.c | for (i=0;i<OGMB_CNT;i++){ |
i | 268 | kernel/blk_drv/scsi/7000fasst.c | if (mbstruct.ombox[i].status==0){ |
i | 270 | kernel/blk_drv/scsi/7000fasst.c | DEB(printk("Found outgoing mbox %x\n",i)); |
i | 271 | kernel/blk_drv/scsi/7000fasst.c | memset(&scbs[i], 0, sizeof(struct scb)); |
i | 273 | kernel/blk_drv/scsi/7000fasst.c | memcpy(scbs[i].scbdata, cmd, (*cmd<=0x1f)?6:10); |
i | 274 | kernel/blk_drv/scsi/7000fasst.c | scbs[i].op = 0; /* SCSI Initiator Command */ |
i | 275 | kernel/blk_drv/scsi/7000fasst.c | scbs[i].idlun = (target<<5)&0xe0; /* SCSI Target Id Bit 7-5 Target Id*/ |
i | 276 | kernel/blk_drv/scsi/7000fasst.c | any2scsi(scbs[i].dataptr,buff); |
i | 277 | kernel/blk_drv/scsi/7000fasst.c | any2scsi(scbs[i].maxdata,bufflen); |
i | 278 | kernel/blk_drv/scsi/7000fasst.c | scbs[i].direc=0x40; /* Disable direction check */ |
i | 280 | kernel/blk_drv/scsi/7000fasst.c | for (j=0;j<12;j++) printk(" %x",scbs[i].scbdata[j]); |
i | 283 | kernel/blk_drv/scsi/7000fasst.c | any2scsi((mbstruct.ombox[i].scbptr),&(scbs[i])); |
i | 284 | kernel/blk_drv/scsi/7000fasst.c | mbstruct.ombox[i].status=1; |
i | 289 | kernel/blk_drv/scsi/7000fasst.c | if (i==OGMB_CNT){ |
i | 296 | kernel/blk_drv/scsi/7000fasst.c | DEB(printk("Found outgoing mbox %x\n",i)); |
i | 297 | kernel/blk_drv/scsi/7000fasst.c | scbptr=&(scbs[i]); |
i | 324 | kernel/blk_drv/scsi/7000fasst.c | outb(0x80+i,COMMAND); |
i | 377 | kernel/blk_drv/scsi/7000fasst.c | int i,j; |
i | 383 | kernel/blk_drv/scsi/7000fasst.c | for(i=0;i<(sizeof(wd_bases)/sizeof(char *));i++){ |
i | 385 | kernel/blk_drv/scsi/7000fasst.c | if(!memcmp((void *)(wd_bases[i] + signatures[j].offset), |
i | 387 | kernel/blk_drv/scsi/7000fasst.c | base_address=wd_bases[i]; |
i | 404 | kernel/blk_drv/scsi/7000fasst.c | int i; |
i | 406 | kernel/blk_drv/scsi/7000fasst.c | for (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87; |
i | 407 | kernel/blk_drv/scsi/7000fasst.c | for (i = 0; i < 3; ++i){ |
i | 410 | kernel/blk_drv/scsi/7000fasst.c | if (wd7000fasst_command(i, cmd, buf, sizeof(buf))) rstat++; |
i | 415 | kernel/blk_drv/scsi/7000fasst.c | i, xscsi2int(buf+4), xscsi2int(buf), xscsi2int(buf+4)*xscsi2int(buf)); |
i | 422 | kernel/blk_drv/scsi/7000fasst.c | int wd7000fasst_abort(int i) |
i | 237 | kernel/blk_drv/scsi/aha1542.c | int i; |
i | 239 | kernel/blk_drv/scsi/aha1542.c | for (i = 0; i < 12; i++) |
i | 240 | kernel/blk_drv/scsi/aha1542.c | printk("%02x ", ccb.cdb[ccb.cdblen+i]); |
i | 258 | kernel/blk_drv/scsi/aha1542.c | DEB(int i); |
i | 264 | kernel/blk_drv/scsi/aha1542.c | i = xscsi2int(cmd+2); |
i | 266 | kernel/blk_drv/scsi/aha1542.c | i = scsi2int(cmd+2); |
i | 268 | kernel/blk_drv/scsi/aha1542.c | i = -1; |
i | 270 | kernel/blk_drv/scsi/aha1542.c | printk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 272 | kernel/blk_drv/scsi/aha1542.c | printk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 275 | kernel/blk_drv/scsi/aha1542.c | for (i = 0; i < (*cmd<=0x1f?6:10); i++) printk("%02x ", cmd[i]); |
i | 298 | kernel/blk_drv/scsi/aha1542.c | for (i = 0; i < sizeof(ccb)-10; i++) |
i | 299 | kernel/blk_drv/scsi/aha1542.c | printk("%02x ", ((unchar *)&ccb)[i]); |
i | 364 | kernel/blk_drv/scsi/aha1542.c | int i; |
i | 368 | kernel/blk_drv/scsi/aha1542.c | if (!(i = aha1542_test_port())) { |
i | 410 | kernel/blk_drv/scsi/aha1542.c | int i; |
i | 412 | kernel/blk_drv/scsi/aha1542.c | for (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87; |
i | 413 | kernel/blk_drv/scsi/aha1542.c | for (i = 0; i < 2; ++i) |
i | 414 | kernel/blk_drv/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
i | 416 | kernel/blk_drv/scsi/aha1542.c | i, xscsi2int(buf+4), xscsi2int(buf)); |
i | 422 | kernel/blk_drv/scsi/aha1542.c | for (i = 0; i < 4; ++i) |
i | 429 | kernel/blk_drv/scsi/aha1542.c | xany2scsi(cmd+2, i); |
i | 441 | kernel/blk_drv/scsi/aha1542.c | int aha1542_abort(int i) |
i | 298 | kernel/blk_drv/scsi/fdomain.c | int i; |
i | 301 | kernel/blk_drv/scsi/fdomain.c | for (i = 0; i < 255; i++) { |
i | 302 | kernel/blk_drv/scsi/fdomain.c | outb( i, port_base + Write_Loopback ); |
i | 304 | kernel/blk_drv/scsi/fdomain.c | if (i != result) return 1; |
i | 341 | kernel/blk_drv/scsi/fdomain.c | int i, j; |
i | 353 | kernel/blk_drv/scsi/fdomain.c | for (i = 0; !bios_base && i < ADDRESS_COUNT; i++) { |
i | 355 | kernel/blk_drv/scsi/fdomain.c | printk( " %x(%x),", (unsigned)addresses[i], (unsigned)bios_base ); |
i | 358 | kernel/blk_drv/scsi/fdomain.c | if (!memcmp( ((char *)addresses[i] + signatures[j].sig_offset), |
i | 360 | kernel/blk_drv/scsi/fdomain.c | bios_base = addresses[i]; |
i | 387 | kernel/blk_drv/scsi/fdomain.c | for (flag = 0, i = 0; !flag && i < PORT_COUNT; i++) { |
i | 388 | kernel/blk_drv/scsi/fdomain.c | if (port_base == ports[i]) ++flag; |
i | 411 | kernel/blk_drv/scsi/fdomain.c | for (flag = 0, i = 0; !flag && i < PORT_COUNT; i++) { |
i | 412 | kernel/blk_drv/scsi/fdomain.c | port_base = ports[i]; |
i | 468 | kernel/blk_drv/scsi/fdomain.c | for (i = 0; i < 8; i++) { |
i | 469 | kernel/blk_drv/scsi/fdomain.c | if (i == 6) continue; /* The host adapter is at SCSI ID 6 */ |
i | 470 | kernel/blk_drv/scsi/fdomain.c | retcode = fdomain_16x0_command( i, do_request_sense, buf, 255 ); |
i | 472 | kernel/blk_drv/scsi/fdomain.c | retcode = fdomain_16x0_command( i, do_inquiry, buf, 255 ); |
i | 474 | kernel/blk_drv/scsi/fdomain.c | printk( " SCSI ID %d: ", i ); |
i | 476 | kernel/blk_drv/scsi/fdomain.c | retcode = fdomain_16x0_command( i, do_read_capacity, buf, 255 ); |
i | 124 | kernel/blk_drv/scsi/hosts.c | int i, count; |
i | 128 | kernel/blk_drv/scsi/hosts.c | for (count = i = 0; i < MAX_SCSI_HOSTS; ++i) |
i | 135 | kernel/blk_drv/scsi/hosts.c | host_busy[i] = 0; |
i | 136 | kernel/blk_drv/scsi/hosts.c | host_timeout[i] = 0; |
i | 137 | kernel/blk_drv/scsi/hosts.c | host_queue[i] = NULL; |
i | 139 | kernel/blk_drv/scsi/hosts.c | if ((scsi_hosts[i].detect) && (scsi_hosts[i].present = scsi_hosts[i].detect(i))) |
i | 142 | kernel/blk_drv/scsi/hosts.c | count, scsi_hosts[i].name); |
i | 143 | kernel/blk_drv/scsi/hosts.c | printk ("%s", scsi_hosts[i].info()); |
i | 456 | kernel/blk_drv/scsi/scsi.c | int i; |
i | 460 | kernel/blk_drv/scsi/scsi.c | for (i = 0; i < 10; ++i) |
i | 461 | kernel/blk_drv/scsi/scsi.c | printk ("%02x ", ((unsigned char *) cmnd)[i]); |
i | 947 | kernel/blk_drv/scsi/scsi.c | int i, timed_out; |
i | 957 | kernel/blk_drv/scsi/scsi.c | for (i = timed_out = 0; i < MAX_SCSI_HOSTS; ++i) |
i | 958 | kernel/blk_drv/scsi/scsi.c | if (host_timeout[i] != 0 && host_timeout[i] <= time_elapsed) |
i | 961 | kernel/blk_drv/scsi/scsi.c | host_timeout[i] = 0; |
i | 962 | kernel/blk_drv/scsi/scsi.c | scsi_times_out(i); |
i | 984 | kernel/blk_drv/scsi/scsi.c | unsigned int i, least, used; |
i | 1000 | kernel/blk_drv/scsi/scsi.c | for (i = 0, least = 0xffffffff; i < MAX_SCSI_HOSTS; ++i) |
i | 1001 | kernel/blk_drv/scsi/scsi.c | if (host_timeout[i] > 0 && (host_timeout[i] -= used) < least) |
i | 1002 | kernel/blk_drv/scsi/scsi.c | least = host_timeout[i]; |
i | 1031 | kernel/blk_drv/scsi/scsi.c | int i; |
i | 1043 | kernel/blk_drv/scsi/scsi.c | for (i = 0; i < MAX_SCSI_HOSTS; ++i) |
i | 1045 | kernel/blk_drv/scsi/scsi.c | memcpy ((void *) last_cmnd[i].sense_cmnd, (void *) generic_sense, |
i | 1047 | kernel/blk_drv/scsi/scsi.c | last_reset[i] = 0; |
i | 120 | kernel/blk_drv/scsi/scsi_ioctl.c | int i; |
i | 122 | kernel/blk_drv/scsi/scsi_ioctl.c | for (i = 0; i < 10; ++i) |
i | 123 | kernel/blk_drv/scsi/scsi_ioctl.c | printk("%02x ", cmd[i]); |
i | 125 | kernel/blk_drv/scsi/scsi_ioctl.c | for (i = 0; i < 20; ++i) |
i | 126 | kernel/blk_drv/scsi/scsi_ioctl.c | printk("%02x ", buf[i]); |
i | 57 | kernel/blk_drv/scsi/sd.c | int i; |
i | 58 | kernel/blk_drv/scsi/sd.c | for (i = 0; i < NR_SD; ++i) |
i | 59 | kernel/blk_drv/scsi/sd.c | sd_sizes[i << 4] = |
i | 60 | kernel/blk_drv/scsi/sd.c | (sd[i << 4].nr_sects = rscsi_disks[i].capacity) >> |
i | 322 | kernel/blk_drv/scsi/sd.c | int i,j; |
i | 328 | kernel/blk_drv/scsi/sd.c | for (i = 0; i < NR_SD; ++i) |
i | 332 | kernel/blk_drv/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 346 | kernel/blk_drv/scsi/sd.c | printk("sd%d : READ CAPACITY\n ", i); |
i | 348 | kernel/blk_drv/scsi/sd.c | scsi_do_cmd (rscsi_disks[i].device->host_no , |
i | 349 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].device->id, |
i | 373 | kernel/blk_drv/scsi/sd.c | i,i, |
i | 374 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].device->host_no, rscsi_disks[i].device->id, |
i | 375 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].device->lun, |
i | 382 | kernel/blk_drv/scsi/sd.c | printk("sd%d : extended sense code = %1x \n", i, sense_buffer[2] & 0xf); |
i | 384 | kernel/blk_drv/scsi/sd.c | printk("sd%d : sense not available. \n", i); |
i | 386 | kernel/blk_drv/scsi/sd.c | printk("sd%d : block size assumed to be 512 bytes, disk size 1GB. \n", i); |
i | 387 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].capacity = 0x1fffff; |
i | 388 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].sector_size = 512; |
i | 392 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].capacity = (buffer[0] << 24) | |
i | 397 | kernel/blk_drv/scsi/sd.c | if ((rscsi_disks[i].sector_size = (buffer[4] << 24) | |
i | 403 | kernel/blk_drv/scsi/sd.c | i, rscsi_disks[i].sector_size); |
i | 405 | kernel/blk_drv/scsi/sd.c | for (j=i; j < NR_SD;) |
i | 407 | kernel/blk_drv/scsi/sd.c | --i; |
i | 412 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].ten = 1; |
i | 413 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].remap = 1; |
i | 128 | kernel/blk_drv/scsi/seagate.c | int i,j; |
i | 158 | kernel/blk_drv/scsi/seagate.c | for (i = 0; i < (sizeof (seagate_bases) / sizeof (char * )); ++i) |
i | 160 | kernel/blk_drv/scsi/seagate.c | if (!memcmp ((void *) (seagate_bases[i] + |
i | 163 | kernel/blk_drv/scsi/seagate.c | base_address = (void *) seagate_bases[i]; |
i | 327 | kernel/blk_drv/scsi/seagate.c | int i; |
i | 349 | kernel/blk_drv/scsi/seagate.c | for (i = 0; i < COMMAND_SIZE(((unsigned char *)cmnd)[0]); ++i) |
i | 350 | kernel/blk_drv/scsi/seagate.c | printk("%02x ", ((unsigned char *) cmnd)[i]); |
i | 907 | kernel/blk_drv/scsi/seagate.c | for (i = 0; i < 20; ++i) |
i | 908 | kernel/blk_drv/scsi/seagate.c | printk ("%02x ", ((unsigned char *) data)[i]); /* WDE mod */ |
i | 172 | kernel/blk_drv/scsi/ultrastor.c | size_t i; |
i | 183 | kernel/blk_drv/scsi/ultrastor.c | for (i = 0; i < ARRAY_SIZE(ultrastor_ports); i++) { |
i | 184 | kernel/blk_drv/scsi/ultrastor.c | PORT_ADDRESS = ultrastor_ports[i]; |
i | 225 | kernel/blk_drv/scsi/ultrastor.c | if (i == ARRAY_SIZE(ultrastor_ports)) { |
i | 255 | kernel/blk_drv/scsi/ultrastor.c | for (i = 0; !found && i < ARRAY_SIZE(signatures); i++) |
i | 256 | kernel/blk_drv/scsi/ultrastor.c | if (memcmp((char *)config.bios_segment + signatures[i].offset, |
i | 257 | kernel/blk_drv/scsi/ultrastor.c | signatures[i].signature, signatures[i].length)) |
i | 529 | kernel/chr_drv/console.c | int i; |
i | 531 | kernel/chr_drv/console.c | for (i=0;i<=npar;i++) |
i | 532 | kernel/chr_drv/console.c | switch (par[i]) { |
i | 571 | kernel/chr_drv/console.c | if (par[i] >= 30 && par[i] <= 37) |
i | 572 | kernel/chr_drv/console.c | color = color_table[par[i]-30] |
i | 574 | kernel/chr_drv/console.c | else if (par[i] >= 40 && par[i] <= 47) |
i | 575 | kernel/chr_drv/console.c | color = (color_table[par[i]-40]<<4) |
i | 617 | kernel/chr_drv/console.c | int i = 0; |
i | 620 | kernel/chr_drv/console.c | buff[i++] = (n%10)+'0'; |
i | 622 | kernel/chr_drv/console.c | } while(n && i < 3); /* We'll take no chances */ |
i | 623 | kernel/chr_drv/console.c | while (i--) { |
i | 624 | kernel/chr_drv/console.c | put_tty_queue(buff[i],tty->read_q); |
i | 663 | kernel/chr_drv/console.c | int i; |
i | 665 | kernel/chr_drv/console.c | for (i=0; i<=npar; i++) |
i | 666 | kernel/chr_drv/console.c | if (ques) switch(par[i]) { /* DEC private modes set/reset */ |
i | 695 | kernel/chr_drv/console.c | } else switch(par[i]) { /* ANSI modes set/reset */ |
i | 735 | kernel/chr_drv/console.c | unsigned int i = x; |
i | 739 | kernel/chr_drv/console.c | while (i++ < video_num_columns) { |
i | 756 | kernel/chr_drv/console.c | unsigned int i = x; |
i | 759 | kernel/chr_drv/console.c | while (++i < video_num_columns) { |
i | 1009 | kernel/chr_drv/keyboard.c | int i; |
i | 1011 | kernel/chr_drv/keyboard.c | for(i=0; diacr_table[i]; i++) |
i | 1012 | kernel/chr_drv/keyboard.c | if (ch==diacr_table[i] && ((1<<i)&kbd_flags)) { |
i | 1013 | kernel/chr_drv/keyboard.c | if (diacr == i) { |
i | 1017 | kernel/chr_drv/keyboard.c | diacr=i; /* key is dead */ |
i | 1191 | kernel/chr_drv/keyboard.c | int i; |
i | 1193 | kernel/chr_drv/keyboard.c | for (i=0; i<0x10000; i++) |
i | 1212 | kernel/chr_drv/keyboard.c | int i; |
i | 1214 | kernel/chr_drv/keyboard.c | for(i=0; i<0x10000; i++) |
i | 1228 | kernel/chr_drv/keyboard.c | int i; |
i | 1232 | kernel/chr_drv/keyboard.c | for (i=0; i<100; i++) { |
i | 32 | kernel/chr_drv/mem.c | int i; |
i | 52 | kernel/chr_drv/mem.c | i = 4096-(addr & 0xfff); |
i | 53 | kernel/chr_drv/mem.c | if (i > count) |
i | 54 | kernel/chr_drv/mem.c | i = count; |
i | 55 | kernel/chr_drv/mem.c | memcpy_tofs(tmp,(void *) page,i); |
i | 56 | kernel/chr_drv/mem.c | addr += i; |
i | 57 | kernel/chr_drv/mem.c | tmp += i; |
i | 58 | kernel/chr_drv/mem.c | count -= i; |
i | 69 | kernel/chr_drv/mem.c | int i; |
i | 93 | kernel/chr_drv/mem.c | i = 4096-(addr & 0xfff); |
i | 94 | kernel/chr_drv/mem.c | if (i > count) |
i | 95 | kernel/chr_drv/mem.c | i = count; |
i | 96 | kernel/chr_drv/mem.c | memcpy_fromfs((void *) page,tmp,i); |
i | 97 | kernel/chr_drv/mem.c | addr += i; |
i | 98 | kernel/chr_drv/mem.c | tmp += i; |
i | 99 | kernel/chr_drv/mem.c | count -= i; |
i | 141 | kernel/chr_drv/mem.c | unsigned int i = file->f_pos; |
i | 144 | kernel/chr_drv/mem.c | while (count-- > 0 && i < 65536) { |
i | 145 | kernel/chr_drv/mem.c | put_fs_byte(inb(i),tmp); |
i | 146 | kernel/chr_drv/mem.c | i++; |
i | 149 | kernel/chr_drv/mem.c | file->f_pos = i; |
i | 155 | kernel/chr_drv/mem.c | unsigned int i = file->f_pos; |
i | 158 | kernel/chr_drv/mem.c | while (count-- > 0 && i < 65536) { |
i | 159 | kernel/chr_drv/mem.c | outb(get_fs_byte(tmp),i); |
i | 160 | kernel/chr_drv/mem.c | i++; |
i | 163 | kernel/chr_drv/mem.c | file->f_pos = i; |
i | 104 | kernel/chr_drv/mouse.c | int i; |
i | 123 | kernel/chr_drv/mouse.c | for (i = 3; i < count; i++) |
i | 124 | kernel/chr_drv/mouse.c | put_fs_byte(0x00, buffer + i); |
i | 132 | kernel/chr_drv/mouse.c | return i; |
i | 158 | kernel/chr_drv/mouse.c | int i; |
i | 163 | kernel/chr_drv/mouse.c | for (i = 0; i < 100000; i++); /* busy loop */ |
i | 67 | kernel/chr_drv/serial.c | int c, i = 0; |
i | 79 | kernel/chr_drv/serial.c | if ((info->type != PORT_16550A) || (++i >= 14) || info->tty->stopped) |
i | 304 | kernel/chr_drv/serial.c | int i; |
i | 313 | kernel/chr_drv/serial.c | for (i = 0; i < 16 ; i++) { |
i | 449 | kernel/chr_drv/serial.c | int i; |
i | 470 | kernel/chr_drv/serial.c | for (i = 0, info = serial_table; i < NR_SERIALS; i++,info++) { |
i | 471 | kernel/chr_drv/serial.c | info->tty = (tty_table+64) + i; |
i | 463 | kernel/chr_drv/tty_io.c | int i; |
i | 469 | kernel/chr_drv/tty_io.c | i = read_chan(MINOR(file->f_rdev),file,buf,count); |
i | 470 | kernel/chr_drv/tty_io.c | if (i > 0) |
i | 472 | kernel/chr_drv/tty_io.c | return i; |
i | 477 | kernel/chr_drv/tty_io.c | int i; |
i | 483 | kernel/chr_drv/tty_io.c | i = write_chan(MINOR(file->f_rdev),file,buf,count); |
i | 484 | kernel/chr_drv/tty_io.c | if (i > 0) |
i | 486 | kernel/chr_drv/tty_io.c | return i; |
i | 629 | kernel/chr_drv/tty_io.c | int i; |
i | 637 | kernel/chr_drv/tty_io.c | for (i=0 ; i < QUEUES ; i++) |
i | 638 | kernel/chr_drv/tty_io.c | tty_queues[i] = (struct tty_queue) {0,0,0,0,""}; |
i | 639 | kernel/chr_drv/tty_io.c | for (i=0 ; i<256 ; i++) { |
i | 640 | kernel/chr_drv/tty_io.c | tty_table[i] = (struct tty_struct) { |
i | 647 | kernel/chr_drv/tty_io.c | for (i = 0 ; i<NR_CONSOLES ; i++) { |
i | 648 | kernel/chr_drv/tty_io.c | con_table[i] = (struct tty_struct) { |
i | 663 | kernel/chr_drv/tty_io.c | con_queues+0+i*3,con_queues+1+i*3,con_queues+2+i*3 |
i | 666 | kernel/chr_drv/tty_io.c | for (i = 0 ; i<NR_SERIALS ; i++) { |
i | 667 | kernel/chr_drv/tty_io.c | rs_table[i] = (struct tty_struct) { |
i | 682 | kernel/chr_drv/tty_io.c | rs_queues+0+i*3,rs_queues+1+i*3,rs_queues+2+i*3 |
i | 685 | kernel/chr_drv/tty_io.c | for (i = 0 ; i<NR_PTYS ; i++) { |
i | 686 | kernel/chr_drv/tty_io.c | mpty_table[i] = (struct tty_struct) { |
i | 700 | kernel/chr_drv/tty_io.c | spty_table+i, |
i | 701 | kernel/chr_drv/tty_io.c | mpty_queues+0+i*3,mpty_queues+1+i*3,mpty_queues+2+i*3 |
i | 703 | kernel/chr_drv/tty_io.c | spty_table[i] = (struct tty_struct) { |
i | 717 | kernel/chr_drv/tty_io.c | mpty_table+i, |
i | 718 | kernel/chr_drv/tty_io.c | spty_queues+0+i*3,spty_queues+1+i*3,spty_queues+2+i*3 |
i | 93 | kernel/chr_drv/tty_ioctl.c | int i, n = 0; |
i | 102 | kernel/chr_drv/tty_ioctl.c | for (i=0 ; i<sizeof(struct task_struct) ; i++) |
i | 113 | kernel/chr_drv/tty_ioctl.c | int i; |
i | 116 | kernel/chr_drv/tty_ioctl.c | for (i=0 ; i< (sizeof (*termios)) ; i++) |
i | 117 | kernel/chr_drv/tty_ioctl.c | put_fs_byte( ((char *)&tty->termios)[i] , i+(char *)termios ); |
i | 124 | kernel/chr_drv/tty_ioctl.c | int i; |
i | 137 | kernel/chr_drv/tty_ioctl.c | for (i=0 ; i< (sizeof (*termios)) ; i++) |
i | 138 | kernel/chr_drv/tty_ioctl.c | ((char *)&tty->termios)[i]=get_fs_byte(i+(char *)termios); |
i | 146 | kernel/chr_drv/tty_ioctl.c | int i; |
i | 155 | kernel/chr_drv/tty_ioctl.c | for(i=0 ; i < NCC ; i++) |
i | 156 | kernel/chr_drv/tty_ioctl.c | tmp_termio.c_cc[i] = tty->termios.c_cc[i]; |
i | 157 | kernel/chr_drv/tty_ioctl.c | for (i=0 ; i< (sizeof (*termio)) ; i++) |
i | 158 | kernel/chr_drv/tty_ioctl.c | put_fs_byte( ((char *)&tmp_termio)[i] , i+(char *)termio ); |
i | 168 | kernel/chr_drv/tty_ioctl.c | int i; |
i | 180 | kernel/chr_drv/tty_ioctl.c | for (i=0 ; i< (sizeof (*termio)) ; i++) |
i | 181 | kernel/chr_drv/tty_ioctl.c | ((char *)&tmp_termio)[i]=get_fs_byte(i+(char *)termio); |
i | 187 | kernel/chr_drv/tty_ioctl.c | for(i=0 ; i < NCC ; i++) |
i | 188 | kernel/chr_drv/tty_ioctl.c | tty->termios.c_cc[i] = tmp_termio.c_cc[i]; |
i | 196 | kernel/chr_drv/tty_ioctl.c | int i,changed; |
i | 203 | kernel/chr_drv/tty_ioctl.c | for (i = 0; i < sizeof (*ws) ; i++,tmp++) { |
i | 204 | kernel/chr_drv/tty_ioctl.c | c = get_fs_byte(i + (char *) ws); |
i | 217 | kernel/chr_drv/tty_ioctl.c | int i; |
i | 224 | kernel/chr_drv/tty_ioctl.c | for (i = 0; i < sizeof (struct winsize) ; i++,tmp++) |
i | 225 | kernel/chr_drv/tty_ioctl.c | put_fs_byte(((char *) &tty->winsize)[i], tmp); |
i | 59 | kernel/exit.c | int i; |
i | 67 | kernel/exit.c | for (i=1 ; i<NR_TASKS ; i++) |
i | 68 | kernel/exit.c | if (task[i] == p) { |
i | 69 | kernel/exit.c | task[i] = NULL; |
i | 84 | kernel/exit.c | int i; |
i | 88 | kernel/exit.c | for (i=0 ; i<NR_TASKS ; i++) |
i | 89 | kernel/exit.c | if (task[i] == p) |
i | 105 | kernel/exit.c | int i; |
i | 107 | kernel/exit.c | for (i=1 ; i<NR_TASKS ; i++) { |
i | 108 | kernel/exit.c | if (!task[i]) |
i | 110 | kernel/exit.c | if (bad_task_ptr(task[i]->p_pptr)) |
i | 112 | kernel/exit.c | task[i]->pid); |
i | 113 | kernel/exit.c | if (bad_task_ptr(task[i]->p_cptr)) |
i | 115 | kernel/exit.c | task[i]->pid); |
i | 116 | kernel/exit.c | if (bad_task_ptr(task[i]->p_ysptr)) |
i | 118 | kernel/exit.c | task[i]->pid); |
i | 119 | kernel/exit.c | if (bad_task_ptr(task[i]->p_osptr)) |
i | 121 | kernel/exit.c | task[i]->pid); |
i | 122 | kernel/exit.c | if (task[i]->p_pptr == task[i]) |
i | 124 | kernel/exit.c | if (task[i]->p_cptr == task[i]) |
i | 126 | kernel/exit.c | if (task[i]->p_ysptr == task[i]) |
i | 128 | kernel/exit.c | if (task[i]->p_osptr == task[i]) |
i | 130 | kernel/exit.c | if (task[i]->p_osptr) { |
i | 131 | kernel/exit.c | if (task[i]->p_pptr != task[i]->p_osptr->p_pptr) |
i | 134 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid, |
i | 135 | kernel/exit.c | task[i]->p_osptr->p_pptr->pid); |
i | 136 | kernel/exit.c | if (task[i]->p_osptr->p_ysptr != task[i]) |
i | 139 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid); |
i | 141 | kernel/exit.c | if (task[i]->p_ysptr) { |
i | 142 | kernel/exit.c | if (task[i]->p_pptr != task[i]->p_ysptr->p_pptr) |
i | 145 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid, |
i | 146 | kernel/exit.c | task[i]->p_osptr->p_pptr->pid); |
i | 147 | kernel/exit.c | if (task[i]->p_ysptr->p_osptr != task[i]) |
i | 150 | kernel/exit.c | task[i]->pid, task[i]->p_ysptr->pid); |
i | 152 | kernel/exit.c | if (task[i]->p_cptr) { |
i | 153 | kernel/exit.c | if (task[i]->p_cptr->p_pptr != task[i]) |
i | 156 | kernel/exit.c | task[i]->pid, task[i]->p_cptr->pid); |
i | 157 | kernel/exit.c | if (task[i]->p_cptr->p_ysptr) |
i | 160 | kernel/exit.c | task[i]->pid, task[i]->p_cptr->pid); |
i | 297 | kernel/exit.c | int i; |
i | 302 | kernel/exit.c | for (i=0 ; i<NR_OPEN ; i++) |
i | 303 | kernel/exit.c | if (current->filp[i]) |
i | 304 | kernel/exit.c | sys_close(i); |
i | 312 | kernel/exit.c | for (i=0; i < current->numlibraries; i++) { |
i | 313 | kernel/exit.c | iput(current->libraries[i].library); |
i | 314 | kernel/exit.c | current->libraries[i].library = NULL; |
i | 72 | kernel/fork.c | int i, task_nr; |
i | 78 | kernel/fork.c | for(i=0 ; i < NR_TASKS ; i++) { |
i | 79 | kernel/fork.c | if (!task[i]) |
i | 81 | kernel/fork.c | if (task[i]->uid == current->uid) |
i | 83 | kernel/fork.c | if (task[i]->pid == last_pid || task[i]->pgrp == last_pid) |
i | 90 | kernel/fork.c | for(i=1 ; i<NR_TASKS ; i++) |
i | 91 | kernel/fork.c | if (!task[i]) |
i | 95 | kernel/fork.c | task_nr = i; |
i | 112 | kernel/fork.c | int i,nr; |
i | 166 | kernel/fork.c | for (i = 0; i<IO_BITMAP_SIZE ; i++) |
i | 167 | kernel/fork.c | p->tss.io_bitmap[i] = ~0; |
i | 176 | kernel/fork.c | for (i=0; i<NR_OPEN;i++) |
i | 177 | kernel/fork.c | if (f=p->filp[i]) |
i | 185 | kernel/fork.c | for (i=0; i < current->numlibraries ; i++) |
i | 186 | kernel/fork.c | if (current->libraries[i].library) |
i | 187 | kernel/fork.c | current->libraries[i].library->i_count++; |
i | 19 | kernel/ioport.c | int i; |
i | 22 | kernel/ioport.c | for (i = 0, mask = 0x80000000; i < 32; ++i, mask >>= 1) |
i | 23 | kernel/ioport.c | str[i] = (l & mask) ? '1' : '0'; |
i | 29 | kernel/ioport.c | int i, j; |
i | 32 | kernel/ioport.c | for (i = j = 0; j < numl; ++i) |
i | 34 | kernel/ioport.c | printk("%4d [%3x]: ", 64*i, 64*i); |
i | 228 | kernel/irq.c | int i; |
i | 230 | kernel/irq.c | for (i = 0; i < 16 ; i++) |
i | 231 | kernel/irq.c | set_intr_gate(0x20+i,bad_interrupt[i]); |
i | 73 | kernel/itimer.c | register unsigned long i, j; |
i | 76 | kernel/itimer.c | i = tvtojiffies(&value->it_interval); |
i | 83 | kernel/itimer.c | current->it_real_incr = i; |
i | 87 | kernel/itimer.c | current->it_virt_incr = i; |
i | 91 | kernel/itimer.c | current->it_prof_incr = i; |
i | 17 | kernel/math/compare.c | int i = a->exponent & 0x7fff; |
i | 24 | kernel/math/compare.c | while (i && a->b >= 0) { |
i | 25 | kernel/math/compare.c | i--; |
i | 30 | kernel/math/compare.c | a->exponent = i | sign; |
i | 43 | kernel/math/div.c | int i; |
i | 47 | kernel/math/div.c | for (i = 0 ; i<64 ; i++) { |
i | 65 | kernel/math/div.c | int i,sign; |
i | 73 | kernel/math/div.c | i = (src1->exponent & 0x7fff) - (src2->exponent & 0x7fff) + 16383; |
i | 74 | kernel/math/div.c | if (i<0) { |
i | 87 | kernel/math/div.c | i++; |
i | 92 | kernel/math/div.c | while (i && tmp[3] >= 0) { |
i | 93 | kernel/math/div.c | i--; |
i | 99 | kernel/math/div.c | i = 0; |
i | 100 | kernel/math/div.c | if (i>0x7fff) { |
i | 106 | kernel/math/div.c | result->exponent = i | sign; |
i | 52 | kernel/math/emulate.c | static temp_real_unaligned * __st(int i); |
i | 531 | kernel/math/emulate.c | static temp_real_unaligned * __st(int i) |
i | 533 | kernel/math/emulate.c | i += I387.swd >> 11; |
i | 534 | kernel/math/emulate.c | i &= 7; |
i | 535 | kernel/math/emulate.c | return (temp_real_unaligned *) (i*10 + (char *)(I387.st_space)); |
i | 113 | kernel/math/get_put.c | temp_int i; |
i | 118 | kernel/math/get_put.c | i.sign = 0x80 & get_fs_byte(addr--); |
i | 119 | kernel/math/get_put.c | i.a = i.b = 0; |
i | 122 | kernel/math/get_put.c | MUL10(i.a, i.b); |
i | 123 | kernel/math/get_put.c | ADD64((c>>4), i.a, i.b); |
i | 124 | kernel/math/get_put.c | MUL10(i.a, i.b); |
i | 125 | kernel/math/get_put.c | ADD64((c&0xf), i.a, i.b); |
i | 127 | kernel/math/get_put.c | int_to_real(&i,tmp); |
i | 222 | kernel/math/get_put.c | temp_int i; |
i | 227 | kernel/math/get_put.c | real_to_int(tmp,&i); |
i | 228 | kernel/math/get_put.c | if (i.sign) |
i | 233 | kernel/math/get_put.c | DIV10(i.a,i.b,rem); |
i | 235 | kernel/math/get_put.c | DIV10(i.a,i.b,rem); |
i | 48 | kernel/math/mul.c | int i,sign; |
i | 52 | kernel/math/mul.c | i = (src1->exponent & 0x7fff) + (src2->exponent & 0x7fff) - 16383 + 1; |
i | 53 | kernel/math/mul.c | if (i<0) { |
i | 58 | kernel/math/mul.c | if (i>0x7fff) { |
i | 64 | kernel/math/mul.c | while (i && tmp[3] >= 0) { |
i | 65 | kernel/math/mul.c | i--; |
i | 69 | kernel/math/mul.c | i = 0; |
i | 70 | kernel/math/mul.c | result->exponent = i | sign; |
i | 50 | kernel/math/sqrt.c | int i; |
i | 74 | kernel/math/sqrt.c | for (i = 64 ; i > 0 ; i--) { |
i | 28 | kernel/printk.c | unsigned long i; |
i | 35 | kernel/printk.c | i = log_page; |
i | 37 | kernel/printk.c | free_page(i); |
i | 41 | kernel/printk.c | i = get_free_page(GFP_KERNEL); |
i | 43 | kernel/printk.c | free_page(i); |
i | 45 | kernel/printk.c | } else if (log_page = i) { |
i | 66 | kernel/printk.c | i = 0; |
i | 74 | kernel/printk.c | i++; |
i | 76 | kernel/printk.c | return i; |
i | 85 | kernel/printk.c | int i,j; |
i | 89 | kernel/printk.c | i=vsprintf(buf,fmt,args); |
i | 91 | kernel/printk.c | for (j = 0; j < i && log_page ; j++) { |
i | 102 | kernel/printk.c | return i; |
i | 36 | kernel/ptrace.c | int i; |
i | 38 | kernel/ptrace.c | for (i = 1; i < NR_TASKS; i++) { |
i | 39 | kernel/ptrace.c | if (task[i] != NULL && (task[i]->pid == pid)) |
i | 40 | kernel/ptrace.c | return task[i]; |
i | 37 | kernel/sched.c | int i,j = 4096-sizeof(struct task_struct); |
i | 41 | kernel/sched.c | i=0; |
i | 42 | kernel/sched.c | while (i<j && !((char *)(p+1))[i]) |
i | 43 | kernel/sched.c | i++; |
i | 44 | kernel/sched.c | printk("%d/%d chars free in kstack\n\r",i,j); |
i | 56 | kernel/sched.c | int i; |
i | 59 | kernel/sched.c | for (i=0 ; i<NR_TASKS ; i++) |
i | 60 | kernel/sched.c | if (task[i]) |
i | 61 | kernel/sched.c | show_task(i,task[i]); |
i | 129 | kernel/sched.c | int i,next,c; |
i | 152 | kernel/sched.c | i = NR_TASKS; |
i | 154 | kernel/sched.c | while (--i) { |
i | 158 | kernel/sched.c | c = (*p)->counter, next = i; |
i | 294 | kernel/sched.c | int i; |
i | 297 | kernel/sched.c | for (i=0 ; i<4 ; i++,mask <<= 1) { |
i | 300 | kernel/sched.c | if (mon_timer[i]) { |
i | 301 | kernel/sched.c | if (!--mon_timer[i]) |
i | 302 | kernel/sched.c | wake_up(i+wait_motor); |
i | 303 | kernel/sched.c | } else if (!moff_timer[i]) { |
i | 307 | kernel/sched.c | moff_timer[i]--; |
i | 369 | kernel/sched.c | int i, n=0; |
i | 377 | kernel/sched.c | for (i = 0; i < 3; ++i) |
i | 378 | kernel/sched.c | averunnable[i] = (cexp[i] * averunnable[i] + |
i | 379 | kernel/sched.c | n * FSCALE * (FSCALE - cexp[i])) >> FSHIFT; |
i | 510 | kernel/sched.c | int i; |
i | 519 | kernel/sched.c | for(i=1 ; i<NR_TASKS ; i++) { |
i | 520 | kernel/sched.c | task[i] = NULL; |
i | 71 | kernel/signal.c | int i; |
i | 74 | kernel/signal.c | for (i=0 ; i< sizeof(struct sigaction) ; i++) { |
i | 83 | kernel/signal.c | int i; |
i | 85 | kernel/signal.c | for (i=0 ; i< sizeof(struct sigaction) ; i++) |
i | 245 | kernel/sys.c | int i; |
i | 247 | kernel/sys.c | i = CURRENT_TIME; |
i | 250 | kernel/sys.c | put_fs_long(i,(unsigned long *)tloc); |
i | 252 | kernel/sys.c | return i; |
i | 356 | kernel/sys.c | int i; |
i | 364 | kernel/sys.c | for (i=0 ; i<NR_TASKS ; i++) |
i | 365 | kernel/sys.c | if (task[i] && (task[i]->pid == pid) && |
i | 366 | kernel/sys.c | ((task[i]->p_pptr == current) || |
i | 367 | kernel/sys.c | (task[i] == current))) { |
i | 368 | kernel/sys.c | if (task[i]->leader) |
i | 370 | kernel/sys.c | if ((task[i]->session != current->session) || |
i | 374 | kernel/sys.c | task[i]->pgrp = pgid; |
i | 400 | kernel/sys.c | int i; |
i | 405 | kernel/sys.c | for (i = 0; (i < NGROUPS) && (current->groups[i] != NOGROUP); |
i | 406 | kernel/sys.c | i++, grouplist++) { |
i | 408 | kernel/sys.c | if (i >= gidsetsize) |
i | 410 | kernel/sys.c | put_fs_word(current->groups[i], (short *) grouplist); |
i | 413 | kernel/sys.c | return(i); |
i | 418 | kernel/sys.c | int i; |
i | 424 | kernel/sys.c | for (i = 0; i < gidsetsize; i++, grouplist++) { |
i | 425 | kernel/sys.c | current->groups[i] = get_fs_word((unsigned short *) grouplist); |
i | 427 | kernel/sys.c | if (i < NGROUPS) |
i | 428 | kernel/sys.c | current->groups[i] = NOGROUP; |
i | 434 | kernel/sys.c | int i; |
i | 439 | kernel/sys.c | for (i = 0; i < NGROUPS; i++) { |
i | 440 | kernel/sys.c | if (current->groups[i] == NOGROUP) |
i | 442 | kernel/sys.c | if (current->groups[i] == grp) |
i | 484 | kernel/sys.c | int i; |
i | 490 | kernel/sys.c | for (i=0; i < len; i++) { |
i | 491 | kernel/sys.c | if ((thisname.nodename[i] = get_fs_byte(name+i)) == 0) |
i | 494 | kernel/sys.c | thisname.nodename[i] = 0; |
i | 64 | kernel/traps.c | int i; |
i | 72 | kernel/traps.c | str(i); |
i | 73 | kernel/traps.c | printk("Pid: %d, process nr: %d\n\r",current->pid,0xffff & i); |
i | 74 | kernel/traps.c | for(i=0;i<10;i++) |
i | 75 | kernel/traps.c | printk("%02x ",0xff & get_seg_byte(esp[1],(i+(char *)esp[0]))); |
i | 183 | kernel/traps.c | int i; |
i | 203 | kernel/traps.c | for (i=18;i<48;i++) |
i | 204 | kernel/traps.c | set_trap_gate(i,&reserved); |
i | 21 | kernel/vsprintf.c | int i=0; |
i | 24 | kernel/vsprintf.c | i = i*10 + *((*s)++) - '0'; |
i | 25 | kernel/vsprintf.c | return i; |
i | 46 | kernel/vsprintf.c | int i; |
i | 62 | kernel/vsprintf.c | i=0; |
i | 64 | kernel/vsprintf.c | tmp[i++]='0'; |
i | 66 | kernel/vsprintf.c | tmp[i++]=digits[do_div(num,base)]; |
i | 67 | kernel/vsprintf.c | if (i>precision) precision=i; |
i | 84 | kernel/vsprintf.c | while(i<precision--) |
i | 86 | kernel/vsprintf.c | while(i-->0) |
i | 87 | kernel/vsprintf.c | *str++ = tmp[i]; |
i | 96 | kernel/vsprintf.c | int i; |
i | 181 | kernel/vsprintf.c | for (i = 0; i < len; ++i) |
i | 100 | lib/malloc.c | int i; |
i | 105 | lib/malloc.c | for (i = PAGE_SIZE/sizeof(struct bucket_desc); i > 1; i--) { |
i | 148 | lib/malloc.c | int i; |
i | 160 | lib/malloc.c | for (i=PAGE_SIZE/bdir->size; i > 1; i--) { |
i | 70 | mm/memory.c | unsigned long i; |
i | 75 | mm/memory.c | i = addr - low_memory; |
i | 76 | mm/memory.c | i >>= 12; |
i | 77 | mm/memory.c | if (mem_map[i] == 1) |
i | 79 | mm/memory.c | if (mem_map[i]--) |
i | 81 | mm/memory.c | mem_map[i] = 0; |
i | 611 | mm/memory.c | int i; |
i | 624 | mm/memory.c | for (i=0; i < (*p)->numlibraries; i++) |
i | 625 | mm/memory.c | if (inode == (*p)->libraries[i].library) |
i | 627 | mm/memory.c | if (i >= (*p)->numlibraries) |
i | 669 | mm/memory.c | unsigned int block,i; |
i | 704 | mm/memory.c | i = tsk->numlibraries; |
i | 705 | mm/memory.c | while (i-- > 0) { |
i | 706 | mm/memory.c | if (tmp < tsk->libraries[i].start) |
i | 708 | mm/memory.c | block = tmp - tsk->libraries[i].start; |
i | 709 | mm/memory.c | if (block >= tsk->libraries[i].length) |
i | 711 | mm/memory.c | inode = tsk->libraries[i].library; |
i | 740 | mm/memory.c | for (i=0 ; i<4 ; block++,i++) |
i | 741 | mm/memory.c | nr[i] = bmap(inode,block); |
i | 743 | mm/memory.c | i = tmp + 4096 - tsk->end_data; |
i | 744 | mm/memory.c | if (i>4095) |
i | 745 | mm/memory.c | i = 0; |
i | 747 | mm/memory.c | while (i--) { |
i | 759 | mm/memory.c | int i,j,k,free=0,total=0; |
i | 767 | mm/memory.c | for (i = 0 ; i < paging_pages ; i++) { |
i | 769 | mm/memory.c | if (!mem_map[i]) |
i | 772 | mm/memory.c | shared += mem_map[i]-1; |
i | 778 | mm/memory.c | for(i=4 ; i<1024 ;) { |
i | 779 | mm/memory.c | if (1&pg_dir[i]) { |
i | 780 | mm/memory.c | if (pg_dir[i]>high_memory) { |
i | 782 | mm/memory.c | i,pg_dir[i]); |
i | 783 | mm/memory.c | i++; |
i | 786 | mm/memory.c | if (pg_dir[i]>low_memory) |
i | 788 | mm/memory.c | pg_tbl=(unsigned long *) (0xfffff000 & pg_dir[i]); |
i | 793 | mm/memory.c | i,j, pg_tbl[j]); |
i | 797 | mm/memory.c | i++; |
i | 798 | mm/memory.c | if (!(i&15) && k) { |
i | 800 | mm/memory.c | printk("Process %d: %d pages\n\r",(i>>4)-1,k); |
i | 65 | mm/swap.c | int i; |
i | 67 | mm/swap.c | for (i = 0; i < 4; i++) |
i | 68 | mm/swap.c | if (!(zones[i] = bmap(swap_file,block++))) { |
i | 146 | mm/swap.c | int i; |
i | 155 | mm/swap.c | for (i = 0; i < NR_LAST_FREE_PAGES; i++) |
i | 156 | mm/swap.c | if (last_free_pages[i] == (page & 0xfffff000)) |
i | 309 | mm/swap.c | int i,j; |
i | 357 | mm/swap.c | for (i = 1 ; i < SWAP_BITS ; i++) |
i | 358 | mm/swap.c | if (bit(tmp,i)) { |
i | 360 | mm/swap.c | lowest_bit = i; |
i | 361 | mm/swap.c | highest_bit = i; |
i | 32 | net/socket.c | int i; |
i | 34 | net/socket.c | for (i = 0; i < NPROTO; ++i) |
i | 35 | net/socket.c | if (proto_table[i].family == family) |
i | 36 | net/socket.c | return proto_table[i].name; |
i | 76 | net/socket.c | int fd, i; |
i | 88 | net/socket.c | for (file = file_table, i = 0; i < NR_FILE; ++i, ++file) |
i | 91 | net/socket.c | if (i == NR_FILE) |
i | 416 | net/socket.c | int i, fd; |
i | 426 | net/socket.c | for (i = 0; i < NPROTO; ++i) |
i | 427 | net/socket.c | if (proto_table[i].family == family) |
i | 429 | net/socket.c | if (i == NPROTO) { |
i | 433 | net/socket.c | ops = proto_table[i].ops; |
i | 458 | net/socket.c | if ((i = sock->ops->create(sock, protocol)) < 0) { |
i | 460 | net/socket.c | return i; |
i | 474 | net/socket.c | int fd1, fd2, i; |
i | 500 | net/socket.c | if ((i = sock1->ops->socketpair(sock1, sock2)) < 0) { |
i | 503 | net/socket.c | return i; |
i | 525 | net/socket.c | int i; |
i | 530 | net/socket.c | if ((i = sock->ops->bind(sock, umyaddr, addrlen)) < 0) { |
i | 532 | net/socket.c | return i; |
i | 571 | net/socket.c | int i; |
i | 605 | net/socket.c | if ((i = sock->ops->dup(newsock, sock)) < 0) { |
i | 607 | net/socket.c | return i; |
i | 643 | net/socket.c | int i; |
i | 652 | net/socket.c | if ((i = sock->ops->connect(sock, uservaddr, addrlen)) < 0) { |
i | 654 | net/socket.c | return i; |
i | 747 | net/socket.c | int i, ok; |
i | 751 | net/socket.c | for (i = ok = 0; i < NPROTO; ++i) { |
i | 753 | net/socket.c | proto_table[i].family, proto_table[i].name); |
i | 754 | net/socket.c | if ((*proto_table[i].ops->init)() < 0) { |
i | 756 | net/socket.c | proto_table[i].family); |
i | 757 | net/socket.c | proto_table[i].family = -1; |
i | 236 | net/unix.c | int i; |
i | 262 | net/unix.c | i = do_mknod(fname, S_IFSOCK | 0777, 0); |
i | 263 | net/unix.c | if (i == 0) |
i | 264 | net/unix.c | i = open_namei(fname, 0, S_IFSOCK, &upd->inode); |
i | 266 | net/unix.c | if (i < 0) { |
i | 268 | net/unix.c | return i; |
i | 287 | net/unix.c | int i; |
i | 309 | net/unix.c | if ((i = sock_awaitconn(sock, serv_upd->socket)) < 0) { |
i | 311 | net/unix.c | return i; |
i | 59 | tools/build.c | int i,c,id; |
i | 89 | tools/build.c | for (i=0;i<sizeof buf; i++) buf[i]=0; |
i | 106 | tools/build.c | i=read(id,buf,sizeof buf); |
i | 107 | tools/build.c | fprintf(stderr,"Boot sector %d bytes.\n",i); |
i | 108 | tools/build.c | if (i != 512) |
i | 114 | tools/build.c | i=write(1,buf,512); |
i | 115 | tools/build.c | if (i!=512) |
i | 135 | tools/build.c | for (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c ) |
i | 139 | tools/build.c | if (i > SETUP_SECTS*512) |
i | 142 | tools/build.c | fprintf(stderr,"Setup is %d bytes.\n",i); |
i | 145 | tools/build.c | while (i<SETUP_SECTS*512) { |
i | 146 | tools/build.c | c = SETUP_SECTS*512-i; |
i | 151 | tools/build.c | i += c; |
i | 160 | tools/build.c | for (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c ) |
i | 164 | tools/build.c | fprintf(stderr,"System is %d bytes.\n",i); |
i | 165 | tools/build.c | if (i > SYS_SIZE*16) |