tag | line | file | source code |
i | 27 | arch/alpha/boot/main.c | int i; |
i | 31 | arch/alpha/boot/main.c | i = vsprintf(buf, fmt, args); |
i | 33 | arch/alpha/boot/main.c | puts(buf,i); |
i | 34 | arch/alpha/boot/main.c | return i; |
i | 78 | arch/alpha/boot/main.c | unsigned long i, rev, sum; |
i | 105 | arch/alpha/boot/main.c | i = switch_to_osf_pal( |
i | 111 | arch/alpha/boot/main.c | if (i) { |
i | 112 | arch/alpha/boot/main.c | printk("failed, code %ld\n", i); |
i | 180 | arch/alpha/boot/main.c | long i; |
i | 198 | arch/alpha/boot/main.c | i = load(dev, START_ADDR, START_SIZE); |
i | 200 | arch/alpha/boot/main.c | if (i != START_SIZE) { |
i | 201 | arch/alpha/boot/main.c | printk("Failed (%lx)\n", i); |
i | 214 | arch/alpha/boot/main.c | for (i = 0 ; i < 0x100000000 ; i++) |
i | 42 | arch/alpha/boot/tools/build.c | int fd, i; |
i | 82 | arch/alpha/boot/tools/build.c | for (i = 0 ; i < 63 ; i++) |
i | 83 | arch/alpha/boot/tools/build.c | tmp += bootblock[i]; |
i | 104 | arch/alpha/boot/tools/build.c | for (i = 0 ; i < fhdr.f_nscns ; i++) { |
i | 105 | arch/alpha/boot/tools/build.c | if (read(fd, i+shdr, sizeof(struct scnhdr)) != sizeof(struct scnhdr)) |
i | 107 | arch/alpha/boot/tools/build.c | if (shdr[i].s_paddr != shdr[i].s_vaddr) |
i | 109 | arch/alpha/boot/tools/build.c | if (shdr[i].s_relptr) |
i | 113 | arch/alpha/boot/tools/build.c | i, shdr[i].s_name, |
i | 114 | arch/alpha/boot/tools/build.c | shdr[i].s_vaddr, |
i | 115 | arch/alpha/boot/tools/build.c | shdr[i].s_vaddr + shdr[i].s_size, |
i | 116 | arch/alpha/boot/tools/build.c | shdr[i].s_scnptr); |
i | 121 | arch/alpha/boot/tools/build.c | for (i = 0 ; i < fhdr.f_nscns ; i++) { |
i | 124 | arch/alpha/boot/tools/build.c | if (!strcmp(shdr[i].s_name, ".comment")) |
i | 126 | arch/alpha/boot/tools/build.c | if (shdr[i].s_vaddr != start) |
i | 128 | arch/alpha/boot/tools/build.c | size = shdr[i].s_size; |
i | 130 | arch/alpha/boot/tools/build.c | offset = shdr[i].s_scnptr; |
i | 146 | arch/alpha/boot/tools/build.c | i, shdr[i].s_name, |
i | 147 | arch/alpha/boot/tools/build.c | shdr[i].s_vaddr, |
i | 148 | arch/alpha/boot/tools/build.c | shdr[i].s_vaddr + shdr[i].s_size, |
i | 149 | arch/alpha/boot/tools/build.c | shdr[i].s_scnptr); |
i | 160 | arch/alpha/boot/tools/build.c | int i = MAXBUF; |
i | 161 | arch/alpha/boot/tools/build.c | if (i > count) |
i | 162 | arch/alpha/boot/tools/build.c | i = count; |
i | 163 | arch/alpha/boot/tools/build.c | i = write(1, buffer, i); |
i | 164 | arch/alpha/boot/tools/build.c | if (i <= 0) { |
i | 168 | arch/alpha/boot/tools/build.c | count -= i; |
i | 443 | arch/alpha/kernel/apecs.c | int i; |
i | 446 | arch/alpha/kernel/apecs.c | for (i = 0; i < mchk_header->elfl_size / sizeof(long); i += 2) { |
i | 447 | arch/alpha/kernel/apecs.c | printk(" +%x %lx %lx\n", i*sizeof(long), ptr[i], ptr[i+1]); |
i | 129 | arch/alpha/kernel/irq.c | int i, len = 0; |
i | 132 | arch/alpha/kernel/irq.c | for (i = 0 ; i < NR_IRQS ; i++, action++) { |
i | 136 | arch/alpha/kernel/irq.c | i, kstat.interrupts[i], |
i | 281 | arch/alpha/kernel/irq.c | int i; |
i | 286 | arch/alpha/kernel/irq.c | for (i = 0; i < 16; i++) |
i | 287 | arch/alpha/kernel/irq.c | if (irq_action[i].handler) |
i | 288 | arch/alpha/kernel/irq.c | printk("[%s:%d] ", irq_action[i].name, i); |
i | 381 | arch/alpha/kernel/irq.c | unsigned int i; |
i | 395 | arch/alpha/kernel/irq.c | i = ffz(~pld); |
i | 397 | arch/alpha/kernel/irq.c | if (i == 4) { |
i | 400 | arch/alpha/kernel/irq.c | device_interrupt(16 + i, 16 + i, regs); |
i | 410 | arch/alpha/kernel/irq.c | unsigned int i; |
i | 423 | arch/alpha/kernel/irq.c | i = ffz(~pld); |
i | 426 | arch/alpha/kernel/irq.c | if (i == 5) { |
i | 429 | arch/alpha/kernel/irq.c | device_interrupt(16 + i, 16 + i, regs); |
i | 496 | arch/alpha/kernel/irq.c | unsigned int i; |
i | 498 | arch/alpha/kernel/irq.c | for (i = NR_IRQS - 1; i > 0; i--) { |
i | 499 | arch/alpha/kernel/irq.c | if (!irq_action[i].handler) { |
i | 500 | arch/alpha/kernel/irq.c | enable_irq(i); |
i | 501 | arch/alpha/kernel/irq.c | irqs |= (1 << i); |
i | 531 | arch/alpha/kernel/irq.c | int i; |
i | 545 | arch/alpha/kernel/irq.c | i = ffz(~irqs); |
i | 546 | arch/alpha/kernel/irq.c | if (irqs != (1UL << i)) |
i | 547 | arch/alpha/kernel/irq.c | i = -i; |
i | 548 | arch/alpha/kernel/irq.c | return i; |
i | 468 | arch/alpha/kernel/osf_sys.c | int i, error; |
i | 478 | arch/alpha/kernel/osf_sys.c | for (i = 0; i < len; ++i) { |
i | 479 | arch/alpha/kernel/osf_sys.c | put_user(system_utsname.domainname[i], name + i); |
i | 480 | arch/alpha/kernel/osf_sys.c | if (system_utsname.domainname[i] == '\0') |
i | 112 | arch/alpha/kernel/ptrace.c | int i; |
i | 114 | arch/alpha/kernel/ptrace.c | for (i = 1; i < NR_TASKS; i++) { |
i | 115 | arch/alpha/kernel/ptrace.c | if (task[i] != NULL && (task[i]->pid == pid)) |
i | 116 | arch/alpha/kernel/ptrace.c | return task[i]; |
i | 417 | arch/alpha/kernel/ptrace.c | int displ, i, res, reg_b, nsaved = 0; |
i | 451 | arch/alpha/kernel/ptrace.c | for (i = 0; i < nsaved; ++i) { |
i | 452 | arch/alpha/kernel/ptrace.c | res = read_int(child, child->debugreg[i], &insn); |
i | 455 | arch/alpha/kernel/ptrace.c | child->debugreg[i + 2] = insn; |
i | 456 | arch/alpha/kernel/ptrace.c | DBG(DBG_BPT, (" -> next_pc=%lx\n", child->debugreg[i])); |
i | 457 | arch/alpha/kernel/ptrace.c | res = write_int(child, child->debugreg[i], BREAKINST); |
i | 471 | arch/alpha/kernel/ptrace.c | int i, nsaved = child->debugreg[4]; |
i | 480 | arch/alpha/kernel/ptrace.c | for (i = 0; i < nsaved; ++i) { |
i | 481 | arch/alpha/kernel/ptrace.c | write_int(child, child->debugreg[i], child->debugreg[i + 2]); |
i | 71 | arch/alpha/kernel/setup.c | int i; |
i | 79 | arch/alpha/kernel/setup.c | for (i = memdesc->numclusters ; i > 0; i--, cluster++) { |
i | 76 | arch/alpha/kernel/signal.c | int i; |
i | 123 | arch/alpha/kernel/signal.c | for (i = 0; i < 31; i++) |
i | 124 | arch/alpha/kernel/signal.c | sw->fp[i] = get_fs_quad(sc->sc_fpregs+i); |
i | 139 | arch/alpha/kernel/signal.c | int i; |
i | 183 | arch/alpha/kernel/signal.c | for (i = 0; i < 31; i++) |
i | 184 | arch/alpha/kernel/signal.c | put_fs_quad(sw->fp[i], sc->sc_fpregs+i); |
i | 90 | arch/alpha/kernel/time.c | int i; |
i | 98 | arch/alpha/kernel/time.c | for (i = 0 ; i < 1000000 ; i++) /* may take up to 1 second... */ |
i | 101 | arch/alpha/kernel/time.c | for (i = 0 ; i < 1000000 ; i++) /* must try at least 2.228 ms */ |
i | 20 | arch/alpha/kernel/traps.c | long i; |
i | 43 | arch/alpha/kernel/traps.c | for (i = -3; i < 6; i++) |
i | 44 | arch/alpha/kernel/traps.c | printk("%c%08x%c",i?' ':'<',pc[i],i?' ':'>'); |
i | 62 | arch/alpha/mm/init.c | int i,free = 0,total = 0,reserved = 0; |
i | 68 | arch/alpha/mm/init.c | i = MAP_NR(high_memory); |
i | 69 | arch/alpha/mm/init.c | while (i-- > 0) { |
i | 71 | arch/alpha/mm/init.c | if (mem_map[i].reserved) |
i | 73 | arch/alpha/mm/init.c | else if (!mem_map[i].count) |
i | 76 | arch/alpha/mm/init.c | shared += mem_map[i].count-1; |
i | 107 | arch/alpha/mm/init.c | int i; |
i | 118 | arch/alpha/mm/init.c | for (i = memdesc->numclusters ; i > 0; i--, cluster++) { |
i | 186 | arch/alpha/mm/init.c | int i; |
i | 188 | arch/alpha/mm/init.c | i = MAP_NR(high_memory); |
i | 193 | arch/alpha/mm/init.c | while (i-- > 0) { |
i | 194 | arch/alpha/mm/init.c | if (mem_map[i].reserved) |
i | 197 | arch/alpha/mm/init.c | if (!mem_map[i].count) |
i | 199 | arch/alpha/mm/init.c | val->sharedram += mem_map[i].count-1; |
i | 118 | arch/i386/boot/compressed/inflate.c | register unsigned i; /* counter, current code */ |
i | 137 | arch/i386/boot/compressed/inflate.c | p = b; i = n; |
i | 140 | arch/i386/boot/compressed/inflate.c | } while (--i); |
i | 158 | arch/i386/boot/compressed/inflate.c | for (i = BMAX; i; i--) |
i | 159 | arch/i386/boot/compressed/inflate.c | if (c[i]) |
i | 161 | arch/i386/boot/compressed/inflate.c | g = i; /* maximum code length */ |
i | 162 | arch/i386/boot/compressed/inflate.c | if ((unsigned)l > i) |
i | 163 | arch/i386/boot/compressed/inflate.c | l = i; |
i | 169 | arch/i386/boot/compressed/inflate.c | for (y = 1 << j; j < i; j++, y <<= 1) |
i | 172 | arch/i386/boot/compressed/inflate.c | if ((y -= c[i]) < 0) |
i | 174 | arch/i386/boot/compressed/inflate.c | c[i] += y; |
i | 181 | arch/i386/boot/compressed/inflate.c | while (--i) { /* note that i == g from above */ |
i | 188 | arch/i386/boot/compressed/inflate.c | p = b; i = 0; |
i | 191 | arch/i386/boot/compressed/inflate.c | v[x[j]++] = i; |
i | 192 | arch/i386/boot/compressed/inflate.c | } while (++i < n); |
i | 197 | arch/i386/boot/compressed/inflate.c | x[0] = i = 0; /* first Huffman code is zero */ |
i | 251 | arch/i386/boot/compressed/inflate.c | x[h] = i; /* save pattern for backing up */ |
i | 255 | arch/i386/boot/compressed/inflate.c | j = i >> (w - l); /* (get around Turbo C bug) */ |
i | 280 | arch/i386/boot/compressed/inflate.c | for (j = i >> w; j < z; j += f) |
i | 284 | arch/i386/boot/compressed/inflate.c | for (j = 1 << (k - 1); i & j; j >>= 1) |
i | 285 | arch/i386/boot/compressed/inflate.c | i ^= j; |
i | 286 | arch/i386/boot/compressed/inflate.c | i ^= j; |
i | 289 | arch/i386/boot/compressed/inflate.c | while ((i & ((1 << w) - 1)) != x[h]) |
i | 495 | arch/i386/boot/compressed/inflate.c | int i; /* temporary variable */ |
i | 505 | arch/i386/boot/compressed/inflate.c | for (i = 0; i < 144; i++) |
i | 506 | arch/i386/boot/compressed/inflate.c | l[i] = 8; |
i | 507 | arch/i386/boot/compressed/inflate.c | for (; i < 256; i++) |
i | 508 | arch/i386/boot/compressed/inflate.c | l[i] = 9; |
i | 509 | arch/i386/boot/compressed/inflate.c | for (; i < 280; i++) |
i | 510 | arch/i386/boot/compressed/inflate.c | l[i] = 7; |
i | 511 | arch/i386/boot/compressed/inflate.c | for (; i < 288; i++) /* make a complete, but wrong code set */ |
i | 512 | arch/i386/boot/compressed/inflate.c | l[i] = 8; |
i | 514 | arch/i386/boot/compressed/inflate.c | if ((i = huft_build(l, 288, 257, cplens, cplext, &tl, &bl)) != 0) |
i | 515 | arch/i386/boot/compressed/inflate.c | return i; |
i | 519 | arch/i386/boot/compressed/inflate.c | for (i = 0; i < 30; i++) /* make an incomplete code set */ |
i | 520 | arch/i386/boot/compressed/inflate.c | l[i] = 5; |
i | 522 | arch/i386/boot/compressed/inflate.c | if ((i = huft_build(l, 30, 0, cpdist, cpdext, &td, &bd)) > 1) |
i | 527 | arch/i386/boot/compressed/inflate.c | return i; |
i | 547 | arch/i386/boot/compressed/inflate.c | int i; /* temporary variables */ |
i | 607 | arch/i386/boot/compressed/inflate.c | if ((i = huft_build(ll, 19, 19, NULL, NULL, &tl, &bl)) != 0) |
i | 609 | arch/i386/boot/compressed/inflate.c | if (i == 1) |
i | 611 | arch/i386/boot/compressed/inflate.c | return i; /* incomplete code set */ |
i | 619 | arch/i386/boot/compressed/inflate.c | i = l = 0; |
i | 620 | arch/i386/boot/compressed/inflate.c | while ((unsigned)i < n) |
i | 627 | arch/i386/boot/compressed/inflate.c | ll[i++] = l = j; /* save last length in l */ |
i | 633 | arch/i386/boot/compressed/inflate.c | if ((unsigned)i + j > n) |
i | 636 | arch/i386/boot/compressed/inflate.c | ll[i++] = l; |
i | 643 | arch/i386/boot/compressed/inflate.c | if ((unsigned)i + j > n) |
i | 646 | arch/i386/boot/compressed/inflate.c | ll[i++] = 0; |
i | 654 | arch/i386/boot/compressed/inflate.c | if ((unsigned)i + j > n) |
i | 657 | arch/i386/boot/compressed/inflate.c | ll[i++] = 0; |
i | 677 | arch/i386/boot/compressed/inflate.c | if ((i = huft_build(ll, nl, 257, cplens, cplext, &tl, &bl)) != 0) |
i | 680 | arch/i386/boot/compressed/inflate.c | if (i == 1) { |
i | 684 | arch/i386/boot/compressed/inflate.c | return i; /* incomplete code set */ |
i | 688 | arch/i386/boot/compressed/inflate.c | if ((i = huft_build(ll + nl, nd, 0, cpdist, cpdext, &td, &bd)) != 0) |
i | 691 | arch/i386/boot/compressed/inflate.c | if (i == 1) { |
i | 694 | arch/i386/boot/compressed/inflate.c | i = 0; |
i | 700 | arch/i386/boot/compressed/inflate.c | return i; /* incomplete code set */ |
i | 122 | arch/i386/boot/compressed/misc.c | int i; |
i | 125 | arch/i386/boot/compressed/misc.c | for ( i = ( lines - 1 ) * cols * 2; i < lines * cols * 2; i += 2 ) |
i | 126 | arch/i386/boot/compressed/misc.c | vidmem[i] = ' '; |
i | 162 | arch/i386/boot/compressed/misc.c | int i; |
i | 165 | arch/i386/boot/compressed/misc.c | for (i=0;i<n;i++) ss[i] = c; |
i | 171 | arch/i386/boot/compressed/misc.c | int i; |
i | 174 | arch/i386/boot/compressed/misc.c | for (i=0;i<__n;i++) d[i] = s[i]; |
i | 220 | arch/i386/boot/compressed/misc.c | int len, i; |
i | 229 | arch/i386/boot/compressed/misc.c | for (i=0;i<len;i++) inbuf[insize+i] = input_data[input_ptr+i]; |
i | 272 | arch/i386/boot/compressed/misc.c | int i; /* counter for all possible eight bit values */ |
i | 280 | arch/i386/boot/compressed/misc.c | for (i = 0; i < sizeof(p)/sizeof(int); i++) |
i | 281 | arch/i386/boot/compressed/misc.c | e |= 1L << (31 - p[i]); |
i | 285 | arch/i386/boot/compressed/misc.c | for (i = 1; i < 256; i++) |
i | 288 | arch/i386/boot/compressed/misc.c | for (k = i | 256; k != 1; k >>= 1) |
i | 294 | arch/i386/boot/compressed/misc.c | crc_32_tab[i] = c; |
i | 39 | arch/i386/boot/compressed/xtract.c | int i,c,id, sz; |
i | 92 | arch/i386/boot/tools/build.c | int i,c,id, sz; |
i | 128 | arch/i386/boot/tools/build.c | for (i=0;i<sizeof buf; i++) buf[i]=0; |
i | 145 | arch/i386/boot/tools/build.c | i=read(id,buf,sizeof buf); |
i | 146 | arch/i386/boot/tools/build.c | fprintf(stderr,"Boot sector %d bytes.\n",i); |
i | 147 | arch/i386/boot/tools/build.c | if (i != 512) |
i | 153 | arch/i386/boot/tools/build.c | i=write(1,buf,512); |
i | 154 | arch/i386/boot/tools/build.c | if (i!=512) |
i | 174 | arch/i386/boot/tools/build.c | for (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c ) |
i | 180 | arch/i386/boot/tools/build.c | setup_sectors = (unsigned char)((i + 511) / 512); |
i | 184 | arch/i386/boot/tools/build.c | fprintf(stderr,"Setup is %d bytes.\n",i); |
i | 187 | arch/i386/boot/tools/build.c | while (i < setup_sectors * 512) { |
i | 188 | arch/i386/boot/tools/build.c | c = setup_sectors * 512 - i; |
i | 193 | arch/i386/boot/tools/build.c | i += c; |
i | 405 | arch/i386/kernel/bios32.c | int i, length; |
i | 421 | arch/i386/kernel/bios32.c | for (i = 0; i < length ; ++i) |
i | 422 | arch/i386/kernel/bios32.c | sum += check->chars[i]; |
i | 178 | arch/i386/kernel/irq.c | int i, len = 0; |
i | 181 | arch/i386/kernel/irq.c | for (i = 0 ; i < 16 ; i++, action++) { |
i | 185 | arch/i386/kernel/irq.c | i, kstat.interrupts[i], |
i | 345 | arch/i386/kernel/irq.c | unsigned int i, irqs = 0, irqmask; |
i | 349 | arch/i386/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 350 | arch/i386/kernel/irq.c | if (!request_irq(i, no_action, SA_PROBE, "probe")) { |
i | 351 | arch/i386/kernel/irq.c | enable_irq(i); |
i | 352 | arch/i386/kernel/irq.c | irqs |= (1 << i); |
i | 361 | arch/i386/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 362 | arch/i386/kernel/irq.c | if (irqs & (1 << i) & irqmask) { |
i | 363 | arch/i386/kernel/irq.c | irqs ^= (1 << i); |
i | 364 | arch/i386/kernel/irq.c | free_irq(i); |
i | 375 | arch/i386/kernel/irq.c | unsigned int i, irqmask; |
i | 378 | arch/i386/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 379 | arch/i386/kernel/irq.c | if (irqs & (1 << i)) { |
i | 380 | arch/i386/kernel/irq.c | free_irq(i); |
i | 389 | arch/i386/kernel/irq.c | i = ffz(~irqs); |
i | 390 | arch/i386/kernel/irq.c | if (irqs != (irqs & (1 << i))) |
i | 391 | arch/i386/kernel/irq.c | i = -i; |
i | 392 | arch/i386/kernel/irq.c | return i; |
i | 397 | arch/i386/kernel/irq.c | int i; |
i | 407 | arch/i386/kernel/irq.c | for (i = 0; i < 16 ; i++) |
i | 408 | arch/i386/kernel/irq.c | set_intr_gate(0x20+i,bad_interrupt[i]); |
i | 412 | arch/i386/kernel/irq.c | set_intr_gate(0x20+i, interrupt[i]); /* IRQ '16' - IPI for rescheduling */ |
i | 42 | arch/i386/kernel/ldt.c | int error, i; |
i | 65 | arch/i386/kernel/ldt.c | for (i=1 ; i<NR_TASKS ; i++) { |
i | 66 | arch/i386/kernel/ldt.c | if (task[i] == current) { |
i | 70 | arch/i386/kernel/ldt.c | set_ldt_desc(gdt+(i<<1)+FIRST_LDT_ENTRY, current->ldt, LDT_ENTRIES); |
i | 71 | arch/i386/kernel/ldt.c | load_ldt(i); |
i | 99 | arch/i386/kernel/process.c | int i; |
i | 101 | arch/i386/kernel/process.c | for (i=0; i<0x10000; i++) |
i | 108 | arch/i386/kernel/process.c | int i, j; |
i | 115 | arch/i386/kernel/process.c | for (i=0; i<100; i++) { |
i | 163 | arch/i386/kernel/process.c | int i; |
i | 168 | arch/i386/kernel/process.c | for (i=1 ; i<NR_TASKS ; i++) { |
i | 169 | arch/i386/kernel/process.c | if (task[i] == current) { |
i | 170 | arch/i386/kernel/process.c | set_ldt_desc(gdt+(i<<1)+ |
i | 172 | arch/i386/kernel/process.c | load_ldt(i); |
i | 177 | arch/i386/kernel/process.c | for (i=0 ; i<8 ; i++) |
i | 178 | arch/i386/kernel/process.c | current->debugreg[i] = 0; |
i | 184 | arch/i386/kernel/process.c | int i; |
i | 216 | arch/i386/kernel/process.c | for (i = 0; i < IO_BITMAP_SIZE+1 ; i++) /* IO bitmap is actually SIZE+1 */ |
i | 217 | arch/i386/kernel/process.c | p->tss.io_bitmap[i] = ~0; |
i | 252 | arch/i386/kernel/process.c | int i; |
i | 262 | arch/i386/kernel/process.c | for (i = 0; i < 8; i++) |
i | 263 | arch/i386/kernel/process.c | dump->u_debugreg[i] = current->debugreg[i]; |
i | 39 | arch/i386/kernel/ptrace.c | int i; |
i | 41 | arch/i386/kernel/ptrace.c | for (i = 1; i < NR_TASKS; i++) { |
i | 42 | arch/i386/kernel/ptrace.c | if (task[i] != NULL && (task[i]->pid == pid)) |
i | 43 | arch/i386/kernel/ptrace.c | return task[i]; |
i | 302 | arch/i386/kernel/ptrace.c | int i; |
i | 445 | arch/i386/kernel/ptrace.c | for(i=0; i<4; i++) |
i | 446 | arch/i386/kernel/ptrace.c | if ((0x5f54 >> ((data >> (16 + 4*i)) & 0xf)) & 1) |
i | 202 | arch/i386/kernel/setup.c | int i; |
i | 204 | arch/i386/kernel/setup.c | for(i=0;i<32;i++) |
i | 205 | arch/i386/kernel/setup.c | if(cpu_present_map&(1<<i)) |
i | 206 | arch/i386/kernel/setup.c | bp+=sprintf(bp,"%c86 ",cpu_data[i].x86+'0'); |
i | 208 | arch/i386/kernel/setup.c | for(i=0;i<32;i++) |
i | 209 | arch/i386/kernel/setup.c | if(cpu_present_map&(1<<i)) |
i | 210 | arch/i386/kernel/setup.c | bp+=sprintf(bp,"%-16s",cpu_data[i].x86_model? |
i | 211 | arch/i386/kernel/setup.c | model[cpu_data[i].x86-4][cpu_data[i].x86_model-1]:"Unknown"); |
i | 213 | arch/i386/kernel/setup.c | for(i=0;i<32;i++) |
i | 214 | arch/i386/kernel/setup.c | if(cpu_present_map&(1<<i)) |
i | 216 | arch/i386/kernel/setup.c | mask[0] = cpu_data[i].x86_mask+'@'; |
i | 218 | arch/i386/kernel/setup.c | bp+=sprintf(bp,"%-16s", cpu_data[i].x86_mask ? mask : "Unknown"); |
i | 221 | arch/i386/kernel/setup.c | for(i=0;i<32;i++) |
i | 222 | arch/i386/kernel/setup.c | if(cpu_present_map&(1<<i)) |
i | 223 | arch/i386/kernel/setup.c | bp+=sprintf(bp,"%-16s", cpu_data[i].x86_vendor_id); |
i | 225 | arch/i386/kernel/setup.c | for(i=0;i<32;i++) |
i | 226 | arch/i386/kernel/setup.c | if(cpu_present_map&(1<<i)) |
i | 227 | arch/i386/kernel/setup.c | bp+=sprintf(bp,"%-16s", cpu_data[i].fdiv_bug?"yes":"no"); |
i | 229 | arch/i386/kernel/setup.c | for(i=0;i<32;i++) |
i | 230 | arch/i386/kernel/setup.c | if(cpu_present_map&(1<<i)) |
i | 231 | arch/i386/kernel/setup.c | bp+=sprintf(bp,"%-16s", cpu_data[i].hard_math?"yes":"no"); |
i | 233 | arch/i386/kernel/setup.c | for(i=0;i<32;i++) |
i | 234 | arch/i386/kernel/setup.c | if(cpu_present_map&(1<<i)) |
i | 235 | arch/i386/kernel/setup.c | bp+=sprintf(bp,"%-16s", cpu_data[i].hlt_works_ok?"yes":"no"); |
i | 237 | arch/i386/kernel/setup.c | for(i=0;i<32;i++) |
i | 238 | arch/i386/kernel/setup.c | if(cpu_present_map&(1<<i)) |
i | 239 | arch/i386/kernel/setup.c | bp+=sprintf(bp,"%-16s", cpu_data[i].wp_works_ok?"yes":"no"); |
i | 241 | arch/i386/kernel/setup.c | for(i=0;i<32;i++) |
i | 242 | arch/i386/kernel/setup.c | if(cpu_present_map&(1<<i)) |
i | 243 | arch/i386/kernel/setup.c | bp+=sprintf(bp,"%-16s", cpu_data[i].x86_capability&1?"yes":"no"); |
i | 245 | arch/i386/kernel/setup.c | for(i=0;i<32;i++) |
i | 246 | arch/i386/kernel/setup.c | if(cpu_present_map&(1<<i)) |
i | 247 | arch/i386/kernel/setup.c | bp+=sprintf(bp,"%-16s", cpu_data[i].x86_capability&2?"yes":"no"); |
i | 249 | arch/i386/kernel/setup.c | for(i=0;i<32;i++) |
i | 250 | arch/i386/kernel/setup.c | if(cpu_present_map&(1<<i)) |
i | 251 | arch/i386/kernel/setup.c | bp+=sprintf(bp,"%-16s", (cpu_data[i].x86_capability&4)?"yes":"no"); |
i | 253 | arch/i386/kernel/setup.c | for(i=0;i<32;i++) |
i | 254 | arch/i386/kernel/setup.c | if(cpu_present_map&(1<<i)) |
i | 255 | arch/i386/kernel/setup.c | bp+=sprintf(bp,"%-16s", (cpu_data[i].x86_capability)&8?"yes":"no"); |
i | 257 | arch/i386/kernel/setup.c | for(i=0;i<32;i++) |
i | 258 | arch/i386/kernel/setup.c | if(cpu_present_map&(1<<i)) |
i | 259 | arch/i386/kernel/setup.c | bp+=sprintf(bp,"%-16s", (cpu_data[i].x86_capability&16)?"yes":"no"); |
i | 261 | arch/i386/kernel/setup.c | for(i=0;i<32;i++) |
i | 262 | arch/i386/kernel/setup.c | if(cpu_present_map&(1<<i)) |
i | 263 | arch/i386/kernel/setup.c | bp+=sprintf(bp,"%-16s", (cpu_data[i].x86_capability&32)?"yes":"no"); |
i | 265 | arch/i386/kernel/setup.c | for(i=0;i<32;i++) |
i | 266 | arch/i386/kernel/setup.c | if(cpu_present_map&(1<<i)) |
i | 267 | arch/i386/kernel/setup.c | bp+=sprintf(bp,"%-16s", (cpu_data[i].x86_capability&128)?"yes":"no"); |
i | 269 | arch/i386/kernel/setup.c | for(i=0;i<32;i++) |
i | 270 | arch/i386/kernel/setup.c | if(cpu_present_map&(1<<i)) |
i | 271 | arch/i386/kernel/setup.c | bp+=sprintf(bp,"%-16s", (cpu_data[i].x86_capability&256)?"yes":"no"); |
i | 273 | arch/i386/kernel/setup.c | for(i=0;i<32;i++) |
i | 276 | arch/i386/kernel/setup.c | if(cpu_present_map&(1<<i)) |
i | 278 | arch/i386/kernel/setup.c | sprintf(tmp,"%lu.%02lu",cpu_data[i].udelay_val/500000L, |
i | 279 | arch/i386/kernel/setup.c | (cpu_data[i].udelay_val/5000L)%100); |
i | 458 | arch/i386/kernel/smp.c | int i=0; |
i | 484 | arch/i386/kernel/smp.c | for(i=0;i<NR_CPUS;i++) |
i | 486 | arch/i386/kernel/smp.c | if((cpu_present_map&(1<<i)) && i!=boot_cpu_id) /* Rebooting yourself is a bad move */ |
i | 498 | arch/i386/kernel/smp.c | kernel_stacks[i]=stack; |
i | 501 | arch/i386/kernel/smp.c | printk("Booting processor %d stack %p: ",i,stack); /* So we set whats up */ |
i | 519 | arch/i386/kernel/smp.c | apic_write(APIC_ICR2, cfg|SET_APIC_DEST_FIELD(i)); /* Target chip */ |
i | 532 | arch/i386/kernel/smp.c | if(cpu_callin_map[0]&(1<<i)) |
i | 536 | arch/i386/kernel/smp.c | if(cpu_callin_map[0]&(1<<i)) |
i | 548 | arch/i386/kernel/smp.c | cpu_present_map&=~(1<<i); |
i | 879 | arch/i386/kernel/smp.c | int i=smp_processor_id(); |
i | 892 | arch/i386/kernel/smp.c | if(clear_bit(i,&smp_invalidate_needed)) |
i | 894 | arch/i386/kernel/smp.c | set_bit(i, &cpu_callin_map[0]); |
i | 320 | arch/i386/kernel/time.c | int i; |
i | 328 | arch/i386/kernel/time.c | for (i = 0 ; i < 1000000 ; i++) /* may take up to 1 second... */ |
i | 331 | arch/i386/kernel/time.c | for (i = 0 ; i < 1000000 ; i++) /* must try at least 2.228 ms */ |
i | 99 | arch/i386/kernel/traps.c | int i; |
i | 123 | arch/i386/kernel/traps.c | store_TR(i); |
i | 127 | arch/i386/kernel/traps.c | current->comm, current->pid, 0xffff & i, current->kernel_stack_page); |
i | 129 | arch/i386/kernel/traps.c | for(i=0; i < kstack_depth_to_print; i++) { |
i | 132 | arch/i386/kernel/traps.c | if (i && ((i % 8) == 0)) |
i | 138 | arch/i386/kernel/traps.c | i = 1; |
i | 154 | arch/i386/kernel/traps.c | if (i && ((i % 8) == 0)) |
i | 157 | arch/i386/kernel/traps.c | i++; |
i | 161 | arch/i386/kernel/traps.c | for(i=0;i<20;i++) |
i | 162 | arch/i386/kernel/traps.c | printk("%02x ",0xff & get_seg_byte(regs->cs,(i+(char *)regs->eip))); |
i | 350 | arch/i386/kernel/traps.c | int i; |
i | 382 | arch/i386/kernel/traps.c | for (i=18;i<48;i++) |
i | 383 | arch/i386/kernel/traps.c | set_trap_gate(i,&reserved); |
i | 391 | arch/i386/kernel/traps.c | for(i=1 ; i<NR_TASKS ; i++) { |
i | 75 | arch/i386/kernel/vm86.c | int i; |
i | 94 | arch/i386/kernel/vm86.c | for (i = 0; i < 32; i++) { |
i | 301 | arch/i386/kernel/vm86.c | static void do_int(struct vm86_regs *regs, int i, unsigned char * ssp, unsigned long sp) |
i | 307 | arch/i386/kernel/vm86.c | if (is_revectored(i, ¤t->tss.vm86_info->int_revectored)) |
i | 309 | arch/i386/kernel/vm86.c | if (i==0x21 && is_revectored(AH(regs),¤t->tss.vm86_info->int21_revectored)) |
i | 311 | arch/i386/kernel/vm86.c | intr_ptr = (unsigned short *) (i << 2); |
i | 328 | arch/i386/kernel/vm86.c | return_to_32bit(regs, VM86_INTx + (i << 8)); |
i | 87 | arch/i386/math-emu/errors.c | int i; |
i | 99 | arch/i386/math-emu/errors.c | for ( i = 0; i < MAX_PRINTED_BYTES; i++ ) |
i | 110 | arch/i386/math-emu/errors.c | if ( i == MAX_PRINTED_BYTES ) |
i | 166 | arch/i386/math-emu/errors.c | for ( i = 0; i < 8; i++ ) |
i | 168 | arch/i386/math-emu/errors.c | FPU_REG *r = &st(i); |
i | 177 | arch/i386/math-emu/errors.c | i, r->sign ? '-' : '+'); |
i | 184 | arch/i386/math-emu/errors.c | printk("st(%d) %c .%04lx %04lx %04lx %04lx e%+-6ld ", i, |
i | 305 | arch/i386/math-emu/errors.c | int i, int_type; |
i | 342 | arch/i386/math-emu/errors.c | for (i=0; exception_names[i].type; i++) |
i | 343 | arch/i386/math-emu/errors.c | if ( (exception_names[i].type & n) == exception_names[i].type ) |
i | 346 | arch/i386/math-emu/errors.c | if (exception_names[i].type) |
i | 349 | arch/i386/math-emu/errors.c | printk("FP Exception: %s!\n", exception_names[i].name); |
i | 640 | arch/i386/math-emu/errors.c | void stack_underflow_i(int i) |
i | 646 | arch/i386/math-emu/errors.c | reg_move(&CONST_QNaN, &(st(i))); |
i | 656 | arch/i386/math-emu/errors.c | void stack_underflow_pop(int i) |
i | 662 | arch/i386/math-emu/errors.c | reg_move(&CONST_QNaN, &(st(i))); |
i | 123 | arch/i386/math-emu/fpu_emu.h | #define NOT_EMPTY(i) (st(i).tag != TW_Empty) |
i | 157 | arch/i386/math-emu/fpu_entry.c | int i; |
i | 158 | arch/i386/math-emu/fpu_entry.c | for ( i = 0; i < 8; i++ ) |
i | 162 | arch/i386/math-emu/fpu_entry.c | regs[i].exp = 0; |
i | 163 | arch/i386/math-emu/fpu_entry.c | regs[i].sigh = 0x80000000; |
i | 7 | arch/i386/math-emu/fpu_proto.h | extern void stack_underflow_i(int i); |
i | 8 | arch/i386/math-emu/fpu_proto.h | extern void stack_underflow_pop(int i); |
i | 1017 | arch/i386/math-emu/reg_ld_str.c | int i, precision_loss; |
i | 1044 | arch/i386/math-emu/reg_ld_str.c | for ( i = 0; i < 7; i++) |
i | 1045 | arch/i386/math-emu/reg_ld_str.c | put_fs_byte(0, (unsigned char *) d+i); /* These bytes "undefined" */ |
i | 1064 | arch/i386/math-emu/reg_ld_str.c | for ( i = 0; i < 9; i++) |
i | 1069 | arch/i386/math-emu/reg_ld_str.c | put_fs_byte(b,(unsigned char *) d+i); |
i | 1153 | arch/i386/math-emu/reg_ld_str.c | int i; |
i | 1204 | arch/i386/math-emu/reg_ld_str.c | for ( i = 0; i < 8; i++ ) |
i | 1211 | arch/i386/math-emu/reg_ld_str.c | regs[i].tag = TW_Empty; |
i | 1212 | arch/i386/math-emu/reg_ld_str.c | else if ( regs[i].tag == TW_Empty ) |
i | 1216 | arch/i386/math-emu/reg_ld_str.c | if ( regs[i].exp == EXP_BIAS - EXTENDED_Ebias ) |
i | 1218 | arch/i386/math-emu/reg_ld_str.c | if ( !(regs[i].sigl | regs[i].sigh) ) |
i | 1219 | arch/i386/math-emu/reg_ld_str.c | regs[i].tag = TW_Zero; |
i | 1221 | arch/i386/math-emu/reg_ld_str.c | regs[i].tag = TW_Valid; |
i | 1223 | arch/i386/math-emu/reg_ld_str.c | else if ( regs[i].exp == 0x7fff + EXP_BIAS - EXTENDED_Ebias ) |
i | 1225 | arch/i386/math-emu/reg_ld_str.c | if ( !((regs[i].sigh & ~0x80000000) | regs[i].sigl) ) |
i | 1226 | arch/i386/math-emu/reg_ld_str.c | regs[i].tag = TW_Infinity; |
i | 1228 | arch/i386/math-emu/reg_ld_str.c | regs[i].tag = TW_NaN; |
i | 1231 | arch/i386/math-emu/reg_ld_str.c | regs[i].tag = TW_Valid; |
i | 1243 | arch/i386/math-emu/reg_ld_str.c | int i, stnr; |
i | 1247 | arch/i386/math-emu/reg_ld_str.c | for ( i = 0; i < 8; i++ ) |
i | 1250 | arch/i386/math-emu/reg_ld_str.c | stnr = (i+top) & 7; |
i | 1252 | arch/i386/math-emu/reg_ld_str.c | reg_load_extended((long double *)(s+i*10), ®s[stnr]); |
i | 1264 | arch/i386/math-emu/reg_ld_str.c | int i; |
i | 1266 | arch/i386/math-emu/reg_ld_str.c | for ( i = 7; i >= 0; i-- ) |
i | 1268 | arch/i386/math-emu/reg_ld_str.c | switch ( tag = regs[i].tag ) |
i | 1271 | arch/i386/math-emu/reg_ld_str.c | if ( regs[i].exp <= (EXP_BIAS - EXTENDED_Ebias) ) |
i | 1361 | arch/i386/math-emu/reg_ld_str.c | int i; |
i | 1367 | arch/i386/math-emu/reg_ld_str.c | for ( i = 0; i < 8; i++ ) |
i | 1368 | arch/i386/math-emu/reg_ld_str.c | write_to_extended(®s[(top + i) & 7], d + 10 * i); |
i | 68 | arch/i386/mm/init.c | int i,free = 0,total = 0,reserved = 0; |
i | 74 | arch/i386/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 75 | arch/i386/mm/init.c | while (i-- > 0) { |
i | 77 | arch/i386/mm/init.c | if (mem_map[i].reserved) |
i | 79 | arch/i386/mm/init.c | else if (!mem_map[i].count) |
i | 82 | arch/i386/mm/init.c | shared += mem_map[i].count-1; |
i | 272 | arch/i386/mm/init.c | int i; |
i | 274 | arch/i386/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 279 | arch/i386/mm/init.c | while (i-- > 0) { |
i | 280 | arch/i386/mm/init.c | if (mem_map[i].reserved) |
i | 283 | arch/i386/mm/init.c | if (!mem_map[i].count) |
i | 285 | arch/i386/mm/init.c | val->sharedram += mem_map[i].count-1; |
i | 114 | arch/mips/kernel/irq.c | int i, len = 0; |
i | 117 | arch/mips/kernel/irq.c | for (i = 0 ; i < 16 ; i++, action++) { |
i | 121 | arch/mips/kernel/irq.c | i, kstat.interrupts[i], |
i | 233 | arch/mips/kernel/irq.c | unsigned int i, irqs = 0, irqmask; |
i | 237 | arch/mips/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 238 | arch/mips/kernel/irq.c | if (!request_irq(i, no_action, SA_PROBE, "probe")) { |
i | 239 | arch/mips/kernel/irq.c | enable_irq(i); |
i | 240 | arch/mips/kernel/irq.c | irqs |= (1 << i); |
i | 249 | arch/mips/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 250 | arch/mips/kernel/irq.c | if (irqs & (1 << i) & irqmask) { |
i | 251 | arch/mips/kernel/irq.c | irqs ^= (1 << i); |
i | 252 | arch/mips/kernel/irq.c | free_irq(i); |
i | 263 | arch/mips/kernel/irq.c | unsigned int i, irqmask; |
i | 266 | arch/mips/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 267 | arch/mips/kernel/irq.c | if (irqs & (1 << i)) { |
i | 268 | arch/mips/kernel/irq.c | free_irq(i); |
i | 277 | arch/mips/kernel/irq.c | i = ffz(~irqs); |
i | 278 | arch/mips/kernel/irq.c | if (irqs != (irqs & (1 << i))) |
i | 279 | arch/mips/kernel/irq.c | i = -i; |
i | 280 | arch/mips/kernel/irq.c | return i; |
i | 285 | arch/mips/kernel/irq.c | int i; |
i | 291 | arch/mips/kernel/irq.c | for (i = 0; i < 16 ; i++) |
i | 292 | arch/mips/kernel/irq.c | set_intr_gate(i, bad_interrupt); |
i | 297 | arch/mips/kernel/irq.c | for (i = 0; i < 32; i++) { |
i | 298 | arch/mips/kernel/irq.c | bh_base[i].routine = NULL; |
i | 299 | arch/mips/kernel/irq.c | bh_base[i].data = NULL; |
i | 38 | arch/mips/kernel/process.c | int i; |
i | 46 | arch/mips/kernel/process.c | for (i = 0 ; i < 512 ; i++) |
i | 47 | arch/mips/kernel/process.c | pgd_clear(swapper_pg_dir + i); |
i | 123 | arch/mips/kernel/process.c | int i; |
i | 133 | arch/mips/kernel/process.c | for (i = 0; i < 8; i++) |
i | 134 | arch/mips/kernel/process.c | dump->u_debugreg[i] = current->debugreg[i]; |
i | 38 | arch/mips/kernel/ptrace.c | int i; |
i | 40 | arch/mips/kernel/ptrace.c | for (i = 1; i < NR_TASKS; i++) { |
i | 41 | arch/mips/kernel/ptrace.c | if (task[i] != NULL && (task[i]->pid == pid)) |
i | 42 | arch/mips/kernel/ptrace.c | return task[i]; |
i | 284 | arch/mips/kernel/ptrace.c | int i; |
i | 428 | arch/mips/kernel/ptrace.c | for(i=0; i<4; i++) |
i | 429 | arch/mips/kernel/ptrace.c | if ((0x5f54 >> ((data >> (16 + 4*i)) & 0xf)) & 1) |
i | 80 | arch/mips/kernel/traps.c | int i; |
i | 131 | arch/mips/kernel/traps.c | current->comm, current->pid, 0xffff & i, |
i | 133 | arch/mips/kernel/traps.c | for(i=0;i<5;i++) |
i | 136 | arch/mips/kernel/traps.c | for(i=0; i < kstack_depth_to_print; i++) { |
i | 139 | arch/mips/kernel/traps.c | if (i && ((i % 8) == 0)) |
i | 145 | arch/mips/kernel/traps.c | i = 1; |
i | 161 | arch/mips/kernel/traps.c | if (i && ((i % 8) == 0)) |
i | 164 | arch/mips/kernel/traps.c | i++; |
i | 169 | arch/mips/kernel/traps.c | for(i=0;i<5;i++) |
i | 296 | arch/mips/kernel/traps.c | int i; |
i | 306 | arch/mips/kernel/traps.c | for (i=0;i<=31;i++) |
i | 307 | arch/mips/kernel/traps.c | set_except_vector(i, handle_reserved); |
i | 108 | arch/mips/mm/init.c | int i,free = 0,total = 0,reserved = 0; |
i | 114 | arch/mips/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 115 | arch/mips/mm/init.c | while (i-- > 0) { |
i | 117 | arch/mips/mm/init.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 119 | arch/mips/mm/init.c | else if (!mem_map[i]) |
i | 122 | arch/mips/mm/init.c | shared += mem_map[i]-1; |
i | 238 | arch/mips/mm/init.c | int i; |
i | 240 | arch/mips/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 245 | arch/mips/mm/init.c | while (i-- > 0) { |
i | 246 | arch/mips/mm/init.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 249 | arch/mips/mm/init.c | if (!mem_map[i]) |
i | 251 | arch/mips/mm/init.c | val->sharedram += mem_map[i]-1; |
i | 50 | arch/sparc/kernel/idprom.c | int i; |
i | 52 | arch/sparc/kernel/idprom.c | for(i = 0; i<NUM_SUN_MACHINES; i++) { |
i | 53 | arch/sparc/kernel/idprom.c | if(Sun_Machines[i].id_machtype == machtyp) { |
i | 55 | arch/sparc/kernel/idprom.c | printk("TYPE: %s\n", Sun_Machines[i].name); |
i | 65 | arch/sparc/kernel/idprom.c | if(i == NUM_SUN_MACHINES) |
i | 168 | arch/sparc/kernel/irq.c | int i, len = 0; |
i | 171 | arch/sparc/kernel/irq.c | for (i = 0 ; i < 16 ; i++, action++) { |
i | 175 | arch/sparc/kernel/irq.c | i, kstat.interrupts[i], |
i | 209 | arch/sparc/kernel/irq.c | int i; |
i | 215 | arch/sparc/kernel/irq.c | for (i = 0; i < 16; i++) |
i | 216 | arch/sparc/kernel/irq.c | if (irq_action[i].handler) |
i | 217 | arch/sparc/kernel/irq.c | printk("[%s:%d:0x%x] ", irq_action[i].name, (int) i, |
i | 218 | arch/sparc/kernel/irq.c | (unsigned int) irq_action[i].handler); |
i | 342 | arch/sparc/kernel/irq.c | int ie_node, i; |
i | 379 | arch/sparc/kernel/irq.c | for(i=0; i<NCPUS; i++) |
i | 380 | arch/sparc/kernel/irq.c | printk("cpu%d: tbt %08x\n", i, |
i | 381 | arch/sparc/kernel/irq.c | sun4m_interrupts->cpu_intregs[i].tbt); |
i | 162 | arch/sparc/kernel/probe.c | int i, cpuid; |
i | 171 | arch/sparc/kernel/probe.c | for(i = 0; i<NSPARCCHIPS; i++) |
i | 173 | arch/sparc/kernel/probe.c | if(linux_sparc_chips[i].psr_impl == psr_impl) |
i | 174 | arch/sparc/kernel/probe.c | if(linux_sparc_chips[i].psr_vers == psr_vers) |
i | 176 | arch/sparc/kernel/probe.c | sparc_cpu_type[cpuid] = linux_sparc_chips[i].cpu_name; |
i | 181 | arch/sparc/kernel/probe.c | if(i==NSPARCCHIPS) |
i | 195 | arch/sparc/kernel/probe.c | for(i = 0; i<NSPARCFPU; i++) |
i | 197 | arch/sparc/kernel/probe.c | if(linux_sparc_fpu[i].psr_impl == psr_impl) |
i | 198 | arch/sparc/kernel/probe.c | if(linux_sparc_fpu[i].fp_vers == fpu_vers) |
i | 200 | arch/sparc/kernel/probe.c | sparc_fpu_type[cpuid] = linux_sparc_fpu[i].fp_name; |
i | 205 | arch/sparc/kernel/probe.c | if(i == NSPARCFPU) |
i | 476 | arch/sparc/kernel/probe.c | int nd, i, prom_node_cpu, thismid; |
i | 508 | arch/sparc/kernel/probe.c | for(i=0; i<cpu_ctr; i++) { |
i | 509 | arch/sparc/kernel/probe.c | prom_getstring(cpu_nds[i], "name", node_str, sizeof(node_str)); |
i | 510 | arch/sparc/kernel/probe.c | printk("cpu%d: %s \n", i, node_str); |
i | 94 | arch/sparc/kernel/process.c | int i; |
i | 116 | arch/sparc/kernel/process.c | for(i=0; i<96; i++) *new_stack++ = *old_stack++; |
i | 102 | arch/sparc/kernel/setup.c | int i; |
i | 103 | arch/sparc/kernel/setup.c | for(i=0; i<strlen(commands); i++) |
i | 104 | arch/sparc/kernel/setup.c | if(commands[i]=='-') |
i | 105 | arch/sparc/kernel/setup.c | switch(commands[i+1]) { |
i | 122 | arch/sparc/kernel/setup.c | commands[i+1]); |
i | 154 | arch/sparc/kernel/setup.c | int counter, total, i, node; |
i | 237 | arch/sparc/kernel/setup.c | for(i=0; sp_banks[i].num_bytes != 0; i++) { |
i | 239 | arch/sparc/kernel/setup.c | printk("Bank %d: base 0x%x bytes %d\n", i, |
i | 240 | arch/sparc/kernel/setup.c | (unsigned int) sp_banks[i].base_addr, |
i | 241 | arch/sparc/kernel/setup.c | (int) sp_banks[i].num_bytes); |
i | 243 | arch/sparc/kernel/setup.c | end_of_phys_memory = sp_banks[i].base_addr + sp_banks[i].num_bytes; |
i | 223 | arch/sparc/kernel/traps.c | int i; |
i | 245 | arch/sparc/kernel/traps.c | for(i=0; i<linux_num_cpus; i++) { |
i | 246 | arch/sparc/kernel/traps.c | if((linux_cpus[i].mid & (~8)) != 0x0) { |
i | 248 | arch/sparc/kernel/traps.c | cpuid = (linux_cpus[i].mid & (~8)); |
i | 250 | arch/sparc/kernel/traps.c | thiscpus_mid = linux_cpus[i].mid; |
i | 255 | arch/sparc/kernel/traps.c | printk("About to fire up cpu %d mid %d cpuid %d\n", i, |
i | 256 | arch/sparc/kernel/traps.c | linux_cpus[i].mid, cpuid); |
i | 258 | arch/sparc/kernel/traps.c | prom_startcpu(linux_cpus[i].prom_node, &ctx_reg, 0x0, |
i | 260 | arch/sparc/kernel/traps.c | printk("Waiting for cpu %d to start up...\n", i); |
i | 62 | arch/sparc/mm/fault.c | register int i; |
i | 64 | arch/sparc/mm/fault.c | i = 0; |
i | 73 | arch/sparc/mm/fault.c | i++; |
i | 77 | arch/sparc/mm/fault.c | if (i >= SPARC_PHYS_BANKS-1) { |
i | 81 | arch/sparc/mm/fault.c | i = SPARC_PHYS_BANKS-1; |
i | 85 | arch/sparc/mm/fault.c | sp_banks[i].base_addr = (unsigned long) mlist->start_adr; |
i | 86 | arch/sparc/mm/fault.c | sp_banks[i].num_bytes = mlist->num_bytes; |
i | 89 | arch/sparc/mm/fault.c | i++; |
i | 90 | arch/sparc/mm/fault.c | sp_banks[i].base_addr = 0xdeadbeef; |
i | 91 | arch/sparc/mm/fault.c | sp_banks[i].num_bytes = 0; |
i | 82 | arch/sparc/mm/init.c | int i,free = 0,total = 0,reserved = 0; |
i | 88 | arch/sparc/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 89 | arch/sparc/mm/init.c | while (i-- > 0) { |
i | 91 | arch/sparc/mm/init.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 93 | arch/sparc/mm/init.c | else if (!mem_map[i]) |
i | 96 | arch/sparc/mm/init.c | shared += mem_map[i]-1; |
i | 122 | arch/sparc/mm/init.c | int i; |
i | 141 | arch/sparc/mm/init.c | for(i=0; i<MAX_CTXS; i++) ctx_tasks[i] = NULL; |
i | 247 | arch/sparc/mm/init.c | int i; |
i | 249 | arch/sparc/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 254 | arch/sparc/mm/init.c | while (i-- > 0) { |
i | 255 | arch/sparc/mm/init.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 258 | arch/sparc/mm/init.c | if (!mem_map[i]) |
i | 260 | arch/sparc/mm/init.c | val->sharedram += mem_map[i]-1; |
i | 37 | arch/sparc/mm/srmmu.c | int i; |
i | 39 | arch/sparc/mm/srmmu.c | for(i=0; sp_banks[i].num_bytes != 0; i++) { |
i | 40 | arch/sparc/mm/srmmu.c | if(voff < paddr + sp_banks[i].num_bytes) { |
i | 42 | arch/sparc/mm/srmmu.c | return sp_banks[i].base_addr + voff - paddr; |
i | 44 | arch/sparc/mm/srmmu.c | paddr += sp_banks[i].num_bytes; |
i | 54 | arch/sparc/mm/srmmu.c | int i; |
i | 57 | arch/sparc/mm/srmmu.c | for (i=0; sp_banks[i].num_bytes != 0; i++) |
i | 59 | arch/sparc/mm/srmmu.c | if (paddr >= sp_banks[i].base_addr && |
i | 60 | arch/sparc/mm/srmmu.c | paddr < (sp_banks[i].base_addr |
i | 61 | arch/sparc/mm/srmmu.c | + sp_banks[i].num_bytes)) { |
i | 62 | arch/sparc/mm/srmmu.c | return (paddr - sp_banks[i].base_addr) + offset; |
i | 64 | arch/sparc/mm/srmmu.c | offset += sp_banks[i].num_bytes; |
i | 636 | arch/sparc/mm/srmmu.c | int i; |
i | 651 | arch/sparc/mm/srmmu.c | for(i = 0; i < num_contexts; i++) |
i | 652 | arch/sparc/mm/srmmu.c | srmmu_pgd_set(&lnx_root[i], pmdp); |
i | 788 | arch/sparc/mm/srmmu.c | for(i=0; i<num_contexts; i++) |
i | 789 | arch/sparc/mm/srmmu.c | srmmu_set_context(i); |
i | 42 | arch/sparc/mm/sun4c.c | int i; |
i | 44 | arch/sparc/mm/sun4c.c | for(i=0; sp_banks[i].num_bytes != 0; i++) { |
i | 45 | arch/sparc/mm/sun4c.c | if(voff < paddr + sp_banks[i].num_bytes) { |
i | 47 | arch/sparc/mm/sun4c.c | return sp_banks[i].base_addr + voff - paddr; |
i | 49 | arch/sparc/mm/sun4c.c | paddr += sp_banks[i].num_bytes; |
i | 59 | arch/sparc/mm/sun4c.c | int i; |
i | 62 | arch/sparc/mm/sun4c.c | for (i=0; sp_banks[i].num_bytes != 0; i++) |
i | 64 | arch/sparc/mm/sun4c.c | if (paddr >= sp_banks[i].base_addr && |
i | 65 | arch/sparc/mm/sun4c.c | paddr < (sp_banks[i].base_addr |
i | 66 | arch/sparc/mm/sun4c.c | + sp_banks[i].num_bytes)) { |
i | 67 | arch/sparc/mm/sun4c.c | return (paddr - sp_banks[i].base_addr) + offset; |
i | 69 | arch/sparc/mm/sun4c.c | offset += sp_banks[i].num_bytes; |
i | 441 | arch/sparc/mm/sun4c.c | int phys_seg, i, min_prom_segmap; |
i | 459 | arch/sparc/mm/sun4c.c | for(i=0; i<num_segmaps; i++) phys_seg_map[i] = PSEG_AVL; |
i | 460 | arch/sparc/mm/sun4c.c | for(i=num_segmaps; i<PSEG_ENTRIES; i++) phys_seg_map[i] = PSEG_RSV; |
i | 517 | arch/sparc/mm/sun4c.c | for(i=0; i<num_contexts; i++) |
i | 518 | arch/sparc/mm/sun4c.c | (*romvec->pv_setctxt)(i, (char *) addr, phys_seg); |
i | 554 | arch/sparc/mm/sun4c.c | for(i=0; i<num_contexts; i++) |
i | 555 | arch/sparc/mm/sun4c.c | (*romvec->pv_setctxt)(i, (char *) addr, phys_seg); |
i | 39 | arch/sparc/prom/memory.c | int i, mitr, tmpsize; |
i | 43 | arch/sparc/prom/memory.c | for(i=0; thislist[i].theres_more != 0; i++) { |
i | 44 | arch/sparc/prom/memory.c | lowest = thislist[i].start_adr; |
i | 45 | arch/sparc/prom/memory.c | for(mitr = i+1; thislist[mitr-1].theres_more != 0; mitr++) |
i | 50 | arch/sparc/prom/memory.c | if(lowest == thislist[i].start_adr) continue; |
i | 53 | arch/sparc/prom/memory.c | for(mitr = swapi; mitr > i; mitr--) { |
i | 57 | arch/sparc/prom/memory.c | thislist[i].start_adr = tmpaddr; |
i | 58 | arch/sparc/prom/memory.c | thislist[i].num_bytes = tmpsize; |
i | 618 | drivers/block/aztcd.c | { int i, st; |
i | 635 | drivers/block/aztcd.c | { if ((i=aztUpdateToc())<0) RETURNM("aztcd_ioctl 3", i); /* error reading TOC */ |
i | 670 | drivers/block/aztcd.c | i = aztPlay(&azt_Play); |
i | 671 | drivers/block/aztcd.c | if (i < 0) |
i | 729 | drivers/block/aztcd.c | i = aztPlay(&azt_Play); |
i | 730 | drivers/block/aztcd.c | if (i < 0) |
i | 764 | drivers/block/aztcd.c | i = aztPlay(&azt_Play); |
i | 765 | drivers/block/aztcd.c | if (i < 0) |
i | 972 | drivers/block/aztcd.c | int i; |
i | 973 | drivers/block/aztcd.c | for (i = 0; i < AZT_BUF_SIZ && azt_buf_bn[i] != bn; ++i) |
i | 975 | drivers/block/aztcd.c | if (i < AZT_BUF_SIZ) { |
i | 976 | drivers/block/aztcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
i | 978 | drivers/block/aztcd.c | if (azt_buf_out != i) { |
i | 979 | drivers/block/aztcd.c | azt_buf_out = i; |
i | 980 | drivers/block/aztcd.c | if (azt_buf_bn[i] != bn) { |
i | 1351 | drivers/block/aztcd.c | int i; |
i | 1354 | drivers/block/aztcd.c | for (i=0; i<CD_FRAMESIZE_RAW; i++) inb(DATA_PORT); |
i | 1356 | drivers/block/aztcd.c | for (i=0; i<CD_FRAMESIZE; i++) inb(DATA_PORT); |
i | 1431 | drivers/block/aztcd.c | { int i; |
i | 1436 | drivers/block/aztcd.c | for (i = 0; i < AZT_BUF_SIZ; ++i) |
i | 1437 | drivers/block/aztcd.c | azt_buf_bn[i] = -1; |
i | 2034 | drivers/block/aztcd.c | { int i, px; |
i | 2042 | drivers/block/aztcd.c | { for (i = 0; i < MAX_TRACKS; i++) |
i | 2043 | drivers/block/aztcd.c | Toc[i].pointIndex = 0; |
i | 2044 | drivers/block/aztcd.c | i = DiskInfo.last + 3; |
i | 2047 | drivers/block/aztcd.c | { for (i = DiskInfo.next; i < MAX_TRACKS; i++) |
i | 2048 | drivers/block/aztcd.c | Toc[i].pointIndex = 0; |
i | 2049 | drivers/block/aztcd.c | i = DiskInfo.last + 4 - DiskInfo.next; |
i | 2078 | drivers/block/aztcd.c | i--; |
i | 2081 | drivers/block/aztcd.c | if (i <= 0) |
i | 2090 | drivers/block/aztcd.c | for (i = 1; i <= DiskInfo.last+1; i++) |
i | 2092 | drivers/block/aztcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
i | 2093 | drivers/block/aztcd.c | Toc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame, |
i | 2094 | drivers/block/aztcd.c | Toc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame); |
i | 2095 | drivers/block/aztcd.c | for (i = 100; i < 103; i++) |
i | 2097 | drivers/block/aztcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
i | 2098 | drivers/block/aztcd.c | Toc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame, |
i | 2099 | drivers/block/aztcd.c | Toc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame); |
i | 681 | drivers/block/cdu31a.c | int i; |
i | 740 | drivers/block/cdu31a.c | for (i=0; i<8; i++) |
i | 768 | drivers/block/cdu31a.c | for (i=0; i<10; i++) |
i | 1202 | drivers/block/cdu31a.c | int i; |
i | 1210 | drivers/block/cdu31a.c | for(i=0; i<CD_XA_HEAD; i++) |
i | 1249 | drivers/block/cdu31a.c | for(i=0; i<CD_XA_TAIL; i++) |
i | 1858 | drivers/block/cdu31a.c | int i; |
i | 1863 | drivers/block/cdu31a.c | for (i = 0; i < num_tracks; i++) |
i | 1865 | drivers/block/cdu31a.c | if (sony_toc.tracks[i].track == track) |
i | 1867 | drivers/block/cdu31a.c | return i; |
i | 2332 | drivers/block/cdu31a.c | int i; |
i | 2394 | drivers/block/cdu31a.c | i=verify_area(VERIFY_READ, (char *) arg, 6); |
i | 2395 | drivers/block/cdu31a.c | if(i) |
i | 2396 | drivers/block/cdu31a.c | return i; |
i | 2401 | drivers/block/cdu31a.c | for (i=1; i<7; i++) |
i | 2403 | drivers/block/cdu31a.c | params[i] = int_to_bcd(params[i]); |
i | 2428 | drivers/block/cdu31a.c | i=verify_area(VERIFY_WRITE, hdr, sizeof(*hdr)); |
i | 2429 | drivers/block/cdu31a.c | if(i<0) |
i | 2430 | drivers/block/cdu31a.c | return i; |
i | 2451 | drivers/block/cdu31a.c | i=verify_area(VERIFY_READ, entry, sizeof(*entry)); |
i | 2452 | drivers/block/cdu31a.c | if(i<0) |
i | 2453 | drivers/block/cdu31a.c | return i; |
i | 2454 | drivers/block/cdu31a.c | i=verify_area(VERIFY_WRITE, entry, sizeof(*entry)); |
i | 2455 | drivers/block/cdu31a.c | if(i<0) |
i | 2456 | drivers/block/cdu31a.c | return i; |
i | 2507 | drivers/block/cdu31a.c | i=verify_area(VERIFY_READ, (char *) arg, sizeof(ti)); |
i | 2508 | drivers/block/cdu31a.c | if(i<0) |
i | 2509 | drivers/block/cdu31a.c | return i; |
i | 2576 | drivers/block/cdu31a.c | i=verify_area(VERIFY_READ, (char *) arg, sizeof(volctrl)); |
i | 2577 | drivers/block/cdu31a.c | if(i<0) |
i | 2578 | drivers/block/cdu31a.c | return i; |
i | 2605 | drivers/block/cdu31a.c | i=verify_area(VERIFY_READ, (char *) arg, sizeof(ra)); |
i | 2606 | drivers/block/cdu31a.c | if(i<0) |
i | 2607 | drivers/block/cdu31a.c | return i; |
i | 2610 | drivers/block/cdu31a.c | i=verify_area(VERIFY_WRITE, ra.buf, CD_FRAMESIZE_RAW * ra.nframes); |
i | 2611 | drivers/block/cdu31a.c | if(i<0) |
i | 2612 | drivers/block/cdu31a.c | return i; |
i | 2931 | drivers/block/cdu31a.c | int i; |
i | 2973 | drivers/block/cdu31a.c | i = 0; |
i | 2974 | drivers/block/cdu31a.c | while ( (cdu31a_addresses[i].base != 0) |
i | 2977 | drivers/block/cdu31a.c | if (check_region(cdu31a_addresses[i].base, 4)) { |
i | 2978 | drivers/block/cdu31a.c | i++; |
i | 2981 | drivers/block/cdu31a.c | get_drive_configuration(cdu31a_addresses[i].base, |
i | 2987 | drivers/block/cdu31a.c | cdu31a_irq = cdu31a_addresses[i].int_num; |
i | 2991 | drivers/block/cdu31a.c | i++; |
i | 138 | drivers/block/cm206.c | #define stats(i) ++cd->stats[st_ ## i]; \ |
i | 139 | drivers/block/cm206.c | cd->last_stat[st_ ## i] = cd->stat_counter++; |
i | 141 | drivers/block/cm206.c | #define stats(i) (void) 0 |
i | 383 | drivers/block/cm206.c | int i; |
i | 385 | drivers/block/cm206.c | for(i=0; i<bytes; i++) |
i | 386 | drivers/block/cm206.c | status[i] = send_receive(c_gimme); |
i | 420 | drivers/block/cm206.c | int i, e; |
i | 423 | drivers/block/cm206.c | for (i=0; i<4; i++) |
i | 424 | drivers/block/cm206.c | if (read_sector[i] != (e=send_receive(read_sector[i]))) { |
i | 425 | drivers/block/cm206.c | debug(("read_sector: %x echoes %x\n", read_sector[i], e)); |
i | 550 | drivers/block/cm206.c | int i=0; |
i | 552 | drivers/block/cm206.c | while (i++<10 && cd->dsb & dsb_drive_not_ready) { |
i | 645 | drivers/block/cm206.c | long int i, cd_sec_no; |
i | 659 | drivers/block/cm206.c | for (i=0; i<CURRENT->nr_sectors; i++) { |
i | 660 | drivers/block/cm206.c | cd_sec_no = (CURRENT->sector+i)/4; /* 4 times 512 bytes */ |
i | 661 | drivers/block/cm206.c | quarter = (CURRENT->sector+i) % 4; |
i | 662 | drivers/block/cm206.c | dest = CURRENT->buffer + i*512; |
i | 718 | drivers/block/cm206.c | int i; |
i | 722 | drivers/block/cm206.c | for (i=0; i<4; i++) type_0_command(seek_command[i], 0); |
i | 744 | drivers/block/cm206.c | int i, lba, l, old_lba=0; |
i | 750 | drivers/block/cm206.c | for (i=track; i>0; i--) if (cd->toc[i].track) { |
i | 751 | drivers/block/cm206.c | min = fsm2lba(cd->toc[i].fsm); |
i | 798 | drivers/block/cm206.c | int i; |
i | 802 | drivers/block/cm206.c | for (i=0; i<3; i++) cd->toc[1].fsm[i] = cd->disc_status[3+i]; |
i | 814 | drivers/block/cm206.c | int i; |
i | 815 | drivers/block/cm206.c | for (i=0; i<9; i++) type_0_command(play_command[i], 0); |
i | 816 | drivers/block/cm206.c | for (i=0; i<3; i++) |
i | 817 | drivers/block/cm206.c | PLAY_TO.fsm[i] = play_command[i+4]; |
i | 825 | drivers/block/cm206.c | int i; |
i | 828 | drivers/block/cm206.c | for (i=0; i<3; i++) { |
i | 829 | drivers/block/cm206.c | play_command[i+1] = cd->audio_status[i+2]; |
i | 830 | drivers/block/cm206.c | play_command[i+4] = PLAY_TO.fsm[i]; |
i | 834 | drivers/block/cm206.c | for (i=0; i<3; i++) { |
i | 835 | drivers/block/cm206.c | play_command[i+1] = cd->toc[from].fsm[i]; |
i | 836 | drivers/block/cm206.c | PLAY_TO.fsm[i] = play_command[i+4] = cd->toc[to+1].fsm[i]; |
i | 840 | drivers/block/cm206.c | for (i=0; i<7; i++) type_0_command(play_command[i],0); |
i | 841 | drivers/block/cm206.c | for (i=0; i<2; i++) type_0_command(0x2, 0); /* volume */ |
i | 847 | drivers/block/cm206.c | int i; |
i | 851 | drivers/block/cm206.c | for (i=2; i<6; i++) q[i]=bcdbin(q[i]); |
i | 1135 | drivers/block/cm206.c | int i; |
i | 1136 | drivers/block/cm206.c | for (i=0; i<2; i++) { |
i | 1137 | drivers/block/cm206.c | if (0x300 <= cm206[i] && i<= 0x370 && cm206[i] % 0x10 == 0) { |
i | 1138 | drivers/block/cm206.c | cm206_base = cm206[i]; |
i | 1141 | drivers/block/cm206.c | else if (3 <= cm206[i] && cm206[i] <= 15) { |
i | 1142 | drivers/block/cm206.c | cm206_irq = cm206[i]; |
i | 1252 | drivers/block/cm206.c | int i; |
i | 1254 | drivers/block/cm206.c | for(i=1; i<=p[0]; i++) { |
i | 1255 | drivers/block/cm206.c | if (0x300 <= p[i] && i<= 0x370 && p[i] % 0x10 == 0) { |
i | 1256 | drivers/block/cm206.c | cm206_base = p[i]; |
i | 1259 | drivers/block/cm206.c | else if (3 <= p[i] && p[i] <= 15) { |
i | 1260 | drivers/block/cm206.c | cm206_irq = p[i]; |
i | 460 | drivers/block/floppy.c | #define _WAIT(x,i) CALL(ret=wait_til_done((x),i)) |
i | 884 | drivers/block/floppy.c | int i, drive, saved_drive; |
i | 890 | drivers/block/floppy.c | for(i=0; i< N_DRIVE; i++){ |
i | 891 | drivers/block/floppy.c | drive = (saved_drive + i + 1 ) % N_DRIVE; |
i | 987 | drivers/block/floppy.c | int i; |
i | 990 | drivers/block/floppy.c | for(i=0; i< raw_cmd.cmd_count; i++) |
i | 991 | drivers/block/floppy.c | printk("%x,", raw_cmd.cmd[i]); |
i | 1079 | drivers/block/floppy.c | int i = 0, counter, status = 0; |
i | 1091 | drivers/block/floppy.c | resultsize = i; |
i | 1093 | drivers/block/floppy.c | return i; |
i | 1098 | drivers/block/floppy.c | if (i >= MAX_REPLIES) { |
i | 1102 | drivers/block/floppy.c | reply_buffer[i++] = inb_p(FD_DATA); |
i | 1108 | drivers/block/floppy.c | status, fdc, i); |
i | 1360 | drivers/block/floppy.c | int i,ready_date,r, flags,dflags; |
i | 1392 | drivers/block/floppy.c | for(i=0; i< raw_cmd.cmd_count; i++) |
i | 1393 | drivers/block/floppy.c | r|=output_byte( raw_cmd.cmd[i] ); |
i | 1590 | drivers/block/floppy.c | int i; |
i | 1596 | drivers/block/floppy.c | for(i=0; i<inr; i++) |
i | 1597 | drivers/block/floppy.c | printk("%d %x\n", i, reply_buffer[i] ); |
i | 1606 | drivers/block/floppy.c | for(i=0; i<inr; i++) |
i | 1607 | drivers/block/floppy.c | printk("%d %x\n", i, reply_buffer[i] ); |
i | 1700 | drivers/block/floppy.c | int i; |
i | 1712 | drivers/block/floppy.c | for(i=0; i < OLOGSIZE; i++) |
i | 1714 | drivers/block/floppy.c | output_log[(i+output_log_pos) % OLOGSIZE].data, |
i | 1715 | drivers/block/floppy.c | output_log[(i+output_log_pos) % OLOGSIZE].status, |
i | 1716 | drivers/block/floppy.c | output_log[(i+output_log_pos) % OLOGSIZE].jiffies); |
i | 1719 | drivers/block/floppy.c | for(i=0; i<resultsize; i++){ |
i | 1720 | drivers/block/floppy.c | printk("%2x ", reply_buffer[i]); |
i | 1726 | drivers/block/floppy.c | for(i=0; i<N_FDC; i++){ |
i | 1728 | drivers/block/floppy.c | printk("dor %d = %x\n", i, fdc_state[i].dor ); |
i | 1729 | drivers/block/floppy.c | outb_p(fdc_state[i].address+2, fdc_state[i].dor); |
i | 2801 | drivers/block/floppy.c | int i; |
i | 2803 | drivers/block/floppy.c | i = verify_area(VERIFY_WRITE,param,size); |
i | 2804 | drivers/block/floppy.c | if (i) |
i | 2805 | drivers/block/floppy.c | return i; |
i | 2840 | drivers/block/floppy.c | int i, drive, count, ret; |
i | 2874 | drivers/block/floppy.c | i = verify_area(VERIFY_READ, raw_cmd.data, count ); |
i | 2875 | drivers/block/floppy.c | if (i) |
i | 2876 | drivers/block/floppy.c | return i; |
i | 2897 | drivers/block/floppy.c | for( i=0; i< raw_cmd.reply_count; i++) |
i | 2898 | drivers/block/floppy.c | raw_cmd.reply[i] = reply_buffer[i]; |
i | 2908 | drivers/block/floppy.c | i=fd_copyout( raw_cmd.data, floppy_track_buffer, count); |
i | 2909 | drivers/block/floppy.c | if (i) |
i | 2910 | drivers/block/floppy.c | return i; |
i | 2934 | drivers/block/floppy.c | int i,drive,type,cnt; |
i | 2947 | drivers/block/floppy.c | i=verify_area(VERIFY_WRITE,(void *) param,16); |
i | 2948 | drivers/block/floppy.c | if (i) |
i | 2949 | drivers/block/floppy.c | return i; |
i | 2996 | drivers/block/floppy.c | CALL(i = raw_cmd_ioctl((void *) param)); |
i | 2998 | drivers/block/floppy.c | return i; |
i | 3464 | drivers/block/floppy.c | int i; |
i | 3466 | drivers/block/floppy.c | for (i=0; i < ARRAY_SIZE(default_drive_params); i++){ |
i | 3468 | drivers/block/floppy.c | default_drive_params[i].params.flags |= 0x80; |
i | 3470 | drivers/block/floppy.c | default_drive_params[i].params.flags &= ~0x80; |
i | 3477 | drivers/block/floppy.c | int i; |
i | 3479 | drivers/block/floppy.c | for (i=0; i < ARRAY_SIZE(default_drive_params); i++){ |
i | 3481 | drivers/block/floppy.c | default_drive_params[i].params.select_delay = 0; |
i | 3482 | drivers/block/floppy.c | default_drive_params[i].params.flags |= FD_SILENT_DCL_CLEAR; |
i | 3484 | drivers/block/floppy.c | default_drive_params[i].params.select_delay = 2*HZ/100; |
i | 3485 | drivers/block/floppy.c | default_drive_params[i].params.flags &= ~FD_SILENT_DCL_CLEAR; |
i | 3559 | drivers/block/floppy.c | int i; |
i | 3563 | drivers/block/floppy.c | for(i=0; i< ARRAY_SIZE(config_params); i++){ |
i | 3564 | drivers/block/floppy.c | if (strcmp(str,config_params[i].name) == 0 ){ |
i | 3568 | drivers/block/floppy.c | param = config_params[i].def_param; |
i | 3569 | drivers/block/floppy.c | config_params[i].fn(ints,param); |
i | 3575 | drivers/block/floppy.c | for(i=0; i< ARRAY_SIZE(config_params); i++) |
i | 3576 | drivers/block/floppy.c | printk(" %s",config_params[i].name); |
i | 3583 | drivers/block/floppy.c | int i,drive; |
i | 3593 | drivers/block/floppy.c | for(i=0; i<256; i++) |
i | 3594 | drivers/block/floppy.c | if ( ITYPE(i)) |
i | 3595 | drivers/block/floppy.c | floppy_sizes[i] = floppy_type[ITYPE(i)].size >> 1; |
i | 3597 | drivers/block/floppy.c | floppy_sizes[i] = MAX_DISK_SIZE; |
i | 3612 | drivers/block/floppy.c | for (i = 0 ; i < N_FDC ; i++) { |
i | 3613 | drivers/block/floppy.c | fdc = i; |
i | 3642 | drivers/block/floppy.c | for (i = 0 ; i < N_FDC ; i++) { |
i | 3643 | drivers/block/floppy.c | fdc = i; |
i | 3683 | drivers/block/floppy.c | int i; |
i | 3693 | drivers/block/floppy.c | for(i=0; i< N_FDC; i++){ |
i | 3695 | drivers/block/floppy.c | fdc = i; |
i | 3779 | drivers/block/floppy.c | int i; |
i | 3790 | drivers/block/floppy.c | for(i=current->mm->env_start; |
i | 3791 | drivers/block/floppy.c | i< current->mm->env_end; |
i | 3792 | drivers/block/floppy.c | i ++){ |
i | 3793 | drivers/block/floppy.c | c= get_fs_byte(i); |
i | 84 | drivers/block/genhd.c | int i; |
i | 122 | drivers/block/genhd.c | for (i=0; i<4; i++, p++) { |
i | 128 | drivers/block/genhd.c | if (i >= 2 |
i | 151 | drivers/block/genhd.c | for (i=0; i<4; i++, p++) |
i | 154 | drivers/block/genhd.c | if (i == 4) |
i | 169 | drivers/block/genhd.c | int i, minor = current_minor; |
i | 253 | drivers/block/genhd.c | for (i=1 ; i<=4 ; minor++,i++,p++) { |
i | 279 | drivers/block/genhd.c | for (i = 4 ; i < 16 ; i++, current_minor++) { |
i | 299 | drivers/block/genhd.c | int i; |
i | 352 | drivers/block/genhd.c | for (i = 0 ; i < label->d_npartitions; i++, partition++) { |
i | 411 | drivers/block/genhd.c | int i; |
i | 424 | drivers/block/genhd.c | for (i = first_minor; i < end_minor; i++) |
i | 425 | drivers/block/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
i | 432 | drivers/block/genhd.c | int i, drive; |
i | 436 | drivers/block/genhd.c | for (i = 0 ; i < end_minor; i++) { |
i | 437 | drivers/block/genhd.c | dev->part[i].start_sect = 0; |
i | 438 | drivers/block/genhd.c | dev->part[i].nr_sects = 0; |
i | 447 | drivers/block/genhd.c | for (i = 0; i < end_minor; i++) |
i | 448 | drivers/block/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
i | 540 | drivers/block/gscd.c | int i,dummy; |
i | 558 | drivers/block/gscd.c | for ( i=1,dummy=1 ; i<0xFFFF ; i++ ) |
i | 560 | drivers/block/gscd.c | dummy *= i; |
i | 669 | drivers/block/gscd.c | int i,j; |
i | 680 | drivers/block/gscd.c | for ( i=0 ; i<j ; i++ ) |
i | 749 | drivers/block/gscd.c | int i; |
i | 775 | drivers/block/gscd.c | for ( i=0 ; i< size ; i++ ) |
i | 826 | drivers/block/gscd.c | int i; |
i | 847 | drivers/block/gscd.c | for ( i=0 ; i<size ; i++ ) |
i | 865 | drivers/block/gscd.c | int i; |
i | 873 | drivers/block/gscd.c | for ( i=0 ; i<8 ; i++ ) |
i | 914 | drivers/block/gscd.c | int i; |
i | 920 | drivers/block/gscd.c | for ( i=0 ; i<0x1E; i++ ) |
i | 922 | drivers/block/gscd.c | printk ( "%c", resp[i] ); |
i | 1022 | drivers/block/gscd.c | int i; |
i | 1046 | drivers/block/gscd.c | i = find_drives (); |
i | 1047 | drivers/block/gscd.c | if ( i == 0 ) |
i | 1061 | drivers/block/gscd.c | i = 0; |
i | 1062 | drivers/block/gscd.c | while ( drv_states[i] != 0 ) |
i | 1064 | drivers/block/gscd.c | curr_drv_state = drv_states[i]; |
i | 1065 | drivers/block/gscd.c | printk ( "GSCD: Reset unit %d ... ",i ); |
i | 1068 | drivers/block/gscd.c | i++; |
i | 99 | drivers/block/hd.c | int i; |
i | 105 | drivers/block/hd.c | i = inb_p(0x40); |
i | 106 | drivers/block/hd.c | i |= inb(0x40) << 8; |
i | 108 | drivers/block/hd.c | return(t - i); |
i | 172 | drivers/block/hd.c | int i = inb_p(HD_STATUS); |
i | 174 | drivers/block/hd.c | if (!OK_STATUS(i)) { |
i | 175 | drivers/block/hd.c | dump_status("check_status", i); |
i | 359 | drivers/block/hd.c | unsigned int i; |
i | 362 | drivers/block/hd.c | for (i = 0; i < 500000 ; i++) { |
i | 373 | drivers/block/hd.c | int i; |
i | 376 | drivers/block/hd.c | for(i = 0; i < 1000; i++) barrier(); |
i | 378 | drivers/block/hd.c | for(i = 0; i < 1000; i++) barrier(); |
i | 387 | drivers/block/hd.c | static int i; |
i | 392 | drivers/block/hd.c | i = -1; |
i | 399 | drivers/block/hd.c | if (++i < NR_HD) { |
i | 400 | drivers/block/hd.c | special_op[i] = recalibrate[i] = 1; |
i | 401 | drivers/block/hd.c | if (unmask_intr[i]) { |
i | 402 | drivers/block/hd.c | unmask_intr[i] = DEFAULT_UNMASK_INTR; |
i | 403 | drivers/block/hd.c | printk("hd%c: reset irq-unmasking to %d\n",i+'a', |
i | 406 | drivers/block/hd.c | if (mult_req[i] || mult_count[i]) { |
i | 407 | drivers/block/hd.c | mult_count[i] = 0; |
i | 408 | drivers/block/hd.c | mult_req[i] = DEFAULT_MULT_COUNT; |
i | 409 | drivers/block/hd.c | printk("hd%c: reset multiple mode to %d\n",i+'a', |
i | 412 | drivers/block/hd.c | hd_out(i,hd_info[i].sect,hd_info[i].sect,hd_info[i].head-1, |
i | 413 | drivers/block/hd.c | hd_info[i].cyl,WIN_SPECIFY,&reset_hd); |
i | 475 | drivers/block/hd.c | int i, retries = 100000, msect = mult_count[dev], nsect; |
i | 480 | drivers/block/hd.c | i = (unsigned) inb_p(HD_STATUS); |
i | 481 | drivers/block/hd.c | if (i & BUSY_STAT) |
i | 483 | drivers/block/hd.c | if (!OK_STATUS(i)) |
i | 485 | drivers/block/hd.c | if (i & DRQ_STAT) |
i | 488 | drivers/block/hd.c | dump_status("read_intr", i); |
i | 503 | drivers/block/hd.c | i = (CURRENT->nr_sectors -= nsect); |
i | 512 | drivers/block/hd.c | if (i > 0) { |
i | 548 | drivers/block/hd.c | int i; |
i | 553 | drivers/block/hd.c | if (OK_STATUS(i=inb_p(HD_STATUS))) { |
i | 554 | drivers/block/hd.c | if (i & DRQ_STAT) { |
i | 562 | drivers/block/hd.c | for (i = CURRENT->nr_sectors; i > 0;){ |
i | 563 | drivers/block/hd.c | i -= CURRENT->current_nr_sectors; |
i | 575 | drivers/block/hd.c | dump_status("multwrite_intr", i); |
i | 582 | drivers/block/hd.c | int i; |
i | 588 | drivers/block/hd.c | i = (unsigned) inb_p(HD_STATUS); |
i | 589 | drivers/block/hd.c | if (i & BUSY_STAT) |
i | 591 | drivers/block/hd.c | if (!OK_STATUS(i)) |
i | 593 | drivers/block/hd.c | if ((CURRENT->nr_sectors <= 1) || (i & DRQ_STAT)) |
i | 596 | drivers/block/hd.c | dump_status("write_intr", i); |
i | 602 | drivers/block/hd.c | i = --CURRENT->nr_sectors; |
i | 605 | drivers/block/hd.c | if (!i || (CURRENT->bh && !SUBSECTOR(i))) |
i | 607 | drivers/block/hd.c | if (i > 0) { |
i | 956 | drivers/block/hd.c | int i; |
i | 1007 | drivers/block/hd.c | i = NR_HD; |
i | 1008 | drivers/block/hd.c | while (i-- > 0) { |
i | 1017 | drivers/block/hd.c | hd[i<<6].nr_sects = bios_info[i].head * |
i | 1018 | drivers/block/hd.c | bios_info[i].sect * bios_info[i].cyl; |
i | 1019 | drivers/block/hd.c | hd_ident_info[i] = (struct hd_driveid *) kmalloc(512,GFP_KERNEL); |
i | 1020 | drivers/block/hd.c | special_op[i] = 1; |
i | 1033 | drivers/block/hd.c | for(i=0;i<(MAX_HD << 6);i++) hd_blocksizes[i] = 1024; |
i | 1086 | drivers/block/hd.c | int i; |
i | 1104 | drivers/block/hd.c | for (i=max_p - 1; i >=0 ; i--) { |
i | 1105 | drivers/block/hd.c | int minor = start + i; |
i | 386 | drivers/block/ide-cd.c | int i; |
i | 442 | drivers/block/ide-cd.c | for (i=0; i<sizeof (failed_command->c); i++) |
i | 443 | drivers/block/ide-cd.c | printk ("%02x ", failed_command->c[i]); |
i | 1733 | drivers/block/ide-cd.c | int stat, ntracks, i; |
i | 1782 | drivers/block/ide-cd.c | for (i=0; i<=ntracks; i++) |
i | 1786 | drivers/block/ide-cd.c | byte *adr = (byte *)&(toc->ent[i].lba); |
i | 1787 | drivers/block/ide-cd.c | toc->ent[i].lba = msf_to_lba (adr[1], adr[2], adr[3]); |
i | 1790 | drivers/block/ide-cd.c | byte_swap_long (&toc->ent[i].lba); |
i | 203 | drivers/block/ide.c | int i; |
i | 209 | drivers/block/ide.c | i = inb_p(0x40); |
i | 210 | drivers/block/ide.c | i |= inb(0x40) << 8; |
i | 212 | drivers/block/ide.c | return (t - i); |
i | 848 | drivers/block/ide.c | int i = (drive->mult_count ? drive->mult_count : 1) * SECTOR_WORDS; |
i | 850 | drivers/block/ide.c | while (i > 0) { |
i | 852 | drivers/block/ide.c | unsigned int wcount = (i > 16) ? 16 : i; |
i | 853 | drivers/block/ide.c | i -= wcount; |
i | 920 | drivers/block/ide.c | int i; |
i | 948 | drivers/block/ide.c | i = (rq->nr_sectors -= nsect); |
i | 951 | drivers/block/ide.c | if (i > 0) { |
i | 966 | drivers/block/ide.c | int i; |
i | 979 | drivers/block/ide.c | i = --rq->nr_sectors; |
i | 983 | drivers/block/ide.c | if (i > 0) { |
i | 1040 | drivers/block/ide.c | int i; |
i | 1053 | drivers/block/ide.c | for (i = rq->nr_sectors; i > 0;){ |
i | 1054 | drivers/block/ide.c | i -= rq->current_nr_sectors; |
i | 2351 | drivers/block/ide.c | int i; |
i | 2353 | drivers/block/ide.c | for(i = 0; i < 3; ++i) { |
i | 2449 | drivers/block/ide.c | char *i = strchr(s, c); |
i | 2450 | drivers/block/ide.c | return (i && c) ? i - s : -1; |
i | 2469 | drivers/block/ide.c | int i, n; |
i | 2476 | drivers/block/ide.c | for (i = 0; *keywords != NULL; ++i) { |
i | 2478 | drivers/block/ide.c | return -(i+1); |
i | 2486 | drivers/block/ide.c | for (n = 0; (i = stridx(decimal, *s)) >= 0;) { |
i | 2487 | drivers/block/ide.c | vals[n] = i; |
i | 2488 | drivers/block/ide.c | while ((i = stridx(decimal, *++s)) >= 0) |
i | 2489 | drivers/block/ide.c | vals[n] = (vals[n] * 10) + i; |
i | 2491 | drivers/block/ide.c | while ((i = stridx(hex, *++s)) >= 0) |
i | 2492 | drivers/block/ide.c | vals[n] = (vals[n] * 0x10) + i; |
i | 461 | drivers/block/ll_rw_blk.c | int i; |
i | 483 | drivers/block/ll_rw_blk.c | i = blksize_size[major][MINOR(bh[0]->b_dev)]; |
i | 484 | drivers/block/ll_rw_blk.c | if (i) |
i | 485 | drivers/block/ll_rw_blk.c | correct_size = i; |
i | 489 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
i | 490 | drivers/block/ll_rw_blk.c | if (bh[i] && bh[i]->b_size != correct_size) { |
i | 493 | drivers/block/ll_rw_blk.c | correct_size, bh[i]->b_size); |
i | 511 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
i | 512 | drivers/block/ll_rw_blk.c | if (bh[i]) { |
i | 513 | drivers/block/ll_rw_blk.c | bh[i]->b_req = 1; |
i | 514 | drivers/block/ll_rw_blk.c | make_request(major, rw, bh[i]); |
i | 525 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
i | 526 | drivers/block/ll_rw_blk.c | if (bh[i]) |
i | 527 | drivers/block/ll_rw_blk.c | bh[i]->b_dirt = bh[i]->b_uptodate = 0; |
i | 534 | drivers/block/ll_rw_blk.c | int i, j; |
i | 557 | drivers/block/ll_rw_blk.c | for (j=0, i=0; i<nb;) |
i | 559 | drivers/block/ll_rw_blk.c | for (; j < 8 && i < nb; j++, i++, buf += buffersize) |
i | 572 | drivers/block/ll_rw_blk.c | req[j]->sector = (b[i] * buffersize) >> 9; |
i | 296 | drivers/block/mcd.c | int i, st; |
i | 315 | drivers/block/mcd.c | i = updateToc(); |
i | 316 | drivers/block/mcd.c | if (i < 0) |
i | 317 | drivers/block/mcd.c | return i; /* error reading TOC */ |
i | 332 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 344 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 365 | drivers/block/mcd.c | i = mcdPlay(&mcd_Play); |
i | 366 | drivers/block/mcd.c | if (i < 0) |
i | 402 | drivers/block/mcd.c | i = mcdPlay(&mcd_Play); |
i | 403 | drivers/block/mcd.c | if (i < 0) |
i | 416 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 448 | drivers/block/mcd.c | i = mcdPlay(&mcd_Play); |
i | 449 | drivers/block/mcd.c | if (i < 0) |
i | 557 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 558 | drivers/block/mcd.c | if (i < 0) |
i | 576 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 587 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 606 | drivers/block/mcd.c | int i; |
i | 607 | drivers/block/mcd.c | for (i = 0; i < MCD_BUF_SIZ && mcd_buf_bn[i] != bn; ++i) |
i | 609 | drivers/block/mcd.c | if (i < MCD_BUF_SIZ) { |
i | 610 | drivers/block/mcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
i | 612 | drivers/block/mcd.c | if (mcd_buf_out != i) { |
i | 613 | drivers/block/mcd.c | mcd_buf_out = i; |
i | 614 | drivers/block/mcd.c | if (mcd_buf_bn[i] != bn) { |
i | 1000 | drivers/block/mcd.c | int i = 4096; |
i | 1003 | drivers/block/mcd.c | } while ((inb(MCDPORT(1)) & MFL_STATUSorDATA) == MFL_STATUS && --i); |
i | 1006 | drivers/block/mcd.c | i = 4096; |
i | 1009 | drivers/block/mcd.c | } while ((inb(MCDPORT(1)) & MFL_STATUSorDATA) == MFL_STATUS && --i); |
i | 1090 | drivers/block/mcd.c | int i; |
i | 1091 | drivers/block/mcd.c | for (i = 0; i < MCD_BUF_SIZ; ++i) |
i | 1092 | drivers/block/mcd.c | mcd_buf_bn[i] = -1; |
i | 1347 | drivers/block/mcd.c | int i; |
i | 1353 | drivers/block/mcd.c | i = inb(MCDPORT(0)) & 0xFF; |
i | 1354 | drivers/block/mcd.c | return i; |
i | 1578 | drivers/block/mcd.c | int i, px; |
i | 1583 | drivers/block/mcd.c | for (i = 0; i < MAX_TRACKS; i++) |
i | 1584 | drivers/block/mcd.c | Toc[i].pointIndex = 0; |
i | 1586 | drivers/block/mcd.c | i = DiskInfo.last + 3; |
i | 1620 | drivers/block/mcd.c | i--; |
i | 1623 | drivers/block/mcd.c | if (i <= 0) |
i | 1639 | drivers/block/mcd.c | for (i = 1; i <= DiskInfo.last; i++) |
i | 1641 | drivers/block/mcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
i | 1642 | drivers/block/mcd.c | Toc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame, |
i | 1643 | drivers/block/mcd.c | Toc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame); |
i | 1644 | drivers/block/mcd.c | for (i = 100; i < 103; i++) |
i | 1646 | drivers/block/mcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
i | 1647 | drivers/block/mcd.c | Toc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame, |
i | 1648 | drivers/block/mcd.c | Toc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame); |
i | 582 | drivers/block/mcdx.c | int i; |
i | 584 | drivers/block/mcdx.c | if (-1 == (i = mcdx_transfer( |
i | 597 | drivers/block/mcdx.c | CURRENT->sector += i; |
i | 598 | drivers/block/mcdx.c | CURRENT->nr_sectors -= i; |
i | 599 | drivers/block/mcdx.c | CURRENT->buffer += (i * 512); |
i | 881 | drivers/block/mcdx.c | unsigned char i; |
i | 884 | drivers/block/mcdx.c | for (i = 1; i < cmdlen; i++) printk(" 0x%02x", cmd[i]); |
i | 955 | drivers/block/mcdx.c | int i; |
i | 959 | drivers/block/mcdx.c | for (i = 0; i < MCDX_NDRIVES; i++) { |
i | 960 | drivers/block/mcdx.c | if (mcdx_stuffp[i]) { |
i | 962 | drivers/block/mcdx.c | i, mcdx_stuffp[i])); |
i | 975 | drivers/block/mcdx.c | int i; |
i | 979 | drivers/block/mcdx.c | for (i = 0; i < MCDX_NDRIVES; i++) { |
i | 981 | drivers/block/mcdx.c | stuffp = mcdx_stuffp[i]; |
i | 990 | drivers/block/mcdx.c | mcdx_stuffp[i] = NULL; |
i | 1168 | drivers/block/mcdx.c | int i; |
i | 1170 | drivers/block/mcdx.c | for (i = 100; i; i--) (void) inb((unsigned int) stuffp->rreg_status); |
i | 584 | drivers/block/optcd.c | int i; |
i | 606 | drivers/block/optcd.c | for (i = 1; i <= DiskInfo.last + 1; i++) |
i | 609 | drivers/block/optcd.c | i, Toc[i].ctrl_addr, |
i | 610 | drivers/block/optcd.c | Toc[i].track, |
i | 611 | drivers/block/optcd.c | Toc[i].pointIndex, |
i | 612 | drivers/block/optcd.c | Toc[i].trackTime.min, |
i | 613 | drivers/block/optcd.c | Toc[i].trackTime.sec, |
i | 614 | drivers/block/optcd.c | Toc[i].trackTime.frame, |
i | 615 | drivers/block/optcd.c | Toc[i].diskTime.min, |
i | 616 | drivers/block/optcd.c | Toc[i].diskTime.sec, |
i | 617 | drivers/block/optcd.c | Toc[i].diskTime.frame); |
i | 618 | drivers/block/optcd.c | for (i = 100; i < 103; i++) |
i | 621 | drivers/block/optcd.c | i, Toc[i].ctrl_addr, |
i | 622 | drivers/block/optcd.c | Toc[i].track, |
i | 623 | drivers/block/optcd.c | Toc[i].pointIndex, |
i | 624 | drivers/block/optcd.c | Toc[i].trackTime.min, |
i | 625 | drivers/block/optcd.c | Toc[i].trackTime.sec, |
i | 626 | drivers/block/optcd.c | Toc[i].trackTime.frame, |
i | 627 | drivers/block/optcd.c | Toc[i].diskTime.min, |
i | 628 | drivers/block/optcd.c | Toc[i].diskTime.sec, |
i | 629 | drivers/block/optcd.c | Toc[i].diskTime.frame); |
i | 666 | drivers/block/optcd.c | int i; |
i | 670 | drivers/block/optcd.c | for (i = 0; i < OPT_BUF_SIZ; i++) |
i | 671 | drivers/block/optcd.c | opt_buf_bn[i] = OPT_NOBUF; |
i | 687 | drivers/block/optcd.c | int i, offs, nr_sectors; |
i | 688 | drivers/block/optcd.c | for (i = 0; i < OPT_BUF_SIZ && opt_buf_bn[i] != bn; ++i); |
i | 690 | drivers/block/optcd.c | printk("optcd: found %d\n", i); |
i | 692 | drivers/block/optcd.c | if (i >= OPT_BUF_SIZ) { |
i | 696 | drivers/block/optcd.c | offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
i | 698 | drivers/block/optcd.c | if (opt_buf_out != i) { |
i | 699 | drivers/block/optcd.c | opt_buf_out = i; |
i | 700 | drivers/block/optcd.c | if (opt_buf_bn[i] != bn) { |
i | 1356 | drivers/block/optcd.c | int count, i, ch; |
i | 1362 | drivers/block/optcd.c | for (i = 0, ch = -1; count > 0; count--) { |
i | 1365 | drivers/block/optcd.c | if (i < 99) |
i | 1366 | drivers/block/optcd.c | devname[i++] = ch; |
i | 1368 | drivers/block/optcd.c | devname[i] = '\0'; |
i | 1537 | drivers/block/optcd.c | short i = -1; |
i | 1556 | drivers/block/optcd.c | i = 0; |
i | 1560 | drivers/block/optcd.c | i = 1; |
i | 1567 | drivers/block/optcd.c | return(i); /* -> not detected: possibly incorrect conclusion */ |
i | 1571 | drivers/block/optcd.c | i = 0; |
i | 1573 | drivers/block/optcd.c | i = 1; |
i | 1577 | drivers/block/optcd.c | return(i); |
i | 1613 | drivers/block/optcd.c | u_char i; |
i | 1669 | drivers/block/optcd.c | i = ISP16_IN(ISP16_DRIVE_SET_PORT) & ISP16_DRIVE_SET_MASK; /* clear some bits */ |
i | 1670 | drivers/block/optcd.c | ISP16_OUT( ISP16_DRIVE_SET_PORT, i|drive_type ); |
i | 1677 | drivers/block/optcd.c | i = ISP16_IN(ISP16_IO_SET_PORT) & ISP16_IO_SET_MASK; /* keep some bits */ |
i | 1678 | drivers/block/optcd.c | ISP16_OUT( ISP16_IO_SET_PORT, i|base_code|irq_code|dma_code ); |
i | 80 | drivers/block/ramdisk.c | int i; |
i | 91 | drivers/block/ramdisk.c | for (i=0; i < length; i++) |
i | 94 | drivers/block/ramdisk.c | for(i=0;i<2;i++) rd_blocksizes[i] = 1024; |
i | 115 | drivers/block/ramdisk.c | int i = 1; |
i | 188 | drivers/block/ramdisk.c | i++; |
i | 739 | drivers/block/sbpcd.c | static void mark_timeout_delay(u_long i) |
i | 747 | drivers/block/sbpcd.c | static void mark_timeout_data(u_long i) |
i | 756 | drivers/block/sbpcd.c | static void mark_timeout_audio(u_long i) |
i | 832 | drivers/block/sbpcd.c | static INLINE u_char swap_nibbles(u_char i) |
i | 834 | drivers/block/sbpcd.c | return ((i<<4)|(i>>4)); |
i | 837 | drivers/block/sbpcd.c | static INLINE u_char byt2bcd(u_char i) |
i | 839 | drivers/block/sbpcd.c | return (((i/10)<<4)+i%10); |
i | 850 | drivers/block/sbpcd.c | int i; |
i | 853 | drivers/block/sbpcd.c | i=(msf.c[2] * CD_SECS + msf.c[1]) * CD_FRAMES + msf.c[0] - CD_MSF_OFFSET; |
i | 854 | drivers/block/sbpcd.c | if (i<0) return (0); |
i | 855 | drivers/block/sbpcd.c | return (i); |
i | 863 | drivers/block/sbpcd.c | int i; |
i | 865 | drivers/block/sbpcd.c | i=(msf[0] * CD_SECS + msf[1]) * CD_FRAMES + msf[2] - CD_MSF_OFFSET; |
i | 866 | drivers/block/sbpcd.c | if (i<0) return (0); |
i | 867 | drivers/block/sbpcd.c | return (i); |
i | 908 | drivers/block/sbpcd.c | int i; |
i | 910 | drivers/block/sbpcd.c | for (i=0;i<10;i++) drvcmd[i]=0; |
i | 916 | drivers/block/sbpcd.c | int i; |
i | 920 | drivers/block/sbpcd.c | for (i=maxtim_data;i!=0;i--) inb(CDi_status); |
i | 923 | drivers/block/sbpcd.c | for (i=maxtim02;i!=0;i--) inb(CDi_status); |
i | 927 | drivers/block/sbpcd.c | for (i=maxtim_data;i!=0;i--) inb(CDi_status); |
i | 934 | drivers/block/sbpcd.c | int i,j; |
i | 937 | drivers/block/sbpcd.c | for(timeout = jiffies + 10*HZ, i=maxtim_data; timeout > jiffies; ) |
i | 939 | drivers/block/sbpcd.c | for ( ;i!=0;i--) |
i | 947 | drivers/block/sbpcd.c | i = 1; |
i | 951 | drivers/block/sbpcd.c | for(i=maxtim16;i!=0;i--) |
i | 959 | drivers/block/sbpcd.c | for(timeout = jiffies + 10*HZ, i=maxtim_data; timeout > jiffies; ) |
i | 961 | drivers/block/sbpcd.c | for ( ;i!=0;i--) |
i | 969 | drivers/block/sbpcd.c | i = 1; |
i | 980 | drivers/block/sbpcd.c | int i; |
i | 982 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 983 | drivers/block/sbpcd.c | if (i&s_not_data_ready) return (0); |
i | 989 | drivers/block/sbpcd.c | int i; |
i | 991 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 992 | drivers/block/sbpcd.c | if (i&s_not_result_ready) return (0); |
i | 998 | drivers/block/sbpcd.c | int i; |
i | 1000 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1001 | drivers/block/sbpcd.c | if (i&s_attention) return (1); |
i | 1009 | drivers/block/sbpcd.c | int i,j,st=0; |
i | 1017 | drivers/block/sbpcd.c | for (i=0;i<response_count;i++) |
i | 1026 | drivers/block/sbpcd.c | msg(DBG_SEQ,"ResponseInfo: not_result_ready (got %d of %d bytes).\n", i, response_count); |
i | 1029 | drivers/block/sbpcd.c | infobuf[i]=inb(CDi_info); |
i | 1033 | drivers/block/sbpcd.c | for (i=0,timeout=jiffies+HZ;i<response_count;i++) |
i | 1047 | drivers/block/sbpcd.c | infobuf[i]=inb(CDi_info); |
i | 1053 | drivers/block/sbpcd.c | infobuf[i++]=inb(CDi_info); |
i | 1055 | drivers/block/sbpcd.c | j=i-response_count; |
i | 1058 | drivers/block/sbpcd.c | for (j=0;j<i;j++) |
i | 1061 | drivers/block/sbpcd.c | msg(DBG_CMD,"ResponseInfo:%s (%d,%d)\n",msgbuf,response_count,i); |
i | 1062 | drivers/block/sbpcd.c | j=response_count-i; |
i | 1064 | drivers/block/sbpcd.c | else return (i); |
i | 1120 | drivers/block/sbpcd.c | int i; |
i | 1128 | drivers/block/sbpcd.c | i=cmd_out_T(); |
i | 1129 | drivers/block/sbpcd.c | if (i>=0) i=infobuf[0]; |
i | 1132 | drivers/block/sbpcd.c | msg(DBG_TEA,"get_state_T error %d\n", i); |
i | 1133 | drivers/block/sbpcd.c | return (i); |
i | 1135 | drivers/block/sbpcd.c | if (i>=0) |
i | 1165 | drivers/block/sbpcd.c | int i,j; |
i | 1181 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1182 | drivers/block/sbpcd.c | if (!(i&s_not_result_ready)) break; |
i | 1195 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1196 | drivers/block/sbpcd.c | if (!(i&s_not_result_ready)) break; |
i | 1211 | drivers/block/sbpcd.c | i=inb(CDi_info); |
i | 1212 | drivers/block/sbpcd.c | msg(DBG_STA,"ResponseStatus: response %02X.\n", i); |
i | 1213 | drivers/block/sbpcd.c | EvaluateStatus(i); |
i | 1217 | drivers/block/sbpcd.c | msg(DBG_STA,"status_bits=%02X, i=%02X\n",D_S[d].status_bits,i); |
i | 1221 | drivers/block/sbpcd.c | return (i); |
i | 1227 | drivers/block/sbpcd.c | int i; |
i | 1235 | drivers/block/sbpcd.c | if (!fam0L_drive) for (i=0;i<6;i++) OUT(CDo_command,0); |
i | 1241 | drivers/block/sbpcd.c | int i; |
i | 1271 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1273 | drivers/block/sbpcd.c | msg(DBG_ERR,"cc_ReadError: cmd_out(CMDx_READ_ERR) returns %d (%02X)\n",i,i); |
i | 1274 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1275 | drivers/block/sbpcd.c | if (fam0_drive) i=1; |
i | 1276 | drivers/block/sbpcd.c | else i=2; |
i | 1277 | drivers/block/sbpcd.c | D_S[d].error_byte=infobuf[i]; |
i | 1278 | drivers/block/sbpcd.c | msg(DBG_ERR,"cc_ReadError: infobuf[%d] is %d (%02X)\n",i,D_S[d].error_byte,D_S[d].error_byte); |
i | 1279 | drivers/block/sbpcd.c | i=sta2err(infobuf[i]); |
i | 1280 | drivers/block/sbpcd.c | return (i); |
i | 1289 | drivers/block/sbpcd.c | int i, j, l, ntries; |
i | 1295 | drivers/block/sbpcd.c | for (i=0;i<10;i++) sprintf(&msgbuf[i*3]," %02X",drvcmd[i]); |
i | 1296 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 1301 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1302 | drivers/block/sbpcd.c | if (!(i&s_not_result_ready)) |
i | 1306 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1310 | drivers/block/sbpcd.c | while (!(i&s_not_result_ready)); |
i | 1312 | drivers/block/sbpcd.c | for (i=0;i<10;i++) OUT(CDo_command,drvcmd[i]); |
i | 1320 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1321 | drivers/block/sbpcd.c | if (!(i&s_not_data_ready)) /* f.e. CMDT_DISKINFO */ |
i | 1331 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1333 | drivers/block/sbpcd.c | while (!(i&s_not_data_ready)); |
i | 1344 | drivers/block/sbpcd.c | i=inb(CDi_data); |
i | 1346 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1348 | drivers/block/sbpcd.c | while (!(i&s_not_data_ready)); |
i | 1353 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1354 | drivers/block/sbpcd.c | if (!(i&s_not_result_ready)) |
i | 1361 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1363 | drivers/block/sbpcd.c | while (!(i&s_not_result_ready)); |
i | 1403 | drivers/block/sbpcd.c | int i=0; |
i | 1409 | drivers/block/sbpcd.c | for (i=0;i<7;i++) |
i | 1410 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", drvcmd[i]); |
i | 1411 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 1414 | drivers/block/sbpcd.c | for (i=0;i<7;i++) OUT(CDo_command,drvcmd[i]); |
i | 1426 | drivers/block/sbpcd.c | else i=ResponseInfo(); |
i | 1427 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1432 | drivers/block/sbpcd.c | i=CDi_stat_loop(); |
i | 1433 | drivers/block/sbpcd.c | if ((i<0)||!(i&s_attention)) return (-8); |
i | 1445 | drivers/block/sbpcd.c | i=ResponseStatus(); |
i | 1447 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1452 | drivers/block/sbpcd.c | if ((flags_cmd_out&f_bit1)&&(i&p_success)) goto LOC_232; |
i | 1461 | drivers/block/sbpcd.c | i=cc_ReadError(); |
i | 1463 | drivers/block/sbpcd.c | msg(DBG_000,"cmd_out: cc_ReadError=%d\n", i); |
i | 1464 | drivers/block/sbpcd.c | return (i); |
i | 1469 | drivers/block/sbpcd.c | int i; |
i | 1516 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1517 | drivers/block/sbpcd.c | return (i); |
i | 1522 | drivers/block/sbpcd.c | int i; |
i | 1550 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1552 | drivers/block/sbpcd.c | return (i); |
i | 1557 | drivers/block/sbpcd.c | int i; |
i | 1584 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1585 | drivers/block/sbpcd.c | return (i); |
i | 1590 | drivers/block/sbpcd.c | int i; |
i | 1596 | drivers/block/sbpcd.c | i=cmd_out_T(); |
i | 1597 | drivers/block/sbpcd.c | return (i); |
i | 1602 | drivers/block/sbpcd.c | int i; |
i | 1616 | drivers/block/sbpcd.c | i=cmd_out_T(); |
i | 1617 | drivers/block/sbpcd.c | return (i); |
i | 1622 | drivers/block/sbpcd.c | int i, j; |
i | 1624 | drivers/block/sbpcd.c | i=cc_get_mode_T(); |
i | 1625 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1626 | drivers/block/sbpcd.c | for (i=0;i<10;i++) |
i | 1627 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 1628 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 1640 | drivers/block/sbpcd.c | i=cc_get_mode_T(); |
i | 1641 | drivers/block/sbpcd.c | for (i=0;i<10;i++) |
i | 1642 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 1643 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 1650 | drivers/block/sbpcd.c | int i; |
i | 1683 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1684 | drivers/block/sbpcd.c | return (i); |
i | 1689 | drivers/block/sbpcd.c | int i; |
i | 1786 | drivers/block/sbpcd.c | i=channel1; |
i | 1788 | drivers/block/sbpcd.c | channel0=i; |
i | 1789 | drivers/block/sbpcd.c | i=volume1; |
i | 1791 | drivers/block/sbpcd.c | volume0=i; |
i | 1839 | drivers/block/sbpcd.c | i=cc_prep_mode_T(); |
i | 1840 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1845 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1846 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1854 | drivers/block/sbpcd.c | int i; |
i | 1860 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1861 | drivers/block/sbpcd.c | return (i); |
i | 1866 | drivers/block/sbpcd.c | int i; |
i | 1876 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1882 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1890 | drivers/block/sbpcd.c | for (i=1;i<10;i++) OUT(CDo_command,0); |
i | 1902 | drivers/block/sbpcd.c | i=GetStatus(); |
i | 1903 | drivers/block/sbpcd.c | if (i<0) return i; |
i | 1911 | drivers/block/sbpcd.c | int i, speed; |
i | 1920 | drivers/block/sbpcd.c | i=cc_SetSpeed(speed,0,0); |
i | 1921 | drivers/block/sbpcd.c | return (i); |
i | 1926 | drivers/block/sbpcd.c | int i; |
i | 1928 | drivers/block/sbpcd.c | i=cc_DriveReset(); |
i | 1929 | drivers/block/sbpcd.c | if (i<0) return (-22); |
i | 1932 | drivers/block/sbpcd.c | i=GetStatus(); |
i | 1933 | drivers/block/sbpcd.c | if ((i<0)&&(i!=-615)) return (-2); /* i!=-615 is from sta2err */ |
i | 1943 | drivers/block/sbpcd.c | i=DiskInfo(); |
i | 1944 | drivers/block/sbpcd.c | if (i<0) return (-23); |
i | 1951 | drivers/block/sbpcd.c | int i, j, n; |
i | 1959 | drivers/block/sbpcd.c | i=msf2blk(pos_audio_start); |
i | 1960 | drivers/block/sbpcd.c | n=msf2blk(pos_audio_end)+1-i; |
i | 1961 | drivers/block/sbpcd.c | drvcmd[1]=(i>>16)&0x00FF; |
i | 1962 | drivers/block/sbpcd.c | drvcmd[2]=(i>>8)&0x00FF; |
i | 1963 | drivers/block/sbpcd.c | drvcmd[3]=i&0x00FF; |
i | 2003 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2004 | drivers/block/sbpcd.c | return (i); |
i | 2009 | drivers/block/sbpcd.c | int i; |
i | 2042 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2043 | drivers/block/sbpcd.c | return (i); |
i | 2048 | drivers/block/sbpcd.c | int i; |
i | 2078 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2080 | drivers/block/sbpcd.c | return (i); |
i | 2086 | drivers/block/sbpcd.c | int i,j; |
i | 2091 | drivers/block/sbpcd.c | i=cc_LockDoor(0); |
i | 2095 | drivers/block/sbpcd.c | while ((i<0)&&(j)); |
i | 2096 | drivers/block/sbpcd.c | if (i<0) |
i | 2106 | drivers/block/sbpcd.c | int i,j; |
i | 2111 | drivers/block/sbpcd.c | i=cc_LockDoor(1); |
i | 2115 | drivers/block/sbpcd.c | while ((i<0)&&(j)); |
i | 2122 | drivers/block/sbpcd.c | i=cc_LockDoor(1); |
i | 2126 | drivers/block/sbpcd.c | while ((i<0)&&(j)); |
i | 2128 | drivers/block/sbpcd.c | return (i); |
i | 2133 | drivers/block/sbpcd.c | int i; |
i | 2164 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2166 | drivers/block/sbpcd.c | return (i); |
i | 2171 | drivers/block/sbpcd.c | int i,j; |
i | 2210 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2211 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2212 | drivers/block/sbpcd.c | for (i=0;i<response_count;i++) |
i | 2214 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 2215 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 2231 | drivers/block/sbpcd.c | if (fam0L_drive) i=5; |
i | 2232 | drivers/block/sbpcd.c | else if (fam12_drive) i=4; |
i | 2233 | drivers/block/sbpcd.c | else if (famT_drive) i=8; |
i | 2234 | drivers/block/sbpcd.c | D_S[d].SubQ_run_tot=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */ |
i | 2235 | drivers/block/sbpcd.c | i=7; |
i | 2236 | drivers/block/sbpcd.c | if (fam0L_drive) i=9; |
i | 2237 | drivers/block/sbpcd.c | else if (fam12_drive) i=7; |
i | 2238 | drivers/block/sbpcd.c | else if (famT_drive) i=4; |
i | 2239 | drivers/block/sbpcd.c | D_S[d].SubQ_run_trk=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */ |
i | 2240 | drivers/block/sbpcd.c | D_S[d].SubQ_whatisthis=infobuf[i+3]; |
i | 2247 | drivers/block/sbpcd.c | int i; |
i | 2271 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2272 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2273 | drivers/block/sbpcd.c | i=0; |
i | 2275 | drivers/block/sbpcd.c | if (fam1_drive) D_S[d].sense_byte=infobuf[i++]; |
i | 2280 | drivers/block/sbpcd.c | i=2; |
i | 2282 | drivers/block/sbpcd.c | D_S[d].frame_size=make16(infobuf[i],infobuf[i+1]); |
i | 2283 | drivers/block/sbpcd.c | for (i=0;i<response_count;i++) |
i | 2284 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 2285 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 2295 | drivers/block/sbpcd.c | int i; |
i | 2333 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2334 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2341 | drivers/block/sbpcd.c | int i; |
i | 2376 | drivers/block/sbpcd.c | i=cc_get_mode_T(); |
i | 2377 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2381 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2382 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2475 | drivers/block/sbpcd.c | int i, j; |
i | 2501 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2502 | drivers/block/sbpcd.c | if (i>=0) break; |
i | 2503 | drivers/block/sbpcd.c | msg(DBG_000,"cc_ReadCapacity: cmd_out: err %d\n", i); |
i | 2506 | drivers/block/sbpcd.c | if (j==0) return (i); |
i | 2517 | drivers/block/sbpcd.c | int i; |
i | 2557 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2558 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2586 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2587 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2599 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2600 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2631 | drivers/block/sbpcd.c | int i; |
i | 2670 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2671 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2675 | drivers/block/sbpcd.c | i=1; |
i | 2677 | drivers/block/sbpcd.c | else if (fam2_drive) i=0; |
i | 2680 | drivers/block/sbpcd.c | i=5; |
i | 2682 | drivers/block/sbpcd.c | D_S[d].TocEnt_ctl_adr=swap_nibbles(infobuf[i++]); |
i | 2685 | drivers/block/sbpcd.c | D_S[d].TocEnt_number=infobuf[i++]; |
i | 2686 | drivers/block/sbpcd.c | D_S[d].TocEnt_format=infobuf[i]; |
i | 2689 | drivers/block/sbpcd.c | if (fam1_drive) i=4; |
i | 2690 | drivers/block/sbpcd.c | else if (fam0L_drive) i=5; |
i | 2691 | drivers/block/sbpcd.c | else if (fam2_drive) i=2; |
i | 2692 | drivers/block/sbpcd.c | else if (famT_drive) i=9; |
i | 2693 | drivers/block/sbpcd.c | D_S[d].TocEnt_address=make32(make16(0,infobuf[i]), |
i | 2694 | drivers/block/sbpcd.c | make16(infobuf[i+1],infobuf[i+2])); |
i | 2704 | drivers/block/sbpcd.c | int i; |
i | 2717 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2718 | drivers/block/sbpcd.c | return (i); |
i | 2723 | drivers/block/sbpcd.c | int i; |
i | 2727 | drivers/block/sbpcd.c | for (i=0;i<7;i++) |
i | 2729 | drivers/block/sbpcd.c | if (fam1_drive) D_S[d].UPC_buf[i]=swap_nibbles(*p++); |
i | 2732 | drivers/block/sbpcd.c | D_S[d].UPC_buf[i]=((*p++)<<4)&0xFF; |
i | 2733 | drivers/block/sbpcd.c | D_S[d].UPC_buf[i] |= *p++; |
i | 2750 | drivers/block/sbpcd.c | int i; |
i | 2797 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2798 | drivers/block/sbpcd.c | if (i<0) |
i | 2800 | drivers/block/sbpcd.c | msg(DBG_000,"cc_ReadUPC cmd_out: err %d\n", i); |
i | 2801 | drivers/block/sbpcd.c | return (i); |
i | 2807 | drivers/block/sbpcd.c | i=cc_ReadPacket(); |
i | 2808 | drivers/block/sbpcd.c | if (i<0) |
i | 2810 | drivers/block/sbpcd.c | msg(DBG_000,"cc_ReadUPC ReadPacket: err %d\n", i); |
i | 2811 | drivers/block/sbpcd.c | return (i); |
i | 2817 | drivers/block/sbpcd.c | for (i=0;i<(fam1_drive?8:16);i++) |
i | 2820 | drivers/block/sbpcd.c | checksum |= infobuf[i]; |
i | 2822 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 2824 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 2831 | drivers/block/sbpcd.c | if (fam1_drive) i=0; |
i | 2832 | drivers/block/sbpcd.c | else i=2; |
i | 2833 | drivers/block/sbpcd.c | if ((infobuf[i]&0x80)!=0) |
i | 2835 | drivers/block/sbpcd.c | convert_UPC(&infobuf[i]); |
i | 2838 | drivers/block/sbpcd.c | for (i=0;i<7;i++) |
i | 2839 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", D_S[d].UPC_buf[i]); |
i | 2840 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " (%02X)", D_S[d].UPC_ctl_adr); |
i | 2841 | drivers/block/sbpcd.c | msgbuf[i*3+5]=0; |
i | 2849 | drivers/block/sbpcd.c | int i; |
i | 2861 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2862 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2877 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2878 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2890 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2891 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2901 | drivers/block/sbpcd.c | for (i=0;i<response_count;i++) |
i | 2902 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 2903 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 2917 | drivers/block/sbpcd.c | int i; |
i | 2937 | drivers/block/sbpcd.c | i=cmd_out(); /* which buffer to use? */ |
i | 2938 | drivers/block/sbpcd.c | return (i); |
i | 2944 | drivers/block/sbpcd.c | int i=0; |
i | 2949 | drivers/block/sbpcd.c | for (i=0;i<=1000;i++) printk("."); |
i | 2963 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 2992 | drivers/block/sbpcd.c | int i; |
i | 3000 | drivers/block/sbpcd.c | i=do_cmd(f_putcmd|f_lopsta|f_getsta|f_ResponseStatus); |
i | 3005 | drivers/block/sbpcd.c | i=do_cmd(f_putcmd); |
i | 3008 | drivers/block/sbpcd.c | return (i); |
i | 3014 | drivers/block/sbpcd.c | int i; |
i | 3020 | drivers/block/sbpcd.c | for (i=0;i<12;i++) |
i | 3021 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 3022 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 3024 | drivers/block/sbpcd.c | for (i=0;i<12;i++) |
i | 3025 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %c ", infobuf[i]); |
i | 3026 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 3032 | drivers/block/sbpcd.c | int i, j, l; |
i | 3045 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 3046 | drivers/block/sbpcd.c | if (i<0) msg(DBG_INI,"CMD0_READERR returns %d (ok anyway).\n",i); |
i | 3049 | drivers/block/sbpcd.c | for (i=0;i<12;i++) infobuf[i]=0; |
i | 3053 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 3054 | drivers/block/sbpcd.c | if (i<-1) msg(DBG_INI,"CMD0_READ_VER returns %d\n",i); |
i | 3055 | drivers/block/sbpcd.c | if (i==-11) teac_possible++; |
i | 3057 | drivers/block/sbpcd.c | for (i=0;i<12;i++) j+=infobuf[i]; |
i | 3060 | drivers/block/sbpcd.c | for (i=0;i<12;i++) |
i | 3061 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 3062 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 3065 | drivers/block/sbpcd.c | for (i=0;i<12;i++) |
i | 3066 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %c ", infobuf[i]); |
i | 3067 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 3071 | drivers/block/sbpcd.c | for (i=0;i<4;i++) if (infobuf[i]!=family1[i]) break; |
i | 3072 | drivers/block/sbpcd.c | if (i==4) |
i | 3078 | drivers/block/sbpcd.c | D_S[d].drive_model[4]=infobuf[i++]; |
i | 3079 | drivers/block/sbpcd.c | D_S[d].drive_model[5]=infobuf[i++]; |
i | 3085 | drivers/block/sbpcd.c | for (i=0;i<8;i++) if (infobuf[i]!=family0[i]) break; |
i | 3086 | drivers/block/sbpcd.c | if (i==8) |
i | 3100 | drivers/block/sbpcd.c | for (i=0;i<8;i++) if (infobuf[i]!=familyL[i]) break; |
i | 3101 | drivers/block/sbpcd.c | if (i==8) |
i | 3116 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 3117 | drivers/block/sbpcd.c | if (i<0) msg(DBG_INI,"CMD2_READERR returns %d (ok anyway).\n",i); |
i | 3118 | drivers/block/sbpcd.c | if (i<0) msg(DBG_000,"CMD2_READERR returns %d (ok anyway).\n",i); |
i | 3121 | drivers/block/sbpcd.c | for (i=0;i<12;i++) infobuf[i]=0; |
i | 3131 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 3132 | drivers/block/sbpcd.c | if (i<0) msg(DBG_INI,"CMD2_READ_VER returns %d\n",i); |
i | 3133 | drivers/block/sbpcd.c | if (i==-7) teac_possible++; |
i | 3135 | drivers/block/sbpcd.c | for (i=0;i<12;i++) j+=infobuf[i]; |
i | 3138 | drivers/block/sbpcd.c | for (i=0;i<12;i++) |
i | 3139 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 3140 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 3142 | drivers/block/sbpcd.c | for (i=0;i<12;i++) |
i | 3143 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %c ", infobuf[i]); |
i | 3144 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 3147 | drivers/block/sbpcd.c | if (i>=0) |
i | 3149 | drivers/block/sbpcd.c | for (i=0;i<5;i++) if (infobuf[i]!=family2[i]) break; |
i | 3150 | drivers/block/sbpcd.c | if (i==5) |
i | 3157 | drivers/block/sbpcd.c | D_S[d].drive_model[5]=infobuf[i++]; |
i | 3158 | drivers/block/sbpcd.c | D_S[d].drive_model[6]=infobuf[i++]; |
i | 3179 | drivers/block/sbpcd.c | for (i=0;i<9;i++) OUT(CDo_command,0); |
i | 3184 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 3185 | drivers/block/sbpcd.c | msg(DBG_TEA,"TEAC CDi_status: %02X.\n",i); |
i | 3187 | drivers/block/sbpcd.c | if (i&s_not_result_ready) continue; /* drive not present or ready */ |
i | 3189 | drivers/block/sbpcd.c | i=inb(CDi_info); |
i | 3190 | drivers/block/sbpcd.c | msg(DBG_TEA,"TEAC CDi_info: %02X.\n",i); |
i | 3191 | drivers/block/sbpcd.c | if (i==0x55) break; /* drive found */ |
i | 3193 | drivers/block/sbpcd.c | if (i==0x55) break; /* drive found */ |
i | 3195 | drivers/block/sbpcd.c | if (i==0x55) /* drive found */ |
i | 3203 | drivers/block/sbpcd.c | for (i=0;i<12;i++) infobuf[i]=0; |
i | 3204 | drivers/block/sbpcd.c | i=cmd_out_T(); |
i | 3205 | drivers/block/sbpcd.c | if (i!=0) msg(DBG_TEA,"cmd_out_T(CMDT_READ_VER) returns %d.\n",i); |
i | 3206 | drivers/block/sbpcd.c | for (i=1;i<6;i++) if (infobuf[i]!=familyT[i-1]) break; |
i | 3207 | drivers/block/sbpcd.c | if (i==6) |
i | 3224 | drivers/block/sbpcd.c | for (j=0;j<4;j++) D_S[d].firmware_version[j]=infobuf[i+j]; |
i | 3294 | drivers/block/sbpcd.c | static void switch_drive(int i) |
i | 3296 | drivers/block/sbpcd.c | d=i; |
i | 3298 | drivers/block/sbpcd.c | msg(DBG_DID,"drive %d (ID=%d) activated.\n", i, D_S[d].drv_id); |
i | 3310 | drivers/block/sbpcd.c | int i, j, k; |
i | 3323 | drivers/block/sbpcd.c | for (i=10;i>0;i--) OUT(port+0,0); |
i | 3327 | drivers/block/sbpcd.c | for (i=10000;i>0;i--) |
i | 3334 | drivers/block/sbpcd.c | for (i=0;i<N_RESPO;i++) |
i | 3335 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", response[i]); |
i | 3336 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 3339 | drivers/block/sbpcd.c | for (i=10;i>0;i--) OUT(port+0,0); |
i | 3343 | drivers/block/sbpcd.c | for (i=10000;i>0;i--) |
i | 3350 | drivers/block/sbpcd.c | for (i=0;i<N_RESPO;i++) |
i | 3351 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", response[i]); |
i | 3352 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 3363 | drivers/block/sbpcd.c | for (i=10;i>0;i--) OUT(port+0,0); |
i | 3367 | drivers/block/sbpcd.c | for (i=1000000;i>0;i--) |
i | 3374 | drivers/block/sbpcd.c | for (i=0;i<N_RESPO;i++) |
i | 3375 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", response[i]); |
i | 3376 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 3380 | drivers/block/sbpcd.c | for (i=10;i>0;i--) OUT(port+0,0); |
i | 3384 | drivers/block/sbpcd.c | for (i=1000000;i>0;i--) |
i | 3391 | drivers/block/sbpcd.c | for (i=0;i<N_RESPO;i++) |
i | 3392 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", response[i]); |
i | 3393 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 3412 | drivers/block/sbpcd.c | int i, j; |
i | 3424 | drivers/block/sbpcd.c | i=check_version(); |
i | 3425 | drivers/block/sbpcd.c | if (i<0) msg(DBG_INI,"check_version returns %d.\n",i); |
i | 3568 | drivers/block/sbpcd.c | int i; |
i | 3570 | drivers/block/sbpcd.c | i=msf2blk(D_S[d].pos_audio_end)-1; |
i | 3571 | drivers/block/sbpcd.c | if (i<0) return (-1); |
i | 3572 | drivers/block/sbpcd.c | i=cc_Seek(i,0); |
i | 3573 | drivers/block/sbpcd.c | return (i); |
i | 3579 | drivers/block/sbpcd.c | int i, j; |
i | 3584 | drivers/block/sbpcd.c | i=cc_ReadTocEntry(j); |
i | 3585 | drivers/block/sbpcd.c | if (i<0) |
i | 3587 | drivers/block/sbpcd.c | msg(DBG_INF,"cc_ReadTocEntry(%d) returns %d.\n",j,i); |
i | 3588 | drivers/block/sbpcd.c | return (i); |
i | 3610 | drivers/block/sbpcd.c | int i, j; |
i | 3620 | drivers/block/sbpcd.c | i=SetSpeed(); |
i | 3621 | drivers/block/sbpcd.c | if (i<0) |
i | 3623 | drivers/block/sbpcd.c | msg(DBG_INF,"DiskInfo: SetSpeed returns %d\n", i); |
i | 3626 | drivers/block/sbpcd.c | i=cc_ModeSense(); |
i | 3627 | drivers/block/sbpcd.c | if (i<0) |
i | 3629 | drivers/block/sbpcd.c | msg(DBG_INF,"DiskInfo: cc_ModeSense returns %d\n", i); |
i | 3632 | drivers/block/sbpcd.c | i=cc_ReadCapacity(); |
i | 3633 | drivers/block/sbpcd.c | if (i>=0) break; |
i | 3634 | drivers/block/sbpcd.c | msg(DBG_INF,"DiskInfo: ReadCapacity #%d returns %d\n", j, i); |
i | 3635 | drivers/block/sbpcd.c | i=cc_DriveReset(); |
i | 3639 | drivers/block/sbpcd.c | i=cc_ReadTocDescr(); |
i | 3640 | drivers/block/sbpcd.c | if (i<0) |
i | 3642 | drivers/block/sbpcd.c | msg(DBG_INF,"DiskInfo: ReadTocDescr returns %d\n", i); |
i | 3643 | drivers/block/sbpcd.c | return (i); |
i | 3645 | drivers/block/sbpcd.c | i=ReadToC(); |
i | 3646 | drivers/block/sbpcd.c | if (i<0) |
i | 3648 | drivers/block/sbpcd.c | msg(DBG_INF,"DiskInfo: ReadToC returns %d\n", i); |
i | 3649 | drivers/block/sbpcd.c | return (i); |
i | 3651 | drivers/block/sbpcd.c | i=cc_CheckMultiSession(); |
i | 3652 | drivers/block/sbpcd.c | if (i<0) |
i | 3654 | drivers/block/sbpcd.c | msg(DBG_INF,"DiskInfo: cc_CheckMultiSession returns %d\n", i); |
i | 3655 | drivers/block/sbpcd.c | return (i); |
i | 3659 | drivers/block/sbpcd.c | i=cc_ReadTocEntry(D_S[d].n_first_track); |
i | 3660 | drivers/block/sbpcd.c | if (i<0) |
i | 3662 | drivers/block/sbpcd.c | msg(DBG_INF,"DiskInfo: cc_ReadTocEntry(1) returns %d\n", i); |
i | 3663 | drivers/block/sbpcd.c | return (i); |
i | 3665 | drivers/block/sbpcd.c | i=cc_ReadUPC(); |
i | 3666 | drivers/block/sbpcd.c | if (i<0) msg(DBG_INF,"DiskInfo: cc_ReadUPC returns %d\n", i); |
i | 3685 | drivers/block/sbpcd.c | int i; |
i | 3689 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 3690 | drivers/block/sbpcd.c | if (i&s_attention) GetStatus(); |
i | 3701 | drivers/block/sbpcd.c | i=check_allowed1(func,subfunc); |
i | 3702 | drivers/block/sbpcd.c | if (i<0) return (-2); |
i | 3706 | drivers/block/sbpcd.c | i=check_allowed3(func,subfunc); |
i | 3707 | drivers/block/sbpcd.c | if (i<0) |
i | 3720 | drivers/block/sbpcd.c | i=check_allowed1(func,subfunc); |
i | 3721 | drivers/block/sbpcd.c | if (i<0) return (-2); |
i | 3729 | drivers/block/sbpcd.c | i=check_allowed2(func,subfunc); |
i | 3730 | drivers/block/sbpcd.c | if (i<0) return (-2); |
i | 3740 | drivers/block/sbpcd.c | i=DiskInfo(); |
i | 3741 | drivers/block/sbpcd.c | if (i<0) |
i | 3745 | drivers/block/sbpcd.c | i=check_allowed1(func,subfunc); |
i | 3746 | drivers/block/sbpcd.c | if (i<0) return (-2); |
i | 3809 | drivers/block/sbpcd.c | int i, st; |
i | 3814 | drivers/block/sbpcd.c | i=MINOR(inode->i_rdev); |
i | 3815 | drivers/block/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1)) |
i | 3820 | drivers/block/sbpcd.c | if (d!=i) switch_drive(i); |
i | 3828 | drivers/block/sbpcd.c | i=DiskInfo(); |
i | 3829 | drivers/block/sbpcd.c | if (i<0) return (-EIO); /* error reading TOC */ |
i | 3833 | drivers/block/sbpcd.c | msg(DBG_IO2,"ioctl: device %d, request %04X\n",i,cmd); |
i | 3838 | drivers/block/sbpcd.c | i=sbpcd_dbg_ioctl(arg,1); |
i | 3839 | drivers/block/sbpcd.c | return (i); |
i | 3850 | drivers/block/sbpcd.c | if (famL_drive) i=cc_ReadSubQ(); |
i | 3851 | drivers/block/sbpcd.c | else i=cc_Pause_Resume(1); |
i | 3852 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3853 | drivers/block/sbpcd.c | if (famL_drive) i=cc_Pause_Resume(1); |
i | 3854 | drivers/block/sbpcd.c | else i=cc_ReadSubQ(); |
i | 3855 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3860 | drivers/block/sbpcd.c | i=cc_Seek(D_S[d].pos_audio_start,1); |
i | 3861 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3874 | drivers/block/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start, |
i | 3876 | drivers/block/sbpcd.c | else i=cc_Pause_Resume(3); |
i | 3877 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3885 | drivers/block/sbpcd.c | i=cc_Pause_Resume(1); |
i | 3886 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3887 | drivers/block/sbpcd.c | i=cc_ReadSubQ(); |
i | 3888 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3890 | drivers/block/sbpcd.c | i=cc_Seek(D_S[d].pos_audio_start,1); |
i | 3904 | drivers/block/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
i | 3905 | drivers/block/sbpcd.c | msg(DBG_IOC,"ioctl: cc_PlayAudio returns %d\n",i); |
i | 3907 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3935 | drivers/block/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
i | 3937 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3956 | drivers/block/sbpcd.c | i=tocentry.cdte_track; |
i | 3957 | drivers/block/sbpcd.c | if (i==CDROM_LEADOUT) i=D_S[d].n_last_track+1; |
i | 3958 | drivers/block/sbpcd.c | else if (i<D_S[d].n_first_track||i>D_S[d].n_last_track) return (-EINVAL); |
i | 3959 | drivers/block/sbpcd.c | tocentry.cdte_adr=D_S[d].TocBuffer[i].ctl_adr&0x0F; |
i | 3960 | drivers/block/sbpcd.c | tocentry.cdte_ctrl=(D_S[d].TocBuffer[i].ctl_adr>>4)&0x0F; |
i | 3961 | drivers/block/sbpcd.c | tocentry.cdte_datamode=D_S[d].TocBuffer[i].format; |
i | 3964 | drivers/block/sbpcd.c | tocentry.cdte_addr.msf.minute=(D_S[d].TocBuffer[i].address>>16)&0x00FF; |
i | 3965 | drivers/block/sbpcd.c | tocentry.cdte_addr.msf.second=(D_S[d].TocBuffer[i].address>>8)&0x00FF; |
i | 3966 | drivers/block/sbpcd.c | tocentry.cdte_addr.msf.frame=D_S[d].TocBuffer[i].address&0x00FF; |
i | 3969 | drivers/block/sbpcd.c | tocentry.cdte_addr.lba=msf2blk(D_S[d].TocBuffer[i].address); |
i | 3978 | drivers/block/sbpcd.c | i=DriveReset(); |
i | 3980 | drivers/block/sbpcd.c | return (i); |
i | 3984 | drivers/block/sbpcd.c | i=cc_Pause_Resume(1); |
i | 3986 | drivers/block/sbpcd.c | return (i); |
i | 3998 | drivers/block/sbpcd.c | i=UnLockDoor(); |
i | 4000 | drivers/block/sbpcd.c | i=cc_SpinDown(); |
i | 4001 | drivers/block/sbpcd.c | msg(DBG_IOX,"ioctl: cc_SpinDown returned %d.\n", i); |
i | 4002 | drivers/block/sbpcd.c | msg(DBG_TEA,"ioctl: cc_SpinDown returned %d.\n", i); |
i | 4003 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 4024 | drivers/block/sbpcd.c | i=cc_SetVolume(); |
i | 4042 | drivers/block/sbpcd.c | if ((st_spinning)||(!subq_valid)) { i=cc_ReadSubQ(); |
i | 4043 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 4124 | drivers/block/sbpcd.c | int i=0, j=0, frame, block; |
i | 4140 | drivers/block/sbpcd.c | i=verify_area(VERIFY_READ, (void *) arg, sizeof(struct cdrom_read_audio)); |
i | 4141 | drivers/block/sbpcd.c | if (i) return (i); |
i | 4144 | drivers/block/sbpcd.c | i=verify_area(VERIFY_WRITE, read_audio.buf, |
i | 4146 | drivers/block/sbpcd.c | if (i) return (i); |
i | 4153 | drivers/block/sbpcd.c | i=cc_SetSpeed(speed_150,0,0); |
i | 4154 | drivers/block/sbpcd.c | if (i) msg(DBG_AUD,"read_audio: SetSpeed error %d\n", i); |
i | 4209 | drivers/block/sbpcd.c | for (i=0;i<7;i++) OUT(CDo_command,drvcmd[i]); |
i | 4256 | drivers/block/sbpcd.c | i=cc_DriveReset(); /* ugly fix to prevent a hang */ |
i | 4258 | drivers/block/sbpcd.c | i=cc_ReadError(); |
i | 4264 | drivers/block/sbpcd.c | i=maxtim_data; |
i | 4267 | drivers/block/sbpcd.c | for ( ;i!=0;i--) |
i | 4274 | drivers/block/sbpcd.c | if (i != 0 || timeout <= jiffies) break; |
i | 4276 | drivers/block/sbpcd.c | i = 1; |
i | 4278 | drivers/block/sbpcd.c | if (i==0) msg(DBG_AUD,"read_audio: STATUS TIMEOUT AFTER READ"); |
i | 4282 | drivers/block/sbpcd.c | i=cc_DriveReset(); /* ugly fix to prevent a hang */ |
i | 4289 | drivers/block/sbpcd.c | i=ResponseStatus(); /* builds status_bits, returns orig. status (old) or faked p_success (new) */ |
i | 4290 | drivers/block/sbpcd.c | if (i<0) { msg(DBG_AUD, |
i | 4296 | drivers/block/sbpcd.c | while ((fam0L_drive)&&(!st_check)&&(!(i&p_success))); |
i | 4299 | drivers/block/sbpcd.c | i=cc_ReadError(); |
i | 4300 | drivers/block/sbpcd.c | msg(DBG_AUD,"read_audio: cc_ReadError was necessary after read: %02X\n",i); |
i | 4380 | drivers/block/sbpcd.c | int i, status_tries, data_tries; |
i | 4395 | drivers/block/sbpcd.c | i = MINOR(CURRENT->rq_dev); |
i | 4396 | drivers/block/sbpcd.c | if ( (i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1)) |
i | 4405 | drivers/block/sbpcd.c | if (D_S[i].audio_state==audio_playing) goto err_done; |
i | 4406 | drivers/block/sbpcd.c | if (d!=i) switch_drive(i); |
i | 4425 | drivers/block/sbpcd.c | i=prepare(0,0); /* at moment not really a hassle check, but ... */ |
i | 4426 | drivers/block/sbpcd.c | if (i!=0) |
i | 4427 | drivers/block/sbpcd.c | msg(DBG_INF,"\"prepare\" tells error %d -- ignored\n", i); |
i | 4471 | drivers/block/sbpcd.c | int i; |
i | 4550 | drivers/block/sbpcd.c | for (i=0;i<7;i++) OUT(CDo_command,drvcmd[i]); |
i | 4551 | drivers/block/sbpcd.c | if (famT_drive) for (i=7;i<10;i++) OUT(CDo_command,drvcmd[i]); |
i | 4556 | drivers/block/sbpcd.c | i=cmd_out(); /* immediate return here - read data "ourselves" */ |
i | 4557 | drivers/block/sbpcd.c | if (i<0) msg(DBG_INF,"error giving READ command: %0d\n", i); |
i | 4568 | drivers/block/sbpcd.c | int i=0, j=0, l, frame; |
i | 4688 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 4689 | drivers/block/sbpcd.c | if (!(i&s_not_data_ready)) |
i | 4695 | drivers/block/sbpcd.c | i=inb(CDi_data); |
i | 4697 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 4699 | drivers/block/sbpcd.c | while (!(i&s_not_data_ready)); |
i | 4702 | drivers/block/sbpcd.c | if (!(i&s_not_result_ready)) |
i | 4709 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 4711 | drivers/block/sbpcd.c | while (!(i&s_not_result_ready)); |
i | 4755 | drivers/block/sbpcd.c | i=cc_DriveReset(); /* ugly fix to prevent a hang */ |
i | 4757 | drivers/block/sbpcd.c | i=cc_ReadError(); |
i | 4765 | drivers/block/sbpcd.c | i=maxtim_data; |
i | 4768 | drivers/block/sbpcd.c | for ( ;i!=0;i--) |
i | 4775 | drivers/block/sbpcd.c | if (i != 0 || timeout <= jiffies) break; |
i | 4777 | drivers/block/sbpcd.c | i = 1; |
i | 4779 | drivers/block/sbpcd.c | if (i==0) msg(DBG_INF,"status timeout after READ.\n"); |
i | 4783 | drivers/block/sbpcd.c | i=cc_DriveReset(); /* ugly fix to prevent a hang */ |
i | 4797 | drivers/block/sbpcd.c | if (famT_drive) msg(DBG_TE2, "================before ResponseStatus=================.\n", i); |
i | 4799 | drivers/block/sbpcd.c | i=ResponseStatus(); /* builds status_bits, returns orig. status (old) or faked p_success (new) */ |
i | 4801 | drivers/block/sbpcd.c | if (famT_drive) msg(DBG_TE2, "================ResponseStatus: %d=================.\n", i); |
i | 4803 | drivers/block/sbpcd.c | if (i<0) |
i | 4809 | drivers/block/sbpcd.c | while ((fam0L_drive)&&(!st_check)&&(!(i&p_success))); |
i | 4812 | drivers/block/sbpcd.c | i=cc_ReadError(); |
i | 4813 | drivers/block/sbpcd.c | msg(DBG_INF,"cc_ReadError was necessary after read: %d\n",i); |
i | 4840 | drivers/block/sbpcd.c | int i; |
i | 4842 | drivers/block/sbpcd.c | i = MINOR(ip->i_rdev); |
i | 4843 | drivers/block/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1)) |
i | 4851 | drivers/block/sbpcd.c | switch_drive(i); |
i | 4853 | drivers/block/sbpcd.c | i=cc_ReadError(); |
i | 4856 | drivers/block/sbpcd.c | i=ResponseStatus(); |
i | 4857 | drivers/block/sbpcd.c | if (famT_drive&&(i<0)) |
i | 4860 | drivers/block/sbpcd.c | i=ResponseStatus(); |
i | 4861 | drivers/block/sbpcd.c | i=ResponseStatus(); |
i | 4863 | drivers/block/sbpcd.c | if (i<0) |
i | 4865 | drivers/block/sbpcd.c | msg(DBG_INF,"sbpcd_open: ResponseStatus timed out (%d).\n",i); |
i | 4868 | drivers/block/sbpcd.c | if (famT_drive) msg(DBG_TE2,"sbpcd_open: ResponseStatus=%02X\n", i); |
i | 4875 | drivers/block/sbpcd.c | i=ResponseStatus(); |
i | 4884 | drivers/block/sbpcd.c | i=ResponseStatus(); |
i | 4894 | drivers/block/sbpcd.c | i=UnLockDoor(); |
i | 4908 | drivers/block/sbpcd.c | i=LockDoor(); |
i | 4911 | drivers/block/sbpcd.c | i=DiskInfo(); |
i | 4925 | drivers/block/sbpcd.c | int i; |
i | 4927 | drivers/block/sbpcd.c | i = MINOR(ip->i_rdev); |
i | 4928 | drivers/block/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1)) |
i | 4933 | drivers/block/sbpcd.c | switch_drive(i); |
i | 4949 | drivers/block/sbpcd.c | i=UnLockDoor(); |
i | 5057 | drivers/block/sbpcd.c | int i; |
i | 5063 | drivers/block/sbpcd.c | i=inb(SPEA_REG_1); |
i | 5064 | drivers/block/sbpcd.c | if (i!=0x0F) |
i | 5085 | drivers/block/sbpcd.c | i=(inb(SPEA_REG_2)&0xCF)|n_ports; |
i | 5086 | drivers/block/sbpcd.c | OUT(SPEA_REG_2,i); |
i | 5102 | drivers/block/sbpcd.c | int i=0, j=0; |
i | 5149 | drivers/block/sbpcd.c | i=config_spea(); |
i | 5150 | drivers/block/sbpcd.c | if (i<0) continue; |
i | 5155 | drivers/block/sbpcd.c | i=check_drives(); |
i | 5157 | drivers/block/sbpcd.c | if (i>=0) break; /* drive found */ |
i | 5205 | drivers/block/sbpcd.c | i=ResponseStatus(); /* returns orig. status or p_busy_new */ |
i | 5206 | drivers/block/sbpcd.c | if (famT_drive) i=ResponseStatus(); /* returns orig. status or p_busy_new */ |
i | 5207 | drivers/block/sbpcd.c | if (i<0) |
i | 5208 | drivers/block/sbpcd.c | if (i!=-402) |
i | 5209 | drivers/block/sbpcd.c | msg(DBG_INF,"init: ResponseStatus returns %d.\n",i); |
i | 5214 | drivers/block/sbpcd.c | i=cc_ReadError(); |
i | 5215 | drivers/block/sbpcd.c | msg(DBG_INI,"init: cc_ReadError returns %d\n",i); |
i | 5218 | drivers/block/sbpcd.c | msg(DBG_INI,"init: first GetStatus: %d\n",i); |
i | 5226 | drivers/block/sbpcd.c | i=GetStatus(); |
i | 5227 | drivers/block/sbpcd.c | msg(DBG_INI,"init: second GetStatus: %02X\n",i); |
i | 5231 | drivers/block/sbpcd.c | if (i<0) break; |
i | 5236 | drivers/block/sbpcd.c | i=SetSpeed(); |
i | 5237 | drivers/block/sbpcd.c | if (i>=0) D_S[d].CD_changed=1; |
i | 5366 | drivers/block/sbpcd.c | int i, st; |
i | 5371 | drivers/block/sbpcd.c | i=MINOR(full_dev); |
i | 5372 | drivers/block/sbpcd.c | if ( (i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1) ) |
i | 5378 | drivers/block/sbpcd.c | switch_drive(i); |
i | 314 | drivers/block/sjcd.c | int i; |
i | 315 | drivers/block/sjcd.c | for( i = 200; i-- && inb( SJCDPORT( 1 ) ) != 0x09; ); |
i | 316 | drivers/block/sjcd.c | if( i > 0 ) *resp++ = ( unsigned char )inb( SJCDPORT( 0 ) ); |
i | 397 | drivers/block/sjcd.c | int i; |
i | 404 | drivers/block/sjcd.c | for( i = 200; i-- && ( sjcd_check_status() == 0 ); ); |
i | 405 | drivers/block/sjcd.c | if( i < 0 ){ |
i | 411 | drivers/block/sjcd.c | else i = 0; |
i | 413 | drivers/block/sjcd.c | return( i ); |
i | 453 | drivers/block/sjcd.c | int i; |
i | 520 | drivers/block/sjcd.c | for( i = sjcd_first_track_no; i <= sjcd_last_track_no; i++ ){ |
i | 524 | drivers/block/sjcd.c | sjcd_send_1_cmd( SCMD_GET_DISK_INFO, bin2bcd( i ) ); |
i | 538 | drivers/block/sjcd.c | if( sjcd_load_response( &sjcd_table_of_contents[ i ], |
i | 540 | drivers/block/sjcd.c | printk( "cannot load info for %d track\n", i ); |
i | 544 | drivers/block/sjcd.c | printk( "get info %d failed\n", i ); |
i | 900 | drivers/block/sjcd.c | int i; |
i | 901 | drivers/block/sjcd.c | for( i = 0; i < SJCD_BUF_SIZ; sjcd_buf_bn[ i++ ] = -1 ); |
i | 920 | drivers/block/sjcd.c | int i, bn = CURRENT->sector / 4; |
i | 921 | drivers/block/sjcd.c | for( i = 0; i < SJCD_BUF_SIZ && sjcd_buf_bn[ i ] != bn; i++ ); |
i | 922 | drivers/block/sjcd.c | if( i < SJCD_BUF_SIZ ){ |
i | 923 | drivers/block/sjcd.c | int offs = ( i * 4 + ( CURRENT->sector & 3 ) ) * 512; |
i | 925 | drivers/block/sjcd.c | if( sjcd_buf_out != i ){ |
i | 926 | drivers/block/sjcd.c | sjcd_buf_out = i; |
i | 927 | drivers/block/sjcd.c | if( sjcd_buf_bn[ i ] != bn ){ |
i | 1186 | drivers/block/sjcd.c | int i; |
i | 1193 | drivers/block/sjcd.c | for( i = 2048; i--; ( void )inb( SJCDPORT( 2 ) ) ); |
i | 1357 | drivers/block/sjcd.c | int i; |
i | 1394 | drivers/block/sjcd.c | for( i = 100; i > 0; --i ) |
i | 1396 | drivers/block/sjcd.c | if( i == 0 ){ |
i | 1474 | drivers/block/sjcd.c | short i = -1; |
i | 1493 | drivers/block/sjcd.c | i = 0; |
i | 1497 | drivers/block/sjcd.c | i = 1; |
i | 1504 | drivers/block/sjcd.c | return(i); /* -> not detected: possibly incorrect conclusion */ |
i | 1508 | drivers/block/sjcd.c | i = 0; |
i | 1510 | drivers/block/sjcd.c | i = 1; |
i | 1514 | drivers/block/sjcd.c | return(i); |
i | 1550 | drivers/block/sjcd.c | u_char i; |
i | 1606 | drivers/block/sjcd.c | i = ISP16_IN(ISP16_DRIVE_SET_PORT) & ISP16_DRIVE_SET_MASK; /* clear some bits */ |
i | 1607 | drivers/block/sjcd.c | ISP16_OUT( ISP16_DRIVE_SET_PORT, i|drive_type ); |
i | 1614 | drivers/block/sjcd.c | i = ISP16_IN(ISP16_IO_SET_PORT) & ISP16_IO_SET_MASK; /* keep some bits */ |
i | 1615 | drivers/block/sjcd.c | ISP16_OUT( ISP16_IO_SET_PORT, i|base_code|irq_code|dma_code ); |
i | 548 | drivers/block/sonycd535.c | int i; |
i | 551 | drivers/block/sonycd535.c | for (i = 0; i < n_cmd; i++) |
i | 552 | drivers/block/sonycd535.c | outb(cmd[i], command_reg); |
i | 574 | drivers/block/sonycd535.c | for (i = 0; 0 < n_response; n_response--, i++) |
i | 575 | drivers/block/sonycd535.c | if (read_result_reg(response + i) != 0) |
i | 620 | drivers/block/sonycd535.c | int i; |
i | 637 | drivers/block/sonycd535.c | for (i = 0; i < 6; i++) |
i | 638 | drivers/block/sonycd535.c | cmd_buff[i + 1] = params[i]; |
i | 639 | drivers/block/sonycd535.c | for (i = 0; i < 7; i++) |
i | 640 | drivers/block/sonycd535.c | outb(cmd_buff[i], command_reg); |
i | 657 | drivers/block/sonycd535.c | for (i = 0; i < block_size; i++) |
i | 668 | drivers/block/sonycd535.c | if ((i = read_exec_status(status)) != 0) |
i | 669 | drivers/block/sonycd535.c | return i; |
i | 687 | drivers/block/sonycd535.c | int i, j, n_tracks, track_no; |
i | 702 | drivers/block/sonycd535.c | for (i = 0; i < n_tracks; i++) { |
i | 711 | drivers/block/sonycd535.c | memcpy(toc->tracks + i, track_address_buffer, 5); |
i | 994 | drivers/block/sonycd535.c | int i; |
i | 1000 | drivers/block/sonycd535.c | for (i = 0; i < num_tracks; i++) { |
i | 1001 | drivers/block/sonycd535.c | if (sony_toc->tracks[i].track == track) { |
i | 1002 | drivers/block/sonycd535.c | return i; |
i | 1116 | drivers/block/sonycd535.c | int i; |
i | 1216 | drivers/block/sonycd535.c | for (i = 0; i < 3; i++) { |
i | 1217 | drivers/block/sonycd535.c | cmd_buff[2 + i] = int_to_bcd(params[i]); |
i | 1218 | drivers/block/sonycd535.c | cmd_buff[7 + i] = int_to_bcd(params[i + 3]); |
i | 1537 | drivers/block/sonycd535.c | int i; |
i | 1677 | drivers/block/sonycd535.c | for (i = 0; i < sony_buffer_sectors; i++) { |
i | 1678 | drivers/block/sonycd535.c | sony_buffer[i] = (Byte *)kmalloc(2048, GFP_KERNEL); |
i | 1679 | drivers/block/sonycd535.c | if (sony_buffer[i] == NULL) { |
i | 1680 | drivers/block/sonycd535.c | while (--i>=0) |
i | 1681 | drivers/block/sonycd535.c | kfree(sony_buffer[i]); |
i | 1741 | drivers/block/sonycd535.c | int i; |
i | 1747 | drivers/block/sonycd535.c | for (i = 0; i < sony_buffer_sectors; i++) |
i | 1748 | drivers/block/sonycd535.c | kfree_s(sony_buffer[i], 2048); |
i | 119 | drivers/block/triton.c | int i; |
i | 129 | drivers/block/triton.c | for (i = rq->nr_sectors; i > 0;) { |
i | 130 | drivers/block/triton.c | i -= rq->current_nr_sectors; |
i | 135 | drivers/block/xd.c | u_char i,j,found = 0; |
i | 144 | drivers/block/xd.c | for (i = 0; i < (sizeof(xd_bases) / sizeof(xd_bases[0])) && !found; i++) |
i | 146 | drivers/block/xd.c | if (!memcmp(xd_bases[i] + xd_sigs[j].offset,xd_sigs[j].string,strlen(xd_sigs[j].string))) { |
i | 148 | drivers/block/xd.c | *address = xd_bases[i]; |
i | 158 | drivers/block/xd.c | u_char i,controller,*address; |
i | 168 | drivers/block/xd.c | for (i = 0; i < xd_drives; i++) |
i | 169 | 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 | 181 | drivers/block/xd.c | for (i = 0; i < xd_drives; i++) { |
i | 182 | drivers/block/xd.c | xd[i << 6].nr_sects = xd_info[i].heads * xd_info[i].cylinders * xd_info[i].sectors; |
i | 183 | drivers/block/xd.c | xd_valid[i] = 1; |
i | 188 | drivers/block/xd.c | for(i=0;i<(XD_MAXDRIVES << 6);i++) xd_blocksizes[i] = 1024; |
i | 521 | drivers/block/xd.c | u_char cmdblk[6],i,count = 0; |
i | 523 | drivers/block/xd.c | for (i = 0; i < XD_MAXDRIVES; i++) { |
i | 524 | drivers/block/xd.c | xd_build(cmdblk,CMD_TESTREADY,i,0,0,0,0,0); |
i | 679 | drivers/block/xd.c | u_char cmdblk[6],i; |
i | 681 | drivers/block/xd.c | for (i = 0; i < 3; i++) { |
i | 682 | drivers/block/xd.c | while (min[i] != max[i] - 1) { |
i | 683 | drivers/block/xd.c | test[i] = (min[i] + max[i]) / 2; |
i | 686 | drivers/block/xd.c | min[i] = test[i]; |
i | 688 | drivers/block/xd.c | max[i] = test[i]; |
i | 690 | drivers/block/xd.c | test[i] = min[i]; |
i | 146 | drivers/char/atixlmouse.c | int i; |
i | 165 | drivers/char/atixlmouse.c | for(i = 3; i < count; i++) |
i | 166 | drivers/char/atixlmouse.c | put_user(0x00, buffer + i); |
i | 172 | drivers/char/atixlmouse.c | return i; /* i data bytes returned */ |
i | 259 | drivers/char/busmouse.c | int i; |
i | 263 | drivers/char/busmouse.c | for (i = 0; i < 100000; i++) |
i | 54 | drivers/char/conmakehash.c | int i; |
i | 61 | drivers/char/conmakehash.c | for ( i = 0 ; i < unicount[fp] ; i++ ) |
i | 62 | drivers/char/conmakehash.c | if ( unitable[fp][i] == un ) |
i | 86 | drivers/char/conmakehash.c | int i, nuni, nent; |
i | 113 | drivers/char/conmakehash.c | for ( i = 0 ; i < fontlen ; i++ ) |
i | 114 | drivers/char/conmakehash.c | unicount[i] = 0; |
i | 190 | drivers/char/conmakehash.c | for (i=fp0; i<=fp1; i++) |
i | 191 | drivers/char/conmakehash.c | addpair(i,i); |
i | 222 | drivers/char/conmakehash.c | for(i=fp0; i<=fp1; i++) |
i | 223 | drivers/char/conmakehash.c | addpair(i,un0-fp0+i); |
i | 246 | drivers/char/conmakehash.c | for ( i = 0 ; i < fontlen ; i++ ) |
i | 247 | drivers/char/conmakehash.c | nuni += unicount[i]; |
i | 265 | drivers/char/conmakehash.c | for ( i = 0 ; i < fontlen ; i++ ) |
i | 267 | drivers/char/conmakehash.c | printf("%3d", unicount[i]); |
i | 268 | drivers/char/conmakehash.c | if ( i == fontlen-1 ) |
i | 270 | drivers/char/conmakehash.c | else if ( i % 8 == 7 ) |
i | 280 | drivers/char/conmakehash.c | for ( i = 0 ; i < nuni ; i++ ) |
i | 288 | drivers/char/conmakehash.c | if ( i == nuni-1 ) |
i | 290 | drivers/char/conmakehash.c | else if ( i % 8 == 7 ) |
i | 340 | drivers/char/console.c | int vc_cons_allocated(unsigned int i) |
i | 342 | drivers/char/console.c | return (i < MAX_NR_CONSOLES && vc_cons[i].d); |
i | 345 | drivers/char/console.c | int vc_allocate(unsigned int i) /* return 0 on success */ |
i | 347 | drivers/char/console.c | if (i >= MAX_NR_CONSOLES) |
i | 349 | drivers/char/console.c | if (!vc_cons[i].d) { |
i | 353 | drivers/char/console.c | if (i >= MAX_NR_USER_CONSOLES && !suser()) |
i | 368 | drivers/char/console.c | vc_cons[i].d = (struct vc_data *) p; |
i | 370 | drivers/char/console.c | vt_cons[i] = (struct vt_struct *) p; |
i | 371 | drivers/char/console.c | vc_scrbuf[i] = (unsigned short *) q; |
i | 372 | drivers/char/console.c | vc_cons[i].d->vc_kmalloced = 1; |
i | 373 | drivers/char/console.c | vc_cons[i].d->vc_screenbuf_size = video_screen_size; |
i | 374 | drivers/char/console.c | vc_init (i, video_num_lines, video_num_columns, 1); |
i | 389 | drivers/char/console.c | unsigned int currcons, i; |
i | 413 | drivers/char/console.c | for (i = 0; i< currcons; i++) |
i | 414 | drivers/char/console.c | if (newscreens[i]) |
i | 415 | drivers/char/console.c | kfree_s(newscreens[i], ss); |
i | 918 | drivers/char/console.c | int i; |
i | 920 | drivers/char/console.c | for (i=0;i<=npar;i++) |
i | 921 | drivers/char/console.c | switch (par[i]) { |
i | 1000 | drivers/char/console.c | if (par[i] >= 30 && par[i] <= 37) |
i | 1001 | drivers/char/console.c | color = color_table[par[i]-30] |
i | 1003 | drivers/char/console.c | else if (par[i] >= 40 && par[i] <= 47) |
i | 1004 | drivers/char/console.c | color = (color_table[par[i]-40]<<4) |
i | 1136 | drivers/char/console.c | int i; |
i | 1138 | drivers/char/console.c | for (i=0; i<=npar; i++) |
i | 1139 | drivers/char/console.c | if (ques) switch(par[i]) { /* DEC private modes set/reset */ |
i | 1184 | drivers/char/console.c | } else switch(par[i]) { /* ANSI modes set/reset */ |
i | 1231 | drivers/char/console.c | unsigned int i = x; |
i | 1235 | drivers/char/console.c | while (i++ < video_num_columns) { |
i | 1252 | drivers/char/console.c | unsigned int i = x; |
i | 1255 | drivers/char/console.c | while (++i < video_num_columns) { |
i | 1655 | drivers/char/console.c | int i = par[0]*3, j = 1; |
i | 1656 | drivers/char/console.c | palette[i] = 16*par[j++]; |
i | 1657 | drivers/char/console.c | palette[i++] += par[j++]; |
i | 1658 | drivers/char/console.c | palette[i] = 16*par[j++]; |
i | 1659 | drivers/char/console.c | palette[i++] += par[j++]; |
i | 1660 | drivers/char/console.c | palette[i] = 16*par[j++]; |
i | 1661 | drivers/char/console.c | palette[i] += par[j]; |
i | 2077 | drivers/char/console.c | int i ; |
i | 2106 | drivers/char/console.c | for (i=0; i<16; i++) { |
i | 2108 | drivers/char/console.c | outb_p (i, 0x3c0) ; |
i | 2109 | drivers/char/console.c | outb_p (i, 0x3c0) ; |
i | 2116 | drivers/char/console.c | for (i=0; i<16; i++) { |
i | 2117 | drivers/char/console.c | outb_p (color_table[i], 0x3c8) ; |
i | 2118 | drivers/char/console.c | outb_p (default_red[i], 0x3c9) ; |
i | 2119 | drivers/char/console.c | outb_p (default_grn[i], 0x3c9) ; |
i | 2120 | drivers/char/console.c | outb_p (default_blu[i], 0x3c9) ; |
i | 2216 | drivers/char/console.c | int i; |
i | 2221 | drivers/char/console.c | for ( i = 0 ; i < 12 ; i++ ) |
i | 2223 | drivers/char/console.c | outb_p(i, 0x3b4); |
i | 2224 | drivers/char/console.c | outb_p(herc_txt_tbl[i], 0x3b5); |
i | 2361 | drivers/char/console.c | int i; |
i | 2365 | drivers/char/console.c | i = vc_allocate(idx); |
i | 2366 | drivers/char/console.c | if (i) |
i | 2367 | drivers/char/console.c | return i; |
i | 2406 | drivers/char/console.c | int i; |
i | 2429 | drivers/char/console.c | i = verify_area(set ? VERIFY_READ : VERIFY_WRITE, (void *)arg, |
i | 2431 | drivers/char/console.c | if (i) |
i | 2432 | drivers/char/console.c | return i; |
i | 2484 | drivers/char/console.c | for (i=0; i<cmapsz ; i++) |
i | 2485 | drivers/char/console.c | scr_writeb(get_user(arg + i), charmap + i); |
i | 2487 | drivers/char/console.c | for (i=0; i<cmapsz ; i++) |
i | 2488 | drivers/char/console.c | put_user(scr_readb(charmap + i), arg + i); |
i | 2501 | drivers/char/console.c | for (i=0; i<cmapsz ; i++) |
i | 2502 | drivers/char/console.c | *(charmap+i) = get_user(arg+i); |
i | 2504 | drivers/char/console.c | for (i=0; i<cmapsz ; i++) |
i | 2505 | drivers/char/console.c | put_user(*(charmap+i), arg+i); |
i | 2555 | drivers/char/console.c | int i; |
i | 2562 | drivers/char/console.c | i = verify_area(set ? VERIFY_READ : VERIFY_WRITE, (void *)arg, 16*3); |
i | 2563 | drivers/char/console.c | if (i) |
i | 2564 | drivers/char/console.c | return i; |
i | 2566 | drivers/char/console.c | for (i=0; i<16; i++) { |
i | 2568 | drivers/char/console.c | default_red[i] = get_user(arg++) ; |
i | 2569 | drivers/char/console.c | default_grn[i] = get_user(arg++) ; |
i | 2570 | drivers/char/console.c | default_blu[i] = get_user(arg++) ; |
i | 2572 | drivers/char/console.c | put_user (default_red[i], arg++) ; |
i | 2573 | drivers/char/console.c | put_user (default_grn[i], arg++) ; |
i | 2574 | drivers/char/console.c | put_user (default_blu[i], arg++) ; |
i | 2578 | drivers/char/console.c | for (i=0; i<MAX_NR_CONSOLES; i++) |
i | 2579 | drivers/char/console.c | if (vc_cons_allocated(i)) { |
i | 2582 | drivers/char/console.c | vc_cons[i].d->vc_palette[k++] = default_red[j]; |
i | 2583 | drivers/char/console.c | vc_cons[i].d->vc_palette[k++] = default_grn[j]; |
i | 2584 | drivers/char/console.c | vc_cons[i].d->vc_palette[k++] = default_blu[j]; |
i | 2624 | drivers/char/console.c | int i, j ; |
i | 2630 | drivers/char/console.c | for (i=j=0; i<16; i++) { |
i | 2631 | drivers/char/console.c | outb_p (color_table[i], dac_reg) ; |
i | 2646 | drivers/char/console.c | int i; |
i | 2648 | drivers/char/console.c | i = set_get_font (arg,1,ch512); |
i | 2649 | drivers/char/console.c | if ( !i ) { |
i | 2654 | drivers/char/console.c | return i; |
i | 169 | drivers/char/consolemap.c | static void set_inverse_transl(int i) |
i | 172 | drivers/char/consolemap.c | unsigned short *p = translations[i]; |
i | 173 | drivers/char/consolemap.c | unsigned char *q = inverse_translations[i]; |
i | 177 | drivers/char/consolemap.c | q = inverse_translations[i] = ((i == LAT1_MAP) |
i | 229 | drivers/char/consolemap.c | int i; |
i | 232 | drivers/char/consolemap.c | i = verify_area(VERIFY_READ, (void *)arg, E_TABSZ); |
i | 233 | drivers/char/consolemap.c | if (i) |
i | 234 | drivers/char/consolemap.c | return i; |
i | 236 | drivers/char/consolemap.c | for (i=0; i<E_TABSZ ; i++) |
i | 237 | drivers/char/consolemap.c | p[i] = UNI_DIRECT_BASE | get_user(arg+i); |
i | 245 | drivers/char/consolemap.c | int i, ch; |
i | 248 | drivers/char/consolemap.c | i = verify_area(VERIFY_WRITE, (void *)arg, E_TABSZ); |
i | 249 | drivers/char/consolemap.c | if (i) |
i | 250 | drivers/char/consolemap.c | return i; |
i | 252 | drivers/char/consolemap.c | for (i=0; i<E_TABSZ ; i++) |
i | 254 | drivers/char/consolemap.c | ch = conv_uni_to_pc(p[i]); |
i | 255 | drivers/char/consolemap.c | put_user((ch & ~0xff) ? 0 : ch, arg+i); |
i | 262 | drivers/char/consolemap.c | int i; |
i | 265 | drivers/char/consolemap.c | i = verify_area(VERIFY_READ, (void *)arg, |
i | 267 | drivers/char/consolemap.c | if (i) |
i | 268 | drivers/char/consolemap.c | return i; |
i | 270 | drivers/char/consolemap.c | for (i=0; i<E_TABSZ ; i++) |
i | 271 | drivers/char/consolemap.c | p[i] = get_user(arg+i); |
i | 279 | drivers/char/consolemap.c | int i; |
i | 282 | drivers/char/consolemap.c | i = verify_area(VERIFY_WRITE, (void *)arg, |
i | 284 | drivers/char/consolemap.c | if (i) |
i | 285 | drivers/char/consolemap.c | return i; |
i | 287 | drivers/char/consolemap.c | for (i=0; i<E_TABSZ ; i++) |
i | 288 | drivers/char/consolemap.c | put_user(p[i], arg+i); |
i | 318 | drivers/char/consolemap.c | int i, n; |
i | 327 | drivers/char/consolemap.c | for ( i = 0 ; i < 32 ; i++ ) |
i | 328 | drivers/char/consolemap.c | p1[i] = NULL; |
i | 337 | drivers/char/consolemap.c | for ( i = 0 ; i < 64 ; i++ ) |
i | 338 | drivers/char/consolemap.c | p2[i] = 0xffff; /* No glyph for this character (yet) */ |
i | 350 | drivers/char/consolemap.c | int i, j; |
i | 353 | drivers/char/consolemap.c | for ( i = 0 ; i < 32 ; i++ ) |
i | 355 | drivers/char/consolemap.c | if ( (p1 = uni_pagedir[i]) != NULL ) |
i | 364 | drivers/char/consolemap.c | uni_pagedir[i] = NULL; |
i | 373 | drivers/char/consolemap.c | int err = 0, err1, i; |
i | 383 | drivers/char/consolemap.c | for ( i = 0 ; i <= 3 ; i++ ) |
i | 384 | drivers/char/consolemap.c | set_inverse_transl(i); /* Update all inverse translations */ |
i | 397 | drivers/char/consolemap.c | int i, j; |
i | 405 | drivers/char/consolemap.c | for ( i = 0 ; i < 256 ; i++ ) |
i | 406 | drivers/char/consolemap.c | for ( j = dfont_unicount[i] ; j ; j-- ) |
i | 407 | drivers/char/consolemap.c | con_insert_unipair(*(p++), i); |
i | 409 | drivers/char/consolemap.c | for ( i = 0 ; i <= 3 ; i++ ) |
i | 410 | drivers/char/consolemap.c | set_inverse_transl(i); /* Update all inverse translations */ |
i | 415 | drivers/char/consolemap.c | int i, j, k, ect; |
i | 421 | drivers/char/consolemap.c | for ( i = 0 ; i < 32 ; i++ ) |
i | 422 | drivers/char/consolemap.c | if ( (p1 = uni_pagedir[i]) != NULL ) |
i | 429 | drivers/char/consolemap.c | put_user((u_short)((i<<11)+(j<<6)+k), |
i | 479 | drivers/char/cyclades.c | volatile int i; |
i | 483 | drivers/char/cyclades.c | for(i = 0 ; i < 100 ; i++){ |
i | 491 | drivers/char/cyclades.c | if ( i == 100 ) { |
i | 634 | drivers/char/cyclades.c | int i,j,index; |
i | 672 | drivers/char/cyclades.c | i = channel + chip * 4 + cinfo->first_line; |
i | 673 | drivers/char/cyclades.c | info = &cy_port[i]; |
i | 788 | drivers/char/cyclades.c | i = channel + chip * 4 + cinfo->first_line; |
i | 793 | drivers/char/cyclades.c | if( (i < 0) || (NR_PORTS <= i) ){ |
i | 797 | drivers/char/cyclades.c | info = &cy_port[i]; |
i | 1018 | drivers/char/cyclades.c | int i, mask; |
i | 1020 | drivers/char/cyclades.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 1022 | drivers/char/cyclades.c | && !request_irq(i, cy_probe, SA_INTERRUPT, "serial probe")) { |
i | 1035 | drivers/char/cyclades.c | int i; |
i | 1037 | drivers/char/cyclades.c | for (i = 0; i < 16; i++) { |
i | 1038 | drivers/char/cyclades.c | if (irq_lines & (1 << i)) |
i | 1039 | drivers/char/cyclades.c | free_irq(i); |
i | 1050 | drivers/char/cyclades.c | int i, mask; |
i | 1075 | drivers/char/cyclades.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 1076 | drivers/char/cyclades.c | if ((cy_triggered & (1 << i)) && |
i | 1077 | drivers/char/cyclades.c | (irq_lines & (1 << i))) { |
i | 1330 | drivers/char/cyclades.c | int i; |
i | 1341 | drivers/char/cyclades.c | i = cflag & CBAUD; |
i | 1351 | drivers/char/cyclades.c | if (i & CBAUDEX) { |
i | 1352 | drivers/char/cyclades.c | if (i == B57600) |
i | 1353 | drivers/char/cyclades.c | i = 16; |
i | 1354 | drivers/char/cyclades.c | else if(i == B115200) |
i | 1355 | drivers/char/cyclades.c | i = 18; |
i | 1357 | drivers/char/cyclades.c | else if(i == B78600) |
i | 1358 | drivers/char/cyclades.c | i = 17; |
i | 1364 | drivers/char/cyclades.c | if (i == 15) { |
i | 1366 | drivers/char/cyclades.c | i += 1; |
i | 1368 | drivers/char/cyclades.c | i += 3; |
i | 1370 | drivers/char/cyclades.c | info->tbpr = baud_bpr[i]; /* Tx BPR */ |
i | 1371 | drivers/char/cyclades.c | info->tco = baud_co[i]; /* Tx CO */ |
i | 1372 | drivers/char/cyclades.c | info->rbpr = baud_bpr[i]; /* Rx BPR */ |
i | 1373 | drivers/char/cyclades.c | info->rco = baud_co[i]; /* Rx CO */ |
i | 1374 | drivers/char/cyclades.c | if (baud_table[i] == 134) { |
i | 1377 | drivers/char/cyclades.c | } else if (baud_table[i]) { |
i | 1378 | drivers/char/cyclades.c | info->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2; |
i | 1392 | drivers/char/cyclades.c | : baud_cor3[i]); /* receive threshold */ |
i | 1494 | drivers/char/cyclades.c | if(i == 0){ /* baud rate is zero, turn off line */ |
i | 2737 | drivers/char/cyclades.c | int board,port,i; |
i | 2793 | drivers/char/cyclades.c | for (i = 0; i < 16; i++) { |
i | 2794 | drivers/char/cyclades.c | IRQ_cards[i] = 0; |
i | 2797 | drivers/char/cyclades.c | for (i = 0; i < NR_CARDS; i++) { |
i | 2799 | drivers/char/cyclades.c | cy_card[i].base_addr = 0; |
i | 2818 | drivers/char/cyclades.c | for (i = 0 ; i < NR_CARDS ; i++) { |
i | 2819 | drivers/char/cyclades.c | if (cy_card[i].base_addr == 0) { |
i | 2820 | drivers/char/cyclades.c | cy_card[i].first_line = -1; |
i | 2824 | drivers/char/cyclades.c | for (i = cy_next_channel ; i < NR_PORTS ; i++) { |
i | 2825 | drivers/char/cyclades.c | cy_port[i].line = -1; |
i | 2826 | drivers/char/cyclades.c | cy_port[i].magic = -1; |
i | 2891 | drivers/char/cyclades.c | unsigned short i,j,cy_isa_nchan; |
i | 2896 | drivers/char/cyclades.c | for (i = 0 ; i < NR_ISA_ADDRESSES ; i++) { |
i | 2897 | drivers/char/cyclades.c | cy_isa_address = cy_isa_addresses[i]; |
i | 2972 | drivers/char/cyclades.c | unsigned short i,j,cy_pci_nchan; |
i | 2981 | drivers/char/cyclades.c | for (i = 0; i < NR_CARDS; i++) { |
i | 2984 | drivers/char/cyclades.c | PCI_DEVICE_ID_CYCLOMY,i, |
i | 3010 | drivers/char/cyclades.c | return(i); |
i | 3014 | drivers/char/cyclades.c | i+1,cyy_bus,cyy_dev_fn,cyy_rev_id); |
i | 3025 | drivers/char/cyclades.c | return(i); |
i | 3033 | drivers/char/cyclades.c | return(i); |
i | 3056 | drivers/char/cyclades.c | return(i); |
i | 754 | drivers/char/istallion.c | int i, j; |
i | 774 | drivers/char/istallion.c | i = tty_unregister_driver(&stli_serial); |
i | 776 | drivers/char/istallion.c | if (i || j) { |
i | 777 | drivers/char/istallion.c | printk("STALLION: failed to un-register tty driver, errno=%d,%d\n", -i, -j); |
i | 781 | drivers/char/istallion.c | if ((i = unregister_chrdev(STL_SIOMEMMAJOR, "staliomem"))) |
i | 782 | drivers/char/istallion.c | printk("STALLION: failed to un-register serial memory device, errno=%d\n", -i); |
i | 789 | drivers/char/istallion.c | for (i = 0; (i < stli_nrbrds); i++) { |
i | 790 | drivers/char/istallion.c | brdp = &stli_brds[i]; |
i | 2799 | drivers/char/istallion.c | int i, panelnr, panelport; |
i | 2805 | drivers/char/istallion.c | for (i = 0, panelnr = 0, panelport = 0; (i < brdp->nrports); i++) { |
i | 2813 | drivers/char/istallion.c | portp->portnr = i; |
i | 2828 | drivers/char/istallion.c | brdp->ports[i] = portp; |
i | 3056 | drivers/char/istallion.c | int i; |
i | 3065 | drivers/char/istallion.c | for (i = 0; (i < 100); i++) |
i | 3117 | drivers/char/istallion.c | int i; |
i | 3126 | drivers/char/istallion.c | for (i = 0; (i < 100); i++) |
i | 3139 | drivers/char/istallion.c | int i; |
i | 3149 | drivers/char/istallion.c | for (i = 0; (i < 100); i++) |
i | 3210 | drivers/char/istallion.c | int i; |
i | 3219 | drivers/char/istallion.c | for (i = 0; (i < 100); i++) |
i | 3231 | drivers/char/istallion.c | int i; |
i | 3240 | drivers/char/istallion.c | for (i = 0; (i < 500); i++) |
i | 3273 | drivers/char/istallion.c | int i; |
i | 3282 | drivers/char/istallion.c | for (i = 0; (i < 100); i++) |
i | 3294 | drivers/char/istallion.c | int i; |
i | 3301 | drivers/char/istallion.c | for (i = 0; (i < 100); i++) |
i | 3329 | drivers/char/istallion.c | int i; |
i | 3338 | drivers/char/istallion.c | for (i = 0; (i < 500); i++) |
i | 3519 | drivers/char/istallion.c | int i; |
i | 3641 | drivers/char/istallion.c | for (i = 0; (i < 16); i++) { |
i | 3642 | drivers/char/istallion.c | if (((sig.amask0 << i) & 0x8000) == 0) |
i | 3645 | drivers/char/istallion.c | brdp->nrports = i; |
i | 3668 | drivers/char/istallion.c | int portnr, nrdevs, i, rc; |
i | 3715 | drivers/char/istallion.c | for (i = 1, portnr = 0; (i < nrdevs); i++, portnr++, memp++) { |
i | 3721 | drivers/char/istallion.c | portp->devnr = i; |
i | 3723 | drivers/char/istallion.c | portp->reqbit = (unsigned char) (0x1 << (i * 8 / nrdevs)); |
i | 3724 | drivers/char/istallion.c | portp->portidx = (unsigned char) (i / 8); |
i | 3725 | drivers/char/istallion.c | portp->portbit = (unsigned char) (0x1 << (i % 8)); |
i | 3733 | drivers/char/istallion.c | for (i = 1, portnr = 0; (i < nrdevs); i++, portnr++) { |
i | 3775 | drivers/char/istallion.c | int i, j; |
i | 3791 | drivers/char/istallion.c | for (i = 0; (i < stli_nrbrds); i++) { |
i | 3792 | drivers/char/istallion.c | brdp = &stli_brds[i]; |
i | 3793 | drivers/char/istallion.c | confp = &stli_brdconf[i]; |
i | 3794 | drivers/char/istallion.c | brdp->brdnr = i; |
i | 3822 | drivers/char/istallion.c | printk("STALLION: unit=%d is unknown board type=%d\n", i, confp->brdtype); |
i | 3827 | drivers/char/istallion.c | printk("STALLION: %s board not found, unit=%d io=%x mem=%x\n", stli_brdnames[brdp->brdtype], i, confp->ioaddr1, (int) confp->memaddr); |
i | 3832 | drivers/char/istallion.c | printk("STALLION: %s found, unit=%d io=%x mem=%x nrpanels=%d nrports=%d\n", stli_brdnames[brdp->brdtype], i, confp->ioaddr1, (int) confp->memaddr, brdp->nrpanels, brdp->nrports); |
i | 3842 | drivers/char/istallion.c | for (i = 0; (i < stli_nrbrds); i++) { |
i | 3843 | drivers/char/istallion.c | for (j = i + 1; (j < stli_nrbrds); j++) { |
i | 3844 | drivers/char/istallion.c | brdp = &stli_brds[i]; |
i | 3855 | drivers/char/istallion.c | for (i = 0; (i < stli_nrbrds); i++) { |
i | 3856 | drivers/char/istallion.c | brdp = &stli_brds[i]; |
i | 167 | drivers/char/keyboard.c | int i; |
i | 169 | drivers/char/keyboard.c | for (i=0; i<0x100000; i++) |
i | 676 | drivers/char/keyboard.c | int i; |
i | 678 | drivers/char/keyboard.c | for (i = fg_console-1; i != fg_console; i--) { |
i | 679 | drivers/char/keyboard.c | if (i == -1) |
i | 680 | drivers/char/keyboard.c | i = MAX_NR_CONSOLES-1; |
i | 681 | drivers/char/keyboard.c | if (vc_cons_allocated(i)) |
i | 684 | drivers/char/keyboard.c | want_console = i; |
i | 689 | drivers/char/keyboard.c | int i; |
i | 691 | drivers/char/keyboard.c | for (i = fg_console+1; i != fg_console; i++) { |
i | 692 | drivers/char/keyboard.c | if (i == MAX_NR_CONSOLES) |
i | 693 | drivers/char/keyboard.c | i = 0; |
i | 694 | drivers/char/keyboard.c | if (vc_cons_allocated(i)) |
i | 697 | drivers/char/keyboard.c | want_console = i; |
i | 827 | drivers/char/keyboard.c | int i; |
i | 833 | drivers/char/keyboard.c | for (i = 0; i < accent_table_size; i++) { |
i | 834 | drivers/char/keyboard.c | if (accent_table[i].diacr == d && accent_table[i].base == ch) |
i | 835 | drivers/char/keyboard.c | return accent_table[i].result; |
i | 969 | drivers/char/keyboard.c | int i, j, k, sym, val; |
i | 972 | drivers/char/keyboard.c | for(i=0; i < SIZE(k_down); i++) |
i | 973 | drivers/char/keyboard.c | k_down[i] = 0; |
i | 975 | drivers/char/keyboard.c | for(i=0; i < SIZE(key_down); i++) |
i | 976 | drivers/char/keyboard.c | if(key_down[i]) { /* skip this word if not a single bit on */ |
i | 977 | drivers/char/keyboard.c | k = i*BITS_PER_LONG; |
i | 1039 | drivers/char/keyboard.c | int i; |
i | 1047 | drivers/char/keyboard.c | for(i=0; i<0x200000; i++) { |
i | 1170 | drivers/char/keyboard.c | int i; |
i | 1180 | drivers/char/keyboard.c | for (i = 0 ; i < MAX_NR_CONSOLES ; i++) |
i | 1181 | drivers/char/keyboard.c | kbd_table[i] = kbd0; |
i | 132 | drivers/char/mem.c | unsigned int i = file->f_pos; |
i | 135 | drivers/char/mem.c | while (count-- > 0 && i < 65536) { |
i | 136 | drivers/char/mem.c | put_user(inb(i),tmp); |
i | 137 | drivers/char/mem.c | i++; |
i | 140 | drivers/char/mem.c | file->f_pos = i; |
i | 146 | drivers/char/mem.c | unsigned int i = file->f_pos; |
i | 149 | drivers/char/mem.c | while (count-- > 0 && i < 65536) { |
i | 150 | drivers/char/mem.c | outb(get_user(tmp),i); |
i | 151 | drivers/char/mem.c | i++; |
i | 154 | drivers/char/mem.c | file->f_pos = i; |
i | 131 | drivers/char/msbusmouse.c | int i, dx, dy; |
i | 142 | drivers/char/msbusmouse.c | for (i = 3; i < count; i++) |
i | 143 | drivers/char/msbusmouse.c | put_user(0x00, buffer + i); |
i | 147 | drivers/char/msbusmouse.c | return i; |
i | 186 | drivers/char/msbusmouse.c | int mse_byte, i; |
i | 200 | drivers/char/msbusmouse.c | for (i = 0; i < 4; i++) { |
i | 533 | drivers/char/n_tty.c | int i; |
i | 539 | drivers/char/n_tty.c | i = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt, |
i | 541 | drivers/char/n_tty.c | memcpy(tty->read_buf + tty->read_head, cp, i); |
i | 542 | drivers/char/n_tty.c | tty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1); |
i | 543 | drivers/char/n_tty.c | tty->read_cnt += i; |
i | 544 | drivers/char/n_tty.c | cp += i; |
i | 545 | drivers/char/n_tty.c | count -= i; |
i | 547 | drivers/char/n_tty.c | i = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt, |
i | 549 | drivers/char/n_tty.c | memcpy(tty->read_buf + tty->read_head, cp, i); |
i | 550 | drivers/char/n_tty.c | tty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1); |
i | 551 | drivers/char/n_tty.c | tty->read_cnt += i; |
i | 553 | drivers/char/n_tty.c | for (i=count, p = cp, f = fp; i; i--, p++) { |
i | 376 | drivers/char/psaux.c | int i = count; |
i | 378 | drivers/char/psaux.c | while (i--) { |
i | 398 | drivers/char/psaux.c | int i = count; |
i | 400 | drivers/char/psaux.c | while (i--) { |
i | 418 | drivers/char/psaux.c | int i = count; |
i | 434 | drivers/char/psaux.c | while (i > 0 && !queue_empty()) { |
i | 437 | drivers/char/psaux.c | i--; |
i | 440 | drivers/char/psaux.c | if (count-i) { |
i | 442 | drivers/char/psaux.c | return count-i; |
i | 338 | drivers/char/random.c | int i, num_passes; |
i | 348 | drivers/char/random.c | for (i = 0, p = (__u32 *) r->pool; i < num_passes; i++) { |
i | 475 | drivers/char/random.c | int length, ret, passes, i; |
i | 492 | drivers/char/random.c | for (i=0; i < 16; i++) { |
i | 493 | drivers/char/random.c | if (++random_counter[i] != 0) |
i | 501 | drivers/char/random.c | for (i = 0, cp = r->pool; i < passes; i++, cp+=64) |
i | 278 | drivers/char/scc.c | int i; |
i | 282 | drivers/char/scc.c | for (i = 0 ; i < MAX_IBUFS ; i++) |
i | 289 | drivers/char/scc.c | allocated_ibufs = --i; |
i | 294 | drivers/char/scc.c | printk("Warning: scc_alloc_buffer_pool() - allocated only %i buffers\n",i); |
i | 299 | drivers/char/scc.c | sccfreelist[i] = sccb; |
i | 300 | drivers/char/scc.c | sccfreelist[i]->bp = bp; |
i | 301 | drivers/char/scc.c | memset(sccfreelist[i]->bp ,0,sizeof(struct mbuf)); |
i | 302 | drivers/char/scc.c | sccfreelist[i]->inuse = 0; |
i | 303 | drivers/char/scc.c | sccfreelist[i]->bp->type = 0; |
i | 304 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
i | 305 | drivers/char/scc.c | sccfreelist[i]->bp->size = BUFSIZE; |
i | 312 | drivers/char/scc.c | unsigned int i, used = 0; |
i | 317 | drivers/char/scc.c | for (i = 0 ; i < allocated_ibufs ; i++) |
i | 319 | drivers/char/scc.c | if (sccfreelist[i]->inuse) |
i | 321 | drivers/char/scc.c | switch (sccfreelist[i]->bp->type) |
i | 341 | drivers/char/scc.c | int i; |
i | 346 | drivers/char/scc.c | for (i = 0 ; i < allocated_ibufs ; i++) |
i | 348 | drivers/char/scc.c | if(sccfreelist[i]->inuse == 0) |
i | 350 | drivers/char/scc.c | sccfreelist[i]->inuse = 1; |
i | 351 | drivers/char/scc.c | sccfreelist[i]->bp->type = type; |
i | 352 | drivers/char/scc.c | sccfreelist[i]->bp->next = NULLBUF; |
i | 353 | drivers/char/scc.c | sccfreelist[i]->bp->anext = NULLBUF; |
i | 354 | drivers/char/scc.c | sccfreelist[i]->bp->dup = NULLBUF; |
i | 355 | drivers/char/scc.c | sccfreelist[i]->bp->size = BUFSIZE; |
i | 356 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 1; |
i | 357 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
i | 358 | drivers/char/scc.c | sccfreelist[i]->bp->in_use = 0; |
i | 361 | drivers/char/scc.c | return sccfreelist[i]->bp; |
i | 379 | drivers/char/scc.c | int i; |
i | 390 | drivers/char/scc.c | for(i = 0 ; i < allocated_ibufs ; i++) |
i | 392 | drivers/char/scc.c | if(sccfreelist[i]->bp == bp->dup) |
i | 394 | drivers/char/scc.c | if (sccfreelist[i]->bp->type != type) |
i | 397 | drivers/char/scc.c | type,sccfreelist[i]->bp->type); |
i | 400 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
i | 401 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
i | 402 | drivers/char/scc.c | sccfreelist[i]->bp->in_use = 0; |
i | 403 | drivers/char/scc.c | sccfreelist[i]->inuse = 0; |
i | 412 | drivers/char/scc.c | for(i = 0 ; i < allocated_ibufs ; i++) |
i | 414 | drivers/char/scc.c | if(sccfreelist[i]->bp == bp) |
i | 416 | drivers/char/scc.c | if (sccfreelist[i]->bp->type != type) |
i | 419 | drivers/char/scc.c | type,sccfreelist[i]->bp->type); |
i | 422 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
i | 423 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
i | 424 | drivers/char/scc.c | sccfreelist[i]->inuse = 0; |
i | 91 | drivers/char/selection.c | int i = verify_area(VERIFY_READ, (char *) arg, 36); |
i | 92 | drivers/char/selection.c | if (i) |
i | 93 | drivers/char/selection.c | return i; |
i | 118 | drivers/char/selection.c | int i, ps, pe; |
i | 250 | drivers/char/selection.c | for (i = sel_start; i <= sel_end; i += 2) { |
i | 251 | drivers/char/selection.c | *bp = sel_pos(i); |
i | 254 | drivers/char/selection.c | if (! ((i + 2) % video_size_row)) { |
i | 766 | drivers/char/serial.c | unsigned int i; |
i | 769 | drivers/char/serial.c | for (i=1; i < 16; i++) { |
i | 770 | drivers/char/serial.c | info = IRQ_ports[i]; |
i | 781 | drivers/char/serial.c | if (rs_multiport[i].port1) |
i | 782 | drivers/char/serial.c | rs_interrupt_multi(i, NULL); |
i | 784 | drivers/char/serial.c | rs_interrupt(i, NULL); |
i | 786 | drivers/char/serial.c | rs_interrupt_single(i, NULL); |
i | 821 | drivers/char/serial.c | int i, mask; |
i | 823 | drivers/char/serial.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 824 | drivers/char/serial.c | if (!(mask & dontgrab) && !request_irq(i, rs_probe, SA_INTERRUPT, "serial probe")) { |
i | 836 | drivers/char/serial.c | int i; |
i | 838 | drivers/char/serial.c | for (i = 0; i < 16; i++) { |
i | 839 | drivers/char/serial.c | if (irq_lines & (1 << i)) |
i | 840 | drivers/char/serial.c | free_irq(i); |
i | 1117 | drivers/char/serial.c | int i; |
i | 1124 | drivers/char/serial.c | i = cflag & CBAUD; |
i | 1125 | drivers/char/serial.c | if (i & CBAUDEX) { |
i | 1126 | drivers/char/serial.c | i &= ~CBAUDEX; |
i | 1127 | drivers/char/serial.c | if (i < 1 || i > 2) |
i | 1130 | drivers/char/serial.c | i += 15; |
i | 1132 | drivers/char/serial.c | if (i == 15) { |
i | 1134 | drivers/char/serial.c | i += 1; |
i | 1136 | drivers/char/serial.c | i += 2; |
i | 1143 | drivers/char/serial.c | } else if (baud_table[i] == 134) { |
i | 1146 | drivers/char/serial.c | } else if (baud_table[i]) { |
i | 1147 | drivers/char/serial.c | quot = info->baud_base / baud_table[i]; |
i | 1148 | drivers/char/serial.c | info->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2; |
i | 1467 | drivers/char/serial.c | unsigned int i,change_irq,change_port; |
i | 1502 | drivers/char/serial.c | for (i = 0 ; i < NR_PORTS; i++) |
i | 1503 | drivers/char/serial.c | if ((info != &rs_table[i]) && |
i | 1504 | drivers/char/serial.c | (rs_table[i].port == new_serial.port) && |
i | 1505 | drivers/char/serial.c | rs_table[i].type) |
i | 1691 | drivers/char/serial.c | int i, mask; |
i | 1716 | drivers/char/serial.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 1717 | drivers/char/serial.c | if ((rs_triggered & (1 << i)) && |
i | 1718 | drivers/char/serial.c | (irq_lines & (1 << i))) { |
i | 1721 | drivers/char/serial.c | printk("Wild interrupt? (IRQ %d)\n", i); |
i | 2577 | drivers/char/serial.c | int i; |
i | 2588 | drivers/char/serial.c | for (i = 0; i < 16; i++) { |
i | 2589 | drivers/char/serial.c | IRQ_ports[i] = 0; |
i | 2590 | drivers/char/serial.c | IRQ_timeout[i] = 0; |
i | 2591 | drivers/char/serial.c | memset(&rs_multiport[i], 0, sizeof(struct rs_multiport_struct)); |
i | 2645 | drivers/char/serial.c | for (i = 0, info = rs_table; i < NR_PORTS; i++,info++) { |
i | 2647 | drivers/char/serial.c | info->line = i; |
i | 2707 | drivers/char/serial.c | int i; |
i | 2713 | drivers/char/serial.c | for (i = 0; i < NR_PORTS; i++) { |
i | 2714 | drivers/char/serial.c | if (rs_table[i].port == req->port) |
i | 2717 | drivers/char/serial.c | if (i == NR_PORTS) { |
i | 2718 | drivers/char/serial.c | for (i = 0; i < NR_PORTS; i++) |
i | 2719 | drivers/char/serial.c | if ((rs_table[i].type == PORT_UNKNOWN) && |
i | 2720 | drivers/char/serial.c | (rs_table[i].count == 0)) |
i | 2723 | drivers/char/serial.c | if (i == NR_PORTS) { |
i | 2727 | drivers/char/serial.c | info = &rs_table[i]; |
i | 2728 | drivers/char/serial.c | if (rs_table[i].count) { |
i | 2731 | drivers/char/serial.c | "device already open\n", i, req->port, req->irq); |
i | 550 | drivers/char/stallion.c | int i, j, k; |
i | 567 | drivers/char/stallion.c | i = tty_unregister_driver(&stl_serial); |
i | 569 | drivers/char/stallion.c | if (i || j) { |
i | 570 | drivers/char/stallion.c | printk("STALLION: failed to un-register tty driver, errno=%d,%d\n", -i, -j); |
i | 578 | drivers/char/stallion.c | for (i = 0; (i < stl_nrbrds); i++) { |
i | 579 | drivers/char/stallion.c | brdp = stl_brds[i]; |
i | 611 | drivers/char/stallion.c | stl_brds[i] = (stlbrd_t *) NULL; |
i | 614 | drivers/char/stallion.c | for (i = 0; (i < stl_numintrs); i++) |
i | 615 | drivers/char/stallion.c | free_irq(stl_gotintrs[i]); |
i | 1800 | drivers/char/stallion.c | int i, panelnr, iobase; |
i | 1807 | drivers/char/stallion.c | for (i = 0; (i < stl_nrbrds); ) { |
i | 1808 | drivers/char/stallion.c | if ((brdp = stl_brds[i]) == (stlbrd_t *) NULL) { |
i | 1809 | drivers/char/stallion.c | i++; |
i | 1813 | drivers/char/stallion.c | i++; |
i | 1823 | drivers/char/stallion.c | i++; |
i | 1836 | drivers/char/stallion.c | i++; |
i | 1852 | drivers/char/stallion.c | i++; |
i | 1873 | drivers/char/stallion.c | i++; |
i | 1882 | drivers/char/stallion.c | i++; |
i | 1897 | drivers/char/stallion.c | i++; |
i | 1906 | drivers/char/stallion.c | i++; |
i | 1979 | drivers/char/stallion.c | int i; |
i | 1981 | drivers/char/stallion.c | for (i = 0; (i < CCR_MAXWAIT); i++) { |
i | 2400 | drivers/char/stallion.c | int rc, i; |
i | 2407 | drivers/char/stallion.c | for (i = 0; (i < stl_numintrs); i++) { |
i | 2408 | drivers/char/stallion.c | if (stl_gotintrs[i] == irq) |
i | 2411 | drivers/char/stallion.c | if (i >= stl_numintrs) { |
i | 2436 | drivers/char/stallion.c | int i, j; |
i | 2449 | drivers/char/stallion.c | for (i = 0; (i < nrchips); i++) { |
i | 2451 | drivers/char/stallion.c | outb((panelp->pagenr + (i >> 1)), brdp->ioctrl); |
i | 2454 | drivers/char/stallion.c | ioaddr = panelp->iobase + (EREG_BANKSIZE * (i >> 1)); |
i | 2456 | drivers/char/stallion.c | uartaddr = (i & 0x01) ? 0x080 : 0; |
i | 2468 | drivers/char/stallion.c | printk("STALLION: cd1400 not responding, brd=%d panel=%d chip=%d\n", panelp->brdnr, panelp->panelnr, i); |
i | 2471 | drivers/char/stallion.c | chipmask |= (0x1 << i); |
i | 2482 | drivers/char/stallion.c | for (i = 0; (i < panelp->nrports); i++) { |
i | 2484 | drivers/char/stallion.c | outb((panelp->pagenr + (i >> 3)), brdp->ioctrl); |
i | 2487 | drivers/char/stallion.c | ioaddr = panelp->iobase + (EREG_BANKSIZE * (i >> 3)); |
i | 2489 | drivers/char/stallion.c | if ((chipmask & (0x1 << (i / 4))) == 0) |
i | 2497 | drivers/char/stallion.c | portp->portnr = i; |
i | 2501 | drivers/char/stallion.c | portp->uartaddr = (i & 0x04) << 5; |
i | 2502 | drivers/char/stallion.c | portp->pagenr = panelp->pagenr + (i >> 3); |
i | 2510 | drivers/char/stallion.c | stl_setreg(portp, CAR, (i & 0x03)); |
i | 2511 | drivers/char/stallion.c | stl_setreg(portp, LIVR, (i << 3)); |
i | 2512 | drivers/char/stallion.c | panelp->ports[i] = portp; |
i | 2595 | drivers/char/stallion.c | int panelnr, ioaddr, i; |
i | 2657 | drivers/char/stallion.c | for (i = 0; (i < STL_MAXPANELS); i++) { |
i | 2700 | drivers/char/stallion.c | i = stl_mapirq(brdp->irq); |
i | 2701 | drivers/char/stallion.c | return(i); |
i | 2715 | drivers/char/stallion.c | int i; |
i | 2741 | drivers/char/stallion.c | for (i = 0; (i < STL_MAXPANELS); i++) |
i | 2742 | drivers/char/stallion.c | if (brdp->panels[i] != (stlpanel_t *) NULL) |
i | 2743 | drivers/char/stallion.c | stl_initports(brdp, brdp->panels[i]); |
i | 2764 | drivers/char/stallion.c | int i, rc; |
i | 2771 | drivers/char/stallion.c | for (i = 0; (i < STL_MAXBRDS); i++) { |
i | 2772 | drivers/char/stallion.c | if (pcibios_find_device(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_87410, i, &busnr, &devnr)) |
i | 2859 | drivers/char/stallion.c | int i; |
i | 2874 | drivers/char/stallion.c | for (i = 0; (i < stl_nrbrds); i++) { |
i | 2875 | drivers/char/stallion.c | confp = &stl_brdconf[i]; |
i | 2883 | drivers/char/stallion.c | brdp->brdnr = i; |
i | 488 | drivers/char/tpqic02.c | int i; |
i | 490 | drivers/char/tpqic02.c | for (i=1; i<NR_OF_EXC; i++) { |
i | 491 | drivers/char/tpqic02.c | if ((s & exception_list[i].mask)==exception_list[i].code) |
i | 492 | drivers/char/tpqic02.c | return i; |
i | 667 | drivers/char/tpqic02.c | int i; |
i | 686 | drivers/char/tpqic02.c | i = TAPE_NOTIFY_TIMEOUT; |
i | 691 | drivers/char/tpqic02.c | while ((inb_p(QIC02_STAT_PORT) & QIC02_STAT_READY) && (--i>0)) |
i | 693 | drivers/char/tpqic02.c | if (i==0) { |
i | 700 | drivers/char/tpqic02.c | i = TAPE_NOTIFY_TIMEOUT; |
i | 702 | drivers/char/tpqic02.c | while (((inb_p(QIC02_STAT_PORT) & QIC02_STAT_READY) == 0) && (--i>0)) |
i | 704 | drivers/char/tpqic02.c | if (i==0) { |
i | 781 | drivers/char/tpqic02.c | int i, stat; |
i | 783 | drivers/char/tpqic02.c | for (i=0; i<size; i++) { |
i | 789 | drivers/char/tpqic02.c | stat = notify_cmd(sb[i], ignore_ex); |
i | 947 | drivers/char/tpqic02.c | int stat, i; |
i | 955 | drivers/char/tpqic02.c | for (i=0; i<sizeof(vus); i++) { |
i | 956 | drivers/char/tpqic02.c | if ( i % 8 == 0 ) |
i | 958 | drivers/char/tpqic02.c | printk(" %2x", vus[i] & 0xff); |
i | 1801 | drivers/char/tpqic02.c | int stat, r, i; |
i | 1850 | drivers/char/tpqic02.c | if ( (i = get_dma_residue(QIC02_TAPE_DMA)) != 0 ) { |
i | 1851 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": dma_residue == %x !!!\n", i); |
i | 2557 | drivers/char/tpqic02.c | short i; |
i | 2619 | drivers/char/tpqic02.c | for (i=0; i<sizeof(qic02_tape_dynconf); i++) |
i | 2646 | drivers/char/tpqic02.c | for (i=0; i<sizeof(qic02_tape_dynconf); i++) |
i | 2678 | drivers/char/tpqic02.c | for (i=0; i<sizeof(operation); i++) |
i | 2740 | drivers/char/tpqic02.c | for (i=0; i<sizeof(ioctl_status); i++) |
i | 2773 | drivers/char/tpqic02.c | for (i=0; i<sizeof(ioctl_tell); i++) |
i | 162 | drivers/char/tty_io.c | int i, count = 0; |
i | 164 | drivers/char/tty_io.c | for (f = first_file, i=0; i<nr_files; i++, f = f->f_next) { |
i | 347 | drivers/char/tty_io.c | int i; |
i | 354 | drivers/char/tty_io.c | for (filp = first_file, i=0; i<nr_files; i++, filp = filp->f_next) { |
i | 388 | drivers/char/tty_io.c | i = (tty->ldisc.open)(tty); |
i | 389 | drivers/char/tty_io.c | if (i < 0) |
i | 391 | drivers/char/tty_io.c | -i); |
i | 690 | drivers/char/tty_io.c | int i; |
i | 717 | drivers/char/tty_io.c | i = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count); |
i | 719 | drivers/char/tty_io.c | i = -EIO; |
i | 720 | drivers/char/tty_io.c | if (i > 0) |
i | 722 | drivers/char/tty_io.c | return i; |
i | 727 | drivers/char/tty_io.c | int i, is_console; |
i | 753 | drivers/char/tty_io.c | i = (tty->ldisc.write)(tty,file,(const unsigned char *)buf,(unsigned int)count); |
i | 755 | drivers/char/tty_io.c | i = -EIO; |
i | 756 | drivers/char/tty_io.c | if (i > 0) |
i | 758 | drivers/char/tty_io.c | return i; |
i | 1311 | drivers/char/tty_io.c | int i, n = 0; |
i | 1313 | drivers/char/tty_io.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct tstruct)); |
i | 1314 | drivers/char/tty_io.c | if (i) |
i | 1315 | drivers/char/tty_io.c | return i; |
i | 1321 | drivers/char/tty_io.c | for (i=0 ; i<sizeof(struct task_struct) ; i++) |
i | 1588 | drivers/char/tty_io.c | int i; |
i | 1605 | drivers/char/tty_io.c | for (i=0; i < NR_OPEN; i++) { |
i | 1606 | 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 | 181 | drivers/char/tty_ioctl.c | int i; |
i | 184 | drivers/char/tty_ioctl.c | i = verify_area(VERIFY_WRITE, termio, sizeof (struct termio)); |
i | 185 | drivers/char/tty_ioctl.c | if (i) |
i | 186 | drivers/char/tty_ioctl.c | return i; |
i | 33 | drivers/char/vt.c | #define VT_IS_IN_USE(i) (console_driver.table[i] && console_driver.table[i]->count) |
i | 34 | drivers/char/vt.c | #define VT_BUSY(i) (VT_IS_IN_USE(i) || i == fg_console || i == sel_cons) |
i | 107 | drivers/char/vt.c | int i; |
i | 111 | drivers/char/vt.c | for ( i = 0 ; i < MAX_NR_CONSOLES ; i++ ) |
i | 113 | drivers/char/vt.c | if ( console_driver.table[i] ) |
i | 115 | drivers/char/vt.c | if ( row ) console_driver.table[i]->winsize.ws_row = row; |
i | 116 | drivers/char/vt.c | if ( col ) console_driver.table[i]->winsize.ws_col = col; |
i | 188 | drivers/char/vt.c | int i, perm; |
i | 235 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned char)); |
i | 236 | drivers/char/vt.c | if (!i) |
i | 238 | drivers/char/vt.c | return i; |
i | 289 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(int)); |
i | 290 | drivers/char/vt.c | if (!i) |
i | 292 | drivers/char/vt.c | return i; |
i | 328 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(int)); |
i | 329 | drivers/char/vt.c | if (!i) { |
i | 336 | drivers/char/vt.c | return i; |
i | 354 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(int)); |
i | 355 | drivers/char/vt.c | if (!i) { |
i | 360 | drivers/char/vt.c | return i; |
i | 368 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)a, sizeof(struct kbkeycode)); |
i | 369 | drivers/char/vt.c | if (i) |
i | 370 | drivers/char/vt.c | return i; |
i | 386 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)a, sizeof(struct kbkeycode)); |
i | 387 | drivers/char/vt.c | if (i) |
i | 388 | drivers/char/vt.c | return i; |
i | 400 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)a, sizeof(struct kbentry)); |
i | 401 | drivers/char/vt.c | if (i) |
i | 402 | drivers/char/vt.c | return i; |
i | 403 | drivers/char/vt.c | if ((i = get_user(&a->kb_index)) >= NR_KEYS) |
i | 409 | drivers/char/vt.c | val = U(key_map[i]); |
i | 413 | drivers/char/vt.c | val = (i ? K_HOLE : K_NOSUCHMAP); |
i | 427 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (const void *)a, sizeof(struct kbentry)); |
i | 428 | drivers/char/vt.c | if (i) |
i | 429 | drivers/char/vt.c | return i; |
i | 430 | drivers/char/vt.c | if ((i = get_user(&a->kb_index)) >= NR_KEYS) |
i | 435 | drivers/char/vt.c | if (!i && v == K_NOSUCHMAP) { |
i | 456 | drivers/char/vt.c | if (!i) |
i | 475 | drivers/char/vt.c | ov = U(key_map[i]); |
i | 484 | drivers/char/vt.c | key_map[i] = U(v); |
i | 497 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)a, sizeof(struct kbsentry)); |
i | 498 | drivers/char/vt.c | if (i) |
i | 499 | drivers/char/vt.c | return i; |
i | 500 | drivers/char/vt.c | if ((i = get_user(&a->kb_func)) >= MAX_NR_FUNC || i < 0) |
i | 505 | drivers/char/vt.c | p = func_table[i]; |
i | 524 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)a, sizeof(struct kbsentry)); |
i | 525 | drivers/char/vt.c | if (i) |
i | 526 | drivers/char/vt.c | return i; |
i | 527 | drivers/char/vt.c | if ((i = get_user(&a->kb_func)) >= MAX_NR_FUNC) |
i | 529 | drivers/char/vt.c | q = func_table[i]; |
i | 532 | drivers/char/vt.c | for (j = i+1; j < MAX_NR_FUNC && !func_table[j]; j++) ; |
i | 553 | drivers/char/vt.c | func_table[i] = fj; |
i | 564 | drivers/char/vt.c | func_table[i] = fj; |
i | 583 | drivers/char/vt.c | for (p = a->kb_string, q = func_table[i]; ; p++, q++) |
i | 593 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) a, sizeof(struct kbdiacrs)); |
i | 594 | drivers/char/vt.c | if (i) |
i | 595 | drivers/char/vt.c | return i; |
i | 609 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *) a, sizeof(struct kbdiacrs)); |
i | 610 | drivers/char/vt.c | if (i) |
i | 611 | drivers/char/vt.c | return i; |
i | 623 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned char)); |
i | 624 | drivers/char/vt.c | if (i) |
i | 625 | drivers/char/vt.c | return i; |
i | 643 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned char)); |
i | 644 | drivers/char/vt.c | if (i) |
i | 645 | drivers/char/vt.c | return i; |
i | 684 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)vtmode, sizeof(struct vt_mode)); |
i | 685 | drivers/char/vt.c | if (i) |
i | 686 | drivers/char/vt.c | return i; |
i | 705 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct vt_mode)); |
i | 706 | drivers/char/vt.c | if (i) |
i | 707 | drivers/char/vt.c | return i; |
i | 726 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE,(void *)vtstat, sizeof(struct vt_stat)); |
i | 727 | drivers/char/vt.c | if (i) |
i | 728 | drivers/char/vt.c | return i; |
i | 731 | drivers/char/vt.c | for (i = 0, mask = 2; i < MAX_NR_CONSOLES && mask; ++i, mask <<= 1) |
i | 732 | drivers/char/vt.c | if (VT_IS_IN_USE(i)) |
i | 742 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(int)); |
i | 743 | drivers/char/vt.c | if (i) |
i | 744 | drivers/char/vt.c | return i; |
i | 745 | drivers/char/vt.c | for (i = 0; i < MAX_NR_CONSOLES; ++i) |
i | 746 | drivers/char/vt.c | if (! VT_IS_IN_USE(i)) |
i | 748 | drivers/char/vt.c | put_user(i < MAX_NR_CONSOLES ? (i+1) : -1, (int *) arg); |
i | 762 | drivers/char/vt.c | i = vc_allocate(arg); |
i | 763 | drivers/char/vt.c | if (i) |
i | 764 | drivers/char/vt.c | return i; |
i | 820 | drivers/char/vt.c | i = vc_allocate(newvt); |
i | 821 | drivers/char/vt.c | if (i) |
i | 822 | drivers/char/vt.c | return i; |
i | 849 | drivers/char/vt.c | for (i=1; i<MAX_NR_CONSOLES; i++) |
i | 850 | drivers/char/vt.c | if (! VT_BUSY(i)) |
i | 851 | drivers/char/vt.c | vc_disallocate(i); |
i | 868 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)vtsizes, sizeof(struct vt_sizes)); |
i | 869 | drivers/char/vt.c | if (i) |
i | 870 | drivers/char/vt.c | return i; |
i | 873 | drivers/char/vt.c | i = vc_resize(ll, cc); |
i | 874 | drivers/char/vt.c | return i ? i : kd_size_changed(ll, cc); |
i | 883 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)vtconsize, sizeof(struct vt_consize)); |
i | 884 | drivers/char/vt.c | if (i) |
i | 885 | drivers/char/vt.c | return i; |
i | 922 | drivers/char/vt.c | i = vc_resize(ll, cc); |
i | 923 | drivers/char/vt.c | if (i) |
i | 924 | drivers/char/vt.c | return i; |
i | 963 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)arg, |
i | 965 | drivers/char/vt.c | if (i) return i; |
i | 971 | drivers/char/vt.c | i = con_set_font(cfdarg.chardata, |
i | 973 | drivers/char/vt.c | if (i) |
i | 974 | drivers/char/vt.c | return i; |
i | 975 | drivers/char/vt.c | i = con_adjust_height(cfdarg.charheight); |
i | 976 | drivers/char/vt.c | return (i <= 0) ? i : kd_size_changed(i, 0); |
i | 994 | drivers/char/vt.c | i = con_set_font(NULL, 0); /* Set font to default */ |
i | 995 | drivers/char/vt.c | if (i) return i; |
i | 997 | drivers/char/vt.c | i = con_adjust_height(default_font_height); |
i | 998 | drivers/char/vt.c | if ( i > 0 ) kd_size_changed(i, 0); |
i | 1012 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)arg, |
i | 1014 | drivers/char/vt.c | if (i) return i; |
i | 1017 | drivers/char/vt.c | i = cfdarg.charcount; |
i | 1024 | drivers/char/vt.c | if ( i < nchar ) |
i | 1051 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)arg, sizeof(struct unimapinit)); |
i | 1052 | drivers/char/vt.c | if (i) |
i | 1053 | drivers/char/vt.c | return i; |
i | 1066 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)arg, sizeof(struct unimapdesc)); |
i | 1067 | drivers/char/vt.c | if (i == 0) { |
i | 1071 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *) list, |
i | 1074 | drivers/char/vt.c | if (i) |
i | 1075 | drivers/char/vt.c | return i; |
i | 1084 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct unimapdesc)); |
i | 1085 | drivers/char/vt.c | if (i == 0) { |
i | 1090 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) list, |
i | 1093 | drivers/char/vt.c | if (i) |
i | 1094 | drivers/char/vt.c | return i; |
i | 200 | drivers/net/3c501.c | int i; |
i | 208 | drivers/net/3c501.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 209 | drivers/net/3c501.c | int ioaddr = netcard_portlist[i]; |
i | 229 | drivers/net/3c501.c | int i; |
i | 232 | drivers/net/3c501.c | for (i = 0; i < 6; i++) { |
i | 233 | drivers/net/3c501.c | outw(i, ioaddr + EL1_DATAPTR); |
i | 234 | drivers/net/3c501.c | station_addr[i] = inb(ioaddr + EL1_SAPROM); |
i | 613 | drivers/net/3c501.c | int i; |
i | 614 | drivers/net/3c501.c | for (i = 0; i < 6; i++) /* Set the station address. */ |
i | 615 | drivers/net/3c501.c | outb(dev->dev_addr[i], ioaddr + i); |
i | 99 | drivers/net/3c503.c | int i; |
i | 102 | drivers/net/3c503.c | for(i = 7; i >= 0; i--, base_bits >>= 1) |
i | 107 | drivers/net/3c503.c | if (check_region(netcard_portlist[i], EL2_IO_EXTENT)) |
i | 109 | drivers/net/3c503.c | if (el2_probe1(dev, netcard_portlist[i]) == 0) |
i | 125 | drivers/net/3c503.c | int i; |
i | 133 | drivers/net/3c503.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 134 | drivers/net/3c503.c | int ioaddr = netcard_portlist[i]; |
i | 151 | drivers/net/3c503.c | int i, iobase_reg, membase_reg, saved_406; |
i | 197 | drivers/net/3c503.c | for (i = 0; i < 6; i++) |
i | 198 | drivers/net/3c503.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 230 | drivers/net/3c503.c | for (i = sizeof(test_val); i < EL2_MEMSIZE; i+=sizeof(test_val)) { |
i | 231 | drivers/net/3c503.c | writel(test_val, mem_base + i); |
i | 233 | drivers/net/3c503.c | || readl(mem_base + i) != test_val) { |
i | 239 | drivers/net/3c503.c | writel(0, mem_base + i); |
i | 388 | drivers/net/3c503.c | int i; /* Buffer index */ |
i | 410 | drivers/net/3c503.c | for(i = 0; i < count; i++) { |
i | 411 | drivers/net/3c503.c | if (i % 8 == 0) |
i | 413 | drivers/net/3c503.c | if (++boguscount > (i<<3) + 32) { |
i | 415 | drivers/net/3c503.c | dev->name, i, count, boguscount); |
i | 418 | drivers/net/3c503.c | outb(buf[i], E33G_FIFOH); |
i | 428 | drivers/net/3c503.c | unsigned int i; |
i | 443 | drivers/net/3c503.c | for(i = 0; i < sizeof(struct e8390_pkt_hdr); i++) |
i | 444 | drivers/net/3c503.c | ((char *)(hdr))[i] = inb_p(E33G_FIFOH); |
i | 455 | drivers/net/3c503.c | unsigned int i; |
i | 480 | drivers/net/3c503.c | for(i = 0; i < count; i++) { |
i | 481 | drivers/net/3c503.c | if (i % 8 == 0) |
i | 483 | drivers/net/3c503.c | if (++boguscount > (i<<3) + 32) { |
i | 485 | drivers/net/3c503.c | dev->name, i, count, boguscount); |
i | 489 | drivers/net/3c503.c | (skb->data)[i] = inb_p(E33G_FIFOH); |
i | 327 | drivers/net/3c505.c | int i; |
i | 352 | drivers/net/3c505.c | for (i = 0; cont && (i < pcb->length); i++) { |
i | 353 | drivers/net/3c505.c | outb_command(pcb->data.raw[i], dev->base_addr); |
i | 366 | drivers/net/3c505.c | i = GET_ASF(dev->base_addr); |
i | 367 | drivers/net/3c505.c | if ((i == ASF_PCB_ACK) || (i == ASF_PCB_NAK)) |
i | 371 | drivers/net/3c505.c | if (i == ASF_PCB_ACK) { |
i | 375 | drivers/net/3c505.c | else if (i == ASF_PCB_NAK) { |
i | 405 | drivers/net/3c505.c | int i, j; |
i | 444 | drivers/net/3c505.c | i = 0; |
i | 449 | drivers/net/3c505.c | pcb->data.raw[i++] = inb_command(dev->base_addr); |
i | 450 | drivers/net/3c505.c | if (i > MAX_PCB_DATA) |
i | 451 | drivers/net/3c505.c | INVALID_PCB_MSG(i); |
i | 460 | drivers/net/3c505.c | total_length = pcb->data.raw[--i]; |
i | 551 | drivers/net/3c505.c | register int i; |
i | 582 | drivers/net/3c505.c | for (i = 0; i < (rlen/2); i++) { |
i | 604 | drivers/net/3c505.c | for (i = 0; i < (rlen/2); i++) { |
i | 611 | drivers/net/3c505.c | filename,__LINE__, i, rlen/2); |
i | 944 | drivers/net/3c505.c | int i; |
i | 978 | drivers/net/3c505.c | for (i = 0; i < (nlen/2);i++) { |
i | 985 | drivers/net/3c505.c | dev->name,filename,__LINE__, i, nlen/2); |
i | 1181 | drivers/net/3c505.c | int i; |
i | 1191 | drivers/net/3c505.c | for (i=0;i<num_addrs;i++) |
i | 1192 | drivers/net/3c505.c | memcpy(adapter->tx_pcb.data.multicast[i], addrs+6*i,6); |
i | 1378 | drivers/net/3c505.c | int i; |
i | 1441 | drivers/net/3c505.c | for (i = 0; i < 6; i++) |
i | 1442 | drivers/net/3c505.c | dev->dev_addr[i] = adapter.rx_pcb.data.eth_addr[i]; |
i | 312 | drivers/net/3c507.c | int i; |
i | 319 | drivers/net/3c507.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 320 | drivers/net/3c507.c | int ioaddr = netcard_portlist[i]; |
i | 333 | drivers/net/3c507.c | int i, irq, irqval; |
i | 339 | drivers/net/3c507.c | for(i = 0; i < 255; i++) { |
i | 380 | drivers/net/3c507.c | for (i = 0; i < 6; i++) { |
i | 381 | drivers/net/3c507.c | dev->dev_addr[i] = inb(ioaddr + i); |
i | 382 | drivers/net/3c507.c | printk(" %02x", dev->dev_addr[i]); |
i | 120 | drivers/net/3c509.c | short lrs_state = 0xff, i; |
i | 142 | drivers/net/3c509.c | for (i = 0; i < 3; i++) |
i | 143 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
i | 156 | drivers/net/3c509.c | for (i = 0; i < 8; i++) |
i | 157 | drivers/net/3c509.c | if ((mca_adaptor_id(i) | 1) == 0x627c) { |
i | 158 | drivers/net/3c509.c | ioaddr = mca_pos_base_addr(i); |
i | 161 | drivers/net/3c509.c | for (i = 0; i < 3; i++) |
i | 162 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
i | 186 | drivers/net/3c509.c | for(i = 0; i < 255; i++) { |
i | 205 | drivers/net/3c509.c | for (i = 0; i < 3; i++) { |
i | 206 | drivers/net/3c509.c | phys_addr[i] = htons(id_read_eeprom(i)); |
i | 246 | drivers/net/3c509.c | for (i = 0; i < 6; i++) |
i | 247 | drivers/net/3c509.c | printk(" %2.2x", dev->dev_addr[i]); |
i | 315 | drivers/net/3c509.c | int i; |
i | 341 | drivers/net/3c509.c | for (i = 0; i < 6; i++) |
i | 342 | drivers/net/3c509.c | outb(dev->dev_addr[i], ioaddr + i); |
i | 356 | drivers/net/3c509.c | for (i = 0; i < 9; i++) |
i | 357 | drivers/net/3c509.c | inb(ioaddr + i); |
i | 461 | drivers/net/3c509.c | int i = 4; |
i | 463 | drivers/net/3c509.c | while (--i > 0 && (tx_status = inb(ioaddr + TX_STATUS)) > 0) { |
i | 479 | drivers/net/3c509.c | int i = 0; |
i | 512 | drivers/net/3c509.c | if (++i > 10) { |
i | 631 | drivers/net/8390.c | int i; |
i | 660 | drivers/net/8390.c | for(i = 0; i < 6; i++) { |
i | 661 | drivers/net/8390.c | outb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i); |
i | 665 | drivers/net/8390.c | for(i = 0; i < 8; i++) |
i | 666 | drivers/net/8390.c | outb_p(0xff, e8390_base + EN1_MULT + i); |
i | 114 | drivers/net/ac3200.c | int i; |
i | 119 | drivers/net/ac3200.c | for(i = 0; i < 6; i++) |
i | 120 | drivers/net/ac3200.c | printk(" %02x", inb(ioaddr + AC_SA_PROM + i)); |
i | 135 | drivers/net/ac3200.c | for (i = 0; i < 4; i++) |
i | 142 | drivers/net/ac3200.c | for(i = 0; i < ETHER_ADDR_LEN; i++) |
i | 143 | drivers/net/ac3200.c | dev->dev_addr[i] = inb(ioaddr + AC_SA_PROM + i); |
i | 169 | drivers/net/ac3200.c | for (i = 0; i < 7; i++) |
i | 170 | drivers/net/ac3200.c | if (addrmap[i] == dev->mem_start) |
i | 172 | drivers/net/ac3200.c | if (i >= 7) |
i | 173 | drivers/net/ac3200.c | i = 0; |
i | 174 | drivers/net/ac3200.c | outb((inb(ioaddr + AC_CONFIG) & ~7) | i, ioaddr + AC_CONFIG); |
i | 203 | drivers/net/apricot.c | int i; |
i | 210 | drivers/net/apricot.c | for (i = 0; i < num; i++) |
i | 219 | drivers/net/apricot.c | if (i == 0) |
i | 231 | drivers/net/apricot.c | if (i != 0) |
i | 234 | drivers/net/apricot.c | return (i); |
i | 540 | drivers/net/apricot.c | int i; |
i | 550 | drivers/net/apricot.c | i = init_rx_bufs(dev, RX_RING_SIZE); |
i | 552 | drivers/net/apricot.c | if ((i = init_rx_bufs(dev, RX_RING_SIZE)) < RX_RING_SIZE) |
i | 553 | drivers/net/apricot.c | printk("%s: only able to allocate %d receive buffers\n", dev->name, i); |
i | 555 | drivers/net/apricot.c | if (i < 4) |
i | 671 | drivers/net/apricot.c | int i; |
i | 674 | drivers/net/apricot.c | for (i = 0; i < 6; i++) |
i | 675 | drivers/net/apricot.c | printk(" %2.2X", (unsigned char)add[i]); |
i | 679 | drivers/net/apricot.c | for (i = 0; i < 6; i++) |
i | 680 | drivers/net/apricot.c | printk(" %2.2X", (unsigned char)add[i+6]); |
i | 687 | drivers/net/apricot.c | int i; |
i | 699 | drivers/net/apricot.c | for (i = 0; i < 8; i++) |
i | 701 | drivers/net/apricot.c | eth_addr[i] = inb(ioaddr+8+i); |
i | 702 | drivers/net/apricot.c | checksum += eth_addr[i]; |
i | 723 | drivers/net/apricot.c | for (i = 0; i < 6; i++) |
i | 724 | drivers/net/apricot.c | printk(" %2.2X", dev->dev_addr[i] = eth_addr[i]); |
i | 1163 | drivers/net/arcnet.c | short i; |
i | 1164 | drivers/net/arcnet.c | for( i=0; i< skb->len; i++) |
i | 1166 | drivers/net/arcnet.c | if( i%16 == 0 ) printk("\n[%04hX] ",i); |
i | 1167 | drivers/net/arcnet.c | printk("%02hX ",((unsigned char*)skb->data)[i]); |
i | 1992 | drivers/net/arcnet.c | short i; |
i | 1993 | drivers/net/arcnet.c | for( i=0; i< skb->len; i++) |
i | 1995 | drivers/net/arcnet.c | if( i%16 == 0 ) printk("\n[%04hX] ",i); |
i | 1996 | drivers/net/arcnet.c | printk("%02hX ",((unsigned char*)skb->data)[i]); |
i | 2158 | drivers/net/arcnet.c | short i; |
i | 2159 | drivers/net/arcnet.c | for( i=0; i< skb->len; i++) |
i | 2161 | drivers/net/arcnet.c | if( i%16 == 0 ) printk("\n[%04hX] ",i); |
i | 2162 | drivers/net/arcnet.c | printk("%02hX ",((unsigned char*)skb->data)[i]); |
i | 2206 | drivers/net/arcnet.c | short i; |
i | 2208 | drivers/net/arcnet.c | for(i=0; i<skb->len; i++) |
i | 2210 | drivers/net/arcnet.c | if (i%16==0) |
i | 2211 | drivers/net/arcnet.c | printk("\n[%04hX] ",i); |
i | 2213 | drivers/net/arcnet.c | printk("%02hX ",((u_char *)skb->data)[i]); |
i | 147 | drivers/net/at1700.c | int i; |
i | 155 | drivers/net/at1700.c | for (i = 0; at1700_probe_list[i]; i++) { |
i | 156 | drivers/net/at1700.c | int ioaddr = at1700_probe_list[i]; |
i | 178 | drivers/net/at1700.c | unsigned int i, irq; |
i | 221 | drivers/net/at1700.c | for(i = 0; i < 3; i++) { |
i | 222 | drivers/net/at1700.c | unsigned short eeprom_val = read_eeprom(ioaddr, 4+i); |
i | 224 | drivers/net/at1700.c | ((unsigned short *)dev->dev_addr)[i] = ntohs(eeprom_val); |
i | 243 | drivers/net/at1700.c | for (i = 0; i < 6; i++) |
i | 244 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
i | 248 | drivers/net/at1700.c | for (i = 0; i < 8; i++) |
i | 249 | drivers/net/at1700.c | outb(0x00, ioaddr + 8 + i); |
i | 285 | drivers/net/at1700.c | int i; |
i | 295 | drivers/net/at1700.c | for (i = 9; i >= 0; i--) { |
i | 296 | drivers/net/at1700.c | short dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0; |
i | 305 | drivers/net/at1700.c | for (i = 16; i > 0; i--) { |
i | 328 | drivers/net/at1700.c | int i; |
i | 334 | drivers/net/at1700.c | for (i = 0; i < 6; i++) |
i | 335 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
i | 339 | drivers/net/at1700.c | for (i = 0; i < 8; i++) |
i | 340 | drivers/net/at1700.c | outb(0x00, ioaddr + 8 + i); |
i | 564 | drivers/net/at1700.c | int i; |
i | 565 | drivers/net/at1700.c | for (i = 0; i < 20; i++) { |
i | 574 | drivers/net/at1700.c | dev->name, inb(ioaddr + RX_MODE), i); |
i | 265 | drivers/net/atp.c | int i; |
i | 274 | drivers/net/atp.c | for (i = 0; i < 3; i++) |
i | 275 | drivers/net/atp.c | ((unsigned short *)dev->dev_addr)[i] = |
i | 276 | drivers/net/atp.c | ntohs(eeprom_op(ioaddr, EE_READ(sa_offset + i))); |
i | 346 | drivers/net/atp.c | int i; |
i | 350 | drivers/net/atp.c | for (i = 0; i < 6; i++) |
i | 351 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
i | 585 | drivers/net/atp.c | int i; |
i | 586 | drivers/net/atp.c | for (i = 0; i < 6; i++) |
i | 587 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
i | 615 | drivers/net/atp.c | int i; |
i | 620 | drivers/net/atp.c | for (i = 0; i < 6; i++) |
i | 622 | drivers/net/atp.c | if (read_cmd_byte(ioaddr, PAR0 + i) != atp_timed_dev->dev_addr[i]) |
i | 625 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, atp_timed_dev->dev_addr[i]); |
i | 626 | drivers/net/atp.c | if (i == 2) |
i | 628 | drivers/net/atp.c | else if (i == 3) |
i | 630 | drivers/net/atp.c | else if (i == 4) |
i | 636 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, atp_timed_dev->dev_addr[i]); |
i | 63 | drivers/net/auto_irq.c | int i, mask; |
i | 68 | drivers/net/auto_irq.c | for (i = 0; i < 16; i++) { |
i | 69 | drivers/net/auto_irq.c | if (test_bit(i, &irqs_busy) == 0 |
i | 70 | drivers/net/auto_irq.c | && request_irq(i, autoirq_probe, SA_INTERRUPT, "irq probe") == 0) |
i | 71 | drivers/net/auto_irq.c | set_bit(i, (void *)&irq_handled); /* irq_handled |= 1 << i;*/ |
i | 82 | drivers/net/auto_irq.c | for (i = 0, mask = 0x01; i < 16; i++, mask <<= 1) { |
i | 86 | drivers/net/auto_irq.c | printk(" Spurious interrupt on IRQ %d\n", i); |
i | 88 | drivers/net/auto_irq.c | free_irq(i); |
i | 96 | drivers/net/auto_irq.c | int i; |
i | 107 | drivers/net/auto_irq.c | for (i = 0; i < 16; i++) { |
i | 108 | drivers/net/auto_irq.c | if (test_bit(i, (void *)&irq_handled)) |
i | 109 | drivers/net/auto_irq.c | free_irq(i); |
i | 486 | drivers/net/de4x5.c | int i;\ |
i | 487 | drivers/net/de4x5.c | i=inl(DE4X5_BMR);\ |
i | 489 | drivers/net/de4x5.c | outl(i | BMR_SWR, DE4X5_BMR);\ |
i | 491 | drivers/net/de4x5.c | outl(i, DE4X5_BMR);\ |
i | 493 | drivers/net/de4x5.c | for (i=0;i<5;i++) {inl(DE4X5_BMR); dce_ms_delay(1);}\ |
i | 533 | drivers/net/de4x5.c | int tmpbus, tmpchs, i, j, status=0; |
i | 574 | drivers/net/de4x5.c | for (i = 0; i < ETH_ALEN - 1; i++) { /* get the ethernet addr. */ |
i | 575 | drivers/net/de4x5.c | printk("%2.2x:", dev->dev_addr[i]); |
i | 577 | drivers/net/de4x5.c | printk("%2.2x,\n", dev->dev_addr[i]); |
i | 635 | drivers/net/de4x5.c | for (i=0; i<NUM_RX_DESC; i++) { |
i | 636 | drivers/net/de4x5.c | lp->rx_ring[i].status = 0; |
i | 637 | drivers/net/de4x5.c | lp->rx_ring[i].des1 = RX_BUFF_SZ; |
i | 638 | drivers/net/de4x5.c | lp->rx_ring[i].buf = virt_to_bus(tmp + i * RX_BUFF_SZ); |
i | 639 | drivers/net/de4x5.c | lp->rx_ring[i].next = (u32)NULL; |
i | 678 | drivers/net/de4x5.c | for (dev->irq=0,i=0; (i<sizeof(de4x5_irq)) && (!dev->irq); i++) { |
i | 679 | drivers/net/de4x5.c | if (irqnum == de4x5_irq[i]) { |
i | 762 | drivers/net/de4x5.c | int i, status = 0; |
i | 787 | drivers/net/de4x5.c | for (i=0;i<6;i++){ |
i | 788 | drivers/net/de4x5.c | printk("%2.2x:",(short)dev->dev_addr[i]); |
i | 794 | drivers/net/de4x5.c | for (i=0;i<lp->rxRingSize-1;i++){ |
i | 795 | drivers/net/de4x5.c | if (i < 3) { |
i | 796 | drivers/net/de4x5.c | printk("0x%8.8lx ",(u_long)&lp->rx_ring[i].status); |
i | 799 | drivers/net/de4x5.c | printk("...0x%8.8lx\n",(u_long)&lp->rx_ring[i].status); |
i | 801 | drivers/net/de4x5.c | for (i=0;i<lp->txRingSize-1;i++){ |
i | 802 | drivers/net/de4x5.c | if (i < 3) { |
i | 803 | drivers/net/de4x5.c | printk("0x%8.8lx ", (u_long)&lp->tx_ring[i].status); |
i | 806 | drivers/net/de4x5.c | printk("...0x%8.8lx\n", (u_long)&lp->tx_ring[i].status); |
i | 808 | drivers/net/de4x5.c | for (i=0;i<lp->rxRingSize-1;i++){ |
i | 809 | drivers/net/de4x5.c | if (i < 3) { |
i | 810 | drivers/net/de4x5.c | printk("0x%8.8x ",lp->rx_ring[i].buf); |
i | 813 | drivers/net/de4x5.c | printk("...0x%8.8x\n",lp->rx_ring[i].buf); |
i | 815 | drivers/net/de4x5.c | for (i=0;i<lp->txRingSize-1;i++){ |
i | 816 | drivers/net/de4x5.c | if (i < 3) { |
i | 817 | drivers/net/de4x5.c | printk("0x%8.8x ", lp->tx_ring[i].buf); |
i | 820 | drivers/net/de4x5.c | printk("...0x%8.8x\n", lp->tx_ring[i].buf); |
i | 875 | drivers/net/de4x5.c | int i, j, status = 0; |
i | 900 | drivers/net/de4x5.c | for (i = 0; i < lp->rxRingSize; i++) { |
i | 901 | drivers/net/de4x5.c | lp->rx_ring[i].status = R_OWN; |
i | 904 | drivers/net/de4x5.c | for (i = 0; i < lp->txRingSize; i++) { |
i | 905 | drivers/net/de4x5.c | lp->tx_ring[i].status = 0; |
i | 921 | drivers/net/de4x5.c | for (j=0, i=jiffies;(i<=jiffies+HZ/100) && (j==0);) { |
i | 951 | drivers/net/de4x5.c | int i, status = 0; |
i | 985 | drivers/net/de4x5.c | for (i=lp->tx_old; i!=lp->tx_new; i=(++i)%lp->txRingSize) { |
i | 986 | drivers/net/de4x5.c | if (lp->skb[i] != NULL) { |
i | 987 | drivers/net/de4x5.c | if (lp->skb[i]->len != FAKE_FRAME_LEN) { |
i | 988 | drivers/net/de4x5.c | if (lp->tx_ring[i].status == T_OWN) { |
i | 989 | drivers/net/de4x5.c | dev_queue_xmit(lp->skb[i], dev, SOPRI_NORMAL); |
i | 991 | drivers/net/de4x5.c | dev_kfree_skb(lp->skb[i], FREE_WRITE); |
i | 994 | drivers/net/de4x5.c | dev_kfree_skb(lp->skb[i], FREE_WRITE); |
i | 996 | drivers/net/de4x5.c | lp->skb[i] = NULL; |
i | 1137 | drivers/net/de4x5.c | int i, entry; |
i | 1176 | drivers/net/de4x5.c | for (i=1; i<DE4X5_PKT_STAT_SZ-1; i++) { |
i | 1177 | drivers/net/de4x5.c | if (pkt_len < (i*DE4X5_PKT_BIN_SZ)) { |
i | 1178 | drivers/net/de4x5.c | lp->pktStats.bins[i]++; |
i | 1179 | drivers/net/de4x5.c | i = DE4X5_PKT_STAT_SZ; |
i | 1434 | drivers/net/de4x5.c | int i, j, bit, byte; |
i | 1448 | drivers/net/de4x5.c | for (i=0;i<num_addrs;i++) { /* for each address in the list */ |
i | 1476 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1477 | drivers/net/de4x5.c | *(pa + (i&1)) = *addrs++; |
i | 1478 | drivers/net/de4x5.c | if (i & 0x01) pa += 4; |
i | 1496 | drivers/net/de4x5.c | int i, maxSlots, status; |
i | 1510 | drivers/net/de4x5.c | i = 1; |
i | 1514 | drivers/net/de4x5.c | i = (ioaddr >> 12); |
i | 1515 | drivers/net/de4x5.c | maxSlots = i + 1; |
i | 1518 | drivers/net/de4x5.c | for (status = -ENODEV; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) { |
i | 1817 | drivers/net/de4x5.c | int i, linkBad; |
i | 1823 | drivers/net/de4x5.c | for (linkBad=1,i=0;(i<t_3s) && linkBad && !(sisr & SISR_NCR);i++) { |
i | 2031 | drivers/net/de4x5.c | int i, entry, linkBad; |
i | 2047 | drivers/net/de4x5.c | for (linkBad=1,i=0;(i<t_3s) && linkBad;i++) { |
i | 2108 | drivers/net/de4x5.c | s32 i = 2048, j; |
i | 2113 | drivers/net/de4x5.c | i = 8192; |
i | 2115 | drivers/net/de4x5.c | i = 819; |
i | 2119 | drivers/net/de4x5.c | outl((s32)(msec * 10000)/i, DE4X5_GPT); |
i | 2129 | drivers/net/de4x5.c | int i; |
i | 2132 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { /* Use this source address */ |
i | 2133 | drivers/net/de4x5.c | *buf++ = dev->dev_addr[i]; |
i | 2135 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { /* Use this destination address */ |
i | 2136 | drivers/net/de4x5.c | *buf++ = dev->dev_addr[i]; |
i | 2160 | drivers/net/de4x5.c | u_int i; |
i | 2162 | drivers/net/de4x5.c | for (i=0; i<msec; i++) { |
i | 2175 | drivers/net/de4x5.c | u_int i; |
i | 2194 | drivers/net/de4x5.c | for (i=0;(*signatures[i] != '\0') && (*name == '\0');i++) { |
i | 2195 | drivers/net/de4x5.c | if (strstr(ManCode, signatures[i]) != NULL) { |
i | 2226 | drivers/net/de4x5.c | int i, j, tmp, status = 0; |
i | 2235 | drivers/net/de4x5.c | for (i=0,j=0;(j<sigLength) && (i<PROBE_LENGTH+sigLength-1);i++) { |
i | 2259 | drivers/net/de4x5.c | for (i=0; i<(sizeof(struct de4x5_srom)>>1); i++) { |
i | 2260 | drivers/net/de4x5.c | *p++ = srom_rd(aprom_addr, i); |
i | 2270 | drivers/net/de4x5.c | int i, k, tmp, status = 0; |
i | 2274 | drivers/net/de4x5.c | for (i=0,k=0,j=0;j<3;j++) { |
i | 2282 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 2285 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 2287 | drivers/net/de4x5.c | dev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++; |
i | 2288 | drivers/net/de4x5.c | dev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++; |
i | 2292 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 2294 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 2353 | drivers/net/de4x5.c | int i; |
i | 2357 | drivers/net/de4x5.c | for (i=0; i<6; i++, a <<= 1) { |
i | 2362 | drivers/net/de4x5.c | i = (getfrom_srom(addr) >> 3) & 0x01; |
i | 2363 | drivers/net/de4x5.c | if (i != 0) { |
i | 2373 | drivers/net/de4x5.c | int i; |
i | 2377 | drivers/net/de4x5.c | for (i=0; i<16; i++) { |
i | 2426 | drivers/net/de4x5.c | int i; |
i | 2435 | drivers/net/de4x5.c | for (pa=lp->setup_frame+IMPERF_PA_OFFSET, i=0; i<ETH_ALEN; i++) { |
i | 2436 | drivers/net/de4x5.c | *(pa + i) = dev->dev_addr[i]; /* Host address */ |
i | 2437 | drivers/net/de4x5.c | if (i & 0x01) pa += 2; |
i | 2441 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { /* Host address */ |
i | 2442 | drivers/net/de4x5.c | *(pa + (i&1)) = dev->dev_addr[i]; |
i | 2443 | drivers/net/de4x5.c | if (i & 0x01) pa += 4; |
i | 2445 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { /* Broadcast address */ |
i | 2446 | drivers/net/de4x5.c | *(pa + (i&1)) = (char) 0xff; |
i | 2447 | drivers/net/de4x5.c | if (i & 0x01) pa += 4; |
i | 2501 | drivers/net/de4x5.c | int i, j, status = 0; |
i | 2515 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { |
i | 2516 | drivers/net/de4x5.c | tmp.addr[i] = dev->dev_addr[i]; |
i | 2530 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { |
i | 2531 | drivers/net/de4x5.c | dev->dev_addr[i] = tmp.addr[i]; |
i | 2673 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { |
i | 2674 | drivers/net/de4x5.c | tmp.addr[j++] = dev->dev_addr[i]; |
i | 2680 | drivers/net/de4x5.c | for (i=0;i<lp->rxRingSize-1;i++){ |
i | 2681 | drivers/net/de4x5.c | if (i < 3) { |
i | 2682 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->rx_ring[i].status; j+=4; |
i | 2685 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->rx_ring[i].status; j+=4; |
i | 2686 | drivers/net/de4x5.c | for (i=0;i<lp->txRingSize-1;i++){ |
i | 2687 | drivers/net/de4x5.c | if (i < 3) { |
i | 2688 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->tx_ring[i].status; j+=4; |
i | 2691 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->tx_ring[i].status; j+=4; |
i | 2693 | drivers/net/de4x5.c | for (i=0;i<lp->rxRingSize-1;i++){ |
i | 2694 | drivers/net/de4x5.c | if (i < 3) { |
i | 2695 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->rx_ring[i].buf; j+=4; |
i | 2698 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->rx_ring[i].buf; j+=4; |
i | 2699 | drivers/net/de4x5.c | for (i=0;i<lp->txRingSize-1;i++){ |
i | 2700 | drivers/net/de4x5.c | if (i < 3) { |
i | 2701 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->tx_ring[i].buf; j+=4; |
i | 2704 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->tx_ring[i].buf; j+=4; |
i | 2706 | drivers/net/de4x5.c | for (i=0;i<lp->rxRingSize;i++){ |
i | 2707 | drivers/net/de4x5.c | tmp.lval[j>>2] = lp->rx_ring[i].status; j+=4; |
i | 2709 | drivers/net/de4x5.c | for (i=0;i<lp->txRingSize;i++){ |
i | 2710 | drivers/net/de4x5.c | tmp.lval[j>>2] = lp->tx_ring[i].status; j+=4; |
i | 588 | drivers/net/de600.c | int i; |
i | 629 | drivers/net/de600.c | for (i = size; i > 0; --i, ++buffer) |
i | 647 | drivers/net/de600.c | int i; |
i | 674 | drivers/net/de600.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 675 | drivers/net/de600.c | dev->dev_addr[i] = de600_read_byte(READ_DATA, dev); |
i | 676 | drivers/net/de600.c | dev->broadcast[i] = 0xff; |
i | 701 | drivers/net/de600.c | for (i = 1; i < ETH_ALEN; i++) |
i | 702 | drivers/net/de600.c | printk(":%02X",dev->dev_addr[i]); |
i | 725 | drivers/net/de600.c | int i; |
i | 772 | drivers/net/de600.c | for (i = 0; i < ETH_ALEN; i++) |
i | 773 | drivers/net/de600.c | de600_put_byte(dev->dev_addr[i]); |
i | 720 | drivers/net/de620.c | int i; |
i | 745 | drivers/net/de620.c | for (i = 0; i < 6; ++i) { /* W_PARn = 0xaa + n */ |
i | 746 | drivers/net/de620.c | de620_set_register(dev, W_PAR0 + i, dev->dev_addr[i]); |
i | 771 | drivers/net/de620.c | if (((i = de620_get_register(dev, R_STS)) & CHECK_MASK) != CHECK_OK) { |
i | 776 | drivers/net/de620.c | "! (%02x)\n", i); |
i | 809 | drivers/net/de620.c | int i; |
i | 841 | drivers/net/de620.c | for (i = 1; i < ETH_ALEN; i++) { |
i | 842 | drivers/net/de620.c | printk(":%2.2X", dev->dev_addr[i] = nic_data.NodeID[i]); |
i | 843 | drivers/net/de620.c | dev->broadcast[i] = 0xff; |
i | 453 | drivers/net/depca.c | int i, j, offset, netRAM, mem_len, status=0; |
i | 482 | drivers/net/depca.c | for (i=0; i<ETH_ALEN - 1; i++) { /* get the ethernet address */ |
i | 483 | drivers/net/depca.c | printk("%2.2x:", dev->dev_addr[i]); |
i | 485 | drivers/net/depca.c | printk("%2.2x", dev->dev_addr[i]); |
i | 544 | drivers/net/depca.c | for (i=0, j = lp->rxRingMask; j>0; i++) { |
i | 547 | drivers/net/depca.c | lp->rx_rlen = (s32)(i << 29); |
i | 548 | drivers/net/depca.c | for (i=0, j = lp->txRingMask; j>0; i++) { |
i | 551 | drivers/net/depca.c | lp->tx_rlen = (s32)(i << 29); |
i | 596 | drivers/net/depca.c | for (dev->irq=0,i=0; (depca_irq[i]) && (!dev->irq); i++) { |
i | 597 | drivers/net/depca.c | if (irqnum == depca_irq[i]) { |
i | 660 | drivers/net/depca.c | int i, status = 0; |
i | 690 | drivers/net/depca.c | for (i=0;i<lp->rxRingMask;i++){ |
i | 691 | drivers/net/depca.c | if (i < 3) { |
i | 692 | drivers/net/depca.c | printk("0x%8.8lx ", (long) &lp->rx_ring[i].base); |
i | 695 | drivers/net/depca.c | printk("...0x%8.8lx\n", (long) &lp->rx_ring[i].base); |
i | 697 | drivers/net/depca.c | for (i=0;i<lp->txRingMask;i++){ |
i | 698 | drivers/net/depca.c | if (i < 3) { |
i | 699 | drivers/net/depca.c | printk("0x%8.8lx ", (long) &lp->tx_ring[i].base); |
i | 702 | drivers/net/depca.c | printk("...0x%8.8lx\n", (long) &lp->tx_ring[i].base); |
i | 704 | drivers/net/depca.c | for (i=0;i<lp->rxRingMask;i++){ |
i | 705 | drivers/net/depca.c | if (i < 3) { |
i | 706 | drivers/net/depca.c | printk("0x%8.8x ", readl(&lp->rx_ring[i].base)); |
i | 709 | drivers/net/depca.c | printk("...0x%8.8x\n", readl(&lp->rx_ring[i].base)); |
i | 711 | drivers/net/depca.c | for (i=0;i<lp->txRingMask;i++){ |
i | 712 | drivers/net/depca.c | if (i < 3) { |
i | 713 | drivers/net/depca.c | printk("0x%8.8x ", readl(&lp->tx_ring[i].base)); |
i | 716 | drivers/net/depca.c | printk("...0x%8.8x\n", readl(&lp->tx_ring[i].base)); |
i | 721 | drivers/net/depca.c | for (i=0;i<ETH_ALEN-1;i++){ |
i | 722 | drivers/net/depca.c | printk("%2.2x:",(u_char)readb(&p->phys_addr[i])); |
i | 724 | drivers/net/depca.c | printk("%2.2x\n",(u_char)readb(&p->phys_addr[i])); |
i | 726 | drivers/net/depca.c | for (i=0;i<(HASH_TABLE_LEN >> 3)-1;i++){ |
i | 727 | drivers/net/depca.c | printk("%2.2x:",(u_char)readb(&p->mcast_table[i])); |
i | 729 | drivers/net/depca.c | printk("%2.2x\n",(u_char)readb(&p->mcast_table[i])); |
i | 773 | drivers/net/depca.c | u_int i; |
i | 783 | drivers/net/depca.c | for (i = 0; i <= lp->rxRingMask; i++) { |
i | 784 | drivers/net/depca.c | writel((p=lp->dma_buffs+i*RX_BUFF_SZ) | R_OWN, &lp->rx_ring[i].base); |
i | 785 | drivers/net/depca.c | writew(-RX_BUFF_SZ, &lp->rx_ring[i].buf_length); |
i | 786 | drivers/net/depca.c | lp->rx_memcpy[i]=(char *)(p+lp->bus_offset); |
i | 788 | drivers/net/depca.c | for (i = 0; i <= lp->txRingMask; i++) { |
i | 789 | drivers/net/depca.c | writel((p=lp->dma_buffs+(i+lp->txRingMask+1)*TX_BUFF_SZ) & 0x00ffffff, |
i | 790 | drivers/net/depca.c | &lp->tx_ring[i].base); |
i | 791 | drivers/net/depca.c | lp->tx_memcpy[i]=(char *)(p+lp->bus_offset); |
i | 800 | drivers/net/depca.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 801 | drivers/net/depca.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
i | 927 | drivers/net/depca.c | int i, entry; |
i | 973 | drivers/net/depca.c | for (i=1; i<DEPCA_PKT_STAT_SZ-1; i++) { |
i | 974 | drivers/net/depca.c | if (pkt_len < (i*DEPCA_PKT_BIN_SZ)) { |
i | 975 | drivers/net/depca.c | lp->pktStats.bins[i]++; |
i | 976 | drivers/net/depca.c | i = DEPCA_PKT_STAT_SZ; |
i | 1122 | drivers/net/depca.c | int i, status=0; |
i | 1131 | drivers/net/depca.c | for (i=0;(i<100) && !(inw(DEPCA_DATA) & IDON); i++); |
i | 1133 | drivers/net/depca.c | if (i!=100) { |
i | 1138 | drivers/net/depca.c | dev->name, i, lp->sh_mem, inw(DEPCA_DATA)); |
i | 1142 | drivers/net/depca.c | dev->name, i, lp->sh_mem, inw(DEPCA_DATA)); |
i | 1202 | drivers/net/depca.c | int i, j, bit, byte; |
i | 1207 | drivers/net/depca.c | for (i=0; i<(HASH_TABLE_LEN>>3); i++) { |
i | 1208 | drivers/net/depca.c | lp->init_block.mcast_table[i] = (char)0xff; |
i | 1212 | drivers/net/depca.c | for (i=0; i<(HASH_TABLE_LEN>>3); i++){ |
i | 1213 | drivers/net/depca.c | lp->init_block.mcast_table[i]=0; |
i | 1217 | drivers/net/depca.c | for (i=0;i<num_addrs;i++) { /* for each address in the list */ |
i | 1249 | drivers/net/depca.c | int i = num_depcas, maxSlots; |
i | 1254 | drivers/net/depca.c | if (i >= MAX_NUM_DEPCAS) return; /* Too many ISA adapters */ |
i | 1259 | drivers/net/depca.c | ports[i] = ioaddr; |
i | 1260 | drivers/net/depca.c | maxSlots = i + 1; |
i | 1263 | drivers/net/depca.c | for (; (i<maxSlots) && (dev!=NULL) && ports[i]; i++) { |
i | 1264 | drivers/net/depca.c | if (DevicePresent(ports[i]) == 0) { |
i | 1265 | drivers/net/depca.c | if (check_region(ports[i], DEPCA_TOTAL_SIZE) == 0) { |
i | 1266 | drivers/net/depca.c | if ((dev = alloc_device(dev, ports[i])) != NULL) { |
i | 1267 | drivers/net/depca.c | if (depca_hw_init(dev, ports[i]) == 0) { |
i | 1273 | drivers/net/depca.c | printk("%s: region already allocated at 0x%04x.\n", dev->name,ports[i]); |
i | 1287 | drivers/net/depca.c | int i, maxSlots; |
i | 1296 | drivers/net/depca.c | i = 1; |
i | 1300 | drivers/net/depca.c | i = (ioaddr >> 12); |
i | 1301 | drivers/net/depca.c | maxSlots = i + 1; |
i | 1305 | drivers/net/depca.c | for (; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) { |
i | 1442 | drivers/net/depca.c | u_int i,j,k; |
i | 1446 | drivers/net/depca.c | for (i=0;i<16;i++) { /* copy the first 16 bytes of ROM to */ |
i | 1447 | drivers/net/depca.c | tmpstr[i] = readb(paddr+0xc000+i); /* a temporary string */ |
i | 1451 | drivers/net/depca.c | for (i=0;*signatures[i]!='\0' && *name=='\0';i++) { |
i | 1452 | drivers/net/depca.c | for (j=0,k=0;j<16 && k<strlen(signatures[i]);j++) { |
i | 1453 | drivers/net/depca.c | if (signatures[i][k] == tmpstr[j]) { /* track signature */ |
i | 1459 | drivers/net/depca.c | if (k == strlen(signatures[i])) { |
i | 1460 | drivers/net/depca.c | strcpy(name,signatures[i]); |
i | 1464 | drivers/net/depca.c | adapter = i - 1; |
i | 1496 | drivers/net/depca.c | int i, j, status = 0; |
i | 1511 | drivers/net/depca.c | for (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) { |
i | 1539 | drivers/net/depca.c | int i, k, tmp, status = 0; |
i | 1544 | drivers/net/depca.c | for (i=0,k=0,j=0;j<3;j++) { |
i | 1549 | drivers/net/depca.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 1551 | drivers/net/depca.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 1570 | drivers/net/depca.c | int i, entry, end, len, status = 0; |
i | 1589 | drivers/net/depca.c | for (i = entry; i != end; i = (++i) & lp->txRingMask) { |
i | 1591 | drivers/net/depca.c | writel(readl(&lp->tx_ring[i].base) & ~T_FLAGS, &lp->tx_ring[i].base); |
i | 1592 | drivers/net/depca.c | writew(0x0000, &lp->tx_ring[i].misc); /* clears other error flags */ |
i | 1593 | drivers/net/depca.c | writew(-TX_BUFF_SZ, &lp->tx_ring[i].length);/* packet length in buffer */ |
i | 1606 | drivers/net/depca.c | for (i=end; i!=entry; --i) { |
i | 1608 | drivers/net/depca.c | writel(readl(&lp->tx_ring[i].base) | T_OWN, &lp->tx_ring[i].base); |
i | 1609 | drivers/net/depca.c | if (i == 0) i=lp->txRingMask+1; |
i | 1626 | drivers/net/depca.c | u_int i; |
i | 1645 | drivers/net/depca.c | for (i=0;(*signatures[i] != '\0') && (*name == '\0');i++) { |
i | 1646 | drivers/net/depca.c | if (strstr(ManCode, signatures[i]) != NULL) { |
i | 1663 | drivers/net/depca.c | int i, status = 0; |
i | 1673 | drivers/net/depca.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1674 | drivers/net/depca.c | tmp.addr[i] = dev->dev_addr[i]; |
i | 1686 | drivers/net/depca.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1687 | drivers/net/depca.c | dev->dev_addr[i] = tmp.addr[i]; |
i | 1802 | drivers/net/depca.c | i=0; |
i | 1803 | drivers/net/depca.c | tmp.sval[i++] = inw(DEPCA_NICSR); |
i | 1805 | drivers/net/depca.c | tmp.sval[i++] = inw(DEPCA_DATA); |
i | 1806 | drivers/net/depca.c | memcpy(&tmp.sval[i], &lp->init_block, sizeof(struct depca_init)); |
i | 1807 | drivers/net/depca.c | ioc->len = i+sizeof(struct depca_init); |
i | 142 | drivers/net/e2100.c | int i, status; |
i | 159 | drivers/net/e2100.c | for (i = 0; i < 6; i++) |
i | 160 | drivers/net/e2100.c | station_addr[i] = inb(ioaddr + E21_SAPROM + i); |
i | 166 | drivers/net/e2100.c | for (i = 0; i < 6; i++) |
i | 167 | drivers/net/e2100.c | printk(" %02X", station_addr[i]); |
i | 170 | drivers/net/e2100.c | int irqlist[] = {15,11,10,12,5,9,3,4}, i; |
i | 171 | drivers/net/e2100.c | for (i = 0; i < 8; i++) |
i | 172 | drivers/net/e2100.c | if (request_irq (irqlist[i], NULL, 0, "bogus") != -EBUSY) { |
i | 173 | drivers/net/e2100.c | dev->irq = irqlist[i]; |
i | 176 | drivers/net/e2100.c | if (i >= 8) { |
i | 205 | drivers/net/e2100.c | for(i = 0; i < 6; i++) |
i | 206 | drivers/net/e2100.c | if (station_addr[i] != inb(ioaddr + E21_SAPROM + 8 + i)) { |
i | 285 | drivers/net/eepro.c | int i; |
i | 293 | drivers/net/eepro.c | for (i = 0; eepro_portlist[i]; i++) { |
i | 294 | drivers/net/eepro.c | int ioaddr = eepro_portlist[i]; |
i | 312 | drivers/net/eepro.c | int i; |
i | 356 | drivers/net/eepro.c | for (i=0; i < 6; i++) { |
i | 357 | drivers/net/eepro.c | dev->dev_addr[i] = ((unsigned char *) station_addr)[5-i]; |
i | 358 | drivers/net/eepro.c | printk("%c%02x", i ? ':' : ' ', dev->dev_addr[i]); |
i | 368 | drivers/net/eepro.c | i = read_eeprom(ioaddr, 1); |
i | 369 | drivers/net/eepro.c | switch (i & 0x07) { |
i | 397 | drivers/net/eepro.c | i = read_eeprom(ioaddr, 5); |
i | 398 | drivers/net/eepro.c | if (i & 0x2000) /* bit 13 of EEPROM word 5 */ |
i | 508 | drivers/net/eepro.c | int i, ioaddr = dev->base_addr; |
i | 536 | drivers/net/eepro.c | for (i=0; i < 6; i++) |
i | 537 | drivers/net/eepro.c | outb(dev->dev_addr[i] , ioaddr + I_ADD_REG0 + i); |
i | 814 | drivers/net/eepro.c | int i, boguscount = 0; |
i | 832 | drivers/net/eepro.c | for (i = 0; i < num_addrs; i++) { |
i | 845 | drivers/net/eepro.c | i = lp->tx_end + XMT_HEADER + 6*(num_addrs + 1); |
i | 850 | drivers/net/eepro.c | outw(i, ioaddr + IO_PORT); |
i | 854 | drivers/net/eepro.c | lp->tx_end = i ; |
i | 855 | drivers/net/eepro.c | } else lp->tx_start = lp->tx_end = i ; |
i | 862 | drivers/net/eepro.c | i = inb(ioaddr); |
i | 864 | drivers/net/eepro.c | if (i & 0x20) { /* command ABORTed */ |
i | 868 | drivers/net/eepro.c | } else if ((i & 0x0f) == 0x03) { /* MC-Done */ |
i | 893 | drivers/net/eepro.c | int i; |
i | 903 | drivers/net/eepro.c | for (i = 8; i >= 0; i--) { |
i | 904 | drivers/net/eepro.c | short outval = (read_cmd & (1 << i)) ? ctrl_val | EEDI |
i | 914 | drivers/net/eepro.c | for (i = 16; i > 0; i--) { |
i | 327 | drivers/net/eexpress.c | int i; |
i | 329 | drivers/net/eexpress.c | for (i = 16; i > 0; i--) |
i | 333 | drivers/net/eexpress.c | for (i = 4; i > 0; i--) { |
i | 349 | drivers/net/eexpress.c | int i; |
i | 370 | drivers/net/eexpress.c | for (i = 0; i < 6; i++) { |
i | 371 | drivers/net/eexpress.c | dev->dev_addr[i] = ((unsigned char*)station_addr)[5-i]; |
i | 372 | drivers/net/eexpress.c | printk(" %02x", dev->dev_addr[i]); |
i | 614 | drivers/net/eexpress.c | int i; |
i | 617 | 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 | 215 | drivers/net/eql.c | int i; |
i | 250 | drivers/net/eql.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 251 | drivers/net/eql.c | skb_queue_head_init(&dev->buffs[i]); |
i | 992 | drivers/net/eql.c | int i; |
i | 996 | drivers/net/eql.c | for (i = 1, slave = eql_first_slave (queue); |
i | 997 | drivers/net/eql.c | i <= eql_number_slaves (queue); |
i | 998 | drivers/net/eql.c | i++, slave = eql_next_slave (queue, slave)) |
i | 1151 | drivers/net/eql.c | int i; |
i | 1157 | drivers/net/eql.c | for (i = 1, slave = eql_first_slave (eql->queue); |
i | 1158 | drivers/net/eql.c | i <= eql_number_slaves (eql->queue); |
i | 1159 | drivers/net/eql.c | i++, slave = eql_next_slave (eql->queue, slave)) |
i | 335 | drivers/net/ewrk3.c | int i;\ |
i | 337 | drivers/net/ewrk3.c | for (i=0;i<5000;i++) inb(EWRK3_CSR);\ |
i | 400 | drivers/net/ewrk3.c | int i, status=0; |
i | 425 | drivers/net/ewrk3.c | for (chksum=0, i=0; i<EEPROM_MAX; i+=2) { |
i | 431 | drivers/net/ewrk3.c | tmp.val = (short)Read_EEPROM(iobase, (i>>1)); |
i | 432 | drivers/net/ewrk3.c | eeprom_image[i] = tmp.c[0]; |
i | 433 | drivers/net/ewrk3.c | eeprom_image[i+1] = tmp.c[1]; |
i | 435 | drivers/net/ewrk3.c | chksum += eeprom_image[i] + eeprom_image[i+1]; |
i | 472 | drivers/net/ewrk3.c | for (i = 0;i < ETH_ALEN - 1;i++) { /* get the ethernet address */ |
i | 473 | drivers/net/ewrk3.c | printk("%2.2x:", dev->dev_addr[i] = |
i | 474 | drivers/net/ewrk3.c | eeprom_image[EEPROM_PADDR0 + i]); |
i | 475 | drivers/net/ewrk3.c | outb(eeprom_image[EEPROM_PADDR0 + i], EWRK3_PAR0 + i); |
i | 477 | drivers/net/ewrk3.c | printk("%2.2x,\n",dev->dev_addr[i] = eeprom_image[EEPROM_PADDR0 + i]); |
i | 478 | drivers/net/ewrk3.c | outb(eeprom_image[EEPROM_PADDR0 + i], EWRK3_PAR0 + i); |
i | 481 | drivers/net/ewrk3.c | for (i = 0; i < ETH_ALEN - 1; i++) { /* get the ethernet addr. */ |
i | 482 | drivers/net/ewrk3.c | printk("%2.2x:", dev->dev_addr[i] = inb(EWRK3_APROM)); |
i | 483 | drivers/net/ewrk3.c | outb(dev->dev_addr[i], EWRK3_PAR0 + i); |
i | 485 | drivers/net/ewrk3.c | printk("%2.2x,\n", dev->dev_addr[i] = inb(EWRK3_APROM)); |
i | 486 | drivers/net/ewrk3.c | outb(dev->dev_addr[i], EWRK3_PAR0 + i); |
i | 653 | drivers/net/ewrk3.c | int i, iobase = dev->base_addr; |
i | 678 | drivers/net/ewrk3.c | for (i=0;i<6;i++){ |
i | 679 | drivers/net/ewrk3.c | printk("%2.2x:",(short)dev->dev_addr[i]); |
i | 849 | drivers/net/ewrk3.c | int i; |
i | 856 | drivers/net/ewrk3.c | for (i=0; i<skb->len; i++) { |
i | 979 | drivers/net/ewrk3.c | int i, iobase = dev->base_addr; |
i | 1048 | drivers/net/ewrk3.c | for (i=0; i<pkt_len; i++) { |
i | 1067 | drivers/net/ewrk3.c | for (i=1; i<EWRK3_PKT_STAT_SZ-1; i++) { |
i | 1068 | drivers/net/ewrk3.c | if (pkt_len < i*EWRK3_PKT_BIN_SZ) { |
i | 1069 | drivers/net/ewrk3.c | lp->pktStats.bins[i]++; |
i | 1070 | drivers/net/ewrk3.c | i = EWRK3_PKT_STAT_SZ; |
i | 1256 | drivers/net/ewrk3.c | int i, iobase = dev->base_addr; |
i | 1272 | drivers/net/ewrk3.c | for (i=0; i<(HASH_TABLE_LEN >> 3); i++) { |
i | 1277 | drivers/net/ewrk3.c | i++; |
i | 1283 | drivers/net/ewrk3.c | for (i=0; i<(HASH_TABLE_LEN >> 4) - 1; i++) { |
i | 1286 | drivers/net/ewrk3.c | outb(0x80, EWRK3_DATA); i++; /* insert the broadcast bit */ |
i | 1287 | drivers/net/ewrk3.c | for (; i<(HASH_TABLE_LEN >> 3); i++) { |
i | 1296 | drivers/net/ewrk3.c | for (i=0;i<num_addrs;i++) { /* for each address in the list */ |
i | 1338 | drivers/net/ewrk3.c | int i, iobase, status; |
i | 1341 | drivers/net/ewrk3.c | for (status = -ENODEV, iobase = EWRK3_IO_BASE,i = 0; |
i | 1342 | drivers/net/ewrk3.c | i < 24; |
i | 1343 | drivers/net/ewrk3.c | iobase += EWRK3_IOP_INC, i++) { |
i | 1381 | drivers/net/ewrk3.c | int i, iobase = EWRK3_EISA_IO_PORTS; |
i | 1385 | drivers/net/ewrk3.c | for (status = -ENODEV, i=1; i<MAX_EISA_SLOTS; i++, iobase+=EISA_SLOT_INC) { |
i | 1394 | drivers/net/ewrk3.c | mem_chkd |= (0x01 << (i + 24)); |
i | 1463 | drivers/net/ewrk3.c | int i; |
i | 1467 | drivers/net/ewrk3.c | for (i=0;i<5000;i++) inb(EWRK3_CSR); /* wait 1msec */ |
i | 1477 | drivers/net/ewrk3.c | int i; |
i | 1480 | drivers/net/ewrk3.c | for (i=0;i<5000;i++) inb(EWRK3_CSR); /* wait 1msec */ |
i | 1484 | drivers/net/ewrk3.c | for (i=0;i<75000;i++) inb(EWRK3_CSR); /* wait 15msec */ |
i | 1486 | drivers/net/ewrk3.c | for (i=0;i<5000;i++) inb(EWRK3_CSR); /* wait 1msec */ |
i | 1496 | drivers/net/ewrk3.c | unsigned long i,j,k; |
i | 1500 | drivers/net/ewrk3.c | for (i=0;*signatures[i] != '\0' && *name == '\0';i++) { |
i | 1501 | drivers/net/ewrk3.c | for (j=EEPROM_PNAME7,k=0;j<=EEPROM_PNAME0 && k<strlen(signatures[i]);j++) { |
i | 1502 | drivers/net/ewrk3.c | if (signatures[i][k] == eeprom_image[j]) { /* track signature */ |
i | 1508 | drivers/net/ewrk3.c | if (k == strlen(signatures[i])) { |
i | 1529 | drivers/net/ewrk3.c | int i, j, status = 0; |
i | 1536 | drivers/net/ewrk3.c | for (i=0,j=0;devSig[i] != '\0' && !status;i+=2,j++) { |
i | 1537 | drivers/net/ewrk3.c | if ((devSig[i]=asc2hex(devSig[i]))>=0) { |
i | 1538 | drivers/net/ewrk3.c | devSig[i]<<=4; |
i | 1539 | drivers/net/ewrk3.c | if((devSig[i+1]=asc2hex(devSig[i+1]))>=0){ |
i | 1540 | drivers/net/ewrk3.c | devSig[j]=devSig[i]+devSig[i+1]; |
i | 1561 | drivers/net/ewrk3.c | for (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) { |
i | 1617 | drivers/net/ewrk3.c | int i, j, iobase = dev->base_addr, status = 0; |
i | 1627 | drivers/net/ewrk3.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1628 | drivers/net/ewrk3.c | tmp.addr[i] = dev->dev_addr[i]; |
i | 1646 | drivers/net/ewrk3.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1647 | drivers/net/ewrk3.c | dev->dev_addr[i] = tmp.addr[i]; |
i | 1648 | drivers/net/ewrk3.c | outb(tmp.addr[i], EWRK3_PAR0 + i); |
i | 1691 | drivers/net/ewrk3.c | for (i=0; i<(HASH_TABLE_LEN >> 3); i++) { |
i | 1692 | drivers/net/ewrk3.c | tmp.addr[i] = inb(EWRK3_DATA); |
i | 1781 | drivers/net/ewrk3.c | for (i=0; i<(EEPROM_MAX>>1); i++) { |
i | 1782 | drivers/net/ewrk3.c | tmp.val[i] = (short)Read_EEPROM(iobase, i); |
i | 1784 | drivers/net/ewrk3.c | i = EEPROM_MAX; |
i | 1785 | drivers/net/ewrk3.c | tmp.addr[i++] = inb(EWRK3_CMR); /* Config/Management Reg. */ |
i | 1787 | drivers/net/ewrk3.c | tmp.addr[i++] = inb(EWRK3_PAR0 + j); |
i | 1802 | drivers/net/ewrk3.c | for (i=0; i<(EEPROM_MAX>>1); i++) { |
i | 1803 | drivers/net/ewrk3.c | Write_EEPROM(tmp.val[i], iobase, i); |
i | 129 | drivers/net/hp-plus.c | int i; |
i | 137 | drivers/net/hp-plus.c | for (i = 0; hpplus_portlist[i]; i++) { |
i | 138 | drivers/net/hp-plus.c | int ioaddr = hpplus_portlist[i]; |
i | 152 | drivers/net/hp-plus.c | int i; |
i | 170 | drivers/net/hp-plus.c | for(i = 0; i < ETHER_ADDR_LEN; i++) { |
i | 171 | drivers/net/hp-plus.c | unsigned char inval = inb(ioaddr + 8 + i); |
i | 172 | drivers/net/hp-plus.c | dev->dev_addr[i] = inval; |
i | 87 | drivers/net/hp.c | int i; |
i | 95 | drivers/net/hp.c | for (i = 0; hppclan_portlist[i]; i++) { |
i | 96 | drivers/net/hp.c | int ioaddr = hppclan_portlist[i]; |
i | 109 | drivers/net/hp.c | int i, board_id, wordmode; |
i | 136 | drivers/net/hp.c | for(i = 0; i < ETHER_ADDR_LEN; i++) |
i | 137 | drivers/net/hp.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 306 | drivers/net/hp100.c | int i; |
i | 336 | drivers/net/hp100.c | for ( i = uc = eisa_id = 0; i < 4; i++ ) |
i | 339 | drivers/net/hp100.c | uc_1 = hp100_inb( BOARD_ID + i ); |
i | 355 | drivers/net/hp100.c | for ( i = 0; i < sizeof( hp100_eisa_ids ) / sizeof( struct hp100_eisa_id ); i++ ) |
i | 356 | drivers/net/hp100.c | if ( ( hp100_eisa_ids[ i ].id & 0xf0ffffff ) == ( eisa_id & 0xf0ffffff ) ) |
i | 358 | drivers/net/hp100.c | if ( i >= sizeof( hp100_eisa_ids ) / sizeof( struct hp100_eisa_id ) ) |
i | 363 | drivers/net/hp100.c | eid = &hp100_eisa_ids[ i ]; |
i | 371 | drivers/net/hp100.c | for ( i = uc = 0; i < 7; i++ ) |
i | 372 | drivers/net/hp100.c | uc += hp100_inb( LAN_ADDR + i ); |
i | 442 | drivers/net/hp100.c | for ( i = uc = 0; i < 6; i++ ) |
i | 443 | drivers/net/hp100.c | dev -> dev_addr[ i ] = hp100_inb( LAN_ADDR + i ); |
i | 493 | drivers/net/hp100.c | int i; |
i | 532 | drivers/net/hp100.c | for ( i = 0; i < 6; i++ ) |
i | 533 | drivers/net/hp100.c | hp100_outb( dev -> dev_addr[ i ], MAC_ADDR + i ); |
i | 534 | drivers/net/hp100.c | for ( i = 0; i < 8; i++ ) /* setup multicast filter to receive all */ |
i | 535 | drivers/net/hp100.c | hp100_outb( 0xff, HASH_BYTE0 + i ); |
i | 586 | drivers/net/hp100.c | int i, ok_flag; |
i | 605 | drivers/net/hp100.c | if ( ( i = ( hp100_inl( TX_MEM_FREE ) & ~0x7fffffff ) ) < skb -> len + 16 ) |
i | 608 | drivers/net/hp100.c | printk( "hp100_start_xmit: rx free mem = 0x%x\n", i ); |
i | 622 | drivers/net/hp100.c | i = hp100_sense_lan( dev ); |
i | 625 | drivers/net/hp100.c | if ( i == HP100_LAN_ERR ) |
i | 628 | drivers/net/hp100.c | if ( lp -> lan_type != i ) |
i | 632 | drivers/net/hp100.c | lp -> lan_type = i; |
i | 657 | drivers/net/hp100.c | for ( i = 0; i < 6000 && ( hp100_inw( OPTION_MSW ) & HP100_TX_CMD ); i++ ) |
i | 671 | drivers/net/hp100.c | i = ok_flag ? skb -> len : HP100_MIN_PACKET_SIZE; |
i | 672 | drivers/net/hp100.c | hp100_outw( i, DATA32 ); /* length to memory manager */ |
i | 673 | drivers/net/hp100.c | hp100_outw( i, FRAGMENT_LEN ); |
i | 693 | drivers/net/hp100.c | for ( i = ( skb -> len + 3 ) & ~3; i < HP100_MIN_PACKET_SIZE; i += 4 ) |
i | 1002 | drivers/net/hp100.c | int i; |
i | 1008 | drivers/net/hp100.c | for ( i = 0; i < 6000; i++ ) |
i | 1017 | drivers/net/hp100.c | int i; |
i | 1032 | drivers/net/hp100.c | for ( i = 0; i < 2500; i++ ) |
i | 1044 | drivers/net/hp100.c | int i; |
i | 1047 | drivers/net/hp100.c | for ( i = 2500; i > 0; i-- ) |
i | 1049 | drivers/net/hp100.c | if ( i <= 0 ) /* not signal - not logout */ |
i | 1066 | drivers/net/hp100.c | int i; |
i | 1092 | drivers/net/hp100.c | for ( i = 2500; i > 0; i-- ) |
i | 1094 | drivers/net/hp100.c | if ( i <= 0 ) |
i | 169 | drivers/net/ibmtr.c | short i, j; |
i | 170 | drivers/net/ibmtr.c | for (i=0,j=0;i<24;i++,j=j+stride) printk("%1x",((int) pcid[j])&0x0f); |
i | 188 | drivers/net/ibmtr.c | unsigned char segment=0, intr=0, irq=0, i=0, j=0, |
i | 250 | drivers/net/ibmtr.c | for (i=2,j=1; i<=46; i=i+2,j++) { |
i | 251 | drivers/net/ibmtr.c | if ( (cd_chanid[i] & 0x0f) != tchanid[j]) { |
i | 356 | drivers/net/ibmtr.c | for (i=0; i<0x18; i=i+2) { |
i | 357 | drivers/net/ibmtr.c | temp = *(char *)((ulong)AIP + (ulong)i + ti->mmio) & 0x0f; /* Tech ref states must do this */ |
i | 637 | drivers/net/ibmtr.c | int i; |
i | 643 | drivers/net/ibmtr.c | for(i=0;i< 8;i++,check_reason++) |
i | 895 | drivers/net/ibmtr.c | int i; |
i | 925 | drivers/net/ibmtr.c | for(i=0;i<17;i++) |
i | 926 | drivers/net/ibmtr.c | printk("%02X ",*(ti->init_srb+i)); |
i | 947 | drivers/net/ibmtr.c | for(i=0;i<TR_ALEN;i++) |
i | 948 | drivers/net/ibmtr.c | printk("%02X%s",dev->dev_addr[i]=encoded_addr[i],(i==TR_ALEN-1) ? "" : ":" ); |
i | 960 | drivers/net/ibmtr.c | int i; |
i | 983 | drivers/net/ibmtr.c | for(i=jiffies+5;jiffies<=i;); /* wait 50ms */ |
i | 341 | drivers/net/lance.c | int i, reset_val, lance_version; |
i | 409 | drivers/net/lance.c | for (i = 0; i < 6; i++) |
i | 410 | drivers/net/lance.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 426 | drivers/net/lance.c | for (i = 0; i < 6; i++) |
i | 427 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
i | 511 | drivers/net/lance.c | for (i = 0; i < 4; i++) { |
i | 513 | drivers/net/lance.c | int dma = dmas[i]; |
i | 540 | drivers/net/lance.c | if (i == 4) { /* Failure: bail. */ |
i | 572 | drivers/net/lance.c | int i; |
i | 624 | drivers/net/lance.c | i = 0; |
i | 625 | drivers/net/lance.c | while (i++ < 100) |
i | 636 | drivers/net/lance.c | dev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA)); |
i | 657 | drivers/net/lance.c | int i; |
i | 659 | drivers/net/lance.c | for (i = 0; i < TX_RING_SIZE; i++) { |
i | 660 | drivers/net/lance.c | if (lp->tx_skbuff[i]) { |
i | 661 | drivers/net/lance.c | dev_kfree_skb(lp->tx_skbuff[i],FREE_WRITE); |
i | 662 | drivers/net/lance.c | lp->tx_skbuff[i] = NULL; |
i | 673 | drivers/net/lance.c | int i; |
i | 679 | drivers/net/lance.c | for (i = 0; i < RX_RING_SIZE; i++) { |
i | 680 | drivers/net/lance.c | lp->rx_ring[i].base = (lp->rx_buffs + i*PKT_BUF_SZ) | 0x80000000; |
i | 681 | drivers/net/lance.c | lp->rx_ring[i].buf_length = -PKT_BUF_SZ; |
i | 685 | drivers/net/lance.c | for (i = 0; i < TX_RING_SIZE; i++) { |
i | 686 | drivers/net/lance.c | lp->tx_ring[i].base = 0; |
i | 690 | drivers/net/lance.c | for (i = 0; i < 6; i++) |
i | 691 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
i | 732 | drivers/net/lance.c | int i; |
i | 736 | drivers/net/lance.c | for (i = 0 ; i < RX_RING_SIZE; i++) |
i | 737 | drivers/net/lance.c | printk("%s %08x %04x %04x", i & 0x3 ? "" : "\n ", |
i | 738 | drivers/net/lance.c | lp->rx_ring[i].base, -lp->rx_ring[i].buf_length, |
i | 739 | drivers/net/lance.c | lp->rx_ring[i].msg_length); |
i | 740 | drivers/net/lance.c | for (i = 0 ; i < TX_RING_SIZE; i++) |
i | 741 | drivers/net/lance.c | printk("%s %08x %04x %04x", i & 0x3 ? "" : "\n ", |
i | 742 | drivers/net/lance.c | lp->tx_ring[i].base, -lp->tx_ring[i].length, |
i | 743 | drivers/net/lance.c | lp->tx_ring[i].misc); |
i | 969 | drivers/net/lance.c | int i; |
i | 995 | drivers/net/lance.c | for (i=0; i < RX_RING_SIZE; i++) |
i | 996 | drivers/net/lance.c | if (lp->rx_ring[(entry+i) & RX_RING_MOD_MASK].base < 0) |
i | 999 | drivers/net/lance.c | if (i > RX_RING_SIZE -2) { |
i | 1100 | drivers/net/lance.c | int i; |
i | 1103 | drivers/net/lance.c | for (i = 0; i < 4; i++) { |
i | 1104 | drivers/net/lance.c | outw(8 + i, ioaddr+LANCE_ADDR); |
i | 1105 | drivers/net/lance.c | outw(multicast_table[i], ioaddr+LANCE_DATA); |
i | 127 | drivers/net/loopback.c | int i; |
i | 157 | drivers/net/loopback.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 158 | drivers/net/loopback.c | skb_queue_head_init(&dev->buffs[i]); |
i | 132 | drivers/net/ne.c | int i; |
i | 140 | drivers/net/ne.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 141 | drivers/net/ne.c | int ioaddr = netcard_portlist[i]; |
i | 154 | drivers/net/ne.c | int i; |
i | 216 | drivers/net/ne.c | for (i = 0; i < sizeof(program_seq)/sizeof(program_seq[0]); i++) |
i | 217 | drivers/net/ne.c | outb_p(program_seq[i].value, ioaddr + program_seq[i].offset); |
i | 220 | drivers/net/ne.c | for(i = 0; i < 32 /*sizeof(SA_prom)*/; i+=2) { |
i | 221 | drivers/net/ne.c | SA_prom[i] = inb(ioaddr + NE_DATAPORT); |
i | 222 | drivers/net/ne.c | SA_prom[i+1] = inb(ioaddr + NE_DATAPORT); |
i | 223 | drivers/net/ne.c | if (SA_prom[i] != SA_prom[i+1]) |
i | 233 | drivers/net/ne.c | for (i = 0; i < 16; i++) |
i | 234 | drivers/net/ne.c | SA_prom[i] = SA_prom[i+i]; |
i | 242 | drivers/net/ne.c | for(i = 0; i < ETHER_ADDR_LEN; i++) { |
i | 243 | drivers/net/ne.c | dev->dev_addr[i] = SA_prom[i]; |
i | 244 | drivers/net/ne.c | printk(" %2.2x", SA_prom[i]); |
i | 261 | drivers/net/ne.c | for (i = 0; bad_clone_list[i].name8; i++) { |
i | 262 | drivers/net/ne.c | if (SA_prom[0] == bad_clone_list[i].SAprefix[0] && |
i | 263 | drivers/net/ne.c | SA_prom[1] == bad_clone_list[i].SAprefix[1] && |
i | 264 | drivers/net/ne.c | SA_prom[2] == bad_clone_list[i].SAprefix[2]) { |
i | 266 | drivers/net/ne.c | name = bad_clone_list[i].name16; |
i | 268 | drivers/net/ne.c | name = bad_clone_list[i].name8; |
i | 273 | drivers/net/ne.c | if (bad_clone_list[i].name8 == NULL) { |
i | 318 | drivers/net/ne.c | for(i = 0; i < ETHER_ADDR_LEN; i++) |
i | 319 | drivers/net/ne.c | dev->dev_addr[i] = SA_prom[i]; |
i | 100 | drivers/net/net_init.c | int i; |
i | 109 | drivers/net/net_init.c | for (i = 0; i < MAX_ETH_CARDS; ++i) |
i | 110 | drivers/net/net_init.c | if (ethdev_index[i] == NULL) { |
i | 111 | drivers/net/net_init.c | sprintf(pname, "eth%d", i); |
i | 147 | drivers/net/net_init.c | for (i = 0; i < MAX_ETH_CARDS; ++i) |
i | 148 | drivers/net/net_init.c | if (ethdev_index[i] == NULL) { |
i | 149 | drivers/net/net_init.c | sprintf(dev->name, "eth%d", i); |
i | 150 | drivers/net/net_init.c | ethdev_index[i] = dev; |
i | 181 | drivers/net/net_init.c | int i; |
i | 184 | drivers/net/net_init.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 185 | drivers/net/net_init.c | skb_queue_head_init(&dev->buffs[i]); |
i | 189 | drivers/net/net_init.c | i = simple_strtoul(dev->name + 3, NULL, 0); |
i | 190 | drivers/net/net_init.c | if (ethdev_index[i] == NULL) { |
i | 191 | drivers/net/net_init.c | ethdev_index[i] = dev; |
i | 193 | drivers/net/net_init.c | else if (dev != ethdev_index[i]) { |
i | 209 | drivers/net/net_init.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 210 | drivers/net/net_init.c | dev->broadcast[i]=0xff; |
i | 226 | drivers/net/net_init.c | int i; |
i | 229 | drivers/net/net_init.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 230 | drivers/net/net_init.c | skb_queue_head_init(&dev->buffs[i]); |
i | 239 | drivers/net/net_init.c | for (i = 0; i < TR_ALEN; i++) { |
i | 240 | drivers/net/net_init.c | dev->broadcast[i]=0xff; |
i | 275 | drivers/net/net_init.c | int i=MAX_ETH_CARDS; |
i | 283 | drivers/net/net_init.c | for (i = 0; i < MAX_ETH_CARDS; ++i) |
i | 284 | drivers/net/net_init.c | if (ethdev_index[i] == NULL) { |
i | 285 | drivers/net/net_init.c | sprintf(dev->name, "eth%d", i); |
i | 287 | drivers/net/net_init.c | ethdev_index[i] = dev; |
i | 293 | drivers/net/net_init.c | if (i < MAX_ETH_CARDS) ethdev_index[i] = NULL; |
i | 316 | drivers/net/net_init.c | int i; |
i | 348 | drivers/net/net_init.c | for (i = 0; i < MAX_ETH_CARDS; ++i) |
i | 350 | drivers/net/net_init.c | if (ethdev_index[i] == dev) |
i | 352 | drivers/net/net_init.c | ethdev_index[i] = NULL; |
i | 130 | drivers/net/ni52.c | #define DELAY(x) {int i=jiffies; \ |
i | 132 | drivers/net/ni52.c | while(i+(x)>jiffies); \ |
i | 141 | drivers/net/ni52.c | #define WAIT_4_SCB_CMD() { int i; \ |
i | 142 | drivers/net/ni52.c | for(i=0;i<1024;i++) { \ |
i | 145 | drivers/net/ni52.c | if(i == 1023) { \ |
i | 249 | drivers/net/ni52.c | int i; |
i | 260 | drivers/net/ni52.c | for(i=0;i<2;i++) |
i | 262 | drivers/net/ni52.c | p->iscp = (struct iscp_struct *) iscp_addrs[i]; |
i | 348 | drivers/net/ni52.c | int i,size; |
i | 350 | drivers/net/ni52.c | for(i=0;i<ETH_ALEN;i++) |
i | 351 | drivers/net/ni52.c | dev->dev_addr[i] = inb(dev->base_addr+i); |
i | 383 | drivers/net/ni52.c | for(i=0;;i++) |
i | 385 | drivers/net/ni52.c | if(!memaddrs[i]) { |
i | 389 | drivers/net/ni52.c | dev->mem_start = memaddrs[i]; |
i | 453 | drivers/net/ni52.c | int i,result=0; |
i | 572 | drivers/net/ni52.c | for(i=0;i<2;i++) |
i | 574 | drivers/net/ni52.c | p->nop_cmds[i] = (struct nop_cmd_struct *)ptr; |
i | 575 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_cmd = CMD_NOP; |
i | 576 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_status = 0; |
i | 577 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_link = make16((p->nop_cmds[i])); |
i | 583 | drivers/net/ni52.c | for(i=0;i<NUM_XMIT_BUFFS;i++) |
i | 585 | drivers/net/ni52.c | p->nop_cmds[i] = (struct nop_cmd_struct *)ptr; |
i | 586 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_cmd = CMD_NOP; |
i | 587 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_status = 0; |
i | 588 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_link = make16((p->nop_cmds[i])); |
i | 590 | drivers/net/ni52.c | p->xmit_cmds[i] = (struct transmit_cmd_struct *)ptr; /*transmit cmd/buff 0*/ |
i | 620 | drivers/net/ni52.c | for(i=0;i<num_addrs;i++) |
i | 621 | drivers/net/ni52.c | memcpy((char *) mc_cmd->mc_list[i],((char (*)[6]) addrs)[i],6); |
i | 637 | drivers/net/ni52.c | for(i=0;i<NUM_XMIT_BUFFS;i++) |
i | 639 | drivers/net/ni52.c | p->xmit_cbuffs[i] = (char *)ptr; /* char-buffs */ |
i | 641 | drivers/net/ni52.c | p->xmit_buffs[i] = (struct tbd_struct *)ptr; /* TBD */ |
i | 648 | drivers/net/ni52.c | memset((char *)(p->xmit_cmds[i]) ,0, sizeof(struct transmit_cmd_struct)); |
i | 649 | drivers/net/ni52.c | memset((char *)(p->xmit_buffs[i]),0, sizeof(struct tbd_struct)); |
i | 650 | drivers/net/ni52.c | p->xmit_cmds[i]->cmd_status = STAT_COMPL; |
i | 651 | drivers/net/ni52.c | p->xmit_cmds[i]->cmd_cmd = CMD_XMIT | CMD_INT; |
i | 652 | drivers/net/ni52.c | p->xmit_cmds[i]->tbd_offset = make16((p->xmit_buffs[i])); |
i | 653 | drivers/net/ni52.c | p->xmit_buffs[i]->next = 0xffff; |
i | 654 | drivers/net/ni52.c | p->xmit_buffs[i]->buffer = make24((p->xmit_cbuffs[i])); |
i | 688 | drivers/net/ni52.c | int i; |
i | 694 | drivers/net/ni52.c | for(i = 0; i < p->num_recv_buffs; i++) |
i | 695 | drivers/net/ni52.c | rfd[i].next = make16(rfd + (i+1) % p->num_recv_buffs); |
i | 706 | drivers/net/ni52.c | for(i=0;i<p->num_recv_buffs;i++) |
i | 708 | drivers/net/ni52.c | rbd[i].next = make16((rbd + (i+1) % p->num_recv_buffs)); |
i | 709 | drivers/net/ni52.c | rbd[i].size = RECV_BUFF_SIZE; |
i | 710 | drivers/net/ni52.c | rbd[i].buffer = make24(ptr); |
i | 929 | drivers/net/ni52.c | int len,i; |
i | 995 | drivers/net/ni52.c | for(i=0;i<16;i++) |
i | 1003 | drivers/net/ni52.c | if(!i) |
i | 1010 | drivers/net/ni52.c | if(i==15) |
i | 206 | drivers/net/ni65.c | int i; |
i | 210 | drivers/net/ni65.c | for(i=0;i<6;i++) |
i | 211 | drivers/net/ni65.c | station_addr[i] = dev->dev_addr[i] = inb(PORT+L_EBASE+i); |
i | 275 | drivers/net/ni65.c | for(i=0;i<TMDNUM;i++) |
i | 277 | drivers/net/ni65.c | if( (p->tmdbufs[i] = kmalloc(T_BUF_SIZE,GFP_ATOMIC)) == NULL) { |
i | 281 | drivers/net/ni65.c | if( (unsigned long) (p->tmdbufs[i]+T_BUF_SIZE) & 0xff000000) { |
i | 288 | drivers/net/ni65.c | for(i=0;i<RMDNUM;i++) |
i | 290 | drivers/net/ni65.c | if( (p->recv_skb[i] = dev_alloc_skb(R_BUF_SIZE)) == NULL) { |
i | 294 | drivers/net/ni65.c | if( (unsigned long) (p->recv_skb[i]->data + R_BUF_SIZE) & 0xff000000) { |
i | 309 | drivers/net/ni65.c | int i,j; |
i | 336 | drivers/net/ni65.c | for(i=0;i<TMDNUM;i++) |
i | 338 | drivers/net/ni65.c | tmdp = p->tmdhead + i; |
i | 340 | drivers/net/ni65.c | tmdp->u.buffer = (unsigned long) p->tmdbufs[i]; |
i | 346 | drivers/net/ni65.c | for(i=0;i<RMDNUM;i++) |
i | 348 | drivers/net/ni65.c | rmdp = p->rmdhead + i; |
i | 349 | drivers/net/ni65.c | rmdp->u.buffer = (unsigned long) p->recv_skb[i]->data; |
i | 355 | drivers/net/ni65.c | for(i=0;i<6;i++) |
i | 357 | drivers/net/ni65.c | p->ib.eaddr[i] = dev->dev_addr[i]; |
i | 360 | drivers/net/ni65.c | for(i=0;i<8;i++) |
i | 361 | drivers/net/ni65.c | p->ib.filter[i] = 0; |
i | 377 | drivers/net/ni65.c | for(i=0;i<5;i++) |
i | 382 | drivers/net/ni65.c | if(i == 5) |
i | 1309 | drivers/net/pi2.c | int i; |
i | 1426 | drivers/net/pi2.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 1427 | drivers/net/pi2.c | skb_queue_head_init(&dev->buffs[i]); |
i | 868 | drivers/net/plip.c | int i; |
i | 879 | drivers/net/plip.c | for (i=0; i < ETH_ALEN - sizeof(unsigned long); i++) |
i | 880 | drivers/net/plip.c | eth->h_dest[i] = 0xfc; |
i | 881 | drivers/net/plip.c | memcpy(&(eth->h_dest[i]), &dst, sizeof(unsigned long)); |
i | 942 | drivers/net/plip.c | int i; |
i | 970 | drivers/net/plip.c | for (i=0; i < ETH_ALEN - sizeof(unsigned long); i++) |
i | 971 | drivers/net/plip.c | dev->dev_addr[i] = 0xfc; |
i | 972 | drivers/net/plip.c | memcpy(&(dev->dev_addr[i]), &dev->pa_addr, sizeof(unsigned long)); |
i | 1093 | drivers/net/plip.c | int i; |
i | 1096 | drivers/net/plip.c | for (i=0; i < 3; i++) { |
i | 1099 | drivers/net/plip.c | if (io[i] != 0) { |
i | 1100 | drivers/net/plip.c | dev_plip[i].base_addr = io[i]; |
i | 1103 | drivers/net/plip.c | if (irq[i] != 0) { |
i | 1104 | drivers/net/plip.c | dev_plip[i].irq = irq[i]; |
i | 1108 | drivers/net/plip.c | if (register_netdev(&dev_plip[i]) != 0) { |
i | 1109 | drivers/net/plip.c | printk(KERN_INFO "plip%d: Not found\n", i); |
i | 1119 | drivers/net/plip.c | for (i=0; i < 3; i++) { |
i | 1120 | drivers/net/plip.c | if (register_netdev(&dev_plip[i]) == 0) |
i | 1133 | drivers/net/plip.c | int i; |
i | 1135 | drivers/net/plip.c | for (i=0; i < 3; i++) { |
i | 1136 | drivers/net/plip.c | if (dev_plip[i].priv) { |
i | 1137 | drivers/net/plip.c | unregister_netdev(&dev_plip[i]); |
i | 1138 | drivers/net/plip.c | release_region(PAR_DATA(&dev_plip[i]), (PAR_DATA(&dev_plip[i]) == 0x3bc)? 3 : 8); |
i | 1139 | drivers/net/plip.c | kfree_s(dev_plip[i].priv, sizeof(struct net_local)); |
i | 1140 | drivers/net/plip.c | dev_plip[i].priv = NULL; |
i | 215 | drivers/net/ppp.c | int i; |
i | 255 | drivers/net/ppp.c | if ((i = tty_register_ldisc(N_PPP, &ppp_ldisc)) == 0) |
i | 258 | drivers/net/ppp.c | printk(KERN_ERR "error registering line discipline: %d\n", i); |
i | 290 | drivers/net/ppp.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 291 | drivers/net/ppp.c | skb_queue_head_init(&dev->buffs[i]); /* = NULL if NET02D */ |
i | 798 | drivers/net/ppp.c | i, count; |
i | 804 | drivers/net/ppp.c | i = tail; |
i | 807 | drivers/net/ppp.c | while (i != head) { |
i | 808 | drivers/net/ppp.c | buffer [count] = tty->read_q.buf[i]; |
i | 813 | drivers/net/ppp.c | i = (i + 1) & (TTY_BUF_SIZE - 1); |
i | 869 | drivers/net/ppp.c | int i; |
i | 871 | drivers/net/ppp.c | for (i = 0; i < n; i++, c++) { |
i | 1246 | drivers/net/ppp.c | int len, i; |
i | 1272 | drivers/net/ppp.c | i = verify_area (VERIFY_WRITE,buf,nr); |
i | 1273 | drivers/net/ppp.c | if (i != 0) { |
i | 1275 | drivers/net/ppp.c | return i; |
i | 1301 | drivers/net/ppp.c | i = len; |
i | 1302 | drivers/net/ppp.c | while (i-- > 0) { |
i | 1357 | drivers/net/ppp.c | int i; |
i | 1376 | drivers/net/ppp.c | i = verify_area (VERIFY_READ,buf,nr); |
i | 1377 | drivers/net/ppp.c | if (i != 0) |
i | 1378 | drivers/net/ppp.c | return i; |
i | 1413 | drivers/net/ppp.c | i = nr; |
i | 1414 | drivers/net/ppp.c | while (i-- > 0) |
i | 1439 | drivers/net/ppp.c | ppp_ioctl(struct tty_struct *tty, struct file *file, unsigned int i, |
i | 1457 | drivers/net/ppp.c | switch (i) { |
i | 1638 | drivers/net/ppp.c | error = n_tty_ioctl(tty, file, i, l); |
i | 1648 | drivers/net/ppp.c | i, |
i | 1941 | drivers/net/ppp.c | int i; |
i | 1942 | drivers/net/ppp.c | for (i = 0; i < PPP_NRUNIT; i++) |
i | 1943 | drivers/net/ppp.c | if (ppp_ctrl[i].inuse && (ppp_ctrl[i].tty == tty)) return &ppp_ctrl[i]; |
i | 1953 | drivers/net/ppp.c | int i; |
i | 1954 | drivers/net/ppp.c | for (i = 0; i < PPP_NRUNIT; i++) |
i | 1955 | drivers/net/ppp.c | if (!set_bit(0, &ppp_ctrl[i].inuse)) return &ppp_ctrl[i]; |
i | 2011 | drivers/net/ppp.c | int i; |
i | 2013 | drivers/net/ppp.c | for (i = 0; i < ppp->rcount - 2; i++, c++) |
i | 2121 | drivers/net/ppp.c | int i,j; |
i | 2123 | drivers/net/ppp.c | for (i = 0; i < PPP_NRUNIT; i++) { |
i | 2124 | drivers/net/ppp.c | if ((err = register_netdev(&dev_ppp[i]))) { |
i | 2128 | drivers/net/ppp.c | if(i>0) { |
i | 2129 | drivers/net/ppp.c | for(j = 0; j < i ; j++) |
i | 2145 | drivers/net/ppp.c | int i; |
i | 2151 | drivers/net/ppp.c | for (i = 0; i < PPP_NRUNIT; i++) { |
i | 2152 | drivers/net/ppp.c | unregister_netdev(&dev_ppp[i]); |
i | 2154 | drivers/net/ppp.c | if ((i = tty_register_ldisc(N_PPP, NULL))) { |
i | 2155 | drivers/net/ppp.c | printk("PPP: can't unregister line discipline (err = %d)\n", i); |
i | 118 | drivers/net/seeq8005.c | int i; |
i | 126 | drivers/net/seeq8005.c | for (i = 0; seeq8005_portlist[i]; i++) { |
i | 127 | drivers/net/seeq8005.c | int ioaddr = seeq8005_portlist[i]; |
i | 145 | drivers/net/seeq8005.c | int i,j; |
i | 199 | drivers/net/seeq8005.c | for(i=0; i <32; i++) { |
i | 200 | drivers/net/seeq8005.c | j+= SA_prom[i] = inw(SEEQ_BUFFER) & 0xff; |
i | 227 | drivers/net/seeq8005.c | for(i=0;i<16;i++) { |
i | 228 | drivers/net/seeq8005.c | printk("%02x ",SA_prom[j|i]); |
i | 231 | drivers/net/seeq8005.c | for(i=0;i<16;i++) { |
i | 232 | drivers/net/seeq8005.c | if ((SA_prom[j|i]>31)&&(SA_prom[j|i]<127)) { |
i | 233 | drivers/net/seeq8005.c | printk("%c", SA_prom[j|i]); |
i | 253 | drivers/net/seeq8005.c | for(i=0;i<32768;i++) { |
i | 266 | drivers/net/seeq8005.c | for(i=0;i<32768;i++) { |
i | 291 | drivers/net/seeq8005.c | for (i = 0; i < 6; i++) |
i | 292 | drivers/net/seeq8005.c | printk(" %2.2x", dev->dev_addr[i] = SA_prom[i+6]); |
i | 487 | drivers/net/seeq8005.c | int i; |
i | 555 | drivers/net/seeq8005.c | for(i=0;i<14;i++) { |
i | 640 | drivers/net/seeq8005.c | int i; |
i | 653 | drivers/net/seeq8005.c | for(i=0;i<6;i++) { /* set Station address */ |
i | 654 | drivers/net/seeq8005.c | outb(dev->dev_addr[i], SEEQ_BUFFER); |
i | 673 | drivers/net/seeq8005.c | for(i=0;i<6;i++) { |
i | 638 | drivers/net/sk_g16.c | int i,j; /* Counters */ |
i | 758 | drivers/net/sk_g16.c | for (i = 0, j = 0; i < ETH_ALEN; i++, j+=2) |
i | 760 | drivers/net/sk_g16.c | dev->dev_addr[i] = board->rom[j]; |
i | 819 | drivers/net/sk_g16.c | for (i = 0; i < TMDNUM; i++) |
i | 821 | drivers/net/sk_g16.c | p->tmdbufs[i] = &(p->ram)->tmdbuf[i]; |
i | 824 | drivers/net/sk_g16.c | for (i = 0; i < RMDNUM; i++) |
i | 826 | drivers/net/sk_g16.c | p->rmdbufs[i] = &(p->ram)->rmdbuf[i]; |
i | 866 | drivers/net/sk_g16.c | int i = 0; |
i | 879 | drivers/net/sk_g16.c | i = 0; |
i | 892 | drivers/net/sk_g16.c | irqval = request_irq(irqtab[i], &SK_interrupt, 0, "sk_g16"); |
i | 893 | drivers/net/sk_g16.c | i++; |
i | 894 | drivers/net/sk_g16.c | } while (irqval && irqtab[i]); |
i | 902 | drivers/net/sk_g16.c | dev->irq = irqtab[--i]; |
i | 904 | drivers/net/sk_g16.c | outb(i<<2, SK_POS4); /* Set Card on probed IRQ */ |
i | 926 | drivers/net/sk_g16.c | int i = 0; |
i | 938 | drivers/net/sk_g16.c | case 3: i = 0; |
i | 940 | drivers/net/sk_g16.c | case 5: i = 1; |
i | 942 | drivers/net/sk_g16.c | case 2: i = 2; |
i | 944 | drivers/net/sk_g16.c | case 11:i = 3; |
i | 954 | drivers/net/sk_g16.c | outb(i<<2, SK_POS4); /* Set IRQ on card */ |
i | 963 | drivers/net/sk_g16.c | if (!(i = SK_lance_init(dev, 0))) /* LANCE init OK? */ |
i | 1031 | drivers/net/sk_g16.c | int i; |
i | 1046 | drivers/net/sk_g16.c | for (i = 0; i < TMDNUM; i++) /* Init all TMD's */ |
i | 1048 | drivers/net/sk_g16.c | tmdp = p->tmdhead + i; |
i | 1050 | drivers/net/sk_g16.c | tmdp->u.buffer = (unsigned long) p->tmdbufs[i]; /* assign buffer */ |
i | 1061 | drivers/net/sk_g16.c | for (i = 0; i < RMDNUM; i++) /* Init all RMD's */ |
i | 1063 | drivers/net/sk_g16.c | rmdp = p->rmdhead + i; |
i | 1066 | drivers/net/sk_g16.c | rmdp->u.buffer = (unsigned long) p->rmdbufs[i]; /* assign buffer */ |
i | 1085 | drivers/net/sk_g16.c | for (i = 0; i < ETH_ALEN; i++) /* Set physical address */ |
i | 1087 | drivers/net/sk_g16.c | (p->ram)->ib.paddr[i] = dev->dev_addr[i]; |
i | 1090 | drivers/net/sk_g16.c | for (i = 0; i < 8; i++) /* Set multicast, logical address */ |
i | 1092 | drivers/net/sk_g16.c | (p->ram)->ib.laddr[i] = 0; /* We do not use logical addressing */ |
i | 1143 | drivers/net/sk_g16.c | for (i = 0; (i < 100) && !(SK_rread_reg() & CSR0_IDON); i++) |
i | 1146 | drivers/net/sk_g16.c | if (i >= 100) /* Something is wrong ! */ |
i | 1161 | drivers/net/sk_g16.c | PRINTK(("## %s: init done after %d ticks\n", SK_NAME, i)); |
i | 1784 | drivers/net/sk_g16.c | int i,j; |
i | 1793 | drivers/net/sk_g16.c | for (i = 0; (rom_location[i] != 0) && (rom_found == 0); i++) |
i | 1796 | drivers/net/sk_g16.c | PRINTK(("## Trying ROM location %#08x", rom_location[i])); |
i | 1801 | drivers/net/sk_g16.c | test_byte = (unsigned char *) (rom_location[i]+j); |
i | 1815 | drivers/net/sk_g16.c | SK_NAME, rom_location[(i-1)])); |
i | 1817 | drivers/net/sk_g16.c | return (rom_location[--i]); |
i | 1855 | drivers/net/sk_g16.c | int i; |
i | 1858 | drivers/net/sk_g16.c | for (i = 0; i < 10 ; i++) /* Delay min 5ms */ |
i | 2086 | drivers/net/sk_g16.c | int i; |
i | 2099 | drivers/net/sk_g16.c | for(i = 0; i < TMDNUM; i++) |
i | 2101 | drivers/net/sk_g16.c | if (!(i % 3)) /* Every third line do a newline */ |
i | 2105 | drivers/net/sk_g16.c | printk("tmdbufs%d: %#08x ", (i+1), (int) p->tmdbufs[i]); |
i | 2109 | drivers/net/sk_g16.c | for(i = 0; i < RMDNUM; i++) |
i | 2111 | drivers/net/sk_g16.c | if (!(i % 3)) /* Every third line do a newline */ |
i | 2115 | drivers/net/sk_g16.c | printk("rmdbufs%d: %#08x ", (i+1), (int) p->rmdbufs[i]); |
i | 138 | drivers/net/skeleton.c | int i; |
i | 146 | drivers/net/skeleton.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 147 | drivers/net/skeleton.c | int ioaddr = netcard_portlist[i]; |
i | 165 | drivers/net/skeleton.c | int i; |
i | 196 | drivers/net/skeleton.c | for (i = 0; i < 6; i++) |
i | 197 | drivers/net/skeleton.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 253 | drivers/net/skeleton.c | for (i = 7; i > 0; i--) |
i | 254 | drivers/net/skeleton.c | if (test_bit(i, &new_dma_status)) { |
i | 255 | drivers/net/skeleton.c | dev->dma = i; |
i | 258 | drivers/net/skeleton.c | if (i <= 0) { |
i | 99 | drivers/net/slhc.c | register short i; |
i | 150 | drivers/net/slhc.c | for(i = comp->tslot_limit; i > 0; --i){ |
i | 151 | drivers/net/slhc.c | ts[i].cs_this = i; |
i | 152 | drivers/net/slhc.c | ts[i].next = &(ts[i - 1]); |
i | 551 | drivers/net/slhc.c | register short i; |
i | 552 | drivers/net/slhc.c | i = ntohs(ip->tot_len) - hdrlen; |
i | 553 | drivers/net/slhc.c | thp->ack_seq = htonl( ntohl(thp->ack_seq) + i); |
i | 554 | drivers/net/slhc.c | thp->seq = htonl( ntohl(thp->seq) + i); |
i | 116 | drivers/net/slip.c | int i; |
i | 120 | drivers/net/slip.c | for (i = 0; i < slip_maxdev; i++) { |
i | 121 | drivers/net/slip.c | slp = slip_ctrls[i]; |
i | 132 | drivers/net/slip.c | if (i >= slip_maxdev) return NULL; |
i | 136 | drivers/net/slip.c | (slip_ctrls[i] = (slip_ctrl_t *)kmalloc(sizeof(slip_ctrl_t), |
i | 138 | drivers/net/slip.c | slp = slip_ctrls[i]; |
i | 144 | drivers/net/slip.c | sprintf(slp->if_name, "sl%d", i); |
i | 146 | drivers/net/slip.c | slp->dev.base_addr = i; |
i | 925 | drivers/net/slip.c | int i; |
i | 941 | drivers/net/slip.c | for (i = 0; i < len; ++i) { |
i | 942 | drivers/net/slip.c | v = (v << 8) | s[i]; |
i | 1182 | drivers/net/slip.c | int i; |
i | 1223 | drivers/net/slip.c | for (i = 0; i < DEV_NUMBUFFS; i++) { |
i | 1224 | drivers/net/slip.c | skb_queue_head_init(&dev->buffs[i]); |
i | 1249 | drivers/net/slip.c | int i; |
i | 1256 | drivers/net/slip.c | for (i = 0; i < slip_maxdev; i++) { |
i | 1257 | drivers/net/slip.c | if (slip_ctrls[i] != NULL) { |
i | 1258 | drivers/net/slip.c | unregister_netdev(&(slip_ctrls[i]->dev)); |
i | 1259 | drivers/net/slip.c | kfree(slip_ctrls[i]); |
i | 1265 | drivers/net/slip.c | if ((i = tty_register_ldisc(N_SLIP, NULL))) { |
i | 1266 | drivers/net/slip.c | printk("SLIP: can't unregister line discipline (err = %d)\n", i); |
i | 97 | drivers/net/smc-ultra.c | int i; |
i | 105 | drivers/net/smc-ultra.c | for (i = 0; ultra_portlist[i]; i++) { |
i | 106 | drivers/net/smc-ultra.c | int ioaddr = ultra_portlist[i]; |
i | 119 | drivers/net/smc-ultra.c | int i; |
i | 136 | drivers/net/smc-ultra.c | for (i = 0; i < 8; i++) |
i | 137 | drivers/net/smc-ultra.c | checksum += inb(ioaddr + 8 + i); |
i | 150 | drivers/net/smc-ultra.c | for (i = 0; i < 6; i++) |
i | 151 | drivers/net/smc-ultra.c | printk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i)); |
i | 218 | drivers/net/tulip.c | int i; |
i | 239 | drivers/net/tulip.c | for (i = 0; i < 6; i++) { |
i | 244 | drivers/net/tulip.c | printk(" %2.2x", dev->dev_addr[i] = value); |
i | 309 | drivers/net/tulip.c | int *setup_frm = tp->setup_frame, i; |
i | 316 | drivers/net/tulip.c | for (i = 1; i < 16; i++) { |
i | 365 | drivers/net/tulip.c | int i; |
i | 371 | drivers/net/tulip.c | for (i = 0; i < RX_RING_SIZE; i++) { |
i | 372 | drivers/net/tulip.c | tp->rx_ring[i].status = 0x80000000; /* Owned by Tulip chip */ |
i | 373 | drivers/net/tulip.c | tp->rx_ring[i].length = PKT_BUF_SZ; |
i | 374 | drivers/net/tulip.c | tp->rx_ring[i].buffer1 = (char *)(tp->rx_buffs + i*PKT_BUF_SZ); |
i | 375 | drivers/net/tulip.c | tp->rx_ring[i].buffer2 = (char *)&tp->rx_ring[i+1]; |
i | 378 | drivers/net/tulip.c | tp->rx_ring[i-1].length = PKT_BUF_SZ | 0x02000000; |
i | 379 | drivers/net/tulip.c | tp->rx_ring[i-1].buffer2 = (char *)&tp->rx_ring[0]; |
i | 383 | drivers/net/tulip.c | for (i = 0; i < TX_RING_SIZE; i++) { |
i | 384 | drivers/net/tulip.c | tp->tx_ring[i].status = 0x00000000; |
i | 398 | drivers/net/tulip.c | int i; |
i | 405 | drivers/net/tulip.c | for (i = 0; i < RX_RING_SIZE; i++) |
i | 406 | drivers/net/tulip.c | printk(" %8.8x", (unsigned int)tp->rx_ring[i].status); |
i | 408 | drivers/net/tulip.c | for (i = 0; i < TX_RING_SIZE; i++) |
i | 409 | drivers/net/tulip.c | printk(" %8.8x", (unsigned int)tp->tx_ring[i].status); |
i | 591 | drivers/net/tulip.c | int i; |
i | 621 | drivers/net/tulip.c | for (i=0; i < RX_RING_SIZE; i++) |
i | 622 | drivers/net/tulip.c | if (lp->rx_ring[(entry+i) % RX_RING_SIZE].status < 0) |
i | 625 | drivers/net/tulip.c | if (i > RX_RING_SIZE -2) { |
i | 710 | drivers/net/tulip.c | int i; |
i | 716 | drivers/net/tulip.c | for(i = 0; i < num_addrs; i++) { |
i | 727 | drivers/net/tulip.c | } while (++i < 16); |
i | 736 | drivers/net/tulip.c | int i; |
i | 740 | drivers/net/tulip.c | for (i = 0; i < 6; i++) |
i | 741 | drivers/net/tulip.c | printk(" %2.2x", dev->dev_addr[i] = ((unsigned char *)addr)[i]); |
i | 466 | drivers/net/wavelan.c | int i; |
i | 481 | drivers/net/wavelan.c | for (i = 1000; i > 0; i--) |
i | 490 | drivers/net/wavelan.c | if (i <= 0) |
i | 506 | drivers/net/wavelan.c | int i; |
i | 516 | drivers/net/wavelan.c | for (i = 64; i > 0; i--) |
i | 525 | drivers/net/wavelan.c | if (i <= 0 || !(cb.ac_status & AC_SFLD_OK)) |
i | 548 | drivers/net/wavelan.c | int i; |
i | 571 | drivers/net/wavelan.c | for (i = 0; i < I82586_MEMZ; i += sizeof(zeroes)) |
i | 572 | drivers/net/wavelan.c | obram_write(ioaddr, i, &zeroes[0], sizeof(zeroes)); |
i | 601 | drivers/net/wavelan.c | for (i = 1000; i > 0; i--) |
i | 611 | drivers/net/wavelan.c | if (i <= 0) |
i | 619 | drivers/net/wavelan.c | for (i = 15; i > 0; i--) |
i | 629 | drivers/net/wavelan.c | if (i <= 0) |
i | 780 | drivers/net/wavelan.c | int i; |
i | 833 | drivers/net/wavelan.c | for (i = 0; i < nels(iobase); i++) |
i | 835 | drivers/net/wavelan.c | if (check_region(iobase[i], sizeof(ha_t))) |
i | 838 | drivers/net/wavelan.c | if (wavelan_probe1(dev, iobase[i]) == 0) |
i | 865 | drivers/net/wavelan.c | int i; |
i | 953 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 954 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? " " : ":", dev->dev_addr[i]); |
i | 1082 | drivers/net/wavelan.c | int i; |
i | 1093 | drivers/net/wavelan.c | for (i = 0, rx = lp->rx_head; i < NRXBLOCKS; i++, rx = rx_next) |
i | 1095 | drivers/net/wavelan.c | rx_next = (i == NRXBLOCKS - 1) ? lp->rx_head : rx + RXBLOCKZ; |
i | 1098 | drivers/net/wavelan.c | fd.fd_command = (i == NRXBLOCKS - 1) ? FD_COMMAND_EL : 0; |
i | 1120 | drivers/net/wavelan.c | for (i = 1000; i > 0; i--) |
i | 1129 | drivers/net/wavelan.c | if (i <= 0) |
i | 1144 | drivers/net/wavelan.c | int i; |
i | 1157 | drivers/net/wavelan.c | i = 0, txblock = OFFSET_CU; |
i | 1158 | drivers/net/wavelan.c | i < NTXBLOCKS; |
i | 1159 | drivers/net/wavelan.c | i++, txblock += TXBLOCKZ |
i | 1201 | drivers/net/wavelan.c | for (i = 1000; i > 0; i--) |
i | 1210 | drivers/net/wavelan.c | if (i <= 0) |
i | 1467 | drivers/net/wavelan.c | int i; |
i | 1469 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1471 | drivers/net/wavelan.c | if (a0[i] != a1[i]) |
i | 1472 | drivers/net/wavelan.c | return a0[i] - a1[i]; |
i | 1584 | drivers/net/wavelan.c | int i; |
i | 1601 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1602 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", addr[i]); |
i | 1612 | drivers/net/wavelan.c | int i; |
i | 1616 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1617 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", fd.fd_dest[i]); |
i | 1621 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1622 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", fd.fd_src[i]); |
i | 1629 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1630 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", addr[i]); |
i | 1635 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1636 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", addr[i]); |
i | 1658 | drivers/net/wavelan.c | int i; |
i | 1666 | drivers/net/wavelan.c | for (i = 0; i < maxi; i++) |
i | 1670 | drivers/net/wavelan.c | c = skb->data[i]; |
i | 1672 | drivers/net/wavelan.c | printk(" %c", skb->data[i]); |
i | 1674 | drivers/net/wavelan.c | printk("%02x", skb->data[i]); |
i | 2219 | drivers/net/wavelan.c | wavelan_cu_show_one(device *dev, net_local *lp, int i, unsigned short p) |
i | 2226 | drivers/net/wavelan.c | printk("%d: 0x%x:", i, p); |
i | 2448 | drivers/net/wavelan.c | unsigned int i; |
i | 2456 | drivers/net/wavelan.c | for (i = 0, p = lp->tx_first_in_use; i < NTXBLOCKS; i++) |
i | 2458 | drivers/net/wavelan.c | wavelan_cu_show_one(dev, lp, i, p); |
i | 86 | drivers/net/wd.c | int i; |
i | 94 | drivers/net/wd.c | for (i = 0; wd_portlist[i]; i++) { |
i | 95 | drivers/net/wd.c | int ioaddr = wd_portlist[i]; |
i | 108 | drivers/net/wd.c | int i; |
i | 114 | drivers/net/wd.c | for (i = 0; i < 8; i++) |
i | 115 | drivers/net/wd.c | checksum += inb(ioaddr + 8 + i); |
i | 125 | drivers/net/wd.c | for (i = 0; i < 6; i++) |
i | 126 | drivers/net/wd.c | printk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i)); |
i | 152 | drivers/net/wd.c | for (i = 0; i < 6; i++) |
i | 153 | drivers/net/wd.c | if (inb(ioaddr+i) != inb(ioaddr+8+i)) |
i | 155 | drivers/net/wd.c | if (i >= 6) { |
i | 204 | drivers/net/znet.c | int i; |
i | 225 | drivers/net/znet.c | for (i = 0; i < 6; i++) |
i | 226 | drivers/net/znet.c | printk(" %2.2x", dev->dev_addr[i] = netinfo->netid[i]); |
i | 255 | drivers/pci/pci.c | int i = (min + max) >> 1; |
i | 258 | drivers/pci/pci.c | order = dev_info[i].vendor - (long) vendor; |
i | 260 | drivers/pci/pci.c | order = dev_info[i].device - (long) dev; |
i | 264 | drivers/pci/pci.c | min = i + 1; |
i | 272 | drivers/pci/pci.c | max = i - 1; |
i | 278 | drivers/pci/pci.c | return & dev_info[ i ]; |
i | 453 | drivers/pci/pci.c | int i; |
i | 457 | drivers/pci/pci.c | for (i = 0; i < NUM_OPTIMIZATIONS; i++) { |
i | 458 | drivers/pci/pci.c | printk(" %s: ", bridge_optimization[i].type); |
i | 459 | drivers/pci/pci.c | bmap = &bridge_mapping[pos + i]; |
i | 465 | drivers/pci/pci.c | printk("%s.", bridge_optimization[i].on); |
i | 471 | drivers/pci/pci.c | printk("Changed! Now %s.", bridge_optimization[i].off); |
i | 474 | drivers/pci/pci.c | printk("%s.", bridge_optimization[i].off); |
i | 480 | drivers/pci/pci.c | printk("Changed! Now %s.", bridge_optimization[i].on); |
i | 411 | drivers/scsi/53c7,8xx.c | int i, j, ccf; |
i | 541 | drivers/scsi/53c7,8xx.c | case DMODE_BL_2: i = 2; break; |
i | 542 | drivers/scsi/53c7,8xx.c | case DMODE_BL_4: i = 4; break; |
i | 543 | drivers/scsi/53c7,8xx.c | case DMODE_BL_8: i = 8; break; |
i | 544 | drivers/scsi/53c7,8xx.c | case DMODE_BL_16: i = 16; break; |
i | 545 | drivers/scsi/53c7,8xx.c | default: i = 0; |
i | 547 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : burst length %d\n", host->host_no, i); |
i | 590 | drivers/scsi/53c7,8xx.c | for (i = 0; i < 8; ++i) { |
i | 591 | drivers/scsi/53c7,8xx.c | hostdata->cmd_allocated[i] = 0; |
i | 593 | drivers/scsi/53c7,8xx.c | hostdata->busy[i][j] = 0; |
i | 600 | drivers/scsi/53c7,8xx.c | hostdata->sync[i].select_indirect |= (i << 16); |
i | 602 | drivers/scsi/53c7,8xx.c | hostdata->sync[i].script[0] = (DCMD_TYPE_TCI|DCMD_TCI_OP_RETURN) << 24 | |
i | 611 | drivers/scsi/53c7,8xx.c | hostdata->sync[i].select_indirect |= (hostdata->saved_scntl3) << 24; |
i | 871 | drivers/scsi/53c7,8xx.c | int i; |
i | 950 | drivers/scsi/53c7,8xx.c | for (i = 0; i < NPCI_CHIP_IDS; ++i) { |
i | 951 | drivers/scsi/53c7,8xx.c | if (device_id == pci_chip_ids[i].pci_device_id) { |
i | 952 | drivers/scsi/53c7,8xx.c | max_revision = pci_chip_ids[i].max_revision; |
i | 953 | drivers/scsi/53c7,8xx.c | min_revision = pci_chip_ids[i].min_revision; |
i | 954 | drivers/scsi/53c7,8xx.c | expected_chip = pci_chip_ids[i].chip; |
i | 956 | drivers/scsi/53c7,8xx.c | if (chip == pci_chip_ids[i].chip) |
i | 957 | drivers/scsi/53c7,8xx.c | expected_id = pci_chip_ids[i].pci_device_id; |
i | 991 | drivers/scsi/53c7,8xx.c | int i; |
i | 1022 | drivers/scsi/53c7,8xx.c | for (i = 0; i < NPCI_CHIP_IDS; ++i) |
i | 1025 | drivers/scsi/53c7,8xx.c | pci_chip_ids[i].pci_device_id, pci_index, &pci_bus, |
i | 1027 | drivers/scsi/53c7,8xx.c | !ncr_pci_init (tpnt, BOARD_GENERIC, pci_chip_ids[i].chip, |
i | 1055 | drivers/scsi/53c7,8xx.c | int i, ncr_to_memory, memory_to_ncr, ncr_to_ncr; |
i | 1066 | drivers/scsi/53c7,8xx.c | for (i = 0; i < PATCHES; ++i) |
i | 1067 | drivers/scsi/53c7,8xx.c | hostdata->script[LABELPATCHES[i]] += |
i | 1081 | drivers/scsi/53c7,8xx.c | for (i = 0; i < EXTERNAL_PATCHES_LEN; ++i) |
i | 1082 | drivers/scsi/53c7,8xx.c | hostdata->script[EXTERNAL_PATCHES[i].offset] += |
i | 1083 | drivers/scsi/53c7,8xx.c | virt_to_bus(EXTERNAL_PATCHES[i].address); |
i | 1224 | drivers/scsi/53c7,8xx.c | int failed, i; |
i | 1333 | drivers/scsi/53c7,8xx.c | for (i = 0; i < 3; ++i) { |
i | 1342 | drivers/scsi/53c7,8xx.c | dsa[0] = (0x33 << 24) | (i << 16) ; |
i | 1362 | drivers/scsi/53c7,8xx.c | host->host_no, i, data + 8); |
i | 1370 | drivers/scsi/53c7,8xx.c | host->host_no, i); |
i | 1384 | drivers/scsi/53c7,8xx.c | host->host_no, i); |
i | 1409 | drivers/scsi/53c7,8xx.c | int i; |
i | 1449 | drivers/scsi/53c7,8xx.c | int i; |
i | 1453 | drivers/scsi/53c7,8xx.c | for (i = 0; i < 2; ++i) { |
i | 1454 | drivers/scsi/53c7,8xx.c | for (search = (i ? hostdata->issue_dsa_head : |
i | 1455 | drivers/scsi/53c7,8xx.c | hostdata->reconnect_dsa_head), prev = (i ? |
i | 1625 | drivers/scsi/53c7,8xx.c | int desire, divisor, i, limit; |
i | 1640 | drivers/scsi/53c7,8xx.c | for (i = 0; (i < limit) && (divisor < syncs[i + 1].div); ++i); |
i | 1643 | drivers/scsi/53c7,8xx.c | syncs[i].div / 10, syncs[i].div % 10); |
i | 1648 | drivers/scsi/53c7,8xx.c | ~SCNTL3_800_SCF_MASK) | (syncs[i].scf << SCNTL3_800_SCF_SHIFT)) : 0; |
i | 1649 | drivers/scsi/53c7,8xx.c | sxfer = (msg[4] << SXFER_MO_SHIFT) | ((syncs[i].tp) << SXFER_TP_SHIFT); |
i | 2140 | drivers/scsi/53c7,8xx.c | {DT_help, "?", 0} , TOKEN(h,0), TOKEN(i,0), TOKEN(mp,2), |
i | 2163 | drivers/scsi/53c7,8xx.c | int i, j, error, len; |
i | 2183 | drivers/scsi/53c7,8xx.c | for (i = 0; i < NDT; ++i) { |
i | 2184 | drivers/scsi/53c7,8xx.c | len = strlen (debugger_tokens[i].name); |
i | 2185 | drivers/scsi/53c7,8xx.c | if (!strncmp(input_buf, debugger_tokens[i].name, len)) |
i | 2189 | drivers/scsi/53c7,8xx.c | if (i == NDT) |
i | 2192 | drivers/scsi/53c7,8xx.c | for (ptr = input_buf + len, j = 0; j < debugger_tokens[i].nargs && *ptr;) { |
i | 2202 | drivers/scsi/53c7,8xx.c | if (j != debugger_tokens[i].nargs) |
i | 2367 | drivers/scsi/53c7,8xx.c | i; /* Counter */ |
i | 2392 | drivers/scsi/53c7,8xx.c | for (i = host->hostt->cmd_per_lun - 1; i >= 0 --i) { |
i | 2414 | drivers/scsi/53c7,8xx.c | if (i > 0) { |
i | 2602 | drivers/scsi/53c7,8xx.c | for (i = 0; cmd->use_sg ? (i < cmd->use_sg) : !i; cmd_datain += 4, |
i | 2603 | drivers/scsi/53c7,8xx.c | cmd_dataout += 4, ++i) { |
i | 2605 | drivers/scsi/53c7,8xx.c | virt_to_bus(((struct scatterlist *)cmd->buffer)[i].address) : |
i | 2608 | drivers/scsi/53c7,8xx.c | ((struct scatterlist *)cmd->buffer)[i].length : |
i | 3904 | drivers/scsi/53c7,8xx.c | int i, len; |
i | 3913 | drivers/scsi/53c7,8xx.c | for (i = dsa[hostdata->dsa_msgout / sizeof(u32)], |
i | 3914 | drivers/scsi/53c7,8xx.c | ptr = bus_to_virt(dsa[hostdata->dsa_msgout / sizeof(u32) + 1]); i > 0; |
i | 3915 | drivers/scsi/53c7,8xx.c | ptr += len, i -= len) { |
i | 1359 | drivers/scsi/53c7,8xx.h | for (i = 0; i < (sizeof (A_##symbol##_used) / sizeof \ |
i | 1360 | drivers/scsi/53c7,8xx.h | (u32)); ++i) { \ |
i | 1361 | drivers/scsi/53c7,8xx.h | (script)[A_##symbol##_used[i] - (offset)] += (value); \ |
i | 1364 | drivers/scsi/53c7,8xx.h | host->host_no, #symbol, i, A_##symbol##_used[i] - \ |
i | 1365 | drivers/scsi/53c7,8xx.h | (int)(offset), #script, (script)[A_##symbol##_used[i] - \ |
i | 1370 | drivers/scsi/53c7,8xx.h | for (i = 0; i < (sizeof (A_##symbol##_used) / sizeof \ |
i | 1371 | drivers/scsi/53c7,8xx.h | (u32)); ++i) \ |
i | 1372 | drivers/scsi/53c7,8xx.h | (script)[A_##symbol##_used[i] - (offset)] = \ |
i | 1373 | 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 | 645 | drivers/scsi/NCR5380.c | for (i = 0, mask = 1; i < 16; ++i, mask <<= 1) |
i | 647 | drivers/scsi/NCR5380.c | free_irq(i); |
i | 765 | drivers/scsi/NCR5380.c | int i; |
i | 783 | drivers/scsi/NCR5380.c | for (i = hostdata->id_mask; i <= 0x80; i <<= 1) |
i | 784 | drivers/scsi/NCR5380.c | if (i > hostdata->id_mask) |
i | 785 | drivers/scsi/NCR5380.c | hostdata->id_higher_mask |= i; |
i | 786 | drivers/scsi/NCR5380.c | for (i = 0; i < 8; ++i) |
i | 787 | drivers/scsi/NCR5380.c | hostdata->busy[i] = 0; |
i | 156 | drivers/scsi/NCR53c406a.c | #define rtrc(i) {inb(0x3da);outb(0x31,0x3c0);outb((i),0x3c0);} |
i | 158 | drivers/scsi/NCR53c406a.c | #define rtrc(i) {} |
i | 354 | drivers/scsi/NCR53c406a.c | int i; |
i | 360 | drivers/scsi/NCR53c406a.c | i = inb(PIO_STATUS); |
i | 362 | drivers/scsi/NCR53c406a.c | if (i & 0x80) |
i | 365 | drivers/scsi/NCR53c406a.c | switch( i & 0x1e ) { |
i | 379 | drivers/scsi/NCR53c406a.c | if ((i & 0x40) && len == 0) { /* fifo empty and interrupt occured */ |
i | 409 | drivers/scsi/NCR53c406a.c | int i = 0; |
i | 414 | drivers/scsi/NCR53c406a.c | while (reqlen && !(i&0x40)) { |
i | 415 | drivers/scsi/NCR53c406a.c | i = inb(PIO_STATUS); |
i | 417 | drivers/scsi/NCR53c406a.c | if (i & 0x80) /* error */ |
i | 420 | drivers/scsi/NCR53c406a.c | switch( i & 0x1e ) { |
i | 462 | drivers/scsi/NCR53c406a.c | int i; |
i | 494 | drivers/scsi/NCR53c406a.c | for(i=0; i<PORT_COUNT && !port_base; i++){ |
i | 495 | drivers/scsi/NCR53c406a.c | if(check_region(ports[i], 0x10)){ |
i | 496 | drivers/scsi/NCR53c406a.c | DEB(printk("NCR53c406a: port %x in use\n", ports[i])); |
i | 499 | drivers/scsi/NCR53c406a.c | VDEB(printk("NCR53c406a: port %x available\n", ports[i])); |
i | 500 | drivers/scsi/NCR53c406a.c | outb(C5_IMG, ports[i] + 0x0d); /* reg set 1 */ |
i | 501 | drivers/scsi/NCR53c406a.c | if( (inb(ports[i] + 0x0e) ^ inb(ports[i] + 0x0e)) == 7 |
i | 502 | drivers/scsi/NCR53c406a.c | && (inb(ports[i] + 0x0e) ^ inb(ports[i] + 0x0e)) == 7 |
i | 503 | drivers/scsi/NCR53c406a.c | && (inb(ports[i] + 0x0e) & 0xf8) == 0x58 ) { |
i | 506 | drivers/scsi/NCR53c406a.c | port_base = ports[i]; |
i | 590 | drivers/scsi/NCR53c406a.c | size_t i; |
i | 603 | drivers/scsi/NCR53c406a.c | for (i = 0; i < PORT_COUNT && !port_base; i++) |
i | 604 | drivers/scsi/NCR53c406a.c | if (ports[i] == ints[1]) { |
i | 619 | drivers/scsi/NCR53c406a.c | for (i = 0; i < INTR_COUNT && irq_level < 0; i++) |
i | 620 | drivers/scsi/NCR53c406a.c | if (intrs[i] == ints[2]) { |
i | 647 | drivers/scsi/NCR53c406a.c | int i = jiffies + WATCHDOG; |
i | 649 | drivers/scsi/NCR53c406a.c | while(i>jiffies && !(inb(STAT_REG)&0xe0)) /* wait for a pseudo-interrupt */ |
i | 652 | drivers/scsi/NCR53c406a.c | if (i <= jiffies) { /* Timed out */ |
i | 679 | drivers/scsi/NCR53c406a.c | int i; |
i | 691 | drivers/scsi/NCR53c406a.c | VDEB(for(i=0; i<SCpnt->cmd_len; i++) |
i | 692 | drivers/scsi/NCR53c406a.c | printk("cmd[%d]=%02x ", i, SCpnt->cmnd[i])); |
i | 708 | drivers/scsi/NCR53c406a.c | for(i=0; i<SCpnt->cmd_len; i++){ |
i | 709 | drivers/scsi/NCR53c406a.c | outb(SCpnt->cmnd[i], SCSI_FIFO); |
i | 917 | drivers/scsi/NCR53c406a.c | for(i=0; i<current_SC->request_bufflen && i<256; i++) |
i | 918 | drivers/scsi/NCR53c406a.c | printk("%02x ", *((unsigned char*)current_SC->request_buffer + i)); |
i | 968 | drivers/scsi/NCR53c406a.c | int i; |
i | 979 | drivers/scsi/NCR53c406a.c | i = jiffies + WATCHDOG; |
i | 980 | drivers/scsi/NCR53c406a.c | while(i > jiffies && !(inb(STAT_REG) & 0x80)) |
i | 982 | drivers/scsi/NCR53c406a.c | if (i <= jiffies) { /* Timed out, must be hardware trouble */ |
i | 560 | drivers/scsi/aha152x.c | int i; |
i | 566 | drivers/scsi/aha152x.c | for(i=0; i<16; i++) |
i | 567 | drivers/scsi/aha152x.c | SETPORT( STACK, i ); |
i | 570 | drivers/scsi/aha152x.c | for(i=0; i<16 && GETPORT(STACK)==i; i++) |
i | 573 | drivers/scsi/aha152x.c | return(i==16); |
i | 578 | drivers/scsi/aha152x.c | int i, ok; |
i | 616 | drivers/scsi/aha152x.c | for( i=0; i<PORT_COUNT && (port_base != ports[i]); i++) |
i | 619 | drivers/scsi/aha152x.c | if(i==PORT_COUNT) |
i | 637 | drivers/scsi/aha152x.c | i=0; |
i | 638 | drivers/scsi/aha152x.c | while(irqs[i] && (interrupt_level!=irqs[i])) |
i | 639 | drivers/scsi/aha152x.c | i++; |
i | 640 | drivers/scsi/aha152x.c | if(!irqs[i]) |
i | 672 | drivers/scsi/aha152x.c | for( i=0; i < ADDRESS_COUNT && !ok; i++) |
i | 674 | drivers/scsi/aha152x.c | ok=!memcmp((void *) addresses[i]+signatures[j].sig_offset, |
i | 688 | drivers/scsi/aha152x.c | for( i=0; i<PORT_COUNT && !aha152x_porttest(ports[i]); i++) |
i | 691 | drivers/scsi/aha152x.c | if(i==PORT_COUNT) |
i | 697 | drivers/scsi/aha152x.c | port_base=ports[i]; |
i | 1262 | drivers/scsi/aha152x.c | int identify_msg, target, i; |
i | 1289 | drivers/scsi/aha152x.c | i = GETPORT(SELID) & ~(1 << this_host); |
i | 1291 | drivers/scsi/aha152x.c | if(i) |
i | 1292 | drivers/scsi/aha152x.c | for( ; (i & 1)==0; target++, i>>=1) |
i | 1310 | drivers/scsi/aha152x.c | if((i=getphase())!=P_MSGI) |
i | 1312 | drivers/scsi/aha152x.c | printk("target doesn't enter MSGI to identify (phase=%02x)\n", i); |
i | 1757 | drivers/scsi/aha152x.c | int i, code; |
i | 1767 | drivers/scsi/aha152x.c | i=GETPORT(SCSIBUS); |
i | 1771 | drivers/scsi/aha152x.c | printk("length (%d), code ( ", i); |
i | 1824 | drivers/scsi/aha152x.c | while( --i && (make_acklow(), getphase()==P_MSGI)) |
i | 1998 | drivers/scsi/aha152x.c | int i; |
i | 2004 | drivers/scsi/aha152x.c | for( i=0; i<2*data_count; i++) |
i | 292 | drivers/scsi/aha1542.c | int i; |
i | 311 | drivers/scsi/aha1542.c | i = jiffies + 2; |
i | 312 | drivers/scsi/aha1542.c | while (i>jiffies); /* Wait a little bit for things to settle down. */ |
i | 489 | drivers/scsi/aha1542.c | int i; |
i | 493 | drivers/scsi/aha1542.c | for (i = 0; i < 12; i++) |
i | 494 | drivers/scsi/aha1542.c | printk("%02x ", ccb[mbo].cdb[ccb[mbo].cdblen+i]); |
i | 527 | drivers/scsi/aha1542.c | DEB(int i); |
i | 549 | drivers/scsi/aha1542.c | i = xscsi2int(cmd+2); |
i | 551 | drivers/scsi/aha1542.c | i = scsi2int(cmd+2); |
i | 553 | drivers/scsi/aha1542.c | i = -1; |
i | 555 | drivers/scsi/aha1542.c | printk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 557 | drivers/scsi/aha1542.c | printk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 560 | drivers/scsi/aha1542.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
i | 613 | drivers/scsi/aha1542.c | int i; |
i | 619 | drivers/scsi/aha1542.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 620 | drivers/scsi/aha1542.c | if(sgpnt[i].length == 0 || SCpnt->use_sg > 16 || |
i | 621 | drivers/scsi/aha1542.c | (((int)sgpnt[i].address) & 1) || (sgpnt[i].length & 1)){ |
i | 623 | drivers/scsi/aha1542.c | printk("Bad segment list supplied to aha1542.c (%d, %d)\n",SCpnt->use_sg,i); |
i | 624 | drivers/scsi/aha1542.c | for(i=0;i<SCpnt->use_sg;i++){ |
i | 625 | drivers/scsi/aha1542.c | printk("%d: %x %x %d\n",i,(unsigned int) sgpnt[i].address, (unsigned int) sgpnt[i].alt_address, |
i | 626 | drivers/scsi/aha1542.c | sgpnt[i].length); |
i | 629 | drivers/scsi/aha1542.c | ptr = (unsigned char *) &cptr[i]; |
i | 630 | drivers/scsi/aha1542.c | for(i=0;i<18;i++) printk("%02x ", ptr[i]); |
i | 633 | drivers/scsi/aha1542.c | any2scsi(cptr[i].dataptr, sgpnt[i].address); |
i | 634 | drivers/scsi/aha1542.c | if(((unsigned int) sgpnt[i].address) & 0xff000000) goto baddma; |
i | 635 | drivers/scsi/aha1542.c | any2scsi(cptr[i].datalen, sgpnt[i].length); |
i | 642 | drivers/scsi/aha1542.c | for(i=0;i<18;i++) printk("%02x ", ptr[i]); |
i | 657 | drivers/scsi/aha1542.c | { int i; |
i | 659 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(ccb[mbo])-10; i++) |
i | 660 | drivers/scsi/aha1542.c | printk("%02x ", ((unchar *)&ccb[mbo])[i]); |
i | 699 | drivers/scsi/aha1542.c | int i; |
i | 708 | drivers/scsi/aha1542.c | for(i=0; i<AHA1542_MAILBOXES; i++){ |
i | 709 | drivers/scsi/aha1542.c | mb[i].status = mb[AHA1542_MAILBOXES+i].status = 0; |
i | 710 | drivers/scsi/aha1542.c | any2scsi(mb[i].ccbptr, &ccb[i]); |
i | 727 | drivers/scsi/aha1542.c | int i; |
i | 728 | drivers/scsi/aha1542.c | i = inb(STATUS(base_io)); |
i | 729 | drivers/scsi/aha1542.c | if (i & DF) { |
i | 730 | drivers/scsi/aha1542.c | i = inb(DATA(base_io)); |
i | 828 | drivers/scsi/aha1542.c | int i; |
i | 829 | drivers/scsi/aha1542.c | i = inb(STATUS(base_io)); |
i | 830 | drivers/scsi/aha1542.c | if (i & DF) { |
i | 831 | drivers/scsi/aha1542.c | i = inb(DATA(base_io)); |
i | 1043 | drivers/scsi/aha1542.c | int i; |
i | 1045 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87; |
i | 1046 | drivers/scsi/aha1542.c | for (i = 0; i < 2; ++i) |
i | 1047 | drivers/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
i | 1049 | drivers/scsi/aha1542.c | i, xscsi2int(buf+4), xscsi2int(buf)); |
i | 1055 | drivers/scsi/aha1542.c | for (i = 0; i < 4; ++i) |
i | 1062 | drivers/scsi/aha1542.c | xany2scsi(cmd+2, i); |
i | 1084 | drivers/scsi/aha1542.c | int i; |
i | 1090 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1091 | drivers/scsi/aha1542.c | if(HOSTDATA(shost)->SCint[i] && |
i | 1092 | drivers/scsi/aha1542.c | !(HOSTDATA(shost)->SCint[i]->device->soft_reset)) |
i | 1095 | drivers/scsi/aha1542.c | HOSTDATA(shost)->mb[i].status = 1; /* Indicate ready to restart... */ |
i | 1118 | drivers/scsi/aha1542.c | int mbi, mbo, i; |
i | 1147 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1148 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i]) |
i | 1150 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt) { |
i | 1153 | drivers/scsi/aha1542.c | if (HOSTDATA(SCpnt->host)->mb[i].status) { |
i | 1188 | drivers/scsi/aha1542.c | int i; |
i | 1210 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1211 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] != NULL) |
i | 1214 | drivers/scsi/aha1542.c | SCtmp = HOSTDATA(SCpnt->host)->SCint[i]; |
i | 1220 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[i] = NULL; |
i | 1221 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->mb[i].status = 0; |
i | 1234 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1235 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt) |
i | 1237 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->ccb[i].op = 0x81; /* BUS DEVICE RESET */ |
i | 1250 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1251 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] && |
i | 1252 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[i]->target == SCpnt->target) |
i | 1255 | drivers/scsi/aha1542.c | SCtmp = HOSTDATA(SCpnt->host)->SCint[i]; |
i | 1261 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[i] = NULL; |
i | 1262 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->mb[i].status = 0; |
i | 261 | drivers/scsi/aha1740.c | DEB(int i); |
i | 277 | drivers/scsi/aha1740.c | i = xscsi2int(cmd+2); |
i | 279 | drivers/scsi/aha1740.c | i = scsi2int(cmd+2); |
i | 281 | drivers/scsi/aha1740.c | i = -1; |
i | 282 | drivers/scsi/aha1740.c | printk("aha1740_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 284 | drivers/scsi/aha1740.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
i | 328 | drivers/scsi/aha1740.c | int i; |
i | 337 | drivers/scsi/aha1740.c | for(i=0; i<SCpnt->use_sg; i++) |
i | 339 | drivers/scsi/aha1740.c | cptr[i].dataptr = (long) sgpnt[i].address; |
i | 340 | drivers/scsi/aha1740.c | cptr[i].datalen = sgpnt[i].length; |
i | 347 | drivers/scsi/aha1740.c | for(i=0;i<24;i++) printk("%02x ", ptr[i]); |
i | 367 | drivers/scsi/aha1740.c | int i; |
i | 369 | drivers/scsi/aha1740.c | for (i = 0; i < sizeof(ecb[ecbno])-10; i++) |
i | 370 | drivers/scsi/aha1740.c | printk("%02x ", ((unchar *)&ecb[ecbno])[i]); |
i | 1087 | drivers/scsi/aic7xxx.c | int i; |
i | 1101 | drivers/scsi/aic7xxx.c | for (i = 0; options[i].name; i++) |
i | 1103 | drivers/scsi/aic7xxx.c | if (!strcmp(options[i].name, p)) |
i | 1105 | drivers/scsi/aic7xxx.c | *(options[i].flag) = !0; |
i | 1182 | drivers/scsi/aic7xxx.c | unsigned long i; |
i | 1184 | drivers/scsi/aic7xxx.c | i = jiffies + (seconds * HZ); /* compute time to stop */ |
i | 1186 | drivers/scsi/aic7xxx.c | while (jiffies < i) |
i | 1368 | drivers/scsi/aic7xxx.c | int i, segments; |
i | 1377 | drivers/scsi/aic7xxx.c | for (i = length = 0; i < cmd->use_sg && i < segments; i++) |
i | 1379 | drivers/scsi/aic7xxx.c | length += sg[i].length; |
i | 1401 | drivers/scsi/aic7xxx.c | int i; |
i | 1403 | drivers/scsi/aic7xxx.c | for (i = 0; i < num_aic7xxx_syncrates; i++) |
i | 1405 | drivers/scsi/aic7xxx.c | if ((aic7xxx_syncrates[i].period - period) >= 0) |
i | 1407 | drivers/scsi/aic7xxx.c | *scsirate = (aic7xxx_syncrates[i].rate << 4) | (offset & 0x0F); |
i | 1409 | drivers/scsi/aic7xxx.c | target, aic7xxx_syncrates[i].english, offset); |
i | 1509 | drivers/scsi/aic7xxx.c | int i; |
i | 1513 | drivers/scsi/aic7xxx.c | for (i = 0; i < NUMBER(hard_error); i++) |
i | 1515 | drivers/scsi/aic7xxx.c | if (errno & hard_error[i].errno) |
i | 1517 | drivers/scsi/aic7xxx.c | printk(" %s\n", hard_error[i].errmesg); |
i | 2329 | drivers/scsi/aic7xxx.c | int i; |
i | 2347 | drivers/scsi/aic7xxx.c | for (i = 0; i < sizeof(buf); i++) |
i | 2349 | drivers/scsi/aic7xxx.c | outb(0x80 + i, base); |
i | 2350 | drivers/scsi/aic7xxx.c | buf[i] = inb(base + i); |
i | 2353 | drivers/scsi/aic7xxx.c | for (i = 0; i < NUMBER(AIC7xxx); i++) |
i | 2358 | drivers/scsi/aic7xxx.c | if (!memcmp(buf, AIC7xxx[i].signature, AIC7xxx[i].n)) |
i | 2362 | drivers/scsi/aic7xxx.c | return (AIC7xxx[i].type); |
i | 2424 | drivers/scsi/aic7xxx.c | int i = 0, k = 0; |
i | 2476 | drivers/scsi/aic7xxx.c | for (i = 0; i < seeprom_read.len; i++) |
i | 2478 | drivers/scsi/aic7xxx.c | temp = SEEMS | SEECS | (seeprom_read.bits[i] << 1); |
i | 2486 | drivers/scsi/aic7xxx.c | for (i = 5; i >= 0; i--) |
i | 2489 | drivers/scsi/aic7xxx.c | temp = (temp >> i) & 1; /* Mask out all but lower bit. */ |
i | 2504 | drivers/scsi/aic7xxx.c | for (i = 0; i <= 16; i++) |
i | 2640 | drivers/scsi/aic7xxx.c | int i; |
i | 2962 | drivers/scsi/aic7xxx.c | for (i = 0; i < AIC7XXX_MAXSCB; i++) |
i | 2964 | drivers/scsi/aic7xxx.c | p->scb_array[i].state = SCB_FREE; |
i | 2965 | drivers/scsi/aic7xxx.c | p->scb_array[i].next = NULL; |
i | 2966 | drivers/scsi/aic7xxx.c | p->scb_array[i].cmd = NULL; |
i | 3080 | drivers/scsi/aic7xxx.c | for (i = 0; i < max_targets; i++) |
i | 3084 | drivers/scsi/aic7xxx.c | target_settings = (sc.device_flags[i] & CFXFER) << 4; |
i | 3085 | drivers/scsi/aic7xxx.c | if (sc.device_flags[i] & CFSYNCH) |
i | 3087 | drivers/scsi/aic7xxx.c | p->needsdtr_copy = p->needsdtr_copy | (0x01 << i); |
i | 3089 | drivers/scsi/aic7xxx.c | if ((sc.device_flags[i] & CFWIDEB) && (p->bus_type == AIC_WIDE)) |
i | 3091 | drivers/scsi/aic7xxx.c | p->needwdtr_copy = p->needwdtr_copy | (0x01 << i); |
i | 3096 | drivers/scsi/aic7xxx.c | target_settings = inb(HA_TARG_SCRATCH(base) + i); |
i | 3099 | drivers/scsi/aic7xxx.c | p->needsdtr_copy = p->needsdtr_copy | (0x01 << i); |
i | 3112 | drivers/scsi/aic7xxx.c | p->needwdtr_copy = p->needwdtr_copy | (0x01 << i); |
i | 3116 | drivers/scsi/aic7xxx.c | outb(target_settings, (HA_TARG_SCRATCH(base) + i)); |
i | 3130 | drivers/scsi/aic7xxx.c | for (i = 0; i < config.maxscb; i++) |
i | 3132 | drivers/scsi/aic7xxx.c | outb(i, SCBPTR(base)); |
i | 3211 | drivers/scsi/aic7xxx.c | int i; |
i | 3222 | drivers/scsi/aic7xxx.c | for (i = 0; i <= MAXIRQ; i++) |
i | 3224 | drivers/scsi/aic7xxx.c | aic7xxx_boards[i] = NULL; |
i | 3726 | drivers/scsi/aic7xxx.c | int i, active_scb, found, queued; |
i | 3749 | drivers/scsi/aic7xxx.c | for (i = found = 0; i < (queued - found); i++) |
i | 3751 | drivers/scsi/aic7xxx.c | scbsave[i] = inb(QINFIFO(p->base)); |
i | 3753 | drivers/scsi/aic7xxx.c | if (scbsave[i] == scb->position) |
i | 3756 | drivers/scsi/aic7xxx.c | i--; |
i | 3760 | drivers/scsi/aic7xxx.c | for (queued = 0; queued < i; queued++) |
i | 149 | drivers/scsi/aic7xxx_asm.c | int i; |
i | 167 | drivers/scsi/aic7xxx_asm.c | for (i = 0; i < p->npatch; i++) { |
i | 168 | drivers/scsi/aic7xxx_asm.c | M[p->patch[i]][0] &= ~1; |
i | 169 | drivers/scsi/aic7xxx_asm.c | M[p->patch[i]][0] |= ((p->value >> 8) & 1); |
i | 170 | drivers/scsi/aic7xxx_asm.c | M[p->patch[i]][1] = p->value & 0xff; |
i | 173 | drivers/scsi/aic7xxx_asm.c | fprintf(stderr, " 0x%x", p->patch[i]); |
i | 189 | drivers/scsi/aic7xxx_asm.c | int i; |
i | 191 | drivers/scsi/aic7xxx_asm.c | for (i = 0; i < LC; i++) |
i | 193 | drivers/scsi/aic7xxx_asm.c | M[i][3], |
i | 194 | drivers/scsi/aic7xxx_asm.c | M[i][2], |
i | 195 | drivers/scsi/aic7xxx_asm.c | M[i][1], |
i | 196 | drivers/scsi/aic7xxx_asm.c | M[i][0]); |
i | 203 | drivers/scsi/aic7xxx_asm.c | int i; |
i | 208 | drivers/scsi/aic7xxx_asm.c | i = 0; |
i | 226 | drivers/scsi/aic7xxx_asm.c | if (i < MAXTOKEN-1) |
i | 227 | drivers/scsi/aic7xxx_asm.c | a[i++] = p; |
i | 235 | drivers/scsi/aic7xxx_asm.c | else if (i < MAXTOKEN-1) { |
i | 236 | drivers/scsi/aic7xxx_asm.c | a[i++] = quote; |
i | 244 | drivers/scsi/aic7xxx_asm.c | if (i) { |
i | 245 | drivers/scsi/aic7xxx_asm.c | *n = i; |
i | 326 | drivers/scsi/aic7xxx_asm.c | int i; |
i | 346 | drivers/scsi/aic7xxx_asm.c | for (i = 0; i < sizeof(jmptab)/sizeof(jmptab[0]); i++) |
i | 347 | drivers/scsi/aic7xxx_asm.c | if (jmptab[i].what == want && |
i | 348 | drivers/scsi/aic7xxx_asm.c | !strcmp(jmptab[i].name, a[spec])) |
i | 350 | drivers/scsi/aic7xxx_asm.c | return(jmptab[i].value); |
i | 457 | drivers/scsi/aic7xxx_asm.c | int i; |
i | 470 | drivers/scsi/aic7xxx_asm.c | for (i = 0; instr[i].name; i++) { |
i | 476 | drivers/scsi/aic7xxx_asm.c | if (!strcmp(instr[i].name, *a) && instr[i].n == n) |
i | 479 | drivers/scsi/aic7xxx_asm.c | if (!instr[i].name) |
i | 482 | drivers/scsi/aic7xxx_asm.c | I_op = eval_operand(a, instr[i].op); |
i | 483 | drivers/scsi/aic7xxx_asm.c | I_src = eval_sdi(a, instr[i].src); |
i | 484 | drivers/scsi/aic7xxx_asm.c | I_imm = eval_sdi(a, instr[i].imm); |
i | 485 | drivers/scsi/aic7xxx_asm.c | I_dest = eval_sdi(a, instr[i].dest); |
i | 486 | drivers/scsi/aic7xxx_asm.c | I_addr = eval_addr(a, instr[i].addr); |
i | 491 | drivers/scsi/aic7xxx_asm.c | switch (instr[i].fmt) { |
i | 247 | drivers/scsi/buslogic.c | int s = inb(STATUS(base)), i = inb(INTERRUPT(base)); |
i | 249 | drivers/scsi/buslogic.c | buslogic_printk("status=%02X intrflags=%02X\n", s, i); |
i | 455 | drivers/scsi/buslogic.c | int base, interrupt_flags, found, i; |
i | 549 | drivers/scsi/buslogic.c | for (i = 0; i < found; i++) |
i | 551 | drivers/scsi/buslogic.c | int mbo = saved_mbo[i]; |
i | 614 | drivers/scsi/buslogic.c | int i; |
i | 618 | drivers/scsi/buslogic.c | i = *(int *)(cmd + 2); |
i | 620 | drivers/scsi/buslogic.c | i = -1; |
i | 622 | drivers/scsi/buslogic.c | target, *cmd, i, bufflen); |
i | 625 | drivers/scsi/buslogic.c | for (i = 0; i < scpnt->cmd_len; i++) |
i | 626 | drivers/scsi/buslogic.c | printk(" %02X", cmd[i]); |
i | 693 | drivers/scsi/buslogic.c | size_t i; |
i | 710 | drivers/scsi/buslogic.c | for (i = 0; i < scpnt->use_sg; i++) { |
i | 711 | drivers/scsi/buslogic.c | CHECK_DMA_ADDR(shpnt->unchecked_isa_dma, sgpnt[i].address, |
i | 713 | drivers/scsi/buslogic.c | cptr[i].dataptr = sgpnt[i].address; |
i | 714 | drivers/scsi/buslogic.c | cptr[i].datalen = sgpnt[i].length; |
i | 724 | drivers/scsi/buslogic.c | for (i = 0; i < 18; i++) |
i | 725 | drivers/scsi/buslogic.c | printk(" %02X", ptr[i]); |
i | 745 | drivers/scsi/buslogic.c | size_t i; |
i | 748 | drivers/scsi/buslogic.c | for (i = 0; i < sizeof(struct ccb) - 10; i++) |
i | 749 | drivers/scsi/buslogic.c | printk(" %02X", ((unsigned char *)ccb)[i]); |
i | 806 | drivers/scsi/buslogic.c | size_t i; |
i | 815 | drivers/scsi/buslogic.c | for (i = 0; i < BUSLOGIC_MAILBOXES; i++) { |
i | 816 | drivers/scsi/buslogic.c | mb[i].status = mb[BUSLOGIC_MAILBOXES + i].status = MBX_NOT_IN_USE; |
i | 817 | drivers/scsi/buslogic.c | mb[i].ccbptr = &ccb[i]; |
i | 844 | drivers/scsi/buslogic.c | int i; |
i | 850 | drivers/scsi/buslogic.c | i = inb(STATUS(base)); |
i | 851 | drivers/scsi/buslogic.c | if (i & DIRRDY) |
i | 852 | drivers/scsi/buslogic.c | i = inb(DATA_IN(base)); |
i | 954 | drivers/scsi/buslogic.c | unsigned int i; |
i | 982 | drivers/scsi/buslogic.c | i = jiffies + 2; |
i | 983 | drivers/scsi/buslogic.c | while (i > jiffies); |
i | 1288 | drivers/scsi/buslogic.c | size_t i; |
i | 1293 | drivers/scsi/buslogic.c | for (i = 0; i < sizeof buf; i++) |
i | 1294 | drivers/scsi/buslogic.c | buf[i] = 0x87; |
i | 1295 | drivers/scsi/buslogic.c | for (i = 0; i < 2; i++) |
i | 1296 | drivers/scsi/buslogic.c | if (!buslogic_command(i, cmd, buf, sizeof buf)) { |
i | 1298 | drivers/scsi/buslogic.c | i, *(int *)(buf + 4), *(int *)buf); |
i | 1304 | drivers/scsi/buslogic.c | for (i = 0; i < 4; i++) { |
i | 1309 | drivers/scsi/buslogic.c | xany2scsi(cmd + 2, i); |
i | 1331 | drivers/scsi/buslogic.c | unsigned int i; |
i | 1337 | drivers/scsi/buslogic.c | for (i = 0; i < BUSLOGIC_MAILBOXES; i++) |
i | 1338 | drivers/scsi/buslogic.c | if (HOSTDATA(shpnt)->sc[i] |
i | 1339 | drivers/scsi/buslogic.c | && !HOSTDATA(shpnt)->sc[i]->device->soft_reset) { |
i | 1341 | drivers/scsi/buslogic.c | HOSTDATA(shpnt)->mb[i].status |
i | 1367 | drivers/scsi/buslogic.c | unsigned int i; |
i | 1403 | drivers/scsi/buslogic.c | for (i = 0; i < BUSLOGIC_MAILBOXES; i++) |
i | 1404 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i]) { |
i | 1405 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i] == scpnt) { |
i | 1408 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->mb[i].status != MBX_NOT_IN_USE) { |
i | 1447 | drivers/scsi/buslogic.c | unsigned int i; |
i | 1458 | drivers/scsi/buslogic.c | for (i = 0; i < BUSLOGIC_MAILBOXES; i++) |
i | 1459 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i] == scpnt) { |
i | 1460 | drivers/scsi/buslogic.c | HOSTDATA(scpnt->host)->ccbs[i].op = CCB_OP_BUS_RESET; |
i | 1477 | drivers/scsi/buslogic.c | for (i = 0; i < BUSLOGIC_MAILBOXES; i++) |
i | 1478 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i] |
i | 1479 | drivers/scsi/buslogic.c | && HOSTDATA(scpnt->host)->sc[i]->target == scpnt->target) { |
i | 1480 | drivers/scsi/buslogic.c | Scsi_Cmnd *sctmp = HOSTDATA(scpnt->host)->sc[i]; |
i | 1489 | drivers/scsi/buslogic.c | HOSTDATA(scpnt->host)->sc[i] = NULL; |
i | 1490 | drivers/scsi/buslogic.c | HOSTDATA(scpnt->host)->mb[i].status = MBX_NOT_IN_USE; |
i | 1549 | drivers/scsi/buslogic.c | size_t i; |
i | 1560 | drivers/scsi/buslogic.c | for (i = 0; i < ARRAY_SIZE(valid_bases); i++) |
i | 1561 | drivers/scsi/buslogic.c | if (valid_bases[i] == ints[1]) { |
i | 117 | drivers/scsi/constants.c | int i,s; |
i | 119 | drivers/scsi/constants.c | for ( i = 1, s = COMMAND_SIZE(command[0]); i < s; ++i) |
i | 120 | drivers/scsi/constants.c | printk("%02x ", command[i]); |
i | 381 | drivers/scsi/constants.c | int i, s; |
i | 427 | drivers/scsi/constants.c | for(i=0; additional[i].text; i++) |
i | 428 | drivers/scsi/constants.c | if(additional[i].code1 == sense_buffer[12] && |
i | 429 | drivers/scsi/constants.c | additional[i].code2 == sense_buffer[13]) |
i | 430 | drivers/scsi/constants.c | printk("Additional sense indicates %s\n", additional[i].text); |
i | 432 | drivers/scsi/constants.c | for(i=0; additional2[i].text; i++) |
i | 433 | drivers/scsi/constants.c | if(additional2[i].code1 == sense_buffer[12] && |
i | 434 | drivers/scsi/constants.c | additional2[i].code2_min >= sense_buffer[13] && |
i | 435 | drivers/scsi/constants.c | additional2[i].code2_max <= sense_buffer[13]) { |
i | 437 | drivers/scsi/constants.c | printk(additional2[i].text, sense_buffer[13]); |
i | 461 | drivers/scsi/constants.c | for (i = 0; i < s; ++i) |
i | 462 | drivers/scsi/constants.c | printk("0x%02x ", sense_buffer[i]); |
i | 496 | drivers/scsi/constants.c | int len = 0, i; |
i | 517 | drivers/scsi/constants.c | for (i = 2; i < len; ++i) |
i | 518 | drivers/scsi/constants.c | printk("%02x ", msg[i]); |
i | 521 | drivers/scsi/constants.c | for (i = 0; i < len; ++i) |
i | 522 | drivers/scsi/constants.c | printk("%02x ", msg[i]); |
i | 606 | drivers/scsi/eata.c | unsigned int i, j, k, flags; |
i | 625 | drivers/scsi/eata.c | i = HD(j)->last_cp_used + 1; |
i | 627 | drivers/scsi/eata.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
i | 629 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) i = 0; |
i | 631 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) { |
i | 632 | drivers/scsi/eata.c | HD(j)->last_cp_used = i; |
i | 654 | drivers/scsi/eata.c | cpp = &HD(j)->cp[i]; |
i | 659 | drivers/scsi/eata.c | spp = &HD(j)->sp[i]; |
i | 667 | drivers/scsi/eata.c | cpp->index = i; |
i | 671 | drivers/scsi/eata.c | BN(j), i, SCpnt->target, SCpnt->pid); |
i | 711 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = IN_USE; |
i | 717 | drivers/scsi/eata.c | unsigned int i, j, flags; |
i | 730 | drivers/scsi/eata.c | i = *(unsigned int *)SCarg->host_scribble; |
i | 732 | drivers/scsi/eata.c | BN(j), i, SCarg->target, SCarg->pid); |
i | 734 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) |
i | 743 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) { |
i | 744 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is free.\n", BN(j), i); |
i | 749 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IN_USE) { |
i | 750 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is in use.\n", BN(j), i); |
i | 752 | drivers/scsi/eata.c | if (SCarg != HD(j)->cp[i].SCpnt) |
i | 754 | drivers/scsi/eata.c | BN(j), i, SCarg, HD(j)->cp[i].SCpnt); |
i | 760 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IN_RESET) { |
i | 761 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is in reset.\n", BN(j), i); |
i | 766 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 767 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is locked.\n", BN(j), i); |
i | 772 | drivers/scsi/eata.c | panic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i); |
i | 776 | drivers/scsi/eata.c | unsigned int i, j, flags, time, k, limit = 0; |
i | 805 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 807 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) continue; |
i | 809 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 810 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
i | 811 | drivers/scsi/eata.c | printk("%s: reset, locked mbox %d forced free.\n", BN(j), i); |
i | 815 | drivers/scsi/eata.c | SCpnt = HD(j)->cp[i].SCpnt; |
i | 816 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = IN_RESET; |
i | 818 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid); |
i | 821 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, SCpnt == NULL.\n", BN(j), i); |
i | 824 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, garbled SCpnt.\n", BN(j), i); |
i | 826 | drivers/scsi/eata.c | if (*(unsigned int *)SCpnt->host_scribble != i) |
i | 827 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, index mismatch.\n", BN(j), i); |
i | 830 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, SCpnt->scsi_done == NULL.\n", BN(j), i); |
i | 854 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 857 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] != IN_RESET) continue; |
i | 859 | drivers/scsi/eata.c | SCpnt = HD(j)->cp[i].SCpnt; |
i | 864 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = LOCKED; |
i | 867 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid); |
i | 889 | drivers/scsi/eata.c | unsigned int i, j, k, flags, status, tstatus, loops, total_loops = 0; |
i | 924 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 925 | drivers/scsi/eata.c | spp = &HD(j)->sp[i]; |
i | 932 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IGNORE) { |
i | 933 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
i | 936 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == LOCKED) { |
i | 937 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
i | 939 | drivers/scsi/eata.c | BN(j), i, HD(j)->iocount); |
i | 942 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == FREE) { |
i | 944 | drivers/scsi/eata.c | BN(j), i, HD(j)->iocount); |
i | 947 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == IN_RESET) |
i | 948 | drivers/scsi/eata.c | printk("%s: ihdlr, mbox %d is in reset.\n", BN(j), i); |
i | 949 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] != IN_USE) |
i | 950 | drivers/scsi/eata.c | panic("%s: ihdlr, mbox %d, invalid cp_stat.\n", BN(j), i); |
i | 952 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
i | 953 | drivers/scsi/eata.c | cpp = &HD(j)->cp[i]; |
i | 957 | drivers/scsi/eata.c | panic("%s: ihdlr, mbox %d, SCpnt == NULL.\n", BN(j), i); |
i | 961 | drivers/scsi/eata.c | BN(j), i, SCpnt, cpp->SCpnt); |
i | 965 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid, SCpnt); |
i | 967 | drivers/scsi/eata.c | if (*(unsigned int *)SCpnt->host_scribble != i) |
i | 969 | drivers/scsi/eata.c | " irq %d.\n", BN(j), i, SCpnt->pid, |
i | 1059 | drivers/scsi/eata.c | BN(j), i, spp->adapter_status, spp->target_status, |
i | 134 | drivers/scsi/eata_dma.c | uint i; |
i | 140 | drivers/scsi/eata_dma.c | for (i = 0; i < sh->can_queue; i++){ /* Free all SG arrays */ |
i | 141 | drivers/scsi/eata_dma.c | if(SD(sh)->ccb[i].sg_list != NULL) |
i | 142 | drivers/scsi/eata_dma.c | scsi_init_free((void *) SD(sh)->ccb[i].sg_list, |
i | 158 | drivers/scsi/eata_dma.c | uint i, result = 0; |
i | 269 | drivers/scsi/eata_dma.c | for (i = 0; i < MAXTARGET; i++) |
i | 270 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[cp->cp_channel][i] = RESET; |
i | 345 | drivers/scsi/eata_dma.c | unsigned int i, x, y; |
i | 479 | drivers/scsi/eata_dma.c | for(i = 0; i < cmd->use_sg; i++, sl++){ |
i | 480 | drivers/scsi/eata_dma.c | cp->sg_list[i].data = htonl(virt_to_bus(sl->address)); |
i | 481 | drivers/scsi/eata_dma.c | cp->sg_list[i].len = htonl((u32) sl->length); |
i | 691 | drivers/scsi/eata_dma.c | ulong i; |
i | 731 | drivers/scsi/eata_dma.c | i = jiffies + (3 * HZ); |
i | 732 | drivers/scsi/eata_dma.c | while (fake_int_happened == FALSE && jiffies <= i) |
i | 743 | drivers/scsi/eata_dma.c | if ((fake_int_result & HA_SERROR) || jiffies > i){ |
i | 747 | drivers/scsi/eata_dma.c | i = jiffies; |
i | 748 | drivers/scsi/eata_dma.c | while (jiffies < (i + (3 * HZ)) && limit++ < 10000000) |
i | 1106 | drivers/scsi/eata_dma.c | int i; |
i | 1112 | drivers/scsi/eata_dma.c | for (i = 0; i < MAXEISA; i++) { |
i | 1113 | drivers/scsi/eata_dma.c | if (EISAbases[i] == TRUE) { /* Still a possibility ? */ |
i | 1115 | drivers/scsi/eata_dma.c | base = 0x1c88 + (i * 0x1000); |
i | 1139 | drivers/scsi/eata_dma.c | EISAbases[i] = 0; |
i | 1150 | drivers/scsi/eata_dma.c | int i; |
i | 1152 | drivers/scsi/eata_dma.c | for (i = 0; i < MAXISA; i++) { |
i | 1153 | drivers/scsi/eata_dma.c | if (ISAbases[i]) { |
i | 1154 | drivers/scsi/eata_dma.c | if (get_conf_PIO(ISAbases[i],buf) == TRUE){ |
i | 1156 | drivers/scsi/eata_dma.c | register_HBA(ISAbases[i], buf, tpnt, IS_ISA); |
i | 1158 | drivers/scsi/eata_dma.c | if (check_blink_state(ISAbases[i])) |
i | 1162 | drivers/scsi/eata_dma.c | ISAbases[i] = 0; |
i | 1180 | drivers/scsi/eata_dma.c | u32 error, i, x; |
i | 1184 | drivers/scsi/eata_dma.c | for (i = 0; i <= MAXPCI; ++i, ++pci_index) { |
i | 1279 | drivers/scsi/eata_dma.c | int i; |
i | 1300 | drivers/scsi/eata_dma.c | for (i = 0; i <= MAXIRQ; i++) { /* Now that we know what we have, we */ |
i | 1301 | drivers/scsi/eata_dma.c | if (reg_IRQ[i]){ /* exchange the interrupt handler which */ |
i | 1302 | drivers/scsi/eata_dma.c | free_irq(i); /* we used for probing with the real one */ |
i | 1303 | drivers/scsi/eata_dma.c | request_irq(i, (void *)(eata_int_handler), SA_INTERRUPT, "eata_dma"); |
i | 1316 | drivers/scsi/eata_dma.c | for (i = 1; i <= registered_HBAs; i++) { |
i | 89 | drivers/scsi/eata_dma_proc.c | int i, x; |
i | 96 | drivers/scsi/eata_dma_proc.c | for (i = 1; i <= registered_HBAs; i++) { |
i | 83 | drivers/scsi/eata_generic.h | #define DELAY(x) { __u32 i; i = jiffies + (x * HZ); while (jiffies < i) barrier(); } |
i | 84 | drivers/scsi/eata_generic.h | #define DEL2(x) { __u32 i; for (i = 0; i < 0xffff * x; i++); } |
i | 822 | drivers/scsi/eata_pio.c | int i; |
i | 824 | drivers/scsi/eata_pio.c | for (i = 0; i < MAXISA; i++) { |
i | 825 | drivers/scsi/eata_pio.c | if (ISAbases[i]) { |
i | 826 | drivers/scsi/eata_pio.c | if (get_pio_conf_PIO(ISAbases[i], buf) == TRUE){ |
i | 827 | drivers/scsi/eata_pio.c | register_pio_HBA(ISAbases[i], buf, tpnt); |
i | 829 | drivers/scsi/eata_pio.c | ISAbases[i] = 0; |
i | 838 | drivers/scsi/eata_pio.c | int i; |
i | 844 | drivers/scsi/eata_pio.c | for (i = 0; i < MAXEISA; i++) { |
i | 845 | drivers/scsi/eata_pio.c | if (EISAbases[i] == TRUE) { /* Still a possibility ? */ |
i | 847 | drivers/scsi/eata_pio.c | base = 0x1c88 + (i * 0x1000); |
i | 867 | drivers/scsi/eata_pio.c | EISAbases[i] = 0; |
i | 888 | drivers/scsi/eata_pio.c | u32 error, i, x; |
i | 891 | drivers/scsi/eata_pio.c | for (i = 0; i <= MAXPCI; ++i, ++pci_index) { |
i | 978 | drivers/scsi/eata_pio.c | int i; |
i | 991 | drivers/scsi/eata_pio.c | for (i = 0; i <= MAXIRQ; i++) |
i | 992 | drivers/scsi/eata_pio.c | if (reg_IRQ[i]) |
i | 993 | drivers/scsi/eata_pio.c | request_irq(i, eata_pio_int_handler, SA_INTERRUPT, "EATA-PIO"); |
i | 1007 | drivers/scsi/eata_pio.c | for (i = 1; i <= registered_HBAs; i++) { |
i | 47 | drivers/scsi/eata_pio_proc.c | int i; |
i | 53 | drivers/scsi/eata_pio_proc.c | for (i = 1; i <= registered_HBAs; i++) { |
i | 551 | drivers/scsi/fdomain.c | int i; |
i | 554 | drivers/scsi/fdomain.c | for (i = 0; i < 255; i++) { |
i | 555 | drivers/scsi/fdomain.c | outb( i, port_base + Write_Loopback ); |
i | 557 | drivers/scsi/fdomain.c | if (i != result) |
i | 599 | drivers/scsi/fdomain.c | int i; |
i | 632 | drivers/scsi/fdomain.c | for (flag = 0, i = 0; !flag && i < PORT_COUNT; i++) { |
i | 633 | drivers/scsi/fdomain.c | if (base == ports[i]) |
i | 661 | drivers/scsi/fdomain.c | for (i = 0; i < PORT_COUNT; i++) { |
i | 662 | drivers/scsi/fdomain.c | base = ports[i]; |
i | 685 | drivers/scsi/fdomain.c | int i; |
i | 698 | drivers/scsi/fdomain.c | for (i = 0xfff8; i > 0xe000; i -= 8) { |
i | 699 | drivers/scsi/fdomain.c | if (check_region( i, 0x10 )) { |
i | 701 | drivers/scsi/fdomain.c | printk( " (%x inuse)," , i ); |
i | 705 | drivers/scsi/fdomain.c | if ((flag = fdomain_is_valid_port( i ))) break; |
i | 710 | drivers/scsi/fdomain.c | *irq = fdomain_get_irq( i ); |
i | 711 | drivers/scsi/fdomain.c | *iobase = i; |
i | 850 | drivers/scsi/fdomain.c | int i, j; |
i | 882 | drivers/scsi/fdomain.c | for (i = 0; !bios_base && i < ADDRESS_COUNT; i++) { |
i | 884 | drivers/scsi/fdomain.c | printk( " %x(%x),", (unsigned)addresses[i], (unsigned)bios_base ); |
i | 887 | drivers/scsi/fdomain.c | if (!memcmp( ((char *)addresses[i] + signatures[j].sig_offset), |
i | 893 | drivers/scsi/fdomain.c | bios_base = addresses[i]; |
i | 1018 | drivers/scsi/fdomain.c | for (i = 0; i < 8; i++) { |
i | 1019 | drivers/scsi/fdomain.c | SCinit.target = i; |
i | 1020 | drivers/scsi/fdomain.c | if (i == tpnt->this_id) /* Skip host adapter */ |
i | 1028 | drivers/scsi/fdomain.c | printk( " SCSI ID %d: ", i ); |
i | 1854 | drivers/scsi/fdomain.c | } *i; |
i | 1906 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f33 + drive * 25 ); |
i | 1909 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f36 + drive * 15 ); |
i | 1912 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f34 + drive * 15 ); |
i | 1915 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f31 + drive * 25 ); |
i | 1918 | drivers/scsi/fdomain.c | info_array[0] = i->heads; |
i | 1919 | drivers/scsi/fdomain.c | info_array[1] = i->sectors; |
i | 1920 | drivers/scsi/fdomain.c | info_array[2] = i->cylinders; |
i | 1924 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f71 + drive * 10 ); |
i | 1925 | drivers/scsi/fdomain.c | info_array[0] = i->heads + 1; |
i | 1926 | drivers/scsi/fdomain.c | info_array[1] = i->sectors; |
i | 1927 | drivers/scsi/fdomain.c | info_array[2] = i->cylinders; |
i | 339 | drivers/scsi/hosts.c | int i, pcount; |
i | 347 | drivers/scsi/hosts.c | for (tpnt = &builtin_scsi_hosts[0], i = 0; i < MAX_SCSI_HOSTS; ++i, tpnt++) |
i | 346 | drivers/scsi/hosts.h | extern void scsi_unregister(struct Scsi_Host * i); |
i | 139 | drivers/scsi/in2000.c | int i; |
i | 150 | drivers/scsi/in2000.c | for(i=0; i < 3; i++) |
i | 151 | drivers/scsi/in2000.c | if(*(bios_tab[i]+0x04) == 0x41564f4e || |
i | 152 | drivers/scsi/in2000.c | *(bios_tab[i]+0xc) == 0x61776c41) { |
i | 154 | drivers/scsi/in2000.c | tmp, (unsigned int)bios_tab[i]); |
i | 427 | drivers/scsi/in2000.c | int i; |
i | 443 | drivers/scsi/in2000.c | i = xscsi2int((cmd+1)); |
i | 445 | drivers/scsi/in2000.c | i = scsi2int((cmd+1)); |
i | 447 | drivers/scsi/in2000.c | i = -1; |
i | 450 | drivers/scsi/in2000.c | printk("in2000qcmd: pos %d len %d ", i, bufflen); |
i | 452 | drivers/scsi/in2000.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
i | 323 | drivers/scsi/pas16.c | int i; |
i | 330 | drivers/scsi/pas16.c | for (i = 0; i < NO_BASES; ++i) |
i | 331 | drivers/scsi/pas16.c | if (bases[i].io_port == (unsigned short) ints[1]) { |
i | 332 | drivers/scsi/pas16.c | bases[i].noauto = 1; |
i | 494 | drivers/scsi/pas16.c | register i = len; |
i | 498 | drivers/scsi/pas16.c | insb( reg, d, i ); |
i | 526 | drivers/scsi/pas16.c | register i = len; |
i | 530 | drivers/scsi/pas16.c | outsb( reg, s, i ); |
i | 170 | drivers/scsi/qlogic.c | #define rtrc(i) {inb(0x3da);outb(0x31,0x3c0);outb((i),0x3c0);} |
i | 172 | drivers/scsi/qlogic.c | #define rtrc(i) {} |
i | 278 | drivers/scsi/qlogic.c | int i,k; |
i | 280 | drivers/scsi/qlogic.c | i = jiffies + WATCHDOG; |
i | 281 | drivers/scsi/qlogic.c | while ( i > jiffies && !qabort && !((k = inb(qbase + 4)) & 0xe0)) |
i | 283 | drivers/scsi/qlogic.c | if (i <= jiffies) |
i | 300 | drivers/scsi/qlogic.c | unsigned int i; |
i | 334 | drivers/scsi/qlogic.c | for (i = 0; i < cmd->cmd_len; i++) |
i | 335 | drivers/scsi/qlogic.c | outb(cmd->cmnd[i], qbase + 2); |
i | 344 | drivers/scsi/qlogic.c | unsigned int i, j, k; |
i | 355 | drivers/scsi/qlogic.c | i = inb(qbase + 5); |
i | 356 | drivers/scsi/qlogic.c | if (i == 0x20) { |
i | 359 | drivers/scsi/qlogic.c | i |= inb(qbase + 5); /* the 0x10 bit can be set after the 0x08 */ |
i | 360 | drivers/scsi/qlogic.c | if (i != 0x18) { |
i | 361 | drivers/scsi/qlogic.c | printk("Ql:Bad Interrupt status:%02x\n", i); |
i | 371 | drivers/scsi/qlogic.c | printk("Ql:Bad sequence for command %d, int %02X, cmdleft = %d\n", j, i, inb( qbase+7 ) & 0x1f ); |
i | 424 | drivers/scsi/qlogic.c | i = inb(qbase + 5); /* get chip irq stat */ |
i | 429 | drivers/scsi/qlogic.c | if (!((i == 8 && j == 2) || (i == 0x10 && j == 1))) { |
i | 430 | drivers/scsi/qlogic.c | printk("Ql:Error during status phase, int=%02X, %d bytes recd\n", i, j); |
i | 438 | drivers/scsi/qlogic.c | i = inb(qbase + 5); /* should be bus service */ |
i | 439 | drivers/scsi/qlogic.c | while (!qabort && ((i & 0x20) != 0x20)) { |
i | 441 | drivers/scsi/qlogic.c | i |= inb(qbase + 5); |
i | 459 | drivers/scsi/qlogic.c | int i; |
i | 460 | drivers/scsi/qlogic.c | i = 16; |
i | 461 | drivers/scsi/qlogic.c | while (i-- && inb(qbase + 5)); /* maybe also ql_zap() */ |
i | 541 | drivers/scsi/qlogic.c | int i, j; /* these are only used by IRQ detect */ |
i | 592 | drivers/scsi/qlogic.c | i = 0xffff; |
i | 600 | drivers/scsi/qlogic.c | i &= ~(inb(0x20) | (inb(0xa0) << 8)); /* find IRQ off */ |
i | 602 | drivers/scsi/qlogic.c | i &= inb(0x20) | (inb(0xa0) << 8); /* find IRQ on */ |
i | 607 | drivers/scsi/qlogic.c | while (i) /* find on bit */ |
i | 608 | drivers/scsi/qlogic.c | i >>= 1, j++; /* should check for exactly 1 on */ |
i | 253 | drivers/scsi/scsi.c | int i = 0; |
i | 255 | drivers/scsi/scsi.c | for(i=0; 1; i++){ |
i | 256 | drivers/scsi/scsi.c | if(device_list[i].vendor == NULL) return 0; |
i | 259 | drivers/scsi/scsi.c | if(memcmp(device_list[i].vendor, pnt, |
i | 260 | drivers/scsi/scsi.c | strlen(device_list[i].vendor))) continue; |
i | 263 | drivers/scsi/scsi.c | if(memcmp(device_list[i].model, pnt, |
i | 264 | drivers/scsi/scsi.c | strlen(device_list[i].model))) continue; |
i | 265 | drivers/scsi/scsi.c | return device_list[i].flags; |
i | 1240 | drivers/scsi/scsi.c | int i; |
i | 1247 | drivers/scsi/scsi.c | for (i = 0; i < 10; ++i) |
i | 1248 | drivers/scsi/scsi.c | printk ("%02x ", ((unsigned char *) cmnd)[i]); |
i | 2195 | drivers/scsi/scsi.c | int i, j; |
i | 2204 | drivers/scsi/scsi.c | for(i=0;i < (dma_sectors >> (MALLOC_PAGEBITS - 9)); i++) |
i | 2206 | drivers/scsi/scsi.c | if ((dma_malloc_freelist[i] & (mask << j)) == 0){ |
i | 2207 | drivers/scsi/scsi.c | dma_malloc_freelist[i] |= (mask << j); |
i | 2211 | drivers/scsi/scsi.c | printk("SMalloc: %d %p ",len, dma_malloc_pages[i] + (j << 9)); |
i | 2213 | drivers/scsi/scsi.c | return (void *) ((unsigned long) dma_malloc_pages[i] + (j << 9)); |
i | 2395 | drivers/scsi/scsi.c | int i; |
i | 2483 | drivers/scsi/scsi.c | for(i=0; i< dma_sectors >> 3; i++) |
i | 2484 | drivers/scsi/scsi.c | dma_malloc_pages[i] = (unsigned char *) |
i | 2515 | drivers/scsi/scsi.c | int i; |
i | 2518 | drivers/scsi/scsi.c | for (i = 8; i < 16; i++) |
i | 2520 | drivers/scsi/scsi.c | if (data[i] >= 0x20 && i < data[4] + 5) |
i | 2521 | drivers/scsi/scsi.c | printk("%c", data[i]); |
i | 2527 | drivers/scsi/scsi.c | for (i = 16; i < 32; i++) |
i | 2529 | drivers/scsi/scsi.c | if (data[i] >= 0x20 && i < data[4] + 5) |
i | 2530 | drivers/scsi/scsi.c | printk("%c", data[i]); |
i | 2536 | drivers/scsi/scsi.c | for (i = 32; i < 36; i++) |
i | 2538 | drivers/scsi/scsi.c | if (data[i] >= 0x20 && i < data[4] + 5) |
i | 2539 | drivers/scsi/scsi.c | printk("%c", data[i]); |
i | 2546 | drivers/scsi/scsi.c | i = data[0] & 0x1f; |
i | 2549 | drivers/scsi/scsi.c | i < MAX_SCSI_DEVICE_CODE ? scsi_device_types[i] : "Unknown " ); |
i | 2656 | drivers/scsi/scsi.c | int i; |
i | 2774 | drivers/scsi/scsi.c | for(i=dma_sectors >> 3; i< new_dma_sectors >> 3; i++) |
i | 2775 | drivers/scsi/scsi.c | new_dma_malloc_pages[i] = (unsigned char *) |
i | 3127 | drivers/scsi/scsi.c | int i; |
i | 3131 | drivers/scsi/scsi.c | i = 0; |
i | 3137 | drivers/scsi/scsi.c | i++, SCpnt->host->host_no, |
i | 3159 | drivers/scsi/scsi.c | for(i=0; i<MAX_BLKDEV; i++) |
i | 3160 | drivers/scsi/scsi.c | if(blk_dev[i].current_request) |
i | 3163 | drivers/scsi/scsi.c | printk("%d: ", i); |
i | 3164 | drivers/scsi/scsi.c | req = blk_dev[i].current_request; |
i | 3219 | drivers/scsi/scsi.c | int i; |
i | 3232 | drivers/scsi/scsi.c | for(i=0; i < dma_sectors >> 3; i++) |
i | 3233 | drivers/scsi/scsi.c | scsi_init_free(dma_malloc_pages[i], PAGE_SIZE); |
i | 132 | drivers/scsi/scsi_debug.c | int i; |
i | 141 | drivers/scsi/scsi_debug.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 142 | drivers/scsi/scsi_debug.c | lpnt = (int *) sgpnt[i].alt_address; |
i | 143 | drivers/scsi/scsi_debug.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 153 | drivers/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 154 | drivers/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 160 | drivers/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 161 | drivers/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 167 | drivers/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 168 | drivers/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 189 | drivers/scsi/scsi_debug.c | int i; |
i | 217 | drivers/scsi/scsi_debug.c | int i; |
i | 219 | drivers/scsi/scsi_debug.c | for(i=0;i<12;i++) printk("%d ",sense_buffer[i]); |
i | 336 | drivers/scsi/scsi_debug.c | int i; |
i | 338 | drivers/scsi/scsi_debug.c | for(i=0;i<12;i++) printk("%d ",sense_buffer[i]); |
i | 411 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++){ |
i | 412 | drivers/scsi/scsi_debug.c | if (SCint[i] == 0) break; |
i | 415 | drivers/scsi/scsi_debug.c | if (i >= SCSI_DEBUG_MAILBOXES || SCint[i] != 0) |
i | 418 | drivers/scsi/scsi_debug.c | SCint[i] = SCpnt; |
i | 422 | drivers/scsi/scsi_debug.c | if (do_done[i]) |
i | 425 | drivers/scsi/scsi_debug.c | do_done[i] = done; |
i | 438 | drivers/scsi/scsi_debug.c | timeout[i] = jiffies+DISK_SPEED; |
i | 442 | drivers/scsi/scsi_debug.c | timer_table[SCSI_DEBUG_TIMER].expires = timeout[i]; |
i | 450 | drivers/scsi/scsi_debug.c | printk("Sending command (%d %x %d %d)...", i, done, timeout[i],jiffies); |
i | 481 | drivers/scsi/scsi_debug.c | int i, pending; |
i | 494 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 495 | drivers/scsi/scsi_debug.c | if (SCint[i] == 0) continue; |
i | 497 | drivers/scsi/scsi_debug.c | if (timeout[i] == 0) continue; |
i | 498 | drivers/scsi/scsi_debug.c | if (timeout[i] <= jiffies) break; |
i | 504 | drivers/scsi/scsi_debug.c | if(i == SCSI_DEBUG_MAILBOXES){ |
i | 507 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 508 | drivers/scsi/scsi_debug.c | if (SCint[i] == 0) continue; |
i | 509 | drivers/scsi/scsi_debug.c | if (timeout[i] == 0) continue; |
i | 510 | drivers/scsi/scsi_debug.c | if (timeout[i] <= jiffies) {restore_flags(flags); goto repeat;}; |
i | 511 | drivers/scsi/scsi_debug.c | if (timeout[i] > jiffies) { |
i | 512 | drivers/scsi/scsi_debug.c | if (pending > timeout[i]) pending = timeout[i]; |
i | 526 | drivers/scsi/scsi_debug.c | if(i < SCSI_DEBUG_MAILBOXES){ |
i | 527 | drivers/scsi/scsi_debug.c | timeout[i] = 0; |
i | 528 | drivers/scsi/scsi_debug.c | my_done = do_done[i]; |
i | 529 | drivers/scsi/scsi_debug.c | do_done[i] = NULL; |
i | 530 | drivers/scsi/scsi_debug.c | to = timeout[i]; |
i | 531 | drivers/scsi/scsi_debug.c | timeout[i] = 0; |
i | 532 | drivers/scsi/scsi_debug.c | SCtmp = (Scsi_Cmnd *) SCint[i]; |
i | 533 | drivers/scsi/scsi_debug.c | SCint[i] = NULL; |
i | 543 | drivers/scsi/scsi_debug.c | printk("...done %d %x %d %d\n",i , my_done, to, jiffies); |
i | 544 | drivers/scsi/scsi_debug.c | printk("In intr_handle: %d %x %x\n",i, SCtmp, my_done); |
i | 602 | drivers/scsi/scsi_debug.c | int i; |
i | 609 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 610 | drivers/scsi/scsi_debug.c | if (SCint[i] == NULL) continue; |
i | 611 | drivers/scsi/scsi_debug.c | SCint[i]->result = DID_RESET << 16; |
i | 612 | drivers/scsi/scsi_debug.c | my_done = do_done[i]; |
i | 613 | drivers/scsi/scsi_debug.c | my_done(SCint[i]); |
i | 616 | drivers/scsi/scsi_debug.c | SCint[i] = NULL; |
i | 617 | drivers/scsi/scsi_debug.c | do_done[i] = NULL; |
i | 618 | drivers/scsi/scsi_debug.c | timeout[i] = 0; |
i | 294 | drivers/scsi/scsi_ioctl.c | int i; |
i | 296 | drivers/scsi/scsi_ioctl.c | for (i = 0; i < 12; ++i) |
i | 297 | drivers/scsi/scsi_ioctl.c | printk("%02x ", cmd[i]); |
i | 299 | drivers/scsi/scsi_ioctl.c | for (i = 0; i < 20; ++i) |
i | 300 | drivers/scsi/scsi_ioctl.c | printk("%02x ", buf[i]); |
i | 94 | drivers/scsi/scsicam.c | int i, largest_cyl; |
i | 101 | drivers/scsi/scsicam.c | (0x1BE + bh->b_data), i = 0; i < 4; ++i, ++p) { |
i | 106 | drivers/scsi/scsicam.c | i); |
i | 185 | drivers/scsi/sd.c | int i; |
i | 187 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
i | 188 | drivers/scsi/sd.c | if(rscsi_disks[i].device) |
i | 189 | drivers/scsi/sd.c | sd[i << 4].nr_sects = rscsi_disks[i].capacity; |
i | 227 | drivers/scsi/sd.c | int i; |
i | 229 | drivers/scsi/sd.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 231 | drivers/scsi/sd.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, |
i | 232 | drivers/scsi/sd.c | sgpnt[i].length); |
i | 234 | drivers/scsi/sd.c | if (sgpnt[i].alt_address) { |
i | 236 | drivers/scsi/sd.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, |
i | 237 | drivers/scsi/sd.c | sgpnt[i].length); |
i | 238 | drivers/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 287 | drivers/scsi/sd.c | int i; |
i | 289 | drivers/scsi/sd.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 294 | drivers/scsi/sd.c | if (sgpnt[i].alt_address) { |
i | 295 | drivers/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 929 | drivers/scsi/sd.c | static int sd_init_onedisk(int i) |
i | 942 | drivers/scsi/sd.c | SCpnt = allocate_device(NULL, rscsi_disks[i].device, 1); |
i | 954 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 977 | drivers/scsi/sd.c | if(the_result && !rscsi_disks[i].device->removable && |
i | 981 | drivers/scsi/sd.c | printk( "sd%c: Spinning up disk...", 'a' + i ); |
i | 983 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 1021 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 1077 | drivers/scsi/sd.c | 'a' + i, 'a' + i, |
i | 1085 | drivers/scsi/sd.c | 'a' + i, SCpnt->sense_buffer[2] & 0xf); |
i | 1087 | drivers/scsi/sd.c | printk("sd%c : sense not available. \n", 'a' + i); |
i | 1090 | drivers/scsi/sd.c | 'a' + i); |
i | 1091 | drivers/scsi/sd.c | rscsi_disks[i].capacity = 0x1fffff; |
i | 1092 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = 512; |
i | 1096 | drivers/scsi/sd.c | if(rscsi_disks[i].device->removable && |
i | 1098 | drivers/scsi/sd.c | rscsi_disks[i].device->changed = 1; |
i | 1103 | drivers/scsi/sd.c | rscsi_disks[i].capacity = (buffer[0] << 24) | |
i | 1108 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = (buffer[4] << 24) | |
i | 1111 | drivers/scsi/sd.c | if (rscsi_disks[i].sector_size != 512 && |
i | 1112 | drivers/scsi/sd.c | rscsi_disks[i].sector_size != 1024 && |
i | 1113 | drivers/scsi/sd.c | rscsi_disks[i].sector_size != 256) |
i | 1116 | drivers/scsi/sd.c | 'a' + i, rscsi_disks[i].sector_size); |
i | 1117 | drivers/scsi/sd.c | if(rscsi_disks[i].device->removable){ |
i | 1118 | drivers/scsi/sd.c | rscsi_disks[i].capacity = 0; |
i | 1121 | drivers/scsi/sd.c | rscsi_disks[i].device = NULL; |
i | 1123 | drivers/scsi/sd.c | return i; |
i | 1133 | drivers/scsi/sd.c | int hard_sector = rscsi_disks[i].sector_size; |
i | 1135 | drivers/scsi/sd.c | for (m=i<<4; m<((i+1)<<4); m++){ |
i | 1139 | drivers/scsi/sd.c | hard_sector,i+'a'); |
i | 1141 | drivers/scsi/sd.c | if(rscsi_disks[i].sector_size == 1024) |
i | 1142 | drivers/scsi/sd.c | rscsi_disks[i].capacity <<= 1; /* Change into 512 byte sectors */ |
i | 1143 | drivers/scsi/sd.c | if(rscsi_disks[i].sector_size == 256) |
i | 1144 | drivers/scsi/sd.c | rscsi_disks[i].capacity >>= 1; /* Change into 512 byte sectors */ |
i | 1147 | drivers/scsi/sd.c | rscsi_disks[i].ten = 1; |
i | 1148 | drivers/scsi/sd.c | rscsi_disks[i].remap = 1; |
i | 1150 | drivers/scsi/sd.c | return i; |
i | 1162 | drivers/scsi/sd.c | int i; |
i | 1193 | drivers/scsi/sd.c | for(i=0;i<(sd_template.dev_max << 4);i++){ |
i | 1194 | drivers/scsi/sd.c | sd_blocksizes[i] = 1024; |
i | 1195 | drivers/scsi/sd.c | sd_hardsizes[i] = 512; |
i | 1213 | drivers/scsi/sd.c | int i; |
i | 1220 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
i | 1221 | drivers/scsi/sd.c | if (!rscsi_disks[i].capacity && |
i | 1222 | drivers/scsi/sd.c | rscsi_disks[i].device) |
i | 1224 | drivers/scsi/sd.c | i = sd_init_onedisk(i); |
i | 1226 | drivers/scsi/sd.c | && !rscsi_disks[i].has_part_table) { |
i | 1227 | drivers/scsi/sd.c | sd_sizes[i << 4] = rscsi_disks[i].capacity; |
i | 1228 | drivers/scsi/sd.c | revalidate_scsidisk(MKDEV(MAJOR_NR, i << 4), 0); |
i | 1230 | drivers/scsi/sd.c | rscsi_disks[i].has_part_table = 1; |
i | 1257 | drivers/scsi/sd.c | int i; |
i | 1266 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
i | 1269 | drivers/scsi/sd.c | if(i >= sd_template.dev_max) panic ("scsi_devices corrupt (sd)"); |
i | 1272 | drivers/scsi/sd.c | rscsi_disks[i].device = SDp; |
i | 1273 | drivers/scsi/sd.c | rscsi_disks[i].has_part_table = 0; |
i | 1298 | drivers/scsi/sd.c | int i; |
i | 1316 | drivers/scsi/sd.c | for (i=max_p - 1; i >=0 ; i--) { |
i | 1317 | drivers/scsi/sd.c | int minor = start+i; |
i | 1350 | drivers/scsi/sd.c | int i; |
i | 1354 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
i | 1360 | drivers/scsi/sd.c | start = i << sd_gendisk.minor_shift; |
i | 1362 | drivers/scsi/sd.c | for (i=max_p - 1; i >=0 ; i--) { |
i | 1363 | drivers/scsi/sd.c | int minor = start+i; |
i | 290 | drivers/scsi/seagate.c | int i,j; |
i | 335 | drivers/scsi/seagate.c | for (i = 0; i < (sizeof (seagate_bases) / sizeof (char * )); ++i) |
i | 337 | drivers/scsi/seagate.c | if (!memcmp ((const void *) (seagate_bases[i] + |
i | 340 | drivers/scsi/seagate.c | base_address = (const void *) seagate_bases[i]; |
i | 611 | drivers/scsi/seagate.c | int i; |
i | 911 | drivers/scsi/seagate.c | int i; |
i | 914 | drivers/scsi/seagate.c | for (i = 0; i < nobuffs; ++i) |
i | 916 | drivers/scsi/seagate.c | hostno, i, buffer[i].address, buffer[i].length); |
i | 1480 | drivers/scsi/seagate.c | for (i = 0; i < 20; ++i) |
i | 1481 | drivers/scsi/seagate.c | printk ("%02x ", ((unsigned char *) data)[i]); /* WDE mod */ |
i | 206 | drivers/scsi/sg.c | int i; |
i | 209 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_WRITE,buf,count))) |
i | 210 | drivers/scsi/sg.c | return i; |
i | 304 | drivers/scsi/sg.c | int bsize,size,amt,i; |
i | 313 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_READ,buf,count))) |
i | 314 | drivers/scsi/sg.c | return i; |
i | 561 | drivers/scsi/sg.c | int i; |
i | 569 | drivers/scsi/sg.c | for(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) |
i | 572 | drivers/scsi/sg.c | if(i >= sg_template.dev_max) panic ("scsi_devices corrupt (sg)"); |
i | 574 | drivers/scsi/sg.c | scsi_generics[i].device=SDp; |
i | 575 | drivers/scsi/sg.c | scsi_generics[i].users=0; |
i | 576 | drivers/scsi/sg.c | scsi_generics[i].generic_wait=NULL; |
i | 577 | drivers/scsi/sg.c | scsi_generics[i].read_wait=NULL; |
i | 578 | drivers/scsi/sg.c | scsi_generics[i].write_wait=NULL; |
i | 579 | drivers/scsi/sg.c | scsi_generics[i].buff=NULL; |
i | 580 | drivers/scsi/sg.c | scsi_generics[i].exclude=0; |
i | 581 | drivers/scsi/sg.c | scsi_generics[i].pending=0; |
i | 582 | drivers/scsi/sg.c | scsi_generics[i].timeout=SG_DEFAULT_TIMEOUT; |
i | 592 | drivers/scsi/sg.c | int i; |
i | 594 | drivers/scsi/sg.c | for(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) |
i | 190 | drivers/scsi/sr.c | int i; |
i | 192 | drivers/scsi/sr.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 193 | drivers/scsi/sr.c | if (sgpnt[i].alt_address) { |
i | 194 | drivers/scsi/sr.c | if (sgpnt[i].alt_address != sgpnt[i].address) { |
i | 195 | drivers/scsi/sr.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 197 | drivers/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 229 | drivers/scsi/sr.c | int i; |
i | 231 | drivers/scsi/sr.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 232 | drivers/scsi/sr.c | if (sgpnt[i].alt_address) { |
i | 233 | drivers/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 897 | drivers/scsi/sr.c | int i; |
i | 901 | drivers/scsi/sr.c | for(i=0; i<12; i++) printk("%2.2x ", cmd[i]); |
i | 938 | drivers/scsi/sr.c | int i; |
i | 948 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
i | 951 | drivers/scsi/sr.c | if(i >= sr_template.dev_max) panic ("scsi_devices corrupt (sr)"); |
i | 954 | drivers/scsi/sr.c | scsi_CDs[i].device = SDp; |
i | 974 | drivers/scsi/sr.c | static void get_sectorsize(int i){ |
i | 981 | drivers/scsi/sr.c | SCpnt = allocate_device(NULL, scsi_CDs[i].device, 1); |
i | 986 | drivers/scsi/sr.c | cmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0; |
i | 1021 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0x1fffff; |
i | 1022 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = 2048; /* A guess, just in case */ |
i | 1023 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
i | 1025 | drivers/scsi/sr.c | scsi_CDs[i].capacity = (buffer[0] << 24) | |
i | 1027 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = (buffer[4] << 24) | |
i | 1029 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size == 0) scsi_CDs[i].sector_size = 2048; |
i | 1030 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size != 2048 && |
i | 1031 | drivers/scsi/sr.c | scsi_CDs[i].sector_size != 512) { |
i | 1033 | drivers/scsi/sr.c | i, scsi_CDs[i].sector_size); |
i | 1034 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0; |
i | 1035 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
i | 1037 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size == 2048) |
i | 1038 | drivers/scsi/sr.c | scsi_CDs[i].capacity *= 4; |
i | 1039 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 0; |
i | 1040 | drivers/scsi/sr.c | sr_sizes[i] = scsi_CDs[i].capacity; |
i | 1049 | drivers/scsi/sr.c | int i; |
i | 1072 | drivers/scsi/sr.c | for(i=0;i<sr_template.dev_max;i++) sr_blocksizes[i] = 2048; |
i | 1079 | drivers/scsi/sr.c | int i; |
i | 1084 | drivers/scsi/sr.c | for (i = 0; i < sr_template.nr_dev; ++i) |
i | 1088 | drivers/scsi/sr.c | if (scsi_CDs[i].capacity) continue; |
i | 1089 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0x1fffff; |
i | 1090 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = 2048; /* A guess, just in case */ |
i | 1091 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
i | 1094 | drivers/scsi/sr.c | get_sectorsize(i); |
i | 1095 | drivers/scsi/sr.c | printk("Scd sectorsize = %d bytes.\n", scsi_CDs[i].sector_size); |
i | 1097 | drivers/scsi/sr.c | scsi_CDs[i].use = 1; |
i | 1098 | drivers/scsi/sr.c | scsi_CDs[i].ten = 1; |
i | 1099 | drivers/scsi/sr.c | scsi_CDs[i].remap = 1; |
i | 1100 | drivers/scsi/sr.c | scsi_CDs[i].auto_eject = 0; /* Default is not to eject upon unmount. */ |
i | 1101 | drivers/scsi/sr.c | sr_sizes[i] = scsi_CDs[i].capacity; |
i | 1119 | drivers/scsi/sr.c | int i; |
i | 1121 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
i | 1123 | drivers/scsi/sr.c | kdev_t devi = MKDEV(MAJOR_NR, i); |
i | 1141 | drivers/scsi/sr.c | sr_sizes[i] = 0; |
i | 451 | drivers/scsi/st.c | int i; |
i | 466 | drivers/scsi/st.c | for (i=0; i < st_nbr_buffers; i++) |
i | 467 | drivers/scsi/st.c | if (!st_buffers[i]->in_use) |
i | 469 | drivers/scsi/st.c | if (i >= st_nbr_buffers) { |
i | 477 | drivers/scsi/st.c | STp->buffer = st_buffers[i]; |
i | 1740 | drivers/scsi/st.c | int i, cmd_nr, cmd_type, result; |
i | 1771 | drivers/scsi/st.c | i = verify_area(VERIFY_READ, (void *)arg, sizeof(mtc)); |
i | 1772 | drivers/scsi/st.c | if (i) |
i | 1773 | drivers/scsi/st.c | return i; |
i | 1778 | drivers/scsi/st.c | i = flush_buffer(inode, file, mtc.mt_op == MTSEEK || |
i | 1782 | drivers/scsi/st.c | if (i < 0) |
i | 1783 | drivers/scsi/st.c | return i; |
i | 1826 | drivers/scsi/st.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct mtget)); |
i | 1827 | drivers/scsi/st.c | if (i) |
i | 1828 | drivers/scsi/st.c | return i; |
i | 1885 | drivers/scsi/st.c | i = flush_buffer(inode, file, 0); |
i | 1886 | drivers/scsi/st.c | if (i < 0) |
i | 1887 | drivers/scsi/st.c | return i; |
i | 1889 | drivers/scsi/st.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct mtpos)); |
i | 1890 | drivers/scsi/st.c | if (i) |
i | 1891 | drivers/scsi/st.c | return i; |
i | 2065 | drivers/scsi/st.c | int i; |
i | 2075 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
i | 2078 | drivers/scsi/st.c | if(i >= st_template.dev_max) panic ("scsi_devices corrupt (st)"); |
i | 2080 | drivers/scsi/st.c | scsi_tapes[i].device = SDp; |
i | 2082 | drivers/scsi/st.c | scsi_tapes[i].mt_status->mt_type = MT_ISSCSI1; |
i | 2084 | drivers/scsi/st.c | scsi_tapes[i].mt_status->mt_type = MT_ISSCSI2; |
i | 2086 | drivers/scsi/st.c | tpnt->devt = MKDEV(SCSI_TAPE_MAJOR, i); |
i | 2125 | drivers/scsi/st.c | int i; |
i | 2159 | drivers/scsi/st.c | for (i=0; i < st_template.dev_max; ++i) { |
i | 2160 | drivers/scsi/st.c | STp = &(scsi_tapes[i]); |
i | 2183 | drivers/scsi/st.c | memset((void *) scsi_tapes[i].mt_status, 0, sizeof(struct mtget)); |
i | 2207 | drivers/scsi/st.c | for (i=st_nbr_buffers=0; i < target_nbr; i++) { |
i | 2209 | drivers/scsi/st.c | if (i == 0) { |
i | 2229 | drivers/scsi/st.c | int i; |
i | 2231 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
i | 2253 | drivers/scsi/st.c | int i; |
i | 2267 | drivers/scsi/st.c | for (i=0; i < st_nbr_buffers; i++) |
i | 2268 | drivers/scsi/st.c | if (st_buffers[i] != NULL) { |
i | 2269 | drivers/scsi/st.c | scsi_init_free((char *) st_buffers[i]->b_data, |
i | 2270 | drivers/scsi/st.c | st_buffers[i]->buffer_size); |
i | 2271 | drivers/scsi/st.c | scsi_init_free((char *) st_buffers[i], sizeof(ST_buffer)); |
i | 170 | drivers/scsi/t128.c | int i; |
i | 177 | drivers/scsi/t128.c | for (i = 0; i < NO_BASES; ++i) |
i | 178 | drivers/scsi/t128.c | if (bases[i].address == (unsigned char *) ints[1]) { |
i | 179 | drivers/scsi/t128.c | bases[i].noauto = 1; |
i | 325 | drivers/scsi/t128.c | register i = len; |
i | 329 | drivers/scsi/t128.c | for (; i; --i) { |
i | 333 | drivers/scsi/t128.c | for (; i; --i) { |
i | 369 | drivers/scsi/t128.c | register i = len; |
i | 372 | drivers/scsi/t128.c | for (; i; --i) { |
i | 376 | drivers/scsi/t128.c | for (; i; --i) { |
i | 567 | drivers/scsi/u14-34f.c | unsigned int i, j, k, flags; |
i | 579 | drivers/scsi/u14-34f.c | i = HD(j)->last_cp_used + 1; |
i | 581 | drivers/scsi/u14-34f.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
i | 583 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) i = 0; |
i | 585 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) { |
i | 586 | drivers/scsi/u14-34f.c | HD(j)->last_cp_used = i; |
i | 608 | drivers/scsi/u14-34f.c | cpp = &HD(j)->cp[i]; |
i | 612 | drivers/scsi/u14-34f.c | cpp->index = i; |
i | 616 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->target, SCpnt->pid); |
i | 654 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = IN_USE; |
i | 660 | drivers/scsi/u14-34f.c | unsigned int i, j, flags; |
i | 673 | drivers/scsi/u14-34f.c | i = *(unsigned int *)SCarg->host_scribble; |
i | 675 | drivers/scsi/u14-34f.c | BN(j), i, SCarg->target, SCarg->pid); |
i | 677 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
i | 686 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) { |
i | 687 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is free.\n", BN(j), i); |
i | 692 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IN_USE) { |
i | 693 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is in use.\n", BN(j), i); |
i | 695 | drivers/scsi/u14-34f.c | if (SCarg != HD(j)->cp[i].SCpnt) |
i | 697 | drivers/scsi/u14-34f.c | BN(j), i, SCarg, HD(j)->cp[i].SCpnt); |
i | 703 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IN_RESET) { |
i | 704 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is in reset.\n", BN(j), i); |
i | 709 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 710 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is locked.\n", BN(j), i); |
i | 715 | drivers/scsi/u14-34f.c | panic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i); |
i | 719 | drivers/scsi/u14-34f.c | unsigned int i, j, flags, time, k, limit = 0; |
i | 748 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 750 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) continue; |
i | 752 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 753 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
i | 754 | drivers/scsi/u14-34f.c | printk("%s: reset, locked mbox %d forced free.\n", BN(j), i); |
i | 758 | drivers/scsi/u14-34f.c | SCpnt = HD(j)->cp[i].SCpnt; |
i | 759 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = IN_RESET; |
i | 761 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid); |
i | 764 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, SCpnt == NULL.\n", BN(j), i); |
i | 767 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, garbled SCpnt.\n", BN(j), i); |
i | 769 | drivers/scsi/u14-34f.c | if (*(unsigned int *)SCpnt->host_scribble != i) |
i | 770 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, index mismatch.\n", BN(j), i); |
i | 773 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, SCpnt->scsi_done == NULL.\n", BN(j), i); |
i | 798 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 801 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] != IN_RESET) continue; |
i | 803 | drivers/scsi/u14-34f.c | SCpnt = HD(j)->cp[i].SCpnt; |
i | 808 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = LOCKED; |
i | 811 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid); |
i | 843 | drivers/scsi/u14-34f.c | unsigned int i, j, k, flags, status, tstatus, loops, total_loops = 0; |
i | 878 | drivers/scsi/u14-34f.c | i = spp - HD(j)->cp; |
i | 880 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
i | 883 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IGNORE) { |
i | 884 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
i | 887 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == LOCKED) { |
i | 888 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
i | 890 | drivers/scsi/u14-34f.c | BN(j), i, HD(j)->iocount); |
i | 893 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == FREE) { |
i | 895 | drivers/scsi/u14-34f.c | BN(j), i, HD(j)->iocount); |
i | 898 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == IN_RESET) |
i | 899 | drivers/scsi/u14-34f.c | printk("%s: ihdlr, mbox %d is in reset.\n", BN(j), i); |
i | 900 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] != IN_USE) |
i | 901 | drivers/scsi/u14-34f.c | panic("%s: ihdlr, mbox %d, invalid cp_stat.\n", BN(j), i); |
i | 903 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
i | 907 | drivers/scsi/u14-34f.c | panic("%s: ihdlr, mbox %d, SCpnt == NULL.\n", BN(j), i); |
i | 911 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid, SCpnt); |
i | 913 | drivers/scsi/u14-34f.c | if (*(unsigned int *)SCpnt->host_scribble != i) |
i | 915 | drivers/scsi/u14-34f.c | " irq %d.\n", BN(j), i, SCpnt->pid, |
i | 1006 | drivers/scsi/u14-34f.c | BN(j), i, spp->adapter_status, spp->target_status, |
i | 335 | drivers/scsi/ultrastor.c | register int i; |
i | 340 | drivers/scsi/ultrastor.c | for (i = 0; i < ULTRASTOR_MAX_CMDS; i++) |
i | 342 | drivers/scsi/ultrastor.c | fmt[20 + i*2] = ' '; |
i | 343 | drivers/scsi/ultrastor.c | if (! (config->mscp_free & (1 << i))) |
i | 344 | drivers/scsi/ultrastor.c | fmt[21 + i*2] = '0' + config->mscp[i].target_id; |
i | 346 | drivers/scsi/ultrastor.c | fmt[21 + i*2] = '-'; |
i | 357 | drivers/scsi/ultrastor.c | size_t i; |
i | 387 | drivers/scsi/ultrastor.c | for (i = 0; i < ARRAY_SIZE(ultrastor_ports_14f); i++) { |
i | 388 | drivers/scsi/ultrastor.c | if(check_region(ultrastor_ports_14f[i], 0x0c)) continue; |
i | 389 | drivers/scsi/ultrastor.c | config.port_address = ultrastor_ports_14f[i]; |
i | 431 | drivers/scsi/ultrastor.c | if (i == ARRAY_SIZE(ultrastor_ports_14f)) { |
i | 530 | drivers/scsi/ultrastor.c | register int i; |
i | 538 | drivers/scsi/ultrastor.c | for (i = 1; i < 15; i++) |
i | 541 | drivers/scsi/ultrastor.c | unsigned short addr = (i << 12) | ULTRASTOR_24F_PORT; |
i | 549 | drivers/scsi/ultrastor.c | config.slot = i; |
i | 553 | drivers/scsi/ultrastor.c | printk("U24F: found disabled card in slot %u\n", i); |
i | 558 | drivers/scsi/ultrastor.c | printk("U24F: found card in slot %u\n", i); |
i | 660 | drivers/scsi/ultrastor.c | int i, max; |
i | 664 | drivers/scsi/ultrastor.c | for (i = 0; i < max; i++) { |
i | 665 | drivers/scsi/ultrastor.c | mscp->sglist[i].address = (unsigned int)sl[i].address; |
i | 666 | drivers/scsi/ultrastor.c | mscp->sglist[i].num_bytes = sl[i].length; |
i | 667 | drivers/scsi/ultrastor.c | transfer_length += sl[i].length; |
i | 855 | drivers/scsi/ultrastor.c | int i; |
i | 860 | drivers/scsi/ultrastor.c | for (i = 0; i < 16; i++) |
i | 862 | drivers/scsi/ultrastor.c | unsigned char p = inb(port0 + i); |
i | 863 | drivers/scsi/ultrastor.c | out[28 + i * 3] = "0123456789abcdef"[p >> 4]; |
i | 864 | drivers/scsi/ultrastor.c | out[29 + i * 3] = "0123456789abcdef"[p & 15]; |
i | 865 | drivers/scsi/ultrastor.c | out[30 + i * 3] = ' '; |
i | 867 | drivers/scsi/ultrastor.c | out[28 + i * 3] = '\n'; |
i | 868 | drivers/scsi/ultrastor.c | out[29 + i * 3] = 0; |
i | 957 | drivers/scsi/ultrastor.c | register int i; |
i | 985 | drivers/scsi/ultrastor.c | for (i = 0; i < ULTRASTOR_MAX_CMDS; i++) |
i | 987 | drivers/scsi/ultrastor.c | if (! (config.mscp_free & (1 << i)) && |
i | 988 | drivers/scsi/ultrastor.c | config.mscp[i].done && config.mscp[i].SCint) |
i | 990 | drivers/scsi/ultrastor.c | config.mscp[i].SCint->result = DID_RESET << 16; |
i | 991 | drivers/scsi/ultrastor.c | config.mscp[i].done(config.mscp[i].SCint); |
i | 992 | drivers/scsi/ultrastor.c | config.mscp[i].done = 0; |
i | 994 | drivers/scsi/ultrastor.c | config.mscp[i].SCint = 0; |
i | 501 | drivers/scsi/wd7000.c | int i; |
i | 518 | drivers/scsi/wd7000.c | result.i = 0; /* clears unused bytes */ |
i | 522 | drivers/scsi/wd7000.c | return result.i; |
i | 613 | drivers/scsi/wd7000.c | int i; |
i | 645 | drivers/scsi/wd7000.c | for (i = 0; i < needed; i++) { p = scbfree; scbfree = p->next; } |
i | 673 | drivers/scsi/wd7000.c | int i; |
i | 681 | drivers/scsi/wd7000.c | for (i = 0; i < MAX_SCBS-1; i++) { |
i | 682 | drivers/scsi/wd7000.c | scbs[i].next = &(scbs[i+1]); scbs[i].SCpnt = NULL; |
i | 696 | drivers/scsi/wd7000.c | register int i, ogmb; |
i | 708 | drivers/scsi/wd7000.c | for (i = 0; i < OGMB_CNT; i++) { |
i | 725 | drivers/scsi/wd7000.c | if (i >= OGMB_CNT) { |
i | 922 | drivers/scsi/wd7000.c | unsigned i; |
i | 936 | drivers/scsi/wd7000.c | for (i = 0; i < SCpnt->use_sg; i++) { |
i | 937 | drivers/scsi/wd7000.c | any2scsi(sgb[i].ptr, (int) sg[i].address); |
i | 938 | drivers/scsi/wd7000.c | any2scsi(sgb[i].len, sg[i].length); |
i | 1108 | drivers/scsi/wd7000.c | int i,j, present = 0; |
i | 1120 | drivers/scsi/wd7000.c | for (i = 0; i < NUM_CONFIGS; i++) { |
i | 188 | drivers/sound/ad1848.c | int i; |
i | 194 | drivers/sound/ad1848.c | for (i = 6; i < 8; i++) |
i | 196 | drivers/sound/ad1848.c | prev = devc->saved_regs[i] = ad_read (devc, i); |
i | 197 | drivers/sound/ad1848.c | ad_write (devc, i, prev | 0x80); |
i | 204 | drivers/sound/ad1848.c | int i; |
i | 209 | drivers/sound/ad1848.c | for (i = 6; i < 8; i++) |
i | 211 | drivers/sound/ad1848.c | ad_write (devc, i, devc->saved_regs[i] & ~0x80); |
i | 271 | drivers/sound/ad1848.c | int i, n; |
i | 276 | drivers/sound/ad1848.c | for (i = 0; i < 32; i++) /* Count selected device bits */ |
i | 277 | drivers/sound/ad1848.c | if (mask & (1 << i)) |
i | 287 | drivers/sound/ad1848.c | for (i = 0; i < 32; i++) /* Count selected device bits */ |
i | 288 | drivers/sound/ad1848.c | if (mask & (1 << i)) |
i | 404 | drivers/sound/ad1848.c | int i; |
i | 414 | drivers/sound/ad1848.c | for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) |
i | 415 | drivers/sound/ad1848.c | ad1848_mixer_set (devc, i, devc->levels[i] = default_mixer_levels[i]); |
i | 649 | drivers/sound/ad1848.c | int i, n, selected = -1; |
i | 658 | drivers/sound/ad1848.c | for (i = 1 /*really */ ; selected == -1 && i < n; i++) |
i | 659 | drivers/sound/ad1848.c | if (speed_table[i].speed == arg) |
i | 660 | drivers/sound/ad1848.c | selected = i; |
i | 661 | drivers/sound/ad1848.c | else if (speed_table[i].speed > arg) |
i | 665 | drivers/sound/ad1848.c | diff1 = arg - speed_table[i - 1].speed; |
i | 666 | drivers/sound/ad1848.c | diff2 = speed_table[i].speed - arg; |
i | 669 | drivers/sound/ad1848.c | selected = i - 1; |
i | 671 | drivers/sound/ad1848.c | selected = i; |
i | 746 | drivers/sound/ad1848.c | int i, n = sizeof (format2bits) / sizeof (struct format_tbl); |
i | 753 | drivers/sound/ad1848.c | for (i = 0; i < n; i++) |
i | 754 | drivers/sound/ad1848.c | if (format2bits[i].format == arg) |
i | 756 | drivers/sound/ad1848.c | if ((devc->format_bits = format2bits[i].bits) == 0) |
i | 1055 | drivers/sound/ad1848.c | int i; |
i | 1142 | drivers/sound/ad1848.c | for (i = 0; i < 16; i++) |
i | 1143 | drivers/sound/ad1848.c | if ((tmp1 = ad_read (devc, i)) != (tmp2 = ad_read (devc, i + 16))) |
i | 1145 | drivers/sound/ad1848.c | DDB (printk ("ad1848 detect error - step F(%d/%x/%x)\n", i, tmp1, tmp2)); |
i | 1258 | drivers/sound/ad1848.c | int i, my_dev; |
i | 1281 | drivers/sound/ad1848.c | for (i = 0; i < 16; i++) |
i | 1282 | drivers/sound/ad1848.c | ad_write (devc, i, init_values[i]); |
i | 1290 | drivers/sound/ad1848.c | for (i = 16; i < 32; i++) |
i | 1291 | drivers/sound/ad1848.c | ad_write (devc, i, init_values[i]); |
i | 161 | drivers/sound/audio.c | unsigned long i; |
i | 163 | drivers/sound/audio.c | for (i = 0; i < n; ++i) |
i | 164 | drivers/sound/audio.c | buff[i] = table[buff[i]]; |
i | 283 | drivers/sound/configure.c | int i, num, def_size, full_driver = 1; |
i | 327 | drivers/sound/configure.c | for (i = 0; i <= OPT_LAST; i++) |
i | 328 | drivers/sound/configure.c | if (can_select_option (i)) |
i | 330 | drivers/sound/configure.c | if (!(selected_options & B (i))) /* |
i | 333 | drivers/sound/configure.c | if (!hw_table[i].verify) |
i | 335 | drivers/sound/configure.c | if (hw_table[i].alias) |
i | 336 | drivers/sound/configure.c | selected_options |= B (hw_table[i].alias); |
i | 338 | drivers/sound/configure.c | selected_options |= B (i); |
i | 342 | drivers/sound/configure.c | int def_answ = hw_table[i].default_answ; |
i | 346 | drivers/sound/configure.c | questions[i]); |
i | 348 | drivers/sound/configure.c | if (hw_table[i].alias) |
i | 349 | drivers/sound/configure.c | selected_options |= B (hw_table[i].alias); |
i | 351 | drivers/sound/configure.c | selected_options |= B (i); |
i | 546 | drivers/sound/configure.c | for (i = 0; i <= OPT_LAST; i++) |
i | 547 | drivers/sound/configure.c | if (!hw_table[i].alias) |
i | 548 | drivers/sound/configure.c | if (selected_options & B (i)) |
i | 549 | drivers/sound/configure.c | printf ("#undef EXCLUDE_%s\n", hw_table[i].macro); |
i | 551 | drivers/sound/configure.c | printf ("#define EXCLUDE_%s\n", hw_table[i].macro); |
i | 1328 | drivers/sound/configure.c | int i = 0; |
i | 1341 | drivers/sound/configure.c | if (i != 0 && (i % 10) == 0) |
i | 1344 | drivers/sound/configure.c | i++; |
i | 1347 | drivers/sound/configure.c | "#define %sLen %d\n", varname, i); |
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 | 57 | drivers/sound/dev_table.c | for (i = 0; i < (n - 1); i++) |
i | 58 | drivers/sound/dev_table.c | if (snd_installed_cards[i].enabled) |
i | 59 | drivers/sound/dev_table.c | if ((drv = snd_find_driver (snd_installed_cards[i].card_type)) == -1) |
i | 60 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; /* |
i | 63 | drivers/sound/dev_table.c | else if (sound_drivers[drv].probe (&snd_installed_cards[i].config)) |
i | 67 | drivers/sound/dev_table.c | snd_installed_cards[i].card_type); |
i | 70 | drivers/sound/dev_table.c | mem_start = sound_drivers[drv].attach (mem_start, &snd_installed_cards[i].config); |
i | 73 | drivers/sound/dev_table.c | snd_installed_cards[i].config.io_base, |
i | 74 | drivers/sound/dev_table.c | snd_installed_cards[i].config.irq, |
i | 75 | drivers/sound/dev_table.c | snd_installed_cards[i].config.dma); |
i | 79 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; /* |
i | 89 | drivers/sound/dev_table.c | int i, n = sizeof (snd_installed_cards) / sizeof (struct card_info); |
i | 94 | drivers/sound/dev_table.c | for (i = 0; i < (n - 1); i++) |
i | 95 | drivers/sound/dev_table.c | if (snd_installed_cards[i].enabled) |
i | 96 | drivers/sound/dev_table.c | if (snd_installed_cards[i].card_type == unit) |
i | 100 | drivers/sound/dev_table.c | snd_installed_cards[i].config.io_base = hw_config->io_base; |
i | 101 | drivers/sound/dev_table.c | snd_installed_cards[i].config.irq = hw_config->irq; |
i | 102 | drivers/sound/dev_table.c | snd_installed_cards[i].config.dma = hw_config->dma; |
i | 103 | drivers/sound/dev_table.c | if ((drv = snd_find_driver (snd_installed_cards[i].card_type)) == -1) |
i | 104 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; /* |
i | 110 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; /* |
i | 122 | drivers/sound/dev_table.c | int i, n = sizeof (snd_installed_cards) / sizeof (struct card_info); |
i | 131 | drivers/sound/dev_table.c | for (i = 0; i < (n - 1); i++) |
i | 132 | drivers/sound/dev_table.c | if (snd_installed_cards[i].card_type == unit) |
i | 136 | drivers/sound/dev_table.c | snd_installed_cards[i].config.io_base = hw_config->io_base; |
i | 137 | drivers/sound/dev_table.c | snd_installed_cards[i].config.irq = hw_config->irq; |
i | 138 | drivers/sound/dev_table.c | snd_installed_cards[i].config.dma = hw_config->dma; |
i | 140 | drivers/sound/dev_table.c | if ((drv = snd_find_driver (snd_installed_cards[i].card_type)) == -1) |
i | 141 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; /* |
i | 162 | drivers/sound/dev_table.c | int i, n = sizeof (snd_installed_cards) / sizeof (struct card_info); |
i | 168 | drivers/sound/dev_table.c | for (i = 0; i < n; i++) |
i | 169 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; |
i | 177 | drivers/sound/dev_table.c | for (i = 1; i <= ints[0]; i++) |
i | 182 | drivers/sound/dev_table.c | val = (unsigned int) ints[i]; |
i | 222 | drivers/sound/dev_table.c | int i, n = sizeof (snd_installed_cards) / sizeof (struct card_info); |
i | 61 | drivers/sound/dmabuf.c | unsigned i, p, n; |
i | 126 | drivers/sound/dmabuf.c | for (i = 0; i < dmap->raw_count && |
i | 128 | drivers/sound/dmabuf.c | n < MAX_SUB_BUFFERS; i++) |
i | 136 | drivers/sound/dmabuf.c | dmap->buf[n] = dmap->raw_buf[i] + p; |
i | 137 | drivers/sound/dmabuf.c | dmap->buf_phys[n] = dmap->raw_buf_phys[i] + p; |
i | 146 | drivers/sound/dmabuf.c | for (i = 0; i < dmap->nbufs; i++) |
i | 148 | 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 | 182 | drivers/sound/gus_wave.c | int i; |
i | 184 | drivers/sound/gus_wave.c | for (i = 0; i <= MAX_SAMPLE; i++) |
i | 185 | drivers/sound/gus_wave.c | sample_ptrs[i] = -1; |
i | 186 | drivers/sound/gus_wave.c | for (i = 0; i < 32; i++) |
i | 187 | drivers/sound/gus_wave.c | sample_map[i] = -1; |
i | 188 | drivers/sound/gus_wave.c | for (i = 0; i < 32; i++) |
i | 189 | drivers/sound/gus_wave.c | patch_map[i] = -1; |
i | 197 | drivers/sound/gus_wave.c | for (i = 0; i < MAX_PATCH; i++) |
i | 198 | drivers/sound/gus_wave.c | patch_table[i] = -1; |
i | 204 | drivers/sound/gus_wave.c | int i; |
i | 206 | drivers/sound/gus_wave.c | for (i = 0; i < 7; i++) |
i | 652 | drivers/sound/gus_wave.c | int i; |
i | 659 | drivers/sound/gus_wave.c | for (i = 0; i < 32; i++) |
i | 661 | drivers/sound/gus_wave.c | gus_voice_init (i); /* Turn voice off */ |
i | 662 | drivers/sound/gus_wave.c | gus_voice_init2 (i); |
i | 821 | drivers/sound/gus_wave.c | unsigned long i; |
i | 841 | drivers/sound/gus_wave.c | for (i = 1L; i < 1024L; i++) |
i | 848 | drivers/sound/gus_wave.c | loc = i << 10; |
i | 864 | drivers/sound/gus_wave.c | gus_mem_size = i << 10; |
i | 1283 | drivers/sound/gus_wave.c | int i; |
i | 1285 | drivers/sound/gus_wave.c | for (i = 0; i < 6; i++) |
i | 1287 | drivers/sound/gus_wave.c | voices[voice].env_rate[i] = samples[sample].env_rate[i]; |
i | 1288 | drivers/sound/gus_wave.c | voices[voice].env_offset[i] = samples[sample].env_offset[i]; |
i | 1461 | drivers/sound/gus_wave.c | int i; |
i | 1463 | drivers/sound/gus_wave.c | for (i = 0; i < 32; i++) |
i | 1465 | drivers/sound/gus_wave.c | gus_voice_init (i); |
i | 1466 | drivers/sound/gus_wave.c | gus_voice_init2 (i); |
i | 1661 | drivers/sound/gus_wave.c | long i; |
i | 1664 | drivers/sound/gus_wave.c | for (i = 0; i < blk_size; i++) |
i | 1666 | drivers/sound/gus_wave.c | GET_BYTE_FROM_USER (data, addr, sizeof_patch + i); |
i | 1669 | drivers/sound/gus_wave.c | if (!(patch.mode & WAVE_16_BITS) || (i & 0x01)) |
i | 1671 | drivers/sound/gus_wave.c | gus_poke (target + i, data); |
i | 2354 | drivers/sound/gus_wave.c | int i; |
i | 2371 | drivers/sound/gus_wave.c | for (i = 0; i < pcm_nblk; i++) |
i | 2372 | drivers/sound/gus_wave.c | pcm_datasize[i] = 0; |
i | 2401 | drivers/sound/gus_wave.c | int i; |
i | 2408 | drivers/sound/gus_wave.c | for (i = 0; i < len; i++) |
i | 2421 | drivers/sound/gus_wave.c | int i; |
i | 2429 | drivers/sound/gus_wave.c | for (i = 0; i < len; i++) |
i | 2495 | drivers/sound/gus_wave.c | int i, n; |
i | 2512 | drivers/sound/gus_wave.c | for (i = 0; i < MAX_PATCH; i++) |
i | 2514 | drivers/sound/gus_wave.c | int ptr = patch_table[i]; |
i | 2516 | drivers/sound/gus_wave.c | rec->data.data8[i] = 0; |
i | 2520 | drivers/sound/gus_wave.c | rec->data.data8[i]++; |
i | 2678 | drivers/sound/gus_wave.c | int i, p, best = -1, best_time = 0x7fffffff; |
i | 2685 | drivers/sound/gus_wave.c | for (i = 0; i < alloc->max_voice; i++) |
i | 2704 | drivers/sound/gus_wave.c | for (i = 0; i < alloc->max_voice; i++) |
i | 19 | drivers/sound/hex2hex.h | int i,l, c; |
i | 62 | drivers/sound/hex2hex.h | for (i=0;i<n;i++) |
i | 86 | drivers/sound/hex2hex.h | for (i=0;i<l;i++) |
i | 88 | drivers/sound/hex2hex.h | if (i) fprintf(outf, ","); |
i | 89 | drivers/sound/hex2hex.h | if (i && !(i % 16)) fprintf(outf, "\n"); |
i | 90 | drivers/sound/hex2hex.h | fprintf(outf, "0x%02x", buf[i]); |
i | 234 | drivers/sound/ics2101.c | int i; |
i | 247 | drivers/sound/ics2101.c | for (i = 0; i < ICS_MIXDEVS; i++) |
i | 248 | drivers/sound/ics2101.c | left_fix[i] = 1; |
i | 249 | drivers/sound/ics2101.c | for (i = 0; i < ICS_MIXDEVS; i++) |
i | 250 | drivers/sound/ics2101.c | right_fix[i] = 2; |
i | 201 | drivers/sound/mad16.c | int i; |
i | 217 | drivers/sound/mad16.c | for (i = 0xf8d; i <= 0xf93; i++) |
i | 218 | drivers/sound/mad16.c | if (INB (i) != 0xff) |
i | 220 | drivers/sound/mad16.c | DDB (printk ("port 0x%03x != 0xff (0x%02x)\n", i, INB (i))); |
i | 259 | drivers/sound/mad16.c | for (i = 0xf8d; i <= 0xf93; i++) |
i | 260 | drivers/sound/mad16.c | DDB (printk ("port %03x = %03x\n", i, mad_read (i))); |
i | 268 | drivers/sound/mad16.c | for (i = 0; i < 5; i++) |
i | 270 | drivers/sound/mad16.c | if (i > 3) /* Not a valid port */ |
i | 276 | drivers/sound/mad16.c | if (valid_ports[i] == hw_config->io_base) |
i | 278 | drivers/sound/mad16.c | tmp |= i << 4; /* WSS port select bits */ |
i | 319 | drivers/sound/mad16.c | for (i = 0xf8d; i <= 0xf93; i++) |
i | 320 | drivers/sound/mad16.c | DDB (printk ("port %03x after init = %03x\n", i, mad_read (i))); |
i | 359 | drivers/sound/mad16.c | int i; /* A variable with secret power */ |
i | 380 | drivers/sound/mad16.c | for (i = 0; i < 5; i++) |
i | 382 | drivers/sound/mad16.c | if (i > 3) /* Out of array bounds */ |
i | 388 | drivers/sound/mad16.c | if (valid_ports[i] == hw_config->io_base) |
i | 390 | drivers/sound/mad16.c | tmp |= i << 5; |
i | 399 | drivers/sound/mad16.c | for (i = 0; i < 5; i++) |
i | 401 | drivers/sound/mad16.c | if (i > 3) /* Out of array bounds */ |
i | 407 | drivers/sound/mad16.c | if (valid_irqs[i] == hw_config->irq) |
i | 409 | drivers/sound/mad16.c | tmp |= i << 3; |
i | 466 | drivers/sound/midi_synth.c | int i; |
i | 507 | drivers/sound/midi_synth.c | for (i = 0; i < left && !PROCESS_ABORTING (sysex_sleeper, sysex_sleep_flag); i++) |
i | 511 | drivers/sound/midi_synth.c | GET_BYTE_FROM_USER (data, addr, hdr_size + i); |
i | 513 | drivers/sound/midi_synth.c | eox_seen = (i > 0 && data & 0x80); /* End of sysex */ |
i | 518 | 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 | 595 | drivers/sound/mpu401.c | int i, timeout, ok; |
i | 660 | drivers/sound/mpu401.c | for (i = 0; i < cmd->nr_args; i++) |
i | 664 | drivers/sound/mpu401.c | if (!mpu401_out (dev, cmd->data[i])) |
i | 676 | drivers/sound/mpu401.c | for (i = 0; i < cmd->nr_returns; i++) |
i | 682 | drivers/sound/mpu401.c | cmd->data[i] = read_data (devc->base); |
i | 110 | drivers/sound/opl3.c | int i; |
i | 117 | drivers/sound/opl3.c | for (i = 0; i < 3; i++) |
i | 118 | drivers/sound/opl3.c | physical_voices[i].voice_mode = 4; |
i | 119 | drivers/sound/opl3.c | for (i = 3; i < 6; i++) |
i | 120 | drivers/sound/opl3.c | physical_voices[i].voice_mode = 0; |
i | 122 | drivers/sound/opl3.c | for (i = 9; i < 12; i++) |
i | 123 | drivers/sound/opl3.c | physical_voices[i].voice_mode = 4; |
i | 124 | drivers/sound/opl3.c | for (i = 12; i < 15; i++) |
i | 125 | drivers/sound/opl3.c | physical_voices[i].voice_mode = 0; |
i | 127 | drivers/sound/opl3.c | for (i = 0; i < 12; i++) |
i | 128 | drivers/sound/opl3.c | logical_voices[i] = voices_4op[i]; |
i | 194 | drivers/sound/opl3.c | int i; |
i | 232 | drivers/sound/opl3.c | for (i = 0; i < 50; i++) |
i | 291 | drivers/sound/opl3.c | for (i = 0; i < 9; i++) |
i | 292 | drivers/sound/opl3.c | opl3_command (ioaddr, KEYON_BLOCK + i, 0); /* |
i | 797 | drivers/sound/opl3.c | int i; |
i | 812 | drivers/sound/opl3.c | for (i = 0; i < 2; i++) |
i | 827 | drivers/sound/opl3.c | for (i = 0; i < 2; i++) |
i | 834 | drivers/sound/opl3.c | int i; |
i | 836 | drivers/sound/opl3.c | for (i = 0; i < nr_voices; i++) |
i | 838 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
i | 839 | drivers/sound/opl3.c | KSL_LEVEL + physical_voices[logical_voices[i]].op[0], 0xff); |
i | 841 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
i | 842 | drivers/sound/opl3.c | KSL_LEVEL + physical_voices[logical_voices[i]].op[1], 0xff); |
i | 844 | drivers/sound/opl3.c | if (physical_voices[logical_voices[i]].voice_mode == 4) |
i | 846 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
i | 847 | drivers/sound/opl3.c | KSL_LEVEL + physical_voices[logical_voices[i]].op[2], 0xff); |
i | 849 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
i | 850 | drivers/sound/opl3.c | KSL_LEVEL + physical_voices[logical_voices[i]].op[3], 0xff); |
i | 853 | drivers/sound/opl3.c | opl3_kill_note (dev, i, 0, 64); |
i | 860 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 861 | drivers/sound/opl3.c | logical_voices[i] = i; |
i | 863 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 864 | drivers/sound/opl3.c | physical_voices[i].voice_mode = 2; |
i | 873 | drivers/sound/opl3.c | int i; |
i | 884 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 886 | drivers/sound/opl3.c | voice_alloc->map[i] = 0; |
i | 887 | drivers/sound/opl3.c | voice_alloc->alloc_times[i] = 0; |
i | 1103 | drivers/sound/opl3.c | int i, p, best, first, avail_voices, best_time = 0x7fffffff; |
i | 1141 | drivers/sound/opl3.c | for (i = 0; i < avail_voices; i++) |
i | 1207 | drivers/sound/opl3.c | int i; |
i | 1236 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 1237 | drivers/sound/opl3.c | if (physical_voices[i].ioaddr == USE_LEFT) |
i | 1238 | drivers/sound/opl3.c | physical_voices[i].ioaddr = left_address; |
i | 1240 | drivers/sound/opl3.c | physical_voices[i].ioaddr = right_address; |
i | 1263 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 1264 | drivers/sound/opl3.c | physical_voices[i].ioaddr = left_address; |
i | 1268 | drivers/sound/opl3.c | for (i = 0; i < SBFM_MAXINSTR; i++) |
i | 1269 | drivers/sound/opl3.c | instrmap[i].channel = -1; |
i | 275 | drivers/sound/pas2_midi.c | int i, incount; |
i | 290 | drivers/sound/pas2_midi.c | for (i = 0; i < incount; i++) |
i | 137 | drivers/sound/pas2_mixer.c | int left, right, devmask, changed, i, mixer = 0; |
i | 201 | drivers/sound/pas2_mixer.c | i = 0; |
i | 204 | drivers/sound/pas2_mixer.c | i = (level / 20) - 1; |
i | 210 | drivers/sound/pas2_mixer.c | if (i) |
i | 211 | drivers/sound/pas2_mixer.c | i = (i + 1) * 20; |
i | 212 | drivers/sound/pas2_mixer.c | return i; |
i | 229 | drivers/sound/pas2_mixer.c | for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) |
i | 230 | drivers/sound/pas2_mixer.c | if (changed & (1 << i)) |
i | 232 | drivers/sound/pas2_mixer.c | pas_mixer_set (i, levels[i]); |
i | 181 | drivers/sound/pss.c | unsigned long i, limit = GET_TIME () + 10; |
i | 185 | drivers/sound/pss.c | for (i = 0; i < 32768 && GET_TIME () < limit; i++) |
i | 196 | drivers/sound/pss.c | int i, val; |
i | 198 | drivers/sound/pss.c | for (i = 0; i < 327680; i++) |
i | 213 | drivers/sound/pss.c | int i, val; |
i | 215 | drivers/sound/pss.c | for (i = 0; i < 327680; i++) |
i | 231 | drivers/sound/pss.c | int i, limit, val, count; |
i | 240 | drivers/sound/pss.c | for (i = 0; i < 32768 && GET_TIME () < limit; i++) |
i | 284 | drivers/sound/pss.c | for (i = 0; i < 32768 && GET_TIME () < limit; i++) |
i | 288 | drivers/sound/pss.c | for (i = 0; i < 32768 && GET_TIME () < limit; i++) |
i | 296 | drivers/sound/pss.c | for (i = 0; i < 32000; i++) |
i | 302 | 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 | 123 | drivers/sound/sb_dsp.c | int i; |
i | 138 | drivers/sound/sb_dsp.c | for (i = 0; i < 500000 && GET_TIME () < limit; i++) |
i | 866 | drivers/sound/sb_dsp.c | int i; |
i | 868 | drivers/sound/sb_dsp.c | for (i = 1000; i; i--) |
i | 930 | drivers/sound/sb_dsp.c | int i; |
i | 941 | drivers/sound/sb_dsp.c | for (i = 0; i < 300; i++) /* Wait at least 1ms */ |
i | 976 | drivers/sound/sb_dsp.c | for (i = 0; i < 8192; i++) |
i | 977 | drivers/sound/sb_dsp.c | smw_putmem (mp_base, i, smw_ucode[i]); |
i | 983 | drivers/sound/sb_dsp.c | for (i = 0; i < 8192; i++) |
i | 984 | drivers/sound/sb_dsp.c | if (smw_getmem (mp_base, i) != smw_ucode[i]) |
i | 1118 | drivers/sound/sb_dsp.c | int i; |
i | 1126 | drivers/sound/sb_dsp.c | for (i = 1000; i; i--) |
i | 226 | drivers/sound/sb_mixer.c | int i; |
i | 232 | drivers/sound/sb_mixer.c | for (i = 0; i < sizeof (smw_mix_regs); i++) |
i | 233 | drivers/sound/sb_mixer.c | if (smw_mix_regs[i] != 0) |
i | 234 | drivers/sound/sb_mixer.c | supported_devices |= (1 << i); |
i | 368 | drivers/sound/sb_mixer.c | int devmask, i; |
i | 429 | drivers/sound/sb_mixer.c | for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) |
i | 430 | drivers/sound/sb_mixer.c | if ((1 << i) & devmask) |
i | 432 | drivers/sound/sb_mixer.c | regimageL |= sb16_recmasks_L[i]; |
i | 433 | drivers/sound/sb_mixer.c | regimageR |= sb16_recmasks_R[i]; |
i | 507 | drivers/sound/sb_mixer.c | int i; |
i | 509 | drivers/sound/sb_mixer.c | for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) |
i | 510 | drivers/sound/sb_mixer.c | sb_mixer_set (i, levels[i]); |
i | 458 | drivers/sound/sequencer.c | int i; |
i | 462 | drivers/sound/sequencer.c | for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) |
i | 463 | drivers/sound/sequencer.c | if (synth_devs[dev]->alloc.map[i] == key) |
i | 464 | drivers/sound/sequencer.c | return i; |
i | 611 | drivers/sound/sequencer.c | int i, key; |
i | 626 | drivers/sound/sequencer.c | for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) |
i | 627 | drivers/sound/sequencer.c | if ((synth_devs[dev]->alloc.map[i] & 0xff00) == key) |
i | 628 | drivers/sound/sequencer.c | synth_devs[dev]->controller (dev, i, p1, val); |
i | 644 | drivers/sound/sequencer.c | int i, key; |
i | 648 | drivers/sound/sequencer.c | for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) |
i | 649 | drivers/sound/sequencer.c | if ((synth_devs[dev]->alloc.map[i] & 0xff00) == key) |
i | 650 | drivers/sound/sequencer.c | synth_devs[dev]->bender (dev, i, w14); |
i | 953 | drivers/sound/sequencer.c | int i; |
i | 955 | drivers/sound/sequencer.c | for (i = 0; i < 128; i++) |
i | 956 | drivers/sound/sequencer.c | controller[i] = ctrl_def_values[i]; |
i | 994 | drivers/sound/sequencer.c | int retval, mode, i; |
i | 1050 | drivers/sound/sequencer.c | int i, best; |
i | 1053 | drivers/sound/sequencer.c | for (i = 0; i < num_sound_timers; i++) |
i | 1054 | drivers/sound/sequencer.c | if (sound_timer_devs[i]->priority > best) |
i | 1056 | drivers/sound/sequencer.c | tmr_no = i; |
i | 1057 | drivers/sound/sequencer.c | best = sound_timer_devs[i]->priority; |
i | 1088 | drivers/sound/sequencer.c | for (i = 0; i < max_mididev; i++) |
i | 1090 | drivers/sound/sequencer.c | midi_opened[i] = 0; |
i | 1091 | drivers/sound/sequencer.c | midi_written[i] = 0; |
i | 1097 | drivers/sound/sequencer.c | for (i = 0; i < max_synthdev; i++) /* |
i | 1100 | drivers/sound/sequencer.c | if ((tmp = synth_devs[i]->open (i, mode)) < 0) |
i | 1102 | drivers/sound/sequencer.c | printk ("Sequencer: Warning! Cannot open synth device #%d (%d)\n", i, tmp); |
i | 1103 | drivers/sound/sequencer.c | if (synth_devs[i]->midi_dev) |
i | 1104 | drivers/sound/sequencer.c | printk ("(Maps to MIDI dev #%d)\n", synth_devs[i]->midi_dev); |
i | 1108 | drivers/sound/sequencer.c | synth_open_mask |= (1 << i); |
i | 1109 | drivers/sound/sequencer.c | if (synth_devs[i]->midi_dev) /* |
i | 1112 | drivers/sound/sequencer.c | midi_opened[synth_devs[i]->midi_dev] = 1; |
i | 1123 | drivers/sound/sequencer.c | for (i = 0; i < max_mididev; i++) |
i | 1124 | drivers/sound/sequencer.c | if (!midi_opened[i]) |
i | 1126 | drivers/sound/sequencer.c | if ((retval = midi_devs[i]->open (i, mode, |
i | 1128 | drivers/sound/sequencer.c | midi_opened[i] = 1; |
i | 1142 | drivers/sound/sequencer.c | for (i = 0; i < num_synths; i++) |
i | 1143 | drivers/sound/sequencer.c | if (pmgr_present[i]) |
i | 1144 | drivers/sound/sequencer.c | pmgr_inform (i, PM_E_OPENED, 0, 0, 0, 0); |
i | 1152 | drivers/sound/sequencer.c | int i, n; |
i | 1164 | drivers/sound/sequencer.c | for (i = 0; i < max_mididev; i++) |
i | 1165 | drivers/sound/sequencer.c | if (midi_opened[i] && midi_written[i]) |
i | 1166 | drivers/sound/sequencer.c | if (midi_devs[i]->buffer_status != NULL) |
i | 1167 | drivers/sound/sequencer.c | if (midi_devs[i]->buffer_status (i)) |
i | 1183 | drivers/sound/sequencer.c | int i; |
i | 1220 | drivers/sound/sequencer.c | for (i = 0; i < max_synthdev; i++) |
i | 1221 | drivers/sound/sequencer.c | if (synth_open_mask & (1 << i)) /* |
i | 1224 | drivers/sound/sequencer.c | if (synth_devs[i]) |
i | 1226 | drivers/sound/sequencer.c | synth_devs[i]->close (i); |
i | 1228 | drivers/sound/sequencer.c | if (synth_devs[i]->midi_dev) |
i | 1229 | drivers/sound/sequencer.c | midi_opened[synth_devs[i]->midi_dev] = 0; |
i | 1232 | drivers/sound/sequencer.c | for (i = 0; i < num_synths; i++) |
i | 1233 | drivers/sound/sequencer.c | if (pmgr_present[i]) |
i | 1234 | drivers/sound/sequencer.c | pmgr_inform (i, PM_E_CLOSED, 0, 0, 0, 0); |
i | 1236 | drivers/sound/sequencer.c | for (i = 0; i < max_mididev; i++) |
i | 1237 | drivers/sound/sequencer.c | if (midi_opened[i]) |
i | 1238 | drivers/sound/sequencer.c | midi_devs[i]->close (i); |
i | 1298 | drivers/sound/sequencer.c | int i; |
i | 1310 | drivers/sound/sequencer.c | for (i = 0; i < max_synthdev; i++) |
i | 1311 | drivers/sound/sequencer.c | if (synth_open_mask & (1 << i)) |
i | 1312 | drivers/sound/sequencer.c | if (synth_devs[i]) |
i | 1313 | drivers/sound/sequencer.c | synth_devs[i]->reset (i); |
i | 1319 | drivers/sound/sequencer.c | for (i = 0; i < max_synthdev; i++) |
i | 1320 | drivers/sound/sequencer.c | if (synth_open_mask & (1 << i)) |
i | 1321 | drivers/sound/sequencer.c | if (synth_devs[i]) |
i | 1323 | drivers/sound/sequencer.c | synth_devs[i]->controller (i, chn, 123, 0); /* All notes off */ |
i | 1324 | drivers/sound/sequencer.c | synth_devs[i]->controller (i, chn, 121, 0); /* Reset all ctl */ |
i | 1325 | drivers/sound/sequencer.c | synth_devs[i]->bender (i, chn, 1 << 13); /* Bender off */ |
i | 1332 | drivers/sound/sequencer.c | for (i = 0; i < max_mididev; i++) |
i | 1333 | drivers/sound/sequencer.c | if (midi_written[i]) /* |
i | 1342 | drivers/sound/sequencer.c | midi_outc (i, 0xfe); |
i | 1346 | drivers/sound/sequencer.c | midi_outc (i, |
i | 1348 | drivers/sound/sequencer.c | midi_outc (i, 0x7b); /* All notes off */ |
i | 1349 | drivers/sound/sequencer.c | midi_outc (i, 0); /* Dummy parameter */ |
i | 1352 | drivers/sound/sequencer.c | midi_devs[i]->close (i); |
i | 1354 | drivers/sound/sequencer.c | midi_written[i] = 0; |
i | 1355 | drivers/sound/sequencer.c | midi_opened[i] = 0; |
i | 112 | drivers/sound/sound_switch.c | int i; |
i | 136 | drivers/sound/sound_switch.c | for (i = 0; i < (num_sound_drivers - 1); i++) |
i | 140 | drivers/sound/sound_switch.c | if (!put_status_int (sound_drivers[i].card_type, 10)) |
i | 144 | drivers/sound/sound_switch.c | if (!put_status (sound_drivers[i].name)) |
i | 154 | drivers/sound/sound_switch.c | for (i = 0; i < (num_sound_cards - 1); i++) |
i | 158 | drivers/sound/sound_switch.c | if (!snd_installed_cards[i].enabled) |
i | 167 | drivers/sound/sound_switch.c | if ((drv = snd_find_driver (snd_installed_cards[i].card_type)) != -1) |
i | 173 | drivers/sound/sound_switch.c | if (!put_status_int (snd_installed_cards[i].config.io_base, 16)) |
i | 177 | drivers/sound/sound_switch.c | if (!put_status_int (snd_installed_cards[i].config.irq, 10)) |
i | 181 | drivers/sound/sound_switch.c | if (!put_status_int (snd_installed_cards[i].config.dma, 10)) |
i | 184 | drivers/sound/sound_switch.c | if (!snd_installed_cards[i].enabled) |
i | 199 | drivers/sound/sound_switch.c | for (i = 0; i < num_audiodevs; i++) |
i | 201 | drivers/sound/sound_switch.c | if (!put_status_int (i, 10)) |
i | 205 | drivers/sound/sound_switch.c | if (!put_status (audio_devs[i]->name)) |
i | 219 | drivers/sound/sound_switch.c | for (i = 0; i < num_synths; i++) |
i | 221 | drivers/sound/sound_switch.c | if (!put_status_int (i, 10)) |
i | 225 | drivers/sound/sound_switch.c | if (!put_status (synth_devs[i]->info->name)) |
i | 239 | drivers/sound/sound_switch.c | for (i = 0; i < num_midis; i++) |
i | 241 | drivers/sound/sound_switch.c | if (!put_status_int (i, 10)) |
i | 245 | drivers/sound/sound_switch.c | if (!put_status (midi_devs[i]->info.name)) |
i | 255 | drivers/sound/sound_switch.c | for (i = 0; i < num_sound_timers; i++) |
i | 257 | drivers/sound/sound_switch.c | if (!put_status_int (i, 10)) |
i | 261 | drivers/sound/sound_switch.c | if (!put_status (sound_timer_devs[i]->info.name)) |
i | 270 | drivers/sound/sound_switch.c | for (i = 0; i < num_mixers; i++) |
i | 272 | drivers/sound/sound_switch.c | if (!put_status_int (i, 10)) |
i | 276 | drivers/sound/sound_switch.c | if (!put_status (mixer_devs[i]->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 | 266 | drivers/sound/soundcard.c | int i; |
i | 268 | drivers/sound/soundcard.c | for (i = 0; i < 31; i++) |
i | 269 | drivers/sound/soundcard.c | if (irqs & (1ul << i)) |
i | 270 | drivers/sound/soundcard.c | snd_release_irq (i); |
i | 343 | drivers/sound/soundcard.c | int i; |
i | 345 | drivers/sound/soundcard.c | for (i = 0; i < 16; i++) |
i | 535 | drivers/sound/soundcard.c | int i; |
i | 537 | drivers/sound/soundcard.c | for (i = 0; i < dma_last; i++) |
i | 540 | drivers/sound/soundcard.c | printk ("sound: freeing 0x%lx\n", (long) dma_list[i]); |
i | 541 | drivers/sound/soundcard.c | kfree (dma_list[i]); |
i | 544 | drivers/sound/soundcard.c | int dev, i; |
i | 553 | drivers/sound/soundcard.c | for (i = 0; i < audio_devs[dev]->buffcount; i++) |
i | 554 | drivers/sound/soundcard.c | if (audio_devs[dev]->dmap->raw_buf[i]) |
i | 558 | drivers/sound/soundcard.c | (long) (audio_devs[dev]->dmap->raw_buf[i])); |
i | 559 | drivers/sound/soundcard.c | free_pages((unsigned long) audio_devs[dev]->dmap->raw_buf[i], |
i | 572 | drivers/sound/soundcard.c | int i, dev; |
i | 619 | drivers/sound/soundcard.c | for (i = MAP_NR (start_addr); i <= MAP_NR (end_addr); i++) |
i | 621 | drivers/sound/soundcard.c | if (mem_map[i].reserved || mem_map[i].count) |
i | 624 | drivers/sound/soundcard.c | mem_map[i].reserved = 1; |
i | 158 | drivers/sound/sscape.c | int i, timeout; |
i | 166 | drivers/sound/sscape.c | for (i = 0; i < count; i++) |
i | 178 | drivers/sound/sscape.c | OUTB (data[i], PORT (HOST_DATA)); |
i | 382 | drivers/sound/sscape.c | int i; |
i | 384 | drivers/sound/sscape.c | for (i = 0; i < 10; i++) |
i | 564 | drivers/sound/sscape.c | int i; |
i | 566 | drivers/sound/sscape.c | for (i = 0; i < 13; i++) |
i | 567 | drivers/sound/sscape.c | printk ("I%d = %02x (new value)\n", i, sscape_read (devc, i)); |
i | 666 | drivers/sound/sscape.c | int i; |
i | 668 | drivers/sound/sscape.c | for (i = 0; i < 13; i++) |
i | 669 | drivers/sound/sscape.c | printk ("I%d = %02x\n", i, sscape_read (devc, i)); |
i | 850 | drivers/sound/sscape.c | int i, irq_bits = 0xff; |
i | 863 | drivers/sound/sscape.c | for (i = 0; i < sizeof (valid_interrupts); i++) |
i | 864 | drivers/sound/sscape.c | if (hw_config->irq == valid_interrupts[i]) |
i | 866 | drivers/sound/sscape.c | irq_bits = i; |
i | 878 | drivers/sound/sscape.c | for (i = 1; i < 10; i++) |
i | 879 | drivers/sound/sscape.c | switch (i) |
i | 882 | drivers/sound/sscape.c | sscape_write (devc, i, 0xf0); /* All interrupts enabled */ |
i | 887 | drivers/sound/sscape.c | sscape_write (devc, i, 0x20); /* DMA channel disabled */ |
i | 891 | drivers/sound/sscape.c | sscape_write (devc, i, 0xf0 | (irq_bits << 2) | irq_bits); |
i | 895 | drivers/sound/sscape.c | sscape_write (devc, i, (regs[i] & 0x3f) | |
i | 896 | drivers/sound/sscape.c | (sscape_read (devc, i) & 0xc0)); |
i | 903 | drivers/sound/sscape.c | sscape_write (devc, i, |
i | 904 | drivers/sound/sscape.c | (sscape_read (devc, i) & 0xf0) | 0x00); |
i | 908 | drivers/sound/sscape.c | sscape_write (devc, i, regs[i]); |
i | 919 | drivers/sound/sscape.c | int i; |
i | 921 | drivers/sound/sscape.c | for (i = 0; i < 13; i++) |
i | 922 | drivers/sound/sscape.c | printk ("I%d = %02x (new value)\n", i, sscape_read (devc, i)); |
i | 1014 | drivers/sound/sscape.c | int i; |
i | 1016 | drivers/sound/sscape.c | for (i = 0; i < 13; i++) |
i | 1017 | drivers/sound/sscape.c | printk ("I%d = %02x (old value)\n", i, sscape_read (devc, i)); |
i | 1043 | drivers/sound/sscape.c | int i, irq_bits = 0xff; |
i | 1051 | drivers/sound/sscape.c | for (i = 0; i < sizeof (valid_interrupts); i++) |
i | 1052 | drivers/sound/sscape.c | if (hw_config->irq == valid_interrupts[i]) |
i | 1054 | drivers/sound/sscape.c | irq_bits = i; |
i | 1075 | drivers/sound/sscape.c | int i, irq_bits = 0xff; |
i | 1096 | drivers/sound/sscape.c | for (i = 0; i < sizeof (valid_interrupts); i++) |
i | 1097 | drivers/sound/sscape.c | if (hw_config->irq == valid_interrupts[i]) |
i | 1099 | drivers/sound/sscape.c | irq_bits = i; |
i | 1124 | drivers/sound/sscape.c | int i; |
i | 1126 | drivers/sound/sscape.c | for (i = 0; i < 13; i++) |
i | 1127 | drivers/sound/sscape.c | printk ("I%d = %02x\n", i, sscape_read (devc, i)); |
i | 61 | drivers/sound/trix.c | int i = 0, n = sizeof (trix_boot); |
i | 74 | drivers/sound/trix.c | for (i = 0; i < n; i++) |
i | 75 | drivers/sound/trix.c | OUTB (trix_boot[i], 0x391); |
i | 76 | drivers/sound/trix.c | for (i = n; i < 10016; i++) /* Clear up to first 16 bytes of data RAM */ |
i | 191 | fs/binfmt_elf.c | int i, k; |
i | 223 | fs/binfmt_elf.c | for(i=0; i<interp_elf_ex->e_phnum; i++, eppnt++) |
i | 350 | fs/binfmt_elf.c | int i; |
i | 426 | fs/binfmt_elf.c | for(i=0;i < elf_ex.e_phnum; i++){ |
i | 552 | fs/binfmt_elf.c | for(i=0;i < elf_ex.e_phnum; i++){ |
i | 711 | fs/binfmt_elf.c | int i,j, k; |
i | 759 | fs/binfmt_elf.c | for(i=0; i<elf_ex.e_phnum; i++) |
i | 760 | fs/binfmt_elf.c | if((elf_phdata + i)->p_type == PT_LOAD) j++; |
i | 871 | fs/binfmt_elf.c | int i; |
i | 878 | fs/binfmt_elf.c | for(i = 0; i < ELF_NGREG; i++) |
i | 880 | fs/binfmt_elf.c | unsigned long val = r[i]; |
i | 881 | fs/binfmt_elf.c | printk(" %-2d %-5s=%08lx %lu\n", i, regs[i], val, val); |
i | 932 | fs/binfmt_elf.c | int i; |
i | 1077 | fs/binfmt_elf.c | int i, len; |
i | 1085 | fs/binfmt_elf.c | for(i = 0; i < len; i++) |
i | 1086 | fs/binfmt_elf.c | if (psinfo.pr_psargs[i] == 0) |
i | 1087 | fs/binfmt_elf.c | psinfo.pr_psargs[i] = ' '; |
i | 1118 | fs/binfmt_elf.c | for(i = 0; i < numnote; i++) |
i | 1119 | fs/binfmt_elf.c | sz += notesize(¬es[i]); |
i | 1138 | fs/binfmt_elf.c | for(vma = current->mm->mmap, i = 0; |
i | 1139 | fs/binfmt_elf.c | i < segs && vma != NULL; vma = vma->vm_next) { |
i | 1145 | fs/binfmt_elf.c | i++; |
i | 1164 | fs/binfmt_elf.c | for(i = 0; i < numnote; i++) |
i | 1165 | fs/binfmt_elf.c | if (!writenote(¬es[i], &file)) |
i | 1172 | fs/binfmt_elf.c | for(i = 0, vma = current->mm->mmap; |
i | 1173 | fs/binfmt_elf.c | i < segs && vma != NULL; |
i | 1180 | fs/binfmt_elf.c | i++; |
i | 25 | fs/block_dev.c | int blocksize, blocksize_bits, i, j, buffercount,write_error; |
i | 47 | fs/block_dev.c | i = blocksize; |
i | 49 | fs/block_dev.c | while(i != 1) { |
i | 51 | fs/block_dev.c | i >>= 1; |
i | 77 | fs/block_dev.c | for(i=0; i<blocks_per_cluster; i++) cluster_list[i] = block+i; |
i | 97 | fs/block_dev.c | for(i=1; i<blocks; i++){ |
i | 98 | fs/block_dev.c | if(((i+block) % blocks_per_cluster) == 0) { |
i | 99 | fs/block_dev.c | for(j=0; j<blocks_per_cluster; j++) cluster_list[j] = block+i+j; |
i | 102 | fs/block_dev.c | bhlist[i] = getblk (dev, block+i, blocksize); |
i | 103 | fs/block_dev.c | if(!bhlist[i]){ |
i | 104 | fs/block_dev.c | while(i >= 0) brelse(bhlist[i--]); |
i | 109 | fs/block_dev.c | for(i=1; i<blocks; i++) brelse(bhlist[i]); |
i | 134 | fs/block_dev.c | for(i=0; i<buffercount; i++){ |
i | 135 | fs/block_dev.c | wait_on_buffer(bufferlist[i]); |
i | 136 | fs/block_dev.c | if (!bufferlist[i]->b_uptodate) |
i | 138 | fs/block_dev.c | brelse(bufferlist[i]); |
i | 147 | fs/block_dev.c | for(i=0; i<buffercount; i++){ |
i | 148 | fs/block_dev.c | wait_on_buffer(bufferlist[i]); |
i | 149 | fs/block_dev.c | if (!bufferlist[i]->b_uptodate) |
i | 151 | fs/block_dev.c | brelse(bufferlist[i]); |
i | 165 | fs/block_dev.c | int blocksize_bits, i; |
i | 183 | fs/block_dev.c | i = blocksize; |
i | 185 | fs/block_dev.c | while (i != 1) { |
i | 187 | fs/block_dev.c | i >>= 1; |
i | 245 | 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 | 260 | fs/buffer.c | int i; |
i | 266 | fs/buffer.c | for (i = nr_buffers_type[nlist]*2 ; --i > 0 ; bh = bh->b_next_free) { |
i | 462 | fs/buffer.c | int i, nlist; |
i | 487 | fs/buffer.c | for (i = nr_buffers_type[nlist]*2 ; --i > 0 ; bh = bhnext) { |
i | 514 | fs/buffer.c | int i; |
i | 555 | fs/buffer.c | for(i=0; i<NR_LIST; i++){ |
i | 556 | fs/buffer.c | if(i == BUF_DIRTY || i == BUF_SHARED || |
i | 557 | fs/buffer.c | nr_buffers_type[i] == 0) { |
i | 558 | fs/buffer.c | candidate[i] = NULL; |
i | 559 | fs/buffer.c | buffers[i] = 0; |
i | 562 | fs/buffer.c | buffers[i] = nr_buffers_type[i]; |
i | 563 | fs/buffer.c | for (bh = lru_list[i]; buffers[i] > 0; bh = tmp, buffers[i]--) |
i | 565 | fs/buffer.c | if(buffers[i] < 0) panic("Here is the problem"); |
i | 582 | fs/buffer.c | if(bh->b_lock && (i == BUF_LOCKED || i == BUF_LOCKED1)) { |
i | 583 | fs/buffer.c | buffers[i] = 0; |
i | 590 | fs/buffer.c | if(!buffers[i]) candidate[i] = NULL; /* Nothing on this list */ |
i | 591 | fs/buffer.c | else candidate[i] = bh; |
i | 592 | fs/buffer.c | if(candidate[i] && candidate[i]->b_count) panic("Here is the problem"); |
i | 601 | fs/buffer.c | for(i=0; i<NR_LIST; i++){ |
i | 602 | fs/buffer.c | if(!candidate[i]) continue; |
i | 603 | fs/buffer.c | if(candidate[i]->b_lru_time < best_time){ |
i | 604 | fs/buffer.c | best_time = candidate[i]->b_lru_time; |
i | 605 | fs/buffer.c | winner = i; |
i | 611 | fs/buffer.c | i = winner; |
i | 612 | fs/buffer.c | bh = candidate[i]; |
i | 613 | fs/buffer.c | candidate[i] = bh->b_next_free; |
i | 614 | fs/buffer.c | if(candidate[i] == bh) candidate[i] = NULL; /* Got last one */ |
i | 627 | fs/buffer.c | buffers[i]--; |
i | 628 | fs/buffer.c | if(buffers[i] < 0) panic("Here is the problem"); |
i | 630 | fs/buffer.c | if(buffers[i] == 0) candidate[i] = NULL; |
i | 634 | fs/buffer.c | if(candidate[i] && buffers[i] > 0){ |
i | 635 | fs/buffer.c | if(buffers[i] <= 0) panic("Here is another problem"); |
i | 636 | fs/buffer.c | for (bh = candidate[i]; buffers[i] > 0; bh = tmp, buffers[i]--) { |
i | 637 | fs/buffer.c | if(buffers[i] < 0) panic("Here is the problem"); |
i | 654 | fs/buffer.c | if(bh->b_lock && (i == BUF_LOCKED || i == BUF_LOCKED1)) { |
i | 655 | fs/buffer.c | buffers[i] = 0; |
i | 662 | fs/buffer.c | if(!buffers[i]) candidate[i] = NULL; /* Nothing here */ |
i | 663 | fs/buffer.c | else candidate[i] = bh; |
i | 664 | fs/buffer.c | if(candidate[i] && candidate[i]->b_count) |
i | 858 | fs/buffer.c | int i, j; |
i | 880 | fs/buffer.c | for(i=1; i<blocks; i++) { |
i | 881 | fs/buffer.c | bh = getblk(dev,block+i,bufsize); |
i | 892 | fs/buffer.c | for(i=1; i<j; i++) |
i | 893 | fs/buffer.c | brelse(bhlist[i]); |
i | 920 | fs/buffer.c | int i; |
i | 929 | fs/buffer.c | for (nr_buffer_heads+=i=PAGE_SIZE/sizeof*bh ; i>0; i--) { |
i | 990 | fs/buffer.c | int i; |
i | 994 | fs/buffer.c | for (i = 0 ; i < nrbuf ; i++) { |
i | 995 | fs/buffer.c | if (bh[i] && !bh[i]->b_uptodate) |
i | 996 | fs/buffer.c | bhr[bhnum++] = bh[i]; |
i | 1000 | fs/buffer.c | for (i = nrbuf ; --i >= 0 ; ) { |
i | 1001 | fs/buffer.c | if (bh[i]) { |
i | 1002 | fs/buffer.c | wait_on_buffer(bh[i]); |
i | 1161 | fs/buffer.c | int i, j; |
i | 1169 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j+= size) { |
i | 1170 | fs/buffer.c | bh[i] = NULL; |
i | 1171 | fs/buffer.c | if (b[i]) |
i | 1172 | fs/buffer.c | bh[i] = getblk(dev, b[i], size); |
i | 1174 | fs/buffer.c | read_buffers(bh,i); |
i | 1176 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j += size, where += size) { |
i | 1177 | fs/buffer.c | if (bh[i]) { |
i | 1178 | fs/buffer.c | if (bh[i]->b_uptodate) |
i | 1179 | fs/buffer.c | memcpy((void *) where, bh[i]->b_data, size); |
i | 1180 | fs/buffer.c | brelse(bh[i]); |
i | 1195 | fs/buffer.c | int i, j; |
i | 1197 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j+= size) { |
i | 1198 | fs/buffer.c | bh[i] = NULL; |
i | 1199 | fs/buffer.c | if (b[i]) |
i | 1200 | fs/buffer.c | bh[i] = getblk(dev, b[i], size); |
i | 1202 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j += size, address += size) { |
i | 1203 | fs/buffer.c | if (bh[i]) { |
i | 1204 | fs/buffer.c | memcpy(bh[i]->b_data, (void *) address, size); |
i | 1205 | fs/buffer.c | bh[i]->b_uptodate = 1; |
i | 1206 | fs/buffer.c | mark_buffer_dirty(bh[i], 0); |
i | 1207 | fs/buffer.c | brelse(bh[i]); |
i | 1393 | fs/buffer.c | int i, isize, isize1; |
i | 1406 | fs/buffer.c | for (i=0 ; !i || bh != free_list[isize]; bh = bh->b_next_free, i++) { |
i | 1423 | fs/buffer.c | i = 2*nr_buffers_type[nlist] >> priority; |
i | 1424 | fs/buffer.c | for ( ; i-- > 0 ; bh = bh->b_next_free) { |
i | 1557 | fs/buffer.c | int i; |
i | 1567 | fs/buffer.c | for (i=0 ; !i || bh != free_list[isize] ; bh = bh->b_next_free, i++) { |
i | 1638 | fs/buffer.c | int i, offset; |
i | 1640 | fs/buffer.c | for (i = 0, offset = 0 ; offset < PAGE_SIZE ; i++, offset += size) { |
i | 1641 | fs/buffer.c | if(i && b[i]-1 != b[i-1]) return 0; /* No need to cluster */ |
i | 1642 | fs/buffer.c | if(find_buffer(dev, b[i], size)) return 0; |
i | 1674 | fs/buffer.c | int i; |
i | 1693 | fs/buffer.c | for (i = 0 ; i < MAP_NR(high_memory) ; i++) |
i | 1694 | fs/buffer.c | buffer_pages[i] = NULL; |
i | 1696 | fs/buffer.c | for (i = 0 ; i < nr_hash ; i++) |
i | 1697 | fs/buffer.c | hash_table[i] = NULL; |
i | 1743 | fs/buffer.c | int i, isize; |
i | 1764 | fs/buffer.c | for (i = nr_buffers_type[nlist]; i-- > 0; bh = next) { |
i | 1769 | fs/buffer.c | printk("Dirty list empty %d\n", i); |
i | 1818 | fs/buffer.c | int i, error; |
i | 1832 | fs/buffer.c | i = (func-2) >> 1; |
i | 1833 | fs/buffer.c | if (i < 0 || i >= N_PARAM) |
i | 1839 | fs/buffer.c | put_user(bdf_prm.data[i], (int*)data); |
i | 1842 | fs/buffer.c | if (data < bdflush_min[i] || data > bdflush_max[i]) |
i | 1844 | fs/buffer.c | bdf_prm.data[i] = data; |
i | 1870 | fs/buffer.c | for (i = nr_buffers_type[nlist]; i-- > 0 && ndirty < bdf_prm.b_un.ndirty; |
i | 1876 | 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 | 375 | fs/exec.c | int error, i = 0; |
i | 383 | fs/exec.c | i++; |
i | 389 | fs/exec.c | return i; |
i | 462 | fs/exec.c | int i; |
i | 469 | fs/exec.c | for (i=MAX_ARG_PAGES-1 ; i>=0 ; i--) { |
i | 471 | fs/exec.c | if (page[i]) { |
i | 473 | fs/exec.c | put_dirty_page(current,page[i],data_base); |
i | 561 | fs/exec.c | int i; |
i | 568 | fs/exec.c | for (i=0; (ch = *(name++)) != '\0';) { |
i | 570 | fs/exec.c | i = 0; |
i | 572 | fs/exec.c | if (i < 15) |
i | 573 | fs/exec.c | current->comm[i++] = ch; |
i | 575 | fs/exec.c | current->comm[i] = '\0'; |
i | 586 | fs/exec.c | for (i=0 ; i<32 ; i++) { |
i | 587 | fs/exec.c | current->sig->action[i].sa_mask = 0; |
i | 588 | fs/exec.c | current->sig->action[i].sa_flags = 0; |
i | 589 | fs/exec.c | if (current->sig->action[i].sa_handler != SIG_IGN) |
i | 590 | fs/exec.c | current->sig->action[i].sa_handler = NULL; |
i | 592 | fs/exec.c | for (i=0 ; i<NR_OPEN ; i++) |
i | 593 | fs/exec.c | if (FD_ISSET(i,¤t->files->close_on_exec)) |
i | 594 | fs/exec.c | sys_close(i); |
i | 608 | fs/exec.c | int i; |
i | 616 | fs/exec.c | for (i=0 ; i<MAX_ARG_PAGES ; i++) /* clear page-table */ |
i | 617 | fs/exec.c | bprm.page[i] = 0; |
i | 642 | fs/exec.c | i = bprm.inode->i_mode; |
i | 643 | fs/exec.c | if (IS_NOSUID(bprm.inode) && (((i & S_ISUID) && bprm.inode->i_uid != current-> |
i | 644 | fs/exec.c | euid) || ((i & S_ISGID) && !in_group_p(bprm.inode->i_gid))) && !suser()) { |
i | 653 | fs/exec.c | bprm.e_uid = (i & S_ISUID) ? bprm.inode->i_uid : current->euid; |
i | 654 | fs/exec.c | bprm.e_gid = (i & S_ISGID) ? bprm.inode->i_gid : current->egid; |
i | 786 | fs/exec.c | for (i=0 ; i<MAX_ARG_PAGES ; i++) |
i | 787 | fs/exec.c | free_page(bprm.page[i]); |
i | 68 | fs/ext/dir.c | unsigned int i; |
i | 85 | fs/ext/dir.c | for (i = 0; i < 1024 && i < offset; ) { |
i | 86 | fs/ext/dir.c | de = (struct ext_dir_entry *) (bh->b_data + i); |
i | 89 | fs/ext/dir.c | i += de->rec_len; |
i | 91 | fs/ext/dir.c | offset = i; |
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 | 193 | fs/ext/inode.c | int i; |
i | 207 | fs/ext/inode.c | i = inode_bmap(inode,9); |
i | 208 | fs/ext/inode.c | if (!i) |
i | 210 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
i | 214 | fs/ext/inode.c | i = inode_bmap(inode,10); |
i | 215 | fs/ext/inode.c | if (!i) |
i | 217 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>8); |
i | 218 | fs/ext/inode.c | if (!i) |
i | 220 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
i | 223 | fs/ext/inode.c | i = inode_bmap(inode,11); |
i | 224 | fs/ext/inode.c | if (!i) |
i | 226 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>16); |
i | 227 | fs/ext/inode.c | if (!i) |
i | 229 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),(block>>8) & 255); |
i | 230 | fs/ext/inode.c | if (!i) |
i | 232 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
i | 192 | fs/ext/namei.c | int i; |
i | 294 | fs/ext/namei.c | for (i=0; i < namelen ; i++) |
i | 295 | fs/ext/namei.c | de->name[i] = name[i]; |
i | 635 | fs/ext/namei.c | int i; |
i | 652 | fs/ext/namei.c | i = 0; |
i | 653 | fs/ext/namei.c | while (i < 1023 && (c = *(symname++))) |
i | 654 | fs/ext/namei.c | name_block->b_data[i++] = c; |
i | 655 | fs/ext/namei.c | name_block->b_data[i] = 0; |
i | 658 | 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 | 98 | fs/ext2/balloc.c | int i, j; |
i | 122 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_loaded_block_bitmaps && |
i | 123 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[i] != block_group; i++) |
i | 125 | fs/ext2/balloc.c | if (i < sb->u.ext2_sb.s_loaded_block_bitmaps && |
i | 126 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[i] == block_group) { |
i | 127 | fs/ext2/balloc.c | block_bitmap_number = sb->u.ext2_sb.s_block_bitmap_number[i]; |
i | 128 | fs/ext2/balloc.c | block_bitmap = sb->u.ext2_sb.s_block_bitmap[i]; |
i | 129 | fs/ext2/balloc.c | for (j = i; j > 0; j--) { |
i | 175 | fs/ext2/balloc.c | unsigned long i; |
i | 221 | fs/ext2/balloc.c | for (i = 0; i < count; i++) { |
i | 222 | fs/ext2/balloc.c | if (!clear_bit (bit + i, bh->b_data)) |
i | 259 | 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 | 351 | fs/ext2/balloc.c | ext2_debug ("Bit not found in block group %d.\n", i); |
i | 358 | fs/ext2/balloc.c | i++; |
i | 359 | fs/ext2/balloc.c | if (i >= sb->u.ext2_sb.s_groups_count) |
i | 360 | fs/ext2/balloc.c | i = 0; |
i | 361 | fs/ext2/balloc.c | gdp = get_group_desc (sb, i, &bh2); |
i | 369 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 380 | fs/ext2/balloc.c | "Free blocks count corrupted for block group %d", i); |
i | 395 | fs/ext2/balloc.c | ext2_debug ("using block group %d(%d)\n", i, gdp->bg_free_blocks_count); |
i | 397 | fs/ext2/balloc.c | tmp = j + i * EXT2_BLOCKS_PER_GROUP(sb) + es->s_first_data_block; |
i | 446 | fs/ext2/balloc.c | "block_group = %d, block=%d", i, j); |
i | 479 | fs/ext2/balloc.c | int i; |
i | 486 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 487 | fs/ext2/balloc.c | gdp = get_group_desc (sb, i, NULL); |
i | 489 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 493 | fs/ext2/balloc.c | i, gdp->bg_free_blocks_count, x); |
i | 521 | fs/ext2/balloc.c | int i, j; |
i | 530 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 531 | fs/ext2/balloc.c | gdp = get_group_desc (sb, i, NULL); |
i | 533 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 538 | fs/ext2/balloc.c | "Superblock in group %d is marked free", i); |
i | 544 | fs/ext2/balloc.c | "%d is marked free", j, i); |
i | 549 | fs/ext2/balloc.c | i); |
i | 554 | fs/ext2/balloc.c | i); |
i | 560 | fs/ext2/balloc.c | "group %d is marked free", j, i); |
i | 566 | fs/ext2/balloc.c | "stored = %d, counted = %lu", i, |
i | 17 | fs/ext2/bitmap.c | unsigned int i; |
i | 22 | fs/ext2/bitmap.c | for (i = 0; i < numchars; i++) |
i | 23 | fs/ext2/bitmap.c | sum += nibblemap[map->b_data[i] & 0xf] + |
i | 24 | fs/ext2/bitmap.c | nibblemap[(map->b_data[i] >> 4) & 0xf]; |
i | 103 | fs/ext2/dir.c | int i, num, stored; |
i | 132 | fs/ext2/dir.c | for (i = 16 >> (EXT2_BLOCK_SIZE_BITS(sb) - 9), num = 0; |
i | 133 | fs/ext2/dir.c | i > 0; i--) { |
i | 142 | fs/ext2/dir.c | for (i = 0; i < num; i++) |
i | 143 | fs/ext2/dir.c | brelse (bha[i]); |
i | 153 | fs/ext2/dir.c | for (i = 0; i < sb->s_blocksize && i < offset; ) { |
i | 155 | fs/ext2/dir.c | (bh->b_data + i); |
i | 164 | fs/ext2/dir.c | i += de->rec_len; |
i | 166 | fs/ext2/dir.c | offset = i; |
i | 243 | fs/ext2/file.c | int i,buffercount,write_error; |
i | 318 | fs/ext2/file.c | for(i=0; i<buffercount; i++){ |
i | 319 | fs/ext2/file.c | wait_on_buffer(bufferlist[i]); |
i | 320 | fs/ext2/file.c | if (!bufferlist[i]->b_uptodate) |
i | 322 | fs/ext2/file.c | brelse(bufferlist[i]); |
i | 334 | fs/ext2/file.c | for(i=0; i<buffercount; i++){ |
i | 335 | fs/ext2/file.c | wait_on_buffer(bufferlist[i]); |
i | 336 | fs/ext2/file.c | if (!bufferlist[i]->b_uptodate) |
i | 338 | 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 | 99 | fs/ext2/fsync.c | int i; |
i | 107 | fs/ext2/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 109 | fs/ext2/fsync.c | ((u32 *) ind_bh->b_data) + i, |
i | 122 | fs/ext2/fsync.c | int i; |
i | 130 | fs/ext2/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 132 | fs/ext2/fsync.c | ((u32 *) dind_bh->b_data) + i, |
i | 145 | fs/ext2/fsync.c | int i; |
i | 153 | fs/ext2/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 155 | fs/ext2/fsync.c | ((u32 *) tind_bh->b_data) + i, |
i | 97 | fs/ext2/ialloc.c | int i, j; |
i | 122 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_loaded_inode_bitmaps && |
i | 123 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[i] != block_group; |
i | 124 | fs/ext2/ialloc.c | i++) |
i | 126 | fs/ext2/ialloc.c | if (i < sb->u.ext2_sb.s_loaded_inode_bitmaps && |
i | 127 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[i] == block_group) { |
i | 128 | fs/ext2/ialloc.c | inode_bitmap_number = sb->u.ext2_sb.s_inode_bitmap_number[i]; |
i | 129 | fs/ext2/ialloc.c | inode_bitmap = sb->u.ext2_sb.s_inode_bitmap[i]; |
i | 130 | fs/ext2/ialloc.c | for (j = i; j > 0; j--) { |
i | 311 | fs/ext2/ialloc.c | int i, j, avefreei; |
i | 326 | fs/ext2/ialloc.c | gdp = NULL; i=0; |
i | 352 | fs/ext2/ialloc.c | i = j; |
i | 364 | fs/ext2/ialloc.c | i = dir->u.ext2_i.i_block_group; |
i | 365 | fs/ext2/ialloc.c | tmp = get_group_desc (sb, i, &bh2); |
i | 375 | fs/ext2/ialloc.c | i += j; |
i | 376 | fs/ext2/ialloc.c | if (i >= sb->u.ext2_sb.s_groups_count) |
i | 377 | fs/ext2/ialloc.c | i -= sb->u.ext2_sb.s_groups_count; |
i | 378 | fs/ext2/ialloc.c | tmp = get_group_desc (sb, i, &bh2); |
i | 389 | fs/ext2/ialloc.c | i = dir->u.ext2_i.i_block_group + 1; |
i | 391 | fs/ext2/ialloc.c | if (++i >= sb->u.ext2_sb.s_groups_count) |
i | 392 | fs/ext2/ialloc.c | i = 0; |
i | 393 | fs/ext2/ialloc.c | tmp = get_group_desc (sb, i, &bh2); |
i | 407 | fs/ext2/ialloc.c | bitmap_nr = load_inode_bitmap (sb, i); |
i | 426 | fs/ext2/ialloc.c | i); |
i | 433 | fs/ext2/ialloc.c | j += i * EXT2_INODES_PER_GROUP(sb) + 1; |
i | 437 | fs/ext2/ialloc.c | "block_group = %d,inode=%d", i, j); |
i | 477 | fs/ext2/ialloc.c | inode->u.ext2_i.i_block_group = i; |
i | 497 | fs/ext2/ialloc.c | int i; |
i | 504 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 505 | fs/ext2/ialloc.c | gdp = get_group_desc (sb, i, NULL); |
i | 507 | fs/ext2/ialloc.c | bitmap_nr = load_inode_bitmap (sb, i); |
i | 511 | fs/ext2/ialloc.c | i, gdp->bg_free_inodes_count, x); |
i | 529 | fs/ext2/ialloc.c | int i; |
i | 536 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 537 | fs/ext2/ialloc.c | gdp = get_group_desc (sb, i, NULL); |
i | 539 | fs/ext2/ialloc.c | bitmap_nr = load_inode_bitmap (sb, i); |
i | 545 | fs/ext2/ialloc.c | "stored = %d, counted = %lu", i, |
i | 66 | fs/ext2/inode.c | int i = inode->u.ext2_i.i_prealloc_count; |
i | 70 | fs/ext2/inode.c | i); |
i | 130 | fs/ext2/inode.c | int i; |
i | 148 | fs/ext2/inode.c | i = inode_bmap (inode, EXT2_IND_BLOCK); |
i | 149 | fs/ext2/inode.c | if (!i) |
i | 151 | fs/ext2/inode.c | return block_bmap (bread (inode->i_dev, i, |
i | 156 | fs/ext2/inode.c | i = inode_bmap (inode, EXT2_DIND_BLOCK); |
i | 157 | fs/ext2/inode.c | if (!i) |
i | 159 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, |
i | 162 | fs/ext2/inode.c | if (!i) |
i | 164 | fs/ext2/inode.c | return block_bmap (bread (inode->i_dev, i, |
i | 169 | fs/ext2/inode.c | i = inode_bmap (inode, EXT2_TIND_BLOCK); |
i | 170 | fs/ext2/inode.c | if (!i) |
i | 172 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i | 174 | fs/ext2/inode.c | if (!i) |
i | 176 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i | 178 | fs/ext2/inode.c | if (!i) |
i | 180 | fs/ext2/inode.c | return block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i | 333 | fs/ext2/inode.c | int i; |
i | 343 | fs/ext2/inode.c | for(i=0; i< (PAGE_SIZE >> EXT2_BLOCK_SIZE_BITS(inode->i_sb)); i++) { |
i | 344 | fs/ext2/inode.c | p = (u32 *) bh->b_data + nr + i; |
i | 350 | fs/ext2/inode.c | if(i==0) firstblock = *p; |
i | 351 | fs/ext2/inode.c | else if(*p != firstblock + i) goto out; |
i | 76 | fs/ext2/namei.c | int block, toread, i, err; |
i | 136 | fs/ext2/namei.c | for (i = 0; i < NAMEI_RA_SIZE; ++i) { |
i | 137 | fs/ext2/namei.c | if (bh_use[i] != bh) |
i | 138 | fs/ext2/namei.c | brelse (bh_use[i]); |
i | 160 | fs/ext2/namei.c | for (i = 0; i < NAMEI_RA_SIZE; ++i) |
i | 161 | fs/ext2/namei.c | brelse (bh_use[i]); |
i | 345 | fs/ext2/namei.c | int i; |
i | 347 | fs/ext2/namei.c | i = 0; |
i | 350 | fs/ext2/namei.c | while (i < bh->b_size) { |
i | 352 | fs/ext2/namei.c | de, bh, i)) |
i | 360 | fs/ext2/namei.c | i += de->rec_len; |
i | 756 | fs/ext2/namei.c | int i, err; |
i | 788 | fs/ext2/namei.c | i = 0; |
i | 789 | fs/ext2/namei.c | while (i < inode->i_sb->s_blocksize - 1 && (c = *(symname++))) |
i | 790 | fs/ext2/namei.c | link[i++] = c; |
i | 791 | fs/ext2/namei.c | link[i] = 0; |
i | 796 | fs/ext2/namei.c | inode->i_size = i; |
i | 103 | fs/ext2/super.c | int i; |
i | 112 | fs/ext2/super.c | for (i = 0; i < db_count; i++) |
i | 113 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc[i]) |
i | 114 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[i]); |
i | 117 | fs/ext2/super.c | for (i = 0; i < EXT2_MAX_GROUP_LOADED; i++) |
i | 118 | fs/ext2/super.c | if (sb->u.ext2_sb.s_inode_bitmap[i]) |
i | 119 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_inode_bitmap[i]); |
i | 120 | fs/ext2/super.c | for (i = 0; i < EXT2_MAX_GROUP_LOADED; i++) |
i | 121 | fs/ext2/super.c | if (sb->u.ext2_sb.s_block_bitmap[i]) |
i | 122 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_block_bitmap[i]); |
i | 314 | fs/ext2/super.c | int i; |
i | 321 | fs/ext2/super.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) |
i | 323 | fs/ext2/super.c | if ((i % EXT2_DESC_PER_BLOCK(sb)) == 0) |
i | 331 | fs/ext2/super.c | i, (unsigned long) gdp->bg_block_bitmap); |
i | 340 | fs/ext2/super.c | i, (unsigned long) gdp->bg_inode_bitmap); |
i | 350 | fs/ext2/super.c | i, (unsigned long) gdp->bg_inode_table); |
i | 372 | fs/ext2/super.c | int i, j; |
i | 543 | fs/ext2/super.c | for (i = 0; i < db_count; i++) { |
i | 544 | fs/ext2/super.c | sb->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1, |
i | 546 | fs/ext2/super.c | if (!sb->u.ext2_sb.s_group_desc[i]) { |
i | 549 | fs/ext2/super.c | for (j = 0; j < i; j++) |
i | 571 | fs/ext2/super.c | for (i = 0; i < EXT2_MAX_GROUP_LOADED; i++) { |
i | 572 | fs/ext2/super.c | sb->u.ext2_sb.s_inode_bitmap_number[i] = 0; |
i | 573 | fs/ext2/super.c | sb->u.ext2_sb.s_inode_bitmap[i] = NULL; |
i | 574 | fs/ext2/super.c | sb->u.ext2_sb.s_block_bitmap_number[i] = 0; |
i | 575 | fs/ext2/super.c | sb->u.ext2_sb.s_block_bitmap[i] = NULL; |
i | 588 | fs/ext2/super.c | for (i = 0; i < db_count; i++) |
i | 589 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc[i]) |
i | 590 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[i]); |
i | 100 | fs/ext2/symlink.c | int i, err; |
i | 119 | fs/ext2/symlink.c | i = 0; |
i | 120 | fs/ext2/symlink.c | while (i < buflen && (c = link[i])) { |
i | 121 | fs/ext2/symlink.c | i++; |
i | 127 | fs/ext2/symlink.c | return i; |
i | 50 | fs/ext2/truncate.c | int i, tmp; |
i | 61 | fs/ext2/truncate.c | for (i = direct_block ; i < EXT2_NDIR_BLOCKS ; i++) { |
i | 62 | fs/ext2/truncate.c | p = inode->u.ext2_i.i_data + i; |
i | 72 | fs/ext2/truncate.c | if (i < direct_block) { |
i | 112 | fs/ext2/truncate.c | int i, tmp; |
i | 137 | fs/ext2/truncate.c | for (i = indirect_block ; i < addr_per_block ; i++) { |
i | 138 | fs/ext2/truncate.c | if (i < 0) |
i | 139 | fs/ext2/truncate.c | i = 0; |
i | 140 | fs/ext2/truncate.c | if (i < indirect_block) |
i | 142 | fs/ext2/truncate.c | ind = i + (u32 *) ind_bh->b_data; |
i | 152 | fs/ext2/truncate.c | if (i < indirect_block) { |
i | 189 | fs/ext2/truncate.c | for (i = 0; i < addr_per_block; i++) |
i | 192 | fs/ext2/truncate.c | if (i >= addr_per_block) |
i | 214 | fs/ext2/truncate.c | int i, tmp; |
i | 236 | fs/ext2/truncate.c | for (i = dindirect_block ; i < addr_per_block ; i++) { |
i | 237 | fs/ext2/truncate.c | if (i < 0) |
i | 238 | fs/ext2/truncate.c | i = 0; |
i | 239 | fs/ext2/truncate.c | if (i < dindirect_block) |
i | 241 | fs/ext2/truncate.c | dind = i + (u32 *) dind_bh->b_data; |
i | 245 | fs/ext2/truncate.c | retry |= trunc_indirect (inode, offset + (i * addr_per_block), |
i | 250 | fs/ext2/truncate.c | for (i = 0; i < addr_per_block; i++) |
i | 253 | fs/ext2/truncate.c | if (i >= addr_per_block) |
i | 274 | fs/ext2/truncate.c | int i, tmp; |
i | 298 | fs/ext2/truncate.c | for (i = tindirect_block ; i < addr_per_block ; i++) { |
i | 299 | fs/ext2/truncate.c | if (i < 0) |
i | 300 | fs/ext2/truncate.c | i = 0; |
i | 301 | fs/ext2/truncate.c | if (i < tindirect_block) |
i | 303 | fs/ext2/truncate.c | tind = i + (u32 *) tind_bh->b_data; |
i | 305 | fs/ext2/truncate.c | addr_per_block + (i + 1) * addr_per_block * addr_per_block, |
i | 310 | fs/ext2/truncate.c | for (i = 0; i < addr_per_block; i++) |
i | 313 | fs/ext2/truncate.c | if (i >= addr_per_block) |
i | 63 | fs/file_table.c | int i; |
i | 76 | fs/file_table.c | nr_files += i = PAGE_SIZE/sizeof(struct file); |
i | 81 | fs/file_table.c | i--; |
i | 83 | fs/file_table.c | for (; i ; i--) |
i | 101 | fs/file_table.c | int i; |
i | 109 | fs/file_table.c | for (f = first_file, i=0; i < nr_files; i++, f = f->f_next) |
i | 857 | fs/hpfs/hpfs_fs.c | unsigned i, count; |
i | 865 | fs/hpfs/hpfs_fs.c | for (i = 0; i < 8 * 2048; i++) |
i | 866 | fs/hpfs/hpfs_fs.c | count += (test_bit(i, bits) != 0); |
i | 1049 | fs/hpfs/hpfs_fs.c | int i; |
i | 1059 | fs/hpfs/hpfs_fs.c | for (i = 0; i < b->n_used_nodes; i++) { |
i | 1060 | fs/hpfs/hpfs_fs.c | unsigned t = file_secno - n[i].file_secno; |
i | 1061 | fs/hpfs/hpfs_fs.c | if (t < n[i].length) { |
i | 1062 | fs/hpfs/hpfs_fs.c | inode->i_hpfs_file_sec = n[i].file_secno; |
i | 1063 | fs/hpfs/hpfs_fs.c | inode->i_hpfs_disk_sec = n[i].disk_secno; |
i | 1064 | fs/hpfs/hpfs_fs.c | inode->i_hpfs_n_secs = n[i].length; |
i | 1065 | fs/hpfs/hpfs_fs.c | return n[i].disk_secno + t; |
i | 1077 | fs/hpfs/hpfs_fs.c | for (i = 0; i < b->n_used_nodes; i++) { |
i | 1078 | fs/hpfs/hpfs_fs.c | if (file_secno < n[i].file_secno) { |
i | 1080 | fs/hpfs/hpfs_fs.c | anode_secno ano = n[i].down; |
i | 1561 | fs/hpfs/hpfs_fs.c | int i; |
i | 1568 | fs/hpfs/hpfs_fs.c | for (i = 1; de < de_end; i++, de = de_next_de(de)) { |
i | 1569 | fs/hpfs/hpfs_fs.c | if (i == n) |
i | 24 | fs/inode.c | static inline int const hashfn(kdev_t dev, unsigned int i) |
i | 26 | fs/inode.c | return (HASHDEV(dev) ^ i) % NR_IHASH; |
i | 29 | fs/inode.c | static inline struct inode_hash_entry * const hash(kdev_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 | 361 | fs/inode.c | int i; |
i | 365 | fs/inode.c | for(i = 0; i < nr_inodes*2; i++, inode = inode->i_next) { |
i | 422 | fs/inode.c | int i; |
i | 429 | fs/inode.c | for (i = 0; i<nr_inodes; inode = inode->i_next, i++) { |
i | 82 | fs/isofs/dir.c | int i, c; |
i | 84 | fs/isofs/dir.c | for (i = 0; i < len; i++) { |
i | 85 | fs/isofs/dir.c | c = old[i]; |
i | 92 | fs/isofs/dir.c | if (c == '.' && i == len - 3 && old[i + 1] == ';' && old[i + 2] == '1') |
i | 96 | fs/isofs/dir.c | if (c == ';' && i == len - 2 && old[i + 1] == '1') |
i | 103 | fs/isofs/dir.c | new[i] = c; |
i | 105 | fs/isofs/dir.c | return i; |
i | 101 | fs/isofs/file.c | int result, i; |
i | 109 | fs/isofs/file.c | for(i=0;i<(inode->i_size < ISOFS_BUFFER_SIZE(inode) ? inode->i_size : ISOFS_BUFFER_SIZE(inode)); |
i | 110 | fs/isofs/file.c | i++,pnt++){ |
i | 165 | fs/isofs/inode.c | int i; |
i | 173 | fs/isofs/inode.c | i=get_blkfops(MAJOR(dev))->ioctl(&inode_fake, |
i | 179 | fs/isofs/inode.c | printk("isofs.inode: CDROMMULTISESSION: rc=%d\n",i); |
i | 180 | fs/isofs/inode.c | if (i==0) |
i | 186 | fs/isofs/inode.c | if ((i==0)&&(ms_info.xa_flag)) vol_desc_start=ms_info.addr.lba; |
i | 232 | fs/isofs/inode.c | int i = opt.blocksize; |
i | 233 | fs/isofs/inode.c | while (i != 1){ |
i | 235 | fs/isofs/inode.c | i >>=1; |
i | 430 | fs/isofs/inode.c | int i; |
i | 479 | fs/isofs/inode.c | for(i=0; i< raw_inode->name_len[0]; i++) |
i | 480 | fs/isofs/inode.c | if(raw_inode->name[i]=='.' || raw_inode->name[i]==';') |
i | 482 | fs/isofs/inode.c | if(i == raw_inode->name_len[0] || raw_inode->name[i] == ';') |
i | 70 | fs/isofs/namei.c | unsigned int block, i, f_pos, offset, inode_number; |
i | 165 | fs/isofs/namei.c | for (i = 0; i < dlen; i++) { |
i | 166 | fs/isofs/namei.c | c = dpnt[i]; |
i | 168 | fs/isofs/namei.c | if (c == ';' && i == dlen-2 && dpnt[i+1] == '1') { |
i | 173 | fs/isofs/namei.c | de->name[i] = c; |
i | 87 | fs/isofs/symlink.c | int i; |
i | 102 | fs/isofs/symlink.c | i = 0; |
i | 104 | fs/isofs/symlink.c | while (i<buflen && (c = pnt[i])) { |
i | 105 | fs/isofs/symlink.c | i++; |
i | 109 | fs/isofs/symlink.c | return i; |
i | 80 | fs/isofs/util.c | int i; |
i | 82 | fs/isofs/util.c | for (i = 0; i < 4; i++) { |
i | 83 | fs/isofs/util.c | if (p[i] != p[7-i]) { |
i | 99 | fs/isofs/util.c | int crtime, days, i; |
i | 117 | fs/isofs/util.c | for (i = 1; i < month; i++) |
i | 118 | fs/isofs/util.c | days += monlen[i-1]; |
i | 26 | fs/minix/bitmap.c | unsigned i, j, end, sum = 0; |
i | 29 | fs/minix/bitmap.c | for (i=0; (i<numblocks) && numbits; i++) { |
i | 30 | fs/minix/bitmap.c | if (!(bh=map[i])) |
i | 86 | fs/minix/bitmap.c | int i,j; |
i | 94 | fs/minix/bitmap.c | for (i=0 ; i<8 ; i++) |
i | 95 | fs/minix/bitmap.c | if ((bh=sb->u.minix_sb.s_zmap[i]) != NULL) |
i | 98 | fs/minix/bitmap.c | if (i>=8 || !bh || j>=8192) |
i | 105 | fs/minix/bitmap.c | j += i*8192 + sb->u.minix_sb.s_firstdatazone-1; |
i | 169 | fs/minix/bitmap.c | int i,j; |
i | 177 | fs/minix/bitmap.c | for (i=0 ; i<8 ; i++) |
i | 178 | fs/minix/bitmap.c | if ((bh = inode->i_sb->u.minix_sb.s_imap[i]) != NULL) |
i | 191 | fs/minix/bitmap.c | j += i*8192; |
i | 87 | fs/minix/fsync.c | int i; |
i | 90 | fs/minix/fsync.c | for (i = 0; i < 7; i++) { |
i | 91 | fs/minix/fsync.c | rc = sync_block (inode, inode->u.minix_i.i_data + i, wait); |
i | 102 | fs/minix/fsync.c | int i; |
i | 110 | fs/minix/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 112 | fs/minix/fsync.c | ((unsigned short *) ind_bh->b_data) + i, |
i | 126 | fs/minix/fsync.c | int i; |
i | 134 | fs/minix/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 136 | fs/minix/fsync.c | ((unsigned short *) dind_bh->b_data) + i, |
i | 60 | fs/minix/inode.c | int i; |
i | 68 | fs/minix/inode.c | for(i = 0 ; i < MINIX_I_MAP_SLOTS ; i++) |
i | 69 | fs/minix/inode.c | brelse(sb->u.minix_sb.s_imap[i]); |
i | 70 | fs/minix/inode.c | for(i = 0 ; i < MINIX_Z_MAP_SLOTS ; i++) |
i | 71 | fs/minix/inode.c | brelse(sb->u.minix_sb.s_zmap[i]); |
i | 129 | fs/minix/inode.c | int i, block; |
i | 174 | fs/minix/inode.c | for (i=0;i < MINIX_I_MAP_SLOTS;i++) |
i | 175 | fs/minix/inode.c | s->u.minix_sb.s_imap[i] = NULL; |
i | 176 | fs/minix/inode.c | for (i=0;i < MINIX_Z_MAP_SLOTS;i++) |
i | 177 | fs/minix/inode.c | s->u.minix_sb.s_zmap[i] = NULL; |
i | 179 | fs/minix/inode.c | for (i=0 ; i < s->u.minix_sb.s_imap_blocks ; i++) |
i | 180 | fs/minix/inode.c | if ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
i | 184 | fs/minix/inode.c | for (i=0 ; i < s->u.minix_sb.s_zmap_blocks ; i++) |
i | 185 | fs/minix/inode.c | if ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
i | 190 | fs/minix/inode.c | for(i=0;i<MINIX_I_MAP_SLOTS;i++) |
i | 191 | fs/minix/inode.c | brelse(s->u.minix_sb.s_imap[i]); |
i | 192 | fs/minix/inode.c | for(i=0;i<MINIX_Z_MAP_SLOTS;i++) |
i | 193 | fs/minix/inode.c | brelse(s->u.minix_sb.s_zmap[i]); |
i | 259 | fs/minix/inode.c | int i; |
i | 273 | fs/minix/inode.c | i = inode_bmap(inode,7); |
i | 274 | fs/minix/inode.c | if (!i) |
i | 276 | fs/minix/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
i | 279 | fs/minix/inode.c | i = inode_bmap(inode,8); |
i | 280 | fs/minix/inode.c | if (!i) |
i | 282 | fs/minix/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>9); |
i | 283 | fs/minix/inode.c | if (!i) |
i | 285 | fs/minix/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 511); |
i | 154 | fs/minix/namei.c | int i; |
i | 197 | fs/minix/namei.c | for (i = 0; i < info->s_namelen ; i++) |
i | 198 | fs/minix/namei.c | de->name[i] = (i < namelen) ? name[i] : 0; |
i | 551 | fs/minix/namei.c | int i; |
i | 568 | fs/minix/namei.c | i = 0; |
i | 569 | fs/minix/namei.c | while (i < 1023 && (c=*(symname++))) |
i | 570 | fs/minix/namei.c | name_block->b_data[i++] = c; |
i | 571 | fs/minix/namei.c | name_block->b_data[i] = 0; |
i | 574 | fs/minix/namei.c | inode->i_size = i; |
i | 585 | fs/minix/namei.c | i = minix_add_entry(dir, name, len, &bh, &de); |
i | 586 | fs/minix/namei.c | if (i) { |
i | 591 | fs/minix/namei.c | return i; |
i | 86 | fs/minix/symlink.c | int i; |
i | 99 | fs/minix/symlink.c | i = 0; |
i | 100 | fs/minix/symlink.c | while (i<buflen && (c = bh->b_data[i])) { |
i | 101 | fs/minix/symlink.c | i++; |
i | 105 | fs/minix/symlink.c | return i; |
i | 34 | fs/minix/truncate.c | int i, tmp; |
i | 39 | fs/minix/truncate.c | for (i = DIRECT_BLOCK ; i < 7 ; i++) { |
i | 40 | fs/minix/truncate.c | p = i + inode->u.minix_i.i_data; |
i | 44 | fs/minix/truncate.c | if (i < DIRECT_BLOCK) { |
i | 67 | fs/minix/truncate.c | int i, tmp; |
i | 86 | fs/minix/truncate.c | for (i = INDIRECT_BLOCK ; i < 512 ; i++) { |
i | 87 | fs/minix/truncate.c | if (i < 0) |
i | 88 | fs/minix/truncate.c | i = 0; |
i | 89 | fs/minix/truncate.c | if (i < INDIRECT_BLOCK) |
i | 91 | fs/minix/truncate.c | ind = i+(unsigned short *) ind_bh->b_data; |
i | 96 | fs/minix/truncate.c | if (i < INDIRECT_BLOCK) { |
i | 111 | fs/minix/truncate.c | for (i = 0; i < 512; i++) |
i | 114 | fs/minix/truncate.c | if (i >= 512) |
i | 128 | fs/minix/truncate.c | int i, tmp; |
i | 147 | fs/minix/truncate.c | for (i = DINDIRECT_BLOCK ; i < 512 ; i ++) { |
i | 148 | fs/minix/truncate.c | if (i < 0) |
i | 149 | fs/minix/truncate.c | i = 0; |
i | 150 | fs/minix/truncate.c | if (i < DINDIRECT_BLOCK) |
i | 152 | fs/minix/truncate.c | dind = i+(unsigned short *) dind_bh->b_data; |
i | 153 | fs/minix/truncate.c | retry |= trunc_indirect(inode,7+512+(i<<9),dind); |
i | 157 | fs/minix/truncate.c | for (i = 0; i < 512; i++) |
i | 160 | fs/minix/truncate.c | if (i >= 512) |
i | 141 | fs/msdos/buffer.c | int i; |
i | 142 | fs/msdos/buffer.c | for (i=0; i<nbreq; i++){ |
i | 143 | fs/msdos/buffer.c | tmp[i] = bh[i]->b_next; |
i | 69 | fs/msdos/dir.c | int ino,i,i2,last; |
i | 96 | fs/msdos/dir.c | for (i = last = 0; i < 8; i++) { |
i | 97 | fs/msdos/dir.c | if (!(c = de->name[i])) break; |
i | 100 | fs/msdos/dir.c | last = i+1; |
i | 101 | fs/msdos/dir.c | ptname[i] = c; |
i | 103 | fs/msdos/dir.c | i = last; |
i | 104 | fs/msdos/dir.c | ptname[i] = '.'; |
i | 105 | fs/msdos/dir.c | i++; |
i | 110 | fs/msdos/dir.c | last = i+1; |
i | 111 | fs/msdos/dir.c | ptname[i] = c; |
i | 112 | fs/msdos/dir.c | i++; |
i | 114 | fs/msdos/dir.c | if ((i = last) != 0) { |
i | 119 | fs/msdos/dir.c | if (filldir(dirent, bufname, i, oldpos, ino) < 0) { |
i | 131 | fs/msdos/file.c | int i; |
i | 132 | fs/msdos/file.c | for (i=0; i<nb; i++){ |
i | 147 | fs/msdos/file.c | for (i=pre->nblist; i<MSDOS_PREFETCH; i++) pre->bhlist[i] = NULL; |
i | 162 | fs/msdos/file.c | int i; |
i | 257 | fs/msdos/file.c | for (i=0; i<pre.nblist; i++) brelse (pre.bhlist[i]); |
i | 56 | fs/namei.c | int i, error; |
i | 60 | fs/namei.c | i = get_max_filename((unsigned long) filename); |
i | 61 | fs/namei.c | if (i < 0) |
i | 62 | fs/namei.c | return i; |
i | 64 | fs/namei.c | if (!i) { |
i | 66 | fs/namei.c | i = PAGE_SIZE; |
i | 74 | fs/namei.c | while (--i) { |
i | 100 | fs/nfs/dir.c | int i, index = 0; |
i | 111 | fs/nfs/dir.c | i = sizeof (struct nfs_entry)*NFS_READDIR_CACHE_SIZE; |
i | 112 | fs/nfs/dir.c | c_entry = (struct nfs_entry *) kmalloc(i, GFP_KERNEL); |
i | 117 | fs/nfs/dir.c | for (i = 0; i < NFS_READDIR_CACHE_SIZE; i++) { |
i | 118 | fs/nfs/dir.c | c_entry[i].name = (char *) kmalloc(NFS_MAXNAMLEN + 1, |
i | 120 | fs/nfs/dir.c | if (c_entry[i].name == NULL) { |
i | 122 | fs/nfs/dir.c | while (--i>=0) |
i | 123 | fs/nfs/dir.c | kfree(c_entry[i].name); |
i | 135 | fs/nfs/dir.c | for (i = 0; i < c_size; i++) { |
i | 136 | fs/nfs/dir.c | if (filp->f_pos == c_entry[i].cookie) { |
i | 137 | fs/nfs/dir.c | if (i == c_size - 1) { |
i | 138 | fs/nfs/dir.c | if (c_entry[i].eof) |
i | 142 | fs/nfs/dir.c | entry = c_entry + (index = i + 1); |
i | 193 | fs/nfs/dir.c | int i; |
i | 197 | fs/nfs/dir.c | for (i = 0; i < NFS_READDIR_CACHE_SIZE; i++) |
i | 198 | fs/nfs/dir.c | kfree(c_entry[i].name); |
i | 230 | fs/nfs/dir.c | int i; |
i | 232 | fs/nfs/dir.c | for (i = 0; i < NFS_LOOKUP_CACHE_SIZE; i++) { |
i | 233 | fs/nfs/dir.c | entry = nfs_lookup_cache + i; |
i | 297 | fs/nfs/dir.c | int i; |
i | 309 | fs/nfs/dir.c | for (i = 0; i < NFS_LOOKUP_CACHE_SIZE; i++) { |
i | 310 | fs/nfs/dir.c | entry = nfs_lookup_cache + i; |
i | 322 | fs/nfs/dir.c | int i; |
i | 324 | fs/nfs/dir.c | for (i = 0; i < NFS_LOOKUP_CACHE_SIZE; i++) { |
i | 325 | fs/nfs/dir.c | entry = nfs_lookup_cache + i; |
i | 101 | fs/nfs/file.c | int result, hunk, i, n, fs; |
i | 122 | fs/nfs/file.c | for (i = 0; i < READ_CACHE_SIZE; i++) |
i | 123 | fs/nfs/file.c | if ((cache[i].inode_num == inode->i_ino) |
i | 124 | fs/nfs/file.c | && (cache[i].file_pos <= pos) |
i | 125 | fs/nfs/file.c | && (cache[i].file_pos + cache[i].len >= pos + count) |
i | 126 | fs/nfs/file.c | && (abs(jiffies - cache[i].time) < EXPIRE_CACHE)) |
i | 128 | fs/nfs/file.c | if (i < READ_CACHE_SIZE) { |
i | 129 | fs/nfs/file.c | ++cache[i].in_use; |
i | 132 | fs/nfs/file.c | memcpy_tofs(buf, cache[i].buf + pos - cache[i].file_pos, count); |
i | 133 | fs/nfs/file.c | --cache[i].in_use; |
i | 139 | fs/nfs/file.c | for (i = 0; i < count - n; i += n) { |
i | 149 | fs/nfs/file.c | return i + result; |
i | 164 | fs/nfs/file.c | hunk = count - i; |
i | 170 | fs/nfs/file.c | return i + hunk; |
i | 190 | fs/nfs/file.c | return i + hunk; |
i | 196 | fs/nfs/file.c | int result, hunk, i, n, pos; |
i | 213 | fs/nfs/file.c | for (i = 0; i < READ_CACHE_SIZE; i++) |
i | 214 | fs/nfs/file.c | if(cache[i].inode_num == inode->i_ino) |
i | 215 | fs/nfs/file.c | cache[i].time -= EXPIRE_CACHE; |
i | 222 | fs/nfs/file.c | for (i = 0; i < count; i += n) { |
i | 223 | fs/nfs/file.c | hunk = count - i; |
i | 233 | fs/nfs/file.c | i += hunk; |
i | 239 | fs/nfs/file.c | return i; |
i | 40 | fs/nfs/mmap.c | int i; |
i | 54 | fs/nfs/mmap.c | for (i = 0; i < (PAGE_SIZE - clear); i += n) { |
i | 57 | fs/nfs/mmap.c | hunk = PAGE_SIZE - i; |
i | 61 | fs/nfs/mmap.c | pos, hunk, (char *) (page + i), &fattr, 0); |
i | 66 | fs/nfs/mmap.c | i += result; |
i | 83 | fs/nfs/proc.c | int *i; |
i | 85 | fs/nfs/proc.c | while (!(i = (int *)kmalloc(size+NFS_SLACK_SPACE,GFP_NFS))) { |
i | 88 | fs/nfs/proc.c | return i; |
i | 735 | fs/nfs/proc.c | int i; |
i | 755 | fs/nfs/proc.c | for (i = 0; i < count && *p++; i++) { |
i | 764 | fs/nfs/proc.c | eof = (i == count && !*p++ && *p++) |
i | 765 | fs/nfs/proc.c | || (i < count && *p++); |
i | 766 | fs/nfs/proc.c | if (eof && i) |
i | 768 | fs/nfs/proc.c | PRINTK("NFS reply readdir %d %s\n", i, |
i | 770 | fs/nfs/proc.c | status = i; |
i | 828 | fs/nfs/proc.c | int i; |
i | 849 | fs/nfs/proc.c | for (i = 0; i < 16 && i < NGROUPS && current->groups[i] != NOGROUP; i++) |
i | 850 | fs/nfs/proc.c | *p++ = htonl(current->groups[i]); |
i | 851 | fs/nfs/proc.c | *p2 = htonl(i); |
i | 926 | fs/nfs/proc.c | int i; |
i | 928 | fs/nfs/proc.c | for (i = 0; nfs_errtbl[i].stat != -1; i++) { |
i | 929 | fs/nfs/proc.c | if (nfs_errtbl[i].stat == stat) |
i | 930 | fs/nfs/proc.c | return nfs_errtbl[i].errno; |
i | 933 | fs/nfs/proc.c | return nfs_errtbl[i].errno; |
i | 383 | fs/pipe.c | int i,j; |
i | 399 | fs/pipe.c | for(i=0;j<2 && i<NR_OPEN && i<current->rlim[RLIMIT_NOFILE].rlim_cur;i++) |
i | 400 | fs/pipe.c | if (!current->files->fd[i]) { |
i | 401 | fs/pipe.c | current->files->fd[ fd[j]=i ] = f[j]; |
i | 151 | fs/proc/array.c | int i=prof_len; |
i | 153 | fs/proc/array.c | while (i--) |
i | 154 | fs/proc/array.c | prof_buffer[i]=0UL; |
i | 185 | fs/proc/array.c | int i, len; |
i | 188 | fs/proc/array.c | for (i = 0 ; i < NR_IRQS ; i++) |
i | 189 | fs/proc/array.c | sum += kstat.interrupts[i]; |
i | 209 | fs/proc/array.c | for (i = 0 ; i < NR_IRQS ; i++) |
i | 210 | fs/proc/array.c | len += sprintf(buffer + len, " %u", kstat.interrupts[i]); |
i | 254 | fs/proc/array.c | struct sysinfo i; |
i | 256 | fs/proc/array.c | si_meminfo(&i); |
i | 257 | fs/proc/array.c | si_swapinfo(&i); |
i | 261 | fs/proc/array.c | i.totalram, i.totalram-i.freeram, i.freeram, i.sharedram, i.bufferram, |
i | 262 | fs/proc/array.c | i.totalswap, i.totalswap-i.freeswap, i.freeswap); |
i | 400 | fs/proc/array.c | int i,tty_pgrp; |
i | 423 | fs/proc/array.c | for(i=0; i<32; ++i) { |
i | 424 | fs/proc/array.c | switch((unsigned long) tsk->sig->action[i].sa_handler) { |
i | 621 | fs/proc/array.c | int i; |
i | 634 | fs/proc/array.c | for (map = (*p)->mm->mmap, i = 0; map && (i < lineno); map = map->vm_next, i++) |
i | 675 | fs/proc/array.c | i = len-column; |
i | 676 | fs/proc/array.c | if (i > count) |
i | 677 | fs/proc/array.c | i = count; |
i | 678 | fs/proc/array.c | memcpy_tofs(destptr, line+column, i); |
i | 679 | fs/proc/array.c | destptr += i; count -= i; |
i | 680 | fs/proc/array.c | column += i; |
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 | 126 | fs/proc/fd.c | unsigned long i,j; |
i | 159 | fs/proc/fd.c | i = fd; |
i | 162 | fs/proc/fd.c | buf[j] = '0' + (i % 10); |
i | 163 | fs/proc/fd.c | i /= 10; |
i | 164 | fs/proc/fd.c | } while (i); |
i | 137 | fs/proc/inode.c | int i; |
i | 151 | fs/proc/inode.c | for (i = 0; i < NR_TASKS ; i++) |
i | 152 | fs/proc/inode.c | if ((p = task[i]) && (p->pid == pid)) |
i | 154 | fs/proc/inode.c | if (!p || i >= NR_TASKS) |
i | 159 | fs/proc/inode.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 160 | fs/proc/inode.c | if (task[i]) |
i | 69 | fs/proc/link.c | int i, fd; |
i | 83 | fs/proc/link.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 84 | fs/proc/link.c | if ((p = task[i]) && p->pid == pid) |
i | 87 | fs/proc/link.c | if ((i >= NR_TASKS) || |
i | 107 | fs/proc/link.c | int i, error; |
i | 121 | fs/proc/link.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 122 | fs/proc/link.c | if ((p = task[i]) && p->pid == pid) |
i | 124 | fs/proc/link.c | if (i >= NR_TASKS) { |
i | 182 | fs/proc/link.c | int i; |
i | 190 | fs/proc/link.c | i = proc_follow_link(NULL, inode, 0, 0, &inode); |
i | 191 | fs/proc/link.c | if (i) |
i | 192 | fs/proc/link.c | return i; |
i | 198 | fs/proc/link.c | i = sprintf(buf,"[%04x]:%u", dev, ino); |
i | 199 | fs/proc/link.c | if (buflen > i) |
i | 200 | fs/proc/link.c | buflen = i; |
i | 201 | fs/proc/link.c | i = 0; |
i | 202 | fs/proc/link.c | while (i < buflen) |
i | 203 | fs/proc/link.c | put_user(buf[i++],buffer++); |
i | 204 | fs/proc/link.c | return i; |
i | 62 | fs/proc/mem.c | int i; |
i | 69 | fs/proc/mem.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 70 | fs/proc/mem.c | if (task[i] && task[i]->pid == pid) { |
i | 71 | fs/proc/mem.c | tsk = task[i]; |
i | 104 | fs/proc/mem.c | i = PAGE_SIZE-(addr & ~PAGE_MASK); |
i | 105 | fs/proc/mem.c | if (i > count) |
i | 106 | fs/proc/mem.c | i = count; |
i | 107 | fs/proc/mem.c | memcpy_tofs(tmp, page, i); |
i | 108 | fs/proc/mem.c | addr += i; |
i | 109 | fs/proc/mem.c | tmp += i; |
i | 110 | fs/proc/mem.c | count -= i; |
i | 127 | fs/proc/mem.c | int i; |
i | 135 | fs/proc/mem.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 136 | fs/proc/mem.c | if (task[i] && task[i]->pid == pid) { |
i | 137 | fs/proc/mem.c | tsk = task[i]; |
i | 168 | fs/proc/mem.c | i = PAGE_SIZE-(addr & ~PAGE_MASK); |
i | 169 | fs/proc/mem.c | if (i > count) |
i | 170 | fs/proc/mem.c | i = count; |
i | 171 | fs/proc/mem.c | memcpy_fromfs(page, tmp, i); |
i | 172 | fs/proc/mem.c | addr += i; |
i | 173 | fs/proc/mem.c | tmp += i; |
i | 174 | fs/proc/mem.c | count -= i; |
i | 212 | fs/proc/mem.c | int i; |
i | 217 | fs/proc/mem.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 218 | fs/proc/mem.c | if (task[i] && task[i]->pid == (inode->i_ino >> 16)) { |
i | 219 | fs/proc/mem.c | tsk = task[i]; |
i | 378 | fs/proc/root.c | int i, ino, retval; |
i | 402 | fs/proc/root.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 403 | fs/proc/root.c | if (task[i] && task[i]->pid == pid) |
i | 405 | fs/proc/root.c | if (!pid || i >= NR_TASKS) { |
i | 432 | fs/proc/root.c | int i; |
i | 440 | fs/proc/root.c | i = filp->f_pos; |
i | 441 | fs/proc/root.c | switch (i) { |
i | 443 | fs/proc/root.c | if (filldir(dirent, ".", 1, i, ino) < 0) |
i | 445 | fs/proc/root.c | i++; |
i | 449 | fs/proc/root.c | if (filldir(dirent, "..", 2, i, de->parent->low_ino) < 0) |
i | 451 | fs/proc/root.c | i++; |
i | 457 | fs/proc/root.c | i -= 2; |
i | 461 | fs/proc/root.c | if (!i) |
i | 464 | fs/proc/root.c | i--; |
i | 484 | fs/proc/root.c | unsigned long i,j; |
i | 501 | fs/proc/root.c | i = pid; |
i | 504 | fs/proc/root.c | buf[j] = '0' + (i % 10); |
i | 505 | fs/proc/root.c | i /= 10; |
i | 506 | fs/proc/root.c | } while (i); |
i | 92 | fs/select.c | int i,j; |
i | 96 | fs/select.c | i = j * __NFDBITS; |
i | 97 | fs/select.c | if (i >= n) |
i | 100 | fs/select.c | for ( ; set ; i++,set >>= 1) { |
i | 101 | fs/select.c | if (i >= n) |
i | 105 | fs/select.c | if (!current->files->fd[i]) |
i | 107 | fs/select.c | if (!current->files->fd[i]->f_inode) |
i | 109 | fs/select.c | max = i; |
i | 125 | fs/select.c | for (i = 0 ; i < n ; i++) { |
i | 126 | fs/select.c | if (FD_ISSET(i,in) && check(SEL_IN,wait,current->files->fd[i])) { |
i | 127 | fs/select.c | FD_SET(i, res_in); |
i | 131 | fs/select.c | if (FD_ISSET(i,out) && check(SEL_OUT,wait,current->files->fd[i])) { |
i | 132 | fs/select.c | FD_SET(i, res_out); |
i | 136 | fs/select.c | if (FD_ISSET(i,ex) && check(SEL_EX,wait,current->files->fd[i])) { |
i | 137 | fs/select.c | FD_SET(i, res_ex); |
i | 159 | fs/select.c | int error, i; |
i | 169 | fs/select.c | for (i = __FDSET_INTS; i > 0; i--) { |
i | 182 | fs/select.c | int i; |
i | 186 | fs/select.c | for (i = __FDSET_INTS; i > 0; i--) { |
i | 212 | fs/select.c | int i; |
i | 222 | fs/select.c | if ((i = get_fd_set(n, inp, &in)) || |
i | 223 | fs/select.c | (i = get_fd_set(n, outp, &out)) || |
i | 224 | fs/select.c | (i = get_fd_set(n, exp, &ex))) return i; |
i | 227 | fs/select.c | i = verify_area(VERIFY_WRITE, tvp, sizeof(*tvp)); |
i | 228 | fs/select.c | if (i) |
i | 229 | fs/select.c | return i; |
i | 236 | fs/select.c | i = do_select(n, &in, &out, &ex, &res_in, &res_out, &res_ex); |
i | 247 | fs/select.c | if (i < 0) |
i | 248 | fs/select.c | return i; |
i | 249 | fs/select.c | if (!i && (current->signal & ~current->blocked)) |
i | 254 | fs/select.c | return i; |
i | 165 | fs/smbfs/dir.c | int result, i = 0; |
i | 181 | fs/smbfs/dir.c | i = sizeof (struct smb_dirent) * SMB_READDIR_CACHE_SIZE; |
i | 182 | fs/smbfs/dir.c | c_entry = (struct smb_dirent *) smb_kmalloc(i, GFP_KERNEL); |
i | 187 | fs/smbfs/dir.c | for (i = 0; i < SMB_READDIR_CACHE_SIZE; i++) { |
i | 188 | fs/smbfs/dir.c | c_entry[i].path = |
i | 191 | fs/smbfs/dir.c | if (c_entry[i].path == NULL) { |
i | 193 | fs/smbfs/dir.c | while (--i>=0) |
i | 194 | fs/smbfs/dir.c | kfree(c_entry[i].path); |
i | 207 | fs/smbfs/dir.c | for (i = 0; i < c_size; i++) { |
i | 208 | fs/smbfs/dir.c | if (filp->f_pos == c_entry[i].f_pos) { |
i | 209 | fs/smbfs/dir.c | entry = &c_entry[i]; |
i | 210 | fs/smbfs/dir.c | c_last_returned_index = i; |
i | 211 | fs/smbfs/dir.c | index = i; |
i | 237 | fs/smbfs/dir.c | for (i = 0; i < c_size; i++) { |
i | 242 | fs/smbfs/dir.c | str_upper(c_entry[i].path); break; |
i | 244 | fs/smbfs/dir.c | str_lower(c_entry[i].path); break; |
i | 324 | fs/smbfs/dir.c | int i; |
i | 331 | fs/smbfs/dir.c | for (i = 0; i < SMB_READDIR_CACHE_SIZE; i++) { |
i | 332 | fs/smbfs/dir.c | smb_kfree_s(c_entry[i].path, NAME_MAX + 1); |
i | 539 | fs/smbfs/dir.c | smb_free_inode_info(struct smb_inode_info *i) |
i | 541 | fs/smbfs/dir.c | if (i == NULL) { |
i | 546 | fs/smbfs/dir.c | i->state = INODE_CACHED; |
i | 547 | fs/smbfs/dir.c | while ((i->nused == 0) && (i->state == INODE_CACHED)) { |
i | 548 | fs/smbfs/dir.c | struct smb_inode_info *dir = i->dir; |
i | 550 | fs/smbfs/dir.c | i->next->prev = i->prev; |
i | 551 | fs/smbfs/dir.c | i->prev->next = i->next; |
i | 553 | fs/smbfs/dir.c | smb_kfree_s(i->finfo.path, i->finfo.len+1); |
i | 554 | fs/smbfs/dir.c | smb_kfree_s(i, sizeof(struct smb_inode_info)); |
i | 559 | fs/smbfs/dir.c | i = dir; |
i | 726 | fs/smbfs/dir.c | int i; |
i | 728 | fs/smbfs/dir.c | i = first; |
i | 731 | fs/smbfs/dir.c | i, c_entry[i].path); |
i | 732 | fs/smbfs/dir.c | if (strcmp(c_entry[i].path, __name) == 0) { |
i | 734 | fs/smbfs/dir.c | finfo = c_entry[i]; |
i | 739 | fs/smbfs/dir.c | i = (i + 1) % c_size; |
i | 741 | fs/smbfs/dir.c | i, c_entry[i].path); |
i | 742 | fs/smbfs/dir.c | } while (i != first); |
i | 33 | fs/smbfs/file.c | smb_make_open(struct inode *i, int right) |
i | 38 | fs/smbfs/file.c | if (i == NULL) { |
i | 43 | fs/smbfs/file.c | dirent = &(SMB_INOP(i)->finfo); |
i | 49 | fs/smbfs/file.c | open_result = smb_proc_open(SMB_SERVER(i), |
i | 40 | fs/smbfs/mmap.c | int i; |
i | 60 | fs/smbfs/mmap.c | for (i = 0; i < (PAGE_SIZE - clear); i += n) { |
i | 63 | fs/smbfs/mmap.c | hunk = PAGE_SIZE - i; |
i | 71 | fs/smbfs/mmap.c | (char *) (page + i), 0); |
i | 77 | fs/smbfs/mmap.c | i += result; |
i | 353 | fs/smbfs/proc.c | int i, j, len; |
i | 373 | fs/smbfs/proc.c | for (i = 0; i < len; i += 10) { |
i | 374 | fs/smbfs/proc.c | printk("%03d:", i); |
i | 375 | fs/smbfs/proc.c | for (j = i; j < i+10; j++) |
i | 381 | fs/smbfs/proc.c | for (j = i; j < i+10; j++) |
i | 949 | fs/smbfs/proc.c | int i; |
i | 1033 | fs/smbfs/proc.c | for (i = 0; i < count; i ++) { |
i | 1039 | fs/smbfs/proc.c | total_count, i, fpos); |
i | 1155 | fs/smbfs/proc.c | int i; |
i | 1319 | fs/smbfs/proc.c | for (i = 0; i < ff_searchcount; i ++) { |
i | 1326 | fs/smbfs/proc.c | total_count, i, fpos); |
i | 1612 | fs/smbfs/proc.c | int i, plength; |
i | 1681 | fs/smbfs/proc.c | for (i = 0; prots[i].name != NULL; i++) { |
i | 1682 | fs/smbfs/proc.c | plength += strlen(prots[i].name) + 2; |
i | 1689 | fs/smbfs/proc.c | for (i = 0; prots[i].name != NULL; i++) { |
i | 1690 | fs/smbfs/proc.c | p = smb_encode_dialect(p,prots[i].name, strlen(prots[i].name)); |
i | 1704 | fs/smbfs/proc.c | p = smb_decode_word(p, (word *)&i); |
i | 1705 | fs/smbfs/proc.c | server->protocol = prots[i].prot; |
i | 1708 | fs/smbfs/proc.c | prots[i].name); |
i | 1958 | fs/smbfs/proc.c | int i,j; |
i | 1961 | fs/smbfs/proc.c | for (i=0; err_classes[i].class; i++) { |
i | 1962 | fs/smbfs/proc.c | if (err_classes[i].code != class) |
i | 1964 | fs/smbfs/proc.c | if (!err_classes[i].err_msgs) { |
i | 1965 | fs/smbfs/proc.c | printk("%s - %d", err_classes[i].class, num); |
i | 1969 | fs/smbfs/proc.c | err = err_classes[i].err_msgs; |
i | 1974 | fs/smbfs/proc.c | err_classes[i].class, err[j].name, |
i | 335 | fs/super.c | int i; |
i | 337 | fs/super.c | for (i = 1; i < 256; i++) { |
i | 338 | fs/super.c | if (!set_bit(i,unnamed_dev_in_use)) |
i | 339 | fs/super.c | return MKDEV(UNNAMED_MAJOR, i); |
i | 545 | fs/super.c | int i; |
i | 556 | fs/super.c | i = vma->vm_end - (unsigned long) data; |
i | 557 | fs/super.c | if (PAGE_SIZE <= (unsigned long) i) |
i | 558 | fs/super.c | i = PAGE_SIZE-1; |
i | 562 | fs/super.c | memcpy_fromfs((void *) page,data,i); |
i | 236 | fs/sysv/balloc.c | int i; |
i | 242 | fs/sysv/balloc.c | for (i = *sb->sv_sb_flc_count ; /* i > 0 */ ; ) { |
i | 243 | fs/sysv/balloc.c | block = sb->sv_sb_flc_blocks[--i]; |
i | 249 | fs/sysv/balloc.c | if (i == 0) |
i | 294 | fs/sysv/balloc.c | for (i = *flc_count ; /* i > 0 */ ; ) { |
i | 295 | fs/sysv/balloc.c | block = flc_blocks[--i]; |
i | 301 | fs/sysv/balloc.c | if (i == 0) |
i | 73 | fs/sysv/dir.c | unsigned int offset,i; |
i | 104 | fs/sysv/dir.c | i = strnlen(sde.name, SYSV_NAMELEN); |
i | 105 | fs/sysv/dir.c | if (filldir(dirent, sde.name, i, filp->f_pos, sde.inode) < 0) { |
i | 95 | fs/sysv/fsync.c | int i; |
i | 98 | fs/sysv/fsync.c | for (i = 0; i < 10; i++) { |
i | 99 | fs/sysv/fsync.c | rc = sync_block (inode, inode->u.sysv_i.i_data + i, 0, wait); |
i | 110 | fs/sysv/fsync.c | int i; |
i | 120 | fs/sysv/fsync.c | for (i = 0; i < sb->sv_ind_per_block; i++) { |
i | 122 | fs/sysv/fsync.c | ((unsigned long *) ind_bh->b_data) + i, sb->sv_convert, |
i | 136 | fs/sysv/fsync.c | int i; |
i | 146 | fs/sysv/fsync.c | for (i = 0; i < sb->sv_ind_per_block; i++) { |
i | 148 | fs/sysv/fsync.c | ((unsigned long *) dind_bh->b_data) + i, sb->sv_convert, |
i | 162 | fs/sysv/fsync.c | int i; |
i | 172 | fs/sysv/fsync.c | for (i = 0; i < sb->sv_ind_per_block; i++) { |
i | 174 | fs/sysv/fsync.c | ((unsigned long *) tind_bh->b_data) + i, sb->sv_convert, |
i | 42 | fs/sysv/ialloc.c | static inline sysv_ino_t * sv_sb_fic_inode (struct super_block * sb, unsigned int i) |
i | 45 | fs/sysv/ialloc.c | return &sb->sv_sb_fic_inodes[i]; |
i | 48 | fs/sysv/ialloc.c | unsigned int offset = offsetof(struct xenix_super_block, s_inode[i]); |
i | 113 | fs/sysv/ialloc.c | int i,j,ino,block; |
i | 131 | 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 | 138 | fs/sysv/ialloc.c | for (; j < sb->sv_inodes_per_block && i < sb->sv_fic_size; ino++, j++, raw_inode++) { |
i | 140 | fs/sysv/ialloc.c | *sv_sb_fic_inode(sb,i++) = ino; |
i | 144 | fs/sysv/ialloc.c | if (i == 0) { |
i | 149 | fs/sysv/ialloc.c | *sb->sv_sb_fic_count = i; |
i | 385 | fs/sysv/inode.c | int i; |
i | 386 | fs/sysv/inode.c | for (i = 0; i < sizeof(offsets)/sizeof(offsets[0]); i++) |
i | 387 | fs/sysv/inode.c | if ((bh = bread(dev, offsets[i], BLOCK_SIZE)) != NULL) { |
i | 390 | fs/sysv/inode.c | sb->sv_block_base = offsets[i] << sb->sv_block_size_ratio_bits; |
i | 394 | fs/sysv/inode.c | sb->sv_block_base = offsets[i] << sb->sv_block_size_ratio_bits; |
i | 587 | fs/sysv/inode.c | int i; |
i | 595 | fs/sysv/inode.c | i = inode_bmap(sb,inode,10); |
i | 596 | fs/sysv/inode.c | if (!i) |
i | 598 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 603 | fs/sysv/inode.c | i = inode_bmap(sb,inode,11); |
i | 604 | fs/sysv/inode.c | if (!i) |
i | 606 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 607 | fs/sysv/inode.c | i = block_bmap(sb, bh, block >> sb->sv_ind_per_block_bits, convert); |
i | 608 | fs/sysv/inode.c | if (!i) |
i | 610 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 615 | fs/sysv/inode.c | i = inode_bmap(sb,inode,12); |
i | 616 | fs/sysv/inode.c | if (!i) |
i | 618 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 619 | fs/sysv/inode.c | i = block_bmap(sb, bh, block >> sb->sv_ind_per_block_2_bits, convert); |
i | 620 | fs/sysv/inode.c | if (!i) |
i | 622 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 623 | fs/sysv/inode.c | i = block_bmap(sb, bh, (block >> sb->sv_ind_per_block_bits) & sb->sv_ind_per_block_1,convert); |
i | 624 | fs/sysv/inode.c | if (!i) |
i | 626 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 992 | fs/sysv/inode.c | int i; |
i | 994 | fs/sysv/inode.c | for (i = 0; i < 3; i++) |
i | 995 | fs/sysv/inode.c | register_filesystem(&sysv_fs_type[i]); |
i | 1002 | fs/sysv/inode.c | int i; |
i | 1004 | fs/sysv/inode.c | for (i = 0; i < 3; i++) |
i | 1005 | fs/sysv/inode.c | unregister_filesystem(&sysv_fs_type[i]); |
i | 151 | fs/sysv/namei.c | int i; |
i | 192 | fs/sysv/namei.c | for (i = 0; i < SYSV_NAMELEN ; i++) |
i | 193 | fs/sysv/namei.c | de->name[i] = (i < namelen) ? name[i] : 0; |
i | 543 | fs/sysv/namei.c | int i; |
i | 563 | fs/sysv/namei.c | i = 0; |
i | 564 | fs/sysv/namei.c | while (i < sb->sv_block_size_1 && (c = *(symname++))) |
i | 565 | fs/sysv/namei.c | name_block_data[i++] = c; |
i | 566 | fs/sysv/namei.c | name_block_data[i] = 0; |
i | 569 | fs/sysv/namei.c | inode->i_size = i; |
i | 580 | fs/sysv/namei.c | i = sysv_add_entry(dir, name, len, &bh, &de); |
i | 581 | fs/sysv/namei.c | if (i) { |
i | 586 | fs/sysv/namei.c | return i; |
i | 93 | fs/sysv/symlink.c | int i; |
i | 107 | fs/sysv/symlink.c | i = 0; |
i | 108 | fs/sysv/symlink.c | while (i<buflen && (c = bh_data[i])) { |
i | 109 | fs/sysv/symlink.c | i++; |
i | 113 | fs/sysv/symlink.c | return i; |
i | 47 | fs/sysv/truncate.c | unsigned int i; |
i | 55 | 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 | 56 | fs/sysv/truncate.c | p = inode->u.sysv_i.i_data + i; |
i | 61 | fs/sysv/truncate.c | if ((i << sb->sv_block_size_bits) < inode->i_size) { |
i | 83 | fs/sysv/truncate.c | unsigned int i; |
i | 107 | fs/sysv/truncate.c | i = 0; |
i | 109 | fs/sysv/truncate.c | i = (inode->i_size - offset + sb->sv_block_size_1) >> sb->sv_block_size_bits; |
i | 110 | fs/sysv/truncate.c | for (; i < sb->sv_ind_per_block; i++) { |
i | 111 | fs/sysv/truncate.c | ind = ((sysv_zone_t *) indbh->b_data) + i; |
i | 118 | fs/sysv/truncate.c | if ((i << sb->sv_block_size_bits) + offset < inode->i_size) { |
i | 132 | fs/sysv/truncate.c | for (i = 0; i < sb->sv_ind_per_block; i++) |
i | 133 | fs/sysv/truncate.c | if (((sysv_zone_t *) indbh->b_data)[i]) |
i | 152 | fs/sysv/truncate.c | unsigned int i; |
i | 174 | fs/sysv/truncate.c | i = 0; |
i | 176 | 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 | 177 | fs/sysv/truncate.c | for (; i < sb->sv_ind_per_block; i++) { |
i | 178 | fs/sysv/truncate.c | ind = ((sysv_zone_t *) indbh->b_data) + i; |
i | 184 | fs/sysv/truncate.c | retry |= trunc_indirect(inode,offset+(i<<sb->sv_ind_per_block_bits),ind,sb->sv_convert,&indbh->b_dirt); |
i | 186 | fs/sysv/truncate.c | for (i = 0; i < sb->sv_ind_per_block; i++) |
i | 187 | fs/sysv/truncate.c | if (((sysv_zone_t *) indbh->b_data)[i]) |
i | 206 | fs/sysv/truncate.c | unsigned int i; |
i | 228 | fs/sysv/truncate.c | i = 0; |
i | 230 | 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 | 231 | fs/sysv/truncate.c | for (; i < sb->sv_ind_per_block; i++) { |
i | 232 | fs/sysv/truncate.c | ind = ((sysv_zone_t *) indbh->b_data) + i; |
i | 238 | 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 | 240 | fs/sysv/truncate.c | for (i = 0; i < sb->sv_ind_per_block; i++) |
i | 241 | fs/sysv/truncate.c | if (((sysv_zone_t *) indbh->b_data)[i]) |
i | 40 | fs/umsdos/check.c | int i; |
i | 41 | fs/umsdos/check.c | for (i = 0 ; i < PTRS_PER_PAGE ; i++,page_dir++){ |
i | 45 | fs/umsdos/check.c | printk ("|%d:%08lx| ",i, page_dir->pgd); |
i | 177 | fs/umsdos/mangle.c | int i; |
i | 180 | fs/umsdos/mangle.c | for (i=0; i<=32; i++) lkp[i] = '#'; |
i | 181 | fs/umsdos/mangle.c | for (i=33; i<'A'; i++) lkp[i] = (char)i; |
i | 182 | fs/umsdos/mangle.c | for (i='A'; i<='Z'; i++) lkp[i] = (char)(i+('a'-'A')); |
i | 183 | fs/umsdos/mangle.c | for (i='Z'+1; i<127; i++) lkp[i] = (char)i; |
i | 184 | fs/umsdos/mangle.c | for (i=128; i<256; i++) lkp[i] = '#'; |
i | 286 | fs/umsdos/mangle.c | int i; |
i | 294 | fs/umsdos/mangle.c | for (i=0; i<msdos_len; i++, pt++) *pt = lkp[(unsigned char)(*pt)]; |
i | 357 | fs/umsdos/mangle.c | int i; |
i | 358 | fs/umsdos/mangle.c | for (i=start_ind_dev[base_len-1]; i<start_ind_dev[base_len]; i++){ |
i | 359 | fs/umsdos/mangle.c | if (memcmp(info->fake.fname,tbdev[i],base_len)==0){ |
i | 453 | fs/umsdos/mangle.c | int i,rold,rnew; |
i | 455 | fs/umsdos/mangle.c | for (i=0; i<sizeof(tb)/sizeof(tb[0]); i++){ |
i | 456 | fs/umsdos/mangle.c | struct MANG_TEST *pttb = tb+i; |
i | 471 | fs/umsdos/mangle.c | for (i=0; i<UMSDOS_MAXNAME ; i++){ |
i | 472 | fs/umsdos/mangle.c | rnew=umsdos_evalrecsize (i); |
i | 473 | fs/umsdos/mangle.c | rold=umsdos_evalrecsize_old (i); |
i | 474 | fs/umsdos/mangle.c | if (!(i%UMSDOS_REC_SIZE)){ |
i | 475 | fs/umsdos/mangle.c | printf ("\n%d:\t",i); |
i | 478 | fs/umsdos/mangle.c | printf ("**** %d newres: %d != %d \n", i, rnew, rold); |
i | 40 | fs/xiafs/bitmap.c | int end, i, j, tmp; |
i | 47 | fs/xiafs/bitmap.c | i=start_bit >> 5; |
i | 48 | fs/xiafs/bitmap.c | if ( (tmp=(~bmap[i]) & (0xffffffff << (start_bit & 31))) ) |
i | 50 | fs/xiafs/bitmap.c | while (++i < end) |
i | 51 | fs/xiafs/bitmap.c | if (~bmap[i]) { |
i | 52 | fs/xiafs/bitmap.c | tmp=~bmap[i]; |
i | 55 | fs/xiafs/bitmap.c | if ( !(tmp=~bmap[i] & ((1 << (end_bit & 31)) -1)) ) |
i | 61 | fs/xiafs/bitmap.c | if (set_bit(j,bmap+i)) { |
i | 62 | fs/xiafs/bitmap.c | start_bit=j + (i << 5) + 1; |
i | 66 | fs/xiafs/bitmap.c | return j + (i << 5); |
i | 71 | fs/xiafs/bitmap.c | register int i; |
i | 75 | fs/xiafs/bitmap.c | for (i= bh->b_size >> 2; i-- > 0; ) |
i | 83 | fs/xiafs/bitmap.c | int i; |
i | 87 | fs/xiafs/bitmap.c | for (i=pos; i > 0; i--) { |
i | 88 | fs/xiafs/bitmap.c | bmap[i]=bmap[i-1]; |
i | 89 | fs/xiafs/bitmap.c | bznr[i]=bznr[i-1]; |
i | 116 | fs/xiafs/bitmap.c | int z_nr, i; |
i | 126 | fs/xiafs/bitmap.c | for (i=0; i < slots; i++) |
i | 127 | fs/xiafs/bitmap.c | if (bznr[i]==z_nr) |
i | 129 | fs/xiafs/bitmap.c | if (i < slots) { /* cache hit */ |
i | 131 | fs/xiafs/bitmap.c | *not_que=i; |
i | 132 | fs/xiafs/bitmap.c | return bmap_buf[i]; |
i | 134 | fs/xiafs/bitmap.c | que(bmap_buf, bznr, i); |
i | 346 | fs/xiafs/bitmap.c | int i, tmp; |
i | 350 | fs/xiafs/bitmap.c | for (i=bh->b_size; i-- > 0; ) { |
i | 351 | fs/xiafs/bitmap.c | tmp=bh->b_data[i]; |
i | 360 | fs/xiafs/bitmap.c | int izones, i, not_que; |
i | 365 | fs/xiafs/bitmap.c | for (i=0; i < izones; i++) { |
i | 366 | fs/xiafs/bitmap.c | bh=get_imap_zone(sb, i << XIAFS_BITS_PER_Z_BITS(sb), ¬_que); |
i | 372 | fs/xiafs/bitmap.c | i=izones << XIAFS_BITS_PER_Z_BITS(sb); |
i | 373 | fs/xiafs/bitmap.c | return i - sum; |
i | 379 | fs/xiafs/bitmap.c | int zzones, i, not_que; |
i | 384 | fs/xiafs/bitmap.c | for (i=0; i < zzones; i++) { |
i | 385 | fs/xiafs/bitmap.c | bh=get_zmap_zone(sb, i << XIAFS_BITS_PER_Z_BITS(sb), ¬_que); |
i | 391 | fs/xiafs/bitmap.c | i=zzones << XIAFS_BITS_PER_Z_BITS(sb); |
i | 392 | fs/xiafs/bitmap.c | return i - sum; |
i | 72 | fs/xiafs/dir.c | u_int offset, i; |
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 | 88 | fs/xiafs/fsync.c | int i; |
i | 91 | fs/xiafs/fsync.c | for (i = 0; i < 8; i++) { |
i | 92 | fs/xiafs/fsync.c | rc = sync_block (inode, inode->u.ext_i.i_data + i, wait); |
i | 103 | fs/xiafs/fsync.c | int i; |
i | 111 | fs/xiafs/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 113 | fs/xiafs/fsync.c | ((unsigned long *) ind_bh->b_data) + i, |
i | 127 | fs/xiafs/fsync.c | int i; |
i | 135 | fs/xiafs/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 137 | 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; |
i | 124 | fs/xiafs/inode.c | for (i=0;i < _XIAFS_IMAP_SLOTS;i++) { |
i | 125 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_buf[i] = NULL; |
i | 126 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_iznr[i] = -1; |
i | 128 | fs/xiafs/inode.c | for (i=0;i < _XIAFS_ZMAP_SLOTS;i++) { |
i | 129 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_buf[i] = NULL; |
i | 130 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_zznr[i] = -1; |
i | 137 | fs/xiafs/inode.c | for (i=0 ; i < s->u.xiafs_sb.s_imap_zones ; i++) { |
i | 138 | fs/xiafs/inode.c | if (!(s->u.xiafs_sb.s_imap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s)))) |
i | 140 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_iznr[i]=i; |
i | 147 | fs/xiafs/inode.c | for (i=0 ; i < s->u.xiafs_sb.s_zmap_zones ; i++) { |
i | 148 | fs/xiafs/inode.c | if (!(s->u.xiafs_sb.s_zmap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s)))) |
i | 150 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_zznr[i]=i; |
i | 164 | fs/xiafs/inode.c | for(i=0; i < _XIAFS_IMAP_SLOTS; i++) |
i | 165 | fs/xiafs/inode.c | brelse(s->u.xiafs_sb.s_imap_buf[i]); |
i | 166 | fs/xiafs/inode.c | for(i=0; i < _XIAFS_ZMAP_SLOTS; i++) |
i | 167 | 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 | 37 | fs/xiafs/namei.c | int i; |
i | 46 | fs/xiafs/namei.c | for (i=0; i < len; i++) |
i | 47 | fs/xiafs/namei.c | if (*name++ != dep->d_name[i]) |
i | 64 | fs/xiafs/namei.c | int i, zones, pos; |
i | 79 | fs/xiafs/namei.c | for (i=0; i < zones; i++ ) { |
i | 80 | fs/xiafs/namei.c | bh = xiafs_bread(inode, i, 0); |
i | 84 | fs/xiafs/namei.c | if (!i && (dep->d_rec_len != 12 || !dep->d_ino || |
i | 161 | fs/xiafs/namei.c | int i, pos, offset; |
i | 210 | fs/xiafs/namei.c | i=RNDUP4(de->d_name_len)+8; |
i | 212 | fs/xiafs/namei.c | de=(struct xiafs_direct *)(i+(u_char *)de_pre); |
i | 214 | fs/xiafs/namei.c | de->d_rec_len=de_pre->d_rec_len-i; |
i | 215 | fs/xiafs/namei.c | de_pre->d_rec_len=i; |
i | 411 | fs/xiafs/namei.c | int i, zones, offset; |
i | 421 | fs/xiafs/namei.c | for (i=0; i < zones; i++) { |
i | 422 | fs/xiafs/namei.c | bh = xiafs_bread(inode, i, 0); |
i | 423 | fs/xiafs/namei.c | if (!i) { |
i | 594 | fs/xiafs/namei.c | int i; |
i | 617 | fs/xiafs/namei.c | for (i = 0; i < BLOCK_SIZE-1 && (c=*symname++); i++) |
i | 618 | fs/xiafs/namei.c | name_block->b_data[i] = c; |
i | 619 | fs/xiafs/namei.c | name_block->b_data[i] = 0; |
i | 622 | fs/xiafs/namei.c | inode->i_size = i; |
i | 54 | fs/xiafs/symlink.c | int i; |
i | 71 | fs/xiafs/symlink.c | for (i=0; i < buflen && (c=bh->b_data[i]); i++) |
i | 73 | fs/xiafs/symlink.c | if (i < buflen-1) |
i | 76 | fs/xiafs/symlink.c | return i; |
i | 46 | fs/xiafs/truncate.c | int i, tmp; |
i | 50 | fs/xiafs/truncate.c | for (i = DT_ZONE ; i < 8 ; i++) { |
i | 51 | fs/xiafs/truncate.c | if (i < DT_ZONE) |
i | 53 | fs/xiafs/truncate.c | lp=i + inode->u.xiafs_i.i_zone; |
i | 57 | fs/xiafs/truncate.c | if (i < DT_ZONE) { |
i | 80 | fs/xiafs/truncate.c | int i, tmp; |
i | 96 | fs/xiafs/truncate.c | for (i = INDT_ZONE<0?0:INDT_ZONE; i < XIAFS_ADDRS_PER_Z(inode->i_sb); i++) { |
i | 97 | fs/xiafs/truncate.c | if (i < INDT_ZONE) |
i | 99 | fs/xiafs/truncate.c | indp = i+(u_long *) ind_bh->b_data; |
i | 103 | fs/xiafs/truncate.c | if (i < INDT_ZONE) { |
i | 118 | fs/xiafs/truncate.c | for (i = 0; i < XIAFS_ADDRS_PER_Z(inode->i_sb) && !(*indp++); i++) ; |
i | 119 | fs/xiafs/truncate.c | if (i >= XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i | 139 | fs/xiafs/truncate.c | int i, tmp; |
i | 157 | fs/xiafs/truncate.c | for (i=DINDT_ZONE<0?0:DINDT_ZONE ; i < XIAFS_ADDRS_PER_Z(inode->i_sb) ; i ++) { |
i | 158 | fs/xiafs/truncate.c | if (i < DINDT_ZONE) |
i | 160 | fs/xiafs/truncate.c | dindp = i+(u_long *) dind_bh->b_data; |
i | 162 | fs/xiafs/truncate.c | 8+((1+i)<<XIAFS_ADDRS_PER_Z_BITS(inode->i_sb)), |
i | 167 | fs/xiafs/truncate.c | for (i = 0; i < XIAFS_ADDRS_PER_Z(inode->i_sb) && !(*dindp++); i++); |
i | 168 | fs/xiafs/truncate.c | if (i >= XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i | 134 | include/asm-alpha/types.h | int i; |
i | 144 | include/asm-alpha/types.h | i = __FDSET_INTS; |
i | 145 | include/asm-alpha/types.h | while (i) { |
i | 146 | include/asm-alpha/types.h | i--; |
i | 245 | include/asm-alpha/unistd.h | int i; |
i | 249 | include/asm-alpha/unistd.h | i = do_execve(file, argvp, envp, ®s); |
i | 250 | include/asm-alpha/unistd.h | if (!i) { |
i | 108 | include/asm-i386/io.h | #define __IN(s,s1,i...) \ |
i | 109 | include/asm-i386/io.h | __IN1(s) __IN2(s,s1,"w") : "=a" (_v) : "d" (port) ,##i ); return _v; } \ |
i | 110 | include/asm-i386/io.h | __IN1(s##c) __IN2(s,s1,"") : "=a" (_v) : "id" (port) ,##i ); return _v; } \ |
i | 111 | include/asm-i386/io.h | __IN1(s##_p) __IN2(s,s1,"w") : "=a" (_v) : "d" (port) ,##i ); SLOW_DOWN_IO; return _v; } \ |
i | 112 | include/asm-i386/io.h | __IN1(s##c_p) __IN2(s,s1,"") : "=a" (_v) : "id" (port) ,##i ); SLOW_DOWN_IO; return _v; } |
i | 94 | include/asm-mips/io.h | #define __INS(m,s,i) \ |
i | 97 | include/asm-mips/io.h | : "0" (addr), "1" (count), "i" (0), "r" (PORT_BASE+port), "I" (i) \ |
i | 101 | include/asm-mips/io.h | : "0" (addr), "1" (count), "i" (port), "r" (PORT_BASE), "I" (i) \ |
i | 119 | include/asm-mips/io.h | #define __OUTS(m,s,i) \ |
i | 122 | include/asm-mips/io.h | : "0" (addr), "1" (count), "i" (0), "r" (PORT_BASE+port), "I" (i) \ |
i | 126 | include/asm-mips/io.h | : "0" (addr), "1" (count), "i" (port), "r" (PORT_BASE), "I" (i) \ |
i | 110 | include/asm-sparc/pgtable.h | int i; |
i | 112 | include/asm-sparc/pgtable.h | for(i=0; i<num_contexts; i++) |
i | 113 | include/asm-sparc/pgtable.h | if(ctx_tasks[i] == NULL) break; |
i | 115 | include/asm-sparc/pgtable.h | if(i<num_contexts) { |
i | 116 | include/asm-sparc/pgtable.h | p->tss.context = i; |
i | 117 | include/asm-sparc/pgtable.h | ctx_tasks[i] = p; |
i | 118 | include/asm-sparc/pgtable.h | return i; |
i | 295 | include/asm-sparc/pgtable.h | int oldseg, i; |
i | 297 | include/asm-sparc/pgtable.h | for(i=0; i<PSEG_ENTRIES; i++) |
i | 298 | include/asm-sparc/pgtable.h | if(phys_seg_map[i]==PSEG_AVL) return i; |
i | 302 | include/asm-sparc/pgtable.h | for(i=0; i<PSEG_ENTRIES; i++) { |
i | 304 | include/asm-sparc/pgtable.h | if(phys_seg_map[i]!=PSEG_USED) continue; |
i | 306 | include/asm-sparc/pgtable.h | oldseg = (phys_seg_life[i]>oldseg) ? phys_seg_life[i] : oldseg; |
i | 315 | include/asm-sparc/pgtable.h | int i; |
i | 317 | include/asm-sparc/pgtable.h | for(i=0; i<pseg_skip; i++) phys_seg_life[i]++; |
i | 318 | include/asm-sparc/pgtable.h | i++; |
i | 319 | include/asm-sparc/pgtable.h | while(i<PSEG_ENTRIES) phys_seg_life[i++]++; |
i | 189 | include/asm-sparc/unistd.h | long retval, i; |
i | 193 | include/asm-sparc/unistd.h | for (i = 0; i < 1000000000; i++); |
i | 46 | include/linux/msdos_fs.h | #define MSDOS_I(i) (&((i)->u.msdos_i)) |
i | 101 | include/linux/smb_fs.h | int smb_make_open(struct inode *i, int right); |
i | 105 | include/linux/smb_fs.h | void smb_free_inode_info(struct smb_inode_info *i); |
i | 136 | init/main.c | int i=1; |
i | 138 | init/main.c | while (cur && isdigit(*cur) && i <= 10) { |
i | 139 | init/main.c | ints[i++] = simple_strtoul(cur,NULL,0); |
i | 143 | init/main.c | ints[0] = i-1; |
i | 266 | init/main.c | int i = 0; |
i | 276 | init/main.c | while (bootsetups[i].str) { |
i | 277 | init/main.c | int n = strlen(bootsetups[i].str); |
i | 278 | init/main.c | if (!strncmp(line,bootsetups[i].str,n)) { |
i | 279 | init/main.c | bootsetups[i].setup_func(get_options(line+n,ints), ints); |
i | 282 | init/main.c | i++; |
i | 444 | init/main.c | int i=0; |
i | 452 | init/main.c | for(i=1;i<smp_num_cpus;i++) |
i | 465 | init/main.c | current_set[i]=task[i]; |
i | 466 | init/main.c | current_set[i]->processor=i; |
i | 572 | init/main.c | int i; |
i | 575 | init/main.c | write(1,printbuf,i=vsprintf(printbuf, fmt, args)); |
i | 577 | init/main.c | return i; |
i | 582 | init/main.c | int pid,i; |
i | 618 | init/main.c | while (pid != wait(&i)) |
i | 634 | init/main.c | if (pid == wait(&i)) |
i | 636 | init/main.c | printf("\n\rchild %d died with code %04x\n\r",pid,i); |
i | 57 | ipc/sem.c | int i; |
i | 61 | ipc/sem.c | for (i = 0; i < SEMMNI; i++) |
i | 62 | ipc/sem.c | semary[i] = (struct semid_ds *) IPC_UNUSED; |
i | 180 | ipc/sem.c | int i = 0; |
i | 182 | ipc/sem.c | while (i < nsops) { |
i | 183 | ipc/sem.c | struct sembuf * sop = &sops[i]; |
i | 196 | ipc/sem.c | i++; |
i | 206 | ipc/sem.c | while (--i >= 0) { |
i | 207 | ipc/sem.c | struct sembuf * sop = &sops[i]; |
i | 219 | ipc/sem.c | int i; |
i | 221 | ipc/sem.c | for (i = 0; i < nsops; i++) { |
i | 222 | ipc/sem.c | struct sembuf * sop = &sops[i]; |
i | 300 | ipc/sem.c | int i; |
i | 301 | ipc/sem.c | for (i = 0; i < nsops; i++) |
i | 302 | ipc/sem.c | if (sops[i].sem_num == semnum |
i | 303 | ipc/sem.c | && (sops[i].sem_op < 0) |
i | 304 | ipc/sem.c | && !(sops[i].sem_flg & IPC_NOWAIT)) |
i | 318 | ipc/sem.c | int i; |
i | 319 | ipc/sem.c | for (i = 0; i < nsops; i++) |
i | 320 | ipc/sem.c | if (sops[i].sem_num == semnum |
i | 321 | ipc/sem.c | && (sops[i].sem_op == 0) |
i | 322 | ipc/sem.c | && !(sops[i].sem_flg & IPC_NOWAIT)) |
i | 364 | ipc/sem.c | int i, id, val = 0; |
i | 395 | ipc/sem.c | i = verify_area(VERIFY_WRITE, tmp, sizeof(struct seminfo)); |
i | 396 | ipc/sem.c | if (i) |
i | 397 | ipc/sem.c | return i; |
i | 404 | ipc/sem.c | i = verify_area (VERIFY_WRITE, buf, sizeof (*buf)); |
i | 405 | ipc/sem.c | if (i) |
i | 406 | ipc/sem.c | return i; |
i | 459 | ipc/sem.c | i = verify_area (VERIFY_WRITE, array, nsems*sizeof(ushort)); |
i | 460 | ipc/sem.c | if (i) |
i | 461 | ipc/sem.c | return i; |
i | 477 | ipc/sem.c | if ((i = verify_area (VERIFY_READ, array, nsems*sizeof(ushort)))) |
i | 478 | ipc/sem.c | return i; |
i | 480 | ipc/sem.c | for (i = 0; i < nsems; i++) |
i | 481 | ipc/sem.c | if (sem_io[i] > SEMVMX) |
i | 486 | ipc/sem.c | if ((i = verify_area (VERIFY_WRITE, buf, sizeof(*buf)))) |
i | 487 | ipc/sem.c | return i; |
i | 491 | ipc/sem.c | if ((i = verify_area (VERIFY_READ, buf, sizeof (*buf)))) |
i | 492 | ipc/sem.c | return i; |
i | 506 | ipc/sem.c | for (i = 0; i < sma->sem_nsems; i++) |
i | 507 | ipc/sem.c | sem_io[i] = sma->sem_base[i].semval; |
i | 542 | ipc/sem.c | for (i = 0; i < nsems; i++) |
i | 543 | ipc/sem.c | sma->sem_base[i].semval = sem_io[i]; |
i | 545 | ipc/sem.c | for (i = 0; i < nsems; i++) |
i | 546 | ipc/sem.c | un->semadj[i] = 0; |
i | 559 | ipc/sem.c | int i, id, size, error; |
i | 571 | ipc/sem.c | if ((i = verify_area (VERIFY_READ, tsops, nsops * sizeof(*tsops)))) |
i | 572 | ipc/sem.c | return i; |
i | 579 | ipc/sem.c | for (i = 0; i < nsops; i++) { |
i | 580 | ipc/sem.c | sop = &sops[i]; |
i | 668 | ipc/sem.c | int nsems, i; |
i | 698 | ipc/sem.c | for (i = 0; i < nsems; i++) { |
i | 699 | ipc/sem.c | struct sem * sem = &sma->sem_base[i]; |
i | 700 | ipc/sem.c | sem->semval += u->semadj[i]; |
i | 77 | ipc/shm.c | int id, i; |
i | 108 | ipc/shm.c | for (i = 0; i < numpages; shp->shm_pages[i++] = 0); |
i | 165 | ipc/shm.c | int i, numpages; |
i | 183 | ipc/shm.c | for (i = 0; i < numpages ; i++) { |
i | 185 | ipc/shm.c | pte_val(pte) = shp->shm_pages[i]; |
i | 59 | kernel/dma.c | int i, len = 0; |
i | 61 | kernel/dma.c | for (i = 0 ; i < MAX_DMA_CHANNELS ; i++) { |
i | 62 | kernel/dma.c | if (dma_chan_busy[i].lock) { |
i | 64 | kernel/dma.c | i, |
i | 65 | kernel/dma.c | dma_chan_busy[i].device_id); |
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 | 95 | kernel/exit.c | task[i] = NULL; |
i | 115 | kernel/exit.c | int i; |
i | 119 | kernel/exit.c | for (i=0 ; i<NR_TASKS ; i++) |
i | 120 | kernel/exit.c | if (task[i] == p) |
i | 136 | kernel/exit.c | int i; |
i | 138 | kernel/exit.c | for (i=1 ; i<NR_TASKS ; i++) { |
i | 139 | kernel/exit.c | if (!task[i]) |
i | 141 | kernel/exit.c | if (bad_task_ptr(task[i]->p_pptr)) |
i | 143 | kernel/exit.c | task[i]->pid); |
i | 144 | kernel/exit.c | if (bad_task_ptr(task[i]->p_cptr)) |
i | 146 | kernel/exit.c | task[i]->pid); |
i | 147 | kernel/exit.c | if (bad_task_ptr(task[i]->p_ysptr)) |
i | 149 | kernel/exit.c | task[i]->pid); |
i | 150 | kernel/exit.c | if (bad_task_ptr(task[i]->p_osptr)) |
i | 152 | kernel/exit.c | task[i]->pid); |
i | 153 | kernel/exit.c | if (task[i]->p_pptr == task[i]) |
i | 155 | kernel/exit.c | task[i]->pid); |
i | 156 | kernel/exit.c | if (task[i]->p_cptr == task[i]) |
i | 158 | kernel/exit.c | task[i]->pid); |
i | 159 | kernel/exit.c | if (task[i]->p_ysptr == task[i]) |
i | 161 | kernel/exit.c | task[i]->pid); |
i | 162 | kernel/exit.c | if (task[i]->p_osptr == task[i]) |
i | 164 | kernel/exit.c | task[i]->pid); |
i | 165 | kernel/exit.c | if (task[i]->p_osptr) { |
i | 166 | kernel/exit.c | if (task[i]->p_pptr != task[i]->p_osptr->p_pptr) |
i | 169 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid, |
i | 170 | kernel/exit.c | task[i]->p_osptr->p_pptr->pid); |
i | 171 | kernel/exit.c | if (task[i]->p_osptr->p_ysptr != task[i]) |
i | 174 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid); |
i | 176 | kernel/exit.c | if (task[i]->p_ysptr) { |
i | 177 | kernel/exit.c | if (task[i]->p_pptr != task[i]->p_ysptr->p_pptr) |
i | 180 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid, |
i | 181 | kernel/exit.c | task[i]->p_osptr->p_pptr->pid); |
i | 182 | kernel/exit.c | if (task[i]->p_ysptr->p_osptr != task[i]) |
i | 185 | kernel/exit.c | task[i]->pid, task[i]->p_ysptr->pid); |
i | 187 | kernel/exit.c | if (task[i]->p_cptr) { |
i | 188 | kernel/exit.c | if (task[i]->p_cptr->p_pptr != task[i]) |
i | 191 | kernel/exit.c | task[i]->pid, task[i]->p_cptr->pid); |
i | 192 | kernel/exit.c | if (task[i]->p_cptr->p_ysptr) |
i | 195 | kernel/exit.c | task[i]->pid, task[i]->p_cptr->pid); |
i | 367 | kernel/exit.c | int i; |
i | 368 | kernel/exit.c | for (i=0 ; i<NR_OPEN ; i++) { |
i | 369 | kernel/exit.c | struct file * filp = files->fd[i]; |
i | 372 | kernel/exit.c | files->fd[i] = NULL; |
i | 36 | kernel/fork.c | int i; |
i | 61 | kernel/fork.c | for (i = 0 ; i < NR_TASKS ; i++) { |
i | 62 | kernel/fork.c | if (!task[i]) |
i | 63 | kernel/fork.c | return i; |
i | 146 | kernel/fork.c | int i; |
i | 158 | kernel/fork.c | for (i = 0; i < NR_OPEN; i++) { |
i | 159 | kernel/fork.c | struct file * f = current->files->fd[i]; |
i | 162 | kernel/fork.c | tsk->files->fd[i] = f; |
i | 117 | kernel/itimer.c | register unsigned long i, j; |
i | 120 | kernel/itimer.c | i = tvtojiffies(&value->it_interval); |
i | 128 | kernel/itimer.c | current->it_real_incr = i; |
i | 131 | kernel/itimer.c | i = j + jiffies; |
i | 133 | kernel/itimer.c | if (i < j) |
i | 134 | kernel/itimer.c | i = ULONG_MAX; |
i | 135 | kernel/itimer.c | current->real_timer.expires = i; |
i | 142 | kernel/itimer.c | current->it_virt_incr = i; |
i | 148 | kernel/itimer.c | current->it_prof_incr = i; |
i | 67 | kernel/module.c | int i; |
i | 69 | kernel/module.c | for (i = 0, sym = symbol_table.symbol; sym->name; ++sym, ++i) |
i | 71 | kernel/module.c | symbol_table.n_symbols = i; |
i | 82 | kernel/module.c | int i = 0; /* keep gcc silent */ |
i | 86 | kernel/module.c | for (i = module_list->symtab->n_symbols; i > 0; ++sym, --i) { |
i | 239 | kernel/module.c | int i; |
i | 269 | kernel/module.c | for (sym = &(newtab->symbol[0]), i = 0; |
i | 270 | kernel/module.c | i < newtab->n_symbols; ++sym, ++i) { |
i | 289 | kernel/module.c | for (ref = (struct module_ref *)sym, i = 0; |
i | 290 | kernel/module.c | i < newtab->n_refs; ++ref, ++i) { |
i | 373 | kernel/module.c | int i; |
i | 389 | kernel/module.c | if ((i = verify_area(VERIFY_WRITE, to, nmodsyms * sizeof(*table)))) |
i | 390 | kernel/module.c | return i; |
i | 402 | kernel/module.c | for (i = mp->symtab->n_symbols, |
i | 404 | kernel/module.c | i > 0; --i, ++from, ++to) { |
i | 425 | kernel/module.c | int i; |
i | 427 | kernel/module.c | i = 0; |
i | 428 | kernel/module.c | for (i = 0 ; (buf[i] = get_user(user_name + i)) != '\0' ; ) { |
i | 429 | kernel/module.c | if (++i >= MOD_MAX_NAME) |
i | 521 | kernel/module.c | int i; |
i | 532 | kernel/module.c | i = 20; |
i | 535 | kernel/module.c | i--; |
i | 538 | kernel/module.c | i -= strlen(size); |
i | 539 | kernel/module.c | if (i <= 0) |
i | 540 | kernel/module.c | i = 1; |
i | 541 | kernel/module.c | while (--i >= 0) |
i | 582 | kernel/module.c | int i; |
i | 592 | kernel/module.c | for (i = mp->symtab->n_symbols, |
i | 594 | kernel/module.c | i > 0; --i, ++sym) { |
i | 57 | kernel/printk.c | unsigned long i, j, count; |
i | 85 | kernel/printk.c | i = 0; |
i | 86 | kernel/printk.c | while (log_size && i < len) { |
i | 94 | kernel/printk.c | i++; |
i | 98 | kernel/printk.c | return i; |
i | 116 | kernel/printk.c | for (i = 0; i < count; i++) { |
i | 122 | kernel/printk.c | return i; |
i | 145 | kernel/printk.c | int i; |
i | 153 | kernel/printk.c | i = vsprintf(buf + 3, fmt, args); /* hopefully i < sizeof(buf)-4 */ |
i | 154 | kernel/printk.c | buf_end = buf + 3 + i; |
i | 196 | kernel/printk.c | return i; |
i | 207 | kernel/printk.c | int i,j; |
i | 215 | kernel/printk.c | for (i=0,j=0; i < log_size; i++) { |
i | 218 | kernel/printk.c | if (buf[j-1] != '\n' && i < log_size - 1 && j < sizeof(buf)-1) |
i | 75 | kernel/resource.c | int i; |
i | 77 | kernel/resource.c | for (i = 0; i < IOTABLE_SIZE; i++) |
i | 78 | kernel/resource.c | if (iotable[i].num == 0) |
i | 80 | kernel/resource.c | if (i == IOTABLE_SIZE) |
i | 86 | kernel/resource.c | iotable[i].name = name; |
i | 87 | kernel/resource.c | iotable[i].from = from; |
i | 88 | kernel/resource.c | iotable[i].num = num; |
i | 89 | kernel/resource.c | iotable[i].next = p->next; |
i | 90 | kernel/resource.c | p->next = &iotable[i]; |
i | 134 | kernel/resource.c | int i; |
i | 136 | kernel/resource.c | for (i = 1; i < ints[0]; i += 2) |
i | 137 | kernel/resource.c | request_region(ints[i], ints[i+1], "reserved"); |
i | 897 | kernel/sched.c | int i; |
i | 908 | kernel/sched.c | for (i=0 ; i<NR_TASKS ; i++) |
i | 909 | kernel/sched.c | if (task[i]) |
i | 910 | kernel/sched.c | show_task(i,task[i]); |
i | 546 | kernel/sys.c | int i; |
i | 550 | kernel/sys.c | i = verify_area(VERIFY_WRITE, grouplist, sizeof(gid_t) * gidsetsize); |
i | 551 | kernel/sys.c | if (i) |
i | 552 | kernel/sys.c | return i; |
i | 555 | kernel/sys.c | for (i = 0 ; (i < NGROUPS) && (*groups != NOGROUP) ; i++, groups++) { |
i | 558 | kernel/sys.c | if (i >= gidsetsize) |
i | 563 | kernel/sys.c | return(i); |
i | 568 | kernel/sys.c | int i; |
i | 574 | kernel/sys.c | i = verify_area(VERIFY_READ, grouplist, sizeof(gid_t) * gidsetsize); |
i | 575 | kernel/sys.c | if (i) |
i | 576 | kernel/sys.c | return i; |
i | 577 | kernel/sys.c | for (i = 0; i < gidsetsize; i++, grouplist++) { |
i | 578 | kernel/sys.c | current->groups[i] = get_user(grouplist); |
i | 580 | kernel/sys.c | if (i < NGROUPS) |
i | 581 | kernel/sys.c | current->groups[i] = NOGROUP; |
i | 587 | kernel/sys.c | int i; |
i | 592 | kernel/sys.c | for (i = 0; i < NGROUPS; i++) { |
i | 593 | kernel/sys.c | if (current->groups[i] == NOGROUP) |
i | 595 | kernel/sys.c | if (current->groups[i] == grp) |
i | 673 | kernel/sys.c | int i; |
i | 677 | kernel/sys.c | i = verify_area(VERIFY_WRITE, name, len); |
i | 678 | kernel/sys.c | if (i) |
i | 679 | kernel/sys.c | return i; |
i | 680 | kernel/sys.c | i = 1+strlen(system_utsname.nodename); |
i | 681 | kernel/sys.c | if (i > len) |
i | 682 | kernel/sys.c | i = len; |
i | 683 | kernel/sys.c | memcpy_tofs(name, system_utsname.nodename, i); |
i | 39 | kernel/time.c | int i; |
i | 41 | kernel/time.c | i = CURRENT_TIME; |
i | 46 | kernel/time.c | put_user(i,tloc); |
i | 48 | kernel/time.c | return i; |
i | 47 | lib/vsprintf.c | int i=0; |
i | 50 | lib/vsprintf.c | i = i*10 + *((*s)++) - '0'; |
i | 51 | lib/vsprintf.c | return i; |
i | 73 | lib/vsprintf.c | int i; |
i | 102 | lib/vsprintf.c | i = 0; |
i | 104 | lib/vsprintf.c | tmp[i++]='0'; |
i | 106 | lib/vsprintf.c | tmp[i++] = digits[do_div(num,base)]; |
i | 107 | lib/vsprintf.c | if (i > precision) |
i | 108 | lib/vsprintf.c | precision = i; |
i | 125 | lib/vsprintf.c | while (i < precision--) |
i | 127 | lib/vsprintf.c | while (i-- > 0) |
i | 128 | lib/vsprintf.c | *str++ = tmp[i]; |
i | 138 | lib/vsprintf.c | int i, base; |
i | 226 | lib/vsprintf.c | for (i = 0; i < len; ++i) |
i | 299 | lib/vsprintf.c | int i; |
i | 302 | lib/vsprintf.c | i=vsprintf(buf,fmt,args); |
i | 304 | lib/vsprintf.c | return i; |
i | 41 | mm/filemap.c | int i = PAGE_SIZE >> shift; |
i | 45 | mm/filemap.c | i--; |
i | 48 | mm/filemap.c | } while (i > 0); |
i | 178 | mm/kmalloc.c | int order, i, sz; |
i | 243 | mm/kmalloc.c | for (i = NBLOCKS(order), p = BH(page + 1); i > 1; i--, p = p->bh_next) { |
i | 125 | mm/memory.c | int i; |
i | 130 | mm/memory.c | for (i = USER_PTRS_PER_PGD ; i < PTRS_PER_PGD ; i++) |
i | 131 | mm/memory.c | new_pg[i] = page_dir[i]; |
i | 146 | mm/memory.c | int i; |
i | 168 | mm/memory.c | for (i = 0 ; i < USER_PTRS_PER_PGD ; i++) |
i | 169 | mm/memory.c | free_one_pgd(page_dir + i); |
i | 179 | mm/memory.c | int i; |
i | 193 | mm/memory.c | for (i = 0 ; i < PTRS_PER_PGD ; i++) |
i | 194 | mm/memory.c | free_one_pgd(page_dir + i); |
i | 151 | mm/swap.c | int i; |
i | 169 | mm/swap.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j += 512){ |
i | 170 | mm/swap.c | if (!(zones[i] = swapf->i_op->smap(swapf,block++))) { |
i | 180 | mm/swap.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j +=swapf->i_sb->s_blocksize) |
i | 181 | mm/swap.c | if (!(zones[i] = bmap(swapf,block++))) { |
i | 186 | mm/swap.c | ll_rw_swap_file(rw,swapf->i_dev, zones, i,buf); |
i | 630 | mm/swap.c | int i=6; |
i | 635 | mm/swap.c | if (priority != GFP_NOBUFFER && shrink_buffers(i, limit)) |
i | 639 | mm/swap.c | if (shm_swap(i, limit)) |
i | 643 | mm/swap.c | if (swap_out(i, limit)) |
i | 646 | mm/swap.c | } while(i--); |
i | 1004 | mm/swap.c | int i, type, prev; |
i | 1008 | mm/swap.c | i = namei(specialfile,&inode); |
i | 1009 | mm/swap.c | if (i) |
i | 1010 | mm/swap.c | return i; |
i | 1040 | mm/swap.c | i = try_to_unuse(type); |
i | 1041 | mm/swap.c | if (i) { |
i | 1044 | mm/swap.c | return i; |
i | 1082 | mm/swap.c | int i, j, prev; |
i | 1136 | mm/swap.c | for (i = 0 ; i < nr_swapfiles ; i++) { |
i | 1137 | mm/swap.c | if (i == type) |
i | 1139 | mm/swap.c | if (p->swap_device == swap_info[i].swap_device) |
i | 1160 | mm/swap.c | for (i = 1 ; i < 8*PAGE_SIZE ; i++) { |
i | 1161 | mm/swap.c | if (test_bit(i,p->swap_lockmap)) { |
i | 1163 | mm/swap.c | p->lowest_bit = i; |
i | 1164 | mm/swap.c | p->highest_bit = i; |
i | 1165 | mm/swap.c | p->max = i+1; |
i | 1179 | mm/swap.c | for (i = 1 ; i < p->max ; i++) { |
i | 1180 | mm/swap.c | if (test_bit(i,p->swap_lockmap)) |
i | 1181 | mm/swap.c | p->swap_map[i] = 0; |
i | 1183 | mm/swap.c | p->swap_map[i] = 0x80; |
i | 1194 | mm/swap.c | for (i = swap_list.head; i >= 0; i = swap_info[i].next) { |
i | 1195 | mm/swap.c | if (p->prio >= swap_info[i].prio) { |
i | 1198 | mm/swap.c | prev = i; |
i | 1200 | mm/swap.c | p->next = i; |
i | 1224 | mm/swap.c | unsigned int i, j; |
i | 1227 | mm/swap.c | for (i = 0; i < nr_swapfiles; i++) { |
i | 1228 | mm/swap.c | if ((swap_info[i].flags & SWP_WRITEOK) != SWP_WRITEOK) |
i | 1230 | mm/swap.c | for (j = 0; j < swap_info[i].max; ++j) |
i | 1231 | mm/swap.c | switch (swap_info[i].swap_map[j]) { |
i | 1257 | mm/swap.c | int i; |
i | 1263 | mm/swap.c | i = (end_mem - PAGE_OFFSET) >> (PAGE_SHIFT+6); |
i | 1264 | mm/swap.c | if (i < 16) |
i | 1265 | mm/swap.c | i = 16; |
i | 1266 | mm/swap.c | min_free_pages = i; |
i | 1278 | mm/swap.c | for (i = 0 ; i < NR_MEM_LISTS ; i++) { |
i | 1280 | mm/swap.c | free_area_list[i].prev = free_area_list[i].next = &free_area_list[i]; |
i | 1283 | mm/swap.c | bitmap_size = (end_mem - PAGE_OFFSET) >> (PAGE_SHIFT + i); |
i | 1286 | mm/swap.c | free_area_map[i] = (unsigned char *) start_mem; |
i | 124 | net/802/tr.c | int i; |
i | 135 | net/802/tr.c | for(i=0,hash=0;i<TR_ALEN;hash+=trh->daddr[i++]); |
i | 165 | net/802/tr.c | int i; |
i | 171 | net/802/tr.c | for(i=0,hash=0;i<TR_ALEN;hash+=trh->saddr[i++]); |
i | 218 | net/802/tr.c | int i; |
i | 224 | net/802/tr.c | for(i=0; i < RIF_TABLE_SIZE;i++) { |
i | 226 | net/802/tr.c | rif_cache entry, *pentry=rif_table+i; |
i | 249 | net/802/tr.c | int size,i; |
i | 258 | net/802/tr.c | for(i=0;i < RIF_TABLE_SIZE;i++) { |
i | 259 | net/802/tr.c | for(entry=rif_table[i];entry;entry=entry->next) { |
i | 1327 | net/ax25/af_ax25.c | unsigned char ndigi, i; |
i | 1349 | net/ax25/af_ax25.c | for (i = 0; i < ndigi; i++) |
i | 1350 | net/ax25/af_ax25.c | memcpy(&sax->fsa_digipeater[i], &sk->ax25->digipeat->calls[i], sizeof(ax25_address)); |
i | 173 | net/ax25/ax25_route.c | int i, err; |
i | 195 | net/ax25/ax25_route.c | for (i = 0; i < route.digi_count; i++) { |
i | 196 | net/ax25/ax25_route.c | ax25_rt->digipeat->repeated[i] = 0; |
i | 197 | net/ax25/ax25_route.c | ax25_rt->digipeat->calls[i] = route.digi_addr[i]; |
i | 219 | net/ax25/ax25_route.c | for (i = 0; i < route.digi_count; i++) { |
i | 220 | net/ax25/ax25_route.c | ax25_rt->digipeat->repeated[i] = 0; |
i | 221 | net/ax25/ax25_route.c | ax25_rt->digipeat->calls[i] = route.digi_addr[i]; |
i | 272 | net/ax25/ax25_route.c | int i; |
i | 300 | net/ax25/ax25_route.c | for (i = 0; i < ax25_rt->digipeat->ndigi; i++) |
i | 301 | net/ax25/ax25_route.c | len += sprintf(buffer + len, " %s", ax2asc(&ax25_rt->digipeat->calls[i])); |
i | 761 | net/core/dev.c | int i; |
i | 770 | net/core/dev.c | for(i = 0;i < DEV_NUMBUFFS; i++) |
i | 778 | net/core/dev.c | while((skb=skb_dequeue(&dev->buffs[i]))!=NULL) |
i | 789 | net/core/dev.c | dev_queue_xmit(skb,dev,-i - 1); |
i | 1332 | net/core/dev.c | int i; |
i | 1333 | net/core/dev.c | for (i = 0; i < DEV_NUMBUFFS; i++) { |
i | 1334 | net/core/dev.c | skb_queue_head_init(dev->buffs + i); |
i | 98 | net/core/skbuff.c | int i = 0; |
i | 99 | net/core/skbuff.c | while (skb2 != skb && i < 5) { |
i | 104 | net/core/skbuff.c | i++; |
i | 132 | net/ipv4/af_inet.c | int i, j; |
i | 145 | net/ipv4/af_inet.c | for(i=0; i < SOCK_ARRAY_SIZE; i++) |
i | 148 | net/ipv4/af_inet.c | sk = prot->sock_array[(i+base+1) &(SOCK_ARRAY_SIZE -1)]; |
i | 156 | net/ipv4/af_inet.c | start =(i+1+start )%1024; |
i | 157 | net/ipv4/af_inet.c | return(i+base+1); |
i | 161 | net/ipv4/af_inet.c | best = i; |
i | 1554 | net/ipv4/af_inet.c | int i; |
i | 1571 | net/ipv4/af_inet.c | for(i = 0; i < SOCK_ARRAY_SIZE; i++) |
i | 1573 | net/ipv4/af_inet.c | tcp_prot.sock_array[i] = NULL; |
i | 1574 | net/ipv4/af_inet.c | udp_prot.sock_array[i] = NULL; |
i | 1575 | net/ipv4/af_inet.c | raw_prot.sock_array[i] = NULL; |
i | 228 | net/ipv4/arp.c | int i; |
i | 234 | net/ipv4/arp.c | for (i = 0; i < FULL_ARP_TABLE_SIZE; i++) |
i | 237 | net/ipv4/arp.c | struct arp_table **pentry = &arp_tables[i]; |
i | 299 | net/ipv4/arp.c | int i; |
i | 310 | net/ipv4/arp.c | for (i = 0; i < FULL_ARP_TABLE_SIZE; i++) |
i | 313 | net/ipv4/arp.c | struct arp_table **pentry = &arp_tables[i]; |
i | 1063 | net/ipv4/arp.c | int i,j,k; |
i | 1072 | net/ipv4/arp.c | for(i=0; i<FULL_ARP_TABLE_SIZE; i++) |
i | 1074 | net/ipv4/arp.c | for(entry=arp_tables[i]; entry!=NULL; entry=entry->next) |
i | 259 | net/ipv4/igmp.c | struct ip_mc_list *i; |
i | 260 | net/ipv4/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=i->next) |
i | 262 | net/ipv4/igmp.c | if(i->multiaddr==addr) |
i | 264 | net/ipv4/igmp.c | i->users++; |
i | 268 | net/ipv4/igmp.c | i=(struct ip_mc_list *)kmalloc(sizeof(*i), GFP_KERNEL); |
i | 269 | net/ipv4/igmp.c | if(!i) |
i | 271 | net/ipv4/igmp.c | i->users=1; |
i | 272 | net/ipv4/igmp.c | i->interface=dev; |
i | 273 | net/ipv4/igmp.c | i->multiaddr=addr; |
i | 274 | net/ipv4/igmp.c | i->next=dev->ip_mc_list; |
i | 275 | net/ipv4/igmp.c | igmp_group_added(i); |
i | 276 | net/ipv4/igmp.c | dev->ip_mc_list=i; |
i | 285 | net/ipv4/igmp.c | struct ip_mc_list **i; |
i | 286 | net/ipv4/igmp.c | for(i=&(dev->ip_mc_list);(*i)!=NULL;i=&(*i)->next) |
i | 288 | net/ipv4/igmp.c | if((*i)->multiaddr==addr) |
i | 290 | net/ipv4/igmp.c | if(--((*i)->users)) |
i | 294 | net/ipv4/igmp.c | struct ip_mc_list *tmp= *i; |
i | 296 | net/ipv4/igmp.c | *i=(*i)->next; |
i | 309 | net/ipv4/igmp.c | struct ip_mc_list *i; |
i | 311 | net/ipv4/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=j) |
i | 313 | net/ipv4/igmp.c | j=i->next; |
i | 314 | net/ipv4/igmp.c | kfree_s(i,sizeof(*i)); |
i | 325 | net/ipv4/igmp.c | struct ip_mc_list *i; |
i | 326 | net/ipv4/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=i->next) |
i | 327 | net/ipv4/igmp.c | if(i->multiaddr==IGMP_ALL_HOSTS) |
i | 329 | net/ipv4/igmp.c | i=(struct ip_mc_list *)kmalloc(sizeof(*i), GFP_KERNEL); |
i | 330 | net/ipv4/igmp.c | if(!i) |
i | 332 | net/ipv4/igmp.c | i->users=1; |
i | 333 | net/ipv4/igmp.c | i->interface=dev; |
i | 334 | net/ipv4/igmp.c | i->multiaddr=IGMP_ALL_HOSTS; |
i | 335 | net/ipv4/igmp.c | i->tm_running=0; |
i | 336 | net/ipv4/igmp.c | i->next=dev->ip_mc_list; |
i | 337 | net/ipv4/igmp.c | dev->ip_mc_list=i; |
i | 338 | net/ipv4/igmp.c | ip_mc_filter_add(i->interface, i->multiaddr); |
i | 349 | net/ipv4/igmp.c | int i; |
i | 360 | net/ipv4/igmp.c | for(i=0;i<IP_MAX_MEMBERSHIPS;i++) |
i | 362 | net/ipv4/igmp.c | if(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev) |
i | 364 | net/ipv4/igmp.c | if(sk->ip_mc_list->multidev[i]==NULL) |
i | 365 | net/ipv4/igmp.c | unused=i; |
i | 382 | net/ipv4/igmp.c | int i; |
i | 390 | net/ipv4/igmp.c | for(i=0;i<IP_MAX_MEMBERSHIPS;i++) |
i | 392 | net/ipv4/igmp.c | if(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev) |
i | 394 | net/ipv4/igmp.c | sk->ip_mc_list->multidev[i]=NULL; |
i | 408 | net/ipv4/igmp.c | int i; |
i | 413 | net/ipv4/igmp.c | for(i=0;i<IP_MAX_MEMBERSHIPS;i++) |
i | 415 | net/ipv4/igmp.c | if(sk->ip_mc_list->multidev[i]) |
i | 417 | net/ipv4/igmp.c | ip_mc_dec_group(sk->ip_mc_list->multidev[i], sk->ip_mc_list->multiaddr[i]); |
i | 418 | net/ipv4/igmp.c | sk->ip_mc_list->multidev[i]=NULL; |
i | 1101 | net/ipv4/ip.c | int i, ihl, end; |
i | 1198 | net/ipv4/ip.c | i = prev->end - offset; |
i | 1199 | net/ipv4/ip.c | offset += i; /* ptr into datagram */ |
i | 1200 | net/ipv4/ip.c | ptr += i; /* ptr into fragment data */ |
i | 1214 | net/ipv4/ip.c | i = end - next->offset; /* overlap is 'i' bytes */ |
i | 1215 | net/ipv4/ip.c | tmp->len -= i; /* so reduce size of */ |
i | 1216 | net/ipv4/ip.c | tmp->offset += i; /* next fragment */ |
i | 1217 | net/ipv4/ip.c | tmp->ptr += i; |
i | 1461 | net/ipv4/ip_fw.c | struct ip_fw *i; |
i | 1470 | net/ipv4/ip_fw.c | i = ip_fw_blk_chain; |
i | 1475 | net/ipv4/ip_fw.c | i = ip_fw_fwd_chain; |
i | 1482 | net/ipv4/ip_fw.c | i = ip_acct_chain; |
i | 1488 | net/ipv4/ip_fw.c | i = NULL; |
i | 1496 | net/ipv4/ip_fw.c | while(i!=NULL) |
i | 1499 | net/ipv4/ip_fw.c | ntohl(i->fw_src.s_addr),ntohl(i->fw_smsk.s_addr), |
i | 1500 | net/ipv4/ip_fw.c | ntohl(i->fw_dst.s_addr),ntohl(i->fw_dmsk.s_addr), |
i | 1501 | net/ipv4/ip_fw.c | ntohl(i->fw_via.s_addr),i->fw_flg); |
i | 1503 | net/ipv4/ip_fw.c | i->fw_nsp,i->fw_ndp, i->fw_pcnt,i->fw_bcnt); |
i | 1505 | net/ipv4/ip_fw.c | len+=sprintf(buffer+len, " %u", i->fw_pts[p]); |
i | 1517 | net/ipv4/ip_fw.c | i->fw_pcnt=0L; |
i | 1518 | net/ipv4/ip_fw.c | i->fw_bcnt=0L; |
i | 1522 | net/ipv4/ip_fw.c | i=i->fw_next; |
i | 636 | net/ipv4/ipmr.c | int i; |
i | 643 | net/ipv4/ipmr.c | for(i=0;i<MAXVIFS;i++) |
i | 645 | net/ipv4/ipmr.c | if(vifc_map&(1<<i)) |
i | 659 | net/ipv4/ipmr.c | for(i=0;i<MFC_LINES;i++) |
i | 661 | net/ipv4/ipmr.c | while(mfc_cache_array[i]!=NULL) |
i | 662 | net/ipv4/ipmr.c | ipmr_cache_delete(mfc_cache_array[i]); |
i | 63 | net/ipv4/proc.c | int i; |
i | 82 | net/ipv4/proc.c | for(i = 0; i < SOCK_ARRAY_SIZE; i++) |
i | 85 | net/ipv4/proc.c | sp = s_array[i]; |
i | 113 | net/ipv4/proc.c | i, src, srcp, dest, destp, sp->state, |
i | 69 | net/ipv4/utils.c | int i; |
i | 72 | net/ipv4/utils.c | for (i = 0; i < 4; i++) |
i | 207 | net/ipx/af_ipx.c | ipx_interface *i; |
i | 209 | net/ipx/af_ipx.c | for (i=ipx_interfaces; |
i | 210 | net/ipx/af_ipx.c | i && ((i->if_dev!=dev) || (i->if_dlink_type!=datalink)); |
i | 211 | net/ipx/af_ipx.c | i=i->if_next) |
i | 213 | net/ipx/af_ipx.c | return i; |
i | 219 | net/ipx/af_ipx.c | ipx_interface *i; |
i | 224 | net/ipx/af_ipx.c | for (i=ipx_interfaces; i && (i->if_netnum!=net); i=i->if_next) |
i | 227 | net/ipx/af_ipx.c | return i; |
i | 265 | net/ipx/af_ipx.c | ipx_interface *i; |
i | 288 | net/ipx/af_ipx.c | for (i = ipx_interfaces; |
i | 289 | net/ipx/af_ipx.c | (i != NULL) && (i->if_next != intrfc); |
i | 290 | net/ipx/af_ipx.c | i = i->if_next) |
i | 292 | net/ipx/af_ipx.c | if ((i != NULL) && (i->if_next == intrfc)) |
i | 293 | net/ipx/af_ipx.c | i->if_next = intrfc->if_next; |
i | 309 | net/ipx/af_ipx.c | ipx_interface *i, *tmp; |
i | 314 | net/ipx/af_ipx.c | for (i = ipx_interfaces; i != NULL; ) { |
i | 316 | net/ipx/af_ipx.c | tmp = i->if_next; |
i | 317 | net/ipx/af_ipx.c | if (i->if_dev == dev) |
i | 318 | net/ipx/af_ipx.c | ipxitf_down(i); |
i | 319 | net/ipx/af_ipx.c | i = tmp; |
i | 567 | net/ipx/af_ipx.c | ipx_interface *i; |
i | 577 | net/ipx/af_ipx.c | if ((i=ipxitf_find_using_net(ipx->ipx_source.net))==NULL) { |
i | 583 | net/ipx/af_ipx.c | ipx_device_name(i), |
i | 584 | net/ipx/af_ipx.c | ipx_frame_name(i->if_dlink_type), |
i | 619 | net/ipx/af_ipx.c | ipx_interface *i; |
i | 625 | net/ipx/af_ipx.c | for (i = ipx_interfaces; i->if_next != NULL; i = i->if_next) |
i | 627 | net/ipx/af_ipx.c | i->if_next = intrfc; |
i | 1052 | net/ipx/af_ipx.c | ipx_interface *i; |
i | 1060 | net/ipx/af_ipx.c | i = r->ir_intrfc; |
i | 1061 | net/ipx/af_ipx.c | (void)ipxitf_send(i, skb, (r->ir_routed) ? |
i | 1132 | net/ipx/af_ipx.c | ipx_interface *i; |
i | 1141 | net/ipx/af_ipx.c | for (i = ipx_interfaces; i != NULL; i = i->if_next) { |
i | 1142 | net/ipx/af_ipx.c | len += sprintf(buffer+len, "%08lX ", ntohl(i->if_netnum)); |
i | 1144 | net/ipx/af_ipx.c | i->if_node[0], i->if_node[1], i->if_node[2], |
i | 1145 | net/ipx/af_ipx.c | i->if_node[3], i->if_node[4], i->if_node[5]); |
i | 1146 | net/ipx/af_ipx.c | len += sprintf(buffer+len, "%-9s", (i == ipx_primary_net) ? |
i | 1148 | net/ipx/af_ipx.c | len += sprintf (buffer+len, "%-11s", ipx_device_name(i)); |
i | 1150 | net/ipx/af_ipx.c | ipx_frame_name(i->if_dlink_type)); |
i | 1176 | net/ipx/af_ipx.c | ipx_interface *i; |
i | 1186 | net/ipx/af_ipx.c | for (i = ipx_interfaces; i != NULL; i = i->if_next) { |
i | 1187 | net/ipx/af_ipx.c | for (s = i->if_sklist; s != NULL; s = s->next) { |
i | 1189 | net/ipx/af_ipx.c | htonl(i->if_netnum), |
i | 1603 | net/ipx/af_ipx.c | int l,i; |
i | 1607 | net/ipx/af_ipx.c | for (i=0; i < 8 ; i++, --len) { |
i | 1609 | net/ipx/af_ipx.c | *(p++) = h2c[(d[i] >> 4) & 0x0f]; |
i | 1610 | net/ipx/af_ipx.c | *(p++) = h2c[d[i] & 0x0f]; |
i | 1621 | net/ipx/af_ipx.c | for (i=0; i < 8 ; i++, --len) |
i | 1623 | net/ipx/af_ipx.c | *(p++) = ' '<= d[i] && d[i]<'\177' ? d[i] : '.'; |
i | 1627 | net/ipx/af_ipx.c | d += i; |
i | 206 | net/netrom/nr_dev.c | int i; |
i | 239 | net/netrom/nr_dev.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 240 | net/netrom/nr_dev.c | skb_queue_head_init(&dev->buffs[i]); |
i | 72 | net/netrom/nr_route.c | int i, found; |
i | 142 | net/netrom/nr_route.c | for (found = 0, i = 0; i < nr_node->count; i++) { |
i | 143 | net/netrom/nr_route.c | if (nr_node->routes[i].neighbour == nr_neigh->number) { |
i | 144 | net/netrom/nr_route.c | nr_node->routes[i].quality = quality; |
i | 145 | net/netrom/nr_route.c | nr_node->routes[i].obs_count = obs_count; |
i | 213 | net/netrom/nr_route.c | for (i = 0; i < nr_node->count; i++) { |
i | 214 | net/netrom/nr_route.c | if (nr_node->routes[i].neighbour == nr_neigh->number) { |
i | 215 | net/netrom/nr_route.c | if (i < nr_node->which) |
i | 216 | net/netrom/nr_route.c | nr_node->which = i; |
i | 294 | net/netrom/nr_route.c | int i; |
i | 308 | net/netrom/nr_route.c | for (i = 0; i < nr_node->count; i++) { |
i | 309 | net/netrom/nr_route.c | if (nr_node->routes[i].neighbour == nr_neigh->number) { |
i | 320 | net/netrom/nr_route.c | switch (i) { |
i | 408 | net/netrom/nr_route.c | int i; |
i | 416 | net/netrom/nr_route.c | for (i = 0; i < s->count; i++) { |
i | 417 | net/netrom/nr_route.c | switch (s->routes[i].obs_count) { |
i | 429 | net/netrom/nr_route.c | if (t->number == s->routes[i].neighbour) { |
i | 441 | net/netrom/nr_route.c | switch (i) { |
i | 452 | net/netrom/nr_route.c | s->routes[i].obs_count--; |
i | 472 | net/netrom/nr_route.c | int i; |
i | 485 | net/netrom/nr_route.c | for (i = 0; i < t->count; i++) { |
i | 486 | net/netrom/nr_route.c | if (t->routes[i].neighbour == s->number) { |
i | 489 | net/netrom/nr_route.c | switch (i) { |
i | 703 | net/netrom/nr_route.c | int i; |
i | 716 | net/netrom/nr_route.c | for (i = 0; i < nr_node->count; i++) { |
i | 718 | net/netrom/nr_route.c | nr_node->routes[i].quality, |
i | 719 | net/netrom/nr_route.c | nr_node->routes[i].obs_count, |
i | 720 | net/netrom/nr_route.c | nr_node->routes[i].neighbour); |
i | 491 | net/socket.c | int i, fd; |
i | 496 | net/socket.c | for (i = 0; i < NPROTO; ++i) |
i | 498 | net/socket.c | if (pops[i] == NULL) continue; |
i | 499 | net/socket.c | if (pops[i]->family == family) |
i | 503 | net/socket.c | if (i == NPROTO) |
i | 508 | net/socket.c | ops = pops[i]; |
i | 536 | net/socket.c | if ((i = sock->ops->create(sock, protocol)) < 0) |
i | 539 | net/socket.c | return(i); |
i | 557 | net/socket.c | int fd1, fd2, i; |
i | 586 | net/socket.c | if ((i = sock1->ops->socketpair(sock1, sock2)) < 0) |
i | 590 | net/socket.c | return(i); |
i | 623 | net/socket.c | int i; |
i | 636 | net/socket.c | if ((i = sock->ops->bind(sock, (struct sockaddr *)address, addrlen)) < 0) |
i | 638 | net/socket.c | return(i); |
i | 683 | net/socket.c | int i; |
i | 708 | net/socket.c | if ((i = sock->ops->dup(newsock, sock)) < 0) |
i | 711 | net/socket.c | return(i); |
i | 714 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
i | 715 | net/socket.c | if ( i < 0) |
i | 718 | net/socket.c | return(i); |
i | 745 | net/socket.c | int i; |
i | 779 | net/socket.c | i = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags); |
i | 780 | net/socket.c | if (i < 0) |
i | 782 | net/socket.c | return(i); |
i | 1228 | net/socket.c | int i; |
i | 1231 | net/socket.c | for(i = 0; i < NPROTO; i++) |
i | 1233 | net/socket.c | if (pops[i] != NULL) |
i | 1235 | net/socket.c | pops[i] = ops; |
i | 1236 | net/socket.c | pops[i]->family = family; |
i | 1238 | net/socket.c | return(i); |
i | 1252 | net/socket.c | int i; |
i | 1255 | net/socket.c | for(i = 0; i < NPROTO; i++) |
i | 1257 | net/socket.c | if (pops[i] == NULL) |
i | 1259 | net/socket.c | if (pops[i]->family == family) |
i | 1261 | net/socket.c | pops[i]=NULL; |
i | 1263 | net/socket.c | return(i); |
i | 1288 | net/socket.c | int i; |
i | 1296 | net/socket.c | for (i = 0; i < NPROTO; ++i) pops[i] = NULL; |
i | 102 | net/unix/af_unix.c | static unix_socket *unix_find_socket(struct inode *i) |
i | 109 | net/unix/af_unix.c | if(s->protinfo.af_unix.inode==i) |