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 | 93 | arch/alpha/kernel/irq.c | int i, len = 0; |
i | 96 | arch/alpha/kernel/irq.c | for (i = 0 ; i < 16 ; i++, action++) { |
i | 100 | arch/alpha/kernel/irq.c | i, kstat.interrupts[i], |
i | 206 | arch/alpha/kernel/irq.c | int i; |
i | 211 | arch/alpha/kernel/irq.c | for (i = 0; i < 16; i++) |
i | 212 | arch/alpha/kernel/irq.c | if (irq_action[i].handler) |
i | 213 | arch/alpha/kernel/irq.c | printk("[%s:%d] ", irq_action[i].name, i); |
i | 338 | arch/alpha/kernel/irq.c | unsigned int i, irqs = 0, irqmask; |
i | 341 | arch/alpha/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 342 | arch/alpha/kernel/irq.c | if (!irq_action[i].handler) { |
i | 343 | arch/alpha/kernel/irq.c | enable_irq(i); |
i | 344 | arch/alpha/kernel/irq.c | irqs |= (1 << i); |
i | 365 | arch/alpha/kernel/irq.c | unsigned int i, irqmask; |
i | 371 | arch/alpha/kernel/irq.c | i = ffz(~irqs); |
i | 372 | arch/alpha/kernel/irq.c | if (irqs != (1 << i)) |
i | 373 | arch/alpha/kernel/irq.c | i = -i; |
i | 374 | 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 | 85 | arch/alpha/kernel/ptrace.c | int i; |
i | 87 | arch/alpha/kernel/ptrace.c | for (i = 1; i < NR_TASKS; i++) { |
i | 88 | arch/alpha/kernel/ptrace.c | if (task[i] != NULL && (task[i]->pid == pid)) |
i | 89 | arch/alpha/kernel/ptrace.c | return task[i]; |
i | 471 | arch/alpha/kernel/ptrace.c | int displ, i, res, reg_b, off, nsaved = 0; |
i | 515 | arch/alpha/kernel/ptrace.c | for (i = 0; i < nsaved; ++i) { |
i | 516 | arch/alpha/kernel/ptrace.c | res = read_int(child, child->debugreg[i], &insn); |
i | 519 | arch/alpha/kernel/ptrace.c | child->debugreg[i + 2] = insn; |
i | 520 | arch/alpha/kernel/ptrace.c | DBG(DBG_BPT, (" -> next_pc=%lx\n", child->debugreg[i])); |
i | 521 | arch/alpha/kernel/ptrace.c | res = write_int(child, child->debugreg[i], BREAKINST); |
i | 531 | arch/alpha/kernel/ptrace.c | int i, nsaved = child->debugreg[4]; |
i | 540 | arch/alpha/kernel/ptrace.c | for (i = 0; i < nsaved; ++i) { |
i | 541 | 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 | 78 | arch/alpha/kernel/setup.c | for (i = memdesc->numclusters ; i > 0; i--, cluster++) { |
i | 73 | arch/alpha/kernel/signal.c | int i; |
i | 120 | arch/alpha/kernel/signal.c | for (i = 0; i < 31; i++) |
i | 121 | arch/alpha/kernel/signal.c | sw->fp[i] = get_fs_quad(sc->sc_fpregs+i); |
i | 130 | arch/alpha/kernel/signal.c | int i; |
i | 174 | arch/alpha/kernel/signal.c | for (i = 0; i < 31; i++) |
i | 175 | arch/alpha/kernel/signal.c | put_fs_quad(sw->fp[i], sc->sc_fpregs+i); |
i | 18 | arch/alpha/kernel/traps.c | long i; |
i | 41 | arch/alpha/kernel/traps.c | for (i = -3; i < 6; i++) |
i | 42 | arch/alpha/kernel/traps.c | printk("%c%08x%c",i?' ':'<',pc[i],i?' ':'>'); |
i | 44 | arch/alpha/kernel/traps.c | for (i = 0 ; i < 5000000000 ; 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] & MAP_PAGE_RESERVED) |
i | 73 | arch/alpha/mm/init.c | else if (!mem_map[i]) |
i | 76 | arch/alpha/mm/init.c | shared += mem_map[i]-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] & MAP_PAGE_RESERVED) |
i | 197 | arch/alpha/mm/init.c | if (!mem_map[i]) |
i | 199 | arch/alpha/mm/init.c | val->sharedram += mem_map[i]-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 | 165 | arch/i386/kernel/irq.c | int i, len = 0; |
i | 168 | arch/i386/kernel/irq.c | for (i = 0 ; i < 16 ; i++, action++) { |
i | 172 | arch/i386/kernel/irq.c | i, kstat.interrupts[i], |
i | 300 | arch/i386/kernel/irq.c | unsigned int i, irqs = 0, irqmask; |
i | 304 | arch/i386/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 305 | arch/i386/kernel/irq.c | if (!request_irq(i, no_action, SA_PROBE, "probe")) { |
i | 306 | arch/i386/kernel/irq.c | enable_irq(i); |
i | 307 | arch/i386/kernel/irq.c | irqs |= (1 << i); |
i | 316 | arch/i386/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 317 | arch/i386/kernel/irq.c | if (irqs & (1 << i) & irqmask) { |
i | 318 | arch/i386/kernel/irq.c | irqs ^= (1 << i); |
i | 319 | arch/i386/kernel/irq.c | free_irq(i); |
i | 330 | arch/i386/kernel/irq.c | unsigned int i, irqmask; |
i | 333 | arch/i386/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 334 | arch/i386/kernel/irq.c | if (irqs & (1 << i)) { |
i | 335 | arch/i386/kernel/irq.c | free_irq(i); |
i | 344 | arch/i386/kernel/irq.c | i = ffz(~irqs); |
i | 345 | arch/i386/kernel/irq.c | if (irqs != (irqs & (1 << i))) |
i | 346 | arch/i386/kernel/irq.c | i = -i; |
i | 347 | arch/i386/kernel/irq.c | return i; |
i | 352 | arch/i386/kernel/irq.c | int i; |
i | 358 | arch/i386/kernel/irq.c | for (i = 0; i < 16 ; i++) |
i | 359 | arch/i386/kernel/irq.c | set_intr_gate(0x20+i,bad_interrupt[i]); |
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 | 47 | arch/i386/kernel/process.c | int i; |
i | 55 | arch/i386/kernel/process.c | for (i = 0 ; i < 768 ; i++) |
i | 76 | arch/i386/kernel/process.c | int i; |
i | 78 | arch/i386/kernel/process.c | for (i=0; i<0x10000; i++) |
i | 85 | arch/i386/kernel/process.c | int i, j; |
i | 92 | arch/i386/kernel/process.c | for (i=0; i<100; i++) { |
i | 137 | arch/i386/kernel/process.c | int i; |
i | 142 | arch/i386/kernel/process.c | for (i=1 ; i<NR_TASKS ; i++) { |
i | 143 | arch/i386/kernel/process.c | if (task[i] == current) { |
i | 144 | arch/i386/kernel/process.c | set_ldt_desc(gdt+(i<<1)+ |
i | 146 | arch/i386/kernel/process.c | load_ldt(i); |
i | 151 | arch/i386/kernel/process.c | for (i=0 ; i<8 ; i++) |
i | 152 | arch/i386/kernel/process.c | current->debugreg[i] = 0; |
i | 158 | arch/i386/kernel/process.c | int i; |
i | 190 | arch/i386/kernel/process.c | for (i = 0; i < IO_BITMAP_SIZE+1 ; i++) /* IO bitmap is actually SIZE+1 */ |
i | 191 | arch/i386/kernel/process.c | p->tss.io_bitmap[i] = ~0; |
i | 226 | arch/i386/kernel/process.c | int i; |
i | 236 | arch/i386/kernel/process.c | for (i = 0; i < 8; i++) |
i | 237 | 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 | 303 | arch/i386/kernel/ptrace.c | int i; |
i | 446 | arch/i386/kernel/ptrace.c | for(i=0; i<4; i++) |
i | 447 | arch/i386/kernel/ptrace.c | if ((0x5f54 >> ((data >> (16 + 4*i)) & 0xf)) & 1) |
i | 98 | arch/i386/kernel/traps.c | int i; |
i | 121 | arch/i386/kernel/traps.c | store_TR(i); |
i | 125 | arch/i386/kernel/traps.c | current->comm, current->pid, 0xffff & i, current->kernel_stack_page); |
i | 127 | arch/i386/kernel/traps.c | for(i=0; i < kstack_depth_to_print; i++) { |
i | 130 | arch/i386/kernel/traps.c | if (i && ((i % 8) == 0)) |
i | 136 | arch/i386/kernel/traps.c | i = 1; |
i | 152 | arch/i386/kernel/traps.c | if (i && ((i % 8) == 0)) |
i | 155 | arch/i386/kernel/traps.c | i++; |
i | 159 | arch/i386/kernel/traps.c | for(i=0;i<20;i++) |
i | 160 | arch/i386/kernel/traps.c | printk("%02x ",0xff & get_seg_byte(regs->cs,(i+(char *)regs->eip))); |
i | 306 | arch/i386/kernel/traps.c | int i; |
i | 330 | arch/i386/kernel/traps.c | for (i=18;i<48;i++) |
i | 331 | arch/i386/kernel/traps.c | set_trap_gate(i,&reserved); |
i | 339 | 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 | 67 | arch/i386/mm/init.c | int i,free = 0,total = 0,reserved = 0; |
i | 73 | arch/i386/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 74 | arch/i386/mm/init.c | while (i-- > 0) { |
i | 76 | arch/i386/mm/init.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 78 | arch/i386/mm/init.c | else if (!mem_map[i]) |
i | 81 | arch/i386/mm/init.c | shared += mem_map[i]-1; |
i | 221 | arch/i386/mm/init.c | int i; |
i | 223 | arch/i386/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 228 | arch/i386/mm/init.c | while (i-- > 0) { |
i | 229 | arch/i386/mm/init.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 232 | arch/i386/mm/init.c | if (!mem_map[i]) |
i | 234 | arch/i386/mm/init.c | val->sharedram += mem_map[i]-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 | 133 | arch/mips/kernel/process.c | int i; |
i | 143 | arch/mips/kernel/process.c | for (i = 0; i < 8; i++) |
i | 144 | 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 | 629 | arch/sparc/mm/srmmu.c | int i; |
i | 644 | arch/sparc/mm/srmmu.c | for(i = 0; i < num_contexts; i++) |
i | 645 | arch/sparc/mm/srmmu.c | srmmu_pgd_set(&lnx_root[i], pmdp); |
i | 781 | arch/sparc/mm/srmmu.c | for(i=0; i<num_contexts; i++) |
i | 782 | 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 | 434 | arch/sparc/mm/sun4c.c | int phys_seg, i, min_prom_segmap; |
i | 452 | arch/sparc/mm/sun4c.c | for(i=0; i<num_segmaps; i++) phys_seg_map[i] = PSEG_AVL; |
i | 453 | arch/sparc/mm/sun4c.c | for(i=num_segmaps; i<PSEG_ENTRIES; i++) phys_seg_map[i] = PSEG_RSV; |
i | 510 | arch/sparc/mm/sun4c.c | for(i=0; i<num_contexts; i++) |
i | 511 | arch/sparc/mm/sun4c.c | (*romvec->pv_setctxt)(i, (char *) addr, phys_seg); |
i | 547 | arch/sparc/mm/sun4c.c | for(i=0; i<num_contexts; i++) |
i | 548 | 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 | 534 | drivers/block/aztcd.c | { int i, st; |
i | 550 | drivers/block/aztcd.c | { if ((i=aztUpdateToc())<0) RETURNM("aztcd_ioctl 3", i); /* error reading TOC */ |
i | 585 | drivers/block/aztcd.c | i = aztPlay(&azt_Play); |
i | 586 | drivers/block/aztcd.c | if (i < 0) |
i | 651 | drivers/block/aztcd.c | i = aztPlay(&azt_Play); |
i | 652 | drivers/block/aztcd.c | if (i < 0) |
i | 686 | drivers/block/aztcd.c | i = aztPlay(&azt_Play); |
i | 687 | drivers/block/aztcd.c | if (i < 0) |
i | 865 | drivers/block/aztcd.c | int i; |
i | 866 | drivers/block/aztcd.c | for (i = 0; i < AZT_BUF_SIZ && azt_buf_bn[i] != bn; ++i) |
i | 868 | drivers/block/aztcd.c | if (i < AZT_BUF_SIZ) { |
i | 869 | drivers/block/aztcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
i | 871 | drivers/block/aztcd.c | if (azt_buf_out != i) { |
i | 872 | drivers/block/aztcd.c | azt_buf_out = i; |
i | 873 | drivers/block/aztcd.c | if (azt_buf_bn[i] != bn) { |
i | 1228 | drivers/block/aztcd.c | int i; |
i | 1230 | drivers/block/aztcd.c | for (i=0; i<2048; i++) { |
i | 1305 | drivers/block/aztcd.c | { int i; |
i | 1310 | drivers/block/aztcd.c | for (i = 0; i < AZT_BUF_SIZ; ++i) |
i | 1311 | drivers/block/aztcd.c | azt_buf_bn[i] = -1; |
i | 1744 | drivers/block/aztcd.c | { int i, px; |
i | 1751 | drivers/block/aztcd.c | for (i = 0; i < MAX_TRACKS; i++) |
i | 1752 | drivers/block/aztcd.c | Toc[i].pointIndex = 0; |
i | 1754 | drivers/block/aztcd.c | i = DiskInfo.last + 3; |
i | 1775 | drivers/block/aztcd.c | i--; |
i | 1778 | drivers/block/aztcd.c | if (i <= 0) |
i | 1786 | drivers/block/aztcd.c | for (i=0;i<=DiskInfo.last;i++) /*Unterscheidung zw. Audio- und Datendisk???*/ |
i | 1787 | drivers/block/aztcd.c | { if ((Toc[i].ctrl_addr)==0x01) |
i | 1789 | drivers/block/aztcd.c | if ((Toc[i].ctrl_addr)==0x41) |
i | 1798 | drivers/block/aztcd.c | for (i = 1; i <= DiskInfo.last+1; i++) |
i | 1800 | drivers/block/aztcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
i | 1801 | drivers/block/aztcd.c | Toc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame, |
i | 1802 | drivers/block/aztcd.c | Toc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame); |
i | 1803 | drivers/block/aztcd.c | for (i = 100; i < 103; i++) |
i | 1805 | drivers/block/aztcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
i | 1806 | drivers/block/aztcd.c | Toc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame, |
i | 1807 | drivers/block/aztcd.c | Toc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame); |
i | 635 | drivers/block/cdu31a.c | int i; |
i | 694 | drivers/block/cdu31a.c | for (i=0; i<8; i++) |
i | 722 | drivers/block/cdu31a.c | for (i=0; i<10; i++) |
i | 1120 | drivers/block/cdu31a.c | int i; |
i | 1128 | drivers/block/cdu31a.c | for(i=0; i<CD_XA_HEAD; i++) |
i | 1167 | drivers/block/cdu31a.c | for(i=0; i<CD_XA_TAIL; i++) |
i | 1775 | drivers/block/cdu31a.c | int i; |
i | 1780 | drivers/block/cdu31a.c | for (i = 0; i < num_tracks; i++) |
i | 1782 | drivers/block/cdu31a.c | if (sony_toc->tracks[i].track == track) |
i | 1784 | drivers/block/cdu31a.c | return i; |
i | 2244 | drivers/block/cdu31a.c | int i; |
i | 2306 | drivers/block/cdu31a.c | i=verify_area(VERIFY_READ, (char *) arg, 6); |
i | 2307 | drivers/block/cdu31a.c | if(i) |
i | 2308 | drivers/block/cdu31a.c | return i; |
i | 2313 | drivers/block/cdu31a.c | for (i=1; i<7; i++) |
i | 2315 | drivers/block/cdu31a.c | params[i] = int_to_bcd(params[i]); |
i | 2340 | drivers/block/cdu31a.c | i=verify_area(VERIFY_WRITE, hdr, sizeof(*hdr)); |
i | 2341 | drivers/block/cdu31a.c | if(i<0) |
i | 2342 | drivers/block/cdu31a.c | return i; |
i | 2363 | drivers/block/cdu31a.c | i=verify_area(VERIFY_READ, entry, sizeof(*entry)); |
i | 2364 | drivers/block/cdu31a.c | if(i<0) |
i | 2365 | drivers/block/cdu31a.c | return i; |
i | 2366 | drivers/block/cdu31a.c | i=verify_area(VERIFY_WRITE, entry, sizeof(*entry)); |
i | 2367 | drivers/block/cdu31a.c | if(i<0) |
i | 2368 | drivers/block/cdu31a.c | return i; |
i | 2419 | drivers/block/cdu31a.c | i=verify_area(VERIFY_READ, (char *) arg, sizeof(ti)); |
i | 2420 | drivers/block/cdu31a.c | if(i<0) |
i | 2421 | drivers/block/cdu31a.c | return i; |
i | 2488 | drivers/block/cdu31a.c | i=verify_area(VERIFY_READ, (char *) arg, sizeof(volctrl)); |
i | 2489 | drivers/block/cdu31a.c | if(i<0) |
i | 2490 | drivers/block/cdu31a.c | return i; |
i | 2517 | drivers/block/cdu31a.c | i=verify_area(VERIFY_READ, (char *) arg, sizeof(ra)); |
i | 2518 | drivers/block/cdu31a.c | if(i<0) |
i | 2519 | drivers/block/cdu31a.c | return i; |
i | 2522 | drivers/block/cdu31a.c | i=verify_area(VERIFY_WRITE, ra.buf, CD_FRAMESIZE_RAW * ra.nframes); |
i | 2523 | drivers/block/cdu31a.c | if(i<0) |
i | 2524 | drivers/block/cdu31a.c | return i; |
i | 2838 | drivers/block/cdu31a.c | int i; |
i | 2880 | drivers/block/cdu31a.c | i = 0; |
i | 2881 | drivers/block/cdu31a.c | while ( (cdu31a_addresses[i].base != 0) |
i | 2884 | drivers/block/cdu31a.c | if (check_region(cdu31a_addresses[i].base, 4)) { |
i | 2885 | drivers/block/cdu31a.c | i++; |
i | 2888 | drivers/block/cdu31a.c | get_drive_configuration(cdu31a_addresses[i].base, |
i | 2894 | drivers/block/cdu31a.c | irq_used = cdu31a_addresses[i].int_num; |
i | 2898 | 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 | 658 | drivers/block/cm206.c | for (i=0; i<CURRENT->nr_sectors; i++) { |
i | 659 | drivers/block/cm206.c | cd_sec_no = (CURRENT->sector+i)/4; /* 4 times 512 bytes */ |
i | 660 | drivers/block/cm206.c | quarter = (CURRENT->sector+i) % 4; |
i | 661 | drivers/block/cm206.c | dest = CURRENT->buffer + i*512; |
i | 717 | drivers/block/cm206.c | int i; |
i | 721 | drivers/block/cm206.c | for (i=0; i<4; i++) type_0_command(seek_command[i], 0); |
i | 743 | drivers/block/cm206.c | int i, lba, l, old_lba=0; |
i | 749 | drivers/block/cm206.c | for (i=track; i>0; i--) if (cd->toc[i].track) { |
i | 750 | drivers/block/cm206.c | min = fsm2lba(cd->toc[i].fsm); |
i | 797 | drivers/block/cm206.c | int i; |
i | 801 | drivers/block/cm206.c | for (i=0; i<3; i++) cd->toc[1].fsm[i] = cd->disc_status[3+i]; |
i | 813 | drivers/block/cm206.c | int i; |
i | 814 | drivers/block/cm206.c | for (i=0; i<9; i++) type_0_command(play_command[i], 0); |
i | 815 | drivers/block/cm206.c | for (i=0; i<3; i++) |
i | 816 | drivers/block/cm206.c | PLAY_TO.fsm[i] = play_command[i+4]; |
i | 824 | drivers/block/cm206.c | int i; |
i | 827 | drivers/block/cm206.c | for (i=0; i<3; i++) { |
i | 828 | drivers/block/cm206.c | play_command[i+1] = cd->audio_status[i+2]; |
i | 829 | drivers/block/cm206.c | play_command[i+4] = PLAY_TO.fsm[i]; |
i | 833 | drivers/block/cm206.c | for (i=0; i<3; i++) { |
i | 834 | drivers/block/cm206.c | play_command[i+1] = cd->toc[from].fsm[i]; |
i | 835 | drivers/block/cm206.c | PLAY_TO.fsm[i] = play_command[i+4] = cd->toc[to+1].fsm[i]; |
i | 839 | drivers/block/cm206.c | for (i=0; i<7; i++) type_0_command(play_command[i],0); |
i | 840 | drivers/block/cm206.c | for (i=0; i<2; i++) type_0_command(0x2, 0); /* volume */ |
i | 846 | drivers/block/cm206.c | int i; |
i | 850 | drivers/block/cm206.c | for (i=2; i<6; i++) q[i]=bcdbin(q[i]); |
i | 1134 | drivers/block/cm206.c | int i; |
i | 1135 | drivers/block/cm206.c | for (i=0; i<2; i++) { |
i | 1136 | drivers/block/cm206.c | if (0x300 <= cm206[i] && i<= 0x370 && cm206[i] % 0x10 == 0) { |
i | 1137 | drivers/block/cm206.c | cm206_base = cm206[i]; |
i | 1140 | drivers/block/cm206.c | else if (3 <= cm206[i] && cm206[i] <= 15) { |
i | 1141 | drivers/block/cm206.c | cm206_irq = cm206[i]; |
i | 1251 | drivers/block/cm206.c | int i; |
i | 1253 | drivers/block/cm206.c | for(i=1; i<=p[0]; i++) { |
i | 1254 | drivers/block/cm206.c | if (0x300 <= p[i] && i<= 0x370 && p[i] % 0x10 == 0) { |
i | 1255 | drivers/block/cm206.c | cm206_base = p[i]; |
i | 1258 | drivers/block/cm206.c | else if (3 <= p[i] && p[i] <= 15) { |
i | 1259 | drivers/block/cm206.c | cm206_irq = p[i]; |
i | 449 | drivers/block/floppy.c | #define _WAIT(x,i) CALL(ret=wait_til_done((x),i)) |
i | 873 | drivers/block/floppy.c | int i, drive, saved_drive; |
i | 879 | drivers/block/floppy.c | for(i=0; i< N_DRIVE; i++){ |
i | 880 | drivers/block/floppy.c | drive = (saved_drive + i + 1 ) % N_DRIVE; |
i | 976 | drivers/block/floppy.c | int i; |
i | 979 | drivers/block/floppy.c | for(i=0; i< raw_cmd.cmd_count; i++) |
i | 980 | drivers/block/floppy.c | printk("%x,", raw_cmd.cmd[i]); |
i | 1068 | drivers/block/floppy.c | int i = 0, counter, status; |
i | 1080 | drivers/block/floppy.c | resultsize = i; |
i | 1082 | drivers/block/floppy.c | return i; |
i | 1087 | drivers/block/floppy.c | if (i >= MAX_REPLIES) { |
i | 1091 | drivers/block/floppy.c | reply_buffer[i++] = inb_p(FD_DATA); |
i | 1097 | drivers/block/floppy.c | status, fdc, i); |
i | 1349 | drivers/block/floppy.c | int i,ready_date,r, flags,dflags; |
i | 1381 | drivers/block/floppy.c | for(i=0; i< raw_cmd.cmd_count; i++) |
i | 1382 | drivers/block/floppy.c | r|=output_byte( raw_cmd.cmd[i] ); |
i | 1579 | drivers/block/floppy.c | int i; |
i | 1585 | drivers/block/floppy.c | for(i=0; i<inr; i++) |
i | 1586 | drivers/block/floppy.c | printk("%d %x\n", i, reply_buffer[i] ); |
i | 1595 | drivers/block/floppy.c | for(i=0; i<inr; i++) |
i | 1596 | drivers/block/floppy.c | printk("%d %x\n", i, reply_buffer[i] ); |
i | 1689 | drivers/block/floppy.c | int i; |
i | 1701 | drivers/block/floppy.c | for(i=0; i < OLOGSIZE; i++) |
i | 1703 | drivers/block/floppy.c | output_log[(i+output_log_pos) % OLOGSIZE].data, |
i | 1704 | drivers/block/floppy.c | output_log[(i+output_log_pos) % OLOGSIZE].status, |
i | 1705 | drivers/block/floppy.c | output_log[(i+output_log_pos) % OLOGSIZE].jiffies); |
i | 1708 | drivers/block/floppy.c | for(i=0; i<resultsize; i++){ |
i | 1709 | drivers/block/floppy.c | printk("%2x ", reply_buffer[i]); |
i | 1715 | drivers/block/floppy.c | for(i=0; i<N_FDC; i++){ |
i | 1717 | drivers/block/floppy.c | printk("dor %d = %x\n", i, fdc_state[i].dor ); |
i | 1718 | drivers/block/floppy.c | outb_p(fdc_state[i].address+2, fdc_state[i].dor); |
i | 2791 | drivers/block/floppy.c | int i; |
i | 2793 | drivers/block/floppy.c | i = verify_area(VERIFY_WRITE,param,size); |
i | 2794 | drivers/block/floppy.c | if (i) |
i | 2795 | drivers/block/floppy.c | return i; |
i | 2830 | drivers/block/floppy.c | int i, drive, count, ret; |
i | 2864 | drivers/block/floppy.c | i = verify_area(VERIFY_READ, raw_cmd.data, count ); |
i | 2865 | drivers/block/floppy.c | if (i) |
i | 2866 | drivers/block/floppy.c | return i; |
i | 2887 | drivers/block/floppy.c | for( i=0; i< raw_cmd.reply_count; i++) |
i | 2888 | drivers/block/floppy.c | raw_cmd.reply[i] = reply_buffer[i]; |
i | 2898 | drivers/block/floppy.c | i=fd_copyout( raw_cmd.data, floppy_track_buffer, count); |
i | 2899 | drivers/block/floppy.c | if (i) |
i | 2900 | drivers/block/floppy.c | return i; |
i | 2924 | drivers/block/floppy.c | int i,device,drive,type,cnt; |
i | 2936 | drivers/block/floppy.c | i=verify_area(VERIFY_WRITE,(void *) param,16); |
i | 2937 | drivers/block/floppy.c | if (i) |
i | 2938 | drivers/block/floppy.c | return i; |
i | 2985 | drivers/block/floppy.c | CALL(i = raw_cmd_ioctl((void *) param)); |
i | 2987 | drivers/block/floppy.c | return i; |
i | 3450 | drivers/block/floppy.c | int i; |
i | 3452 | drivers/block/floppy.c | for (i=0; i < ARRAY_SIZE(default_drive_params); i++){ |
i | 3454 | drivers/block/floppy.c | default_drive_params[i].params.flags |= 0x80; |
i | 3456 | drivers/block/floppy.c | default_drive_params[i].params.flags &= ~0x80; |
i | 3463 | drivers/block/floppy.c | int i; |
i | 3465 | drivers/block/floppy.c | for (i=0; i < ARRAY_SIZE(default_drive_params); i++){ |
i | 3467 | drivers/block/floppy.c | default_drive_params[i].params.select_delay = 0; |
i | 3468 | drivers/block/floppy.c | default_drive_params[i].params.flags |= FD_SILENT_DCL_CLEAR; |
i | 3470 | drivers/block/floppy.c | default_drive_params[i].params.select_delay = 2*HZ/100; |
i | 3471 | drivers/block/floppy.c | default_drive_params[i].params.flags &= ~FD_SILENT_DCL_CLEAR; |
i | 3545 | drivers/block/floppy.c | int i; |
i | 3549 | drivers/block/floppy.c | for(i=0; i< ARRAY_SIZE(config_params); i++){ |
i | 3550 | drivers/block/floppy.c | if (strcmp(str,config_params[i].name) == 0 ){ |
i | 3554 | drivers/block/floppy.c | param = config_params[i].def_param; |
i | 3555 | drivers/block/floppy.c | config_params[i].fn(ints,param); |
i | 3561 | drivers/block/floppy.c | for(i=0; i< ARRAY_SIZE(config_params); i++) |
i | 3562 | drivers/block/floppy.c | printk(" %s",config_params[i].name); |
i | 3569 | drivers/block/floppy.c | int i,drive; |
i | 3579 | drivers/block/floppy.c | for(i=0; i<256; i++) |
i | 3580 | drivers/block/floppy.c | if ( TYPE(i)) |
i | 3581 | drivers/block/floppy.c | floppy_sizes[i] = floppy_type[TYPE(i)].size >> 1; |
i | 3583 | drivers/block/floppy.c | floppy_sizes[i] = MAX_DISK_SIZE; |
i | 3598 | drivers/block/floppy.c | for (i = 0 ; i < N_FDC ; i++) { |
i | 3599 | drivers/block/floppy.c | fdc = i; |
i | 3628 | drivers/block/floppy.c | for (i = 0 ; i < N_FDC ; i++) { |
i | 3629 | drivers/block/floppy.c | fdc = i; |
i | 3669 | drivers/block/floppy.c | int i; |
i | 3679 | drivers/block/floppy.c | for(i=0; i< N_FDC; i++){ |
i | 3681 | drivers/block/floppy.c | fdc = i; |
i | 3770 | drivers/block/floppy.c | char **environ,*env,*ptr,c,i; |
i | 3777 | drivers/block/floppy.c | for(i=0; i<strlen(name); i++) |
i | 3778 | drivers/block/floppy.c | if ( (char) get_fs_byte(env++) != name[i] ) |
i | 3780 | drivers/block/floppy.c | if(i == strlen(name)){ |
i | 113 | drivers/block/genhd.c | int i, minor = current_minor, found_dm6 = 0; |
i | 175 | drivers/block/genhd.c | for (i=1 ; i<=4 ; minor++,i++,p++) { |
i | 192 | drivers/block/genhd.c | for (i = 4 ; i < 16 ; i++, current_minor++) { |
i | 212 | drivers/block/genhd.c | int i; |
i | 264 | drivers/block/genhd.c | for (i = 0 ; i < label->d_npartitions; i++, partition++) { |
i | 320 | drivers/block/genhd.c | int i; |
i | 328 | drivers/block/genhd.c | for (i=start ; i < j ; i++) |
i | 329 | drivers/block/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
i | 334 | drivers/block/genhd.c | int i; |
i | 340 | drivers/block/genhd.c | for (i = 0 ; i < j; i++) { |
i | 341 | drivers/block/genhd.c | dev->part[i].start_sect = 0; |
i | 342 | drivers/block/genhd.c | dev->part[i].nr_sects = 0; |
i | 349 | drivers/block/genhd.c | for (i=0 ; i < j ; i++) |
i | 350 | 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 | 101 | drivers/block/hd.c | int i; |
i | 107 | drivers/block/hd.c | i = inb_p(0x40); |
i | 108 | drivers/block/hd.c | i |= inb(0x40) << 8; |
i | 110 | drivers/block/hd.c | return(t - i); |
i | 174 | drivers/block/hd.c | int i = inb_p(HD_STATUS); |
i | 176 | drivers/block/hd.c | if (!OK_STATUS(i)) { |
i | 177 | drivers/block/hd.c | dump_status("check_status", i); |
i | 361 | drivers/block/hd.c | unsigned int i; |
i | 364 | drivers/block/hd.c | for (i = 0; i < 500000 ; i++) { |
i | 375 | drivers/block/hd.c | int i; |
i | 378 | drivers/block/hd.c | for(i = 0; i < 1000; i++) barrier(); |
i | 380 | drivers/block/hd.c | for(i = 0; i < 1000; i++) barrier(); |
i | 389 | drivers/block/hd.c | static int i; |
i | 394 | drivers/block/hd.c | i = -1; |
i | 401 | drivers/block/hd.c | if (++i < NR_HD) { |
i | 402 | drivers/block/hd.c | special_op[i] = recalibrate[i] = 1; |
i | 403 | drivers/block/hd.c | if (unmask_intr[i]) { |
i | 404 | drivers/block/hd.c | unmask_intr[i] = DEFAULT_UNMASK_INTR; |
i | 405 | drivers/block/hd.c | printk("hd%c: reset irq-unmasking to %d\n",i+'a', |
i | 408 | drivers/block/hd.c | if (mult_req[i] || mult_count[i]) { |
i | 409 | drivers/block/hd.c | mult_count[i] = 0; |
i | 410 | drivers/block/hd.c | mult_req[i] = DEFAULT_MULT_COUNT; |
i | 411 | drivers/block/hd.c | printk("hd%c: reset multiple mode to %d\n",i+'a', |
i | 414 | drivers/block/hd.c | hd_out(i,hd_info[i].sect,hd_info[i].sect,hd_info[i].head-1, |
i | 415 | drivers/block/hd.c | hd_info[i].cyl,WIN_SPECIFY,&reset_hd); |
i | 477 | drivers/block/hd.c | int i, retries = 100000, msect = mult_count[dev], nsect; |
i | 482 | drivers/block/hd.c | i = (unsigned) inb_p(HD_STATUS); |
i | 483 | drivers/block/hd.c | if (i & BUSY_STAT) |
i | 485 | drivers/block/hd.c | if (!OK_STATUS(i)) |
i | 487 | drivers/block/hd.c | if (i & DRQ_STAT) |
i | 490 | drivers/block/hd.c | dump_status("read_intr", i); |
i | 505 | drivers/block/hd.c | i = (CURRENT->nr_sectors -= nsect); |
i | 514 | drivers/block/hd.c | if (i > 0) { |
i | 550 | drivers/block/hd.c | int i; |
i | 555 | drivers/block/hd.c | if (OK_STATUS(i=inb_p(HD_STATUS))) { |
i | 556 | drivers/block/hd.c | if (i & DRQ_STAT) { |
i | 564 | drivers/block/hd.c | for (i = CURRENT->nr_sectors; i > 0;){ |
i | 565 | drivers/block/hd.c | i -= CURRENT->current_nr_sectors; |
i | 577 | drivers/block/hd.c | dump_status("multwrite_intr", i); |
i | 584 | drivers/block/hd.c | int i; |
i | 590 | drivers/block/hd.c | i = (unsigned) inb_p(HD_STATUS); |
i | 591 | drivers/block/hd.c | if (i & BUSY_STAT) |
i | 593 | drivers/block/hd.c | if (!OK_STATUS(i)) |
i | 595 | drivers/block/hd.c | if ((CURRENT->nr_sectors <= 1) || (i & DRQ_STAT)) |
i | 598 | drivers/block/hd.c | dump_status("write_intr", i); |
i | 604 | drivers/block/hd.c | i = --CURRENT->nr_sectors; |
i | 607 | drivers/block/hd.c | if (!i || (CURRENT->bh && !SUBSECTOR(i))) |
i | 609 | drivers/block/hd.c | if (i > 0) { |
i | 957 | drivers/block/hd.c | int i; |
i | 1008 | drivers/block/hd.c | i = NR_HD; |
i | 1009 | drivers/block/hd.c | while (i-- > 0) { |
i | 1018 | drivers/block/hd.c | hd[i<<6].nr_sects = bios_info[i].head * |
i | 1019 | drivers/block/hd.c | bios_info[i].sect * bios_info[i].cyl; |
i | 1020 | drivers/block/hd.c | hd_ident_info[i] = (struct hd_driveid *) kmalloc(512,GFP_KERNEL); |
i | 1021 | drivers/block/hd.c | special_op[i] = 1; |
i | 1034 | drivers/block/hd.c | for(i=0;i<(MAX_HD << 6);i++) hd_blocksizes[i] = 1024; |
i | 1087 | drivers/block/hd.c | int i; |
i | 1106 | drivers/block/hd.c | for (i=max_p - 1; i >=0 ; i--) { |
i | 1107 | drivers/block/hd.c | sync_dev(major | start | i); |
i | 1108 | drivers/block/hd.c | invalidate_inodes(major | start | i); |
i | 1109 | drivers/block/hd.c | invalidate_buffers(major | start | i); |
i | 1110 | drivers/block/hd.c | gdev->part[start+i].start_sect = 0; |
i | 1111 | drivers/block/hd.c | gdev->part[start+i].nr_sects = 0; |
i | 376 | drivers/block/ide-cd.c | int i; |
i | 432 | drivers/block/ide-cd.c | for (i=0; i<sizeof (failed_command->c); i++) |
i | 433 | drivers/block/ide-cd.c | printk ("%02x ", failed_command->c[i]); |
i | 1546 | drivers/block/ide-cd.c | int stat, ntracks, i; |
i | 1589 | drivers/block/ide-cd.c | for (i=0; i<=ntracks; i++) |
i | 1593 | drivers/block/ide-cd.c | byte *adr = (byte *)&(toc->ent[i].lba); |
i | 1594 | drivers/block/ide-cd.c | toc->ent[i].lba = msf_to_lba (adr[1], adr[2], adr[3]); |
i | 1597 | drivers/block/ide-cd.c | byte_swap_long (&toc->ent[i].lba); |
i | 400 | drivers/block/ide.c | int i; |
i | 406 | drivers/block/ide.c | i = inb_p(0x40); |
i | 407 | drivers/block/ide.c | i |= inb(0x40) << 8; |
i | 409 | drivers/block/ide.c | return (t - i); |
i | 690 | drivers/block/ide.c | int i = dev->mult_count ? dev->mult_count<<8 : 1<<8; |
i | 691 | drivers/block/ide.c | while (i-- > 0) /* try to flush data */ |
i | 712 | drivers/block/ide.c | int i; |
i | 740 | drivers/block/ide.c | i = (rq->nr_sectors -= nsect); |
i | 743 | drivers/block/ide.c | if (i > 0) { |
i | 756 | drivers/block/ide.c | int i; |
i | 769 | drivers/block/ide.c | i = --rq->nr_sectors; |
i | 773 | drivers/block/ide.c | if (i > 0) { |
i | 823 | drivers/block/ide.c | int i; |
i | 837 | drivers/block/ide.c | for (i = rq->nr_sectors; i > 0;){ |
i | 838 | drivers/block/ide.c | i -= rq->current_nr_sectors; |
i | 1398 | drivers/block/ide.c | unsigned int i, major, start, drive = DEVICE_NR(i_rdev); |
i | 1419 | drivers/block/ide.c | for (i = 0; i < (1<<PARTN_BITS); i++) { |
i | 1420 | drivers/block/ide.c | unsigned int minor = start + i; |
i | 2062 | drivers/block/ide.c | int i, hwif, drive = next_drive++; |
i | 2123 | drivers/block/ide.c | for (i=0; i++ < ints[0];) |
i | 2124 | drivers/block/ide.c | printk("%s=%d%c",p[i-1],ints[i],i<ints[0]?',':'\n'); |
i | 2351 | drivers/block/ide.c | int i; |
i | 2353 | drivers/block/ide.c | for(i = 0; i < 3; i++) { |
i | 451 | drivers/block/ll_rw_blk.c | int i; |
i | 473 | drivers/block/ll_rw_blk.c | i = blksize_size[major][MINOR(bh[0]->b_dev)]; |
i | 474 | drivers/block/ll_rw_blk.c | if (i) |
i | 475 | drivers/block/ll_rw_blk.c | correct_size = i; |
i | 479 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
i | 480 | drivers/block/ll_rw_blk.c | if (bh[i] && bh[i]->b_size != correct_size) { |
i | 483 | drivers/block/ll_rw_blk.c | correct_size, bh[i]->b_size); |
i | 500 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
i | 501 | drivers/block/ll_rw_blk.c | if (bh[i]) { |
i | 502 | drivers/block/ll_rw_blk.c | bh[i]->b_req = 1; |
i | 503 | drivers/block/ll_rw_blk.c | make_request(major, rw, bh[i]); |
i | 514 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
i | 515 | drivers/block/ll_rw_blk.c | if (bh[i]) |
i | 516 | drivers/block/ll_rw_blk.c | bh[i]->b_dirt = bh[i]->b_uptodate = 0; |
i | 523 | drivers/block/ll_rw_blk.c | int i, j; |
i | 545 | drivers/block/ll_rw_blk.c | for (j=0, i=0; i<nb;) |
i | 547 | drivers/block/ll_rw_blk.c | for (; j < 8 && i < nb; j++, i++, buf += buffersize) |
i | 560 | drivers/block/ll_rw_blk.c | req[j]->sector = (b[i] * buffersize) >> 9; |
i | 297 | drivers/block/mcd.c | int i, st; |
i | 316 | drivers/block/mcd.c | i = updateToc(); |
i | 317 | drivers/block/mcd.c | if (i < 0) |
i | 318 | drivers/block/mcd.c | return i; /* error reading TOC */ |
i | 333 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 345 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 366 | drivers/block/mcd.c | i = mcdPlay(&mcd_Play); |
i | 367 | drivers/block/mcd.c | if (i < 0) |
i | 403 | drivers/block/mcd.c | i = mcdPlay(&mcd_Play); |
i | 404 | drivers/block/mcd.c | if (i < 0) |
i | 417 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 449 | drivers/block/mcd.c | i = mcdPlay(&mcd_Play); |
i | 450 | drivers/block/mcd.c | if (i < 0) |
i | 558 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 559 | drivers/block/mcd.c | if (i < 0) |
i | 577 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 588 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 607 | drivers/block/mcd.c | int i; |
i | 608 | drivers/block/mcd.c | for (i = 0; i < MCD_BUF_SIZ && mcd_buf_bn[i] != bn; ++i) |
i | 610 | drivers/block/mcd.c | if (i < MCD_BUF_SIZ) { |
i | 611 | drivers/block/mcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
i | 613 | drivers/block/mcd.c | if (mcd_buf_out != i) { |
i | 614 | drivers/block/mcd.c | mcd_buf_out = i; |
i | 615 | drivers/block/mcd.c | if (mcd_buf_bn[i] != bn) { |
i | 1001 | drivers/block/mcd.c | int i = 4096; |
i | 1004 | drivers/block/mcd.c | } while ((inb(MCDPORT(1)) & MFL_STATUSorDATA) == MFL_STATUS && --i); |
i | 1007 | drivers/block/mcd.c | i = 4096; |
i | 1010 | drivers/block/mcd.c | } while ((inb(MCDPORT(1)) & MFL_STATUSorDATA) == MFL_STATUS && --i); |
i | 1091 | drivers/block/mcd.c | int i; |
i | 1092 | drivers/block/mcd.c | for (i = 0; i < MCD_BUF_SIZ; ++i) |
i | 1093 | drivers/block/mcd.c | mcd_buf_bn[i] = -1; |
i | 1348 | drivers/block/mcd.c | int i; |
i | 1354 | drivers/block/mcd.c | i = inb(MCDPORT(0)) & 0xFF; |
i | 1355 | drivers/block/mcd.c | return i; |
i | 1579 | drivers/block/mcd.c | int i, px; |
i | 1584 | drivers/block/mcd.c | for (i = 0; i < MAX_TRACKS; i++) |
i | 1585 | drivers/block/mcd.c | Toc[i].pointIndex = 0; |
i | 1587 | drivers/block/mcd.c | i = DiskInfo.last + 3; |
i | 1621 | drivers/block/mcd.c | i--; |
i | 1624 | drivers/block/mcd.c | if (i <= 0) |
i | 1640 | drivers/block/mcd.c | for (i = 1; i <= DiskInfo.last; i++) |
i | 1642 | drivers/block/mcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
i | 1643 | drivers/block/mcd.c | Toc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame, |
i | 1644 | drivers/block/mcd.c | Toc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame); |
i | 1645 | drivers/block/mcd.c | for (i = 100; i < 103; i++) |
i | 1647 | drivers/block/mcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
i | 1648 | drivers/block/mcd.c | Toc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame, |
i | 1649 | drivers/block/mcd.c | Toc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame); |
i | 497 | drivers/block/mcdx.c | int i; |
i | 499 | drivers/block/mcdx.c | if (-1 == (i = mcdx_transfer( |
i | 512 | drivers/block/mcdx.c | CURRENT->sector += i; |
i | 513 | drivers/block/mcdx.c | CURRENT->nr_sectors -= i; |
i | 514 | drivers/block/mcdx.c | CURRENT->buffer += (i * 512); |
i | 778 | drivers/block/mcdx.c | unsigned char i; |
i | 781 | drivers/block/mcdx.c | for (i = 1; i < cmdlen; i++) printk(" 0x%02x", cmd[i]); |
i | 859 | drivers/block/mcdx.c | int i; |
i | 863 | drivers/block/mcdx.c | for (i = 0; i < MCDX_NDRIVES; i++) { |
i | 864 | drivers/block/mcdx.c | if (mcdx_stuffp[i]) { |
i | 866 | drivers/block/mcdx.c | i, mcdx_stuffp[i])); |
i | 881 | drivers/block/mcdx.c | int i; |
i | 885 | drivers/block/mcdx.c | for (i = 0; i < MCDX_NDRIVES; i++) { |
i | 887 | drivers/block/mcdx.c | stuffp = mcdx_stuffp[i]; |
i | 896 | drivers/block/mcdx.c | mcdx_stuffp[i] = NULL; |
i | 1055 | drivers/block/mcdx.c | int i; |
i | 1057 | drivers/block/mcdx.c | for (i = 100; i; i--) (void) inb((unsigned int) stuffp->rreg_status); |
i | 522 | drivers/block/optcd.c | int i; |
i | 544 | drivers/block/optcd.c | for (i = 1; i <= DiskInfo.last + 1; i++) |
i | 547 | drivers/block/optcd.c | i, Toc[i].ctrl_addr, |
i | 548 | drivers/block/optcd.c | Toc[i].track, |
i | 549 | drivers/block/optcd.c | Toc[i].pointIndex, |
i | 550 | drivers/block/optcd.c | Toc[i].trackTime.min, |
i | 551 | drivers/block/optcd.c | Toc[i].trackTime.sec, |
i | 552 | drivers/block/optcd.c | Toc[i].trackTime.frame, |
i | 553 | drivers/block/optcd.c | Toc[i].diskTime.min, |
i | 554 | drivers/block/optcd.c | Toc[i].diskTime.sec, |
i | 555 | drivers/block/optcd.c | Toc[i].diskTime.frame); |
i | 556 | drivers/block/optcd.c | for (i = 100; i < 103; i++) |
i | 559 | drivers/block/optcd.c | i, Toc[i].ctrl_addr, |
i | 560 | drivers/block/optcd.c | Toc[i].track, |
i | 561 | drivers/block/optcd.c | Toc[i].pointIndex, |
i | 562 | drivers/block/optcd.c | Toc[i].trackTime.min, |
i | 563 | drivers/block/optcd.c | Toc[i].trackTime.sec, |
i | 564 | drivers/block/optcd.c | Toc[i].trackTime.frame, |
i | 565 | drivers/block/optcd.c | Toc[i].diskTime.min, |
i | 566 | drivers/block/optcd.c | Toc[i].diskTime.sec, |
i | 567 | drivers/block/optcd.c | Toc[i].diskTime.frame); |
i | 604 | drivers/block/optcd.c | int i; |
i | 608 | drivers/block/optcd.c | for (i = 0; i < OPT_BUF_SIZ; i++) |
i | 609 | drivers/block/optcd.c | opt_buf_bn[i] = OPT_NOBUF; |
i | 625 | drivers/block/optcd.c | int i, offs, nr_sectors; |
i | 626 | drivers/block/optcd.c | for (i = 0; i < OPT_BUF_SIZ && opt_buf_bn[i] != bn; ++i); |
i | 628 | drivers/block/optcd.c | printk("optcd: found %d\n", i); |
i | 630 | drivers/block/optcd.c | if (i >= OPT_BUF_SIZ) { |
i | 634 | drivers/block/optcd.c | offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
i | 636 | drivers/block/optcd.c | if (opt_buf_out != i) { |
i | 637 | drivers/block/optcd.c | opt_buf_out = i; |
i | 638 | drivers/block/optcd.c | if (opt_buf_bn[i] != bn) { |
i | 1294 | drivers/block/optcd.c | int count, i, ch; |
i | 1300 | drivers/block/optcd.c | for (i = 0, ch = -1; count > 0; count--) { |
i | 1303 | drivers/block/optcd.c | if (i < 99) |
i | 1304 | drivers/block/optcd.c | devname[i++] = ch; |
i | 1306 | drivers/block/optcd.c | devname[i] = '\0'; |
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 | 190 | drivers/block/ramdisk.c | i++; |
i | 731 | drivers/block/sbpcd.c | static void mark_timeout_delay(u_long i) |
i | 737 | drivers/block/sbpcd.c | static void mark_timeout_data(u_long i) |
i | 744 | drivers/block/sbpcd.c | static void mark_timeout_audio(u_long i) |
i | 818 | drivers/block/sbpcd.c | static INLINE u_char swap_nibbles(u_char i) |
i | 820 | drivers/block/sbpcd.c | return ((i<<4)|(i>>4)); |
i | 823 | drivers/block/sbpcd.c | static INLINE u_char byt2bcd(u_char i) |
i | 825 | drivers/block/sbpcd.c | return (((i/10)<<4)+i%10); |
i | 836 | drivers/block/sbpcd.c | int i; |
i | 839 | drivers/block/sbpcd.c | i=(msf.c[2] * CD_SECS + msf.c[1]) * CD_FRAMES + msf.c[0] - CD_BLOCK_OFFSET; |
i | 840 | drivers/block/sbpcd.c | if (i<0) return (0); |
i | 841 | drivers/block/sbpcd.c | return (i); |
i | 849 | drivers/block/sbpcd.c | int i; |
i | 851 | drivers/block/sbpcd.c | i=(msf[0] * CD_SECS + msf[1]) * CD_FRAMES + msf[2] - CD_BLOCK_OFFSET; |
i | 852 | drivers/block/sbpcd.c | if (i<0) return (0); |
i | 853 | drivers/block/sbpcd.c | return (i); |
i | 894 | drivers/block/sbpcd.c | int i; |
i | 896 | drivers/block/sbpcd.c | for (i=0;i<10;i++) drvcmd[i]=0; |
i | 902 | drivers/block/sbpcd.c | int i; |
i | 906 | drivers/block/sbpcd.c | for (i=maxtim_data;i!=0;i--) inb(CDi_status); |
i | 909 | drivers/block/sbpcd.c | for (i=maxtim02;i!=0;i--) inb(CDi_status); |
i | 913 | drivers/block/sbpcd.c | for (i=maxtim_data;i!=0;i--) inb(CDi_status); |
i | 920 | drivers/block/sbpcd.c | int i,j; |
i | 923 | drivers/block/sbpcd.c | for(timeout = jiffies + 1000, i=maxtim_data; timeout > jiffies; ) |
i | 925 | drivers/block/sbpcd.c | for ( ;i!=0;i--) |
i | 933 | drivers/block/sbpcd.c | i = 1; |
i | 937 | drivers/block/sbpcd.c | for(i=maxtim16;i!=0;i--) |
i | 945 | drivers/block/sbpcd.c | for(timeout = jiffies + 1000, i=maxtim_data; timeout > jiffies; ) |
i | 947 | drivers/block/sbpcd.c | for ( ;i!=0;i--) |
i | 955 | drivers/block/sbpcd.c | i = 1; |
i | 966 | drivers/block/sbpcd.c | int i; |
i | 968 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 969 | drivers/block/sbpcd.c | if (i&s_not_data_ready) return (0); |
i | 975 | drivers/block/sbpcd.c | int i; |
i | 977 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 978 | drivers/block/sbpcd.c | if (i&s_not_result_ready) return (0); |
i | 984 | drivers/block/sbpcd.c | int i; |
i | 986 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 987 | drivers/block/sbpcd.c | if (i&s_attention) return (1); |
i | 995 | drivers/block/sbpcd.c | int i,j,st=0; |
i | 1003 | drivers/block/sbpcd.c | for (i=0;i<response_count;i++) |
i | 1012 | drivers/block/sbpcd.c | msg(DBG_SEQ,"ResponseInfo: not_result_ready (got %d of %d bytes).\n", i, response_count); |
i | 1015 | drivers/block/sbpcd.c | infobuf[i]=inb(CDi_info); |
i | 1019 | drivers/block/sbpcd.c | for (i=0,timeout=jiffies+100;i<response_count;i++) |
i | 1033 | drivers/block/sbpcd.c | infobuf[i]=inb(CDi_info); |
i | 1039 | drivers/block/sbpcd.c | infobuf[i++]=inb(CDi_info); |
i | 1041 | drivers/block/sbpcd.c | j=i-response_count; |
i | 1044 | drivers/block/sbpcd.c | for (j=0;j<i;j++) |
i | 1047 | drivers/block/sbpcd.c | msg(DBG_CMD,"ResponseInfo:%s (%d,%d)\n",msgbuf,response_count,i); |
i | 1048 | drivers/block/sbpcd.c | j=response_count-i; |
i | 1050 | drivers/block/sbpcd.c | else return (i); |
i | 1106 | drivers/block/sbpcd.c | int i; |
i | 1114 | drivers/block/sbpcd.c | i=cmd_out_T(); |
i | 1115 | drivers/block/sbpcd.c | if (i>=0) i=infobuf[0]; |
i | 1118 | drivers/block/sbpcd.c | msg(DBG_TEA,"get_state_T error %d\n", i); |
i | 1119 | drivers/block/sbpcd.c | return (i); |
i | 1121 | drivers/block/sbpcd.c | if (i>=0) |
i | 1151 | drivers/block/sbpcd.c | int i,j; |
i | 1167 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1168 | drivers/block/sbpcd.c | if (!(i&s_not_result_ready)) break; |
i | 1181 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1182 | drivers/block/sbpcd.c | if (!(i&s_not_result_ready)) break; |
i | 1197 | drivers/block/sbpcd.c | i=inb(CDi_info); |
i | 1198 | drivers/block/sbpcd.c | msg(DBG_STA,"ResponseStatus: response %02X.\n", i); |
i | 1199 | drivers/block/sbpcd.c | EvaluateStatus(i); |
i | 1203 | drivers/block/sbpcd.c | msg(DBG_STA,"status_bits=%02X, i=%02X\n",D_S[d].status_bits,i); |
i | 1207 | drivers/block/sbpcd.c | return (i); |
i | 1213 | drivers/block/sbpcd.c | int i; |
i | 1221 | drivers/block/sbpcd.c | if (!fam0L_drive) for (i=0;i<6;i++) OUT(CDo_command,0); |
i | 1227 | drivers/block/sbpcd.c | int i; |
i | 1257 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1259 | drivers/block/sbpcd.c | msg(DBG_ERR,"cc_ReadError: cmd_out(CMDx_READ_ERR) returns %d (%02X)\n",i,i); |
i | 1260 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1261 | drivers/block/sbpcd.c | if (fam0_drive) i=1; |
i | 1262 | drivers/block/sbpcd.c | else i=2; |
i | 1263 | drivers/block/sbpcd.c | D_S[d].error_byte=infobuf[i]; |
i | 1264 | 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 | 1265 | drivers/block/sbpcd.c | i=sta2err(infobuf[i]); |
i | 1266 | drivers/block/sbpcd.c | return (i); |
i | 1275 | drivers/block/sbpcd.c | int i, j, l, ntries; |
i | 1281 | drivers/block/sbpcd.c | for (i=0;i<10;i++) sprintf(&msgbuf[i*3]," %02X",drvcmd[i]); |
i | 1282 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 1287 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1288 | drivers/block/sbpcd.c | if (!(i&s_not_result_ready)) |
i | 1292 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1296 | drivers/block/sbpcd.c | while (!(i&s_not_result_ready)); |
i | 1298 | drivers/block/sbpcd.c | for (i=0;i<10;i++) OUT(CDo_command,drvcmd[i]); |
i | 1306 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1307 | drivers/block/sbpcd.c | if (!(i&s_not_data_ready)) /* f.e. CMDT_DISKINFO */ |
i | 1317 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1319 | drivers/block/sbpcd.c | while (!(i&s_not_data_ready)); |
i | 1330 | drivers/block/sbpcd.c | i=inb(CDi_data); |
i | 1332 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1334 | drivers/block/sbpcd.c | while (!(i&s_not_data_ready)); |
i | 1339 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1340 | drivers/block/sbpcd.c | if (!(i&s_not_result_ready)) |
i | 1347 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1349 | drivers/block/sbpcd.c | while (!(i&s_not_result_ready)); |
i | 1389 | drivers/block/sbpcd.c | int i=0; |
i | 1395 | drivers/block/sbpcd.c | for (i=0;i<7;i++) |
i | 1396 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", drvcmd[i]); |
i | 1397 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 1400 | drivers/block/sbpcd.c | for (i=0;i<7;i++) OUT(CDo_command,drvcmd[i]); |
i | 1412 | drivers/block/sbpcd.c | else i=ResponseInfo(); |
i | 1413 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1418 | drivers/block/sbpcd.c | i=CDi_stat_loop(); |
i | 1419 | drivers/block/sbpcd.c | if ((i<0)||!(i&s_attention)) return (-8); |
i | 1431 | drivers/block/sbpcd.c | i=ResponseStatus(); |
i | 1433 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1438 | drivers/block/sbpcd.c | if ((flags_cmd_out&f_bit1)&&(i&p_success)) goto LOC_232; |
i | 1447 | drivers/block/sbpcd.c | i=cc_ReadError(); |
i | 1449 | drivers/block/sbpcd.c | msg(DBG_000,"cmd_out: cc_ReadError=%d\n", i); |
i | 1450 | drivers/block/sbpcd.c | return (i); |
i | 1455 | drivers/block/sbpcd.c | int i; |
i | 1502 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1503 | drivers/block/sbpcd.c | return (i); |
i | 1508 | drivers/block/sbpcd.c | int i; |
i | 1536 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1538 | drivers/block/sbpcd.c | return (i); |
i | 1543 | drivers/block/sbpcd.c | int i; |
i | 1570 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1571 | drivers/block/sbpcd.c | return (i); |
i | 1576 | drivers/block/sbpcd.c | int i; |
i | 1582 | drivers/block/sbpcd.c | i=cmd_out_T(); |
i | 1583 | drivers/block/sbpcd.c | return (i); |
i | 1588 | drivers/block/sbpcd.c | int i; |
i | 1602 | drivers/block/sbpcd.c | i=cmd_out_T(); |
i | 1603 | drivers/block/sbpcd.c | return (i); |
i | 1608 | drivers/block/sbpcd.c | int i, j; |
i | 1610 | drivers/block/sbpcd.c | i=cc_get_mode_T(); |
i | 1611 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1612 | drivers/block/sbpcd.c | for (i=0;i<10;i++) |
i | 1613 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 1614 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 1626 | drivers/block/sbpcd.c | i=cc_get_mode_T(); |
i | 1627 | drivers/block/sbpcd.c | for (i=0;i<10;i++) |
i | 1628 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 1629 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 1636 | drivers/block/sbpcd.c | int i; |
i | 1669 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1670 | drivers/block/sbpcd.c | return (i); |
i | 1675 | drivers/block/sbpcd.c | int i; |
i | 1772 | drivers/block/sbpcd.c | i=channel1; |
i | 1774 | drivers/block/sbpcd.c | channel0=i; |
i | 1775 | drivers/block/sbpcd.c | i=volume1; |
i | 1777 | drivers/block/sbpcd.c | volume0=i; |
i | 1825 | drivers/block/sbpcd.c | i=cc_prep_mode_T(); |
i | 1826 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1831 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1832 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1840 | drivers/block/sbpcd.c | int i; |
i | 1846 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1847 | drivers/block/sbpcd.c | return (i); |
i | 1852 | drivers/block/sbpcd.c | int i; |
i | 1862 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1868 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1876 | drivers/block/sbpcd.c | for (i=1;i<10;i++) OUT(CDo_command,0); |
i | 1888 | drivers/block/sbpcd.c | i=GetStatus(); |
i | 1889 | drivers/block/sbpcd.c | if (i<0) return i; |
i | 1897 | drivers/block/sbpcd.c | int i, speed; |
i | 1906 | drivers/block/sbpcd.c | i=cc_SetSpeed(speed,0,0); |
i | 1907 | drivers/block/sbpcd.c | return (i); |
i | 1912 | drivers/block/sbpcd.c | int i; |
i | 1914 | drivers/block/sbpcd.c | i=cc_DriveReset(); |
i | 1915 | drivers/block/sbpcd.c | if (i<0) return (-22); |
i | 1918 | drivers/block/sbpcd.c | i=GetStatus(); |
i | 1919 | drivers/block/sbpcd.c | if ((i<0)&&(i!=-615)) return (-2); /* i!=-615 is from sta2err */ |
i | 1929 | drivers/block/sbpcd.c | i=DiskInfo(); |
i | 1930 | drivers/block/sbpcd.c | if (i<0) return (-23); |
i | 1937 | drivers/block/sbpcd.c | int i, j, n; |
i | 1945 | drivers/block/sbpcd.c | i=msf2blk(pos_audio_start); |
i | 1946 | drivers/block/sbpcd.c | n=msf2blk(pos_audio_end)+1-i; |
i | 1947 | drivers/block/sbpcd.c | drvcmd[1]=(i>>16)&0x00FF; |
i | 1948 | drivers/block/sbpcd.c | drvcmd[2]=(i>>8)&0x00FF; |
i | 1949 | drivers/block/sbpcd.c | drvcmd[3]=i&0x00FF; |
i | 1989 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 1990 | drivers/block/sbpcd.c | return (i); |
i | 1995 | drivers/block/sbpcd.c | int i; |
i | 2028 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2029 | drivers/block/sbpcd.c | return (i); |
i | 2034 | drivers/block/sbpcd.c | int i; |
i | 2064 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2066 | drivers/block/sbpcd.c | return (i); |
i | 2072 | drivers/block/sbpcd.c | int i,j; |
i | 2077 | drivers/block/sbpcd.c | i=cc_LockDoor(0); |
i | 2081 | drivers/block/sbpcd.c | while ((i<0)&&(j)); |
i | 2082 | drivers/block/sbpcd.c | if (i<0) |
i | 2092 | drivers/block/sbpcd.c | int i,j; |
i | 2097 | drivers/block/sbpcd.c | i=cc_LockDoor(1); |
i | 2101 | drivers/block/sbpcd.c | while ((i<0)&&(j)); |
i | 2108 | drivers/block/sbpcd.c | i=cc_LockDoor(1); |
i | 2112 | drivers/block/sbpcd.c | while ((i<0)&&(j)); |
i | 2114 | drivers/block/sbpcd.c | return (i); |
i | 2119 | drivers/block/sbpcd.c | int i; |
i | 2150 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2152 | drivers/block/sbpcd.c | return (i); |
i | 2157 | drivers/block/sbpcd.c | int i,j; |
i | 2196 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2197 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2198 | drivers/block/sbpcd.c | for (i=0;i<response_count;i++) |
i | 2200 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 2201 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 2217 | drivers/block/sbpcd.c | if (fam0L_drive) i=5; |
i | 2218 | drivers/block/sbpcd.c | else if (fam12_drive) i=4; |
i | 2219 | drivers/block/sbpcd.c | else if (famT_drive) i=8; |
i | 2220 | 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 | 2221 | drivers/block/sbpcd.c | i=7; |
i | 2222 | drivers/block/sbpcd.c | if (fam0L_drive) i=9; |
i | 2223 | drivers/block/sbpcd.c | else if (fam12_drive) i=7; |
i | 2224 | drivers/block/sbpcd.c | else if (famT_drive) i=4; |
i | 2225 | 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 | 2226 | drivers/block/sbpcd.c | D_S[d].SubQ_whatisthis=infobuf[i+3]; |
i | 2233 | drivers/block/sbpcd.c | int i; |
i | 2257 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2258 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2259 | drivers/block/sbpcd.c | i=0; |
i | 2260 | drivers/block/sbpcd.c | if (fam1_drive) D_S[d].sense_byte=infobuf[i++]; |
i | 2266 | drivers/block/sbpcd.c | i=2; |
i | 2268 | drivers/block/sbpcd.c | D_S[d].frame_size=make16(infobuf[i],infobuf[i+1]); |
i | 2269 | drivers/block/sbpcd.c | for (i=0;i<response_count;i++) |
i | 2270 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 2271 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 2281 | drivers/block/sbpcd.c | int i; |
i | 2319 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2320 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2327 | drivers/block/sbpcd.c | int i; |
i | 2362 | drivers/block/sbpcd.c | i=cc_get_mode_T(); |
i | 2363 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2367 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2368 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2461 | drivers/block/sbpcd.c | int i, j; |
i | 2495 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2496 | drivers/block/sbpcd.c | if (i>=0) break; |
i | 2497 | drivers/block/sbpcd.c | msg(DBG_000,"cc_ReadCapacity: cmd_out: err %d\n", i); |
i | 2500 | drivers/block/sbpcd.c | if (j==0) return (i); |
i | 2518 | drivers/block/sbpcd.c | int i; |
i | 2558 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2559 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2587 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2588 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2600 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 2601 | 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 | 2894 | drivers/block/sbpcd.c | for (i=0;i<response_count;i++) |
i | 2895 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 2896 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 2910 | drivers/block/sbpcd.c | int i; |
i | 2930 | drivers/block/sbpcd.c | i=cmd_out(); /* which buffer to use? */ |
i | 2931 | drivers/block/sbpcd.c | return (i); |
i | 2937 | drivers/block/sbpcd.c | int i=0; |
i | 2942 | drivers/block/sbpcd.c | for (i=0;i<=1000;i++) printk("."); |
i | 2954 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 2980 | drivers/block/sbpcd.c | int i; |
i | 2988 | drivers/block/sbpcd.c | i=do_cmd(f_putcmd|f_lopsta|f_getsta|f_ResponseStatus); |
i | 2993 | drivers/block/sbpcd.c | i=do_cmd(f_putcmd); |
i | 2996 | drivers/block/sbpcd.c | return (i); |
i | 3002 | drivers/block/sbpcd.c | int i; |
i | 3008 | drivers/block/sbpcd.c | for (i=0;i<12;i++) |
i | 3009 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 3010 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 3012 | drivers/block/sbpcd.c | for (i=0;i<12;i++) |
i | 3013 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %c ", infobuf[i]); |
i | 3014 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 3020 | drivers/block/sbpcd.c | int i, j, l; |
i | 3033 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 3034 | drivers/block/sbpcd.c | if (i<0) msg(DBG_INI,"CMD0_READERR returns %d (ok anyway).\n",i); |
i | 3037 | drivers/block/sbpcd.c | for (i=0;i<12;i++) infobuf[i]=0; |
i | 3041 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 3042 | drivers/block/sbpcd.c | if (i<-1) msg(DBG_INI,"CMD0_READ_VER returns %d\n",i); |
i | 3043 | drivers/block/sbpcd.c | if (i==-11) teac_possible++; |
i | 3045 | drivers/block/sbpcd.c | for (i=0;i<12;i++) j+=infobuf[i]; |
i | 3048 | drivers/block/sbpcd.c | for (i=0;i<12;i++) |
i | 3049 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 3050 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 3053 | drivers/block/sbpcd.c | for (i=0;i<12;i++) |
i | 3054 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %c ", infobuf[i]); |
i | 3055 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 3059 | drivers/block/sbpcd.c | for (i=0;i<4;i++) if (infobuf[i]!=family1[i]) break; |
i | 3060 | drivers/block/sbpcd.c | if (i==4) |
i | 3066 | drivers/block/sbpcd.c | D_S[d].drive_model[4]=infobuf[i++]; |
i | 3067 | drivers/block/sbpcd.c | D_S[d].drive_model[5]=infobuf[i++]; |
i | 3073 | drivers/block/sbpcd.c | for (i=0;i<8;i++) if (infobuf[i]!=family0[i]) break; |
i | 3074 | drivers/block/sbpcd.c | if (i==8) |
i | 3088 | drivers/block/sbpcd.c | for (i=0;i<8;i++) if (infobuf[i]!=familyL[i]) break; |
i | 3089 | drivers/block/sbpcd.c | if (i==8) |
i | 3104 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 3105 | drivers/block/sbpcd.c | if (i<0) msg(DBG_INI,"CMD2_READERR returns %d (ok anyway).\n",i); |
i | 3106 | drivers/block/sbpcd.c | if (i<0) msg(DBG_000,"CMD2_READERR returns %d (ok anyway).\n",i); |
i | 3109 | drivers/block/sbpcd.c | for (i=0;i<12;i++) infobuf[i]=0; |
i | 3119 | drivers/block/sbpcd.c | i=cmd_out(); |
i | 3120 | drivers/block/sbpcd.c | if (i<0) msg(DBG_INI,"CMD2_READ_VER returns %d\n",i); |
i | 3121 | drivers/block/sbpcd.c | if (i==-7) teac_possible++; |
i | 3123 | drivers/block/sbpcd.c | for (i=0;i<12;i++) j+=infobuf[i]; |
i | 3126 | drivers/block/sbpcd.c | for (i=0;i<12;i++) |
i | 3127 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 3128 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 3130 | drivers/block/sbpcd.c | for (i=0;i<12;i++) |
i | 3131 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %c ", infobuf[i]); |
i | 3132 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 3135 | drivers/block/sbpcd.c | if (i>=0) |
i | 3137 | drivers/block/sbpcd.c | for (i=0;i<5;i++) if (infobuf[i]!=family2[i]) break; |
i | 3138 | drivers/block/sbpcd.c | if (i==5) |
i | 3145 | drivers/block/sbpcd.c | D_S[d].drive_model[5]=infobuf[i++]; |
i | 3146 | drivers/block/sbpcd.c | D_S[d].drive_model[6]=infobuf[i++]; |
i | 3167 | drivers/block/sbpcd.c | for (i=0;i<9;i++) OUT(CDo_command,0); |
i | 3172 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 3173 | drivers/block/sbpcd.c | msg(DBG_TEA,"TEAC CDi_status: %02X.\n",i); |
i | 3175 | drivers/block/sbpcd.c | if (i&s_not_result_ready) continue; /* drive not present or ready */ |
i | 3177 | drivers/block/sbpcd.c | i=inb(CDi_info); |
i | 3178 | drivers/block/sbpcd.c | msg(DBG_TEA,"TEAC CDi_info: %02X.\n",i); |
i | 3179 | drivers/block/sbpcd.c | if (i==0x55) break; /* drive found */ |
i | 3181 | drivers/block/sbpcd.c | if (i==0x55) break; /* drive found */ |
i | 3183 | drivers/block/sbpcd.c | if (i==0x55) /* drive found */ |
i | 3191 | drivers/block/sbpcd.c | for (i=0;i<12;i++) infobuf[i]=0; |
i | 3192 | drivers/block/sbpcd.c | i=cmd_out_T(); |
i | 3193 | drivers/block/sbpcd.c | if (i!=0) msg(DBG_TEA,"cmd_out_T(CMDT_READ_VER) returns %d.\n",i); |
i | 3194 | drivers/block/sbpcd.c | for (i=1;i<6;i++) if (infobuf[i]!=familyT[i-1]) break; |
i | 3195 | drivers/block/sbpcd.c | if (i==6) |
i | 3212 | drivers/block/sbpcd.c | for (j=0;j<4;j++) D_S[d].firmware_version[j]=infobuf[i+j]; |
i | 3282 | drivers/block/sbpcd.c | static void switch_drive(int i) |
i | 3284 | drivers/block/sbpcd.c | d=i; |
i | 3286 | drivers/block/sbpcd.c | msg(DBG_DID,"drive %d (ID=%d) activated.\n", i, D_S[d].drv_id); |
i | 3298 | drivers/block/sbpcd.c | int i, j, k; |
i | 3311 | drivers/block/sbpcd.c | for (i=10;i>0;i--) OUT(port+0,0); |
i | 3315 | drivers/block/sbpcd.c | for (i=10000;i>0;i--) |
i | 3322 | drivers/block/sbpcd.c | for (i=0;i<N_RESPO;i++) |
i | 3323 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", response[i]); |
i | 3324 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 3327 | drivers/block/sbpcd.c | for (i=10;i>0;i--) OUT(port+0,0); |
i | 3331 | drivers/block/sbpcd.c | for (i=10000;i>0;i--) |
i | 3338 | drivers/block/sbpcd.c | for (i=0;i<N_RESPO;i++) |
i | 3339 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", response[i]); |
i | 3340 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 3351 | drivers/block/sbpcd.c | for (i=10;i>0;i--) OUT(port+0,0); |
i | 3355 | drivers/block/sbpcd.c | for (i=1000000;i>0;i--) |
i | 3362 | drivers/block/sbpcd.c | for (i=0;i<N_RESPO;i++) |
i | 3363 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", response[i]); |
i | 3364 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 3368 | drivers/block/sbpcd.c | for (i=10;i>0;i--) OUT(port+0,0); |
i | 3372 | drivers/block/sbpcd.c | for (i=1000000;i>0;i--) |
i | 3379 | drivers/block/sbpcd.c | for (i=0;i<N_RESPO;i++) |
i | 3380 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", response[i]); |
i | 3381 | drivers/block/sbpcd.c | msgbuf[i*3]=0; |
i | 3400 | drivers/block/sbpcd.c | int i, j; |
i | 3412 | drivers/block/sbpcd.c | i=check_version(); |
i | 3413 | drivers/block/sbpcd.c | if (i<0) msg(DBG_INI,"check_version returns %d.\n",i); |
i | 3556 | drivers/block/sbpcd.c | int i; |
i | 3558 | drivers/block/sbpcd.c | i=msf2blk(D_S[d].pos_audio_end)-1; |
i | 3559 | drivers/block/sbpcd.c | if (i<0) return (-1); |
i | 3560 | drivers/block/sbpcd.c | i=cc_Seek(i,0); |
i | 3561 | drivers/block/sbpcd.c | return (i); |
i | 3567 | drivers/block/sbpcd.c | int i, j; |
i | 3572 | drivers/block/sbpcd.c | i=cc_ReadTocEntry(j); |
i | 3573 | drivers/block/sbpcd.c | if (i<0) |
i | 3575 | drivers/block/sbpcd.c | msg(DBG_INF,"cc_ReadTocEntry(%d) returns %d.\n",j,i); |
i | 3576 | drivers/block/sbpcd.c | return (i); |
i | 3598 | drivers/block/sbpcd.c | int i, j; |
i | 3608 | drivers/block/sbpcd.c | i=SetSpeed(); |
i | 3609 | drivers/block/sbpcd.c | if (i<0) |
i | 3611 | drivers/block/sbpcd.c | msg(DBG_INF,"DiskInfo: SetSpeed returns %d\n", i); |
i | 3614 | drivers/block/sbpcd.c | i=cc_ModeSense(); |
i | 3615 | drivers/block/sbpcd.c | if (i<0) |
i | 3617 | drivers/block/sbpcd.c | msg(DBG_INF,"DiskInfo: cc_ModeSense returns %d\n", i); |
i | 3620 | drivers/block/sbpcd.c | i=cc_ReadCapacity(); |
i | 3621 | drivers/block/sbpcd.c | if (i>=0) break; |
i | 3622 | drivers/block/sbpcd.c | msg(DBG_INF,"DiskInfo: ReadCapacity #%d returns %d\n", j, i); |
i | 3623 | drivers/block/sbpcd.c | i=cc_DriveReset(); |
i | 3627 | drivers/block/sbpcd.c | i=cc_ReadTocDescr(); |
i | 3628 | drivers/block/sbpcd.c | if (i<0) |
i | 3630 | drivers/block/sbpcd.c | msg(DBG_INF,"DiskInfo: ReadTocDescr returns %d\n", i); |
i | 3631 | drivers/block/sbpcd.c | return (i); |
i | 3633 | drivers/block/sbpcd.c | i=ReadToC(); |
i | 3634 | drivers/block/sbpcd.c | if (i<0) |
i | 3636 | drivers/block/sbpcd.c | msg(DBG_INF,"DiskInfo: ReadToC returns %d\n", i); |
i | 3637 | drivers/block/sbpcd.c | return (i); |
i | 3639 | drivers/block/sbpcd.c | i=cc_CheckMultiSession(); |
i | 3640 | drivers/block/sbpcd.c | if (i<0) |
i | 3642 | drivers/block/sbpcd.c | msg(DBG_INF,"DiskInfo: cc_CheckMultiSession returns %d\n", i); |
i | 3643 | drivers/block/sbpcd.c | return (i); |
i | 3647 | drivers/block/sbpcd.c | i=cc_ReadTocEntry(D_S[d].n_first_track); |
i | 3648 | drivers/block/sbpcd.c | if (i<0) |
i | 3650 | drivers/block/sbpcd.c | msg(DBG_INF,"DiskInfo: cc_ReadTocEntry(1) returns %d\n", i); |
i | 3651 | drivers/block/sbpcd.c | return (i); |
i | 3653 | drivers/block/sbpcd.c | i=cc_ReadUPC(); |
i | 3654 | drivers/block/sbpcd.c | if (i<0) msg(DBG_INF,"DiskInfo: cc_ReadUPC returns %d\n", i); |
i | 3673 | drivers/block/sbpcd.c | int i; |
i | 3677 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 3678 | drivers/block/sbpcd.c | if (i&s_attention) GetStatus(); |
i | 3689 | drivers/block/sbpcd.c | i=check_allowed1(func,subfunc); |
i | 3690 | drivers/block/sbpcd.c | if (i<0) return (-2); |
i | 3694 | drivers/block/sbpcd.c | i=check_allowed3(func,subfunc); |
i | 3695 | drivers/block/sbpcd.c | if (i<0) |
i | 3708 | drivers/block/sbpcd.c | i=check_allowed1(func,subfunc); |
i | 3709 | drivers/block/sbpcd.c | if (i<0) return (-2); |
i | 3717 | drivers/block/sbpcd.c | i=check_allowed2(func,subfunc); |
i | 3718 | drivers/block/sbpcd.c | if (i<0) return (-2); |
i | 3728 | drivers/block/sbpcd.c | i=DiskInfo(); |
i | 3729 | drivers/block/sbpcd.c | if (i<0) |
i | 3733 | drivers/block/sbpcd.c | i=check_allowed1(func,subfunc); |
i | 3734 | drivers/block/sbpcd.c | if (i<0) return (-2); |
i | 3797 | drivers/block/sbpcd.c | int i, st; |
i | 3802 | drivers/block/sbpcd.c | i=MINOR(inode->i_rdev); |
i | 3803 | drivers/block/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1)) |
i | 3808 | drivers/block/sbpcd.c | if (d!=i) switch_drive(i); |
i | 3816 | drivers/block/sbpcd.c | i=DiskInfo(); |
i | 3817 | drivers/block/sbpcd.c | if (i<0) return (-EIO); /* error reading TOC */ |
i | 3821 | drivers/block/sbpcd.c | msg(DBG_IO2,"ioctl: device %d, request %04X\n",i,cmd); |
i | 3826 | drivers/block/sbpcd.c | i=sbpcd_dbg_ioctl(arg,1); |
i | 3827 | drivers/block/sbpcd.c | return (i); |
i | 3838 | drivers/block/sbpcd.c | if (famL_drive) i=cc_ReadSubQ(); |
i | 3839 | drivers/block/sbpcd.c | else i=cc_Pause_Resume(1); |
i | 3840 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3841 | drivers/block/sbpcd.c | if (famL_drive) i=cc_Pause_Resume(1); |
i | 3842 | drivers/block/sbpcd.c | else i=cc_ReadSubQ(); |
i | 3843 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3848 | drivers/block/sbpcd.c | i=cc_Seek(D_S[d].pos_audio_start,1); |
i | 3849 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3862 | drivers/block/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start, |
i | 3864 | drivers/block/sbpcd.c | else i=cc_Pause_Resume(3); |
i | 3865 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3873 | drivers/block/sbpcd.c | i=cc_Pause_Resume(1); |
i | 3874 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3875 | drivers/block/sbpcd.c | i=cc_ReadSubQ(); |
i | 3876 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3878 | drivers/block/sbpcd.c | i=cc_Seek(D_S[d].pos_audio_start,1); |
i | 3892 | drivers/block/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
i | 3893 | drivers/block/sbpcd.c | msg(DBG_IOC,"ioctl: cc_PlayAudio returns %d\n",i); |
i | 3895 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3923 | drivers/block/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
i | 3925 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3944 | drivers/block/sbpcd.c | i=tocentry.cdte_track; |
i | 3945 | drivers/block/sbpcd.c | if (i==CDROM_LEADOUT) i=D_S[d].n_last_track+1; |
i | 3946 | drivers/block/sbpcd.c | else if (i<D_S[d].n_first_track||i>D_S[d].n_last_track) return (-EINVAL); |
i | 3947 | drivers/block/sbpcd.c | tocentry.cdte_adr=D_S[d].TocBuffer[i].ctl_adr&0x0F; |
i | 3948 | drivers/block/sbpcd.c | tocentry.cdte_ctrl=(D_S[d].TocBuffer[i].ctl_adr>>4)&0x0F; |
i | 3949 | drivers/block/sbpcd.c | tocentry.cdte_datamode=D_S[d].TocBuffer[i].format; |
i | 3952 | drivers/block/sbpcd.c | tocentry.cdte_addr.msf.minute=(D_S[d].TocBuffer[i].address>>16)&0x00FF; |
i | 3953 | drivers/block/sbpcd.c | tocentry.cdte_addr.msf.second=(D_S[d].TocBuffer[i].address>>8)&0x00FF; |
i | 3954 | drivers/block/sbpcd.c | tocentry.cdte_addr.msf.frame=D_S[d].TocBuffer[i].address&0x00FF; |
i | 3957 | drivers/block/sbpcd.c | tocentry.cdte_addr.lba=msf2blk(D_S[d].TocBuffer[i].address); |
i | 3966 | drivers/block/sbpcd.c | i=DriveReset(); |
i | 3968 | drivers/block/sbpcd.c | return (i); |
i | 3972 | drivers/block/sbpcd.c | i=cc_Pause_Resume(1); |
i | 3974 | drivers/block/sbpcd.c | return (i); |
i | 3986 | drivers/block/sbpcd.c | i=UnLockDoor(); |
i | 3988 | drivers/block/sbpcd.c | i=cc_SpinDown(); |
i | 3989 | drivers/block/sbpcd.c | msg(DBG_IOX,"ioctl: cc_SpinDown returned %d.\n", i); |
i | 3990 | drivers/block/sbpcd.c | msg(DBG_TEA,"ioctl: cc_SpinDown returned %d.\n", i); |
i | 3991 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 4012 | drivers/block/sbpcd.c | i=cc_SetVolume(); |
i | 4030 | drivers/block/sbpcd.c | if ((st_spinning)||(!subq_valid)) { i=cc_ReadSubQ(); |
i | 4031 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 4112 | drivers/block/sbpcd.c | int i=0, j=0, frame, block; |
i | 4128 | drivers/block/sbpcd.c | i=verify_area(VERIFY_READ, (void *) arg, sizeof(struct cdrom_read_audio)); |
i | 4129 | drivers/block/sbpcd.c | if (i) return (i); |
i | 4132 | drivers/block/sbpcd.c | i=verify_area(VERIFY_WRITE, read_audio.buf, |
i | 4134 | drivers/block/sbpcd.c | if (i) return (i); |
i | 4141 | drivers/block/sbpcd.c | i=cc_SetSpeed(speed_150,0,0); |
i | 4142 | drivers/block/sbpcd.c | if (i) msg(DBG_AUD,"read_audio: SetSpeed error %d\n", i); |
i | 4197 | drivers/block/sbpcd.c | for (i=0;i<7;i++) OUT(CDo_command,drvcmd[i]); |
i | 4244 | drivers/block/sbpcd.c | i=cc_DriveReset(); /* ugly fix to prevent a hang */ |
i | 4246 | drivers/block/sbpcd.c | i=cc_ReadError(); |
i | 4252 | drivers/block/sbpcd.c | i=maxtim_data; |
i | 4255 | drivers/block/sbpcd.c | for ( ;i!=0;i--) |
i | 4262 | drivers/block/sbpcd.c | if (i != 0 || timeout <= jiffies) break; |
i | 4264 | drivers/block/sbpcd.c | i = 1; |
i | 4266 | drivers/block/sbpcd.c | if (i==0) msg(DBG_AUD,"read_audio: STATUS TIMEOUT AFTER READ"); |
i | 4270 | drivers/block/sbpcd.c | i=cc_DriveReset(); /* ugly fix to prevent a hang */ |
i | 4277 | drivers/block/sbpcd.c | i=ResponseStatus(); /* builds status_bits, returns orig. status (old) or faked p_success (new) */ |
i | 4278 | drivers/block/sbpcd.c | if (i<0) { msg(DBG_AUD, |
i | 4284 | drivers/block/sbpcd.c | while ((fam0L_drive)&&(!st_check)&&(!(i&p_success))); |
i | 4287 | drivers/block/sbpcd.c | i=cc_ReadError(); |
i | 4288 | drivers/block/sbpcd.c | msg(DBG_AUD,"read_audio: cc_ReadError was necessary after read: %02X\n",i); |
i | 4368 | drivers/block/sbpcd.c | int i, status_tries, data_tries; |
i | 4381 | drivers/block/sbpcd.c | i = MINOR(CURRENT->dev); |
i | 4382 | drivers/block/sbpcd.c | if ( (i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1)) |
i | 4390 | drivers/block/sbpcd.c | if (D_S[i].audio_state==audio_playing) goto err_done; |
i | 4391 | drivers/block/sbpcd.c | if (d!=i) switch_drive(i); |
i | 4410 | drivers/block/sbpcd.c | i=prepare(0,0); /* at moment not really a hassle check, but ... */ |
i | 4411 | drivers/block/sbpcd.c | if (i!=0) |
i | 4412 | drivers/block/sbpcd.c | msg(DBG_INF,"\"prepare\" tells error %d -- ignored\n", i); |
i | 4456 | drivers/block/sbpcd.c | int i; |
i | 4535 | drivers/block/sbpcd.c | for (i=0;i<7;i++) OUT(CDo_command,drvcmd[i]); |
i | 4536 | drivers/block/sbpcd.c | if (famT_drive) for (i=7;i<10;i++) OUT(CDo_command,drvcmd[i]); |
i | 4541 | drivers/block/sbpcd.c | i=cmd_out(); /* immediate return here - read data "ourselves" */ |
i | 4542 | drivers/block/sbpcd.c | if (i<0) msg(DBG_INF,"error giving READ command: %0d\n", i); |
i | 4553 | drivers/block/sbpcd.c | int i=0, j=0, l, frame; |
i | 4673 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 4674 | drivers/block/sbpcd.c | if (!(i&s_not_data_ready)) |
i | 4680 | drivers/block/sbpcd.c | i=inb(CDi_data); |
i | 4682 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 4684 | drivers/block/sbpcd.c | while (!(i&s_not_data_ready)); |
i | 4687 | drivers/block/sbpcd.c | if (!(i&s_not_result_ready)) |
i | 4694 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 4696 | drivers/block/sbpcd.c | while (!(i&s_not_result_ready)); |
i | 4740 | drivers/block/sbpcd.c | i=cc_DriveReset(); /* ugly fix to prevent a hang */ |
i | 4742 | drivers/block/sbpcd.c | i=cc_ReadError(); |
i | 4750 | drivers/block/sbpcd.c | i=maxtim_data; |
i | 4753 | drivers/block/sbpcd.c | for ( ;i!=0;i--) |
i | 4760 | drivers/block/sbpcd.c | if (i != 0 || timeout <= jiffies) break; |
i | 4762 | drivers/block/sbpcd.c | i = 1; |
i | 4764 | drivers/block/sbpcd.c | if (i==0) msg(DBG_INF,"status timeout after READ.\n"); |
i | 4768 | drivers/block/sbpcd.c | i=cc_DriveReset(); /* ugly fix to prevent a hang */ |
i | 4782 | drivers/block/sbpcd.c | if (famT_drive) msg(DBG_TE2, "================before ResponseStatus=================.\n", i); |
i | 4784 | drivers/block/sbpcd.c | i=ResponseStatus(); /* builds status_bits, returns orig. status (old) or faked p_success (new) */ |
i | 4786 | drivers/block/sbpcd.c | if (famT_drive) msg(DBG_TE2, "================ResponseStatus: %d=================.\n", i); |
i | 4788 | drivers/block/sbpcd.c | if (i<0) |
i | 4794 | drivers/block/sbpcd.c | while ((fam0L_drive)&&(!st_check)&&(!(i&p_success))); |
i | 4797 | drivers/block/sbpcd.c | i=cc_ReadError(); |
i | 4798 | drivers/block/sbpcd.c | msg(DBG_INF,"cc_ReadError was necessary after read: %d\n",i); |
i | 4825 | drivers/block/sbpcd.c | int i; |
i | 4827 | drivers/block/sbpcd.c | i = MINOR(ip->i_rdev); |
i | 4828 | drivers/block/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1)) |
i | 4836 | drivers/block/sbpcd.c | switch_drive(i); |
i | 4838 | drivers/block/sbpcd.c | i=cc_ReadError(); |
i | 4841 | drivers/block/sbpcd.c | i=ResponseStatus(); |
i | 4842 | drivers/block/sbpcd.c | if (famT_drive&&(i<0)) |
i | 4845 | drivers/block/sbpcd.c | i=ResponseStatus(); |
i | 4846 | drivers/block/sbpcd.c | i=ResponseStatus(); |
i | 4848 | drivers/block/sbpcd.c | if (i<0) |
i | 4850 | drivers/block/sbpcd.c | msg(DBG_INF,"sbpcd_open: ResponseStatus timed out (%d).\n",i); |
i | 4853 | drivers/block/sbpcd.c | if (famT_drive) msg(DBG_TE2,"sbpcd_open: ResponseStatus=%02X\n", i); |
i | 4860 | drivers/block/sbpcd.c | i=ResponseStatus(); |
i | 4869 | drivers/block/sbpcd.c | i=ResponseStatus(); |
i | 4879 | drivers/block/sbpcd.c | i=UnLockDoor(); |
i | 4893 | drivers/block/sbpcd.c | i=LockDoor(); |
i | 4896 | drivers/block/sbpcd.c | i=DiskInfo(); |
i | 4910 | drivers/block/sbpcd.c | int i; |
i | 4912 | drivers/block/sbpcd.c | i = MINOR(ip->i_rdev); |
i | 4913 | drivers/block/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1)) |
i | 4918 | drivers/block/sbpcd.c | switch_drive(i); |
i | 4934 | drivers/block/sbpcd.c | i=UnLockDoor(); |
i | 5028 | drivers/block/sbpcd.c | int i; |
i | 5034 | drivers/block/sbpcd.c | i=inb(SPEA_REG_1); |
i | 5035 | drivers/block/sbpcd.c | if (i!=0x0F) |
i | 5056 | drivers/block/sbpcd.c | i=(inb(SPEA_REG_2)&0xCF)|n_ports; |
i | 5057 | drivers/block/sbpcd.c | OUT(SPEA_REG_2,i); |
i | 5073 | drivers/block/sbpcd.c | int i=0, j=0; |
i | 5120 | drivers/block/sbpcd.c | i=config_spea(); |
i | 5121 | drivers/block/sbpcd.c | if (i<0) continue; |
i | 5126 | drivers/block/sbpcd.c | i=check_drives(); |
i | 5128 | drivers/block/sbpcd.c | if (i>=0) break; /* drive found */ |
i | 5176 | drivers/block/sbpcd.c | i=ResponseStatus(); /* returns orig. status or p_busy_new */ |
i | 5177 | drivers/block/sbpcd.c | if (famT_drive) i=ResponseStatus(); /* returns orig. status or p_busy_new */ |
i | 5178 | drivers/block/sbpcd.c | if (i<0) |
i | 5179 | drivers/block/sbpcd.c | if (i!=-402) |
i | 5180 | drivers/block/sbpcd.c | msg(DBG_INF,"init: ResponseStatus returns %d.\n",i); |
i | 5185 | drivers/block/sbpcd.c | i=cc_ReadError(); |
i | 5186 | drivers/block/sbpcd.c | msg(DBG_INI,"init: cc_ReadError returns %d\n",i); |
i | 5189 | drivers/block/sbpcd.c | msg(DBG_INI,"init: first GetStatus: %d\n",i); |
i | 5197 | drivers/block/sbpcd.c | i=GetStatus(); |
i | 5198 | drivers/block/sbpcd.c | msg(DBG_INI,"init: second GetStatus: %02X\n",i); |
i | 5202 | drivers/block/sbpcd.c | if (i<0) break; |
i | 5207 | drivers/block/sbpcd.c | i=SetSpeed(); |
i | 5208 | drivers/block/sbpcd.c | if (i>=0) D_S[d].CD_changed=1; |
i | 5337 | drivers/block/sbpcd.c | int i, st; |
i | 5342 | drivers/block/sbpcd.c | i=MINOR(full_dev); |
i | 5343 | drivers/block/sbpcd.c | if ( (i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1) ) |
i | 5349 | 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 | 1666 | drivers/block/sonycd535.c | for (i = 0; i < sony_buffer_sectors; i++) |
i | 1667 | drivers/block/sonycd535.c | sony_buffer[i] = (Byte *)kmalloc(2048, GFP_KERNEL); |
i | 1721 | drivers/block/sonycd535.c | int i; |
i | 1727 | drivers/block/sonycd535.c | for (i = 0; i < sony_buffer_sectors; i++) |
i | 1728 | drivers/block/sonycd535.c | kfree_s(sony_buffer[i], 2048); |
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 | 511 | drivers/block/xd.c | u_char cmdblk[6],i,count = 0; |
i | 513 | drivers/block/xd.c | for (i = 0; i < XD_MAXDRIVES; i++) { |
i | 514 | drivers/block/xd.c | xd_build(cmdblk,CMD_TESTREADY,i,0,0,0,0,0); |
i | 669 | drivers/block/xd.c | u_char cmdblk[6],i; |
i | 671 | drivers/block/xd.c | for (i = 0; i < 3; i++) { |
i | 672 | drivers/block/xd.c | while (min[i] != max[i] - 1) { |
i | 673 | drivers/block/xd.c | test[i] = (min[i] + max[i]) / 2; |
i | 676 | drivers/block/xd.c | min[i] = test[i]; |
i | 678 | drivers/block/xd.c | max[i] = test[i]; |
i | 680 | drivers/block/xd.c | test[i] = min[i]; |
i | 123 | drivers/char/atixlmouse.c | int i; |
i | 142 | drivers/char/atixlmouse.c | for(i = 3; i < count; i++) |
i | 143 | drivers/char/atixlmouse.c | put_user(0x00, buffer + i); |
i | 149 | drivers/char/atixlmouse.c | return i; /* i data bytes returned */ |
i | 219 | drivers/char/busmouse.c | int i; |
i | 223 | drivers/char/busmouse.c | for (i = 0; i < 100000; i++) |
i | 57 | drivers/char/conmakehash.c | int i, lct; |
i | 64 | drivers/char/conmakehash.c | i = un % hashsize; |
i | 67 | drivers/char/conmakehash.c | while ( (hu = hashtable[i].uc) != 0xffff && hu != un ) |
i | 74 | drivers/char/conmakehash.c | i += hashstep; |
i | 75 | drivers/char/conmakehash.c | if ( i >= hashsize ) |
i | 76 | drivers/char/conmakehash.c | i -= hashsize; |
i | 81 | drivers/char/conmakehash.c | hashtable[i].uc = un; |
i | 82 | drivers/char/conmakehash.c | hashtable[i].glyph = fp; |
i | 94 | drivers/char/conmakehash.c | int i; |
i | 140 | drivers/char/conmakehash.c | for ( i = hashstep ; i > 1 ; i-- ) |
i | 142 | drivers/char/conmakehash.c | if ( hashstep % i == 0 && hashsize % i == 0 ) |
i | 146 | drivers/char/conmakehash.c | if ( i > 1 ) |
i | 149 | drivers/char/conmakehash.c | "WARNING: hashsize and hashstep have common factors (gcd = %d)\n", i); |
i | 174 | drivers/char/conmakehash.c | for ( i = 0 ; i < hashsize ; i++ ) |
i | 176 | drivers/char/conmakehash.c | hashtable[i].uc = 0xffff; |
i | 177 | drivers/char/conmakehash.c | hashtable[i].glyph = 0; |
i | 254 | drivers/char/conmakehash.c | for (i=fp0; i<=fp1; i++) |
i | 255 | drivers/char/conmakehash.c | addpair(i,i); |
i | 286 | drivers/char/conmakehash.c | for(i=fp0; i<=fp1; i++) |
i | 287 | drivers/char/conmakehash.c | addpair(i,un0-fp0+i); |
i | 333 | drivers/char/conmakehash.c | for ( i = 0 ; i < hashsize ; i++ ) |
i | 335 | drivers/char/conmakehash.c | printf("{0x%04x,0x%02x}", hashtable[i].uc, hashtable[i].glyph); |
i | 336 | drivers/char/conmakehash.c | if ( i == hashsize-1 ) |
i | 338 | drivers/char/conmakehash.c | else if ( i % 4 == 3 ) |
i | 349 | drivers/char/conmakehash.c | for ( i = 0 ; i < hashsize ; i++ ) |
i | 351 | drivers/char/conmakehash.c | printf("{0x%04x,0x%02x}", hashtable[i].uc, hashtable[i].glyph); |
i | 352 | drivers/char/conmakehash.c | if ( i == hashsize-1 ) |
i | 354 | drivers/char/conmakehash.c | else if ( i % 4 == 3 ) |
i | 338 | drivers/char/console.c | int vc_cons_allocated(unsigned int i) |
i | 340 | drivers/char/console.c | return (i < MAX_NR_CONSOLES && vc_cons[i].d); |
i | 343 | drivers/char/console.c | int vc_allocate(unsigned int i) /* return 0 on success */ |
i | 345 | drivers/char/console.c | if (i >= MAX_NR_CONSOLES) |
i | 347 | drivers/char/console.c | if (!vc_cons[i].d) { |
i | 351 | drivers/char/console.c | if (i >= MAX_NR_USER_CONSOLES && !suser()) |
i | 366 | drivers/char/console.c | vc_cons[i].d = (struct vc_data *) p; |
i | 368 | drivers/char/console.c | vt_cons[i] = (struct vt_struct *) p; |
i | 369 | drivers/char/console.c | vc_scrbuf[i] = (unsigned short *) q; |
i | 370 | drivers/char/console.c | vc_cons[i].d->vc_kmalloced = 1; |
i | 371 | drivers/char/console.c | vc_cons[i].d->vc_screenbuf_size = video_screen_size; |
i | 372 | drivers/char/console.c | vc_init (i, video_num_lines, video_num_columns, 1); |
i | 387 | drivers/char/console.c | unsigned int currcons, i; |
i | 411 | drivers/char/console.c | for (i = 0; i< currcons; i++) |
i | 412 | drivers/char/console.c | if (newscreens[i]) |
i | 413 | drivers/char/console.c | kfree_s(newscreens[i], ss); |
i | 916 | drivers/char/console.c | int i; |
i | 918 | drivers/char/console.c | for (i=0;i<=npar;i++) |
i | 919 | drivers/char/console.c | switch (par[i]) { |
i | 998 | drivers/char/console.c | if (par[i] >= 30 && par[i] <= 37) |
i | 999 | drivers/char/console.c | color = color_table[par[i]-30] |
i | 1001 | drivers/char/console.c | else if (par[i] >= 40 && par[i] <= 47) |
i | 1002 | drivers/char/console.c | color = (color_table[par[i]-40]<<4) |
i | 1126 | drivers/char/console.c | int i; |
i | 1128 | drivers/char/console.c | for (i=0; i<=npar; i++) |
i | 1129 | drivers/char/console.c | if (ques) switch(par[i]) { /* DEC private modes set/reset */ |
i | 1174 | drivers/char/console.c | } else switch(par[i]) { /* ANSI modes set/reset */ |
i | 1221 | drivers/char/console.c | unsigned int i = x; |
i | 1225 | drivers/char/console.c | while (i++ < video_num_columns) { |
i | 1242 | drivers/char/console.c | unsigned int i = x; |
i | 1245 | drivers/char/console.c | while (++i < video_num_columns) { |
i | 1645 | drivers/char/console.c | int i = par[0]*3, j = 1; |
i | 1646 | drivers/char/console.c | palette[i] = 16*par[j++]; |
i | 1647 | drivers/char/console.c | palette[i++] += par[j++]; |
i | 1648 | drivers/char/console.c | palette[i] = 16*par[j++]; |
i | 1649 | drivers/char/console.c | palette[i++] += par[j++]; |
i | 1650 | drivers/char/console.c | palette[i] = 16*par[j++]; |
i | 1651 | drivers/char/console.c | palette[i] += par[j]; |
i | 2066 | drivers/char/console.c | int i ; |
i | 2095 | drivers/char/console.c | for (i=0; i<16; i++) { |
i | 2097 | drivers/char/console.c | outb_p (i, 0x3c0) ; |
i | 2098 | drivers/char/console.c | outb_p (i, 0x3c0) ; |
i | 2105 | drivers/char/console.c | for (i=0; i<16; i++) { |
i | 2106 | drivers/char/console.c | outb_p (color_table[i], 0x3c8) ; |
i | 2107 | drivers/char/console.c | outb_p (default_red[i], 0x3c9) ; |
i | 2108 | drivers/char/console.c | outb_p (default_grn[i], 0x3c9) ; |
i | 2109 | drivers/char/console.c | outb_p (default_blu[i], 0x3c9) ; |
i | 2205 | drivers/char/console.c | int i; |
i | 2210 | drivers/char/console.c | for ( i = 0 ; i < 12 ; i++ ) |
i | 2212 | drivers/char/console.c | outb_p(i, 0x3b4); |
i | 2213 | drivers/char/console.c | outb_p(herc_txt_tbl[i], 0x3b5); |
i | 2350 | drivers/char/console.c | int i; |
i | 2354 | drivers/char/console.c | i = vc_allocate(idx); |
i | 2355 | drivers/char/console.c | if (i) |
i | 2356 | drivers/char/console.c | return i; |
i | 2395 | drivers/char/console.c | int i; |
i | 2415 | drivers/char/console.c | i = verify_area(set ? VERIFY_READ : VERIFY_WRITE, (void *)arg, |
i | 2417 | drivers/char/console.c | if (i) |
i | 2418 | drivers/char/console.c | return i; |
i | 2439 | drivers/char/console.c | for (i=0; i<cmapsz ; i++) |
i | 2440 | drivers/char/console.c | scr_writeb(get_user(arg + i), charmap + i); |
i | 2442 | drivers/char/console.c | for (i=0; i<cmapsz ; i++) |
i | 2443 | drivers/char/console.c | put_user(scr_readb(charmap + i), arg + i); |
i | 2455 | drivers/char/console.c | for (i=0; i<cmapsz ; i++) |
i | 2456 | drivers/char/console.c | *(charmap+i) = get_user(arg+i); |
i | 2458 | drivers/char/console.c | for (i=0; i<cmapsz ; i++) |
i | 2459 | drivers/char/console.c | put_user(*(charmap+i), arg+i); |
i | 2508 | drivers/char/console.c | int i; |
i | 2515 | drivers/char/console.c | i = verify_area(set ? VERIFY_READ : VERIFY_WRITE, (void *)arg, 16*3); |
i | 2516 | drivers/char/console.c | if (i) |
i | 2517 | drivers/char/console.c | return i; |
i | 2519 | drivers/char/console.c | for (i=0; i<16; i++) { |
i | 2521 | drivers/char/console.c | default_red[i] = get_user(arg++) ; |
i | 2522 | drivers/char/console.c | default_grn[i] = get_user(arg++) ; |
i | 2523 | drivers/char/console.c | default_blu[i] = get_user(arg++) ; |
i | 2525 | drivers/char/console.c | put_user (default_red[i], arg++) ; |
i | 2526 | drivers/char/console.c | put_user (default_grn[i], arg++) ; |
i | 2527 | drivers/char/console.c | put_user (default_blu[i], arg++) ; |
i | 2531 | drivers/char/console.c | for (i=0; i<MAX_NR_CONSOLES; i++) |
i | 2532 | drivers/char/console.c | if (vc_cons_allocated(i)) { |
i | 2535 | drivers/char/console.c | vc_cons[i].d->vc_palette[k++] = default_red[j]; |
i | 2536 | drivers/char/console.c | vc_cons[i].d->vc_palette[k++] = default_grn[j]; |
i | 2537 | drivers/char/console.c | vc_cons[i].d->vc_palette[k++] = default_blu[j]; |
i | 2577 | drivers/char/console.c | int i, j ; |
i | 2583 | drivers/char/console.c | for (i=j=0; i<16; i++) { |
i | 2584 | drivers/char/console.c | outb_p (color_table[i], dac_reg) ; |
i | 2599 | drivers/char/console.c | int i; |
i | 2601 | drivers/char/console.c | i = set_get_font (arg,1,ch512); |
i | 2602 | drivers/char/console.c | if ( !i ) { |
i | 2607 | drivers/char/console.c | return i; |
i | 165 | drivers/char/consolemap.c | static void set_inverse_transl(int i) |
i | 168 | drivers/char/consolemap.c | unsigned short *p = translations[i]; |
i | 169 | drivers/char/consolemap.c | unsigned char *q = inverse_translations[i]; |
i | 173 | drivers/char/consolemap.c | q = inverse_translations[i] = ((i == LAT1_MAP) |
i | 216 | drivers/char/consolemap.c | int i; |
i | 219 | drivers/char/consolemap.c | i = verify_area(VERIFY_READ, (void *)arg, E_TABSZ); |
i | 220 | drivers/char/consolemap.c | if (i) |
i | 221 | drivers/char/consolemap.c | return i; |
i | 223 | drivers/char/consolemap.c | for (i=0; i<E_TABSZ ; i++) |
i | 224 | drivers/char/consolemap.c | p[i] = UNI_DIRECT_BASE | get_user(arg+i); |
i | 232 | drivers/char/consolemap.c | int i, ch; |
i | 235 | drivers/char/consolemap.c | i = verify_area(VERIFY_WRITE, (void *)arg, E_TABSZ); |
i | 236 | drivers/char/consolemap.c | if (i) |
i | 237 | drivers/char/consolemap.c | return i; |
i | 239 | drivers/char/consolemap.c | for (i=0; i<E_TABSZ ; i++) |
i | 241 | drivers/char/consolemap.c | ch = conv_uni_to_pc(p[i]); |
i | 242 | drivers/char/consolemap.c | put_user((ch & ~0xff) ? 0 : ch, arg+i); |
i | 248 | drivers/char/consolemap.c | int i; |
i | 251 | drivers/char/consolemap.c | i = verify_area(VERIFY_READ, (void *)arg, |
i | 253 | drivers/char/consolemap.c | if (i) |
i | 254 | drivers/char/consolemap.c | return i; |
i | 256 | drivers/char/consolemap.c | for (i=0; i<E_TABSZ ; i++) |
i | 257 | drivers/char/consolemap.c | p[i] = get_user(arg+i); |
i | 265 | drivers/char/consolemap.c | int i; |
i | 268 | drivers/char/consolemap.c | i = verify_area(VERIFY_WRITE, (void *)arg, |
i | 270 | drivers/char/consolemap.c | if (i) |
i | 271 | drivers/char/consolemap.c | return i; |
i | 273 | drivers/char/consolemap.c | for (i=0; i<E_TABSZ ; i++) |
i | 274 | drivers/char/consolemap.c | put_user(p[i], arg+i); |
i | 303 | drivers/char/consolemap.c | int i; |
i | 320 | drivers/char/consolemap.c | for (i=0; i<hashsize; i++) |
i | 321 | drivers/char/consolemap.c | hashtable[i].unicode = 0xffff; |
i | 327 | drivers/char/consolemap.c | int i, lct; |
i | 335 | drivers/char/consolemap.c | i = u % hashsize; |
i | 337 | drivers/char/consolemap.c | while ((hu = hashtable[i].unicode) != 0xffff && hu != u) { |
i | 340 | drivers/char/consolemap.c | i += hashstep; |
i | 341 | drivers/char/consolemap.c | if (i >= hashsize) |
i | 342 | drivers/char/consolemap.c | i -= hashsize; |
i | 346 | drivers/char/consolemap.c | hashtable[i].unicode = u; |
i | 347 | drivers/char/consolemap.c | hashtable[i].fontpos = get_user(&list->fontpos); |
i | 352 | drivers/char/consolemap.c | for ( i = 0 ; i <= 3 ; i++ ) |
i | 353 | drivers/char/consolemap.c | set_inverse_transl(i); /* Update all inverse translations */ |
i | 360 | drivers/char/consolemap.c | int i, ect; |
i | 364 | drivers/char/consolemap.c | for (i = 0; i<hashsize; i++) |
i | 365 | drivers/char/consolemap.c | if (hashtable[i].unicode != 0xffff) { |
i | 367 | drivers/char/consolemap.c | put_user(hashtable[i].unicode, &list->unicode); |
i | 368 | drivers/char/consolemap.c | put_user(hashtable[i].fontpos, &list->fontpos); |
i | 378 | drivers/char/consolemap.c | int i, h; |
i | 399 | drivers/char/consolemap.c | for (i = 0; i < hashlevel; i++) { |
i | 462 | drivers/char/cyclades.c | volatile int i; |
i | 466 | drivers/char/cyclades.c | for(i = 0 ; i < 100 ; i++){ |
i | 474 | drivers/char/cyclades.c | if ( i == 10 ) { |
i | 598 | drivers/char/cyclades.c | int i,j; |
i | 634 | drivers/char/cyclades.c | i = channel + chip * 4 + cinfo->first_line; |
i | 635 | drivers/char/cyclades.c | info = &cy_port[i]; |
i | 750 | drivers/char/cyclades.c | i = channel + chip * 4 + cinfo->first_line; |
i | 755 | drivers/char/cyclades.c | if( (i < 0) || (NR_PORTS <= i) ){ |
i | 759 | drivers/char/cyclades.c | info = &cy_port[i]; |
i | 981 | drivers/char/cyclades.c | int i, mask; |
i | 983 | drivers/char/cyclades.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 985 | drivers/char/cyclades.c | && !request_irq(i, cy_probe, SA_INTERRUPT, "serial probe")) { |
i | 998 | drivers/char/cyclades.c | int i; |
i | 1000 | drivers/char/cyclades.c | for (i = 0; i < 16; i++) { |
i | 1001 | drivers/char/cyclades.c | if (irq_lines & (1 << i)) |
i | 1002 | drivers/char/cyclades.c | free_irq(i); |
i | 1013 | drivers/char/cyclades.c | int i, mask; |
i | 1038 | drivers/char/cyclades.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 1039 | drivers/char/cyclades.c | if ((cy_triggered & (1 << i)) && |
i | 1040 | drivers/char/cyclades.c | (irq_lines & (1 << i))) { |
i | 1308 | drivers/char/cyclades.c | int i; |
i | 1319 | drivers/char/cyclades.c | i = cflag & CBAUD; |
i | 1329 | drivers/char/cyclades.c | if (i & CBAUDEX) { |
i | 1330 | drivers/char/cyclades.c | if (i == B57600) |
i | 1331 | drivers/char/cyclades.c | i = 16; |
i | 1332 | drivers/char/cyclades.c | else if(i == B115200) |
i | 1333 | drivers/char/cyclades.c | i = 18; |
i | 1335 | drivers/char/cyclades.c | else if(i == B78600) |
i | 1336 | drivers/char/cyclades.c | i = 17; |
i | 1342 | drivers/char/cyclades.c | if (i == 15) { |
i | 1344 | drivers/char/cyclades.c | i += 1; |
i | 1346 | drivers/char/cyclades.c | i += 3; |
i | 1348 | drivers/char/cyclades.c | info->tbpr = baud_bpr[i]; /* Tx BPR */ |
i | 1349 | drivers/char/cyclades.c | info->tco = baud_co[i]; /* Tx CO */ |
i | 1350 | drivers/char/cyclades.c | info->rbpr = baud_bpr[i]; /* Rx BPR */ |
i | 1351 | drivers/char/cyclades.c | info->rco = baud_co[i]; /* Rx CO */ |
i | 1352 | drivers/char/cyclades.c | if (baud_table[i] == 134) { |
i | 1355 | drivers/char/cyclades.c | } else if (baud_table[i]) { |
i | 1356 | drivers/char/cyclades.c | info->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2; |
i | 1370 | drivers/char/cyclades.c | : baud_cor3[i]); /* receive threshold */ |
i | 1471 | drivers/char/cyclades.c | if(i == 0){ /* baud rate is zero, turn off line */ |
i | 167 | drivers/char/keyboard.c | int i; |
i | 169 | drivers/char/keyboard.c | for (i=0; i<0x100000; i++) |
i | 673 | drivers/char/keyboard.c | int i; |
i | 675 | drivers/char/keyboard.c | for (i = fg_console-1; i != fg_console; i--) { |
i | 676 | drivers/char/keyboard.c | if (i == -1) |
i | 677 | drivers/char/keyboard.c | i = MAX_NR_CONSOLES-1; |
i | 678 | drivers/char/keyboard.c | if (vc_cons_allocated(i)) |
i | 681 | drivers/char/keyboard.c | want_console = i; |
i | 686 | drivers/char/keyboard.c | int i; |
i | 688 | drivers/char/keyboard.c | for (i = fg_console+1; i != fg_console; i++) { |
i | 689 | drivers/char/keyboard.c | if (i == MAX_NR_CONSOLES) |
i | 690 | drivers/char/keyboard.c | i = 0; |
i | 691 | drivers/char/keyboard.c | if (vc_cons_allocated(i)) |
i | 694 | drivers/char/keyboard.c | want_console = i; |
i | 824 | drivers/char/keyboard.c | int i; |
i | 830 | drivers/char/keyboard.c | for (i = 0; i < accent_table_size; i++) { |
i | 831 | drivers/char/keyboard.c | if (accent_table[i].diacr == d && accent_table[i].base == ch) |
i | 832 | drivers/char/keyboard.c | return accent_table[i].result; |
i | 966 | drivers/char/keyboard.c | int i, j, k, sym, val; |
i | 969 | drivers/char/keyboard.c | for(i=0; i < SIZE(k_down); i++) |
i | 970 | drivers/char/keyboard.c | k_down[i] = 0; |
i | 972 | drivers/char/keyboard.c | for(i=0; i < SIZE(key_down); i++) |
i | 973 | drivers/char/keyboard.c | if(key_down[i]) { /* skip this word if not a single bit on */ |
i | 974 | drivers/char/keyboard.c | k = i*BITS_PER_LONG; |
i | 1036 | drivers/char/keyboard.c | int i; |
i | 1044 | drivers/char/keyboard.c | for(i=0; i<0x200000; i++) { |
i | 1167 | drivers/char/keyboard.c | int i; |
i | 1177 | drivers/char/keyboard.c | for (i = 0 ; i < MAX_NR_CONSOLES ; i++) |
i | 1178 | drivers/char/keyboard.c | kbd_table[i] = kbd0; |
i | 125 | drivers/char/mem.c | unsigned int i = file->f_pos; |
i | 128 | drivers/char/mem.c | while (count-- > 0 && i < 65536) { |
i | 129 | drivers/char/mem.c | put_user(inb(i),tmp); |
i | 130 | drivers/char/mem.c | i++; |
i | 133 | drivers/char/mem.c | file->f_pos = i; |
i | 139 | drivers/char/mem.c | unsigned int i = file->f_pos; |
i | 142 | drivers/char/mem.c | while (count-- > 0 && i < 65536) { |
i | 143 | drivers/char/mem.c | outb(get_user(tmp),i); |
i | 144 | drivers/char/mem.c | i++; |
i | 147 | drivers/char/mem.c | file->f_pos = i; |
i | 106 | drivers/char/msbusmouse.c | int i, dx, dy; |
i | 117 | drivers/char/msbusmouse.c | for (i = 3; i < count; i++) |
i | 118 | drivers/char/msbusmouse.c | put_user(0x00, buffer + i); |
i | 122 | drivers/char/msbusmouse.c | return i; |
i | 149 | drivers/char/msbusmouse.c | int mse_byte, i; |
i | 159 | drivers/char/msbusmouse.c | for (i = 0; i < 4; i++) { |
i | 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 | 339 | drivers/char/psaux.c | int i = count; |
i | 341 | drivers/char/psaux.c | while (i--) { |
i | 361 | drivers/char/psaux.c | int i = count; |
i | 363 | drivers/char/psaux.c | while (i--) { |
i | 381 | drivers/char/psaux.c | int i = count; |
i | 397 | drivers/char/psaux.c | while (i > 0 && !queue_empty()) { |
i | 400 | drivers/char/psaux.c | i--; |
i | 403 | drivers/char/psaux.c | if (count-i) { |
i | 405 | drivers/char/psaux.c | return count-i; |
i | 216 | drivers/char/scc.c | int i; |
i | 222 | drivers/char/scc.c | for (i = 0 ; i < MAX_IBUFS ; i++) |
i | 229 | drivers/char/scc.c | allocated_ibufs = --i; |
i | 234 | drivers/char/scc.c | printk("Warning: scc_alloc_buffer_pool() - allocated only %i buffers\n",i); |
i | 239 | drivers/char/scc.c | sccfreelist[i] = sccb; |
i | 240 | drivers/char/scc.c | sccfreelist[i]->bp = bp; |
i | 241 | drivers/char/scc.c | memset(sccfreelist[i]->bp ,0,sizeof(struct mbuf)); |
i | 242 | drivers/char/scc.c | sccfreelist[i]->inuse = 0; |
i | 243 | drivers/char/scc.c | sccfreelist[i]->bp->type = 0; |
i | 244 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
i | 245 | drivers/char/scc.c | sccfreelist[i]->bp->size = BUFSIZE; |
i | 252 | drivers/char/scc.c | unsigned int i, used = 0; |
i | 257 | drivers/char/scc.c | for (i = 0 ; i < allocated_ibufs ; i++) |
i | 259 | drivers/char/scc.c | if (sccfreelist[i]->inuse) |
i | 261 | drivers/char/scc.c | switch (sccfreelist[i]->bp->type) |
i | 281 | drivers/char/scc.c | int i; |
i | 286 | drivers/char/scc.c | for (i = 0 ; i < allocated_ibufs ; i++) |
i | 288 | drivers/char/scc.c | if(sccfreelist[i]->inuse == 0) |
i | 290 | drivers/char/scc.c | sccfreelist[i]->inuse = 1; |
i | 291 | drivers/char/scc.c | sccfreelist[i]->bp->type = type; |
i | 292 | drivers/char/scc.c | sccfreelist[i]->bp->next = NULLBUF; |
i | 293 | drivers/char/scc.c | sccfreelist[i]->bp->anext = NULLBUF; |
i | 294 | drivers/char/scc.c | sccfreelist[i]->bp->dup = NULLBUF; |
i | 295 | drivers/char/scc.c | sccfreelist[i]->bp->size = BUFSIZE; |
i | 296 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 1; |
i | 297 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
i | 298 | drivers/char/scc.c | sccfreelist[i]->bp->in_use = 0; |
i | 299 | drivers/char/scc.c | sccfreelist[i]->bp->time_out = CURRENT_TIME + 300; |
i | 302 | drivers/char/scc.c | return sccfreelist[i]->bp; |
i | 320 | drivers/char/scc.c | int i; |
i | 338 | drivers/char/scc.c | for(i = 0 ; i < allocated_ibufs ; i++) |
i | 340 | drivers/char/scc.c | if(sccfreelist[i]->inuse == 1) |
i | 341 | drivers/char/scc.c | if(sccfreelist[i]->bp->type == BT_TRANSMIT) |
i | 342 | drivers/char/scc.c | if(sccfreelist[i]->bp->time_out < CURRENT_TIME) |
i | 344 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
i | 345 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
i | 346 | drivers/char/scc.c | sccfreelist[i]->inuse = 0; |
i | 357 | drivers/char/scc.c | for(i = 0 ; i < allocated_ibufs ; i++) |
i | 359 | drivers/char/scc.c | if(sccfreelist[i]->bp == bp->dup) |
i | 361 | drivers/char/scc.c | if (sccfreelist[i]->bp->type != type) |
i | 364 | drivers/char/scc.c | type,sccfreelist[i]->bp->type); |
i | 367 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
i | 368 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
i | 369 | drivers/char/scc.c | sccfreelist[i]->bp->in_use = 0; |
i | 370 | drivers/char/scc.c | sccfreelist[i]->inuse = 0; |
i | 379 | drivers/char/scc.c | for(i = 0 ; i < allocated_ibufs ; i++) |
i | 381 | drivers/char/scc.c | if(sccfreelist[i]->bp == bp) |
i | 383 | drivers/char/scc.c | if (sccfreelist[i]->bp->type != type) |
i | 386 | drivers/char/scc.c | type,sccfreelist[i]->bp->type); |
i | 389 | drivers/char/scc.c | sccfreelist[i]->bp->cnt = 0; |
i | 390 | drivers/char/scc.c | sccfreelist[i]->bp->refcnt = 0; |
i | 391 | drivers/char/scc.c | sccfreelist[i]->inuse = 0; |
i | 799 | drivers/char/scc.c | int i; |
i | 825 | drivers/char/scc.c | for(i = 0 ; i < scc->rxbufcnt ; i++) |
i | 828 | drivers/char/scc.c | tty_insert_flip_char(scc->tty, scc->rxbuf[i], 0); |
i | 846 | drivers/char/scc.c | tty_insert_flip_char(scc->tty, scc->rxbuf[i], 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 | 767 | drivers/char/serial.c | unsigned int i; |
i | 770 | drivers/char/serial.c | for (i=1; i < 16; i++) { |
i | 771 | drivers/char/serial.c | info = IRQ_ports[i]; |
i | 782 | drivers/char/serial.c | if (rs_multiport[i].port1) |
i | 783 | drivers/char/serial.c | rs_interrupt_multi(i, NULL); |
i | 785 | drivers/char/serial.c | rs_interrupt(i, NULL); |
i | 787 | drivers/char/serial.c | rs_interrupt_single(i, NULL); |
i | 822 | drivers/char/serial.c | int i, mask; |
i | 824 | drivers/char/serial.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 825 | drivers/char/serial.c | if (!(mask & dontgrab) && !request_irq(i, rs_probe, SA_INTERRUPT, "serial probe")) { |
i | 837 | drivers/char/serial.c | int i; |
i | 839 | drivers/char/serial.c | for (i = 0; i < 16; i++) { |
i | 840 | drivers/char/serial.c | if (irq_lines & (1 << i)) |
i | 841 | drivers/char/serial.c | free_irq(i); |
i | 1118 | drivers/char/serial.c | int i; |
i | 1125 | drivers/char/serial.c | i = cflag & CBAUD; |
i | 1126 | drivers/char/serial.c | if (i & CBAUDEX) { |
i | 1127 | drivers/char/serial.c | i &= ~CBAUDEX; |
i | 1128 | drivers/char/serial.c | if (i < 1 || i > 2) |
i | 1131 | drivers/char/serial.c | i += 15; |
i | 1133 | drivers/char/serial.c | if (i == 15) { |
i | 1135 | drivers/char/serial.c | i += 1; |
i | 1137 | drivers/char/serial.c | i += 2; |
i | 1144 | drivers/char/serial.c | } else if (baud_table[i] == 134) { |
i | 1147 | drivers/char/serial.c | } else if (baud_table[i]) { |
i | 1148 | drivers/char/serial.c | quot = info->baud_base / baud_table[i]; |
i | 1149 | drivers/char/serial.c | info->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2; |
i | 1468 | drivers/char/serial.c | unsigned int i,change_irq,change_port; |
i | 1503 | drivers/char/serial.c | for (i = 0 ; i < NR_PORTS; i++) |
i | 1504 | drivers/char/serial.c | if ((info != &rs_table[i]) && |
i | 1505 | drivers/char/serial.c | (rs_table[i].port == new_serial.port) && |
i | 1506 | drivers/char/serial.c | rs_table[i].type) |
i | 1692 | drivers/char/serial.c | int i, mask; |
i | 1717 | drivers/char/serial.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 1718 | drivers/char/serial.c | if ((rs_triggered & (1 << i)) && |
i | 1719 | drivers/char/serial.c | (irq_lines & (1 << i))) { |
i | 1722 | drivers/char/serial.c | printk("Wild interrupt? (IRQ %d)\n", i); |
i | 2562 | drivers/char/serial.c | int i; |
i | 2573 | drivers/char/serial.c | for (i = 0; i < 16; i++) { |
i | 2574 | drivers/char/serial.c | IRQ_ports[i] = 0; |
i | 2575 | drivers/char/serial.c | IRQ_timeout[i] = 0; |
i | 2576 | drivers/char/serial.c | memset(&rs_multiport[i], 0, sizeof(struct rs_multiport_struct)); |
i | 2630 | drivers/char/serial.c | for (i = 0, info = rs_table; i < NR_PORTS; i++,info++) { |
i | 2632 | drivers/char/serial.c | info->line = i; |
i | 2692 | drivers/char/serial.c | int i; |
i | 2698 | drivers/char/serial.c | for (i = 0; i < NR_PORTS; i++) { |
i | 2699 | drivers/char/serial.c | if (rs_table[i].port == req->port) |
i | 2702 | drivers/char/serial.c | if (i == NR_PORTS) { |
i | 2703 | drivers/char/serial.c | for (i = 0; i < NR_PORTS; i++) |
i | 2704 | drivers/char/serial.c | if ((rs_table[i].type == PORT_UNKNOWN) && |
i | 2705 | drivers/char/serial.c | (rs_table[i].count == 0)) |
i | 2708 | drivers/char/serial.c | if (i == NR_PORTS) { |
i | 2712 | drivers/char/serial.c | info = &rs_table[i]; |
i | 2713 | drivers/char/serial.c | if (rs_table[i].count) { |
i | 2716 | drivers/char/serial.c | "device already open\n", i, req->port, req->irq); |
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 | 2563 | drivers/char/tpqic02.c | short i; |
i | 2625 | drivers/char/tpqic02.c | for (i=0; i<sizeof(qic02_tape_dynconf); i++) |
i | 2652 | drivers/char/tpqic02.c | for (i=0; i<sizeof(qic02_tape_dynconf); i++) |
i | 2684 | drivers/char/tpqic02.c | for (i=0; i<sizeof(operation); i++) |
i | 2746 | drivers/char/tpqic02.c | for (i=0; i<sizeof(ioctl_status); i++) |
i | 2779 | drivers/char/tpqic02.c | for (i=0; i<sizeof(ioctl_tell); i++) |
i | 160 | drivers/char/tty_io.c | int i, count = 0; |
i | 162 | drivers/char/tty_io.c | for (f = first_file, i=0; i<nr_files; i++, f = f->f_next) { |
i | 346 | drivers/char/tty_io.c | int i; |
i | 353 | drivers/char/tty_io.c | for (filp = first_file, i=0; i<nr_files; i++, filp = filp->f_next) { |
i | 386 | drivers/char/tty_io.c | i = (tty->ldisc.open)(tty); |
i | 387 | drivers/char/tty_io.c | if (i < 0) |
i | 389 | drivers/char/tty_io.c | -i); |
i | 688 | drivers/char/tty_io.c | int i; |
i | 715 | drivers/char/tty_io.c | i = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count); |
i | 717 | drivers/char/tty_io.c | i = -EIO; |
i | 718 | drivers/char/tty_io.c | if (i > 0) |
i | 720 | drivers/char/tty_io.c | return i; |
i | 725 | drivers/char/tty_io.c | int i, is_console; |
i | 751 | drivers/char/tty_io.c | i = (tty->ldisc.write)(tty,file,(unsigned char *)buf,(unsigned int)count); |
i | 753 | drivers/char/tty_io.c | i = -EIO; |
i | 754 | drivers/char/tty_io.c | if (i > 0) |
i | 756 | drivers/char/tty_io.c | return i; |
i | 1281 | drivers/char/tty_io.c | int i, n = 0; |
i | 1283 | drivers/char/tty_io.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct tstruct)); |
i | 1284 | drivers/char/tty_io.c | if (i) |
i | 1285 | drivers/char/tty_io.c | return i; |
i | 1291 | drivers/char/tty_io.c | for (i=0 ; i<sizeof(struct task_struct) ; i++) |
i | 1558 | drivers/char/tty_io.c | int i; |
i | 1575 | drivers/char/tty_io.c | for (i=0; i < NR_OPEN; i++) { |
i | 1576 | 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 | 34 | drivers/char/vt.c | #define VT_IS_IN_USE(i) (console_driver.table[i] && console_driver.table[i]->count) |
i | 35 | 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, (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 | 988 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)arg, |
i | 990 | drivers/char/vt.c | if (i) return i; |
i | 993 | drivers/char/vt.c | i = cfdarg.charcount; |
i | 1000 | drivers/char/vt.c | if ( i < nchar ) |
i | 1027 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)arg, sizeof(struct unimapinit)); |
i | 1028 | drivers/char/vt.c | if (i) |
i | 1029 | drivers/char/vt.c | return i; |
i | 1042 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)arg, sizeof(struct unimapdesc)); |
i | 1043 | drivers/char/vt.c | if (i == 0) { |
i | 1047 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *) list, |
i | 1050 | drivers/char/vt.c | if (i) |
i | 1051 | drivers/char/vt.c | return i; |
i | 1060 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct unimapdesc)); |
i | 1061 | drivers/char/vt.c | if (i == 0) { |
i | 1066 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) list, |
i | 1069 | drivers/char/vt.c | if (i) |
i | 1070 | 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 | 612 | drivers/net/3c501.c | int i; |
i | 613 | drivers/net/3c501.c | for (i = 0; i < 6; i++) /* Set the station address. */ |
i | 614 | drivers/net/3c501.c | outb(dev->dev_addr[i], ioaddr + i); |
i | 92 | drivers/net/3c503.c | int i; |
i | 95 | drivers/net/3c503.c | for(i = 7; i >= 0; i--, base_bits >>= 1) |
i | 100 | drivers/net/3c503.c | if (check_region(netcard_portlist[i], EL2_IO_EXTENT)) |
i | 102 | drivers/net/3c503.c | if (el2_probe1(dev, netcard_portlist[i]) == 0) |
i | 118 | drivers/net/3c503.c | int i; |
i | 126 | drivers/net/3c503.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 127 | drivers/net/3c503.c | int ioaddr = netcard_portlist[i]; |
i | 144 | drivers/net/3c503.c | int i, iobase_reg, membase_reg, saved_406; |
i | 189 | drivers/net/3c503.c | for (i = 0; i < 6; i++) |
i | 190 | drivers/net/3c503.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 222 | drivers/net/3c503.c | for (i = 1; i < EL2_MEMSIZE/sizeof(mem_base[0]); i++) { |
i | 223 | drivers/net/3c503.c | mem_base[i] = memtest_value; |
i | 225 | drivers/net/3c503.c | || mem_base[i] != memtest_value) { |
i | 231 | drivers/net/3c503.c | mem_base[i] = 0; |
i | 379 | drivers/net/3c503.c | int i; /* Buffer index */ |
i | 404 | drivers/net/3c503.c | for(i = 0; i < count; i++) { |
i | 405 | drivers/net/3c503.c | if (i % 8 == 0) |
i | 407 | drivers/net/3c503.c | if (++boguscount > (i<<3) + 32) { |
i | 409 | drivers/net/3c503.c | dev->name, i, count, boguscount); |
i | 412 | drivers/net/3c503.c | outb(buf[i], E33G_FIFOH); |
i | 424 | drivers/net/3c503.c | unsigned int i; |
i | 448 | drivers/net/3c503.c | for(i = 0; i < count; i++) { |
i | 449 | drivers/net/3c503.c | if (i % 8 == 0) |
i | 451 | drivers/net/3c503.c | if (++boguscount > (i<<3) + 32) { |
i | 453 | drivers/net/3c503.c | dev->name, i, count, boguscount); |
i | 457 | drivers/net/3c503.c | buf[i] = inb_p(E33G_FIFOH); |
i | 322 | drivers/net/3c505.c | int i; |
i | 347 | drivers/net/3c505.c | for (i = 0; cont && (i < pcb->length); i++) { |
i | 348 | drivers/net/3c505.c | outb_command(pcb->data.raw[i], dev->base_addr); |
i | 361 | drivers/net/3c505.c | i = GET_ASF(dev->base_addr); |
i | 362 | drivers/net/3c505.c | if ((i == ASF_PCB_ACK) || (i == ASF_PCB_NAK)) |
i | 366 | drivers/net/3c505.c | if (i == ASF_PCB_ACK) { |
i | 370 | drivers/net/3c505.c | else if (i == ASF_PCB_NAK) { |
i | 398 | drivers/net/3c505.c | int i, j; |
i | 437 | drivers/net/3c505.c | i = 0; |
i | 442 | drivers/net/3c505.c | pcb->data.raw[i++] = inb_command(dev->base_addr); |
i | 443 | drivers/net/3c505.c | if (i > MAX_PCB_DATA) |
i | 444 | drivers/net/3c505.c | INVALID_PCB_MSG(i); |
i | 453 | drivers/net/3c505.c | total_length = pcb->data.raw[--i]; |
i | 544 | drivers/net/3c505.c | register int i; |
i | 575 | drivers/net/3c505.c | for (i = 0; i < (rlen/2); i++) { |
i | 597 | drivers/net/3c505.c | for (i = 0; i < (rlen/2); i++) { |
i | 604 | drivers/net/3c505.c | filename,__LINE__, i, rlen/2); |
i | 933 | drivers/net/3c505.c | int i; |
i | 967 | drivers/net/3c505.c | for (i = 0; i < (nlen/2);i++) { |
i | 974 | drivers/net/3c505.c | dev->name,filename,__LINE__, i, nlen/2); |
i | 1166 | drivers/net/3c505.c | int i; |
i | 1176 | drivers/net/3c505.c | for (i=0;i<num_addrs;i++) |
i | 1177 | drivers/net/3c505.c | memcpy(adapter->tx_pcb.data.multicast[i], addrs+6*i,6); |
i | 1361 | drivers/net/3c505.c | int i; |
i | 1424 | drivers/net/3c505.c | for (i = 0; i < 6; i++) |
i | 1425 | drivers/net/3c505.c | dev->dev_addr[i] = adapter.rx_pcb.data.eth_addr[i]; |
i | 309 | drivers/net/3c507.c | int i; |
i | 316 | drivers/net/3c507.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 317 | drivers/net/3c507.c | int ioaddr = netcard_portlist[i]; |
i | 330 | drivers/net/3c507.c | int i, irq, irqval; |
i | 336 | drivers/net/3c507.c | for(i = 0; i < 255; i++) { |
i | 377 | drivers/net/3c507.c | for (i = 0; i < 6; i++) { |
i | 378 | drivers/net/3c507.c | dev->dev_addr[i] = inb(ioaddr + i); |
i | 379 | drivers/net/3c507.c | printk(" %02x", dev->dev_addr[i]); |
i | 118 | drivers/net/3c509.c | short lrs_state = 0xff, i; |
i | 140 | drivers/net/3c509.c | for (i = 0; i < 3; i++) |
i | 141 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
i | 154 | drivers/net/3c509.c | for (i = 0; i < 8; i++) |
i | 155 | drivers/net/3c509.c | if ((mca_adaptor_id(i) | 1) == 0x627c) { |
i | 156 | drivers/net/3c509.c | ioaddr = mca_pos_base_addr(i); |
i | 159 | drivers/net/3c509.c | for (i = 0; i < 3; i++) |
i | 160 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
i | 176 | drivers/net/3c509.c | for(i = 0; i < 255; i++) { |
i | 195 | drivers/net/3c509.c | for (i = 0; i < 3; i++) { |
i | 196 | drivers/net/3c509.c | phys_addr[i] = htons(id_read_eeprom(i)); |
i | 236 | drivers/net/3c509.c | for (i = 0; i < 6; i++) |
i | 237 | drivers/net/3c509.c | printk(" %2.2x", dev->dev_addr[i]); |
i | 303 | drivers/net/3c509.c | int i; |
i | 329 | drivers/net/3c509.c | for (i = 0; i < 6; i++) |
i | 330 | drivers/net/3c509.c | outb(dev->dev_addr[i], ioaddr + i); |
i | 344 | drivers/net/3c509.c | for (i = 0; i < 9; i++) |
i | 345 | drivers/net/3c509.c | inb(ioaddr + i); |
i | 449 | drivers/net/3c509.c | int i = 4; |
i | 451 | drivers/net/3c509.c | while (--i > 0 && (tx_status = inb(ioaddr + TX_STATUS)) > 0) { |
i | 467 | drivers/net/3c509.c | int i = 0; |
i | 500 | drivers/net/3c509.c | if (++i > 10) { |
i | 624 | drivers/net/8390.c | int i; |
i | 653 | drivers/net/8390.c | for(i = 0; i < 6; i++) { |
i | 654 | drivers/net/8390.c | outb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i); |
i | 658 | drivers/net/8390.c | for(i = 0; i < 8; i++) |
i | 659 | drivers/net/8390.c | outb_p(0xff, e8390_base + EN1_MULT + i); |
i | 97 | drivers/net/ac3200.c | int i; |
i | 102 | drivers/net/ac3200.c | for(i = 0; i < 6; i++) |
i | 103 | drivers/net/ac3200.c | printk(" %02x", inb(ioaddr + AC_SA_PROM + i)); |
i | 118 | drivers/net/ac3200.c | for (i = 0; i < 4; i++) |
i | 125 | drivers/net/ac3200.c | for(i = 0; i < ETHER_ADDR_LEN; i++) |
i | 126 | drivers/net/ac3200.c | dev->dev_addr[i] = inb(ioaddr + AC_SA_PROM + i); |
i | 150 | drivers/net/ac3200.c | for (i = 0; i < 7; i++) |
i | 151 | drivers/net/ac3200.c | if (addrmap[i] == dev->mem_start) |
i | 153 | drivers/net/ac3200.c | if (i >= 7) |
i | 154 | drivers/net/ac3200.c | i = 0; |
i | 155 | 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 | 1142 | drivers/net/arcnet.c | short i; |
i | 1143 | drivers/net/arcnet.c | for( i=0; i< skb->len; i++) |
i | 1145 | drivers/net/arcnet.c | if( i%16 == 0 ) printk("\n[%04hX] ",i); |
i | 1146 | drivers/net/arcnet.c | printk("%02hX ",((unsigned char*)skb->data)[i]); |
i | 1966 | drivers/net/arcnet.c | short i; |
i | 1967 | drivers/net/arcnet.c | for( i=0; i< skb->len; i++) |
i | 1969 | drivers/net/arcnet.c | if( i%16 == 0 ) printk("\n[%04hX] ",i); |
i | 1970 | drivers/net/arcnet.c | printk("%02hX ",((unsigned char*)skb->data)[i]); |
i | 2130 | drivers/net/arcnet.c | short i; |
i | 2131 | drivers/net/arcnet.c | for( i=0; i< skb->len; i++) |
i | 2133 | drivers/net/arcnet.c | if( i%16 == 0 ) printk("\n[%04hX] ",i); |
i | 2134 | drivers/net/arcnet.c | printk("%02hX ",((unsigned char*)skb->data)[i]); |
i | 2175 | drivers/net/arcnet.c | short i; |
i | 2177 | drivers/net/arcnet.c | for(i=0; i<skb->len; i++) |
i | 2179 | drivers/net/arcnet.c | if (i%16==0) |
i | 2180 | drivers/net/arcnet.c | printk("\n[%04hX] ",i); |
i | 2182 | drivers/net/arcnet.c | printk("%02hX ",((u_char *)skb->data)[i]); |
i | 144 | drivers/net/at1700.c | int i; |
i | 152 | drivers/net/at1700.c | for (i = 0; at1700_probe_list[i]; i++) { |
i | 153 | drivers/net/at1700.c | int ioaddr = at1700_probe_list[i]; |
i | 175 | drivers/net/at1700.c | unsigned int i, irq; |
i | 218 | drivers/net/at1700.c | for(i = 0; i < 3; i++) { |
i | 219 | drivers/net/at1700.c | unsigned short eeprom_val = read_eeprom(ioaddr, 4+i); |
i | 221 | drivers/net/at1700.c | ((unsigned short *)dev->dev_addr)[i] = ntohs(eeprom_val); |
i | 240 | drivers/net/at1700.c | for (i = 0; i < 6; i++) |
i | 241 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
i | 245 | drivers/net/at1700.c | for (i = 0; i < 8; i++) |
i | 246 | drivers/net/at1700.c | outb(0x00, ioaddr + 8 + i); |
i | 281 | drivers/net/at1700.c | int i; |
i | 291 | drivers/net/at1700.c | for (i = 9; i >= 0; i--) { |
i | 292 | drivers/net/at1700.c | short dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0; |
i | 301 | drivers/net/at1700.c | for (i = 16; i > 0; i--) { |
i | 324 | drivers/net/at1700.c | int i; |
i | 330 | drivers/net/at1700.c | for (i = 0; i < 6; i++) |
i | 331 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
i | 335 | drivers/net/at1700.c | for (i = 0; i < 8; i++) |
i | 336 | drivers/net/at1700.c | outb(0x00, ioaddr + 8 + i); |
i | 556 | drivers/net/at1700.c | int i; |
i | 557 | drivers/net/at1700.c | for (i = 0; i < 20; i++) { |
i | 566 | drivers/net/at1700.c | dev->name, inb(ioaddr + RX_MODE), i); |
i | 263 | drivers/net/atp.c | int i; |
i | 272 | drivers/net/atp.c | for (i = 0; i < 3; i++) |
i | 273 | drivers/net/atp.c | ((unsigned short *)dev->dev_addr)[i] = |
i | 274 | drivers/net/atp.c | ntohs(eeprom_op(ioaddr, EE_READ(sa_offset + i))); |
i | 344 | drivers/net/atp.c | int i; |
i | 348 | drivers/net/atp.c | for (i = 0; i < 6; i++) |
i | 349 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
i | 583 | drivers/net/atp.c | int i; |
i | 584 | drivers/net/atp.c | for (i = 0; i < 6; i++) |
i | 585 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
i | 613 | drivers/net/atp.c | int i; |
i | 618 | drivers/net/atp.c | for (i = 0; i < 6; i++) |
i | 620 | drivers/net/atp.c | if (read_cmd_byte(ioaddr, PAR0 + i) != atp_timed_dev->dev_addr[i]) |
i | 623 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, atp_timed_dev->dev_addr[i]); |
i | 624 | drivers/net/atp.c | if (i == 2) |
i | 626 | drivers/net/atp.c | else if (i == 3) |
i | 628 | drivers/net/atp.c | else if (i == 4) |
i | 634 | 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 | 633 | drivers/net/de4x5.c | for (i=0; i<NUM_RX_DESC; i++) { |
i | 634 | drivers/net/de4x5.c | lp->rx_ring[i].status = 0; |
i | 635 | drivers/net/de4x5.c | lp->rx_ring[i].des1 = RX_BUFF_SZ; |
i | 636 | drivers/net/de4x5.c | lp->rx_ring[i].buf = virt_to_bus(tmp + i * RX_BUFF_SZ); |
i | 637 | drivers/net/de4x5.c | lp->rx_ring[i].next = (u32)NULL; |
i | 676 | drivers/net/de4x5.c | for (dev->irq=0,i=0; (i<sizeof(de4x5_irq)) && (!dev->irq); i++) { |
i | 677 | drivers/net/de4x5.c | if (irqnum == de4x5_irq[i]) { |
i | 760 | drivers/net/de4x5.c | int i, status = 0; |
i | 785 | drivers/net/de4x5.c | for (i=0;i<6;i++){ |
i | 786 | drivers/net/de4x5.c | printk("%2.2x:",(short)dev->dev_addr[i]); |
i | 792 | drivers/net/de4x5.c | for (i=0;i<lp->rxRingSize-1;i++){ |
i | 793 | drivers/net/de4x5.c | if (i < 3) { |
i | 794 | drivers/net/de4x5.c | printk("0x%8.8lx ",(u_long)&lp->rx_ring[i].status); |
i | 797 | drivers/net/de4x5.c | printk("...0x%8.8lx\n",(u_long)&lp->rx_ring[i].status); |
i | 799 | drivers/net/de4x5.c | for (i=0;i<lp->txRingSize-1;i++){ |
i | 800 | drivers/net/de4x5.c | if (i < 3) { |
i | 801 | drivers/net/de4x5.c | printk("0x%8.8lx ", (u_long)&lp->tx_ring[i].status); |
i | 804 | drivers/net/de4x5.c | printk("...0x%8.8lx\n", (u_long)&lp->tx_ring[i].status); |
i | 806 | drivers/net/de4x5.c | for (i=0;i<lp->rxRingSize-1;i++){ |
i | 807 | drivers/net/de4x5.c | if (i < 3) { |
i | 808 | drivers/net/de4x5.c | printk("0x%8.8x ",lp->rx_ring[i].buf); |
i | 811 | drivers/net/de4x5.c | printk("...0x%8.8x\n",lp->rx_ring[i].buf); |
i | 813 | drivers/net/de4x5.c | for (i=0;i<lp->txRingSize-1;i++){ |
i | 814 | drivers/net/de4x5.c | if (i < 3) { |
i | 815 | drivers/net/de4x5.c | printk("0x%8.8x ", lp->tx_ring[i].buf); |
i | 818 | drivers/net/de4x5.c | printk("...0x%8.8x\n", lp->tx_ring[i].buf); |
i | 873 | drivers/net/de4x5.c | int i, j, status = 0; |
i | 898 | drivers/net/de4x5.c | for (i = 0; i < lp->rxRingSize; i++) { |
i | 899 | drivers/net/de4x5.c | lp->rx_ring[i].status = R_OWN; |
i | 902 | drivers/net/de4x5.c | for (i = 0; i < lp->txRingSize; i++) { |
i | 903 | drivers/net/de4x5.c | lp->tx_ring[i].status = 0; |
i | 919 | drivers/net/de4x5.c | for (j=0, i=jiffies;(i<=jiffies+HZ/100) && (j==0);) { |
i | 949 | drivers/net/de4x5.c | int i, status = 0; |
i | 983 | drivers/net/de4x5.c | for (i=lp->tx_old; i!=lp->tx_new; i=(++i)%lp->txRingSize) { |
i | 984 | drivers/net/de4x5.c | if (lp->skb[i] != NULL) { |
i | 985 | drivers/net/de4x5.c | if (lp->skb[i]->len != FAKE_FRAME_LEN) { |
i | 986 | drivers/net/de4x5.c | if (lp->tx_ring[i].status == T_OWN) { |
i | 987 | drivers/net/de4x5.c | dev_queue_xmit(lp->skb[i], dev, SOPRI_NORMAL); |
i | 989 | drivers/net/de4x5.c | dev_kfree_skb(lp->skb[i], FREE_WRITE); |
i | 992 | drivers/net/de4x5.c | dev_kfree_skb(lp->skb[i], FREE_WRITE); |
i | 994 | drivers/net/de4x5.c | lp->skb[i] = NULL; |
i | 1135 | drivers/net/de4x5.c | int i, entry; |
i | 1174 | drivers/net/de4x5.c | for (i=1; i<DE4X5_PKT_STAT_SZ-1; i++) { |
i | 1175 | drivers/net/de4x5.c | if (pkt_len < (i*DE4X5_PKT_BIN_SZ)) { |
i | 1176 | drivers/net/de4x5.c | lp->pktStats.bins[i]++; |
i | 1177 | drivers/net/de4x5.c | i = DE4X5_PKT_STAT_SZ; |
i | 1427 | drivers/net/de4x5.c | int i, j, bit, byte; |
i | 1441 | drivers/net/de4x5.c | for (i=0;i<num_addrs;i++) { /* for each address in the list */ |
i | 1469 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1470 | drivers/net/de4x5.c | *(pa + (i&1)) = *addrs++; |
i | 1471 | drivers/net/de4x5.c | if (i & 0x01) pa += 4; |
i | 1486 | drivers/net/de4x5.c | int i, maxSlots, status; |
i | 1500 | drivers/net/de4x5.c | i = 1; |
i | 1504 | drivers/net/de4x5.c | i = (ioaddr >> 12); |
i | 1505 | drivers/net/de4x5.c | maxSlots = i + 1; |
i | 1508 | drivers/net/de4x5.c | for (status = -ENODEV; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) { |
i | 1807 | drivers/net/de4x5.c | int i, linkBad; |
i | 1813 | drivers/net/de4x5.c | for (linkBad=1,i=0;(i<t_3s) && linkBad && !(sisr & SISR_NCR);i++) { |
i | 2021 | drivers/net/de4x5.c | int i, entry, linkBad; |
i | 2037 | drivers/net/de4x5.c | for (linkBad=1,i=0;(i<t_3s) && linkBad;i++) { |
i | 2098 | drivers/net/de4x5.c | s32 i = 2048, j; |
i | 2103 | drivers/net/de4x5.c | i = 8192; |
i | 2105 | drivers/net/de4x5.c | i = 819; |
i | 2109 | drivers/net/de4x5.c | outl((s32)(msec * 10000)/i, DE4X5_GPT); |
i | 2119 | drivers/net/de4x5.c | int i; |
i | 2122 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { /* Use this source address */ |
i | 2123 | drivers/net/de4x5.c | *buf++ = dev->dev_addr[i]; |
i | 2125 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { /* Use this destination address */ |
i | 2126 | drivers/net/de4x5.c | *buf++ = dev->dev_addr[i]; |
i | 2150 | drivers/net/de4x5.c | u_int i; |
i | 2152 | drivers/net/de4x5.c | for (i=0; i<msec; i++) { |
i | 2165 | drivers/net/de4x5.c | u_int i; |
i | 2184 | drivers/net/de4x5.c | for (i=0;(*signatures[i] != '\0') && (*name == '\0');i++) { |
i | 2185 | drivers/net/de4x5.c | if (strstr(ManCode, signatures[i]) != NULL) { |
i | 2216 | drivers/net/de4x5.c | int i, j, tmp, status = 0; |
i | 2225 | drivers/net/de4x5.c | for (i=0,j=0;(j<sigLength) && (i<PROBE_LENGTH+sigLength-1);i++) { |
i | 2249 | drivers/net/de4x5.c | for (i=0; i<(sizeof(struct de4x5_srom)>>1); i++) { |
i | 2250 | drivers/net/de4x5.c | *p++ = srom_rd(aprom_addr, i); |
i | 2260 | drivers/net/de4x5.c | int i, k, tmp, status = 0; |
i | 2264 | drivers/net/de4x5.c | for (i=0,k=0,j=0;j<3;j++) { |
i | 2272 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 2275 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 2277 | drivers/net/de4x5.c | dev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++; |
i | 2278 | drivers/net/de4x5.c | dev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++; |
i | 2282 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 2284 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 2343 | drivers/net/de4x5.c | int i; |
i | 2347 | drivers/net/de4x5.c | for (i=0; i<6; i++, a <<= 1) { |
i | 2352 | drivers/net/de4x5.c | i = (getfrom_srom(addr) >> 3) & 0x01; |
i | 2353 | drivers/net/de4x5.c | if (i != 0) { |
i | 2363 | drivers/net/de4x5.c | int i; |
i | 2367 | drivers/net/de4x5.c | for (i=0; i<16; i++) { |
i | 2416 | drivers/net/de4x5.c | int i; |
i | 2425 | drivers/net/de4x5.c | for (pa=lp->setup_frame+IMPERF_PA_OFFSET, i=0; i<ETH_ALEN; i++) { |
i | 2426 | drivers/net/de4x5.c | *(pa + i) = dev->dev_addr[i]; /* Host address */ |
i | 2427 | drivers/net/de4x5.c | if (i & 0x01) pa += 2; |
i | 2431 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { /* Host address */ |
i | 2432 | drivers/net/de4x5.c | *(pa + (i&1)) = dev->dev_addr[i]; |
i | 2433 | drivers/net/de4x5.c | if (i & 0x01) pa += 4; |
i | 2435 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { /* Broadcast address */ |
i | 2436 | drivers/net/de4x5.c | *(pa + (i&1)) = (char) 0xff; |
i | 2437 | drivers/net/de4x5.c | if (i & 0x01) pa += 4; |
i | 2491 | drivers/net/de4x5.c | int i, j, status = 0; |
i | 2505 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { |
i | 2506 | drivers/net/de4x5.c | tmp.addr[i] = dev->dev_addr[i]; |
i | 2520 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { |
i | 2521 | drivers/net/de4x5.c | dev->dev_addr[i] = tmp.addr[i]; |
i | 2663 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { |
i | 2664 | drivers/net/de4x5.c | tmp.addr[j++] = dev->dev_addr[i]; |
i | 2670 | drivers/net/de4x5.c | for (i=0;i<lp->rxRingSize-1;i++){ |
i | 2671 | drivers/net/de4x5.c | if (i < 3) { |
i | 2672 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->rx_ring[i].status; j+=4; |
i | 2675 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->rx_ring[i].status; j+=4; |
i | 2676 | drivers/net/de4x5.c | for (i=0;i<lp->txRingSize-1;i++){ |
i | 2677 | drivers/net/de4x5.c | if (i < 3) { |
i | 2678 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->tx_ring[i].status; j+=4; |
i | 2681 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->tx_ring[i].status; j+=4; |
i | 2683 | drivers/net/de4x5.c | for (i=0;i<lp->rxRingSize-1;i++){ |
i | 2684 | drivers/net/de4x5.c | if (i < 3) { |
i | 2685 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->rx_ring[i].buf; j+=4; |
i | 2688 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->rx_ring[i].buf; j+=4; |
i | 2689 | drivers/net/de4x5.c | for (i=0;i<lp->txRingSize-1;i++){ |
i | 2690 | drivers/net/de4x5.c | if (i < 3) { |
i | 2691 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->tx_ring[i].buf; j+=4; |
i | 2694 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->tx_ring[i].buf; j+=4; |
i | 2696 | drivers/net/de4x5.c | for (i=0;i<lp->rxRingSize;i++){ |
i | 2697 | drivers/net/de4x5.c | tmp.lval[j>>2] = lp->rx_ring[i].status; j+=4; |
i | 2699 | drivers/net/de4x5.c | for (i=0;i<lp->txRingSize;i++){ |
i | 2700 | 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 | 771 | drivers/net/de600.c | for (i = 0; i < ETH_ALEN; i++) |
i | 772 | 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(W_PAR0 + i, dev->dev_addr[i]); |
i | 771 | drivers/net/de620.c | if (((i = de620_get_register(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 | 542 | drivers/net/depca.c | for (i=0, j = lp->rxRingMask; j>0; i++) { |
i | 545 | drivers/net/depca.c | lp->rx_rlen = (s32)(i << 29); |
i | 546 | drivers/net/depca.c | for (i=0, j = lp->txRingMask; j>0; i++) { |
i | 549 | drivers/net/depca.c | lp->tx_rlen = (s32)(i << 29); |
i | 594 | drivers/net/depca.c | for (dev->irq=0,i=0; (depca_irq[i]) && (!dev->irq); i++) { |
i | 595 | drivers/net/depca.c | if (irqnum == depca_irq[i]) { |
i | 658 | drivers/net/depca.c | int i, status = 0; |
i | 688 | drivers/net/depca.c | for (i=0;i<lp->rxRingMask;i++){ |
i | 689 | drivers/net/depca.c | if (i < 3) { |
i | 690 | drivers/net/depca.c | printk("0x%8.8lx ", (long) &lp->rx_ring[i].base); |
i | 693 | drivers/net/depca.c | printk("...0x%8.8lx\n", (long) &lp->rx_ring[i].base); |
i | 695 | drivers/net/depca.c | for (i=0;i<lp->txRingMask;i++){ |
i | 696 | drivers/net/depca.c | if (i < 3) { |
i | 697 | drivers/net/depca.c | printk("0x%8.8lx ", (long) &lp->tx_ring[i].base); |
i | 700 | drivers/net/depca.c | printk("...0x%8.8lx\n", (long) &lp->tx_ring[i].base); |
i | 702 | drivers/net/depca.c | for (i=0;i<lp->rxRingMask;i++){ |
i | 703 | drivers/net/depca.c | if (i < 3) { |
i | 704 | drivers/net/depca.c | printk("0x%8.8x ", readl(&lp->rx_ring[i].base)); |
i | 707 | drivers/net/depca.c | printk("...0x%8.8x\n", readl(&lp->rx_ring[i].base)); |
i | 709 | drivers/net/depca.c | for (i=0;i<lp->txRingMask;i++){ |
i | 710 | drivers/net/depca.c | if (i < 3) { |
i | 711 | drivers/net/depca.c | printk("0x%8.8x ", readl(&lp->tx_ring[i].base)); |
i | 714 | drivers/net/depca.c | printk("...0x%8.8x\n", readl(&lp->tx_ring[i].base)); |
i | 719 | drivers/net/depca.c | for (i=0;i<ETH_ALEN-1;i++){ |
i | 720 | drivers/net/depca.c | printk("%2.2x:",(u_char)readb(&p->phys_addr[i])); |
i | 722 | drivers/net/depca.c | printk("%2.2x\n",(u_char)readb(&p->phys_addr[i])); |
i | 724 | drivers/net/depca.c | for (i=0;i<(HASH_TABLE_LEN >> 3)-1;i++){ |
i | 725 | drivers/net/depca.c | printk("%2.2x:",(u_char)readb(&p->mcast_table[i])); |
i | 727 | drivers/net/depca.c | printk("%2.2x\n",(u_char)readb(&p->mcast_table[i])); |
i | 771 | drivers/net/depca.c | u_int i; |
i | 781 | drivers/net/depca.c | for (i = 0; i <= lp->rxRingMask; i++) { |
i | 782 | drivers/net/depca.c | writel((p=lp->dma_buffs+i*RX_BUFF_SZ) | R_OWN, &lp->rx_ring[i].base); |
i | 783 | drivers/net/depca.c | writew(-RX_BUFF_SZ, &lp->rx_ring[i].buf_length); |
i | 784 | drivers/net/depca.c | lp->rx_memcpy[i]=(char *)(p+lp->bus_offset); |
i | 786 | drivers/net/depca.c | for (i = 0; i <= lp->txRingMask; i++) { |
i | 787 | drivers/net/depca.c | writel((p=lp->dma_buffs+(i+lp->txRingMask+1)*TX_BUFF_SZ) & 0x00ffffff, |
i | 788 | drivers/net/depca.c | &lp->tx_ring[i].base); |
i | 789 | drivers/net/depca.c | lp->tx_memcpy[i]=(char *)(p+lp->bus_offset); |
i | 798 | drivers/net/depca.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 799 | drivers/net/depca.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
i | 925 | drivers/net/depca.c | int i, entry; |
i | 971 | drivers/net/depca.c | for (i=1; i<DEPCA_PKT_STAT_SZ-1; i++) { |
i | 972 | drivers/net/depca.c | if (pkt_len < (i*DEPCA_PKT_BIN_SZ)) { |
i | 973 | drivers/net/depca.c | lp->pktStats.bins[i]++; |
i | 974 | drivers/net/depca.c | i = DEPCA_PKT_STAT_SZ; |
i | 1120 | drivers/net/depca.c | int i, status=0; |
i | 1129 | drivers/net/depca.c | for (i=0;(i<100) && !(inw(DEPCA_DATA) & IDON); i++); |
i | 1131 | drivers/net/depca.c | if (i!=100) { |
i | 1136 | drivers/net/depca.c | dev->name, i, lp->sh_mem, inw(DEPCA_DATA)); |
i | 1140 | drivers/net/depca.c | dev->name, i, lp->sh_mem, inw(DEPCA_DATA)); |
i | 1200 | drivers/net/depca.c | int i, j, bit, byte; |
i | 1205 | drivers/net/depca.c | for (i=0; i<(HASH_TABLE_LEN>>3); i++) { |
i | 1206 | drivers/net/depca.c | lp->init_block.mcast_table[i] = (char)0xff; |
i | 1210 | drivers/net/depca.c | for (i=0; i<(HASH_TABLE_LEN>>3); i++){ |
i | 1211 | drivers/net/depca.c | lp->init_block.mcast_table[i]=0; |
i | 1215 | drivers/net/depca.c | for (i=0;i<num_addrs;i++) { /* for each address in the list */ |
i | 1247 | drivers/net/depca.c | int i = num_depcas, maxSlots; |
i | 1252 | drivers/net/depca.c | if (i >= MAX_NUM_DEPCAS) return; /* Too many ISA adapters */ |
i | 1257 | drivers/net/depca.c | ports[i] = ioaddr; |
i | 1258 | drivers/net/depca.c | maxSlots = i + 1; |
i | 1261 | drivers/net/depca.c | for (; (i<maxSlots) && (dev!=NULL) && ports[i]; i++) { |
i | 1262 | drivers/net/depca.c | if (DevicePresent(ports[i]) == 0) { |
i | 1263 | drivers/net/depca.c | if (check_region(ports[i], DEPCA_TOTAL_SIZE) == 0) { |
i | 1264 | drivers/net/depca.c | if ((dev = alloc_device(dev, ports[i])) != NULL) { |
i | 1265 | drivers/net/depca.c | if (depca_hw_init(dev, ports[i]) == 0) { |
i | 1271 | drivers/net/depca.c | printk("%s: region already allocated at 0x%04x.\n", dev->name,ports[i]); |
i | 1285 | drivers/net/depca.c | int i, maxSlots; |
i | 1294 | drivers/net/depca.c | i = 1; |
i | 1298 | drivers/net/depca.c | i = (ioaddr >> 12); |
i | 1299 | drivers/net/depca.c | maxSlots = i + 1; |
i | 1303 | drivers/net/depca.c | for (; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) { |
i | 1440 | drivers/net/depca.c | u_int i,j,k; |
i | 1444 | drivers/net/depca.c | for (i=0;i<16;i++) { /* copy the first 16 bytes of ROM to */ |
i | 1445 | drivers/net/depca.c | tmpstr[i] = readb(paddr+0xc000+i); /* a temporary string */ |
i | 1449 | drivers/net/depca.c | for (i=0;*signatures[i]!='\0' && *name=='\0';i++) { |
i | 1450 | drivers/net/depca.c | for (j=0,k=0;j<16 && k<strlen(signatures[i]);j++) { |
i | 1451 | drivers/net/depca.c | if (signatures[i][k] == tmpstr[j]) { /* track signature */ |
i | 1457 | drivers/net/depca.c | if (k == strlen(signatures[i])) { |
i | 1458 | drivers/net/depca.c | strcpy(name,signatures[i]); |
i | 1462 | drivers/net/depca.c | adapter = i - 1; |
i | 1494 | drivers/net/depca.c | int i, j, status = 0; |
i | 1509 | drivers/net/depca.c | for (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) { |
i | 1537 | drivers/net/depca.c | int i, k, tmp, status = 0; |
i | 1542 | drivers/net/depca.c | for (i=0,k=0,j=0;j<3;j++) { |
i | 1547 | drivers/net/depca.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 1549 | drivers/net/depca.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 1568 | drivers/net/depca.c | int i, entry, end, len, status = 0; |
i | 1587 | drivers/net/depca.c | for (i = entry; i != end; i = (++i) & lp->txRingMask) { |
i | 1589 | drivers/net/depca.c | writel(readl(&lp->tx_ring[i].base) & ~T_FLAGS, &lp->tx_ring[i].base); |
i | 1590 | drivers/net/depca.c | writew(0x0000, &lp->tx_ring[i].misc); /* clears other error flags */ |
i | 1591 | drivers/net/depca.c | writew(-TX_BUFF_SZ, &lp->tx_ring[i].length);/* packet length in buffer */ |
i | 1604 | drivers/net/depca.c | for (i=end; i!=entry; --i) { |
i | 1606 | drivers/net/depca.c | writel(readl(&lp->tx_ring[i].base) | T_OWN, &lp->tx_ring[i].base); |
i | 1607 | drivers/net/depca.c | if (i == 0) i=lp->txRingMask+1; |
i | 1624 | drivers/net/depca.c | u_int i; |
i | 1643 | drivers/net/depca.c | for (i=0;(*signatures[i] != '\0') && (*name == '\0');i++) { |
i | 1644 | drivers/net/depca.c | if (strstr(ManCode, signatures[i]) != NULL) { |
i | 1661 | drivers/net/depca.c | int i, status = 0; |
i | 1671 | drivers/net/depca.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1672 | drivers/net/depca.c | tmp.addr[i] = dev->dev_addr[i]; |
i | 1684 | drivers/net/depca.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1685 | drivers/net/depca.c | dev->dev_addr[i] = tmp.addr[i]; |
i | 1800 | drivers/net/depca.c | i=0; |
i | 1801 | drivers/net/depca.c | tmp.sval[i++] = inw(DEPCA_NICSR); |
i | 1803 | drivers/net/depca.c | tmp.sval[i++] = inw(DEPCA_DATA); |
i | 1804 | drivers/net/depca.c | memcpy(&tmp.sval[i], &lp->init_block, sizeof(struct depca_init)); |
i | 1805 | drivers/net/depca.c | ioc->len = i+sizeof(struct depca_init); |
i | 133 | drivers/net/e2100.c | int i, status; |
i | 153 | drivers/net/e2100.c | for (i = 0; i < 6; i++) |
i | 154 | drivers/net/e2100.c | station_addr[i] = inb(ioaddr + E21_SAPROM + i); |
i | 160 | drivers/net/e2100.c | for (i = 0; i < 6; i++) |
i | 161 | drivers/net/e2100.c | printk(" %02X", station_addr[i]); |
i | 164 | drivers/net/e2100.c | int irqlist[] = {15,11,10,12,5,9,3,4}, i; |
i | 165 | drivers/net/e2100.c | for (i = 0; i < 8; i++) |
i | 166 | drivers/net/e2100.c | if (request_irq (irqlist[i], NULL, 0, "bogus") != -EBUSY) { |
i | 167 | drivers/net/e2100.c | dev->irq = irqlist[i]; |
i | 170 | drivers/net/e2100.c | if (i >= 8) { |
i | 196 | drivers/net/e2100.c | for(i = 0; i < 6; i++) |
i | 197 | drivers/net/e2100.c | if (station_addr[i] != inb(ioaddr + E21_SAPROM + 8 + i)) { |
i | 286 | drivers/net/eepro.c | int i; |
i | 294 | drivers/net/eepro.c | for (i = 0; eepro_portlist[i]; i++) { |
i | 295 | drivers/net/eepro.c | int ioaddr = eepro_portlist[i]; |
i | 313 | drivers/net/eepro.c | int i; |
i | 357 | drivers/net/eepro.c | for (i=0; i < 6; i++) { |
i | 358 | drivers/net/eepro.c | dev->dev_addr[i] = ((unsigned char *) station_addr)[5-i]; |
i | 359 | drivers/net/eepro.c | printk("%c%02x", i ? ':' : ' ', dev->dev_addr[i]); |
i | 369 | drivers/net/eepro.c | i = read_eeprom(ioaddr, 1); |
i | 370 | drivers/net/eepro.c | switch (i & 0x07) { |
i | 398 | drivers/net/eepro.c | i = read_eeprom(ioaddr, 5); |
i | 399 | 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 | 817 | drivers/net/eepro.c | int i, boguscount = 0; |
i | 835 | drivers/net/eepro.c | for (i = 0; i < num_addrs; i++) { |
i | 848 | drivers/net/eepro.c | i = lp->tx_end + XMT_HEADER + 6*(num_addrs + 1); |
i | 853 | drivers/net/eepro.c | outw(i, ioaddr + IO_PORT); |
i | 857 | drivers/net/eepro.c | lp->tx_end = i ; |
i | 858 | drivers/net/eepro.c | } else lp->tx_start = lp->tx_end = i ; |
i | 865 | drivers/net/eepro.c | i = inb(ioaddr); |
i | 867 | drivers/net/eepro.c | if (i & 0x20) { /* command ABORTed */ |
i | 871 | drivers/net/eepro.c | } else if ((i & 0x0f) == 0x03) { /* MC-Done */ |
i | 896 | drivers/net/eepro.c | int i; |
i | 906 | drivers/net/eepro.c | for (i = 8; i >= 0; i--) { |
i | 907 | drivers/net/eepro.c | short outval = (read_cmd & (1 << i)) ? ctrl_val | EEDI |
i | 917 | drivers/net/eepro.c | for (i = 16; i > 0; i--) { |
i | 326 | drivers/net/eexpress.c | int i; |
i | 328 | drivers/net/eexpress.c | for (i = 16; i > 0; i--) |
i | 332 | drivers/net/eexpress.c | for (i = 4; i > 0; i--) { |
i | 348 | drivers/net/eexpress.c | int i; |
i | 369 | drivers/net/eexpress.c | for (i = 0; i < 6; i++) { |
i | 370 | drivers/net/eexpress.c | dev->dev_addr[i] = ((unsigned char*)station_addr)[5-i]; |
i | 371 | drivers/net/eexpress.c | printk(" %02x", dev->dev_addr[i]); |
i | 611 | drivers/net/eexpress.c | int i; |
i | 614 | drivers/net/eexpress.c | for (i = 0; i < 0x20; i += 2) |
i | 719 | drivers/net/eexpress.c | int i; |
i | 728 | drivers/net/eexpress.c | for (i = 8; i >= 0; i--) { |
i | 729 | drivers/net/eexpress.c | short outval = (read_cmd & (1 << i)) ? ctrl_val | EE_DATA_WRITE |
i | 739 | drivers/net/eexpress.c | for (i = 16; i > 0; i--) { |
i | 210 | drivers/net/eql.c | int i; |
i | 238 | drivers/net/eql.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 239 | drivers/net/eql.c | skb_queue_head_init(&dev->buffs[i]); |
i | 966 | drivers/net/eql.c | int i; |
i | 970 | drivers/net/eql.c | for (i = 1, slave = eql_first_slave (queue); |
i | 971 | drivers/net/eql.c | i <= eql_number_slaves (queue); |
i | 972 | drivers/net/eql.c | i++, slave = eql_next_slave (queue, slave)) |
i | 1125 | drivers/net/eql.c | int i; |
i | 1131 | drivers/net/eql.c | for (i = 1, slave = eql_first_slave (eql->queue); |
i | 1132 | drivers/net/eql.c | i <= eql_number_slaves (eql->queue); |
i | 1133 | 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 | 651 | drivers/net/ewrk3.c | int i, iobase = dev->base_addr; |
i | 676 | drivers/net/ewrk3.c | for (i=0;i<6;i++){ |
i | 677 | drivers/net/ewrk3.c | printk("%2.2x:",(short)dev->dev_addr[i]); |
i | 847 | drivers/net/ewrk3.c | int i; |
i | 854 | drivers/net/ewrk3.c | for (i=0; i<skb->len; i++) { |
i | 977 | drivers/net/ewrk3.c | int i, iobase = dev->base_addr; |
i | 1046 | drivers/net/ewrk3.c | for (i=0; i<pkt_len; i++) { |
i | 1065 | drivers/net/ewrk3.c | for (i=1; i<EWRK3_PKT_STAT_SZ-1; i++) { |
i | 1066 | drivers/net/ewrk3.c | if (pkt_len < i*EWRK3_PKT_BIN_SZ) { |
i | 1067 | drivers/net/ewrk3.c | lp->pktStats.bins[i]++; |
i | 1068 | drivers/net/ewrk3.c | i = EWRK3_PKT_STAT_SZ; |
i | 1254 | drivers/net/ewrk3.c | int i, iobase = dev->base_addr; |
i | 1270 | drivers/net/ewrk3.c | for (i=0; i<(HASH_TABLE_LEN >> 3); i++) { |
i | 1275 | drivers/net/ewrk3.c | i++; |
i | 1281 | drivers/net/ewrk3.c | for (i=0; i<(HASH_TABLE_LEN >> 4) - 1; i++) { |
i | 1284 | drivers/net/ewrk3.c | outb(0x80, EWRK3_DATA); i++; /* insert the broadcast bit */ |
i | 1285 | drivers/net/ewrk3.c | for (; i<(HASH_TABLE_LEN >> 3); i++) { |
i | 1294 | drivers/net/ewrk3.c | for (i=0;i<num_addrs;i++) { /* for each address in the list */ |
i | 1336 | drivers/net/ewrk3.c | int i, iobase, status; |
i | 1339 | drivers/net/ewrk3.c | for (status = -ENODEV, iobase = EWRK3_IO_BASE,i = 0; |
i | 1340 | drivers/net/ewrk3.c | i < 24; |
i | 1341 | drivers/net/ewrk3.c | iobase += EWRK3_IOP_INC, i++) { |
i | 1379 | drivers/net/ewrk3.c | int i, iobase = EWRK3_EISA_IO_PORTS; |
i | 1383 | drivers/net/ewrk3.c | for (status = -ENODEV, i=1; i<MAX_EISA_SLOTS; i++, iobase+=EISA_SLOT_INC) { |
i | 1392 | drivers/net/ewrk3.c | mem_chkd |= (0x01 << (i + 24)); |
i | 1461 | drivers/net/ewrk3.c | int i; |
i | 1465 | drivers/net/ewrk3.c | for (i=0;i<5000;i++) inb(EWRK3_CSR); /* wait 1msec */ |
i | 1475 | drivers/net/ewrk3.c | int i; |
i | 1478 | drivers/net/ewrk3.c | for (i=0;i<5000;i++) inb(EWRK3_CSR); /* wait 1msec */ |
i | 1482 | drivers/net/ewrk3.c | for (i=0;i<75000;i++) inb(EWRK3_CSR); /* wait 15msec */ |
i | 1484 | drivers/net/ewrk3.c | for (i=0;i<5000;i++) inb(EWRK3_CSR); /* wait 1msec */ |
i | 1494 | drivers/net/ewrk3.c | unsigned long i,j,k; |
i | 1498 | drivers/net/ewrk3.c | for (i=0;*signatures[i] != '\0' && *name == '\0';i++) { |
i | 1499 | drivers/net/ewrk3.c | for (j=EEPROM_PNAME7,k=0;j<=EEPROM_PNAME0 && k<strlen(signatures[i]);j++) { |
i | 1500 | drivers/net/ewrk3.c | if (signatures[i][k] == eeprom_image[j]) { /* track signature */ |
i | 1506 | drivers/net/ewrk3.c | if (k == strlen(signatures[i])) { |
i | 1527 | drivers/net/ewrk3.c | int i, j, status = 0; |
i | 1534 | drivers/net/ewrk3.c | for (i=0,j=0;devSig[i] != '\0' && !status;i+=2,j++) { |
i | 1535 | drivers/net/ewrk3.c | if ((devSig[i]=asc2hex(devSig[i]))>=0) { |
i | 1536 | drivers/net/ewrk3.c | devSig[i]<<=4; |
i | 1537 | drivers/net/ewrk3.c | if((devSig[i+1]=asc2hex(devSig[i+1]))>=0){ |
i | 1538 | drivers/net/ewrk3.c | devSig[j]=devSig[i]+devSig[i+1]; |
i | 1559 | drivers/net/ewrk3.c | for (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) { |
i | 1615 | drivers/net/ewrk3.c | int i, j, iobase = dev->base_addr, status = 0; |
i | 1625 | drivers/net/ewrk3.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1626 | drivers/net/ewrk3.c | tmp.addr[i] = dev->dev_addr[i]; |
i | 1644 | drivers/net/ewrk3.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1645 | drivers/net/ewrk3.c | dev->dev_addr[i] = tmp.addr[i]; |
i | 1646 | drivers/net/ewrk3.c | outb(tmp.addr[i], EWRK3_PAR0 + i); |
i | 1689 | drivers/net/ewrk3.c | for (i=0; i<(HASH_TABLE_LEN >> 3); i++) { |
i | 1690 | drivers/net/ewrk3.c | tmp.addr[i] = inb(EWRK3_DATA); |
i | 1779 | drivers/net/ewrk3.c | for (i=0; i<(EEPROM_MAX>>1); i++) { |
i | 1780 | drivers/net/ewrk3.c | tmp.val[i] = (short)Read_EEPROM(iobase, i); |
i | 1782 | drivers/net/ewrk3.c | i = EEPROM_MAX; |
i | 1783 | drivers/net/ewrk3.c | tmp.addr[i++] = inb(EWRK3_CMR); /* Config/Management Reg. */ |
i | 1785 | drivers/net/ewrk3.c | tmp.addr[i++] = inb(EWRK3_PAR0 + j); |
i | 1800 | drivers/net/ewrk3.c | for (i=0; i<(EEPROM_MAX>>1); i++) { |
i | 1801 | drivers/net/ewrk3.c | Write_EEPROM(tmp.val[i], iobase, i); |
i | 122 | drivers/net/hp-plus.c | int i; |
i | 130 | drivers/net/hp-plus.c | for (i = 0; hpplus_portlist[i]; i++) { |
i | 131 | drivers/net/hp-plus.c | int ioaddr = hpplus_portlist[i]; |
i | 145 | drivers/net/hp-plus.c | int i; |
i | 163 | drivers/net/hp-plus.c | for(i = 0; i < ETHER_ADDR_LEN; i++) { |
i | 164 | drivers/net/hp-plus.c | unsigned char inval = inb(ioaddr + 8 + i); |
i | 165 | drivers/net/hp-plus.c | dev->dev_addr[i] = inval; |
i | 80 | drivers/net/hp.c | int i; |
i | 88 | drivers/net/hp.c | for (i = 0; hppclan_portlist[i]; i++) { |
i | 89 | drivers/net/hp.c | int ioaddr = hppclan_portlist[i]; |
i | 102 | drivers/net/hp.c | int i, board_id, wordmode; |
i | 132 | drivers/net/hp.c | for(i = 0; i < ETHER_ADDR_LEN; i++) |
i | 133 | drivers/net/hp.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 211 | drivers/net/hp100.c | int i; |
i | 238 | drivers/net/hp100.c | for ( i = uc = eisa_id = 0; i < 4; i++ ) |
i | 241 | drivers/net/hp100.c | eisa_id |= ( hp100_inb( BOARD_ID + i ) ) << 24; |
i | 256 | drivers/net/hp100.c | for ( i = 0; i < sizeof( hp100_eisa_ids ) / sizeof( struct hp100_eisa_id ); i++ ) |
i | 257 | drivers/net/hp100.c | if ( ( hp100_eisa_ids[ i ].id & 0xf0ffffff ) == ( eisa_id & 0xf0ffffff ) ) |
i | 259 | drivers/net/hp100.c | if ( i >= sizeof( hp100_eisa_ids ) / sizeof( struct hp100_eisa_id ) ) |
i | 264 | drivers/net/hp100.c | eid = &hp100_eisa_ids[ i ]; |
i | 272 | drivers/net/hp100.c | for ( i = uc = 0; i < 7; i++ ) |
i | 273 | drivers/net/hp100.c | uc += hp100_inb( LAN_ADDR + i ); |
i | 324 | drivers/net/hp100.c | for ( i = uc = 0; i < 6; i++ ) |
i | 325 | drivers/net/hp100.c | dev -> dev_addr[ i ] = hp100_inb( LAN_ADDR + i ); |
i | 350 | drivers/net/hp100.c | int i; |
i | 393 | drivers/net/hp100.c | for ( i = 0; i < 6; i++ ) |
i | 394 | drivers/net/hp100.c | hp100_outb( dev -> dev_addr[ i ], MAC_ADDR + i ); |
i | 395 | drivers/net/hp100.c | for ( i = 0; i < 8; i++ ) /* setup multicast filter to receive all */ |
i | 396 | drivers/net/hp100.c | hp100_outb( 0xff, HASH_BYTE0 + i ); |
i | 447 | drivers/net/hp100.c | int i; |
i | 466 | drivers/net/hp100.c | if ( ( i = ( hp100_inl( TX_MEM_FREE ) & ~0x7fffffff ) ) < skb -> len + 16 ) |
i | 469 | drivers/net/hp100.c | printk( "hp100_start_xmit: rx free mem = 0x%x\n", i ); |
i | 483 | drivers/net/hp100.c | i = hp100_sense_lan( dev ); |
i | 486 | drivers/net/hp100.c | if ( i == HP100_LAN_ERR ) |
i | 489 | drivers/net/hp100.c | if ( lp -> lan_type != i ) |
i | 493 | drivers/net/hp100.c | lp -> lan_type = i; |
i | 518 | drivers/net/hp100.c | for ( i = 0; i < 6000 && ( hp100_inw( OPTION_MSW ) & HP100_TX_CMD ); i++ ) |
i | 542 | drivers/net/hp100.c | i = skb -> len + 3; |
i | 543 | drivers/net/hp100.c | outsl( ioaddr + HP100_REG_DATA32, skb -> data, i >> 2 ); |
i | 544 | drivers/net/hp100.c | for ( i &= ~3; i < HP100_MIN_PACKET_SIZE; i += 4 ) |
i | 818 | drivers/net/hp100.c | int i; |
i | 824 | drivers/net/hp100.c | for ( i = 0; i < 6000; i++ ) |
i | 833 | drivers/net/hp100.c | int i; |
i | 848 | drivers/net/hp100.c | for ( i = 0; i < 2500; i++ ) |
i | 860 | drivers/net/hp100.c | int i; |
i | 863 | drivers/net/hp100.c | for ( i = 2500; i > 0; i-- ) |
i | 865 | drivers/net/hp100.c | if ( i <= 0 ) /* not signal - not logout */ |
i | 882 | drivers/net/hp100.c | int i; |
i | 908 | drivers/net/hp100.c | for ( i = 2500; i > 0; i-- ) |
i | 910 | drivers/net/hp100.c | if ( i <= 0 ) |
i | 126 | drivers/net/ibmtr.c | short i, j; |
i | 127 | drivers/net/ibmtr.c | for (i=0,j=0;i<24;i++,j=j+stride) printk("%1x",((int) pcid[j])&0x0f); |
i | 144 | drivers/net/ibmtr.c | unsigned char segment=0, intr=0, irq=0, i=0, j=0, |
i | 205 | drivers/net/ibmtr.c | for (i=2,j=1; i<=46; i=i+2,j++) { |
i | 206 | drivers/net/ibmtr.c | if ( (cd_chanid[i] & 0x0f) != tchanid[j]) { |
i | 304 | drivers/net/ibmtr.c | for (i=0; i<0x18; i=i+2) { |
i | 305 | drivers/net/ibmtr.c | temp = *(char *)((ulong)AIP + (ulong)i + ti->mmio) & 0x0f; /* Tech ref states must do this */ |
i | 541 | drivers/net/ibmtr.c | int i; |
i | 547 | drivers/net/ibmtr.c | for(i=0;i< 8;i++,check_reason++) |
i | 794 | drivers/net/ibmtr.c | int i; |
i | 821 | drivers/net/ibmtr.c | for(i=0;i<17;i++) |
i | 822 | drivers/net/ibmtr.c | printk("%02X ",*(ti->init_srb+i)); |
i | 837 | drivers/net/ibmtr.c | for(i=0;i<TR_ALEN;i++) |
i | 838 | drivers/net/ibmtr.c | printk("%02X%s",dev->dev_addr[i]=encoded_addr[i],(i==TR_ALEN-1) ? "" : ":" ); |
i | 849 | drivers/net/ibmtr.c | int i; |
i | 870 | drivers/net/ibmtr.c | for(i=jiffies+5;jiffies<=i;); /* wait 50ms */ |
i | 339 | drivers/net/lance.c | int i, reset_val, lance_version; |
i | 407 | drivers/net/lance.c | for (i = 0; i < 6; i++) |
i | 408 | drivers/net/lance.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 424 | drivers/net/lance.c | for (i = 0; i < 6; i++) |
i | 425 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
i | 509 | drivers/net/lance.c | for (i = 0; i < 4; i++) { |
i | 511 | drivers/net/lance.c | int dma = dmas[i]; |
i | 538 | drivers/net/lance.c | if (i == 4) { /* Failure: bail. */ |
i | 570 | drivers/net/lance.c | int i; |
i | 622 | drivers/net/lance.c | i = 0; |
i | 623 | drivers/net/lance.c | while (i++ < 100) |
i | 634 | drivers/net/lance.c | dev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA)); |
i | 655 | drivers/net/lance.c | int i; |
i | 657 | drivers/net/lance.c | for (i = 0; i < TX_RING_SIZE; i++) { |
i | 658 | drivers/net/lance.c | if (lp->tx_skbuff[i]) { |
i | 659 | drivers/net/lance.c | dev_kfree_skb(lp->tx_skbuff[i],FREE_WRITE); |
i | 660 | drivers/net/lance.c | lp->tx_skbuff[i] = NULL; |
i | 671 | drivers/net/lance.c | int i; |
i | 677 | drivers/net/lance.c | for (i = 0; i < RX_RING_SIZE; i++) { |
i | 678 | drivers/net/lance.c | lp->rx_ring[i].base = (lp->rx_buffs + i*PKT_BUF_SZ) | 0x80000000; |
i | 679 | drivers/net/lance.c | lp->rx_ring[i].buf_length = -PKT_BUF_SZ; |
i | 683 | drivers/net/lance.c | for (i = 0; i < TX_RING_SIZE; i++) { |
i | 684 | drivers/net/lance.c | lp->tx_ring[i].base = 0; |
i | 688 | drivers/net/lance.c | for (i = 0; i < 6; i++) |
i | 689 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
i | 730 | drivers/net/lance.c | int i; |
i | 734 | drivers/net/lance.c | for (i = 0 ; i < RX_RING_SIZE; i++) |
i | 735 | drivers/net/lance.c | printk("%s %08x %04x %04x", i & 0x3 ? "" : "\n ", |
i | 736 | drivers/net/lance.c | lp->rx_ring[i].base, -lp->rx_ring[i].buf_length, |
i | 737 | drivers/net/lance.c | lp->rx_ring[i].msg_length); |
i | 738 | drivers/net/lance.c | for (i = 0 ; i < TX_RING_SIZE; i++) |
i | 739 | drivers/net/lance.c | printk("%s %08x %04x %04x", i & 0x3 ? "" : "\n ", |
i | 740 | drivers/net/lance.c | lp->tx_ring[i].base, -lp->tx_ring[i].length, |
i | 741 | drivers/net/lance.c | lp->tx_ring[i].misc); |
i | 967 | drivers/net/lance.c | int i; |
i | 993 | drivers/net/lance.c | for (i=0; i < RX_RING_SIZE; i++) |
i | 994 | drivers/net/lance.c | if (lp->rx_ring[(entry+i) & RX_RING_MOD_MASK].base < 0) |
i | 997 | drivers/net/lance.c | if (i > RX_RING_SIZE -2) { |
i | 1098 | drivers/net/lance.c | int i; |
i | 1101 | drivers/net/lance.c | for (i = 0; i < 4; i++) { |
i | 1102 | drivers/net/lance.c | outw(8 + i, ioaddr+LANCE_ADDR); |
i | 1103 | drivers/net/lance.c | outw(multicast_table[i], ioaddr+LANCE_DATA); |
i | 125 | drivers/net/loopback.c | int i; |
i | 153 | drivers/net/loopback.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 154 | drivers/net/loopback.c | skb_queue_head_init(&dev->buffs[i]); |
i | 126 | drivers/net/ne.c | int i; |
i | 134 | drivers/net/ne.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 135 | drivers/net/ne.c | int ioaddr = netcard_portlist[i]; |
i | 148 | drivers/net/ne.c | int i; |
i | 212 | drivers/net/ne.c | for (i = 0; i < sizeof(program_seq)/sizeof(program_seq[0]); i++) |
i | 213 | drivers/net/ne.c | outb_p(program_seq[i].value, ioaddr + program_seq[i].offset); |
i | 216 | drivers/net/ne.c | for(i = 0; i < 32 /*sizeof(SA_prom)*/; i+=2) { |
i | 217 | drivers/net/ne.c | SA_prom[i] = inb(ioaddr + NE_DATAPORT); |
i | 218 | drivers/net/ne.c | SA_prom[i+1] = inb(ioaddr + NE_DATAPORT); |
i | 219 | drivers/net/ne.c | if (SA_prom[i] != SA_prom[i+1]) |
i | 229 | drivers/net/ne.c | for (i = 0; i < 16; i++) |
i | 230 | drivers/net/ne.c | SA_prom[i] = SA_prom[i+i]; |
i | 238 | drivers/net/ne.c | for(i = 0; i < ETHER_ADDR_LEN; i++) { |
i | 239 | drivers/net/ne.c | dev->dev_addr[i] = SA_prom[i]; |
i | 240 | drivers/net/ne.c | printk(" %2.2x", SA_prom[i]); |
i | 257 | drivers/net/ne.c | for (i = 0; bad_clone_list[i].name8; i++) { |
i | 258 | drivers/net/ne.c | if (SA_prom[0] == bad_clone_list[i].SAprefix[0] && |
i | 259 | drivers/net/ne.c | SA_prom[1] == bad_clone_list[i].SAprefix[1] && |
i | 260 | drivers/net/ne.c | SA_prom[2] == bad_clone_list[i].SAprefix[2]) { |
i | 262 | drivers/net/ne.c | name = bad_clone_list[i].name16; |
i | 264 | drivers/net/ne.c | name = bad_clone_list[i].name8; |
i | 269 | drivers/net/ne.c | if (bad_clone_list[i].name8 == NULL) { |
i | 314 | drivers/net/ne.c | for(i = 0; i < ETHER_ADDR_LEN; i++) |
i | 315 | drivers/net/ne.c | dev->dev_addr[i] = SA_prom[i]; |
i | 96 | drivers/net/net_init.c | int i; |
i | 105 | drivers/net/net_init.c | for (i = 0; i < MAX_ETH_CARDS; ++i) |
i | 106 | drivers/net/net_init.c | if (ethdev_index[i] == NULL) { |
i | 107 | drivers/net/net_init.c | sprintf(pname, "eth%d", i); |
i | 141 | drivers/net/net_init.c | for (i = 0; i < MAX_ETH_CARDS; ++i) |
i | 142 | drivers/net/net_init.c | if (ethdev_index[i] == NULL) { |
i | 143 | drivers/net/net_init.c | sprintf(dev->name, "eth%d", i); |
i | 144 | drivers/net/net_init.c | ethdev_index[i] = dev; |
i | 175 | drivers/net/net_init.c | int i; |
i | 178 | drivers/net/net_init.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 179 | drivers/net/net_init.c | skb_queue_head_init(&dev->buffs[i]); |
i | 183 | drivers/net/net_init.c | i = simple_strtoul(dev->name + 3, NULL, 0); |
i | 184 | drivers/net/net_init.c | if (ethdev_index[i] == NULL) { |
i | 185 | drivers/net/net_init.c | ethdev_index[i] = dev; |
i | 187 | drivers/net/net_init.c | else if (dev != ethdev_index[i]) { |
i | 203 | drivers/net/net_init.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 204 | drivers/net/net_init.c | dev->broadcast[i]=0xff; |
i | 220 | drivers/net/net_init.c | int i; |
i | 223 | drivers/net/net_init.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 224 | drivers/net/net_init.c | skb_queue_head_init(&dev->buffs[i]); |
i | 233 | drivers/net/net_init.c | for (i = 0; i < TR_ALEN; i++) { |
i | 234 | drivers/net/net_init.c | dev->broadcast[i]=0xff; |
i | 269 | drivers/net/net_init.c | int i=MAX_ETH_CARDS; |
i | 277 | drivers/net/net_init.c | for (i = 0; i < MAX_ETH_CARDS; ++i) |
i | 278 | drivers/net/net_init.c | if (ethdev_index[i] == NULL) { |
i | 279 | drivers/net/net_init.c | sprintf(dev->name, "eth%d", i); |
i | 281 | drivers/net/net_init.c | ethdev_index[i] = dev; |
i | 287 | drivers/net/net_init.c | if (i < MAX_ETH_CARDS) ethdev_index[i] = NULL; |
i | 310 | drivers/net/net_init.c | int i; |
i | 342 | drivers/net/net_init.c | for (i = 0; i < MAX_ETH_CARDS; ++i) { |
i | 343 | drivers/net/net_init.c | if (ethdev_index[i] == dev) { |
i | 344 | 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 | 252 | drivers/net/ni52.c | int i; |
i | 263 | drivers/net/ni52.c | for(i=0;i<2;i++) |
i | 265 | drivers/net/ni52.c | p->iscp = (struct iscp_struct *) iscp_addrs[i]; |
i | 351 | drivers/net/ni52.c | int i,size; |
i | 353 | drivers/net/ni52.c | for(i=0;i<ETH_ALEN;i++) |
i | 354 | drivers/net/ni52.c | dev->dev_addr[i] = inb(dev->base_addr+i); |
i | 384 | drivers/net/ni52.c | for(i=0;;i++) |
i | 386 | drivers/net/ni52.c | if(!memaddrs[i]) { |
i | 390 | drivers/net/ni52.c | dev->mem_start = memaddrs[i]; |
i | 454 | drivers/net/ni52.c | int i,result=0; |
i | 573 | drivers/net/ni52.c | for(i=0;i<2;i++) |
i | 575 | drivers/net/ni52.c | p->nop_cmds[i] = (struct nop_cmd_struct *)ptr; |
i | 576 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_cmd = CMD_NOP; |
i | 577 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_status = 0; |
i | 578 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_link = make16((p->nop_cmds[i])); |
i | 584 | drivers/net/ni52.c | for(i=0;i<NUM_XMIT_BUFFS;i++) |
i | 586 | drivers/net/ni52.c | p->nop_cmds[i] = (struct nop_cmd_struct *)ptr; |
i | 587 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_cmd = CMD_NOP; |
i | 588 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_status = 0; |
i | 589 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_link = make16((p->nop_cmds[i])); |
i | 591 | drivers/net/ni52.c | p->xmit_cmds[i] = (struct transmit_cmd_struct *)ptr; /*transmit cmd/buff 0*/ |
i | 621 | drivers/net/ni52.c | for(i=0;i<num_addrs;i++) |
i | 622 | drivers/net/ni52.c | memcpy((char *) mc_cmd->mc_list[i],((char (*)[6]) addrs)[i],6); |
i | 638 | drivers/net/ni52.c | for(i=0;i<NUM_XMIT_BUFFS;i++) |
i | 640 | drivers/net/ni52.c | p->xmit_cbuffs[i] = (char *)ptr; /* char-buffs */ |
i | 642 | drivers/net/ni52.c | p->xmit_buffs[i] = (struct tbd_struct *)ptr; /* TBD */ |
i | 649 | drivers/net/ni52.c | memset((char *)(p->xmit_cmds[i]) ,0, sizeof(struct transmit_cmd_struct)); |
i | 650 | drivers/net/ni52.c | memset((char *)(p->xmit_buffs[i]),0, sizeof(struct tbd_struct)); |
i | 651 | drivers/net/ni52.c | p->xmit_cmds[i]->cmd_status = STAT_COMPL; |
i | 652 | drivers/net/ni52.c | p->xmit_cmds[i]->cmd_cmd = CMD_XMIT | CMD_INT; |
i | 653 | drivers/net/ni52.c | p->xmit_cmds[i]->tbd_offset = make16((p->xmit_buffs[i])); |
i | 654 | drivers/net/ni52.c | p->xmit_buffs[i]->next = 0xffff; |
i | 655 | drivers/net/ni52.c | p->xmit_buffs[i]->buffer = make24((p->xmit_cbuffs[i])); |
i | 689 | drivers/net/ni52.c | int i; |
i | 695 | drivers/net/ni52.c | for(i = 0; i < p->num_recv_buffs; i++) |
i | 696 | drivers/net/ni52.c | rfd[i].next = make16(rfd + (i+1) % p->num_recv_buffs); |
i | 707 | drivers/net/ni52.c | for(i=0;i<p->num_recv_buffs;i++) |
i | 709 | drivers/net/ni52.c | rbd[i].next = make16((rbd + (i+1) % p->num_recv_buffs)); |
i | 710 | drivers/net/ni52.c | rbd[i].size = RECV_BUFF_SIZE; |
i | 711 | drivers/net/ni52.c | rbd[i].buffer = make24(ptr); |
i | 930 | drivers/net/ni52.c | int len,i; |
i | 996 | drivers/net/ni52.c | for(i=0;i<16;i++) |
i | 1004 | drivers/net/ni52.c | if(!i) |
i | 1011 | drivers/net/ni52.c | if(i==15) |
i | 208 | drivers/net/ni65.c | int i; |
i | 212 | drivers/net/ni65.c | for(i=0;i<6;i++) |
i | 213 | 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 | 1308 | drivers/net/pi2.c | int i; |
i | 1425 | drivers/net/pi2.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 1426 | drivers/net/pi2.c | skb_queue_head_init(&dev->buffs[i]); |
i | 840 | drivers/net/plip.c | int i; |
i | 851 | drivers/net/plip.c | for (i=0; i < ETH_ALEN - sizeof(unsigned long); i++) |
i | 852 | drivers/net/plip.c | eth->h_dest[i] = 0xfc; |
i | 853 | drivers/net/plip.c | memcpy(&(eth->h_dest[i]), &dst, sizeof(unsigned long)); |
i | 914 | drivers/net/plip.c | int i; |
i | 942 | drivers/net/plip.c | for (i=0; i < ETH_ALEN - sizeof(unsigned long); i++) |
i | 943 | drivers/net/plip.c | dev->dev_addr[i] = 0xfc; |
i | 944 | drivers/net/plip.c | memcpy(&(dev->dev_addr[i]), &dev->pa_addr, sizeof(unsigned long)); |
i | 214 | drivers/net/ppp.c | int i; |
i | 254 | drivers/net/ppp.c | if ((i = tty_register_ldisc(N_PPP, &ppp_ldisc)) == 0) |
i | 257 | drivers/net/ppp.c | printk(KERN_ERR "error registering line discipline: %d\n", i); |
i | 289 | drivers/net/ppp.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 290 | drivers/net/ppp.c | skb_queue_head_init(&dev->buffs[i]); /* = NULL if NET02D */ |
i | 797 | drivers/net/ppp.c | i, count; |
i | 803 | drivers/net/ppp.c | i = tail; |
i | 806 | drivers/net/ppp.c | while (i != head) { |
i | 807 | drivers/net/ppp.c | buffer [count] = tty->read_q.buf[i]; |
i | 812 | drivers/net/ppp.c | i = (i + 1) & (TTY_BUF_SIZE - 1); |
i | 868 | drivers/net/ppp.c | int i; |
i | 870 | drivers/net/ppp.c | for (i = 0; i < n; i++, c++) { |
i | 1245 | drivers/net/ppp.c | int len, i; |
i | 1294 | drivers/net/ppp.c | i = len; |
i | 1295 | drivers/net/ppp.c | while (i-- > 0) { |
i | 1344 | drivers/net/ppp.c | int i; |
i | 1390 | drivers/net/ppp.c | i = nr; |
i | 1391 | drivers/net/ppp.c | while (i-- > 0) |
i | 1416 | drivers/net/ppp.c | ppp_ioctl(struct tty_struct *tty, struct file *file, unsigned int i, |
i | 1434 | drivers/net/ppp.c | switch (i) { |
i | 1615 | drivers/net/ppp.c | error = n_tty_ioctl(tty, file, i, l); |
i | 1625 | drivers/net/ppp.c | i, |
i | 1918 | drivers/net/ppp.c | int i; |
i | 1919 | drivers/net/ppp.c | for (i = 0; i < PPP_NRUNIT; i++) |
i | 1920 | drivers/net/ppp.c | if (ppp_ctrl[i].inuse && (ppp_ctrl[i].tty == tty)) return &ppp_ctrl[i]; |
i | 1930 | drivers/net/ppp.c | int i; |
i | 1931 | drivers/net/ppp.c | for (i = 0; i < PPP_NRUNIT; i++) |
i | 1932 | drivers/net/ppp.c | if (!set_bit(0, &ppp_ctrl[i].inuse)) return &ppp_ctrl[i]; |
i | 1988 | drivers/net/ppp.c | int i; |
i | 1990 | drivers/net/ppp.c | for (i = 0; i < ppp->rcount - 2; i++, c++) |
i | 2098 | drivers/net/ppp.c | int i; |
i | 2100 | drivers/net/ppp.c | for (i = 0; i < PPP_NRUNIT; i++) { |
i | 2101 | drivers/net/ppp.c | if ((err = register_netdev(&dev_ppp[i]))) { |
i | 2114 | drivers/net/ppp.c | int i; |
i | 2120 | drivers/net/ppp.c | for (i = 0; i < PPP_NRUNIT; i++) { |
i | 2121 | drivers/net/ppp.c | unregister_netdev(&dev_ppp[i]); |
i | 2123 | drivers/net/ppp.c | if ((i = tty_register_ldisc(N_PPP, NULL))) { |
i | 2124 | 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 | 486 | drivers/net/seeq8005.c | int i; |
i | 554 | drivers/net/seeq8005.c | for(i=0;i<14;i++) { |
i | 639 | drivers/net/seeq8005.c | int i; |
i | 652 | drivers/net/seeq8005.c | for(i=0;i<6;i++) { /* set Station address */ |
i | 653 | drivers/net/seeq8005.c | outb(dev->dev_addr[i], SEEQ_BUFFER); |
i | 672 | 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 | 817 | drivers/net/sk_g16.c | for (i = 0; i < TMDNUM; i++) |
i | 819 | drivers/net/sk_g16.c | p->tmdbufs[i] = &(p->ram)->tmdbuf[i]; |
i | 822 | drivers/net/sk_g16.c | for (i = 0; i < RMDNUM; i++) |
i | 824 | drivers/net/sk_g16.c | p->rmdbufs[i] = &(p->ram)->rmdbuf[i]; |
i | 864 | drivers/net/sk_g16.c | int i = 0; |
i | 877 | drivers/net/sk_g16.c | i = 0; |
i | 890 | drivers/net/sk_g16.c | irqval = request_irq(irqtab[i], &SK_interrupt, 0, "sk_g16"); |
i | 891 | drivers/net/sk_g16.c | i++; |
i | 892 | drivers/net/sk_g16.c | } while (irqval && irqtab[i]); |
i | 900 | drivers/net/sk_g16.c | dev->irq = irqtab[--i]; |
i | 902 | drivers/net/sk_g16.c | outb(i<<2, SK_POS4); /* Set Card on probed IRQ */ |
i | 924 | drivers/net/sk_g16.c | int i = 0; |
i | 936 | drivers/net/sk_g16.c | case 3: i = 0; |
i | 938 | drivers/net/sk_g16.c | case 5: i = 1; |
i | 940 | drivers/net/sk_g16.c | case 2: i = 2; |
i | 942 | drivers/net/sk_g16.c | case 11:i = 3; |
i | 952 | drivers/net/sk_g16.c | outb(i<<2, SK_POS4); /* Set IRQ on card */ |
i | 961 | drivers/net/sk_g16.c | if (!(i = SK_lance_init(dev, 0))) /* LANCE init OK? */ |
i | 1029 | drivers/net/sk_g16.c | int i; |
i | 1044 | drivers/net/sk_g16.c | for (i = 0; i < TMDNUM; i++) /* Init all TMD's */ |
i | 1046 | drivers/net/sk_g16.c | tmdp = p->tmdhead + i; |
i | 1048 | drivers/net/sk_g16.c | tmdp->u.buffer = (unsigned long) p->tmdbufs[i]; /* assign buffer */ |
i | 1059 | drivers/net/sk_g16.c | for (i = 0; i < RMDNUM; i++) /* Init all RMD's */ |
i | 1061 | drivers/net/sk_g16.c | rmdp = p->rmdhead + i; |
i | 1064 | drivers/net/sk_g16.c | rmdp->u.buffer = (unsigned long) p->rmdbufs[i]; /* assign buffer */ |
i | 1083 | drivers/net/sk_g16.c | for (i = 0; i < ETH_ALEN; i++) /* Set physical address */ |
i | 1085 | drivers/net/sk_g16.c | (p->ram)->ib.paddr[i] = dev->dev_addr[i]; |
i | 1088 | drivers/net/sk_g16.c | for (i = 0; i < 8; i++) /* Set multicast, logical address */ |
i | 1090 | drivers/net/sk_g16.c | (p->ram)->ib.laddr[i] = 0; /* We do not use logical addressing */ |
i | 1141 | drivers/net/sk_g16.c | for (i = 0; (i < 100) && !(SK_rread_reg() & CSR0_IDON); i++) |
i | 1144 | drivers/net/sk_g16.c | if (i >= 100) /* Something is wrong ! */ |
i | 1159 | drivers/net/sk_g16.c | PRINTK(("## %s: init done after %d ticks\n", SK_NAME, i)); |
i | 1782 | drivers/net/sk_g16.c | int i,j; |
i | 1791 | drivers/net/sk_g16.c | for (i = 0; (rom_location[i] != 0) && (rom_found == 0); i++) |
i | 1794 | drivers/net/sk_g16.c | PRINTK(("## Trying ROM location %#08x", rom_location[i])); |
i | 1799 | drivers/net/sk_g16.c | test_byte = (unsigned char *) (rom_location[i]+j); |
i | 1813 | drivers/net/sk_g16.c | SK_NAME, rom_location[(i-1)])); |
i | 1815 | drivers/net/sk_g16.c | return (rom_location[--i]); |
i | 1853 | drivers/net/sk_g16.c | int i; |
i | 1856 | drivers/net/sk_g16.c | for (i = 0; i < 10 ; i++) /* Delay min 5ms */ |
i | 2084 | drivers/net/sk_g16.c | int i; |
i | 2097 | drivers/net/sk_g16.c | for(i = 0; i < TMDNUM; i++) |
i | 2099 | drivers/net/sk_g16.c | if (!(i % 3)) /* Every third line do a newline */ |
i | 2103 | drivers/net/sk_g16.c | printk("tmdbufs%d: %#08x ", (i+1), (int) p->tmdbufs[i]); |
i | 2107 | drivers/net/sk_g16.c | for(i = 0; i < RMDNUM; i++) |
i | 2109 | drivers/net/sk_g16.c | if (!(i % 3)) /* Every third line do a newline */ |
i | 2113 | drivers/net/sk_g16.c | printk("rmdbufs%d: %#08x ", (i+1), (int) p->rmdbufs[i]); |
i | 127 | drivers/net/skeleton.c | int i; |
i | 135 | drivers/net/skeleton.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 136 | drivers/net/skeleton.c | int ioaddr = netcard_portlist[i]; |
i | 154 | drivers/net/skeleton.c | int i; |
i | 178 | drivers/net/skeleton.c | for (i = 0; i < 6; i++) |
i | 179 | drivers/net/skeleton.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 233 | drivers/net/skeleton.c | for (i = 7; i > 0; i--) |
i | 235 | drivers/net/skeleton.c | dev->dma = i; |
i | 238 | drivers/net/skeleton.c | if (i <= 0) { |
i | 97 | drivers/net/slhc.c | register short i; |
i | 148 | drivers/net/slhc.c | for(i = comp->tslot_limit; i > 0; --i){ |
i | 149 | drivers/net/slhc.c | ts[i].cs_this = i; |
i | 150 | drivers/net/slhc.c | ts[i].next = &(ts[i - 1]); |
i | 549 | drivers/net/slhc.c | register short i; |
i | 550 | drivers/net/slhc.c | i = ntohs(ip->tot_len) - hdrlen; |
i | 551 | drivers/net/slhc.c | thp->ack_seq = htonl( ntohl(thp->ack_seq) + i); |
i | 552 | drivers/net/slhc.c | thp->seq = htonl( ntohl(thp->seq) + i); |
i | 106 | drivers/net/slip.c | int i; |
i | 108 | drivers/net/slip.c | for (i = 0; i < SL_NRUNIT; i++) { |
i | 109 | drivers/net/slip.c | sl = &sl_ctrl[i]; |
i | 862 | drivers/net/slip.c | int i; |
i | 878 | drivers/net/slip.c | for (i = 0; i < len; ++i) { |
i | 879 | drivers/net/slip.c | v = (v << 8) | s[i]; |
i | 1063 | drivers/net/slip.c | int i; |
i | 1100 | drivers/net/slip.c | if ((i = tty_register_ldisc(N_SLIP, &sl_ldisc)) != 0) { |
i | 1101 | drivers/net/slip.c | printk("SLIP: can't register line discipline (err = %d)\n", i); |
i | 1135 | drivers/net/slip.c | for (i = 0; i < DEV_NUMBUFFS; i++) { |
i | 1136 | drivers/net/slip.c | skb_queue_head_init(&dev->buffs[i]); |
i | 1182 | drivers/net/slip.c | int i; |
i | 1184 | drivers/net/slip.c | for (i = 0; i < SL_NRUNIT; i++) { |
i | 1185 | drivers/net/slip.c | if ((err = register_netdev(&dev_slip[i]))) { |
i | 1198 | drivers/net/slip.c | int i; |
i | 1204 | drivers/net/slip.c | for (i = 0; i < SL_NRUNIT; i++) { |
i | 1205 | drivers/net/slip.c | unregister_netdev(&dev_slip[i]); |
i | 1207 | drivers/net/slip.c | if ((i = tty_register_ldisc(N_SLIP, NULL))) { |
i | 1208 | drivers/net/slip.c | printk("SLIP: can't unregister line discipline (err = %d)\n", i); |
i | 90 | drivers/net/smc-ultra.c | int i; |
i | 98 | drivers/net/smc-ultra.c | for (i = 0; ultra_portlist[i]; i++) { |
i | 99 | drivers/net/smc-ultra.c | int ioaddr = ultra_portlist[i]; |
i | 112 | drivers/net/smc-ultra.c | int i; |
i | 129 | drivers/net/smc-ultra.c | for (i = 0; i < 8; i++) |
i | 130 | drivers/net/smc-ultra.c | checksum += inb(ioaddr + 8 + i); |
i | 141 | drivers/net/smc-ultra.c | for (i = 0; i < 6; i++) |
i | 142 | drivers/net/smc-ultra.c | printk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i)); |
i | 208 | drivers/net/tulip.c | int i; |
i | 229 | drivers/net/tulip.c | for (i = 0; i < 6; i++) { |
i | 234 | drivers/net/tulip.c | printk(" %2.2x", dev->dev_addr[i] = value); |
i | 299 | drivers/net/tulip.c | int *setup_frm = tp->setup_frame, i; |
i | 306 | drivers/net/tulip.c | for (i = 1; i < 16; i++) { |
i | 352 | drivers/net/tulip.c | int i; |
i | 358 | drivers/net/tulip.c | for (i = 0; i < RX_RING_SIZE; i++) { |
i | 359 | drivers/net/tulip.c | tp->rx_ring[i].status = 0x80000000; /* Owned by Tulip chip */ |
i | 360 | drivers/net/tulip.c | tp->rx_ring[i].length = PKT_BUF_SZ; |
i | 361 | drivers/net/tulip.c | tp->rx_ring[i].buffer1 = (char *)(tp->rx_buffs + i*PKT_BUF_SZ); |
i | 362 | drivers/net/tulip.c | tp->rx_ring[i].buffer2 = (char *)&tp->rx_ring[i+1]; |
i | 365 | drivers/net/tulip.c | tp->rx_ring[i-1].length = PKT_BUF_SZ | 0x02000000; |
i | 366 | drivers/net/tulip.c | tp->rx_ring[i-1].buffer2 = (char *)&tp->rx_ring[0]; |
i | 370 | drivers/net/tulip.c | for (i = 0; i < TX_RING_SIZE; i++) { |
i | 371 | drivers/net/tulip.c | tp->tx_ring[i].status = 0x00000000; |
i | 385 | drivers/net/tulip.c | int i; |
i | 392 | drivers/net/tulip.c | for (i = 0; i < RX_RING_SIZE; i++) |
i | 393 | drivers/net/tulip.c | printk(" %8.8x", (unsigned int)tp->rx_ring[i].status); |
i | 395 | drivers/net/tulip.c | for (i = 0; i < TX_RING_SIZE; i++) |
i | 396 | drivers/net/tulip.c | printk(" %8.8x", (unsigned int)tp->tx_ring[i].status); |
i | 578 | drivers/net/tulip.c | int i; |
i | 608 | drivers/net/tulip.c | for (i=0; i < RX_RING_SIZE; i++) |
i | 609 | drivers/net/tulip.c | if (lp->rx_ring[(entry+i) % RX_RING_SIZE].status < 0) |
i | 612 | drivers/net/tulip.c | if (i > RX_RING_SIZE -2) { |
i | 694 | drivers/net/tulip.c | int i; |
i | 700 | drivers/net/tulip.c | for(i = 0; i < num_addrs; i++) { |
i | 711 | drivers/net/tulip.c | } while (++i < 16); |
i | 720 | drivers/net/tulip.c | int i; |
i | 724 | drivers/net/tulip.c | for (i = 0; i < 6; i++) |
i | 725 | drivers/net/tulip.c | printk(" %2.2x", dev->dev_addr[i] = ((unsigned char *)addr)[i]); |
i | 463 | drivers/net/wavelan.c | int i; |
i | 478 | drivers/net/wavelan.c | for (i = 1000; i > 0; i--) |
i | 487 | drivers/net/wavelan.c | if (i <= 0) |
i | 503 | drivers/net/wavelan.c | int i; |
i | 513 | drivers/net/wavelan.c | for (i = 64; i > 0; i--) |
i | 522 | drivers/net/wavelan.c | if (i <= 0 || !(cb.ac_status & AC_SFLD_OK)) |
i | 545 | drivers/net/wavelan.c | int i; |
i | 568 | drivers/net/wavelan.c | for (i = 0; i < I82586_MEMZ; i += sizeof(zeroes)) |
i | 569 | drivers/net/wavelan.c | obram_write(ioaddr, i, &zeroes[0], sizeof(zeroes)); |
i | 598 | drivers/net/wavelan.c | for (i = 1000; i > 0; i--) |
i | 608 | drivers/net/wavelan.c | if (i <= 0) |
i | 616 | drivers/net/wavelan.c | for (i = 15; i > 0; i--) |
i | 626 | drivers/net/wavelan.c | if (i <= 0) |
i | 777 | drivers/net/wavelan.c | int i; |
i | 830 | drivers/net/wavelan.c | for (i = 0; i < nels(iobase); i++) |
i | 832 | drivers/net/wavelan.c | if (check_region(iobase[i], sizeof(ha_t))) |
i | 835 | drivers/net/wavelan.c | if (wavelan_probe1(dev, iobase[i]) == 0) |
i | 855 | drivers/net/wavelan.c | int i; |
i | 943 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 944 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? " " : ":", dev->dev_addr[i]); |
i | 1070 | drivers/net/wavelan.c | int i; |
i | 1081 | drivers/net/wavelan.c | for (i = 0, rx = lp->rx_head; i < NRXBLOCKS; i++, rx = rx_next) |
i | 1083 | drivers/net/wavelan.c | rx_next = (i == NRXBLOCKS - 1) ? lp->rx_head : rx + RXBLOCKZ; |
i | 1086 | drivers/net/wavelan.c | fd.fd_command = (i == NRXBLOCKS - 1) ? FD_COMMAND_EL : 0; |
i | 1108 | drivers/net/wavelan.c | for (i = 1000; i > 0; i--) |
i | 1117 | drivers/net/wavelan.c | if (i <= 0) |
i | 1132 | drivers/net/wavelan.c | int i; |
i | 1145 | drivers/net/wavelan.c | i = 0, txblock = OFFSET_CU; |
i | 1146 | drivers/net/wavelan.c | i < NTXBLOCKS; |
i | 1147 | drivers/net/wavelan.c | i++, txblock += TXBLOCKZ |
i | 1189 | drivers/net/wavelan.c | for (i = 1000; i > 0; i--) |
i | 1198 | drivers/net/wavelan.c | if (i <= 0) |
i | 1455 | drivers/net/wavelan.c | int i; |
i | 1457 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1459 | drivers/net/wavelan.c | if (a0[i] != a1[i]) |
i | 1460 | drivers/net/wavelan.c | return a0[i] - a1[i]; |
i | 1572 | drivers/net/wavelan.c | int i; |
i | 1589 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1590 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", addr[i]); |
i | 1600 | drivers/net/wavelan.c | int i; |
i | 1604 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1605 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", fd.fd_dest[i]); |
i | 1609 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1610 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", fd.fd_src[i]); |
i | 1617 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1618 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", addr[i]); |
i | 1623 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1624 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", addr[i]); |
i | 1646 | drivers/net/wavelan.c | int i; |
i | 1654 | drivers/net/wavelan.c | for (i = 0; i < maxi; i++) |
i | 1658 | drivers/net/wavelan.c | c = skb->data[i]; |
i | 1660 | drivers/net/wavelan.c | printk(" %c", skb->data[i]); |
i | 1662 | drivers/net/wavelan.c | printk("%02x", skb->data[i]); |
i | 2197 | drivers/net/wavelan.c | wavelan_cu_show_one(device *dev, net_local *lp, int i, unsigned short p) |
i | 2204 | drivers/net/wavelan.c | printk("%d: 0x%x:", i, p); |
i | 2426 | drivers/net/wavelan.c | unsigned int i; |
i | 2434 | drivers/net/wavelan.c | for (i = 0, p = lp->tx_first_in_use; i < NTXBLOCKS; i++) |
i | 2436 | drivers/net/wavelan.c | wavelan_cu_show_one(dev, lp, i, p); |
i | 80 | drivers/net/wd.c | int i; |
i | 88 | drivers/net/wd.c | for (i = 0; wd_portlist[i]; i++) { |
i | 89 | drivers/net/wd.c | int ioaddr = wd_portlist[i]; |
i | 102 | drivers/net/wd.c | int i; |
i | 108 | drivers/net/wd.c | for (i = 0; i < 8; i++) |
i | 109 | drivers/net/wd.c | checksum += inb(ioaddr + 8 + i); |
i | 119 | drivers/net/wd.c | for (i = 0; i < 6; i++) |
i | 120 | drivers/net/wd.c | printk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i)); |
i | 146 | drivers/net/wd.c | for (i = 0; i < 6; i++) |
i | 147 | drivers/net/wd.c | if (inb(ioaddr+i) != inb(ioaddr+8+i)) |
i | 149 | 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 | 223 | drivers/pci/pci.c | int i; |
i | 225 | drivers/pci/pci.c | for (i = 0; i < sizeof(dev_info)/sizeof(dev_info[0]); ++i) { |
i | 226 | drivers/pci/pci.c | if (dev_info[i].vendor == vendor && |
i | 227 | drivers/pci/pci.c | dev_info[i].device == dev) |
i | 229 | drivers/pci/pci.c | return &dev_info[i]; |
i | 364 | drivers/pci/pci.c | int i; |
i | 368 | drivers/pci/pci.c | for (i = 0; i < NUM_OPTIMIZATIONS; i++) { |
i | 369 | drivers/pci/pci.c | printk(" %s: ", bridge_optimization[i].type); |
i | 370 | drivers/pci/pci.c | bmap = &bridge_mapping[pos + i]; |
i | 376 | drivers/pci/pci.c | printk("%s.", bridge_optimization[i].on); |
i | 382 | drivers/pci/pci.c | printk("Changed! Now %s.", bridge_optimization[i].off); |
i | 385 | drivers/pci/pci.c | printk("%s.", bridge_optimization[i].off); |
i | 391 | drivers/pci/pci.c | printk("Changed! Now %s.", bridge_optimization[i].on); |
i | 404 | drivers/scsi/53c7,8xx.c | int i, j, ccf; |
i | 534 | drivers/scsi/53c7,8xx.c | case DMODE_BL_2: i = 2; break; |
i | 535 | drivers/scsi/53c7,8xx.c | case DMODE_BL_4: i = 4; break; |
i | 536 | drivers/scsi/53c7,8xx.c | case DMODE_BL_8: i = 8; break; |
i | 537 | drivers/scsi/53c7,8xx.c | case DMODE_BL_16: i = 16; break; |
i | 538 | drivers/scsi/53c7,8xx.c | default: i = 0; |
i | 540 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : burst length %d\n", host->host_no, i); |
i | 583 | drivers/scsi/53c7,8xx.c | for (i = 0; i < 8; ++i) { |
i | 584 | drivers/scsi/53c7,8xx.c | hostdata->cmd_allocated[i] = 0; |
i | 586 | drivers/scsi/53c7,8xx.c | hostdata->busy[i][j] = 0; |
i | 593 | drivers/scsi/53c7,8xx.c | hostdata->sync[i].select_indirect |= (i << 16); |
i | 595 | drivers/scsi/53c7,8xx.c | hostdata->sync[i].script[0] = (DCMD_TYPE_TCI|DCMD_TCI_OP_RETURN) << 24 | |
i | 604 | drivers/scsi/53c7,8xx.c | hostdata->sync[i].select_indirect |= (hostdata->saved_scntl3) << 24; |
i | 864 | drivers/scsi/53c7,8xx.c | int i; |
i | 943 | drivers/scsi/53c7,8xx.c | for (i = 0; i < NPCI_CHIP_IDS; ++i) { |
i | 944 | drivers/scsi/53c7,8xx.c | if (device_id == pci_chip_ids[i].pci_device_id) { |
i | 945 | drivers/scsi/53c7,8xx.c | max_revision = pci_chip_ids[i].max_revision; |
i | 946 | drivers/scsi/53c7,8xx.c | min_revision = pci_chip_ids[i].min_revision; |
i | 947 | drivers/scsi/53c7,8xx.c | expected_chip = pci_chip_ids[i].chip; |
i | 949 | drivers/scsi/53c7,8xx.c | if (chip == pci_chip_ids[i].chip) |
i | 950 | drivers/scsi/53c7,8xx.c | expected_id = pci_chip_ids[i].pci_device_id; |
i | 984 | drivers/scsi/53c7,8xx.c | int i; |
i | 1014 | drivers/scsi/53c7,8xx.c | for (i = 0; i < NPCI_CHIP_IDS; ++i) |
i | 1017 | drivers/scsi/53c7,8xx.c | pci_chip_ids[i].pci_device_id, pci_index, &pci_bus, |
i | 1019 | drivers/scsi/53c7,8xx.c | !ncr_pci_init (tpnt, BOARD_GENERIC, pci_chip_ids[i].chip, |
i | 1047 | drivers/scsi/53c7,8xx.c | int i, ncr_to_memory, memory_to_ncr, ncr_to_ncr; |
i | 1058 | drivers/scsi/53c7,8xx.c | for (i = 0; i < PATCHES; ++i) |
i | 1059 | drivers/scsi/53c7,8xx.c | hostdata->script[LABELPATCHES[i]] += |
i | 1073 | drivers/scsi/53c7,8xx.c | for (i = 0; i < EXTERNAL_PATCHES_LEN; ++i) |
i | 1074 | drivers/scsi/53c7,8xx.c | hostdata->script[EXTERNAL_PATCHES[i].offset] += |
i | 1075 | drivers/scsi/53c7,8xx.c | virt_to_bus(EXTERNAL_PATCHES[i].address); |
i | 1216 | drivers/scsi/53c7,8xx.c | int failed, i; |
i | 1325 | drivers/scsi/53c7,8xx.c | for (i = 0; i < 3; ++i) { |
i | 1334 | drivers/scsi/53c7,8xx.c | dsa[0] = (0x33 << 24) | (i << 16) ; |
i | 1354 | drivers/scsi/53c7,8xx.c | host->host_no, i, data + 8); |
i | 1362 | drivers/scsi/53c7,8xx.c | host->host_no, i); |
i | 1376 | drivers/scsi/53c7,8xx.c | host->host_no, i); |
i | 1401 | drivers/scsi/53c7,8xx.c | int i; |
i | 1441 | drivers/scsi/53c7,8xx.c | int i; |
i | 1445 | drivers/scsi/53c7,8xx.c | for (i = 0; i < 2; ++i) { |
i | 1446 | drivers/scsi/53c7,8xx.c | for (search = (i ? hostdata->issue_dsa_head : |
i | 1447 | drivers/scsi/53c7,8xx.c | hostdata->reconnect_dsa_head), prev = (i ? |
i | 1617 | drivers/scsi/53c7,8xx.c | int desire, divisor, i, limit; |
i | 1632 | drivers/scsi/53c7,8xx.c | for (i = 0; (i < limit) && (divisor < syncs[i + 1].div); ++i); |
i | 1635 | drivers/scsi/53c7,8xx.c | syncs[i].div / 10, syncs[i].div % 10); |
i | 1640 | drivers/scsi/53c7,8xx.c | ~SCNTL3_800_SCF_MASK) | (syncs[i].scf << SCNTL3_800_SCF_SHIFT)) : 0; |
i | 1641 | drivers/scsi/53c7,8xx.c | sxfer = (msg[4] << SXFER_MO_SHIFT) | ((syncs[i].tp) << SXFER_TP_SHIFT); |
i | 2132 | drivers/scsi/53c7,8xx.c | {DT_help, "?", 0} , TOKEN(h,0), TOKEN(i,0), TOKEN(mp,2), |
i | 2155 | drivers/scsi/53c7,8xx.c | int i, j, error, len; |
i | 2175 | drivers/scsi/53c7,8xx.c | for (i = 0; i < NDT; ++i) { |
i | 2176 | drivers/scsi/53c7,8xx.c | len = strlen (debugger_tokens[i].name); |
i | 2177 | drivers/scsi/53c7,8xx.c | if (!strncmp(input_buf, debugger_tokens[i].name, len)) |
i | 2181 | drivers/scsi/53c7,8xx.c | if (i == NDT) |
i | 2184 | drivers/scsi/53c7,8xx.c | for (ptr = input_buf + len, j = 0; j < debugger_tokens[i].nargs && *ptr;) { |
i | 2194 | drivers/scsi/53c7,8xx.c | if (j != debugger_tokens[i].nargs) |
i | 2359 | drivers/scsi/53c7,8xx.c | i; /* Counter */ |
i | 2384 | drivers/scsi/53c7,8xx.c | for (i = host->hostt->cmd_per_lun - 1; i >= 0 --i) { |
i | 2406 | drivers/scsi/53c7,8xx.c | if (i > 0) { |
i | 2594 | drivers/scsi/53c7,8xx.c | for (i = 0; cmd->use_sg ? (i < cmd->use_sg) : !i; cmd_datain += 4, |
i | 2595 | drivers/scsi/53c7,8xx.c | cmd_dataout += 4, ++i) { |
i | 2597 | drivers/scsi/53c7,8xx.c | virt_to_bus(((struct scatterlist *)cmd->buffer)[i].address) : |
i | 2600 | drivers/scsi/53c7,8xx.c | ((struct scatterlist *)cmd->buffer)[i].length : |
i | 3894 | drivers/scsi/53c7,8xx.c | int i, len; |
i | 3903 | drivers/scsi/53c7,8xx.c | for (i = dsa[hostdata->dsa_msgout / sizeof(u32)], |
i | 3904 | drivers/scsi/53c7,8xx.c | ptr = bus_to_virt(dsa[hostdata->dsa_msgout / sizeof(u32) + 1]); i > 0; |
i | 3905 | 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 | 544 | drivers/scsi/aha152x.c | int i; |
i | 550 | drivers/scsi/aha152x.c | for(i=0; i<16; i++) |
i | 551 | drivers/scsi/aha152x.c | SETPORT( STACK, i ); |
i | 554 | drivers/scsi/aha152x.c | for(i=0; i<16 && GETPORT(STACK)==i; i++) |
i | 557 | drivers/scsi/aha152x.c | return(i==16); |
i | 562 | drivers/scsi/aha152x.c | int i, ok; |
i | 598 | drivers/scsi/aha152x.c | for( i=0; i<PORT_COUNT && (port_base != ports[i]); i++) |
i | 601 | drivers/scsi/aha152x.c | if(i==PORT_COUNT) |
i | 619 | drivers/scsi/aha152x.c | i=0; |
i | 620 | drivers/scsi/aha152x.c | while(irqs[i] && (interrupt_level!=irqs[i])) |
i | 621 | drivers/scsi/aha152x.c | i++; |
i | 622 | drivers/scsi/aha152x.c | if(!irqs[i]) |
i | 654 | drivers/scsi/aha152x.c | for( i=0; i < ADDRESS_COUNT && !ok; i++) |
i | 656 | drivers/scsi/aha152x.c | ok=!memcmp((void *) addresses[i]+signatures[j].sig_offset, |
i | 670 | drivers/scsi/aha152x.c | for( i=0; i<PORT_COUNT && !aha152x_porttest(ports[i]); i++) |
i | 673 | drivers/scsi/aha152x.c | if(i==PORT_COUNT) |
i | 679 | drivers/scsi/aha152x.c | port_base=ports[i]; |
i | 1243 | drivers/scsi/aha152x.c | int identify_msg, target, i; |
i | 1270 | drivers/scsi/aha152x.c | i = GETPORT(SELID) & ~(1 << this_host); |
i | 1272 | drivers/scsi/aha152x.c | if(i) |
i | 1273 | drivers/scsi/aha152x.c | for( ; (i & 1)==0; target++, i>>=1) |
i | 1291 | drivers/scsi/aha152x.c | if((i=getphase())!=P_MSGI) |
i | 1293 | drivers/scsi/aha152x.c | printk("target doesn't enter MSGI to identify (phase=%02x)\n", i); |
i | 1738 | drivers/scsi/aha152x.c | int i, code; |
i | 1748 | drivers/scsi/aha152x.c | i=GETPORT(SCSIBUS); |
i | 1752 | drivers/scsi/aha152x.c | printk("length (%d), code ( ", i); |
i | 1805 | drivers/scsi/aha152x.c | while( --i && (make_acklow(), getphase()==P_MSGI)) |
i | 1979 | drivers/scsi/aha152x.c | int i; |
i | 1985 | drivers/scsi/aha152x.c | for( i=0; i<2*data_count; i++) |
i | 285 | drivers/scsi/aha1542.c | int i; |
i | 304 | drivers/scsi/aha1542.c | i = jiffies + 2; |
i | 305 | drivers/scsi/aha1542.c | while (i>jiffies); /* Wait a little bit for things to settle down. */ |
i | 482 | drivers/scsi/aha1542.c | int i; |
i | 486 | drivers/scsi/aha1542.c | for (i = 0; i < 12; i++) |
i | 487 | drivers/scsi/aha1542.c | printk("%02x ", ccb[mbo].cdb[ccb[mbo].cdblen+i]); |
i | 520 | drivers/scsi/aha1542.c | DEB(int i); |
i | 542 | drivers/scsi/aha1542.c | i = xscsi2int(cmd+2); |
i | 544 | drivers/scsi/aha1542.c | i = scsi2int(cmd+2); |
i | 546 | drivers/scsi/aha1542.c | i = -1; |
i | 548 | drivers/scsi/aha1542.c | printk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 550 | drivers/scsi/aha1542.c | printk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 553 | drivers/scsi/aha1542.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
i | 606 | drivers/scsi/aha1542.c | int i; |
i | 612 | drivers/scsi/aha1542.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 613 | drivers/scsi/aha1542.c | if(sgpnt[i].length == 0 || SCpnt->use_sg > 16 || |
i | 614 | drivers/scsi/aha1542.c | (((int)sgpnt[i].address) & 1) || (sgpnt[i].length & 1)){ |
i | 616 | drivers/scsi/aha1542.c | printk("Bad segment list supplied to aha1542.c (%d, %d)\n",SCpnt->use_sg,i); |
i | 617 | drivers/scsi/aha1542.c | for(i=0;i<SCpnt->use_sg;i++){ |
i | 618 | drivers/scsi/aha1542.c | printk("%d: %x %x %d\n",i,(unsigned int) sgpnt[i].address, (unsigned int) sgpnt[i].alt_address, |
i | 619 | drivers/scsi/aha1542.c | sgpnt[i].length); |
i | 622 | drivers/scsi/aha1542.c | ptr = (unsigned char *) &cptr[i]; |
i | 623 | drivers/scsi/aha1542.c | for(i=0;i<18;i++) printk("%02x ", ptr[i]); |
i | 626 | drivers/scsi/aha1542.c | any2scsi(cptr[i].dataptr, sgpnt[i].address); |
i | 627 | drivers/scsi/aha1542.c | if(((unsigned int) sgpnt[i].address) & 0xff000000) goto baddma; |
i | 628 | drivers/scsi/aha1542.c | any2scsi(cptr[i].datalen, sgpnt[i].length); |
i | 635 | drivers/scsi/aha1542.c | for(i=0;i<18;i++) printk("%02x ", ptr[i]); |
i | 650 | drivers/scsi/aha1542.c | { int i; |
i | 652 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(ccb[mbo])-10; i++) |
i | 653 | drivers/scsi/aha1542.c | printk("%02x ", ((unchar *)&ccb[mbo])[i]); |
i | 692 | drivers/scsi/aha1542.c | int i; |
i | 701 | drivers/scsi/aha1542.c | for(i=0; i<AHA1542_MAILBOXES; i++){ |
i | 702 | drivers/scsi/aha1542.c | mb[i].status = mb[AHA1542_MAILBOXES+i].status = 0; |
i | 703 | drivers/scsi/aha1542.c | any2scsi(mb[i].ccbptr, &ccb[i]); |
i | 720 | drivers/scsi/aha1542.c | int i; |
i | 721 | drivers/scsi/aha1542.c | i = inb(STATUS(base_io)); |
i | 722 | drivers/scsi/aha1542.c | if (i & DF) { |
i | 723 | drivers/scsi/aha1542.c | i = inb(DATA(base_io)); |
i | 820 | drivers/scsi/aha1542.c | int i; |
i | 821 | drivers/scsi/aha1542.c | i = inb(STATUS(base_io)); |
i | 822 | drivers/scsi/aha1542.c | if (i & DF) { |
i | 823 | drivers/scsi/aha1542.c | i = inb(DATA(base_io)); |
i | 1030 | drivers/scsi/aha1542.c | int i; |
i | 1032 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87; |
i | 1033 | drivers/scsi/aha1542.c | for (i = 0; i < 2; ++i) |
i | 1034 | drivers/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
i | 1036 | drivers/scsi/aha1542.c | i, xscsi2int(buf+4), xscsi2int(buf)); |
i | 1042 | drivers/scsi/aha1542.c | for (i = 0; i < 4; ++i) |
i | 1049 | drivers/scsi/aha1542.c | xany2scsi(cmd+2, i); |
i | 1070 | drivers/scsi/aha1542.c | int i; |
i | 1076 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1077 | drivers/scsi/aha1542.c | if(HOSTDATA(shost)->SCint[i] && |
i | 1078 | drivers/scsi/aha1542.c | !(HOSTDATA(shost)->SCint[i]->device->soft_reset)) |
i | 1081 | drivers/scsi/aha1542.c | HOSTDATA(shost)->mb[i].status = 1; /* Indicate ready to restart... */ |
i | 1104 | drivers/scsi/aha1542.c | int mbi, mbo, i; |
i | 1133 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1134 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i]) |
i | 1136 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt) { |
i | 1138 | drivers/scsi/aha1542.c | if (HOSTDATA(SCpnt->host)->mb[i].status) { |
i | 1172 | drivers/scsi/aha1542.c | int i; |
i | 1181 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1182 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt) |
i | 1184 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->ccb[i].op = 0x81; /* BUS DEVICE RESET */ |
i | 1198 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1199 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] && |
i | 1200 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[i]->target == SCpnt->target) |
i | 1203 | drivers/scsi/aha1542.c | SCtmp = HOSTDATA(SCpnt->host)->SCint[i]; |
i | 1209 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[i] = NULL; |
i | 1210 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->mb[i].status = 0; |
i | 255 | drivers/scsi/aha1740.c | DEB(int i); |
i | 271 | drivers/scsi/aha1740.c | i = xscsi2int(cmd+2); |
i | 273 | drivers/scsi/aha1740.c | i = scsi2int(cmd+2); |
i | 275 | drivers/scsi/aha1740.c | i = -1; |
i | 276 | drivers/scsi/aha1740.c | printk("aha1740_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 278 | drivers/scsi/aha1740.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
i | 322 | drivers/scsi/aha1740.c | int i; |
i | 331 | drivers/scsi/aha1740.c | for(i=0; i<SCpnt->use_sg; i++) |
i | 333 | drivers/scsi/aha1740.c | cptr[i].dataptr = (long) sgpnt[i].address; |
i | 334 | drivers/scsi/aha1740.c | cptr[i].datalen = sgpnt[i].length; |
i | 341 | drivers/scsi/aha1740.c | for(i=0;i<24;i++) printk("%02x ", ptr[i]); |
i | 361 | drivers/scsi/aha1740.c | int i; |
i | 363 | drivers/scsi/aha1740.c | for (i = 0; i < sizeof(ecb[ecbno])-10; i++) |
i | 364 | drivers/scsi/aha1740.c | printk("%02x ", ((unchar *)&ecb[ecbno])[i]); |
i | 1030 | drivers/scsi/aic7xxx.c | int i; |
i | 1044 | drivers/scsi/aic7xxx.c | for (i = 0; options[i].name; i++) |
i | 1046 | drivers/scsi/aic7xxx.c | if (!strcmp(options[i].name, p)) |
i | 1048 | drivers/scsi/aic7xxx.c | *(options[i].flag) = !0; |
i | 1125 | drivers/scsi/aic7xxx.c | unsigned long i; |
i | 1127 | drivers/scsi/aic7xxx.c | i = jiffies + (seconds * 100); /* compute time to stop */ |
i | 1129 | drivers/scsi/aic7xxx.c | while (jiffies < i) |
i | 1311 | drivers/scsi/aic7xxx.c | int i, segments; |
i | 1320 | drivers/scsi/aic7xxx.c | for (i = length = 0; i < cmd->use_sg && i < segments; i++) |
i | 1322 | drivers/scsi/aic7xxx.c | length += sg[i].length; |
i | 1344 | drivers/scsi/aic7xxx.c | int i; |
i | 1346 | drivers/scsi/aic7xxx.c | for (i = 0; i < num_aic7xxx_syncrates; i++) |
i | 1348 | drivers/scsi/aic7xxx.c | if ((aic7xxx_syncrates[i].period - period) >= 0) |
i | 1350 | drivers/scsi/aic7xxx.c | *scsirate = (aic7xxx_syncrates[i].rate << 4) | (offset & 0x0F); |
i | 1352 | drivers/scsi/aic7xxx.c | target, aic7xxx_syncrates[i].english, offset); |
i | 1434 | drivers/scsi/aic7xxx.c | int i; |
i | 1438 | drivers/scsi/aic7xxx.c | for (i = 0; i < NUMBER(hard_error); i++) |
i | 1440 | drivers/scsi/aic7xxx.c | if (errno & hard_error[i].errno) |
i | 1442 | drivers/scsi/aic7xxx.c | printk(" %s\n", hard_error[i].errmesg); |
i | 2238 | drivers/scsi/aic7xxx.c | int i; |
i | 2256 | drivers/scsi/aic7xxx.c | for (i = 0; i < sizeof(buf); i++) |
i | 2258 | drivers/scsi/aic7xxx.c | outb(0x80 + i, base); |
i | 2259 | drivers/scsi/aic7xxx.c | buf[i] = inb(base + i); |
i | 2262 | drivers/scsi/aic7xxx.c | for (i = 0; i < NUMBER(AIC7xxx); i++) |
i | 2267 | drivers/scsi/aic7xxx.c | if (!memcmp(buf, AIC7xxx[i].signature, AIC7xxx[i].n)) |
i | 2271 | drivers/scsi/aic7xxx.c | return(AIC7xxx[i].type); |
i | 2333 | drivers/scsi/aic7xxx.c | int i = 0, k = 0; |
i | 2385 | drivers/scsi/aic7xxx.c | for (i = 0; i < seeprom_read.len; i = i + 1) |
i | 2387 | drivers/scsi/aic7xxx.c | temp = SEEMS | SEECS | (seeprom_read.bits[i] << 1); |
i | 2395 | drivers/scsi/aic7xxx.c | for (i = 5; i >= 0; i = i - 1) |
i | 2398 | drivers/scsi/aic7xxx.c | temp = (temp >> i) & 1; /* Mask out all but lower bit. */ |
i | 2413 | drivers/scsi/aic7xxx.c | for (i = 0; i <= 16; i = i + 1) |
i | 2549 | drivers/scsi/aic7xxx.c | int i; |
i | 2860 | drivers/scsi/aic7xxx.c | for (i = 0; i < AIC7XXX_MAXSCB; i = i + 1) |
i | 2862 | drivers/scsi/aic7xxx.c | p->scb_array[i].state = SCB_FREE; |
i | 2863 | drivers/scsi/aic7xxx.c | p->scb_array[i].next = NULL; |
i | 2864 | drivers/scsi/aic7xxx.c | p->scb_array[i].cmd = NULL; |
i | 2969 | drivers/scsi/aic7xxx.c | for (i = 0; i < max_targets; i = i + 1) |
i | 2973 | drivers/scsi/aic7xxx.c | target_settings = (sc.device_flags[i] & CFXFER) << 4; |
i | 2974 | drivers/scsi/aic7xxx.c | if (sc.device_flags[i] & CFSYNCH) |
i | 2976 | drivers/scsi/aic7xxx.c | p->needsdtr_copy = p->needsdtr_copy | (0x01 << i); |
i | 2978 | drivers/scsi/aic7xxx.c | if ((sc.device_flags[i] & CFWIDEB) && (p->bus_type == AIC_WIDE)) |
i | 2980 | drivers/scsi/aic7xxx.c | p->needwdtr_copy = p->needwdtr_copy | (0x01 << i); |
i | 2985 | drivers/scsi/aic7xxx.c | target_settings = inb(HA_TARG_SCRATCH(base) + i); |
i | 2988 | drivers/scsi/aic7xxx.c | p->needsdtr_copy = p->needsdtr_copy | (0x01 << i); |
i | 3001 | drivers/scsi/aic7xxx.c | p->needwdtr_copy = p->needwdtr_copy | (0x01 << i); |
i | 3005 | drivers/scsi/aic7xxx.c | outb(target_settings, (HA_TARG_SCRATCH(base) + i)); |
i | 3017 | drivers/scsi/aic7xxx.c | for (i = 0; i < config.maxscb; i = i + 1) |
i | 3019 | drivers/scsi/aic7xxx.c | outb(i, SCBPTR(base)); |
i | 3083 | drivers/scsi/aic7xxx.c | int i; |
i | 3092 | drivers/scsi/aic7xxx.c | for (i = 0; i <= MAXIRQ; i++) |
i | 3094 | drivers/scsi/aic7xxx.c | aic7xxx_boards[i] = NULL; |
i | 3570 | drivers/scsi/aic7xxx.c | int i, active_scb, found, queued; |
i | 3593 | drivers/scsi/aic7xxx.c | for (i = found = 0; i < (queued - found); i++) |
i | 3595 | drivers/scsi/aic7xxx.c | scbsave[i] = inb(QINFIFO(p->base)); |
i | 3597 | drivers/scsi/aic7xxx.c | if (scbsave[i] == scb->position) |
i | 3600 | drivers/scsi/aic7xxx.c | i = i - 1; |
i | 3604 | drivers/scsi/aic7xxx.c | for (queued = 0; queued < i; queued++) |
i | 150 | drivers/scsi/aic7xxx_asm.c | int i; |
i | 168 | drivers/scsi/aic7xxx_asm.c | for (i = 0; i < p->npatch; i++) { |
i | 169 | drivers/scsi/aic7xxx_asm.c | M[p->patch[i]][0] &= ~1; |
i | 170 | drivers/scsi/aic7xxx_asm.c | M[p->patch[i]][0] |= ((p->value >> 8) & 1); |
i | 171 | drivers/scsi/aic7xxx_asm.c | M[p->patch[i]][1] = p->value & 0xff; |
i | 174 | drivers/scsi/aic7xxx_asm.c | fprintf(stderr, " 0x%x", p->patch[i]); |
i | 190 | drivers/scsi/aic7xxx_asm.c | int i; |
i | 192 | drivers/scsi/aic7xxx_asm.c | for (i = 0; i < LC; i++) |
i | 194 | drivers/scsi/aic7xxx_asm.c | M[i][3], |
i | 195 | drivers/scsi/aic7xxx_asm.c | M[i][2], |
i | 196 | drivers/scsi/aic7xxx_asm.c | M[i][1], |
i | 197 | drivers/scsi/aic7xxx_asm.c | M[i][0]); |
i | 204 | drivers/scsi/aic7xxx_asm.c | int i; |
i | 209 | drivers/scsi/aic7xxx_asm.c | i = 0; |
i | 227 | drivers/scsi/aic7xxx_asm.c | if (i < MAXTOKEN-1) |
i | 228 | drivers/scsi/aic7xxx_asm.c | a[i++] = p; |
i | 236 | drivers/scsi/aic7xxx_asm.c | else if (i < MAXTOKEN-1) { |
i | 237 | drivers/scsi/aic7xxx_asm.c | a[i++] = quote; |
i | 245 | drivers/scsi/aic7xxx_asm.c | if (i) { |
i | 246 | drivers/scsi/aic7xxx_asm.c | *n = i; |
i | 327 | drivers/scsi/aic7xxx_asm.c | int i; |
i | 347 | drivers/scsi/aic7xxx_asm.c | for (i = 0; i < sizeof(jmptab)/sizeof(jmptab[0]); i++) |
i | 348 | drivers/scsi/aic7xxx_asm.c | if (jmptab[i].what == want && |
i | 349 | drivers/scsi/aic7xxx_asm.c | !strcmp(jmptab[i].name, a[spec])) |
i | 351 | drivers/scsi/aic7xxx_asm.c | return(jmptab[i].value); |
i | 458 | drivers/scsi/aic7xxx_asm.c | int i; |
i | 471 | drivers/scsi/aic7xxx_asm.c | for (i = 0; instr[i].name; i++) { |
i | 477 | drivers/scsi/aic7xxx_asm.c | if (!strcmp(instr[i].name, *a) && instr[i].n == n) |
i | 480 | drivers/scsi/aic7xxx_asm.c | if (!instr[i].name) |
i | 483 | drivers/scsi/aic7xxx_asm.c | I_op = eval_operand(a, instr[i].op); |
i | 484 | drivers/scsi/aic7xxx_asm.c | I_src = eval_sdi(a, instr[i].src); |
i | 485 | drivers/scsi/aic7xxx_asm.c | I_imm = eval_sdi(a, instr[i].imm); |
i | 486 | drivers/scsi/aic7xxx_asm.c | I_dest = eval_sdi(a, instr[i].dest); |
i | 487 | drivers/scsi/aic7xxx_asm.c | I_addr = eval_addr(a, instr[i].addr); |
i | 492 | drivers/scsi/aic7xxx_asm.c | switch (instr[i].fmt) { |
i | 240 | drivers/scsi/buslogic.c | int s = inb(STATUS(base)), i = inb(INTERRUPT(base)); |
i | 242 | drivers/scsi/buslogic.c | buslogic_printk("status=%02X intrflags=%02X\n", s, i); |
i | 448 | drivers/scsi/buslogic.c | int base, interrupt_flags, found, i; |
i | 542 | drivers/scsi/buslogic.c | for (i = 0; i < found; i++) |
i | 544 | drivers/scsi/buslogic.c | int mbo = saved_mbo[i]; |
i | 607 | drivers/scsi/buslogic.c | int i; |
i | 611 | drivers/scsi/buslogic.c | i = *(int *)(cmd + 2); |
i | 613 | drivers/scsi/buslogic.c | i = -1; |
i | 615 | drivers/scsi/buslogic.c | target, *cmd, i, bufflen); |
i | 618 | drivers/scsi/buslogic.c | for (i = 0; i < scpnt->cmd_len; i++) |
i | 619 | drivers/scsi/buslogic.c | printk(" %02X", cmd[i]); |
i | 686 | drivers/scsi/buslogic.c | size_t i; |
i | 703 | drivers/scsi/buslogic.c | for (i = 0; i < scpnt->use_sg; i++) { |
i | 704 | drivers/scsi/buslogic.c | CHECK_DMA_ADDR(shpnt->unchecked_isa_dma, sgpnt[i].address, |
i | 706 | drivers/scsi/buslogic.c | cptr[i].dataptr = sgpnt[i].address; |
i | 707 | drivers/scsi/buslogic.c | cptr[i].datalen = sgpnt[i].length; |
i | 717 | drivers/scsi/buslogic.c | for (i = 0; i < 18; i++) |
i | 718 | drivers/scsi/buslogic.c | printk(" %02X", ptr[i]); |
i | 738 | drivers/scsi/buslogic.c | size_t i; |
i | 741 | drivers/scsi/buslogic.c | for (i = 0; i < sizeof(struct ccb) - 10; i++) |
i | 742 | drivers/scsi/buslogic.c | printk(" %02X", ((unsigned char *)ccb)[i]); |
i | 799 | drivers/scsi/buslogic.c | size_t i; |
i | 808 | drivers/scsi/buslogic.c | for (i = 0; i < BUSLOGIC_MAILBOXES; i++) { |
i | 809 | drivers/scsi/buslogic.c | mb[i].status = mb[BUSLOGIC_MAILBOXES + i].status = MBX_NOT_IN_USE; |
i | 810 | drivers/scsi/buslogic.c | mb[i].ccbptr = &ccb[i]; |
i | 837 | drivers/scsi/buslogic.c | int i; |
i | 843 | drivers/scsi/buslogic.c | i = inb(STATUS(base)); |
i | 844 | drivers/scsi/buslogic.c | if (i & DIRRDY) |
i | 845 | drivers/scsi/buslogic.c | i = inb(DATA_IN(base)); |
i | 947 | drivers/scsi/buslogic.c | unsigned int i; |
i | 975 | drivers/scsi/buslogic.c | i = jiffies + 2; |
i | 976 | drivers/scsi/buslogic.c | while (i > jiffies); |
i | 1280 | drivers/scsi/buslogic.c | size_t i; |
i | 1285 | drivers/scsi/buslogic.c | for (i = 0; i < sizeof buf; i++) |
i | 1286 | drivers/scsi/buslogic.c | buf[i] = 0x87; |
i | 1287 | drivers/scsi/buslogic.c | for (i = 0; i < 2; i++) |
i | 1288 | drivers/scsi/buslogic.c | if (!buslogic_command(i, cmd, buf, sizeof buf)) { |
i | 1290 | drivers/scsi/buslogic.c | i, *(int *)(buf + 4), *(int *)buf); |
i | 1296 | drivers/scsi/buslogic.c | for (i = 0; i < 4; i++) { |
i | 1301 | drivers/scsi/buslogic.c | xany2scsi(cmd + 2, i); |
i | 1323 | drivers/scsi/buslogic.c | unsigned int i; |
i | 1329 | drivers/scsi/buslogic.c | for (i = 0; i < BUSLOGIC_MAILBOXES; i++) |
i | 1330 | drivers/scsi/buslogic.c | if (HOSTDATA(shpnt)->sc[i] |
i | 1331 | drivers/scsi/buslogic.c | && !HOSTDATA(shpnt)->sc[i]->device->soft_reset) { |
i | 1333 | drivers/scsi/buslogic.c | HOSTDATA(shpnt)->mb[i].status |
i | 1359 | drivers/scsi/buslogic.c | unsigned int i; |
i | 1395 | drivers/scsi/buslogic.c | for (i = 0; i < BUSLOGIC_MAILBOXES; i++) |
i | 1396 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i]) { |
i | 1397 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i] == scpnt) { |
i | 1400 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->mb[i].status != MBX_NOT_IN_USE) { |
i | 1439 | drivers/scsi/buslogic.c | unsigned int i; |
i | 1450 | drivers/scsi/buslogic.c | for (i = 0; i < BUSLOGIC_MAILBOXES; i++) |
i | 1451 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i] == scpnt) { |
i | 1452 | drivers/scsi/buslogic.c | HOSTDATA(scpnt->host)->ccbs[i].op = CCB_OP_BUS_RESET; |
i | 1469 | drivers/scsi/buslogic.c | for (i = 0; i < BUSLOGIC_MAILBOXES; i++) |
i | 1470 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i] |
i | 1471 | drivers/scsi/buslogic.c | && HOSTDATA(scpnt->host)->sc[i]->target == scpnt->target) { |
i | 1472 | drivers/scsi/buslogic.c | Scsi_Cmnd *sctmp = HOSTDATA(scpnt->host)->sc[i]; |
i | 1481 | drivers/scsi/buslogic.c | HOSTDATA(scpnt->host)->sc[i] = NULL; |
i | 1482 | drivers/scsi/buslogic.c | HOSTDATA(scpnt->host)->mb[i].status = MBX_NOT_IN_USE; |
i | 1541 | drivers/scsi/buslogic.c | size_t i; |
i | 1552 | drivers/scsi/buslogic.c | for (i = 0; i < ARRAY_SIZE(valid_bases); i++) |
i | 1553 | 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 | 426 | drivers/scsi/constants.c | for(i=0; additional[i].text; i++) |
i | 427 | drivers/scsi/constants.c | if(additional[i].code1 == sense_buffer[12] && |
i | 428 | drivers/scsi/constants.c | additional[i].code2 == sense_buffer[13]) |
i | 429 | drivers/scsi/constants.c | printk("Additional sense indicates %s\n", additional[i].text); |
i | 431 | drivers/scsi/constants.c | for(i=0; additional2[i].text; i++) |
i | 432 | drivers/scsi/constants.c | if(additional2[i].code1 == sense_buffer[12] && |
i | 433 | drivers/scsi/constants.c | additional2[i].code2_min >= sense_buffer[13] && |
i | 434 | drivers/scsi/constants.c | additional2[i].code2_max <= sense_buffer[13]) { |
i | 436 | drivers/scsi/constants.c | printk(additional2[i].text, sense_buffer[13]); |
i | 458 | drivers/scsi/constants.c | for (i = 0; i < s; ++i) |
i | 459 | drivers/scsi/constants.c | printk("0x%02x ", sense_buffer[i]); |
i | 493 | drivers/scsi/constants.c | int len = 0, i; |
i | 514 | drivers/scsi/constants.c | for (i = 2; i < len; ++i) |
i | 515 | drivers/scsi/constants.c | printk("%02x ", msg[i]); |
i | 518 | drivers/scsi/constants.c | for (i = 0; i < len; ++i) |
i | 519 | drivers/scsi/constants.c | printk("%02x ", msg[i]); |
i | 598 | drivers/scsi/eata.c | unsigned int i, j, k, flags; |
i | 617 | drivers/scsi/eata.c | i = HD(j)->last_cp_used + 1; |
i | 619 | drivers/scsi/eata.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
i | 621 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) i = 0; |
i | 623 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) { |
i | 624 | drivers/scsi/eata.c | HD(j)->last_cp_used = i; |
i | 646 | drivers/scsi/eata.c | cpp = &HD(j)->cp[i]; |
i | 651 | drivers/scsi/eata.c | spp = &HD(j)->sp[i]; |
i | 659 | drivers/scsi/eata.c | cpp->index = i; |
i | 663 | drivers/scsi/eata.c | BN(j), i, SCpnt->target, SCpnt->pid); |
i | 703 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = IN_USE; |
i | 709 | drivers/scsi/eata.c | unsigned int i, j, flags; |
i | 721 | drivers/scsi/eata.c | i = *(unsigned int *)SCarg->host_scribble; |
i | 723 | drivers/scsi/eata.c | BN(j), i, SCarg->target, SCarg->pid); |
i | 725 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) |
i | 734 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) { |
i | 735 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is free.\n", BN(j), i); |
i | 740 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IN_USE) { |
i | 741 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is in use.\n", BN(j), i); |
i | 743 | drivers/scsi/eata.c | if (SCarg != HD(j)->cp[i].SCpnt) |
i | 745 | drivers/scsi/eata.c | BN(j), i, SCarg, HD(j)->cp[i].SCpnt); |
i | 751 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IN_RESET) { |
i | 752 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is in reset.\n", BN(j), i); |
i | 757 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 758 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is locked.\n", BN(j), i); |
i | 763 | drivers/scsi/eata.c | panic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i); |
i | 767 | drivers/scsi/eata.c | unsigned int i, j, flags, time, k, limit = 0; |
i | 796 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 798 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) continue; |
i | 800 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 801 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
i | 802 | drivers/scsi/eata.c | printk("%s: reset, locked mbox %d forced free.\n", BN(j), i); |
i | 806 | drivers/scsi/eata.c | SCpnt = HD(j)->cp[i].SCpnt; |
i | 807 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = IN_RESET; |
i | 809 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid); |
i | 812 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, SCpnt == NULL.\n", BN(j), i); |
i | 815 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, garbled SCpnt.\n", BN(j), i); |
i | 817 | drivers/scsi/eata.c | if (*(unsigned int *)SCpnt->host_scribble != i) |
i | 818 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, index mismatch.\n", BN(j), i); |
i | 821 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, SCpnt->scsi_done == NULL.\n", BN(j), i); |
i | 845 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 848 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] != IN_RESET) continue; |
i | 850 | drivers/scsi/eata.c | SCpnt = HD(j)->cp[i].SCpnt; |
i | 855 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = LOCKED; |
i | 858 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid); |
i | 880 | drivers/scsi/eata.c | unsigned int i, j, k, flags, status, tstatus, loops, total_loops = 0; |
i | 915 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 916 | drivers/scsi/eata.c | spp = &HD(j)->sp[i]; |
i | 923 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IGNORE) { |
i | 924 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
i | 927 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == LOCKED) { |
i | 928 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
i | 930 | drivers/scsi/eata.c | BN(j), i, HD(j)->iocount); |
i | 933 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == FREE) { |
i | 935 | drivers/scsi/eata.c | BN(j), i, HD(j)->iocount); |
i | 938 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == IN_RESET) |
i | 939 | drivers/scsi/eata.c | printk("%s: ihdlr, mbox %d is in reset.\n", BN(j), i); |
i | 940 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] != IN_USE) |
i | 941 | drivers/scsi/eata.c | panic("%s: ihdlr, mbox %d, invalid cp_stat.\n", BN(j), i); |
i | 943 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
i | 944 | drivers/scsi/eata.c | cpp = &HD(j)->cp[i]; |
i | 948 | drivers/scsi/eata.c | panic("%s: ihdlr, mbox %d, SCpnt == NULL.\n", BN(j), i); |
i | 952 | drivers/scsi/eata.c | BN(j), i, SCpnt, cpp->SCpnt); |
i | 956 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid, SCpnt); |
i | 958 | drivers/scsi/eata.c | if (*(unsigned int *)SCpnt->host_scribble != i) |
i | 960 | drivers/scsi/eata.c | " irq %d.\n", BN(j), i, SCpnt->pid, |
i | 1050 | drivers/scsi/eata.c | BN(j), i, spp->adapter_status, spp->target_status, |
i | 123 | drivers/scsi/eata_dma.c | uint i; |
i | 129 | drivers/scsi/eata_dma.c | for (i = 0; i < sh->can_queue; i++){ /* Free all SG arrays */ |
i | 130 | drivers/scsi/eata_dma.c | if(SD(sh)->ccb[i].sg_list != NULL) |
i | 131 | drivers/scsi/eata_dma.c | scsi_init_free((void *) SD(sh)->ccb[i].sg_list, |
i | 152 | drivers/scsi/eata_dma.c | uint i, result = 0; |
i | 263 | drivers/scsi/eata_dma.c | for (i = 0; i < MAXTARGET; i++) |
i | 264 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[cp->cp_channel][i] = RESET; |
i | 346 | drivers/scsi/eata_dma.c | unsigned int i, x, y; |
i | 468 | drivers/scsi/eata_dma.c | for(i = 0; i < cmd->use_sg; i++, sl++){ |
i | 469 | drivers/scsi/eata_dma.c | cp->sg_list[i].data = htonl((u32) sl->address); |
i | 470 | drivers/scsi/eata_dma.c | cp->sg_list[i].len = htonl((u32) sl->length); |
i | 678 | drivers/scsi/eata_dma.c | ulong i; |
i | 716 | drivers/scsi/eata_dma.c | i = jiffies + (3 * HZ) ; |
i | 717 | drivers/scsi/eata_dma.c | while (fake_int_result == FALSE && jiffies <= i) |
i | 728 | drivers/scsi/eata_dma.c | if ((fake_int_result & HA_SERROR) || jiffies > i){ |
i | 732 | drivers/scsi/eata_dma.c | i = jiffies; |
i | 733 | drivers/scsi/eata_dma.c | while (jiffies < (i + (3 * HZ)) && limit++ < 10000000) |
i | 1084 | drivers/scsi/eata_dma.c | int i; |
i | 1090 | drivers/scsi/eata_dma.c | for (i = 0; i < MAXEISA; i++) { |
i | 1091 | drivers/scsi/eata_dma.c | if (EISAbases[i] == TRUE) { /* Still a possibility ? */ |
i | 1093 | drivers/scsi/eata_dma.c | base = 0x1c88 + (i * 0x1000); |
i | 1117 | drivers/scsi/eata_dma.c | EISAbases[i] = 0; |
i | 1128 | drivers/scsi/eata_dma.c | int i; |
i | 1130 | drivers/scsi/eata_dma.c | for (i = 0; i < MAXISA; i++) { |
i | 1131 | drivers/scsi/eata_dma.c | if (ISAbases[i]) { |
i | 1132 | drivers/scsi/eata_dma.c | if (get_conf_PIO(ISAbases[i],buf) == TRUE){ |
i | 1133 | drivers/scsi/eata_dma.c | register_HBA(ISAbases[i], buf, tpnt, IS_ISA); |
i | 1135 | drivers/scsi/eata_dma.c | if (check_blink_state(ISAbases[i])) |
i | 1139 | drivers/scsi/eata_dma.c | ISAbases[i] = 0; |
i | 1157 | drivers/scsi/eata_dma.c | u32 error, i, x; |
i | 1160 | drivers/scsi/eata_dma.c | for (i = 0; i <= MAXPCI; ++i, ++pci_index) { |
i | 1249 | drivers/scsi/eata_dma.c | int i; |
i | 1263 | drivers/scsi/eata_dma.c | for (i = 0; i <= MAXIRQ; i++) |
i | 1264 | drivers/scsi/eata_dma.c | if (reg_IRQ[i]){ |
i | 1265 | drivers/scsi/eata_dma.c | free_irq(i); |
i | 1266 | drivers/scsi/eata_dma.c | request_irq(i, (void *)(eata_int_handler), SA_INTERRUPT, "eata_dma"); |
i | 1279 | drivers/scsi/eata_dma.c | for (i = 1; i <= registered_HBAs; i++) { |
i | 102 | drivers/scsi/eata_dma_proc.c | int i, x; |
i | 108 | drivers/scsi/eata_dma_proc.c | for (i = 1; i <= registered_HBAs; i++) { |
i | 80 | drivers/scsi/eata_generic.h | #define DELAY(x) { __u32 i; i = jiffies + (x * HZ); while (jiffies < i) barrier(); } |
i | 81 | drivers/scsi/eata_generic.h | #define DEL2(x) { __u32 i; for (i = 0; i < 0xffff * x; i++); } |
i | 823 | drivers/scsi/eata_pio.c | int i; |
i | 825 | drivers/scsi/eata_pio.c | for (i = 0; i < MAXISA; i++) { |
i | 826 | drivers/scsi/eata_pio.c | if (ISAbases[i]) { |
i | 827 | drivers/scsi/eata_pio.c | if (get_pio_conf_PIO(ISAbases[i], buf) == TRUE){ |
i | 828 | drivers/scsi/eata_pio.c | register_pio_HBA(ISAbases[i], buf, tpnt); |
i | 830 | drivers/scsi/eata_pio.c | ISAbases[i] = 0; |
i | 839 | drivers/scsi/eata_pio.c | int i; |
i | 845 | drivers/scsi/eata_pio.c | for (i = 0; i < MAXEISA; i++) { |
i | 846 | drivers/scsi/eata_pio.c | if (EISAbases[i] == TRUE) { /* Still a possibility ? */ |
i | 848 | drivers/scsi/eata_pio.c | base = 0x1c88 + (i * 0x1000); |
i | 868 | drivers/scsi/eata_pio.c | EISAbases[i] = 0; |
i | 889 | drivers/scsi/eata_pio.c | u32 error, i, x; |
i | 892 | drivers/scsi/eata_pio.c | for (i = 0; i <= MAXPCI; ++i, ++pci_index) { |
i | 979 | 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 | 1006 | drivers/scsi/eata_pio.c | for (i = 1; i <= registered_HBAs; i++) { |
i | 43 | drivers/scsi/eata_pio_proc.c | int i, x; |
i | 49 | drivers/scsi/eata_pio_proc.c | for (i = 1; i <= registered_HBAs; i++) { |
i | 517 | drivers/scsi/fdomain.c | int i; |
i | 520 | drivers/scsi/fdomain.c | for (i = 0; i < 255; i++) { |
i | 521 | drivers/scsi/fdomain.c | outb( i, port_base + Write_Loopback ); |
i | 523 | drivers/scsi/fdomain.c | if (i != result) |
i | 565 | drivers/scsi/fdomain.c | int i; |
i | 598 | drivers/scsi/fdomain.c | for (flag = 0, i = 0; !flag && i < PORT_COUNT; i++) { |
i | 599 | drivers/scsi/fdomain.c | if (base == ports[i]) |
i | 627 | drivers/scsi/fdomain.c | for (i = 0; i < PORT_COUNT; i++) { |
i | 628 | drivers/scsi/fdomain.c | base = ports[i]; |
i | 651 | drivers/scsi/fdomain.c | int i; |
i | 664 | drivers/scsi/fdomain.c | for (i = 0xfff8; i > 0xe000; i -= 8) { |
i | 665 | drivers/scsi/fdomain.c | if (check_region( i, 0x10 )) { |
i | 667 | drivers/scsi/fdomain.c | printk( " (%x inuse)," , i ); |
i | 671 | drivers/scsi/fdomain.c | if ((flag = fdomain_is_valid_port( i ))) break; |
i | 676 | drivers/scsi/fdomain.c | *irq = fdomain_get_irq( i ); |
i | 677 | drivers/scsi/fdomain.c | *iobase = i; |
i | 816 | drivers/scsi/fdomain.c | int i, j; |
i | 834 | drivers/scsi/fdomain.c | for (i = 0; !bios_base && i < ADDRESS_COUNT; i++) { |
i | 836 | drivers/scsi/fdomain.c | printk( " %x(%x),", (unsigned)addresses[i], (unsigned)bios_base ); |
i | 839 | drivers/scsi/fdomain.c | if (!memcmp( ((char *)addresses[i] + signatures[j].sig_offset), |
i | 845 | drivers/scsi/fdomain.c | bios_base = addresses[i]; |
i | 956 | drivers/scsi/fdomain.c | for (i = 0; i < 8; i++) { |
i | 957 | drivers/scsi/fdomain.c | SCinit.target = i; |
i | 958 | drivers/scsi/fdomain.c | if (i == tpnt->this_id) /* Skip host adapter */ |
i | 966 | drivers/scsi/fdomain.c | printk( " SCSI ID %d: ", i ); |
i | 1765 | drivers/scsi/fdomain.c | } *i; |
i | 1817 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f33 + drive * 25 ); |
i | 1820 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f36 + drive * 15 ); |
i | 1823 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f34 + drive * 15 ); |
i | 1826 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f31 + drive * 25 ); |
i | 1829 | drivers/scsi/fdomain.c | info_array[0] = i->heads; |
i | 1830 | drivers/scsi/fdomain.c | info_array[1] = i->sectors; |
i | 1831 | drivers/scsi/fdomain.c | info_array[2] = i->cylinders; |
i | 1835 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f71 + drive * 10 ); |
i | 1836 | drivers/scsi/fdomain.c | info_array[0] = i->heads + 1; |
i | 1837 | drivers/scsi/fdomain.c | info_array[1] = i->sectors; |
i | 1838 | drivers/scsi/fdomain.c | info_array[2] = i->cylinders; |
i | 331 | drivers/scsi/hosts.c | int i, pcount; |
i | 339 | drivers/scsi/hosts.c | for (tpnt = &builtin_scsi_hosts[0], i = 0; i < MAX_SCSI_HOSTS; ++i, tpnt++) |
i | 330 | drivers/scsi/hosts.h | extern void scsi_unregister(struct Scsi_Host * i); |
i | 133 | drivers/scsi/in2000.c | int i; |
i | 144 | drivers/scsi/in2000.c | for(i=0; i < 3; i++) |
i | 145 | drivers/scsi/in2000.c | if(*(bios_tab[i]+0x04) == 0x41564f4e || |
i | 146 | drivers/scsi/in2000.c | *(bios_tab[i]+0xc) == 0x61776c41) { |
i | 148 | drivers/scsi/in2000.c | tmp, (unsigned int)bios_tab[i]); |
i | 421 | drivers/scsi/in2000.c | int i; |
i | 437 | drivers/scsi/in2000.c | i = xscsi2int((cmd+1)); |
i | 439 | drivers/scsi/in2000.c | i = scsi2int((cmd+1)); |
i | 441 | drivers/scsi/in2000.c | i = -1; |
i | 444 | drivers/scsi/in2000.c | printk("in2000qcmd: pos %d len %d ", i, bufflen); |
i | 446 | drivers/scsi/in2000.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
i | 317 | drivers/scsi/pas16.c | int i; |
i | 324 | drivers/scsi/pas16.c | for (i = 0; i < NO_BASES; ++i) |
i | 325 | drivers/scsi/pas16.c | if (bases[i].io_port == (unsigned short) ints[1]) { |
i | 326 | drivers/scsi/pas16.c | bases[i].noauto = 1; |
i | 486 | drivers/scsi/pas16.c | register i = len; |
i | 490 | drivers/scsi/pas16.c | insb( reg, d, i ); |
i | 518 | drivers/scsi/pas16.c | register i = len; |
i | 522 | drivers/scsi/pas16.c | outsb( reg, s, i ); |
i | 164 | drivers/scsi/qlogic.c | #define rtrc(i) {inb(0x3da);outb(0x31,0x3c0);outb((i),0x3c0);} |
i | 166 | drivers/scsi/qlogic.c | #define rtrc(i) {} |
i | 272 | drivers/scsi/qlogic.c | int i,k; |
i | 274 | drivers/scsi/qlogic.c | i = jiffies + WATCHDOG; |
i | 275 | drivers/scsi/qlogic.c | while ( i > jiffies && !qabort && !((k = inb(qbase + 4)) & 0xe0)) |
i | 277 | drivers/scsi/qlogic.c | if (i <= jiffies) |
i | 294 | drivers/scsi/qlogic.c | unsigned int i; |
i | 328 | drivers/scsi/qlogic.c | for (i = 0; i < cmd->cmd_len; i++) |
i | 329 | drivers/scsi/qlogic.c | outb(cmd->cmnd[i], qbase + 2); |
i | 338 | drivers/scsi/qlogic.c | unsigned int i, j, k; |
i | 349 | drivers/scsi/qlogic.c | i = inb(qbase + 5); |
i | 350 | drivers/scsi/qlogic.c | if (i == 0x20) { |
i | 353 | drivers/scsi/qlogic.c | i |= inb(qbase + 5); /* the 0x10 bit can be set after the 0x08 */ |
i | 354 | drivers/scsi/qlogic.c | if (i != 0x18) { |
i | 355 | drivers/scsi/qlogic.c | printk("Ql:Bad Interrupt status:%02x\n", i); |
i | 365 | drivers/scsi/qlogic.c | printk("Ql:Bad sequence for command %d, int %02X, cmdleft = %d\n", j, i, inb( qbase+7 ) & 0x1f ); |
i | 418 | drivers/scsi/qlogic.c | i = inb(qbase + 5); /* get chip irq stat */ |
i | 423 | drivers/scsi/qlogic.c | if (!((i == 8 && j == 2) || (i == 0x10 && j == 1))) { |
i | 424 | drivers/scsi/qlogic.c | printk("Ql:Error during status phase, int=%02X, %d bytes recd\n", i, j); |
i | 432 | drivers/scsi/qlogic.c | i = inb(qbase + 5); /* should be bus service */ |
i | 433 | drivers/scsi/qlogic.c | while (!qabort && ((i & 0x20) != 0x20)) { |
i | 435 | drivers/scsi/qlogic.c | i |= inb(qbase + 5); |
i | 453 | drivers/scsi/qlogic.c | int i; |
i | 454 | drivers/scsi/qlogic.c | i = 16; |
i | 455 | drivers/scsi/qlogic.c | while (i-- && inb(qbase + 5)); /* maybe also ql_zap() */ |
i | 535 | drivers/scsi/qlogic.c | int i, j; /* these are only used by IRQ detect */ |
i | 584 | drivers/scsi/qlogic.c | i = 0xffff; |
i | 592 | drivers/scsi/qlogic.c | i &= ~(inb(0x20) | (inb(0xa0) << 8)); /* find IRQ off */ |
i | 594 | drivers/scsi/qlogic.c | i &= inb(0x20) | (inb(0xa0) << 8); /* find IRQ on */ |
i | 599 | drivers/scsi/qlogic.c | while (i) /* find on bit */ |
i | 600 | drivers/scsi/qlogic.c | i >>= 1, j++; /* should check for exactly 1 on */ |
i | 239 | drivers/scsi/scsi.c | int i = 0; |
i | 241 | drivers/scsi/scsi.c | for(i=0; 1; i++){ |
i | 242 | drivers/scsi/scsi.c | if(device_list[i].vendor == NULL) return 0; |
i | 245 | drivers/scsi/scsi.c | if(memcmp(device_list[i].vendor, pnt, |
i | 246 | drivers/scsi/scsi.c | strlen(device_list[i].vendor))) continue; |
i | 249 | drivers/scsi/scsi.c | if(memcmp(device_list[i].model, pnt, |
i | 250 | drivers/scsi/scsi.c | strlen(device_list[i].model))) continue; |
i | 251 | drivers/scsi/scsi.c | return device_list[i].flags; |
i | 1214 | drivers/scsi/scsi.c | int i; |
i | 1221 | drivers/scsi/scsi.c | for (i = 0; i < 10; ++i) |
i | 1222 | drivers/scsi/scsi.c | printk ("%02x ", ((unsigned char *) cmnd)[i]); |
i | 2083 | drivers/scsi/scsi.c | int i, j; |
i | 2092 | drivers/scsi/scsi.c | for(i=0;i < (dma_sectors >> (MALLOC_PAGEBITS - 9)); i++) |
i | 2094 | drivers/scsi/scsi.c | if ((dma_malloc_freelist[i] & (mask << j)) == 0){ |
i | 2095 | drivers/scsi/scsi.c | dma_malloc_freelist[i] |= (mask << j); |
i | 2099 | drivers/scsi/scsi.c | printk("SMalloc: %d %p ",len, dma_malloc_pages[i] + (j << 9)); |
i | 2101 | drivers/scsi/scsi.c | return (void *) ((unsigned long) dma_malloc_pages[i] + (j << 9)); |
i | 2268 | drivers/scsi/scsi.c | int i; |
i | 2348 | drivers/scsi/scsi.c | for(i=0; i< dma_sectors >> 3; i++) |
i | 2349 | drivers/scsi/scsi.c | dma_malloc_pages[i] = (unsigned char *) |
i | 2379 | drivers/scsi/scsi.c | int i; |
i | 2382 | drivers/scsi/scsi.c | for (i = 8; i < 16; i++) |
i | 2384 | drivers/scsi/scsi.c | if (data[i] >= 0x20 && i < data[4] + 5) |
i | 2385 | drivers/scsi/scsi.c | printk("%c", data[i]); |
i | 2391 | drivers/scsi/scsi.c | for (i = 16; i < 32; i++) |
i | 2393 | drivers/scsi/scsi.c | if (data[i] >= 0x20 && i < data[4] + 5) |
i | 2394 | drivers/scsi/scsi.c | printk("%c", data[i]); |
i | 2400 | drivers/scsi/scsi.c | for (i = 32; i < 36; i++) |
i | 2402 | drivers/scsi/scsi.c | if (data[i] >= 0x20 && i < data[4] + 5) |
i | 2403 | drivers/scsi/scsi.c | printk("%c", data[i]); |
i | 2410 | drivers/scsi/scsi.c | i = data[0] & 0x1f; |
i | 2413 | drivers/scsi/scsi.c | i < MAX_SCSI_DEVICE_CODE ? scsi_device_types[i] : "Unknown " ); |
i | 2482 | drivers/scsi/scsi.c | int i; |
i | 2597 | drivers/scsi/scsi.c | for(i=dma_sectors >> 3; i< new_dma_sectors >> 3; i++) |
i | 2598 | drivers/scsi/scsi.c | new_dma_malloc_pages[i] = (unsigned char *) |
i | 2937 | drivers/scsi/scsi.c | int i; |
i | 2941 | drivers/scsi/scsi.c | i = 0; |
i | 2947 | drivers/scsi/scsi.c | i++, SCpnt->host->host_no, |
i | 2969 | drivers/scsi/scsi.c | for(i=0; i<MAX_BLKDEV; i++) |
i | 2970 | drivers/scsi/scsi.c | if(blk_dev[i].current_request) |
i | 2973 | drivers/scsi/scsi.c | printk("%d: ", i); |
i | 2974 | drivers/scsi/scsi.c | req = blk_dev[i].current_request; |
i | 3037 | drivers/scsi/scsi.c | int i; |
i | 3050 | drivers/scsi/scsi.c | for(i=0; i < dma_sectors >> 3; i++) |
i | 3051 | drivers/scsi/scsi.c | scsi_init_free(dma_malloc_pages[i], PAGE_SIZE); |
i | 131 | drivers/scsi/scsi_debug.c | int i; |
i | 140 | drivers/scsi/scsi_debug.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 141 | drivers/scsi/scsi_debug.c | lpnt = (int *) sgpnt[i].alt_address; |
i | 142 | drivers/scsi/scsi_debug.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 152 | drivers/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 153 | drivers/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 159 | drivers/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 160 | drivers/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 166 | drivers/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 167 | drivers/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 188 | drivers/scsi/scsi_debug.c | int i; |
i | 207 | drivers/scsi/scsi_debug.c | int i; |
i | 209 | drivers/scsi/scsi_debug.c | for(i=0;i<12;i++) printk("%d ",sense_buffer[i]); |
i | 326 | drivers/scsi/scsi_debug.c | int i; |
i | 328 | drivers/scsi/scsi_debug.c | for(i=0;i<12;i++) printk("%d ",sense_buffer[i]); |
i | 401 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++){ |
i | 402 | drivers/scsi/scsi_debug.c | if (SCint[i] == 0) break; |
i | 405 | drivers/scsi/scsi_debug.c | if (i >= SCSI_DEBUG_MAILBOXES || SCint[i] != 0) |
i | 408 | drivers/scsi/scsi_debug.c | SCint[i] = SCpnt; |
i | 412 | drivers/scsi/scsi_debug.c | if (do_done[i]) |
i | 415 | drivers/scsi/scsi_debug.c | do_done[i] = done; |
i | 428 | drivers/scsi/scsi_debug.c | timeout[i] = jiffies+DISK_SPEED; |
i | 432 | drivers/scsi/scsi_debug.c | timer_table[SCSI_DEBUG_TIMER].expires = timeout[i]; |
i | 440 | drivers/scsi/scsi_debug.c | printk("Sending command (%d %x %d %d)...", i, done, timeout[i],jiffies); |
i | 471 | drivers/scsi/scsi_debug.c | int i, pending; |
i | 484 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 485 | drivers/scsi/scsi_debug.c | if (SCint[i] == 0) continue; |
i | 487 | drivers/scsi/scsi_debug.c | if (timeout[i] == 0) continue; |
i | 488 | drivers/scsi/scsi_debug.c | if (timeout[i] <= jiffies) break; |
i | 494 | drivers/scsi/scsi_debug.c | if(i == SCSI_DEBUG_MAILBOXES){ |
i | 497 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 498 | drivers/scsi/scsi_debug.c | if (SCint[i] == 0) continue; |
i | 499 | drivers/scsi/scsi_debug.c | if (timeout[i] == 0) continue; |
i | 500 | drivers/scsi/scsi_debug.c | if (timeout[i] <= jiffies) {restore_flags(flags); goto repeat;}; |
i | 501 | drivers/scsi/scsi_debug.c | if (timeout[i] > jiffies) { |
i | 502 | drivers/scsi/scsi_debug.c | if (pending > timeout[i]) pending = timeout[i]; |
i | 516 | drivers/scsi/scsi_debug.c | if(i < SCSI_DEBUG_MAILBOXES){ |
i | 517 | drivers/scsi/scsi_debug.c | timeout[i] = 0; |
i | 518 | drivers/scsi/scsi_debug.c | my_done = do_done[i]; |
i | 519 | drivers/scsi/scsi_debug.c | do_done[i] = NULL; |
i | 520 | drivers/scsi/scsi_debug.c | to = timeout[i]; |
i | 521 | drivers/scsi/scsi_debug.c | timeout[i] = 0; |
i | 522 | drivers/scsi/scsi_debug.c | SCtmp = (Scsi_Cmnd *) SCint[i]; |
i | 523 | drivers/scsi/scsi_debug.c | SCint[i] = NULL; |
i | 533 | drivers/scsi/scsi_debug.c | printk("...done %d %x %d %d\n",i , my_done, to, jiffies); |
i | 534 | drivers/scsi/scsi_debug.c | printk("In intr_handle: %d %x %x\n",i, SCtmp, my_done); |
i | 589 | drivers/scsi/scsi_debug.c | int i; |
i | 595 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 596 | drivers/scsi/scsi_debug.c | if (SCint[i] == NULL) continue; |
i | 597 | drivers/scsi/scsi_debug.c | SCint[i]->result = DID_ABORT << 16; |
i | 598 | drivers/scsi/scsi_debug.c | my_done = do_done[i]; |
i | 599 | drivers/scsi/scsi_debug.c | my_done(SCint[i]); |
i | 602 | drivers/scsi/scsi_debug.c | SCint[i] = NULL; |
i | 603 | drivers/scsi/scsi_debug.c | do_done[i] = NULL; |
i | 604 | drivers/scsi/scsi_debug.c | timeout[i] = 0; |
i | 290 | drivers/scsi/scsi_ioctl.c | int i; |
i | 292 | drivers/scsi/scsi_ioctl.c | for (i = 0; i < 12; ++i) |
i | 293 | drivers/scsi/scsi_ioctl.c | printk("%02x ", cmd[i]); |
i | 295 | drivers/scsi/scsi_ioctl.c | for (i = 0; i < 20; ++i) |
i | 296 | drivers/scsi/scsi_ioctl.c | printk("%02x ", buf[i]); |
i | 93 | drivers/scsi/scsicam.c | int i, largest_cyl; |
i | 100 | drivers/scsi/scsicam.c | (0x1BE + bh->b_data), i = 0; i < 4; ++i, ++p) { |
i | 105 | drivers/scsi/scsicam.c | i); |
i | 186 | drivers/scsi/sd.c | int i; |
i | 188 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
i | 189 | drivers/scsi/sd.c | if(rscsi_disks[i].device) |
i | 190 | drivers/scsi/sd.c | sd[i << 4].nr_sects = rscsi_disks[i].capacity; |
i | 228 | drivers/scsi/sd.c | int i; |
i | 230 | drivers/scsi/sd.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 232 | drivers/scsi/sd.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, |
i | 233 | drivers/scsi/sd.c | sgpnt[i].length); |
i | 235 | drivers/scsi/sd.c | if (sgpnt[i].alt_address) { |
i | 237 | drivers/scsi/sd.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, |
i | 238 | drivers/scsi/sd.c | sgpnt[i].length); |
i | 239 | drivers/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 288 | drivers/scsi/sd.c | int i; |
i | 290 | drivers/scsi/sd.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 295 | drivers/scsi/sd.c | if (sgpnt[i].alt_address) { |
i | 296 | drivers/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 897 | drivers/scsi/sd.c | static int sd_init_onedisk(int i) |
i | 910 | drivers/scsi/sd.c | SCpnt = allocate_device(NULL, rscsi_disks[i].device, 1); |
i | 922 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 945 | drivers/scsi/sd.c | if(the_result && !rscsi_disks[i].device->removable && |
i | 949 | drivers/scsi/sd.c | printk( "sd%c: Spinning up disk...", 'a' + i ); |
i | 951 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 989 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 1044 | drivers/scsi/sd.c | 'a' + i, 'a' + i, |
i | 1052 | drivers/scsi/sd.c | 'a' + i, SCpnt->sense_buffer[2] & 0xf); |
i | 1054 | drivers/scsi/sd.c | printk("sd%c : sense not available. \n", 'a' + i); |
i | 1057 | drivers/scsi/sd.c | 'a' + i); |
i | 1058 | drivers/scsi/sd.c | rscsi_disks[i].capacity = 0x1fffff; |
i | 1059 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = 512; |
i | 1063 | drivers/scsi/sd.c | if(rscsi_disks[i].device->removable && |
i | 1065 | drivers/scsi/sd.c | rscsi_disks[i].device->changed = 1; |
i | 1070 | drivers/scsi/sd.c | rscsi_disks[i].capacity = (buffer[0] << 24) | |
i | 1075 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = (buffer[4] << 24) | |
i | 1078 | drivers/scsi/sd.c | if (rscsi_disks[i].sector_size != 512 && |
i | 1079 | drivers/scsi/sd.c | rscsi_disks[i].sector_size != 1024 && |
i | 1080 | drivers/scsi/sd.c | rscsi_disks[i].sector_size != 256) |
i | 1083 | drivers/scsi/sd.c | 'a' + i, rscsi_disks[i].sector_size); |
i | 1084 | drivers/scsi/sd.c | if(rscsi_disks[i].device->removable){ |
i | 1085 | drivers/scsi/sd.c | rscsi_disks[i].capacity = 0; |
i | 1088 | drivers/scsi/sd.c | rscsi_disks[i].device = NULL; |
i | 1090 | drivers/scsi/sd.c | return i; |
i | 1100 | drivers/scsi/sd.c | int hard_sector = rscsi_disks[i].sector_size; |
i | 1102 | drivers/scsi/sd.c | for (m=i<<4; m<((i+1)<<4); m++){ |
i | 1106 | drivers/scsi/sd.c | hard_sector,i+'a'); |
i | 1108 | drivers/scsi/sd.c | if(rscsi_disks[i].sector_size == 1024) |
i | 1109 | drivers/scsi/sd.c | rscsi_disks[i].capacity <<= 1; /* Change into 512 byte sectors */ |
i | 1110 | drivers/scsi/sd.c | if(rscsi_disks[i].sector_size == 256) |
i | 1111 | drivers/scsi/sd.c | rscsi_disks[i].capacity >>= 1; /* Change into 512 byte sectors */ |
i | 1114 | drivers/scsi/sd.c | rscsi_disks[i].ten = 1; |
i | 1115 | drivers/scsi/sd.c | rscsi_disks[i].remap = 1; |
i | 1117 | drivers/scsi/sd.c | return i; |
i | 1128 | drivers/scsi/sd.c | int i; |
i | 1160 | drivers/scsi/sd.c | for(i=0;i<(sd_template.dev_max << 4);i++){ |
i | 1161 | drivers/scsi/sd.c | sd_blocksizes[i] = 1024; |
i | 1162 | drivers/scsi/sd.c | sd_hardsizes[i] = 512; |
i | 1180 | drivers/scsi/sd.c | int i; |
i | 1187 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
i | 1188 | drivers/scsi/sd.c | if (!rscsi_disks[i].capacity && |
i | 1189 | drivers/scsi/sd.c | rscsi_disks[i].device) |
i | 1191 | drivers/scsi/sd.c | i = sd_init_onedisk(i); |
i | 1193 | drivers/scsi/sd.c | && !rscsi_disks[i].has_part_table) { |
i | 1194 | drivers/scsi/sd.c | sd_sizes[i << 4] = rscsi_disks[i].capacity; |
i | 1195 | drivers/scsi/sd.c | revalidate_scsidisk(i << 4, 0); |
i | 1197 | drivers/scsi/sd.c | rscsi_disks[i].has_part_table = 1; |
i | 1224 | drivers/scsi/sd.c | int i; |
i | 1233 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
i | 1236 | drivers/scsi/sd.c | if(i >= sd_template.dev_max) panic ("scsi_devices corrupt (sd)"); |
i | 1239 | drivers/scsi/sd.c | rscsi_disks[i].device = SDp; |
i | 1240 | drivers/scsi/sd.c | rscsi_disks[i].has_part_table = 0; |
i | 1265 | drivers/scsi/sd.c | int i; |
i | 1284 | drivers/scsi/sd.c | for (i=max_p - 1; i >=0 ; i--) { |
i | 1285 | drivers/scsi/sd.c | sync_dev(major | start | i); |
i | 1286 | drivers/scsi/sd.c | invalidate_inodes(major | start | i); |
i | 1287 | drivers/scsi/sd.c | invalidate_buffers(major | start | i); |
i | 1288 | drivers/scsi/sd.c | gdev->part[start+i].start_sect = 0; |
i | 1289 | drivers/scsi/sd.c | gdev->part[start+i].nr_sects = 0; |
i | 1311 | drivers/scsi/sd.c | int i; |
i | 1316 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
i | 1322 | drivers/scsi/sd.c | start = i << sd_gendisk.minor_shift; |
i | 1325 | drivers/scsi/sd.c | for (i=max_p - 1; i >=0 ; i--) { |
i | 1326 | drivers/scsi/sd.c | sync_dev(major | start | i); |
i | 1327 | drivers/scsi/sd.c | invalidate_inodes(major | start | i); |
i | 1328 | drivers/scsi/sd.c | invalidate_buffers(major | start | i); |
i | 1329 | drivers/scsi/sd.c | sd_gendisk.part[start+i].start_sect = 0; |
i | 1330 | drivers/scsi/sd.c | sd_gendisk.part[start+i].nr_sects = 0; |
i | 1331 | drivers/scsi/sd.c | sd_sizes[start+i] = 0; |
i | 284 | drivers/scsi/seagate.c | int i,j; |
i | 328 | drivers/scsi/seagate.c | for (i = 0; i < (sizeof (seagate_bases) / sizeof (char * )); ++i) |
i | 330 | drivers/scsi/seagate.c | if (!memcmp ((void *) (seagate_bases[i] + |
i | 333 | drivers/scsi/seagate.c | base_address = (void *) seagate_bases[i]; |
i | 604 | drivers/scsi/seagate.c | int i; |
i | 904 | drivers/scsi/seagate.c | int i; |
i | 907 | drivers/scsi/seagate.c | for (i = 0; i < nobuffs; ++i) |
i | 909 | drivers/scsi/seagate.c | hostno, i, buffer[i].address, buffer[i].length); |
i | 1473 | drivers/scsi/seagate.c | for (i = 0; i < 20; ++i) |
i | 1474 | drivers/scsi/seagate.c | printk ("%02x ", ((unsigned char *) data)[i]); /* WDE mod */ |
i | 206 | drivers/scsi/sg.c | int i; |
i | 208 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_WRITE,buf,count))) |
i | 209 | drivers/scsi/sg.c | return i; |
i | 294 | drivers/scsi/sg.c | int bsize,size,amt,i; |
i | 303 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_READ,buf,count))) |
i | 304 | drivers/scsi/sg.c | return i; |
i | 522 | drivers/scsi/sg.c | int i; |
i | 530 | drivers/scsi/sg.c | for(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) |
i | 533 | drivers/scsi/sg.c | if(i >= sg_template.dev_max) panic ("scsi_devices corrupt (sg)"); |
i | 535 | drivers/scsi/sg.c | scsi_generics[i].device=SDp; |
i | 536 | drivers/scsi/sg.c | scsi_generics[i].users=0; |
i | 537 | drivers/scsi/sg.c | scsi_generics[i].generic_wait=NULL; |
i | 538 | drivers/scsi/sg.c | scsi_generics[i].read_wait=NULL; |
i | 539 | drivers/scsi/sg.c | scsi_generics[i].write_wait=NULL; |
i | 540 | drivers/scsi/sg.c | scsi_generics[i].buff=NULL; |
i | 541 | drivers/scsi/sg.c | scsi_generics[i].exclude=0; |
i | 542 | drivers/scsi/sg.c | scsi_generics[i].pending=0; |
i | 543 | drivers/scsi/sg.c | scsi_generics[i].timeout=SG_DEFAULT_TIMEOUT; |
i | 553 | drivers/scsi/sg.c | int i; |
i | 555 | 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 | 872 | drivers/scsi/sr.c | int i; |
i | 876 | drivers/scsi/sr.c | for(i=0; i<12; i++) printk("%2.2x ", cmd[i]); |
i | 913 | drivers/scsi/sr.c | int i; |
i | 923 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
i | 926 | drivers/scsi/sr.c | if(i >= sr_template.dev_max) panic ("scsi_devices corrupt (sr)"); |
i | 929 | drivers/scsi/sr.c | scsi_CDs[i].device = SDp; |
i | 949 | drivers/scsi/sr.c | static void get_sectorsize(int i){ |
i | 956 | drivers/scsi/sr.c | SCpnt = allocate_device(NULL, scsi_CDs[i].device, 1); |
i | 961 | drivers/scsi/sr.c | cmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0; |
i | 995 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0x1fffff; |
i | 996 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = 2048; /* A guess, just in case */ |
i | 997 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
i | 999 | drivers/scsi/sr.c | scsi_CDs[i].capacity = (buffer[0] << 24) | |
i | 1001 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = (buffer[4] << 24) | |
i | 1003 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size == 0) scsi_CDs[i].sector_size = 2048; |
i | 1004 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size != 2048 && |
i | 1005 | drivers/scsi/sr.c | scsi_CDs[i].sector_size != 512) { |
i | 1007 | drivers/scsi/sr.c | i, scsi_CDs[i].sector_size); |
i | 1008 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0; |
i | 1009 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
i | 1011 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size == 2048) |
i | 1012 | drivers/scsi/sr.c | scsi_CDs[i].capacity *= 4; |
i | 1013 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 0; |
i | 1014 | drivers/scsi/sr.c | sr_sizes[i] = scsi_CDs[i].capacity; |
i | 1021 | drivers/scsi/sr.c | int i; |
i | 1045 | drivers/scsi/sr.c | for(i=0;i<sr_template.dev_max;i++) sr_blocksizes[i] = 2048; |
i | 1052 | drivers/scsi/sr.c | int i; |
i | 1057 | drivers/scsi/sr.c | for (i = 0; i < sr_template.nr_dev; ++i) |
i | 1061 | drivers/scsi/sr.c | if (scsi_CDs[i].capacity) continue; |
i | 1062 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0x1fffff; |
i | 1063 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = 2048; /* A guess, just in case */ |
i | 1064 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
i | 1067 | drivers/scsi/sr.c | get_sectorsize(i); |
i | 1068 | drivers/scsi/sr.c | printk("Scd sectorsize = %d bytes.\n", scsi_CDs[i].sector_size); |
i | 1070 | drivers/scsi/sr.c | scsi_CDs[i].use = 1; |
i | 1071 | drivers/scsi/sr.c | scsi_CDs[i].ten = 1; |
i | 1072 | drivers/scsi/sr.c | scsi_CDs[i].remap = 1; |
i | 1073 | drivers/scsi/sr.c | scsi_CDs[i].auto_eject = 0; /* Default is not to eject upon unmount. */ |
i | 1074 | drivers/scsi/sr.c | sr_sizes[i] = scsi_CDs[i].capacity; |
i | 1092 | drivers/scsi/sr.c | int i, major; |
i | 1096 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
i | 1102 | drivers/scsi/sr.c | invalidate_inodes(major | i); |
i | 1103 | drivers/scsi/sr.c | invalidate_buffers(major | i); |
i | 1114 | drivers/scsi/sr.c | sr_sizes[i] = 0; |
i | 1134 | drivers/scsi/sr.c | int i; |
i | 426 | drivers/scsi/st.c | int i; |
i | 441 | drivers/scsi/st.c | for (i=0; i < st_nbr_buffers; i++) |
i | 442 | drivers/scsi/st.c | if (!st_buffers[i]->in_use) |
i | 444 | drivers/scsi/st.c | if (i >= st_nbr_buffers) { |
i | 448 | drivers/scsi/st.c | STp->buffer = st_buffers[i]; |
i | 1744 | drivers/scsi/st.c | int i, cmd, result; |
i | 1767 | drivers/scsi/st.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(mtc)); |
i | 1768 | drivers/scsi/st.c | if (i) |
i | 1769 | drivers/scsi/st.c | return i; |
i | 1773 | drivers/scsi/st.c | i = flush_buffer(inode, file, mtc.mt_op == MTSEEK || |
i | 1776 | drivers/scsi/st.c | if (i < 0) |
i | 1777 | drivers/scsi/st.c | return i; |
i | 1793 | drivers/scsi/st.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct mtget)); |
i | 1794 | drivers/scsi/st.c | if (i) |
i | 1795 | drivers/scsi/st.c | return i; |
i | 1852 | drivers/scsi/st.c | i = flush_buffer(inode, file, 0); |
i | 1853 | drivers/scsi/st.c | if (i < 0) |
i | 1854 | drivers/scsi/st.c | return i; |
i | 1856 | drivers/scsi/st.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct mtpos)); |
i | 1857 | drivers/scsi/st.c | if (i) |
i | 1858 | drivers/scsi/st.c | return i; |
i | 1953 | drivers/scsi/st.c | int i; |
i | 1963 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
i | 1966 | drivers/scsi/st.c | if(i >= st_template.dev_max) panic ("scsi_devices corrupt (st)"); |
i | 1968 | drivers/scsi/st.c | scsi_tapes[i].device = SDp; |
i | 1970 | drivers/scsi/st.c | scsi_tapes[i].mt_status->mt_type = MT_ISSCSI1; |
i | 1972 | drivers/scsi/st.c | scsi_tapes[i].mt_status->mt_type = MT_ISSCSI2; |
i | 1992 | drivers/scsi/st.c | int i; |
i | 2017 | drivers/scsi/st.c | for (i=0; i < st_template.dev_max; ++i) { |
i | 2018 | drivers/scsi/st.c | STp = &(scsi_tapes[i]); |
i | 2039 | drivers/scsi/st.c | memset((void *) scsi_tapes[i].mt_status, 0, sizeof(struct mtget)); |
i | 2053 | drivers/scsi/st.c | for (i=0; i < st_nbr_buffers; i++) { |
i | 2054 | drivers/scsi/st.c | st_buffers[i] = (ST_buffer *) scsi_init_malloc(sizeof(ST_buffer) - |
i | 2059 | drivers/scsi/st.c | st_buffers[i]->in_use = 0; |
i | 2060 | drivers/scsi/st.c | st_buffers[i]->writing = 0; |
i | 2068 | drivers/scsi/st.c | int i; |
i | 2070 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
i | 2092 | drivers/scsi/st.c | int i; |
i | 2105 | drivers/scsi/st.c | for (i=0; i < st_nbr_buffers; i++) { |
i | 2106 | drivers/scsi/st.c | scsi_init_free((char *) st_buffers[i], |
i | 165 | drivers/scsi/t128.c | int i; |
i | 172 | drivers/scsi/t128.c | for (i = 0; i < NO_BASES; ++i) |
i | 173 | drivers/scsi/t128.c | if (bases[i].address == (unsigned char *) ints[1]) { |
i | 174 | drivers/scsi/t128.c | bases[i].noauto = 1; |
i | 318 | drivers/scsi/t128.c | register i = len; |
i | 322 | drivers/scsi/t128.c | for (; i; --i) { |
i | 326 | drivers/scsi/t128.c | for (; i; --i) { |
i | 362 | drivers/scsi/t128.c | register i = len; |
i | 365 | drivers/scsi/t128.c | for (; i; --i) { |
i | 369 | drivers/scsi/t128.c | for (; i; --i) { |
i | 559 | drivers/scsi/u14-34f.c | unsigned int i, j, k, flags; |
i | 571 | drivers/scsi/u14-34f.c | i = HD(j)->last_cp_used + 1; |
i | 573 | drivers/scsi/u14-34f.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
i | 575 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) i = 0; |
i | 577 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) { |
i | 578 | drivers/scsi/u14-34f.c | HD(j)->last_cp_used = i; |
i | 600 | drivers/scsi/u14-34f.c | cpp = &HD(j)->cp[i]; |
i | 604 | drivers/scsi/u14-34f.c | cpp->index = i; |
i | 608 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->target, SCpnt->pid); |
i | 646 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = IN_USE; |
i | 652 | drivers/scsi/u14-34f.c | unsigned int i, j, flags; |
i | 664 | drivers/scsi/u14-34f.c | i = *(unsigned int *)SCarg->host_scribble; |
i | 666 | drivers/scsi/u14-34f.c | BN(j), i, SCarg->target, SCarg->pid); |
i | 668 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
i | 677 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) { |
i | 678 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is free.\n", BN(j), i); |
i | 683 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IN_USE) { |
i | 684 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is in use.\n", BN(j), i); |
i | 686 | drivers/scsi/u14-34f.c | if (SCarg != HD(j)->cp[i].SCpnt) |
i | 688 | drivers/scsi/u14-34f.c | BN(j), i, SCarg, HD(j)->cp[i].SCpnt); |
i | 694 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IN_RESET) { |
i | 695 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is in reset.\n", BN(j), i); |
i | 700 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 701 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is locked.\n", BN(j), i); |
i | 706 | drivers/scsi/u14-34f.c | panic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i); |
i | 710 | drivers/scsi/u14-34f.c | unsigned int i, j, flags, time, k, limit = 0; |
i | 739 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 741 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) continue; |
i | 743 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 744 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
i | 745 | drivers/scsi/u14-34f.c | printk("%s: reset, locked mbox %d forced free.\n", BN(j), i); |
i | 749 | drivers/scsi/u14-34f.c | SCpnt = HD(j)->cp[i].SCpnt; |
i | 750 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = IN_RESET; |
i | 752 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid); |
i | 755 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, SCpnt == NULL.\n", BN(j), i); |
i | 758 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, garbled SCpnt.\n", BN(j), i); |
i | 760 | drivers/scsi/u14-34f.c | if (*(unsigned int *)SCpnt->host_scribble != i) |
i | 761 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, index mismatch.\n", BN(j), i); |
i | 764 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, SCpnt->scsi_done == NULL.\n", BN(j), i); |
i | 789 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 792 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] != IN_RESET) continue; |
i | 794 | drivers/scsi/u14-34f.c | SCpnt = HD(j)->cp[i].SCpnt; |
i | 799 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = LOCKED; |
i | 802 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid); |
i | 834 | drivers/scsi/u14-34f.c | unsigned int i, j, k, flags, status, tstatus, loops, total_loops = 0; |
i | 869 | drivers/scsi/u14-34f.c | i = spp - HD(j)->cp; |
i | 871 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
i | 874 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IGNORE) { |
i | 875 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
i | 878 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == LOCKED) { |
i | 879 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
i | 881 | drivers/scsi/u14-34f.c | BN(j), i, HD(j)->iocount); |
i | 884 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == FREE) { |
i | 886 | drivers/scsi/u14-34f.c | BN(j), i, HD(j)->iocount); |
i | 889 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == IN_RESET) |
i | 890 | drivers/scsi/u14-34f.c | printk("%s: ihdlr, mbox %d is in reset.\n", BN(j), i); |
i | 891 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] != IN_USE) |
i | 892 | drivers/scsi/u14-34f.c | panic("%s: ihdlr, mbox %d, invalid cp_stat.\n", BN(j), i); |
i | 894 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
i | 898 | drivers/scsi/u14-34f.c | panic("%s: ihdlr, mbox %d, SCpnt == NULL.\n", BN(j), i); |
i | 902 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid, SCpnt); |
i | 904 | drivers/scsi/u14-34f.c | if (*(unsigned int *)SCpnt->host_scribble != i) |
i | 906 | drivers/scsi/u14-34f.c | " irq %d.\n", BN(j), i, SCpnt->pid, |
i | 997 | drivers/scsi/u14-34f.c | BN(j), i, spp->adapter_status, spp->target_status, |
i | 329 | drivers/scsi/ultrastor.c | register int i; |
i | 334 | drivers/scsi/ultrastor.c | for (i = 0; i < ULTRASTOR_MAX_CMDS; i++) |
i | 336 | drivers/scsi/ultrastor.c | fmt[20 + i*2] = ' '; |
i | 337 | drivers/scsi/ultrastor.c | if (! (config->mscp_free & (1 << i))) |
i | 338 | drivers/scsi/ultrastor.c | fmt[21 + i*2] = '0' + config->mscp[i].target_id; |
i | 340 | drivers/scsi/ultrastor.c | fmt[21 + i*2] = '-'; |
i | 351 | drivers/scsi/ultrastor.c | size_t i; |
i | 381 | drivers/scsi/ultrastor.c | for (i = 0; i < ARRAY_SIZE(ultrastor_ports_14f); i++) { |
i | 382 | drivers/scsi/ultrastor.c | if(check_region(ultrastor_ports_14f[i], 0x0c)) continue; |
i | 383 | drivers/scsi/ultrastor.c | config.port_address = ultrastor_ports_14f[i]; |
i | 425 | drivers/scsi/ultrastor.c | if (i == ARRAY_SIZE(ultrastor_ports_14f)) { |
i | 524 | drivers/scsi/ultrastor.c | register int i; |
i | 532 | drivers/scsi/ultrastor.c | for (i = 1; i < 15; i++) |
i | 535 | drivers/scsi/ultrastor.c | unsigned short addr = (i << 12) | ULTRASTOR_24F_PORT; |
i | 543 | drivers/scsi/ultrastor.c | config.slot = i; |
i | 547 | drivers/scsi/ultrastor.c | printk("U24F: found disabled card in slot %u\n", i); |
i | 552 | drivers/scsi/ultrastor.c | printk("U24F: found card in slot %u\n", i); |
i | 653 | drivers/scsi/ultrastor.c | int i, max; |
i | 657 | drivers/scsi/ultrastor.c | for (i = 0; i < max; i++) { |
i | 658 | drivers/scsi/ultrastor.c | mscp->sglist[i].address = (unsigned int)sl[i].address; |
i | 659 | drivers/scsi/ultrastor.c | mscp->sglist[i].num_bytes = sl[i].length; |
i | 660 | drivers/scsi/ultrastor.c | transfer_length += sl[i].length; |
i | 848 | drivers/scsi/ultrastor.c | int i; |
i | 853 | drivers/scsi/ultrastor.c | for (i = 0; i < 16; i++) |
i | 855 | drivers/scsi/ultrastor.c | unsigned char p = inb(port0 + i); |
i | 856 | drivers/scsi/ultrastor.c | out[28 + i * 3] = "0123456789abcdef"[p >> 4]; |
i | 857 | drivers/scsi/ultrastor.c | out[29 + i * 3] = "0123456789abcdef"[p & 15]; |
i | 858 | drivers/scsi/ultrastor.c | out[30 + i * 3] = ' '; |
i | 860 | drivers/scsi/ultrastor.c | out[28 + i * 3] = '\n'; |
i | 861 | drivers/scsi/ultrastor.c | out[29 + i * 3] = 0; |
i | 950 | drivers/scsi/ultrastor.c | register int i; |
i | 978 | drivers/scsi/ultrastor.c | for (i = 0; i < ULTRASTOR_MAX_CMDS; i++) |
i | 980 | drivers/scsi/ultrastor.c | if (! (config.mscp_free & (1 << i)) && |
i | 981 | drivers/scsi/ultrastor.c | config.mscp[i].done && config.mscp[i].SCint) |
i | 983 | drivers/scsi/ultrastor.c | config.mscp[i].SCint->result = DID_RESET << 16; |
i | 984 | drivers/scsi/ultrastor.c | config.mscp[i].done(config.mscp[i].SCint); |
i | 985 | drivers/scsi/ultrastor.c | config.mscp[i].done = 0; |
i | 987 | drivers/scsi/ultrastor.c | config.mscp[i].SCint = 0; |
i | 494 | drivers/scsi/wd7000.c | int i; |
i | 511 | drivers/scsi/wd7000.c | result.i = 0; /* clears unused bytes */ |
i | 515 | drivers/scsi/wd7000.c | return result.i; |
i | 606 | drivers/scsi/wd7000.c | int i; |
i | 638 | drivers/scsi/wd7000.c | for (i = 0; i < needed; i++) { p = scbfree; scbfree = p->next; } |
i | 666 | drivers/scsi/wd7000.c | int i; |
i | 674 | drivers/scsi/wd7000.c | for (i = 0; i < MAX_SCBS-1; i++) { |
i | 675 | drivers/scsi/wd7000.c | scbs[i].next = &(scbs[i+1]); scbs[i].SCpnt = NULL; |
i | 689 | drivers/scsi/wd7000.c | register int i, ogmb; |
i | 701 | drivers/scsi/wd7000.c | for (i = 0; i < OGMB_CNT; i++) { |
i | 718 | drivers/scsi/wd7000.c | if (i >= OGMB_CNT) { |
i | 915 | drivers/scsi/wd7000.c | unsigned i; |
i | 929 | drivers/scsi/wd7000.c | for (i = 0; i < SCpnt->use_sg; i++) { |
i | 930 | drivers/scsi/wd7000.c | any2scsi(sgb[i].ptr, (int) sg[i].address); |
i | 931 | drivers/scsi/wd7000.c | any2scsi(sgb[i].len, sg[i].length); |
i | 1101 | drivers/scsi/wd7000.c | int i,j, present = 0; |
i | 1111 | drivers/scsi/wd7000.c | for (i = 0; i < NUM_CONFIGS; i++) { |
i | 183 | drivers/sound/ad1848.c | int i; |
i | 189 | drivers/sound/ad1848.c | for (i = 6; i < 8; i++) |
i | 191 | drivers/sound/ad1848.c | prev = devc->saved_regs[i] = ad_read (devc, i); |
i | 192 | drivers/sound/ad1848.c | ad_write (devc, i, prev | 0x80); |
i | 199 | drivers/sound/ad1848.c | int i; |
i | 204 | drivers/sound/ad1848.c | for (i = 6; i < 8; i++) |
i | 206 | drivers/sound/ad1848.c | ad_write (devc, i, devc->saved_regs[i] & ~0x80); |
i | 266 | drivers/sound/ad1848.c | int i, n; |
i | 271 | drivers/sound/ad1848.c | for (i = 0; i < 32; i++) /* Count selected device bits */ |
i | 272 | drivers/sound/ad1848.c | if (mask & (1 << i)) |
i | 282 | drivers/sound/ad1848.c | for (i = 0; i < 32; i++) /* Count selected device bits */ |
i | 283 | drivers/sound/ad1848.c | if (mask & (1 << i)) |
i | 399 | drivers/sound/ad1848.c | int i; |
i | 409 | drivers/sound/ad1848.c | for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) |
i | 410 | drivers/sound/ad1848.c | ad1848_mixer_set (devc, i, devc->levels[i] = default_mixer_levels[i]); |
i | 644 | drivers/sound/ad1848.c | int i, n, selected = -1; |
i | 653 | drivers/sound/ad1848.c | for (i = 1 /*really */ ; selected == -1 && i < n; i++) |
i | 654 | drivers/sound/ad1848.c | if (speed_table[i].speed == arg) |
i | 655 | drivers/sound/ad1848.c | selected = i; |
i | 656 | drivers/sound/ad1848.c | else if (speed_table[i].speed > arg) |
i | 660 | drivers/sound/ad1848.c | diff1 = arg - speed_table[i - 1].speed; |
i | 661 | drivers/sound/ad1848.c | diff2 = speed_table[i].speed - arg; |
i | 664 | drivers/sound/ad1848.c | selected = i - 1; |
i | 666 | drivers/sound/ad1848.c | selected = i; |
i | 741 | drivers/sound/ad1848.c | int i, n = sizeof (format2bits) / sizeof (struct format_tbl); |
i | 748 | drivers/sound/ad1848.c | for (i = 0; i < n; i++) |
i | 749 | drivers/sound/ad1848.c | if (format2bits[i].format == arg) |
i | 751 | drivers/sound/ad1848.c | if ((devc->format_bits = format2bits[i].bits) == 0) |
i | 1050 | drivers/sound/ad1848.c | int i; |
i | 1137 | drivers/sound/ad1848.c | for (i = 0; i < 16; i++) |
i | 1138 | drivers/sound/ad1848.c | if ((tmp1 = ad_read (devc, i)) != (tmp2 = ad_read (devc, i + 16))) |
i | 1140 | drivers/sound/ad1848.c | DDB (printk ("ad1848 detect error - step F(%d/%x/%x)\n", i, tmp1, tmp2)); |
i | 1224 | drivers/sound/ad1848.c | int i, my_dev; |
i | 1247 | drivers/sound/ad1848.c | for (i = 0; i < 16; i++) |
i | 1248 | drivers/sound/ad1848.c | ad_write (devc, i, init_values[i]); |
i | 1256 | drivers/sound/ad1848.c | for (i = 16; i < 32; i++) |
i | 1257 | 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 | 59 | drivers/sound/dmabuf.c | unsigned i, p, n; |
i | 124 | drivers/sound/dmabuf.c | for (i = 0; i < dmap->raw_count && |
i | 126 | drivers/sound/dmabuf.c | n < MAX_SUB_BUFFERS; i++) |
i | 134 | drivers/sound/dmabuf.c | dmap->buf[n] = dmap->raw_buf[i] + p; |
i | 135 | drivers/sound/dmabuf.c | dmap->buf_phys[n] = dmap->raw_buf_phys[i] + p; |
i | 144 | drivers/sound/dmabuf.c | for (i = 0; i < dmap->nbufs; i++) |
i | 146 | 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 | 195 | drivers/sound/mad16.c | int i; |
i | 211 | drivers/sound/mad16.c | for (i = 0xf8d; i <= 0xf93; i++) |
i | 212 | drivers/sound/mad16.c | if (INB (i) != 0xff) |
i | 214 | drivers/sound/mad16.c | DDB (printk ("port 0x%03x != 0xff (0x%02x)\n", i, INB (i))); |
i | 240 | drivers/sound/mad16.c | for (i = 0xf8d; i <= 0xf93; i++) |
i | 241 | drivers/sound/mad16.c | DDB (printk ("port %03x = %03x\n", i, mad_read (i))); |
i | 249 | drivers/sound/mad16.c | for (i = 0; i < 5; i++) |
i | 251 | drivers/sound/mad16.c | if (i > 3) /* Not a valid port */ |
i | 257 | drivers/sound/mad16.c | if (valid_ports[i] == hw_config->io_base) |
i | 259 | drivers/sound/mad16.c | tmp |= i << 4; /* WSS port select bits */ |
i | 298 | drivers/sound/mad16.c | for (i = 0xf8d; i <= 0xf93; i++) |
i | 299 | drivers/sound/mad16.c | DDB (printk ("port %03x after init = %03x\n", i, mad_read (i))); |
i | 340 | drivers/sound/mad16.c | int i; /* A variable with secret power */ |
i | 361 | drivers/sound/mad16.c | for (i = 0; i < 5; i++) |
i | 363 | drivers/sound/mad16.c | if (i > 3) /* Out of array bounds */ |
i | 369 | drivers/sound/mad16.c | if (valid_ports[i] == hw_config->io_base) |
i | 371 | drivers/sound/mad16.c | tmp |= i << 5; |
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_irqs[i] == hw_config->irq) |
i | 390 | 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 | 654 | drivers/sound/mpu401.c | for (i = 0; i < cmd->nr_args; i++) |
i | 658 | drivers/sound/mpu401.c | if (!mpu401_out (dev, cmd->data[i])) |
i | 670 | drivers/sound/mpu401.c | for (i = 0; i < cmd->nr_returns; i++) |
i | 676 | 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) |