tag | line | file | source code |
i | 87 | drivers/FPU-emu/errors.c | int i; |
i | 99 | drivers/FPU-emu/errors.c | for ( i = 0; i < MAX_PRINTED_BYTES; i++ ) |
i | 110 | drivers/FPU-emu/errors.c | if ( i == MAX_PRINTED_BYTES ) |
i | 166 | drivers/FPU-emu/errors.c | for ( i = 0; i < 8; i++ ) |
i | 168 | drivers/FPU-emu/errors.c | FPU_REG *r = &st(i); |
i | 177 | drivers/FPU-emu/errors.c | i, r->sign ? '-' : '+'); |
i | 184 | drivers/FPU-emu/errors.c | printk("st(%d) %c .%04lx %04lx %04lx %04lx e%+-6ld ", i, |
i | 305 | drivers/FPU-emu/errors.c | int i, int_type; |
i | 342 | drivers/FPU-emu/errors.c | for (i=0; exception_names[i].type; i++) |
i | 343 | drivers/FPU-emu/errors.c | if ( (exception_names[i].type & n) == exception_names[i].type ) |
i | 346 | drivers/FPU-emu/errors.c | if (exception_names[i].type) |
i | 349 | drivers/FPU-emu/errors.c | printk("FP Exception: %s!\n", exception_names[i].name); |
i | 640 | drivers/FPU-emu/errors.c | void stack_underflow_i(int i) |
i | 646 | drivers/FPU-emu/errors.c | reg_move(&CONST_QNaN, &(st(i))); |
i | 656 | drivers/FPU-emu/errors.c | void stack_underflow_pop(int i) |
i | 662 | drivers/FPU-emu/errors.c | reg_move(&CONST_QNaN, &(st(i))); |
i | 123 | drivers/FPU-emu/fpu_emu.h | #define NOT_EMPTY(i) (st(i).tag != TW_Empty) |
i | 157 | drivers/FPU-emu/fpu_entry.c | int i; |
i | 158 | drivers/FPU-emu/fpu_entry.c | for ( i = 0; i < 8; i++ ) |
i | 162 | drivers/FPU-emu/fpu_entry.c | regs[i].exp = 0; |
i | 163 | drivers/FPU-emu/fpu_entry.c | regs[i].sigh = 0x80000000; |
i | 7 | drivers/FPU-emu/fpu_proto.h | extern void stack_underflow_i(int i); |
i | 8 | drivers/FPU-emu/fpu_proto.h | extern void stack_underflow_pop(int i); |
i | 1017 | drivers/FPU-emu/reg_ld_str.c | int i, precision_loss; |
i | 1044 | drivers/FPU-emu/reg_ld_str.c | for ( i = 0; i < 7; i++) |
i | 1045 | drivers/FPU-emu/reg_ld_str.c | put_fs_byte(0, (unsigned char *) d+i); /* These bytes "undefined" */ |
i | 1064 | drivers/FPU-emu/reg_ld_str.c | for ( i = 0; i < 9; i++) |
i | 1069 | drivers/FPU-emu/reg_ld_str.c | put_fs_byte(b,(unsigned char *) d+i); |
i | 1153 | drivers/FPU-emu/reg_ld_str.c | int i; |
i | 1204 | drivers/FPU-emu/reg_ld_str.c | for ( i = 0; i < 8; i++ ) |
i | 1211 | drivers/FPU-emu/reg_ld_str.c | regs[i].tag = TW_Empty; |
i | 1212 | drivers/FPU-emu/reg_ld_str.c | else if ( regs[i].tag == TW_Empty ) |
i | 1216 | drivers/FPU-emu/reg_ld_str.c | if ( regs[i].exp == EXP_BIAS - EXTENDED_Ebias ) |
i | 1218 | drivers/FPU-emu/reg_ld_str.c | if ( !(regs[i].sigl | regs[i].sigh) ) |
i | 1219 | drivers/FPU-emu/reg_ld_str.c | regs[i].tag = TW_Zero; |
i | 1221 | drivers/FPU-emu/reg_ld_str.c | regs[i].tag = TW_Valid; |
i | 1223 | drivers/FPU-emu/reg_ld_str.c | else if ( regs[i].exp == 0x7fff + EXP_BIAS - EXTENDED_Ebias ) |
i | 1225 | drivers/FPU-emu/reg_ld_str.c | if ( !((regs[i].sigh & ~0x80000000) | regs[i].sigl) ) |
i | 1226 | drivers/FPU-emu/reg_ld_str.c | regs[i].tag = TW_Infinity; |
i | 1228 | drivers/FPU-emu/reg_ld_str.c | regs[i].tag = TW_NaN; |
i | 1231 | drivers/FPU-emu/reg_ld_str.c | regs[i].tag = TW_Valid; |
i | 1243 | drivers/FPU-emu/reg_ld_str.c | int i, stnr; |
i | 1247 | drivers/FPU-emu/reg_ld_str.c | for ( i = 0; i < 8; i++ ) |
i | 1250 | drivers/FPU-emu/reg_ld_str.c | stnr = (i+top) & 7; |
i | 1252 | drivers/FPU-emu/reg_ld_str.c | reg_load_extended((long double *)(s+i*10), ®s[stnr]); |
i | 1264 | drivers/FPU-emu/reg_ld_str.c | int i; |
i | 1266 | drivers/FPU-emu/reg_ld_str.c | for ( i = 7; i >= 0; i-- ) |
i | 1268 | drivers/FPU-emu/reg_ld_str.c | switch ( tag = regs[i].tag ) |
i | 1271 | drivers/FPU-emu/reg_ld_str.c | if ( regs[i].exp <= (EXP_BIAS - EXTENDED_Ebias) ) |
i | 1361 | drivers/FPU-emu/reg_ld_str.c | int i; |
i | 1367 | drivers/FPU-emu/reg_ld_str.c | for ( i = 0; i < 8; i++ ) |
i | 1368 | drivers/FPU-emu/reg_ld_str.c | write_to_extended(®s[(top + i) & 7], d + 10 * i); |
i | 628 | drivers/block/cdu31a.c | int i; |
i | 687 | drivers/block/cdu31a.c | for (i=0; i<8; i++) |
i | 715 | drivers/block/cdu31a.c | for (i=0; i<10; i++) |
i | 862 | drivers/block/cdu31a.c | int i; |
i | 882 | drivers/block/cdu31a.c | for (i=0; i<MAX_TRACKS; i++) |
i | 884 | drivers/block/cdu31a.c | disk_changed[i] = 1; |
i | 885 | drivers/block/cdu31a.c | if (ses_tocs[i] != NULL) |
i | 887 | drivers/block/cdu31a.c | kfree_s(ses_tocs[i], sizeof(struct s_sony_session_toc)); |
i | 888 | drivers/block/cdu31a.c | ses_tocs[i] = NULL; |
i | 1112 | drivers/block/cdu31a.c | int i; |
i | 1120 | drivers/block/cdu31a.c | for(i=0; i<CD_XA_HEAD; i++) |
i | 1159 | drivers/block/cdu31a.c | for(i=0; i<CD_XA_TAIL; i++) |
i | 1714 | drivers/block/cdu31a.c | int i; |
i | 1719 | drivers/block/cdu31a.c | for (i = 0; i < num_tracks; i++) |
i | 1721 | drivers/block/cdu31a.c | if (ses_tocs[dev]->tracks[i].track == track) |
i | 1723 | drivers/block/cdu31a.c | return i; |
i | 2171 | drivers/block/cdu31a.c | int i; |
i | 2267 | drivers/block/cdu31a.c | for (i=1; i<7; i++) |
i | 2269 | drivers/block/cdu31a.c | params[i] = int_to_bcd(params[i]); |
i | 2799 | drivers/block/cdu31a.c | int i; |
i | 2841 | drivers/block/cdu31a.c | i = 0; |
i | 2842 | drivers/block/cdu31a.c | while ( (cdu31a_addresses[i].base != 0) |
i | 2845 | drivers/block/cdu31a.c | if (check_region(cdu31a_addresses[i].base, 4)) { |
i | 2846 | drivers/block/cdu31a.c | i++; |
i | 2849 | drivers/block/cdu31a.c | get_drive_configuration(cdu31a_addresses[i].base, |
i | 2855 | drivers/block/cdu31a.c | irq_used = cdu31a_addresses[i].int_num; |
i | 2859 | drivers/block/cdu31a.c | i++; |
i | 2960 | drivers/block/cdu31a.c | for (i=0; i<MAX_TRACKS; i++) |
i | 2962 | drivers/block/cdu31a.c | disk_changed[i] = 1; |
i | 371 | drivers/block/floppy.c | #define _WAIT(x,i) CALL(ret=wait_til_done((x),i)) |
i | 742 | drivers/block/floppy.c | int i, drive, saved_drive; |
i | 748 | drivers/block/floppy.c | for(i=0; i< N_DRIVE; i++){ |
i | 749 | drivers/block/floppy.c | drive = (saved_drive + i + 1 ) % N_DRIVE; |
i | 888 | drivers/block/floppy.c | int i = 0, counter, status; |
i | 898 | drivers/block/floppy.c | return i; |
i | 902 | drivers/block/floppy.c | if (i >= MAX_REPLIES) { |
i | 906 | drivers/block/floppy.c | reply_buffer[i++] = inb_p(FD_DATA); |
i | 912 | drivers/block/floppy.c | status, fdc, i); |
i | 1164 | drivers/block/floppy.c | int i,ready_date,r, flags,dflags; |
i | 1196 | drivers/block/floppy.c | for(i=0; i< raw_cmd.cmd_count; i++) |
i | 1197 | drivers/block/floppy.c | r|=output_byte( raw_cmd.cmd[i] ); |
i | 1394 | drivers/block/floppy.c | int i; |
i | 1399 | drivers/block/floppy.c | for(i=0; i<inr; i++) |
i | 1400 | drivers/block/floppy.c | printk("%d %x\n", i, reply_buffer[i] ); |
i | 1407 | drivers/block/floppy.c | for(i=0; i<inr; i++) |
i | 1408 | drivers/block/floppy.c | printk("%d %x\n", i, reply_buffer[i] ); |
i | 1493 | drivers/block/floppy.c | int i; |
i | 1498 | drivers/block/floppy.c | for(i=0; i<N_FDC; i++){ |
i | 1500 | drivers/block/floppy.c | printk("dor %d = %x\n", i, fdc_state[i].dor ); |
i | 1501 | drivers/block/floppy.c | outb_p(fdc_state[i].address+2, fdc_state[i].dor); |
i | 2547 | drivers/block/floppy.c | int i; |
i | 2549 | drivers/block/floppy.c | i = verify_area(VERIFY_WRITE,param,size); |
i | 2550 | drivers/block/floppy.c | if (i) |
i | 2551 | drivers/block/floppy.c | return i; |
i | 2586 | drivers/block/floppy.c | int i, drive, count, ret; |
i | 2616 | drivers/block/floppy.c | i = verify_area(VERIFY_READ, raw_cmd.data, count ); |
i | 2617 | drivers/block/floppy.c | if (i) |
i | 2618 | drivers/block/floppy.c | return i; |
i | 2639 | drivers/block/floppy.c | for( i=0; i< raw_cmd.reply_count; i++) |
i | 2640 | drivers/block/floppy.c | raw_cmd.reply[i] = reply_buffer[i]; |
i | 2650 | drivers/block/floppy.c | i=fd_copyout( raw_cmd.data, floppy_track_buffer, count); |
i | 2651 | drivers/block/floppy.c | if (i) |
i | 2652 | drivers/block/floppy.c | return i; |
i | 2676 | drivers/block/floppy.c | int i,device,drive,type,cnt; |
i | 2688 | drivers/block/floppy.c | i=verify_area(VERIFY_WRITE,(void *) param,16); |
i | 2689 | drivers/block/floppy.c | if (i) |
i | 2690 | drivers/block/floppy.c | return i; |
i | 2738 | drivers/block/floppy.c | CALL(i = raw_cmd_ioctl((void *) param)); |
i | 2740 | drivers/block/floppy.c | return i; |
i | 3168 | drivers/block/floppy.c | int i; |
i | 3170 | drivers/block/floppy.c | for (i=0; i < ARRAY_SIZE(default_drive_params); i++) |
i | 3171 | drivers/block/floppy.c | default_drive_params[i].params.flags |= 0x80; |
i | 3204 | drivers/block/floppy.c | int i; |
i | 3205 | drivers/block/floppy.c | for(i=0; i< ARRAY_SIZE(config_params); i++){ |
i | 3206 | drivers/block/floppy.c | if (strcmp(str,config_params[i].name) == 0 ){ |
i | 3207 | drivers/block/floppy.c | config_params[i].fn(ints); |
i | 3220 | drivers/block/floppy.c | int i,drive; |
i | 3230 | drivers/block/floppy.c | for(i=0; i<256; i++) |
i | 3231 | drivers/block/floppy.c | if ( TYPE(i)) |
i | 3232 | drivers/block/floppy.c | floppy_sizes[i] = floppy_type[TYPE(i)].size >> 1; |
i | 3234 | drivers/block/floppy.c | floppy_sizes[i] = MAX_DISK_SIZE; |
i | 3249 | drivers/block/floppy.c | for (i = 0 ; i < N_FDC ; i++) { |
i | 3250 | drivers/block/floppy.c | fdc = i; |
i | 3277 | drivers/block/floppy.c | for (i = 0 ; i < N_FDC ; i++) { |
i | 3278 | drivers/block/floppy.c | fdc = i; |
i | 3318 | drivers/block/floppy.c | int i; |
i | 3328 | drivers/block/floppy.c | for(i=0; i< N_FDC; i++){ |
i | 3330 | drivers/block/floppy.c | fdc = i; |
i | 97 | drivers/block/genhd.c | int i, minor = current_minor; |
i | 115 | drivers/block/genhd.c | for (i=1 ; i<=4 ; minor++,i++,p++) { |
i | 119 | drivers/block/genhd.c | printk(" %s%c%d", hd->major_name,'a'+(minor >> hd->minor_shift), i); |
i | 133 | drivers/block/genhd.c | for (i = 4 ; i < 16 ; i++, current_minor++) { |
i | 163 | drivers/block/genhd.c | int i; |
i | 171 | drivers/block/genhd.c | for (i=start ; i < j ; i++) |
i | 172 | drivers/block/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
i | 177 | drivers/block/genhd.c | int i; |
i | 183 | drivers/block/genhd.c | for (i = 0 ; i < j; i++) { |
i | 184 | drivers/block/genhd.c | dev->part[i].start_sect = 0; |
i | 185 | drivers/block/genhd.c | dev->part[i].nr_sects = 0; |
i | 192 | drivers/block/genhd.c | for (i=0 ; i < j ; i++) |
i | 193 | drivers/block/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
i | 106 | drivers/block/hd.c | int i; |
i | 112 | drivers/block/hd.c | i = inb_p(0x40); |
i | 113 | drivers/block/hd.c | i |= inb(0x40) << 8; |
i | 115 | drivers/block/hd.c | return(t - i); |
i | 179 | drivers/block/hd.c | int i = inb_p(HD_STATUS); |
i | 181 | drivers/block/hd.c | if (!OK_STATUS(i)) { |
i | 182 | drivers/block/hd.c | dump_status("check_status", i); |
i | 366 | drivers/block/hd.c | unsigned int i; |
i | 369 | drivers/block/hd.c | for (i = 0; i < 500000 ; i++) { |
i | 380 | drivers/block/hd.c | int i; |
i | 383 | drivers/block/hd.c | for(i = 0; i < 1000; i++) nop(); |
i | 385 | drivers/block/hd.c | for(i = 0; i < 1000; i++) nop(); |
i | 394 | drivers/block/hd.c | static int i; |
i | 399 | drivers/block/hd.c | i = -1; |
i | 406 | drivers/block/hd.c | if (++i < NR_HD) { |
i | 407 | drivers/block/hd.c | special_op[i] = recalibrate[i] = 1; |
i | 408 | drivers/block/hd.c | if (unmask_intr[i]) { |
i | 409 | drivers/block/hd.c | unmask_intr[i] = DEFAULT_UNMASK_INTR; |
i | 410 | drivers/block/hd.c | printk("hd%c: reset irq-unmasking to %d\n",i+'a', |
i | 413 | drivers/block/hd.c | if (mult_req[i] || mult_count[i]) { |
i | 414 | drivers/block/hd.c | mult_count[i] = 0; |
i | 415 | drivers/block/hd.c | mult_req[i] = DEFAULT_MULT_COUNT; |
i | 416 | drivers/block/hd.c | printk("hd%c: reset multiple mode to %d\n",i+'a', |
i | 419 | drivers/block/hd.c | hd_out(i,hd_info[i].sect,hd_info[i].sect,hd_info[i].head-1, |
i | 420 | drivers/block/hd.c | hd_info[i].cyl,WIN_SPECIFY,&reset_hd); |
i | 482 | drivers/block/hd.c | int i, retries = 100000, msect = mult_count[dev], nsect; |
i | 487 | drivers/block/hd.c | i = (unsigned) inb_p(HD_STATUS); |
i | 488 | drivers/block/hd.c | if (i & BUSY_STAT) |
i | 490 | drivers/block/hd.c | if (!OK_STATUS(i)) |
i | 492 | drivers/block/hd.c | if (i & DRQ_STAT) |
i | 495 | drivers/block/hd.c | dump_status("read_intr", i); |
i | 510 | drivers/block/hd.c | i = (CURRENT->nr_sectors -= nsect); |
i | 519 | drivers/block/hd.c | if (i > 0) { |
i | 555 | drivers/block/hd.c | int i; |
i | 560 | drivers/block/hd.c | if (OK_STATUS(i=inb_p(HD_STATUS))) { |
i | 561 | drivers/block/hd.c | if (i & DRQ_STAT) { |
i | 569 | drivers/block/hd.c | for (i = CURRENT->nr_sectors; i > 0;){ |
i | 570 | drivers/block/hd.c | i -= CURRENT->current_nr_sectors; |
i | 582 | drivers/block/hd.c | dump_status("multwrite_intr", i); |
i | 589 | drivers/block/hd.c | int i; |
i | 595 | drivers/block/hd.c | i = (unsigned) inb_p(HD_STATUS); |
i | 596 | drivers/block/hd.c | if (i & BUSY_STAT) |
i | 598 | drivers/block/hd.c | if (!OK_STATUS(i)) |
i | 600 | drivers/block/hd.c | if ((CURRENT->nr_sectors <= 1) || (i & DRQ_STAT)) |
i | 603 | drivers/block/hd.c | dump_status("write_intr", i); |
i | 609 | drivers/block/hd.c | i = --CURRENT->nr_sectors; |
i | 612 | drivers/block/hd.c | if (!i || (CURRENT->bh && !SUBSECTOR(i))) |
i | 614 | drivers/block/hd.c | if (i > 0) { |
i | 976 | drivers/block/hd.c | int drive, i; |
i | 1024 | drivers/block/hd.c | i = NR_HD; |
i | 1025 | drivers/block/hd.c | while (i-- > 0) { |
i | 1034 | drivers/block/hd.c | hd[i<<6].nr_sects = bios_info[i].head * |
i | 1035 | drivers/block/hd.c | bios_info[i].sect * bios_info[i].cyl; |
i | 1036 | drivers/block/hd.c | hd_ident_info[i] = (struct hd_driveid *) kmalloc(512,GFP_KERNEL); |
i | 1037 | drivers/block/hd.c | special_op[i] = 1; |
i | 1047 | drivers/block/hd.c | for(i=0;i<(MAX_HD << 6);i++) hd_blocksizes[i] = 1024; |
i | 1100 | drivers/block/hd.c | int i; |
i | 1119 | drivers/block/hd.c | for (i=max_p - 1; i >=0 ; i--) { |
i | 1120 | drivers/block/hd.c | sync_dev(major | start | i); |
i | 1121 | drivers/block/hd.c | invalidate_inodes(major | start | i); |
i | 1122 | drivers/block/hd.c | invalidate_buffers(major | start | i); |
i | 1123 | drivers/block/hd.c | gdev->part[start+i].start_sect = 0; |
i | 1124 | drivers/block/hd.c | gdev->part[start+i].nr_sects = 0; |
i | 381 | drivers/block/ll_rw_blk.c | int i; |
i | 403 | drivers/block/ll_rw_blk.c | i = blksize_size[major][MINOR(bh[0]->b_dev)]; |
i | 404 | drivers/block/ll_rw_blk.c | if (i) |
i | 405 | drivers/block/ll_rw_blk.c | correct_size = i; |
i | 409 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
i | 410 | drivers/block/ll_rw_blk.c | if (bh[i] && bh[i]->b_size != correct_size) { |
i | 413 | drivers/block/ll_rw_blk.c | correct_size, bh[i]->b_size); |
i | 437 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
i | 438 | drivers/block/ll_rw_blk.c | if (bh[i]) { |
i | 439 | drivers/block/ll_rw_blk.c | bh[i]->b_req = 1; |
i | 440 | drivers/block/ll_rw_blk.c | make_request(major, rw, bh[i]); |
i | 456 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
i | 457 | drivers/block/ll_rw_blk.c | if (bh[i]) |
i | 458 | drivers/block/ll_rw_blk.c | bh[i]->b_dirt = bh[i]->b_uptodate = 0; |
i | 465 | drivers/block/ll_rw_blk.c | int i; |
i | 487 | drivers/block/ll_rw_blk.c | for (i=0; i<nb; i++, buf += buffersize) |
i | 494 | drivers/block/ll_rw_blk.c | req->sector = (b[i] * buffersize) >> 9; |
i | 242 | drivers/block/mcd.c | int i, st; |
i | 263 | drivers/block/mcd.c | i = updateToc(); |
i | 264 | drivers/block/mcd.c | if (i < 0) |
i | 265 | drivers/block/mcd.c | return i; /* error reading TOC */ |
i | 280 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 292 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 313 | drivers/block/mcd.c | i = mcdPlay(&mcd_Play); |
i | 314 | drivers/block/mcd.c | if (i < 0) |
i | 350 | drivers/block/mcd.c | i = mcdPlay(&mcd_Play); |
i | 351 | drivers/block/mcd.c | if (i < 0) |
i | 364 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 396 | drivers/block/mcd.c | i = mcdPlay(&mcd_Play); |
i | 397 | drivers/block/mcd.c | if (i < 0) |
i | 512 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 513 | drivers/block/mcd.c | if (i < 0) |
i | 527 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 528 | drivers/block/mcd.c | printk("F8 -> %02X\n", i & 0xFF); |
i | 536 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 547 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 566 | drivers/block/mcd.c | int i; |
i | 567 | drivers/block/mcd.c | for (i = 0; i < MCD_BUF_SIZ && mcd_buf_bn[i] != bn; ++i) |
i | 569 | drivers/block/mcd.c | if (i < MCD_BUF_SIZ) { |
i | 570 | drivers/block/mcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
i | 572 | drivers/block/mcd.c | if (mcd_buf_out != i) { |
i | 573 | drivers/block/mcd.c | mcd_buf_out = i; |
i | 574 | drivers/block/mcd.c | if (mcd_buf_bn[i] != bn) { |
i | 924 | drivers/block/mcd.c | int i = 4096; |
i | 927 | drivers/block/mcd.c | } while ((inb(MCDPORT(1)) & MFL_STATUSorDATA) == MFL_STATUS && --i); |
i | 930 | drivers/block/mcd.c | i = 4096; |
i | 933 | drivers/block/mcd.c | } while ((inb(MCDPORT(1)) & MFL_STATUSorDATA) == MFL_STATUS && --i); |
i | 1014 | drivers/block/mcd.c | int i; |
i | 1015 | drivers/block/mcd.c | for (i = 0; i < MCD_BUF_SIZ; ++i) |
i | 1016 | drivers/block/mcd.c | mcd_buf_bn[i] = -1; |
i | 1229 | drivers/block/mcd.c | int i; |
i | 1235 | drivers/block/mcd.c | i = inb(MCDPORT(0)) & 0xFF; |
i | 1236 | drivers/block/mcd.c | return i; |
i | 1460 | drivers/block/mcd.c | int i, px; |
i | 1465 | drivers/block/mcd.c | for (i = 0; i < MAX_TRACKS; i++) |
i | 1466 | drivers/block/mcd.c | Toc[i].pointIndex = 0; |
i | 1468 | drivers/block/mcd.c | i = DiskInfo.last + 3; |
i | 1502 | drivers/block/mcd.c | i--; |
i | 1505 | drivers/block/mcd.c | if (i <= 0) |
i | 1521 | drivers/block/mcd.c | for (i = 1; i <= DiskInfo.last; i++) |
i | 1523 | drivers/block/mcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
i | 1524 | drivers/block/mcd.c | Toc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame, |
i | 1525 | drivers/block/mcd.c | Toc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame); |
i | 1526 | drivers/block/mcd.c | for (i = 100; i < 103; i++) |
i | 1528 | drivers/block/mcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
i | 1529 | drivers/block/mcd.c | Toc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame, |
i | 1530 | drivers/block/mcd.c | Toc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame); |
i | 79 | drivers/block/ramdisk.c | int i; |
i | 90 | drivers/block/ramdisk.c | for (i=0; i < length; i++) |
i | 93 | drivers/block/ramdisk.c | for(i=0;i<2;i++) rd_blocksizes[i] = 1024; |
i | 114 | drivers/block/ramdisk.c | int i = 1; |
i | 189 | drivers/block/ramdisk.c | i++; |
i | 707 | drivers/block/sbpcd.c | static INLINE u_char swap_nibbles(u_char i) |
i | 709 | drivers/block/sbpcd.c | return ((i<<4)|(i>>4)); |
i | 712 | drivers/block/sbpcd.c | static INLINE u_char byt2bcd(u_char i) |
i | 714 | drivers/block/sbpcd.c | return (((i/10)<<4)+i%10); |
i | 725 | drivers/block/sbpcd.c | int i; |
i | 728 | drivers/block/sbpcd.c | i=(msf.c[2] * CD_SECS + msf.c[1]) * CD_FRAMES + msf.c[0] - CD_BLOCK_OFFSET; |
i | 729 | drivers/block/sbpcd.c | if (i<0) return (0); |
i | 730 | drivers/block/sbpcd.c | return (i); |
i | 738 | drivers/block/sbpcd.c | int i; |
i | 740 | drivers/block/sbpcd.c | i=(msf[0] * CD_SECS + msf[1]) * CD_FRAMES + msf[2] - CD_BLOCK_OFFSET; |
i | 741 | drivers/block/sbpcd.c | if (i<0) return (0); |
i | 742 | drivers/block/sbpcd.c | return (i); |
i | 767 | drivers/block/sbpcd.c | int i; |
i | 769 | drivers/block/sbpcd.c | for (i=0;i<7;i++) drvcmd[i]=0; |
i | 773 | drivers/block/sbpcd.c | static void mark_timeout(unsigned long i) |
i | 788 | drivers/block/sbpcd.c | int i; |
i | 791 | drivers/block/sbpcd.c | for (i=maxtim02;i!=0;i--) inb(CDi_status); |
i | 795 | drivers/block/sbpcd.c | for (i=maxtim_data;i!=0;i--) inb(CDi_status); |
i | 815 | drivers/block/sbpcd.c | int i,j; |
i | 819 | drivers/block/sbpcd.c | for(i=maxtim16;i!=0;i--) |
i | 827 | drivers/block/sbpcd.c | for(timeout = jiffies + 1000, i=maxtim_data; timeout > jiffies; ) |
i | 829 | drivers/block/sbpcd.c | for ( ;i!=0;i--) |
i | 837 | drivers/block/sbpcd.c | i = 1; |
i | 847 | drivers/block/sbpcd.c | int i; |
i | 849 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 850 | drivers/block/sbpcd.c | if (i&s_not_data_ready) return (0); |
i | 856 | drivers/block/sbpcd.c | int i; |
i | 858 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 859 | drivers/block/sbpcd.c | if (i&s_not_result_ready) return (0); |
i | 865 | drivers/block/sbpcd.c | int i; |
i | 867 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 868 | drivers/block/sbpcd.c | if (i&s_attention) return (1); |
i | 876 | drivers/block/sbpcd.c | int i,j, st=0; |
i | 881 | drivers/block/sbpcd.c | for (i=0;i<response_count;i++) |
i | 890 | drivers/block/sbpcd.c | DPRINTF((DBG_SEQ,"SBPCD: ResponseInfo: not_result_ready (got %d of %d bytes).\n", i, response_count)); |
i | 893 | drivers/block/sbpcd.c | infobuf[i]=inb(CDi_info); |
i | 897 | drivers/block/sbpcd.c | for (i=0, timeout = jiffies + 100; i < response_count; i++) |
i | 911 | drivers/block/sbpcd.c | infobuf[i]=inb(CDi_info); |
i | 949 | drivers/block/sbpcd.c | int i,j; |
i | 961 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 962 | drivers/block/sbpcd.c | if (!(i&s_not_result_ready)) break; |
i | 975 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 976 | drivers/block/sbpcd.c | if (!(i&s_not_result_ready)) break; |
i | 990 | drivers/block/sbpcd.c | i=inb(CDi_info); |
i | 991 | drivers/block/sbpcd.c | DPRINTF((DBG_STA,"SBPCD: ResponseStatus: response %2X.\n", i)); |
i | 992 | drivers/block/sbpcd.c | i=EvaluateStatus(i); |
i | 993 | drivers/block/sbpcd.c | return (i); |
i | 998 | drivers/block/sbpcd.c | int i; |
i | 1004 | drivers/block/sbpcd.c | if (!old_drive) for (i=0;i<6;i++) OUT(CDo_command,0); |
i | 1010 | drivers/block/sbpcd.c | int i; |
i | 1029 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1031 | drivers/block/sbpcd.c | DPRINTF((DBG_ERR,"SBPCD: xx_ReadError: cmd_out(82) returns %d (%02X)\n",i,i)); |
i | 1032 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1033 | drivers/block/sbpcd.c | if (old_drive) i=1; |
i | 1034 | drivers/block/sbpcd.c | else i=2; |
i | 1035 | drivers/block/sbpcd.c | DriveStruct[d].error_byte=infobuf[i]; |
i | 1036 | drivers/block/sbpcd.c | DPRINTF((DBG_ERR,"SBPCD: xx_ReadError: infobuf[%d] is %d (%02X)\n",i,DriveStruct[d].error_byte,DriveStruct[d].error_byte)); |
i | 1037 | drivers/block/sbpcd.c | i=sta2err(infobuf[i]); |
i | 1038 | drivers/block/sbpcd.c | return (i); |
i | 1043 | drivers/block/sbpcd.c | int i=0; |
i | 1048 | drivers/block/sbpcd.c | for (i=0;i<7;i++) DPRINTF((DBG_CMD," %02X",drvcmd[i])); |
i | 1052 | drivers/block/sbpcd.c | for (i=0;i<7;i++) OUT(CDo_command,drvcmd[i]); |
i | 1064 | drivers/block/sbpcd.c | else i=ResponseInfo(); |
i | 1065 | drivers/block/sbpcd.c | if (i<0) return (-9); |
i | 1070 | drivers/block/sbpcd.c | i=CDi_stat_loop(); |
i | 1071 | drivers/block/sbpcd.c | if ((i<0)||!(i&s_attention)) return (-9); |
i | 1083 | drivers/block/sbpcd.c | i=ResponseStatus(); |
i | 1085 | drivers/block/sbpcd.c | if (i<0) return (-9); |
i | 1090 | drivers/block/sbpcd.c | if (flags_cmd_out&f_bit1) if (i&p_success_old) goto LOC_232; |
i | 1100 | drivers/block/sbpcd.c | i=xx_ReadError(); |
i | 1102 | drivers/block/sbpcd.c | return (i); |
i | 1107 | drivers/block/sbpcd.c | int i; |
i | 1133 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1134 | drivers/block/sbpcd.c | return (i); |
i | 1139 | drivers/block/sbpcd.c | int i; |
i | 1156 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1158 | drivers/block/sbpcd.c | return (i); |
i | 1163 | drivers/block/sbpcd.c | int i; |
i | 1180 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1181 | drivers/block/sbpcd.c | return (i); |
i | 1186 | drivers/block/sbpcd.c | int i; |
i | 1197 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1198 | drivers/block/sbpcd.c | return (i); |
i | 1203 | drivers/block/sbpcd.c | int i; |
i | 1284 | drivers/block/sbpcd.c | i=channel1; |
i | 1286 | drivers/block/sbpcd.c | channel0=i; |
i | 1287 | drivers/block/sbpcd.c | i=volume1; |
i | 1289 | drivers/block/sbpcd.c | volume0=i; |
i | 1334 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1335 | drivers/block/sbpcd.c | if (i>0) return (i); |
i | 1342 | drivers/block/sbpcd.c | int i; |
i | 1347 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1348 | drivers/block/sbpcd.c | return (i); |
i | 1353 | drivers/block/sbpcd.c | int i; |
i | 1363 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1368 | drivers/block/sbpcd.c | i=GetStatus(); |
i | 1369 | drivers/block/sbpcd.c | if (i>=0) return -1; |
i | 1376 | drivers/block/sbpcd.c | int i, speed; |
i | 1385 | drivers/block/sbpcd.c | i=yy_SetSpeed(speed,0,0); |
i | 1386 | drivers/block/sbpcd.c | return (i); |
i | 1391 | drivers/block/sbpcd.c | int i; |
i | 1393 | drivers/block/sbpcd.c | i=xy_DriveReset(); |
i | 1394 | drivers/block/sbpcd.c | if (i<0) return (-2); |
i | 1397 | drivers/block/sbpcd.c | i=GetStatus(); |
i | 1398 | drivers/block/sbpcd.c | if ((i<0)&&(i!=-15)) return (-2); /* i!=-15 is from sta2err */ |
i | 1407 | drivers/block/sbpcd.c | i=DiskInfo(); |
i | 1408 | drivers/block/sbpcd.c | if (i<0) return (-2); |
i | 1415 | drivers/block/sbpcd.c | int i; |
i | 1435 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1436 | drivers/block/sbpcd.c | return (i); |
i | 1441 | drivers/block/sbpcd.c | int i; |
i | 1461 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1463 | drivers/block/sbpcd.c | return (i); |
i | 1468 | drivers/block/sbpcd.c | int i; |
i | 1487 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1489 | drivers/block/sbpcd.c | return (i); |
i | 1494 | drivers/block/sbpcd.c | int i,j; |
i | 1516 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1517 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1519 | drivers/block/sbpcd.c | for (i=0;i<(new_drive?11:13);i++) |
i | 1521 | drivers/block/sbpcd.c | DPRINTF((DBG_SQ," %02X", infobuf[i])); |
i | 1535 | drivers/block/sbpcd.c | i=4; |
i | 1536 | drivers/block/sbpcd.c | if (!new_drive) i=5; |
i | 1537 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_run_tot=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */ |
i | 1538 | drivers/block/sbpcd.c | i=7; |
i | 1539 | drivers/block/sbpcd.c | if (!new_drive) i=9; |
i | 1540 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_run_trk=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */ |
i | 1541 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_whatisthis=infobuf[i+3]; |
i | 1548 | drivers/block/sbpcd.c | int i; |
i | 1569 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1570 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1571 | drivers/block/sbpcd.c | i=0; |
i | 1572 | drivers/block/sbpcd.c | if (new_drive) DriveStruct[d].sense_byte=infobuf[i++]; |
i | 1573 | drivers/block/sbpcd.c | DriveStruct[d].frame_size=make16(infobuf[i],infobuf[i+1]); |
i | 1576 | drivers/block/sbpcd.c | for (i=0;i<(new_drive?5:2);i++) |
i | 1578 | drivers/block/sbpcd.c | DPRINTF((DBG_XA,"%02X ", infobuf[i])); |
i | 1589 | drivers/block/sbpcd.c | int i; |
i | 1622 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1623 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1631 | drivers/block/sbpcd.c | int i; |
i | 1654 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1655 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1732 | drivers/block/sbpcd.c | int i; |
i | 1750 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1751 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1762 | drivers/block/sbpcd.c | int i; |
i | 1780 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1781 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1795 | drivers/block/sbpcd.c | int i; |
i | 1814 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1815 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1820 | drivers/block/sbpcd.c | if (new_drive) i=4; |
i | 1821 | drivers/block/sbpcd.c | else i=5; |
i | 1822 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_address=make32(make16(0,infobuf[i]), |
i | 1823 | drivers/block/sbpcd.c | make16(infobuf[i+1],infobuf[i+2])); |
i | 1833 | drivers/block/sbpcd.c | int i; |
i | 1842 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1843 | drivers/block/sbpcd.c | return (i); |
i | 1848 | drivers/block/sbpcd.c | int i; |
i | 1852 | drivers/block/sbpcd.c | for (i=0;i<7;i++) |
i | 1854 | drivers/block/sbpcd.c | if (new_drive) DriveStruct[d].UPC_buf[i]=swap_nibbles(*p++); |
i | 1857 | drivers/block/sbpcd.c | DriveStruct[d].UPC_buf[i]=((*p++)<<4)&0xFF; |
i | 1858 | drivers/block/sbpcd.c | DriveStruct[d].UPC_buf[i] |= *p++; |
i | 1867 | drivers/block/sbpcd.c | int i; |
i | 1900 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1901 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1906 | drivers/block/sbpcd.c | i=xx_ReadPacket(); |
i | 1907 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1913 | drivers/block/sbpcd.c | for (i=0;i<(new_drive?8:16);i++) |
i | 1916 | drivers/block/sbpcd.c | checksum |= infobuf[i]; |
i | 1918 | drivers/block/sbpcd.c | DPRINTF((DBG_UPC,"%02X ", infobuf[i])); |
i | 1926 | drivers/block/sbpcd.c | if (new_drive) i=0; |
i | 1927 | drivers/block/sbpcd.c | else i=2; |
i | 1928 | drivers/block/sbpcd.c | if ((infobuf[i]&0x80)!=0) |
i | 1930 | drivers/block/sbpcd.c | convert_UPC(&infobuf[i]); |
i | 1936 | drivers/block/sbpcd.c | for (i=0;i<7;i++) |
i | 1938 | drivers/block/sbpcd.c | DPRINTF((DBG_UPC,"%02X ", DriveStruct[d].UPC_buf[i])); |
i | 1948 | drivers/block/sbpcd.c | int i; |
i | 1958 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1959 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1983 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1984 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2009 | drivers/block/sbpcd.c | int i; |
i | 2025 | drivers/block/sbpcd.c | i=cmd_out(); /* which buffer to use? */ |
i | 2026 | drivers/block/sbpcd.c | return (i); |
i | 2033 | drivers/block/sbpcd.c | int i=0; |
i | 2038 | drivers/block/sbpcd.c | for (i=0;i<=1000;i++) printk("."); |
i | 2050 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 2081 | drivers/block/sbpcd.c | int i; |
i | 2087 | drivers/block/sbpcd.c | for (i=0;i<9;i++) OUT(CDo_command,0); |
i | 2094 | drivers/block/sbpcd.c | int i; |
i | 2099 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 2100 | drivers/block/sbpcd.c | if (i&s_not_result_ready) return (-1); /* drive not present */ |
i | 2101 | drivers/block/sbpcd.c | i=inb(CDi_info); |
i | 2102 | drivers/block/sbpcd.c | DPRINTF((DBG_TEA,"SBPCD: TEAC look_for_drive: %02X.\n",i)); |
i | 2103 | drivers/block/sbpcd.c | if (i!=0x55) return (-2); /* something else present */ |
i | 2109 | drivers/block/sbpcd.c | int i, j, found; |
i | 2112 | drivers/block/sbpcd.c | for (i=0;i<4;i++) |
i | 2114 | drivers/block/sbpcd.c | j=look_for_drive(i); |
i | 2117 | drivers/block/sbpcd.c | DPRINTF((DBG_TEA,"SBPCD: TEAC drive (id=%d) found.\n",i)); |
i | 2126 | drivers/block/sbpcd.c | int i, j; |
i | 2134 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2135 | drivers/block/sbpcd.c | if (i<0) DPRINTF((DBG_INI,"SBPCD: cmd_82 returns %d (ok anyway).\n",i)); |
i | 2139 | drivers/block/sbpcd.c | for (i=0;i<12;i++) infobuf[i]=0; |
i | 2143 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2144 | drivers/block/sbpcd.c | if (i<0) DPRINTF((DBG_INI,"SBPCD: cmd_83 returns %d\n",i)); |
i | 2147 | drivers/block/sbpcd.c | for (i=0;i<12;i++) DPRINTF((DBG_INI,"%c",infobuf[i])); |
i | 2151 | drivers/block/sbpcd.c | for (i=0;i<4;i++) if (infobuf[i]!=drive_family[i]) break; |
i | 2152 | drivers/block/sbpcd.c | if (i==4) |
i | 2154 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[0]=infobuf[i++]; |
i | 2155 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[1]=infobuf[i++]; |
i | 2163 | drivers/block/sbpcd.c | for (i=0;i<8;i++) if (infobuf[i]!=drive_vendor[i]) break; |
i | 2164 | drivers/block/sbpcd.c | if (i==8) |
i | 2176 | drivers/block/sbpcd.c | for (i=0;i<8;i++) if (infobuf[i]!=lcs_family[i]) break; |
i | 2177 | drivers/block/sbpcd.c | if (i==8) |
i | 2190 | drivers/block/sbpcd.c | for (j=0;j<4;j++) DriveStruct[d].firmware_version[j]=infobuf[i+j]; |
i | 2224 | drivers/block/sbpcd.c | int i; |
i | 2228 | drivers/block/sbpcd.c | i=num; |
i | 2229 | drivers/block/sbpcd.c | if (sbpro_type==1) i=(i&0x01)<<1|(i&0x02)>>1; |
i | 2230 | drivers/block/sbpcd.c | OUT(CDo_enable,i); |
i | 2240 | drivers/block/sbpcd.c | int i, j; |
i | 2251 | drivers/block/sbpcd.c | i=check_version(); |
i | 2252 | drivers/block/sbpcd.c | DPRINTF((DBG_ID,"SBPCD: check_version returns %d.\n",i)); |
i | 2253 | drivers/block/sbpcd.c | if (i>=0) |
i | 2285 | drivers/block/sbpcd.c | int i; |
i | 2286 | drivers/block/sbpcd.c | for (i=0; i<65500; i++); |
i | 2414 | drivers/block/sbpcd.c | int i; |
i | 2416 | drivers/block/sbpcd.c | i=msf2blk(DriveStruct[d].pos_audio_end)-1; |
i | 2417 | drivers/block/sbpcd.c | if (i<0) return (-1); |
i | 2418 | drivers/block/sbpcd.c | i=xx_Seek(i,0); |
i | 2419 | drivers/block/sbpcd.c | return (i); |
i | 2424 | drivers/block/sbpcd.c | int i, j; |
i | 2429 | drivers/block/sbpcd.c | i=xx_ReadTocEntry(j); |
i | 2430 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2451 | drivers/block/sbpcd.c | int i, j; |
i | 2460 | drivers/block/sbpcd.c | i=SetSpeed(); |
i | 2461 | drivers/block/sbpcd.c | if (i<0) |
i | 2463 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: DiskInfo: SetSpeed returns %d\n", i)); |
i | 2466 | drivers/block/sbpcd.c | i=xx_ModeSense(); |
i | 2467 | drivers/block/sbpcd.c | if (i<0) |
i | 2469 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: DiskInfo: xx_ModeSense returns %d\n", i)); |
i | 2472 | drivers/block/sbpcd.c | i=xx_ReadCapacity(); |
i | 2473 | drivers/block/sbpcd.c | if (i>=0) break; |
i | 2474 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: DiskInfo: ReadCapacity #%d returns %d\n", j, i)); |
i | 2475 | drivers/block/sbpcd.c | i=DriveReset(); |
i | 2479 | drivers/block/sbpcd.c | i=xx_ReadTocDescr(); |
i | 2480 | drivers/block/sbpcd.c | if (i<0) |
i | 2482 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: DiskInfo: ReadTocDescr returns %d\n", i)); |
i | 2483 | drivers/block/sbpcd.c | return (i); |
i | 2485 | drivers/block/sbpcd.c | i=ReadToC(); |
i | 2486 | drivers/block/sbpcd.c | if (i<0) |
i | 2488 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: DiskInfo: ReadToC returns %d\n", i)); |
i | 2489 | drivers/block/sbpcd.c | return (i); |
i | 2491 | drivers/block/sbpcd.c | i=yy_CheckMultiSession(); |
i | 2492 | drivers/block/sbpcd.c | if (i<0) |
i | 2494 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: DiskInfo: yy_CheckMultiSession returns %d\n", i)); |
i | 2495 | drivers/block/sbpcd.c | return (i); |
i | 2497 | drivers/block/sbpcd.c | i=xx_ReadTocEntry(DriveStruct[d].n_first_track); |
i | 2498 | drivers/block/sbpcd.c | if (i<0) |
i | 2500 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: DiskInfo: xx_ReadTocEntry(1) returns %d\n", i)); |
i | 2501 | drivers/block/sbpcd.c | return (i); |
i | 2503 | drivers/block/sbpcd.c | i=xx_ReadUPC(); |
i | 2504 | drivers/block/sbpcd.c | if (i<0) |
i | 2506 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: DiskInfo: xx_ReadUPC returns %d\n", i)); |
i | 2507 | drivers/block/sbpcd.c | return (i); |
i | 2526 | drivers/block/sbpcd.c | int i; |
i | 2530 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 2531 | drivers/block/sbpcd.c | if (i&s_attention) GetStatus(); |
i | 2543 | drivers/block/sbpcd.c | i=check_allowed1(func,subfunc); |
i | 2544 | drivers/block/sbpcd.c | if (i<0) return (-2); |
i | 2548 | drivers/block/sbpcd.c | i=check_allowed3(func,subfunc); |
i | 2549 | drivers/block/sbpcd.c | if (i<0) |
i | 2565 | drivers/block/sbpcd.c | i=check_allowed1(func,subfunc); |
i | 2566 | drivers/block/sbpcd.c | if (i<0) return (-2); |
i | 2574 | drivers/block/sbpcd.c | i=check_allowed2(func,subfunc); |
i | 2575 | drivers/block/sbpcd.c | if (i<0) return (-2); |
i | 2585 | drivers/block/sbpcd.c | i=DiskInfo(); |
i | 2586 | drivers/block/sbpcd.c | if (i<0) |
i | 2593 | drivers/block/sbpcd.c | i=check_allowed1(func,subfunc); |
i | 2594 | drivers/block/sbpcd.c | if (i<0) return (-2); |
i | 2604 | drivers/block/sbpcd.c | int i, n; |
i | 2611 | drivers/block/sbpcd.c | i=msf2blk(pos_audio_start); |
i | 2612 | drivers/block/sbpcd.c | n=msf2blk(pos_audio_end)+1-i; |
i | 2613 | drivers/block/sbpcd.c | drvcmd[1]=(i>>16)&0x00FF; |
i | 2614 | drivers/block/sbpcd.c | drvcmd[2]=(i>>8)&0x00FF; |
i | 2615 | drivers/block/sbpcd.c | drvcmd[3]=i&0x00FF; |
i | 2644 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2645 | drivers/block/sbpcd.c | return (i); |
i | 2703 | drivers/block/sbpcd.c | int i, st; |
i | 2709 | drivers/block/sbpcd.c | i=MINOR(inode->i_rdev); |
i | 2710 | drivers/block/sbpcd.c | if ( (i<0) || (i>=NR_SBPCD) ) |
i | 2712 | drivers/block/sbpcd.c | printk("SBPCD: ioctl: bad device: %d\n", i); |
i | 2715 | drivers/block/sbpcd.c | switch_drive(i); |
i | 2722 | drivers/block/sbpcd.c | i=DiskInfo(); |
i | 2723 | drivers/block/sbpcd.c | if (i<0) return (-EIO); /* error reading TOC */ |
i | 2726 | drivers/block/sbpcd.c | DPRINTF((DBG_IO2,"SBPCD: ioctl: device %d, request %04X\n",i,cmd)); |
i | 2731 | drivers/block/sbpcd.c | i = verify_area(VERIFY_READ, (int *) arg, sizeof(int)); |
i | 2732 | drivers/block/sbpcd.c | if (i>=0) i=sbpcd_dbg_ioctl(arg,1); |
i | 2733 | drivers/block/sbpcd.c | return (i); |
i | 2744 | drivers/block/sbpcd.c | if (lcs_drive) i=xx_ReadSubQ(); |
i | 2745 | drivers/block/sbpcd.c | else i=xx_Pause_Resume(1); |
i | 2746 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 2747 | drivers/block/sbpcd.c | if (lcs_drive) i=xx_Pause_Resume(1); |
i | 2748 | drivers/block/sbpcd.c | else i=xx_ReadSubQ(); |
i | 2749 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 2754 | drivers/block/sbpcd.c | i=xx_Seek(DriveStruct[d].pos_audio_start,1); |
i | 2755 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 2768 | drivers/block/sbpcd.c | i=xx_PlayAudio(DriveStruct[d].pos_audio_start, |
i | 2770 | drivers/block/sbpcd.c | else i=xx_Pause_Resume(3); |
i | 2771 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 2779 | drivers/block/sbpcd.c | i=xx_Pause_Resume(1); |
i | 2780 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 2781 | drivers/block/sbpcd.c | i=xx_ReadSubQ(); |
i | 2782 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 2784 | drivers/block/sbpcd.c | i=xx_Seek(DriveStruct[d].pos_audio_start,1); |
i | 2798 | drivers/block/sbpcd.c | i=xx_PlayAudio(DriveStruct[d].pos_audio_start,DriveStruct[d].pos_audio_end); |
i | 2799 | drivers/block/sbpcd.c | DPRINTF((DBG_IOC,"SBPCD: ioctl: xx_PlayAudio returns %d\n",i)); |
i | 2801 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 2829 | drivers/block/sbpcd.c | i=xx_PlayAudio(DriveStruct[d].pos_audio_start,DriveStruct[d].pos_audio_end); |
i | 2831 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 2850 | drivers/block/sbpcd.c | i=tocentry.cdte_track; |
i | 2851 | drivers/block/sbpcd.c | if (i==CDROM_LEADOUT) i=DriveStruct[d].n_last_track+1; |
i | 2852 | drivers/block/sbpcd.c | else if (i<DriveStruct[d].n_first_track||i>DriveStruct[d].n_last_track) return (-EINVAL); |
i | 2853 | drivers/block/sbpcd.c | tocentry.cdte_adr=DriveStruct[d].TocBuffer[i].ctl_adr&0x0F; |
i | 2854 | drivers/block/sbpcd.c | tocentry.cdte_ctrl=(DriveStruct[d].TocBuffer[i].ctl_adr>>4)&0x0F; |
i | 2855 | drivers/block/sbpcd.c | tocentry.cdte_datamode=DriveStruct[d].TocBuffer[i].format; |
i | 2857 | drivers/block/sbpcd.c | { tocentry.cdte_addr.msf.minute=(DriveStruct[d].TocBuffer[i].address>>16)&0x00FF; |
i | 2858 | drivers/block/sbpcd.c | tocentry.cdte_addr.msf.second=(DriveStruct[d].TocBuffer[i].address>>8)&0x00FF; |
i | 2859 | drivers/block/sbpcd.c | tocentry.cdte_addr.msf.frame=DriveStruct[d].TocBuffer[i].address&0x00FF; |
i | 2862 | drivers/block/sbpcd.c | tocentry.cdte_addr.lba=msf2blk(DriveStruct[d].TocBuffer[i].address); |
i | 2871 | drivers/block/sbpcd.c | i=xx_Pause_Resume(1); |
i | 2884 | drivers/block/sbpcd.c | do i=yy_LockDoor(0); |
i | 2885 | drivers/block/sbpcd.c | while (i!=0); |
i | 2887 | drivers/block/sbpcd.c | i=yy_SpinDown(); |
i | 2888 | drivers/block/sbpcd.c | DPRINTF((DBG_IOX,"SBPCD: ioctl: yy_SpinDown returned %d.\n", i)); |
i | 2889 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 2910 | drivers/block/sbpcd.c | i=xx_SetVolume(); |
i | 2915 | drivers/block/sbpcd.c | if ((st_spinning)||(!subq_valid)) { i=xx_ReadSubQ(); |
i | 2916 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 2975 | drivers/block/sbpcd.c | int i=0, j=0, frame, block; |
i | 2990 | drivers/block/sbpcd.c | i=verify_area(VERIFY_READ, (void *) arg, sizeof(struct cdrom_read_audio)); |
i | 2991 | drivers/block/sbpcd.c | if (i) return (i); |
i | 2994 | drivers/block/sbpcd.c | i=verify_area(VERIFY_WRITE, read_audio.buf, |
i | 2996 | drivers/block/sbpcd.c | if (i) return (i); |
i | 3051 | drivers/block/sbpcd.c | for (i=0;i<7;i++) OUT(CDo_command,drvcmd[i]); |
i | 3104 | drivers/block/sbpcd.c | i=DriveReset(); /* ugly fix to prevent a hang */ |
i | 3110 | drivers/block/sbpcd.c | i=maxtim_data; |
i | 3113 | drivers/block/sbpcd.c | for ( ;i!=0;i--) |
i | 3120 | drivers/block/sbpcd.c | if (i != 0 || timeout <= jiffies) break; |
i | 3122 | drivers/block/sbpcd.c | i = 1; |
i | 3124 | drivers/block/sbpcd.c | if (i==0) { DPRINTF((DBG_AUD,"SBPCD: read_audio: STATUS TIMEOUT AFTER READ")); } |
i | 3128 | drivers/block/sbpcd.c | i=DriveReset(); /* ugly fix to prevent a hang */ |
i | 3135 | drivers/block/sbpcd.c | i=ResponseStatus(); /* builds status_byte, returns orig. status (old) or faked p_success_old (new) */ |
i | 3136 | drivers/block/sbpcd.c | if (i<0) { DPRINTF((DBG_AUD, |
i | 3142 | drivers/block/sbpcd.c | while ((!new_drive)&&(!st_check)&&(!(i&p_success_old))); |
i | 3145 | drivers/block/sbpcd.c | i=xx_ReadError(); |
i | 3146 | drivers/block/sbpcd.c | DPRINTF((DBG_AUD,"SBPCD: read_audio: xx_ReadError was necessary after read: %02X\n",i)); |
i | 3239 | drivers/block/sbpcd.c | int i, status_tries, data_tries; |
i | 3279 | drivers/block/sbpcd.c | i=prepare(0,0); /* at moment not really a hassle check, but ... */ |
i | 3280 | drivers/block/sbpcd.c | if (i!=0) |
i | 3281 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: \"prepare\" tells error %d -- ignored\n", i)); |
i | 3335 | drivers/block/sbpcd.c | int i; |
i | 3431 | drivers/block/sbpcd.c | for (i=0;i<7;i++) OUT(CDo_command,drvcmd[i]); |
i | 3443 | drivers/block/sbpcd.c | int i=0, j=0, frame; |
i | 3524 | drivers/block/sbpcd.c | i=DriveReset(); /* ugly fix to prevent a hang */ |
i | 3531 | drivers/block/sbpcd.c | i=maxtim_data; |
i | 3534 | drivers/block/sbpcd.c | for ( ;i!=0;i--) |
i | 3541 | drivers/block/sbpcd.c | if (i != 0 || timeout <= jiffies) break; |
i | 3543 | drivers/block/sbpcd.c | i = 1; |
i | 3545 | drivers/block/sbpcd.c | if (i==0) { DPRINTF((DBG_INF,"SBPCD: STATUS TIMEOUT AFTER READ")); } |
i | 3549 | drivers/block/sbpcd.c | i=DriveReset(); /* ugly fix to prevent a hang */ |
i | 3559 | drivers/block/sbpcd.c | i=ResponseStatus(); /* builds status_byte, returns orig. status (old) or faked p_success_old (new) */ |
i | 3560 | drivers/block/sbpcd.c | if (i<0) { DPRINTF((DBG_INF,"SBPCD: xx_ReadStatus error after read: %02X\n", |
i | 3565 | drivers/block/sbpcd.c | while ((!new_drive)&&(!st_check)&&(!(i&p_success_old))); |
i | 3568 | drivers/block/sbpcd.c | i=xx_ReadError(); |
i | 3569 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: xx_ReadError was necessary after read: %02X\n",i)); |
i | 3585 | drivers/block/sbpcd.c | int i; |
i | 3592 | drivers/block/sbpcd.c | i = MINOR(ip->i_rdev); |
i | 3593 | drivers/block/sbpcd.c | if ( (i<0) || (i>=NR_SBPCD) ) |
i | 3595 | drivers/block/sbpcd.c | printk("SBPCD: open: bad device: %d\n", i); |
i | 3598 | drivers/block/sbpcd.c | switch_drive(i); |
i | 3602 | drivers/block/sbpcd.c | i=ResponseStatus(); |
i | 3608 | drivers/block/sbpcd.c | i=ResponseStatus(); |
i | 3615 | drivers/block/sbpcd.c | i=ResponseStatus(); |
i | 3617 | drivers/block/sbpcd.c | if (i<0) |
i | 3628 | drivers/block/sbpcd.c | i=yy_LockDoor(0); |
i | 3629 | drivers/block/sbpcd.c | while (i!=0); |
i | 3642 | drivers/block/sbpcd.c | i=yy_LockDoor(1); |
i | 3643 | drivers/block/sbpcd.c | while (i!=0); |
i | 3647 | drivers/block/sbpcd.c | i=DiskInfo(); |
i | 3658 | drivers/block/sbpcd.c | int i; |
i | 3660 | drivers/block/sbpcd.c | i = MINOR(ip->i_rdev); |
i | 3661 | drivers/block/sbpcd.c | if ( (i<0) || (i>=NR_SBPCD) ) |
i | 3663 | drivers/block/sbpcd.c | printk("SBPCD: release: bad device: %d\n", i); |
i | 3666 | drivers/block/sbpcd.c | switch_drive(i); |
i | 3683 | drivers/block/sbpcd.c | i=yy_LockDoor(0); |
i | 3684 | drivers/block/sbpcd.c | while (i!=0); |
i | 3772 | drivers/block/sbpcd.c | int i; |
i | 3778 | drivers/block/sbpcd.c | i=inb(SPEA_REG_1); |
i | 3779 | drivers/block/sbpcd.c | if (i!=0x0F) |
i | 3801 | drivers/block/sbpcd.c | i=(inb(SPEA_REG_2)&0xCF)|n_ports; |
i | 3802 | drivers/block/sbpcd.c | OUT(SPEA_REG_2,i); |
i | 3815 | drivers/block/sbpcd.c | int i=0, j=0; |
i | 3860 | drivers/block/sbpcd.c | i=config_spea(); |
i | 3861 | drivers/block/sbpcd.c | if (i<0) |
i | 3868 | drivers/block/sbpcd.c | i=find_teac_drives(); |
i | 3869 | drivers/block/sbpcd.c | if (i>0) |
i | 3871 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: found %d TEAC drives. A wonder.\n",i)); |
i | 3875 | drivers/block/sbpcd.c | i=check_drives(); |
i | 3877 | drivers/block/sbpcd.c | if (i>=0) break; /* drive found */ |
i | 3932 | drivers/block/sbpcd.c | i=ResponseStatus(); /* returns orig. status or p_busy_new */ |
i | 3933 | drivers/block/sbpcd.c | if (i<0) |
i | 3934 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: init: ResponseStatus returns %02X\n",i)); |
i | 3939 | drivers/block/sbpcd.c | i=xx_ReadError(); |
i | 3940 | drivers/block/sbpcd.c | DPRINTF((DBG_INI,"SBPCD: init: xx_ReadError returns %d\n",i)); |
i | 3943 | drivers/block/sbpcd.c | DPRINTF((DBG_INI,"SBPCD: init: first GetStatus: %d\n",i)); |
i | 3948 | drivers/block/sbpcd.c | do { i=GetStatus(); |
i | 3949 | drivers/block/sbpcd.c | DPRINTF((DBG_INI,"SBPCD: init: second GetStatus: %02X\n",i)); |
i | 3953 | drivers/block/sbpcd.c | if (i<0) break; |
i | 3958 | drivers/block/sbpcd.c | i=SetSpeed(); |
i | 3959 | drivers/block/sbpcd.c | if (i>=0) DriveStruct[d].CD_changed=1; |
i | 134 | drivers/block/xd.c | u_char i,j,found = 0; |
i | 143 | drivers/block/xd.c | for (i = 0; i < (sizeof(xd_bases) / sizeof(xd_bases[0])) && !found; i++) |
i | 145 | drivers/block/xd.c | if (!memcmp(xd_bases[i] + xd_sigs[j].offset,xd_sigs[j].string,strlen(xd_sigs[j].string))) { |
i | 147 | drivers/block/xd.c | *address = xd_bases[i]; |
i | 157 | drivers/block/xd.c | u_char i,controller,*address; |
i | 167 | drivers/block/xd.c | for (i = 0; i < xd_drives; i++) |
i | 168 | drivers/block/xd.c | printk("xd_geninit: drive %d geometry - heads = %d, cylinders = %d, sectors = %d\n",i,xd_info[i].heads,xd_info[i].cylinders,xd_info[i].sectors); |
i | 180 | drivers/block/xd.c | for (i = 0; i < xd_drives; i++) { |
i | 181 | drivers/block/xd.c | xd[i << 6].nr_sects = xd_info[i].heads * xd_info[i].cylinders * xd_info[i].sectors; |
i | 182 | drivers/block/xd.c | xd_valid[i] = 1; |
i | 187 | drivers/block/xd.c | for(i=0;i<(XD_MAXDRIVES << 6);i++) xd_blocksizes[i] = 1024; |
i | 510 | drivers/block/xd.c | u_char cmdblk[6],i,count = 0; |
i | 512 | drivers/block/xd.c | for (i = 0; i < XD_MAXDRIVES; i++) { |
i | 513 | drivers/block/xd.c | xd_build(cmdblk,CMD_TESTREADY,i,0,0,0,0,0); |
i | 668 | drivers/block/xd.c | u_char cmdblk[6],i; |
i | 670 | drivers/block/xd.c | for (i = 0; i < 3; i++) { |
i | 671 | drivers/block/xd.c | while (min[i] != max[i] - 1) { |
i | 672 | drivers/block/xd.c | test[i] = (min[i] + max[i]) / 2; |
i | 675 | drivers/block/xd.c | min[i] = test[i]; |
i | 677 | drivers/block/xd.c | max[i] = test[i]; |
i | 679 | drivers/block/xd.c | test[i] = min[i]; |
i | 123 | drivers/char/atixlmouse.c | int i; |
i | 142 | drivers/char/atixlmouse.c | for(i = 3; i < count; i++) |
i | 143 | drivers/char/atixlmouse.c | put_fs_byte(0x00, buffer + i); |
i | 149 | drivers/char/atixlmouse.c | return i; /* i data bytes returned */ |
i | 218 | drivers/char/busmouse.c | int i; |
i | 222 | drivers/char/busmouse.c | for (i = 0; i < 100000; i++) |
i | 465 | drivers/char/console.c | int vc_cons_allocated(unsigned int i) |
i | 467 | drivers/char/console.c | return (i < MAX_NR_CONSOLES && vc_cons[i].d); |
i | 470 | drivers/char/console.c | int vc_allocate(unsigned int i) /* return 0 on success */ |
i | 472 | drivers/char/console.c | if (i >= MAX_NR_CONSOLES) |
i | 474 | drivers/char/console.c | if (!vc_cons[i].d) { |
i | 478 | drivers/char/console.c | if (i >= MAX_NR_USER_CONSOLES && !suser()) |
i | 493 | drivers/char/console.c | vc_cons[i].d = (struct vc_data *) p; |
i | 495 | drivers/char/console.c | vt_cons[i] = (struct vt_struct *) p; |
i | 496 | drivers/char/console.c | vc_scrbuf[i] = (unsigned short *) q; |
i | 497 | drivers/char/console.c | vc_cons[i].d->vc_kmalloced = 1; |
i | 498 | drivers/char/console.c | vc_cons[i].d->vc_screenbuf_size = video_screen_size; |
i | 499 | drivers/char/console.c | vc_init (i, video_num_lines, video_num_columns, 1); |
i | 514 | drivers/char/console.c | unsigned int currcons, i; |
i | 538 | drivers/char/console.c | for (i = 0; i< currcons; i++) |
i | 539 | drivers/char/console.c | if (newscreens[i]) |
i | 540 | drivers/char/console.c | kfree_s(newscreens[i], ss); |
i | 1075 | drivers/char/console.c | int i; |
i | 1077 | drivers/char/console.c | for (i=0;i<=npar;i++) |
i | 1078 | drivers/char/console.c | switch (par[i]) { |
i | 1157 | drivers/char/console.c | if (par[i] >= 30 && par[i] <= 37) |
i | 1158 | drivers/char/console.c | color = color_table[par[i]-30] |
i | 1160 | drivers/char/console.c | else if (par[i] >= 40 && par[i] <= 47) |
i | 1161 | drivers/char/console.c | color = (color_table[par[i]-40]<<4) |
i | 1220 | drivers/char/console.c | int i; |
i | 1222 | drivers/char/console.c | for (i=0; i<=npar; i++) |
i | 1223 | drivers/char/console.c | if (ques) switch(par[i]) { /* DEC private modes set/reset */ |
i | 1268 | drivers/char/console.c | } else switch(par[i]) { /* ANSI modes set/reset */ |
i | 1311 | drivers/char/console.c | unsigned int i = x; |
i | 1315 | drivers/char/console.c | while (i++ < video_num_columns) { |
i | 1332 | drivers/char/console.c | unsigned int i = x; |
i | 1335 | drivers/char/console.c | while (++i < video_num_columns) { |
i | 2162 | drivers/char/console.c | int i; |
i | 2167 | drivers/char/console.c | for ( i = 0 ; i < 12 ; i++ ) |
i | 2169 | drivers/char/console.c | outb_p(i, 0x3b4); |
i | 2170 | drivers/char/console.c | outb_p(herc_txt_tbl[i], 0x3b5); |
i | 2363 | drivers/char/console.c | int i; |
i | 2367 | drivers/char/console.c | i = vc_allocate(idx); |
i | 2368 | drivers/char/console.c | if (i) |
i | 2369 | drivers/char/console.c | return i; |
i | 2472 | drivers/char/console.c | int i, ps, pe; |
i | 2601 | drivers/char/console.c | for (i = sel_start; i <= sel_end; i += 2) |
i | 2603 | drivers/char/console.c | spos = (char *)off + i; |
i | 2607 | drivers/char/console.c | if (! ((i + 2) % video_size_row)) |
i | 2690 | drivers/char/console.c | int i; |
i | 2705 | drivers/char/console.c | i = verify_area(set ? VERIFY_READ : VERIFY_WRITE, (void *)arg, cmapsz); |
i | 2706 | drivers/char/console.c | if (i) |
i | 2707 | drivers/char/console.c | return i; |
i | 2728 | drivers/char/console.c | for (i=0; i<cmapsz ; i++) |
i | 2729 | drivers/char/console.c | *(charmap+i) = get_fs_byte(arg+i); |
i | 2731 | drivers/char/console.c | for (i=0; i<cmapsz ; i++) |
i | 2732 | drivers/char/console.c | put_fs_byte(*(charmap+i), arg+i); |
i | 2781 | drivers/char/console.c | int i; |
i | 2783 | drivers/char/console.c | i = verify_area(VERIFY_READ, (void *)arg, E_TABSZ); |
i | 2784 | drivers/char/console.c | if (i) |
i | 2785 | drivers/char/console.c | return i; |
i | 2787 | drivers/char/console.c | for (i=0; i<E_TABSZ ; i++) USER_TRANS[i] = get_fs_byte(arg+i); |
i | 2797 | drivers/char/console.c | int i; |
i | 2799 | drivers/char/console.c | i = verify_area(VERIFY_WRITE, (void *)arg, E_TABSZ); |
i | 2800 | drivers/char/console.c | if (i) |
i | 2801 | drivers/char/console.c | return i; |
i | 2803 | drivers/char/console.c | for (i=0; i<E_TABSZ ; i++) put_fs_byte(USER_TRANS[i],arg+i); |
i | 411 | drivers/char/cyclades.c | volatile int i; |
i | 415 | drivers/char/cyclades.c | for(i = 0 ; i < 10000 ; i++){ |
i | 423 | drivers/char/cyclades.c | if ( i == 10 ) { |
i | 547 | drivers/char/cyclades.c | int i,j; |
i | 583 | drivers/char/cyclades.c | i = channel + chip * 4 + cinfo->first_line; |
i | 584 | drivers/char/cyclades.c | info = &cy_port[i]; |
i | 689 | drivers/char/cyclades.c | i = channel + chip * 4 + cinfo->first_line; |
i | 694 | drivers/char/cyclades.c | if( (i < 0) || (NR_PORTS <= i) ){ |
i | 698 | drivers/char/cyclades.c | info = &cy_port[i]; |
i | 916 | drivers/char/cyclades.c | int i, mask; |
i | 918 | drivers/char/cyclades.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 920 | drivers/char/cyclades.c | && !request_irq(i, cy_probe, SA_INTERRUPT, "serial probe")) { |
i | 933 | drivers/char/cyclades.c | int i; |
i | 935 | drivers/char/cyclades.c | for (i = 0; i < 16; i++) { |
i | 936 | drivers/char/cyclades.c | if (irq_lines & (1 << i)) |
i | 937 | drivers/char/cyclades.c | free_irq(i); |
i | 948 | drivers/char/cyclades.c | int i, mask; |
i | 973 | drivers/char/cyclades.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 974 | drivers/char/cyclades.c | if ((cy_triggered & (1 << i)) && |
i | 975 | drivers/char/cyclades.c | (irq_lines & (1 << i))) { |
i | 1241 | drivers/char/cyclades.c | int i; |
i | 1252 | drivers/char/cyclades.c | i = cflag & CBAUD; |
i | 1262 | drivers/char/cyclades.c | if (i & CBAUDEX) { |
i | 1263 | drivers/char/cyclades.c | if (i == B57600) |
i | 1264 | drivers/char/cyclades.c | i = 16; |
i | 1265 | drivers/char/cyclades.c | else if(i == B115200) |
i | 1266 | drivers/char/cyclades.c | i = 18; |
i | 1268 | drivers/char/cyclades.c | else if(i == B78600) |
i | 1269 | drivers/char/cyclades.c | i = 17; |
i | 1275 | drivers/char/cyclades.c | if (i == 15) { |
i | 1277 | drivers/char/cyclades.c | i += 1; |
i | 1279 | drivers/char/cyclades.c | i += 3; |
i | 1281 | drivers/char/cyclades.c | info->tbpr = baud_bpr[i]; /* Tx BPR */ |
i | 1282 | drivers/char/cyclades.c | info->tco = baud_co[i]; /* Tx CO */ |
i | 1283 | drivers/char/cyclades.c | info->rbpr = baud_bpr[i]; /* Rx BPR */ |
i | 1284 | drivers/char/cyclades.c | info->rco = baud_co[i]; /* Rx CO */ |
i | 1285 | drivers/char/cyclades.c | if (baud_table[i] == 134) { |
i | 1288 | drivers/char/cyclades.c | } else if (baud_table[i]) { |
i | 1289 | drivers/char/cyclades.c | info->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2; |
i | 1301 | drivers/char/cyclades.c | info->cor3 = baud_cor3[i]; /* receive threshold */ |
i | 1388 | drivers/char/cyclades.c | if(i == 0){ /* baud rate is zero, turn off line */ |
i | 163 | drivers/char/keyboard.c | int i; |
i | 165 | drivers/char/keyboard.c | for (i=0; i<0x10000; i++) |
i | 665 | drivers/char/keyboard.c | int i; |
i | 667 | drivers/char/keyboard.c | for (i = fg_console-1; i != fg_console; i--) { |
i | 668 | drivers/char/keyboard.c | if (i == -1) |
i | 669 | drivers/char/keyboard.c | i = MAX_NR_CONSOLES-1; |
i | 670 | drivers/char/keyboard.c | if (vc_cons_allocated(i)) |
i | 673 | drivers/char/keyboard.c | want_console = i; |
i | 678 | drivers/char/keyboard.c | int i; |
i | 680 | drivers/char/keyboard.c | for (i = fg_console+1; i != fg_console; i++) { |
i | 681 | drivers/char/keyboard.c | if (i == MAX_NR_CONSOLES) |
i | 682 | drivers/char/keyboard.c | i = 0; |
i | 683 | drivers/char/keyboard.c | if (vc_cons_allocated(i)) |
i | 686 | drivers/char/keyboard.c | want_console = i; |
i | 807 | drivers/char/keyboard.c | int i; |
i | 813 | drivers/char/keyboard.c | for (i = 0; i < accent_table_size; i++) { |
i | 814 | drivers/char/keyboard.c | if (accent_table[i].diacr == d && accent_table[i].base == ch) |
i | 815 | drivers/char/keyboard.c | return accent_table[i].result; |
i | 949 | drivers/char/keyboard.c | int i, j, k, sym, val; |
i | 952 | drivers/char/keyboard.c | for(i=0; i < SIZE(k_down); i++) |
i | 953 | drivers/char/keyboard.c | k_down[i] = 0; |
i | 955 | drivers/char/keyboard.c | for(i=0; i < SIZE(key_down); i++) |
i | 956 | drivers/char/keyboard.c | if(key_down[i]) { /* skip this word if not a single bit on */ |
i | 957 | drivers/char/keyboard.c | k = (i<<5); |
i | 1019 | drivers/char/keyboard.c | int i; |
i | 1027 | drivers/char/keyboard.c | for(i=0; i<0x20000; i++) { |
i | 1157 | drivers/char/keyboard.c | int i, j; |
i | 1165 | drivers/char/keyboard.c | for (i=0; i<100; i++) { |
i | 1177 | drivers/char/keyboard.c | int i; |
i | 1187 | drivers/char/keyboard.c | for (i = 0 ; i < MAX_NR_CONSOLES ; i++) |
i | 1188 | drivers/char/keyboard.c | kbd_table[i] = kbd0; |
i | 115 | drivers/char/mem.c | unsigned int i = file->f_pos; |
i | 118 | drivers/char/mem.c | while (count-- > 0 && i < 65536) { |
i | 119 | drivers/char/mem.c | put_fs_byte(inb(i),tmp); |
i | 120 | drivers/char/mem.c | i++; |
i | 123 | drivers/char/mem.c | file->f_pos = i; |
i | 129 | drivers/char/mem.c | unsigned int i = file->f_pos; |
i | 132 | drivers/char/mem.c | while (count-- > 0 && i < 65536) { |
i | 133 | drivers/char/mem.c | outb(get_fs_byte(tmp),i); |
i | 134 | drivers/char/mem.c | i++; |
i | 137 | drivers/char/mem.c | file->f_pos = i; |
i | 106 | drivers/char/msbusmouse.c | int i, dx, dy; |
i | 117 | drivers/char/msbusmouse.c | for (i = 3; i < count; i++) |
i | 118 | drivers/char/msbusmouse.c | put_fs_byte(0x00, buffer + i); |
i | 122 | drivers/char/msbusmouse.c | return i; |
i | 149 | drivers/char/msbusmouse.c | int mse_byte, i; |
i | 159 | drivers/char/msbusmouse.c | for (i = 0; i < 4; i++) { |
i | 523 | drivers/char/n_tty.c | int i; |
i | 529 | drivers/char/n_tty.c | i = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt, |
i | 531 | drivers/char/n_tty.c | memcpy(tty->read_buf + tty->read_head, cp, i); |
i | 532 | drivers/char/n_tty.c | tty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1); |
i | 533 | drivers/char/n_tty.c | tty->read_cnt += i; |
i | 534 | drivers/char/n_tty.c | cp += i; |
i | 535 | drivers/char/n_tty.c | count -= i; |
i | 537 | drivers/char/n_tty.c | i = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt, |
i | 539 | drivers/char/n_tty.c | memcpy(tty->read_buf + tty->read_head, cp, i); |
i | 540 | drivers/char/n_tty.c | tty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1); |
i | 541 | drivers/char/n_tty.c | tty->read_cnt += i; |
i | 543 | drivers/char/n_tty.c | for (i=count, p = cp, f = fp; i; i--, p++) { |
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 | 742 | drivers/char/serial.c | unsigned int i; |
i | 745 | drivers/char/serial.c | for (i=1; i < 16; i++) { |
i | 746 | drivers/char/serial.c | info = IRQ_ports[i]; |
i | 757 | drivers/char/serial.c | rs_interrupt(i); |
i | 759 | drivers/char/serial.c | rs_interrupt_single(i); |
i | 794 | drivers/char/serial.c | int i, mask; |
i | 796 | drivers/char/serial.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 797 | drivers/char/serial.c | if (!(mask & dontgrab) && !request_irq(i, rs_probe, SA_INTERRUPT, "serial probe")) { |
i | 809 | drivers/char/serial.c | int i; |
i | 811 | drivers/char/serial.c | for (i = 0; i < 16; i++) { |
i | 812 | drivers/char/serial.c | if (irq_lines & (1 << i)) |
i | 813 | drivers/char/serial.c | free_irq(i); |
i | 1079 | drivers/char/serial.c | int i; |
i | 1086 | drivers/char/serial.c | i = cflag & CBAUD; |
i | 1087 | drivers/char/serial.c | if (i & CBAUDEX) { |
i | 1088 | drivers/char/serial.c | i &= ~CBAUDEX; |
i | 1089 | drivers/char/serial.c | if (i < 1 || i > 2) |
i | 1092 | drivers/char/serial.c | i += 15; |
i | 1094 | drivers/char/serial.c | if (i == 15) { |
i | 1096 | drivers/char/serial.c | i += 1; |
i | 1098 | drivers/char/serial.c | i += 2; |
i | 1105 | drivers/char/serial.c | } else if (baud_table[i] == 134) { |
i | 1108 | drivers/char/serial.c | } else if (baud_table[i]) { |
i | 1109 | drivers/char/serial.c | quot = info->baud_base / baud_table[i]; |
i | 1110 | drivers/char/serial.c | info->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2; |
i | 1408 | drivers/char/serial.c | unsigned int i,change_irq,change_port; |
i | 1443 | drivers/char/serial.c | for (i = 0 ; i < NR_PORTS; i++) |
i | 1444 | drivers/char/serial.c | if ((info != &rs_table[i]) && |
i | 1445 | drivers/char/serial.c | (rs_table[i].port == new_serial.port) && |
i | 1446 | drivers/char/serial.c | rs_table[i].type) |
i | 1627 | drivers/char/serial.c | int i, mask; |
i | 1652 | drivers/char/serial.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 1653 | drivers/char/serial.c | if ((rs_triggered & (1 << i)) && |
i | 1654 | drivers/char/serial.c | (irq_lines & (1 << i))) { |
i | 1657 | drivers/char/serial.c | printk("Wild interrupt? (IRQ %d)\n", i); |
i | 2364 | drivers/char/serial.c | int i; |
i | 2374 | drivers/char/serial.c | for (i = 0; i < 16; i++) { |
i | 2375 | drivers/char/serial.c | IRQ_ports[i] = 0; |
i | 2376 | drivers/char/serial.c | IRQ_timeout[i] = 0; |
i | 2430 | drivers/char/serial.c | for (i = 0, info = rs_table; i < NR_PORTS; i++,info++) { |
i | 2432 | drivers/char/serial.c | info->line = i; |
i | 2486 | drivers/char/serial.c | int i; |
i | 2492 | drivers/char/serial.c | for (i = 0; i < NR_PORTS; i++) { |
i | 2493 | drivers/char/serial.c | if (rs_table[i].port == req->port) |
i | 2496 | drivers/char/serial.c | if (i == NR_PORTS) { |
i | 2497 | drivers/char/serial.c | for (i = 0; i < NR_PORTS; i++) |
i | 2498 | drivers/char/serial.c | if ((rs_table[i].type == PORT_UNKNOWN) && |
i | 2499 | drivers/char/serial.c | (rs_table[i].count == 0)) |
i | 2502 | drivers/char/serial.c | if (i == NR_PORTS) { |
i | 2506 | drivers/char/serial.c | info = &rs_table[i]; |
i | 2507 | drivers/char/serial.c | if (rs_table[i].count) { |
i | 2510 | drivers/char/serial.c | "device already open\n", i, req->port, req->irq); |
i | 486 | drivers/char/tpqic02.c | int i; |
i | 488 | drivers/char/tpqic02.c | for (i=1; i<NR_OF_EXC; i++) { |
i | 489 | drivers/char/tpqic02.c | if ((s & exception_list[i].mask)==exception_list[i].code) |
i | 490 | drivers/char/tpqic02.c | return i; |
i | 665 | drivers/char/tpqic02.c | int i; |
i | 684 | drivers/char/tpqic02.c | i = TAPE_NOTIFY_TIMEOUT; |
i | 689 | drivers/char/tpqic02.c | while ((inb_p(QIC02_STAT_PORT) & QIC02_STAT_READY) && (--i>0)) |
i | 691 | drivers/char/tpqic02.c | if (i==0) { |
i | 698 | drivers/char/tpqic02.c | i = TAPE_NOTIFY_TIMEOUT; |
i | 700 | drivers/char/tpqic02.c | while (((inb_p(QIC02_STAT_PORT) & QIC02_STAT_READY) == 0) && (--i>0)) |
i | 702 | drivers/char/tpqic02.c | if (i==0) { |
i | 779 | drivers/char/tpqic02.c | int i, stat; |
i | 781 | drivers/char/tpqic02.c | for (i=0; i<size; i++) { |
i | 787 | drivers/char/tpqic02.c | stat = notify_cmd(sb[i], ignore_ex); |
i | 945 | drivers/char/tpqic02.c | int stat, i; |
i | 953 | drivers/char/tpqic02.c | for (i=0; i<sizeof(vus); i++) { |
i | 954 | drivers/char/tpqic02.c | if ( i % 8 == 0 ) |
i | 956 | drivers/char/tpqic02.c | printk(" %2x", vus[i] & 0xff); |
i | 1799 | drivers/char/tpqic02.c | int stat, r, i; |
i | 1848 | drivers/char/tpqic02.c | if ( (i = get_dma_residue(QIC02_TAPE_DMA)) != 0 ) { |
i | 1849 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": dma_residue == %x !!!\n", i); |
i | 2561 | drivers/char/tpqic02.c | short i; |
i | 2623 | drivers/char/tpqic02.c | for (i=0; i<sizeof(qic02_tape_dynconf); i++) |
i | 2650 | drivers/char/tpqic02.c | for (i=0; i<sizeof(qic02_tape_dynconf); i++) |
i | 2682 | drivers/char/tpqic02.c | for (i=0; i<sizeof(operation); i++) |
i | 2744 | drivers/char/tpqic02.c | for (i=0; i<sizeof(ioctl_status); i++) |
i | 2777 | drivers/char/tpqic02.c | for (i=0; i<sizeof(ioctl_tell); i++) |
i | 316 | drivers/char/tty_io.c | int i; |
i | 322 | drivers/char/tty_io.c | for (filp = first_file, i=0; i<nr_files; i++, filp = filp->f_next) { |
i | 355 | drivers/char/tty_io.c | i = (tty->ldisc.open)(tty); |
i | 356 | drivers/char/tty_io.c | if (i < 0) |
i | 358 | drivers/char/tty_io.c | -i); |
i | 643 | drivers/char/tty_io.c | int i; |
i | 670 | drivers/char/tty_io.c | i = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count); |
i | 672 | drivers/char/tty_io.c | i = -EIO; |
i | 673 | drivers/char/tty_io.c | if (i > 0) |
i | 675 | drivers/char/tty_io.c | return i; |
i | 680 | drivers/char/tty_io.c | int i, is_console; |
i | 706 | drivers/char/tty_io.c | i = (tty->ldisc.write)(tty,file,(unsigned char *)buf,(unsigned int)count); |
i | 708 | drivers/char/tty_io.c | i = -EIO; |
i | 709 | drivers/char/tty_io.c | if (i > 0) |
i | 711 | drivers/char/tty_io.c | return i; |
i | 1221 | drivers/char/tty_io.c | int i, n = 0; |
i | 1223 | drivers/char/tty_io.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct tstruct)); |
i | 1224 | drivers/char/tty_io.c | if (i) |
i | 1225 | drivers/char/tty_io.c | return i; |
i | 1231 | drivers/char/tty_io.c | for (i=0 ; i<sizeof(struct task_struct) ; i++) |
i | 1490 | drivers/char/tty_io.c | int i; |
i | 1507 | drivers/char/tty_io.c | for (i=0; i < NR_OPEN; i++) { |
i | 1508 | drivers/char/tty_io.c | filp = (*p)->files->fd[i]; |
i | 78 | drivers/char/tty_ioctl.c | int i; |
i | 92 | drivers/char/tty_ioctl.c | for (i=0; i < NCCS; i++) |
i | 93 | drivers/char/tty_ioctl.c | termios->c_cc[i] = locked->c_cc[i] ? |
i | 94 | drivers/char/tty_ioctl.c | old->c_cc[i] : termios->c_cc[i]; |
i | 182 | drivers/char/tty_ioctl.c | int i; |
i | 185 | drivers/char/tty_ioctl.c | i = verify_area(VERIFY_WRITE, termio, sizeof (struct termio)); |
i | 186 | drivers/char/tty_ioctl.c | if (i) |
i | 187 | drivers/char/tty_ioctl.c | return i; |
i | 193 | drivers/char/tty_ioctl.c | for(i=0 ; i < NCC ; i++) |
i | 194 | drivers/char/tty_ioctl.c | tmp_termio.c_cc[i] = tty->termios->c_cc[i]; |
i | 54 | drivers/char/uni_to_437.c | int i, h; |
i | 62 | drivers/char/uni_to_437.c | for (i = 0; i < IBM_HASHLEVEL && c == -1; i++) |
i | 30 | drivers/char/vt.c | #define VT_IS_IN_USE(i) (console_driver.table[i] && console_driver.table[i]->count) |
i | 132 | drivers/char/vt.c | int i, perm; |
i | 179 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned char)); |
i | 180 | drivers/char/vt.c | if (!i) |
i | 182 | drivers/char/vt.c | return i; |
i | 233 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned long)); |
i | 234 | drivers/char/vt.c | if (!i) |
i | 236 | drivers/char/vt.c | return i; |
i | 272 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned long)); |
i | 273 | drivers/char/vt.c | if (!i) { |
i | 280 | drivers/char/vt.c | return i; |
i | 298 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned long)); |
i | 299 | drivers/char/vt.c | if (!i) { |
i | 304 | drivers/char/vt.c | return i; |
i | 312 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)a, sizeof(struct kbkeycode)); |
i | 313 | drivers/char/vt.c | if (i) |
i | 314 | drivers/char/vt.c | return i; |
i | 330 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)a, sizeof(struct kbkeycode)); |
i | 331 | drivers/char/vt.c | if (i) |
i | 332 | drivers/char/vt.c | return i; |
i | 344 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)a, sizeof(struct kbentry)); |
i | 345 | drivers/char/vt.c | if (i) |
i | 346 | drivers/char/vt.c | return i; |
i | 347 | drivers/char/vt.c | if ((i = get_fs_byte((char *) &a->kb_index)) >= NR_KEYS) |
i | 353 | drivers/char/vt.c | val = U(key_map[i]); |
i | 357 | drivers/char/vt.c | val = (i ? K_HOLE : K_NOSUCHMAP); |
i | 371 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)a, sizeof(struct kbentry)); |
i | 372 | drivers/char/vt.c | if (i) |
i | 373 | drivers/char/vt.c | return i; |
i | 374 | drivers/char/vt.c | if ((i = get_fs_byte((char *) &a->kb_index)) >= NR_KEYS) |
i | 379 | drivers/char/vt.c | if (!i && v == K_NOSUCHMAP) { |
i | 400 | drivers/char/vt.c | if (!i) |
i | 421 | drivers/char/vt.c | if (((key_map[i] == U(K_SAK)) || (v == K_SAK)) && |
i | 424 | drivers/char/vt.c | key_map[i] = U(v); |
i | 435 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)a, sizeof(struct kbsentry)); |
i | 436 | drivers/char/vt.c | if (i) |
i | 437 | drivers/char/vt.c | return i; |
i | 438 | drivers/char/vt.c | if ((i = get_fs_byte(&a->kb_func)) >= MAX_NR_FUNC || i < 0) |
i | 443 | drivers/char/vt.c | p = func_table[i]; |
i | 462 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)a, sizeof(struct kbsentry)); |
i | 463 | drivers/char/vt.c | if (i) |
i | 464 | drivers/char/vt.c | return i; |
i | 465 | drivers/char/vt.c | if ((i = get_fs_byte(&a->kb_func)) >= MAX_NR_FUNC) |
i | 467 | drivers/char/vt.c | q = func_table[i]; |
i | 470 | drivers/char/vt.c | for (j = i+1; j < MAX_NR_FUNC && !func_table[j]; j++) ; |
i | 491 | drivers/char/vt.c | func_table[i] = fj; |
i | 502 | drivers/char/vt.c | func_table[i] = fj; |
i | 521 | drivers/char/vt.c | for (p = a->kb_string, q = func_table[i]; ; p++, q++) |
i | 531 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) a, sizeof(struct kbdiacrs)); |
i | 532 | drivers/char/vt.c | if (i) |
i | 533 | drivers/char/vt.c | return i; |
i | 547 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *) a, sizeof(struct kbdiacrs)); |
i | 548 | drivers/char/vt.c | if (i) |
i | 549 | drivers/char/vt.c | return i; |
i | 561 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned char)); |
i | 562 | drivers/char/vt.c | if (i) |
i | 563 | drivers/char/vt.c | return i; |
i | 581 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned char)); |
i | 582 | drivers/char/vt.c | if (i) |
i | 583 | drivers/char/vt.c | return i; |
i | 599 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)vtmode, sizeof(struct vt_mode)); |
i | 600 | drivers/char/vt.c | if (i) |
i | 601 | drivers/char/vt.c | return i; |
i | 620 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct vt_mode)); |
i | 621 | drivers/char/vt.c | if (i) |
i | 622 | drivers/char/vt.c | return i; |
i | 641 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE,(void *)vtstat, sizeof(struct vt_stat)); |
i | 642 | drivers/char/vt.c | if (i) |
i | 643 | drivers/char/vt.c | return i; |
i | 646 | drivers/char/vt.c | for (i = 0, mask = 2; i < MAX_NR_CONSOLES && mask; ++i, mask <<= 1) |
i | 647 | drivers/char/vt.c | if (console_driver.table[i] && |
i | 648 | drivers/char/vt.c | console_driver.table[i]->count > 0) |
i | 658 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(long)); |
i | 659 | drivers/char/vt.c | if (i) |
i | 660 | drivers/char/vt.c | return i; |
i | 661 | drivers/char/vt.c | for (i = 0; i < MAX_NR_CONSOLES; ++i) |
i | 662 | drivers/char/vt.c | if (! VT_IS_IN_USE(i)) |
i | 664 | drivers/char/vt.c | put_fs_long(i < MAX_NR_CONSOLES ? (i+1) : -1, |
i | 679 | drivers/char/vt.c | i = vc_allocate(arg); |
i | 680 | drivers/char/vt.c | if (i) |
i | 681 | drivers/char/vt.c | return i; |
i | 737 | drivers/char/vt.c | i = vc_allocate(newvt); |
i | 738 | drivers/char/vt.c | if (i) |
i | 739 | drivers/char/vt.c | return i; |
i | 768 | drivers/char/vt.c | for (i=1; i<MAX_NR_CONSOLES; i++) |
i | 769 | drivers/char/vt.c | if (! VT_IS_IN_USE(i)) { |
i | 770 | drivers/char/vt.c | if (i == fg_console) |
i | 772 | drivers/char/vt.c | vc_disallocate(i); |
i | 793 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)vtsizes, sizeof(struct vt_sizes)); |
i | 794 | drivers/char/vt.c | if (i) |
i | 795 | drivers/char/vt.c | return i; |
i | 140 | drivers/net/3c501.c | int i; |
i | 148 | drivers/net/3c501.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 149 | drivers/net/3c501.c | int ioaddr = netcard_portlist[i]; |
i | 167 | drivers/net/3c501.c | int i; |
i | 170 | drivers/net/3c501.c | for (i = 0; i < 6; i++) { |
i | 171 | drivers/net/3c501.c | outw(i, ioaddr + EL1_DATAPTR); |
i | 172 | drivers/net/3c501.c | station_addr[i] = inb(ioaddr + EL1_SAPROM); |
i | 473 | drivers/net/3c501.c | int i; |
i | 474 | drivers/net/3c501.c | for (i = 0; i < 6; i++) /* Set the station address. */ |
i | 475 | drivers/net/3c501.c | outb(dev->dev_addr[i], ioaddr + i); |
i | 92 | drivers/net/3c503.c | int i; |
i | 95 | drivers/net/3c503.c | for(i = 7; i >= 0; i--, base_bits >>= 1) |
i | 100 | drivers/net/3c503.c | if (check_region(netcard_portlist[i], EL2_IO_EXTENT)) |
i | 102 | drivers/net/3c503.c | if (el2_probe1(dev, netcard_portlist[i]) == 0) |
i | 118 | drivers/net/3c503.c | int i; |
i | 126 | drivers/net/3c503.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 127 | drivers/net/3c503.c | int ioaddr = netcard_portlist[i]; |
i | 144 | drivers/net/3c503.c | int i, iobase_reg, membase_reg, saved_406; |
i | 187 | drivers/net/3c503.c | for (i = 0; i < 6; i++) |
i | 188 | drivers/net/3c503.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 220 | drivers/net/3c503.c | for (i = 1; i < EL2_MEMSIZE/sizeof(mem_base[0]); i++) { |
i | 221 | drivers/net/3c503.c | mem_base[i] = memtest_value; |
i | 223 | drivers/net/3c503.c | || mem_base[i] != memtest_value) { |
i | 229 | drivers/net/3c503.c | mem_base[i] = 0; |
i | 376 | drivers/net/3c503.c | int i; /* Buffer index */ |
i | 401 | drivers/net/3c503.c | for(i = 0; i < count; i++) { |
i | 402 | drivers/net/3c503.c | if (i % 8 == 0) |
i | 404 | drivers/net/3c503.c | if (++boguscount > (i<<3) + 32) { |
i | 406 | drivers/net/3c503.c | dev->name, i, count, boguscount); |
i | 409 | drivers/net/3c503.c | outb(buf[i], E33G_FIFOH); |
i | 421 | drivers/net/3c503.c | unsigned int i; |
i | 445 | drivers/net/3c503.c | for(i = 0; i < count; i++) { |
i | 446 | drivers/net/3c503.c | if (i % 8 == 0) |
i | 448 | drivers/net/3c503.c | if (++boguscount > (i<<3) + 32) { |
i | 450 | drivers/net/3c503.c | dev->name, i, count, boguscount); |
i | 454 | drivers/net/3c503.c | buf[i] = inb_p(E33G_FIFOH); |
i | 292 | drivers/net/3c505.c | int i; |
i | 321 | drivers/net/3c505.c | for (i = 0; cont && (i < pcb->length); i++) { |
i | 322 | drivers/net/3c505.c | OUTB(pcb->data.raw[i], (adapter->io_addr)+PORT_COMMAND); |
i | 334 | drivers/net/3c505.c | i = GET_ASF(); |
i | 335 | drivers/net/3c505.c | if ((i == ASF_PCB_ACK) || |
i | 336 | drivers/net/3c505.c | (i == ASF_PCB_NAK)) |
i | 343 | drivers/net/3c505.c | if (i == ASF_PCB_ACK) { |
i | 346 | drivers/net/3c505.c | } else if (i == ASF_PCB_NAK) { |
i | 382 | drivers/net/3c505.c | int i; |
i | 415 | drivers/net/3c505.c | i = 0; |
i | 420 | drivers/net/3c505.c | pcb->data.raw[i++] = INB(adapter->io_addr+PORT_COMMAND); |
i | 421 | drivers/net/3c505.c | if (i > MAX_PCB_DATA) |
i | 422 | drivers/net/3c505.c | printk(invalid_pcb_msg, i, filename, __LINE__); |
i | 429 | drivers/net/3c505.c | total_length = pcb->data.raw[--i]; |
i | 548 | drivers/net/3c505.c | register int i; |
i | 587 | drivers/net/3c505.c | for (i = 0; i < (rlen/2); i++) { |
i | 616 | drivers/net/3c505.c | for (i = 0; i < (rlen/2); i++) { |
i | 624 | drivers/net/3c505.c | filename,__LINE__, i, rlen/2); |
i | 974 | drivers/net/3c505.c | int i; |
i | 1008 | drivers/net/3c505.c | for (i = 0; i < (nlen/2);i++) { |
i | 1014 | drivers/net/3c505.c | filename,__LINE__, i, nlen/2); |
i | 1227 | drivers/net/3c505.c | int i; |
i | 1237 | drivers/net/3c505.c | for (i=0;i<num_addrs;i++) |
i | 1238 | drivers/net/3c505.c | memcpy(adapter->tx_pcb.data.multicast[i], addrs+6*i,6); |
i | 1295 | drivers/net/3c505.c | int i; |
i | 1296 | drivers/net/3c505.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 1297 | drivers/net/3c505.c | dev->buffs[i] = NULL; |
i | 1341 | drivers/net/3c505.c | int i; |
i | 1342 | drivers/net/3c505.c | for (i = 0; i < dev->addr_len; i++) |
i | 1343 | drivers/net/3c505.c | dev->broadcast[i] = 0xff; |
i | 1465 | drivers/net/3c505.c | int i; |
i | 1529 | drivers/net/3c505.c | for (i = 0; i < 6; i++) |
i | 1530 | drivers/net/3c505.c | dev->dev_addr[i] = adapter.rx_pcb.data.eth_addr[i]; |
i | 309 | drivers/net/3c507.c | int i; |
i | 316 | drivers/net/3c507.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 317 | drivers/net/3c507.c | int ioaddr = netcard_portlist[i]; |
i | 330 | drivers/net/3c507.c | int i, irq, irqval; |
i | 336 | drivers/net/3c507.c | for(i = 0; i < 255; i++) { |
i | 377 | drivers/net/3c507.c | for (i = 0; i < 6; i++) { |
i | 378 | drivers/net/3c507.c | dev->dev_addr[i] = inb(ioaddr + i); |
i | 379 | drivers/net/3c507.c | printk(" %02x", dev->dev_addr[i]); |
i | 118 | drivers/net/3c509.c | short lrs_state = 0xff, i; |
i | 140 | drivers/net/3c509.c | for (i = 0; i < 3; i++) |
i | 141 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
i | 154 | drivers/net/3c509.c | for (i = 0; i < 8; i++) |
i | 155 | drivers/net/3c509.c | if ((mca_adaptor_id(i) | 1) == 0x627c) { |
i | 156 | drivers/net/3c509.c | ioaddr = mca_pos_base_addr(i); |
i | 159 | drivers/net/3c509.c | for (i = 0; i < 3; i++) |
i | 160 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
i | 176 | drivers/net/3c509.c | for(i = 0; i < 255; i++) { |
i | 195 | drivers/net/3c509.c | for (i = 0; i < 3; i++) { |
i | 196 | drivers/net/3c509.c | phys_addr[i] = htons(id_read_eeprom(i)); |
i | 236 | drivers/net/3c509.c | for (i = 0; i < 6; i++) |
i | 237 | drivers/net/3c509.c | printk(" %2.2x", dev->dev_addr[i]); |
i | 303 | drivers/net/3c509.c | int i; |
i | 329 | drivers/net/3c509.c | for (i = 0; i < 6; i++) |
i | 330 | drivers/net/3c509.c | outb(dev->dev_addr[i], ioaddr + i); |
i | 344 | drivers/net/3c509.c | for (i = 0; i < 9; i++) |
i | 345 | drivers/net/3c509.c | inb(ioaddr + i); |
i | 449 | drivers/net/3c509.c | int i = 4; |
i | 451 | drivers/net/3c509.c | while (--i > 0 && (tx_status = inb(ioaddr + TX_STATUS)) > 0) { |
i | 468 | drivers/net/3c509.c | int i = 0; |
i | 501 | drivers/net/3c509.c | if (++i > 10) { |
i | 605 | drivers/net/8390.c | int i; |
i | 632 | drivers/net/8390.c | for(i = 0; i < 6; i++) { |
i | 633 | drivers/net/8390.c | outb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i); |
i | 637 | drivers/net/8390.c | for(i = 0; i < 8; i++) |
i | 638 | drivers/net/8390.c | outb_p(0xff, e8390_base + EN1_MULT + i); |
i | 98 | drivers/net/ac3200.c | int i; |
i | 103 | drivers/net/ac3200.c | for(i = 0; i < 6; i++) |
i | 104 | drivers/net/ac3200.c | printk(" %02x", inb(ioaddr + AC_SA_PROM + i)); |
i | 119 | drivers/net/ac3200.c | for (i = 0; i < 4; i++) |
i | 126 | drivers/net/ac3200.c | for(i = 0; i < ETHER_ADDR_LEN; i++) |
i | 127 | drivers/net/ac3200.c | dev->dev_addr[i] = inb(ioaddr + AC_SA_PROM + i); |
i | 151 | drivers/net/ac3200.c | for (i = 0; i < 7; i++) |
i | 152 | drivers/net/ac3200.c | if (addrmap[i] == dev->mem_start) |
i | 154 | drivers/net/ac3200.c | if (i >= 7) |
i | 155 | drivers/net/ac3200.c | i = 0; |
i | 156 | drivers/net/ac3200.c | outb((inb(ioaddr + AC_CONFIG) & ~7) | i, ioaddr + AC_CONFIG); |
i | 204 | drivers/net/apricot.c | int i; |
i | 211 | drivers/net/apricot.c | for (i = 0; i < num; i++) |
i | 220 | drivers/net/apricot.c | if (i == 0) |
i | 232 | drivers/net/apricot.c | if (i != 0) |
i | 235 | drivers/net/apricot.c | return (i); |
i | 541 | drivers/net/apricot.c | int i; |
i | 551 | drivers/net/apricot.c | i = init_rx_bufs(dev, RX_RING_SIZE); |
i | 553 | drivers/net/apricot.c | if ((i = init_rx_bufs(dev, RX_RING_SIZE)) < RX_RING_SIZE) |
i | 554 | drivers/net/apricot.c | printk("%s: only able to allocate %d receive buffers\n", dev->name, i); |
i | 556 | drivers/net/apricot.c | if (i < 4) |
i | 672 | drivers/net/apricot.c | int i; |
i | 675 | drivers/net/apricot.c | for (i = 0; i < 6; i++) |
i | 676 | drivers/net/apricot.c | printk(" %2.2X", (unsigned char)add[i]); |
i | 680 | drivers/net/apricot.c | for (i = 0; i < 6; i++) |
i | 681 | drivers/net/apricot.c | printk(" %2.2X", (unsigned char)add[i+6]); |
i | 688 | drivers/net/apricot.c | int i; |
i | 700 | drivers/net/apricot.c | for (i = 0; i < 8; i++) |
i | 702 | drivers/net/apricot.c | eth_addr[i] = inb(ioaddr+8+i); |
i | 703 | drivers/net/apricot.c | checksum += eth_addr[i]; |
i | 724 | drivers/net/apricot.c | for (i = 0; i < 6; i++) |
i | 725 | drivers/net/apricot.c | printk(" %2.2X", dev->dev_addr[i] = eth_addr[i]); |
i | 145 | drivers/net/at1700.c | int i; |
i | 153 | drivers/net/at1700.c | for (i = 0; at1700_probe_list[i]; i++) { |
i | 154 | drivers/net/at1700.c | int ioaddr = at1700_probe_list[i]; |
i | 176 | drivers/net/at1700.c | unsigned int i, irq; |
i | 219 | drivers/net/at1700.c | for(i = 0; i < 3; i++) { |
i | 220 | drivers/net/at1700.c | unsigned short eeprom_val = read_eeprom(ioaddr, 4+i); |
i | 222 | drivers/net/at1700.c | ((unsigned short *)dev->dev_addr)[i] = ntohs(eeprom_val); |
i | 241 | drivers/net/at1700.c | for (i = 0; i < 6; i++) |
i | 242 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
i | 246 | drivers/net/at1700.c | for (i = 0; i < 8; i++) |
i | 247 | drivers/net/at1700.c | outb(0x00, ioaddr + 8 + i); |
i | 282 | drivers/net/at1700.c | int i; |
i | 292 | drivers/net/at1700.c | for (i = 9; i >= 0; i--) { |
i | 293 | drivers/net/at1700.c | short dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0; |
i | 302 | drivers/net/at1700.c | for (i = 16; i > 0; i--) { |
i | 325 | drivers/net/at1700.c | int i; |
i | 331 | drivers/net/at1700.c | for (i = 0; i < 6; i++) |
i | 332 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
i | 336 | drivers/net/at1700.c | for (i = 0; i < 8; i++) |
i | 337 | drivers/net/at1700.c | outb(0x00, ioaddr + 8 + i); |
i | 539 | drivers/net/at1700.c | int i; |
i | 541 | drivers/net/at1700.c | for (i = 0; i < 14; i++) |
i | 542 | drivers/net/at1700.c | printk(" %02x", skb->data[i]); |
i | 557 | drivers/net/at1700.c | int i; |
i | 558 | drivers/net/at1700.c | for (i = 0; i < 20; i++) { |
i | 567 | drivers/net/at1700.c | dev->name, inb(ioaddr + RX_MODE), i); |
i | 260 | drivers/net/atp.c | int i; |
i | 269 | drivers/net/atp.c | for (i = 0; i < 3; i++) |
i | 270 | drivers/net/atp.c | ((unsigned short *)dev->dev_addr)[i] = |
i | 271 | drivers/net/atp.c | ntohs(eeprom_op(ioaddr, EE_READ(sa_offset + i))); |
i | 341 | drivers/net/atp.c | int i; |
i | 345 | drivers/net/atp.c | for (i = 0; i < 6; i++) |
i | 346 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
i | 581 | drivers/net/atp.c | int i; |
i | 582 | drivers/net/atp.c | for (i = 0; i < 6; i++) |
i | 583 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
i | 66 | drivers/net/auto_irq.c | int i, mask; |
i | 71 | drivers/net/auto_irq.c | for (i = 0; i < 16; i++) { |
i | 72 | drivers/net/auto_irq.c | if (test_bit(i, &irqs_busy) == 0 |
i | 73 | drivers/net/auto_irq.c | && request_irq(i, autoirq_probe, SA_INTERRUPT, "irq probe") == 0) |
i | 74 | drivers/net/auto_irq.c | set_bit(i, (void *)&irq_handled); /* irq_handled |= 1 << i;*/ |
i | 85 | drivers/net/auto_irq.c | for (i = 0, mask = 0x01; i < 16; i++, mask <<= 1) { |
i | 89 | drivers/net/auto_irq.c | printk(" Spurious interrupt on IRQ %d\n", i); |
i | 91 | drivers/net/auto_irq.c | free_irq(i); |
i | 99 | drivers/net/auto_irq.c | int i; |
i | 110 | drivers/net/auto_irq.c | for (i = 0; i < 16; i++) { |
i | 111 | drivers/net/auto_irq.c | if (test_bit(i, (void *)&irq_handled)) |
i | 112 | drivers/net/auto_irq.c | free_irq(i); |
i | 590 | drivers/net/de600.c | int i; |
i | 629 | drivers/net/de600.c | for (i = size; i > 0; --i, ++buffer) |
i | 646 | drivers/net/de600.c | int i; |
i | 673 | drivers/net/de600.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 674 | drivers/net/de600.c | dev->dev_addr[i] = de600_read_byte(READ_DATA, dev); |
i | 675 | drivers/net/de600.c | dev->broadcast[i] = 0xff; |
i | 692 | drivers/net/de600.c | for (i = 1; i < ETH_ALEN; i++) |
i | 693 | drivers/net/de600.c | printk(":%02X",dev->dev_addr[i]); |
i | 716 | drivers/net/de600.c | int i; |
i | 762 | drivers/net/de600.c | for (i = 0; i < ETH_ALEN; i++) |
i | 763 | drivers/net/de600.c | de600_put_byte(dev->dev_addr[i]); |
i | 712 | drivers/net/de620.c | int i; |
i | 732 | drivers/net/de620.c | for (i = 0; i < 6; ++i) { /* W_PARn = 0xaa + n */ |
i | 733 | drivers/net/de620.c | de620_set_register(W_PAR0 + i, dev->dev_addr[i]); |
i | 758 | drivers/net/de620.c | if (((i = de620_get_register(R_STS)) & CHECK_MASK) != CHECK_OK) { |
i | 763 | drivers/net/de620.c | "! (%02x)\n", i); |
i | 796 | drivers/net/de620.c | int i; |
i | 820 | drivers/net/de620.c | for (i = 1; i < ETH_ALEN; i++) { |
i | 821 | drivers/net/de620.c | printk(":%2.2X", dev->dev_addr[i] = nic_data.NodeID[i]); |
i | 822 | drivers/net/de620.c | dev->broadcast[i] = 0xff; |
i | 407 | drivers/net/depca.c | int i,j, status=0; |
i | 431 | drivers/net/depca.c | for (j = 0, i = 0; mem_base[i] && (j == 0);i++) { |
i | 432 | drivers/net/depca.c | if (((mem_chkd >> i) & 0x01) == 0) { /* has the memory been checked? */ |
i | 433 | drivers/net/depca.c | name = DepcaSignature(mem_base[i]);/* check for a DEPCA here */ |
i | 434 | drivers/net/depca.c | mem_chkd |= (0x01 << i); /* mark location checked */ |
i | 437 | drivers/net/depca.c | --i; |
i | 443 | drivers/net/depca.c | mem_start = mem_base[i]; |
i | 469 | drivers/net/depca.c | for (i = 0; i < ETH_ALEN - 1; i++) { /* get the ethernet address */ |
i | 470 | drivers/net/depca.c | printk("%2.2x:", dev->dev_addr[i] = inb(DEPCA_PROM + j)); |
i | 472 | drivers/net/depca.c | printk("%2.2x", dev->dev_addr[i] = inb(DEPCA_PROM + j)); |
i | 474 | drivers/net/depca.c | for (;i<32;i++) { /* leave ROM counter in known state */ |
i | 530 | drivers/net/depca.c | for (i=0;j>1;i++) { |
i | 538 | drivers/net/depca.c | j = 1 << i; |
i | 597 | drivers/net/depca.c | for (i=0, j = lp->ringSize; j>1; i++) { |
i | 600 | drivers/net/depca.c | lp->rlen = (unsigned long)(i << 29); |
i | 675 | drivers/net/depca.c | int i,nicsr,ioaddr = dev->base_addr; |
i | 709 | drivers/net/depca.c | for (i=0;i<lp->ringSize;i++){ |
i | 710 | drivers/net/depca.c | printk("\t0x%8.8lx 0x%8.8lx\n",(long)&lp->rx_ring[i].base, |
i | 711 | drivers/net/depca.c | (long)&lp->tx_ring[i].base); |
i | 714 | drivers/net/depca.c | for (i=0;i<lp->ringSize;i++){ |
i | 715 | drivers/net/depca.c | printk("\t0x%8.8lx 0x%8.8lx\n",(long)lp->rx_ring[i].base, |
i | 716 | drivers/net/depca.c | (long)lp->tx_ring[i].base); |
i | 721 | drivers/net/depca.c | for (i=0;i<6;i++){ |
i | 722 | drivers/net/depca.c | printk("%2.2x:",(short)lp->init_block.phys_addr[i]); |
i | 725 | drivers/net/depca.c | for (i=0;i<4;i++){ |
i | 726 | drivers/net/depca.c | printk("%2.2x",(short)lp->init_block.filter[i]); |
i | 773 | drivers/net/depca.c | unsigned long i; |
i | 780 | drivers/net/depca.c | for (i = 0; i < lp->ringSize; i++) { |
i | 781 | drivers/net/depca.c | lp->rx_ring[i].base = (lp->dma_buffs + i*PKT_BUF_SZ) | R_OWN; |
i | 782 | drivers/net/depca.c | lp->rx_ring[i].buf_length = -PKT_BUF_SZ; |
i | 783 | drivers/net/depca.c | lp->tx_ring[i].base = (lp->dma_buffs + (i+lp->ringSize) * PKT_BUF_SZ) & |
i | 788 | drivers/net/depca.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 789 | drivers/net/depca.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
i | 791 | drivers/net/depca.c | for (i = 0; i < 4; i++) { |
i | 792 | drivers/net/depca.c | lp->init_block.filter[i] = 0x0000; |
i | 1203 | drivers/net/depca.c | int i, status=0; |
i | 1209 | drivers/net/depca.c | for (i=0;(i<100) && !(inw(DEPCA_DATA) & IDON); i++); |
i | 1211 | drivers/net/depca.c | if (i!=100) { |
i | 1216 | drivers/net/depca.c | dev->name, i, (long) &lp->init_block, inw(DEPCA_DATA)); |
i | 1221 | drivers/net/depca.c | dev->name, i, (long) &lp->init_block, inw(DEPCA_DATA)); |
i | 1279 | drivers/net/depca.c | short int i; |
i | 1282 | drivers/net/depca.c | for (i=0;i<num_addrs;i++) { /* for each address in the list */ |
i | 1283 | drivers/net/depca.c | if (((char) *(addrs+ETH_ALEN*i) & 0x01) == 1) {/* is multicast address? */ |
i | 1287 | drivers/net/depca.c | bit = (((char)* (addrs+ETH_ALEN*i+octet)) >> j) & 0x01; |
i | 1344 | drivers/net/depca.c | int i, ioaddr = DEPCA_EISA_IO_PORTS; |
i | 1348 | drivers/net/depca.c | for (status = -ENODEV, i=1; i<MAX_EISA_SLOTS; i++, ioaddr+=0x1000) { |
i | 1419 | drivers/net/depca.c | unsigned long i,j,k; |
i | 1424 | drivers/net/depca.c | for (i=0;i<16;i++) { /* copy the first 16 bytes of ROM to */ |
i | 1425 | drivers/net/depca.c | tmpstr[i] = *(unsigned char *)(mem_addr+0xc000+i); /* a temporary string */ |
i | 1427 | drivers/net/depca.c | tmpstr[i]='\0'; |
i | 1430 | drivers/net/depca.c | for (i=0;*signatures[i]!='\0' && *thisName=='\0';i++) { |
i | 1431 | drivers/net/depca.c | for (j=0,k=0;j<16 && k<strlen(signatures[i]);j++) { |
i | 1432 | drivers/net/depca.c | if (signatures[i][k] == tmpstr[j]) { /* track signature */ |
i | 1438 | drivers/net/depca.c | if (k == strlen(signatures[i])) { |
i | 1439 | drivers/net/depca.c | strcpy(thisName,signatures[i]); |
i | 1462 | drivers/net/depca.c | int i, j, nicsr, status = 0; |
i | 1485 | drivers/net/depca.c | for (i=0,j=0;devSig[i] != '\0' && !status;i+=2,j++) { |
i | 1486 | drivers/net/depca.c | if ((devSig[i]=asc2hex(devSig[i]))>=0) { |
i | 1487 | drivers/net/depca.c | devSig[i]<<=4; |
i | 1488 | drivers/net/depca.c | if((devSig[i+1]=asc2hex(devSig[i+1]))>=0){ |
i | 1489 | drivers/net/depca.c | devSig[j]=devSig[i]+devSig[i+1]; |
i | 1510 | drivers/net/depca.c | for (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) { |
i | 134 | drivers/net/e2100.c | int i, status; |
i | 154 | drivers/net/e2100.c | for (i = 0; i < 6; i++) |
i | 155 | drivers/net/e2100.c | station_addr[i] = inb(ioaddr + E21_SAPROM + i); |
i | 161 | drivers/net/e2100.c | for (i = 0; i < 6; i++) |
i | 162 | drivers/net/e2100.c | printk(" %02X", station_addr[i]); |
i | 165 | drivers/net/e2100.c | int irqlist[] = {15,11,10,12,5,9,3,4}, i; |
i | 166 | drivers/net/e2100.c | for (i = 0; i < 8; i++) |
i | 167 | drivers/net/e2100.c | if (request_irq (irqlist[i], NULL, 0, "bogus") != -EBUSY) { |
i | 168 | drivers/net/e2100.c | dev->irq = irqlist[i]; |
i | 171 | drivers/net/e2100.c | if (i >= 8) { |
i | 197 | drivers/net/e2100.c | for(i = 0; i < 6; i++) |
i | 198 | drivers/net/e2100.c | if (station_addr[i] != inb(ioaddr + E21_SAPROM + 8 + i)) { |
i | 325 | drivers/net/eexpress.c | int i; |
i | 327 | 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 | 611 | drivers/net/eexpress.c | int i; |
i | 614 | drivers/net/eexpress.c | for (i = 0; i < 0x20; i += 2) |
i | 719 | drivers/net/eexpress.c | int i; |
i | 728 | drivers/net/eexpress.c | for (i = 8; i >= 0; i--) { |
i | 729 | drivers/net/eexpress.c | short outval = (read_cmd & (1 << i)) ? ctrl_val | EE_DATA_WRITE |
i | 739 | drivers/net/eexpress.c | for (i = 16; i > 0; i--) { |
i | 333 | drivers/net/ewrk3.c | int i;\ |
i | 335 | drivers/net/ewrk3.c | for (i=0;i<5000;i++) inb(EWRK3_CSR);\ |
i | 397 | drivers/net/ewrk3.c | int i, status=0; |
i | 422 | drivers/net/ewrk3.c | for (chksum=0, i=0; i<EEPROM_MAX; i+=2) { |
i | 428 | drivers/net/ewrk3.c | tmp.val = (short)Read_EEPROM(iobase, (i>>1)); |
i | 429 | drivers/net/ewrk3.c | eeprom_image[i] = tmp.c[0]; |
i | 430 | drivers/net/ewrk3.c | eeprom_image[i+1] = tmp.c[1]; |
i | 432 | drivers/net/ewrk3.c | chksum += eeprom_image[i] + eeprom_image[i+1]; |
i | 469 | drivers/net/ewrk3.c | for (i = 0;i < ETH_ALEN - 1;i++) { /* get the ethernet address */ |
i | 470 | drivers/net/ewrk3.c | printk("%2.2x:", dev->dev_addr[i] = |
i | 471 | drivers/net/ewrk3.c | eeprom_image[EEPROM_PADDR0 + i]); |
i | 472 | drivers/net/ewrk3.c | outb(eeprom_image[EEPROM_PADDR0 + i], EWRK3_PAR0 + i); |
i | 474 | drivers/net/ewrk3.c | printk("%2.2x,\n",dev->dev_addr[i] = eeprom_image[EEPROM_PADDR0 + i]); |
i | 475 | drivers/net/ewrk3.c | outb(eeprom_image[EEPROM_PADDR0 + i], EWRK3_PAR0 + i); |
i | 478 | drivers/net/ewrk3.c | for (i = 0; i < ETH_ALEN - 1; i++) { /* get the ethernet addr. */ |
i | 479 | drivers/net/ewrk3.c | printk("%2.2x:", dev->dev_addr[i] = inb(EWRK3_APROM)); |
i | 480 | drivers/net/ewrk3.c | outb(dev->dev_addr[i], EWRK3_PAR0 + i); |
i | 482 | drivers/net/ewrk3.c | printk("%2.2x,\n", dev->dev_addr[i] = inb(EWRK3_APROM)); |
i | 483 | drivers/net/ewrk3.c | outb(dev->dev_addr[i], EWRK3_PAR0 + i); |
i | 648 | drivers/net/ewrk3.c | int i, iobase = dev->base_addr; |
i | 673 | drivers/net/ewrk3.c | for (i=0;i<6;i++){ |
i | 674 | drivers/net/ewrk3.c | printk("%2.2x:",(short)dev->dev_addr[i]); |
i | 844 | drivers/net/ewrk3.c | int i; |
i | 851 | drivers/net/ewrk3.c | for (i=0; i<skb->len; i++) { |
i | 975 | drivers/net/ewrk3.c | int i, iobase = dev->base_addr; |
i | 1044 | drivers/net/ewrk3.c | for (i=0; i<skb->len; i++) { |
i | 1061 | drivers/net/ewrk3.c | for (i=1; i<EWRK3_PKT_STAT_SZ-1; i++) { |
i | 1062 | drivers/net/ewrk3.c | if (pkt_len < i*EWRK3_PKT_BIN_SZ) { |
i | 1063 | drivers/net/ewrk3.c | lp->pktStats.bins[i]++; |
i | 1064 | drivers/net/ewrk3.c | i = EWRK3_PKT_STAT_SZ; |
i | 1254 | drivers/net/ewrk3.c | int i; |
i | 1267 | drivers/net/ewrk3.c | for (i=0; i<(HASH_TABLE_LEN >> 3); i++) { |
i | 1272 | drivers/net/ewrk3.c | i++; |
i | 1277 | drivers/net/ewrk3.c | for (i=0; i<(HASH_TABLE_LEN >> 3); i++) { |
i | 1284 | drivers/net/ewrk3.c | for (i=0;i<num_addrs;i++) { /* for each address in the list */ |
i | 1285 | drivers/net/ewrk3.c | if (((char) *(addrs+ETH_ALEN*i) & 0x01) == 1) {/* multicast address? */ |
i | 1289 | drivers/net/ewrk3.c | bit = (((char)* (addrs+ETH_ALEN*i+octet)) >> j) & 0x01; |
i | 1332 | drivers/net/ewrk3.c | int i, iobase, status; |
i | 1335 | drivers/net/ewrk3.c | for (status = -ENODEV, iobase = EWRK3_IO_BASE,i = 0; |
i | 1336 | drivers/net/ewrk3.c | i < 24; |
i | 1337 | drivers/net/ewrk3.c | iobase += EWRK3_IOP_INC, i++) { |
i | 1375 | drivers/net/ewrk3.c | int i, iobase = EWRK3_EISA_IO_PORTS; |
i | 1379 | drivers/net/ewrk3.c | for (status = -ENODEV, i=1; i<MAX_EISA_SLOTS; i++, iobase+=EISA_SLOT_INC) { |
i | 1388 | drivers/net/ewrk3.c | mem_chkd |= (0x01 << (i + 24)); |
i | 1457 | drivers/net/ewrk3.c | int i; |
i | 1461 | drivers/net/ewrk3.c | for (i=0;i<5000;i++) inb(EWRK3_CSR); /* wait 1msec */ |
i | 1471 | drivers/net/ewrk3.c | int i; |
i | 1474 | drivers/net/ewrk3.c | for (i=0;i<5000;i++) inb(EWRK3_CSR); /* wait 1msec */ |
i | 1478 | drivers/net/ewrk3.c | for (i=0;i<75000;i++) inb(EWRK3_CSR); /* wait 15msec */ |
i | 1480 | drivers/net/ewrk3.c | for (i=0;i<5000;i++) inb(EWRK3_CSR); /* wait 1msec */ |
i | 1490 | drivers/net/ewrk3.c | unsigned long i,j,k; |
i | 1494 | drivers/net/ewrk3.c | for (i=0;*signatures[i] != '\0' && *name == '\0';i++) { |
i | 1495 | drivers/net/ewrk3.c | for (j=EEPROM_PNAME7,k=0;j<=EEPROM_PNAME0 && k<strlen(signatures[i]);j++) { |
i | 1496 | drivers/net/ewrk3.c | if (signatures[i][k] == eeprom_image[j]) { /* track signature */ |
i | 1502 | drivers/net/ewrk3.c | if (k == strlen(signatures[i])) { |
i | 1523 | drivers/net/ewrk3.c | int i, j, status = 0; |
i | 1530 | drivers/net/ewrk3.c | for (i=0,j=0;devSig[i] != '\0' && !status;i+=2,j++) { |
i | 1531 | drivers/net/ewrk3.c | if ((devSig[i]=asc2hex(devSig[i]))>=0) { |
i | 1532 | drivers/net/ewrk3.c | devSig[i]<<=4; |
i | 1533 | drivers/net/ewrk3.c | if((devSig[i+1]=asc2hex(devSig[i+1]))>=0){ |
i | 1534 | drivers/net/ewrk3.c | devSig[j]=devSig[i]+devSig[i+1]; |
i | 1555 | drivers/net/ewrk3.c | for (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) { |
i | 1611 | drivers/net/ewrk3.c | int i, j, iobase = dev->base_addr, status = 0; |
i | 1620 | drivers/net/ewrk3.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1621 | drivers/net/ewrk3.c | tmp.addr[i] = dev->dev_addr[i]; |
i | 1634 | drivers/net/ewrk3.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1635 | drivers/net/ewrk3.c | dev->dev_addr[i] = tmp.addr[i]; |
i | 1636 | drivers/net/ewrk3.c | outb(tmp.addr[i], EWRK3_PAR0 + i); |
i | 1676 | drivers/net/ewrk3.c | for (i=0; i<(HASH_TABLE_LEN >> 3); i++) { |
i | 1677 | drivers/net/ewrk3.c | tmp.addr[i] = inb(EWRK3_DATA); |
i | 1751 | drivers/net/ewrk3.c | for (i=0; i<(EEPROM_MAX>>1); i++) { |
i | 1752 | drivers/net/ewrk3.c | tmp.val[i] = (short)Read_EEPROM(iobase, i); |
i | 1754 | drivers/net/ewrk3.c | i = EEPROM_MAX; |
i | 1755 | drivers/net/ewrk3.c | tmp.addr[i++] = inb(EWRK3_CMR); /* Config/Management Reg. */ |
i | 1757 | drivers/net/ewrk3.c | tmp.addr[i++] = inb(EWRK3_PAR0 + j); |
i | 1769 | drivers/net/ewrk3.c | for (i=0; i<(EEPROM_MAX>>1); i++) { |
i | 1770 | drivers/net/ewrk3.c | Write_EEPROM(tmp.val[i], iobase, i); |
i | 126 | drivers/net/hp-plus.c | int i; |
i | 134 | drivers/net/hp-plus.c | for (i = 0; hpplus_portlist[i]; i++) { |
i | 135 | drivers/net/hp-plus.c | int ioaddr = hpplus_portlist[i]; |
i | 149 | drivers/net/hp-plus.c | int i; |
i | 167 | drivers/net/hp-plus.c | for(i = 0; i < ETHER_ADDR_LEN; i++) { |
i | 168 | drivers/net/hp-plus.c | unsigned char inval = inb(ioaddr + 8 + i); |
i | 169 | drivers/net/hp-plus.c | dev->dev_addr[i] = inval; |
i | 81 | drivers/net/hp.c | int i; |
i | 89 | drivers/net/hp.c | for (i = 0; hppclan_portlist[i]; i++) { |
i | 90 | drivers/net/hp.c | int ioaddr = hppclan_portlist[i]; |
i | 103 | drivers/net/hp.c | int i, board_id, wordmode; |
i | 133 | drivers/net/hp.c | for(i = 0; i < ETHER_ADDR_LEN; i++) |
i | 134 | drivers/net/hp.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 302 | drivers/net/lance.c | int i, reset_val, lance_version; |
i | 364 | drivers/net/lance.c | for (i = 0; i < 6; i++) |
i | 365 | drivers/net/lance.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 388 | drivers/net/lance.c | for (i = 0; i < 6; i++) |
i | 389 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
i | 475 | drivers/net/lance.c | for (i = 0; i < 4; i++) { |
i | 476 | drivers/net/lance.c | int dma = dmas[i]; |
i | 502 | drivers/net/lance.c | if (i == 4) { /* Failure: bail. */ |
i | 534 | drivers/net/lance.c | int i; |
i | 586 | drivers/net/lance.c | i = 0; |
i | 587 | drivers/net/lance.c | while (i++ < 100) |
i | 594 | drivers/net/lance.c | dev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA)); |
i | 604 | drivers/net/lance.c | int i; |
i | 610 | drivers/net/lance.c | for (i = 0; i < RX_RING_SIZE; i++) { |
i | 611 | drivers/net/lance.c | lp->rx_ring[i].base = (lp->rx_buffs + i*PKT_BUF_SZ) | 0x80000000; |
i | 612 | drivers/net/lance.c | lp->rx_ring[i].buf_length = -PKT_BUF_SZ; |
i | 616 | drivers/net/lance.c | for (i = 0; i < TX_RING_SIZE; i++) { |
i | 617 | drivers/net/lance.c | lp->tx_ring[i].base = 0; |
i | 621 | drivers/net/lance.c | for (i = 0; i < 6; i++) |
i | 622 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
i | 648 | drivers/net/lance.c | int i; |
i | 652 | drivers/net/lance.c | for (i = 0 ; i < RX_RING_SIZE; i++) |
i | 653 | drivers/net/lance.c | printk("%s %08x %04x %04x", i & 0x3 ? "" : "\n ", |
i | 654 | drivers/net/lance.c | lp->rx_ring[i].base, -lp->rx_ring[i].buf_length, |
i | 655 | drivers/net/lance.c | lp->rx_ring[i].msg_length); |
i | 656 | drivers/net/lance.c | for (i = 0 ; i < TX_RING_SIZE; i++) |
i | 657 | drivers/net/lance.c | printk("%s %08x %04x %04x", i & 0x3 ? "" : "\n ", |
i | 658 | drivers/net/lance.c | lp->tx_ring[i].base, -lp->tx_ring[i].length, |
i | 659 | drivers/net/lance.c | lp->tx_ring[i].misc); |
i | 876 | drivers/net/lance.c | int i; |
i | 902 | drivers/net/lance.c | for (i=0; i < RX_RING_SIZE; i++) |
i | 903 | drivers/net/lance.c | if (lp->rx_ring[(entry+i) & RX_RING_MOD_MASK].base < 0) |
i | 906 | drivers/net/lance.c | if (i > RX_RING_SIZE -2) { |
i | 1005 | drivers/net/lance.c | int i; |
i | 1008 | drivers/net/lance.c | for (i = 0; i < 4; i++) { |
i | 1009 | drivers/net/lance.c | outw(8 + i, ioaddr+LANCE_ADDR); |
i | 1010 | drivers/net/lance.c | outw(multicast_table[i], ioaddr+LANCE_DATA); |
i | 107 | drivers/net/loopback.c | int i; |
i | 144 | drivers/net/loopback.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 145 | drivers/net/loopback.c | skb_queue_head_init(&dev->buffs[i]); |
i | 101 | drivers/net/ne.c | int i; |
i | 109 | drivers/net/ne.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 110 | drivers/net/ne.c | int ioaddr = netcard_portlist[i]; |
i | 123 | drivers/net/ne.c | int i; |
i | 170 | drivers/net/ne.c | for (i = 0; i < sizeof(program_seq)/sizeof(program_seq[0]); i++) |
i | 171 | drivers/net/ne.c | outb_p(program_seq[i].value, ioaddr + program_seq[i].offset); |
i | 173 | drivers/net/ne.c | for(i = 0; i < 32 /*sizeof(SA_prom)*/; i+=2) { |
i | 174 | drivers/net/ne.c | SA_prom[i] = inb(ioaddr + NE_DATAPORT); |
i | 175 | drivers/net/ne.c | SA_prom[i+1] = inb(ioaddr + NE_DATAPORT); |
i | 176 | drivers/net/ne.c | if (SA_prom[i] != SA_prom[i+1]) |
i | 186 | drivers/net/ne.c | for (i = 0; i < 16; i++) |
i | 187 | drivers/net/ne.c | SA_prom[i] = SA_prom[i+i]; |
i | 195 | drivers/net/ne.c | for(i = 0; i < ETHER_ADDR_LEN; i++) { |
i | 196 | drivers/net/ne.c | dev->dev_addr[i] = SA_prom[i]; |
i | 197 | drivers/net/ne.c | printk(" %2.2x", SA_prom[i]); |
i | 213 | drivers/net/ne.c | for (i = 0; bad_clone_list[i].name8; i++) { |
i | 214 | drivers/net/ne.c | if (SA_prom[0] == bad_clone_list[i].SAprefix[0] && |
i | 215 | drivers/net/ne.c | SA_prom[1] == bad_clone_list[i].SAprefix[1] && |
i | 216 | drivers/net/ne.c | SA_prom[2] == bad_clone_list[i].SAprefix[2]) { |
i | 218 | drivers/net/ne.c | name = bad_clone_list[i].name16; |
i | 220 | drivers/net/ne.c | name = bad_clone_list[i].name8; |
i | 225 | drivers/net/ne.c | if (bad_clone_list[i].name8 == NULL) { |
i | 265 | drivers/net/ne.c | for(i = 0; i < ETHER_ADDR_LEN; i++) |
i | 266 | drivers/net/ne.c | dev->dev_addr[i] = SA_prom[i]; |
i | 88 | drivers/net/net_init.c | int i; |
i | 110 | drivers/net/net_init.c | for (i = 0; i < MAX_ETH_CARDS; ++i) |
i | 111 | drivers/net/net_init.c | if (ethdev_index[i] == NULL) { |
i | 112 | drivers/net/net_init.c | sprintf(dev->name, "eth%d", i); |
i | 113 | drivers/net/net_init.c | ethdev_index[i] = dev; |
i | 133 | drivers/net/net_init.c | int i; |
i | 136 | drivers/net/net_init.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 137 | drivers/net/net_init.c | skb_queue_head_init(&dev->buffs[i]); |
i | 141 | drivers/net/net_init.c | i = simple_strtoul(dev->name + 3, NULL, 0); |
i | 142 | drivers/net/net_init.c | if (ethdev_index[i] == NULL) { |
i | 143 | drivers/net/net_init.c | ethdev_index[i] = dev; |
i | 145 | drivers/net/net_init.c | else if (dev != ethdev_index[i]) { |
i | 160 | drivers/net/net_init.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 161 | drivers/net/net_init.c | dev->broadcast[i]=0xff; |
i | 194 | drivers/net/net_init.c | int i=MAX_ETH_CARDS; |
i | 202 | drivers/net/net_init.c | for (i = 0; i < MAX_ETH_CARDS; ++i) |
i | 203 | drivers/net/net_init.c | if (ethdev_index[i] == NULL) { |
i | 204 | drivers/net/net_init.c | sprintf(dev->name, "eth%d", i); |
i | 206 | drivers/net/net_init.c | ethdev_index[i] = dev; |
i | 212 | drivers/net/net_init.c | if (i < MAX_ETH_CARDS) ethdev_index[i] = NULL; |
i | 235 | drivers/net/net_init.c | int i; |
i | 267 | drivers/net/net_init.c | for (i = 0; i < MAX_ETH_CARDS; ++i) { |
i | 268 | drivers/net/net_init.c | if (ethdev_index[i] == dev) { |
i | 269 | drivers/net/net_init.c | ethdev_index[i] = NULL; |
i | 172 | drivers/net/ni52.c | #define DELAY(x) {int i=jiffies; \ |
i | 174 | drivers/net/ni52.c | while(i+(x)>jiffies); \ |
i | 283 | drivers/net/ni52.c | int i; |
i | 294 | drivers/net/ni52.c | for(i=0;i<2;i++) |
i | 296 | drivers/net/ni52.c | p->iscp = (struct iscp_struct *) iscp_addrs[i]; |
i | 381 | drivers/net/ni52.c | int i,size; |
i | 383 | drivers/net/ni52.c | for(i=0;i<ETH_ALEN;i++) |
i | 384 | drivers/net/ni52.c | dev->dev_addr[i] = inb(dev->base_addr+i); |
i | 414 | drivers/net/ni52.c | for(i=0;;i++) |
i | 416 | drivers/net/ni52.c | if(!memaddrs[i]) { |
i | 420 | drivers/net/ni52.c | dev->mem_start = memaddrs[i]; |
i | 477 | drivers/net/ni52.c | int i,result=0; |
i | 589 | drivers/net/ni52.c | for(i=0;i<2;i++) |
i | 591 | drivers/net/ni52.c | p->nop_cmds[i] = (struct nop_cmd_struct *)ptr; |
i | 592 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_cmd = 0; |
i | 593 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_status = 0; |
i | 594 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_link = make16((p->nop_cmds[i])); |
i | 600 | drivers/net/ni52.c | for(i=0;i<NUM_XMIT_BUFFS;i++) |
i | 602 | drivers/net/ni52.c | p->nop_cmds[i] = (struct nop_cmd_struct *)ptr; |
i | 603 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_cmd = 0; |
i | 604 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_status = 0; |
i | 605 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_link = make16((p->nop_cmds[i])); |
i | 607 | drivers/net/ni52.c | p->xmit_cmds[i] = (struct transmit_cmd_struct *)ptr; /* transmit cmd/buff 0 */ |
i | 617 | drivers/net/ni52.c | for(i=0;i<NUM_XMIT_BUFFS;i++) |
i | 619 | drivers/net/ni52.c | p->xmit_cbuffs[i] = (char *)ptr; /* char-buffs */ |
i | 621 | drivers/net/ni52.c | p->xmit_buffs[i] = (struct tbd_struct *)ptr; /* TBD */ |
i | 628 | drivers/net/ni52.c | memset((char *)(p->xmit_cmds[i]) ,0, sizeof(struct transmit_cmd_struct)); |
i | 629 | drivers/net/ni52.c | memset((char *)(p->xmit_buffs[i]),0, sizeof(struct tbd_struct)); |
i | 630 | drivers/net/ni52.c | p->xmit_cmds[i]->cmd_status = STAT_COMPL; |
i | 631 | drivers/net/ni52.c | p->xmit_cmds[i]->tbd_offset = make16((p->xmit_buffs[i])); |
i | 632 | drivers/net/ni52.c | p->xmit_buffs[i]->next = 0xffff; |
i | 633 | drivers/net/ni52.c | p->xmit_buffs[i]->buffer = make24((p->xmit_cbuffs[i])); |
i | 671 | drivers/net/ni52.c | int i; |
i | 677 | drivers/net/ni52.c | for(i = 0; i < NUM_RECV_FRAMES; i++) |
i | 678 | drivers/net/ni52.c | rfd[i].next = make16(rfd + (i+1) % NUM_RECV_FRAMES); |
i | 690 | drivers/net/ni52.c | for(i=0;i<NUM_RECV_BUFFS;i++) |
i | 692 | drivers/net/ni52.c | rbd[i].next = make16((rbd + (i+1) % NUM_RECV_BUFFS)); |
i | 693 | drivers/net/ni52.c | rbd[i].size = RECV_BUFF_SIZE; |
i | 694 | drivers/net/ni52.c | rbd[i].buffer = make24(ptr); |
i | 776 | drivers/net/ni52.c | int i; /* wait for ack. (ni52_xmt_int can be faster than ack!!) */ |
i | 777 | drivers/net/ni52.c | for(i=0;i<200;i++); |
i | 209 | drivers/net/ni65.c | int i; |
i | 213 | drivers/net/ni65.c | for(i=0;i<6;i++) |
i | 214 | drivers/net/ni65.c | station_addr[i] = dev->dev_addr[i] = inb(PORT+L_EBASE+i); |
i | 276 | drivers/net/ni65.c | for(i=0;i<TMDNUM;i++) |
i | 278 | drivers/net/ni65.c | if( (p->tmdbufs[i] = kmalloc(T_BUF_SIZE,GFP_ATOMIC)) == NULL) { |
i | 282 | drivers/net/ni65.c | if( (unsigned long) (p->tmdbufs[i]+T_BUF_SIZE) & 0xff000000) { |
i | 289 | drivers/net/ni65.c | for(i=0;i<RMDNUM;i++) |
i | 291 | drivers/net/ni65.c | if( (p->recv_skb[i] = (struct sk_buff *) alloc_skb(R_BUF_SIZE,GFP_ATOMIC)) == NULL) { |
i | 295 | drivers/net/ni65.c | if( (unsigned long) (p->recv_skb[i]->data + R_BUF_SIZE) & 0xff000000) { |
i | 310 | drivers/net/ni65.c | int i,j; |
i | 337 | drivers/net/ni65.c | for(i=0;i<TMDNUM;i++) |
i | 339 | drivers/net/ni65.c | tmdp = p->tmdhead + i; |
i | 341 | drivers/net/ni65.c | tmdp->u.buffer = (unsigned long) p->tmdbufs[i]; |
i | 347 | drivers/net/ni65.c | for(i=0;i<RMDNUM;i++) |
i | 349 | drivers/net/ni65.c | rmdp = p->rmdhead + i; |
i | 350 | drivers/net/ni65.c | rmdp->u.buffer = (unsigned long) p->recv_skb[i]->data; |
i | 356 | drivers/net/ni65.c | for(i=0;i<6;i++) |
i | 358 | drivers/net/ni65.c | p->ib.eaddr[i] = dev->dev_addr[i]; |
i | 361 | drivers/net/ni65.c | for(i=0;i<8;i++) |
i | 362 | drivers/net/ni65.c | p->ib.filter[i] = 0; |
i | 378 | drivers/net/ni65.c | for(i=0;i<5;i++) |
i | 383 | drivers/net/ni65.c | if(i == 5) |
i | 469 | drivers/net/plip.c | int i; |
i | 484 | drivers/net/plip.c | for (i=0; i < ETH_ALEN - sizeof(unsigned long); i++) |
i | 485 | drivers/net/plip.c | dev->dev_addr[i] = 0xfc; |
i | 486 | drivers/net/plip.c | memcpy(&(dev->dev_addr[i]), &dev->pa_addr, sizeof(unsigned long)); |
i | 527 | drivers/net/plip.c | int i; |
i | 535 | drivers/net/plip.c | for (i=0; i < ETH_ALEN - sizeof(unsigned long); i++) |
i | 536 | drivers/net/plip.c | eth->h_dest[i] = 0xfc; |
i | 537 | drivers/net/plip.c | memcpy(&(eth->h_dest[i]), &dst, sizeof(unsigned long)); |
i | 210 | drivers/net/ppp.c | int i; |
i | 250 | drivers/net/ppp.c | if ((i = tty_register_ldisc(N_PPP, &ppp_ldisc)) == 0) |
i | 253 | drivers/net/ppp.c | printk(KERN_ERR "error registering line discipline: %d\n", i); |
i | 286 | drivers/net/ppp.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 287 | drivers/net/ppp.c | skb_queue_head_init(&dev->buffs[i]); /* = NULL if NET02D */ |
i | 787 | drivers/net/ppp.c | i, count; |
i | 793 | drivers/net/ppp.c | i = tail; |
i | 796 | drivers/net/ppp.c | while (i != head) { |
i | 797 | drivers/net/ppp.c | buffer [count] = tty->read_q.buf[i]; |
i | 802 | drivers/net/ppp.c | i = (i + 1) & (TTY_BUF_SIZE - 1); |
i | 858 | drivers/net/ppp.c | int i; |
i | 860 | drivers/net/ppp.c | for (i = 0; i < n; i++, c++) { |
i | 1218 | drivers/net/ppp.c | int len, i; |
i | 1268 | drivers/net/ppp.c | i = len; |
i | 1269 | drivers/net/ppp.c | while (i-- > 0) { |
i | 1318 | drivers/net/ppp.c | int i; |
i | 1364 | drivers/net/ppp.c | i = nr; |
i | 1365 | drivers/net/ppp.c | while (i-- > 0) |
i | 1390 | drivers/net/ppp.c | ppp_ioctl(struct tty_struct *tty, struct file *file, unsigned int i, |
i | 1408 | drivers/net/ppp.c | switch (i) { |
i | 1590 | drivers/net/ppp.c | error = n_tty_ioctl(tty, file, i, l); |
i | 1600 | drivers/net/ppp.c | i, |
i | 1892 | drivers/net/ppp.c | int i; |
i | 1893 | drivers/net/ppp.c | for (i = 0; i < PPP_NRUNIT; i++) |
i | 1894 | drivers/net/ppp.c | if (ppp_ctrl[i].inuse && (ppp_ctrl[i].tty == tty)) return &ppp_ctrl[i]; |
i | 1904 | drivers/net/ppp.c | int i; |
i | 1905 | drivers/net/ppp.c | for (i = 0; i < PPP_NRUNIT; i++) |
i | 1906 | drivers/net/ppp.c | if (!set_bit(0, &ppp_ctrl[i].inuse)) return &ppp_ctrl[i]; |
i | 1962 | drivers/net/ppp.c | int i; |
i | 1964 | drivers/net/ppp.c | for (i = 0; i < ppp->rcount - 2; i++, c++) |
i | 639 | drivers/net/sk_g16.c | int i,j; /* Counters */ |
i | 759 | drivers/net/sk_g16.c | for (i = 0, j = 0; i < ETH_ALEN; i++, j+=2) |
i | 761 | drivers/net/sk_g16.c | dev->dev_addr[i] = board->rom[j]; |
i | 818 | drivers/net/sk_g16.c | for (i = 0; i < TMDNUM; i++) |
i | 820 | drivers/net/sk_g16.c | p->tmdbufs[i] = &(p->ram)->tmdbuf[i]; |
i | 823 | drivers/net/sk_g16.c | for (i = 0; i < RMDNUM; i++) |
i | 825 | drivers/net/sk_g16.c | p->rmdbufs[i] = &(p->ram)->rmdbuf[i]; |
i | 865 | drivers/net/sk_g16.c | int i = 0; |
i | 878 | drivers/net/sk_g16.c | i = 0; |
i | 891 | drivers/net/sk_g16.c | irqval = request_irq(irqtab[i], &SK_interrupt, 0, "sk_g16"); |
i | 892 | drivers/net/sk_g16.c | i++; |
i | 893 | drivers/net/sk_g16.c | } while (irqval && irqtab[i]); |
i | 901 | drivers/net/sk_g16.c | dev->irq = irqtab[--i]; |
i | 903 | drivers/net/sk_g16.c | outb(i<<2, SK_POS4); /* Set Card on probed IRQ */ |
i | 925 | drivers/net/sk_g16.c | int i = 0; |
i | 937 | drivers/net/sk_g16.c | case 3: i = 0; |
i | 939 | drivers/net/sk_g16.c | case 5: i = 1; |
i | 941 | drivers/net/sk_g16.c | case 2: i = 2; |
i | 943 | drivers/net/sk_g16.c | case 11:i = 3; |
i | 953 | drivers/net/sk_g16.c | outb(i<<2, SK_POS4); /* Set IRQ on card */ |
i | 962 | drivers/net/sk_g16.c | if (!(i = SK_lance_init(dev, 0))) /* LANCE init OK? */ |
i | 1030 | drivers/net/sk_g16.c | int i; |
i | 1045 | drivers/net/sk_g16.c | for (i = 0; i < TMDNUM; i++) /* Init all TMD's */ |
i | 1047 | drivers/net/sk_g16.c | tmdp = p->tmdhead + i; |
i | 1049 | drivers/net/sk_g16.c | tmdp->u.buffer = (unsigned long) p->tmdbufs[i]; /* assign buffer */ |
i | 1060 | drivers/net/sk_g16.c | for (i = 0; i < RMDNUM; i++) /* Init all RMD's */ |
i | 1062 | drivers/net/sk_g16.c | rmdp = p->rmdhead + i; |
i | 1065 | drivers/net/sk_g16.c | rmdp->u.buffer = (unsigned long) p->rmdbufs[i]; /* assign buffer */ |
i | 1084 | drivers/net/sk_g16.c | for (i = 0; i < ETH_ALEN; i++) /* Set physical address */ |
i | 1086 | drivers/net/sk_g16.c | (p->ram)->ib.paddr[i] = dev->dev_addr[i]; |
i | 1089 | drivers/net/sk_g16.c | for (i = 0; i < 8; i++) /* Set multicast, logical address */ |
i | 1091 | drivers/net/sk_g16.c | (p->ram)->ib.laddr[i] = 0; /* We do not use logical addressing */ |
i | 1142 | drivers/net/sk_g16.c | for (i = 0; (i < 100) && !(SK_rread_reg() & CSR0_IDON); i++) |
i | 1145 | drivers/net/sk_g16.c | if (i >= 100) /* Something is wrong ! */ |
i | 1160 | drivers/net/sk_g16.c | PRINTK(("## %s: init done after %d ticks\n", SK_NAME, i)); |
i | 1783 | drivers/net/sk_g16.c | int i,j; |
i | 1792 | drivers/net/sk_g16.c | for (i = 0; (rom_location[i] != 0) && (rom_found == 0); i++) |
i | 1795 | drivers/net/sk_g16.c | PRINTK(("## Trying ROM location %#08x", rom_location[i])); |
i | 1800 | drivers/net/sk_g16.c | test_byte = (unsigned char *) (rom_location[i]+j); |
i | 1814 | drivers/net/sk_g16.c | SK_NAME, rom_location[(i-1)])); |
i | 1816 | drivers/net/sk_g16.c | return (rom_location[--i]); |
i | 1854 | drivers/net/sk_g16.c | int i; |
i | 1857 | drivers/net/sk_g16.c | for (i = 0; i < 10 ; i++) /* Delay min 5ms */ |
i | 2085 | drivers/net/sk_g16.c | int i; |
i | 2098 | drivers/net/sk_g16.c | for(i = 0; i < TMDNUM; i++) |
i | 2100 | drivers/net/sk_g16.c | if (!(i % 3)) /* Every third line do a newline */ |
i | 2104 | drivers/net/sk_g16.c | printk("tmdbufs%d: %#08x ", (i+1), (int) p->tmdbufs[i]); |
i | 2108 | drivers/net/sk_g16.c | for(i = 0; i < RMDNUM; i++) |
i | 2110 | drivers/net/sk_g16.c | if (!(i % 3)) /* Every third line do a newline */ |
i | 2114 | drivers/net/sk_g16.c | printk("rmdbufs%d: %#08x ", (i+1), (int) p->rmdbufs[i]); |
i | 127 | drivers/net/skeleton.c | int i; |
i | 135 | drivers/net/skeleton.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 136 | drivers/net/skeleton.c | int ioaddr = netcard_portlist[i]; |
i | 154 | drivers/net/skeleton.c | int i; |
i | 178 | drivers/net/skeleton.c | for (i = 0; i < 6; i++) |
i | 179 | drivers/net/skeleton.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 233 | drivers/net/skeleton.c | for (i = 7; i > 0; i--) |
i | 235 | drivers/net/skeleton.c | dev->dma = i; |
i | 238 | drivers/net/skeleton.c | if (i <= 0) { |
i | 97 | drivers/net/slhc.c | register short i; |
i | 148 | drivers/net/slhc.c | for(i = comp->tslot_limit; i > 0; --i){ |
i | 149 | drivers/net/slhc.c | ts[i].cs_this = i; |
i | 150 | drivers/net/slhc.c | ts[i].next = &(ts[i - 1]); |
i | 549 | drivers/net/slhc.c | register short i; |
i | 550 | drivers/net/slhc.c | i = ntohs(ip->tot_len) - hdrlen; |
i | 551 | drivers/net/slhc.c | thp->ack_seq = htonl( ntohl(thp->ack_seq) + i); |
i | 552 | drivers/net/slhc.c | thp->seq = htonl( ntohl(thp->seq) + i); |
i | 119 | drivers/net/slip.c | int i; |
i | 121 | drivers/net/slip.c | for (i = 0; i < SL_NRUNIT; i++) { |
i | 122 | drivers/net/slip.c | sl = &sl_ctrl[i]; |
i | 859 | drivers/net/slip.c | int i; |
i | 875 | drivers/net/slip.c | for (i = 0; i < len; ++i) { |
i | 876 | drivers/net/slip.c | v = (v << 8) | s[i]; |
i | 1041 | drivers/net/slip.c | int i; |
i | 1078 | drivers/net/slip.c | if ((i = tty_register_ldisc(N_SLIP, &sl_ldisc)) != 0) { |
i | 1079 | drivers/net/slip.c | printk("SLIP: can't register line discipline (err = %d)\n", i); |
i | 1108 | drivers/net/slip.c | for (i = 0; i < DEV_NUMBUFFS; i++) { |
i | 1109 | drivers/net/slip.c | skb_queue_head_init(&dev->buffs[i]); |
i | 1155 | drivers/net/slip.c | int i; |
i | 1157 | drivers/net/slip.c | for (i = 0; i < SL_NRUNIT; i++) { |
i | 1158 | drivers/net/slip.c | if ((err = register_netdev(&dev_slip[i]))) { |
i | 1171 | drivers/net/slip.c | int i; |
i | 1177 | drivers/net/slip.c | for (i = 0; i < SL_NRUNIT; i++) { |
i | 1178 | drivers/net/slip.c | unregister_netdev(&dev_slip[i]); |
i | 1180 | drivers/net/slip.c | if ((i = tty_register_ldisc(N_SLIP, NULL))) { |
i | 1181 | drivers/net/slip.c | printk("SLIP: can't unregister line discipline (err = %d)\n", i); |
i | 70 | drivers/net/smc-ultra.c | int i; |
i | 78 | drivers/net/smc-ultra.c | for (i = 0; ultra_portlist[i]; i++) { |
i | 79 | drivers/net/smc-ultra.c | int ioaddr = ultra_portlist[i]; |
i | 92 | drivers/net/smc-ultra.c | int i; |
i | 106 | drivers/net/smc-ultra.c | for (i = 0; i < 8; i++) |
i | 107 | drivers/net/smc-ultra.c | checksum += inb(ioaddr + 8 + i); |
i | 116 | drivers/net/smc-ultra.c | for (i = 0; i < 6; i++) |
i | 117 | drivers/net/smc-ultra.c | printk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i)); |
i | 81 | drivers/net/wd.c | int i; |
i | 89 | drivers/net/wd.c | for (i = 0; wd_portlist[i]; i++) { |
i | 90 | drivers/net/wd.c | int ioaddr = wd_portlist[i]; |
i | 103 | drivers/net/wd.c | int i; |
i | 109 | drivers/net/wd.c | for (i = 0; i < 8; i++) |
i | 110 | drivers/net/wd.c | checksum += inb(ioaddr + 8 + i); |
i | 120 | drivers/net/wd.c | for (i = 0; i < 6; i++) |
i | 121 | drivers/net/wd.c | printk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i)); |
i | 147 | drivers/net/wd.c | for (i = 0; i < 6; i++) |
i | 148 | drivers/net/wd.c | if (inb(ioaddr+i) != inb(ioaddr+8+i)) |
i | 150 | drivers/net/wd.c | if (i >= 6) { |
i | 205 | drivers/net/znet.c | int i; |
i | 226 | drivers/net/znet.c | for (i = 0; i < 6; i++) |
i | 227 | drivers/net/znet.c | printk(" %2.2x", dev->dev_addr[i] = netinfo->netid[i]); |
i | 408 | drivers/scsi/53c7,8xx.c | int i, j, ccf; |
i | 528 | drivers/scsi/53c7,8xx.c | case DMODE_BL_2: i = 2; break; |
i | 529 | drivers/scsi/53c7,8xx.c | case DMODE_BL_4: i = 4; break; |
i | 530 | drivers/scsi/53c7,8xx.c | case DMODE_BL_8: i = 8; break; |
i | 531 | drivers/scsi/53c7,8xx.c | case DMODE_BL_16: i = 16; break; |
i | 533 | drivers/scsi/53c7,8xx.c | printk ("scsi%d ; burst length %d\n", host->host_no, i); |
i | 576 | drivers/scsi/53c7,8xx.c | for (i = 0; i < 8; ++i) { |
i | 578 | drivers/scsi/53c7,8xx.c | hostdata->busy[i][j] = 0; |
i | 585 | drivers/scsi/53c7,8xx.c | hostdata->sync[i].select_indirect |= (i << 16); |
i | 587 | drivers/scsi/53c7,8xx.c | hostdata->sync[i].script[0] = (DCMD_TYPE_TCI|DCMD_TCI_OP_RETURN) << 24 | |
i | 596 | drivers/scsi/53c7,8xx.c | hostdata->sync[i].select_indirect |= (hostdata->saved_scntl3) << 24; |
i | 801 | drivers/scsi/53c7,8xx.c | int i; |
i | 876 | drivers/scsi/53c7,8xx.c | for (i = 0; i < NPCI_CHIP_IDS; ++i) { |
i | 877 | drivers/scsi/53c7,8xx.c | if (device_id == pci_chip_ids[i].pci_device_id) { |
i | 878 | drivers/scsi/53c7,8xx.c | max_revision = pci_chip_ids[i].max_revision; |
i | 879 | drivers/scsi/53c7,8xx.c | min_revision = pci_chip_ids[i].min_revision; |
i | 880 | drivers/scsi/53c7,8xx.c | expected_chip = pci_chip_ids[i].chip; |
i | 882 | drivers/scsi/53c7,8xx.c | if (chip == pci_chip_ids[i].chip) |
i | 883 | drivers/scsi/53c7,8xx.c | expected_id = pci_chip_ids[i].pci_device_id; |
i | 918 | drivers/scsi/53c7,8xx.c | int i; |
i | 948 | drivers/scsi/53c7,8xx.c | for (i = 0; i < NPCI_CHIP_IDS; ++i) |
i | 951 | drivers/scsi/53c7,8xx.c | pci_chip_ids[i].pci_device_id, pci_index, &pci_bus, |
i | 953 | drivers/scsi/53c7,8xx.c | !pci_init (tpnt, BOARD_GENERIC, pci_chip_ids[i].chip, |
i | 979 | drivers/scsi/53c7,8xx.c | int i, ncr_to_memory, memory_to_ncr, ncr_to_ncr; |
i | 990 | drivers/scsi/53c7,8xx.c | for (i = 0; i < PATCHES; ++i) |
i | 991 | drivers/scsi/53c7,8xx.c | hostdata->script[LABELPATCHES[i]] += |
i | 1130 | drivers/scsi/53c7,8xx.c | int old_level, failed, i; |
i | 1237 | drivers/scsi/53c7,8xx.c | for (i = 0; i < 3; ++i) { |
i | 1246 | drivers/scsi/53c7,8xx.c | dsa[0] = (0x33 << 24) | (i << 16) ; |
i | 1263 | drivers/scsi/53c7,8xx.c | host->host_no, i, data + 8); |
i | 1271 | drivers/scsi/53c7,8xx.c | host->host_no, i); |
i | 1285 | drivers/scsi/53c7,8xx.c | host->host_no, i); |
i | 1311 | drivers/scsi/53c7,8xx.c | int i; |
i | 1351 | drivers/scsi/53c7,8xx.c | int i; |
i | 1354 | drivers/scsi/53c7,8xx.c | for (i = 0; i < 2; ++i) { |
i | 1355 | drivers/scsi/53c7,8xx.c | for (search = (char *) (i ? hostdata->issue_dsa_head : |
i | 1356 | drivers/scsi/53c7,8xx.c | hostdata->reconnect_dsa_head), prev = (char **) (i ? |
i | 1530 | drivers/scsi/53c7,8xx.c | int desire, divisor, i, limit; |
i | 1545 | drivers/scsi/53c7,8xx.c | for (i = 0; (i < limit) && (divisor < syncs[i + 1].div); ++i); |
i | 1548 | drivers/scsi/53c7,8xx.c | syncs[i].div / 10, syncs[i].div % 10); |
i | 1553 | drivers/scsi/53c7,8xx.c | ~SCNTL3_800_SCF_MASK) | (syncs[i].scf << SCNTL3_800_SCF_SHIFT)) : 0; |
i | 1554 | drivers/scsi/53c7,8xx.c | sxfer = (msg[4] << SXFER_MO_SHIFT) | ((syncs[i].tp) << SXFER_TP_SHIFT); |
i | 2039 | drivers/scsi/53c7,8xx.c | {DT_help, "?", 0} , TOKEN(h,0), TOKEN(i,0), TOKEN(mp,2), |
i | 2062 | drivers/scsi/53c7,8xx.c | int i, j, error, len; |
i | 2082 | drivers/scsi/53c7,8xx.c | for (i = 0; i < NDT; ++i) { |
i | 2083 | drivers/scsi/53c7,8xx.c | len = strlen (debugger_tokens[i].name); |
i | 2084 | drivers/scsi/53c7,8xx.c | if (!strncmp(input_buf, debugger_tokens[i].name, len)) |
i | 2088 | drivers/scsi/53c7,8xx.c | if (i == NDT) |
i | 2091 | drivers/scsi/53c7,8xx.c | for (ptr = input_buf + len, j = 0; j < debugger_tokens[i].nargs && *ptr;) { |
i | 2101 | drivers/scsi/53c7,8xx.c | if (j != debugger_tokens[i].nargs) |
i | 2250 | drivers/scsi/53c7,8xx.c | i, /* Counter */ |
i | 2485 | drivers/scsi/53c7,8xx.c | for (i = 0; cmd->use_sg ? (i < cmd->use_sg) : !i; cmd_datain += 4, |
i | 2486 | drivers/scsi/53c7,8xx.c | cmd_dataout += 4, ++i) { |
i | 2488 | drivers/scsi/53c7,8xx.c | ((struct scatterlist *)cmd->buffer)[i].address : |
i | 2491 | drivers/scsi/53c7,8xx.c | ((struct scatterlist *)cmd->buffer)[i].length : |
i | 3757 | drivers/scsi/53c7,8xx.c | int i, len; |
i | 3766 | drivers/scsi/53c7,8xx.c | for (i = dsa[hostdata->dsa_msgout / sizeof(long)], |
i | 3767 | drivers/scsi/53c7,8xx.c | ptr = (char *) dsa[hostdata->dsa_msgout / sizeof(long) + 1]; i > 0; |
i | 3768 | drivers/scsi/53c7,8xx.c | ptr += len, i -= len) { |
i | 1297 | drivers/scsi/53c7,8xx.h | for (i = 0; i < (sizeof (A_##symbol##_used) / sizeof \ |
i | 1298 | drivers/scsi/53c7,8xx.h | (unsigned long)); ++i) { \ |
i | 1299 | drivers/scsi/53c7,8xx.h | (script)[A_##symbol##_used[i] - (offset)] += (value); \ |
i | 1302 | drivers/scsi/53c7,8xx.h | host->host_no, #symbol, i, A_##symbol##_used[i] - \ |
i | 1303 | drivers/scsi/53c7,8xx.h | (offset), #script, (script)[A_##symbol##_used[i] - \ |
i | 1308 | drivers/scsi/53c7,8xx.h | for (i = 0; i < (sizeof (A_##symbol##_used) / sizeof \ |
i | 1309 | drivers/scsi/53c7,8xx.h | (unsigned long)); ++i) \ |
i | 1310 | drivers/scsi/53c7,8xx.h | (script)[A_##symbol##_used[i] - (offset)] = \ |
i | 1311 | drivers/scsi/53c7,8xx.h | ((script)[A_##symbol##_used[i] - (offset)] & \ |
i | 348 | drivers/scsi/NCR5380.c | unsigned char status, data, basr, mr, icr, i; |
i | 357 | drivers/scsi/NCR5380.c | for (i = 0; signals[i].mask ; ++i) |
i | 358 | drivers/scsi/NCR5380.c | if (status & signals[i].mask) |
i | 359 | drivers/scsi/NCR5380.c | printk(" %s", signals[i].name); |
i | 360 | drivers/scsi/NCR5380.c | for (i = 0; basrs[i].mask ; ++i) |
i | 361 | drivers/scsi/NCR5380.c | if (basr & basrs[i].mask) |
i | 362 | drivers/scsi/NCR5380.c | printk(" %s", basrs[i].name); |
i | 363 | drivers/scsi/NCR5380.c | for (i = 0; icrs[i].mask; ++i) |
i | 364 | drivers/scsi/NCR5380.c | if (icr & icrs[i].mask) |
i | 365 | drivers/scsi/NCR5380.c | printk(" %s", icrs[i].name); |
i | 366 | drivers/scsi/NCR5380.c | for (i = 0; mrs[i].mask; ++i) |
i | 367 | drivers/scsi/NCR5380.c | if (mr & mrs[i].mask) |
i | 368 | drivers/scsi/NCR5380.c | printk(" %s", mrs[i].name); |
i | 391 | drivers/scsi/NCR5380.c | int i; |
i | 399 | drivers/scsi/NCR5380.c | for (i = 0; (phases[i].value != PHASE_UNKNOWN) && |
i | 400 | drivers/scsi/NCR5380.c | (phases[i].value != (status & PHASE_MASK)); ++i); |
i | 401 | drivers/scsi/NCR5380.c | printk("scsi%d : phase %s\n", instance->host_no, phases[i].name); |
i | 612 | drivers/scsi/NCR5380.c | int trying_irqs, i, mask; |
i | 615 | drivers/scsi/NCR5380.c | for (trying_irqs = i = 0, mask = 1; i < 16; ++i, mask <<= 1) |
i | 616 | drivers/scsi/NCR5380.c | if ((mask & possible) && (request_irq(i, &probe_intr, SA_INTERRUPT, "NCR-probe") |
i | 644 | drivers/scsi/NCR5380.c | for (i = 0, mask = 1; i < 16; ++i, mask <<= 1) |
i | 646 | drivers/scsi/NCR5380.c | free_irq(i); |
i | 764 | drivers/scsi/NCR5380.c | int i; |
i | 782 | drivers/scsi/NCR5380.c | for (i = hostdata->id_mask; i <= 0x80; i <<= 1) |
i | 783 | drivers/scsi/NCR5380.c | if (i > hostdata->id_mask) |
i | 784 | drivers/scsi/NCR5380.c | hostdata->id_higher_mask |= i; |
i | 785 | drivers/scsi/NCR5380.c | for (i = 0; i < 8; ++i) |
i | 786 | drivers/scsi/NCR5380.c | hostdata->busy[i] = 0; |
i | 522 | drivers/scsi/aha152x.c | int i; |
i | 528 | drivers/scsi/aha152x.c | for(i=0; i<16; i++) |
i | 529 | drivers/scsi/aha152x.c | SETPORT( STACK, i ); |
i | 532 | drivers/scsi/aha152x.c | for(i=0; i<16 && GETPORT(STACK)==i; i++) |
i | 535 | drivers/scsi/aha152x.c | return(i==16); |
i | 540 | drivers/scsi/aha152x.c | int i, j, ok; |
i | 572 | drivers/scsi/aha152x.c | for( i=0; i<PORT_COUNT && (port_base != ports[i]); i++) |
i | 575 | drivers/scsi/aha152x.c | if(i==PORT_COUNT) |
i | 587 | drivers/scsi/aha152x.c | i=0; |
i | 588 | drivers/scsi/aha152x.c | while(ints[i] && (interrupt_level!=ints[i])) |
i | 589 | drivers/scsi/aha152x.c | i++; |
i | 590 | drivers/scsi/aha152x.c | if(!ints[i]) |
i | 619 | drivers/scsi/aha152x.c | for( i=0; i < ADDRESS_COUNT && !ok; i++) |
i | 621 | drivers/scsi/aha152x.c | ok=!memcmp((void *) addresses[i]+signatures[j].sig_offset, |
i | 635 | drivers/scsi/aha152x.c | for( i=0; i<PORT_COUNT && !aha152x_porttest(ports[i]); i++) |
i | 638 | drivers/scsi/aha152x.c | if(i==PORT_COUNT) |
i | 644 | drivers/scsi/aha152x.c | port_base=ports[i]; |
i | 1195 | drivers/scsi/aha152x.c | int identify_msg, target, i; |
i | 1221 | drivers/scsi/aha152x.c | i = GETPORT(SELID) & ~(1 << this_host); |
i | 1223 | drivers/scsi/aha152x.c | if(i) |
i | 1224 | drivers/scsi/aha152x.c | for( ; (i & 1)==0; target++, i>>=1) |
i | 1242 | drivers/scsi/aha152x.c | if((i=getphase())!=P_MSGI) |
i | 1244 | drivers/scsi/aha152x.c | printk("target doesn't enter MSGI to identify (phase=%02x)\n", i); |
i | 1673 | drivers/scsi/aha152x.c | int i, code; |
i | 1683 | drivers/scsi/aha152x.c | i=GETPORT(SCSIBUS); |
i | 1687 | drivers/scsi/aha152x.c | printk("length (%d), code ( ", i); |
i | 1740 | drivers/scsi/aha152x.c | while( --i && (make_acklow(), getphase()==P_MSGI)) |
i | 1913 | drivers/scsi/aha152x.c | int i; |
i | 1919 | drivers/scsi/aha152x.c | for( i=0; i<2*data_count; i++) |
i | 271 | drivers/scsi/aha1542.c | int i; |
i | 290 | drivers/scsi/aha1542.c | i = jiffies + 2; |
i | 291 | drivers/scsi/aha1542.c | while (i>jiffies); /* Wait a little bit for things to settle down. */ |
i | 470 | drivers/scsi/aha1542.c | int i; |
i | 474 | drivers/scsi/aha1542.c | for (i = 0; i < 12; i++) |
i | 475 | drivers/scsi/aha1542.c | printk("%02x ", ccb[mbo].cdb[ccb[mbo].cdblen+i]); |
i | 507 | drivers/scsi/aha1542.c | DEB(int i); |
i | 529 | drivers/scsi/aha1542.c | i = xscsi2int(cmd+2); |
i | 531 | drivers/scsi/aha1542.c | i = scsi2int(cmd+2); |
i | 533 | drivers/scsi/aha1542.c | i = -1; |
i | 535 | drivers/scsi/aha1542.c | printk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 537 | drivers/scsi/aha1542.c | printk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 540 | drivers/scsi/aha1542.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
i | 592 | drivers/scsi/aha1542.c | int i; |
i | 598 | drivers/scsi/aha1542.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 599 | drivers/scsi/aha1542.c | if(sgpnt[i].length == 0 || SCpnt->use_sg > 16 || |
i | 600 | drivers/scsi/aha1542.c | (((int)sgpnt[i].address) & 1) || (sgpnt[i].length & 1)){ |
i | 602 | drivers/scsi/aha1542.c | printk("Bad segment list supplied to aha1542.c (%d, %d)\n",SCpnt->use_sg,i); |
i | 603 | drivers/scsi/aha1542.c | for(i=0;i<SCpnt->use_sg;i++){ |
i | 604 | drivers/scsi/aha1542.c | printk("%d: %x %x %d\n",i,(unsigned int) sgpnt[i].address, (unsigned int) sgpnt[i].alt_address, |
i | 605 | drivers/scsi/aha1542.c | sgpnt[i].length); |
i | 608 | drivers/scsi/aha1542.c | ptr = (unsigned char *) &cptr[i]; |
i | 609 | drivers/scsi/aha1542.c | for(i=0;i<18;i++) printk("%02x ", ptr[i]); |
i | 612 | drivers/scsi/aha1542.c | any2scsi(cptr[i].dataptr, sgpnt[i].address); |
i | 613 | drivers/scsi/aha1542.c | if(((unsigned int) sgpnt[i].address) & 0xff000000) goto baddma; |
i | 614 | drivers/scsi/aha1542.c | any2scsi(cptr[i].datalen, sgpnt[i].length); |
i | 621 | drivers/scsi/aha1542.c | for(i=0;i<18;i++) printk("%02x ", ptr[i]); |
i | 636 | drivers/scsi/aha1542.c | { int i; |
i | 638 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(ccb[mbo])-10; i++) |
i | 639 | drivers/scsi/aha1542.c | printk("%02x ", ((unchar *)&ccb[mbo])[i]); |
i | 677 | drivers/scsi/aha1542.c | int i; |
i | 686 | drivers/scsi/aha1542.c | for(i=0; i<AHA1542_MAILBOXES; i++){ |
i | 687 | drivers/scsi/aha1542.c | mb[i].status = mb[AHA1542_MAILBOXES+i].status = 0; |
i | 688 | drivers/scsi/aha1542.c | any2scsi(mb[i].ccbptr, &ccb[i]); |
i | 705 | drivers/scsi/aha1542.c | int i; |
i | 706 | drivers/scsi/aha1542.c | i = inb(STATUS(base_io)); |
i | 707 | drivers/scsi/aha1542.c | if (i & DF) { |
i | 708 | drivers/scsi/aha1542.c | i = inb(DATA(base_io)); |
i | 805 | drivers/scsi/aha1542.c | int i; |
i | 806 | drivers/scsi/aha1542.c | i = inb(STATUS(base_io)); |
i | 807 | drivers/scsi/aha1542.c | if (i & DF) { |
i | 808 | drivers/scsi/aha1542.c | i = inb(DATA(base_io)); |
i | 1013 | drivers/scsi/aha1542.c | int i; |
i | 1015 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87; |
i | 1016 | drivers/scsi/aha1542.c | for (i = 0; i < 2; ++i) |
i | 1017 | drivers/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
i | 1019 | drivers/scsi/aha1542.c | i, xscsi2int(buf+4), xscsi2int(buf)); |
i | 1025 | drivers/scsi/aha1542.c | for (i = 0; i < 4; ++i) |
i | 1032 | drivers/scsi/aha1542.c | xany2scsi(cmd+2, i); |
i | 1053 | drivers/scsi/aha1542.c | int i; |
i | 1059 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1060 | drivers/scsi/aha1542.c | if(HOSTDATA(shost)->SCint[i] && |
i | 1061 | drivers/scsi/aha1542.c | !(HOSTDATA(shost)->SCint[i]->device->soft_reset)) |
i | 1064 | drivers/scsi/aha1542.c | HOSTDATA(shost)->mb[i].status = 1; /* Indicate ready to restart... */ |
i | 1087 | drivers/scsi/aha1542.c | int mbi, mbo, i; |
i | 1116 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1117 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i]) |
i | 1119 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt) { |
i | 1121 | drivers/scsi/aha1542.c | if (HOSTDATA(SCpnt->host)->mb[i].status) { |
i | 1154 | drivers/scsi/aha1542.c | int i; |
i | 1163 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1164 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt) |
i | 1166 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->ccb[i].op = 0x81; /* BUS DEVICE RESET */ |
i | 1180 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1181 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] && |
i | 1182 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[i]->target == SCpnt->target) |
i | 1185 | drivers/scsi/aha1542.c | SCtmp = HOSTDATA(SCpnt->host)->SCint[i]; |
i | 1191 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[i] = NULL; |
i | 1192 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->mb[i].status = 0; |
i | 253 | drivers/scsi/aha1740.c | DEB(int i); |
i | 269 | drivers/scsi/aha1740.c | i = xscsi2int(cmd+2); |
i | 271 | drivers/scsi/aha1740.c | i = scsi2int(cmd+2); |
i | 273 | drivers/scsi/aha1740.c | i = -1; |
i | 274 | drivers/scsi/aha1740.c | printk("aha1740_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 276 | drivers/scsi/aha1740.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
i | 319 | drivers/scsi/aha1740.c | int i; |
i | 328 | drivers/scsi/aha1740.c | for(i=0; i<SCpnt->use_sg; i++) |
i | 330 | drivers/scsi/aha1740.c | cptr[i].dataptr = (long) sgpnt[i].address; |
i | 331 | drivers/scsi/aha1740.c | cptr[i].datalen = sgpnt[i].length; |
i | 338 | drivers/scsi/aha1740.c | for(i=0;i<24;i++) printk("%02x ", ptr[i]); |
i | 358 | drivers/scsi/aha1740.c | int i; |
i | 360 | drivers/scsi/aha1740.c | for (i = 0; i < sizeof(ecb[ecbno])-10; i++) |
i | 361 | drivers/scsi/aha1740.c | printk("%02x ", ((unchar *)&ecb[ecbno])[i]); |
i | 318 | drivers/scsi/aha274x.c | int i; |
i | 330 | drivers/scsi/aha274x.c | for (i = 0; options[i].name; i++) |
i | 331 | drivers/scsi/aha274x.c | if (!strcmp(options[i].name, p)) |
i | 332 | drivers/scsi/aha274x.c | *(options[i].flag) = !0; |
i | 362 | drivers/scsi/aha274x.c | int i, segments; |
i | 370 | drivers/scsi/aha274x.c | for (i = length = 0; |
i | 371 | drivers/scsi/aha274x.c | i < cmd->use_sg && i < segments; |
i | 372 | drivers/scsi/aha274x.c | i++) |
i | 374 | drivers/scsi/aha274x.c | length += sg[i].length; |
i | 385 | drivers/scsi/aha274x.c | int i; |
i | 389 | drivers/scsi/aha274x.c | for (i = 0; i < cmd->use_sg; i++) |
i | 390 | drivers/scsi/aha274x.c | if ((unsigned)sg[i].length > 0xffff) |
i | 400 | drivers/scsi/aha274x.c | int i; |
i | 404 | drivers/scsi/aha274x.c | for (i = 0; i < aha274x_synctab_max-1; i++) { |
i | 406 | drivers/scsi/aha274x.c | if (transfer == aha274x_synctab[i].period) { |
i | 407 | drivers/scsi/aha274x.c | *rate = (aha274x_synctab[i].rate << 4) | (offset & 0xf); |
i | 411 | drivers/scsi/aha274x.c | if (transfer > aha274x_synctab[i].period && |
i | 412 | drivers/scsi/aha274x.c | transfer < aha274x_synctab[i+1].period) |
i | 414 | drivers/scsi/aha274x.c | *rate = (aha274x_synctab[i+1].rate << 4) | |
i | 740 | drivers/scsi/aha274x.c | int i; |
i | 753 | drivers/scsi/aha274x.c | for (i = 0; i < sizeof(buf); i++) { |
i | 758 | drivers/scsi/aha274x.c | outb(0x80 + i, s_base); |
i | 759 | drivers/scsi/aha274x.c | buf[i] = inb(s_base + i); |
i | 762 | drivers/scsi/aha274x.c | for (i = 0; i < sizeof(S)/sizeof(S[0]); i++) { |
i | 763 | drivers/scsi/aha274x.c | if (!memcmp(buf, S[i].signature, S[i].n)) { |
i | 768 | drivers/scsi/aha274x.c | return(S[i].type); |
i | 862 | drivers/scsi/aha274x.c | int i, irq, scsi_id; |
i | 942 | drivers/scsi/aha274x.c | for (i = 0; i < AHA274X_MAXSCB; i++) |
i | 943 | drivers/scsi/aha274x.c | p->SCB_array[i] = NULL; |
i | 1267 | drivers/scsi/aha274x.c | int i, scb, found, queued; |
i | 1292 | drivers/scsi/aha274x.c | for (i = found = 0; i < queued; i++) { |
i | 1293 | drivers/scsi/aha274x.c | scbsave[i] = inb(O_QINFIFO(p->base)); |
i | 1295 | drivers/scsi/aha274x.c | if (scbsave[i] == scb) { |
i | 1297 | drivers/scsi/aha274x.c | i -= 1; |
i | 1302 | drivers/scsi/aha274x.c | for (i = 0; i < queued; i++) |
i | 1303 | drivers/scsi/aha274x.c | outb(scbsave[i], O_QINFIFO(p->base)); |
i | 1388 | drivers/scsi/aha274x.c | int i; |
i | 1446 | drivers/scsi/aha274x.c | for (i = 0; i < AHA274X_MAXSCB; i++) { |
i | 1447 | drivers/scsi/aha274x.c | if (cmd == p->SCB_array[i]) { |
i | 1448 | drivers/scsi/aha274x.c | reset = (Scsi_Cmnd *)p->SCB_array[i]; |
i | 1449 | drivers/scsi/aha274x.c | p->SCB_array[i] = NULL; |
i | 147 | drivers/scsi/aic7770.c | int i; |
i | 165 | drivers/scsi/aic7770.c | for (i = 0; i < p->npatch; i++) { |
i | 166 | drivers/scsi/aic7770.c | M[p->patch[i]][0] &= ~1; |
i | 167 | drivers/scsi/aic7770.c | M[p->patch[i]][0] |= ((p->value >> 8) & 1); |
i | 168 | drivers/scsi/aic7770.c | M[p->patch[i]][1] = p->value & 0xff; |
i | 171 | drivers/scsi/aic7770.c | fprintf(stderr, " 0x%x", p->patch[i]); |
i | 186 | drivers/scsi/aic7770.c | int i; |
i | 188 | drivers/scsi/aic7770.c | for (i = 0; i < LC; i++) |
i | 190 | drivers/scsi/aic7770.c | M[i][3], |
i | 191 | drivers/scsi/aic7770.c | M[i][2], |
i | 192 | drivers/scsi/aic7770.c | M[i][1], |
i | 193 | drivers/scsi/aic7770.c | M[i][0]); |
i | 198 | drivers/scsi/aic7770.c | int i; |
i | 203 | drivers/scsi/aic7770.c | i = 0; |
i | 217 | drivers/scsi/aic7770.c | if (i < MAXTOKEN-1) |
i | 218 | drivers/scsi/aic7770.c | a[i++] = p; |
i | 221 | drivers/scsi/aic7770.c | if (i) { |
i | 222 | drivers/scsi/aic7770.c | *n = i; |
i | 303 | drivers/scsi/aic7770.c | int i; |
i | 323 | drivers/scsi/aic7770.c | for (i = 0; i < sizeof(jmptab)/sizeof(jmptab[0]); i++) |
i | 324 | drivers/scsi/aic7770.c | if (jmptab[i].what == want && |
i | 325 | drivers/scsi/aic7770.c | !strcmp(jmptab[i].name, a[spec])) |
i | 327 | drivers/scsi/aic7770.c | return(jmptab[i].value); |
i | 431 | drivers/scsi/aic7770.c | int i; |
i | 444 | drivers/scsi/aic7770.c | for (i = 0; instr[i].name; i++) { |
i | 450 | drivers/scsi/aic7770.c | if (!strcmp(instr[i].name, *a) && instr[i].n == n) |
i | 453 | drivers/scsi/aic7770.c | if (!instr[i].name) |
i | 456 | drivers/scsi/aic7770.c | I_op = eval_operand(a, instr[i].op); |
i | 457 | drivers/scsi/aic7770.c | I_src = eval_sdi(a, instr[i].src); |
i | 458 | drivers/scsi/aic7770.c | I_imm = eval_sdi(a, instr[i].imm); |
i | 459 | drivers/scsi/aic7770.c | I_dest = eval_sdi(a, instr[i].dest); |
i | 460 | drivers/scsi/aic7770.c | I_addr = eval_addr(a, instr[i].addr); |
i | 462 | drivers/scsi/aic7770.c | switch (instr[i].fmt) { |
i | 231 | drivers/scsi/buslogic.c | int s = inb(STATUS(base)), i = inb(INTERRUPT(base)); |
i | 233 | drivers/scsi/buslogic.c | buslogic_printk("status=%02X intrflags=%02X\n", s, i); |
i | 563 | drivers/scsi/buslogic.c | size_t i; |
i | 566 | drivers/scsi/buslogic.c | for (i = 0; i < sizeof sctmp->sense_buffer; i++) |
i | 567 | drivers/scsi/buslogic.c | printk(" %02X", sctmp->sense_buffer[i]); |
i | 623 | drivers/scsi/buslogic.c | int i; |
i | 627 | drivers/scsi/buslogic.c | i = *(int *)(cmd + 2); |
i | 629 | drivers/scsi/buslogic.c | i = -1; |
i | 631 | drivers/scsi/buslogic.c | target, *cmd, i, bufflen); |
i | 634 | drivers/scsi/buslogic.c | for (i = 0; i < scpnt->cmd_len; i++) |
i | 635 | drivers/scsi/buslogic.c | printk(" %02X", cmd[i]); |
i | 702 | drivers/scsi/buslogic.c | size_t i; |
i | 719 | drivers/scsi/buslogic.c | for (i = 0; i < scpnt->use_sg; i++) { |
i | 720 | drivers/scsi/buslogic.c | CHECK_DMA_ADDR(shpnt->unchecked_isa_dma, sgpnt[i].address, |
i | 722 | drivers/scsi/buslogic.c | cptr[i].dataptr = sgpnt[i].address; |
i | 723 | drivers/scsi/buslogic.c | cptr[i].datalen = sgpnt[i].length; |
i | 733 | drivers/scsi/buslogic.c | for (i = 0; i < 18; i++) |
i | 734 | drivers/scsi/buslogic.c | printk(" %02X", ptr[i]); |
i | 755 | drivers/scsi/buslogic.c | size_t i; |
i | 758 | drivers/scsi/buslogic.c | for (i = 0; i < sizeof ccb[mbo] - 10; i++) |
i | 759 | drivers/scsi/buslogic.c | printk(" %02X", ((unsigned char *)&ccb[mbo])[i]); |
i | 816 | drivers/scsi/buslogic.c | size_t i; |
i | 825 | drivers/scsi/buslogic.c | for (i = 0; i < BUSLOGIC_MAILBOXES; i++) { |
i | 826 | drivers/scsi/buslogic.c | mb[i].status = mb[BUSLOGIC_MAILBOXES + i].status = MBX_NOT_IN_USE; |
i | 827 | drivers/scsi/buslogic.c | mb[i].ccbptr = &ccb[i]; |
i | 854 | drivers/scsi/buslogic.c | int i; |
i | 860 | drivers/scsi/buslogic.c | i = inb(STATUS(base)); |
i | 861 | drivers/scsi/buslogic.c | if (i & DIRRDY) |
i | 862 | drivers/scsi/buslogic.c | i = inb(DATA_IN(base)); |
i | 964 | drivers/scsi/buslogic.c | unsigned int i; |
i | 992 | drivers/scsi/buslogic.c | i = jiffies + 2; |
i | 993 | drivers/scsi/buslogic.c | while (i > jiffies); |
i | 1294 | drivers/scsi/buslogic.c | size_t i; |
i | 1299 | drivers/scsi/buslogic.c | for (i = 0; i < sizeof buf; i++) |
i | 1300 | drivers/scsi/buslogic.c | buf[i] = 0x87; |
i | 1301 | drivers/scsi/buslogic.c | for (i = 0; i < 2; i++) |
i | 1302 | drivers/scsi/buslogic.c | if (!buslogic_command(i, cmd, buf, sizeof buf)) { |
i | 1304 | drivers/scsi/buslogic.c | i, *(int *)(buf + 4), *(int *)buf); |
i | 1310 | drivers/scsi/buslogic.c | for (i = 0; i < 4; i++) { |
i | 1315 | drivers/scsi/buslogic.c | xany2scsi(cmd + 2, i); |
i | 1337 | drivers/scsi/buslogic.c | unsigned int i; |
i | 1343 | drivers/scsi/buslogic.c | for (i = 0; i < BUSLOGIC_MAILBOXES; i++) |
i | 1344 | drivers/scsi/buslogic.c | if (HOSTDATA(shpnt)->sc[i] |
i | 1345 | drivers/scsi/buslogic.c | && !HOSTDATA(shpnt)->sc[i]->device->soft_reset) { |
i | 1347 | drivers/scsi/buslogic.c | HOSTDATA(shpnt)->mb[i].status |
i | 1372 | drivers/scsi/buslogic.c | unsigned int i; |
i | 1408 | drivers/scsi/buslogic.c | for (i = 0; i < BUSLOGIC_MAILBOXES; i++) |
i | 1409 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i]) { |
i | 1410 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i] == scpnt) { |
i | 1413 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->mb[i].status != MBX_NOT_IN_USE) { |
i | 1451 | drivers/scsi/buslogic.c | unsigned int i; |
i | 1462 | drivers/scsi/buslogic.c | for (i = 0; i < BUSLOGIC_MAILBOXES; i++) |
i | 1463 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i] == scpnt) { |
i | 1464 | drivers/scsi/buslogic.c | HOSTDATA(scpnt->host)->ccbs[i].op = CCB_OP_BUS_RESET; |
i | 1481 | drivers/scsi/buslogic.c | for (i = 0; i < BUSLOGIC_MAILBOXES; i++) |
i | 1482 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i] |
i | 1483 | drivers/scsi/buslogic.c | && HOSTDATA(scpnt->host)->sc[i]->target == scpnt->target) { |
i | 1484 | drivers/scsi/buslogic.c | Scsi_Cmnd *sctmp = HOSTDATA(scpnt->host)->sc[i]; |
i | 1493 | drivers/scsi/buslogic.c | HOSTDATA(scpnt->host)->sc[i] = NULL; |
i | 1494 | drivers/scsi/buslogic.c | HOSTDATA(scpnt->host)->mb[i].status = MBX_NOT_IN_USE; |
i | 1553 | drivers/scsi/buslogic.c | size_t i; |
i | 1564 | drivers/scsi/buslogic.c | for (i = 0; i < ARRAY_SIZE(valid_bases); i++) |
i | 1565 | drivers/scsi/buslogic.c | if (valid_bases[i] == ints[1]) { |
i | 1570 | drivers/scsi/buslogic.c | buslogic_printk("invalid base 0x%X specified.\n", ints[i]); |
i | 102 | drivers/scsi/constants.c | int i,s; |
i | 104 | drivers/scsi/constants.c | for ( i = 1, s = COMMAND_SIZE(command[0]); i < s; ++i) |
i | 105 | drivers/scsi/constants.c | printk("%02x ", command[i]); |
i | 366 | drivers/scsi/constants.c | int i, s; |
i | 411 | drivers/scsi/constants.c | for(i=0; additional[i].text; i++) |
i | 412 | drivers/scsi/constants.c | if(additional[i].code1 == sense_buffer[12] && |
i | 413 | drivers/scsi/constants.c | additional[i].code2 == sense_buffer[13]) |
i | 414 | drivers/scsi/constants.c | printk("Additional sense indicates %s\n", additional[i].text); |
i | 416 | drivers/scsi/constants.c | for(i=0; additional2[i].text; i++) |
i | 417 | drivers/scsi/constants.c | if(additional2[i].code1 == sense_buffer[12] && |
i | 418 | drivers/scsi/constants.c | additional2[i].code2_min >= sense_buffer[13] && |
i | 419 | drivers/scsi/constants.c | additional2[i].code2_max <= sense_buffer[13]) { |
i | 421 | drivers/scsi/constants.c | printk(additional2[i].text, sense_buffer[13]); |
i | 443 | drivers/scsi/constants.c | for (i = 0; i < s; ++i) |
i | 444 | drivers/scsi/constants.c | printk("0x%02x ", sense_buffer[i]); |
i | 478 | drivers/scsi/constants.c | int len = 0, i; |
i | 499 | drivers/scsi/constants.c | for (i = 2; i < len; ++i) |
i | 500 | drivers/scsi/constants.c | printk("%02x ", msg[i]); |
i | 503 | drivers/scsi/constants.c | for (i = 0; i < len; ++i) |
i | 504 | drivers/scsi/constants.c | printk("%02x ", msg[i]); |
i | 483 | drivers/scsi/eata.c | unsigned int i, j, k, flags; |
i | 496 | drivers/scsi/eata.c | i = HD(j)->last_cp_used + 1; |
i | 498 | drivers/scsi/eata.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
i | 500 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) i = 0; |
i | 502 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) { |
i | 503 | drivers/scsi/eata.c | HD(j)->last_cp_used = i; |
i | 525 | drivers/scsi/eata.c | cpp = &HD(j)->cp[i]; |
i | 530 | drivers/scsi/eata.c | spp = &HD(j)->sp[i]; |
i | 538 | drivers/scsi/eata.c | cpp->index = i; |
i | 542 | drivers/scsi/eata.c | BN(j), i, SCpnt->target, SCpnt->pid); |
i | 580 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = IN_USE; |
i | 586 | drivers/scsi/eata.c | unsigned int i, j, flags; |
i | 598 | drivers/scsi/eata.c | i = *(unsigned int *)SCarg->host_scribble; |
i | 600 | drivers/scsi/eata.c | BN(j), i, SCarg->target, SCarg->pid); |
i | 602 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) |
i | 611 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) { |
i | 612 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is free.\n", BN(j), i); |
i | 617 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IN_USE) { |
i | 618 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is in use.\n", BN(j), i); |
i | 620 | drivers/scsi/eata.c | if (SCarg != HD(j)->cp[i].SCpnt) |
i | 622 | drivers/scsi/eata.c | BN(j), i, SCarg, HD(j)->cp[i].SCpnt); |
i | 628 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IN_RESET) { |
i | 629 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is in reset.\n", BN(j), i); |
i | 634 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 635 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is locked.\n", BN(j), i); |
i | 640 | drivers/scsi/eata.c | panic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i); |
i | 644 | drivers/scsi/eata.c | unsigned int i, j, flags, time, k, limit = 0; |
i | 671 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 673 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) continue; |
i | 675 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 676 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
i | 677 | drivers/scsi/eata.c | printk("%s: reset, locked mbox %d forced free.\n", BN(j), i); |
i | 681 | drivers/scsi/eata.c | SCpnt = HD(j)->cp[i].SCpnt; |
i | 682 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = IN_RESET; |
i | 684 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid); |
i | 687 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, SCpnt == NULL.\n", BN(j), i); |
i | 690 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, garbled SCpnt.\n", BN(j), i); |
i | 692 | drivers/scsi/eata.c | if (*(unsigned int *)SCpnt->host_scribble != i) |
i | 693 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, index mismatch.\n", BN(j), i); |
i | 696 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, SCpnt->scsi_done == NULL.\n", BN(j), i); |
i | 716 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 719 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] != IN_RESET) continue; |
i | 721 | drivers/scsi/eata.c | SCpnt = HD(j)->cp[i].SCpnt; |
i | 726 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = LOCKED; |
i | 729 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid); |
i | 751 | drivers/scsi/eata.c | unsigned int i, j, k, flags, status, loops, total_loops = 0; |
i | 786 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 787 | drivers/scsi/eata.c | spp = &HD(j)->sp[i]; |
i | 794 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 795 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
i | 797 | drivers/scsi/eata.c | BN(j), i, HD(j)->iocount); |
i | 800 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == FREE) { |
i | 802 | drivers/scsi/eata.c | BN(j), i, HD(j)->iocount); |
i | 805 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == IN_RESET) |
i | 806 | drivers/scsi/eata.c | printk("%s: ihdlr, mbox %d is in reset.\n", BN(j), i); |
i | 807 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] != IN_USE) |
i | 808 | drivers/scsi/eata.c | panic("%s: ihdlr, mbox %d, invalid cp_stat.\n", BN(j), i); |
i | 810 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
i | 811 | drivers/scsi/eata.c | cpp = &HD(j)->cp[i]; |
i | 815 | drivers/scsi/eata.c | panic("%s: ihdlr, mbox %d, SCpnt == NULL.\n", BN(j), i); |
i | 819 | drivers/scsi/eata.c | BN(j), i, SCpnt, cpp->SCpnt); |
i | 823 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid, SCpnt); |
i | 825 | drivers/scsi/eata.c | if (*(unsigned int *)SCpnt->host_scribble != i) |
i | 827 | drivers/scsi/eata.c | " irq %d.\n", BN(j), i, SCpnt->pid, |
i | 903 | drivers/scsi/eata.c | BN(j), i, spp->adapter_status, spp->target_status, |
i | 501 | drivers/scsi/fdomain.c | int i; |
i | 504 | drivers/scsi/fdomain.c | for (i = 0; i < 255; i++) { |
i | 505 | drivers/scsi/fdomain.c | outb( i, port_base + Write_Loopback ); |
i | 507 | drivers/scsi/fdomain.c | if (i != result) |
i | 515 | drivers/scsi/fdomain.c | int i, j; |
i | 532 | drivers/scsi/fdomain.c | for (i = 0; !bios_base && i < ADDRESS_COUNT; i++) { |
i | 534 | drivers/scsi/fdomain.c | printk( " %x(%x),", (unsigned)addresses[i], (unsigned)bios_base ); |
i | 537 | drivers/scsi/fdomain.c | if (!memcmp( ((char *)addresses[i] + signatures[j].sig_offset), |
i | 543 | drivers/scsi/fdomain.c | bios_base = addresses[i]; |
i | 576 | drivers/scsi/fdomain.c | for (flag = 0, i = 0; !flag && i < PORT_COUNT; i++) { |
i | 577 | drivers/scsi/fdomain.c | if (port_base == ports[i]) |
i | 607 | drivers/scsi/fdomain.c | for (i = 0; !flag && i < PORT_COUNT; i++) { |
i | 608 | drivers/scsi/fdomain.c | port_base = ports[i]; |
i | 632 | drivers/scsi/fdomain.c | for (i = 0xff00; !flag && i > 0xf000; i -= 8) { |
i | 633 | drivers/scsi/fdomain.c | port_base = i; |
i | 729 | drivers/scsi/fdomain.c | for (i = 0; i < 8; i++) { |
i | 730 | drivers/scsi/fdomain.c | SCinit.target = i; |
i | 731 | drivers/scsi/fdomain.c | if (i == tpnt->this_id) /* Skip host adapter */ |
i | 739 | drivers/scsi/fdomain.c | printk( " SCSI ID %d: ", i ); |
i | 1527 | drivers/scsi/fdomain.c | } *i; |
i | 1576 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f33 + drive * 25 ); |
i | 1578 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f31 + drive * 25 ); |
i | 1580 | drivers/scsi/fdomain.c | info_array[0] = i->heads; |
i | 1581 | drivers/scsi/fdomain.c | info_array[1] = i->sectors; |
i | 1582 | drivers/scsi/fdomain.c | info_array[2] = i->cylinders; |
i | 1584 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f71 + drive * 10 ); |
i | 1585 | drivers/scsi/fdomain.c | info_array[0] = i->heads + 1; |
i | 1586 | drivers/scsi/fdomain.c | info_array[1] = i->sectors; |
i | 1587 | drivers/scsi/fdomain.c | info_array[2] = i->cylinders; |
i | 279 | drivers/scsi/hosts.c | int i, j, count, pcount; |
i | 286 | drivers/scsi/hosts.c | for (tpnt = &builtin_scsi_hosts[0], i = 0; i < MAX_SCSI_HOSTS; ++i, tpnt++) |
i | 302 | drivers/scsi/hosts.h | extern void scsi_unregister(struct Scsi_Host * i); |
i | 124 | drivers/scsi/in2000.c | int i; |
i | 135 | drivers/scsi/in2000.c | for(i=0; i < 3; i++) |
i | 136 | drivers/scsi/in2000.c | if(*(bios_tab[i]+0x04) == 0x41564f4e || |
i | 137 | drivers/scsi/in2000.c | *(bios_tab[i]+0xc) == 0x61776c41) { |
i | 139 | drivers/scsi/in2000.c | tmp, (unsigned int)bios_tab[i]); |
i | 410 | drivers/scsi/in2000.c | int i; |
i | 426 | drivers/scsi/in2000.c | i = xscsi2int((cmd+1)); |
i | 428 | drivers/scsi/in2000.c | i = scsi2int((cmd+1)); |
i | 430 | drivers/scsi/in2000.c | i = -1; |
i | 433 | drivers/scsi/in2000.c | printk("in2000qcmd: pos %d len %d ", i, bufflen); |
i | 435 | drivers/scsi/in2000.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
i | 312 | drivers/scsi/pas16.c | int i; |
i | 319 | drivers/scsi/pas16.c | for (i = 0; i < NO_BASES; ++i) |
i | 320 | drivers/scsi/pas16.c | if (bases[i].io_port == (unsigned short) ints[1]) { |
i | 321 | drivers/scsi/pas16.c | bases[i].noauto = 1; |
i | 481 | drivers/scsi/pas16.c | register i = len; |
i | 485 | drivers/scsi/pas16.c | insb( reg, d, i ); |
i | 513 | drivers/scsi/pas16.c | register i = len; |
i | 517 | drivers/scsi/pas16.c | outsb( reg, s, i ); |
i | 109 | drivers/scsi/qlogic.c | #define rtrc(i) {inb(0x3da);outb(0x31,0x3c0);outb((i),0x3c0);} |
i | 111 | drivers/scsi/qlogic.c | #define rtrc(i) {} |
i | 211 | drivers/scsi/qlogic.c | int i,k; |
i | 212 | drivers/scsi/qlogic.c | i = jiffies + WATCHDOG; |
i | 213 | drivers/scsi/qlogic.c | while ( i > jiffies && !qabort && !((k = inb(qbase + 4)) & 0xe0)); |
i | 214 | drivers/scsi/qlogic.c | if (i <= jiffies) |
i | 231 | drivers/scsi/qlogic.c | unsigned int i; |
i | 274 | drivers/scsi/qlogic.c | for (i = 0; i < cmd->cmd_len; i++) |
i | 275 | drivers/scsi/qlogic.c | outb(cmd->cmnd[i], qbase + 2); |
i | 284 | drivers/scsi/qlogic.c | unsigned int i, j, k; |
i | 294 | drivers/scsi/qlogic.c | i = inb(qbase + 5); |
i | 295 | drivers/scsi/qlogic.c | if (i == 0x20) { |
i | 298 | drivers/scsi/qlogic.c | i |= inb(qbase + 5); /* the 0x10 bit can be set after the 0x08 */ |
i | 299 | drivers/scsi/qlogic.c | if (i != 0x18) { |
i | 300 | drivers/scsi/qlogic.c | printk("Ql:Bad Interrupt status:%02x\n", i); |
i | 310 | drivers/scsi/qlogic.c | printk("Ql:Bad sequence for command %d, int %02X, cmdleft = %d\n", j, i, inb( qbase+7 ) & 0x1f ); |
i | 364 | drivers/scsi/qlogic.c | i = inb(qbase + 5); /* get chip irq stat */ |
i | 369 | drivers/scsi/qlogic.c | if (!((i == 8 && j == 2) || (i == 0x10 && j == 1))) { |
i | 370 | drivers/scsi/qlogic.c | printk("Ql:Error during status phase, int=%02X, %d bytes recd\n", i, j); |
i | 378 | drivers/scsi/qlogic.c | i = inb(qbase + 5); /* should be bus service */ |
i | 379 | drivers/scsi/qlogic.c | while (!qabort && ((i & 0x20) != 0x20)) |
i | 380 | drivers/scsi/qlogic.c | i |= inb(qbase + 5); |
i | 465 | drivers/scsi/qlogic.c | int i, j; /* these are only used by IRQ detect */ |
i | 511 | drivers/scsi/qlogic.c | i = 0xffff; |
i | 519 | drivers/scsi/qlogic.c | i &= ~(inb(0x20) | (inb(0xa0) << 8)); /* find IRQ off */ |
i | 521 | drivers/scsi/qlogic.c | i &= inb(0x20) | (inb(0xa0) << 8); /* find IRQ on */ |
i | 525 | drivers/scsi/qlogic.c | while (i) /* find on bit */ |
i | 526 | drivers/scsi/qlogic.c | i >>= 1, qlirq++; /* should check for exactly 1 on */ |
i | 173 | drivers/scsi/scsi.c | int i = 0; |
i | 175 | drivers/scsi/scsi.c | for(i=0; 1; i++){ |
i | 176 | drivers/scsi/scsi.c | if(blacklist[i].vendor == NULL) return 0; |
i | 179 | drivers/scsi/scsi.c | if(memcmp(blacklist[i].vendor, pnt, |
i | 180 | drivers/scsi/scsi.c | strlen(blacklist[i].vendor))) continue; |
i | 183 | drivers/scsi/scsi.c | if(memcmp(blacklist[i].model, pnt, |
i | 184 | drivers/scsi/scsi.c | strlen(blacklist[i].model))) continue; |
i | 907 | drivers/scsi/scsi.c | int i; |
i | 912 | drivers/scsi/scsi.c | for (i = 0; i < 10; ++i) |
i | 913 | drivers/scsi/scsi.c | printk ("%02x ", ((unsigned char *) cmnd)[i]); |
i | 1798 | drivers/scsi/scsi.c | int i, j; |
i | 1807 | drivers/scsi/scsi.c | for(i=0;i < (dma_sectors >> 4); i++) |
i | 1809 | drivers/scsi/scsi.c | if ((dma_malloc_freelist[i] & (mask << j)) == 0){ |
i | 1810 | drivers/scsi/scsi.c | dma_malloc_freelist[i] |= (mask << j); |
i | 1814 | drivers/scsi/scsi.c | printk("SMalloc: %d %x ",len, dma_malloc_buffer + (i << 13) + (j << 9)); |
i | 1816 | drivers/scsi/scsi.c | return (void *) ((unsigned long) dma_malloc_buffer + (i << 13) + (j << 9)); |
i | 2000 | drivers/scsi/scsi.c | int i; |
i | 2003 | drivers/scsi/scsi.c | for (i = 8; i < 16; i++) |
i | 2005 | drivers/scsi/scsi.c | if (data[i] >= 0x20 && i < data[4] + 5) |
i | 2006 | drivers/scsi/scsi.c | printk("%c", data[i]); |
i | 2012 | drivers/scsi/scsi.c | for (i = 16; i < 32; i++) |
i | 2014 | drivers/scsi/scsi.c | if (data[i] >= 0x20 && i < data[4] + 5) |
i | 2015 | drivers/scsi/scsi.c | printk("%c", data[i]); |
i | 2021 | drivers/scsi/scsi.c | for (i = 32; i < 36; i++) |
i | 2023 | drivers/scsi/scsi.c | if (data[i] >= 0x20 && i < data[4] + 5) |
i | 2024 | drivers/scsi/scsi.c | printk("%c", data[i]); |
i | 2031 | drivers/scsi/scsi.c | i = data[0] & 0x1f; |
i | 2034 | drivers/scsi/scsi.c | i < MAX_SCSI_DEVICE_CODE ? scsi_device_types[i] : "Unknown " ); |
i | 2055 | drivers/scsi/scsi.c | int j, i; |
i | 2163 | drivers/scsi/scsi.c | for(i=dma_sectors >> 3; i< new_dma_sectors >> 3; i++) |
i | 2164 | drivers/scsi/scsi.c | new_dma_malloc_pages[i] = (unsigned char *) |
i | 2352 | drivers/scsi/scsi.c | int i; |
i | 2356 | drivers/scsi/scsi.c | i = 0; |
i | 2362 | drivers/scsi/scsi.c | i++, SCpnt->host->host_no, |
i | 2383 | drivers/scsi/scsi.c | for(i=0; i<MAX_BLKDEV; i++) |
i | 2384 | drivers/scsi/scsi.c | if(blk_dev[i].current_request) |
i | 2387 | drivers/scsi/scsi.c | printk("%d: ", i); |
i | 2388 | drivers/scsi/scsi.c | req = blk_dev[i].current_request; |
i | 111 | drivers/scsi/scsi_debug.c | int i; |
i | 120 | drivers/scsi/scsi_debug.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 121 | drivers/scsi/scsi_debug.c | lpnt = (int *) sgpnt[i].alt_address; |
i | 122 | drivers/scsi/scsi_debug.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 132 | drivers/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 133 | drivers/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 139 | drivers/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 140 | drivers/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 146 | drivers/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 147 | drivers/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 167 | drivers/scsi/scsi_debug.c | int i; |
i | 185 | drivers/scsi/scsi_debug.c | { int i; |
i | 187 | drivers/scsi/scsi_debug.c | for(i=0;i<12;i++) printk("%d ",sense_buffer[i]); |
i | 302 | drivers/scsi/scsi_debug.c | { int i; |
i | 304 | drivers/scsi/scsi_debug.c | for(i=0;i<12;i++) printk("%d ",sense_buffer[i]); |
i | 376 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++){ |
i | 377 | drivers/scsi/scsi_debug.c | if (SCint[i] == 0) break; |
i | 380 | drivers/scsi/scsi_debug.c | if (i >= SCSI_DEBUG_MAILBOXES || SCint[i] != 0) |
i | 383 | drivers/scsi/scsi_debug.c | SCint[i] = SCpnt; |
i | 387 | drivers/scsi/scsi_debug.c | if (do_done[i]) |
i | 390 | drivers/scsi/scsi_debug.c | do_done[i] = done; |
i | 399 | drivers/scsi/scsi_debug.c | timeout[i] = jiffies+DISK_SPEED; |
i | 403 | drivers/scsi/scsi_debug.c | timer_table[SCSI_DEBUG_TIMER].expires = timeout[i]; |
i | 411 | drivers/scsi/scsi_debug.c | printk("Sending command (%d %x %d %d)...", i, done, timeout[i],jiffies); |
i | 442 | drivers/scsi/scsi_debug.c | int i, pending; |
i | 453 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 454 | drivers/scsi/scsi_debug.c | if (SCint[i] == 0) continue; |
i | 456 | drivers/scsi/scsi_debug.c | if (timeout[i] == 0) continue; |
i | 457 | drivers/scsi/scsi_debug.c | if (timeout[i] <= jiffies) break; |
i | 463 | drivers/scsi/scsi_debug.c | if(i == SCSI_DEBUG_MAILBOXES){ |
i | 466 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 467 | drivers/scsi/scsi_debug.c | if (SCint[i] == 0) continue; |
i | 468 | drivers/scsi/scsi_debug.c | if (timeout[i] == 0) continue; |
i | 469 | drivers/scsi/scsi_debug.c | if (timeout[i] <= jiffies) {sti(); goto repeat;}; |
i | 470 | drivers/scsi/scsi_debug.c | if (timeout[i] > jiffies) { |
i | 471 | drivers/scsi/scsi_debug.c | if (pending > timeout[i]) pending = timeout[i]; |
i | 485 | drivers/scsi/scsi_debug.c | if(i < SCSI_DEBUG_MAILBOXES){ |
i | 486 | drivers/scsi/scsi_debug.c | timeout[i] = 0; |
i | 487 | drivers/scsi/scsi_debug.c | my_done = do_done[i]; |
i | 488 | drivers/scsi/scsi_debug.c | do_done[i] = NULL; |
i | 489 | drivers/scsi/scsi_debug.c | to = timeout[i]; |
i | 490 | drivers/scsi/scsi_debug.c | timeout[i] = 0; |
i | 491 | drivers/scsi/scsi_debug.c | SCtmp = (Scsi_Cmnd *) SCint[i]; |
i | 492 | drivers/scsi/scsi_debug.c | SCint[i] = NULL; |
i | 502 | drivers/scsi/scsi_debug.c | printk("...done %d %x %d %d\n",i , my_done, to, jiffies); |
i | 503 | drivers/scsi/scsi_debug.c | printk("In intr_handle: %d %x %x\n",i, SCtmp, my_done); |
i | 555 | drivers/scsi/scsi_debug.c | int i; |
i | 558 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 559 | drivers/scsi/scsi_debug.c | if (SCint[i] == NULL) continue; |
i | 560 | drivers/scsi/scsi_debug.c | SCint[i]->result = DID_ABORT << 16; |
i | 561 | drivers/scsi/scsi_debug.c | my_done = do_done[i]; |
i | 562 | drivers/scsi/scsi_debug.c | my_done(SCint[i]); |
i | 564 | drivers/scsi/scsi_debug.c | SCint[i] = NULL; |
i | 565 | drivers/scsi/scsi_debug.c | do_done[i] = NULL; |
i | 566 | drivers/scsi/scsi_debug.c | timeout[i] = 0; |
i | 220 | drivers/scsi/scsi_ioctl.c | int i; |
i | 222 | drivers/scsi/scsi_ioctl.c | for (i = 0; i < 12; ++i) |
i | 223 | drivers/scsi/scsi_ioctl.c | printk("%02x ", cmd[i]); |
i | 225 | drivers/scsi/scsi_ioctl.c | for (i = 0; i < 20; ++i) |
i | 226 | drivers/scsi/scsi_ioctl.c | printk("%02x ", buf[i]); |
i | 79 | drivers/scsi/scsicam.c | int i, largest_cyl; |
i | 86 | drivers/scsi/scsicam.c | (0x1BE + bh->b_data), i = 0; i < 4; ++i, ++p) { |
i | 91 | drivers/scsi/scsicam.c | i); |
i | 145 | drivers/scsi/sd.c | int i; |
i | 147 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
i | 148 | drivers/scsi/sd.c | if(rscsi_disks[i].device) |
i | 149 | drivers/scsi/sd.c | sd[i << 4].nr_sects = rscsi_disks[i].capacity; |
i | 182 | drivers/scsi/sd.c | int i; |
i | 184 | drivers/scsi/sd.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 186 | drivers/scsi/sd.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 188 | drivers/scsi/sd.c | if (sgpnt[i].alt_address) { |
i | 190 | drivers/scsi/sd.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 191 | drivers/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 238 | drivers/scsi/sd.c | int i; |
i | 240 | drivers/scsi/sd.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 245 | drivers/scsi/sd.c | if (sgpnt[i].alt_address) { |
i | 246 | drivers/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 818 | drivers/scsi/sd.c | static int sd_init_onedisk(int i) |
i | 830 | drivers/scsi/sd.c | SCpnt = allocate_device(NULL, rscsi_disks[i].device, 1); |
i | 839 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 857 | drivers/scsi/sd.c | if(the_result && !rscsi_disks[i].device->removable && |
i | 861 | drivers/scsi/sd.c | printk( "sd%c: Spinning up disk...", 'a' + i ); |
i | 863 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 899 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 951 | drivers/scsi/sd.c | 'a' + i, 'a' + i, |
i | 958 | drivers/scsi/sd.c | printk("sd%c : extended sense code = %1x \n", 'a' + i, SCpnt->sense_buffer[2] & 0xf); |
i | 960 | drivers/scsi/sd.c | printk("sd%c : sense not available. \n", 'a' + i); |
i | 962 | drivers/scsi/sd.c | printk("sd%c : block size assumed to be 512 bytes, disk size 1GB. \n", 'a' + i); |
i | 963 | drivers/scsi/sd.c | rscsi_disks[i].capacity = 0x1fffff; |
i | 964 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = 512; |
i | 968 | drivers/scsi/sd.c | if(rscsi_disks[i].device->removable && |
i | 970 | drivers/scsi/sd.c | rscsi_disks[i].device->changed = 1; |
i | 975 | drivers/scsi/sd.c | rscsi_disks[i].capacity = (buffer[0] << 24) | |
i | 980 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = (buffer[4] << 24) | |
i | 983 | drivers/scsi/sd.c | if (rscsi_disks[i].sector_size != 512 && |
i | 984 | drivers/scsi/sd.c | rscsi_disks[i].sector_size != 1024 && |
i | 985 | drivers/scsi/sd.c | rscsi_disks[i].sector_size != 256) |
i | 988 | drivers/scsi/sd.c | 'a' + i, rscsi_disks[i].sector_size); |
i | 989 | drivers/scsi/sd.c | if(rscsi_disks[i].device->removable){ |
i | 990 | drivers/scsi/sd.c | rscsi_disks[i].capacity = 0; |
i | 993 | drivers/scsi/sd.c | rscsi_disks[i].device = NULL; |
i | 995 | drivers/scsi/sd.c | return i; |
i | 1005 | drivers/scsi/sd.c | int hard_sector = rscsi_disks[i].sector_size; |
i | 1007 | drivers/scsi/sd.c | for (m=i<<4; m<((i+1)<<4); m++){ |
i | 1011 | drivers/scsi/sd.c | ,hard_sector,i+'a'); |
i | 1013 | drivers/scsi/sd.c | if(rscsi_disks[i].sector_size == 1024) |
i | 1014 | drivers/scsi/sd.c | rscsi_disks[i].capacity <<= 1; /* Change this into 512 byte sectors */ |
i | 1015 | drivers/scsi/sd.c | if(rscsi_disks[i].sector_size == 256) |
i | 1016 | drivers/scsi/sd.c | rscsi_disks[i].capacity >>= 1; /* Change this into 512 byte sectors */ |
i | 1019 | drivers/scsi/sd.c | rscsi_disks[i].ten = 1; |
i | 1020 | drivers/scsi/sd.c | rscsi_disks[i].remap = 1; |
i | 1022 | drivers/scsi/sd.c | return i; |
i | 1033 | drivers/scsi/sd.c | int i; |
i | 1063 | drivers/scsi/sd.c | for(i=0;i<(sd_template.dev_max << 4);i++){ |
i | 1064 | drivers/scsi/sd.c | sd_blocksizes[i] = 1024; |
i | 1065 | drivers/scsi/sd.c | sd_hardsizes[i] = 512; |
i | 1082 | drivers/scsi/sd.c | int i; |
i | 1084 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
i | 1085 | drivers/scsi/sd.c | if (rscsi_disks[i].device) i = sd_init_onedisk(i); |
i | 1118 | drivers/scsi/sd.c | int i; |
i | 1127 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
i | 1130 | drivers/scsi/sd.c | if(i >= sd_template.dev_max) panic ("scsi_devices corrupt (sd)"); |
i | 1133 | drivers/scsi/sd.c | rscsi_disks[i].device = SDp; |
i | 1155 | drivers/scsi/sd.c | int i; |
i | 1173 | drivers/scsi/sd.c | for (i=max_p - 1; i >=0 ; i--) { |
i | 1174 | drivers/scsi/sd.c | sync_dev(major | start | i); |
i | 1175 | drivers/scsi/sd.c | invalidate_inodes(major | start | i); |
i | 1176 | drivers/scsi/sd.c | invalidate_buffers(major | start | i); |
i | 1177 | drivers/scsi/sd.c | gdev->part[start+i].start_sect = 0; |
i | 1178 | drivers/scsi/sd.c | gdev->part[start+i].nr_sects = 0; |
i | 275 | drivers/scsi/seagate.c | int i,j; |
i | 319 | drivers/scsi/seagate.c | for (i = 0; i < (sizeof (seagate_bases) / sizeof (char * )); ++i) |
i | 321 | drivers/scsi/seagate.c | if (!memcmp ((void *) (seagate_bases[i] + |
i | 324 | drivers/scsi/seagate.c | base_address = (void *) seagate_bases[i]; |
i | 593 | drivers/scsi/seagate.c | int i; |
i | 893 | drivers/scsi/seagate.c | int i; |
i | 896 | drivers/scsi/seagate.c | for (i = 0; i < nobuffs; ++i) |
i | 898 | drivers/scsi/seagate.c | hostno, i, buffer[i].address, buffer[i].length); |
i | 1462 | drivers/scsi/seagate.c | for (i = 0; i < 20; ++i) |
i | 1463 | drivers/scsi/seagate.c | printk ("%02x ", ((unsigned char *) data)[i]); /* WDE mod */ |
i | 167 | drivers/scsi/sg.c | int i; |
i | 169 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_WRITE,buf,count))) |
i | 170 | drivers/scsi/sg.c | return i; |
i | 226 | drivers/scsi/sg.c | int bsize,size,amt,i; |
i | 231 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_READ,buf,count))) |
i | 232 | drivers/scsi/sg.c | return i; |
i | 360 | drivers/scsi/sg.c | int i; |
i | 368 | drivers/scsi/sg.c | for(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) |
i | 371 | drivers/scsi/sg.c | if(i >= sg_template.dev_max) panic ("scsi_devices corrupt (sg)"); |
i | 373 | drivers/scsi/sg.c | scsi_generics[i].device=SDp; |
i | 374 | drivers/scsi/sg.c | scsi_generics[i].users=0; |
i | 375 | drivers/scsi/sg.c | scsi_generics[i].generic_wait=NULL; |
i | 376 | drivers/scsi/sg.c | scsi_generics[i].read_wait=NULL; |
i | 377 | drivers/scsi/sg.c | scsi_generics[i].write_wait=NULL; |
i | 378 | drivers/scsi/sg.c | scsi_generics[i].buff=NULL; |
i | 379 | drivers/scsi/sg.c | scsi_generics[i].exclude=0; |
i | 380 | drivers/scsi/sg.c | scsi_generics[i].pending=0; |
i | 381 | drivers/scsi/sg.c | scsi_generics[i].timeout=SG_DEFAULT_TIMEOUT; |
i | 170 | drivers/scsi/sr.c | int i; |
i | 172 | drivers/scsi/sr.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 173 | drivers/scsi/sr.c | if (sgpnt[i].alt_address) { |
i | 174 | drivers/scsi/sr.c | if (sgpnt[i].alt_address != sgpnt[i].address) { |
i | 175 | drivers/scsi/sr.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 177 | drivers/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 209 | drivers/scsi/sr.c | int i; |
i | 211 | drivers/scsi/sr.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 212 | drivers/scsi/sr.c | if (sgpnt[i].alt_address) { |
i | 213 | drivers/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 752 | drivers/scsi/sr.c | int i; |
i | 756 | drivers/scsi/sr.c | for(i=0; i<12; i++) printk("%2.2x ", cmd[i]); |
i | 795 | drivers/scsi/sr.c | int i; |
i | 805 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
i | 808 | drivers/scsi/sr.c | if(i >= sr_template.dev_max) panic ("scsi_devices corrupt (sr)"); |
i | 811 | drivers/scsi/sr.c | scsi_CDs[i].device = SDp; |
i | 830 | drivers/scsi/sr.c | static void get_sectorsize(int i){ |
i | 837 | drivers/scsi/sr.c | SCpnt = allocate_device(NULL, scsi_CDs[i].device, 1); |
i | 842 | drivers/scsi/sr.c | cmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0; |
i | 875 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0x1fffff; |
i | 876 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = 2048; /* A guess, just in case */ |
i | 877 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
i | 879 | drivers/scsi/sr.c | scsi_CDs[i].capacity = (buffer[0] << 24) | |
i | 881 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = (buffer[4] << 24) | |
i | 883 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size == 0) scsi_CDs[i].sector_size = 2048; |
i | 884 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size != 2048 && |
i | 885 | drivers/scsi/sr.c | scsi_CDs[i].sector_size != 512) { |
i | 887 | drivers/scsi/sr.c | i, scsi_CDs[i].sector_size); |
i | 888 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0; |
i | 889 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
i | 891 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size == 2048) |
i | 892 | drivers/scsi/sr.c | scsi_CDs[i].capacity *= 4; |
i | 893 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 0; |
i | 900 | drivers/scsi/sr.c | int i; |
i | 924 | drivers/scsi/sr.c | for(i=0;i<sr_template.dev_max;i++) sr_blocksizes[i] = 2048; |
i | 931 | drivers/scsi/sr.c | int i; |
i | 933 | drivers/scsi/sr.c | for (i = 0; i < sr_template.nr_dev; ++i) |
i | 935 | drivers/scsi/sr.c | get_sectorsize(i); |
i | 936 | drivers/scsi/sr.c | printk("Scd sectorsize = %d bytes\n", scsi_CDs[i].sector_size); |
i | 937 | drivers/scsi/sr.c | scsi_CDs[i].use = 1; |
i | 938 | drivers/scsi/sr.c | scsi_CDs[i].ten = 1; |
i | 939 | drivers/scsi/sr.c | scsi_CDs[i].remap = 1; |
i | 940 | drivers/scsi/sr.c | sr_sizes[i] = scsi_CDs[i].capacity; |
i | 391 | drivers/scsi/st.c | int i; |
i | 406 | drivers/scsi/st.c | for (i=0; i < st_nbr_buffers; i++) |
i | 407 | drivers/scsi/st.c | if (!st_buffers[i]->in_use) |
i | 409 | drivers/scsi/st.c | if (i >= st_nbr_buffers) { |
i | 413 | drivers/scsi/st.c | STp->buffer = st_buffers[i]; |
i | 1624 | drivers/scsi/st.c | int i, cmd, result; |
i | 1646 | drivers/scsi/st.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(mtc)); |
i | 1647 | drivers/scsi/st.c | if (i) |
i | 1648 | drivers/scsi/st.c | return i; |
i | 1652 | drivers/scsi/st.c | i = flush_buffer(inode, file, mtc.mt_op == MTSEEK || |
i | 1655 | drivers/scsi/st.c | if (i < 0) |
i | 1656 | drivers/scsi/st.c | return i; |
i | 1672 | drivers/scsi/st.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct mtget)); |
i | 1673 | drivers/scsi/st.c | if (i) |
i | 1674 | drivers/scsi/st.c | return i; |
i | 1731 | drivers/scsi/st.c | i = flush_buffer(inode, file, 0); |
i | 1732 | drivers/scsi/st.c | if (i < 0) |
i | 1733 | drivers/scsi/st.c | return i; |
i | 1735 | drivers/scsi/st.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct mtpos)); |
i | 1736 | drivers/scsi/st.c | if (i) |
i | 1737 | drivers/scsi/st.c | return i; |
i | 1826 | drivers/scsi/st.c | int i; |
i | 1835 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
i | 1838 | drivers/scsi/st.c | if(i >= st_template.dev_max) panic ("scsi_devices corrupt (st)"); |
i | 1840 | drivers/scsi/st.c | scsi_tapes[i].device = SDp; |
i | 1860 | drivers/scsi/st.c | int i; |
i | 1887 | drivers/scsi/st.c | for (i=0, SDp = scsi_devices; i < st_template.dev_noticed; ++i) { |
i | 1888 | drivers/scsi/st.c | STp = &(scsi_tapes[i]); |
i | 1908 | drivers/scsi/st.c | memset((void *) scsi_tapes[i].mt_status, 0, sizeof(struct mtget)); |
i | 1913 | drivers/scsi/st.c | printk("st%d: ERROR: Not found in scsi chain.\n", i); |
i | 1929 | drivers/scsi/st.c | for (i=0; i < st_nbr_buffers; i++) { |
i | 1930 | drivers/scsi/st.c | st_buffers[i] = (ST_buffer *) scsi_init_malloc(sizeof(ST_buffer) - |
i | 1935 | drivers/scsi/st.c | st_buffers[i]->in_use = 0; |
i | 1936 | drivers/scsi/st.c | st_buffers[i]->writing = 0; |
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 | 318 | drivers/scsi/t128.c | register i = len; |
i | 322 | drivers/scsi/t128.c | for (; i; --i) { |
i | 326 | drivers/scsi/t128.c | for (; i; --i) { |
i | 362 | drivers/scsi/t128.c | register i = len; |
i | 365 | drivers/scsi/t128.c | for (; i; --i) { |
i | 369 | drivers/scsi/t128.c | for (; i; --i) { |
i | 442 | drivers/scsi/u14-34f.c | unsigned int i, j, k, flags; |
i | 454 | drivers/scsi/u14-34f.c | i = HD(j)->last_cp_used + 1; |
i | 456 | drivers/scsi/u14-34f.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
i | 458 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) i = 0; |
i | 460 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) { |
i | 461 | drivers/scsi/u14-34f.c | HD(j)->last_cp_used = i; |
i | 483 | drivers/scsi/u14-34f.c | cpp = &HD(j)->cp[i]; |
i | 487 | drivers/scsi/u14-34f.c | cpp->index = i; |
i | 491 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->target, SCpnt->pid); |
i | 529 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = IN_USE; |
i | 535 | drivers/scsi/u14-34f.c | unsigned int i, j, flags; |
i | 547 | drivers/scsi/u14-34f.c | i = *(unsigned int *)SCarg->host_scribble; |
i | 549 | drivers/scsi/u14-34f.c | BN(j), i, SCarg->target, SCarg->pid); |
i | 551 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
i | 560 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) { |
i | 561 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is free.\n", BN(j), i); |
i | 566 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IN_USE) { |
i | 567 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is in use.\n", BN(j), i); |
i | 569 | drivers/scsi/u14-34f.c | if (SCarg != HD(j)->cp[i].SCpnt) |
i | 571 | drivers/scsi/u14-34f.c | BN(j), i, SCarg, HD(j)->cp[i].SCpnt); |
i | 577 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IN_RESET) { |
i | 578 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is in reset.\n", BN(j), i); |
i | 583 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 584 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is locked.\n", BN(j), i); |
i | 589 | drivers/scsi/u14-34f.c | panic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i); |
i | 593 | drivers/scsi/u14-34f.c | unsigned int i, j, flags, time, k, limit = 0; |
i | 620 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 622 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) continue; |
i | 624 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 625 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
i | 626 | drivers/scsi/u14-34f.c | printk("%s: reset, locked mbox %d forced free.\n", BN(j), i); |
i | 630 | drivers/scsi/u14-34f.c | SCpnt = HD(j)->cp[i].SCpnt; |
i | 631 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = IN_RESET; |
i | 633 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid); |
i | 636 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, SCpnt == NULL.\n", BN(j), i); |
i | 639 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, garbled SCpnt.\n", BN(j), i); |
i | 641 | drivers/scsi/u14-34f.c | if (*(unsigned int *)SCpnt->host_scribble != i) |
i | 642 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, index mismatch.\n", BN(j), i); |
i | 645 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, SCpnt->scsi_done == NULL.\n", BN(j), i); |
i | 666 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 669 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] != IN_RESET) continue; |
i | 671 | drivers/scsi/u14-34f.c | SCpnt = HD(j)->cp[i].SCpnt; |
i | 676 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = LOCKED; |
i | 679 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid); |
i | 711 | drivers/scsi/u14-34f.c | unsigned int i, j, k, flags, status, loops, total_loops = 0; |
i | 746 | drivers/scsi/u14-34f.c | i = spp - HD(j)->cp; |
i | 748 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
i | 751 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 752 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
i | 754 | drivers/scsi/u14-34f.c | BN(j), i, HD(j)->iocount); |
i | 757 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == FREE) { |
i | 759 | drivers/scsi/u14-34f.c | BN(j), i, HD(j)->iocount); |
i | 762 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == IN_RESET) |
i | 763 | drivers/scsi/u14-34f.c | printk("%s: ihdlr, mbox %d is in reset.\n", BN(j), i); |
i | 764 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] != IN_USE) |
i | 765 | drivers/scsi/u14-34f.c | panic("%s: ihdlr, mbox %d, invalid cp_stat.\n", BN(j), i); |
i | 767 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
i | 771 | drivers/scsi/u14-34f.c | panic("%s: ihdlr, mbox %d, SCpnt == NULL.\n", BN(j), i); |
i | 775 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid, SCpnt); |
i | 777 | drivers/scsi/u14-34f.c | if (*(unsigned int *)SCpnt->host_scribble != i) |
i | 779 | drivers/scsi/u14-34f.c | " irq %d.\n", BN(j), i, SCpnt->pid, |
i | 856 | drivers/scsi/u14-34f.c | BN(j), i, spp->adapter_status, spp->target_status, |
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 | 519 | 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 | 648 | drivers/scsi/ultrastor.c | int i, max; |
i | 652 | drivers/scsi/ultrastor.c | for (i = 0; i < max; i++) { |
i | 653 | drivers/scsi/ultrastor.c | mscp->sglist[i].address = (unsigned int)sl[i].address; |
i | 654 | drivers/scsi/ultrastor.c | mscp->sglist[i].num_bytes = sl[i].length; |
i | 655 | drivers/scsi/ultrastor.c | transfer_length += sl[i].length; |
i | 843 | drivers/scsi/ultrastor.c | int i; |
i | 848 | drivers/scsi/ultrastor.c | for (i = 0; i < 16; i++) |
i | 850 | drivers/scsi/ultrastor.c | unsigned char p = inb(port0 + i); |
i | 851 | drivers/scsi/ultrastor.c | out[28 + i * 3] = "0123456789abcdef"[p >> 4]; |
i | 852 | drivers/scsi/ultrastor.c | out[29 + i * 3] = "0123456789abcdef"[p & 15]; |
i | 853 | drivers/scsi/ultrastor.c | out[30 + i * 3] = ' '; |
i | 855 | drivers/scsi/ultrastor.c | out[28 + i * 3] = '\n'; |
i | 856 | drivers/scsi/ultrastor.c | out[29 + i * 3] = 0; |
i | 945 | drivers/scsi/ultrastor.c | register int i; |
i | 973 | drivers/scsi/ultrastor.c | for (i = 0; i < ULTRASTOR_MAX_CMDS; i++) |
i | 975 | drivers/scsi/ultrastor.c | if (! (config.mscp_free & (1 << i)) && |
i | 976 | drivers/scsi/ultrastor.c | config.mscp[i].done && config.mscp[i].SCint) |
i | 978 | drivers/scsi/ultrastor.c | config.mscp[i].SCint->result = DID_RESET << 16; |
i | 979 | drivers/scsi/ultrastor.c | config.mscp[i].done(config.mscp[i].SCint); |
i | 980 | drivers/scsi/ultrastor.c | config.mscp[i].done = 0; |
i | 982 | drivers/scsi/ultrastor.c | config.mscp[i].SCint = 0; |
i | 490 | drivers/scsi/wd7000.c | int i; |
i | 507 | drivers/scsi/wd7000.c | result.i = 0; /* clears unused bytes */ |
i | 511 | drivers/scsi/wd7000.c | return result.i; |
i | 602 | drivers/scsi/wd7000.c | int i; |
i | 634 | drivers/scsi/wd7000.c | for (i = 0; i < needed; i++) { p = scbfree; scbfree = p->next; } |
i | 662 | drivers/scsi/wd7000.c | int i; |
i | 670 | drivers/scsi/wd7000.c | for (i = 0; i < MAX_SCBS-1; i++) { |
i | 671 | drivers/scsi/wd7000.c | scbs[i].next = &(scbs[i+1]); scbs[i].SCpnt = NULL; |
i | 685 | drivers/scsi/wd7000.c | register int i, ogmb; |
i | 697 | drivers/scsi/wd7000.c | for (i = 0; i < OGMB_CNT; i++) { |
i | 714 | drivers/scsi/wd7000.c | if (i >= OGMB_CNT) { |
i | 918 | drivers/scsi/wd7000.c | unsigned i; |
i | 932 | drivers/scsi/wd7000.c | for (i = 0; i < SCpnt->use_sg; i++) { |
i | 933 | drivers/scsi/wd7000.c | any2scsi(sgb[i].ptr, (int) sg[i].address); |
i | 934 | drivers/scsi/wd7000.c | any2scsi(sgb[i].len, sg[i].length); |
i | 1102 | drivers/scsi/wd7000.c | int i,j, present = 0; |
i | 1112 | drivers/scsi/wd7000.c | for (i = 0; i < NUM_CONFIGS; i++) { |
i | 291 | drivers/sound/ad1848.c | int i, n, selected = -1; |
i | 300 | drivers/sound/ad1848.c | for (i = 1 /*really*/ ; selected == -1 && i < n; i++) |
i | 301 | drivers/sound/ad1848.c | if (speed_table[i].speed == arg) |
i | 302 | drivers/sound/ad1848.c | selected = i; |
i | 303 | drivers/sound/ad1848.c | else if (speed_table[i].speed > arg) |
i | 307 | drivers/sound/ad1848.c | diff1 = arg - speed_table[i - 1].speed; |
i | 308 | drivers/sound/ad1848.c | diff2 = speed_table[i].speed - arg; |
i | 311 | drivers/sound/ad1848.c | selected = i - 1; |
i | 313 | drivers/sound/ad1848.c | selected = i; |
i | 388 | drivers/sound/ad1848.c | int i, n = sizeof (format2bits) / sizeof (struct format_tbl); |
i | 395 | drivers/sound/ad1848.c | for (i = 0; i < n; i++) |
i | 396 | drivers/sound/ad1848.c | if (format2bits[i].format == arg) |
i | 398 | drivers/sound/ad1848.c | if ((devc->format_bits = format2bits[i].bits) == 0) |
i | 667 | drivers/sound/ad1848.c | int i; |
i | 751 | drivers/sound/ad1848.c | for (i = 0; i < 16; i++) |
i | 752 | drivers/sound/ad1848.c | if ((tmp1 = ad_read (devc, i)) != (tmp2 = ad_read (devc, i + 16))) |
i | 754 | drivers/sound/ad1848.c | DDB (printk ("ad_detect_F(%d/%x/%x)\n", i, tmp1, tmp2)); |
i | 818 | drivers/sound/ad1848.c | int i, my_dev; |
i | 836 | drivers/sound/ad1848.c | for (i = 0; i < 16; i++) |
i | 837 | drivers/sound/ad1848.c | ad_write (devc, i, init_values[i]); |
i | 144 | drivers/sound/audio.c | unsigned long i; |
i | 146 | drivers/sound/audio.c | for (i = 0; i < n; ++i) |
i | 147 | drivers/sound/audio.c | buff[i] = table[buff[i]]; |
i | 259 | drivers/sound/configure.c | int i, num, def_size, full_driver = 1; |
i | 296 | drivers/sound/configure.c | for (i = 0; i <= OPT_LAST; i++) |
i | 297 | drivers/sound/configure.c | if (can_select_option (i)) |
i | 299 | drivers/sound/configure.c | if (!(selected_options & B (i))) /* |
i | 302 | drivers/sound/configure.c | if (!hw_table[i].verify) |
i | 304 | drivers/sound/configure.c | if (hw_table[i].alias) |
i | 305 | drivers/sound/configure.c | selected_options |= B (hw_table[i].alias); |
i | 307 | drivers/sound/configure.c | selected_options |= B (i); |
i | 311 | drivers/sound/configure.c | int def_answ = hw_table[i].default_answ; |
i | 315 | drivers/sound/configure.c | questions[i]); |
i | 317 | drivers/sound/configure.c | if (hw_table[i].alias) |
i | 318 | drivers/sound/configure.c | selected_options |= B (hw_table[i].alias); |
i | 320 | drivers/sound/configure.c | selected_options |= B (i); |
i | 358 | drivers/sound/configure.c | int i = 0; |
i | 371 | drivers/sound/configure.c | if (i != 0 && (i % 10) == 0) |
i | 374 | drivers/sound/configure.c | i++; |
i | 377 | drivers/sound/configure.c | "#define pss_synthLen %d\n", i); |
i | 412 | drivers/sound/configure.c | for (i = 0; i <= OPT_LAST; i++) |
i | 413 | drivers/sound/configure.c | if (!hw_table[i].alias) |
i | 414 | drivers/sound/configure.c | if (selected_options & B (i)) |
i | 415 | drivers/sound/configure.c | printf ("#undef EXCLUDE_%s\n", hw_table[i].macro); |
i | 417 | drivers/sound/configure.c | printf ("#define EXCLUDE_%s\n", hw_table[i].macro); |
i | 38 | drivers/sound/dev_table.c | int i, n = sizeof (sound_drivers) / sizeof (struct driver_info); |
i | 40 | drivers/sound/dev_table.c | for (i = 0; i < (n - 1); i++) |
i | 41 | drivers/sound/dev_table.c | if (sound_drivers[i].card_type == type) |
i | 42 | drivers/sound/dev_table.c | return i; |
i | 52 | drivers/sound/dev_table.c | int i, n = sizeof (snd_installed_cards) / sizeof (struct card_info); |
i | 55 | drivers/sound/dev_table.c | for (i = 0; i < (n - 1); i++) |
i | 56 | drivers/sound/dev_table.c | if (snd_installed_cards[i].enabled) |
i | 57 | drivers/sound/dev_table.c | if ((drv = snd_find_driver (snd_installed_cards[i].card_type)) == -1) |
i | 58 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; /* |
i | 61 | drivers/sound/dev_table.c | else if (sound_drivers[drv].probe (&snd_installed_cards[i].config)) |
i | 65 | drivers/sound/dev_table.c | snd_installed_cards[i].card_type); |
i | 68 | drivers/sound/dev_table.c | mem_start = sound_drivers[drv].attach (mem_start, &snd_installed_cards[i].config); |
i | 71 | drivers/sound/dev_table.c | snd_installed_cards[i].config.io_base, |
i | 72 | drivers/sound/dev_table.c | snd_installed_cards[i].config.irq, |
i | 73 | drivers/sound/dev_table.c | snd_installed_cards[i].config.dma); |
i | 77 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; /* |
i | 86 | drivers/sound/dev_table.c | int i, n = sizeof (snd_installed_cards) / sizeof (struct card_info); |
i | 91 | drivers/sound/dev_table.c | for (i = 0; i < (n - 1); i++) |
i | 92 | drivers/sound/dev_table.c | if (snd_installed_cards[i].enabled) |
i | 93 | drivers/sound/dev_table.c | if (snd_installed_cards[i].card_type == unit) |
i | 97 | drivers/sound/dev_table.c | snd_installed_cards[i].config.io_base = hw_config->io_base; |
i | 98 | drivers/sound/dev_table.c | snd_installed_cards[i].config.irq = hw_config->irq; |
i | 99 | drivers/sound/dev_table.c | snd_installed_cards[i].config.dma = hw_config->dma; |
i | 100 | drivers/sound/dev_table.c | if ((drv = snd_find_driver (snd_installed_cards[i].card_type)) == -1) |
i | 101 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; /* |
i | 107 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; /* |
i | 119 | drivers/sound/dev_table.c | int i, n = sizeof (snd_installed_cards) / sizeof (struct card_info); |
i | 128 | drivers/sound/dev_table.c | for (i = 0; i < (n - 1); i++) |
i | 129 | drivers/sound/dev_table.c | if (snd_installed_cards[i].card_type == unit) |
i | 133 | drivers/sound/dev_table.c | snd_installed_cards[i].config.io_base = hw_config->io_base; |
i | 134 | drivers/sound/dev_table.c | snd_installed_cards[i].config.irq = hw_config->irq; |
i | 135 | drivers/sound/dev_table.c | snd_installed_cards[i].config.dma = hw_config->dma; |
i | 137 | drivers/sound/dev_table.c | if ((drv = snd_find_driver (snd_installed_cards[i].card_type)) == -1) |
i | 138 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; /* |
i | 159 | drivers/sound/dev_table.c | int i, n = sizeof (snd_installed_cards) / sizeof (struct card_info); |
i | 165 | drivers/sound/dev_table.c | for (i = 0; i < n; i++) |
i | 166 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; |
i | 174 | drivers/sound/dev_table.c | for (i = 1; i <= ints[0]; i++) |
i | 179 | drivers/sound/dev_table.c | val = (unsigned int) ints[i]; |
i | 219 | drivers/sound/dev_table.c | int i, n = sizeof (snd_installed_cards) / sizeof (struct card_info); |
i | 57 | drivers/sound/dmabuf.c | unsigned i, p, n; |
i | 122 | drivers/sound/dmabuf.c | for (i = 0; i < dmap->raw_count && |
i | 124 | drivers/sound/dmabuf.c | n < MAX_SUB_BUFFERS; i++) |
i | 132 | drivers/sound/dmabuf.c | dmap->buf[n] = dmap->raw_buf[i] + p; |
i | 133 | drivers/sound/dmabuf.c | dmap->buf_phys[n] = dmap->raw_buf_phys[i] + p; |
i | 142 | drivers/sound/dmabuf.c | for (i = 0; i < dmap->nbufs; i++) |
i | 144 | drivers/sound/dmabuf.c | dmap->counts[i] = 0; |
i | 32 | drivers/sound/gus_vol.c | int i, m, n, x; |
i | 81 | drivers/sound/gus_vol.c | i = 7; |
i | 84 | drivers/sound/gus_vol.c | while (i > 0 && n < (1 << i)) |
i | 85 | drivers/sound/gus_vol.c | i--; |
i | 91 | drivers/sound/gus_vol.c | i++; |
i | 97 | drivers/sound/gus_vol.c | m = x - (1 << i); |
i | 104 | drivers/sound/gus_vol.c | if (i > 8) |
i | 105 | drivers/sound/gus_vol.c | m >>= i - 8; |
i | 106 | drivers/sound/gus_vol.c | else if (i < 8) |
i | 107 | drivers/sound/gus_vol.c | m <<= 8 - i; |
i | 110 | drivers/sound/gus_vol.c | return ((i << 8) + m); |
i | 178 | drivers/sound/gus_wave.c | int i; |
i | 180 | drivers/sound/gus_wave.c | for (i = 0; i <= MAX_SAMPLE; i++) |
i | 181 | drivers/sound/gus_wave.c | sample_ptrs[i] = -1; |
i | 182 | drivers/sound/gus_wave.c | for (i = 0; i < 32; i++) |
i | 183 | drivers/sound/gus_wave.c | sample_map[i] = -1; |
i | 184 | drivers/sound/gus_wave.c | for (i = 0; i < 32; i++) |
i | 185 | drivers/sound/gus_wave.c | patch_map[i] = -1; |
i | 193 | drivers/sound/gus_wave.c | for (i = 0; i < MAX_PATCH; i++) |
i | 194 | drivers/sound/gus_wave.c | patch_table[i] = -1; |
i | 200 | drivers/sound/gus_wave.c | int i; |
i | 202 | drivers/sound/gus_wave.c | for (i = 0; i < 7; i++) |
i | 646 | drivers/sound/gus_wave.c | int i; |
i | 653 | drivers/sound/gus_wave.c | for (i = 0; i < 32; i++) |
i | 655 | drivers/sound/gus_wave.c | gus_voice_init (i); /* Turn voice off */ |
i | 656 | drivers/sound/gus_wave.c | gus_voice_init2 (i); |
i | 791 | drivers/sound/gus_wave.c | unsigned long i; |
i | 811 | drivers/sound/gus_wave.c | for (i = 1L; i < 1024L; i++) |
i | 818 | drivers/sound/gus_wave.c | loc = i << 10; |
i | 834 | drivers/sound/gus_wave.c | gus_mem_size = i << 10; |
i | 1252 | drivers/sound/gus_wave.c | int i; |
i | 1254 | drivers/sound/gus_wave.c | for (i = 0; i < 6; i++) |
i | 1256 | drivers/sound/gus_wave.c | voices[voice].env_rate[i] = samples[sample].env_rate[i]; |
i | 1257 | drivers/sound/gus_wave.c | voices[voice].env_offset[i] = samples[sample].env_offset[i]; |
i | 1430 | drivers/sound/gus_wave.c | int i; |
i | 1432 | drivers/sound/gus_wave.c | for (i = 0; i < 32; i++) |
i | 1434 | drivers/sound/gus_wave.c | gus_voice_init (i); |
i | 1435 | drivers/sound/gus_wave.c | gus_voice_init2 (i); |
i | 1626 | drivers/sound/gus_wave.c | long i; |
i | 1629 | drivers/sound/gus_wave.c | for (i = 0; i < blk_size; i++) |
i | 1631 | drivers/sound/gus_wave.c | GET_BYTE_FROM_USER (data, addr, sizeof_patch + i); |
i | 1634 | drivers/sound/gus_wave.c | if (!(patch.mode & WAVE_16_BITS) || (i & 0x01)) |
i | 1636 | drivers/sound/gus_wave.c | gus_poke (target + i, data); |
i | 2299 | drivers/sound/gus_wave.c | int i; |
i | 2316 | drivers/sound/gus_wave.c | for (i = 0; i < pcm_nblk; i++) |
i | 2317 | drivers/sound/gus_wave.c | pcm_datasize[i] = 0; |
i | 2346 | drivers/sound/gus_wave.c | int i; |
i | 2353 | drivers/sound/gus_wave.c | for (i = 0; i < len; i++) |
i | 2366 | drivers/sound/gus_wave.c | int i; |
i | 2374 | drivers/sound/gus_wave.c | for (i = 0; i < len; i++) |
i | 2423 | drivers/sound/gus_wave.c | int i, n; |
i | 2440 | drivers/sound/gus_wave.c | for (i = 0; i < MAX_PATCH; i++) |
i | 2442 | drivers/sound/gus_wave.c | int ptr = patch_table[i]; |
i | 2444 | drivers/sound/gus_wave.c | rec->data.data8[i] = 0; |
i | 2448 | drivers/sound/gus_wave.c | rec->data.data8[i]++; |
i | 2606 | drivers/sound/gus_wave.c | int i, p; |
i | 2613 | drivers/sound/gus_wave.c | for (i = 0; i < alloc->max_voice; i++) |
i | 2627 | drivers/sound/gus_wave.c | for (i = 0; i < alloc->max_voice; i++) |
i | 233 | drivers/sound/ics2101.c | int i; |
i | 246 | drivers/sound/ics2101.c | for (i = 0; i < ICS_MIXDEVS; i++) |
i | 247 | drivers/sound/ics2101.c | left_fix[i] = 1; |
i | 248 | drivers/sound/ics2101.c | for (i = 0; i < ICS_MIXDEVS; i++) |
i | 249 | drivers/sound/ics2101.c | right_fix[i] = 2; |
i | 303 | drivers/sound/midi_synth.c | int i; |
i | 343 | drivers/sound/midi_synth.c | for (i = 0; i < left && !PROCESS_ABORTING (sysex_sleeper, sysex_sleep_flag); i++) |
i | 347 | drivers/sound/midi_synth.c | GET_BYTE_FROM_USER (data, addr, sizeof (struct sysex_info) + i); |
i | 356 | drivers/sound/midi_synth.c | if (i == 0) |
i | 282 | drivers/sound/midibuf.c | int c, n, i; |
i | 315 | drivers/sound/midibuf.c | for (i = 0; i < n; i++) |
i | 610 | drivers/sound/mpu401.c | int i, timeout, ok; |
i | 661 | drivers/sound/mpu401.c | for (i = 0; i < cmd->nr_args; i++) |
i | 665 | drivers/sound/mpu401.c | if (!mpu401_out (dev, cmd->data[i])) |
i | 677 | drivers/sound/mpu401.c | for (i = 0; i < cmd->nr_returns; i++) |
i | 683 | drivers/sound/mpu401.c | cmd->data[i] = read_data (devc->base); |
i | 690 | drivers/sound/mpu401.c | printk ("MPU: No response(%d) to command (0x%x)\n", i, (int) cmd->cmd); |
i | 975 | drivers/sound/mpu401.c | int i; |
i | 981 | drivers/sound/mpu401.c | for (i = 0; i < 16; i++) |
i | 982 | drivers/sound/mpu401.c | irq2dev[i] = -1; |
i | 1004 | drivers/sound/mpu401.c | for (i = 0; i < 32; i++) |
i | 1005 | drivers/sound/mpu401.c | devc->controls[i] = 0x2000; |
i | 109 | drivers/sound/opl3.c | int i; |
i | 116 | drivers/sound/opl3.c | for (i = 0; i < 3; i++) |
i | 117 | drivers/sound/opl3.c | physical_voices[i].voice_mode = 4; |
i | 118 | drivers/sound/opl3.c | for (i = 3; i < 6; i++) |
i | 119 | drivers/sound/opl3.c | physical_voices[i].voice_mode = 0; |
i | 121 | drivers/sound/opl3.c | for (i = 9; i < 12; i++) |
i | 122 | drivers/sound/opl3.c | physical_voices[i].voice_mode = 4; |
i | 123 | drivers/sound/opl3.c | for (i = 12; i < 15; i++) |
i | 124 | drivers/sound/opl3.c | physical_voices[i].voice_mode = 0; |
i | 126 | drivers/sound/opl3.c | for (i = 0; i < 12; i++) |
i | 127 | drivers/sound/opl3.c | logical_voices[i] = voices_4op[i]; |
i | 193 | drivers/sound/opl3.c | int i; |
i | 242 | drivers/sound/opl3.c | for (i = 0; i < 50; i++) |
i | 279 | drivers/sound/opl3.c | for (i = 0; i < 9; i++) |
i | 280 | drivers/sound/opl3.c | opl3_command (ioaddr, KEYON_BLOCK + i, 0); /* |
i | 785 | drivers/sound/opl3.c | int i; |
i | 800 | drivers/sound/opl3.c | for (i = 0; i < 2; i++) |
i | 815 | drivers/sound/opl3.c | for (i = 0; i < 2; i++) |
i | 822 | drivers/sound/opl3.c | int i; |
i | 824 | drivers/sound/opl3.c | for (i = 0; i < nr_voices; i++) |
i | 826 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
i | 827 | drivers/sound/opl3.c | KSL_LEVEL + physical_voices[logical_voices[i]].op[0], 0xff); |
i | 829 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
i | 830 | drivers/sound/opl3.c | KSL_LEVEL + physical_voices[logical_voices[i]].op[1], 0xff); |
i | 832 | drivers/sound/opl3.c | if (physical_voices[logical_voices[i]].voice_mode == 4) |
i | 834 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
i | 835 | drivers/sound/opl3.c | KSL_LEVEL + physical_voices[logical_voices[i]].op[2], 0xff); |
i | 837 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
i | 838 | drivers/sound/opl3.c | KSL_LEVEL + physical_voices[logical_voices[i]].op[3], 0xff); |
i | 841 | drivers/sound/opl3.c | opl3_kill_note (dev, i, 0, 64); |
i | 848 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 849 | drivers/sound/opl3.c | logical_voices[i] = i; |
i | 851 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 852 | drivers/sound/opl3.c | physical_voices[i].voice_mode = 2; |
i | 1079 | drivers/sound/opl3.c | int i, p, avail_voices; |
i | 1116 | drivers/sound/opl3.c | for (i = 0; i < avail_voices; i++) |
i | 1160 | drivers/sound/opl3.c | int i; |
i | 1187 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 1188 | drivers/sound/opl3.c | if (physical_voices[i].ioaddr == USE_LEFT) |
i | 1189 | drivers/sound/opl3.c | physical_voices[i].ioaddr = left_address; |
i | 1191 | drivers/sound/opl3.c | physical_voices[i].ioaddr = right_address; |
i | 1214 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 1215 | drivers/sound/opl3.c | physical_voices[i].ioaddr = left_address; |
i | 1219 | drivers/sound/opl3.c | for (i = 0; i < SBFM_MAXINSTR; i++) |
i | 1220 | drivers/sound/opl3.c | instrmap[i].channel = -1; |
i | 274 | drivers/sound/pas2_midi.c | int i, incount; |
i | 289 | drivers/sound/pas2_midi.c | for (i = 0; i < incount; i++) |
i | 156 | drivers/sound/pas2_mixer.c | int left, right, devmask, changed, i, mixer = 0; |
i | 245 | drivers/sound/pas2_mixer.c | i = 0; |
i | 248 | drivers/sound/pas2_mixer.c | i = (level / 20) - 1; |
i | 254 | drivers/sound/pas2_mixer.c | if (i) |
i | 255 | drivers/sound/pas2_mixer.c | i = (i + 1) * 20; |
i | 256 | drivers/sound/pas2_mixer.c | return i; |
i | 275 | drivers/sound/pas2_mixer.c | for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) |
i | 276 | drivers/sound/pas2_mixer.c | if (changed & (1 << i)) |
i | 278 | drivers/sound/pas2_mixer.c | pas_mixer_set (i, levels[i]); |
i | 124 | drivers/sound/pss.c | int i, limit; |
i | 135 | drivers/sound/pss.c | for (i = 0; i < 5000000 && GET_TIME () < limit; i++) |
i | 170 | drivers/sound/pss.c | int i; |
i | 230 | drivers/sound/pss.c | for (i = 0; i < 5; i++) |
i | 629 | drivers/sound/pss.c | unsigned long i, limit = GET_TIME () + 10; |
i | 633 | drivers/sound/pss.c | for (i = 0; i < 32768 && GET_TIME () < limit; i++) |
i | 645 | drivers/sound/pss.c | int i, limit, val, count; |
i | 654 | drivers/sound/pss.c | for (i = 0; i < 32768 && GET_TIME () < limit; i++) |
i | 696 | drivers/sound/pss.c | for (i = 0; i < 32768 && GET_TIME () < limit; i++) |
i | 702 | drivers/sound/pss.c | for (i = 0; i < 32768 && GET_TIME () < limit; i++) |
i | 710 | drivers/sound/pss.c | for (i = 0; i < 32000; i++) |
i | 716 | drivers/sound/pss.c | if (i == 32000) |
i | 105 | drivers/sound/sb16_dsp.c | int i = 1 << 16; |
i | 107 | drivers/sound/sb16_dsp.c | while (--i & (!INB (DSP_STATUS) & 0x80)); |
i | 108 | drivers/sound/sb16_dsp.c | if (!i) |
i | 104 | drivers/sound/sb_dsp.c | int i; |
i | 119 | drivers/sound/sb_dsp.c | for (i = 0; i < 500000 && GET_TIME () < limit; i++) |
i | 762 | drivers/sound/sb_dsp.c | int i; |
i | 770 | drivers/sound/sb_dsp.c | for (i = 1000; i; i--) |
i | 251 | drivers/sound/sb_mixer.c | int devmask, i; |
i | 312 | drivers/sound/sb_mixer.c | for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) |
i | 313 | drivers/sound/sb_mixer.c | if ((1 << i) & devmask) |
i | 315 | drivers/sound/sb_mixer.c | regimageL |= sb16_recmasks_L[i]; |
i | 316 | drivers/sound/sb_mixer.c | regimageR |= sb16_recmasks_R[i]; |
i | 385 | drivers/sound/sb_mixer.c | int i; |
i | 387 | drivers/sound/sb_mixer.c | for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) |
i | 388 | drivers/sound/sb_mixer.c | sb_mixer_set (i, levels[i]); |
i | 443 | drivers/sound/sequencer.c | int i; |
i | 447 | drivers/sound/sequencer.c | for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) |
i | 448 | drivers/sound/sequencer.c | if (synth_devs[dev]->alloc.map[i] == key) |
i | 449 | drivers/sound/sequencer.c | return i; |
i | 887 | drivers/sound/sequencer.c | int i; |
i | 889 | drivers/sound/sequencer.c | for (i = 0; i < 128; i++) |
i | 890 | drivers/sound/sequencer.c | controller[i] = ctrl_def_values[i]; |
i | 927 | drivers/sound/sequencer.c | int retval, mode, i; |
i | 983 | drivers/sound/sequencer.c | int i, best; |
i | 986 | drivers/sound/sequencer.c | for (i = 0; i < num_sound_timers; i++) |
i | 987 | drivers/sound/sequencer.c | if (sound_timer_devs[i]->priority > best) |
i | 989 | drivers/sound/sequencer.c | tmr_no = i; |
i | 990 | drivers/sound/sequencer.c | best = sound_timer_devs[i]->priority; |
i | 1022 | drivers/sound/sequencer.c | for (i = 0; i < max_mididev; i++) |
i | 1024 | drivers/sound/sequencer.c | midi_opened[i] = 0; |
i | 1025 | drivers/sound/sequencer.c | midi_written[i] = 0; |
i | 1031 | drivers/sound/sequencer.c | for (i = 0; i < max_synthdev; i++) /* |
i | 1034 | drivers/sound/sequencer.c | if ((tmp = synth_devs[i]->open (i, mode)) < 0) |
i | 1036 | drivers/sound/sequencer.c | printk ("Sequencer: Warning! Cannot open synth device #%d (%d)\n", i, tmp); |
i | 1037 | drivers/sound/sequencer.c | if (synth_devs[i]->midi_dev) |
i | 1038 | drivers/sound/sequencer.c | printk ("(Maps to midi dev #%d\n", synth_devs[i]->midi_dev); |
i | 1042 | drivers/sound/sequencer.c | synth_open_mask |= (1 << i); |
i | 1043 | drivers/sound/sequencer.c | if (synth_devs[i]->midi_dev) /* |
i | 1046 | drivers/sound/sequencer.c | midi_opened[synth_devs[i]->midi_dev] = 1; |
i | 1057 | drivers/sound/sequencer.c | for (i = 0; i < max_mididev; i++) |
i | 1058 | drivers/sound/sequencer.c | if (!midi_opened[i]) |
i | 1060 | drivers/sound/sequencer.c | if ((retval = midi_devs[i]->open (i, mode, |
i | 1062 | drivers/sound/sequencer.c | midi_opened[i] = 1; |
i | 1076 | drivers/sound/sequencer.c | for (i = 0; i < num_synths; i++) |
i | 1077 | drivers/sound/sequencer.c | if (pmgr_present[i]) |
i | 1078 | drivers/sound/sequencer.c | pmgr_inform (i, PM_E_OPENED, 0, 0, 0, 0); |
i | 1086 | drivers/sound/sequencer.c | int i, n; |
i | 1098 | drivers/sound/sequencer.c | for (i = 0; i < max_mididev; i++) |
i | 1099 | drivers/sound/sequencer.c | if (midi_opened[i] && midi_written[i]) |
i | 1100 | drivers/sound/sequencer.c | if (midi_devs[i]->buffer_status != NULL) |
i | 1101 | drivers/sound/sequencer.c | if (midi_devs[i]->buffer_status (i)) |
i | 1117 | drivers/sound/sequencer.c | int i; |
i | 1154 | drivers/sound/sequencer.c | for (i = 0; i < max_synthdev; i++) |
i | 1155 | drivers/sound/sequencer.c | if (synth_open_mask & (1 << i)) /* |
i | 1158 | drivers/sound/sequencer.c | if (synth_devs[i]) |
i | 1160 | drivers/sound/sequencer.c | synth_devs[i]->close (i); |
i | 1162 | drivers/sound/sequencer.c | if (synth_devs[i]->midi_dev) |
i | 1163 | drivers/sound/sequencer.c | midi_opened[synth_devs[i]->midi_dev] = 0; |
i | 1166 | drivers/sound/sequencer.c | for (i = 0; i < num_synths; i++) |
i | 1167 | drivers/sound/sequencer.c | if (pmgr_present[i]) |
i | 1168 | drivers/sound/sequencer.c | pmgr_inform (i, PM_E_CLOSED, 0, 0, 0, 0); |
i | 1170 | drivers/sound/sequencer.c | for (i = 0; i < max_mididev; i++) |
i | 1171 | drivers/sound/sequencer.c | if (midi_opened[i]) |
i | 1172 | drivers/sound/sequencer.c | midi_devs[i]->close (i); |
i | 1234 | drivers/sound/sequencer.c | int i; |
i | 1246 | drivers/sound/sequencer.c | for (i = 0; i < max_synthdev; i++) |
i | 1247 | drivers/sound/sequencer.c | if (synth_open_mask & (1 << i)) |
i | 1248 | drivers/sound/sequencer.c | if (synth_devs[i]) |
i | 1249 | drivers/sound/sequencer.c | synth_devs[i]->reset (i); |
i | 1253 | drivers/sound/sequencer.c | for (i = 0; i < max_synthdev; i++) |
i | 1254 | drivers/sound/sequencer.c | if (synth_open_mask & (1 << i)) |
i | 1255 | drivers/sound/sequencer.c | if (synth_devs[i]) |
i | 1257 | drivers/sound/sequencer.c | synth_devs[i]->controller (i, chn, 0xfe, 0); /* All notes off */ |
i | 1261 | drivers/sound/sequencer.c | for (i = 0; i < max_mididev; i++) |
i | 1262 | drivers/sound/sequencer.c | if (midi_written[i]) /* |
i | 1271 | drivers/sound/sequencer.c | midi_outc (i, 0xfe); |
i | 1275 | drivers/sound/sequencer.c | midi_outc (i, |
i | 1280 | drivers/sound/sequencer.c | midi_outc (i, 0x7b); /* |
i | 1283 | drivers/sound/sequencer.c | midi_outc (i, 0); /* |
i | 1288 | drivers/sound/sequencer.c | midi_devs[i]->close (i); |
i | 1290 | drivers/sound/sequencer.c | midi_written[i] = 0; |
i | 1291 | drivers/sound/sequencer.c | midi_opened[i] = 0; |
i | 114 | drivers/sound/sound_switch.c | int i; |
i | 131 | drivers/sound/sound_switch.c | for (i = 0; i < (num_sound_drivers - 1); i++) |
i | 135 | drivers/sound/sound_switch.c | if (!put_status_int (sound_drivers[i].card_type, 10)) |
i | 139 | drivers/sound/sound_switch.c | if (!put_status (sound_drivers[i].name)) |
i | 149 | drivers/sound/sound_switch.c | for (i = 0; i < (num_sound_cards - 1); i++) |
i | 153 | drivers/sound/sound_switch.c | if (!snd_installed_cards[i].enabled) |
i | 162 | drivers/sound/sound_switch.c | if ((drv = snd_find_driver (snd_installed_cards[i].card_type)) != -1) |
i | 168 | drivers/sound/sound_switch.c | if (!put_status_int (snd_installed_cards[i].config.io_base, 16)) |
i | 172 | drivers/sound/sound_switch.c | if (!put_status_int (snd_installed_cards[i].config.irq, 10)) |
i | 176 | drivers/sound/sound_switch.c | if (!put_status_int (snd_installed_cards[i].config.dma, 10)) |
i | 179 | drivers/sound/sound_switch.c | if (!snd_installed_cards[i].enabled) |
i | 190 | drivers/sound/sound_switch.c | for (i = 0; i < num_audiodevs; i++) |
i | 192 | drivers/sound/sound_switch.c | if (!put_status_int (i, 10)) |
i | 196 | drivers/sound/sound_switch.c | if (!put_status (audio_devs[i]->name)) |
i | 205 | drivers/sound/sound_switch.c | for (i = 0; i < num_synths; i++) |
i | 207 | drivers/sound/sound_switch.c | if (!put_status_int (i, 10)) |
i | 211 | drivers/sound/sound_switch.c | if (!put_status (synth_devs[i]->info->name)) |
i | 220 | drivers/sound/sound_switch.c | for (i = 0; i < num_midis; i++) |
i | 222 | drivers/sound/sound_switch.c | if (!put_status_int (i, 10)) |
i | 226 | drivers/sound/sound_switch.c | if (!put_status (midi_devs[i]->info.name)) |
i | 235 | drivers/sound/sound_switch.c | for (i = 0; i < num_sound_timers; i++) |
i | 237 | drivers/sound/sound_switch.c | if (!put_status_int (i, 10)) |
i | 241 | drivers/sound/sound_switch.c | if (!put_status (sound_timer_devs[i]->info.name)) |
i | 53 | drivers/sound/sound_timer.c | int i; |
i | 57 | drivers/sound/sound_timer.c | for (i = 0; i < 2; i++) |
i | 62 | drivers/sound/sound_timer.c | for (i = 0; i < 2; i++) |
i | 217 | drivers/sound/soundcard.c | int i; |
i | 219 | drivers/sound/soundcard.c | for (i = 0; i < 16; i++) |
i | 291 | drivers/sound/soundcard.c | int i, dev; |
i | 338 | drivers/sound/soundcard.c | for (i = MAP_NR (start_addr); i <= MAP_NR (end_addr); i++) |
i | 340 | drivers/sound/soundcard.c | if (mem_map[i]) |
i | 343 | drivers/sound/soundcard.c | mem_map[i] = MAP_PAGE_RESERVED; |
i | 169 | fs/binfmt_elf.c | int i, k; |
i | 204 | fs/binfmt_elf.c | for(i=0; i<interp_elf_ex->e_phnum; i++, eppnt++) |
i | 303 | fs/binfmt_elf.c | int i; |
i | 390 | fs/binfmt_elf.c | for(i=0;i < elf_ex.e_phnum; i++){ |
i | 516 | fs/binfmt_elf.c | for(i=0;i < elf_ex.e_phnum; i++){ |
i | 664 | fs/binfmt_elf.c | int i,j, k; |
i | 722 | fs/binfmt_elf.c | for(i=0; i<elf_ex.e_phnum; i++) |
i | 723 | fs/binfmt_elf.c | if((elf_phdata + i)->p_type == PT_LOAD) j++; |
i | 22 | fs/block_dev.c | int blocksize, blocksize_bits, i, j, buffercount,write_error; |
i | 44 | fs/block_dev.c | i = blocksize; |
i | 46 | fs/block_dev.c | while(i != 1) { |
i | 48 | fs/block_dev.c | i >>= 1; |
i | 74 | fs/block_dev.c | for(i=0; i<blocks_per_cluster; i++) cluster_list[i] = block+i; |
i | 94 | fs/block_dev.c | for(i=1; i<blocks; i++){ |
i | 95 | fs/block_dev.c | if(((i+block) % blocks_per_cluster) == 0) { |
i | 96 | fs/block_dev.c | for(j=0; j<blocks_per_cluster; j++) cluster_list[j] = block+i+j; |
i | 99 | fs/block_dev.c | bhlist[i] = getblk (dev, block+i, blocksize); |
i | 100 | fs/block_dev.c | if(!bhlist[i]){ |
i | 101 | fs/block_dev.c | while(i >= 0) brelse(bhlist[i--]); |
i | 106 | fs/block_dev.c | for(i=1; i<blocks; i++) brelse(bhlist[i]); |
i | 131 | fs/block_dev.c | for(i=0; i<buffercount; i++){ |
i | 132 | fs/block_dev.c | wait_on_buffer(bufferlist[i]); |
i | 133 | fs/block_dev.c | if (!bufferlist[i]->b_uptodate) |
i | 135 | fs/block_dev.c | brelse(bufferlist[i]); |
i | 144 | fs/block_dev.c | for(i=0; i<buffercount; i++){ |
i | 145 | fs/block_dev.c | wait_on_buffer(bufferlist[i]); |
i | 146 | fs/block_dev.c | if (!bufferlist[i]->b_uptodate) |
i | 148 | fs/block_dev.c | brelse(bufferlist[i]); |
i | 162 | fs/block_dev.c | int blocksize_bits, i; |
i | 180 | fs/block_dev.c | i = blocksize; |
i | 182 | fs/block_dev.c | while (i != 1) { |
i | 184 | fs/block_dev.c | i >>= 1; |
i | 239 | fs/block_dev.c | for(i=0; i<blocks_per_cluster; i++) cluster_list[i] = block+i; |
i | 139 | fs/buffer.c | int i, retry, pass = 0, err = 0; |
i | 158 | fs/buffer.c | for (i = nr_buffers_type[nlist]*2 ; i-- > 0 ; bh = next) { |
i | 256 | fs/buffer.c | int i; |
i | 262 | fs/buffer.c | for (i = nr_buffers_type[nlist]*2 ; --i > 0 ; |
i | 451 | fs/buffer.c | int i, nlist; |
i | 476 | fs/buffer.c | for (i = nr_buffers_type[nlist]*2 ; --i > 0 ; bh = bhnext) { |
i | 503 | fs/buffer.c | int i; |
i | 544 | fs/buffer.c | for(i=0; i<NR_LIST; i++){ |
i | 545 | fs/buffer.c | if(i == BUF_DIRTY || i == BUF_SHARED || |
i | 546 | fs/buffer.c | nr_buffers_type[i] == 0) { |
i | 547 | fs/buffer.c | candidate[i] = NULL; |
i | 548 | fs/buffer.c | buffers[i] = 0; |
i | 551 | fs/buffer.c | buffers[i] = nr_buffers_type[i]; |
i | 552 | fs/buffer.c | for (bh = lru_list[i]; buffers[i] > 0; bh = tmp, buffers[i]--) |
i | 554 | fs/buffer.c | if(buffers[i] < 0) panic("Here is the problem"); |
i | 571 | fs/buffer.c | if(bh->b_lock && (i == BUF_LOCKED || i == BUF_LOCKED1)) { |
i | 572 | fs/buffer.c | buffers[i] = 0; |
i | 579 | fs/buffer.c | if(!buffers[i]) candidate[i] = NULL; /* Nothing on this list */ |
i | 580 | fs/buffer.c | else candidate[i] = bh; |
i | 581 | fs/buffer.c | if(candidate[i] && candidate[i]->b_count) panic("Here is the problem"); |
i | 590 | fs/buffer.c | for(i=0; i<NR_LIST; i++){ |
i | 591 | fs/buffer.c | if(!candidate[i]) continue; |
i | 592 | fs/buffer.c | if(candidate[i]->b_lru_time < best_time){ |
i | 593 | fs/buffer.c | best_time = candidate[i]->b_lru_time; |
i | 594 | fs/buffer.c | winner = i; |
i | 600 | fs/buffer.c | i = winner; |
i | 601 | fs/buffer.c | bh = candidate[i]; |
i | 602 | fs/buffer.c | candidate[i] = bh->b_next_free; |
i | 603 | fs/buffer.c | if(candidate[i] == bh) candidate[i] = NULL; /* Got last one */ |
i | 615 | fs/buffer.c | buffers[i]--; |
i | 616 | fs/buffer.c | if(buffers[i] < 0) panic("Here is the problem"); |
i | 618 | fs/buffer.c | if(buffers[i] == 0) candidate[i] = NULL; |
i | 622 | fs/buffer.c | if(candidate[i] && buffers[i] > 0){ |
i | 623 | fs/buffer.c | if(buffers[i] <= 0) panic("Here is another problem"); |
i | 624 | fs/buffer.c | for (bh = candidate[i]; buffers[i] > 0; bh = tmp, buffers[i]--) { |
i | 625 | fs/buffer.c | if(buffers[i] < 0) panic("Here is the problem"); |
i | 642 | fs/buffer.c | if(bh->b_lock && (i == BUF_LOCKED || i == BUF_LOCKED1)) { |
i | 643 | fs/buffer.c | buffers[i] = 0; |
i | 650 | fs/buffer.c | if(!buffers[i]) candidate[i] = NULL; /* Nothing here */ |
i | 651 | fs/buffer.c | else candidate[i] = bh; |
i | 652 | fs/buffer.c | if(candidate[i] && candidate[i]->b_count) |
i | 749 | fs/buffer.c | int i, dispose; |
i | 750 | fs/buffer.c | i = 0; |
i | 752 | fs/buffer.c | if(mem_map[MAP_NR((unsigned long) buf->b_data)] != 1) i = 1; |
i | 753 | fs/buffer.c | if(buf->b_lock) i |= 2; |
i | 754 | fs/buffer.c | if(buf->b_dirt) i |= 4; |
i | 755 | fs/buffer.c | dispose = buffer_disposition[i]; |
i | 758 | fs/buffer.c | if(dispose == -1) panic("Bad buffer settings (%d)\n", i); |
i | 833 | fs/buffer.c | int i, j; |
i | 855 | fs/buffer.c | for(i=1; i<blocks; i++) { |
i | 856 | fs/buffer.c | bh = getblk(dev,block+i,bufsize); |
i | 867 | fs/buffer.c | for(i=1; i<j; i++) |
i | 868 | fs/buffer.c | brelse(bhlist[i]); |
i | 895 | fs/buffer.c | int i; |
i | 904 | fs/buffer.c | for (nr_buffer_heads+=i=PAGE_SIZE/sizeof*bh ; i>0; i--) { |
i | 965 | fs/buffer.c | int i; |
i | 969 | fs/buffer.c | for (i = 0 ; i < nrbuf ; i++) { |
i | 970 | fs/buffer.c | if (bh[i] && !bh[i]->b_uptodate) |
i | 971 | fs/buffer.c | bhr[bhnum++] = bh[i]; |
i | 975 | fs/buffer.c | for (i = 0 ; i < nrbuf ; i++) { |
i | 976 | fs/buffer.c | if (bh[i]) { |
i | 977 | fs/buffer.c | wait_on_buffer(bh[i]); |
i | 1135 | fs/buffer.c | int i, j; |
i | 1143 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j+= size) { |
i | 1144 | fs/buffer.c | bh[i] = NULL; |
i | 1145 | fs/buffer.c | if (b[i]) |
i | 1146 | fs/buffer.c | bh[i] = getblk(dev, b[i], size); |
i | 1148 | fs/buffer.c | read_buffers(bh,i); |
i | 1150 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j += size, where += size) { |
i | 1151 | fs/buffer.c | if (bh[i]) { |
i | 1152 | fs/buffer.c | if (bh[i]->b_uptodate) |
i | 1153 | fs/buffer.c | memcpy((void *) where, bh[i]->b_data, size); |
i | 1154 | fs/buffer.c | brelse(bh[i]); |
i | 1332 | fs/buffer.c | int i, isize, isize1; |
i | 1345 | fs/buffer.c | for (i=0 ; !i || bh != free_list[isize]; bh = bh->b_next_free, i++) { |
i | 1362 | fs/buffer.c | i = nr_buffers_type[nlist] >> priority; |
i | 1363 | fs/buffer.c | for ( ; i-- > 0 ; bh = bh->b_next_free) { |
i | 1491 | fs/buffer.c | int i; |
i | 1501 | fs/buffer.c | for (i=0 ; !i || bh != free_list[isize] ; bh = bh->b_next_free, i++) { |
i | 1572 | fs/buffer.c | int i, offset; |
i | 1574 | fs/buffer.c | for (i = 0, offset = 0 ; offset < PAGE_SIZE ; i++, offset += size) { |
i | 1575 | fs/buffer.c | if(i && b[i]-1 != b[i-1]) return 0; /* No need to cluster */ |
i | 1576 | fs/buffer.c | if(find_buffer(dev, b[i], size)) return 0; |
i | 1605 | fs/buffer.c | int i; |
i | 1623 | fs/buffer.c | for (i = 0 ; i < MAP_NR(high_memory) ; i++) |
i | 1624 | fs/buffer.c | buffer_pages[i] = NULL; |
i | 1626 | fs/buffer.c | for (i = 0 ; i < nr_hash ; i++) |
i | 1627 | fs/buffer.c | hash_table[i] = NULL; |
i | 1670 | fs/buffer.c | int i, isize; |
i | 1691 | fs/buffer.c | for (i = nr_buffers_type[nlist]; i-- > 0; bh = next) { |
i | 1696 | fs/buffer.c | printk("Dirty list empty %d\n", i); |
i | 1745 | fs/buffer.c | int i, error; |
i | 1759 | fs/buffer.c | i = (func-2) >> 1; |
i | 1760 | fs/buffer.c | if (i < 0 || i >= N_PARAM) |
i | 1766 | fs/buffer.c | put_fs_long(bdf_prm.data[i], data); |
i | 1769 | fs/buffer.c | if (data < bdflush_min[i] || data > bdflush_max[i]) |
i | 1771 | fs/buffer.c | bdf_prm.data[i] = data; |
i | 1797 | fs/buffer.c | for (i = nr_buffers_type[nlist]; i-- > 0 && ndirty < bdf_prm.b_un.ndirty; |
i | 1803 | fs/buffer.c | printk("Dirty list empty %d\n", i); |
i | 215 | fs/dcache.c | int i; |
i | 249 | fs/dcache.c | for (i = 0 ; i < DCACHE_HASH_QUEUES ; i++) |
i | 250 | fs/dcache.c | hash_table[i].next = hash_table[i].next = |
i | 251 | fs/dcache.c | (struct dir_cache_entry *) &hash_table[i]; |
i | 33 | fs/devices.c | int i; |
i | 37 | fs/devices.c | for (i = 0; i < MAX_CHRDEV ; i++) { |
i | 38 | fs/devices.c | if (chrdevs[i].fops) { |
i | 39 | fs/devices.c | len += sprintf(page+len, "%2d %s\n", i, chrdevs[i].name); |
i | 43 | fs/devices.c | for (i = 0; i < MAX_BLKDEV ; i++) { |
i | 44 | fs/devices.c | if (blkdevs[i].fops) { |
i | 45 | fs/devices.c | len += sprintf(page+len, "%2d %s\n", i, blkdevs[i].name); |
i | 144 | fs/devices.c | int i; |
i | 147 | fs/devices.c | i = MAJOR(dev); |
i | 148 | fs/devices.c | if (i >= MAX_BLKDEV || (fops = blkdevs[i].fops) == NULL) |
i | 157 | fs/devices.c | for (i=0 ; i<NR_SUPER ; i++) |
i | 158 | fs/devices.c | if (super_blocks[i].s_dev == dev) |
i | 159 | fs/devices.c | put_super(super_blocks[i].s_dev); |
i | 173 | fs/devices.c | int i; |
i | 175 | fs/devices.c | i = MAJOR(inode->i_rdev); |
i | 176 | fs/devices.c | if (i >= MAX_BLKDEV || !blkdevs[i].fops) |
i | 178 | fs/devices.c | filp->f_op = blkdevs[i].fops; |
i | 224 | fs/devices.c | int i; |
i | 226 | fs/devices.c | i = MAJOR(inode->i_rdev); |
i | 227 | fs/devices.c | if (i >= MAX_CHRDEV || !chrdevs[i].fops) |
i | 229 | fs/devices.c | filp->f_op = chrdevs[i].fops; |
i | 167 | fs/exec.c | int i; |
i | 217 | fs/exec.c | for(i=0; i<8; i++) dump.u_debugreg[i] = current->debugreg[i]; |
i | 369 | fs/exec.c | int error, i = 0; |
i | 377 | fs/exec.c | i++; |
i | 383 | fs/exec.c | return i; |
i | 456 | fs/exec.c | int i; |
i | 463 | fs/exec.c | for (i=MAX_ARG_PAGES-1 ; i>=0 ; i--) { |
i | 465 | fs/exec.c | if (page[i]) { |
i | 467 | fs/exec.c | put_dirty_page(current,page[i],data_base); |
i | 524 | fs/exec.c | int i; |
i | 531 | fs/exec.c | for (i=0; (ch = *(name++)) != '\0';) { |
i | 533 | fs/exec.c | i = 0; |
i | 535 | fs/exec.c | if (i < 15) |
i | 536 | fs/exec.c | current->comm[i++] = ch; |
i | 538 | fs/exec.c | current->comm[i] = '\0'; |
i | 558 | fs/exec.c | for (i=1 ; i<NR_TASKS ; i++) { |
i | 559 | fs/exec.c | if (task[i] == current) { |
i | 560 | fs/exec.c | set_ldt_desc(gdt+(i<<1)+ |
i | 562 | fs/exec.c | load_ldt(i); |
i | 567 | fs/exec.c | for (i=0 ; i<8 ; i++) current->debugreg[i] = 0; |
i | 573 | fs/exec.c | for (i=0 ; i<32 ; i++) { |
i | 574 | fs/exec.c | current->sigaction[i].sa_mask = 0; |
i | 575 | fs/exec.c | current->sigaction[i].sa_flags = 0; |
i | 576 | fs/exec.c | if (current->sigaction[i].sa_handler != SIG_IGN) |
i | 577 | fs/exec.c | current->sigaction[i].sa_handler = NULL; |
i | 579 | fs/exec.c | for (i=0 ; i<NR_OPEN ; i++) |
i | 580 | fs/exec.c | if (FD_ISSET(i,¤t->files->close_on_exec)) |
i | 581 | fs/exec.c | sys_close(i); |
i | 597 | fs/exec.c | int i; |
i | 604 | fs/exec.c | for (i=0 ; i<MAX_ARG_PAGES ; i++) /* clear page-table */ |
i | 605 | fs/exec.c | bprm.page[i] = 0; |
i | 628 | fs/exec.c | i = bprm.inode->i_mode; |
i | 629 | fs/exec.c | if (IS_NOSUID(bprm.inode) && (((i & S_ISUID) && bprm.inode->i_uid != current-> |
i | 630 | fs/exec.c | euid) || ((i & S_ISGID) && !in_group_p(bprm.inode->i_gid))) && !suser()) { |
i | 639 | fs/exec.c | bprm.e_uid = (i & S_ISUID) ? bprm.inode->i_uid : current->euid; |
i | 640 | fs/exec.c | bprm.e_gid = (i & S_ISGID) ? bprm.inode->i_gid : current->egid; |
i | 758 | fs/exec.c | for (i=0 ; i<MAX_ARG_PAGES ; i++) |
i | 759 | fs/exec.c | free_page(bprm.page[i]); |
i | 70 | fs/ext/dir.c | unsigned int i; |
i | 89 | fs/ext/dir.c | for (i = 0; i < 1024 && i < offset; ) { |
i | 90 | fs/ext/dir.c | de = (struct ext_dir_entry *) (bh->b_data + i); |
i | 93 | fs/ext/dir.c | i += de->rec_len; |
i | 95 | fs/ext/dir.c | offset = i; |
i | 112 | fs/ext/dir.c | for (i = 0; i < de->name_len; i++) |
i | 113 | fs/ext/dir.c | if ((c = de->name[i]) != 0) |
i | 114 | fs/ext/dir.c | put_fs_byte(c,i+dirent->d_name); |
i | 117 | fs/ext/dir.c | if (i) { |
i | 119 | fs/ext/dir.c | put_fs_byte(0,i+dirent->d_name); |
i | 120 | fs/ext/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 121 | fs/ext/dir.c | ret = ROUND_UP(NAME_OFFSET(dirent)+i+1); |
i | 85 | fs/ext/fsync.c | int i; |
i | 88 | fs/ext/fsync.c | for (i = 0; i < 9; i++) { |
i | 89 | fs/ext/fsync.c | rc = sync_block (inode, inode->u.ext_i.i_data + i, wait); |
i | 100 | fs/ext/fsync.c | int i; |
i | 108 | fs/ext/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 110 | fs/ext/fsync.c | ((unsigned long *) ind_bh->b_data) + i, |
i | 124 | fs/ext/fsync.c | int i; |
i | 132 | fs/ext/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 134 | fs/ext/fsync.c | ((unsigned long *) dind_bh->b_data) + i, |
i | 148 | fs/ext/fsync.c | int i; |
i | 156 | fs/ext/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 158 | 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 | 190 | fs/ext/namei.c | int i; |
i | 289 | fs/ext/namei.c | for (i=0; i < namelen ; i++) |
i | 290 | fs/ext/namei.c | de->name[i] = name[i]; |
i | 625 | fs/ext/namei.c | int i; |
i | 642 | fs/ext/namei.c | i = 0; |
i | 643 | fs/ext/namei.c | while (i < 1023 && (c = *(symname++))) |
i | 644 | fs/ext/namei.c | name_block->b_data[i++] = c; |
i | 645 | fs/ext/namei.c | name_block->b_data[i] = 0; |
i | 648 | 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 | 34 | fs/ext/truncate.c | int i, tmp; |
i | 41 | fs/ext/truncate.c | for (i = DIRECT_BLOCK ; i < 9 ; i++) { |
i | 42 | fs/ext/truncate.c | p = inode->u.ext_i.i_data+i; |
i | 46 | fs/ext/truncate.c | if (i < DIRECT_BLOCK) { |
i | 65 | fs/ext/truncate.c | int i, tmp; |
i | 85 | fs/ext/truncate.c | for (i = INDIRECT_BLOCK ; i < 256 ; i++) { |
i | 86 | fs/ext/truncate.c | if (i < 0) |
i | 87 | fs/ext/truncate.c | i = 0; |
i | 88 | fs/ext/truncate.c | if (i < INDIRECT_BLOCK) |
i | 90 | fs/ext/truncate.c | ind = i+(unsigned long *) ind_bh->b_data; |
i | 95 | fs/ext/truncate.c | if (i < INDIRECT_BLOCK) { |
i | 110 | fs/ext/truncate.c | for (i = 0; i < 256; i++) |
i | 113 | fs/ext/truncate.c | if (i >= 256) |
i | 128 | fs/ext/truncate.c | int i,tmp; |
i | 147 | fs/ext/truncate.c | for (i = DINDIRECT_BLOCK ; i < 256 ; i ++) { |
i | 148 | fs/ext/truncate.c | if (i < 0) |
i | 149 | fs/ext/truncate.c | i = 0; |
i | 150 | fs/ext/truncate.c | if (i < DINDIRECT_BLOCK) |
i | 152 | fs/ext/truncate.c | dind = i+(unsigned long *) dind_bh->b_data; |
i | 156 | fs/ext/truncate.c | retry |= trunc_indirect(inode,offset+(i<<8),dind); |
i | 160 | fs/ext/truncate.c | for (i = 0; i < 256; i++) |
i | 163 | fs/ext/truncate.c | if (i >= 256) |
i | 178 | fs/ext/truncate.c | int i,tmp; |
i | 197 | fs/ext/truncate.c | for (i = TINDIRECT_BLOCK ; i < 256 ; i ++) { |
i | 198 | fs/ext/truncate.c | if (i < 0) |
i | 199 | fs/ext/truncate.c | i = 0; |
i | 200 | fs/ext/truncate.c | if (i < TINDIRECT_BLOCK) |
i | 202 | fs/ext/truncate.c | tind = i+(unsigned long *) tind_bh->b_data; |
i | 203 | fs/ext/truncate.c | retry |= trunc_dindirect(inode,9+256+256*256+(i<<16),tind); |
i | 207 | fs/ext/truncate.c | for (i = 0; i < 256; i++) |
i | 210 | fs/ext/truncate.c | if (i >= 256) |
i | 97 | fs/ext2/balloc.c | int i, j; |
i | 121 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_loaded_block_bitmaps && |
i | 122 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[i] != block_group; i++) |
i | 124 | fs/ext2/balloc.c | if (i < sb->u.ext2_sb.s_loaded_block_bitmaps && |
i | 125 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[i] == block_group) { |
i | 126 | fs/ext2/balloc.c | block_bitmap_number = sb->u.ext2_sb.s_block_bitmap_number[i]; |
i | 127 | fs/ext2/balloc.c | block_bitmap = sb->u.ext2_sb.s_block_bitmap[i]; |
i | 128 | fs/ext2/balloc.c | for (j = i; j > 0; j--) { |
i | 174 | fs/ext2/balloc.c | unsigned long i; |
i | 220 | fs/ext2/balloc.c | for (i = 0; i < count; i++) { |
i | 221 | fs/ext2/balloc.c | if (!clear_bit (bit + i, bh->b_data)) |
i | 258 | fs/ext2/balloc.c | int i, j, k, tmp; |
i | 289 | fs/ext2/balloc.c | i = (goal - es->s_first_data_block) / EXT2_BLOCKS_PER_GROUP(sb); |
i | 290 | fs/ext2/balloc.c | gdp = get_group_desc (sb, i, &bh2); |
i | 297 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 300 | fs/ext2/balloc.c | ext2_debug ("goal is at %d:%d.\n", i, j); |
i | 357 | fs/ext2/balloc.c | ext2_debug ("Bit not found in block group %d.\n", i); |
i | 364 | fs/ext2/balloc.c | i++; |
i | 365 | fs/ext2/balloc.c | if (i >= sb->u.ext2_sb.s_groups_count) |
i | 366 | fs/ext2/balloc.c | i = 0; |
i | 367 | fs/ext2/balloc.c | gdp = get_group_desc (sb, i, &bh2); |
i | 375 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 386 | fs/ext2/balloc.c | "Free blocks count corrupted for block group %d", i); |
i | 401 | fs/ext2/balloc.c | ext2_debug ("using block group %d(%d)\n", i, gdp->bg_free_blocks_count); |
i | 403 | fs/ext2/balloc.c | tmp = j + i * EXT2_BLOCKS_PER_GROUP(sb) + es->s_first_data_block; |
i | 452 | fs/ext2/balloc.c | "block_group = %d, block=%d", i, j); |
i | 485 | fs/ext2/balloc.c | int i; |
i | 492 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 493 | fs/ext2/balloc.c | gdp = get_group_desc (sb, i, NULL); |
i | 495 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 499 | fs/ext2/balloc.c | i, gdp->bg_free_blocks_count, x); |
i | 527 | fs/ext2/balloc.c | int i, j; |
i | 536 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 537 | fs/ext2/balloc.c | gdp = get_group_desc (sb, i, NULL); |
i | 539 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 544 | fs/ext2/balloc.c | "Superblock in group %d is marked free", i); |
i | 550 | fs/ext2/balloc.c | "%d is marked free", j, i); |
i | 555 | fs/ext2/balloc.c | i); |
i | 560 | fs/ext2/balloc.c | i); |
i | 566 | fs/ext2/balloc.c | "group %d is marked free", j, i); |
i | 572 | fs/ext2/balloc.c | "stored = %d, counted = %lu", i, |
i | 16 | fs/ext2/bitmap.c | unsigned int i; |
i | 21 | fs/ext2/bitmap.c | for (i = 0; i < numchars; i++) |
i | 22 | fs/ext2/bitmap.c | sum += nibblemap[map->b_data[i] & 0xf] + |
i | 23 | fs/ext2/bitmap.c | nibblemap[(map->b_data[i] >> 4) & 0xf]; |
i | 104 | fs/ext2/dir.c | int i, num, stored, dlen; |
i | 130 | fs/ext2/dir.c | for (i = 16 >> (EXT2_BLOCK_SIZE_BITS(sb) - 9), num = 0; |
i | 131 | fs/ext2/dir.c | i > 0; i--) { |
i | 140 | fs/ext2/dir.c | for (i = 0; i < num; i++) |
i | 141 | fs/ext2/dir.c | brelse (bha[i]); |
i | 151 | fs/ext2/dir.c | for (i = 0; i < sb->s_blocksize && i < offset; ) { |
i | 153 | fs/ext2/dir.c | (bh->b_data + i); |
i | 162 | fs/ext2/dir.c | i += de->rec_len; |
i | 164 | fs/ext2/dir.c | offset = i; |
i | 201 | fs/ext2/dir.c | i = de->name_len; |
i | 202 | fs/ext2/dir.c | memcpy_tofs (dirent->d_name, de->name, i); |
i | 204 | fs/ext2/dir.c | put_fs_byte (0, dirent->d_name + i); |
i | 205 | fs/ext2/dir.c | put_fs_word (i, &dirent->d_reclen); |
i | 241 | fs/ext2/file.c | int i,buffercount,write_error; |
i | 314 | fs/ext2/file.c | for(i=0; i<buffercount; i++){ |
i | 315 | fs/ext2/file.c | wait_on_buffer(bufferlist[i]); |
i | 316 | fs/ext2/file.c | if (!bufferlist[i]->b_uptodate) |
i | 318 | fs/ext2/file.c | brelse(bufferlist[i]); |
i | 327 | fs/ext2/file.c | for(i=0; i<buffercount; i++){ |
i | 328 | fs/ext2/file.c | wait_on_buffer(bufferlist[i]); |
i | 329 | fs/ext2/file.c | if (!bufferlist[i]->b_uptodate) |
i | 331 | fs/ext2/file.c | brelse(bufferlist[i]); |
i | 84 | fs/ext2/fsync.c | int i; |
i | 87 | fs/ext2/fsync.c | for (i = 0; i < EXT2_NDIR_BLOCKS; i++) { |
i | 88 | fs/ext2/fsync.c | rc = sync_block (inode, inode->u.ext2_i.i_data + i, wait); |
i | 100 | fs/ext2/fsync.c | int i; |
i | 108 | fs/ext2/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 110 | fs/ext2/fsync.c | ((unsigned long *) ind_bh->b_data) + i, |
i | 124 | fs/ext2/fsync.c | int i; |
i | 132 | fs/ext2/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 134 | fs/ext2/fsync.c | ((unsigned long *) dind_bh->b_data) + i, |
i | 148 | fs/ext2/fsync.c | int i; |
i | 156 | fs/ext2/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 158 | fs/ext2/fsync.c | ((unsigned long *) tind_bh->b_data) + i, |
i | 96 | fs/ext2/ialloc.c | int i, j; |
i | 121 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_loaded_inode_bitmaps && |
i | 122 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[i] != block_group; |
i | 123 | fs/ext2/ialloc.c | i++) |
i | 125 | fs/ext2/ialloc.c | if (i < sb->u.ext2_sb.s_loaded_inode_bitmaps && |
i | 126 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[i] == block_group) { |
i | 127 | fs/ext2/ialloc.c | inode_bitmap_number = sb->u.ext2_sb.s_inode_bitmap_number[i]; |
i | 128 | fs/ext2/ialloc.c | inode_bitmap = sb->u.ext2_sb.s_inode_bitmap[i]; |
i | 129 | fs/ext2/ialloc.c | for (j = i; j > 0; j--) { |
i | 310 | fs/ext2/ialloc.c | int i, j, avefreei; |
i | 325 | fs/ext2/ialloc.c | gdp = NULL; i=0; |
i | 351 | fs/ext2/ialloc.c | i = j; |
i | 363 | fs/ext2/ialloc.c | i = dir->u.ext2_i.i_block_group; |
i | 364 | fs/ext2/ialloc.c | tmp = get_group_desc (sb, i, &bh2); |
i | 374 | fs/ext2/ialloc.c | i += j; |
i | 375 | fs/ext2/ialloc.c | if (i >= sb->u.ext2_sb.s_groups_count) |
i | 376 | fs/ext2/ialloc.c | i -= sb->u.ext2_sb.s_groups_count; |
i | 377 | fs/ext2/ialloc.c | tmp = get_group_desc (sb, i, &bh2); |
i | 388 | fs/ext2/ialloc.c | i = dir->u.ext2_i.i_block_group + 1; |
i | 390 | fs/ext2/ialloc.c | if (++i >= sb->u.ext2_sb.s_groups_count) |
i | 391 | fs/ext2/ialloc.c | i = 0; |
i | 392 | fs/ext2/ialloc.c | tmp = get_group_desc (sb, i, &bh2); |
i | 406 | fs/ext2/ialloc.c | bitmap_nr = load_inode_bitmap (sb, i); |
i | 425 | fs/ext2/ialloc.c | i); |
i | 432 | fs/ext2/ialloc.c | j += i * EXT2_INODES_PER_GROUP(sb) + 1; |
i | 436 | fs/ext2/ialloc.c | "block_group = %d,inode=%d", i, j); |
i | 476 | fs/ext2/ialloc.c | inode->u.ext2_i.i_block_group = i; |
i | 496 | fs/ext2/ialloc.c | int i; |
i | 503 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 504 | fs/ext2/ialloc.c | gdp = get_group_desc (sb, i, NULL); |
i | 506 | fs/ext2/ialloc.c | bitmap_nr = load_inode_bitmap (sb, i); |
i | 510 | fs/ext2/ialloc.c | i, gdp->bg_free_inodes_count, x); |
i | 528 | fs/ext2/ialloc.c | int i; |
i | 535 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 536 | fs/ext2/ialloc.c | gdp = get_group_desc (sb, i, NULL); |
i | 538 | fs/ext2/ialloc.c | bitmap_nr = load_inode_bitmap (sb, i); |
i | 544 | fs/ext2/ialloc.c | "stored = %d, counted = %lu", i, |
i | 64 | fs/ext2/inode.c | int i = inode->u.ext2_i.i_prealloc_count; |
i | 68 | fs/ext2/inode.c | i); |
i | 128 | fs/ext2/inode.c | int i; |
i | 145 | fs/ext2/inode.c | i = inode_bmap (inode, EXT2_IND_BLOCK); |
i | 146 | fs/ext2/inode.c | if (!i) |
i | 148 | fs/ext2/inode.c | return block_bmap (bread (inode->i_dev, i, |
i | 153 | fs/ext2/inode.c | i = inode_bmap (inode, EXT2_DIND_BLOCK); |
i | 154 | fs/ext2/inode.c | if (!i) |
i | 156 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, |
i | 159 | fs/ext2/inode.c | if (!i) |
i | 161 | fs/ext2/inode.c | return block_bmap (bread (inode->i_dev, i, |
i | 166 | fs/ext2/inode.c | i = inode_bmap (inode, EXT2_TIND_BLOCK); |
i | 167 | fs/ext2/inode.c | if (!i) |
i | 169 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i | 171 | fs/ext2/inode.c | if (!i) |
i | 173 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i | 175 | fs/ext2/inode.c | if (!i) |
i | 177 | fs/ext2/inode.c | return block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i | 330 | fs/ext2/inode.c | int i; |
i | 339 | fs/ext2/inode.c | for(i=0; i< (PAGE_SIZE / inode->i_sb->s_blocksize); i++) { |
i | 340 | fs/ext2/inode.c | p = (unsigned long *) bh->b_data + nr + i; |
i | 346 | fs/ext2/inode.c | if(i==0) firstblock = *p; |
i | 347 | fs/ext2/inode.c | else if(*p != firstblock + i) goto out; |
i | 75 | fs/ext2/namei.c | int block, toread, i, err; |
i | 133 | fs/ext2/namei.c | for (i = 0; i < NAMEI_RA_SIZE; ++i) { |
i | 134 | fs/ext2/namei.c | if (bh_use[i] != bh) |
i | 135 | fs/ext2/namei.c | brelse (bh_use[i]); |
i | 157 | fs/ext2/namei.c | for (i = 0; i < NAMEI_RA_SIZE; ++i) |
i | 158 | fs/ext2/namei.c | brelse (bh_use[i]); |
i | 342 | fs/ext2/namei.c | int i; |
i | 344 | fs/ext2/namei.c | i = 0; |
i | 347 | fs/ext2/namei.c | while (i < bh->b_size) { |
i | 349 | fs/ext2/namei.c | de, bh, i)) |
i | 357 | fs/ext2/namei.c | i += de->rec_len; |
i | 748 | fs/ext2/namei.c | int i, err; |
i | 780 | fs/ext2/namei.c | i = 0; |
i | 781 | fs/ext2/namei.c | while (i < inode->i_sb->s_blocksize - 1 && (c = *(symname++))) |
i | 782 | fs/ext2/namei.c | link[i++] = c; |
i | 783 | fs/ext2/namei.c | link[i] = 0; |
i | 788 | fs/ext2/namei.c | inode->i_size = i; |
i | 94 | fs/ext2/super.c | int i; |
i | 103 | fs/ext2/super.c | for (i = 0; i < db_count; i++) |
i | 104 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc[i]) |
i | 105 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[i]); |
i | 108 | fs/ext2/super.c | for (i = 0; i < EXT2_MAX_GROUP_LOADED; i++) |
i | 109 | fs/ext2/super.c | if (sb->u.ext2_sb.s_inode_bitmap[i]) |
i | 110 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_inode_bitmap[i]); |
i | 111 | fs/ext2/super.c | for (i = 0; i < EXT2_MAX_GROUP_LOADED; i++) |
i | 112 | fs/ext2/super.c | if (sb->u.ext2_sb.s_block_bitmap[i]) |
i | 113 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_block_bitmap[i]); |
i | 140 | fs/ext2/super.c | int i; |
i | 155 | fs/ext2/super.c | for (i = 0; i < groups_count; i++) { |
i | 156 | fs/ext2/super.c | gdp[i].bg_block_bitmap = old_group_desc[i].bg_block_bitmap; |
i | 157 | fs/ext2/super.c | gdp[i].bg_inode_bitmap = old_group_desc[i].bg_inode_bitmap; |
i | 158 | fs/ext2/super.c | gdp[i].bg_inode_table = old_group_desc[i].bg_inode_table; |
i | 159 | fs/ext2/super.c | gdp[i].bg_free_blocks_count = old_group_desc[i].bg_free_blocks_count; |
i | 160 | fs/ext2/super.c | gdp[i].bg_free_inodes_count = old_group_desc[i].bg_free_inodes_count; |
i | 346 | fs/ext2/super.c | int i; |
i | 353 | fs/ext2/super.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) |
i | 355 | fs/ext2/super.c | if ((i % EXT2_DESC_PER_BLOCK(sb)) == 0) |
i | 363 | fs/ext2/super.c | i, gdp->bg_block_bitmap); |
i | 372 | fs/ext2/super.c | i, gdp->bg_inode_bitmap); |
i | 382 | fs/ext2/super.c | i, gdp->bg_inode_table); |
i | 402 | fs/ext2/super.c | int i, j; |
i | 570 | fs/ext2/super.c | for (i = 0; i < db_count; i++) { |
i | 571 | fs/ext2/super.c | sb->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1, |
i | 573 | fs/ext2/super.c | if (!sb->u.ext2_sb.s_group_desc[i]) { |
i | 576 | fs/ext2/super.c | for (j = 0; j < i; j++) |
i | 596 | fs/ext2/super.c | for (i = 0; i < EXT2_MAX_GROUP_LOADED; i++) { |
i | 597 | fs/ext2/super.c | sb->u.ext2_sb.s_inode_bitmap_number[i] = 0; |
i | 598 | fs/ext2/super.c | sb->u.ext2_sb.s_inode_bitmap[i] = NULL; |
i | 599 | fs/ext2/super.c | sb->u.ext2_sb.s_block_bitmap_number[i] = 0; |
i | 600 | fs/ext2/super.c | sb->u.ext2_sb.s_block_bitmap[i] = NULL; |
i | 613 | fs/ext2/super.c | for (i = 0; i < db_count; i++) |
i | 614 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc[i]) |
i | 615 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[i]); |
i | 624 | fs/ext2/super.c | for (i = 0; i < db_count; i++) |
i | 625 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_group_desc[i], 1); |
i | 99 | fs/ext2/symlink.c | int i, err; |
i | 118 | fs/ext2/symlink.c | i = 0; |
i | 119 | fs/ext2/symlink.c | while (i < buflen && (c = link[i])) { |
i | 120 | fs/ext2/symlink.c | i++; |
i | 126 | fs/ext2/symlink.c | return i; |
i | 48 | fs/ext2/truncate.c | int i, tmp; |
i | 60 | fs/ext2/truncate.c | for (i = direct_block ; i < EXT2_NDIR_BLOCKS ; i++) { |
i | 61 | fs/ext2/truncate.c | p = inode->u.ext2_i.i_data + i; |
i | 71 | fs/ext2/truncate.c | if (i < direct_block) { |
i | 107 | fs/ext2/truncate.c | int i, tmp; |
i | 132 | fs/ext2/truncate.c | for (i = indirect_block ; i < addr_per_block ; i++) { |
i | 133 | fs/ext2/truncate.c | if (i < 0) |
i | 134 | fs/ext2/truncate.c | i = 0; |
i | 135 | fs/ext2/truncate.c | if (i < indirect_block) |
i | 137 | fs/ext2/truncate.c | ind = i + (unsigned long *) ind_bh->b_data; |
i | 147 | fs/ext2/truncate.c | if (i < indirect_block) { |
i | 180 | fs/ext2/truncate.c | for (i = 0; i < addr_per_block; i++) |
i | 183 | fs/ext2/truncate.c | if (i >= addr_per_block) |
i | 204 | fs/ext2/truncate.c | int i, tmp; |
i | 226 | fs/ext2/truncate.c | for (i = dindirect_block ; i < addr_per_block ; i++) { |
i | 227 | fs/ext2/truncate.c | if (i < 0) |
i | 228 | fs/ext2/truncate.c | i = 0; |
i | 229 | fs/ext2/truncate.c | if (i < dindirect_block) |
i | 231 | fs/ext2/truncate.c | dind = i + (unsigned long *) dind_bh->b_data; |
i | 235 | fs/ext2/truncate.c | retry |= trunc_indirect (inode, offset + (i * addr_per_block), |
i | 240 | fs/ext2/truncate.c | for (i = 0; i < addr_per_block; i++) |
i | 243 | fs/ext2/truncate.c | if (i >= addr_per_block) |
i | 263 | fs/ext2/truncate.c | int i, tmp; |
i | 287 | fs/ext2/truncate.c | for (i = tindirect_block ; i < addr_per_block ; i++) { |
i | 288 | fs/ext2/truncate.c | if (i < 0) |
i | 289 | fs/ext2/truncate.c | i = 0; |
i | 290 | fs/ext2/truncate.c | if (i < tindirect_block) |
i | 292 | fs/ext2/truncate.c | tind = i + (unsigned long *) tind_bh->b_data; |
i | 294 | fs/ext2/truncate.c | addr_per_block + (i + 1) * addr_per_block * addr_per_block, |
i | 299 | fs/ext2/truncate.c | for (i = 0; i < addr_per_block; i++) |
i | 302 | 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 | 845 | fs/hpfs/hpfs_fs.c | unsigned i, count; |
i | 853 | fs/hpfs/hpfs_fs.c | for (i = 0; i < 8 * 2048; i++) |
i | 854 | fs/hpfs/hpfs_fs.c | count += (test_bit(i, bits) != 0); |
i | 1037 | fs/hpfs/hpfs_fs.c | int i; |
i | 1047 | fs/hpfs/hpfs_fs.c | for (i = 0; i < b->n_used_nodes; i++) { |
i | 1048 | fs/hpfs/hpfs_fs.c | unsigned t = file_secno - n[i].file_secno; |
i | 1049 | fs/hpfs/hpfs_fs.c | if (t < n[i].length) { |
i | 1050 | fs/hpfs/hpfs_fs.c | inode->i_hpfs_file_sec = n[i].file_secno; |
i | 1051 | fs/hpfs/hpfs_fs.c | inode->i_hpfs_disk_sec = n[i].disk_secno; |
i | 1052 | fs/hpfs/hpfs_fs.c | inode->i_hpfs_n_secs = n[i].length; |
i | 1053 | fs/hpfs/hpfs_fs.c | return n[i].disk_secno + t; |
i | 1065 | fs/hpfs/hpfs_fs.c | for (i = 0; i < b->n_used_nodes; i++) { |
i | 1066 | fs/hpfs/hpfs_fs.c | if (file_secno < n[i].file_secno) { |
i | 1068 | fs/hpfs/hpfs_fs.c | anode_secno ano = n[i].down; |
i | 1546 | fs/hpfs/hpfs_fs.c | int i; |
i | 1553 | fs/hpfs/hpfs_fs.c | for (i = 1; de < de_end; i++, de = de_next_de(de)) { |
i | 1554 | fs/hpfs/hpfs_fs.c | if (i == n) |
i | 24 | fs/inode.c | static inline int const hashfn(dev_t dev, unsigned int i) |
i | 26 | fs/inode.c | return (dev ^ i) % NR_IHASH; |
i | 29 | fs/inode.c | static inline struct inode_hash_entry * const hash(dev_t dev, int i) |
i | 31 | fs/inode.c | return hash_table + hashfn(dev, i); |
i | 92 | fs/inode.c | int i; |
i | 97 | fs/inode.c | i=PAGE_SIZE / sizeof(struct inode); |
i | 98 | fs/inode.c | nr_inodes += i; |
i | 99 | fs/inode.c | nr_free_inodes += i; |
i | 102 | fs/inode.c | inode->i_next = inode->i_prev = first_inode = inode++, i--; |
i | 104 | fs/inode.c | for ( ; i ; i-- ) |
i | 165 | fs/inode.c | int i; |
i | 168 | fs/inode.c | for (i = nr_inodes ; i > 0 ; i--) { |
i | 183 | fs/inode.c | int i; |
i | 186 | fs/inode.c | for (i=0 ; i < nr_inodes ; i++, inode = inode->i_next) { |
i | 199 | fs/inode.c | int i; |
i | 202 | fs/inode.c | for (file = first_file, i=0; i<nr_files; i++, file=file->f_next) { |
i | 342 | fs/inode.c | int i; |
i | 345 | fs/inode.c | for(i = nr_inodes ; i > 0 ; i--) { |
i | 360 | fs/inode.c | int i; |
i | 364 | fs/inode.c | for(i = 0; i < nr_inodes*2; i++, inode = inode->i_next) { |
i | 421 | fs/inode.c | int i; |
i | 428 | fs/inode.c | for (i = 0; i<nr_inodes; inode = inode->i_next, i++) { |
i | 68 | fs/isofs/dir.c | unsigned int block,offset,i, j; |
i | 147 | fs/isofs/dir.c | i = 1; |
i | 159 | fs/isofs/dir.c | i = 2; |
i | 193 | fs/isofs/dir.c | i = dlen; |
i | 203 | fs/isofs/dir.c | i = dlen; |
i | 210 | fs/isofs/dir.c | for (i = 0; i < dlen && i < NAME_MAX; i++) { |
i | 211 | fs/isofs/dir.c | if (!(c = dpnt1[i])) break; |
i | 213 | fs/isofs/dir.c | if (c == '.' && i == dlen-3 && de->name[i+1] == ';' && de->name[i+2] == '1') |
i | 215 | fs/isofs/dir.c | if (c == ';' && i == dlen-2 && de->name[i+1] == '1') |
i | 218 | fs/isofs/dir.c | dpnt[i] = c; |
i | 221 | fs/isofs/dir.c | for(j=0; j<i; j++) |
i | 228 | fs/isofs/dir.c | dcache_add(inode, dpnt, i, inode_number); |
i | 231 | fs/isofs/dir.c | printk("Nchar: %d\n",i); |
i | 240 | fs/isofs/dir.c | if (i) { |
i | 242 | fs/isofs/dir.c | put_fs_byte(0,i+dirent->d_name); |
i | 243 | fs/isofs/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 245 | fs/isofs/dir.c | return ROUND_UP(NAME_OFFSET(dirent) + i + 1); |
i | 97 | fs/isofs/file.c | int result, i; |
i | 105 | fs/isofs/file.c | for(i=0;i<(inode->i_size < ISOFS_BUFFER_SIZE(inode) ? inode->i_size : ISOFS_BUFFER_SIZE(inode)); |
i | 106 | fs/isofs/file.c | i++,pnt++){ |
i | 175 | fs/isofs/inode.c | int i = opt.blocksize; |
i | 176 | fs/isofs/inode.c | while (i != 1){ |
i | 178 | fs/isofs/inode.c | i >>=1; |
i | 357 | fs/isofs/inode.c | int i; |
i | 409 | fs/isofs/inode.c | for(i=0; i< raw_inode->name_len[0]; i++) |
i | 410 | fs/isofs/inode.c | if(raw_inode->name[i]=='.' || raw_inode->name[i]==';') |
i | 412 | fs/isofs/inode.c | if(i == raw_inode->name_len[0] || raw_inode->name[i] == ';') |
i | 66 | fs/isofs/namei.c | unsigned int block, i, f_pos, offset, inode_number; |
i | 172 | fs/isofs/namei.c | for (i = 0; i < dlen; i++) { |
i | 173 | fs/isofs/namei.c | c = dpnt[i]; |
i | 175 | fs/isofs/namei.c | if (c == ';' && i == dlen-2 && dpnt[i+1] == '1') { |
i | 180 | 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 | 22 | fs/minix/bitmap.c | unsigned i, j, end, sum = 0; |
i | 25 | fs/minix/bitmap.c | for (i=0; (i<numblocks) && numbits; i++) { |
i | 26 | fs/minix/bitmap.c | if (!(bh=map[i])) |
i | 81 | fs/minix/bitmap.c | int i,j; |
i | 89 | fs/minix/bitmap.c | for (i=0 ; i<8 ; i++) |
i | 90 | fs/minix/bitmap.c | if ((bh=sb->u.minix_sb.s_zmap[i]) != NULL) |
i | 93 | fs/minix/bitmap.c | if (i>=8 || !bh || j>=8192) |
i | 100 | fs/minix/bitmap.c | j += i*8192 + sb->u.minix_sb.s_firstdatazone-1; |
i | 164 | fs/minix/bitmap.c | int i,j; |
i | 172 | fs/minix/bitmap.c | for (i=0 ; i<8 ; i++) |
i | 173 | fs/minix/bitmap.c | if ((bh = inode->i_sb->u.minix_sb.s_imap[i]) != NULL) |
i | 186 | fs/minix/bitmap.c | j += i*8192; |
i | 63 | fs/minix/dir.c | unsigned int offset,i,ret; |
i | 90 | fs/minix/dir.c | for (i = 0; i < info->s_namelen; i++) |
i | 91 | fs/minix/dir.c | if ((c = de->name[i]) != 0) |
i | 92 | fs/minix/dir.c | put_fs_byte(c,i+dirent->d_name); |
i | 95 | fs/minix/dir.c | if (i) { |
i | 97 | fs/minix/dir.c | put_fs_byte(0,i+dirent->d_name); |
i | 98 | fs/minix/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 101 | fs/minix/dir.c | ret = ROUND_UP(NAME_OFFSET(dirent)+i+1); |
i | 83 | fs/minix/fsync.c | int i; |
i | 86 | fs/minix/fsync.c | for (i = 0; i < 7; i++) { |
i | 87 | fs/minix/fsync.c | rc = sync_block (inode, inode->u.minix_i.i_data + i, wait); |
i | 98 | fs/minix/fsync.c | int i; |
i | 106 | fs/minix/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 108 | fs/minix/fsync.c | ((unsigned short *) ind_bh->b_data) + i, |
i | 122 | fs/minix/fsync.c | int i; |
i | 130 | fs/minix/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 132 | fs/minix/fsync.c | ((unsigned short *) dind_bh->b_data) + i, |
i | 52 | fs/minix/inode.c | int i; |
i | 60 | fs/minix/inode.c | for(i = 0 ; i < MINIX_I_MAP_SLOTS ; i++) |
i | 61 | fs/minix/inode.c | brelse(sb->u.minix_sb.s_imap[i]); |
i | 62 | fs/minix/inode.c | for(i = 0 ; i < MINIX_Z_MAP_SLOTS ; i++) |
i | 63 | fs/minix/inode.c | brelse(sb->u.minix_sb.s_zmap[i]); |
i | 120 | fs/minix/inode.c | int i,dev=s->s_dev,block; |
i | 160 | fs/minix/inode.c | for (i=0;i < MINIX_I_MAP_SLOTS;i++) |
i | 161 | fs/minix/inode.c | s->u.minix_sb.s_imap[i] = NULL; |
i | 162 | fs/minix/inode.c | for (i=0;i < MINIX_Z_MAP_SLOTS;i++) |
i | 163 | fs/minix/inode.c | s->u.minix_sb.s_zmap[i] = NULL; |
i | 165 | fs/minix/inode.c | for (i=0 ; i < s->u.minix_sb.s_imap_blocks ; i++) |
i | 166 | fs/minix/inode.c | if ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
i | 170 | fs/minix/inode.c | for (i=0 ; i < s->u.minix_sb.s_zmap_blocks ; i++) |
i | 171 | fs/minix/inode.c | if ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
i | 176 | fs/minix/inode.c | for(i=0;i<MINIX_I_MAP_SLOTS;i++) |
i | 177 | fs/minix/inode.c | brelse(s->u.minix_sb.s_imap[i]); |
i | 178 | fs/minix/inode.c | for(i=0;i<MINIX_Z_MAP_SLOTS;i++) |
i | 179 | fs/minix/inode.c | brelse(s->u.minix_sb.s_zmap[i]); |
i | 246 | fs/minix/inode.c | int i; |
i | 260 | fs/minix/inode.c | i = inode_bmap(inode,7); |
i | 261 | fs/minix/inode.c | if (!i) |
i | 263 | fs/minix/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
i | 266 | fs/minix/inode.c | i = inode_bmap(inode,8); |
i | 267 | fs/minix/inode.c | if (!i) |
i | 269 | fs/minix/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>9); |
i | 270 | fs/minix/inode.c | if (!i) |
i | 272 | fs/minix/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 511); |
i | 150 | fs/minix/namei.c | int i; |
i | 192 | fs/minix/namei.c | for (i = 0; i < info->s_namelen ; i++) |
i | 193 | 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 | 30 | fs/minix/truncate.c | int i, tmp; |
i | 35 | fs/minix/truncate.c | for (i = DIRECT_BLOCK ; i < 7 ; i++) { |
i | 36 | fs/minix/truncate.c | p = i + inode->u.minix_i.i_data; |
i | 40 | fs/minix/truncate.c | if (i < DIRECT_BLOCK) { |
i | 60 | fs/minix/truncate.c | int i, tmp; |
i | 79 | fs/minix/truncate.c | for (i = INDIRECT_BLOCK ; i < 512 ; i++) { |
i | 80 | fs/minix/truncate.c | if (i < 0) |
i | 81 | fs/minix/truncate.c | i = 0; |
i | 82 | fs/minix/truncate.c | if (i < INDIRECT_BLOCK) |
i | 84 | fs/minix/truncate.c | ind = i+(unsigned short *) ind_bh->b_data; |
i | 89 | fs/minix/truncate.c | if (i < INDIRECT_BLOCK) { |
i | 104 | fs/minix/truncate.c | for (i = 0; i < 512; i++) |
i | 107 | fs/minix/truncate.c | if (i >= 512) |
i | 121 | fs/minix/truncate.c | int i, tmp; |
i | 140 | fs/minix/truncate.c | for (i = DINDIRECT_BLOCK ; i < 512 ; i ++) { |
i | 141 | fs/minix/truncate.c | if (i < 0) |
i | 142 | fs/minix/truncate.c | i = 0; |
i | 143 | fs/minix/truncate.c | if (i < DINDIRECT_BLOCK) |
i | 145 | fs/minix/truncate.c | dind = i+(unsigned short *) dind_bh->b_data; |
i | 146 | fs/minix/truncate.c | retry |= trunc_indirect(inode,7+512+(i<<9),dind); |
i | 150 | fs/minix/truncate.c | for (i = 0; i < 512; i++) |
i | 153 | fs/minix/truncate.c | if (i >= 512) |
i | 137 | fs/msdos/buffer.c | int i; |
i | 138 | fs/msdos/buffer.c | for (i=0; i<nbreq; i++){ |
i | 139 | fs/msdos/buffer.c | tmp[i] = bh[i]->b_next; |
i | 68 | fs/msdos/dir.c | int ino,i,i2,last; |
i | 79 | fs/msdos/dir.c | for (i = 0; *walk; walk++) |
i | 80 | fs/msdos/dir.c | put_fs_byte(*walk,dirent->d_name+i++); |
i | 82 | fs/msdos/dir.c | put_fs_byte(0,dirent->d_name+i); |
i | 83 | fs/msdos/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 84 | fs/msdos/dir.c | return ROUND_UP(NAME_OFFSET(dirent) + i + 1); |
i | 93 | fs/msdos/dir.c | for (i = last = 0; i < 8; i++) { |
i | 94 | fs/msdos/dir.c | if (!(c = de->name[i])) break; |
i | 97 | fs/msdos/dir.c | last = i+1; |
i | 98 | fs/msdos/dir.c | ptname[i] = c; |
i | 100 | fs/msdos/dir.c | i = last; |
i | 101 | fs/msdos/dir.c | ptname[i] = '.'; |
i | 102 | fs/msdos/dir.c | i++; |
i | 107 | fs/msdos/dir.c | last = i+1; |
i | 108 | fs/msdos/dir.c | ptname[i] = c; |
i | 109 | fs/msdos/dir.c | i++; |
i | 111 | fs/msdos/dir.c | if ((i = last) != 0) { |
i | 116 | fs/msdos/dir.c | bufname[i] = '\0'; |
i | 118 | fs/msdos/dir.c | memcpy_tofs(dirent->d_name,bufname,i+1); |
i | 119 | fs/msdos/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 122 | fs/msdos/dir.c | PRINTK (("readdir retourne %d\n",i)); |
i | 123 | fs/msdos/dir.c | return ROUND_UP(NAME_OFFSET(dirent) + i + 1); |
i | 127 | fs/msdos/file.c | int i; |
i | 128 | fs/msdos/file.c | for (i=0; i<nb; i++){ |
i | 143 | fs/msdos/file.c | for (i=pre->nblist; i<MSDOS_PREFETCH; i++) pre->bhlist[i] = NULL; |
i | 158 | fs/msdos/file.c | int i; |
i | 253 | fs/msdos/file.c | for (i=0; i<pre.nblist; i++) brelse (pre.bhlist[i]); |
i | 60 | fs/namei.c | int i, error; |
i | 64 | fs/namei.c | i = get_max_filename((unsigned long) filename); |
i | 65 | fs/namei.c | if (i < 0) |
i | 66 | fs/namei.c | return i; |
i | 68 | fs/namei.c | if (!i) { |
i | 70 | fs/namei.c | i = PAGE_SIZE; |
i | 78 | fs/namei.c | while (--i) { |
i | 98 | fs/nfs/dir.c | int i; |
i | 109 | fs/nfs/dir.c | i = sizeof (struct nfs_entry)*NFS_READDIR_CACHE_SIZE; |
i | 110 | fs/nfs/dir.c | c_entry = (struct nfs_entry *) kmalloc(i, GFP_KERNEL); |
i | 111 | fs/nfs/dir.c | for (i = 0; i < NFS_READDIR_CACHE_SIZE; i++) { |
i | 112 | fs/nfs/dir.c | c_entry[i].name = (char *) kmalloc(NFS_MAXNAMLEN + 1, |
i | 121 | fs/nfs/dir.c | for (i = 0; i < c_size; i++) { |
i | 122 | fs/nfs/dir.c | if (filp->f_pos == c_entry[i].cookie) { |
i | 123 | fs/nfs/dir.c | if (i == c_size - 1) { |
i | 124 | fs/nfs/dir.c | if (c_entry[i].eof) |
i | 128 | fs/nfs/dir.c | entry = c_entry + i + 1; |
i | 154 | fs/nfs/dir.c | i = strlen(entry->name); |
i | 155 | fs/nfs/dir.c | memcpy_tofs(dirent->d_name, entry->name, i + 1); |
i | 157 | fs/nfs/dir.c | put_fs_word(i, &dirent->d_reclen); |
i | 159 | fs/nfs/dir.c | return ROUND_UP(NAME_OFFSET(dirent)+i+1); |
i | 190 | fs/nfs/dir.c | int i; |
i | 192 | fs/nfs/dir.c | for (i = 0; i < NFS_LOOKUP_CACHE_SIZE; i++) { |
i | 193 | fs/nfs/dir.c | entry = nfs_lookup_cache + i; |
i | 256 | fs/nfs/dir.c | int i; |
i | 268 | fs/nfs/dir.c | for (i = 0; i < NFS_LOOKUP_CACHE_SIZE; i++) { |
i | 269 | fs/nfs/dir.c | entry = nfs_lookup_cache + i; |
i | 281 | fs/nfs/dir.c | int i; |
i | 283 | fs/nfs/dir.c | for (i = 0; i < NFS_LOOKUP_CACHE_SIZE; i++) { |
i | 284 | fs/nfs/dir.c | entry = nfs_lookup_cache + i; |
i | 97 | fs/nfs/file.c | int result, hunk, i, n, fs; |
i | 118 | fs/nfs/file.c | for (i = 0; i < READ_CACHE_SIZE; i++) |
i | 119 | fs/nfs/file.c | if ((cache[i].inode_num == inode->i_ino) |
i | 120 | fs/nfs/file.c | && (cache[i].file_pos <= pos) |
i | 121 | fs/nfs/file.c | && (cache[i].file_pos + cache[i].len >= pos + count) |
i | 122 | fs/nfs/file.c | && (abs(jiffies - cache[i].time) <= EXPIRE_CACHE)) |
i | 124 | fs/nfs/file.c | if (i < READ_CACHE_SIZE) { |
i | 125 | fs/nfs/file.c | ++cache[i].in_use; |
i | 128 | fs/nfs/file.c | memcpy_tofs(buf, cache[i].buf + pos - cache[i].file_pos, count); |
i | 129 | fs/nfs/file.c | --cache[i].in_use; |
i | 135 | fs/nfs/file.c | for (i = 0; i < count - n; i += n) { |
i | 145 | fs/nfs/file.c | return i + result; |
i | 160 | fs/nfs/file.c | hunk = count - i; |
i | 166 | fs/nfs/file.c | return i + hunk; |
i | 186 | fs/nfs/file.c | return i + hunk; |
i | 192 | fs/nfs/file.c | int result, hunk, i, n, pos; |
i | 209 | fs/nfs/file.c | for (i = 0; i < READ_CACHE_SIZE; i++) |
i | 210 | fs/nfs/file.c | if(cache[i].inode_num == inode->i_ino) |
i | 211 | fs/nfs/file.c | cache[i].time -= EXPIRE_CACHE; |
i | 218 | fs/nfs/file.c | for (i = 0; i < count; i += n) { |
i | 219 | fs/nfs/file.c | hunk = count - i; |
i | 229 | fs/nfs/file.c | i += hunk; |
i | 235 | fs/nfs/file.c | return i; |
i | 36 | fs/nfs/mmap.c | int i; |
i | 50 | fs/nfs/mmap.c | for (i = 0; i < (PAGE_SIZE - clear); i += n) { |
i | 53 | fs/nfs/mmap.c | hunk = PAGE_SIZE - i; |
i | 57 | fs/nfs/mmap.c | pos, hunk, (char *) (page + i), &fattr, 0); |
i | 62 | fs/nfs/mmap.c | i += result; |
i | 80 | fs/nfs/proc.c | int *i; |
i | 82 | fs/nfs/proc.c | while (!(i = (int *)kmalloc(size+NFS_SLACK_SPACE,GFP_NFS))) { |
i | 85 | fs/nfs/proc.c | return i; |
i | 732 | fs/nfs/proc.c | int i; |
i | 752 | fs/nfs/proc.c | for (i = 0; i < count && *p++; i++) { |
i | 761 | fs/nfs/proc.c | eof = (i == count && !*p++ && *p++) |
i | 762 | fs/nfs/proc.c | || (i < count && *p++); |
i | 763 | fs/nfs/proc.c | if (eof && i) |
i | 765 | fs/nfs/proc.c | PRINTK("NFS reply readdir %d %s\n", i, |
i | 767 | fs/nfs/proc.c | status = i; |
i | 825 | fs/nfs/proc.c | int i; |
i | 846 | fs/nfs/proc.c | for (i = 0; i < 16 && i < NGROUPS && current->groups[i] != NOGROUP; i++) |
i | 847 | fs/nfs/proc.c | *p++ = htonl(current->groups[i]); |
i | 848 | fs/nfs/proc.c | *p2 = htonl(i); |
i | 922 | fs/nfs/proc.c | int i; |
i | 924 | fs/nfs/proc.c | for (i = 0; nfs_errtbl[i].stat != -1; i++) { |
i | 925 | fs/nfs/proc.c | if (nfs_errtbl[i].stat == stat) |
i | 926 | fs/nfs/proc.c | return nfs_errtbl[i].errno; |
i | 929 | fs/nfs/proc.c | return nfs_errtbl[i].errno; |
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->files->fd[i]) { |
i | 398 | fs/pipe.c | current->files->fd[ fd[j]=i ] = f[j]; |
i | 140 | fs/proc/array.c | int i=prof_len; |
i | 142 | fs/proc/array.c | while (i--) |
i | 143 | fs/proc/array.c | prof_buffer[i]=0UL; |
i | 174 | fs/proc/array.c | int i, len; |
i | 177 | fs/proc/array.c | for (i = 0 ; i < 16 ; i++) |
i | 178 | fs/proc/array.c | sum += kstat.interrupts[i]; |
i | 198 | fs/proc/array.c | for (i = 0 ; i < 16 ; i++) |
i | 199 | fs/proc/array.c | len += sprintf(buffer + len, " %u", kstat.interrupts[i]); |
i | 225 | fs/proc/array.c | struct sysinfo i; |
i | 227 | fs/proc/array.c | si_meminfo(&i); |
i | 228 | fs/proc/array.c | si_swapinfo(&i); |
i | 232 | fs/proc/array.c | i.totalram, i.totalram-i.freeram, i.freeram, i.sharedram, i.bufferram, |
i | 233 | fs/proc/array.c | i.totalswap, i.totalswap-i.freeswap, i.freeswap); |
i | 402 | fs/proc/array.c | int i,tty_pgrp; |
i | 421 | fs/proc/array.c | for(i=0; i<32; ++i) { |
i | 422 | fs/proc/array.c | switch((int) (*p)->sigaction[i].sa_handler) { |
i | 477 | fs/proc/array.c | int i, tpag; |
i | 486 | fs/proc/array.c | for (i = 0; i < 0x300; ++i) { |
i | 487 | fs/proc/array.c | if ((ptbl = pagedir[i]) == 0) { |
i | 501 | fs/proc/array.c | if (i >= 15 && i < 0x2f0) { |
i | 86 | fs/proc/base.c | int i; |
i | 97 | fs/proc/base.c | i = NR_BASE_DIRENTRY; |
i | 98 | fs/proc/base.c | while (i-- > 0 && !proc_match(len,name,base_dir+i)) |
i | 100 | fs/proc/base.c | if (i < 0) { |
i | 104 | fs/proc/base.c | if (base_dir[i].low_ino == 1) |
i | 107 | fs/proc/base.c | ino = (pid << 16) + base_dir[i].low_ino; |
i | 108 | fs/proc/base.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 109 | fs/proc/base.c | if (task[i] && task[i]->pid == pid) |
i | 111 | fs/proc/base.c | if (!pid || i >= NR_TASKS) { |
i | 128 | fs/proc/base.c | int i,j; |
i | 134 | fs/proc/base.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 135 | fs/proc/base.c | if (task[i] && task[i]->pid == pid) |
i | 137 | fs/proc/base.c | if (!pid || i >= NR_TASKS) |
i | 142 | fs/proc/base.c | i = de->namelen; |
i | 147 | fs/proc/base.c | put_fs_word(i,&dirent->d_reclen); |
i | 148 | fs/proc/base.c | put_fs_byte(0,i+dirent->d_name); |
i | 149 | fs/proc/base.c | j = i; |
i | 150 | fs/proc/base.c | while (i--) |
i | 151 | fs/proc/base.c | put_fs_byte(de->name[i], i+dirent->d_name); |
i | 59 | fs/proc/fd.c | int i; |
i | 101 | fs/proc/fd.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 102 | fs/proc/fd.c | if ((p = task[i]) && p->pid == pid) |
i | 104 | fs/proc/fd.c | if (!pid || i >= NR_TASKS) |
i | 122 | fs/proc/fd.c | int i,j; |
i | 135 | fs/proc/fd.c | i = j = fd+1; |
i | 141 | fs/proc/fd.c | put_fs_word(i, &dirent->d_reclen); |
i | 142 | fs/proc/fd.c | put_fs_byte(0, i+dirent->d_name); |
i | 143 | fs/proc/fd.c | while (i--) |
i | 144 | fs/proc/fd.c | put_fs_byte('.', i+dirent->d_name); |
i | 148 | fs/proc/fd.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 149 | fs/proc/fd.c | if ((p = task[i]) && p->pid == pid) |
i | 151 | fs/proc/fd.c | if (i >= NR_TASKS) |
i | 160 | fs/proc/fd.c | i = 1; |
i | 163 | fs/proc/fd.c | i++; |
i | 165 | fs/proc/fd.c | j = i; |
i | 169 | fs/proc/fd.c | put_fs_word(i, &dirent->d_reclen); |
i | 170 | fs/proc/fd.c | put_fs_byte(0, i+dirent->d_name); |
i | 171 | fs/proc/fd.c | while (i--) { |
i | 172 | fs/proc/fd.c | put_fs_byte('0'+(fd % 10), i+dirent->d_name); |
i | 80 | fs/proc/inode.c | int i; |
i | 94 | fs/proc/inode.c | for (i = 0; i < NR_TASKS ; i++) |
i | 95 | fs/proc/inode.c | if ((p = task[i]) && (p->pid == pid)) |
i | 97 | fs/proc/inode.c | if (!p || i >= NR_TASKS) |
i | 102 | fs/proc/inode.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 103 | fs/proc/inode.c | if (task[i]) |
i | 68 | fs/proc/link.c | int i, fd; |
i | 82 | fs/proc/link.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 83 | fs/proc/link.c | if ((p = task[i]) && p->pid == pid) |
i | 86 | fs/proc/link.c | if ((i >= NR_TASKS) || |
i | 106 | fs/proc/link.c | int i; |
i | 120 | fs/proc/link.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 121 | fs/proc/link.c | if ((p = task[i]) && p->pid == pid) |
i | 123 | fs/proc/link.c | if (i >= NR_TASKS) { |
i | 172 | fs/proc/link.c | int i; |
i | 180 | fs/proc/link.c | i = proc_follow_link(NULL, inode, 0, 0, &inode); |
i | 181 | fs/proc/link.c | if (i) |
i | 182 | fs/proc/link.c | return i; |
i | 188 | fs/proc/link.c | i = sprintf(buf,"[%04x]:%u", dev, ino); |
i | 189 | fs/proc/link.c | if (buflen > i) |
i | 190 | fs/proc/link.c | buflen = i; |
i | 191 | fs/proc/link.c | i = 0; |
i | 192 | fs/proc/link.c | while (i < buflen) |
i | 193 | fs/proc/link.c | put_fs_byte(buf[i++],buffer++); |
i | 194 | fs/proc/link.c | return i; |
i | 30 | fs/proc/mem.c | int i; |
i | 37 | fs/proc/mem.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 38 | fs/proc/mem.c | if (task[i] && task[i]->pid == pid) { |
i | 39 | fs/proc/mem.c | cr3 = task[i]->tss.cr3; |
i | 59 | fs/proc/mem.c | i = PAGE_SIZE-(addr & ~PAGE_MASK); |
i | 60 | fs/proc/mem.c | if (i > count) |
i | 61 | fs/proc/mem.c | i = count; |
i | 62 | fs/proc/mem.c | memcpy_tofs(tmp,(void *) page,i); |
i | 63 | fs/proc/mem.c | addr += i; |
i | 64 | fs/proc/mem.c | tmp += i; |
i | 65 | fs/proc/mem.c | count -= i; |
i | 78 | fs/proc/mem.c | int i; |
i | 86 | fs/proc/mem.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 87 | fs/proc/mem.c | if (task[i] && task[i]->pid == pid) { |
i | 88 | fs/proc/mem.c | cr3 = task[i]->tss.cr3; |
i | 111 | fs/proc/mem.c | i = PAGE_SIZE-(addr & ~PAGE_MASK); |
i | 112 | fs/proc/mem.c | if (i > count) |
i | 113 | fs/proc/mem.c | i = count; |
i | 114 | fs/proc/mem.c | memcpy_fromfs((void *) page,tmp,i); |
i | 115 | fs/proc/mem.c | addr += i; |
i | 116 | fs/proc/mem.c | tmp += i; |
i | 117 | fs/proc/mem.c | count -= i; |
i | 149 | fs/proc/mem.c | int i; |
i | 154 | fs/proc/mem.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 155 | fs/proc/mem.c | if (task[i] && task[i]->pid == (inode->i_ino >> 16)) { |
i | 156 | fs/proc/mem.c | cr3 = task[i]->tss.cr3; |
i | 157 | fs/proc/mem.c | src_vma = task[i]->mm->mmap; |
i | 192 | fs/proc/mem.c | src_vma = task[i]->mm->mmap; |
i | 180 | fs/proc/net.c | int i,j; |
i | 188 | fs/proc/net.c | i = de->namelen; |
i | 191 | fs/proc/net.c | put_fs_word(i,&dirent->d_reclen); |
i | 192 | fs/proc/net.c | put_fs_byte(0,i+dirent->d_name); |
i | 193 | fs/proc/net.c | j = i; |
i | 194 | fs/proc/net.c | while (i--) |
i | 195 | fs/proc/net.c | put_fs_byte(de->name[i], i+dirent->d_name); |
i | 86 | fs/proc/root.c | int i, ino; |
i | 95 | fs/proc/root.c | i = NR_ROOT_DIRENTRY; |
i | 96 | fs/proc/root.c | while (i-- > 0 && !proc_match(len,name,root_dir+i)) |
i | 98 | fs/proc/root.c | if (i >= 0) { |
i | 99 | fs/proc/root.c | ino = root_dir[i].low_ino; |
i | 122 | fs/proc/root.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 123 | fs/proc/root.c | if (task[i] && task[i]->pid == pid) |
i | 125 | fs/proc/root.c | if (!pid || i >= NR_TASKS) { |
i | 144 | fs/proc/root.c | int i,j; |
i | 154 | fs/proc/root.c | i = de->namelen; |
i | 156 | fs/proc/root.c | put_fs_word(i,&dirent->d_reclen); |
i | 157 | fs/proc/root.c | put_fs_byte(0,i+dirent->d_name); |
i | 158 | fs/proc/root.c | j = i; |
i | 159 | fs/proc/root.c | while (i--) |
i | 160 | fs/proc/root.c | put_fs_byte(de->name[i], i+dirent->d_name); |
i | 173 | fs/proc/root.c | i = 1; |
i | 176 | fs/proc/root.c | i++; |
i | 178 | fs/proc/root.c | j = i; |
i | 180 | fs/proc/root.c | put_fs_word(i, &dirent->d_reclen); |
i | 181 | fs/proc/root.c | put_fs_byte(0, i+dirent->d_name); |
i | 182 | fs/proc/root.c | while (i--) { |
i | 183 | fs/proc/root.c | put_fs_byte('0'+(pid % 10), i+dirent->d_name); |
i | 91 | fs/select.c | int i,j; |
i | 95 | fs/select.c | i = j << 5; |
i | 96 | fs/select.c | if (i >= n) |
i | 99 | fs/select.c | for ( ; set ; i++,set >>= 1) { |
i | 100 | fs/select.c | if (i >= n) |
i | 104 | fs/select.c | if (!current->files->fd[i]) |
i | 106 | fs/select.c | if (!current->files->fd[i]->f_inode) |
i | 108 | fs/select.c | max = i; |
i | 124 | fs/select.c | for (i = 0 ; i < n ; i++) { |
i | 125 | fs/select.c | if (FD_ISSET(i,in) && check(SEL_IN,wait,current->files->fd[i])) { |
i | 126 | fs/select.c | FD_SET(i, res_in); |
i | 130 | fs/select.c | if (FD_ISSET(i,out) && check(SEL_OUT,wait,current->files->fd[i])) { |
i | 131 | fs/select.c | FD_SET(i, res_out); |
i | 135 | fs/select.c | if (FD_ISSET(i,ex) && check(SEL_EX,wait,current->files->fd[i])) { |
i | 136 | fs/select.c | FD_SET(i, res_ex); |
i | 204 | fs/select.c | int i; |
i | 212 | fs/select.c | i = verify_area(VERIFY_READ, buffer, 20); |
i | 213 | fs/select.c | if (i) |
i | 214 | fs/select.c | return i; |
i | 224 | fs/select.c | if ((i = get_fd_set(n, inp, &in)) || |
i | 225 | fs/select.c | (i = get_fd_set(n, outp, &out)) || |
i | 226 | fs/select.c | (i = get_fd_set(n, exp, &ex))) return i; |
i | 229 | fs/select.c | i = verify_area(VERIFY_WRITE, tvp, sizeof(*tvp)); |
i | 230 | fs/select.c | if (i) |
i | 231 | fs/select.c | return i; |
i | 238 | fs/select.c | i = do_select(n, &in, &out, &ex, &res_in, &res_out, &res_ex); |
i | 250 | fs/select.c | if (i < 0) |
i | 251 | fs/select.c | return i; |
i | 252 | fs/select.c | if (!i && (current->signal & ~current->blocked)) |
i | 257 | fs/select.c | return i; |
i | 302 | fs/super.c | int i; |
i | 304 | fs/super.c | for (i = 1; i < 256; i++) { |
i | 305 | fs/super.c | if (!set_bit(i,unnamed_dev_in_use)) |
i | 306 | fs/super.c | return (UNNAMED_MAJOR << 8) | i; |
i | 512 | fs/super.c | int i; |
i | 529 | fs/super.c | i = vma->vm_end - (unsigned long) data; |
i | 530 | fs/super.c | if (PAGE_SIZE <= (unsigned long) i) |
i | 531 | fs/super.c | i = PAGE_SIZE-1; |
i | 535 | fs/super.c | memcpy_fromfs((void *) page,data,i); |
i | 232 | fs/sysv/balloc.c | int i; |
i | 238 | fs/sysv/balloc.c | for (i = *sb->sv_sb_flc_count ; /* i > 0 */ ; ) { |
i | 239 | fs/sysv/balloc.c | block = sb->sv_sb_flc_blocks[--i]; |
i | 245 | fs/sysv/balloc.c | if (i == 0) |
i | 290 | fs/sysv/balloc.c | for (i = *flc_count ; /* i > 0 */ ; ) { |
i | 291 | fs/sysv/balloc.c | block = flc_blocks[--i]; |
i | 297 | fs/sysv/balloc.c | if (i == 0) |
i | 71 | fs/sysv/dir.c | unsigned int offset,i; |
i | 101 | fs/sysv/dir.c | for (i = 0; i < SYSV_NAMELEN; i++) |
i | 102 | fs/sysv/dir.c | if ((c = sde.name[i]) != 0) |
i | 103 | fs/sysv/dir.c | put_fs_byte(c,i+dirent->d_name); |
i | 106 | fs/sysv/dir.c | if (i) { |
i | 111 | fs/sysv/dir.c | put_fs_byte(0,i+dirent->d_name); |
i | 112 | fs/sysv/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 114 | fs/sysv/dir.c | return ROUND_UP(NAME_OFFSET(dirent)+i+1); |
i | 91 | fs/sysv/fsync.c | int i; |
i | 94 | fs/sysv/fsync.c | for (i = 0; i < 10; i++) { |
i | 95 | fs/sysv/fsync.c | rc = sync_block (inode, inode->u.sysv_i.i_data + i, 0, wait); |
i | 106 | fs/sysv/fsync.c | int i; |
i | 116 | fs/sysv/fsync.c | for (i = 0; i < sb->sv_ind_per_block; i++) { |
i | 118 | fs/sysv/fsync.c | ((unsigned long *) ind_bh->b_data) + i, sb->sv_convert, |
i | 132 | fs/sysv/fsync.c | int i; |
i | 142 | fs/sysv/fsync.c | for (i = 0; i < sb->sv_ind_per_block; i++) { |
i | 144 | fs/sysv/fsync.c | ((unsigned long *) dind_bh->b_data) + i, sb->sv_convert, |
i | 158 | fs/sysv/fsync.c | int i; |
i | 168 | fs/sysv/fsync.c | for (i = 0; i < sb->sv_ind_per_block; i++) { |
i | 170 | fs/sysv/fsync.c | ((unsigned long *) tind_bh->b_data) + i, sb->sv_convert, |
i | 38 | fs/sysv/ialloc.c | static inline sysv_ino_t * sv_sb_fic_inode (struct super_block * sb, unsigned int i) |
i | 41 | fs/sysv/ialloc.c | return &sb->sv_sb_fic_inodes[i]; |
i | 44 | fs/sysv/ialloc.c | unsigned int offset = offsetof(struct xenix_super_block, s_inode[i]); |
i | 108 | fs/sysv/ialloc.c | int i,j,ino,block; |
i | 126 | fs/sysv/ialloc.c | for (i = 0, ino = SYSV_ROOT_INO+1, block = sb->sv_firstinodezone, j = SYSV_ROOT_INO ; i < sb->sv_fic_size && block < sb->sv_firstdatazone ; block++, j = 0) { |
i | 133 | fs/sysv/ialloc.c | for (; j < sb->sv_inodes_per_block && i < sb->sv_fic_size; ino++, j++, raw_inode++) { |
i | 135 | fs/sysv/ialloc.c | *sv_sb_fic_inode(sb,i++) = ino; |
i | 139 | fs/sysv/ialloc.c | if (i == 0) { |
i | 144 | fs/sysv/ialloc.c | *sb->sv_sb_fic_count = i; |
i | 383 | fs/sysv/inode.c | int i; |
i | 384 | fs/sysv/inode.c | for (i = 0; i < sizeof(offsets)/sizeof(offsets[0]); i++) |
i | 385 | fs/sysv/inode.c | if ((bh = bread(dev, offsets[i], BLOCK_SIZE)) != NULL) { |
i | 388 | fs/sysv/inode.c | sb->sv_block_base = offsets[i] << sb->sv_block_size_ratio_bits; |
i | 392 | fs/sysv/inode.c | sb->sv_block_base = offsets[i] << sb->sv_block_size_ratio_bits; |
i | 577 | fs/sysv/inode.c | int i; |
i | 585 | fs/sysv/inode.c | i = inode_bmap(sb,inode,10); |
i | 586 | fs/sysv/inode.c | if (!i) |
i | 588 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 593 | fs/sysv/inode.c | i = inode_bmap(sb,inode,11); |
i | 594 | fs/sysv/inode.c | if (!i) |
i | 596 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 597 | fs/sysv/inode.c | i = block_bmap(sb, bh, block >> sb->sv_ind_per_block_bits, convert); |
i | 598 | fs/sysv/inode.c | if (!i) |
i | 600 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 605 | fs/sysv/inode.c | i = inode_bmap(sb,inode,12); |
i | 606 | fs/sysv/inode.c | if (!i) |
i | 608 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 609 | fs/sysv/inode.c | i = block_bmap(sb, bh, block >> sb->sv_ind_per_block_2_bits, convert); |
i | 610 | fs/sysv/inode.c | if (!i) |
i | 612 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 613 | fs/sysv/inode.c | i = block_bmap(sb, bh, (block >> sb->sv_ind_per_block_bits) & sb->sv_ind_per_block_1,convert); |
i | 614 | fs/sysv/inode.c | if (!i) |
i | 616 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 978 | fs/sysv/inode.c | int i; |
i | 980 | fs/sysv/inode.c | for (i = 0; i < 3; i++) |
i | 981 | fs/sysv/inode.c | register_filesystem(&sysv_fs_type[i]); |
i | 988 | fs/sysv/inode.c | int i; |
i | 995 | fs/sysv/inode.c | for (i = 0; i < 3; i++) |
i | 996 | fs/sysv/inode.c | unregister_filesystem(&sysv_fs_type[i]); |
i | 147 | fs/sysv/namei.c | int i; |
i | 187 | fs/sysv/namei.c | for (i = 0; i < SYSV_NAMELEN ; i++) |
i | 188 | fs/sysv/namei.c | de->name[i] = (i < namelen) ? name[i] : 0; |
i | 536 | fs/sysv/namei.c | int i; |
i | 556 | fs/sysv/namei.c | i = 0; |
i | 557 | fs/sysv/namei.c | while (i < sb->sv_block_size_1 && (c = *(symname++))) |
i | 558 | fs/sysv/namei.c | name_block_data[i++] = c; |
i | 559 | fs/sysv/namei.c | name_block_data[i] = 0; |
i | 562 | fs/sysv/namei.c | inode->i_size = i; |
i | 573 | fs/sysv/namei.c | i = sysv_add_entry(dir, name, len, &bh, &de); |
i | 574 | fs/sysv/namei.c | if (i) { |
i | 579 | fs/sysv/namei.c | return i; |
i | 89 | fs/sysv/symlink.c | int i; |
i | 103 | fs/sysv/symlink.c | i = 0; |
i | 104 | fs/sysv/symlink.c | while (i<buflen && (c = bh_data[i])) { |
i | 105 | fs/sysv/symlink.c | i++; |
i | 109 | fs/sysv/symlink.c | return i; |
i | 43 | fs/sysv/truncate.c | unsigned int i; |
i | 51 | fs/sysv/truncate.c | for (i = ((unsigned long) inode->i_size + sb->sv_block_size_1) >> sb->sv_block_size_bits; i < 10; i++) { |
i | 52 | fs/sysv/truncate.c | p = inode->u.sysv_i.i_data + i; |
i | 57 | fs/sysv/truncate.c | if ((i << sb->sv_block_size_bits) < inode->i_size) { |
i | 79 | fs/sysv/truncate.c | unsigned int i; |
i | 103 | fs/sysv/truncate.c | i = 0; |
i | 105 | fs/sysv/truncate.c | i = (inode->i_size - offset + sb->sv_block_size_1) >> sb->sv_block_size_bits; |
i | 106 | fs/sysv/truncate.c | for (; i < sb->sv_ind_per_block; i++) { |
i | 107 | fs/sysv/truncate.c | ind = ((sysv_zone_t *) indbh->b_data) + i; |
i | 114 | fs/sysv/truncate.c | if ((i << sb->sv_block_size_bits) + offset < inode->i_size) { |
i | 128 | fs/sysv/truncate.c | for (i = 0; i < sb->sv_ind_per_block; i++) |
i | 129 | fs/sysv/truncate.c | if (((sysv_zone_t *) indbh->b_data)[i]) |
i | 148 | fs/sysv/truncate.c | unsigned int i; |
i | 170 | fs/sysv/truncate.c | i = 0; |
i | 172 | fs/sysv/truncate.c | i = (inode->i_size - offset + sb->sv_ind_per_block_block_size_1) >> sb->sv_ind_per_block_block_size_bits; |
i | 173 | fs/sysv/truncate.c | for (; i < sb->sv_ind_per_block; i++) { |
i | 174 | fs/sysv/truncate.c | ind = ((sysv_zone_t *) indbh->b_data) + i; |
i | 180 | fs/sysv/truncate.c | retry |= trunc_indirect(inode,offset+(i<<sb->sv_ind_per_block_bits),ind,sb->sv_convert,&indbh->b_dirt); |
i | 182 | fs/sysv/truncate.c | for (i = 0; i < sb->sv_ind_per_block; i++) |
i | 183 | fs/sysv/truncate.c | if (((sysv_zone_t *) indbh->b_data)[i]) |
i | 202 | fs/sysv/truncate.c | unsigned int i; |
i | 224 | fs/sysv/truncate.c | i = 0; |
i | 226 | fs/sysv/truncate.c | i = (inode->i_size - offset + sb->sv_ind_per_block_2_block_size_1) >> sb->sv_ind_per_block_2_block_size_bits; |
i | 227 | fs/sysv/truncate.c | for (; i < sb->sv_ind_per_block; i++) { |
i | 228 | fs/sysv/truncate.c | ind = ((sysv_zone_t *) indbh->b_data) + i; |
i | 234 | fs/sysv/truncate.c | retry |= trunc_dindirect(inode,offset+(i<<sb->sv_ind_per_block_2_bits),ind,sb->sv_convert,&indbh->b_dirt); |
i | 236 | fs/sysv/truncate.c | for (i = 0; i < sb->sv_ind_per_block; i++) |
i | 237 | fs/sysv/truncate.c | if (((sysv_zone_t *) indbh->b_data)[i]) |
i | 44 | fs/umsdos/check.c | int i; |
i | 45 | fs/umsdos/check.c | for (i = 0 ; i < PTRS_PER_PAGE ; i++,page_dir++){ |
i | 173 | fs/umsdos/mangle.c | int i; |
i | 176 | fs/umsdos/mangle.c | for (i=0; i<=32; i++) lkp[i] = '#'; |
i | 177 | fs/umsdos/mangle.c | for (i=33; i<'A'; i++) lkp[i] = (char)i; |
i | 178 | fs/umsdos/mangle.c | for (i='A'; i<='Z'; i++) lkp[i] = (char)(i+('a'-'A')); |
i | 179 | fs/umsdos/mangle.c | for (i='Z'+1; i<127; i++) lkp[i] = (char)i; |
i | 180 | fs/umsdos/mangle.c | for (i=128; i<256; i++) lkp[i] = '#'; |
i | 282 | fs/umsdos/mangle.c | int i; |
i | 290 | fs/umsdos/mangle.c | for (i=0; i<msdos_len; i++, pt++) *pt = lkp[(unsigned char)(*pt)]; |
i | 353 | fs/umsdos/mangle.c | int i; |
i | 354 | fs/umsdos/mangle.c | for (i=start_ind_dev[base_len-1]; i<start_ind_dev[base_len]; i++){ |
i | 355 | fs/umsdos/mangle.c | if (memcmp(info->fake.fname,tbdev[i],base_len)==0){ |
i | 449 | fs/umsdos/mangle.c | int i,rold,rnew; |
i | 451 | fs/umsdos/mangle.c | for (i=0; i<sizeof(tb)/sizeof(tb[0]); i++){ |
i | 452 | fs/umsdos/mangle.c | struct MANG_TEST *pttb = tb+i; |
i | 467 | fs/umsdos/mangle.c | for (i=0; i<UMSDOS_MAXNAME ; i++){ |
i | 468 | fs/umsdos/mangle.c | rnew=umsdos_evalrecsize (i); |
i | 469 | fs/umsdos/mangle.c | rold=umsdos_evalrecsize_old (i); |
i | 470 | fs/umsdos/mangle.c | if (!(i%UMSDOS_REC_SIZE)){ |
i | 471 | fs/umsdos/mangle.c | printf ("\n%d:\t",i); |
i | 474 | fs/umsdos/mangle.c | printf ("**** %d newres: %d != %d \n", i, rnew, rold); |
i | 36 | fs/xiafs/bitmap.c | int end, i, j, tmp; |
i | 43 | fs/xiafs/bitmap.c | i=start_bit >> 5; |
i | 44 | fs/xiafs/bitmap.c | if ( (tmp=(~bmap[i]) & (0xffffffff << (start_bit & 31))) ) |
i | 46 | fs/xiafs/bitmap.c | while (++i < end) |
i | 47 | fs/xiafs/bitmap.c | if (~bmap[i]) { |
i | 48 | fs/xiafs/bitmap.c | tmp=~bmap[i]; |
i | 51 | fs/xiafs/bitmap.c | if ( !(tmp=~bmap[i] & ((1 << (end_bit & 31)) -1)) ) |
i | 57 | fs/xiafs/bitmap.c | if (set_bit(j,bmap+i)) { |
i | 58 | fs/xiafs/bitmap.c | start_bit=j + (i << 5) + 1; |
i | 62 | fs/xiafs/bitmap.c | return j + (i << 5); |
i | 67 | fs/xiafs/bitmap.c | register int i; |
i | 71 | fs/xiafs/bitmap.c | for (i= bh->b_size >> 2; i-- > 0; ) |
i | 79 | fs/xiafs/bitmap.c | int i; |
i | 83 | fs/xiafs/bitmap.c | for (i=pos; i > 0; i--) { |
i | 84 | fs/xiafs/bitmap.c | bmap[i]=bmap[i-1]; |
i | 85 | fs/xiafs/bitmap.c | bznr[i]=bznr[i-1]; |
i | 112 | fs/xiafs/bitmap.c | int z_nr, i; |
i | 122 | fs/xiafs/bitmap.c | for (i=0; i < slots; i++) |
i | 123 | fs/xiafs/bitmap.c | if (bznr[i]==z_nr) |
i | 125 | fs/xiafs/bitmap.c | if (i < slots) { /* cache hit */ |
i | 127 | fs/xiafs/bitmap.c | *not_que=i; |
i | 128 | fs/xiafs/bitmap.c | return bmap_buf[i]; |
i | 130 | fs/xiafs/bitmap.c | que(bmap_buf, bznr, i); |
i | 341 | fs/xiafs/bitmap.c | int i, tmp; |
i | 345 | fs/xiafs/bitmap.c | for (i=bh->b_size; i-- > 0; ) { |
i | 346 | fs/xiafs/bitmap.c | tmp=bh->b_data[i]; |
i | 355 | fs/xiafs/bitmap.c | int izones, i, not_que; |
i | 360 | fs/xiafs/bitmap.c | for (i=0; i < izones; i++) { |
i | 361 | fs/xiafs/bitmap.c | bh=get_imap_zone(sb, i << XIAFS_BITS_PER_Z_BITS(sb), ¬_que); |
i | 367 | fs/xiafs/bitmap.c | i=izones << XIAFS_BITS_PER_Z_BITS(sb); |
i | 368 | fs/xiafs/bitmap.c | return i - sum; |
i | 374 | fs/xiafs/bitmap.c | int zzones, i, not_que; |
i | 379 | fs/xiafs/bitmap.c | for (i=0; i < zzones; i++) { |
i | 380 | fs/xiafs/bitmap.c | bh=get_zmap_zone(sb, i << XIAFS_BITS_PER_Z_BITS(sb), ¬_que); |
i | 386 | fs/xiafs/bitmap.c | i=zzones << XIAFS_BITS_PER_Z_BITS(sb); |
i | 387 | fs/xiafs/bitmap.c | return i - sum; |
i | 71 | fs/xiafs/dir.c | u_int offset, i,ret; |
i | 87 | fs/xiafs/dir.c | for (i = 0; i < XIAFS_ZSIZE(inode->i_sb) && i < offset; ) { |
i | 88 | fs/xiafs/dir.c | de = (struct xiafs_direct *) (bh->b_data + i); |
i | 91 | fs/xiafs/dir.c | i += de->d_rec_len; |
i | 93 | fs/xiafs/dir.c | offset = i; |
i | 110 | fs/xiafs/dir.c | for (i = 0; i < de->d_name_len ; i++) |
i | 111 | fs/xiafs/dir.c | put_fs_byte(de->d_name[i],i+dirent->d_name); |
i | 112 | fs/xiafs/dir.c | put_fs_byte(0,i+dirent->d_name); |
i | 114 | fs/xiafs/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 119 | fs/xiafs/dir.c | ret = ROUND_UP(NAME_OFFSET(dirent)+i+1); |
i | 84 | fs/xiafs/fsync.c | int i; |
i | 87 | fs/xiafs/fsync.c | for (i = 0; i < 8; i++) { |
i | 88 | fs/xiafs/fsync.c | rc = sync_block (inode, inode->u.ext_i.i_data + i, wait); |
i | 99 | fs/xiafs/fsync.c | int i; |
i | 107 | fs/xiafs/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 109 | fs/xiafs/fsync.c | ((unsigned long *) ind_bh->b_data) + i, |
i | 123 | fs/xiafs/fsync.c | int i; |
i | 131 | fs/xiafs/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 133 | fs/xiafs/fsync.c | ((unsigned long *) dind_bh->b_data) + i, |
i | 45 | fs/xiafs/inode.c | int i; |
i | 49 | fs/xiafs/inode.c | for(i = 0 ; i < _XIAFS_IMAP_SLOTS ; i++) |
i | 50 | fs/xiafs/inode.c | brelse(sb->u.xiafs_sb.s_imap_buf[i]); |
i | 51 | fs/xiafs/inode.c | for(i = 0 ; i < _XIAFS_ZMAP_SLOTS ; i++) |
i | 52 | fs/xiafs/inode.c | brelse(sb->u.xiafs_sb.s_zmap_buf[i]); |
i | 73 | fs/xiafs/inode.c | int i, z, dev; |
i | 123 | fs/xiafs/inode.c | for (i=0;i < _XIAFS_IMAP_SLOTS;i++) { |
i | 124 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_buf[i] = NULL; |
i | 125 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_iznr[i] = -1; |
i | 127 | fs/xiafs/inode.c | for (i=0;i < _XIAFS_ZMAP_SLOTS;i++) { |
i | 128 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_buf[i] = NULL; |
i | 129 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_zznr[i] = -1; |
i | 136 | fs/xiafs/inode.c | for (i=0 ; i < s->u.xiafs_sb.s_imap_zones ; i++) { |
i | 137 | fs/xiafs/inode.c | if (!(s->u.xiafs_sb.s_imap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s)))) |
i | 139 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_iznr[i]=i; |
i | 146 | fs/xiafs/inode.c | for (i=0 ; i < s->u.xiafs_sb.s_zmap_zones ; i++) { |
i | 147 | fs/xiafs/inode.c | if (!(s->u.xiafs_sb.s_zmap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s)))) |
i | 149 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_zznr[i]=i; |
i | 163 | fs/xiafs/inode.c | for(i=0; i < _XIAFS_IMAP_SLOTS; i++) |
i | 164 | fs/xiafs/inode.c | brelse(s->u.xiafs_sb.s_imap_buf[i]); |
i | 165 | fs/xiafs/inode.c | for(i=0; i < _XIAFS_ZMAP_SLOTS; i++) |
i | 166 | fs/xiafs/inode.c | brelse(s->u.xiafs_sb.s_zmap_buf[i]); |
i | 203 | fs/xiafs/inode.c | int i; |
i | 221 | fs/xiafs/inode.c | i = inode->u.xiafs_i.i_ind_zone; |
i | 222 | fs/xiafs/inode.c | if (i) |
i | 223 | fs/xiafs/inode.c | i = zone_bmap(bread(inode->i_dev, i, XIAFS_ZSIZE(inode->i_sb)), zone); |
i | 224 | fs/xiafs/inode.c | return i; |
i | 227 | fs/xiafs/inode.c | i = inode->u.xiafs_i.i_dind_zone; |
i | 228 | fs/xiafs/inode.c | if (i) |
i | 229 | fs/xiafs/inode.c | i = zone_bmap(bread(inode->i_dev, i, XIAFS_ZSIZE(inode->i_sb)), |
i | 231 | fs/xiafs/inode.c | if (i) |
i | 232 | fs/xiafs/inode.c | i= zone_bmap(bread(inode->i_dev,i, XIAFS_ZSIZE(inode->i_sb)), |
i | 234 | 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 | 589 | fs/xiafs/namei.c | int i; |
i | 612 | fs/xiafs/namei.c | for (i = 0; i < BLOCK_SIZE-1 && (c=*symname++); i++) |
i | 613 | fs/xiafs/namei.c | name_block->b_data[i] = c; |
i | 614 | fs/xiafs/namei.c | name_block->b_data[i] = 0; |
i | 617 | 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 | 42 | fs/xiafs/truncate.c | int i, tmp; |
i | 46 | fs/xiafs/truncate.c | for (i = DT_ZONE ; i < 8 ; i++) { |
i | 47 | fs/xiafs/truncate.c | if (i < DT_ZONE) |
i | 49 | fs/xiafs/truncate.c | lp=i + inode->u.xiafs_i.i_zone; |
i | 53 | fs/xiafs/truncate.c | if (i < DT_ZONE) { |
i | 76 | fs/xiafs/truncate.c | int i, tmp; |
i | 92 | fs/xiafs/truncate.c | for (i = INDT_ZONE<0?0:INDT_ZONE; i < XIAFS_ADDRS_PER_Z(inode->i_sb); i++) { |
i | 93 | fs/xiafs/truncate.c | if (i < INDT_ZONE) |
i | 95 | fs/xiafs/truncate.c | indp = i+(u_long *) ind_bh->b_data; |
i | 99 | fs/xiafs/truncate.c | if (i < INDT_ZONE) { |
i | 114 | fs/xiafs/truncate.c | for (i = 0; i < XIAFS_ADDRS_PER_Z(inode->i_sb) && !(*indp++); i++) ; |
i | 115 | fs/xiafs/truncate.c | if (i >= XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i | 135 | fs/xiafs/truncate.c | int i, tmp; |
i | 153 | fs/xiafs/truncate.c | for (i=DINDT_ZONE<0?0:DINDT_ZONE ; i < XIAFS_ADDRS_PER_Z(inode->i_sb) ; i ++) { |
i | 154 | fs/xiafs/truncate.c | if (i < DINDT_ZONE) |
i | 156 | fs/xiafs/truncate.c | dindp = i+(u_long *) dind_bh->b_data; |
i | 158 | fs/xiafs/truncate.c | 8+((1+i)<<XIAFS_ADDRS_PER_Z_BITS(inode->i_sb)), |
i | 163 | fs/xiafs/truncate.c | for (i = 0; i < XIAFS_ADDRS_PER_Z(inode->i_sb) && !(*dindp++); i++); |
i | 164 | fs/xiafs/truncate.c | if (i >= XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i | 140 | ibcs/binfmt_elf.c | int i, k; |
i | 175 | ibcs/binfmt_elf.c | for(i=0; i<interp_elf_ex->e_phnum; i++, eppnt++) |
i | 271 | ibcs/binfmt_elf.c | int i; |
i | 340 | ibcs/binfmt_elf.c | for(i=0;i < elf_ex.e_phnum; i++){ |
i | 448 | ibcs/binfmt_elf.c | for(i=0;i < elf_ex.e_phnum; i++){ |
i | 575 | ibcs/binfmt_elf.c | int i,j, k; |
i | 616 | ibcs/binfmt_elf.c | for(i=0; i<elf_ex.e_phnum; i++) |
i | 617 | ibcs/binfmt_elf.c | if((elf_phdata + i)->p_type == PT_LOAD) j++; |
i | 62 | include/asm-i386/io.h | #define __IN(s,s1,i...) \ |
i | 63 | include/asm-i386/io.h | __IN1(s) __IN2(s,s1,"w") : "=a" (_v) : "d" (port) ,##i ); return _v; } \ |
i | 64 | include/asm-i386/io.h | __IN1(s##c) __IN2(s,s1,"") : "=a" (_v) : "i" (port) ,##i ); return _v; } \ |
i | 65 | include/asm-i386/io.h | __IN1(s##_p) __IN2(s,s1,"w") : "=a" (_v) : "d" (port) ,##i ); SLOW_DOWN_IO; return _v; } \ |
i | 66 | include/asm-i386/io.h | __IN1(s##c_p) __IN2(s,s1,"") : "=a" (_v) : "i" (port) ,##i ); SLOW_DOWN_IO; return _v; } |
i | 43 | include/linux/msdos_fs.h | #define MSDOS_I(i) (&((i)->u.msdos_i)) |
i | 167 | init/main.c | int i=1; |
i | 169 | init/main.c | while (cur && isdigit(*cur) && i <= 10) { |
i | 170 | init/main.c | ints[i++] = simple_strtoul(cur,NULL,0); |
i | 174 | init/main.c | ints[0] = i-1; |
i | 257 | init/main.c | int i = 0; |
i | 260 | init/main.c | while (bootsetups[i].str) { |
i | 261 | init/main.c | int n = strlen(bootsetups[i].str); |
i | 262 | init/main.c | if (!strncmp(line,bootsetups[i].str,n)) { |
i | 263 | init/main.c | bootsetups[i].setup_func(get_options(line+n,ints), ints); |
i | 266 | init/main.c | i++; |
i | 497 | init/main.c | int i; |
i | 500 | init/main.c | write(1,printbuf,i=vsprintf(printbuf, fmt, args)); |
i | 502 | init/main.c | return i; |
i | 507 | init/main.c | int pid,i; |
i | 544 | init/main.c | while (pid != wait(&i)) |
i | 560 | init/main.c | if (pid == wait(&i)) |
i | 562 | init/main.c | printf("\n\rchild %d died with code %04x\n\r",pid,i); |
i | 29 | ipc/sem.c | int i; |
i | 33 | ipc/sem.c | for (i = 0; i < SEMMNI; i++) |
i | 34 | ipc/sem.c | semary[i] = (struct semid_ds *) IPC_UNUSED; |
i | 155 | ipc/sem.c | int i, id, val = 0; |
i | 186 | ipc/sem.c | i = verify_area(VERIFY_WRITE, tmp, sizeof(struct seminfo)); |
i | 187 | ipc/sem.c | if (i) |
i | 188 | ipc/sem.c | return i; |
i | 195 | ipc/sem.c | i = verify_area (VERIFY_WRITE, buf, sizeof (*buf)); |
i | 196 | ipc/sem.c | if (i) |
i | 197 | ipc/sem.c | return i; |
i | 250 | ipc/sem.c | i = verify_area (VERIFY_WRITE, array, nsems*sizeof(ushort)); |
i | 251 | ipc/sem.c | if (i) |
i | 252 | ipc/sem.c | return i; |
i | 269 | ipc/sem.c | if ((i = verify_area (VERIFY_READ, array, nsems*sizeof(ushort)))) |
i | 270 | ipc/sem.c | return i; |
i | 272 | ipc/sem.c | for (i = 0; i < nsems; i++) |
i | 273 | ipc/sem.c | if (sem_io[i] > SEMVMX) |
i | 278 | ipc/sem.c | if ((i = verify_area (VERIFY_WRITE, buf, sizeof(*buf)))) |
i | 279 | ipc/sem.c | return i; |
i | 283 | ipc/sem.c | if ((i = verify_area (VERIFY_READ, buf, sizeof (*buf)))) |
i | 284 | ipc/sem.c | return i; |
i | 298 | ipc/sem.c | for (i = 0; i < sma->sem_nsems; i++) |
i | 299 | ipc/sem.c | sem_io[i] = sma->sem_base[i].semval; |
i | 338 | ipc/sem.c | for (i = 0; i < nsems; i++) |
i | 339 | ipc/sem.c | sma->sem_base[i].semval = sem_io[i]; |
i | 356 | ipc/sem.c | int i, id; |
i | 369 | ipc/sem.c | if ((i = verify_area (VERIFY_READ, tsops, nsops * sizeof(*tsops)))) |
i | 370 | ipc/sem.c | return i; |
i | 375 | ipc/sem.c | for (i = 0; i < nsops; i++) { |
i | 376 | ipc/sem.c | sop = &sops[i]; |
i | 393 | ipc/sem.c | for (i = 0; i < nsops; i++) { |
i | 394 | ipc/sem.c | if (!(sops[i].sem_flg & SEM_UNDO)) |
i | 398 | ipc/sem.c | (un->sem_num == sops[i].sem_num)) |
i | 408 | ipc/sem.c | un->sem_num = sops[i].sem_num; |
i | 419 | ipc/sem.c | for (i = 0; i < nsops; i++) { |
i | 420 | ipc/sem.c | sop = &sops[i]; |
i | 446 | ipc/sem.c | for (i = 0; i < nsops; i++) { |
i | 447 | ipc/sem.c | sop = &sops[i]; |
i | 459 | ipc/sem.c | printk ("semop : no undo for op %d\n", i); |
i | 75 | ipc/shm.c | int id, i; |
i | 106 | ipc/shm.c | for (i = 0; i < numpages; shp->shm_pages[i++] = 0); |
i | 163 | ipc/shm.c | int i, numpages; |
i | 182 | ipc/shm.c | for (i = 0; i < numpages ; i++) { |
i | 183 | ipc/shm.c | if (!(page = shp->shm_pages[i])) |
i | 416 | kernel/bios32.c | int i, length; |
i | 434 | kernel/bios32.c | for (i = 0; i < length ; ++i) |
i | 435 | kernel/bios32.c | sum += check->chars[i]; |
i | 75 | kernel/dma.c | int i, len = 0; |
i | 77 | kernel/dma.c | for (i = 0 ; i < MAX_DMA_CHANNELS ; i++) { |
i | 78 | kernel/dma.c | if (dma_chan_busy[i]) { |
i | 80 | kernel/dma.c | i, |
i | 81 | kernel/dma.c | dma_chan_busy[i]); |
i | 84 | kernel/exit.c | int i; |
i | 92 | kernel/exit.c | for (i=1 ; i<NR_TASKS ; i++) |
i | 93 | kernel/exit.c | if (task[i] == p) { |
i | 94 | kernel/exit.c | task[i] = NULL; |
i | 112 | kernel/exit.c | int i; |
i | 116 | kernel/exit.c | for (i=0 ; i<NR_TASKS ; i++) |
i | 117 | kernel/exit.c | if (task[i] == p) |
i | 133 | kernel/exit.c | int i; |
i | 135 | kernel/exit.c | for (i=1 ; i<NR_TASKS ; i++) { |
i | 136 | kernel/exit.c | if (!task[i]) |
i | 138 | kernel/exit.c | if (bad_task_ptr(task[i]->p_pptr)) |
i | 140 | kernel/exit.c | task[i]->pid); |
i | 141 | kernel/exit.c | if (bad_task_ptr(task[i]->p_cptr)) |
i | 143 | kernel/exit.c | task[i]->pid); |
i | 144 | kernel/exit.c | if (bad_task_ptr(task[i]->p_ysptr)) |
i | 146 | kernel/exit.c | task[i]->pid); |
i | 147 | kernel/exit.c | if (bad_task_ptr(task[i]->p_osptr)) |
i | 149 | kernel/exit.c | task[i]->pid); |
i | 150 | kernel/exit.c | if (task[i]->p_pptr == task[i]) |
i | 152 | kernel/exit.c | task[i]->pid); |
i | 153 | kernel/exit.c | if (task[i]->p_cptr == task[i]) |
i | 155 | kernel/exit.c | task[i]->pid); |
i | 156 | kernel/exit.c | if (task[i]->p_ysptr == task[i]) |
i | 158 | kernel/exit.c | task[i]->pid); |
i | 159 | kernel/exit.c | if (task[i]->p_osptr == task[i]) |
i | 161 | kernel/exit.c | task[i]->pid); |
i | 162 | kernel/exit.c | if (task[i]->p_osptr) { |
i | 163 | kernel/exit.c | if (task[i]->p_pptr != task[i]->p_osptr->p_pptr) |
i | 166 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid, |
i | 167 | kernel/exit.c | task[i]->p_osptr->p_pptr->pid); |
i | 168 | kernel/exit.c | if (task[i]->p_osptr->p_ysptr != task[i]) |
i | 171 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid); |
i | 173 | kernel/exit.c | if (task[i]->p_ysptr) { |
i | 174 | kernel/exit.c | if (task[i]->p_pptr != task[i]->p_ysptr->p_pptr) |
i | 177 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid, |
i | 178 | kernel/exit.c | task[i]->p_osptr->p_pptr->pid); |
i | 179 | kernel/exit.c | if (task[i]->p_ysptr->p_osptr != task[i]) |
i | 182 | kernel/exit.c | task[i]->pid, task[i]->p_ysptr->pid); |
i | 184 | kernel/exit.c | if (task[i]->p_cptr) { |
i | 185 | kernel/exit.c | if (task[i]->p_cptr->p_pptr != task[i]) |
i | 188 | kernel/exit.c | task[i]->pid, task[i]->p_cptr->pid); |
i | 189 | kernel/exit.c | if (task[i]->p_cptr->p_ysptr) |
i | 192 | kernel/exit.c | task[i]->pid, task[i]->p_cptr->pid); |
i | 390 | kernel/exit.c | int i; |
i | 392 | kernel/exit.c | for (i=0 ; i<NR_OPEN ; i++) |
i | 393 | kernel/exit.c | if (current->files->fd[i]) |
i | 394 | kernel/exit.c | sys_close(i); |
i | 39 | kernel/fork.c | int i, tasks_free; |
i | 48 | kernel/fork.c | i = NR_TASKS; |
i | 49 | kernel/fork.c | while (--i > 0) { |
i | 50 | kernel/fork.c | if (!task[i]) { |
i | 51 | kernel/fork.c | free_task = i; |
i | 55 | kernel/fork.c | if (task[i]->uid == current->uid) |
i | 57 | kernel/fork.c | if (task[i]->pid == last_pid || task[i]->pgrp == last_pid || |
i | 58 | kernel/fork.c | task[i]->session == last_pid) |
i | 123 | kernel/fork.c | int i; |
i | 127 | kernel/fork.c | for (i=0; i<NR_OPEN;i++) |
i | 128 | kernel/fork.c | if ((f = p->files->fd[i]) != NULL) |
i | 129 | kernel/fork.c | p->files->fd[i] = copy_fd(f); |
i | 131 | kernel/fork.c | for (i=0; i<NR_OPEN;i++) |
i | 132 | kernel/fork.c | if ((f = p->files->fd[i]) != NULL) |
i | 176 | kernel/fork.c | int i,nr; |
i | 244 | kernel/fork.c | for (i = 0; i < IO_BITMAP_SIZE+1 ; i++) /* IO bitmap is actually SIZE+1 */ |
i | 245 | kernel/fork.c | p->tss.io_bitmap[i] = ~0; |
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 | 210 | kernel/ioport.c | int i; |
i | 212 | kernel/ioport.c | for (i = 1; i < ints[0]; i += 2) |
i | 213 | kernel/ioport.c | snarf_region(ints[i], ints[i+1]); |
i | 195 | kernel/irq.c | int i, len = 0; |
i | 198 | kernel/irq.c | for (i = 0 ; i < 16 ; i++, sa++) { |
i | 202 | kernel/irq.c | i, kstat.interrupts[i], |
i | 338 | kernel/irq.c | int i; |
i | 340 | kernel/irq.c | for (i = 0; i < 16 ; i++) |
i | 341 | kernel/irq.c | set_intr_gate(0x20+i,bad_interrupt[i]); |
i | 348 | kernel/irq.c | for (i = 0; i < 32; i++) { |
i | 349 | kernel/irq.c | bh_base[i].routine = NULL; |
i | 350 | 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 | 90 | kernel/itimer.c | current->it_real_incr = i; |
i | 96 | kernel/itimer.c | current->it_virt_incr = i; |
i | 102 | 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, LDT_ENTRIES); |
i | 70 | kernel/ldt.c | load_ldt(i); |
i | 50 | kernel/module.c | int i; |
i | 52 | kernel/module.c | for (i = 0, sym = symbol_table.symbol; sym->name; ++sym, ++i) |
i | 54 | kernel/module.c | symbol_table.n_symbols = i; |
i | 65 | kernel/module.c | int i = 0; /* keep gcc silent */ |
i | 69 | kernel/module.c | for (i = module_list->symtab->n_symbols; i > 0; ++sym, --i) { |
i | 219 | kernel/module.c | int i; |
i | 249 | kernel/module.c | for (sym = &(newtab->symbol[0]), i = 0; |
i | 250 | kernel/module.c | i < newtab->n_symbols; ++sym, ++i) { |
i | 269 | kernel/module.c | for (ref = (struct module_ref *)sym, i = 0; |
i | 270 | kernel/module.c | i < newtab->n_refs; ++ref, ++i) { |
i | 349 | kernel/module.c | int i; |
i | 362 | kernel/module.c | if ((i = verify_area(VERIFY_WRITE, to, nmodsyms * sizeof(*table)))) |
i | 363 | kernel/module.c | return i; |
i | 375 | kernel/module.c | for (i = mp->symtab->n_symbols, |
i | 377 | kernel/module.c | i > 0; --i, ++from, ++to) { |
i | 397 | kernel/module.c | int i; |
i | 399 | kernel/module.c | i = 0; |
i | 400 | kernel/module.c | for (i = 0 ; (buf[i] = get_fs_byte(user_name + i)) != '\0' ; ) { |
i | 401 | kernel/module.c | if (++i >= MOD_MAX_NAME) |
i | 493 | kernel/module.c | int i; |
i | 504 | kernel/module.c | i = 20; |
i | 507 | kernel/module.c | i--; |
i | 510 | kernel/module.c | i -= strlen(size); |
i | 511 | kernel/module.c | if (i <= 0) |
i | 512 | kernel/module.c | i = 1; |
i | 513 | kernel/module.c | while (--i >= 0) |
i | 554 | kernel/module.c | int i; |
i | 560 | kernel/module.c | for (i = mp->symtab->n_symbols, |
i | 562 | kernel/module.c | i > 0; --i, ++sym) { |
i | 56 | kernel/printk.c | unsigned long i, j, count; |
i | 84 | kernel/printk.c | i = 0; |
i | 85 | kernel/printk.c | while (log_size && i < len) { |
i | 93 | kernel/printk.c | i++; |
i | 97 | kernel/printk.c | return i; |
i | 115 | kernel/printk.c | for (i = 0; i < count; i++) { |
i | 121 | kernel/printk.c | return i; |
i | 144 | kernel/printk.c | int i; |
i | 152 | kernel/printk.c | i = vsprintf(buf + 3, fmt, args); /* hopefully i < sizeof(buf)-4 */ |
i | 153 | kernel/printk.c | buf_end = buf + 3 + i; |
i | 195 | kernel/printk.c | return i; |
i | 206 | kernel/printk.c | int i,j; |
i | 214 | kernel/printk.c | for (i=0,j=0; i < log_size; i++) { |
i | 217 | 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 | 275 | kernel/ptrace.c | int i; |
i | 418 | kernel/ptrace.c | for(i=0; i<4; i++) |
i | 419 | kernel/ptrace.c | if ((0x5f54 >> ((data >> (16 + 4*i)) & 0xf)) & 1) |
i | 776 | kernel/sched.c | int i; |
i | 780 | kernel/sched.c | for (i=0 ; i<NR_TASKS ; i++) |
i | 781 | kernel/sched.c | if (task[i]) |
i | 782 | kernel/sched.c | show_task(i,task[i]); |
i | 40 | kernel/sys.c | int i; |
i | 46 | kernel/sys.c | for (i = 0 ; i < 768 ; i++) |
i | 47 | kernel/sys.c | swapper_pg_dir[i] = 0; |
i | 548 | kernel/sys.c | int i; |
i | 551 | kernel/sys.c | i = verify_area(VERIFY_WRITE, grouplist, sizeof(gid_t) * gidsetsize); |
i | 552 | kernel/sys.c | if (i) |
i | 553 | kernel/sys.c | return i; |
i | 555 | kernel/sys.c | for (i = 0 ; (i < NGROUPS) && (current->groups[i] != NOGROUP) ; i++) { |
i | 558 | kernel/sys.c | if (i >= gidsetsize) |
i | 560 | kernel/sys.c | put_fs_word(current->groups[i], (short *) grouplist); |
i | 563 | kernel/sys.c | return(i); |
i | 568 | kernel/sys.c | int i; |
i | 574 | kernel/sys.c | for (i = 0; i < gidsetsize; i++, grouplist++) { |
i | 575 | kernel/sys.c | current->groups[i] = get_fs_word((unsigned short *) grouplist); |
i | 577 | kernel/sys.c | if (i < NGROUPS) |
i | 578 | kernel/sys.c | current->groups[i] = NOGROUP; |
i | 584 | kernel/sys.c | int i; |
i | 589 | kernel/sys.c | for (i = 0; i < NGROUPS; i++) { |
i | 590 | kernel/sys.c | if (current->groups[i] == NOGROUP) |
i | 592 | kernel/sys.c | if (current->groups[i] == grp) |
i | 657 | kernel/sys.c | int i; |
i | 663 | kernel/sys.c | for (i=0; i < len; i++) { |
i | 664 | kernel/sys.c | if ((system_utsname.nodename[i] = get_fs_byte(name+i)) == 0) |
i | 667 | kernel/sys.c | system_utsname.nodename[i] = 0; |
i | 677 | kernel/sys.c | int i; |
i | 683 | kernel/sys.c | for (i=0; i < len; i++) { |
i | 684 | kernel/sys.c | if ((system_utsname.domainname[i] = get_fs_byte(name+i)) == 0) |
i | 687 | kernel/sys.c | system_utsname.domainname[i] = 0; |
i | 66 | kernel/time.c | int i; |
i | 74 | kernel/time.c | for (i = 0 ; i < 1000000 ; i++) /* may take up to 1 second... */ |
i | 77 | kernel/time.c | for (i = 0 ; i < 1000000 ; i++) /* must try at least 2.228 ms*/ |
i | 110 | kernel/time.c | int i, error; |
i | 112 | kernel/time.c | i = CURRENT_TIME; |
i | 117 | kernel/time.c | put_fs_long(i,(unsigned long *)tloc); |
i | 119 | kernel/time.c | return i; |
i | 87 | kernel/traps.c | int i; |
i | 108 | kernel/traps.c | store_TR(i); |
i | 112 | kernel/traps.c | current->comm, current->pid, 0xffff & i, current->kernel_stack_page); |
i | 113 | kernel/traps.c | for(i=0;i<5;i++) |
i | 114 | kernel/traps.c | printk("%08lx ", get_seg_long(ss,(i+(unsigned long *)esp))); |
i | 116 | kernel/traps.c | for(i=0;i<20;i++) |
i | 117 | kernel/traps.c | printk("%02x ",0xff & get_seg_byte(regs->cs,(i+(char *)regs->eip))); |
i | 269 | kernel/traps.c | int i; |
i | 291 | kernel/traps.c | for (i=18;i<48;i++) |
i | 292 | kernel/traps.c | set_trap_gate(i,&reserved); |
i | 300 | kernel/traps.c | for(i=1 ; i<NR_TASKS ; i++) { |
i | 285 | kernel/vm86.c | static void do_int(struct vm86_regs *regs, int i, unsigned char * ssp, unsigned long sp) |
i | 287 | kernel/vm86.c | unsigned short seg = get_fs_word((void *) ((i<<2)+2)); |
i | 290 | kernel/vm86.c | is_revectored(i, ¤t->tss.vm86_info->int_revectored)) |
i | 291 | kernel/vm86.c | return_to_32bit(regs, VM86_INTx + (i << 8)); |
i | 292 | kernel/vm86.c | if (i==0x21 && is_revectored(AH(regs),¤t->tss.vm86_info->int21_revectored)) |
i | 293 | kernel/vm86.c | return_to_32bit(regs, VM86_INTx + (i << 8)); |
i | 299 | kernel/vm86.c | IP(regs) = get_fs_word((void *) (i<<2)); |
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 | 73 | kernel/vsprintf.c | int i; |
i | 102 | kernel/vsprintf.c | i = 0; |
i | 104 | kernel/vsprintf.c | tmp[i++]='0'; |
i | 106 | kernel/vsprintf.c | tmp[i++] = digits[do_div(num,base)]; |
i | 107 | kernel/vsprintf.c | if (i > precision) |
i | 108 | kernel/vsprintf.c | precision = i; |
i | 125 | kernel/vsprintf.c | while (i < precision--) |
i | 127 | kernel/vsprintf.c | while (i-- > 0) |
i | 128 | kernel/vsprintf.c | *str++ = tmp[i]; |
i | 138 | kernel/vsprintf.c | int i, base; |
i | 229 | kernel/vsprintf.c | for (i = 0; i < len; ++i) |
i | 302 | kernel/vsprintf.c | int i; |
i | 305 | kernel/vsprintf.c | i=vsprintf(buf,fmt,args); |
i | 307 | kernel/vsprintf.c | return i; |
i | 36 | mm/filemap.c | int i, *p; |
i | 41 | mm/filemap.c | i = PAGE_SIZE >> inode->i_sb->s_blocksize_bits; |
i | 45 | mm/filemap.c | i--; |
i | 48 | mm/filemap.c | } while (i > 0); |
i | 167 | mm/kmalloc.c | int order,tries,i,sz; |
i | 251 | mm/kmalloc.c | for (i=NBLOCKS(order),p=BH (page+1);i > 1;i--,p=p->bh_next) |
i | 133 | mm/memory.c | int i; |
i | 154 | mm/memory.c | for (i = 768 ; i < 1024 ; i++) |
i | 155 | mm/memory.c | new_pg[i] = page_dir[i]; |
i | 160 | mm/memory.c | for (i = 0 ; i < 768 ; i++,page_dir++) |
i | 171 | mm/memory.c | int i; |
i | 194 | mm/memory.c | for (i = 0 ; i < PTRS_PER_PAGE ; i++,page_dir++) |
i | 223 | mm/memory.c | int i; |
i | 233 | mm/memory.c | for (i = 0 ; i < PTRS_PER_PAGE ; i++,old_page_dir++,new_page_dir++) { |
i | 1116 | mm/memory.c | int i,free = 0,total = 0,reserved = 0; |
i | 1122 | mm/memory.c | i = high_memory >> PAGE_SHIFT; |
i | 1123 | mm/memory.c | while (i-- > 0) { |
i | 1125 | mm/memory.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 1127 | mm/memory.c | else if (!mem_map[i]) |
i | 1130 | mm/memory.c | shared += mem_map[i]-1; |
i | 1265 | mm/memory.c | int i; |
i | 1267 | mm/memory.c | i = high_memory >> PAGE_SHIFT; |
i | 1272 | mm/memory.c | while (i-- > 0) { |
i | 1273 | mm/memory.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 1276 | mm/memory.c | if (!mem_map[i]) |
i | 1278 | mm/memory.c | val->sharedram += mem_map[i]-1; |
i | 142 | mm/swap.c | int i; |
i | 160 | mm/swap.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j += 512){ |
i | 161 | mm/swap.c | if (!(zones[i] = swapf->i_op->smap(swapf,block++))) { |
i | 171 | mm/swap.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j +=swapf->i_sb->s_blocksize) |
i | 172 | mm/swap.c | if (!(zones[i] = bmap(swapf,block++))) { |
i | 177 | mm/swap.c | ll_rw_swap_file(rw,swapf->i_dev, zones, i,buf); |
i | 513 | mm/swap.c | int i=6; |
i | 515 | mm/swap.c | while (i--) { |
i | 516 | mm/swap.c | if (priority != GFP_NOBUFFER && shrink_buffers(i)) |
i | 518 | mm/swap.c | if (shm_swap(i)) |
i | 520 | mm/swap.c | if (swap_out(i)) |
i | 810 | mm/swap.c | int i; |
i | 814 | mm/swap.c | i = namei(specialfile,&inode); |
i | 815 | mm/swap.c | if (i) |
i | 816 | mm/swap.c | return i; |
i | 837 | mm/swap.c | i = try_to_unuse(type); |
i | 838 | mm/swap.c | if (i) { |
i | 841 | mm/swap.c | return i; |
i | 879 | mm/swap.c | int i,j; |
i | 925 | mm/swap.c | for (i = 0 ; i < nr_swapfiles ; i++) { |
i | 926 | mm/swap.c | if (i == type) |
i | 928 | mm/swap.c | if (p->swap_device == swap_info[i].swap_device) |
i | 949 | mm/swap.c | for (i = 1 ; i < 8*PAGE_SIZE ; i++) { |
i | 950 | mm/swap.c | if (test_bit(i,p->swap_lockmap)) { |
i | 952 | mm/swap.c | p->lowest_bit = i; |
i | 953 | mm/swap.c | p->highest_bit = i; |
i | 954 | mm/swap.c | p->max = i+1; |
i | 968 | mm/swap.c | for (i = 1 ; i < p->max ; i++) { |
i | 969 | mm/swap.c | if (test_bit(i,p->swap_lockmap)) |
i | 970 | mm/swap.c | p->swap_map[i] = 0; |
i | 972 | mm/swap.c | p->swap_map[i] = 0x80; |
i | 998 | mm/swap.c | unsigned int i, j; |
i | 1001 | mm/swap.c | for (i = 0; i < nr_swapfiles; i++) { |
i | 1002 | mm/swap.c | if ((swap_info[i].flags & SWP_WRITEOK) != SWP_WRITEOK) |
i | 1004 | mm/swap.c | for (j = 0; j < swap_info[i].max; ++j) |
i | 1005 | mm/swap.c | switch (swap_info[i].swap_map[j]) { |
i | 1029 | mm/swap.c | int i; |
i | 1035 | mm/swap.c | i = end_mem >> (PAGE_SHIFT+6); |
i | 1036 | mm/swap.c | if (i < 16) |
i | 1037 | mm/swap.c | i = 16; |
i | 1038 | mm/swap.c | min_free_pages = i; |
i | 1046 | mm/swap.c | for (i = 0 ; i < NR_MEM_LISTS ; i++, mask <<= 1) { |
i | 1048 | mm/swap.c | free_area_list[i].prev = free_area_list[i].next = &free_area_list[i]; |
i | 1050 | mm/swap.c | bitmap_size = end_mem >> (PAGE_SHIFT + i); |
i | 1052 | mm/swap.c | free_area_map[i] = (unsigned char *) start_mem; |
i | 115 | mm/vmalloc.c | unsigned long i = PTRS_PER_PAGE - index; |
i | 117 | mm/vmalloc.c | if (i > nr) |
i | 118 | mm/vmalloc.c | i = nr; |
i | 119 | mm/vmalloc.c | nr -= i; |
i | 120 | mm/vmalloc.c | if (area_fn(dindex, index, i)) |
i | 104 | net/inet/af_inet.c | int i, j; |
i | 117 | net/inet/af_inet.c | for(i=0; i < SOCK_ARRAY_SIZE; i++) |
i | 120 | net/inet/af_inet.c | sk = prot->sock_array[(i+base+1) &(SOCK_ARRAY_SIZE -1)]; |
i | 128 | net/inet/af_inet.c | start =(i+1+start )%1024; |
i | 129 | net/inet/af_inet.c | return(i+base+1); |
i | 133 | net/inet/af_inet.c | best = i; |
i | 1466 | net/inet/af_inet.c | int i; |
i | 1483 | net/inet/af_inet.c | for(i = 0; i < SOCK_ARRAY_SIZE; i++) |
i | 1485 | net/inet/af_inet.c | tcp_prot.sock_array[i] = NULL; |
i | 1486 | net/inet/af_inet.c | udp_prot.sock_array[i] = NULL; |
i | 1487 | net/inet/af_inet.c | raw_prot.sock_array[i] = NULL; |
i | 186 | net/inet/arp.c | int i; |
i | 192 | net/inet/arp.c | for (i = 0; i < FULL_ARP_TABLE_SIZE; i++) |
i | 195 | net/inet/arp.c | struct arp_table **pentry = &arp_tables[i]; |
i | 252 | net/inet/arp.c | int i; |
i | 260 | net/inet/arp.c | for (i = 0; i < FULL_ARP_TABLE_SIZE; i++) |
i | 263 | net/inet/arp.c | struct arp_table **pentry = &arp_tables[i]; |
i | 928 | net/inet/arp.c | int i,j,k; |
i | 937 | net/inet/arp.c | for(i=0; i<FULL_ARP_TABLE_SIZE; i++) |
i | 939 | net/inet/arp.c | for(entry=arp_tables[i]; entry!=NULL; entry=entry->next) |
i | 839 | net/inet/dev.c | int i; |
i | 848 | net/inet/dev.c | for(i = 0;i < DEV_NUMBUFFS; i++) |
i | 856 | net/inet/dev.c | while((skb=skb_dequeue(&dev->buffs[i]))!=NULL) |
i | 867 | net/inet/dev.c | dev_queue_xmit(skb,dev,-i - 1); |
i | 221 | net/inet/igmp.c | struct ip_mc_list *i; |
i | 222 | net/inet/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=i->next) |
i | 224 | net/inet/igmp.c | if(i->multiaddr==addr) |
i | 226 | net/inet/igmp.c | i->users++; |
i | 230 | net/inet/igmp.c | i=(struct ip_mc_list *)kmalloc(sizeof(*i), GFP_KERNEL); |
i | 231 | net/inet/igmp.c | if(!i) |
i | 233 | net/inet/igmp.c | i->users=1; |
i | 234 | net/inet/igmp.c | i->interface=dev; |
i | 235 | net/inet/igmp.c | i->multiaddr=addr; |
i | 236 | net/inet/igmp.c | i->next=dev->ip_mc_list; |
i | 237 | net/inet/igmp.c | igmp_group_added(i); |
i | 238 | net/inet/igmp.c | dev->ip_mc_list=i; |
i | 247 | net/inet/igmp.c | struct ip_mc_list **i; |
i | 248 | net/inet/igmp.c | for(i=&(dev->ip_mc_list);(*i)!=NULL;i=&(*i)->next) |
i | 250 | net/inet/igmp.c | if((*i)->multiaddr==addr) |
i | 252 | net/inet/igmp.c | if(--((*i)->users)) |
i | 256 | net/inet/igmp.c | struct ip_mc_list *tmp= *i; |
i | 258 | net/inet/igmp.c | *i=(*i)->next; |
i | 271 | net/inet/igmp.c | struct ip_mc_list *i; |
i | 273 | net/inet/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=j) |
i | 275 | net/inet/igmp.c | j=i->next; |
i | 276 | net/inet/igmp.c | kfree_s(i,sizeof(*i)); |
i | 287 | net/inet/igmp.c | struct ip_mc_list *i; |
i | 288 | net/inet/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=i->next) |
i | 289 | net/inet/igmp.c | if(i->multiaddr==IGMP_ALL_HOSTS) |
i | 291 | net/inet/igmp.c | i=(struct ip_mc_list *)kmalloc(sizeof(*i), GFP_KERNEL); |
i | 292 | net/inet/igmp.c | if(!i) |
i | 294 | net/inet/igmp.c | i->users=1; |
i | 295 | net/inet/igmp.c | i->interface=dev; |
i | 296 | net/inet/igmp.c | i->multiaddr=IGMP_ALL_HOSTS; |
i | 297 | net/inet/igmp.c | i->next=dev->ip_mc_list; |
i | 298 | net/inet/igmp.c | dev->ip_mc_list=i; |
i | 299 | net/inet/igmp.c | ip_mc_filter_add(i->interface, i->multiaddr); |
i | 310 | net/inet/igmp.c | int i; |
i | 321 | net/inet/igmp.c | for(i=0;i<IP_MAX_MEMBERSHIPS;i++) |
i | 323 | net/inet/igmp.c | if(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev) |
i | 325 | net/inet/igmp.c | if(sk->ip_mc_list->multidev[i]==NULL) |
i | 326 | net/inet/igmp.c | unused=i; |
i | 343 | net/inet/igmp.c | int i; |
i | 351 | net/inet/igmp.c | for(i=0;i<IP_MAX_MEMBERSHIPS;i++) |
i | 353 | net/inet/igmp.c | if(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev) |
i | 355 | net/inet/igmp.c | sk->ip_mc_list->multidev[i]=NULL; |
i | 369 | net/inet/igmp.c | int i; |
i | 374 | net/inet/igmp.c | for(i=0;i<IP_MAX_MEMBERSHIPS;i++) |
i | 376 | net/inet/igmp.c | if(sk->ip_mc_list->multidev[i]) |
i | 378 | net/inet/igmp.c | ip_mc_dec_group(sk->ip_mc_list->multidev[i], sk->ip_mc_list->multiaddr[i]); |
i | 379 | net/inet/igmp.c | sk->ip_mc_list->multidev[i]=NULL; |
i | 352 | net/inet/ip.c | int i, len = sizeof(struct iphdr); |
i | 402 | net/inet/ip.c | for (i = 0; i < opt->loose_route.route_size; i++) { |
i | 403 | net/inet/ip.c | if(i>=MAX_ROUTE) |
i | 405 | net/inet/ip.c | opt->loose_route.route[i] = *(unsigned long *)buff; |
i | 419 | net/inet/ip.c | for (i = 0; i < opt->strict_route.route_size; i++) { |
i | 420 | net/inet/ip.c | if(i>=MAX_ROUTE) |
i | 422 | net/inet/ip.c | opt->strict_route.route[i] = *(unsigned long *)buff; |
i | 436 | net/inet/ip.c | for (i = 0; i < opt->record_route.route_size; i++) { |
i | 437 | net/inet/ip.c | if(i>=MAX_ROUTE) |
i | 439 | net/inet/ip.c | opt->record_route.route[i] = *(unsigned long *)buff; |
i | 460 | net/inet/ip.c | for (i = 0; i < opt->tstamp.len; i++) { |
i | 461 | net/inet/ip.c | opt->tstamp.data[i] = *(unsigned long *)buff; |
i | 936 | net/inet/ip.c | int i, ihl, end; |
i | 1025 | net/inet/ip.c | i = prev->end - offset; |
i | 1026 | net/inet/ip.c | offset += i; /* ptr into datagram */ |
i | 1027 | net/inet/ip.c | ptr += i; /* ptr into fragment data */ |
i | 1041 | net/inet/ip.c | i = end - next->offset; /* overlap is 'i' bytes */ |
i | 1042 | net/inet/ip.c | next->len -= i; /* so reduce size of */ |
i | 1043 | net/inet/ip.c | next->offset += i; /* next fragment */ |
i | 1044 | net/inet/ip.c | next->ptr += i; |
i | 910 | net/inet/ip_fw.c | struct ip_fw *i; |
i | 919 | net/inet/ip_fw.c | i=chain; |
i | 921 | net/inet/ip_fw.c | while(i!=NULL) |
i | 924 | net/inet/ip_fw.c | ntohl(i->src.s_addr),ntohl(i->src_mask.s_addr), |
i | 925 | net/inet/ip_fw.c | ntohl(i->dst.s_addr),ntohl(i->dst_mask.s_addr), |
i | 926 | net/inet/ip_fw.c | i->flags); |
i | 928 | net/inet/ip_fw.c | i->n_src_p,i->n_dst_p, i->p_cnt,i->b_cnt); |
i | 930 | net/inet/ip_fw.c | i->ports[0],i->ports[1],i->ports[2],i->ports[3], |
i | 931 | net/inet/ip_fw.c | i->ports[4],i->ports[5],i->ports[6],i->ports[7], |
i | 932 | net/inet/ip_fw.c | i->ports[8],i->ports[9]); |
i | 941 | net/inet/ip_fw.c | i=i->next; |
i | 61 | net/inet/proc.c | int i; |
i | 76 | net/inet/proc.c | for(i = 0; i < SOCK_ARRAY_SIZE; i++) |
i | 79 | net/inet/proc.c | sp = s_array[i]; |
i | 94 | net/inet/proc.c | i, src, srcp, dest, destp, sp->state, |
i | 97 | net/inet/skbuff.c | int i = 0; |
i | 98 | net/inet/skbuff.c | while (skb2 != skb && i < 5) { |
i | 103 | net/inet/skbuff.c | i++; |
i | 69 | net/inet/utils.c | int i; |
i | 72 | net/inet/utils.c | for (i = 0; i < 4; i++) |
i | 627 | net/socket.c | int i, fd; |
i | 632 | net/socket.c | for (i = 0; i < NPROTO; ++i) |
i | 634 | net/socket.c | if (pops[i] == NULL) continue; |
i | 635 | net/socket.c | if (pops[i]->family == family) |
i | 639 | net/socket.c | if (i == NPROTO) |
i | 644 | net/socket.c | ops = pops[i]; |
i | 671 | net/socket.c | if ((i = sock->ops->create(sock, protocol)) < 0) |
i | 674 | net/socket.c | return(i); |
i | 692 | net/socket.c | int fd1, fd2, i; |
i | 721 | net/socket.c | if ((i = sock1->ops->socketpair(sock1, sock2)) < 0) |
i | 725 | net/socket.c | return(i); |
i | 758 | net/socket.c | int i; |
i | 771 | net/socket.c | if ((i = sock->ops->bind(sock, (struct sockaddr *)address, addrlen)) < 0) |
i | 773 | net/socket.c | return(i); |
i | 818 | net/socket.c | int i; |
i | 842 | net/socket.c | if ((i = sock->ops->dup(newsock, sock)) < 0) |
i | 845 | net/socket.c | return(i); |
i | 848 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
i | 849 | net/socket.c | if ( i < 0) |
i | 852 | net/socket.c | return(i); |
i | 879 | net/socket.c | int i; |
i | 914 | net/socket.c | i = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags); |
i | 915 | net/socket.c | if (i < 0) |
i | 917 | net/socket.c | return(i); |
i | 1314 | net/socket.c | int i; |
i | 1317 | net/socket.c | for(i = 0; i < NPROTO; i++) |
i | 1319 | net/socket.c | if (pops[i] != NULL) |
i | 1321 | net/socket.c | pops[i] = ops; |
i | 1322 | net/socket.c | pops[i]->family = family; |
i | 1324 | net/socket.c | return(i); |
i | 1338 | net/socket.c | int i; |
i | 1341 | net/socket.c | for(i = 0; i < NPROTO; i++) |
i | 1343 | net/socket.c | if (pops[i] == NULL) |
i | 1345 | net/socket.c | if(pops[i]->family == family) |
i | 1347 | net/socket.c | pops[i]=NULL; |
i | 1349 | net/socket.c | return(i); |
i | 1375 | net/socket.c | int i; |
i | 1389 | net/socket.c | for (i = 0; i < NPROTO; ++i) pops[i] = NULL; |
i | 44 | net/unix/proc.c | int i; |
i | 52 | net/unix/proc.c | for(i = 0; i < NSOCKETS; i++) |
i | 56 | net/unix/proc.c | if (unix_datas[i].refcnt>0 && unix_datas[i].socket!=NULL) |
i | 59 | net/unix/proc.c | s_type=unix_datas[i].socket->type; |
i | 60 | net/unix/proc.c | s_flags=unix_datas[i].socket->flags; |
i | 61 | net/unix/proc.c | s_state=unix_datas[i].socket->state; |
i | 63 | net/unix/proc.c | len += sprintf(buffer+len, "%2d: %08X %08X %08lX %04X %02X", i, |
i | 64 | net/unix/proc.c | unix_datas[i].refcnt, |
i | 65 | net/unix/proc.c | unix_datas[i].protocol, |
i | 72 | net/unix/proc.c | if(unix_datas[i].sockaddr_len>0) |
i | 75 | net/unix/proc.c | unix_datas[i].sockaddr_un.sun_path); |
i | 398 | net/unix/sock.c | int i; |
i | 422 | net/unix/sock.c | i = do_mknod(fname, S_IFSOCK | S_IRWXUGO, 0); |
i | 424 | net/unix/sock.c | if (i == 0) |
i | 425 | net/unix/sock.c | i = open_namei(fname, 0, S_IFSOCK, &upd->inode, NULL); |
i | 427 | net/unix/sock.c | if (i < 0) |
i | 430 | net/unix/sock.c | if(i==-EEXIST) |
i | 431 | net/unix/sock.c | i=-EADDRINUSE; |
i | 432 | net/unix/sock.c | return(i); |
i | 454 | net/unix/sock.c | int i; |
i | 485 | net/unix/sock.c | i = open_namei(fname, 0, S_IFSOCK, &inode, NULL); |
i | 487 | net/unix/sock.c | if (i < 0) |
i | 489 | net/unix/sock.c | return(i); |
i | 499 | net/unix/sock.c | if ((i = sock_awaitconn(sock, serv_upd->socket)) < 0) |
i | 501 | net/unix/sock.c | return(i); |
i | 89 | tools/build.c | int i,c,id, sz; |
i | 123 | tools/build.c | for (i=0;i<sizeof buf; i++) buf[i]=0; |
i | 140 | tools/build.c | i=read(id,buf,sizeof buf); |
i | 141 | tools/build.c | fprintf(stderr,"Boot sector %d bytes.\n",i); |
i | 142 | tools/build.c | if (i != 512) |
i | 148 | tools/build.c | i=write(1,buf,512); |
i | 149 | tools/build.c | if (i!=512) |
i | 169 | tools/build.c | for (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c ) |
i | 175 | tools/build.c | setup_sectors = (unsigned char)((i + 511) / 512); |
i | 179 | tools/build.c | fprintf(stderr,"Setup is %d bytes.\n",i); |
i | 182 | tools/build.c | while (i < setup_sectors * 512) { |
i | 183 | tools/build.c | c = setup_sectors * 512 - i; |
i | 188 | 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 | 251 | zBoot/inflate.c | x[h] = i; /* save pattern for backing up */ |
i | 255 | zBoot/inflate.c | j = i >> (w - l); /* (get around Turbo C bug) */ |
i | 280 | zBoot/inflate.c | for (j = i >> w; j < z; j += f) |
i | 284 | zBoot/inflate.c | for (j = 1 << (k - 1); i & j; j >>= 1) |
i | 285 | zBoot/inflate.c | i ^= j; |
i | 286 | zBoot/inflate.c | i ^= j; |
i | 289 | zBoot/inflate.c | while ((i & ((1 << w) - 1)) != x[h]) |
i | 495 | zBoot/inflate.c | int i; /* temporary variable */ |
i | 505 | zBoot/inflate.c | for (i = 0; i < 144; i++) |
i | 506 | zBoot/inflate.c | l[i] = 8; |
i | 507 | zBoot/inflate.c | for (; i < 256; i++) |
i | 508 | zBoot/inflate.c | l[i] = 9; |
i | 509 | zBoot/inflate.c | for (; i < 280; i++) |
i | 510 | zBoot/inflate.c | l[i] = 7; |
i | 511 | zBoot/inflate.c | for (; i < 288; i++) /* make a complete, but wrong code set */ |
i | 512 | zBoot/inflate.c | l[i] = 8; |
i | 514 | zBoot/inflate.c | if ((i = huft_build(l, 288, 257, cplens, cplext, &tl, &bl)) != 0) |
i | 515 | zBoot/inflate.c | return i; |
i | 519 | zBoot/inflate.c | for (i = 0; i < 30; i++) /* make an incomplete code set */ |
i | 520 | zBoot/inflate.c | l[i] = 5; |
i | 522 | zBoot/inflate.c | if ((i = huft_build(l, 30, 0, cpdist, cpdext, &td, &bd)) > 1) |
i | 527 | zBoot/inflate.c | return i; |
i | 547 | zBoot/inflate.c | int i; /* temporary variables */ |
i | 607 | zBoot/inflate.c | if ((i = huft_build(ll, 19, 19, NULL, NULL, &tl, &bl)) != 0) |
i | 609 | zBoot/inflate.c | if (i == 1) |
i | 611 | zBoot/inflate.c | return i; /* incomplete code set */ |
i | 619 | zBoot/inflate.c | i = l = 0; |
i | 620 | zBoot/inflate.c | while ((unsigned)i < n) |
i | 627 | zBoot/inflate.c | ll[i++] = l = j; /* save last length in l */ |
i | 633 | zBoot/inflate.c | if ((unsigned)i + j > n) |
i | 636 | zBoot/inflate.c | ll[i++] = l; |
i | 643 | zBoot/inflate.c | if ((unsigned)i + j > n) |
i | 646 | zBoot/inflate.c | ll[i++] = 0; |
i | 654 | zBoot/inflate.c | if ((unsigned)i + j > n) |
i | 657 | zBoot/inflate.c | ll[i++] = 0; |
i | 677 | zBoot/inflate.c | if ((i = huft_build(ll, nl, 257, cplens, cplext, &tl, &bl)) != 0) |
i | 680 | zBoot/inflate.c | if (i == 1) { |
i | 684 | zBoot/inflate.c | return i; /* incomplete code set */ |
i | 688 | zBoot/inflate.c | if ((i = huft_build(ll + nl, nd, 0, cpdist, cpdext, &td, &bd)) != 0) |
i | 691 | zBoot/inflate.c | if (i == 1) { |
i | 694 | zBoot/inflate.c | i = 0; |
i | 700 | zBoot/inflate.c | return i; /* incomplete code set */ |
i | 121 | zBoot/misc.c | int i; |
i | 124 | zBoot/misc.c | for ( i = ( lines - 1 ) * cols * 2; i < lines * cols * 2; i += 2 ) |
i | 125 | zBoot/misc.c | vidmem[i] = ' '; |
i | 161 | zBoot/misc.c | int i; |
i | 164 | zBoot/misc.c | for (i=0;i<n;i++) ss[i] = c; |
i | 170 | zBoot/misc.c | int i; |
i | 173 | zBoot/misc.c | for (i=0;i<__n;i++) d[i] = s[i]; |
i | 219 | zBoot/misc.c | int len, i; |
i | 228 | zBoot/misc.c | for (i=0;i<len;i++) inbuf[insize+i] = input_data[input_ptr+i]; |
i | 271 | zBoot/misc.c | int i; /* counter for all possible eight bit values */ |
i | 279 | zBoot/misc.c | for (i = 0; i < sizeof(p)/sizeof(int); i++) |
i | 280 | zBoot/misc.c | e |= 1L << (31 - p[i]); |
i | 284 | zBoot/misc.c | for (i = 1; i < 256; i++) |
i | 287 | zBoot/misc.c | for (k = i | 256; k != 1; k >>= 1) |
i | 293 | zBoot/misc.c | crc_32_tab[i] = c; |
i | 40 | zBoot/xtract.c | int i,c,id, sz; |