tag | line | file | source code |
i | 28 | arch/alpha/boot/main.c | int i, j, written, remaining, num_nl; |
i | 33 | arch/alpha/boot/main.c | i = vsprintf(buf, fmt, args); |
i | 39 | arch/alpha/boot/main.c | for (j = 0; j < i; ++j) { |
i | 43 | arch/alpha/boot/main.c | remaining = i + num_nl; |
i | 44 | arch/alpha/boot/main.c | for (j = i - 1; j >= 0; --j) { |
i | 58 | arch/alpha/boot/main.c | return i; |
i | 102 | arch/alpha/boot/main.c | unsigned long i, rev, sum; |
i | 129 | arch/alpha/boot/main.c | i = switch_to_osf_pal( |
i | 135 | arch/alpha/boot/main.c | if (i) { |
i | 136 | arch/alpha/boot/main.c | printk("failed, code %ld\n", i); |
i | 204 | arch/alpha/boot/main.c | long i; |
i | 222 | arch/alpha/boot/main.c | i = load(dev, START_ADDR, START_SIZE); |
i | 224 | arch/alpha/boot/main.c | if (i != START_SIZE) { |
i | 225 | arch/alpha/boot/main.c | printk("Failed (%lx)\n", i); |
i | 238 | 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 | 89 | arch/alpha/boot/tools/mkbb.c | int i; |
i | 134 | arch/alpha/boot/tools/mkbb.c | for(i = 0; i < 63; i++) { |
i | 136 | arch/alpha/boot/tools/mkbb.c | bootloader_image.bootblock_quadwords[i]; |
i | 447 | arch/alpha/kernel/alcor.c | int i; |
i | 450 | arch/alpha/kernel/alcor.c | for (i = 0; i < mchk_header->size / sizeof(long); i += 2) { |
i | 451 | arch/alpha/kernel/alcor.c | printk(" +%lx %lx %lx\n", i*sizeof(long), ptr[i], ptr[i+1]); |
i | 493 | arch/alpha/kernel/apecs.c | int i; |
i | 496 | arch/alpha/kernel/apecs.c | for (i = 0; i < mchk_header->size / sizeof(long); i += 2) { |
i | 497 | arch/alpha/kernel/apecs.c | printk(" +%lx %lx %lx\n", i*sizeof(long), ptr[i], ptr[i+1]); |
i | 134 | arch/alpha/kernel/irq.c | int i, len = 0; |
i | 137 | arch/alpha/kernel/irq.c | for (i = 0 ; i < NR_IRQS ; i++) { |
i | 138 | arch/alpha/kernel/irq.c | action = irq_action[i]; |
i | 142 | arch/alpha/kernel/irq.c | i, kstat.interrupts[i], |
i | 262 | arch/alpha/kernel/irq.c | int i; |
i | 267 | arch/alpha/kernel/irq.c | for (i = 0; i < 16; i++) |
i | 268 | arch/alpha/kernel/irq.c | if ((action = irq_action[i])) |
i | 270 | arch/alpha/kernel/irq.c | printk("[%s:%d] ", action->name, i); |
i | 417 | arch/alpha/kernel/irq.c | unsigned int i; |
i | 435 | arch/alpha/kernel/irq.c | i = ffz(~pld); |
i | 437 | arch/alpha/kernel/irq.c | if (i == 4) { |
i | 440 | arch/alpha/kernel/irq.c | device_interrupt(16 + i, 16 + i, regs); |
i | 450 | arch/alpha/kernel/irq.c | unsigned int i; |
i | 463 | arch/alpha/kernel/irq.c | i = ffz(~pld); |
i | 466 | arch/alpha/kernel/irq.c | if (i == 5) { |
i | 469 | arch/alpha/kernel/irq.c | device_interrupt(16 + i, 16 + i, regs); |
i | 546 | arch/alpha/kernel/irq.c | unsigned int i; |
i | 548 | arch/alpha/kernel/irq.c | for (i = NR_IRQS - 1; i > 0; i--) { |
i | 549 | arch/alpha/kernel/irq.c | action = irq_action[i]; |
i | 551 | arch/alpha/kernel/irq.c | enable_irq(i); |
i | 552 | arch/alpha/kernel/irq.c | irqs |= (1 << i); |
i | 580 | arch/alpha/kernel/irq.c | int i; |
i | 595 | arch/alpha/kernel/irq.c | i = ffz(~irqs); |
i | 596 | arch/alpha/kernel/irq.c | if (irqs != (1UL << i)) |
i | 597 | arch/alpha/kernel/irq.c | i = -i; |
i | 598 | arch/alpha/kernel/irq.c | return i; |
i | 480 | arch/alpha/kernel/osf_sys.c | int i, error; |
i | 490 | arch/alpha/kernel/osf_sys.c | for (i = 0; i < len; ++i) { |
i | 491 | arch/alpha/kernel/osf_sys.c | put_user(system_utsname.domainname[i], name + i); |
i | 492 | arch/alpha/kernel/osf_sys.c | if (system_utsname.domainname[i] == '\0') |
i | 112 | arch/alpha/kernel/ptrace.c | int i; |
i | 114 | arch/alpha/kernel/ptrace.c | for (i = 1; i < NR_TASKS; i++) { |
i | 115 | arch/alpha/kernel/ptrace.c | if (task[i] != NULL && (task[i]->pid == pid)) |
i | 116 | arch/alpha/kernel/ptrace.c | return task[i]; |
i | 417 | arch/alpha/kernel/ptrace.c | int displ, i, res, reg_b, nsaved = 0; |
i | 451 | arch/alpha/kernel/ptrace.c | for (i = 0; i < nsaved; ++i) { |
i | 452 | arch/alpha/kernel/ptrace.c | res = read_int(child, child->debugreg[i], &insn); |
i | 455 | arch/alpha/kernel/ptrace.c | child->debugreg[i + 2] = insn; |
i | 456 | arch/alpha/kernel/ptrace.c | DBG(DBG_BPT, (" -> next_pc=%lx\n", child->debugreg[i])); |
i | 457 | arch/alpha/kernel/ptrace.c | res = write_int(child, child->debugreg[i], BREAKINST); |
i | 471 | arch/alpha/kernel/ptrace.c | int i, nsaved = child->debugreg[4]; |
i | 480 | arch/alpha/kernel/ptrace.c | for (i = 0; i < nsaved; ++i) { |
i | 481 | arch/alpha/kernel/ptrace.c | write_int(child, child->debugreg[i], child->debugreg[i + 2]); |
i | 98 | arch/alpha/kernel/setup.c | int i; |
i | 106 | arch/alpha/kernel/setup.c | for (i = memdesc->numclusters ; i > 0; i--, cluster++) { |
i | 75 | arch/alpha/kernel/signal.c | int i; |
i | 122 | arch/alpha/kernel/signal.c | for (i = 0; i < 31; i++) |
i | 123 | arch/alpha/kernel/signal.c | sw->fp[i] = get_fs_quad(sc->sc_fpregs+i); |
i | 138 | arch/alpha/kernel/signal.c | int i; |
i | 182 | arch/alpha/kernel/signal.c | for (i = 0; i < 31; i++) |
i | 183 | arch/alpha/kernel/signal.c | put_fs_quad(sw->fp[i], sc->sc_fpregs+i); |
i | 72 | arch/alpha/kernel/time.c | int i, missed_ticks; |
i | 75 | arch/alpha/kernel/time.c | for (i = 0; i < missed_ticks; ++i) { |
i | 129 | arch/alpha/kernel/time.c | int i; |
i | 137 | arch/alpha/kernel/time.c | for (i = 0 ; i < 1000000 ; i++) /* may take up to 1 second... */ |
i | 140 | arch/alpha/kernel/time.c | for (i = 0 ; i < 1000000 ; i++) /* must try at least 2.228 ms */ |
i | 22 | arch/alpha/kernel/traps.c | long i; |
i | 45 | arch/alpha/kernel/traps.c | for (i = -3; i < 6; i++) |
i | 46 | arch/alpha/kernel/traps.c | printk("%c%08x%c",i?' ':'<',pc[i],i?' ':'>'); |
i | 56 | arch/alpha/mm/init.c | int i,free = 0,total = 0,reserved = 0; |
i | 62 | arch/alpha/mm/init.c | i = MAP_NR(high_memory); |
i | 63 | arch/alpha/mm/init.c | while (i-- > 0) { |
i | 65 | arch/alpha/mm/init.c | if (mem_map[i].reserved) |
i | 67 | arch/alpha/mm/init.c | else if (!mem_map[i].count) |
i | 70 | arch/alpha/mm/init.c | shared += mem_map[i].count-1; |
i | 101 | arch/alpha/mm/init.c | int i; |
i | 112 | arch/alpha/mm/init.c | for (i = memdesc->numclusters ; i > 0; i--, cluster++) { |
i | 174 | arch/alpha/mm/init.c | int i; |
i | 176 | arch/alpha/mm/init.c | i = MAP_NR(high_memory); |
i | 181 | arch/alpha/mm/init.c | while (i-- > 0) { |
i | 182 | arch/alpha/mm/init.c | if (mem_map[i].reserved) |
i | 185 | arch/alpha/mm/init.c | if (!mem_map[i].count) |
i | 187 | arch/alpha/mm/init.c | val->sharedram += mem_map[i].count-1; |
i | 171 | arch/i386/boot/compressed/misc.c | int i; |
i | 174 | arch/i386/boot/compressed/misc.c | for ( i = ( lines - 1 ) * cols * 2; i < lines * cols * 2; i += 2 ) |
i | 175 | arch/i386/boot/compressed/misc.c | vidmem[i] = ' '; |
i | 217 | arch/i386/boot/compressed/misc.c | int i; |
i | 220 | arch/i386/boot/compressed/misc.c | for (i=0;i<n;i++) ss[i] = c; |
i | 226 | arch/i386/boot/compressed/misc.c | int i; |
i | 229 | arch/i386/boot/compressed/misc.c | for (i=0;i<__n;i++) d[i] = s[i]; |
i | 39 | arch/i386/boot/compressed/xtract.c | int i,c,id, sz; |
i | 97 | arch/i386/boot/tools/build.c | int i,c,id, sz; |
i | 133 | arch/i386/boot/tools/build.c | for (i=0;i<sizeof buf; i++) buf[i]=0; |
i | 150 | arch/i386/boot/tools/build.c | i=read(id,buf,sizeof buf); |
i | 151 | arch/i386/boot/tools/build.c | fprintf(stderr,"Boot sector %d bytes.\n",i); |
i | 152 | arch/i386/boot/tools/build.c | if (i != 512) |
i | 158 | arch/i386/boot/tools/build.c | i=write(1,buf,512); |
i | 159 | arch/i386/boot/tools/build.c | if (i!=512) |
i | 179 | arch/i386/boot/tools/build.c | for (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c ) |
i | 182 | arch/i386/boot/tools/build.c | if (!i) { |
i | 199 | arch/i386/boot/tools/build.c | setup_sectors = (unsigned char)((i + 511) / 512); |
i | 203 | arch/i386/boot/tools/build.c | fprintf(stderr,"Setup is %d bytes.\n",i); |
i | 206 | arch/i386/boot/tools/build.c | while (i < setup_sectors * 512) { |
i | 207 | arch/i386/boot/tools/build.c | c = setup_sectors * 512 - i; |
i | 212 | arch/i386/boot/tools/build.c | i += c; |
i | 411 | arch/i386/kernel/bios32.c | int i, length; |
i | 427 | arch/i386/kernel/bios32.c | for (i = 0; i < length ; ++i) |
i | 428 | arch/i386/kernel/bios32.c | sum += check->chars[i]; |
i | 228 | arch/i386/kernel/irq.c | int i, len = 0; |
i | 231 | arch/i386/kernel/irq.c | for (i = 0 ; i < 16 ; i++) { |
i | 232 | arch/i386/kernel/irq.c | action = irq_action[i]; |
i | 236 | arch/i386/kernel/irq.c | i, kstat.interrupts[i], |
i | 259 | arch/i386/kernel/irq.c | int i,j, len = 0; |
i | 266 | arch/i386/kernel/irq.c | for (i=0;i<=smp_num_cpus;i++) { |
i | 267 | arch/i386/kernel/irq.c | sum_spins+=smp_spins[i]; |
i | 268 | arch/i386/kernel/irq.c | sum_spins_syscall+=smp_spins_syscall[i]; |
i | 269 | arch/i386/kernel/irq.c | sum_spins_sys_idle+=smp_spins_sys_idle[i]; |
i | 270 | arch/i386/kernel/irq.c | sum_smp_idle_count+=smp_idle_count[i]; |
i | 276 | arch/i386/kernel/irq.c | for (i=0;i<smp_num_cpus;i++) |
i | 277 | arch/i386/kernel/irq.c | len += sprintf(buf+len," P%1d ",i); |
i | 279 | arch/i386/kernel/irq.c | for (i = 0 ; i < NR_IRQS ; i++) { |
i | 280 | arch/i386/kernel/irq.c | action = *(i + irq_action); |
i | 284 | arch/i386/kernel/irq.c | i, kstat.interrupts[i]); |
i | 286 | arch/i386/kernel/irq.c | len+=sprintf(buf+len, "%10d ",int_count[j][i]); |
i | 299 | arch/i386/kernel/irq.c | for (i=0;i<smp_num_cpus;i++) |
i | 300 | arch/i386/kernel/irq.c | len+=sprintf(buf+len," %10lu",smp_spins[i]); |
i | 307 | arch/i386/kernel/irq.c | for (i=0;i<smp_num_cpus;i++) |
i | 308 | arch/i386/kernel/irq.c | len+=sprintf(buf+len," %10lu",smp_spins_syscall[i]); |
i | 315 | arch/i386/kernel/irq.c | for (i=0;i<smp_num_cpus;i++) |
i | 316 | arch/i386/kernel/irq.c | len+=sprintf(buf+len," %10lu",smp_spins_sys_idle[i]); |
i | 321 | arch/i386/kernel/irq.c | for (i=0;i<smp_num_cpus;i++) |
i | 322 | arch/i386/kernel/irq.c | len+=sprintf(buf+len," %10lu",smp_idle_count[i]); |
i | 491 | arch/i386/kernel/irq.c | unsigned int i, irqs = 0, irqmask; |
i | 495 | arch/i386/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 496 | arch/i386/kernel/irq.c | if (!irq_action[i]) { |
i | 497 | arch/i386/kernel/irq.c | enable_irq(i); |
i | 498 | arch/i386/kernel/irq.c | irqs |= (1 << i); |
i | 513 | arch/i386/kernel/irq.c | unsigned int i, irqmask; |
i | 522 | arch/i386/kernel/irq.c | i = ffz(~irqs); |
i | 523 | arch/i386/kernel/irq.c | if (irqs != (irqs & (1 << i))) |
i | 524 | arch/i386/kernel/irq.c | i = -i; |
i | 525 | arch/i386/kernel/irq.c | return i; |
i | 530 | arch/i386/kernel/irq.c | int i; |
i | 540 | arch/i386/kernel/irq.c | for (i = 0; i < 16 ; i++) |
i | 541 | arch/i386/kernel/irq.c | set_intr_gate(0x20+i,bad_interrupt[i]); |
i | 545 | arch/i386/kernel/irq.c | set_intr_gate(0x20+i, interrupt[i]); /* IRQ '16' - IPI for rescheduling */ |
i | 66 | arch/i386/kernel/ldt.c | int error, i; |
i | 83 | arch/i386/kernel/ldt.c | for (i=1 ; i<NR_TASKS ; i++) { |
i | 84 | arch/i386/kernel/ldt.c | if (task[i] == current) { |
i | 88 | arch/i386/kernel/ldt.c | set_ldt_desc(gdt+(i<<1)+FIRST_LDT_ENTRY, current->ldt, LDT_ENTRIES); |
i | 89 | arch/i386/kernel/ldt.c | load_ldt(i); |
i | 188 | arch/i386/kernel/process.c | int i; |
i | 190 | arch/i386/kernel/process.c | for (i=0; i<0x10000; i++) |
i | 197 | arch/i386/kernel/process.c | int i, j; |
i | 204 | arch/i386/kernel/process.c | for (i=0; i<100; i++) { |
i | 253 | arch/i386/kernel/process.c | int i; |
i | 258 | arch/i386/kernel/process.c | for (i=1 ; i<NR_TASKS ; i++) { |
i | 259 | arch/i386/kernel/process.c | if (task[i] == current) { |
i | 260 | arch/i386/kernel/process.c | set_ldt_desc(gdt+(i<<1)+ |
i | 262 | arch/i386/kernel/process.c | load_ldt(i); |
i | 267 | arch/i386/kernel/process.c | for (i=0 ; i<8 ; i++) |
i | 268 | arch/i386/kernel/process.c | current->debugreg[i] = 0; |
i | 278 | arch/i386/kernel/process.c | int i; |
i | 310 | arch/i386/kernel/process.c | for (i = 0; i < IO_BITMAP_SIZE+1 ; i++) /* IO bitmap is actually SIZE+1 */ |
i | 311 | arch/i386/kernel/process.c | p->tss.io_bitmap[i] = ~0; |
i | 346 | arch/i386/kernel/process.c | int i; |
i | 356 | arch/i386/kernel/process.c | for (i = 0; i < 8; i++) |
i | 357 | arch/i386/kernel/process.c | dump->u_debugreg[i] = current->debugreg[i]; |
i | 39 | arch/i386/kernel/ptrace.c | int i; |
i | 41 | arch/i386/kernel/ptrace.c | for (i = 1; i < NR_TASKS; i++) { |
i | 42 | arch/i386/kernel/ptrace.c | if (task[i] != NULL && (task[i]->pid == pid)) |
i | 43 | arch/i386/kernel/ptrace.c | return task[i]; |
i | 302 | arch/i386/kernel/ptrace.c | int i; |
i | 445 | arch/i386/kernel/ptrace.c | for(i=0; i<4; i++) |
i | 446 | arch/i386/kernel/ptrace.c | if ((0x5f54 >> ((data >> (16 + 4*i)) & 0xf)) & 1) |
i | 262 | arch/i386/kernel/setup.c | int i, len = 0; |
i | 322 | arch/i386/kernel/setup.c | for ( i = 0 ; i < 32 ; i++ ) { |
i | 323 | arch/i386/kernel/setup.c | if ( CD(x86_capability) & (1 << i) ) { |
i | 325 | arch/i386/kernel/setup.c | x86_cap_flags[i]); |
i | 583 | arch/i386/kernel/smp.c | int i; |
i | 593 | arch/i386/kernel/smp.c | for (i = 0; i < NR_CPUS; i++) |
i | 594 | arch/i386/kernel/smp.c | cpu_number_map[i] = -1; |
i | 679 | arch/i386/kernel/smp.c | for(i=0;i<NR_CPUS;i++) |
i | 684 | arch/i386/kernel/smp.c | if (i == boot_cpu_id) |
i | 687 | arch/i386/kernel/smp.c | if (cpu_present_map & (1 << i)) |
i | 699 | arch/i386/kernel/smp.c | kernel_stacks[i]=stack; |
i | 702 | arch/i386/kernel/smp.c | printk("Booting processor %d stack %p: ",i,stack); /* So we set whats up */ |
i | 734 | arch/i386/kernel/smp.c | if ( apic_version[i] & 0xF0 ) |
i | 759 | arch/i386/kernel/smp.c | apic_write(APIC_ICR2, cfg|SET_APIC_DEST_FIELD(i)); /* Target chip */ |
i | 771 | arch/i386/kernel/smp.c | apic_write(APIC_ICR2, cfg|SET_APIC_DEST_FIELD(i)); /* Target chip */ |
i | 786 | arch/i386/kernel/smp.c | if ( apic_version[i] & 0xF0 ) |
i | 808 | arch/i386/kernel/smp.c | apic_write(APIC_ICR2, cfg|SET_APIC_DEST_FIELD(i)); /* Target chip */ |
i | 835 | arch/i386/kernel/smp.c | if(cpu_callin_map[0]&(1<<i)) |
i | 839 | arch/i386/kernel/smp.c | if(cpu_callin_map[0]&(1<<i)) |
i | 843 | arch/i386/kernel/smp.c | cpu_number_map[i] = cpucount; |
i | 844 | arch/i386/kernel/smp.c | cpu_logical_map[cpucount] = i; |
i | 863 | arch/i386/kernel/smp.c | if (cpu_number_map[i] == -1) |
i | 864 | arch/i386/kernel/smp.c | cpu_present_map &= ~(1 << i); |
i | 907 | arch/i386/kernel/smp.c | for(i=0;i<32;i++) |
i | 909 | arch/i386/kernel/smp.c | if(cpu_present_map&(1<<i)) |
i | 910 | arch/i386/kernel/smp.c | bogosum+=cpu_data[i].udelay_val; |
i | 1162 | arch/i386/kernel/smp.c | int i=smp_processor_id(); |
i | 1176 | arch/i386/kernel/smp.c | if(clear_bit(i,(unsigned long *)&smp_invalidate_needed)) |
i | 1178 | arch/i386/kernel/smp.c | set_bit(i, (unsigned long *)&cpu_callin_map[0]); |
i | 322 | arch/i386/kernel/time.c | int i; |
i | 330 | arch/i386/kernel/time.c | for (i = 0 ; i < 1000000 ; i++) /* may take up to 1 second... */ |
i | 333 | arch/i386/kernel/time.c | for (i = 0 ; i < 1000000 ; i++) /* must try at least 2.228 ms */ |
i | 99 | arch/i386/kernel/traps.c | int i; |
i | 123 | arch/i386/kernel/traps.c | store_TR(i); |
i | 127 | arch/i386/kernel/traps.c | current->comm, current->pid, 0xffff & i, current->kernel_stack_page); |
i | 129 | arch/i386/kernel/traps.c | for(i=0; i < kstack_depth_to_print; i++) { |
i | 132 | arch/i386/kernel/traps.c | if (i && ((i % 8) == 0)) |
i | 138 | arch/i386/kernel/traps.c | i = 1; |
i | 154 | arch/i386/kernel/traps.c | if (i && ((i % 8) == 0)) |
i | 157 | arch/i386/kernel/traps.c | i++; |
i | 161 | arch/i386/kernel/traps.c | for(i=0;i<20;i++) |
i | 162 | arch/i386/kernel/traps.c | printk("%02x ",0xff & get_seg_byte(regs->cs,(i+(char *)regs->eip))); |
i | 350 | arch/i386/kernel/traps.c | int i; |
i | 382 | arch/i386/kernel/traps.c | for (i=18;i<48;i++) |
i | 383 | arch/i386/kernel/traps.c | set_trap_gate(i,&reserved); |
i | 391 | arch/i386/kernel/traps.c | for(i=1 ; i<NR_TASKS ; i++) { |
i | 75 | arch/i386/kernel/vm86.c | int i; |
i | 94 | arch/i386/kernel/vm86.c | for (i = 0; i < 32; i++) { |
i | 301 | arch/i386/kernel/vm86.c | static void do_int(struct vm86_regs *regs, int i, unsigned char * ssp, unsigned long sp) |
i | 307 | arch/i386/kernel/vm86.c | if (is_revectored(i, ¤t->tss.vm86_info->int_revectored)) |
i | 309 | arch/i386/kernel/vm86.c | if (i==0x21 && is_revectored(AH(regs),¤t->tss.vm86_info->int21_revectored)) |
i | 311 | arch/i386/kernel/vm86.c | intr_ptr = (unsigned short *) (i << 2); |
i | 328 | arch/i386/kernel/vm86.c | return_to_32bit(regs, VM86_INTx + (i << 8)); |
i | 87 | arch/i386/math-emu/errors.c | int i; |
i | 99 | arch/i386/math-emu/errors.c | for ( i = 0; i < MAX_PRINTED_BYTES; i++ ) |
i | 110 | arch/i386/math-emu/errors.c | if ( i == MAX_PRINTED_BYTES ) |
i | 166 | arch/i386/math-emu/errors.c | for ( i = 0; i < 8; i++ ) |
i | 168 | arch/i386/math-emu/errors.c | FPU_REG *r = &st(i); |
i | 177 | arch/i386/math-emu/errors.c | i, r->sign ? '-' : '+'); |
i | 184 | arch/i386/math-emu/errors.c | printk("st(%d) %c .%04lx %04lx %04lx %04lx e%+-6ld ", i, |
i | 305 | arch/i386/math-emu/errors.c | int i, int_type; |
i | 342 | arch/i386/math-emu/errors.c | for (i=0; exception_names[i].type; i++) |
i | 343 | arch/i386/math-emu/errors.c | if ( (exception_names[i].type & n) == exception_names[i].type ) |
i | 346 | arch/i386/math-emu/errors.c | if (exception_names[i].type) |
i | 349 | arch/i386/math-emu/errors.c | printk("FP Exception: %s!\n", exception_names[i].name); |
i | 640 | arch/i386/math-emu/errors.c | void stack_underflow_i(int i) |
i | 646 | arch/i386/math-emu/errors.c | reg_move(&CONST_QNaN, &(st(i))); |
i | 656 | arch/i386/math-emu/errors.c | void stack_underflow_pop(int i) |
i | 662 | arch/i386/math-emu/errors.c | reg_move(&CONST_QNaN, &(st(i))); |
i | 123 | arch/i386/math-emu/fpu_emu.h | #define NOT_EMPTY(i) (st(i).tag != TW_Empty) |
i | 157 | arch/i386/math-emu/fpu_entry.c | int i; |
i | 158 | arch/i386/math-emu/fpu_entry.c | for ( i = 0; i < 8; i++ ) |
i | 162 | arch/i386/math-emu/fpu_entry.c | regs[i].exp = 0; |
i | 163 | arch/i386/math-emu/fpu_entry.c | regs[i].sigh = 0x80000000; |
i | 7 | arch/i386/math-emu/fpu_proto.h | extern void stack_underflow_i(int i); |
i | 8 | arch/i386/math-emu/fpu_proto.h | extern void stack_underflow_pop(int i); |
i | 1017 | arch/i386/math-emu/reg_ld_str.c | int i, precision_loss; |
i | 1044 | arch/i386/math-emu/reg_ld_str.c | for ( i = 0; i < 7; i++) |
i | 1045 | arch/i386/math-emu/reg_ld_str.c | put_fs_byte(0, (unsigned char *) d+i); /* These bytes "undefined" */ |
i | 1064 | arch/i386/math-emu/reg_ld_str.c | for ( i = 0; i < 9; i++) |
i | 1069 | arch/i386/math-emu/reg_ld_str.c | put_fs_byte(b,(unsigned char *) d+i); |
i | 1153 | arch/i386/math-emu/reg_ld_str.c | int i; |
i | 1204 | arch/i386/math-emu/reg_ld_str.c | for ( i = 0; i < 8; i++ ) |
i | 1211 | arch/i386/math-emu/reg_ld_str.c | regs[i].tag = TW_Empty; |
i | 1212 | arch/i386/math-emu/reg_ld_str.c | else if ( regs[i].tag == TW_Empty ) |
i | 1216 | arch/i386/math-emu/reg_ld_str.c | if ( regs[i].exp == EXP_BIAS - EXTENDED_Ebias ) |
i | 1218 | arch/i386/math-emu/reg_ld_str.c | if ( !(regs[i].sigl | regs[i].sigh) ) |
i | 1219 | arch/i386/math-emu/reg_ld_str.c | regs[i].tag = TW_Zero; |
i | 1221 | arch/i386/math-emu/reg_ld_str.c | regs[i].tag = TW_Valid; |
i | 1223 | arch/i386/math-emu/reg_ld_str.c | else if ( regs[i].exp == 0x7fff + EXP_BIAS - EXTENDED_Ebias ) |
i | 1225 | arch/i386/math-emu/reg_ld_str.c | if ( !((regs[i].sigh & ~0x80000000) | regs[i].sigl) ) |
i | 1226 | arch/i386/math-emu/reg_ld_str.c | regs[i].tag = TW_Infinity; |
i | 1228 | arch/i386/math-emu/reg_ld_str.c | regs[i].tag = TW_NaN; |
i | 1231 | arch/i386/math-emu/reg_ld_str.c | regs[i].tag = TW_Valid; |
i | 1243 | arch/i386/math-emu/reg_ld_str.c | int i, stnr; |
i | 1247 | arch/i386/math-emu/reg_ld_str.c | for ( i = 0; i < 8; i++ ) |
i | 1250 | arch/i386/math-emu/reg_ld_str.c | stnr = (i+top) & 7; |
i | 1252 | arch/i386/math-emu/reg_ld_str.c | reg_load_extended((long double *)(s+i*10), ®s[stnr]); |
i | 1264 | arch/i386/math-emu/reg_ld_str.c | int i; |
i | 1266 | arch/i386/math-emu/reg_ld_str.c | for ( i = 7; i >= 0; i-- ) |
i | 1268 | arch/i386/math-emu/reg_ld_str.c | switch ( tag = regs[i].tag ) |
i | 1271 | arch/i386/math-emu/reg_ld_str.c | if ( regs[i].exp <= (EXP_BIAS - EXTENDED_Ebias) ) |
i | 1361 | arch/i386/math-emu/reg_ld_str.c | int i; |
i | 1367 | arch/i386/math-emu/reg_ld_str.c | for ( i = 0; i < 8; i++ ) |
i | 1368 | arch/i386/math-emu/reg_ld_str.c | write_to_extended(®s[(top + i) & 7], d + 10 * i); |
i | 78 | arch/i386/mm/init.c | int i,free = 0,total = 0,reserved = 0; |
i | 84 | arch/i386/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 85 | arch/i386/mm/init.c | while (i-- > 0) { |
i | 87 | arch/i386/mm/init.c | if (mem_map[i].reserved) |
i | 89 | arch/i386/mm/init.c | else if (!mem_map[i].count) |
i | 92 | arch/i386/mm/init.c | shared += mem_map[i].count-1; |
i | 282 | arch/i386/mm/init.c | int i; |
i | 284 | arch/i386/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 289 | arch/i386/mm/init.c | while (i-- > 0) { |
i | 290 | arch/i386/mm/init.c | if (mem_map[i].reserved) |
i | 293 | arch/i386/mm/init.c | if (!mem_map[i].count) |
i | 295 | arch/i386/mm/init.c | val->sharedram += mem_map[i].count-1; |
i | 141 | arch/mips/kernel/gdb-stub.c | int i; |
i | 194 | arch/mips/kernel/gdb-stub.c | for (i=3; i <= count; i++) |
i | 195 | arch/mips/kernel/gdb-stub.c | buffer[i-3] = buffer[i]; |
i | 277 | arch/mips/kernel/gdb-stub.c | int i; |
i | 282 | arch/mips/kernel/gdb-stub.c | for (i=0; i<count; i++) |
i | 115 | arch/mips/kernel/irq.c | int i, len = 0; |
i | 118 | arch/mips/kernel/irq.c | for (i = 0 ; i < 16 ; i++) { |
i | 119 | arch/mips/kernel/irq.c | action = *(i + irq_action); |
i | 123 | arch/mips/kernel/irq.c | i, kstat.interrupts[i], |
i | 310 | arch/mips/kernel/irq.c | unsigned int i, irqs = 0, irqmask; |
i | 314 | arch/mips/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 315 | arch/mips/kernel/irq.c | if (!request_irq(i, no_action, SA_PROBE, "probe", NULL)) { |
i | 316 | arch/mips/kernel/irq.c | enable_irq(i); |
i | 317 | arch/mips/kernel/irq.c | irqs |= (1 << i); |
i | 326 | arch/mips/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 327 | arch/mips/kernel/irq.c | if (irqs & (1 << i) & irqmask) { |
i | 328 | arch/mips/kernel/irq.c | irqs ^= (1 << i); |
i | 329 | arch/mips/kernel/irq.c | free_irq(i, NULL); |
i | 340 | arch/mips/kernel/irq.c | unsigned int i, irqmask; |
i | 343 | arch/mips/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 344 | arch/mips/kernel/irq.c | if (irqs & (1 << i)) { |
i | 345 | arch/mips/kernel/irq.c | free_irq(i, NULL); |
i | 354 | arch/mips/kernel/irq.c | i = ffz(~irqs); |
i | 355 | arch/mips/kernel/irq.c | if (irqs != (irqs & (1 << i))) |
i | 356 | arch/mips/kernel/irq.c | i = -i; |
i | 357 | arch/mips/kernel/irq.c | return i; |
i | 362 | arch/mips/kernel/irq.c | int i; |
i | 391 | arch/mips/kernel/irq.c | for (i = 0; i < 16 ; i++) |
i | 392 | arch/mips/kernel/irq.c | set_int_vector(i, bad_interrupt); |
i | 395 | arch/mips/kernel/irq.c | for (i = 0; i < 32; i++) { |
i | 396 | arch/mips/kernel/irq.c | bh_base[i].routine = NULL; |
i | 397 | arch/mips/kernel/irq.c | bh_base[i].data = NULL; |
i | 77 | arch/mips/kernel/jazzdma.c | int i; |
i | 118 | arch/mips/kernel/jazzdma.c | for (i=first; i<last; i++) |
i | 120 | arch/mips/kernel/jazzdma.c | entry[i].frame = frame; |
i | 121 | arch/mips/kernel/jazzdma.c | entry[i].owner = laddr; |
i | 138 | arch/mips/kernel/jazzdma.c | for (i=first; i<last; i++) |
i | 139 | arch/mips/kernel/jazzdma.c | printk("%08x ",i<<12); |
i | 141 | arch/mips/kernel/jazzdma.c | for (i=first; i<last; i++) |
i | 142 | arch/mips/kernel/jazzdma.c | printk("%08x ",entry[i].frame); |
i | 144 | arch/mips/kernel/jazzdma.c | for (i=first; i<last; i++) |
i | 145 | arch/mips/kernel/jazzdma.c | printk("%08x ",entry[i].owner); |
i | 160 | arch/mips/kernel/jazzdma.c | int i; |
i | 162 | arch/mips/kernel/jazzdma.c | i = laddr >> 12; |
i | 164 | arch/mips/kernel/jazzdma.c | if (pgtbl[i].owner != laddr) |
i | 171 | arch/mips/kernel/jazzdma.c | while (pgtbl[i].owner == laddr && i < VDMA_PGTBL_ENTRIES) |
i | 173 | arch/mips/kernel/jazzdma.c | pgtbl[i].owner = VDMA_PAGE_EMPTY; |
i | 174 | arch/mips/kernel/jazzdma.c | i++; |
i | 179 | arch/mips/kernel/jazzdma.c | i-(laddr>>12),laddr); |
i | 239 | arch/mips/kernel/jazzdma.c | int i; |
i | 243 | arch/mips/kernel/jazzdma.c | for (i=first; i<first+pages; i++) |
i | 244 | arch/mips/kernel/jazzdma.c | printk("%08x ",i<<12); |
i | 246 | arch/mips/kernel/jazzdma.c | for (i=first; i<first+pages; i++) |
i | 247 | arch/mips/kernel/jazzdma.c | printk("%08x ",pgtbl[i].frame); |
i | 249 | arch/mips/kernel/jazzdma.c | for (i=first; i<first+pages; i++) |
i | 250 | arch/mips/kernel/jazzdma.c | printk("%08x ",pgtbl[i].owner); |
i | 264 | arch/mips/kernel/jazzdma.c | int i; |
i | 270 | arch/mips/kernel/jazzdma.c | for (i=0; i<VDMA_PGTBL_ENTRIES; i++) |
i | 272 | arch/mips/kernel/jazzdma.c | if (pgtbl[i].frame == frame) |
i | 276 | arch/mips/kernel/jazzdma.c | if (i == VDMA_PGTBL_ENTRIES) |
i | 279 | arch/mips/kernel/jazzdma.c | return (i<<12) + (paddr & (VDMA_PAGESIZE-1)); |
i | 300 | arch/mips/kernel/jazzdma.c | int i; |
i | 304 | arch/mips/kernel/jazzdma.c | for (i=0; i<VDMA_PGTBL_ENTRIES; i++) |
i | 306 | arch/mips/kernel/jazzdma.c | pgtbl[i].frame = paddr; |
i | 307 | arch/mips/kernel/jazzdma.c | pgtbl[i].owner = VDMA_PAGE_EMPTY; |
i | 319 | arch/mips/kernel/jazzdma.c | int i; |
i | 338 | arch/mips/kernel/jazzdma.c | for (i=0; i<8; i++) |
i | 340 | arch/mips/kernel/jazzdma.c | (unsigned)r4030_read_reg32(JAZZ_R4030_CHNL_MODE+(i<<5))); |
i | 343 | arch/mips/kernel/jazzdma.c | for (i=0; i<8; i++) |
i | 345 | arch/mips/kernel/jazzdma.c | (unsigned)r4030_read_reg32(JAZZ_R4030_CHNL_ENABLE+(i<<5))); |
i | 43 | arch/mips/kernel/process.c | int i; |
i | 45 | arch/mips/kernel/process.c | for (i=0; i<0x10000; i++) |
i | 56 | arch/mips/kernel/process.c | int i, j; |
i | 60 | arch/mips/kernel/process.c | for (i=0; i<100; i++) { |
i | 39 | arch/mips/kernel/ptrace.c | int i; |
i | 41 | arch/mips/kernel/ptrace.c | for (i = 1; i < NR_TASKS; i++) { |
i | 42 | arch/mips/kernel/ptrace.c | if (task[i] != NULL && (task[i]->pid == pid)) |
i | 43 | arch/mips/kernel/ptrace.c | return task[i]; |
i | 283 | arch/mips/kernel/ptrace.c | int i; |
i | 427 | arch/mips/kernel/ptrace.c | for(i=0; i<4; i++) |
i | 428 | arch/mips/kernel/ptrace.c | if ((0x5f54 >> ((data >> (16 + 4*i)) & 0xf)) & 1) |
i | 245 | arch/mips/kernel/time.c | int i; |
i | 253 | arch/mips/kernel/time.c | for (i = 0 ; i < 1000000 ; i++) /* may take up to 1 second... */ |
i | 256 | arch/mips/kernel/time.c | for (i = 0 ; i < 1000000 ; i++) /* must try at least 2.228 ms */ |
i | 85 | arch/mips/kernel/traps.c | int i; |
i | 108 | arch/mips/kernel/traps.c | for(i=0;i<5;i++) |
i | 111 | arch/mips/kernel/traps.c | for(i=0; i < kstack_depth_to_print; i++) { |
i | 114 | arch/mips/kernel/traps.c | if (i && ((i % 8) == 0)) |
i | 120 | arch/mips/kernel/traps.c | i = 1; |
i | 136 | arch/mips/kernel/traps.c | if (i && ((i % 8) == 0)) |
i | 139 | arch/mips/kernel/traps.c | i++; |
i | 149 | arch/mips/kernel/traps.c | for(i=0;i<5;i++) |
i | 182 | arch/mips/kernel/traps.c | int i; |
i | 190 | arch/mips/kernel/traps.c | for(i=0; i<NR_TASKS;i++) |
i | 191 | arch/mips/kernel/traps.c | if(task[i] && task[i]->pid >= 2) |
i | 193 | arch/mips/kernel/traps.c | printk("Process %d\n", task[i]->pid); |
i | 194 | arch/mips/kernel/traps.c | dump_list_process(task[i], pc); |
i | 254 | arch/mips/kernel/traps.c | int i; |
i | 256 | arch/mips/kernel/traps.c | for(i=0; i<NR_TASKS;i++) |
i | 257 | arch/mips/kernel/traps.c | if(task[i] && task[i]->pid >= 2) |
i | 259 | arch/mips/kernel/traps.c | printk("Process %d\n", task[i]->pid); |
i | 260 | arch/mips/kernel/traps.c | dump_list_process(task[i], 0x7ffff000); |
i | 323 | arch/mips/kernel/traps.c | unsigned long i; |
i | 332 | arch/mips/kernel/traps.c | for (i=0;i<=31;i++) |
i | 333 | arch/mips/kernel/traps.c | set_except_vector(i, handle_reserved); |
i | 395 | arch/mips/kernel/traps.c | i = read_32bit_cp0_register(CP0_CONFIG); |
i | 396 | arch/mips/kernel/traps.c | i = (i >> 26) & 7; |
i | 397 | arch/mips/kernel/traps.c | page_colour_mask = 1 << (12 + i); |
i | 200 | arch/mips/mm/init.c | int i, free = 0, total = 0, reserved = 0; |
i | 206 | arch/mips/mm/init.c | i = (high_memory - PAGE_OFFSET) >> PAGE_SHIFT; |
i | 207 | arch/mips/mm/init.c | while (i-- > 0) { |
i | 209 | arch/mips/mm/init.c | if (mem_map[i].reserved) |
i | 211 | arch/mips/mm/init.c | else if (!mem_map[i].count) |
i | 214 | arch/mips/mm/init.c | shared += mem_map[i].count-1; |
i | 286 | arch/mips/mm/init.c | int i; |
i | 288 | arch/mips/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 293 | arch/mips/mm/init.c | while (i-- > 0) { |
i | 294 | arch/mips/mm/init.c | if (mem_map[i].reserved) |
i | 297 | arch/mips/mm/init.c | if (!mem_map[i].count) |
i | 299 | arch/mips/mm/init.c | val->sharedram += mem_map[i].count-1; |
i | 21 | arch/ppc/boot/cortstrip.c | int i, n, skip; |
i | 51 | arch/ppc/boot/cortstrip.c | i = lseek(fd, skip, SEEK_SET); |
i | 52 | arch/ppc/boot/cortstrip.c | printf("lseek'd %d bytes\n", i); |
i | 53 | arch/ppc/boot/cortstrip.c | if ( i == -1 ) |
i | 61 | arch/ppc/boot/cortstrip.c | i = write(fdo, data, n); |
i | 62 | arch/ppc/boot/cortstrip.c | printf("Wrote %d bytes\n", i); |
i | 16 | arch/ppc/kernel/cortstrip.c | int i, n, skip; |
i | 42 | arch/ppc/kernel/cortstrip.c | i = lseek(fd, skip, SEEK_SET); |
i | 43 | arch/ppc/kernel/cortstrip.c | printf("lseek'd %d bytes\n", i); |
i | 44 | arch/ppc/kernel/cortstrip.c | if ( i == -1 ) |
i | 52 | arch/ppc/kernel/cortstrip.c | i = write(fdo, data, n); |
i | 53 | arch/ppc/kernel/cortstrip.c | printf("Wrote %d bytes\n", i); |
i | 87 | arch/ppc/kernel/irq.c | int i, len = 0; |
i | 90 | arch/ppc/kernel/irq.c | for (i = 0 ; i < 16 ; i++) { |
i | 91 | arch/ppc/kernel/irq.c | action = *(i + irq_action); |
i | 95 | arch/ppc/kernel/irq.c | i, kstat.interrupts[i], |
i | 344 | arch/ppc/kernel/irq.c | unsigned int i, irqs = 0, irqmask; |
i | 348 | arch/ppc/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 349 | arch/ppc/kernel/irq.c | if (!request_irq(i, no_action, SA_PROBE, "probe", NULL)) { |
i | 350 | arch/ppc/kernel/irq.c | enable_irq(i); |
i | 351 | arch/ppc/kernel/irq.c | irqs |= (1 << i); |
i | 360 | arch/ppc/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 361 | arch/ppc/kernel/irq.c | if (irqs & (1 << i) & irqmask) { |
i | 362 | arch/ppc/kernel/irq.c | irqs ^= (1 << i); |
i | 363 | arch/ppc/kernel/irq.c | free_irq(i, NULL); |
i | 374 | arch/ppc/kernel/irq.c | unsigned int i, irqmask; |
i | 377 | arch/ppc/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 378 | arch/ppc/kernel/irq.c | if (irqs & (1 << i)) { |
i | 379 | arch/ppc/kernel/irq.c | free_irq(i, NULL); |
i | 388 | arch/ppc/kernel/irq.c | i = ffz(~irqs); |
i | 389 | arch/ppc/kernel/irq.c | if (irqs != (irqs & (1 << i))) |
i | 390 | arch/ppc/kernel/irq.c | i = -i; |
i | 391 | arch/ppc/kernel/irq.c | return i; |
i | 403 | arch/ppc/kernel/irq.c | int i; |
i | 8 | arch/ppc/kernel/mk_ramdisk.c | int i, cnt, pos; |
i | 39 | arch/ppc/kernel/mk_ramdisk.c | for (i = 0; i < sizeof(buf); i += 4) |
i | 50 | arch/ppc/kernel/mk_ramdisk.c | fprintf(out, " # %x \n", pos+i-12); |
i | 17 | arch/ppc/kernel/mkboot.c | int i, n, skip; |
i | 47 | arch/ppc/kernel/mkboot.c | i = lseek(fd, skip, SEEK_SET); |
i | 48 | arch/ppc/kernel/mkboot.c | printf("lseek'd %d bytes\n", i); |
i | 49 | arch/ppc/kernel/mkboot.c | if ( i == -1 ) |
i | 57 | arch/ppc/kernel/mkboot.c | i = write(fdo, data, n); |
i | 58 | arch/ppc/kernel/mkboot.c | printf("Wrote %d bytes\n", i); |
i | 21 | arch/ppc/kernel/mmu.h | unsigned long i:1; /* Cache inhibited */ |
i | 61 | arch/ppc/kernel/mmu.h | unsigned long i:1; /* Cache inhibit */ |
i | 101 | arch/ppc/kernel/process.c | int i; |
i | 109 | arch/ppc/kernel/process.c | for (i = 0; i < 8; i++) |
i | 111 | arch/ppc/kernel/process.c | segs[i].ks = 0; |
i | 112 | arch/ppc/kernel/process.c | segs[i].kp = 1; |
i | 113 | arch/ppc/kernel/process.c | segs[i].vsid = i | (nr << 4); |
i | 116 | arch/ppc/kernel/process.c | for (i = 8; i < 16; i++) |
i | 118 | arch/ppc/kernel/process.c | segs[i].ks = 0; |
i | 119 | arch/ppc/kernel/process.c | segs[i].kp = 1; |
i | 120 | arch/ppc/kernel/process.c | segs[i].vsid = i; |
i | 170 | arch/ppc/kernel/process.c | int i; |
i | 173 | arch/ppc/kernel/process.c | for ( i = 0 ; i <= 0x400 ; i++) |
i | 175 | arch/ppc/kernel/process.c | printk("going to do kmalloc(%d)\n",i); |
i | 176 | arch/ppc/kernel/process.c | a = kmalloc(i,GFP_KERNEL); |
i | 177 | arch/ppc/kernel/process.c | a = kmalloc(i,GFP_KERNEL); |
i | 212 | arch/ppc/kernel/process.c | int i; |
i | 682 | arch/ppc/kernel/raw_printf.c | i = (d->cp - base) / COL; |
i | 687 | arch/ppc/kernel/raw_printf.c | fillw(d->color|(' '<<8), base + i * COL, COL); |
i | 691 | arch/ppc/kernel/raw_printf.c | i = (d->cp - base) / COL; |
i | 692 | arch/ppc/kernel/raw_printf.c | pp = base + i * COL; |
i | 693 | arch/ppc/kernel/raw_printf.c | bcopy(pp + COL, pp, (ROW-1 - i)*COL*CHR); |
i | 1094 | arch/ppc/kernel/raw_printf.c | int i, c; |
i | 1108 | arch/ppc/kernel/raw_printf.c | for (i = 0; i < 16; i++) |
i | 1110 | arch/ppc/kernel/raw_printf.c | if (i < s) |
i | 1112 | arch/ppc/kernel/raw_printf.c | _printk("%02X", p[i] & 0xFF); |
i | 1117 | arch/ppc/kernel/raw_printf.c | if ((i % 2) == 1) _printk(" "); |
i | 1118 | arch/ppc/kernel/raw_printf.c | if ((i % 8) == 7) _printk(" "); |
i | 1121 | arch/ppc/kernel/raw_printf.c | for (i = 0; i < 16; i++) |
i | 1123 | arch/ppc/kernel/raw_printf.c | if (i < s) |
i | 1125 | arch/ppc/kernel/raw_printf.c | c = p[i] & 0xFF; |
i | 1147 | arch/ppc/kernel/raw_printf.c | int i, c; |
i | 1161 | arch/ppc/kernel/raw_printf.c | for (i = 0; i < 16; i++) |
i | 1163 | arch/ppc/kernel/raw_printf.c | if (i < s) |
i | 1165 | arch/ppc/kernel/raw_printf.c | printk("%02X", p[i] & 0xFF); |
i | 1170 | arch/ppc/kernel/raw_printf.c | if ((i % 2) == 1) printk(" "); |
i | 1171 | arch/ppc/kernel/raw_printf.c | if ((i % 8) == 7) printk(" "); |
i | 1174 | arch/ppc/kernel/raw_printf.c | for (i = 0; i < 16; i++) |
i | 1176 | arch/ppc/kernel/raw_printf.c | if (i < s) |
i | 1178 | arch/ppc/kernel/raw_printf.c | c = p[i] & 0xFF; |
i | 96 | arch/ppc/kernel/traps.c | int i; |
i | 100 | arch/ppc/kernel/traps.c | for (i = 0; i < 32; i++) |
i | 102 | arch/ppc/kernel/traps.c | if ((i % 8) == 0) |
i | 104 | arch/ppc/kernel/traps.c | printk("GPR%02d: ", i); |
i | 106 | arch/ppc/kernel/traps.c | printk("%08X ", regs->gpr[i]); |
i | 107 | arch/ppc/kernel/traps.c | if ((i % 8) == 7) |
i | 127 | arch/ppc/mm/init.c | int i,free = 0,total = 0,reserved = 0; |
i | 133 | arch/ppc/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 134 | arch/ppc/mm/init.c | while (i-- > 0) { |
i | 136 | arch/ppc/mm/init.c | if (mem_map[i].reserved) |
i | 138 | arch/ppc/mm/init.c | else if (!mem_map[i].count) |
i | 141 | arch/ppc/mm/init.c | shared += mem_map[i].count-1; |
i | 265 | arch/ppc/mm/init.c | int i; |
i | 267 | arch/ppc/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 272 | arch/ppc/mm/init.c | while (i-- > 0) { |
i | 273 | arch/ppc/mm/init.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 276 | arch/ppc/mm/init.c | if (!mem_map[i]) |
i | 278 | arch/ppc/mm/init.c | val->sharedram += mem_map[i]-1; |
i | 465 | arch/ppc/mm/init.c | int i, p; |
i | 474 | arch/ppc/mm/init.c | for (i = 0; i < MAX_MMU_PAGES; i++) |
i | 485 | arch/ppc/mm/init.c | for (i = 0; i < 16; i++) |
i | 487 | arch/ppc/mm/init.c | segs[i].ks = 0; |
i | 488 | arch/ppc/mm/init.c | segs[i].kp = 1; |
i | 489 | arch/ppc/mm/init.c | segs[i].vsid = i; |
i | 493 | arch/ppc/mm/init.c | for (i = (int)_start; i <= (int)_end; i += MMU_PAGE_SIZE) |
i | 496 | arch/ppc/mm/init.c | for (i = (int)_start; i <= (int)Hash; i += MMU_PAGE_SIZE) |
i | 499 | arch/ppc/mm/init.c | MMU_map_page(&init_task.tss, i, i & 0x00FFFFFF, PAGE_KERNEL); |
i | 502 | arch/ppc/mm/init.c | for (i = (int)Hash; i < (int)Hash+Hash_size; i += MMU_PAGE_SIZE) |
i | 504 | arch/ppc/mm/init.c | MMU_map_page(&init_task.tss, i, i & 0x00FFFFFF, PAGE_KERNEL); |
i | 558 | arch/ppc/mm/init.c | int hash, page_index, segment, i, h, _h, api, vsid, perms; |
i | 595 | arch/ppc/mm/init.c | for (i = 0; i < 8; i++, _pte++) |
i | 621 | arch/ppc/mm/init.c | for (i = 0; i < 8; i++, _pte++) |
i | 627 | arch/ppc/mm/init.c | for (i = 0; i < 8; i++, _pte++) |
i | 633 | arch/ppc/mm/init.c | for (i = 0; i < NUM_MAPPINGS; i++) |
i | 666 | arch/ppc/mm/init.c | slot->i = 0; |
i | 723 | arch/ppc/mm/init.c | int i, j, flags; |
i | 733 | arch/ppc/mm/init.c | for (i = 0 ; (i < PTRS_PER_PGD) && (address < KERNELBASE); i++) |
i | 21 | arch/ppc/mm/mmu.h | unsigned long i:1; /* Cache inhibited */ |
i | 61 | arch/ppc/mm/mmu.h | unsigned long i:1; /* Cache inhibit */ |
i | 122 | arch/sparc/kernel/cpu.c | int i, cpuid; |
i | 131 | arch/sparc/kernel/cpu.c | for(i = 0; i<NSPARCCHIPS; i++) { |
i | 132 | arch/sparc/kernel/cpu.c | if(linux_sparc_chips[i].psr_impl == psr_impl) |
i | 133 | arch/sparc/kernel/cpu.c | if(linux_sparc_chips[i].psr_vers == psr_vers) { |
i | 134 | arch/sparc/kernel/cpu.c | sparc_cpu_type[cpuid] = linux_sparc_chips[i].cpu_name; |
i | 139 | arch/sparc/kernel/cpu.c | if(i==NSPARCCHIPS) |
i | 143 | arch/sparc/kernel/cpu.c | for(i = 0; i<NSPARCFPU; i++) { |
i | 144 | arch/sparc/kernel/cpu.c | if(linux_sparc_fpu[i].psr_impl == psr_impl) |
i | 145 | arch/sparc/kernel/cpu.c | if(linux_sparc_fpu[i].fp_vers == fpu_vers) { |
i | 146 | arch/sparc/kernel/cpu.c | sparc_fpu_type[cpuid] = linux_sparc_fpu[i].fp_name; |
i | 151 | arch/sparc/kernel/cpu.c | if(i == NSPARCFPU) { |
i | 51 | arch/sparc/kernel/idprom.c | int i; |
i | 53 | arch/sparc/kernel/idprom.c | for(i = 0; i<NUM_SUN_MACHINES; i++) { |
i | 54 | arch/sparc/kernel/idprom.c | if(Sun_Machines[i].id_machtype == machtyp) { |
i | 56 | arch/sparc/kernel/idprom.c | printk("TYPE: %s\n", Sun_Machines[i].name); |
i | 66 | arch/sparc/kernel/idprom.c | if(i == NUM_SUN_MACHINES) |
i | 169 | arch/sparc/kernel/irq.c | int i, len = 0; |
i | 172 | arch/sparc/kernel/irq.c | for (i = 0 ; i < 16 ; i++) { |
i | 173 | arch/sparc/kernel/irq.c | action = *(i + irq_action); |
i | 177 | arch/sparc/kernel/irq.c | i, kstat.interrupts[i], |
i | 233 | arch/sparc/kernel/irq.c | int i; |
i | 240 | arch/sparc/kernel/irq.c | for (i = 0; i < 16; i++) |
i | 242 | arch/sparc/kernel/irq.c | prom_printf("[%s:%d:0x%x] ", action->name, (int) i, |
i | 156 | arch/sparc/kernel/probe.c | int i, cpuid; |
i | 165 | arch/sparc/kernel/probe.c | for(i = 0; i<NSPARCCHIPS; i++) { |
i | 166 | arch/sparc/kernel/probe.c | if(linux_sparc_chips[i].psr_impl == psr_impl) |
i | 167 | arch/sparc/kernel/probe.c | if(linux_sparc_chips[i].psr_vers == psr_vers) { |
i | 168 | arch/sparc/kernel/probe.c | sparc_cpu_type[cpuid] = linux_sparc_chips[i].cpu_name; |
i | 173 | arch/sparc/kernel/probe.c | if(i==NSPARCCHIPS) |
i | 177 | arch/sparc/kernel/probe.c | for(i = 0; i<NSPARCFPU; i++) { |
i | 178 | arch/sparc/kernel/probe.c | if(linux_sparc_fpu[i].psr_impl == psr_impl) |
i | 179 | arch/sparc/kernel/probe.c | if(linux_sparc_fpu[i].fp_vers == fpu_vers) { |
i | 180 | arch/sparc/kernel/probe.c | sparc_fpu_type[cpuid] = linux_sparc_fpu[i].fp_name; |
i | 185 | arch/sparc/kernel/probe.c | if(i == NSPARCFPU) { |
i | 420 | arch/sparc/kernel/probe.c | int nd, i, prom_node_cpu, thismid; |
i | 452 | arch/sparc/kernel/probe.c | for(i=0; i<cpu_ctr; i++) { |
i | 453 | arch/sparc/kernel/probe.c | prom_getstring(cpu_nds[i], "name", node_str, sizeof(node_str)); |
i | 455 | arch/sparc/kernel/probe.c | printk("cpu%d: %s \n", i, node_str); |
i | 114 | arch/sparc/kernel/setup.c | int i; |
i | 115 | arch/sparc/kernel/setup.c | for(i=0; i<strlen(commands); i++) { |
i | 116 | arch/sparc/kernel/setup.c | if(commands[i]=='-') { |
i | 117 | arch/sparc/kernel/setup.c | switch(commands[i+1]) { |
i | 130 | arch/sparc/kernel/setup.c | commands[i+1]); |
i | 134 | arch/sparc/kernel/setup.c | if(commands[i]=='k' && commands[i+1]=='g' && |
i | 135 | arch/sparc/kernel/setup.c | commands[i+2]=='d' && commands[i+3]=='b' && |
i | 136 | arch/sparc/kernel/setup.c | commands[i+4]=='=' && commands[i+5]=='t' && |
i | 137 | arch/sparc/kernel/setup.c | commands[i+6]=='t' && commands[i+7]=='y') { |
i | 139 | arch/sparc/kernel/setup.c | "session\n", commands[i+8]); |
i | 141 | arch/sparc/kernel/setup.c | if(commands[i+8]=='a') |
i | 143 | arch/sparc/kernel/setup.c | else if(commands[i+8]=='b') |
i | 180 | arch/sparc/kernel/setup.c | int total, i, panic_stuff[2]; |
i | 246 | arch/sparc/kernel/setup.c | for(i=0; sp_banks[i].num_bytes != 0; i++) { |
i | 248 | arch/sparc/kernel/setup.c | printk("Bank %d: base 0x%x bytes %d\n", i, |
i | 249 | arch/sparc/kernel/setup.c | (unsigned int) sp_banks[i].base_addr, |
i | 250 | arch/sparc/kernel/setup.c | (int) sp_banks[i].num_bytes); |
i | 252 | arch/sparc/kernel/setup.c | end_of_phys_memory = sp_banks[i].base_addr + sp_banks[i].num_bytes; |
i | 203 | arch/sparc/kernel/smp.c | int i=smp_processor_id(); |
i | 217 | arch/sparc/kernel/smp.c | if(clear_bit(i,(unsigned long *)&smp_invalidate_needed)) |
i | 219 | arch/sparc/kernel/smp.c | set_bit(i, (unsigned long *)&cpu_callin_map[0]); |
i | 182 | arch/sparc/kernel/sparc-stub.c | int i, flags; |
i | 185 | arch/sparc/kernel/sparc-stub.c | for(i=0; i < 256; i++) |
i | 186 | arch/sparc/kernel/sparc-stub.c | copy_ttentry(&sparc_ttable[i], &kgdb_savettable[i]); |
i | 229 | arch/sparc/kernel/sparc-stub.c | int i; |
i | 270 | arch/sparc/kernel/sparc-stub.c | for (i=3; i <= count; i++) |
i | 271 | arch/sparc/kernel/sparc-stub.c | buffer[i-3] = buffer[i]; |
i | 335 | arch/sparc/kernel/sparc-stub.c | int i; |
i | 338 | arch/sparc/kernel/sparc-stub.c | for (i=0; i<count; i++) { |
i | 46 | arch/sparc/kernel/traps.c | unsigned long i; |
i | 55 | arch/sparc/kernel/traps.c | for(i = -3; i < 6; i++) |
i | 56 | arch/sparc/kernel/traps.c | printk("%c%08lx%c",i?' ':'<',pc[i],i?' ':'>'); |
i | 263 | arch/sparc/kernel/traps.c | int i; |
i | 285 | arch/sparc/kernel/traps.c | for(i=0; i<linux_num_cpus; i++) { |
i | 286 | arch/sparc/kernel/traps.c | if((linux_cpus[i].mid & (~8)) != 0x0) { |
i | 288 | arch/sparc/kernel/traps.c | cpuid = (linux_cpus[i].mid & (~8)); |
i | 290 | arch/sparc/kernel/traps.c | thiscpus_mid = linux_cpus[i].mid; |
i | 293 | arch/sparc/kernel/traps.c | prom_startcpu(linux_cpus[i].prom_node, &ctx_reg, 0x0, |
i | 295 | arch/sparc/kernel/traps.c | prom_printf("Waiting for cpu %d to start up...\n", i); |
i | 21 | arch/sparc/kernel/windows.c | int i; |
i | 23 | arch/sparc/kernel/windows.c | for(i = first_win; i < last_win; i++) { |
i | 24 | arch/sparc/kernel/windows.c | tp->rwbuf_stkptrs[i] = tp->rwbuf_stkptrs[i+1]; |
i | 25 | arch/sparc/kernel/windows.c | memcpy(&tp->reg_window[i], &tp->reg_window[i+1], sizeof(struct reg_window)); |
i | 53 | arch/sparc/mm/fault.c | register int i; |
i | 55 | arch/sparc/mm/fault.c | i = 0; |
i | 64 | arch/sparc/mm/fault.c | i++; |
i | 68 | arch/sparc/mm/fault.c | if (i >= SPARC_PHYS_BANKS-1) { |
i | 72 | arch/sparc/mm/fault.c | i = SPARC_PHYS_BANKS-1; |
i | 76 | arch/sparc/mm/fault.c | sp_banks[i].base_addr = (unsigned long) mlist->start_adr; |
i | 77 | arch/sparc/mm/fault.c | sp_banks[i].num_bytes = mlist->num_bytes; |
i | 80 | arch/sparc/mm/fault.c | i++; |
i | 81 | arch/sparc/mm/fault.c | sp_banks[i].base_addr = 0xdeadbeef; |
i | 82 | arch/sparc/mm/fault.c | sp_banks[i].num_bytes = 0; |
i | 58 | arch/sparc/mm/init.c | int i,free = 0,total = 0,reserved = 0; |
i | 64 | arch/sparc/mm/init.c | i = MAP_NR(high_memory); |
i | 65 | arch/sparc/mm/init.c | while (i-- > 0) { |
i | 67 | arch/sparc/mm/init.c | if (mem_map[i].reserved) |
i | 69 | arch/sparc/mm/init.c | else if (!mem_map[i].count) |
i | 72 | arch/sparc/mm/init.c | shared += mem_map[i].count-1; |
i | 240 | arch/sparc/mm/init.c | int i; |
i | 242 | arch/sparc/mm/init.c | i = MAP_NR(high_memory); |
i | 247 | arch/sparc/mm/init.c | while (i-- > 0) { |
i | 248 | arch/sparc/mm/init.c | if (mem_map[i].reserved) |
i | 251 | arch/sparc/mm/init.c | if (!mem_map[i].count) |
i | 253 | arch/sparc/mm/init.c | val->sharedram += mem_map[i].count-1; |
i | 1053 | arch/sparc/mm/srmmu.c | int i, cpunode; |
i | 1085 | arch/sparc/mm/srmmu.c | for(i = 0; i < num_contexts; i++) |
i | 1086 | arch/sparc/mm/srmmu.c | srmmu_ctxd_set(&srmmu_context_table[i], swapper_pg_dir); |
i | 232 | arch/sparc/mm/sun4c.c | int i; |
i | 234 | arch/sparc/mm/sun4c.c | for(i=0; i < 256; i++) { |
i | 235 | arch/sparc/mm/sun4c.c | mmu_entry_pool[i].pseg = i; |
i | 236 | arch/sparc/mm/sun4c.c | mmu_entry_pool[i].next = 0; |
i | 237 | arch/sparc/mm/sun4c.c | mmu_entry_pool[i].prev = 0; |
i | 238 | arch/sparc/mm/sun4c.c | mmu_entry_pool[i].vaddr = 0; |
i | 239 | arch/sparc/mm/sun4c.c | mmu_entry_pool[i].locked = 0; |
i | 283 | arch/sparc/mm/sun4c.c | int i, ctx; |
i | 286 | arch/sparc/mm/sun4c.c | for(i=0; i < invalid_segment; i++) |
i | 287 | arch/sparc/mm/sun4c.c | if(!mmu_entry_pool[i].locked) |
i | 289 | arch/sparc/mm/sun4c.c | mmu_entry_pool[i].locked = 1; |
i | 290 | arch/sparc/mm/sun4c.c | sun4c_init_clean_segmap(i); |
i | 292 | arch/sparc/mm/sun4c.c | prom_putsegment(ctx, start, mmu_entry_pool[i].pseg); |
i | 308 | arch/sparc/mm/sun4c.c | int i; |
i | 309 | arch/sparc/mm/sun4c.c | for(i=0; i<16; i++) { |
i | 310 | arch/sparc/mm/sun4c.c | sun4c_context_ring[i].ringhd.next = |
i | 311 | arch/sparc/mm/sun4c.c | sun4c_context_ring[i].ringhd.prev = |
i | 312 | arch/sparc/mm/sun4c.c | &sun4c_context_ring[i].ringhd; |
i | 313 | arch/sparc/mm/sun4c.c | sun4c_context_ring[i].num_entries = 0; |
i | 385 | arch/sparc/mm/sun4c.c | int i; |
i | 388 | arch/sparc/mm/sun4c.c | for(i=0; i < invalid_segment; i++) |
i | 389 | arch/sparc/mm/sun4c.c | if(!mmu_entry_pool[i].locked) |
i | 391 | arch/sparc/mm/sun4c.c | mmu_entry_pool[i].locked = 1; |
i | 392 | arch/sparc/mm/sun4c.c | sun4c_init_clean_segmap(i); |
i | 393 | arch/sparc/mm/sun4c.c | add_ring(&sun4c_kfree_ring, &mmu_entry_pool[i]); |
i | 400 | arch/sparc/mm/sun4c.c | int i; |
i | 402 | arch/sparc/mm/sun4c.c | for(i=0; i < invalid_segment; i++) { |
i | 403 | arch/sparc/mm/sun4c.c | if(mmu_entry_pool[i].locked) |
i | 405 | arch/sparc/mm/sun4c.c | sun4c_init_clean_segmap(i); |
i | 406 | arch/sparc/mm/sun4c.c | add_ring(&sun4c_ufree_ring, &mmu_entry_pool[i]); |
i | 491 | arch/sparc/mm/sun4c.c | unsigned char mmuhog, i, ctx = 0; |
i | 499 | arch/sparc/mm/sun4c.c | for(i=0; i < num_contexts; i++) { |
i | 500 | arch/sparc/mm/sun4c.c | if(sun4c_context_ring[i].num_entries > mmuhog) { |
i | 501 | arch/sparc/mm/sun4c.c | rp = &sun4c_context_ring[i]; |
i | 503 | arch/sparc/mm/sun4c.c | ctx = i; |
i | 1064 | arch/sparc/mm/sun4c.c | int used_user_entries, i; |
i | 1067 | arch/sparc/mm/sun4c.c | for(i=0; i < num_contexts; i++) |
i | 1068 | arch/sparc/mm/sun4c.c | used_user_entries += sun4c_context_ring[i].num_entries; |
i | 1316 | arch/sparc/mm/sun4c.c | int i, cnt; |
i | 1346 | arch/sparc/mm/sun4c.c | for(i = 0; i < num_segmaps; i++) |
i | 1347 | arch/sparc/mm/sun4c.c | if(mmu_entry_pool[i].locked) |
i | 40 | arch/sparc/prom/memory.c | int i, mitr, tmpsize; |
i | 44 | arch/sparc/prom/memory.c | for(i=0; thislist[i].theres_more != 0; i++) { |
i | 45 | arch/sparc/prom/memory.c | lowest = thislist[i].start_adr; |
i | 46 | arch/sparc/prom/memory.c | for(mitr = i+1; thislist[mitr-1].theres_more != 0; mitr++) |
i | 51 | arch/sparc/prom/memory.c | if(lowest == thislist[i].start_adr) continue; |
i | 54 | arch/sparc/prom/memory.c | for(mitr = swapi; mitr > i; mitr--) { |
i | 58 | arch/sparc/prom/memory.c | thislist[i].start_adr = tmpaddr; |
i | 59 | arch/sparc/prom/memory.c | thislist[i].num_bytes = tmpsize; |
i | 23 | arch/sparc/prom/printf.c | int i; |
i | 26 | arch/sparc/prom/printf.c | i = vsprintf(ppbuf, fmt, args); |
i | 168 | drivers/block/ali14xx.c | int i; |
i | 174 | drivers/block/ali14xx.c | for (i = 0; i < ALI_NUM_PORTS; ++i) { |
i | 175 | drivers/block/ali14xx.c | basePort = ports[i]; |
i | 234 | drivers/block/cmd640.c | int i; |
i | 238 | drivers/block/cmd640.c | for (i = 0xc000; i <= 0xcf00; i += 0x100) { |
i | 240 | drivers/block/cmd640.c | v_id = inw(i); |
i | 241 | drivers/block/cmd640.c | d_id = inw(i + 2); |
i | 247 | drivers/block/cmd640.c | cmd640_key = i; |
i | 530 | drivers/block/cmd640.c | int i; |
i | 532 | drivers/block/cmd640.c | for (i = 0; drives_ra[i].name != NULL; i++) { |
i | 533 | drivers/block/cmd640.c | if (strmatch(drives_ra[i].name, name) == 0) { |
i | 534 | drivers/block/cmd640.c | return drives_ra[i].mode; |
i | 657 | drivers/block/cmd640.c | int i; |
i | 664 | drivers/block/cmd640.c | for (i = 0; (i < 100) && (inb (p_base + 7) & 0x80); i++) |
i | 53 | drivers/block/dtc2278.c | int i; |
i | 55 | drivers/block/dtc2278.c | for(i = 0; i < 3; ++i) { |
i | 426 | drivers/block/floppy.c | #define _WAIT(x,i) CALL(ret=wait_til_done((x),i)) |
i | 869 | drivers/block/floppy.c | int i, drive, saved_drive; |
i | 875 | drivers/block/floppy.c | for (i=0; i < N_DRIVE; i++){ |
i | 876 | drivers/block/floppy.c | drive = (saved_drive + i + 1) % N_DRIVE; |
i | 972 | drivers/block/floppy.c | int i; |
i | 975 | drivers/block/floppy.c | for (i=0; i < raw_cmd->cmd_count; i++) |
i | 976 | drivers/block/floppy.c | printk("%x,", raw_cmd->cmd[i]); |
i | 1047 | drivers/block/floppy.c | int i = 0, counter, status = 0; |
i | 1059 | drivers/block/floppy.c | resultsize = i; |
i | 1061 | drivers/block/floppy.c | return i; |
i | 1066 | drivers/block/floppy.c | if (i >= MAX_REPLIES) { |
i | 1070 | drivers/block/floppy.c | reply_buffer[i++] = fd_inb(FD_DATA); |
i | 1076 | drivers/block/floppy.c | status, fdc, i); |
i | 1324 | drivers/block/floppy.c | int i,ready_date,r, flags,dflags; |
i | 1356 | drivers/block/floppy.c | for (i=0; i< raw_cmd->cmd_count; i++) |
i | 1357 | drivers/block/floppy.c | r|=output_byte(raw_cmd->cmd[i]); |
i | 1556 | drivers/block/floppy.c | int i; |
i | 1562 | drivers/block/floppy.c | for (i=0; i<inr; i++) |
i | 1563 | drivers/block/floppy.c | printk("%d %x\n", i, reply_buffer[i]); |
i | 1572 | drivers/block/floppy.c | for (i=0; i<inr; i++) |
i | 1573 | drivers/block/floppy.c | printk("%d %x\n", i, reply_buffer[i]); |
i | 1668 | drivers/block/floppy.c | int i; |
i | 1680 | drivers/block/floppy.c | for (i=0; i < OLOGSIZE; i++) |
i | 1682 | drivers/block/floppy.c | output_log[(i+output_log_pos) % OLOGSIZE].data, |
i | 1683 | drivers/block/floppy.c | output_log[(i+output_log_pos) % OLOGSIZE].status, |
i | 1684 | drivers/block/floppy.c | output_log[(i+output_log_pos) % OLOGSIZE].jiffies); |
i | 1687 | drivers/block/floppy.c | for (i=0; i<resultsize; i++){ |
i | 1688 | drivers/block/floppy.c | printk("%2x ", reply_buffer[i]); |
i | 2790 | drivers/block/floppy.c | int i; |
i | 2797 | drivers/block/floppy.c | for (i=0; i< raw_cmd->reply_count; i++) |
i | 2798 | drivers/block/floppy.c | raw_cmd->reply[i] = reply_buffer[i]; |
i | 2893 | drivers/block/floppy.c | int i; |
i | 2926 | drivers/block/floppy.c | for (i=0; i< 16; i++) |
i | 2927 | drivers/block/floppy.c | ptr->reply[i] = 0; |
i | 3117 | drivers/block/floppy.c | int i; |
i | 3119 | drivers/block/floppy.c | for (i=0; i < ARRAY_SIZE(translation_table); i++) { |
i | 3120 | drivers/block/floppy.c | if ((*cmd & 0xffff) == (translation_table[i].newcmd & 0xffff)){ |
i | 3122 | drivers/block/floppy.c | *cmd = translation_table[i].newcmd; |
i | 3135 | drivers/block/floppy.c | int i; |
i | 3148 | drivers/block/floppy.c | for (i=0; i < ARRAY_SIZE(translation_table); i++) { |
i | 3149 | drivers/block/floppy.c | if (*cmd == translation_table[i].oldcmd) { |
i | 3150 | drivers/block/floppy.c | *size = translation_table[i].oldsize; |
i | 3151 | drivers/block/floppy.c | *cmd = translation_table[i].newcmd; |
i | 3167 | drivers/block/floppy.c | int i,drive,type; |
i | 3292 | drivers/block/floppy.c | CALL(i = raw_cmd_ioctl(cmd,(void *) param)); |
i | 3294 | drivers/block/floppy.c | return i; |
i | 3704 | drivers/block/floppy.c | int i; |
i | 3706 | drivers/block/floppy.c | for (i=0; i < ARRAY_SIZE(default_drive_params); i++){ |
i | 3708 | drivers/block/floppy.c | default_drive_params[i].params.flags |= 0x80; |
i | 3710 | drivers/block/floppy.c | default_drive_params[i].params.flags &= ~0x80; |
i | 3717 | drivers/block/floppy.c | int i; |
i | 3719 | drivers/block/floppy.c | for (i=0; i < ARRAY_SIZE(default_drive_params); i++){ |
i | 3721 | drivers/block/floppy.c | default_drive_params[i].params.select_delay = 0; |
i | 3722 | drivers/block/floppy.c | default_drive_params[i].params.flags |= FD_SILENT_DCL_CLEAR; |
i | 3724 | drivers/block/floppy.c | default_drive_params[i].params.select_delay = 2*HZ/100; |
i | 3725 | drivers/block/floppy.c | default_drive_params[i].params.flags &= ~FD_SILENT_DCL_CLEAR; |
i | 3801 | drivers/block/floppy.c | int i; |
i | 3804 | drivers/block/floppy.c | for (i=0; i< ARRAY_SIZE(config_params); i++){ |
i | 3805 | drivers/block/floppy.c | if (strcmp(str,config_params[i].name) == 0){ |
i | 3809 | drivers/block/floppy.c | param = config_params[i].def_param; |
i | 3810 | drivers/block/floppy.c | config_params[i].fn(ints,param); |
i | 3818 | drivers/block/floppy.c | for (i=0; i< ARRAY_SIZE(config_params); i++) |
i | 3819 | drivers/block/floppy.c | printk(" %s",config_params[i].name); |
i | 3828 | drivers/block/floppy.c | int i,unit,drive; |
i | 3840 | drivers/block/floppy.c | for (i=0; i<256; i++) |
i | 3841 | drivers/block/floppy.c | if (ITYPE(i)) |
i | 3842 | drivers/block/floppy.c | floppy_sizes[i] = floppy_type[ITYPE(i)].size >> 1; |
i | 3844 | drivers/block/floppy.c | floppy_sizes[i] = MAX_DISK_SIZE; |
i | 3852 | drivers/block/floppy.c | for (i = 0; i < N_FDC; i++) { |
i | 3853 | drivers/block/floppy.c | fdc = i; |
i | 3879 | drivers/block/floppy.c | for (i = 0; i < N_FDC; i++) { |
i | 3880 | drivers/block/floppy.c | fdc = i; |
i | 3926 | drivers/block/floppy.c | int i; |
i | 3934 | drivers/block/floppy.c | for (i=0; i< N_FDC; i++){ |
i | 3936 | drivers/block/floppy.c | fdc = i; |
i | 4018 | drivers/block/floppy.c | unsigned long i; |
i | 4029 | drivers/block/floppy.c | for (i=current->mm->env_start; i< current->mm->env_end; i ++){ |
i | 4030 | drivers/block/floppy.c | c= get_fs_byte(i); |
i | 130 | drivers/block/genhd.c | int i; |
i | 166 | drivers/block/genhd.c | for (i=0; i<4; i++, p++) { |
i | 172 | drivers/block/genhd.c | if (i >= 2 |
i | 195 | drivers/block/genhd.c | for (i=0; i<4; i++, p++) |
i | 198 | drivers/block/genhd.c | if (i == 4) |
i | 213 | drivers/block/genhd.c | int i, minor = current_minor; |
i | 295 | drivers/block/genhd.c | for (i = 0; i < 4 ; i++) { |
i | 296 | drivers/block/genhd.c | struct partition *q = &p[i]; |
i | 311 | drivers/block/genhd.c | for (i=1 ; i<=4 ; minor++,i++,p++) { |
i | 338 | drivers/block/genhd.c | for (i = 4 ; i < 16 ; i++, current_minor++) { |
i | 358 | drivers/block/genhd.c | int i; |
i | 411 | drivers/block/genhd.c | for (i = 0 ; i < label->d_npartitions; i++, partition++) { |
i | 431 | drivers/block/genhd.c | int i, csum; |
i | 480 | drivers/block/genhd.c | for(i=0; i < 8; i++, p++) { |
i | 544 | drivers/block/genhd.c | int i; |
i | 557 | drivers/block/genhd.c | for (i = first_minor; i < end_minor; i++) |
i | 558 | drivers/block/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
i | 565 | drivers/block/genhd.c | int i, drive; |
i | 569 | drivers/block/genhd.c | for (i = 0 ; i < end_minor; i++) { |
i | 570 | drivers/block/genhd.c | dev->part[i].start_sect = 0; |
i | 571 | drivers/block/genhd.c | dev->part[i].nr_sects = 0; |
i | 580 | drivers/block/genhd.c | for (i = 0; i < end_minor; i++) |
i | 581 | drivers/block/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
i | 99 | drivers/block/hd.c | int i; |
i | 105 | drivers/block/hd.c | i = inb_p(0x40); |
i | 106 | drivers/block/hd.c | i |= inb(0x40) << 8; |
i | 108 | drivers/block/hd.c | return(t - i); |
i | 172 | drivers/block/hd.c | int i = inb_p(HD_STATUS); |
i | 174 | drivers/block/hd.c | if (!OK_STATUS(i)) { |
i | 175 | drivers/block/hd.c | dump_status("check_status", i); |
i | 359 | drivers/block/hd.c | unsigned int i; |
i | 362 | drivers/block/hd.c | for (i = 0; i < 500000 ; i++) { |
i | 373 | drivers/block/hd.c | int i; |
i | 376 | drivers/block/hd.c | for(i = 0; i < 1000; i++) barrier(); |
i | 378 | drivers/block/hd.c | for(i = 0; i < 1000; i++) barrier(); |
i | 387 | drivers/block/hd.c | static int i; |
i | 392 | drivers/block/hd.c | i = -1; |
i | 399 | drivers/block/hd.c | if (++i < NR_HD) { |
i | 400 | drivers/block/hd.c | special_op[i] = recalibrate[i] = 1; |
i | 401 | drivers/block/hd.c | if (unmask_intr[i]) { |
i | 402 | drivers/block/hd.c | unmask_intr[i] = DEFAULT_UNMASK_INTR; |
i | 403 | drivers/block/hd.c | printk("hd%c: reset irq-unmasking to %d\n",i+'a', |
i | 406 | drivers/block/hd.c | if (mult_req[i] || mult_count[i]) { |
i | 407 | drivers/block/hd.c | mult_count[i] = 0; |
i | 408 | drivers/block/hd.c | mult_req[i] = DEFAULT_MULT_COUNT; |
i | 409 | drivers/block/hd.c | printk("hd%c: reset multiple mode to %d\n",i+'a', |
i | 412 | drivers/block/hd.c | hd_out(i,hd_info[i].sect,hd_info[i].sect,hd_info[i].head-1, |
i | 413 | drivers/block/hd.c | hd_info[i].cyl,WIN_SPECIFY,&reset_hd); |
i | 475 | drivers/block/hd.c | int i, retries = 100000, msect = mult_count[dev], nsect; |
i | 480 | drivers/block/hd.c | i = (unsigned) inb_p(HD_STATUS); |
i | 481 | drivers/block/hd.c | if (i & BUSY_STAT) |
i | 483 | drivers/block/hd.c | if (!OK_STATUS(i)) |
i | 485 | drivers/block/hd.c | if (i & DRQ_STAT) |
i | 488 | drivers/block/hd.c | dump_status("read_intr", i); |
i | 503 | drivers/block/hd.c | i = (CURRENT->nr_sectors -= nsect); |
i | 512 | drivers/block/hd.c | if (i > 0) { |
i | 548 | drivers/block/hd.c | int i; |
i | 553 | drivers/block/hd.c | if (OK_STATUS(i=inb_p(HD_STATUS))) { |
i | 554 | drivers/block/hd.c | if (i & DRQ_STAT) { |
i | 562 | drivers/block/hd.c | for (i = CURRENT->nr_sectors; i > 0;){ |
i | 563 | drivers/block/hd.c | i -= CURRENT->current_nr_sectors; |
i | 575 | drivers/block/hd.c | dump_status("multwrite_intr", i); |
i | 582 | drivers/block/hd.c | int i; |
i | 588 | drivers/block/hd.c | i = (unsigned) inb_p(HD_STATUS); |
i | 589 | drivers/block/hd.c | if (i & BUSY_STAT) |
i | 591 | drivers/block/hd.c | if (!OK_STATUS(i)) |
i | 593 | drivers/block/hd.c | if ((CURRENT->nr_sectors <= 1) || (i & DRQ_STAT)) |
i | 596 | drivers/block/hd.c | dump_status("write_intr", i); |
i | 602 | drivers/block/hd.c | i = --CURRENT->nr_sectors; |
i | 605 | drivers/block/hd.c | if (!i || (CURRENT->bh && !SUBSECTOR(i))) |
i | 607 | drivers/block/hd.c | if (i > 0) { |
i | 956 | drivers/block/hd.c | int i; |
i | 1007 | drivers/block/hd.c | i = NR_HD; |
i | 1008 | drivers/block/hd.c | while (i-- > 0) { |
i | 1017 | drivers/block/hd.c | hd[i<<6].nr_sects = bios_info[i].head * |
i | 1018 | drivers/block/hd.c | bios_info[i].sect * bios_info[i].cyl; |
i | 1019 | drivers/block/hd.c | hd_ident_info[i] = (struct hd_driveid *) kmalloc(512,GFP_KERNEL); |
i | 1020 | drivers/block/hd.c | special_op[i] = 1; |
i | 1033 | drivers/block/hd.c | for(i=0;i<(MAX_HD << 6);i++) hd_blocksizes[i] = 1024; |
i | 1086 | drivers/block/hd.c | int i; |
i | 1104 | drivers/block/hd.c | for (i=max_p - 1; i >=0 ; i--) { |
i | 1105 | drivers/block/hd.c | int minor = start + i; |
i | 167 | drivers/block/ht6560b.c | int i; |
i | 173 | drivers/block/ht6560b.c | for (i=3;i>0;i--) { |
i | 430 | drivers/block/ide-cd.c | int i; |
i | 486 | drivers/block/ide-cd.c | for (i=0; i<sizeof (failed_command->c); i++) |
i | 487 | drivers/block/ide-cd.c | printk ("%02x ", failed_command->c[i]); |
i | 1684 | drivers/block/ide-cd.c | int stat, ntracks, i; |
i | 1756 | drivers/block/ide-cd.c | for (i=0; i<=ntracks; i++) |
i | 1763 | drivers/block/ide-cd.c | toc->ent[i].track = bcd2bin (toc->ent[i].track); |
i | 1764 | drivers/block/ide-cd.c | toc->ent[i].addr.msf.m = bcd2bin (toc->ent[i].addr.msf.m); |
i | 1765 | drivers/block/ide-cd.c | toc->ent[i].addr.msf.s = bcd2bin (toc->ent[i].addr.msf.s); |
i | 1766 | drivers/block/ide-cd.c | toc->ent[i].addr.msf.f = bcd2bin (toc->ent[i].addr.msf.f); |
i | 1768 | drivers/block/ide-cd.c | toc->ent[i].addr.lba = msf_to_lba (toc->ent[i].addr.msf.m, |
i | 1769 | drivers/block/ide-cd.c | toc->ent[i].addr.msf.s, |
i | 1770 | drivers/block/ide-cd.c | toc->ent[i].addr.msf.f); |
i | 1774 | drivers/block/ide-cd.c | toc->ent[i].addr.lba = ntohl (toc->ent[i].addr.lba); |
i | 1977 | drivers/block/ide-cd.c | int i, stat; |
i | 1987 | drivers/block/ide-cd.c | for (i=0; i<75; i++) |
i | 1026 | drivers/block/ide-tape.c | unsigned short mask,i; |
i | 1080 | drivers/block/ide-tape.c | for (i=0,mask=1;i<8;i++,mask=mask << 1) { |
i | 1082 | drivers/block/ide-tape.c | printk ("%d ",i); |
i | 1089 | drivers/block/ide-tape.c | for (i=0,mask=1;i<8;i++,mask=mask << 1) { |
i | 1091 | drivers/block/ide-tape.c | printk ("%d ",i); |
i | 2262 | drivers/block/ide-tape.c | unsigned long i; |
i | 2264 | drivers/block/ide-tape.c | for (i=0;i<bcount;i++) |
i | 3466 | drivers/block/ide-tape.c | int i; |
i | 3468 | drivers/block/ide-tape.c | for (i=0;i<12;i++) |
i | 3469 | drivers/block/ide-tape.c | pc->c[i]=0; |
i | 3924 | drivers/block/ide-tape.c | int i,retval; |
i | 3959 | drivers/block/ide-tape.c | for (i=0;i<mt_count;i++) { |
i | 4281 | drivers/block/ide-tape.c | int buffers_num,i; |
i | 4314 | drivers/block/ide-tape.c | for (i=1;i<buffers_num;i++) { |
i | 284 | drivers/block/ide.c | int i; |
i | 290 | drivers/block/ide.c | i = inb_p(0x40); |
i | 291 | drivers/block/ide.c | i |= inb(0x40) << 8; |
i | 293 | drivers/block/ide.c | return (t - i); |
i | 873 | drivers/block/ide.c | int i = (drive->mult_count ? drive->mult_count : 1) * SECTOR_WORDS; |
i | 875 | drivers/block/ide.c | while (i > 0) { |
i | 877 | drivers/block/ide.c | unsigned int wcount = (i > 16) ? 16 : i; |
i | 878 | drivers/block/ide.c | i -= wcount; |
i | 943 | drivers/block/ide.c | int i; |
i | 969 | drivers/block/ide.c | i = (rq->nr_sectors -= nsect); |
i | 972 | drivers/block/ide.c | if (i > 0) { |
i | 985 | drivers/block/ide.c | int i; |
i | 999 | drivers/block/ide.c | i = --rq->nr_sectors; |
i | 1003 | drivers/block/ide.c | if (i > 0) { |
i | 1055 | drivers/block/ide.c | int i; |
i | 1069 | drivers/block/ide.c | for (i = rq->nr_sectors; i > 0;){ |
i | 1070 | drivers/block/ide.c | i -= rq->current_nr_sectors; |
i | 2555 | drivers/block/ide.c | char *i = strchr(s, c); |
i | 2556 | drivers/block/ide.c | return (i && c) ? i - s : -1; |
i | 2575 | drivers/block/ide.c | int i, n; |
i | 2582 | drivers/block/ide.c | for (i = 0; *keywords != NULL; ++i) { |
i | 2584 | drivers/block/ide.c | return -(i+1); |
i | 2592 | drivers/block/ide.c | for (n = 0; (i = stridx(decimal, *s)) >= 0;) { |
i | 2593 | drivers/block/ide.c | vals[n] = i; |
i | 2594 | drivers/block/ide.c | while ((i = stridx(decimal, *++s)) >= 0) |
i | 2595 | drivers/block/ide.c | vals[n] = (vals[n] * 10) + i; |
i | 2597 | drivers/block/ide.c | while ((i = stridx(hex, *++s)) >= 0) |
i | 2598 | drivers/block/ide.c | vals[n] = (vals[n] * 0x10) + i; |
i | 2660 | drivers/block/ide.c | int i, vals[3]; |
i | 2727 | drivers/block/ide.c | i = match_parm(&s[4], ide_words, vals, 3); |
i | 2732 | drivers/block/ide.c | if (i != -1 && i != -2) { |
i | 2735 | drivers/block/ide.c | if (i < 0 && ide_hwifs[1].chipset != ide_unknown) |
i | 2741 | drivers/block/ide.c | if (i <= -6 && hw != 0) |
i | 2744 | drivers/block/ide.c | switch (i) { |
i | 3226 | drivers/block/ide.c | int index, i, rc = -1; |
i | 3245 | drivers/block/ide.c | for (i = 0; i < hwif->gd->nr_real; i++) |
i | 3246 | drivers/block/ide.c | revalidate_disk(MKDEV(hwif->major, i<<PARTN_BITS)); |
i | 34 | drivers/block/linear.c | int cur=0, i, size, dev0_size, nb_zone; |
i | 49 | drivers/block/linear.c | for (i=1; i<mddev->nb_dev; i++) |
i | 50 | drivers/block/linear.c | if (data->smallest->size > devices[minor][i].size) |
i | 51 | drivers/block/linear.c | data->smallest=devices[minor]+i; |
i | 61 | drivers/block/linear.c | i=0; |
i | 64 | drivers/block/linear.c | data->hash_table[i].dev0=devices[minor]+cur; |
i | 68 | drivers/block/linear.c | data->hash_table[i++].dev1=NULL; |
i | 82 | drivers/block/linear.c | data->hash_table[i].dev1=NULL; |
i | 88 | drivers/block/linear.c | data->hash_table[i++].dev1=devices[minor]+cur; |
i | 479 | drivers/block/ll_rw_blk.c | int i; |
i | 501 | drivers/block/ll_rw_blk.c | i = blksize_size[major][MINOR(bh[0]->b_dev)]; |
i | 502 | drivers/block/ll_rw_blk.c | if (i) |
i | 503 | drivers/block/ll_rw_blk.c | correct_size = i; |
i | 507 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
i | 508 | drivers/block/ll_rw_blk.c | if (bh[i] && bh[i]->b_size != correct_size) { |
i | 512 | drivers/block/ll_rw_blk.c | correct_size, bh[i]->b_size); |
i | 523 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
i | 524 | drivers/block/ll_rw_blk.c | if (bh[i]) { |
i | 525 | drivers/block/ll_rw_blk.c | set_bit(BH_Req, &bh[i]->b_state); |
i | 528 | drivers/block/ll_rw_blk.c | bh[i]->b_rdev = bh[i]->b_dev; |
i | 530 | drivers/block/ll_rw_blk.c | make_request(major, rw, bh[i]); |
i | 536 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
i | 537 | drivers/block/ll_rw_blk.c | if (bh[i]) { |
i | 538 | drivers/block/ll_rw_blk.c | clear_bit(BH_Dirty, &bh[i]->b_state); |
i | 539 | drivers/block/ll_rw_blk.c | clear_bit(BH_Uptodate, &bh[i]->b_state); |
i | 547 | drivers/block/ll_rw_blk.c | int i, j; |
i | 572 | drivers/block/ll_rw_blk.c | for (j=0, i=0; i<nb;) |
i | 574 | drivers/block/ll_rw_blk.c | for (; j < 8 && i < nb; j++, i++, buf += buffersize) |
i | 587 | drivers/block/ll_rw_blk.c | req[j]->sector = (b[i] * buffersize) >> 9; |
i | 60 | drivers/block/loop.c | int i, keysize; |
i | 71 | drivers/block/loop.c | for (i=0; i < size; i++) |
i | 72 | drivers/block/loop.c | *out++ = *in++ ^ key[(i & 511) % keysize]; |
i | 478 | drivers/block/loop.c | int i; |
i | 490 | drivers/block/loop.c | for (i=0; i < MAX_LOOP; i++) { |
i | 491 | drivers/block/loop.c | memset(&loop_dev[i], 0, sizeof(struct loop_device)); |
i | 492 | drivers/block/loop.c | loop_dev[i].lo_number = i; |
i | 117 | drivers/block/md.c | int i, j, minra=INT_MAX; |
i | 119 | drivers/block/md.c | for (i=0; i<MAX_MD_DEV; i++) |
i | 121 | drivers/block/md.c | if (!md_dev[i].pers) |
i | 124 | drivers/block/md.c | for (j=0; j<md_dev[i].nb_dev; j++) |
i | 125 | drivers/block/md.c | if (read_ahead[MAJOR(devices[i][j].dev)]<minra) |
i | 126 | drivers/block/md.c | minra=read_ahead[MAJOR(devices[i][j].dev)]; |
i | 451 | drivers/block/md.c | int i, j, max_req, major=0, rw, found; |
i | 461 | drivers/block/md.c | for (i=0; i<n; i++) |
i | 463 | drivers/block/md.c | if (!pending[i].bh) |
i | 467 | drivers/block/md.c | rw=pending[i].cmd; |
i | 468 | drivers/block/md.c | bh=pending[i].bh; |
i | 469 | drivers/block/md.c | major=MAJOR(dev=pending[i].rq_dev); |
i | 495 | drivers/block/md.c | req->sector + req->nr_sectors == pending[i].sector && |
i | 496 | drivers/block/md.c | (req->nr_sectors + pending[i].nr_sectors) < 245) |
i | 499 | drivers/block/md.c | req->bhtail = pending[i].bhtail; |
i | 500 | drivers/block/md.c | req->nr_sectors += pending[i].nr_sectors; |
i | 509 | drivers/block/md.c | req->sector - pending[i].nr_sectors == pending[i].sector && |
i | 510 | drivers/block/md.c | (req->nr_sectors + pending[i].nr_sectors) < 245) |
i | 512 | drivers/block/md.c | req->nr_sectors += pending[i].nr_sectors; |
i | 513 | drivers/block/md.c | pending[i].bhtail->b_reqnext = req->bh; |
i | 516 | drivers/block/md.c | req->sector = pending[i].sector; |
i | 539 | drivers/block/md.c | req->sector = pending[i].sector; |
i | 540 | drivers/block/md.c | req->nr_sectors = pending[i].nr_sectors; |
i | 545 | drivers/block/md.c | req->bhtail = pending[i].bhtail; |
i | 597 | drivers/block/md.c | int i; |
i | 599 | drivers/block/md.c | for(i=0;i<MAX_MD_DEV;i++) |
i | 601 | drivers/block/md.c | md_blocksizes[i] = 1024; |
i | 602 | drivers/block/md.c | md_gendisk.part[i].start_sect=-1; |
i | 603 | drivers/block/md.c | md_dev[i].pers=NULL; |
i | 605 | drivers/block/md.c | md_dev[i].smallest_count=md_dev[i].biggest_count=md_dev[i].equal_count=0; |
i | 623 | drivers/block/md.c | int sz=0, i, j; |
i | 626 | drivers/block/md.c | for (i=0; i<MAX_PERSONALITY; i++) |
i | 627 | drivers/block/md.c | if (pers[i]) |
i | 628 | drivers/block/md.c | sz+=sprintf (page+sz, "[%d %s] ", i, pers[i]->name); |
i | 638 | drivers/block/md.c | for (i=0; i<MAX_MD_DEV; i++) |
i | 640 | drivers/block/md.c | sz+=sprintf (page+sz, "md%d : %sactive", i, md_dev[i].pers ? "" : "in"); |
i | 642 | drivers/block/md.c | if (md_dev[i].pers) |
i | 643 | drivers/block/md.c | sz+=sprintf (page+sz, " %s", md_dev[i].pers->name); |
i | 645 | drivers/block/md.c | for (j=0; j<md_dev[i].nb_dev; j++) |
i | 647 | drivers/block/md.c | (devices[i][j].invalid==VALID) ? "" : "(", |
i | 648 | drivers/block/md.c | partition_name(devices[i][j].dev), |
i | 649 | drivers/block/md.c | (devices[i][j].invalid==VALID) ? "" : ")"); |
i | 651 | drivers/block/md.c | if (md_dev[i].nb_dev) |
i | 652 | drivers/block/md.c | sz+=sprintf (page+sz, " %d blocks", md_size[i]); |
i | 654 | drivers/block/md.c | if (!md_dev[i].pers) |
i | 660 | drivers/block/md.c | if (md_dev[i].pers->max_invalid_dev) |
i | 661 | drivers/block/md.c | sz+=sprintf (page+sz, " maxfault=%ld", MAX_FAULT(md_dev+i)); |
i | 663 | drivers/block/md.c | if (md_dev[i].pers != pers[(LINEAR>>PERSONALITY_SHIFT)]) |
i | 665 | drivers/block/md.c | sz+=sprintf (page+sz, " %dk chunks", 1<<FACTOR_SHIFT(FACTOR(md_dev+i))); |
i | 668 | drivers/block/md.c | md_dev[i].smallest_count, |
i | 669 | drivers/block/md.c | md_dev[i].equal_count, |
i | 670 | drivers/block/md.c | md_dev[i].biggest_count); |
i | 674 | drivers/block/md.c | sz+=md_dev[i].pers->status (page+sz, i, md_dev+i); |
i | 684 | drivers/block/md.c | int i; |
i | 686 | drivers/block/md.c | for (i=0; i<md_dev[minor].nb_dev; i++) |
i | 687 | drivers/block/md.c | if (devices[minor][i].dev==dev) |
i | 690 | drivers/block/md.c | if (i>md_dev[minor].nb_dev) |
i | 702 | drivers/block/md.c | if (devices[minor][i].invalid==INVALID_ALWAYS) |
i | 704 | drivers/block/md.c | devices[minor][i].fault_count=0; /* reset fault count */ |
i | 711 | drivers/block/md.c | if (devices[minor][i].invalid != VALID ) |
i | 714 | drivers/block/md.c | if (++devices[minor][i].fault_count > MAX_FAULT(md_dev+minor) && |
i | 739 | drivers/block/md.c | devices[minor][i].invalid=mode; |
i | 766 | drivers/block/md.c | int i=(p_num >> PERSONALITY_SHIFT); |
i | 768 | drivers/block/md.c | if (i >= MAX_PERSONALITY) |
i | 771 | drivers/block/md.c | if (pers[i]) |
i | 774 | drivers/block/md.c | pers[i]=p; |
i | 781 | drivers/block/md.c | int i=(p_num >> PERSONALITY_SHIFT); |
i | 783 | drivers/block/md.c | if (i >= MAX_PERSONALITY) |
i | 786 | drivers/block/md.c | printk ("%s personality unregistered\n", pers[i]->name); |
i | 787 | drivers/block/md.c | pers[i]=NULL; |
i | 135 | drivers/block/promise.c | int i; |
i | 180 | drivers/block/promise.c | for (i=0; i<2 ; i++) { |
i | 181 | drivers/block/promise.c | hwif->drives[i].io_32bit = 3; |
i | 182 | drivers/block/promise.c | second_hwif->drives[i].io_32bit = 3; |
i | 183 | drivers/block/promise.c | if(!ident.current_tm[i+2].cyl) second_hwif->drives[i].noprobe=1; |
i | 194 | drivers/block/promise.c | int i; |
i | 225 | drivers/block/promise.c | i = (rq->nr_sectors -= nsect); |
i | 228 | drivers/block/promise.c | if (i > 0) { |
i | 248 | drivers/block/promise.c | int i; |
i | 264 | drivers/block/promise.c | for (i = rq->nr_sectors; i > 0;) { |
i | 265 | drivers/block/promise.c | i -= rq->current_nr_sectors; |
i | 283 | drivers/block/promise.c | int i; |
i | 293 | drivers/block/promise.c | for (i = rq->nr_sectors; i > 0;) { |
i | 294 | drivers/block/promise.c | i -= rq->current_nr_sectors; |
i | 34 | drivers/block/raid0.c | int i, j, c=0; |
i | 41 | drivers/block/raid0.c | for (i=1; i<mddev->nb_dev; i++) |
i | 43 | drivers/block/raid0.c | for (j=0; j<i; j++) |
i | 44 | drivers/block/raid0.c | if (devices[minor][i].size==devices[minor][j].size) |
i | 61 | drivers/block/raid0.c | for (i=0; i<data->nr_strip_zones; i++) |
i | 63 | drivers/block/raid0.c | data->strip_zone[i].dev_offset=current_offset; |
i | 70 | drivers/block/raid0.c | data->strip_zone[i].dev[c++]=devices[minor]+j; |
i | 76 | drivers/block/raid0.c | data->strip_zone[i].nb_dev=c; |
i | 77 | drivers/block/raid0.c | data->strip_zone[i].size=(smallest_by_zone->size-current_offset)*c; |
i | 80 | drivers/block/raid0.c | data->smallest->size > data->strip_zone[i].size) |
i | 81 | drivers/block/raid0.c | data->smallest=data->strip_zone+i; |
i | 83 | drivers/block/raid0.c | data->strip_zone[i].zone_offset=i ? (data->strip_zone[i-1].zone_offset+ |
i | 84 | drivers/block/raid0.c | data->strip_zone[i-1].size) : 0; |
i | 91 | drivers/block/raid0.c | int cur=0, i=0, size, zone0_size, nb_zone, min; |
i | 96 | drivers/block/raid0.c | for (i=0; i<mddev->nb_dev; i++) |
i | 97 | drivers/block/raid0.c | if (devices[minor][i].size<min) |
i | 100 | drivers/block/raid0.c | partition_name (devices[minor][i].dev)); |
i | 109 | drivers/block/raid0.c | for (i=0; i<mddev->nb_dev; i++) |
i | 111 | drivers/block/raid0.c | devices[minor][i].size &= ~((1 << FACTOR_SHIFT(FACTOR(mddev))) - 1); |
i | 112 | drivers/block/raid0.c | md_size[minor] += devices[minor][i].size; |
i | 128 | drivers/block/raid0.c | i=0; |
i | 131 | drivers/block/raid0.c | data->hash_table[i].zone0=data->strip_zone+cur; |
i | 135 | drivers/block/raid0.c | data->hash_table[i++].zone1=NULL; |
i | 149 | drivers/block/raid0.c | data->hash_table[i].zone1=NULL; |
i | 155 | drivers/block/raid0.c | data->hash_table[i++].zone1=data->strip_zone+cur; |
i | 188 | drivers/block/raid0.c | int i, queue, blk_in_chunk, factor, chunk; |
i | 227 | drivers/block/raid0.c | for (i=blk_in_chunk; |
i | 228 | drivers/block/raid0.c | i<(1UL << FACTOR_SHIFT(factor)) && req->bh; |
i | 229 | drivers/block/raid0.c | i+=bh->b_size >> 10) |
i | 194 | drivers/block/rd.c | unsigned long i; |
i | 197 | drivers/block/rd.c | for (i = initrd_start; i < initrd_end; i += PAGE_SIZE) |
i | 198 | drivers/block/rd.c | free_page(i); |
i | 265 | drivers/block/rd.c | int i; |
i | 274 | drivers/block/rd.c | for (i = 0; i < NUM_RAMDISKS; i++) { |
i | 275 | drivers/block/rd.c | rd_length[i] = (RD_DEFAULTSIZE * 1024); |
i | 276 | drivers/block/rd.c | rd_blocksizes[i] = 1024; |
i | 299 | drivers/block/rd.c | int i; |
i | 301 | drivers/block/rd.c | for (i = 0 ; i < NUM_RAMDISKS; i++) |
i | 302 | drivers/block/rd.c | invalidate_buffers(MKDEV(MAJOR_NR, i)); |
i | 423 | drivers/block/rd.c | int nblocks, i; |
i | 480 | drivers/block/rd.c | for (i=0; i < nblocks; i++) { |
i | 485 | drivers/block/rd.c | if (!(i % 16)) { |
i | 153 | drivers/block/triton.c | int i; |
i | 163 | drivers/block/triton.c | for (i = rq->nr_sectors; i > 0;) { |
i | 164 | drivers/block/triton.c | i -= rq->current_nr_sectors; |
i | 83 | drivers/block/umc8672.c | int i, tmp; |
i | 93 | drivers/block/umc8672.c | for (i = 3; i >= 0; i--) |
i | 95 | drivers/block/umc8672.c | tmp = (tmp << 2) | speedtab[1][speeds[i]]; |
i | 98 | drivers/block/umc8672.c | for (i = 0;i < 4; i++) |
i | 100 | drivers/block/umc8672.c | out_umc (0xd0+i,speedtab[2][speeds[i]]); |
i | 101 | drivers/block/umc8672.c | out_umc (0xd8+i,speedtab[2][speeds[i]]); |
i | 135 | drivers/block/xd.c | u_char i,j,found = 0; |
i | 144 | drivers/block/xd.c | for (i = 0; i < (sizeof(xd_bases) / sizeof(xd_bases[0])) && !found; i++) |
i | 146 | drivers/block/xd.c | if (!memcmp(xd_bases[i] + xd_sigs[j].offset,xd_sigs[j].string,strlen(xd_sigs[j].string))) { |
i | 148 | drivers/block/xd.c | *address = xd_bases[i]; |
i | 158 | drivers/block/xd.c | u_char i,controller,*address; |
i | 168 | drivers/block/xd.c | for (i = 0; i < xd_drives; i++) |
i | 169 | drivers/block/xd.c | printk("xd_geninit: drive %d geometry - heads = %d, cylinders = %d, sectors = %d\n",i,xd_info[i].heads,xd_info[i].cylinders,xd_info[i].sectors); |
i | 181 | drivers/block/xd.c | for (i = 0; i < xd_drives; i++) { |
i | 182 | drivers/block/xd.c | xd[i << 6].nr_sects = xd_info[i].heads * xd_info[i].cylinders * xd_info[i].sectors; |
i | 183 | drivers/block/xd.c | xd_valid[i] = 1; |
i | 188 | drivers/block/xd.c | for(i=0;i<(XD_MAXDRIVES << 6);i++) xd_blocksizes[i] = 1024; |
i | 521 | drivers/block/xd.c | u_char cmdblk[6],i,count = 0; |
i | 523 | drivers/block/xd.c | for (i = 0; i < XD_MAXDRIVES; i++) { |
i | 524 | drivers/block/xd.c | xd_build(cmdblk,CMD_TESTREADY,i,0,0,0,0,0); |
i | 679 | drivers/block/xd.c | u_char cmdblk[6],i; |
i | 681 | drivers/block/xd.c | for (i = 0; i < 3; i++) { |
i | 682 | drivers/block/xd.c | while (min[i] != max[i] - 1) { |
i | 683 | drivers/block/xd.c | test[i] = (min[i] + max[i]) / 2; |
i | 686 | drivers/block/xd.c | min[i] = test[i]; |
i | 688 | drivers/block/xd.c | max[i] = test[i]; |
i | 690 | drivers/block/xd.c | test[i] = min[i]; |
i | 612 | drivers/cdrom/aztcd.c | { int i, st; |
i | 629 | drivers/cdrom/aztcd.c | { if ((i=aztUpdateToc())<0) RETURNM("aztcd_ioctl 3", i); /* error reading TOC */ |
i | 664 | drivers/cdrom/aztcd.c | i = aztPlay(&azt_Play); |
i | 665 | drivers/cdrom/aztcd.c | if (i < 0) |
i | 723 | drivers/cdrom/aztcd.c | i = aztPlay(&azt_Play); |
i | 724 | drivers/cdrom/aztcd.c | if (i < 0) |
i | 758 | drivers/cdrom/aztcd.c | i = aztPlay(&azt_Play); |
i | 759 | drivers/cdrom/aztcd.c | if (i < 0) |
i | 966 | drivers/cdrom/aztcd.c | int i; |
i | 967 | drivers/cdrom/aztcd.c | for (i = 0; i < AZT_BUF_SIZ && azt_buf_bn[i] != bn; ++i) |
i | 969 | drivers/cdrom/aztcd.c | if (i < AZT_BUF_SIZ) { |
i | 970 | drivers/cdrom/aztcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
i | 972 | drivers/cdrom/aztcd.c | if (azt_buf_out != i) { |
i | 973 | drivers/cdrom/aztcd.c | azt_buf_out = i; |
i | 974 | drivers/cdrom/aztcd.c | if (azt_buf_bn[i] != bn) { |
i | 1182 | drivers/cdrom/aztcd.c | int i; |
i | 1185 | drivers/cdrom/aztcd.c | i = 0; |
i | 1187 | drivers/cdrom/aztcd.c | while (azt_msf2hsg(&msf.start)>azt_msf2hsg(&Toc[++i].trackTime)) {}; |
i | 1188 | drivers/cdrom/aztcd.c | if (azt_msf2hsg(&msf.start)<azt_msf2hsg(&Toc[i].trackTime)-AZT_BUF_SIZ) |
i | 1194 | drivers/cdrom/aztcd.c | { azt_read_count=(azt_msf2hsg(&Toc[i].trackTime)/4)*4-azt_msf2hsg(&msf.start); |
i | 1362 | drivers/cdrom/aztcd.c | int i; |
i | 1365 | drivers/cdrom/aztcd.c | for (i=0; i<CD_FRAMESIZE_RAW; i++) inb(DATA_PORT); |
i | 1367 | drivers/cdrom/aztcd.c | for (i=0; i<CD_FRAMESIZE; i++) inb(DATA_PORT); |
i | 1442 | drivers/cdrom/aztcd.c | { int i; |
i | 1447 | drivers/cdrom/aztcd.c | for (i = 0; i < AZT_BUF_SIZ; ++i) |
i | 1448 | drivers/cdrom/aztcd.c | azt_buf_bn[i] = -1; |
i | 2016 | drivers/cdrom/aztcd.c | { int i, px; |
i | 2024 | drivers/cdrom/aztcd.c | { for (i = 0; i < MAX_TRACKS; i++) |
i | 2025 | drivers/cdrom/aztcd.c | Toc[i].pointIndex = 0; |
i | 2026 | drivers/cdrom/aztcd.c | i = DiskInfo.last + 3; |
i | 2029 | drivers/cdrom/aztcd.c | { for (i = DiskInfo.next; i < MAX_TRACKS; i++) |
i | 2030 | drivers/cdrom/aztcd.c | Toc[i].pointIndex = 0; |
i | 2031 | drivers/cdrom/aztcd.c | i = DiskInfo.last + 4 - DiskInfo.next; |
i | 2060 | drivers/cdrom/aztcd.c | i--; |
i | 2063 | drivers/cdrom/aztcd.c | if (i <= 0) |
i | 2072 | drivers/cdrom/aztcd.c | for (i = 1; i <= DiskInfo.last+1; i++) |
i | 2074 | drivers/cdrom/aztcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
i | 2075 | drivers/cdrom/aztcd.c | Toc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame, |
i | 2076 | drivers/cdrom/aztcd.c | Toc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame); |
i | 2077 | drivers/cdrom/aztcd.c | for (i = 100; i < 103; i++) |
i | 2079 | drivers/cdrom/aztcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
i | 2080 | drivers/cdrom/aztcd.c | Toc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame, |
i | 2081 | drivers/cdrom/aztcd.c | Toc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame); |
i | 687 | drivers/cdrom/cdu31a.c | int i; |
i | 746 | drivers/cdrom/cdu31a.c | for (i=0; i<8; i++) |
i | 774 | drivers/cdrom/cdu31a.c | for (i=0; i<10; i++) |
i | 1211 | drivers/cdrom/cdu31a.c | int i; |
i | 1219 | drivers/cdrom/cdu31a.c | for(i=0; i<CD_XA_HEAD; i++) |
i | 1258 | drivers/cdrom/cdu31a.c | for(i=0; i<CD_XA_TAIL; i++) |
i | 1910 | drivers/cdrom/cdu31a.c | int i; |
i | 1915 | drivers/cdrom/cdu31a.c | for (i = 0; i < num_tracks; i++) |
i | 1917 | drivers/cdrom/cdu31a.c | if (sony_toc.tracks[i].track == track) |
i | 1919 | drivers/cdrom/cdu31a.c | return i; |
i | 2386 | drivers/cdrom/cdu31a.c | int i; |
i | 2448 | drivers/cdrom/cdu31a.c | i=verify_area(VERIFY_READ, (char *) arg, 6); |
i | 2449 | drivers/cdrom/cdu31a.c | if(i) |
i | 2450 | drivers/cdrom/cdu31a.c | return i; |
i | 2455 | drivers/cdrom/cdu31a.c | for (i=1; i<7; i++) |
i | 2457 | drivers/cdrom/cdu31a.c | params[i] = int_to_bcd(params[i]); |
i | 2482 | drivers/cdrom/cdu31a.c | i=verify_area(VERIFY_WRITE, hdr, sizeof(*hdr)); |
i | 2483 | drivers/cdrom/cdu31a.c | if(i<0) |
i | 2484 | drivers/cdrom/cdu31a.c | return i; |
i | 2505 | drivers/cdrom/cdu31a.c | i=verify_area(VERIFY_READ, entry, sizeof(*entry)); |
i | 2506 | drivers/cdrom/cdu31a.c | if(i<0) |
i | 2507 | drivers/cdrom/cdu31a.c | return i; |
i | 2508 | drivers/cdrom/cdu31a.c | i=verify_area(VERIFY_WRITE, entry, sizeof(*entry)); |
i | 2509 | drivers/cdrom/cdu31a.c | if(i<0) |
i | 2510 | drivers/cdrom/cdu31a.c | return i; |
i | 2561 | drivers/cdrom/cdu31a.c | i=verify_area(VERIFY_READ, (char *) arg, sizeof(ti)); |
i | 2562 | drivers/cdrom/cdu31a.c | if(i<0) |
i | 2563 | drivers/cdrom/cdu31a.c | return i; |
i | 2630 | drivers/cdrom/cdu31a.c | i=verify_area(VERIFY_READ, (char *) arg, sizeof(volctrl)); |
i | 2631 | drivers/cdrom/cdu31a.c | if(i<0) |
i | 2632 | drivers/cdrom/cdu31a.c | return i; |
i | 2659 | drivers/cdrom/cdu31a.c | i=verify_area(VERIFY_READ, (char *) arg, sizeof(ra)); |
i | 2660 | drivers/cdrom/cdu31a.c | if(i<0) |
i | 2661 | drivers/cdrom/cdu31a.c | return i; |
i | 2664 | drivers/cdrom/cdu31a.c | i=verify_area(VERIFY_WRITE, ra.buf, CD_FRAMESIZE_RAW * ra.nframes); |
i | 2665 | drivers/cdrom/cdu31a.c | if(i<0) |
i | 2666 | drivers/cdrom/cdu31a.c | return i; |
i | 2999 | drivers/cdrom/cdu31a.c | int i; |
i | 3041 | drivers/cdrom/cdu31a.c | i = 0; |
i | 3042 | drivers/cdrom/cdu31a.c | while ( (cdu31a_addresses[i].base != 0) |
i | 3045 | drivers/cdrom/cdu31a.c | if (check_region(cdu31a_addresses[i].base, 4)) { |
i | 3046 | drivers/cdrom/cdu31a.c | i++; |
i | 3049 | drivers/cdrom/cdu31a.c | get_drive_configuration(cdu31a_addresses[i].base, |
i | 3055 | drivers/cdrom/cdu31a.c | cdu31a_irq = cdu31a_addresses[i].int_num; |
i | 3059 | drivers/cdrom/cdu31a.c | i++; |
i | 129 | drivers/cdrom/cm206.c | #define stats(i) ++cd->stats[st_ ## i]; \ |
i | 130 | drivers/cdrom/cm206.c | cd->last_stat[st_ ## i] = cd->stat_counter++; |
i | 132 | drivers/cdrom/cm206.c | #define stats(i) (void) 0 |
i | 374 | drivers/cdrom/cm206.c | int i; |
i | 376 | drivers/cdrom/cm206.c | for(i=0; i<bytes; i++) |
i | 377 | drivers/cdrom/cm206.c | status[i] = send_receive(c_gimme); |
i | 411 | drivers/cdrom/cm206.c | int i, e; |
i | 414 | drivers/cdrom/cm206.c | for (i=0; i<4; i++) |
i | 415 | drivers/cdrom/cm206.c | if (read_sector[i] != (e=send_receive(read_sector[i]))) { |
i | 416 | drivers/cdrom/cm206.c | debug(("read_sector: %x echoes %x\n", read_sector[i], e)); |
i | 541 | drivers/cdrom/cm206.c | int i=0; |
i | 543 | drivers/cdrom/cm206.c | while (i++<10 && cd->dsb & dsb_drive_not_ready) { |
i | 636 | drivers/cdrom/cm206.c | long int i, cd_sec_no; |
i | 650 | drivers/cdrom/cm206.c | for (i=0; i<CURRENT->nr_sectors; i++) { |
i | 651 | drivers/cdrom/cm206.c | cd_sec_no = (CURRENT->sector+i)/4; /* 4 times 512 bytes */ |
i | 652 | drivers/cdrom/cm206.c | quarter = (CURRENT->sector+i) % 4; |
i | 653 | drivers/cdrom/cm206.c | dest = CURRENT->buffer + i*512; |
i | 709 | drivers/cdrom/cm206.c | int i; |
i | 713 | drivers/cdrom/cm206.c | for (i=0; i<4; i++) type_0_command(seek_command[i], 0); |
i | 735 | drivers/cdrom/cm206.c | int i, lba, l, old_lba=0; |
i | 741 | drivers/cdrom/cm206.c | for (i=track; i>0; i--) if (cd->toc[i].track) { |
i | 742 | drivers/cdrom/cm206.c | min = fsm2lba(cd->toc[i].fsm); |
i | 789 | drivers/cdrom/cm206.c | int i; |
i | 793 | drivers/cdrom/cm206.c | for (i=0; i<3; i++) cd->toc[1].fsm[i] = cd->disc_status[3+i]; |
i | 805 | drivers/cdrom/cm206.c | int i; |
i | 806 | drivers/cdrom/cm206.c | for (i=0; i<9; i++) type_0_command(play_command[i], 0); |
i | 807 | drivers/cdrom/cm206.c | for (i=0; i<3; i++) |
i | 808 | drivers/cdrom/cm206.c | PLAY_TO.fsm[i] = play_command[i+4]; |
i | 816 | drivers/cdrom/cm206.c | int i; |
i | 819 | drivers/cdrom/cm206.c | for (i=0; i<3; i++) { |
i | 820 | drivers/cdrom/cm206.c | play_command[i+1] = cd->audio_status[i+2]; |
i | 821 | drivers/cdrom/cm206.c | play_command[i+4] = PLAY_TO.fsm[i]; |
i | 825 | drivers/cdrom/cm206.c | for (i=0; i<3; i++) { |
i | 826 | drivers/cdrom/cm206.c | play_command[i+1] = cd->toc[from].fsm[i]; |
i | 827 | drivers/cdrom/cm206.c | PLAY_TO.fsm[i] = play_command[i+4] = cd->toc[to+1].fsm[i]; |
i | 831 | drivers/cdrom/cm206.c | for (i=0; i<7; i++) type_0_command(play_command[i],0); |
i | 832 | drivers/cdrom/cm206.c | for (i=0; i<2; i++) type_0_command(0x2, 0); /* volume */ |
i | 838 | drivers/cdrom/cm206.c | int i; |
i | 842 | drivers/cdrom/cm206.c | for (i=2; i<6; i++) q[i]=bcdbin(q[i]); |
i | 1190 | drivers/cdrom/cm206.c | int i; |
i | 1191 | drivers/cdrom/cm206.c | for (i=0; i<2; i++) { |
i | 1192 | drivers/cdrom/cm206.c | if (0x300 <= cm206[i] && i<= 0x370 && cm206[i] % 0x10 == 0) { |
i | 1193 | drivers/cdrom/cm206.c | cm206_base = cm206[i]; |
i | 1196 | drivers/cdrom/cm206.c | else if (3 <= cm206[i] && cm206[i] <= 15) { |
i | 1197 | drivers/cdrom/cm206.c | cm206_irq = cm206[i]; |
i | 1224 | drivers/cdrom/cm206.c | int i; |
i | 1226 | drivers/cdrom/cm206.c | for(i=1; i<=p[0]; i++) { |
i | 1227 | drivers/cdrom/cm206.c | if (0x300 <= p[i] && i<= 0x370 && p[i] % 0x10 == 0) { |
i | 1228 | drivers/cdrom/cm206.c | cm206_base = p[i]; |
i | 1231 | drivers/cdrom/cm206.c | else if (3 <= p[i] && p[i] <= 15) { |
i | 1232 | drivers/cdrom/cm206.c | cm206_irq = p[i]; |
i | 528 | drivers/cdrom/gscd.c | int i,dummy; |
i | 546 | drivers/cdrom/gscd.c | for ( i=1,dummy=1 ; i<0xFFFF ; i++ ) |
i | 548 | drivers/cdrom/gscd.c | dummy *= i; |
i | 657 | drivers/cdrom/gscd.c | int i,j; |
i | 668 | drivers/cdrom/gscd.c | for ( i=0 ; i<j ; i++ ) |
i | 737 | drivers/cdrom/gscd.c | int i; |
i | 763 | drivers/cdrom/gscd.c | for ( i=0 ; i< size ; i++ ) |
i | 814 | drivers/cdrom/gscd.c | int i; |
i | 835 | drivers/cdrom/gscd.c | for ( i=0 ; i<size ; i++ ) |
i | 853 | drivers/cdrom/gscd.c | int i; |
i | 861 | drivers/cdrom/gscd.c | for ( i=0 ; i<8 ; i++ ) |
i | 902 | drivers/cdrom/gscd.c | int i; |
i | 908 | drivers/cdrom/gscd.c | for ( i=0 ; i<0x1E; i++ ) |
i | 910 | drivers/cdrom/gscd.c | printk ( "%c", resp[i] ); |
i | 1001 | drivers/cdrom/gscd.c | int i; |
i | 1025 | drivers/cdrom/gscd.c | i = find_drives (); |
i | 1026 | drivers/cdrom/gscd.c | if ( i == 0 ) |
i | 1040 | drivers/cdrom/gscd.c | i = 0; |
i | 1041 | drivers/cdrom/gscd.c | while ( drv_states[i] != 0 ) |
i | 1043 | drivers/cdrom/gscd.c | curr_drv_state = drv_states[i]; |
i | 1044 | drivers/cdrom/gscd.c | printk ( "GSCD: Reset unit %d ... ",i ); |
i | 1047 | drivers/cdrom/gscd.c | i++; |
i | 157 | drivers/cdrom/isp16.c | short i = -1; |
i | 176 | drivers/cdrom/isp16.c | i = 0; |
i | 180 | drivers/cdrom/isp16.c | i = 1; |
i | 187 | drivers/cdrom/isp16.c | return(i); /* -> not detected: possibly incorrect conclusion */ |
i | 191 | drivers/cdrom/isp16.c | i = 0; |
i | 193 | drivers/cdrom/isp16.c | i = 1; |
i | 197 | drivers/cdrom/isp16.c | return(i); |
i | 233 | drivers/cdrom/isp16.c | u_char i; |
i | 290 | drivers/cdrom/isp16.c | i = ISP16_IN(ISP16_DRIVE_SET_PORT) & ISP16_DRIVE_SET_MASK; /* clear some bits */ |
i | 291 | drivers/cdrom/isp16.c | ISP16_OUT( ISP16_DRIVE_SET_PORT, i|drive_type ); |
i | 298 | drivers/cdrom/isp16.c | i = ISP16_IN(ISP16_IO_SET_PORT) & ISP16_IO_SET_MASK; /* keep some bits */ |
i | 299 | drivers/cdrom/isp16.c | ISP16_OUT( ISP16_IO_SET_PORT, i|base_code|irq_code|dma_code ); |
i | 289 | drivers/cdrom/mcd.c | int i, st; |
i | 308 | drivers/cdrom/mcd.c | i = updateToc(); |
i | 309 | drivers/cdrom/mcd.c | if (i < 0) |
i | 310 | drivers/cdrom/mcd.c | return i; /* error reading TOC */ |
i | 325 | drivers/cdrom/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 337 | drivers/cdrom/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 358 | drivers/cdrom/mcd.c | i = mcdPlay(&mcd_Play); |
i | 359 | drivers/cdrom/mcd.c | if (i < 0) |
i | 395 | drivers/cdrom/mcd.c | i = mcdPlay(&mcd_Play); |
i | 396 | drivers/cdrom/mcd.c | if (i < 0) |
i | 409 | drivers/cdrom/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 441 | drivers/cdrom/mcd.c | i = mcdPlay(&mcd_Play); |
i | 442 | drivers/cdrom/mcd.c | if (i < 0) |
i | 550 | drivers/cdrom/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 551 | drivers/cdrom/mcd.c | if (i < 0) |
i | 569 | drivers/cdrom/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 580 | drivers/cdrom/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 599 | drivers/cdrom/mcd.c | int i; |
i | 600 | drivers/cdrom/mcd.c | for (i = 0; i < MCD_BUF_SIZ && mcd_buf_bn[i] != bn; ++i) |
i | 602 | drivers/cdrom/mcd.c | if (i < MCD_BUF_SIZ) { |
i | 603 | drivers/cdrom/mcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
i | 605 | drivers/cdrom/mcd.c | if (mcd_buf_out != i) { |
i | 606 | drivers/cdrom/mcd.c | mcd_buf_out = i; |
i | 607 | drivers/cdrom/mcd.c | if (mcd_buf_bn[i] != bn) { |
i | 993 | drivers/cdrom/mcd.c | int i = 4096; |
i | 996 | drivers/cdrom/mcd.c | } while ((inb(MCDPORT(1)) & MFL_STATUSorDATA) == MFL_STATUS && --i); |
i | 999 | drivers/cdrom/mcd.c | i = 4096; |
i | 1002 | drivers/cdrom/mcd.c | } while ((inb(MCDPORT(1)) & MFL_STATUSorDATA) == MFL_STATUS && --i); |
i | 1083 | drivers/cdrom/mcd.c | int i; |
i | 1084 | drivers/cdrom/mcd.c | for (i = 0; i < MCD_BUF_SIZ; ++i) |
i | 1085 | drivers/cdrom/mcd.c | mcd_buf_bn[i] = -1; |
i | 1309 | drivers/cdrom/mcd.c | int i; |
i | 1315 | drivers/cdrom/mcd.c | i = inb(MCDPORT(0)) & 0xFF; |
i | 1316 | drivers/cdrom/mcd.c | return i; |
i | 1540 | drivers/cdrom/mcd.c | int i, px; |
i | 1545 | drivers/cdrom/mcd.c | for (i = 0; i < MAX_TRACKS; i++) |
i | 1546 | drivers/cdrom/mcd.c | Toc[i].pointIndex = 0; |
i | 1548 | drivers/cdrom/mcd.c | i = DiskInfo.last + 3; |
i | 1582 | drivers/cdrom/mcd.c | i--; |
i | 1585 | drivers/cdrom/mcd.c | if (i <= 0) |
i | 1601 | drivers/cdrom/mcd.c | for (i = 1; i <= DiskInfo.last; i++) |
i | 1603 | drivers/cdrom/mcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
i | 1604 | drivers/cdrom/mcd.c | Toc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame, |
i | 1605 | drivers/cdrom/mcd.c | Toc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame); |
i | 1606 | drivers/cdrom/mcd.c | for (i = 100; i < 103; i++) |
i | 1608 | drivers/cdrom/mcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
i | 1609 | drivers/cdrom/mcd.c | Toc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame, |
i | 1610 | drivers/cdrom/mcd.c | Toc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame); |
i | 587 | drivers/cdrom/mcdx.c | int i; |
i | 589 | drivers/cdrom/mcdx.c | if (-1 == (i = mcdx_transfer( |
i | 604 | drivers/cdrom/mcdx.c | CURRENT->sector += i; |
i | 605 | drivers/cdrom/mcdx.c | CURRENT->nr_sectors -= i; |
i | 606 | drivers/cdrom/mcdx.c | CURRENT->buffer += (i * 512); |
i | 943 | drivers/cdrom/mcdx.c | unsigned char i; |
i | 946 | drivers/cdrom/mcdx.c | for (i = 1; i < cmdlen; i++) printk(" 0x%02x", cmd[i]); |
i | 1023 | drivers/cdrom/mcdx.c | int i; |
i | 1027 | drivers/cdrom/mcdx.c | for (i = 0; i < MCDX_NDRIVES; i++) { |
i | 1028 | drivers/cdrom/mcdx.c | if (mcdx_stuffp[i]) { |
i | 1030 | drivers/cdrom/mcdx.c | i, mcdx_stuffp[i])); |
i | 1044 | drivers/cdrom/mcdx.c | int i; |
i | 1048 | drivers/cdrom/mcdx.c | for (i = 0; i < MCDX_NDRIVES; i++) { |
i | 1050 | drivers/cdrom/mcdx.c | stuffp = mcdx_stuffp[i]; |
i | 1059 | drivers/cdrom/mcdx.c | mcdx_stuffp[i] = NULL; |
i | 1238 | drivers/cdrom/mcdx.c | int i; |
i | 1240 | drivers/cdrom/mcdx.c | for (i = 100; i; i--) (void) inb((unsigned int) stuffp->rreg_status); |
i | 733 | drivers/cdrom/optcd.c | void toc_debug_info(int i) |
i | 737 | drivers/cdrom/optcd.c | i, toc[i].cdsc_ctrl, toc[i].cdsc_adr, |
i | 738 | drivers/cdrom/optcd.c | toc[i].cdsc_trk, toc[i].cdsc_ind, |
i | 739 | drivers/cdrom/optcd.c | toc[i].cdsc_reladdr.msf.minute, |
i | 740 | drivers/cdrom/optcd.c | toc[i].cdsc_reladdr.msf.second, |
i | 741 | drivers/cdrom/optcd.c | toc[i].cdsc_reladdr.msf.frame, |
i | 742 | drivers/cdrom/optcd.c | toc[i].cdsc_absaddr.msf.minute, |
i | 743 | drivers/cdrom/optcd.c | toc[i].cdsc_absaddr.msf.second, |
i | 744 | drivers/cdrom/optcd.c | toc[i].cdsc_absaddr.msf.frame); |
i | 755 | drivers/cdrom/optcd.c | int i; |
i | 836 | drivers/cdrom/optcd.c | for (i = 1; i <= disk_info.last + 1; i++) |
i | 837 | drivers/cdrom/optcd.c | toc_debug_info(i); |
i | 980 | drivers/cdrom/optcd.c | int i; |
i | 984 | drivers/cdrom/optcd.c | for (i = 0; i < N_BUFS; i++) |
i | 985 | drivers/cdrom/optcd.c | buf_bn[i] = NOBUF; |
i | 1002 | drivers/cdrom/optcd.c | int i, offs, nr_sectors; |
i | 1003 | drivers/cdrom/optcd.c | for (i = 0; i < N_BUFS && buf_bn[i] != bn; ++i); |
i | 1005 | drivers/cdrom/optcd.c | DEBUG((DEBUG_REQUEST, "found %d", i)); |
i | 1007 | drivers/cdrom/optcd.c | if (i >= N_BUFS) { |
i | 1012 | drivers/cdrom/optcd.c | offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
i | 1015 | drivers/cdrom/optcd.c | if (buf_out != i) { |
i | 1016 | drivers/cdrom/optcd.c | buf_out = i; |
i | 1017 | drivers/cdrom/optcd.c | if (buf_bn[i] != bn) { |
i | 1964 | drivers/cdrom/optcd.c | int count, i, ch, status; |
i | 1975 | drivers/cdrom/optcd.c | for (i = 0, ch = -1; count > 0; count--) { |
i | 1980 | drivers/cdrom/optcd.c | if (i < 99) |
i | 1981 | drivers/cdrom/optcd.c | devname[i++] = ch; |
i | 1983 | drivers/cdrom/optcd.c | devname[i] = '\0'; |
i | 765 | drivers/cdrom/sbpcd.c | static void mark_timeout_delay(u_long i) |
i | 773 | drivers/cdrom/sbpcd.c | static void mark_timeout_data(u_long i) |
i | 782 | drivers/cdrom/sbpcd.c | static void mark_timeout_audio(u_long i) |
i | 847 | drivers/cdrom/sbpcd.c | static INLINE u_char swap_nibbles(u_char i) |
i | 849 | drivers/cdrom/sbpcd.c | return ((i<<4)|(i>>4)); |
i | 852 | drivers/cdrom/sbpcd.c | static INLINE u_char byt2bcd(u_char i) |
i | 854 | drivers/cdrom/sbpcd.c | return (((i/10)<<4)+i%10); |
i | 865 | drivers/cdrom/sbpcd.c | int i; |
i | 868 | drivers/cdrom/sbpcd.c | i=(msf.c[2] * CD_SECS + msf.c[1]) * CD_FRAMES + msf.c[0] - CD_MSF_OFFSET; |
i | 869 | drivers/cdrom/sbpcd.c | if (i<0) return (0); |
i | 870 | drivers/cdrom/sbpcd.c | return (i); |
i | 878 | drivers/cdrom/sbpcd.c | int i; |
i | 880 | drivers/cdrom/sbpcd.c | i=(msf[0] * CD_SECS + msf[1]) * CD_FRAMES + msf[2] - CD_MSF_OFFSET; |
i | 881 | drivers/cdrom/sbpcd.c | if (i<0) return (0); |
i | 882 | drivers/cdrom/sbpcd.c | return (i); |
i | 923 | drivers/cdrom/sbpcd.c | int i; |
i | 925 | drivers/cdrom/sbpcd.c | for (i=0;i<10;i++) drvcmd[i]=0; |
i | 931 | drivers/cdrom/sbpcd.c | int i; |
i | 934 | drivers/cdrom/sbpcd.c | for (i=maxtim_data;i!=0;i--) inb(CDi_status); |
i | 939 | drivers/cdrom/sbpcd.c | int i,j; |
i | 941 | drivers/cdrom/sbpcd.c | for(timeout = jiffies + 10*HZ, i=maxtim_data; timeout > jiffies; ) |
i | 943 | drivers/cdrom/sbpcd.c | for ( ;i!=0;i--) |
i | 951 | drivers/cdrom/sbpcd.c | i = 1; |
i | 961 | drivers/cdrom/sbpcd.c | int i; |
i | 963 | drivers/cdrom/sbpcd.c | i=inb(CDi_status); |
i | 964 | drivers/cdrom/sbpcd.c | if (i&s_not_data_ready) return (0); |
i | 970 | drivers/cdrom/sbpcd.c | int i; |
i | 972 | drivers/cdrom/sbpcd.c | i=inb(CDi_status); |
i | 973 | drivers/cdrom/sbpcd.c | if (i&s_not_result_ready) return (0); |
i | 979 | drivers/cdrom/sbpcd.c | int i; |
i | 981 | drivers/cdrom/sbpcd.c | i=inb(CDi_status); |
i | 982 | drivers/cdrom/sbpcd.c | if (i&s_attention) return (1); |
i | 990 | drivers/cdrom/sbpcd.c | int i,j,st=0; |
i | 993 | drivers/cdrom/sbpcd.c | for (i=0,timeout=jiffies+HZ;i<response_count;i++) |
i | 1007 | drivers/cdrom/sbpcd.c | infobuf[i]=inb(CDi_info); |
i | 1012 | drivers/cdrom/sbpcd.c | infobuf[i++]=inb(CDi_info); |
i | 1014 | drivers/cdrom/sbpcd.c | j=i-response_count; |
i | 1017 | drivers/cdrom/sbpcd.c | for (j=0;j<i;j++) |
i | 1020 | drivers/cdrom/sbpcd.c | msg(DBG_CMD,"ResponseInfo:%s (%d,%d)\n",msgbuf,response_count,i); |
i | 1021 | drivers/cdrom/sbpcd.c | j=response_count-i; |
i | 1023 | drivers/cdrom/sbpcd.c | else return (i); |
i | 1079 | drivers/cdrom/sbpcd.c | int i; |
i | 1086 | drivers/cdrom/sbpcd.c | i=cmd_out_T(); |
i | 1087 | drivers/cdrom/sbpcd.c | if (i>=0) i=infobuf[0]; |
i | 1090 | drivers/cdrom/sbpcd.c | msg(DBG_TEA,"get_state_T error %d\n", i); |
i | 1091 | drivers/cdrom/sbpcd.c | return (i); |
i | 1093 | drivers/cdrom/sbpcd.c | if (i>=0) |
i | 1122 | drivers/cdrom/sbpcd.c | int i,j; |
i | 1135 | drivers/cdrom/sbpcd.c | i=inb(CDi_status); |
i | 1136 | drivers/cdrom/sbpcd.c | if (!(i&s_not_result_ready)) break; |
i | 1150 | drivers/cdrom/sbpcd.c | i=inb(CDi_info); |
i | 1151 | drivers/cdrom/sbpcd.c | msg(DBG_STA,"ResponseStatus: response %02X.\n", i); |
i | 1152 | drivers/cdrom/sbpcd.c | EvaluateStatus(i); |
i | 1153 | drivers/cdrom/sbpcd.c | msg(DBG_STA,"status_bits=%02X, i=%02X\n",D_S[d].status_bits,i); |
i | 1159 | drivers/cdrom/sbpcd.c | int i; |
i | 1167 | drivers/cdrom/sbpcd.c | if (!fam0LV_drive) for (i=0;i<6;i++) OUT(CDo_command,0); |
i | 1173 | drivers/cdrom/sbpcd.c | int i; |
i | 1203 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 1205 | drivers/cdrom/sbpcd.c | msg(DBG_ERR,"cc_ReadError: cmd_out(CMDx_READ_ERR) returns %d (%02X)\n",i,i); |
i | 1206 | drivers/cdrom/sbpcd.c | if (i<0) return (i); |
i | 1207 | drivers/cdrom/sbpcd.c | if (fam0V_drive) i=1; |
i | 1208 | drivers/cdrom/sbpcd.c | else i=2; |
i | 1209 | drivers/cdrom/sbpcd.c | D_S[d].error_byte=infobuf[i]; |
i | 1210 | drivers/cdrom/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 | 1211 | drivers/cdrom/sbpcd.c | i=sta2err(infobuf[i]); |
i | 1212 | drivers/cdrom/sbpcd.c | return (i); |
i | 1222 | drivers/cdrom/sbpcd.c | int i, j, l=0, m, ntries; |
i | 1229 | drivers/cdrom/sbpcd.c | for (i=0;i<10;i++) sprintf(&msgbuf[i*3]," %02X",drvcmd[i]); |
i | 1230 | drivers/cdrom/sbpcd.c | msgbuf[i*3]=0; |
i | 1235 | drivers/cdrom/sbpcd.c | i=inb(CDi_status); |
i | 1237 | drivers/cdrom/sbpcd.c | if ((f_16bit)&&(!(i&0x80))) |
i | 1242 | drivers/cdrom/sbpcd.c | if (!(i&s_not_result_ready)) |
i | 1246 | drivers/cdrom/sbpcd.c | i=inb(CDi_status); |
i | 1250 | drivers/cdrom/sbpcd.c | while (!(i&s_not_result_ready)); |
i | 1252 | drivers/cdrom/sbpcd.c | for (i=0;i<10;i++) OUT(CDo_command,drvcmd[i]); |
i | 1258 | drivers/cdrom/sbpcd.c | i=inb(CDi_status); |
i | 1259 | drivers/cdrom/sbpcd.c | if (!(i&s_not_data_ready)) /* f.e. CMDT_DISKINFO */ |
i | 1270 | drivers/cdrom/sbpcd.c | i=inw(CDi_data); |
i | 1271 | drivers/cdrom/sbpcd.c | infobuf[l++]=i&0x0ff; |
i | 1272 | drivers/cdrom/sbpcd.c | infobuf[l++]=i>>8; |
i | 1283 | drivers/cdrom/sbpcd.c | i=inb(CDi_status); |
i | 1285 | drivers/cdrom/sbpcd.c | while (!(i&s_not_data_ready)); |
i | 1297 | drivers/cdrom/sbpcd.c | if (do_16bit) i=inw(CDi_data); |
i | 1298 | drivers/cdrom/sbpcd.c | else i=inb(CDi_data); |
i | 1300 | drivers/cdrom/sbpcd.c | i=inb(CDi_status); |
i | 1302 | drivers/cdrom/sbpcd.c | while (!(i&s_not_data_ready)); |
i | 1307 | drivers/cdrom/sbpcd.c | i=inb(CDi_status); |
i | 1308 | drivers/cdrom/sbpcd.c | if (!(i&s_not_result_ready)) |
i | 1316 | drivers/cdrom/sbpcd.c | i=inb(CDi_status); |
i | 1318 | drivers/cdrom/sbpcd.c | while (!(i&s_not_result_ready)); |
i | 1363 | drivers/cdrom/sbpcd.c | int i=0; |
i | 1369 | drivers/cdrom/sbpcd.c | for (i=0;i<7;i++) |
i | 1370 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", drvcmd[i]); |
i | 1371 | drivers/cdrom/sbpcd.c | msgbuf[i*3]=0; |
i | 1374 | drivers/cdrom/sbpcd.c | for (i=0;i<7;i++) OUT(CDo_command,drvcmd[i]); |
i | 1386 | drivers/cdrom/sbpcd.c | else i=ResponseInfo(); |
i | 1387 | drivers/cdrom/sbpcd.c | if (i<0) return (i); |
i | 1392 | drivers/cdrom/sbpcd.c | i=CDi_stat_loop(); |
i | 1393 | drivers/cdrom/sbpcd.c | if ((i<0)||!(i&s_attention)) return (-8); |
i | 1405 | drivers/cdrom/sbpcd.c | i=ResponseStatus(); |
i | 1407 | drivers/cdrom/sbpcd.c | if (i<0) return (i); |
i | 1412 | drivers/cdrom/sbpcd.c | if ((flags_cmd_out&f_bit1)&&(i&p_success)) goto LOC_232; |
i | 1421 | drivers/cdrom/sbpcd.c | i=cc_ReadError(); |
i | 1423 | drivers/cdrom/sbpcd.c | msg(DBG_000,"cmd_out: cc_ReadError=%d\n", i); |
i | 1424 | drivers/cdrom/sbpcd.c | return (i); |
i | 1429 | drivers/cdrom/sbpcd.c | int i; |
i | 1479 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 1480 | drivers/cdrom/sbpcd.c | return (i); |
i | 1485 | drivers/cdrom/sbpcd.c | int i; |
i | 1516 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 1518 | drivers/cdrom/sbpcd.c | return (i); |
i | 1523 | drivers/cdrom/sbpcd.c | int i; |
i | 1555 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 1556 | drivers/cdrom/sbpcd.c | return (i); |
i | 1561 | drivers/cdrom/sbpcd.c | int i; |
i | 1567 | drivers/cdrom/sbpcd.c | i=cmd_out_T(); |
i | 1568 | drivers/cdrom/sbpcd.c | return (i); |
i | 1573 | drivers/cdrom/sbpcd.c | int i; |
i | 1587 | drivers/cdrom/sbpcd.c | i=cmd_out_T(); |
i | 1588 | drivers/cdrom/sbpcd.c | return (i); |
i | 1593 | drivers/cdrom/sbpcd.c | int i, j; |
i | 1595 | drivers/cdrom/sbpcd.c | i=cc_get_mode_T(); |
i | 1596 | drivers/cdrom/sbpcd.c | if (i<0) return (i); |
i | 1597 | drivers/cdrom/sbpcd.c | for (i=0;i<10;i++) |
i | 1598 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 1599 | drivers/cdrom/sbpcd.c | msgbuf[i*3]=0; |
i | 1611 | drivers/cdrom/sbpcd.c | i=cc_get_mode_T(); |
i | 1612 | drivers/cdrom/sbpcd.c | for (i=0;i<10;i++) |
i | 1613 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 1614 | drivers/cdrom/sbpcd.c | msgbuf[i*3]=0; |
i | 1621 | drivers/cdrom/sbpcd.c | int i; |
i | 1654 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 1655 | drivers/cdrom/sbpcd.c | return (i); |
i | 1660 | drivers/cdrom/sbpcd.c | int i; |
i | 1759 | drivers/cdrom/sbpcd.c | i=channel1; |
i | 1761 | drivers/cdrom/sbpcd.c | channel0=i; |
i | 1762 | drivers/cdrom/sbpcd.c | i=volume1; |
i | 1764 | drivers/cdrom/sbpcd.c | volume0=i; |
i | 1812 | drivers/cdrom/sbpcd.c | i=cc_prep_mode_T(); |
i | 1813 | drivers/cdrom/sbpcd.c | if (i<0) return (i); |
i | 1818 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 1819 | drivers/cdrom/sbpcd.c | if (i<0) return (i); |
i | 1827 | drivers/cdrom/sbpcd.c | int i; |
i | 1833 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 1834 | drivers/cdrom/sbpcd.c | return (i); |
i | 1839 | drivers/cdrom/sbpcd.c | int i; |
i | 1849 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 1855 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 1863 | drivers/cdrom/sbpcd.c | for (i=1;i<10;i++) OUT(CDo_command,0); |
i | 1875 | drivers/cdrom/sbpcd.c | i=GetStatus(); |
i | 1876 | drivers/cdrom/sbpcd.c | if (i<0) return i; |
i | 1884 | drivers/cdrom/sbpcd.c | int i, speed; |
i | 1893 | drivers/cdrom/sbpcd.c | i=cc_SetSpeed(speed,0,0); |
i | 1894 | drivers/cdrom/sbpcd.c | return (i); |
i | 1899 | drivers/cdrom/sbpcd.c | int i; |
i | 1901 | drivers/cdrom/sbpcd.c | i=cc_DriveReset(); |
i | 1902 | drivers/cdrom/sbpcd.c | if (i<0) return (-22); |
i | 1905 | drivers/cdrom/sbpcd.c | i=GetStatus(); |
i | 1906 | drivers/cdrom/sbpcd.c | if ((i<0)&&(i!=-615)) return (-2); /* i!=-615 is from sta2err */ |
i | 1916 | drivers/cdrom/sbpcd.c | i=DiskInfo(); |
i | 1917 | drivers/cdrom/sbpcd.c | if (i<0) return (-23); |
i | 1924 | drivers/cdrom/sbpcd.c | int i, j, n; |
i | 1932 | drivers/cdrom/sbpcd.c | i=msf2blk(pos_audio_start); |
i | 1933 | drivers/cdrom/sbpcd.c | n=msf2blk(pos_audio_end)+1-i; |
i | 1934 | drivers/cdrom/sbpcd.c | drvcmd[1]=(i>>16)&0x00FF; |
i | 1935 | drivers/cdrom/sbpcd.c | drvcmd[2]=(i>>8)&0x00FF; |
i | 1936 | drivers/cdrom/sbpcd.c | drvcmd[3]=i&0x00FF; |
i | 1979 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 1980 | drivers/cdrom/sbpcd.c | return (i); |
i | 1985 | drivers/cdrom/sbpcd.c | int i; |
i | 2020 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 2021 | drivers/cdrom/sbpcd.c | return (i); |
i | 2026 | drivers/cdrom/sbpcd.c | int i; |
i | 2059 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 2061 | drivers/cdrom/sbpcd.c | return (i); |
i | 2067 | drivers/cdrom/sbpcd.c | int i,j; |
i | 2072 | drivers/cdrom/sbpcd.c | i=cc_LockDoor(0); |
i | 2076 | drivers/cdrom/sbpcd.c | while ((i<0)&&(j)); |
i | 2077 | drivers/cdrom/sbpcd.c | if (i<0) |
i | 2087 | drivers/cdrom/sbpcd.c | int i,j; |
i | 2092 | drivers/cdrom/sbpcd.c | i=cc_LockDoor(1); |
i | 2096 | drivers/cdrom/sbpcd.c | while ((i<0)&&(j)); |
i | 2103 | drivers/cdrom/sbpcd.c | i=cc_LockDoor(1); |
i | 2107 | drivers/cdrom/sbpcd.c | while ((i<0)&&(j)); |
i | 2109 | drivers/cdrom/sbpcd.c | return (i); |
i | 2114 | drivers/cdrom/sbpcd.c | int i; |
i | 2148 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 2150 | drivers/cdrom/sbpcd.c | return (i); |
i | 2155 | drivers/cdrom/sbpcd.c | int i,j; |
i | 2194 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 2195 | drivers/cdrom/sbpcd.c | if (i<0) return (i); |
i | 2196 | drivers/cdrom/sbpcd.c | for (i=0;i<response_count;i++) |
i | 2198 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 2199 | drivers/cdrom/sbpcd.c | msgbuf[i*3]=0; |
i | 2215 | drivers/cdrom/sbpcd.c | if (fam0LV_drive) i=5; |
i | 2216 | drivers/cdrom/sbpcd.c | else if (fam12_drive) i=4; |
i | 2217 | drivers/cdrom/sbpcd.c | else if (famT_drive) i=8; |
i | 2218 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_run_tot=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */ |
i | 2219 | drivers/cdrom/sbpcd.c | i=7; |
i | 2220 | drivers/cdrom/sbpcd.c | if (fam0LV_drive) i=9; |
i | 2221 | drivers/cdrom/sbpcd.c | else if (fam12_drive) i=7; |
i | 2222 | drivers/cdrom/sbpcd.c | else if (famT_drive) i=4; |
i | 2223 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_run_trk=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */ |
i | 2224 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_whatisthis=infobuf[i+3]; |
i | 2231 | drivers/cdrom/sbpcd.c | int i; |
i | 2256 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 2257 | drivers/cdrom/sbpcd.c | if (i<0) return (i); |
i | 2258 | drivers/cdrom/sbpcd.c | i=0; |
i | 2260 | drivers/cdrom/sbpcd.c | if (fam1_drive) D_S[d].sense_byte=infobuf[i++]; |
i | 2265 | drivers/cdrom/sbpcd.c | i=2; |
i | 2267 | drivers/cdrom/sbpcd.c | D_S[d].frame_size=make16(infobuf[i],infobuf[i+1]); |
i | 2268 | drivers/cdrom/sbpcd.c | for (i=0;i<response_count;i++) |
i | 2269 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 2270 | drivers/cdrom/sbpcd.c | msgbuf[i*3]=0; |
i | 2280 | drivers/cdrom/sbpcd.c | int i; |
i | 2319 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 2320 | drivers/cdrom/sbpcd.c | if (i<0) return (i); |
i | 2327 | drivers/cdrom/sbpcd.c | int i; |
i | 2363 | drivers/cdrom/sbpcd.c | i=cc_get_mode_T(); |
i | 2364 | drivers/cdrom/sbpcd.c | if (i<0) return (i); |
i | 2368 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 2369 | drivers/cdrom/sbpcd.c | if (i<0) return (i); |
i | 2462 | drivers/cdrom/sbpcd.c | int i, j; |
i | 2491 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 2492 | drivers/cdrom/sbpcd.c | if (i>=0) break; |
i | 2493 | drivers/cdrom/sbpcd.c | msg(DBG_000,"cc_ReadCapacity: cmd_out: err %d\n", i); |
i | 2496 | drivers/cdrom/sbpcd.c | if (j==0) return (i); |
i | 2509 | drivers/cdrom/sbpcd.c | int i; |
i | 2549 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 2550 | drivers/cdrom/sbpcd.c | if (i<0) return (i); |
i | 2551 | drivers/cdrom/sbpcd.c | if ((famT_drive)&&(i<response_count)) return (-100-i); |
i | 2579 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 2580 | drivers/cdrom/sbpcd.c | if (i<0) return (i); |
i | 2592 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 2593 | drivers/cdrom/sbpcd.c | if (i<0) return (i); |
i | 2625 | drivers/cdrom/sbpcd.c | int i; |
i | 2664 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 2665 | drivers/cdrom/sbpcd.c | if (i<0) return (i); |
i | 2666 | drivers/cdrom/sbpcd.c | if ((famT_drive)&&(i<response_count)) return (-100-i); |
i | 2670 | drivers/cdrom/sbpcd.c | i=1; |
i | 2672 | drivers/cdrom/sbpcd.c | else if (fam2_drive) i=0; |
i | 2673 | drivers/cdrom/sbpcd.c | else if (famT_drive) i=5; |
i | 2674 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_ctl_adr=swap_nibbles(infobuf[i++]); |
i | 2677 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_number=infobuf[i++]; |
i | 2678 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_format=infobuf[i]; |
i | 2685 | drivers/cdrom/sbpcd.c | if (fam1_drive) i=4; |
i | 2686 | drivers/cdrom/sbpcd.c | else if (fam0LV_drive) i=5; |
i | 2687 | drivers/cdrom/sbpcd.c | else if (fam2_drive) i=2; |
i | 2688 | drivers/cdrom/sbpcd.c | else if (famT_drive) i=9; |
i | 2689 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_address=make32(make16(0,infobuf[i]), |
i | 2690 | drivers/cdrom/sbpcd.c | make16(infobuf[i+1],infobuf[i+2])); |
i | 2691 | drivers/cdrom/sbpcd.c | for (i=0;i<response_count;i++) |
i | 2692 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 2693 | drivers/cdrom/sbpcd.c | msgbuf[i*3]=0; |
i | 2704 | drivers/cdrom/sbpcd.c | int i; |
i | 2717 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 2718 | drivers/cdrom/sbpcd.c | return (i); |
i | 2723 | drivers/cdrom/sbpcd.c | int i; |
i | 2727 | drivers/cdrom/sbpcd.c | for (i=0;i<7;i++) |
i | 2729 | drivers/cdrom/sbpcd.c | if (fam1_drive) D_S[d].UPC_buf[i]=swap_nibbles(*p++); |
i | 2732 | drivers/cdrom/sbpcd.c | D_S[d].UPC_buf[i]=((*p++)<<4)&0xFF; |
i | 2733 | drivers/cdrom/sbpcd.c | D_S[d].UPC_buf[i] |= *p++; |
i | 2750 | drivers/cdrom/sbpcd.c | int i; |
i | 2798 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 2799 | drivers/cdrom/sbpcd.c | if (i<0) |
i | 2801 | drivers/cdrom/sbpcd.c | msg(DBG_000,"cc_ReadUPC cmd_out: err %d\n", i); |
i | 2802 | drivers/cdrom/sbpcd.c | return (i); |
i | 2808 | drivers/cdrom/sbpcd.c | i=cc_ReadPacket(); |
i | 2809 | drivers/cdrom/sbpcd.c | if (i<0) |
i | 2811 | drivers/cdrom/sbpcd.c | msg(DBG_000,"cc_ReadUPC ReadPacket: err %d\n", i); |
i | 2812 | drivers/cdrom/sbpcd.c | return (i); |
i | 2818 | drivers/cdrom/sbpcd.c | for (i=0;i<(fam1_drive?8:16);i++) |
i | 2821 | drivers/cdrom/sbpcd.c | checksum |= infobuf[i]; |
i | 2823 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 2825 | drivers/cdrom/sbpcd.c | msgbuf[i*3]=0; |
i | 2832 | drivers/cdrom/sbpcd.c | if (fam1_drive) i=0; |
i | 2833 | drivers/cdrom/sbpcd.c | else i=2; |
i | 2834 | drivers/cdrom/sbpcd.c | if ((infobuf[i]&0x80)!=0) |
i | 2836 | drivers/cdrom/sbpcd.c | convert_UPC(&infobuf[i]); |
i | 2839 | drivers/cdrom/sbpcd.c | for (i=0;i<7;i++) |
i | 2840 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", D_S[d].UPC_buf[i]); |
i | 2841 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " (%02X)", D_S[d].UPC_ctl_adr); |
i | 2842 | drivers/cdrom/sbpcd.c | msgbuf[i*3+5]=0; |
i | 2850 | drivers/cdrom/sbpcd.c | int i; |
i | 2862 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 2863 | drivers/cdrom/sbpcd.c | if (i<0) return (i); |
i | 2878 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 2879 | drivers/cdrom/sbpcd.c | if (i<0) return (i); |
i | 2891 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 2892 | drivers/cdrom/sbpcd.c | if (i<0) return (i); |
i | 2893 | drivers/cdrom/sbpcd.c | if (i<response_count) return (-100-i); |
i | 2903 | drivers/cdrom/sbpcd.c | for (i=0;i<response_count;i++) |
i | 2904 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 2905 | drivers/cdrom/sbpcd.c | msgbuf[i*3]=0; |
i | 2919 | drivers/cdrom/sbpcd.c | int i; |
i | 2939 | drivers/cdrom/sbpcd.c | i=cmd_out(); /* which buffer to use? */ |
i | 2940 | drivers/cdrom/sbpcd.c | return (i); |
i | 2946 | drivers/cdrom/sbpcd.c | int i=0; |
i | 2951 | drivers/cdrom/sbpcd.c | for (i=0;i<=1000;i++) printk("."); |
i | 2965 | drivers/cdrom/sbpcd.c | i=inb(CDi_status); |
i | 2994 | drivers/cdrom/sbpcd.c | int i; |
i | 3002 | drivers/cdrom/sbpcd.c | i=do_cmd(f_putcmd|f_lopsta|f_getsta|f_ResponseStatus); |
i | 3007 | drivers/cdrom/sbpcd.c | i=do_cmd(f_putcmd); |
i | 3010 | drivers/cdrom/sbpcd.c | return (i); |
i | 3016 | drivers/cdrom/sbpcd.c | int i; |
i | 3023 | drivers/cdrom/sbpcd.c | for (i=0;i<12;i++) |
i | 3024 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 3025 | drivers/cdrom/sbpcd.c | msgbuf[i*3]=0; |
i | 3027 | drivers/cdrom/sbpcd.c | for (i=0;i<12;i++) |
i | 3028 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %c ", infobuf[i]); |
i | 3029 | drivers/cdrom/sbpcd.c | msgbuf[i*3]=0; |
i | 3035 | drivers/cdrom/sbpcd.c | int i, j, l; |
i | 3047 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 3048 | drivers/cdrom/sbpcd.c | if (i<0) msg(DBG_INI,"CMD0_READ_ERR returns %d (ok anyway).\n",i); |
i | 3051 | drivers/cdrom/sbpcd.c | for (i=0;i<12;i++) infobuf[i]=0; |
i | 3055 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 3056 | drivers/cdrom/sbpcd.c | if (i<-1) msg(DBG_INI,"CMD0_READ_VER returns %d\n",i); |
i | 3057 | drivers/cdrom/sbpcd.c | if (i==-11) teac_possible++; |
i | 3059 | drivers/cdrom/sbpcd.c | for (i=0;i<12;i++) j+=infobuf[i]; |
i | 3062 | drivers/cdrom/sbpcd.c | for (i=0;i<12;i++) |
i | 3063 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 3064 | drivers/cdrom/sbpcd.c | msgbuf[i*3]=0; |
i | 3066 | drivers/cdrom/sbpcd.c | for (i=0;i<12;i++) |
i | 3067 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %c ", infobuf[i]); |
i | 3068 | drivers/cdrom/sbpcd.c | msgbuf[i*3]=0; |
i | 3071 | drivers/cdrom/sbpcd.c | for (i=0;i<4;i++) if (infobuf[i]!=family1[i]) break; |
i | 3072 | drivers/cdrom/sbpcd.c | if (i==4) |
i | 3078 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[4]=infobuf[i++]; |
i | 3079 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[5]=infobuf[i++]; |
i | 3085 | drivers/cdrom/sbpcd.c | for (i=0;i<8;i++) if (infobuf[i]!=family0[i]) break; |
i | 3086 | drivers/cdrom/sbpcd.c | if (i==8) |
i | 3100 | drivers/cdrom/sbpcd.c | for (i=0;i<8;i++) if (infobuf[i]!=familyL[i]) break; |
i | 3101 | drivers/cdrom/sbpcd.c | if (i==8) |
i | 3111 | drivers/cdrom/sbpcd.c | for (i=0;i<6;i++) if (infobuf[i]!=familyV[i]) break; |
i | 3112 | drivers/cdrom/sbpcd.c | if (i==6) |
i | 3118 | drivers/cdrom/sbpcd.c | i+=2; /* 2 blanks before version */ |
i | 3128 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 3129 | drivers/cdrom/sbpcd.c | if (i<0) msg(DBG_INI,"CMD2_READERR returns %d (ok anyway).\n",i); |
i | 3130 | drivers/cdrom/sbpcd.c | if (i<0) msg(DBG_000,"CMD2_READERR returns %d (ok anyway).\n",i); |
i | 3133 | drivers/cdrom/sbpcd.c | for (i=0;i<12;i++) infobuf[i]=0; |
i | 3143 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 3144 | drivers/cdrom/sbpcd.c | if (i<0) msg(DBG_INI,"CMD2_READ_VER returns %d\n",i); |
i | 3145 | drivers/cdrom/sbpcd.c | if (i==-7) teac_possible++; |
i | 3147 | drivers/cdrom/sbpcd.c | for (i=0;i<12;i++) j+=infobuf[i]; |
i | 3150 | drivers/cdrom/sbpcd.c | for (i=0;i<12;i++) |
i | 3151 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
i | 3152 | drivers/cdrom/sbpcd.c | msgbuf[i*3]=0; |
i | 3154 | drivers/cdrom/sbpcd.c | for (i=0;i<12;i++) |
i | 3155 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %c ", infobuf[i]); |
i | 3156 | drivers/cdrom/sbpcd.c | msgbuf[i*3]=0; |
i | 3159 | drivers/cdrom/sbpcd.c | if (i>=0) |
i | 3161 | drivers/cdrom/sbpcd.c | for (i=0;i<5;i++) if (infobuf[i]!=family2[i]) break; |
i | 3162 | drivers/cdrom/sbpcd.c | if (i==5) |
i | 3169 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[5]=infobuf[i++]; |
i | 3170 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[6]=infobuf[i++]; |
i | 3191 | drivers/cdrom/sbpcd.c | for (i=0;i<9;i++) OUT(CDo_command,0); |
i | 3196 | drivers/cdrom/sbpcd.c | i=inb(CDi_status); |
i | 3197 | drivers/cdrom/sbpcd.c | msg(DBG_TEA,"TEAC CDi_status: %02X.\n",i); |
i | 3199 | drivers/cdrom/sbpcd.c | if (i&s_not_result_ready) continue; /* drive not present or ready */ |
i | 3201 | drivers/cdrom/sbpcd.c | i=inb(CDi_info); |
i | 3202 | drivers/cdrom/sbpcd.c | msg(DBG_TEA,"TEAC CDi_info: %02X.\n",i); |
i | 3203 | drivers/cdrom/sbpcd.c | if (i==0x55) break; /* drive found */ |
i | 3205 | drivers/cdrom/sbpcd.c | if (i==0x55) break; /* drive found */ |
i | 3207 | drivers/cdrom/sbpcd.c | if (i==0x55) /* drive found */ |
i | 3215 | drivers/cdrom/sbpcd.c | for (i=0;i<12;i++) infobuf[i]=0; |
i | 3216 | drivers/cdrom/sbpcd.c | i=cmd_out_T(); |
i | 3217 | drivers/cdrom/sbpcd.c | if (i!=0) msg(DBG_TEA,"cmd_out_T(CMDT_READ_VER) returns %d.\n",i); |
i | 3218 | drivers/cdrom/sbpcd.c | for (i=1;i<6;i++) if (infobuf[i]!=familyT[i-1]) break; |
i | 3219 | drivers/cdrom/sbpcd.c | if (i==6) |
i | 3236 | drivers/cdrom/sbpcd.c | for (j=0;j<4;j++) D_S[d].firmware_version[j]=infobuf[i+j]; |
i | 3319 | drivers/cdrom/sbpcd.c | static void switch_drive(int i) |
i | 3321 | drivers/cdrom/sbpcd.c | d=i; |
i | 3323 | drivers/cdrom/sbpcd.c | msg(DBG_DID,"drive %d (ID=%d) activated.\n", i, D_S[d].drv_id); |
i | 3335 | drivers/cdrom/sbpcd.c | int i, j, k; |
i | 3348 | drivers/cdrom/sbpcd.c | for (i=10;i>0;i--) OUT(port+0,0); |
i | 3352 | drivers/cdrom/sbpcd.c | for (i=10000;i>0;i--) |
i | 3359 | drivers/cdrom/sbpcd.c | for (i=0;i<N_RESPO;i++) |
i | 3360 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", response[i]); |
i | 3361 | drivers/cdrom/sbpcd.c | msgbuf[i*3]=0; |
i | 3364 | drivers/cdrom/sbpcd.c | for (i=10;i>0;i--) OUT(port+0,0); |
i | 3368 | drivers/cdrom/sbpcd.c | for (i=10000;i>0;i--) |
i | 3375 | drivers/cdrom/sbpcd.c | for (i=0;i<N_RESPO;i++) |
i | 3376 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", response[i]); |
i | 3377 | drivers/cdrom/sbpcd.c | msgbuf[i*3]=0; |
i | 3388 | drivers/cdrom/sbpcd.c | for (i=10;i>0;i--) OUT(port+0,0); |
i | 3392 | drivers/cdrom/sbpcd.c | for (i=1000000;i>0;i--) |
i | 3399 | drivers/cdrom/sbpcd.c | for (i=0;i<N_RESPO;i++) |
i | 3400 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", response[i]); |
i | 3401 | drivers/cdrom/sbpcd.c | msgbuf[i*3]=0; |
i | 3405 | drivers/cdrom/sbpcd.c | for (i=10;i>0;i--) OUT(port+0,0); |
i | 3409 | drivers/cdrom/sbpcd.c | for (i=1000000;i>0;i--) |
i | 3416 | drivers/cdrom/sbpcd.c | for (i=0;i<N_RESPO;i++) |
i | 3417 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", response[i]); |
i | 3418 | drivers/cdrom/sbpcd.c | msgbuf[i*3]=0; |
i | 3437 | drivers/cdrom/sbpcd.c | int i, j; |
i | 3449 | drivers/cdrom/sbpcd.c | i=check_version(); |
i | 3450 | drivers/cdrom/sbpcd.c | if (i<0) msg(DBG_INI,"check_version returns %d.\n",i); |
i | 3593 | drivers/cdrom/sbpcd.c | int i; |
i | 3595 | drivers/cdrom/sbpcd.c | i=msf2blk(D_S[d].pos_audio_end)-1; |
i | 3596 | drivers/cdrom/sbpcd.c | if (i<0) return (-1); |
i | 3597 | drivers/cdrom/sbpcd.c | i=cc_Seek(i,0); |
i | 3598 | drivers/cdrom/sbpcd.c | return (i); |
i | 3604 | drivers/cdrom/sbpcd.c | int i, j; |
i | 3609 | drivers/cdrom/sbpcd.c | i=cc_ReadTocEntry(j); |
i | 3610 | drivers/cdrom/sbpcd.c | if (i<0) |
i | 3612 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"cc_ReadTocEntry(%d) returns %d.\n",j,i); |
i | 3613 | drivers/cdrom/sbpcd.c | return (i); |
i | 3635 | drivers/cdrom/sbpcd.c | int i, j; |
i | 3645 | drivers/cdrom/sbpcd.c | i=SetSpeed(); |
i | 3646 | drivers/cdrom/sbpcd.c | if (i<0) |
i | 3648 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"DiskInfo: SetSpeed returns %d\n", i); |
i | 3651 | drivers/cdrom/sbpcd.c | i=cc_ModeSense(); |
i | 3652 | drivers/cdrom/sbpcd.c | if (i<0) |
i | 3654 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"DiskInfo: cc_ModeSense returns %d\n", i); |
i | 3657 | drivers/cdrom/sbpcd.c | i=cc_ReadCapacity(); |
i | 3658 | drivers/cdrom/sbpcd.c | if (i>=0) break; |
i | 3659 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"DiskInfo: ReadCapacity #%d returns %d\n", j, i); |
i | 3660 | drivers/cdrom/sbpcd.c | i=cc_DriveReset(); |
i | 3664 | drivers/cdrom/sbpcd.c | i=cc_ReadTocDescr(); |
i | 3665 | drivers/cdrom/sbpcd.c | if (i<0) |
i | 3667 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"DiskInfo: ReadTocDescr returns %d\n", i); |
i | 3668 | drivers/cdrom/sbpcd.c | return (i); |
i | 3670 | drivers/cdrom/sbpcd.c | i=ReadToC(); |
i | 3671 | drivers/cdrom/sbpcd.c | if (i<0) |
i | 3673 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"DiskInfo: ReadToC returns %d\n", i); |
i | 3674 | drivers/cdrom/sbpcd.c | return (i); |
i | 3676 | drivers/cdrom/sbpcd.c | i=cc_CheckMultiSession(); |
i | 3677 | drivers/cdrom/sbpcd.c | if (i<0) |
i | 3679 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"DiskInfo: cc_CheckMultiSession returns %d\n", i); |
i | 3680 | drivers/cdrom/sbpcd.c | return (i); |
i | 3684 | drivers/cdrom/sbpcd.c | i=cc_ReadTocEntry(D_S[d].n_first_track); |
i | 3685 | drivers/cdrom/sbpcd.c | if (i<0) |
i | 3687 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"DiskInfo: cc_ReadTocEntry(1) returns %d\n", i); |
i | 3688 | drivers/cdrom/sbpcd.c | return (i); |
i | 3690 | drivers/cdrom/sbpcd.c | i=cc_ReadUPC(); |
i | 3691 | drivers/cdrom/sbpcd.c | if (i<0) msg(DBG_INF,"DiskInfo: cc_ReadUPC returns %d\n", i); |
i | 3710 | drivers/cdrom/sbpcd.c | int i; |
i | 3714 | drivers/cdrom/sbpcd.c | i=inb(CDi_status); |
i | 3715 | drivers/cdrom/sbpcd.c | if (i&s_attention) GetStatus(); |
i | 3726 | drivers/cdrom/sbpcd.c | i=check_allowed1(func,subfunc); |
i | 3727 | drivers/cdrom/sbpcd.c | if (i<0) return (-2); |
i | 3731 | drivers/cdrom/sbpcd.c | i=check_allowed3(func,subfunc); |
i | 3732 | drivers/cdrom/sbpcd.c | if (i<0) |
i | 3745 | drivers/cdrom/sbpcd.c | i=check_allowed1(func,subfunc); |
i | 3746 | drivers/cdrom/sbpcd.c | if (i<0) return (-2); |
i | 3754 | drivers/cdrom/sbpcd.c | i=check_allowed2(func,subfunc); |
i | 3755 | drivers/cdrom/sbpcd.c | if (i<0) return (-2); |
i | 3765 | drivers/cdrom/sbpcd.c | i=DiskInfo(); |
i | 3766 | drivers/cdrom/sbpcd.c | if (i<0) |
i | 3770 | drivers/cdrom/sbpcd.c | i=check_allowed1(func,subfunc); |
i | 3771 | drivers/cdrom/sbpcd.c | if (i<0) return (-2); |
i | 3834 | drivers/cdrom/sbpcd.c | int i, st; |
i | 3839 | drivers/cdrom/sbpcd.c | i=MINOR(inode->i_rdev); |
i | 3840 | drivers/cdrom/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1)) |
i | 3845 | drivers/cdrom/sbpcd.c | if (d!=i) switch_drive(i); |
i | 3853 | drivers/cdrom/sbpcd.c | i=DiskInfo(); |
i | 3854 | drivers/cdrom/sbpcd.c | if (i<0) return (-EIO); /* error reading TOC */ |
i | 3858 | drivers/cdrom/sbpcd.c | msg(DBG_IO2,"ioctl: device %d, request %04X\n",i,cmd); |
i | 3863 | drivers/cdrom/sbpcd.c | i=sbpcd_dbg_ioctl(arg,1); |
i | 3864 | drivers/cdrom/sbpcd.c | return (i); |
i | 3875 | drivers/cdrom/sbpcd.c | if (famL_drive) i=cc_ReadSubQ(); |
i | 3876 | drivers/cdrom/sbpcd.c | else i=cc_Pause_Resume(1); |
i | 3877 | drivers/cdrom/sbpcd.c | if (i<0) return (-EIO); |
i | 3878 | drivers/cdrom/sbpcd.c | if (famL_drive) i=cc_Pause_Resume(1); |
i | 3879 | drivers/cdrom/sbpcd.c | else i=cc_ReadSubQ(); |
i | 3880 | drivers/cdrom/sbpcd.c | if (i<0) return (-EIO); |
i | 3885 | drivers/cdrom/sbpcd.c | i=cc_Seek(D_S[d].pos_audio_start,1); |
i | 3886 | drivers/cdrom/sbpcd.c | if (i<0) return (-EIO); |
i | 3899 | drivers/cdrom/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start, |
i | 3901 | drivers/cdrom/sbpcd.c | else i=cc_Pause_Resume(3); |
i | 3902 | drivers/cdrom/sbpcd.c | if (i<0) return (-EIO); |
i | 3910 | drivers/cdrom/sbpcd.c | i=cc_Pause_Resume(1); |
i | 3911 | drivers/cdrom/sbpcd.c | if (i<0) return (-EIO); |
i | 3912 | drivers/cdrom/sbpcd.c | i=cc_ReadSubQ(); |
i | 3913 | drivers/cdrom/sbpcd.c | if (i<0) return (-EIO); |
i | 3915 | drivers/cdrom/sbpcd.c | i=cc_Seek(D_S[d].pos_audio_start,1); |
i | 3929 | drivers/cdrom/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
i | 3930 | drivers/cdrom/sbpcd.c | msg(DBG_IOC,"ioctl: cc_PlayAudio returns %d\n",i); |
i | 3932 | drivers/cdrom/sbpcd.c | if (i<0) return (-EIO); |
i | 3960 | drivers/cdrom/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
i | 3962 | drivers/cdrom/sbpcd.c | if (i<0) return (-EIO); |
i | 3981 | drivers/cdrom/sbpcd.c | i=tocentry.cdte_track; |
i | 3982 | drivers/cdrom/sbpcd.c | if (i==CDROM_LEADOUT) i=D_S[d].n_last_track+1; |
i | 3983 | drivers/cdrom/sbpcd.c | else if (i<D_S[d].n_first_track||i>D_S[d].n_last_track) return (-EINVAL); |
i | 3984 | drivers/cdrom/sbpcd.c | tocentry.cdte_adr=D_S[d].TocBuffer[i].ctl_adr&0x0F; |
i | 3985 | drivers/cdrom/sbpcd.c | tocentry.cdte_ctrl=(D_S[d].TocBuffer[i].ctl_adr>>4)&0x0F; |
i | 3986 | drivers/cdrom/sbpcd.c | tocentry.cdte_datamode=D_S[d].TocBuffer[i].format; |
i | 3989 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.msf.minute=(D_S[d].TocBuffer[i].address>>16)&0x00FF; |
i | 3990 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.msf.second=(D_S[d].TocBuffer[i].address>>8)&0x00FF; |
i | 3991 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.msf.frame=D_S[d].TocBuffer[i].address&0x00FF; |
i | 3994 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.lba=msf2blk(D_S[d].TocBuffer[i].address); |
i | 4003 | drivers/cdrom/sbpcd.c | i=DriveReset(); |
i | 4005 | drivers/cdrom/sbpcd.c | return (i); |
i | 4009 | drivers/cdrom/sbpcd.c | i=cc_Pause_Resume(1); |
i | 4011 | drivers/cdrom/sbpcd.c | return (i); |
i | 4023 | drivers/cdrom/sbpcd.c | i=UnLockDoor(); |
i | 4025 | drivers/cdrom/sbpcd.c | i=cc_SpinDown(); |
i | 4026 | drivers/cdrom/sbpcd.c | msg(DBG_IOX,"ioctl: cc_SpinDown returned %d.\n", i); |
i | 4027 | drivers/cdrom/sbpcd.c | msg(DBG_TEA,"ioctl: cc_SpinDown returned %d.\n", i); |
i | 4028 | drivers/cdrom/sbpcd.c | if (i<0) return (-EIO); |
i | 4049 | drivers/cdrom/sbpcd.c | i=cc_SetVolume(); |
i | 4067 | drivers/cdrom/sbpcd.c | if ((st_spinning)||(!subq_valid)) { i=cc_ReadSubQ(); |
i | 4068 | drivers/cdrom/sbpcd.c | if (i<0) return (-EIO); |
i | 4146 | drivers/cdrom/sbpcd.c | int i=0, j=0, frame, block; |
i | 4162 | drivers/cdrom/sbpcd.c | i=verify_area(VERIFY_READ, (void *) arg, sizeof(struct cdrom_read_audio)); |
i | 4163 | drivers/cdrom/sbpcd.c | if (i) return (i); |
i | 4166 | drivers/cdrom/sbpcd.c | i=verify_area(VERIFY_WRITE, read_audio.buf, |
i | 4168 | drivers/cdrom/sbpcd.c | if (i) return (i); |
i | 4176 | drivers/cdrom/sbpcd.c | i=cc_SetSpeed(speed_150,0,0); |
i | 4177 | drivers/cdrom/sbpcd.c | if (i) msg(DBG_AUD,"read_audio: SetSpeed error %d\n", i); |
i | 4241 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 4242 | drivers/cdrom/sbpcd.c | if (i<0) msg(DBG_INF,"error giving READ AUDIO command: %0d\n", i); |
i | 4290 | drivers/cdrom/sbpcd.c | i=cc_DriveReset(); /* ugly fix to prevent a hang */ |
i | 4292 | drivers/cdrom/sbpcd.c | i=cc_ReadError(); |
i | 4298 | drivers/cdrom/sbpcd.c | i=maxtim_data; |
i | 4301 | drivers/cdrom/sbpcd.c | for ( ;i!=0;i--) |
i | 4308 | drivers/cdrom/sbpcd.c | if (i != 0 || timeout <= jiffies) break; |
i | 4310 | drivers/cdrom/sbpcd.c | i = 1; |
i | 4312 | drivers/cdrom/sbpcd.c | if (i==0) msg(DBG_AUD,"read_audio: STATUS TIMEOUT AFTER READ"); |
i | 4316 | drivers/cdrom/sbpcd.c | i=cc_DriveReset(); /* ugly fix to prevent a hang */ |
i | 4323 | drivers/cdrom/sbpcd.c | i=ResponseStatus(); /* builds status_bits, returns orig. status (old) or faked p_success (new) */ |
i | 4324 | drivers/cdrom/sbpcd.c | if (i<0) { msg(DBG_AUD, |
i | 4330 | drivers/cdrom/sbpcd.c | while ((fam0L_drive)&&(!st_check)&&(!(i&p_success))); |
i | 4333 | drivers/cdrom/sbpcd.c | i=cc_ReadError(); |
i | 4334 | drivers/cdrom/sbpcd.c | msg(DBG_AUD,"read_audio: cc_ReadError was necessary after read: %02X\n",i); |
i | 4414 | drivers/cdrom/sbpcd.c | int i, status_tries, data_tries; |
i | 4429 | drivers/cdrom/sbpcd.c | i = MINOR(CURRENT->rq_dev); |
i | 4430 | drivers/cdrom/sbpcd.c | if ( (i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1)) |
i | 4439 | drivers/cdrom/sbpcd.c | if (D_S[i].audio_state==audio_playing) goto err_done; |
i | 4440 | drivers/cdrom/sbpcd.c | if (d!=i) switch_drive(i); |
i | 4459 | drivers/cdrom/sbpcd.c | i=prepare(0,0); /* at moment not really a hassle check, but ... */ |
i | 4460 | drivers/cdrom/sbpcd.c | if (i!=0) |
i | 4461 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"\"prepare\" tells error %d -- ignored\n", i); |
i | 4505 | drivers/cdrom/sbpcd.c | int i; |
i | 4599 | drivers/cdrom/sbpcd.c | i=cmd_out(); |
i | 4600 | drivers/cdrom/sbpcd.c | if (i<0) msg(DBG_INF,"error giving READ command: %0d\n", i); |
i | 4610 | drivers/cdrom/sbpcd.c | int i=0, j=0, l, frame; |
i | 4733 | drivers/cdrom/sbpcd.c | i=inb(CDi_status); |
i | 4734 | drivers/cdrom/sbpcd.c | if (!(i&s_not_data_ready)) |
i | 4740 | drivers/cdrom/sbpcd.c | if (do_16bit) i=inw(CDi_data); |
i | 4741 | drivers/cdrom/sbpcd.c | else i=inb(CDi_data); |
i | 4743 | drivers/cdrom/sbpcd.c | i=inb(CDi_status); |
i | 4745 | drivers/cdrom/sbpcd.c | while (!(i&s_not_data_ready)); |
i | 4748 | drivers/cdrom/sbpcd.c | if (!(i&s_not_result_ready)) |
i | 4755 | drivers/cdrom/sbpcd.c | i=inb(CDi_status); |
i | 4757 | drivers/cdrom/sbpcd.c | while (!(i&s_not_result_ready)); |
i | 4801 | drivers/cdrom/sbpcd.c | i=cc_DriveReset(); /* ugly fix to prevent a hang */ |
i | 4803 | drivers/cdrom/sbpcd.c | i=cc_ReadError(); |
i | 4811 | drivers/cdrom/sbpcd.c | i=maxtim_data; |
i | 4814 | drivers/cdrom/sbpcd.c | for ( ;i!=0;i--) |
i | 4821 | drivers/cdrom/sbpcd.c | if (i != 0 || timeout <= jiffies) break; |
i | 4823 | drivers/cdrom/sbpcd.c | i = 1; |
i | 4825 | drivers/cdrom/sbpcd.c | if (i==0) msg(DBG_INF,"status timeout after READ.\n"); |
i | 4829 | drivers/cdrom/sbpcd.c | i=cc_DriveReset(); /* ugly fix to prevent a hang */ |
i | 4843 | drivers/cdrom/sbpcd.c | if (famT_drive) msg(DBG_TEA, "================before ResponseStatus=================.\n", i); |
i | 4845 | drivers/cdrom/sbpcd.c | i=ResponseStatus(); /* builds status_bits, returns orig. status (old) or faked p_success (new) */ |
i | 4847 | drivers/cdrom/sbpcd.c | if (famT_drive) msg(DBG_TEA, "================ResponseStatus: %d=================.\n", i); |
i | 4849 | drivers/cdrom/sbpcd.c | if (i<0) |
i | 4855 | drivers/cdrom/sbpcd.c | while ((fam0LV_drive)&&(!st_check)&&(!(i&p_success))); |
i | 4858 | drivers/cdrom/sbpcd.c | i=cc_ReadError(); |
i | 4859 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"cc_ReadError was necessary after read: %d\n",i); |
i | 4883 | drivers/cdrom/sbpcd.c | int i; |
i | 4885 | drivers/cdrom/sbpcd.c | i = MINOR(ip->i_rdev); |
i | 4886 | drivers/cdrom/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1)) |
i | 4894 | drivers/cdrom/sbpcd.c | switch_drive(i); |
i | 4896 | drivers/cdrom/sbpcd.c | i=cc_ReadError(); |
i | 4899 | drivers/cdrom/sbpcd.c | i=ResponseStatus(); |
i | 4900 | drivers/cdrom/sbpcd.c | if (famT_drive&&(i<0)) |
i | 4903 | drivers/cdrom/sbpcd.c | i=ResponseStatus(); |
i | 4904 | drivers/cdrom/sbpcd.c | i=ResponseStatus(); |
i | 4906 | drivers/cdrom/sbpcd.c | if (i<0) |
i | 4908 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"sbpcd_open: ResponseStatus timed out (%d).\n",i); |
i | 4911 | drivers/cdrom/sbpcd.c | if (famT_drive) msg(DBG_TEA,"sbpcd_open: ResponseStatus=%02X\n", i); |
i | 4918 | drivers/cdrom/sbpcd.c | i=ResponseStatus(); |
i | 4927 | drivers/cdrom/sbpcd.c | i=ResponseStatus(); |
i | 4937 | drivers/cdrom/sbpcd.c | i=UnLockDoor(); |
i | 4951 | drivers/cdrom/sbpcd.c | i=LockDoor(); |
i | 4954 | drivers/cdrom/sbpcd.c | i=DiskInfo(); |
i | 4968 | drivers/cdrom/sbpcd.c | int i; |
i | 4970 | drivers/cdrom/sbpcd.c | i = MINOR(ip->i_rdev); |
i | 4971 | drivers/cdrom/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1)) |
i | 4976 | drivers/cdrom/sbpcd.c | switch_drive(i); |
i | 4992 | drivers/cdrom/sbpcd.c | i=UnLockDoor(); |
i | 5116 | drivers/cdrom/sbpcd.c | int i; |
i | 5122 | drivers/cdrom/sbpcd.c | i=inb(SPEA_REG_1); |
i | 5123 | drivers/cdrom/sbpcd.c | if (i!=0x0F) |
i | 5144 | drivers/cdrom/sbpcd.c | i=(inb(SPEA_REG_2)&0xCF)|n_ports; |
i | 5145 | drivers/cdrom/sbpcd.c | OUT(SPEA_REG_2,i); |
i | 5162 | drivers/cdrom/sbpcd.c | int i=0, j=0; |
i | 5210 | drivers/cdrom/sbpcd.c | i=config_spea(); |
i | 5211 | drivers/cdrom/sbpcd.c | if (i<0) continue; |
i | 5216 | drivers/cdrom/sbpcd.c | i=check_drives(); |
i | 5218 | drivers/cdrom/sbpcd.c | if (i>=0) break; /* drive found */ |
i | 5263 | drivers/cdrom/sbpcd.c | i=ResponseStatus(); /* returns orig. status or p_busy_new */ |
i | 5264 | drivers/cdrom/sbpcd.c | if (famT_drive) i=ResponseStatus(); /* returns orig. status or p_busy_new */ |
i | 5265 | drivers/cdrom/sbpcd.c | if (i<0) |
i | 5266 | drivers/cdrom/sbpcd.c | if (i!=-402) |
i | 5267 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"init: ResponseStatus returns %d.\n",i); |
i | 5272 | drivers/cdrom/sbpcd.c | i=cc_ReadError(); |
i | 5273 | drivers/cdrom/sbpcd.c | msg(DBG_INI,"init: cc_ReadError returns %d\n",i); |
i | 5276 | drivers/cdrom/sbpcd.c | msg(DBG_INI,"init: first GetStatus: %d\n",i); |
i | 5284 | drivers/cdrom/sbpcd.c | i=GetStatus(); |
i | 5285 | drivers/cdrom/sbpcd.c | msg(DBG_INI,"init: second GetStatus: %02X\n",i); |
i | 5289 | drivers/cdrom/sbpcd.c | if (i<0) break; |
i | 5294 | drivers/cdrom/sbpcd.c | i=SetSpeed(); |
i | 5295 | drivers/cdrom/sbpcd.c | if (i>=0) D_S[d].CD_changed=1; |
i | 5401 | drivers/cdrom/sbpcd.c | int i, st; |
i | 5406 | drivers/cdrom/sbpcd.c | i=MINOR(full_dev); |
i | 5407 | drivers/cdrom/sbpcd.c | if ( (i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1) ) |
i | 5413 | drivers/cdrom/sbpcd.c | switch_drive(i); |
i | 263 | drivers/cdrom/sjcd.c | int i; |
i | 264 | drivers/cdrom/sjcd.c | for( i = 200; i-- && !SJCD_STATUS_AVAILABLE( inb( SJCDPORT( 1 ) ) ); ); |
i | 265 | drivers/cdrom/sjcd.c | if( i > 0 ) *resp++ = ( unsigned char )inb( SJCDPORT( 0 ) ); |
i | 378 | drivers/cdrom/sjcd.c | int i; |
i | 385 | drivers/cdrom/sjcd.c | for( i = 200; i-- && ( sjcd_check_status() == 0 ); ); |
i | 386 | drivers/cdrom/sjcd.c | if( i < 0 ){ |
i | 392 | drivers/cdrom/sjcd.c | else i = 0; |
i | 394 | drivers/cdrom/sjcd.c | return( i ); |
i | 434 | drivers/cdrom/sjcd.c | int i; |
i | 501 | drivers/cdrom/sjcd.c | for( i = sjcd_first_track_no; i <= sjcd_last_track_no; i++ ){ |
i | 505 | drivers/cdrom/sjcd.c | sjcd_send_1_cmd( SCMD_GET_DISK_INFO, bin2bcd( i ) ); |
i | 519 | drivers/cdrom/sjcd.c | if( sjcd_load_response( &sjcd_table_of_contents[ i ], |
i | 521 | drivers/cdrom/sjcd.c | printk( "SJCD: cannot load info for %d track\n", i ); |
i | 525 | drivers/cdrom/sjcd.c | printk( "SJCD: get info %d failed\n", i ); |
i | 909 | drivers/cdrom/sjcd.c | int i; |
i | 910 | drivers/cdrom/sjcd.c | for( i = 0; i < SJCD_BUF_SIZ; sjcd_buf_bn[ i++ ] = -1 ); |
i | 929 | drivers/cdrom/sjcd.c | int i, bn = CURRENT->sector / 4; |
i | 930 | drivers/cdrom/sjcd.c | for( i = 0; i < SJCD_BUF_SIZ && sjcd_buf_bn[ i ] != bn; i++ ); |
i | 931 | drivers/cdrom/sjcd.c | if( i < SJCD_BUF_SIZ ){ |
i | 932 | drivers/cdrom/sjcd.c | int offs = ( i * 4 + ( CURRENT->sector & 3 ) ) * 512; |
i | 934 | drivers/cdrom/sjcd.c | if( sjcd_buf_out != i ){ |
i | 935 | drivers/cdrom/sjcd.c | sjcd_buf_out = i; |
i | 936 | drivers/cdrom/sjcd.c | if( sjcd_buf_bn[ i ] != bn ){ |
i | 1220 | drivers/cdrom/sjcd.c | int i; |
i | 1227 | drivers/cdrom/sjcd.c | for( i = 2048; i--; ( void )inb( SJCDPORT( 2 ) ) ); |
i | 1448 | drivers/cdrom/sjcd.c | int i; |
i | 1478 | drivers/cdrom/sjcd.c | for( i = 1000; i > 0 && !sjcd_status_valid; --i ){ |
i | 1485 | drivers/cdrom/sjcd.c | if ( (i % 100) == 0 ) printk( "." ); |
i | 1488 | drivers/cdrom/sjcd.c | if( i == 0 || sjcd_command_failed ){ |
i | 1499 | drivers/cdrom/sjcd.c | for( i = 1000; i > 0 && !sjcd_status_valid; --i ){ |
i | 1506 | drivers/cdrom/sjcd.c | if ( (i % 100) == 0 ) printk( "." ); |
i | 1509 | drivers/cdrom/sjcd.c | if( i == 0 || sjcd_command_failed ){ |
i | 1530 | drivers/cdrom/sjcd.c | for( i = 1000; i > 0 && !sjcd_status_valid; --i ){ |
i | 1537 | drivers/cdrom/sjcd.c | if ( (i % 100) == 0 ) printk( "." ); |
i | 1540 | drivers/cdrom/sjcd.c | if( i == 0 || sjcd_command_failed ){ |
i | 531 | drivers/cdrom/sonycd535.c | int i; |
i | 534 | drivers/cdrom/sonycd535.c | for (i = 0; i < n_cmd; i++) |
i | 535 | drivers/cdrom/sonycd535.c | outb(cmd[i], command_reg); |
i | 557 | drivers/cdrom/sonycd535.c | for (i = 0; 0 < n_response; n_response--, i++) |
i | 558 | drivers/cdrom/sonycd535.c | if (read_result_reg(response + i) != 0) |
i | 598 | drivers/cdrom/sonycd535.c | int i; |
i | 611 | drivers/cdrom/sonycd535.c | for (i = 0; i < 6; i++) |
i | 612 | drivers/cdrom/sonycd535.c | cmd_buff[i + 1] = params[i]; |
i | 613 | drivers/cdrom/sonycd535.c | for (i = 0; i < 7; i++) |
i | 614 | drivers/cdrom/sonycd535.c | outb(cmd_buff[i], command_reg); |
i | 629 | drivers/cdrom/sonycd535.c | for (i = 0; i < block_size; i++) |
i | 640 | drivers/cdrom/sonycd535.c | if ((i = read_exec_status(status)) != 0) |
i | 641 | drivers/cdrom/sonycd535.c | return i; |
i | 655 | drivers/cdrom/sonycd535.c | int i, j, n_tracks, track_no; |
i | 670 | drivers/cdrom/sonycd535.c | for (i = 0; i < n_tracks; i++) { |
i | 679 | drivers/cdrom/sonycd535.c | memcpy(toc->tracks + i, track_address_buffer, 5); |
i | 957 | drivers/cdrom/sonycd535.c | int i; |
i | 963 | drivers/cdrom/sonycd535.c | for (i = 0; i < num_tracks; i++) { |
i | 964 | drivers/cdrom/sonycd535.c | if (sony_toc->tracks[i].track == track) { |
i | 965 | drivers/cdrom/sonycd535.c | return i; |
i | 1079 | drivers/cdrom/sonycd535.c | int i; |
i | 1179 | drivers/cdrom/sonycd535.c | for (i = 0; i < 3; i++) { |
i | 1180 | drivers/cdrom/sonycd535.c | cmd_buff[2 + i] = int_to_bcd(params[i]); |
i | 1181 | drivers/cdrom/sonycd535.c | cmd_buff[7 + i] = int_to_bcd(params[i + 3]); |
i | 1494 | drivers/cdrom/sonycd535.c | int i; |
i | 1616 | drivers/cdrom/sonycd535.c | for (i = 0; i < sony_buffer_sectors; i++) { |
i | 1617 | drivers/cdrom/sonycd535.c | sony_buffer[i] = (Byte *)kmalloc(2048, GFP_KERNEL); |
i | 1618 | drivers/cdrom/sonycd535.c | if (sony_buffer[i] == NULL) { |
i | 1619 | drivers/cdrom/sonycd535.c | while (--i>=0) |
i | 1620 | drivers/cdrom/sonycd535.c | kfree(sony_buffer[i]); |
i | 1676 | drivers/cdrom/sonycd535.c | int i; |
i | 1679 | drivers/cdrom/sonycd535.c | for (i = 0; i < sony_buffer_sectors; i++) |
i | 1680 | drivers/cdrom/sonycd535.c | kfree_s(sony_buffer[i], 2048); |
i | 459 | drivers/char/apm_bios.c | int i; |
i | 461 | drivers/char/apm_bios.c | for (i = 0; i < ERROR_COUNT; i++) |
i | 462 | drivers/char/apm_bios.c | if (error_table[i].key == err) break; |
i | 463 | drivers/char/apm_bios.c | if (i < ERROR_COUNT) |
i | 464 | drivers/char/apm_bios.c | printk("apm_bios: %s: %s\n", str, error_table[i].msg); |
i | 778 | drivers/char/apm_bios.c | int i; |
i | 801 | drivers/char/apm_bios.c | i = count; |
i | 802 | drivers/char/apm_bios.c | while ((i >= sizeof(event)) && !queue_empty(as)) { |
i | 806 | drivers/char/apm_bios.c | i -= sizeof(event); |
i | 808 | drivers/char/apm_bios.c | if (i < count) |
i | 809 | drivers/char/apm_bios.c | return count - i; |
i | 144 | drivers/char/atixlmouse.c | int i; |
i | 163 | drivers/char/atixlmouse.c | for(i = 3; i < count; i++) |
i | 164 | drivers/char/atixlmouse.c | put_user(0x00, buffer + i); |
i | 170 | drivers/char/atixlmouse.c | return i; /* i data bytes returned */ |
i | 54 | drivers/char/conmakehash.c | int i; |
i | 61 | drivers/char/conmakehash.c | for ( i = 0 ; i < unicount[fp] ; i++ ) |
i | 62 | drivers/char/conmakehash.c | if ( unitable[fp][i] == un ) |
i | 86 | drivers/char/conmakehash.c | int i, nuni, nent; |
i | 113 | drivers/char/conmakehash.c | for ( i = 0 ; i < fontlen ; i++ ) |
i | 114 | drivers/char/conmakehash.c | unicount[i] = 0; |
i | 190 | drivers/char/conmakehash.c | for (i=fp0; i<=fp1; i++) |
i | 191 | drivers/char/conmakehash.c | addpair(i,i); |
i | 222 | drivers/char/conmakehash.c | for(i=fp0; i<=fp1; i++) |
i | 223 | drivers/char/conmakehash.c | addpair(i,un0-fp0+i); |
i | 246 | drivers/char/conmakehash.c | for ( i = 0 ; i < fontlen ; i++ ) |
i | 247 | drivers/char/conmakehash.c | nuni += unicount[i]; |
i | 265 | drivers/char/conmakehash.c | for ( i = 0 ; i < fontlen ; i++ ) |
i | 267 | drivers/char/conmakehash.c | printf("%3d", unicount[i]); |
i | 268 | drivers/char/conmakehash.c | if ( i == fontlen-1 ) |
i | 270 | drivers/char/conmakehash.c | else if ( i % 8 == 7 ) |
i | 280 | drivers/char/conmakehash.c | for ( i = 0 ; i < nuni ; i++ ) |
i | 288 | drivers/char/conmakehash.c | if ( i == nuni-1 ) |
i | 290 | drivers/char/conmakehash.c | else if ( i % 8 == 7 ) |
i | 220 | drivers/char/console.c | int i; |
i | 233 | drivers/char/console.c | for (i = 0; *s; i++, s++) { |
i | 301 | drivers/char/console.c | int vc_cons_allocated(unsigned int i) |
i | 303 | drivers/char/console.c | return (i < MAX_NR_CONSOLES && vc_cons[i].d); |
i | 306 | drivers/char/console.c | int vc_allocate(unsigned int i) /* return 0 on success */ |
i | 308 | drivers/char/console.c | if (i >= MAX_NR_CONSOLES) |
i | 310 | drivers/char/console.c | if (!vc_cons[i].d) { |
i | 314 | drivers/char/console.c | if (i >= MAX_NR_USER_CONSOLES && !suser()) |
i | 329 | drivers/char/console.c | vc_cons[i].d = (struct vc_data *) p; |
i | 331 | drivers/char/console.c | vt_cons[i] = (struct vt_struct *) p; |
i | 332 | drivers/char/console.c | vc_scrbuf[i] = (unsigned short *) q; |
i | 333 | drivers/char/console.c | vc_cons[i].d->vc_kmalloced = 1; |
i | 334 | drivers/char/console.c | vc_cons[i].d->vc_screenbuf_size = video_screen_size; |
i | 335 | drivers/char/console.c | vc_init (i, video_num_lines, video_num_columns, 1); |
i | 350 | drivers/char/console.c | unsigned int currcons, i; |
i | 374 | drivers/char/console.c | for (i = 0; i< currcons; i++) |
i | 375 | drivers/char/console.c | if (newscreens[i]) |
i | 376 | drivers/char/console.c | kfree_s(newscreens[i], ss); |
i | 833 | drivers/char/console.c | int i; |
i | 835 | drivers/char/console.c | for (i=0;i<=npar;i++) |
i | 836 | drivers/char/console.c | switch (par[i]) { |
i | 915 | drivers/char/console.c | if (par[i] >= 30 && par[i] <= 37) |
i | 916 | drivers/char/console.c | color = color_table[par[i]-30] |
i | 918 | drivers/char/console.c | else if (par[i] >= 40 && par[i] <= 47) |
i | 919 | drivers/char/console.c | color = (color_table[par[i]-40]<<4) |
i | 1051 | drivers/char/console.c | int i; |
i | 1053 | drivers/char/console.c | for (i=0; i<=npar; i++) |
i | 1054 | drivers/char/console.c | if (ques) switch(par[i]) { /* DEC private modes set/reset */ |
i | 1099 | drivers/char/console.c | } else switch(par[i]) { /* ANSI modes set/reset */ |
i | 1169 | drivers/char/console.c | unsigned int i = x; |
i | 1173 | drivers/char/console.c | while (i++ < video_num_columns) { |
i | 1190 | drivers/char/console.c | unsigned int i = x; |
i | 1193 | drivers/char/console.c | while (++i < video_num_columns) { |
i | 1600 | drivers/char/console.c | int i = par[0]*3, j = 1; |
i | 1601 | drivers/char/console.c | palette[i] = 16*par[j++]; |
i | 1602 | drivers/char/console.c | palette[i++] += par[j++]; |
i | 1603 | drivers/char/console.c | palette[i] = 16*par[j++]; |
i | 1604 | drivers/char/console.c | palette[i++] += par[j++]; |
i | 1605 | drivers/char/console.c | palette[i] = 16*par[j++]; |
i | 1606 | drivers/char/console.c | palette[i] += par[j]; |
i | 2247 | drivers/char/console.c | int i; |
i | 2251 | drivers/char/console.c | i = vc_allocate(idx); |
i | 2252 | drivers/char/console.c | if (i) |
i | 2253 | drivers/char/console.c | return i; |
i | 2300 | drivers/char/console.c | int i; |
i | 2302 | drivers/char/console.c | i = set_get_font (arg,1,ch512); |
i | 2303 | drivers/char/console.c | if ( !i ) { |
i | 2308 | drivers/char/console.c | return i; |
i | 169 | drivers/char/consolemap.c | static void set_inverse_transl(int i) |
i | 172 | drivers/char/consolemap.c | unsigned short *p = translations[i]; |
i | 173 | drivers/char/consolemap.c | unsigned char *q = inverse_translations[i]; |
i | 177 | drivers/char/consolemap.c | q = inverse_translations[i] = ((i == LAT1_MAP) |
i | 229 | drivers/char/consolemap.c | int i; |
i | 232 | drivers/char/consolemap.c | i = verify_area(VERIFY_READ, (void *)arg, E_TABSZ); |
i | 233 | drivers/char/consolemap.c | if (i) |
i | 234 | drivers/char/consolemap.c | return i; |
i | 236 | drivers/char/consolemap.c | for (i=0; i<E_TABSZ ; i++) |
i | 237 | drivers/char/consolemap.c | p[i] = UNI_DIRECT_BASE | get_user(arg+i); |
i | 245 | drivers/char/consolemap.c | int i, ch; |
i | 248 | drivers/char/consolemap.c | i = verify_area(VERIFY_WRITE, (void *)arg, E_TABSZ); |
i | 249 | drivers/char/consolemap.c | if (i) |
i | 250 | drivers/char/consolemap.c | return i; |
i | 252 | drivers/char/consolemap.c | for (i=0; i<E_TABSZ ; i++) |
i | 254 | drivers/char/consolemap.c | ch = conv_uni_to_pc(p[i]); |
i | 255 | drivers/char/consolemap.c | put_user((ch & ~0xff) ? 0 : ch, arg+i); |
i | 262 | drivers/char/consolemap.c | int i; |
i | 265 | drivers/char/consolemap.c | i = verify_area(VERIFY_READ, (void *)arg, |
i | 267 | drivers/char/consolemap.c | if (i) |
i | 268 | drivers/char/consolemap.c | return i; |
i | 270 | drivers/char/consolemap.c | for (i=0; i<E_TABSZ ; i++) |
i | 271 | drivers/char/consolemap.c | p[i] = get_user(arg+i); |
i | 279 | drivers/char/consolemap.c | int i; |
i | 282 | drivers/char/consolemap.c | i = verify_area(VERIFY_WRITE, (void *)arg, |
i | 284 | drivers/char/consolemap.c | if (i) |
i | 285 | drivers/char/consolemap.c | return i; |
i | 287 | drivers/char/consolemap.c | for (i=0; i<E_TABSZ ; i++) |
i | 288 | drivers/char/consolemap.c | put_user(p[i], arg+i); |
i | 318 | drivers/char/consolemap.c | int i, n; |
i | 327 | drivers/char/consolemap.c | for ( i = 0 ; i < 32 ; i++ ) |
i | 328 | drivers/char/consolemap.c | p1[i] = NULL; |
i | 337 | drivers/char/consolemap.c | for ( i = 0 ; i < 64 ; i++ ) |
i | 338 | drivers/char/consolemap.c | p2[i] = 0xffff; /* No glyph for this character (yet) */ |
i | 350 | drivers/char/consolemap.c | int i, j; |
i | 353 | drivers/char/consolemap.c | for ( i = 0 ; i < 32 ; i++ ) |
i | 355 | drivers/char/consolemap.c | if ( (p1 = uni_pagedir[i]) != NULL ) |
i | 364 | drivers/char/consolemap.c | uni_pagedir[i] = NULL; |
i | 373 | drivers/char/consolemap.c | int err = 0, err1, i; |
i | 383 | drivers/char/consolemap.c | for ( i = 0 ; i <= 3 ; i++ ) |
i | 384 | drivers/char/consolemap.c | set_inverse_transl(i); /* Update all inverse translations */ |
i | 397 | drivers/char/consolemap.c | int i, j; |
i | 405 | drivers/char/consolemap.c | for ( i = 0 ; i < 256 ; i++ ) |
i | 406 | drivers/char/consolemap.c | for ( j = dfont_unicount[i] ; j ; j-- ) |
i | 407 | drivers/char/consolemap.c | con_insert_unipair(*(p++), i); |
i | 409 | drivers/char/consolemap.c | for ( i = 0 ; i <= 3 ; i++ ) |
i | 410 | drivers/char/consolemap.c | set_inverse_transl(i); /* Update all inverse translations */ |
i | 415 | drivers/char/consolemap.c | int i, j, k, ect; |
i | 421 | drivers/char/consolemap.c | for ( i = 0 ; i < 32 ; i++ ) |
i | 422 | drivers/char/consolemap.c | if ( (p1 = uni_pagedir[i]) != NULL ) |
i | 429 | drivers/char/consolemap.c | put_user((u_short)((i<<11)+(j<<6)+k), |
i | 499 | drivers/char/cyclades.c | volatile int i; |
i | 503 | drivers/char/cyclades.c | for(i = 0 ; i < 100 ; i++){ |
i | 511 | drivers/char/cyclades.c | if ( i == 100 ) { |
i | 658 | drivers/char/cyclades.c | int i,j,index; |
i | 696 | drivers/char/cyclades.c | i = channel + chip * 4 + cinfo->first_line; |
i | 697 | drivers/char/cyclades.c | info = &cy_port[i]; |
i | 812 | drivers/char/cyclades.c | i = channel + chip * 4 + cinfo->first_line; |
i | 817 | drivers/char/cyclades.c | if( (i < 0) || (NR_PORTS <= i) ){ |
i | 821 | drivers/char/cyclades.c | info = &cy_port[i]; |
i | 1042 | drivers/char/cyclades.c | int i, mask; |
i | 1044 | drivers/char/cyclades.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 1046 | drivers/char/cyclades.c | && !request_irq(i, cy_probe, SA_INTERRUPT, "serial probe", NULL)) { |
i | 1059 | drivers/char/cyclades.c | int i; |
i | 1061 | drivers/char/cyclades.c | for (i = 0; i < 16; i++) { |
i | 1062 | drivers/char/cyclades.c | if (irq_lines & (1 << i)) |
i | 1063 | drivers/char/cyclades.c | free_irq(i,NULL); |
i | 1074 | drivers/char/cyclades.c | int i, mask; |
i | 1099 | drivers/char/cyclades.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 1100 | drivers/char/cyclades.c | if ((cy_triggered & (1 << i)) && |
i | 1101 | drivers/char/cyclades.c | (irq_lines & (1 << i))) { |
i | 1360 | drivers/char/cyclades.c | int i; |
i | 1371 | drivers/char/cyclades.c | i = cflag & CBAUD; |
i | 1381 | drivers/char/cyclades.c | if (i & CBAUDEX) { |
i | 1382 | drivers/char/cyclades.c | if (i == B57600) |
i | 1383 | drivers/char/cyclades.c | i = 16; |
i | 1384 | drivers/char/cyclades.c | else if(i == B115200) |
i | 1385 | drivers/char/cyclades.c | i = 18; |
i | 1387 | drivers/char/cyclades.c | else if(i == B78600) |
i | 1388 | drivers/char/cyclades.c | i = 17; |
i | 1394 | drivers/char/cyclades.c | if (i == 15) { |
i | 1396 | drivers/char/cyclades.c | i += 1; |
i | 1398 | drivers/char/cyclades.c | i += 3; |
i | 1400 | drivers/char/cyclades.c | info->tbpr = baud_bpr[i]; /* Tx BPR */ |
i | 1401 | drivers/char/cyclades.c | info->tco = baud_co[i]; /* Tx CO */ |
i | 1402 | drivers/char/cyclades.c | info->rbpr = baud_bpr[i]; /* Rx BPR */ |
i | 1403 | drivers/char/cyclades.c | info->rco = baud_co[i]; /* Rx CO */ |
i | 1404 | drivers/char/cyclades.c | if (baud_table[i] == 134) { |
i | 1407 | drivers/char/cyclades.c | } else if (baud_table[i]) { |
i | 1408 | drivers/char/cyclades.c | info->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2; |
i | 1422 | drivers/char/cyclades.c | : baud_cor3[i]); /* receive threshold */ |
i | 1524 | drivers/char/cyclades.c | if(i == 0){ /* baud rate is zero, turn off line */ |
i | 2773 | drivers/char/cyclades.c | int board,port,i; |
i | 2827 | drivers/char/cyclades.c | for (i = 0; i < 16; i++) { |
i | 2828 | drivers/char/cyclades.c | IRQ_cards[i] = 0; |
i | 2831 | drivers/char/cyclades.c | for (i = 0; i < NR_CARDS; i++) { |
i | 2833 | drivers/char/cyclades.c | cy_card[i].base_addr = 0; |
i | 2852 | drivers/char/cyclades.c | for (i = 0 ; i < NR_CARDS ; i++) { |
i | 2853 | drivers/char/cyclades.c | if (cy_card[i].base_addr == 0) { |
i | 2854 | drivers/char/cyclades.c | cy_card[i].first_line = -1; |
i | 2858 | drivers/char/cyclades.c | for (i = cy_next_channel ; i < NR_PORTS ; i++) { |
i | 2859 | drivers/char/cyclades.c | cy_port[i].line = -1; |
i | 2860 | drivers/char/cyclades.c | cy_port[i].magic = -1; |
i | 2924 | drivers/char/cyclades.c | int i; |
i | 2932 | drivers/char/cyclades.c | for (i = 0; i < NR_CARDS; i++) { |
i | 2933 | drivers/char/cyclades.c | if (cy_card[i].base_addr != 0) |
i | 2935 | drivers/char/cyclades.c | free_irq(cy_card[i].irq,NULL); |
i | 2952 | drivers/char/cyclades.c | unsigned short i,j,cy_isa_nchan; |
i | 2957 | drivers/char/cyclades.c | for (i = 0 ; i < NR_ISA_ADDRESSES ; i++) { |
i | 2958 | drivers/char/cyclades.c | cy_isa_address = cy_isa_addresses[i]; |
i | 3033 | drivers/char/cyclades.c | unsigned short i,j,cy_pci_nchan; |
i | 3042 | drivers/char/cyclades.c | for (i = 0; i < NR_CARDS; i++) { |
i | 3045 | drivers/char/cyclades.c | PCI_DEVICE_ID_CYCLOMY,i, |
i | 3071 | drivers/char/cyclades.c | return(i); |
i | 3075 | drivers/char/cyclades.c | i+1,cyy_bus,cyy_dev_fn,cyy_rev_id); |
i | 3086 | drivers/char/cyclades.c | return(i); |
i | 3094 | drivers/char/cyclades.c | return(i); |
i | 3117 | drivers/char/cyclades.c | return(i); |
i | 66 | drivers/char/ftape/calibr.c | int i; |
i | 74 | drivers/char/ftape/calibr.c | for (i = 0; i < 1000; ++i) { |
i | 94 | drivers/char/ftape/calibr.c | int i; |
i | 96 | drivers/char/ftape/calibr.c | for (i = 0; i < 1000; ++i) { |
i | 115 | drivers/char/ftape/calibr.c | int i; |
i | 131 | drivers/char/ftape/calibr.c | for (i = 0; i < 15; ++i) { |
i | 72 | drivers/char/ftape/ecc.c | #define TRACEi(l,m,i) TRACE_(l,printk(m" %d.\n",i)) |
i | 73 | drivers/char/ftape/ecc.c | #define TRACElx(l,m,i) TRACE_(l,printk(m" 0x%08lx.\n",i)) |
i | 466 | drivers/char/ftape/ecc.c | int i, j; |
i | 469 | drivers/char/ftape/ecc.c | for (i = 0; i < n; ++i) { |
i | 472 | drivers/char/ftape/ecc.c | dot_prod = gfadd(dot_prod, gfmul(A[i][j], s[j])); |
i | 474 | drivers/char/ftape/ecc.c | b[i] = dot_prod; |
i | 630 | drivers/char/ftape/ecc.c | int i; |
i | 704 | drivers/char/ftape/ecc.c | for (i = 0; i < nbad; ++i) { |
i | 705 | drivers/char/ftape/ecc.c | e = error_mag[i]; |
i | 708 | drivers/char/ftape/ecc.c | l = bad_loc[i]; |
i | 758 | drivers/char/ftape/ecc.c | int i; |
i | 762 | drivers/char/ftape/ecc.c | for (i = 0; i < SECTOR_SIZE; i += sizeof(long)) { |
i | 763 | drivers/char/ftape/ecc.c | set_parity((unsigned long *) &mseg->data[i], mseg->blocks - 3, |
i | 764 | drivers/char/ftape/ecc.c | (unsigned long *) &parity_bytes[i], |
i | 767 | drivers/char/ftape/ecc.c | if (!sanity_check((unsigned long *) &mseg->data[i], mseg->blocks)) { |
i | 783 | drivers/char/ftape/ecc.c | int col, i, result; |
i | 808 | drivers/char/ftape/ecc.c | for (i = 0; i < mseg->blocks; i++) { |
i | 809 | drivers/char/ftape/ecc.c | if (BAD_CHECK(mseg->read_bad, i)) { |
i | 816 | drivers/char/ftape/ecc.c | erasure_loc[nerasures++] = i; |
i | 843 | drivers/char/ftape/ecc.c | for (i = 0; i < sizeof(long); ++i) { |
i | 849 | drivers/char/ftape/ecc.c | result = correct_block(&mseg->data[col + sizeof(long) - 1 - i], |
i | 854 | drivers/char/ftape/ecc.c | result = correct_block(&mseg->data[col + i], mseg->blocks, |
i | 81 | drivers/char/ftape/fc-10.c | int i; |
i | 87 | drivers/char/ftape/fc-10.c | for (i = 0; i < NR_ITEMS(inbs_magic); i++) { |
i | 88 | drivers/char/ftape/fc-10.c | inb(FDC_BASE + inbs_magic[i]); |
i | 94 | drivers/char/ftape/fc-10.c | for (i = 1; i < 8; i++) { |
i | 95 | drivers/char/ftape/fc-10.c | if (inb(FDC_BASE + i) != x) { |
i | 105 | drivers/char/ftape/fc-10.c | for (i = 0; i < 8; i++) { |
i | 106 | drivers/char/ftape/fc-10.c | if (inb(FDC_BASE + i) != 0x0) { |
i | 112 | drivers/char/ftape/fc-10.c | for (i = 0; i < 8; i++) { |
i | 113 | drivers/char/ftape/fc-10.c | if (inb(FDC_BASE + i) != 0xff) { |
i | 124 | drivers/char/ftape/fc-10.c | for (i = 0; i < NR_ITEMS(inbs_magic); i++) { |
i | 125 | drivers/char/ftape/fc-10.c | inb(FDC_BASE + inbs_magic[i]); |
i | 128 | drivers/char/ftape/fc-10.c | for (i = 0; i < NR_ITEMS(fc10_ports); i++) |
i | 129 | drivers/char/ftape/fc-10.c | if (FDC_BASE == fc10_ports[i]) |
i | 130 | drivers/char/ftape/fc-10.c | cardConfig = i + 1; |
i | 494 | drivers/char/ftape/fdc-io.c | int i; |
i | 522 | drivers/char/ftape/fdc-io.c | for (i = 0; i < 4; ++i) { /* clear disk-change status */ |
i | 524 | drivers/char/ftape/fdc-io.c | if (i == unit) { |
i | 860 | drivers/char/ftape/fdc-io.c | int i; |
i | 862 | drivers/char/ftape/fdc-io.c | for (i = 0; i < 1; ++i) { |
i | 902 | drivers/char/ftape/fdc-io.c | int i; |
i | 916 | drivers/char/ftape/fdc-io.c | for (i = 0; i < NR_ITEMS(reg); ++i) { |
i | 917 | drivers/char/ftape/fdc-io.c | fdc_read(®[i]); |
i | 918 | drivers/char/ftape/fdc-io.c | TRACEx2(6, "Register %d = 0x%02x", i, reg[i]); |
i | 1007 | drivers/char/ftape/fdc-io.c | int i; |
i | 1020 | drivers/char/ftape/fdc-io.c | for (i = 0; i < 4; ++i) { |
i | 1021 | drivers/char/ftape/fdc-io.c | outb_p(i, fdc.tdr); |
i | 1022 | drivers/char/ftape/fdc-io.c | if ((inb_p(fdc.tdr) & 0x03) != i) { |
i | 489 | drivers/char/ftape/fdc-isr.c | int i = 0; |
i | 510 | drivers/char/ftape/fdc-isr.c | while ((map & (1 << i)) == 0) { |
i | 511 | drivers/char/ftape/fdc-isr.c | ++i; |
i | 513 | drivers/char/ftape/fdc-isr.c | TRACEx1(4, "at sector %d", SECTOR(i)); |
i | 516 | drivers/char/ftape/fdc-isr.c | i = buff->sector_offset - 1; |
i | 518 | drivers/char/ftape/fdc-isr.c | while ((map & (1 << i)) == 0) { |
i | 519 | drivers/char/ftape/fdc-isr.c | --i; |
i | 521 | drivers/char/ftape/fdc-isr.c | TRACEx1(4, "after sector %d", SECTOR(i)); |
i | 522 | drivers/char/ftape/fdc-isr.c | ++i; /* first sector after last hard error */ |
i | 529 | drivers/char/ftape/fdc-isr.c | return i; |
i | 568 | drivers/char/ftape/fdc-isr.c | int i; |
i | 572 | drivers/char/ftape/fdc-isr.c | for (i = 0; i < NR_BUFFERS; ++i) { |
i | 574 | drivers/char/ftape/fdc-isr.c | i, buffer[i].status, buffer[i].segment_id); |
i | 61 | drivers/char/ftape/ftape-bsm.c | int i; |
i | 72 | drivers/char/ftape/ftape-bsm.c | for (i = 0; i < SECTORS_PER_SEGMENT; ++i) { |
i | 187 | drivers/char/ftape/ftape-bsm.c | for (i = first_data_segment; i <= ftape_last_segment.id - 7; ++i) { |
i | 188 | drivers/char/ftape/ftape-bsm.c | ((unsigned long *) bad_sector_map)[i] = EMPTY_SEGMENT; |
i | 194 | drivers/char/ftape/ftape-bsm.c | for (i = first_data_segment; i <= ftape_last_segment.id; ++i) { |
i | 195 | drivers/char/ftape/ftape-bsm.c | ((unsigned long *) bad_sector_map)[i] |= 0x00ff00ff; |
i | 203 | drivers/char/ftape/ftape-bsm.c | int i; |
i | 231 | drivers/char/ftape/ftape-bsm.c | for (i = first_data_segment; |
i | 232 | drivers/char/ftape/ftape-bsm.c | i < segments_per_track * tracks_per_tape; ++i) { |
i | 233 | drivers/char/ftape/ftape-bsm.c | map = ((unsigned long *) bad_sector_map)[i]; |
i | 236 | drivers/char/ftape/ftape-bsm.c | TRACEx2(6, "bsm for segment %4d: 0x%08x", i, map); |
i | 370 | drivers/char/ftape/ftape-bsm.c | int i = 0; |
i | 374 | drivers/char/ftape/ftape-bsm.c | put_sector(&ptr, 1 + segment_id * SECTORS_PER_SEGMENT + i); |
i | 376 | drivers/char/ftape/ftape-bsm.c | ++i; |
i | 144 | drivers/char/ftape/ftape-ctl.c | int i; |
i | 167 | drivers/char/ftape/ftape-ctl.c | for (i = 0; i < NR_BUFFERS; ++i) { |
i | 168 | drivers/char/ftape/ftape-ctl.c | buffer[i].status = waiting; |
i | 177 | drivers/char/ftape/ftape-ctl.c | int i = 0; |
i | 179 | drivers/char/ftape/ftape-ctl.c | while (vendors[i].vendor_id != vendor_id) { |
i | 180 | drivers/char/ftape/ftape-ctl.c | if (++i >= NR_ITEMS(vendors)) { |
i | 184 | drivers/char/ftape/ftape-ctl.c | return i; |
i | 315 | drivers/char/ftape/ftape-eof.c | int i; |
i | 335 | drivers/char/ftape/ftape-eof.c | for (i = 0; i < nr_of_eof_marks; ++i) { |
i | 336 | drivers/char/ftape/ftape-eof.c | unsigned failing_segment = eof_map[i].mark.segment; |
i | 343 | drivers/char/ftape/ftape-eof.c | i, failing_segment); |
i | 369 | drivers/char/ftape/ftape-eof.c | int i; |
i | 399 | drivers/char/ftape/ftape-eof.c | for (i = 0; i < nr_of_eof_marks; ++i) { |
i | 400 | drivers/char/ftape/ftape-eof.c | unsigned short tmp = eof_map[i].mark.segment; |
i | 401 | drivers/char/ftape/ftape-eof.c | eof_map[i].mark.segment = eof_map[i].mark.sector; |
i | 402 | drivers/char/ftape/ftape-eof.c | eof_map[i].mark.sector = tmp; |
i | 405 | drivers/char/ftape/ftape-eof.c | for (i = 0; i < nr_of_eof_marks; ++i) { |
i | 407 | drivers/char/ftape/ftape-eof.c | eof_map[i].mark.segment, eof_map[i].mark.sector); |
i | 543 | drivers/char/ftape/ftape-eof.c | int i; |
i | 548 | drivers/char/ftape/ftape-eof.c | for (i = 0; i < nr_of_eof_marks; ++i) { |
i | 550 | drivers/char/ftape/ftape-eof.c | eof_map[i].mark.segment, eof_map[i].mark.sector); |
i | 106 | drivers/char/ftape/ftape-io.c | volatile int i; |
i | 109 | drivers/char/ftape/ftape-io.c | for (i = 0; i < 20; ++i); |
i | 402 | drivers/char/ftape/ftape-io.c | int i, st3; |
i | 414 | drivers/char/ftape/ftape-io.c | i = 0; |
i | 416 | drivers/char/ftape/ftape-io.c | ++i; |
i | 440 | drivers/char/ftape/ftape-io.c | if (i > 1 && dt > 6000) { |
i | 441 | drivers/char/ftape/ftape-io.c | TRACEx2(1, "Acknowledge after %u msec. (%i iter)", dt / 1000, i); |
i | 444 | drivers/char/ftape/ftape-io.c | TRACEx2(1, "No acknowledge after %u msec. (%i iter)", dt / 1000, i); |
i | 450 | drivers/char/ftape/ftape-io.c | for (i = 0; i < result_length + 1; i++) { |
i | 471 | drivers/char/ftape/ftape-io.c | if (i < result_length) { |
i | 472 | drivers/char/ftape/ftape-io.c | *status |= ((st3 & ST3_TRACK_0) ? 1 : 0) << i; |
i | 775 | drivers/char/ftape/ftape-io.c | int i; |
i | 784 | drivers/char/ftape/ftape-io.c | for (i = 0; i < NR_ITEMS(rates); ++i) { |
i | 787 | drivers/char/ftape/ftape-io.c | result = ftape_parameter_wait(rates[i].drive_code, |
i | 997 | drivers/char/ftape/ftape-io.c | int i; |
i | 1003 | drivers/char/ftape/ftape-io.c | for (i = 0; i < 2; ++i) { |
i | 56 | drivers/char/ftape/ftape-read.c | int i; |
i | 58 | drivers/char/ftape/ftape-read.c | for (i = 0; i < NR_BUFFERS; ++i) { |
i | 62 | drivers/char/ftape/ftape-read.c | buffer[i].address = tape_buffer[i]; |
i | 63 | drivers/char/ftape/ftape-read.c | buffer[i].status = waiting; |
i | 64 | drivers/char/ftape/ftape-read.c | buffer[i].bytes = 0; |
i | 65 | drivers/char/ftape/ftape-read.c | buffer[i].skip = 0; |
i | 66 | drivers/char/ftape/ftape-read.c | buffer[i].retry = 0; |
i | 77 | drivers/char/ftape/ftape-read.c | int i = 0; |
i | 89 | drivers/char/ftape/ftape-read.c | dst_map |= (1 << i); |
i | 93 | drivers/char/ftape/ftape-read.c | ++i; |
i | 100 | drivers/char/ftape/ftape-read.c | dst_map |= (src_map << i); |
i | 198 | drivers/char/ftape/ftape-read.c | int i; |
i | 215 | drivers/char/ftape/ftape-read.c | for (i = 1; i < eof_sector; ++i) { |
i | 367 | drivers/char/ftape/ftape-read.c | int i; |
i | 550 | drivers/char/ftape/ftape-read.c | for (i = segments_per_track * tracks_per_tape - 1; i >= 0; --i) { |
i | 551 | drivers/char/ftape/ftape-read.c | int space = SECTORS_PER_SEGMENT - 3 - count_ones(get_bad_sector_entry(i)); |
i | 557 | drivers/char/ftape/ftape-read.c | ftape_last_segment.id = i; |
i | 488 | drivers/char/ftape/ftape-rw.c | int i; |
i | 509 | drivers/char/ftape/ftape-rw.c | for (i = 0; i < nibbles; ++i) { |
i | 64 | drivers/char/ftape/ftape-write.c | int i; |
i | 66 | drivers/char/ftape/ftape-write.c | for (i = 0; i < NR_BUFFERS; ++i) { |
i | 67 | drivers/char/ftape/ftape-write.c | buffer[i].status = done; |
i | 141 | drivers/char/ftape/ftape-write.c | int i; |
i | 149 | drivers/char/ftape/ftape-write.c | for (i = 0; i < NR_BUFFERS; ++i) { |
i | 151 | drivers/char/ftape/ftape-write.c | i, buffer[i].segment_id, buffer[i].status); |
i | 44 | drivers/char/ftape/tracing.h | #define TRACEi(l,m,i) trace_dummy() |
i | 45 | drivers/char/ftape/tracing.h | #define TRACElx(l,m,i) trace_dummy() |
i | 76 | drivers/char/ftape/tracing.h | #define TRACEi(l,m,i) TRACE_(l,printk(m" %d.\n",i)) |
i | 77 | drivers/char/ftape/tracing.h | #define TRACElx(l,m,i) TRACE_(l,printk(m" 0x%08lx.\n",i)) |
i | 789 | drivers/char/istallion.c | int i, j; |
i | 809 | drivers/char/istallion.c | i = tty_unregister_driver(&stli_serial); |
i | 811 | drivers/char/istallion.c | if (i || j) { |
i | 812 | drivers/char/istallion.c | printk("STALLION: failed to un-register tty driver, errno=%d,%d\n", -i, -j); |
i | 816 | drivers/char/istallion.c | if ((i = unregister_chrdev(STL_SIOMEMMAJOR, "staliomem"))) |
i | 817 | drivers/char/istallion.c | printk("STALLION: failed to un-register serial memory device, errno=%d\n", -i); |
i | 824 | drivers/char/istallion.c | for (i = 0; (i < stli_nrbrds); i++) { |
i | 825 | drivers/char/istallion.c | brdp = stli_brds[i]; |
i | 846 | drivers/char/istallion.c | stli_brds[i] = (stlibrd_t *) NULL; |
i | 2865 | drivers/char/istallion.c | int i, panelnr, panelport; |
i | 2871 | drivers/char/istallion.c | for (i = 0, panelnr = 0, panelport = 0; (i < brdp->nrports); i++) { |
i | 2879 | drivers/char/istallion.c | portp->portnr = i; |
i | 2894 | drivers/char/istallion.c | brdp->ports[i] = portp; |
i | 3122 | drivers/char/istallion.c | int i; |
i | 3131 | drivers/char/istallion.c | for (i = 0; (i < 1000); i++) |
i | 3183 | drivers/char/istallion.c | int i; |
i | 3192 | drivers/char/istallion.c | for (i = 0; (i < 1000); i++) |
i | 3205 | drivers/char/istallion.c | int i; |
i | 3215 | drivers/char/istallion.c | for (i = 0; (i < 1000); i++) |
i | 3276 | drivers/char/istallion.c | int i; |
i | 3285 | drivers/char/istallion.c | for (i = 0; (i < 1000); i++) |
i | 3297 | drivers/char/istallion.c | int i; |
i | 3306 | drivers/char/istallion.c | for (i = 0; (i < 1000); i++) |
i | 3339 | drivers/char/istallion.c | int i; |
i | 3348 | drivers/char/istallion.c | for (i = 0; (i < 1000); i++) |
i | 3360 | drivers/char/istallion.c | int i; |
i | 3367 | drivers/char/istallion.c | for (i = 0; (i < 1000); i++) |
i | 3395 | drivers/char/istallion.c | int i; |
i | 3404 | drivers/char/istallion.c | for (i = 0; (i < 1000); i++) |
i | 3589 | drivers/char/istallion.c | int i; |
i | 3713 | drivers/char/istallion.c | for (i = 0; (i < 16); i++) { |
i | 3714 | drivers/char/istallion.c | if (((sig.amask0 << i) & 0x8000) == 0) |
i | 3717 | drivers/char/istallion.c | brdp->nrports = i; |
i | 3741 | drivers/char/istallion.c | int portnr, nrdevs, i, rc; |
i | 3788 | drivers/char/istallion.c | for (i = 1, portnr = 0; (i < nrdevs); i++, portnr++, memp++) { |
i | 3794 | drivers/char/istallion.c | portp->devnr = i; |
i | 3796 | drivers/char/istallion.c | portp->reqbit = (unsigned char) (0x1 << (i * 8 / nrdevs)); |
i | 3797 | drivers/char/istallion.c | portp->portidx = (unsigned char) (i / 8); |
i | 3798 | drivers/char/istallion.c | portp->portbit = (unsigned char) (0x1 << (i % 8)); |
i | 3806 | drivers/char/istallion.c | for (i = 1, portnr = 0; (i < nrdevs); i++, portnr++) { |
i | 3901 | drivers/char/istallion.c | int i, foundit; |
i | 3925 | drivers/char/istallion.c | for (i = 0; (i < 100); i++) |
i | 3941 | drivers/char/istallion.c | for (i = 0; (i < stli_eisamempsize); i++) { |
i | 3942 | drivers/char/istallion.c | brdp->memaddr = stli_eisamemprobeaddrs[i]; |
i | 4005 | drivers/char/istallion.c | int i; |
i | 4034 | drivers/char/istallion.c | for (i = 0; (i < STL_MAXBRDS); i++) { |
i | 4035 | drivers/char/istallion.c | brdp = stli_brds[i]; |
i | 4041 | drivers/char/istallion.c | if (i < STL_MAXBRDS) |
i | 4093 | drivers/char/istallion.c | int i, j; |
i | 4108 | drivers/char/istallion.c | for (i = 0; (i < stli_nrbrds); i++) { |
i | 4109 | drivers/char/istallion.c | confp = &stli_brdconf[i]; |
i | 4117 | drivers/char/istallion.c | brdp->brdnr = i; |
i | 4137 | drivers/char/istallion.c | for (i = 0; (i < stli_nrbrds); i++) { |
i | 4138 | drivers/char/istallion.c | brdp = stli_brds[i]; |
i | 4141 | drivers/char/istallion.c | for (j = i + 1; (j < stli_nrbrds); j++) { |
i | 4154 | drivers/char/istallion.c | for (i = 0; (i < stli_nrbrds); i++) { |
i | 4155 | drivers/char/istallion.c | brdp = stli_brds[i]; |
i | 4278 | drivers/char/istallion.c | int i; |
i | 4296 | drivers/char/istallion.c | for (i = 0; (i < brdp->nrpanels); i++) { |
i | 4297 | drivers/char/istallion.c | stli_brdstats.panels[i].panel = i; |
i | 4298 | drivers/char/istallion.c | stli_brdstats.panels[i].hwid = brdp->panelids[i]; |
i | 4299 | drivers/char/istallion.c | stli_brdstats.panels[i].nrports = brdp->panels[i]; |
i | 4315 | drivers/char/istallion.c | int i; |
i | 4322 | drivers/char/istallion.c | for (i = 0; (i < panelnr); i++) |
i | 4323 | drivers/char/istallion.c | portnr += brdp->panels[i]; |
i | 171 | drivers/char/keyboard.c | int i; |
i | 173 | drivers/char/keyboard.c | for (i=0; i<0x100000; i++) |
i | 700 | drivers/char/keyboard.c | int i; |
i | 702 | drivers/char/keyboard.c | for (i = fg_console-1; i != fg_console; i--) { |
i | 703 | drivers/char/keyboard.c | if (i == -1) |
i | 704 | drivers/char/keyboard.c | i = MAX_NR_CONSOLES-1; |
i | 705 | drivers/char/keyboard.c | if (vc_cons_allocated(i)) |
i | 708 | drivers/char/keyboard.c | set_console(i); |
i | 713 | drivers/char/keyboard.c | int i; |
i | 715 | drivers/char/keyboard.c | for (i = fg_console+1; i != fg_console; i++) { |
i | 716 | drivers/char/keyboard.c | if (i == MAX_NR_CONSOLES) |
i | 717 | drivers/char/keyboard.c | i = 0; |
i | 718 | drivers/char/keyboard.c | if (vc_cons_allocated(i)) |
i | 721 | drivers/char/keyboard.c | set_console(i); |
i | 851 | drivers/char/keyboard.c | int i; |
i | 857 | drivers/char/keyboard.c | for (i = 0; i < accent_table_size; i++) { |
i | 858 | drivers/char/keyboard.c | if (accent_table[i].diacr == d && accent_table[i].base == ch) |
i | 859 | drivers/char/keyboard.c | return accent_table[i].result; |
i | 993 | drivers/char/keyboard.c | int i, j, k, sym, val; |
i | 996 | drivers/char/keyboard.c | for(i=0; i < SIZE(k_down); i++) |
i | 997 | drivers/char/keyboard.c | k_down[i] = 0; |
i | 999 | drivers/char/keyboard.c | for(i=0; i < SIZE(key_down); i++) |
i | 1000 | drivers/char/keyboard.c | if(key_down[i]) { /* skip this word if not a single bit on */ |
i | 1001 | drivers/char/keyboard.c | k = i*BITS_PER_LONG; |
i | 1070 | drivers/char/keyboard.c | int i; |
i | 1078 | drivers/char/keyboard.c | for(i=0; i<0x200000; i++) { |
i | 1187 | drivers/char/keyboard.c | int i; |
i | 1198 | drivers/char/keyboard.c | for (i = 0 ; i < MAX_NR_CONSOLES ; i++) |
i | 1199 | drivers/char/keyboard.c | kbd_table[i] = kbd0; |
i | 136 | drivers/char/mem.c | unsigned int i = file->f_pos; |
i | 139 | drivers/char/mem.c | while (count-- > 0 && i < 65536) { |
i | 140 | drivers/char/mem.c | put_user(inb(i),tmp); |
i | 141 | drivers/char/mem.c | i++; |
i | 144 | drivers/char/mem.c | file->f_pos = i; |
i | 150 | drivers/char/mem.c | unsigned int i = file->f_pos; |
i | 153 | drivers/char/mem.c | while (count-- > 0 && i < 65536) { |
i | 154 | drivers/char/mem.c | outb(get_user(tmp),i); |
i | 155 | drivers/char/mem.c | i++; |
i | 158 | drivers/char/mem.c | file->f_pos = i; |
i | 109 | drivers/char/misc.c | int i = DYNAMIC_MINORS; |
i | 110 | drivers/char/misc.c | while (--i >= 0) |
i | 111 | drivers/char/misc.c | if ( (misc_minors[i>>3] & (1 << (i&7))) == 0) |
i | 113 | drivers/char/misc.c | if (i<0) return -EBUSY; |
i | 114 | drivers/char/misc.c | misc->minor = i; |
i | 128 | drivers/char/misc.c | int i = misc->minor; |
i | 136 | drivers/char/misc.c | if (i < DYNAMIC_MINORS && i>0) { |
i | 137 | drivers/char/misc.c | misc_minors[i>>3] &= ~(1 << (misc->minor & 7)); |
i | 130 | drivers/char/msbusmouse.c | int i, dx, dy; |
i | 141 | drivers/char/msbusmouse.c | for (i = 3; i < count; i++) |
i | 142 | drivers/char/msbusmouse.c | put_user(0x00, buffer + i); |
i | 146 | drivers/char/msbusmouse.c | return i; |
i | 179 | drivers/char/msbusmouse.c | int mse_byte, i; |
i | 193 | drivers/char/msbusmouse.c | for (i = 0; i < 4; i++) { |
i | 540 | drivers/char/n_tty.c | int i; |
i | 546 | drivers/char/n_tty.c | i = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt, |
i | 548 | drivers/char/n_tty.c | memcpy(tty->read_buf + tty->read_head, cp, i); |
i | 549 | drivers/char/n_tty.c | tty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1); |
i | 550 | drivers/char/n_tty.c | tty->read_cnt += i; |
i | 551 | drivers/char/n_tty.c | cp += i; |
i | 552 | drivers/char/n_tty.c | count -= i; |
i | 554 | drivers/char/n_tty.c | i = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt, |
i | 556 | drivers/char/n_tty.c | memcpy(tty->read_buf + tty->read_head, cp, i); |
i | 557 | drivers/char/n_tty.c | tty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1); |
i | 558 | drivers/char/n_tty.c | tty->read_cnt += i; |
i | 560 | drivers/char/n_tty.c | for (i=count, p = cp, f = fp; i; i--, p++) { |
i | 380 | drivers/char/psaux.c | int i = count; |
i | 382 | drivers/char/psaux.c | while (i--) { |
i | 402 | drivers/char/psaux.c | int i = count; |
i | 404 | drivers/char/psaux.c | while (i--) { |
i | 422 | drivers/char/psaux.c | int i = count; |
i | 438 | drivers/char/psaux.c | while (i > 0 && !queue_empty()) { |
i | 441 | drivers/char/psaux.c | i--; |
i | 444 | drivers/char/psaux.c | if (count-i) { |
i | 446 | drivers/char/psaux.c | return count-i; |
i | 314 | drivers/char/random.c | unsigned i; |
i | 318 | drivers/char/random.c | i = r->add_ptr = (r->add_ptr - 1) & (POOLWORDS-1); |
i | 319 | drivers/char/random.c | if (i) |
i | 330 | drivers/char/random.c | w ^= r->pool[(i+TAP1)&(POOLWORDS-1)]; |
i | 331 | drivers/char/random.c | w ^= r->pool[(i+TAP2)&(POOLWORDS-1)]; |
i | 332 | drivers/char/random.c | w ^= r->pool[(i+TAP3)&(POOLWORDS-1)]; |
i | 333 | drivers/char/random.c | w ^= r->pool[(i+TAP4)&(POOLWORDS-1)]; |
i | 334 | drivers/char/random.c | w ^= r->pool[(i+TAP5)&(POOLWORDS-1)]; |
i | 335 | drivers/char/random.c | w ^= r->pool[i]; |
i | 337 | drivers/char/random.c | r->pool[i] = (w << 1) | (w >> 31); |
i | 581 | drivers/char/random.c | int ret, i; |
i | 605 | drivers/char/random.c | for (i = 0; i < POOLWORDS; i += 16) |
i | 606 | drivers/char/random.c | MD5Transform(tmp, r->pool+i); |
i | 620 | drivers/char/random.c | i = MIN(nbytes, 16); |
i | 622 | drivers/char/random.c | memcpy_tofs(buf, (__u8 const *)tmp, i); |
i | 624 | drivers/char/random.c | memcpy(buf, (__u8 const *)tmp, i); |
i | 625 | drivers/char/random.c | nbytes -= i; |
i | 626 | drivers/char/random.c | buf += i; |
i | 711 | drivers/char/random.c | int i; |
i | 714 | drivers/char/random.c | for (i = count, p = (__u32 *)buffer; |
i | 715 | drivers/char/random.c | i >= sizeof(__u32); |
i | 716 | drivers/char/random.c | i-= sizeof(__u32), p++) { |
i | 720 | drivers/char/random.c | if (i) { |
i | 722 | drivers/char/random.c | memcpy_fromfs(&word, p, i); |
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 | 257 | drivers/char/selection.c | for (i = sel_start; i <= sel_end; i += 2) { |
i | 258 | drivers/char/selection.c | *bp = sel_pos(i); |
i | 261 | drivers/char/selection.c | if (! ((i + 2) % video_size_row)) { |
i | 783 | drivers/char/serial.c | unsigned int i; |
i | 786 | drivers/char/serial.c | for (i=1; i < 16; i++) { |
i | 787 | drivers/char/serial.c | info = IRQ_ports[i]; |
i | 798 | drivers/char/serial.c | if (rs_multiport[i].port1) |
i | 799 | drivers/char/serial.c | rs_interrupt_multi(i, NULL, NULL); |
i | 801 | drivers/char/serial.c | rs_interrupt(i, NULL, NULL); |
i | 803 | drivers/char/serial.c | rs_interrupt_single(i, NULL, NULL); |
i | 838 | drivers/char/serial.c | int i, mask; |
i | 840 | drivers/char/serial.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 841 | drivers/char/serial.c | if (!(mask & dontgrab) && !request_irq(i, rs_probe, SA_INTERRUPT, "serial probe", NULL)) { |
i | 853 | drivers/char/serial.c | int i; |
i | 855 | drivers/char/serial.c | for (i = 0; i < 16; i++) { |
i | 856 | drivers/char/serial.c | if (irq_lines & (1 << i)) |
i | 857 | drivers/char/serial.c | free_irq(i, NULL); |
i | 1145 | drivers/char/serial.c | int i; |
i | 1152 | drivers/char/serial.c | i = cflag & CBAUD; |
i | 1153 | drivers/char/serial.c | if (i & CBAUDEX) { |
i | 1154 | drivers/char/serial.c | i &= ~CBAUDEX; |
i | 1155 | drivers/char/serial.c | if (i < 1 || i > 2) |
i | 1158 | drivers/char/serial.c | i += 15; |
i | 1160 | drivers/char/serial.c | if (i == 15) { |
i | 1162 | drivers/char/serial.c | i += 1; |
i | 1164 | drivers/char/serial.c | i += 2; |
i | 1171 | drivers/char/serial.c | } else if (baud_table[i] == 134) { |
i | 1174 | drivers/char/serial.c | } else if (baud_table[i]) { |
i | 1175 | drivers/char/serial.c | quot = info->baud_base / baud_table[i]; |
i | 1176 | drivers/char/serial.c | info->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2; |
i | 1497 | drivers/char/serial.c | unsigned int i,change_irq,change_port; |
i | 1532 | drivers/char/serial.c | for (i = 0 ; i < NR_PORTS; i++) |
i | 1533 | drivers/char/serial.c | if ((info != &rs_table[i]) && |
i | 1534 | drivers/char/serial.c | (rs_table[i].port == new_serial.port) && |
i | 1535 | drivers/char/serial.c | rs_table[i].type) |
i | 1721 | drivers/char/serial.c | int i, mask; |
i | 1746 | drivers/char/serial.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 1747 | drivers/char/serial.c | if ((rs_triggered & (1 << i)) && |
i | 1748 | drivers/char/serial.c | (irq_lines & (1 << i))) { |
i | 1751 | drivers/char/serial.c | printk("Wild interrupt? (IRQ %d)\n", i); |
i | 2669 | drivers/char/serial.c | int i; |
i | 2679 | drivers/char/serial.c | for (i = 0; i < 16; i++) { |
i | 2680 | drivers/char/serial.c | IRQ_ports[i] = 0; |
i | 2681 | drivers/char/serial.c | IRQ_timeout[i] = 0; |
i | 2682 | drivers/char/serial.c | memset(&rs_multiport[i], 0, sizeof(struct rs_multiport_struct)); |
i | 2736 | drivers/char/serial.c | for (i = 0, info = rs_table; i < NR_PORTS; i++,info++) { |
i | 2738 | drivers/char/serial.c | info->line = i; |
i | 2801 | drivers/char/serial.c | int i; |
i | 2807 | drivers/char/serial.c | for (i = 0; i < NR_PORTS; i++) { |
i | 2808 | drivers/char/serial.c | if (rs_table[i].port == req->port) |
i | 2811 | drivers/char/serial.c | if (i == NR_PORTS) { |
i | 2812 | drivers/char/serial.c | for (i = 0; i < NR_PORTS; i++) |
i | 2813 | drivers/char/serial.c | if ((rs_table[i].type == PORT_UNKNOWN) && |
i | 2814 | drivers/char/serial.c | (rs_table[i].count == 0)) |
i | 2817 | drivers/char/serial.c | if (i == NR_PORTS) { |
i | 2821 | drivers/char/serial.c | info = &rs_table[i]; |
i | 2822 | drivers/char/serial.c | if (rs_table[i].count) { |
i | 2825 | drivers/char/serial.c | "device already open\n", i, req->port, req->irq); |
i | 577 | drivers/char/stallion.c | int i, j, k; |
i | 594 | drivers/char/stallion.c | i = tty_unregister_driver(&stl_serial); |
i | 596 | drivers/char/stallion.c | if (i || j) { |
i | 597 | drivers/char/stallion.c | printk("STALLION: failed to un-register tty driver, errno=%d,%d\n", -i, -j); |
i | 601 | drivers/char/stallion.c | if ((i = unregister_chrdev(STL_SIOMEMMAJOR, "staliomem"))) |
i | 602 | drivers/char/stallion.c | printk("STALLION: failed to un-register serial memory device, errno=%d\n", -i); |
i | 607 | drivers/char/stallion.c | for (i = 0; (i < stl_nrbrds); i++) { |
i | 608 | drivers/char/stallion.c | brdp = stl_brds[i]; |
i | 640 | drivers/char/stallion.c | stl_brds[i] = (stlbrd_t *) NULL; |
i | 643 | drivers/char/stallion.c | for (i = 0; (i < stl_numintrs); i++) |
i | 644 | drivers/char/stallion.c | free_irq(stl_gotintrs[i], NULL); |
i | 1836 | drivers/char/stallion.c | int i, panelnr, iobase; |
i | 1843 | drivers/char/stallion.c | for (i = 0; (i < stl_nrbrds); ) { |
i | 1844 | drivers/char/stallion.c | if ((brdp = stl_brds[i]) == (stlbrd_t *) NULL) { |
i | 1845 | drivers/char/stallion.c | i++; |
i | 1849 | drivers/char/stallion.c | i++; |
i | 1859 | drivers/char/stallion.c | i++; |
i | 1872 | drivers/char/stallion.c | i++; |
i | 1888 | drivers/char/stallion.c | i++; |
i | 1909 | drivers/char/stallion.c | i++; |
i | 1918 | drivers/char/stallion.c | i++; |
i | 1933 | drivers/char/stallion.c | i++; |
i | 1942 | drivers/char/stallion.c | i++; |
i | 2015 | drivers/char/stallion.c | int i; |
i | 2017 | drivers/char/stallion.c | for (i = 0; (i < CCR_MAXWAIT); i++) { |
i | 2439 | drivers/char/stallion.c | int rc, i; |
i | 2446 | drivers/char/stallion.c | for (i = 0; (i < stl_numintrs); i++) { |
i | 2447 | drivers/char/stallion.c | if (stl_gotintrs[i] == irq) |
i | 2450 | drivers/char/stallion.c | if (i >= stl_numintrs) { |
i | 2475 | drivers/char/stallion.c | int i, j; |
i | 2488 | drivers/char/stallion.c | for (i = 0; (i < nrchips); i++) { |
i | 2490 | drivers/char/stallion.c | outb((panelp->pagenr + (i >> 1)), brdp->ioctrl); |
i | 2493 | drivers/char/stallion.c | ioaddr = panelp->iobase + (EREG_BANKSIZE * (i >> 1)); |
i | 2495 | drivers/char/stallion.c | uartaddr = (i & 0x01) ? 0x080 : 0; |
i | 2507 | drivers/char/stallion.c | printk("STALLION: cd1400 not responding, brd=%d panel=%d chip=%d\n", panelp->brdnr, panelp->panelnr, i); |
i | 2510 | drivers/char/stallion.c | chipmask |= (0x1 << i); |
i | 2521 | drivers/char/stallion.c | for (i = 0; (i < panelp->nrports); i++) { |
i | 2523 | drivers/char/stallion.c | outb((panelp->pagenr + (i >> 3)), brdp->ioctrl); |
i | 2526 | drivers/char/stallion.c | ioaddr = panelp->iobase + (EREG_BANKSIZE * (i >> 3)); |
i | 2528 | drivers/char/stallion.c | if ((chipmask & (0x1 << (i / 4))) == 0) |
i | 2536 | drivers/char/stallion.c | portp->portnr = i; |
i | 2540 | drivers/char/stallion.c | portp->uartaddr = (i & 0x04) << 5; |
i | 2541 | drivers/char/stallion.c | portp->pagenr = panelp->pagenr + (i >> 3); |
i | 2553 | drivers/char/stallion.c | stl_setreg(portp, CAR, (i & 0x03)); |
i | 2554 | drivers/char/stallion.c | stl_setreg(portp, LIVR, (i << 3)); |
i | 2556 | drivers/char/stallion.c | panelp->ports[i] = portp; |
i | 2644 | drivers/char/stallion.c | int panelnr, ioaddr, i; |
i | 2711 | drivers/char/stallion.c | for (i = 0; (i < STL_MAXPANELS); i++) { |
i | 2755 | drivers/char/stallion.c | i = stl_mapirq(brdp->irq); |
i | 2756 | drivers/char/stallion.c | return(i); |
i | 2770 | drivers/char/stallion.c | int i; |
i | 2796 | drivers/char/stallion.c | for (i = 0; (i < STL_MAXPANELS); i++) |
i | 2797 | drivers/char/stallion.c | if (brdp->panels[i] != (stlpanel_t *) NULL) |
i | 2798 | drivers/char/stallion.c | stl_initports(brdp, brdp->panels[i]); |
i | 2819 | drivers/char/stallion.c | int i, rc; |
i | 2826 | drivers/char/stallion.c | for (i = 0; (i < STL_MAXBRDS); i++) { |
i | 2827 | drivers/char/stallion.c | if (pcibios_find_device(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_87410, i, &busnr, &devnr)) |
i | 2902 | drivers/char/stallion.c | int i; |
i | 2917 | drivers/char/stallion.c | for (i = 0; (i < stl_nrbrds); i++) { |
i | 2918 | drivers/char/stallion.c | confp = &stl_brdconf[i]; |
i | 2926 | drivers/char/stallion.c | brdp->brdnr = i; |
i | 2956 | drivers/char/stallion.c | int i; |
i | 2975 | drivers/char/stallion.c | for (i = 0; (i < brdp->nrpanels); i++) { |
i | 2976 | drivers/char/stallion.c | panelp = brdp->panels[i]; |
i | 2977 | drivers/char/stallion.c | stl_brdstats.panels[i].panel = i; |
i | 2978 | drivers/char/stallion.c | stl_brdstats.panels[i].hwid = panelp->hwid; |
i | 2979 | drivers/char/stallion.c | stl_brdstats.panels[i].nrports = panelp->nrports; |
i | 206 | drivers/char/tga.c | int i, j; |
i | 212 | drivers/char/tga.c | for (i = 0; i < 16; i++) { |
i | 213 | drivers/char/tga.c | j = color_table[i]; |
i | 222 | drivers/char/tga.c | for (i = 0; i < 16; i++) { |
i | 223 | drivers/char/tga.c | j = color_table[i]; |
i | 386 | drivers/char/tga.c | int i; |
i | 388 | drivers/char/tga.c | i = verify_area(set ? VERIFY_READ : VERIFY_WRITE, (void *)arg, 16*3); |
i | 389 | drivers/char/tga.c | if (i) |
i | 390 | drivers/char/tga.c | return i; |
i | 392 | drivers/char/tga.c | for (i=0; i<16; i++) { |
i | 394 | drivers/char/tga.c | default_red[i] = get_user(arg++) ; |
i | 395 | drivers/char/tga.c | default_grn[i] = get_user(arg++) ; |
i | 396 | drivers/char/tga.c | default_blu[i] = get_user(arg++) ; |
i | 398 | drivers/char/tga.c | put_user (default_red[i], arg++) ; |
i | 399 | drivers/char/tga.c | put_user (default_grn[i], arg++) ; |
i | 400 | drivers/char/tga.c | put_user (default_blu[i], arg++) ; |
i | 404 | drivers/char/tga.c | for (i=0; i<MAX_NR_CONSOLES; i++) |
i | 405 | drivers/char/tga.c | if (vc_cons_allocated(i)) { |
i | 408 | drivers/char/tga.c | vc_cons[i].d->vc_palette[k++] = default_red[j]; |
i | 409 | drivers/char/tga.c | vc_cons[i].d->vc_palette[k++] = default_grn[j]; |
i | 410 | drivers/char/tga.c | vc_cons[i].d->vc_palette[k++] = default_blu[j]; |
i | 528 | drivers/char/tga.c | int i, j, temp; |
i | 554 | drivers/char/tga.c | for (i = 0; i <= 6; i++) { |
i | 556 | drivers/char/tga.c | temp = (PLLbits[i] >> (7-j)) & 1; |
i | 557 | drivers/char/tga.c | if (i == 6 && j == 7) |
i | 589 | drivers/char/tga.c | for (i = 0; i < 16; i++) { |
i | 590 | drivers/char/tga.c | j = color_table[i]; |
i | 598 | drivers/char/tga.c | for (i = 0; i < 240*3; i += 4) { |
i | 627 | drivers/char/tga.c | for (i = 0; i < 512; i++) { |
i | 630 | drivers/char/tga.c | for (i = 0; i < 512; i++) { |
i | 663 | drivers/char/tga.c | for (i = 0; i < 16; i++) { |
i | 664 | drivers/char/tga.c | j = color_table[i]; |
i | 672 | drivers/char/tga.c | for (i = 0; i < 512*3; i += 4) { |
i | 693 | drivers/char/tga.c | for (i = 0; i < 16; i++) { |
i | 726 | drivers/char/tga.c | for (i = 0; i < 256; i++) { |
i | 727 | drivers/char/tga.c | writel(bt463_cursor_source[i], temp + i*4); |
i | 745 | drivers/char/tga.c | register int i, j; |
i | 749 | drivers/char/tga.c | for (i = 0; i < tga_fb_height; i++, dst += tga_fb_stride) { |
i | 795 | drivers/char/tga.c | register int i, j, stride; |
i | 807 | drivers/char/tga.c | i = (c & 0xff) << 4; /* NOTE: assumption of 16 bytes per character bitmap */ |
i | 823 | drivers/char/tga.c | font_row = (unsigned char *)&tga_builtin_font[i]; |
i | 860 | drivers/char/tga.c | for ( i = 0; i < TGA_F_HEIGHT_PADDED; i++ ) { |
i | 861 | drivers/char/tga.c | if (i < TGA_F_HEIGHT) { |
i | 862 | drivers/char/tga.c | rowbits = font_row[i]; |
i | 866 | drivers/char/tga.c | rowbits = font_row[i-(TGA_F_HEIGHT_PADDED-TGA_F_HEIGHT)]; |
i | 489 | drivers/char/tpqic02.c | int i; |
i | 491 | drivers/char/tpqic02.c | for (i=1; i<NR_OF_EXC; i++) { |
i | 492 | drivers/char/tpqic02.c | if ((s & exception_list[i].mask)==exception_list[i].code) |
i | 493 | drivers/char/tpqic02.c | return i; |
i | 668 | drivers/char/tpqic02.c | int i; |
i | 687 | drivers/char/tpqic02.c | i = TAPE_NOTIFY_TIMEOUT; |
i | 692 | drivers/char/tpqic02.c | while ((inb_p(QIC02_STAT_PORT) & QIC02_STAT_READY) && (--i>0)) |
i | 694 | drivers/char/tpqic02.c | if (i==0) { |
i | 701 | drivers/char/tpqic02.c | i = TAPE_NOTIFY_TIMEOUT; |
i | 703 | drivers/char/tpqic02.c | while (((inb_p(QIC02_STAT_PORT) & QIC02_STAT_READY) == 0) && (--i>0)) |
i | 705 | drivers/char/tpqic02.c | if (i==0) { |
i | 782 | drivers/char/tpqic02.c | int i, stat; |
i | 784 | drivers/char/tpqic02.c | for (i=0; i<size; i++) { |
i | 790 | drivers/char/tpqic02.c | stat = notify_cmd(sb[i], ignore_ex); |
i | 948 | drivers/char/tpqic02.c | int stat, i; |
i | 956 | drivers/char/tpqic02.c | for (i=0; i<sizeof(vus); i++) { |
i | 957 | drivers/char/tpqic02.c | if ( i % 8 == 0 ) |
i | 959 | drivers/char/tpqic02.c | printk(" %2x", vus[i] & 0xff); |
i | 1802 | drivers/char/tpqic02.c | int stat, r, i; |
i | 1851 | drivers/char/tpqic02.c | if ( (i = get_dma_residue(QIC02_TAPE_DMA)) != 0 ) { |
i | 1852 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": dma_residue == %x !!!\n", i); |
i | 2558 | drivers/char/tpqic02.c | short i; |
i | 2621 | drivers/char/tpqic02.c | for (i=0; i<sizeof(qic02_tape_dynconf); i++) |
i | 2648 | drivers/char/tpqic02.c | for (i=0; i<sizeof(qic02_tape_dynconf); i++) |
i | 2680 | drivers/char/tpqic02.c | for (i=0; i<sizeof(operation); i++) |
i | 2742 | drivers/char/tpqic02.c | for (i=0; i<sizeof(ioctl_status); i++) |
i | 2775 | drivers/char/tpqic02.c | for (i=0; i<sizeof(ioctl_tell); i++) |
i | 177 | drivers/char/tty_io.c | int i, count = 0; |
i | 179 | drivers/char/tty_io.c | for (f = first_file, i=0; i<nr_files; i++, f = f->f_next) { |
i | 371 | drivers/char/tty_io.c | int i; |
i | 378 | drivers/char/tty_io.c | for (filp = first_file, i=0; i<nr_files; i++, filp = filp->f_next) { |
i | 412 | drivers/char/tty_io.c | i = (tty->ldisc.open)(tty); |
i | 413 | drivers/char/tty_io.c | if (i < 0) |
i | 415 | drivers/char/tty_io.c | -i); |
i | 720 | drivers/char/tty_io.c | int i; |
i | 747 | drivers/char/tty_io.c | i = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count); |
i | 749 | drivers/char/tty_io.c | i = -EIO; |
i | 750 | drivers/char/tty_io.c | if (i > 0) |
i | 752 | drivers/char/tty_io.c | return i; |
i | 757 | drivers/char/tty_io.c | int i, is_console; |
i | 783 | drivers/char/tty_io.c | i = (tty->ldisc.write)(tty,file,(const unsigned char *)buf,(unsigned int)count); |
i | 785 | drivers/char/tty_io.c | i = -EIO; |
i | 786 | drivers/char/tty_io.c | if (i > 0) |
i | 788 | drivers/char/tty_io.c | return i; |
i | 1341 | drivers/char/tty_io.c | int i, n = 0; |
i | 1343 | drivers/char/tty_io.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct tstruct)); |
i | 1344 | drivers/char/tty_io.c | if (i) |
i | 1345 | drivers/char/tty_io.c | return i; |
i | 1351 | drivers/char/tty_io.c | for (i=0 ; i<sizeof(struct task_struct) ; i++) |
i | 1629 | drivers/char/tty_io.c | int i; |
i | 1646 | drivers/char/tty_io.c | for (i=0; i < NR_OPEN; i++) { |
i | 1647 | 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 | 70 | drivers/char/vga.c | int i, j ; |
i | 76 | drivers/char/vga.c | for (i=j=0; i<16; i++) { |
i | 77 | drivers/char/vga.c | outb_p (color_table[i], dac_reg) ; |
i | 167 | drivers/char/vga.c | int i ; |
i | 199 | drivers/char/vga.c | for (i=0; i<16; i++) { |
i | 201 | drivers/char/vga.c | outb_p (i, 0x3c0) ; |
i | 202 | drivers/char/vga.c | outb_p (i, 0x3c0) ; |
i | 209 | drivers/char/vga.c | for (i=0; i<16; i++) { |
i | 210 | drivers/char/vga.c | outb_p (color_table[i], 0x3c8) ; |
i | 211 | drivers/char/vga.c | outb_p (default_red[i], 0x3c9) ; |
i | 212 | drivers/char/vga.c | outb_p (default_grn[i], 0x3c9) ; |
i | 213 | drivers/char/vga.c | outb_p (default_blu[i], 0x3c9) ; |
i | 254 | drivers/char/vga.c | int i; |
i | 259 | drivers/char/vga.c | for ( i = 0 ; i < 12 ; i++ ) |
i | 261 | drivers/char/vga.c | outb_p(i, 0x3b4); |
i | 262 | drivers/char/vga.c | outb_p(herc_txt_tbl[i], 0x3b5); |
i | 311 | drivers/char/vga.c | int i; |
i | 334 | drivers/char/vga.c | i = verify_area(set ? VERIFY_READ : VERIFY_WRITE, (void *)arg, |
i | 336 | drivers/char/vga.c | if (i) |
i | 337 | drivers/char/vga.c | return i; |
i | 389 | drivers/char/vga.c | for (i=0; i<cmapsz ; i++) |
i | 390 | drivers/char/vga.c | scr_writeb(get_user(arg + i), charmap + i); |
i | 392 | drivers/char/vga.c | for (i=0; i<cmapsz ; i++) |
i | 393 | drivers/char/vga.c | put_user(scr_readb(charmap + i), arg + i); |
i | 406 | drivers/char/vga.c | for (i=0; i<cmapsz ; i++) |
i | 407 | drivers/char/vga.c | *(charmap+i) = get_user(arg+i); |
i | 409 | drivers/char/vga.c | for (i=0; i<cmapsz ; i++) |
i | 410 | drivers/char/vga.c | put_user(*(charmap+i), arg+i); |
i | 535 | drivers/char/vga.c | int i; |
i | 542 | drivers/char/vga.c | i = verify_area(set ? VERIFY_READ : VERIFY_WRITE, (void *)arg, 16*3); |
i | 543 | drivers/char/vga.c | if (i) |
i | 544 | drivers/char/vga.c | return i; |
i | 546 | drivers/char/vga.c | for (i=0; i<16; i++) { |
i | 548 | drivers/char/vga.c | default_red[i] = get_user(arg++) ; |
i | 549 | drivers/char/vga.c | default_grn[i] = get_user(arg++) ; |
i | 550 | drivers/char/vga.c | default_blu[i] = get_user(arg++) ; |
i | 552 | drivers/char/vga.c | put_user (default_red[i], arg++) ; |
i | 553 | drivers/char/vga.c | put_user (default_grn[i], arg++) ; |
i | 554 | drivers/char/vga.c | put_user (default_blu[i], arg++) ; |
i | 558 | drivers/char/vga.c | for (i=0; i<MAX_NR_CONSOLES; i++) |
i | 559 | drivers/char/vga.c | if (vc_cons_allocated(i)) { |
i | 562 | drivers/char/vga.c | vc_cons[i].d->vc_palette[k++] = default_red[j]; |
i | 563 | drivers/char/vga.c | vc_cons[i].d->vc_palette[k++] = default_grn[j]; |
i | 564 | drivers/char/vga.c | vc_cons[i].d->vc_palette[k++] = default_blu[j]; |
i | 35 | drivers/char/vt.c | #define VT_IS_IN_USE(i) (console_driver.table[i] && console_driver.table[i]->count) |
i | 36 | drivers/char/vt.c | #define VT_BUSY(i) (VT_IS_IN_USE(i) || i == fg_console || i == sel_cons) |
i | 110 | drivers/char/vt.c | int i; |
i | 114 | drivers/char/vt.c | for ( i = 0 ; i < MAX_NR_CONSOLES ; i++ ) |
i | 116 | drivers/char/vt.c | if ( console_driver.table[i] ) |
i | 118 | drivers/char/vt.c | if ( row ) console_driver.table[i]->winsize.ws_row = row; |
i | 119 | drivers/char/vt.c | if ( col ) console_driver.table[i]->winsize.ws_col = col; |
i | 199 | drivers/char/vt.c | int i, perm; |
i | 248 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned char)); |
i | 249 | drivers/char/vt.c | if (!i) |
i | 251 | drivers/char/vt.c | return i; |
i | 308 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(int)); |
i | 309 | drivers/char/vt.c | if (!i) |
i | 311 | drivers/char/vt.c | return i; |
i | 347 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(int)); |
i | 348 | drivers/char/vt.c | if (!i) { |
i | 355 | drivers/char/vt.c | return i; |
i | 373 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(int)); |
i | 374 | drivers/char/vt.c | if (!i) { |
i | 379 | drivers/char/vt.c | return i; |
i | 387 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)a, sizeof(struct kbkeycode)); |
i | 388 | drivers/char/vt.c | if (i) |
i | 389 | drivers/char/vt.c | return i; |
i | 405 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)a, sizeof(struct kbkeycode)); |
i | 406 | drivers/char/vt.c | if (i) |
i | 407 | drivers/char/vt.c | return i; |
i | 419 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)a, sizeof(struct kbentry)); |
i | 420 | drivers/char/vt.c | if (i) |
i | 421 | drivers/char/vt.c | return i; |
i | 422 | drivers/char/vt.c | if ((i = get_user(&a->kb_index)) >= NR_KEYS) |
i | 428 | drivers/char/vt.c | val = U(key_map[i]); |
i | 432 | drivers/char/vt.c | val = (i ? K_HOLE : K_NOSUCHMAP); |
i | 446 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (const void *)a, sizeof(struct kbentry)); |
i | 447 | drivers/char/vt.c | if (i) |
i | 448 | drivers/char/vt.c | return i; |
i | 449 | drivers/char/vt.c | if ((i = get_user(&a->kb_index)) >= NR_KEYS) |
i | 454 | drivers/char/vt.c | if (!i && v == K_NOSUCHMAP) { |
i | 475 | drivers/char/vt.c | if (!i) |
i | 494 | drivers/char/vt.c | ov = U(key_map[i]); |
i | 503 | drivers/char/vt.c | key_map[i] = U(v); |
i | 516 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)a, sizeof(struct kbsentry)); |
i | 517 | drivers/char/vt.c | if (i) |
i | 518 | drivers/char/vt.c | return i; |
i | 519 | drivers/char/vt.c | if ((i = get_user(&a->kb_func)) >= MAX_NR_FUNC || i < 0) |
i | 524 | drivers/char/vt.c | p = func_table[i]; |
i | 543 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)a, sizeof(struct kbsentry)); |
i | 544 | drivers/char/vt.c | if (i) |
i | 545 | drivers/char/vt.c | return i; |
i | 546 | drivers/char/vt.c | if ((i = get_user(&a->kb_func)) >= MAX_NR_FUNC) |
i | 548 | drivers/char/vt.c | q = func_table[i]; |
i | 551 | drivers/char/vt.c | for (j = i+1; j < MAX_NR_FUNC && !func_table[j]; j++) ; |
i | 572 | drivers/char/vt.c | func_table[i] = fj; |
i | 583 | drivers/char/vt.c | func_table[i] = fj; |
i | 602 | drivers/char/vt.c | for (p = a->kb_string, q = func_table[i]; ; p++, q++) |
i | 612 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) a, sizeof(struct kbdiacrs)); |
i | 613 | drivers/char/vt.c | if (i) |
i | 614 | drivers/char/vt.c | return i; |
i | 628 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *) a, sizeof(struct kbdiacrs)); |
i | 629 | drivers/char/vt.c | if (i) |
i | 630 | drivers/char/vt.c | return i; |
i | 642 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned char)); |
i | 643 | drivers/char/vt.c | if (i) |
i | 644 | drivers/char/vt.c | return i; |
i | 662 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned char)); |
i | 663 | drivers/char/vt.c | if (i) |
i | 664 | drivers/char/vt.c | return i; |
i | 703 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)vtmode, sizeof(struct vt_mode)); |
i | 704 | drivers/char/vt.c | if (i) |
i | 705 | drivers/char/vt.c | return i; |
i | 724 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct vt_mode)); |
i | 725 | drivers/char/vt.c | if (i) |
i | 726 | drivers/char/vt.c | return i; |
i | 745 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE,(void *)vtstat, sizeof(struct vt_stat)); |
i | 746 | drivers/char/vt.c | if (i) |
i | 747 | drivers/char/vt.c | return i; |
i | 750 | drivers/char/vt.c | for (i = 0, mask = 2; i < MAX_NR_CONSOLES && mask; ++i, mask <<= 1) |
i | 751 | drivers/char/vt.c | if (VT_IS_IN_USE(i)) |
i | 761 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(int)); |
i | 762 | drivers/char/vt.c | if (i) |
i | 763 | drivers/char/vt.c | return i; |
i | 764 | drivers/char/vt.c | for (i = 0; i < MAX_NR_CONSOLES; ++i) |
i | 765 | drivers/char/vt.c | if (! VT_IS_IN_USE(i)) |
i | 767 | drivers/char/vt.c | put_user(i < MAX_NR_CONSOLES ? (i+1) : -1, (int *) arg); |
i | 781 | drivers/char/vt.c | i = vc_allocate(arg); |
i | 782 | drivers/char/vt.c | if (i) |
i | 783 | drivers/char/vt.c | return i; |
i | 839 | drivers/char/vt.c | i = vc_allocate(newvt); |
i | 840 | drivers/char/vt.c | if (i) |
i | 841 | drivers/char/vt.c | return i; |
i | 875 | drivers/char/vt.c | for (i=1; i<MAX_NR_CONSOLES; i++) |
i | 876 | drivers/char/vt.c | if (! VT_BUSY(i)) |
i | 877 | drivers/char/vt.c | vc_disallocate(i); |
i | 894 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)vtsizes, sizeof(struct vt_sizes)); |
i | 895 | drivers/char/vt.c | if (i) |
i | 896 | drivers/char/vt.c | return i; |
i | 899 | drivers/char/vt.c | i = vc_resize(ll, cc); |
i | 900 | drivers/char/vt.c | return i ? i : kd_size_changed(ll, cc); |
i | 909 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)vtconsize, sizeof(struct vt_consize)); |
i | 910 | drivers/char/vt.c | if (i) |
i | 911 | drivers/char/vt.c | return i; |
i | 948 | drivers/char/vt.c | i = vc_resize(ll, cc); |
i | 949 | drivers/char/vt.c | if (i) |
i | 950 | drivers/char/vt.c | return i; |
i | 989 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)arg, |
i | 991 | drivers/char/vt.c | if (i) return i; |
i | 997 | drivers/char/vt.c | i = con_set_font(cfdarg.chardata, |
i | 999 | drivers/char/vt.c | if (i) |
i | 1000 | drivers/char/vt.c | return i; |
i | 1001 | drivers/char/vt.c | i = con_adjust_height(cfdarg.charheight); |
i | 1002 | drivers/char/vt.c | return (i <= 0) ? i : kd_size_changed(i, 0); |
i | 1020 | drivers/char/vt.c | i = con_set_font(NULL, 0); /* Set font to default */ |
i | 1021 | drivers/char/vt.c | if (i) return i; |
i | 1023 | drivers/char/vt.c | i = con_adjust_height(default_font_height); |
i | 1024 | drivers/char/vt.c | if ( i > 0 ) kd_size_changed(i, 0); |
i | 1038 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)arg, |
i | 1040 | drivers/char/vt.c | if (i) return i; |
i | 1043 | drivers/char/vt.c | i = cfdarg.charcount; |
i | 1050 | drivers/char/vt.c | if ( i < nchar ) |
i | 1077 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)arg, sizeof(struct unimapinit)); |
i | 1078 | drivers/char/vt.c | if (i) |
i | 1079 | drivers/char/vt.c | return i; |
i | 1092 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)arg, sizeof(struct unimapdesc)); |
i | 1093 | drivers/char/vt.c | if (i == 0) { |
i | 1097 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *) list, |
i | 1100 | drivers/char/vt.c | if (i) |
i | 1101 | drivers/char/vt.c | return i; |
i | 1110 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct unimapdesc)); |
i | 1111 | drivers/char/vt.c | if (i == 0) { |
i | 1116 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) list, |
i | 1119 | drivers/char/vt.c | if (i) |
i | 1120 | drivers/char/vt.c | return i; |
i | 458 | drivers/isdn/icn/icn.c | int i; |
i | 464 | drivers/isdn/icn/icn.c | for (left = avail, i = msg_o; left > 0; i++, left--) { |
i | 465 | drivers/isdn/icn/icn.c | c = dev->shmem->comm_buffers.iopc_buf[i & 0xff]; |
i | 966 | drivers/isdn/icn/icn.c | int i; |
i | 988 | drivers/isdn/icn/icn.c | for (p = msg, pp = cmd_i, i = count; i > 0; i--, p++, pp++) { |
i | 991 | drivers/isdn/icn/icn.c | if ((*p == '\n') && (i > 1)) { |
i | 1037 | drivers/isdn/icn/icn.c | int i, n; |
i | 1042 | drivers/isdn/icn/icn.c | for (i = 0; *s >= '0' && *s <= '9'; i++, s++) |
i | 1051 | drivers/isdn/icn/icn.c | int i; |
i | 1130 | drivers/isdn/icn/icn.c | if ((i = (icn_loadproto((u_char *) a, dev)))) |
i | 1131 | drivers/isdn/icn/icn.c | return i; |
i | 1133 | drivers/isdn/icn/icn.c | i = icn_loadproto((u_char *) (a + ICN_CODE_STAGE2), dev2); |
i | 1134 | drivers/isdn/icn/icn.c | return i; |
i | 1147 | drivers/isdn/icn/icn.c | i = icn_writecmd(cbuf, strlen(cbuf), 0, ldev, 1); |
i | 1158 | drivers/isdn/icn/icn.c | i = icn_writecmd(cbuf, strlen(cbuf), 0, ldev, 1); |
i | 1204 | drivers/isdn/icn/icn.c | i = icn_writecmd(cbuf, strlen(cbuf), 0, ldev, 1); |
i | 1211 | drivers/isdn/icn/icn.c | i = icn_writecmd(cbuf, strlen(cbuf), 0, ldev, 1); |
i | 1218 | drivers/isdn/icn/icn.c | i = icn_writecmd(cbuf, strlen(cbuf), 0, ldev, 1); |
i | 1225 | drivers/isdn/icn/icn.c | i = icn_writecmd(cbuf, strlen(cbuf), 0, ldev, 1); |
i | 1237 | drivers/isdn/icn/icn.c | i = icn_writecmd(cbuf, strlen(cbuf), 0, ldev, 1); |
i | 1249 | drivers/isdn/icn/icn.c | i = icn_writecmd(cbuf, strlen(cbuf), 0, ldev, 1); |
i | 1265 | drivers/isdn/icn/icn.c | i = icn_writecmd(cbuf, strlen(cbuf), 0, ldev, 1); |
i | 1474 | drivers/isdn/icn/icn.c | int i; |
i | 1494 | drivers/isdn/icn/icn.c | for (i = 0; i < ICN_BCH; i++) |
i | 1498 | drivers/isdn/icn/icn.c | for (i = 0; i < ICN_BCH; i++) |
i | 139 | drivers/isdn/isdn_common.c | int i; |
i | 140 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) |
i | 141 | drivers/isdn/isdn_common.c | if (dev->chanmap[i] == ch && dev->drvmap[i] == di) |
i | 142 | drivers/isdn/isdn_common.c | return i; |
i | 229 | drivers/isdn/isdn_common.c | int i; |
i | 234 | drivers/isdn/isdn_common.c | if ((i = isdn_dc2minor(di,channel))==-1) |
i | 237 | drivers/isdn/isdn_common.c | if (isdn_net_receive_callback(i, buf, len)) |
i | 243 | drivers/isdn/isdn_common.c | midx = dev->m_idx[i]; |
i | 301 | drivers/isdn/isdn_common.c | int i; |
i | 306 | drivers/isdn/isdn_common.c | i = isdn_dc2minor(di, c->arg); |
i | 309 | drivers/isdn/isdn_common.c | if (i<0) |
i | 313 | drivers/isdn/isdn_common.c | if (isdn_net_stat_callback(i, c->command)) |
i | 329 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) |
i | 330 | drivers/isdn/isdn_common.c | if (dev->drvmap[i] == di) |
i | 331 | drivers/isdn/isdn_common.c | isdn_all_eaz(di, dev->chanmap[i]); |
i | 337 | drivers/isdn/isdn_common.c | if (i<0) |
i | 351 | drivers/isdn/isdn_common.c | r = isdn_net_find_icall(di, c->arg, i, c->num); |
i | 390 | drivers/isdn/isdn_common.c | if (i<0) |
i | 398 | drivers/isdn/isdn_common.c | isdn_net_stat_callback(i, c->command); |
i | 407 | drivers/isdn/isdn_common.c | if (i<0) |
i | 415 | drivers/isdn/isdn_common.c | if (isdn_net_stat_callback(i, c->command)) |
i | 417 | drivers/isdn/isdn_common.c | if ((mi = dev->m_idx[i]) >= 0) |
i | 432 | drivers/isdn/isdn_common.c | if (i<0) |
i | 442 | drivers/isdn/isdn_common.c | if (isdn_net_stat_callback(i, c->command)) |
i | 444 | drivers/isdn/isdn_common.c | if ((mi = dev->m_idx[i]) >= 0) { |
i | 464 | drivers/isdn/isdn_common.c | if (i<0) |
i | 474 | drivers/isdn/isdn_common.c | if (isdn_net_stat_callback(i, c->command)) |
i | 476 | drivers/isdn/isdn_common.c | if ((mi = dev->m_idx[i]) >= 0) { |
i | 491 | drivers/isdn/isdn_common.c | if (i<0) |
i | 500 | drivers/isdn/isdn_common.c | if ((mi = dev->m_idx[i]) >= 0) { |
i | 515 | drivers/isdn/isdn_common.c | if (i<0) |
i | 522 | drivers/isdn/isdn_common.c | if (isdn_net_stat_callback(i, c->command)) |
i | 524 | drivers/isdn/isdn_common.c | if ((mi = dev->m_idx[i]) >= 0) { |
i | 544 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) |
i | 545 | drivers/isdn/isdn_common.c | if (dev->drvmap[i] == di) { |
i | 546 | drivers/isdn/isdn_common.c | dev->drvmap[i] = -1; |
i | 547 | drivers/isdn/isdn_common.c | dev->chanmap[i] = -1; |
i | 548 | drivers/isdn/isdn_common.c | dev->mdm.info[i].isdn_driver = -1; |
i | 549 | drivers/isdn/isdn_common.c | dev->mdm.info[i].isdn_channel = -1; |
i | 556 | drivers/isdn/isdn_common.c | for (i = 0; i < dev->drv[di]->channels; i++) |
i | 557 | drivers/isdn/isdn_common.c | isdn_free_queue(&dev->drv[di]->rpqueue[i]); |
i | 663 | drivers/isdn/isdn_common.c | int i; |
i | 667 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) { |
i | 668 | drivers/isdn/isdn_common.c | sprintf(p, "%s ", (dev->drvmap[i] < 0) ? "-" : dev->drvid[dev->drvmap[i]]); |
i | 673 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) { |
i | 674 | drivers/isdn/isdn_common.c | sprintf(p, "%d ", dev->chanmap[i]); |
i | 679 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) { |
i | 680 | drivers/isdn/isdn_common.c | sprintf(p, "%d ", dev->drvmap[i]); |
i | 685 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) { |
i | 686 | drivers/isdn/isdn_common.c | sprintf(p, "%d ", dev->usage[i]); |
i | 691 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_DRIVERS; i++) { |
i | 692 | drivers/isdn/isdn_common.c | if (dev->drv[i]) { |
i | 693 | drivers/isdn/isdn_common.c | sprintf(p, "%ld ", dev->drv[i]->flags); |
i | 702 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) { |
i | 703 | drivers/isdn/isdn_common.c | sprintf(p, "%s ", dev->num[i]); |
i | 857 | drivers/isdn/isdn_common.c | int i; |
i | 871 | drivers/isdn/isdn_common.c | memcpy_tofs((char *) &i, src, sizeof(int)); |
i | 872 | drivers/isdn/isdn_common.c | while (i) { |
i | 934 | drivers/isdn/isdn_common.c | i--; |
i | 1167 | drivers/isdn/isdn_common.c | int i; |
i | 1177 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_DRIVERS; i++) |
i | 1178 | drivers/isdn/isdn_common.c | if (!(strcmp(dev->drvid[i], iocts.drvid))) { |
i | 1179 | drivers/isdn/isdn_common.c | drvidx = i; |
i | 1212 | drivers/isdn/isdn_common.c | int i; |
i | 1219 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) { |
i | 1220 | drivers/isdn/isdn_common.c | memcpy_tofs(p, dev->mdm.atmodem[i].profile, ISDN_MODEM_ANZREG); |
i | 1222 | drivers/isdn/isdn_common.c | memcpy_tofs(p, dev->mdm.atmodem[i].pmsn, ISDN_MSNLEN); |
i | 1233 | drivers/isdn/isdn_common.c | int i; |
i | 1240 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) { |
i | 1241 | drivers/isdn/isdn_common.c | memcpy_fromfs(dev->mdm.atmodem[i].profile, p, ISDN_MODEM_ANZREG); |
i | 1243 | drivers/isdn/isdn_common.c | memcpy_fromfs(dev->mdm.atmodem[i].pmsn, p, ISDN_MSNLEN); |
i | 1254 | drivers/isdn/isdn_common.c | int i; |
i | 1264 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_DRIVERS; i++) |
i | 1265 | drivers/isdn/isdn_common.c | if (!(strcmp(dev->drvid[i], iocts.drvid))) { |
i | 1266 | drivers/isdn/isdn_common.c | drvidx = i; |
i | 1280 | drivers/isdn/isdn_common.c | i = 0; |
i | 1281 | drivers/isdn/isdn_common.c | while ((p) && (i < 10)) { |
i | 1282 | drivers/isdn/isdn_common.c | strcpy(dev->drv[drvidx]->msn2eaz[i++], p); |
i | 1287 | drivers/isdn/isdn_common.c | for (i = 0; i < 10; i++) |
i | 1289 | drivers/isdn/isdn_common.c | strlen(dev->drv[drvidx]->msn2eaz[i]) ? |
i | 1290 | drivers/isdn/isdn_common.c | dev->drv[drvidx]->msn2eaz[i] : "-", |
i | 1291 | drivers/isdn/isdn_common.c | (i < 9) ? "," : "\0"); |
i | 1315 | drivers/isdn/isdn_common.c | int i; |
i | 1325 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_DRIVERS; i++) |
i | 1326 | drivers/isdn/isdn_common.c | if (!(strcmp(dev->drvid[i], iocts.drvid))) { |
i | 1327 | drivers/isdn/isdn_common.c | drvidx = i; |
i | 1490 | drivers/isdn/isdn_common.c | int i; |
i | 1493 | drivers/isdn/isdn_common.c | i = msn[0] - '0'; |
i | 1494 | drivers/isdn/isdn_common.c | if ((i >= 0) && (i <= 9)) |
i | 1495 | drivers/isdn/isdn_common.c | if (strlen(this->msn2eaz[i])) |
i | 1496 | drivers/isdn/isdn_common.c | return (this->msn2eaz[i]); |
i | 1508 | drivers/isdn/isdn_common.c | int i; |
i | 1515 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) |
i | 1516 | drivers/isdn/isdn_common.c | if (USG_NONE(dev->usage[i]) && |
i | 1517 | drivers/isdn/isdn_common.c | (dev->drvmap[i] != -1)) { |
i | 1518 | drivers/isdn/isdn_common.c | int d = dev->drvmap[i]; |
i | 1519 | drivers/isdn/isdn_common.c | if ((dev->usage[i] & ISDN_USAGE_EXCLUSIVE) && |
i | 1520 | drivers/isdn/isdn_common.c | ((pre_dev != d) || (pre_chan != dev->chanmap[i]))) |
i | 1525 | drivers/isdn/isdn_common.c | dev->usage[i] &= ISDN_USAGE_EXCLUSIVE; |
i | 1526 | drivers/isdn/isdn_common.c | dev->usage[i] |= usage; |
i | 1529 | drivers/isdn/isdn_common.c | return i; |
i | 1531 | drivers/isdn/isdn_common.c | if ((pre_dev == d) && (pre_chan == dev->chanmap[i])) { |
i | 1532 | drivers/isdn/isdn_common.c | dev->usage[i] &= ISDN_USAGE_EXCLUSIVE; |
i | 1533 | drivers/isdn/isdn_common.c | dev->usage[i] |= usage; |
i | 1536 | drivers/isdn/isdn_common.c | return i; |
i | 1551 | drivers/isdn/isdn_common.c | int i; |
i | 1556 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) |
i | 1557 | drivers/isdn/isdn_common.c | if (((dev->usage[i] & ISDN_USAGE_MASK) == usage) && |
i | 1558 | drivers/isdn/isdn_common.c | (dev->drvmap[i] == di) && |
i | 1559 | drivers/isdn/isdn_common.c | (dev->chanmap[i] == ch)) { |
i | 1560 | drivers/isdn/isdn_common.c | dev->usage[i] &= (ISDN_USAGE_NONE | ISDN_USAGE_EXCLUSIVE); |
i | 1561 | drivers/isdn/isdn_common.c | strcpy(dev->num[i], "???"); |
i | 1574 | drivers/isdn/isdn_common.c | int i; |
i | 1579 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) |
i | 1580 | drivers/isdn/isdn_common.c | if ((dev->drvmap[i] == di) && |
i | 1581 | drivers/isdn/isdn_common.c | (dev->chanmap[i] == ch)) { |
i | 1582 | drivers/isdn/isdn_common.c | dev->usage[i] &= ~ISDN_USAGE_EXCLUSIVE; |
i | 1596 | drivers/isdn/isdn_common.c | int i; |
i | 1600 | drivers/isdn/isdn_common.c | if ((i = isdn_dc2minor(drvidx,chan))==-1) |
i | 1602 | drivers/isdn/isdn_common.c | if (isdn_net_rcv_skb(i, skb) == 0) { |
i | 1638 | drivers/isdn/isdn_common.c | int register_isdn(isdn_if * i) |
i | 1650 | drivers/isdn/isdn_common.c | n = i->channels; |
i | 1705 | drivers/isdn/isdn_common.c | d->maxbufsize = i->maxbufsize; |
i | 1710 | drivers/isdn/isdn_common.c | d->interface = i; |
i | 1714 | drivers/isdn/isdn_common.c | i->channels = drvidx; |
i | 1716 | drivers/isdn/isdn_common.c | if (i->writebuf_skb && (!i->writebuf)) |
i | 1717 | drivers/isdn/isdn_common.c | i->writebuf = isdn_writebuf_stub; |
i | 1719 | drivers/isdn/isdn_common.c | i->rcvcallb_skb = isdn_receive_skb_callback; |
i | 1720 | drivers/isdn/isdn_common.c | i->rcvcallb = isdn_receive_callback; |
i | 1721 | drivers/isdn/isdn_common.c | i->statcallb = isdn_status_callback; |
i | 1722 | drivers/isdn/isdn_common.c | if (!strlen(i->id)) |
i | 1723 | drivers/isdn/isdn_common.c | sprintf(i->id, "line%d", drvidx); |
i | 1735 | drivers/isdn/isdn_common.c | strcpy(dev->drvid[drvidx], i->id); |
i | 1785 | drivers/isdn/isdn_common.c | int i; |
i | 1793 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_DRIVERS; i++) |
i | 1794 | drivers/isdn/isdn_common.c | dev->drvmap[i] = -1; |
i | 1795 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) { |
i | 1796 | drivers/isdn/isdn_common.c | dev->chanmap[i] = -1; |
i | 1797 | drivers/isdn/isdn_common.c | dev->m_idx[i] = -1; |
i | 1798 | drivers/isdn/isdn_common.c | strcpy(dev->num[i], "???"); |
i | 1805 | drivers/isdn/isdn_common.c | if ((i = isdn_tty_modem_init()) < 0) { |
i | 1807 | drivers/isdn/isdn_common.c | if (i == -3) |
i | 1809 | drivers/isdn/isdn_common.c | if (i <= -2) |
i | 1820 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) |
i | 1821 | drivers/isdn/isdn_common.c | kfree(dev->mdm.info[i].xmit_buf); |
i | 1854 | drivers/isdn/isdn_common.c | int i; |
i | 1876 | drivers/isdn/isdn_common.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) |
i | 1877 | drivers/isdn/isdn_common.c | kfree(dev->mdm.info[i].xmit_buf - 4); |
i | 95 | drivers/isdn/isdn_net.c | int i; |
i | 101 | drivers/isdn/isdn_net.c | for (i = 0; i < ETH_ALEN - sizeof(ulong); i++) |
i | 102 | drivers/isdn/isdn_net.c | dev->dev_addr[i] = 0xfc; |
i | 103 | drivers/isdn/isdn_net.c | memcpy(&(dev->dev_addr[i]), &dev->pa_addr, sizeof(ulong)); |
i | 315 | drivers/isdn/isdn_net.c | int i; |
i | 369 | drivers/isdn/isdn_net.c | i = isdn_dc2minor(p->local.isdn_device, p->local.isdn_channel); |
i | 370 | drivers/isdn/isdn_net.c | if (i >= 0) { |
i | 371 | drivers/isdn/isdn_net.c | strcpy(dev->num[i], p->local.dial->num); |
i | 1178 | drivers/isdn/isdn_net.c | int drvidx, i; |
i | 1208 | drivers/isdn/isdn_net.c | for (i = 0; i < ETH_ALEN; i++) |
i | 1209 | drivers/isdn/isdn_net.c | ndev->broadcast[i]=0xff; |
i | 1211 | drivers/isdn/isdn_net.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 1212 | drivers/isdn/isdn_net.c | skb_queue_head_init(&ndev->buffs[i]); |
i | 1847 | drivers/isdn/isdn_net.c | int i; |
i | 1855 | drivers/isdn/isdn_net.c | for (i = 0; i < ISDN_MAX_DRIVERS; i++) |
i | 1856 | drivers/isdn/isdn_net.c | if (dev->drv[i]) |
i | 1857 | drivers/isdn/isdn_net.c | if ((dev->drv[i]->interface->features & features) == features) |
i | 1859 | drivers/isdn/isdn_net.c | if (i == ISDN_MAX_DRIVERS) { |
i | 1893 | drivers/isdn/isdn_net.c | for (i = 0; i < ISDN_MAX_DRIVERS; i++) |
i | 1895 | drivers/isdn/isdn_net.c | if (!(strcmp(dev->drvid[i], drvid))) { |
i | 1896 | drivers/isdn/isdn_net.c | drvidx = i; |
i | 1912 | drivers/isdn/isdn_net.c | if ((i = isdn_get_free_channel(ISDN_USAGE_NET, p->local.l2_proto, |
i | 1922 | drivers/isdn/isdn_net.c | dev->usage[i] = ISDN_USAGE_EXCLUSIVE; |
i | 1925 | drivers/isdn/isdn_net.c | p->local.exclusive = i; |
i | 2120 | drivers/isdn/isdn_net.c | int i; |
i | 2124 | drivers/isdn/isdn_net.c | for (i = 0; i < 2; i++) { |
i | 2125 | drivers/isdn/isdn_net.c | n = p->local.phone[i]; |
i | 2131 | drivers/isdn/isdn_net.c | p->local.phone[i] = NULL; |
i | 114 | drivers/isdn/isdn_ppp.c | int i; |
i | 128 | drivers/isdn/isdn_ppp.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) { |
i | 129 | drivers/isdn/isdn_ppp.c | if (ippp_table[i].state == IPPP_OPEN) { /* OPEN, but not connected! */ |
i | 131 | drivers/isdn/isdn_ppp.c | printk(KERN_DEBUG "find_minor, %d lp: %08lx\n", i, (long) lp); |
i | 137 | drivers/isdn/isdn_ppp.c | if (i >= ISDN_MAX_CHANNELS) { |
i | 142 | drivers/isdn/isdn_ppp.c | lp->ppp_minor = i; |
i | 220 | drivers/isdn/isdn_ppp.c | int i; |
i | 244 | drivers/isdn/isdn_ppp.c | for (i = 0; i < NUM_RCV_BUFFS; i++) { |
i | 245 | drivers/isdn/isdn_ppp.c | if (ippp_table[minor].rq[i].buf) |
i | 246 | drivers/isdn/isdn_ppp.c | kfree(ippp_table[minor].rq[i].buf); |
i | 519 | drivers/isdn/isdn_ppp.c | int i, j; |
i | 527 | drivers/isdn/isdn_ppp.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) { |
i | 528 | drivers/isdn/isdn_ppp.c | ippp_table[i].state = 0; |
i | 529 | drivers/isdn/isdn_ppp.c | ippp_table[i].first = ippp_table[i].rq + NUM_RCV_BUFFS - 1; |
i | 530 | drivers/isdn/isdn_ppp.c | ippp_table[i].last = ippp_table[i].rq; |
i | 533 | drivers/isdn/isdn_ppp.c | ippp_table[i].rq[j].buf = NULL; |
i | 534 | drivers/isdn/isdn_ppp.c | ippp_table[i].rq[j].last = ippp_table[i].rq + |
i | 536 | drivers/isdn/isdn_ppp.c | ippp_table[i].rq[j].next = ippp_table[i].rq + (j + 1) % NUM_RCV_BUFFS; |
i | 1182 | drivers/isdn/isdn_ppp.c | int len, i, unit = 0, deci; |
i | 1185 | drivers/isdn/isdn_ppp.c | for (i = 0, deci = 1; i < len; i++, deci *= 10) { |
i | 1186 | drivers/isdn/isdn_ppp.c | if (name[len - 1 - i] >= '0' && name[len - 1 - i] <= '9') |
i | 1187 | drivers/isdn/isdn_ppp.c | unit += (name[len - 1 - i] - '0') * deci; |
i | 1191 | drivers/isdn/isdn_ppp.c | if (!i) |
i | 1194 | drivers/isdn/isdn_ppp.c | *namebuf = name + len - 1 - i; |
i | 54 | drivers/isdn/isdn_tty.c | int isdn_tty_try_read(int i, u_char * buf, int len) |
i | 59 | drivers/isdn/isdn_tty.c | if (i < 0) |
i | 61 | drivers/isdn/isdn_tty.c | if (dev->mdm.online[i]) { |
i | 62 | drivers/isdn/isdn_tty.c | if ((tty = dev->mdm.info[i].tty)) { |
i | 63 | drivers/isdn/isdn_tty.c | if (dev->mdm.info[i].MCR & UART_MCR_RTS) { |
i | 70 | drivers/isdn/isdn_tty.c | if (dev->mdm.atmodem[i].mdmreg[12] & 128) |
i | 89 | drivers/isdn/isdn_tty.c | int i; |
i | 96 | drivers/isdn/isdn_tty.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) { |
i | 97 | drivers/isdn/isdn_tty.c | if ((midx = dev->m_idx[i]) >= 0) |
i | 146 | drivers/isdn/isdn_tty.c | int i; |
i | 150 | drivers/isdn/isdn_tty.c | i = isdn_get_free_channel(ISDN_USAGE_MODEM, m->mdmreg[14], m->mdmreg[15], -1, -1); |
i | 151 | drivers/isdn/isdn_tty.c | if (i < 0) { |
i | 156 | drivers/isdn/isdn_tty.c | info->isdn_driver = dev->drvmap[i]; |
i | 157 | drivers/isdn/isdn_tty.c | info->isdn_channel = dev->chanmap[i]; |
i | 158 | drivers/isdn/isdn_tty.c | info->drv_index = i; |
i | 159 | drivers/isdn/isdn_tty.c | dev->m_idx[i] = info->line; |
i | 160 | drivers/isdn/isdn_tty.c | dev->usage[i] |= ISDN_USAGE_OUTGOING; |
i | 185 | drivers/isdn/isdn_tty.c | strcpy(dev->num[i], n); |
i | 237 | drivers/isdn/isdn_tty.c | int i; |
i | 243 | drivers/isdn/isdn_tty.c | quot = i = cflag & CBAUD; |
i | 244 | drivers/isdn/isdn_tty.c | if (i & CBAUDEX) { |
i | 245 | drivers/isdn/isdn_tty.c | i &= ~CBAUDEX; |
i | 246 | drivers/isdn/isdn_tty.c | if (i < 1 || i > 2) |
i | 249 | drivers/isdn/isdn_tty.c | i += 15; |
i | 360 | drivers/isdn/isdn_tty.c | int i; |
i | 378 | drivers/isdn/isdn_tty.c | i = driv->maxbufsize; |
i | 380 | drivers/isdn/isdn_tty.c | i = dev->drv[info->isdn_driver]->maxbufsize; |
i | 382 | drivers/isdn/isdn_tty.c | c = MIN(c, i); |
i | 386 | drivers/isdn/isdn_tty.c | i = info->line; |
i | 387 | drivers/isdn/isdn_tty.c | if (dev->mdm.online[i]) { |
i | 388 | drivers/isdn/isdn_tty.c | isdn_tty_check_esc(buf, dev->mdm.atmodem[i].mdmreg[2], c, |
i | 389 | drivers/isdn/isdn_tty.c | &(dev->mdm.atmodem[i].pluscount), |
i | 390 | drivers/isdn/isdn_tty.c | &(dev->mdm.atmodem[i].lastplus), from_user); |
i | 396 | drivers/isdn/isdn_tty.c | if (dev->mdm.atmodem[i].mdmreg[13] & 1) { |
i | 404 | drivers/isdn/isdn_tty.c | if (dev->mdm.atmodem[i].mdmreg[13] & 2) { |
i | 420 | drivers/isdn/isdn_tty.c | info->xmit_size = dev->mdm.atmodem[i].mdmreg[16] * 16; |
i | 423 | drivers/isdn/isdn_tty.c | dev->mdm.msr[i] &= ~UART_MSR_CTS; |
i | 432 | drivers/isdn/isdn_tty.c | if (dev->mdm.dialing[i]) { |
i | 433 | drivers/isdn/isdn_tty.c | dev->mdm.dialing[i] = 0; |
i | 1126 | drivers/isdn/isdn_tty.c | int i; |
i | 1130 | drivers/isdn/isdn_tty.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) { |
i | 1131 | drivers/isdn/isdn_tty.c | isdn_tty_reset_profile(&(m->atmodem[i])); |
i | 1132 | drivers/isdn/isdn_tty.c | isdn_tty_modem_reset_regs(&(m->atmodem[i]), 1); |
i | 1182 | drivers/isdn/isdn_tty.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) { |
i | 1183 | drivers/isdn/isdn_tty.c | info = &(m->info[i]); |
i | 1185 | drivers/isdn/isdn_tty.c | info->line = i; |
i | 1218 | drivers/isdn/isdn_tty.c | int i; |
i | 1259 | drivers/isdn/isdn_tty.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) { |
i | 1261 | drivers/isdn/isdn_tty.c | printk(KERN_DEBUG "m_fi: i=%d msn=%s mmsn=%s mreg18=%d mreg19=%d\n", i, |
i | 1262 | drivers/isdn/isdn_tty.c | dev->mdm.atmodem[i].msn, isdn_map_eaz2msn(dev->mdm.atmodem[i].msn, di), |
i | 1263 | drivers/isdn/isdn_tty.c | dev->mdm.atmodem[i].mdmreg[18], dev->mdm.atmodem[i].mdmreg[19]); |
i | 1265 | drivers/isdn/isdn_tty.c | if ((!strcmp(isdn_map_eaz2msn(dev->mdm.atmodem[i].msn, di) |
i | 1267 | drivers/isdn/isdn_tty.c | (dev->mdm.atmodem[i].mdmreg[18] == si1) && /* SI1 is matching */ |
i | 1268 | drivers/isdn/isdn_tty.c | (dev->mdm.atmodem[i].mdmreg[19] == si2)) { /* SI2 is matching */ |
i | 1269 | drivers/isdn/isdn_tty.c | modem_info *info = &dev->mdm.info[i]; |
i | 1557 | drivers/isdn/isdn_tty.c | int i; |
i | 1759 | drivers/isdn/isdn_tty.c | i = isdn_getnum(&p); |
i | 1760 | drivers/isdn/isdn_tty.c | if ((i < 0) || (i > ISDN_SERIAL_XMIT_SIZE)) { |
i | 1764 | drivers/isdn/isdn_tty.c | m->mdmreg[16] = i / 16; |
i | 1795 | drivers/isdn/isdn_tty.c | i = isdn_getnum(&p); |
i | 1796 | drivers/isdn/isdn_tty.c | if ((i > 0) && (i < 9)) |
i | 1797 | drivers/isdn/isdn_tty.c | m->mdmreg[17] = i; |
i | 1806 | drivers/isdn/isdn_tty.c | for (i = 0; i < ISDN_MODEM_ANZREG; i++) { |
i | 1807 | drivers/isdn/isdn_tty.c | sprintf(rb, "S%d=%d%s", i, m->mdmreg[i], (i == 6) ? "\r\n" : " "); |
i | 1946 | drivers/isdn/isdn_tty.c | int i; |
i | 1949 | drivers/isdn/isdn_tty.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) |
i | 1950 | drivers/isdn/isdn_tty.c | if (USG_MODEM(dev->usage[i])) |
i | 1951 | drivers/isdn/isdn_tty.c | if ((midx = dev->m_idx[i]) >= 0) |
i | 1972 | drivers/isdn/isdn_tty.c | int i; |
i | 1975 | drivers/isdn/isdn_tty.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) |
i | 1976 | drivers/isdn/isdn_tty.c | if (USG_MODEM(dev->usage[i])) |
i | 1977 | drivers/isdn/isdn_tty.c | if ((midx = dev->m_idx[i]) >= 0) |
i | 1988 | drivers/isdn/isdn_tty.c | int i; |
i | 1993 | drivers/isdn/isdn_tty.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) |
i | 1994 | drivers/isdn/isdn_tty.c | if (USG_MODEM(dev->usage[i])) |
i | 1995 | drivers/isdn/isdn_tty.c | if ((midx = dev->m_idx[i]) >= 0) |
i | 2049 | drivers/isdn/isdn_tty.c | int i; |
i | 2054 | drivers/isdn/isdn_tty.c | for (i = 0; i < ISDN_MAX_CHANNELS; i++) { |
i | 2055 | drivers/isdn/isdn_tty.c | modem_info *info = &dev->mdm.info[i]; |
i | 2060 | drivers/isdn/isdn_tty.c | dev->mdm.msr[i] |= UART_MSR_CTS; |
i | 35 | drivers/isdn/teles/buffers.c | int i; |
i | 57 | drivers/isdn/teles/buffers.c | i = bp->bpps; |
i | 60 | drivers/isdn/teles/buffers.c | while (i--) { |
i | 103 | drivers/isdn/teles/buffers.c | int i; |
i | 114 | drivers/isdn/teles/buffers.c | i = 0; |
i | 124 | drivers/isdn/teles/buffers.c | if ((i == 0) && (bp->pagescount < bp->maxpages)) { |
i | 129 | drivers/isdn/teles/buffers.c | i++; |
i | 246 | drivers/isdn/teles/buffers.c | int i = 0; |
i | 251 | drivers/isdn/teles/buffers.c | i++; |
i | 254 | drivers/isdn/teles/buffers.c | return (i); |
i | 182 | drivers/isdn/teles/callc.c | int i, n; |
i | 187 | drivers/isdn/teles/callc.c | for (i = 0; *s >= '0' && *s <= '9'; i++, s++) |
i | 977 | drivers/isdn/teles/callc.c | int i, ces, c; |
i | 980 | drivers/isdn/teles/callc.c | for (i = 0; i < nrcards; i++) |
i | 981 | drivers/isdn/teles/callc.c | if (cards[i].sp) |
i | 989 | drivers/isdn/teles/callc.c | for (i = 0; i < nrcards; i++) |
i | 990 | drivers/isdn/teles/callc.c | if (cards[i].sp) { |
i | 991 | drivers/isdn/teles/callc.c | init_chan(c++, i, 1, ces++); |
i | 993 | drivers/isdn/teles/callc.c | init_chan(c++, i, 0, ces++); |
i | 1023 | drivers/isdn/teles/callc.c | int i; |
i | 1025 | drivers/isdn/teles/callc.c | for (i = 0; i < chancount; i++) |
i | 1026 | drivers/isdn/teles/callc.c | release_chan(i); |
i | 1145 | drivers/isdn/teles/callc.c | channel_report(int i) |
i | 1162 | drivers/isdn/teles/callc.c | int i; |
i | 1164 | drivers/isdn/teles/callc.c | for (i = 0; i < chancount; i++) { |
i | 1165 | drivers/isdn/teles/callc.c | chanlist[i].debug = debugflags & 1; |
i | 1166 | drivers/isdn/teles/callc.c | chanlist[i].fi.debug = debugflags & 2; |
i | 1167 | drivers/isdn/teles/callc.c | chanlist[i].is.l2.l2m.debug = debugflags & 8; |
i | 1168 | drivers/isdn/teles/callc.c | chanlist[i].ds.l2.l2m.debug = debugflags & 16; |
i | 1170 | drivers/isdn/teles/callc.c | for (i = 0; i < nrcards; i++) |
i | 1171 | drivers/isdn/teles/callc.c | if (cards[i].sp) |
i | 1172 | drivers/isdn/teles/callc.c | cards[i].sp->dlogflag = debugflags & 4; |
i | 1180 | drivers/isdn/teles/callc.c | int i; |
i | 1224 | drivers/isdn/teles/callc.c | for (i = 0; i < nrcards; i++) |
i | 1225 | drivers/isdn/teles/callc.c | if (cards[i].sp) |
i | 1226 | drivers/isdn/teles/callc.c | teles_reportcard(i); |
i | 1227 | drivers/isdn/teles/callc.c | for (i = 0; i < chancount; i++) |
i | 1228 | drivers/isdn/teles/callc.c | channel_report(i); |
i | 1238 | drivers/isdn/teles/callc.c | i = num >> 8; |
i | 1239 | drivers/isdn/teles/callc.c | if (i >= chancount) |
i | 1241 | drivers/isdn/teles/callc.c | chanp = chanlist + i; |
i | 1271 | drivers/isdn/teles/callc.c | int err, i; |
i | 1284 | drivers/isdn/teles/callc.c | i = st->l2.ihsize; |
i | 1286 | drivers/isdn/teles/callc.c | i = 0; |
i | 1288 | drivers/isdn/teles/callc.c | ptr += i; |
i | 1294 | drivers/isdn/teles/callc.c | ibh->datasize = count + i; |
i | 335 | drivers/isdn/teles/card.c | int i; |
i | 337 | drivers/isdn/teles/card.c | for (i = 0; i < count; i++) |
i | 338 | drivers/isdn/teles/card.c | printk(" %2x", ptr[i]); |
i | 381 | drivers/isdn/teles/card.c | int i; |
i | 383 | drivers/isdn/teles/card.c | for (i = 0; i < count; i++) |
i | 384 | drivers/isdn/teles/card.c | printk(" %2x", ptr[i]); |
i | 540 | drivers/isdn/teles/card.c | int i; |
i | 543 | drivers/isdn/teles/card.c | for (i = 0; i < count; i++) |
i | 544 | drivers/isdn/teles/card.c | printk("%2x ", ptr[i]); |
i | 598 | drivers/isdn/teles/card.c | int i; |
i | 601 | drivers/isdn/teles/card.c | for (i = 0; i < count; i++) |
i | 602 | drivers/isdn/teles/card.c | printk("%2x ", ptr[i]); |
i | 1592 | drivers/isdn/teles/card.c | int i; |
i | 1594 | drivers/isdn/teles/card.c | for (i = idx; i < 15; i++) |
i | 1595 | drivers/isdn/teles/card.c | memcpy(&cards[i],&cards[i+1],sizeof(cards[i])); |
i | 1602 | drivers/isdn/teles/card.c | int i = 0; |
i | 1604 | drivers/isdn/teles/card.c | while (i < nrcards) { |
i | 1605 | drivers/isdn/teles/card.c | if (!cards[i].protocol) |
i | 1607 | drivers/isdn/teles/card.c | switch (checkcard(i)) { |
i | 1609 | drivers/isdn/teles/card.c | initcard(i); |
i | 1610 | drivers/isdn/teles/card.c | if (get_irq(i)) { |
i | 1611 | drivers/isdn/teles/card.c | closecard(i); |
i | 1612 | drivers/isdn/teles/card.c | teles_shiftcards(i); |
i | 1615 | drivers/isdn/teles/card.c | i++; |
i | 1619 | drivers/isdn/teles/card.c | teles_shiftcards(i); |
i | 1622 | drivers/isdn/teles/card.c | release_region(cards[i].iobase, 8); |
i | 1623 | drivers/isdn/teles/card.c | teles_shiftcards(i); |
i | 1624 | drivers/isdn/teles/card.c | printk(KERN_WARNING "NO Teles card found at 0x%x!\n", cards[i].iobase); |
i | 1634 | drivers/isdn/teles/card.c | int i; |
i | 1636 | drivers/isdn/teles/card.c | for (i = 0; i < nrcards; i++) |
i | 1637 | drivers/isdn/teles/card.c | if (cards[i].sp) { |
i | 1638 | drivers/isdn/teles/card.c | release_irq(i); |
i | 1639 | drivers/isdn/teles/card.c | closecard(i); |
i | 8 | drivers/isdn/teles/fsm.c | int i; |
i | 14 | drivers/isdn/teles/fsm.c | for (i = 0; i < fncount; i++) |
i | 15 | drivers/isdn/teles/fsm.c | fsm->jumpmatrix[fsm->state_count * fnlist[i].event + |
i | 16 | drivers/isdn/teles/fsm.c | fnlist[i].state] = (int) fnlist[i].routine; |
i | 192 | drivers/isdn/teles/isdnl2.c | int i, p1, p2; |
i | 199 | drivers/isdn/teles/isdnl2.c | for (i = 0; i < p1; i++) { |
i | 200 | drivers/isdn/teles/isdnl2.c | p2 = (i + l2->sow) % l2->window; |
i | 314 | drivers/isdn/teles/isdnl2.c | int i; |
i | 316 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&(st->l2), ibh, 0); |
i | 318 | drivers/isdn/teles/isdnl2.c | ptr += i; |
i | 338 | drivers/isdn/teles/isdnl2.c | int i; |
i | 351 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&st->l2, ibh, 0); |
i | 353 | drivers/isdn/teles/isdnl2.c | ptr += i; |
i | 358 | drivers/isdn/teles/isdnl2.c | ibh->datasize = i + 1; |
i | 376 | drivers/isdn/teles/isdnl2.c | int i; |
i | 396 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&(st->l2), ibh, 0); |
i | 398 | drivers/isdn/teles/isdnl2.c | ptr += i; |
i | 400 | drivers/isdn/teles/isdnl2.c | ibh->datasize = i + 1; |
i | 413 | drivers/isdn/teles/isdnl2.c | int i; |
i | 429 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&(st->l2), ibh, 0); |
i | 431 | drivers/isdn/teles/isdnl2.c | ptr += i; |
i | 433 | drivers/isdn/teles/isdnl2.c | ibh->datasize = i + 1; |
i | 445 | drivers/isdn/teles/isdnl2.c | int i, p; |
i | 464 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&(st->l2), ibh, 0); |
i | 466 | drivers/isdn/teles/isdnl2.c | ptr += i; |
i | 468 | drivers/isdn/teles/isdnl2.c | ibh->datasize = i + 1; |
i | 534 | drivers/isdn/teles/isdnl2.c | int p, i, seq, rsp; |
i | 567 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(l2, ibh, !0); |
i | 569 | drivers/isdn/teles/isdnl2.c | ptr += i; |
i | 574 | drivers/isdn/teles/isdnl2.c | i += 2; |
i | 577 | drivers/isdn/teles/isdnl2.c | i += 1; |
i | 579 | drivers/isdn/teles/isdnl2.c | ibh->datasize = i; |
i | 613 | drivers/isdn/teles/isdnl2.c | int i; |
i | 618 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&st->l2, ibh, 0); |
i | 642 | drivers/isdn/teles/isdnl2.c | int i, p, seq, nr, wasok; |
i | 675 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&(st->l2), ibh2, p); |
i | 677 | drivers/isdn/teles/isdnl2.c | ptr += i; |
i | 682 | drivers/isdn/teles/isdnl2.c | i += 2; |
i | 685 | drivers/isdn/teles/isdnl2.c | i += 1; |
i | 687 | drivers/isdn/teles/isdnl2.c | ibh2->datasize = i; |
i | 701 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&(st->l2), ibh2, p); |
i | 703 | drivers/isdn/teles/isdnl2.c | ptr += i; |
i | 708 | drivers/isdn/teles/isdnl2.c | i += 2; |
i | 711 | drivers/isdn/teles/isdnl2.c | i += 1; |
i | 713 | drivers/isdn/teles/isdnl2.c | ibh2->datasize = i; |
i | 759 | drivers/isdn/teles/isdnl2.c | int i; |
i | 765 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&(st->l2), ibh2, !0); |
i | 767 | drivers/isdn/teles/isdnl2.c | ptr += i; |
i | 772 | drivers/isdn/teles/isdnl2.c | i += 2; |
i | 775 | drivers/isdn/teles/isdnl2.c | i += 1; |
i | 777 | drivers/isdn/teles/isdnl2.c | ibh2->datasize = i; |
i | 861 | drivers/isdn/teles/isdnl2.c | int i; |
i | 878 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&st->l2, ibh, 0); |
i | 880 | drivers/isdn/teles/isdnl2.c | ptr += i; |
i | 885 | drivers/isdn/teles/isdnl2.c | ibh->datasize = i + 1; |
i | 895 | drivers/isdn/teles/isdnl2.c | int i; |
i | 916 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&st->l2, ibh, 0); |
i | 918 | drivers/isdn/teles/isdnl2.c | ptr += i; |
i | 920 | drivers/isdn/teles/isdnl2.c | ibh->datasize = i + 1; |
i | 1100 | drivers/isdn/teles/isdnl2.c | int i, p, est; |
i | 1114 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&st->l2, ibh, 0); |
i | 1116 | drivers/isdn/teles/isdnl2.c | ptr += i; |
i | 1118 | drivers/isdn/teles/isdnl2.c | ibh->datasize = i + 1; |
i | 410 | drivers/isdn/teles/isdnl3.c | int i, mt, size; |
i | 420 | drivers/isdn/teles/isdnl3.c | for (i = 0; i < size; i++) |
i | 421 | drivers/isdn/teles/isdnl3.c | printk(KERN_INFO "l3up data %x\n", ptr[i]); |
i | 430 | drivers/isdn/teles/isdnl3.c | for (i = 0; i < datasl_1tr6t_len; i++) |
i | 431 | drivers/isdn/teles/isdnl3.c | if ((st->l3.state == datastatelist_1tr6t[i].state) && |
i | 432 | drivers/isdn/teles/isdnl3.c | (mt == datastatelist_1tr6t[i].primitive)) |
i | 434 | drivers/isdn/teles/isdnl3.c | if (i == datasl_1tr6t_len) { |
i | 440 | drivers/isdn/teles/isdnl3.c | datastatelist_1tr6t[i].rout(st, pr, ibh); |
i | 444 | drivers/isdn/teles/isdnl3.c | for (i = 0; i < datasllen; i++) |
i | 445 | drivers/isdn/teles/isdnl3.c | if ((st->l3.state == datastatelist[i].state) && |
i | 446 | drivers/isdn/teles/isdnl3.c | (mt == datastatelist[i].primitive)) |
i | 448 | drivers/isdn/teles/isdnl3.c | if (i == datasllen) { |
i | 451 | drivers/isdn/teles/isdnl3.c | datastatelist[i].rout(st, pr, ibh); |
i | 459 | drivers/isdn/teles/isdnl3.c | for (i = 0; i < size; i++) |
i | 460 | drivers/isdn/teles/isdnl3.c | printk(KERN_INFO "l3up data %x\n", ptr[i]); |
i | 469 | drivers/isdn/teles/isdnl3.c | for (i = 0; i < datasl_1tr6t_len; i++) |
i | 470 | drivers/isdn/teles/isdnl3.c | if ((st->l3.state == datastatelist_1tr6t[i].state) && |
i | 471 | drivers/isdn/teles/isdnl3.c | (mt == datastatelist_1tr6t[i].primitive)) |
i | 473 | drivers/isdn/teles/isdnl3.c | if (i == datasl_1tr6t_len) { |
i | 480 | drivers/isdn/teles/isdnl3.c | datastatelist_1tr6t[i].rout(st, pr, ibh); |
i | 484 | drivers/isdn/teles/isdnl3.c | for (i = 0; i < datasllen; i++) |
i | 485 | drivers/isdn/teles/isdnl3.c | if ((st->l3.state == datastatelist[i].state) && |
i | 486 | drivers/isdn/teles/isdnl3.c | (mt == datastatelist[i].primitive)) |
i | 488 | drivers/isdn/teles/isdnl3.c | if (i == datasllen) { |
i | 491 | drivers/isdn/teles/isdnl3.c | datastatelist[i].rout(st, pr, ibh); |
i | 500 | drivers/isdn/teles/isdnl3.c | int i; |
i | 506 | drivers/isdn/teles/isdnl3.c | for (i = 0; i < downsl_1tr6t_len; i++) |
i | 507 | drivers/isdn/teles/isdnl3.c | if ((st->l3.state == downstatelist_1tr6t[i].state) && |
i | 508 | drivers/isdn/teles/isdnl3.c | (pr == downstatelist_1tr6t[i].primitive)) |
i | 510 | drivers/isdn/teles/isdnl3.c | if (i == downsl_1tr6t_len) { |
i | 515 | drivers/isdn/teles/isdnl3.c | downstatelist_1tr6t[i].rout(st, pr, ibh); |
i | 519 | drivers/isdn/teles/isdnl3.c | for (i = 0; i < downsllen; i++) |
i | 520 | drivers/isdn/teles/isdnl3.c | if ((st->l3.state == downstatelist[i].state) && |
i | 521 | drivers/isdn/teles/isdnl3.c | (pr == downstatelist[i].primitive)) |
i | 523 | drivers/isdn/teles/isdnl3.c | if (i == downsllen) { |
i | 525 | drivers/isdn/teles/isdnl3.c | downstatelist[i].rout(st, pr, ibh); |
i | 6 | drivers/isdn/teles/l3_1TR6.c | int i; |
i | 9 | drivers/isdn/teles/l3_1TR6.c | for (i = 0; i < (sizeof(mtdesc_n0) / sizeof(struct MTypeDesc)); i++) { |
i | 10 | drivers/isdn/teles/l3_1TR6.c | if (mt == mtdesc_n0[i].mt) |
i | 11 | drivers/isdn/teles/l3_1TR6.c | return (mtdesc_n0[i].descr); |
i | 15 | drivers/isdn/teles/l3_1TR6.c | for (i = 0; i < (sizeof(mtdesc_n1) / sizeof(struct MTypeDesc)); i++) { |
i | 16 | drivers/isdn/teles/l3_1TR6.c | if (mt == mtdesc_n1[i].mt) |
i | 17 | drivers/isdn/teles/l3_1TR6.c | return (mtdesc_n1[i].descr); |
i | 223 | drivers/isdn/teles/l3_1TR6.c | int i; |
i | 236 | drivers/isdn/teles/l3_1TR6.c | for (i = 0; i < strlen(a_charge); i++) { |
i | 238 | drivers/isdn/teles/l3_1TR6.c | st->pa->chargeinfo += a_charge[i] & 0xf; |
i | 253 | drivers/isdn/teles/l3_1TR6.c | int i; |
i | 262 | drivers/isdn/teles/l3_1TR6.c | for (i = 0; i < ibh->datasize; i++) { |
i | 263 | drivers/isdn/teles/l3_1TR6.c | printk(KERN_INFO "Info DATA %x\n", p[i]); |
i | 319 | drivers/isdn/teles/l3_1TR6.c | int i; |
i | 333 | drivers/isdn/teles/l3_1TR6.c | for (i = 0; i < strlen(a_charge); i++) { |
i | 335 | drivers/isdn/teles/l3_1TR6.c | st->pa->chargeinfo += a_charge[i] & 0xf; |
i | 40 | drivers/isdn/teles/llglue.c | int len, count, i; |
i | 48 | drivers/isdn/teles/llglue.c | for (p = buf, i = len; i > 0; i--, p++) { |
i | 54 | drivers/isdn/teles/mod.c | int i, j, argc; |
i | 58 | drivers/isdn/teles/mod.c | i = 0; |
i | 60 | drivers/isdn/teles/mod.c | while (argc && (i<16)) { |
i | 62 | drivers/isdn/teles/mod.c | io[i].iobase = ints[j]; |
i | 66 | drivers/isdn/teles/mod.c | io[i].interrupt = ints[j]; |
i | 70 | drivers/isdn/teles/mod.c | io[i].membase = (byte *)ints[j]; |
i | 74 | drivers/isdn/teles/mod.c | io[i].protocol = ints[j]; |
i | 77 | drivers/isdn/teles/mod.c | i++; |
i | 89 | drivers/isdn/teles/mod.c | int i; |
i | 92 | drivers/isdn/teles/mod.c | for (i = 0; i < 16; i++) { |
i | 93 | drivers/isdn/teles/mod.c | if (io[i].protocol) { |
i | 94 | drivers/isdn/teles/mod.c | cards[i].membase = io[i].membase; |
i | 95 | drivers/isdn/teles/mod.c | cards[i].interrupt = io[i].interrupt; |
i | 96 | drivers/isdn/teles/mod.c | cards[i].iobase = io[i].iobase; |
i | 97 | drivers/isdn/teles/mod.c | cards[i].protocol = io[i].protocol; |
i | 100 | drivers/isdn/teles/mod.c | for (i = 0; i < 16; i++) |
i | 101 | drivers/isdn/teles/mod.c | if (cards[i].protocol) |
i | 419 | drivers/isdn/teles/q931.c | int i, cause; |
i | 433 | drivers/isdn/teles/q931.c | for (i = 0; i < CVSIZE; i++) |
i | 434 | drivers/isdn/teles/q931.c | if (cvlist[i].nr == cause) |
i | 438 | drivers/isdn/teles/q931.c | if (i == CVSIZE) |
i | 441 | drivers/isdn/teles/q931.c | dp += sprintf(dp, " cause value %x : %s \n", cause, cvlist[i].edescr); |
i | 791 | drivers/isdn/teles/q931.c | int i; |
i | 808 | drivers/isdn/teles/q931.c | for (i = 0; i < MTSIZE; i++) |
i | 809 | drivers/isdn/teles/q931.c | if (mtlist[i].nr == buf[3]) |
i | 813 | drivers/isdn/teles/q931.c | if (i == MTSIZE) |
i | 817 | drivers/isdn/teles/q931.c | buf[2], size, mtlist[i].descr); |
i | 852 | drivers/isdn/teles/q931.c | for (i = 0; i < IESIZE; i++) |
i | 853 | drivers/isdn/teles/q931.c | if (*buf == ielist[i].nr) |
i | 857 | drivers/isdn/teles/q931.c | if (i != IESIZE) { |
i | 858 | drivers/isdn/teles/q931.c | dp += sprintf(dp, " %s\n", ielist[i].descr); |
i | 859 | drivers/isdn/teles/q931.c | dp += ielist[i].f(dp, buf); |
i | 143 | drivers/isdn/teles/tei.c | tei_man(struct PStack *sp, int i, void *v) |
i | 225 | drivers/isdn/teles/tei.c | int i; |
i | 227 | drivers/isdn/teles/tei.c | for (i = 0; i < nrcards; i++) |
i | 228 | drivers/isdn/teles/tei.c | if (cards[i].sp) |
i | 229 | drivers/isdn/teles/tei.c | init_tei(cards[i].sp, cards[i].protocol); |
i | 235 | drivers/isdn/teles/tei.c | int i; |
i | 237 | drivers/isdn/teles/tei.c | for (i = 0; i < nrcards; i++) |
i | 238 | drivers/isdn/teles/tei.c | if (cards[i].sp) |
i | 239 | drivers/isdn/teles/tei.c | release_tei(cards[i].sp); |
i | 213 | drivers/net/3c501.c | int i; |
i | 221 | drivers/net/3c501.c | for (i = 0; netcard_portlist[i]; i++) |
i | 223 | drivers/net/3c501.c | int ioaddr = netcard_portlist[i]; |
i | 245 | drivers/net/3c501.c | int i; |
i | 251 | drivers/net/3c501.c | for (i = 0; i < 6; i++) |
i | 253 | drivers/net/3c501.c | outw(i, ioaddr + EL1_DATAPTR); |
i | 254 | drivers/net/3c501.c | station_addr[i] = inb(ioaddr + EL1_SAPROM); |
i | 737 | drivers/net/3c501.c | int i; |
i | 738 | drivers/net/3c501.c | for (i = 0; i < 6; i++) /* Set the station address. */ |
i | 739 | drivers/net/3c501.c | outb(dev->dev_addr[i], ioaddr + i); |
i | 104 | drivers/net/3c503.c | int i; |
i | 107 | drivers/net/3c503.c | for(i = 7; i >= 0; i--, base_bits >>= 1) |
i | 112 | drivers/net/3c503.c | if (check_region(netcard_portlist[i], EL2_IO_EXTENT)) |
i | 114 | drivers/net/3c503.c | if (el2_probe1(dev, netcard_portlist[i]) == 0) |
i | 130 | drivers/net/3c503.c | int i; |
i | 138 | drivers/net/3c503.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 139 | drivers/net/3c503.c | int ioaddr = netcard_portlist[i]; |
i | 156 | drivers/net/3c503.c | int i, iobase_reg, membase_reg, saved_406, wordlength; |
i | 207 | drivers/net/3c503.c | for (i = 0; i < 6; i++) |
i | 208 | drivers/net/3c503.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 251 | drivers/net/3c503.c | for (i = sizeof(test_val); i < EL2_MEMSIZE; i+=sizeof(test_val)) { |
i | 252 | drivers/net/3c503.c | writel(test_val, mem_base + i); |
i | 254 | drivers/net/3c503.c | || readl(mem_base + i) != test_val) { |
i | 261 | drivers/net/3c503.c | writel(0, mem_base + i); |
i | 324 | drivers/net/3c505.c | int i; |
i | 349 | drivers/net/3c505.c | for (i = 0; cont && (i < pcb->length); i++) { |
i | 350 | drivers/net/3c505.c | outb_command(pcb->data.raw[i], dev->base_addr); |
i | 363 | drivers/net/3c505.c | i = GET_ASF(dev->base_addr); |
i | 364 | drivers/net/3c505.c | if ((i == ASF_PCB_ACK) || (i == ASF_PCB_NAK)) |
i | 368 | drivers/net/3c505.c | if (i == ASF_PCB_ACK) { |
i | 372 | drivers/net/3c505.c | else if (i == ASF_PCB_NAK) { |
i | 402 | drivers/net/3c505.c | int i, j; |
i | 441 | drivers/net/3c505.c | i = 0; |
i | 446 | drivers/net/3c505.c | pcb->data.raw[i++] = inb_command(dev->base_addr); |
i | 447 | drivers/net/3c505.c | if (i > MAX_PCB_DATA) |
i | 448 | drivers/net/3c505.c | INVALID_PCB_MSG(i); |
i | 457 | drivers/net/3c505.c | total_length = pcb->data.raw[--i]; |
i | 553 | drivers/net/3c505.c | register int i; |
i | 584 | drivers/net/3c505.c | for (i = 0; i < (rlen/2); i++) { |
i | 606 | drivers/net/3c505.c | for (i = 0; i < (rlen/2); i++) { |
i | 613 | drivers/net/3c505.c | filename,__LINE__, i, rlen/2); |
i | 944 | drivers/net/3c505.c | int i; |
i | 978 | drivers/net/3c505.c | for (i = 0; i < (nlen/2);i++) { |
i | 985 | drivers/net/3c505.c | dev->name,filename,__LINE__, i, nlen/2); |
i | 1180 | drivers/net/3c505.c | int i; |
i | 1191 | drivers/net/3c505.c | for (i=0;i<dev->mc_count;i++) |
i | 1193 | drivers/net/3c505.c | memcpy(adapter->tx_pcb.data.multicast[i], dmi->dmi_addr,6); |
i | 1393 | drivers/net/3c505.c | int i; |
i | 1456 | drivers/net/3c505.c | for (i = 0; i < 6; i++) |
i | 1457 | drivers/net/3c505.c | dev->dev_addr[i] = adapter.rx_pcb.data.eth_addr[i]; |
i | 307 | drivers/net/3c507.c | int i; |
i | 314 | drivers/net/3c507.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 315 | drivers/net/3c507.c | int ioaddr = netcard_portlist[i]; |
i | 328 | drivers/net/3c507.c | int i, irq, irqval; |
i | 334 | drivers/net/3c507.c | for(i = 0; i < 255; i++) { |
i | 375 | drivers/net/3c507.c | for (i = 0; i < 6; i++) { |
i | 376 | drivers/net/3c507.c | dev->dev_addr[i] = inb(ioaddr + i); |
i | 377 | drivers/net/3c507.c | printk(" %02x", dev->dev_addr[i]); |
i | 129 | drivers/net/3c509.c | short lrs_state = 0xff, i; |
i | 151 | drivers/net/3c509.c | for (i = 0; i < 3; i++) |
i | 152 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
i | 165 | drivers/net/3c509.c | for (i = 0; i < 8; i++) |
i | 166 | drivers/net/3c509.c | if ((mca_adaptor_id(i) | 1) == 0x627c) { |
i | 167 | drivers/net/3c509.c | ioaddr = mca_pos_base_addr(i); |
i | 170 | drivers/net/3c509.c | for (i = 0; i < 3; i++) |
i | 171 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
i | 195 | drivers/net/3c509.c | for(i = 0; i < 255; i++) { |
i | 214 | drivers/net/3c509.c | for (i = 0; i < 3; i++) { |
i | 215 | drivers/net/3c509.c | phys_addr[i] = htons(id_read_eeprom(i)); |
i | 255 | drivers/net/3c509.c | for (i = 0; i < 6; i++) |
i | 256 | drivers/net/3c509.c | printk(" %2.2x", dev->dev_addr[i]); |
i | 322 | drivers/net/3c509.c | int i; |
i | 346 | drivers/net/3c509.c | for (i = 0; i < 6; i++) |
i | 347 | drivers/net/3c509.c | outb(dev->dev_addr[i], ioaddr + i); |
i | 361 | drivers/net/3c509.c | for (i = 0; i < 9; i++) |
i | 362 | drivers/net/3c509.c | inb(ioaddr + i); |
i | 429 | drivers/net/3c509.c | int i = 4; |
i | 431 | drivers/net/3c509.c | while (--i > 0 && (tx_status = inb(ioaddr + TX_STATUS)) > 0) { |
i | 485 | drivers/net/3c509.c | int i = 0; |
i | 513 | drivers/net/3c509.c | if (++i > 10) { |
i | 196 | drivers/net/3c59x.c | int i; |
i | 443 | drivers/net/3c59x.c | int i; |
i | 450 | drivers/net/3c59x.c | for (i = 0; i < 3; i++) { |
i | 453 | drivers/net/3c59x.c | outw(EEPROM_Read + PhysAddr01 + i, ioaddr + Wn0EepromCmd); |
i | 460 | drivers/net/3c59x.c | phys_addr[i] = htons(inw(ioaddr + 12)); |
i | 462 | drivers/net/3c59x.c | for (i = 0; i < 6; i++) |
i | 463 | drivers/net/3c59x.c | printk("%c%2.2x", i ? ':' : ' ', dev->dev_addr[i]); |
i | 473 | drivers/net/3c59x.c | config.i = inl(ioaddr + Wn3_Config); |
i | 476 | drivers/net/3c59x.c | config.i, inw(ioaddr + Wn3_Options)); |
i | 510 | drivers/net/3c59x.c | int i; |
i | 516 | drivers/net/3c59x.c | config.i = inl(ioaddr + Wn3_Config); |
i | 524 | drivers/net/3c59x.c | outl(config.i, ioaddr + Wn3_Config); |
i | 529 | drivers/net/3c59x.c | dev->name, config.i); |
i | 533 | drivers/net/3c59x.c | for (i = 20; i >= 0 ; i--) |
i | 539 | drivers/net/3c59x.c | for (i = 20; i >= 0 ; i--) |
i | 546 | drivers/net/3c59x.c | i = request_shared_irq(dev->irq, &vortex_interrupt, dev, vp->product_name); |
i | 547 | drivers/net/3c59x.c | if (i) /* Error */ |
i | 548 | drivers/net/3c59x.c | return i; |
i | 567 | drivers/net/3c59x.c | for (i = 0; i < 6; i++) |
i | 568 | drivers/net/3c59x.c | outb(dev->dev_addr[i], ioaddr + i); |
i | 569 | drivers/net/3c59x.c | for (; i < 12; i+=2) |
i | 570 | drivers/net/3c59x.c | outw(0, ioaddr + i); |
i | 584 | drivers/net/3c59x.c | for (i = 0; i < 10; i++) |
i | 585 | drivers/net/3c59x.c | inb(ioaddr + i); |
i | 652 | drivers/net/3c59x.c | int i; |
i | 653 | drivers/net/3c59x.c | for (i = 20; i >= 0 ; i--) |
i | 713 | drivers/net/3c59x.c | int i = 4; |
i | 715 | drivers/net/3c59x.c | while (--i > 0 && (tx_status = inb(ioaddr + TxStatus)) > 0) { |
i | 749 | drivers/net/3c59x.c | int i = 0; |
i | 845 | drivers/net/3c59x.c | if (++i > 10) { |
i | 871 | drivers/net/3c59x.c | int i; |
i | 907 | drivers/net/3c59x.c | for (i = 200; i >= 0; i--) |
i | 919 | drivers/net/3c59x.c | for (i = 200; i >= 0; i--) |
i | 629 | drivers/net/8390.c | int i; |
i | 658 | drivers/net/8390.c | for(i = 0; i < 6; i++) { |
i | 659 | drivers/net/8390.c | outb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i); |
i | 663 | drivers/net/8390.c | for(i = 0; i < 8; i++) |
i | 664 | drivers/net/8390.c | outb_p(0xff, e8390_base + EN1_MULT + i); |
i | 116 | drivers/net/ac3200.c | int i; |
i | 121 | drivers/net/ac3200.c | for(i = 0; i < 6; i++) |
i | 122 | drivers/net/ac3200.c | printk(" %02x", inb(ioaddr + AC_SA_PROM + i)); |
i | 137 | drivers/net/ac3200.c | for (i = 0; i < 4; i++) |
i | 151 | drivers/net/ac3200.c | for(i = 0; i < ETHER_ADDR_LEN; i++) |
i | 152 | drivers/net/ac3200.c | dev->dev_addr[i] = inb(ioaddr + AC_SA_PROM + i); |
i | 185 | drivers/net/ac3200.c | for (i = 0; i < 7; i++) |
i | 186 | drivers/net/ac3200.c | if (addrmap[i] == dev->mem_start) |
i | 188 | drivers/net/ac3200.c | if (i >= 7) |
i | 189 | drivers/net/ac3200.c | i = 0; |
i | 190 | drivers/net/ac3200.c | outb((inb(ioaddr + AC_CONFIG) & ~7) | i, ioaddr + AC_CONFIG); |
i | 198 | drivers/net/apricot.c | int i; |
i | 205 | drivers/net/apricot.c | for (i = 0; i < num; i++) |
i | 214 | drivers/net/apricot.c | if (i == 0) |
i | 226 | drivers/net/apricot.c | if (i != 0) |
i | 229 | drivers/net/apricot.c | return (i); |
i | 535 | drivers/net/apricot.c | int i; |
i | 545 | drivers/net/apricot.c | i = init_rx_bufs(dev, RX_RING_SIZE); |
i | 547 | drivers/net/apricot.c | if ((i = init_rx_bufs(dev, RX_RING_SIZE)) < RX_RING_SIZE) |
i | 548 | drivers/net/apricot.c | printk("%s: only able to allocate %d receive buffers\n", dev->name, i); |
i | 550 | drivers/net/apricot.c | if (i < 4) |
i | 664 | drivers/net/apricot.c | int i; |
i | 667 | drivers/net/apricot.c | for (i = 0; i < 6; i++) |
i | 668 | drivers/net/apricot.c | printk(" %2.2X", (unsigned char)add[i]); |
i | 672 | drivers/net/apricot.c | for (i = 0; i < 6; i++) |
i | 673 | drivers/net/apricot.c | printk(" %2.2X", (unsigned char)add[i+6]); |
i | 680 | drivers/net/apricot.c | int i; |
i | 692 | drivers/net/apricot.c | for (i = 0; i < 8; i++) |
i | 694 | drivers/net/apricot.c | eth_addr[i] = inb(ioaddr+8+i); |
i | 695 | drivers/net/apricot.c | checksum += eth_addr[i]; |
i | 716 | drivers/net/apricot.c | for (i = 0; i < 6; i++) |
i | 717 | drivers/net/apricot.c | printk(" %2.2X", dev->dev_addr[i] = eth_addr[i]); |
i | 671 | drivers/net/arcnet.c | int i; |
i | 677 | drivers/net/arcnet.c | for(i=0; i<skb->len; i++) |
i | 679 | drivers/net/arcnet.c | if (i%16==0) |
i | 680 | drivers/net/arcnet.c | printk("\n" KERN_DEBUG "[%04X] ",i); |
i | 682 | drivers/net/arcnet.c | printk("%02X ",((u_char *)skb->data)[i]); |
i | 694 | drivers/net/arcnet.c | int i; |
i | 700 | drivers/net/arcnet.c | for (i=0; i<256+(ext!=0)*256; i++) |
i | 702 | drivers/net/arcnet.c | if (i%16==0) |
i | 703 | drivers/net/arcnet.c | printk("\n" KERN_DEBUG "[%04X] ",i); |
i | 705 | drivers/net/arcnet.c | printk("%02X ",buffer[i]); |
i | 1271 | drivers/net/arcnet.c | int i; |
i | 1272 | drivers/net/arcnet.c | for (i=0; i<DEV_NUMBUFFS; i++) |
i | 1273 | drivers/net/arcnet.c | skb_queue_head_init(&dev->buffs[i]); |
i | 142 | drivers/net/at1700.c | int i; |
i | 150 | drivers/net/at1700.c | for (i = 0; at1700_probe_list[i]; i++) { |
i | 151 | drivers/net/at1700.c | int ioaddr = at1700_probe_list[i]; |
i | 173 | drivers/net/at1700.c | unsigned int i, irq; |
i | 216 | drivers/net/at1700.c | for(i = 0; i < 3; i++) { |
i | 217 | drivers/net/at1700.c | unsigned short eeprom_val = read_eeprom(ioaddr, 4+i); |
i | 219 | drivers/net/at1700.c | ((unsigned short *)dev->dev_addr)[i] = ntohs(eeprom_val); |
i | 238 | drivers/net/at1700.c | for (i = 0; i < 6; i++) |
i | 239 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
i | 243 | drivers/net/at1700.c | for (i = 0; i < 8; i++) |
i | 244 | drivers/net/at1700.c | outb(0x00, ioaddr + 8 + i); |
i | 280 | drivers/net/at1700.c | int i; |
i | 290 | drivers/net/at1700.c | for (i = 9; i >= 0; i--) { |
i | 291 | drivers/net/at1700.c | short dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0; |
i | 300 | drivers/net/at1700.c | for (i = 16; i > 0; i--) { |
i | 323 | drivers/net/at1700.c | int i; |
i | 329 | drivers/net/at1700.c | for (i = 0; i < 6; i++) |
i | 330 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
i | 334 | drivers/net/at1700.c | for (i = 0; i < 8; i++) |
i | 335 | drivers/net/at1700.c | outb(0x00, ioaddr + 8 + i); |
i | 557 | drivers/net/at1700.c | int i; |
i | 558 | drivers/net/at1700.c | for (i = 0; i < 20; i++) { |
i | 567 | drivers/net/at1700.c | dev->name, inb(ioaddr + RX_MODE), i); |
i | 265 | drivers/net/atp.c | int i; |
i | 274 | drivers/net/atp.c | for (i = 0; i < 3; i++) |
i | 275 | drivers/net/atp.c | ((unsigned short *)dev->dev_addr)[i] = |
i | 276 | drivers/net/atp.c | ntohs(eeprom_op(ioaddr, EE_READ(sa_offset + i))); |
i | 346 | drivers/net/atp.c | int i; |
i | 350 | drivers/net/atp.c | for (i = 0; i < 6; i++) |
i | 351 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
i | 585 | drivers/net/atp.c | int i; |
i | 586 | drivers/net/atp.c | for (i = 0; i < 6; i++) |
i | 587 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
i | 615 | drivers/net/atp.c | int i; |
i | 620 | drivers/net/atp.c | for (i = 0; i < 6; i++) |
i | 622 | drivers/net/atp.c | if (read_cmd_byte(ioaddr, PAR0 + i) != atp_timed_dev->dev_addr[i]) |
i | 625 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, atp_timed_dev->dev_addr[i]); |
i | 626 | drivers/net/atp.c | if (i == 2) |
i | 628 | drivers/net/atp.c | else if (i == 3) |
i | 630 | drivers/net/atp.c | else if (i == 4) |
i | 636 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, atp_timed_dev->dev_addr[i]); |
i | 63 | drivers/net/auto_irq.c | int i, mask; |
i | 68 | drivers/net/auto_irq.c | for (i = 0; i < 16; i++) { |
i | 69 | drivers/net/auto_irq.c | if (test_bit(i, &irqs_busy) == 0 |
i | 70 | drivers/net/auto_irq.c | && request_irq(i, autoirq_probe, SA_INTERRUPT, "irq probe", NULL) == 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, NULL); |
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, NULL); |
i | 641 | drivers/net/de4x5.c | int i;\ |
i | 642 | drivers/net/de4x5.c | i=inl(DE4X5_BMR);\ |
i | 644 | drivers/net/de4x5.c | outl(i | BMR_SWR, DE4X5_BMR);\ |
i | 646 | drivers/net/de4x5.c | outl(i, DE4X5_BMR);\ |
i | 648 | drivers/net/de4x5.c | for (i=0;i<5;i++) {inl(DE4X5_BMR); de4x5_ms_delay(1);}\ |
i | 688 | drivers/net/de4x5.c | int i, media = *((char *)&(lp->srom) + *((char *)&(lp->srom) + 19) * 3); |
i | 727 | drivers/net/de4x5.c | for (i = 0; i < ETH_ALEN - 1; i++) { /* get the ethernet addr. */ |
i | 728 | drivers/net/de4x5.c | printk("%2.2x:", dev->dev_addr[i]); |
i | 730 | drivers/net/de4x5.c | printk("%2.2x,\n", dev->dev_addr[i]); |
i | 802 | drivers/net/de4x5.c | for (i=0; i<NUM_RX_DESC; i++) { |
i | 803 | drivers/net/de4x5.c | lp->rx_ring[i].status = 0; |
i | 804 | drivers/net/de4x5.c | lp->rx_ring[i].des1 = RX_BUFF_SZ; |
i | 805 | drivers/net/de4x5.c | lp->rx_ring[i].buf = virt_to_bus(tmp + i * RX_BUFF_SZ); |
i | 806 | drivers/net/de4x5.c | lp->rx_ring[i].next = (u32)NULL; |
i | 963 | drivers/net/de4x5.c | int i, j, status = 0; |
i | 995 | drivers/net/de4x5.c | for (i = 0; i < lp->rxRingSize; i++) { |
i | 996 | drivers/net/de4x5.c | lp->rx_ring[i].status = R_OWN; |
i | 999 | drivers/net/de4x5.c | for (i = 0; i < lp->txRingSize; i++) { |
i | 1000 | drivers/net/de4x5.c | lp->tx_ring[i].status = 0; |
i | 1017 | drivers/net/de4x5.c | for (j=0, i=0;(i<500) && (j==0);i++) { /* Upto 500ms delay */ |
i | 1180 | drivers/net/de4x5.c | int i, entry; |
i | 1230 | drivers/net/de4x5.c | for (i=1; i<DE4X5_PKT_STAT_SZ-1; i++) { |
i | 1231 | drivers/net/de4x5.c | if (pkt_len < (i*DE4X5_PKT_BIN_SZ)) { |
i | 1232 | drivers/net/de4x5.c | lp->pktStats.bins[i]++; |
i | 1233 | drivers/net/de4x5.c | i = DE4X5_PKT_STAT_SZ; |
i | 1456 | drivers/net/de4x5.c | int i, j, bit, byte; |
i | 1469 | drivers/net/de4x5.c | for (i=0;i<dev->mc_count;i++) { /* for each address in the list */ |
i | 1496 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1497 | drivers/net/de4x5.c | *(pa + (i&1)) = *addrs++; |
i | 1498 | drivers/net/de4x5.c | if (i & 0x01) pa += 4; |
i | 1513 | drivers/net/de4x5.c | int i, maxSlots, status; |
i | 1526 | drivers/net/de4x5.c | i = 1; |
i | 1530 | drivers/net/de4x5.c | i = (ioaddr >> 12); |
i | 1531 | drivers/net/de4x5.c | maxSlots = i + 1; |
i | 1534 | drivers/net/de4x5.c | for (status = -ENODEV; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) { |
i | 2514 | drivers/net/de4x5.c | int i; |
i | 2520 | drivers/net/de4x5.c | for (i=lp->tx_new; i!=lp->tx_old; i--) { |
i | 2521 | drivers/net/de4x5.c | if (lp->skb[i]) { |
i | 2522 | drivers/net/de4x5.c | de4x5_putb_cache(dev, lp->skb[i]); |
i | 2523 | drivers/net/de4x5.c | lp->skb[i] = NULL; |
i | 2525 | drivers/net/de4x5.c | if (i==0) i=lp->txRingSize; |
i | 2527 | drivers/net/de4x5.c | if (lp->skb[i]) { |
i | 2528 | drivers/net/de4x5.c | de4x5_putb_cache(dev, lp->skb[i]); |
i | 2529 | drivers/net/de4x5.c | lp->skb[i] = NULL; |
i | 2548 | drivers/net/de4x5.c | int i; |
i | 2558 | drivers/net/de4x5.c | for (i=0; TX_BUFFS_AVAIL && lp->cache.skb; i++) { |
i | 2721 | drivers/net/de4x5.c | int i; |
i | 2724 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { /* Use this source address */ |
i | 2725 | drivers/net/de4x5.c | *buf++ = dev->dev_addr[i]; |
i | 2727 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { /* Use this destination address */ |
i | 2728 | drivers/net/de4x5.c | *buf++ = dev->dev_addr[i]; |
i | 2752 | drivers/net/de4x5.c | u_int i; |
i | 2754 | drivers/net/de4x5.c | for (i=0; i<msec; i++) { |
i | 2773 | drivers/net/de4x5.c | int i, status = 0, siglen = sizeof(signatures)/sizeof(c_char *); |
i | 2785 | drivers/net/de4x5.c | for (i=0;i<siglen;i++) { |
i | 2786 | drivers/net/de4x5.c | if (strstr(ManCode, signatures[i]) != NULL) { |
i | 2802 | drivers/net/de4x5.c | int i, status = 0, siglen = sizeof(de4x5_signatures)/sizeof(c_char *); |
i | 2807 | drivers/net/de4x5.c | int i = *((char *)&lp->srom + 19) * 3; |
i | 2809 | drivers/net/de4x5.c | strncpy(name, (char *)&lp->srom + 26 + i, 8); |
i | 2811 | drivers/net/de4x5.c | strncpy(name, (char *)&lp->srom + 26 + i, 8); |
i | 2815 | drivers/net/de4x5.c | for (i=0; i<siglen; i++) { |
i | 2816 | drivers/net/de4x5.c | if (strstr(name,de4x5_signatures[i])!=NULL) break; |
i | 2818 | drivers/net/de4x5.c | if (i == siglen) { |
i | 2838 | drivers/net/de4x5.c | int i; |
i | 2845 | drivers/net/de4x5.c | for (i=0; i<(sizeof(struct de4x5_srom)>>1); i++) { |
i | 2846 | drivers/net/de4x5.c | *p++ = srom_rd(aprom_addr, i); |
i | 2857 | drivers/net/de4x5.c | int broken, i, k, tmp, status = 0; |
i | 2862 | drivers/net/de4x5.c | for (i=0,k=0,j=0;j<3;j++) { |
i | 2870 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 2873 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 2875 | drivers/net/de4x5.c | dev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++; |
i | 2876 | drivers/net/de4x5.c | dev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++; |
i | 2878 | drivers/net/de4x5.c | dev->dev_addr[i] = *((u_char *)&lp->srom + i); i++; |
i | 2879 | drivers/net/de4x5.c | dev->dev_addr[i] = *((u_char *)&lp->srom + i); i++; |
i | 2883 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 2885 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 2915 | drivers/net/de4x5.c | int i, status = 0; |
i | 2917 | drivers/net/de4x5.c | for (i=0; i<sizeof(enet_det)/ETH_ALEN; i++) { |
i | 2918 | drivers/net/de4x5.c | if (!de4x5_strncmp((char *)&lp->srom, (char *)&enet_det[i], 3) && |
i | 2919 | drivers/net/de4x5.c | !de4x5_strncmp((char *)&lp->srom+0x10, (char *)&enet_det[i], 3)) { |
i | 2973 | drivers/net/de4x5.c | int i; |
i | 2977 | drivers/net/de4x5.c | for (i=0; i<6; i++, a <<= 1) { |
i | 2982 | drivers/net/de4x5.c | i = (getfrom_srom(addr) >> 3) & 0x01; |
i | 2983 | drivers/net/de4x5.c | if (i != 0) { |
i | 2992 | drivers/net/de4x5.c | int i; |
i | 2996 | drivers/net/de4x5.c | for (i=0; i<16; i++) { |
i | 3074 | drivers/net/de4x5.c | int i; |
i | 3077 | drivers/net/de4x5.c | for (i=0; i<16; i++) { |
i | 3087 | drivers/net/de4x5.c | int i; |
i | 3089 | drivers/net/de4x5.c | for (i=0; i<len; i++) { |
i | 3099 | drivers/net/de4x5.c | int i; |
i | 3102 | drivers/net/de4x5.c | for (i=0; i<5; i++) { |
i | 3124 | drivers/net/de4x5.c | int i, tmp = 0; |
i | 3126 | drivers/net/de4x5.c | for (i=0; i<len; i++) { |
i | 3209 | drivers/net/de4x5.c | int i, j, k, limit=sizeof(phy_info)/sizeof(struct phy_table); |
i | 3220 | drivers/net/de4x5.c | for (lp->mii_cnt=0, i=1; i<DE4X5_MAX_MII; i++) { |
i | 3221 | drivers/net/de4x5.c | id = mii_get_oui(i, DE4X5_MII); |
i | 3229 | drivers/net/de4x5.c | lp->phy[k].addr = i; |
i | 3232 | drivers/net/de4x5.c | i = DE4X5_MAX_MII; /* Stop the search */ |
i | 3252 | drivers/net/de4x5.c | int i; |
i | 3261 | drivers/net/de4x5.c | for (pa=lp->setup_frame+IMPERF_PA_OFFSET, i=0; i<ETH_ALEN; i++) { |
i | 3262 | drivers/net/de4x5.c | *(pa + i) = dev->dev_addr[i]; /* Host address */ |
i | 3263 | drivers/net/de4x5.c | if (i & 0x01) pa += 2; |
i | 3267 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { /* Host address */ |
i | 3268 | drivers/net/de4x5.c | *(pa + (i&1)) = dev->dev_addr[i]; |
i | 3269 | drivers/net/de4x5.c | if (i & 0x01) pa += 4; |
i | 3271 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { /* Broadcast address */ |
i | 3272 | drivers/net/de4x5.c | *(pa + (i&1)) = (char) 0xff; |
i | 3273 | drivers/net/de4x5.c | if (i & 0x01) pa += 4; |
i | 3372 | drivers/net/de4x5.c | int i; |
i | 3377 | drivers/net/de4x5.c | for (i=0;i<6;i++) { |
i | 3378 | drivers/net/de4x5.c | printk("%2.2x:",(short)dev->dev_addr[i]); |
i | 3384 | drivers/net/de4x5.c | for (i=0;i<lp->rxRingSize-1;i++){ |
i | 3385 | drivers/net/de4x5.c | if (i < 3) { |
i | 3386 | drivers/net/de4x5.c | printk("0x%8.8lx ",(u_long)&lp->rx_ring[i].status); |
i | 3389 | drivers/net/de4x5.c | printk("...0x%8.8lx\n",(u_long)&lp->rx_ring[i].status); |
i | 3391 | drivers/net/de4x5.c | for (i=0;i<lp->txRingSize-1;i++){ |
i | 3392 | drivers/net/de4x5.c | if (i < 3) { |
i | 3393 | drivers/net/de4x5.c | printk("0x%8.8lx ", (u_long)&lp->tx_ring[i].status); |
i | 3396 | drivers/net/de4x5.c | printk("...0x%8.8lx\n", (u_long)&lp->tx_ring[i].status); |
i | 3398 | drivers/net/de4x5.c | for (i=0;i<lp->rxRingSize-1;i++){ |
i | 3399 | drivers/net/de4x5.c | if (i < 3) { |
i | 3400 | drivers/net/de4x5.c | printk("0x%8.8x ",lp->rx_ring[i].buf); |
i | 3403 | drivers/net/de4x5.c | printk("...0x%8.8x\n",lp->rx_ring[i].buf); |
i | 3405 | drivers/net/de4x5.c | for (i=0;i<lp->txRingSize-1;i++){ |
i | 3406 | drivers/net/de4x5.c | if (i < 3) { |
i | 3407 | drivers/net/de4x5.c | printk("0x%8.8x ", lp->tx_ring[i].buf); |
i | 3410 | drivers/net/de4x5.c | printk("...0x%8.8x\n", lp->tx_ring[i].buf); |
i | 3478 | drivers/net/de4x5.c | int i; |
i | 3486 | drivers/net/de4x5.c | for (i=0;i<ETH_ALEN-1;i++) { |
i | 3487 | drivers/net/de4x5.c | printk("%02x:", (u_char)*(p->ieee_addr+i)); |
i | 3489 | drivers/net/de4x5.c | printk("%02x\n", (u_char)*(p->ieee_addr+i)); |
i | 3491 | drivers/net/de4x5.c | for (i=0; i<64; i++) { |
i | 3492 | drivers/net/de4x5.c | printk("%3d %04x\n", i<<1, (u_short)*((u_short *)p+i)); |
i | 3508 | drivers/net/de4x5.c | int i, j, status = 0; |
i | 3522 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { |
i | 3523 | drivers/net/de4x5.c | tmp.addr[i] = dev->dev_addr[i]; |
i | 3537 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { |
i | 3538 | drivers/net/de4x5.c | dev->dev_addr[i] = tmp.addr[i]; |
i | 3682 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { |
i | 3683 | drivers/net/de4x5.c | tmp.addr[j++] = dev->dev_addr[i]; |
i | 3689 | drivers/net/de4x5.c | for (i=0;i<lp->rxRingSize-1;i++){ |
i | 3690 | drivers/net/de4x5.c | if (i < 3) { |
i | 3691 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->rx_ring[i].status; j+=4; |
i | 3694 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->rx_ring[i].status; j+=4; |
i | 3695 | drivers/net/de4x5.c | for (i=0;i<lp->txRingSize-1;i++){ |
i | 3696 | drivers/net/de4x5.c | if (i < 3) { |
i | 3697 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->tx_ring[i].status; j+=4; |
i | 3700 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->tx_ring[i].status; j+=4; |
i | 3702 | drivers/net/de4x5.c | for (i=0;i<lp->rxRingSize-1;i++){ |
i | 3703 | drivers/net/de4x5.c | if (i < 3) { |
i | 3704 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->rx_ring[i].buf; j+=4; |
i | 3707 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->rx_ring[i].buf; j+=4; |
i | 3708 | drivers/net/de4x5.c | for (i=0;i<lp->txRingSize-1;i++){ |
i | 3709 | drivers/net/de4x5.c | if (i < 3) { |
i | 3710 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->tx_ring[i].buf; j+=4; |
i | 3713 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->tx_ring[i].buf; j+=4; |
i | 3715 | drivers/net/de4x5.c | for (i=0;i<lp->rxRingSize;i++){ |
i | 3716 | drivers/net/de4x5.c | tmp.lval[j>>2] = lp->rx_ring[i].status; j+=4; |
i | 3718 | drivers/net/de4x5.c | for (i=0;i<lp->txRingSize;i++){ |
i | 3719 | drivers/net/de4x5.c | tmp.lval[j>>2] = lp->tx_ring[i].status; j+=4; |
i | 581 | drivers/net/de600.c | int i; |
i | 622 | drivers/net/de600.c | for (i = size; i > 0; --i, ++buffer) |
i | 640 | drivers/net/de600.c | int i; |
i | 667 | drivers/net/de600.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 668 | drivers/net/de600.c | dev->dev_addr[i] = de600_read_byte(READ_DATA, dev); |
i | 669 | drivers/net/de600.c | dev->broadcast[i] = 0xff; |
i | 694 | drivers/net/de600.c | for (i = 1; i < ETH_ALEN; i++) |
i | 695 | drivers/net/de600.c | printk(":%02X",dev->dev_addr[i]); |
i | 720 | drivers/net/de600.c | int i; |
i | 767 | drivers/net/de600.c | for (i = 0; i < ETH_ALEN; i++) |
i | 768 | drivers/net/de600.c | de600_put_byte(dev->dev_addr[i]); |
i | 746 | drivers/net/de620.c | int i; |
i | 771 | drivers/net/de620.c | for (i = 0; i < 6; ++i) { /* W_PARn = 0xaa + n */ |
i | 772 | drivers/net/de620.c | de620_set_register(dev, W_PAR0 + i, dev->dev_addr[i]); |
i | 797 | drivers/net/de620.c | if (((i = de620_get_register(dev, R_STS)) & CHECK_MASK) != CHECK_OK) { |
i | 802 | drivers/net/de620.c | "! (%02x)\n", i); |
i | 835 | drivers/net/de620.c | int i; |
i | 874 | drivers/net/de620.c | for (i = 1; i < ETH_ALEN; i++) { |
i | 875 | drivers/net/de620.c | printk(":%2.2X", dev->dev_addr[i] = nic_data.NodeID[i]); |
i | 876 | drivers/net/de620.c | dev->broadcast[i] = 0xff; |
i | 473 | drivers/net/depca.c | int i, j, offset, netRAM, mem_len, status=0; |
i | 511 | drivers/net/depca.c | for (i=0; i<ETH_ALEN - 1; i++) { /* get the ethernet address */ |
i | 512 | drivers/net/depca.c | printk("%2.2x:", dev->dev_addr[i]); |
i | 514 | drivers/net/depca.c | printk("%2.2x", dev->dev_addr[i]); |
i | 573 | drivers/net/depca.c | for (i=0, j = lp->rxRingMask; j>0; i++) { |
i | 576 | drivers/net/depca.c | lp->rx_rlen = (s32)(i << 29); |
i | 577 | drivers/net/depca.c | for (i=0, j = lp->txRingMask; j>0; i++) { |
i | 580 | drivers/net/depca.c | lp->tx_rlen = (s32)(i << 29); |
i | 625 | drivers/net/depca.c | for (dev->irq=0,i=0; (depca_irq[i]) && (!dev->irq); i++) { |
i | 626 | drivers/net/depca.c | if (irqnum == depca_irq[i]) { |
i | 739 | drivers/net/depca.c | u_int i; |
i | 749 | drivers/net/depca.c | for (i = 0; i <= lp->rxRingMask; i++) { |
i | 750 | drivers/net/depca.c | writel((p=lp->dma_buffs+i*RX_BUFF_SZ) | R_OWN, &lp->rx_ring[i].base); |
i | 751 | drivers/net/depca.c | writew(-RX_BUFF_SZ, &lp->rx_ring[i].buf_length); |
i | 752 | drivers/net/depca.c | lp->rx_memcpy[i]=(char *)(p+lp->bus_offset); |
i | 754 | drivers/net/depca.c | for (i = 0; i <= lp->txRingMask; i++) { |
i | 755 | drivers/net/depca.c | writel((p=lp->dma_buffs+(i+lp->txRingMask+1)*TX_BUFF_SZ) & 0x00ffffff, |
i | 756 | drivers/net/depca.c | &lp->tx_ring[i].base); |
i | 757 | drivers/net/depca.c | lp->tx_memcpy[i]=(char *)(p+lp->bus_offset); |
i | 766 | drivers/net/depca.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 767 | drivers/net/depca.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
i | 893 | drivers/net/depca.c | int i, entry; |
i | 939 | drivers/net/depca.c | for (i=1; i<DEPCA_PKT_STAT_SZ-1; i++) { |
i | 940 | drivers/net/depca.c | if (pkt_len < (i*DEPCA_PKT_BIN_SZ)) { |
i | 941 | drivers/net/depca.c | lp->pktStats.bins[i]++; |
i | 942 | drivers/net/depca.c | i = DEPCA_PKT_STAT_SZ; |
i | 1091 | drivers/net/depca.c | int i, status=0; |
i | 1100 | drivers/net/depca.c | for (i=0;(i<100) && !(inw(DEPCA_DATA) & IDON); i++); |
i | 1102 | drivers/net/depca.c | if (i!=100) { |
i | 1107 | drivers/net/depca.c | dev->name, i, lp->sh_mem, inw(DEPCA_DATA)); |
i | 1111 | drivers/net/depca.c | dev->name, i, lp->sh_mem, inw(DEPCA_DATA)); |
i | 1169 | drivers/net/depca.c | int i, j, bit, byte; |
i | 1174 | drivers/net/depca.c | for (i=0; i<(HASH_TABLE_LEN>>3); i++) { |
i | 1175 | drivers/net/depca.c | lp->init_block.mcast_table[i] = (char)0xff; |
i | 1178 | drivers/net/depca.c | for (i=0; i<(HASH_TABLE_LEN>>3); i++){ /* Clear the multicast table */ |
i | 1179 | drivers/net/depca.c | lp->init_block.mcast_table[i]=0; |
i | 1182 | drivers/net/depca.c | for (i=0;i<dev->mc_count;i++) { /* for each address in the list */ |
i | 1214 | drivers/net/depca.c | int i = num_depcas, maxSlots; |
i | 1219 | drivers/net/depca.c | if (i >= MAX_NUM_DEPCAS) return; /* Too many ISA adapters */ |
i | 1224 | drivers/net/depca.c | ports[i] = ioaddr; |
i | 1225 | drivers/net/depca.c | maxSlots = i + 1; |
i | 1228 | drivers/net/depca.c | for (; (i<maxSlots) && (dev!=NULL) && ports[i]; i++) { |
i | 1229 | drivers/net/depca.c | if (DevicePresent(ports[i]) == 0) { |
i | 1230 | drivers/net/depca.c | if (check_region(ports[i], DEPCA_TOTAL_SIZE) == 0) { |
i | 1231 | drivers/net/depca.c | if ((dev = alloc_device(dev, ports[i])) != NULL) { |
i | 1232 | drivers/net/depca.c | if (depca_hw_init(dev, ports[i]) == 0) { |
i | 1238 | drivers/net/depca.c | printk("%s: region already allocated at 0x%04x.\n", dev->name,ports[i]); |
i | 1252 | drivers/net/depca.c | int i, maxSlots; |
i | 1261 | drivers/net/depca.c | i = 1; |
i | 1265 | drivers/net/depca.c | i = (ioaddr >> 12); |
i | 1266 | drivers/net/depca.c | maxSlots = i + 1; |
i | 1270 | drivers/net/depca.c | for (; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) { |
i | 1407 | drivers/net/depca.c | u_int i,j,k; |
i | 1411 | drivers/net/depca.c | for (i=0;i<16;i++) { /* copy the first 16 bytes of ROM to */ |
i | 1412 | drivers/net/depca.c | tmpstr[i] = readb(paddr+0xc000+i); /* a temporary string */ |
i | 1416 | drivers/net/depca.c | for (i=0;*signatures[i]!='\0' && *name=='\0';i++) { |
i | 1417 | drivers/net/depca.c | for (j=0,k=0;j<16 && k<strlen(signatures[i]);j++) { |
i | 1418 | drivers/net/depca.c | if (signatures[i][k] == tmpstr[j]) { /* track signature */ |
i | 1424 | drivers/net/depca.c | if (k == strlen(signatures[i])) { |
i | 1425 | drivers/net/depca.c | strcpy(name,signatures[i]); |
i | 1429 | drivers/net/depca.c | adapter = i - 1; |
i | 1461 | drivers/net/depca.c | int i, j, status = 0; |
i | 1476 | drivers/net/depca.c | for (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) { |
i | 1504 | drivers/net/depca.c | int i, k, tmp, status = 0; |
i | 1509 | drivers/net/depca.c | for (i=0,k=0,j=0;j<3;j++) { |
i | 1514 | drivers/net/depca.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 1516 | drivers/net/depca.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 1535 | drivers/net/depca.c | int i, entry, end, len, status = 0; |
i | 1554 | drivers/net/depca.c | for (i = entry; i != end; i = (++i) & lp->txRingMask) { |
i | 1556 | drivers/net/depca.c | writel(readl(&lp->tx_ring[i].base) & ~T_FLAGS, &lp->tx_ring[i].base); |
i | 1557 | drivers/net/depca.c | writew(0x0000, &lp->tx_ring[i].misc); /* clears other error flags */ |
i | 1558 | drivers/net/depca.c | writew(-TX_BUFF_SZ, &lp->tx_ring[i].length);/* packet length in buffer */ |
i | 1571 | drivers/net/depca.c | for (i=end; i!=entry; --i) { |
i | 1573 | drivers/net/depca.c | writel(readl(&lp->tx_ring[i].base) | T_OWN, &lp->tx_ring[i].base); |
i | 1574 | drivers/net/depca.c | if (i == 0) i=lp->txRingMask+1; |
i | 1591 | drivers/net/depca.c | u_int i; |
i | 1610 | drivers/net/depca.c | for (i=0;(*signatures[i] != '\0') && (*name == '\0');i++) { |
i | 1611 | drivers/net/depca.c | if (strstr(ManCode, signatures[i]) != NULL) { |
i | 1625 | drivers/net/depca.c | int i; |
i | 1635 | drivers/net/depca.c | for (i=0;i<lp->rxRingMask;i++){ |
i | 1636 | drivers/net/depca.c | if (i < 3) { |
i | 1637 | drivers/net/depca.c | printk("0x%8.8lx ", (long) &lp->rx_ring[i].base); |
i | 1640 | drivers/net/depca.c | printk("...0x%8.8lx\n", (long) &lp->rx_ring[i].base); |
i | 1642 | drivers/net/depca.c | for (i=0;i<lp->txRingMask;i++){ |
i | 1643 | drivers/net/depca.c | if (i < 3) { |
i | 1644 | drivers/net/depca.c | printk("0x%8.8lx ", (long) &lp->tx_ring[i].base); |
i | 1647 | drivers/net/depca.c | printk("...0x%8.8lx\n", (long) &lp->tx_ring[i].base); |
i | 1649 | drivers/net/depca.c | for (i=0;i<lp->rxRingMask;i++){ |
i | 1650 | drivers/net/depca.c | if (i < 3) { |
i | 1651 | drivers/net/depca.c | printk("0x%8.8x ", readl(&lp->rx_ring[i].base)); |
i | 1654 | drivers/net/depca.c | printk("...0x%8.8x\n", readl(&lp->rx_ring[i].base)); |
i | 1656 | drivers/net/depca.c | for (i=0;i<lp->txRingMask;i++){ |
i | 1657 | drivers/net/depca.c | if (i < 3) { |
i | 1658 | drivers/net/depca.c | printk("0x%8.8x ", readl(&lp->tx_ring[i].base)); |
i | 1661 | drivers/net/depca.c | printk("...0x%8.8x\n", readl(&lp->tx_ring[i].base)); |
i | 1665 | drivers/net/depca.c | for (i=0;i<ETH_ALEN-1;i++){ |
i | 1666 | drivers/net/depca.c | printk("%2.2x:",(u_char)readb(&p->phys_addr[i])); |
i | 1668 | drivers/net/depca.c | printk("%2.2x\n",(u_char)readb(&p->phys_addr[i])); |
i | 1670 | drivers/net/depca.c | for (i=0;i<(HASH_TABLE_LEN >> 3)-1;i++){ |
i | 1671 | drivers/net/depca.c | printk("%2.2x:",(u_char)readb(&p->mcast_table[i])); |
i | 1673 | drivers/net/depca.c | printk("%2.2x\n",(u_char)readb(&p->mcast_table[i])); |
i | 1703 | drivers/net/depca.c | int i, status = 0; |
i | 1713 | drivers/net/depca.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1714 | drivers/net/depca.c | tmp.addr[i] = dev->dev_addr[i]; |
i | 1726 | drivers/net/depca.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1727 | drivers/net/depca.c | dev->dev_addr[i] = tmp.addr[i]; |
i | 1838 | drivers/net/depca.c | i=0; |
i | 1839 | drivers/net/depca.c | tmp.sval[i++] = inw(DEPCA_NICSR); |
i | 1841 | drivers/net/depca.c | tmp.sval[i++] = inw(DEPCA_DATA); |
i | 1842 | drivers/net/depca.c | memcpy(&tmp.sval[i], &lp->init_block, sizeof(struct depca_init)); |
i | 1843 | drivers/net/depca.c | ioc->len = i+sizeof(struct depca_init); |
i | 55 | drivers/net/dlci.c | int i; |
i | 60 | drivers/net/dlci.c | for (i=0;i<sizeof(basename) / sizeof(char *);i++) |
i | 62 | drivers/net/dlci.c | if (!basename[i]) |
i | 66 | drivers/net/dlci.c | if (strcmp(basename[i], name) == 0) |
i | 70 | drivers/net/dlci.c | if (i == sizeof(basename) / sizeof(char *)) |
i | 73 | drivers/net/dlci.c | basename[i] = (char *) name; |
i | 80 | drivers/net/dlci.c | int i; |
i | 85 | drivers/net/dlci.c | for (i=0;i<sizeof(basename) / sizeof(char *);i++) |
i | 86 | drivers/net/dlci.c | if (basename[i] && (strcmp(basename[i], name) == 0)) |
i | 89 | drivers/net/dlci.c | if (i == sizeof(basename) / sizeof(char *)) |
i | 92 | drivers/net/dlci.c | basename[i] = NULL; |
i | 253 | drivers/net/dlci.c | int err, i; |
i | 271 | drivers/net/dlci.c | for (i=0;i<sizeof(basename) / sizeof(char *); i++) |
i | 272 | drivers/net/dlci.c | if ((basename[i]) && |
i | 273 | drivers/net/dlci.c | (strncmp(dlci.devname, basename[i], strlen(basename[i])) == 0) && |
i | 274 | drivers/net/dlci.c | (strlen(dlci.devname) > strlen(basename[i]))) |
i | 277 | drivers/net/dlci.c | if (i == sizeof(basename) / sizeof(char *)) |
i | 281 | drivers/net/dlci.c | for(i=0;i<CONFIG_DLCI_COUNT;i++) |
i | 282 | drivers/net/dlci.c | if (!open_dev[i]) |
i | 285 | drivers/net/dlci.c | if (i == CONFIG_DLCI_COUNT) |
i | 289 | drivers/net/dlci.c | sprintf(buf, "%s%02i", devname, i); |
i | 333 | drivers/net/dlci.c | open_dev[i] = master; |
i | 345 | drivers/net/dlci.c | int i, err; |
i | 360 | drivers/net/dlci.c | for(i=0;i<CONFIG_DLCI_COUNT;i++) |
i | 361 | drivers/net/dlci.c | if (master == open_dev[i]) |
i | 364 | drivers/net/dlci.c | if (i<CONFIG_DLCI_COUNT) |
i | 365 | drivers/net/dlci.c | open_dev[i] = NULL; |
i | 521 | drivers/net/dlci.c | int i; |
i | 548 | drivers/net/dlci.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 549 | drivers/net/dlci.c | skb_queue_head_init(&dev->buffs[i]); |
i | 556 | drivers/net/dlci.c | int i; |
i | 560 | drivers/net/dlci.c | for(i=0;i<CONFIG_DLCI_COUNT;i++) |
i | 561 | drivers/net/dlci.c | open_dev[i] = NULL; |
i | 563 | drivers/net/dlci.c | for(i=0;i<sizeof(basename) / sizeof(char *);i++) |
i | 564 | drivers/net/dlci.c | basename[i] = NULL; |
i | 582 | drivers/net/dlci.c | int i; |
i | 586 | drivers/net/dlci.c | for(i=0;i<CONFIG_DLCI_COUNT;i++) |
i | 587 | drivers/net/dlci.c | if (open_dev[i]) |
i | 589 | drivers/net/dlci.c | dlp = open_dev[i]->priv; |
i | 590 | drivers/net/dlci.c | flp = open_dev[i]->slave->priv; |
i | 592 | drivers/net/dlci.c | if (open_dev[i]->start) |
i | 595 | drivers/net/dlci.c | (*flp->deactivate)(open_dev[i]->slave, open_dev[i]); |
i | 596 | drivers/net/dlci.c | open_dev[i]->start = 0; |
i | 599 | drivers/net/dlci.c | (*flp->deassoc)(open_dev[i]->slave, open_dev[i]); |
i | 600 | drivers/net/dlci.c | kfree(open_dev[i]->priv); |
i | 601 | drivers/net/dlci.c | kfree(open_dev[i]->name); |
i | 602 | drivers/net/dlci.c | kfree(open_dev[i]); |
i | 603 | drivers/net/dlci.c | open_dev[i] = NULL; |
i | 140 | drivers/net/e2100.c | int i, status; |
i | 158 | drivers/net/e2100.c | for (i = 0; i < 6; i++) |
i | 159 | drivers/net/e2100.c | station_addr[i] = inb(ioaddr + E21_SAPROM + i); |
i | 174 | drivers/net/e2100.c | for (i = 0; i < 6; i++) |
i | 175 | drivers/net/e2100.c | printk(" %02X", station_addr[i]); |
i | 178 | drivers/net/e2100.c | int irqlist[] = {15,11,10,12,5,9,3,4}, i; |
i | 179 | drivers/net/e2100.c | for (i = 0; i < 8; i++) |
i | 180 | drivers/net/e2100.c | if (request_irq (irqlist[i], NULL, 0, "bogus", NULL) != -EBUSY) { |
i | 181 | drivers/net/e2100.c | dev->irq = irqlist[i]; |
i | 184 | drivers/net/e2100.c | if (i >= 8) { |
i | 217 | drivers/net/e2100.c | for(i = 0; i < 6; i++) |
i | 218 | drivers/net/e2100.c | if (station_addr[i] != inb(ioaddr + E21_SAPROM + 8 + i)) { |
i | 278 | drivers/net/eepro.c | int i; |
i | 286 | drivers/net/eepro.c | for (i = 0; eepro_portlist[i]; i++) { |
i | 287 | drivers/net/eepro.c | int ioaddr = eepro_portlist[i]; |
i | 305 | drivers/net/eepro.c | int i; |
i | 349 | drivers/net/eepro.c | for (i=0; i < 6; i++) { |
i | 350 | drivers/net/eepro.c | dev->dev_addr[i] = ((unsigned char *) station_addr)[5-i]; |
i | 351 | drivers/net/eepro.c | printk("%c%02x", i ? ':' : ' ', dev->dev_addr[i]); |
i | 361 | drivers/net/eepro.c | i = read_eeprom(ioaddr, 1); |
i | 362 | drivers/net/eepro.c | switch (i & 0x07) { |
i | 390 | drivers/net/eepro.c | i = read_eeprom(ioaddr, 5); |
i | 391 | drivers/net/eepro.c | if (i & 0x2000) /* bit 13 of EEPROM word 5 */ |
i | 501 | drivers/net/eepro.c | int i, ioaddr = dev->base_addr; |
i | 529 | drivers/net/eepro.c | for (i=0; i < 6; i++) |
i | 530 | drivers/net/eepro.c | outb(dev->dev_addr[i] , ioaddr + I_ADD_REG0 + i); |
i | 811 | drivers/net/eepro.c | int i, boguscount = 0; |
i | 829 | drivers/net/eepro.c | for (i = 0; i < dev->mc_count; i++) |
i | 845 | drivers/net/eepro.c | i = lp->tx_end + XMT_HEADER + 6*(dev->mc_count + 1); |
i | 851 | drivers/net/eepro.c | outw(i, ioaddr + IO_PORT); |
i | 855 | drivers/net/eepro.c | lp->tx_end = i ; |
i | 857 | 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 | 274 | drivers/net/eexpress.c | int i; |
i | 275 | drivers/net/eexpress.c | for ( i=0 ; i<4 ; i++ ) |
i | 697 | drivers/net/eexpress.c | int i; |
i | 714 | drivers/net/eexpress.c | for ( i=0 ; i<6 ; i++ ) |
i | 715 | drivers/net/eexpress.c | dev->dev_addr[i] = chw_addr[5-i]; |
i | 807 | drivers/net/eexpress.c | int i; |
i | 810 | drivers/net/eexpress.c | for ( i=0x100 ; i ; i>>=1 ) |
i | 812 | drivers/net/eexpress.c | if (cmd&i) |
i | 825 | drivers/net/eexpress.c | for ( i=0x8000 ; i ; i>>=1 ) |
i | 830 | drivers/net/eexpress.c | rval |= i; |
i | 214 | drivers/net/eql.c | int i; |
i | 254 | drivers/net/eql.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 255 | drivers/net/eql.c | skb_queue_head_init(&dev->buffs[i]); |
i | 906 | drivers/net/eql.c | int i; |
i | 909 | drivers/net/eql.c | for (i = 1, slave = eql_first_slave (queue); |
i | 910 | drivers/net/eql.c | i <= eql_number_slaves (queue); |
i | 911 | drivers/net/eql.c | i++, slave = eql_next_slave (queue, slave)) |
i | 1041 | drivers/net/eql.c | int i; |
i | 1046 | drivers/net/eql.c | for (i = 1, slave = eql_first_slave (eql->queue); |
i | 1047 | drivers/net/eql.c | i <= eql_number_slaves (eql->queue); |
i | 1048 | drivers/net/eql.c | i++, slave = eql_next_slave (eql->queue, slave)) |
i | 345 | drivers/net/eth16i.c | int i; |
i | 358 | drivers/net/eth16i.c | for(i = 0; (ioaddr = eth16i_portlist[i]) ; i++) { |
i | 366 | drivers/net/eth16i.c | for(i = 0; (ioaddr = eth32i_portlist[i]) ; i++) { |
i | 470 | drivers/net/eth16i.c | int i, node_w = 0; |
i | 475 | drivers/net/eth16i.c | for(i = 0 ; i < 3 ; i++) { |
i | 476 | drivers/net/eth16i.c | unsigned short node_val = eth16i_read_eeprom(ioaddr, E_NODEID_0 + i); |
i | 477 | drivers/net/eth16i.c | ((unsigned short *)dev->dev_addr)[i] = ntohs(node_val); |
i | 480 | drivers/net/eth16i.c | for(i = 0; i < 6; i++) { |
i | 481 | drivers/net/eth16i.c | outb( ((unsigned char *)dev->dev_addr)[i], ioaddr + NODE_ID_0 + i); |
i | 483 | drivers/net/eth16i.c | printk("%02x", inb(ioaddr + NODE_ID_0 + i)); |
i | 484 | drivers/net/eth16i.c | if(i != 5) |
i | 491 | drivers/net/eth16i.c | for(i = 0; i < 8; i++) |
i | 492 | drivers/net/eth16i.c | outb(0x00, ioaddr + HASH_TABLE_0 + i); |
i | 541 | drivers/net/eth16i.c | int i; |
i | 552 | drivers/net/eth16i.c | for(i = 0; i < 6; i++) { |
i | 553 | drivers/net/eth16i.c | dummy_packet[i] = inb(ioaddr + NODE_ID_0 + i); |
i | 554 | drivers/net/eth16i.c | dummy_packet[i+6] = inb(ioaddr + NODE_ID_0 + i); |
i | 562 | drivers/net/eth16i.c | for(i = 0; i < 3; i++) { |
i | 565 | drivers/net/eth16i.c | eth16i_set_port(ioaddr, i); |
i | 568 | drivers/net/eth16i.c | printk("Set port number %d\n", i); |
i | 575 | drivers/net/eth16i.c | printk("Eth16i interface port found at %d\n", i); |
i | 576 | drivers/net/eth16i.c | return i; |
i | 697 | drivers/net/eth16i.c | int i; |
i | 700 | drivers/net/eth16i.c | for(i = 0; i < 4 ; i++) { |
i | 702 | drivers/net/eth16i.c | creg[i] = inb(ioaddr + TRANSMIT_MODE_REG + i); |
i | 705 | drivers/net/eth16i.c | printk("eth16i: read signature byte %x at %x\n", creg[i], |
i | 706 | drivers/net/eth16i.c | ioaddr + TRANSMIT_MODE_REG + i); |
i | 754 | drivers/net/eth16i.c | int i; |
i | 757 | drivers/net/eth16i.c | for(i = 16; i > 0; i--) { |
i | 771 | drivers/net/eth16i.c | int i; |
i | 779 | drivers/net/eth16i.c | for(i = 7; i >= 0; i--) { |
i | 780 | drivers/net/eth16i.c | short cmd = ( (command & (1 << i)) ? DI_1 : DI_0 ); |
i | 1056 | drivers/net/eth16i.c | int i; |
i | 1058 | drivers/net/eth16i.c | for(i = 0; i < 14; i++) |
i | 1059 | drivers/net/eth16i.c | printk(" %02x", skb->data[i]); |
i | 1072 | drivers/net/eth16i.c | int i; |
i | 1074 | drivers/net/eth16i.c | for(i = 0; i < 20; i++) { |
i | 379 | drivers/net/ewrk3.c | int i, status=0; |
i | 400 | drivers/net/ewrk3.c | for (chksum=0, i=0; i<EEPROM_MAX; i+=2) { |
i | 406 | drivers/net/ewrk3.c | tmp.val = (short)Read_EEPROM(iobase, (i>>1)); |
i | 407 | drivers/net/ewrk3.c | eeprom_image[i] = tmp.c[0]; |
i | 408 | drivers/net/ewrk3.c | eeprom_image[i+1] = tmp.c[1]; |
i | 409 | drivers/net/ewrk3.c | chksum += eeprom_image[i] + eeprom_image[i+1]; |
i | 443 | drivers/net/ewrk3.c | for (i = 0; i < ETH_ALEN - 1; i++) { /* get the ethernet addr. */ |
i | 444 | drivers/net/ewrk3.c | printk("%2.2x:", dev->dev_addr[i]); |
i | 446 | drivers/net/ewrk3.c | printk("%2.2x,\n", dev->dev_addr[i]); |
i | 618 | drivers/net/ewrk3.c | int i, status = 0; |
i | 642 | drivers/net/ewrk3.c | for (i=0;i<5;i++){ |
i | 643 | drivers/net/ewrk3.c | printk("%2.2x:",(u_char)dev->dev_addr[i]); |
i | 645 | drivers/net/ewrk3.c | printk("%2.2x\n",(u_char)dev->dev_addr[i]); |
i | 807 | drivers/net/ewrk3.c | int i; |
i | 814 | drivers/net/ewrk3.c | for (i=0; i<skb->len; i++) { |
i | 942 | drivers/net/ewrk3.c | int i, status = 0; |
i | 1010 | drivers/net/ewrk3.c | for (i=0; i<pkt_len; i++) { |
i | 1028 | drivers/net/ewrk3.c | for (i=1; i<EWRK3_PKT_STAT_SZ-1; i++) { |
i | 1029 | drivers/net/ewrk3.c | if (pkt_len < i*EWRK3_PKT_BIN_SZ) { |
i | 1030 | drivers/net/ewrk3.c | lp->pktStats.bins[i]++; |
i | 1031 | drivers/net/ewrk3.c | i = EWRK3_PKT_STAT_SZ; |
i | 1213 | drivers/net/ewrk3.c | int i; |
i | 1229 | drivers/net/ewrk3.c | for (i=0; i<(HASH_TABLE_LEN >> 3); i++) { |
i | 1234 | drivers/net/ewrk3.c | p++; i++; |
i | 1240 | drivers/net/ewrk3.c | for (i=0; i<(HASH_TABLE_LEN >> 4) - 1; i++) { |
i | 1243 | drivers/net/ewrk3.c | outb(0x80, EWRK3_DATA); i++; /* insert the broadcast bit */ |
i | 1244 | drivers/net/ewrk3.c | for (; i<(HASH_TABLE_LEN >> 3); i++) { |
i | 1253 | drivers/net/ewrk3.c | for (i=0;i<dev->mc_count;i++) { /* for each address in the list */ |
i | 1294 | drivers/net/ewrk3.c | int i = num_ewrk3s, maxSlots; |
i | 1305 | drivers/net/ewrk3.c | maxSlots = i + 1; |
i | 1308 | drivers/net/ewrk3.c | for (; (i<maxSlots) && (dev!=NULL);iobase+=EWRK3_IOP_INC, i++) { |
i | 1332 | drivers/net/ewrk3.c | int i, maxSlots; |
i | 1341 | drivers/net/ewrk3.c | i = 1; |
i | 1345 | drivers/net/ewrk3.c | i = (ioaddr >> 12); |
i | 1346 | drivers/net/ewrk3.c | maxSlots = i + 1; |
i | 1349 | drivers/net/ewrk3.c | for (i=1; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) { |
i | 1484 | drivers/net/ewrk3.c | int i; |
i | 1488 | drivers/net/ewrk3.c | for (i=0;i<5000;i++) inb(EWRK3_CSR); /* wait 1msec */ |
i | 1498 | drivers/net/ewrk3.c | int i; |
i | 1501 | drivers/net/ewrk3.c | for (i=0;i<5000;i++) inb(EWRK3_CSR); /* wait 1msec */ |
i | 1505 | drivers/net/ewrk3.c | for (i=0;i<75000;i++) inb(EWRK3_CSR); /* wait 15msec */ |
i | 1507 | drivers/net/ewrk3.c | for (i=0;i<5000;i++) inb(EWRK3_CSR); /* wait 1msec */ |
i | 1517 | drivers/net/ewrk3.c | u_long i,j,k; |
i | 1521 | drivers/net/ewrk3.c | for (i=0;*signatures[i] != '\0' && *name == '\0';i++) { |
i | 1522 | drivers/net/ewrk3.c | for (j=EEPROM_PNAME7,k=0;j<=EEPROM_PNAME0 && k<strlen(signatures[i]);j++) { |
i | 1523 | drivers/net/ewrk3.c | if (signatures[i][k] == eeprom_image[j]) { /* track signature */ |
i | 1529 | drivers/net/ewrk3.c | if (k == strlen(signatures[i])) { |
i | 1563 | drivers/net/ewrk3.c | int i, j, status = 0; |
i | 1569 | drivers/net/ewrk3.c | for (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) { |
i | 1591 | drivers/net/ewrk3.c | int i, j, k; |
i | 1608 | drivers/net/ewrk3.c | for (i=0,k=0;i<ETH_ALEN;) { |
i | 1613 | drivers/net/ewrk3.c | dev->dev_addr[i] = (u_char) tmp; |
i | 1614 | drivers/net/ewrk3.c | outb(dev->dev_addr[i], EWRK3_PAR0 + i); |
i | 1615 | drivers/net/ewrk3.c | i++; |
i | 1617 | drivers/net/ewrk3.c | dev->dev_addr[i] = (u_char) tmp; |
i | 1618 | drivers/net/ewrk3.c | outb(dev->dev_addr[i], EWRK3_PAR0 + i); |
i | 1619 | drivers/net/ewrk3.c | i++; |
i | 1637 | drivers/net/ewrk3.c | u_long i; |
i | 1647 | drivers/net/ewrk3.c | for (i=0; i<4; i++) { |
i | 1648 | drivers/net/ewrk3.c | Eisa.Id[i] = inb(eisa_id + i); |
i | 1658 | drivers/net/ewrk3.c | for (i=0;(*signatures[i] != '\0') && (*name == '\0');i++) { |
i | 1659 | drivers/net/ewrk3.c | if (strstr(ManCode, signatures[i]) != NULL) { |
i | 1677 | drivers/net/ewrk3.c | int i, j, status = 0; |
i | 1686 | drivers/net/ewrk3.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1687 | drivers/net/ewrk3.c | tmp.addr[i] = dev->dev_addr[i]; |
i | 1703 | drivers/net/ewrk3.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1704 | drivers/net/ewrk3.c | dev->dev_addr[i] = tmp.addr[i]; |
i | 1705 | drivers/net/ewrk3.c | outb(tmp.addr[i], EWRK3_PAR0 + i); |
i | 1747 | drivers/net/ewrk3.c | for (i=0; i<(HASH_TABLE_LEN >> 3); i++) { |
i | 1748 | drivers/net/ewrk3.c | tmp.addr[i] = inb(EWRK3_DATA); |
i | 1830 | drivers/net/ewrk3.c | for (i=0; i<(EEPROM_MAX>>1); i++) { |
i | 1831 | drivers/net/ewrk3.c | tmp.val[i] = (short)Read_EEPROM(iobase, i); |
i | 1833 | drivers/net/ewrk3.c | i = EEPROM_MAX; |
i | 1834 | drivers/net/ewrk3.c | tmp.addr[i++] = inb(EWRK3_CMR); /* Config/Management Reg. */ |
i | 1836 | drivers/net/ewrk3.c | tmp.addr[i++] = inb(EWRK3_PAR0 + j); |
i | 1851 | drivers/net/ewrk3.c | for (i=0; i<(EEPROM_MAX>>1); i++) { |
i | 1852 | drivers/net/ewrk3.c | Write_EEPROM(tmp.val[i], iobase, i); |
i | 135 | drivers/net/fmv18x.c | int i; |
i | 143 | drivers/net/fmv18x.c | for (i = 0; fmv18x_probe_list[i]; i++) { |
i | 144 | drivers/net/fmv18x.c | int ioaddr = fmv18x_probe_list[i]; |
i | 166 | drivers/net/fmv18x.c | unsigned int i, irq; |
i | 203 | drivers/net/fmv18x.c | for(i = 0; i < 6; i++) { |
i | 204 | drivers/net/fmv18x.c | unsigned char val = inb(ioaddr + FJ_MACADDR + i); |
i | 206 | drivers/net/fmv18x.c | dev->dev_addr[i] = val; |
i | 239 | drivers/net/fmv18x.c | for (i = 0; i < 6; i++) |
i | 240 | drivers/net/fmv18x.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
i | 244 | drivers/net/fmv18x.c | for (i = 0; i < 8; i++) |
i | 245 | drivers/net/fmv18x.c | outb(0x00, ioaddr + 8 + i); |
i | 518 | drivers/net/fmv18x.c | int i; |
i | 520 | drivers/net/fmv18x.c | for (i = 0; i < 14; i++) |
i | 521 | drivers/net/fmv18x.c | printk(" %02x", skb->data[i]); |
i | 537 | drivers/net/fmv18x.c | int i; |
i | 538 | drivers/net/fmv18x.c | for (i = 0; i < 20; i++) { |
i | 545 | drivers/net/fmv18x.c | if (net_debug > 5 && i > 0) |
i | 547 | drivers/net/fmv18x.c | dev->name, inb(ioaddr + RX_MODE), i); |
i | 126 | drivers/net/hp-plus.c | int i; |
i | 134 | drivers/net/hp-plus.c | for (i = 0; hpplus_portlist[i]; i++) { |
i | 135 | drivers/net/hp-plus.c | int ioaddr = hpplus_portlist[i]; |
i | 149 | drivers/net/hp-plus.c | int i; |
i | 174 | drivers/net/hp-plus.c | for(i = 0; i < ETHER_ADDR_LEN; i++) { |
i | 175 | drivers/net/hp-plus.c | unsigned char inval = inb(ioaddr + 8 + i); |
i | 176 | drivers/net/hp-plus.c | dev->dev_addr[i] = inval; |
i | 87 | drivers/net/hp.c | int i; |
i | 95 | drivers/net/hp.c | for (i = 0; hppclan_portlist[i]; i++) { |
i | 96 | drivers/net/hp.c | int ioaddr = hppclan_portlist[i]; |
i | 109 | drivers/net/hp.c | int i, board_id, wordmode; |
i | 143 | drivers/net/hp.c | for(i = 0; i < ETHER_ADDR_LEN; i++) |
i | 144 | drivers/net/hp.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 302 | drivers/net/hp100.c | int i; |
i | 332 | drivers/net/hp100.c | for ( i = uc = eisa_id = 0; i < 4; i++ ) |
i | 335 | drivers/net/hp100.c | uc_1 = hp100_inb( BOARD_ID + i ); |
i | 351 | drivers/net/hp100.c | for ( i = 0; i < sizeof( hp100_eisa_ids ) / sizeof( struct hp100_eisa_id ); i++ ) |
i | 352 | drivers/net/hp100.c | if ( ( hp100_eisa_ids[ i ].id & 0xf0ffffff ) == ( eisa_id & 0xf0ffffff ) ) |
i | 354 | drivers/net/hp100.c | if ( i >= sizeof( hp100_eisa_ids ) / sizeof( struct hp100_eisa_id ) ) |
i | 359 | drivers/net/hp100.c | eid = &hp100_eisa_ids[ i ]; |
i | 367 | drivers/net/hp100.c | for ( i = uc = 0; i < 7; i++ ) |
i | 368 | drivers/net/hp100.c | uc += hp100_inb( LAN_ADDR + i ); |
i | 436 | drivers/net/hp100.c | for ( i = uc = 0; i < 6; i++ ) |
i | 437 | drivers/net/hp100.c | dev -> dev_addr[ i ] = hp100_inb( LAN_ADDR + i ); |
i | 487 | drivers/net/hp100.c | int i; |
i | 524 | drivers/net/hp100.c | for ( i = 0; i < 6; i++ ) |
i | 525 | drivers/net/hp100.c | hp100_outb( dev -> dev_addr[ i ], MAC_ADDR + i ); |
i | 526 | drivers/net/hp100.c | for ( i = 0; i < 8; i++ ) /* setup multicast filter to receive all */ |
i | 527 | drivers/net/hp100.c | hp100_outb( 0xff, HASH_BYTE0 + i ); |
i | 576 | drivers/net/hp100.c | int i, ok_flag; |
i | 595 | drivers/net/hp100.c | if ( ( i = ( hp100_inl( TX_MEM_FREE ) & ~0x7fffffff ) ) < skb -> len + 16 ) |
i | 598 | drivers/net/hp100.c | printk( "hp100_start_xmit: rx free mem = 0x%x\n", i ); |
i | 612 | drivers/net/hp100.c | i = hp100_sense_lan( dev ); |
i | 615 | drivers/net/hp100.c | if ( i == HP100_LAN_ERR ) |
i | 618 | drivers/net/hp100.c | if ( lp -> lan_type != i ) |
i | 622 | drivers/net/hp100.c | lp -> lan_type = i; |
i | 647 | drivers/net/hp100.c | for ( i = 0; i < 6000 && ( hp100_inw( OPTION_MSW ) & HP100_TX_CMD ); i++ ) |
i | 661 | drivers/net/hp100.c | i = ok_flag ? skb -> len : HP100_MIN_PACKET_SIZE; |
i | 662 | drivers/net/hp100.c | hp100_outw( i, DATA32 ); /* length to memory manager */ |
i | 663 | drivers/net/hp100.c | hp100_outw( i, FRAGMENT_LEN ); |
i | 683 | drivers/net/hp100.c | for ( i = ( skb -> len + 3 ) & ~3; i < HP100_MIN_PACKET_SIZE; i += 4 ) |
i | 983 | drivers/net/hp100.c | int i; |
i | 989 | drivers/net/hp100.c | for ( i = 0; i < 6000; i++ ) |
i | 998 | drivers/net/hp100.c | int i; |
i | 1013 | drivers/net/hp100.c | for ( i = 0; i < 2500; i++ ) |
i | 1025 | drivers/net/hp100.c | int i; |
i | 1028 | drivers/net/hp100.c | for ( i = 2500; i > 0; i-- ) |
i | 1030 | drivers/net/hp100.c | if ( i <= 0 ) /* not signal - not logout */ |
i | 1047 | drivers/net/hp100.c | int i; |
i | 1073 | drivers/net/hp100.c | for ( i = 2500; i > 0; i-- ) |
i | 1075 | drivers/net/hp100.c | if ( i <= 0 ) |
i | 185 | drivers/net/ibmtr.c | short i, j; |
i | 186 | drivers/net/ibmtr.c | for (i=0, j=0; i<24; i++, j+=stride) |
i | 193 | drivers/net/ibmtr.c | short i, j; |
i | 194 | drivers/net/ibmtr.c | for (i=0, j=0; i<24; i++, j+=stride) |
i | 212 | drivers/net/ibmtr.c | unsigned char segment=0, intr=0, irq=0, i=0, j=0, cardpresent=NOTOK,temp=0; |
i | 283 | drivers/net/ibmtr.c | for (i=2,j=1; i<=46; i=i+2,j++) { |
i | 284 | drivers/net/ibmtr.c | if ((readb(cd_chanid+i) & 0x0f) != tchanid[j]) { |
i | 387 | drivers/net/ibmtr.c | for (i=0; i<0x18; i=i+2) { |
i | 389 | drivers/net/ibmtr.c | temp = readb(ti->mmio + AIP + i) & 0x0f; |
i | 656 | drivers/net/ibmtr.c | int i; |
i | 663 | drivers/net/ibmtr.c | for(i=0; i<8; i++, check_reason++) |
i | 1010 | drivers/net/ibmtr.c | int i; |
i | 1012 | drivers/net/ibmtr.c | for (i=0;i<17;i++) printk("%02X ", (int)readb(ti->init_srb+i)); |
i | 1039 | drivers/net/ibmtr.c | for(i=0;i<TR_ALEN;i++) { |
i | 1040 | drivers/net/ibmtr.c | dev->dev_addr[i]=readb(encoded_addr + i); |
i | 1041 | drivers/net/ibmtr.c | printk("%02X%s", dev->dev_addr[i], (i==TR_ALEN-1) ? "" : ":" ); |
i | 1053 | drivers/net/ibmtr.c | int i; |
i | 1076 | drivers/net/ibmtr.c | for (i=jiffies+TR_RESET_INTERVAL; jiffies<=i;); /* wait 50ms */ |
i | 1090 | drivers/net/ibmtr.c | int i; |
i | 1094 | drivers/net/ibmtr.c | for (i=0; i<sizeof(struct dlc_open_sap); i++) |
i | 1095 | drivers/net/ibmtr.c | writeb(0, ti->srb+i); |
i | 1115 | drivers/net/ibmtr.c | int i; |
i | 1126 | drivers/net/ibmtr.c | for (i=0; i<sizeof(struct dir_open_adapter); i++) |
i | 1127 | drivers/net/ibmtr.c | writeb(0, ti->init_srb+i); |
i | 1160 | drivers/net/ibmtr.c | int i; |
i | 1193 | drivers/net/ibmtr.c | for (i=0; i<TR_ALEN; i++) writeb((int)0x0FF, dhb+i+2); |
i | 1194 | drivers/net/ibmtr.c | for (i=0; i<TR_ALEN; i++) writeb(0, dhb+i+TR_ALEN+2); |
i | 1224 | drivers/net/ibmtr.c | for (i=0; i<hdr_len; i++) |
i | 1225 | drivers/net/ibmtr.c | writeb(*(unsigned char *)(ti->current_skb->data +i), dhb++); |
i | 1232 | drivers/net/ibmtr.c | for (i=0; i<ti->current_skb->len-sizeof(struct trh_hdr); i++) |
i | 1233 | drivers/net/ibmtr.c | writeb(*(unsigned char *)(ti->current_skb->data +sizeof(struct trh_hdr)+i), |
i | 1234 | drivers/net/ibmtr.c | dhb+i); |
i | 1245 | drivers/net/ibmtr.c | int i; |
i | 1351 | drivers/net/ibmtr.c | for (i=0; i<lan_hdr_len; i++) |
i | 1352 | drivers/net/ibmtr.c | data[i]=readb(rbuffer + offsetof(struct rec_buf, data)+i); |
i | 1371 | drivers/net/ibmtr.c | for (i=0; i<rbuffer_len; i++) |
i | 1372 | drivers/net/ibmtr.c | data[i]=readb(rbuffer+ offsetof(struct rec_buf, data)+lan_hdr_len+i); |
i | 1379 | drivers/net/ibmtr.c | for (i=0; i<rbuffer_len; i++) |
i | 1380 | drivers/net/ibmtr.c | data[i]=readb(rbuffer + offsetof(struct rec_buf, data)+i); |
i | 359 | drivers/net/lance.c | int i, reset_val, lance_version; |
i | 420 | drivers/net/lance.c | for (i = 0; i < 6; i++) |
i | 421 | drivers/net/lance.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 441 | drivers/net/lance.c | for (i = 0; i < 6; i++) |
i | 442 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
i | 526 | drivers/net/lance.c | for (i = 0; i < 4; i++) { |
i | 528 | drivers/net/lance.c | int dma = dmas[i]; |
i | 555 | drivers/net/lance.c | if (i == 4) { /* Failure: bail. */ |
i | 587 | drivers/net/lance.c | int i; |
i | 639 | drivers/net/lance.c | i = 0; |
i | 640 | drivers/net/lance.c | while (i++ < 100) |
i | 651 | drivers/net/lance.c | dev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA)); |
i | 672 | drivers/net/lance.c | int i; |
i | 674 | drivers/net/lance.c | for (i = 0; i < TX_RING_SIZE; i++) { |
i | 675 | drivers/net/lance.c | if (lp->tx_skbuff[i]) { |
i | 676 | drivers/net/lance.c | dev_kfree_skb(lp->tx_skbuff[i],FREE_WRITE); |
i | 677 | drivers/net/lance.c | lp->tx_skbuff[i] = NULL; |
i | 688 | drivers/net/lance.c | int i; |
i | 694 | drivers/net/lance.c | for (i = 0; i < RX_RING_SIZE; i++) { |
i | 695 | drivers/net/lance.c | lp->rx_ring[i].base = (lp->rx_buffs + i*PKT_BUF_SZ) | 0x80000000; |
i | 696 | drivers/net/lance.c | lp->rx_ring[i].buf_length = -PKT_BUF_SZ; |
i | 700 | drivers/net/lance.c | for (i = 0; i < TX_RING_SIZE; i++) { |
i | 701 | drivers/net/lance.c | lp->tx_ring[i].base = 0; |
i | 705 | drivers/net/lance.c | for (i = 0; i < 6; i++) |
i | 706 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
i | 747 | drivers/net/lance.c | int i; |
i | 751 | drivers/net/lance.c | for (i = 0 ; i < RX_RING_SIZE; i++) |
i | 752 | drivers/net/lance.c | printk("%s %08x %04x %04x", i & 0x3 ? "" : "\n ", |
i | 753 | drivers/net/lance.c | lp->rx_ring[i].base, -lp->rx_ring[i].buf_length, |
i | 754 | drivers/net/lance.c | lp->rx_ring[i].msg_length); |
i | 755 | drivers/net/lance.c | for (i = 0 ; i < TX_RING_SIZE; i++) |
i | 756 | drivers/net/lance.c | printk("%s %08x %04x %04x", i & 0x3 ? "" : "\n ", |
i | 757 | drivers/net/lance.c | lp->tx_ring[i].base, -lp->tx_ring[i].length, |
i | 758 | drivers/net/lance.c | lp->tx_ring[i].misc); |
i | 984 | drivers/net/lance.c | int i; |
i | 1020 | drivers/net/lance.c | for (i=0; i < RX_RING_SIZE; i++) |
i | 1021 | drivers/net/lance.c | if (lp->rx_ring[(entry+i) & RX_RING_MOD_MASK].base < 0) |
i | 1024 | drivers/net/lance.c | if (i > RX_RING_SIZE -2) |
i | 1127 | drivers/net/lance.c | int i; |
i | 1133 | drivers/net/lance.c | for (i = 0; i < 4; i++) { |
i | 1134 | drivers/net/lance.c | outw(8 + i, ioaddr+LANCE_ADDR); |
i | 1135 | drivers/net/lance.c | outw(multicast_table[i], ioaddr+LANCE_DATA); |
i | 117 | drivers/net/loopback.c | int i; |
i | 148 | drivers/net/loopback.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 149 | drivers/net/loopback.c | skb_queue_head_init(&dev->buffs[i]); |
i | 146 | drivers/net/ne.c | int i; |
i | 190 | drivers/net/ne.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 191 | drivers/net/ne.c | int ioaddr = netcard_portlist[i]; |
i | 204 | drivers/net/ne.c | int i; |
i | 270 | drivers/net/ne.c | for (i = 0; i < sizeof(program_seq)/sizeof(program_seq[0]); i++) |
i | 271 | drivers/net/ne.c | outb_p(program_seq[i].value, ioaddr + program_seq[i].offset); |
i | 274 | drivers/net/ne.c | for(i = 0; i < 32 /*sizeof(SA_prom)*/; i+=2) { |
i | 275 | drivers/net/ne.c | SA_prom[i] = inb(ioaddr + NE_DATAPORT); |
i | 276 | drivers/net/ne.c | SA_prom[i+1] = inb(ioaddr + NE_DATAPORT); |
i | 277 | drivers/net/ne.c | if (SA_prom[i] != SA_prom[i+1]) |
i | 287 | drivers/net/ne.c | for (i = 0; i < 16; i++) |
i | 288 | drivers/net/ne.c | SA_prom[i] = SA_prom[i+i]; |
i | 310 | drivers/net/ne.c | for (i = 0; bad_clone_list[i].name8; i++) { |
i | 311 | drivers/net/ne.c | if (SA_prom[0] == bad_clone_list[i].SAprefix[0] && |
i | 312 | drivers/net/ne.c | SA_prom[1] == bad_clone_list[i].SAprefix[1] && |
i | 313 | drivers/net/ne.c | SA_prom[2] == bad_clone_list[i].SAprefix[2]) { |
i | 315 | drivers/net/ne.c | name = bad_clone_list[i].name16; |
i | 317 | drivers/net/ne.c | name = bad_clone_list[i].name8; |
i | 322 | drivers/net/ne.c | if (bad_clone_list[i].name8 == NULL) { |
i | 385 | drivers/net/ne.c | for(i = 0; i < ETHER_ADDR_LEN; i++) { |
i | 386 | drivers/net/ne.c | printk(" %2.2x", SA_prom[i]); |
i | 387 | drivers/net/ne.c | dev->dev_addr[i] = SA_prom[i]; |
i | 77 | drivers/net/net_init.c | int i; |
i | 86 | drivers/net/net_init.c | for (i = 0; i < MAX_ETH_CARDS; ++i) |
i | 87 | drivers/net/net_init.c | if (ethdev_index[i] == NULL) { |
i | 88 | drivers/net/net_init.c | sprintf(pname, "eth%d", i); |
i | 116 | drivers/net/net_init.c | for (i = 0; i < MAX_ETH_CARDS; ++i) |
i | 117 | drivers/net/net_init.c | if (ethdev_index[i] == NULL) { |
i | 118 | drivers/net/net_init.c | sprintf(dev->name, "eth%d", i); |
i | 119 | drivers/net/net_init.c | ethdev_index[i] = dev; |
i | 149 | drivers/net/net_init.c | int i; |
i | 152 | drivers/net/net_init.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 153 | drivers/net/net_init.c | skb_queue_head_init(&dev->buffs[i]); |
i | 157 | drivers/net/net_init.c | i = simple_strtoul(dev->name + 3, NULL, 0); |
i | 158 | drivers/net/net_init.c | if (ethdev_index[i] == NULL) { |
i | 159 | drivers/net/net_init.c | ethdev_index[i] = dev; |
i | 161 | drivers/net/net_init.c | else if (dev != ethdev_index[i]) { |
i | 195 | drivers/net/net_init.c | int i; |
i | 198 | drivers/net/net_init.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 199 | drivers/net/net_init.c | skb_queue_head_init(&dev->buffs[i]); |
i | 244 | drivers/net/net_init.c | int i=MAX_ETH_CARDS; |
i | 252 | drivers/net/net_init.c | for (i = 0; i < MAX_ETH_CARDS; ++i) |
i | 253 | drivers/net/net_init.c | if (ethdev_index[i] == NULL) { |
i | 254 | drivers/net/net_init.c | sprintf(dev->name, "eth%d", i); |
i | 256 | drivers/net/net_init.c | ethdev_index[i] = dev; |
i | 263 | drivers/net/net_init.c | if (i < MAX_ETH_CARDS) ethdev_index[i] = NULL; |
i | 287 | drivers/net/net_init.c | int i; |
i | 342 | drivers/net/net_init.c | for (i = 0; i < MAX_ETH_CARDS; ++i) |
i | 344 | drivers/net/net_init.c | if (ethdev_index[i] == dev) |
i | 346 | drivers/net/net_init.c | ethdev_index[i] = NULL; |
i | 333 | drivers/net/new_tunnel.c | int i; |
i | 356 | drivers/net/new_tunnel.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 357 | drivers/net/new_tunnel.c | skb_queue_head_init(&dev->buffs[i]); |
i | 164 | drivers/net/ni52.c | #define WAIT_4_SCB_CMD() { int i; \ |
i | 165 | drivers/net/ni52.c | for(i=0;i<16384;i++) { \ |
i | 168 | drivers/net/ni52.c | if(i == 16383) { \ |
i | 172 | drivers/net/ni52.c | #define WAIT_4_SCB_CMD_RUC() { int i; \ |
i | 173 | drivers/net/ni52.c | for(i=0;i<16384;i++) { \ |
i | 176 | drivers/net/ni52.c | if(i == 16383) { \ |
i | 180 | drivers/net/ni52.c | #define WAIT_4_STAT_COMPL(addr) { int i; \ |
i | 181 | drivers/net/ni52.c | for(i=0;i<32767;i++) { \ |
i | 286 | drivers/net/ni52.c | int i; |
i | 292 | drivers/net/ni52.c | for(i=0;i<sizeof(struct scp_struct);i++) /* memory was writeable? */ |
i | 293 | drivers/net/ni52.c | if(((char *)p->scp)[i]) |
i | 302 | drivers/net/ni52.c | for(i=0;i<2;i++) |
i | 304 | drivers/net/ni52.c | p->iscp = (struct iscp_struct *) iscp_addrs[i]; |
i | 411 | drivers/net/ni52.c | int i,size; |
i | 413 | drivers/net/ni52.c | for(i=0;i<ETH_ALEN;i++) |
i | 414 | drivers/net/ni52.c | dev->dev_addr[i] = inb(dev->base_addr+i); |
i | 455 | drivers/net/ni52.c | for(i=0;;i++) |
i | 457 | drivers/net/ni52.c | if(!memaddrs[i]) { |
i | 461 | drivers/net/ni52.c | dev->mem_start = memaddrs[i]; |
i | 537 | drivers/net/ni52.c | int i,result=0; |
i | 667 | drivers/net/ni52.c | for(i=0;i<num_addrs;i++,dmi=dmi->next) |
i | 668 | drivers/net/ni52.c | memcpy((char *) mc_cmd->mc_list[i], dmi->dmi_addr,6); |
i | 684 | drivers/net/ni52.c | for(i=0;i<2;i++) |
i | 686 | drivers/net/ni52.c | p->nop_cmds[i] = (struct nop_cmd_struct *)ptr; |
i | 687 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_cmd = CMD_NOP; |
i | 688 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_status = 0; |
i | 689 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_link = make16((p->nop_cmds[i])); |
i | 693 | drivers/net/ni52.c | for(i=0;i<NUM_XMIT_BUFFS;i++) |
i | 695 | drivers/net/ni52.c | p->nop_cmds[i] = (struct nop_cmd_struct *)ptr; |
i | 696 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_cmd = CMD_NOP; |
i | 697 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_status = 0; |
i | 698 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_link = make16((p->nop_cmds[i])); |
i | 708 | drivers/net/ni52.c | for(i=0;i<NUM_XMIT_BUFFS;i++) |
i | 710 | drivers/net/ni52.c | p->xmit_cmds[i] = (struct transmit_cmd_struct *)ptr; /*transmit cmd/buff 0*/ |
i | 712 | drivers/net/ni52.c | p->xmit_cbuffs[i] = (char *)ptr; /* char-buffs */ |
i | 714 | drivers/net/ni52.c | p->xmit_buffs[i] = (struct tbd_struct *)ptr; /* TBD */ |
i | 721 | drivers/net/ni52.c | memset((char *)(p->xmit_cmds[i]) ,0, sizeof(struct transmit_cmd_struct)); |
i | 722 | drivers/net/ni52.c | memset((char *)(p->xmit_buffs[i]),0, sizeof(struct tbd_struct)); |
i | 723 | drivers/net/ni52.c | p->xmit_cmds[i]->cmd_link = make16(p->nop_cmds[(i+1)%NUM_XMIT_BUFFS]); |
i | 724 | drivers/net/ni52.c | p->xmit_cmds[i]->cmd_status = STAT_COMPL; |
i | 725 | drivers/net/ni52.c | p->xmit_cmds[i]->cmd_cmd = CMD_XMIT | CMD_INT; |
i | 726 | drivers/net/ni52.c | p->xmit_cmds[i]->tbd_offset = make16((p->xmit_buffs[i])); |
i | 727 | drivers/net/ni52.c | p->xmit_buffs[i]->next = 0xffff; |
i | 728 | drivers/net/ni52.c | p->xmit_buffs[i]->buffer = make24((p->xmit_cbuffs[i])); |
i | 771 | drivers/net/ni52.c | int i; |
i | 777 | drivers/net/ni52.c | for(i = 0; i < (p->num_recv_buffs+rfdadd); i++) { |
i | 778 | drivers/net/ni52.c | rfd[i].next = make16(rfd + (i+1) % (p->num_recv_buffs+rfdadd) ); |
i | 779 | drivers/net/ni52.c | rfd[i].rbd_offset = 0xffff; |
i | 791 | drivers/net/ni52.c | for(i=0;i<p->num_recv_buffs;i++) |
i | 793 | drivers/net/ni52.c | rbd[i].next = make16((rbd + (i+1) % p->num_recv_buffs)); |
i | 794 | drivers/net/ni52.c | rbd[i].size = RECV_BUFF_SIZE; |
i | 795 | drivers/net/ni52.c | rbd[i].buffer = make24(ptr); |
i | 975 | drivers/net/ni52.c | int i; |
i | 976 | drivers/net/ni52.c | for(i=0;i<1024;i++) |
i | 981 | drivers/net/ni52.c | if(i == 1023) |
i | 990 | drivers/net/ni52.c | int i; |
i | 994 | drivers/net/ni52.c | for(i=0;i< (p->num_recv_buffs+4);i++) |
i | 1108 | drivers/net/ni52.c | int len,i; |
i | 1194 | drivers/net/ni52.c | for(i=0;i<16;i++) |
i | 1208 | drivers/net/ni52.c | if(!i) |
i | 1215 | drivers/net/ni52.c | if(i==15) |
i | 1353 | drivers/net/ni52.c | int i; |
i | 1373 | drivers/net/ni52.c | for(i=0;i<170;i++) { |
i | 1374 | drivers/net/ni52.c | printk("%02x ",(int) ((unsigned char *) (dump_cmd + 1))[i]); |
i | 1375 | drivers/net/ni52.c | if(i % 24 == 23) |
i | 222 | drivers/net/ni65.c | int i; |
i | 240 | drivers/net/ni65.c | for(i=0;i<6;i++) |
i | 241 | drivers/net/ni65.c | dev->dev_addr[i] = inb(PORT+L_EBASE+i); |
i | 298 | drivers/net/ni65.c | for(i=0;i<TMDNUM;i++) |
i | 308 | drivers/net/ni65.c | p->tmdbounce[i] = ptr; |
i | 310 | drivers/net/ni65.c | p->tmd_skb[i] = NULL; |
i | 315 | drivers/net/ni65.c | for(i=0;i<RMDNUM;i++) |
i | 329 | drivers/net/ni65.c | p->recv_skb[i] = skb; |
i | 332 | drivers/net/ni65.c | for(i=0;i<RMDNUM;i++) |
i | 334 | drivers/net/ni65.c | if( !(p->recvbounce[i] = kmalloc(R_BUF_SIZE,GFP_KERNEL | GFP_DMA )) ) { |
i | 338 | drivers/net/ni65.c | if( (unsigned long) p->recvbounce[i] + R_BUF_SIZE > 0x1000000 ) { |
i | 354 | drivers/net/ni65.c | int i; |
i | 375 | drivers/net/ni65.c | for(i=0;i<TMDNUM;i++) |
i | 377 | drivers/net/ni65.c | struct tmd *tmdp = p->tmdhead + i; |
i | 379 | drivers/net/ni65.c | if(p->tmd_skb[i]) { |
i | 380 | drivers/net/ni65.c | dev_kfree_skb(p->tmd_skb[i],FREE_WRITE); |
i | 381 | drivers/net/ni65.c | p->tmd_skb[i] = NULL; |
i | 390 | drivers/net/ni65.c | for(i=0;i<RMDNUM;i++) |
i | 392 | drivers/net/ni65.c | struct rmd *rmdp = p->rmdhead + i; |
i | 394 | drivers/net/ni65.c | rmdp->u.buffer = (unsigned long) p->recv_skb[i]->data; |
i | 396 | drivers/net/ni65.c | rmdp->u.buffer = (unsigned long) p->recvbounce[i]; |
i | 403 | drivers/net/ni65.c | for(i=0;i<6;i++) |
i | 404 | drivers/net/ni65.c | p->ib.eaddr[i] = dev->dev_addr[i]; |
i | 406 | drivers/net/ni65.c | for(i=0;i<8;i++) |
i | 407 | drivers/net/ni65.c | p->ib.filter[i] = 0x0; |
i | 414 | drivers/net/ni65.c | for(i=0;i<8;i++) |
i | 415 | drivers/net/ni65.c | p->ib.filter[i] = 0xff; |
i | 431 | drivers/net/ni65.c | for(i=0;i<32;i++) |
i | 437 | drivers/net/ni65.c | if(i == 32) |
i | 497 | drivers/net/ni65.c | int i,f=0; |
i | 498 | drivers/net/ni65.c | for(i=0;i<RMDNUM;i++) { |
i | 499 | drivers/net/ni65.c | struct rmd *rmdp = p->rmdhead + ((p->rmdnum - i - 1) & (RMDNUM-1)); |
i | 506 | drivers/net/ni65.c | if(i < RMDNUM) { |
i | 507 | drivers/net/ni65.c | p->rmdnum = (p->rmdnum + 8 - i) & (RMDNUM - 1); |
i | 1304 | drivers/net/pi2.c | int i; |
i | 1421 | drivers/net/pi2.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 1422 | drivers/net/pi2.c | skb_queue_head_init(&dev->buffs[i]); |
i | 862 | drivers/net/plip.c | int i; |
i | 873 | drivers/net/plip.c | for (i=0; i < ETH_ALEN - sizeof(unsigned long); i++) |
i | 874 | drivers/net/plip.c | eth->h_dest[i] = 0xfc; |
i | 875 | drivers/net/plip.c | memcpy(&(eth->h_dest[i]), &dst, sizeof(unsigned long)); |
i | 936 | drivers/net/plip.c | int i; |
i | 964 | drivers/net/plip.c | for (i=0; i < ETH_ALEN - sizeof(unsigned long); i++) |
i | 965 | drivers/net/plip.c | dev->dev_addr[i] = 0xfc; |
i | 966 | drivers/net/plip.c | memcpy(&(dev->dev_addr[i]), &dev->pa_addr, sizeof(unsigned long)); |
i | 1086 | drivers/net/plip.c | int i; |
i | 1089 | drivers/net/plip.c | for (i=0; i < 3; i++) { |
i | 1092 | drivers/net/plip.c | if (io[i] != 0) { |
i | 1093 | drivers/net/plip.c | dev_plip[i].base_addr = io[i]; |
i | 1096 | drivers/net/plip.c | if (irq[i] != 0) { |
i | 1097 | drivers/net/plip.c | dev_plip[i].irq = irq[i]; |
i | 1101 | drivers/net/plip.c | if (register_netdev(&dev_plip[i]) != 0) { |
i | 1102 | drivers/net/plip.c | printk(KERN_INFO "plip%d: Not found\n", i); |
i | 1112 | drivers/net/plip.c | for (i=0; i < 3; i++) { |
i | 1113 | drivers/net/plip.c | if (register_netdev(&dev_plip[i]) == 0) |
i | 1126 | drivers/net/plip.c | int i; |
i | 1128 | drivers/net/plip.c | for (i=0; i < 3; i++) { |
i | 1129 | drivers/net/plip.c | if (dev_plip[i].priv) { |
i | 1130 | drivers/net/plip.c | unregister_netdev(&dev_plip[i]); |
i | 1131 | drivers/net/plip.c | release_region(PAR_DATA(&dev_plip[i]), (PAR_DATA(&dev_plip[i]) == 0x3bc)? 3 : 8); |
i | 1132 | drivers/net/plip.c | kfree_s(dev_plip[i].priv, sizeof(struct net_local)); |
i | 1133 | drivers/net/plip.c | dev_plip[i].priv = NULL; |
i | 771 | drivers/net/pt.c | int i; |
i | 889 | drivers/net/pt.c | for (i=0; i < DEV_NUMBUFFS; i++) |
i | 890 | drivers/net/pt.c | skb_queue_head_init(&dev->buffs[i]); |
i | 339 | drivers/net/sdla.c | int i; |
i | 366 | drivers/net/sdla.c | for(pstatus = data, i=0;i < len;i++,pstatus++) |
i | 387 | drivers/net/sdla.c | for(pdlci = data,i=0;i < len;i++,pdlci++) |
i | 488 | drivers/net/sdla.c | int i; |
i | 492 | drivers/net/sdla.c | for(i=0;i<CONFIG_DLCI_MAX;i++) |
i | 493 | drivers/net/sdla.c | if (flp->master[i] == master) |
i | 496 | drivers/net/sdla.c | if (i == CONFIG_DLCI_MAX) |
i | 499 | drivers/net/sdla.c | flp->dlci[i] = abs(flp->dlci[i]); |
i | 502 | drivers/net/sdla.c | sdla_cmd(slave, SDLA_ACTIVATE_DLCI, 0, 0, &flp->dlci[i], sizeof(short), NULL, NULL); |
i | 510 | drivers/net/sdla.c | int i; |
i | 514 | drivers/net/sdla.c | for(i=0;i<CONFIG_DLCI_MAX;i++) |
i | 515 | drivers/net/sdla.c | if (flp->master[i] == master) |
i | 518 | drivers/net/sdla.c | flp->dlci[i] = -abs(flp->dlci[i]); |
i | 521 | drivers/net/sdla.c | sdla_cmd(slave, SDLA_DEACTIVATE_DLCI, 0, 0, &flp->dlci[i], sizeof(short), NULL, NULL); |
i | 529 | drivers/net/sdla.c | int i; |
i | 536 | drivers/net/sdla.c | for(i=0;i<CONFIG_DLCI_MAX;i++) |
i | 538 | drivers/net/sdla.c | if (!flp->master[i]) |
i | 540 | drivers/net/sdla.c | if (abs(flp->dlci[i]) == *(short *)(master->dev_addr)) |
i | 544 | drivers/net/sdla.c | if (i == CONFIG_DLCI_MAX) |
i | 549 | drivers/net/sdla.c | flp->master[i] = master; |
i | 550 | drivers/net/sdla.c | flp->dlci[i] = -*(short *)(master->dev_addr); |
i | 565 | drivers/net/sdla.c | int i; |
i | 569 | drivers/net/sdla.c | for(i=0;i<CONFIG_DLCI_MAX;i++) |
i | 570 | drivers/net/sdla.c | if (flp->master[i] == master) |
i | 573 | drivers/net/sdla.c | if (i == CONFIG_DLCI_MAX) |
i | 576 | drivers/net/sdla.c | flp->master[i] = NULL; |
i | 577 | drivers/net/sdla.c | flp->dlci[i] = 0; |
i | 594 | drivers/net/sdla.c | int i; |
i | 598 | drivers/net/sdla.c | for(i=0;i<CONFIG_DLCI_MAX;i++) |
i | 599 | drivers/net/sdla.c | if (flp->master[i] == master) |
i | 602 | drivers/net/sdla.c | if (i == CONFIG_DLCI_MAX) |
i | 607 | drivers/net/sdla.c | sdla_cmd(slave, SDLA_SET_DLCI_CONFIGURATION, flp->dlci[i], 0, |
i | 698 | drivers/net/sdla.c | int i, received, success, addr; |
i | 725 | drivers/net/sdla.c | for (i=0;i<CONFIG_DLCI_MAX;i++) |
i | 726 | drivers/net/sdla.c | if (flp->dlci[i] == dlci) |
i | 729 | drivers/net/sdla.c | if (i == CONFIG_DLCI_MAX) |
i | 737 | drivers/net/sdla.c | master = flp->master[i]; |
i | 764 | drivers/net/sdla.c | for (i=0;i<CONFIG_DLCI_MAX;i++) |
i | 765 | drivers/net/sdla.c | if (flp->dlci[i] == dlci) |
i | 768 | drivers/net/sdla.c | if (i == CONFIG_DLCI_MAX) |
i | 776 | drivers/net/sdla.c | master = flp->master[i]; |
i | 894 | drivers/net/sdla.c | int len, i; |
i | 900 | drivers/net/sdla.c | for(i=0;i<CONFIG_DLCI_MAX;i++) |
i | 901 | drivers/net/sdla.c | if (flp->dlci[i]) |
i | 902 | drivers/net/sdla.c | dlcis[len++] = abs(flp->dlci[i]); |
i | 907 | drivers/net/sdla.c | for(i=0;i<CONFIG_DLCI_MAX;i++) |
i | 908 | drivers/net/sdla.c | if (flp->dlci[i] > 0) |
i | 910 | drivers/net/sdla.c | sdla_cmd(dev, SDLA_DELETE_DLCI, 0, 0, &flp->dlci[i], sizeof(flp->dlci[i]), NULL, NULL); |
i | 959 | drivers/net/sdla.c | int len, i; |
i | 975 | drivers/net/sdla.c | for(i=0;i<CONFIG_DLCI_MAX;i++) |
i | 976 | drivers/net/sdla.c | if (flp->dlci[i]) |
i | 977 | drivers/net/sdla.c | data.dlci[len++] = abs(flp->dlci[i]); |
i | 1033 | drivers/net/sdla.c | for(i=0;i<CONFIG_DLCI_MAX;i++) |
i | 1034 | drivers/net/sdla.c | if (flp->dlci[i] > 0) |
i | 1035 | drivers/net/sdla.c | sdla_cmd(dev, SDLA_ACTIVATE_DLCI, 0, 0, &flp->dlci[i], 2*sizeof(flp->dlci[i]), NULL, NULL); |
i | 1039 | drivers/net/sdla.c | for(i=0;i<CONFIG_DLCI_MAX;i++) |
i | 1040 | drivers/net/sdla.c | if (flp->dlci[i]) |
i | 1042 | drivers/net/sdla.c | dlp = flp->master[i]->priv; |
i | 1044 | drivers/net/sdla.c | sdla_cmd(dev, SDLA_SET_DLCI_CONFIGURATION, abs(flp->dlci[i]), 0, &dlp->config, sizeof(struct dlci_conf), NULL, NULL); |
i | 1060 | drivers/net/sdla.c | int i, err; |
i | 1117 | drivers/net/sdla.c | for(i=0;i<CONFIG_DLCI_MAX;i++) |
i | 1118 | drivers/net/sdla.c | if (flp->master[i]) |
i | 1119 | drivers/net/sdla.c | flp->master[i]->mtu = flp->config.mtu; |
i | 1197 | drivers/net/sdla.c | int i, len; |
i | 1204 | drivers/net/sdla.c | for(i=0;i<CONFIG_DLCI_MAX;i++) |
i | 1205 | drivers/net/sdla.c | if (flp->dlci[i]) |
i | 1206 | drivers/net/sdla.c | data.dlci[len++] = flp->dlci[i]; |
i | 1299 | drivers/net/sdla.c | int i; |
i | 1307 | drivers/net/sdla.c | for(i=0;i < sizeof(valid_port) / sizeof (int) ; i++) |
i | 1308 | drivers/net/sdla.c | if (valid_port[i] == map->base_addr) |
i | 1311 | drivers/net/sdla.c | if (i == sizeof(valid_port) / sizeof(int)) |
i | 1322 | drivers/net/sdla.c | for(i=1;i<SDLA_IO_EXTENTS;i++) |
i | 1323 | drivers/net/sdla.c | if (inb(dev->base_addr + i) != 0xFF) |
i | 1326 | drivers/net/sdla.c | if (i == SDLA_IO_EXTENTS) |
i | 1342 | drivers/net/sdla.c | for(byte=inb(dev->base_addr),i=0;i<SDLA_IO_EXTENTS;i++) |
i | 1343 | drivers/net/sdla.c | if (inb(dev->base_addr + i) != byte) |
i | 1346 | drivers/net/sdla.c | if (i == SDLA_IO_EXTENTS) |
i | 1472 | drivers/net/sdla.c | for(i=0;i < sizeof(valid_mem) / sizeof (int) ; i++) |
i | 1473 | drivers/net/sdla.c | if (valid_mem[i] == map->mem_start) |
i | 1476 | drivers/net/sdla.c | if (i == sizeof(valid_mem) / sizeof(int)) |
i | 1581 | drivers/net/sdla.c | int i; |
i | 1606 | drivers/net/sdla.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 1607 | drivers/net/sdla.c | skb_queue_head_init(&dev->buffs[i]); |
i | 112 | drivers/net/seeq8005.c | int i; |
i | 120 | drivers/net/seeq8005.c | for (i = 0; seeq8005_portlist[i]; i++) { |
i | 121 | drivers/net/seeq8005.c | int ioaddr = seeq8005_portlist[i]; |
i | 139 | drivers/net/seeq8005.c | int i,j; |
i | 193 | drivers/net/seeq8005.c | for(i=0; i <32; i++) { |
i | 194 | drivers/net/seeq8005.c | j+= SA_prom[i] = inw(SEEQ_BUFFER) & 0xff; |
i | 221 | drivers/net/seeq8005.c | for(i=0;i<16;i++) { |
i | 222 | drivers/net/seeq8005.c | printk("%02x ",SA_prom[j|i]); |
i | 225 | drivers/net/seeq8005.c | for(i=0;i<16;i++) { |
i | 226 | drivers/net/seeq8005.c | if ((SA_prom[j|i]>31)&&(SA_prom[j|i]<127)) { |
i | 227 | drivers/net/seeq8005.c | printk("%c", SA_prom[j|i]); |
i | 247 | drivers/net/seeq8005.c | for(i=0;i<32768;i++) { |
i | 260 | drivers/net/seeq8005.c | for(i=0;i<32768;i++) { |
i | 285 | drivers/net/seeq8005.c | for (i = 0; i < 6; i++) |
i | 286 | drivers/net/seeq8005.c | printk(" %2.2x", dev->dev_addr[i] = SA_prom[i+6]); |
i | 483 | drivers/net/seeq8005.c | int i; |
i | 551 | drivers/net/seeq8005.c | for(i=0;i<14;i++) { |
i | 637 | drivers/net/seeq8005.c | int i; |
i | 650 | drivers/net/seeq8005.c | for(i=0;i<6;i++) { /* set Station address */ |
i | 651 | drivers/net/seeq8005.c | outb(dev->dev_addr[i], SEEQ_BUFFER); |
i | 670 | drivers/net/seeq8005.c | for(i=0;i<6;i++) { |
i | 635 | drivers/net/sk_g16.c | int i,j; /* Counters */ |
i | 755 | drivers/net/sk_g16.c | for (i = 0, j = 0; i < ETH_ALEN; i++, j+=2) |
i | 757 | drivers/net/sk_g16.c | dev->dev_addr[i] = board->rom[j]; |
i | 815 | drivers/net/sk_g16.c | for (i = 0; i < TMDNUM; i++) |
i | 817 | drivers/net/sk_g16.c | p->tmdbufs[i] = &(p->ram)->tmdbuf[i]; |
i | 820 | drivers/net/sk_g16.c | for (i = 0; i < RMDNUM; i++) |
i | 822 | drivers/net/sk_g16.c | p->rmdbufs[i] = &(p->ram)->rmdbuf[i]; |
i | 862 | drivers/net/sk_g16.c | int i = 0; |
i | 875 | drivers/net/sk_g16.c | i = 0; |
i | 888 | drivers/net/sk_g16.c | irqval = request_irq(irqtab[i], &SK_interrupt, 0, "sk_g16", NULL); |
i | 889 | drivers/net/sk_g16.c | i++; |
i | 890 | drivers/net/sk_g16.c | } while (irqval && irqtab[i]); |
i | 898 | drivers/net/sk_g16.c | dev->irq = irqtab[--i]; |
i | 900 | drivers/net/sk_g16.c | outb(i<<2, SK_POS4); /* Set Card on probed IRQ */ |
i | 922 | drivers/net/sk_g16.c | int i = 0; |
i | 934 | drivers/net/sk_g16.c | case 3: i = 0; |
i | 936 | drivers/net/sk_g16.c | case 5: i = 1; |
i | 938 | drivers/net/sk_g16.c | case 2: i = 2; |
i | 940 | drivers/net/sk_g16.c | case 11:i = 3; |
i | 950 | drivers/net/sk_g16.c | outb(i<<2, SK_POS4); /* Set IRQ on card */ |
i | 959 | drivers/net/sk_g16.c | if (!(i = SK_lance_init(dev, 0))) /* LANCE init OK? */ |
i | 1027 | drivers/net/sk_g16.c | int i; |
i | 1042 | drivers/net/sk_g16.c | for (i = 0; i < TMDNUM; i++) /* Init all TMD's */ |
i | 1044 | drivers/net/sk_g16.c | tmdp = p->tmdhead + i; |
i | 1046 | drivers/net/sk_g16.c | tmdp->u.buffer = (unsigned long) p->tmdbufs[i]; /* assign buffer */ |
i | 1057 | drivers/net/sk_g16.c | for (i = 0; i < RMDNUM; i++) /* Init all RMD's */ |
i | 1059 | drivers/net/sk_g16.c | rmdp = p->rmdhead + i; |
i | 1062 | drivers/net/sk_g16.c | rmdp->u.buffer = (unsigned long) p->rmdbufs[i]; /* assign buffer */ |
i | 1081 | drivers/net/sk_g16.c | for (i = 0; i < ETH_ALEN; i++) /* Set physical address */ |
i | 1083 | drivers/net/sk_g16.c | (p->ram)->ib.paddr[i] = dev->dev_addr[i]; |
i | 1086 | drivers/net/sk_g16.c | for (i = 0; i < 8; i++) /* Set multicast, logical address */ |
i | 1088 | drivers/net/sk_g16.c | (p->ram)->ib.laddr[i] = 0; /* We do not use logical addressing */ |
i | 1139 | drivers/net/sk_g16.c | for (i = 0; (i < 100) && !(SK_rread_reg() & CSR0_IDON); i++) |
i | 1142 | drivers/net/sk_g16.c | if (i >= 100) /* Something is wrong ! */ |
i | 1157 | drivers/net/sk_g16.c | PRINTK(("## %s: init done after %d ticks\n", SK_NAME, i)); |
i | 1774 | drivers/net/sk_g16.c | int i,j; |
i | 1783 | drivers/net/sk_g16.c | for (i = 0; (rom_location[i] != 0) && (rom_found == 0); i++) |
i | 1786 | drivers/net/sk_g16.c | PRINTK(("## Trying ROM location %#08x", rom_location[i])); |
i | 1791 | drivers/net/sk_g16.c | test_byte = (unsigned char *) (rom_location[i]+j); |
i | 1805 | drivers/net/sk_g16.c | SK_NAME, rom_location[(i-1)])); |
i | 1807 | drivers/net/sk_g16.c | return (rom_location[--i]); |
i | 1845 | drivers/net/sk_g16.c | int i; |
i | 1848 | drivers/net/sk_g16.c | for (i = 0; i < 10 ; i++) /* Delay min 5ms */ |
i | 2076 | drivers/net/sk_g16.c | int i; |
i | 2089 | drivers/net/sk_g16.c | for(i = 0; i < TMDNUM; i++) |
i | 2091 | drivers/net/sk_g16.c | if (!(i % 3)) /* Every third line do a newline */ |
i | 2095 | drivers/net/sk_g16.c | printk("tmdbufs%d: %#08x ", (i+1), (int) p->tmdbufs[i]); |
i | 2099 | drivers/net/sk_g16.c | for(i = 0; i < RMDNUM; i++) |
i | 2101 | drivers/net/sk_g16.c | if (!(i % 3)) /* Every third line do a newline */ |
i | 2105 | drivers/net/sk_g16.c | printk("rmdbufs%d: %#08x ", (i+1), (int) p->rmdbufs[i]); |
i | 132 | drivers/net/skeleton.c | int i; |
i | 140 | drivers/net/skeleton.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 141 | drivers/net/skeleton.c | int ioaddr = netcard_portlist[i]; |
i | 160 | drivers/net/skeleton.c | int i; |
i | 194 | drivers/net/skeleton.c | for (i = 0; i < 6; i++) |
i | 195 | drivers/net/skeleton.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 259 | drivers/net/skeleton.c | for (i = 7; i > 0; i--) |
i | 260 | drivers/net/skeleton.c | if (test_bit(i, &new_dma_status)) { |
i | 261 | drivers/net/skeleton.c | dev->dma = i; |
i | 264 | drivers/net/skeleton.c | if (i <= 0) { |
i | 101 | drivers/net/slhc.c | register short i; |
i | 152 | drivers/net/slhc.c | for(i = comp->tslot_limit; i > 0; --i){ |
i | 153 | drivers/net/slhc.c | ts[i].cs_this = i; |
i | 154 | 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 | 120 | drivers/net/slip.c | int i; |
i | 124 | drivers/net/slip.c | for (i = 0; i < slip_maxdev; i++) { |
i | 125 | drivers/net/slip.c | slp = slip_ctrls[i]; |
i | 136 | drivers/net/slip.c | if (i >= slip_maxdev) return NULL; |
i | 140 | drivers/net/slip.c | (slip_ctrls[i] = (slip_ctrl_t *)kmalloc(sizeof(slip_ctrl_t), |
i | 142 | drivers/net/slip.c | slp = slip_ctrls[i]; |
i | 148 | drivers/net/slip.c | sprintf(slp->if_name, "sl%d", i); |
i | 150 | drivers/net/slip.c | slp->dev.base_addr = i; |
i | 946 | drivers/net/slip.c | int i; |
i | 962 | drivers/net/slip.c | for (i = 0; i < len; ++i) { |
i | 963 | drivers/net/slip.c | v = (v << 8) | s[i]; |
i | 1265 | drivers/net/slip.c | int i; |
i | 1307 | drivers/net/slip.c | for (i = 0; i < DEV_NUMBUFFS; i++) { |
i | 1308 | drivers/net/slip.c | skb_queue_head_init(&dev->buffs[i]); |
i | 1332 | drivers/net/slip.c | int i; |
i | 1336 | drivers/net/slip.c | for (i = 0; i < slip_maxdev; i++) |
i | 1338 | drivers/net/slip.c | if (slip_ctrls[i]) |
i | 1344 | drivers/net/slip.c | if (slip_ctrls[i]->dev.start) |
i | 1345 | drivers/net/slip.c | unregister_netdev(&(slip_ctrls[i]->dev)); |
i | 1347 | drivers/net/slip.c | kfree(slip_ctrls[i]); |
i | 1348 | drivers/net/slip.c | slip_ctrls[i] = NULL; |
i | 1354 | drivers/net/slip.c | if ((i = tty_register_ldisc(N_SLIP, NULL))) |
i | 1356 | drivers/net/slip.c | printk("SLIP: can't unregister line discipline (err = %d)\n", i); |
i | 98 | drivers/net/smc-ultra.c | int i; |
i | 106 | drivers/net/smc-ultra.c | for (i = 0; ultra_portlist[i]; i++) { |
i | 107 | drivers/net/smc-ultra.c | int ioaddr = ultra_portlist[i]; |
i | 120 | drivers/net/smc-ultra.c | int i; |
i | 138 | drivers/net/smc-ultra.c | for (i = 0; i < 8; i++) |
i | 139 | drivers/net/smc-ultra.c | checksum += inb(ioaddr + 8 + i); |
i | 156 | drivers/net/smc-ultra.c | for (i = 0; i < 6; i++) |
i | 157 | drivers/net/smc-ultra.c | printk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i)); |
i | 465 | drivers/net/smc9194.c | int i; |
i | 475 | drivers/net/smc9194.c | for ( i = 0; i < count ; i ++, cur_addr = cur_addr->next ) { |
i | 497 | drivers/net/smc9194.c | for ( i = 0; i < 8 ; i++ ) { |
i | 498 | drivers/net/smc9194.c | outb( multicast_table[i], ioaddr + MULTICAST1 + i ); |
i | 755 | drivers/net/smc9194.c | int i; |
i | 773 | drivers/net/smc9194.c | for (i = 0; smc_portlist[i]; i++) { |
i | 774 | drivers/net/smc9194.c | int ioaddr = smc_portlist[i]; |
i | 947 | drivers/net/smc9194.c | int i; |
i | 987 | drivers/net/smc9194.c | for ( i = 0; i < 6; i += 2 ) { |
i | 990 | drivers/net/smc9194.c | address = inw( ioaddr + ADDR0 + i ); |
i | 991 | drivers/net/smc9194.c | dev->dev_addr[ i + 1] = address >> 8; |
i | 992 | drivers/net/smc9194.c | dev->dev_addr[ i ] = address & 0xFF; |
i | 1086 | drivers/net/smc9194.c | for (i = 0; i < 5; i++) |
i | 1087 | drivers/net/smc9194.c | printk("%2.2x:", dev->dev_addr[i] ); |
i | 1130 | drivers/net/smc9194.c | int i; |
i | 1138 | drivers/net/smc9194.c | for ( i = 0; i < lines ; i ++ ) { |
i | 1150 | drivers/net/smc9194.c | for ( i = 0; i < remainder/2 ; i++ ) { |
i | 1173 | drivers/net/smc9194.c | int i; /* used to set hw ethernet address */ |
i | 1208 | drivers/net/smc9194.c | for ( i = 0; i < 6; i += 2 ) { |
i | 1211 | drivers/net/smc9194.c | address = dev->dev_addr[ i + 1 ] << 8 ; |
i | 1212 | drivers/net/smc9194.c | address |= dev->dev_addr[ i ]; |
i | 1213 | drivers/net/smc9194.c | outw( address, ioaddr + ADDR0 + i ); |
i | 217 | drivers/net/sunlance.c | int i; |
i | 240 | drivers/net/sunlance.c | for (i = 0; i <= TX_RING_SIZE; i++){ |
i | 241 | drivers/net/sunlance.c | leptr = LANCE_ADDR(&ib->tx_buf[i][0]); |
i | 242 | drivers/net/sunlance.c | ib->btx_ring [i].tmd0 = leptr; |
i | 243 | drivers/net/sunlance.c | ib->btx_ring [i].tmd1_hadr = leptr >> 16; |
i | 244 | drivers/net/sunlance.c | ib->btx_ring [i].tmd1_bits = 0; |
i | 245 | drivers/net/sunlance.c | ib->btx_ring [i].length = 0xf000; /* The ones required by tmd2 */ |
i | 246 | drivers/net/sunlance.c | ib->btx_ring [i].misc = 0; |
i | 247 | drivers/net/sunlance.c | if (i < 3) |
i | 248 | drivers/net/sunlance.c | if (ZERO) printk ("%d: 0x%8.8x\n", i, leptr); |
i | 253 | drivers/net/sunlance.c | for (i = 0; i < RX_RING_SIZE; i++){ |
i | 254 | drivers/net/sunlance.c | leptr = LANCE_ADDR(&ib->rx_buf[i][0]); |
i | 256 | drivers/net/sunlance.c | ib->brx_ring [i].rmd0 = leptr; |
i | 257 | drivers/net/sunlance.c | ib->brx_ring [i].rmd1_hadr = leptr >> 16; |
i | 258 | drivers/net/sunlance.c | ib->brx_ring [i].rmd1_bits = LE_R1_OWN; |
i | 259 | drivers/net/sunlance.c | ib->brx_ring [i].length = -RX_BUFF_SIZE | 0xf000; |
i | 260 | drivers/net/sunlance.c | ib->brx_ring [i].mblength = 0; |
i | 261 | drivers/net/sunlance.c | if (i < 3) |
i | 262 | drivers/net/sunlance.c | if (ZERO) printk ("%d: 0x%8.8x\n", i, leptr); |
i | 288 | drivers/net/sunlance.c | int i; |
i | 294 | drivers/net/sunlance.c | for (i = 0; (i < 100) && !(ll->rdp & (LE_C0_ERR | LE_C0_IDON)); i++) |
i | 296 | drivers/net/sunlance.c | if ((i == 100) || (ll->rdp & LE_C0_ERR)){ |
i | 297 | drivers/net/sunlance.c | printk ("LANCE unopened after %d ticks, csr0=%4.4x.\n", i, ll->rdp); |
i | 325 | drivers/net/sunlance.c | for (i = 0; i < RX_RING_SIZE; i++){ |
i | 326 | drivers/net/sunlance.c | if (i == lp->rx_new) |
i | 327 | drivers/net/sunlance.c | printk ("%s", ib->brx_ring [i].rmd1_bits & LE_R1_OWN ? "_" : "X"); |
i | 329 | drivers/net/sunlance.c | printk ("%s", ib->brx_ring [i].rmd1_bits & LE_R1_OWN ? "." : "1"); |
i | 388 | drivers/net/sunlance.c | int i, j; |
i | 395 | drivers/net/sunlance.c | for (i = 0; i < TX_RING_SIZE; i++){ |
i | 628 | drivers/net/sunlance.c | int i; |
i | 630 | drivers/net/sunlance.c | for (i = 0; i < 64; i++){ |
i | 631 | drivers/net/sunlance.c | if ((i % 16) == 0) printk ("\n"); |
i | 632 | drivers/net/sunlance.c | printk ("%2.2x ", skb->data [i]); |
i | 712 | drivers/net/sunlance.c | int i; |
i | 759 | drivers/net/sunlance.c | for (i = 0; i < 6; i++){ |
i | 760 | drivers/net/sunlance.c | printk ("%2.2x%c", dev->dev_addr [i] = idprom->id_eaddr [i], i == 5 ? ' ': ':'); |
i | 213 | drivers/net/tulip.c | int i; |
i | 232 | drivers/net/tulip.c | for (i = 0; i < 6; i++) { |
i | 237 | drivers/net/tulip.c | printk(" %2.2x", dev->dev_addr[i] = value); |
i | 298 | drivers/net/tulip.c | int *setup_frm = tp->setup_frame, i; |
i | 305 | 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 | 698 | drivers/net/tulip.c | int i; |
i | 704 | drivers/net/tulip.c | i=0; |
i | 709 | drivers/net/tulip.c | i++; |
i | 720 | drivers/net/tulip.c | } while (++i < 16); |
i | 729 | drivers/net/tulip.c | int i; |
i | 734 | drivers/net/tulip.c | for (i = 0; i < 6; i++) |
i | 735 | drivers/net/tulip.c | printk(" %2.2x", dev->dev_addr[i] = sa->sa_data[i]); |
i | 461 | drivers/net/wavelan.c | int i; |
i | 476 | drivers/net/wavelan.c | for (i = 1000; i > 0; i--) |
i | 485 | drivers/net/wavelan.c | if (i <= 0) |
i | 501 | drivers/net/wavelan.c | int i; |
i | 511 | drivers/net/wavelan.c | for (i = 64; i > 0; i--) |
i | 520 | drivers/net/wavelan.c | if (i <= 0 || !(cb.ac_status & AC_SFLD_OK)) |
i | 543 | drivers/net/wavelan.c | int i; |
i | 566 | drivers/net/wavelan.c | for (i = 0; i < I82586_MEMZ; i += sizeof(zeroes)) |
i | 567 | drivers/net/wavelan.c | obram_write(ioaddr, i, &zeroes[0], sizeof(zeroes)); |
i | 596 | drivers/net/wavelan.c | for (i = 1000; i > 0; i--) |
i | 606 | drivers/net/wavelan.c | if (i <= 0) |
i | 614 | drivers/net/wavelan.c | for (i = 15; i > 0; i--) |
i | 624 | drivers/net/wavelan.c | if (i <= 0) |
i | 775 | drivers/net/wavelan.c | int i; |
i | 828 | drivers/net/wavelan.c | for (i = 0; i < nels(iobase); i++) |
i | 830 | drivers/net/wavelan.c | if (check_region(iobase[i], sizeof(ha_t))) |
i | 833 | drivers/net/wavelan.c | if (wavelan_probe1(dev, iobase[i]) == 0) |
i | 860 | drivers/net/wavelan.c | int i; |
i | 948 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 949 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? " " : ":", dev->dev_addr[i]); |
i | 1079 | drivers/net/wavelan.c | int i; |
i | 1090 | drivers/net/wavelan.c | for (i = 0, rx = lp->rx_head; i < NRXBLOCKS; i++, rx = rx_next) |
i | 1092 | drivers/net/wavelan.c | rx_next = (i == NRXBLOCKS - 1) ? lp->rx_head : rx + RXBLOCKZ; |
i | 1095 | drivers/net/wavelan.c | fd.fd_command = (i == NRXBLOCKS - 1) ? FD_COMMAND_EL : 0; |
i | 1117 | drivers/net/wavelan.c | for (i = 1000; i > 0; i--) |
i | 1126 | drivers/net/wavelan.c | if (i <= 0) |
i | 1141 | drivers/net/wavelan.c | int i; |
i | 1154 | drivers/net/wavelan.c | i = 0, txblock = OFFSET_CU; |
i | 1155 | drivers/net/wavelan.c | i < NTXBLOCKS; |
i | 1156 | drivers/net/wavelan.c | i++, txblock += TXBLOCKZ |
i | 1198 | drivers/net/wavelan.c | for (i = 1000; i > 0; i--) |
i | 1207 | drivers/net/wavelan.c | if (i <= 0) |
i | 1462 | drivers/net/wavelan.c | int i; |
i | 1464 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1466 | drivers/net/wavelan.c | if (a0[i] != a1[i]) |
i | 1467 | drivers/net/wavelan.c | return a0[i] - a1[i]; |
i | 1579 | drivers/net/wavelan.c | int i; |
i | 1596 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1597 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", addr[i]); |
i | 1607 | drivers/net/wavelan.c | int i; |
i | 1611 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1612 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", fd.fd_dest[i]); |
i | 1616 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1617 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", fd.fd_src[i]); |
i | 1624 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1625 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", addr[i]); |
i | 1630 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1631 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", addr[i]); |
i | 1653 | drivers/net/wavelan.c | int i; |
i | 1661 | drivers/net/wavelan.c | for (i = 0; i < maxi; i++) |
i | 1665 | drivers/net/wavelan.c | c = skb->data[i]; |
i | 1667 | drivers/net/wavelan.c | printk(" %c", skb->data[i]); |
i | 1669 | drivers/net/wavelan.c | printk("%02x", skb->data[i]); |
i | 2204 | drivers/net/wavelan.c | wavelan_cu_show_one(device *dev, net_local *lp, int i, unsigned short p) |
i | 2211 | drivers/net/wavelan.c | printk("%d: 0x%x:", i, p); |
i | 2433 | drivers/net/wavelan.c | unsigned int i; |
i | 2441 | drivers/net/wavelan.c | for (i = 0, p = lp->tx_first_in_use; i < NTXBLOCKS; i++) |
i | 2443 | drivers/net/wavelan.c | wavelan_cu_show_one(dev, lp, i, p); |
i | 90 | drivers/net/wd.c | int i; |
i | 98 | drivers/net/wd.c | for (i = 0; wd_portlist[i]; i++) { |
i | 99 | drivers/net/wd.c | int ioaddr = wd_portlist[i]; |
i | 112 | drivers/net/wd.c | int i; |
i | 119 | drivers/net/wd.c | for (i = 0; i < 8; i++) |
i | 120 | drivers/net/wd.c | checksum += inb(ioaddr + 8 + i); |
i | 143 | drivers/net/wd.c | for (i = 0; i < 6; i++) |
i | 144 | drivers/net/wd.c | printk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i)); |
i | 170 | drivers/net/wd.c | for (i = 0; i < 6; i++) |
i | 171 | drivers/net/wd.c | if (inb(ioaddr+i) != inb(ioaddr+8+i)) |
i | 173 | 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 | 329 | drivers/pci/pci.c | int i = (min + max) >> 1; |
i | 332 | drivers/pci/pci.c | order = dev_info[i].vendor - (long) vendor; |
i | 334 | drivers/pci/pci.c | order = dev_info[i].device - (long) dev; |
i | 338 | drivers/pci/pci.c | min = i + 1; |
i | 346 | drivers/pci/pci.c | max = i - 1; |
i | 352 | drivers/pci/pci.c | return & dev_info[ i ]; |
i | 533 | drivers/pci/pci.c | int i; |
i | 537 | drivers/pci/pci.c | for (i = 0; i < NUM_OPTIMIZATIONS; i++) { |
i | 538 | drivers/pci/pci.c | printk(" %s: ", bridge_optimization[i].type); |
i | 539 | drivers/pci/pci.c | bmap = &bridge_mapping[pos + i]; |
i | 545 | drivers/pci/pci.c | printk("%s.", bridge_optimization[i].on); |
i | 551 | drivers/pci/pci.c | printk("Changed! Now %s.", bridge_optimization[i].off); |
i | 554 | drivers/pci/pci.c | printk("%s.", bridge_optimization[i].off); |
i | 560 | drivers/pci/pci.c | printk("Changed! Now %s.", bridge_optimization[i].on); |
i | 767 | drivers/scsi/53c7,8xx.c | int i, j; |
i | 769 | drivers/scsi/53c7,8xx.c | for (i = 0; i < 16; ++i) { |
i | 770 | drivers/scsi/53c7,8xx.c | hostdata->request_sense[i] = 0; |
i | 772 | drivers/scsi/53c7,8xx.c | hostdata->busy[i][j] = 0; |
i | 773 | drivers/scsi/53c7,8xx.c | set_synchronous (host, i, /* sxfer */ 0, hostdata->saved_scntl3, 0); |
i | 778 | drivers/scsi/53c7,8xx.c | for (i = 0, current = (u32 *) hostdata->schedule; |
i | 779 | drivers/scsi/53c7,8xx.c | i < host->can_queue; ++i, current += 2) { |
i | 866 | drivers/scsi/53c7,8xx.c | int i, ccf, expected_ccf; |
i | 1021 | drivers/scsi/53c7,8xx.c | case DMODE_BL_2: i = 2; break; |
i | 1022 | drivers/scsi/53c7,8xx.c | case DMODE_BL_4: i = 4; break; |
i | 1023 | drivers/scsi/53c7,8xx.c | case DMODE_BL_8: i = 8; break; |
i | 1024 | drivers/scsi/53c7,8xx.c | case DMODE_BL_16: i = 16; break; |
i | 1025 | drivers/scsi/53c7,8xx.c | default: i = 0; |
i | 1027 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : burst length %d\n", host->host_no, i); |
i | 1071 | drivers/scsi/53c7,8xx.c | for (i = 0; i < 16; ++i) |
i | 1072 | drivers/scsi/53c7,8xx.c | hostdata->cmd_allocated[i] = 0; |
i | 1399 | drivers/scsi/53c7,8xx.c | int i; |
i | 1479 | drivers/scsi/53c7,8xx.c | for (i = 0; i < NPCI_CHIP_IDS; ++i) { |
i | 1480 | drivers/scsi/53c7,8xx.c | if (device_id == pci_chip_ids[i].pci_device_id) { |
i | 1481 | drivers/scsi/53c7,8xx.c | max_revision = pci_chip_ids[i].max_revision; |
i | 1482 | drivers/scsi/53c7,8xx.c | min_revision = pci_chip_ids[i].min_revision; |
i | 1483 | drivers/scsi/53c7,8xx.c | expected_chip = pci_chip_ids[i].chip; |
i | 1485 | drivers/scsi/53c7,8xx.c | if (chip == pci_chip_ids[i].chip) |
i | 1486 | drivers/scsi/53c7,8xx.c | expected_id = pci_chip_ids[i].pci_device_id; |
i | 1527 | drivers/scsi/53c7,8xx.c | int i; |
i | 1560 | drivers/scsi/53c7,8xx.c | for (i = 0; i < NPCI_CHIP_IDS; ++i) |
i | 1563 | drivers/scsi/53c7,8xx.c | pci_chip_ids[i].pci_device_id, pci_index, &pci_bus, |
i | 1566 | drivers/scsi/53c7,8xx.c | if (!ncr_pci_init (tpnt, BOARD_GENERIC, pci_chip_ids[i].chip, |
i | 1597 | drivers/scsi/53c7,8xx.c | int i, ncr_to_memory, memory_to_ncr; |
i | 1607 | drivers/scsi/53c7,8xx.c | for (i = 0; i < PATCHES; ++i) |
i | 1608 | drivers/scsi/53c7,8xx.c | hostdata->script[LABELPATCHES[i]] += |
i | 1626 | drivers/scsi/53c7,8xx.c | for (i = 0; i < EXTERNAL_PATCHES_LEN; ++i) |
i | 1627 | drivers/scsi/53c7,8xx.c | hostdata->script[EXTERNAL_PATCHES[i].offset] += |
i | 1628 | drivers/scsi/53c7,8xx.c | virt_to_bus(EXTERNAL_PATCHES[i].address); |
i | 1814 | drivers/scsi/53c7,8xx.c | int failed, i; |
i | 1919 | drivers/scsi/53c7,8xx.c | for (i = 0; i < 3; ++i) { |
i | 1928 | drivers/scsi/53c7,8xx.c | dsa[0] = (0x33 << 24) | (i << 16) ; |
i | 1946 | drivers/scsi/53c7,8xx.c | host->host_no, i, data + 8); |
i | 1954 | drivers/scsi/53c7,8xx.c | host->host_no, i); |
i | 1989 | drivers/scsi/53c7,8xx.c | int i; |
i | 2409 | drivers/scsi/53c7,8xx.c | int desire, divisor, i, limit; |
i | 2428 | drivers/scsi/53c7,8xx.c | for (i = 0; (i < limit) && (divisor > syncs[i].div); ++i); |
i | 2432 | drivers/scsi/53c7,8xx.c | host->host_no, syncs[i].div / 10, syncs[i].div % 10); |
i | 2434 | drivers/scsi/53c7,8xx.c | msg[3] = ((1000000000L / hostdata->scsi_clock) * syncs[i].div / 10 / 4); |
i | 2441 | drivers/scsi/53c7,8xx.c | ~SCNTL3_800_SCF_MASK) | (syncs[i].scf << SCNTL3_800_SCF_SHIFT)) : 0; |
i | 2442 | drivers/scsi/53c7,8xx.c | sxfer = (msg[4] << SXFER_MO_SHIFT) | ((syncs[i].tp) << SXFER_TP_SHIFT); |
i | 3176 | drivers/scsi/53c7,8xx.c | {DT_help, "?", 0} , TOKEN(h,0), TOKEN(i,0), TOKEN(mp,2), |
i | 3200 | drivers/scsi/53c7,8xx.c | int i, j, error, len; |
i | 3220 | drivers/scsi/53c7,8xx.c | for (i = 0; i < NDT; ++i) { |
i | 3221 | drivers/scsi/53c7,8xx.c | len = strlen (debugger_tokens[i].name); |
i | 3222 | drivers/scsi/53c7,8xx.c | if (!strncmp(input_buf, debugger_tokens[i].name, len)) |
i | 3226 | drivers/scsi/53c7,8xx.c | if (i == NDT) |
i | 3229 | drivers/scsi/53c7,8xx.c | for (ptr = input_buf + len, j = 0; j < debugger_tokens[i].nargs && *ptr;) { |
i | 3239 | drivers/scsi/53c7,8xx.c | if (j != debugger_tokens[i].nargs) |
i | 3495 | drivers/scsi/53c7,8xx.c | i; /* Counter */ |
i | 3754 | drivers/scsi/53c7,8xx.c | for (i = 0; cmd->use_sg ? (i < cmd->use_sg) : !i; cmd_datain += 4, |
i | 3755 | drivers/scsi/53c7,8xx.c | cmd_dataout += 4, ++i) { |
i | 3757 | drivers/scsi/53c7,8xx.c | virt_to_bus(((struct scatterlist *)cmd->buffer)[i].address) : |
i | 3760 | drivers/scsi/53c7,8xx.c | ((struct scatterlist *)cmd->buffer)[i].length : |
i | 3951 | drivers/scsi/53c7,8xx.c | int i; |
i | 3976 | drivers/scsi/53c7,8xx.c | for (i = host->can_queue, current = hostdata->schedule; |
i | 3977 | drivers/scsi/53c7,8xx.c | i > 0 && current[0] != hostdata->NOP_insn; |
i | 3978 | drivers/scsi/53c7,8xx.c | --i, current += 2 /* JUMP instructions are two words */); |
i | 3980 | drivers/scsi/53c7,8xx.c | if (i > 0) { |
i | 5740 | drivers/scsi/53c7,8xx.c | int offset, i; |
i | 5744 | drivers/scsi/53c7,8xx.c | for (i = 0; i < 2; ++i) { |
i | 5748 | drivers/scsi/53c7,8xx.c | if (!i) { |
i | 5782 | drivers/scsi/53c7,8xx.c | int i, len; |
i | 5807 | drivers/scsi/53c7,8xx.c | for (i = dsa[hostdata->dsa_msgout / sizeof(u32)], |
i | 5809 | drivers/scsi/53c7,8xx.c | i > 0 && !check_address ((unsigned long) ptr, 1); |
i | 5810 | drivers/scsi/53c7,8xx.c | ptr += len, i -= len) { |
i | 5837 | drivers/scsi/53c7,8xx.c | for (i = 0; i < (sizeof(hostdata->sync[cmd->target].script) / 4); ++i) |
i | 5838 | drivers/scsi/53c7,8xx.c | printk ("0x%x ", hostdata->sync[cmd->target].script[i]); |
i | 5941 | drivers/scsi/53c7,8xx.c | int i, size; |
i | 5976 | drivers/scsi/53c7,8xx.c | for (i = 6; i > 0; --i, dsp += size) |
i | 6092 | drivers/scsi/53c7,8xx.c | int i; |
i | 6114 | drivers/scsi/53c7,8xx.c | for (i = 0, current = (u32 *) hostdata->schedule; |
i | 6115 | drivers/scsi/53c7,8xx.c | i < host->can_queue; ++i, current += 2) { |
i | 6281 | drivers/scsi/53c7,8xx.c | int i; |
i | 6286 | drivers/scsi/53c7,8xx.c | for (i = hostdata->event_index; count > 0; |
i | 6287 | drivers/scsi/53c7,8xx.c | i = (i ? i - 1 : hostdata->event_size -1), --count) { |
i | 6297 | drivers/scsi/53c7,8xx.c | event = hostdata->events[i]; |
i | 6299 | drivers/scsi/53c7,8xx.c | memcpy ((void *) &event, (void *) &(hostdata->events[i]), |
i | 1539 | drivers/scsi/53c7,8xx.h | for (i = 0; i < (sizeof (A_##symbol##_used) / sizeof \ |
i | 1540 | drivers/scsi/53c7,8xx.h | (u32)); ++i) { \ |
i | 1541 | drivers/scsi/53c7,8xx.h | (script)[A_##symbol##_used[i] - (offset)] += (value); \ |
i | 1544 | drivers/scsi/53c7,8xx.h | host->host_no, #symbol, i, A_##symbol##_used[i] - \ |
i | 1545 | drivers/scsi/53c7,8xx.h | (int)(offset), #script, (script)[A_##symbol##_used[i] - \ |
i | 1551 | drivers/scsi/53c7,8xx.h | for (i = 0; i < (sizeof (A_##symbol##_used) / sizeof \ |
i | 1552 | drivers/scsi/53c7,8xx.h | (u32)); ++i) \ |
i | 1553 | drivers/scsi/53c7,8xx.h | (script)[A_##symbol##_used[i] - (offset)] = \ |
i | 1554 | drivers/scsi/53c7,8xx.h | ((script)[A_##symbol##_used[i] - (offset)] & \ |
i | 1561 | drivers/scsi/53c7,8xx.h | for (i = 0; i < (sizeof (A_##symbol##_used) / sizeof \ |
i | 1562 | drivers/scsi/53c7,8xx.h | (u32)); ++i) \ |
i | 1563 | drivers/scsi/53c7,8xx.h | (script)[A_##symbol##_used[i] - (offset)] = \ |
i | 1564 | drivers/scsi/53c7,8xx.h | ((script)[A_##symbol##_used[i] - (offset)] & \ |
i | 171 | drivers/scsi/AM53C974.c | int i; |
i | 178 | drivers/scsi/AM53C974.c | for (i = 0; i < 8; i++) *(scratch + i) = AM53C974_PCIREG_READ_WORD(instance, PCI_SCRATCH_REG_0 + 2*i); |
i | 204 | drivers/scsi/AM53C974.c | for (i = 0; i < 8; i++) printk("PCI_SCRATCH_%d: 0x%x\n", i, scratch[i]); |
i | 227 | drivers/scsi/AM53C974.c | int i; |
i | 232 | drivers/scsi/AM53C974.c | for (i = 0; (phases[i].value != PHASE_RES_1) && |
i | 233 | drivers/scsi/AM53C974.c | (phases[i].value != (statreg & STATREG_PHASE)); ++i); |
i | 235 | drivers/scsi/AM53C974.c | printk("scsi%d : phase %s, latched at end of last command\n", instance->host_no, phases[i].name); |
i | 237 | drivers/scsi/AM53C974.c | printk("scsi%d : phase %s, real time\n", instance->host_no, phases[i].name); |
i | 593 | drivers/scsi/AM53C974.c | int i, j; |
i | 621 | drivers/scsi/AM53C974.c | for (i = 0; i < sizeof(hostdata->msgout); i++) { |
i | 622 | drivers/scsi/AM53C974.c | hostdata->msgout[i] = NOP; |
i | 623 | drivers/scsi/AM53C974.c | hostdata->last_message[i] = NOP; } |
i | 624 | drivers/scsi/AM53C974.c | for (i = 0; i < 8; i++) { |
i | 625 | drivers/scsi/AM53C974.c | hostdata->busy[i] = 0; |
i | 626 | drivers/scsi/AM53C974.c | hostdata->sync_per[i] = DEF_STP; |
i | 627 | drivers/scsi/AM53C974.c | hostdata->sync_off[i] = 0; |
i | 628 | drivers/scsi/AM53C974.c | hostdata->sync_neg[i] = 0; |
i | 629 | drivers/scsi/AM53C974.c | hostdata->sync_en[i] = DEFAULT_SYNC_NEGOTIATION_ENABLED; |
i | 630 | drivers/scsi/AM53C974.c | hostdata->max_rate[i] = DEFAULT_RATE; |
i | 631 | drivers/scsi/AM53C974.c | hostdata->max_offset[i] = DEFAULT_SYNC_OFFSET; } |
i | 634 | drivers/scsi/AM53C974.c | for (i = 0; i < commandline_current; i++) { |
i | 635 | drivers/scsi/AM53C974.c | if (overrides[i].host_scsi_id == instance->this_id) { |
i | 636 | drivers/scsi/AM53C974.c | j = overrides[i].target_scsi_id; |
i | 638 | drivers/scsi/AM53C974.c | hostdata->max_rate[j] = overrides[i].max_rate; |
i | 639 | drivers/scsi/AM53C974.c | hostdata->max_offset[j] = overrides[i].max_offset; |
i | 1206 | drivers/scsi/AM53C974.c | int i; |
i | 1208 | drivers/scsi/AM53C974.c | for (i = 0; i < cmd->request_bufflen; i++) { |
i | 1209 | drivers/scsi/AM53C974.c | printk("%02x ", *((char *)(cmd->request_buffer) + i)); |
i | 1210 | drivers/scsi/AM53C974.c | if (i && !(i % 16)) printk("\n"); } |
i | 1294 | drivers/scsi/AM53C974.c | int period, offset, i, rate, rate_rem; |
i | 1312 | drivers/scsi/AM53C974.c | for (i = 0; i < 3; i++) hostdata->msgout[i] = msg[i]; |
i | 1393 | drivers/scsi/AM53C974.c | int ret, i, len, residual=-1; |
i | 1467 | drivers/scsi/AM53C974.c | for (i = 0; i < sizeof(hostdata->last_message); i++) |
i | 1468 | drivers/scsi/AM53C974.c | hostdata->last_message[i] = hostdata->msgout[i]; |
i | 1476 | drivers/scsi/AM53C974.c | for (i = 0; i < hostdata->msgout[1] + 2; i++) { |
i | 1477 | drivers/scsi/AM53C974.c | printk("%02x ", hostdata->msgout[i]); |
i | 1478 | drivers/scsi/AM53C974.c | if (i && !(i % 16)) printk("\n"); } |
i | 1485 | drivers/scsi/AM53C974.c | for (i = 0; i < len; i++) AM53C974_write_8(FFREG, hostdata->msgout[i]); |
i | 1495 | drivers/scsi/AM53C974.c | for (i = 0; i < cmd->cmd_len; i++) AM53C974_write_8(FFREG, cmd->cmnd[i]); |
i | 1791 | drivers/scsi/AM53C974.c | unsigned int i, len, cmd_size = COMMAND_SIZE(cmd->cmnd[0]); |
i | 1842 | drivers/scsi/AM53C974.c | for (i = 0; i < cmd_size; i++) AM53C974_write_8(FFREG, cmd->cmnd[i]); |
i | 1847 | drivers/scsi/AM53C974.c | for (i = 0; i < cmd_size; i++) AM53C974_write_8(FFREG, cmd->cmnd[i]); |
i | 2032 | drivers/scsi/AM53C974.c | int cfifo, pio, i = 0; |
i | 2037 | drivers/scsi/AM53C974.c | i++; |
i | 2038 | drivers/scsi/AM53C974.c | } while (cfifo && (i < 50000)); |
i | 2039 | drivers/scsi/AM53C974.c | pio = (i == 50000) ? 1: 0; |
i | 2201 | drivers/scsi/AM53C974.c | int i; |
i | 2217 | drivers/scsi/AM53C974.c | for (i = 0; i < 8; i++) { |
i | 2218 | drivers/scsi/AM53C974.c | hostdata->busy[i] = 0; |
i | 2219 | drivers/scsi/AM53C974.c | hostdata->sync_per[i] = DEF_STP; |
i | 2220 | drivers/scsi/AM53C974.c | hostdata->sync_off[i] = 0; |
i | 2221 | drivers/scsi/AM53C974.c | hostdata->sync_neg[i] = 0; } |
i | 266 | drivers/scsi/BusLogic.c | int i; |
i | 267 | drivers/scsi/BusLogic.c | for (i = 0; i < BusLogic_InitialCCBs; i++) |
i | 274 | drivers/scsi/BusLogic.c | HostAdapter->HostNumber, i); |
i | 508 | drivers/scsi/BusLogic.c | int i; |
i | 512 | drivers/scsi/BusLogic.c | for (i = 0; i < ReplyLength; i++) |
i | 513 | drivers/scsi/BusLogic.c | printk(" %02X", ((unsigned char *) ReplyData)[i]); |
i | 757 | drivers/scsi/BusLogic.c | int TargetID, i; |
i | 844 | drivers/scsi/BusLogic.c | for (i = 0; i < sizeof(BoardModelNumber); i++) |
i | 846 | drivers/scsi/BusLogic.c | Character = BoardModelNumber[i]; |
i | 1260 | drivers/scsi/BusLogic.c | int TestCount = 5, i; |
i | 1265 | drivers/scsi/BusLogic.c | for (i = 0; i < TestCount; i++) |
i | 1953 | drivers/scsi/BusLogic.c | int i; |
i | 1960 | drivers/scsi/BusLogic.c | for (i = 0; i < CCB->CDB_Length; i++) |
i | 1961 | drivers/scsi/BusLogic.c | printk(" %02X", CCB->CDB[i]); |
i | 1964 | drivers/scsi/BusLogic.c | for (i = 0; i < CCB->SenseDataLength; i++) |
i | 1965 | drivers/scsi/BusLogic.c | printk(" %02X", (*CCB->SenseDataPointer)[i]); |
i | 2612 | drivers/scsi/BusLogic.c | int IntegerCount = Integers[0], TargetID, i; |
i | 2629 | drivers/scsi/BusLogic.c | for (i = 0; ; i++) |
i | 2630 | drivers/scsi/BusLogic.c | if (BusLogic_IO_StandardAddresses[i] == 0) |
i | 2636 | drivers/scsi/BusLogic.c | else if (i < ProbeListIndex && |
i | 2637 | drivers/scsi/BusLogic.c | IO_Address == BusLogic_IO_AddressProbeList[i]) |
i | 2644 | drivers/scsi/BusLogic.c | IO_Address == BusLogic_IO_StandardAddresses[i]) break; |
i | 360 | drivers/scsi/NCR5380.c | unsigned char status, data, basr, mr, icr, i; |
i | 370 | drivers/scsi/NCR5380.c | for (i = 0; signals[i].mask ; ++i) |
i | 371 | drivers/scsi/NCR5380.c | if (status & signals[i].mask) |
i | 372 | drivers/scsi/NCR5380.c | printk(",%s", signals[i].name); |
i | 374 | drivers/scsi/NCR5380.c | for (i = 0; basrs[i].mask ; ++i) |
i | 375 | drivers/scsi/NCR5380.c | if (basr & basrs[i].mask) |
i | 376 | drivers/scsi/NCR5380.c | printk(",%s", basrs[i].name); |
i | 378 | drivers/scsi/NCR5380.c | for (i = 0; icrs[i].mask; ++i) |
i | 379 | drivers/scsi/NCR5380.c | if (icr & icrs[i].mask) |
i | 380 | drivers/scsi/NCR5380.c | printk(",%s", icrs[i].name); |
i | 382 | drivers/scsi/NCR5380.c | for (i = 0; mrs[i].mask; ++i) |
i | 383 | drivers/scsi/NCR5380.c | if (mr & mrs[i].mask) |
i | 384 | drivers/scsi/NCR5380.c | printk(",%s", mrs[i].name); |
i | 407 | drivers/scsi/NCR5380.c | int i; |
i | 415 | drivers/scsi/NCR5380.c | for (i = 0; (phases[i].value != PHASE_UNKNOWN) && |
i | 416 | drivers/scsi/NCR5380.c | (phases[i].value != (status & PHASE_MASK)); ++i); |
i | 417 | drivers/scsi/NCR5380.c | printk("scsi%d : phase %s\n", instance->host_no, phases[i].name); |
i | 628 | drivers/scsi/NCR5380.c | int trying_irqs, i, mask; |
i | 631 | drivers/scsi/NCR5380.c | for (trying_irqs = i = 0, mask = 1; i < 16; ++i, mask <<= 1) |
i | 632 | drivers/scsi/NCR5380.c | if ((mask & possible) && (request_irq(i, &probe_intr, SA_INTERRUPT, "NCR-probe", NULL) |
i | 661 | drivers/scsi/NCR5380.c | for (i = 0, mask = 1; i < 16; ++i, mask <<= 1) |
i | 663 | drivers/scsi/NCR5380.c | free_irq(i, NULL); |
i | 779 | drivers/scsi/NCR5380.c | int i, pass; |
i | 800 | drivers/scsi/NCR5380.c | for (i = hostdata->id_mask; i <= 0x80; i <<= 1) |
i | 801 | drivers/scsi/NCR5380.c | if (i > hostdata->id_mask) |
i | 802 | drivers/scsi/NCR5380.c | hostdata->id_higher_mask |= i; |
i | 803 | drivers/scsi/NCR5380.c | for (i = 0; i < 8; ++i) |
i | 804 | drivers/scsi/NCR5380.c | hostdata->busy[i] = 0; |
i | 813 | drivers/scsi/NCR5380.c | for (i = 0; i < 8; ++i) { |
i | 814 | drivers/scsi/NCR5380.c | hostdata->time_read[i] = 0; |
i | 815 | drivers/scsi/NCR5380.c | hostdata->time_write[i] = 0; |
i | 816 | drivers/scsi/NCR5380.c | hostdata->bytes_read[i] = 0; |
i | 817 | drivers/scsi/NCR5380.c | hostdata->bytes_write[i] = 0; |
i | 155 | drivers/scsi/NCR53c406a.c | #define rtrc(i) {inb(0x3da);outb(0x31,0x3c0);outb((i),0x3c0);} |
i | 157 | drivers/scsi/NCR53c406a.c | #define rtrc(i) {} |
i | 357 | drivers/scsi/NCR53c406a.c | int i; |
i | 363 | drivers/scsi/NCR53c406a.c | i = inb(PIO_STATUS); |
i | 365 | drivers/scsi/NCR53c406a.c | if (i & 0x80) |
i | 368 | drivers/scsi/NCR53c406a.c | switch( i & 0x1e ) { |
i | 382 | drivers/scsi/NCR53c406a.c | if ((i & 0x40) && len == 0) { /* fifo empty and interrupt occured */ |
i | 412 | drivers/scsi/NCR53c406a.c | int i = 0; |
i | 417 | drivers/scsi/NCR53c406a.c | while (reqlen && !(i&0x40)) { |
i | 418 | drivers/scsi/NCR53c406a.c | i = inb(PIO_STATUS); |
i | 420 | drivers/scsi/NCR53c406a.c | if (i & 0x80) /* error */ |
i | 423 | drivers/scsi/NCR53c406a.c | switch( i & 0x1e ) { |
i | 465 | drivers/scsi/NCR53c406a.c | int i; |
i | 497 | drivers/scsi/NCR53c406a.c | for(i=0; i<PORT_COUNT && !port_base; i++){ |
i | 498 | drivers/scsi/NCR53c406a.c | if(check_region(ports[i], 0x10)){ |
i | 499 | drivers/scsi/NCR53c406a.c | DEB(printk("NCR53c406a: port %x in use\n", ports[i])); |
i | 502 | drivers/scsi/NCR53c406a.c | VDEB(printk("NCR53c406a: port %x available\n", ports[i])); |
i | 503 | drivers/scsi/NCR53c406a.c | outb(C5_IMG, ports[i] + 0x0d); /* reg set 1 */ |
i | 504 | drivers/scsi/NCR53c406a.c | if( (inb(ports[i] + 0x0e) ^ inb(ports[i] + 0x0e)) == 7 |
i | 505 | drivers/scsi/NCR53c406a.c | && (inb(ports[i] + 0x0e) ^ inb(ports[i] + 0x0e)) == 7 |
i | 506 | drivers/scsi/NCR53c406a.c | && (inb(ports[i] + 0x0e) & 0xf8) == 0x58 ) { |
i | 509 | drivers/scsi/NCR53c406a.c | port_base = ports[i]; |
i | 596 | drivers/scsi/NCR53c406a.c | size_t i; |
i | 609 | drivers/scsi/NCR53c406a.c | for (i = 0; i < PORT_COUNT && !port_base; i++) |
i | 610 | drivers/scsi/NCR53c406a.c | if (ports[i] == ints[1]) { |
i | 625 | drivers/scsi/NCR53c406a.c | for (i = 0; i < INTR_COUNT && irq_level < 0; i++) |
i | 626 | drivers/scsi/NCR53c406a.c | if (intrs[i] == ints[2]) { |
i | 654 | drivers/scsi/NCR53c406a.c | int i = jiffies + WATCHDOG; |
i | 656 | drivers/scsi/NCR53c406a.c | while(i>jiffies && !(inb(STAT_REG)&0xe0)) /* wait for a pseudo-interrupt */ |
i | 659 | drivers/scsi/NCR53c406a.c | if (i <= jiffies) { /* Timed out */ |
i | 686 | drivers/scsi/NCR53c406a.c | int i; |
i | 698 | drivers/scsi/NCR53c406a.c | VDEB(for(i=0; i<SCpnt->cmd_len; i++) |
i | 699 | drivers/scsi/NCR53c406a.c | printk("cmd[%d]=%02x ", i, SCpnt->cmnd[i])); |
i | 715 | drivers/scsi/NCR53c406a.c | for(i=0; i<SCpnt->cmd_len; i++){ |
i | 716 | drivers/scsi/NCR53c406a.c | outb(SCpnt->cmnd[i], SCSI_FIFO); |
i | 963 | drivers/scsi/NCR53c406a.c | int i; |
i | 974 | drivers/scsi/NCR53c406a.c | i = jiffies + WATCHDOG; |
i | 975 | drivers/scsi/NCR53c406a.c | while(i > jiffies && !(inb(STAT_REG) & 0x80)) |
i | 977 | drivers/scsi/NCR53c406a.c | if (i <= jiffies) { /* Timed out, must be hardware trouble */ |
i | 2612 | drivers/scsi/advansys.c | int i; |
i | 2637 | drivers/scsi/advansys.c | for (i = 0; i < asc_board_count; i++) { |
i | 2638 | drivers/scsi/advansys.c | if (asc_host[i]->host_no == hostno) { |
i | 2642 | drivers/scsi/advansys.c | if (i == asc_board_count) { |
i | 2645 | drivers/scsi/advansys.c | shp = asc_host[i]; |
i | 3374 | drivers/scsi/advansys.c | int i; |
i | 3386 | drivers/scsi/advansys.c | for (i = 0; i < ASC_MAX_TID; i++) { |
i | 3387 | drivers/scsi/advansys.c | while ((tscp = asc_dequeue(scp->host, i)) != NULL) { |
i | 3489 | drivers/scsi/advansys.c | int i; |
i | 3514 | drivers/scsi/advansys.c | for (i = 1; i < ints[0]; i++) { |
i | 3515 | drivers/scsi/advansys.c | ASC_DBG2(1, " ints[%d] %x", i, ints[i]); |
i | 3520 | drivers/scsi/advansys.c | for (i = 1; i <= ints[0] && i <= ASC_NUM_BOARD_SUPPORTED; i++) { |
i | 3521 | drivers/scsi/advansys.c | asc_ioport[i-1] = ints[i]; |
i | 3523 | drivers/scsi/advansys.c | i - 1, asc_ioport[i-1]); |
i | 3582 | drivers/scsi/advansys.c | int i; |
i | 3597 | drivers/scsi/advansys.c | for (i = 0; i < asc_board_count; i++) { |
i | 3598 | drivers/scsi/advansys.c | while (AscIsIntPending(asc_host[i]->io_port)) { |
i | 3600 | drivers/scsi/advansys.c | AscISR(&ASC_BOARD(asc_host[i])->board); |
i | 3936 | drivers/scsi/advansys.c | int i; |
i | 3945 | drivers/scsi/advansys.c | for (i = 0; i < ASC_MAX_TID; i++) { |
i | 3946 | drivers/scsi/advansys.c | if (scan_tidmask & ASC_TIX_TO_TARGET_ID(i)) { |
i | 3947 | drivers/scsi/advansys.c | if ((scp = asc_dequeue(shp, i)) == NULL) { |
i | 3948 | drivers/scsi/advansys.c | scan_tidmask &= ~ASC_TIX_TO_TARGET_ID(i); |
i | 3950 | drivers/scsi/advansys.c | scan_tidmask &= ~ASC_TIX_TO_TARGET_ID(i); |
i | 3952 | drivers/scsi/advansys.c | asc_enqueue(shp, scp, i, ASC_FRONT); |
i | 4076 | drivers/scsi/advansys.c | for (i = 0; i <= ASC_MAX_TID; i++) { |
i | 4077 | drivers/scsi/advansys.c | if (boardp->max_dvc_qng[i] < scp->host->cmd_per_lun) { |
i | 4078 | drivers/scsi/advansys.c | scp->host->cmd_per_lun = boardp->max_dvc_qng[i]; |
i | 4480 | drivers/scsi/advansys.c | ulong i; |
i | 4483 | drivers/scsi/advansys.c | for (i = 0; i < n; i++) { |
i | 4551 | drivers/scsi/advansys.c | int i; |
i | 4555 | drivers/scsi/advansys.c | for (i = 0; i < words; i++, outbuf++) { |
i | 4556 | drivers/scsi/advansys.c | if (i == 2 || i == 10) { |
i | 4576 | drivers/scsi/advansys.c | int i; |
i | 4579 | drivers/scsi/advansys.c | for (i = 0; i < words; i++, inbuf++) { |
i | 4580 | drivers/scsi/advansys.c | if (i == 5) { |
i | 4600 | drivers/scsi/advansys.c | int i; |
i | 4602 | drivers/scsi/advansys.c | for (i = 0; i < words; i++, outbuf++) |
i | 4618 | drivers/scsi/advansys.c | int i; |
i | 4620 | drivers/scsi/advansys.c | for (i = 0; i < words; i++, inbuf++) |
i | 4638 | drivers/scsi/advansys.c | int i; |
i | 4644 | drivers/scsi/advansys.c | for(i = 0; i < words; i++, pw++) { |
i | 4870 | drivers/scsi/advansys.c | int i; |
i | 4893 | drivers/scsi/advansys.c | for (i = 0; i < sgp->entry_cnt; i++) { |
i | 4895 | drivers/scsi/advansys.c | i, (unsigned) sgp->sg_list[i].addr, sgp->sg_list[i].bytes); |
i | 4926 | drivers/scsi/advansys.c | int i; |
i | 4933 | drivers/scsi/advansys.c | for (i = 0; i < l; i += 32) { |
i | 4936 | drivers/scsi/advansys.c | if ((k = (l - i) / 4) >= 8) { |
i | 4940 | drivers/scsi/advansys.c | m = (l - i) % 4 ; |
i | 4945 | drivers/scsi/advansys.c | (unsigned) s[i+(j*4)], (unsigned) s[i+(j*4)+1], |
i | 4946 | drivers/scsi/advansys.c | (unsigned) s[i+(j*4)+2], (unsigned) s[i+(j*4)+3]); |
i | 4955 | drivers/scsi/advansys.c | (unsigned) s[i+(j*4)+4]); |
i | 4959 | drivers/scsi/advansys.c | (unsigned) s[i+(j*4)+4], |
i | 4960 | drivers/scsi/advansys.c | (unsigned) s[i+(j*4)+5]); |
i | 4964 | drivers/scsi/advansys.c | (unsigned) s[i+(j*4)+4], |
i | 4965 | drivers/scsi/advansys.c | (unsigned) s[i+(j*4)+5], |
i | 4966 | drivers/scsi/advansys.c | (unsigned) s[i+(j*4)+6]); |
i | 5192 | drivers/scsi/advansys.c | int i; |
i | 5195 | drivers/scsi/advansys.c | for (i = 0; i < ASC_IOADR_TABLE_MAX_IX; i++) { |
i | 5196 | drivers/scsi/advansys.c | if (_asc_def_iop_base[i] > s_addr) { |
i | 5200 | drivers/scsi/advansys.c | for (; i < ASC_IOADR_TABLE_MAX_IX; i++) { |
i | 5201 | drivers/scsi/advansys.c | iop_base = _asc_def_iop_base[i]; |
i | 5591 | drivers/scsi/advansys.c | uchar i; |
i | 5640 | drivers/scsi/advansys.c | for (i = 0; i < sg_queue_cnt; i++) { |
i | 5738 | drivers/scsi/advansys.c | i = tid_no + 1; |
i | 5740 | drivers/scsi/advansys.c | if (i > ASC_MAX_TID) |
i | 5741 | drivers/scsi/advansys.c | i = 0; |
i | 5742 | drivers/scsi/advansys.c | if (i == tid_no) |
i | 5744 | drivers/scsi/advansys.c | n_busy_q_done = AscIsrExeBusyQueue(asc_dvc, i); |
i | 5747 | drivers/scsi/advansys.c | i++; |
i | 6060 | drivers/scsi/advansys.c | int i; |
i | 6126 | drivers/scsi/advansys.c | for (i = 0; i < sg_entry_cnt_minus_one; i++) { |
i | 6128 | drivers/scsi/advansys.c | addr = scsiq->sg_head->sg_list[i].addr + |
i | 6129 | drivers/scsi/advansys.c | scsiq->sg_head->sg_list[i].bytes; |
i | 6507 | drivers/scsi/advansys.c | uchar sg_index, i; |
i | 6534 | drivers/scsi/advansys.c | for (i = 0; i < sg_head->queue_cnt; i++) { |
i | 6535 | drivers/scsi/advansys.c | scsi_sg_q.seq_no = i + 1; |
i | 6539 | drivers/scsi/advansys.c | if (i == 0) { |
i | 6550 | drivers/scsi/advansys.c | if (i == 0) { |
i | 6627 | drivers/scsi/advansys.c | int i; |
i | 6651 | drivers/scsi/advansys.c | for (i = 0; i < sizeof (ASC_SCSI_REQ_Q); i++) { |
i | 6708 | drivers/scsi/advansys.c | int i; |
i | 6729 | drivers/scsi/advansys.c | for (i = 0; i <= ASC_MAX_TID; i++) { |
i | 6730 | drivers/scsi/advansys.c | asc_dvc->cur_dvc_qng[i] = 0; |
i | 6731 | drivers/scsi/advansys.c | if (asc_dvc->pci_fix_asyn_xfer & (0x01 << i)) { |
i | 6733 | drivers/scsi/advansys.c | AscSetChipSynRegAtID(iop_base, i, ASYN_SDTR_DATA_FIX_PCI_REV_AB); |
i | 6804 | drivers/scsi/advansys.c | uchar i; |
i | 6816 | drivers/scsi/advansys.c | i = ASC_MIN_ACTIVE_QNO; |
i | 6820 | drivers/scsi/advansys.c | (uchar) (i + 1)); |
i | 6824 | drivers/scsi/advansys.c | (uchar) i); |
i | 6825 | drivers/scsi/advansys.c | i++; |
i | 6827 | drivers/scsi/advansys.c | for (; i < asc_dvc->max_total_qng; i++, s_addr += ASC_QBLK_SIZE) { |
i | 6829 | drivers/scsi/advansys.c | (uchar) (i + 1)); |
i | 6831 | drivers/scsi/advansys.c | (uchar) (i - 1)); |
i | 6833 | drivers/scsi/advansys.c | (uchar) i); |
i | 6842 | drivers/scsi/advansys.c | i++; |
i | 6845 | drivers/scsi/advansys.c | for (; i <= (uchar) (asc_dvc->max_total_qng + 3); |
i | 6846 | drivers/scsi/advansys.c | i++, s_addr += ASC_QBLK_SIZE) { |
i | 6849 | drivers/scsi/advansys.c | (ushort) (s_addr + (ushort) ASC_SCSIQ_B_FWD), i); |
i | 6851 | drivers/scsi/advansys.c | (ushort) (s_addr + (ushort) ASC_SCSIQ_B_BWD), i); |
i | 6853 | drivers/scsi/advansys.c | (ushort) (s_addr + (ushort) ASC_SCSIQ_B_QNO), i); |
i | 6865 | drivers/scsi/advansys.c | int i; |
i | 6892 | drivers/scsi/advansys.c | for (i = 0; i < 32; i++, lram_addr += 2) { |
i | 7077 | drivers/scsi/advansys.c | uchar i; |
i | 7079 | drivers/scsi/advansys.c | for (i = 0; i < n_free_q; i++) { |
i | 7749 | drivers/scsi/advansys.c | int i; |
i | 7762 | drivers/scsi/advansys.c | for (i = 0; i <= ASC_MAX_TID; i++) { |
i | 7763 | drivers/scsi/advansys.c | asc_dvc->scsiq_busy_head[i] = (ASC_SCSI_Q dosfar *) 0L; |
i | 7764 | drivers/scsi/advansys.c | asc_dvc->scsiq_busy_tail[i] = (ASC_SCSI_Q dosfar *) 0L; |
i | 7810 | drivers/scsi/advansys.c | for (i = 0; i <= ASC_MAX_TID; i++) { |
i | 7811 | drivers/scsi/advansys.c | asc_dvc->cfg->sdtr_data[i] = |
i | 7813 | drivers/scsi/advansys.c | asc_dvc->cur_dvc_qng[i] = 0; |
i | 7814 | drivers/scsi/advansys.c | asc_dvc->max_dvc_qng[i] = ASC_MAX_SCSI1_QNG; |
i | 7815 | drivers/scsi/advansys.c | asc_dvc->scsiq_busy_head[i] = (ASC_SCSI_Q dosfar *) 0L; |
i | 7816 | drivers/scsi/advansys.c | asc_dvc->scsiq_busy_tail[i] = (ASC_SCSI_Q dosfar *) 0L; |
i | 7878 | drivers/scsi/advansys.c | uchar i; |
i | 8001 | drivers/scsi/advansys.c | for (i = 0; i <= ASC_MAX_TID; i++) { |
i | 8002 | drivers/scsi/advansys.c | asc_dvc->cfg->sdtr_data[i] = eep_config->sdtr_data[i]; |
i | 8003 | drivers/scsi/advansys.c | asc_dvc->cfg->max_tag_qng[i] = eep_config->max_tag_qng; |
i | 8018 | drivers/scsi/advansys.c | int i; |
i | 8025 | drivers/scsi/advansys.c | for (i = 0; i <= ASC_MAX_TID; i++) { |
i | 8026 | drivers/scsi/advansys.c | AscWriteLramByte(iop_base, (ushort) (ASCV_SDTR_DATA_BEG + i), |
i | 8027 | drivers/scsi/advansys.c | asc_dvc->cfg->sdtr_data[i]); |
i | 8073 | drivers/scsi/advansys.c | uchar i; |
i | 8089 | drivers/scsi/advansys.c | for (i = 0; i < cp_sen_len; i++) { |
i | 8090 | drivers/scsi/advansys.c | scsiq_req->sense[i] = scsiq_req->sense_ptr[i]; |
i | 8391 | drivers/scsi/advansys.c | int i; |
i | 8402 | drivers/scsi/advansys.c | for (i = 0; i <= ASC_MAX_TID; i++) { |
i | 8404 | drivers/scsi/advansys.c | (ushort) ((ushort) ASCV_MAX_DVC_QNG_BEG + (ushort) i), |
i | 8405 | drivers/scsi/advansys.c | asc_dvc->max_dvc_qng[i]); |
i | 8998 | drivers/scsi/advansys.c | int i; |
i | 9001 | drivers/scsi/advansys.c | for (i = 0; i < words; i++, s_addr += 2) { |
i | 9015 | drivers/scsi/advansys.c | rint i; |
i | 9018 | drivers/scsi/advansys.c | for (i = 0; i < words; i++) { |
i | 356 | drivers/scsi/aha152x.c | #define MSG(i) (HOSTDATA(shpnt)->message[i]) |
i | 602 | drivers/scsi/aha152x.c | int i; |
i | 608 | drivers/scsi/aha152x.c | for(i=0; i<16; i++) |
i | 609 | drivers/scsi/aha152x.c | SETPORT(io_port+O_STACK, i); |
i | 612 | drivers/scsi/aha152x.c | for(i=0; i<16 && GETPORT(io_port+O_STACK)==i; i++) |
i | 615 | drivers/scsi/aha152x.c | return(i==16); |
i | 620 | drivers/scsi/aha152x.c | int i; |
i | 623 | drivers/scsi/aha152x.c | for(i=0; i<PORT_COUNT && (setup->io_port != ports[i]); i++) |
i | 626 | drivers/scsi/aha152x.c | if(i==PORT_COUNT) |
i | 654 | drivers/scsi/aha152x.c | int i, j, ok; |
i | 661 | drivers/scsi/aha152x.c | for(i=0; i<IRQS; i++) |
i | 662 | drivers/scsi/aha152x.c | aha152x_host[i] = (struct Scsi_Host *) NULL; |
i | 668 | drivers/scsi/aha152x.c | for(i=0; i<setup_count; i++) |
i | 669 | drivers/scsi/aha152x.c | if(!aha152x_checksetup(&setup[i])) |
i | 671 | drivers/scsi/aha152x.c | printk("\naha152x: %s\n", setup[i].conf); |
i | 672 | drivers/scsi/aha152x.c | printk("aha152x: invalid line (controller=%d)\n", i+1); |
i | 727 | drivers/scsi/aha152x.c | for(i=0; i < ADDRESS_COUNT && !ok; i++) |
i | 729 | drivers/scsi/aha152x.c | ok=!memcmp((void *) addresses[i]+signatures[j].sig_offset, |
i | 741 | drivers/scsi/aha152x.c | for(i=0; i<PORT_COUNT && setup_count<2; i++) |
i | 743 | drivers/scsi/aha152x.c | if((setup_count==1) && (setup[0].io_port == ports[i])) |
i | 746 | drivers/scsi/aha152x.c | if(aha152x_porttest(ports[i])) |
i | 748 | drivers/scsi/aha152x.c | setup[setup_count].io_port = ports[i]; |
i | 751 | drivers/scsi/aha152x.c | (GETPORT(ports[i]+O_PORTA)<<8) + GETPORT(ports[i]+O_PORTB); |
i | 772 | drivers/scsi/aha152x.c | for(i=0; i<setup_count; i++) |
i | 776 | drivers/scsi/aha152x.c | shpnt = aha152x_host[setup[i].irq-IRQ_MIN] = |
i | 779 | drivers/scsi/aha152x.c | shpnt->io_port = setup[i].io_port; |
i | 781 | drivers/scsi/aha152x.c | shpnt->irq = setup[i].irq; |
i | 787 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->reconnect = setup[i].reconnect; |
i | 788 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->parity = setup[i].parity; |
i | 789 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->synchronous = setup[i].synchronous; |
i | 790 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->delay = setup[i].delay; |
i | 792 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->debug = setup[i].debug; |
i | 805 | drivers/scsi/aha152x.c | SETPORT(SCSIID, setup[i].scsiid << 4); |
i | 806 | drivers/scsi/aha152x.c | shpnt->this_id=setup[i].scsiid; |
i | 808 | drivers/scsi/aha152x.c | if(setup[i].reconnect) |
i | 815 | drivers/scsi/aha152x.c | do_pause(setup[i].delay); |
i | 821 | drivers/scsi/aha152x.c | i, |
i | 838 | drivers/scsi/aha152x.c | ok = request_irq(setup[i].irq, aha152x_intr, SA_INTERRUPT, "aha152x", NULL); |
i | 844 | drivers/scsi/aha152x.c | printk("aha152x%d: bad IRQ %d.\n", i, setup[i].irq); |
i | 850 | drivers/scsi/aha152x.c | i, setup[i].irq); |
i | 854 | drivers/scsi/aha152x.c | " requesting IRQ %d.\n", i, setup[i].irq); |
i | 1340 | drivers/scsi/aha152x.c | int identify_msg, target, i; |
i | 1367 | drivers/scsi/aha152x.c | i = GETPORT(SELID) & ~(1 << shpnt->this_id); |
i | 1369 | drivers/scsi/aha152x.c | if(i) |
i | 1370 | drivers/scsi/aha152x.c | for(; (i & 1)==0; target++, i>>=1) |
i | 1390 | drivers/scsi/aha152x.c | if((i=getphase(shpnt))!=P_MSGI) |
i | 1392 | drivers/scsi/aha152x.c | printk("target doesn't enter MSGI to identify (phase=%02x)\n", i); |
i | 1644 | drivers/scsi/aha152x.c | int i, identify=0, abort=0; |
i | 1672 | drivers/scsi/aha152x.c | int i; |
i | 1675 | drivers/scsi/aha152x.c | for(i=0; i<MSGLEN; i+=print_msg(&MSG(i)), printk(" ")) |
i | 1681 | drivers/scsi/aha152x.c | for(i=0; i<MSGLEN && TESTLO(SSTAT1, PHASEMIS); i++) |
i | 1685 | drivers/scsi/aha152x.c | printk("%x ", MSG(i)); |
i | 1687 | drivers/scsi/aha152x.c | if(i==MSGLEN-1) |
i | 1693 | drivers/scsi/aha152x.c | SETPORT(SCSIDAT, MSG(i)); |
i | 1698 | drivers/scsi/aha152x.c | if(MSG(i)==IDENTIFY(HOSTDATA(shpnt)->reconnect,CURRENT_SC->lun)) |
i | 1701 | drivers/scsi/aha152x.c | if(MSG(i)==ABORT) |
i | 1737 | drivers/scsi/aha152x.c | int i; |
i | 1748 | drivers/scsi/aha152x.c | for(i=0; i<CURRENT_SC->cmd_len && TESTLO(SSTAT1, PHASEMIS); i++) |
i | 1750 | drivers/scsi/aha152x.c | SETPORT(SCSIDAT, CURRENT_SC->cmnd[i]); |
i | 1756 | drivers/scsi/aha152x.c | if(i<CURRENT_SC->cmd_len && TESTHI(SSTAT1, PHASEMIS)) |
i | 1827 | drivers/scsi/aha152x.c | int i; |
i | 1840 | drivers/scsi/aha152x.c | for(i=0; i<buffer[1] && |
i | 1841 | drivers/scsi/aha152x.c | (make_acklow(shpnt), getphase(shpnt)==P_MSGI); i++) |
i | 1842 | drivers/scsi/aha152x.c | buffer[2+i]=GETPORT(SCSIDAT); |
i | 2093 | drivers/scsi/aha152x.c | int i; |
i | 2103 | drivers/scsi/aha152x.c | for(i=0; i<2*data_count; i++) |
i | 2757 | drivers/scsi/aha152x.c | int i; |
i | 2762 | drivers/scsi/aha152x.c | for(i=0; i<COMMAND_SIZE(ptr->cmnd[0]); i++) |
i | 2763 | drivers/scsi/aha152x.c | SPRINTF("0x%02x", ptr->cmnd[i]); |
i | 2821 | drivers/scsi/aha152x.c | int i; |
i | 2828 | drivers/scsi/aha152x.c | for(i=0, shpnt= (struct Scsi_Host *) NULL; i<IRQS; i++) |
i | 2829 | drivers/scsi/aha152x.c | if(aha152x_host[i] && aha152x_host[i]->host_no == hostno) |
i | 2830 | drivers/scsi/aha152x.c | shpnt=aha152x_host[i]; |
i | 2858 | drivers/scsi/aha152x.c | for(i=0; i<8; i++) |
i | 2859 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->syncrate[i]&0x7f) |
i | 2861 | drivers/scsi/aha152x.c | i, |
i | 2862 | drivers/scsi/aha152x.c | (((HOSTDATA(shpnt)->syncrate[i]&0x70)>>4)+2), |
i | 2863 | drivers/scsi/aha152x.c | (((HOSTDATA(shpnt)->syncrate[i]&0x70)>>4)+2)* |
i | 2865 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->syncrate[i]&0x0f); |
i | 2868 | drivers/scsi/aha152x.c | for(i=0; i<8; i++) |
i | 2869 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->syncrate[i]&0x7f) |
i | 2871 | drivers/scsi/aha152x.c | i, |
i | 2872 | drivers/scsi/aha152x.c | (((HOSTDATA(shpnt)->syncrate[i]&0x70)>>4)+2), |
i | 2873 | drivers/scsi/aha152x.c | (((HOSTDATA(shpnt)->syncrate[i]&0x70)>>4)+2)*50, |
i | 2874 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->syncrate[i]&0x0f); |
i | 2927 | drivers/scsi/aha152x.c | for (i=0; i<8; i++) { |
i | 2928 | drivers/scsi/aha152x.c | if (scd->vendor[i] >= 0x20) |
i | 2929 | drivers/scsi/aha152x.c | SPRINTF("%c", scd->vendor[i]); |
i | 2934 | drivers/scsi/aha152x.c | for (i = 0; i < 16; i++) { |
i | 2935 | drivers/scsi/aha152x.c | if (scd->model[i] >= 0x20) |
i | 2936 | drivers/scsi/aha152x.c | SPRINTF("%c", scd->model[i]); |
i | 2941 | drivers/scsi/aha152x.c | for (i = 0; i < 4; i++) { |
i | 2942 | drivers/scsi/aha152x.c | if (scd->rev[i] >= 0x20) |
i | 2943 | drivers/scsi/aha152x.c | SPRINTF("%c", scd->rev[i]); |
i | 289 | drivers/scsi/aha1542.c | int i; |
i | 308 | drivers/scsi/aha1542.c | i = jiffies + 2; |
i | 309 | drivers/scsi/aha1542.c | while (i>jiffies); /* Wait a little bit for things to settle down. */ |
i | 486 | drivers/scsi/aha1542.c | int i; |
i | 490 | drivers/scsi/aha1542.c | for (i = 0; i < 12; i++) |
i | 491 | drivers/scsi/aha1542.c | printk("%02x ", ccb[mbo].cdb[ccb[mbo].cdblen+i]); |
i | 524 | drivers/scsi/aha1542.c | DEB(int i); |
i | 546 | drivers/scsi/aha1542.c | i = xscsi2int(cmd+2); |
i | 548 | drivers/scsi/aha1542.c | i = scsi2int(cmd+2); |
i | 550 | drivers/scsi/aha1542.c | i = -1; |
i | 552 | drivers/scsi/aha1542.c | printk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 554 | drivers/scsi/aha1542.c | printk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 557 | drivers/scsi/aha1542.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
i | 610 | drivers/scsi/aha1542.c | int i; |
i | 616 | drivers/scsi/aha1542.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 617 | drivers/scsi/aha1542.c | if(sgpnt[i].length == 0 || SCpnt->use_sg > 16 || |
i | 618 | drivers/scsi/aha1542.c | (((int)sgpnt[i].address) & 1) || (sgpnt[i].length & 1)){ |
i | 620 | drivers/scsi/aha1542.c | printk("Bad segment list supplied to aha1542.c (%d, %d)\n",SCpnt->use_sg,i); |
i | 621 | drivers/scsi/aha1542.c | for(i=0;i<SCpnt->use_sg;i++){ |
i | 622 | drivers/scsi/aha1542.c | printk("%d: %x %x %d\n",i,(unsigned int) sgpnt[i].address, (unsigned int) sgpnt[i].alt_address, |
i | 623 | drivers/scsi/aha1542.c | sgpnt[i].length); |
i | 626 | drivers/scsi/aha1542.c | ptr = (unsigned char *) &cptr[i]; |
i | 627 | drivers/scsi/aha1542.c | for(i=0;i<18;i++) printk("%02x ", ptr[i]); |
i | 630 | drivers/scsi/aha1542.c | any2scsi(cptr[i].dataptr, sgpnt[i].address); |
i | 631 | drivers/scsi/aha1542.c | if(((unsigned int) sgpnt[i].address) & 0xff000000) goto baddma; |
i | 632 | drivers/scsi/aha1542.c | any2scsi(cptr[i].datalen, sgpnt[i].length); |
i | 639 | drivers/scsi/aha1542.c | for(i=0;i<18;i++) printk("%02x ", ptr[i]); |
i | 654 | drivers/scsi/aha1542.c | { int i; |
i | 656 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(ccb[mbo])-10; i++) |
i | 657 | drivers/scsi/aha1542.c | printk("%02x ", ((unchar *)&ccb[mbo])[i]); |
i | 696 | drivers/scsi/aha1542.c | int i; |
i | 705 | drivers/scsi/aha1542.c | for(i=0; i<AHA1542_MAILBOXES; i++){ |
i | 706 | drivers/scsi/aha1542.c | mb[i].status = mb[AHA1542_MAILBOXES+i].status = 0; |
i | 707 | drivers/scsi/aha1542.c | any2scsi(mb[i].ccbptr, &ccb[i]); |
i | 724 | drivers/scsi/aha1542.c | int i; |
i | 725 | drivers/scsi/aha1542.c | i = inb(STATUS(base_io)); |
i | 726 | drivers/scsi/aha1542.c | if (i & DF) { |
i | 727 | drivers/scsi/aha1542.c | i = inb(DATA(base_io)); |
i | 825 | drivers/scsi/aha1542.c | int i; |
i | 826 | drivers/scsi/aha1542.c | i = inb(STATUS(base_io)); |
i | 827 | drivers/scsi/aha1542.c | if (i & DF) { |
i | 828 | drivers/scsi/aha1542.c | i = inb(DATA(base_io)); |
i | 1040 | drivers/scsi/aha1542.c | int i; |
i | 1042 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87; |
i | 1043 | drivers/scsi/aha1542.c | for (i = 0; i < 2; ++i) |
i | 1044 | drivers/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
i | 1046 | drivers/scsi/aha1542.c | i, xscsi2int(buf+4), xscsi2int(buf)); |
i | 1052 | drivers/scsi/aha1542.c | for (i = 0; i < 4; ++i) |
i | 1059 | drivers/scsi/aha1542.c | xany2scsi(cmd+2, i); |
i | 1081 | drivers/scsi/aha1542.c | int i; |
i | 1087 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1088 | drivers/scsi/aha1542.c | if(HOSTDATA(shost)->SCint[i] && |
i | 1089 | drivers/scsi/aha1542.c | !(HOSTDATA(shost)->SCint[i]->device->soft_reset)) |
i | 1092 | drivers/scsi/aha1542.c | HOSTDATA(shost)->mb[i].status = 1; /* Indicate ready to restart... */ |
i | 1115 | drivers/scsi/aha1542.c | int mbi, mbo, i; |
i | 1144 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1145 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i]) |
i | 1147 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt) { |
i | 1150 | drivers/scsi/aha1542.c | if (HOSTDATA(SCpnt->host)->mb[i].status) { |
i | 1185 | drivers/scsi/aha1542.c | int i; |
i | 1224 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1225 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] != NULL) |
i | 1228 | drivers/scsi/aha1542.c | SCtmp = HOSTDATA(SCpnt->host)->SCint[i]; |
i | 1234 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[i] = NULL; |
i | 1235 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->mb[i].status = 0; |
i | 1254 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1255 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt) |
i | 1257 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->ccb[i].op = 0x81; /* BUS DEVICE RESET */ |
i | 1270 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1271 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] && |
i | 1272 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[i]->target == SCpnt->target) |
i | 1275 | drivers/scsi/aha1542.c | SCtmp = HOSTDATA(SCpnt->host)->SCint[i]; |
i | 1281 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[i] = NULL; |
i | 1282 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->mb[i].status = 0; |
i | 261 | drivers/scsi/aha1740.c | DEB(int i); |
i | 277 | drivers/scsi/aha1740.c | i = xscsi2int(cmd+2); |
i | 279 | drivers/scsi/aha1740.c | i = scsi2int(cmd+2); |
i | 281 | drivers/scsi/aha1740.c | i = -1; |
i | 282 | drivers/scsi/aha1740.c | printk("aha1740_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 284 | drivers/scsi/aha1740.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
i | 328 | drivers/scsi/aha1740.c | int i; |
i | 337 | drivers/scsi/aha1740.c | for(i=0; i<SCpnt->use_sg; i++) |
i | 339 | drivers/scsi/aha1740.c | cptr[i].dataptr = (long) sgpnt[i].address; |
i | 340 | drivers/scsi/aha1740.c | cptr[i].datalen = sgpnt[i].length; |
i | 347 | drivers/scsi/aha1740.c | for(i=0;i<24;i++) printk("%02x ", ptr[i]); |
i | 367 | drivers/scsi/aha1740.c | int i; |
i | 369 | drivers/scsi/aha1740.c | for (i = 0; i < sizeof(ecb[ecbno])-10; i++) |
i | 370 | drivers/scsi/aha1740.c | printk("%02x ", ((unchar *)&ecb[ecbno])[i]); |
i | 841 | drivers/scsi/aic7xxx.c | int i, n; |
i | 855 | drivers/scsi/aic7xxx.c | for (i = 0; options[i].name; i++) |
i | 857 | drivers/scsi/aic7xxx.c | n = strlen(options[i].name); |
i | 858 | drivers/scsi/aic7xxx.c | if (!strncmp(options[i].name, p, n)) |
i | 862 | drivers/scsi/aic7xxx.c | *(options[i].flag) = simple_strtoul(p + n + 1, NULL, 0); |
i | 866 | drivers/scsi/aic7xxx.c | *(options[i].flag) = !0; |
i | 939 | drivers/scsi/aic7xxx.c | unsigned long i; |
i | 941 | drivers/scsi/aic7xxx.c | i = jiffies + (seconds * HZ); /* compute time to stop */ |
i | 943 | drivers/scsi/aic7xxx.c | while (jiffies < i) |
i | 1035 | drivers/scsi/aic7xxx.c | int i, segments; |
i | 1044 | drivers/scsi/aic7xxx.c | for (i = length = 0; (i < cmd->use_sg) && (i < segments); i++) |
i | 1046 | drivers/scsi/aic7xxx.c | length += sg[i].length; |
i | 1069 | drivers/scsi/aic7xxx.c | int i; |
i | 1071 | drivers/scsi/aic7xxx.c | for (i = 0; i < num_aic7xxx_syncrates; i++) |
i | 1073 | drivers/scsi/aic7xxx.c | if ((aic7xxx_syncrates[i].period - period) >= 0) |
i | 1081 | drivers/scsi/aic7xxx.c | if (!(aic7xxx_syncrates[i].rate & ULTRA_SXFR)) |
i | 1085 | drivers/scsi/aic7xxx.c | "above.\n", target, channel, aic7xxx_syncrates[i].english); |
i | 1095 | drivers/scsi/aic7xxx.c | if (aic7xxx_syncrates[i].rate & ULTRA_SXFR) |
i | 1105 | drivers/scsi/aic7xxx.c | *scsirate = (aic7xxx_syncrates[i].rate) | (offset & 0x0F); |
i | 1108 | drivers/scsi/aic7xxx.c | target, channel, aic7xxx_syncrates[i].english, offset); |
i | 1441 | drivers/scsi/aic7xxx.c | int i = 0; |
i | 1460 | drivers/scsi/aic7xxx.c | for (i = 0; i < (queued - found); i++) |
i | 1462 | drivers/scsi/aic7xxx.c | saved_queue[i] = inb(QINFIFO + base); |
i | 1463 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[saved_queue[i]]); |
i | 1474 | drivers/scsi/aic7xxx.c | i--; |
i | 1481 | drivers/scsi/aic7xxx.c | for (queued = 0; queued < i; queued++) |
i | 1522 | drivers/scsi/aic7xxx.c | for (i = 0; i < p->numscb; i++) |
i | 1524 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[i]); |
i | 1762 | drivers/scsi/aic7xxx.c | int i; |
i | 1766 | drivers/scsi/aic7xxx.c | for (i = 0; i < NUMBER(hard_error); i++) |
i | 1768 | drivers/scsi/aic7xxx.c | if (errno & hard_error[i].errno) |
i | 1770 | drivers/scsi/aic7xxx.c | printk(" %s\n", hard_error[i].errmesg); |
i | 2583 | drivers/scsi/aic7xxx.c | int i; |
i | 2601 | drivers/scsi/aic7xxx.c | for (i = 0; i < sizeof(buf); i++) |
i | 2603 | drivers/scsi/aic7xxx.c | outb(0x80 + i, base); |
i | 2604 | drivers/scsi/aic7xxx.c | buf[i] = inb(base + i); |
i | 2607 | drivers/scsi/aic7xxx.c | for (i = 0; i < NUMBER(AIC7xxx); i++) |
i | 2612 | drivers/scsi/aic7xxx.c | if (!memcmp(buf, AIC7xxx[i].signature, AIC7xxx[i].n)) |
i | 2616 | drivers/scsi/aic7xxx.c | return (AIC7xxx[i].type); |
i | 2651 | drivers/scsi/aic7xxx.c | int i = 0, k = 0; |
i | 2686 | drivers/scsi/aic7xxx.c | for (i = 0; i < seeprom_read.len; i++) |
i | 2688 | drivers/scsi/aic7xxx.c | temp = CS_2840 | seeprom_read.bits[i]; |
i | 2698 | drivers/scsi/aic7xxx.c | for (i = 5; i >= 0; i--) |
i | 2701 | drivers/scsi/aic7xxx.c | temp = (temp >> i) & 1; /* Mask out all but lower bit. */ |
i | 2716 | drivers/scsi/aic7xxx.c | for (i = 0; i <= 16; i++) |
i | 2824 | drivers/scsi/aic7xxx.c | int i = 0, k; |
i | 2878 | drivers/scsi/aic7xxx.c | for (i = 0; i < seeprom_read.len; i++) |
i | 2880 | drivers/scsi/aic7xxx.c | temp = SEEMS | SEECS | (seeprom_read.bits[i] << 1); |
i | 2890 | drivers/scsi/aic7xxx.c | for (i = 5; i >= 0; i--) |
i | 2893 | drivers/scsi/aic7xxx.c | temp = (temp >> i) & 1; /* Mask out all but lower bit. */ |
i | 2908 | drivers/scsi/aic7xxx.c | for (i = 0; i <= 16; i++) |
i | 2981 | drivers/scsi/aic7xxx.c | int maxscb = 0, i; |
i | 3052 | drivers/scsi/aic7xxx.c | i = 0; |
i | 3053 | drivers/scsi/aic7xxx.c | while (i < AIC7XXX_MAXSCB) |
i | 3055 | drivers/scsi/aic7xxx.c | outb(i, SCBPTR + base); |
i | 3062 | drivers/scsi/aic7xxx.c | i++; |
i | 3064 | drivers/scsi/aic7xxx.c | maxscb = i; |
i | 3087 | drivers/scsi/aic7xxx.c | int i; |
i | 3424 | drivers/scsi/aic7xxx.c | for (i = 0; i < AIC7XXX_MAXSCB; i++) |
i | 3426 | drivers/scsi/aic7xxx.c | p->scb_array[i].state = SCB_FREE; |
i | 3427 | drivers/scsi/aic7xxx.c | p->scb_array[i].next = NULL; |
i | 3428 | drivers/scsi/aic7xxx.c | p->scb_array[i].cmd = NULL; |
i | 3589 | drivers/scsi/aic7xxx.c | for (i = 0; i < max_targets; i++) |
i | 3593 | drivers/scsi/aic7xxx.c | target_settings = ((sc.device_flags[i] & CFXFER) << 4); |
i | 3594 | drivers/scsi/aic7xxx.c | if (sc.device_flags[i] & CFSYNCH) |
i | 3596 | drivers/scsi/aic7xxx.c | p->needsdtr_copy |= (0x01 << i); |
i | 3598 | drivers/scsi/aic7xxx.c | if (sc.device_flags[i] & CFWIDEB) |
i | 3600 | drivers/scsi/aic7xxx.c | p->needwdtr_copy |= (0x01 << i); |
i | 3602 | drivers/scsi/aic7xxx.c | if (sc.device_flags[i] & CFDISC) |
i | 3604 | drivers/scsi/aic7xxx.c | p->discenable |= (0x01 << i); |
i | 3612 | drivers/scsi/aic7xxx.c | p->needsdtr_copy |= (0x01 << i); |
i | 3613 | drivers/scsi/aic7xxx.c | p->needwdtr_copy |= (0x01 << i); |
i | 3617 | drivers/scsi/aic7xxx.c | target_settings = inb(TARG_SCRATCH + base + i); |
i | 3620 | drivers/scsi/aic7xxx.c | p->needsdtr_copy |= (0x01 << i); |
i | 3628 | drivers/scsi/aic7xxx.c | p->needwdtr_copy |= (0x01 << i); |
i | 3633 | drivers/scsi/aic7xxx.c | outb(target_settings, (TARG_SCRATCH + base + i)); |
i | 3656 | drivers/scsi/aic7xxx.c | for (i = 0; i < config->maxscb; i++) |
i | 3658 | drivers/scsi/aic7xxx.c | outb(i, SCBPTR + base); |
i | 3671 | drivers/scsi/aic7xxx.c | i = p->maxscb; |
i | 3672 | drivers/scsi/aic7xxx.c | outb(-i & 0xff, COMP_SCBCOUNT + base); |
i | 3749 | drivers/scsi/aic7xxx.c | int i; |
i | 3762 | drivers/scsi/aic7xxx.c | for (i = 0; i <= MAXIRQ; i++) |
i | 3764 | drivers/scsi/aic7xxx.c | aic7xxx_boards[i] = NULL; |
i | 3855 | drivers/scsi/aic7xxx.c | for (i = 0; i < NUMBER(aic7xxx_pci_devices); i++) |
i | 3860 | drivers/scsi/aic7xxx.c | if (pcibios_find_device(aic7xxx_pci_devices[i].vendor_id, |
i | 3861 | drivers/scsi/aic7xxx.c | aic7xxx_pci_devices[i].device_id, |
i | 3868 | drivers/scsi/aic7xxx.c | config.type = aic7xxx_pci_devices[i].card_type; |
i | 3869 | drivers/scsi/aic7xxx.c | config.chip_type = aic7xxx_pci_devices[i].chip_type; |
i | 166 | drivers/scsi/aic7xxx_asm.c | int i; |
i | 184 | drivers/scsi/aic7xxx_asm.c | for (i = 0; i < p->npatch; i++) { |
i | 185 | drivers/scsi/aic7xxx_asm.c | M[p->patch[i]][0] &= ~1; |
i | 186 | drivers/scsi/aic7xxx_asm.c | M[p->patch[i]][0] |= ((p->value >> 8) & 1); |
i | 187 | drivers/scsi/aic7xxx_asm.c | M[p->patch[i]][1] = p->value & 0xff; |
i | 190 | drivers/scsi/aic7xxx_asm.c | fprintf(stderr, " 0x%x", p->patch[i]); |
i | 206 | drivers/scsi/aic7xxx_asm.c | int i; |
i | 208 | drivers/scsi/aic7xxx_asm.c | for (i = 0; i < LC; i++) |
i | 210 | drivers/scsi/aic7xxx_asm.c | M[i][3], |
i | 211 | drivers/scsi/aic7xxx_asm.c | M[i][2], |
i | 212 | drivers/scsi/aic7xxx_asm.c | M[i][1], |
i | 213 | drivers/scsi/aic7xxx_asm.c | M[i][0]); |
i | 220 | drivers/scsi/aic7xxx_asm.c | int i; |
i | 225 | drivers/scsi/aic7xxx_asm.c | i = 0; |
i | 243 | drivers/scsi/aic7xxx_asm.c | if (i < MAXTOKEN-1) |
i | 244 | drivers/scsi/aic7xxx_asm.c | a[i++] = p; |
i | 252 | drivers/scsi/aic7xxx_asm.c | else if (i < MAXTOKEN-1) { |
i | 253 | drivers/scsi/aic7xxx_asm.c | a[i++] = quote; |
i | 261 | drivers/scsi/aic7xxx_asm.c | if (i) { |
i | 262 | drivers/scsi/aic7xxx_asm.c | *n = i; |
i | 343 | drivers/scsi/aic7xxx_asm.c | int i; |
i | 363 | drivers/scsi/aic7xxx_asm.c | for (i = 0; i < sizeof(jmptab)/sizeof(jmptab[0]); i++) |
i | 364 | drivers/scsi/aic7xxx_asm.c | if (jmptab[i].what == want && |
i | 365 | drivers/scsi/aic7xxx_asm.c | !strcmp(jmptab[i].name, a[spec])) |
i | 367 | drivers/scsi/aic7xxx_asm.c | return(jmptab[i].value); |
i | 474 | drivers/scsi/aic7xxx_asm.c | int i; |
i | 487 | drivers/scsi/aic7xxx_asm.c | for (i = 0; instr[i].name; i++) { |
i | 493 | drivers/scsi/aic7xxx_asm.c | if (!strcmp(instr[i].name, *a) && instr[i].n == n) |
i | 496 | drivers/scsi/aic7xxx_asm.c | if (!instr[i].name) |
i | 499 | drivers/scsi/aic7xxx_asm.c | I_op = eval_operand(a, instr[i].op); |
i | 500 | drivers/scsi/aic7xxx_asm.c | I_src = eval_sdi(a, instr[i].src); |
i | 501 | drivers/scsi/aic7xxx_asm.c | I_imm = eval_sdi(a, instr[i].imm); |
i | 502 | drivers/scsi/aic7xxx_asm.c | I_dest = eval_sdi(a, instr[i].dest); |
i | 503 | drivers/scsi/aic7xxx_asm.c | I_addr = eval_addr(a, instr[i].addr); |
i | 508 | drivers/scsi/aic7xxx_asm.c | switch (instr[i].fmt) { |
i | 678 | drivers/scsi/aic7xxx_asm.c | int i, arg_cnt, found; |
i | 684 | drivers/scsi/aic7xxx_asm.c | for (i = 0; (!found && (i < NUMBER(cpp))); i++) { |
i | 687 | drivers/scsi/aic7xxx_asm.c | buf = strdup(cpp[i]); |
i | 80 | drivers/scsi/aic7xxx_proc.c | int i; |
i | 88 | drivers/scsi/aic7xxx_proc.c | for (i = 0; i < NUMBER(aic7xxx_boards); i++) |
i | 90 | drivers/scsi/aic7xxx_proc.c | if ((HBAptr = aic7xxx_boards[i]) != NULL) |
i | 114 | drivers/scsi/constants.c | int i,s; |
i | 116 | drivers/scsi/constants.c | for ( i = 1, s = COMMAND_SIZE(command[0]); i < s; ++i) |
i | 117 | drivers/scsi/constants.c | printk("%02x ", command[i]); |
i | 378 | drivers/scsi/constants.c | int i, s; |
i | 424 | drivers/scsi/constants.c | for(i=0; additional[i].text; i++) |
i | 425 | drivers/scsi/constants.c | if(additional[i].code1 == sense_buffer[12] && |
i | 426 | drivers/scsi/constants.c | additional[i].code2 == sense_buffer[13]) |
i | 427 | drivers/scsi/constants.c | printk("Additional sense indicates %s\n", additional[i].text); |
i | 429 | drivers/scsi/constants.c | for(i=0; additional2[i].text; i++) |
i | 430 | drivers/scsi/constants.c | if(additional2[i].code1 == sense_buffer[12] && |
i | 431 | drivers/scsi/constants.c | additional2[i].code2_min >= sense_buffer[13] && |
i | 432 | drivers/scsi/constants.c | additional2[i].code2_max <= sense_buffer[13]) { |
i | 434 | 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 | 581 | drivers/scsi/constants.c | int i; |
i | 584 | drivers/scsi/constants.c | for(i=0;hostbyte_table[i];i++) ; |
i | 585 | drivers/scsi/constants.c | maxcode=i-1; |
i | 612 | drivers/scsi/constants.c | int i,dr=driver_byte(scsiresult)&DRIVER_MASK, |
i | 616 | drivers/scsi/constants.c | for(i=0;driverbyte_table[i];i++) ; |
i | 617 | drivers/scsi/constants.c | driver_max=i; |
i | 618 | drivers/scsi/constants.c | for(i=0;driversuggest_table[i];i++) ; |
i | 619 | drivers/scsi/constants.c | suggest_max=i; |
i | 606 | drivers/scsi/eata.c | unsigned int i, j, k, flags; |
i | 625 | drivers/scsi/eata.c | i = HD(j)->last_cp_used + 1; |
i | 627 | drivers/scsi/eata.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
i | 629 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) i = 0; |
i | 631 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) { |
i | 632 | drivers/scsi/eata.c | HD(j)->last_cp_used = i; |
i | 654 | drivers/scsi/eata.c | cpp = &HD(j)->cp[i]; |
i | 659 | drivers/scsi/eata.c | spp = &HD(j)->sp[i]; |
i | 667 | drivers/scsi/eata.c | cpp->index = i; |
i | 671 | drivers/scsi/eata.c | BN(j), i, SCpnt->target, SCpnt->pid); |
i | 711 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = IN_USE; |
i | 717 | drivers/scsi/eata.c | unsigned int i, j, flags; |
i | 730 | drivers/scsi/eata.c | i = *(unsigned int *)SCarg->host_scribble; |
i | 732 | drivers/scsi/eata.c | BN(j), i, SCarg->target, SCarg->pid); |
i | 734 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) |
i | 743 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) { |
i | 744 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is free.\n", BN(j), i); |
i | 749 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IN_USE) { |
i | 750 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is in use.\n", BN(j), i); |
i | 752 | drivers/scsi/eata.c | if (SCarg != HD(j)->cp[i].SCpnt) |
i | 754 | drivers/scsi/eata.c | BN(j), i, SCarg, HD(j)->cp[i].SCpnt); |
i | 760 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IN_RESET) { |
i | 761 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is in reset.\n", BN(j), i); |
i | 766 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 767 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is locked.\n", BN(j), i); |
i | 772 | drivers/scsi/eata.c | panic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i); |
i | 776 | drivers/scsi/eata.c | unsigned int i, j, flags, time, k, limit = 0; |
i | 805 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 807 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) continue; |
i | 809 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 810 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
i | 811 | drivers/scsi/eata.c | printk("%s: reset, locked mbox %d forced free.\n", BN(j), i); |
i | 815 | drivers/scsi/eata.c | SCpnt = HD(j)->cp[i].SCpnt; |
i | 816 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = IN_RESET; |
i | 818 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid); |
i | 821 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, SCpnt == NULL.\n", BN(j), i); |
i | 824 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, garbled SCpnt.\n", BN(j), i); |
i | 826 | drivers/scsi/eata.c | if (*(unsigned int *)SCpnt->host_scribble != i) |
i | 827 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, index mismatch.\n", BN(j), i); |
i | 830 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, SCpnt->scsi_done == NULL.\n", BN(j), i); |
i | 854 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 857 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] != IN_RESET) continue; |
i | 859 | drivers/scsi/eata.c | SCpnt = HD(j)->cp[i].SCpnt; |
i | 864 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = LOCKED; |
i | 867 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid); |
i | 889 | drivers/scsi/eata.c | unsigned int i, j, k, flags, status, tstatus, loops, total_loops = 0; |
i | 924 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 925 | drivers/scsi/eata.c | spp = &HD(j)->sp[i]; |
i | 932 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IGNORE) { |
i | 933 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
i | 936 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == LOCKED) { |
i | 937 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
i | 939 | drivers/scsi/eata.c | BN(j), i, HD(j)->iocount); |
i | 942 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == FREE) { |
i | 944 | drivers/scsi/eata.c | BN(j), i, HD(j)->iocount); |
i | 947 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == IN_RESET) |
i | 948 | drivers/scsi/eata.c | printk("%s: ihdlr, mbox %d is in reset.\n", BN(j), i); |
i | 949 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] != IN_USE) |
i | 950 | drivers/scsi/eata.c | panic("%s: ihdlr, mbox %d, invalid cp_stat.\n", BN(j), i); |
i | 952 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
i | 953 | drivers/scsi/eata.c | cpp = &HD(j)->cp[i]; |
i | 957 | drivers/scsi/eata.c | panic("%s: ihdlr, mbox %d, SCpnt == NULL.\n", BN(j), i); |
i | 961 | drivers/scsi/eata.c | BN(j), i, SCpnt, cpp->SCpnt); |
i | 965 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid, SCpnt); |
i | 967 | drivers/scsi/eata.c | if (*(unsigned int *)SCpnt->host_scribble != i) |
i | 969 | drivers/scsi/eata.c | " irq %d.\n", BN(j), i, SCpnt->pid, |
i | 1059 | drivers/scsi/eata.c | BN(j), i, spp->adapter_status, spp->target_status, |
i | 131 | drivers/scsi/eata_dma.c | uint i; |
i | 137 | drivers/scsi/eata_dma.c | for (i = 0; i < sh->can_queue; i++){ /* Free all SG arrays */ |
i | 138 | drivers/scsi/eata_dma.c | if(SD(sh)->ccb[i].sg_list != NULL) |
i | 139 | drivers/scsi/eata_dma.c | scsi_init_free((void *) SD(sh)->ccb[i].sg_list, |
i | 155 | drivers/scsi/eata_dma.c | uint i, result = 0; |
i | 271 | drivers/scsi/eata_dma.c | for (i = 0; i < MAXTARGET; i++) |
i | 272 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[cp->cp_channel][i] = RESET; |
i | 348 | drivers/scsi/eata_dma.c | unsigned int i, x, y; |
i | 482 | drivers/scsi/eata_dma.c | for(i = 0; i < cmd->use_sg; i++, sl++){ |
i | 483 | drivers/scsi/eata_dma.c | cp->sg_list[i].data = htonl(virt_to_bus(sl->address)); |
i | 484 | drivers/scsi/eata_dma.c | cp->sg_list[i].len = htonl((u32) sl->length); |
i | 696 | drivers/scsi/eata_dma.c | ulong i; |
i | 736 | drivers/scsi/eata_dma.c | i = jiffies + (3 * HZ); |
i | 737 | drivers/scsi/eata_dma.c | while (fake_int_happened == FALSE && jiffies <= i) |
i | 748 | drivers/scsi/eata_dma.c | if ((fake_int_result & HA_SERROR) || jiffies > i){ |
i | 752 | drivers/scsi/eata_dma.c | i = jiffies; |
i | 753 | drivers/scsi/eata_dma.c | while (jiffies < (i + (3 * HZ)) && limit++ < 10000000) |
i | 1111 | drivers/scsi/eata_dma.c | int i; |
i | 1117 | drivers/scsi/eata_dma.c | for (i = 0; i < MAXEISA; i++) { |
i | 1118 | drivers/scsi/eata_dma.c | if (EISAbases[i] == TRUE) { /* Still a possibility ? */ |
i | 1120 | drivers/scsi/eata_dma.c | base = 0x1c88 + (i * 0x1000); |
i | 1144 | drivers/scsi/eata_dma.c | EISAbases[i] = 0; |
i | 1155 | drivers/scsi/eata_dma.c | int i; |
i | 1157 | drivers/scsi/eata_dma.c | for (i = 0; i < MAXISA; i++) { |
i | 1158 | drivers/scsi/eata_dma.c | if (ISAbases[i]) { |
i | 1159 | drivers/scsi/eata_dma.c | if (get_conf_PIO(ISAbases[i],buf) == TRUE){ |
i | 1161 | drivers/scsi/eata_dma.c | register_HBA(ISAbases[i], buf, tpnt, IS_ISA); |
i | 1163 | drivers/scsi/eata_dma.c | if (check_blink_state(ISAbases[i])) |
i | 1167 | drivers/scsi/eata_dma.c | ISAbases[i] = 0; |
i | 1185 | drivers/scsi/eata_dma.c | u32 error, i, x; |
i | 1189 | drivers/scsi/eata_dma.c | for (i = 0; i <= MAXPCI; ++i, ++pci_index) { |
i | 1286 | drivers/scsi/eata_dma.c | int i; |
i | 1307 | drivers/scsi/eata_dma.c | for (i = 0; i <= MAXIRQ; i++) { /* Now that we know what we have, we */ |
i | 1308 | drivers/scsi/eata_dma.c | if (reg_IRQ[i]){ /* exchange the interrupt handler which */ |
i | 1309 | drivers/scsi/eata_dma.c | free_irq(i, NULL); /* we used for probing with the real one */ |
i | 1310 | drivers/scsi/eata_dma.c | request_irq(i, (void *)(eata_int_handler), SA_INTERRUPT, "eata_dma", NULL); |
i | 1323 | drivers/scsi/eata_dma.c | for (i = 1; i <= registered_HBAs; i++) { |
i | 89 | drivers/scsi/eata_dma_proc.c | int i, x; |
i | 96 | drivers/scsi/eata_dma_proc.c | for (i = 1; i <= registered_HBAs; i++) { |
i | 96 | drivers/scsi/eata_generic.h | #define DELAY(x) { __u32 i; i = jiffies + (x * HZ); while (jiffies < i) barrier(); } |
i | 97 | drivers/scsi/eata_generic.h | #define DEL2(x) { __u32 i; for (i = 0; i < 0xffff * x; i++); } |
i | 821 | drivers/scsi/eata_pio.c | int i; |
i | 823 | drivers/scsi/eata_pio.c | for (i = 0; i < MAXISA; i++) { |
i | 824 | drivers/scsi/eata_pio.c | if (ISAbases[i]) { |
i | 825 | drivers/scsi/eata_pio.c | if (get_pio_conf_PIO(ISAbases[i], buf) == TRUE){ |
i | 826 | drivers/scsi/eata_pio.c | register_pio_HBA(ISAbases[i], buf, tpnt); |
i | 828 | drivers/scsi/eata_pio.c | ISAbases[i] = 0; |
i | 837 | drivers/scsi/eata_pio.c | int i; |
i | 843 | drivers/scsi/eata_pio.c | for (i = 0; i < MAXEISA; i++) { |
i | 844 | drivers/scsi/eata_pio.c | if (EISAbases[i] == TRUE) { /* Still a possibility ? */ |
i | 846 | drivers/scsi/eata_pio.c | base = 0x1c88 + (i * 0x1000); |
i | 866 | drivers/scsi/eata_pio.c | EISAbases[i] = 0; |
i | 887 | drivers/scsi/eata_pio.c | u32 error, i, x; |
i | 890 | drivers/scsi/eata_pio.c | for (i = 0; i <= MAXPCI; ++i, ++pci_index) { |
i | 977 | drivers/scsi/eata_pio.c | int i; |
i | 990 | drivers/scsi/eata_pio.c | for (i = 0; i <= MAXIRQ; i++) |
i | 991 | drivers/scsi/eata_pio.c | if (reg_IRQ[i]) |
i | 992 | drivers/scsi/eata_pio.c | request_irq(i, eata_pio_int_handler, SA_INTERRUPT, "EATA-PIO", NULL); |
i | 1006 | drivers/scsi/eata_pio.c | for (i = 1; i <= registered_HBAs; i++) { |
i | 47 | drivers/scsi/eata_pio_proc.c | int i; |
i | 53 | drivers/scsi/eata_pio_proc.c | for (i = 1; i <= registered_HBAs; i++) { |
i | 564 | drivers/scsi/fdomain.c | int i; |
i | 567 | drivers/scsi/fdomain.c | for (i = 0; i < 255; i++) { |
i | 568 | drivers/scsi/fdomain.c | outb( i, port_base + Write_Loopback ); |
i | 570 | drivers/scsi/fdomain.c | if (i != result) |
i | 612 | drivers/scsi/fdomain.c | int i; |
i | 645 | drivers/scsi/fdomain.c | for (flag = 0, i = 0; !flag && i < PORT_COUNT; i++) { |
i | 646 | drivers/scsi/fdomain.c | if (base == ports[i]) |
i | 674 | drivers/scsi/fdomain.c | for (i = 0; i < PORT_COUNT; i++) { |
i | 675 | drivers/scsi/fdomain.c | base = ports[i]; |
i | 698 | drivers/scsi/fdomain.c | int i; |
i | 711 | drivers/scsi/fdomain.c | for (i = 0xfff8; i > 0xe000; i -= 8) { |
i | 712 | drivers/scsi/fdomain.c | if (check_region( i, 0x10 )) { |
i | 714 | drivers/scsi/fdomain.c | printk( " (%x inuse)," , i ); |
i | 718 | drivers/scsi/fdomain.c | if ((flag = fdomain_is_valid_port( i ))) break; |
i | 723 | drivers/scsi/fdomain.c | *irq = fdomain_get_irq( i ); |
i | 724 | drivers/scsi/fdomain.c | *iobase = i; |
i | 863 | drivers/scsi/fdomain.c | int i, j; |
i | 895 | drivers/scsi/fdomain.c | for (i = 0; !bios_base && i < ADDRESS_COUNT; i++) { |
i | 897 | drivers/scsi/fdomain.c | printk( " %x(%x),", (unsigned)addresses[i], (unsigned)bios_base ); |
i | 900 | drivers/scsi/fdomain.c | if (!memcmp( ((char *)addresses[i] + signatures[j].sig_offset), |
i | 906 | drivers/scsi/fdomain.c | bios_base = addresses[i]; |
i | 1034 | drivers/scsi/fdomain.c | for (i = 0; i < 8; i++) { |
i | 1035 | drivers/scsi/fdomain.c | SCinit.target = i; |
i | 1036 | drivers/scsi/fdomain.c | if (i == tpnt->this_id) /* Skip host adapter */ |
i | 1044 | drivers/scsi/fdomain.c | printk( " SCSI ID %d: ", i ); |
i | 1882 | drivers/scsi/fdomain.c | } *i; |
i | 1934 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f33 + drive * 25 ); |
i | 1937 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f36 + drive * 15 ); |
i | 1940 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f34 + drive * 15 ); |
i | 1943 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f31 + drive * 25 ); |
i | 1946 | drivers/scsi/fdomain.c | info_array[0] = i->heads; |
i | 1947 | drivers/scsi/fdomain.c | info_array[1] = i->sectors; |
i | 1948 | drivers/scsi/fdomain.c | info_array[2] = i->cylinders; |
i | 1952 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f71 + drive * 10 ); |
i | 1953 | drivers/scsi/fdomain.c | info_array[0] = i->heads + 1; |
i | 1954 | drivers/scsi/fdomain.c | info_array[1] = i->sectors; |
i | 1955 | drivers/scsi/fdomain.c | info_array[2] = i->cylinders; |
i | 295 | drivers/scsi/g_NCR5380.c | int i; |
i | 341 | drivers/scsi/g_NCR5380.c | for (i=0; i<128; i++) |
i | 342 | drivers/scsi/g_NCR5380.c | dst[start+i] = NCR5380_read(C400_HOST_BUFFER); |
i | 361 | drivers/scsi/g_NCR5380.c | for (i=0; i<128; i++) |
i | 362 | drivers/scsi/g_NCR5380.c | dst[start+i] = NCR5380_read(C400_HOST_BUFFER); |
i | 403 | drivers/scsi/g_NCR5380.c | int i; |
i | 443 | drivers/scsi/g_NCR5380.c | for (i=0; i<128; i++) |
i | 444 | drivers/scsi/g_NCR5380.c | NCR5380_write(C400_HOST_BUFFER, src[start+i]); |
i | 463 | drivers/scsi/g_NCR5380.c | for (i=0; i<128; i++) |
i | 464 | drivers/scsi/g_NCR5380.c | NCR5380_write(C400_HOST_BUFFER, src[start+i]); |
i | 493 | drivers/scsi/g_NCR5380.c | while (!(i = NCR5380_read(C400_CONTROL_STATUS_REG) & CSR_GATED_53C80_IRQ)) |
i | 500 | drivers/scsi/g_NCR5380.c | if (i) { |
i | 504 | drivers/scsi/g_NCR5380.c | if (!((i=NCR5380_read(BUS_AND_STATUS_REG)) & BASR_END_DMA_TRANSFER)) |
i | 505 | drivers/scsi/g_NCR5380.c | printk("53C400w: No END OF DMA bit - WHOOPS! BASR=%0x\n",i); |
i | 546 | drivers/scsi/g_NCR5380.c | int i,s,start=len; |
i | 548 | drivers/scsi/g_NCR5380.c | for ( i = 1, s = COMMAND_SIZE(command[0]); i < s; ++i) |
i | 549 | drivers/scsi/g_NCR5380.c | PRINTP("%02x " ANDP command[i]); |
i | 585 | drivers/scsi/g_NCR5380.c | int i; |
i | 634 | drivers/scsi/g_NCR5380.c | for (i=0; i<8; i++) |
i | 635 | drivers/scsi/g_NCR5380.c | if (dev->vendor[i] >= 0x20) |
i | 636 | drivers/scsi/g_NCR5380.c | *(buffer+(len++)) = dev->vendor[i]; |
i | 638 | drivers/scsi/g_NCR5380.c | for (i=0; i<16; i++) |
i | 639 | drivers/scsi/g_NCR5380.c | if (dev->model[i] >= 0x20) |
i | 640 | drivers/scsi/g_NCR5380.c | *(buffer+(len++)) = dev->model[i]; |
i | 642 | drivers/scsi/g_NCR5380.c | for (i=0; i<4; i++) |
i | 643 | drivers/scsi/g_NCR5380.c | if (dev->rev[i] >= 0x20) |
i | 644 | drivers/scsi/g_NCR5380.c | *(buffer+(len++)) = dev->rev[i]; |
i | 663 | drivers/scsi/g_NCR5380.c | for (i = 0; (phases[i].value != PHASE_UNKNOWN) && |
i | 664 | drivers/scsi/g_NCR5380.c | (phases[i].value != (status & PHASE_MASK)); ++i) |
i | 666 | drivers/scsi/g_NCR5380.c | PRINTP("Phase %s\n" ANDP phases[i].name); |
i | 352 | drivers/scsi/hosts.c | int i, pcount; |
i | 360 | drivers/scsi/hosts.c | for (tpnt = &builtin_scsi_hosts[0], i = 0; i < MAX_SCSI_HOSTS; ++i, tpnt++) |
i | 338 | drivers/scsi/hosts.h | extern void scsi_unregister(struct Scsi_Host * i); |
i | 139 | drivers/scsi/in2000.c | int i; |
i | 150 | drivers/scsi/in2000.c | for(i=0; i < 3; i++) |
i | 151 | drivers/scsi/in2000.c | if(*(bios_tab[i]+0x04) == 0x41564f4e || |
i | 152 | drivers/scsi/in2000.c | *(bios_tab[i]+0xc) == 0x61776c41) { |
i | 154 | drivers/scsi/in2000.c | tmp, (unsigned int)bios_tab[i]); |
i | 427 | drivers/scsi/in2000.c | int i; |
i | 443 | drivers/scsi/in2000.c | i = xscsi2int((cmd+1)); |
i | 445 | drivers/scsi/in2000.c | i = scsi2int((cmd+1)); |
i | 447 | drivers/scsi/in2000.c | i = -1; |
i | 450 | drivers/scsi/in2000.c | printk("in2000qcmd: pos %d len %d ", i, bufflen); |
i | 452 | drivers/scsi/in2000.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
i | 323 | drivers/scsi/pas16.c | int i; |
i | 330 | drivers/scsi/pas16.c | for (i = 0; i < NO_BASES; ++i) |
i | 331 | drivers/scsi/pas16.c | if (bases[i].io_port == (unsigned short) ints[1]) { |
i | 332 | drivers/scsi/pas16.c | bases[i].noauto = 1; |
i | 494 | drivers/scsi/pas16.c | register i = len; |
i | 498 | drivers/scsi/pas16.c | insb( reg, d, i ); |
i | 526 | drivers/scsi/pas16.c | register i = len; |
i | 530 | drivers/scsi/pas16.c | outsb( reg, s, i ); |
i | 167 | drivers/scsi/qlogic.c | #define rtrc(i) {inb(0x3da);outb(0x31,0x3c0);outb((i),0x3c0);} |
i | 169 | drivers/scsi/qlogic.c | #define rtrc(i) {} |
i | 275 | drivers/scsi/qlogic.c | int i,k; |
i | 277 | drivers/scsi/qlogic.c | i = jiffies + WATCHDOG; |
i | 278 | drivers/scsi/qlogic.c | while ( i > jiffies && !qabort && !((k = inb(qbase + 4)) & 0xe0)) |
i | 280 | drivers/scsi/qlogic.c | if (i <= jiffies) |
i | 297 | drivers/scsi/qlogic.c | unsigned int i; |
i | 331 | drivers/scsi/qlogic.c | for (i = 0; i < cmd->cmd_len; i++) |
i | 332 | drivers/scsi/qlogic.c | outb(cmd->cmnd[i], qbase + 2); |
i | 341 | drivers/scsi/qlogic.c | unsigned int i, j, k; |
i | 352 | drivers/scsi/qlogic.c | i = inb(qbase + 5); |
i | 353 | drivers/scsi/qlogic.c | if (i == 0x20) { |
i | 356 | drivers/scsi/qlogic.c | i |= inb(qbase + 5); /* the 0x10 bit can be set after the 0x08 */ |
i | 357 | drivers/scsi/qlogic.c | if (i != 0x18) { |
i | 358 | drivers/scsi/qlogic.c | printk("Ql:Bad Interrupt status:%02x\n", i); |
i | 368 | drivers/scsi/qlogic.c | printk("Ql:Bad sequence for command %d, int %02X, cmdleft = %d\n", j, i, inb( qbase+7 ) & 0x1f ); |
i | 421 | drivers/scsi/qlogic.c | i = inb(qbase + 5); /* get chip irq stat */ |
i | 426 | drivers/scsi/qlogic.c | if (!((i == 8 && j == 2) || (i == 0x10 && j == 1))) { |
i | 427 | drivers/scsi/qlogic.c | printk("Ql:Error during status phase, int=%02X, %d bytes recd\n", i, j); |
i | 435 | drivers/scsi/qlogic.c | i = inb(qbase + 5); /* should be bus service */ |
i | 436 | drivers/scsi/qlogic.c | while (!qabort && ((i & 0x20) != 0x20)) { |
i | 438 | drivers/scsi/qlogic.c | i |= inb(qbase + 5); |
i | 456 | drivers/scsi/qlogic.c | int i; |
i | 457 | drivers/scsi/qlogic.c | i = 16; |
i | 458 | drivers/scsi/qlogic.c | while (i-- && inb(qbase + 5)); /* maybe also ql_zap() */ |
i | 538 | drivers/scsi/qlogic.c | int i, j; /* these are only used by IRQ detect */ |
i | 589 | drivers/scsi/qlogic.c | i = 0xffff; |
i | 597 | drivers/scsi/qlogic.c | i &= ~(inb(0x20) | (inb(0xa0) << 8)); /* find IRQ off */ |
i | 599 | drivers/scsi/qlogic.c | i &= inb(0x20) | (inb(0xa0) << 8); /* find IRQ on */ |
i | 604 | drivers/scsi/qlogic.c | while (i) /* find on bit */ |
i | 605 | drivers/scsi/qlogic.c | i >>= 1, j++; /* should check for exactly 1 on */ |
i | 282 | drivers/scsi/scsi.c | int i = 0; |
i | 284 | drivers/scsi/scsi.c | for(i=0; 1; i++){ |
i | 285 | drivers/scsi/scsi.c | if(device_list[i].vendor == NULL) return 0; |
i | 288 | drivers/scsi/scsi.c | if(memcmp(device_list[i].vendor, pnt, |
i | 289 | drivers/scsi/scsi.c | strlen(device_list[i].vendor))) continue; |
i | 292 | drivers/scsi/scsi.c | if(memcmp(device_list[i].model, pnt, |
i | 293 | drivers/scsi/scsi.c | strlen(device_list[i].model))) continue; |
i | 294 | drivers/scsi/scsi.c | return device_list[i].flags; |
i | 1255 | drivers/scsi/scsi.c | int i; |
i | 1262 | drivers/scsi/scsi.c | for (i = 0; i < 10; ++i) |
i | 1263 | drivers/scsi/scsi.c | printk ("%02x ", ((unsigned char *) cmnd)[i]); |
i | 2200 | drivers/scsi/scsi.c | int i, j; |
i | 2209 | drivers/scsi/scsi.c | for(i=0;i < dma_sectors / SECTORS_PER_PAGE; i++) |
i | 2211 | drivers/scsi/scsi.c | if ((dma_malloc_freelist[i] & (mask << j)) == 0){ |
i | 2212 | drivers/scsi/scsi.c | dma_malloc_freelist[i] |= (mask << j); |
i | 2216 | drivers/scsi/scsi.c | printk("SMalloc: %d %p\n",len, dma_malloc_pages[i] + (j << 9)); |
i | 2218 | drivers/scsi/scsi.c | return (void *) ((unsigned long) dma_malloc_pages[i] + (j << 9)); |
i | 2418 | drivers/scsi/scsi.c | int i; |
i | 2421 | drivers/scsi/scsi.c | for (i = 8; i < 16; i++) |
i | 2423 | drivers/scsi/scsi.c | if (data[i] >= 0x20 && i < data[4] + 5) |
i | 2424 | drivers/scsi/scsi.c | printk("%c", data[i]); |
i | 2430 | drivers/scsi/scsi.c | for (i = 16; i < 32; i++) |
i | 2432 | drivers/scsi/scsi.c | if (data[i] >= 0x20 && i < data[4] + 5) |
i | 2433 | drivers/scsi/scsi.c | printk("%c", data[i]); |
i | 2439 | drivers/scsi/scsi.c | for (i = 32; i < 36; i++) |
i | 2441 | drivers/scsi/scsi.c | if (data[i] >= 0x20 && i < data[4] + 5) |
i | 2442 | drivers/scsi/scsi.c | printk("%c", data[i]); |
i | 2449 | drivers/scsi/scsi.c | i = data[0] & 0x1f; |
i | 2452 | drivers/scsi/scsi.c | i < MAX_SCSI_DEVICE_CODE ? scsi_device_types[i] : "Unknown " ); |
i | 2469 | drivers/scsi/scsi.c | int i,size, len = 0; |
i | 2531 | drivers/scsi/scsi.c | for(i=0; i<4; i++) { |
i | 2533 | drivers/scsi/scsi.c | parameter[i] = simple_strtoul(p, &p, 0); |
i | 2565 | drivers/scsi/scsi.c | int i; |
i | 2584 | drivers/scsi/scsi.c | for(i=0; i < dma_sectors / SECTORS_PER_PAGE; i++) |
i | 2585 | drivers/scsi/scsi.c | scsi_init_free(dma_malloc_pages[i], PAGE_SIZE); |
i | 2654 | drivers/scsi/scsi.c | for(i=dma_sectors / SECTORS_PER_PAGE; i< new_dma_sectors / SECTORS_PER_PAGE; i++) |
i | 2655 | drivers/scsi/scsi.c | new_dma_malloc_pages[i] = (unsigned char *) |
i | 3100 | drivers/scsi/scsi.c | int i; |
i | 3104 | drivers/scsi/scsi.c | i = 0; |
i | 3110 | drivers/scsi/scsi.c | i++, SCpnt->host->host_no, |
i | 3132 | drivers/scsi/scsi.c | for(i=0; i<MAX_BLKDEV; i++) |
i | 3133 | drivers/scsi/scsi.c | if(blk_dev[i].current_request) |
i | 3136 | drivers/scsi/scsi.c | printk("%d: ", i); |
i | 3137 | drivers/scsi/scsi.c | req = blk_dev[i].current_request; |
i | 129 | drivers/scsi/scsi_debug.c | int i; |
i | 138 | drivers/scsi/scsi_debug.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 139 | drivers/scsi/scsi_debug.c | lpnt = (int *) sgpnt[i].alt_address; |
i | 140 | drivers/scsi/scsi_debug.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 150 | drivers/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 151 | drivers/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 157 | drivers/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 158 | drivers/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 164 | drivers/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 165 | drivers/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 186 | drivers/scsi/scsi_debug.c | int i; |
i | 214 | drivers/scsi/scsi_debug.c | int i; |
i | 216 | drivers/scsi/scsi_debug.c | for(i=0;i<12;i++) printk("%d ",sense_buffer[i]); |
i | 333 | drivers/scsi/scsi_debug.c | int i; |
i | 335 | drivers/scsi/scsi_debug.c | for(i=0;i<12;i++) printk("%d ",sense_buffer[i]); |
i | 408 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++){ |
i | 409 | drivers/scsi/scsi_debug.c | if (SCint[i] == 0) break; |
i | 412 | drivers/scsi/scsi_debug.c | if (i >= SCSI_DEBUG_MAILBOXES || SCint[i] != 0) |
i | 415 | drivers/scsi/scsi_debug.c | SCint[i] = SCpnt; |
i | 419 | drivers/scsi/scsi_debug.c | if (do_done[i]) |
i | 422 | drivers/scsi/scsi_debug.c | do_done[i] = done; |
i | 435 | drivers/scsi/scsi_debug.c | timeout[i] = jiffies+DISK_SPEED; |
i | 439 | drivers/scsi/scsi_debug.c | timer_table[SCSI_DEBUG_TIMER].expires = timeout[i]; |
i | 447 | drivers/scsi/scsi_debug.c | printk("Sending command (%d %x %d %d)...", i, done, timeout[i],jiffies); |
i | 478 | drivers/scsi/scsi_debug.c | int i, pending; |
i | 491 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 492 | drivers/scsi/scsi_debug.c | if (SCint[i] == 0) continue; |
i | 494 | drivers/scsi/scsi_debug.c | if (timeout[i] == 0) continue; |
i | 495 | drivers/scsi/scsi_debug.c | if (timeout[i] <= jiffies) break; |
i | 501 | drivers/scsi/scsi_debug.c | if(i == SCSI_DEBUG_MAILBOXES){ |
i | 504 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 505 | drivers/scsi/scsi_debug.c | if (SCint[i] == 0) continue; |
i | 506 | drivers/scsi/scsi_debug.c | if (timeout[i] == 0) continue; |
i | 507 | drivers/scsi/scsi_debug.c | if (timeout[i] <= jiffies) {restore_flags(flags); goto repeat;}; |
i | 508 | drivers/scsi/scsi_debug.c | if (timeout[i] > jiffies) { |
i | 509 | drivers/scsi/scsi_debug.c | if (pending > timeout[i]) pending = timeout[i]; |
i | 523 | drivers/scsi/scsi_debug.c | if(i < SCSI_DEBUG_MAILBOXES){ |
i | 524 | drivers/scsi/scsi_debug.c | timeout[i] = 0; |
i | 525 | drivers/scsi/scsi_debug.c | my_done = do_done[i]; |
i | 526 | drivers/scsi/scsi_debug.c | do_done[i] = NULL; |
i | 527 | drivers/scsi/scsi_debug.c | to = timeout[i]; |
i | 528 | drivers/scsi/scsi_debug.c | timeout[i] = 0; |
i | 529 | drivers/scsi/scsi_debug.c | SCtmp = (Scsi_Cmnd *) SCint[i]; |
i | 530 | drivers/scsi/scsi_debug.c | SCint[i] = NULL; |
i | 540 | drivers/scsi/scsi_debug.c | printk("...done %d %x %d %d\n",i , my_done, to, jiffies); |
i | 541 | drivers/scsi/scsi_debug.c | printk("In intr_handle: %d %x %x\n",i, SCtmp, my_done); |
i | 599 | drivers/scsi/scsi_debug.c | int i; |
i | 606 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 607 | drivers/scsi/scsi_debug.c | if (SCint[i] == NULL) continue; |
i | 608 | drivers/scsi/scsi_debug.c | SCint[i]->result = DID_RESET << 16; |
i | 609 | drivers/scsi/scsi_debug.c | my_done = do_done[i]; |
i | 610 | drivers/scsi/scsi_debug.c | my_done(SCint[i]); |
i | 613 | drivers/scsi/scsi_debug.c | SCint[i] = NULL; |
i | 614 | drivers/scsi/scsi_debug.c | do_done[i] = NULL; |
i | 615 | drivers/scsi/scsi_debug.c | timeout[i] = 0; |
i | 279 | drivers/scsi/scsi_ioctl.c | int i; |
i | 281 | drivers/scsi/scsi_ioctl.c | for (i = 0; i < 12; ++i) |
i | 282 | drivers/scsi/scsi_ioctl.c | printk("%02x ", cmd[i]); |
i | 284 | drivers/scsi/scsi_ioctl.c | for (i = 0; i < 20; ++i) |
i | 285 | drivers/scsi/scsi_ioctl.c | printk("%02x ", buf[i]); |
i | 88 | drivers/scsi/scsicam.c | int i, largest_cyl; |
i | 95 | drivers/scsi/scsicam.c | (0x1BE + bh->b_data), i = 0; i < 4; ++i, ++p) { |
i | 100 | drivers/scsi/scsicam.c | i); |
i | 199 | drivers/scsi/sd.c | int i; |
i | 201 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
i | 202 | drivers/scsi/sd.c | if(rscsi_disks[i].device) |
i | 203 | drivers/scsi/sd.c | sd[i << 4].nr_sects = rscsi_disks[i].capacity; |
i | 241 | drivers/scsi/sd.c | int i; |
i | 243 | drivers/scsi/sd.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 245 | drivers/scsi/sd.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, |
i | 246 | drivers/scsi/sd.c | sgpnt[i].length); |
i | 248 | drivers/scsi/sd.c | if (sgpnt[i].alt_address) { |
i | 250 | drivers/scsi/sd.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, |
i | 251 | drivers/scsi/sd.c | sgpnt[i].length); |
i | 252 | drivers/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 301 | drivers/scsi/sd.c | int i; |
i | 303 | drivers/scsi/sd.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 308 | drivers/scsi/sd.c | if (sgpnt[i].alt_address) { |
i | 309 | drivers/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 952 | drivers/scsi/sd.c | static int sd_init_onedisk(int i) |
i | 965 | drivers/scsi/sd.c | SCpnt = allocate_device(NULL, rscsi_disks[i].device, 1); |
i | 977 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 1004 | drivers/scsi/sd.c | if(the_result && !rscsi_disks[i].device->removable && |
i | 1008 | drivers/scsi/sd.c | printk( "sd%c: Spinning up disk...", 'a' + i ); |
i | 1010 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 1050 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 1098 | drivers/scsi/sd.c | 'a' + i, 'a' + i, |
i | 1106 | drivers/scsi/sd.c | 'a' + i, SCpnt->sense_buffer[2] & 0xf); |
i | 1108 | drivers/scsi/sd.c | printk("sd%c : sense not available. \n", 'a' + i); |
i | 1111 | drivers/scsi/sd.c | 'a' + i); |
i | 1112 | drivers/scsi/sd.c | rscsi_disks[i].capacity = 0x1fffff; |
i | 1113 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = 512; |
i | 1117 | drivers/scsi/sd.c | if(rscsi_disks[i].device->removable && |
i | 1119 | drivers/scsi/sd.c | rscsi_disks[i].device->changed = 1; |
i | 1127 | drivers/scsi/sd.c | rscsi_disks[i].ready = 1; |
i | 1129 | drivers/scsi/sd.c | rscsi_disks[i].capacity = 1 + ((buffer[0] << 24) | |
i | 1134 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = (buffer[4] << 24) | |
i | 1137 | drivers/scsi/sd.c | if (rscsi_disks[i].sector_size == 0) { |
i | 1138 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = 512; |
i | 1139 | drivers/scsi/sd.c | printk("sd%c : sector size 0 reported, assuming 512.\n", 'a' + i); |
i | 1143 | drivers/scsi/sd.c | if (rscsi_disks[i].sector_size != 512 && |
i | 1144 | drivers/scsi/sd.c | rscsi_disks[i].sector_size != 1024 && |
i | 1145 | drivers/scsi/sd.c | rscsi_disks[i].sector_size != 256) |
i | 1148 | drivers/scsi/sd.c | 'a' + i, rscsi_disks[i].sector_size); |
i | 1149 | drivers/scsi/sd.c | if(rscsi_disks[i].device->removable){ |
i | 1150 | drivers/scsi/sd.c | rscsi_disks[i].capacity = 0; |
i | 1153 | drivers/scsi/sd.c | rscsi_disks[i].device = NULL; |
i | 1155 | drivers/scsi/sd.c | return i; |
i | 1165 | drivers/scsi/sd.c | int hard_sector = rscsi_disks[i].sector_size; |
i | 1167 | drivers/scsi/sd.c | for (m=i<<4; m<((i+1)<<4); m++){ |
i | 1171 | drivers/scsi/sd.c | hard_sector,i+'a'); |
i | 1173 | drivers/scsi/sd.c | if(rscsi_disks[i].sector_size == 1024) |
i | 1174 | drivers/scsi/sd.c | rscsi_disks[i].capacity <<= 1; /* Change into 512 byte sectors */ |
i | 1175 | drivers/scsi/sd.c | if(rscsi_disks[i].sector_size == 256) |
i | 1176 | drivers/scsi/sd.c | rscsi_disks[i].capacity >>= 1; /* Change into 512 byte sectors */ |
i | 1183 | drivers/scsi/sd.c | rscsi_disks[i].write_prot = 0; |
i | 1184 | drivers/scsi/sd.c | if ( rscsi_disks[i].device->removable && rscsi_disks[i].ready ) { |
i | 1196 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 1220 | drivers/scsi/sd.c | printk ("sd%c: test WP failed, assume Write Protected\n",i+'a'); |
i | 1221 | drivers/scsi/sd.c | rscsi_disks[i].write_prot = 1; |
i | 1223 | drivers/scsi/sd.c | rscsi_disks[i].write_prot = ((buffer[2] & 0x80) != 0); |
i | 1224 | drivers/scsi/sd.c | printk ("sd%c: Write Protect is %s\n",i+'a', |
i | 1225 | drivers/scsi/sd.c | rscsi_disks[i].write_prot ? "on" : "off"); |
i | 1230 | drivers/scsi/sd.c | rscsi_disks[i].ten = 1; |
i | 1231 | drivers/scsi/sd.c | rscsi_disks[i].remap = 1; |
i | 1233 | drivers/scsi/sd.c | return i; |
i | 1245 | drivers/scsi/sd.c | int i; |
i | 1276 | drivers/scsi/sd.c | for(i=0;i<(sd_template.dev_max << 4);i++){ |
i | 1277 | drivers/scsi/sd.c | sd_blocksizes[i] = 1024; |
i | 1278 | drivers/scsi/sd.c | sd_hardsizes[i] = 512; |
i | 1296 | drivers/scsi/sd.c | int i; |
i | 1303 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
i | 1304 | drivers/scsi/sd.c | if (!rscsi_disks[i].capacity && |
i | 1305 | drivers/scsi/sd.c | rscsi_disks[i].device) |
i | 1308 | drivers/scsi/sd.c | && !rscsi_disks[i].has_part_table) { |
i | 1309 | drivers/scsi/sd.c | sd_sizes[i << 4] = rscsi_disks[i].capacity; |
i | 1311 | drivers/scsi/sd.c | revalidate_scsidisk(MKDEV(MAJOR_NR, i << 4), 0); |
i | 1314 | drivers/scsi/sd.c | i=sd_init_onedisk(i); |
i | 1315 | drivers/scsi/sd.c | rscsi_disks[i].has_part_table = 1; |
i | 1342 | drivers/scsi/sd.c | int i; |
i | 1351 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
i | 1354 | drivers/scsi/sd.c | if(i >= sd_template.dev_max) panic ("scsi_devices corrupt (sd)"); |
i | 1357 | drivers/scsi/sd.c | rscsi_disks[i].device = SDp; |
i | 1358 | drivers/scsi/sd.c | rscsi_disks[i].has_part_table = 0; |
i | 1383 | drivers/scsi/sd.c | int i; |
i | 1401 | drivers/scsi/sd.c | for (i=max_p - 1; i >=0 ; i--) { |
i | 1402 | drivers/scsi/sd.c | int minor = start+i; |
i | 1435 | drivers/scsi/sd.c | int i; |
i | 1439 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
i | 1445 | drivers/scsi/sd.c | start = i << sd_gendisk.minor_shift; |
i | 1447 | drivers/scsi/sd.c | for (i=max_p - 1; i >=0 ; i--) { |
i | 1448 | drivers/scsi/sd.c | int minor = start+i; |
i | 288 | drivers/scsi/seagate.c | int i,j; |
i | 333 | drivers/scsi/seagate.c | for (i = 0; i < (sizeof (seagate_bases) / sizeof (char * )); ++i) |
i | 335 | drivers/scsi/seagate.c | if (!memcmp ((const void *) (seagate_bases[i] + |
i | 338 | drivers/scsi/seagate.c | base_address = (const void *) seagate_bases[i]; |
i | 638 | drivers/scsi/seagate.c | int i; |
i | 938 | drivers/scsi/seagate.c | int i; |
i | 941 | drivers/scsi/seagate.c | for (i = 0; i < nobuffs; ++i) |
i | 943 | drivers/scsi/seagate.c | hostno, i, buffer[i].address, buffer[i].length); |
i | 1507 | drivers/scsi/seagate.c | for (i = 0; i < 20; ++i) |
i | 1508 | drivers/scsi/seagate.c | printk ("%02x ", ((unsigned char *) data)[i]); /* WDE mod */ |
i | 202 | drivers/scsi/sg.c | int i; |
i | 205 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_WRITE,buf,count))) |
i | 206 | drivers/scsi/sg.c | return i; |
i | 297 | drivers/scsi/sg.c | int bsize,size,amt,i; |
i | 306 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_READ,buf,count))) |
i | 307 | drivers/scsi/sg.c | return i; |
i | 558 | drivers/scsi/sg.c | int i; |
i | 566 | drivers/scsi/sg.c | for(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) |
i | 569 | drivers/scsi/sg.c | if(i >= sg_template.dev_max) panic ("scsi_devices corrupt (sg)"); |
i | 571 | drivers/scsi/sg.c | scsi_generics[i].device=SDp; |
i | 572 | drivers/scsi/sg.c | scsi_generics[i].users=0; |
i | 573 | drivers/scsi/sg.c | scsi_generics[i].generic_wait=NULL; |
i | 574 | drivers/scsi/sg.c | scsi_generics[i].read_wait=NULL; |
i | 575 | drivers/scsi/sg.c | scsi_generics[i].write_wait=NULL; |
i | 576 | drivers/scsi/sg.c | scsi_generics[i].buff=NULL; |
i | 577 | drivers/scsi/sg.c | scsi_generics[i].exclude=0; |
i | 578 | drivers/scsi/sg.c | scsi_generics[i].pending=0; |
i | 579 | drivers/scsi/sg.c | scsi_generics[i].timeout=SG_DEFAULT_TIMEOUT; |
i | 589 | drivers/scsi/sg.c | int i; |
i | 591 | drivers/scsi/sg.c | for(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) |
i | 186 | drivers/scsi/sr.c | int i; |
i | 188 | drivers/scsi/sr.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 189 | drivers/scsi/sr.c | if (sgpnt[i].alt_address) { |
i | 190 | drivers/scsi/sr.c | if (sgpnt[i].alt_address != sgpnt[i].address) { |
i | 191 | drivers/scsi/sr.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 193 | drivers/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 225 | drivers/scsi/sr.c | int i; |
i | 227 | drivers/scsi/sr.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 228 | drivers/scsi/sr.c | if (sgpnt[i].alt_address) { |
i | 229 | drivers/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 898 | drivers/scsi/sr.c | int i; |
i | 902 | drivers/scsi/sr.c | for(i=0; i<12; i++) printk("%2.2x ", cmd[i]); |
i | 939 | drivers/scsi/sr.c | int i; |
i | 949 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
i | 952 | drivers/scsi/sr.c | if(i >= sr_template.dev_max) panic ("scsi_devices corrupt (sr)"); |
i | 955 | drivers/scsi/sr.c | scsi_CDs[i].device = SDp; |
i | 975 | drivers/scsi/sr.c | static void get_sectorsize(int i){ |
i | 982 | drivers/scsi/sr.c | SCpnt = allocate_device(NULL, scsi_CDs[i].device, 1); |
i | 987 | drivers/scsi/sr.c | cmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0; |
i | 1015 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0x1fffff; |
i | 1016 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = 2048; /* A guess, just in case */ |
i | 1017 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
i | 1019 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 1 + ((buffer[0] << 24) | |
i | 1023 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = (buffer[4] << 24) | |
i | 1025 | drivers/scsi/sr.c | switch (scsi_CDs[i].sector_size) { |
i | 1033 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = 2048; |
i | 1036 | drivers/scsi/sr.c | scsi_CDs[i].capacity *= 4; |
i | 1042 | drivers/scsi/sr.c | i, scsi_CDs[i].sector_size); |
i | 1043 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0; |
i | 1044 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
i | 1046 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 0; |
i | 1047 | drivers/scsi/sr.c | sr_sizes[i] = scsi_CDs[i].capacity >> (BLOCK_SIZE_BITS - 9); |
i | 1056 | drivers/scsi/sr.c | int i; |
i | 1079 | drivers/scsi/sr.c | for(i=0;i<sr_template.dev_max;i++) sr_blocksizes[i] = 2048; |
i | 1086 | drivers/scsi/sr.c | int i; |
i | 1091 | drivers/scsi/sr.c | for (i = 0; i < sr_template.nr_dev; ++i) |
i | 1095 | drivers/scsi/sr.c | if (scsi_CDs[i].capacity) continue; |
i | 1096 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0x1fffff; |
i | 1097 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = 2048; /* A guess, just in case */ |
i | 1098 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
i | 1101 | drivers/scsi/sr.c | get_sectorsize(i); |
i | 1102 | drivers/scsi/sr.c | printk("Scd sectorsize = %d bytes.\n", scsi_CDs[i].sector_size); |
i | 1104 | drivers/scsi/sr.c | scsi_CDs[i].use = 1; |
i | 1105 | drivers/scsi/sr.c | scsi_CDs[i].ten = 1; |
i | 1106 | drivers/scsi/sr.c | scsi_CDs[i].remap = 1; |
i | 1107 | drivers/scsi/sr.c | scsi_CDs[i].auto_eject = 0; /* Default is not to eject upon unmount. */ |
i | 1108 | drivers/scsi/sr.c | sr_sizes[i] = scsi_CDs[i].capacity >> (BLOCK_SIZE_BITS - 9); |
i | 1126 | drivers/scsi/sr.c | int i; |
i | 1128 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
i | 1130 | drivers/scsi/sr.c | kdev_t devi = MKDEV(MAJOR_NR, i); |
i | 1148 | drivers/scsi/sr.c | sr_sizes[i] = 0; |
i | 457 | drivers/scsi/st.c | int i, need_dma_buffer; |
i | 476 | drivers/scsi/st.c | for (i=0; i < st_nbr_buffers; i++) |
i | 477 | drivers/scsi/st.c | if (!st_buffers[i]->in_use && |
i | 478 | drivers/scsi/st.c | (!need_dma_buffer || st_buffers[i]->dma)) |
i | 480 | drivers/scsi/st.c | if (i >= st_nbr_buffers) { |
i | 488 | drivers/scsi/st.c | STp->buffer = st_buffers[i]; |
i | 1757 | drivers/scsi/st.c | int i, cmd_nr, cmd_type, result; |
i | 1788 | drivers/scsi/st.c | i = verify_area(VERIFY_READ, (void *)arg, sizeof(mtc)); |
i | 1789 | drivers/scsi/st.c | if (i) |
i | 1790 | drivers/scsi/st.c | return i; |
i | 1807 | drivers/scsi/st.c | i = flush_buffer(inode, file, mtc.mt_op == MTSEEK || |
i | 1811 | drivers/scsi/st.c | if (i < 0) |
i | 1812 | drivers/scsi/st.c | return i; |
i | 1856 | drivers/scsi/st.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct mtget)); |
i | 1857 | drivers/scsi/st.c | if (i) |
i | 1858 | drivers/scsi/st.c | return i; |
i | 1860 | drivers/scsi/st.c | i = flush_buffer(inode, file, FALSE); |
i | 1861 | drivers/scsi/st.c | if (i < 0) |
i | 1862 | drivers/scsi/st.c | return i; |
i | 1919 | drivers/scsi/st.c | i = flush_buffer(inode, file, 0); |
i | 1920 | drivers/scsi/st.c | if (i < 0) |
i | 1921 | drivers/scsi/st.c | return i; |
i | 1923 | drivers/scsi/st.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct mtpos)); |
i | 1924 | drivers/scsi/st.c | if (i) |
i | 1925 | drivers/scsi/st.c | return i; |
i | 2108 | drivers/scsi/st.c | int i; |
i | 2118 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
i | 2121 | drivers/scsi/st.c | if(i >= st_template.dev_max) panic ("scsi_devices corrupt (st)"); |
i | 2123 | drivers/scsi/st.c | scsi_tapes[i].device = SDp; |
i | 2125 | drivers/scsi/st.c | scsi_tapes[i].mt_status->mt_type = MT_ISSCSI1; |
i | 2127 | drivers/scsi/st.c | scsi_tapes[i].mt_status->mt_type = MT_ISSCSI2; |
i | 2129 | drivers/scsi/st.c | tpnt->devt = MKDEV(SCSI_TAPE_MAJOR, i); |
i | 2170 | drivers/scsi/st.c | int i; |
i | 2204 | drivers/scsi/st.c | for (i=0; i < st_template.dev_max; ++i) { |
i | 2205 | drivers/scsi/st.c | STp = &(scsi_tapes[i]); |
i | 2228 | drivers/scsi/st.c | memset((void *) scsi_tapes[i].mt_status, 0, sizeof(struct mtget)); |
i | 2252 | drivers/scsi/st.c | for (i=st_nbr_buffers=0; i < target_nbr; i++) { |
i | 2254 | drivers/scsi/st.c | if (i == 0) { |
i | 2279 | drivers/scsi/st.c | int i; |
i | 2281 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
i | 2302 | drivers/scsi/st.c | int i; |
i | 2312 | drivers/scsi/st.c | for (i=0; i < st_nbr_buffers; i++) |
i | 2313 | drivers/scsi/st.c | if (st_buffers[i] != NULL) { |
i | 2314 | drivers/scsi/st.c | scsi_init_free((char *) st_buffers[i]->b_data, |
i | 2315 | drivers/scsi/st.c | st_buffers[i]->buffer_size); |
i | 2316 | drivers/scsi/st.c | scsi_init_free((char *) st_buffers[i], sizeof(ST_buffer)); |
i | 171 | drivers/scsi/t128.c | int i; |
i | 178 | drivers/scsi/t128.c | for (i = 0; i < NO_BASES; ++i) |
i | 179 | drivers/scsi/t128.c | if (bases[i].address == (unsigned char *) ints[1]) { |
i | 180 | drivers/scsi/t128.c | bases[i].noauto = 1; |
i | 326 | drivers/scsi/t128.c | register i = len; |
i | 330 | drivers/scsi/t128.c | for (; i; --i) { |
i | 334 | drivers/scsi/t128.c | for (; i; --i) { |
i | 370 | drivers/scsi/t128.c | register i = len; |
i | 373 | drivers/scsi/t128.c | for (; i; --i) { |
i | 377 | drivers/scsi/t128.c | for (; i; --i) { |
i | 567 | drivers/scsi/u14-34f.c | unsigned int i, j, k, flags; |
i | 579 | drivers/scsi/u14-34f.c | i = HD(j)->last_cp_used + 1; |
i | 581 | drivers/scsi/u14-34f.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
i | 583 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) i = 0; |
i | 585 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) { |
i | 586 | drivers/scsi/u14-34f.c | HD(j)->last_cp_used = i; |
i | 608 | drivers/scsi/u14-34f.c | cpp = &HD(j)->cp[i]; |
i | 612 | drivers/scsi/u14-34f.c | cpp->index = i; |
i | 616 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->target, SCpnt->pid); |
i | 654 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = IN_USE; |
i | 660 | drivers/scsi/u14-34f.c | unsigned int i, j, flags; |
i | 673 | drivers/scsi/u14-34f.c | i = *(unsigned int *)SCarg->host_scribble; |
i | 675 | drivers/scsi/u14-34f.c | BN(j), i, SCarg->target, SCarg->pid); |
i | 677 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
i | 686 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) { |
i | 687 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is free.\n", BN(j), i); |
i | 692 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IN_USE) { |
i | 693 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is in use.\n", BN(j), i); |
i | 695 | drivers/scsi/u14-34f.c | if (SCarg != HD(j)->cp[i].SCpnt) |
i | 697 | drivers/scsi/u14-34f.c | BN(j), i, SCarg, HD(j)->cp[i].SCpnt); |
i | 703 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IN_RESET) { |
i | 704 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is in reset.\n", BN(j), i); |
i | 709 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 710 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is locked.\n", BN(j), i); |
i | 715 | drivers/scsi/u14-34f.c | panic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i); |
i | 719 | drivers/scsi/u14-34f.c | unsigned int i, j, flags, time, k, limit = 0; |
i | 748 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 750 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) continue; |
i | 752 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 753 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
i | 754 | drivers/scsi/u14-34f.c | printk("%s: reset, locked mbox %d forced free.\n", BN(j), i); |
i | 758 | drivers/scsi/u14-34f.c | SCpnt = HD(j)->cp[i].SCpnt; |
i | 759 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = IN_RESET; |
i | 761 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid); |
i | 764 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, SCpnt == NULL.\n", BN(j), i); |
i | 767 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, garbled SCpnt.\n", BN(j), i); |
i | 769 | drivers/scsi/u14-34f.c | if (*(unsigned int *)SCpnt->host_scribble != i) |
i | 770 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, index mismatch.\n", BN(j), i); |
i | 773 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, SCpnt->scsi_done == NULL.\n", BN(j), i); |
i | 798 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 801 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] != IN_RESET) continue; |
i | 803 | drivers/scsi/u14-34f.c | SCpnt = HD(j)->cp[i].SCpnt; |
i | 808 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = LOCKED; |
i | 811 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid); |
i | 843 | drivers/scsi/u14-34f.c | unsigned int i, j, k, flags, status, tstatus, loops, total_loops = 0; |
i | 878 | drivers/scsi/u14-34f.c | i = spp - HD(j)->cp; |
i | 880 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
i | 883 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IGNORE) { |
i | 884 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
i | 887 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == LOCKED) { |
i | 888 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
i | 890 | drivers/scsi/u14-34f.c | BN(j), i, HD(j)->iocount); |
i | 893 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == FREE) { |
i | 895 | drivers/scsi/u14-34f.c | BN(j), i, HD(j)->iocount); |
i | 898 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == IN_RESET) |
i | 899 | drivers/scsi/u14-34f.c | printk("%s: ihdlr, mbox %d is in reset.\n", BN(j), i); |
i | 900 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] != IN_USE) |
i | 901 | drivers/scsi/u14-34f.c | panic("%s: ihdlr, mbox %d, invalid cp_stat.\n", BN(j), i); |
i | 903 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
i | 907 | drivers/scsi/u14-34f.c | panic("%s: ihdlr, mbox %d, SCpnt == NULL.\n", BN(j), i); |
i | 911 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid, SCpnt); |
i | 913 | drivers/scsi/u14-34f.c | if (*(unsigned int *)SCpnt->host_scribble != i) |
i | 915 | drivers/scsi/u14-34f.c | " irq %d.\n", BN(j), i, SCpnt->pid, |
i | 1006 | drivers/scsi/u14-34f.c | BN(j), i, spp->adapter_status, spp->target_status, |
i | 335 | drivers/scsi/ultrastor.c | register int i; |
i | 340 | drivers/scsi/ultrastor.c | for (i = 0; i < ULTRASTOR_MAX_CMDS; i++) |
i | 342 | drivers/scsi/ultrastor.c | fmt[20 + i*2] = ' '; |
i | 343 | drivers/scsi/ultrastor.c | if (! (config->mscp_free & (1 << i))) |
i | 344 | drivers/scsi/ultrastor.c | fmt[21 + i*2] = '0' + config->mscp[i].target_id; |
i | 346 | drivers/scsi/ultrastor.c | fmt[21 + i*2] = '-'; |
i | 357 | drivers/scsi/ultrastor.c | size_t i; |
i | 387 | drivers/scsi/ultrastor.c | for (i = 0; i < ARRAY_SIZE(ultrastor_ports_14f); i++) { |
i | 388 | drivers/scsi/ultrastor.c | if(check_region(ultrastor_ports_14f[i], 0x0c)) continue; |
i | 389 | drivers/scsi/ultrastor.c | config.port_address = ultrastor_ports_14f[i]; |
i | 431 | drivers/scsi/ultrastor.c | if (i == ARRAY_SIZE(ultrastor_ports_14f)) { |
i | 530 | drivers/scsi/ultrastor.c | register int i; |
i | 538 | drivers/scsi/ultrastor.c | for (i = 1; i < 15; i++) |
i | 541 | drivers/scsi/ultrastor.c | unsigned short addr = (i << 12) | ULTRASTOR_24F_PORT; |
i | 549 | drivers/scsi/ultrastor.c | config.slot = i; |
i | 553 | drivers/scsi/ultrastor.c | printk("U24F: found disabled card in slot %u\n", i); |
i | 558 | drivers/scsi/ultrastor.c | printk("U24F: found card in slot %u\n", i); |
i | 660 | drivers/scsi/ultrastor.c | int i, max; |
i | 664 | drivers/scsi/ultrastor.c | for (i = 0; i < max; i++) { |
i | 665 | drivers/scsi/ultrastor.c | mscp->sglist[i].address = (unsigned int)sl[i].address; |
i | 666 | drivers/scsi/ultrastor.c | mscp->sglist[i].num_bytes = sl[i].length; |
i | 667 | drivers/scsi/ultrastor.c | transfer_length += sl[i].length; |
i | 855 | drivers/scsi/ultrastor.c | int i; |
i | 860 | drivers/scsi/ultrastor.c | for (i = 0; i < 16; i++) |
i | 862 | drivers/scsi/ultrastor.c | unsigned char p = inb(port0 + i); |
i | 863 | drivers/scsi/ultrastor.c | out[28 + i * 3] = "0123456789abcdef"[p >> 4]; |
i | 864 | drivers/scsi/ultrastor.c | out[29 + i * 3] = "0123456789abcdef"[p & 15]; |
i | 865 | drivers/scsi/ultrastor.c | out[30 + i * 3] = ' '; |
i | 867 | drivers/scsi/ultrastor.c | out[28 + i * 3] = '\n'; |
i | 868 | drivers/scsi/ultrastor.c | out[29 + i * 3] = 0; |
i | 957 | drivers/scsi/ultrastor.c | register int i; |
i | 985 | drivers/scsi/ultrastor.c | for (i = 0; i < ULTRASTOR_MAX_CMDS; i++) |
i | 987 | drivers/scsi/ultrastor.c | if (! (config.mscp_free & (1 << i)) && |
i | 988 | drivers/scsi/ultrastor.c | config.mscp[i].done && config.mscp[i].SCint) |
i | 990 | drivers/scsi/ultrastor.c | config.mscp[i].SCint->result = DID_RESET << 16; |
i | 991 | drivers/scsi/ultrastor.c | config.mscp[i].done(config.mscp[i].SCint); |
i | 992 | drivers/scsi/ultrastor.c | config.mscp[i].done = 0; |
i | 994 | drivers/scsi/ultrastor.c | config.mscp[i].SCint = 0; |
i | 501 | drivers/scsi/wd7000.c | int i; |
i | 518 | drivers/scsi/wd7000.c | result.i = 0; /* clears unused bytes */ |
i | 522 | drivers/scsi/wd7000.c | return result.i; |
i | 613 | drivers/scsi/wd7000.c | int i; |
i | 645 | drivers/scsi/wd7000.c | for (i = 0; i < needed; i++) { p = scbfree; scbfree = p->next; } |
i | 673 | drivers/scsi/wd7000.c | int i; |
i | 681 | drivers/scsi/wd7000.c | for (i = 0; i < MAX_SCBS-1; i++) { |
i | 682 | drivers/scsi/wd7000.c | scbs[i].next = &(scbs[i+1]); scbs[i].SCpnt = NULL; |
i | 696 | drivers/scsi/wd7000.c | register int i, ogmb; |
i | 708 | drivers/scsi/wd7000.c | for (i = 0; i < OGMB_CNT; i++) { |
i | 725 | drivers/scsi/wd7000.c | if (i >= OGMB_CNT) { |
i | 922 | drivers/scsi/wd7000.c | unsigned i; |
i | 936 | drivers/scsi/wd7000.c | for (i = 0; i < SCpnt->use_sg; i++) { |
i | 937 | drivers/scsi/wd7000.c | any2scsi(sgb[i].ptr, (int) sg[i].address); |
i | 938 | drivers/scsi/wd7000.c | any2scsi(sgb[i].len, sg[i].length); |
i | 1108 | drivers/scsi/wd7000.c | int i,j, present = 0; |
i | 1120 | drivers/scsi/wd7000.c | for (i = 0; i < NUM_CONFIGS; i++) { |
i | 205 | drivers/sound/ad1848.c | int i; |
i | 213 | drivers/sound/ad1848.c | for (i = 6; i < 8; i++) |
i | 215 | drivers/sound/ad1848.c | prev = devc->saved_regs[i] = ad_read (devc, i); |
i | 216 | drivers/sound/ad1848.c | ad_write (devc, i, prev | 0x80); |
i | 223 | drivers/sound/ad1848.c | int i; |
i | 228 | drivers/sound/ad1848.c | for (i = 6; i < 8; i++) |
i | 230 | drivers/sound/ad1848.c | ad_write (devc, i, devc->saved_regs[i] & ~0x80); |
i | 292 | drivers/sound/ad1848.c | int i, n; |
i | 297 | drivers/sound/ad1848.c | for (i = 0; i < 32; i++) /* Count selected device bits */ |
i | 298 | drivers/sound/ad1848.c | if (mask & (1 << i)) |
i | 308 | drivers/sound/ad1848.c | for (i = 0; i < 32; i++) /* Count selected device bits */ |
i | 309 | drivers/sound/ad1848.c | if (mask & (1 << i)) |
i | 443 | drivers/sound/ad1848.c | int i; |
i | 463 | drivers/sound/ad1848.c | for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) |
i | 464 | drivers/sound/ad1848.c | if (devc->supported_devices & (1 << i)) |
i | 465 | drivers/sound/ad1848.c | ad1848_mixer_set (devc, i, default_mixer_levels[i]); |
i | 660 | drivers/sound/ad1848.c | int i, n, selected = -1; |
i | 681 | drivers/sound/ad1848.c | for (i = 1 /*really */ ; selected == -1 && i < n; i++) |
i | 682 | drivers/sound/ad1848.c | if (speed_table[i].speed == arg) |
i | 683 | drivers/sound/ad1848.c | selected = i; |
i | 684 | drivers/sound/ad1848.c | else if (speed_table[i].speed > arg) |
i | 688 | drivers/sound/ad1848.c | diff1 = arg - speed_table[i - 1].speed; |
i | 689 | drivers/sound/ad1848.c | diff2 = speed_table[i].speed - arg; |
i | 692 | drivers/sound/ad1848.c | selected = i - 1; |
i | 694 | drivers/sound/ad1848.c | selected = i; |
i | 769 | drivers/sound/ad1848.c | int i, n = sizeof (format2bits) / sizeof (struct format_tbl); |
i | 776 | drivers/sound/ad1848.c | for (i = 0; i < n; i++) |
i | 777 | drivers/sound/ad1848.c | if (format2bits[i].format == arg) |
i | 779 | drivers/sound/ad1848.c | if ((devc->format_bits = format2bits[i].bits) == 0) |
i | 1157 | drivers/sound/ad1848.c | int i; |
i | 1205 | drivers/sound/ad1848.c | for (i = 0; i < 32; i++) |
i | 1206 | drivers/sound/ad1848.c | DDB (printk ("%02x ", ad_read (devc, i))); |
i | 1411 | drivers/sound/ad1848.c | int i, my_dev; |
i | 1432 | drivers/sound/ad1848.c | for (i = 0; i < 16; i++) |
i | 1433 | drivers/sound/ad1848.c | ad_write (devc, i, init_values[i]); |
i | 1452 | drivers/sound/ad1848.c | for (i = 16; i < 32; i++) |
i | 1453 | drivers/sound/ad1848.c | ad_write (devc, i, init_values[i]); |
i | 1565 | drivers/sound/ad1848.c | int i, dev = 0; |
i | 1568 | drivers/sound/ad1848.c | for (i = 0; devc == NULL && i < nr_ad1848_devs; i++) |
i | 1569 | drivers/sound/ad1848.c | if (dev_info[i].base == io_base) |
i | 1571 | drivers/sound/ad1848.c | devc = &dev_info[i]; |
i | 131 | drivers/sound/audio.c | int buf_no, buf_ptr, buf_size, p, i; |
i | 146 | drivers/sound/audio.c | for (i = dmap->qlen; i < dmap->nbufs; i++) |
i | 180 | drivers/sound/audio.c | unsigned long i; |
i | 185 | drivers/sound/audio.c | for (i = 0; i < n; ++i) |
i | 186 | drivers/sound/audio.c | buff[i] = table[buff[i]]; |
i | 424 | drivers/sound/configure.c | int num, i; |
i | 429 | drivers/sound/configure.c | for (i = 0; i < OPT_LAST; i++) |
i | 430 | drivers/sound/configure.c | if (mask == B (i)) |
i | 439 | drivers/sound/configure.c | hw_table[i].macro); |
i | 539 | drivers/sound/configure.c | int i = 0; |
i | 576 | drivers/sound/configure.c | i = 0; |
i | 577 | drivers/sound/configure.c | while (id[i] && id[i] != ' ' && |
i | 578 | drivers/sound/configure.c | id[i] != '\t' && id[i] != '\n') |
i | 579 | drivers/sound/configure.c | i++; |
i | 581 | drivers/sound/configure.c | strncpy (tmp, id, i); |
i | 582 | drivers/sound/configure.c | tmp[i] = 0; |
i | 608 | drivers/sound/configure.c | strncpy (tmp, id, i); |
i | 613 | drivers/sound/configure.c | strncpy (tmp, &id[7], i - 7); |
i | 614 | drivers/sound/configure.c | tmp[i - 7] = 0; |
i | 616 | drivers/sound/configure.c | for (i = 0; i <= OPT_LAST; i++) |
i | 617 | drivers/sound/configure.c | if (strcmp (hw_table[i].macro, tmp) == 0) |
i | 619 | drivers/sound/configure.c | selected_options |= (1 << i); |
i | 633 | drivers/sound/configure.c | i = 0; |
i | 634 | drivers/sound/configure.c | while (id[i] && id[i] != ' ' && |
i | 635 | drivers/sound/configure.c | id[i] != '\t' && id[i] != '\n') |
i | 636 | drivers/sound/configure.c | i++; |
i | 638 | drivers/sound/configure.c | strncpy (tmp, id, i); |
i | 643 | drivers/sound/configure.c | strncpy (tmp, id, i); |
i | 648 | drivers/sound/configure.c | strncpy (tmp, &id[8], i - 8); |
i | 649 | drivers/sound/configure.c | tmp[i - 8] = 0; |
i | 651 | drivers/sound/configure.c | for (i = 0; i <= OPT_LAST; i++) |
i | 652 | drivers/sound/configure.c | if (strcmp (hw_table[i].macro, tmp) == 0) |
i | 654 | drivers/sound/configure.c | selected_options |= (1 << i); |
i | 664 | drivers/sound/configure.c | for (i = 0; i <= OPT_LAST; i++) |
i | 665 | drivers/sound/configure.c | if (!hw_table[i].alias) |
i | 666 | drivers/sound/configure.c | if (selected_options & B (i)) |
i | 667 | drivers/sound/configure.c | printf ("#define CONFIG_%s\n", hw_table[i].macro); |
i | 669 | drivers/sound/configure.c | printf ("#undef CONFIG_%s\n", hw_table[i].macro); |
i | 674 | drivers/sound/configure.c | i = 0; |
i | 676 | drivers/sound/configure.c | while (extra_options[i].name != NULL) |
i | 678 | drivers/sound/configure.c | if (selected_options & extra_options[i].mask) |
i | 679 | drivers/sound/configure.c | printf ("#define CONFIG_%s\n", extra_options[i].name); |
i | 681 | drivers/sound/configure.c | printf ("#undef CONFIG_%s\n", extra_options[i].name); |
i | 682 | drivers/sound/configure.c | i++; |
i | 699 | drivers/sound/configure.c | int i; |
i | 708 | drivers/sound/configure.c | for (i = 0; i <= OPT_LAST; i++) |
i | 709 | drivers/sound/configure.c | if (!hw_table[i].alias) |
i | 710 | drivers/sound/configure.c | if (selected_options & B (i)) |
i | 711 | drivers/sound/configure.c | fprintf (optf, "CONFIG_%s=y\n", hw_table[i].macro); |
i | 716 | drivers/sound/configure.c | i = 0; |
i | 718 | drivers/sound/configure.c | while (extra_options[i].name != NULL) |
i | 720 | drivers/sound/configure.c | if (selected_options & extra_options[i].mask) |
i | 721 | drivers/sound/configure.c | fprintf (optf, "CONFIG_%s=y\n", extra_options[i].name); |
i | 722 | drivers/sound/configure.c | i++; |
i | 1132 | drivers/sound/configure.c | int i; |
i | 1134 | drivers/sound/configure.c | for (i = 0; i <= OPT_LAST; i++) |
i | 1135 | drivers/sound/configure.c | if (!(DUMMY_OPTS & B (i))) |
i | 1136 | drivers/sound/configure.c | if (!(DISABLED_OPTIONS & B (i))) |
i | 1138 | drivers/sound/configure.c | printf ("bool '%s' CONFIG_%s\n", questions[i], hw_table[i].macro); |
i | 1156 | drivers/sound/configure.c | int i = 0; |
i | 1162 | drivers/sound/configure.c | while (extra_options[i].name != NULL) |
i | 1170 | drivers/sound/configure.c | if (extra_options[i].mask & B (j)) |
i | 1181 | drivers/sound/configure.c | printf ("#\tdefine CONFIG_%s\n", extra_options[i].name); |
i | 1183 | drivers/sound/configure.c | i++; |
i | 1190 | drivers/sound/configure.c | int i = 0; |
i | 1194 | drivers/sound/configure.c | while (extra_options[i].name != NULL) |
i | 1200 | drivers/sound/configure.c | if (extra_options[i].mask & B (j)) |
i | 1203 | drivers/sound/configure.c | printf ("CONFIG_%s=y\n", extra_options[i].name); |
i | 1207 | drivers/sound/configure.c | i++; |
i | 1214 | drivers/sound/configure.c | int i, full_driver = 1; |
i | 1276 | drivers/sound/configure.c | for (i = 0; i <= OPT_LAST; i++) |
i | 1277 | drivers/sound/configure.c | if (can_select_option (i)) |
i | 1279 | drivers/sound/configure.c | if (!(selected_options & B (i))) /* |
i | 1282 | drivers/sound/configure.c | if (!hw_table[i].verify) |
i | 1284 | drivers/sound/configure.c | if (hw_table[i].alias) |
i | 1285 | drivers/sound/configure.c | selected_options |= B (hw_table[i].alias); |
i | 1287 | drivers/sound/configure.c | selected_options |= B (i); |
i | 1291 | drivers/sound/configure.c | int def_answ = hw_table[i].default_answ; |
i | 1293 | drivers/sound/configure.c | if (think_positively (questions[i], def_answ, help[i])) |
i | 1294 | drivers/sound/configure.c | if (hw_table[i].alias) |
i | 1295 | drivers/sound/configure.c | selected_options |= B (hw_table[i].alias); |
i | 1297 | drivers/sound/configure.c | selected_options |= B (i); |
i | 1513 | drivers/sound/configure.c | for (i = 0; i <= OPT_LAST; i++) |
i | 1514 | drivers/sound/configure.c | if (!hw_table[i].alias) |
i | 1515 | drivers/sound/configure.c | if (selected_options & B (i)) |
i | 1516 | drivers/sound/configure.c | printf ("#define CONFIG_%s\n", hw_table[i].macro); |
i | 1518 | drivers/sound/configure.c | printf ("#undef CONFIG_%s\n", hw_table[i].macro); |
i | 1522 | drivers/sound/configure.c | i = 0; |
i | 1524 | drivers/sound/configure.c | while (extra_options[i].name != NULL) |
i | 1526 | drivers/sound/configure.c | if (selected_options & extra_options[i].mask) |
i | 1527 | drivers/sound/configure.c | printf ("#define CONFIG_%s\n", extra_options[i].name); |
i | 1529 | drivers/sound/configure.c | printf ("#undef CONFIG_%s\n", extra_options[i].name); |
i | 1530 | drivers/sound/configure.c | i++; |
i | 1572 | drivers/sound/configure.c | int i = 0; |
i | 1585 | drivers/sound/configure.c | if (i != 0 && (i % 10) == 0) |
i | 1588 | drivers/sound/configure.c | i++; |
i | 1591 | drivers/sound/configure.c | "#define %sLen %d\n", varname, i); |
i | 87 | drivers/sound/cs4232.c | int i, n; |
i | 129 | drivers/sound/cs4232.c | for (i = 0; i < 32; i++) |
i | 130 | drivers/sound/cs4232.c | CS_OUT (crystal_key[i]); |
i | 42 | drivers/sound/dev_table.c | int i, n = num_sound_drivers; |
i | 44 | drivers/sound/dev_table.c | for (i = 0; i < n; i++) |
i | 45 | drivers/sound/dev_table.c | if (sound_drivers[i].card_type == type) |
i | 46 | drivers/sound/dev_table.c | return i; |
i | 82 | drivers/sound/dev_table.c | int i, n = num_sound_cards; |
i | 93 | drivers/sound/dev_table.c | for (i = 0; i < n && snd_installed_cards[i].card_type; i++) |
i | 94 | drivers/sound/dev_table.c | num_sound_cards = i + 1; |
i | 96 | drivers/sound/dev_table.c | for (i = 0; i < n && snd_installed_cards[i].card_type; i++) |
i | 97 | drivers/sound/dev_table.c | if (snd_installed_cards[i].enabled) |
i | 99 | drivers/sound/dev_table.c | snd_installed_cards[i].for_driver_use = NULL; |
i | 101 | drivers/sound/dev_table.c | if ((drv = snd_find_driver (snd_installed_cards[i].card_type)) == -1) |
i | 103 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; /* |
i | 109 | drivers/sound/dev_table.c | snd_installed_cards[i].config.card_subtype = |
i | 112 | drivers/sound/dev_table.c | if (sound_drivers[drv].probe (&snd_installed_cards[i].config)) |
i | 115 | drivers/sound/dev_table.c | mem_start = sound_drivers[drv].attach (mem_start, &snd_installed_cards[i].config); |
i | 119 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; /* |
i | 138 | drivers/sound/dev_table.c | int i, n = num_sound_cards; |
i | 147 | drivers/sound/dev_table.c | for (i = 0; i < n && snd_installed_cards[i].card_type; i++) |
i | 148 | drivers/sound/dev_table.c | if (snd_installed_cards[i].enabled) |
i | 149 | drivers/sound/dev_table.c | if ((drv = snd_find_driver (snd_installed_cards[i].card_type)) != -1) |
i | 152 | drivers/sound/dev_table.c | sound_drivers[drv].unload (&snd_installed_cards[i].config); |
i | 153 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; |
i | 163 | drivers/sound/dev_table.c | int i, drv = -1, n = num_sound_cards; |
i | 169 | drivers/sound/dev_table.c | for (i = 0; i < n && snd_installed_cards[i].card_type; i++) |
i | 170 | drivers/sound/dev_table.c | if (snd_installed_cards[i].card_type == type) |
i | 172 | drivers/sound/dev_table.c | if (snd_installed_cards[i].enabled) |
i | 178 | drivers/sound/dev_table.c | sound_drivers[drv].unload (&snd_installed_cards[i].config); |
i | 179 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; |
i | 196 | drivers/sound/dev_table.c | int i, sel = -1, n = num_sound_cards; |
i | 205 | drivers/sound/dev_table.c | for (i = 0; i < n && sel == -1 && snd_installed_cards[i].card_type; i++) |
i | 206 | drivers/sound/dev_table.c | if (snd_installed_cards[i].enabled) |
i | 207 | drivers/sound/dev_table.c | if (snd_installed_cards[i].card_type == unit) |
i | 208 | drivers/sound/dev_table.c | sel = i; |
i | 212 | drivers/sound/dev_table.c | int i; |
i | 214 | drivers/sound/dev_table.c | i = sel = (num_sound_cards++); |
i | 267 | drivers/sound/dev_table.c | int i, n = num_sound_cards; |
i | 278 | drivers/sound/dev_table.c | for (i = 0; i < n && snd_installed_cards[i].card_type; i++) |
i | 279 | drivers/sound/dev_table.c | if (snd_installed_cards[i].card_type == unit) |
i | 283 | drivers/sound/dev_table.c | snd_installed_cards[i].config.io_base = hw_config->io_base; |
i | 284 | drivers/sound/dev_table.c | snd_installed_cards[i].config.irq = hw_config->irq; |
i | 285 | drivers/sound/dev_table.c | snd_installed_cards[i].config.dma = hw_config->dma; |
i | 286 | drivers/sound/dev_table.c | snd_installed_cards[i].config.dma2 = hw_config->dma2; |
i | 287 | drivers/sound/dev_table.c | snd_installed_cards[i].config.name = hw_config->name; |
i | 288 | drivers/sound/dev_table.c | snd_installed_cards[i].config.always_detect = hw_config->always_detect; |
i | 289 | drivers/sound/dev_table.c | snd_installed_cards[i].config.driver_use_1 = hw_config->driver_use_1; |
i | 290 | drivers/sound/dev_table.c | snd_installed_cards[i].config.driver_use_2 = hw_config->driver_use_2; |
i | 291 | drivers/sound/dev_table.c | snd_installed_cards[i].config.card_subtype = hw_config->card_subtype; |
i | 292 | drivers/sound/dev_table.c | snd_installed_cards[i].config.osp = hw_config->osp; |
i | 294 | drivers/sound/dev_table.c | if ((drv = snd_find_driver (snd_installed_cards[i].card_type)) == -1) |
i | 295 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; /* |
i | 325 | drivers/sound/dev_table.c | int i, n = num_sound_drivers; |
i | 330 | drivers/sound/dev_table.c | for (i = 0; i < n; i++) |
i | 331 | drivers/sound/dev_table.c | if (sound_drivers[i].driver_id != NULL) |
i | 333 | drivers/sound/dev_table.c | char *id = sound_drivers[i].driver_id; |
i | 338 | drivers/sound/dev_table.c | return sound_drivers[i].card_type; |
i | 347 | drivers/sound/dev_table.c | int i, n = num_sound_cards; |
i | 353 | drivers/sound/dev_table.c | for (i = 0; i < n && snd_installed_cards[i].card_type; i++) |
i | 354 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; |
i | 362 | drivers/sound/dev_table.c | for (i = 1; i <= ints[0]; i++) |
i | 367 | drivers/sound/dev_table.c | val = (unsigned int) ints[i]; |
i | 72 | drivers/sound/dmabuf.c | unsigned i, n; |
i | 163 | drivers/sound/dmabuf.c | for (i = 0; i < dmap->nbufs; i++) |
i | 165 | drivers/sound/dmabuf.c | dmap->counts[i] = 0; |
i | 1313 | drivers/sound/dmabuf.c | int i; |
i | 1316 | drivers/sound/dmabuf.c | i = dmap->qhead; |
i | 1318 | drivers/sound/dmabuf.c | p = dmap->fragment_size * i; |
i | 1320 | drivers/sound/dmabuf.c | if (i == dmap->cfrag) |
i | 1322 | drivers/sound/dmabuf.c | l = dmap->fragment_size - dmap->counts[i]; |
i | 55 | drivers/sound/gus_vol.c | int i, m, n, x; |
i | 104 | drivers/sound/gus_vol.c | i = 7; |
i | 107 | drivers/sound/gus_vol.c | while (i > 0 && n < (1 << i)) |
i | 108 | drivers/sound/gus_vol.c | i--; |
i | 114 | drivers/sound/gus_vol.c | i++; |
i | 120 | drivers/sound/gus_vol.c | m = x - (1 << i); |
i | 127 | drivers/sound/gus_vol.c | if (i > 8) |
i | 128 | drivers/sound/gus_vol.c | m >>= i - 8; |
i | 129 | drivers/sound/gus_vol.c | else if (i < 8) |
i | 130 | drivers/sound/gus_vol.c | m <<= 8 - i; |
i | 133 | drivers/sound/gus_vol.c | return ((i << 8) + m); |
i | 196 | drivers/sound/gus_wave.c | int i; |
i | 198 | drivers/sound/gus_wave.c | for (i = 0; i <= MAX_SAMPLE; i++) |
i | 199 | drivers/sound/gus_wave.c | sample_ptrs[i] = -1; |
i | 200 | drivers/sound/gus_wave.c | for (i = 0; i < 32; i++) |
i | 201 | drivers/sound/gus_wave.c | sample_map[i] = -1; |
i | 202 | drivers/sound/gus_wave.c | for (i = 0; i < 32; i++) |
i | 203 | drivers/sound/gus_wave.c | patch_map[i] = -1; |
i | 211 | drivers/sound/gus_wave.c | for (i = 0; i < MAX_PATCH; i++) |
i | 212 | drivers/sound/gus_wave.c | patch_table[i] = NOT_SAMPLE; |
i | 218 | drivers/sound/gus_wave.c | int i; |
i | 220 | drivers/sound/gus_wave.c | for (i = 0; i < 7; i++) |
i | 678 | drivers/sound/gus_wave.c | int i; |
i | 685 | drivers/sound/gus_wave.c | for (i = 0; i < 32; i++) |
i | 687 | drivers/sound/gus_wave.c | gus_voice_init (i); /* Turn voice off */ |
i | 688 | drivers/sound/gus_wave.c | gus_voice_init2 (i); |
i | 848 | drivers/sound/gus_wave.c | unsigned long i; |
i | 868 | drivers/sound/gus_wave.c | for (i = 1L; i < 1024L; i++) |
i | 875 | drivers/sound/gus_wave.c | loc = i << 10; |
i | 891 | drivers/sound/gus_wave.c | gus_mem_size = i << 10; |
i | 1276 | drivers/sound/gus_wave.c | int i; |
i | 1278 | drivers/sound/gus_wave.c | for (i = 0; i < 6; i++) |
i | 1280 | drivers/sound/gus_wave.c | voices[voice].env_rate[i] = samples[sample].env_rate[i]; |
i | 1281 | drivers/sound/gus_wave.c | voices[voice].env_offset[i] = samples[sample].env_offset[i]; |
i | 1462 | drivers/sound/gus_wave.c | int i; |
i | 1464 | drivers/sound/gus_wave.c | for (i = 0; i < 32; i++) |
i | 1466 | drivers/sound/gus_wave.c | gus_voice_init (i); |
i | 1467 | drivers/sound/gus_wave.c | gus_voice_init2 (i); |
i | 1666 | drivers/sound/gus_wave.c | long i; |
i | 1670 | drivers/sound/gus_wave.c | for (i = 0; i < blk_sz; i++) |
i | 1672 | drivers/sound/gus_wave.c | data = get_fs_byte (&((addr)[sizeof_patch + i])); |
i | 1675 | drivers/sound/gus_wave.c | if (!(patch.mode & WAVE_16_BITS) || (i & 0x01)) |
i | 1677 | drivers/sound/gus_wave.c | gus_poke (target + i, data); |
i | 2396 | drivers/sound/gus_wave.c | int i; |
i | 2413 | drivers/sound/gus_wave.c | for (i = 0; i < pcm_nblk; i++) |
i | 2414 | drivers/sound/gus_wave.c | pcm_datasize[i] = 0; |
i | 2443 | drivers/sound/gus_wave.c | int i; |
i | 2450 | drivers/sound/gus_wave.c | for (i = 0; i < len; i++) |
i | 2463 | drivers/sound/gus_wave.c | int i; |
i | 2471 | drivers/sound/gus_wave.c | for (i = 0; i < len; i++) |
i | 2538 | drivers/sound/gus_wave.c | int i, n; |
i | 2555 | drivers/sound/gus_wave.c | for (i = 0; i < MAX_PATCH; i++) |
i | 2557 | drivers/sound/gus_wave.c | int ptr = patch_table[i]; |
i | 2559 | drivers/sound/gus_wave.c | rec->data.data8[i] = 0; |
i | 2563 | drivers/sound/gus_wave.c | rec->data.data8[i]++; |
i | 2721 | drivers/sound/gus_wave.c | int i, p, best = -1, best_time = 0x7fffffff; |
i | 2728 | drivers/sound/gus_wave.c | for (i = 0; i < alloc->max_voice; i++) |
i | 2747 | drivers/sound/gus_wave.c | for (i = 0; i < alloc->max_voice; i++) |
i | 3467 | drivers/sound/gus_wave.c | int i; |
i | 3471 | drivers/sound/gus_wave.c | for (i = 0; i < 2; i++) |
i | 3476 | drivers/sound/gus_wave.c | for (i = 0; i < 2; i++) |
i | 17 | drivers/sound/hex2hex.h | int l=0, c, i; |
i | 44 | drivers/sound/hex2hex.h | for (i=0;i<n;i++) |
i | 72 | drivers/sound/hex2hex.h | int i,l; |
i | 101 | drivers/sound/hex2hex.h | for (i=0;i<l;i++) |
i | 103 | drivers/sound/hex2hex.h | if (i) fprintf(outf, ","); |
i | 104 | drivers/sound/hex2hex.h | if (i && !(i % 16)) fprintf(outf, "\n"); |
i | 105 | drivers/sound/hex2hex.h | fprintf(outf, "0x%02x", buf[i]); |
i | 232 | drivers/sound/ics2101.c | int i; |
i | 245 | drivers/sound/ics2101.c | for (i = 0; i < ICS_MIXDEVS; i++) |
i | 246 | drivers/sound/ics2101.c | left_fix[i] = 1; |
i | 247 | drivers/sound/ics2101.c | for (i = 0; i < ICS_MIXDEVS; i++) |
i | 248 | drivers/sound/ics2101.c | right_fix[i] = 2; |
i | 176 | drivers/sound/mad16.c | int i; |
i | 190 | drivers/sound/mad16.c | for (i = 0xf8d; i <= 0xf98; i++) |
i | 191 | drivers/sound/mad16.c | DDB (printk ("Port %0x (init value) = %0x\n", i, mad_read (i))); |
i | 281 | drivers/sound/mad16.c | int i; |
i | 339 | drivers/sound/mad16.c | for (i = 0xf8d; i <= 0xf93; i++) |
i | 340 | drivers/sound/mad16.c | DDB (printk ("port %03x = %02x\n", i, mad_read (i))); |
i | 348 | drivers/sound/mad16.c | for (i = 0; i < 5; i++) |
i | 350 | drivers/sound/mad16.c | if (i > 3) /* Not a valid port */ |
i | 356 | drivers/sound/mad16.c | if (valid_ports[i] == hw_config->io_base) |
i | 358 | drivers/sound/mad16.c | tmp |= i << 4; /* WSS port select bits */ |
i | 403 | drivers/sound/mad16.c | for (i = 0xf8d; i <= 0xf93; i++) |
i | 404 | drivers/sound/mad16.c | DDB (printk ("port %03x after init = %02x\n", i, mad_read (i))); |
i | 520 | drivers/sound/mad16.c | int i; /* A variable with secret power */ |
i | 577 | drivers/sound/mad16.c | for (i = 0; i < 5; i++) |
i | 579 | drivers/sound/mad16.c | if (i > 3) /* Out of array bounds */ |
i | 585 | drivers/sound/mad16.c | if (valid_ports[i] == hw_config->io_base) |
i | 587 | drivers/sound/mad16.c | tmp |= i << 5; |
i | 596 | drivers/sound/mad16.c | for (i = 0; i < 5; i++) |
i | 598 | drivers/sound/mad16.c | if (i > 3) /* Out of array bounds */ |
i | 604 | drivers/sound/mad16.c | if (valid_irqs[i] == hw_config->irq) |
i | 606 | drivers/sound/mad16.c | tmp |= i << 3; |
i | 63 | drivers/sound/mad16_sb_midi.c | int i; |
i | 78 | drivers/sound/mad16_sb_midi.c | for (i = 0; i < 500000 && jiffies < limit; i++) |
i | 69 | drivers/sound/maui.c | int i; |
i | 75 | drivers/sound/maui.c | for (i = 0; i < 100; i++) |
i | 87 | drivers/sound/maui.c | for (i = 0; i < 150; i++) |
i | 149 | drivers/sound/maui.c | int i, lines = 0; |
i | 155 | drivers/sound/maui.c | for (i = 0; i < maui_osLen; i++) |
i | 157 | drivers/sound/maui.c | if (maui_os[i] != '\r') |
i | 158 | drivers/sound/maui.c | if (!skip || (maui_os[i] == 'S' && (i == 0 || maui_os[i - 1] == '\n'))) |
i | 162 | drivers/sound/maui.c | if (maui_os[i] == '\n') |
i | 164 | drivers/sound/maui.c | else if (maui_os[i] == 'S') |
i | 166 | drivers/sound/maui.c | if (maui_os[i + 1] == '8') |
i | 175 | drivers/sound/maui.c | if (!maui_write (maui_os[i])) |
i | 220 | drivers/sound/maui.c | int i; |
i | 253 | drivers/sound/maui.c | for (i = 0; i < 1000000 && !irq_ok; i++); |
i | 286 | drivers/sound/maui.c | int i; |
i | 288 | drivers/sound/maui.c | for (i = 0; i < 1000; i++) |
i | 307 | drivers/sound/maui.c | int i; |
i | 342 | drivers/sound/maui.c | for (i = 0; i < left; i++) |
i | 346 | drivers/sound/maui.c | data = get_fs_byte (&((addr)[hdr_size + i])); |
i | 347 | drivers/sound/maui.c | if (i == 0 && !(data & 0x80)) |
i | 354 | drivers/sound/maui.c | if ((i = maui_read ()) != 0x80) |
i | 356 | drivers/sound/maui.c | if (i != -1) |
i | 357 | drivers/sound/maui.c | printk ("Maui: Error status %02x\n", i); |
i | 368 | drivers/sound/maui.c | int i; |
i | 432 | drivers/sound/maui.c | for (i = 0; i < 4; i++) |
i | 434 | drivers/sound/maui.c | tmp1 |= maui_read () << (7 * i); |
i | 439 | drivers/sound/maui.c | for (i = 0; i < 1000; i++) |
i | 509 | drivers/sound/midi_synth.c | int i; |
i | 552 | drivers/sound/midi_synth.c | for (i = 0; i < left && !current_got_fatal_signal (); i++) |
i | 556 | drivers/sound/midi_synth.c | data = get_fs_byte (&((addr)[hdr_size + i])); |
i | 558 | drivers/sound/midi_synth.c | eox_seen = (i > 0 && data & 0x80); /* End of sysex */ |
i | 563 | drivers/sound/midi_synth.c | if (i == 0) |
i | 715 | drivers/sound/midi_synth.c | int i; |
i | 717 | drivers/sound/midi_synth.c | for (i = 0; i < len; i++) |
i | 719 | drivers/sound/midi_synth.c | switch (bytes[i]) |
i | 737 | drivers/sound/midi_synth.c | if (bytes[i] & 0x80) /* Error. Another message before sysex end */ |
i | 739 | drivers/sound/midi_synth.c | bytes[i] = 0xf7; /* Sysex end */ |
i | 744 | drivers/sound/midi_synth.c | if (!midi_devs[orig_dev]->putc (orig_dev, bytes[i])) |
i | 752 | drivers/sound/midi_synth.c | bytes[i] = 0xf7; |
i | 755 | drivers/sound/midi_synth.c | while (!midi_devs[orig_dev]->putc (orig_dev, bytes[i]) && |
i | 345 | drivers/sound/midibuf.c | int c, n, i; |
i | 395 | drivers/sound/midibuf.c | for (i = 0; i < n; i++) |
i | 615 | drivers/sound/mpu401.c | int i, timeout, ok; |
i | 684 | drivers/sound/mpu401.c | for (i = 0; i < cmd->nr_args; i++) |
i | 688 | drivers/sound/mpu401.c | if (!mpu401_out (dev, cmd->data[i])) |
i | 700 | drivers/sound/mpu401.c | for (i = 0; i < cmd->nr_returns; i++) |
i | 706 | drivers/sound/mpu401.c | cmd->data[i] = read_data (devc); |
i | 103 | drivers/sound/opl3.c | int i; |
i | 110 | drivers/sound/opl3.c | for (i = 0; i < 3; i++) |
i | 111 | drivers/sound/opl3.c | pv_map[i].voice_mode = 4; |
i | 112 | drivers/sound/opl3.c | for (i = 3; i < 6; i++) |
i | 113 | drivers/sound/opl3.c | pv_map[i].voice_mode = 0; |
i | 115 | drivers/sound/opl3.c | for (i = 9; i < 12; i++) |
i | 116 | drivers/sound/opl3.c | pv_map[i].voice_mode = 4; |
i | 117 | drivers/sound/opl3.c | for (i = 12; i < 15; i++) |
i | 118 | drivers/sound/opl3.c | pv_map[i].voice_mode = 0; |
i | 120 | drivers/sound/opl3.c | for (i = 0; i < 12; i++) |
i | 121 | drivers/sound/opl3.c | devc->lv_map[i] = v4op[i]; |
i | 187 | drivers/sound/opl3.c | int i; |
i | 231 | drivers/sound/opl3.c | for (i = 0; i < 50; i++) |
i | 308 | drivers/sound/opl3.c | for (i = 0; i < 9; i++) |
i | 309 | drivers/sound/opl3.c | opl3_command (ioaddr, KEYON_BLOCK + i, 0); /* |
i | 771 | drivers/sound/opl3.c | int i; |
i | 783 | drivers/sound/opl3.c | for (i = 0; i < 2; i++) |
i | 795 | drivers/sound/opl3.c | for (i = 0; i < 2; i++) |
i | 802 | drivers/sound/opl3.c | int i; |
i | 804 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 805 | drivers/sound/opl3.c | devc->lv_map[i] = i; |
i | 807 | drivers/sound/opl3.c | for (i = 0; i < devc->nr_voice; i++) |
i | 809 | drivers/sound/opl3.c | opl3_command (pv_map[devc->lv_map[i]].ioaddr, |
i | 810 | drivers/sound/opl3.c | KSL_LEVEL + pv_map[devc->lv_map[i]].op[0], 0xff); |
i | 812 | drivers/sound/opl3.c | opl3_command (pv_map[devc->lv_map[i]].ioaddr, |
i | 813 | drivers/sound/opl3.c | KSL_LEVEL + pv_map[devc->lv_map[i]].op[1], 0xff); |
i | 815 | drivers/sound/opl3.c | if (pv_map[devc->lv_map[i]].voice_mode == 4) |
i | 817 | drivers/sound/opl3.c | opl3_command (pv_map[devc->lv_map[i]].ioaddr, |
i | 818 | drivers/sound/opl3.c | KSL_LEVEL + pv_map[devc->lv_map[i]].op[2], 0xff); |
i | 820 | drivers/sound/opl3.c | opl3_command (pv_map[devc->lv_map[i]].ioaddr, |
i | 821 | drivers/sound/opl3.c | KSL_LEVEL + pv_map[devc->lv_map[i]].op[3], 0xff); |
i | 824 | drivers/sound/opl3.c | opl3_kill_note (dev, i, 0, 64); |
i | 831 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 832 | drivers/sound/opl3.c | pv_map[i].voice_mode = 2; |
i | 841 | drivers/sound/opl3.c | int i; |
i | 850 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 852 | drivers/sound/opl3.c | devc->v_alloc->map[i] = 0; |
i | 853 | drivers/sound/opl3.c | devc->v_alloc->alloc_times[i] = 0; |
i | 1073 | drivers/sound/opl3.c | int i, p, best, first, avail, best_time = 0x7fffffff; |
i | 1111 | drivers/sound/opl3.c | for (i = 0; i < avail; i++) |
i | 1179 | drivers/sound/opl3.c | int i; |
i | 1238 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 1239 | drivers/sound/opl3.c | if (pv_map[i].ioaddr == USE_LEFT) |
i | 1240 | drivers/sound/opl3.c | pv_map[i].ioaddr = devc->left_io; |
i | 1242 | drivers/sound/opl3.c | pv_map[i].ioaddr = devc->right_io; |
i | 1253 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 1254 | drivers/sound/opl3.c | pv_map[i].ioaddr = devc->left_io; |
i | 1257 | drivers/sound/opl3.c | for (i = 0; i < SBFM_MAXINSTR; i++) |
i | 1258 | drivers/sound/opl3.c | devc->i_map[i].channel = -1; |
i | 278 | drivers/sound/pas2_midi.c | int i, incount; |
i | 293 | drivers/sound/pas2_midi.c | for (i = 0; i < incount; i++) |
i | 140 | drivers/sound/pas2_mixer.c | int left, right, devmask, changed, i, mixer = 0; |
i | 204 | drivers/sound/pas2_mixer.c | i = 0; |
i | 207 | drivers/sound/pas2_mixer.c | i = (level / 20) - 1; |
i | 213 | drivers/sound/pas2_mixer.c | if (i) |
i | 214 | drivers/sound/pas2_mixer.c | i = (i + 1) * 20; |
i | 215 | drivers/sound/pas2_mixer.c | return i; |
i | 232 | drivers/sound/pas2_mixer.c | for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) |
i | 233 | drivers/sound/pas2_mixer.c | if (changed & (1 << i)) |
i | 235 | drivers/sound/pas2_mixer.c | pas_mixer_set (i, levels[i]); |
i | 192 | drivers/sound/pss.c | unsigned long i, limit = jiffies + 10; |
i | 196 | drivers/sound/pss.c | for (i = 0; i < 32768 && jiffies < limit; i++) |
i | 207 | drivers/sound/pss.c | int i, val; |
i | 209 | drivers/sound/pss.c | for (i = 0; i < 327680; i++) |
i | 224 | drivers/sound/pss.c | int i, val; |
i | 226 | drivers/sound/pss.c | for (i = 0; i < 327680; i++) |
i | 242 | drivers/sound/pss.c | int i, limit, val, count; |
i | 251 | drivers/sound/pss.c | for (i = 0; i < 32768 && jiffies < limit; i++) |
i | 295 | drivers/sound/pss.c | for (i = 0; i < 32768 && jiffies < limit; i++) |
i | 299 | drivers/sound/pss.c | for (i = 0; i < 32768 && jiffies < limit; i++) |
i | 307 | drivers/sound/pss.c | for (i = 0; i < 32000; i++) |
i | 313 | drivers/sound/pss.c | if (i == 32000) |
i | 527 | drivers/sound/pss.c | int i; |
i | 542 | drivers/sound/pss.c | for (i = 0; i < buf->len; i++) |
i | 548 | drivers/sound/pss.c | buf->len = i; /* feed back number of WORDs sent */ |
i | 568 | drivers/sound/pss.c | unsigned int i; |
i | 582 | drivers/sound/pss.c | for (i = 0; i < buf->len; i++) |
i | 586 | drivers/sound/pss.c | buf->len = i; /* feed back number of WORDs read */ |
i | 100 | drivers/sound/sb16_dsp.c | int i = 1 << 16; |
i | 102 | drivers/sound/sb16_dsp.c | while (--i & (!inb (DSP_STATUS) & 0x80)); |
i | 103 | drivers/sound/sb16_dsp.c | if (!i) |
i | 123 | drivers/sound/sb_dsp.c | int i; |
i | 138 | drivers/sound/sb_dsp.c | for (i = 0; i < 500000 && jiffies < limit; i++) |
i | 167 | drivers/sound/sb_dsp.c | int i; |
i | 175 | drivers/sound/sb_dsp.c | for (i = 1000; i; i--) |
i | 1027 | drivers/sound/sb_dsp.c | int i; |
i | 1029 | drivers/sound/sb_dsp.c | for (i = 1000; i; i--) |
i | 1093 | drivers/sound/sb_dsp.c | int i; |
i | 1105 | drivers/sound/sb_dsp.c | for (i = 0; i < 300; i++) /* Wait at least 1ms */ |
i | 1140 | drivers/sound/sb_dsp.c | for (i = 0; i < 8192; i++) |
i | 1141 | drivers/sound/sb_dsp.c | smw_putmem (mp_base, i, smw_ucode[i]); |
i | 1147 | drivers/sound/sb_dsp.c | for (i = 0; i < 8192; i++) |
i | 1148 | drivers/sound/sb_dsp.c | if (smw_getmem (mp_base, i) != smw_ucode[i]) |
i | 1449 | drivers/sound/sb_dsp.c | int i; |
i | 1459 | drivers/sound/sb_dsp.c | for (i = 100000; i; i--) |
i | 1478 | drivers/sound/sb_dsp.c | int i; |
i | 1516 | drivers/sound/sb_dsp.c | for (i = 1000; i; i--) |
i | 233 | drivers/sound/sb_mixer.c | int i; |
i | 239 | drivers/sound/sb_mixer.c | for (i = 0; i < sizeof (smw_mix_regs); i++) |
i | 240 | drivers/sound/sb_mixer.c | if (smw_mix_regs[i] != 0) |
i | 241 | drivers/sound/sb_mixer.c | supported_devices |= (1 << i); |
i | 371 | drivers/sound/sb_mixer.c | int devmask, i; |
i | 432 | drivers/sound/sb_mixer.c | for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) |
i | 433 | drivers/sound/sb_mixer.c | if ((1 << i) & devmask) |
i | 435 | drivers/sound/sb_mixer.c | regimageL |= sb16_recmasks_L[i]; |
i | 436 | drivers/sound/sb_mixer.c | regimageR |= sb16_recmasks_R[i]; |
i | 509 | drivers/sound/sb_mixer.c | int i; |
i | 511 | drivers/sound/sb_mixer.c | for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) |
i | 512 | drivers/sound/sb_mixer.c | sb_mixer_set (i, levels[i]); |
i | 488 | drivers/sound/sequencer.c | int i; |
i | 492 | drivers/sound/sequencer.c | for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) |
i | 493 | drivers/sound/sequencer.c | if (synth_devs[dev]->alloc.map[i] == key) |
i | 494 | drivers/sound/sequencer.c | return i; |
i | 643 | drivers/sound/sequencer.c | int i, key; |
i | 658 | drivers/sound/sequencer.c | for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) |
i | 659 | drivers/sound/sequencer.c | if ((synth_devs[dev]->alloc.map[i] & 0xff00) == key) |
i | 660 | drivers/sound/sequencer.c | synth_devs[dev]->controller (dev, i, p1, val); |
i | 676 | drivers/sound/sequencer.c | int i, key; |
i | 680 | drivers/sound/sequencer.c | for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) |
i | 681 | drivers/sound/sequencer.c | if ((synth_devs[dev]->alloc.map[i] & 0xff00) == key) |
i | 682 | drivers/sound/sequencer.c | synth_devs[dev]->bender (dev, i, w14); |
i | 820 | drivers/sound/sequencer.c | int i, l = 0; |
i | 833 | drivers/sound/sequencer.c | for (i = 0; i < 6 && buf[i] != 0xff; i++) |
i | 834 | drivers/sound/sequencer.c | l = i + 1; |
i | 1040 | drivers/sound/sequencer.c | int i; |
i | 1042 | drivers/sound/sequencer.c | for (i = 0; i < 128; i++) |
i | 1043 | drivers/sound/sequencer.c | controller[i] = ctrl_def_values[i]; |
i | 1081 | drivers/sound/sequencer.c | int retval, mode, i; |
i | 1128 | drivers/sound/sequencer.c | int i, best; |
i | 1131 | drivers/sound/sequencer.c | for (i = 0; i < num_sound_timers; i++) |
i | 1132 | drivers/sound/sequencer.c | if (sound_timer_devs[i]->priority > best) |
i | 1134 | drivers/sound/sequencer.c | tmr_no = i; |
i | 1135 | drivers/sound/sequencer.c | best = sound_timer_devs[i]->priority; |
i | 1168 | drivers/sound/sequencer.c | for (i = 0; i < max_mididev; i++) |
i | 1170 | drivers/sound/sequencer.c | midi_opened[i] = 0; |
i | 1171 | drivers/sound/sequencer.c | midi_written[i] = 0; |
i | 1177 | drivers/sound/sequencer.c | for (i = 0; i < max_synthdev; i++) /* |
i | 1180 | drivers/sound/sequencer.c | if ((tmp = synth_devs[i]->open (i, mode)) < 0) |
i | 1182 | drivers/sound/sequencer.c | printk ("Sequencer: Warning! Cannot open synth device #%d (%d)\n", i, tmp); |
i | 1183 | drivers/sound/sequencer.c | if (synth_devs[i]->midi_dev) |
i | 1184 | drivers/sound/sequencer.c | printk ("(Maps to MIDI dev #%d)\n", synth_devs[i]->midi_dev); |
i | 1188 | drivers/sound/sequencer.c | synth_open_mask |= (1 << i); |
i | 1189 | drivers/sound/sequencer.c | if (synth_devs[i]->midi_dev) /* |
i | 1192 | drivers/sound/sequencer.c | midi_opened[synth_devs[i]->midi_dev] = 1; |
i | 1203 | drivers/sound/sequencer.c | for (i = 0; i < max_mididev; i++) |
i | 1204 | drivers/sound/sequencer.c | if (!midi_opened[i]) |
i | 1206 | drivers/sound/sequencer.c | if ((retval = midi_devs[i]->open (i, mode, |
i | 1208 | drivers/sound/sequencer.c | midi_opened[i] = 1; |
i | 1221 | drivers/sound/sequencer.c | for (i = 0; i < num_synths; i++) |
i | 1222 | drivers/sound/sequencer.c | if (pmgr_present[i]) |
i | 1223 | drivers/sound/sequencer.c | pmgr_inform (i, PM_E_OPENED, 0, 0, 0, 0); |
i | 1231 | drivers/sound/sequencer.c | int i, n; |
i | 1243 | drivers/sound/sequencer.c | for (i = 0; i < max_mididev; i++) |
i | 1244 | drivers/sound/sequencer.c | if (midi_opened[i] && midi_written[i]) |
i | 1245 | drivers/sound/sequencer.c | if (midi_devs[i]->buffer_status != NULL) |
i | 1246 | drivers/sound/sequencer.c | if (midi_devs[i]->buffer_status (i)) |
i | 1278 | drivers/sound/sequencer.c | int i; |
i | 1316 | drivers/sound/sequencer.c | for (i = 0; i < max_synthdev; i++) |
i | 1317 | drivers/sound/sequencer.c | if (synth_open_mask & (1 << i)) /* |
i | 1320 | drivers/sound/sequencer.c | if (synth_devs[i]) |
i | 1322 | drivers/sound/sequencer.c | synth_devs[i]->close (i); |
i | 1324 | drivers/sound/sequencer.c | if (synth_devs[i]->midi_dev) |
i | 1325 | drivers/sound/sequencer.c | midi_opened[synth_devs[i]->midi_dev] = 0; |
i | 1328 | drivers/sound/sequencer.c | for (i = 0; i < num_synths; i++) |
i | 1329 | drivers/sound/sequencer.c | if (pmgr_present[i]) |
i | 1330 | drivers/sound/sequencer.c | pmgr_inform (i, PM_E_CLOSED, 0, 0, 0, 0); |
i | 1332 | drivers/sound/sequencer.c | for (i = 0; i < max_mididev; i++) |
i | 1333 | drivers/sound/sequencer.c | if (midi_opened[i]) |
i | 1334 | drivers/sound/sequencer.c | midi_devs[i]->close (i); |
i | 1428 | drivers/sound/sequencer.c | int i; |
i | 1440 | drivers/sound/sequencer.c | for (i = 0; i < max_synthdev; i++) |
i | 1441 | drivers/sound/sequencer.c | if (synth_open_mask & (1 << i)) |
i | 1442 | drivers/sound/sequencer.c | if (synth_devs[i]) |
i | 1443 | drivers/sound/sequencer.c | synth_devs[i]->reset (i); |
i | 1449 | drivers/sound/sequencer.c | for (i = 0; i < max_synthdev; i++) |
i | 1450 | drivers/sound/sequencer.c | if (synth_open_mask & (1 << i)) |
i | 1451 | drivers/sound/sequencer.c | if (synth_devs[i]) |
i | 1453 | drivers/sound/sequencer.c | synth_devs[i]->controller (i, chn, 123, 0); /* All notes off */ |
i | 1454 | drivers/sound/sequencer.c | synth_devs[i]->controller (i, chn, 121, 0); /* Reset all ctl */ |
i | 1455 | drivers/sound/sequencer.c | synth_devs[i]->bender (i, chn, 1 << 13); /* Bender off */ |
i | 1462 | drivers/sound/sequencer.c | for (i = 0; i < max_mididev; i++) |
i | 1463 | drivers/sound/sequencer.c | if (midi_written[i]) /* |
i | 1472 | drivers/sound/sequencer.c | midi_outc (i, 0xfe); |
i | 1476 | drivers/sound/sequencer.c | midi_outc (i, |
i | 1478 | drivers/sound/sequencer.c | midi_outc (i, 0x7b); /* All notes off */ |
i | 1479 | drivers/sound/sequencer.c | midi_outc (i, 0); /* Dummy parameter */ |
i | 1482 | drivers/sound/sequencer.c | midi_devs[i]->close (i); |
i | 1484 | drivers/sound/sequencer.c | midi_written[i] = 0; |
i | 1485 | drivers/sound/sequencer.c | midi_opened[i] = 0; |
i | 102 | drivers/sound/sound_switch.c | int i; |
i | 138 | drivers/sound/sound_switch.c | for (i = 0; i < num_sound_drivers; i++) |
i | 139 | drivers/sound/sound_switch.c | if (sound_drivers[i].card_type != 0) |
i | 143 | drivers/sound/sound_switch.c | if (!put_status_int (sound_drivers[i].card_type, 10)) |
i | 147 | drivers/sound/sound_switch.c | if (!put_status (sound_drivers[i].name)) |
i | 157 | drivers/sound/sound_switch.c | for (i = 0; i < num_sound_cards; i++) |
i | 158 | drivers/sound/sound_switch.c | if (snd_installed_cards[i].card_type != 0) |
i | 162 | drivers/sound/sound_switch.c | if (!snd_installed_cards[i].enabled) |
i | 171 | drivers/sound/sound_switch.c | if ((drv = snd_find_driver (snd_installed_cards[i].card_type)) != -1) |
i | 177 | drivers/sound/sound_switch.c | if (!put_status_int (snd_installed_cards[i].config.io_base, 16)) |
i | 182 | drivers/sound/sound_switch.c | tmp = snd_installed_cards[i].config.irq; |
i | 188 | drivers/sound/sound_switch.c | if (snd_installed_cards[i].config.dma != -1) |
i | 192 | drivers/sound/sound_switch.c | if (!put_status_int (snd_installed_cards[i].config.dma, 10)) |
i | 194 | drivers/sound/sound_switch.c | if (snd_installed_cards[i].config.dma2 != -1) |
i | 198 | drivers/sound/sound_switch.c | if (!put_status_int (snd_installed_cards[i].config.dma2, 10)) |
i | 203 | drivers/sound/sound_switch.c | if (!snd_installed_cards[i].enabled) |
i | 224 | drivers/sound/sound_switch.c | for (i = 0; i < num_audiodevs; i++) |
i | 226 | drivers/sound/sound_switch.c | if (!put_status_int (i, 10)) |
i | 230 | drivers/sound/sound_switch.c | if (!put_status (audio_devs[i]->name)) |
i | 233 | drivers/sound/sound_switch.c | if (audio_devs[i]->flags & DMA_DUPLEX) |
i | 249 | drivers/sound/sound_switch.c | for (i = 0; i < num_synths; i++) |
i | 251 | drivers/sound/sound_switch.c | if (!put_status_int (i, 10)) |
i | 255 | drivers/sound/sound_switch.c | if (!put_status (synth_devs[i]->info->name)) |
i | 269 | drivers/sound/sound_switch.c | for (i = 0; i < num_midis; i++) |
i | 271 | drivers/sound/sound_switch.c | if (!put_status_int (i, 10)) |
i | 275 | drivers/sound/sound_switch.c | if (!put_status (midi_devs[i]->info.name)) |
i | 285 | drivers/sound/sound_switch.c | for (i = 0; i < num_sound_timers; i++) |
i | 287 | drivers/sound/sound_switch.c | if (!put_status_int (i, 10)) |
i | 291 | drivers/sound/sound_switch.c | if (!put_status (sound_timer_devs[i]->info.name)) |
i | 300 | drivers/sound/sound_switch.c | for (i = 0; i < num_mixers; i++) |
i | 302 | drivers/sound/sound_switch.c | if (!put_status_int (i, 10)) |
i | 306 | drivers/sound/sound_switch.c | if (!put_status (mixer_devs[i]->name)) |
i | 377 | drivers/sound/soundcard.c | int i; |
i | 379 | drivers/sound/soundcard.c | for (i = 0; i < 31; i++) |
i | 380 | drivers/sound/soundcard.c | if (irqs & (1ul << i)) |
i | 382 | drivers/sound/soundcard.c | printk ("Sound warning: IRQ%d was left allocated - fixed.\n", i); |
i | 383 | drivers/sound/soundcard.c | snd_release_irq (i); |
i | 400 | drivers/sound/soundcard.c | int i; |
i | 411 | drivers/sound/soundcard.c | i = 0; |
i | 412 | drivers/sound/soundcard.c | while (i < 20 && sound[i]) |
i | 413 | drivers/sound/soundcard.c | ints[i + 1] = sound[i++]; |
i | 414 | drivers/sound/soundcard.c | ints[0] = i; |
i | 416 | drivers/sound/soundcard.c | if (i) |
i | 441 | drivers/sound/soundcard.c | int i; |
i | 456 | drivers/sound/soundcard.c | for (i = 0; i < sound_num_blocks; i++) |
i | 457 | drivers/sound/soundcard.c | kfree (sound_mem_blocks[i]); |
i | 461 | drivers/sound/soundcard.c | for (i = 0; i < 8; i++) |
i | 462 | drivers/sound/soundcard.c | if (dma_alloc_map[i] != DMA_MAP_UNAVAIL) |
i | 464 | drivers/sound/soundcard.c | printk ("Sound: Hmm, DMA%d was left allocated - fixed\n", i); |
i | 465 | drivers/sound/soundcard.c | sound_free_dma (i); |
i | 474 | drivers/sound/soundcard.c | int i; |
i | 476 | drivers/sound/soundcard.c | for (i = 0; i < 16; i++) |
i | 614 | drivers/sound/soundcard.c | int i, dma_pagesize; |
i | 690 | drivers/sound/soundcard.c | for (i = MAP_NR (start_addr); i <= MAP_NR (end_addr); i++) |
i | 692 | drivers/sound/soundcard.c | mem_map_reserve (i); |
i | 708 | drivers/sound/soundcard.c | int sz, size, i; |
i | 718 | drivers/sound/soundcard.c | for (i = MAP_NR (start_addr); i <= MAP_NR (end_addr); i++) |
i | 720 | drivers/sound/soundcard.c | mem_map_unreserve (i); |
i | 170 | drivers/sound/sscape.c | int i, timeout_val; |
i | 179 | drivers/sound/sscape.c | for (i = 0; i < count; i++) |
i | 191 | drivers/sound/sscape.c | outb (data[i], PORT (HOST_DATA)); |
i | 382 | drivers/sound/sscape.c | int i; |
i | 384 | drivers/sound/sscape.c | for (i = 0; i < 10; i++) |
i | 623 | drivers/sound/sscape.c | int i; |
i | 625 | drivers/sound/sscape.c | for (i = 0; i < 13; i++) |
i | 626 | drivers/sound/sscape.c | printk ("I%d = %02x (new value)\n", i, sscape_read (devc, i)); |
i | 713 | drivers/sound/sscape.c | int i; |
i | 715 | drivers/sound/sscape.c | for (i = 0; i < 13; i++) |
i | 716 | drivers/sound/sscape.c | printk ("I%d = %02x\n", i, sscape_read (devc, i)); |
i | 894 | drivers/sound/sscape.c | int i, irq_bits = 0xff; |
i | 907 | drivers/sound/sscape.c | for (i = 0; i < sizeof (valid_interrupts); i++) |
i | 908 | drivers/sound/sscape.c | if (hw_config->irq == valid_interrupts[i]) |
i | 910 | drivers/sound/sscape.c | irq_bits = i; |
i | 923 | drivers/sound/sscape.c | for (i = 1; i < 10; i++) |
i | 924 | drivers/sound/sscape.c | switch (i) |
i | 927 | drivers/sound/sscape.c | sscape_write (devc, i, 0xf0); /* All interrupts enabled */ |
i | 932 | drivers/sound/sscape.c | sscape_write (devc, i, 0x20); /* DMA channel disabled */ |
i | 936 | drivers/sound/sscape.c | sscape_write (devc, i, 0xf0 | (irq_bits << 2) | irq_bits); |
i | 940 | drivers/sound/sscape.c | sscape_write (devc, i, (regs[i] & 0x3f) | |
i | 941 | drivers/sound/sscape.c | (sscape_read (devc, i) & 0xc0)); |
i | 948 | drivers/sound/sscape.c | sscape_write (devc, i, |
i | 949 | drivers/sound/sscape.c | (sscape_read (devc, i) & 0xf0) | 0x08); |
i | 953 | drivers/sound/sscape.c | sscape_write (devc, i, regs[i]); |
i | 964 | drivers/sound/sscape.c | int i; |
i | 966 | drivers/sound/sscape.c | for (i = 0; i < 13; i++) |
i | 967 | drivers/sound/sscape.c | printk ("I%d = %02x (new value)\n", i, sscape_read (devc, i)); |
i | 1064 | drivers/sound/sscape.c | int i; |
i | 1066 | drivers/sound/sscape.c | for (i = 0; i < 13; i++) |
i | 1067 | drivers/sound/sscape.c | printk ("I%d = %02x (old value)\n", i, sscape_read (devc, i)); |
i | 1100 | drivers/sound/sscape.c | int i, irq_bits = 0xff; |
i | 1111 | drivers/sound/sscape.c | for (i = 0; i < sizeof (valid_interrupts); i++) |
i | 1112 | drivers/sound/sscape.c | if (hw_config->irq == valid_interrupts[i]) |
i | 1114 | drivers/sound/sscape.c | irq_bits = i; |
i | 1135 | drivers/sound/sscape.c | int i, irq_bits = 0xff; |
i | 1156 | drivers/sound/sscape.c | for (i = 0; i < sizeof (valid_interrupts); i++) |
i | 1157 | drivers/sound/sscape.c | if (hw_config->irq == valid_interrupts[i]) |
i | 1159 | drivers/sound/sscape.c | irq_bits = i; |
i | 1186 | drivers/sound/sscape.c | int i; |
i | 1188 | drivers/sound/sscape.c | for (i = 0; i < 13; i++) |
i | 1189 | drivers/sound/sscape.c | printk ("I%d = %02x\n", i, sscape_read (devc, i)); |
i | 69 | drivers/sound/trix.c | int i = 0, n = trix_boot_len; |
i | 85 | drivers/sound/trix.c | for (i = 0; i < n; i++) |
i | 86 | drivers/sound/trix.c | outb (trix_boot[i], 0x391); |
i | 87 | drivers/sound/trix.c | for (i = n; i < 10016; i++) /* Clear up to first 16 bytes of data RAM */ |
i | 168 | fs/binfmt_elf.c | int i; |
i | 216 | fs/binfmt_elf.c | for(i=0; i<interp_elf_ex->e_phnum; i++, eppnt++) |
i | 343 | fs/binfmt_elf.c | int i; |
i | 412 | fs/binfmt_elf.c | for(i=0;i < elf_ex.e_phnum; i++){ |
i | 543 | fs/binfmt_elf.c | for(i=0;i < elf_ex.e_phnum; i++){ |
i | 715 | fs/binfmt_elf.c | int i,j, k; |
i | 762 | fs/binfmt_elf.c | for(i=0; i<elf_ex.e_phnum; i++) |
i | 763 | fs/binfmt_elf.c | if((elf_phdata + i)->p_type == PT_LOAD) j++; |
i | 882 | fs/binfmt_elf.c | int i; |
i | 889 | fs/binfmt_elf.c | for(i = 0; i < ELF_NGREG; i++) |
i | 891 | fs/binfmt_elf.c | unsigned long val = r[i]; |
i | 892 | fs/binfmt_elf.c | printk(" %-2d %-5s=%08lx %lu\n", i, regs[i], val, val); |
i | 943 | fs/binfmt_elf.c | int i; |
i | 1089 | fs/binfmt_elf.c | int i, len; |
i | 1097 | fs/binfmt_elf.c | for(i = 0; i < len; i++) |
i | 1098 | fs/binfmt_elf.c | if (psinfo.pr_psargs[i] == 0) |
i | 1099 | fs/binfmt_elf.c | psinfo.pr_psargs[i] = ' '; |
i | 1130 | fs/binfmt_elf.c | for(i = 0; i < numnote; i++) |
i | 1131 | fs/binfmt_elf.c | sz += notesize(¬es[i]); |
i | 1150 | fs/binfmt_elf.c | for(vma = current->mm->mmap, i = 0; |
i | 1151 | fs/binfmt_elf.c | i < segs && vma != NULL; vma = vma->vm_next) { |
i | 1157 | fs/binfmt_elf.c | i++; |
i | 1176 | fs/binfmt_elf.c | for(i = 0; i < numnote; i++) |
i | 1177 | fs/binfmt_elf.c | if (!writenote(¬es[i], &file)) |
i | 1184 | fs/binfmt_elf.c | for(i = 0, vma = current->mm->mmap; |
i | 1185 | fs/binfmt_elf.c | i < segs && vma != NULL; |
i | 1192 | fs/binfmt_elf.c | i++; |
i | 25 | fs/block_dev.c | int blocksize, blocksize_bits, i, j, buffercount,write_error; |
i | 47 | fs/block_dev.c | i = blocksize; |
i | 49 | fs/block_dev.c | while(i != 1) { |
i | 51 | fs/block_dev.c | i >>= 1; |
i | 77 | fs/block_dev.c | for(i=0; i<blocks_per_cluster; i++) cluster_list[i] = block+i; |
i | 97 | fs/block_dev.c | for(i=1; i<blocks; i++){ |
i | 98 | fs/block_dev.c | if(((i+block) % blocks_per_cluster) == 0) { |
i | 99 | fs/block_dev.c | for(j=0; j<blocks_per_cluster; j++) cluster_list[j] = block+i+j; |
i | 102 | fs/block_dev.c | bhlist[i] = getblk (dev, block+i, blocksize); |
i | 103 | fs/block_dev.c | if(!bhlist[i]){ |
i | 104 | fs/block_dev.c | while(i >= 0) brelse(bhlist[i--]); |
i | 109 | fs/block_dev.c | for(i=1; i<blocks; i++) brelse(bhlist[i]); |
i | 134 | fs/block_dev.c | for(i=0; i<buffercount; i++){ |
i | 135 | fs/block_dev.c | wait_on_buffer(bufferlist[i]); |
i | 136 | fs/block_dev.c | if (!buffer_uptodate(bufferlist[i])) |
i | 138 | fs/block_dev.c | brelse(bufferlist[i]); |
i | 147 | fs/block_dev.c | for(i=0; i<buffercount; i++){ |
i | 148 | fs/block_dev.c | wait_on_buffer(bufferlist[i]); |
i | 149 | fs/block_dev.c | if (!buffer_uptodate(bufferlist[i])) |
i | 151 | fs/block_dev.c | brelse(bufferlist[i]); |
i | 165 | fs/block_dev.c | int blocksize_bits, i; |
i | 183 | fs/block_dev.c | i = blocksize; |
i | 185 | fs/block_dev.c | while (i != 1) { |
i | 187 | fs/block_dev.c | i >>= 1; |
i | 245 | fs/block_dev.c | for(i=0; i<blocks_per_cluster; i++) cluster_list[i] = block+i; |
i | 155 | fs/buffer.c | int i, retry, pass = 0, err = 0; |
i | 174 | fs/buffer.c | for (i = nr_buffers_type[nlist]*2 ; i-- > 0 ; bh = next) { |
i | 290 | fs/buffer.c | int i; |
i | 296 | fs/buffer.c | for (i = nr_buffers_type[nlist]*2 ; --i > 0 ; bh = bh->b_next_free) { |
i | 503 | fs/buffer.c | int i, nlist; |
i | 531 | fs/buffer.c | for (i = nr_buffers_type[nlist]*2 ; --i > 0 ; bh = bhnext) { |
i | 560 | fs/buffer.c | int i; |
i | 601 | fs/buffer.c | for(i=0; i<NR_LIST; i++){ |
i | 602 | fs/buffer.c | if(i == BUF_DIRTY || i == BUF_SHARED || |
i | 603 | fs/buffer.c | nr_buffers_type[i] == 0) { |
i | 604 | fs/buffer.c | candidate[i] = NULL; |
i | 605 | fs/buffer.c | buffers[i] = 0; |
i | 608 | fs/buffer.c | buffers[i] = nr_buffers_type[i]; |
i | 609 | fs/buffer.c | for (bh = lru_list[i]; buffers[i] > 0; bh = tmp, buffers[i]--) |
i | 611 | fs/buffer.c | if(buffers[i] < 0) panic("Here is the problem"); |
i | 628 | fs/buffer.c | if (buffer_locked(bh) && (i == BUF_LOCKED || i == BUF_LOCKED1)) { |
i | 629 | fs/buffer.c | buffers[i] = 0; |
i | 636 | fs/buffer.c | if(!buffers[i]) candidate[i] = NULL; /* Nothing on this list */ |
i | 637 | fs/buffer.c | else candidate[i] = bh; |
i | 638 | fs/buffer.c | if(candidate[i] && candidate[i]->b_count) panic("Here is the problem"); |
i | 647 | fs/buffer.c | for(i=0; i<NR_LIST; i++){ |
i | 648 | fs/buffer.c | if(!candidate[i]) continue; |
i | 649 | fs/buffer.c | if(candidate[i]->b_lru_time < best_time){ |
i | 650 | fs/buffer.c | best_time = candidate[i]->b_lru_time; |
i | 651 | fs/buffer.c | winner = i; |
i | 657 | fs/buffer.c | i = winner; |
i | 658 | fs/buffer.c | bh = candidate[i]; |
i | 659 | fs/buffer.c | candidate[i] = bh->b_next_free; |
i | 660 | fs/buffer.c | if(candidate[i] == bh) candidate[i] = NULL; /* Got last one */ |
i | 675 | fs/buffer.c | buffers[i]--; |
i | 676 | fs/buffer.c | if(buffers[i] < 0) panic("Here is the problem"); |
i | 678 | fs/buffer.c | if(buffers[i] == 0) candidate[i] = NULL; |
i | 682 | fs/buffer.c | if(candidate[i] && buffers[i] > 0){ |
i | 683 | fs/buffer.c | if(buffers[i] <= 0) panic("Here is another problem"); |
i | 684 | fs/buffer.c | for (bh = candidate[i]; buffers[i] > 0; bh = tmp, buffers[i]--) { |
i | 685 | fs/buffer.c | if(buffers[i] < 0) panic("Here is the problem"); |
i | 702 | fs/buffer.c | if (buffer_locked(bh) && (i == BUF_LOCKED || i == BUF_LOCKED1)) { |
i | 703 | fs/buffer.c | buffers[i] = 0; |
i | 710 | fs/buffer.c | if(!buffers[i]) candidate[i] = NULL; /* Nothing here */ |
i | 711 | fs/buffer.c | else candidate[i] = bh; |
i | 712 | fs/buffer.c | if(candidate[i] && candidate[i]->b_count) |
i | 912 | fs/buffer.c | int i, j; |
i | 934 | fs/buffer.c | for(i=1; i<blocks; i++) { |
i | 935 | fs/buffer.c | bh = getblk(dev,block+i,bufsize); |
i | 946 | fs/buffer.c | for(i=1; i<j; i++) |
i | 947 | fs/buffer.c | brelse(bhlist[i]); |
i | 975 | fs/buffer.c | int i; |
i | 999 | fs/buffer.c | for (nr_buffer_heads+=i=PAGE_SIZE/sizeof*bh ; i>0; i--) { |
i | 1259 | fs/buffer.c | int i; |
i | 1265 | fs/buffer.c | i = PAGE_SIZE >> inode->i_sb->s_blocksize_bits; |
i | 1270 | fs/buffer.c | i--; |
i | 1273 | fs/buffer.c | } while (i > 0); |
i | 1480 | fs/buffer.c | int i, isize, isize1; |
i | 1493 | fs/buffer.c | for (i=0 ; !i || bh != free_list[isize]; bh = bh->b_next_free, i++) { |
i | 1511 | fs/buffer.c | i = nr_buffers_type[nlist]; |
i | 1512 | fs/buffer.c | i = ((BUFFEROUT_WEIGHT * i) >> 10) >> priority; |
i | 1513 | fs/buffer.c | for ( ; i > 0; i-- ) { |
i | 1668 | fs/buffer.c | int i; |
i | 1678 | fs/buffer.c | for (i=0 ; !i || bh != free_list[isize] ; bh = bh->b_next_free, i++) { |
i | 1746 | fs/buffer.c | int i, offset; |
i | 1748 | fs/buffer.c | for (i = 0, offset = 0 ; offset < PAGE_SIZE ; i++, offset += size) { |
i | 1749 | fs/buffer.c | if(i && b[i]-1 != b[i-1]) return 0; /* No need to cluster */ |
i | 1750 | fs/buffer.c | if(find_buffer(dev, b[i], size)) return 0; |
i | 1782 | fs/buffer.c | int i; |
i | 1799 | fs/buffer.c | for (i = 0 ; i < nr_hash ; i++) |
i | 1800 | fs/buffer.c | hash_table[i] = NULL; |
i | 1835 | fs/buffer.c | int i, isize; |
i | 1856 | fs/buffer.c | for (i = nr_buffers_type[nlist]; i-- > 0; bh = next) { |
i | 1861 | fs/buffer.c | printk("Dirty list empty %d\n", i); |
i | 1909 | fs/buffer.c | int i, error; |
i | 1919 | fs/buffer.c | i = (func-2) >> 1; |
i | 1920 | fs/buffer.c | if (i < 0 || i >= N_PARAM) |
i | 1926 | fs/buffer.c | put_user(bdf_prm.data[i], (int*)data); |
i | 1929 | fs/buffer.c | if (data < bdflush_min[i] || data > bdflush_max[i]) |
i | 1931 | fs/buffer.c | bdf_prm.data[i] = data; |
i | 1948 | fs/buffer.c | int i; |
i | 1991 | fs/buffer.c | for (i = nr_buffers_type[nlist]; i-- > 0 && ndirty < bdf_prm.b_un.ndirty; |
i | 1997 | fs/buffer.c | printk("Dirty list empty %d\n", i); |
i | 226 | fs/dcache.c | int i; |
i | 260 | fs/dcache.c | for (i = 0 ; i < DCACHE_HASH_QUEUES ; i++) |
i | 261 | fs/dcache.c | hash_table[i].next = hash_table[i].next = |
i | 262 | fs/dcache.c | (struct dir_cache_entry *) &hash_table[i]; |
i | 39 | fs/devices.c | int i; |
i | 43 | fs/devices.c | for (i = 0; i < MAX_CHRDEV ; i++) { |
i | 44 | fs/devices.c | if (chrdevs[i].fops) { |
i | 45 | fs/devices.c | len += sprintf(page+len, "%2d %s\n", i, chrdevs[i].name); |
i | 49 | fs/devices.c | for (i = 0; i < MAX_BLKDEV ; i++) { |
i | 50 | fs/devices.c | if (blkdevs[i].fops) { |
i | 51 | fs/devices.c | len += sprintf(page+len, "%2d %s\n", i, blkdevs[i].name); |
i | 184 | fs/devices.c | int i; |
i | 187 | fs/devices.c | i = MAJOR(dev); |
i | 188 | fs/devices.c | if (i >= MAX_BLKDEV || (fops = blkdevs[i].fops) == NULL) |
i | 197 | fs/devices.c | for (i=0 ; i<NR_SUPER ; i++) |
i | 198 | fs/devices.c | if (super_blocks[i].s_dev == dev) |
i | 199 | fs/devices.c | put_super(super_blocks[i].s_dev); |
i | 279 | fs/dquot.c | int i; |
i | 282 | fs/dquot.c | for (i = 0; i < nr_dquots * 2; i++, dquot = dquot->dq_next) { |
i | 190 | fs/exec.c | int error, i = 0; |
i | 198 | fs/exec.c | i++; |
i | 204 | fs/exec.c | return i; |
i | 285 | fs/exec.c | int i; |
i | 309 | fs/exec.c | for (i = 0 ; i < MAX_ARG_PAGES ; i++) { |
i | 310 | fs/exec.c | if (bprm->page[i]) { |
i | 312 | fs/exec.c | put_dirty_page(current,bprm->page[i],stack_base); |
i | 404 | fs/exec.c | int i; |
i | 411 | fs/exec.c | for (i=0; (ch = *(name++)) != '\0';) { |
i | 413 | fs/exec.c | i = 0; |
i | 415 | fs/exec.c | if (i < 15) |
i | 416 | fs/exec.c | current->comm[i++] = ch; |
i | 418 | fs/exec.c | current->comm[i] = '\0'; |
i | 429 | fs/exec.c | for (i=0 ; i<32 ; i++) { |
i | 430 | fs/exec.c | current->sig->action[i].sa_mask = 0; |
i | 431 | fs/exec.c | current->sig->action[i].sa_flags = 0; |
i | 432 | fs/exec.c | if (current->sig->action[i].sa_handler != SIG_IGN) |
i | 433 | fs/exec.c | current->sig->action[i].sa_handler = NULL; |
i | 435 | fs/exec.c | for (i=0 ; i<NR_OPEN ; i++) |
i | 436 | fs/exec.c | if (FD_ISSET(i,¤t->files->close_on_exec)) |
i | 437 | fs/exec.c | sys_close(i); |
i | 450 | fs/exec.c | int retval,i; |
i | 457 | fs/exec.c | i = bprm->inode->i_mode; |
i | 459 | fs/exec.c | (((i & S_ISUID) && bprm->inode->i_uid != current->euid) |
i | 460 | fs/exec.c | || ((i & S_ISGID) && !in_group_p(bprm->inode->i_gid))) && !suser()) |
i | 467 | fs/exec.c | bprm->e_uid = (i & S_ISUID) ? bprm->inode->i_uid : current->euid; |
i | 468 | fs/exec.c | bprm->e_gid = (i & S_ISGID) ? bprm->inode->i_gid : current->egid; |
i | 577 | fs/exec.c | int i; |
i | 580 | fs/exec.c | for (i=0 ; i<MAX_ARG_PAGES ; i++) /* clear page-table */ |
i | 581 | fs/exec.c | bprm.page[i] = 0; |
i | 615 | fs/exec.c | for (i=0 ; i<MAX_ARG_PAGES ; i++) |
i | 616 | fs/exec.c | free_page(bprm.page[i]); |
i | 70 | fs/ext/dir.c | unsigned int i; |
i | 87 | fs/ext/dir.c | for (i = 0; i < 1024 && i < offset; ) { |
i | 88 | fs/ext/dir.c | de = (struct ext_dir_entry *) (bh->b_data + i); |
i | 91 | fs/ext/dir.c | i += de->rec_len; |
i | 93 | fs/ext/dir.c | offset = i; |
i | 85 | fs/ext/fsync.c | int i; |
i | 88 | fs/ext/fsync.c | for (i = 0; i < 9; i++) { |
i | 89 | fs/ext/fsync.c | rc = sync_block (inode, inode->u.ext_i.i_data + i, wait); |
i | 100 | fs/ext/fsync.c | int i; |
i | 108 | fs/ext/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 110 | fs/ext/fsync.c | ((unsigned long *) ind_bh->b_data) + i, |
i | 124 | fs/ext/fsync.c | int i; |
i | 132 | fs/ext/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 134 | fs/ext/fsync.c | ((unsigned long *) dind_bh->b_data) + i, |
i | 148 | fs/ext/fsync.c | int i; |
i | 156 | fs/ext/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 158 | fs/ext/fsync.c | ((unsigned long *) tind_bh->b_data) + i, |
i | 187 | fs/ext/inode.c | int i; |
i | 201 | fs/ext/inode.c | i = inode_bmap(inode,9); |
i | 202 | fs/ext/inode.c | if (!i) |
i | 204 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
i | 208 | fs/ext/inode.c | i = inode_bmap(inode,10); |
i | 209 | fs/ext/inode.c | if (!i) |
i | 211 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>8); |
i | 212 | fs/ext/inode.c | if (!i) |
i | 214 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
i | 217 | fs/ext/inode.c | i = inode_bmap(inode,11); |
i | 218 | fs/ext/inode.c | if (!i) |
i | 220 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>16); |
i | 221 | fs/ext/inode.c | if (!i) |
i | 223 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),(block>>8) & 255); |
i | 224 | fs/ext/inode.c | if (!i) |
i | 226 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
i | 192 | fs/ext/namei.c | int i; |
i | 294 | fs/ext/namei.c | for (i=0; i < namelen ; i++) |
i | 295 | fs/ext/namei.c | de->name[i] = name[i]; |
i | 635 | fs/ext/namei.c | int i; |
i | 652 | fs/ext/namei.c | i = 0; |
i | 653 | fs/ext/namei.c | while (i < 1023 && (c = *(symname++))) |
i | 654 | fs/ext/namei.c | name_block->b_data[i++] = c; |
i | 655 | fs/ext/namei.c | name_block->b_data[i] = 0; |
i | 658 | fs/ext/namei.c | inode->i_size = i; |
i | 90 | fs/ext/symlink.c | int i; |
i | 103 | fs/ext/symlink.c | i = 0; |
i | 104 | fs/ext/symlink.c | while (i<buflen && (c = bh->b_data[i])) { |
i | 105 | fs/ext/symlink.c | i++; |
i | 109 | fs/ext/symlink.c | return i; |
i | 34 | fs/ext/truncate.c | int i, tmp; |
i | 41 | fs/ext/truncate.c | for (i = DIRECT_BLOCK ; i < 9 ; i++) { |
i | 42 | fs/ext/truncate.c | p = inode->u.ext_i.i_data+i; |
i | 46 | fs/ext/truncate.c | if (i < DIRECT_BLOCK) { |
i | 65 | fs/ext/truncate.c | int i, tmp; |
i | 85 | fs/ext/truncate.c | for (i = INDIRECT_BLOCK ; i < 256 ; i++) { |
i | 86 | fs/ext/truncate.c | if (i < 0) |
i | 87 | fs/ext/truncate.c | i = 0; |
i | 88 | fs/ext/truncate.c | if (i < INDIRECT_BLOCK) |
i | 90 | fs/ext/truncate.c | ind = i+(unsigned long *) ind_bh->b_data; |
i | 95 | fs/ext/truncate.c | if (i < INDIRECT_BLOCK) { |
i | 110 | fs/ext/truncate.c | for (i = 0; i < 256; i++) |
i | 113 | fs/ext/truncate.c | if (i >= 256) |
i | 128 | fs/ext/truncate.c | int i,tmp; |
i | 147 | fs/ext/truncate.c | for (i = DINDIRECT_BLOCK ; i < 256 ; i ++) { |
i | 148 | fs/ext/truncate.c | if (i < 0) |
i | 149 | fs/ext/truncate.c | i = 0; |
i | 150 | fs/ext/truncate.c | if (i < DINDIRECT_BLOCK) |
i | 152 | fs/ext/truncate.c | dind = i+(unsigned long *) dind_bh->b_data; |
i | 156 | fs/ext/truncate.c | retry |= trunc_indirect(inode,offset+(i<<8),dind); |
i | 160 | fs/ext/truncate.c | for (i = 0; i < 256; i++) |
i | 163 | fs/ext/truncate.c | if (i >= 256) |
i | 178 | fs/ext/truncate.c | int i,tmp; |
i | 197 | fs/ext/truncate.c | for (i = TINDIRECT_BLOCK ; i < 256 ; i ++) { |
i | 198 | fs/ext/truncate.c | if (i < 0) |
i | 199 | fs/ext/truncate.c | i = 0; |
i | 200 | fs/ext/truncate.c | if (i < TINDIRECT_BLOCK) |
i | 202 | fs/ext/truncate.c | tind = i+(unsigned long *) tind_bh->b_data; |
i | 203 | fs/ext/truncate.c | retry |= trunc_dindirect(inode,9+256+256*256+(i<<16),tind); |
i | 207 | fs/ext/truncate.c | for (i = 0; i < 256; i++) |
i | 210 | fs/ext/truncate.c | if (i >= 256) |
i | 98 | fs/ext2/balloc.c | int i, j; |
i | 122 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_loaded_block_bitmaps && |
i | 123 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[i] != block_group; i++) |
i | 125 | fs/ext2/balloc.c | if (i < sb->u.ext2_sb.s_loaded_block_bitmaps && |
i | 126 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[i] == block_group) { |
i | 127 | fs/ext2/balloc.c | block_bitmap_number = sb->u.ext2_sb.s_block_bitmap_number[i]; |
i | 128 | fs/ext2/balloc.c | block_bitmap = sb->u.ext2_sb.s_block_bitmap[i]; |
i | 129 | fs/ext2/balloc.c | for (j = i; j > 0; j--) { |
i | 175 | fs/ext2/balloc.c | unsigned long i; |
i | 223 | fs/ext2/balloc.c | for (i = 0; i < count; i++) { |
i | 224 | fs/ext2/balloc.c | if (!clear_bit (bit + i, bh->b_data)) |
i | 262 | fs/ext2/balloc.c | int i, j, k, tmp; |
i | 295 | fs/ext2/balloc.c | i = (goal - es->s_first_data_block) / EXT2_BLOCKS_PER_GROUP(sb); |
i | 296 | fs/ext2/balloc.c | gdp = get_group_desc (sb, i, &bh2); |
i | 303 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 306 | fs/ext2/balloc.c | ext2_debug ("goal is at %d:%d.\n", i, j); |
i | 357 | fs/ext2/balloc.c | ext2_debug ("Bit not found in block group %d.\n", i); |
i | 364 | fs/ext2/balloc.c | i++; |
i | 365 | fs/ext2/balloc.c | if (i >= sb->u.ext2_sb.s_groups_count) |
i | 366 | fs/ext2/balloc.c | i = 0; |
i | 367 | fs/ext2/balloc.c | gdp = get_group_desc (sb, i, &bh2); |
i | 375 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 386 | fs/ext2/balloc.c | "Free blocks count corrupted for block group %d", i); |
i | 401 | fs/ext2/balloc.c | ext2_debug ("using block group %d(%d)\n", i, gdp->bg_free_blocks_count); |
i | 413 | fs/ext2/balloc.c | tmp = j + i * EXT2_BLOCKS_PER_GROUP(sb) + es->s_first_data_block; |
i | 470 | fs/ext2/balloc.c | "block_group = %d, block=%d", i, j); |
i | 504 | fs/ext2/balloc.c | int i; |
i | 511 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 512 | fs/ext2/balloc.c | gdp = get_group_desc (sb, i, NULL); |
i | 514 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 518 | fs/ext2/balloc.c | i, gdp->bg_free_blocks_count, x); |
i | 546 | fs/ext2/balloc.c | int i, j; |
i | 555 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 556 | fs/ext2/balloc.c | gdp = get_group_desc (sb, i, NULL); |
i | 558 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 563 | fs/ext2/balloc.c | "Superblock in group %d is marked free", i); |
i | 569 | fs/ext2/balloc.c | "%d is marked free", j, i); |
i | 574 | fs/ext2/balloc.c | i); |
i | 579 | fs/ext2/balloc.c | i); |
i | 585 | fs/ext2/balloc.c | "group %d is marked free", j, i); |
i | 591 | fs/ext2/balloc.c | "stored = %d, counted = %lu", i, |
i | 17 | fs/ext2/bitmap.c | unsigned int i; |
i | 22 | fs/ext2/bitmap.c | for (i = 0; i < numchars; i++) |
i | 23 | fs/ext2/bitmap.c | sum += nibblemap[map->b_data[i] & 0xf] + |
i | 24 | fs/ext2/bitmap.c | nibblemap[(map->b_data[i] >> 4) & 0xf]; |
i | 105 | fs/ext2/dir.c | int i, num, stored; |
i | 134 | fs/ext2/dir.c | for (i = 16 >> (EXT2_BLOCK_SIZE_BITS(sb) - 9), num = 0; |
i | 135 | fs/ext2/dir.c | i > 0; i--) { |
i | 144 | fs/ext2/dir.c | for (i = 0; i < num; i++) |
i | 145 | fs/ext2/dir.c | brelse (bha[i]); |
i | 155 | fs/ext2/dir.c | for (i = 0; i < sb->s_blocksize && i < offset; ) { |
i | 157 | fs/ext2/dir.c | (bh->b_data + i); |
i | 166 | fs/ext2/dir.c | i += de->rec_len; |
i | 168 | fs/ext2/dir.c | offset = i; |
i | 95 | fs/ext2/file.c | int i,buffercount,write_error; |
i | 170 | fs/ext2/file.c | for(i=0; i<buffercount; i++){ |
i | 171 | fs/ext2/file.c | wait_on_buffer(bufferlist[i]); |
i | 172 | fs/ext2/file.c | if (!buffer_uptodate(bufferlist[i])) |
i | 174 | fs/ext2/file.c | brelse(bufferlist[i]); |
i | 186 | fs/ext2/file.c | for(i=0; i<buffercount; i++){ |
i | 187 | fs/ext2/file.c | wait_on_buffer(bufferlist[i]); |
i | 188 | fs/ext2/file.c | if (!buffer_uptodate(bufferlist[i])) |
i | 190 | fs/ext2/file.c | brelse(bufferlist[i]); |
i | 84 | fs/ext2/fsync.c | int i; |
i | 87 | fs/ext2/fsync.c | for (i = 0; i < EXT2_NDIR_BLOCKS; i++) { |
i | 88 | fs/ext2/fsync.c | rc = sync_block (inode, inode->u.ext2_i.i_data + i, wait); |
i | 99 | fs/ext2/fsync.c | int i; |
i | 107 | fs/ext2/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 109 | fs/ext2/fsync.c | ((u32 *) ind_bh->b_data) + i, |
i | 122 | fs/ext2/fsync.c | int i; |
i | 130 | fs/ext2/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 132 | fs/ext2/fsync.c | ((u32 *) dind_bh->b_data) + i, |
i | 145 | fs/ext2/fsync.c | int i; |
i | 153 | fs/ext2/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 155 | fs/ext2/fsync.c | ((u32 *) tind_bh->b_data) + i, |
i | 97 | fs/ext2/ialloc.c | int i, j; |
i | 122 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_loaded_inode_bitmaps && |
i | 123 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[i] != block_group; |
i | 124 | fs/ext2/ialloc.c | i++) |
i | 126 | fs/ext2/ialloc.c | if (i < sb->u.ext2_sb.s_loaded_inode_bitmaps && |
i | 127 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[i] == block_group) { |
i | 128 | fs/ext2/ialloc.c | inode_bitmap_number = sb->u.ext2_sb.s_inode_bitmap_number[i]; |
i | 129 | fs/ext2/ialloc.c | inode_bitmap = sb->u.ext2_sb.s_inode_bitmap[i]; |
i | 130 | fs/ext2/ialloc.c | for (j = i; j > 0; j--) { |
i | 313 | fs/ext2/ialloc.c | int i, j, avefreei; |
i | 328 | fs/ext2/ialloc.c | gdp = NULL; i=0; |
i | 355 | fs/ext2/ialloc.c | i = j; |
i | 367 | fs/ext2/ialloc.c | i = dir->u.ext2_i.i_block_group; |
i | 368 | fs/ext2/ialloc.c | tmp = get_group_desc (sb, i, &bh2); |
i | 378 | fs/ext2/ialloc.c | i += j; |
i | 379 | fs/ext2/ialloc.c | if (i >= sb->u.ext2_sb.s_groups_count) |
i | 380 | fs/ext2/ialloc.c | i -= sb->u.ext2_sb.s_groups_count; |
i | 381 | fs/ext2/ialloc.c | tmp = get_group_desc (sb, i, &bh2); |
i | 392 | fs/ext2/ialloc.c | i = dir->u.ext2_i.i_block_group + 1; |
i | 394 | fs/ext2/ialloc.c | if (++i >= sb->u.ext2_sb.s_groups_count) |
i | 395 | fs/ext2/ialloc.c | i = 0; |
i | 396 | fs/ext2/ialloc.c | tmp = get_group_desc (sb, i, &bh2); |
i | 410 | fs/ext2/ialloc.c | bitmap_nr = load_inode_bitmap (sb, i); |
i | 429 | fs/ext2/ialloc.c | i); |
i | 436 | fs/ext2/ialloc.c | j += i * EXT2_INODES_PER_GROUP(sb) + 1; |
i | 440 | fs/ext2/ialloc.c | "block_group = %d,inode=%d", i, j); |
i | 480 | fs/ext2/ialloc.c | inode->u.ext2_i.i_block_group = i; |
i | 512 | fs/ext2/ialloc.c | int i; |
i | 519 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 520 | fs/ext2/ialloc.c | gdp = get_group_desc (sb, i, NULL); |
i | 522 | fs/ext2/ialloc.c | bitmap_nr = load_inode_bitmap (sb, i); |
i | 526 | fs/ext2/ialloc.c | i, gdp->bg_free_inodes_count, x); |
i | 544 | fs/ext2/ialloc.c | int i; |
i | 551 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 552 | fs/ext2/ialloc.c | gdp = get_group_desc (sb, i, NULL); |
i | 554 | fs/ext2/ialloc.c | bitmap_nr = load_inode_bitmap (sb, i); |
i | 560 | fs/ext2/ialloc.c | "stored = %d, counted = %lu", i, |
i | 129 | fs/ext2/inode.c | int i; |
i | 147 | fs/ext2/inode.c | i = inode_bmap (inode, EXT2_IND_BLOCK); |
i | 148 | fs/ext2/inode.c | if (!i) |
i | 150 | fs/ext2/inode.c | return block_bmap (bread (inode->i_dev, i, |
i | 155 | fs/ext2/inode.c | i = inode_bmap (inode, EXT2_DIND_BLOCK); |
i | 156 | fs/ext2/inode.c | if (!i) |
i | 158 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, |
i | 161 | fs/ext2/inode.c | if (!i) |
i | 163 | fs/ext2/inode.c | return block_bmap (bread (inode->i_dev, i, |
i | 168 | fs/ext2/inode.c | i = inode_bmap (inode, EXT2_TIND_BLOCK); |
i | 169 | fs/ext2/inode.c | if (!i) |
i | 171 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i | 173 | fs/ext2/inode.c | if (!i) |
i | 175 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i | 177 | fs/ext2/inode.c | if (!i) |
i | 179 | fs/ext2/inode.c | return block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i | 332 | fs/ext2/inode.c | int i; |
i | 342 | fs/ext2/inode.c | for(i=0; i< (PAGE_SIZE >> EXT2_BLOCK_SIZE_BITS(inode->i_sb)); i++) { |
i | 343 | fs/ext2/inode.c | p = (u32 *) bh->b_data + nr + i; |
i | 349 | fs/ext2/inode.c | if(i==0) firstblock = *p; |
i | 350 | fs/ext2/inode.c | else if(*p != firstblock + i) goto out; |
i | 76 | fs/ext2/namei.c | int block, toread, i, err; |
i | 136 | fs/ext2/namei.c | for (i = 0; i < NAMEI_RA_SIZE; ++i) { |
i | 137 | fs/ext2/namei.c | if (bh_use[i] != bh) |
i | 138 | fs/ext2/namei.c | brelse (bh_use[i]); |
i | 160 | fs/ext2/namei.c | for (i = 0; i < NAMEI_RA_SIZE; ++i) |
i | 161 | fs/ext2/namei.c | brelse (bh_use[i]); |
i | 345 | fs/ext2/namei.c | int i; |
i | 347 | fs/ext2/namei.c | i = 0; |
i | 350 | fs/ext2/namei.c | while (i < bh->b_size) { |
i | 352 | fs/ext2/namei.c | de, bh, i)) |
i | 360 | fs/ext2/namei.c | i += de->rec_len; |
i | 760 | fs/ext2/namei.c | int i, err; |
i | 792 | fs/ext2/namei.c | i = 0; |
i | 793 | fs/ext2/namei.c | while (i < inode->i_sb->s_blocksize - 1 && (c = *(symname++))) |
i | 794 | fs/ext2/namei.c | link[i++] = c; |
i | 795 | fs/ext2/namei.c | link[i] = 0; |
i | 800 | fs/ext2/namei.c | inode->i_size = i; |
i | 101 | fs/ext2/super.c | int i; |
i | 110 | fs/ext2/super.c | for (i = 0; i < db_count; i++) |
i | 111 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc[i]) |
i | 112 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[i]); |
i | 115 | fs/ext2/super.c | for (i = 0; i < EXT2_MAX_GROUP_LOADED; i++) |
i | 116 | fs/ext2/super.c | if (sb->u.ext2_sb.s_inode_bitmap[i]) |
i | 117 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_inode_bitmap[i]); |
i | 118 | fs/ext2/super.c | for (i = 0; i < EXT2_MAX_GROUP_LOADED; i++) |
i | 119 | fs/ext2/super.c | if (sb->u.ext2_sb.s_block_bitmap[i]) |
i | 120 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_block_bitmap[i]); |
i | 318 | fs/ext2/super.c | int i; |
i | 325 | fs/ext2/super.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) |
i | 327 | fs/ext2/super.c | if ((i % EXT2_DESC_PER_BLOCK(sb)) == 0) |
i | 335 | fs/ext2/super.c | i, (unsigned long) gdp->bg_block_bitmap); |
i | 344 | fs/ext2/super.c | i, (unsigned long) gdp->bg_inode_bitmap); |
i | 354 | fs/ext2/super.c | i, (unsigned long) gdp->bg_inode_table); |
i | 376 | fs/ext2/super.c | int i, j; |
i | 547 | fs/ext2/super.c | for (i = 0; i < db_count; i++) { |
i | 548 | fs/ext2/super.c | sb->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1, |
i | 550 | fs/ext2/super.c | if (!sb->u.ext2_sb.s_group_desc[i]) { |
i | 553 | fs/ext2/super.c | for (j = 0; j < i; j++) |
i | 575 | fs/ext2/super.c | for (i = 0; i < EXT2_MAX_GROUP_LOADED; i++) { |
i | 576 | fs/ext2/super.c | sb->u.ext2_sb.s_inode_bitmap_number[i] = 0; |
i | 577 | fs/ext2/super.c | sb->u.ext2_sb.s_inode_bitmap[i] = NULL; |
i | 578 | fs/ext2/super.c | sb->u.ext2_sb.s_block_bitmap_number[i] = 0; |
i | 579 | fs/ext2/super.c | sb->u.ext2_sb.s_block_bitmap[i] = NULL; |
i | 592 | fs/ext2/super.c | for (i = 0; i < db_count; i++) |
i | 593 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc[i]) |
i | 594 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[i]); |
i | 102 | fs/ext2/symlink.c | int i, err; |
i | 121 | fs/ext2/symlink.c | i = 0; |
i | 122 | fs/ext2/symlink.c | while (i < buflen && (c = link[i])) { |
i | 123 | fs/ext2/symlink.c | i++; |
i | 129 | fs/ext2/symlink.c | return i; |
i | 62 | fs/ext2/truncate.c | int i, tmp; |
i | 73 | fs/ext2/truncate.c | for (i = direct_block ; i < EXT2_NDIR_BLOCKS ; i++) { |
i | 74 | fs/ext2/truncate.c | p = inode->u.ext2_i.i_data + i; |
i | 80 | fs/ext2/truncate.c | if (i < direct_block) { |
i | 112 | fs/ext2/truncate.c | int i, tmp; |
i | 137 | fs/ext2/truncate.c | for (i = indirect_block ; i < addr_per_block ; i++) { |
i | 138 | fs/ext2/truncate.c | if (i < 0) |
i | 139 | fs/ext2/truncate.c | i = 0; |
i | 140 | fs/ext2/truncate.c | if (i < indirect_block) |
i | 142 | fs/ext2/truncate.c | ind = i + (u32 *) ind_bh->b_data; |
i | 148 | fs/ext2/truncate.c | if (i < indirect_block) { |
i | 177 | fs/ext2/truncate.c | for (i = 0; i < addr_per_block; i++) |
i | 180 | fs/ext2/truncate.c | if (i >= addr_per_block) |
i | 201 | fs/ext2/truncate.c | int i, tmp; |
i | 223 | fs/ext2/truncate.c | for (i = dindirect_block ; i < addr_per_block ; i++) { |
i | 224 | fs/ext2/truncate.c | if (i < 0) |
i | 225 | fs/ext2/truncate.c | i = 0; |
i | 226 | fs/ext2/truncate.c | if (i < dindirect_block) |
i | 228 | fs/ext2/truncate.c | dind = i + (u32 *) dind_bh->b_data; |
i | 232 | fs/ext2/truncate.c | retry |= trunc_indirect (inode, offset + (i * addr_per_block), |
i | 237 | fs/ext2/truncate.c | for (i = 0; i < addr_per_block; i++) |
i | 240 | fs/ext2/truncate.c | if (i >= addr_per_block) |
i | 260 | fs/ext2/truncate.c | int i, tmp; |
i | 284 | fs/ext2/truncate.c | for (i = tindirect_block ; i < addr_per_block ; i++) { |
i | 285 | fs/ext2/truncate.c | if (i < 0) |
i | 286 | fs/ext2/truncate.c | i = 0; |
i | 287 | fs/ext2/truncate.c | if (i < tindirect_block) |
i | 289 | fs/ext2/truncate.c | tind = i + (u32 *) tind_bh->b_data; |
i | 291 | fs/ext2/truncate.c | addr_per_block + (i + 1) * addr_per_block * addr_per_block, |
i | 296 | fs/ext2/truncate.c | for (i = 0; i < addr_per_block; i++) |
i | 299 | fs/ext2/truncate.c | if (i >= addr_per_block) |
i | 143 | fs/fat/buffer.c | int i; |
i | 144 | fs/fat/buffer.c | for (i=0; i<nbreq; i++){ |
i | 145 | fs/fat/buffer.c | tmp[i] = bh[i]->b_next; |
i | 105 | fs/fat/dir.c | int ino,i,i2,last; |
i | 220 | fs/fat/dir.c | for (sum = 0, i = 0; i < 11; i++) { |
i | 221 | fs/fat/dir.c | sum = (((sum&1)<<7)|((sum&0xfe)>>1)) + de->name[i]; |
i | 235 | fs/fat/dir.c | for (i = 0, last = 0; i < 8; i++) { |
i | 236 | fs/fat/dir.c | if (!(c = de->name[i])) break; |
i | 241 | fs/fat/dir.c | last = i+1; |
i | 242 | fs/fat/dir.c | ptname[i] = c; |
i | 244 | fs/fat/dir.c | i = last; |
i | 245 | fs/fat/dir.c | ptname[i] = '.'; |
i | 246 | fs/fat/dir.c | i++; |
i | 251 | fs/fat/dir.c | last = i+1; |
i | 252 | fs/fat/dir.c | ptname[i] = c; |
i | 253 | fs/fat/dir.c | i++; |
i | 255 | fs/fat/dir.c | if ((i = last) != 0) { |
i | 262 | fs/fat/dir.c | dcache_add(inode, bufname, i+dotoffset, ino); |
i | 264 | fs/fat/dir.c | bufname[i+dotoffset] = '\0'; |
i | 272 | fs/fat/dir.c | if (fat_filldir(filldir, dirent, bufname, i+dotoffset, 0, oldpos, spos, long_slots, ino) < 0) { |
i | 280 | fs/fat/dir.c | memcpy(&longname[long_len+1], bufname, i+dotoffset); |
i | 281 | fs/fat/dir.c | long_len += i+dotoffset; |
i | 132 | fs/fat/file.c | int i; |
i | 133 | fs/fat/file.c | for (i=0; i<nb; i++){ |
i | 148 | fs/fat/file.c | for (i=pre->nblist; i<MSDOS_PREFETCH; i++) pre->bhlist[i] = NULL; |
i | 163 | fs/fat/file.c | int i; |
i | 258 | fs/fat/file.c | for (i=0; i<pre.nblist; i++) brelse (pre.bhlist[i]); |
i | 65 | fs/file_table.c | int i; |
i | 78 | fs/file_table.c | nr_files += i = PAGE_SIZE/sizeof(struct file); |
i | 83 | fs/file_table.c | i--; |
i | 85 | fs/file_table.c | for (; i ; i--) |
i | 103 | fs/file_table.c | int i; |
i | 111 | fs/file_table.c | for (f = first_file, i=0; i < nr_files; i++, f = f->f_next) |
i | 860 | fs/hpfs/hpfs_fs.c | unsigned i, count; |
i | 868 | fs/hpfs/hpfs_fs.c | for (i = 0; i < 8 * 2048; i++) |
i | 869 | fs/hpfs/hpfs_fs.c | count += (test_bit(i, bits) != 0); |
i | 1052 | fs/hpfs/hpfs_fs.c | int i; |
i | 1062 | fs/hpfs/hpfs_fs.c | for (i = 0; i < b->n_used_nodes; i++) { |
i | 1063 | fs/hpfs/hpfs_fs.c | unsigned t = file_secno - n[i].file_secno; |
i | 1064 | fs/hpfs/hpfs_fs.c | if (t < n[i].length) { |
i | 1065 | fs/hpfs/hpfs_fs.c | inode->i_hpfs_file_sec = n[i].file_secno; |
i | 1066 | fs/hpfs/hpfs_fs.c | inode->i_hpfs_disk_sec = n[i].disk_secno; |
i | 1067 | fs/hpfs/hpfs_fs.c | inode->i_hpfs_n_secs = n[i].length; |
i | 1068 | fs/hpfs/hpfs_fs.c | return n[i].disk_secno + t; |
i | 1080 | fs/hpfs/hpfs_fs.c | for (i = 0; i < b->n_used_nodes; i++) { |
i | 1081 | fs/hpfs/hpfs_fs.c | if (file_secno < n[i].file_secno) { |
i | 1083 | fs/hpfs/hpfs_fs.c | anode_secno ano = n[i].down; |
i | 1564 | fs/hpfs/hpfs_fs.c | int i; |
i | 1571 | fs/hpfs/hpfs_fs.c | for (i = 1; de < de_end; i++, de = de_next_de(de)) { |
i | 1572 | fs/hpfs/hpfs_fs.c | if (i == n) |
i | 45 | fs/inode.c | static inline int const hashfn(kdev_t dev, unsigned int i) |
i | 47 | fs/inode.c | return (HASHDEV(dev) ^ i) % NR_IHASH; |
i | 50 | fs/inode.c | static inline struct inode_hash_entry * const hash(kdev_t dev, int i) |
i | 52 | fs/inode.c | return hash_table + hashfn(dev, i); |
i | 113 | fs/inode.c | int i; |
i | 118 | fs/inode.c | i=PAGE_SIZE / sizeof(struct inode); |
i | 119 | fs/inode.c | nr_inodes += i; |
i | 120 | fs/inode.c | nr_free_inodes += i; |
i | 123 | fs/inode.c | inode->i_next = inode->i_prev = first_inode = inode++, i--; |
i | 125 | fs/inode.c | for ( ; i ; i-- ) |
i | 192 | fs/inode.c | int i; |
i | 195 | fs/inode.c | for (i = nr_inodes ; i > 0 ; i--) { |
i | 210 | fs/inode.c | int i; |
i | 213 | fs/inode.c | for (i=0 ; i < nr_inodes ; i++, inode = inode->i_next) { |
i | 227 | fs/inode.c | int i; |
i | 230 | fs/inode.c | for (file = first_file, i=0; i<nr_files; i++, file=file->f_next) { |
i | 382 | fs/inode.c | int i; |
i | 385 | fs/inode.c | for(i = nr_inodes ; i > 0 ; i--) { |
i | 401 | fs/inode.c | int i; |
i | 405 | fs/inode.c | for(i = 0; i < nr_inodes*2; i++, inode = inode->i_next) { |
i | 490 | fs/inode.c | int i; |
i | 497 | fs/inode.c | for (i = 0; i<nr_inodes; inode = inode->i_next, i++) { |
i | 499 | fs/inode.c | unsigned long i = value(inode); |
i | 500 | fs/inode.c | if (i < badness) { |
i | 502 | fs/inode.c | if ((badness = i) == 0) |
i | 79 | fs/isofs/dir.c | int i, c; |
i | 81 | fs/isofs/dir.c | for (i = 0; i < len; i++) { |
i | 82 | fs/isofs/dir.c | c = old[i]; |
i | 89 | fs/isofs/dir.c | if (c == '.' && i == len - 3 && old[i + 1] == ';' && old[i + 2] == '1') |
i | 93 | fs/isofs/dir.c | if (c == ';' && i == len - 2 && old[i + 1] == '1') |
i | 100 | fs/isofs/dir.c | new[i] = c; |
i | 102 | fs/isofs/dir.c | return i; |
i | 170 | fs/isofs/inode.c | int i; |
i | 178 | fs/isofs/inode.c | i=get_blkfops(MAJOR(dev))->ioctl(&inode_fake, |
i | 184 | fs/isofs/inode.c | printk("isofs.inode: CDROMMULTISESSION: rc=%d\n",i); |
i | 185 | fs/isofs/inode.c | if (i==0) |
i | 191 | fs/isofs/inode.c | if ((i==0)&&(ms_info.xa_flag)) vol_desc_start=ms_info.addr.lba; |
i | 239 | fs/isofs/inode.c | int i = opt.blocksize; |
i | 240 | fs/isofs/inode.c | while (i != 1){ |
i | 242 | fs/isofs/inode.c | i >>=1; |
i | 378 | fs/isofs/inode.c | int i = opt.blocksize; |
i | 379 | fs/isofs/inode.c | while (i != 1){ |
i | 381 | fs/isofs/inode.c | i >>=1; |
i | 463 | fs/isofs/inode.c | int i; |
i | 512 | fs/isofs/inode.c | for(i=0; i< raw_inode->name_len[0]; i++) |
i | 513 | fs/isofs/inode.c | if(raw_inode->name[i]=='.' || raw_inode->name[i]==';') |
i | 515 | fs/isofs/inode.c | if(i == raw_inode->name_len[0] || raw_inode->name[i] == ';') |
i | 66 | fs/isofs/namei.c | unsigned int block, i, f_pos, offset, inode_number; |
i | 161 | fs/isofs/namei.c | for (i = 0; i < dlen; i++) { |
i | 162 | fs/isofs/namei.c | c = dpnt[i]; |
i | 164 | fs/isofs/namei.c | if (c == ';' && i == dlen-2 && dpnt[i+1] == '1') { |
i | 169 | fs/isofs/namei.c | de->name[i] = c; |
i | 247 | fs/isofs/namei.c | int i; |
i | 250 | fs/isofs/namei.c | for (i=0; i<len; i++) { |
i | 251 | fs/isofs/namei.c | c = name[i]; |
i | 253 | fs/isofs/namei.c | lcname[i] = c; |
i | 85 | fs/isofs/symlink.c | int i; |
i | 100 | fs/isofs/symlink.c | i = 0; |
i | 102 | fs/isofs/symlink.c | while (i<buflen && (c = pnt[i])) { |
i | 103 | fs/isofs/symlink.c | i++; |
i | 107 | fs/isofs/symlink.c | return i; |
i | 75 | fs/isofs/util.c | int i; |
i | 77 | fs/isofs/util.c | for (i = 0; i < 4; i++) { |
i | 78 | fs/isofs/util.c | if (p[i] != p[7-i]) { |
i | 94 | fs/isofs/util.c | int crtime, days, i; |
i | 112 | fs/isofs/util.c | for (i = 1; i < month; i++) |
i | 113 | fs/isofs/util.c | days += monlen[i-1]; |
i | 21 | fs/minix/bitmap.c | unsigned i, j, sum = 0; |
i | 24 | fs/minix/bitmap.c | for (i=0; i<numblocks; i++) { |
i | 25 | fs/minix/bitmap.c | if (!(bh=map[i])) |
i | 70 | fs/minix/bitmap.c | int i,j; |
i | 78 | fs/minix/bitmap.c | for (i=0 ; i<64 ; i++) |
i | 79 | fs/minix/bitmap.c | if ((bh=sb->u.minix_sb.s_zmap[i]) != NULL) |
i | 82 | fs/minix/bitmap.c | if (i>=64 || !bh || j>=8192) |
i | 89 | fs/minix/bitmap.c | j += i*8192 + sb->u.minix_sb.s_firstdatazone-1; |
i | 222 | fs/minix/bitmap.c | int i,j; |
i | 230 | fs/minix/bitmap.c | for (i=0 ; i<8 ; i++) |
i | 231 | fs/minix/bitmap.c | if ((bh = inode->i_sb->u.minix_sb.s_imap[i]) != NULL) |
i | 244 | fs/minix/bitmap.c | j += i*8192; |
i | 86 | fs/minix/fsync.c | int i; |
i | 89 | fs/minix/fsync.c | for (i = 0; i < 7; i++) { |
i | 91 | fs/minix/fsync.c | (unsigned short *) inode->u.minix_i.u.i1_data + i, wait); |
i | 102 | fs/minix/fsync.c | int i; |
i | 110 | fs/minix/fsync.c | for (i = 0; i < 512; i++) { |
i | 112 | fs/minix/fsync.c | ((unsigned short *) ind_bh->b_data) + i, |
i | 126 | fs/minix/fsync.c | int i; |
i | 134 | fs/minix/fsync.c | for (i = 0; i < 512; i++) { |
i | 136 | fs/minix/fsync.c | ((unsigned short *) dind_bh->b_data) + i, |
i | 223 | fs/minix/fsync.c | int i; |
i | 226 | fs/minix/fsync.c | for (i = 0; i < 7; i++) { |
i | 228 | fs/minix/fsync.c | (unsigned long *)inode->u.minix_i.u.i2_data + i, wait); |
i | 239 | fs/minix/fsync.c | int i; |
i | 247 | fs/minix/fsync.c | for (i = 0; i < 256; i++) { |
i | 249 | fs/minix/fsync.c | ((unsigned long *) ind_bh->b_data) + i, |
i | 263 | fs/minix/fsync.c | int i; |
i | 271 | fs/minix/fsync.c | for (i = 0; i < 256; i++) { |
i | 273 | fs/minix/fsync.c | ((unsigned long *) dind_bh->b_data) + i, |
i | 287 | fs/minix/fsync.c | int i; |
i | 295 | fs/minix/fsync.c | for (i = 0; i < 256; i++) { |
i | 297 | fs/minix/fsync.c | ((unsigned long *) tind_bh->b_data) + i, |
i | 57 | fs/minix/inode.c | int i; |
i | 65 | fs/minix/inode.c | for(i = 0 ; i < MINIX_I_MAP_SLOTS ; i++) |
i | 66 | fs/minix/inode.c | brelse(sb->u.minix_sb.s_imap[i]); |
i | 67 | fs/minix/inode.c | for(i = 0 ; i < MINIX_Z_MAP_SLOTS ; i++) |
i | 68 | fs/minix/inode.c | brelse(sb->u.minix_sb.s_zmap[i]); |
i | 125 | fs/minix/inode.c | int i, block; |
i | 185 | fs/minix/inode.c | for (i=0;i < MINIX_I_MAP_SLOTS;i++) |
i | 186 | fs/minix/inode.c | s->u.minix_sb.s_imap[i] = NULL; |
i | 187 | fs/minix/inode.c | for (i=0;i < MINIX_Z_MAP_SLOTS;i++) |
i | 188 | fs/minix/inode.c | s->u.minix_sb.s_zmap[i] = NULL; |
i | 190 | fs/minix/inode.c | for (i=0 ; i < s->u.minix_sb.s_imap_blocks ; i++) |
i | 191 | fs/minix/inode.c | if ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
i | 195 | fs/minix/inode.c | for (i=0 ; i < s->u.minix_sb.s_zmap_blocks ; i++) |
i | 196 | fs/minix/inode.c | if ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
i | 201 | fs/minix/inode.c | for(i=0;i<MINIX_I_MAP_SLOTS;i++) |
i | 202 | fs/minix/inode.c | brelse(s->u.minix_sb.s_imap[i]); |
i | 203 | fs/minix/inode.c | for(i=0;i<MINIX_Z_MAP_SLOTS;i++) |
i | 204 | fs/minix/inode.c | brelse(s->u.minix_sb.s_zmap[i]); |
i | 273 | fs/minix/inode.c | int i; |
i | 287 | fs/minix/inode.c | i = V1_inode_bmap(inode,7); |
i | 288 | fs/minix/inode.c | if (!i) |
i | 290 | fs/minix/inode.c | return V1_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
i | 293 | fs/minix/inode.c | i = V1_inode_bmap(inode,8); |
i | 294 | fs/minix/inode.c | if (!i) |
i | 296 | fs/minix/inode.c | i = V1_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>9); |
i | 297 | fs/minix/inode.c | if (!i) |
i | 299 | fs/minix/inode.c | return V1_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 511); |
i | 319 | fs/minix/inode.c | int i; |
i | 333 | fs/minix/inode.c | i = V2_inode_bmap(inode,7); |
i | 334 | fs/minix/inode.c | if (!i) |
i | 336 | fs/minix/inode.c | return V2_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
i | 340 | fs/minix/inode.c | i = V2_inode_bmap(inode,8); |
i | 341 | fs/minix/inode.c | if (!i) |
i | 343 | fs/minix/inode.c | i = V2_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block >> 8); |
i | 344 | fs/minix/inode.c | if (!i) |
i | 346 | fs/minix/inode.c | return V2_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
i | 349 | fs/minix/inode.c | i = V2_inode_bmap(inode,9); |
i | 350 | fs/minix/inode.c | if (!i) |
i | 352 | fs/minix/inode.c | i = V2_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block >> 16); |
i | 353 | fs/minix/inode.c | if (!i) |
i | 355 | fs/minix/inode.c | i = V2_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),(block >> 8) & 255); |
i | 356 | fs/minix/inode.c | if (!i) |
i | 358 | fs/minix/inode.c | return V2_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
i | 150 | fs/minix/namei.c | int i; |
i | 193 | fs/minix/namei.c | for (i = 0; i < info->s_namelen ; i++) |
i | 194 | fs/minix/namei.c | de->name[i] = (i < namelen) ? name[i] : 0; |
i | 547 | fs/minix/namei.c | int i; |
i | 564 | fs/minix/namei.c | i = 0; |
i | 565 | fs/minix/namei.c | while (i < 1023 && (c=*(symname++))) |
i | 566 | fs/minix/namei.c | name_block->b_data[i++] = c; |
i | 567 | fs/minix/namei.c | name_block->b_data[i] = 0; |
i | 570 | fs/minix/namei.c | inode->i_size = i; |
i | 581 | fs/minix/namei.c | i = minix_add_entry(dir, name, len, &bh, &de); |
i | 582 | fs/minix/namei.c | if (i) { |
i | 587 | fs/minix/namei.c | return i; |
i | 84 | fs/minix/symlink.c | int i; |
i | 97 | fs/minix/symlink.c | i = 0; |
i | 98 | fs/minix/symlink.c | while (i<buflen && (c = bh->b_data[i])) { |
i | 99 | fs/minix/symlink.c | i++; |
i | 103 | fs/minix/symlink.c | return i; |
i | 41 | fs/minix/truncate.c | int i, tmp; |
i | 45 | fs/minix/truncate.c | for (i = DIRECT_BLOCK ; i < 7 ; i++) { |
i | 46 | fs/minix/truncate.c | p = i + inode->u.minix_i.u.i1_data; |
i | 50 | fs/minix/truncate.c | if (i < DIRECT_BLOCK) { |
i | 73 | fs/minix/truncate.c | int i, tmp; |
i | 91 | fs/minix/truncate.c | for (i = INDIRECT_BLOCK(offset) ; i < 512 ; i++) { |
i | 92 | fs/minix/truncate.c | if (i < 0) |
i | 93 | fs/minix/truncate.c | i = 0; |
i | 94 | fs/minix/truncate.c | if (i < INDIRECT_BLOCK(offset)) |
i | 96 | fs/minix/truncate.c | ind = i+(unsigned short *) ind_bh->b_data; |
i | 101 | fs/minix/truncate.c | if (i < INDIRECT_BLOCK(offset)) { |
i | 116 | fs/minix/truncate.c | for (i = 0; i < 512; i++) |
i | 119 | fs/minix/truncate.c | if (i >= 512) |
i | 133 | fs/minix/truncate.c | int i, tmp; |
i | 150 | fs/minix/truncate.c | for (i = DINDIRECT_BLOCK(offset) ; i < 512 ; i ++) { |
i | 151 | fs/minix/truncate.c | if (i < 0) |
i | 152 | fs/minix/truncate.c | i = 0; |
i | 153 | fs/minix/truncate.c | if (i < DINDIRECT_BLOCK(offset)) |
i | 155 | fs/minix/truncate.c | dind = i+(unsigned short *) dind_bh->b_data; |
i | 156 | fs/minix/truncate.c | retry |= V1_trunc_indirect(inode,offset+(i<<9),dind); |
i | 160 | fs/minix/truncate.c | for (i = 0; i < 512; i++) |
i | 163 | fs/minix/truncate.c | if (i >= 512) |
i | 203 | fs/minix/truncate.c | int i, tmp; |
i | 207 | fs/minix/truncate.c | for (i = DIRECT_BLOCK ; i < 7 ; i++) { |
i | 208 | fs/minix/truncate.c | p = (unsigned long *) inode->u.minix_i.u.i2_data + i; |
i | 212 | fs/minix/truncate.c | if (i < DIRECT_BLOCK) { |
i | 235 | fs/minix/truncate.c | int i, tmp; |
i | 253 | fs/minix/truncate.c | for (i = INDIRECT_BLOCK(offset) ; i < 256 ; i++) { |
i | 254 | fs/minix/truncate.c | if (i < 0) |
i | 255 | fs/minix/truncate.c | i = 0; |
i | 256 | fs/minix/truncate.c | if (i < INDIRECT_BLOCK(offset)) |
i | 258 | fs/minix/truncate.c | ind = i+(unsigned long *) ind_bh->b_data; |
i | 263 | fs/minix/truncate.c | if (i < INDIRECT_BLOCK(offset)) { |
i | 278 | fs/minix/truncate.c | for (i = 0; i < 256; i++) |
i | 281 | fs/minix/truncate.c | if (i >= 256) |
i | 295 | fs/minix/truncate.c | int i, tmp; |
i | 312 | fs/minix/truncate.c | for (i = DINDIRECT_BLOCK(offset) ; i < 256 ; i ++) { |
i | 313 | fs/minix/truncate.c | if (i < 0) |
i | 314 | fs/minix/truncate.c | i = 0; |
i | 315 | fs/minix/truncate.c | if (i < DINDIRECT_BLOCK(offset)) |
i | 317 | fs/minix/truncate.c | dind = i+(unsigned long *) dind_bh->b_data; |
i | 318 | fs/minix/truncate.c | retry |= V2_trunc_indirect(inode,offset+(i<<9),dind); |
i | 322 | fs/minix/truncate.c | for (i = 0; i < 256; i++) |
i | 325 | fs/minix/truncate.c | if (i >= 256) |
i | 340 | fs/minix/truncate.c | int i, tmp; |
i | 357 | fs/minix/truncate.c | for (i = TINDIRECT_BLOCK(offset) ; i < 256 ; i ++) { |
i | 358 | fs/minix/truncate.c | if (i < 0) |
i | 359 | fs/minix/truncate.c | i = 0; |
i | 360 | fs/minix/truncate.c | if (i < TINDIRECT_BLOCK(offset)) |
i | 362 | fs/minix/truncate.c | tind = i+(unsigned long *) tind_bh->b_data; |
i | 363 | fs/minix/truncate.c | retry |= V2_trunc_dindirect(inode,offset+(i<<9),tind); |
i | 367 | fs/minix/truncate.c | for (i = 0; i < 256; i++) |
i | 370 | fs/minix/truncate.c | if (i >= 256) |
i | 56 | fs/namei.c | int i, error; |
i | 60 | fs/namei.c | i = get_max_filename((unsigned long) filename); |
i | 61 | fs/namei.c | if (i < 0) |
i | 62 | fs/namei.c | return i; |
i | 64 | fs/namei.c | if (!i) { |
i | 66 | fs/namei.c | i = PAGE_SIZE; |
i | 74 | fs/namei.c | while (--i) { |
i | 20 | fs/ncpfs/dir.c | struct nw_info_struct i; |
i | 144 | fs/ncpfs/dir.c | ? info->finfo.i.DosDirNum : (ino_t)info; |
i | 201 | fs/ncpfs/dir.c | int result, i = 0; |
i | 224 | fs/ncpfs/dir.c | i = sizeof (struct ncp_dirent) * NCP_READDIR_CACHE_SIZE; |
i | 225 | fs/ncpfs/dir.c | c_entry = (struct ncp_dirent *) ncp_kmalloc(i, GFP_KERNEL); |
i | 256 | fs/ncpfs/dir.c | for (i = 0; i < c_size; i++) |
i | 258 | fs/ncpfs/dir.c | if (filp->f_pos == c_entry[i].f_pos) |
i | 260 | fs/ncpfs/dir.c | entry = &c_entry[i]; |
i | 261 | fs/ncpfs/dir.c | c_last_returned_index = i; |
i | 262 | fs/ncpfs/dir.c | index = i; |
i | 308 | fs/ncpfs/dir.c | for (i = 0; i < c_size; i++) |
i | 310 | fs/ncpfs/dir.c | str_lower(c_entry[i].i.entryName); |
i | 332 | fs/ncpfs/dir.c | ino = (ino_t)(entry->i.DosDirNum); |
i | 338 | fs/ncpfs/dir.c | entry->i.entryName); |
i | 350 | fs/ncpfs/dir.c | DDPRINTK("ncp_readdir: entry->path= %s\n", entry->i.entryName); |
i | 353 | fs/ncpfs/dir.c | if (filldir(dirent, entry->i.entryName, entry->i.nameLen, |
i | 380 | fs/ncpfs/dir.c | int i; |
i | 390 | fs/ncpfs/dir.c | for (i=0; i<NCP_NUMBER_OF_VOLUMES; i++) |
i | 394 | fs/ncpfs/dir.c | if (ncp_get_volume_info_with_number(server, i, &info) != 0) |
i | 417 | fs/ncpfs/dir.c | &(entry->i)) != 0) |
i | 474 | fs/ncpfs/dir.c | &(entry->i)) != 0) |
i | 482 | fs/ncpfs/dir.c | entry->i.entryName); |
i | 487 | fs/ncpfs/dir.c | entry->i.entryName, fpos, total_count); |
i | 559 | fs/ncpfs/dir.c | finfo->i.entryName); |
i | 592 | fs/ncpfs/dir.c | ncp_free_inode_info(struct ncp_inode_info *i) |
i | 594 | fs/ncpfs/dir.c | if (i == NULL) |
i | 600 | fs/ncpfs/dir.c | i->state = NCP_INODE_CACHED; |
i | 601 | fs/ncpfs/dir.c | while ((i->nused == 0) && (i->state == NCP_INODE_CACHED)) |
i | 603 | fs/ncpfs/dir.c | struct ncp_inode_info *dir = i->dir; |
i | 605 | fs/ncpfs/dir.c | i->next->prev = i->prev; |
i | 606 | fs/ncpfs/dir.c | i->prev->next = i->next; |
i | 609 | fs/ncpfs/dir.c | i->finfo.i.entryName); |
i | 611 | fs/ncpfs/dir.c | ncp_kfree_s(i, sizeof(struct ncp_inode_info)); |
i | 613 | fs/ncpfs/dir.c | if (dir == i) return; |
i | 616 | fs/ncpfs/dir.c | i = dir; |
i | 624 | fs/ncpfs/dir.c | struct nw_info_struct *i = &(root->finfo.i); |
i | 628 | fs/ncpfs/dir.c | DPRINTK("ncp_init_root: i = %x\n", (int)i); |
i | 631 | fs/ncpfs/dir.c | i->attributes = aDIR; |
i | 632 | fs/ncpfs/dir.c | i->dataStreamSize = 1024; |
i | 633 | fs/ncpfs/dir.c | i->DosDirNum = 0; |
i | 634 | fs/ncpfs/dir.c | i->volNumber = NCP_NUMBER_OF_VOLUMES+1; /* illegal volnum */ |
i | 635 | fs/ncpfs/dir.c | ncp_date_unix2dos(0, &(i->creationTime), &(i->creationDate)); |
i | 636 | fs/ncpfs/dir.c | ncp_date_unix2dos(0, &(i->modifyTime), &(i->modifyDate)); |
i | 637 | fs/ncpfs/dir.c | ncp_date_unix2dos(0, &dummy, &(i->lastAccessDate)); |
i | 638 | fs/ncpfs/dir.c | i->nameLen = 0; |
i | 639 | fs/ncpfs/dir.c | i->entryName[0] = '\0'; |
i | 658 | fs/ncpfs/dir.c | &(server->root.finfo.i)) != 0) |
i | 662 | fs/ncpfs/dir.c | str_lower(server->root.finfo.i.entryName); |
i | 710 | fs/ncpfs/dir.c | if ( (result->dir->finfo.i.DosDirNum == dir_info->DosDirNum) |
i | 711 | fs/ncpfs/dir.c | && (result->dir->finfo.i.volNumber == dir_info->volNumber) |
i | 712 | fs/ncpfs/dir.c | && (strcmp(result->finfo.i.entryName, name) == 0) |
i | 821 | fs/ncpfs/dir.c | int i; |
i | 823 | fs/ncpfs/dir.c | i = first; |
i | 827 | fs/ncpfs/dir.c | i, c_entry[i].i.entryName); |
i | 829 | fs/ncpfs/dir.c | if (strcmp(c_entry[i].i.entryName, name) == 0) |
i | 832 | fs/ncpfs/dir.c | finfo.i = c_entry[i].i; |
i | 836 | fs/ncpfs/dir.c | i = (i + 1) % c_size; |
i | 838 | fs/ncpfs/dir.c | while (i != first); |
i | 851 | fs/ncpfs/dir.c | res = ncp_lookup_volume(server, name, &(finfo.i)); |
i | 858 | fs/ncpfs/dir.c | name, &(finfo.i)); |
i | 868 | fs/ncpfs/dir.c | str_lower(finfo.i.entryName); |
i | 918 | fs/ncpfs/dir.c | str_lower(finfo.i.entryName); |
i | 33 | fs/ncpfs/file.c | ncp_make_open(struct inode *i, int right) |
i | 37 | fs/ncpfs/file.c | if (i == NULL) |
i | 43 | fs/ncpfs/file.c | finfo = NCP_FINFO(i); |
i | 50 | fs/ncpfs/file.c | if (ncp_open_create_file_or_subdir(NCP_SERVER(i), |
i | 58 | fs/ncpfs/file.c | else if (ncp_open_create_file_or_subdir(NCP_SERVER(i), |
i | 143 | fs/ncpfs/inode.c | finfo->i.entryName); |
i | 434 | fs/ncpfs/ncplib_kernel.c | target->i.volNumber, target->i.DosDirNum, |
i | 451 | fs/ncpfs/ncplib_kernel.c | ncp_extract_file_info(ncp_reply_data(server, 5), &(target->i)); |
i | 98 | fs/nfs/dir.c | int i, index = 0; |
i | 109 | fs/nfs/dir.c | i = sizeof (struct nfs_entry)*NFS_READDIR_CACHE_SIZE; |
i | 110 | fs/nfs/dir.c | c_entry = (struct nfs_entry *) kmalloc(i, GFP_KERNEL); |
i | 115 | fs/nfs/dir.c | for (i = 0; i < NFS_READDIR_CACHE_SIZE; i++) { |
i | 116 | fs/nfs/dir.c | c_entry[i].name = (char *) kmalloc(NFS_MAXNAMLEN + 1, |
i | 118 | fs/nfs/dir.c | if (c_entry[i].name == NULL) { |
i | 120 | fs/nfs/dir.c | while (--i>=0) |
i | 121 | fs/nfs/dir.c | kfree(c_entry[i].name); |
i | 133 | fs/nfs/dir.c | for (i = 0; i < c_size; i++) { |
i | 134 | fs/nfs/dir.c | if (filp->f_pos == c_entry[i].cookie) { |
i | 135 | fs/nfs/dir.c | if (i == c_size - 1) { |
i | 136 | fs/nfs/dir.c | if (c_entry[i].eof) |
i | 140 | fs/nfs/dir.c | entry = c_entry + (index = i + 1); |
i | 191 | fs/nfs/dir.c | int i; |
i | 195 | fs/nfs/dir.c | for (i = 0; i < NFS_READDIR_CACHE_SIZE; i++) |
i | 196 | fs/nfs/dir.c | kfree(c_entry[i].name); |
i | 228 | fs/nfs/dir.c | int i; |
i | 230 | fs/nfs/dir.c | for (i = 0; i < NFS_LOOKUP_CACHE_SIZE; i++) { |
i | 231 | fs/nfs/dir.c | entry = nfs_lookup_cache + i; |
i | 295 | fs/nfs/dir.c | int i; |
i | 307 | fs/nfs/dir.c | for (i = 0; i < NFS_LOOKUP_CACHE_SIZE; i++) { |
i | 308 | fs/nfs/dir.c | entry = nfs_lookup_cache + i; |
i | 320 | fs/nfs/dir.c | int i; |
i | 322 | fs/nfs/dir.c | for (i = 0; i < NFS_LOOKUP_CACHE_SIZE; i++) { |
i | 323 | fs/nfs/dir.c | entry = nfs_lookup_cache + i; |
i | 1447 | fs/nfs/nfsroot.c | int i; |
i | 1450 | fs/nfs/nfsroot.c | for (i = 0; i < NPORTS && res < 0; i++) { |
i | 81 | fs/nfs/proc.c | int *i; |
i | 83 | fs/nfs/proc.c | while (!(i = (int *)kmalloc(size+NFS_SLACK_SPACE,GFP_NFS))) { |
i | 86 | fs/nfs/proc.c | return i; |
i | 734 | fs/nfs/proc.c | int i; |
i | 754 | fs/nfs/proc.c | for (i = 0; i < count && *p++; i++) { |
i | 763 | fs/nfs/proc.c | eof = (i == count && !*p++ && *p++) |
i | 764 | fs/nfs/proc.c | || (i < count && *p++); |
i | 765 | fs/nfs/proc.c | if (eof && i) |
i | 767 | fs/nfs/proc.c | PRINTK("NFS reply readdir %d %s\n", i, |
i | 769 | fs/nfs/proc.c | status = i; |
i | 828 | fs/nfs/proc.c | int i; |
i | 849 | fs/nfs/proc.c | for (i = 0; i < 16 && i < NGROUPS && groups[i] != NOGROUP; i++) |
i | 850 | fs/nfs/proc.c | *p++ = htonl(groups[i]); |
i | 851 | fs/nfs/proc.c | *p2 = htonl(i); |
i | 942 | fs/nfs/proc.c | int i; |
i | 944 | fs/nfs/proc.c | for (i = 0; nfs_errtbl[i].stat != -1; i++) { |
i | 945 | fs/nfs/proc.c | if (nfs_errtbl[i].stat == stat) |
i | 946 | fs/nfs/proc.c | return nfs_errtbl[i].errno; |
i | 949 | fs/nfs/proc.c | return nfs_errtbl[i].errno; |
i | 362 | fs/nfs/rpcsock.c | int i; |
i | 373 | fs/nfs/rpcsock.c | for (i = 0, slot = rsock->waiting; i < NRREQS-1; i++, slot++) |
i | 415 | fs/pipe.c | int i,j; |
i | 431 | fs/pipe.c | for(i=0;j<2 && i<NR_OPEN && i<current->rlim[RLIMIT_NOFILE].rlim_cur;i++) |
i | 432 | fs/pipe.c | if (!current->files->fd[i]) { |
i | 433 | fs/pipe.c | current->files->fd[ fd[j]=i ] = f[j]; |
i | 161 | fs/proc/array.c | int i=prof_len; |
i | 163 | fs/proc/array.c | while (i--) |
i | 164 | fs/proc/array.c | prof_buffer[i]=0UL; |
i | 195 | fs/proc/array.c | int i, len; |
i | 199 | fs/proc/array.c | for (i = 0 ; i < NR_IRQS ; i++) |
i | 200 | fs/proc/array.c | sum += kstat.interrupts[i]; |
i | 230 | fs/proc/array.c | for (i = 0 ; i < NR_IRQS ; i++) |
i | 231 | fs/proc/array.c | len += sprintf(buffer + len, " %u", kstat.interrupts[i]); |
i | 277 | fs/proc/array.c | struct sysinfo i; |
i | 280 | fs/proc/array.c | si_meminfo(&i); |
i | 281 | fs/proc/array.c | si_swapinfo(&i); |
i | 285 | fs/proc/array.c | i.totalram, i.totalram-i.freeram, i.freeram, i.sharedram, i.bufferram, page_cache_size*PAGE_SIZE, |
i | 286 | fs/proc/array.c | i.totalswap, i.totalswap-i.freeswap, i.freeswap); |
i | 299 | fs/proc/array.c | i.totalram >> 10, |
i | 300 | fs/proc/array.c | i.freeram >> 10, |
i | 301 | fs/proc/array.c | i.sharedram >> 10, |
i | 302 | fs/proc/array.c | i.bufferram >> 10, |
i | 304 | fs/proc/array.c | i.totalswap >> 10, |
i | 305 | fs/proc/array.c | i.freeswap >> 10); |
i | 485 | fs/proc/array.c | int i; |
i | 490 | fs/proc/array.c | i = sizeof(p->comm); |
i | 494 | fs/proc/array.c | i--; |
i | 510 | fs/proc/array.c | } while (i); |
i | 598 | fs/proc/array.c | int i; |
i | 600 | fs/proc/array.c | for (i = 0; i < 32; i++) { |
i | 642 | fs/proc/array.c | int i,tty_pgrp; |
i | 666 | fs/proc/array.c | for(i=0; i<32; ++i) { |
i | 667 | fs/proc/array.c | switch((unsigned long) tsk->sig->action[i].sa_handler) { |
i | 870 | fs/proc/array.c | int i; |
i | 883 | fs/proc/array.c | for (map = (*p)->mm->mmap, i = 0; map && (i < lineno); map = map->vm_next, i++) |
i | 924 | fs/proc/array.c | i = len-column; |
i | 925 | fs/proc/array.c | if (i > count) |
i | 926 | fs/proc/array.c | i = count; |
i | 927 | fs/proc/array.c | memcpy_tofs(destptr, line+column, i); |
i | 928 | fs/proc/array.c | destptr += i; count -= i; |
i | 929 | fs/proc/array.c | column += i; |
i | 61 | fs/proc/fd.c | int i; |
i | 103 | fs/proc/fd.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 104 | fs/proc/fd.c | if ((p = task[i]) && p->pid == pid) |
i | 106 | fs/proc/fd.c | if (!pid || i >= NR_TASKS) |
i | 128 | fs/proc/fd.c | unsigned long i,j; |
i | 161 | fs/proc/fd.c | i = fd; |
i | 164 | fs/proc/fd.c | buf[j] = '0' + (i % 10); |
i | 165 | fs/proc/fd.c | i /= 10; |
i | 166 | fs/proc/fd.c | } while (i); |
i | 136 | fs/proc/inode.c | int i; |
i | 150 | fs/proc/inode.c | for (i = 0; i < NR_TASKS ; i++) |
i | 151 | fs/proc/inode.c | if ((p = task[i]) && (p->pid == pid)) |
i | 153 | fs/proc/inode.c | if (!p || i >= NR_TASKS) |
i | 158 | fs/proc/inode.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 159 | fs/proc/inode.c | if (task[i]) |
i | 71 | fs/proc/link.c | int i, error; |
i | 85 | fs/proc/link.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 86 | fs/proc/link.c | if ((p = task[i]) && p->pid == pid) |
i | 88 | fs/proc/link.c | if (i >= NR_TASKS) { |
i | 140 | fs/proc/link.c | int i; |
i | 148 | fs/proc/link.c | i = proc_follow_link(NULL, inode, 0, 0, &inode); |
i | 149 | fs/proc/link.c | if (i) |
i | 150 | fs/proc/link.c | return i; |
i | 156 | fs/proc/link.c | i = sprintf(buf,"[%04x]:%u", dev, ino); |
i | 157 | fs/proc/link.c | if (buflen > i) |
i | 158 | fs/proc/link.c | buflen = i; |
i | 159 | fs/proc/link.c | i = 0; |
i | 160 | fs/proc/link.c | while (i < buflen) |
i | 161 | fs/proc/link.c | put_user(buf[i++],buffer++); |
i | 162 | fs/proc/link.c | return i; |
i | 62 | fs/proc/mem.c | int i; |
i | 69 | fs/proc/mem.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 70 | fs/proc/mem.c | if (task[i] && task[i]->pid == pid) { |
i | 71 | fs/proc/mem.c | tsk = task[i]; |
i | 104 | fs/proc/mem.c | i = PAGE_SIZE-(addr & ~PAGE_MASK); |
i | 105 | fs/proc/mem.c | if (i > count) |
i | 106 | fs/proc/mem.c | i = count; |
i | 107 | fs/proc/mem.c | memcpy_tofs(tmp, page, i); |
i | 108 | fs/proc/mem.c | addr += i; |
i | 109 | fs/proc/mem.c | tmp += i; |
i | 110 | fs/proc/mem.c | count -= i; |
i | 127 | fs/proc/mem.c | int i; |
i | 135 | fs/proc/mem.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 136 | fs/proc/mem.c | if (task[i] && task[i]->pid == pid) { |
i | 137 | fs/proc/mem.c | tsk = task[i]; |
i | 168 | fs/proc/mem.c | i = PAGE_SIZE-(addr & ~PAGE_MASK); |
i | 169 | fs/proc/mem.c | if (i > count) |
i | 170 | fs/proc/mem.c | i = count; |
i | 171 | fs/proc/mem.c | memcpy_fromfs(page, tmp, i); |
i | 172 | fs/proc/mem.c | addr += i; |
i | 173 | fs/proc/mem.c | tmp += i; |
i | 174 | fs/proc/mem.c | count -= i; |
i | 212 | fs/proc/mem.c | int i; |
i | 217 | fs/proc/mem.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 218 | fs/proc/mem.c | if (task[i] && task[i]->pid == (inode->i_ino >> 16)) { |
i | 219 | fs/proc/mem.c | tsk = task[i]; |
i | 187 | fs/proc/root.c | int i = find_first_zero_bit((void *) proc_alloc_map, PROC_NDYNAMIC); |
i | 188 | fs/proc/root.c | if (i<0 || i>=PROC_NDYNAMIC) |
i | 190 | fs/proc/root.c | set_bit(i, (void *) proc_alloc_map); |
i | 191 | fs/proc/root.c | return PROC_DYNAMIC_FIRST + i; |
i | 197 | fs/proc/root.c | int i = make_inode_number(); |
i | 198 | fs/proc/root.c | if (i < 0) |
i | 200 | fs/proc/root.c | dp->low_ino = i; |
i | 449 | fs/proc/root.c | int i, ino, retval; |
i | 473 | fs/proc/root.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 474 | fs/proc/root.c | if (task[i] && task[i]->pid == pid) |
i | 476 | fs/proc/root.c | if (!pid || i >= NR_TASKS) { |
i | 503 | fs/proc/root.c | int i; |
i | 511 | fs/proc/root.c | i = filp->f_pos; |
i | 512 | fs/proc/root.c | switch (i) { |
i | 514 | fs/proc/root.c | if (filldir(dirent, ".", 1, i, ino) < 0) |
i | 516 | fs/proc/root.c | i++; |
i | 520 | fs/proc/root.c | if (filldir(dirent, "..", 2, i, de->parent->low_ino) < 0) |
i | 522 | fs/proc/root.c | i++; |
i | 528 | fs/proc/root.c | i -= 2; |
i | 532 | fs/proc/root.c | if (!i) |
i | 535 | fs/proc/root.c | i--; |
i | 555 | fs/proc/root.c | unsigned long i,j; |
i | 572 | fs/proc/root.c | i = pid; |
i | 575 | fs/proc/root.c | buf[j] = '0' + (i % 10); |
i | 576 | fs/proc/root.c | i /= 10; |
i | 577 | fs/proc/root.c | } while (i); |
i | 196 | fs/read_write.c | int retval, i; |
i | 212 | fs/read_write.c | for (i = 0 ; i < count ; i++) { |
i | 213 | fs/read_write.c | tot_len += iov[i].iov_len; |
i | 214 | fs/read_write.c | retval = verify_area(type, iov[i].iov_base, iov[i].iov_len); |
i | 92 | fs/select.c | int i,j; |
i | 96 | fs/select.c | i = j * __NFDBITS; |
i | 97 | fs/select.c | if (i >= n) |
i | 100 | fs/select.c | for ( ; set ; i++,set >>= 1) { |
i | 101 | fs/select.c | if (i >= n) |
i | 105 | fs/select.c | if (!current->files->fd[i]) |
i | 107 | fs/select.c | if (!current->files->fd[i]->f_inode) |
i | 109 | fs/select.c | max = i; |
i | 125 | fs/select.c | for (i = 0 ; i < n ; i++) { |
i | 126 | fs/select.c | if (FD_ISSET(i,in) && check(SEL_IN,wait,current->files->fd[i])) { |
i | 127 | fs/select.c | FD_SET(i, res_in); |
i | 131 | fs/select.c | if (FD_ISSET(i,out) && check(SEL_OUT,wait,current->files->fd[i])) { |
i | 132 | fs/select.c | FD_SET(i, res_out); |
i | 136 | fs/select.c | if (FD_ISSET(i,ex) && check(SEL_EX,wait,current->files->fd[i])) { |
i | 137 | fs/select.c | FD_SET(i, res_ex); |
i | 159 | fs/select.c | int error, i; |
i | 169 | fs/select.c | for (i = __FDSET_INTS; i > 0; i--) { |
i | 182 | fs/select.c | int i; |
i | 186 | fs/select.c | for (i = __FDSET_INTS; i > 0; i--) { |
i | 212 | fs/select.c | int i; |
i | 222 | fs/select.c | if ((i = get_fd_set(n, inp, &in)) || |
i | 223 | fs/select.c | (i = get_fd_set(n, outp, &out)) || |
i | 224 | fs/select.c | (i = get_fd_set(n, exp, &ex))) return i; |
i | 227 | fs/select.c | i = verify_area(VERIFY_WRITE, tvp, sizeof(*tvp)); |
i | 228 | fs/select.c | if (i) |
i | 229 | fs/select.c | return i; |
i | 236 | fs/select.c | i = do_select(n, &in, &out, &ex, &res_in, &res_out, &res_ex); |
i | 247 | fs/select.c | if (i < 0) |
i | 248 | fs/select.c | return i; |
i | 249 | fs/select.c | if (!i && (current->signal & ~current->blocked)) |
i | 254 | fs/select.c | return i; |
i | 161 | fs/smbfs/dir.c | int result, i = 0; |
i | 177 | fs/smbfs/dir.c | i = sizeof (struct smb_dirent) * SMB_READDIR_CACHE_SIZE; |
i | 178 | fs/smbfs/dir.c | c_entry = (struct smb_dirent *) smb_kmalloc(i, GFP_KERNEL); |
i | 183 | fs/smbfs/dir.c | for (i = 0; i < SMB_READDIR_CACHE_SIZE; i++) { |
i | 184 | fs/smbfs/dir.c | c_entry[i].path = |
i | 187 | fs/smbfs/dir.c | if (c_entry[i].path == NULL) { |
i | 189 | fs/smbfs/dir.c | while (--i>=0) |
i | 190 | fs/smbfs/dir.c | kfree(c_entry[i].path); |
i | 203 | fs/smbfs/dir.c | for (i = 0; i < c_size; i++) { |
i | 204 | fs/smbfs/dir.c | if (filp->f_pos == c_entry[i].f_pos) { |
i | 205 | fs/smbfs/dir.c | entry = &c_entry[i]; |
i | 206 | fs/smbfs/dir.c | c_last_returned_index = i; |
i | 207 | fs/smbfs/dir.c | index = i; |
i | 233 | fs/smbfs/dir.c | for (i = 0; i < c_size; i++) { |
i | 238 | fs/smbfs/dir.c | str_upper(c_entry[i].path); break; |
i | 240 | fs/smbfs/dir.c | str_lower(c_entry[i].path); break; |
i | 320 | fs/smbfs/dir.c | int i; |
i | 327 | fs/smbfs/dir.c | for (i = 0; i < SMB_READDIR_CACHE_SIZE; i++) { |
i | 328 | fs/smbfs/dir.c | smb_kfree_s(c_entry[i].path, NAME_MAX + 1); |
i | 535 | fs/smbfs/dir.c | smb_free_inode_info(struct smb_inode_info *i) |
i | 537 | fs/smbfs/dir.c | if (i == NULL) { |
i | 542 | fs/smbfs/dir.c | i->state = SMB_INODE_CACHED; |
i | 543 | fs/smbfs/dir.c | while ((i->nused == 0) && (i->state == SMB_INODE_CACHED)) { |
i | 544 | fs/smbfs/dir.c | struct smb_inode_info *dir = i->dir; |
i | 546 | fs/smbfs/dir.c | i->next->prev = i->prev; |
i | 547 | fs/smbfs/dir.c | i->prev->next = i->next; |
i | 549 | fs/smbfs/dir.c | smb_kfree_s(i->finfo.path, i->finfo.len+1); |
i | 550 | fs/smbfs/dir.c | smb_kfree_s(i, sizeof(struct smb_inode_info)); |
i | 555 | fs/smbfs/dir.c | i = dir; |
i | 722 | fs/smbfs/dir.c | int i; |
i | 724 | fs/smbfs/dir.c | i = first; |
i | 727 | fs/smbfs/dir.c | i, c_entry[i].path); |
i | 728 | fs/smbfs/dir.c | if (strcmp(c_entry[i].path, __name) == 0) { |
i | 730 | fs/smbfs/dir.c | finfo = c_entry[i]; |
i | 735 | fs/smbfs/dir.c | i = (i + 1) % c_size; |
i | 737 | fs/smbfs/dir.c | i, c_entry[i].path); |
i | 738 | fs/smbfs/dir.c | } while (i != first); |
i | 32 | fs/smbfs/file.c | smb_make_open(struct inode *i, int right) |
i | 37 | fs/smbfs/file.c | if (i == NULL) { |
i | 42 | fs/smbfs/file.c | dirent = &(SMB_INOP(i)->finfo); |
i | 48 | fs/smbfs/file.c | open_result = smb_proc_open(SMB_SERVER(i), |
i | 35 | fs/smbfs/mmap.c | int i; |
i | 58 | fs/smbfs/mmap.c | for (i = 0; i < (PAGE_SIZE - clear); i += n) { |
i | 61 | fs/smbfs/mmap.c | hunk = PAGE_SIZE - i; |
i | 69 | fs/smbfs/mmap.c | (char *) (page + i), 0); |
i | 75 | fs/smbfs/mmap.c | i += result; |
i | 351 | fs/smbfs/proc.c | int i, j, len; |
i | 371 | fs/smbfs/proc.c | for (i = 0; i < len; i += 10) { |
i | 372 | fs/smbfs/proc.c | printk("%03d:", i); |
i | 373 | fs/smbfs/proc.c | for (j = i; j < i+10; j++) |
i | 379 | fs/smbfs/proc.c | for (j = i; j < i+10; j++) |
i | 947 | fs/smbfs/proc.c | int i; |
i | 1031 | fs/smbfs/proc.c | for (i = 0; i < count; i ++) { |
i | 1037 | fs/smbfs/proc.c | total_count, i, fpos); |
i | 1154 | fs/smbfs/proc.c | int i; |
i | 1318 | fs/smbfs/proc.c | for (i = 0; i < ff_searchcount; i ++) { |
i | 1325 | fs/smbfs/proc.c | total_count, i, fpos); |
i | 1615 | fs/smbfs/proc.c | int i, plength; |
i | 1684 | fs/smbfs/proc.c | for (i = 0; prots[i].name != NULL; i++) { |
i | 1685 | fs/smbfs/proc.c | plength += strlen(prots[i].name) + 2; |
i | 1692 | fs/smbfs/proc.c | for (i = 0; prots[i].name != NULL; i++) { |
i | 1693 | fs/smbfs/proc.c | p = smb_encode_dialect(p,prots[i].name, strlen(prots[i].name)); |
i | 1707 | fs/smbfs/proc.c | p = smb_decode_word(p, (word *)&i); |
i | 1708 | fs/smbfs/proc.c | server->protocol = prots[i].prot; |
i | 1711 | fs/smbfs/proc.c | prots[i].name); |
i | 2002 | fs/smbfs/proc.c | int i,j; |
i | 2005 | fs/smbfs/proc.c | for (i=0; err_classes[i].class; i++) { |
i | 2006 | fs/smbfs/proc.c | if (err_classes[i].code != class) |
i | 2008 | fs/smbfs/proc.c | if (!err_classes[i].err_msgs) { |
i | 2009 | fs/smbfs/proc.c | printk("%s - %d", err_classes[i].class, num); |
i | 2013 | fs/smbfs/proc.c | err = err_classes[i].err_msgs; |
i | 2018 | fs/smbfs/proc.c | err_classes[i].class, err[j].name, |
i | 466 | fs/super.c | int i; |
i | 468 | fs/super.c | for (i = 1; i < 256; i++) { |
i | 469 | fs/super.c | if (!set_bit(i,unnamed_dev_in_use)) |
i | 470 | fs/super.c | return MKDEV(UNNAMED_MAJOR, i); |
i | 703 | fs/super.c | int i; |
i | 714 | fs/super.c | i = vma->vm_end - (unsigned long) data; |
i | 715 | fs/super.c | if (PAGE_SIZE <= (unsigned long) i) |
i | 716 | fs/super.c | i = PAGE_SIZE-1; |
i | 720 | fs/super.c | memcpy_fromfs((void *) page,data,i); |
i | 232 | fs/sysv/balloc.c | int i; |
i | 238 | fs/sysv/balloc.c | for (i = *sb->sv_sb_flc_count ; /* i > 0 */ ; ) { |
i | 239 | fs/sysv/balloc.c | block = sb->sv_sb_flc_blocks[--i]; |
i | 245 | fs/sysv/balloc.c | if (i == 0) |
i | 290 | fs/sysv/balloc.c | for (i = *flc_count ; /* i > 0 */ ; ) { |
i | 291 | fs/sysv/balloc.c | block = flc_blocks[--i]; |
i | 297 | fs/sysv/balloc.c | if (i == 0) |
i | 71 | fs/sysv/dir.c | unsigned int offset,i; |
i | 102 | fs/sysv/dir.c | i = strnlen(sde.name, SYSV_NAMELEN); |
i | 103 | fs/sysv/dir.c | if (filldir(dirent, sde.name, i, filp->f_pos, sde.inode) < 0) { |
i | 91 | fs/sysv/fsync.c | int i; |
i | 94 | fs/sysv/fsync.c | for (i = 0; i < 10; i++) { |
i | 95 | fs/sysv/fsync.c | rc = sync_block (inode, inode->u.sysv_i.i_data + i, 0, wait); |
i | 106 | fs/sysv/fsync.c | int i; |
i | 116 | fs/sysv/fsync.c | for (i = 0; i < sb->sv_ind_per_block; i++) { |
i | 118 | fs/sysv/fsync.c | ((unsigned long *) ind_bh->b_data) + i, sb->sv_convert, |
i | 132 | fs/sysv/fsync.c | int i; |
i | 142 | fs/sysv/fsync.c | for (i = 0; i < sb->sv_ind_per_block; i++) { |
i | 144 | fs/sysv/fsync.c | ((unsigned long *) dind_bh->b_data) + i, sb->sv_convert, |
i | 158 | fs/sysv/fsync.c | int i; |
i | 168 | fs/sysv/fsync.c | for (i = 0; i < sb->sv_ind_per_block; i++) { |
i | 170 | fs/sysv/fsync.c | ((unsigned long *) tind_bh->b_data) + i, sb->sv_convert, |
i | 38 | fs/sysv/ialloc.c | static inline sysv_ino_t * sv_sb_fic_inode (struct super_block * sb, unsigned int i) |
i | 41 | fs/sysv/ialloc.c | return &sb->sv_sb_fic_inodes[i]; |
i | 44 | fs/sysv/ialloc.c | unsigned int offset = offsetof(struct xenix_super_block, s_inode[i]); |
i | 109 | fs/sysv/ialloc.c | int i,j,ino,block; |
i | 127 | fs/sysv/ialloc.c | for (i = 0, ino = SYSV_ROOT_INO+1, block = sb->sv_firstinodezone, j = SYSV_ROOT_INO ; i < sb->sv_fic_size && block < sb->sv_firstdatazone ; block++, j = 0) { |
i | 134 | fs/sysv/ialloc.c | for (; j < sb->sv_inodes_per_block && i < sb->sv_fic_size; ino++, j++, raw_inode++) { |
i | 136 | fs/sysv/ialloc.c | *sv_sb_fic_inode(sb,i++) = ino; |
i | 140 | fs/sysv/ialloc.c | if (i == 0) { |
i | 145 | fs/sysv/ialloc.c | *sb->sv_sb_fic_count = i; |
i | 379 | fs/sysv/inode.c | int i; |
i | 380 | fs/sysv/inode.c | for (i = 0; i < sizeof(offsets)/sizeof(offsets[0]); i++) |
i | 381 | fs/sysv/inode.c | if ((bh = bread(dev, offsets[i], BLOCK_SIZE)) != NULL) { |
i | 384 | fs/sysv/inode.c | sb->sv_block_base = offsets[i] << sb->sv_block_size_ratio_bits; |
i | 388 | fs/sysv/inode.c | sb->sv_block_base = offsets[i] << sb->sv_block_size_ratio_bits; |
i | 582 | fs/sysv/inode.c | int i; |
i | 590 | fs/sysv/inode.c | i = inode_bmap(sb,inode,10); |
i | 591 | fs/sysv/inode.c | if (!i) |
i | 593 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 598 | fs/sysv/inode.c | i = inode_bmap(sb,inode,11); |
i | 599 | fs/sysv/inode.c | if (!i) |
i | 601 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 602 | fs/sysv/inode.c | i = block_bmap(sb, bh, block >> sb->sv_ind_per_block_bits, convert); |
i | 603 | fs/sysv/inode.c | if (!i) |
i | 605 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 610 | fs/sysv/inode.c | i = inode_bmap(sb,inode,12); |
i | 611 | fs/sysv/inode.c | if (!i) |
i | 613 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 614 | fs/sysv/inode.c | i = block_bmap(sb, bh, block >> sb->sv_ind_per_block_2_bits, convert); |
i | 615 | fs/sysv/inode.c | if (!i) |
i | 617 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 618 | fs/sysv/inode.c | i = block_bmap(sb, bh, (block >> sb->sv_ind_per_block_bits) & sb->sv_ind_per_block_1,convert); |
i | 619 | fs/sysv/inode.c | if (!i) |
i | 621 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 983 | fs/sysv/inode.c | int i; |
i | 986 | fs/sysv/inode.c | for (i = 0; i < 3; i++) { |
i | 987 | fs/sysv/inode.c | if ((ouch = register_filesystem(&sysv_fs_type[i])) != 0) |
i | 1005 | fs/sysv/inode.c | int i; |
i | 1007 | fs/sysv/inode.c | for (i = 0; i < 3; i++) |
i | 1009 | fs/sysv/inode.c | unregister_filesystem(&sysv_fs_type[i]); |
i | 147 | fs/sysv/namei.c | int i; |
i | 188 | fs/sysv/namei.c | for (i = 0; i < SYSV_NAMELEN ; i++) |
i | 189 | fs/sysv/namei.c | de->name[i] = (i < namelen) ? name[i] : 0; |
i | 539 | fs/sysv/namei.c | int i; |
i | 559 | fs/sysv/namei.c | i = 0; |
i | 560 | fs/sysv/namei.c | while (i < sb->sv_block_size_1 && (c = *(symname++))) |
i | 561 | fs/sysv/namei.c | name_block_data[i++] = c; |
i | 562 | fs/sysv/namei.c | name_block_data[i] = 0; |
i | 565 | fs/sysv/namei.c | inode->i_size = i; |
i | 576 | fs/sysv/namei.c | i = sysv_add_entry(dir, name, len, &bh, &de); |
i | 577 | fs/sysv/namei.c | if (i) { |
i | 582 | fs/sysv/namei.c | return i; |
i | 91 | fs/sysv/symlink.c | int i; |
i | 105 | fs/sysv/symlink.c | i = 0; |
i | 106 | fs/sysv/symlink.c | while (i<buflen && (c = bh_data[i])) { |
i | 107 | fs/sysv/symlink.c | i++; |
i | 111 | fs/sysv/symlink.c | return i; |
i | 43 | fs/sysv/truncate.c | unsigned int i; |
i | 51 | fs/sysv/truncate.c | for (i = ((unsigned long) inode->i_size + sb->sv_block_size_1) >> sb->sv_block_size_bits; i < 10; i++) { |
i | 52 | fs/sysv/truncate.c | p = inode->u.sysv_i.i_data + i; |
i | 57 | fs/sysv/truncate.c | if ((i << sb->sv_block_size_bits) < inode->i_size) { |
i | 79 | fs/sysv/truncate.c | unsigned int i; |
i | 103 | fs/sysv/truncate.c | i = 0; |
i | 105 | fs/sysv/truncate.c | i = (inode->i_size - offset + sb->sv_block_size_1) >> sb->sv_block_size_bits; |
i | 106 | fs/sysv/truncate.c | for (; i < sb->sv_ind_per_block; i++) { |
i | 107 | fs/sysv/truncate.c | ind = ((sysv_zone_t *) indbh->b_data) + i; |
i | 114 | fs/sysv/truncate.c | if ((i << sb->sv_block_size_bits) + offset < inode->i_size) { |
i | 128 | fs/sysv/truncate.c | for (i = 0; i < sb->sv_ind_per_block; i++) |
i | 129 | fs/sysv/truncate.c | if (((sysv_zone_t *) indbh->b_data)[i]) |
i | 148 | fs/sysv/truncate.c | unsigned int i; |
i | 170 | fs/sysv/truncate.c | i = 0; |
i | 172 | fs/sysv/truncate.c | i = (inode->i_size - offset + sb->sv_ind_per_block_block_size_1) >> sb->sv_ind_per_block_block_size_bits; |
i | 173 | fs/sysv/truncate.c | for (; i < sb->sv_ind_per_block; i++) { |
i | 175 | fs/sysv/truncate.c | ind = ((sysv_zone_t *) indbh->b_data) + i; |
i | 181 | fs/sysv/truncate.c | retry |= trunc_indirect(inode,offset+(i<<sb->sv_ind_per_block_bits),ind,sb->sv_convert,&dirty); |
i | 185 | fs/sysv/truncate.c | for (i = 0; i < sb->sv_ind_per_block; i++) |
i | 186 | fs/sysv/truncate.c | if (((sysv_zone_t *) indbh->b_data)[i]) |
i | 205 | fs/sysv/truncate.c | unsigned int i; |
i | 227 | fs/sysv/truncate.c | i = 0; |
i | 229 | fs/sysv/truncate.c | i = (inode->i_size - offset + sb->sv_ind_per_block_2_block_size_1) >> sb->sv_ind_per_block_2_block_size_bits; |
i | 230 | fs/sysv/truncate.c | for (; i < sb->sv_ind_per_block; i++) { |
i | 232 | fs/sysv/truncate.c | ind = ((sysv_zone_t *) indbh->b_data) + i; |
i | 238 | fs/sysv/truncate.c | retry |= trunc_dindirect(inode,offset+(i<<sb->sv_ind_per_block_2_bits),ind,sb->sv_convert,&dirty); |
i | 242 | fs/sysv/truncate.c | for (i = 0; i < sb->sv_ind_per_block; i++) |
i | 243 | fs/sysv/truncate.c | if (((sysv_zone_t *) indbh->b_data)[i]) |
i | 41 | fs/umsdos/check.c | int i; |
i | 42 | fs/umsdos/check.c | for (i = 0 ; i < PTRS_PER_PAGE ; i++,page_dir++){ |
i | 46 | fs/umsdos/check.c | printk ("|%d:%08lx| ",i, page_dir->pgd); |
i | 173 | fs/umsdos/mangle.c | int i; |
i | 176 | fs/umsdos/mangle.c | for (i=0; i<=32; i++) lkp[i] = '#'; |
i | 177 | fs/umsdos/mangle.c | for (i=33; i<'A'; i++) lkp[i] = (char)i; |
i | 178 | fs/umsdos/mangle.c | for (i='A'; i<='Z'; i++) lkp[i] = (char)(i+('a'-'A')); |
i | 179 | fs/umsdos/mangle.c | for (i='Z'+1; i<127; i++) lkp[i] = (char)i; |
i | 180 | fs/umsdos/mangle.c | for (i=128; i<256; i++) lkp[i] = '#'; |
i | 282 | fs/umsdos/mangle.c | int i; |
i | 290 | fs/umsdos/mangle.c | for (i=0; i<msdos_len; i++, pt++) *pt = lkp[(unsigned char)(*pt)]; |
i | 353 | fs/umsdos/mangle.c | int i; |
i | 354 | fs/umsdos/mangle.c | for (i=start_ind_dev[base_len-1]; i<start_ind_dev[base_len]; i++){ |
i | 355 | fs/umsdos/mangle.c | if (memcmp(info->fake.fname,tbdev[i],base_len)==0){ |
i | 449 | fs/umsdos/mangle.c | int i,rold,rnew; |
i | 451 | fs/umsdos/mangle.c | for (i=0; i<sizeof(tb)/sizeof(tb[0]); i++){ |
i | 452 | fs/umsdos/mangle.c | struct MANG_TEST *pttb = tb+i; |
i | 467 | fs/umsdos/mangle.c | for (i=0; i<UMSDOS_MAXNAME ; i++){ |
i | 468 | fs/umsdos/mangle.c | rnew=umsdos_evalrecsize (i); |
i | 469 | fs/umsdos/mangle.c | rold=umsdos_evalrecsize_old (i); |
i | 470 | fs/umsdos/mangle.c | if (!(i%UMSDOS_REC_SIZE)){ |
i | 471 | fs/umsdos/mangle.c | printf ("\n%d:\t",i); |
i | 474 | fs/umsdos/mangle.c | printf ("**** %d newres: %d != %d \n", i, rnew, rold); |
i | 199 | fs/vfat/namei.c | int i; |
i | 203 | fs/vfat/namei.c | for (i = 0; i < 32; i++, p++) { |
i | 239 | fs/vfat/namei.c | int i; |
i | 249 | fs/vfat/namei.c | for (i = 0; i < len; i++) { |
i | 250 | fs/vfat/namei.c | c = name[i]; |
i | 402 | fs/vfat/namei.c | int i; |
i | 415 | fs/vfat/namei.c | for (i = 0, p = msdos_name, ip = name; i < len; i++, p++, ip++) |
i | 469 | fs/vfat/namei.c | for (baselen = i = 0, p = base, ip = name; i < sz && baselen < 8; i++) |
i | 517 | fs/vfat/namei.c | i = 0; |
i | 520 | fs/vfat/namei.c | i++; |
i | 521 | fs/vfat/namei.c | if (i == 10000000) return -EEXIST; |
i | 522 | fs/vfat/namei.c | sprintf(buf, "%d", i); |
i | 598 | fs/vfat/namei.c | int i; |
i | 605 | fs/vfat/namei.c | for (i = 0, ip = name, op = outname, *outlen = 0; |
i | 606 | fs/vfat/namei.c | i < len && *outlen <= 260; i++, *outlen += 1) |
i | 608 | fs/vfat/namei.c | if (escape && (i < len - 4) && |
i | 631 | fs/vfat/namei.c | for (i = 0; i < fill; i++) { |
i | 655 | fs/vfat/namei.c | int i; |
i | 668 | fs/vfat/namei.c | for (cksum = i = 0; i < 11; i++) { |
i | 669 | fs/vfat/namei.c | cksum = (((cksum&1)<<7)|((cksum&0xfe)>>1)) + msdos_name[i]; |
i | 688 | fs/vfat/namei.c | for (i = 0; i < 10; i += 2) { |
i | 689 | fs/vfat/namei.c | ps->name0_4[i] = *ip++; |
i | 690 | fs/vfat/namei.c | ps->name0_4[i+1] = *ip++; |
i | 693 | fs/vfat/namei.c | for (i = 0; i < 12; i += 2) { |
i | 694 | fs/vfat/namei.c | ps->name5_10[i] = *ip++; |
i | 695 | fs/vfat/namei.c | ps->name5_10[i+1] = *ip++; |
i | 698 | fs/vfat/namei.c | for (i = 0; i < 4; i += 2) { |
i | 699 | fs/vfat/namei.c | ps->name11_12[i] = *ip++; |
i | 700 | fs/vfat/namei.c | ps->name11_12[i+1] = *ip++; |
i | 771 | fs/vfat/namei.c | int i; |
i | 783 | fs/vfat/namei.c | for (i = 0; i < name_len; i++) { |
i | 1214 | fs/vfat/namei.c | int res, i; |
i | 1229 | fs/vfat/namei.c | for (i = sinfo->long_slots; i > 0; --i) { |
i | 1361 | fs/vfat/namei.c | int res, is_dir, i; |
i | 1482 | fs/vfat/namei.c | for (i = old_slots; i > 0; --i) { |
i | 36 | fs/xiafs/bitmap.c | int end, i, j, tmp; |
i | 43 | fs/xiafs/bitmap.c | i=start_bit >> 5; |
i | 44 | fs/xiafs/bitmap.c | if ( (tmp=(~bmap[i]) & (0xffffffff << (start_bit & 31))) ) |
i | 46 | fs/xiafs/bitmap.c | while (++i < end) |
i | 47 | fs/xiafs/bitmap.c | if (~bmap[i]) { |
i | 48 | fs/xiafs/bitmap.c | tmp=~bmap[i]; |
i | 51 | fs/xiafs/bitmap.c | if ( !(tmp=~bmap[i] & ((1 << (end_bit & 31)) -1)) ) |
i | 57 | fs/xiafs/bitmap.c | if (set_bit(j,bmap+i)) { |
i | 58 | fs/xiafs/bitmap.c | start_bit=j + (i << 5) + 1; |
i | 62 | fs/xiafs/bitmap.c | return j + (i << 5); |
i | 67 | fs/xiafs/bitmap.c | register int i; |
i | 71 | fs/xiafs/bitmap.c | for (i= bh->b_size >> 2; i-- > 0; ) |
i | 79 | fs/xiafs/bitmap.c | int i; |
i | 83 | fs/xiafs/bitmap.c | for (i=pos; i > 0; i--) { |
i | 84 | fs/xiafs/bitmap.c | bmap[i]=bmap[i-1]; |
i | 85 | fs/xiafs/bitmap.c | bznr[i]=bznr[i-1]; |
i | 112 | fs/xiafs/bitmap.c | int z_nr, i; |
i | 122 | fs/xiafs/bitmap.c | for (i=0; i < slots; i++) |
i | 123 | fs/xiafs/bitmap.c | if (bznr[i]==z_nr) |
i | 125 | fs/xiafs/bitmap.c | if (i < slots) { /* cache hit */ |
i | 127 | fs/xiafs/bitmap.c | *not_que=i; |
i | 128 | fs/xiafs/bitmap.c | return bmap_buf[i]; |
i | 130 | fs/xiafs/bitmap.c | que(bmap_buf, bznr, i); |
i | 342 | fs/xiafs/bitmap.c | int i, tmp; |
i | 346 | fs/xiafs/bitmap.c | for (i=bh->b_size; i-- > 0; ) { |
i | 347 | fs/xiafs/bitmap.c | tmp=bh->b_data[i]; |
i | 356 | fs/xiafs/bitmap.c | int izones, i, not_que; |
i | 361 | fs/xiafs/bitmap.c | for (i=0; i < izones; i++) { |
i | 362 | fs/xiafs/bitmap.c | bh=get_imap_zone(sb, i << XIAFS_BITS_PER_Z_BITS(sb), ¬_que); |
i | 368 | fs/xiafs/bitmap.c | i=izones << XIAFS_BITS_PER_Z_BITS(sb); |
i | 369 | fs/xiafs/bitmap.c | return i - sum; |
i | 375 | fs/xiafs/bitmap.c | int zzones, i, not_que; |
i | 380 | fs/xiafs/bitmap.c | for (i=0; i < zzones; i++) { |
i | 381 | fs/xiafs/bitmap.c | bh=get_zmap_zone(sb, i << XIAFS_BITS_PER_Z_BITS(sb), ¬_que); |
i | 387 | fs/xiafs/bitmap.c | i=zzones << XIAFS_BITS_PER_Z_BITS(sb); |
i | 388 | fs/xiafs/bitmap.c | return i - sum; |
i | 71 | fs/xiafs/dir.c | u_int offset, i; |
i | 86 | fs/xiafs/dir.c | for (i = 0; i < XIAFS_ZSIZE(inode->i_sb) && i < offset; ) { |
i | 87 | fs/xiafs/dir.c | de = (struct xiafs_direct *) (bh->b_data + i); |
i | 90 | fs/xiafs/dir.c | i += de->d_rec_len; |
i | 92 | fs/xiafs/dir.c | offset = i; |
i | 84 | fs/xiafs/fsync.c | int i; |
i | 87 | fs/xiafs/fsync.c | for (i = 0; i < 8; i++) { |
i | 88 | fs/xiafs/fsync.c | rc = sync_block (inode, inode->u.ext_i.i_data + i, wait); |
i | 99 | fs/xiafs/fsync.c | int i; |
i | 107 | fs/xiafs/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 109 | fs/xiafs/fsync.c | ((unsigned long *) ind_bh->b_data) + i, |
i | 123 | fs/xiafs/fsync.c | int i; |
i | 131 | fs/xiafs/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 133 | fs/xiafs/fsync.c | ((unsigned long *) dind_bh->b_data) + i, |
i | 39 | fs/xiafs/inode.c | int i; |
i | 43 | fs/xiafs/inode.c | for(i = 0 ; i < _XIAFS_IMAP_SLOTS ; i++) |
i | 44 | fs/xiafs/inode.c | brelse(sb->u.xiafs_sb.s_imap_buf[i]); |
i | 45 | fs/xiafs/inode.c | for(i = 0 ; i < _XIAFS_ZMAP_SLOTS ; i++) |
i | 46 | fs/xiafs/inode.c | brelse(sb->u.xiafs_sb.s_zmap_buf[i]); |
i | 67 | fs/xiafs/inode.c | int i, z; |
i | 118 | fs/xiafs/inode.c | for (i=0;i < _XIAFS_IMAP_SLOTS;i++) { |
i | 119 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_buf[i] = NULL; |
i | 120 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_iznr[i] = -1; |
i | 122 | fs/xiafs/inode.c | for (i=0;i < _XIAFS_ZMAP_SLOTS;i++) { |
i | 123 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_buf[i] = NULL; |
i | 124 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_zznr[i] = -1; |
i | 131 | fs/xiafs/inode.c | for (i=0 ; i < s->u.xiafs_sb.s_imap_zones ; i++) { |
i | 132 | fs/xiafs/inode.c | if (!(s->u.xiafs_sb.s_imap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s)))) |
i | 134 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_iznr[i]=i; |
i | 141 | fs/xiafs/inode.c | for (i=0 ; i < s->u.xiafs_sb.s_zmap_zones ; i++) { |
i | 142 | fs/xiafs/inode.c | if (!(s->u.xiafs_sb.s_zmap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s)))) |
i | 144 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_zznr[i]=i; |
i | 158 | fs/xiafs/inode.c | for(i=0; i < _XIAFS_IMAP_SLOTS; i++) |
i | 159 | fs/xiafs/inode.c | brelse(s->u.xiafs_sb.s_imap_buf[i]); |
i | 160 | fs/xiafs/inode.c | for(i=0; i < _XIAFS_ZMAP_SLOTS; i++) |
i | 161 | fs/xiafs/inode.c | brelse(s->u.xiafs_sb.s_zmap_buf[i]); |
i | 197 | fs/xiafs/inode.c | int i; |
i | 215 | fs/xiafs/inode.c | i = inode->u.xiafs_i.i_ind_zone; |
i | 216 | fs/xiafs/inode.c | if (i) |
i | 217 | fs/xiafs/inode.c | i = zone_bmap(bread(inode->i_dev, i, XIAFS_ZSIZE(inode->i_sb)), zone); |
i | 218 | fs/xiafs/inode.c | return i; |
i | 221 | fs/xiafs/inode.c | i = inode->u.xiafs_i.i_dind_zone; |
i | 222 | fs/xiafs/inode.c | if (i) |
i | 223 | fs/xiafs/inode.c | i = zone_bmap(bread(inode->i_dev, i, XIAFS_ZSIZE(inode->i_sb)), |
i | 225 | fs/xiafs/inode.c | if (i) |
i | 226 | fs/xiafs/inode.c | i= zone_bmap(bread(inode->i_dev,i, XIAFS_ZSIZE(inode->i_sb)), |
i | 228 | fs/xiafs/inode.c | return i; |
i | 34 | fs/xiafs/namei.c | int i; |
i | 43 | fs/xiafs/namei.c | for (i=0; i < len; i++) |
i | 44 | fs/xiafs/namei.c | if (*name++ != dep->d_name[i]) |
i | 61 | fs/xiafs/namei.c | int i, zones, pos; |
i | 76 | fs/xiafs/namei.c | for (i=0; i < zones; i++ ) { |
i | 77 | fs/xiafs/namei.c | bh = xiafs_bread(inode, i, 0); |
i | 81 | fs/xiafs/namei.c | if (!i && (dep->d_rec_len != 12 || !dep->d_ino || |
i | 158 | fs/xiafs/namei.c | int i, pos, offset; |
i | 207 | fs/xiafs/namei.c | i=RNDUP4(de->d_name_len)+8; |
i | 209 | fs/xiafs/namei.c | de=(struct xiafs_direct *)(i+(u_char *)de_pre); |
i | 211 | fs/xiafs/namei.c | de->d_rec_len=de_pre->d_rec_len-i; |
i | 212 | fs/xiafs/namei.c | de_pre->d_rec_len=i; |
i | 408 | fs/xiafs/namei.c | int i, zones, offset; |
i | 418 | fs/xiafs/namei.c | for (i=0; i < zones; i++) { |
i | 419 | fs/xiafs/namei.c | bh = xiafs_bread(inode, i, 0); |
i | 420 | fs/xiafs/namei.c | if (!i) { |
i | 591 | fs/xiafs/namei.c | int i; |
i | 614 | fs/xiafs/namei.c | for (i = 0; i < BLOCK_SIZE-1 && (c=*symname++); i++) |
i | 615 | fs/xiafs/namei.c | name_block->b_data[i] = c; |
i | 616 | fs/xiafs/namei.c | name_block->b_data[i] = 0; |
i | 619 | fs/xiafs/namei.c | inode->i_size = i; |
i | 52 | fs/xiafs/symlink.c | int i; |
i | 69 | fs/xiafs/symlink.c | for (i=0; i < buflen && (c=bh->b_data[i]); i++) |
i | 71 | fs/xiafs/symlink.c | if (i < buflen-1) |
i | 74 | fs/xiafs/symlink.c | return i; |
i | 42 | fs/xiafs/truncate.c | int i, tmp; |
i | 46 | fs/xiafs/truncate.c | for (i = DT_ZONE ; i < 8 ; i++) { |
i | 47 | fs/xiafs/truncate.c | if (i < DT_ZONE) |
i | 49 | fs/xiafs/truncate.c | lp=i + inode->u.xiafs_i.i_zone; |
i | 53 | fs/xiafs/truncate.c | if (i < DT_ZONE) { |
i | 76 | fs/xiafs/truncate.c | int i, tmp; |
i | 92 | fs/xiafs/truncate.c | for (i = INDT_ZONE<0?0:INDT_ZONE; i < XIAFS_ADDRS_PER_Z(inode->i_sb); i++) { |
i | 93 | fs/xiafs/truncate.c | if (i < INDT_ZONE) |
i | 95 | fs/xiafs/truncate.c | indp = i+(u_long *) ind_bh->b_data; |
i | 99 | fs/xiafs/truncate.c | if (i < INDT_ZONE) { |
i | 114 | fs/xiafs/truncate.c | for (i = 0; i < XIAFS_ADDRS_PER_Z(inode->i_sb) && !(*indp++); i++) ; |
i | 115 | fs/xiafs/truncate.c | if (i >= XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i | 135 | fs/xiafs/truncate.c | int i, tmp; |
i | 153 | fs/xiafs/truncate.c | for (i=DINDT_ZONE<0?0:DINDT_ZONE ; i < XIAFS_ADDRS_PER_Z(inode->i_sb) ; i ++) { |
i | 154 | fs/xiafs/truncate.c | if (i < DINDT_ZONE) |
i | 156 | fs/xiafs/truncate.c | dindp = i+(u_long *) dind_bh->b_data; |
i | 158 | fs/xiafs/truncate.c | 8+((1+i)<<XIAFS_ADDRS_PER_Z_BITS(inode->i_sb)), |
i | 163 | fs/xiafs/truncate.c | for (i = 0; i < XIAFS_ADDRS_PER_Z(inode->i_sb) && !(*dindp++); i++); |
i | 164 | fs/xiafs/truncate.c | if (i >= XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i | 21 | include/asm-alpha/atomic.h | extern __inline__ void atomic_add(atomic_t i, atomic_t * v) |
i | 33 | include/asm-alpha/atomic.h | :"Ir" (i), |
i | 37 | include/asm-alpha/atomic.h | extern __inline__ void atomic_sub(atomic_t i, atomic_t * v) |
i | 49 | include/asm-alpha/atomic.h | :"Ir" (i), |
i | 78 | include/asm-alpha/posix_types.h | int i; |
i | 88 | include/asm-alpha/posix_types.h | i = __FDSET_INTS; |
i | 89 | include/asm-alpha/posix_types.h | while (i) { |
i | 90 | include/asm-alpha/posix_types.h | i--; |
i | 280 | include/asm-alpha/unistd.h | int i; |
i | 284 | include/asm-alpha/unistd.h | i = do_execve(file, argvp, envp, ®s); |
i | 285 | include/asm-alpha/unistd.h | if (!i) { |
i | 24 | include/asm-i386/atomic.h | static __inline__ void atomic_add(atomic_t i, atomic_t *v) |
i | 29 | include/asm-i386/atomic.h | :"ir" (i), "m" (__atomic_fool_gcc(v))); |
i | 32 | include/asm-i386/atomic.h | static __inline__ void atomic_sub(atomic_t i, atomic_t *v) |
i | 37 | include/asm-i386/atomic.h | :"ir" (i), "m" (__atomic_fool_gcc(v))); |
i | 108 | include/asm-i386/io.h | #define __IN(s,s1,i...) \ |
i | 109 | include/asm-i386/io.h | __IN1(s) __IN2(s,s1,"w") : "=a" (_v) : "d" (port) ,##i ); return _v; } \ |
i | 110 | include/asm-i386/io.h | __IN1(s##c) __IN2(s,s1,"") : "=a" (_v) : "id" (port) ,##i ); return _v; } \ |
i | 111 | include/asm-i386/io.h | __IN1(s##_p) __IN2(s,s1,"w") : "=a" (_v) : "d" (port) ,##i ); SLOW_DOWN_IO; return _v; } \ |
i | 112 | include/asm-i386/io.h | __IN1(s##c_p) __IN2(s,s1,"") : "=a" (_v) : "id" (port) ,##i ); SLOW_DOWN_IO; return _v; } |
i | 142 | include/asm-mips/io.h | #define __INS(m,s,i) \ |
i | 145 | include/asm-mips/io.h | : "0" (addr), "1" (count), "i" (0), "r" (PORT_BASE+port), "I" (i) \ |
i | 149 | include/asm-mips/io.h | : "0" (addr), "1" (count), "ir" (port), "r" (PORT_BASE), "I" (i) \ |
i | 167 | include/asm-mips/io.h | #define __OUTS(m,s,i) \ |
i | 170 | include/asm-mips/io.h | : "0" (addr), "1" (count), "i" (0), "r" (PORT_BASE+port), "I" (i) \ |
i | 174 | include/asm-mips/io.h | : "0" (addr), "1" (count), "ir" (port), "r" (PORT_BASE), "I" (i) \ |
i | 140 | include/asm-mips/types.h | int i; |
i | 150 | include/asm-mips/types.h | i = __FDSET_INTS; |
i | 151 | include/asm-mips/types.h | while (i) { |
i | 152 | include/asm-mips/types.h | i--; |
i | 21 | include/asm-ppc/mmu.h | unsigned long i:1; /* Cache inhibited */ |
i | 61 | include/asm-ppc/mmu.h | unsigned long i:1; /* Cache inhibit */ |
i | 110 | include/asm-ppc/types.h | int i; |
i | 120 | include/asm-ppc/types.h | i = __FDSET_INTS; |
i | 121 | include/asm-ppc/types.h | while (i) { |
i | 122 | include/asm-ppc/types.h | i--; |
i | 118 | include/asm-sparc/processor.h | int i; |
i | 120 | include/asm-sparc/processor.h | for(i = 0; i < 16; i++) regs->u_regs[i] = 0; |
i | 110 | include/asm-sparc/types.h | int i; |
i | 123 | include/asm-sparc/types.h | i = __FDSET_INTS; |
i | 124 | include/asm-sparc/types.h | while (i) { |
i | 125 | include/asm-sparc/types.h | i--; |
i | 62 | include/linux/msdos_fs.h | #define MSDOS_I(i) (&((i)->u.msdos_i)) |
i | 224 | include/linux/ncp.h | struct nw_info_struct i; |
i | 77 | include/linux/ncp_fs.h | #define NCP_ISTRUCT(inode) (&(NCP_FINFO(inode)->i)) |
i | 123 | include/linux/ncp_fs.h | int ncp_make_open(struct inode *i, int right); |
i | 127 | include/linux/ncp_fs.h | void ncp_free_inode_info(struct ncp_inode_info *i); |
i | 39 | include/linux/pagemap.h | return s(i+o) & (PAGE_HASH_SIZE-1); |
i | 97 | include/linux/smb_fs.h | int smb_make_open(struct inode *i, int right); |
i | 101 | include/linux/smb_fs.h | void smb_free_inode_info(struct smb_inode_info *i); |
i | 1039 | include/linux/soundcard.h | {int i, l=(len); if (l>6)l=6;\ |
i | 1042 | include/linux/soundcard.h | for(i=0;i<l;i++)_seqbuf[_seqbufptr+i+1] = (buf)[i];\ |
i | 1043 | include/linux/soundcard.h | for(i=l;i<6;i++)_seqbuf[_seqbufptr+i+1] = 0xff;\ |
i | 22 | include/linux/wrapper.h | #define inode_get_rdev(i) i->i_rdev |
i | 23 | include/linux/wrapper.h | #define inode_get_count(i) i->i_count |
i | 24 | include/linux/wrapper.h | #define inode_inc_count(i) i->i_count++ |
i | 25 | include/linux/wrapper.h | #define inode_dec_count(i) i->i_count-- |
i | 29 | include/linux/wrapper.h | #define vma_set_inode(v,i) v->vm_inode = i |
i | 186 | init/main.c | int i=1; |
i | 188 | init/main.c | while (cur && isdigit(*cur) && i <= 10) { |
i | 189 | init/main.c | ints[i++] = simple_strtoul(cur,NULL,0); |
i | 193 | init/main.c | ints[0] = i-1; |
i | 363 | init/main.c | int i = 0; |
i | 373 | init/main.c | while (bootsetups[i].str) { |
i | 374 | init/main.c | int n = strlen(bootsetups[i].str); |
i | 375 | init/main.c | if (!strncmp(line,bootsetups[i].str,n)) { |
i | 376 | init/main.c | bootsetups[i].setup_func(get_options(line+n,ints), ints); |
i | 379 | init/main.c | i++; |
i | 589 | init/main.c | int i, j; |
i | 599 | init/main.c | for (i=1; i<smp_num_cpus; i++) |
i | 601 | init/main.c | j = cpu_logical_map[i]; |
i | 610 | init/main.c | current_set[j]=task[i]; |
i | 735 | init/main.c | int i; |
i | 738 | init/main.c | write(1,printbuf,i=vsprintf(printbuf, fmt, args)); |
i | 740 | init/main.c | return i; |
i | 782 | init/main.c | int pid,i; |
i | 831 | init/main.c | while (pid != wait(&i)); |
i | 853 | init/main.c | while (pid != wait(&i)) |
i | 866 | init/main.c | if (pid == wait(&i)) |
i | 868 | init/main.c | printf("\n\rchild %d died with code %04x\n\r",pid,i); |
i | 423 | ipc/msg.c | int i; |
i | 429 | ipc/msg.c | for (i = 0; i < MAX_KERNELDS; ++i) { |
i | 430 | ipc/msg.c | if (kerneld_arr[i] == 0) { |
i | 431 | ipc/msg.c | kerneld_arr[i] = current->pid; |
i | 622 | ipc/msg.c | int i; |
i | 626 | ipc/msg.c | for (i = 0; i < MAX_KERNELDS; ++i) { |
i | 627 | ipc/msg.c | if (kerneld_arr[i] == current->pid) { |
i | 628 | ipc/msg.c | kerneld_arr[i] = 0; |
i | 57 | ipc/sem.c | int i; |
i | 61 | ipc/sem.c | for (i = 0; i < SEMMNI; i++) |
i | 62 | ipc/sem.c | semary[i] = (struct semid_ds *) IPC_UNUSED; |
i | 180 | ipc/sem.c | int i = 0; |
i | 182 | ipc/sem.c | while (i < nsops) { |
i | 183 | ipc/sem.c | struct sembuf * sop = &sops[i]; |
i | 196 | ipc/sem.c | i++; |
i | 206 | ipc/sem.c | while (--i >= 0) { |
i | 207 | ipc/sem.c | struct sembuf * sop = &sops[i]; |
i | 219 | ipc/sem.c | int i; |
i | 221 | ipc/sem.c | for (i = 0; i < nsops; i++) { |
i | 222 | ipc/sem.c | struct sembuf * sop = &sops[i]; |
i | 300 | ipc/sem.c | int i; |
i | 301 | ipc/sem.c | for (i = 0; i < nsops; i++) |
i | 302 | ipc/sem.c | if (sops[i].sem_num == semnum |
i | 303 | ipc/sem.c | && (sops[i].sem_op < 0) |
i | 304 | ipc/sem.c | && !(sops[i].sem_flg & IPC_NOWAIT)) |
i | 318 | ipc/sem.c | int i; |
i | 319 | ipc/sem.c | for (i = 0; i < nsops; i++) |
i | 320 | ipc/sem.c | if (sops[i].sem_num == semnum |
i | 321 | ipc/sem.c | && (sops[i].sem_op == 0) |
i | 322 | ipc/sem.c | && !(sops[i].sem_flg & IPC_NOWAIT)) |
i | 364 | ipc/sem.c | int i, id, val = 0; |
i | 395 | ipc/sem.c | i = verify_area(VERIFY_WRITE, tmp, sizeof(struct seminfo)); |
i | 396 | ipc/sem.c | if (i) |
i | 397 | ipc/sem.c | return i; |
i | 404 | ipc/sem.c | i = verify_area (VERIFY_WRITE, buf, sizeof (*buf)); |
i | 405 | ipc/sem.c | if (i) |
i | 406 | ipc/sem.c | return i; |
i | 459 | ipc/sem.c | i = verify_area (VERIFY_WRITE, array, nsems*sizeof(ushort)); |
i | 460 | ipc/sem.c | if (i) |
i | 461 | ipc/sem.c | return i; |
i | 477 | ipc/sem.c | if ((i = verify_area (VERIFY_READ, array, nsems*sizeof(ushort)))) |
i | 478 | ipc/sem.c | return i; |
i | 480 | ipc/sem.c | for (i = 0; i < nsems; i++) |
i | 481 | ipc/sem.c | if (sem_io[i] > SEMVMX) |
i | 486 | ipc/sem.c | if ((i = verify_area (VERIFY_WRITE, buf, sizeof(*buf)))) |
i | 487 | ipc/sem.c | return i; |
i | 491 | ipc/sem.c | if ((i = verify_area (VERIFY_READ, buf, sizeof (*buf)))) |
i | 492 | ipc/sem.c | return i; |
i | 506 | ipc/sem.c | for (i = 0; i < sma->sem_nsems; i++) |
i | 507 | ipc/sem.c | sem_io[i] = sma->sem_base[i].semval; |
i | 542 | ipc/sem.c | for (i = 0; i < nsems; i++) |
i | 543 | ipc/sem.c | sma->sem_base[i].semval = sem_io[i]; |
i | 545 | ipc/sem.c | for (i = 0; i < nsems; i++) |
i | 546 | ipc/sem.c | un->semadj[i] = 0; |
i | 559 | ipc/sem.c | int i, id, size, error; |
i | 571 | ipc/sem.c | if ((i = verify_area (VERIFY_READ, tsops, nsops * sizeof(*tsops)))) |
i | 572 | ipc/sem.c | return i; |
i | 579 | ipc/sem.c | for (i = 0; i < nsops; i++) { |
i | 580 | ipc/sem.c | sop = &sops[i]; |
i | 668 | ipc/sem.c | int nsems, i; |
i | 698 | ipc/sem.c | for (i = 0; i < nsems; i++) { |
i | 699 | ipc/sem.c | struct sem * sem = &sma->sem_base[i]; |
i | 700 | ipc/sem.c | sem->semval += u->semadj[i]; |
i | 78 | ipc/shm.c | int id, i; |
i | 109 | ipc/shm.c | for (i = 0; i < numpages; shp->shm_pages[i++] = 0); |
i | 166 | ipc/shm.c | int i, numpages; |
i | 184 | ipc/shm.c | for (i = 0; i < numpages ; i++) { |
i | 186 | ipc/shm.c | pte_val(pte) = shp->shm_pages[i]; |
i | 59 | kernel/dma.c | int i, len = 0; |
i | 61 | kernel/dma.c | for (i = 0 ; i < MAX_DMA_CHANNELS ; i++) { |
i | 62 | kernel/dma.c | if (dma_chan_busy[i].lock) { |
i | 64 | kernel/dma.c | i, |
i | 65 | kernel/dma.c | dma_chan_busy[i].device_id); |
i | 87 | kernel/exit.c | int i; |
i | 95 | kernel/exit.c | for (i=1 ; i<NR_TASKS ; i++) |
i | 96 | kernel/exit.c | if (task[i] == p) { |
i | 98 | kernel/exit.c | task[i] = NULL; |
i | 120 | kernel/exit.c | int i; |
i | 124 | kernel/exit.c | for (i=0 ; i<NR_TASKS ; i++) |
i | 125 | kernel/exit.c | if (task[i] == p) |
i | 141 | kernel/exit.c | int i; |
i | 143 | kernel/exit.c | for (i=1 ; i<NR_TASKS ; i++) { |
i | 144 | kernel/exit.c | if (!task[i]) |
i | 146 | kernel/exit.c | if (bad_task_ptr(task[i]->p_pptr)) |
i | 148 | kernel/exit.c | task[i]->pid); |
i | 149 | kernel/exit.c | if (bad_task_ptr(task[i]->p_cptr)) |
i | 151 | kernel/exit.c | task[i]->pid); |
i | 152 | kernel/exit.c | if (bad_task_ptr(task[i]->p_ysptr)) |
i | 154 | kernel/exit.c | task[i]->pid); |
i | 155 | kernel/exit.c | if (bad_task_ptr(task[i]->p_osptr)) |
i | 157 | kernel/exit.c | task[i]->pid); |
i | 158 | kernel/exit.c | if (task[i]->p_pptr == task[i]) |
i | 160 | kernel/exit.c | task[i]->pid); |
i | 161 | kernel/exit.c | if (task[i]->p_cptr == task[i]) |
i | 163 | kernel/exit.c | task[i]->pid); |
i | 164 | kernel/exit.c | if (task[i]->p_ysptr == task[i]) |
i | 166 | kernel/exit.c | task[i]->pid); |
i | 167 | kernel/exit.c | if (task[i]->p_osptr == task[i]) |
i | 169 | kernel/exit.c | task[i]->pid); |
i | 170 | kernel/exit.c | if (task[i]->p_osptr) { |
i | 171 | kernel/exit.c | if (task[i]->p_pptr != task[i]->p_osptr->p_pptr) |
i | 174 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid, |
i | 175 | kernel/exit.c | task[i]->p_osptr->p_pptr->pid); |
i | 176 | kernel/exit.c | if (task[i]->p_osptr->p_ysptr != task[i]) |
i | 179 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid); |
i | 181 | kernel/exit.c | if (task[i]->p_ysptr) { |
i | 182 | kernel/exit.c | if (task[i]->p_pptr != task[i]->p_ysptr->p_pptr) |
i | 185 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid, |
i | 186 | kernel/exit.c | task[i]->p_osptr->p_pptr->pid); |
i | 187 | kernel/exit.c | if (task[i]->p_ysptr->p_osptr != task[i]) |
i | 190 | kernel/exit.c | task[i]->pid, task[i]->p_ysptr->pid); |
i | 192 | kernel/exit.c | if (task[i]->p_cptr) { |
i | 193 | kernel/exit.c | if (task[i]->p_cptr->p_pptr != task[i]) |
i | 196 | kernel/exit.c | task[i]->pid, task[i]->p_cptr->pid); |
i | 197 | kernel/exit.c | if (task[i]->p_cptr->p_ysptr) |
i | 200 | kernel/exit.c | task[i]->pid, task[i]->p_cptr->pid); |
i | 372 | kernel/exit.c | int i; |
i | 373 | kernel/exit.c | for (i=0 ; i<NR_OPEN ; i++) { |
i | 374 | kernel/exit.c | struct file * filp = files->fd[i]; |
i | 377 | kernel/exit.c | files->fd[i] = NULL; |
i | 35 | kernel/fork.c | int i; |
i | 53 | kernel/fork.c | for (i = 0 ; i < NR_TASKS ; i++) { |
i | 54 | kernel/fork.c | if (!task[i]) |
i | 55 | kernel/fork.c | return i; |
i | 160 | kernel/fork.c | int i; |
i | 172 | kernel/fork.c | for (i = 0; i < NR_OPEN; i++) { |
i | 173 | kernel/fork.c | struct file * f = current->files->fd[i]; |
i | 176 | kernel/fork.c | tsk->files->fd[i] = f; |
i | 117 | kernel/itimer.c | register unsigned long i, j; |
i | 120 | kernel/itimer.c | i = tvtojiffies(&value->it_interval); |
i | 128 | kernel/itimer.c | current->it_real_incr = i; |
i | 131 | kernel/itimer.c | i = j + jiffies; |
i | 133 | kernel/itimer.c | if (i < j) |
i | 134 | kernel/itimer.c | i = ULONG_MAX; |
i | 135 | kernel/itimer.c | current->real_timer.expires = i; |
i | 142 | kernel/itimer.c | current->it_virt_incr = i; |
i | 148 | kernel/itimer.c | current->it_prof_incr = i; |
i | 73 | kernel/module.c | int i; |
i | 75 | kernel/module.c | for (i = 0, sym = symbol_table.symbol; sym->name; ++sym, ++i) |
i | 77 | kernel/module.c | symbol_table.n_symbols = i; |
i | 197 | kernel/module.c | int i; |
i | 227 | kernel/module.c | for (sym = &(newtab->symbol[0]), i = 0; i < newtab->n_symbols; ++sym, ++i) { |
i | 246 | kernel/module.c | for (ref = (struct module_ref *)sym, i = 0; |
i | 247 | kernel/module.c | i < newtab->n_refs; ++ref, ++i) { |
i | 343 | kernel/module.c | int i; |
i | 359 | kernel/module.c | if ((i = verify_area(VERIFY_WRITE, to, nmodsyms * sizeof(*table)))) |
i | 360 | kernel/module.c | return i; |
i | 372 | kernel/module.c | for (i = mp->symtab->n_symbols, |
i | 374 | kernel/module.c | i > 0; --i, ++from, ++to) { |
i | 395 | kernel/module.c | int i; |
i | 397 | kernel/module.c | i = 0; |
i | 398 | kernel/module.c | for (i = 0 ; (buf[i] = get_user(user_name + i)) != '\0' ; ) { |
i | 399 | kernel/module.c | if (++i >= MOD_MAX_NAME) |
i | 491 | kernel/module.c | int i; |
i | 504 | kernel/module.c | i = 20; |
i | 507 | kernel/module.c | i--; |
i | 510 | kernel/module.c | i -= strlen(size); |
i | 511 | kernel/module.c | if (i <= 0) |
i | 512 | kernel/module.c | i = 1; |
i | 513 | kernel/module.c | while (--i >= 0) |
i | 563 | kernel/module.c | int i; |
i | 573 | kernel/module.c | for (i = mp->symtab->n_symbols, |
i | 575 | kernel/module.c | i > 0; --i, ++sym) { |
i | 34 | kernel/panic.c | int i; |
i | 54 | kernel/panic.c | for(i = 0; i < (panic_timeout*1000); i++) |
i | 63 | kernel/printk.c | unsigned long i, j, count; |
i | 91 | kernel/printk.c | i = 0; |
i | 92 | kernel/printk.c | while (log_size && i < len) { |
i | 100 | kernel/printk.c | i++; |
i | 104 | kernel/printk.c | return i; |
i | 122 | kernel/printk.c | for (i = 0; i < count; i++) { |
i | 128 | kernel/printk.c | return i; |
i | 153 | kernel/printk.c | int i; |
i | 161 | kernel/printk.c | i = vsprintf(buf + 3, fmt, args); /* hopefully i < sizeof(buf)-4 */ |
i | 162 | kernel/printk.c | buf_end = buf + 3 + i; |
i | 204 | kernel/printk.c | return i; |
i | 215 | kernel/printk.c | int i,j; |
i | 223 | kernel/printk.c | for (i=0,j=0; i < log_size; i++) { |
i | 226 | kernel/printk.c | if (buf[j-1] != '\n' && i < log_size - 1 && j < sizeof(buf)-1) |
i | 75 | kernel/resource.c | int i; |
i | 77 | kernel/resource.c | for (i = 0; i < IOTABLE_SIZE; i++) |
i | 78 | kernel/resource.c | if (iotable[i].num == 0) |
i | 80 | kernel/resource.c | if (i == IOTABLE_SIZE) |
i | 86 | kernel/resource.c | iotable[i].name = name; |
i | 87 | kernel/resource.c | iotable[i].from = from; |
i | 88 | kernel/resource.c | iotable[i].num = num; |
i | 89 | kernel/resource.c | iotable[i].next = p->next; |
i | 90 | kernel/resource.c | p->next = &iotable[i]; |
i | 125 | kernel/resource.c | int i; |
i | 127 | kernel/resource.c | for (i = 1; i < ints[0]; i += 2) |
i | 128 | kernel/resource.c | request_region(ints[i], ints[i+1], "reserved"); |
i | 138 | kernel/sched.c | int i; |
i | 139 | kernel/sched.c | for (i=0;i<smp_num_cpus;i++) |
i | 141 | kernel/sched.c | if (0==current_set[cpu_logical_map[i]]->pid) |
i | 143 | kernel/sched.c | smp_message_pass(cpu_logical_map[i], MSG_RESCHEDULE, 0L, 0); |
i | 934 | kernel/sched.c | int i = cpu_logical_map[j]; |
i | 938 | kernel/sched.c | if (test_bit(i,&smp_idle_map)) |
i | 939 | kernel/sched.c | smp_idle_count[i]++; |
i | 941 | kernel/sched.c | p = current_set[i]; |
i | 949 | kernel/sched.c | if (cpu == i) { |
i | 952 | kernel/sched.c | } else if (smp_proc_in_lock[i]) { |
i | 971 | kernel/sched.c | if (i==cpu) |
i | 974 | kernel/sched.c | smp_message_pass(i, MSG_RESCHEDULE, 0L, 0); |
i | 1409 | kernel/sched.c | int i; |
i | 1420 | kernel/sched.c | for (i=0 ; i<NR_TASKS ; i++) |
i | 1421 | kernel/sched.c | if (task[i]) |
i | 1422 | kernel/sched.c | show_task(i,task[i]); |
i | 710 | kernel/sys.c | int i; |
i | 714 | kernel/sys.c | i = verify_area(VERIFY_WRITE, grouplist, sizeof(gid_t) * gidsetsize); |
i | 715 | kernel/sys.c | if (i) |
i | 716 | kernel/sys.c | return i; |
i | 719 | kernel/sys.c | for (i = 0 ; (i < NGROUPS) && (*groups != NOGROUP) ; i++, groups++) { |
i | 722 | kernel/sys.c | if (i >= gidsetsize) |
i | 727 | kernel/sys.c | return(i); |
i | 732 | kernel/sys.c | int i; |
i | 738 | kernel/sys.c | i = verify_area(VERIFY_READ, grouplist, sizeof(gid_t) * gidsetsize); |
i | 739 | kernel/sys.c | if (i) |
i | 740 | kernel/sys.c | return i; |
i | 741 | kernel/sys.c | for (i = 0; i < gidsetsize; i++, grouplist++) { |
i | 742 | kernel/sys.c | current->groups[i] = get_user(grouplist); |
i | 744 | kernel/sys.c | if (i < NGROUPS) |
i | 745 | kernel/sys.c | current->groups[i] = NOGROUP; |
i | 751 | kernel/sys.c | int i; |
i | 756 | kernel/sys.c | for (i = 0; i < NGROUPS; i++) { |
i | 757 | kernel/sys.c | if (current->groups[i] == NOGROUP) |
i | 759 | kernel/sys.c | if (current->groups[i] == grp) |
i | 845 | kernel/sys.c | int i; |
i | 849 | kernel/sys.c | i = verify_area(VERIFY_WRITE, name, len); |
i | 850 | kernel/sys.c | if (i) |
i | 851 | kernel/sys.c | return i; |
i | 852 | kernel/sys.c | i = 1+strlen(system_utsname.nodename); |
i | 853 | kernel/sys.c | if (i > len) |
i | 854 | kernel/sys.c | i = len; |
i | 855 | kernel/sys.c | memcpy_tofs(name, system_utsname.nodename, i); |
i | 217 | kernel/sysctl.c | int i; |
i | 222 | kernel/sysctl.c | for (i = 0; i < NGROUPS; i++) { |
i | 223 | kernel/sysctl.c | if (current->groups[i] == NOGROUP) |
i | 225 | kernel/sysctl.c | if (current->groups[i] == grp) |
i | 539 | kernel/sysctl.c | int *i, vleft, first=1, len, left, neg, val; |
i | 549 | kernel/sysctl.c | i = (int *) table->data; |
i | 553 | kernel/sysctl.c | for (; left && vleft--; i++, first=0) { |
i | 580 | kernel/sysctl.c | *i = val; |
i | 585 | kernel/sysctl.c | sprintf(p, "%d", *i); |
i | 614 | kernel/sysctl.c | int *i, *min, *max, vleft, first=1, len, left, neg, val; |
i | 624 | kernel/sysctl.c | i = (int *) table->data; |
i | 630 | kernel/sysctl.c | for (; left && vleft--; i++, first=0) { |
i | 662 | kernel/sysctl.c | *i = val; |
i | 667 | kernel/sysctl.c | sprintf(p, "%d", *i); |
i | 761 | kernel/sysctl.c | int i, length, *vec, *min, *max; |
i | 778 | kernel/sysctl.c | for (i = 0; i < length; i++) { |
i | 779 | kernel/sysctl.c | int value = get_user(vec + i); |
i | 780 | kernel/sysctl.c | if (min && value < min[i]) |
i | 782 | kernel/sysctl.c | if (max && value > max[i]) |
i | 47 | kernel/time.c | int i; |
i | 49 | kernel/time.c | i = CURRENT_TIME; |
i | 54 | kernel/time.c | put_user(i,tloc); |
i | 56 | kernel/time.c | return i; |
i | 287 | lib/inflate.c | register unsigned i; /* counter, current code */ |
i | 306 | lib/inflate.c | p = b; i = n; |
i | 308 | lib/inflate.c | Tracecv(*p, (stderr, (n-i >= ' ' && n-i <= '~' ? "%c %d\n" : "0x%x %d\n"), |
i | 309 | lib/inflate.c | n-i, *p)); |
i | 312 | lib/inflate.c | } while (--i); |
i | 330 | lib/inflate.c | for (i = BMAX; i; i--) |
i | 331 | lib/inflate.c | if (c[i]) |
i | 333 | lib/inflate.c | g = i; /* maximum code length */ |
i | 334 | lib/inflate.c | if ((unsigned)l > i) |
i | 335 | lib/inflate.c | l = i; |
i | 341 | lib/inflate.c | for (y = 1 << j; j < i; j++, y <<= 1) |
i | 344 | lib/inflate.c | if ((y -= c[i]) < 0) |
i | 346 | lib/inflate.c | c[i] += y; |
i | 353 | lib/inflate.c | while (--i) { /* note that i == g from above */ |
i | 360 | lib/inflate.c | p = b; i = 0; |
i | 363 | lib/inflate.c | v[x[j]++] = i; |
i | 364 | lib/inflate.c | } while (++i < n); |
i | 369 | lib/inflate.c | x[0] = i = 0; /* first Huffman code is zero */ |
i | 429 | lib/inflate.c | x[h] = i; /* save pattern for backing up */ |
i | 433 | lib/inflate.c | j = i >> (w - l); /* (get around Turbo C bug) */ |
i | 459 | lib/inflate.c | for (j = i >> w; j < z; j += f) |
i | 463 | lib/inflate.c | for (j = 1 << (k - 1); i & j; j >>= 1) |
i | 464 | lib/inflate.c | i ^= j; |
i | 465 | lib/inflate.c | i ^= j; |
i | 468 | lib/inflate.c | while ((i & ((1 << w) - 1)) != x[h]) |
i | 677 | lib/inflate.c | int i; /* temporary variable */ |
i | 687 | lib/inflate.c | for (i = 0; i < 144; i++) |
i | 688 | lib/inflate.c | l[i] = 8; |
i | 689 | lib/inflate.c | for (; i < 256; i++) |
i | 690 | lib/inflate.c | l[i] = 9; |
i | 691 | lib/inflate.c | for (; i < 280; i++) |
i | 692 | lib/inflate.c | l[i] = 7; |
i | 693 | lib/inflate.c | for (; i < 288; i++) /* make a complete, but wrong code set */ |
i | 694 | lib/inflate.c | l[i] = 8; |
i | 696 | lib/inflate.c | if ((i = huft_build(l, 288, 257, cplens, cplext, &tl, &bl)) != 0) |
i | 697 | lib/inflate.c | return i; |
i | 701 | lib/inflate.c | for (i = 0; i < 30; i++) /* make an incomplete code set */ |
i | 702 | lib/inflate.c | l[i] = 5; |
i | 704 | lib/inflate.c | if ((i = huft_build(l, 30, 0, cpdist, cpdext, &td, &bd)) > 1) |
i | 709 | lib/inflate.c | return i; |
i | 729 | lib/inflate.c | int i; /* temporary variables */ |
i | 789 | lib/inflate.c | if ((i = huft_build(ll, 19, 19, NULL, NULL, &tl, &bl)) != 0) |
i | 791 | lib/inflate.c | if (i == 1) |
i | 793 | lib/inflate.c | return i; /* incomplete code set */ |
i | 801 | lib/inflate.c | i = l = 0; |
i | 802 | lib/inflate.c | while ((unsigned)i < n) |
i | 809 | lib/inflate.c | ll[i++] = l = j; /* save last length in l */ |
i | 815 | lib/inflate.c | if ((unsigned)i + j > n) |
i | 818 | lib/inflate.c | ll[i++] = l; |
i | 825 | lib/inflate.c | if ((unsigned)i + j > n) |
i | 828 | lib/inflate.c | ll[i++] = 0; |
i | 836 | lib/inflate.c | if ((unsigned)i + j > n) |
i | 839 | lib/inflate.c | ll[i++] = 0; |
i | 859 | lib/inflate.c | if ((i = huft_build(ll, nl, 257, cplens, cplext, &tl, &bl)) != 0) |
i | 862 | lib/inflate.c | if (i == 1) { |
i | 866 | lib/inflate.c | return i; /* incomplete code set */ |
i | 870 | lib/inflate.c | if ((i = huft_build(ll + nl, nd, 0, cpdist, cpdext, &td, &bd)) != 0) |
i | 873 | lib/inflate.c | if (i == 1) { |
i | 876 | lib/inflate.c | i = 0; |
i | 882 | lib/inflate.c | return i; /* incomplete code set */ |
i | 1020 | lib/inflate.c | int i; /* counter for all possible eight bit values */ |
i | 1028 | lib/inflate.c | for (i = 0; i < sizeof(p)/sizeof(int); i++) |
i | 1029 | lib/inflate.c | e |= 1L << (31 - p[i]); |
i | 1033 | lib/inflate.c | for (i = 1; i < 256; i++) |
i | 1036 | lib/inflate.c | for (k = i | 256; k != 1; k >>= 1) |
i | 1042 | lib/inflate.c | crc_32_tab[i] = c; |
i | 47 | lib/vsprintf.c | int i=0; |
i | 50 | lib/vsprintf.c | i = i*10 + *((*s)++) - '0'; |
i | 51 | lib/vsprintf.c | return i; |
i | 73 | lib/vsprintf.c | int i; |
i | 102 | lib/vsprintf.c | i = 0; |
i | 104 | lib/vsprintf.c | tmp[i++]='0'; |
i | 106 | lib/vsprintf.c | tmp[i++] = digits[do_div(num,base)]; |
i | 107 | lib/vsprintf.c | if (i > precision) |
i | 108 | lib/vsprintf.c | precision = i; |
i | 125 | lib/vsprintf.c | while (i < precision--) |
i | 127 | lib/vsprintf.c | while (i-- > 0) |
i | 128 | lib/vsprintf.c | *str++ = tmp[i]; |
i | 138 | lib/vsprintf.c | int i, base; |
i | 226 | lib/vsprintf.c | for (i = 0; i < len; ++i) |
i | 299 | lib/vsprintf.c | int i; |
i | 302 | lib/vsprintf.c | i=vsprintf(buf,fmt,args); |
i | 304 | lib/vsprintf.c | return i; |
i | 180 | mm/kmalloc.c | int order, i, sz, dma; |
i | 245 | mm/kmalloc.c | for (i = NBLOCKS(order), p = BH(page + 1); i > 1; i--, p = p->bh_next) { |
i | 130 | mm/memory.c | int i; |
i | 138 | mm/memory.c | for (i = 0 ; i < USER_PTRS_PER_PGD ; i++) |
i | 139 | mm/memory.c | free_one_pgd(page_dir + i); |
i | 151 | mm/memory.c | int i; |
i | 162 | mm/memory.c | for (i = 0 ; i < USER_PTRS_PER_PGD ; i++) |
i | 163 | mm/memory.c | free_one_pgd(page_dir + i); |
i | 266 | mm/page_alloc.c | int i; |
i | 272 | mm/page_alloc.c | i = (end_mem - PAGE_OFFSET) >> (PAGE_SHIFT+7); |
i | 273 | mm/page_alloc.c | if (i < 16) |
i | 274 | mm/page_alloc.c | i = 16; |
i | 275 | mm/page_alloc.c | min_free_pages = i; |
i | 276 | mm/page_alloc.c | free_pages_low = i + (i>>1); |
i | 277 | mm/page_alloc.c | free_pages_high = i + i; |
i | 289 | mm/page_alloc.c | for (i = 0 ; i < NR_MEM_LISTS ; i++) { |
i | 291 | mm/page_alloc.c | init_mem_queue(&free_area[i].list); |
i | 294 | mm/page_alloc.c | bitmap_size = (end_mem - PAGE_OFFSET) >> (PAGE_SHIFT + i); |
i | 297 | mm/page_alloc.c | free_area[i].map = (unsigned int *) start_mem; |
i | 76 | mm/page_io.c | int i; |
i | 94 | mm/page_io.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j += 512){ |
i | 95 | mm/page_io.c | if (!(zones[i] = swapf->i_op->smap(swapf,block++))) { |
i | 105 | mm/page_io.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j +=swapf->i_sb->s_blocksize) |
i | 106 | mm/page_io.c | if (!(zones[i] = bmap(swapf,block++))) { |
i | 110 | mm/page_io.c | ll_rw_swap_file(rw,swapf->i_dev, zones, i,buf); |
i | 82 | mm/swap.c | int i; |
i | 83 | mm/swap.c | for (i=0; i < ints[0] && i < 8; i++) { |
i | 84 | mm/swap.c | if (ints[i+1]) |
i | 85 | mm/swap.c | *(swap_vars[i]) = ints[i+1]; |
i | 100 | mm/swap.c | int i; |
i | 101 | mm/swap.c | for (i=0; i < ints[0] && i < 6; i++) { |
i | 102 | mm/swap.c | if (ints[i+1]) |
i | 103 | mm/swap.c | *(buff_vars[i]) = ints[i+1]; |
i | 319 | mm/swapfile.c | int i, type, prev; |
i | 323 | mm/swapfile.c | i = namei(specialfile,&inode); |
i | 324 | mm/swapfile.c | if (i) |
i | 325 | mm/swapfile.c | return i; |
i | 355 | mm/swapfile.c | i = try_to_unuse(type); |
i | 356 | mm/swapfile.c | if (i) { |
i | 359 | mm/swapfile.c | return i; |
i | 397 | mm/swapfile.c | int i, j, prev; |
i | 453 | mm/swapfile.c | for (i = 0 ; i < nr_swapfiles ; i++) { |
i | 454 | mm/swapfile.c | if (i == type) |
i | 456 | mm/swapfile.c | if (p->swap_device == swap_info[i].swap_device) |
i | 477 | mm/swapfile.c | for (i = 1 ; i < 8*PAGE_SIZE ; i++) { |
i | 478 | mm/swapfile.c | if (test_bit(i,p->swap_lockmap)) { |
i | 480 | mm/swapfile.c | p->lowest_bit = i; |
i | 481 | mm/swapfile.c | p->highest_bit = i; |
i | 482 | mm/swapfile.c | p->max = i+1; |
i | 496 | mm/swapfile.c | for (i = 1 ; i < p->max ; i++) { |
i | 497 | mm/swapfile.c | if (test_bit(i,p->swap_lockmap)) |
i | 498 | mm/swapfile.c | p->swap_map[i] = 0; |
i | 500 | mm/swapfile.c | p->swap_map[i] = 0x80; |
i | 511 | mm/swapfile.c | for (i = swap_list.head; i >= 0; i = swap_info[i].next) { |
i | 512 | mm/swapfile.c | if (p->prio >= swap_info[i].prio) { |
i | 515 | mm/swapfile.c | prev = i; |
i | 517 | mm/swapfile.c | p->next = i; |
i | 541 | mm/swapfile.c | unsigned int i, j; |
i | 544 | mm/swapfile.c | for (i = 0; i < nr_swapfiles; i++) { |
i | 545 | mm/swapfile.c | if ((swap_info[i].flags & SWP_WRITEOK) != SWP_WRITEOK) |
i | 547 | mm/swapfile.c | for (j = 0; j < swap_info[i].max; ++j) |
i | 548 | mm/swapfile.c | switch (swap_info[i].swap_map[j]) { |
i | 332 | mm/vmscan.c | int i=6; |
i | 337 | mm/vmscan.c | if (shrink_mmap(i, dma)) |
i | 341 | mm/vmscan.c | if (shm_swap(i, dma)) |
i | 345 | mm/vmscan.c | if (swap_out(i, dma, wait)) |
i | 348 | mm/vmscan.c | } while (i--); |
i | 360 | mm/vmscan.c | int i; |
i | 389 | mm/vmscan.c | s++, i = e - s; |
i | 391 | mm/vmscan.c | s = revision, i = -1; |
i | 392 | mm/vmscan.c | printk ("Started kswapd v%.*s\n", i, s); |
i | 401 | mm/vmscan.c | for (i=0; i < kswapd_ctl.maxpages; i++) |
i | 124 | net/802/tr.c | int i; |
i | 135 | net/802/tr.c | for(i=0,hash=0;i<TR_ALEN;hash+=trh->daddr[i++]); |
i | 165 | net/802/tr.c | int i; |
i | 171 | net/802/tr.c | for(i=0,hash=0;i<TR_ALEN;hash+=trh->saddr[i++]); |
i | 218 | net/802/tr.c | int i; |
i | 224 | net/802/tr.c | for(i=0; i < RIF_TABLE_SIZE;i++) { |
i | 226 | net/802/tr.c | rif_cache entry, *pentry=rif_table+i; |
i | 249 | net/802/tr.c | int size,i; |
i | 258 | net/802/tr.c | for(i=0;i < RIF_TABLE_SIZE;i++) { |
i | 259 | net/802/tr.c | for(entry=rif_table[i];entry;entry=entry->next) { |
i | 826 | net/appletalk/aarp.c | int i; |
i | 835 | net/appletalk/aarp.c | for (i = 0; i < AARP_HASH_SIZE; i++) |
i | 837 | net/appletalk/aarp.c | free_entry_list(resolved[i]); |
i | 838 | net/appletalk/aarp.c | free_entry_list(unresolved[i]); |
i | 1554 | net/ax25/af_ax25.c | unsigned char ndigi, i; |
i | 1576 | net/ax25/af_ax25.c | for (i = 0; i < ndigi; i++) |
i | 1577 | net/ax25/af_ax25.c | sax->fsa_digipeater[i] = sk->ax25->digipeat->calls[i]; |
i | 237 | net/ax25/ax25_route.c | int i, err; |
i | 259 | net/ax25/ax25_route.c | for (i = 0; i < route.digi_count; i++) { |
i | 260 | net/ax25/ax25_route.c | ax25_rt->digipeat->repeated[i] = 0; |
i | 261 | net/ax25/ax25_route.c | ax25_rt->digipeat->calls[i] = route.digi_addr[i]; |
i | 284 | net/ax25/ax25_route.c | for (i = 0; i < route.digi_count; i++) { |
i | 285 | net/ax25/ax25_route.c | ax25_rt->digipeat->repeated[i] = 0; |
i | 286 | net/ax25/ax25_route.c | ax25_rt->digipeat->calls[i] = route.digi_addr[i]; |
i | 372 | net/ax25/ax25_route.c | int i; |
i | 418 | net/ax25/ax25_route.c | for (i = 0; i < ax25_rt->digipeat->ndigi; i++) |
i | 419 | net/ax25/ax25_route.c | len += sprintf(buffer + len, " %s", ax2asc(&ax25_rt->digipeat->calls[i])); |
i | 689 | net/core/dev.c | int i; |
i | 707 | net/core/dev.c | for(i = 0;i < DEV_NUMBUFFS; i++,head++) |
i | 724 | net/core/dev.c | dev_queue_xmit(skb,dev,-i - 1); |
i | 1368 | net/core/dev.c | int i; |
i | 1369 | net/core/dev.c | for (i = 0; i < DEV_NUMBUFFS; i++) { |
i | 1370 | net/core/dev.c | skb_queue_head_init(dev->buffs + i); |
i | 145 | net/core/firewall.c | int i; |
i | 146 | net/core/firewall.c | for(i=0;i<NPROTO;i++) |
i | 147 | net/core/firewall.c | firewall_policy[i]=FW_ACCEPT; |
i | 249 | net/core/net_alias.c | int i; |
i | 293 | net/core/net_alias.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 294 | net/core/net_alias.c | skb_queue_head_init(&dev->buffs[i]); |
i | 113 | net/core/skbuff.c | int i = 0; |
i | 114 | net/core/skbuff.c | while (skb2 != skb && i < 5) { |
i | 119 | net/core/skbuff.c | i++; |
i | 145 | net/ipv4/af_inet.c | int i, j; |
i | 161 | net/ipv4/af_inet.c | for(i=0; i < SOCK_ARRAY_SIZE; i++) |
i | 164 | net/ipv4/af_inet.c | sk = prot->sock_array[(i+base+1) &(SOCK_ARRAY_SIZE -1)]; |
i | 172 | net/ipv4/af_inet.c | start =(i+1+start )%1024; |
i | 173 | net/ipv4/af_inet.c | return(i+base+1); |
i | 177 | net/ipv4/af_inet.c | best = i; |
i | 1466 | net/ipv4/af_inet.c | int i; |
i | 1483 | net/ipv4/af_inet.c | for(i = 0; i < SOCK_ARRAY_SIZE; i++) |
i | 1485 | net/ipv4/af_inet.c | tcp_prot.sock_array[i] = NULL; |
i | 1486 | net/ipv4/af_inet.c | udp_prot.sock_array[i] = NULL; |
i | 1487 | net/ipv4/af_inet.c | raw_prot.sock_array[i] = NULL; |
i | 397 | net/ipv4/arp.c | int i; |
i | 406 | net/ipv4/arp.c | for (i = 0; i < ARP_TABLE_SIZE; i++) |
i | 408 | net/ipv4/arp.c | pentry = &arp_tables[i]; |
i | 501 | net/ipv4/arp.c | int rv, i; |
i | 546 | net/ipv4/arp.c | i = HASH(entry->ip); |
i | 548 | net/ipv4/arp.c | entry->next = arp_tables[i]->next; |
i | 549 | net/ipv4/arp.c | arp_tables[i]->next = entry; |
i | 592 | net/ipv4/arp.c | int i; |
i | 601 | net/ipv4/arp.c | for (i = 0; i < ARP_TABLE_SIZE; i++) |
i | 606 | net/ipv4/arp.c | pentry = &arp_tables[i]; |
i | 773 | net/ipv4/arp.c | int i; |
i | 787 | net/ipv4/arp.c | for (i = 0; i < FULL_ARP_TABLE_SIZE; i++) |
i | 790 | net/ipv4/arp.c | struct arp_table **pentry = &arp_tables[i]; |
i | 1539 | net/ipv4/arp.c | int i,j,k; |
i | 1549 | net/ipv4/arp.c | for(i=0; i<FULL_ARP_TABLE_SIZE; i++) |
i | 1551 | net/ipv4/arp.c | for(entry=arp_tables[i]; entry!=NULL; entry=entry->next) |
i | 92 | net/ipv4/igmp.c | struct ip_router_info *i=(struct ip_router_info *)data; |
i | 94 | net/ipv4/igmp.c | del_timer(&i->timer); |
i | 95 | net/ipv4/igmp.c | i->type=IGMP_NEW_ROUTER; /* Revert to new multicast router */ |
i | 96 | net/ipv4/igmp.c | i->time=0; |
i | 111 | net/ipv4/igmp.c | register struct ip_router_info *i; |
i | 113 | net/ipv4/igmp.c | for(i=ip_router_info_head;i!=NULL;i=i->next) |
i | 115 | net/ipv4/igmp.c | if (i->dev == dev) |
i | 117 | net/ipv4/igmp.c | return i; |
i | 125 | net/ipv4/igmp.c | i=(struct ip_router_info *)kmalloc(sizeof(*i), GFP_ATOMIC); |
i | 126 | net/ipv4/igmp.c | if(i==NULL) |
i | 128 | net/ipv4/igmp.c | i->dev = dev; |
i | 129 | net/ipv4/igmp.c | i->type = IGMP_NEW_ROUTER; |
i | 130 | net/ipv4/igmp.c | i->time = IGMP_AGE_THRESHOLD; |
i | 131 | net/ipv4/igmp.c | i->next = ip_router_info_head; |
i | 132 | net/ipv4/igmp.c | ip_router_info_head = i; |
i | 134 | net/ipv4/igmp.c | init_timer(&i->timer); |
i | 135 | net/ipv4/igmp.c | i->timer.data=(unsigned long)i; |
i | 136 | net/ipv4/igmp.c | i->timer.function=&ip_router_timer_expire; |
i | 138 | net/ipv4/igmp.c | return i; |
i | 147 | net/ipv4/igmp.c | register struct ip_router_info *i; |
i | 149 | net/ipv4/igmp.c | for(i=ip_router_info_head;i!=NULL;i=i->next) |
i | 151 | net/ipv4/igmp.c | if (i->dev == dev) |
i | 153 | net/ipv4/igmp.c | if(i->type==IGMP_OLD_ROUTER) |
i | 155 | net/ipv4/igmp.c | del_timer(&i->timer); |
i | 158 | net/ipv4/igmp.c | i->type = type; |
i | 159 | net/ipv4/igmp.c | i->time = time; |
i | 161 | net/ipv4/igmp.c | if(i->type==IGMP_OLD_ROUTER) |
i | 163 | net/ipv4/igmp.c | i->timer.expires=jiffies+i->time*HZ; |
i | 164 | net/ipv4/igmp.c | add_timer(&i->timer); |
i | 166 | net/ipv4/igmp.c | return i; |
i | 173 | net/ipv4/igmp.c | i=(struct ip_router_info *)kmalloc(sizeof(*i), GFP_ATOMIC); |
i | 174 | net/ipv4/igmp.c | if(i==NULL) |
i | 176 | net/ipv4/igmp.c | i->dev = dev; |
i | 177 | net/ipv4/igmp.c | i->type = type; |
i | 178 | net/ipv4/igmp.c | i->time = time; |
i | 179 | net/ipv4/igmp.c | i->next = ip_router_info_head; |
i | 180 | net/ipv4/igmp.c | ip_router_info_head = i; |
i | 182 | net/ipv4/igmp.c | init_timer(&i->timer); |
i | 183 | net/ipv4/igmp.c | i->timer.data=(unsigned long)i; |
i | 184 | net/ipv4/igmp.c | i->timer.function=&ip_router_timer_expire; |
i | 185 | net/ipv4/igmp.c | if(i->type==IGMP_OLD_ROUTER) |
i | 187 | net/ipv4/igmp.c | i->timer.expires=jiffies+i->time*HZ; |
i | 188 | net/ipv4/igmp.c | add_timer(&i->timer); |
i | 191 | net/ipv4/igmp.c | return i; |
i | 489 | net/ipv4/igmp.c | struct ip_mc_list *i; |
i | 490 | net/ipv4/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=i->next) |
i | 492 | net/ipv4/igmp.c | if(i->multiaddr==addr) |
i | 494 | net/ipv4/igmp.c | i->users++; |
i | 498 | net/ipv4/igmp.c | i=(struct ip_mc_list *)kmalloc(sizeof(*i), GFP_KERNEL); |
i | 499 | net/ipv4/igmp.c | if(!i) |
i | 501 | net/ipv4/igmp.c | i->users=1; |
i | 502 | net/ipv4/igmp.c | i->interface=dev; |
i | 503 | net/ipv4/igmp.c | i->multiaddr=addr; |
i | 504 | net/ipv4/igmp.c | i->next=dev->ip_mc_list; |
i | 505 | net/ipv4/igmp.c | igmp_group_added(i); |
i | 506 | net/ipv4/igmp.c | dev->ip_mc_list=i; |
i | 515 | net/ipv4/igmp.c | struct ip_mc_list **i; |
i | 516 | net/ipv4/igmp.c | for(i=&(dev->ip_mc_list);(*i)!=NULL;i=&(*i)->next) |
i | 518 | net/ipv4/igmp.c | if((*i)->multiaddr==addr) |
i | 520 | net/ipv4/igmp.c | if(--((*i)->users) == 0) |
i | 522 | net/ipv4/igmp.c | struct ip_mc_list *tmp= *i; |
i | 524 | net/ipv4/igmp.c | *i=(*i)->next; |
i | 538 | net/ipv4/igmp.c | struct ip_mc_list *i; |
i | 540 | net/ipv4/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=j) |
i | 542 | net/ipv4/igmp.c | j=i->next; |
i | 543 | net/ipv4/igmp.c | kfree_s(i,sizeof(*i)); |
i | 554 | net/ipv4/igmp.c | struct ip_mc_list *i; |
i | 555 | net/ipv4/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=i->next) |
i | 556 | net/ipv4/igmp.c | if(i->multiaddr==IGMP_ALL_HOSTS) |
i | 558 | net/ipv4/igmp.c | i=(struct ip_mc_list *)kmalloc(sizeof(*i), GFP_KERNEL); |
i | 559 | net/ipv4/igmp.c | if(!i) |
i | 561 | net/ipv4/igmp.c | i->users=1; |
i | 562 | net/ipv4/igmp.c | i->interface=dev; |
i | 563 | net/ipv4/igmp.c | i->multiaddr=IGMP_ALL_HOSTS; |
i | 564 | net/ipv4/igmp.c | i->tm_running=0; |
i | 565 | net/ipv4/igmp.c | i->next=dev->ip_mc_list; |
i | 566 | net/ipv4/igmp.c | dev->ip_mc_list=i; |
i | 567 | net/ipv4/igmp.c | ip_mc_filter_add(i->interface, i->multiaddr); |
i | 578 | net/ipv4/igmp.c | int i; |
i | 589 | net/ipv4/igmp.c | for(i=0;i<IP_MAX_MEMBERSHIPS;i++) |
i | 591 | net/ipv4/igmp.c | if(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev) |
i | 593 | net/ipv4/igmp.c | if(sk->ip_mc_list->multidev[i]==NULL) |
i | 594 | net/ipv4/igmp.c | unused=i; |
i | 611 | net/ipv4/igmp.c | int i; |
i | 619 | net/ipv4/igmp.c | for(i=0;i<IP_MAX_MEMBERSHIPS;i++) |
i | 621 | net/ipv4/igmp.c | if(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev) |
i | 623 | net/ipv4/igmp.c | sk->ip_mc_list->multidev[i]=NULL; |
i | 637 | net/ipv4/igmp.c | int i; |
i | 642 | net/ipv4/igmp.c | for(i=0;i<IP_MAX_MEMBERSHIPS;i++) |
i | 644 | net/ipv4/igmp.c | if(sk->ip_mc_list->multidev[i]) |
i | 646 | net/ipv4/igmp.c | ip_mc_dec_group(sk->ip_mc_list->multidev[i], sk->ip_mc_list->multiaddr[i]); |
i | 647 | net/ipv4/igmp.c | sk->ip_mc_list->multidev[i]=NULL; |
i | 405 | net/ipv4/ip_fragment.c | int i, ihl, end; |
i | 511 | net/ipv4/ip_fragment.c | i = prev->end - offset; |
i | 512 | net/ipv4/ip_fragment.c | offset += i; /* ptr into datagram */ |
i | 513 | net/ipv4/ip_fragment.c | ptr += i; /* ptr into fragment data */ |
i | 527 | net/ipv4/ip_fragment.c | i = end - next->offset; /* overlap is 'i' bytes */ |
i | 528 | net/ipv4/ip_fragment.c | tmp->len -= i; /* so reduce size of */ |
i | 529 | net/ipv4/ip_fragment.c | tmp->offset += i; /* next fragment */ |
i | 530 | net/ipv4/ip_fragment.c | tmp->ptr += i; |
i | 946 | net/ipv4/ip_fw.c | struct ip_fw *i; |
i | 955 | net/ipv4/ip_fw.c | i = ip_fw_in_chain; |
i | 960 | net/ipv4/ip_fw.c | i = ip_fw_out_chain; |
i | 965 | net/ipv4/ip_fw.c | i = ip_fw_fwd_chain; |
i | 972 | net/ipv4/ip_fw.c | i = ip_acct_chain; |
i | 978 | net/ipv4/ip_fw.c | i = NULL; |
i | 986 | net/ipv4/ip_fw.c | while(i!=NULL) |
i | 989 | net/ipv4/ip_fw.c | ntohl(i->fw_src.s_addr),ntohl(i->fw_smsk.s_addr), |
i | 990 | net/ipv4/ip_fw.c | ntohl(i->fw_dst.s_addr),ntohl(i->fw_dmsk.s_addr), |
i | 991 | net/ipv4/ip_fw.c | (i->fw_vianame)[0] ? i->fw_vianame : "-", |
i | 992 | net/ipv4/ip_fw.c | ntohl(i->fw_via.s_addr),i->fw_flg); |
i | 994 | net/ipv4/ip_fw.c | i->fw_nsp,i->fw_ndp, i->fw_pcnt,i->fw_bcnt); |
i | 996 | net/ipv4/ip_fw.c | len+=sprintf(buffer+len, " %u", i->fw_pts[p]); |
i | 997 | net/ipv4/ip_fw.c | len+=sprintf(buffer+len, " A%02X X%02X", i->fw_tosand, i->fw_tosxor); |
i | 1009 | net/ipv4/ip_fw.c | i->fw_pcnt=0L; |
i | 1010 | net/ipv4/ip_fw.c | i->fw_bcnt=0L; |
i | 1014 | net/ipv4/ip_fw.c | i=i->fw_next; |
i | 641 | net/ipv4/ipmr.c | int i; |
i | 648 | net/ipv4/ipmr.c | for(i=0;i<MAXVIFS;i++) |
i | 650 | net/ipv4/ipmr.c | if(vifc_map&(1<<i)) |
i | 664 | net/ipv4/ipmr.c | for(i=0;i<MFC_LINES;i++) |
i | 666 | net/ipv4/ipmr.c | while(mfc_cache_array[i]!=NULL) |
i | 667 | net/ipv4/ipmr.c | ipmr_cache_delete(mfc_cache_array[i]); |
i | 62 | net/ipv4/proc.c | int i; |
i | 82 | net/ipv4/proc.c | for(i = 0; i < SOCK_ARRAY_SIZE; i++) |
i | 85 | net/ipv4/proc.c | sp = s_array[i]; |
i | 114 | net/ipv4/proc.c | i, src, srcp, dest, destp, sp->state, |
i | 600 | net/ipv4/route.c | int i; |
i | 610 | net/ipv4/route.c | for (i=logmask-1; i>=0; i--) |
i | 611 | net/ipv4/route.c | if (fib_zones[i]) |
i | 614 | net/ipv4/route.c | if (i<0) |
i | 621 | net/ipv4/route.c | fz->fz_next = fib_zones[i]->fz_next; |
i | 622 | net/ipv4/route.c | fib_zones[i]->fz_next = fz; |
i | 774 | net/ipv4/route.c | int i; |
i | 776 | net/ipv4/route.c | for (i=0; i<RTZ_HASH_DIVISOR; i++) |
i | 777 | net/ipv4/route.c | tmp += rt_flush_list(&fz->fz_hash_table[i], dev); |
i | 813 | net/ipv4/route.c | int i; |
i | 853 | net/ipv4/route.c | for (i=0; i < maxslot; i++, fp++) |
i | 901 | net/ipv4/route.c | int i; |
i | 916 | net/ipv4/route.c | for (i = 0; i<RT_HASH_DIVISOR; i++) |
i | 918 | net/ipv4/route.c | for (r = ip_rt_hash_table[i]; r; r = r->rt_next) |
i | 1051 | net/ipv4/route.c | int i; |
i | 1057 | net/ipv4/route.c | for (i=0; i<RT_HASH_DIVISOR; i++) |
i | 1059 | net/ipv4/route.c | rthp = &ip_rt_hash_table[i]; |
i | 1076 | net/ipv4/route.c | printk("rt_check_expire clean %02x@%08x\n", i, rth->rt_dst); |
i | 1095 | net/ipv4/route.c | printk("rt_check_expire bubbled %02x@%08x<->%08x\n", i, rth->rt_dst, rth_next->rt_dst); |
i | 1146 | net/ipv4/route.c | int i; |
i | 1149 | net/ipv4/route.c | for (i=0; i<RT_HASH_DIVISOR; i++) |
i | 1154 | net/ipv4/route.c | if (!(rth = ip_rt_hash_table[i])) |
i | 1160 | net/ipv4/route.c | ip_rt_hash_table[i] = NULL; |
i | 1173 | net/ipv4/route.c | printk("rt_cache_flush: %d@%02x\n", nr, i); |
i | 1187 | net/ipv4/route.c | int i; |
i | 1194 | net/ipv4/route.c | for (i=0; i<RT_HASH_DIVISOR; i++) |
i | 1196 | net/ipv4/route.c | if (!ip_rt_hash_table[i]) |
i | 1198 | net/ipv4/route.c | for (rthp=&ip_rt_hash_table[i]; (rth=*rthp); rthp=&rth->rt_next) |
i | 69 | net/ipv4/utils.c | int i; |
i | 72 | net/ipv4/utils.c | for (i = 0; i < 4; i++) |
i | 218 | net/ipx/af_ipx.c | ipx_interface *i; |
i | 220 | net/ipx/af_ipx.c | for (i=ipx_interfaces; |
i | 221 | net/ipx/af_ipx.c | i && ((i->if_dev!=dev) || (i->if_dlink_type!=datalink)); |
i | 222 | net/ipx/af_ipx.c | i=i->if_next) |
i | 224 | net/ipx/af_ipx.c | return i; |
i | 230 | net/ipx/af_ipx.c | ipx_interface *i; |
i | 235 | net/ipx/af_ipx.c | for (i=ipx_interfaces; i && (i->if_netnum!=net); i=i->if_next) |
i | 238 | net/ipx/af_ipx.c | return i; |
i | 297 | net/ipx/af_ipx.c | ipx_interface *i; |
i | 320 | net/ipx/af_ipx.c | for (i = ipx_interfaces; |
i | 321 | net/ipx/af_ipx.c | (i != NULL) && (i->if_next != intrfc); |
i | 322 | net/ipx/af_ipx.c | i = i->if_next) |
i | 324 | net/ipx/af_ipx.c | if ((i != NULL) && (i->if_next == intrfc)) |
i | 325 | net/ipx/af_ipx.c | i->if_next = intrfc->if_next; |
i | 345 | net/ipx/af_ipx.c | ipx_interface *i, *tmp; |
i | 350 | net/ipx/af_ipx.c | for (i = ipx_interfaces; i != NULL; ) { |
i | 352 | net/ipx/af_ipx.c | tmp = i->if_next; |
i | 353 | net/ipx/af_ipx.c | if (i->if_dev == dev) |
i | 354 | net/ipx/af_ipx.c | ipxitf_down(i); |
i | 355 | net/ipx/af_ipx.c | i = tmp; |
i | 711 | net/ipx/af_ipx.c | ipx_interface *i; |
i | 735 | net/ipx/af_ipx.c | if ((i=ipxitf_find_using_net(ipx->ipx_source.net))==NULL) |
i | 744 | net/ipx/af_ipx.c | ipx_device_name(i), |
i | 745 | net/ipx/af_ipx.c | ipx_frame_name(i->if_dlink_type), |
i | 792 | net/ipx/af_ipx.c | ipx_interface *i; |
i | 798 | net/ipx/af_ipx.c | for (i = ipx_interfaces; i->if_next != NULL; i = i->if_next) |
i | 800 | net/ipx/af_ipx.c | i->if_next = intrfc; |
i | 1264 | net/ipx/af_ipx.c | ipx_interface *i; |
i | 1272 | net/ipx/af_ipx.c | i = r->ir_intrfc; |
i | 1273 | net/ipx/af_ipx.c | (void)ipxitf_send(i, skb, (r->ir_routed) ? |
i | 1345 | net/ipx/af_ipx.c | ipx_interface *i; |
i | 1354 | net/ipx/af_ipx.c | for (i = ipx_interfaces; i != NULL; i = i->if_next) { |
i | 1355 | net/ipx/af_ipx.c | len += sprintf(buffer+len, "%08lX ", ntohl(i->if_netnum)); |
i | 1357 | net/ipx/af_ipx.c | i->if_node[0], i->if_node[1], i->if_node[2], |
i | 1358 | net/ipx/af_ipx.c | i->if_node[3], i->if_node[4], i->if_node[5]); |
i | 1359 | net/ipx/af_ipx.c | len += sprintf(buffer+len, "%-9s", (i == ipx_primary_net) ? |
i | 1361 | net/ipx/af_ipx.c | len += sprintf (buffer+len, "%-11s", ipx_device_name(i)); |
i | 1363 | net/ipx/af_ipx.c | ipx_frame_name(i->if_dlink_type)); |
i | 1389 | net/ipx/af_ipx.c | ipx_interface *i; |
i | 1403 | net/ipx/af_ipx.c | for (i = ipx_interfaces; i != NULL; i = i->if_next) { |
i | 1404 | net/ipx/af_ipx.c | for (s = i->if_sklist; s != NULL; s = s->next) { |
i | 1418 | net/ipx/af_ipx.c | htonl(i->if_netnum), |
i | 1908 | net/ipx/af_ipx.c | int l,i; |
i | 1912 | net/ipx/af_ipx.c | for (i=0; i < 8 ; i++, --len) { |
i | 1914 | net/ipx/af_ipx.c | *(p++) = h2c[(d[i] >> 4) & 0x0f]; |
i | 1915 | net/ipx/af_ipx.c | *(p++) = h2c[d[i] & 0x0f]; |
i | 1926 | net/ipx/af_ipx.c | for (i=0; i < 8 ; i++, --len) |
i | 1928 | net/ipx/af_ipx.c | *(p++) = ' '<= d[i] && d[i]<'\177' ? d[i] : '.'; |
i | 1932 | net/ipx/af_ipx.c | d += i; |
i | 207 | net/netrom/nr_dev.c | int i; |
i | 240 | net/netrom/nr_dev.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 241 | net/netrom/nr_dev.c | skb_queue_head_init(&dev->buffs[i]); |
i | 74 | net/netrom/nr_route.c | int i, found; |
i | 143 | net/netrom/nr_route.c | for (found = 0, i = 0; i < nr_node->count; i++) { |
i | 144 | net/netrom/nr_route.c | if (nr_node->routes[i].neighbour == nr_neigh->number) { |
i | 145 | net/netrom/nr_route.c | nr_node->routes[i].quality = quality; |
i | 146 | net/netrom/nr_route.c | nr_node->routes[i].obs_count = obs_count; |
i | 214 | net/netrom/nr_route.c | for (i = 0; i < nr_node->count; i++) { |
i | 215 | net/netrom/nr_route.c | if (nr_node->routes[i].neighbour == nr_neigh->number) { |
i | 216 | net/netrom/nr_route.c | if (i < nr_node->which) |
i | 217 | net/netrom/nr_route.c | nr_node->which = i; |
i | 295 | net/netrom/nr_route.c | int i; |
i | 309 | net/netrom/nr_route.c | for (i = 0; i < nr_node->count; i++) { |
i | 310 | net/netrom/nr_route.c | if (nr_node->routes[i].neighbour == nr_neigh->number) { |
i | 321 | net/netrom/nr_route.c | switch (i) { |
i | 408 | net/netrom/nr_route.c | int i; |
i | 416 | net/netrom/nr_route.c | for (i = 0; i < s->count; i++) { |
i | 417 | net/netrom/nr_route.c | switch (s->routes[i].obs_count) { |
i | 429 | net/netrom/nr_route.c | if (t->number == s->routes[i].neighbour) { |
i | 441 | net/netrom/nr_route.c | switch (i) { |
i | 452 | net/netrom/nr_route.c | s->routes[i].obs_count--; |
i | 472 | net/netrom/nr_route.c | int i; |
i | 485 | net/netrom/nr_route.c | for (i = 0; i < t->count; i++) { |
i | 486 | net/netrom/nr_route.c | if (t->routes[i].neighbour == s->number) { |
i | 489 | net/netrom/nr_route.c | switch (i) { |
i | 717 | net/netrom/nr_route.c | int i; |
i | 730 | net/netrom/nr_route.c | for (i = 0; i < nr_node->count; i++) { |
i | 732 | net/netrom/nr_route.c | nr_node->routes[i].quality, |
i | 733 | net/netrom/nr_route.c | nr_node->routes[i].obs_count, |
i | 734 | net/netrom/nr_route.c | nr_node->routes[i].neighbour); |
i | 522 | net/socket.c | register int i; |
i | 523 | net/socket.c | for (i = 0; i < NPROTO; i++) |
i | 525 | net/socket.c | if (pops[i] == NULL) |
i | 527 | net/socket.c | if (pops[i]->family == family) |
i | 528 | net/socket.c | return i; |
i | 535 | net/socket.c | int i, fd; |
i | 540 | net/socket.c | i = find_protocol_family(family); |
i | 544 | net/socket.c | if (i < 0) |
i | 549 | net/socket.c | i = find_protocol_family(family); |
i | 553 | net/socket.c | if (i < 0) |
i | 558 | net/socket.c | ops = pops[i]; |
i | 586 | net/socket.c | if ((i = sock->ops->create(sock, protocol)) < 0) |
i | 589 | net/socket.c | return(i); |
i | 609 | net/socket.c | int fd1, fd2, i; |
i | 638 | net/socket.c | if ((i = sock1->ops->socketpair(sock1, sock2)) < 0) |
i | 642 | net/socket.c | return(i); |
i | 675 | net/socket.c | int i; |
i | 688 | net/socket.c | if ((i = sock->ops->bind(sock, (struct sockaddr *)address, addrlen)) < 0) |
i | 690 | net/socket.c | return(i); |
i | 737 | net/socket.c | int i; |
i | 762 | net/socket.c | if ((i = sock->ops->dup(newsock, sock)) < 0) |
i | 765 | net/socket.c | return(i); |
i | 768 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
i | 769 | net/socket.c | if ( i < 0) |
i | 772 | net/socket.c | return(i); |
i | 800 | net/socket.c | int i; |
i | 834 | net/socket.c | i = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags); |
i | 835 | net/socket.c | if (i < 0) |
i | 837 | net/socket.c | return(i); |
i | 1321 | net/socket.c | int i; |
i | 1324 | net/socket.c | for(i = 0; i < NPROTO; i++) |
i | 1326 | net/socket.c | if (pops[i] != NULL) |
i | 1328 | net/socket.c | pops[i] = ops; |
i | 1329 | net/socket.c | pops[i]->family = family; |
i | 1331 | net/socket.c | return(i); |
i | 1345 | net/socket.c | int i; |
i | 1348 | net/socket.c | for(i = 0; i < NPROTO; i++) |
i | 1350 | net/socket.c | if (pops[i] == NULL) |
i | 1352 | net/socket.c | if (pops[i]->family == family) |
i | 1354 | net/socket.c | pops[i]=NULL; |
i | 1356 | net/socket.c | return(i); |
i | 1381 | net/socket.c | int i; |
i | 1389 | net/socket.c | for (i = 0; i < NPROTO; ++i) pops[i] = NULL; |
i | 122 | net/unix/af_unix.c | static unix_socket *unix_find_socket(struct inode *i) |
i | 129 | net/unix/af_unix.c | if(s->protinfo.af_unix.inode==i) |
i | 723 | net/unix/af_unix.c | int i; |
i | 735 | net/unix/af_unix.c | for(i=0; i< num; i++) |
i | 739 | net/unix/af_unix.c | fd = fdp[i]; |
i | 750 | net/unix/af_unix.c | for(i=0; i< num; i++) |
i | 752 | net/unix/af_unix.c | fp[i]=current->files->fd[fdp[i]]; |
i | 753 | net/unix/af_unix.c | fp[i]->f_count++; |
i | 754 | net/unix/af_unix.c | unix_inflight(fp[i]); |
i | 766 | net/unix/af_unix.c | int i; |
i | 767 | net/unix/af_unix.c | for(i=0;i<num;i++) |
i | 769 | net/unix/af_unix.c | close_fp(fp[i]); |
i | 770 | net/unix/af_unix.c | unix_notinflight(fp[i]); |
i | 783 | net/unix/af_unix.c | int i; |
i | 785 | net/unix/af_unix.c | for (i=0;i<NR_OPEN;i++) |
i | 787 | net/unix/af_unix.c | if(current->files->fd[i]) |
i | 791 | net/unix/af_unix.c | i=NR_OPEN; |
i | 792 | net/unix/af_unix.c | if(i>current->rlim[RLIMIT_NOFILE].rlim_cur) |
i | 793 | net/unix/af_unix.c | i=current->rlim[RLIMIT_NOFILE].rlim_cur; |
i | 794 | net/unix/af_unix.c | if(n>=i) |
i | 796 | net/unix/af_unix.c | return i-n; |
i | 806 | net/unix/af_unix.c | int i; |
i | 838 | net/unix/af_unix.c | for(i=0;i<cmnum;i++) |
i | 845 | net/unix/af_unix.c | ufp[ufn]=fp[i]; |
i | 848 | net/unix/af_unix.c | unix_notinflight(fp[i]); |
i | 853 | net/unix/af_unix.c | for(;i<fdnum;i++) |
i | 855 | net/unix/af_unix.c | close_fp(fp[i]); |
i | 856 | net/unix/af_unix.c | unix_notinflight(fp[i]); |
i | 35 | scripts/lxdialog/checklist.c | int i; |
i | 40 | scripts/lxdialog/checklist.c | for (i = 0; i < list_width; i++) |
i | 120 | scripts/lxdialog/checklist.c | int i, x, y, box_x, box_y; |
i | 135 | scripts/lxdialog/checklist.c | for (i = 0; i < item_no; i++) { |
i | 136 | scripts/lxdialog/checklist.c | status[i] = !strcasecmp (items[i * 3 + 2], "on"); |
i | 137 | scripts/lxdialog/checklist.c | if (!choice && status[i]) |
i | 138 | scripts/lxdialog/checklist.c | choice = i; |
i | 155 | scripts/lxdialog/checklist.c | for (i = 0; i < width - 2; i++) |
i | 185 | scripts/lxdialog/checklist.c | for (i = 0; i < item_no; i++) |
i | 186 | scripts/lxdialog/checklist.c | check_x = MAX (check_x, + strlen (items[i * 3 + 1]) + 4); |
i | 192 | scripts/lxdialog/checklist.c | for (i = 0; i < max_choice; i++) |
i | 193 | scripts/lxdialog/checklist.c | print_item (list, items[i * 3 + 1], status[i], i, i == choice); |
i | 205 | scripts/lxdialog/checklist.c | for (i = 0; i < max_choice; i++) |
i | 206 | scripts/lxdialog/checklist.c | if (toupper(key) == toupper(items[(scroll+i)*3+1][0])) |
i | 210 | scripts/lxdialog/checklist.c | if ( i < max_choice || key == KEY_UP || key == KEY_DOWN || |
i | 237 | scripts/lxdialog/checklist.c | i = choice - 1; |
i | 265 | scripts/lxdialog/checklist.c | i = choice + 1; |
i | 267 | scripts/lxdialog/checklist.c | if (i != choice) { |
i | 272 | scripts/lxdialog/checklist.c | choice = i; |
i | 308 | scripts/lxdialog/checklist.c | for (i = 0; i < item_no; i++) |
i | 309 | scripts/lxdialog/checklist.c | status[i] = 0; |
i | 311 | scripts/lxdialog/checklist.c | for (i = 0; i < max_choice; i++) |
i | 312 | scripts/lxdialog/checklist.c | print_item (list, items[(scroll + i) * 3 + 1], |
i | 313 | scripts/lxdialog/checklist.c | status[scroll + i], i, i == choice); |
i | 319 | scripts/lxdialog/checklist.c | for (i = 0; i < item_no; i++) { |
i | 320 | scripts/lxdialog/checklist.c | if (status[i]) { |
i | 322 | scripts/lxdialog/checklist.c | fprintf (stderr, "\"%s\" ", items[i * 3]); |
i | 324 | scripts/lxdialog/checklist.c | fprintf (stderr, "%s", items[i * 3]); |
i | 49 | scripts/lxdialog/inputbox.c | int i, x, y, box_y, box_x, box_width; |
i | 67 | scripts/lxdialog/inputbox.c | for (i = 0; i < width - 2; i++) |
i | 106 | scripts/lxdialog/inputbox.c | for (i = 0; i < box_width - 1; i++) |
i | 107 | scripts/lxdialog/inputbox.c | waddch (dialog, instr[scroll + i]); |
i | 136 | scripts/lxdialog/inputbox.c | for (i = 0; i < box_width; i++) |
i | 137 | scripts/lxdialog/inputbox.c | waddch (dialog, instr[scroll + input_x + i] ? |
i | 138 | scripts/lxdialog/inputbox.c | instr[scroll + input_x + i] : ' '); |
i | 157 | scripts/lxdialog/inputbox.c | for (i = 0; i < box_width - 1; i++) |
i | 158 | scripts/lxdialog/inputbox.c | waddch (dialog, instr[scroll + i]); |
i | 32 | scripts/lxdialog/menubox.c | int i, j; |
i | 42 | scripts/lxdialog/menubox.c | for (i = 0; i < menu_width; i++) |
i | 123 | scripts/lxdialog/menubox.c | int i, j, x, y, box_x, box_y; |
i | 141 | scripts/lxdialog/menubox.c | for (i = 0; i < width - 2; i++) |
i | 174 | scripts/lxdialog/menubox.c | for (i = 0; i < item_no; i++) { |
i | 175 | scripts/lxdialog/menubox.c | item_x = MAX (item_x, MIN(menu_width, strlen (items[i * 2 + 1]) + 2)); |
i | 176 | scripts/lxdialog/menubox.c | if (strcmp(current, items[i*2]) == 0) choice = i; |
i | 187 | scripts/lxdialog/menubox.c | for (i=0; i < max_choice; i++) { |
i | 188 | scripts/lxdialog/menubox.c | print_item (menu, items[(first_item + i) * 2 + 1], i, i == choice, |
i | 189 | scripts/lxdialog/menubox.c | (items[(first_item + i)*2][0] != ':')); |
i | 205 | scripts/lxdialog/menubox.c | i = max_choice; |
i | 207 | scripts/lxdialog/menubox.c | for (i = choice+1; i < max_choice; i++) { |
i | 208 | scripts/lxdialog/menubox.c | j = first_alpha(items[(scroll+i)*2+1]); |
i | 209 | scripts/lxdialog/menubox.c | if (key == tolower(items[(scroll+i)*2+1][j])) |
i | 212 | scripts/lxdialog/menubox.c | if (i == max_choice) |
i | 213 | scripts/lxdialog/menubox.c | for (i = 0; i < max_choice; i++) { |
i | 214 | scripts/lxdialog/menubox.c | j = first_alpha(items[(scroll+i)*2+1]); |
i | 215 | scripts/lxdialog/menubox.c | if (key == tolower(items[(scroll+i)*2+1][j])) |
i | 220 | scripts/lxdialog/menubox.c | if (i < max_choice || |
i | 265 | scripts/lxdialog/menubox.c | for (i=0; (i < max_choice) && (scroll > 0); i++) { |
i | 276 | scripts/lxdialog/menubox.c | for (i=0; (i < max_choice) && (scroll+max_choice < item_no); i++) { |
i | 287 | scripts/lxdialog/menubox.c | choice = i; |
i | 32 | scripts/lxdialog/msgbox.c | int i, x, y, key = 0; |
i | 58 | scripts/lxdialog/msgbox.c | for (i = 0; i < width - 2; i++) |
i | 40 | scripts/lxdialog/textbox.c | int i, x, y, cur_x, cur_y, fpos, key = 0; |
i | 101 | scripts/lxdialog/textbox.c | for (i = 0; i < width - 2; i++) |
i | 216 | scripts/lxdialog/textbox.c | for (i = 0; i < height - 4; i++) { |
i | 217 | scripts/lxdialog/textbox.c | if (!i) { |
i | 319 | scripts/lxdialog/textbox.c | int i, fpos; |
i | 380 | scripts/lxdialog/textbox.c | for (i = 0; i < n; i++) |
i | 432 | scripts/lxdialog/textbox.c | int i, passed_end = 0; |
i | 435 | scripts/lxdialog/textbox.c | for (i = 0; i < height; i++) { |
i | 436 | scripts/lxdialog/textbox.c | print_line (win, i, width); |
i | 451 | scripts/lxdialog/textbox.c | int i, y, x; |
i | 462 | scripts/lxdialog/textbox.c | for (i = 0; i < width - x; i++) |
i | 474 | scripts/lxdialog/textbox.c | int i = 0, fpos; |
i | 502 | scripts/lxdialog/textbox.c | } else if (i < MAX_LEN) |
i | 503 | scripts/lxdialog/textbox.c | line[i++] = *(page++); |
i | 506 | scripts/lxdialog/textbox.c | if (i == MAX_LEN) |
i | 507 | scripts/lxdialog/textbox.c | line[i++] = '\0'; |
i | 511 | scripts/lxdialog/textbox.c | if (i <= MAX_LEN) |
i | 512 | scripts/lxdialog/textbox.c | line[i] = '\0'; |
i | 114 | scripts/lxdialog/util.c | int i, j; |
i | 117 | scripts/lxdialog/util.c | for (i = 0; i < height; i++) { |
i | 118 | scripts/lxdialog/util.c | wmove (win, i, 0); |
i | 130 | scripts/lxdialog/util.c | int i; |
i | 135 | scripts/lxdialog/util.c | for (i = 1; i < COLS - 1; i++) |
i | 166 | scripts/lxdialog/util.c | int i; |
i | 172 | scripts/lxdialog/util.c | for (i = 0; i < ATTRIBUTE_COUNT; i++) |
i | 173 | scripts/lxdialog/util.c | init_pair (i + 1, color_table[i][0], color_table[i][1]); |
i | 176 | scripts/lxdialog/util.c | for (i = 0; i < ATTRIBUTE_COUNT; i++) |
i | 177 | scripts/lxdialog/util.c | attributes[i] = C_ATTR (color_table[i][2], i + 1); |
i | 201 | scripts/lxdialog/util.c | int i, prompt_len, room, wlen; |
i | 211 | scripts/lxdialog/util.c | for(i=0; i<prompt_len; i++) { |
i | 212 | scripts/lxdialog/util.c | if(tempstr[i] == '\n') tempstr[i] = ' '; |
i | 260 | scripts/lxdialog/util.c | int i, temp; |
i | 269 | scripts/lxdialog/util.c | for (i = 0; i < temp; i++) |
i | 289 | scripts/lxdialog/util.c | int i, j; |
i | 292 | scripts/lxdialog/util.c | for (i = 0; i < height; i++) { |
i | 293 | scripts/lxdialog/util.c | wmove (win, y + i, x); |
i | 295 | scripts/lxdialog/util.c | if (!i && !j) |
i | 297 | scripts/lxdialog/util.c | else if (i == height - 1 && !j) |
i | 299 | scripts/lxdialog/util.c | else if (!i && j == width - 1) |
i | 301 | scripts/lxdialog/util.c | else if (i == height - 1 && j == width - 1) |
i | 303 | scripts/lxdialog/util.c | else if (!i) |
i | 305 | scripts/lxdialog/util.c | else if (i == height - 1) |
i | 323 | scripts/lxdialog/util.c | int i; |
i | 328 | scripts/lxdialog/util.c | for (i = 0; i < width; i++) |
i | 330 | scripts/lxdialog/util.c | for (i = y + 1; i < y + height + 1; i++) { |
i | 331 | scripts/lxdialog/util.c | wmove (win, i, x + width); |
i | 345 | scripts/lxdialog/util.c | int i, in_paren=0, c; |
i | 347 | scripts/lxdialog/util.c | for (i = 0; i < strlen(string); i++) { |
i | 348 | scripts/lxdialog/util.c | c = tolower(string[i]); |
i | 355 | scripts/lxdialog/util.c | return i; |
i | 46 | scripts/lxdialog/yesno.c | int i, x, y, key = 0, button = 0; |
i | 61 | scripts/lxdialog/yesno.c | for (i = 0; i < width - 2; i++) |
i | 151 | scripts/tkcond.c | int i; |
i | 159 | scripts/tkcond.c | for(i=0; i<depth; i++, cond++) |
i | 237 | scripts/tkcond.c | if( i < depth - 1 ) |
i | 301 | scripts/tkcond.c | int i; |
i | 506 | scripts/tkcond.c | for(i=0; i<5; i++, cnd2=cnd2->next, cnd3=cnd3->next) |
i | 510 | scripts/tkcond.c | if(i == 1 && (cnd2->op != op_kvariable |
i | 512 | scripts/tkcond.c | if(i==2 && cnd2->op != op_eq && cnd2->op != op_neq) break; |
i | 513 | scripts/tkcond.c | if(i == 3 && cnd2->op != op_constant && |
i | 516 | scripts/tkcond.c | if(i==4 && cnd2->op != op_rparen) break; |
i | 522 | scripts/tkcond.c | if(i==5 && ((cnd3 && cnd3->op == op_and) |
i | 529 | scripts/tkcond.c | for(i=0; i<5; i++, cnd3=cnd3->next) |
i | 647 | scripts/tkparse.c | int i; |