tag | line | file | source code |
i | 77 | fs/buffer.c | int i; |
i | 81 | fs/buffer.c | for (i = nr_buffers*2 ; i-- > 0 ; bh = bh->b_next_free) { |
i | 113 | fs/buffer.c | int i; |
i | 117 | fs/buffer.c | for (i = nr_buffers*2 ; --i > 0 ; bh = bh->b_next_free) { |
i | 142 | fs/buffer.c | int i; |
i | 149 | fs/buffer.c | i = floppy_change(bh); |
i | 155 | fs/buffer.c | i = check_scsidisk_media_change(dev, 0); |
i | 161 | fs/buffer.c | i = check_cdrom_media_change(dev, 0); |
i | 169 | fs/buffer.c | if (!i) return; |
i | 173 | fs/buffer.c | for (i=0 ; i<NR_SUPER ; i++) |
i | 174 | fs/buffer.c | if (super_block[i].s_dev == dev) |
i | 175 | fs/buffer.c | put_super(super_block[i].s_dev); |
i | 527 | fs/buffer.c | int i; |
i | 534 | fs/buffer.c | for (i=0 ; i<4 ; i++) { |
i | 535 | fs/buffer.c | bh[i] = NULL; |
i | 536 | fs/buffer.c | if (b[i]) { |
i | 537 | fs/buffer.c | bh[i] = getblk(dev, b[i], size); |
i | 538 | fs/buffer.c | if (bh[i] && !bh[i]->b_uptodate) |
i | 539 | fs/buffer.c | bhr[bhnum++] = bh[i]; |
i | 545 | fs/buffer.c | for (i=0 ; i<4 ; i++,address += BLOCK_SIZE) { |
i | 546 | fs/buffer.c | if (bh[i]) { |
i | 547 | fs/buffer.c | wait_on_buffer(bh[i]); |
i | 548 | fs/buffer.c | if (bh[i]->b_uptodate) |
i | 549 | fs/buffer.c | COPYBLK((unsigned long) bh[i]->b_data,address); |
i | 550 | fs/buffer.c | brelse(bh[i]); |
i | 565 | fs/buffer.c | int i; |
i | 576 | fs/buffer.c | i = 0; |
i | 577 | fs/buffer.c | for (i = 0 ; i+size <= 4096 ; i += size) { |
i | 583 | fs/buffer.c | bh->b_data = (char * ) (page+i); |
i | 664 | fs/buffer.c | int i; |
i | 669 | fs/buffer.c | i = nr_buffers >> priority; |
i | 670 | fs/buffer.c | for ( ; i-- > 0 ; bh = bh->b_next_free) { |
i | 697 | fs/buffer.c | int i; |
i | 703 | fs/buffer.c | for (i = 0 ; i < NR_HASH ; i++) |
i | 704 | fs/buffer.c | hash_table[i] = NULL; |
i | 51 | fs/devices.c | int i; |
i | 53 | fs/devices.c | i = MAJOR(inode->i_rdev); |
i | 54 | fs/devices.c | if (i >= MAX_BLKDEV || !blkdev_fops[i]) |
i | 56 | fs/devices.c | filp->f_op = blkdev_fops[i]; |
i | 102 | fs/devices.c | int i; |
i | 104 | fs/devices.c | i = MAJOR(inode->i_rdev); |
i | 105 | fs/devices.c | if (i >= MAX_CHRDEV || !chrdev_fops[i]) |
i | 107 | fs/devices.c | filp->f_op = chrdev_fops[i]; |
i | 278 | fs/exec.c | int i=0; |
i | 283 | fs/exec.c | i++; |
i | 285 | fs/exec.c | return i; |
i | 358 | fs/exec.c | int i; |
i | 371 | fs/exec.c | for (i=MAX_ARG_PAGES-1 ; i>=0 ; i--) { |
i | 373 | fs/exec.c | if (page[i]) |
i | 374 | fs/exec.c | put_dirty_page(current,page[i],data_base); |
i | 431 | fs/exec.c | int i,argc,envc; |
i | 440 | fs/exec.c | for (i=0 ; i<MAX_ARG_PAGES ; i++) /* clear page-table */ |
i | 441 | fs/exec.c | page[i]=0; |
i | 461 | fs/exec.c | i = inode->i_mode; |
i | 462 | fs/exec.c | if (IS_NOSUID(inode) && (((i & S_ISUID) && inode->i_uid != current-> |
i | 463 | fs/exec.c | euid) || ((i & S_ISGID) && !in_group_p(inode->i_gid))) && |
i | 473 | fs/exec.c | e_uid = (i & S_ISUID) ? inode->i_uid : current->euid; |
i | 474 | fs/exec.c | e_gid = (i & S_ISGID) ? inode->i_gid : current->egid; |
i | 477 | fs/exec.c | i >>= 6; |
i | 479 | fs/exec.c | i >>= 3; |
i | 480 | fs/exec.c | if (!(i & 1) && |
i | 587 | fs/exec.c | for (i=0; (ch = get_fs_byte(filename++)) != '\0';) |
i | 589 | fs/exec.c | i = 0; |
i | 591 | fs/exec.c | if (i < 15) |
i | 592 | fs/exec.c | current->comm[i++] = ch; |
i | 593 | fs/exec.c | current->comm[i] = '\0'; |
i | 598 | fs/exec.c | i = current->numlibraries; |
i | 599 | fs/exec.c | while (i-- > 0) { |
i | 600 | fs/exec.c | iput(current->libraries[i].library); |
i | 601 | fs/exec.c | current->libraries[i].library = NULL; |
i | 608 | fs/exec.c | for (i=0 ; i<32 ; i++) { |
i | 609 | fs/exec.c | current->sigaction[i].sa_mask = 0; |
i | 610 | fs/exec.c | current->sigaction[i].sa_flags = 0; |
i | 611 | fs/exec.c | if (current->sigaction[i].sa_handler != SIG_IGN) |
i | 612 | fs/exec.c | current->sigaction[i].sa_handler = NULL; |
i | 614 | fs/exec.c | for (i=0 ; i<NR_OPEN ; i++) |
i | 615 | fs/exec.c | if (FD_ISSET(i,¤t->close_on_exec)) |
i | 616 | fs/exec.c | sys_close(i); |
i | 649 | fs/exec.c | for (i=0 ; i<MAX_ARG_PAGES ; i++) |
i | 650 | fs/exec.c | free_page(page[i]); |
i | 67 | fs/ext/dir.c | unsigned int offset,i; |
i | 99 | fs/ext/dir.c | for (i = 0; i < de->name_len; i++) |
i | 100 | fs/ext/dir.c | if ((c = de->name[i]) != 0) |
i | 101 | fs/ext/dir.c | put_fs_byte(c,i+dirent->d_name); |
i | 104 | fs/ext/dir.c | if (i) { |
i | 106 | fs/ext/dir.c | put_fs_byte(0,i+dirent->d_name); |
i | 107 | fs/ext/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 109 | fs/ext/dir.c | return i; |
i | 176 | fs/ext/inode.c | int i; |
i | 190 | fs/ext/inode.c | i = inode_bmap(inode,9); |
i | 191 | fs/ext/inode.c | if (!i) |
i | 193 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
i | 197 | fs/ext/inode.c | i = inode_bmap(inode,10); |
i | 198 | fs/ext/inode.c | if (!i) |
i | 200 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>8); |
i | 201 | fs/ext/inode.c | if (!i) |
i | 203 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
i | 206 | fs/ext/inode.c | i = inode_bmap(inode,11); |
i | 207 | fs/ext/inode.c | if (!i) |
i | 209 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>16); |
i | 210 | fs/ext/inode.c | if (!i) |
i | 212 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),(block>>8) & 255); |
i | 213 | fs/ext/inode.c | if (!i) |
i | 215 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
i | 198 | fs/ext/namei.c | int i; |
i | 293 | fs/ext/namei.c | for (i=0; i < namelen ; i++) |
i | 294 | fs/ext/namei.c | de->name[i] = name[i]; |
i | 624 | fs/ext/namei.c | int i; |
i | 641 | fs/ext/namei.c | i = 0; |
i | 642 | fs/ext/namei.c | while (i < 1023 && (c = *(symname++))) |
i | 643 | fs/ext/namei.c | name_block->b_data[i++] = c; |
i | 644 | fs/ext/namei.c | name_block->b_data[i] = 0; |
i | 647 | fs/ext/namei.c | inode->i_size = i; |
i | 88 | fs/ext/symlink.c | int i; |
i | 101 | fs/ext/symlink.c | i = 0; |
i | 102 | fs/ext/symlink.c | while (i<buflen && (c = bh->b_data[i])) { |
i | 103 | fs/ext/symlink.c | i++; |
i | 107 | fs/ext/symlink.c | return i; |
i | 35 | fs/ext/truncate.c | int i, tmp; |
i | 42 | fs/ext/truncate.c | for (i = DIRECT_BLOCK ; i < 9 ; i++) { |
i | 43 | fs/ext/truncate.c | p = inode->u.ext_i.i_data+i; |
i | 47 | fs/ext/truncate.c | if (i < DIRECT_BLOCK) { |
i | 66 | fs/ext/truncate.c | int i, tmp; |
i | 86 | fs/ext/truncate.c | for (i = INDIRECT_BLOCK ; i < 256 ; i++) { |
i | 87 | fs/ext/truncate.c | if (i < 0) |
i | 88 | fs/ext/truncate.c | i = 0; |
i | 89 | fs/ext/truncate.c | if (i < INDIRECT_BLOCK) |
i | 91 | fs/ext/truncate.c | ind = i+(unsigned long *) ind_bh->b_data; |
i | 96 | fs/ext/truncate.c | if (i < INDIRECT_BLOCK) { |
i | 111 | fs/ext/truncate.c | for (i = 0; i < 256; i++) |
i | 114 | fs/ext/truncate.c | if (i >= 256) |
i | 129 | fs/ext/truncate.c | int i,tmp; |
i | 148 | fs/ext/truncate.c | for (i = DINDIRECT_BLOCK ; i < 256 ; i ++) { |
i | 149 | fs/ext/truncate.c | if (i < 0) |
i | 150 | fs/ext/truncate.c | i = 0; |
i | 151 | fs/ext/truncate.c | if (i < DINDIRECT_BLOCK) |
i | 153 | fs/ext/truncate.c | dind = i+(unsigned long *) dind_bh->b_data; |
i | 157 | fs/ext/truncate.c | retry |= trunc_indirect(inode,offset+(i<<8),dind); |
i | 161 | fs/ext/truncate.c | for (i = 0; i < 256; i++) |
i | 164 | fs/ext/truncate.c | if (i >= 256) |
i | 179 | fs/ext/truncate.c | int i,tmp; |
i | 198 | fs/ext/truncate.c | for (i = TINDIRECT_BLOCK ; i < 256 ; i ++) { |
i | 199 | fs/ext/truncate.c | if (i < 0) |
i | 200 | fs/ext/truncate.c | i = 0; |
i | 201 | fs/ext/truncate.c | if (i < TINDIRECT_BLOCK) |
i | 203 | fs/ext/truncate.c | tind = i+(unsigned long *) tind_bh->b_data; |
i | 204 | fs/ext/truncate.c | retry |= trunc_dindirect(inode,9+256+256*256+(i<<16),tind); |
i | 208 | fs/ext/truncate.c | for (i = 0; i < 256; i++) |
i | 211 | fs/ext/truncate.c | if (i >= 256) |
i | 152 | fs/ext2/balloc.c | int i, j; |
i | 176 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_loaded_block_bitmaps && |
i | 177 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[i] != block_group; i++) |
i | 179 | fs/ext2/balloc.c | if (i < sb->u.ext2_sb.s_loaded_block_bitmaps && |
i | 180 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[i] == block_group) { |
i | 181 | fs/ext2/balloc.c | block_bitmap_number = sb->u.ext2_sb.s_block_bitmap_number[i]; |
i | 182 | fs/ext2/balloc.c | block_bitmap = sb->u.ext2_sb.s_block_bitmap[i]; |
i | 183 | fs/ext2/balloc.c | for (j = i; j > 0; j--) { |
i | 299 | fs/ext2/balloc.c | int i, j, k; |
i | 327 | fs/ext2/balloc.c | i = ((goal - sb->u.ext2_sb.s_first_data_block) / |
i | 329 | fs/ext2/balloc.c | group_desc = i / EXT2_DESC_PER_BLOCK(sb); |
i | 330 | fs/ext2/balloc.c | desc = i % EXT2_DESC_PER_BLOCK(sb); |
i | 343 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 351 | fs/ext2/balloc.c | printk ("goal is at %d[%d,%d]:%d.\n", i, group_desc, desc, j); |
i | 410 | fs/ext2/balloc.c | printk ("Bit not found in block group %d.\n", i); |
i | 415 | fs/ext2/balloc.c | i++; |
i | 416 | fs/ext2/balloc.c | if (i >= sb->u.ext2_sb.s_groups_count) { |
i | 417 | fs/ext2/balloc.c | i = 0; |
i | 443 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 446 | fs/ext2/balloc.c | printk ("block_group = %d\n", i); |
i | 457 | fs/ext2/balloc.c | "Unable to locate free bit in block group %d.\n",i); |
i | 465 | fs/ext2/balloc.c | i, group_desc, desc, gdp[desc].bg_free_blocks_count); |
i | 477 | fs/ext2/balloc.c | j += i * EXT2_BLOCKS_PER_GROUP(sb) + sb->u.ext2_sb.s_first_data_block; |
i | 479 | fs/ext2/balloc.c | printk ("block_group = %d,block=%d\n", i, j); |
i | 515 | fs/ext2/balloc.c | int i; |
i | 524 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 535 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 542 | fs/ext2/balloc.c | printk ("Cannot load bitmap for group %d\n", i); |
i | 545 | fs/ext2/balloc.c | i, gdp[desc].bg_free_blocks_count, x); |
i | 17 | fs/ext2/bitmap.c | unsigned i; |
i | 22 | fs/ext2/bitmap.c | for (i = 0; i < numchars; i++) |
i | 23 | fs/ext2/bitmap.c | sum += nibblemap[map->b_data[i] & 0xf] + |
i | 24 | fs/ext2/bitmap.c | nibblemap[(map->b_data[i] >> 4) & 0xf]; |
i | 59 | fs/ext2/dcache.c | int i; |
i | 64 | fs/ext2/dcache.c | for (i = 1; i < CACHE_SIZE - 1; i++) { |
i | 65 | fs/ext2/dcache.c | dcache[i].prev = &dcache[i - 1]; |
i | 66 | fs/ext2/dcache.c | dcache[i].next = &dcache[i + 1]; |
i | 67 | fs/ext2/dcache.c | dcache[i].queue_next = dcache[i].queue_prev = NULL; |
i | 69 | fs/ext2/dcache.c | dcache[i].prev = &dcache[i - 1]; |
i | 70 | fs/ext2/dcache.c | dcache[i].next = NULL; |
i | 71 | fs/ext2/dcache.c | dcache[i].queue_next = dcache[i].queue_prev = NULL; |
i | 73 | fs/ext2/dcache.c | for (i = 0; i < HASH_QUEUES; i++) |
i | 74 | fs/ext2/dcache.c | queue_tail[i] = queue_head[i] = NULL; |
i | 96 | fs/ext2/dir.c | unsigned int offset, i, err; |
i | 131 | fs/ext2/dir.c | i = de->name_len; |
i | 133 | fs/ext2/dir.c | return i; |
i | 101 | fs/ext2/ialloc.c | int i, j; |
i | 125 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_loaded_inode_bitmaps && |
i | 126 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[i] != block_group; |
i | 127 | fs/ext2/ialloc.c | i++) |
i | 129 | fs/ext2/ialloc.c | if (i < sb->u.ext2_sb.s_loaded_inode_bitmaps && |
i | 130 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[i] == block_group) { |
i | 131 | fs/ext2/ialloc.c | inode_bitmap_number = sb->u.ext2_sb.s_inode_bitmap_number[i]; |
i | 132 | fs/ext2/ialloc.c | inode_bitmap = sb->u.ext2_sb.s_inode_bitmap[i]; |
i | 133 | fs/ext2/ialloc.c | for (j = i; j > 0; j--) { |
i | 326 | fs/ext2/ialloc.c | int i, j, avefreei; |
i | 340 | fs/ext2/ialloc.c | gdp = NULL; i=0; |
i | 365 | fs/ext2/ialloc.c | i = j; |
i | 374 | fs/ext2/ialloc.c | i = dir->u.ext2_i.i_block_group; |
i | 375 | fs/ext2/ialloc.c | tmp = get_group_desc(sb, i); |
i | 381 | fs/ext2/ialloc.c | i += j; |
i | 382 | fs/ext2/ialloc.c | if (i >= sb->u.ext2_sb.s_groups_count) |
i | 383 | fs/ext2/ialloc.c | i -= sb->u.ext2_sb.s_groups_count; |
i | 384 | fs/ext2/ialloc.c | tmp = get_group_desc(sb, i); |
i | 393 | fs/ext2/ialloc.c | i = dir->u.ext2_i.i_block_group + 2; |
i | 395 | fs/ext2/ialloc.c | if (++i >= sb->u.ext2_sb.s_groups_count) |
i | 396 | fs/ext2/ialloc.c | i = 0; |
i | 397 | fs/ext2/ialloc.c | tmp = get_group_desc(sb,i); |
i | 410 | fs/ext2/ialloc.c | bitmap_nr = load_inode_bitmap (sb, i); |
i | 413 | fs/ext2/ialloc.c | printk ("block_group = %d\n", i); |
i | 426 | fs/ext2/ialloc.c | j += i * EXT2_INODES_PER_GROUP(sb) + 1; |
i | 428 | fs/ext2/ialloc.c | printk ("block_group = %d,inode=%d\n", i, j); |
i | 435 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_group_desc[i / EXT2_DESC_PER_BLOCK(sb)]->b_dirt = 1; |
i | 457 | fs/ext2/ialloc.c | inode->u.ext2_i.i_block_group = i; |
i | 476 | fs/ext2/ialloc.c | int i; |
i | 485 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 494 | fs/ext2/ialloc.c | bitmap_nr = load_inode_bitmap (sb, i); |
i | 501 | fs/ext2/ialloc.c | i, bitmap_nr); |
i | 504 | fs/ext2/ialloc.c | i, gdp[desc].bg_free_inodes_count, x); |
i | 40 | fs/ext2/inode.c | int i; |
i | 50 | fs/ext2/inode.c | for (i = 0; i < EXT2_MAX_GROUP_DESC; i++) |
i | 51 | fs/ext2/inode.c | if (sb->u.ext2_sb.s_group_desc[i]) |
i | 52 | fs/ext2/inode.c | brelse (sb->u.ext2_sb.s_group_desc[i]); |
i | 53 | fs/ext2/inode.c | for (i = 0; i < EXT2_MAX_GROUP_LOADED; i++) |
i | 54 | fs/ext2/inode.c | if (sb->u.ext2_sb.s_inode_bitmap[i]) |
i | 55 | fs/ext2/inode.c | brelse (sb->u.ext2_sb.s_inode_bitmap[i]); |
i | 56 | fs/ext2/inode.c | for (i = 0; i < EXT2_MAX_GROUP_LOADED; i++) |
i | 57 | fs/ext2/inode.c | if (sb->u.ext2_sb.s_block_bitmap[i]) |
i | 58 | fs/ext2/inode.c | brelse (sb->u.ext2_sb.s_block_bitmap[i]); |
i | 83 | fs/ext2/inode.c | int i; |
i | 98 | fs/ext2/inode.c | for (i = 0; i < groups_count; i++) { |
i | 99 | fs/ext2/inode.c | gdp[i].bg_block_bitmap = old_group_desc[i].bg_block_bitmap; |
i | 100 | fs/ext2/inode.c | gdp[i].bg_inode_bitmap = old_group_desc[i].bg_inode_bitmap; |
i | 101 | fs/ext2/inode.c | gdp[i].bg_inode_table = old_group_desc[i].bg_inode_table; |
i | 102 | fs/ext2/inode.c | gdp[i].bg_free_blocks_count = old_group_desc[i].bg_free_blocks_count; |
i | 103 | fs/ext2/inode.c | gdp[i].bg_free_inodes_count = old_group_desc[i].bg_free_inodes_count; |
i | 122 | fs/ext2/inode.c | int i, j; |
i | 215 | fs/ext2/inode.c | for (i = 0; i < EXT2_MAX_GROUP_DESC; i++) |
i | 216 | fs/ext2/inode.c | s->u.ext2_sb.s_group_desc[i] = NULL; |
i | 220 | fs/ext2/inode.c | for (i = 0; i < bh_count; i++) { |
i | 221 | fs/ext2/inode.c | s->u.ext2_sb.s_group_desc[i] = bread (dev, i + 2, s->s_blocksize); |
i | 222 | fs/ext2/inode.c | if (!s->u.ext2_sb.s_group_desc[i]) { |
i | 225 | fs/ext2/inode.c | for (j = 0; j < i; j++) |
i | 226 | fs/ext2/inode.c | brelse (s->u.ext2_sb.s_group_desc[i]); |
i | 232 | fs/ext2/inode.c | for (i = 0; i < EXT2_MAX_GROUP_LOADED; i++) { |
i | 233 | fs/ext2/inode.c | s->u.ext2_sb.s_inode_bitmap_number[i] = 0; |
i | 234 | fs/ext2/inode.c | s->u.ext2_sb.s_inode_bitmap[i] = NULL; |
i | 235 | fs/ext2/inode.c | s->u.ext2_sb.s_block_bitmap_number[i] = 0; |
i | 236 | fs/ext2/inode.c | s->u.ext2_sb.s_block_bitmap[i] = NULL; |
i | 246 | fs/ext2/inode.c | for (i = 0; i < EXT2_MAX_GROUP_DESC; i++) |
i | 247 | fs/ext2/inode.c | if (s->u.ext2_sb.s_group_desc[i]) |
i | 248 | fs/ext2/inode.c | brelse (s->u.ext2_sb.s_group_desc[i]); |
i | 261 | fs/ext2/inode.c | for (i = 0; i < bh_count; i++) |
i | 262 | fs/ext2/inode.c | s->u.ext2_sb.s_group_desc[i]->b_dirt = 1; |
i | 292 | fs/ext2/inode.c | int i, j; |
i | 305 | fs/ext2/inode.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 307 | fs/ext2/inode.c | i * sb->u.ext2_sb.s_blocks_per_group; |
i | 309 | fs/ext2/inode.c | printk ("ext2_write_super: Unable to read backup super block for group %d\n", i); |
i | 312 | fs/ext2/inode.c | printk ("ext2_write_super: writing super block backup in group %d at block %d\n", i, block); |
i | 321 | fs/ext2/inode.c | printk ("ext2_write_super: writing descriptors (block %d) backup in group %d at block %d\n", j, i, block); |
i | 324 | fs/ext2/inode.c | printk ("ext2_write_super: Unable to read backup descriptor for group %d\n", i); |
i | 372 | fs/ext2/inode.c | int i; |
i | 389 | fs/ext2/inode.c | i = inode_bmap (inode, EXT2_IND_BLOCK); |
i | 390 | fs/ext2/inode.c | if (!i) |
i | 392 | fs/ext2/inode.c | return block_bmap (bread (inode->i_dev, i, |
i | 397 | fs/ext2/inode.c | i = inode_bmap (inode, EXT2_DIND_BLOCK); |
i | 398 | fs/ext2/inode.c | if (!i) |
i | 400 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, |
i | 403 | fs/ext2/inode.c | if (!i) |
i | 405 | fs/ext2/inode.c | return block_bmap (bread (inode->i_dev, i, |
i | 410 | fs/ext2/inode.c | i = inode_bmap (inode, EXT2_TIND_BLOCK); |
i | 411 | fs/ext2/inode.c | if (!i) |
i | 413 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i | 415 | fs/ext2/inode.c | if (!i) |
i | 417 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i | 419 | fs/ext2/inode.c | if (!i) |
i | 421 | fs/ext2/inode.c | return block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i | 182 | fs/ext2/namei.c | int i; |
i | 260 | fs/ext2/namei.c | for (i = 0; i < namelen ; i++) |
i | 261 | fs/ext2/namei.c | de->name[i] = name [i]; |
i | 626 | fs/ext2/namei.c | int i, err; |
i | 658 | fs/ext2/namei.c | i = 0; |
i | 659 | fs/ext2/namei.c | while (i < inode->i_sb->s_blocksize - 1 && (c = *(symname ++))) |
i | 660 | fs/ext2/namei.c | link[i++] = c; |
i | 661 | fs/ext2/namei.c | link[i] = 0; |
i | 666 | fs/ext2/namei.c | inode->i_size = i; |
i | 96 | fs/ext2/symlink.c | int i, err; |
i | 115 | fs/ext2/symlink.c | i = 0; |
i | 116 | fs/ext2/symlink.c | while (i < buflen && (c = link[i])) { |
i | 117 | fs/ext2/symlink.c | i ++; |
i | 123 | fs/ext2/symlink.c | return i; |
i | 35 | fs/ext2/truncate.c | int i, tmp; |
i | 45 | fs/ext2/truncate.c | for (i = direct_block ; i < EXT2_NDIR_BLOCKS ; i++) { |
i | 46 | fs/ext2/truncate.c | p = inode->u.ext2_i.i_data + i; |
i | 51 | fs/ext2/truncate.c | if (i < direct_block) { |
i | 71 | fs/ext2/truncate.c | int i, tmp; |
i | 94 | fs/ext2/truncate.c | for (i = indirect_block ; i < addr_per_block ; i++) { |
i | 95 | fs/ext2/truncate.c | if (i < 0) |
i | 96 | fs/ext2/truncate.c | i = 0; |
i | 97 | fs/ext2/truncate.c | if (i < indirect_block) |
i | 99 | fs/ext2/truncate.c | ind = i + (unsigned long *) ind_bh->b_data; |
i | 105 | fs/ext2/truncate.c | if (i < indirect_block) { |
i | 122 | fs/ext2/truncate.c | for (i = 0; i < addr_per_block; i++) |
i | 125 | fs/ext2/truncate.c | if (i >= addr_per_block) |
i | 142 | fs/ext2/truncate.c | int i, tmp; |
i | 164 | fs/ext2/truncate.c | for (i = dindirect_block ; i < addr_per_block ; i ++) { |
i | 165 | fs/ext2/truncate.c | if (i < 0) |
i | 166 | fs/ext2/truncate.c | i = 0; |
i | 167 | fs/ext2/truncate.c | if (i < dindirect_block) |
i | 169 | fs/ext2/truncate.c | dind = i + (unsigned long *) dind_bh->b_data; |
i | 173 | fs/ext2/truncate.c | retry |= trunc_indirect (inode, offset + (i * addr_per_block), |
i | 178 | fs/ext2/truncate.c | for (i = 0; i < addr_per_block; i++) |
i | 181 | fs/ext2/truncate.c | if (i >= addr_per_block) |
i | 197 | fs/ext2/truncate.c | int i, tmp; |
i | 221 | fs/ext2/truncate.c | for (i = tindirect_block ; i < addr_per_block ; i ++) { |
i | 222 | fs/ext2/truncate.c | if (i < 0) |
i | 223 | fs/ext2/truncate.c | i = 0; |
i | 224 | fs/ext2/truncate.c | if (i < tindirect_block) |
i | 226 | fs/ext2/truncate.c | tind = i + (unsigned long *) tind_bh->b_data; |
i | 230 | fs/ext2/truncate.c | addr_per_block + (i + 1) * addr_per_block * addr_per_block, |
i | 235 | fs/ext2/truncate.c | for (i = 0; i < addr_per_block; i++) |
i | 238 | fs/ext2/truncate.c | if (i >= addr_per_block) |
i | 20 | fs/file_table.c | int i; |
i | 23 | fs/file_table.c | for (i = 0; i++ < NR_FILE; f++) |
i | 159 | fs/inode.c | int i; |
i | 163 | fs/inode.c | for(i=0 ; i<NR_INODE ; i++,inode++) { |
i | 233 | fs/inode.c | int i; |
i | 237 | fs/inode.c | for (i = NR_INODE; i ; i--) { |
i | 310 | fs/inode.c | int i; |
i | 312 | fs/inode.c | for (i = 0 ; i<NR_SUPER ; i++) |
i | 313 | fs/inode.c | if (super_block[i].s_covered==inode) |
i | 315 | fs/inode.c | if (i >= NR_SUPER) { |
i | 328 | fs/inode.c | if (!(inode = super_block[i].s_mounted)) |
i | 66 | fs/isofs/dir.c | unsigned int block,offset,i, j; |
i | 126 | fs/isofs/dir.c | i = 1; |
i | 138 | fs/isofs/dir.c | i = 2; |
i | 163 | fs/isofs/dir.c | i = dlen; |
i | 173 | fs/isofs/dir.c | i = dlen; |
i | 177 | fs/isofs/dir.c | for (i = 0; i < dlen && i < NAME_MAX; i++) { |
i | 178 | fs/isofs/dir.c | if (!(c = dpnt[i])) break; |
i | 180 | fs/isofs/dir.c | if (c == ';' && i == dlen-2 && de->name[i+1] == '1') |
i | 183 | fs/isofs/dir.c | dpnt[i] = c; |
i | 186 | fs/isofs/dir.c | for(j=0; j<i; j++) |
i | 190 | fs/isofs/dir.c | printk("Nchar: %d\n",i); |
i | 193 | fs/isofs/dir.c | if (i) { |
i | 199 | fs/isofs/dir.c | strncpy(cache.filename, dpnt, i); |
i | 210 | fs/isofs/dir.c | if (i) { |
i | 212 | fs/isofs/dir.c | put_fs_byte(0,i+dirent->d_name); |
i | 213 | fs/isofs/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 215 | fs/isofs/dir.c | return i; |
i | 91 | fs/isofs/file.c | int result, i; |
i | 99 | fs/isofs/file.c | for(i=0;i<(inode->i_size < ISOFS_BUFFER_SIZE ? inode->i_size : ISOFS_BUFFER_SIZE); |
i | 100 | fs/isofs/file.c | i++,pnt++){ |
i | 273 | fs/isofs/inode.c | int i; |
i | 308 | fs/isofs/inode.c | for(i=0; i< raw_inode->name_len[0]; i++) |
i | 309 | fs/isofs/inode.c | if(raw_inode->name[i]=='.' || raw_inode->name[i]==';') |
i | 311 | fs/isofs/inode.c | if(i == raw_inode->name_len[0] || raw_inode->name[i] == ';') |
i | 67 | fs/isofs/namei.c | unsigned int block,i, f_pos, offset, inode_number; |
i | 153 | fs/isofs/namei.c | for (i = 0; i < dlen; i++) { |
i | 154 | fs/isofs/namei.c | c = dpnt[i]; |
i | 156 | fs/isofs/namei.c | if (c == ';' && i == dlen-2 && dpnt[i+1] == '1') { |
i | 161 | fs/isofs/namei.c | de->name[i] = c; |
i | 82 | fs/isofs/symlink.c | int i; |
i | 97 | fs/isofs/symlink.c | i = 0; |
i | 99 | fs/isofs/symlink.c | while (i<buflen && (c = pnt[i])) { |
i | 100 | fs/isofs/symlink.c | i++; |
i | 104 | fs/isofs/symlink.c | return i; |
i | 76 | fs/isofs/util.c | int i; |
i | 78 | fs/isofs/util.c | for (i = 0; i < 4; i++) { |
i | 79 | fs/isofs/util.c | if (p[i] != p[7-i]) { |
i | 91 | fs/isofs/util.c | int crtime, days, i; |
i | 109 | fs/isofs/util.c | for (i = 1; i < month; i++) |
i | 110 | fs/isofs/util.c | days += monlen[i-1]; |
i | 43 | fs/minix/bitmap.c | unsigned i, j, end, sum = 0; |
i | 46 | fs/minix/bitmap.c | for (i=0; (i<numblocks) && numbits; i++) { |
i | 47 | fs/minix/bitmap.c | if (!(bh=map[i])) |
i | 102 | fs/minix/bitmap.c | int i,j; |
i | 110 | fs/minix/bitmap.c | for (i=0 ; i<8 ; i++) |
i | 111 | fs/minix/bitmap.c | if ((bh=sb->u.minix_sb.s_zmap[i]) != NULL) |
i | 114 | fs/minix/bitmap.c | if (i>=8 || !bh || j>=8192) |
i | 121 | fs/minix/bitmap.c | j += i*8192 + sb->u.minix_sb.s_firstdatazone-1; |
i | 183 | fs/minix/bitmap.c | int i,j; |
i | 191 | fs/minix/bitmap.c | for (i=0 ; i<8 ; i++) |
i | 192 | fs/minix/bitmap.c | if ((bh = inode->i_sb->u.minix_sb.s_imap[i]) != NULL) |
i | 205 | fs/minix/bitmap.c | j += i*8192; |
i | 60 | fs/minix/dir.c | unsigned int offset,i; |
i | 83 | fs/minix/dir.c | for (i = 0; i < info->s_namelen; i++) |
i | 84 | fs/minix/dir.c | if ((c = de->name[i]) != 0) |
i | 85 | fs/minix/dir.c | put_fs_byte(c,i+dirent->d_name); |
i | 88 | fs/minix/dir.c | if (i) { |
i | 90 | fs/minix/dir.c | put_fs_byte(0,i+dirent->d_name); |
i | 91 | fs/minix/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 93 | fs/minix/dir.c | return i; |
i | 29 | fs/minix/inode.c | int i; |
i | 33 | fs/minix/inode.c | for(i = 0 ; i < MINIX_I_MAP_SLOTS ; i++) |
i | 34 | fs/minix/inode.c | brelse(sb->u.minix_sb.s_imap[i]); |
i | 35 | fs/minix/inode.c | for(i = 0 ; i < MINIX_Z_MAP_SLOTS ; i++) |
i | 36 | fs/minix/inode.c | brelse(sb->u.minix_sb.s_zmap[i]); |
i | 56 | fs/minix/inode.c | int i,dev=s->s_dev,block; |
i | 92 | fs/minix/inode.c | for (i=0;i < MINIX_I_MAP_SLOTS;i++) |
i | 93 | fs/minix/inode.c | s->u.minix_sb.s_imap[i] = NULL; |
i | 94 | fs/minix/inode.c | for (i=0;i < MINIX_Z_MAP_SLOTS;i++) |
i | 95 | fs/minix/inode.c | s->u.minix_sb.s_zmap[i] = NULL; |
i | 97 | fs/minix/inode.c | for (i=0 ; i < s->u.minix_sb.s_imap_blocks ; i++) |
i | 98 | fs/minix/inode.c | if ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
i | 102 | fs/minix/inode.c | for (i=0 ; i < s->u.minix_sb.s_zmap_blocks ; i++) |
i | 103 | fs/minix/inode.c | if ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
i | 108 | fs/minix/inode.c | for(i=0;i<MINIX_I_MAP_SLOTS;i++) |
i | 109 | fs/minix/inode.c | brelse(s->u.minix_sb.s_imap[i]); |
i | 110 | fs/minix/inode.c | for(i=0;i<MINIX_Z_MAP_SLOTS;i++) |
i | 111 | fs/minix/inode.c | brelse(s->u.minix_sb.s_zmap[i]); |
i | 163 | fs/minix/inode.c | int i; |
i | 177 | fs/minix/inode.c | i = inode_bmap(inode,7); |
i | 178 | fs/minix/inode.c | if (!i) |
i | 180 | fs/minix/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
i | 183 | fs/minix/inode.c | i = inode_bmap(inode,8); |
i | 184 | fs/minix/inode.c | if (!i) |
i | 186 | fs/minix/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>9); |
i | 187 | fs/minix/inode.c | if (!i) |
i | 189 | fs/minix/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 511); |
i | 154 | fs/minix/namei.c | int i; |
i | 197 | fs/minix/namei.c | for (i = 0; i < info->s_namelen ; i++) |
i | 198 | fs/minix/namei.c | de->name[i] = (i < namelen) ? name[i] : 0; |
i | 539 | fs/minix/namei.c | int i; |
i | 556 | fs/minix/namei.c | i = 0; |
i | 557 | fs/minix/namei.c | while (i < 1023 && (c=*(symname++))) |
i | 558 | fs/minix/namei.c | name_block->b_data[i++] = c; |
i | 559 | fs/minix/namei.c | name_block->b_data[i] = 0; |
i | 562 | fs/minix/namei.c | inode->i_size = i; |
i | 573 | fs/minix/namei.c | i = minix_add_entry(dir, name, len, &bh, &de); |
i | 574 | fs/minix/namei.c | if (i) { |
i | 579 | fs/minix/namei.c | return i; |
i | 82 | fs/minix/symlink.c | int i; |
i | 95 | fs/minix/symlink.c | i = 0; |
i | 96 | fs/minix/symlink.c | while (i<buflen && (c = bh->b_data[i])) { |
i | 97 | fs/minix/symlink.c | i++; |
i | 101 | fs/minix/symlink.c | return i; |
i | 31 | fs/minix/truncate.c | int i, tmp; |
i | 36 | fs/minix/truncate.c | for (i = DIRECT_BLOCK ; i < 7 ; i++) { |
i | 37 | fs/minix/truncate.c | p = i + inode->u.minix_i.i_data; |
i | 41 | fs/minix/truncate.c | if (i < DIRECT_BLOCK) { |
i | 61 | fs/minix/truncate.c | int i, tmp; |
i | 80 | fs/minix/truncate.c | for (i = INDIRECT_BLOCK ; i < 512 ; i++) { |
i | 81 | fs/minix/truncate.c | if (i < 0) |
i | 82 | fs/minix/truncate.c | i = 0; |
i | 83 | fs/minix/truncate.c | if (i < INDIRECT_BLOCK) |
i | 85 | fs/minix/truncate.c | ind = i+(unsigned short *) ind_bh->b_data; |
i | 90 | fs/minix/truncate.c | if (i < INDIRECT_BLOCK) { |
i | 105 | fs/minix/truncate.c | for (i = 0; i < 512; i++) |
i | 108 | fs/minix/truncate.c | if (i >= 512) |
i | 122 | fs/minix/truncate.c | int i, tmp; |
i | 141 | fs/minix/truncate.c | for (i = DINDIRECT_BLOCK ; i < 512 ; i ++) { |
i | 142 | fs/minix/truncate.c | if (i < 0) |
i | 143 | fs/minix/truncate.c | i = 0; |
i | 144 | fs/minix/truncate.c | if (i < DINDIRECT_BLOCK) |
i | 146 | fs/minix/truncate.c | dind = i+(unsigned short *) dind_bh->b_data; |
i | 147 | fs/minix/truncate.c | retry |= trunc_indirect(inode,7+512+(i<<9),dind); |
i | 151 | fs/minix/truncate.c | for (i = 0; i < 512; i++) |
i | 154 | fs/minix/truncate.c | if (i >= 512) |
i | 60 | fs/msdos/dir.c | int ino,i,i2,last; |
i | 71 | fs/msdos/dir.c | for (i = 0; *walk; walk++) |
i | 72 | fs/msdos/dir.c | put_fs_byte(*walk,dirent->d_name+i++); |
i | 74 | fs/msdos/dir.c | put_fs_byte(0,dirent->d_name+i); |
i | 75 | fs/msdos/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 76 | fs/msdos/dir.c | return i; |
i | 83 | fs/msdos/dir.c | for (i = last = 0; i < 8; i++) { |
i | 84 | fs/msdos/dir.c | if (!(c = de->name[i])) break; |
i | 86 | fs/msdos/dir.c | if (c != ' ') last = i+1; |
i | 87 | fs/msdos/dir.c | put_fs_byte(c,i+dirent->d_name); |
i | 89 | fs/msdos/dir.c | i = last; |
i | 90 | fs/msdos/dir.c | put_fs_byte('.',i+dirent->d_name); |
i | 91 | fs/msdos/dir.c | i++; |
i | 95 | fs/msdos/dir.c | if (c != ' ') last = i+1; |
i | 96 | fs/msdos/dir.c | put_fs_byte(c,i+dirent->d_name); |
i | 97 | fs/msdos/dir.c | i++; |
i | 99 | fs/msdos/dir.c | if ((i = last) != 0) { |
i | 105 | fs/msdos/dir.c | put_fs_byte(0,i+dirent->d_name); |
i | 106 | fs/msdos/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 108 | fs/msdos/dir.c | return i; |
i | 32 | fs/namei.c | unsigned long i, page; |
i | 35 | fs/namei.c | i = (unsigned long) filename; |
i | 36 | fs/namei.c | if (!i || i >= TASK_SIZE) |
i | 38 | fs/namei.c | i = TASK_SIZE - i; |
i | 40 | fs/namei.c | if (i > PAGE_SIZE) { |
i | 41 | fs/namei.c | i = PAGE_SIZE; |
i | 51 | fs/namei.c | while (--i) { |
i | 282 | fs/namei.c | int namelen,error,i; |
i | 304 | fs/namei.c | for (i = 0; i < 5; i++) { /* races... */ |
i | 371 | fs/namei.c | for (i=0; i < (*p)->numlibraries; i++) |
i | 372 | fs/namei.c | if (inode == (*p)->libraries[i].library) { |
i | 94 | fs/nfs/dir.c | int i; |
i | 105 | fs/nfs/dir.c | i = sizeof (struct nfs_entry)*NFS_READDIR_CACHE_SIZE; |
i | 106 | fs/nfs/dir.c | c_entry = (struct nfs_entry *) kmalloc(i, GFP_KERNEL); |
i | 107 | fs/nfs/dir.c | for (i = 0; i < NFS_READDIR_CACHE_SIZE; i++) { |
i | 108 | fs/nfs/dir.c | c_entry[i].name = (char *) kmalloc(NFS_MAXNAMLEN + 1, |
i | 117 | fs/nfs/dir.c | for (i = 0; i < c_size; i++) { |
i | 118 | fs/nfs/dir.c | if (filp->f_pos == c_entry[i].cookie) { |
i | 119 | fs/nfs/dir.c | if (i == c_size - 1) { |
i | 120 | fs/nfs/dir.c | if (c_entry[i].eof) |
i | 124 | fs/nfs/dir.c | entry = c_entry + i + 1; |
i | 150 | fs/nfs/dir.c | i = strlen(entry->name); |
i | 151 | fs/nfs/dir.c | memcpy_tofs(dirent->d_name, entry->name, i + 1); |
i | 153 | fs/nfs/dir.c | put_fs_word(i, &dirent->d_reclen); |
i | 155 | fs/nfs/dir.c | return i; |
i | 186 | fs/nfs/dir.c | int i; |
i | 188 | fs/nfs/dir.c | for (i = 0; i < NFS_LOOKUP_CACHE_SIZE; i++) { |
i | 189 | fs/nfs/dir.c | entry = nfs_lookup_cache + i; |
i | 252 | fs/nfs/dir.c | int i; |
i | 264 | fs/nfs/dir.c | for (i = 0; i < NFS_LOOKUP_CACHE_SIZE; i++) { |
i | 265 | fs/nfs/dir.c | entry = nfs_lookup_cache + i; |
i | 277 | fs/nfs/dir.c | int i; |
i | 279 | fs/nfs/dir.c | for (i = 0; i < NFS_LOOKUP_CACHE_SIZE; i++) { |
i | 280 | fs/nfs/dir.c | entry = nfs_lookup_cache + i; |
i | 58 | fs/nfs/file.c | int i; |
i | 80 | fs/nfs/file.c | for (i = 0; i < count; i += n) { |
i | 81 | fs/nfs/file.c | hunk = count - i; |
i | 94 | fs/nfs/file.c | i += result; |
i | 101 | fs/nfs/file.c | return i; |
i | 109 | fs/nfs/file.c | int i; |
i | 131 | fs/nfs/file.c | for (i = 0; i < count; i += n) { |
i | 132 | fs/nfs/file.c | hunk = count - i; |
i | 145 | fs/nfs/file.c | i += hunk; |
i | 152 | fs/nfs/file.c | return i; |
i | 544 | fs/nfs/proc.c | int i = 0; /* = 0 is for gcc */ |
i | 562 | fs/nfs/proc.c | for (i = 0; i < count && *p++; i++) { |
i | 571 | fs/nfs/proc.c | eof = (i == count && !*p++ && *p++) |
i | 572 | fs/nfs/proc.c | || (i < count && *p++); |
i | 573 | fs/nfs/proc.c | if (eof && i) |
i | 575 | fs/nfs/proc.c | PRINTK("NFS reply readdir %d %s\n", i, |
i | 582 | fs/nfs/proc.c | return (status == NFS_OK) ? i : -nfs_stat_to_errno(status); |
i | 618 | fs/nfs/proc.c | int i; |
i | 639 | fs/nfs/proc.c | for (i = 0; i < 16 && i < NGROUPS && current->groups[i] != NOGROUP; i++) |
i | 640 | fs/nfs/proc.c | *p++ = htonl(current->groups[i]); |
i | 641 | fs/nfs/proc.c | *p2 = htonl(i); |
i | 718 | fs/nfs/proc.c | int i; |
i | 720 | fs/nfs/proc.c | for (i = 0; nfs_errtbl[i].stat != -1; i++) { |
i | 721 | fs/nfs/proc.c | if (nfs_errtbl[i].stat == stat) |
i | 722 | fs/nfs/proc.c | return nfs_errtbl[i].errno; |
i | 725 | fs/nfs/proc.c | return nfs_errtbl[i].errno; |
i | 85 | fs/nfs/symlink.c | int i; |
i | 103 | fs/nfs/symlink.c | for (i = 0; i < buflen && (c = res[i]); i++) |
i | 106 | fs/nfs/symlink.c | return i; |
i | 220 | fs/pipe.c | int i,j; |
i | 233 | fs/pipe.c | for(i=0;j<2 && i<NR_OPEN;i++) |
i | 234 | fs/pipe.c | if (!current->filp[i]) { |
i | 235 | fs/pipe.c | current->filp[ fd[j]=i ] = f[j]; |
i | 60 | fs/proc/array.c | struct sysinfo i; |
i | 62 | fs/proc/array.c | si_meminfo(&i); |
i | 63 | fs/proc/array.c | si_swapinfo(&i); |
i | 67 | fs/proc/array.c | i.totalram, i.totalram-i.freeram, i.freeram, i.sharedram, i.bufferram, |
i | 68 | fs/proc/array.c | i.totalswap, i.totalswap-i.freeswap, i.freeswap); |
i | 184 | fs/proc/array.c | int i,tty_pgrp; |
i | 194 | fs/proc/array.c | for(i=0; i<32; ++i) { |
i | 195 | fs/proc/array.c | switch((int) (*p)->sigaction[i].sa_handler) { |
i | 251 | fs/proc/array.c | int i, tpag; |
i | 260 | fs/proc/array.c | for (i = 0; i < 0x300; ++i) { |
i | 261 | fs/proc/array.c | if ((ptbl = pagedir[i]) == 0) { |
i | 275 | fs/proc/array.c | if (i >= 15 && i < 0x2f0) { |
i | 94 | fs/proc/base.c | int i; |
i | 105 | fs/proc/base.c | i = NR_BASE_DIRENTRY; |
i | 106 | fs/proc/base.c | while (i-- > 0 && !proc_match(len,name,base_dir+i)) |
i | 108 | fs/proc/base.c | if (i < 0) { |
i | 112 | fs/proc/base.c | if (base_dir[i].low_ino == 1) |
i | 115 | fs/proc/base.c | ino = (pid << 16) + base_dir[i].low_ino; |
i | 116 | fs/proc/base.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 117 | fs/proc/base.c | if (task[i] && task[i]->pid == pid) |
i | 119 | fs/proc/base.c | if (!pid || i >= NR_TASKS) { |
i | 136 | fs/proc/base.c | int i,j; |
i | 142 | fs/proc/base.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 143 | fs/proc/base.c | if (task[i] && task[i]->pid == pid) |
i | 145 | fs/proc/base.c | if (!pid || i >= NR_TASKS) |
i | 150 | fs/proc/base.c | i = de->namelen; |
i | 155 | fs/proc/base.c | put_fs_word(i,&dirent->d_reclen); |
i | 156 | fs/proc/base.c | put_fs_byte(0,i+dirent->d_name); |
i | 157 | fs/proc/base.c | j = i; |
i | 158 | fs/proc/base.c | while (i--) |
i | 159 | fs/proc/base.c | put_fs_byte(de->name[i], i+dirent->d_name); |
i | 59 | fs/proc/fd.c | int i; |
i | 102 | fs/proc/fd.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 103 | fs/proc/fd.c | if ((p = task[i]) && p->pid == pid) |
i | 105 | fs/proc/fd.c | if (!pid || i >= NR_TASKS) |
i | 126 | fs/proc/fd.c | int i,j; |
i | 140 | fs/proc/fd.c | i = j = fd+1; |
i | 146 | fs/proc/fd.c | put_fs_word(i, &dirent->d_reclen); |
i | 147 | fs/proc/fd.c | put_fs_byte(0, i+dirent->d_name); |
i | 148 | fs/proc/fd.c | while (i--) |
i | 149 | fs/proc/fd.c | put_fs_byte('.', i+dirent->d_name); |
i | 153 | fs/proc/fd.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 154 | fs/proc/fd.c | if ((p = task[i]) && p->pid == pid) |
i | 156 | fs/proc/fd.c | if (i >= NR_TASKS) |
i | 167 | fs/proc/fd.c | i = 1; |
i | 170 | fs/proc/fd.c | i++; |
i | 172 | fs/proc/fd.c | j = i; |
i | 178 | fs/proc/fd.c | put_fs_word(i, &dirent->d_reclen); |
i | 179 | fs/proc/fd.c | put_fs_byte(0, i+dirent->d_name); |
i | 180 | fs/proc/fd.c | while (i--) { |
i | 181 | fs/proc/fd.c | put_fs_byte('0'+(fd % 10), i+dirent->d_name); |
i | 76 | fs/proc/inode.c | int i; |
i | 89 | fs/proc/inode.c | for (i = 0; i < NR_TASKS ; i++) |
i | 90 | fs/proc/inode.c | if ((p = task[i]) && (p->pid == pid)) |
i | 92 | fs/proc/inode.c | if (!p || i >= NR_TASKS) |
i | 97 | fs/proc/inode.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 98 | fs/proc/inode.c | if (task[i]) |
i | 46 | fs/proc/link.c | int i; |
i | 57 | fs/proc/link.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 58 | fs/proc/link.c | if ((p = task[i]) && p->pid == pid) |
i | 60 | fs/proc/link.c | if (i >= NR_TASKS) |
i | 95 | fs/proc/link.c | int i; |
i | 99 | fs/proc/link.c | i = proc_follow_link(NULL, inode, 0, 0, &inode); |
i | 100 | fs/proc/link.c | if (i) |
i | 101 | fs/proc/link.c | return i; |
i | 107 | fs/proc/link.c | i = sprintf(buf,"[%04x]:%u", dev, ino); |
i | 108 | fs/proc/link.c | if (buflen > i) |
i | 109 | fs/proc/link.c | buflen = i; |
i | 110 | fs/proc/link.c | i = 0; |
i | 111 | fs/proc/link.c | while (i < buflen) |
i | 112 | fs/proc/link.c | put_fs_byte(buf[i++],buffer++); |
i | 113 | fs/proc/link.c | return i; |
i | 28 | fs/proc/mem.c | int i; |
i | 35 | fs/proc/mem.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 36 | fs/proc/mem.c | if (task[i] && task[i]->pid == pid) { |
i | 37 | fs/proc/mem.c | cr3 = task[i]->tss.cr3; |
i | 58 | fs/proc/mem.c | i = 4096-(addr & 0xfff); |
i | 59 | fs/proc/mem.c | if (i > count) |
i | 60 | fs/proc/mem.c | i = count; |
i | 61 | fs/proc/mem.c | memcpy_tofs(tmp,(void *) page,i); |
i | 62 | fs/proc/mem.c | addr += i; |
i | 63 | fs/proc/mem.c | tmp += i; |
i | 64 | fs/proc/mem.c | count -= i; |
i | 77 | fs/proc/mem.c | int i; |
i | 85 | fs/proc/mem.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 86 | fs/proc/mem.c | if (task[i] && task[i]->pid == pid) { |
i | 87 | fs/proc/mem.c | cr3 = task[i]->tss.cr3; |
i | 111 | fs/proc/mem.c | i = 4096-(addr & 0xfff); |
i | 112 | fs/proc/mem.c | if (i > count) |
i | 113 | fs/proc/mem.c | i = count; |
i | 114 | fs/proc/mem.c | memcpy_fromfs((void *) page,tmp,i); |
i | 115 | fs/proc/mem.c | addr += i; |
i | 116 | fs/proc/mem.c | tmp += i; |
i | 117 | fs/proc/mem.c | count -= i; |
i | 70 | fs/proc/root.c | int i, ino; |
i | 79 | fs/proc/root.c | i = NR_ROOT_DIRENTRY; |
i | 80 | fs/proc/root.c | while (i-- > 0 && !proc_match(len,name,root_dir+i)) |
i | 82 | fs/proc/root.c | if (i >= 0) { |
i | 83 | fs/proc/root.c | ino = root_dir[i].low_ino; |
i | 106 | fs/proc/root.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 107 | fs/proc/root.c | if (task[i] && task[i]->pid == pid) |
i | 109 | fs/proc/root.c | if (!pid || i >= NR_TASKS) { |
i | 128 | fs/proc/root.c | int i,j; |
i | 138 | fs/proc/root.c | i = de->namelen; |
i | 140 | fs/proc/root.c | put_fs_word(i,&dirent->d_reclen); |
i | 141 | fs/proc/root.c | put_fs_byte(0,i+dirent->d_name); |
i | 142 | fs/proc/root.c | j = i; |
i | 143 | fs/proc/root.c | while (i--) |
i | 144 | fs/proc/root.c | put_fs_byte(de->name[i], i+dirent->d_name); |
i | 157 | fs/proc/root.c | i = 1; |
i | 160 | fs/proc/root.c | i++; |
i | 162 | fs/proc/root.c | j = i; |
i | 164 | fs/proc/root.c | put_fs_word(i, &dirent->d_reclen); |
i | 165 | fs/proc/root.c | put_fs_byte(0, i+dirent->d_name); |
i | 166 | fs/proc/root.c | while (i--) { |
i | 167 | fs/proc/root.c | put_fs_byte('0'+(pid % 10), i+dirent->d_name); |
i | 85 | fs/select.c | int i,j; |
i | 89 | fs/select.c | i = j << 5; |
i | 90 | fs/select.c | if (i >= n) |
i | 93 | fs/select.c | for ( ; set ; i++,set >>= 1) { |
i | 94 | fs/select.c | if (i >= n) |
i | 98 | fs/select.c | if (!current->filp[i]) |
i | 100 | fs/select.c | if (!current->filp[i]->f_inode) |
i | 102 | fs/select.c | max = i; |
i | 119 | fs/select.c | for (i = 0 ; i < n ; i++) { |
i | 120 | fs/select.c | if (FD_ISSET(i,in) && check(SEL_IN,wait,current->filp[i])) { |
i | 121 | fs/select.c | FD_SET(i, res_in); |
i | 125 | fs/select.c | if (FD_ISSET(i,out) && check(SEL_OUT,wait,current->filp[i])) { |
i | 126 | fs/select.c | FD_SET(i, res_out); |
i | 130 | fs/select.c | if (FD_ISSET(i,ex) && check(SEL_EX,wait,current->filp[i])) { |
i | 131 | fs/select.c | FD_SET(i, res_ex); |
i | 199 | fs/select.c | int i; |
i | 207 | fs/select.c | i = verify_area(VERIFY_READ, buffer, 20); |
i | 208 | fs/select.c | if (i) |
i | 209 | fs/select.c | return i; |
i | 219 | fs/select.c | if ((i = get_fd_set(n, inp, &in)) || |
i | 220 | fs/select.c | (i = get_fd_set(n, outp, &out)) || |
i | 221 | fs/select.c | (i = get_fd_set(n, exp, &ex))) return i; |
i | 224 | fs/select.c | i = verify_area(VERIFY_WRITE, tvp, sizeof(*tvp)); |
i | 225 | fs/select.c | if (i) |
i | 226 | fs/select.c | return i; |
i | 234 | fs/select.c | i = do_select(n, &in, &out, &ex, &res_in, &res_out, &res_ex); |
i | 246 | fs/select.c | if (i < 0) |
i | 247 | fs/select.c | return i; |
i | 248 | fs/select.c | if (!i && (current->signal & ~current->blocked)) |
i | 253 | fs/select.c | return i; |
i | 170 | fs/super.c | int i; |
i | 177 | fs/super.c | for (i = 0; i < 256; i++) { |
i | 178 | fs/super.c | if (!unnamed_dev_in_use[i]) { |
i | 179 | fs/super.c | unnamed_dev_in_use[i] = 1; |
i | 180 | fs/super.c | return (UNNAMED_MAJOR << 8) | i; |
i | 372 | fs/super.c | int i; |
i | 382 | fs/super.c | for (i = 0 ; i < 100 ; i++) { |
i | 385 | fs/super.c | if (!(tmp[i] = get_fs_byte(type++))) |
i | 432 | fs/super.c | i = TASK_SIZE - (unsigned long) data; |
i | 433 | fs/super.c | if (i < 0 || i > 4095) |
i | 434 | fs/super.c | i = 4095; |
i | 435 | fs/super.c | memcpy_fromfs((void *) page,data,i); |
i | 40 | fs/xiafs/bitmap.c | int end, i, j, tmp; |
i | 48 | fs/xiafs/bitmap.c | i=start_bit >> 5; |
i | 49 | fs/xiafs/bitmap.c | if ( (tmp=(~bmap[i]) & (0xffffffff << (start_bit & 31))) ) |
i | 51 | fs/xiafs/bitmap.c | while (++i < end) |
i | 52 | fs/xiafs/bitmap.c | if (~bmap[i]) { |
i | 53 | fs/xiafs/bitmap.c | tmp=~bmap[i]; |
i | 56 | fs/xiafs/bitmap.c | if ( !(tmp=~bmap[i] & ((1 << (end_bit & 31)) -1)) ) |
i | 63 | fs/xiafs/bitmap.c | "=q" (res):"r" (j),"m" (bmap[i])); |
i | 65 | fs/xiafs/bitmap.c | start_bit=j + (i << 5) + 1; |
i | 69 | fs/xiafs/bitmap.c | return j + (i << 5); |
i | 74 | fs/xiafs/bitmap.c | register int i; |
i | 78 | fs/xiafs/bitmap.c | for (i= bh->b_size >> 2; i-- > 0; ) |
i | 86 | fs/xiafs/bitmap.c | int i; |
i | 90 | fs/xiafs/bitmap.c | for (i=pos; i > 0; i--) { |
i | 91 | fs/xiafs/bitmap.c | bmap[i]=bmap[i-1]; |
i | 92 | fs/xiafs/bitmap.c | bznr[i]=bznr[i-1]; |
i | 119 | fs/xiafs/bitmap.c | int z_nr, i; |
i | 129 | fs/xiafs/bitmap.c | for (i=0; i < slots; i++) |
i | 130 | fs/xiafs/bitmap.c | if (bznr[i]==z_nr) |
i | 132 | fs/xiafs/bitmap.c | if (i < slots) { /* cache hit */ |
i | 134 | fs/xiafs/bitmap.c | *not_que=i; |
i | 135 | fs/xiafs/bitmap.c | return bmap_buf[i]; |
i | 137 | fs/xiafs/bitmap.c | que(bmap_buf, bznr, i); |
i | 342 | fs/xiafs/bitmap.c | int i, tmp; |
i | 346 | fs/xiafs/bitmap.c | for (i=bh->b_size; i-- > 0; ) { |
i | 347 | fs/xiafs/bitmap.c | tmp=bh->b_data[i]; |
i | 356 | fs/xiafs/bitmap.c | int izones, i, not_que; |
i | 361 | fs/xiafs/bitmap.c | for (i=0; i < izones; i++) { |
i | 362 | fs/xiafs/bitmap.c | bh=get_imap_zone(sb, i << XIAFS_BITS_PER_Z_BITS(sb), ¬_que); |
i | 368 | fs/xiafs/bitmap.c | i=izones << XIAFS_BITS_PER_Z_BITS(sb); |
i | 369 | fs/xiafs/bitmap.c | return i - sum; |
i | 375 | fs/xiafs/bitmap.c | int zzones, i, not_que; |
i | 380 | fs/xiafs/bitmap.c | for (i=0; i < zzones; i++) { |
i | 381 | fs/xiafs/bitmap.c | bh=get_zmap_zone(sb, i << XIAFS_BITS_PER_Z_BITS(sb), ¬_que); |
i | 387 | fs/xiafs/bitmap.c | i=zzones << XIAFS_BITS_PER_Z_BITS(sb); |
i | 388 | fs/xiafs/bitmap.c | return i - sum; |
i | 68 | fs/xiafs/dir.c | u_int offset, i; |
i | 98 | fs/xiafs/dir.c | for (i = 0; i < de->d_name_len ; i++) |
i | 99 | fs/xiafs/dir.c | put_fs_byte(de->d_name[i],i+dirent->d_name); |
i | 100 | fs/xiafs/dir.c | put_fs_byte(0,i+dirent->d_name); |
i | 102 | fs/xiafs/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 108 | fs/xiafs/dir.c | return i; |
i | 37 | fs/xiafs/inode.c | int i; |
i | 41 | fs/xiafs/inode.c | for(i = 0 ; i < _XIAFS_IMAP_SLOTS ; i++) |
i | 42 | fs/xiafs/inode.c | brelse(sb->u.xiafs_sb.s_imap_buf[i]); |
i | 43 | fs/xiafs/inode.c | for(i = 0 ; i < _XIAFS_ZMAP_SLOTS ; i++) |
i | 44 | fs/xiafs/inode.c | brelse(sb->u.xiafs_sb.s_zmap_buf[i]); |
i | 63 | fs/xiafs/inode.c | int i, z, dev; |
i | 94 | fs/xiafs/inode.c | for (i=0;i < _XIAFS_IMAP_SLOTS;i++) { |
i | 95 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_buf[i] = NULL; |
i | 96 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_iznr[i] = -1; |
i | 98 | fs/xiafs/inode.c | for (i=0;i < _XIAFS_ZMAP_SLOTS;i++) { |
i | 99 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_buf[i] = NULL; |
i | 100 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_zznr[i] = -1; |
i | 107 | fs/xiafs/inode.c | for (i=0 ; i < s->u.xiafs_sb.s_imap_zones ; i++) { |
i | 108 | fs/xiafs/inode.c | if (!(s->u.xiafs_sb.s_imap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s)))) |
i | 110 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_iznr[i]=i; |
i | 117 | fs/xiafs/inode.c | for (i=0 ; i < s->u.xiafs_sb.s_zmap_zones ; i++) { |
i | 118 | fs/xiafs/inode.c | if (!(s->u.xiafs_sb.s_zmap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s)))) |
i | 120 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_zznr[i]=i; |
i | 134 | fs/xiafs/inode.c | for(i=0; i < _XIAFS_IMAP_SLOTS; i++) |
i | 135 | fs/xiafs/inode.c | brelse(s->u.xiafs_sb.s_imap_buf[i]); |
i | 136 | fs/xiafs/inode.c | for(i=0; i < _XIAFS_ZMAP_SLOTS; i++) |
i | 137 | fs/xiafs/inode.c | brelse(s->u.xiafs_sb.s_zmap_buf[i]); |
i | 173 | fs/xiafs/inode.c | int i; |
i | 191 | fs/xiafs/inode.c | i = inode->u.xiafs_i.i_ind_zone; |
i | 192 | fs/xiafs/inode.c | if (i) |
i | 193 | fs/xiafs/inode.c | i = zone_bmap(bread(inode->i_dev, i, XIAFS_ZSIZE(inode->i_sb)), zone); |
i | 194 | fs/xiafs/inode.c | return i; |
i | 197 | fs/xiafs/inode.c | i = inode->u.xiafs_i.i_dind_zone; |
i | 198 | fs/xiafs/inode.c | if (i) |
i | 199 | fs/xiafs/inode.c | i = zone_bmap(bread(inode->i_dev, i, XIAFS_ZSIZE(inode->i_sb)), |
i | 201 | fs/xiafs/inode.c | if (i) |
i | 202 | fs/xiafs/inode.c | i= zone_bmap(bread(inode->i_dev,i, XIAFS_ZSIZE(inode->i_sb)), |
i | 204 | fs/xiafs/inode.c | return i; |
i | 33 | fs/xiafs/namei.c | int i; |
i | 42 | fs/xiafs/namei.c | for (i=0; i < len; i++) |
i | 43 | fs/xiafs/namei.c | if (*name++ != dep->d_name[i]) |
i | 60 | fs/xiafs/namei.c | int i, zones, pos; |
i | 75 | fs/xiafs/namei.c | for (i=0; i < zones; i++ ) { |
i | 76 | fs/xiafs/namei.c | bh = xiafs_bread(inode, i, 0); |
i | 80 | fs/xiafs/namei.c | if (!i && (dep->d_rec_len != 12 || !dep->d_ino || |
i | 157 | fs/xiafs/namei.c | int i, pos, offset; |
i | 206 | fs/xiafs/namei.c | i=RNDUP4(de->d_name_len)+8; |
i | 208 | fs/xiafs/namei.c | de=(struct xiafs_direct *)(i+(u_char *)de_pre); |
i | 210 | fs/xiafs/namei.c | de->d_rec_len=de_pre->d_rec_len-i; |
i | 211 | fs/xiafs/namei.c | de_pre->d_rec_len=i; |
i | 402 | fs/xiafs/namei.c | int i, zones, offset; |
i | 412 | fs/xiafs/namei.c | for (i=0; i < zones; i++) { |
i | 413 | fs/xiafs/namei.c | bh = xiafs_bread(inode, i, 0); |
i | 414 | fs/xiafs/namei.c | if (!i) { |
i | 584 | fs/xiafs/namei.c | int i; |
i | 607 | fs/xiafs/namei.c | for (i = 0; i < BLOCK_SIZE-1 && (c=*symname++); i++) |
i | 608 | fs/xiafs/namei.c | name_block->b_data[i] = c; |
i | 609 | fs/xiafs/namei.c | name_block->b_data[i] = 0; |
i | 612 | fs/xiafs/namei.c | inode->i_size = i; |
i | 50 | fs/xiafs/symlink.c | int i; |
i | 67 | fs/xiafs/symlink.c | for (i=0; i < buflen && (c=bh->b_data[i]); i++) |
i | 69 | fs/xiafs/symlink.c | if (i < buflen-1) |
i | 72 | fs/xiafs/symlink.c | return i; |
i | 43 | fs/xiafs/truncate.c | int i, tmp; |
i | 47 | fs/xiafs/truncate.c | for (i = DT_ZONE ; i < 8 ; i++) { |
i | 48 | fs/xiafs/truncate.c | if (i < DT_ZONE) |
i | 50 | fs/xiafs/truncate.c | lp=i + inode->u.xiafs_i.i_zone; |
i | 54 | fs/xiafs/truncate.c | if (i < DT_ZONE) { |
i | 77 | fs/xiafs/truncate.c | int i, tmp; |
i | 93 | fs/xiafs/truncate.c | for (i = INDT_ZONE<0?0:INDT_ZONE; i < XIAFS_ADDRS_PER_Z(inode->i_sb); i++) { |
i | 94 | fs/xiafs/truncate.c | if (i < INDT_ZONE) |
i | 96 | fs/xiafs/truncate.c | indp = i+(u_long *) ind_bh->b_data; |
i | 100 | fs/xiafs/truncate.c | if (i < INDT_ZONE) { |
i | 115 | fs/xiafs/truncate.c | for (i = 0; i < XIAFS_ADDRS_PER_Z(inode->i_sb) && !(*indp++); i++) ; |
i | 116 | fs/xiafs/truncate.c | if (i >= XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i | 136 | fs/xiafs/truncate.c | int i, tmp; |
i | 154 | fs/xiafs/truncate.c | for (i=DINDT_ZONE<0?0:DINDT_ZONE ; i < XIAFS_ADDRS_PER_Z(inode->i_sb) ; i ++) { |
i | 155 | fs/xiafs/truncate.c | if (i < DINDT_ZONE) |
i | 157 | fs/xiafs/truncate.c | dindp = i+(u_long *) dind_bh->b_data; |
i | 159 | fs/xiafs/truncate.c | 8+((1+i)<<XIAFS_ADDRS_PER_Z_BITS(inode->i_sb)), |
i | 164 | fs/xiafs/truncate.c | for (i = 0; i < XIAFS_ADDRS_PER_Z(inode->i_sb) && !(*dindp++); i++); |
i | 165 | fs/xiafs/truncate.c | if (i >= XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i | 44 | include/linux/msdos_fs.h | #define MSDOS_I(i) (&((i)->u.msdos_i)) |
i | 115 | init/main.c | int i; |
i | 117 | init/main.c | for (i = 0 ; i < 1000000 ; i++) |
i | 338 | init/main.c | int i; |
i | 341 | init/main.c | write(1,printbuf,i=vsprintf(printbuf, fmt, args)); |
i | 343 | init/main.c | return i; |
i | 348 | init/main.c | int pid,i; |
i | 369 | init/main.c | while (pid != wait(&i)) |
i | 385 | init/main.c | if (pid == wait(&i)) |
i | 387 | init/main.c | printf("\n\rchild %d died with code %04x\n\r",pid,i); |
i | 62 | kernel/FPU-emu/errors.c | int i; |
i | 117 | kernel/FPU-emu/errors.c | for ( i = 0; i < 8; i++ ) |
i | 119 | kernel/FPU-emu/errors.c | FPU_REG *r = &st(i); |
i | 127 | kernel/FPU-emu/errors.c | i, r->sign ? '-' : '+'); |
i | 133 | kernel/FPU-emu/errors.c | printk("st(%d) %c .%04x %04x %04x %04x e%+-6d ", i, |
i | 223 | kernel/FPU-emu/errors.c | int i, int_type; |
i | 251 | kernel/FPU-emu/errors.c | for (i=0; exception_names[i].type; i++) |
i | 252 | kernel/FPU-emu/errors.c | if (exception_names[i].type == n) |
i | 255 | kernel/FPU-emu/errors.c | if (exception_names[i].type) |
i | 258 | kernel/FPU-emu/errors.c | printk("FP Exception: %s!\n", exception_names[i].name); |
i | 61 | kernel/FPU-emu/fpu_emu.h | #define NOT_EMPTY(i) (st(i).tag != TW_Empty) |
i | 1010 | kernel/FPU-emu/reg_ld_str.c | int i; |
i | 1054 | kernel/FPU-emu/reg_ld_str.c | for ( i = 0; i < 9; i++) |
i | 1059 | kernel/FPU-emu/reg_ld_str.c | put_fs_byte(b,(unsigned char *) d+i); |
i | 1138 | kernel/FPU-emu/reg_ld_str.c | int i; |
i | 1151 | kernel/FPU-emu/reg_ld_str.c | for ( i = 7; i >= 0; i-- ) |
i | 1159 | kernel/FPU-emu/reg_ld_str.c | regs[i].tag = TW_Valid; |
i | 1162 | kernel/FPU-emu/reg_ld_str.c | regs[i].tag = TW_Zero; |
i | 1165 | kernel/FPU-emu/reg_ld_str.c | regs[i].tag = TW_NaN; |
i | 1168 | kernel/FPU-emu/reg_ld_str.c | regs[i].tag = TW_Empty; |
i | 1182 | kernel/FPU-emu/reg_ld_str.c | int i; |
i | 1186 | kernel/FPU-emu/reg_ld_str.c | for ( i = 0; i < 8; i++ ) |
i | 1189 | kernel/FPU-emu/reg_ld_str.c | FPU_data_address = (void *)&(s[i]); |
i | 1191 | kernel/FPU-emu/reg_ld_str.c | tag = regs[i].tag; |
i | 1192 | kernel/FPU-emu/reg_ld_str.c | reg_move(&FPU_loaded_data, ®s[i]); |
i | 1195 | kernel/FPU-emu/reg_ld_str.c | unsigned char t = regs[i].tag; |
i | 1197 | kernel/FPU-emu/reg_ld_str.c | regs[i].tag = TW_NaN; |
i | 1200 | kernel/FPU-emu/reg_ld_str.c | regs[i].tag = tag; |
i | 1212 | kernel/FPU-emu/reg_ld_str.c | int i; |
i | 1216 | kernel/FPU-emu/reg_ld_str.c | for ( i = 7; i >= 0; i-- ) |
i | 1218 | kernel/FPU-emu/reg_ld_str.c | switch ( tag = regs[i].tag ) |
i | 1256 | kernel/FPU-emu/reg_ld_str.c | int i; |
i | 1261 | kernel/FPU-emu/reg_ld_str.c | for ( i = 0; i < 8; i++ ) |
i | 1264 | kernel/FPU-emu/reg_ld_str.c | rp = ®s[i]; |
i | 1274 | kernel/FPU-emu/reg_ld_str.c | put_fs_long(0, (unsigned long *) (d+i*10+2)); |
i | 1275 | kernel/FPU-emu/reg_ld_str.c | put_fs_long(0x80000000, (unsigned long *) (d+i*10+6)); |
i | 1285 | kernel/FPU-emu/reg_ld_str.c | put_fs_long(rp->sigl, (unsigned long *) (d+i*10+2)); |
i | 1286 | kernel/FPU-emu/reg_ld_str.c | put_fs_long(rp->sigh, (unsigned long *) (d+i*10+6)); |
i | 1297 | kernel/FPU-emu/reg_ld_str.c | put_fs_long(tmp.sigl, (unsigned long *) (d+i*10+2)); |
i | 1298 | kernel/FPU-emu/reg_ld_str.c | put_fs_long(tmp.sigh, (unsigned long *) (d+i*10+6)); |
i | 1305 | kernel/FPU-emu/reg_ld_str.c | put_fs_long(0, (unsigned long *) (d+i*10+2)); |
i | 1306 | kernel/FPU-emu/reg_ld_str.c | put_fs_long(0, (unsigned long *) (d+i*10+6)); |
i | 1314 | kernel/FPU-emu/reg_ld_str.c | put_fs_long(rp->sigl, (unsigned long *) (d+i*10+2)); |
i | 1315 | kernel/FPU-emu/reg_ld_str.c | put_fs_long(rp->sigh, (unsigned long *) (d+i*10+6)); |
i | 1322 | kernel/FPU-emu/reg_ld_str.c | put_fs_long(0, (unsigned long *) (d+i*10+2)); |
i | 1323 | kernel/FPU-emu/reg_ld_str.c | put_fs_long(0, (unsigned long *) (d+i*10+6)); |
i | 1330 | kernel/FPU-emu/reg_ld_str.c | put_fs_long(0, (unsigned long *) (d+i*10+2)); |
i | 1331 | kernel/FPU-emu/reg_ld_str.c | put_fs_long(0x80000000, (unsigned long *) (d+i*10+6)); |
i | 1338 | kernel/FPU-emu/reg_ld_str.c | put_fs_long(rp->sigl, (unsigned long *) (d+i*10+2)); |
i | 1339 | kernel/FPU-emu/reg_ld_str.c | put_fs_long(rp->sigh, (unsigned long *) (d+i*10+6)); |
i | 1347 | kernel/FPU-emu/reg_ld_str.c | put_fs_long(rp->sigl, (unsigned long *) (d+i*10+2)); |
i | 1348 | kernel/FPU-emu/reg_ld_str.c | put_fs_long(rp->sigh, (unsigned long *) (d+i*10+6)); |
i | 1352 | kernel/FPU-emu/reg_ld_str.c | put_fs_word(e, (unsigned short *) (d+i*10)); |
i | 412 | kernel/blk_drv/floppy.c | int i = 0, counter, status; |
i | 419 | kernel/blk_drv/floppy.c | return i; |
i | 422 | kernel/blk_drv/floppy.c | if (i >= MAX_REPLIES) { |
i | 426 | kernel/blk_drv/floppy.c | reply_buffer[i++] = inb_p(FD_DATA); |
i | 761 | kernel/blk_drv/floppy.c | short i; |
i | 763 | kernel/blk_drv/floppy.c | for (i=0; i<4; i++) { |
i | 790 | kernel/blk_drv/floppy.c | int i; |
i | 803 | kernel/blk_drv/floppy.c | for (i=0 ; i<1000 ; i++) |
i | 1036 | kernel/blk_drv/floppy.c | int i,drive,cnt,okay; |
i | 1061 | kernel/blk_drv/floppy.c | i = verify_area(VERIFY_WRITE,(void *) param,sizeof(struct floppy_struct)); |
i | 1062 | kernel/blk_drv/floppy.c | if (i) |
i | 1063 | kernel/blk_drv/floppy.c | return i; |
i | 96 | kernel/blk_drv/genhd.c | int i, minor = current_minor; |
i | 114 | kernel/blk_drv/genhd.c | for (i=1 ; i<=4 ; minor++,i++,p++) { |
i | 118 | kernel/blk_drv/genhd.c | printk(" %s%c%d", hd->major_name,'a'+(minor >> hd->minor_shift), i); |
i | 132 | kernel/blk_drv/genhd.c | for (i = 4 ; i < 16 ; i++, current_minor++) { |
i | 162 | kernel/blk_drv/genhd.c | int i; |
i | 170 | kernel/blk_drv/genhd.c | for (i=start ; i < j ; i++) |
i | 171 | kernel/blk_drv/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
i | 176 | kernel/blk_drv/genhd.c | int i; |
i | 182 | kernel/blk_drv/genhd.c | for (i = 0 ; i < j; i++) { |
i | 183 | kernel/blk_drv/genhd.c | dev->part[i].start_sect = 0; |
i | 184 | kernel/blk_drv/genhd.c | dev->part[i].nr_sects = 0; |
i | 191 | kernel/blk_drv/genhd.c | for (i=0 ; i < j ; i++) |
i | 192 | kernel/blk_drv/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
i | 99 | kernel/blk_drv/hd.c | int i; |
i | 104 | kernel/blk_drv/hd.c | i = inb_p(0x40); |
i | 105 | kernel/blk_drv/hd.c | i |= inb(0x40) << 8; |
i | 107 | kernel/blk_drv/hd.c | return(t - i / 2); |
i | 113 | kernel/blk_drv/hd.c | int i=inb_p(HD_STATUS); |
i | 115 | kernel/blk_drv/hd.c | if ((i & (BUSY_STAT | READY_STAT | WRERR_STAT | SEEK_STAT | ERR_STAT)) |
i | 120 | kernel/blk_drv/hd.c | printk("HD: win_result: status = 0x%02x\n",i); |
i | 121 | kernel/blk_drv/hd.c | if (i&1) { |
i | 203 | kernel/blk_drv/hd.c | unsigned int i; |
i | 206 | kernel/blk_drv/hd.c | for (i = 0; i < 500000 ; i++) { |
i | 218 | kernel/blk_drv/hd.c | int i; |
i | 222 | kernel/blk_drv/hd.c | for(i = 0; i < 1000; i++) nop(); |
i | 232 | kernel/blk_drv/hd.c | static int i; |
i | 237 | kernel/blk_drv/hd.c | i = -1; |
i | 244 | kernel/blk_drv/hd.c | i++; |
i | 245 | kernel/blk_drv/hd.c | if (i < NR_HD) { |
i | 246 | kernel/blk_drv/hd.c | hd_out(i,hd_info[i].sect,hd_info[i].sect,hd_info[i].head-1, |
i | 247 | kernel/blk_drv/hd.c | hd_info[i].cyl,WIN_SPECIFY,&reset_hd); |
i | 303 | kernel/blk_drv/hd.c | int i; |
i | 307 | kernel/blk_drv/hd.c | i = (unsigned) inb_p(HD_STATUS); |
i | 308 | kernel/blk_drv/hd.c | if (i & BUSY_STAT) |
i | 310 | kernel/blk_drv/hd.c | if ((i & STAT_MASK) != STAT_OK) |
i | 312 | kernel/blk_drv/hd.c | if (i & DRQ_STAT) |
i | 316 | kernel/blk_drv/hd.c | printk("HD: read_intr: status = 0x%02x\n",i); |
i | 317 | kernel/blk_drv/hd.c | if (i & ERR_STAT) { |
i | 330 | kernel/blk_drv/hd.c | i = --CURRENT->nr_sectors; |
i | 334 | kernel/blk_drv/hd.c | MINOR(CURRENT->dev), CURRENT->sector, i, CURRENT-> |
i | 337 | kernel/blk_drv/hd.c | if (!i || (CURRENT->bh && !SUBSECTOR(i))) |
i | 339 | kernel/blk_drv/hd.c | if (i > 0) { |
i | 354 | kernel/blk_drv/hd.c | int i; |
i | 358 | kernel/blk_drv/hd.c | i = (unsigned) inb_p(HD_STATUS); |
i | 359 | kernel/blk_drv/hd.c | if (i & BUSY_STAT) |
i | 361 | kernel/blk_drv/hd.c | if ((i & STAT_MASK) != STAT_OK) |
i | 363 | kernel/blk_drv/hd.c | if ((CURRENT->nr_sectors <= 1) || (i & DRQ_STAT)) |
i | 367 | kernel/blk_drv/hd.c | printk("HD: write_intr: status = 0x%02x\n",i); |
i | 368 | kernel/blk_drv/hd.c | if (i & ERR_STAT) { |
i | 378 | kernel/blk_drv/hd.c | i = --CURRENT->nr_sectors; |
i | 381 | kernel/blk_drv/hd.c | if (!i || (CURRENT->bh && !SUBSECTOR(i))) |
i | 383 | kernel/blk_drv/hd.c | if (i > 0) { |
i | 470 | kernel/blk_drv/hd.c | int i; |
i | 472 | kernel/blk_drv/hd.c | for (i=0; i < NR_HD; i++) |
i | 473 | kernel/blk_drv/hd.c | recalibrate[i] = 1; |
i | 622 | kernel/blk_drv/hd.c | int drive, i; |
i | 668 | kernel/blk_drv/hd.c | i = NR_HD; |
i | 669 | kernel/blk_drv/hd.c | while (i-- > 0) { |
i | 670 | kernel/blk_drv/hd.c | hd[i<<6].nr_sects = 0; |
i | 671 | kernel/blk_drv/hd.c | if (hd_info[i].head > 16) { |
i | 674 | kernel/blk_drv/hd.c | printk(" (disk %d: cyl=%d, sect=%d, head=%d)\n", i, |
i | 675 | kernel/blk_drv/hd.c | hd_info[i].cyl, |
i | 676 | kernel/blk_drv/hd.c | hd_info[i].sect, |
i | 677 | kernel/blk_drv/hd.c | hd_info[i].head); |
i | 678 | kernel/blk_drv/hd.c | if (i+1 == NR_HD) |
i | 682 | kernel/blk_drv/hd.c | hd[i<<6].nr_sects = hd_info[i].head* |
i | 683 | kernel/blk_drv/hd.c | hd_info[i].sect*hd_info[i].cyl; |
i | 742 | kernel/blk_drv/hd.c | int i; |
i | 759 | kernel/blk_drv/hd.c | for (i=max_p - 1; i >=0 ; i--) { |
i | 760 | kernel/blk_drv/hd.c | sync_dev(major | start | i); |
i | 761 | kernel/blk_drv/hd.c | invalidate_inodes(major | start | i); |
i | 762 | kernel/blk_drv/hd.c | invalidate_buffers(major | start | i); |
i | 763 | kernel/blk_drv/hd.c | gdev->part[start+i].start_sect = 0; |
i | 764 | kernel/blk_drv/hd.c | gdev->part[start+i].nr_sects = 0; |
i | 273 | kernel/blk_drv/ll_rw_blk.c | int i, j; |
i | 286 | kernel/blk_drv/ll_rw_blk.c | for (i=0;i<nr; i++) |
i | 287 | kernel/blk_drv/ll_rw_blk.c | if (bh[i]) bh[i]->b_dirt = bh[i]->b_uptodate = 0; |
i | 295 | kernel/blk_drv/ll_rw_blk.c | for (i=0;i<nr; i++) |
i | 296 | kernel/blk_drv/ll_rw_blk.c | if (bh[i]) bh[i]->b_dirt = bh[i]->b_uptodate = 0; |
i | 301 | kernel/blk_drv/ll_rw_blk.c | for (i=0;i<nr; i++) |
i | 302 | kernel/blk_drv/ll_rw_blk.c | if (bh[i]) bh[i]->b_dirt = bh[i]->b_uptodate = 0; |
i | 318 | kernel/blk_drv/ll_rw_blk.c | for (i=0;i<nr; i++) |
i | 319 | kernel/blk_drv/ll_rw_blk.c | if (bh[i]) make_request(major, rw, bh[i]); |
i | 331 | kernel/blk_drv/ll_rw_blk.c | int i; |
i | 349 | kernel/blk_drv/ll_rw_blk.c | for (i=0; i<nb; i++, buf += BLOCK_SIZE) |
i | 364 | kernel/blk_drv/ll_rw_blk.c | req->sector = b[i] << 1; |
i | 379 | kernel/blk_drv/ll_rw_blk.c | int i; |
i | 381 | kernel/blk_drv/ll_rw_blk.c | for (i=0 ; i<NR_REQUEST ; i++) { |
i | 382 | kernel/blk_drv/ll_rw_blk.c | request[i].dev = -1; |
i | 383 | kernel/blk_drv/ll_rw_blk.c | request[i].next = NULL; |
i | 67 | kernel/blk_drv/ramdisk.c | int i; |
i | 78 | kernel/blk_drv/ramdisk.c | for (i=0; i < length; i++) |
i | 93 | kernel/blk_drv/ramdisk.c | int i = 1; |
i | 138 | kernel/blk_drv/ramdisk.c | i++; |
i | 334 | kernel/blk_drv/scsi/aha1542.c | int i; |
i | 338 | kernel/blk_drv/scsi/aha1542.c | for (i = 0; i < 12; i++) |
i | 339 | kernel/blk_drv/scsi/aha1542.c | printk("%02x ", ccb[mbo].cdb[ccb[mbo].cdblen+i]); |
i | 369 | kernel/blk_drv/scsi/aha1542.c | DEB(int i); |
i | 389 | kernel/blk_drv/scsi/aha1542.c | i = xscsi2int(cmd+2); |
i | 391 | kernel/blk_drv/scsi/aha1542.c | i = scsi2int(cmd+2); |
i | 393 | kernel/blk_drv/scsi/aha1542.c | i = -1; |
i | 395 | kernel/blk_drv/scsi/aha1542.c | printk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 397 | kernel/blk_drv/scsi/aha1542.c | printk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 400 | kernel/blk_drv/scsi/aha1542.c | for (i = 0; i < (COMMAND_SIZE(*cmd)); i++) printk("%02x ", cmd[i]); |
i | 450 | kernel/blk_drv/scsi/aha1542.c | int i; |
i | 456 | kernel/blk_drv/scsi/aha1542.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 457 | kernel/blk_drv/scsi/aha1542.c | if(sgpnt[i].length == 0 || SCpnt->use_sg > 16 || |
i | 458 | kernel/blk_drv/scsi/aha1542.c | (((int)sgpnt[i].address) & 1) || (sgpnt[i].length & 1)){ |
i | 460 | kernel/blk_drv/scsi/aha1542.c | printk("Bad segment list supplied to aha1542.c (%d, %d)\n",SCpnt->use_sg,i); |
i | 461 | kernel/blk_drv/scsi/aha1542.c | for(i=0;i<SCpnt->use_sg++;i++){ |
i | 462 | kernel/blk_drv/scsi/aha1542.c | printk("%d: %x %x %d\n",i,sgpnt[i].address, sgpnt[i].alt_address, |
i | 463 | kernel/blk_drv/scsi/aha1542.c | sgpnt[i].length); |
i | 466 | kernel/blk_drv/scsi/aha1542.c | ptr = (unsigned char *) &cptr[i]; |
i | 467 | kernel/blk_drv/scsi/aha1542.c | for(i=0;i<18;i++) printk("%02x ", ptr[i]); |
i | 470 | kernel/blk_drv/scsi/aha1542.c | any2scsi(cptr[i].dataptr, sgpnt[i].address); |
i | 471 | kernel/blk_drv/scsi/aha1542.c | any2scsi(cptr[i].datalen, sgpnt[i].length); |
i | 478 | kernel/blk_drv/scsi/aha1542.c | for(i=0;i<18;i++) printk("%02x ", ptr[i]); |
i | 492 | kernel/blk_drv/scsi/aha1542.c | { int i; |
i | 494 | kernel/blk_drv/scsi/aha1542.c | for (i = 0; i < sizeof(ccb[mbo])-10; i++) |
i | 495 | kernel/blk_drv/scsi/aha1542.c | printk("%02x ", ((unchar *)&ccb[mbo])[i]); |
i | 534 | kernel/blk_drv/scsi/aha1542.c | int i; |
i | 537 | kernel/blk_drv/scsi/aha1542.c | for(i=0; i<AHA1542_MAILBOXES; i++){ |
i | 538 | kernel/blk_drv/scsi/aha1542.c | mb[i].status = mb[AHA1542_MAILBOXES+i].status = 0; |
i | 539 | kernel/blk_drv/scsi/aha1542.c | any2scsi(mb[i].ccbptr, &ccb[i]); |
i | 556 | kernel/blk_drv/scsi/aha1542.c | int i; |
i | 557 | kernel/blk_drv/scsi/aha1542.c | i = inb(STATUS); |
i | 558 | kernel/blk_drv/scsi/aha1542.c | if (i & DF) { |
i | 559 | kernel/blk_drv/scsi/aha1542.c | i = inb(DATA); |
i | 617 | kernel/blk_drv/scsi/aha1542.c | int i; |
i | 618 | kernel/blk_drv/scsi/aha1542.c | i = inb(STATUS); |
i | 619 | kernel/blk_drv/scsi/aha1542.c | if (i & DF) { |
i | 620 | kernel/blk_drv/scsi/aha1542.c | i = inb(DATA); |
i | 646 | kernel/blk_drv/scsi/aha1542.c | int i; |
i | 653 | kernel/blk_drv/scsi/aha1542.c | i = aha1542_test_port(bases[indx]); |
i | 654 | kernel/blk_drv/scsi/aha1542.c | if (i) break; |
i | 714 | kernel/blk_drv/scsi/aha1542.c | int i; |
i | 716 | kernel/blk_drv/scsi/aha1542.c | for (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87; |
i | 717 | kernel/blk_drv/scsi/aha1542.c | for (i = 0; i < 2; ++i) |
i | 718 | kernel/blk_drv/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
i | 720 | kernel/blk_drv/scsi/aha1542.c | i, xscsi2int(buf+4), xscsi2int(buf)); |
i | 726 | kernel/blk_drv/scsi/aha1542.c | for (i = 0; i < 4; ++i) |
i | 733 | kernel/blk_drv/scsi/aha1542.c | xany2scsi(cmd+2, i); |
i | 749 | kernel/blk_drv/scsi/aha1542.c | int aha1542_abort(Scsi_Cmnd * SCpnt, int i) |
i | 245 | kernel/blk_drv/scsi/aha1740.c | DEB(int i); |
i | 262 | kernel/blk_drv/scsi/aha1740.c | i = xscsi2int(cmd+2); |
i | 264 | kernel/blk_drv/scsi/aha1740.c | i = scsi2int(cmd+2); |
i | 266 | kernel/blk_drv/scsi/aha1740.c | i = -1; |
i | 267 | kernel/blk_drv/scsi/aha1740.c | printk("aha1740_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 269 | kernel/blk_drv/scsi/aha1740.c | for (i = 0; i < (COMMAND_SIZE(*cmd)); i++) printk("%02x ", cmd[i]); |
i | 312 | kernel/blk_drv/scsi/aha1740.c | int i; |
i | 321 | kernel/blk_drv/scsi/aha1740.c | for(i=0; i<SCpnt->use_sg; i++) |
i | 323 | kernel/blk_drv/scsi/aha1740.c | cptr[i].dataptr = (long) sgpnt[i].address; |
i | 324 | kernel/blk_drv/scsi/aha1740.c | cptr[i].datalen = sgpnt[i].length; |
i | 331 | kernel/blk_drv/scsi/aha1740.c | for(i=0;i<24;i++) printk("%02x ", ptr[i]); |
i | 351 | kernel/blk_drv/scsi/aha1740.c | int i; |
i | 353 | kernel/blk_drv/scsi/aha1740.c | for (i = 0; i < sizeof(ecb[ecbno])-10; i++) |
i | 354 | kernel/blk_drv/scsi/aha1740.c | printk("%02x ", ((unchar *)&ecb[ecbno])[i]); |
i | 469 | kernel/blk_drv/scsi/aha1740.c | int aha1740_abort(Scsi_Cmnd * SCpnt, int i) |
i | 330 | kernel/blk_drv/scsi/fdomain.c | int i; |
i | 333 | kernel/blk_drv/scsi/fdomain.c | for (i = 0; i < 255; i++) { |
i | 334 | kernel/blk_drv/scsi/fdomain.c | outb( i, port_base + Write_Loopback ); |
i | 336 | kernel/blk_drv/scsi/fdomain.c | if (i != result) return 1; |
i | 343 | kernel/blk_drv/scsi/fdomain.c | int i, j; |
i | 360 | kernel/blk_drv/scsi/fdomain.c | for (i = 0; !bios_base && i < ADDRESS_COUNT; i++) { |
i | 362 | kernel/blk_drv/scsi/fdomain.c | printk( " %x(%x),", (unsigned)addresses[i], (unsigned)bios_base ); |
i | 365 | kernel/blk_drv/scsi/fdomain.c | if (!memcmp( ((char *)addresses[i] + signatures[j].sig_offset), |
i | 367 | kernel/blk_drv/scsi/fdomain.c | bios_base = addresses[i]; |
i | 394 | kernel/blk_drv/scsi/fdomain.c | for (flag = 0, i = 0; !flag && i < PORT_COUNT; i++) { |
i | 395 | kernel/blk_drv/scsi/fdomain.c | if (port_base == ports[i]) ++flag; |
i | 419 | kernel/blk_drv/scsi/fdomain.c | for (flag = 0, i = 0; !flag && i < PORT_COUNT; i++) { |
i | 420 | kernel/blk_drv/scsi/fdomain.c | port_base = ports[i]; |
i | 488 | kernel/blk_drv/scsi/fdomain.c | for (i = 0; i < 8; i++) { |
i | 489 | kernel/blk_drv/scsi/fdomain.c | SCinit.target = i; |
i | 490 | kernel/blk_drv/scsi/fdomain.c | if (i == 6) continue; /* The host adapter is at SCSI ID 6 */ |
i | 497 | kernel/blk_drv/scsi/fdomain.c | printk( " SCSI ID %d: ", i ); |
i | 839 | kernel/blk_drv/scsi/fdomain.c | int i; |
i | 843 | kernel/blk_drv/scsi/fdomain.c | for (i = 0; i < COMMAND_SIZE( current_SC->cmnd[0] ); i++) { |
i | 844 | kernel/blk_drv/scsi/fdomain.c | outb( current_SC->cmnd[i], Write_SCSI_Data_port ); |
i | 846 | kernel/blk_drv/scsi/fdomain.c | printk( "CMD = %x,", current_SC->cmnd[i] ); |
i | 1296 | kernel/blk_drv/scsi/fdomain.c | } *i; |
i | 1323 | kernel/blk_drv/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f31 + drive * 25 ); |
i | 1324 | kernel/blk_drv/scsi/fdomain.c | info[0] = i->heads; |
i | 1325 | kernel/blk_drv/scsi/fdomain.c | info[1] = i->sectors; |
i | 1326 | kernel/blk_drv/scsi/fdomain.c | info[2] = i->cylinders; |
i | 123 | kernel/blk_drv/scsi/hosts.c | int i, count; |
i | 127 | kernel/blk_drv/scsi/hosts.c | for (count = i = 0; i < MAX_SCSI_HOSTS; ++i) |
i | 134 | kernel/blk_drv/scsi/hosts.c | host_busy[i] = 0; |
i | 135 | kernel/blk_drv/scsi/hosts.c | host_queue[i] = NULL; |
i | 137 | kernel/blk_drv/scsi/hosts.c | if ((scsi_hosts[i].detect) && (scsi_hosts[i].present = scsi_hosts[i].detect(i))) |
i | 140 | kernel/blk_drv/scsi/hosts.c | count, scsi_hosts[i].name); |
i | 141 | kernel/blk_drv/scsi/hosts.c | printk ("%s", scsi_hosts[i].info()); |
i | 115 | kernel/blk_drv/scsi/scsi.c | int i = 0; |
i | 117 | kernel/blk_drv/scsi/scsi.c | for(i=0; 1; i++){ |
i | 118 | kernel/blk_drv/scsi/scsi.c | if(blacklist[i].vendor == NULL) return 0; |
i | 121 | kernel/blk_drv/scsi/scsi.c | if(strncmp(blacklist[i].vendor, pnt, |
i | 122 | kernel/blk_drv/scsi/scsi.c | strlen(blacklist[i].vendor))) continue; |
i | 125 | kernel/blk_drv/scsi/scsi.c | if(strncmp(blacklist[i].model, pnt, |
i | 126 | kernel/blk_drv/scsi/scsi.c | strlen(blacklist[i].model))) continue; |
i | 628 | kernel/blk_drv/scsi/scsi.c | int i; |
i | 633 | kernel/blk_drv/scsi/scsi.c | for (i = 0; i < 10; ++i) |
i | 634 | kernel/blk_drv/scsi/scsi.c | printk ("%02x ", ((unsigned char *) cmnd)[i]); |
i | 1283 | kernel/blk_drv/scsi/scsi.c | int i, j; |
i | 1291 | kernel/blk_drv/scsi/scsi.c | for(i=0;i < (dma_sectors >> 4); i++) |
i | 1293 | kernel/blk_drv/scsi/scsi.c | if ((dma_malloc_freelist[i] & (mask << j)) == 0){ |
i | 1294 | kernel/blk_drv/scsi/scsi.c | dma_malloc_freelist[i] |= (mask << j); |
i | 1298 | kernel/blk_drv/scsi/scsi.c | printk("SMalloc: %d %x ",len, dma_malloc_buffer + (i << 13) + (j << 9)); |
i | 1300 | kernel/blk_drv/scsi/scsi.c | return (void*) ((unsigned long) dma_malloc_buffer + (i << 13) + (j << 9)); |
i | 1347 | kernel/blk_drv/scsi/scsi.c | int i; |
i | 1358 | kernel/blk_drv/scsi/scsi.c | for (i = 0; i < max_scsi_hosts; ++i) |
i | 1359 | kernel/blk_drv/scsi/scsi.c | last_reset[i] = 0; |
i | 1373 | kernel/blk_drv/scsi/scsi.c | for (i=0; i< NR_SCSI_DEVICES; i++) { |
i | 1375 | kernel/blk_drv/scsi/scsi.c | switch (scsi_devices[i].type) |
i | 1378 | kernel/blk_drv/scsi/scsi.c | st_attach(&scsi_devices[i]); |
i | 1381 | kernel/blk_drv/scsi/scsi.c | sr_attach(&scsi_devices[i]); |
i | 1385 | kernel/blk_drv/scsi/scsi.c | sd_attach(&scsi_devices[i]); |
i | 1389 | kernel/blk_drv/scsi/scsi.c | if(scsi_devices[i].type != -1){ |
i | 1390 | kernel/blk_drv/scsi/scsi.c | for(j=0;j<scsi_hosts[scsi_devices[i].host_no].cmd_per_lun;j++){ |
i | 1391 | kernel/blk_drv/scsi/scsi.c | SCpnt->host = scsi_devices[i].host_no; |
i | 1392 | kernel/blk_drv/scsi/scsi.c | SCpnt->target = scsi_devices[i].id; |
i | 1393 | kernel/blk_drv/scsi/scsi.c | SCpnt->lun = scsi_devices[i].lun; |
i | 1394 | kernel/blk_drv/scsi/scsi.c | SCpnt->index = i; |
i | 1399 | kernel/blk_drv/scsi/scsi.c | host = scsi_devices[i].host_no; |
i | 1415 | kernel/blk_drv/scsi/scsi.c | for (i = 0; i < NR_SCSI_DEVICES; ++i) { |
i | 1417 | kernel/blk_drv/scsi/scsi.c | host = scsi_devices[i].host_no; |
i | 1419 | kernel/blk_drv/scsi/scsi.c | if(scsi_devices[i].type != TYPE_TAPE) |
i | 1426 | kernel/blk_drv/scsi/scsi.c | scsi_devices[i].type != TYPE_TAPE) { |
i | 1454 | kernel/blk_drv/scsi/scsi.c | int i; |
i | 1457 | kernel/blk_drv/scsi/scsi.c | for (i = 8; i < 16; i++) |
i | 1459 | kernel/blk_drv/scsi/scsi.c | if (data[i] >= 20 && i < data[4] + 5) |
i | 1460 | kernel/blk_drv/scsi/scsi.c | printk("%c", data[i]); |
i | 1466 | kernel/blk_drv/scsi/scsi.c | for (i = 16; i < 32; i++) |
i | 1468 | kernel/blk_drv/scsi/scsi.c | if (data[i] >= 20 && i < data[4] + 5) |
i | 1469 | kernel/blk_drv/scsi/scsi.c | printk("%c", data[i]); |
i | 1475 | kernel/blk_drv/scsi/scsi.c | for (i = 32; i < 36; i++) |
i | 1477 | kernel/blk_drv/scsi/scsi.c | if (data[i] >= 20 && i < data[4] + 5) |
i | 1478 | kernel/blk_drv/scsi/scsi.c | printk("%c", data[i]); |
i | 1485 | kernel/blk_drv/scsi/scsi.c | i = data[0] & 0x1f; |
i | 1487 | kernel/blk_drv/scsi/scsi.c | printk(" Type: %s ", i == 0x00 ? "Direct-Access " : |
i | 1488 | kernel/blk_drv/scsi/scsi.c | i == 0x01 ? "Sequential-Access" : |
i | 1489 | kernel/blk_drv/scsi/scsi.c | i == 0x02 ? "Printer " : |
i | 1490 | kernel/blk_drv/scsi/scsi.c | i == 0x03 ? "Processor " : |
i | 1491 | kernel/blk_drv/scsi/scsi.c | i == 0x04 ? "WORM " : |
i | 1492 | kernel/blk_drv/scsi/scsi.c | i == 0x05 ? "CD-ROM " : |
i | 1493 | kernel/blk_drv/scsi/scsi.c | i == 0x06 ? "Scanner " : |
i | 1494 | kernel/blk_drv/scsi/scsi.c | i == 0x07 ? "Optical Device " : |
i | 1495 | kernel/blk_drv/scsi/scsi.c | i == 0x08 ? "Medium Changer " : |
i | 1496 | kernel/blk_drv/scsi/scsi.c | i == 0x09 ? "Communications " : |
i | 93 | kernel/blk_drv/scsi/scsi_debug.c | int i; |
i | 102 | kernel/blk_drv/scsi/scsi_debug.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 103 | kernel/blk_drv/scsi/scsi_debug.c | lpnt = (int *) sgpnt[i].alt_address; |
i | 104 | kernel/blk_drv/scsi/scsi_debug.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 114 | kernel/blk_drv/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 115 | kernel/blk_drv/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 121 | kernel/blk_drv/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 122 | kernel/blk_drv/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 128 | kernel/blk_drv/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 129 | kernel/blk_drv/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 149 | kernel/blk_drv/scsi/scsi_debug.c | int i; |
i | 167 | kernel/blk_drv/scsi/scsi_debug.c | { int i; |
i | 169 | kernel/blk_drv/scsi/scsi_debug.c | for(i=0;i<12;i++) printk("%d ",sense_buffer[i]); |
i | 264 | kernel/blk_drv/scsi/scsi_debug.c | { int i; |
i | 266 | kernel/blk_drv/scsi/scsi_debug.c | for(i=0;i<12;i++) printk("%d ",sense_buffer[i]); |
i | 328 | kernel/blk_drv/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++){ |
i | 329 | kernel/blk_drv/scsi/scsi_debug.c | if (SCint[i] == 0) break; |
i | 332 | kernel/blk_drv/scsi/scsi_debug.c | if (i >= SCSI_DEBUG_MAILBOXES || SCint[i] != 0) |
i | 335 | kernel/blk_drv/scsi/scsi_debug.c | SCint[i] = SCpnt; |
i | 339 | kernel/blk_drv/scsi/scsi_debug.c | if (do_done[i]) |
i | 342 | kernel/blk_drv/scsi/scsi_debug.c | do_done[i] = done; |
i | 347 | kernel/blk_drv/scsi/scsi_debug.c | timeout[i] = jiffies+DISK_SPEED; |
i | 351 | kernel/blk_drv/scsi/scsi_debug.c | timer_table[SCSI_DEBUG_TIMER].expires = timeout[i]; |
i | 359 | kernel/blk_drv/scsi/scsi_debug.c | printk("Sending command (%d %x %d %d)...", i, done, timeout[i],jiffies); |
i | 389 | kernel/blk_drv/scsi/scsi_debug.c | int i, pending; |
i | 398 | kernel/blk_drv/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 399 | kernel/blk_drv/scsi/scsi_debug.c | if (SCint[i] == 0) continue; |
i | 400 | kernel/blk_drv/scsi/scsi_debug.c | if (timeout[i] == 0) continue; |
i | 401 | kernel/blk_drv/scsi/scsi_debug.c | if (timeout[i] <= jiffies) break; |
i | 404 | kernel/blk_drv/scsi/scsi_debug.c | if(i == SCSI_DEBUG_MAILBOXES){ |
i | 406 | kernel/blk_drv/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 407 | kernel/blk_drv/scsi/scsi_debug.c | if (SCint[i] == 0) continue; |
i | 408 | kernel/blk_drv/scsi/scsi_debug.c | if (timeout[i] == 0) continue; |
i | 409 | kernel/blk_drv/scsi/scsi_debug.c | if (timeout[i] <= jiffies) {sti(); goto repeat;}; |
i | 410 | kernel/blk_drv/scsi/scsi_debug.c | if (timeout[i] > jiffies) { |
i | 411 | kernel/blk_drv/scsi/scsi_debug.c | if (pending > timeout[i]) pending = timeout[i]; |
i | 424 | kernel/blk_drv/scsi/scsi_debug.c | if(i < SCSI_DEBUG_MAILBOXES){ |
i | 425 | kernel/blk_drv/scsi/scsi_debug.c | timeout[i] = 0; |
i | 426 | kernel/blk_drv/scsi/scsi_debug.c | my_done = do_done[i]; |
i | 427 | kernel/blk_drv/scsi/scsi_debug.c | do_done[i] = NULL; |
i | 428 | kernel/blk_drv/scsi/scsi_debug.c | to = timeout[i]; |
i | 429 | kernel/blk_drv/scsi/scsi_debug.c | timeout[i] = 0; |
i | 430 | kernel/blk_drv/scsi/scsi_debug.c | SCtmp = (Scsi_Cmnd *) SCint[i]; |
i | 431 | kernel/blk_drv/scsi/scsi_debug.c | SCint[i] = NULL; |
i | 441 | kernel/blk_drv/scsi/scsi_debug.c | printk("...done %d %x %d %d\n",i , my_done, to, jiffies); |
i | 442 | kernel/blk_drv/scsi/scsi_debug.c | printk("In intr_handle: %d %x %x\n",i, SCtmp, my_done); |
i | 462 | kernel/blk_drv/scsi/scsi_debug.c | int scsi_debug_abort(Scsi_Cmnd * SCpnt,int i) |
i | 467 | kernel/blk_drv/scsi/scsi_debug.c | SCpnt->result = i << 16; |
i | 492 | kernel/blk_drv/scsi/scsi_debug.c | int i; |
i | 495 | kernel/blk_drv/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 496 | kernel/blk_drv/scsi/scsi_debug.c | if (SCint[i] == NULL) continue; |
i | 497 | kernel/blk_drv/scsi/scsi_debug.c | SCint[i]->result = DID_ABORT << 16; |
i | 498 | kernel/blk_drv/scsi/scsi_debug.c | my_done = do_done[i]; |
i | 499 | kernel/blk_drv/scsi/scsi_debug.c | my_done(SCint[i]); |
i | 501 | kernel/blk_drv/scsi/scsi_debug.c | SCint[i] = NULL; |
i | 502 | kernel/blk_drv/scsi/scsi_debug.c | do_done[i] = NULL; |
i | 503 | kernel/blk_drv/scsi/scsi_debug.c | timeout[i] = 0; |
i | 203 | kernel/blk_drv/scsi/scsi_ioctl.c | int i; |
i | 205 | kernel/blk_drv/scsi/scsi_ioctl.c | for (i = 0; i < 10; ++i) |
i | 206 | kernel/blk_drv/scsi/scsi_ioctl.c | printk("%02x ", cmd[i]); |
i | 208 | kernel/blk_drv/scsi/scsi_ioctl.c | for (i = 0; i < 20; ++i) |
i | 209 | kernel/blk_drv/scsi/scsi_ioctl.c | printk("%02x ", buf[i]); |
i | 100 | kernel/blk_drv/scsi/sd.c | int i; |
i | 101 | kernel/blk_drv/scsi/sd.c | for (i = 0; i < NR_SD; ++i) |
i | 102 | kernel/blk_drv/scsi/sd.c | sd[i << 4].nr_sects = rscsi_disks[i].capacity; |
i | 161 | kernel/blk_drv/scsi/sd.c | int i; |
i | 163 | kernel/blk_drv/scsi/sd.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 165 | kernel/blk_drv/scsi/sd.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 167 | kernel/blk_drv/scsi/sd.c | if (sgpnt[i].alt_address) { |
i | 169 | kernel/blk_drv/scsi/sd.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 170 | kernel/blk_drv/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 218 | kernel/blk_drv/scsi/sd.c | int i; |
i | 220 | kernel/blk_drv/scsi/sd.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 225 | kernel/blk_drv/scsi/sd.c | if (sgpnt[i].alt_address) { |
i | 226 | kernel/blk_drv/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 247 | kernel/blk_drv/scsi/sd.c | int i; |
i | 249 | kernel/blk_drv/scsi/sd.c | for(i=0;i<10;i++) printk(" %d",SCpnt->sense_buffer[i]); |
i | 670 | kernel/blk_drv/scsi/sd.c | static int sd_init_onedisk(int i) |
i | 682 | kernel/blk_drv/scsi/sd.c | SCpnt = allocate_device(NULL, rscsi_disks[i].device->index, 1); |
i | 687 | kernel/blk_drv/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 735 | kernel/blk_drv/scsi/sd.c | i,i, |
i | 736 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].device->host_no, rscsi_disks[i].device->id, |
i | 737 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].device->lun, |
i | 744 | kernel/blk_drv/scsi/sd.c | printk("sd%d : extended sense code = %1x \n", i, SCpnt->sense_buffer[2] & 0xf); |
i | 746 | kernel/blk_drv/scsi/sd.c | printk("sd%d : sense not available. \n", i); |
i | 748 | kernel/blk_drv/scsi/sd.c | printk("sd%d : block size assumed to be 512 bytes, disk size 1GB. \n", i); |
i | 749 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].capacity = 0x1fffff; |
i | 750 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].sector_size = 512; |
i | 754 | kernel/blk_drv/scsi/sd.c | if(rscsi_disks[i].device->removable && |
i | 756 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].device->changed = 1; |
i | 761 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].capacity = (buffer[0] << 24) | |
i | 766 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].sector_size = (buffer[4] << 24) | |
i | 769 | kernel/blk_drv/scsi/sd.c | if (rscsi_disks[i].sector_size != 512 && |
i | 770 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].sector_size != 1024 && |
i | 771 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].sector_size != 256) |
i | 774 | kernel/blk_drv/scsi/sd.c | i, rscsi_disks[i].sector_size); |
i | 775 | kernel/blk_drv/scsi/sd.c | if(rscsi_disks[i].device->removable){ |
i | 776 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].capacity = 0; |
i | 779 | kernel/blk_drv/scsi/sd.c | for (j=i; j < NR_SD - 1;) |
i | 781 | kernel/blk_drv/scsi/sd.c | --i; |
i | 783 | kernel/blk_drv/scsi/sd.c | return i; |
i | 786 | kernel/blk_drv/scsi/sd.c | if(rscsi_disks[i].sector_size == 1024) |
i | 787 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].capacity <<= 1; /* Change this into 512 byte sectors */ |
i | 788 | kernel/blk_drv/scsi/sd.c | if(rscsi_disks[i].sector_size == 256) |
i | 789 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].capacity >>= 1; /* Change this into 512 byte sectors */ |
i | 792 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].ten = 1; |
i | 793 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].remap = 1; |
i | 794 | kernel/blk_drv/scsi/sd.c | return i; |
i | 804 | kernel/blk_drv/scsi/sd.c | int i; |
i | 824 | kernel/blk_drv/scsi/sd.c | for (i = 0; i < NR_SD; ++i) |
i | 825 | kernel/blk_drv/scsi/sd.c | i = sd_init_onedisk(i); |
i | 871 | kernel/blk_drv/scsi/sd.c | int i; |
i | 889 | kernel/blk_drv/scsi/sd.c | for (i=max_p - 1; i >=0 ; i--) { |
i | 890 | kernel/blk_drv/scsi/sd.c | sync_dev(major | start | i); |
i | 891 | kernel/blk_drv/scsi/sd.c | invalidate_inodes(major | start | i); |
i | 892 | kernel/blk_drv/scsi/sd.c | invalidate_buffers(major | start | i); |
i | 893 | kernel/blk_drv/scsi/sd.c | gdev->part[start+i].start_sect = 0; |
i | 894 | kernel/blk_drv/scsi/sd.c | gdev->part[start+i].nr_sects = 0; |
i | 166 | kernel/blk_drv/scsi/seagate.c | int i,j; |
i | 210 | kernel/blk_drv/scsi/seagate.c | for (i = 0; i < (sizeof (seagate_bases) / sizeof (char * )); ++i) |
i | 212 | kernel/blk_drv/scsi/seagate.c | if (!memcmp ((void *) (seagate_bases[i] + |
i | 215 | kernel/blk_drv/scsi/seagate.c | base_address = (void *) seagate_bases[i]; |
i | 463 | kernel/blk_drv/scsi/seagate.c | int i; |
i | 482 | kernel/blk_drv/scsi/seagate.c | for (i = 0; i < COMMAND_SIZE(((unsigned char *)cmnd)[0]); ++i) |
i | 483 | kernel/blk_drv/scsi/seagate.c | printk("%02x ", ((unsigned char *) cmnd)[i]); |
i | 736 | kernel/blk_drv/scsi/seagate.c | int i; |
i | 739 | kernel/blk_drv/scsi/seagate.c | for (i = 0; i < nobuffs; ++i) |
i | 741 | kernel/blk_drv/scsi/seagate.c | hostno, i, buffer[i].address, buffer[i].length); |
i | 1271 | kernel/blk_drv/scsi/seagate.c | for (i = 0; i < 20; ++i) |
i | 1272 | kernel/blk_drv/scsi/seagate.c | printk ("%02x ", ((unsigned char *) data)[i]); /* WDE mod */ |
i | 146 | kernel/blk_drv/scsi/sr.c | int i; |
i | 148 | kernel/blk_drv/scsi/sr.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 149 | kernel/blk_drv/scsi/sr.c | if (sgpnt[i].alt_address) { |
i | 150 | kernel/blk_drv/scsi/sr.c | if (sgpnt[i].alt_address != sgpnt[i].address) { |
i | 151 | kernel/blk_drv/scsi/sr.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 153 | kernel/blk_drv/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 188 | kernel/blk_drv/scsi/sr.c | int i; |
i | 190 | kernel/blk_drv/scsi/sr.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 191 | kernel/blk_drv/scsi/sr.c | if (sgpnt[i].alt_address) { |
i | 192 | kernel/blk_drv/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 630 | kernel/blk_drv/scsi/sr.c | int i; |
i | 646 | kernel/blk_drv/scsi/sr.c | for (i = 0; i < NR_SR; ++i) |
i | 648 | kernel/blk_drv/scsi/sr.c | SCpnt = allocate_device(NULL, scsi_CDs[i].device->index, 1); |
i | 653 | kernel/blk_drv/scsi/sr.c | cmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0; |
i | 680 | kernel/blk_drv/scsi/sr.c | scsi_CDs[i].capacity = 0x1fffff; |
i | 681 | kernel/blk_drv/scsi/sr.c | scsi_CDs[i].sector_size = 2048; |
i | 683 | kernel/blk_drv/scsi/sr.c | scsi_CDs[i].capacity = (buffer[0] << 24) | |
i | 685 | kernel/blk_drv/scsi/sr.c | scsi_CDs[i].sector_size = (buffer[4] << 24) | |
i | 687 | kernel/blk_drv/scsi/sr.c | if(scsi_CDs[i].sector_size != 2048 && |
i | 688 | kernel/blk_drv/scsi/sr.c | scsi_CDs[i].sector_size != 512) { |
i | 690 | kernel/blk_drv/scsi/sr.c | i, scsi_CDs[i].sector_size); |
i | 691 | kernel/blk_drv/scsi/sr.c | scsi_CDs[i].capacity = 0; |
i | 693 | kernel/blk_drv/scsi/sr.c | if(scsi_CDs[i].sector_size == 2048) |
i | 694 | kernel/blk_drv/scsi/sr.c | scsi_CDs[i].capacity *= 4; |
i | 697 | kernel/blk_drv/scsi/sr.c | printk("Scd sectorsize = %d bytes\n", scsi_CDs[i].sector_size); |
i | 698 | kernel/blk_drv/scsi/sr.c | scsi_CDs[i].use = 1; |
i | 699 | kernel/blk_drv/scsi/sr.c | scsi_CDs[i].ten = 1; |
i | 700 | kernel/blk_drv/scsi/sr.c | scsi_CDs[i].remap = 1; |
i | 701 | kernel/blk_drv/scsi/sr.c | sr_sizes[i] = scsi_CDs[i].capacity; |
i | 289 | kernel/blk_drv/scsi/st.c | int i; |
i | 302 | kernel/blk_drv/scsi/st.c | for (i=0; i < st_nbr_buffers; i++) |
i | 303 | kernel/blk_drv/scsi/st.c | if (!st_buffers[i]->in_use) |
i | 305 | kernel/blk_drv/scsi/st.c | if (i >= st_nbr_buffers) { |
i | 309 | kernel/blk_drv/scsi/st.c | st_buffers[i]->in_use = 1; |
i | 310 | kernel/blk_drv/scsi/st.c | st_buffers[i]->writing = 0; |
i | 311 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer = st_buffers[i]; |
i | 407 | kernel/blk_drv/scsi/st.c | i = st_chk_result(dev, SCpnt->result, SCpnt->sense_buffer); |
i | 408 | kernel/blk_drv/scsi/st.c | if (i) { |
i | 1092 | kernel/blk_drv/scsi/st.c | int i, cmd, result; |
i | 1112 | kernel/blk_drv/scsi/st.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(mtc)); |
i | 1113 | kernel/blk_drv/scsi/st.c | if (i) |
i | 1114 | kernel/blk_drv/scsi/st.c | return i; |
i | 1118 | kernel/blk_drv/scsi/st.c | i = flush_buffer(inode, file, mtc.mt_op == MTSEEK || |
i | 1121 | kernel/blk_drv/scsi/st.c | if (i < 0) |
i | 1122 | kernel/blk_drv/scsi/st.c | return i; |
i | 1130 | kernel/blk_drv/scsi/st.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct mtget)); |
i | 1131 | kernel/blk_drv/scsi/st.c | if (i) |
i | 1132 | kernel/blk_drv/scsi/st.c | return i; |
i | 1145 | kernel/blk_drv/scsi/st.c | i = flush_buffer(inode, file, 0); |
i | 1146 | kernel/blk_drv/scsi/st.c | if (i < 0) |
i | 1147 | kernel/blk_drv/scsi/st.c | return i; |
i | 1149 | kernel/blk_drv/scsi/st.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct mtpos)); |
i | 1150 | kernel/blk_drv/scsi/st.c | if (i) |
i | 1151 | kernel/blk_drv/scsi/st.c | return i; |
i | 1231 | kernel/blk_drv/scsi/st.c | int i; |
i | 1243 | kernel/blk_drv/scsi/st.c | for (i=0; i < NR_ST; ++i) { |
i | 1244 | kernel/blk_drv/scsi/st.c | scsi_tapes[i].capacity = 0xfffff; |
i | 1245 | kernel/blk_drv/scsi/st.c | scsi_tapes[i].dirty = 0; |
i | 1246 | kernel/blk_drv/scsi/st.c | scsi_tapes[i].rw = 0; |
i | 1247 | kernel/blk_drv/scsi/st.c | scsi_tapes[i].eof = 0; |
i | 1248 | kernel/blk_drv/scsi/st.c | scsi_tapes[i].waiting = NULL; |
i | 1249 | kernel/blk_drv/scsi/st.c | scsi_tapes[i].in_use = 0; |
i | 1258 | kernel/blk_drv/scsi/st.c | for (i=0; i < st_nbr_buffers; i++) { |
i | 1259 | kernel/blk_drv/scsi/st.c | st_buffers[i] = (ST_buffer *) mem_start; |
i | 1261 | kernel/blk_drv/scsi/st.c | printk("st: Buffer address: %x\n", st_buffers[i]); |
i | 1264 | kernel/blk_drv/scsi/st.c | st_buffers[i]->mt_status = (struct mtget *) mem_start; |
i | 1266 | kernel/blk_drv/scsi/st.c | st_buffers[i]->in_use = 0; |
i | 1267 | kernel/blk_drv/scsi/st.c | st_buffers[i]->writing = 0; |
i | 1270 | kernel/blk_drv/scsi/st.c | memset((void *) st_buffers[i]->mt_status, 0, sizeof(struct mtget)); |
i | 1271 | kernel/blk_drv/scsi/st.c | st_buffers[i]->mt_status->mt_type = MT_ISSCSI1; |
i | 184 | kernel/blk_drv/scsi/ultrastor.c | size_t i; |
i | 195 | kernel/blk_drv/scsi/ultrastor.c | for (i = 0; i < ARRAY_SIZE(ultrastor_ports_14f); i++) { |
i | 196 | kernel/blk_drv/scsi/ultrastor.c | PORT_ADDRESS = ultrastor_ports_14f[i]; |
i | 238 | kernel/blk_drv/scsi/ultrastor.c | if (i == ARRAY_SIZE(ultrastor_ports_14f)) { |
i | 341 | kernel/blk_drv/scsi/ultrastor.c | int i; |
i | 350 | kernel/blk_drv/scsi/ultrastor.c | for (i = 0; i < SCpnt->use_sg; i++) { |
i | 351 | kernel/blk_drv/scsi/ultrastor.c | sglist[i].address = *(Longword *)&(sl[i].address); |
i | 352 | kernel/blk_drv/scsi/ultrastor.c | sglist[i].num_bytes = *(Longword *)&(sl[i].length); |
i | 353 | kernel/blk_drv/scsi/ultrastor.c | transfer_length += sl[i].length; |
i | 170 | kernel/blk_drv/scsi/wd7000.c | int i; |
i | 177 | kernel/blk_drv/scsi/wd7000.c | for (i = 0; i < MAX_SCBS-1; i++) scbs[i].next = &(scbs[i+1]); |
i | 189 | kernel/blk_drv/scsi/wd7000.c | int i, ogmb; |
i | 198 | kernel/blk_drv/scsi/wd7000.c | for (i = 0; i < OGMB_CNT; i++) { |
i | 212 | kernel/blk_drv/scsi/wd7000.c | if (i >= OGMB_CNT) { |
i | 375 | kernel/blk_drv/scsi/wd7000.c | unsigned i; |
i | 400 | kernel/blk_drv/scsi/wd7000.c | for (i = 0; i < SCpnt->use_sg; i++) { |
i | 401 | kernel/blk_drv/scsi/wd7000.c | any2scsi(sgb->ptr, sg[i].address); |
i | 402 | kernel/blk_drv/scsi/wd7000.c | any2scsi(sgb->len, sg[i].length); |
i | 428 | kernel/blk_drv/scsi/wd7000.c | { int i; |
i | 449 | kernel/blk_drv/scsi/wd7000.c | if ((i=inb(INTR_STAT)) != 1) { |
i | 526 | kernel/blk_drv/scsi/wd7000.c | int i,j; |
i | 529 | kernel/blk_drv/scsi/wd7000.c | for(i=0;i<(sizeof(wd_bases)/sizeof(char *));i++){ |
i | 531 | kernel/blk_drv/scsi/wd7000.c | if(!memcmp((void *)(wd_bases[i] + signatures[j].offset), |
i | 533 | kernel/blk_drv/scsi/wd7000.c | base_address=wd_bases[i]; |
i | 577 | kernel/blk_drv/scsi/wd7000.c | int wd7000_abort(Scsi_Cmnd * SCpnt, int i) |
i | 580 | kernel/blk_drv/scsi/wd7000.c | printk("wd7000_abort: Scsi_Cmnd = 0x%08x, code = %d ", SCpnt, i); |
i | 82 | kernel/blk_drv/xd.c | u_char i,controller,*address; |
i | 100 | kernel/blk_drv/xd.c | for (i = 0; i < xd_drives; i++) |
i | 101 | kernel/blk_drv/xd.c | printk("xd_init: drive %d geometry - heads = %d, cylinders = %d, sectors = %d\n",i,xd_info[i].heads,xd_info[i].cylinders,xd_info[i].sectors); |
i | 119 | kernel/blk_drv/xd.c | u_char i,j,found = 0; |
i | 121 | kernel/blk_drv/xd.c | for (i = 0; i < (sizeof(xd_bases) / sizeof(xd_bases[0])) && !found; i++) |
i | 123 | kernel/blk_drv/xd.c | if (!memcmp((u_char *) (xd_bases[i] + xd_sigs[j].offset),xd_sigs[j].string,strlen(xd_sigs[j].string))) { |
i | 125 | kernel/blk_drv/xd.c | *address = xd_bases[i]; |
i | 139 | kernel/blk_drv/xd.c | u_char i; |
i | 141 | kernel/blk_drv/xd.c | for (i = 0; i < xd_drives; i++) { |
i | 142 | kernel/blk_drv/xd.c | xd[i << 6].nr_sects = xd_info[i].heads * xd_info[i].cylinders * xd_info[i].sectors; |
i | 143 | kernel/blk_drv/xd.c | xd_valid[i] = 1; |
i | 452 | kernel/blk_drv/xd.c | u_char cmdblk[6],i,count = 0; |
i | 454 | kernel/blk_drv/xd.c | for (i = 0; i < XD_MAXDRIVES; i++) { |
i | 455 | kernel/blk_drv/xd.c | xd_build(cmdblk,CMD_TESTREADY,i,0,0,0,0,0); |
i | 587 | kernel/blk_drv/xd.c | u_char cmdblk[6],i; |
i | 589 | kernel/blk_drv/xd.c | for (i = 0; i < 3; i++) { |
i | 590 | kernel/blk_drv/xd.c | while (min[i] != max[i] - 1) { |
i | 591 | kernel/blk_drv/xd.c | test[i] = (min[i] + max[i]) / 2; |
i | 594 | kernel/blk_drv/xd.c | min[i] = test[i]; |
i | 596 | kernel/blk_drv/xd.c | max[i] = test[i]; |
i | 598 | kernel/blk_drv/xd.c | test[i] = min[i]; |
i | 96 | kernel/chr_drv/busmouse.c | int i; |
i | 114 | kernel/chr_drv/busmouse.c | for (i = 3; i < count; i++) |
i | 115 | kernel/chr_drv/busmouse.c | put_fs_byte(0x00, buffer + i); |
i | 120 | kernel/chr_drv/busmouse.c | return i; |
i | 147 | kernel/chr_drv/busmouse.c | int i; |
i | 151 | kernel/chr_drv/busmouse.c | for (i = 0; i < 100000; i++) |
i | 523 | kernel/chr_drv/console.c | int i; |
i | 525 | kernel/chr_drv/console.c | for (i=0;i<=npar;i++) |
i | 526 | kernel/chr_drv/console.c | switch (par[i]) { |
i | 565 | kernel/chr_drv/console.c | if (par[i] >= 30 && par[i] <= 37) |
i | 566 | kernel/chr_drv/console.c | color = color_table[par[i]-30] |
i | 568 | kernel/chr_drv/console.c | else if (par[i] >= 40 && par[i] <= 47) |
i | 569 | kernel/chr_drv/console.c | color = (color_table[par[i]-40]<<4) |
i | 611 | kernel/chr_drv/console.c | int i = 0; |
i | 614 | kernel/chr_drv/console.c | buff[i++] = (n%10)+'0'; |
i | 616 | kernel/chr_drv/console.c | } while(n && i < 3); /* We'll take no chances */ |
i | 617 | kernel/chr_drv/console.c | while (i--) { |
i | 618 | kernel/chr_drv/console.c | put_tty_queue(buff[i], &tty->read_q); |
i | 657 | kernel/chr_drv/console.c | int i; |
i | 659 | kernel/chr_drv/console.c | for (i=0; i<=npar; i++) |
i | 660 | 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 | 738 | kernel/chr_drv/console.c | unsigned int i = x; |
i | 742 | kernel/chr_drv/console.c | while (i++ < video_num_columns) { |
i | 759 | kernel/chr_drv/console.c | unsigned int i = x; |
i | 762 | kernel/chr_drv/console.c | while (++i < video_num_columns) { |
i | 79 | kernel/chr_drv/keyboard.c | int i; |
i | 81 | kernel/chr_drv/keyboard.c | for (i=0; i<0x10000; i++) |
i | 1134 | kernel/chr_drv/keyboard.c | int i; |
i | 1136 | kernel/chr_drv/keyboard.c | for(i=0; diacr_table[i]; i++) |
i | 1137 | kernel/chr_drv/keyboard.c | if (ch==diacr_table[i] && ((1<<i)&kbd->kbd_flags)) { |
i | 1138 | kernel/chr_drv/keyboard.c | if (diacr == i) { |
i | 1140 | kernel/chr_drv/keyboard.c | return ret_diacr[i]; /* pressed twice */ |
i | 1142 | kernel/chr_drv/keyboard.c | diacr=i; /* key is dead */ |
i | 1340 | kernel/chr_drv/keyboard.c | int i; |
i | 1347 | kernel/chr_drv/keyboard.c | for(i=0; i<0x20000; i++) { |
i | 1406 | kernel/chr_drv/keyboard.c | int i, j; |
i | 1414 | kernel/chr_drv/keyboard.c | for (i=0; i<100; i++) { |
i | 1493 | kernel/chr_drv/keyboard.c | int i; |
i | 1497 | kernel/chr_drv/keyboard.c | for (i = 0 ; i < NR_CONSOLES ; i++,kbd++) { |
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 | 102 | kernel/chr_drv/msbusmouse.c | int i; |
i | 119 | kernel/chr_drv/msbusmouse.c | for (i = 3; i < count; i++) |
i | 120 | kernel/chr_drv/msbusmouse.c | put_fs_byte(0x00, buffer + i); |
i | 125 | kernel/chr_drv/msbusmouse.c | return i; |
i | 155 | kernel/chr_drv/msbusmouse.c | int i, delay_val, msfound = 1; |
i | 170 | kernel/chr_drv/msbusmouse.c | for (i = 0; i < 4; i++) { |
i | 203 | kernel/chr_drv/psaux.c | int i = count; |
i | 205 | kernel/chr_drv/psaux.c | while (i--) { |
i | 225 | kernel/chr_drv/psaux.c | int i = count; |
i | 241 | kernel/chr_drv/psaux.c | while (i > 0 && !queue_empty()) { |
i | 244 | kernel/chr_drv/psaux.c | i--; |
i | 247 | kernel/chr_drv/psaux.c | if (count-i) { |
i | 249 | kernel/chr_drv/psaux.c | return count-i; |
i | 306 | kernel/chr_drv/serial.c | int i, mask; |
i | 310 | kernel/chr_drv/serial.c | for (i=0, mask = 1; mask <= IRQ_active; i++, mask <<= 1) { |
i | 313 | kernel/chr_drv/serial.c | if (IRQ_timer[i] < timeout) |
i | 314 | kernel/chr_drv/serial.c | timeout = IRQ_timer[i]; |
i | 418 | kernel/chr_drv/serial.c | int i; |
i | 421 | kernel/chr_drv/serial.c | for (i = 0, info = rs_table; i < NR_PORTS; i++,info++) { |
i | 422 | kernel/chr_drv/serial.c | if (!clear_bit(i, rs_event)) { |
i | 455 | kernel/chr_drv/serial.c | int i, mask; |
i | 458 | kernel/chr_drv/serial.c | for (i = 0, mask = 1; mask <= IRQ_active; i++, mask <<= 1) { |
i | 459 | kernel/chr_drv/serial.c | if ((mask & IRQ_active) && (IRQ_timer[i] <= jiffies)) { |
i | 461 | kernel/chr_drv/serial.c | if (i) { |
i | 463 | kernel/chr_drv/serial.c | rs_interrupt(i); |
i | 466 | kernel/chr_drv/serial.c | rs_interrupt(i); |
i | 469 | kernel/chr_drv/serial.c | if (!timeout || (IRQ_timer[i] < timeout)) |
i | 470 | kernel/chr_drv/serial.c | timeout = IRQ_timer[i]; |
i | 620 | kernel/chr_drv/serial.c | int i; |
i | 630 | kernel/chr_drv/serial.c | i = cflag & CBAUD; |
i | 631 | kernel/chr_drv/serial.c | if (i == 15) { |
i | 633 | kernel/chr_drv/serial.c | i += 1; |
i | 635 | kernel/chr_drv/serial.c | i += 2; |
i | 642 | kernel/chr_drv/serial.c | } else if (baud_table[i] == 134) { |
i | 645 | kernel/chr_drv/serial.c | } else if (baud_table[i]) { |
i | 646 | kernel/chr_drv/serial.c | quot = info->baud_base / baud_table[i]; |
i | 647 | kernel/chr_drv/serial.c | info->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2; |
i | 1491 | kernel/chr_drv/serial.c | int i; |
i | 1514 | kernel/chr_drv/serial.c | for (i = 0; i < 16; i++) { |
i | 1515 | kernel/chr_drv/serial.c | IRQ_ports[i] = 0; |
i | 1516 | kernel/chr_drv/serial.c | IRQ_timeout[i] = 0; |
i | 1517 | kernel/chr_drv/serial.c | if (!irqaction(i, &sa)) |
i | 1518 | kernel/chr_drv/serial.c | irq_lines |= 1 << i; |
i | 1524 | kernel/chr_drv/serial.c | for (i = 0; i < 16; i++) { |
i | 1525 | kernel/chr_drv/serial.c | if ((rs_triggered & (1 << i)) && |
i | 1526 | kernel/chr_drv/serial.c | (irq_lines & (1 << i))) { |
i | 1527 | kernel/chr_drv/serial.c | irq_lines &= ~(1 << i); |
i | 1528 | kernel/chr_drv/serial.c | printk("Wild interrupt? (IRQ %d)\n", i); |
i | 1529 | kernel/chr_drv/serial.c | free_irq(i); |
i | 1534 | kernel/chr_drv/serial.c | for (i = 0, info = rs_table; i < NR_PORTS; i++,info++) { |
i | 1535 | kernel/chr_drv/serial.c | info->line = i; |
i | 1576 | kernel/chr_drv/serial.c | for (i = 0; i < 16; i++) { |
i | 1577 | kernel/chr_drv/serial.c | if (irq_lines & (1 << i)) |
i | 1578 | kernel/chr_drv/serial.c | free_irq(i); |
i | 922 | kernel/chr_drv/tty_io.c | int i, dev; |
i | 945 | kernel/chr_drv/tty_io.c | i = (ldiscs[tty->disc].read)(tty,file,buf,count); |
i | 947 | kernel/chr_drv/tty_io.c | i = -EIO; |
i | 948 | kernel/chr_drv/tty_io.c | if (i > 0) |
i | 950 | kernel/chr_drv/tty_io.c | return i; |
i | 955 | kernel/chr_drv/tty_io.c | int dev, i, is_console; |
i | 981 | kernel/chr_drv/tty_io.c | i = (ldiscs[tty->disc].write)(tty,file,buf,count); |
i | 983 | kernel/chr_drv/tty_io.c | i = -EIO; |
i | 984 | kernel/chr_drv/tty_io.c | if (i > 0) |
i | 986 | kernel/chr_drv/tty_io.c | return i; |
i | 1332 | kernel/chr_drv/tty_io.c | int i; |
i | 1344 | kernel/chr_drv/tty_io.c | for (i=0; i < NR_FILE; i++) { |
i | 1345 | kernel/chr_drv/tty_io.c | filp = (*p)->filp[i]; |
i | 1416 | kernel/chr_drv/tty_io.c | int i, j, line, mask; |
i | 1421 | kernel/chr_drv/tty_io.c | for (i = 0, line = 0; i < MAX_TTYS / 32; i++) { |
i | 1422 | kernel/chr_drv/tty_io.c | if (!tty_check_write[i]) { |
i | 1427 | kernel/chr_drv/tty_io.c | if (!clear_bit(j, &tty_check_write[i])) { |
i | 1513 | kernel/chr_drv/tty_io.c | int i; |
i | 1521 | kernel/chr_drv/tty_io.c | for (i=0 ; i< MAX_TTYS ; i++) { |
i | 1522 | kernel/chr_drv/tty_io.c | tty_table[i] = 0; |
i | 1523 | kernel/chr_drv/tty_io.c | tty_termios[i] = 0; |
i | 105 | kernel/chr_drv/tty_ioctl.c | int i, n = 0; |
i | 107 | kernel/chr_drv/tty_ioctl.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct tstruct)); |
i | 108 | kernel/chr_drv/tty_ioctl.c | if (i) |
i | 109 | kernel/chr_drv/tty_ioctl.c | return i; |
i | 115 | kernel/chr_drv/tty_ioctl.c | for (i=0 ; i<sizeof(struct task_struct) ; i++) |
i | 126 | kernel/chr_drv/tty_ioctl.c | int i; |
i | 128 | kernel/chr_drv/tty_ioctl.c | i = verify_area(VERIFY_WRITE, termios, sizeof (*termios)); |
i | 129 | kernel/chr_drv/tty_ioctl.c | if (i) |
i | 130 | kernel/chr_drv/tty_ioctl.c | return i; |
i | 131 | kernel/chr_drv/tty_ioctl.c | for (i=0 ; i< (sizeof (*termios)) ; i++) |
i | 132 | kernel/chr_drv/tty_ioctl.c | put_fs_byte( ((char *)tty->termios)[i] , i+(char *)termios ); |
i | 156 | kernel/chr_drv/tty_ioctl.c | int i; |
i | 159 | kernel/chr_drv/tty_ioctl.c | i = check_change(tty, channel); |
i | 160 | kernel/chr_drv/tty_ioctl.c | if (i) |
i | 161 | kernel/chr_drv/tty_ioctl.c | return i; |
i | 162 | kernel/chr_drv/tty_ioctl.c | for (i=0 ; i< (sizeof (*termios)) ; i++) |
i | 163 | kernel/chr_drv/tty_ioctl.c | ((char *)tty->termios)[i]=get_fs_byte(i+(char *)termios); |
i | 178 | kernel/chr_drv/tty_ioctl.c | int i; |
i | 181 | kernel/chr_drv/tty_ioctl.c | i = verify_area(VERIFY_WRITE, termio, sizeof (*termio)); |
i | 182 | kernel/chr_drv/tty_ioctl.c | if (i) |
i | 183 | kernel/chr_drv/tty_ioctl.c | return i; |
i | 189 | kernel/chr_drv/tty_ioctl.c | for(i=0 ; i < NCC ; i++) |
i | 190 | kernel/chr_drv/tty_ioctl.c | tmp_termio.c_cc[i] = tty->termios->c_cc[i]; |
i | 191 | kernel/chr_drv/tty_ioctl.c | for (i=0 ; i< (sizeof (*termio)) ; i++) |
i | 192 | kernel/chr_drv/tty_ioctl.c | put_fs_byte( ((char *)&tmp_termio)[i] , i+(char *)termio ); |
i | 202 | kernel/chr_drv/tty_ioctl.c | int i; |
i | 206 | kernel/chr_drv/tty_ioctl.c | i = check_change(tty, channel); |
i | 207 | kernel/chr_drv/tty_ioctl.c | if (i) |
i | 208 | kernel/chr_drv/tty_ioctl.c | return i; |
i | 209 | kernel/chr_drv/tty_ioctl.c | for (i=0 ; i< (sizeof (*termio)) ; i++) |
i | 210 | kernel/chr_drv/tty_ioctl.c | ((char *)&tmp_termio)[i]=get_fs_byte(i+(char *)termio); |
i | 232 | kernel/chr_drv/tty_ioctl.c | for(i=0 ; i < NCC ; i++) |
i | 233 | kernel/chr_drv/tty_ioctl.c | tty->termios->c_cc[i] = tmp_termio.c_cc[i]; |
i | 243 | kernel/chr_drv/tty_ioctl.c | int i,changed; |
i | 250 | kernel/chr_drv/tty_ioctl.c | for (i = 0; i < sizeof (*ws) ; i++,tmp++) { |
i | 251 | kernel/chr_drv/tty_ioctl.c | c = get_fs_byte(i + (char *) ws); |
i | 264 | kernel/chr_drv/tty_ioctl.c | int i; |
i | 269 | kernel/chr_drv/tty_ioctl.c | i = verify_area(VERIFY_WRITE, ws, sizeof (*ws)); |
i | 270 | kernel/chr_drv/tty_ioctl.c | if (i) |
i | 271 | kernel/chr_drv/tty_ioctl.c | return i; |
i | 273 | kernel/chr_drv/tty_ioctl.c | for (i = 0; i < sizeof (struct winsize) ; i++,tmp++) |
i | 274 | kernel/chr_drv/tty_ioctl.c | put_fs_byte(((char *) &tty->winsize)[i], tmp); |
i | 107 | kernel/chr_drv/vt.c | int console, i; |
i | 140 | kernel/chr_drv/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned char)); |
i | 141 | kernel/chr_drv/vt.c | if (!i) |
i | 143 | kernel/chr_drv/vt.c | return i; |
i | 194 | kernel/chr_drv/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned long)); |
i | 195 | kernel/chr_drv/vt.c | if (!i) |
i | 197 | kernel/chr_drv/vt.c | return i; |
i | 219 | kernel/chr_drv/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned long)); |
i | 220 | kernel/chr_drv/vt.c | if (!i) { |
i | 224 | kernel/chr_drv/vt.c | return i; |
i | 227 | kernel/chr_drv/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned char)); |
i | 228 | kernel/chr_drv/vt.c | if (i) |
i | 229 | kernel/chr_drv/vt.c | return i; |
i | 263 | kernel/chr_drv/vt.c | i = verify_area(VERIFY_WRITE, (void *)vtmode, sizeof(struct vt_mode)); |
i | 264 | kernel/chr_drv/vt.c | if (i) |
i | 265 | kernel/chr_drv/vt.c | return i; |
i | 284 | kernel/chr_drv/vt.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct vt_mode)); |
i | 285 | kernel/chr_drv/vt.c | if (i) |
i | 286 | kernel/chr_drv/vt.c | return i; |
i | 304 | kernel/chr_drv/vt.c | i = verify_area(VERIFY_WRITE,(void *)vtstat, sizeof(struct vt_stat)); |
i | 305 | kernel/chr_drv/vt.c | if (i) |
i | 306 | kernel/chr_drv/vt.c | return i; |
i | 309 | kernel/chr_drv/vt.c | for (i = 1, mask = 2; i <= NR_CONSOLES; ++i, mask <<= 1) |
i | 310 | kernel/chr_drv/vt.c | if (tty_table[i] && tty_table[i]->count > 0) |
i | 320 | kernel/chr_drv/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(long)); |
i | 321 | kernel/chr_drv/vt.c | if (i) |
i | 322 | kernel/chr_drv/vt.c | return i; |
i | 323 | kernel/chr_drv/vt.c | for (i = 1; i <= NR_CONSOLES; ++i) |
i | 324 | kernel/chr_drv/vt.c | if (!tty_table[i] || tty_table[i]->count == 0) |
i | 326 | kernel/chr_drv/vt.c | put_fs_long(i <= NR_CONSOLES ? i : -1, (unsigned long *)arg); |
i | 61 | kernel/exit.c | int i; |
i | 69 | kernel/exit.c | for (i=1 ; i<NR_TASKS ; i++) |
i | 70 | kernel/exit.c | if (task[i] == p) { |
i | 71 | kernel/exit.c | task[i] = NULL; |
i | 87 | kernel/exit.c | int i; |
i | 91 | kernel/exit.c | for (i=0 ; i<NR_TASKS ; i++) |
i | 92 | kernel/exit.c | if (task[i] == p) |
i | 108 | kernel/exit.c | int i; |
i | 110 | kernel/exit.c | for (i=1 ; i<NR_TASKS ; i++) { |
i | 111 | kernel/exit.c | if (!task[i]) |
i | 113 | kernel/exit.c | if (bad_task_ptr(task[i]->p_pptr)) |
i | 115 | kernel/exit.c | task[i]->pid); |
i | 116 | kernel/exit.c | if (bad_task_ptr(task[i]->p_cptr)) |
i | 118 | kernel/exit.c | task[i]->pid); |
i | 119 | kernel/exit.c | if (bad_task_ptr(task[i]->p_ysptr)) |
i | 121 | kernel/exit.c | task[i]->pid); |
i | 122 | kernel/exit.c | if (bad_task_ptr(task[i]->p_osptr)) |
i | 124 | kernel/exit.c | task[i]->pid); |
i | 125 | kernel/exit.c | if (task[i]->p_pptr == task[i]) |
i | 127 | kernel/exit.c | task[i]->pid); |
i | 128 | kernel/exit.c | if (task[i]->p_cptr == task[i]) |
i | 130 | kernel/exit.c | task[i]->pid); |
i | 131 | kernel/exit.c | if (task[i]->p_ysptr == task[i]) |
i | 133 | kernel/exit.c | task[i]->pid); |
i | 134 | kernel/exit.c | if (task[i]->p_osptr == task[i]) |
i | 136 | kernel/exit.c | task[i]->pid); |
i | 137 | kernel/exit.c | if (task[i]->p_osptr) { |
i | 138 | kernel/exit.c | if (task[i]->p_pptr != task[i]->p_osptr->p_pptr) |
i | 141 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid, |
i | 142 | kernel/exit.c | task[i]->p_osptr->p_pptr->pid); |
i | 143 | kernel/exit.c | if (task[i]->p_osptr->p_ysptr != task[i]) |
i | 146 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid); |
i | 148 | kernel/exit.c | if (task[i]->p_ysptr) { |
i | 149 | kernel/exit.c | if (task[i]->p_pptr != task[i]->p_ysptr->p_pptr) |
i | 152 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid, |
i | 153 | kernel/exit.c | task[i]->p_osptr->p_pptr->pid); |
i | 154 | kernel/exit.c | if (task[i]->p_ysptr->p_osptr != task[i]) |
i | 157 | kernel/exit.c | task[i]->pid, task[i]->p_ysptr->pid); |
i | 159 | kernel/exit.c | if (task[i]->p_cptr) { |
i | 160 | kernel/exit.c | if (task[i]->p_cptr->p_pptr != task[i]) |
i | 163 | kernel/exit.c | task[i]->pid, task[i]->p_cptr->pid); |
i | 164 | kernel/exit.c | if (task[i]->p_cptr->p_ysptr) |
i | 167 | kernel/exit.c | task[i]->pid, task[i]->p_cptr->pid); |
i | 331 | kernel/exit.c | int i; |
i | 335 | kernel/exit.c | for (i=0 ; i<NR_OPEN ; i++) |
i | 336 | kernel/exit.c | if (current->filp[i]) |
i | 337 | kernel/exit.c | sys_close(i); |
i | 345 | kernel/exit.c | for (i=0; i < current->numlibraries; i++) { |
i | 346 | kernel/exit.c | iput(current->libraries[i].library); |
i | 347 | kernel/exit.c | current->libraries[i].library = NULL; |
i | 30 | kernel/fork.c | int i, task_nr; |
i | 37 | kernel/fork.c | for(i=0 ; i < NR_TASKS ; i++) { |
i | 38 | kernel/fork.c | if (!task[i]) |
i | 40 | kernel/fork.c | if (task[i]->uid == current->uid) |
i | 42 | kernel/fork.c | if (task[i]->pid == last_pid || task[i]->pgrp == last_pid) |
i | 49 | kernel/fork.c | for(i=1 ; i<NR_TASKS ; i++) |
i | 50 | kernel/fork.c | if (!task[i]) |
i | 54 | kernel/fork.c | task_nr = i; |
i | 74 | kernel/fork.c | int i,nr; |
i | 127 | kernel/fork.c | for (i = 0; i<IO_BITMAP_SIZE ; i++) |
i | 128 | kernel/fork.c | p->tss.io_bitmap[i] = ~0; |
i | 140 | kernel/fork.c | for (i=0; i<NR_OPEN;i++) |
i | 141 | kernel/fork.c | if ((f = p->filp[i]) != NULL) |
i | 149 | kernel/fork.c | for (i=0; i < current->numlibraries ; i++) |
i | 150 | kernel/fork.c | if (current->libraries[i].library) |
i | 151 | 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 | 269 | kernel/irq.c | int i; |
i | 271 | kernel/irq.c | for (i = 0; i < 16 ; i++) |
i | 272 | kernel/irq.c | set_intr_gate(0x20+i,bad_interrupt[i]); |
i | 279 | kernel/irq.c | for (i = 0; i < 32; i++) { |
i | 280 | kernel/irq.c | bh_base[i].routine = NULL; |
i | 281 | kernel/irq.c | bh_base[i].data = NULL; |
i | 75 | kernel/itimer.c | register unsigned long i, j; |
i | 78 | kernel/itimer.c | i = tvtojiffies(&value->it_interval); |
i | 85 | kernel/itimer.c | current->it_real_incr = i; |
i | 89 | kernel/itimer.c | current->it_virt_incr = i; |
i | 93 | kernel/itimer.c | current->it_prof_incr = i; |
i | 50 | kernel/printk.c | unsigned long i, j, count; |
i | 75 | kernel/printk.c | i = 0; |
i | 76 | kernel/printk.c | while (log_size && i < len) { |
i | 83 | kernel/printk.c | i++; |
i | 85 | kernel/printk.c | return i; |
i | 100 | kernel/printk.c | for (i = 0; i < count; i++) { |
i | 106 | kernel/printk.c | return i; |
i | 124 | kernel/printk.c | int i,j; |
i | 127 | kernel/printk.c | i=vsprintf(buf,fmt,args); |
i | 129 | kernel/printk.c | for (j = 0; j < i ; j++) { |
i | 140 | kernel/printk.c | return i; |
i | 151 | kernel/printk.c | int i,j; |
i | 157 | kernel/printk.c | for (i=0,j=0; i < log_size; 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 | 104 | kernel/sched.c | int i,next,c; |
i | 125 | kernel/sched.c | i = NR_TASKS; |
i | 127 | kernel/sched.c | while (--i) { |
i | 131 | kernel/sched.c | c = (*p)->counter, next = i; |
i | 283 | kernel/sched.c | int i; |
i | 286 | kernel/sched.c | for (i=0 ; i<4 ; i++,mask <<= 1) { |
i | 289 | kernel/sched.c | if (mon_timer[i]) { |
i | 290 | kernel/sched.c | if (!--mon_timer[i]) |
i | 291 | kernel/sched.c | wake_up(i+wait_motor); |
i | 292 | kernel/sched.c | } else if (!moff_timer[i]) { |
i | 296 | kernel/sched.c | moff_timer[i]--; |
i | 515 | kernel/sched.c | int i, j; |
i | 520 | kernel/sched.c | i = 0; |
i | 526 | kernel/sched.c | while (i<j && !*(stack++)) |
i | 527 | kernel/sched.c | i++; |
i | 528 | kernel/sched.c | printk("%d/%d chars free in kstack\n",i,j); |
i | 540 | kernel/sched.c | int i; |
i | 543 | kernel/sched.c | for (i=0 ; i<NR_TASKS ; i++) |
i | 544 | kernel/sched.c | if (task[i]) |
i | 545 | kernel/sched.c | show_task(i,task[i]); |
i | 550 | kernel/sched.c | int i; |
i | 559 | kernel/sched.c | for(i=1 ; i<NR_TASKS ; i++) { |
i | 560 | kernel/sched.c | task[i] = NULL; |
i | 329 | kernel/sys.c | int i, error; |
i | 331 | kernel/sys.c | i = CURRENT_TIME; |
i | 336 | kernel/sys.c | put_fs_long(i,(unsigned long *)tloc); |
i | 338 | kernel/sys.c | return i; |
i | 461 | kernel/sys.c | int i; |
i | 469 | kernel/sys.c | for (i=0 ; i<NR_TASKS ; i++) |
i | 470 | kernel/sys.c | if (task[i] && (task[i]->pid == pid) && |
i | 471 | kernel/sys.c | ((task[i]->p_pptr == current) || |
i | 472 | kernel/sys.c | (task[i] == current))) { |
i | 473 | kernel/sys.c | if (task[i]->leader) |
i | 475 | kernel/sys.c | if ((task[i]->session != current->session) || |
i | 479 | kernel/sys.c | task[i]->pgrp = pgid; |
i | 505 | kernel/sys.c | int i; |
i | 508 | kernel/sys.c | i = verify_area(VERIFY_WRITE, grouplist, sizeof(gid_t) * gidsetsize); |
i | 509 | kernel/sys.c | if (i) |
i | 510 | kernel/sys.c | return i; |
i | 512 | kernel/sys.c | for (i = 0; (i < NGROUPS) && (current->groups[i] != NOGROUP); |
i | 513 | kernel/sys.c | i++, grouplist++) { |
i | 515 | kernel/sys.c | if (i >= gidsetsize) |
i | 517 | kernel/sys.c | put_fs_word(current->groups[i], (short *) grouplist); |
i | 520 | kernel/sys.c | return(i); |
i | 525 | kernel/sys.c | int i; |
i | 531 | kernel/sys.c | for (i = 0; i < gidsetsize; i++, grouplist++) { |
i | 532 | kernel/sys.c | current->groups[i] = get_fs_word((unsigned short *) grouplist); |
i | 534 | kernel/sys.c | if (i < NGROUPS) |
i | 535 | kernel/sys.c | current->groups[i] = NOGROUP; |
i | 541 | kernel/sys.c | int i; |
i | 546 | kernel/sys.c | for (i = 0; i < NGROUPS; i++) { |
i | 547 | kernel/sys.c | if (current->groups[i] == NOGROUP) |
i | 549 | kernel/sys.c | if (current->groups[i] == grp) |
i | 593 | kernel/sys.c | int i; |
i | 599 | kernel/sys.c | for (i=0; i < len; i++) { |
i | 600 | kernel/sys.c | if ((system_utsname.nodename[i] = get_fs_byte(name+i)) == 0) |
i | 603 | kernel/sys.c | system_utsname.nodename[i] = 0; |
i | 64 | kernel/traps.c | int i; |
i | 72 | kernel/traps.c | store_TR(i); |
i | 73 | kernel/traps.c | printk("Pid: %d, process nr: %d\n",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 | 184 | kernel/traps.c | int i; |
i | 204 | kernel/traps.c | for (i=18;i<48;i++) |
i | 205 | kernel/traps.c | set_trap_gate(i,&reserved); |
i | 47 | kernel/vsprintf.c | int i=0; |
i | 50 | kernel/vsprintf.c | i = i*10 + *((*s)++) - '0'; |
i | 51 | kernel/vsprintf.c | return i; |
i | 72 | kernel/vsprintf.c | int i; |
i | 88 | kernel/vsprintf.c | i=0; |
i | 90 | kernel/vsprintf.c | tmp[i++]='0'; |
i | 92 | kernel/vsprintf.c | tmp[i++]=digits[do_div(num,base)]; |
i | 93 | kernel/vsprintf.c | if (i>precision) precision=i; |
i | 110 | kernel/vsprintf.c | while(i<precision--) |
i | 112 | kernel/vsprintf.c | while(i-->0) |
i | 113 | kernel/vsprintf.c | *str++ = tmp[i]; |
i | 122 | kernel/vsprintf.c | int i; |
i | 207 | kernel/vsprintf.c | for (i = 0; i < len; ++i) |
i | 265 | kernel/vsprintf.c | int i; |
i | 268 | kernel/vsprintf.c | i=vsprintf(buf,fmt,args); |
i | 270 | kernel/vsprintf.c | return i; |
i | 120 | lib/malloc.c | int i; |
i | 130 | lib/malloc.c | for (i = PAGE_SIZE/sizeof(struct bucket_desc); i > 1; i--) { |
i | 183 | lib/malloc.c | int i; |
i | 227 | lib/malloc.c | for (i=PAGE_SIZE/bdir->size; i > 1; i--) |
i | 114 | mm/memory.c | int i; |
i | 126 | mm/memory.c | for (i = 0 ; i < 768 ; i++,page_dir++) |
i | 137 | mm/memory.c | int i; |
i | 160 | mm/memory.c | for (i = 0 ; i < 1024 ; i++,page_dir++) |
i | 189 | mm/memory.c | int i; |
i | 200 | mm/memory.c | for (i = 0 ; i < 1024 ; i++,old_page_dir++,new_page_dir++) { |
i | 726 | mm/memory.c | int i; |
i | 736 | mm/memory.c | for (i=0; i < (*p)->numlibraries; i++) |
i | 737 | mm/memory.c | if (inode == (*p)->libraries[i].library) |
i | 739 | mm/memory.c | if (i >= (*p)->numlibraries) |
i | 788 | mm/memory.c | unsigned int block,i; |
i | 812 | mm/memory.c | i = tsk->numlibraries; |
i | 813 | mm/memory.c | while (i-- > 0) { |
i | 814 | mm/memory.c | if (address < tsk->libraries[i].start) |
i | 816 | mm/memory.c | block = address - tsk->libraries[i].start; |
i | 817 | mm/memory.c | if (block >= tsk->libraries[i].length + tsk->libraries[i].bss) |
i | 819 | mm/memory.c | inode = tsk->libraries[i].library; |
i | 820 | mm/memory.c | if (block < tsk->libraries[i].length) |
i | 854 | mm/memory.c | for (i=0 ; i<4 ; block++,i++) |
i | 855 | mm/memory.c | nr[i] = bmap(inode,block); |
i | 860 | mm/memory.c | i = address + PAGE_SIZE - tsk->end_data; |
i | 861 | mm/memory.c | if (i > PAGE_SIZE-1) |
i | 862 | mm/memory.c | i = 0; |
i | 864 | mm/memory.c | while (i--) { |
i | 970 | mm/memory.c | int i,free = 0,total = 0,reserved = 0; |
i | 978 | mm/memory.c | i = high_memory >> PAGE_SHIFT; |
i | 979 | mm/memory.c | while (i-- > 0) { |
i | 981 | mm/memory.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 983 | mm/memory.c | else if (!mem_map[i]) |
i | 986 | mm/memory.c | shared += mem_map[i]-1; |
i | 1101 | mm/memory.c | int i; |
i | 1103 | mm/memory.c | i = high_memory >> PAGE_SHIFT; |
i | 1108 | mm/memory.c | while (i-- > 0) { |
i | 1109 | mm/memory.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 1112 | mm/memory.c | if (!mem_map[i]) { |
i | 1116 | mm/memory.c | val->sharedram += mem_map[i]-1; |
i | 83 | mm/swap.c | int i; |
i | 85 | mm/swap.c | for (i = 0; i < 4; i++) |
i | 86 | mm/swap.c | if (!(zones[i] = bmap(p->swap_file,block++))) { |
i | 213 | mm/swap.c | int i; |
i | 231 | mm/swap.c | for (i = 0; i < NR_LAST_FREE_PAGES; i++) |
i | 232 | mm/swap.c | if (last_free_pages[i] == (page & 0xfffff000)) |
i | 330 | mm/swap.c | int i=6; |
i | 332 | mm/swap.c | while (i--) { |
i | 333 | mm/swap.c | if (shrink_buffers(i)) |
i | 335 | mm/swap.c | if (swap_out(i)) |
i | 536 | mm/swap.c | int i; |
i | 540 | mm/swap.c | i = namei(specialfile,&inode); |
i | 541 | mm/swap.c | if (i) |
i | 542 | mm/swap.c | return i; |
i | 561 | mm/swap.c | i = try_to_unuse(type); |
i | 562 | mm/swap.c | if (i) { |
i | 564 | mm/swap.c | return i; |
i | 588 | mm/swap.c | int i,j; |
i | 607 | mm/swap.c | i = namei(specialfile,&swap_inode); |
i | 608 | mm/swap.c | if (i) { |
i | 610 | mm/swap.c | return i; |
i | 624 | mm/swap.c | for (i = 0 ; i < nr_swapfiles ; i++) { |
i | 625 | mm/swap.c | if (i == type) |
i | 627 | mm/swap.c | if (p->swap_device == swap_info[i].swap_device) { |
i | 671 | mm/swap.c | for (i = 1 ; i < SWAP_BITS ; i++) |
i | 672 | mm/swap.c | if (test_bit(i,tmp)) { |
i | 674 | mm/swap.c | p->lowest_bit = i; |
i | 675 | mm/swap.c | p->highest_bit = i; |
i | 690 | mm/swap.c | i = SWAP_BITS; |
i | 691 | mm/swap.c | while (i--) |
i | 692 | mm/swap.c | if (test_bit(i,tmp)) |
i | 693 | mm/swap.c | tmp[i] = 0; |
i | 695 | mm/swap.c | tmp[i] = 128; |
i | 705 | mm/swap.c | unsigned int i, j; |
i | 708 | mm/swap.c | for (i = 0; i < nr_swapfiles; i++) { |
i | 709 | mm/swap.c | if (!(swap_info[i].flags & SWP_USED)) |
i | 712 | mm/swap.c | switch (swap_info[i].swap_map[j]) { |
i | 40 | net/socket.c | int i; |
i | 42 | net/socket.c | for (i = 0; i < NPROTO; ++i) |
i | 43 | net/socket.c | if (proto_table[i].family == family) |
i | 44 | net/socket.c | return proto_table[i].name; |
i | 413 | net/socket.c | int i, fd; |
i | 423 | net/socket.c | for (i = 0; i < NPROTO; ++i) |
i | 424 | net/socket.c | if (proto_table[i].family == family) |
i | 426 | net/socket.c | if (i == NPROTO) { |
i | 430 | net/socket.c | ops = proto_table[i].ops; |
i | 455 | net/socket.c | if ((i = sock->ops->create(sock, protocol)) < 0) { |
i | 457 | net/socket.c | return i; |
i | 471 | net/socket.c | int fd1, fd2, i; |
i | 497 | net/socket.c | if ((i = sock1->ops->socketpair(sock1, sock2)) < 0) { |
i | 500 | net/socket.c | return i; |
i | 522 | net/socket.c | int i; |
i | 527 | net/socket.c | if ((i = sock->ops->bind(sock, umyaddr, addrlen)) < 0) { |
i | 529 | net/socket.c | return i; |
i | 570 | net/socket.c | int i; |
i | 590 | net/socket.c | if ((i = sock->ops->dup(newsock, sock)) < 0) { |
i | 592 | net/socket.c | return i; |
i | 595 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
i | 597 | net/socket.c | if ( i < 0) |
i | 600 | net/socket.c | return (i); |
i | 626 | net/socket.c | int i; |
i | 646 | net/socket.c | i = sock->ops->connect(sock, uservaddr, addrlen, file->f_flags); |
i | 647 | net/socket.c | if (i < 0) { |
i | 649 | net/socket.c | return i; |
i | 960 | net/socket.c | int i, ok; |
i | 964 | net/socket.c | for (i = ok = 0; i < NPROTO; ++i) { |
i | 965 | net/socket.c | if ((*proto_table[i].ops->init)() < 0) { |
i | 967 | net/socket.c | proto_table[i].family, |
i | 968 | net/socket.c | proto_table[i].name); |
i | 969 | net/socket.c | proto_table[i].family = -1; |
i | 157 | net/tcp/arp.c | int i; |
i | 172 | net/tcp/arp.c | for (i = 0; i < arp->hlen; i++) |
i | 181 | net/tcp/arp.c | for (i = 0; i < arp->hlen; i++) |
i | 434 | net/tcp/dev.c | int i; |
i | 436 | net/tcp/dev.c | for (i=0; i < DEV_NUMBUFFS; i++) |
i | 438 | net/tcp/dev.c | while (dev->buffs[i]!=NULL) |
i | 441 | net/tcp/dev.c | skb=(struct sk_buff *)dev->buffs[i]; |
i | 447 | net/tcp/dev.c | dev->buffs[i] = NULL; |
i | 456 | net/tcp/dev.c | dev->buffs[i] = NULL; |
i | 470 | net/tcp/dev.c | dev->buffs[i] = NULL; |
i | 474 | net/tcp/dev.c | dev->buffs[i]= skb->next; |
i | 483 | net/tcp/dev.c | dev->queue_xmit (skb, dev, -i-1); |
i | 70 | net/tcp/eth.c | int i; |
i | 72 | net/tcp/eth.c | for (i =0 ; i < ETHER_ADDR_LEN; i++) |
i | 74 | net/tcp/eth.c | PRINTK (("0x%2X ",eth->saddr[i])); |
i | 79 | net/tcp/eth.c | for (i =0 ; i < ETHER_ADDR_LEN; i++) |
i | 81 | net/tcp/eth.c | PRINTK (("0x%2X ",eth->daddr[i])); |
i | 194 | net/tcp/ip.c | int i; |
i | 196 | net/tcp/ip.c | for (i = 0; i < 4; i++, addr1 >>= 8, addr2 >>= 8) |
i | 215 | net/tcp/ip.c | int i; |
i | 217 | net/tcp/ip.c | for (i = 0; i < MAX_IP_ADDRES; i++) |
i | 219 | net/tcp/ip.c | if (ip_addr[i] == 0) return (0); |
i | 220 | net/tcp/ip.c | result = ip_addr_match (addr, ip_addr[i]); |
i | 440 | net/tcp/ip.c | int i; |
i | 441 | net/tcp/ip.c | for (i = 0; i <MAX_IP_ADDRES; i++) |
i | 443 | net/tcp/ip.c | if (ip_addr[i] == ipc.paddr) |
i | 448 | net/tcp/ip.c | if (i != MAX_IP_ADDRES) |
i | 450 | net/tcp/ip.c | PRINTK (("ip.c: Destroying Identity %8X, entry %d\n", ipc.paddr, i)); |
i | 451 | net/tcp/ip.c | i++; |
i | 453 | net/tcp/ip.c | while (i < MAX_IP_ADDRES) |
i | 455 | net/tcp/ip.c | ip_addr[i-1] = ip_addr[i]; |
i | 456 | net/tcp/ip.c | i++; |
i | 590 | net/tcp/ip.c | int i; |
i | 645 | net/tcp/ip.c | for (i = 0; i < opt->loose_route.route_size; i++) |
i | 647 | net/tcp/ip.c | opt->loose_route.route[i]=*(unsigned long *)buff; |
i | 663 | net/tcp/ip.c | for (i = 0; i < opt->strict_route.route_size; i++) |
i | 665 | net/tcp/ip.c | opt->strict_route.route[i]=*(unsigned long *)buff; |
i | 680 | net/tcp/ip.c | for (i = 0; i < opt->record_route.route_size; i++) |
i | 682 | net/tcp/ip.c | opt->record_route.route[i]=*(unsigned long *)buff; |
i | 705 | net/tcp/ip.c | for (i = 0; i < opt->tstamp.len; i++) |
i | 707 | net/tcp/ip.c | opt->tstamp.data[i] = *(unsigned long *)buff; |
i | 318 | net/tcp/sock.c | int i,j; |
i | 331 | net/tcp/sock.c | for (i=0; i < SOCK_ARRAY_SIZE; i++) |
i | 334 | net/tcp/sock.c | sk = prot->sock_array[(i+base+1) & (SOCK_ARRAY_SIZE -1)]; |
i | 342 | net/tcp/sock.c | start = (i+1+start )%1024; |
i | 344 | net/tcp/sock.c | i+base+1,start)); |
i | 345 | net/tcp/sock.c | return (i+base+1); |
i | 349 | net/tcp/sock.c | best = i; |
i | 538 | net/tcp/sock.c | int i; |
i | 559 | net/tcp/sock.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 561 | net/tcp/sock.c | if (skb->dev && skb->dev->buffs[i] == skb) |
i | 571 | net/tcp/sock.c | skb->dev->buffs[i]= skb->next; |
i | 592 | net/tcp/sock.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 594 | net/tcp/sock.c | if (skb->dev && skb->dev->buffs[i] == skb) |
i | 604 | net/tcp/sock.c | skb->dev->buffs[i]= NULL; |
i | 878 | net/tcp/sock.c | int i; |
i | 883 | net/tcp/sock.c | for (i = 0; i < SOCK_ARRAY_SIZE; i++) |
i | 885 | net/tcp/sock.c | tcp_prot.sock_array[i] = NULL; |
i | 886 | net/tcp/sock.c | udp_prot.sock_array[i] = NULL; |
i | 887 | net/tcp/sock.c | raw_prot.sock_array[i] = NULL; |
i | 2078 | net/tcp/tcp.c | int i; |
i | 2084 | net/tcp/tcp.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 2086 | net/tcp/tcp.c | if (skb->dev->buffs[i] == skb) |
i | 2089 | net/tcp/tcp.c | skb->dev->buffs[i] = NULL; |
i | 2091 | net/tcp/tcp.c | skb->dev->buffs[i] = skb->next; |
i | 2168 | net/tcp/tcp.c | int i; |
i | 2174 | net/tcp/tcp.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 2176 | net/tcp/tcp.c | if (oskb->dev->buffs[i] == oskb) |
i | 2179 | net/tcp/tcp.c | oskb->dev->buffs[i]= NULL; |
i | 2181 | net/tcp/tcp.c | oskb->dev->buffs[i] = oskb->next; |
i | 146 | net/tcp/we.c | int i; |
i | 176 | net/tcp/we.c | for (i=0; i < ETHER_ADDR_LEN; i++) |
i | 178 | net/tcp/we.c | outb_p(dev->dev_addr[i],WD_PAR0+i); |
i | 183 | net/tcp/we.c | for (i=0; i < ETHER_ADDR_LEN; i++) |
i | 185 | net/tcp/we.c | outb_p(dev->broadcast[i],WD_MAR0+i); |
i | 642 | net/tcp/we.c | int i; |
i | 644 | net/tcp/we.c | for (i = 0; i < 8; i++) |
i | 646 | net/tcp/we.c | csum += inb_p(WD_ROM+i); |
i | 668 | net/tcp/we.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 669 | net/tcp/we.c | dev->buffs[i] = NULL; |
i | 673 | net/tcp/we.c | for (i = 0; i < 8; i++) { |
i | 674 | net/tcp/we.c | if( inb_p( EN_SAPROM+i ) != inb_p( EN_CMD+i) ){ |
i | 693 | net/tcp/we.c | for (i = dev->mem_start; i < dev->mem_end; i++) |
i | 695 | net/tcp/we.c | *((unsigned char *)i) = 0; |
i | 696 | net/tcp/we.c | if (*((unsigned char *)i) != 0) |
i | 699 | net/tcp/we.c | if( (i - dev->mem_start) > 4096 ) |
i | 706 | net/tcp/we.c | max_pages = ( i - dev->mem_start )/256; |
i | 709 | net/tcp/we.c | dev->rmem_end = i; |
i | 710 | net/tcp/we.c | dev->mem_end = i; |
i | 715 | net/tcp/we.c | for (i = 0; i <ETHER_ADDR_LEN; i++) |
i | 717 | net/tcp/we.c | dev->dev_addr[i]=inb_p(WD_ROM+i); |
i | 718 | net/tcp/we.c | dev->broadcast[i]=0xff; |
i | 719 | net/tcp/we.c | printk ("%2.2X ",dev->dev_addr[i]); |
i | 723 | net/tcp/we.c | for( i = 0; i < sizeof( struct enet_statistics ); i++ ) |
i | 724 | net/tcp/we.c | ((char *)&stats)[i] = 0; |
i | 335 | net/unix.c | int i; |
i | 358 | net/unix.c | i = do_mknod(fname, S_IFSOCK | 0777, 0); |
i | 359 | net/unix.c | if (i == 0) |
i | 360 | net/unix.c | i = open_namei(fname, 0, S_IFSOCK, &upd->inode, NULL); |
i | 361 | net/unix.c | if (i < 0) { |
i | 363 | net/unix.c | return i; |
i | 383 | net/unix.c | int i; |
i | 420 | net/unix.c | i = open_namei(fname, 0, S_IFSOCK, &inode, NULL); |
i | 421 | net/unix.c | if (i < 0) { |
i | 423 | net/unix.c | return i; |
i | 432 | net/unix.c | if ((i = sock_awaitconn(sock, serv_upd->socket)) < 0) { |
i | 434 | net/unix.c | return i; |
i | 87 | tools/build.c | int i,c,id, sz; |
i | 120 | tools/build.c | for (i=0;i<sizeof buf; i++) buf[i]=0; |
i | 137 | tools/build.c | i=read(id,buf,sizeof buf); |
i | 138 | tools/build.c | fprintf(stderr,"Boot sector %d bytes.\n",i); |
i | 139 | tools/build.c | if (i != 512) |
i | 145 | tools/build.c | i=write(1,buf,512); |
i | 146 | tools/build.c | if (i!=512) |
i | 166 | tools/build.c | for (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c ) |
i | 172 | tools/build.c | if (i > SETUP_SECTS*512) |
i | 175 | tools/build.c | fprintf(stderr,"Setup is %d bytes.\n",i); |
i | 178 | tools/build.c | while (i<SETUP_SECTS*512) { |
i | 179 | tools/build.c | c = SETUP_SECTS*512-i; |
i | 184 | tools/build.c | i += c; |
i | 118 | zBoot/inflate.c | register unsigned i; /* counter, current code */ |
i | 137 | zBoot/inflate.c | p = b; i = n; |
i | 140 | zBoot/inflate.c | } while (--i); |
i | 158 | zBoot/inflate.c | for (i = BMAX; i; i--) |
i | 159 | zBoot/inflate.c | if (c[i]) |
i | 161 | zBoot/inflate.c | g = i; /* maximum code length */ |
i | 162 | zBoot/inflate.c | if ((unsigned)l > i) |
i | 163 | zBoot/inflate.c | l = i; |
i | 169 | zBoot/inflate.c | for (y = 1 << j; j < i; j++, y <<= 1) |
i | 172 | zBoot/inflate.c | if ((y -= c[i]) < 0) |
i | 174 | zBoot/inflate.c | c[i] += y; |
i | 181 | zBoot/inflate.c | while (--i) { /* note that i == g from above */ |
i | 188 | zBoot/inflate.c | p = b; i = 0; |
i | 191 | zBoot/inflate.c | v[x[j]++] = i; |
i | 192 | zBoot/inflate.c | } while (++i < n); |
i | 197 | zBoot/inflate.c | x[0] = i = 0; /* first Huffman code is zero */ |
i | 259 | zBoot/inflate.c | x[h] = i; /* save pattern for backing up */ |
i | 263 | zBoot/inflate.c | j = i >> (w - l); /* (get around Turbo C bug) */ |
i | 288 | zBoot/inflate.c | for (j = i >> w; j < z; j += f) |
i | 292 | zBoot/inflate.c | for (j = 1 << (k - 1); i & j; j >>= 1) |
i | 293 | zBoot/inflate.c | i ^= j; |
i | 294 | zBoot/inflate.c | i ^= j; |
i | 297 | zBoot/inflate.c | while ((i & ((1 << w) - 1)) != x[h]) |
i | 503 | zBoot/inflate.c | int i; /* temporary variable */ |
i | 513 | zBoot/inflate.c | for (i = 0; i < 144; i++) |
i | 514 | zBoot/inflate.c | l[i] = 8; |
i | 515 | zBoot/inflate.c | for (; i < 256; i++) |
i | 516 | zBoot/inflate.c | l[i] = 9; |
i | 517 | zBoot/inflate.c | for (; i < 280; i++) |
i | 518 | zBoot/inflate.c | l[i] = 7; |
i | 519 | zBoot/inflate.c | for (; i < 288; i++) /* make a complete, but wrong code set */ |
i | 520 | zBoot/inflate.c | l[i] = 8; |
i | 522 | zBoot/inflate.c | if ((i = huft_build(l, 288, 257, cplens, cplext, &tl, &bl)) != 0) |
i | 523 | zBoot/inflate.c | return i; |
i | 527 | zBoot/inflate.c | for (i = 0; i < 30; i++) /* make an incomplete code set */ |
i | 528 | zBoot/inflate.c | l[i] = 5; |
i | 530 | zBoot/inflate.c | if ((i = huft_build(l, 30, 0, cpdist, cpdext, &td, &bd)) > 1) |
i | 535 | zBoot/inflate.c | return i; |
i | 555 | zBoot/inflate.c | int i; /* temporary variables */ |
i | 615 | zBoot/inflate.c | if ((i = huft_build(ll, 19, 19, NULL, NULL, &tl, &bl)) != 0) |
i | 617 | zBoot/inflate.c | if (i == 1) |
i | 619 | zBoot/inflate.c | return i; /* incomplete code set */ |
i | 627 | zBoot/inflate.c | i = l = 0; |
i | 628 | zBoot/inflate.c | while ((unsigned)i < n) |
i | 635 | zBoot/inflate.c | ll[i++] = l = j; /* save last length in l */ |
i | 641 | zBoot/inflate.c | if ((unsigned)i + j > n) |
i | 644 | zBoot/inflate.c | ll[i++] = l; |
i | 651 | zBoot/inflate.c | if ((unsigned)i + j > n) |
i | 654 | zBoot/inflate.c | ll[i++] = 0; |
i | 662 | zBoot/inflate.c | if ((unsigned)i + j > n) |
i | 665 | zBoot/inflate.c | ll[i++] = 0; |
i | 685 | zBoot/inflate.c | if ((i = huft_build(ll, nl, 257, cplens, cplext, &tl, &bl)) != 0) |
i | 688 | zBoot/inflate.c | if (i == 1) { |
i | 692 | zBoot/inflate.c | return i; /* incomplete code set */ |
i | 696 | zBoot/inflate.c | if ((i = huft_build(ll + nl, nd, 0, cpdist, cpdext, &td, &bd)) != 0) |
i | 699 | zBoot/inflate.c | if (i == 1) { |
i | 702 | zBoot/inflate.c | i = 0; |
i | 708 | zBoot/inflate.c | return i; /* incomplete code set */ |
i | 102 | zBoot/misc.c | int i,n; |
i | 106 | zBoot/misc.c | for (i=0;i<n;i++) |
i | 107 | zBoot/misc.c | if (s[i] == '\n') |
i | 111 | zBoot/misc.c | vidmem[vidp] = s[i]; |
i | 120 | zBoot/misc.c | int i; |
i | 123 | zBoot/misc.c | for (i=0;i<n;i++) ss[i] = c; |
i | 129 | zBoot/misc.c | int i; |
i | 132 | zBoot/misc.c | for (i=0;i<__n;i++) d[i] = s[i]; |
i | 178 | zBoot/misc.c | int len, i; |
i | 187 | zBoot/misc.c | for (i=0;i<len;i++) inbuf[insize+i] = input_data[input_ptr+i]; |
i | 230 | zBoot/misc.c | int i; /* counter for all possible eight bit values */ |
i | 238 | zBoot/misc.c | for (i = 0; i < sizeof(p)/sizeof(int); i++) |
i | 239 | zBoot/misc.c | e |= 1L << (31 - p[i]); |
i | 243 | zBoot/misc.c | for (i = 1; i < 256; i++) |
i | 246 | zBoot/misc.c | for (k = i | 256; k != 1; k >>= 1) |
i | 252 | zBoot/misc.c | crc_32_tab[i] = c; |
i | 38 | zBoot/xtract.c | int i,c,id, sz; |