tag | line | file | source code |
i | 63 | drivers/FPU-emu/errors.c | int i; |
i | 116 | drivers/FPU-emu/errors.c | for ( i = 0; i < 8; i++ ) |
i | 118 | drivers/FPU-emu/errors.c | FPU_REG *r = &st(i); |
i | 127 | drivers/FPU-emu/errors.c | i, r->sign ? '-' : '+'); |
i | 134 | drivers/FPU-emu/errors.c | printk("st(%d) %c .%04lx %04lx %04lx %04lx e%+-6ld ", i, |
i | 234 | drivers/FPU-emu/errors.c | int i, int_type; |
i | 271 | drivers/FPU-emu/errors.c | for (i=0; exception_names[i].type; i++) |
i | 272 | drivers/FPU-emu/errors.c | if ( (exception_names[i].type & n) == exception_names[i].type ) |
i | 275 | drivers/FPU-emu/errors.c | if (exception_names[i].type) |
i | 278 | drivers/FPU-emu/errors.c | printk("FP Exception: %s!\n", exception_names[i].name); |
i | 569 | drivers/FPU-emu/errors.c | void stack_underflow_i(int i) |
i | 575 | drivers/FPU-emu/errors.c | reg_move(&CONST_QNaN, &(st(i))); |
i | 585 | drivers/FPU-emu/errors.c | void stack_underflow_pop(int i) |
i | 591 | drivers/FPU-emu/errors.c | reg_move(&CONST_QNaN, &(st(i))); |
i | 88 | drivers/FPU-emu/fpu_emu.h | #define NOT_EMPTY(i) (st(i).tag != TW_Empty) |
i | 170 | drivers/FPU-emu/fpu_entry.c | int i; |
i | 171 | drivers/FPU-emu/fpu_entry.c | for ( i = 0; i < 8; i++ ) |
i | 175 | drivers/FPU-emu/fpu_entry.c | regs[i].exp = 0; |
i | 176 | drivers/FPU-emu/fpu_entry.c | regs[i].sigh = 0x80000000; |
i | 6 | drivers/FPU-emu/fpu_proto.h | extern void stack_underflow_i(int i); |
i | 7 | drivers/FPU-emu/fpu_proto.h | extern void stack_underflow_pop(int i); |
i | 1024 | drivers/FPU-emu/reg_ld_str.c | int i, precision_loss; |
i | 1050 | drivers/FPU-emu/reg_ld_str.c | for ( i = 0; i < 7; i++) |
i | 1051 | drivers/FPU-emu/reg_ld_str.c | put_fs_byte(0, (unsigned char *) d+i); /* These bytes "undefined" */ |
i | 1068 | drivers/FPU-emu/reg_ld_str.c | for ( i = 0; i < 9; i++) |
i | 1073 | drivers/FPU-emu/reg_ld_str.c | put_fs_byte(b,(unsigned char *) d+i); |
i | 1158 | drivers/FPU-emu/reg_ld_str.c | int i; |
i | 1177 | drivers/FPU-emu/reg_ld_str.c | for ( i = 0; i < 8; i++ ) |
i | 1184 | drivers/FPU-emu/reg_ld_str.c | regs[i].tag = TW_Empty; |
i | 1185 | drivers/FPU-emu/reg_ld_str.c | else if ( regs[i].tag == TW_Empty ) |
i | 1189 | drivers/FPU-emu/reg_ld_str.c | if ( regs[i].exp == EXP_BIAS - EXTENDED_Ebias ) |
i | 1191 | drivers/FPU-emu/reg_ld_str.c | if ( !(regs[i].sigl | regs[i].sigh) ) |
i | 1192 | drivers/FPU-emu/reg_ld_str.c | regs[i].tag = TW_Zero; |
i | 1194 | drivers/FPU-emu/reg_ld_str.c | regs[i].tag = TW_Valid; |
i | 1196 | drivers/FPU-emu/reg_ld_str.c | else if ( regs[i].exp == 0x7fff + EXP_BIAS - EXTENDED_Ebias ) |
i | 1198 | drivers/FPU-emu/reg_ld_str.c | if ( !((regs[i].sigh & ~0x80000000) | regs[i].sigl) ) |
i | 1199 | drivers/FPU-emu/reg_ld_str.c | regs[i].tag = TW_Infinity; |
i | 1201 | drivers/FPU-emu/reg_ld_str.c | regs[i].tag = TW_NaN; |
i | 1204 | drivers/FPU-emu/reg_ld_str.c | regs[i].tag = TW_Valid; |
i | 1221 | drivers/FPU-emu/reg_ld_str.c | int i, stnr; |
i | 1225 | drivers/FPU-emu/reg_ld_str.c | for ( i = 0; i < 8; i++ ) |
i | 1228 | drivers/FPU-emu/reg_ld_str.c | FPU_data_address = (void *)(s+i*10); |
i | 1230 | drivers/FPU-emu/reg_ld_str.c | stnr = (i+top) & 7; |
i | 1248 | drivers/FPU-emu/reg_ld_str.c | int i; |
i | 1250 | drivers/FPU-emu/reg_ld_str.c | for ( i = 7; i >= 0; i-- ) |
i | 1252 | drivers/FPU-emu/reg_ld_str.c | switch ( tag = regs[i].tag ) |
i | 1255 | drivers/FPU-emu/reg_ld_str.c | if ( regs[i].exp <= (EXP_BIAS - EXTENDED_Ebias) ) |
i | 1312 | drivers/FPU-emu/reg_ld_str.c | int i; |
i | 1316 | drivers/FPU-emu/reg_ld_str.c | for ( i = 0; i < 8; i++ ) |
i | 1317 | drivers/FPU-emu/reg_ld_str.c | write_to_extended(®s[(top + i) & 7], d + 10 * i); |
i | 353 | drivers/block/cdu31a.c | int i; |
i | 401 | drivers/block/cdu31a.c | for (i=0; i<8; i++) |
i | 426 | drivers/block/cdu31a.c | for (i=0; i<10; i++) |
i | 481 | drivers/block/cdu31a.c | int i; |
i | 583 | drivers/block/cdu31a.c | for (i=0; i<2048; i++) |
i | 1012 | drivers/block/cdu31a.c | int i; |
i | 1017 | drivers/block/cdu31a.c | for (i = 0; i < num_tracks; i++) |
i | 1019 | drivers/block/cdu31a.c | if (sony_toc->tracks[i].track == track) |
i | 1021 | drivers/block/cdu31a.c | return i; |
i | 1146 | drivers/block/cdu31a.c | int i; |
i | 1242 | drivers/block/cdu31a.c | for (i=1; i<7; i++) |
i | 1244 | drivers/block/cdu31a.c | params[i] = int_to_bcd(params[i]); |
i | 1646 | drivers/block/cdu31a.c | int i; |
i | 1660 | drivers/block/cdu31a.c | i = 0; |
i | 1662 | drivers/block/cdu31a.c | while ( (cdu31a_addresses[i] != 0) |
i | 1665 | drivers/block/cdu31a.c | if (check_region(cdu31a_addresses[i], 4)) { |
i | 1666 | drivers/block/cdu31a.c | i++; |
i | 1669 | drivers/block/cdu31a.c | get_drive_configuration(cdu31a_addresses[i], |
i | 1675 | drivers/block/cdu31a.c | snarf_region(cdu31a_addresses[i], 4); |
i | 1723 | drivers/block/cdu31a.c | i++; |
i | 496 | drivers/block/floppy.c | int i = 0, counter, status; |
i | 503 | drivers/block/floppy.c | return i; |
i | 506 | drivers/block/floppy.c | if (i >= MAX_REPLIES) { |
i | 510 | drivers/block/floppy.c | reply_buffer[i++] = inb_p(FD_DATA); |
i | 842 | drivers/block/floppy.c | short i; |
i | 844 | drivers/block/floppy.c | for (i=0; i<4; i++) { |
i | 871 | drivers/block/floppy.c | int i; |
i | 884 | drivers/block/floppy.c | for (i=0 ; i<1000 ; i++) |
i | 1111 | drivers/block/floppy.c | int i,drive,cnt,okay; |
i | 1136 | drivers/block/floppy.c | i = verify_area(VERIFY_WRITE,(void *) param,sizeof(struct floppy_struct)); |
i | 1137 | drivers/block/floppy.c | if (i) |
i | 1138 | drivers/block/floppy.c | return i; |
i | 96 | drivers/block/genhd.c | int i, minor = current_minor; |
i | 114 | drivers/block/genhd.c | for (i=1 ; i<=4 ; minor++,i++,p++) { |
i | 118 | drivers/block/genhd.c | printk(" %s%c%d", hd->major_name,'a'+(minor >> hd->minor_shift), i); |
i | 132 | drivers/block/genhd.c | for (i = 4 ; i < 16 ; i++, current_minor++) { |
i | 162 | drivers/block/genhd.c | int i; |
i | 170 | drivers/block/genhd.c | for (i=start ; i < j ; i++) |
i | 171 | drivers/block/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
i | 176 | drivers/block/genhd.c | int i; |
i | 182 | drivers/block/genhd.c | for (i = 0 ; i < j; i++) { |
i | 183 | drivers/block/genhd.c | dev->part[i].start_sect = 0; |
i | 184 | drivers/block/genhd.c | dev->part[i].nr_sects = 0; |
i | 191 | drivers/block/genhd.c | for (i=0 ; i < j ; i++) |
i | 192 | drivers/block/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
i | 98 | drivers/block/hd.c | int i; |
i | 103 | drivers/block/hd.c | i = inb_p(0x40); |
i | 104 | drivers/block/hd.c | i |= inb(0x40) << 8; |
i | 106 | drivers/block/hd.c | return(t - i); |
i | 129 | drivers/block/hd.c | int i=inb_p(HD_STATUS); |
i | 131 | drivers/block/hd.c | if ((i & (BUSY_STAT | READY_STAT | WRERR_STAT | SEEK_STAT | ERR_STAT)) |
i | 136 | drivers/block/hd.c | printk("HD: win_result: status = 0x%02x\n",i); |
i | 137 | drivers/block/hd.c | if (i&1) { |
i | 219 | drivers/block/hd.c | unsigned int i; |
i | 222 | drivers/block/hd.c | for (i = 0; i < 500000 ; i++) { |
i | 234 | drivers/block/hd.c | int i; |
i | 238 | drivers/block/hd.c | for(i = 0; i < 1000; i++) nop(); |
i | 248 | drivers/block/hd.c | static int i; |
i | 253 | drivers/block/hd.c | i = -1; |
i | 260 | drivers/block/hd.c | i++; |
i | 261 | drivers/block/hd.c | if (i < NR_HD) { |
i | 262 | drivers/block/hd.c | hd_out(i,hd_info[i].sect,hd_info[i].sect,hd_info[i].head-1, |
i | 263 | drivers/block/hd.c | hd_info[i].cyl,WIN_SPECIFY,&reset_hd); |
i | 319 | drivers/block/hd.c | int i; |
i | 323 | drivers/block/hd.c | i = (unsigned) inb_p(HD_STATUS); |
i | 324 | drivers/block/hd.c | if (i & BUSY_STAT) |
i | 326 | drivers/block/hd.c | if ((i & STAT_MASK) != STAT_OK) |
i | 328 | drivers/block/hd.c | if (i & DRQ_STAT) |
i | 332 | drivers/block/hd.c | printk("HD: read_intr: status = 0x%02x\n",i); |
i | 333 | drivers/block/hd.c | if (i & ERR_STAT) { |
i | 346 | drivers/block/hd.c | i = --CURRENT->nr_sectors; |
i | 350 | drivers/block/hd.c | MINOR(CURRENT->dev), CURRENT->sector, i, CURRENT-> |
i | 353 | drivers/block/hd.c | if (!i || (CURRENT->bh && !SUBSECTOR(i))) |
i | 355 | drivers/block/hd.c | if (i > 0) { |
i | 370 | drivers/block/hd.c | int i; |
i | 374 | drivers/block/hd.c | i = (unsigned) inb_p(HD_STATUS); |
i | 375 | drivers/block/hd.c | if (i & BUSY_STAT) |
i | 377 | drivers/block/hd.c | if ((i & STAT_MASK) != STAT_OK) |
i | 379 | drivers/block/hd.c | if ((CURRENT->nr_sectors <= 1) || (i & DRQ_STAT)) |
i | 383 | drivers/block/hd.c | printk("HD: write_intr: status = 0x%02x\n",i); |
i | 384 | drivers/block/hd.c | if (i & ERR_STAT) { |
i | 394 | drivers/block/hd.c | i = --CURRENT->nr_sectors; |
i | 397 | drivers/block/hd.c | if (!i || (CURRENT->bh && !SUBSECTOR(i))) |
i | 399 | drivers/block/hd.c | if (i > 0) { |
i | 486 | drivers/block/hd.c | int i; |
i | 488 | drivers/block/hd.c | for (i=0; i < NR_HD; i++) |
i | 489 | drivers/block/hd.c | recalibrate[i] = 1; |
i | 645 | drivers/block/hd.c | int drive, i; |
i | 689 | drivers/block/hd.c | i = NR_HD; |
i | 690 | drivers/block/hd.c | while (i-- > 0) { |
i | 691 | drivers/block/hd.c | hd[i<<6].nr_sects = 0; |
i | 692 | drivers/block/hd.c | if (hd_info[i].head > 16) { |
i | 695 | drivers/block/hd.c | printk(" (disk %d: cyl=%d, sect=%d, head=%d)\n", i, |
i | 696 | drivers/block/hd.c | hd_info[i].cyl, |
i | 697 | drivers/block/hd.c | hd_info[i].sect, |
i | 698 | drivers/block/hd.c | hd_info[i].head); |
i | 699 | drivers/block/hd.c | if (i+1 == NR_HD) |
i | 703 | drivers/block/hd.c | hd[i<<6].nr_sects = hd_info[i].head* |
i | 704 | drivers/block/hd.c | hd_info[i].sect*hd_info[i].cyl; |
i | 714 | drivers/block/hd.c | for(i=0;i<(MAX_HD << 6);i++) hd_blocksizes[i] = 1024; |
i | 767 | drivers/block/hd.c | int i; |
i | 784 | drivers/block/hd.c | for (i=max_p - 1; i >=0 ; i--) { |
i | 785 | drivers/block/hd.c | sync_dev(major | start | i); |
i | 786 | drivers/block/hd.c | invalidate_inodes(major | start | i); |
i | 787 | drivers/block/hd.c | invalidate_buffers(major | start | i); |
i | 788 | drivers/block/hd.c | gdev->part[start+i].start_sect = 0; |
i | 789 | drivers/block/hd.c | gdev->part[start+i].nr_sects = 0; |
i | 345 | drivers/block/ll_rw_blk.c | int i; |
i | 367 | drivers/block/ll_rw_blk.c | i = blksize_size[major][MINOR(bh[0]->b_dev)]; |
i | 368 | drivers/block/ll_rw_blk.c | if (i) |
i | 369 | drivers/block/ll_rw_blk.c | correct_size = i; |
i | 373 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
i | 374 | drivers/block/ll_rw_blk.c | if (bh[i] && bh[i]->b_size != correct_size) { |
i | 377 | drivers/block/ll_rw_blk.c | correct_size, bh[i]->b_size); |
i | 401 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
i | 402 | drivers/block/ll_rw_blk.c | if (bh[i]) { |
i | 403 | drivers/block/ll_rw_blk.c | bh[i]->b_req = 1; |
i | 404 | drivers/block/ll_rw_blk.c | make_request(major, rw, bh[i]); |
i | 416 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
i | 417 | drivers/block/ll_rw_blk.c | if (bh[i]) |
i | 418 | drivers/block/ll_rw_blk.c | bh[i]->b_dirt = bh[i]->b_uptodate = 0; |
i | 425 | drivers/block/ll_rw_blk.c | int i; |
i | 446 | drivers/block/ll_rw_blk.c | for (i=0; i<nb; i++, buf += buffersize) |
i | 453 | drivers/block/ll_rw_blk.c | req->sector = (b[i] * buffersize) >> 9; |
i | 189 | drivers/block/mcd.c | int i, st; |
i | 210 | drivers/block/mcd.c | i = updateToc(); |
i | 211 | drivers/block/mcd.c | if (i < 0) |
i | 212 | drivers/block/mcd.c | return i; /* error reading TOC */ |
i | 227 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 239 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 260 | drivers/block/mcd.c | i = mcdPlay(&mcd_Play); |
i | 261 | drivers/block/mcd.c | if (i < 0) |
i | 297 | drivers/block/mcd.c | i = mcdPlay(&mcd_Play); |
i | 298 | drivers/block/mcd.c | if (i < 0) |
i | 311 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 343 | drivers/block/mcd.c | i = mcdPlay(&mcd_Play); |
i | 344 | drivers/block/mcd.c | if (i < 0) |
i | 459 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 460 | drivers/block/mcd.c | if (i < 0) |
i | 474 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 475 | drivers/block/mcd.c | printk("F8 -> %02X\n", i & 0xFF); |
i | 695 | drivers/block/mcd.c | int i; |
i | 699 | drivers/block/mcd.c | i =inb(MCDPORT(1)) & (MFL_STATUS | MFL_DATA); |
i | 700 | drivers/block/mcd.c | if (i == MFL_DATA) |
i | 711 | drivers/block/mcd.c | if (i == (MFL_STATUS | MFL_DATA)) |
i | 920 | drivers/block/mcd.c | int i; |
i | 926 | drivers/block/mcd.c | i = inb(MCDPORT(0)) & 0xFF; |
i | 927 | drivers/block/mcd.c | return i; |
i | 1151 | drivers/block/mcd.c | int i, px; |
i | 1156 | drivers/block/mcd.c | for (i = 0; i < MAX_TRACKS; i++) |
i | 1157 | drivers/block/mcd.c | Toc[i].pointIndex = 0; |
i | 1159 | drivers/block/mcd.c | i = DiskInfo.last + 3; |
i | 1192 | drivers/block/mcd.c | i--; |
i | 1195 | drivers/block/mcd.c | if (i <= 0) |
i | 1210 | drivers/block/mcd.c | for (i = 1; i <= DiskInfo.last; i++) |
i | 1212 | drivers/block/mcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
i | 1213 | drivers/block/mcd.c | Toc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame, |
i | 1214 | drivers/block/mcd.c | Toc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame); |
i | 1215 | drivers/block/mcd.c | for (i = 100; i < 103; i++) |
i | 1217 | drivers/block/mcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
i | 1218 | drivers/block/mcd.c | Toc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame, |
i | 1219 | drivers/block/mcd.c | Toc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame); |
i | 77 | drivers/block/ramdisk.c | int i; |
i | 88 | drivers/block/ramdisk.c | for (i=0; i < length; i++) |
i | 91 | drivers/block/ramdisk.c | for(i=0;i<2;i++) rd_blocksizes[i] = 1024; |
i | 107 | drivers/block/ramdisk.c | int i = 1; |
i | 170 | drivers/block/ramdisk.c | i++; |
i | 85 | drivers/block/xd.c | u_char i,controller,*address; |
i | 104 | drivers/block/xd.c | for (i = 0; i < xd_drives; i++) |
i | 105 | drivers/block/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 | 122 | drivers/block/xd.c | u_char i,j,found = 0; |
i | 131 | drivers/block/xd.c | for (i = 0; i < (sizeof(xd_bases) / sizeof(xd_bases[0])) && !found; i++) |
i | 133 | drivers/block/xd.c | if (!memcmp(xd_bases[i] + xd_sigs[j].offset,xd_sigs[j].string,strlen(xd_sigs[j].string))) { |
i | 135 | drivers/block/xd.c | *address = xd_bases[i]; |
i | 144 | drivers/block/xd.c | u_char i; |
i | 146 | drivers/block/xd.c | for (i = 0; i < xd_drives; i++) { |
i | 147 | drivers/block/xd.c | xd[i << 6].nr_sects = xd_info[i].heads * xd_info[i].cylinders * xd_info[i].sectors; |
i | 148 | drivers/block/xd.c | xd_valid[i] = 1; |
i | 153 | drivers/block/xd.c | for(i=0;i<(XD_MAXDRIVES << 6);i++) xd_blocksizes[i] = 1024; |
i | 458 | drivers/block/xd.c | u_char cmdblk[6],i,count = 0; |
i | 460 | drivers/block/xd.c | for (i = 0; i < XD_MAXDRIVES; i++) { |
i | 461 | drivers/block/xd.c | xd_build(cmdblk,CMD_TESTREADY,i,0,0,0,0,0); |
i | 588 | drivers/block/xd.c | u_char cmdblk[6],i; |
i | 590 | drivers/block/xd.c | for (i = 0; i < 3; i++) { |
i | 591 | drivers/block/xd.c | while (min[i] != max[i] - 1) { |
i | 592 | drivers/block/xd.c | test[i] = (min[i] + max[i]) / 2; |
i | 595 | drivers/block/xd.c | min[i] = test[i]; |
i | 597 | drivers/block/xd.c | max[i] = test[i]; |
i | 599 | drivers/block/xd.c | test[i] = min[i]; |
i | 219 | drivers/char/busmouse.c | int i; |
i | 223 | drivers/char/busmouse.c | for (i = 0; i < 100000; i++) |
i | 613 | drivers/char/console.c | int i; |
i | 615 | drivers/char/console.c | for (i=0;i<=npar;i++) |
i | 616 | drivers/char/console.c | switch (par[i]) { |
i | 655 | drivers/char/console.c | if (par[i] >= 30 && par[i] <= 37) |
i | 656 | drivers/char/console.c | color = color_table[par[i]-30] |
i | 658 | drivers/char/console.c | else if (par[i] >= 40 && par[i] <= 47) |
i | 659 | drivers/char/console.c | color = (color_table[par[i]-40]<<4) |
i | 678 | drivers/char/console.c | int i = 0; |
i | 681 | drivers/char/console.c | buff[i++] = (n%10)+'0'; |
i | 683 | drivers/char/console.c | } while(n && i < 3); /* We'll take no chances */ |
i | 684 | drivers/char/console.c | while (i--) { |
i | 685 | drivers/char/console.c | put_tty_queue(buff[i], &tty->read_q); |
i | 724 | drivers/char/console.c | int i; |
i | 726 | drivers/char/console.c | for (i=0; i<=npar; i++) |
i | 727 | drivers/char/console.c | if (ques) switch(par[i]) { /* DEC private modes set/reset */ |
i | 762 | drivers/char/console.c | } else switch(par[i]) { /* ANSI modes set/reset */ |
i | 805 | drivers/char/console.c | unsigned int i = x; |
i | 809 | drivers/char/console.c | while (i++ < video_num_columns) { |
i | 826 | drivers/char/console.c | unsigned int i = x; |
i | 829 | drivers/char/console.c | while (++i < video_num_columns) { |
i | 1600 | drivers/char/console.c | int i, ps, pe; |
i | 1703 | drivers/char/console.c | for (i = sel_start; i <= sel_end; i += 2) |
i | 1705 | drivers/char/console.c | spos = (char *)off + i; |
i | 1709 | drivers/char/console.c | if (! ((i + 2) % video_size_row)) |
i | 127 | drivers/char/keyboard.c | int i; |
i | 129 | drivers/char/keyboard.c | for (i=0; i<0x10000; i++) |
i | 235 | drivers/char/keyboard.c | int i; |
i | 236 | drivers/char/keyboard.c | for (i = 0; i < sizeof(e0_keys); i++) |
i | 237 | drivers/char/keyboard.c | if (scancode == e0_keys[i]) { |
i | 238 | drivers/char/keyboard.c | scancode = E0_BASE + i; |
i | 239 | drivers/char/keyboard.c | i = -1; |
i | 242 | drivers/char/keyboard.c | if (i != -1) { |
i | 684 | drivers/char/keyboard.c | int i; |
i | 691 | drivers/char/keyboard.c | for(i=0; i<0x20000; i++) { |
i | 750 | drivers/char/keyboard.c | int i, j; |
i | 758 | drivers/char/keyboard.c | for (i=0; i<100; i++) { |
i | 770 | drivers/char/keyboard.c | int i; |
i | 774 | drivers/char/keyboard.c | for (i = 0 ; i < NR_CONSOLES ; i++,kbd++) { |
i | 130 | drivers/char/mem.c | unsigned int i = file->f_pos; |
i | 133 | drivers/char/mem.c | while (count-- > 0 && i < 65536) { |
i | 134 | drivers/char/mem.c | put_fs_byte(inb(i),tmp); |
i | 135 | drivers/char/mem.c | i++; |
i | 138 | drivers/char/mem.c | file->f_pos = i; |
i | 144 | drivers/char/mem.c | unsigned int i = file->f_pos; |
i | 147 | drivers/char/mem.c | while (count-- > 0 && i < 65536) { |
i | 148 | drivers/char/mem.c | outb(get_fs_byte(tmp),i); |
i | 149 | drivers/char/mem.c | i++; |
i | 152 | drivers/char/mem.c | file->f_pos = i; |
i | 107 | drivers/char/msbusmouse.c | int i, dx, dy; |
i | 118 | drivers/char/msbusmouse.c | for (i = 3; i < count; i++) |
i | 119 | drivers/char/msbusmouse.c | put_fs_byte(0x00, buffer + i); |
i | 123 | drivers/char/msbusmouse.c | return i; |
i | 150 | drivers/char/msbusmouse.c | int mse_byte, i; |
i | 160 | drivers/char/msbusmouse.c | for (i = 0; i < 4; i++) { |
i | 337 | drivers/char/psaux.c | int i = count; |
i | 339 | drivers/char/psaux.c | while (i--) { |
i | 359 | drivers/char/psaux.c | int i = count; |
i | 361 | drivers/char/psaux.c | while (i--) { |
i | 379 | drivers/char/psaux.c | int i = count; |
i | 395 | drivers/char/psaux.c | while (i > 0 && !queue_empty()) { |
i | 398 | drivers/char/psaux.c | i--; |
i | 401 | drivers/char/psaux.c | if (count-i) { |
i | 403 | drivers/char/psaux.c | return count-i; |
i | 449 | drivers/char/serial.c | int i, mask; |
i | 453 | drivers/char/serial.c | for (i=0, mask = 1; mask <= IRQ_active; i++, mask <<= 1) { |
i | 456 | drivers/char/serial.c | if (IRQ_timer[i] < timeout) |
i | 457 | drivers/char/serial.c | timeout = IRQ_timer[i]; |
i | 568 | drivers/char/serial.c | int i; |
i | 571 | drivers/char/serial.c | for (i = 0, info = rs_table; i < NR_PORTS; i++,info++) { |
i | 572 | drivers/char/serial.c | if (clear_bit(i, rs_event)) { |
i | 605 | drivers/char/serial.c | int i, mask; |
i | 608 | drivers/char/serial.c | for (i = 0, mask = 1; mask <= IRQ_active; i++, mask <<= 1) { |
i | 609 | drivers/char/serial.c | if ((mask & IRQ_active) && (IRQ_timer[i] <= jiffies)) { |
i | 612 | drivers/char/serial.c | rs_interrupt(i); |
i | 616 | drivers/char/serial.c | if (!timeout || (IRQ_timer[i] < timeout)) |
i | 617 | drivers/char/serial.c | timeout = IRQ_timer[i]; |
i | 644 | drivers/char/serial.c | int i, mask; |
i | 652 | drivers/char/serial.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 653 | drivers/char/serial.c | if (!(mask & dontgrab) && !irqaction(i, &sa)) { |
i | 665 | drivers/char/serial.c | int i; |
i | 667 | drivers/char/serial.c | for (i = 0; i < 16; i++) { |
i | 668 | drivers/char/serial.c | if (irq_lines & (1 << i)) |
i | 669 | drivers/char/serial.c | free_irq(i); |
i | 847 | drivers/char/serial.c | int i; |
i | 857 | drivers/char/serial.c | i = cflag & CBAUD; |
i | 858 | drivers/char/serial.c | if (i == 15) { |
i | 860 | drivers/char/serial.c | i += 1; |
i | 862 | drivers/char/serial.c | i += 2; |
i | 869 | drivers/char/serial.c | } else if (baud_table[i] == 134) { |
i | 872 | drivers/char/serial.c | } else if (baud_table[i]) { |
i | 873 | drivers/char/serial.c | quot = info->baud_base / baud_table[i]; |
i | 874 | drivers/char/serial.c | info->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2; |
i | 1048 | drivers/char/serial.c | unsigned int i,change_irq,change_port; |
i | 1084 | drivers/char/serial.c | for (i = 0 ; i < NR_PORTS; i++) |
i | 1085 | drivers/char/serial.c | if ((info != &rs_table[i]) && |
i | 1086 | drivers/char/serial.c | (rs_table[i].port == new_serial.port) && rs_table[i].type) |
i | 1273 | drivers/char/serial.c | int i, mask; |
i | 1298 | drivers/char/serial.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 1299 | drivers/char/serial.c | if ((rs_triggered & (1 << i)) && |
i | 1300 | drivers/char/serial.c | (irq_lines & (1 << i))) { |
i | 1303 | drivers/char/serial.c | printk("Wild interrupt? (IRQ %d)\n", i); |
i | 1880 | drivers/char/serial.c | int i; |
i | 1892 | drivers/char/serial.c | for (i = 0; i < 16; i++) { |
i | 1893 | drivers/char/serial.c | IRQ_ports[i] = 0; |
i | 1894 | drivers/char/serial.c | IRQ_timeout[i] = 0; |
i | 1898 | drivers/char/serial.c | for (i = 0, info = rs_table; i < NR_PORTS; i++,info++) { |
i | 1899 | drivers/char/serial.c | info->line = i; |
i | 421 | drivers/char/tpqic02.c | int i; |
i | 423 | drivers/char/tpqic02.c | for (i=1; i<NR_OF_EXC; i++) { |
i | 424 | drivers/char/tpqic02.c | if ((s & exception_list[i].mask)==exception_list[i].code) |
i | 425 | drivers/char/tpqic02.c | return i; |
i | 589 | drivers/char/tpqic02.c | int i; |
i | 608 | drivers/char/tpqic02.c | i = TAPE_NOTIFY_TIMEOUT; |
i | 613 | drivers/char/tpqic02.c | while ((inb_p(QIC_STAT_PORT) & QIC_STAT_READY) && (--i>0)) |
i | 615 | drivers/char/tpqic02.c | if (i==0) { |
i | 622 | drivers/char/tpqic02.c | i = TAPE_NOTIFY_TIMEOUT; |
i | 624 | drivers/char/tpqic02.c | while (((inb_p(QIC_STAT_PORT) & QIC_STAT_READY) == 0) && (--i>0)) |
i | 626 | drivers/char/tpqic02.c | if (i==0) { |
i | 702 | drivers/char/tpqic02.c | int i, stat; |
i | 704 | drivers/char/tpqic02.c | for (i=0; i<size; i++) { |
i | 710 | drivers/char/tpqic02.c | stat = notify_cmd(sb[i], ignore_ex); |
i | 867 | drivers/char/tpqic02.c | int stat, i; |
i | 875 | drivers/char/tpqic02.c | for (i=0; i<sizeof(vus); i++) { |
i | 876 | drivers/char/tpqic02.c | if ( i % 8 == 0 ) |
i | 878 | drivers/char/tpqic02.c | printk(" %2x", vus[i] & 0xff); |
i | 1694 | drivers/char/tpqic02.c | int stat, r, i; |
i | 1742 | drivers/char/tpqic02.c | if ( (i = get_dma_residue(TAPE_QIC02_DMA)) != 0 ) { |
i | 1743 | drivers/char/tpqic02.c | printk(TPQIC_NAME ": dma_residue == %x !!!\n", i); |
i | 2328 | drivers/char/tpqic02.c | short i; |
i | 2370 | drivers/char/tpqic02.c | for (i=0; i<sizeof(operation); i++) |
i | 2431 | drivers/char/tpqic02.c | for (i=0; i<sizeof(ioctl_status); i++) |
i | 2464 | drivers/char/tpqic02.c | for (i=0; i<sizeof(ioctl_tell); i++) |
i | 247 | drivers/char/tty_io.c | int i; |
i | 255 | drivers/char/tty_io.c | for (filp = first_file, i=0; i<nr_files; i++, filp = filp->f_next) { |
i | 996 | drivers/char/tty_io.c | int i, dev; |
i | 1019 | drivers/char/tty_io.c | i = (ldiscs[tty->disc].read)(tty,file,buf,count); |
i | 1021 | drivers/char/tty_io.c | i = -EIO; |
i | 1022 | drivers/char/tty_io.c | if (i > 0) |
i | 1024 | drivers/char/tty_io.c | return i; |
i | 1029 | drivers/char/tty_io.c | int dev, i, is_console; |
i | 1055 | drivers/char/tty_io.c | i = (ldiscs[tty->disc].write)(tty,file,buf,count); |
i | 1057 | drivers/char/tty_io.c | i = -EIO; |
i | 1058 | drivers/char/tty_io.c | if (i > 0) |
i | 1060 | drivers/char/tty_io.c | return i; |
i | 1459 | drivers/char/tty_io.c | int i; |
i | 1471 | drivers/char/tty_io.c | for (i=0; i < NR_OPEN; i++) { |
i | 1472 | drivers/char/tty_io.c | filp = (*p)->filp[i]; |
i | 1546 | drivers/char/tty_io.c | int i, j, line, mask; |
i | 1551 | drivers/char/tty_io.c | for (i = 0, line = 0; i < MAX_TTYS / 32; i++) { |
i | 1552 | drivers/char/tty_io.c | if (!tty_check_write[i]) { |
i | 1557 | drivers/char/tty_io.c | if (clear_bit(j, &tty_check_write[i])) { |
i | 1646 | drivers/char/tty_io.c | int i; |
i | 1654 | drivers/char/tty_io.c | for (i=0 ; i< MAX_TTYS ; i++) { |
i | 1655 | drivers/char/tty_io.c | tty_table[i] = 0; |
i | 1656 | drivers/char/tty_io.c | tty_termios[i] = 0; |
i | 116 | drivers/char/tty_ioctl.c | int i, n = 0; |
i | 118 | drivers/char/tty_ioctl.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct tstruct)); |
i | 119 | drivers/char/tty_ioctl.c | if (i) |
i | 120 | drivers/char/tty_ioctl.c | return i; |
i | 126 | drivers/char/tty_ioctl.c | for (i=0 ; i<sizeof(struct task_struct) ; i++) |
i | 139 | drivers/char/tty_ioctl.c | int i; |
i | 153 | drivers/char/tty_ioctl.c | for (i=0; i < NCCS; i++) |
i | 154 | drivers/char/tty_ioctl.c | termios->c_cc[i] = locked->c_cc[i] ? |
i | 155 | drivers/char/tty_ioctl.c | old->c_cc[i] : termios->c_cc[i]; |
i | 160 | drivers/char/tty_ioctl.c | int i; |
i | 162 | drivers/char/tty_ioctl.c | i = verify_area(VERIFY_WRITE, termios, sizeof (*termios)); |
i | 163 | drivers/char/tty_ioctl.c | if (i) |
i | 164 | drivers/char/tty_ioctl.c | return i; |
i | 165 | drivers/char/tty_ioctl.c | for (i=0 ; i< (sizeof (*termios)) ; i++) |
i | 166 | drivers/char/tty_ioctl.c | put_fs_byte( ((char *)tty->termios)[i] , i+(char *)termios ); |
i | 190 | drivers/char/tty_ioctl.c | int i, old_flow, new_flow; |
i | 193 | drivers/char/tty_ioctl.c | i = check_change(tty, channel); |
i | 194 | drivers/char/tty_ioctl.c | if (i) |
i | 195 | drivers/char/tty_ioctl.c | return i; |
i | 196 | drivers/char/tty_ioctl.c | for (i=0 ; i< (sizeof (*termios)) ; i++) |
i | 197 | drivers/char/tty_ioctl.c | ((char *)tty->termios)[i]=get_fs_byte(i+(char *)termios); |
i | 245 | drivers/char/tty_ioctl.c | int i; |
i | 248 | drivers/char/tty_ioctl.c | i = verify_area(VERIFY_WRITE, termio, sizeof (*termio)); |
i | 249 | drivers/char/tty_ioctl.c | if (i) |
i | 250 | drivers/char/tty_ioctl.c | return i; |
i | 256 | drivers/char/tty_ioctl.c | for(i=0 ; i < NCC ; i++) |
i | 257 | drivers/char/tty_ioctl.c | tmp_termio.c_cc[i] = tty->termios->c_cc[i]; |
i | 258 | drivers/char/tty_ioctl.c | for (i=0 ; i< (sizeof (*termio)) ; i++) |
i | 259 | drivers/char/tty_ioctl.c | put_fs_byte( ((char *)&tmp_termio)[i] , i+(char *)termio ); |
i | 266 | drivers/char/tty_ioctl.c | int i, old_flow, new_flow; |
i | 272 | drivers/char/tty_ioctl.c | i = check_change(tty, channel); |
i | 273 | drivers/char/tty_ioctl.c | if (i) |
i | 274 | drivers/char/tty_ioctl.c | return i; |
i | 321 | drivers/char/tty_ioctl.c | int i; |
i | 323 | drivers/char/tty_ioctl.c | i = verify_area(VERIFY_WRITE, termios, sizeof (*termios)); |
i | 324 | drivers/char/tty_ioctl.c | if (i) |
i | 325 | drivers/char/tty_ioctl.c | return i; |
i | 326 | drivers/char/tty_ioctl.c | for (i=0 ; i< (sizeof (*termios)) ; i++) |
i | 327 | drivers/char/tty_ioctl.c | put_fs_byte( ((char *)termios_locked[channel])[i], |
i | 328 | drivers/char/tty_ioctl.c | i+(char *)termios); |
i | 335 | drivers/char/tty_ioctl.c | int i; |
i | 339 | drivers/char/tty_ioctl.c | for (i=0 ; i< (sizeof (*termios)) ; i++) |
i | 340 | drivers/char/tty_ioctl.c | ((char *)termios_locked[channel])[i] = |
i | 341 | drivers/char/tty_ioctl.c | get_fs_byte(i+(char *)termios); |
i | 348 | drivers/char/tty_ioctl.c | int i,changed; |
i | 355 | drivers/char/tty_ioctl.c | for (i = 0; i < sizeof (*ws) ; i++,tmp++) { |
i | 356 | drivers/char/tty_ioctl.c | c = get_fs_byte(i + (char *) ws); |
i | 369 | drivers/char/tty_ioctl.c | int i; |
i | 374 | drivers/char/tty_ioctl.c | i = verify_area(VERIFY_WRITE, ws, sizeof (*ws)); |
i | 375 | drivers/char/tty_ioctl.c | if (i) |
i | 376 | drivers/char/tty_ioctl.c | return i; |
i | 378 | drivers/char/tty_ioctl.c | for (i = 0; i < sizeof (struct winsize) ; i++,tmp++) |
i | 379 | drivers/char/tty_ioctl.c | put_fs_byte(((char *) &tty->winsize)[i], tmp); |
i | 108 | drivers/char/vt.c | int console, i; |
i | 141 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned char)); |
i | 142 | drivers/char/vt.c | if (!i) |
i | 144 | drivers/char/vt.c | return i; |
i | 195 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned long)); |
i | 196 | drivers/char/vt.c | if (!i) |
i | 198 | drivers/char/vt.c | return i; |
i | 224 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned long)); |
i | 225 | drivers/char/vt.c | if (!i) { |
i | 233 | drivers/char/vt.c | return i; |
i | 240 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)a, sizeof(struct kbentry)); |
i | 241 | drivers/char/vt.c | if (i) |
i | 242 | drivers/char/vt.c | return i; |
i | 243 | drivers/char/vt.c | if ((i = get_fs_byte((char *) &a->kb_index)) >= NR_KEYS) |
i | 247 | drivers/char/vt.c | put_fs_word(key_map[s][i], (short *) &a->kb_value); |
i | 257 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)a, sizeof(struct kbentry)); |
i | 258 | drivers/char/vt.c | if (i) |
i | 259 | drivers/char/vt.c | return i; |
i | 260 | drivers/char/vt.c | if ((i = get_fs_byte((char *) &a->kb_index)) >= NR_KEYS) |
i | 268 | drivers/char/vt.c | key_map[s][i] = v; |
i | 278 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)a, sizeof(struct kbsentry)); |
i | 279 | drivers/char/vt.c | if (i) |
i | 280 | drivers/char/vt.c | return i; |
i | 281 | drivers/char/vt.c | if ((i = get_fs_byte(&a->kb_func)) >= NR_FUNC) |
i | 284 | drivers/char/vt.c | for (p = func_table[i]; *p; p++) |
i | 299 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)a, sizeof(struct kbsentry)); |
i | 300 | drivers/char/vt.c | if (i) |
i | 301 | drivers/char/vt.c | return i; |
i | 302 | drivers/char/vt.c | if ((i = get_fs_byte(&a->kb_func)) >= NR_FUNC) |
i | 304 | drivers/char/vt.c | delta = -strlen(func_table[i]); |
i | 314 | drivers/char/vt.c | if (i < NR_FUNC - 1) { |
i | 316 | drivers/char/vt.c | func_table[i + 1] + delta, |
i | 317 | drivers/char/vt.c | func_table[i + 1], |
i | 318 | drivers/char/vt.c | first_free - func_table[i + 1]); |
i | 319 | drivers/char/vt.c | for (k = i + 1; k < NR_FUNC; k++) |
i | 322 | drivers/char/vt.c | for (p = a->kb_string, q = func_table[i]; ; p++, q++) |
i | 329 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned char)); |
i | 330 | drivers/char/vt.c | if (i) |
i | 331 | drivers/char/vt.c | return i; |
i | 365 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)vtmode, sizeof(struct vt_mode)); |
i | 366 | drivers/char/vt.c | if (i) |
i | 367 | drivers/char/vt.c | return i; |
i | 386 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct vt_mode)); |
i | 387 | drivers/char/vt.c | if (i) |
i | 388 | drivers/char/vt.c | return i; |
i | 406 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE,(void *)vtstat, sizeof(struct vt_stat)); |
i | 407 | drivers/char/vt.c | if (i) |
i | 408 | drivers/char/vt.c | return i; |
i | 411 | drivers/char/vt.c | for (i = 1, mask = 2; i <= NR_CONSOLES; ++i, mask <<= 1) |
i | 412 | drivers/char/vt.c | if (tty_table[i] && tty_table[i]->count > 0) |
i | 422 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(long)); |
i | 423 | drivers/char/vt.c | if (i) |
i | 424 | drivers/char/vt.c | return i; |
i | 425 | drivers/char/vt.c | for (i = 1; i <= NR_CONSOLES; ++i) |
i | 426 | drivers/char/vt.c | if (!tty_table[i] || tty_table[i]->count == 0) |
i | 428 | drivers/char/vt.c | put_fs_long(i <= NR_CONSOLES ? i : -1, (unsigned long *)arg); |
i | 141 | drivers/net/3c501.c | int i; |
i | 155 | drivers/net/3c501.c | for (i = 0; i < 6; i++) { |
i | 156 | drivers/net/3c501.c | outw(i, ioaddr + EL1_DATAPTR); |
i | 157 | drivers/net/3c501.c | station_addr[i] = inb(ioaddr + EL1_SAPROM); |
i | 214 | drivers/net/3c501.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 215 | drivers/net/3c501.c | dev->buffs[i] = NULL; |
i | 227 | drivers/net/3c501.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 228 | drivers/net/3c501.c | dev->broadcast[i]=0xff; |
i | 495 | drivers/net/3c501.c | int i; |
i | 496 | drivers/net/3c501.c | for (i = 0; i < 6; i++) /* Set the station address. */ |
i | 497 | drivers/net/3c501.c | outb(dev->dev_addr[i], el_base + i); |
i | 69 | drivers/net/3c503.c | int i; |
i | 72 | drivers/net/3c503.c | for(i = 7; i >= 0; i--, base_bits >>= 1) |
i | 78 | drivers/net/3c503.c | if (check_region(ports[i], 16)) |
i | 81 | drivers/net/3c503.c | if (el2probe1(ports[i], dev)) |
i | 96 | drivers/net/3c503.c | int i; |
i | 97 | drivers/net/3c503.c | for (i = 0; i < 8; i++) { |
i | 99 | drivers/net/3c503.c | if (check_region(ports[i], 16)) |
i | 103 | drivers/net/3c503.c | if (inb_p(ports[i] + 0x408) == 0xff) |
i | 105 | drivers/net/3c503.c | if (inb(ports[i] + 0x403) == (0x80 >> i) /* Preliminary check */ |
i | 106 | drivers/net/3c503.c | && el2probe1(ports[i], dev)) |
i | 118 | drivers/net/3c503.c | int i, iobase_reg, membase_reg, saved_406; |
i | 137 | drivers/net/3c503.c | for (i = 0; i < ETHER_ADDR_LEN; i++) { |
i | 138 | drivers/net/3c503.c | printk(" %2.2X", (station_addr[i] = inb(ioaddr + i))); |
i | 184 | drivers/net/3c503.c | for (i = 1; i < EL2_MEMSIZE/sizeof(mem_base[0]); i++) { |
i | 185 | drivers/net/3c503.c | mem_base[i] = memtest_value; |
i | 187 | drivers/net/3c503.c | || mem_base[i] != memtest_value) { |
i | 193 | drivers/net/3c503.c | mem_base[i] = 0; |
i | 342 | drivers/net/3c503.c | int i; /* Buffer index */ |
i | 370 | drivers/net/3c503.c | for(i = 0; i < count; i++) { |
i | 371 | drivers/net/3c503.c | if (i % 8 == 0) |
i | 373 | drivers/net/3c503.c | if (++boguscount > (i<<3) + 32) { |
i | 375 | drivers/net/3c503.c | dev->name, i, count, boguscount); |
i | 378 | drivers/net/3c503.c | outb(buf[i], E33G_FIFOH); |
i | 390 | drivers/net/3c503.c | unsigned int i; |
i | 422 | drivers/net/3c503.c | for(i = 0; i < count; i++) { |
i | 423 | drivers/net/3c503.c | if (i % 8 == 0) |
i | 425 | drivers/net/3c503.c | if (++boguscount > (i<<3) + 32) { |
i | 427 | drivers/net/3c503.c | dev->name, i, count, boguscount); |
i | 431 | drivers/net/3c503.c | buf[i] = inb_p(E33G_FIFOH); |
i | 285 | drivers/net/3c507.c | ushort lrs_state = 0xff, i; |
i | 294 | drivers/net/3c507.c | for(i = 0; i < 255; i++) { |
i | 329 | drivers/net/3c507.c | int i, irq, irqval; |
i | 349 | drivers/net/3c507.c | for (i = 0; i < 6; i++) { |
i | 350 | drivers/net/3c507.c | dev->dev_addr[i] = inb(ioaddr + i); |
i | 351 | drivers/net/3c507.c | printk(" %02x", dev->dev_addr[i]); |
i | 401 | drivers/net/3c507.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 402 | drivers/net/3c507.c | dev->buffs[i] = NULL; |
i | 414 | drivers/net/3c507.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 415 | drivers/net/3c507.c | dev->broadcast[i]=0xff; |
i | 100 | drivers/net/3c509.c | short lrs_state = 0xff, i; |
i | 114 | drivers/net/3c509.c | for (i = 0; i < 3; i++) |
i | 115 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
i | 129 | drivers/net/3c509.c | for (i = 0; i < 8; i++) |
i | 130 | drivers/net/3c509.c | if ((mca_adaptor_id(i) | 1) == 0x627c) { |
i | 131 | drivers/net/3c509.c | ioaddr = mca_pos_base_addr(i); |
i | 134 | drivers/net/3c509.c | for (i = 0; i < 3; i++) |
i | 135 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
i | 148 | drivers/net/3c509.c | for(i = 0; i < 255; i++) { |
i | 167 | drivers/net/3c509.c | for (i = 0; i < 3; i++) { |
i | 168 | drivers/net/3c509.c | phys_addr[i] = htons(id_read_eeprom(i)); |
i | 209 | drivers/net/3c509.c | for (i = 0; i < 6; i++) |
i | 210 | drivers/net/3c509.c | printk(" %2.2x", dev->dev_addr[i]); |
i | 230 | drivers/net/3c509.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 231 | drivers/net/3c509.c | dev->buffs[i] = NULL; |
i | 243 | drivers/net/3c509.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 244 | drivers/net/3c509.c | dev->broadcast[i]=0xff; |
i | 300 | drivers/net/3c509.c | int i; |
i | 322 | drivers/net/3c509.c | for (i = 0; i < 6; i++) |
i | 323 | drivers/net/3c509.c | outb(dev->dev_addr[i], ioaddr + i); |
i | 434 | drivers/net/3c509.c | int i = 4; |
i | 436 | drivers/net/3c509.c | while (--i > 0 && (tx_status = inb(ioaddr + TX_STATUS)) > 0) { |
i | 455 | drivers/net/3c509.c | int i = 0; |
i | 488 | drivers/net/3c509.c | if (++i > 10) { |
i | 618 | drivers/net/8390.c | int i; |
i | 644 | drivers/net/8390.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 645 | drivers/net/8390.c | dev->buffs[i] = NULL; |
i | 657 | drivers/net/8390.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 658 | drivers/net/8390.c | dev->broadcast[i]=0xff; |
i | 679 | drivers/net/8390.c | int i; |
i | 706 | drivers/net/8390.c | for(i = 0; i < 6; i++) { |
i | 707 | drivers/net/8390.c | outb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i); |
i | 711 | drivers/net/8390.c | for(i = 0; i < 8; i++) |
i | 712 | drivers/net/8390.c | outb_p(0xff, e8390_base + EN1_MULT + i); |
i | 165 | drivers/net/at1700.c | unsigned int i, irq; |
i | 170 | drivers/net/at1700.c | for (i = 0; i < 4; i++) |
i | 171 | drivers/net/at1700.c | if ((inw(ioaddr + 2*i) | signature_invalid[i]) != signature[i]) { |
i | 174 | drivers/net/at1700.c | i, inw(ioaddr + 2*i), signature[i]); |
i | 199 | drivers/net/at1700.c | for(i = 0; i < 3; i++) { |
i | 200 | drivers/net/at1700.c | unsigned short eeprom_val = read_eeprom(ioaddr, 4+i); |
i | 202 | drivers/net/at1700.c | station_address[i] = ntohs(eeprom_val); |
i | 222 | drivers/net/at1700.c | for (i = 0; i < 6; i++) |
i | 223 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
i | 227 | drivers/net/at1700.c | for (i = 0; i < 8; i++) |
i | 228 | drivers/net/at1700.c | outb(0x00, ioaddr + 8 + i); |
i | 258 | drivers/net/at1700.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 259 | drivers/net/at1700.c | dev->buffs[i] = NULL; |
i | 271 | drivers/net/at1700.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 272 | drivers/net/at1700.c | dev->broadcast[i]=0xff; |
i | 288 | drivers/net/at1700.c | int i; |
i | 298 | drivers/net/at1700.c | for (i = 9; i >= 0; i--) { |
i | 299 | drivers/net/at1700.c | short dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0; |
i | 308 | drivers/net/at1700.c | for (i = 16; i > 0; i--) { |
i | 331 | drivers/net/at1700.c | int i; |
i | 337 | drivers/net/at1700.c | for (i = 0; i < 6; i++) |
i | 338 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
i | 342 | drivers/net/at1700.c | for (i = 0; i < 8; i++) |
i | 343 | drivers/net/at1700.c | outb(0x00, ioaddr + 8 + i); |
i | 559 | drivers/net/at1700.c | int i; |
i | 561 | drivers/net/at1700.c | for (i = 0; i < 14; i++) |
i | 562 | drivers/net/at1700.c | printk(" %02x", ((unsigned char*)(skb + 1))[i]); |
i | 586 | drivers/net/at1700.c | int i; |
i | 587 | drivers/net/at1700.c | for (i = 0; i < 20; i++) { |
i | 595 | drivers/net/at1700.c | dev->name, inb(ioaddr + RX_MODE), i); |
i | 62 | drivers/net/auto_irq.c | int i, mask; |
i | 68 | drivers/net/auto_irq.c | for (i = 0; i < 16; i++) { |
i | 69 | drivers/net/auto_irq.c | if (!irqaction(i, &autoirq_sigaction)) |
i | 70 | drivers/net/auto_irq.c | set_bit(i, (void *)&irq_handled); /* irq_handled |= 1 << i;*/ |
i | 79 | drivers/net/auto_irq.c | for (i = 0, mask = 0x01; i < 16; i++, mask <<= 1) { |
i | 83 | drivers/net/auto_irq.c | printk(" Spurious interrupt on IRQ %d\n", i); |
i | 85 | drivers/net/auto_irq.c | free_irq(i); |
i | 93 | drivers/net/auto_irq.c | int i; |
i | 102 | drivers/net/auto_irq.c | for (i = 0; i < 16; i++) { |
i | 103 | drivers/net/auto_irq.c | if (test_bit(i, (void *)&irq_handled)) |
i | 104 | drivers/net/auto_irq.c | free_irq(i); |
i | 559 | drivers/net/d_link.c | int i; |
i | 598 | drivers/net/d_link.c | for (i = size; i > 0; --i, ++buffer) |
i | 615 | drivers/net/d_link.c | int i; |
i | 640 | drivers/net/d_link.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 641 | drivers/net/d_link.c | dev->dev_addr[i] = d_link_read_byte(READ_DATA, dev); |
i | 642 | drivers/net/d_link.c | dev->broadcast[i] = 0xff; |
i | 659 | drivers/net/d_link.c | for (i = 1; i < ETH_ALEN; i++) |
i | 660 | drivers/net/d_link.c | printk(":%2.2X",dev->dev_addr[i]); |
i | 667 | drivers/net/d_link.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 668 | drivers/net/d_link.c | dev->buffs[i] = NULL; |
i | 702 | drivers/net/d_link.c | int i; |
i | 720 | drivers/net/d_link.c | for (i = 0; i < ETH_ALEN; i++) |
i | 721 | drivers/net/d_link.c | d_link_put_byte(dev->dev_addr[i]); |
i | 326 | drivers/net/eexpress.c | int i; |
i | 328 | drivers/net/eexpress.c | for (i = 16; i > 0; i--) |
i | 331 | drivers/net/eexpress.c | for (i = 4; i > 0; i--) { |
i | 347 | drivers/net/eexpress.c | int i; |
i | 368 | drivers/net/eexpress.c | for (i = 0; i < 6; i++) { |
i | 369 | drivers/net/eexpress.c | dev->dev_addr[i] = ((unsigned char*)station_addr)[5-i]; |
i | 370 | drivers/net/eexpress.c | printk(" %02x", dev->dev_addr[i]); |
i | 413 | drivers/net/eexpress.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 414 | drivers/net/eexpress.c | dev->buffs[i] = NULL; |
i | 426 | drivers/net/eexpress.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 427 | drivers/net/eexpress.c | dev->broadcast[i]=0xff; |
i | 723 | drivers/net/eexpress.c | int i; |
i | 732 | drivers/net/eexpress.c | for (i = 8; i >= 0; i--) { |
i | 733 | drivers/net/eexpress.c | short outval = (read_cmd & (1 << i)) ? ctrl_val | EE_DATA_WRITE |
i | 743 | drivers/net/eexpress.c | for (i = 16; i > 0; i--) { |
i | 88 | drivers/net/hp.c | int i; |
i | 116 | drivers/net/hp.c | for(i = 0; i < ETHER_ADDR_LEN; i++) |
i | 117 | drivers/net/hp.c | printk(" %2.2x", station_addr[i] = inb(ioaddr + i)); |
i | 246 | drivers/net/lance.c | int i, reset_val; |
i | 271 | drivers/net/lance.c | for (i = 0; i < 6; i++) |
i | 272 | drivers/net/lance.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 301 | drivers/net/lance.c | for (i = 0; i < 6; i++) |
i | 302 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
i | 376 | drivers/net/lance.c | int i; |
i | 426 | drivers/net/lance.c | i = 0; |
i | 427 | drivers/net/lance.c | while (i++ < 100) |
i | 434 | drivers/net/lance.c | dev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA)); |
i | 444 | drivers/net/lance.c | int i; |
i | 449 | drivers/net/lance.c | for (i = 0; i < RX_RING_SIZE; i++) { |
i | 450 | drivers/net/lance.c | lp->rx_ring[i].base = (lp->rx_buffs + i*PKT_BUF_SZ) | 0x80000000; |
i | 451 | drivers/net/lance.c | lp->rx_ring[i].buf_length = -PKT_BUF_SZ; |
i | 455 | drivers/net/lance.c | for (i = 0; i < TX_RING_SIZE; i++) { |
i | 456 | drivers/net/lance.c | lp->tx_ring[i].base = 0; |
i | 460 | drivers/net/lance.c | for (i = 0; i < 6; i++) |
i | 461 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
i | 487 | drivers/net/lance.c | int i; |
i | 490 | drivers/net/lance.c | for (i = 0 ; i < RX_RING_SIZE; i++) |
i | 491 | drivers/net/lance.c | printk("%s %08x %04x %04x", i & 0x3 ? "" : "\n ", |
i | 492 | drivers/net/lance.c | lp->rx_ring[i].base, -lp->rx_ring[i].buf_length, |
i | 493 | drivers/net/lance.c | lp->rx_ring[i].msg_length); |
i | 494 | drivers/net/lance.c | for (i = 0 ; i < TX_RING_SIZE; i++) |
i | 495 | drivers/net/lance.c | printk(" %s%08x %04x %04x", i & 0x3 ? "" : "\n ", |
i | 496 | drivers/net/lance.c | lp->tx_ring[i].base, -lp->tx_ring[i].length, |
i | 497 | drivers/net/lance.c | lp->tx_ring[i].misc); |
i | 818 | drivers/net/lance.c | int i; |
i | 821 | drivers/net/lance.c | for (i = 0; i < 4; i++) { |
i | 822 | drivers/net/lance.c | outw(8 + i, ioaddr+LANCE_ADDR); |
i | 823 | drivers/net/lance.c | outw(multicast_table[i], ioaddr+LANCE_DATA); |
i | 102 | drivers/net/ne.c | int i; |
i | 150 | drivers/net/ne.c | for (i = 0; i < sizeof(program_seq)/sizeof(program_seq[0]); i++) |
i | 151 | drivers/net/ne.c | outb_p(program_seq[i].value, ioaddr + program_seq[i].offset); |
i | 153 | drivers/net/ne.c | for(i = 0; i < 32 /*sizeof(SA_prom)*/; i+=2) { |
i | 154 | drivers/net/ne.c | SA_prom[i] = inb_p(ioaddr + NE_DATAPORT); |
i | 155 | drivers/net/ne.c | SA_prom[i+1] = inb_p(ioaddr + NE_DATAPORT); |
i | 156 | drivers/net/ne.c | if (SA_prom[i] != SA_prom[i+1]) |
i | 167 | drivers/net/ne.c | for (i = 0; i < 16; i++) |
i | 168 | drivers/net/ne.c | SA_prom[i] = SA_prom[i+i]; |
i | 173 | drivers/net/ne.c | for(i = 0; i < sizeof(SA_prom); i++) |
i | 174 | drivers/net/ne.c | printk(" %2.2x", SA_prom[i]); |
i | 176 | drivers/net/ne.c | for(i = 0; i < ETHER_ADDR_LEN; i++) { |
i | 177 | drivers/net/ne.c | dev->dev_addr[i] = SA_prom[i]; |
i | 178 | drivers/net/ne.c | printk(" %2.2x", SA_prom[i]); |
i | 98 | drivers/net/net_init.c | int i; |
i | 119 | drivers/net/net_init.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 120 | drivers/net/net_init.c | dev->buffs[i] = NULL; |
i | 132 | drivers/net/net_init.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 133 | drivers/net/net_init.c | dev->broadcast[i]=0xff; |
i | 170 | drivers/net/plip.c | int i; |
i | 191 | drivers/net/plip.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 192 | drivers/net/plip.c | dev->buffs[i] = NULL; |
i | 209 | drivers/net/plip.c | for (i = 0; i < dev->addr_len; i++) { |
i | 210 | drivers/net/plip.c | dev->broadcast[i]=0xff; |
i | 211 | drivers/net/plip.c | dev->dev_addr[i] = 0; |
i | 441 | drivers/net/plip.c | int i; |
i | 443 | drivers/net/plip.c | for ( i = 0; i < sizeof(eth); i++, eth_p++) { |
i | 489 | drivers/net/plip.c | int i; |
i | 490 | drivers/net/plip.c | for ( i = 0; i < sizeof(eth); i++) { |
i | 494 | drivers/net/plip.c | for ( i = 0; i < length - sizeof(eth); i++) { |
i | 642 | drivers/net/plip.c | int i; |
i | 644 | drivers/net/plip.c | while ( (i = (inb(dev->base_addr+PAR_STATUS) & 0xe8)) != 0x80 ) { |
i | 645 | drivers/net/plip.c | if (i == 0x78) { |
i | 671 | drivers/net/plip.c | int i; |
i | 675 | drivers/net/plip.c | for ( i = 0; i < ETH_ALEN - 1; i++) |
i | 676 | drivers/net/plip.c | if (eth->h_dest[i] != eth->h_source[i]) |
i | 694 | drivers/net/plip.c | int i; |
i | 700 | drivers/net/plip.c | for ( i = 0; i < sizeof(struct ethhdr); i++ ) { |
i | 707 | drivers/net/plip.c | for (i = 0; i < length - sizeof(struct ethhdr); i++) { |
i | 708 | drivers/net/plip.c | checksum += buf[i]; |
i | 709 | drivers/net/plip.c | if (send_byte(dev, buf[i]) < 0) { |
i | 754 | drivers/net/plip.c | int i; |
i | 758 | drivers/net/plip.c | for (i=0; i < ETH_ALEN - sizeof(unsigned long); i++) { |
i | 759 | drivers/net/plip.c | addr[i] = 0xfd; |
i | 761 | drivers/net/plip.c | memcpy(&(addr[i]), &ipaddr, sizeof(unsigned long)); |
i | 767 | drivers/net/plip.c | int i; |
i | 768 | drivers/net/plip.c | for ( i = ETH_ALEN - 1; i >= 0; i-- ) { |
i | 769 | drivers/net/plip.c | if (eth->h_dest[i] > eth->h_source[i]) return -1; |
i | 770 | drivers/net/plip.c | if (eth->h_dest[i] < eth->h_source[i]) return 1; |
i | 160 | drivers/net/skeleton.c | int i; |
i | 163 | drivers/net/skeleton.c | for (i = 0; i < 6; i++) { |
i | 164 | drivers/net/skeleton.c | station_addr[i] = inb(ioaddr + i); |
i | 223 | drivers/net/skeleton.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 224 | drivers/net/skeleton.c | dev->buffs[i] = NULL; |
i | 236 | drivers/net/skeleton.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 237 | drivers/net/skeleton.c | dev->broadcast[i]=0xff; |
i | 84 | drivers/net/slhc.c | register short i; |
i | 128 | drivers/net/slhc.c | for(i = comp->tslot_limit; i > 0; --i){ |
i | 129 | drivers/net/slhc.c | ts[i].cs_this = i; |
i | 130 | drivers/net/slhc.c | ts[i].next = &(ts[i - 1]); |
i | 536 | drivers/net/slhc.c | register short i; |
i | 537 | drivers/net/slhc.c | i = ntohs(ip->tot_len) - hdrlen; |
i | 538 | drivers/net/slhc.c | thp->ack_seq = htonl( ntohl(thp->ack_seq) + i); |
i | 539 | drivers/net/slhc.c | thp->seq = htonl( ntohl(thp->seq) + i); |
i | 163 | drivers/net/slip.c | int i; |
i | 166 | drivers/net/slip.c | for (i = 0; i < SL_NRUNIT; i++) { |
i | 167 | drivers/net/slip.c | sl = &sl_ctrl[i]; |
i | 180 | drivers/net/slip.c | int i; |
i | 184 | drivers/net/slip.c | for (i = 0; i < SL_NRUNIT; i++) { |
i | 185 | drivers/net/slip.c | sl = &sl_ctrl[i]; |
i | 297 | drivers/net/slip.c | sl_dequeue(struct slip *sl, int i) |
i | 304 | drivers/net/slip.c | sl->rhead -= i; |
i | 305 | drivers/net/slip.c | sl->rcount -= i; |
i | 820 | drivers/net/slip.c | int i; |
i | 822 | drivers/net/slip.c | for (i = 0; i < count; ++i, ++s) { |
i | 867 | drivers/net/slip.c | int i; |
i | 883 | drivers/net/slip.c | for (i = 0; i < len; ++i) { |
i | 884 | drivers/net/slip.c | v = (v << 8) | s[i]; |
i | 907 | drivers/net/slip.c | int i; |
i | 910 | drivers/net/slip.c | for (i = 0; i < count; ++i, ++s) { |
i | 983 | drivers/net/slip.c | int i; |
i | 1000 | drivers/net/slip.c | if ((i = tty_register_ldisc(N_SLIP, &sl_ldisc)) == 0) printk("OK\n"); |
i | 1001 | drivers/net/slip.c | else printk("ERROR: %d\n", i); |
i | 1028 | drivers/net/slip.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 1029 | drivers/net/slip.c | dev->buffs[i] = NULL; |
i | 83 | drivers/net/smc-ultra.c | int i; |
i | 94 | drivers/net/smc-ultra.c | for (i = 0; i < 8; i++) |
i | 95 | drivers/net/smc-ultra.c | checksum += inb(ioaddr + 8 + i); |
i | 100 | drivers/net/smc-ultra.c | for (i = 0; i < 6; i++) |
i | 101 | drivers/net/smc-ultra.c | printk(" %2.2X", station_addr[i] = inb(ioaddr + 8 + i)); |
i | 93 | drivers/net/wd.c | int i; |
i | 100 | drivers/net/wd.c | for (i = 0; i < 8; i++) |
i | 101 | drivers/net/wd.c | checksum += inb(ioaddr + 8 + i); |
i | 106 | drivers/net/wd.c | for (i = 0; i < 6; i++) |
i | 107 | drivers/net/wd.c | printk(" %2.2X", station_addr[i] = inb(ioaddr + 8 + i)); |
i | 133 | drivers/net/wd.c | for (i = 0; i < 6; i++) |
i | 134 | drivers/net/wd.c | if (inb(ioaddr+i) != inb(ioaddr+8+i)) |
i | 136 | drivers/net/wd.c | if (i >= 6) { |
i | 301 | drivers/scsi/NCR5380.c | unsigned char status, data, basr, mr, icr, i; |
i | 310 | drivers/scsi/NCR5380.c | for (i = 0; signals[i].mask ; ++i) |
i | 311 | drivers/scsi/NCR5380.c | if (status & signals[i].mask) |
i | 312 | drivers/scsi/NCR5380.c | printk(" %s", signals[i].name); |
i | 313 | drivers/scsi/NCR5380.c | for (i = 0; basrs[i].mask ; ++i) |
i | 314 | drivers/scsi/NCR5380.c | if (basr & basrs[i].mask) |
i | 315 | drivers/scsi/NCR5380.c | printk(" %s", basrs[i].name); |
i | 316 | drivers/scsi/NCR5380.c | for (i = 0; icrs[i].mask; ++i) |
i | 317 | drivers/scsi/NCR5380.c | if (icr & icrs[i].mask) |
i | 318 | drivers/scsi/NCR5380.c | printk(" %s", icrs[i].name); |
i | 319 | drivers/scsi/NCR5380.c | for (i = 0; mrs[i].mask; ++i) |
i | 320 | drivers/scsi/NCR5380.c | if (mr & mrs[i].mask) |
i | 321 | drivers/scsi/NCR5380.c | printk(" %s", mrs[i].name); |
i | 344 | drivers/scsi/NCR5380.c | int i; |
i | 352 | drivers/scsi/NCR5380.c | for (i = 0; (phases[i].value != PHASE_UNKNOWN) && |
i | 353 | drivers/scsi/NCR5380.c | (phases[i].value != (status & PHASE_MASK)); ++i); |
i | 354 | drivers/scsi/NCR5380.c | printk("scsi%d : phase %s\n", instance->host_no, phases[i].name); |
i | 567 | drivers/scsi/NCR5380.c | int trying_irqs, i, mask; |
i | 570 | drivers/scsi/NCR5380.c | for (trying_irqs = i = 0, mask = 1; i < 16; ++i, mask <<= 1) |
i | 571 | drivers/scsi/NCR5380.c | if ((mask & possible) && (irqaction (i, &probe_sigaction) |
i | 599 | drivers/scsi/NCR5380.c | for (i = 0, mask = 1; i < 16; ++i, mask <<= 1) |
i | 601 | drivers/scsi/NCR5380.c | free_irq(i); |
i | 664 | drivers/scsi/NCR5380.c | int i; |
i | 672 | drivers/scsi/NCR5380.c | for (i = hostdata->id_mask; i <= 0x80; i <<= 1) |
i | 673 | drivers/scsi/NCR5380.c | if (i > hostdata->id_mask) |
i | 674 | drivers/scsi/NCR5380.c | hostdata->id_higher_mask |= i; |
i | 675 | drivers/scsi/NCR5380.c | for (i = 0; i < 8; ++i) |
i | 676 | drivers/scsi/NCR5380.c | hostdata->busy[i] = 0; |
i | 485 | drivers/scsi/aha152x.c | int i; |
i | 491 | drivers/scsi/aha152x.c | for(i=0; i<16; i++) |
i | 492 | drivers/scsi/aha152x.c | SETPORT( STACK, i ); |
i | 495 | drivers/scsi/aha152x.c | for(i=0; i<16 && GETPORT(STACK)==i; i++) |
i | 498 | drivers/scsi/aha152x.c | return(i==16); |
i | 503 | drivers/scsi/aha152x.c | int i, j, ok; |
i | 530 | drivers/scsi/aha152x.c | for( i=0; i<PORT_COUNT && (port_base != ports[i]); i++) |
i | 533 | drivers/scsi/aha152x.c | if(i==PORT_COUNT) |
i | 545 | drivers/scsi/aha152x.c | i=0; |
i | 546 | drivers/scsi/aha152x.c | while(ints[i] && (interrupt_level!=ints[i])) |
i | 547 | drivers/scsi/aha152x.c | i++; |
i | 548 | drivers/scsi/aha152x.c | if(!ints[i]) |
i | 572 | drivers/scsi/aha152x.c | for( i=0; i < ADDRESS_COUNT && !ok; i++) |
i | 574 | drivers/scsi/aha152x.c | ok=!memcmp((void *) addresses[i]+signatures[j].sig_offset, |
i | 591 | drivers/scsi/aha152x.c | for( i=0; i<PORT_COUNT && !aha152x_porttest(ports[i]); i++) |
i | 594 | drivers/scsi/aha152x.c | if(i==PORT_COUNT) |
i | 603 | drivers/scsi/aha152x.c | port_base=ports[i]; |
i | 1100 | drivers/scsi/aha152x.c | int identify_msg, target, i; |
i | 1124 | drivers/scsi/aha152x.c | i = GETPORT(SELID) & ~(1 << this_host); |
i | 1126 | drivers/scsi/aha152x.c | if(i) |
i | 1127 | drivers/scsi/aha152x.c | for( ; (i & 1)==0; target++, i>>=1) |
i | 1144 | drivers/scsi/aha152x.c | if((i=getphase())!=P_MSGI) |
i | 1146 | drivers/scsi/aha152x.c | printk("target doesn't enter MSGI to identify (phase=%02x)\n", i); |
i | 1548 | drivers/scsi/aha152x.c | int i, code; |
i | 1557 | drivers/scsi/aha152x.c | i=GETPORT(SCSIBUS); |
i | 1560 | drivers/scsi/aha152x.c | printk("length (%d), ", i); |
i | 1611 | drivers/scsi/aha152x.c | while( --i && (make_acklow(), getphase()==P_MSGI)) |
i | 1771 | drivers/scsi/aha152x.c | int i; |
i | 1777 | drivers/scsi/aha152x.c | for( i=0; i<2*data_count; i++) |
i | 2313 | drivers/scsi/aha152x.c | int i; |
i | 2318 | drivers/scsi/aha152x.c | for(i=0; i<COMMAND_SIZE(ptr->cmnd[0]); i++) |
i | 2319 | drivers/scsi/aha152x.c | printk("%02x ", ptr->cmnd[i]); |
i | 176 | drivers/scsi/aha1542.c | int i; |
i | 188 | drivers/scsi/aha1542.c | i = jiffies + 2; |
i | 189 | drivers/scsi/aha1542.c | while (i>jiffies); /* Wait a little bit for things to settle down. */ |
i | 362 | drivers/scsi/aha1542.c | int i; |
i | 366 | drivers/scsi/aha1542.c | for (i = 0; i < 12; i++) |
i | 367 | drivers/scsi/aha1542.c | printk("%02x ", ccb[mbo].cdb[ccb[mbo].cdblen+i]); |
i | 399 | drivers/scsi/aha1542.c | DEB(int i); |
i | 422 | drivers/scsi/aha1542.c | i = xscsi2int(cmd+2); |
i | 424 | drivers/scsi/aha1542.c | i = scsi2int(cmd+2); |
i | 426 | drivers/scsi/aha1542.c | i = -1; |
i | 428 | drivers/scsi/aha1542.c | printk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 430 | drivers/scsi/aha1542.c | printk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 433 | drivers/scsi/aha1542.c | for (i = 0; i < (COMMAND_SIZE(*cmd)); i++) printk("%02x ", cmd[i]); |
i | 485 | drivers/scsi/aha1542.c | int i; |
i | 491 | drivers/scsi/aha1542.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 492 | drivers/scsi/aha1542.c | if(sgpnt[i].length == 0 || SCpnt->use_sg > 16 || |
i | 493 | drivers/scsi/aha1542.c | (((int)sgpnt[i].address) & 1) || (sgpnt[i].length & 1)){ |
i | 495 | drivers/scsi/aha1542.c | printk("Bad segment list supplied to aha1542.c (%d, %d)\n",SCpnt->use_sg,i); |
i | 496 | drivers/scsi/aha1542.c | for(i=0;i<SCpnt->use_sg;i++){ |
i | 497 | drivers/scsi/aha1542.c | printk("%d: %x %x %d\n",i,(unsigned int) sgpnt[i].address, (unsigned int) sgpnt[i].alt_address, |
i | 498 | drivers/scsi/aha1542.c | sgpnt[i].length); |
i | 501 | drivers/scsi/aha1542.c | ptr = (unsigned char *) &cptr[i]; |
i | 502 | drivers/scsi/aha1542.c | for(i=0;i<18;i++) printk("%02x ", ptr[i]); |
i | 505 | drivers/scsi/aha1542.c | any2scsi(cptr[i].dataptr, sgpnt[i].address); |
i | 506 | drivers/scsi/aha1542.c | if(((unsigned int) sgpnt[i].address) & 0xff000000) goto baddma; |
i | 507 | drivers/scsi/aha1542.c | any2scsi(cptr[i].datalen, sgpnt[i].length); |
i | 515 | drivers/scsi/aha1542.c | for(i=0;i<18;i++) printk("%02x ", ptr[i]); |
i | 529 | drivers/scsi/aha1542.c | { int i; |
i | 531 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(ccb[mbo])-10; i++) |
i | 532 | drivers/scsi/aha1542.c | printk("%02x ", ((unchar *)&ccb[mbo])[i]); |
i | 570 | drivers/scsi/aha1542.c | int i; |
i | 579 | drivers/scsi/aha1542.c | for(i=0; i<AHA1542_MAILBOXES; i++){ |
i | 580 | drivers/scsi/aha1542.c | mb[i].status = mb[AHA1542_MAILBOXES+i].status = 0; |
i | 581 | drivers/scsi/aha1542.c | any2scsi(mb[i].ccbptr, &ccb[i]); |
i | 598 | drivers/scsi/aha1542.c | int i; |
i | 599 | drivers/scsi/aha1542.c | i = inb(STATUS(base_io)); |
i | 600 | drivers/scsi/aha1542.c | if (i & DF) { |
i | 601 | drivers/scsi/aha1542.c | i = inb(DATA(base_io)); |
i | 664 | drivers/scsi/aha1542.c | int i; |
i | 665 | drivers/scsi/aha1542.c | i = inb(STATUS(base_io)); |
i | 666 | drivers/scsi/aha1542.c | if (i & DF) { |
i | 667 | drivers/scsi/aha1542.c | i = inb(DATA(base_io)); |
i | 777 | drivers/scsi/aha1542.c | int i; |
i | 779 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87; |
i | 780 | drivers/scsi/aha1542.c | for (i = 0; i < 2; ++i) |
i | 781 | drivers/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
i | 783 | drivers/scsi/aha1542.c | i, xscsi2int(buf+4), xscsi2int(buf)); |
i | 789 | drivers/scsi/aha1542.c | for (i = 0; i < 4; ++i) |
i | 796 | drivers/scsi/aha1542.c | xany2scsi(cmd+2, i); |
i | 819 | drivers/scsi/aha1542.c | int aha1542_abort(Scsi_Cmnd * SCpnt, int i) |
i | 246 | drivers/scsi/aha1740.c | DEB(int i); |
i | 263 | drivers/scsi/aha1740.c | i = xscsi2int(cmd+2); |
i | 265 | drivers/scsi/aha1740.c | i = scsi2int(cmd+2); |
i | 267 | drivers/scsi/aha1740.c | i = -1; |
i | 268 | drivers/scsi/aha1740.c | printk("aha1740_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 270 | drivers/scsi/aha1740.c | for (i = 0; i < (COMMAND_SIZE(*cmd)); i++) printk("%02x ", cmd[i]); |
i | 313 | drivers/scsi/aha1740.c | int i; |
i | 322 | drivers/scsi/aha1740.c | for(i=0; i<SCpnt->use_sg; i++) |
i | 324 | drivers/scsi/aha1740.c | cptr[i].dataptr = (long) sgpnt[i].address; |
i | 325 | drivers/scsi/aha1740.c | cptr[i].datalen = sgpnt[i].length; |
i | 332 | drivers/scsi/aha1740.c | for(i=0;i<24;i++) printk("%02x ", ptr[i]); |
i | 352 | drivers/scsi/aha1740.c | int i; |
i | 354 | drivers/scsi/aha1740.c | for (i = 0; i < sizeof(ecb[ecbno])-10; i++) |
i | 355 | drivers/scsi/aha1740.c | printk("%02x ", ((unchar *)&ecb[ecbno])[i]); |
i | 477 | drivers/scsi/aha1740.c | int aha1740_abort(Scsi_Cmnd * SCpnt, int i) |
i | 98 | drivers/scsi/constants.c | int i,s; |
i | 100 | drivers/scsi/constants.c | for ( i = 1, s = COMMAND_SIZE(command[0]); i < s; ++i) |
i | 101 | drivers/scsi/constants.c | printk("%02x ", command[i]); |
i | 362 | drivers/scsi/constants.c | int i, s; |
i | 410 | drivers/scsi/constants.c | for(i=0; additional[i].text; i++) |
i | 411 | drivers/scsi/constants.c | if(additional[i].code1 == sense_buffer[12] && |
i | 412 | drivers/scsi/constants.c | additional[i].code2 == sense_buffer[13]) |
i | 413 | drivers/scsi/constants.c | printk("Additional sense indicates %s\n", additional[i].text); |
i | 415 | drivers/scsi/constants.c | for(i=0; additional2[i].text; i++) |
i | 416 | drivers/scsi/constants.c | if(additional2[i].code1 == sense_buffer[12] && |
i | 417 | drivers/scsi/constants.c | additional2[i].code2_min >= sense_buffer[13] && |
i | 418 | drivers/scsi/constants.c | additional2[i].code2_max <= sense_buffer[13]) { |
i | 420 | drivers/scsi/constants.c | printk(additional2[i].text, sense_buffer[13]); |
i | 440 | drivers/scsi/constants.c | for (i = 0; i < s; ++i) |
i | 441 | drivers/scsi/constants.c | printk("0x%02x ", sense_buffer[i]); |
i | 474 | drivers/scsi/constants.c | int len = 0, i; |
i | 482 | drivers/scsi/constants.c | for (i = 3; i < msg[1]; ++i) |
i | 484 | drivers/scsi/constants.c | for (i = 0; i < msg[1]; ++i) |
i | 486 | drivers/scsi/constants.c | printk("%02x ", msg[i]); |
i | 438 | drivers/scsi/fdomain.c | int i; |
i | 441 | drivers/scsi/fdomain.c | for (i = 0; i < 255; i++) { |
i | 442 | drivers/scsi/fdomain.c | outb( i, port_base + Write_Loopback ); |
i | 444 | drivers/scsi/fdomain.c | if (i != result) |
i | 452 | drivers/scsi/fdomain.c | int i, j; |
i | 470 | drivers/scsi/fdomain.c | for (i = 0; !bios_base && i < ADDRESS_COUNT; i++) { |
i | 472 | drivers/scsi/fdomain.c | printk( " %x(%x),", (unsigned)addresses[i], (unsigned)bios_base ); |
i | 475 | drivers/scsi/fdomain.c | if (!memcmp( ((char *)addresses[i] + signatures[j].sig_offset), |
i | 479 | drivers/scsi/fdomain.c | bios_base = addresses[i]; |
i | 507 | drivers/scsi/fdomain.c | for (flag = 0, i = 0; !flag && i < PORT_COUNT; i++) { |
i | 508 | drivers/scsi/fdomain.c | if (port_base == ports[i]) |
i | 539 | drivers/scsi/fdomain.c | for (i = 0; !flag && i < PORT_COUNT; i++) { |
i | 540 | drivers/scsi/fdomain.c | port_base = ports[i]; |
i | 647 | drivers/scsi/fdomain.c | for (i = 0; i < 8; i++) { |
i | 648 | drivers/scsi/fdomain.c | SCinit.target = i; |
i | 649 | drivers/scsi/fdomain.c | if (i == scsi_hosts[this_host].this_id) /* Skip host adapter */ |
i | 657 | drivers/scsi/fdomain.c | printk( " SCSI ID %d: ", i ); |
i | 1436 | drivers/scsi/fdomain.c | } *i; |
i | 1473 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f31 + drive * 25 ); |
i | 1474 | drivers/scsi/fdomain.c | info_array[0] = i->heads; |
i | 1475 | drivers/scsi/fdomain.c | info_array[1] = i->sectors; |
i | 1476 | drivers/scsi/fdomain.c | info_array[2] = i->cylinders; |
i | 1478 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f71 + drive * 10 ); |
i | 1479 | drivers/scsi/fdomain.c | info_array[0] = i->heads + 1; |
i | 1480 | drivers/scsi/fdomain.c | info_array[1] = i->sectors; |
i | 1481 | drivers/scsi/fdomain.c | info_array[2] = i->cylinders; |
i | 1486 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f71 + drive * 10 ); |
i | 1487 | drivers/scsi/fdomain.c | info_array[0] = i->heads + 1; |
i | 1488 | drivers/scsi/fdomain.c | info_array[1] = i->sectors; |
i | 1489 | drivers/scsi/fdomain.c | info_array[2] = i->cylinders; |
i | 175 | drivers/scsi/hosts.c | struct Scsi_Host * scsi_register(int i, int j){ |
i | 184 | drivers/scsi/hosts.c | retval->hostt = &scsi_hosts[i]; |
i | 187 | drivers/scsi/hosts.c | printk("Register %x %x: %d %d\n", retval, retval->hostt, i, j); |
i | 192 | drivers/scsi/hosts.c | retval->this_id = scsi_hosts[i].this_id; |
i | 193 | drivers/scsi/hosts.c | retval->sg_tablesize = scsi_hosts[i].sg_tablesize; |
i | 194 | drivers/scsi/hosts.c | retval->unchecked_isa_dma = scsi_hosts[i].unchecked_isa_dma; |
i | 212 | drivers/scsi/hosts.c | int i, j, count, pcount; |
i | 220 | drivers/scsi/hosts.c | for (i = 0; i < MAX_SCSI_HOSTS; ++i) |
i | 228 | drivers/scsi/hosts.c | if ((scsi_hosts[i].detect) && |
i | 229 | drivers/scsi/hosts.c | (scsi_hosts[i].present = |
i | 230 | drivers/scsi/hosts.c | scsi_hosts[i].detect(i))) |
i | 235 | drivers/scsi/hosts.c | if(scsi_hosts[i].present > 1) |
i | 239 | drivers/scsi/hosts.c | scsi_register(i,0); |
i | 241 | drivers/scsi/hosts.c | for(j = 0; j < scsi_hosts[i].present; j++) |
i | 243 | drivers/scsi/hosts.c | count++, scsi_hosts[i].name); |
i | 242 | drivers/scsi/hosts.h | extern struct Scsi_Host * scsi_register(int i, int j); |
i | 243 | drivers/scsi/hosts.h | extern void scsi_unregister(struct Scsi_Host * i, int j); |
i | 262 | drivers/scsi/pas16.c | int i; |
i | 269 | drivers/scsi/pas16.c | for (i = 0; i < NO_BASES; ++i) |
i | 270 | drivers/scsi/pas16.c | if (bases[i].io_port == (unsigned short) ints[1]) { |
i | 271 | drivers/scsi/pas16.c | bases[i].noauto = 1; |
i | 422 | drivers/scsi/pas16.c | register i = len; |
i | 426 | drivers/scsi/pas16.c | for (; i; --i) |
i | 455 | drivers/scsi/pas16.c | register i = len; |
i | 458 | drivers/scsi/pas16.c | for (; i; --i) |
i | 144 | drivers/scsi/scsi.c | int i = 0; |
i | 146 | drivers/scsi/scsi.c | for(i=0; 1; i++){ |
i | 147 | drivers/scsi/scsi.c | if(blacklist[i].vendor == NULL) return 0; |
i | 150 | drivers/scsi/scsi.c | if(memcmp(blacklist[i].vendor, pnt, |
i | 151 | drivers/scsi/scsi.c | strlen(blacklist[i].vendor))) continue; |
i | 154 | drivers/scsi/scsi.c | if(memcmp(blacklist[i].model, pnt, |
i | 155 | drivers/scsi/scsi.c | strlen(blacklist[i].model))) continue; |
i | 792 | drivers/scsi/scsi.c | int i; |
i | 797 | drivers/scsi/scsi.c | for (i = 0; i < 10; ++i) |
i | 798 | drivers/scsi/scsi.c | printk ("%02x ", ((unsigned char *) cmnd)[i]); |
i | 1489 | drivers/scsi/scsi.c | int i, j; |
i | 1497 | drivers/scsi/scsi.c | for(i=0;i < (dma_sectors >> 4); i++) |
i | 1499 | drivers/scsi/scsi.c | if ((dma_malloc_freelist[i] & (mask << j)) == 0){ |
i | 1500 | drivers/scsi/scsi.c | dma_malloc_freelist[i] |= (mask << j); |
i | 1504 | drivers/scsi/scsi.c | printk("SMalloc: %d %x ",len, dma_malloc_buffer + (i << 13) + (j << 9)); |
i | 1506 | drivers/scsi/scsi.c | return (void *) ((unsigned long) dma_malloc_buffer + (i << 13) + (j << 9)); |
i | 1553 | drivers/scsi/scsi.c | int i; |
i | 1578 | drivers/scsi/scsi.c | for (i=0; i< NR_SCSI_DEVICES; i++) { |
i | 1580 | drivers/scsi/scsi.c | switch (scsi_devices[i].type) |
i | 1583 | drivers/scsi/scsi.c | st_attach(&scsi_devices[i]); |
i | 1586 | drivers/scsi/scsi.c | sr_attach(&scsi_devices[i]); |
i | 1590 | drivers/scsi/scsi.c | sd_attach(&scsi_devices[i]); |
i | 1594 | drivers/scsi/scsi.c | sg_attach(&scsi_devices[i]); |
i | 1595 | drivers/scsi/scsi.c | if(scsi_devices[i].type != -1){ |
i | 1596 | drivers/scsi/scsi.c | for(j=0;j<scsi_devices[i].host->hostt->cmd_per_lun;j++){ |
i | 1597 | drivers/scsi/scsi.c | SCpnt->host = scsi_devices[i].host; |
i | 1598 | drivers/scsi/scsi.c | SCpnt->target = scsi_devices[i].id; |
i | 1599 | drivers/scsi/scsi.c | SCpnt->lun = scsi_devices[i].lun; |
i | 1600 | drivers/scsi/scsi.c | SCpnt->index = i; |
i | 1607 | drivers/scsi/scsi.c | host = scsi_devices[i].host; |
i | 1623 | drivers/scsi/scsi.c | for (i = 0; i < NR_SCSI_DEVICES; ++i) { |
i | 1625 | drivers/scsi/scsi.c | host = scsi_devices[i].host; |
i | 1627 | drivers/scsi/scsi.c | if(scsi_devices[i].type != TYPE_TAPE) |
i | 1634 | drivers/scsi/scsi.c | scsi_devices[i].type != TYPE_TAPE) { |
i | 1664 | drivers/scsi/scsi.c | int i; |
i | 1667 | drivers/scsi/scsi.c | for (i = 8; i < 16; i++) |
i | 1669 | drivers/scsi/scsi.c | if (data[i] >= 0x20 && i < data[4] + 5) |
i | 1670 | drivers/scsi/scsi.c | printk("%c", data[i]); |
i | 1676 | drivers/scsi/scsi.c | for (i = 16; i < 32; i++) |
i | 1678 | drivers/scsi/scsi.c | if (data[i] >= 0x20 && i < data[4] + 5) |
i | 1679 | drivers/scsi/scsi.c | printk("%c", data[i]); |
i | 1685 | drivers/scsi/scsi.c | for (i = 32; i < 36; i++) |
i | 1687 | drivers/scsi/scsi.c | if (data[i] >= 0x20 && i < data[4] + 5) |
i | 1688 | drivers/scsi/scsi.c | printk("%c", data[i]); |
i | 1695 | drivers/scsi/scsi.c | i = data[0] & 0x1f; |
i | 1698 | drivers/scsi/scsi.c | i < MAX_SCSI_DEVICE_CODE ? scsi_device_types[i] : "Unknown " ); |
i | 93 | drivers/scsi/scsi_debug.c | int i; |
i | 102 | drivers/scsi/scsi_debug.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 103 | drivers/scsi/scsi_debug.c | lpnt = (int *) sgpnt[i].alt_address; |
i | 104 | drivers/scsi/scsi_debug.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 114 | drivers/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 115 | drivers/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 121 | drivers/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 122 | drivers/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 128 | drivers/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 129 | drivers/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 149 | drivers/scsi/scsi_debug.c | int i; |
i | 167 | drivers/scsi/scsi_debug.c | { int i; |
i | 169 | drivers/scsi/scsi_debug.c | for(i=0;i<12;i++) printk("%d ",sense_buffer[i]); |
i | 264 | drivers/scsi/scsi_debug.c | { int i; |
i | 266 | drivers/scsi/scsi_debug.c | for(i=0;i<12;i++) printk("%d ",sense_buffer[i]); |
i | 328 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++){ |
i | 329 | drivers/scsi/scsi_debug.c | if (SCint[i] == 0) break; |
i | 332 | drivers/scsi/scsi_debug.c | if (i >= SCSI_DEBUG_MAILBOXES || SCint[i] != 0) |
i | 335 | drivers/scsi/scsi_debug.c | SCint[i] = SCpnt; |
i | 339 | drivers/scsi/scsi_debug.c | if (do_done[i]) |
i | 342 | drivers/scsi/scsi_debug.c | do_done[i] = done; |
i | 347 | drivers/scsi/scsi_debug.c | timeout[i] = jiffies+DISK_SPEED; |
i | 351 | drivers/scsi/scsi_debug.c | timer_table[SCSI_DEBUG_TIMER].expires = timeout[i]; |
i | 359 | drivers/scsi/scsi_debug.c | printk("Sending command (%d %x %d %d)...", i, done, timeout[i],jiffies); |
i | 389 | drivers/scsi/scsi_debug.c | int i, pending; |
i | 398 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 399 | drivers/scsi/scsi_debug.c | if (SCint[i] == 0) continue; |
i | 400 | drivers/scsi/scsi_debug.c | if (timeout[i] == 0) continue; |
i | 401 | drivers/scsi/scsi_debug.c | if (timeout[i] <= jiffies) break; |
i | 404 | drivers/scsi/scsi_debug.c | if(i == SCSI_DEBUG_MAILBOXES){ |
i | 406 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 407 | drivers/scsi/scsi_debug.c | if (SCint[i] == 0) continue; |
i | 408 | drivers/scsi/scsi_debug.c | if (timeout[i] == 0) continue; |
i | 409 | drivers/scsi/scsi_debug.c | if (timeout[i] <= jiffies) {sti(); goto repeat;}; |
i | 410 | drivers/scsi/scsi_debug.c | if (timeout[i] > jiffies) { |
i | 411 | drivers/scsi/scsi_debug.c | if (pending > timeout[i]) pending = timeout[i]; |
i | 424 | drivers/scsi/scsi_debug.c | if(i < SCSI_DEBUG_MAILBOXES){ |
i | 425 | drivers/scsi/scsi_debug.c | timeout[i] = 0; |
i | 426 | drivers/scsi/scsi_debug.c | my_done = do_done[i]; |
i | 427 | drivers/scsi/scsi_debug.c | do_done[i] = NULL; |
i | 428 | drivers/scsi/scsi_debug.c | to = timeout[i]; |
i | 429 | drivers/scsi/scsi_debug.c | timeout[i] = 0; |
i | 430 | drivers/scsi/scsi_debug.c | SCtmp = (Scsi_Cmnd *) SCint[i]; |
i | 431 | drivers/scsi/scsi_debug.c | SCint[i] = NULL; |
i | 441 | drivers/scsi/scsi_debug.c | printk("...done %d %x %d %d\n",i , my_done, to, jiffies); |
i | 442 | drivers/scsi/scsi_debug.c | printk("In intr_handle: %d %x %x\n",i, SCtmp, my_done); |
i | 462 | drivers/scsi/scsi_debug.c | int scsi_debug_abort(Scsi_Cmnd * SCpnt,int i) |
i | 467 | drivers/scsi/scsi_debug.c | SCpnt->result = i << 16; |
i | 492 | drivers/scsi/scsi_debug.c | int i; |
i | 495 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 496 | drivers/scsi/scsi_debug.c | if (SCint[i] == NULL) continue; |
i | 497 | drivers/scsi/scsi_debug.c | SCint[i]->result = DID_ABORT << 16; |
i | 498 | drivers/scsi/scsi_debug.c | my_done = do_done[i]; |
i | 499 | drivers/scsi/scsi_debug.c | my_done(SCint[i]); |
i | 501 | drivers/scsi/scsi_debug.c | SCint[i] = NULL; |
i | 502 | drivers/scsi/scsi_debug.c | do_done[i] = NULL; |
i | 503 | drivers/scsi/scsi_debug.c | timeout[i] = 0; |
i | 210 | drivers/scsi/scsi_ioctl.c | int i; |
i | 212 | drivers/scsi/scsi_ioctl.c | for (i = 0; i < 12; ++i) |
i | 213 | drivers/scsi/scsi_ioctl.c | printk("%02x ", cmd[i]); |
i | 215 | drivers/scsi/scsi_ioctl.c | for (i = 0; i < 20; ++i) |
i | 216 | drivers/scsi/scsi_ioctl.c | printk("%02x ", buf[i]); |
i | 125 | drivers/scsi/sd.c | int i; |
i | 127 | drivers/scsi/sd.c | for (i = 0; i < NR_SD; ++i) |
i | 128 | drivers/scsi/sd.c | sd[i << 4].nr_sects = rscsi_disks[i].capacity; |
i | 161 | drivers/scsi/sd.c | int i; |
i | 163 | drivers/scsi/sd.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 165 | drivers/scsi/sd.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 167 | drivers/scsi/sd.c | if (sgpnt[i].alt_address) { |
i | 169 | drivers/scsi/sd.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 170 | drivers/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 217 | drivers/scsi/sd.c | int i; |
i | 219 | drivers/scsi/sd.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 224 | drivers/scsi/sd.c | if (sgpnt[i].alt_address) { |
i | 225 | drivers/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 664 | drivers/scsi/sd.c | static int sd_init_onedisk(int i) |
i | 677 | drivers/scsi/sd.c | SCpnt = allocate_device(NULL, rscsi_disks[i].device->index, 1); |
i | 686 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 703 | drivers/scsi/sd.c | if(the_result && !rscsi_disks[i].device->removable && |
i | 707 | drivers/scsi/sd.c | printk( "sd%d: Spinning up disk...", i ); |
i | 709 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 744 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 793 | drivers/scsi/sd.c | i,i, |
i | 800 | drivers/scsi/sd.c | printk("sd%d : extended sense code = %1x \n", i, SCpnt->sense_buffer[2] & 0xf); |
i | 802 | drivers/scsi/sd.c | printk("sd%d : sense not available. \n", i); |
i | 804 | drivers/scsi/sd.c | printk("sd%d : block size assumed to be 512 bytes, disk size 1GB. \n", i); |
i | 805 | drivers/scsi/sd.c | rscsi_disks[i].capacity = 0x1fffff; |
i | 806 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = 512; |
i | 810 | drivers/scsi/sd.c | if(rscsi_disks[i].device->removable && |
i | 812 | drivers/scsi/sd.c | rscsi_disks[i].device->changed = 1; |
i | 817 | drivers/scsi/sd.c | rscsi_disks[i].capacity = (buffer[0] << 24) | |
i | 822 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = (buffer[4] << 24) | |
i | 825 | drivers/scsi/sd.c | if (rscsi_disks[i].sector_size != 512 && |
i | 826 | drivers/scsi/sd.c | rscsi_disks[i].sector_size != 1024 && |
i | 827 | drivers/scsi/sd.c | rscsi_disks[i].sector_size != 256) |
i | 830 | drivers/scsi/sd.c | i, rscsi_disks[i].sector_size); |
i | 831 | drivers/scsi/sd.c | if(rscsi_disks[i].device->removable){ |
i | 832 | drivers/scsi/sd.c | rscsi_disks[i].capacity = 0; |
i | 835 | drivers/scsi/sd.c | for (j=i; j < NR_SD - 1;) |
i | 837 | drivers/scsi/sd.c | --i; |
i | 840 | drivers/scsi/sd.c | return i; |
i | 843 | drivers/scsi/sd.c | if(rscsi_disks[i].sector_size == 1024) |
i | 844 | drivers/scsi/sd.c | rscsi_disks[i].capacity <<= 1; /* Change this into 512 byte sectors */ |
i | 845 | drivers/scsi/sd.c | if(rscsi_disks[i].sector_size == 256) |
i | 846 | drivers/scsi/sd.c | rscsi_disks[i].capacity >>= 1; /* Change this into 512 byte sectors */ |
i | 849 | drivers/scsi/sd.c | rscsi_disks[i].ten = 1; |
i | 850 | drivers/scsi/sd.c | rscsi_disks[i].remap = 1; |
i | 852 | drivers/scsi/sd.c | return i; |
i | 862 | drivers/scsi/sd.c | int i; |
i | 876 | drivers/scsi/sd.c | for(i=0;i<(MAX_SD << 4);i++) sd_blocksizes[i] = 1024; |
i | 887 | drivers/scsi/sd.c | for (i = 0; i < NR_SD; ++i) |
i | 888 | drivers/scsi/sd.c | i = sd_init_onedisk(i); |
i | 935 | drivers/scsi/sd.c | int i; |
i | 953 | drivers/scsi/sd.c | for (i=max_p - 1; i >=0 ; i--) { |
i | 954 | drivers/scsi/sd.c | sync_dev(major | start | i); |
i | 955 | drivers/scsi/sd.c | invalidate_inodes(major | start | i); |
i | 956 | drivers/scsi/sd.c | invalidate_buffers(major | start | i); |
i | 957 | drivers/scsi/sd.c | gdev->part[start+i].start_sect = 0; |
i | 958 | drivers/scsi/sd.c | gdev->part[start+i].nr_sects = 0; |
i | 278 | drivers/scsi/seagate.c | int i,j; |
i | 328 | drivers/scsi/seagate.c | for (i = 0; i < (sizeof (seagate_bases) / sizeof (char * )); ++i) |
i | 330 | drivers/scsi/seagate.c | if (!memcmp ((void *) (seagate_bases[i] + |
i | 333 | drivers/scsi/seagate.c | base_address = (void *) seagate_bases[i]; |
i | 600 | drivers/scsi/seagate.c | int i; |
i | 898 | drivers/scsi/seagate.c | int i; |
i | 901 | drivers/scsi/seagate.c | for (i = 0; i < nobuffs; ++i) |
i | 903 | drivers/scsi/seagate.c | hostno, i, buffer[i].address, buffer[i].length); |
i | 1467 | drivers/scsi/seagate.c | for (i = 0; i < 20; ++i) |
i | 1468 | drivers/scsi/seagate.c | printk ("%02x ", ((unsigned char *) data)[i]); /* WDE mod */ |
i | 156 | drivers/scsi/sg.c | int i; |
i | 158 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_WRITE,buf,count))) |
i | 159 | drivers/scsi/sg.c | return i; |
i | 211 | drivers/scsi/sg.c | int bsize,size,amt,i; |
i | 214 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_READ,buf,count))) |
i | 215 | drivers/scsi/sg.c | return i; |
i | 150 | drivers/scsi/sr.c | int i; |
i | 152 | drivers/scsi/sr.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 153 | drivers/scsi/sr.c | if (sgpnt[i].alt_address) { |
i | 154 | drivers/scsi/sr.c | if (sgpnt[i].alt_address != sgpnt[i].address) { |
i | 155 | drivers/scsi/sr.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 157 | drivers/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 189 | drivers/scsi/sr.c | int i; |
i | 191 | drivers/scsi/sr.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 192 | drivers/scsi/sr.c | if (sgpnt[i].alt_address) { |
i | 193 | drivers/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 600 | drivers/scsi/sr.c | int i; |
i | 604 | drivers/scsi/sr.c | for(i=0; i<12; i++) printk("%2.2x ", cmd[i]); |
i | 642 | drivers/scsi/sr.c | static void get_sectorsize(int i){ |
i | 648 | drivers/scsi/sr.c | SCpnt = allocate_device(NULL, scsi_CDs[i].device->index, 1); |
i | 653 | drivers/scsi/sr.c | cmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0; |
i | 681 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0x1fffff; |
i | 682 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = 2048; /* A guess, just in case */ |
i | 683 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
i | 685 | drivers/scsi/sr.c | scsi_CDs[i].capacity = (buffer[0] << 24) | |
i | 687 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = (buffer[4] << 24) | |
i | 689 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size == 0) scsi_CDs[i].sector_size = 2048; |
i | 690 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size != 2048 && |
i | 691 | drivers/scsi/sr.c | scsi_CDs[i].sector_size != 512) { |
i | 693 | drivers/scsi/sr.c | i, scsi_CDs[i].sector_size); |
i | 694 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0; |
i | 696 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size == 2048) |
i | 697 | drivers/scsi/sr.c | scsi_CDs[i].capacity *= 4; |
i | 698 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 0; |
i | 704 | drivers/scsi/sr.c | int i; |
i | 718 | drivers/scsi/sr.c | for(i=0;i<MAX_SR;i++) sr_blocksizes[i] = 2048; |
i | 721 | drivers/scsi/sr.c | for (i = 0; i < NR_SR; ++i) |
i | 723 | drivers/scsi/sr.c | get_sectorsize(i); |
i | 724 | drivers/scsi/sr.c | printk("Scd sectorsize = %d bytes\n", scsi_CDs[i].sector_size); |
i | 725 | drivers/scsi/sr.c | scsi_CDs[i].use = 1; |
i | 726 | drivers/scsi/sr.c | scsi_CDs[i].ten = 1; |
i | 727 | drivers/scsi/sr.c | scsi_CDs[i].remap = 1; |
i | 728 | drivers/scsi/sr.c | sr_sizes[i] = scsi_CDs[i].capacity; |
i | 279 | drivers/scsi/st.c | int i; |
i | 292 | drivers/scsi/st.c | for (i=0; i < st_nbr_buffers; i++) |
i | 293 | drivers/scsi/st.c | if (!st_buffers[i]->in_use) |
i | 295 | drivers/scsi/st.c | if (i >= st_nbr_buffers) { |
i | 299 | drivers/scsi/st.c | st_buffers[i]->in_use = 1; |
i | 300 | drivers/scsi/st.c | st_buffers[i]->writing = 0; |
i | 301 | drivers/scsi/st.c | scsi_tapes[dev].buffer = st_buffers[i]; |
i | 399 | drivers/scsi/st.c | i = st_chk_result(SCpnt); |
i | 400 | drivers/scsi/st.c | if (i) { |
i | 1151 | drivers/scsi/st.c | int i, cmd, result; |
i | 1171 | drivers/scsi/st.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(mtc)); |
i | 1172 | drivers/scsi/st.c | if (i) |
i | 1173 | drivers/scsi/st.c | return i; |
i | 1177 | drivers/scsi/st.c | i = flush_buffer(inode, file, mtc.mt_op == MTSEEK || |
i | 1180 | drivers/scsi/st.c | if (i < 0) |
i | 1181 | drivers/scsi/st.c | return i; |
i | 1189 | drivers/scsi/st.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct mtget)); |
i | 1190 | drivers/scsi/st.c | if (i) |
i | 1191 | drivers/scsi/st.c | return i; |
i | 1204 | drivers/scsi/st.c | i = flush_buffer(inode, file, 0); |
i | 1205 | drivers/scsi/st.c | if (i < 0) |
i | 1206 | drivers/scsi/st.c | return i; |
i | 1208 | drivers/scsi/st.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct mtpos)); |
i | 1209 | drivers/scsi/st.c | if (i) |
i | 1210 | drivers/scsi/st.c | return i; |
i | 1291 | drivers/scsi/st.c | int i; |
i | 1303 | drivers/scsi/st.c | for (i=0; i < NR_ST; ++i) { |
i | 1304 | drivers/scsi/st.c | scsi_tapes[i].capacity = 0xfffff; |
i | 1305 | drivers/scsi/st.c | scsi_tapes[i].dirty = 0; |
i | 1306 | drivers/scsi/st.c | scsi_tapes[i].rw = 0; |
i | 1307 | drivers/scsi/st.c | scsi_tapes[i].eof = 0; |
i | 1308 | drivers/scsi/st.c | scsi_tapes[i].waiting = NULL; |
i | 1309 | drivers/scsi/st.c | scsi_tapes[i].in_use = 0; |
i | 1310 | drivers/scsi/st.c | scsi_tapes[i].drv_buffer = 1; /* Try buffering if no mode sense */ |
i | 1311 | drivers/scsi/st.c | scsi_tapes[i].density = 0; |
i | 1320 | drivers/scsi/st.c | for (i=0; i < st_nbr_buffers; i++) { |
i | 1321 | drivers/scsi/st.c | st_buffers[i] = (ST_buffer *) mem_start; |
i | 1323 | drivers/scsi/st.c | printk("st: Buffer address: %x\n", st_buffers[i]); |
i | 1326 | drivers/scsi/st.c | st_buffers[i]->mt_status = (struct mtget *) mem_start; |
i | 1328 | drivers/scsi/st.c | st_buffers[i]->in_use = 0; |
i | 1329 | drivers/scsi/st.c | st_buffers[i]->writing = 0; |
i | 1332 | drivers/scsi/st.c | memset((void *) st_buffers[i]->mt_status, 0, sizeof(struct mtget)); |
i | 1333 | drivers/scsi/st.c | st_buffers[i]->mt_status->mt_type = MT_ISSCSI1; |
i | 165 | drivers/scsi/t128.c | int i; |
i | 172 | drivers/scsi/t128.c | for (i = 0; i < NO_BASES; ++i) |
i | 173 | drivers/scsi/t128.c | if (bases[i].address == (unsigned char *) ints[1]) { |
i | 174 | drivers/scsi/t128.c | bases[i].noauto = 1; |
i | 320 | drivers/scsi/t128.c | register i = len; |
i | 324 | drivers/scsi/t128.c | for (; i; --i) |
i | 358 | drivers/scsi/t128.c | register i = len; |
i | 361 | drivers/scsi/t128.c | for (; i; --i) |
i | 325 | drivers/scsi/ultrastor.c | register int i; |
i | 330 | drivers/scsi/ultrastor.c | for (i = 0; i < ULTRASTOR_MAX_CMDS; i++) |
i | 332 | drivers/scsi/ultrastor.c | fmt[20 + i*2] = ' '; |
i | 333 | drivers/scsi/ultrastor.c | if (! (config->mscp_free & (1 << i))) |
i | 334 | drivers/scsi/ultrastor.c | fmt[21 + i*2] = '0' + config->mscp[i].target_id; |
i | 336 | drivers/scsi/ultrastor.c | fmt[21 + i*2] = '-'; |
i | 347 | drivers/scsi/ultrastor.c | size_t i; |
i | 377 | drivers/scsi/ultrastor.c | for (i = 0; i < ARRAY_SIZE(ultrastor_ports_14f); i++) { |
i | 378 | drivers/scsi/ultrastor.c | if(check_region(ultrastor_ports_14f[i], 0x0c)) continue; |
i | 379 | drivers/scsi/ultrastor.c | config.port_address = ultrastor_ports_14f[i]; |
i | 421 | drivers/scsi/ultrastor.c | if (i == ARRAY_SIZE(ultrastor_ports_14f)) { |
i | 520 | drivers/scsi/ultrastor.c | register int i; |
i | 527 | drivers/scsi/ultrastor.c | for (i = 1; i < 15; i++) |
i | 530 | drivers/scsi/ultrastor.c | unsigned short addr = (i << 12) | ULTRASTOR_24F_PORT; |
i | 538 | drivers/scsi/ultrastor.c | config.slot = i; |
i | 542 | drivers/scsi/ultrastor.c | printk("U24F: found disabled card in slot %u\n", i); |
i | 547 | drivers/scsi/ultrastor.c | printk("U24F: found card in slot %u\n", i); |
i | 644 | drivers/scsi/ultrastor.c | int i, max; |
i | 648 | drivers/scsi/ultrastor.c | for (i = 0; i < max; i++) { |
i | 649 | drivers/scsi/ultrastor.c | mscp->sglist[i].address = (unsigned int)sl[i].address; |
i | 650 | drivers/scsi/ultrastor.c | mscp->sglist[i].num_bytes = sl[i].length; |
i | 651 | drivers/scsi/ultrastor.c | transfer_length += sl[i].length; |
i | 834 | drivers/scsi/ultrastor.c | int i; |
i | 839 | drivers/scsi/ultrastor.c | for (i = 0; i < 16; i++) |
i | 841 | drivers/scsi/ultrastor.c | unsigned char p = inb(port0 + i); |
i | 842 | drivers/scsi/ultrastor.c | out[28 + i * 3] = "0123456789abcdef"[p >> 4]; |
i | 843 | drivers/scsi/ultrastor.c | out[29 + i * 3] = "0123456789abcdef"[p & 15]; |
i | 844 | drivers/scsi/ultrastor.c | out[30 + i * 3] = ' '; |
i | 846 | drivers/scsi/ultrastor.c | out[28 + i * 3] = '\n'; |
i | 847 | drivers/scsi/ultrastor.c | out[29 + i * 3] = 0; |
i | 932 | drivers/scsi/ultrastor.c | register int i; |
i | 962 | drivers/scsi/ultrastor.c | for (i = 0; i < ULTRASTOR_MAX_CMDS; i++) |
i | 964 | drivers/scsi/ultrastor.c | if (! (config.mscp_free & (1 << i)) && |
i | 965 | drivers/scsi/ultrastor.c | config.mscp[i].done && config.mscp[i].SCint) |
i | 967 | drivers/scsi/ultrastor.c | config.mscp[i].SCint->result = DID_RESET << 16; |
i | 968 | drivers/scsi/ultrastor.c | config.mscp[i].done(config.mscp[i].SCint); |
i | 969 | drivers/scsi/ultrastor.c | config.mscp[i].done = 0; |
i | 971 | drivers/scsi/ultrastor.c | config.mscp[i].SCint = 0; |
i | 172 | drivers/scsi/wd7000.c | int i; |
i | 179 | drivers/scsi/wd7000.c | for (i = 0; i < MAX_SCBS-1; i++) scbs[i].next = &(scbs[i+1]); |
i | 191 | drivers/scsi/wd7000.c | int i, ogmb; |
i | 200 | drivers/scsi/wd7000.c | for (i = 0; i < OGMB_CNT; i++) { |
i | 214 | drivers/scsi/wd7000.c | if (i >= OGMB_CNT) { |
i | 377 | drivers/scsi/wd7000.c | unsigned i; |
i | 402 | drivers/scsi/wd7000.c | for (i = 0; i < SCpnt->use_sg; i++) { |
i | 403 | drivers/scsi/wd7000.c | any2scsi(sgb->ptr, sg[i].address); |
i | 404 | drivers/scsi/wd7000.c | any2scsi(sgb->len, sg[i].length); |
i | 430 | drivers/scsi/wd7000.c | { int i; |
i | 451 | drivers/scsi/wd7000.c | if (((i=inb(INTR_STAT)) != 1) && (i != 7)) { |
i | 528 | drivers/scsi/wd7000.c | int i,j; |
i | 532 | drivers/scsi/wd7000.c | for(i=0;i<(sizeof(wd_bases)/sizeof(char *));i++){ |
i | 534 | drivers/scsi/wd7000.c | if(!memcmp((void *)(wd_bases[i] + signatures[j].offset), |
i | 536 | drivers/scsi/wd7000.c | base_address=wd_bases[i]; |
i | 581 | drivers/scsi/wd7000.c | int wd7000_abort(Scsi_Cmnd * SCpnt, int i) |
i | 584 | drivers/scsi/wd7000.c | printk("wd7000_abort: Scsi_Cmnd = 0x%08x, code = %d ", SCpnt, i); |
i | 103 | drivers/sound/audio.c | unsigned long i; |
i | 105 | drivers/sound/audio.c | for (i = 0; i < n; ++i) |
i | 106 | drivers/sound/audio.c | buff[i] = table[buff[i]]; |
i | 232 | drivers/sound/configure.c | int i, num, def_size, full_driver = 1; |
i | 260 | drivers/sound/configure.c | for (i = 0; i <= OPT_LAST; i++) |
i | 261 | drivers/sound/configure.c | if (can_select_option (i)) |
i | 263 | drivers/sound/configure.c | if (!(selected_options & B (i))) /* Not selected yet */ |
i | 264 | drivers/sound/configure.c | if (!hw_table[i].verify) |
i | 266 | drivers/sound/configure.c | if (hw_table[i].alias) |
i | 267 | drivers/sound/configure.c | selected_options |= B (hw_table[i].alias); |
i | 269 | drivers/sound/configure.c | selected_options |= B (i); |
i | 273 | drivers/sound/configure.c | fprintf (stderr, " %s (n/y) ? ", questions[i]); |
i | 275 | drivers/sound/configure.c | if (hw_table[i].alias) |
i | 276 | drivers/sound/configure.c | selected_options |= B (hw_table[i].alias); |
i | 278 | drivers/sound/configure.c | selected_options |= B (i); |
i | 293 | drivers/sound/configure.c | for (i = 0; i <= OPT_LAST; i++) |
i | 294 | drivers/sound/configure.c | if (!hw_table[i].alias) |
i | 295 | drivers/sound/configure.c | if (selected_options & B (i)) |
i | 296 | drivers/sound/configure.c | printf ("#undef EXCLUDE_%s\n", hw_table[i].macro); |
i | 298 | drivers/sound/configure.c | printf ("#define EXCLUDE_%s\n", hw_table[i].macro); |
i | 38 | drivers/sound/dev_table.c | int i, n = sizeof (supported_drivers) / sizeof (struct card_info); |
i | 40 | drivers/sound/dev_table.c | for (i = 0; i < (n - 1); i++) |
i | 41 | drivers/sound/dev_table.c | if (supported_drivers[i].enabled) |
i | 42 | drivers/sound/dev_table.c | if (supported_drivers[i].probe (&supported_drivers[i].config)) |
i | 46 | drivers/sound/dev_table.c | supported_drivers[i].card_type); |
i | 49 | drivers/sound/dev_table.c | mem_start = supported_drivers[i].attach (mem_start, &supported_drivers[i].config); |
i | 52 | drivers/sound/dev_table.c | supported_drivers[i].config.io_base, |
i | 53 | drivers/sound/dev_table.c | supported_drivers[i].config.irq, |
i | 54 | drivers/sound/dev_table.c | supported_drivers[i].config.dma); |
i | 63 | drivers/sound/dev_table.c | int i, n = sizeof (supported_drivers) / sizeof (struct card_info); |
i | 68 | drivers/sound/dev_table.c | for (i = 0; i < (n - 1); i++) |
i | 69 | drivers/sound/dev_table.c | if (supported_drivers[i].card_type == unit) |
i | 70 | drivers/sound/dev_table.c | return supported_drivers[i].probe (hw_config); |
i | 78 | drivers/sound/dev_table.c | int i, n = sizeof (supported_drivers) / sizeof (struct card_info); |
i | 87 | drivers/sound/dev_table.c | for (i = 0; i < (n - 1); i++) |
i | 88 | drivers/sound/dev_table.c | if (supported_drivers[i].card_type == unit) |
i | 90 | drivers/sound/dev_table.c | if (supported_drivers[i].attach (0, hw_config) != 0) |
i | 106 | drivers/sound/dev_table.c | int i, n = sizeof (supported_drivers) / sizeof (struct card_info); |
i | 114 | drivers/sound/dev_table.c | for (i=0;i<n;i++) |
i | 115 | drivers/sound/dev_table.c | supported_drivers[i].enabled = 0; |
i | 122 | drivers/sound/dev_table.c | for (i=1;i<=ints[0];i++) |
i | 127 | drivers/sound/dev_table.c | val = (unsigned int)ints[i]; |
i | 106 | drivers/sound/dmabuf.c | unsigned long i, p, n; |
i | 155 | drivers/sound/dmabuf.c | for (i = 0; i < snd_raw_count[dev]; i++) |
i | 161 | drivers/sound/dmabuf.c | dev_buf[dev][n] = snd_raw_buf[dev][i] + p; |
i | 162 | drivers/sound/dmabuf.c | dev_buf_phys[dev][n] = snd_raw_buf_phys[dev][i] + p; |
i | 170 | drivers/sound/dmabuf.c | for (i = 0; i < dev_nbufs[dev]; i++) |
i | 172 | drivers/sound/dmabuf.c | dev_counts[dev][i] = 0; |
i | 661 | drivers/sound/dmabuf.c | int i; |
i | 668 | drivers/sound/dmabuf.c | for (i = 0; i < MAX_DSP_DEV; i++) |
i | 670 | drivers/sound/dmabuf.c | dev_qlen[i] = 0; |
i | 671 | drivers/sound/dmabuf.c | dev_qhead[i] = 0; |
i | 672 | drivers/sound/dmabuf.c | dev_qtail[i] = 0; |
i | 673 | drivers/sound/dmabuf.c | dev_active[i] = 0; |
i | 674 | drivers/sound/dmabuf.c | dev_busy[i] = 0; |
i | 675 | drivers/sound/dmabuf.c | bufferalloc_done[i] = 0; |
i | 31 | drivers/sound/gus_vol.c | int i, m, n, x; |
i | 67 | drivers/sound/gus_vol.c | i = 7; |
i | 70 | drivers/sound/gus_vol.c | while (i > 0 && n < (1 << i)) |
i | 71 | drivers/sound/gus_vol.c | i--; |
i | 77 | drivers/sound/gus_vol.c | i++; |
i | 83 | drivers/sound/gus_vol.c | m = x - (1 << i); |
i | 88 | drivers/sound/gus_vol.c | if (i > 8) |
i | 89 | drivers/sound/gus_vol.c | m >>= i - 8; |
i | 90 | drivers/sound/gus_vol.c | else if (i < 8) |
i | 91 | drivers/sound/gus_vol.c | m <<= 8 - i; |
i | 95 | drivers/sound/gus_vol.c | if (i < 11) |
i | 98 | drivers/sound/gus_vol.c | return ((i << 8) + m); |
i | 170 | drivers/sound/gus_wave.c | int i; |
i | 172 | drivers/sound/gus_wave.c | for (i = 0; i <= MAX_SAMPLE; i++) |
i | 173 | drivers/sound/gus_wave.c | sample_ptrs[i] = -1; |
i | 174 | drivers/sound/gus_wave.c | for (i = 0; i < 32; i++) |
i | 175 | drivers/sound/gus_wave.c | sample_map[i] = -1; |
i | 176 | drivers/sound/gus_wave.c | for (i = 0; i < 32; i++) |
i | 177 | drivers/sound/gus_wave.c | patch_map[i] = -1; |
i | 185 | drivers/sound/gus_wave.c | for (i = 0; i < MAX_PATCH; i++) |
i | 186 | drivers/sound/gus_wave.c | patch_table[i] = -1; |
i | 192 | drivers/sound/gus_wave.c | int i; |
i | 194 | drivers/sound/gus_wave.c | for (i = 0; i < 7; i++) |
i | 587 | drivers/sound/gus_wave.c | int i; |
i | 594 | drivers/sound/gus_wave.c | for (i = 0; i < 32; i++) |
i | 596 | drivers/sound/gus_wave.c | gus_voice_init (i); /* Turn voice off */ |
i | 1127 | drivers/sound/gus_wave.c | int i; |
i | 1129 | drivers/sound/gus_wave.c | for (i = 0; i < 6; i++) |
i | 1131 | drivers/sound/gus_wave.c | voices[voice].env_rate[i] = samples[sample].env_rate[i]; |
i | 1132 | drivers/sound/gus_wave.c | voices[voice].env_offset[i] = samples[sample].env_offset[i]; |
i | 1226 | drivers/sound/gus_wave.c | int i; |
i | 1228 | drivers/sound/gus_wave.c | for (i = 0; i < 32; i++) |
i | 1229 | drivers/sound/gus_wave.c | gus_voice_init (i); |
i | 1416 | drivers/sound/gus_wave.c | long i; |
i | 1419 | drivers/sound/gus_wave.c | for (i = 0; i < blk_size; i++) |
i | 1421 | drivers/sound/gus_wave.c | GET_BYTE_FROM_USER (data, addr, sizeof_patch + i); |
i | 1424 | drivers/sound/gus_wave.c | if (!(patch.mode & WAVE_16_BITS) || (i & 0x01)) |
i | 1426 | drivers/sound/gus_wave.c | gus_poke (target + i, data); |
i | 2031 | drivers/sound/gus_wave.c | int i; |
i | 2048 | drivers/sound/gus_wave.c | for (i = 0; i < pcm_nblk; i++) |
i | 2049 | drivers/sound/gus_wave.c | pcm_datasize[i] = 0; |
i | 2078 | drivers/sound/gus_wave.c | int i; |
i | 2085 | drivers/sound/gus_wave.c | for (i = 0; i < len; i++) |
i | 2098 | drivers/sound/gus_wave.c | int i; |
i | 2106 | drivers/sound/gus_wave.c | for (i = 0; i < len; i++) |
i | 2135 | drivers/sound/gus_wave.c | int i, n; |
i | 2152 | drivers/sound/gus_wave.c | for (i = 0; i < MAX_PATCH; i++) |
i | 2154 | drivers/sound/gus_wave.c | int ptr = patch_table[i]; |
i | 2156 | drivers/sound/gus_wave.c | rec->data.data8[i] = 0; |
i | 2160 | drivers/sound/gus_wave.c | rec->data.data8[i]++; |
i | 96 | drivers/sound/opl3.c | int i; |
i | 103 | drivers/sound/opl3.c | for (i = 0; i < 3; i++) |
i | 104 | drivers/sound/opl3.c | physical_voices[i].voice_mode = 4; |
i | 105 | drivers/sound/opl3.c | for (i = 3; i < 6; i++) |
i | 106 | drivers/sound/opl3.c | physical_voices[i].voice_mode = 0; |
i | 108 | drivers/sound/opl3.c | for (i = 9; i < 12; i++) |
i | 109 | drivers/sound/opl3.c | physical_voices[i].voice_mode = 4; |
i | 110 | drivers/sound/opl3.c | for (i = 12; i < 15; i++) |
i | 111 | drivers/sound/opl3.c | physical_voices[i].voice_mode = 0; |
i | 113 | drivers/sound/opl3.c | for (i = 0; i < 12; i++) |
i | 114 | drivers/sound/opl3.c | logical_voices[i] = voices_4op[i]; |
i | 180 | drivers/sound/opl3.c | int i; |
i | 209 | drivers/sound/opl3.c | for (i = 0; i < 50; i++) |
i | 227 | drivers/sound/opl3.c | for (i = 0; i < 9; i++) |
i | 228 | drivers/sound/opl3.c | opl3_command (ioaddr, KEYON_BLOCK + i, 0); /* Note off */ |
i | 624 | drivers/sound/opl3.c | int i; |
i | 636 | drivers/sound/opl3.c | for (i = 0; i < 2; i++) |
i | 648 | drivers/sound/opl3.c | for (i = 0; i < 2; i++) |
i | 655 | drivers/sound/opl3.c | int i; |
i | 657 | drivers/sound/opl3.c | for (i = 0; i < nr_voices; i++) |
i | 659 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
i | 660 | drivers/sound/opl3.c | KSL_LEVEL + physical_voices[logical_voices[i]].op[0], 0xff); /* OP1 volume to min */ |
i | 662 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
i | 663 | drivers/sound/opl3.c | KSL_LEVEL + physical_voices[logical_voices[i]].op[1], 0xff); /* OP2 volume to min */ |
i | 665 | drivers/sound/opl3.c | if (physical_voices[logical_voices[i]].voice_mode == 4) /* 4 OP voice */ |
i | 667 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
i | 668 | drivers/sound/opl3.c | KSL_LEVEL + physical_voices[logical_voices[i]].op[2], 0xff); /* OP3 volume to min */ |
i | 670 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
i | 671 | drivers/sound/opl3.c | KSL_LEVEL + physical_voices[logical_voices[i]].op[3], 0xff); /* OP4 volume to min */ |
i | 674 | drivers/sound/opl3.c | opl3_kill_note (dev, i, 64); |
i | 681 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 682 | drivers/sound/opl3.c | logical_voices[i] = i; |
i | 684 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 685 | drivers/sound/opl3.c | physical_voices[i].voice_mode = 2; |
i | 896 | drivers/sound/opl3.c | int i; |
i | 912 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 913 | drivers/sound/opl3.c | if (physical_voices[i].ioaddr == USE_LEFT) |
i | 914 | drivers/sound/opl3.c | physical_voices[i].ioaddr = left_address; |
i | 916 | drivers/sound/opl3.c | physical_voices[i].ioaddr = right_address; |
i | 930 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 931 | drivers/sound/opl3.c | physical_voices[i].ioaddr = left_address; |
i | 935 | drivers/sound/opl3.c | for (i = 0; i < SBFM_MAXINSTR; i++) |
i | 936 | drivers/sound/opl3.c | instrmap[i].channel = -1; |
i | 239 | drivers/sound/pas2_midi.c | int i, incount; |
i | 250 | drivers/sound/pas2_midi.c | for (i = 0; i < incount; i++) |
i | 118 | drivers/sound/pas2_mixer.c | int left, right, devmask, changed, i, mixer = 0; |
i | 183 | drivers/sound/pas2_mixer.c | i = 0; |
i | 186 | drivers/sound/pas2_mixer.c | i = (level / 20) - 1; |
i | 192 | drivers/sound/pas2_mixer.c | if (i) |
i | 193 | drivers/sound/pas2_mixer.c | i = (i + 1) * 20; |
i | 194 | drivers/sound/pas2_mixer.c | return i; |
i | 211 | drivers/sound/pas2_mixer.c | for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) |
i | 212 | drivers/sound/pas2_mixer.c | if (changed & (1 << i)) |
i | 214 | drivers/sound/pas2_mixer.c | pas_mixer_set (i, levels[i]); |
i | 83 | drivers/sound/sb_dsp.c | int i, limit; |
i | 95 | drivers/sound/sb_dsp.c | for (i = 0; i < 500000 && GET_TIME () < limit; i++) |
i | 646 | drivers/sound/sb_dsp.c | int i; |
i | 651 | drivers/sound/sb_dsp.c | for (i = 1000; i; i--) |
i | 186 | drivers/sound/sb_mixer.c | int devmask, i; |
i | 240 | drivers/sound/sb_mixer.c | for (i=0;i<SOUND_MIXER_NRDEVICES;i++) |
i | 241 | drivers/sound/sb_mixer.c | if ((1<<i) & devmask) |
i | 242 | drivers/sound/sb_mixer.c | regimage |= sb16_recmasks[i]; |
i | 307 | drivers/sound/sb_mixer.c | int i; |
i | 309 | drivers/sound/sb_mixer.c | for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) |
i | 310 | drivers/sound/sb_mixer.c | sb_mixer_set (i, levels[i]); |
i | 465 | drivers/sound/sequencer.c | int retval, mode, i; |
i | 504 | drivers/sound/sequencer.c | for (i = 0; i < num_synths; i++) /* Open synth devices */ |
i | 505 | drivers/sound/sequencer.c | if (synth_devs[i]->open (i, mode) < 0) |
i | 506 | drivers/sound/sequencer.c | printk ("Sequencer: Warning! Cannot open synth device #%d\n", i); |
i | 508 | drivers/sound/sequencer.c | synth_open_mask |= (1 << i); |
i | 512 | drivers/sound/sequencer.c | for (i = 0; i < num_midis; i++) |
i | 514 | drivers/sound/sequencer.c | midi_opened[i] = 0; |
i | 515 | drivers/sound/sequencer.c | midi_written[i] = 0; |
i | 526 | drivers/sound/sequencer.c | for (i = 0; i < num_midis; i++) |
i | 528 | drivers/sound/sequencer.c | if ((retval = midi_devs[i]->open (i, mode, |
i | 530 | drivers/sound/sequencer.c | midi_opened[i] = 1; |
i | 539 | drivers/sound/sequencer.c | for (i = 0; i < num_synths; i++) |
i | 540 | drivers/sound/sequencer.c | if (pmgr_present[i]) |
i | 541 | drivers/sound/sequencer.c | pmgr_inform (i, PM_E_OPENED, 0, 0, 0, 0); |
i | 549 | drivers/sound/sequencer.c | int i, n; |
i | 561 | drivers/sound/sequencer.c | for (i = 0; i < num_midis; i++) |
i | 562 | drivers/sound/sequencer.c | if (midi_opened[i] && midi_written[i]) |
i | 563 | drivers/sound/sequencer.c | if (midi_devs[i]->buffer_status != NULL) |
i | 564 | drivers/sound/sequencer.c | if (midi_devs[i]->buffer_status (i)) |
i | 580 | drivers/sound/sequencer.c | int i; |
i | 610 | drivers/sound/sequencer.c | for (i = 0; i < num_midis; i++) |
i | 611 | drivers/sound/sequencer.c | if (midi_opened[i]) |
i | 612 | drivers/sound/sequencer.c | midi_devs[i]->close (i); |
i | 615 | drivers/sound/sequencer.c | for (i = 0; i < num_synths; i++) |
i | 616 | drivers/sound/sequencer.c | if (synth_open_mask & (1 << i)) /* Actually opened */ |
i | 617 | drivers/sound/sequencer.c | if (synth_devs[i]) |
i | 618 | drivers/sound/sequencer.c | synth_devs[i]->close (i); |
i | 620 | drivers/sound/sequencer.c | for (i = 0; i < num_synths; i++) |
i | 621 | drivers/sound/sequencer.c | if (pmgr_present[i]) |
i | 622 | drivers/sound/sequencer.c | pmgr_inform (i, PM_E_CLOSED, 0, 0, 0, 0); |
i | 670 | drivers/sound/sequencer.c | int i, chn; |
i | 677 | drivers/sound/sequencer.c | for (i = 0; i < num_synths; i++) |
i | 678 | drivers/sound/sequencer.c | if (synth_open_mask & (1 << i)) |
i | 679 | drivers/sound/sequencer.c | if (synth_devs[i]) |
i | 680 | drivers/sound/sequencer.c | synth_devs[i]->reset (i); |
i | 682 | drivers/sound/sequencer.c | for (i = 0; i < num_midis; i++) |
i | 683 | drivers/sound/sequencer.c | if (midi_written[i]) /* Midi used. Some notes may still be playing */ |
i | 687 | drivers/sound/sequencer.c | midi_outc (i, 0xb0 + chn); /* Channel message */ |
i | 688 | drivers/sound/sequencer.c | midi_outc (i, 0x7b);/* All notes off */ |
i | 689 | drivers/sound/sequencer.c | midi_outc (i, 0); /* Dummy parameter */ |
i | 692 | drivers/sound/sequencer.c | midi_devs[i]->close (i); |
i | 694 | drivers/sound/sequencer.c | midi_written[i] = 0; |
i | 695 | drivers/sound/sequencer.c | midi_opened[i] = 0; |
i | 87 | drivers/sound/soundcard.c | int i; |
i | 107 | drivers/sound/soundcard.c | for (i = 0; i < (num_sound_drivers - 1); i++) |
i | 109 | drivers/sound/soundcard.c | if (!supported_drivers[i].enabled) |
i | 114 | drivers/sound/soundcard.c | supported_drivers[i].card_type, |
i | 115 | drivers/sound/soundcard.c | supported_drivers[i].name); |
i | 120 | drivers/sound/soundcard.c | supported_drivers[i].config.io_base, |
i | 121 | drivers/sound/soundcard.c | supported_drivers[i].config.irq, |
i | 122 | drivers/sound/soundcard.c | supported_drivers[i].config.dma); |
i | 126 | drivers/sound/soundcard.c | if (!supported_drivers[i].enabled) |
i | 137 | drivers/sound/soundcard.c | for (i = 0; i < num_dspdevs; i++) |
i | 139 | drivers/sound/soundcard.c | sprintf (tmp_buf, "%02d: %s\n", i, dsp_devs[i]->name); |
i | 147 | drivers/sound/soundcard.c | for (i = 0; i < num_synths; i++) |
i | 149 | drivers/sound/soundcard.c | sprintf (tmp_buf, "%02d: %s\n", i, synth_devs[i]->info->name); |
i | 157 | drivers/sound/soundcard.c | for (i = 0; i < num_midis; i++) |
i | 159 | drivers/sound/soundcard.c | sprintf (tmp_buf, "%02d: %s\n", i, midi_devs[i]->info.name); |
i | 498 | drivers/sound/soundcard.c | int i; |
i | 524 | drivers/sound/soundcard.c | for (i = 0; i < SND_NDEVS; i++) |
i | 526 | drivers/sound/soundcard.c | sbc_devices[i].usecount = 0; |
i | 535 | drivers/sound/soundcard.c | int i; |
i | 537 | drivers/sound/soundcard.c | for (i = 0; i < 16; i++) |
i | 611 | drivers/sound/soundcard.c | int i, dev; |
i | 655 | drivers/sound/soundcard.c | for (i = MAP_NR (start_addr); i <= MAP_NR (end_addr); i++) |
i | 657 | drivers/sound/soundcard.c | if (mem_map[i]) |
i | 660 | drivers/sound/soundcard.c | mem_map[i] = MAP_PAGE_RESERVED; |
i | 57 | fs/binfmt_elf.c | int i; |
i | 125 | fs/binfmt_elf.c | for(i=0;i < elf_ex.e_phnum; i++){ |
i | 216 | fs/binfmt_elf.c | for(i=0;i < elf_ex.e_phnum; i++){ |
i | 347 | fs/binfmt_elf.c | int i,j, k; |
i | 388 | fs/binfmt_elf.c | for(i=0; i<elf_ex.e_phnum; i++) |
i | 389 | fs/binfmt_elf.c | if((elf_phdata + i)->p_type == PT_LOAD) j++; |
i | 19 | fs/block_dev.c | int blocksize, blocksize_bits, i; |
i | 34 | fs/block_dev.c | i = blocksize; |
i | 36 | fs/block_dev.c | while(i != 1) { |
i | 38 | fs/block_dev.c | i >>= 1; |
i | 83 | fs/block_dev.c | int blocksize_bits, i; |
i | 99 | fs/block_dev.c | i = blocksize; |
i | 101 | fs/block_dev.c | while (i != 1) { |
i | 103 | fs/block_dev.c | i >>= 1; |
i | 94 | fs/buffer.c | int i, retry, pass = 0, err = 0; |
i | 105 | fs/buffer.c | for (i = nr_buffers*2 ; i-- > 0 ; bh = bh->b_next_free) { |
i | 193 | fs/buffer.c | int i; |
i | 197 | fs/buffer.c | for (i = nr_buffers*2 ; --i > 0 ; bh = bh->b_next_free) { |
i | 222 | fs/buffer.c | int i; |
i | 229 | fs/buffer.c | i = floppy_change(bh); |
i | 235 | fs/buffer.c | i = check_scsidisk_media_change(dev, 0); |
i | 241 | fs/buffer.c | i = check_cdrom_media_change(dev, 0); |
i | 247 | fs/buffer.c | i = check_cdu31a_media_change(dev, 0); |
i | 253 | fs/buffer.c | i = check_mcd_media_change(dev, 0); |
i | 261 | fs/buffer.c | if (!i) return; |
i | 265 | fs/buffer.c | for (i=0 ; i<NR_SUPER ; i++) |
i | 266 | fs/buffer.c | if (super_blocks[i].s_dev == dev) |
i | 267 | fs/buffer.c | put_super(super_blocks[i].s_dev); |
i | 397 | fs/buffer.c | int i; |
i | 421 | fs/buffer.c | for (i = nr_buffers*2 ; --i > 0 ; bh = bhnext) { |
i | 615 | fs/buffer.c | int i; |
i | 624 | fs/buffer.c | for (nr_buffer_heads+=i=PAGE_SIZE/sizeof*bh ; i>0; i--) { |
i | 684 | fs/buffer.c | int i; |
i | 688 | fs/buffer.c | for (i = 0 ; i < nrbuf ; i++) { |
i | 689 | fs/buffer.c | if (bh[i] && !bh[i]->b_uptodate) |
i | 690 | fs/buffer.c | bhr[bhnum++] = bh[i]; |
i | 694 | fs/buffer.c | for (i = 0 ; i < nrbuf ; i++) { |
i | 695 | fs/buffer.c | if (bh[i]) { |
i | 696 | fs/buffer.c | wait_on_buffer(bh[i]); |
i | 839 | fs/buffer.c | int i, j; |
i | 847 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j+= size) { |
i | 848 | fs/buffer.c | bh[i] = NULL; |
i | 849 | fs/buffer.c | if (b[i]) |
i | 850 | fs/buffer.c | bh[i] = getblk(dev, b[i], size); |
i | 852 | fs/buffer.c | read_buffers(bh,i); |
i | 854 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j += size,address += size) { |
i | 855 | fs/buffer.c | if (bh[i]) { |
i | 856 | fs/buffer.c | if (bh[i]->b_uptodate) |
i | 857 | fs/buffer.c | COPYBLK(size, (unsigned long) bh[i]->b_data,address); |
i | 858 | fs/buffer.c | brelse(bh[i]); |
i | 952 | fs/buffer.c | int i; |
i | 957 | fs/buffer.c | i = nr_buffers >> priority; |
i | 958 | fs/buffer.c | for ( ; i-- > 0 ; bh = bh->b_next_free) { |
i | 987 | fs/buffer.c | int i; |
i | 993 | fs/buffer.c | for (i = 0 ; i < NR_HASH ; i++) |
i | 994 | fs/buffer.c | hash_table[i] = NULL; |
i | 99 | fs/devices.c | int i; |
i | 101 | fs/devices.c | i = MAJOR(inode->i_rdev); |
i | 102 | fs/devices.c | if (i >= MAX_BLKDEV || !blkdevs[i].fops) |
i | 104 | fs/devices.c | filp->f_op = blkdevs[i].fops; |
i | 150 | fs/devices.c | int i; |
i | 152 | fs/devices.c | i = MAJOR(inode->i_rdev); |
i | 153 | fs/devices.c | if (i >= MAX_CHRDEV || !chrdevs[i].fops) |
i | 155 | fs/devices.c | filp->f_op = chrdevs[i].fops; |
i | 123 | fs/exec.c | int i; |
i | 167 | fs/exec.c | for(i=0; i<8; i++) dump.u_debugreg[i] = current->debugreg[i]; |
i | 312 | fs/exec.c | int i=0; |
i | 317 | fs/exec.c | i++; |
i | 319 | fs/exec.c | return i; |
i | 392 | fs/exec.c | int i; |
i | 399 | fs/exec.c | for (i=MAX_ARG_PAGES-1 ; i>=0 ; i--) { |
i | 401 | fs/exec.c | if (page[i]) { |
i | 403 | fs/exec.c | put_dirty_page(current,page[i],data_base); |
i | 460 | fs/exec.c | int i; |
i | 467 | fs/exec.c | for (i=0; (ch = *(name++)) != '\0';) { |
i | 469 | fs/exec.c | i = 0; |
i | 471 | fs/exec.c | if (i < 15) |
i | 472 | fs/exec.c | current->comm[i++] = ch; |
i | 474 | fs/exec.c | current->comm[i] = '\0'; |
i | 498 | fs/exec.c | for (i=1 ; i<NR_TASKS ; i++) { |
i | 499 | fs/exec.c | if (task[i] == current) { |
i | 500 | fs/exec.c | set_ldt_desc(gdt+(i<<1)+ |
i | 502 | fs/exec.c | load_ldt(i); |
i | 507 | fs/exec.c | for (i=0 ; i<8 ; i++) current->debugreg[i] = 0; |
i | 513 | fs/exec.c | for (i=0 ; i<32 ; i++) { |
i | 514 | fs/exec.c | current->sigaction[i].sa_mask = 0; |
i | 515 | fs/exec.c | current->sigaction[i].sa_flags = 0; |
i | 516 | fs/exec.c | if (current->sigaction[i].sa_handler != SIG_IGN) |
i | 517 | fs/exec.c | current->sigaction[i].sa_handler = NULL; |
i | 519 | fs/exec.c | for (i=0 ; i<NR_OPEN ; i++) |
i | 520 | fs/exec.c | if (FD_ISSET(i,¤t->close_on_exec)) |
i | 521 | fs/exec.c | sys_close(i); |
i | 538 | fs/exec.c | int i; |
i | 545 | fs/exec.c | for (i=0 ; i<MAX_ARG_PAGES ; i++) /* clear page-table */ |
i | 546 | fs/exec.c | bprm.page[i] = 0; |
i | 567 | fs/exec.c | i = bprm.inode->i_mode; |
i | 568 | fs/exec.c | if (IS_NOSUID(bprm.inode) && (((i & S_ISUID) && bprm.inode->i_uid != current-> |
i | 569 | fs/exec.c | euid) || ((i & S_ISGID) && !in_group_p(bprm.inode->i_gid))) && |
i | 579 | fs/exec.c | bprm.e_uid = (i & S_ISUID) ? bprm.inode->i_uid : current->euid; |
i | 580 | fs/exec.c | bprm.e_gid = (i & S_ISGID) ? bprm.inode->i_gid : current->egid; |
i | 583 | fs/exec.c | i >>= 6; |
i | 585 | fs/exec.c | i >>= 3; |
i | 586 | fs/exec.c | if (!(i & 1) && |
i | 696 | fs/exec.c | for (i=0 ; i<MAX_ARG_PAGES ; i++) |
i | 697 | fs/exec.c | free_page(bprm.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 | 86 | fs/ext/fsync.c | int i; |
i | 89 | fs/ext/fsync.c | for (i = 0; i < 9; i++) { |
i | 90 | fs/ext/fsync.c | rc = sync_block (inode, inode->u.ext_i.i_data + i, wait); |
i | 101 | fs/ext/fsync.c | int i; |
i | 109 | fs/ext/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 111 | fs/ext/fsync.c | ((unsigned long *) ind_bh->b_data) + i, |
i | 125 | fs/ext/fsync.c | int i; |
i | 133 | fs/ext/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 135 | fs/ext/fsync.c | ((unsigned long *) dind_bh->b_data) + i, |
i | 149 | fs/ext/fsync.c | int i; |
i | 157 | fs/ext/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 159 | fs/ext/fsync.c | ((unsigned long *) tind_bh->b_data) + i, |
i | 179 | fs/ext/inode.c | int i; |
i | 193 | fs/ext/inode.c | i = inode_bmap(inode,9); |
i | 194 | fs/ext/inode.c | if (!i) |
i | 196 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
i | 200 | fs/ext/inode.c | i = inode_bmap(inode,10); |
i | 201 | fs/ext/inode.c | if (!i) |
i | 203 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>8); |
i | 204 | fs/ext/inode.c | if (!i) |
i | 206 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
i | 209 | fs/ext/inode.c | i = inode_bmap(inode,11); |
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>>16); |
i | 213 | fs/ext/inode.c | if (!i) |
i | 215 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),(block>>8) & 255); |
i | 216 | fs/ext/inode.c | if (!i) |
i | 218 | 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 | 297 | fs/ext/namei.c | for (i=0; i < namelen ; i++) |
i | 298 | fs/ext/namei.c | de->name[i] = name[i]; |
i | 632 | fs/ext/namei.c | int i; |
i | 649 | fs/ext/namei.c | i = 0; |
i | 650 | fs/ext/namei.c | while (i < 1023 && (c = *(symname++))) |
i | 651 | fs/ext/namei.c | name_block->b_data[i++] = c; |
i | 652 | fs/ext/namei.c | name_block->b_data[i] = 0; |
i | 655 | 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 | 156 | fs/ext2/balloc.c | int i, j; |
i | 180 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_loaded_block_bitmaps && |
i | 181 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[i] != block_group; i++) |
i | 183 | fs/ext2/balloc.c | if (i < sb->u.ext2_sb.s_loaded_block_bitmaps && |
i | 184 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[i] == block_group) { |
i | 185 | fs/ext2/balloc.c | block_bitmap_number = sb->u.ext2_sb.s_block_bitmap_number[i]; |
i | 186 | fs/ext2/balloc.c | block_bitmap = sb->u.ext2_sb.s_block_bitmap[i]; |
i | 187 | fs/ext2/balloc.c | for (j = i; j > 0; j--) { |
i | 307 | fs/ext2/balloc.c | int i, j, k; |
i | 333 | fs/ext2/balloc.c | i = ((goal - es->s_first_data_block) / EXT2_BLOCKS_PER_GROUP(sb)); |
i | 334 | fs/ext2/balloc.c | group_desc = i / EXT2_DESC_PER_BLOCK(sb); |
i | 335 | fs/ext2/balloc.c | desc = i % EXT2_DESC_PER_BLOCK(sb); |
i | 340 | fs/ext2/balloc.c | "Descriptor not loaded for group %d", i); |
i | 349 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 358 | fs/ext2/balloc.c | ext2_debug ("goal is at %d[%lu,%lu]:%d.\n", i, group_desc, |
i | 416 | fs/ext2/balloc.c | ext2_debug ("Bit not found in block group %d.\n", i); |
i | 421 | fs/ext2/balloc.c | i++; |
i | 422 | fs/ext2/balloc.c | if (i >= sb->u.ext2_sb.s_groups_count) { |
i | 423 | fs/ext2/balloc.c | i = 0; |
i | 441 | fs/ext2/balloc.c | "Descriptor not loaded for group %d", i); |
i | 450 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 454 | fs/ext2/balloc.c | "Unable to load bitmap for group %d", i); |
i | 463 | fs/ext2/balloc.c | "Unable to locate free bit in block group %d", i); |
i | 471 | fs/ext2/balloc.c | i, group_desc, desc, gdp[desc].bg_free_blocks_count); |
i | 486 | fs/ext2/balloc.c | j += i * EXT2_BLOCKS_PER_GROUP(sb) + es->s_first_data_block; |
i | 490 | fs/ext2/balloc.c | "block_group = %d, block=%d", i, j); |
i | 525 | fs/ext2/balloc.c | int i; |
i | 534 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 545 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 552 | fs/ext2/balloc.c | printk ("Cannot load bitmap for group %d\n", i); |
i | 555 | fs/ext2/balloc.c | i, gdp[desc].bg_free_blocks_count, x); |
i | 581 | fs/ext2/balloc.c | int i; |
i | 590 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 595 | fs/ext2/balloc.c | i); |
i | 602 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 610 | fs/ext2/balloc.c | "Cannot load bitmap for group %d\n", i); |
i | 615 | fs/ext2/balloc.c | "stored = %d, counted = %lu", i, |
i | 14 | fs/ext2/bitmap.c | unsigned int i; |
i | 19 | fs/ext2/bitmap.c | for (i = 0; i < numchars; i++) |
i | 20 | fs/ext2/bitmap.c | sum += nibblemap[map->b_data[i] & 0xf] + |
i | 21 | fs/ext2/bitmap.c | nibblemap[(map->b_data[i] >> 4) & 0xf]; |
i | 61 | fs/ext2/dcache.c | int i; |
i | 66 | fs/ext2/dcache.c | for (i = 1; i < CACHE_SIZE - 1; i++) { |
i | 67 | fs/ext2/dcache.c | dcache[i].prev = &dcache[i - 1]; |
i | 68 | fs/ext2/dcache.c | dcache[i].next = &dcache[i + 1]; |
i | 69 | fs/ext2/dcache.c | dcache[i].queue_next = dcache[i].queue_prev = NULL; |
i | 71 | fs/ext2/dcache.c | dcache[i].prev = &dcache[i - 1]; |
i | 72 | fs/ext2/dcache.c | dcache[i].next = NULL; |
i | 73 | fs/ext2/dcache.c | dcache[i].queue_next = dcache[i].queue_prev = NULL; |
i | 75 | fs/ext2/dcache.c | for (i = 0; i < HASH_QUEUES; i++) |
i | 76 | fs/ext2/dcache.c | queue_tail[i] = queue_head[i] = NULL; |
i | 96 | fs/ext2/dir.c | int i; |
i | 133 | fs/ext2/dir.c | i = de->name_len; |
i | 139 | fs/ext2/dir.c | return i; |
i | 82 | fs/ext2/fsync.c | int i; |
i | 85 | fs/ext2/fsync.c | for (i = 0; i < EXT2_NDIR_BLOCKS; i++) { |
i | 86 | fs/ext2/fsync.c | rc = sync_block (inode, inode->u.ext2_i.i_data + i, wait); |
i | 98 | fs/ext2/fsync.c | int i; |
i | 106 | fs/ext2/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 108 | fs/ext2/fsync.c | ((unsigned long *) ind_bh->b_data) + i, |
i | 122 | fs/ext2/fsync.c | int i; |
i | 130 | fs/ext2/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 132 | fs/ext2/fsync.c | ((unsigned long *) dind_bh->b_data) + i, |
i | 146 | fs/ext2/fsync.c | int i; |
i | 154 | fs/ext2/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 156 | fs/ext2/fsync.c | ((unsigned long *) tind_bh->b_data) + i, |
i | 102 | fs/ext2/ialloc.c | int i, j; |
i | 127 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_loaded_inode_bitmaps && |
i | 128 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[i] != block_group; |
i | 129 | fs/ext2/ialloc.c | i++) |
i | 131 | fs/ext2/ialloc.c | if (i < sb->u.ext2_sb.s_loaded_inode_bitmaps && |
i | 132 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[i] == block_group) { |
i | 133 | fs/ext2/ialloc.c | inode_bitmap_number = sb->u.ext2_sb.s_inode_bitmap_number[i]; |
i | 134 | fs/ext2/ialloc.c | inode_bitmap = sb->u.ext2_sb.s_inode_bitmap[i]; |
i | 135 | fs/ext2/ialloc.c | for (j = i; j > 0; j--) { |
i | 343 | fs/ext2/ialloc.c | int i, j, avefreei; |
i | 357 | fs/ext2/ialloc.c | gdp = NULL; i=0; |
i | 383 | fs/ext2/ialloc.c | i = j; |
i | 392 | fs/ext2/ialloc.c | i = dir->u.ext2_i.i_block_group; |
i | 393 | fs/ext2/ialloc.c | tmp = get_group_desc (sb, i); |
i | 399 | fs/ext2/ialloc.c | i += j; |
i | 400 | fs/ext2/ialloc.c | if (i >= sb->u.ext2_sb.s_groups_count) |
i | 401 | fs/ext2/ialloc.c | i -= sb->u.ext2_sb.s_groups_count; |
i | 402 | fs/ext2/ialloc.c | tmp = get_group_desc (sb, i); |
i | 411 | fs/ext2/ialloc.c | i = dir->u.ext2_i.i_block_group + 2; |
i | 413 | fs/ext2/ialloc.c | if (++i >= sb->u.ext2_sb.s_groups_count) |
i | 414 | fs/ext2/ialloc.c | i = 0; |
i | 415 | fs/ext2/ialloc.c | tmp = get_group_desc (sb,i); |
i | 429 | fs/ext2/ialloc.c | bitmap_nr = load_inode_bitmap (sb, i); |
i | 433 | fs/ext2/ialloc.c | "Unable to load bitmap for group %d", i); |
i | 449 | fs/ext2/ialloc.c | j += i * EXT2_INODES_PER_GROUP(sb) + 1; |
i | 453 | fs/ext2/ialloc.c | "block_group = %d,inode=%d", i, j); |
i | 461 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_group_desc[i / EXT2_DESC_PER_BLOCK(sb)]->b_dirt = 1; |
i | 484 | fs/ext2/ialloc.c | inode->u.ext2_i.i_block_group = i; |
i | 506 | fs/ext2/ialloc.c | int i; |
i | 515 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 524 | fs/ext2/ialloc.c | bitmap_nr = load_inode_bitmap (sb, i); |
i | 531 | fs/ext2/ialloc.c | i, bitmap_nr); |
i | 534 | fs/ext2/ialloc.c | i, gdp[desc].bg_free_inodes_count, x); |
i | 560 | fs/ext2/ialloc.c | int i; |
i | 569 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 574 | fs/ext2/ialloc.c | i); |
i | 580 | fs/ext2/ialloc.c | bitmap_nr = load_inode_bitmap (sb, i); |
i | 588 | fs/ext2/ialloc.c | i, bitmap_nr); |
i | 593 | fs/ext2/ialloc.c | "stored = %d, counted = %lu", i, |
i | 53 | fs/ext2/inode.c | int i; |
i | 70 | fs/ext2/inode.c | i = inode_bmap (inode, EXT2_IND_BLOCK); |
i | 71 | fs/ext2/inode.c | if (!i) |
i | 73 | fs/ext2/inode.c | return block_bmap (bread (inode->i_dev, i, |
i | 78 | fs/ext2/inode.c | i = inode_bmap (inode, EXT2_DIND_BLOCK); |
i | 79 | fs/ext2/inode.c | if (!i) |
i | 81 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, |
i | 84 | fs/ext2/inode.c | if (!i) |
i | 86 | fs/ext2/inode.c | return block_bmap (bread (inode->i_dev, i, |
i | 91 | fs/ext2/inode.c | i = inode_bmap (inode, EXT2_TIND_BLOCK); |
i | 92 | fs/ext2/inode.c | if (!i) |
i | 94 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i | 96 | fs/ext2/inode.c | if (!i) |
i | 98 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i | 100 | fs/ext2/inode.c | if (!i) |
i | 102 | fs/ext2/inode.c | return block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i | 292 | fs/ext2/namei.c | int i; |
i | 294 | fs/ext2/namei.c | i = 0; |
i | 297 | fs/ext2/namei.c | while (i < bh->b_size) { |
i | 299 | fs/ext2/namei.c | de, bh, i)) |
i | 308 | fs/ext2/namei.c | i += de->rec_len; |
i | 717 | fs/ext2/namei.c | int i, err; |
i | 749 | fs/ext2/namei.c | i = 0; |
i | 750 | fs/ext2/namei.c | while (i < inode->i_sb->s_blocksize - 1 && (c = *(symname++))) |
i | 751 | fs/ext2/namei.c | link[i++] = c; |
i | 752 | fs/ext2/namei.c | link[i] = 0; |
i | 757 | fs/ext2/namei.c | inode->i_size = i; |
i | 90 | fs/ext2/super.c | int i; |
i | 101 | fs/ext2/super.c | for (i = 0; i < EXT2_MAX_GROUP_DESC; i++) |
i | 102 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc[i]) |
i | 103 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[i]); |
i | 104 | fs/ext2/super.c | for (i = 0; i < EXT2_MAX_GROUP_LOADED; i++) |
i | 105 | fs/ext2/super.c | if (sb->u.ext2_sb.s_inode_bitmap[i]) |
i | 106 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_inode_bitmap[i]); |
i | 107 | fs/ext2/super.c | for (i = 0; i < EXT2_MAX_GROUP_LOADED; i++) |
i | 108 | fs/ext2/super.c | if (sb->u.ext2_sb.s_block_bitmap[i]) |
i | 109 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_block_bitmap[i]); |
i | 136 | fs/ext2/super.c | int i; |
i | 151 | fs/ext2/super.c | for (i = 0; i < groups_count; i++) { |
i | 152 | fs/ext2/super.c | gdp[i].bg_block_bitmap = old_group_desc[i].bg_block_bitmap; |
i | 153 | fs/ext2/super.c | gdp[i].bg_inode_bitmap = old_group_desc[i].bg_inode_bitmap; |
i | 154 | fs/ext2/super.c | gdp[i].bg_inode_table = old_group_desc[i].bg_inode_table; |
i | 155 | fs/ext2/super.c | gdp[i].bg_free_blocks_count = old_group_desc[i].bg_free_blocks_count; |
i | 156 | fs/ext2/super.c | gdp[i].bg_free_inodes_count = old_group_desc[i].bg_free_inodes_count; |
i | 210 | fs/ext2/super.c | int i, j; |
i | 354 | fs/ext2/super.c | for (i = 0; i < EXT2_MAX_GROUP_DESC; i++) |
i | 355 | fs/ext2/super.c | s->u.ext2_sb.s_group_desc[i] = NULL; |
i | 365 | fs/ext2/super.c | for (i = 0; i < bh_count; i++) { |
i | 366 | fs/ext2/super.c | s->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1, |
i | 368 | fs/ext2/super.c | if (!s->u.ext2_sb.s_group_desc[i]) { |
i | 371 | fs/ext2/super.c | for (j = 0; j < i; j++) |
i | 372 | fs/ext2/super.c | brelse (s->u.ext2_sb.s_group_desc[i]); |
i | 378 | fs/ext2/super.c | for (i = 0; i < EXT2_MAX_GROUP_LOADED; i++) { |
i | 379 | fs/ext2/super.c | s->u.ext2_sb.s_inode_bitmap_number[i] = 0; |
i | 380 | fs/ext2/super.c | s->u.ext2_sb.s_inode_bitmap[i] = NULL; |
i | 381 | fs/ext2/super.c | s->u.ext2_sb.s_block_bitmap_number[i] = 0; |
i | 382 | fs/ext2/super.c | s->u.ext2_sb.s_block_bitmap[i] = NULL; |
i | 392 | fs/ext2/super.c | for (i = 0; i < EXT2_MAX_GROUP_DESC; i++) |
i | 393 | fs/ext2/super.c | if (s->u.ext2_sb.s_group_desc[i]) |
i | 394 | fs/ext2/super.c | brelse (s->u.ext2_sb.s_group_desc[i]); |
i | 410 | fs/ext2/super.c | for (i = 0; i < bh_count; i++) |
i | 411 | fs/ext2/super.c | s->u.ext2_sb.s_group_desc[i]->b_dirt = 1; |
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 | 44 | fs/ext2/truncate.c | int i, tmp; |
i | 54 | fs/ext2/truncate.c | for (i = direct_block ; i < EXT2_NDIR_BLOCKS ; i++) { |
i | 55 | fs/ext2/truncate.c | p = inode->u.ext2_i.i_data + i; |
i | 65 | fs/ext2/truncate.c | if (i < direct_block) { |
i | 90 | fs/ext2/truncate.c | int i, tmp; |
i | 113 | fs/ext2/truncate.c | for (i = indirect_block ; i < addr_per_block ; i++) { |
i | 114 | fs/ext2/truncate.c | if (i < 0) |
i | 115 | fs/ext2/truncate.c | i = 0; |
i | 116 | fs/ext2/truncate.c | if (i < indirect_block) |
i | 118 | fs/ext2/truncate.c | ind = i + (unsigned long *) ind_bh->b_data; |
i | 128 | fs/ext2/truncate.c | if (i < indirect_block) { |
i | 150 | fs/ext2/truncate.c | for (i = 0; i < addr_per_block; i++) |
i | 153 | fs/ext2/truncate.c | if (i >= addr_per_block) |
i | 174 | fs/ext2/truncate.c | int i, tmp; |
i | 196 | fs/ext2/truncate.c | for (i = dindirect_block ; i < addr_per_block ; i++) { |
i | 197 | fs/ext2/truncate.c | if (i < 0) |
i | 198 | fs/ext2/truncate.c | i = 0; |
i | 199 | fs/ext2/truncate.c | if (i < dindirect_block) |
i | 201 | fs/ext2/truncate.c | dind = i + (unsigned long *) dind_bh->b_data; |
i | 205 | fs/ext2/truncate.c | retry |= trunc_indirect (inode, offset + (i * addr_per_block), |
i | 210 | fs/ext2/truncate.c | for (i = 0; i < addr_per_block; i++) |
i | 213 | fs/ext2/truncate.c | if (i >= addr_per_block) |
i | 233 | fs/ext2/truncate.c | int i, tmp; |
i | 257 | fs/ext2/truncate.c | for (i = tindirect_block ; i < addr_per_block ; i++) { |
i | 258 | fs/ext2/truncate.c | if (i < 0) |
i | 259 | fs/ext2/truncate.c | i = 0; |
i | 260 | fs/ext2/truncate.c | if (i < tindirect_block) |
i | 262 | fs/ext2/truncate.c | tind = i + (unsigned long *) tind_bh->b_data; |
i | 264 | fs/ext2/truncate.c | addr_per_block + (i + 1) * addr_per_block * addr_per_block, |
i | 269 | fs/ext2/truncate.c | for (i = 0; i < addr_per_block; i++) |
i | 272 | fs/ext2/truncate.c | if (i >= addr_per_block) |
i | 46 | fs/file_table.c | int i; |
i | 53 | fs/file_table.c | nr_files+=i= PAGE_SIZE/sizeof(struct file); |
i | 56 | fs/file_table.c | file->f_next = file->f_prev = first_file = file++, i--; |
i | 58 | fs/file_table.c | for (; i ; i--) |
i | 70 | fs/file_table.c | int i; |
i | 76 | fs/file_table.c | for (f = first_file, i=0; i < nr_files; i++, f = f->f_next) |
i | 841 | fs/hpfs/hpfs_fs.c | unsigned i, count; |
i | 849 | fs/hpfs/hpfs_fs.c | for (i = 0; i < 8 * 2048; i++) |
i | 850 | fs/hpfs/hpfs_fs.c | count += (test_bit(i, bits) != 0); |
i | 1033 | fs/hpfs/hpfs_fs.c | int i; |
i | 1043 | fs/hpfs/hpfs_fs.c | for (i = 0; i < b->n_used_nodes; i++) { |
i | 1044 | fs/hpfs/hpfs_fs.c | unsigned t = file_secno - n[i].file_secno; |
i | 1045 | fs/hpfs/hpfs_fs.c | if (t < n[i].length) { |
i | 1046 | fs/hpfs/hpfs_fs.c | inode->i_hpfs_file_sec = n[i].file_secno; |
i | 1047 | fs/hpfs/hpfs_fs.c | inode->i_hpfs_disk_sec = n[i].disk_secno; |
i | 1048 | fs/hpfs/hpfs_fs.c | inode->i_hpfs_n_secs = n[i].length; |
i | 1049 | fs/hpfs/hpfs_fs.c | return n[i].disk_secno + t; |
i | 1061 | fs/hpfs/hpfs_fs.c | for (i = 0; i < b->n_used_nodes; i++) { |
i | 1062 | fs/hpfs/hpfs_fs.c | if (file_secno < n[i].file_secno) { |
i | 1064 | fs/hpfs/hpfs_fs.c | anode_secno ano = n[i].down; |
i | 1542 | fs/hpfs/hpfs_fs.c | int i; |
i | 1549 | fs/hpfs/hpfs_fs.c | for (i = 1; de < de_end; i++, de = de_next_de(de)) { |
i | 1550 | fs/hpfs/hpfs_fs.c | if (i == n) |
i | 20 | fs/inode.c | static inline int const hashfn(dev_t dev, unsigned int i) |
i | 22 | fs/inode.c | return (dev ^ i) % NR_IHASH; |
i | 25 | fs/inode.c | static inline struct inode ** const hash(dev_t dev, int i) |
i | 27 | fs/inode.c | return hash_table + hashfn(dev, i); |
i | 88 | fs/inode.c | int i; |
i | 93 | fs/inode.c | i=PAGE_SIZE / sizeof(struct inode); |
i | 94 | fs/inode.c | nr_inodes += i; |
i | 95 | fs/inode.c | nr_free_inodes += i; |
i | 98 | fs/inode.c | inode->i_next = inode->i_prev = first_inode = inode++, i--; |
i | 100 | fs/inode.c | for ( ; i ; i-- ) |
i | 161 | fs/inode.c | int i; |
i | 164 | fs/inode.c | for (i = nr_inodes ; i > 0 ; i--) { |
i | 179 | fs/inode.c | int i; |
i | 182 | fs/inode.c | for (i=0 ; i < nr_inodes ; i++, inode = inode->i_next) { |
i | 195 | fs/inode.c | int i; |
i | 198 | fs/inode.c | for (file = first_file, i=0; i<nr_files; i++, file=file->f_next) { |
i | 268 | fs/inode.c | int i; |
i | 271 | fs/inode.c | for(i = nr_inodes ; i > 0 ; i--) { |
i | 286 | fs/inode.c | int i; |
i | 290 | fs/inode.c | for(i = 0; i < nr_inodes*2; i++, inode = inode->i_next) { |
i | 342 | fs/inode.c | int i; |
i | 349 | fs/inode.c | for (i = 0; i<nr_inodes; inode = inode->i_next, i++) { |
i | 69 | fs/isofs/dir.c | unsigned int block,offset,i, j; |
i | 139 | fs/isofs/dir.c | i = 1; |
i | 151 | fs/isofs/dir.c | i = 2; |
i | 177 | fs/isofs/dir.c | i = dlen; |
i | 187 | fs/isofs/dir.c | i = dlen; |
i | 191 | fs/isofs/dir.c | for (i = 0; i < dlen && i < NAME_MAX; i++) { |
i | 192 | fs/isofs/dir.c | if (!(c = dpnt[i])) break; |
i | 194 | fs/isofs/dir.c | if (c == ';' && i == dlen-2 && de->name[i+1] == '1') |
i | 197 | fs/isofs/dir.c | dpnt[i] = c; |
i | 200 | fs/isofs/dir.c | for(j=0; j<i; j++) |
i | 204 | fs/isofs/dir.c | printk("Nchar: %d\n",i); |
i | 207 | fs/isofs/dir.c | if (i && i+1 < sizeof(cache.filename)) { |
i | 211 | fs/isofs/dir.c | strncpy(cache.filename, dpnt, i); |
i | 221 | fs/isofs/dir.c | if (i) { |
i | 223 | fs/isofs/dir.c | put_fs_byte(0,i+dirent->d_name); |
i | 224 | fs/isofs/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 226 | fs/isofs/dir.c | return i; |
i | 92 | fs/isofs/file.c | int result, i; |
i | 100 | fs/isofs/file.c | for(i=0;i<(inode->i_size < ISOFS_BUFFER_SIZE(inode) ? inode->i_size : ISOFS_BUFFER_SIZE(inode)); |
i | 101 | fs/isofs/file.c | i++,pnt++){ |
i | 145 | fs/isofs/inode.c | int i = blocksize; |
i | 146 | fs/isofs/inode.c | while (i != 1){ |
i | 148 | fs/isofs/inode.c | i >>=1; |
i | 331 | fs/isofs/inode.c | int i; |
i | 366 | fs/isofs/inode.c | for(i=0; i< raw_inode->name_len[0]; i++) |
i | 367 | fs/isofs/inode.c | if(raw_inode->name[i]=='.' || raw_inode->name[i]==';') |
i | 369 | fs/isofs/inode.c | if(i == raw_inode->name_len[0] || raw_inode->name[i] == ';') |
i | 70 | fs/isofs/namei.c | unsigned int block, i, f_pos, offset, inode_number; |
i | 163 | fs/isofs/namei.c | for (i = 0; i < dlen; i++) { |
i | 164 | fs/isofs/namei.c | c = dpnt[i]; |
i | 166 | fs/isofs/namei.c | if (c == ';' && i == dlen-2 && dpnt[i+1] == '1') { |
i | 171 | fs/isofs/namei.c | de->name[i] = c; |
i | 83 | fs/isofs/symlink.c | int i; |
i | 98 | fs/isofs/symlink.c | i = 0; |
i | 100 | fs/isofs/symlink.c | while (i<buflen && (c = pnt[i])) { |
i | 101 | fs/isofs/symlink.c | i++; |
i | 105 | 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 | 95 | fs/isofs/util.c | int crtime, days, i; |
i | 113 | fs/isofs/util.c | for (i = 1; i < month; i++) |
i | 114 | fs/isofs/util.c | days += monlen[i-1]; |
i | 44 | fs/minix/bitmap.c | unsigned i, j, end, sum = 0; |
i | 47 | fs/minix/bitmap.c | for (i=0; (i<numblocks) && numbits; i++) { |
i | 48 | fs/minix/bitmap.c | if (!(bh=map[i])) |
i | 103 | fs/minix/bitmap.c | int i,j; |
i | 111 | fs/minix/bitmap.c | for (i=0 ; i<8 ; i++) |
i | 112 | fs/minix/bitmap.c | if ((bh=sb->u.minix_sb.s_zmap[i]) != NULL) |
i | 115 | fs/minix/bitmap.c | if (i>=8 || !bh || j>=8192) |
i | 122 | fs/minix/bitmap.c | j += i*8192 + sb->u.minix_sb.s_firstdatazone-1; |
i | 186 | fs/minix/bitmap.c | int i,j; |
i | 194 | fs/minix/bitmap.c | for (i=0 ; i<8 ; i++) |
i | 195 | fs/minix/bitmap.c | if ((bh = inode->i_sb->u.minix_sb.s_imap[i]) != NULL) |
i | 208 | 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 | 84 | fs/minix/fsync.c | int i; |
i | 87 | fs/minix/fsync.c | for (i = 0; i < 7; i++) { |
i | 88 | fs/minix/fsync.c | rc = sync_block (inode, inode->u.minix_i.i_data + i, wait); |
i | 99 | fs/minix/fsync.c | int i; |
i | 107 | fs/minix/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 109 | fs/minix/fsync.c | ((unsigned short *) ind_bh->b_data) + i, |
i | 123 | fs/minix/fsync.c | int i; |
i | 131 | fs/minix/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 133 | fs/minix/fsync.c | ((unsigned short *) dind_bh->b_data) + i, |
i | 30 | fs/minix/inode.c | int i; |
i | 34 | fs/minix/inode.c | for(i = 0 ; i < MINIX_I_MAP_SLOTS ; i++) |
i | 35 | fs/minix/inode.c | brelse(sb->u.minix_sb.s_imap[i]); |
i | 36 | fs/minix/inode.c | for(i = 0 ; i < MINIX_Z_MAP_SLOTS ; i++) |
i | 37 | fs/minix/inode.c | brelse(sb->u.minix_sb.s_zmap[i]); |
i | 58 | fs/minix/inode.c | int i,dev=s->s_dev,block; |
i | 95 | fs/minix/inode.c | for (i=0;i < MINIX_I_MAP_SLOTS;i++) |
i | 96 | fs/minix/inode.c | s->u.minix_sb.s_imap[i] = NULL; |
i | 97 | fs/minix/inode.c | for (i=0;i < MINIX_Z_MAP_SLOTS;i++) |
i | 98 | fs/minix/inode.c | s->u.minix_sb.s_zmap[i] = NULL; |
i | 100 | fs/minix/inode.c | for (i=0 ; i < s->u.minix_sb.s_imap_blocks ; i++) |
i | 101 | fs/minix/inode.c | if ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
i | 105 | fs/minix/inode.c | for (i=0 ; i < s->u.minix_sb.s_zmap_blocks ; i++) |
i | 106 | fs/minix/inode.c | if ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
i | 111 | fs/minix/inode.c | for(i=0;i<MINIX_I_MAP_SLOTS;i++) |
i | 112 | fs/minix/inode.c | brelse(s->u.minix_sb.s_imap[i]); |
i | 113 | fs/minix/inode.c | for(i=0;i<MINIX_Z_MAP_SLOTS;i++) |
i | 114 | fs/minix/inode.c | brelse(s->u.minix_sb.s_zmap[i]); |
i | 168 | fs/minix/inode.c | int i; |
i | 182 | fs/minix/inode.c | i = inode_bmap(inode,7); |
i | 183 | fs/minix/inode.c | if (!i) |
i | 185 | fs/minix/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
i | 188 | fs/minix/inode.c | i = inode_bmap(inode,8); |
i | 189 | fs/minix/inode.c | if (!i) |
i | 191 | fs/minix/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>9); |
i | 192 | fs/minix/inode.c | if (!i) |
i | 194 | 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 | 196 | fs/minix/namei.c | for (i = 0; i < info->s_namelen ; i++) |
i | 197 | fs/minix/namei.c | de->name[i] = (i < namelen) ? name[i] : 0; |
i | 544 | fs/minix/namei.c | int i; |
i | 561 | fs/minix/namei.c | i = 0; |
i | 562 | fs/minix/namei.c | while (i < 1023 && (c=*(symname++))) |
i | 563 | fs/minix/namei.c | name_block->b_data[i++] = c; |
i | 564 | fs/minix/namei.c | name_block->b_data[i] = 0; |
i | 567 | fs/minix/namei.c | inode->i_size = i; |
i | 578 | fs/minix/namei.c | i = minix_add_entry(dir, name, len, &bh, &de); |
i | 579 | fs/minix/namei.c | if (i) { |
i | 584 | 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 | 50 | fs/namei.c | while (--i) { |
i | 278 | fs/namei.c | int namelen,error,i; |
i | 300 | fs/namei.c | for (i = 0; i < 5; i++) { /* races... */ |
i | 95 | fs/nfs/dir.c | int i; |
i | 106 | fs/nfs/dir.c | i = sizeof (struct nfs_entry)*NFS_READDIR_CACHE_SIZE; |
i | 107 | fs/nfs/dir.c | c_entry = (struct nfs_entry *) kmalloc(i, GFP_KERNEL); |
i | 108 | fs/nfs/dir.c | for (i = 0; i < NFS_READDIR_CACHE_SIZE; i++) { |
i | 109 | fs/nfs/dir.c | c_entry[i].name = (char *) kmalloc(NFS_MAXNAMLEN + 1, |
i | 118 | fs/nfs/dir.c | for (i = 0; i < c_size; i++) { |
i | 119 | fs/nfs/dir.c | if (filp->f_pos == c_entry[i].cookie) { |
i | 120 | fs/nfs/dir.c | if (i == c_size - 1) { |
i | 121 | fs/nfs/dir.c | if (c_entry[i].eof) |
i | 125 | fs/nfs/dir.c | entry = c_entry + i + 1; |
i | 151 | fs/nfs/dir.c | i = strlen(entry->name); |
i | 152 | fs/nfs/dir.c | memcpy_tofs(dirent->d_name, entry->name, i + 1); |
i | 154 | fs/nfs/dir.c | put_fs_word(i, &dirent->d_reclen); |
i | 156 | fs/nfs/dir.c | return i; |
i | 187 | fs/nfs/dir.c | int i; |
i | 189 | fs/nfs/dir.c | for (i = 0; i < NFS_LOOKUP_CACHE_SIZE; i++) { |
i | 190 | fs/nfs/dir.c | entry = nfs_lookup_cache + i; |
i | 253 | fs/nfs/dir.c | int i; |
i | 265 | fs/nfs/dir.c | for (i = 0; i < NFS_LOOKUP_CACHE_SIZE; i++) { |
i | 266 | fs/nfs/dir.c | entry = nfs_lookup_cache + i; |
i | 278 | fs/nfs/dir.c | int i; |
i | 280 | fs/nfs/dir.c | for (i = 0; i < NFS_LOOKUP_CACHE_SIZE; i++) { |
i | 281 | fs/nfs/dir.c | entry = nfs_lookup_cache + i; |
i | 67 | fs/nfs/file.c | int i; |
i | 89 | fs/nfs/file.c | for (i = 0; i < count; i += n) { |
i | 90 | fs/nfs/file.c | hunk = count - i; |
i | 103 | fs/nfs/file.c | i += result; |
i | 110 | fs/nfs/file.c | return i; |
i | 118 | fs/nfs/file.c | int i; |
i | 140 | fs/nfs/file.c | for (i = 0; i < count; i += n) { |
i | 141 | fs/nfs/file.c | hunk = count - i; |
i | 154 | fs/nfs/file.c | i += hunk; |
i | 161 | fs/nfs/file.c | return i; |
i | 95 | fs/nfs/mmap.c | int i; |
i | 122 | fs/nfs/mmap.c | for (i = 0; i < (PAGE_SIZE - clear); i += n) { |
i | 125 | fs/nfs/mmap.c | hunk = PAGE_SIZE - i; |
i | 129 | fs/nfs/mmap.c | pos, hunk, (char *) (page + i), &fattr); |
i | 134 | fs/nfs/mmap.c | i += result; |
i | 535 | fs/nfs/proc.c | int i = 0; /* = 0 is for gcc */ |
i | 552 | fs/nfs/proc.c | for (i = 0; i < count && *p++; i++) { |
i | 561 | fs/nfs/proc.c | eof = (i == count && !*p++ && *p++) |
i | 562 | fs/nfs/proc.c | || (i < count && *p++); |
i | 563 | fs/nfs/proc.c | if (eof && i) |
i | 565 | fs/nfs/proc.c | PRINTK("NFS reply readdir %d %s\n", i, |
i | 572 | fs/nfs/proc.c | return (status == NFS_OK) ? i : -nfs_stat_to_errno(status); |
i | 607 | fs/nfs/proc.c | int i; |
i | 628 | fs/nfs/proc.c | for (i = 0; i < 16 && i < NGROUPS && current->groups[i] != NOGROUP; i++) |
i | 629 | fs/nfs/proc.c | *p++ = htonl(current->groups[i]); |
i | 630 | fs/nfs/proc.c | *p2 = htonl(i); |
i | 708 | fs/nfs/proc.c | int i; |
i | 710 | fs/nfs/proc.c | for (i = 0; nfs_errtbl[i].stat != -1; i++) { |
i | 711 | fs/nfs/proc.c | if (nfs_errtbl[i].stat == stat) |
i | 712 | fs/nfs/proc.c | return nfs_errtbl[i].errno; |
i | 715 | fs/nfs/proc.c | return nfs_errtbl[i].errno; |
i | 86 | fs/nfs/symlink.c | int i; |
i | 104 | fs/nfs/symlink.c | for (i = 0; i < buflen && (c = res[i]); i++) |
i | 107 | fs/nfs/symlink.c | return i; |
i | 383 | fs/pipe.c | int i,j; |
i | 396 | fs/pipe.c | for(i=0;j<2 && i<NR_OPEN;i++) |
i | 397 | fs/pipe.c | if (!current->filp[i]) { |
i | 398 | fs/pipe.c | current->filp[ fd[j]=i ] = f[j]; |
i | 104 | fs/proc/array.c | struct sysinfo i; |
i | 106 | fs/proc/array.c | si_meminfo(&i); |
i | 107 | fs/proc/array.c | si_swapinfo(&i); |
i | 111 | fs/proc/array.c | i.totalram, i.totalram-i.freeram, i.freeram, i.sharedram, i.bufferram, |
i | 112 | fs/proc/array.c | i.totalswap, i.totalswap-i.freeswap, i.freeswap); |
i | 232 | fs/proc/array.c | int i,tty_pgrp; |
i | 251 | fs/proc/array.c | for(i=0; i<32; ++i) { |
i | 252 | fs/proc/array.c | switch((int) (*p)->sigaction[i].sa_handler) { |
i | 308 | fs/proc/array.c | int i, tpag; |
i | 317 | fs/proc/array.c | for (i = 0; i < 0x300; ++i) { |
i | 318 | fs/proc/array.c | if ((ptbl = pagedir[i]) == 0) { |
i | 332 | fs/proc/array.c | if (i >= 15 && i < 0x2f0) { |
i | 95 | fs/proc/base.c | int i; |
i | 106 | fs/proc/base.c | i = NR_BASE_DIRENTRY; |
i | 107 | fs/proc/base.c | while (i-- > 0 && !proc_match(len,name,base_dir+i)) |
i | 109 | fs/proc/base.c | if (i < 0) { |
i | 113 | fs/proc/base.c | if (base_dir[i].low_ino == 1) |
i | 116 | fs/proc/base.c | ino = (pid << 16) + base_dir[i].low_ino; |
i | 117 | fs/proc/base.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 118 | fs/proc/base.c | if (task[i] && task[i]->pid == pid) |
i | 120 | fs/proc/base.c | if (!pid || i >= NR_TASKS) { |
i | 137 | fs/proc/base.c | int i,j; |
i | 143 | fs/proc/base.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 144 | fs/proc/base.c | if (task[i] && task[i]->pid == pid) |
i | 146 | fs/proc/base.c | if (!pid || i >= NR_TASKS) |
i | 151 | fs/proc/base.c | i = de->namelen; |
i | 156 | fs/proc/base.c | put_fs_word(i,&dirent->d_reclen); |
i | 157 | fs/proc/base.c | put_fs_byte(0,i+dirent->d_name); |
i | 158 | fs/proc/base.c | j = i; |
i | 159 | fs/proc/base.c | while (i--) |
i | 160 | 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 | 131 | fs/proc/fd.c | int i,j; |
i | 145 | fs/proc/fd.c | i = j = fd+1; |
i | 151 | fs/proc/fd.c | put_fs_word(i, &dirent->d_reclen); |
i | 152 | fs/proc/fd.c | put_fs_byte(0, i+dirent->d_name); |
i | 153 | fs/proc/fd.c | while (i--) |
i | 154 | fs/proc/fd.c | put_fs_byte('.', i+dirent->d_name); |
i | 158 | fs/proc/fd.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 159 | fs/proc/fd.c | if ((p = task[i]) && p->pid == pid) |
i | 161 | fs/proc/fd.c | if (i >= NR_TASKS) |
i | 178 | fs/proc/fd.c | i = 1; |
i | 181 | fs/proc/fd.c | i++; |
i | 183 | fs/proc/fd.c | j = i; |
i | 189 | fs/proc/fd.c | put_fs_word(i, &dirent->d_reclen); |
i | 190 | fs/proc/fd.c | put_fs_byte(0, i+dirent->d_name); |
i | 191 | fs/proc/fd.c | while (i--) { |
i | 192 | fs/proc/fd.c | put_fs_byte('0'+(fd % 10), i+dirent->d_name); |
i | 78 | fs/proc/inode.c | int i; |
i | 91 | fs/proc/inode.c | for (i = 0; i < NR_TASKS ; i++) |
i | 92 | fs/proc/inode.c | if ((p = task[i]) && (p->pid == pid)) |
i | 94 | fs/proc/inode.c | if (!p || i >= NR_TASKS) |
i | 99 | fs/proc/inode.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 100 | 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 | 106 | fs/proc/link.c | int i; |
i | 110 | fs/proc/link.c | i = proc_follow_link(NULL, inode, 0, 0, &inode); |
i | 111 | fs/proc/link.c | if (i) |
i | 112 | fs/proc/link.c | return i; |
i | 118 | fs/proc/link.c | i = sprintf(buf,"[%04x]:%u", dev, ino); |
i | 119 | fs/proc/link.c | if (buflen > i) |
i | 120 | fs/proc/link.c | buflen = i; |
i | 121 | fs/proc/link.c | i = 0; |
i | 122 | fs/proc/link.c | while (i < buflen) |
i | 123 | fs/proc/link.c | put_fs_byte(buf[i++],buffer++); |
i | 124 | 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 | 57 | fs/proc/mem.c | i = PAGE_SIZE-(addr & ~PAGE_MASK); |
i | 58 | fs/proc/mem.c | if (i > count) |
i | 59 | fs/proc/mem.c | i = count; |
i | 60 | fs/proc/mem.c | memcpy_tofs(tmp,(void *) page,i); |
i | 61 | fs/proc/mem.c | addr += i; |
i | 62 | fs/proc/mem.c | tmp += i; |
i | 63 | fs/proc/mem.c | count -= i; |
i | 76 | fs/proc/mem.c | int i; |
i | 84 | fs/proc/mem.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 85 | fs/proc/mem.c | if (task[i] && task[i]->pid == pid) { |
i | 86 | fs/proc/mem.c | cr3 = task[i]->tss.cr3; |
i | 109 | fs/proc/mem.c | i = PAGE_SIZE-(addr & ~PAGE_MASK); |
i | 110 | fs/proc/mem.c | if (i > count) |
i | 111 | fs/proc/mem.c | i = count; |
i | 112 | fs/proc/mem.c | memcpy_fromfs((void *) page,tmp,i); |
i | 113 | fs/proc/mem.c | addr += i; |
i | 114 | fs/proc/mem.c | tmp += i; |
i | 115 | fs/proc/mem.c | count -= i; |
i | 105 | fs/proc/net.c | int i; |
i | 114 | fs/proc/net.c | i = NR_NET_DIRENTRY; |
i | 115 | fs/proc/net.c | while (i-- > 0 && !proc_match(len,name,net_dir+i)) |
i | 117 | fs/proc/net.c | if (i < 0) { |
i | 121 | fs/proc/net.c | ino = net_dir[i].low_ino; |
i | 135 | fs/proc/net.c | int i,j; |
i | 143 | fs/proc/net.c | i = de->namelen; |
i | 146 | fs/proc/net.c | put_fs_word(i,&dirent->d_reclen); |
i | 147 | fs/proc/net.c | put_fs_byte(0,i+dirent->d_name); |
i | 148 | fs/proc/net.c | j = i; |
i | 149 | fs/proc/net.c | while (i--) |
i | 150 | fs/proc/net.c | put_fs_byte(de->name[i], i+dirent->d_name); |
i | 77 | fs/proc/root.c | int i, ino; |
i | 86 | fs/proc/root.c | i = NR_ROOT_DIRENTRY; |
i | 87 | fs/proc/root.c | while (i-- > 0 && !proc_match(len,name,root_dir+i)) |
i | 89 | fs/proc/root.c | if (i >= 0) { |
i | 90 | fs/proc/root.c | ino = root_dir[i].low_ino; |
i | 113 | fs/proc/root.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 114 | fs/proc/root.c | if (task[i] && task[i]->pid == pid) |
i | 116 | fs/proc/root.c | if (!pid || i >= NR_TASKS) { |
i | 135 | fs/proc/root.c | int i,j; |
i | 145 | fs/proc/root.c | i = de->namelen; |
i | 147 | fs/proc/root.c | put_fs_word(i,&dirent->d_reclen); |
i | 148 | fs/proc/root.c | put_fs_byte(0,i+dirent->d_name); |
i | 149 | fs/proc/root.c | j = i; |
i | 150 | fs/proc/root.c | while (i--) |
i | 151 | fs/proc/root.c | put_fs_byte(de->name[i], i+dirent->d_name); |
i | 164 | fs/proc/root.c | i = 1; |
i | 167 | fs/proc/root.c | i++; |
i | 169 | fs/proc/root.c | j = i; |
i | 171 | fs/proc/root.c | put_fs_word(i, &dirent->d_reclen); |
i | 172 | fs/proc/root.c | put_fs_byte(0, i+dirent->d_name); |
i | 173 | fs/proc/root.c | while (i--) { |
i | 174 | 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 | 118 | fs/select.c | for (i = 0 ; i < n ; i++) { |
i | 119 | fs/select.c | if (FD_ISSET(i,in) && check(SEL_IN,wait,current->filp[i])) { |
i | 120 | fs/select.c | FD_SET(i, res_in); |
i | 124 | fs/select.c | if (FD_ISSET(i,out) && check(SEL_OUT,wait,current->filp[i])) { |
i | 125 | fs/select.c | FD_SET(i, res_out); |
i | 129 | fs/select.c | if (FD_ISSET(i,ex) && check(SEL_EX,wait,current->filp[i])) { |
i | 130 | fs/select.c | FD_SET(i, res_ex); |
i | 198 | fs/select.c | int i; |
i | 206 | fs/select.c | i = verify_area(VERIFY_READ, buffer, 20); |
i | 207 | fs/select.c | if (i) |
i | 208 | fs/select.c | return i; |
i | 218 | fs/select.c | if ((i = get_fd_set(n, inp, &in)) || |
i | 219 | fs/select.c | (i = get_fd_set(n, outp, &out)) || |
i | 220 | fs/select.c | (i = get_fd_set(n, exp, &ex))) return i; |
i | 223 | fs/select.c | i = verify_area(VERIFY_WRITE, tvp, sizeof(*tvp)); |
i | 224 | fs/select.c | if (i) |
i | 225 | fs/select.c | return i; |
i | 233 | fs/select.c | i = do_select(n, &in, &out, &ex, &res_in, &res_out, &res_ex); |
i | 245 | fs/select.c | if (i < 0) |
i | 246 | fs/select.c | return i; |
i | 247 | fs/select.c | if (!i && (current->signal & ~current->blocked)) |
i | 252 | fs/select.c | return i; |
i | 174 | fs/super.c | int i; |
i | 181 | fs/super.c | for (i = 0; i < sizeof unnamed_dev_in_use/sizeof unnamed_dev_in_use[0]; i++) { |
i | 182 | fs/super.c | if (!unnamed_dev_in_use[i]) { |
i | 183 | fs/super.c | unnamed_dev_in_use[i] = 1; |
i | 184 | fs/super.c | return (UNNAMED_MAJOR << 8) | i; |
i | 404 | fs/super.c | int i; |
i | 414 | fs/super.c | for (i = 0 ; i < 100 ; i++) { |
i | 417 | fs/super.c | if (!(tmp[i] = get_fs_byte(type++))) |
i | 470 | fs/super.c | i = vma->vm_end - (unsigned long) data; |
i | 471 | fs/super.c | if (PAGE_SIZE <= (unsigned long) i) |
i | 472 | fs/super.c | i = PAGE_SIZE-1; |
i | 477 | 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 | 348 | fs/xiafs/bitmap.c | int i, tmp; |
i | 352 | fs/xiafs/bitmap.c | for (i=bh->b_size; i-- > 0; ) { |
i | 353 | fs/xiafs/bitmap.c | tmp=bh->b_data[i]; |
i | 362 | fs/xiafs/bitmap.c | int izones, i, not_que; |
i | 367 | fs/xiafs/bitmap.c | for (i=0; i < izones; i++) { |
i | 368 | fs/xiafs/bitmap.c | bh=get_imap_zone(sb, i << XIAFS_BITS_PER_Z_BITS(sb), ¬_que); |
i | 374 | fs/xiafs/bitmap.c | i=izones << XIAFS_BITS_PER_Z_BITS(sb); |
i | 375 | fs/xiafs/bitmap.c | return i - sum; |
i | 381 | fs/xiafs/bitmap.c | int zzones, i, not_que; |
i | 386 | fs/xiafs/bitmap.c | for (i=0; i < zzones; i++) { |
i | 387 | fs/xiafs/bitmap.c | bh=get_zmap_zone(sb, i << XIAFS_BITS_PER_Z_BITS(sb), ¬_que); |
i | 393 | fs/xiafs/bitmap.c | i=zzones << XIAFS_BITS_PER_Z_BITS(sb); |
i | 394 | 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 | 85 | fs/xiafs/fsync.c | int i; |
i | 88 | fs/xiafs/fsync.c | for (i = 0; i < 8; i++) { |
i | 89 | fs/xiafs/fsync.c | rc = sync_block (inode, inode->u.ext_i.i_data + i, wait); |
i | 100 | fs/xiafs/fsync.c | int i; |
i | 108 | fs/xiafs/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 110 | fs/xiafs/fsync.c | ((unsigned long *) ind_bh->b_data) + i, |
i | 124 | fs/xiafs/fsync.c | int i; |
i | 132 | fs/xiafs/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 134 | fs/xiafs/fsync.c | ((unsigned long *) dind_bh->b_data) + 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 | 64 | fs/xiafs/inode.c | int i, z, dev; |
i | 108 | fs/xiafs/inode.c | for (i=0;i < _XIAFS_IMAP_SLOTS;i++) { |
i | 109 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_buf[i] = NULL; |
i | 110 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_iznr[i] = -1; |
i | 112 | fs/xiafs/inode.c | for (i=0;i < _XIAFS_ZMAP_SLOTS;i++) { |
i | 113 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_buf[i] = NULL; |
i | 114 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_zznr[i] = -1; |
i | 121 | fs/xiafs/inode.c | for (i=0 ; i < s->u.xiafs_sb.s_imap_zones ; i++) { |
i | 122 | fs/xiafs/inode.c | if (!(s->u.xiafs_sb.s_imap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s)))) |
i | 124 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_iznr[i]=i; |
i | 131 | fs/xiafs/inode.c | for (i=0 ; i < s->u.xiafs_sb.s_zmap_zones ; i++) { |
i | 132 | fs/xiafs/inode.c | if (!(s->u.xiafs_sb.s_zmap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s)))) |
i | 134 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_zznr[i]=i; |
i | 148 | fs/xiafs/inode.c | for(i=0; i < _XIAFS_IMAP_SLOTS; i++) |
i | 149 | fs/xiafs/inode.c | brelse(s->u.xiafs_sb.s_imap_buf[i]); |
i | 150 | fs/xiafs/inode.c | for(i=0; i < _XIAFS_ZMAP_SLOTS; i++) |
i | 151 | fs/xiafs/inode.c | brelse(s->u.xiafs_sb.s_zmap_buf[i]); |
i | 187 | fs/xiafs/inode.c | int i; |
i | 205 | fs/xiafs/inode.c | i = inode->u.xiafs_i.i_ind_zone; |
i | 206 | fs/xiafs/inode.c | if (i) |
i | 207 | fs/xiafs/inode.c | i = zone_bmap(bread(inode->i_dev, i, XIAFS_ZSIZE(inode->i_sb)), zone); |
i | 208 | fs/xiafs/inode.c | return i; |
i | 211 | fs/xiafs/inode.c | i = inode->u.xiafs_i.i_dind_zone; |
i | 212 | fs/xiafs/inode.c | if (i) |
i | 213 | fs/xiafs/inode.c | i = zone_bmap(bread(inode->i_dev, i, XIAFS_ZSIZE(inode->i_sb)), |
i | 215 | fs/xiafs/inode.c | if (i) |
i | 216 | fs/xiafs/inode.c | i= zone_bmap(bread(inode->i_dev,i, XIAFS_ZSIZE(inode->i_sb)), |
i | 218 | 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 | 406 | fs/xiafs/namei.c | int i, zones, offset; |
i | 416 | fs/xiafs/namei.c | for (i=0; i < zones; i++) { |
i | 417 | fs/xiafs/namei.c | bh = xiafs_bread(inode, i, 0); |
i | 418 | fs/xiafs/namei.c | if (!i) { |
i | 588 | fs/xiafs/namei.c | int i; |
i | 611 | fs/xiafs/namei.c | for (i = 0; i < BLOCK_SIZE-1 && (c=*symname++); i++) |
i | 612 | fs/xiafs/namei.c | name_block->b_data[i] = c; |
i | 613 | fs/xiafs/namei.c | name_block->b_data[i] = 0; |
i | 616 | 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 | 154 | init/main.c | int i=1; |
i | 156 | init/main.c | while (cur && isdigit(*cur) && i <= 10) { |
i | 157 | init/main.c | ints[i++] = simple_strtoul(cur,NULL,0); |
i | 161 | init/main.c | ints[0] = i-1; |
i | 206 | init/main.c | int i = 0; |
i | 209 | init/main.c | while (bootsetups[i].str) { |
i | 210 | init/main.c | int n = strlen(bootsetups[i].str); |
i | 211 | init/main.c | if (!strncmp(line,bootsetups[i].str,n)) { |
i | 212 | init/main.c | bootsetups[i].setup_func(get_options(line+n,ints), ints); |
i | 215 | init/main.c | i++; |
i | 453 | init/main.c | int i; |
i | 456 | init/main.c | write(1,printbuf,i=vsprintf(printbuf, fmt, args)); |
i | 458 | init/main.c | return i; |
i | 463 | init/main.c | int pid,i; |
i | 484 | init/main.c | while (pid != wait(&i)) |
i | 500 | init/main.c | if (pid == wait(&i)) |
i | 502 | init/main.c | printf("\n\rchild %d died with code %04x\n\r",pid,i); |
i | 28 | ipc/sem.c | int i=0; |
i | 32 | ipc/sem.c | for (i=0; i < SEMMNI; i++) |
i | 33 | ipc/sem.c | semary[i] = (struct semid_ds *) IPC_UNUSED; |
i | 153 | ipc/sem.c | int i, id, val = 0; |
i | 185 | ipc/sem.c | i= verify_area(VERIFY_WRITE, tmp, sizeof(struct seminfo)); |
i | 186 | ipc/sem.c | if (i) |
i | 187 | ipc/sem.c | return i; |
i | 195 | ipc/sem.c | i = verify_area (VERIFY_WRITE, buf, sizeof (*sma)); |
i | 196 | ipc/sem.c | if (i) |
i | 197 | ipc/sem.c | return i; |
i | 238 | ipc/sem.c | i = verify_area (VERIFY_WRITE, array, nsems* sizeof(short)); |
i | 239 | ipc/sem.c | if (i) |
i | 240 | ipc/sem.c | return i; |
i | 259 | ipc/sem.c | if ((i = verify_area (VERIFY_READ, array, sizeof tbuf))) |
i | 260 | ipc/sem.c | return i; |
i | 262 | ipc/sem.c | for (i=0; i< nsems; i++) |
i | 263 | ipc/sem.c | if (sem_io[i] > SEMVMX) |
i | 269 | ipc/sem.c | if ((i = verify_area (VERIFY_WRITE, arg, sizeof tbuf))) |
i | 270 | ipc/sem.c | return i; |
i | 275 | ipc/sem.c | if ((i = verify_area (VERIFY_READ, buf, sizeof tbuf))) |
i | 276 | ipc/sem.c | return i; |
i | 290 | ipc/sem.c | for (i=0; i< sma->sem_nsems; i++) |
i | 291 | ipc/sem.c | sem_io[i] = sma->sem_base[i].semval; |
i | 326 | ipc/sem.c | for (i=0; i<nsems; i++) |
i | 327 | ipc/sem.c | sma->sem_base[i].semval = sem_io[i]; |
i | 344 | ipc/sem.c | int i, id; |
i | 361 | ipc/sem.c | for (i=0; i<nsops; i++) { |
i | 362 | ipc/sem.c | sop = &sops[i]; |
i | 379 | ipc/sem.c | for (i=0; i<nsops; i++) { |
i | 380 | ipc/sem.c | if (!(sops[i].sem_flg & SEM_UNDO)) |
i | 384 | ipc/sem.c | (un->sem_num == sops[i].sem_num)) |
i | 394 | ipc/sem.c | un->sem_num = sops[i].sem_num; |
i | 405 | ipc/sem.c | for (i=0; i<nsops; i++) { |
i | 406 | ipc/sem.c | sop = &sops[i]; |
i | 432 | ipc/sem.c | for (i=0; i<nsops; i++) { |
i | 433 | ipc/sem.c | sop = &sops[i]; |
i | 445 | ipc/sem.c | printk ("semop : no undo for op %d\n", i); |
i | 70 | ipc/shm.c | int id, i; |
i | 101 | ipc/shm.c | for (i=0; i< numpages; shp->shm_pages[i++] = 0); |
i | 158 | ipc/shm.c | int i, numpages; |
i | 178 | ipc/shm.c | for (i=0; i< numpages ; i++) { |
i | 179 | ipc/shm.c | if (!(page = shp->shm_pages[i])) |
i | 49 | ipc/util.c | int i; mode_t perm; uid_t euid; int egid; |
i | 59 | ipc/util.c | for (i = 0; (egid = current->groups[i]) != NOGROUP; i++) |
i | 80 | kernel/exit.c | int i; |
i | 88 | kernel/exit.c | for (i=1 ; i<NR_TASKS ; i++) |
i | 89 | kernel/exit.c | if (task[i] == p) { |
i | 90 | kernel/exit.c | task[i] = NULL; |
i | 106 | kernel/exit.c | int i; |
i | 110 | kernel/exit.c | for (i=0 ; i<NR_TASKS ; i++) |
i | 111 | kernel/exit.c | if (task[i] == p) |
i | 127 | kernel/exit.c | int i; |
i | 129 | kernel/exit.c | for (i=1 ; i<NR_TASKS ; i++) { |
i | 130 | kernel/exit.c | if (!task[i]) |
i | 132 | kernel/exit.c | if (bad_task_ptr(task[i]->p_pptr)) |
i | 134 | kernel/exit.c | task[i]->pid); |
i | 135 | kernel/exit.c | if (bad_task_ptr(task[i]->p_cptr)) |
i | 137 | kernel/exit.c | task[i]->pid); |
i | 138 | kernel/exit.c | if (bad_task_ptr(task[i]->p_ysptr)) |
i | 140 | kernel/exit.c | task[i]->pid); |
i | 141 | kernel/exit.c | if (bad_task_ptr(task[i]->p_osptr)) |
i | 143 | kernel/exit.c | task[i]->pid); |
i | 144 | kernel/exit.c | if (task[i]->p_pptr == task[i]) |
i | 146 | kernel/exit.c | task[i]->pid); |
i | 147 | kernel/exit.c | if (task[i]->p_cptr == task[i]) |
i | 149 | kernel/exit.c | task[i]->pid); |
i | 150 | kernel/exit.c | if (task[i]->p_ysptr == task[i]) |
i | 152 | kernel/exit.c | task[i]->pid); |
i | 153 | kernel/exit.c | if (task[i]->p_osptr == task[i]) |
i | 155 | kernel/exit.c | task[i]->pid); |
i | 156 | kernel/exit.c | if (task[i]->p_osptr) { |
i | 157 | kernel/exit.c | if (task[i]->p_pptr != task[i]->p_osptr->p_pptr) |
i | 160 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid, |
i | 161 | kernel/exit.c | task[i]->p_osptr->p_pptr->pid); |
i | 162 | kernel/exit.c | if (task[i]->p_osptr->p_ysptr != task[i]) |
i | 165 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid); |
i | 167 | kernel/exit.c | if (task[i]->p_ysptr) { |
i | 168 | kernel/exit.c | if (task[i]->p_pptr != task[i]->p_ysptr->p_pptr) |
i | 171 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid, |
i | 172 | kernel/exit.c | task[i]->p_osptr->p_pptr->pid); |
i | 173 | kernel/exit.c | if (task[i]->p_ysptr->p_osptr != task[i]) |
i | 176 | kernel/exit.c | task[i]->pid, task[i]->p_ysptr->pid); |
i | 178 | kernel/exit.c | if (task[i]->p_cptr) { |
i | 179 | kernel/exit.c | if (task[i]->p_cptr->p_pptr != task[i]) |
i | 182 | kernel/exit.c | task[i]->pid, task[i]->p_cptr->pid); |
i | 183 | kernel/exit.c | if (task[i]->p_cptr->p_ysptr) |
i | 186 | kernel/exit.c | task[i]->pid, task[i]->p_cptr->pid); |
i | 354 | kernel/exit.c | int i; |
i | 362 | kernel/exit.c | for (i=0 ; i<NR_OPEN ; i++) |
i | 363 | kernel/exit.c | if (current->filp[i]) |
i | 364 | kernel/exit.c | sys_close(i); |
i | 390 | kernel/exit.c | for (i=1 ; i<NR_TASKS ; i++) { |
i | 391 | kernel/exit.c | if (task[i] == current) { |
i | 392 | kernel/exit.c | set_ldt_desc(gdt+(i<<1)+FIRST_LDT_ENTRY, &default_ldt, 1); |
i | 393 | kernel/exit.c | load_ldt(i); |
i | 40 | kernel/fork.c | int i, tasks_free; |
i | 49 | kernel/fork.c | i = NR_TASKS; |
i | 50 | kernel/fork.c | while (--i > 0) { |
i | 51 | kernel/fork.c | if (!task[i]) { |
i | 52 | kernel/fork.c | free_task = i; |
i | 56 | kernel/fork.c | if (task[i]->uid == current->uid) |
i | 58 | kernel/fork.c | if (task[i]->pid == last_pid || task[i]->pgrp == last_pid) |
i | 126 | kernel/fork.c | int i,nr; |
i | 189 | kernel/fork.c | for (i = 0; i < IO_BITMAP_SIZE+1 ; i++) /* IO bitmap is actually SIZE+1 */ |
i | 190 | kernel/fork.c | p->tss.io_bitmap[i] = ~0; |
i | 197 | kernel/fork.c | for (i=0; i<NR_OPEN;i++) |
i | 198 | kernel/fork.c | if ((f = p->filp[i]) != NULL) |
i | 199 | kernel/fork.c | p->filp[i] = copy_fd(f); |
i | 201 | kernel/fork.c | for (i=0; i<NR_OPEN;i++) |
i | 202 | kernel/fork.c | if ((f = p->filp[i]) != NULL) |
i | 22 | kernel/ioport.c | int i; |
i | 25 | kernel/ioport.c | for (i = 0, mask = 0x80000000; i < 32; ++i, mask >>= 1) |
i | 26 | kernel/ioport.c | str[i] = (l & mask) ? '1' : '0'; |
i | 32 | kernel/ioport.c | int i, j; |
i | 35 | kernel/ioport.c | for (i = j = 0; j < numl; ++i) |
i | 37 | kernel/ioport.c | printk("%4d [%3x]: ", 64*i, 64*i); |
i | 180 | kernel/ioport.c | int i; |
i | 182 | kernel/ioport.c | for (i = 1; i < ints[0]; i += 2) |
i | 183 | kernel/ioport.c | snarf_region(ints[i], ints[i+1]); |
i | 322 | kernel/irq.c | int i; |
i | 324 | kernel/irq.c | for (i = 0; i < 16 ; i++) |
i | 325 | kernel/irq.c | set_intr_gate(0x20+i,bad_interrupt[i]); |
i | 332 | kernel/irq.c | for (i = 0; i < 32; i++) { |
i | 333 | kernel/irq.c | bh_base[i].routine = NULL; |
i | 334 | 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 | 42 | kernel/ldt.c | int error, i; |
i | 65 | kernel/ldt.c | for (i=1 ; i<NR_TASKS ; i++) { |
i | 66 | kernel/ldt.c | if (task[i] == current) { |
i | 69 | kernel/ldt.c | set_ldt_desc(gdt+(i<<1)+FIRST_LDT_ENTRY, current->ldt, 512); |
i | 70 | kernel/ldt.c | load_ldt(i); |
i | 144 | kernel/module.c | int i; |
i | 153 | kernel/module.c | for (i = symbol_table_size ; --i >= 0 ; ) { |
i | 170 | kernel/module.c | int i; |
i | 172 | kernel/module.c | i = 0; |
i | 173 | kernel/module.c | for (i = 0 ; (buf[i] = get_fs_byte(user_name + i)) != '\0' ; ) { |
i | 174 | kernel/module.c | if (++i >= MOD_MAX_NAME) |
i | 239 | kernel/module.c | int i; |
i | 248 | kernel/module.c | i = 20; |
i | 251 | kernel/module.c | i--; |
i | 254 | kernel/module.c | i -= strlen(size); |
i | 255 | kernel/module.c | if (i <= 0) |
i | 256 | kernel/module.c | i = 1; |
i | 257 | kernel/module.c | while (--i >= 0) |
i | 57 | kernel/printk.c | unsigned long i, j, count; |
i | 85 | kernel/printk.c | i = 0; |
i | 86 | kernel/printk.c | while (log_size && i < len) { |
i | 93 | kernel/printk.c | i++; |
i | 96 | kernel/printk.c | return i; |
i | 114 | kernel/printk.c | for (i = 0; i < count; i++) { |
i | 120 | kernel/printk.c | return i; |
i | 143 | kernel/printk.c | int i; |
i | 151 | kernel/printk.c | i = vsprintf(buf + 3, fmt, args); /* hopefully i < sizeof(buf)-4 */ |
i | 152 | kernel/printk.c | buf_end = buf + 3 + i; |
i | 192 | kernel/printk.c | return i; |
i | 203 | kernel/printk.c | int i,j; |
i | 211 | kernel/printk.c | for (i=0,j=0; i < log_size; i++) { |
i | 214 | kernel/printk.c | if (buf[j-1] != '\n' && i < log_size - 1 && j < sizeof(buf)-1) |
i | 38 | kernel/ptrace.c | int i; |
i | 40 | kernel/ptrace.c | for (i = 1; i < NR_TASKS; i++) { |
i | 41 | kernel/ptrace.c | if (task[i] != NULL && (task[i]->pid == pid)) |
i | 42 | kernel/ptrace.c | return task[i]; |
i | 235 | kernel/ptrace.c | int i; |
i | 375 | kernel/ptrace.c | for(i=0; i<4; i++) |
i | 376 | kernel/ptrace.c | if ((0x5f54 >> ((data >> (16 + 4*i)) & 0xf)) & 1) |
i | 766 | kernel/sched.c | int i; |
i | 770 | kernel/sched.c | for (i=0 ; i<NR_TASKS ; i++) |
i | 771 | kernel/sched.c | if (task[i]) |
i | 772 | kernel/sched.c | show_task(i,task[i]); |
i | 777 | kernel/sched.c | int i; |
i | 787 | kernel/sched.c | for(i=1 ; i<NR_TASKS ; i++) { |
i | 788 | kernel/sched.c | task[i] = NULL; |
i | 468 | kernel/sys.c | int i; |
i | 476 | kernel/sys.c | for (i=0 ; i<NR_TASKS ; i++) |
i | 477 | kernel/sys.c | if (task[i] && (task[i]->pid == pid) && |
i | 478 | kernel/sys.c | ((task[i]->p_pptr == current) || |
i | 479 | kernel/sys.c | (task[i]->p_opptr == current) || |
i | 480 | kernel/sys.c | (task[i] == current))) { |
i | 481 | kernel/sys.c | if (task[i]->leader) |
i | 483 | kernel/sys.c | if ((task[i]->session != current->session) || |
i | 487 | kernel/sys.c | task[i]->pgrp = pgid; |
i | 513 | kernel/sys.c | int i; |
i | 516 | kernel/sys.c | i = verify_area(VERIFY_WRITE, grouplist, sizeof(gid_t) * gidsetsize); |
i | 517 | kernel/sys.c | if (i) |
i | 518 | kernel/sys.c | return i; |
i | 520 | kernel/sys.c | for (i = 0 ; (i < NGROUPS) && (current->groups[i] != NOGROUP) ; i++) { |
i | 523 | kernel/sys.c | if (i >= gidsetsize) |
i | 525 | kernel/sys.c | put_fs_word(current->groups[i], (short *) grouplist); |
i | 528 | kernel/sys.c | return(i); |
i | 533 | kernel/sys.c | int i; |
i | 539 | kernel/sys.c | for (i = 0; i < gidsetsize; i++, grouplist++) { |
i | 540 | kernel/sys.c | current->groups[i] = get_fs_word((unsigned short *) grouplist); |
i | 542 | kernel/sys.c | if (i < NGROUPS) |
i | 543 | kernel/sys.c | current->groups[i] = NOGROUP; |
i | 549 | kernel/sys.c | int i; |
i | 554 | kernel/sys.c | for (i = 0; i < NGROUPS; i++) { |
i | 555 | kernel/sys.c | if (current->groups[i] == NOGROUP) |
i | 557 | kernel/sys.c | if (current->groups[i] == grp) |
i | 622 | kernel/sys.c | int i; |
i | 628 | kernel/sys.c | for (i=0; i < len; i++) { |
i | 629 | kernel/sys.c | if ((system_utsname.nodename[i] = get_fs_byte(name+i)) == 0) |
i | 632 | kernel/sys.c | system_utsname.nodename[i] = 0; |
i | 642 | kernel/sys.c | int i; |
i | 648 | kernel/sys.c | for (i=0; i < len; i++) { |
i | 649 | kernel/sys.c | if ((system_utsname.domainname[i] = get_fs_byte(name+i)) == 0) |
i | 652 | kernel/sys.c | system_utsname.domainname[i] = 0; |
i | 41 | kernel/time.c | int i; |
i | 49 | kernel/time.c | for (i = 0 ; i < 1000000 ; i++) /* may take up to 1 second... */ |
i | 52 | kernel/time.c | for (i = 0 ; i < 1000000 ; i++) /* must try at least 2.228 ms*/ |
i | 83 | kernel/time.c | int i, error; |
i | 85 | kernel/time.c | i = CURRENT_TIME; |
i | 90 | kernel/time.c | put_fs_long(i,(unsigned long *)tloc); |
i | 92 | kernel/time.c | return i; |
i | 65 | kernel/traps.c | int i; |
i | 78 | kernel/traps.c | store_TR(i); |
i | 79 | kernel/traps.c | printk("Pid: %d, process nr: %d\n", current->pid, 0xffff & i); |
i | 80 | kernel/traps.c | for(i=0;i<10;i++) |
i | 81 | kernel/traps.c | printk("%02x ",0xff & get_seg_byte(regs->cs,(i+(char *)regs->eip))); |
i | 238 | kernel/traps.c | int i; |
i | 258 | kernel/traps.c | for (i=18;i<48;i++) |
i | 259 | 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 | 209 | kernel/vsprintf.c | for (i = 0; i < len; ++i) |
i | 267 | kernel/vsprintf.c | int i; |
i | 270 | kernel/vsprintf.c | i=vsprintf(buf,fmt,args); |
i | 272 | kernel/vsprintf.c | return i; |
i | 147 | lib/malloc.c | int i; |
i | 150 | lib/malloc.c | for (i = PAGE_SIZE/sizeof(struct bucket_desc); --i > 0; bdesc++ ) |
i | 174 | lib/malloc.c | int i; |
i | 241 | lib/malloc.c | for (i=PAGE_SIZE/bdir->size; i > 0 ; i--) { |
i | 255 | lib/malloc.c | *((void **) (hd+1)) = (i==1) ? NULL : (void *)(page + bdir->size); |
i | 257 | lib/malloc.c | *((void **) page) = (i==1) ? NULL : (void *)(page + bdir->size); |
i | 509 | lib/malloc.c | int i; |
i | 520 | lib/malloc.c | for (i=PAGE_SIZE/bdir->size; i > 0 ; i--) { |
i | 151 | mm/kmalloc.c | int order,tries,i,sz; |
i | 222 | mm/kmalloc.c | for (i=NBLOCKS(order),p=BH (page+1);i > 1;i--,p=p->bh_next) |
i | 121 | mm/memory.c | int i; |
i | 142 | mm/memory.c | for (i = 768 ; i < 1024 ; i++) |
i | 143 | mm/memory.c | new_pg[i] = page_dir[i]; |
i | 148 | mm/memory.c | for (i = 0 ; i < 768 ; i++,page_dir++) |
i | 159 | mm/memory.c | int i; |
i | 182 | mm/memory.c | for (i = 0 ; i < PTRS_PER_PAGE ; i++,page_dir++) |
i | 211 | mm/memory.c | int i; |
i | 221 | mm/memory.c | for (i = 0 ; i < PTRS_PER_PAGE ; i++,old_page_dir++,new_page_dir++) { |
i | 983 | mm/memory.c | int i,free = 0,total = 0,reserved = 0; |
i | 993 | mm/memory.c | i = high_memory >> PAGE_SHIFT; |
i | 994 | mm/memory.c | while (i-- > 0) { |
i | 996 | mm/memory.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 998 | mm/memory.c | else if (!mem_map[i]) |
i | 1001 | mm/memory.c | shared += mem_map[i]-1; |
i | 1125 | mm/memory.c | int i; |
i | 1127 | mm/memory.c | i = high_memory >> PAGE_SHIFT; |
i | 1132 | mm/memory.c | while (i-- > 0) { |
i | 1133 | mm/memory.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 1136 | mm/memory.c | if (!mem_map[i]) { |
i | 1140 | mm/memory.c | val->sharedram += mem_map[i]-1; |
i | 1156 | mm/memory.c | int i, j; |
i | 1175 | mm/memory.c | for (i=0, j=0; i< PAGE_SIZE ; j++, block++, i += inode->i_sb->s_blocksize) |
i | 84 | mm/swap.c | int i, j; |
i | 88 | mm/swap.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j +=p->swap_file->i_sb->s_blocksize) |
i | 89 | mm/swap.c | if (!(zones[i] = bmap(p->swap_file,block++))) { |
i | 93 | mm/swap.c | ll_rw_swap_file(rw,p->swap_file->i_dev, zones, i,buf); |
i | 225 | mm/swap.c | int i; |
i | 240 | mm/swap.c | for (i = 0; i < NR_LAST_FREE_PAGES; i++) |
i | 241 | mm/swap.c | if (last_free_pages[i] == (page & PAGE_MASK)) |
i | 471 | mm/swap.c | int i=6; |
i | 473 | mm/swap.c | while (i--) { |
i | 474 | mm/swap.c | if (shrink_buffers(i)) |
i | 476 | mm/swap.c | if (shm_swap(i)) |
i | 478 | mm/swap.c | if (swap_out(i)) |
i | 668 | mm/swap.c | int i; |
i | 672 | mm/swap.c | i = namei(specialfile,&inode); |
i | 673 | mm/swap.c | if (i) |
i | 674 | mm/swap.c | return i; |
i | 693 | mm/swap.c | i = try_to_unuse(type); |
i | 694 | mm/swap.c | if (i) { |
i | 696 | mm/swap.c | return i; |
i | 720 | mm/swap.c | int i,j; |
i | 755 | mm/swap.c | for (i = 0 ; i < nr_swapfiles ; i++) { |
i | 756 | mm/swap.c | if (i == type) |
i | 758 | mm/swap.c | if (p->swap_device == swap_info[i].swap_device) |
i | 781 | mm/swap.c | for (i = 1 ; i < 8*PAGE_SIZE ; i++) { |
i | 782 | mm/swap.c | if (test_bit(i,p->swap_lockmap)) { |
i | 784 | mm/swap.c | p->lowest_bit = i; |
i | 785 | mm/swap.c | p->highest_bit = i; |
i | 786 | mm/swap.c | p->max = i+1; |
i | 800 | mm/swap.c | for (i = 1 ; i < p->max ; i++) { |
i | 801 | mm/swap.c | if (test_bit(i,p->swap_lockmap)) |
i | 802 | mm/swap.c | p->swap_map[i] = 0; |
i | 804 | mm/swap.c | p->swap_map[i] = 0x80; |
i | 827 | mm/swap.c | unsigned int i, j; |
i | 830 | mm/swap.c | for (i = 0; i < nr_swapfiles; i++) { |
i | 831 | mm/swap.c | if (!(swap_info[i].flags & SWP_USED)) |
i | 833 | mm/swap.c | for (j = 0; j < swap_info[i].max; ++j) |
i | 834 | mm/swap.c | switch (swap_info[i].swap_map[j]) { |
i | 112 | mm/vmalloc.c | unsigned long i = PTRS_PER_PAGE - index; |
i | 114 | mm/vmalloc.c | if (i > nr) |
i | 115 | mm/vmalloc.c | i = nr; |
i | 116 | mm/vmalloc.c | if (area_fn(dindex, index, i)) |
i | 118 | mm/vmalloc.c | nr -= i; |
i | 130 | net/inet/arp.c | int i; |
i | 132 | net/inet/arp.c | for (i = 0; i < len; i++) |
i | 757 | net/inet/arp.c | int i; |
i | 762 | net/inet/arp.c | i = 0; |
i | 763 | net/inet/arp.c | for (i = 0; i < ARP_TABLE_SIZE; i++) { |
i | 765 | net/inet/arp.c | apt = arp_tables[i]; |
i | 114 | net/inet/dev.c | int i; |
i | 121 | net/inet/dev.c | for (i = 0; i < 4; i++, me >>= 8, him >>= 8, mask >>= 8) { |
i | 623 | net/inet/dev.c | int i; |
i | 626 | net/inet/dev.c | for(i = 0;i < DEV_NUMBUFFS; i++) { |
i | 627 | net/inet/dev.c | while((skb=skb_dequeue(&dev->buffs[i]))!=NULL) |
i | 632 | net/inet/dev.c | dev->queue_xmit(skb,dev,-i - 1); |
i | 75 | net/inet/ip.c | int addr, len, i; |
i | 95 | net/inet/ip.c | for(i = 0; i < 16; i++) { |
i | 98 | net/inet/ip.c | buff[i] = *ptr++; |
i | 99 | net/inet/ip.c | if (buff[i] < 32 || buff[i] > 126) buff[i] = '.'; |
i | 102 | net/inet/ip.c | buff[i] = ' '; |
i | 107 | net/inet/ip.c | buff[i] = '\0'; |
i | 280 | net/inet/ip.c | int i, len = sizeof(struct iphdr); |
i | 330 | net/inet/ip.c | for (i = 0; i < opt->loose_route.route_size; i++) { |
i | 331 | net/inet/ip.c | if(i>=MAX_ROUTE) |
i | 333 | net/inet/ip.c | opt->loose_route.route[i] = *(unsigned long *)buff; |
i | 347 | net/inet/ip.c | for (i = 0; i < opt->strict_route.route_size; i++) { |
i | 348 | net/inet/ip.c | if(i>=MAX_ROUTE) |
i | 350 | net/inet/ip.c | opt->strict_route.route[i] = *(unsigned long *)buff; |
i | 364 | net/inet/ip.c | for (i = 0; i < opt->record_route.route_size; i++) { |
i | 365 | net/inet/ip.c | if(i>=MAX_ROUTE) |
i | 367 | net/inet/ip.c | opt->record_route.route[i] = *(unsigned long *)buff; |
i | 388 | net/inet/ip.c | for (i = 0; i < opt->tstamp.len; i++) { |
i | 389 | net/inet/ip.c | opt->tstamp.data[i] = *(unsigned long *)buff; |
i | 810 | net/inet/ip.c | int i, ihl, end; |
i | 877 | net/inet/ip.c | i = prev->end - offset; |
i | 878 | net/inet/ip.c | offset += i; /* ptr into datagram */ |
i | 879 | net/inet/ip.c | ptr += i; /* ptr into fragment data */ |
i | 880 | net/inet/ip.c | DPRINTF((DBG_IP, "IP: defrag: fixed low overlap %d bytes\n", i)); |
i | 894 | net/inet/ip.c | i = end - next->offset; /* overlap is 'i' bytes */ |
i | 895 | net/inet/ip.c | next->len -= i; /* so reduce size of */ |
i | 896 | net/inet/ip.c | next->offset += i; /* next fragment */ |
i | 897 | net/inet/ip.c | next->ptr += i; |
i | 914 | net/inet/ip.c | DPRINTF((DBG_IP, "IP: defrag: fixed high overlap %d bytes\n", i)); |
i | 61 | net/inet/proc.c | int i; |
i | 68 | net/inet/proc.c | for(i = 0; i < SOCK_ARRAY_SIZE; i++) { |
i | 69 | net/inet/proc.c | sp = s_array[i]; |
i | 84 | net/inet/proc.c | i, src, srcp, dest, destp, sp->state, |
i | 169 | net/inet/sock.c | int i, j; |
i | 180 | net/inet/sock.c | for(i=0; i < SOCK_ARRAY_SIZE; i++) { |
i | 182 | net/inet/sock.c | sk = prot->sock_array[(i+base+1) &(SOCK_ARRAY_SIZE -1)]; |
i | 188 | net/inet/sock.c | start =(i+1+start )%1024; |
i | 190 | net/inet/sock.c | i + base + 1, start)); |
i | 191 | net/inet/sock.c | return(i+base+1); |
i | 194 | net/inet/sock.c | best = i; |
i | 1774 | net/inet/sock.c | int i; |
i | 1790 | net/inet/sock.c | for(i = 0; i < SOCK_ARRAY_SIZE; i++) { |
i | 1791 | net/inet/sock.c | tcp_prot.sock_array[i] = NULL; |
i | 1792 | net/inet/sock.c | udp_prot.sock_array[i] = NULL; |
i | 1793 | net/inet/sock.c | raw_prot.sock_array[i] = NULL; |
i | 2189 | net/inet/tcp.c | int i; |
i | 2196 | net/inet/tcp.c | for(i = 0; i < DEV_NUMBUFFS; i++) { |
i | 2197 | net/inet/tcp.c | if (skb->dev->buffs[i] == skb) { |
i | 2199 | net/inet/tcp.c | skb->dev->buffs[i] = NULL; |
i | 2201 | net/inet/tcp.c | skb->dev->buffs[i] = skb->next; |
i | 63 | net/inet/utils.c | int i; |
i | 66 | net/inet/utils.c | for (i = 0; i < 4; i++) { |
i | 429 | net/socket.c | int i, fd; |
i | 438 | net/socket.c | for (i = 0; i < NPROTO; ++i) { |
i | 439 | net/socket.c | if (pops[i] == NULL) continue; |
i | 440 | net/socket.c | if (pops[i]->family == family) break; |
i | 442 | net/socket.c | if (i == NPROTO) { |
i | 446 | net/socket.c | ops = pops[i]; |
i | 469 | net/socket.c | if ((i = sock->ops->create(sock, protocol)) < 0) { |
i | 471 | net/socket.c | return(i); |
i | 486 | net/socket.c | int fd1, fd2, i; |
i | 511 | net/socket.c | if ((i = sock1->ops->socketpair(sock1, sock2)) < 0) { |
i | 514 | net/socket.c | return(i); |
i | 539 | net/socket.c | int i; |
i | 545 | net/socket.c | if ((i = sock->ops->bind(sock, umyaddr, addrlen)) < 0) { |
i | 547 | net/socket.c | return(i); |
i | 587 | net/socket.c | int i; |
i | 610 | net/socket.c | if ((i = sock->ops->dup(newsock, sock)) < 0) { |
i | 612 | net/socket.c | return(i); |
i | 615 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
i | 616 | net/socket.c | if ( i < 0) { |
i | 618 | net/socket.c | return(i); |
i | 642 | net/socket.c | int i; |
i | 665 | net/socket.c | i = sock->ops->connect(sock, uservaddr, addrlen, file->f_flags); |
i | 666 | net/socket.c | if (i < 0) { |
i | 668 | net/socket.c | return(i); |
i | 1051 | net/socket.c | int i; |
i | 1054 | net/socket.c | for(i = 0; i < NPROTO; i++) { |
i | 1055 | net/socket.c | if (pops[i] != NULL) continue; |
i | 1056 | net/socket.c | pops[i] = ops; |
i | 1057 | net/socket.c | pops[i]->family = family; |
i | 1060 | net/socket.c | family, i, (long)ops)); |
i | 1061 | net/socket.c | return(i); |
i | 1072 | net/socket.c | int i; |
i | 1084 | net/socket.c | for (i = 0; i < NPROTO; ++i) pops[i] = NULL; |
i | 41 | net/unix/proc.c | int i; |
i | 46 | net/unix/proc.c | for(i = 0; i < NSOCKETS; i++) { |
i | 47 | net/unix/proc.c | if (unix_datas[i].refcnt) { |
i | 48 | net/unix/proc.c | pos += sprintf(pos, "%2d: %08X %08X %08lX %04X %02X", i, |
i | 49 | net/unix/proc.c | unix_datas[i].refcnt, |
i | 50 | net/unix/proc.c | unix_datas[i].protocol, |
i | 51 | net/unix/proc.c | unix_datas[i].socket->flags, |
i | 52 | net/unix/proc.c | unix_datas[i].socket->type, |
i | 53 | net/unix/proc.c | unix_datas[i].socket->state |
i | 57 | net/unix/proc.c | if(unix_datas[i].sockaddr_len>0) { |
i | 59 | net/unix/proc.c | unix_datas[i].sockaddr_un.sun_path); |
i | 361 | net/unix/sock.c | int i; |
i | 389 | net/unix/sock.c | i = do_mknod(fname, S_IFSOCK | S_IRWXUGO, 0); |
i | 390 | net/unix/sock.c | if (i == 0) i = open_namei(fname, 0, S_IFSOCK, &upd->inode, NULL); |
i | 392 | net/unix/sock.c | if (i < 0) { |
i | 394 | net/unix/sock.c | return(i); |
i | 419 | net/unix/sock.c | int i; |
i | 453 | net/unix/sock.c | i = open_namei(fname, 0, S_IFSOCK, &inode, NULL); |
i | 455 | net/unix/sock.c | if (i < 0) { |
i | 457 | net/unix/sock.c | return(i); |
i | 466 | net/unix/sock.c | if ((i = sock_awaitconn(sock, serv_upd->socket)) < 0) { |
i | 468 | net/unix/sock.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 | 106 | zBoot/misc.c | int i; |
i | 109 | zBoot/misc.c | for ( i = ( lines - 1 ) * cols * 2; i < lines * cols * 2; i += 2 ) |
i | 110 | zBoot/misc.c | vidmem[i] = ' '; |
i | 146 | zBoot/misc.c | int i; |
i | 149 | zBoot/misc.c | for (i=0;i<n;i++) ss[i] = c; |
i | 155 | zBoot/misc.c | int i; |
i | 158 | zBoot/misc.c | for (i=0;i<__n;i++) d[i] = s[i]; |
i | 204 | zBoot/misc.c | int len, i; |
i | 213 | zBoot/misc.c | for (i=0;i<len;i++) inbuf[insize+i] = input_data[input_ptr+i]; |
i | 256 | zBoot/misc.c | int i; /* counter for all possible eight bit values */ |
i | 264 | zBoot/misc.c | for (i = 0; i < sizeof(p)/sizeof(int); i++) |
i | 265 | zBoot/misc.c | e |= 1L << (31 - p[i]); |
i | 269 | zBoot/misc.c | for (i = 1; i < 256; i++) |
i | 272 | zBoot/misc.c | for (k = i | 256; k != 1; k >>= 1) |
i | 278 | zBoot/misc.c | crc_32_tab[i] = c; |
i | 38 | zBoot/xtract.c | int i,c,id, sz; |