taglinefilesource code
i27arch/alpha/boot/main.cint i;
i31arch/alpha/boot/main.ci = vsprintf(buf, fmt, args);
i33arch/alpha/boot/main.cputs(buf,i);
i34arch/alpha/boot/main.creturn i;
i78arch/alpha/boot/main.cunsigned long i, rev, sum;
i105arch/alpha/boot/main.ci = switch_to_osf_pal(
i111arch/alpha/boot/main.cif (i) {
i112arch/alpha/boot/main.cprintk("failed, code %ld\n", i);
i180arch/alpha/boot/main.clong i;
i198arch/alpha/boot/main.ci = load(dev, START_ADDR, START_SIZE);
i200arch/alpha/boot/main.cif (i != START_SIZE) {
i201arch/alpha/boot/main.cprintk("Failed (%lx)\n", i);
i214arch/alpha/boot/main.cfor (i = 0 ; i < 0x100000000 ; i++)
i42arch/alpha/boot/tools/build.cint fd, i;
i82arch/alpha/boot/tools/build.cfor (i = 0 ; i < 63 ; i++)
i83arch/alpha/boot/tools/build.ctmp += bootblock[i];
i104arch/alpha/boot/tools/build.cfor (i = 0 ; i < fhdr.f_nscns ; i++) {
i105arch/alpha/boot/tools/build.cif (read(fd, i+shdr, sizeof(struct scnhdr)) != sizeof(struct scnhdr))
i107arch/alpha/boot/tools/build.cif (shdr[i].s_paddr != shdr[i].s_vaddr)
i109arch/alpha/boot/tools/build.cif (shdr[i].s_relptr)
i113arch/alpha/boot/tools/build.ci, shdr[i].s_name,
i114arch/alpha/boot/tools/build.cshdr[i].s_vaddr,
i115arch/alpha/boot/tools/build.cshdr[i].s_vaddr + shdr[i].s_size,
i116arch/alpha/boot/tools/build.cshdr[i].s_scnptr);
i121arch/alpha/boot/tools/build.cfor (i = 0 ; i < fhdr.f_nscns ; i++) {
i124arch/alpha/boot/tools/build.cif (!strcmp(shdr[i].s_name, ".comment"))
i126arch/alpha/boot/tools/build.cif (shdr[i].s_vaddr != start)
i128arch/alpha/boot/tools/build.csize = shdr[i].s_size;
i130arch/alpha/boot/tools/build.coffset = shdr[i].s_scnptr;
i146arch/alpha/boot/tools/build.ci, shdr[i].s_name,
i147arch/alpha/boot/tools/build.cshdr[i].s_vaddr,
i148arch/alpha/boot/tools/build.cshdr[i].s_vaddr + shdr[i].s_size,
i149arch/alpha/boot/tools/build.cshdr[i].s_scnptr);
i160arch/alpha/boot/tools/build.cint i = MAXBUF;
i161arch/alpha/boot/tools/build.cif (i > count)
i162arch/alpha/boot/tools/build.ci = count;
i163arch/alpha/boot/tools/build.ci = write(1, buffer, i);
i164arch/alpha/boot/tools/build.cif (i <= 0) {
i168arch/alpha/boot/tools/build.ccount -= i;
i93arch/alpha/kernel/irq.cint i, len = 0;
i96arch/alpha/kernel/irq.cfor (i = 0 ; i < 16 ; i++, action++) {
i100arch/alpha/kernel/irq.ci, kstat.interrupts[i],
i206arch/alpha/kernel/irq.cint i;
i211arch/alpha/kernel/irq.cfor (i = 0; i < 16; i++)
i212arch/alpha/kernel/irq.cif (irq_action[i].handler)
i213arch/alpha/kernel/irq.cprintk("[%s:%d] ", irq_action[i].name, i);
i338arch/alpha/kernel/irq.cunsigned int i, irqs = 0, irqmask;
i341arch/alpha/kernel/irq.cfor (i = 15; i > 0; i--) {
i342arch/alpha/kernel/irq.cif (!irq_action[i].handler) {
i343arch/alpha/kernel/irq.cenable_irq(i);
i344arch/alpha/kernel/irq.cirqs |= (1 << i);
i365arch/alpha/kernel/irq.cunsigned int i, irqmask;
i371arch/alpha/kernel/irq.ci = ffz(~irqs);
i372arch/alpha/kernel/irq.cif (irqs != (1 << i))
i373arch/alpha/kernel/irq.ci = -i;
i374arch/alpha/kernel/irq.creturn i;
i468arch/alpha/kernel/osf_sys.cint i, error;
i478arch/alpha/kernel/osf_sys.cfor (i = 0; i < len; ++i) {
i479arch/alpha/kernel/osf_sys.cput_user(system_utsname.domainname[i], name + i);
i480arch/alpha/kernel/osf_sys.cif (system_utsname.domainname[i] == '\0')
i85arch/alpha/kernel/ptrace.cint i;
i87arch/alpha/kernel/ptrace.cfor (i = 1; i < NR_TASKS; i++) {
i88arch/alpha/kernel/ptrace.cif (task[i] != NULL && (task[i]->pid == pid))
i89arch/alpha/kernel/ptrace.creturn task[i];
i471arch/alpha/kernel/ptrace.cint displ, i, res, reg_b, off, nsaved = 0;
i515arch/alpha/kernel/ptrace.cfor (i = 0; i < nsaved; ++i) {
i516arch/alpha/kernel/ptrace.cres = read_int(child, child->debugreg[i], &insn);
i519arch/alpha/kernel/ptrace.cchild->debugreg[i + 2] = insn;
i520arch/alpha/kernel/ptrace.cDBG(DBG_BPT, ("    -> next_pc=%lx\n", child->debugreg[i]));
i521arch/alpha/kernel/ptrace.cres = write_int(child, child->debugreg[i], BREAKINST);
i531arch/alpha/kernel/ptrace.cint i, nsaved = child->debugreg[4];
i540arch/alpha/kernel/ptrace.cfor (i = 0; i < nsaved; ++i) {
i541arch/alpha/kernel/ptrace.cwrite_int(child, child->debugreg[i], child->debugreg[i + 2]);
i71arch/alpha/kernel/setup.cint i;
i78arch/alpha/kernel/setup.cfor (i = memdesc->numclusters ; i > 0; i--, cluster++) {
i73arch/alpha/kernel/signal.cint i;
i120arch/alpha/kernel/signal.cfor (i = 0; i < 31; i++)
i121arch/alpha/kernel/signal.csw->fp[i] = get_fs_quad(sc->sc_fpregs+i);
i130arch/alpha/kernel/signal.cint i;
i174arch/alpha/kernel/signal.cfor (i = 0; i < 31; i++)
i175arch/alpha/kernel/signal.cput_fs_quad(sw->fp[i], sc->sc_fpregs+i);
i18arch/alpha/kernel/traps.clong i;
i41arch/alpha/kernel/traps.cfor (i = -3; i < 6; i++)
i42arch/alpha/kernel/traps.cprintk("%c%08x%c",i?' ':'<',pc[i],i?' ':'>');
i44arch/alpha/kernel/traps.cfor (i = 0 ; i < 5000000000 ; i++)
i62arch/alpha/mm/init.cint i,free = 0,total = 0,reserved = 0;
i68arch/alpha/mm/init.ci = MAP_NR(high_memory);
i69arch/alpha/mm/init.cwhile (i-- > 0) {
i71arch/alpha/mm/init.cif (mem_map[i] & MAP_PAGE_RESERVED)
i73arch/alpha/mm/init.celse if (!mem_map[i])
i76arch/alpha/mm/init.cshared += mem_map[i]-1;
i107arch/alpha/mm/init.cint i;
i118arch/alpha/mm/init.cfor (i = memdesc->numclusters ; i > 0; i--, cluster++) {
i186arch/alpha/mm/init.cint i;
i188arch/alpha/mm/init.ci = MAP_NR(high_memory);
i193arch/alpha/mm/init.cwhile (i-- > 0)  {
i194arch/alpha/mm/init.cif (mem_map[i] & MAP_PAGE_RESERVED)
i197arch/alpha/mm/init.cif (!mem_map[i])
i199arch/alpha/mm/init.cval->sharedram += mem_map[i]-1;
i118arch/i386/boot/compressed/inflate.cregister unsigned i;          /* counter, current code */
i137arch/i386/boot/compressed/inflate.cp = b;  i = n;
i140arch/i386/boot/compressed/inflate.c} while (--i);
i158arch/i386/boot/compressed/inflate.cfor (i = BMAX; i; i--)
i159arch/i386/boot/compressed/inflate.cif (c[i])
i161arch/i386/boot/compressed/inflate.cg = i;                        /* maximum code length */
i162arch/i386/boot/compressed/inflate.cif ((unsigned)l > i)
i163arch/i386/boot/compressed/inflate.cl = i;
i169arch/i386/boot/compressed/inflate.cfor (y = 1 << j; j < i; j++, y <<= 1)
i172arch/i386/boot/compressed/inflate.cif ((y -= c[i]) < 0)
i174arch/i386/boot/compressed/inflate.cc[i] += y;
i181arch/i386/boot/compressed/inflate.cwhile (--i) {                 /* note that i == g from above */
i188arch/i386/boot/compressed/inflate.cp = b;  i = 0;
i191arch/i386/boot/compressed/inflate.cv[x[j]++] = i;
i192arch/i386/boot/compressed/inflate.c} while (++i < n);
i197arch/i386/boot/compressed/inflate.cx[0] = i = 0;                 /* first Huffman code is zero */
i251arch/i386/boot/compressed/inflate.cx[h] = i;             /* save pattern for backing up */
i255arch/i386/boot/compressed/inflate.cj = i >> (w - l);     /* (get around Turbo C bug) */
i280arch/i386/boot/compressed/inflate.cfor (j = i >> w; j < z; j += f)
i284arch/i386/boot/compressed/inflate.cfor (j = 1 << (k - 1); i & j; j >>= 1)
i285arch/i386/boot/compressed/inflate.ci ^= j;
i286arch/i386/boot/compressed/inflate.ci ^= j;
i289arch/i386/boot/compressed/inflate.cwhile ((i & ((1 << w) - 1)) != x[h])
i495arch/i386/boot/compressed/inflate.cint i;                /* temporary variable */
i505arch/i386/boot/compressed/inflate.cfor (i = 0; i < 144; i++)
i506arch/i386/boot/compressed/inflate.cl[i] = 8;
i507arch/i386/boot/compressed/inflate.cfor (; i < 256; i++)
i508arch/i386/boot/compressed/inflate.cl[i] = 9;
i509arch/i386/boot/compressed/inflate.cfor (; i < 280; i++)
i510arch/i386/boot/compressed/inflate.cl[i] = 7;
i511arch/i386/boot/compressed/inflate.cfor (; i < 288; i++)          /* make a complete, but wrong code set */
i512arch/i386/boot/compressed/inflate.cl[i] = 8;
i514arch/i386/boot/compressed/inflate.cif ((i = huft_build(l, 288, 257, cplens, cplext, &tl, &bl)) != 0)
i515arch/i386/boot/compressed/inflate.creturn i;
i519arch/i386/boot/compressed/inflate.cfor (i = 0; i < 30; i++)      /* make an incomplete code set */
i520arch/i386/boot/compressed/inflate.cl[i] = 5;
i522arch/i386/boot/compressed/inflate.cif ((i = huft_build(l, 30, 0, cpdist, cpdext, &td, &bd)) > 1)
i527arch/i386/boot/compressed/inflate.creturn i;
i547arch/i386/boot/compressed/inflate.cint i;                /* temporary variables */
i607arch/i386/boot/compressed/inflate.cif ((i = huft_build(ll, 19, 19, NULL, NULL, &tl, &bl)) != 0)
i609arch/i386/boot/compressed/inflate.cif (i == 1)
i611arch/i386/boot/compressed/inflate.creturn i;                   /* incomplete code set */
i619arch/i386/boot/compressed/inflate.ci = l = 0;
i620arch/i386/boot/compressed/inflate.cwhile ((unsigned)i < n)
i627arch/i386/boot/compressed/inflate.cll[i++] = l = j;          /* save last length in l */
i633arch/i386/boot/compressed/inflate.cif ((unsigned)i + j > n)
i636arch/i386/boot/compressed/inflate.cll[i++] = l;
i643arch/i386/boot/compressed/inflate.cif ((unsigned)i + j > n)
i646arch/i386/boot/compressed/inflate.cll[i++] = 0;
i654arch/i386/boot/compressed/inflate.cif ((unsigned)i + j > n)
i657arch/i386/boot/compressed/inflate.cll[i++] = 0;
i677arch/i386/boot/compressed/inflate.cif ((i = huft_build(ll, nl, 257, cplens, cplext, &tl, &bl)) != 0)
i680arch/i386/boot/compressed/inflate.cif (i == 1) {
i684arch/i386/boot/compressed/inflate.creturn i;                   /* incomplete code set */
i688arch/i386/boot/compressed/inflate.cif ((i = huft_build(ll + nl, nd, 0, cpdist, cpdext, &td, &bd)) != 0)
i691arch/i386/boot/compressed/inflate.cif (i == 1) {
i694arch/i386/boot/compressed/inflate.ci = 0;
i700arch/i386/boot/compressed/inflate.creturn i;                   /* incomplete code set */
i122arch/i386/boot/compressed/misc.cint i;
i125arch/i386/boot/compressed/misc.cfor ( i = ( lines - 1 ) * cols * 2; i < lines * cols * 2; i += 2 )
i126arch/i386/boot/compressed/misc.cvidmem[i] = ' ';
i162arch/i386/boot/compressed/misc.cint i;
i165arch/i386/boot/compressed/misc.cfor (i=0;i<n;i++) ss[i] = c;
i171arch/i386/boot/compressed/misc.cint i;
i174arch/i386/boot/compressed/misc.cfor (i=0;i<__n;i++) d[i] = s[i];
i220arch/i386/boot/compressed/misc.cint len, i;
i229arch/i386/boot/compressed/misc.cfor (i=0;i<len;i++) inbuf[insize+i] = input_data[input_ptr+i];
i272arch/i386/boot/compressed/misc.cint i;                /* counter for all possible eight bit values */
i280arch/i386/boot/compressed/misc.cfor (i = 0; i < sizeof(p)/sizeof(int); i++)
i281arch/i386/boot/compressed/misc.ce |= 1L << (31 - p[i]);
i285arch/i386/boot/compressed/misc.cfor (i = 1; i < 256; i++)
i288arch/i386/boot/compressed/misc.cfor (k = i | 256; k != 1; k >>= 1)
i294arch/i386/boot/compressed/misc.ccrc_32_tab[i] = c;
i39arch/i386/boot/compressed/xtract.cint i,c,id, sz;
i92arch/i386/boot/tools/build.cint i,c,id, sz;
i128arch/i386/boot/tools/build.cfor (i=0;i<sizeof buf; i++) buf[i]=0;
i145arch/i386/boot/tools/build.ci=read(id,buf,sizeof buf);
i146arch/i386/boot/tools/build.cfprintf(stderr,"Boot sector %d bytes.\n",i);
i147arch/i386/boot/tools/build.cif (i != 512)
i153arch/i386/boot/tools/build.ci=write(1,buf,512);
i154arch/i386/boot/tools/build.cif (i!=512)
i174arch/i386/boot/tools/build.cfor (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c )
i180arch/i386/boot/tools/build.csetup_sectors = (unsigned char)((i + 511) / 512);
i184arch/i386/boot/tools/build.cfprintf(stderr,"Setup is %d bytes.\n",i);
i187arch/i386/boot/tools/build.cwhile (i < setup_sectors * 512) {
i188arch/i386/boot/tools/build.cc = setup_sectors * 512 - i;
i193arch/i386/boot/tools/build.ci += c;
i405arch/i386/kernel/bios32.cint i, length;
i421arch/i386/kernel/bios32.cfor (i = 0; i < length ; ++i)
i422arch/i386/kernel/bios32.csum += check->chars[i];
i165arch/i386/kernel/irq.cint i, len = 0;
i168arch/i386/kernel/irq.cfor (i = 0 ; i < 16 ; i++, action++) {
i172arch/i386/kernel/irq.ci, kstat.interrupts[i],
i300arch/i386/kernel/irq.cunsigned int i, irqs = 0, irqmask;
i304arch/i386/kernel/irq.cfor (i = 15; i > 0; i--) {
i305arch/i386/kernel/irq.cif (!request_irq(i, no_action, SA_PROBE, "probe")) {
i306arch/i386/kernel/irq.cenable_irq(i);
i307arch/i386/kernel/irq.cirqs |= (1 << i);
i316arch/i386/kernel/irq.cfor (i = 15; i > 0; i--) {
i317arch/i386/kernel/irq.cif (irqs & (1 << i) & irqmask) {
i318arch/i386/kernel/irq.cirqs ^= (1 << i);
i319arch/i386/kernel/irq.cfree_irq(i);
i330arch/i386/kernel/irq.cunsigned int i, irqmask;
i333arch/i386/kernel/irq.cfor (i = 15; i > 0; i--) {
i334arch/i386/kernel/irq.cif (irqs & (1 << i)) {
i335arch/i386/kernel/irq.cfree_irq(i);
i344arch/i386/kernel/irq.ci = ffz(~irqs);
i345arch/i386/kernel/irq.cif (irqs != (irqs & (1 << i)))
i346arch/i386/kernel/irq.ci = -i;
i347arch/i386/kernel/irq.creturn i;
i352arch/i386/kernel/irq.cint i;
i358arch/i386/kernel/irq.cfor (i = 0; i < 16 ; i++)
i359arch/i386/kernel/irq.cset_intr_gate(0x20+i,bad_interrupt[i]);
i42arch/i386/kernel/ldt.cint error, i;
i65arch/i386/kernel/ldt.cfor (i=1 ; i<NR_TASKS ; i++) {
i66arch/i386/kernel/ldt.cif (task[i] == current) {
i70arch/i386/kernel/ldt.cset_ldt_desc(gdt+(i<<1)+FIRST_LDT_ENTRY, current->ldt, LDT_ENTRIES);
i71arch/i386/kernel/ldt.cload_ldt(i);
i47arch/i386/kernel/process.cint i;
i55arch/i386/kernel/process.cfor (i = 0 ; i < 768 ; i++)
i76arch/i386/kernel/process.cint i;
i78arch/i386/kernel/process.cfor (i=0; i<0x10000; i++)
i85arch/i386/kernel/process.cint i, j;
i92arch/i386/kernel/process.cfor (i=0; i<100; i++) {
i137arch/i386/kernel/process.cint i;
i142arch/i386/kernel/process.cfor (i=1 ; i<NR_TASKS ; i++) {
i143arch/i386/kernel/process.cif (task[i] == current)  {
i144arch/i386/kernel/process.cset_ldt_desc(gdt+(i<<1)+
i146arch/i386/kernel/process.cload_ldt(i);
i151arch/i386/kernel/process.cfor (i=0 ; i<8 ; i++)
i152arch/i386/kernel/process.ccurrent->debugreg[i] = 0;
i158arch/i386/kernel/process.cint i;
i190arch/i386/kernel/process.cfor (i = 0; i < IO_BITMAP_SIZE+1 ; i++) /* IO bitmap is actually SIZE+1 */
i191arch/i386/kernel/process.cp->tss.io_bitmap[i] = ~0;
i226arch/i386/kernel/process.cint i;
i236arch/i386/kernel/process.cfor (i = 0; i < 8; i++)
i237arch/i386/kernel/process.cdump->u_debugreg[i] = current->debugreg[i];  
i39arch/i386/kernel/ptrace.cint i;
i41arch/i386/kernel/ptrace.cfor (i = 1; i < NR_TASKS; i++) {
i42arch/i386/kernel/ptrace.cif (task[i] != NULL && (task[i]->pid == pid))
i43arch/i386/kernel/ptrace.creturn task[i];
i303arch/i386/kernel/ptrace.cint i;
i446arch/i386/kernel/ptrace.cfor(i=0; i<4; i++)
i447arch/i386/kernel/ptrace.cif ((0x5f54 >> ((data >> (16 + 4*i)) & 0xf)) & 1)
i98arch/i386/kernel/traps.cint i;
i121arch/i386/kernel/traps.cstore_TR(i);
i125arch/i386/kernel/traps.ccurrent->comm, current->pid, 0xffff & i, current->kernel_stack_page);
i127arch/i386/kernel/traps.cfor(i=0; i < kstack_depth_to_print; i++) {
i130arch/i386/kernel/traps.cif (i && ((i % 8) == 0))
i136arch/i386/kernel/traps.ci = 1;
i152arch/i386/kernel/traps.cif (i && ((i % 8) == 0))
i155arch/i386/kernel/traps.ci++;
i159arch/i386/kernel/traps.cfor(i=0;i<20;i++)
i160arch/i386/kernel/traps.cprintk("%02x ",0xff & get_seg_byte(regs->cs,(i+(char *)regs->eip)));
i306arch/i386/kernel/traps.cint i;
i330arch/i386/kernel/traps.cfor (i=18;i<48;i++)
i331arch/i386/kernel/traps.cset_trap_gate(i,&reserved);
i339arch/i386/kernel/traps.cfor(i=1 ; i<NR_TASKS ; i++) {
i75arch/i386/kernel/vm86.cint i;
i94arch/i386/kernel/vm86.cfor (i = 0; i < 32; i++) {
i301arch/i386/kernel/vm86.cstatic void do_int(struct vm86_regs *regs, int i, unsigned char * ssp, unsigned long sp)
i307arch/i386/kernel/vm86.cif (is_revectored(i, &current->tss.vm86_info->int_revectored))
i309arch/i386/kernel/vm86.cif (i==0x21 && is_revectored(AH(regs),&current->tss.vm86_info->int21_revectored))
i311arch/i386/kernel/vm86.cintr_ptr = (unsigned short *) (i << 2);
i328arch/i386/kernel/vm86.creturn_to_32bit(regs, VM86_INTx + (i << 8));
i87arch/i386/math-emu/errors.cint i;
i99arch/i386/math-emu/errors.cfor ( i = 0; i < MAX_PRINTED_BYTES; i++ )
i110arch/i386/math-emu/errors.cif ( i == MAX_PRINTED_BYTES )
i166arch/i386/math-emu/errors.cfor ( i = 0; i < 8; i++ )
i168arch/i386/math-emu/errors.cFPU_REG *r = &st(i);
i177arch/i386/math-emu/errors.ci, r->sign ? '-' : '+');
i184arch/i386/math-emu/errors.cprintk("st(%d)  %c .%04lx %04lx %04lx %04lx e%+-6ld ", i,
i305arch/i386/math-emu/errors.cint i, int_type;
i342arch/i386/math-emu/errors.cfor (i=0; exception_names[i].type; i++)
i343arch/i386/math-emu/errors.cif ( (exception_names[i].type & n) == exception_names[i].type )
i346arch/i386/math-emu/errors.cif (exception_names[i].type)
i349arch/i386/math-emu/errors.cprintk("FP Exception: %s!\n", exception_names[i].name);
i640arch/i386/math-emu/errors.cvoid stack_underflow_i(int i)
i646arch/i386/math-emu/errors.creg_move(&CONST_QNaN, &(st(i)));
i656arch/i386/math-emu/errors.cvoid stack_underflow_pop(int i)
i662arch/i386/math-emu/errors.creg_move(&CONST_QNaN, &(st(i)));
i123arch/i386/math-emu/fpu_emu.h#define  NOT_EMPTY(i)  (st(i).tag != TW_Empty)
i157arch/i386/math-emu/fpu_entry.cint i;
i158arch/i386/math-emu/fpu_entry.cfor ( i = 0; i < 8; i++ )
i162arch/i386/math-emu/fpu_entry.cregs[i].exp = 0;
i163arch/i386/math-emu/fpu_entry.cregs[i].sigh = 0x80000000;
i7arch/i386/math-emu/fpu_proto.hextern void stack_underflow_i(int i);
i8arch/i386/math-emu/fpu_proto.hextern void stack_underflow_pop(int i);
i1017arch/i386/math-emu/reg_ld_str.cint i, precision_loss;
i1044arch/i386/math-emu/reg_ld_str.cfor ( i = 0; i < 7; i++)
i1045arch/i386/math-emu/reg_ld_str.cput_fs_byte(0, (unsigned char *) d+i); /* These bytes "undefined" */
i1064arch/i386/math-emu/reg_ld_str.cfor ( i = 0; i < 9; i++)
i1069arch/i386/math-emu/reg_ld_str.cput_fs_byte(b,(unsigned char *) d+i);
i1153arch/i386/math-emu/reg_ld_str.cint i;
i1204arch/i386/math-emu/reg_ld_str.cfor ( i = 0; i < 8; i++ )
i1211arch/i386/math-emu/reg_ld_str.cregs[i].tag = TW_Empty;
i1212arch/i386/math-emu/reg_ld_str.celse if ( regs[i].tag == TW_Empty )
i1216arch/i386/math-emu/reg_ld_str.cif ( regs[i].exp == EXP_BIAS - EXTENDED_Ebias )
i1218arch/i386/math-emu/reg_ld_str.cif ( !(regs[i].sigl | regs[i].sigh) )
i1219arch/i386/math-emu/reg_ld_str.cregs[i].tag = TW_Zero;
i1221arch/i386/math-emu/reg_ld_str.cregs[i].tag = TW_Valid;
i1223arch/i386/math-emu/reg_ld_str.celse if ( regs[i].exp == 0x7fff + EXP_BIAS - EXTENDED_Ebias )
i1225arch/i386/math-emu/reg_ld_str.cif ( !((regs[i].sigh & ~0x80000000) | regs[i].sigl) )
i1226arch/i386/math-emu/reg_ld_str.cregs[i].tag = TW_Infinity;
i1228arch/i386/math-emu/reg_ld_str.cregs[i].tag = TW_NaN;
i1231arch/i386/math-emu/reg_ld_str.cregs[i].tag = TW_Valid;
i1243arch/i386/math-emu/reg_ld_str.cint i, stnr;
i1247arch/i386/math-emu/reg_ld_str.cfor ( i = 0; i < 8; i++ )
i1250arch/i386/math-emu/reg_ld_str.cstnr = (i+top) & 7;
i1252arch/i386/math-emu/reg_ld_str.creg_load_extended((long double *)(s+i*10), &regs[stnr]);
i1264arch/i386/math-emu/reg_ld_str.cint i;
i1266arch/i386/math-emu/reg_ld_str.cfor ( i = 7; i >= 0; i-- )
i1268arch/i386/math-emu/reg_ld_str.cswitch ( tag = regs[i].tag )
i1271arch/i386/math-emu/reg_ld_str.cif ( regs[i].exp <= (EXP_BIAS - EXTENDED_Ebias) )
i1361arch/i386/math-emu/reg_ld_str.cint i;
i1367arch/i386/math-emu/reg_ld_str.cfor ( i = 0; i < 8; i++ )
i1368arch/i386/math-emu/reg_ld_str.cwrite_to_extended(&regs[(top + i) & 7], d + 10 * i);
i67arch/i386/mm/init.cint i,free = 0,total = 0,reserved = 0;
i73arch/i386/mm/init.ci = high_memory >> PAGE_SHIFT;
i74arch/i386/mm/init.cwhile (i-- > 0) {
i76arch/i386/mm/init.cif (mem_map[i] & MAP_PAGE_RESERVED)
i78arch/i386/mm/init.celse if (!mem_map[i])
i81arch/i386/mm/init.cshared += mem_map[i]-1;
i221arch/i386/mm/init.cint i;
i223arch/i386/mm/init.ci = high_memory >> PAGE_SHIFT;
i228arch/i386/mm/init.cwhile (i-- > 0)  {
i229arch/i386/mm/init.cif (mem_map[i] & MAP_PAGE_RESERVED)
i232arch/i386/mm/init.cif (!mem_map[i])
i234arch/i386/mm/init.cval->sharedram += mem_map[i]-1;
i114arch/mips/kernel/irq.cint i, len = 0;
i117arch/mips/kernel/irq.cfor (i = 0 ; i < 16 ; i++, action++) {
i121arch/mips/kernel/irq.ci, kstat.interrupts[i],
i233arch/mips/kernel/irq.cunsigned int i, irqs = 0, irqmask;
i237arch/mips/kernel/irq.cfor (i = 15; i > 0; i--) {
i238arch/mips/kernel/irq.cif (!request_irq(i, no_action, SA_PROBE, "probe")) {
i239arch/mips/kernel/irq.cenable_irq(i);
i240arch/mips/kernel/irq.cirqs |= (1 << i);
i249arch/mips/kernel/irq.cfor (i = 15; i > 0; i--) {
i250arch/mips/kernel/irq.cif (irqs & (1 << i) & irqmask) {
i251arch/mips/kernel/irq.cirqs ^= (1 << i);
i252arch/mips/kernel/irq.cfree_irq(i);
i263arch/mips/kernel/irq.cunsigned int i, irqmask;
i266arch/mips/kernel/irq.cfor (i = 15; i > 0; i--) {
i267arch/mips/kernel/irq.cif (irqs & (1 << i)) {
i268arch/mips/kernel/irq.cfree_irq(i);
i277arch/mips/kernel/irq.ci = ffz(~irqs);
i278arch/mips/kernel/irq.cif (irqs != (irqs & (1 << i)))
i279arch/mips/kernel/irq.ci = -i;
i280arch/mips/kernel/irq.creturn i;
i285arch/mips/kernel/irq.cint i;
i291arch/mips/kernel/irq.cfor (i = 0; i < 16 ; i++)
i292arch/mips/kernel/irq.cset_intr_gate(i, bad_interrupt);
i297arch/mips/kernel/irq.cfor (i = 0; i < 32; i++) {
i298arch/mips/kernel/irq.cbh_base[i].routine = NULL;
i299arch/mips/kernel/irq.cbh_base[i].data = NULL;
i38arch/mips/kernel/process.cint i;
i46arch/mips/kernel/process.cfor (i = 0 ; i < 512 ; i++)
i47arch/mips/kernel/process.cpgd_clear(swapper_pg_dir + i);
i133arch/mips/kernel/process.cint i;
i143arch/mips/kernel/process.cfor (i = 0; i < 8; i++)
i144arch/mips/kernel/process.cdump->u_debugreg[i] = current->debugreg[i];  
i38arch/mips/kernel/ptrace.cint i;
i40arch/mips/kernel/ptrace.cfor (i = 1; i < NR_TASKS; i++) {
i41arch/mips/kernel/ptrace.cif (task[i] != NULL && (task[i]->pid == pid))
i42arch/mips/kernel/ptrace.creturn task[i];
i284arch/mips/kernel/ptrace.cint i;
i428arch/mips/kernel/ptrace.cfor(i=0; i<4; i++)
i429arch/mips/kernel/ptrace.cif ((0x5f54 >> ((data >> (16 + 4*i)) & 0xf)) & 1)
i80arch/mips/kernel/traps.cint i;
i131arch/mips/kernel/traps.ccurrent->comm, current->pid, 0xffff & i,
i133arch/mips/kernel/traps.cfor(i=0;i<5;i++)
i136arch/mips/kernel/traps.cfor(i=0; i < kstack_depth_to_print; i++) {
i139arch/mips/kernel/traps.cif (i && ((i % 8) == 0))
i145arch/mips/kernel/traps.ci = 1;
i161arch/mips/kernel/traps.cif (i && ((i % 8) == 0))
i164arch/mips/kernel/traps.ci++;
i169arch/mips/kernel/traps.cfor(i=0;i<5;i++)
i296arch/mips/kernel/traps.cint  i;
i306arch/mips/kernel/traps.cfor (i=0;i<=31;i++)
i307arch/mips/kernel/traps.cset_except_vector(i, handle_reserved);
i108arch/mips/mm/init.cint i,free = 0,total = 0,reserved = 0;
i114arch/mips/mm/init.ci = high_memory >> PAGE_SHIFT;
i115arch/mips/mm/init.cwhile (i-- > 0) {
i117arch/mips/mm/init.cif (mem_map[i] & MAP_PAGE_RESERVED)
i119arch/mips/mm/init.celse if (!mem_map[i])
i122arch/mips/mm/init.cshared += mem_map[i]-1;
i238arch/mips/mm/init.cint i;
i240arch/mips/mm/init.ci = high_memory >> PAGE_SHIFT;
i245arch/mips/mm/init.cwhile (i-- > 0)  {
i246arch/mips/mm/init.cif (mem_map[i] & MAP_PAGE_RESERVED)
i249arch/mips/mm/init.cif (!mem_map[i])
i251arch/mips/mm/init.cval->sharedram += mem_map[i]-1;
i50arch/sparc/kernel/idprom.cint i;
i52arch/sparc/kernel/idprom.cfor(i = 0; i<NUM_SUN_MACHINES; i++) {
i53arch/sparc/kernel/idprom.cif(Sun_Machines[i].id_machtype == machtyp) {
i55arch/sparc/kernel/idprom.cprintk("TYPE: %s\n", Sun_Machines[i].name);
i65arch/sparc/kernel/idprom.cif(i == NUM_SUN_MACHINES)
i168arch/sparc/kernel/irq.cint i, len = 0;
i171arch/sparc/kernel/irq.cfor (i = 0 ; i < 16 ; i++, action++) {
i175arch/sparc/kernel/irq.ci, kstat.interrupts[i],
i209arch/sparc/kernel/irq.cint i;
i215arch/sparc/kernel/irq.cfor (i = 0; i < 16; i++)
i216arch/sparc/kernel/irq.cif (irq_action[i].handler)
i217arch/sparc/kernel/irq.cprintk("[%s:%d:0x%x] ", irq_action[i].name, (int) i,
i218arch/sparc/kernel/irq.c(unsigned int) irq_action[i].handler);
i342arch/sparc/kernel/irq.cint ie_node, i;
i379arch/sparc/kernel/irq.cfor(i=0; i<NCPUS; i++)
i380arch/sparc/kernel/irq.cprintk("cpu%d: tbt %08x\n", i,
i381arch/sparc/kernel/irq.csun4m_interrupts->cpu_intregs[i].tbt);
i162arch/sparc/kernel/probe.cint i, cpuid;
i171arch/sparc/kernel/probe.cfor(i = 0; i<NSPARCCHIPS; i++)
i173arch/sparc/kernel/probe.cif(linux_sparc_chips[i].psr_impl == psr_impl)
i174arch/sparc/kernel/probe.cif(linux_sparc_chips[i].psr_vers == psr_vers)
i176arch/sparc/kernel/probe.csparc_cpu_type[cpuid] = linux_sparc_chips[i].cpu_name;
i181arch/sparc/kernel/probe.cif(i==NSPARCCHIPS)
i195arch/sparc/kernel/probe.cfor(i = 0; i<NSPARCFPU; i++)
i197arch/sparc/kernel/probe.cif(linux_sparc_fpu[i].psr_impl == psr_impl)
i198arch/sparc/kernel/probe.cif(linux_sparc_fpu[i].fp_vers == fpu_vers)
i200arch/sparc/kernel/probe.csparc_fpu_type[cpuid] = linux_sparc_fpu[i].fp_name;
i205arch/sparc/kernel/probe.cif(i == NSPARCFPU)
i476arch/sparc/kernel/probe.cint nd, i, prom_node_cpu, thismid;
i508arch/sparc/kernel/probe.cfor(i=0; i<cpu_ctr; i++) {
i509arch/sparc/kernel/probe.cprom_getstring(cpu_nds[i], "name", node_str, sizeof(node_str));
i510arch/sparc/kernel/probe.cprintk("cpu%d: %s \n", i, node_str);
i94arch/sparc/kernel/process.cint i;
i116arch/sparc/kernel/process.cfor(i=0; i<96; i++) *new_stack++ = *old_stack++;
i102arch/sparc/kernel/setup.cint i;
i103arch/sparc/kernel/setup.cfor(i=0; i<strlen(commands); i++)
i104arch/sparc/kernel/setup.cif(commands[i]=='-')
i105arch/sparc/kernel/setup.cswitch(commands[i+1]) {
i122arch/sparc/kernel/setup.ccommands[i+1]);
i154arch/sparc/kernel/setup.cint counter, total, i, node;
i237arch/sparc/kernel/setup.cfor(i=0; sp_banks[i].num_bytes != 0; i++) {
i239arch/sparc/kernel/setup.cprintk("Bank %d:  base 0x%x  bytes %d\n", i,
i240arch/sparc/kernel/setup.c(unsigned int) sp_banks[i].base_addr, 
i241arch/sparc/kernel/setup.c(int) sp_banks[i].num_bytes);
i243arch/sparc/kernel/setup.cend_of_phys_memory = sp_banks[i].base_addr + sp_banks[i].num_bytes;
i223arch/sparc/kernel/traps.cint i;
i245arch/sparc/kernel/traps.cfor(i=0; i<linux_num_cpus; i++) {
i246arch/sparc/kernel/traps.cif((linux_cpus[i].mid & (~8)) != 0x0) {
i248arch/sparc/kernel/traps.ccpuid = (linux_cpus[i].mid & (~8));
i250arch/sparc/kernel/traps.cthiscpus_mid = linux_cpus[i].mid;
i255arch/sparc/kernel/traps.cprintk("About to fire up cpu %d mid %d cpuid %d\n", i,
i256arch/sparc/kernel/traps.clinux_cpus[i].mid, cpuid);
i258arch/sparc/kernel/traps.cprom_startcpu(linux_cpus[i].prom_node, &ctx_reg, 0x0,
i260arch/sparc/kernel/traps.cprintk("Waiting for cpu %d to start up...\n", i);
i62arch/sparc/mm/fault.cregister int i;
i64arch/sparc/mm/fault.ci = 0;
i73arch/sparc/mm/fault.ci++;
i77arch/sparc/mm/fault.cif (i >= SPARC_PHYS_BANKS-1) {
i81arch/sparc/mm/fault.ci = SPARC_PHYS_BANKS-1;
i85arch/sparc/mm/fault.csp_banks[i].base_addr = (unsigned long) mlist->start_adr;
i86arch/sparc/mm/fault.csp_banks[i].num_bytes = mlist->num_bytes;
i89arch/sparc/mm/fault.ci++;
i90arch/sparc/mm/fault.csp_banks[i].base_addr = 0xdeadbeef;
i91arch/sparc/mm/fault.csp_banks[i].num_bytes = 0;
i82arch/sparc/mm/init.cint i,free = 0,total = 0,reserved = 0;
i88arch/sparc/mm/init.ci = high_memory >> PAGE_SHIFT;
i89arch/sparc/mm/init.cwhile (i-- > 0) {
i91arch/sparc/mm/init.cif (mem_map[i] & MAP_PAGE_RESERVED)
i93arch/sparc/mm/init.celse if (!mem_map[i])
i96arch/sparc/mm/init.cshared += mem_map[i]-1;
i122arch/sparc/mm/init.cint i;
i141arch/sparc/mm/init.cfor(i=0; i<MAX_CTXS; i++) ctx_tasks[i] = NULL;
i247arch/sparc/mm/init.cint i;
i249arch/sparc/mm/init.ci = high_memory >> PAGE_SHIFT;
i254arch/sparc/mm/init.cwhile (i-- > 0)  {
i255arch/sparc/mm/init.cif (mem_map[i] & MAP_PAGE_RESERVED)
i258arch/sparc/mm/init.cif (!mem_map[i])
i260arch/sparc/mm/init.cval->sharedram += mem_map[i]-1;
i37arch/sparc/mm/srmmu.cint i;
i39arch/sparc/mm/srmmu.cfor(i=0; sp_banks[i].num_bytes != 0; i++) {
i40arch/sparc/mm/srmmu.cif(voff < paddr + sp_banks[i].num_bytes) {
i42arch/sparc/mm/srmmu.creturn sp_banks[i].base_addr + voff - paddr;
i44arch/sparc/mm/srmmu.cpaddr += sp_banks[i].num_bytes;
i54arch/sparc/mm/srmmu.cint i;
i57arch/sparc/mm/srmmu.cfor (i=0; sp_banks[i].num_bytes != 0; i++)
i59arch/sparc/mm/srmmu.cif (paddr >= sp_banks[i].base_addr &&
i60arch/sparc/mm/srmmu.cpaddr < (sp_banks[i].base_addr
i61arch/sparc/mm/srmmu.c+ sp_banks[i].num_bytes)) {
i62arch/sparc/mm/srmmu.creturn (paddr - sp_banks[i].base_addr) + offset;
i64arch/sparc/mm/srmmu.coffset += sp_banks[i].num_bytes;
i629arch/sparc/mm/srmmu.cint i;
i644arch/sparc/mm/srmmu.cfor(i = 0; i < num_contexts; i++)
i645arch/sparc/mm/srmmu.csrmmu_pgd_set(&lnx_root[i], pmdp);
i781arch/sparc/mm/srmmu.cfor(i=0; i<num_contexts; i++)
i782arch/sparc/mm/srmmu.csrmmu_set_context(i);
i42arch/sparc/mm/sun4c.cint i;
i44arch/sparc/mm/sun4c.cfor(i=0; sp_banks[i].num_bytes != 0; i++) {
i45arch/sparc/mm/sun4c.cif(voff < paddr + sp_banks[i].num_bytes) {
i47arch/sparc/mm/sun4c.creturn sp_banks[i].base_addr + voff - paddr;
i49arch/sparc/mm/sun4c.cpaddr += sp_banks[i].num_bytes;
i59arch/sparc/mm/sun4c.cint i;
i62arch/sparc/mm/sun4c.cfor (i=0; sp_banks[i].num_bytes != 0; i++)
i64arch/sparc/mm/sun4c.cif (paddr >= sp_banks[i].base_addr &&
i65arch/sparc/mm/sun4c.cpaddr < (sp_banks[i].base_addr
i66arch/sparc/mm/sun4c.c+ sp_banks[i].num_bytes)) {
i67arch/sparc/mm/sun4c.creturn (paddr - sp_banks[i].base_addr) + offset;
i69arch/sparc/mm/sun4c.coffset += sp_banks[i].num_bytes;
i434arch/sparc/mm/sun4c.cint phys_seg, i, min_prom_segmap;
i452arch/sparc/mm/sun4c.cfor(i=0; i<num_segmaps; i++) phys_seg_map[i] = PSEG_AVL;
i453arch/sparc/mm/sun4c.cfor(i=num_segmaps; i<PSEG_ENTRIES; i++) phys_seg_map[i] = PSEG_RSV;
i510arch/sparc/mm/sun4c.cfor(i=0; i<num_contexts; i++)
i511arch/sparc/mm/sun4c.c(*romvec->pv_setctxt)(i, (char *) addr, phys_seg);
i547arch/sparc/mm/sun4c.cfor(i=0; i<num_contexts; i++)
i548arch/sparc/mm/sun4c.c(*romvec->pv_setctxt)(i, (char *) addr, phys_seg);
i39arch/sparc/prom/memory.cint i, mitr, tmpsize;
i43arch/sparc/prom/memory.cfor(i=0; thislist[i].theres_more != 0; i++) {
i44arch/sparc/prom/memory.clowest = thislist[i].start_adr;
i45arch/sparc/prom/memory.cfor(mitr = i+1; thislist[mitr-1].theres_more != 0; mitr++)
i50arch/sparc/prom/memory.cif(lowest == thislist[i].start_adr) continue;
i53arch/sparc/prom/memory.cfor(mitr = swapi; mitr > i; mitr--) {
i57arch/sparc/prom/memory.cthislist[i].start_adr = tmpaddr;
i58arch/sparc/prom/memory.cthislist[i].num_bytes = tmpsize;
i534drivers/block/aztcd.c{       int i, st;
i550drivers/block/aztcd.c{ if ((i=aztUpdateToc())<0) RETURNM("aztcd_ioctl 3", i); /* error reading TOC */
i585drivers/block/aztcd.ci = aztPlay(&azt_Play);
i586drivers/block/aztcd.cif (i < 0)
i651drivers/block/aztcd.ci = aztPlay(&azt_Play);
i652drivers/block/aztcd.cif (i < 0)
i686drivers/block/aztcd.ci = aztPlay(&azt_Play);
i687drivers/block/aztcd.cif (i < 0)
i865drivers/block/aztcd.cint i;
i866drivers/block/aztcd.cfor (i = 0; i < AZT_BUF_SIZ && azt_buf_bn[i] != bn; ++i)
i868drivers/block/aztcd.cif (i < AZT_BUF_SIZ) {
i869drivers/block/aztcd.cint offs = (i * 4 + (CURRENT -> sector & 3)) * 512;
i871drivers/block/aztcd.cif (azt_buf_out != i) {
i872drivers/block/aztcd.cazt_buf_out = i;
i873drivers/block/aztcd.cif (azt_buf_bn[i] != bn) {
i1228drivers/block/aztcd.cint i;
i1230drivers/block/aztcd.cfor (i=0; i<2048; i++) {
i1305drivers/block/aztcd.c{ int i;
i1310drivers/block/aztcd.cfor (i = 0; i < AZT_BUF_SIZ; ++i)
i1311drivers/block/aztcd.cazt_buf_bn[i] = -1;
i1744drivers/block/aztcd.c{       int i, px;
i1751drivers/block/aztcd.cfor (i = 0; i < MAX_TRACKS; i++)
i1752drivers/block/aztcd.cToc[i].pointIndex = 0;
i1754drivers/block/aztcd.ci = DiskInfo.last + 3;
i1775drivers/block/aztcd.ci--;
i1778drivers/block/aztcd.cif (i <= 0)
i1786drivers/block/aztcd.cfor (i=0;i<=DiskInfo.last;i++) /*Unterscheidung zw. Audio- und Datendisk???*/
i1787drivers/block/aztcd.c{ if ((Toc[i].ctrl_addr)==0x01)      
i1789drivers/block/aztcd.cif ((Toc[i].ctrl_addr)==0x41)
i1798drivers/block/aztcd.cfor (i = 1; i <= DiskInfo.last+1; i++)
i1800drivers/block/aztcd.ci, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex,
i1801drivers/block/aztcd.cToc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame,
i1802drivers/block/aztcd.cToc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame);
i1803drivers/block/aztcd.cfor (i = 100; i < 103; i++)
i1805drivers/block/aztcd.ci, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex,
i1806drivers/block/aztcd.cToc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame,
i1807drivers/block/aztcd.cToc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame);
i635drivers/block/cdu31a.cint i;
i694drivers/block/cdu31a.cfor (i=0; i<8; i++)
i722drivers/block/cdu31a.cfor (i=0; i<10; i++)
i1120drivers/block/cdu31a.cint i;
i1128drivers/block/cdu31a.cfor(i=0; i<CD_XA_HEAD; i++)
i1167drivers/block/cdu31a.cfor(i=0; i<CD_XA_TAIL; i++)
i1775drivers/block/cdu31a.cint i;
i1780drivers/block/cdu31a.cfor (i = 0; i < num_tracks; i++)
i1782drivers/block/cdu31a.cif (sony_toc->tracks[i].track == track)
i1784drivers/block/cdu31a.creturn i;
i2244drivers/block/cdu31a.cint i;
i2306drivers/block/cdu31a.ci=verify_area(VERIFY_READ, (char *) arg, 6);
i2307drivers/block/cdu31a.cif(i)
i2308drivers/block/cdu31a.creturn i;
i2313drivers/block/cdu31a.cfor (i=1; i<7; i++)
i2315drivers/block/cdu31a.cparams[i] = int_to_bcd(params[i]);
i2340drivers/block/cdu31a.ci=verify_area(VERIFY_WRITE, hdr, sizeof(*hdr));
i2341drivers/block/cdu31a.cif(i<0)
i2342drivers/block/cdu31a.creturn i;
i2363drivers/block/cdu31a.ci=verify_area(VERIFY_READ, entry, sizeof(*entry));
i2364drivers/block/cdu31a.cif(i<0)
i2365drivers/block/cdu31a.creturn i;
i2366drivers/block/cdu31a.ci=verify_area(VERIFY_WRITE, entry, sizeof(*entry));
i2367drivers/block/cdu31a.cif(i<0)
i2368drivers/block/cdu31a.creturn i;
i2419drivers/block/cdu31a.ci=verify_area(VERIFY_READ, (char *) arg, sizeof(ti));
i2420drivers/block/cdu31a.cif(i<0)
i2421drivers/block/cdu31a.creturn i;
i2488drivers/block/cdu31a.ci=verify_area(VERIFY_READ, (char *) arg, sizeof(volctrl));
i2489drivers/block/cdu31a.cif(i<0)
i2490drivers/block/cdu31a.creturn i;
i2517drivers/block/cdu31a.ci=verify_area(VERIFY_READ, (char *) arg, sizeof(ra));
i2518drivers/block/cdu31a.cif(i<0)
i2519drivers/block/cdu31a.creturn i;
i2522drivers/block/cdu31a.ci=verify_area(VERIFY_WRITE, ra.buf, CD_FRAMESIZE_RAW * ra.nframes);
i2523drivers/block/cdu31a.cif(i<0)
i2524drivers/block/cdu31a.creturn i;
i2838drivers/block/cdu31a.cint i;
i2880drivers/block/cdu31a.ci = 0;
i2881drivers/block/cdu31a.cwhile (   (cdu31a_addresses[i].base != 0)
i2884drivers/block/cdu31a.cif (check_region(cdu31a_addresses[i].base, 4)) {
i2885drivers/block/cdu31a.ci++;
i2888drivers/block/cdu31a.cget_drive_configuration(cdu31a_addresses[i].base,
i2894drivers/block/cdu31a.cirq_used = cdu31a_addresses[i].int_num;
i2898drivers/block/cdu31a.ci++;
i138drivers/block/cm206.c#define stats(i) ++cd->stats[st_ ## i]; \
i139drivers/block/cm206.ccd->last_stat[st_ ## i] = cd->stat_counter++;
i141drivers/block/cm206.c#define stats(i) (void) 0
i383drivers/block/cm206.cint i;
i385drivers/block/cm206.cfor(i=0; i<bytes; i++) 
i386drivers/block/cm206.cstatus[i] = send_receive(c_gimme);
i420drivers/block/cm206.cint i, e;
i423drivers/block/cm206.cfor (i=0; i<4; i++) 
i424drivers/block/cm206.cif (read_sector[i] != (e=send_receive(read_sector[i]))) {
i425drivers/block/cm206.cdebug(("read_sector: %x echoes %x\n", read_sector[i], e));
i550drivers/block/cm206.cint i=0;
i552drivers/block/cm206.cwhile (i++<10 && cd->dsb & dsb_drive_not_ready) {
i645drivers/block/cm206.clong int i, cd_sec_no;
i658drivers/block/cm206.cfor (i=0; i<CURRENT->nr_sectors; i++) {
i659drivers/block/cm206.ccd_sec_no = (CURRENT->sector+i)/4; /* 4 times 512 bytes */
i660drivers/block/cm206.cquarter = (CURRENT->sector+i) % 4; 
i661drivers/block/cm206.cdest = CURRENT->buffer + i*512;
i717drivers/block/cm206.cint i;
i721drivers/block/cm206.cfor (i=0; i<4; i++) type_0_command(seek_command[i], 0);
i743drivers/block/cm206.cint i, lba, l, old_lba=0;
i749drivers/block/cm206.cfor (i=track; i>0; i--) if (cd->toc[i].track) {
i750drivers/block/cm206.cmin = fsm2lba(cd->toc[i].fsm);
i797drivers/block/cm206.cint i;
i801drivers/block/cm206.cfor (i=0; i<3; i++) cd->toc[1].fsm[i] = cd->disc_status[3+i];
i813drivers/block/cm206.cint i;
i814drivers/block/cm206.cfor (i=0; i<9; i++) type_0_command(play_command[i], 0);
i815drivers/block/cm206.cfor (i=0; i<3; i++) 
i816drivers/block/cm206.cPLAY_TO.fsm[i] = play_command[i+4];
i824drivers/block/cm206.cint i;
i827drivers/block/cm206.cfor (i=0; i<3; i++) { 
i828drivers/block/cm206.cplay_command[i+1] = cd->audio_status[i+2];
i829drivers/block/cm206.cplay_command[i+4] = PLAY_TO.fsm[i];
i833drivers/block/cm206.cfor (i=0; i<3; i++) {
i834drivers/block/cm206.cplay_command[i+1] = cd->toc[from].fsm[i];
i835drivers/block/cm206.cPLAY_TO.fsm[i] = play_command[i+4] = cd->toc[to+1].fsm[i];
i839drivers/block/cm206.cfor (i=0; i<7; i++) type_0_command(play_command[i],0);
i840drivers/block/cm206.cfor (i=0; i<2; i++) type_0_command(0x2, 0); /* volume */
i846drivers/block/cm206.cint i;
i850drivers/block/cm206.cfor (i=2; i<6; i++) q[i]=bcdbin(q[i]); 
i1134drivers/block/cm206.cint i;
i1135drivers/block/cm206.cfor (i=0; i<2; i++) {
i1136drivers/block/cm206.cif (0x300 <= cm206[i] && i<= 0x370 && cm206[i] % 0x10 == 0) {
i1137drivers/block/cm206.ccm206_base = cm206[i];
i1140drivers/block/cm206.celse if (3 <= cm206[i] && cm206[i] <= 15) {
i1141drivers/block/cm206.ccm206_irq = cm206[i];
i1251drivers/block/cm206.cint i;
i1253drivers/block/cm206.cfor(i=1; i<=p[0]; i++) {
i1254drivers/block/cm206.cif (0x300 <= p[i] && i<= 0x370 && p[i] % 0x10 == 0) {
i1255drivers/block/cm206.ccm206_base = p[i];
i1258drivers/block/cm206.celse if (3 <= p[i] && p[i] <= 15) {
i1259drivers/block/cm206.ccm206_irq = p[i];
i449drivers/block/floppy.c#define _WAIT(x,i) CALL(ret=wait_til_done((x),i))
i873drivers/block/floppy.cint i, drive, saved_drive;
i879drivers/block/floppy.cfor(i=0; i< N_DRIVE; i++){
i880drivers/block/floppy.cdrive = (saved_drive + i + 1 ) % N_DRIVE;
i976drivers/block/floppy.cint i;
i979drivers/block/floppy.cfor(i=0; i< raw_cmd.cmd_count; i++)
i980drivers/block/floppy.cprintk("%x,", raw_cmd.cmd[i]);
i1068drivers/block/floppy.cint i = 0, counter, status;
i1080drivers/block/floppy.cresultsize = i;
i1082drivers/block/floppy.creturn i;
i1087drivers/block/floppy.cif (i >= MAX_REPLIES) {
i1091drivers/block/floppy.creply_buffer[i++] = inb_p(FD_DATA);
i1097drivers/block/floppy.cstatus, fdc, i);
i1349drivers/block/floppy.cint i,ready_date,r, flags,dflags;
i1381drivers/block/floppy.cfor(i=0; i< raw_cmd.cmd_count; i++)
i1382drivers/block/floppy.cr|=output_byte( raw_cmd.cmd[i] );
i1579drivers/block/floppy.cint i;
i1585drivers/block/floppy.cfor(i=0; i<inr; i++)
i1586drivers/block/floppy.cprintk("%d %x\n", i, reply_buffer[i] );
i1595drivers/block/floppy.cfor(i=0; i<inr; i++)
i1596drivers/block/floppy.cprintk("%d %x\n", i, reply_buffer[i] );
i1689drivers/block/floppy.cint i;
i1701drivers/block/floppy.cfor(i=0; i < OLOGSIZE; i++)
i1703drivers/block/floppy.coutput_log[(i+output_log_pos) % OLOGSIZE].data,
i1704drivers/block/floppy.coutput_log[(i+output_log_pos) % OLOGSIZE].status,
i1705drivers/block/floppy.coutput_log[(i+output_log_pos) % OLOGSIZE].jiffies);
i1708drivers/block/floppy.cfor(i=0; i<resultsize; i++){
i1709drivers/block/floppy.cprintk("%2x ", reply_buffer[i]);
i1715drivers/block/floppy.cfor(i=0; i<N_FDC; i++){
i1717drivers/block/floppy.cprintk("dor %d = %x\n", i, fdc_state[i].dor );
i1718drivers/block/floppy.coutb_p(fdc_state[i].address+2, fdc_state[i].dor);
i2791drivers/block/floppy.cint i;
i2793drivers/block/floppy.ci = verify_area(VERIFY_WRITE,param,size);
i2794drivers/block/floppy.cif (i)
i2795drivers/block/floppy.creturn i;
i2830drivers/block/floppy.cint i, drive, count, ret;
i2864drivers/block/floppy.ci = verify_area(VERIFY_READ, raw_cmd.data, count );
i2865drivers/block/floppy.cif (i)
i2866drivers/block/floppy.creturn i;
i2887drivers/block/floppy.cfor( i=0; i< raw_cmd.reply_count; i++)
i2888drivers/block/floppy.craw_cmd.reply[i] = reply_buffer[i];
i2898drivers/block/floppy.ci=fd_copyout( raw_cmd.data, floppy_track_buffer, count);
i2899drivers/block/floppy.cif (i)
i2900drivers/block/floppy.creturn i;
i2924drivers/block/floppy.cint i,device,drive,type,cnt;
i2936drivers/block/floppy.ci=verify_area(VERIFY_WRITE,(void *) param,16);
i2937drivers/block/floppy.cif (i)
i2938drivers/block/floppy.creturn i;
i2985drivers/block/floppy.cCALL(i = raw_cmd_ioctl((void *) param));
i2987drivers/block/floppy.creturn i;
i3450drivers/block/floppy.cint i;
i3452drivers/block/floppy.cfor (i=0; i < ARRAY_SIZE(default_drive_params); i++){
i3454drivers/block/floppy.cdefault_drive_params[i].params.flags |= 0x80;
i3456drivers/block/floppy.cdefault_drive_params[i].params.flags &= ~0x80;
i3463drivers/block/floppy.cint i;
i3465drivers/block/floppy.cfor (i=0; i < ARRAY_SIZE(default_drive_params); i++){
i3467drivers/block/floppy.cdefault_drive_params[i].params.select_delay = 0;
i3468drivers/block/floppy.cdefault_drive_params[i].params.flags |= FD_SILENT_DCL_CLEAR;
i3470drivers/block/floppy.cdefault_drive_params[i].params.select_delay = 2*HZ/100;
i3471drivers/block/floppy.cdefault_drive_params[i].params.flags &= ~FD_SILENT_DCL_CLEAR;
i3545drivers/block/floppy.cint i;
i3549drivers/block/floppy.cfor(i=0; i< ARRAY_SIZE(config_params); i++){
i3550drivers/block/floppy.cif (strcmp(str,config_params[i].name) == 0 ){
i3554drivers/block/floppy.cparam = config_params[i].def_param;
i3555drivers/block/floppy.cconfig_params[i].fn(ints,param);
i3561drivers/block/floppy.cfor(i=0; i< ARRAY_SIZE(config_params); i++)
i3562drivers/block/floppy.cprintk(" %s",config_params[i].name);
i3569drivers/block/floppy.cint i,drive;
i3579drivers/block/floppy.cfor(i=0; i<256; i++)
i3580drivers/block/floppy.cif ( TYPE(i))
i3581drivers/block/floppy.cfloppy_sizes[i] = floppy_type[TYPE(i)].size >> 1;
i3583drivers/block/floppy.cfloppy_sizes[i] = MAX_DISK_SIZE;
i3598drivers/block/floppy.cfor (i = 0 ; i < N_FDC ; i++) {
i3599drivers/block/floppy.cfdc = i;
i3628drivers/block/floppy.cfor (i = 0 ; i < N_FDC ; i++) {
i3629drivers/block/floppy.cfdc = i;
i3669drivers/block/floppy.cint i;
i3679drivers/block/floppy.cfor(i=0; i< N_FDC; i++){
i3681drivers/block/floppy.cfdc = i;
i3770drivers/block/floppy.cchar **environ,*env,*ptr,c,i;
i3777drivers/block/floppy.cfor(i=0; i<strlen(name); i++)
i3778drivers/block/floppy.cif ( (char) get_fs_byte(env++) != name[i] )
i3780drivers/block/floppy.cif(i == strlen(name)){
i113drivers/block/genhd.cint i, minor = current_minor, found_dm6 = 0;
i175drivers/block/genhd.cfor (i=1 ; i<=4 ; minor++,i++,p++) {
i192drivers/block/genhd.cfor (i = 4 ; i < 16 ; i++, current_minor++) {
i212drivers/block/genhd.cint i;
i264drivers/block/genhd.cfor (i = 0 ; i < label->d_npartitions; i++, partition++) {
i320drivers/block/genhd.cint i;
i328drivers/block/genhd.cfor (i=start ; i < j ; i++)
i329drivers/block/genhd.cdev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
i334drivers/block/genhd.cint i;
i340drivers/block/genhd.cfor (i = 0 ; i < j; i++)  {
i341drivers/block/genhd.cdev->part[i].start_sect = 0;
i342drivers/block/genhd.cdev->part[i].nr_sects = 0;
i349drivers/block/genhd.cfor (i=0 ; i < j ; i++)
i350drivers/block/genhd.cdev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
i540drivers/block/gscd.cint           i,dummy;
i558drivers/block/gscd.cfor ( i=1,dummy=1 ; i<0xFFFF ; i++ )
i560drivers/block/gscd.cdummy *= i;
i669drivers/block/gscd.cint  i,j;
i680drivers/block/gscd.cfor ( i=0 ; i<j ; i++ )
i749drivers/block/gscd.cint  i;
i775drivers/block/gscd.cfor ( i=0 ; i< size ; i++ )
i826drivers/block/gscd.cint  i;
i847drivers/block/gscd.cfor ( i=0 ; i<size ; i++ )
i865drivers/block/gscd.cint i;
i873drivers/block/gscd.cfor ( i=0 ; i<8 ; i++ )
i914drivers/block/gscd.cint  i;
i920drivers/block/gscd.cfor ( i=0 ; i<0x1E; i++ )
i922drivers/block/gscd.cprintk ( "%c", resp[i] );
i1022drivers/block/gscd.cint i;
i1046drivers/block/gscd.ci = find_drives ();
i1047drivers/block/gscd.cif ( i == 0 )
i1061drivers/block/gscd.ci = 0;
i1062drivers/block/gscd.cwhile ( drv_states[i] != 0 )
i1064drivers/block/gscd.ccurr_drv_state = drv_states[i];
i1065drivers/block/gscd.cprintk ( "GSCD: Reset unit %d ... ",i );
i1068drivers/block/gscd.ci++;
i101drivers/block/hd.cint i;
i107drivers/block/hd.ci = inb_p(0x40);
i108drivers/block/hd.ci |= inb(0x40) << 8;
i110drivers/block/hd.creturn(t - i);
i174drivers/block/hd.cint i = inb_p(HD_STATUS);
i176drivers/block/hd.cif (!OK_STATUS(i)) {
i177drivers/block/hd.cdump_status("check_status", i);
i361drivers/block/hd.cunsigned int i;
i364drivers/block/hd.cfor (i = 0; i < 500000 ; i++) {
i375drivers/block/hd.cint  i;
i378drivers/block/hd.cfor(i = 0; i < 1000; i++) barrier();
i380drivers/block/hd.cfor(i = 0; i < 1000; i++) barrier();
i389drivers/block/hd.cstatic int i;
i394drivers/block/hd.ci = -1;
i401drivers/block/hd.cif (++i < NR_HD) {
i402drivers/block/hd.cspecial_op[i] = recalibrate[i] = 1;
i403drivers/block/hd.cif (unmask_intr[i]) {
i404drivers/block/hd.cunmask_intr[i] = DEFAULT_UNMASK_INTR;
i405drivers/block/hd.cprintk("hd%c: reset irq-unmasking to %d\n",i+'a',
i408drivers/block/hd.cif (mult_req[i] || mult_count[i]) {
i409drivers/block/hd.cmult_count[i] = 0;
i410drivers/block/hd.cmult_req[i] = DEFAULT_MULT_COUNT;
i411drivers/block/hd.cprintk("hd%c: reset multiple mode to %d\n",i+'a',
i414drivers/block/hd.chd_out(i,hd_info[i].sect,hd_info[i].sect,hd_info[i].head-1,
i415drivers/block/hd.chd_info[i].cyl,WIN_SPECIFY,&reset_hd);
i477drivers/block/hd.cint i, retries = 100000, msect = mult_count[dev], nsect;
i482drivers/block/hd.ci = (unsigned) inb_p(HD_STATUS);
i483drivers/block/hd.cif (i & BUSY_STAT)
i485drivers/block/hd.cif (!OK_STATUS(i))
i487drivers/block/hd.cif (i & DRQ_STAT)
i490drivers/block/hd.cdump_status("read_intr", i);
i505drivers/block/hd.ci = (CURRENT->nr_sectors -= nsect);
i514drivers/block/hd.cif (i > 0) {
i550drivers/block/hd.cint i;
i555drivers/block/hd.cif (OK_STATUS(i=inb_p(HD_STATUS))) {
i556drivers/block/hd.cif (i & DRQ_STAT) {
i564drivers/block/hd.cfor (i = CURRENT->nr_sectors; i > 0;){
i565drivers/block/hd.ci -= CURRENT->current_nr_sectors;
i577drivers/block/hd.cdump_status("multwrite_intr", i);
i584drivers/block/hd.cint i;
i590drivers/block/hd.ci = (unsigned) inb_p(HD_STATUS);
i591drivers/block/hd.cif (i & BUSY_STAT)
i593drivers/block/hd.cif (!OK_STATUS(i))
i595drivers/block/hd.cif ((CURRENT->nr_sectors <= 1) || (i & DRQ_STAT))
i598drivers/block/hd.cdump_status("write_intr", i);
i604drivers/block/hd.ci = --CURRENT->nr_sectors;
i607drivers/block/hd.cif (!i || (CURRENT->bh && !SUBSECTOR(i)))
i609drivers/block/hd.cif (i > 0) {
i957drivers/block/hd.cint i;
i1008drivers/block/hd.ci = NR_HD;
i1009drivers/block/hd.cwhile (i-- > 0) {
i1018drivers/block/hd.chd[i<<6].nr_sects = bios_info[i].head *
i1019drivers/block/hd.cbios_info[i].sect * bios_info[i].cyl;
i1020drivers/block/hd.chd_ident_info[i] = (struct hd_driveid *) kmalloc(512,GFP_KERNEL);
i1021drivers/block/hd.cspecial_op[i] = 1;
i1034drivers/block/hd.cfor(i=0;i<(MAX_HD << 6);i++) hd_blocksizes[i] = 1024;
i1087drivers/block/hd.cint i;
i1106drivers/block/hd.cfor (i=max_p - 1; i >=0 ; i--) {
i1107drivers/block/hd.csync_dev(major | start | i);
i1108drivers/block/hd.cinvalidate_inodes(major | start | i);
i1109drivers/block/hd.cinvalidate_buffers(major | start | i);
i1110drivers/block/hd.cgdev->part[start+i].start_sect = 0;
i1111drivers/block/hd.cgdev->part[start+i].nr_sects = 0;
i376drivers/block/ide-cd.cint i;
i432drivers/block/ide-cd.cfor (i=0; i<sizeof (failed_command->c); i++)
i433drivers/block/ide-cd.cprintk ("%02x ", failed_command->c[i]);
i1546drivers/block/ide-cd.cint stat, ntracks, i;
i1589drivers/block/ide-cd.cfor (i=0; i<=ntracks; i++)
i1593drivers/block/ide-cd.cbyte *adr = (byte *)&(toc->ent[i].lba);
i1594drivers/block/ide-cd.ctoc->ent[i].lba = msf_to_lba (adr[1], adr[2], adr[3]);
i1597drivers/block/ide-cd.cbyte_swap_long (&toc->ent[i].lba);
i400drivers/block/ide.cint i;
i406drivers/block/ide.ci = inb_p(0x40);
i407drivers/block/ide.ci |= inb(0x40) << 8;
i409drivers/block/ide.creturn (t - i);
i690drivers/block/ide.cint i = dev->mult_count ? dev->mult_count<<8 : 1<<8;
i691drivers/block/ide.cwhile (i-- > 0)      /* try to flush data */
i712drivers/block/ide.cint i;
i740drivers/block/ide.ci = (rq->nr_sectors -= nsect);
i743drivers/block/ide.cif (i > 0) {
i756drivers/block/ide.cint i;
i769drivers/block/ide.ci = --rq->nr_sectors;
i773drivers/block/ide.cif (i > 0) {
i823drivers/block/ide.cint i;
i837drivers/block/ide.cfor (i = rq->nr_sectors; i > 0;){
i838drivers/block/ide.ci -= rq->current_nr_sectors;
i1398drivers/block/ide.cunsigned int i, major, start, drive = DEVICE_NR(i_rdev);
i1419drivers/block/ide.cfor (i = 0; i < (1<<PARTN_BITS); i++) {
i1420drivers/block/ide.cunsigned int minor = start + i;
i2062drivers/block/ide.cint i, hwif, drive = next_drive++;
i2123drivers/block/ide.cfor (i=0; i++ < ints[0];)
i2124drivers/block/ide.cprintk("%s=%d%c",p[i-1],ints[i],i<ints[0]?',':'\n');
i2351drivers/block/ide.cint i;
i2353drivers/block/ide.cfor(i = 0; i < 3; i++) {
i451drivers/block/ll_rw_blk.cint i;
i473drivers/block/ll_rw_blk.ci = blksize_size[major][MINOR(bh[0]->b_dev)];
i474drivers/block/ll_rw_blk.cif (i)
i475drivers/block/ll_rw_blk.ccorrect_size = i;
i479drivers/block/ll_rw_blk.cfor (i = 0; i < nr; i++) {
i480drivers/block/ll_rw_blk.cif (bh[i] && bh[i]->b_size != correct_size) {
i483drivers/block/ll_rw_blk.ccorrect_size, bh[i]->b_size);
i500drivers/block/ll_rw_blk.cfor (i = 0; i < nr; i++) {
i501drivers/block/ll_rw_blk.cif (bh[i]) {
i502drivers/block/ll_rw_blk.cbh[i]->b_req = 1;
i503drivers/block/ll_rw_blk.cmake_request(major, rw, bh[i]);
i514drivers/block/ll_rw_blk.cfor (i = 0; i < nr; i++) {
i515drivers/block/ll_rw_blk.cif (bh[i])
i516drivers/block/ll_rw_blk.cbh[i]->b_dirt = bh[i]->b_uptodate = 0;
i523drivers/block/ll_rw_blk.cint i, j;
i545drivers/block/ll_rw_blk.cfor (j=0, i=0; i<nb;)
i547drivers/block/ll_rw_blk.cfor (; j < 8 && i < nb; j++, i++, buf += buffersize)
i560drivers/block/ll_rw_blk.creq[j]->sector = (b[i] * buffersize) >> 9;
i297drivers/block/mcd.cint i, st;
i316drivers/block/mcd.ci = updateToc();
i317drivers/block/mcd.cif (i < 0)
i318drivers/block/mcd.creturn i;  /* error reading TOC */
i333drivers/block/mcd.ci = getMcdStatus(MCD_STATUS_DELAY);
i345drivers/block/mcd.ci = getMcdStatus(MCD_STATUS_DELAY);
i366drivers/block/mcd.ci = mcdPlay(&mcd_Play);
i367drivers/block/mcd.cif (i < 0)
i403drivers/block/mcd.ci = mcdPlay(&mcd_Play);
i404drivers/block/mcd.cif (i < 0)
i417drivers/block/mcd.ci = getMcdStatus(MCD_STATUS_DELAY);
i449drivers/block/mcd.ci = mcdPlay(&mcd_Play);
i450drivers/block/mcd.cif (i < 0)
i558drivers/block/mcd.ci = getMcdStatus(MCD_STATUS_DELAY);
i559drivers/block/mcd.cif (i < 0)
i577drivers/block/mcd.ci = getMcdStatus(MCD_STATUS_DELAY);
i588drivers/block/mcd.ci = getMcdStatus(MCD_STATUS_DELAY);
i607drivers/block/mcd.cint i;
i608drivers/block/mcd.cfor (i = 0; i < MCD_BUF_SIZ && mcd_buf_bn[i] != bn; ++i)
i610drivers/block/mcd.cif (i < MCD_BUF_SIZ) {
i611drivers/block/mcd.cint offs = (i * 4 + (CURRENT -> sector & 3)) * 512;
i613drivers/block/mcd.cif (mcd_buf_out != i) {
i614drivers/block/mcd.cmcd_buf_out = i;
i615drivers/block/mcd.cif (mcd_buf_bn[i] != bn) {
i1001drivers/block/mcd.cint i = 4096;
i1004drivers/block/mcd.c} while ((inb(MCDPORT(1)) & MFL_STATUSorDATA) == MFL_STATUS && --i);
i1007drivers/block/mcd.ci = 4096;
i1010drivers/block/mcd.c} while ((inb(MCDPORT(1)) & MFL_STATUSorDATA) == MFL_STATUS && --i);
i1091drivers/block/mcd.cint i;
i1092drivers/block/mcd.cfor (i = 0; i < MCD_BUF_SIZ; ++i)
i1093drivers/block/mcd.cmcd_buf_bn[i] = -1;
i1348drivers/block/mcd.cint i;
i1354drivers/block/mcd.ci = inb(MCDPORT(0)) & 0xFF;
i1355drivers/block/mcd.creturn i;
i1579drivers/block/mcd.cint i, px;
i1584drivers/block/mcd.cfor (i = 0; i < MAX_TRACKS; i++)
i1585drivers/block/mcd.cToc[i].pointIndex = 0;
i1587drivers/block/mcd.ci = DiskInfo.last + 3;
i1621drivers/block/mcd.ci--;
i1624drivers/block/mcd.cif (i <= 0)
i1640drivers/block/mcd.cfor (i = 1; i <= DiskInfo.last; i++)
i1642drivers/block/mcd.ci, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex,
i1643drivers/block/mcd.cToc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame,
i1644drivers/block/mcd.cToc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame);
i1645drivers/block/mcd.cfor (i = 100; i < 103; i++)
i1647drivers/block/mcd.ci, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex,
i1648drivers/block/mcd.cToc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame,
i1649drivers/block/mcd.cToc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame);
i497drivers/block/mcdx.cint i;
i499drivers/block/mcdx.cif (-1 == (i = mcdx_transfer(
i512drivers/block/mcdx.cCURRENT->sector += i;
i513drivers/block/mcdx.cCURRENT->nr_sectors -= i;
i514drivers/block/mcdx.cCURRENT->buffer += (i * 512);
i778drivers/block/mcdx.cunsigned char i;
i781drivers/block/mcdx.cfor (i = 1; i < cmdlen; i++) printk(" 0x%02x", cmd[i]);
i859drivers/block/mcdx.cint i;
i863drivers/block/mcdx.cfor (i = 0; i < MCDX_NDRIVES; i++)  {
i864drivers/block/mcdx.cif (mcdx_stuffp[i]) {
i866drivers/block/mcdx.ci, mcdx_stuffp[i]));
i881drivers/block/mcdx.cint i;
i885drivers/block/mcdx.cfor (i = 0; i < MCDX_NDRIVES; i++) {
i887drivers/block/mcdx.cstuffp = mcdx_stuffp[i];
i896drivers/block/mcdx.cmcdx_stuffp[i] = NULL;
i1055drivers/block/mcdx.cint i;
i1057drivers/block/mcdx.cfor (i = 100; i; i--) (void) inb((unsigned int) stuffp->rreg_status);
i522drivers/block/optcd.cint i;
i544drivers/block/optcd.cfor (i = 1; i <= DiskInfo.last + 1; i++)
i547drivers/block/optcd.ci, Toc[i].ctrl_addr,
i548drivers/block/optcd.cToc[i].track,
i549drivers/block/optcd.cToc[i].pointIndex,
i550drivers/block/optcd.cToc[i].trackTime.min,
i551drivers/block/optcd.cToc[i].trackTime.sec,
i552drivers/block/optcd.cToc[i].trackTime.frame,
i553drivers/block/optcd.cToc[i].diskTime.min,
i554drivers/block/optcd.cToc[i].diskTime.sec,
i555drivers/block/optcd.cToc[i].diskTime.frame);
i556drivers/block/optcd.cfor (i = 100; i < 103; i++)
i559drivers/block/optcd.ci, Toc[i].ctrl_addr,
i560drivers/block/optcd.cToc[i].track,
i561drivers/block/optcd.cToc[i].pointIndex,
i562drivers/block/optcd.cToc[i].trackTime.min,
i563drivers/block/optcd.cToc[i].trackTime.sec,
i564drivers/block/optcd.cToc[i].trackTime.frame,
i565drivers/block/optcd.cToc[i].diskTime.min,
i566drivers/block/optcd.cToc[i].diskTime.sec,
i567drivers/block/optcd.cToc[i].diskTime.frame);
i604drivers/block/optcd.cint i;
i608drivers/block/optcd.cfor (i = 0; i < OPT_BUF_SIZ; i++)
i609drivers/block/optcd.copt_buf_bn[i] = OPT_NOBUF;
i625drivers/block/optcd.cint i, offs, nr_sectors;
i626drivers/block/optcd.cfor (i = 0; i < OPT_BUF_SIZ && opt_buf_bn[i] != bn; ++i);
i628drivers/block/optcd.cprintk("optcd: found %d\n", i);
i630drivers/block/optcd.cif (i >= OPT_BUF_SIZ) {
i634drivers/block/optcd.coffs = (i * 4 + (CURRENT -> sector & 3)) * 512;
i636drivers/block/optcd.cif (opt_buf_out != i) {
i637drivers/block/optcd.copt_buf_out = i;
i638drivers/block/optcd.cif (opt_buf_bn[i] != bn) {
i1294drivers/block/optcd.cint count, i, ch;
i1300drivers/block/optcd.cfor (i = 0, ch = -1; count > 0; count--) {
i1303drivers/block/optcd.cif (i < 99)
i1304drivers/block/optcd.cdevname[i++] = ch;
i1306drivers/block/optcd.cdevname[i] = '\0';
i80drivers/block/ramdisk.cint  i;
i91drivers/block/ramdisk.cfor (i=0; i < length; i++)
i94drivers/block/ramdisk.cfor(i=0;i<2;i++) rd_blocksizes[i] = 1024;
i115drivers/block/ramdisk.cint    i = 1;
i190drivers/block/ramdisk.ci++;
i731drivers/block/sbpcd.cstatic void mark_timeout_delay(u_long i)
i737drivers/block/sbpcd.cstatic void mark_timeout_data(u_long i)
i744drivers/block/sbpcd.cstatic void mark_timeout_audio(u_long i)
i818drivers/block/sbpcd.cstatic INLINE u_char swap_nibbles(u_char i)
i820drivers/block/sbpcd.creturn ((i<<4)|(i>>4));
i823drivers/block/sbpcd.cstatic INLINE u_char byt2bcd(u_char i)
i825drivers/block/sbpcd.creturn (((i/10)<<4)+i%10);
i836drivers/block/sbpcd.cint i;
i839drivers/block/sbpcd.ci=(msf.c[2] * CD_SECS + msf.c[1]) * CD_FRAMES + msf.c[0] - CD_BLOCK_OFFSET;
i840drivers/block/sbpcd.cif (i<0) return (0);
i841drivers/block/sbpcd.creturn (i);
i849drivers/block/sbpcd.cint i;
i851drivers/block/sbpcd.ci=(msf[0] * CD_SECS + msf[1]) * CD_FRAMES + msf[2] - CD_BLOCK_OFFSET;
i852drivers/block/sbpcd.cif (i<0) return (0);
i853drivers/block/sbpcd.creturn (i);
i894drivers/block/sbpcd.cint i;
i896drivers/block/sbpcd.cfor (i=0;i<10;i++) drvcmd[i]=0;
i902drivers/block/sbpcd.cint i;
i906drivers/block/sbpcd.cfor (i=maxtim_data;i!=0;i--) inb(CDi_status);
i909drivers/block/sbpcd.cfor (i=maxtim02;i!=0;i--) inb(CDi_status);
i913drivers/block/sbpcd.cfor (i=maxtim_data;i!=0;i--) inb(CDi_status);
i920drivers/block/sbpcd.cint i,j;
i923drivers/block/sbpcd.cfor(timeout = jiffies + 1000, i=maxtim_data; timeout > jiffies; )
i925drivers/block/sbpcd.cfor ( ;i!=0;i--)
i933drivers/block/sbpcd.ci = 1;
i937drivers/block/sbpcd.cfor(i=maxtim16;i!=0;i--)
i945drivers/block/sbpcd.cfor(timeout = jiffies + 1000, i=maxtim_data; timeout > jiffies; )
i947drivers/block/sbpcd.cfor ( ;i!=0;i--)
i955drivers/block/sbpcd.ci = 1;
i966drivers/block/sbpcd.cint i;
i968drivers/block/sbpcd.ci=inb(CDi_status);
i969drivers/block/sbpcd.cif (i&s_not_data_ready) return (0);
i975drivers/block/sbpcd.cint i;
i977drivers/block/sbpcd.ci=inb(CDi_status);
i978drivers/block/sbpcd.cif (i&s_not_result_ready) return (0);
i984drivers/block/sbpcd.cint i;
i986drivers/block/sbpcd.ci=inb(CDi_status);
i987drivers/block/sbpcd.cif (i&s_attention) return (1);
i995drivers/block/sbpcd.cint i,j,st=0;
i1003drivers/block/sbpcd.cfor (i=0;i<response_count;i++)
i1012drivers/block/sbpcd.cmsg(DBG_SEQ,"ResponseInfo: not_result_ready (got %d of %d bytes).\n", i, response_count);
i1015drivers/block/sbpcd.cinfobuf[i]=inb(CDi_info);
i1019drivers/block/sbpcd.cfor (i=0,timeout=jiffies+100;i<response_count;i++) 
i1033drivers/block/sbpcd.cinfobuf[i]=inb(CDi_info);
i1039drivers/block/sbpcd.cinfobuf[i++]=inb(CDi_info);
i1041drivers/block/sbpcd.cj=i-response_count;
i1044drivers/block/sbpcd.cfor (j=0;j<i;j++)
i1047drivers/block/sbpcd.cmsg(DBG_CMD,"ResponseInfo:%s (%d,%d)\n",msgbuf,response_count,i);
i1048drivers/block/sbpcd.cj=response_count-i;
i1050drivers/block/sbpcd.celse return (i);
i1106drivers/block/sbpcd.cint i;
i1114drivers/block/sbpcd.ci=cmd_out_T();
i1115drivers/block/sbpcd.cif (i>=0) i=infobuf[0];
i1118drivers/block/sbpcd.cmsg(DBG_TEA,"get_state_T error %d\n", i);
i1119drivers/block/sbpcd.creturn (i);
i1121drivers/block/sbpcd.cif (i>=0)
i1151drivers/block/sbpcd.cint i,j;
i1167drivers/block/sbpcd.ci=inb(CDi_status);
i1168drivers/block/sbpcd.cif (!(i&s_not_result_ready)) break;
i1181drivers/block/sbpcd.ci=inb(CDi_status);
i1182drivers/block/sbpcd.cif (!(i&s_not_result_ready)) break;
i1197drivers/block/sbpcd.ci=inb(CDi_info);
i1198drivers/block/sbpcd.cmsg(DBG_STA,"ResponseStatus: response %02X.\n", i);
i1199drivers/block/sbpcd.cEvaluateStatus(i);
i1203drivers/block/sbpcd.cmsg(DBG_STA,"status_bits=%02X, i=%02X\n",D_S[d].status_bits,i);
i1207drivers/block/sbpcd.creturn (i);
i1213drivers/block/sbpcd.cint i;
i1221drivers/block/sbpcd.cif (!fam0L_drive) for (i=0;i<6;i++) OUT(CDo_command,0);
i1227drivers/block/sbpcd.cint i;
i1257drivers/block/sbpcd.ci=cmd_out();
i1259drivers/block/sbpcd.cmsg(DBG_ERR,"cc_ReadError: cmd_out(CMDx_READ_ERR) returns %d (%02X)\n",i,i);
i1260drivers/block/sbpcd.cif (i<0) return (i);
i1261drivers/block/sbpcd.cif (fam0_drive) i=1;
i1262drivers/block/sbpcd.celse i=2;
i1263drivers/block/sbpcd.cD_S[d].error_byte=infobuf[i];
i1264drivers/block/sbpcd.cmsg(DBG_ERR,"cc_ReadError: infobuf[%d] is %d (%02X)\n",i,D_S[d].error_byte,D_S[d].error_byte);
i1265drivers/block/sbpcd.ci=sta2err(infobuf[i]);
i1266drivers/block/sbpcd.creturn (i);
i1275drivers/block/sbpcd.cint i, j, l, ntries;
i1281drivers/block/sbpcd.cfor (i=0;i<10;i++) sprintf(&msgbuf[i*3]," %02X",drvcmd[i]);
i1282drivers/block/sbpcd.cmsgbuf[i*3]=0;
i1287drivers/block/sbpcd.ci=inb(CDi_status);
i1288drivers/block/sbpcd.cif (!(i&s_not_result_ready))
i1292drivers/block/sbpcd.ci=inb(CDi_status);
i1296drivers/block/sbpcd.cwhile (!(i&s_not_result_ready));
i1298drivers/block/sbpcd.cfor (i=0;i<10;i++) OUT(CDo_command,drvcmd[i]);
i1306drivers/block/sbpcd.ci=inb(CDi_status);
i1307drivers/block/sbpcd.cif (!(i&s_not_data_ready)) /* f.e. CMDT_DISKINFO */
i1317drivers/block/sbpcd.ci=inb(CDi_status);
i1319drivers/block/sbpcd.cwhile (!(i&s_not_data_ready));
i1330drivers/block/sbpcd.ci=inb(CDi_data);
i1332drivers/block/sbpcd.ci=inb(CDi_status);
i1334drivers/block/sbpcd.cwhile (!(i&s_not_data_ready));
i1339drivers/block/sbpcd.ci=inb(CDi_status);
i1340drivers/block/sbpcd.cif (!(i&s_not_result_ready))
i1347drivers/block/sbpcd.ci=inb(CDi_status);
i1349drivers/block/sbpcd.cwhile (!(i&s_not_result_ready));
i1389drivers/block/sbpcd.cint i=0;
i1395drivers/block/sbpcd.cfor (i=0;i<7;i++)
i1396drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", drvcmd[i]);
i1397drivers/block/sbpcd.cmsgbuf[i*3]=0;
i1400drivers/block/sbpcd.cfor (i=0;i<7;i++) OUT(CDo_command,drvcmd[i]);
i1412drivers/block/sbpcd.celse i=ResponseInfo();
i1413drivers/block/sbpcd.cif (i<0) return (i);
i1418drivers/block/sbpcd.ci=CDi_stat_loop();
i1419drivers/block/sbpcd.cif ((i<0)||!(i&s_attention)) return (-8);
i1431drivers/block/sbpcd.ci=ResponseStatus();
i1433drivers/block/sbpcd.cif (i<0) return (i);
i1438drivers/block/sbpcd.cif ((flags_cmd_out&f_bit1)&&(i&p_success)) goto LOC_232;
i1447drivers/block/sbpcd.ci=cc_ReadError();
i1449drivers/block/sbpcd.cmsg(DBG_000,"cmd_out: cc_ReadError=%d\n", i);
i1450drivers/block/sbpcd.creturn (i);
i1455drivers/block/sbpcd.cint i;
i1502drivers/block/sbpcd.ci=cmd_out();
i1503drivers/block/sbpcd.creturn (i);
i1508drivers/block/sbpcd.cint i;
i1536drivers/block/sbpcd.ci=cmd_out();
i1538drivers/block/sbpcd.creturn (i);
i1543drivers/block/sbpcd.cint i;
i1570drivers/block/sbpcd.ci=cmd_out();
i1571drivers/block/sbpcd.creturn (i);
i1576drivers/block/sbpcd.cint i;
i1582drivers/block/sbpcd.ci=cmd_out_T();
i1583drivers/block/sbpcd.creturn (i);
i1588drivers/block/sbpcd.cint i;
i1602drivers/block/sbpcd.ci=cmd_out_T();
i1603drivers/block/sbpcd.creturn (i);
i1608drivers/block/sbpcd.cint i, j;
i1610drivers/block/sbpcd.ci=cc_get_mode_T();
i1611drivers/block/sbpcd.cif (i<0) return (i);
i1612drivers/block/sbpcd.cfor (i=0;i<10;i++)
i1613drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
i1614drivers/block/sbpcd.cmsgbuf[i*3]=0;
i1626drivers/block/sbpcd.ci=cc_get_mode_T();
i1627drivers/block/sbpcd.cfor (i=0;i<10;i++)
i1628drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
i1629drivers/block/sbpcd.cmsgbuf[i*3]=0;
i1636drivers/block/sbpcd.cint i;
i1669drivers/block/sbpcd.ci=cmd_out();
i1670drivers/block/sbpcd.creturn (i);
i1675drivers/block/sbpcd.cint i;
i1772drivers/block/sbpcd.ci=channel1;
i1774drivers/block/sbpcd.cchannel0=i;
i1775drivers/block/sbpcd.ci=volume1;
i1777drivers/block/sbpcd.cvolume0=i;
i1825drivers/block/sbpcd.ci=cc_prep_mode_T();
i1826drivers/block/sbpcd.cif (i<0) return (i);
i1831drivers/block/sbpcd.ci=cmd_out();
i1832drivers/block/sbpcd.cif (i<0) return (i);
i1840drivers/block/sbpcd.cint i;
i1846drivers/block/sbpcd.ci=cmd_out();
i1847drivers/block/sbpcd.creturn (i);
i1852drivers/block/sbpcd.cint i;
i1862drivers/block/sbpcd.ci=cmd_out();
i1868drivers/block/sbpcd.ci=cmd_out();
i1876drivers/block/sbpcd.cfor (i=1;i<10;i++) OUT(CDo_command,0);
i1888drivers/block/sbpcd.ci=GetStatus();
i1889drivers/block/sbpcd.cif (i<0) return i;
i1897drivers/block/sbpcd.cint i, speed;
i1906drivers/block/sbpcd.ci=cc_SetSpeed(speed,0,0);
i1907drivers/block/sbpcd.creturn (i);
i1912drivers/block/sbpcd.cint i;
i1914drivers/block/sbpcd.ci=cc_DriveReset();
i1915drivers/block/sbpcd.cif (i<0) return (-22);
i1918drivers/block/sbpcd.ci=GetStatus();
i1919drivers/block/sbpcd.cif ((i<0)&&(i!=-615)) return (-2); /* i!=-615 is from sta2err */
i1929drivers/block/sbpcd.ci=DiskInfo();
i1930drivers/block/sbpcd.cif (i<0) return (-23);
i1937drivers/block/sbpcd.cint i, j, n;
i1945drivers/block/sbpcd.ci=msf2blk(pos_audio_start);
i1946drivers/block/sbpcd.cn=msf2blk(pos_audio_end)+1-i;
i1947drivers/block/sbpcd.cdrvcmd[1]=(i>>16)&0x00FF;
i1948drivers/block/sbpcd.cdrvcmd[2]=(i>>8)&0x00FF;
i1949drivers/block/sbpcd.cdrvcmd[3]=i&0x00FF;
i1989drivers/block/sbpcd.ci=cmd_out();
i1990drivers/block/sbpcd.creturn (i);
i1995drivers/block/sbpcd.cint i;
i2028drivers/block/sbpcd.ci=cmd_out();
i2029drivers/block/sbpcd.creturn (i);
i2034drivers/block/sbpcd.cint i;
i2064drivers/block/sbpcd.ci=cmd_out();
i2066drivers/block/sbpcd.creturn (i);
i2072drivers/block/sbpcd.cint i,j;
i2077drivers/block/sbpcd.ci=cc_LockDoor(0);
i2081drivers/block/sbpcd.cwhile ((i<0)&&(j));
i2082drivers/block/sbpcd.cif (i<0)
i2092drivers/block/sbpcd.cint i,j;
i2097drivers/block/sbpcd.ci=cc_LockDoor(1);
i2101drivers/block/sbpcd.cwhile ((i<0)&&(j));
i2108drivers/block/sbpcd.ci=cc_LockDoor(1);
i2112drivers/block/sbpcd.cwhile ((i<0)&&(j));
i2114drivers/block/sbpcd.creturn (i);
i2119drivers/block/sbpcd.cint i;
i2150drivers/block/sbpcd.ci=cmd_out();
i2152drivers/block/sbpcd.creturn (i);
i2157drivers/block/sbpcd.cint i,j;
i2196drivers/block/sbpcd.ci=cmd_out();
i2197drivers/block/sbpcd.cif (i<0) return (i);
i2198drivers/block/sbpcd.cfor (i=0;i<response_count;i++)
i2200drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
i2201drivers/block/sbpcd.cmsgbuf[i*3]=0;
i2217drivers/block/sbpcd.cif (fam0L_drive) i=5;
i2218drivers/block/sbpcd.celse if (fam12_drive) i=4;
i2219drivers/block/sbpcd.celse if (famT_drive) i=8;
i2220drivers/block/sbpcd.cD_S[d].SubQ_run_tot=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */
i2221drivers/block/sbpcd.ci=7;
i2222drivers/block/sbpcd.cif (fam0L_drive) i=9;
i2223drivers/block/sbpcd.celse if (fam12_drive) i=7;
i2224drivers/block/sbpcd.celse if (famT_drive) i=4;
i2225drivers/block/sbpcd.cD_S[d].SubQ_run_trk=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */
i2226drivers/block/sbpcd.cD_S[d].SubQ_whatisthis=infobuf[i+3];
i2233drivers/block/sbpcd.cint i;
i2257drivers/block/sbpcd.ci=cmd_out();
i2258drivers/block/sbpcd.cif (i<0) return (i);
i2259drivers/block/sbpcd.ci=0;
i2260drivers/block/sbpcd.cif (fam1_drive) D_S[d].sense_byte=infobuf[i++];
i2266drivers/block/sbpcd.ci=2;
i2268drivers/block/sbpcd.cD_S[d].frame_size=make16(infobuf[i],infobuf[i+1]);
i2269drivers/block/sbpcd.cfor (i=0;i<response_count;i++)
i2270drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
i2271drivers/block/sbpcd.cmsgbuf[i*3]=0;
i2281drivers/block/sbpcd.cint i;
i2319drivers/block/sbpcd.ci=cmd_out();
i2320drivers/block/sbpcd.cif (i<0) return (i);
i2327drivers/block/sbpcd.cint i;
i2362drivers/block/sbpcd.ci=cc_get_mode_T();
i2363drivers/block/sbpcd.cif (i<0) return (i);
i2367drivers/block/sbpcd.ci=cmd_out();
i2368drivers/block/sbpcd.cif (i<0) return (i);
i2461drivers/block/sbpcd.cint i, j;
i2495drivers/block/sbpcd.ci=cmd_out();
i2496drivers/block/sbpcd.cif (i>=0) break;
i2497drivers/block/sbpcd.cmsg(DBG_000,"cc_ReadCapacity: cmd_out: err %d\n", i);
i2500drivers/block/sbpcd.cif (j==0) return (i);
i2518drivers/block/sbpcd.cint i;
i2558drivers/block/sbpcd.ci=cmd_out();
i2559drivers/block/sbpcd.cif (i<0) return (i);
i2587drivers/block/sbpcd.ci=cmd_out();
i2588drivers/block/sbpcd.cif (i<0) return (i);
i2600drivers/block/sbpcd.ci=cmd_out();
i2601drivers/block/sbpcd.cif (i<0) return (i);
i2631drivers/block/sbpcd.cint i;
i2670drivers/block/sbpcd.ci=cmd_out();
i2671drivers/block/sbpcd.cif (i<0) return (i);
i2675drivers/block/sbpcd.ci=1;
i2677drivers/block/sbpcd.celse if (fam2_drive) i=0;
i2680drivers/block/sbpcd.ci=5;
i2682drivers/block/sbpcd.cD_S[d].TocEnt_ctl_adr=swap_nibbles(infobuf[i++]);
i2685drivers/block/sbpcd.cD_S[d].TocEnt_number=infobuf[i++];
i2686drivers/block/sbpcd.cD_S[d].TocEnt_format=infobuf[i];
i2689drivers/block/sbpcd.cif (fam1_drive) i=4;
i2690drivers/block/sbpcd.celse if (fam0L_drive) i=5;
i2691drivers/block/sbpcd.celse if (fam2_drive) i=2;
i2692drivers/block/sbpcd.celse if (famT_drive) i=9;
i2693drivers/block/sbpcd.cD_S[d].TocEnt_address=make32(make16(0,infobuf[i]),
i2694drivers/block/sbpcd.cmake16(infobuf[i+1],infobuf[i+2]));
i2704drivers/block/sbpcd.cint i;
i2717drivers/block/sbpcd.ci=cmd_out();
i2718drivers/block/sbpcd.creturn (i);
i2723drivers/block/sbpcd.cint i;
i2727drivers/block/sbpcd.cfor (i=0;i<7;i++)
i2729drivers/block/sbpcd.cif (fam1_drive) D_S[d].UPC_buf[i]=swap_nibbles(*p++);
i2732drivers/block/sbpcd.cD_S[d].UPC_buf[i]=((*p++)<<4)&0xFF;
i2733drivers/block/sbpcd.cD_S[d].UPC_buf[i] |= *p++;
i2750drivers/block/sbpcd.cint i;
i2797drivers/block/sbpcd.ci=cmd_out();
i2798drivers/block/sbpcd.cif (i<0)
i2800drivers/block/sbpcd.cmsg(DBG_000,"cc_ReadUPC cmd_out: err %d\n", i);
i2801drivers/block/sbpcd.creturn (i);
i2807drivers/block/sbpcd.ci=cc_ReadPacket();
i2808drivers/block/sbpcd.cif (i<0)
i2810drivers/block/sbpcd.cmsg(DBG_000,"cc_ReadUPC ReadPacket: err %d\n", i);
i2811drivers/block/sbpcd.creturn (i);
i2817drivers/block/sbpcd.cfor (i=0;i<(fam1_drive?8:16);i++)
i2820drivers/block/sbpcd.cchecksum |= infobuf[i];
i2822drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
i2824drivers/block/sbpcd.cmsgbuf[i*3]=0;
i2831drivers/block/sbpcd.cif (fam1_drive) i=0;
i2832drivers/block/sbpcd.celse i=2;
i2833drivers/block/sbpcd.cif ((infobuf[i]&0x80)!=0)
i2835drivers/block/sbpcd.cconvert_UPC(&infobuf[i]);
i2838drivers/block/sbpcd.cfor (i=0;i<7;i++)
i2839drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", D_S[d].UPC_buf[i]);
i2840drivers/block/sbpcd.csprintf(&msgbuf[i*3], " (%02X)", D_S[d].UPC_ctl_adr);
i2841drivers/block/sbpcd.cmsgbuf[i*3+5]=0;
i2849drivers/block/sbpcd.cint i;
i2861drivers/block/sbpcd.ci=cmd_out();
i2862drivers/block/sbpcd.cif (i<0) return (i);
i2877drivers/block/sbpcd.ci=cmd_out();
i2878drivers/block/sbpcd.cif (i<0) return (i);
i2890drivers/block/sbpcd.ci=cmd_out();
i2891drivers/block/sbpcd.cif (i<0) return (i);
i2894drivers/block/sbpcd.cfor (i=0;i<response_count;i++)
i2895drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
i2896drivers/block/sbpcd.cmsgbuf[i*3]=0;
i2910drivers/block/sbpcd.cint i;
i2930drivers/block/sbpcd.ci=cmd_out(); /* which buffer to use? */
i2931drivers/block/sbpcd.creturn (i);
i2937drivers/block/sbpcd.cint i=0;
i2942drivers/block/sbpcd.cfor (i=0;i<=1000;i++) printk(".");
i2954drivers/block/sbpcd.ci=inb(CDi_status);
i2980drivers/block/sbpcd.cint i;
i2988drivers/block/sbpcd.ci=do_cmd(f_putcmd|f_lopsta|f_getsta|f_ResponseStatus);
i2993drivers/block/sbpcd.ci=do_cmd(f_putcmd);
i2996drivers/block/sbpcd.creturn (i);
i3002drivers/block/sbpcd.cint i;
i3008drivers/block/sbpcd.cfor (i=0;i<12;i++)
i3009drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
i3010drivers/block/sbpcd.cmsgbuf[i*3]=0;
i3012drivers/block/sbpcd.cfor (i=0;i<12;i++)
i3013drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %c ", infobuf[i]);
i3014drivers/block/sbpcd.cmsgbuf[i*3]=0;
i3020drivers/block/sbpcd.cint i, j, l;
i3033drivers/block/sbpcd.ci=cmd_out();
i3034drivers/block/sbpcd.cif (i<0) msg(DBG_INI,"CMD0_READERR returns %d (ok anyway).\n",i);
i3037drivers/block/sbpcd.cfor (i=0;i<12;i++) infobuf[i]=0;
i3041drivers/block/sbpcd.ci=cmd_out();
i3042drivers/block/sbpcd.cif (i<-1) msg(DBG_INI,"CMD0_READ_VER returns %d\n",i);
i3043drivers/block/sbpcd.cif (i==-11) teac_possible++;
i3045drivers/block/sbpcd.cfor (i=0;i<12;i++) j+=infobuf[i];
i3048drivers/block/sbpcd.cfor (i=0;i<12;i++)
i3049drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
i3050drivers/block/sbpcd.cmsgbuf[i*3]=0;
i3053drivers/block/sbpcd.cfor (i=0;i<12;i++)
i3054drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %c ", infobuf[i]);
i3055drivers/block/sbpcd.cmsgbuf[i*3]=0;
i3059drivers/block/sbpcd.cfor (i=0;i<4;i++) if (infobuf[i]!=family1[i]) break;
i3060drivers/block/sbpcd.cif (i==4)
i3066drivers/block/sbpcd.cD_S[d].drive_model[4]=infobuf[i++];
i3067drivers/block/sbpcd.cD_S[d].drive_model[5]=infobuf[i++];
i3073drivers/block/sbpcd.cfor (i=0;i<8;i++) if (infobuf[i]!=family0[i]) break;
i3074drivers/block/sbpcd.cif (i==8)
i3088drivers/block/sbpcd.cfor (i=0;i<8;i++) if (infobuf[i]!=familyL[i]) break;
i3089drivers/block/sbpcd.cif (i==8)
i3104drivers/block/sbpcd.ci=cmd_out();
i3105drivers/block/sbpcd.cif (i<0) msg(DBG_INI,"CMD2_READERR returns %d (ok anyway).\n",i);
i3106drivers/block/sbpcd.cif (i<0) msg(DBG_000,"CMD2_READERR returns %d (ok anyway).\n",i);
i3109drivers/block/sbpcd.cfor (i=0;i<12;i++) infobuf[i]=0;
i3119drivers/block/sbpcd.ci=cmd_out();
i3120drivers/block/sbpcd.cif (i<0) msg(DBG_INI,"CMD2_READ_VER returns %d\n",i);
i3121drivers/block/sbpcd.cif (i==-7) teac_possible++;
i3123drivers/block/sbpcd.cfor (i=0;i<12;i++) j+=infobuf[i];
i3126drivers/block/sbpcd.cfor (i=0;i<12;i++)
i3127drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
i3128drivers/block/sbpcd.cmsgbuf[i*3]=0;
i3130drivers/block/sbpcd.cfor (i=0;i<12;i++)
i3131drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %c ", infobuf[i]);
i3132drivers/block/sbpcd.cmsgbuf[i*3]=0;
i3135drivers/block/sbpcd.cif (i>=0)
i3137drivers/block/sbpcd.cfor (i=0;i<5;i++) if (infobuf[i]!=family2[i]) break;
i3138drivers/block/sbpcd.cif (i==5)
i3145drivers/block/sbpcd.cD_S[d].drive_model[5]=infobuf[i++];
i3146drivers/block/sbpcd.cD_S[d].drive_model[6]=infobuf[i++];
i3167drivers/block/sbpcd.cfor (i=0;i<9;i++) OUT(CDo_command,0);
i3172drivers/block/sbpcd.ci=inb(CDi_status);
i3173drivers/block/sbpcd.cmsg(DBG_TEA,"TEAC CDi_status: %02X.\n",i);
i3175drivers/block/sbpcd.cif (i&s_not_result_ready) continue; /* drive not present or ready */
i3177drivers/block/sbpcd.ci=inb(CDi_info);
i3178drivers/block/sbpcd.cmsg(DBG_TEA,"TEAC CDi_info: %02X.\n",i);
i3179drivers/block/sbpcd.cif (i==0x55) break; /* drive found */
i3181drivers/block/sbpcd.cif (i==0x55) break; /* drive found */
i3183drivers/block/sbpcd.cif (i==0x55) /* drive found */
i3191drivers/block/sbpcd.cfor (i=0;i<12;i++) infobuf[i]=0;
i3192drivers/block/sbpcd.ci=cmd_out_T();
i3193drivers/block/sbpcd.cif (i!=0) msg(DBG_TEA,"cmd_out_T(CMDT_READ_VER) returns %d.\n",i);
i3194drivers/block/sbpcd.cfor (i=1;i<6;i++) if (infobuf[i]!=familyT[i-1]) break;
i3195drivers/block/sbpcd.cif (i==6)
i3212drivers/block/sbpcd.cfor (j=0;j<4;j++) D_S[d].firmware_version[j]=infobuf[i+j];
i3282drivers/block/sbpcd.cstatic void switch_drive(int i)
i3284drivers/block/sbpcd.cd=i;
i3286drivers/block/sbpcd.cmsg(DBG_DID,"drive %d (ID=%d) activated.\n", i, D_S[d].drv_id);
i3298drivers/block/sbpcd.cint i, j, k;
i3311drivers/block/sbpcd.cfor (i=10;i>0;i--) OUT(port+0,0);
i3315drivers/block/sbpcd.cfor (i=10000;i>0;i--)
i3322drivers/block/sbpcd.cfor (i=0;i<N_RESPO;i++)
i3323drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", response[i]);
i3324drivers/block/sbpcd.cmsgbuf[i*3]=0;
i3327drivers/block/sbpcd.cfor (i=10;i>0;i--) OUT(port+0,0);
i3331drivers/block/sbpcd.cfor (i=10000;i>0;i--)
i3338drivers/block/sbpcd.cfor (i=0;i<N_RESPO;i++)
i3339drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", response[i]);
i3340drivers/block/sbpcd.cmsgbuf[i*3]=0;
i3351drivers/block/sbpcd.cfor (i=10;i>0;i--) OUT(port+0,0);
i3355drivers/block/sbpcd.cfor (i=1000000;i>0;i--)
i3362drivers/block/sbpcd.cfor (i=0;i<N_RESPO;i++)
i3363drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", response[i]);
i3364drivers/block/sbpcd.cmsgbuf[i*3]=0;
i3368drivers/block/sbpcd.cfor (i=10;i>0;i--) OUT(port+0,0);
i3372drivers/block/sbpcd.cfor (i=1000000;i>0;i--)
i3379drivers/block/sbpcd.cfor (i=0;i<N_RESPO;i++)
i3380drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", response[i]);
i3381drivers/block/sbpcd.cmsgbuf[i*3]=0;
i3400drivers/block/sbpcd.cint i, j;
i3412drivers/block/sbpcd.ci=check_version();
i3413drivers/block/sbpcd.cif (i<0) msg(DBG_INI,"check_version returns %d.\n",i);
i3556drivers/block/sbpcd.cint i;
i3558drivers/block/sbpcd.ci=msf2blk(D_S[d].pos_audio_end)-1;
i3559drivers/block/sbpcd.cif (i<0) return (-1);
i3560drivers/block/sbpcd.ci=cc_Seek(i,0);
i3561drivers/block/sbpcd.creturn (i);
i3567drivers/block/sbpcd.cint i, j;
i3572drivers/block/sbpcd.ci=cc_ReadTocEntry(j);
i3573drivers/block/sbpcd.cif (i<0)
i3575drivers/block/sbpcd.cmsg(DBG_INF,"cc_ReadTocEntry(%d) returns %d.\n",j,i);
i3576drivers/block/sbpcd.creturn (i);
i3598drivers/block/sbpcd.cint i, j;
i3608drivers/block/sbpcd.ci=SetSpeed();
i3609drivers/block/sbpcd.cif (i<0)
i3611drivers/block/sbpcd.cmsg(DBG_INF,"DiskInfo: SetSpeed returns %d\n", i);
i3614drivers/block/sbpcd.ci=cc_ModeSense();
i3615drivers/block/sbpcd.cif (i<0)
i3617drivers/block/sbpcd.cmsg(DBG_INF,"DiskInfo: cc_ModeSense returns %d\n", i);
i3620drivers/block/sbpcd.ci=cc_ReadCapacity();
i3621drivers/block/sbpcd.cif (i>=0) break;
i3622drivers/block/sbpcd.cmsg(DBG_INF,"DiskInfo: ReadCapacity #%d returns %d\n", j, i);
i3623drivers/block/sbpcd.ci=cc_DriveReset();
i3627drivers/block/sbpcd.ci=cc_ReadTocDescr();
i3628drivers/block/sbpcd.cif (i<0)
i3630drivers/block/sbpcd.cmsg(DBG_INF,"DiskInfo: ReadTocDescr returns %d\n", i);
i3631drivers/block/sbpcd.creturn (i);
i3633drivers/block/sbpcd.ci=ReadToC();
i3634drivers/block/sbpcd.cif (i<0)
i3636drivers/block/sbpcd.cmsg(DBG_INF,"DiskInfo: ReadToC returns %d\n", i);
i3637drivers/block/sbpcd.creturn (i);
i3639drivers/block/sbpcd.ci=cc_CheckMultiSession();
i3640drivers/block/sbpcd.cif (i<0)
i3642drivers/block/sbpcd.cmsg(DBG_INF,"DiskInfo: cc_CheckMultiSession returns %d\n", i);
i3643drivers/block/sbpcd.creturn (i);
i3647drivers/block/sbpcd.ci=cc_ReadTocEntry(D_S[d].n_first_track);
i3648drivers/block/sbpcd.cif (i<0)
i3650drivers/block/sbpcd.cmsg(DBG_INF,"DiskInfo: cc_ReadTocEntry(1) returns %d\n", i);
i3651drivers/block/sbpcd.creturn (i);
i3653drivers/block/sbpcd.ci=cc_ReadUPC();
i3654drivers/block/sbpcd.cif (i<0) msg(DBG_INF,"DiskInfo: cc_ReadUPC returns %d\n", i);
i3673drivers/block/sbpcd.cint i;
i3677drivers/block/sbpcd.ci=inb(CDi_status);
i3678drivers/block/sbpcd.cif (i&s_attention) GetStatus();
i3689drivers/block/sbpcd.ci=check_allowed1(func,subfunc);
i3690drivers/block/sbpcd.cif (i<0) return (-2);
i3694drivers/block/sbpcd.ci=check_allowed3(func,subfunc);
i3695drivers/block/sbpcd.cif (i<0)
i3708drivers/block/sbpcd.ci=check_allowed1(func,subfunc);
i3709drivers/block/sbpcd.cif (i<0) return (-2);
i3717drivers/block/sbpcd.ci=check_allowed2(func,subfunc);
i3718drivers/block/sbpcd.cif (i<0) return (-2);
i3728drivers/block/sbpcd.ci=DiskInfo();
i3729drivers/block/sbpcd.cif (i<0)
i3733drivers/block/sbpcd.ci=check_allowed1(func,subfunc);
i3734drivers/block/sbpcd.cif (i<0) return (-2);
i3797drivers/block/sbpcd.cint i, st;
i3802drivers/block/sbpcd.ci=MINOR(inode->i_rdev);
i3803drivers/block/sbpcd.cif ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1))
i3808drivers/block/sbpcd.cif (d!=i) switch_drive(i);
i3816drivers/block/sbpcd.ci=DiskInfo();
i3817drivers/block/sbpcd.cif (i<0) return (-EIO);  /* error reading TOC */
i3821drivers/block/sbpcd.cmsg(DBG_IO2,"ioctl: device %d, request %04X\n",i,cmd);
i3826drivers/block/sbpcd.ci=sbpcd_dbg_ioctl(arg,1);
i3827drivers/block/sbpcd.creturn (i);
i3838drivers/block/sbpcd.cif (famL_drive) i=cc_ReadSubQ();
i3839drivers/block/sbpcd.celse i=cc_Pause_Resume(1);
i3840drivers/block/sbpcd.cif (i<0) return (-EIO);
i3841drivers/block/sbpcd.cif (famL_drive) i=cc_Pause_Resume(1);
i3842drivers/block/sbpcd.celse i=cc_ReadSubQ();
i3843drivers/block/sbpcd.cif (i<0) return (-EIO);
i3848drivers/block/sbpcd.ci=cc_Seek(D_S[d].pos_audio_start,1);
i3849drivers/block/sbpcd.cif (i<0) return (-EIO);
i3862drivers/block/sbpcd.ci=cc_PlayAudio(D_S[d].pos_audio_start,
i3864drivers/block/sbpcd.celse i=cc_Pause_Resume(3);
i3865drivers/block/sbpcd.cif (i<0) return (-EIO);
i3873drivers/block/sbpcd.ci=cc_Pause_Resume(1);
i3874drivers/block/sbpcd.cif (i<0) return (-EIO);
i3875drivers/block/sbpcd.ci=cc_ReadSubQ();
i3876drivers/block/sbpcd.cif (i<0) return (-EIO);
i3878drivers/block/sbpcd.ci=cc_Seek(D_S[d].pos_audio_start,1);
i3892drivers/block/sbpcd.ci=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end);
i3893drivers/block/sbpcd.cmsg(DBG_IOC,"ioctl: cc_PlayAudio returns %d\n",i);
i3895drivers/block/sbpcd.cif (i<0) return (-EIO);
i3923drivers/block/sbpcd.ci=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end);
i3925drivers/block/sbpcd.cif (i<0) return (-EIO);
i3944drivers/block/sbpcd.ci=tocentry.cdte_track;
i3945drivers/block/sbpcd.cif (i==CDROM_LEADOUT) i=D_S[d].n_last_track+1;
i3946drivers/block/sbpcd.celse if (i<D_S[d].n_first_track||i>D_S[d].n_last_track) return (-EINVAL);
i3947drivers/block/sbpcd.ctocentry.cdte_adr=D_S[d].TocBuffer[i].ctl_adr&0x0F;
i3948drivers/block/sbpcd.ctocentry.cdte_ctrl=(D_S[d].TocBuffer[i].ctl_adr>>4)&0x0F;
i3949drivers/block/sbpcd.ctocentry.cdte_datamode=D_S[d].TocBuffer[i].format;
i3952drivers/block/sbpcd.ctocentry.cdte_addr.msf.minute=(D_S[d].TocBuffer[i].address>>16)&0x00FF;
i3953drivers/block/sbpcd.ctocentry.cdte_addr.msf.second=(D_S[d].TocBuffer[i].address>>8)&0x00FF;
i3954drivers/block/sbpcd.ctocentry.cdte_addr.msf.frame=D_S[d].TocBuffer[i].address&0x00FF;
i3957drivers/block/sbpcd.ctocentry.cdte_addr.lba=msf2blk(D_S[d].TocBuffer[i].address);
i3966drivers/block/sbpcd.ci=DriveReset();
i3968drivers/block/sbpcd.creturn (i);
i3972drivers/block/sbpcd.ci=cc_Pause_Resume(1);
i3974drivers/block/sbpcd.creturn (i);
i3986drivers/block/sbpcd.ci=UnLockDoor();
i3988drivers/block/sbpcd.ci=cc_SpinDown();
i3989drivers/block/sbpcd.cmsg(DBG_IOX,"ioctl: cc_SpinDown returned %d.\n", i);
i3990drivers/block/sbpcd.cmsg(DBG_TEA,"ioctl: cc_SpinDown returned %d.\n", i);
i3991drivers/block/sbpcd.cif (i<0) return (-EIO);
i4012drivers/block/sbpcd.ci=cc_SetVolume();
i4030drivers/block/sbpcd.cif ((st_spinning)||(!subq_valid)) { i=cc_ReadSubQ();
i4031drivers/block/sbpcd.cif (i<0) return (-EIO);
i4112drivers/block/sbpcd.cint i=0, j=0, frame, block;
i4128drivers/block/sbpcd.ci=verify_area(VERIFY_READ, (void *) arg, sizeof(struct cdrom_read_audio));
i4129drivers/block/sbpcd.cif (i) return (i);
i4132drivers/block/sbpcd.ci=verify_area(VERIFY_WRITE, read_audio.buf,
i4134drivers/block/sbpcd.cif (i) return (i);
i4141drivers/block/sbpcd.ci=cc_SetSpeed(speed_150,0,0);
i4142drivers/block/sbpcd.cif (i) msg(DBG_AUD,"read_audio: SetSpeed error %d\n", i);
i4197drivers/block/sbpcd.cfor (i=0;i<7;i++) OUT(CDo_command,drvcmd[i]);
i4244drivers/block/sbpcd.ci=cc_DriveReset();                /* ugly fix to prevent a hang */
i4246drivers/block/sbpcd.ci=cc_ReadError();
i4252drivers/block/sbpcd.ci=maxtim_data;
i4255drivers/block/sbpcd.cfor ( ;i!=0;i--)
i4262drivers/block/sbpcd.cif (i != 0 || timeout <= jiffies) break;
i4264drivers/block/sbpcd.ci = 1;
i4266drivers/block/sbpcd.cif (i==0) msg(DBG_AUD,"read_audio: STATUS TIMEOUT AFTER READ");
i4270drivers/block/sbpcd.ci=cc_DriveReset();  /* ugly fix to prevent a hang */
i4277drivers/block/sbpcd.ci=ResponseStatus();  /* builds status_bits, returns orig. status (old) or faked p_success (new) */
i4278drivers/block/sbpcd.cif (i<0) { msg(DBG_AUD,
i4284drivers/block/sbpcd.cwhile ((fam0L_drive)&&(!st_check)&&(!(i&p_success)));
i4287drivers/block/sbpcd.ci=cc_ReadError();
i4288drivers/block/sbpcd.cmsg(DBG_AUD,"read_audio: cc_ReadError was necessary after read: %02X\n",i);
i4368drivers/block/sbpcd.cint i, status_tries, data_tries;
i4381drivers/block/sbpcd.ci = MINOR(CURRENT->dev);
i4382drivers/block/sbpcd.cif ( (i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1))
i4390drivers/block/sbpcd.cif (D_S[i].audio_state==audio_playing) goto err_done;
i4391drivers/block/sbpcd.cif (d!=i) switch_drive(i);
i4410drivers/block/sbpcd.ci=prepare(0,0); /* at moment not really a hassle check, but ... */
i4411drivers/block/sbpcd.cif (i!=0)
i4412drivers/block/sbpcd.cmsg(DBG_INF,"\"prepare\" tells error %d -- ignored\n", i);
i4456drivers/block/sbpcd.cint i;
i4535drivers/block/sbpcd.cfor (i=0;i<7;i++) OUT(CDo_command,drvcmd[i]);
i4536drivers/block/sbpcd.cif (famT_drive) for (i=7;i<10;i++) OUT(CDo_command,drvcmd[i]);
i4541drivers/block/sbpcd.ci=cmd_out(); /* immediate return here - read data "ourselves" */
i4542drivers/block/sbpcd.cif (i<0) msg(DBG_INF,"error giving READ command: %0d\n", i);
i4553drivers/block/sbpcd.cint i=0, j=0, l, frame;
i4673drivers/block/sbpcd.ci=inb(CDi_status);
i4674drivers/block/sbpcd.cif (!(i&s_not_data_ready))
i4680drivers/block/sbpcd.ci=inb(CDi_data);
i4682drivers/block/sbpcd.ci=inb(CDi_status);
i4684drivers/block/sbpcd.cwhile (!(i&s_not_data_ready));
i4687drivers/block/sbpcd.cif (!(i&s_not_result_ready))
i4694drivers/block/sbpcd.ci=inb(CDi_status);
i4696drivers/block/sbpcd.cwhile (!(i&s_not_result_ready));
i4740drivers/block/sbpcd.ci=cc_DriveReset(); /* ugly fix to prevent a hang */
i4742drivers/block/sbpcd.ci=cc_ReadError();
i4750drivers/block/sbpcd.ci=maxtim_data;
i4753drivers/block/sbpcd.cfor ( ;i!=0;i--)
i4760drivers/block/sbpcd.cif (i != 0 || timeout <= jiffies) break;
i4762drivers/block/sbpcd.ci = 1;
i4764drivers/block/sbpcd.cif (i==0) msg(DBG_INF,"status timeout after READ.\n");
i4768drivers/block/sbpcd.ci=cc_DriveReset();  /* ugly fix to prevent a hang */
i4782drivers/block/sbpcd.cif (famT_drive) msg(DBG_TE2, "================before ResponseStatus=================.\n", i);
i4784drivers/block/sbpcd.ci=ResponseStatus();  /* builds status_bits, returns orig. status (old) or faked p_success (new) */
i4786drivers/block/sbpcd.cif (famT_drive)  msg(DBG_TE2, "================ResponseStatus: %d=================.\n", i);
i4788drivers/block/sbpcd.cif (i<0)
i4794drivers/block/sbpcd.cwhile ((fam0L_drive)&&(!st_check)&&(!(i&p_success)));
i4797drivers/block/sbpcd.ci=cc_ReadError();
i4798drivers/block/sbpcd.cmsg(DBG_INF,"cc_ReadError was necessary after read: %d\n",i);
i4825drivers/block/sbpcd.cint i;
i4827drivers/block/sbpcd.ci = MINOR(ip->i_rdev);
i4828drivers/block/sbpcd.cif ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1))
i4836drivers/block/sbpcd.cswitch_drive(i);
i4838drivers/block/sbpcd.ci=cc_ReadError();
i4841drivers/block/sbpcd.ci=ResponseStatus();
i4842drivers/block/sbpcd.cif (famT_drive&&(i<0))
i4845drivers/block/sbpcd.ci=ResponseStatus();
i4846drivers/block/sbpcd.ci=ResponseStatus();
i4848drivers/block/sbpcd.cif (i<0)
i4850drivers/block/sbpcd.cmsg(DBG_INF,"sbpcd_open: ResponseStatus timed out (%d).\n",i);
i4853drivers/block/sbpcd.cif (famT_drive)  msg(DBG_TE2,"sbpcd_open: ResponseStatus=%02X\n", i);
i4860drivers/block/sbpcd.ci=ResponseStatus();
i4869drivers/block/sbpcd.ci=ResponseStatus();
i4879drivers/block/sbpcd.ci=UnLockDoor();
i4893drivers/block/sbpcd.ci=LockDoor();
i4896drivers/block/sbpcd.ci=DiskInfo();
i4910drivers/block/sbpcd.cint i;
i4912drivers/block/sbpcd.ci = MINOR(ip->i_rdev);
i4913drivers/block/sbpcd.cif ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1))
i4918drivers/block/sbpcd.cswitch_drive(i);
i4934drivers/block/sbpcd.ci=UnLockDoor();
i5028drivers/block/sbpcd.cint i;
i5034drivers/block/sbpcd.ci=inb(SPEA_REG_1);
i5035drivers/block/sbpcd.cif (i!=0x0F)
i5056drivers/block/sbpcd.ci=(inb(SPEA_REG_2)&0xCF)|n_ports;
i5057drivers/block/sbpcd.cOUT(SPEA_REG_2,i);
i5073drivers/block/sbpcd.cint i=0, j=0;
i5120drivers/block/sbpcd.ci=config_spea();
i5121drivers/block/sbpcd.cif (i<0) continue;
i5126drivers/block/sbpcd.ci=check_drives();
i5128drivers/block/sbpcd.cif (i>=0) break; /* drive found */
i5176drivers/block/sbpcd.ci=ResponseStatus();  /* returns orig. status or p_busy_new */
i5177drivers/block/sbpcd.cif (famT_drive) i=ResponseStatus();  /* returns orig. status or p_busy_new */
i5178drivers/block/sbpcd.cif (i<0)
i5179drivers/block/sbpcd.cif (i!=-402)
i5180drivers/block/sbpcd.cmsg(DBG_INF,"init: ResponseStatus returns %d.\n",i);
i5185drivers/block/sbpcd.ci=cc_ReadError();
i5186drivers/block/sbpcd.cmsg(DBG_INI,"init: cc_ReadError returns %d\n",i);
i5189drivers/block/sbpcd.cmsg(DBG_INI,"init: first GetStatus: %d\n",i);
i5197drivers/block/sbpcd.ci=GetStatus();
i5198drivers/block/sbpcd.cmsg(DBG_INI,"init: second GetStatus: %02X\n",i);
i5202drivers/block/sbpcd.cif (i<0) break;
i5207drivers/block/sbpcd.ci=SetSpeed();
i5208drivers/block/sbpcd.cif (i>=0) D_S[d].CD_changed=1;
i5337drivers/block/sbpcd.cint i, st;
i5342drivers/block/sbpcd.ci=MINOR(full_dev);
i5343drivers/block/sbpcd.cif ( (i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1) )
i5349drivers/block/sbpcd.cswitch_drive(i);
i314drivers/block/sjcd.cint i;
i315drivers/block/sjcd.cfor( i = 200; i-- && inb( SJCDPORT( 1 ) ) !=  0x09; );
i316drivers/block/sjcd.cif( i > 0 ) *resp++ = ( unsigned char )inb( SJCDPORT( 0 ) );
i397drivers/block/sjcd.cint i;
i404drivers/block/sjcd.cfor( i = 200; i-- && ( sjcd_check_status() == 0 ); );
i405drivers/block/sjcd.cif( i < 0 ){
i411drivers/block/sjcd.celse i = 0;
i413drivers/block/sjcd.creturn( i );
i453drivers/block/sjcd.cint i;
i520drivers/block/sjcd.cfor( i = sjcd_first_track_no; i <= sjcd_last_track_no; i++ ){
i524drivers/block/sjcd.csjcd_send_1_cmd( SCMD_GET_DISK_INFO, bin2bcd( i ) );
i538drivers/block/sjcd.cif( sjcd_load_response( &sjcd_table_of_contents[ i ],
i540drivers/block/sjcd.cprintk( "cannot load info for %d track\n", i );
i544drivers/block/sjcd.cprintk( "get info %d failed\n", i );
i900drivers/block/sjcd.cint i;
i901drivers/block/sjcd.cfor( i = 0; i < SJCD_BUF_SIZ; sjcd_buf_bn[ i++ ] = -1 );
i920drivers/block/sjcd.cint i, bn = CURRENT->sector / 4;
i921drivers/block/sjcd.cfor( i = 0; i < SJCD_BUF_SIZ && sjcd_buf_bn[ i ] != bn; i++ );
i922drivers/block/sjcd.cif( i < SJCD_BUF_SIZ ){
i923drivers/block/sjcd.cint offs = ( i * 4 + ( CURRENT->sector & 3 ) ) * 512;
i925drivers/block/sjcd.cif( sjcd_buf_out != i ){
i926drivers/block/sjcd.csjcd_buf_out = i;
i927drivers/block/sjcd.cif( sjcd_buf_bn[ i ] != bn ){
i1186drivers/block/sjcd.cint i;
i1193drivers/block/sjcd.cfor( i = 2048; i--; ( void )inb( SJCDPORT( 2 ) ) );
i1357drivers/block/sjcd.cint i;
i1394drivers/block/sjcd.cfor( i = 100; i > 0; --i )
i1396drivers/block/sjcd.cif( i == 0 ){
i1474drivers/block/sjcd.cshort i = -1;
i1493drivers/block/sjcd.ci = 0;
i1497drivers/block/sjcd.ci = 1;
i1504drivers/block/sjcd.creturn(i); /* -> not detected: possibly incorrect conclusion */
i1508drivers/block/sjcd.ci = 0;
i1510drivers/block/sjcd.ci = 1;
i1514drivers/block/sjcd.creturn(i);
i1550drivers/block/sjcd.cu_char i;
i1606drivers/block/sjcd.ci = ISP16_IN(ISP16_DRIVE_SET_PORT) & ISP16_DRIVE_SET_MASK;  /* clear some bits */
i1607drivers/block/sjcd.cISP16_OUT( ISP16_DRIVE_SET_PORT, i|drive_type );
i1614drivers/block/sjcd.ci = ISP16_IN(ISP16_IO_SET_PORT) & ISP16_IO_SET_MASK;  /* keep some bits */
i1615drivers/block/sjcd.cISP16_OUT( ISP16_IO_SET_PORT, i|base_code|irq_code|dma_code );
i548drivers/block/sonycd535.cint i;
i551drivers/block/sonycd535.cfor (i = 0; i < n_cmd; i++)
i552drivers/block/sonycd535.coutb(cmd[i], command_reg);
i574drivers/block/sonycd535.cfor (i = 0; 0 < n_response; n_response--, i++)
i575drivers/block/sonycd535.cif (read_result_reg(response + i) != 0)
i620drivers/block/sonycd535.cint  i;
i637drivers/block/sonycd535.cfor (i = 0; i < 6; i++)
i638drivers/block/sonycd535.ccmd_buff[i + 1] = params[i];
i639drivers/block/sonycd535.cfor (i = 0; i < 7; i++)
i640drivers/block/sonycd535.coutb(cmd_buff[i], command_reg);
i657drivers/block/sonycd535.cfor (i = 0; i < block_size; i++)
i668drivers/block/sonycd535.cif ((i = read_exec_status(status)) != 0)
i669drivers/block/sonycd535.creturn i;
i687drivers/block/sonycd535.cint  i, j, n_tracks, track_no;
i702drivers/block/sonycd535.cfor (i = 0; i < n_tracks; i++) {
i711drivers/block/sonycd535.cmemcpy(toc->tracks + i, track_address_buffer, 5);
i994drivers/block/sonycd535.cint i;
i1000drivers/block/sonycd535.cfor (i = 0; i < num_tracks; i++) {
i1001drivers/block/sonycd535.cif (sony_toc->tracks[i].track == track) {
i1002drivers/block/sonycd535.creturn i;
i1116drivers/block/sonycd535.cint  i;
i1216drivers/block/sonycd535.cfor (i = 0; i < 3; i++) {
i1217drivers/block/sonycd535.ccmd_buff[2 + i] = int_to_bcd(params[i]);
i1218drivers/block/sonycd535.ccmd_buff[7 + i] = int_to_bcd(params[i + 3]);
i1537drivers/block/sonycd535.cint  i;
i1666drivers/block/sonycd535.cfor (i = 0; i < sony_buffer_sectors; i++)
i1667drivers/block/sonycd535.csony_buffer[i] = (Byte *)kmalloc(2048, GFP_KERNEL);
i1721drivers/block/sonycd535.cint i;
i1727drivers/block/sonycd535.cfor (i = 0; i < sony_buffer_sectors; i++)
i1728drivers/block/sonycd535.ckfree_s(sony_buffer[i], 2048);
i135drivers/block/xd.cu_char i,j,found = 0;
i144drivers/block/xd.cfor (i = 0; i < (sizeof(xd_bases) / sizeof(xd_bases[0])) && !found; i++)
i146drivers/block/xd.cif (!memcmp(xd_bases[i] + xd_sigs[j].offset,xd_sigs[j].string,strlen(xd_sigs[j].string))) {
i148drivers/block/xd.c*address = xd_bases[i];
i158drivers/block/xd.cu_char i,controller,*address;
i168drivers/block/xd.cfor (i = 0; i < xd_drives; i++)
i169drivers/block/xd.cprintk("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);
i181drivers/block/xd.cfor (i = 0; i < xd_drives; i++) {
i182drivers/block/xd.cxd[i << 6].nr_sects = xd_info[i].heads * xd_info[i].cylinders * xd_info[i].sectors;
i183drivers/block/xd.cxd_valid[i] = 1;
i188drivers/block/xd.cfor(i=0;i<(XD_MAXDRIVES << 6);i++) xd_blocksizes[i] = 1024;
i511drivers/block/xd.cu_char cmdblk[6],i,count = 0;
i513drivers/block/xd.cfor (i = 0; i < XD_MAXDRIVES; i++) {
i514drivers/block/xd.cxd_build(cmdblk,CMD_TESTREADY,i,0,0,0,0,0);
i669drivers/block/xd.cu_char cmdblk[6],i;
i671drivers/block/xd.cfor (i = 0; i < 3; i++) {
i672drivers/block/xd.cwhile (min[i] != max[i] - 1) {
i673drivers/block/xd.ctest[i] = (min[i] + max[i]) / 2;
i676drivers/block/xd.cmin[i] = test[i];
i678drivers/block/xd.cmax[i] = test[i];
i680drivers/block/xd.ctest[i] = min[i];
i123drivers/char/atixlmouse.cint i;
i142drivers/char/atixlmouse.cfor(i = 3; i < count; i++)
i143drivers/char/atixlmouse.cput_user(0x00, buffer + i);
i149drivers/char/atixlmouse.creturn i; /* i data bytes returned */
i219drivers/char/busmouse.cint i;
i223drivers/char/busmouse.cfor (i = 0; i < 100000; i++)
i57drivers/char/conmakehash.cint i, lct;
i64drivers/char/conmakehash.ci = un % hashsize;
i67drivers/char/conmakehash.cwhile ( (hu = hashtable[i].uc) != 0xffff && hu != un )
i74drivers/char/conmakehash.ci += hashstep;
i75drivers/char/conmakehash.cif ( i >= hashsize )
i76drivers/char/conmakehash.ci -= hashsize;
i81drivers/char/conmakehash.chashtable[i].uc = un;
i82drivers/char/conmakehash.chashtable[i].glyph = fp;
i94drivers/char/conmakehash.cint i;
i140drivers/char/conmakehash.cfor ( i = hashstep ; i > 1 ; i-- )
i142drivers/char/conmakehash.cif ( hashstep % i == 0 && hashsize % i == 0 )
i146drivers/char/conmakehash.cif ( i > 1 )
i149drivers/char/conmakehash.c"WARNING: hashsize and hashstep have common factors (gcd = %d)\n", i);
i174drivers/char/conmakehash.cfor ( i = 0 ; i < hashsize ; i++ )
i176drivers/char/conmakehash.chashtable[i].uc = 0xffff;
i177drivers/char/conmakehash.chashtable[i].glyph = 0;
i254drivers/char/conmakehash.cfor (i=fp0; i<=fp1; i++)
i255drivers/char/conmakehash.caddpair(i,i);
i286drivers/char/conmakehash.cfor(i=fp0; i<=fp1; i++)
i287drivers/char/conmakehash.caddpair(i,un0-fp0+i);
i333drivers/char/conmakehash.cfor ( i = 0 ; i < hashsize ; i++ )
i335drivers/char/conmakehash.cprintf("{0x%04x,0x%02x}", hashtable[i].uc, hashtable[i].glyph);
i336drivers/char/conmakehash.cif ( i == hashsize-1 )
i338drivers/char/conmakehash.celse if ( i % 4 == 3 )
i349drivers/char/conmakehash.cfor ( i = 0 ; i < hashsize ; i++ )
i351drivers/char/conmakehash.cprintf("{0x%04x,0x%02x}", hashtable[i].uc, hashtable[i].glyph);
i352drivers/char/conmakehash.cif ( i == hashsize-1 )
i354drivers/char/conmakehash.celse if ( i % 4 == 3 )
i338drivers/char/console.cint vc_cons_allocated(unsigned int i)
i340drivers/char/console.creturn (i < MAX_NR_CONSOLES && vc_cons[i].d);
i343drivers/char/console.cint vc_allocate(unsigned int i)    /* return 0 on success */
i345drivers/char/console.cif (i >= MAX_NR_CONSOLES)
i347drivers/char/console.cif (!vc_cons[i].d) {
i351drivers/char/console.cif (i >= MAX_NR_USER_CONSOLES && !suser())
i366drivers/char/console.cvc_cons[i].d = (struct vc_data *) p;
i368drivers/char/console.cvt_cons[i] = (struct vt_struct *) p;
i369drivers/char/console.cvc_scrbuf[i] = (unsigned short *) q;
i370drivers/char/console.cvc_cons[i].d->vc_kmalloced = 1;
i371drivers/char/console.cvc_cons[i].d->vc_screenbuf_size = video_screen_size;
i372drivers/char/console.cvc_init (i, video_num_lines, video_num_columns, 1);
i387drivers/char/console.cunsigned int currcons, i;
i411drivers/char/console.cfor (i = 0; i< currcons; i++)
i412drivers/char/console.cif (newscreens[i])
i413drivers/char/console.ckfree_s(newscreens[i], ss);
i916drivers/char/console.cint i;
i918drivers/char/console.cfor (i=0;i<=npar;i++)
i919drivers/char/console.cswitch (par[i]) {
i998drivers/char/console.cif (par[i] >= 30 && par[i] <= 37)
i999drivers/char/console.ccolor = color_table[par[i]-30]
i1001drivers/char/console.celse if (par[i] >= 40 && par[i] <= 47)
i1002drivers/char/console.ccolor = (color_table[par[i]-40]<<4)
i1126drivers/char/console.cint i;
i1128drivers/char/console.cfor (i=0; i<=npar; i++)
i1129drivers/char/console.cif (ques) switch(par[i]) {  /* DEC private modes set/reset */
i1174drivers/char/console.c} else switch(par[i]) {    /* ANSI modes set/reset */
i1221drivers/char/console.cunsigned int i = x;
i1225drivers/char/console.cwhile (i++ < video_num_columns) {
i1242drivers/char/console.cunsigned int i = x;
i1245drivers/char/console.cwhile (++i < video_num_columns) {
i1645drivers/char/console.cint i = par[0]*3, j = 1;
i1646drivers/char/console.cpalette[i] = 16*par[j++];
i1647drivers/char/console.cpalette[i++] += par[j++];
i1648drivers/char/console.cpalette[i] = 16*par[j++];
i1649drivers/char/console.cpalette[i++] += par[j++];
i1650drivers/char/console.cpalette[i] = 16*par[j++];
i1651drivers/char/console.cpalette[i] += par[j];
i2066drivers/char/console.cint i ;
i2095drivers/char/console.cfor (i=0; i<16; i++) {
i2097drivers/char/console.coutb_p (i, 0x3c0) ;
i2098drivers/char/console.coutb_p (i, 0x3c0) ;
i2105drivers/char/console.cfor (i=0; i<16; i++) {
i2106drivers/char/console.coutb_p (color_table[i], 0x3c8) ;
i2107drivers/char/console.coutb_p (default_red[i], 0x3c9) ;
i2108drivers/char/console.coutb_p (default_grn[i], 0x3c9) ;
i2109drivers/char/console.coutb_p (default_blu[i], 0x3c9) ;
i2205drivers/char/console.cint  i;
i2210drivers/char/console.cfor ( i = 0 ; i < 12 ; i++ )
i2212drivers/char/console.coutb_p(i, 0x3b4);
i2213drivers/char/console.coutb_p(herc_txt_tbl[i], 0x3b5);
i2350drivers/char/console.cint i;
i2354drivers/char/console.ci = vc_allocate(idx);
i2355drivers/char/console.cif (i)
i2356drivers/char/console.creturn i;
i2395drivers/char/console.cint i;
i2415drivers/char/console.ci = verify_area(set ? VERIFY_READ : VERIFY_WRITE, (void *)arg,
i2417drivers/char/console.cif (i)
i2418drivers/char/console.creturn i;
i2439drivers/char/console.cfor (i=0; i<cmapsz ; i++)
i2440drivers/char/console.cscr_writeb(get_user(arg + i), charmap + i);
i2442drivers/char/console.cfor (i=0; i<cmapsz ; i++)
i2443drivers/char/console.cput_user(scr_readb(charmap + i), arg + i);
i2455drivers/char/console.cfor (i=0; i<cmapsz ; i++)
i2456drivers/char/console.c*(charmap+i) = get_user(arg+i);
i2458drivers/char/console.cfor (i=0; i<cmapsz ; i++)
i2459drivers/char/console.cput_user(*(charmap+i), arg+i);
i2508drivers/char/console.cint i;
i2515drivers/char/console.ci = verify_area(set ? VERIFY_READ : VERIFY_WRITE, (void *)arg, 16*3);
i2516drivers/char/console.cif (i)
i2517drivers/char/console.creturn i;
i2519drivers/char/console.cfor (i=0; i<16; i++) {
i2521drivers/char/console.cdefault_red[i] = get_user(arg++) ;
i2522drivers/char/console.cdefault_grn[i] = get_user(arg++) ;
i2523drivers/char/console.cdefault_blu[i] = get_user(arg++) ;
i2525drivers/char/console.cput_user (default_red[i], arg++) ;
i2526drivers/char/console.cput_user (default_grn[i], arg++) ;
i2527drivers/char/console.cput_user (default_blu[i], arg++) ;
i2531drivers/char/console.cfor (i=0; i<MAX_NR_CONSOLES; i++)
i2532drivers/char/console.cif (vc_cons_allocated(i)) {
i2535drivers/char/console.cvc_cons[i].d->vc_palette[k++] = default_red[j];
i2536drivers/char/console.cvc_cons[i].d->vc_palette[k++] = default_grn[j];
i2537drivers/char/console.cvc_cons[i].d->vc_palette[k++] = default_blu[j];
i2577drivers/char/console.cint i, j ;
i2583drivers/char/console.cfor (i=j=0; i<16; i++) {
i2584drivers/char/console.coutb_p (color_table[i], dac_reg) ;
i2599drivers/char/console.cint i;
i2601drivers/char/console.ci = set_get_font (arg,1,ch512);
i2602drivers/char/console.cif ( !i ) {
i2607drivers/char/console.creturn i;
i165drivers/char/consolemap.cstatic void set_inverse_transl(int i)
i168drivers/char/consolemap.cunsigned short *p = translations[i];
i169drivers/char/consolemap.cunsigned char *q = inverse_translations[i];
i173drivers/char/consolemap.cq = inverse_translations[i] = ((i == LAT1_MAP)
i216drivers/char/consolemap.cint i;
i219drivers/char/consolemap.ci = verify_area(VERIFY_READ, (void *)arg, E_TABSZ);
i220drivers/char/consolemap.cif (i)
i221drivers/char/consolemap.creturn i;
i223drivers/char/consolemap.cfor (i=0; i<E_TABSZ ; i++)
i224drivers/char/consolemap.cp[i] = UNI_DIRECT_BASE | get_user(arg+i);
i232drivers/char/consolemap.cint i, ch;
i235drivers/char/consolemap.ci = verify_area(VERIFY_WRITE, (void *)arg, E_TABSZ);
i236drivers/char/consolemap.cif (i)
i237drivers/char/consolemap.creturn i;
i239drivers/char/consolemap.cfor (i=0; i<E_TABSZ ; i++)
i241drivers/char/consolemap.cch = conv_uni_to_pc(p[i]);
i242drivers/char/consolemap.cput_user((ch & ~0xff) ? 0 : ch, arg+i);
i248drivers/char/consolemap.cint i;
i251drivers/char/consolemap.ci = verify_area(VERIFY_READ, (void *)arg,
i253drivers/char/consolemap.cif (i)
i254drivers/char/consolemap.creturn i;
i256drivers/char/consolemap.cfor (i=0; i<E_TABSZ ; i++)
i257drivers/char/consolemap.cp[i] = get_user(arg+i);
i265drivers/char/consolemap.cint i;
i268drivers/char/consolemap.ci = verify_area(VERIFY_WRITE, (void *)arg,
i270drivers/char/consolemap.cif (i)
i271drivers/char/consolemap.creturn i;
i273drivers/char/consolemap.cfor (i=0; i<E_TABSZ ; i++)
i274drivers/char/consolemap.cput_user(p[i], arg+i);
i303drivers/char/consolemap.cint i;
i320drivers/char/consolemap.cfor (i=0; i<hashsize; i++)
i321drivers/char/consolemap.chashtable[i].unicode = 0xffff;
i327drivers/char/consolemap.cint i, lct;
i335drivers/char/consolemap.ci = u % hashsize;
i337drivers/char/consolemap.cwhile ((hu = hashtable[i].unicode) != 0xffff && hu != u) {
i340drivers/char/consolemap.ci += hashstep;
i341drivers/char/consolemap.cif (i >= hashsize)
i342drivers/char/consolemap.ci -= hashsize;
i346drivers/char/consolemap.chashtable[i].unicode = u;
i347drivers/char/consolemap.chashtable[i].fontpos = get_user(&list->fontpos);
i352drivers/char/consolemap.cfor ( i = 0 ; i <= 3 ; i++ )
i353drivers/char/consolemap.cset_inverse_transl(i); /* Update all inverse translations */
i360drivers/char/consolemap.cint i, ect;
i364drivers/char/consolemap.cfor (i = 0; i<hashsize; i++)
i365drivers/char/consolemap.cif (hashtable[i].unicode != 0xffff) {
i367drivers/char/consolemap.cput_user(hashtable[i].unicode, &list->unicode);
i368drivers/char/consolemap.cput_user(hashtable[i].fontpos, &list->fontpos);
i378drivers/char/consolemap.cint i, h;
i399drivers/char/consolemap.cfor (i = 0; i < hashlevel; i++) {
i462drivers/char/cyclades.cvolatile int  i;
i466drivers/char/cyclades.cfor(i = 0 ; i < 100 ; i++){
i474drivers/char/cyclades.cif ( i == 10 ) {
i598drivers/char/cyclades.cint i,j;
i634drivers/char/cyclades.ci = channel + chip * 4 + cinfo->first_line;
i635drivers/char/cyclades.cinfo = &cy_port[i];
i750drivers/char/cyclades.ci = channel + chip * 4 + cinfo->first_line;
i755drivers/char/cyclades.cif( (i < 0) || (NR_PORTS <= i) ){
i759drivers/char/cyclades.cinfo = &cy_port[i];
i981drivers/char/cyclades.cint i, mask;
i983drivers/char/cyclades.cfor (i = 0, mask = 1; i < 16; i++, mask <<= 1) {
i985drivers/char/cyclades.c&& !request_irq(i, cy_probe, SA_INTERRUPT, "serial probe")) {
i998drivers/char/cyclades.cint i;
i1000drivers/char/cyclades.cfor (i = 0; i < 16; i++) {
i1001drivers/char/cyclades.cif (irq_lines & (1 << i))
i1002drivers/char/cyclades.cfree_irq(i);
i1013drivers/char/cyclades.cint  i, mask;
i1038drivers/char/cyclades.cfor (i = 0, mask = 1; i < 16; i++, mask <<= 1) {
i1039drivers/char/cyclades.cif ((cy_triggered & (1 << i)) &&
i1040drivers/char/cyclades.c(irq_lines & (1 << i))) {
i1308drivers/char/cyclades.cint   i;
i1319drivers/char/cyclades.ci = cflag & CBAUD;
i1329drivers/char/cyclades.cif (i & CBAUDEX) {
i1330drivers/char/cyclades.cif (i == B57600)
i1331drivers/char/cyclades.ci = 16;
i1332drivers/char/cyclades.celse if(i == B115200) 
i1333drivers/char/cyclades.ci = 18;
i1335drivers/char/cyclades.celse if(i == B78600) 
i1336drivers/char/cyclades.ci = 17;
i1342drivers/char/cyclades.cif (i == 15) {
i1344drivers/char/cyclades.ci += 1;
i1346drivers/char/cyclades.ci += 3;
i1348drivers/char/cyclades.cinfo->tbpr = baud_bpr[i]; /* Tx BPR */
i1349drivers/char/cyclades.cinfo->tco = baud_co[i]; /* Tx CO */
i1350drivers/char/cyclades.cinfo->rbpr = baud_bpr[i]; /* Rx BPR */
i1351drivers/char/cyclades.cinfo->rco = baud_co[i]; /* Rx CO */
i1352drivers/char/cyclades.cif (baud_table[i] == 134) {
i1355drivers/char/cyclades.c} else if (baud_table[i]) {
i1356drivers/char/cyclades.cinfo->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2;
i1370drivers/char/cyclades.c: baud_cor3[i]); /* receive threshold */
i1471drivers/char/cyclades.cif(i == 0){ /* baud rate is zero, turn off line */
i167drivers/char/keyboard.cint i;
i169drivers/char/keyboard.cfor (i=0; i<0x100000; i++)
i673drivers/char/keyboard.cint i;
i675drivers/char/keyboard.cfor (i = fg_console-1; i != fg_console; i--) {
i676drivers/char/keyboard.cif (i == -1)
i677drivers/char/keyboard.ci = MAX_NR_CONSOLES-1;
i678drivers/char/keyboard.cif (vc_cons_allocated(i))
i681drivers/char/keyboard.cwant_console = i;
i686drivers/char/keyboard.cint i;
i688drivers/char/keyboard.cfor (i = fg_console+1; i != fg_console; i++) {
i689drivers/char/keyboard.cif (i == MAX_NR_CONSOLES)
i690drivers/char/keyboard.ci = 0;
i691drivers/char/keyboard.cif (vc_cons_allocated(i))
i694drivers/char/keyboard.cwant_console = i;
i824drivers/char/keyboard.cint i;
i830drivers/char/keyboard.cfor (i = 0; i < accent_table_size; i++) {
i831drivers/char/keyboard.cif (accent_table[i].diacr == d && accent_table[i].base == ch)
i832drivers/char/keyboard.creturn accent_table[i].result;
i966drivers/char/keyboard.cint i, j, k, sym, val;
i969drivers/char/keyboard.cfor(i=0; i < SIZE(k_down); i++)
i970drivers/char/keyboard.ck_down[i] = 0;
i972drivers/char/keyboard.cfor(i=0; i < SIZE(key_down); i++)
i973drivers/char/keyboard.cif(key_down[i]) {  /* skip this word if not a single bit on */
i974drivers/char/keyboard.ck = i*BITS_PER_LONG;
i1036drivers/char/keyboard.cint i;
i1044drivers/char/keyboard.cfor(i=0; i<0x200000; i++) {
i1167drivers/char/keyboard.cint i;
i1177drivers/char/keyboard.cfor (i = 0 ; i < MAX_NR_CONSOLES ; i++)
i1178drivers/char/keyboard.ckbd_table[i] = kbd0;
i125drivers/char/mem.cunsigned int i = file->f_pos;
i128drivers/char/mem.cwhile (count-- > 0 && i < 65536) {
i129drivers/char/mem.cput_user(inb(i),tmp);
i130drivers/char/mem.ci++;
i133drivers/char/mem.cfile->f_pos = i;
i139drivers/char/mem.cunsigned int i = file->f_pos;
i142drivers/char/mem.cwhile (count-- > 0 && i < 65536) {
i143drivers/char/mem.coutb(get_user(tmp),i);
i144drivers/char/mem.ci++;
i147drivers/char/mem.cfile->f_pos = i;
i106drivers/char/msbusmouse.cint i, dx, dy;
i117drivers/char/msbusmouse.cfor (i = 3; i < count; i++)
i118drivers/char/msbusmouse.cput_user(0x00, buffer + i);
i122drivers/char/msbusmouse.creturn i;  
i149drivers/char/msbusmouse.cint mse_byte, i;
i159drivers/char/msbusmouse.cfor (i = 0; i < 4; i++) {
i533drivers/char/n_tty.cint  i;
i539drivers/char/n_tty.ci = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt,
i541drivers/char/n_tty.cmemcpy(tty->read_buf + tty->read_head, cp, i);
i542drivers/char/n_tty.ctty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1);
i543drivers/char/n_tty.ctty->read_cnt += i;
i544drivers/char/n_tty.ccp += i;
i545drivers/char/n_tty.ccount -= i;
i547drivers/char/n_tty.ci = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt,
i549drivers/char/n_tty.cmemcpy(tty->read_buf + tty->read_head, cp, i);
i550drivers/char/n_tty.ctty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1);
i551drivers/char/n_tty.ctty->read_cnt += i;
i553drivers/char/n_tty.cfor (i=count, p = cp, f = fp; i; i--, p++) {
i339drivers/char/psaux.cint i = count;
i341drivers/char/psaux.cwhile (i--) {
i361drivers/char/psaux.cint i = count;
i363drivers/char/psaux.cwhile (i--) {
i381drivers/char/psaux.cint i = count;
i397drivers/char/psaux.cwhile (i > 0 && !queue_empty()) {
i400drivers/char/psaux.ci--;
i403drivers/char/psaux.cif (count-i) {
i405drivers/char/psaux.creturn count-i;
i216drivers/char/scc.cint i;
i222drivers/char/scc.cfor (i = 0 ; i < MAX_IBUFS ; i++)
i229drivers/char/scc.callocated_ibufs = --i;
i234drivers/char/scc.cprintk("Warning: scc_alloc_buffer_pool() - allocated only %i buffers\n",i);
i239drivers/char/scc.csccfreelist[i] = sccb;
i240drivers/char/scc.csccfreelist[i]->bp = bp;
i241drivers/char/scc.cmemset(sccfreelist[i]->bp ,0,sizeof(struct mbuf));
i242drivers/char/scc.csccfreelist[i]->inuse = 0;
i243drivers/char/scc.csccfreelist[i]->bp->type = 0;
i244drivers/char/scc.csccfreelist[i]->bp->refcnt = 0;
i245drivers/char/scc.csccfreelist[i]->bp->size = BUFSIZE;
i252drivers/char/scc.cunsigned int i, used = 0;
i257drivers/char/scc.cfor (i = 0 ; i < allocated_ibufs ; i++)
i259drivers/char/scc.cif (sccfreelist[i]->inuse)
i261drivers/char/scc.cswitch (sccfreelist[i]->bp->type)
i281drivers/char/scc.cint i;
i286drivers/char/scc.cfor (i = 0 ; i < allocated_ibufs ; i++)
i288drivers/char/scc.cif(sccfreelist[i]->inuse == 0)
i290drivers/char/scc.csccfreelist[i]->inuse = 1;
i291drivers/char/scc.csccfreelist[i]->bp->type = type;
i292drivers/char/scc.csccfreelist[i]->bp->next = NULLBUF;
i293drivers/char/scc.csccfreelist[i]->bp->anext = NULLBUF;
i294drivers/char/scc.csccfreelist[i]->bp->dup = NULLBUF;
i295drivers/char/scc.csccfreelist[i]->bp->size = BUFSIZE;
i296drivers/char/scc.csccfreelist[i]->bp->refcnt = 1;
i297drivers/char/scc.csccfreelist[i]->bp->cnt = 0;
i298drivers/char/scc.csccfreelist[i]->bp->in_use = 0;
i299drivers/char/scc.csccfreelist[i]->bp->time_out = CURRENT_TIME + 300;
i302drivers/char/scc.creturn sccfreelist[i]->bp;
i320drivers/char/scc.cint i;
i338drivers/char/scc.cfor(i = 0 ; i < allocated_ibufs ; i++)
i340drivers/char/scc.cif(sccfreelist[i]->inuse == 1)
i341drivers/char/scc.cif(sccfreelist[i]->bp->type == BT_TRANSMIT)
i342drivers/char/scc.cif(sccfreelist[i]->bp->time_out < CURRENT_TIME)
i344drivers/char/scc.csccfreelist[i]->bp->cnt = 0;
i345drivers/char/scc.csccfreelist[i]->bp->refcnt = 0;
i346drivers/char/scc.csccfreelist[i]->inuse = 0;
i357drivers/char/scc.cfor(i = 0 ; i < allocated_ibufs ; i++)
i359drivers/char/scc.cif(sccfreelist[i]->bp == bp->dup)
i361drivers/char/scc.cif (sccfreelist[i]->bp->type != type)
i364drivers/char/scc.ctype,sccfreelist[i]->bp->type);
i367drivers/char/scc.csccfreelist[i]->bp->cnt = 0;
i368drivers/char/scc.csccfreelist[i]->bp->refcnt = 0;
i369drivers/char/scc.csccfreelist[i]->bp->in_use = 0;
i370drivers/char/scc.csccfreelist[i]->inuse = 0;
i379drivers/char/scc.cfor(i = 0 ; i < allocated_ibufs ; i++)
i381drivers/char/scc.cif(sccfreelist[i]->bp == bp)
i383drivers/char/scc.cif (sccfreelist[i]->bp->type != type)
i386drivers/char/scc.ctype,sccfreelist[i]->bp->type);
i389drivers/char/scc.csccfreelist[i]->bp->cnt = 0;
i390drivers/char/scc.csccfreelist[i]->bp->refcnt = 0;
i391drivers/char/scc.csccfreelist[i]->inuse = 0;
i799drivers/char/scc.cint i;
i825drivers/char/scc.cfor(i = 0 ; i < scc->rxbufcnt ; i++)
i828drivers/char/scc.ctty_insert_flip_char(scc->tty, scc->rxbuf[i], 0);
i846drivers/char/scc.ctty_insert_flip_char(scc->tty, scc->rxbuf[i], 0);
i91drivers/char/selection.cint i = verify_area(VERIFY_READ, (char *) arg, 36);
i92drivers/char/selection.cif (i)
i93drivers/char/selection.creturn i;
i118drivers/char/selection.cint i, ps, pe;
i250drivers/char/selection.cfor (i = sel_start; i <= sel_end; i += 2) {
i251drivers/char/selection.c*bp = sel_pos(i);
i254drivers/char/selection.cif (! ((i + 2) % video_size_row)) {
i767drivers/char/serial.cunsigned int  i;
i770drivers/char/serial.cfor (i=1; i < 16; i++) {
i771drivers/char/serial.cinfo = IRQ_ports[i];
i782drivers/char/serial.cif (rs_multiport[i].port1)
i783drivers/char/serial.crs_interrupt_multi(i, NULL);
i785drivers/char/serial.crs_interrupt(i, NULL);
i787drivers/char/serial.crs_interrupt_single(i, NULL);
i822drivers/char/serial.cint      i, mask;
i824drivers/char/serial.cfor (i = 0, mask = 1; i < 16; i++, mask <<= 1) {
i825drivers/char/serial.cif (!(mask & dontgrab) && !request_irq(i, rs_probe, SA_INTERRUPT, "serial probe")) {
i837drivers/char/serial.cint  i;
i839drivers/char/serial.cfor (i = 0; i < 16; i++) {
i840drivers/char/serial.cif (irq_lines & (1 << i))
i841drivers/char/serial.cfree_irq(i);
i1118drivers/char/serial.cint  i;
i1125drivers/char/serial.ci = cflag & CBAUD;
i1126drivers/char/serial.cif (i & CBAUDEX) {
i1127drivers/char/serial.ci &= ~CBAUDEX;
i1128drivers/char/serial.cif (i < 1 || i > 2) 
i1131drivers/char/serial.ci += 15;
i1133drivers/char/serial.cif (i == 15) {
i1135drivers/char/serial.ci += 1;
i1137drivers/char/serial.ci += 2;
i1144drivers/char/serial.c} else if (baud_table[i] == 134) {
i1147drivers/char/serial.c} else if (baud_table[i]) {
i1148drivers/char/serial.cquot = info->baud_base / baud_table[i];
i1149drivers/char/serial.cinfo->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2;
i1468drivers/char/serial.cunsigned int    i,change_irq,change_port;
i1503drivers/char/serial.cfor (i = 0 ; i < NR_PORTS; i++)
i1504drivers/char/serial.cif ((info != &rs_table[i]) &&
i1505drivers/char/serial.c(rs_table[i].port == new_serial.port) &&
i1506drivers/char/serial.crs_table[i].type)
i1692drivers/char/serial.cint  i, mask;
i1717drivers/char/serial.cfor (i = 0, mask = 1; i < 16; i++, mask <<= 1) {
i1718drivers/char/serial.cif ((rs_triggered & (1 << i)) &&
i1719drivers/char/serial.c(irq_lines & (1 << i))) {
i1722drivers/char/serial.cprintk("Wild interrupt?  (IRQ %d)\n", i);
i2562drivers/char/serial.cint i;
i2573drivers/char/serial.cfor (i = 0; i < 16; i++) {
i2574drivers/char/serial.cIRQ_ports[i] = 0;
i2575drivers/char/serial.cIRQ_timeout[i] = 0;
i2576drivers/char/serial.cmemset(&rs_multiport[i], 0, sizeof(struct rs_multiport_struct));
i2630drivers/char/serial.cfor (i = 0, info = rs_table; i < NR_PORTS; i++,info++) {
i2632drivers/char/serial.cinfo->line = i;
i2692drivers/char/serial.cint i;
i2698drivers/char/serial.cfor (i = 0; i < NR_PORTS; i++) {
i2699drivers/char/serial.cif (rs_table[i].port == req->port)
i2702drivers/char/serial.cif (i == NR_PORTS) {
i2703drivers/char/serial.cfor (i = 0; i < NR_PORTS; i++)
i2704drivers/char/serial.cif ((rs_table[i].type == PORT_UNKNOWN) &&
i2705drivers/char/serial.c(rs_table[i].count == 0))
i2708drivers/char/serial.cif (i == NR_PORTS) {
i2712drivers/char/serial.cinfo = &rs_table[i];
i2713drivers/char/serial.cif (rs_table[i].count) {
i2716drivers/char/serial.c"device already open\n", i, req->port, req->irq);
i488drivers/char/tpqic02.cint i;
i490drivers/char/tpqic02.cfor (i=1; i<NR_OF_EXC; i++) {
i491drivers/char/tpqic02.cif ((s & exception_list[i].mask)==exception_list[i].code)
i492drivers/char/tpqic02.creturn i;
i667drivers/char/tpqic02.cint i;
i686drivers/char/tpqic02.ci = TAPE_NOTIFY_TIMEOUT;
i691drivers/char/tpqic02.cwhile ((inb_p(QIC02_STAT_PORT) & QIC02_STAT_READY) && (--i>0))
i693drivers/char/tpqic02.cif (i==0) {
i700drivers/char/tpqic02.ci = TAPE_NOTIFY_TIMEOUT;
i702drivers/char/tpqic02.cwhile (((inb_p(QIC02_STAT_PORT) & QIC02_STAT_READY) == 0) && (--i>0))
i704drivers/char/tpqic02.cif (i==0) {
i781drivers/char/tpqic02.cint i, stat;
i783drivers/char/tpqic02.cfor (i=0; i<size; i++) {
i789drivers/char/tpqic02.cstat = notify_cmd(sb[i], ignore_ex);
i947drivers/char/tpqic02.cint stat, i;
i955drivers/char/tpqic02.cfor (i=0; i<sizeof(vus); i++) {
i956drivers/char/tpqic02.cif ( i % 8 == 0 )
i958drivers/char/tpqic02.cprintk(" %2x", vus[i] & 0xff);
i1801drivers/char/tpqic02.cint stat, r, i;
i1850drivers/char/tpqic02.cif ( (i = get_dma_residue(QIC02_TAPE_DMA)) != 0 ) {
i1851drivers/char/tpqic02.cprintk(TPQIC02_NAME ": dma_residue == %x !!!\n", i);
i2563drivers/char/tpqic02.cshort i;
i2625drivers/char/tpqic02.cfor (i=0; i<sizeof(qic02_tape_dynconf); i++) 
i2652drivers/char/tpqic02.cfor (i=0; i<sizeof(qic02_tape_dynconf); i++)
i2684drivers/char/tpqic02.cfor (i=0; i<sizeof(operation); i++)
i2746drivers/char/tpqic02.cfor (i=0; i<sizeof(ioctl_status); i++) 
i2779drivers/char/tpqic02.cfor (i=0; i<sizeof(ioctl_tell); i++) 
i160drivers/char/tty_io.cint i, count = 0;
i162drivers/char/tty_io.cfor (f = first_file, i=0; i<nr_files; i++, f = f->f_next) {
i346drivers/char/tty_io.cint i;
i353drivers/char/tty_io.cfor (filp = first_file, i=0; i<nr_files; i++, filp = filp->f_next) {
i386drivers/char/tty_io.ci = (tty->ldisc.open)(tty);
i387drivers/char/tty_io.cif (i < 0)
i389drivers/char/tty_io.c-i);
i688drivers/char/tty_io.cint i;
i715drivers/char/tty_io.ci = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count);
i717drivers/char/tty_io.ci = -EIO;
i718drivers/char/tty_io.cif (i > 0)
i720drivers/char/tty_io.creturn i;
i725drivers/char/tty_io.cint i, is_console;
i751drivers/char/tty_io.ci = (tty->ldisc.write)(tty,file,(unsigned char *)buf,(unsigned int)count);
i753drivers/char/tty_io.ci = -EIO;
i754drivers/char/tty_io.cif (i > 0)
i756drivers/char/tty_io.creturn i;
i1281drivers/char/tty_io.cint i, n = 0;
i1283drivers/char/tty_io.ci = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct tstruct));
i1284drivers/char/tty_io.cif (i)
i1285drivers/char/tty_io.creturn i;
i1291drivers/char/tty_io.cfor (i=0 ; i<sizeof(struct task_struct) ; i++)
i1558drivers/char/tty_io.cint    i;
i1575drivers/char/tty_io.cfor (i=0; i < NR_OPEN; i++) {
i1576drivers/char/tty_io.cfilp = (*p)->files->fd[i];
i78drivers/char/tty_ioctl.cint  i;
i92drivers/char/tty_ioctl.cfor (i=0; i < NCCS; i++)
i93drivers/char/tty_ioctl.ctermios->c_cc[i] = locked->c_cc[i] ?
i94drivers/char/tty_ioctl.cold->c_cc[i] : termios->c_cc[i];
i181drivers/char/tty_ioctl.cint i;
i184drivers/char/tty_ioctl.ci = verify_area(VERIFY_WRITE, termio, sizeof (struct termio));
i185drivers/char/tty_ioctl.cif (i)
i186drivers/char/tty_ioctl.creturn i;
i34drivers/char/vt.c#define VT_IS_IN_USE(i)  (console_driver.table[i] && console_driver.table[i]->count)
i35drivers/char/vt.c#define VT_BUSY(i)  (VT_IS_IN_USE(i) || i == fg_console || i == sel_cons)
i107drivers/char/vt.cint i;
i111drivers/char/vt.cfor ( i = 0 ; i < MAX_NR_CONSOLES ; i++ )
i113drivers/char/vt.cif ( console_driver.table[i] )
i115drivers/char/vt.cif ( row ) console_driver.table[i]->winsize.ws_row = row;
i116drivers/char/vt.cif ( col ) console_driver.table[i]->winsize.ws_col = col;
i188drivers/char/vt.cint i, perm;
i235drivers/char/vt.ci = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned char));
i236drivers/char/vt.cif (!i)
i238drivers/char/vt.creturn i;
i289drivers/char/vt.ci = verify_area(VERIFY_WRITE, (void *) arg, sizeof(int));
i290drivers/char/vt.cif (!i)
i292drivers/char/vt.creturn i;
i328drivers/char/vt.ci = verify_area(VERIFY_WRITE, (void *) arg, sizeof(int));
i329drivers/char/vt.cif (!i) {
i336drivers/char/vt.creturn i;
i354drivers/char/vt.ci = verify_area(VERIFY_WRITE, (void *) arg, sizeof(int));
i355drivers/char/vt.cif (!i) {
i360drivers/char/vt.creturn i;
i368drivers/char/vt.ci = verify_area(VERIFY_WRITE, (void *)a, sizeof(struct kbkeycode));
i369drivers/char/vt.cif (i)
i370drivers/char/vt.creturn i;
i386drivers/char/vt.ci = verify_area(VERIFY_READ, (void *)a, sizeof(struct kbkeycode));
i387drivers/char/vt.cif (i)
i388drivers/char/vt.creturn i;
i400drivers/char/vt.ci = verify_area(VERIFY_WRITE, (void *)a, sizeof(struct kbentry));
i401drivers/char/vt.cif (i)
i402drivers/char/vt.creturn i;
i403drivers/char/vt.cif ((i = get_user(&a->kb_index)) >= NR_KEYS)
i409drivers/char/vt.cval = U(key_map[i]);
i413drivers/char/vt.cval = (i ? K_HOLE : K_NOSUCHMAP);
i427drivers/char/vt.ci = verify_area(VERIFY_READ, (void *)a, sizeof(struct kbentry));
i428drivers/char/vt.cif (i)
i429drivers/char/vt.creturn i;
i430drivers/char/vt.cif ((i = get_user(&a->kb_index)) >= NR_KEYS)
i435drivers/char/vt.cif (!i && v == K_NOSUCHMAP) {
i456drivers/char/vt.cif (!i)
i475drivers/char/vt.cov = U(key_map[i]);
i484drivers/char/vt.ckey_map[i] = U(v);
i497drivers/char/vt.ci = verify_area(VERIFY_WRITE, (void *)a, sizeof(struct kbsentry));
i498drivers/char/vt.cif (i)
i499drivers/char/vt.creturn i;
i500drivers/char/vt.cif ((i = get_user(&a->kb_func)) >= MAX_NR_FUNC || i < 0)
i505drivers/char/vt.cp = func_table[i];
i524drivers/char/vt.ci = verify_area(VERIFY_READ, (void *)a, sizeof(struct kbsentry));
i525drivers/char/vt.cif (i)
i526drivers/char/vt.creturn i;
i527drivers/char/vt.cif ((i = get_user(&a->kb_func)) >= MAX_NR_FUNC)
i529drivers/char/vt.cq = func_table[i];
i532drivers/char/vt.cfor (j = i+1; j < MAX_NR_FUNC && !func_table[j]; j++) ;
i553drivers/char/vt.cfunc_table[i] = fj;
i564drivers/char/vt.cfunc_table[i] = fj;
i583drivers/char/vt.cfor (p = a->kb_string, q = func_table[i]; ; p++, q++)
i593drivers/char/vt.ci = verify_area(VERIFY_WRITE, (void *) a, sizeof(struct kbdiacrs));
i594drivers/char/vt.cif (i)
i595drivers/char/vt.creturn i;
i609drivers/char/vt.ci = verify_area(VERIFY_READ, (void *) a, sizeof(struct kbdiacrs));
i610drivers/char/vt.cif (i)
i611drivers/char/vt.creturn i;
i623drivers/char/vt.ci = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned char));
i624drivers/char/vt.cif (i)
i625drivers/char/vt.creturn i;
i643drivers/char/vt.ci = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned char));
i644drivers/char/vt.cif (i)
i645drivers/char/vt.creturn i;
i684drivers/char/vt.ci = verify_area(VERIFY_WRITE, (void *)vtmode, sizeof(struct vt_mode));
i685drivers/char/vt.cif (i)
i686drivers/char/vt.creturn i;
i705drivers/char/vt.ci = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct vt_mode));
i706drivers/char/vt.cif (i)
i707drivers/char/vt.creturn i;
i726drivers/char/vt.ci = verify_area(VERIFY_WRITE,(void *)vtstat, sizeof(struct vt_stat));
i727drivers/char/vt.cif (i)
i728drivers/char/vt.creturn i;
i731drivers/char/vt.cfor (i = 0, mask = 2; i < MAX_NR_CONSOLES && mask; ++i, mask <<= 1)
i732drivers/char/vt.cif (VT_IS_IN_USE(i))
i742drivers/char/vt.ci = verify_area(VERIFY_WRITE, (void *) arg, sizeof(int));
i743drivers/char/vt.cif (i)
i744drivers/char/vt.creturn i;
i745drivers/char/vt.cfor (i = 0; i < MAX_NR_CONSOLES; ++i)
i746drivers/char/vt.cif (! VT_IS_IN_USE(i))
i748drivers/char/vt.cput_user(i < MAX_NR_CONSOLES ? (i+1) : -1, (int *) arg);
i762drivers/char/vt.ci = vc_allocate(arg);
i763drivers/char/vt.cif (i)
i764drivers/char/vt.creturn i;
i820drivers/char/vt.ci = vc_allocate(newvt);
i821drivers/char/vt.cif (i)
i822drivers/char/vt.creturn i;
i849drivers/char/vt.cfor (i=1; i<MAX_NR_CONSOLES; i++)
i850drivers/char/vt.cif (! VT_BUSY(i))
i851drivers/char/vt.cvc_disallocate(i);
i868drivers/char/vt.ci = verify_area(VERIFY_READ, (void *)vtsizes, sizeof(struct vt_sizes));
i869drivers/char/vt.cif (i)
i870drivers/char/vt.creturn i;
i873drivers/char/vt.ci = vc_resize(ll, cc);
i874drivers/char/vt.creturn i ? i :   kd_size_changed(ll, cc);
i883drivers/char/vt.ci = verify_area(VERIFY_READ, (void *)vtconsize, sizeof(struct vt_consize));
i884drivers/char/vt.cif (i)
i885drivers/char/vt.creturn i;
i922drivers/char/vt.ci = vc_resize(ll, cc);
i923drivers/char/vt.cif (i)
i924drivers/char/vt.creturn i;
i963drivers/char/vt.ci = verify_area(VERIFY_READ, (void *)arg,
i965drivers/char/vt.cif (i) return i;
i971drivers/char/vt.ci = con_set_font(cfdarg.chardata,
i973drivers/char/vt.cif (i)
i974drivers/char/vt.creturn i;
i975drivers/char/vt.ci = con_adjust_height(cfdarg.charheight);
i976drivers/char/vt.creturn (i <= 0) ? i : kd_size_changed(i, 0);
i988drivers/char/vt.ci = verify_area(VERIFY_WRITE, (void *)arg,
i990drivers/char/vt.cif (i) return i;  
i993drivers/char/vt.ci = cfdarg.charcount;
i1000drivers/char/vt.cif ( i < nchar )
i1027drivers/char/vt.ci = verify_area(VERIFY_READ, (void *)arg, sizeof(struct unimapinit));
i1028drivers/char/vt.cif (i)
i1029drivers/char/vt.creturn i;
i1042drivers/char/vt.ci = verify_area(VERIFY_READ, (void *)arg, sizeof(struct unimapdesc));
i1043drivers/char/vt.cif (i == 0) {
i1047drivers/char/vt.ci = verify_area(VERIFY_READ, (void *) list,
i1050drivers/char/vt.cif (i)
i1051drivers/char/vt.creturn i;
i1060drivers/char/vt.ci = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct unimapdesc));
i1061drivers/char/vt.cif (i == 0) {
i1066drivers/char/vt.ci = verify_area(VERIFY_WRITE, (void *) list,
i1069drivers/char/vt.cif (i)
i1070drivers/char/vt.creturn i;
i200drivers/net/3c501.cint i;
i208drivers/net/3c501.cfor (i = 0; netcard_portlist[i]; i++) {
i209drivers/net/3c501.cint ioaddr = netcard_portlist[i];
i229drivers/net/3c501.cint i;
i232drivers/net/3c501.cfor (i = 0; i < 6; i++) {
i233drivers/net/3c501.coutw(i, ioaddr + EL1_DATAPTR);
i234drivers/net/3c501.cstation_addr[i] = inb(ioaddr + EL1_SAPROM);
i612drivers/net/3c501.cint i;
i613drivers/net/3c501.cfor (i = 0; i < 6; i++)  /* Set the station address. */
i614drivers/net/3c501.coutb(dev->dev_addr[i], ioaddr + i);
i92drivers/net/3c503.cint i;
i95drivers/net/3c503.cfor(i = 7; i >= 0; i--, base_bits >>= 1)
i100drivers/net/3c503.cif (check_region(netcard_portlist[i], EL2_IO_EXTENT))
i102drivers/net/3c503.cif (el2_probe1(dev, netcard_portlist[i]) == 0)
i118drivers/net/3c503.cint i;
i126drivers/net/3c503.cfor (i = 0; netcard_portlist[i]; i++) {
i127drivers/net/3c503.cint ioaddr = netcard_portlist[i];
i144drivers/net/3c503.cint i, iobase_reg, membase_reg, saved_406;
i189drivers/net/3c503.cfor (i = 0; i < 6; i++)
i190drivers/net/3c503.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
i222drivers/net/3c503.cfor (i = 1; i < EL2_MEMSIZE/sizeof(mem_base[0]); i++) {
i223drivers/net/3c503.cmem_base[i] = memtest_value;
i225drivers/net/3c503.c|| mem_base[i] != memtest_value) {
i231drivers/net/3c503.cmem_base[i] = 0;
i379drivers/net/3c503.cint i;        /* Buffer index */
i404drivers/net/3c503.cfor(i = 0; i < count; i++) {
i405drivers/net/3c503.cif (i % 8 == 0)
i407drivers/net/3c503.cif (++boguscount > (i<<3) + 32) {
i409drivers/net/3c503.cdev->name, i, count, boguscount);
i412drivers/net/3c503.coutb(buf[i], E33G_FIFOH);
i424drivers/net/3c503.cunsigned int i;
i448drivers/net/3c503.cfor(i = 0; i < count; i++) {
i449drivers/net/3c503.cif (i % 8 == 0)
i451drivers/net/3c503.cif (++boguscount > (i<<3) + 32) {
i453drivers/net/3c503.cdev->name, i, count, boguscount);
i457drivers/net/3c503.cbuf[i] = inb_p(E33G_FIFOH);
i322drivers/net/3c505.cint i;
i347drivers/net/3c505.cfor (i = 0; cont && (i < pcb->length); i++) {
i348drivers/net/3c505.coutb_command(pcb->data.raw[i], dev->base_addr);
i361drivers/net/3c505.ci = GET_ASF(dev->base_addr);
i362drivers/net/3c505.cif ((i == ASF_PCB_ACK) || (i == ASF_PCB_NAK))
i366drivers/net/3c505.cif (i == ASF_PCB_ACK) {
i370drivers/net/3c505.celse if (i == ASF_PCB_NAK) {
i398drivers/net/3c505.cint i, j;
i437drivers/net/3c505.ci = 0;
i442drivers/net/3c505.cpcb->data.raw[i++] = inb_command(dev->base_addr);
i443drivers/net/3c505.cif (i > MAX_PCB_DATA)
i444drivers/net/3c505.cINVALID_PCB_MSG(i);
i453drivers/net/3c505.ctotal_length = pcb->data.raw[--i];
i544drivers/net/3c505.cregister int i;
i575drivers/net/3c505.cfor (i = 0; i < (rlen/2); i++) {
i597drivers/net/3c505.cfor (i = 0; i < (rlen/2); i++) { 
i604drivers/net/3c505.cfilename,__LINE__, i, rlen/2);  
i933drivers/net/3c505.cint i;
i967drivers/net/3c505.cfor (i = 0; i < (nlen/2);i++) {
i974drivers/net/3c505.cdev->name,filename,__LINE__, i, nlen/2);
i1166drivers/net/3c505.cint i;
i1176drivers/net/3c505.cfor (i=0;i<num_addrs;i++)
i1177drivers/net/3c505.cmemcpy(adapter->tx_pcb.data.multicast[i], addrs+6*i,6);
i1361drivers/net/3c505.cint i;
i1424drivers/net/3c505.cfor (i = 0; i < 6; i++) 
i1425drivers/net/3c505.cdev->dev_addr[i] = adapter.rx_pcb.data.eth_addr[i];
i309drivers/net/3c507.cint i;
i316drivers/net/3c507.cfor (i = 0; netcard_portlist[i]; i++) {
i317drivers/net/3c507.cint ioaddr = netcard_portlist[i];
i330drivers/net/3c507.cint i, irq, irqval;
i336drivers/net/3c507.cfor(i = 0; i < 255; i++) {
i377drivers/net/3c507.cfor (i = 0; i < 6; i++) {
i378drivers/net/3c507.cdev->dev_addr[i] = inb(ioaddr + i);
i379drivers/net/3c507.cprintk(" %02x", dev->dev_addr[i]);
i118drivers/net/3c509.cshort lrs_state = 0xff, i;
i140drivers/net/3c509.cfor (i = 0; i < 3; i++)
i141drivers/net/3c509.cphys_addr[i] = htons(read_eeprom(ioaddr, i));
i154drivers/net/3c509.cfor (i = 0; i < 8; i++)
i155drivers/net/3c509.cif ((mca_adaptor_id(i) | 1) == 0x627c) {
i156drivers/net/3c509.cioaddr = mca_pos_base_addr(i);
i159drivers/net/3c509.cfor (i = 0; i < 3; i++)
i160drivers/net/3c509.cphys_addr[i] = htons(read_eeprom(ioaddr, i));
i176drivers/net/3c509.cfor(i = 0; i < 255; i++) {
i195drivers/net/3c509.cfor (i = 0; i < 3; i++) {
i196drivers/net/3c509.cphys_addr[i] = htons(id_read_eeprom(i));
i236drivers/net/3c509.cfor (i = 0; i < 6; i++)
i237drivers/net/3c509.cprintk(" %2.2x", dev->dev_addr[i]);
i303drivers/net/3c509.cint i;
i329drivers/net/3c509.cfor (i = 0; i < 6; i++)
i330drivers/net/3c509.coutb(dev->dev_addr[i], ioaddr + i);
i344drivers/net/3c509.cfor (i = 0; i < 9; i++)
i345drivers/net/3c509.cinb(ioaddr + i);
i449drivers/net/3c509.cint i = 4;
i451drivers/net/3c509.cwhile (--i > 0  &&  (tx_status = inb(ioaddr + TX_STATUS)) > 0) {
i467drivers/net/3c509.cint i = 0;
i500drivers/net/3c509.cif (++i > 10) {
i624drivers/net/8390.cint i;
i653drivers/net/8390.cfor(i = 0; i < 6; i++) {
i654drivers/net/8390.coutb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i);
i658drivers/net/8390.cfor(i = 0; i < 8; i++)
i659drivers/net/8390.coutb_p(0xff, e8390_base + EN1_MULT + i);
i97drivers/net/ac3200.cint i;
i102drivers/net/ac3200.cfor(i = 0; i < 6; i++)
i103drivers/net/ac3200.cprintk(" %02x", inb(ioaddr + AC_SA_PROM + i));
i118drivers/net/ac3200.cfor (i = 0; i < 4; i++)
i125drivers/net/ac3200.cfor(i = 0; i < ETHER_ADDR_LEN; i++)
i126drivers/net/ac3200.cdev->dev_addr[i] = inb(ioaddr + AC_SA_PROM + i);
i150drivers/net/ac3200.cfor (i = 0; i < 7; i++)
i151drivers/net/ac3200.cif (addrmap[i] == dev->mem_start)
i153drivers/net/ac3200.cif (i >= 7)
i154drivers/net/ac3200.ci = 0;
i155drivers/net/ac3200.coutb((inb(ioaddr + AC_CONFIG) & ~7) | i, ioaddr + AC_CONFIG);
i203drivers/net/apricot.cint i;
i210drivers/net/apricot.cfor (i = 0; i < num; i++)
i219drivers/net/apricot.cif (i == 0)
i231drivers/net/apricot.cif (i != 0)
i234drivers/net/apricot.creturn (i);
i540drivers/net/apricot.cint i;
i550drivers/net/apricot.ci = init_rx_bufs(dev, RX_RING_SIZE);
i552drivers/net/apricot.cif ((i = init_rx_bufs(dev, RX_RING_SIZE)) < RX_RING_SIZE)
i553drivers/net/apricot.cprintk("%s: only able to allocate %d receive buffers\n", dev->name, i);
i555drivers/net/apricot.cif (i < 4)
i671drivers/net/apricot.cint i;
i674drivers/net/apricot.cfor (i = 0; i < 6; i++)
i675drivers/net/apricot.cprintk(" %2.2X", (unsigned char)add[i]);
i679drivers/net/apricot.cfor (i = 0; i < 6; i++)
i680drivers/net/apricot.cprintk(" %2.2X", (unsigned char)add[i+6]);
i687drivers/net/apricot.cint i;
i699drivers/net/apricot.cfor (i = 0; i < 8; i++)
i701drivers/net/apricot.ceth_addr[i] = inb(ioaddr+8+i);
i702drivers/net/apricot.cchecksum += eth_addr[i];
i723drivers/net/apricot.cfor (i = 0; i < 6; i++)
i724drivers/net/apricot.cprintk(" %2.2X", dev->dev_addr[i] = eth_addr[i]);
i1142drivers/net/arcnet.cshort i;
i1143drivers/net/arcnet.cfor( i=0; i< skb->len; i++)
i1145drivers/net/arcnet.cif( i%16 == 0 ) printk("\n[%04hX] ",i);
i1146drivers/net/arcnet.cprintk("%02hX ",((unsigned char*)skb->data)[i]);
i1966drivers/net/arcnet.cshort i;
i1967drivers/net/arcnet.cfor( i=0; i< skb->len; i++)
i1969drivers/net/arcnet.cif( i%16 == 0 ) printk("\n[%04hX] ",i);
i1970drivers/net/arcnet.cprintk("%02hX ",((unsigned char*)skb->data)[i]);
i2130drivers/net/arcnet.cshort i;
i2131drivers/net/arcnet.cfor( i=0; i< skb->len; i++)
i2133drivers/net/arcnet.cif( i%16 == 0 ) printk("\n[%04hX] ",i);
i2134drivers/net/arcnet.cprintk("%02hX ",((unsigned char*)skb->data)[i]);
i2175drivers/net/arcnet.cshort i;
i2177drivers/net/arcnet.cfor(i=0; i<skb->len; i++)
i2179drivers/net/arcnet.cif (i%16==0)
i2180drivers/net/arcnet.cprintk("\n[%04hX] ",i);
i2182drivers/net/arcnet.cprintk("%02hX ",((u_char *)skb->data)[i]);
i144drivers/net/at1700.cint i;
i152drivers/net/at1700.cfor (i = 0; at1700_probe_list[i]; i++) {
i153drivers/net/at1700.cint ioaddr = at1700_probe_list[i];
i175drivers/net/at1700.cunsigned int i, irq;
i218drivers/net/at1700.cfor(i = 0; i < 3; i++) {
i219drivers/net/at1700.cunsigned short eeprom_val = read_eeprom(ioaddr, 4+i);
i221drivers/net/at1700.c((unsigned short *)dev->dev_addr)[i] = ntohs(eeprom_val);
i240drivers/net/at1700.cfor (i = 0; i < 6; i++)
i241drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
i245drivers/net/at1700.cfor (i = 0; i < 8; i++)
i246drivers/net/at1700.coutb(0x00, ioaddr + 8 + i);
i281drivers/net/at1700.cint i;
i291drivers/net/at1700.cfor (i = 9; i >= 0; i--) {
i292drivers/net/at1700.cshort dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0;
i301drivers/net/at1700.cfor (i = 16; i > 0; i--) {
i324drivers/net/at1700.cint i;
i330drivers/net/at1700.cfor (i = 0; i < 6; i++)
i331drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
i335drivers/net/at1700.cfor (i = 0; i < 8; i++)
i336drivers/net/at1700.coutb(0x00, ioaddr + 8 + i);
i556drivers/net/at1700.cint i;
i557drivers/net/at1700.cfor (i = 0; i < 20; i++) {
i566drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), i);
i263drivers/net/atp.cint i;
i272drivers/net/atp.cfor (i = 0; i < 3; i++)
i273drivers/net/atp.c((unsigned short *)dev->dev_addr)[i] =
i274drivers/net/atp.cntohs(eeprom_op(ioaddr, EE_READ(sa_offset + i)));
i344drivers/net/atp.cint i;
i348drivers/net/atp.cfor (i = 0; i < 6; i++)
i349drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]);
i583drivers/net/atp.cint i;
i584drivers/net/atp.cfor (i = 0; i < 6; i++)
i585drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]);
i613drivers/net/atp.cint i;
i618drivers/net/atp.cfor (i = 0; i < 6; i++)
i620drivers/net/atp.cif (read_cmd_byte(ioaddr, PAR0 + i) != atp_timed_dev->dev_addr[i])
i623drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, atp_timed_dev->dev_addr[i]);
i624drivers/net/atp.cif (i == 2)
i626drivers/net/atp.celse if (i == 3)
i628drivers/net/atp.celse if (i == 4)
i634drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, atp_timed_dev->dev_addr[i]);
i63drivers/net/auto_irq.cint i, mask;
i68drivers/net/auto_irq.cfor (i = 0; i < 16; i++) {
i69drivers/net/auto_irq.cif (test_bit(i, &irqs_busy) == 0
i70drivers/net/auto_irq.c&& request_irq(i, autoirq_probe, SA_INTERRUPT, "irq probe") == 0)
i71drivers/net/auto_irq.cset_bit(i, (void *)&irq_handled);  /* irq_handled |= 1 << i;*/
i82drivers/net/auto_irq.cfor (i = 0, mask = 0x01; i < 16; i++, mask <<= 1) {
i86drivers/net/auto_irq.cprintk(" Spurious interrupt on IRQ %d\n", i);
i88drivers/net/auto_irq.cfree_irq(i);
i96drivers/net/auto_irq.cint i;
i107drivers/net/auto_irq.cfor (i = 0; i < 16; i++) {
i108drivers/net/auto_irq.cif (test_bit(i, (void *)&irq_handled))
i109drivers/net/auto_irq.cfree_irq(i);
i486drivers/net/de4x5.cint i;\
i487drivers/net/de4x5.ci=inl(DE4X5_BMR);\
i489drivers/net/de4x5.coutl(i | BMR_SWR, DE4X5_BMR);\
i491drivers/net/de4x5.coutl(i, DE4X5_BMR);\
i493drivers/net/de4x5.cfor (i=0;i<5;i++) {inl(DE4X5_BMR); dce_ms_delay(1);}\
i533drivers/net/de4x5.cint tmpbus, tmpchs, i, j, status=0;
i574drivers/net/de4x5.cfor (i = 0; i < ETH_ALEN - 1; i++) {       /* get the ethernet addr. */
i575drivers/net/de4x5.cprintk("%2.2x:", dev->dev_addr[i]);
i577drivers/net/de4x5.cprintk("%2.2x,\n", dev->dev_addr[i]);
i633drivers/net/de4x5.cfor (i=0; i<NUM_RX_DESC; i++) {
i634drivers/net/de4x5.clp->rx_ring[i].status = 0;
i635drivers/net/de4x5.clp->rx_ring[i].des1 = RX_BUFF_SZ;
i636drivers/net/de4x5.clp->rx_ring[i].buf = virt_to_bus(tmp + i * RX_BUFF_SZ);
i637drivers/net/de4x5.clp->rx_ring[i].next = (u32)NULL;
i676drivers/net/de4x5.cfor (dev->irq=0,i=0; (i<sizeof(de4x5_irq)) && (!dev->irq); i++) {
i677drivers/net/de4x5.cif (irqnum == de4x5_irq[i]) {
i760drivers/net/de4x5.cint i, status = 0;
i785drivers/net/de4x5.cfor (i=0;i<6;i++){
i786drivers/net/de4x5.cprintk("%2.2x:",(short)dev->dev_addr[i]);
i792drivers/net/de4x5.cfor (i=0;i<lp->rxRingSize-1;i++){
i793drivers/net/de4x5.cif (i < 3) {
i794drivers/net/de4x5.cprintk("0x%8.8lx  ",(u_long)&lp->rx_ring[i].status);
i797drivers/net/de4x5.cprintk("...0x%8.8lx\n",(u_long)&lp->rx_ring[i].status);
i799drivers/net/de4x5.cfor (i=0;i<lp->txRingSize-1;i++){
i800drivers/net/de4x5.cif (i < 3) {
i801drivers/net/de4x5.cprintk("0x%8.8lx  ", (u_long)&lp->tx_ring[i].status);
i804drivers/net/de4x5.cprintk("...0x%8.8lx\n", (u_long)&lp->tx_ring[i].status);
i806drivers/net/de4x5.cfor (i=0;i<lp->rxRingSize-1;i++){
i807drivers/net/de4x5.cif (i < 3) {
i808drivers/net/de4x5.cprintk("0x%8.8x  ",lp->rx_ring[i].buf);
i811drivers/net/de4x5.cprintk("...0x%8.8x\n",lp->rx_ring[i].buf);
i813drivers/net/de4x5.cfor (i=0;i<lp->txRingSize-1;i++){
i814drivers/net/de4x5.cif (i < 3) {
i815drivers/net/de4x5.cprintk("0x%8.8x  ", lp->tx_ring[i].buf);
i818drivers/net/de4x5.cprintk("...0x%8.8x\n", lp->tx_ring[i].buf);
i873drivers/net/de4x5.cint i, j, status = 0;
i898drivers/net/de4x5.cfor (i = 0; i < lp->rxRingSize; i++) {
i899drivers/net/de4x5.clp->rx_ring[i].status = R_OWN;
i902drivers/net/de4x5.cfor (i = 0; i < lp->txRingSize; i++) {
i903drivers/net/de4x5.clp->tx_ring[i].status = 0;
i919drivers/net/de4x5.cfor (j=0, i=jiffies;(i<=jiffies+HZ/100) && (j==0);) {
i949drivers/net/de4x5.cint i, status = 0;
i983drivers/net/de4x5.cfor (i=lp->tx_old; i!=lp->tx_new; i=(++i)%lp->txRingSize) {
i984drivers/net/de4x5.cif (lp->skb[i] != NULL) {
i985drivers/net/de4x5.cif (lp->skb[i]->len != FAKE_FRAME_LEN) {
i986drivers/net/de4x5.cif (lp->tx_ring[i].status == T_OWN) {
i987drivers/net/de4x5.cdev_queue_xmit(lp->skb[i], dev, SOPRI_NORMAL);
i989drivers/net/de4x5.cdev_kfree_skb(lp->skb[i], FREE_WRITE);
i992drivers/net/de4x5.cdev_kfree_skb(lp->skb[i], FREE_WRITE);
i994drivers/net/de4x5.clp->skb[i] = NULL;
i1135drivers/net/de4x5.cint i, entry;
i1174drivers/net/de4x5.cfor (i=1; i<DE4X5_PKT_STAT_SZ-1; i++) {
i1175drivers/net/de4x5.cif (pkt_len < (i*DE4X5_PKT_BIN_SZ)) {
i1176drivers/net/de4x5.clp->pktStats.bins[i]++;
i1177drivers/net/de4x5.ci = DE4X5_PKT_STAT_SZ;
i1427drivers/net/de4x5.cint i, j, bit, byte;
i1441drivers/net/de4x5.cfor (i=0;i<num_addrs;i++) {            /* for each address in the list */
i1469drivers/net/de4x5.cfor (i=0; i<ETH_ALEN; i++) { 
i1470drivers/net/de4x5.c*(pa + (i&1)) = *addrs++;
i1471drivers/net/de4x5.cif (i & 0x01) pa += 4;
i1486drivers/net/de4x5.cint i, maxSlots, status;
i1500drivers/net/de4x5.ci = 1;
i1504drivers/net/de4x5.ci = (ioaddr >> 12);
i1505drivers/net/de4x5.cmaxSlots = i + 1;
i1508drivers/net/de4x5.cfor (status = -ENODEV; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) {
i1807drivers/net/de4x5.cint i, linkBad;
i1813drivers/net/de4x5.cfor (linkBad=1,i=0;(i<t_3s) && linkBad && !(sisr & SISR_NCR);i++) {
i2021drivers/net/de4x5.cint i, entry, linkBad;
i2037drivers/net/de4x5.cfor (linkBad=1,i=0;(i<t_3s) && linkBad;i++) {
i2098drivers/net/de4x5.cs32 i = 2048, j;
i2103drivers/net/de4x5.ci = 8192;
i2105drivers/net/de4x5.ci = 819;
i2109drivers/net/de4x5.coutl((s32)(msec * 10000)/i, DE4X5_GPT);
i2119drivers/net/de4x5.cint i;
i2122drivers/net/de4x5.cfor (i=0; i<ETH_ALEN; i++) {             /* Use this source address */
i2123drivers/net/de4x5.c*buf++ = dev->dev_addr[i];
i2125drivers/net/de4x5.cfor (i=0; i<ETH_ALEN; i++) {             /* Use this destination address */
i2126drivers/net/de4x5.c*buf++ = dev->dev_addr[i];
i2150drivers/net/de4x5.cu_int i;
i2152drivers/net/de4x5.cfor (i=0; i<msec; i++) {
i2165drivers/net/de4x5.cu_int i;
i2184drivers/net/de4x5.cfor (i=0;(*signatures[i] != '\0') && (*name == '\0');i++) {
i2185drivers/net/de4x5.cif (strstr(ManCode, signatures[i]) != NULL) {
i2216drivers/net/de4x5.cint i, j, tmp, status = 0;
i2225drivers/net/de4x5.cfor (i=0,j=0;(j<sigLength) && (i<PROBE_LENGTH+sigLength-1);i++) {
i2249drivers/net/de4x5.cfor (i=0; i<(sizeof(struct de4x5_srom)>>1); i++) {
i2250drivers/net/de4x5.c*p++ = srom_rd(aprom_addr, i);
i2260drivers/net/de4x5.cint i, k, tmp, status = 0;
i2264drivers/net/de4x5.cfor (i=0,k=0,j=0;j<3;j++) {
i2272drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
i2275drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
i2277drivers/net/de4x5.cdev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++;
i2278drivers/net/de4x5.cdev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++;
i2282drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
i2284drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
i2343drivers/net/de4x5.cint i;
i2347drivers/net/de4x5.cfor (i=0; i<6; i++, a <<= 1) {
i2352drivers/net/de4x5.ci = (getfrom_srom(addr) >> 3) & 0x01;
i2353drivers/net/de4x5.cif (i != 0) {
i2363drivers/net/de4x5.cint i;
i2367drivers/net/de4x5.cfor (i=0; i<16; i++) {
i2416drivers/net/de4x5.cint i;
i2425drivers/net/de4x5.cfor (pa=lp->setup_frame+IMPERF_PA_OFFSET, i=0; i<ETH_ALEN; i++) {
i2426drivers/net/de4x5.c*(pa + i) = dev->dev_addr[i];                 /* Host address */
i2427drivers/net/de4x5.cif (i & 0x01) pa += 2;
i2431drivers/net/de4x5.cfor (i=0; i<ETH_ALEN; i++) { /* Host address */
i2432drivers/net/de4x5.c*(pa + (i&1)) = dev->dev_addr[i];
i2433drivers/net/de4x5.cif (i & 0x01) pa += 4;
i2435drivers/net/de4x5.cfor (i=0; i<ETH_ALEN; i++) { /* Broadcast address */
i2436drivers/net/de4x5.c*(pa + (i&1)) = (char) 0xff;
i2437drivers/net/de4x5.cif (i & 0x01) pa += 4;
i2491drivers/net/de4x5.cint i, j, status = 0;
i2505drivers/net/de4x5.cfor (i=0; i<ETH_ALEN; i++) {
i2506drivers/net/de4x5.ctmp.addr[i] = dev->dev_addr[i];
i2520drivers/net/de4x5.cfor (i=0; i<ETH_ALEN; i++) {
i2521drivers/net/de4x5.cdev->dev_addr[i] = tmp.addr[i];
i2663drivers/net/de4x5.cfor (i=0; i<ETH_ALEN; i++) {
i2664drivers/net/de4x5.ctmp.addr[j++] = dev->dev_addr[i];
i2670drivers/net/de4x5.cfor (i=0;i<lp->rxRingSize-1;i++){
i2671drivers/net/de4x5.cif (i < 3) {
i2672drivers/net/de4x5.ctmp.lval[j>>2] = (long)&lp->rx_ring[i].status; j+=4;
i2675drivers/net/de4x5.ctmp.lval[j>>2] = (long)&lp->rx_ring[i].status; j+=4;
i2676drivers/net/de4x5.cfor (i=0;i<lp->txRingSize-1;i++){
i2677drivers/net/de4x5.cif (i < 3) {
i2678drivers/net/de4x5.ctmp.lval[j>>2] = (long)&lp->tx_ring[i].status; j+=4;
i2681drivers/net/de4x5.ctmp.lval[j>>2] = (long)&lp->tx_ring[i].status; j+=4;
i2683drivers/net/de4x5.cfor (i=0;i<lp->rxRingSize-1;i++){
i2684drivers/net/de4x5.cif (i < 3) {
i2685drivers/net/de4x5.ctmp.lval[j>>2] = (s32)lp->rx_ring[i].buf; j+=4;
i2688drivers/net/de4x5.ctmp.lval[j>>2] = (s32)lp->rx_ring[i].buf; j+=4;
i2689drivers/net/de4x5.cfor (i=0;i<lp->txRingSize-1;i++){
i2690drivers/net/de4x5.cif (i < 3) {
i2691drivers/net/de4x5.ctmp.lval[j>>2] = (s32)lp->tx_ring[i].buf; j+=4;
i2694drivers/net/de4x5.ctmp.lval[j>>2] = (s32)lp->tx_ring[i].buf; j+=4;
i2696drivers/net/de4x5.cfor (i=0;i<lp->rxRingSize;i++){
i2697drivers/net/de4x5.ctmp.lval[j>>2] = lp->rx_ring[i].status; j+=4;
i2699drivers/net/de4x5.cfor (i=0;i<lp->txRingSize;i++){
i2700drivers/net/de4x5.ctmp.lval[j>>2] = lp->tx_ring[i].status; j+=4;
i588drivers/net/de600.cint    i;
i629drivers/net/de600.cfor (i = size; i > 0; --i, ++buffer)
i647drivers/net/de600.cint  i;
i674drivers/net/de600.cfor (i = 0; i < ETH_ALEN; i++) {
i675drivers/net/de600.cdev->dev_addr[i] = de600_read_byte(READ_DATA, dev);
i676drivers/net/de600.cdev->broadcast[i] = 0xff;
i701drivers/net/de600.cfor (i = 1; i < ETH_ALEN; i++)
i702drivers/net/de600.cprintk(":%02X",dev->dev_addr[i]);
i725drivers/net/de600.cint  i;
i771drivers/net/de600.cfor (i = 0; i < ETH_ALEN; i++)
i772drivers/net/de600.cde600_put_byte(dev->dev_addr[i]);
i720drivers/net/de620.cint i;
i745drivers/net/de620.cfor (i = 0; i < 6; ++i) { /* W_PARn = 0xaa + n */
i746drivers/net/de620.cde620_set_register(W_PAR0 + i, dev->dev_addr[i]);
i771drivers/net/de620.cif (((i = de620_get_register(R_STS)) & CHECK_MASK) != CHECK_OK) {
i776drivers/net/de620.c"! (%02x)\n", i);
i809drivers/net/de620.cint i;
i841drivers/net/de620.cfor (i = 1; i < ETH_ALEN; i++) {
i842drivers/net/de620.cprintk(":%2.2X", dev->dev_addr[i] = nic_data.NodeID[i]);
i843drivers/net/de620.cdev->broadcast[i] = 0xff;
i453drivers/net/depca.cint i, j, offset, netRAM, mem_len, status=0;
i482drivers/net/depca.cfor (i=0; i<ETH_ALEN - 1; i++) { /* get the ethernet address */
i483drivers/net/depca.cprintk("%2.2x:", dev->dev_addr[i]);
i485drivers/net/depca.cprintk("%2.2x", dev->dev_addr[i]);
i542drivers/net/depca.cfor (i=0, j = lp->rxRingMask; j>0; i++) {
i545drivers/net/depca.clp->rx_rlen = (s32)(i << 29);
i546drivers/net/depca.cfor (i=0, j = lp->txRingMask; j>0; i++) {
i549drivers/net/depca.clp->tx_rlen = (s32)(i << 29);
i594drivers/net/depca.cfor (dev->irq=0,i=0; (depca_irq[i]) && (!dev->irq); i++) {
i595drivers/net/depca.cif (irqnum == depca_irq[i]) {
i658drivers/net/depca.cint i, status = 0;
i688drivers/net/depca.cfor (i=0;i<lp->rxRingMask;i++){
i689drivers/net/depca.cif (i < 3) {
i690drivers/net/depca.cprintk("0x%8.8lx ", (long) &lp->rx_ring[i].base);
i693drivers/net/depca.cprintk("...0x%8.8lx\n", (long) &lp->rx_ring[i].base);
i695drivers/net/depca.cfor (i=0;i<lp->txRingMask;i++){
i696drivers/net/depca.cif (i < 3) {
i697drivers/net/depca.cprintk("0x%8.8lx ", (long) &lp->tx_ring[i].base);
i700drivers/net/depca.cprintk("...0x%8.8lx\n", (long) &lp->tx_ring[i].base);
i702drivers/net/depca.cfor (i=0;i<lp->rxRingMask;i++){
i703drivers/net/depca.cif (i < 3) {
i704drivers/net/depca.cprintk("0x%8.8x  ", readl(&lp->rx_ring[i].base));
i707drivers/net/depca.cprintk("...0x%8.8x\n", readl(&lp->rx_ring[i].base));
i709drivers/net/depca.cfor (i=0;i<lp->txRingMask;i++){
i710drivers/net/depca.cif (i < 3) {
i711drivers/net/depca.cprintk("0x%8.8x  ", readl(&lp->tx_ring[i].base));
i714drivers/net/depca.cprintk("...0x%8.8x\n", readl(&lp->tx_ring[i].base));
i719drivers/net/depca.cfor (i=0;i<ETH_ALEN-1;i++){
i720drivers/net/depca.cprintk("%2.2x:",(u_char)readb(&p->phys_addr[i]));
i722drivers/net/depca.cprintk("%2.2x\n",(u_char)readb(&p->phys_addr[i]));
i724drivers/net/depca.cfor (i=0;i<(HASH_TABLE_LEN >> 3)-1;i++){
i725drivers/net/depca.cprintk("%2.2x:",(u_char)readb(&p->mcast_table[i]));
i727drivers/net/depca.cprintk("%2.2x\n",(u_char)readb(&p->mcast_table[i]));
i771drivers/net/depca.cu_int i;
i781drivers/net/depca.cfor (i = 0; i <= lp->rxRingMask; i++) {
i782drivers/net/depca.cwritel((p=lp->dma_buffs+i*RX_BUFF_SZ) | R_OWN, &lp->rx_ring[i].base);
i783drivers/net/depca.cwritew(-RX_BUFF_SZ, &lp->rx_ring[i].buf_length);
i784drivers/net/depca.clp->rx_memcpy[i]=(char *)(p+lp->bus_offset);
i786drivers/net/depca.cfor (i = 0; i <= lp->txRingMask; i++) {
i787drivers/net/depca.cwritel((p=lp->dma_buffs+(i+lp->txRingMask+1)*TX_BUFF_SZ) & 0x00ffffff,
i788drivers/net/depca.c&lp->tx_ring[i].base);
i789drivers/net/depca.clp->tx_memcpy[i]=(char *)(p+lp->bus_offset);
i798drivers/net/depca.cfor (i = 0; i < ETH_ALEN; i++) {
i799drivers/net/depca.clp->init_block.phys_addr[i] = dev->dev_addr[i];
i925drivers/net/depca.cint i, entry;
i971drivers/net/depca.cfor (i=1; i<DEPCA_PKT_STAT_SZ-1; i++) {
i972drivers/net/depca.cif (pkt_len < (i*DEPCA_PKT_BIN_SZ)) {
i973drivers/net/depca.clp->pktStats.bins[i]++;
i974drivers/net/depca.ci = DEPCA_PKT_STAT_SZ;
i1120drivers/net/depca.cint i, status=0;
i1129drivers/net/depca.cfor (i=0;(i<100) && !(inw(DEPCA_DATA) & IDON); i++); 
i1131drivers/net/depca.cif (i!=100) {
i1136drivers/net/depca.cdev->name, i, lp->sh_mem, inw(DEPCA_DATA));
i1140drivers/net/depca.cdev->name, i, lp->sh_mem, inw(DEPCA_DATA));
i1200drivers/net/depca.cint i, j, bit, byte;
i1205drivers/net/depca.cfor (i=0; i<(HASH_TABLE_LEN>>3); i++) {
i1206drivers/net/depca.clp->init_block.mcast_table[i] = (char)0xff;
i1210drivers/net/depca.cfor (i=0; i<(HASH_TABLE_LEN>>3); i++){
i1211drivers/net/depca.clp->init_block.mcast_table[i]=0;
i1215drivers/net/depca.cfor (i=0;i<num_addrs;i++) {            /* for each address in the list */
i1247drivers/net/depca.cint i = num_depcas, maxSlots;
i1252drivers/net/depca.cif (i >= MAX_NUM_DEPCAS) return;             /* Too many ISA adapters */
i1257drivers/net/depca.cports[i] = ioaddr;
i1258drivers/net/depca.cmaxSlots = i + 1;
i1261drivers/net/depca.cfor (; (i<maxSlots) && (dev!=NULL) && ports[i]; i++) {
i1262drivers/net/depca.cif (DevicePresent(ports[i]) == 0) { 
i1263drivers/net/depca.cif (check_region(ports[i], DEPCA_TOTAL_SIZE) == 0) {
i1264drivers/net/depca.cif ((dev = alloc_device(dev, ports[i])) != NULL) {
i1265drivers/net/depca.cif (depca_hw_init(dev, ports[i]) == 0) {
i1271drivers/net/depca.cprintk("%s: region already allocated at 0x%04x.\n", dev->name,ports[i]);
i1285drivers/net/depca.cint i, maxSlots;
i1294drivers/net/depca.ci = 1;
i1298drivers/net/depca.ci = (ioaddr >> 12);
i1299drivers/net/depca.cmaxSlots = i + 1;
i1303drivers/net/depca.cfor (; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) {
i1440drivers/net/depca.cu_int i,j,k;
i1444drivers/net/depca.cfor (i=0;i<16;i++) {                  /* copy the first 16 bytes of ROM to */
i1445drivers/net/depca.ctmpstr[i] = readb(paddr+0xc000+i);  /* a temporary string */
i1449drivers/net/depca.cfor (i=0;*signatures[i]!='\0' && *name=='\0';i++) {
i1450drivers/net/depca.cfor (j=0,k=0;j<16 && k<strlen(signatures[i]);j++) {
i1451drivers/net/depca.cif (signatures[i][k] == tmpstr[j]) {              /* track signature */
i1457drivers/net/depca.cif (k == strlen(signatures[i])) {
i1458drivers/net/depca.cstrcpy(name,signatures[i]);
i1462drivers/net/depca.cadapter = i - 1;
i1494drivers/net/depca.cint i, j, status = 0;
i1509drivers/net/depca.cfor (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) {
i1537drivers/net/depca.cint i, k, tmp, status = 0;
i1542drivers/net/depca.cfor (i=0,k=0,j=0;j<3;j++) {
i1547drivers/net/depca.cdev->dev_addr[i++] = (u_char) tmp;
i1549drivers/net/depca.cdev->dev_addr[i++] = (u_char) tmp;
i1568drivers/net/depca.cint i, entry, end, len, status = 0;
i1587drivers/net/depca.cfor (i = entry; i != end; i = (++i) & lp->txRingMask) {
i1589drivers/net/depca.cwritel(readl(&lp->tx_ring[i].base) & ~T_FLAGS, &lp->tx_ring[i].base);
i1590drivers/net/depca.cwritew(0x0000, &lp->tx_ring[i].misc);       /* clears other error flags */
i1591drivers/net/depca.cwritew(-TX_BUFF_SZ, &lp->tx_ring[i].length);/* packet length in buffer */
i1604drivers/net/depca.cfor (i=end; i!=entry; --i) {
i1606drivers/net/depca.cwritel(readl(&lp->tx_ring[i].base) | T_OWN, &lp->tx_ring[i].base);
i1607drivers/net/depca.cif (i == 0) i=lp->txRingMask+1;
i1624drivers/net/depca.cu_int i;
i1643drivers/net/depca.cfor (i=0;(*signatures[i] != '\0') && (*name == '\0');i++) {
i1644drivers/net/depca.cif (strstr(ManCode, signatures[i]) != NULL) {
i1661drivers/net/depca.cint i, status = 0;
i1671drivers/net/depca.cfor (i=0; i<ETH_ALEN; i++) {
i1672drivers/net/depca.ctmp.addr[i] = dev->dev_addr[i];
i1684drivers/net/depca.cfor (i=0; i<ETH_ALEN; i++) {
i1685drivers/net/depca.cdev->dev_addr[i] = tmp.addr[i];
i1800drivers/net/depca.ci=0;
i1801drivers/net/depca.ctmp.sval[i++] = inw(DEPCA_NICSR);
i1803drivers/net/depca.ctmp.sval[i++] = inw(DEPCA_DATA);
i1804drivers/net/depca.cmemcpy(&tmp.sval[i], &lp->init_block, sizeof(struct depca_init));
i1805drivers/net/depca.cioc->len = i+sizeof(struct depca_init);
i133drivers/net/e2100.cint i, status;
i153drivers/net/e2100.cfor (i = 0; i < 6; i++)
i154drivers/net/e2100.cstation_addr[i] = inb(ioaddr + E21_SAPROM + i);
i160drivers/net/e2100.cfor (i = 0; i < 6; i++)
i161drivers/net/e2100.cprintk(" %02X", station_addr[i]);
i164drivers/net/e2100.cint irqlist[] = {15,11,10,12,5,9,3,4}, i;
i165drivers/net/e2100.cfor (i = 0; i < 8; i++)
i166drivers/net/e2100.cif (request_irq (irqlist[i], NULL, 0, "bogus") != -EBUSY) {
i167drivers/net/e2100.cdev->irq = irqlist[i];
i170drivers/net/e2100.cif (i >= 8) {
i196drivers/net/e2100.cfor(i = 0; i < 6; i++)
i197drivers/net/e2100.cif (station_addr[i] != inb(ioaddr + E21_SAPROM + 8 + i)) {
i286drivers/net/eepro.cint i;
i294drivers/net/eepro.cfor (i = 0; eepro_portlist[i]; i++) {
i295drivers/net/eepro.cint ioaddr = eepro_portlist[i];
i313drivers/net/eepro.cint i;
i357drivers/net/eepro.cfor (i=0; i < 6; i++) {
i358drivers/net/eepro.cdev->dev_addr[i] = ((unsigned char *) station_addr)[5-i];
i359drivers/net/eepro.cprintk("%c%02x", i ? ':' : ' ', dev->dev_addr[i]);
i369drivers/net/eepro.ci = read_eeprom(ioaddr, 1);
i370drivers/net/eepro.cswitch (i & 0x07) {
i398drivers/net/eepro.ci = read_eeprom(ioaddr, 5);
i399drivers/net/eepro.cif (i & 0x2000) /* bit 13 of EEPROM word 5 */
i508drivers/net/eepro.cint i, ioaddr = dev->base_addr;
i536drivers/net/eepro.cfor (i=0; i < 6; i++) 
i537drivers/net/eepro.coutb(dev->dev_addr[i] , ioaddr + I_ADD_REG0 + i); 
i817drivers/net/eepro.cint i, boguscount = 0;
i835drivers/net/eepro.cfor (i = 0; i < num_addrs; i++) {
i848drivers/net/eepro.ci = lp->tx_end + XMT_HEADER + 6*(num_addrs + 1);
i853drivers/net/eepro.coutw(i, ioaddr + IO_PORT);
i857drivers/net/eepro.clp->tx_end = i ;
i858drivers/net/eepro.c} else lp->tx_start = lp->tx_end = i ;
i865drivers/net/eepro.ci = inb(ioaddr);
i867drivers/net/eepro.cif (i & 0x20) { /* command ABORTed */
i871drivers/net/eepro.c} else if ((i & 0x0f) == 0x03)  { /* MC-Done */
i896drivers/net/eepro.cint i;
i906drivers/net/eepro.cfor (i = 8; i >= 0; i--) {
i907drivers/net/eepro.cshort outval = (read_cmd & (1 << i)) ? ctrl_val | EEDI
i917drivers/net/eepro.cfor (i = 16; i > 0; i--) {
i326drivers/net/eexpress.cint i;
i328drivers/net/eexpress.cfor (i = 16; i > 0; i--)
i332drivers/net/eexpress.cfor (i = 4; i > 0; i--) {
i348drivers/net/eexpress.cint i;
i369drivers/net/eexpress.cfor (i = 0; i < 6; i++) {
i370drivers/net/eexpress.cdev->dev_addr[i] = ((unsigned char*)station_addr)[5-i];
i371drivers/net/eexpress.cprintk(" %02x", dev->dev_addr[i]);
i611drivers/net/eexpress.cint i;
i614drivers/net/eexpress.cfor (i = 0; i < 0x20; i += 2)
i719drivers/net/eexpress.cint i;
i728drivers/net/eexpress.cfor (i = 8; i >= 0; i--) {
i729drivers/net/eexpress.cshort outval = (read_cmd & (1 << i)) ? ctrl_val | EE_DATA_WRITE
i739drivers/net/eexpress.cfor (i = 16; i > 0; i--) {
i210drivers/net/eql.cint i;
i238drivers/net/eql.cfor (i = 0; i < DEV_NUMBUFFS; i++)
i239drivers/net/eql.cskb_queue_head_init(&dev->buffs[i]);
i966drivers/net/eql.cint i;
i970drivers/net/eql.cfor (i = 1, slave = eql_first_slave (queue);
i971drivers/net/eql.ci <= eql_number_slaves (queue);
i972drivers/net/eql.ci++, slave = eql_next_slave (queue, slave))
i1125drivers/net/eql.cint i;
i1131drivers/net/eql.cfor (i = 1, slave = eql_first_slave (eql->queue);
i1132drivers/net/eql.ci <= eql_number_slaves (eql->queue);
i1133drivers/net/eql.ci++, slave = eql_next_slave (eql->queue, slave))
i335drivers/net/ewrk3.cint i;\
i337drivers/net/ewrk3.cfor (i=0;i<5000;i++) inb(EWRK3_CSR);\
i400drivers/net/ewrk3.cint i, status=0;
i425drivers/net/ewrk3.cfor (chksum=0, i=0; i<EEPROM_MAX; i+=2) {
i431drivers/net/ewrk3.ctmp.val = (short)Read_EEPROM(iobase, (i>>1));
i432drivers/net/ewrk3.ceeprom_image[i] = tmp.c[0];
i433drivers/net/ewrk3.ceeprom_image[i+1] = tmp.c[1];
i435drivers/net/ewrk3.cchksum += eeprom_image[i] + eeprom_image[i+1];
i472drivers/net/ewrk3.cfor (i = 0;i < ETH_ALEN - 1;i++) { /* get the ethernet address */
i473drivers/net/ewrk3.cprintk("%2.2x:", dev->dev_addr[i] = 
i474drivers/net/ewrk3.ceeprom_image[EEPROM_PADDR0 + i]);
i475drivers/net/ewrk3.coutb(eeprom_image[EEPROM_PADDR0 + i], EWRK3_PAR0 + i);
i477drivers/net/ewrk3.cprintk("%2.2x,\n",dev->dev_addr[i] = eeprom_image[EEPROM_PADDR0 + i]);
i478drivers/net/ewrk3.coutb(eeprom_image[EEPROM_PADDR0 + i], EWRK3_PAR0 + i);
i481drivers/net/ewrk3.cfor (i = 0; i < ETH_ALEN - 1; i++) { /* get the ethernet addr. */
i482drivers/net/ewrk3.cprintk("%2.2x:", dev->dev_addr[i] = inb(EWRK3_APROM));
i483drivers/net/ewrk3.coutb(dev->dev_addr[i], EWRK3_PAR0 + i);
i485drivers/net/ewrk3.cprintk("%2.2x,\n", dev->dev_addr[i] = inb(EWRK3_APROM));
i486drivers/net/ewrk3.coutb(dev->dev_addr[i], EWRK3_PAR0 + i);
i651drivers/net/ewrk3.cint i, iobase = dev->base_addr;
i676drivers/net/ewrk3.cfor (i=0;i<6;i++){
i677drivers/net/ewrk3.cprintk("%2.2x:",(short)dev->dev_addr[i]);
i847drivers/net/ewrk3.cint i;
i854drivers/net/ewrk3.cfor (i=0; i<skb->len; i++) {
i977drivers/net/ewrk3.cint i, iobase = dev->base_addr;
i1046drivers/net/ewrk3.cfor (i=0; i<pkt_len; i++) {
i1065drivers/net/ewrk3.cfor (i=1; i<EWRK3_PKT_STAT_SZ-1; i++) {
i1066drivers/net/ewrk3.cif (pkt_len < i*EWRK3_PKT_BIN_SZ) {
i1067drivers/net/ewrk3.clp->pktStats.bins[i]++;
i1068drivers/net/ewrk3.ci = EWRK3_PKT_STAT_SZ;
i1254drivers/net/ewrk3.cint i, iobase = dev->base_addr;
i1270drivers/net/ewrk3.cfor (i=0; i<(HASH_TABLE_LEN >> 3); i++) {
i1275drivers/net/ewrk3.ci++;
i1281drivers/net/ewrk3.cfor (i=0; i<(HASH_TABLE_LEN >> 4) - 1; i++) {
i1284drivers/net/ewrk3.coutb(0x80, EWRK3_DATA); i++;           /* insert the broadcast bit */
i1285drivers/net/ewrk3.cfor (; i<(HASH_TABLE_LEN >> 3); i++) {
i1294drivers/net/ewrk3.cfor (i=0;i<num_addrs;i++) {              /* for each address in the list */
i1336drivers/net/ewrk3.cint i, iobase, status;
i1339drivers/net/ewrk3.cfor (status = -ENODEV, iobase = EWRK3_IO_BASE,i = 0; 
i1340drivers/net/ewrk3.ci < 24;
i1341drivers/net/ewrk3.ciobase += EWRK3_IOP_INC, i++) {
i1379drivers/net/ewrk3.cint i, iobase = EWRK3_EISA_IO_PORTS;
i1383drivers/net/ewrk3.cfor (status = -ENODEV, i=1; i<MAX_EISA_SLOTS; i++, iobase+=EISA_SLOT_INC) {
i1392drivers/net/ewrk3.cmem_chkd |= (0x01 << (i + 24));
i1461drivers/net/ewrk3.cint i;
i1465drivers/net/ewrk3.cfor (i=0;i<5000;i++) inb(EWRK3_CSR);  /* wait 1msec */
i1475drivers/net/ewrk3.cint i;
i1478drivers/net/ewrk3.cfor (i=0;i<5000;i++) inb(EWRK3_CSR);  /* wait 1msec */
i1482drivers/net/ewrk3.cfor (i=0;i<75000;i++) inb(EWRK3_CSR); /* wait 15msec */
i1484drivers/net/ewrk3.cfor (i=0;i<5000;i++) inb(EWRK3_CSR);  /* wait 1msec */
i1494drivers/net/ewrk3.cunsigned long i,j,k;
i1498drivers/net/ewrk3.cfor (i=0;*signatures[i] != '\0' && *name == '\0';i++) {
i1499drivers/net/ewrk3.cfor (j=EEPROM_PNAME7,k=0;j<=EEPROM_PNAME0 && k<strlen(signatures[i]);j++) {
i1500drivers/net/ewrk3.cif (signatures[i][k] == eeprom_image[j]) {          /* track signature */
i1506drivers/net/ewrk3.cif (k == strlen(signatures[i])) {
i1527drivers/net/ewrk3.cint i, j, status = 0;
i1534drivers/net/ewrk3.cfor (i=0,j=0;devSig[i] != '\0' && !status;i+=2,j++) {
i1535drivers/net/ewrk3.cif ((devSig[i]=asc2hex(devSig[i]))>=0) {
i1536drivers/net/ewrk3.cdevSig[i]<<=4;
i1537drivers/net/ewrk3.cif((devSig[i+1]=asc2hex(devSig[i+1]))>=0){
i1538drivers/net/ewrk3.cdevSig[j]=devSig[i]+devSig[i+1];
i1559drivers/net/ewrk3.cfor (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) {
i1615drivers/net/ewrk3.cint i, j, iobase = dev->base_addr, status = 0;
i1625drivers/net/ewrk3.cfor (i=0; i<ETH_ALEN; i++) {
i1626drivers/net/ewrk3.ctmp.addr[i] = dev->dev_addr[i];
i1644drivers/net/ewrk3.cfor (i=0; i<ETH_ALEN; i++) {
i1645drivers/net/ewrk3.cdev->dev_addr[i] = tmp.addr[i];
i1646drivers/net/ewrk3.coutb(tmp.addr[i], EWRK3_PAR0 + i);
i1689drivers/net/ewrk3.cfor (i=0; i<(HASH_TABLE_LEN >> 3); i++) {
i1690drivers/net/ewrk3.ctmp.addr[i] = inb(EWRK3_DATA);
i1779drivers/net/ewrk3.cfor (i=0; i<(EEPROM_MAX>>1); i++) {
i1780drivers/net/ewrk3.ctmp.val[i] = (short)Read_EEPROM(iobase, i);
i1782drivers/net/ewrk3.ci = EEPROM_MAX;
i1783drivers/net/ewrk3.ctmp.addr[i++] = inb(EWRK3_CMR);            /* Config/Management Reg. */
i1785drivers/net/ewrk3.ctmp.addr[i++] = inb(EWRK3_PAR0 + j);
i1800drivers/net/ewrk3.cfor (i=0; i<(EEPROM_MAX>>1); i++) {
i1801drivers/net/ewrk3.cWrite_EEPROM(tmp.val[i], iobase, i);
i122drivers/net/hp-plus.cint i;
i130drivers/net/hp-plus.cfor (i = 0; hpplus_portlist[i]; i++) {
i131drivers/net/hp-plus.cint ioaddr = hpplus_portlist[i];
i145drivers/net/hp-plus.cint i;
i163drivers/net/hp-plus.cfor(i = 0; i < ETHER_ADDR_LEN; i++) {
i164drivers/net/hp-plus.cunsigned char inval = inb(ioaddr + 8 + i);
i165drivers/net/hp-plus.cdev->dev_addr[i] = inval;
i80drivers/net/hp.cint i;
i88drivers/net/hp.cfor (i = 0; hppclan_portlist[i]; i++) {
i89drivers/net/hp.cint ioaddr = hppclan_portlist[i];
i102drivers/net/hp.cint i, board_id, wordmode;
i132drivers/net/hp.cfor(i = 0; i < ETHER_ADDR_LEN; i++)
i133drivers/net/hp.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
i211drivers/net/hp100.cint i;
i238drivers/net/hp100.cfor ( i = uc = eisa_id = 0; i < 4; i++ )
i241drivers/net/hp100.ceisa_id |= ( hp100_inb( BOARD_ID + i ) ) << 24;
i256drivers/net/hp100.cfor ( i = 0; i < sizeof( hp100_eisa_ids ) / sizeof( struct hp100_eisa_id ); i++ )
i257drivers/net/hp100.cif ( ( hp100_eisa_ids[ i ].id & 0xf0ffffff ) == ( eisa_id & 0xf0ffffff ) )
i259drivers/net/hp100.cif ( i >= sizeof( hp100_eisa_ids ) / sizeof( struct hp100_eisa_id ) )
i264drivers/net/hp100.ceid = &hp100_eisa_ids[ i ];
i272drivers/net/hp100.cfor ( i = uc = 0; i < 7; i++ )
i273drivers/net/hp100.cuc += hp100_inb( LAN_ADDR + i );
i324drivers/net/hp100.cfor ( i = uc = 0; i < 6; i++ )
i325drivers/net/hp100.cdev -> dev_addr[ i ] = hp100_inb( LAN_ADDR + i );
i350drivers/net/hp100.cint i;
i393drivers/net/hp100.cfor ( i = 0; i < 6; i++ )
i394drivers/net/hp100.chp100_outb( dev -> dev_addr[ i ], MAC_ADDR + i );
i395drivers/net/hp100.cfor ( i = 0; i < 8; i++ )    /* setup multicast filter to receive all */
i396drivers/net/hp100.chp100_outb( 0xff, HASH_BYTE0 + i );
i447drivers/net/hp100.cint i;
i466drivers/net/hp100.cif ( ( i = ( hp100_inl( TX_MEM_FREE ) & ~0x7fffffff ) ) < skb -> len + 16 )
i469drivers/net/hp100.cprintk( "hp100_start_xmit: rx free mem = 0x%x\n", i );
i483drivers/net/hp100.ci = hp100_sense_lan( dev );
i486drivers/net/hp100.cif ( i == HP100_LAN_ERR )
i489drivers/net/hp100.cif ( lp -> lan_type != i )
i493drivers/net/hp100.clp -> lan_type = i;
i518drivers/net/hp100.cfor ( i = 0; i < 6000 && ( hp100_inw( OPTION_MSW ) & HP100_TX_CMD ); i++ )
i542drivers/net/hp100.ci = skb -> len + 3;
i543drivers/net/hp100.coutsl( ioaddr + HP100_REG_DATA32, skb -> data, i >> 2 );
i544drivers/net/hp100.cfor ( i &= ~3; i < HP100_MIN_PACKET_SIZE; i += 4 ) 
i818drivers/net/hp100.cint i;
i824drivers/net/hp100.cfor ( i = 0; i < 6000; i++ )
i833drivers/net/hp100.cint i;
i848drivers/net/hp100.cfor ( i = 0; i < 2500; i++ )
i860drivers/net/hp100.cint i;
i863drivers/net/hp100.cfor ( i = 2500; i > 0; i-- )
i865drivers/net/hp100.cif ( i <= 0 )        /* not signal - not logout */
i882drivers/net/hp100.cint i;
i908drivers/net/hp100.cfor ( i = 2500; i > 0; i-- )
i910drivers/net/hp100.cif ( i <= 0 )
i126drivers/net/ibmtr.cshort i, j;
i127drivers/net/ibmtr.cfor (i=0,j=0;i<24;i++,j=j+stride) printk("%1x",((int) pcid[j])&0x0f);
i144drivers/net/ibmtr.cunsigned char segment=0, intr=0, irq=0, i=0, j=0,
i205drivers/net/ibmtr.cfor (i=2,j=1; i<=46; i=i+2,j++) {
i206drivers/net/ibmtr.cif ( (cd_chanid[i] & 0x0f) != tchanid[j]) {
i304drivers/net/ibmtr.cfor (i=0; i<0x18; i=i+2) {
i305drivers/net/ibmtr.ctemp = *(char *)((ulong)AIP + (ulong)i + ti->mmio) & 0x0f; /* Tech ref states must do this */
i541drivers/net/ibmtr.cint i;
i547drivers/net/ibmtr.cfor(i=0;i<  8;i++,check_reason++)
i794drivers/net/ibmtr.cint i;
i821drivers/net/ibmtr.cfor(i=0;i<17;i++)
i822drivers/net/ibmtr.cprintk("%02X ",*(ti->init_srb+i));
i837drivers/net/ibmtr.cfor(i=0;i<TR_ALEN;i++)
i838drivers/net/ibmtr.cprintk("%02X%s",dev->dev_addr[i]=encoded_addr[i],(i==TR_ALEN-1) ? "" : ":" );
i849drivers/net/ibmtr.cint i;
i870drivers/net/ibmtr.cfor(i=jiffies+5;jiffies<=i;); /* wait 50ms */
i339drivers/net/lance.cint i, reset_val, lance_version;
i407drivers/net/lance.cfor (i = 0; i < 6; i++)
i408drivers/net/lance.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
i424drivers/net/lance.cfor (i = 0; i < 6; i++)
i425drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
i509drivers/net/lance.cfor (i = 0; i < 4; i++) {
i511drivers/net/lance.cint dma = dmas[i];
i538drivers/net/lance.cif (i == 4) {      /* Failure: bail. */
i570drivers/net/lance.cint i;
i622drivers/net/lance.ci = 0;
i623drivers/net/lance.cwhile (i++ < 100)
i634drivers/net/lance.cdev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA));
i655drivers/net/lance.cint i;
i657drivers/net/lance.cfor (i = 0; i < TX_RING_SIZE; i++) {
i658drivers/net/lance.cif (lp->tx_skbuff[i]) {
i659drivers/net/lance.cdev_kfree_skb(lp->tx_skbuff[i],FREE_WRITE);
i660drivers/net/lance.clp->tx_skbuff[i] = NULL;
i671drivers/net/lance.cint i;
i677drivers/net/lance.cfor (i = 0; i < RX_RING_SIZE; i++) {
i678drivers/net/lance.clp->rx_ring[i].base = (lp->rx_buffs + i*PKT_BUF_SZ) | 0x80000000;
i679drivers/net/lance.clp->rx_ring[i].buf_length = -PKT_BUF_SZ;
i683drivers/net/lance.cfor (i = 0; i < TX_RING_SIZE; i++) {
i684drivers/net/lance.clp->tx_ring[i].base = 0;
i688drivers/net/lance.cfor (i = 0; i < 6; i++)
i689drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
i730drivers/net/lance.cint i;
i734drivers/net/lance.cfor (i = 0 ; i < RX_RING_SIZE; i++)
i735drivers/net/lance.cprintk("%s %08x %04x %04x", i & 0x3 ? "" : "\n ",
i736drivers/net/lance.clp->rx_ring[i].base, -lp->rx_ring[i].buf_length,
i737drivers/net/lance.clp->rx_ring[i].msg_length);
i738drivers/net/lance.cfor (i = 0 ; i < TX_RING_SIZE; i++)
i739drivers/net/lance.cprintk("%s %08x %04x %04x", i & 0x3 ? "" : "\n ",
i740drivers/net/lance.clp->tx_ring[i].base, -lp->tx_ring[i].length,
i741drivers/net/lance.clp->tx_ring[i].misc);
i967drivers/net/lance.cint i;
i993drivers/net/lance.cfor (i=0; i < RX_RING_SIZE; i++)
i994drivers/net/lance.cif (lp->rx_ring[(entry+i) & RX_RING_MOD_MASK].base < 0)
i997drivers/net/lance.cif (i > RX_RING_SIZE -2) {
i1098drivers/net/lance.cint i;
i1101drivers/net/lance.cfor (i = 0; i < 4; i++) {
i1102drivers/net/lance.coutw(8 + i, ioaddr+LANCE_ADDR);
i1103drivers/net/lance.coutw(multicast_table[i], ioaddr+LANCE_DATA);
i125drivers/net/loopback.cint i;
i153drivers/net/loopback.cfor (i = 0; i < DEV_NUMBUFFS; i++)
i154drivers/net/loopback.cskb_queue_head_init(&dev->buffs[i]);
i126drivers/net/ne.cint i;
i134drivers/net/ne.cfor (i = 0; netcard_portlist[i]; i++) {
i135drivers/net/ne.cint ioaddr = netcard_portlist[i];
i148drivers/net/ne.cint i;
i212drivers/net/ne.cfor (i = 0; i < sizeof(program_seq)/sizeof(program_seq[0]); i++)
i213drivers/net/ne.coutb_p(program_seq[i].value, ioaddr + program_seq[i].offset);
i216drivers/net/ne.cfor(i = 0; i < 32 /*sizeof(SA_prom)*/; i+=2) {
i217drivers/net/ne.cSA_prom[i] = inb(ioaddr + NE_DATAPORT);
i218drivers/net/ne.cSA_prom[i+1] = inb(ioaddr + NE_DATAPORT);
i219drivers/net/ne.cif (SA_prom[i] != SA_prom[i+1])
i229drivers/net/ne.cfor (i = 0; i < 16; i++)
i230drivers/net/ne.cSA_prom[i] = SA_prom[i+i];
i238drivers/net/ne.cfor(i = 0; i < ETHER_ADDR_LEN; i++) {
i239drivers/net/ne.cdev->dev_addr[i] = SA_prom[i];
i240drivers/net/ne.cprintk(" %2.2x", SA_prom[i]);
i257drivers/net/ne.cfor (i = 0; bad_clone_list[i].name8; i++) {
i258drivers/net/ne.cif (SA_prom[0] == bad_clone_list[i].SAprefix[0] &&
i259drivers/net/ne.cSA_prom[1] == bad_clone_list[i].SAprefix[1] &&
i260drivers/net/ne.cSA_prom[2] == bad_clone_list[i].SAprefix[2]) {
i262drivers/net/ne.cname = bad_clone_list[i].name16;
i264drivers/net/ne.cname = bad_clone_list[i].name8;
i269drivers/net/ne.cif (bad_clone_list[i].name8 == NULL) {
i314drivers/net/ne.cfor(i = 0; i < ETHER_ADDR_LEN; i++)
i315drivers/net/ne.cdev->dev_addr[i] = SA_prom[i];
i96drivers/net/net_init.cint i;
i105drivers/net/net_init.cfor (i = 0; i < MAX_ETH_CARDS; ++i)
i106drivers/net/net_init.cif (ethdev_index[i] == NULL) {
i107drivers/net/net_init.csprintf(pname, "eth%d", i);
i141drivers/net/net_init.cfor (i = 0; i < MAX_ETH_CARDS; ++i)
i142drivers/net/net_init.cif (ethdev_index[i] == NULL) {
i143drivers/net/net_init.csprintf(dev->name, "eth%d", i);
i144drivers/net/net_init.cethdev_index[i] = dev;
i175drivers/net/net_init.cint i;
i178drivers/net/net_init.cfor (i = 0; i < DEV_NUMBUFFS; i++)
i179drivers/net/net_init.cskb_queue_head_init(&dev->buffs[i]);
i183drivers/net/net_init.ci = simple_strtoul(dev->name + 3, NULL, 0);
i184drivers/net/net_init.cif (ethdev_index[i] == NULL) {
i185drivers/net/net_init.cethdev_index[i] = dev;
i187drivers/net/net_init.celse if (dev != ethdev_index[i]) {
i203drivers/net/net_init.cfor (i = 0; i < ETH_ALEN; i++) {
i204drivers/net/net_init.cdev->broadcast[i]=0xff;
i220drivers/net/net_init.cint i;
i223drivers/net/net_init.cfor (i = 0; i < DEV_NUMBUFFS; i++)
i224drivers/net/net_init.cskb_queue_head_init(&dev->buffs[i]);
i233drivers/net/net_init.cfor (i = 0; i < TR_ALEN; i++) {
i234drivers/net/net_init.cdev->broadcast[i]=0xff;
i269drivers/net/net_init.cint i=MAX_ETH_CARDS;
i277drivers/net/net_init.cfor (i = 0; i < MAX_ETH_CARDS; ++i)
i278drivers/net/net_init.cif (ethdev_index[i] == NULL) {
i279drivers/net/net_init.csprintf(dev->name, "eth%d", i);
i281drivers/net/net_init.cethdev_index[i] = dev;
i287drivers/net/net_init.cif (i < MAX_ETH_CARDS) ethdev_index[i] = NULL;
i310drivers/net/net_init.cint i;
i342drivers/net/net_init.cfor (i = 0; i < MAX_ETH_CARDS; ++i) {
i343drivers/net/net_init.cif (ethdev_index[i] == dev) {
i344drivers/net/net_init.cethdev_index[i] = NULL;
i130drivers/net/ni52.c#define DELAY(x) {int i=jiffies; \
i132drivers/net/ni52.cwhile(i+(x)>jiffies); \
i141drivers/net/ni52.c#define WAIT_4_SCB_CMD() { int i; \
i142drivers/net/ni52.cfor(i=0;i<1024;i++) { \
i145drivers/net/ni52.cif(i == 1023) { \
i252drivers/net/ni52.cint i;
i263drivers/net/ni52.cfor(i=0;i<2;i++)
i265drivers/net/ni52.cp->iscp = (struct iscp_struct *) iscp_addrs[i];
i351drivers/net/ni52.cint i,size;
i353drivers/net/ni52.cfor(i=0;i<ETH_ALEN;i++)
i354drivers/net/ni52.cdev->dev_addr[i] = inb(dev->base_addr+i);
i384drivers/net/ni52.cfor(i=0;;i++)
i386drivers/net/ni52.cif(!memaddrs[i]) {
i390drivers/net/ni52.cdev->mem_start = memaddrs[i];
i454drivers/net/ni52.cint i,result=0;
i573drivers/net/ni52.cfor(i=0;i<2;i++)
i575drivers/net/ni52.cp->nop_cmds[i] = (struct nop_cmd_struct *)ptr;
i576drivers/net/ni52.cp->nop_cmds[i]->cmd_cmd    = CMD_NOP;
i577drivers/net/ni52.cp->nop_cmds[i]->cmd_status = 0;
i578drivers/net/ni52.cp->nop_cmds[i]->cmd_link   = make16((p->nop_cmds[i]));
i584drivers/net/ni52.cfor(i=0;i<NUM_XMIT_BUFFS;i++)
i586drivers/net/ni52.cp->nop_cmds[i] = (struct nop_cmd_struct *)ptr;
i587drivers/net/ni52.cp->nop_cmds[i]->cmd_cmd    = CMD_NOP;
i588drivers/net/ni52.cp->nop_cmds[i]->cmd_status = 0;
i589drivers/net/ni52.cp->nop_cmds[i]->cmd_link   = make16((p->nop_cmds[i]));
i591drivers/net/ni52.cp->xmit_cmds[i] = (struct transmit_cmd_struct *)ptr; /*transmit cmd/buff 0*/
i621drivers/net/ni52.cfor(i=0;i<num_addrs;i++)
i622drivers/net/ni52.cmemcpy((char *) mc_cmd->mc_list[i],((char (*)[6]) addrs)[i],6);
i638drivers/net/ni52.cfor(i=0;i<NUM_XMIT_BUFFS;i++)
i640drivers/net/ni52.cp->xmit_cbuffs[i] = (char *)ptr; /* char-buffs */
i642drivers/net/ni52.cp->xmit_buffs[i] = (struct tbd_struct *)ptr; /* TBD */
i649drivers/net/ni52.cmemset((char *)(p->xmit_cmds[i]) ,0, sizeof(struct transmit_cmd_struct));
i650drivers/net/ni52.cmemset((char *)(p->xmit_buffs[i]),0, sizeof(struct tbd_struct));
i651drivers/net/ni52.cp->xmit_cmds[i]->cmd_status = STAT_COMPL;
i652drivers/net/ni52.cp->xmit_cmds[i]->cmd_cmd = CMD_XMIT | CMD_INT;
i653drivers/net/ni52.cp->xmit_cmds[i]->tbd_offset = make16((p->xmit_buffs[i]));
i654drivers/net/ni52.cp->xmit_buffs[i]->next = 0xffff;
i655drivers/net/ni52.cp->xmit_buffs[i]->buffer = make24((p->xmit_cbuffs[i]));
i689drivers/net/ni52.cint i;
i695drivers/net/ni52.cfor(i = 0; i < p->num_recv_buffs; i++)
i696drivers/net/ni52.crfd[i].next = make16(rfd + (i+1) % p->num_recv_buffs);
i707drivers/net/ni52.cfor(i=0;i<p->num_recv_buffs;i++)
i709drivers/net/ni52.crbd[i].next = make16((rbd + (i+1) % p->num_recv_buffs));
i710drivers/net/ni52.crbd[i].size = RECV_BUFF_SIZE;
i711drivers/net/ni52.crbd[i].buffer = make24(ptr);
i930drivers/net/ni52.cint len,i;
i996drivers/net/ni52.cfor(i=0;i<16;i++)
i1004drivers/net/ni52.cif(!i)
i1011drivers/net/ni52.cif(i==15)
i208drivers/net/ni65.cint i;
i212drivers/net/ni65.cfor(i=0;i<6;i++)
i213drivers/net/ni65.cstation_addr[i] = dev->dev_addr[i] = inb(PORT+L_EBASE+i);
i275drivers/net/ni65.cfor(i=0;i<TMDNUM;i++)
i277drivers/net/ni65.cif( (p->tmdbufs[i] = kmalloc(T_BUF_SIZE,GFP_ATOMIC)) == NULL) {
i281drivers/net/ni65.cif( (unsigned long) (p->tmdbufs[i]+T_BUF_SIZE) & 0xff000000) {
i288drivers/net/ni65.cfor(i=0;i<RMDNUM;i++)
i290drivers/net/ni65.cif( (p->recv_skb[i] = dev_alloc_skb(R_BUF_SIZE)) == NULL) {
i294drivers/net/ni65.cif( (unsigned long) (p->recv_skb[i]->data + R_BUF_SIZE) & 0xff000000) {
i309drivers/net/ni65.cint i,j;
i336drivers/net/ni65.cfor(i=0;i<TMDNUM;i++)
i338drivers/net/ni65.ctmdp = p->tmdhead + i;
i340drivers/net/ni65.ctmdp->u.buffer = (unsigned long) p->tmdbufs[i];     
i346drivers/net/ni65.cfor(i=0;i<RMDNUM;i++)
i348drivers/net/ni65.crmdp = p->rmdhead + i;
i349drivers/net/ni65.crmdp->u.buffer = (unsigned long) p->recv_skb[i]->data;
i355drivers/net/ni65.cfor(i=0;i<6;i++)
i357drivers/net/ni65.cp->ib.eaddr[i] = dev->dev_addr[i];
i360drivers/net/ni65.cfor(i=0;i<8;i++) 
i361drivers/net/ni65.cp->ib.filter[i] = 0;
i377drivers/net/ni65.cfor(i=0;i<5;i++)
i382drivers/net/ni65.cif(i == 5) 
i1308drivers/net/pi2.cint i;
i1425drivers/net/pi2.cfor (i = 0; i < DEV_NUMBUFFS; i++)
i1426drivers/net/pi2.cskb_queue_head_init(&dev->buffs[i]);
i840drivers/net/plip.cint i;
i851drivers/net/plip.cfor (i=0; i < ETH_ALEN - sizeof(unsigned long); i++)
i852drivers/net/plip.ceth->h_dest[i] = 0xfc;
i853drivers/net/plip.cmemcpy(&(eth->h_dest[i]), &dst, sizeof(unsigned long));
i914drivers/net/plip.cint i;
i942drivers/net/plip.cfor (i=0; i < ETH_ALEN - sizeof(unsigned long); i++)
i943drivers/net/plip.cdev->dev_addr[i] = 0xfc;
i944drivers/net/plip.cmemcpy(&(dev->dev_addr[i]), &dev->pa_addr, sizeof(unsigned long));
i214drivers/net/ppp.cint i;
i254drivers/net/ppp.cif ((i = tty_register_ldisc(N_PPP, &ppp_ldisc)) == 0)
i257drivers/net/ppp.cprintk(KERN_ERR "error registering line discipline: %d\n", i);
i289drivers/net/ppp.cfor (i = 0; i < DEV_NUMBUFFS; i++)
i290drivers/net/ppp.cskb_queue_head_init(&dev->buffs[i]);  /* = NULL if NET02D */
i797drivers/net/ppp.ci, count;
i803drivers/net/ppp.ci     = tail;
i806drivers/net/ppp.cwhile (i != head) {
i807drivers/net/ppp.cbuffer [count] = tty->read_q.buf[i];
i812drivers/net/ppp.ci = (i + 1) & (TTY_BUF_SIZE - 1);
i868drivers/net/ppp.cint i;
i870drivers/net/ppp.cfor (i = 0; i < n; i++, c++) {
i1245drivers/net/ppp.cint len, i;
i1294drivers/net/ppp.ci = len;
i1295drivers/net/ppp.cwhile (i-- > 0) {
i1344drivers/net/ppp.cint i;
i1390drivers/net/ppp.ci = nr;
i1391drivers/net/ppp.cwhile (i-- > 0)
i1416drivers/net/ppp.cppp_ioctl(struct tty_struct *tty, struct file *file, unsigned int i,
i1434drivers/net/ppp.cswitch (i) {
i1615drivers/net/ppp.cerror = n_tty_ioctl(tty, file, i, l);
i1625drivers/net/ppp.ci,
i1918drivers/net/ppp.cint i;
i1919drivers/net/ppp.cfor (i = 0; i < PPP_NRUNIT; i++)
i1920drivers/net/ppp.cif (ppp_ctrl[i].inuse && (ppp_ctrl[i].tty == tty)) return &ppp_ctrl[i];
i1930drivers/net/ppp.cint i;
i1931drivers/net/ppp.cfor (i = 0; i < PPP_NRUNIT; i++)
i1932drivers/net/ppp.cif (!set_bit(0, &ppp_ctrl[i].inuse)) return &ppp_ctrl[i];
i1988drivers/net/ppp.cint i;
i1990drivers/net/ppp.cfor (i = 0; i < ppp->rcount - 2; i++, c++)
i2098drivers/net/ppp.cint i;
i2100drivers/net/ppp.cfor (i = 0; i < PPP_NRUNIT; i++)  {
i2101drivers/net/ppp.cif ((err = register_netdev(&dev_ppp[i])))  {
i2114drivers/net/ppp.cint i;
i2120drivers/net/ppp.cfor (i = 0; i < PPP_NRUNIT; i++)  {
i2121drivers/net/ppp.cunregister_netdev(&dev_ppp[i]);
i2123drivers/net/ppp.cif ((i = tty_register_ldisc(N_PPP, NULL)))  {
i2124drivers/net/ppp.cprintk("PPP: can't unregister line discipline (err = %d)\n", i);
i118drivers/net/seeq8005.cint i;
i126drivers/net/seeq8005.cfor (i = 0; seeq8005_portlist[i]; i++) {
i127drivers/net/seeq8005.cint ioaddr = seeq8005_portlist[i];
i145drivers/net/seeq8005.cint i,j;
i199drivers/net/seeq8005.cfor(i=0; i <32; i++) {
i200drivers/net/seeq8005.cj+= SA_prom[i] = inw(SEEQ_BUFFER) & 0xff;
i227drivers/net/seeq8005.cfor(i=0;i<16;i++) {
i228drivers/net/seeq8005.cprintk("%02x ",SA_prom[j|i]);
i231drivers/net/seeq8005.cfor(i=0;i<16;i++) {
i232drivers/net/seeq8005.cif ((SA_prom[j|i]>31)&&(SA_prom[j|i]<127)) {
i233drivers/net/seeq8005.cprintk("%c", SA_prom[j|i]);
i253drivers/net/seeq8005.cfor(i=0;i<32768;i++) {
i266drivers/net/seeq8005.cfor(i=0;i<32768;i++) {
i291drivers/net/seeq8005.cfor (i = 0; i < 6; i++)
i292drivers/net/seeq8005.cprintk(" %2.2x", dev->dev_addr[i] = SA_prom[i+6]);
i486drivers/net/seeq8005.cint i;
i554drivers/net/seeq8005.cfor(i=0;i<14;i++) {
i639drivers/net/seeq8005.cint i;
i652drivers/net/seeq8005.cfor(i=0;i<6;i++) {      /* set Station address */
i653drivers/net/seeq8005.coutb(dev->dev_addr[i], SEEQ_BUFFER);
i672drivers/net/seeq8005.cfor(i=0;i<6;i++) {
i638drivers/net/sk_g16.cint i,j;                /* Counters */
i758drivers/net/sk_g16.cfor (i = 0, j = 0; i < ETH_ALEN; i++, j+=2)
i760drivers/net/sk_g16.cdev->dev_addr[i] = board->rom[j];          
i817drivers/net/sk_g16.cfor (i = 0; i < TMDNUM; i++)
i819drivers/net/sk_g16.cp->tmdbufs[i] = &(p->ram)->tmdbuf[i];
i822drivers/net/sk_g16.cfor (i = 0; i < RMDNUM; i++)
i824drivers/net/sk_g16.cp->rmdbufs[i] = &(p->ram)->rmdbuf[i]; 
i864drivers/net/sk_g16.cint i = 0;
i877drivers/net/sk_g16.ci = 0;
i890drivers/net/sk_g16.cirqval = request_irq(irqtab[i], &SK_interrupt, 0, "sk_g16");
i891drivers/net/sk_g16.ci++;
i892drivers/net/sk_g16.c} while (irqval && irqtab[i]);
i900drivers/net/sk_g16.cdev->irq = irqtab[--i]; 
i902drivers/net/sk_g16.coutb(i<<2, SK_POS4);           /* Set Card on probed IRQ */
i924drivers/net/sk_g16.cint i = 0;
i936drivers/net/sk_g16.ccase 3: i = 0;
i938drivers/net/sk_g16.ccase 5: i = 1;
i940drivers/net/sk_g16.ccase 2: i = 2;
i942drivers/net/sk_g16.ccase 11:i = 3;
i952drivers/net/sk_g16.coutb(i<<2, SK_POS4);           /* Set IRQ on card */
i961drivers/net/sk_g16.cif (!(i = SK_lance_init(dev, 0)))  /* LANCE init OK? */
i1029drivers/net/sk_g16.cint i;
i1044drivers/net/sk_g16.cfor (i = 0; i < TMDNUM; i++)     /* Init all TMD's */
i1046drivers/net/sk_g16.ctmdp = p->tmdhead + i; 
i1048drivers/net/sk_g16.ctmdp->u.buffer = (unsigned long) p->tmdbufs[i]; /* assign buffer */
i1059drivers/net/sk_g16.cfor (i = 0; i < RMDNUM; i++)     /* Init all RMD's */
i1061drivers/net/sk_g16.crmdp = p->rmdhead + i;
i1064drivers/net/sk_g16.crmdp->u.buffer = (unsigned long) p->rmdbufs[i]; /* assign buffer */
i1083drivers/net/sk_g16.cfor (i = 0; i < ETH_ALEN; i++)   /* Set physical address */
i1085drivers/net/sk_g16.c(p->ram)->ib.paddr[i] = dev->dev_addr[i]; 
i1088drivers/net/sk_g16.cfor (i = 0; i < 8; i++)          /* Set multicast, logical address */
i1090drivers/net/sk_g16.c(p->ram)->ib.laddr[i] = 0;   /* We do not use logical addressing */
i1141drivers/net/sk_g16.cfor (i = 0; (i < 100) && !(SK_rread_reg() & CSR0_IDON); i++) 
i1144drivers/net/sk_g16.cif (i >= 100) /* Something is wrong ! */
i1159drivers/net/sk_g16.cPRINTK(("## %s: init done after %d ticks\n", SK_NAME, i));
i1782drivers/net/sk_g16.cint i,j;
i1791drivers/net/sk_g16.cfor (i = 0; (rom_location[i] != 0) && (rom_found == 0); i++)
i1794drivers/net/sk_g16.cPRINTK(("##   Trying ROM location %#08x", rom_location[i]));
i1799drivers/net/sk_g16.ctest_byte = (unsigned char *) (rom_location[i]+j);
i1813drivers/net/sk_g16.cSK_NAME, rom_location[(i-1)]));
i1815drivers/net/sk_g16.creturn (rom_location[--i]);
i1853drivers/net/sk_g16.cint i;
i1856drivers/net/sk_g16.cfor (i = 0; i < 10 ; i++) /* Delay min 5ms */
i2084drivers/net/sk_g16.cint i;    
i2097drivers/net/sk_g16.cfor(i = 0; i < TMDNUM; i++)
i2099drivers/net/sk_g16.cif (!(i % 3)) /* Every third line do a newline */
i2103drivers/net/sk_g16.cprintk("tmdbufs%d: %#08x ", (i+1), (int) p->tmdbufs[i]);
i2107drivers/net/sk_g16.cfor(i = 0; i < RMDNUM; i++)
i2109drivers/net/sk_g16.cif (!(i % 3)) /* Every third line do a newline */
i2113drivers/net/sk_g16.cprintk("rmdbufs%d: %#08x ", (i+1), (int) p->rmdbufs[i]);
i127drivers/net/skeleton.cint i;
i135drivers/net/skeleton.cfor (i = 0; netcard_portlist[i]; i++) {
i136drivers/net/skeleton.cint ioaddr = netcard_portlist[i];
i154drivers/net/skeleton.cint i;
i178drivers/net/skeleton.cfor (i = 0; i < 6; i++)
i179drivers/net/skeleton.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
i233drivers/net/skeleton.cfor (i = 7; i > 0; i--)
i235drivers/net/skeleton.cdev->dma = i;
i238drivers/net/skeleton.cif (i <= 0) {
i97drivers/net/slhc.cregister short i;
i148drivers/net/slhc.cfor(i = comp->tslot_limit; i > 0; --i){
i149drivers/net/slhc.cts[i].cs_this = i;
i150drivers/net/slhc.cts[i].next = &(ts[i - 1]);
i549drivers/net/slhc.cregister short i;
i550drivers/net/slhc.ci = ntohs(ip->tot_len) - hdrlen;
i551drivers/net/slhc.cthp->ack_seq = htonl( ntohl(thp->ack_seq) + i);
i552drivers/net/slhc.cthp->seq = htonl( ntohl(thp->seq) + i);
i106drivers/net/slip.cint i;
i108drivers/net/slip.cfor (i = 0; i < SL_NRUNIT; i++) {
i109drivers/net/slip.csl = &sl_ctrl[i];
i862drivers/net/slip.cint i;
i878drivers/net/slip.cfor (i = 0; i < len; ++i) {
i879drivers/net/slip.cv = (v << 8) | s[i];
i1063drivers/net/slip.cint i;
i1100drivers/net/slip.cif ((i = tty_register_ldisc(N_SLIP, &sl_ldisc)) != 0)  {
i1101drivers/net/slip.cprintk("SLIP: can't register line discipline (err = %d)\n", i);
i1135drivers/net/slip.cfor (i = 0; i < DEV_NUMBUFFS; i++)  {
i1136drivers/net/slip.cskb_queue_head_init(&dev->buffs[i]);
i1182drivers/net/slip.cint i;
i1184drivers/net/slip.cfor (i = 0; i < SL_NRUNIT; i++)  {
i1185drivers/net/slip.cif ((err = register_netdev(&dev_slip[i])))  {
i1198drivers/net/slip.cint i;
i1204drivers/net/slip.cfor (i = 0; i < SL_NRUNIT; i++)  {
i1205drivers/net/slip.cunregister_netdev(&dev_slip[i]);
i1207drivers/net/slip.cif ((i = tty_register_ldisc(N_SLIP, NULL)))  {
i1208drivers/net/slip.cprintk("SLIP: can't unregister line discipline (err = %d)\n", i);
i90drivers/net/smc-ultra.cint i;
i98drivers/net/smc-ultra.cfor (i = 0; ultra_portlist[i]; i++) {
i99drivers/net/smc-ultra.cint ioaddr = ultra_portlist[i];
i112drivers/net/smc-ultra.cint i;
i129drivers/net/smc-ultra.cfor (i = 0; i < 8; i++)
i130drivers/net/smc-ultra.cchecksum += inb(ioaddr + 8 + i);
i141drivers/net/smc-ultra.cfor (i = 0; i < 6; i++)
i142drivers/net/smc-ultra.cprintk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i));
i208drivers/net/tulip.cint i;
i229drivers/net/tulip.cfor (i = 0; i < 6; i++) {
i234drivers/net/tulip.cprintk(" %2.2x", dev->dev_addr[i] = value);
i299drivers/net/tulip.cint *setup_frm = tp->setup_frame, i;
i306drivers/net/tulip.cfor (i = 1; i < 16; i++) {
i352drivers/net/tulip.cint i;
i358drivers/net/tulip.cfor (i = 0; i < RX_RING_SIZE; i++) {
i359drivers/net/tulip.ctp->rx_ring[i].status = 0x80000000;  /* Owned by Tulip chip */
i360drivers/net/tulip.ctp->rx_ring[i].length = PKT_BUF_SZ;
i361drivers/net/tulip.ctp->rx_ring[i].buffer1 = (char *)(tp->rx_buffs + i*PKT_BUF_SZ);
i362drivers/net/tulip.ctp->rx_ring[i].buffer2 = (char *)&tp->rx_ring[i+1];
i365drivers/net/tulip.ctp->rx_ring[i-1].length = PKT_BUF_SZ | 0x02000000;
i366drivers/net/tulip.ctp->rx_ring[i-1].buffer2 = (char *)&tp->rx_ring[0];
i370drivers/net/tulip.cfor (i = 0; i < TX_RING_SIZE; i++) {
i371drivers/net/tulip.ctp->tx_ring[i].status = 0x00000000;
i385drivers/net/tulip.cint i;
i392drivers/net/tulip.cfor (i = 0; i < RX_RING_SIZE; i++)
i393drivers/net/tulip.cprintk(" %8.8x", (unsigned int)tp->rx_ring[i].status);
i395drivers/net/tulip.cfor (i = 0; i < TX_RING_SIZE; i++)
i396drivers/net/tulip.cprintk(" %8.8x", (unsigned int)tp->tx_ring[i].status);
i578drivers/net/tulip.cint i;
i608drivers/net/tulip.cfor (i=0; i < RX_RING_SIZE; i++)
i609drivers/net/tulip.cif (lp->rx_ring[(entry+i) % RX_RING_SIZE].status < 0)
i612drivers/net/tulip.cif (i > RX_RING_SIZE -2) {
i694drivers/net/tulip.cint i;
i700drivers/net/tulip.cfor(i = 0; i < num_addrs; i++) {
i711drivers/net/tulip.c} while (++i < 16);
i720drivers/net/tulip.cint i;
i724drivers/net/tulip.cfor (i = 0; i < 6; i++)
i725drivers/net/tulip.cprintk(" %2.2x", dev->dev_addr[i] = ((unsigned char *)addr)[i]);
i463drivers/net/wavelan.cint    i;
i478drivers/net/wavelan.cfor (i = 1000; i > 0; i--)
i487drivers/net/wavelan.cif (i <= 0)
i503drivers/net/wavelan.cint    i;
i513drivers/net/wavelan.cfor (i = 64; i > 0; i--)
i522drivers/net/wavelan.cif (i <= 0 || !(cb.ac_status & AC_SFLD_OK))
i545drivers/net/wavelan.cint    i;
i568drivers/net/wavelan.cfor (i = 0; i < I82586_MEMZ; i += sizeof(zeroes))
i569drivers/net/wavelan.cobram_write(ioaddr, i, &zeroes[0], sizeof(zeroes));
i598drivers/net/wavelan.cfor (i = 1000; i > 0; i--)
i608drivers/net/wavelan.cif (i <= 0)
i616drivers/net/wavelan.cfor (i = 15; i > 0; i--)
i626drivers/net/wavelan.cif (i <= 0)
i777drivers/net/wavelan.cint      i;
i830drivers/net/wavelan.cfor (i = 0; i < nels(iobase); i++)
i832drivers/net/wavelan.cif (check_region(iobase[i], sizeof(ha_t)))
i835drivers/net/wavelan.cif (wavelan_probe1(dev, iobase[i]) == 0)
i855drivers/net/wavelan.cint    i;
i943drivers/net/wavelan.cfor (i = 0; i < WAVELAN_ADDR_SIZE; i++)
i944drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? " " : ":", dev->dev_addr[i]);
i1070drivers/net/wavelan.cint    i;
i1081drivers/net/wavelan.cfor (i = 0, rx = lp->rx_head; i < NRXBLOCKS; i++, rx = rx_next)
i1083drivers/net/wavelan.crx_next = (i == NRXBLOCKS - 1) ? lp->rx_head : rx + RXBLOCKZ;
i1086drivers/net/wavelan.cfd.fd_command = (i == NRXBLOCKS - 1) ? FD_COMMAND_EL : 0;
i1108drivers/net/wavelan.cfor (i = 1000; i > 0; i--)
i1117drivers/net/wavelan.cif (i <= 0)
i1132drivers/net/wavelan.cint    i;
i1145drivers/net/wavelan.ci = 0, txblock = OFFSET_CU;
i1146drivers/net/wavelan.ci < NTXBLOCKS;
i1147drivers/net/wavelan.ci++, txblock += TXBLOCKZ
i1189drivers/net/wavelan.cfor (i = 1000; i > 0; i--)
i1198drivers/net/wavelan.cif (i <= 0)
i1455drivers/net/wavelan.cint  i;
i1457drivers/net/wavelan.cfor (i = 0; i < WAVELAN_ADDR_SIZE; i++)
i1459drivers/net/wavelan.cif (a0[i] != a1[i])
i1460drivers/net/wavelan.creturn a0[i] - a1[i];
i1572drivers/net/wavelan.cint      i;
i1589drivers/net/wavelan.cfor (i = 0; i < WAVELAN_ADDR_SIZE; i++)
i1590drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? "" : ":", addr[i]);
i1600drivers/net/wavelan.cint    i;
i1604drivers/net/wavelan.cfor (i = 0; i < WAVELAN_ADDR_SIZE; i++)
i1605drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? "" : ":", fd.fd_dest[i]);
i1609drivers/net/wavelan.cfor (i = 0; i < WAVELAN_ADDR_SIZE; i++)
i1610drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? "" : ":", fd.fd_src[i]);
i1617drivers/net/wavelan.cfor (i = 0; i < WAVELAN_ADDR_SIZE; i++)
i1618drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? "" : ":", addr[i]);
i1623drivers/net/wavelan.cfor (i = 0; i < WAVELAN_ADDR_SIZE; i++)
i1624drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? "" : ":", addr[i]);
i1646drivers/net/wavelan.cint  i;
i1654drivers/net/wavelan.cfor (i = 0; i < maxi; i++)
i1658drivers/net/wavelan.cc = skb->data[i];
i1660drivers/net/wavelan.cprintk(" %c", skb->data[i]);
i1662drivers/net/wavelan.cprintk("%02x", skb->data[i]);
i2197drivers/net/wavelan.cwavelan_cu_show_one(device *dev, net_local *lp, int i, unsigned short p)
i2204drivers/net/wavelan.cprintk("%d: 0x%x:", i, p);
i2426drivers/net/wavelan.cunsigned int  i;
i2434drivers/net/wavelan.cfor (i = 0, p = lp->tx_first_in_use; i < NTXBLOCKS; i++)
i2436drivers/net/wavelan.cwavelan_cu_show_one(dev, lp, i, p);
i80drivers/net/wd.cint i;
i88drivers/net/wd.cfor (i = 0; wd_portlist[i]; i++) {
i89drivers/net/wd.cint ioaddr = wd_portlist[i];
i102drivers/net/wd.cint i;
i108drivers/net/wd.cfor (i = 0; i < 8; i++)
i109drivers/net/wd.cchecksum += inb(ioaddr + 8 + i);
i119drivers/net/wd.cfor (i = 0; i < 6; i++)
i120drivers/net/wd.cprintk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i));
i146drivers/net/wd.cfor (i = 0; i < 6; i++)
i147drivers/net/wd.cif (inb(ioaddr+i) != inb(ioaddr+8+i))
i149drivers/net/wd.cif (i >= 6) {
i204drivers/net/znet.cint i;
i225drivers/net/znet.cfor (i = 0; i < 6; i++)
i226drivers/net/znet.cprintk(" %2.2x", dev->dev_addr[i] = netinfo->netid[i]);
i223drivers/pci/pci.cint i;
i225drivers/pci/pci.cfor (i = 0; i < sizeof(dev_info)/sizeof(dev_info[0]); ++i) {
i226drivers/pci/pci.cif (dev_info[i].vendor == vendor &&
i227drivers/pci/pci.cdev_info[i].device == dev)
i229drivers/pci/pci.creturn &dev_info[i];
i364drivers/pci/pci.cint i;
i368drivers/pci/pci.cfor (i = 0; i < NUM_OPTIMIZATIONS; i++) {
i369drivers/pci/pci.cprintk("    %s: ", bridge_optimization[i].type);
i370drivers/pci/pci.cbmap = &bridge_mapping[pos + i];
i376drivers/pci/pci.cprintk("%s.", bridge_optimization[i].on);
i382drivers/pci/pci.cprintk("Changed!  Now %s.", bridge_optimization[i].off);
i385drivers/pci/pci.cprintk("%s.", bridge_optimization[i].off);
i391drivers/pci/pci.cprintk("Changed!  Now %s.", bridge_optimization[i].on);
i404drivers/scsi/53c7,8xx.cint i, j, ccf;
i534drivers/scsi/53c7,8xx.ccase DMODE_BL_2: i = 2; break;
i535drivers/scsi/53c7,8xx.ccase DMODE_BL_4: i = 4; break;
i536drivers/scsi/53c7,8xx.ccase DMODE_BL_8: i = 8; break;
i537drivers/scsi/53c7,8xx.ccase DMODE_BL_16: i = 16; break;
i538drivers/scsi/53c7,8xx.cdefault: i = 0;
i540drivers/scsi/53c7,8xx.cprintk ("scsi%d : burst length %d\n", host->host_no, i);
i583drivers/scsi/53c7,8xx.cfor (i = 0; i < 8; ++i) {
i584drivers/scsi/53c7,8xx.chostdata->cmd_allocated[i] = 0;
i586drivers/scsi/53c7,8xx.chostdata->busy[i][j] = 0;
i593drivers/scsi/53c7,8xx.chostdata->sync[i].select_indirect |= (i << 16); 
i595drivers/scsi/53c7,8xx.chostdata->sync[i].script[0] = (DCMD_TYPE_TCI|DCMD_TCI_OP_RETURN) << 24 | 
i604drivers/scsi/53c7,8xx.chostdata->sync[i].select_indirect |= (hostdata->saved_scntl3) << 24;
i864drivers/scsi/53c7,8xx.cint i;
i943drivers/scsi/53c7,8xx.cfor (i = 0; i < NPCI_CHIP_IDS; ++i) {
i944drivers/scsi/53c7,8xx.cif (device_id == pci_chip_ids[i].pci_device_id) {
i945drivers/scsi/53c7,8xx.cmax_revision = pci_chip_ids[i].max_revision;
i946drivers/scsi/53c7,8xx.cmin_revision = pci_chip_ids[i].min_revision;
i947drivers/scsi/53c7,8xx.cexpected_chip = pci_chip_ids[i].chip;
i949drivers/scsi/53c7,8xx.cif (chip == pci_chip_ids[i].chip)
i950drivers/scsi/53c7,8xx.cexpected_id = pci_chip_ids[i].pci_device_id;
i984drivers/scsi/53c7,8xx.cint i;
i1014drivers/scsi/53c7,8xx.cfor (i = 0; i < NPCI_CHIP_IDS; ++i) 
i1017drivers/scsi/53c7,8xx.cpci_chip_ids[i].pci_device_id, pci_index, &pci_bus, 
i1019drivers/scsi/53c7,8xx.c!ncr_pci_init (tpnt, BOARD_GENERIC, pci_chip_ids[i].chip, 
i1047drivers/scsi/53c7,8xx.cint i, ncr_to_memory, memory_to_ncr, ncr_to_ncr;
i1058drivers/scsi/53c7,8xx.cfor (i = 0; i < PATCHES; ++i) 
i1059drivers/scsi/53c7,8xx.chostdata->script[LABELPATCHES[i]] +=
i1073drivers/scsi/53c7,8xx.cfor (i = 0; i < EXTERNAL_PATCHES_LEN; ++i)
i1074drivers/scsi/53c7,8xx.chostdata->script[EXTERNAL_PATCHES[i].offset] +=
i1075drivers/scsi/53c7,8xx.cvirt_to_bus(EXTERNAL_PATCHES[i].address);
i1216drivers/scsi/53c7,8xx.cint failed, i;
i1325drivers/scsi/53c7,8xx.cfor (i = 0; i < 3; ++i) {
i1334drivers/scsi/53c7,8xx.cdsa[0] = (0x33 << 24) | (i << 16)  ;
i1354drivers/scsi/53c7,8xx.chost->host_no, i, data + 8);
i1362drivers/scsi/53c7,8xx.chost->host_no, i);
i1376drivers/scsi/53c7,8xx.chost->host_no, i);
i1401drivers/scsi/53c7,8xx.cint i;
i1441drivers/scsi/53c7,8xx.cint i;
i1445drivers/scsi/53c7,8xx.cfor (i = 0; i < 2; ++i) {
i1446drivers/scsi/53c7,8xx.cfor (search = (i ? hostdata->issue_dsa_head :
i1447drivers/scsi/53c7,8xx.chostdata->reconnect_dsa_head), prev = (i ? 
i1617drivers/scsi/53c7,8xx.cint desire, divisor, i, limit;
i1632drivers/scsi/53c7,8xx.cfor (i = 0; (i < limit) && (divisor < syncs[i + 1].div); ++i);
i1635drivers/scsi/53c7,8xx.csyncs[i].div / 10, syncs[i].div % 10);
i1640drivers/scsi/53c7,8xx.c~SCNTL3_800_SCF_MASK) | (syncs[i].scf << SCNTL3_800_SCF_SHIFT)) : 0;
i1641drivers/scsi/53c7,8xx.csxfer = (msg[4] << SXFER_MO_SHIFT) | ((syncs[i].tp) << SXFER_TP_SHIFT);
i2132drivers/scsi/53c7,8xx.c{DT_help, "?", 0} , TOKEN(h,0), TOKEN(i,0), TOKEN(mp,2), 
i2155drivers/scsi/53c7,8xx.cint i, j, error, len;
i2175drivers/scsi/53c7,8xx.cfor (i = 0; i < NDT; ++i) {
i2176drivers/scsi/53c7,8xx.clen = strlen (debugger_tokens[i].name);
i2177drivers/scsi/53c7,8xx.cif (!strncmp(input_buf, debugger_tokens[i].name, len)) 
i2181drivers/scsi/53c7,8xx.cif (i == NDT) 
i2184drivers/scsi/53c7,8xx.cfor (ptr = input_buf + len, j = 0; j < debugger_tokens[i].nargs && *ptr;) {
i2194drivers/scsi/53c7,8xx.cif (j != debugger_tokens[i].nargs)
i2359drivers/scsi/53c7,8xx.ci;      /* Counter */
i2384drivers/scsi/53c7,8xx.cfor (i = host->hostt->cmd_per_lun - 1; i >= 0  --i) {
i2406drivers/scsi/53c7,8xx.cif (i > 0) {
i2594drivers/scsi/53c7,8xx.cfor (i = 0; cmd->use_sg ? (i < cmd->use_sg) : !i; cmd_datain += 4, 
i2595drivers/scsi/53c7,8xx.ccmd_dataout += 4, ++i) {
i2597drivers/scsi/53c7,8xx.cvirt_to_bus(((struct scatterlist *)cmd->buffer)[i].address) :
i2600drivers/scsi/53c7,8xx.c((struct scatterlist *)cmd->buffer)[i].length :
i3894drivers/scsi/53c7,8xx.cint i, len;
i3903drivers/scsi/53c7,8xx.cfor (i = dsa[hostdata->dsa_msgout / sizeof(u32)],
i3904drivers/scsi/53c7,8xx.cptr = bus_to_virt(dsa[hostdata->dsa_msgout / sizeof(u32) + 1]); i > 0;
i3905drivers/scsi/53c7,8xx.cptr += len, i -= len) {
i1359drivers/scsi/53c7,8xx.hfor (i = 0; i < (sizeof (A_##symbol##_used) / sizeof     \
i1360drivers/scsi/53c7,8xx.h(u32)); ++i) {            \
i1361drivers/scsi/53c7,8xx.h(script)[A_##symbol##_used[i] - (offset)] += (value);  \
i1364drivers/scsi/53c7,8xx.hhost->host_no, #symbol, i, A_##symbol##_used[i] -   \
i1365drivers/scsi/53c7,8xx.h(int)(offset), #script, (script)[A_##symbol##_used[i] -  \
i1370drivers/scsi/53c7,8xx.hfor (i = 0; i < (sizeof (A_##symbol##_used) / sizeof     \
i1371drivers/scsi/53c7,8xx.h(u32)); ++i)            \
i1372drivers/scsi/53c7,8xx.h(script)[A_##symbol##_used[i] - (offset)] =      \
i1373drivers/scsi/53c7,8xx.h((script)[A_##symbol##_used[i] - (offset)] &     \
i348drivers/scsi/NCR5380.cunsigned char status, data, basr, mr, icr, i;
i357drivers/scsi/NCR5380.cfor (i = 0; signals[i].mask ; ++i) 
i358drivers/scsi/NCR5380.cif (status & signals[i].mask)
i359drivers/scsi/NCR5380.cprintk(" %s", signals[i].name);
i360drivers/scsi/NCR5380.cfor (i = 0; basrs[i].mask ; ++i) 
i361drivers/scsi/NCR5380.cif (basr & basrs[i].mask)
i362drivers/scsi/NCR5380.cprintk(" %s", basrs[i].name);
i363drivers/scsi/NCR5380.cfor (i = 0; icrs[i].mask; ++i) 
i364drivers/scsi/NCR5380.cif (icr & icrs[i].mask)
i365drivers/scsi/NCR5380.cprintk(" %s", icrs[i].name);
i366drivers/scsi/NCR5380.cfor (i = 0; mrs[i].mask; ++i) 
i367drivers/scsi/NCR5380.cif (mr & mrs[i].mask)
i368drivers/scsi/NCR5380.cprintk(" %s", mrs[i].name);
i391drivers/scsi/NCR5380.cint i;
i399drivers/scsi/NCR5380.cfor (i = 0; (phases[i].value != PHASE_UNKNOWN) && 
i400drivers/scsi/NCR5380.c(phases[i].value != (status & PHASE_MASK)); ++i); 
i401drivers/scsi/NCR5380.cprintk("scsi%d : phase %s\n", instance->host_no, phases[i].name);
i612drivers/scsi/NCR5380.cint trying_irqs, i, mask;
i615drivers/scsi/NCR5380.cfor (trying_irqs = i = 0, mask = 1; i < 16; ++i, mask <<= 1) 
i616drivers/scsi/NCR5380.cif ((mask & possible) &&  (request_irq(i, &probe_intr, SA_INTERRUPT, "NCR-probe") 
i645drivers/scsi/NCR5380.cfor (i = 0, mask = 1; i < 16; ++i, mask <<= 1)
i647drivers/scsi/NCR5380.cfree_irq(i);
i765drivers/scsi/NCR5380.cint i;
i783drivers/scsi/NCR5380.cfor (i = hostdata->id_mask; i <= 0x80; i <<= 1)
i784drivers/scsi/NCR5380.cif (i > hostdata->id_mask)
i785drivers/scsi/NCR5380.chostdata->id_higher_mask |= i;
i786drivers/scsi/NCR5380.cfor (i = 0; i < 8; ++i)
i787drivers/scsi/NCR5380.chostdata->busy[i] = 0;
i544drivers/scsi/aha152x.cint i;
i550drivers/scsi/aha152x.cfor(i=0; i<16; i++)
i551drivers/scsi/aha152x.cSETPORT( STACK, i );
i554drivers/scsi/aha152x.cfor(i=0; i<16 && GETPORT(STACK)==i; i++)
i557drivers/scsi/aha152x.creturn(i==16);
i562drivers/scsi/aha152x.cint                 i, ok;
i598drivers/scsi/aha152x.cfor( i=0; i<PORT_COUNT && (port_base != ports[i]); i++)
i601drivers/scsi/aha152x.cif(i==PORT_COUNT)
i619drivers/scsi/aha152x.ci=0;
i620drivers/scsi/aha152x.cwhile(irqs[i] && (interrupt_level!=irqs[i]))
i621drivers/scsi/aha152x.ci++;
i622drivers/scsi/aha152x.cif(!irqs[i])
i654drivers/scsi/aha152x.cfor( i=0; i < ADDRESS_COUNT && !ok; i++)
i656drivers/scsi/aha152x.cok=!memcmp((void *) addresses[i]+signatures[j].sig_offset,
i670drivers/scsi/aha152x.cfor( i=0; i<PORT_COUNT && !aha152x_porttest(ports[i]); i++)
i673drivers/scsi/aha152x.cif(i==PORT_COUNT)
i679drivers/scsi/aha152x.cport_base=ports[i];
i1243drivers/scsi/aha152x.cint identify_msg, target, i;
i1270drivers/scsi/aha152x.ci = GETPORT(SELID) & ~(1 << this_host);
i1272drivers/scsi/aha152x.cif(i)
i1273drivers/scsi/aha152x.cfor( ; (i & 1)==0; target++, i>>=1)
i1291drivers/scsi/aha152x.cif((i=getphase())!=P_MSGI)
i1293drivers/scsi/aha152x.cprintk("target doesn't enter MSGI to identify (phase=%02x)\n", i);
i1738drivers/scsi/aha152x.cint           i, code;
i1748drivers/scsi/aha152x.ci=GETPORT(SCSIBUS);
i1752drivers/scsi/aha152x.cprintk("length (%d), code ( ", i);
i1805drivers/scsi/aha152x.cwhile( --i && (make_acklow(), getphase()==P_MSGI))
i1979drivers/scsi/aha152x.cint           i;
i1985drivers/scsi/aha152x.cfor( i=0; i<2*data_count; i++)
i285drivers/scsi/aha1542.cint i;
i304drivers/scsi/aha1542.ci = jiffies + 2;
i305drivers/scsi/aha1542.cwhile (i>jiffies); /* Wait a little bit for things to settle down. */
i482drivers/scsi/aha1542.cint i;
i486drivers/scsi/aha1542.cfor (i = 0; i < 12; i++)
i487drivers/scsi/aha1542.cprintk("%02x ", ccb[mbo].cdb[ccb[mbo].cdblen+i]);
i520drivers/scsi/aha1542.cDEB(int i);
i542drivers/scsi/aha1542.ci = xscsi2int(cmd+2);
i544drivers/scsi/aha1542.ci = scsi2int(cmd+2);
i546drivers/scsi/aha1542.ci = -1;
i548drivers/scsi/aha1542.cprintk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen);
i550drivers/scsi/aha1542.cprintk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen);
i553drivers/scsi/aha1542.cfor (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]);
i606drivers/scsi/aha1542.cint i;
i612drivers/scsi/aha1542.cfor(i=0; i<SCpnt->use_sg; i++) {
i613drivers/scsi/aha1542.cif(sgpnt[i].length == 0 || SCpnt->use_sg > 16 || 
i614drivers/scsi/aha1542.c(((int)sgpnt[i].address) & 1) || (sgpnt[i].length & 1)){
i616drivers/scsi/aha1542.cprintk("Bad segment list supplied to aha1542.c (%d, %d)\n",SCpnt->use_sg,i);
i617drivers/scsi/aha1542.cfor(i=0;i<SCpnt->use_sg;i++){
i618drivers/scsi/aha1542.cprintk("%d: %x %x %d\n",i,(unsigned int) sgpnt[i].address, (unsigned int) sgpnt[i].alt_address,
i619drivers/scsi/aha1542.csgpnt[i].length);
i622drivers/scsi/aha1542.cptr = (unsigned char *) &cptr[i];
i623drivers/scsi/aha1542.cfor(i=0;i<18;i++) printk("%02x ", ptr[i]);
i626drivers/scsi/aha1542.cany2scsi(cptr[i].dataptr, sgpnt[i].address);
i627drivers/scsi/aha1542.cif(((unsigned  int) sgpnt[i].address) & 0xff000000) goto baddma;
i628drivers/scsi/aha1542.cany2scsi(cptr[i].datalen, sgpnt[i].length);
i635drivers/scsi/aha1542.cfor(i=0;i<18;i++) printk("%02x ", ptr[i]);
i650drivers/scsi/aha1542.c{ int i;
i652drivers/scsi/aha1542.cfor (i = 0; i < sizeof(ccb[mbo])-10; i++)
i653drivers/scsi/aha1542.cprintk("%02x ", ((unchar *)&ccb[mbo])[i]);
i692drivers/scsi/aha1542.cint i;
i701drivers/scsi/aha1542.cfor(i=0; i<AHA1542_MAILBOXES; i++){
i702drivers/scsi/aha1542.cmb[i].status = mb[AHA1542_MAILBOXES+i].status = 0;
i703drivers/scsi/aha1542.cany2scsi(mb[i].ccbptr, &ccb[i]);
i720drivers/scsi/aha1542.cint i;
i721drivers/scsi/aha1542.ci = inb(STATUS(base_io));
i722drivers/scsi/aha1542.cif (i & DF) {
i723drivers/scsi/aha1542.ci = inb(DATA(base_io));
i820drivers/scsi/aha1542.cint i;
i821drivers/scsi/aha1542.ci = inb(STATUS(base_io));
i822drivers/scsi/aha1542.cif (i & DF) {
i823drivers/scsi/aha1542.ci = inb(DATA(base_io));
i1030drivers/scsi/aha1542.cint i;
i1032drivers/scsi/aha1542.cfor (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87;
i1033drivers/scsi/aha1542.cfor (i = 0; i < 2; ++i)
i1034drivers/scsi/aha1542.cif (!aha1542_command(i, cmd, buf, sizeof(buf))) {
i1036drivers/scsi/aha1542.ci, xscsi2int(buf+4), xscsi2int(buf));
i1042drivers/scsi/aha1542.cfor (i = 0; i < 4; ++i)
i1049drivers/scsi/aha1542.cxany2scsi(cmd+2, i);
i1070drivers/scsi/aha1542.cint i;
i1076drivers/scsi/aha1542.cfor(i=0; i< AHA1542_MAILBOXES; i++)
i1077drivers/scsi/aha1542.cif(HOSTDATA(shost)->SCint[i] && 
i1078drivers/scsi/aha1542.c!(HOSTDATA(shost)->SCint[i]->device->soft_reset))
i1081drivers/scsi/aha1542.cHOSTDATA(shost)->mb[i].status = 1; /* Indicate ready to restart... */
i1104drivers/scsi/aha1542.cint mbi, mbo, i;
i1133drivers/scsi/aha1542.cfor(i=0; i< AHA1542_MAILBOXES; i++)
i1134drivers/scsi/aha1542.cif(HOSTDATA(SCpnt->host)->SCint[i])
i1136drivers/scsi/aha1542.cif(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt) {
i1138drivers/scsi/aha1542.cif (HOSTDATA(SCpnt->host)->mb[i].status) {
i1172drivers/scsi/aha1542.cint i;
i1181drivers/scsi/aha1542.cfor(i=0; i< AHA1542_MAILBOXES; i++)
i1182drivers/scsi/aha1542.cif(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt)
i1184drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->ccb[i].op = 0x81;  /* BUS DEVICE RESET */
i1198drivers/scsi/aha1542.cfor(i=0; i< AHA1542_MAILBOXES; i++)
i1199drivers/scsi/aha1542.cif(HOSTDATA(SCpnt->host)->SCint[i] &&
i1200drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->SCint[i]->target == SCpnt->target)
i1203drivers/scsi/aha1542.cSCtmp = HOSTDATA(SCpnt->host)->SCint[i];
i1209drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->SCint[i] = NULL;
i1210drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->mb[i].status = 0;
i255drivers/scsi/aha1740.cDEB(int i);
i271drivers/scsi/aha1740.ci = xscsi2int(cmd+2);
i273drivers/scsi/aha1740.ci = scsi2int(cmd+2);
i275drivers/scsi/aha1740.ci = -1;
i276drivers/scsi/aha1740.cprintk("aha1740_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen);
i278drivers/scsi/aha1740.cfor (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]);
i322drivers/scsi/aha1740.cint i;
i331drivers/scsi/aha1740.cfor(i=0; i<SCpnt->use_sg; i++)
i333drivers/scsi/aha1740.ccptr[i].dataptr = (long) sgpnt[i].address;
i334drivers/scsi/aha1740.ccptr[i].datalen = sgpnt[i].length;
i341drivers/scsi/aha1740.cfor(i=0;i<24;i++) printk("%02x ", ptr[i]);
i361drivers/scsi/aha1740.cint i;
i363drivers/scsi/aha1740.cfor (i = 0; i < sizeof(ecb[ecbno])-10; i++)
i364drivers/scsi/aha1740.cprintk("%02x ", ((unchar *)&ecb[ecbno])[i]);
i1030drivers/scsi/aic7xxx.cint   i;
i1044drivers/scsi/aic7xxx.cfor (i = 0; options[i].name; i++)
i1046drivers/scsi/aic7xxx.cif (!strcmp(options[i].name, p))
i1048drivers/scsi/aic7xxx.c*(options[i].flag) = !0;
i1125drivers/scsi/aic7xxx.cunsigned long i;
i1127drivers/scsi/aic7xxx.ci = jiffies + (seconds * 100);  /* compute time to stop */
i1129drivers/scsi/aic7xxx.cwhile (jiffies < i)
i1311drivers/scsi/aic7xxx.cint i, segments;
i1320drivers/scsi/aic7xxx.cfor (i = length = 0; i < cmd->use_sg && i < segments; i++)
i1322drivers/scsi/aic7xxx.clength += sg[i].length;
i1344drivers/scsi/aic7xxx.cint i;
i1346drivers/scsi/aic7xxx.cfor (i = 0; i < num_aic7xxx_syncrates; i++)
i1348drivers/scsi/aic7xxx.cif ((aic7xxx_syncrates[i].period - period) >= 0)
i1350drivers/scsi/aic7xxx.c*scsirate = (aic7xxx_syncrates[i].rate << 4) | (offset & 0x0F);
i1352drivers/scsi/aic7xxx.ctarget, aic7xxx_syncrates[i].english, offset);
i1434drivers/scsi/aic7xxx.cint i;
i1438drivers/scsi/aic7xxx.cfor (i = 0; i < NUMBER(hard_error); i++)
i1440drivers/scsi/aic7xxx.cif (errno & hard_error[i].errno)
i1442drivers/scsi/aic7xxx.cprintk("  %s\n", hard_error[i].errmesg);
i2238drivers/scsi/aic7xxx.cint i;
i2256drivers/scsi/aic7xxx.cfor (i = 0; i < sizeof(buf); i++)
i2258drivers/scsi/aic7xxx.coutb(0x80 + i, base);
i2259drivers/scsi/aic7xxx.cbuf[i] = inb(base + i);
i2262drivers/scsi/aic7xxx.cfor (i = 0; i < NUMBER(AIC7xxx); i++)
i2267drivers/scsi/aic7xxx.cif (!memcmp(buf, AIC7xxx[i].signature, AIC7xxx[i].n))
i2271drivers/scsi/aic7xxx.creturn(AIC7xxx[i].type);
i2333drivers/scsi/aic7xxx.cint i = 0, k = 0;
i2385drivers/scsi/aic7xxx.cfor (i = 0; i < seeprom_read.len; i = i + 1)
i2387drivers/scsi/aic7xxx.ctemp = SEEMS | SEECS | (seeprom_read.bits[i] << 1);
i2395drivers/scsi/aic7xxx.cfor (i = 5; i >= 0; i = i - 1)
i2398drivers/scsi/aic7xxx.ctemp = (temp >> i) & 1;  /* Mask out all but lower bit. */
i2413drivers/scsi/aic7xxx.cfor (i = 0; i <= 16; i = i + 1)
i2549drivers/scsi/aic7xxx.cint i;
i2860drivers/scsi/aic7xxx.cfor (i = 0; i < AIC7XXX_MAXSCB; i = i + 1)
i2862drivers/scsi/aic7xxx.cp->scb_array[i].state = SCB_FREE;
i2863drivers/scsi/aic7xxx.cp->scb_array[i].next = NULL;
i2864drivers/scsi/aic7xxx.cp->scb_array[i].cmd = NULL;
i2969drivers/scsi/aic7xxx.cfor (i = 0; i < max_targets; i = i + 1)
i2973drivers/scsi/aic7xxx.ctarget_settings = (sc.device_flags[i] & CFXFER) << 4;
i2974drivers/scsi/aic7xxx.cif (sc.device_flags[i] & CFSYNCH)
i2976drivers/scsi/aic7xxx.cp->needsdtr_copy = p->needsdtr_copy | (0x01 << i);
i2978drivers/scsi/aic7xxx.cif ((sc.device_flags[i] & CFWIDEB) && (p->bus_type == AIC_WIDE))
i2980drivers/scsi/aic7xxx.cp->needwdtr_copy = p->needwdtr_copy | (0x01 << i);
i2985drivers/scsi/aic7xxx.ctarget_settings = inb(HA_TARG_SCRATCH(base) + i);
i2988drivers/scsi/aic7xxx.cp->needsdtr_copy = p->needsdtr_copy | (0x01 << i);
i3001drivers/scsi/aic7xxx.cp->needwdtr_copy = p->needwdtr_copy | (0x01 << i);
i3005drivers/scsi/aic7xxx.coutb(target_settings, (HA_TARG_SCRATCH(base) + i));
i3017drivers/scsi/aic7xxx.cfor (i = 0; i < config.maxscb; i = i + 1)
i3019drivers/scsi/aic7xxx.coutb(i, SCBPTR(base));
i3083drivers/scsi/aic7xxx.cint i;
i3092drivers/scsi/aic7xxx.cfor (i = 0; i <= MAXIRQ; i++)
i3094drivers/scsi/aic7xxx.caic7xxx_boards[i] = NULL;
i3570drivers/scsi/aic7xxx.cint i, active_scb, found, queued;
i3593drivers/scsi/aic7xxx.cfor (i = found = 0; i < (queued - found); i++)
i3595drivers/scsi/aic7xxx.cscbsave[i] = inb(QINFIFO(p->base));
i3597drivers/scsi/aic7xxx.cif (scbsave[i] == scb->position)
i3600drivers/scsi/aic7xxx.ci = i - 1;
i3604drivers/scsi/aic7xxx.cfor (queued = 0; queued < i; queued++)
i150drivers/scsi/aic7xxx_asm.cint i;
i168drivers/scsi/aic7xxx_asm.cfor (i = 0; i < p->npatch; i++) {
i169drivers/scsi/aic7xxx_asm.cM[p->patch[i]][0] &= ~1;
i170drivers/scsi/aic7xxx_asm.cM[p->patch[i]][0] |= ((p->value >> 8) & 1);
i171drivers/scsi/aic7xxx_asm.cM[p->patch[i]][1] = p->value & 0xff;
i174drivers/scsi/aic7xxx_asm.cfprintf(stderr, " 0x%x", p->patch[i]);
i190drivers/scsi/aic7xxx_asm.cint i;
i192drivers/scsi/aic7xxx_asm.cfor (i = 0; i < LC; i++)
i194drivers/scsi/aic7xxx_asm.cM[i][3],
i195drivers/scsi/aic7xxx_asm.cM[i][2],
i196drivers/scsi/aic7xxx_asm.cM[i][1],
i197drivers/scsi/aic7xxx_asm.cM[i][0]);
i204drivers/scsi/aic7xxx_asm.cint i;
i209drivers/scsi/aic7xxx_asm.ci = 0;
i227drivers/scsi/aic7xxx_asm.cif (i < MAXTOKEN-1)
i228drivers/scsi/aic7xxx_asm.ca[i++] = p;
i236drivers/scsi/aic7xxx_asm.celse if (i < MAXTOKEN-1) {
i237drivers/scsi/aic7xxx_asm.ca[i++] = quote;
i245drivers/scsi/aic7xxx_asm.cif (i) {
i246drivers/scsi/aic7xxx_asm.c*n = i;
i327drivers/scsi/aic7xxx_asm.cint i;
i347drivers/scsi/aic7xxx_asm.cfor (i = 0; i < sizeof(jmptab)/sizeof(jmptab[0]); i++)
i348drivers/scsi/aic7xxx_asm.cif (jmptab[i].what == want &&
i349drivers/scsi/aic7xxx_asm.c!strcmp(jmptab[i].name, a[spec]))
i351drivers/scsi/aic7xxx_asm.creturn(jmptab[i].value);
i458drivers/scsi/aic7xxx_asm.cint i;
i471drivers/scsi/aic7xxx_asm.cfor (i = 0; instr[i].name; i++) {
i477drivers/scsi/aic7xxx_asm.cif (!strcmp(instr[i].name, *a) && instr[i].n == n)
i480drivers/scsi/aic7xxx_asm.cif (!instr[i].name)
i483drivers/scsi/aic7xxx_asm.cI_op  = eval_operand(a, instr[i].op);
i484drivers/scsi/aic7xxx_asm.cI_src  = eval_sdi(a, instr[i].src);
i485drivers/scsi/aic7xxx_asm.cI_imm  = eval_sdi(a, instr[i].imm);
i486drivers/scsi/aic7xxx_asm.cI_dest  = eval_sdi(a, instr[i].dest);
i487drivers/scsi/aic7xxx_asm.cI_addr  = eval_addr(a, instr[i].addr);
i492drivers/scsi/aic7xxx_asm.cswitch (instr[i].fmt) {
i240drivers/scsi/buslogic.cint s = inb(STATUS(base)), i = inb(INTERRUPT(base));
i242drivers/scsi/buslogic.cbuslogic_printk("status=%02X intrflags=%02X\n", s, i);
i448drivers/scsi/buslogic.cint base, interrupt_flags, found, i;
i542drivers/scsi/buslogic.cfor (i = 0; i < found; i++)
i544drivers/scsi/buslogic.cint mbo = saved_mbo[i];
i607drivers/scsi/buslogic.cint i;
i611drivers/scsi/buslogic.ci = *(int *)(cmd + 2);
i613drivers/scsi/buslogic.ci = -1;
i615drivers/scsi/buslogic.ctarget, *cmd, i, bufflen);
i618drivers/scsi/buslogic.cfor (i = 0; i < scpnt->cmd_len; i++)
i619drivers/scsi/buslogic.cprintk(" %02X", cmd[i]);
i686drivers/scsi/buslogic.csize_t i;
i703drivers/scsi/buslogic.cfor (i = 0; i < scpnt->use_sg; i++) {
i704drivers/scsi/buslogic.cCHECK_DMA_ADDR(shpnt->unchecked_isa_dma, sgpnt[i].address,
i706drivers/scsi/buslogic.ccptr[i].dataptr = sgpnt[i].address;
i707drivers/scsi/buslogic.ccptr[i].datalen = sgpnt[i].length;
i717drivers/scsi/buslogic.cfor (i = 0; i < 18; i++)
i718drivers/scsi/buslogic.cprintk(" %02X", ptr[i]);
i738drivers/scsi/buslogic.csize_t i;
i741drivers/scsi/buslogic.cfor (i = 0; i < sizeof(struct ccb) - 10; i++)
i742drivers/scsi/buslogic.cprintk(" %02X", ((unsigned char *)ccb)[i]);
i799drivers/scsi/buslogic.csize_t i;
i808drivers/scsi/buslogic.cfor (i = 0; i < BUSLOGIC_MAILBOXES; i++) {
i809drivers/scsi/buslogic.cmb[i].status = mb[BUSLOGIC_MAILBOXES + i].status = MBX_NOT_IN_USE;
i810drivers/scsi/buslogic.cmb[i].ccbptr = &ccb[i];
i837drivers/scsi/buslogic.cint i;
i843drivers/scsi/buslogic.ci = inb(STATUS(base));
i844drivers/scsi/buslogic.cif (i & DIRRDY)
i845drivers/scsi/buslogic.ci = inb(DATA_IN(base));
i947drivers/scsi/buslogic.cunsigned int i;
i975drivers/scsi/buslogic.ci = jiffies + 2;
i976drivers/scsi/buslogic.cwhile (i > jiffies);
i1280drivers/scsi/buslogic.csize_t i;
i1285drivers/scsi/buslogic.cfor (i = 0; i < sizeof buf; i++)
i1286drivers/scsi/buslogic.cbuf[i] = 0x87;
i1287drivers/scsi/buslogic.cfor (i = 0; i < 2; i++)
i1288drivers/scsi/buslogic.cif (!buslogic_command(i, cmd, buf, sizeof buf)) {
i1290drivers/scsi/buslogic.ci, *(int *)(buf + 4), *(int *)buf);
i1296drivers/scsi/buslogic.cfor (i = 0; i < 4; i++) {
i1301drivers/scsi/buslogic.cxany2scsi(cmd + 2, i);
i1323drivers/scsi/buslogic.cunsigned int i;
i1329drivers/scsi/buslogic.cfor (i = 0; i < BUSLOGIC_MAILBOXES; i++)
i1330drivers/scsi/buslogic.cif (HOSTDATA(shpnt)->sc[i]
i1331drivers/scsi/buslogic.c&& !HOSTDATA(shpnt)->sc[i]->device->soft_reset) {
i1333drivers/scsi/buslogic.cHOSTDATA(shpnt)->mb[i].status
i1359drivers/scsi/buslogic.cunsigned int i;
i1395drivers/scsi/buslogic.cfor (i = 0; i < BUSLOGIC_MAILBOXES; i++)
i1396drivers/scsi/buslogic.cif (HOSTDATA(scpnt->host)->sc[i]) {
i1397drivers/scsi/buslogic.cif (HOSTDATA(scpnt->host)->sc[i] == scpnt) {
i1400drivers/scsi/buslogic.cif (HOSTDATA(scpnt->host)->mb[i].status != MBX_NOT_IN_USE) {
i1439drivers/scsi/buslogic.cunsigned int i;
i1450drivers/scsi/buslogic.cfor (i = 0; i < BUSLOGIC_MAILBOXES; i++)
i1451drivers/scsi/buslogic.cif (HOSTDATA(scpnt->host)->sc[i] == scpnt) {
i1452drivers/scsi/buslogic.cHOSTDATA(scpnt->host)->ccbs[i].op = CCB_OP_BUS_RESET;
i1469drivers/scsi/buslogic.cfor (i = 0; i < BUSLOGIC_MAILBOXES; i++)
i1470drivers/scsi/buslogic.cif (HOSTDATA(scpnt->host)->sc[i]
i1471drivers/scsi/buslogic.c&& HOSTDATA(scpnt->host)->sc[i]->target == scpnt->target) {
i1472drivers/scsi/buslogic.cScsi_Cmnd *sctmp = HOSTDATA(scpnt->host)->sc[i];
i1481drivers/scsi/buslogic.cHOSTDATA(scpnt->host)->sc[i] = NULL;
i1482drivers/scsi/buslogic.cHOSTDATA(scpnt->host)->mb[i].status = MBX_NOT_IN_USE;
i1541drivers/scsi/buslogic.csize_t i;
i1552drivers/scsi/buslogic.cfor (i = 0; i < ARRAY_SIZE(valid_bases); i++)
i1553drivers/scsi/buslogic.cif (valid_bases[i] == ints[1]) {
i117drivers/scsi/constants.cint i,s;
i119drivers/scsi/constants.cfor ( i = 1, s = COMMAND_SIZE(command[0]); i < s; ++i) 
i120drivers/scsi/constants.cprintk("%02x ", command[i]);
i381drivers/scsi/constants.cint i, s;
i426drivers/scsi/constants.cfor(i=0; additional[i].text; i++)
i427drivers/scsi/constants.cif(additional[i].code1 == sense_buffer[12] &&
i428drivers/scsi/constants.cadditional[i].code2 == sense_buffer[13])
i429drivers/scsi/constants.cprintk("Additional sense indicates %s\n", additional[i].text);
i431drivers/scsi/constants.cfor(i=0; additional2[i].text; i++)
i432drivers/scsi/constants.cif(additional2[i].code1 == sense_buffer[12] &&
i433drivers/scsi/constants.cadditional2[i].code2_min >= sense_buffer[13]  &&
i434drivers/scsi/constants.cadditional2[i].code2_max <= sense_buffer[13]) {
i436drivers/scsi/constants.cprintk(additional2[i].text, sense_buffer[13]);
i458drivers/scsi/constants.cfor (i = 0; i < s; ++i) 
i459drivers/scsi/constants.cprintk("0x%02x ", sense_buffer[i]);
i493drivers/scsi/constants.cint len = 0, i;
i514drivers/scsi/constants.cfor (i = 2; i < len; ++i) 
i515drivers/scsi/constants.cprintk("%02x ", msg[i]);
i518drivers/scsi/constants.cfor (i = 0; i < len; ++i)
i519drivers/scsi/constants.cprintk("%02x ", msg[i]);
i598drivers/scsi/eata.cunsigned int i, j, k, flags;
i617drivers/scsi/eata.ci = HD(j)->last_cp_used + 1;
i619drivers/scsi/eata.cfor (k = 0; k < sh[j]->can_queue; k++, i++) {
i621drivers/scsi/eata.cif (i >= sh[j]->can_queue) i = 0;
i623drivers/scsi/eata.cif (HD(j)->cp_stat[i] == FREE) {
i624drivers/scsi/eata.cHD(j)->last_cp_used = i;
i646drivers/scsi/eata.ccpp = &HD(j)->cp[i];
i651drivers/scsi/eata.cspp = &HD(j)->sp[i];
i659drivers/scsi/eata.ccpp->index = i;
i663drivers/scsi/eata.cBN(j), i, SCpnt->target, SCpnt->pid);
i703drivers/scsi/eata.cHD(j)->cp_stat[i] = IN_USE;
i709drivers/scsi/eata.cunsigned int i, j, flags;
i721drivers/scsi/eata.ci = *(unsigned int *)SCarg->host_scribble;
i723drivers/scsi/eata.cBN(j), i, SCarg->target, SCarg->pid);
i725drivers/scsi/eata.cif (i >= sh[j]->can_queue)
i734drivers/scsi/eata.cif (HD(j)->cp_stat[i] == FREE) {
i735drivers/scsi/eata.cprintk("%s: abort, mbox %d is free.\n", BN(j), i);
i740drivers/scsi/eata.cif (HD(j)->cp_stat[i] == IN_USE) {
i741drivers/scsi/eata.cprintk("%s: abort, mbox %d is in use.\n", BN(j), i);
i743drivers/scsi/eata.cif (SCarg != HD(j)->cp[i].SCpnt)
i745drivers/scsi/eata.cBN(j), i, SCarg, HD(j)->cp[i].SCpnt);
i751drivers/scsi/eata.cif (HD(j)->cp_stat[i] == IN_RESET) {
i752drivers/scsi/eata.cprintk("%s: abort, mbox %d is in reset.\n", BN(j), i);
i757drivers/scsi/eata.cif (HD(j)->cp_stat[i] == LOCKED) {
i758drivers/scsi/eata.cprintk("%s: abort, mbox %d is locked.\n", BN(j), i);
i763drivers/scsi/eata.cpanic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i);
i767drivers/scsi/eata.cunsigned int i, j, flags, time, k, limit = 0;
i796drivers/scsi/eata.cfor (i = 0; i < sh[j]->can_queue; i++) {
i798drivers/scsi/eata.cif (HD(j)->cp_stat[i] == FREE) continue;
i800drivers/scsi/eata.cif (HD(j)->cp_stat[i] == LOCKED) {
i801drivers/scsi/eata.cHD(j)->cp_stat[i] = FREE;
i802drivers/scsi/eata.cprintk("%s: reset, locked mbox %d forced free.\n", BN(j), i);
i806drivers/scsi/eata.cSCpnt = HD(j)->cp[i].SCpnt;
i807drivers/scsi/eata.cHD(j)->cp_stat[i] = IN_RESET;
i809drivers/scsi/eata.cBN(j), i, SCpnt->pid);
i812drivers/scsi/eata.cpanic("%s: reset, mbox %d, SCpnt == NULL.\n", BN(j), i);
i815drivers/scsi/eata.cpanic("%s: reset, mbox %d, garbled SCpnt.\n", BN(j), i);
i817drivers/scsi/eata.cif (*(unsigned int *)SCpnt->host_scribble != i) 
i818drivers/scsi/eata.cpanic("%s: reset, mbox %d, index mismatch.\n", BN(j), i);
i821drivers/scsi/eata.cpanic("%s: reset, mbox %d, SCpnt->scsi_done == NULL.\n", BN(j), i);
i845drivers/scsi/eata.cfor (i = 0; i < sh[j]->can_queue; i++) {
i848drivers/scsi/eata.cif (HD(j)->cp_stat[i] != IN_RESET) continue;
i850drivers/scsi/eata.cSCpnt = HD(j)->cp[i].SCpnt;
i855drivers/scsi/eata.cHD(j)->cp_stat[i] = LOCKED;
i858drivers/scsi/eata.cBN(j), i, SCpnt->pid);
i880drivers/scsi/eata.cunsigned int i, j, k, flags, status, tstatus, loops, total_loops = 0;
i915drivers/scsi/eata.cfor (i = 0; i < sh[j]->can_queue; i++) {
i916drivers/scsi/eata.cspp = &HD(j)->sp[i];
i923drivers/scsi/eata.cif (HD(j)->cp_stat[i] == IGNORE) {
i924drivers/scsi/eata.cHD(j)->cp_stat[i] = FREE;
i927drivers/scsi/eata.celse if (HD(j)->cp_stat[i] == LOCKED) {
i928drivers/scsi/eata.cHD(j)->cp_stat[i] = FREE;
i930drivers/scsi/eata.cBN(j), i, HD(j)->iocount);
i933drivers/scsi/eata.celse if (HD(j)->cp_stat[i] == FREE) {
i935drivers/scsi/eata.cBN(j), i, HD(j)->iocount);
i938drivers/scsi/eata.celse if (HD(j)->cp_stat[i] == IN_RESET)
i939drivers/scsi/eata.cprintk("%s: ihdlr, mbox %d is in reset.\n", BN(j), i);
i940drivers/scsi/eata.celse if (HD(j)->cp_stat[i] != IN_USE) 
i941drivers/scsi/eata.cpanic("%s: ihdlr, mbox %d, invalid cp_stat.\n", BN(j), i);
i943drivers/scsi/eata.cHD(j)->cp_stat[i] = FREE;
i944drivers/scsi/eata.ccpp = &HD(j)->cp[i];
i948drivers/scsi/eata.cpanic("%s: ihdlr, mbox %d, SCpnt == NULL.\n", BN(j), i);
i952drivers/scsi/eata.cBN(j), i, SCpnt, cpp->SCpnt);
i956drivers/scsi/eata.cBN(j), i, SCpnt->pid, SCpnt);
i958drivers/scsi/eata.cif (*(unsigned int *)SCpnt->host_scribble != i) 
i960drivers/scsi/eata.c" irq %d.\n", BN(j), i, SCpnt->pid, 
i1050drivers/scsi/eata.cBN(j), i, spp->adapter_status, spp->target_status,
i123drivers/scsi/eata_dma.cuint i;
i129drivers/scsi/eata_dma.cfor (i = 0; i < sh->can_queue; i++){ /* Free all SG arrays */
i130drivers/scsi/eata_dma.cif(SD(sh)->ccb[i].sg_list != NULL)
i131drivers/scsi/eata_dma.cscsi_init_free((void *) SD(sh)->ccb[i].sg_list, 
i152drivers/scsi/eata_dma.cuint i, result = 0;
i263drivers/scsi/eata_dma.cfor (i = 0; i < MAXTARGET; i++)
i264drivers/scsi/eata_dma.cHD(cmd)->t_state[cp->cp_channel][i] = RESET;
i346drivers/scsi/eata_dma.cunsigned int i, x, y;
i468drivers/scsi/eata_dma.cfor(i = 0; i < cmd->use_sg; i++, sl++){
i469drivers/scsi/eata_dma.ccp->sg_list[i].data = htonl((u32) sl->address);
i470drivers/scsi/eata_dma.ccp->sg_list[i].len = htonl((u32) sl->length);
i678drivers/scsi/eata_dma.culong i;
i716drivers/scsi/eata_dma.ci = jiffies + (3 * HZ) ;
i717drivers/scsi/eata_dma.cwhile (fake_int_result == FALSE && jiffies <= i) 
i728drivers/scsi/eata_dma.cif ((fake_int_result & HA_SERROR) || jiffies > i){
i732drivers/scsi/eata_dma.ci = jiffies;
i733drivers/scsi/eata_dma.cwhile (jiffies < (i + (3 * HZ)) && limit++ < 10000000)
i1084drivers/scsi/eata_dma.cint i;
i1090drivers/scsi/eata_dma.cfor (i = 0; i < MAXEISA; i++) {
i1091drivers/scsi/eata_dma.cif (EISAbases[i] == TRUE) { /* Still a possibility ?        */
i1093drivers/scsi/eata_dma.cbase = 0x1c88 + (i * 0x1000);
i1117drivers/scsi/eata_dma.cEISAbases[i] = 0;  
i1128drivers/scsi/eata_dma.cint i;
i1130drivers/scsi/eata_dma.cfor (i = 0; i < MAXISA; i++) {  
i1131drivers/scsi/eata_dma.cif (ISAbases[i]) {  
i1132drivers/scsi/eata_dma.cif (get_conf_PIO(ISAbases[i],buf) == TRUE){
i1133drivers/scsi/eata_dma.cregister_HBA(ISAbases[i], buf, tpnt, IS_ISA);
i1135drivers/scsi/eata_dma.cif (check_blink_state(ISAbases[i])) 
i1139drivers/scsi/eata_dma.cISAbases[i] = 0;
i1157drivers/scsi/eata_dma.cu32 error, i, x;
i1160drivers/scsi/eata_dma.cfor (i = 0; i <= MAXPCI; ++i, ++pci_index) {
i1249drivers/scsi/eata_dma.cint i;
i1263drivers/scsi/eata_dma.cfor (i = 0; i <= MAXIRQ; i++)
i1264drivers/scsi/eata_dma.cif (reg_IRQ[i]){
i1265drivers/scsi/eata_dma.cfree_irq(i);
i1266drivers/scsi/eata_dma.crequest_irq(i, (void *)(eata_int_handler), SA_INTERRUPT, "eata_dma");
i1279drivers/scsi/eata_dma.cfor (i = 1; i <= registered_HBAs; i++) {
i102drivers/scsi/eata_dma_proc.cint i, x; 
i108drivers/scsi/eata_dma_proc.cfor (i = 1; i <= registered_HBAs; i++) {
i80drivers/scsi/eata_generic.h#define DELAY(x) { __u32 i; i = jiffies + (x * HZ); while (jiffies < i) barrier(); }
i81drivers/scsi/eata_generic.h#define DEL2(x)   { __u32 i; for (i = 0; i < 0xffff * x; i++); }
i823drivers/scsi/eata_pio.cint i;
i825drivers/scsi/eata_pio.cfor (i = 0; i < MAXISA; i++) {  
i826drivers/scsi/eata_pio.cif (ISAbases[i]) {  
i827drivers/scsi/eata_pio.cif (get_pio_conf_PIO(ISAbases[i], buf) == TRUE){
i828drivers/scsi/eata_pio.cregister_pio_HBA(ISAbases[i], buf, tpnt);
i830drivers/scsi/eata_pio.cISAbases[i] = 0;
i839drivers/scsi/eata_pio.cint i;
i845drivers/scsi/eata_pio.cfor (i = 0; i < MAXEISA; i++) {
i846drivers/scsi/eata_pio.cif (EISAbases[i] == TRUE) { /* Still a possibility ?          */
i848drivers/scsi/eata_pio.cbase = 0x1c88 + (i * 0x1000);
i868drivers/scsi/eata_pio.cEISAbases[i] = 0;
i889drivers/scsi/eata_pio.cu32 error, i, x;
i892drivers/scsi/eata_pio.cfor (i = 0; i <= MAXPCI; ++i, ++pci_index) {
i979drivers/scsi/eata_pio.cint i;
i991drivers/scsi/eata_pio.cfor (i = 0; i <= MAXIRQ; i++)
i992drivers/scsi/eata_pio.cif (reg_IRQ[i])
i993drivers/scsi/eata_pio.crequest_irq(i, eata_pio_int_handler, SA_INTERRUPT, "EATA-PIO");
i1006drivers/scsi/eata_pio.cfor (i = 1; i <= registered_HBAs; i++) {
i43drivers/scsi/eata_pio_proc.cint i, x; 
i49drivers/scsi/eata_pio_proc.cfor (i = 1; i <= registered_HBAs; i++) {
i517drivers/scsi/fdomain.cint i;
i520drivers/scsi/fdomain.cfor (i = 0; i < 255; i++) {
i521drivers/scsi/fdomain.coutb( i, port_base + Write_Loopback );
i523drivers/scsi/fdomain.cif (i != result)
i565drivers/scsi/fdomain.cint i;
i598drivers/scsi/fdomain.cfor (flag = 0, i = 0; !flag && i < PORT_COUNT; i++) {
i599drivers/scsi/fdomain.cif (base == ports[i])
i627drivers/scsi/fdomain.cfor (i = 0; i < PORT_COUNT; i++) {
i628drivers/scsi/fdomain.cbase = ports[i];
i651drivers/scsi/fdomain.cint i;
i664drivers/scsi/fdomain.cfor (i = 0xfff8; i > 0xe000; i -= 8) {
i665drivers/scsi/fdomain.cif (check_region( i, 0x10 )) {
i667drivers/scsi/fdomain.cprintk( " (%x inuse)," , i );
i671drivers/scsi/fdomain.cif ((flag = fdomain_is_valid_port( i ))) break;
i676drivers/scsi/fdomain.c*irq    = fdomain_get_irq( i );
i677drivers/scsi/fdomain.c*iobase = i;
i816drivers/scsi/fdomain.cint              i, j;
i834drivers/scsi/fdomain.cfor (i = 0; !bios_base && i < ADDRESS_COUNT; i++) {
i836drivers/scsi/fdomain.cprintk( " %x(%x),", (unsigned)addresses[i], (unsigned)bios_base );
i839drivers/scsi/fdomain.cif (!memcmp( ((char *)addresses[i] + signatures[j].sig_offset),
i845drivers/scsi/fdomain.cbios_base  = addresses[i];
i956drivers/scsi/fdomain.cfor (i = 0; i < 8; i++) {
i957drivers/scsi/fdomain.cSCinit.target = i;
i958drivers/scsi/fdomain.cif (i == tpnt->this_id)  /* Skip host adapter */
i966drivers/scsi/fdomain.cprintk( "     SCSI ID %d: ", i );
i1765drivers/scsi/fdomain.c} *i;
i1817drivers/scsi/fdomain.ci = (struct drive_info *)( (char *)bios_base + 0x1f33 + drive * 25 );
i1820drivers/scsi/fdomain.ci = (struct drive_info *)( (char *)bios_base + 0x1f36 + drive * 15 );
i1823drivers/scsi/fdomain.ci = (struct drive_info *)( (char *)bios_base + 0x1f34 + drive * 15 );
i1826drivers/scsi/fdomain.ci = (struct drive_info *)( (char *)bios_base + 0x1f31 + drive * 25 );
i1829drivers/scsi/fdomain.cinfo_array[0] = i->heads;
i1830drivers/scsi/fdomain.cinfo_array[1] = i->sectors;
i1831drivers/scsi/fdomain.cinfo_array[2] = i->cylinders;
i1835drivers/scsi/fdomain.ci = (struct drive_info *)( (char *)bios_base + 0x1f71 + drive * 10 );
i1836drivers/scsi/fdomain.cinfo_array[0] = i->heads + 1;
i1837drivers/scsi/fdomain.cinfo_array[1] = i->sectors;
i1838drivers/scsi/fdomain.cinfo_array[2] = i->cylinders;
i331drivers/scsi/hosts.cint i, pcount;
i339drivers/scsi/hosts.cfor (tpnt = &builtin_scsi_hosts[0], i = 0; i < MAX_SCSI_HOSTS; ++i, tpnt++)
i330drivers/scsi/hosts.hextern void scsi_unregister(struct Scsi_Host * i);
i133drivers/scsi/in2000.cint  i;
i144drivers/scsi/in2000.cfor(i=0; i < 3; i++)
i145drivers/scsi/in2000.cif(*(bios_tab[i]+0x04) == 0x41564f4e ||
i146drivers/scsi/in2000.c*(bios_tab[i]+0xc) == 0x61776c41) {
i148drivers/scsi/in2000.ctmp, (unsigned int)bios_tab[i]);
i421drivers/scsi/in2000.cint i;
i437drivers/scsi/in2000.ci = xscsi2int((cmd+1));
i439drivers/scsi/in2000.ci = scsi2int((cmd+1));
i441drivers/scsi/in2000.ci = -1;
i444drivers/scsi/in2000.cprintk("in2000qcmd: pos %d len %d ", i, bufflen);
i446drivers/scsi/in2000.cfor (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]);
i317drivers/scsi/pas16.cint i;
i324drivers/scsi/pas16.cfor (i = 0; i < NO_BASES; ++i)
i325drivers/scsi/pas16.cif (bases[i].io_port == (unsigned short) ints[1]) {
i326drivers/scsi/pas16.cbases[i].noauto = 1;
i486drivers/scsi/pas16.cregister i = len;
i490drivers/scsi/pas16.cinsb( reg, d, i );
i518drivers/scsi/pas16.cregister i = len;
i522drivers/scsi/pas16.coutsb( reg, s, i );
i164drivers/scsi/qlogic.c#define rtrc(i) {inb(0x3da);outb(0x31,0x3c0);outb((i),0x3c0);}
i166drivers/scsi/qlogic.c#define rtrc(i) {}
i272drivers/scsi/qlogic.cint  i,k;
i274drivers/scsi/qlogic.ci = jiffies + WATCHDOG;
i275drivers/scsi/qlogic.cwhile ( i > jiffies && !qabort && !((k = inb(qbase + 4)) & 0xe0))
i277drivers/scsi/qlogic.cif (i <= jiffies)
i294drivers/scsi/qlogic.cunsigned int      i;
i328drivers/scsi/qlogic.cfor (i = 0; i < cmd->cmd_len; i++)
i329drivers/scsi/qlogic.coutb(cmd->cmnd[i], qbase + 2);
i338drivers/scsi/qlogic.cunsigned int  i, j, k;
i349drivers/scsi/qlogic.ci = inb(qbase + 5);
i350drivers/scsi/qlogic.cif (i == 0x20) {
i353drivers/scsi/qlogic.ci |= inb(qbase + 5);  /* the 0x10 bit can be set after the 0x08 */
i354drivers/scsi/qlogic.cif (i != 0x18) {
i355drivers/scsi/qlogic.cprintk("Ql:Bad Interrupt status:%02x\n", i);
i365drivers/scsi/qlogic.cprintk("Ql:Bad sequence for command %d, int %02X, cmdleft = %d\n", j, i, inb( qbase+7 ) & 0x1f );
i418drivers/scsi/qlogic.ci = inb(qbase + 5);          /* get chip irq stat */
i423drivers/scsi/qlogic.cif (!((i == 8 && j == 2) || (i == 0x10 && j == 1))) {
i424drivers/scsi/qlogic.cprintk("Ql:Error during status phase, int=%02X, %d bytes recd\n", i, j);
i432drivers/scsi/qlogic.ci = inb(qbase + 5);  /* should be bus service */
i433drivers/scsi/qlogic.cwhile (!qabort && ((i & 0x20) != 0x20)) {
i435drivers/scsi/qlogic.ci |= inb(qbase + 5);
i453drivers/scsi/qlogic.cint  i;
i454drivers/scsi/qlogic.ci = 16;
i455drivers/scsi/qlogic.cwhile (i-- && inb(qbase + 5)); /* maybe also ql_zap() */
i535drivers/scsi/qlogic.cint  i, j;      /* these are only used by IRQ detect */
i584drivers/scsi/qlogic.ci = 0xffff;
i592drivers/scsi/qlogic.ci &= ~(inb(0x20) | (inb(0xa0) << 8));  /* find IRQ off */
i594drivers/scsi/qlogic.ci &= inb(0x20) | (inb(0xa0) << 8);  /* find IRQ on */
i599drivers/scsi/qlogic.cwhile (i)          /* find on bit */
i600drivers/scsi/qlogic.ci >>= 1, j++;  /* should check for exactly 1 on */
i239drivers/scsi/scsi.cint i = 0;
i241drivers/scsi/scsi.cfor(i=0; 1; i++){
i242drivers/scsi/scsi.cif(device_list[i].vendor == NULL) return 0;
i245drivers/scsi/scsi.cif(memcmp(device_list[i].vendor, pnt,
i246drivers/scsi/scsi.cstrlen(device_list[i].vendor))) continue;
i249drivers/scsi/scsi.cif(memcmp(device_list[i].model, pnt,
i250drivers/scsi/scsi.cstrlen(device_list[i].model))) continue;
i251drivers/scsi/scsi.creturn device_list[i].flags;
i1214drivers/scsi/scsi.cint i;
i1221drivers/scsi/scsi.cfor (i = 0; i < 10; ++i)
i1222drivers/scsi/scsi.cprintk ("%02x  ", ((unsigned char *) cmnd)[i]);
i2083drivers/scsi/scsi.cint i, j;
i2092drivers/scsi/scsi.cfor(i=0;i < (dma_sectors >> (MALLOC_PAGEBITS - 9)); i++)
i2094drivers/scsi/scsi.cif ((dma_malloc_freelist[i] & (mask << j)) == 0){
i2095drivers/scsi/scsi.cdma_malloc_freelist[i] |= (mask << j);
i2099drivers/scsi/scsi.cprintk("SMalloc: %d %p ",len, dma_malloc_pages[i] + (j << 9));
i2101drivers/scsi/scsi.creturn (void *) ((unsigned long) dma_malloc_pages[i] + (j << 9));
i2268drivers/scsi/scsi.cint i;
i2348drivers/scsi/scsi.cfor(i=0; i< dma_sectors >> 3; i++)
i2349drivers/scsi/scsi.cdma_malloc_pages[i] = (unsigned char *)
i2379drivers/scsi/scsi.cint i;
i2382drivers/scsi/scsi.cfor (i = 8; i < 16; i++)
i2384drivers/scsi/scsi.cif (data[i] >= 0x20 && i < data[4] + 5)
i2385drivers/scsi/scsi.cprintk("%c", data[i]);
i2391drivers/scsi/scsi.cfor (i = 16; i < 32; i++)
i2393drivers/scsi/scsi.cif (data[i] >= 0x20 && i < data[4] + 5)
i2394drivers/scsi/scsi.cprintk("%c", data[i]);
i2400drivers/scsi/scsi.cfor (i = 32; i < 36; i++)
i2402drivers/scsi/scsi.cif (data[i] >= 0x20 && i < data[4] + 5)
i2403drivers/scsi/scsi.cprintk("%c", data[i]);
i2410drivers/scsi/scsi.ci = data[0] & 0x1f;
i2413drivers/scsi/scsi.ci < MAX_SCSI_DEVICE_CODE ? scsi_device_types[i] : "Unknown          " );
i2482drivers/scsi/scsi.cint i;
i2597drivers/scsi/scsi.cfor(i=dma_sectors >> 3; i< new_dma_sectors >> 3; i++)
i2598drivers/scsi/scsi.cnew_dma_malloc_pages[i] = (unsigned char *)
i2937drivers/scsi/scsi.cint i;
i2941drivers/scsi/scsi.ci = 0;
i2947drivers/scsi/scsi.ci++, SCpnt->host->host_no,
i2969drivers/scsi/scsi.cfor(i=0; i<MAX_BLKDEV; i++)
i2970drivers/scsi/scsi.cif(blk_dev[i].current_request)
i2973drivers/scsi/scsi.cprintk("%d: ", i);
i2974drivers/scsi/scsi.creq = blk_dev[i].current_request;
i3037drivers/scsi/scsi.cint i;
i3050drivers/scsi/scsi.cfor(i=0; i < dma_sectors >> 3; i++)
i3051drivers/scsi/scsi.cscsi_init_free(dma_malloc_pages[i], PAGE_SIZE);
i131drivers/scsi/scsi_debug.cint i;
i140drivers/scsi/scsi_debug.cfor(i=0; i<SCpnt->use_sg; i++) {
i141drivers/scsi/scsi_debug.clpnt = (int *) sgpnt[i].alt_address;
i142drivers/scsi/scsi_debug.cprintk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length);
i152drivers/scsi/scsi_debug.cfor (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) {
i153drivers/scsi/scsi_debug.cif ((i & 7) == 0) printk("\n");
i159drivers/scsi/scsi_debug.cfor (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) {
i160drivers/scsi/scsi_debug.cif ((i & 7) == 0) printk("\n");
i166drivers/scsi/scsi_debug.cfor (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) {
i167drivers/scsi/scsi_debug.cif ((i & 7) == 0) printk("\n");
i188drivers/scsi/scsi_debug.cint i;
i207drivers/scsi/scsi_debug.cint i;
i209drivers/scsi/scsi_debug.cfor(i=0;i<12;i++) printk("%d ",sense_buffer[i]);
i326drivers/scsi/scsi_debug.cint i;
i328drivers/scsi/scsi_debug.cfor(i=0;i<12;i++) printk("%d ",sense_buffer[i]);
i401drivers/scsi/scsi_debug.cfor(i=0;i<SCSI_DEBUG_MAILBOXES; i++){
i402drivers/scsi/scsi_debug.cif (SCint[i] == 0) break;
i405drivers/scsi/scsi_debug.cif (i >= SCSI_DEBUG_MAILBOXES || SCint[i] != 0) 
i408drivers/scsi/scsi_debug.cSCint[i] = SCpnt;
i412drivers/scsi/scsi_debug.cif (do_done[i])
i415drivers/scsi/scsi_debug.cdo_done[i] = done;
i428drivers/scsi/scsi_debug.ctimeout[i] = jiffies+DISK_SPEED;
i432drivers/scsi/scsi_debug.ctimer_table[SCSI_DEBUG_TIMER].expires = timeout[i];
i440drivers/scsi/scsi_debug.cprintk("Sending command (%d %x %d %d)...", i, done, timeout[i],jiffies);
i471drivers/scsi/scsi_debug.cint i, pending;
i484drivers/scsi/scsi_debug.cfor(i=0;i<SCSI_DEBUG_MAILBOXES; i++) {
i485drivers/scsi/scsi_debug.cif (SCint[i] == 0) continue;
i487drivers/scsi/scsi_debug.cif (timeout[i] == 0) continue;
i488drivers/scsi/scsi_debug.cif (timeout[i] <= jiffies) break;
i494drivers/scsi/scsi_debug.cif(i == SCSI_DEBUG_MAILBOXES){
i497drivers/scsi/scsi_debug.cfor(i=0;i<SCSI_DEBUG_MAILBOXES; i++) {
i498drivers/scsi/scsi_debug.cif (SCint[i] == 0) continue;
i499drivers/scsi/scsi_debug.cif (timeout[i] == 0) continue;
i500drivers/scsi/scsi_debug.cif (timeout[i] <= jiffies) {restore_flags(flags); goto repeat;};
i501drivers/scsi/scsi_debug.cif (timeout[i] > jiffies) {
i502drivers/scsi/scsi_debug.cif (pending > timeout[i]) pending = timeout[i];
i516drivers/scsi/scsi_debug.cif(i < SCSI_DEBUG_MAILBOXES){
i517drivers/scsi/scsi_debug.ctimeout[i] = 0;
i518drivers/scsi/scsi_debug.cmy_done = do_done[i];
i519drivers/scsi/scsi_debug.cdo_done[i] = NULL;
i520drivers/scsi/scsi_debug.cto = timeout[i];
i521drivers/scsi/scsi_debug.ctimeout[i] = 0;
i522drivers/scsi/scsi_debug.cSCtmp = (Scsi_Cmnd *) SCint[i];
i523drivers/scsi/scsi_debug.cSCint[i] = NULL;
i533drivers/scsi/scsi_debug.cprintk("...done %d %x %d %d\n",i , my_done, to, jiffies);
i534drivers/scsi/scsi_debug.cprintk("In intr_handle: %d %x %x\n",i, SCtmp, my_done);
i589drivers/scsi/scsi_debug.cint i;
i595drivers/scsi/scsi_debug.cfor(i=0;i<SCSI_DEBUG_MAILBOXES; i++) {
i596drivers/scsi/scsi_debug.cif (SCint[i] == NULL) continue;
i597drivers/scsi/scsi_debug.cSCint[i]->result = DID_ABORT << 16;
i598drivers/scsi/scsi_debug.cmy_done = do_done[i];
i599drivers/scsi/scsi_debug.cmy_done(SCint[i]);
i602drivers/scsi/scsi_debug.cSCint[i] = NULL;
i603drivers/scsi/scsi_debug.cdo_done[i] = NULL;
i604drivers/scsi/scsi_debug.ctimeout[i] = 0;
i290drivers/scsi/scsi_ioctl.cint i;
i292drivers/scsi/scsi_ioctl.cfor (i = 0; i < 12; ++i)
i293drivers/scsi/scsi_ioctl.cprintk("%02x ", cmd[i]);
i295drivers/scsi/scsi_ioctl.cfor (i = 0; i < 20; ++i)
i296drivers/scsi/scsi_ioctl.cprintk("%02x ", buf[i]);
i93drivers/scsi/scsicam.cint i, largest_cyl;
i100drivers/scsi/scsicam.c(0x1BE + bh->b_data), i = 0; i < 4; ++i, ++p) {
i105drivers/scsi/scsicam.ci);
i186drivers/scsi/sd.cint i;
i188drivers/scsi/sd.cfor (i = 0; i < sd_template.dev_max; ++i)
i189drivers/scsi/sd.cif(rscsi_disks[i].device) 
i190drivers/scsi/sd.csd[i << 4].nr_sects = rscsi_disks[i].capacity;
i228drivers/scsi/sd.cint i;
i230drivers/scsi/sd.cfor(i=0; i<SCpnt->use_sg; i++) {
i232drivers/scsi/sd.cprintk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, 
i233drivers/scsi/sd.csgpnt[i].length);
i235drivers/scsi/sd.cif (sgpnt[i].alt_address) {
i237drivers/scsi/sd.cmemcpy(sgpnt[i].alt_address, sgpnt[i].address, 
i238drivers/scsi/sd.csgpnt[i].length);
i239drivers/scsi/sd.cscsi_free(sgpnt[i].address, sgpnt[i].length);
i288drivers/scsi/sd.cint i;
i290drivers/scsi/sd.cfor(i=0; i<SCpnt->use_sg; i++) {
i295drivers/scsi/sd.cif (sgpnt[i].alt_address) {
i296drivers/scsi/sd.cscsi_free(sgpnt[i].address, sgpnt[i].length);
i897drivers/scsi/sd.cstatic int sd_init_onedisk(int i)
i910drivers/scsi/sd.cSCpnt = allocate_device(NULL, rscsi_disks[i].device, 1);
i922drivers/scsi/sd.ccmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0;
i945drivers/scsi/sd.cif(the_result && !rscsi_disks[i].device->removable && 
i949drivers/scsi/sd.cprintk( "sd%c: Spinning up disk...", 'a' + i );
i951drivers/scsi/sd.ccmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0;
i989drivers/scsi/sd.ccmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0;
i1044drivers/scsi/sd.c'a' + i, 'a' + i,
i1052drivers/scsi/sd.c'a' + i, SCpnt->sense_buffer[2] & 0xf);
i1054drivers/scsi/sd.cprintk("sd%c : sense not available. \n", 'a' + i);
i1057drivers/scsi/sd.c'a' + i);
i1058drivers/scsi/sd.crscsi_disks[i].capacity = 0x1fffff;
i1059drivers/scsi/sd.crscsi_disks[i].sector_size = 512;
i1063drivers/scsi/sd.cif(rscsi_disks[i].device->removable && 
i1065drivers/scsi/sd.crscsi_disks[i].device->changed = 1;
i1070drivers/scsi/sd.crscsi_disks[i].capacity = (buffer[0] << 24) |
i1075drivers/scsi/sd.crscsi_disks[i].sector_size = (buffer[4] << 24) |
i1078drivers/scsi/sd.cif (rscsi_disks[i].sector_size != 512 &&
i1079drivers/scsi/sd.crscsi_disks[i].sector_size != 1024 &&
i1080drivers/scsi/sd.crscsi_disks[i].sector_size != 256)
i1083drivers/scsi/sd.c'a' + i, rscsi_disks[i].sector_size);
i1084drivers/scsi/sd.cif(rscsi_disks[i].device->removable){
i1085drivers/scsi/sd.crscsi_disks[i].capacity = 0;
i1088drivers/scsi/sd.crscsi_disks[i].device = NULL;
i1090drivers/scsi/sd.creturn i;
i1100drivers/scsi/sd.cint hard_sector = rscsi_disks[i].sector_size;
i1102drivers/scsi/sd.cfor (m=i<<4; m<((i+1)<<4); m++){
i1106drivers/scsi/sd.chard_sector,i+'a');
i1108drivers/scsi/sd.cif(rscsi_disks[i].sector_size == 1024)
i1109drivers/scsi/sd.crscsi_disks[i].capacity <<= 1;  /* Change into 512 byte sectors */
i1110drivers/scsi/sd.cif(rscsi_disks[i].sector_size == 256)
i1111drivers/scsi/sd.crscsi_disks[i].capacity >>= 1;  /* Change into 512 byte sectors */
i1114drivers/scsi/sd.crscsi_disks[i].ten = 1;
i1115drivers/scsi/sd.crscsi_disks[i].remap = 1;
i1117drivers/scsi/sd.creturn i;
i1128drivers/scsi/sd.cint i;
i1160drivers/scsi/sd.cfor(i=0;i<(sd_template.dev_max << 4);i++){
i1161drivers/scsi/sd.csd_blocksizes[i] = 1024;
i1162drivers/scsi/sd.csd_hardsizes[i] = 512;
i1180drivers/scsi/sd.cint i;
i1187drivers/scsi/sd.cfor (i = 0; i < sd_template.dev_max; ++i)
i1188drivers/scsi/sd.cif (!rscsi_disks[i].capacity && 
i1189drivers/scsi/sd.crscsi_disks[i].device)
i1191drivers/scsi/sd.ci = sd_init_onedisk(i);
i1193drivers/scsi/sd.c&& !rscsi_disks[i].has_part_table) {
i1194drivers/scsi/sd.csd_sizes[i << 4] = rscsi_disks[i].capacity;
i1195drivers/scsi/sd.crevalidate_scsidisk(i << 4, 0);
i1197drivers/scsi/sd.crscsi_disks[i].has_part_table = 1;
i1224drivers/scsi/sd.cint i;
i1233drivers/scsi/sd.cfor(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) 
i1236drivers/scsi/sd.cif(i >= sd_template.dev_max) panic ("scsi_devices corrupt (sd)");
i1239drivers/scsi/sd.crscsi_disks[i].device = SDp;
i1240drivers/scsi/sd.crscsi_disks[i].has_part_table = 0;
i1265drivers/scsi/sd.cint i;
i1284drivers/scsi/sd.cfor (i=max_p - 1; i >=0 ; i--) {
i1285drivers/scsi/sd.csync_dev(major | start | i);
i1286drivers/scsi/sd.cinvalidate_inodes(major | start | i);
i1287drivers/scsi/sd.cinvalidate_buffers(major | start | i);
i1288drivers/scsi/sd.cgdev->part[start+i].start_sect = 0;
i1289drivers/scsi/sd.cgdev->part[start+i].nr_sects = 0;
i1311drivers/scsi/sd.cint i;
i1316drivers/scsi/sd.cfor(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) 
i1322drivers/scsi/sd.cstart = i << sd_gendisk.minor_shift;
i1325drivers/scsi/sd.cfor (i=max_p - 1; i >=0 ; i--) {
i1326drivers/scsi/sd.csync_dev(major | start | i);
i1327drivers/scsi/sd.cinvalidate_inodes(major | start | i);
i1328drivers/scsi/sd.cinvalidate_buffers(major | start | i);
i1329drivers/scsi/sd.csd_gendisk.part[start+i].start_sect = 0;
i1330drivers/scsi/sd.csd_gendisk.part[start+i].nr_sects = 0;
i1331drivers/scsi/sd.csd_sizes[start+i] = 0;
i284drivers/scsi/seagate.cint i,j;
i328drivers/scsi/seagate.cfor (i = 0; i < (sizeof (seagate_bases) / sizeof (char  * )); ++i)
i330drivers/scsi/seagate.cif (!memcmp ((void *) (seagate_bases[i] +
i333drivers/scsi/seagate.cbase_address = (void *) seagate_bases[i];
i604drivers/scsi/seagate.cint i;
i904drivers/scsi/seagate.cint i;
i907drivers/scsi/seagate.cfor (i = 0; i < nobuffs; ++i)
i909drivers/scsi/seagate.chostno, i, buffer[i].address, buffer[i].length);
i1473drivers/scsi/seagate.cfor (i = 0; i < 20; ++i) 
i1474drivers/scsi/seagate.cprintk ("%02x  ", ((unsigned char *) data)[i]);  /* WDE mod */
i206drivers/scsi/sg.cint i;
i208drivers/scsi/sg.cif ((i=verify_area(VERIFY_WRITE,buf,count)))
i209drivers/scsi/sg.creturn i;
i294drivers/scsi/sg.cint        bsize,size,amt,i;
i303drivers/scsi/sg.cif ((i=verify_area(VERIFY_READ,buf,count)))
i304drivers/scsi/sg.creturn i;
i522drivers/scsi/sg.cint i;
i530drivers/scsi/sg.cfor(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) 
i533drivers/scsi/sg.cif(i >= sg_template.dev_max) panic ("scsi_devices corrupt (sg)");
i535drivers/scsi/sg.cscsi_generics[i].device=SDp;
i536drivers/scsi/sg.cscsi_generics[i].users=0;
i537drivers/scsi/sg.cscsi_generics[i].generic_wait=NULL;
i538drivers/scsi/sg.cscsi_generics[i].read_wait=NULL;
i539drivers/scsi/sg.cscsi_generics[i].write_wait=NULL;
i540drivers/scsi/sg.cscsi_generics[i].buff=NULL;
i541drivers/scsi/sg.cscsi_generics[i].exclude=0;
i542drivers/scsi/sg.cscsi_generics[i].pending=0;
i543drivers/scsi/sg.cscsi_generics[i].timeout=SG_DEFAULT_TIMEOUT;
i553drivers/scsi/sg.cint i;
i555drivers/scsi/sg.cfor(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) 
i190drivers/scsi/sr.cint i;
i192drivers/scsi/sr.cfor(i=0; i<SCpnt->use_sg; i++) {
i193drivers/scsi/sr.cif (sgpnt[i].alt_address) {
i194drivers/scsi/sr.cif (sgpnt[i].alt_address != sgpnt[i].address) {
i195drivers/scsi/sr.cmemcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length);
i197drivers/scsi/sr.cscsi_free(sgpnt[i].address, sgpnt[i].length);
i229drivers/scsi/sr.cint i;
i231drivers/scsi/sr.cfor(i=0; i<SCpnt->use_sg; i++) {
i232drivers/scsi/sr.cif (sgpnt[i].alt_address) {
i233drivers/scsi/sr.cscsi_free(sgpnt[i].address, sgpnt[i].length);
i872drivers/scsi/sr.cint i;
i876drivers/scsi/sr.cfor(i=0; i<12; i++) printk("%2.2x ", cmd[i]);
i913drivers/scsi/sr.cint i;
i923drivers/scsi/sr.cfor(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) 
i926drivers/scsi/sr.cif(i >= sr_template.dev_max) panic ("scsi_devices corrupt (sr)");
i929drivers/scsi/sr.cscsi_CDs[i].device = SDp;
i949drivers/scsi/sr.cstatic void get_sectorsize(int i){
i956drivers/scsi/sr.cSCpnt = allocate_device(NULL, scsi_CDs[i].device, 1);
i961drivers/scsi/sr.ccmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0;
i995drivers/scsi/sr.cscsi_CDs[i].capacity = 0x1fffff;
i996drivers/scsi/sr.cscsi_CDs[i].sector_size = 2048;  /* A guess, just in case */
i997drivers/scsi/sr.cscsi_CDs[i].needs_sector_size = 1;
i999drivers/scsi/sr.cscsi_CDs[i].capacity = (buffer[0] << 24) |
i1001drivers/scsi/sr.cscsi_CDs[i].sector_size = (buffer[4] << 24) |
i1003drivers/scsi/sr.cif(scsi_CDs[i].sector_size == 0) scsi_CDs[i].sector_size = 2048;
i1004drivers/scsi/sr.cif(scsi_CDs[i].sector_size != 2048 && 
i1005drivers/scsi/sr.cscsi_CDs[i].sector_size != 512) {
i1007drivers/scsi/sr.ci, scsi_CDs[i].sector_size);
i1008drivers/scsi/sr.cscsi_CDs[i].capacity = 0;
i1009drivers/scsi/sr.cscsi_CDs[i].needs_sector_size = 1;
i1011drivers/scsi/sr.cif(scsi_CDs[i].sector_size == 2048)
i1012drivers/scsi/sr.cscsi_CDs[i].capacity *= 4;
i1013drivers/scsi/sr.cscsi_CDs[i].needs_sector_size = 0;
i1014drivers/scsi/sr.csr_sizes[i] = scsi_CDs[i].capacity;
i1021drivers/scsi/sr.cint i;
i1045drivers/scsi/sr.cfor(i=0;i<sr_template.dev_max;i++) sr_blocksizes[i] = 2048;
i1052drivers/scsi/sr.cint i;
i1057drivers/scsi/sr.cfor (i = 0; i < sr_template.nr_dev; ++i)
i1061drivers/scsi/sr.cif (scsi_CDs[i].capacity) continue;
i1062drivers/scsi/sr.cscsi_CDs[i].capacity = 0x1fffff;
i1063drivers/scsi/sr.cscsi_CDs[i].sector_size = 2048;  /* A guess, just in case */
i1064drivers/scsi/sr.cscsi_CDs[i].needs_sector_size = 1;
i1067drivers/scsi/sr.cget_sectorsize(i);
i1068drivers/scsi/sr.cprintk("Scd sectorsize = %d bytes.\n", scsi_CDs[i].sector_size);
i1070drivers/scsi/sr.cscsi_CDs[i].use = 1;
i1071drivers/scsi/sr.cscsi_CDs[i].ten = 1;
i1072drivers/scsi/sr.cscsi_CDs[i].remap = 1;
i1073drivers/scsi/sr.cscsi_CDs[i].auto_eject = 0; /* Default is not to eject upon unmount. */
i1074drivers/scsi/sr.csr_sizes[i] = scsi_CDs[i].capacity;
i1092drivers/scsi/sr.cint i, major;
i1096drivers/scsi/sr.cfor(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) 
i1102drivers/scsi/sr.cinvalidate_inodes(major | i);
i1103drivers/scsi/sr.cinvalidate_buffers(major | i);
i1114drivers/scsi/sr.csr_sizes[i] = 0;
i1134drivers/scsi/sr.cint i;
i426drivers/scsi/st.cint i;
i441drivers/scsi/st.cfor (i=0; i < st_nbr_buffers; i++)
i442drivers/scsi/st.cif (!st_buffers[i]->in_use)
i444drivers/scsi/st.cif (i >= st_nbr_buffers) {
i448drivers/scsi/st.cSTp->buffer = st_buffers[i];
i1744drivers/scsi/st.cint i, cmd, result;
i1767drivers/scsi/st.ci = verify_area(VERIFY_WRITE, (void *)arg, sizeof(mtc));
i1768drivers/scsi/st.cif (i)
i1769drivers/scsi/st.creturn i;
i1773drivers/scsi/st.ci = flush_buffer(inode, file, mtc.mt_op == MTSEEK ||
i1776drivers/scsi/st.cif (i < 0)
i1777drivers/scsi/st.creturn i;
i1793drivers/scsi/st.ci = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct mtget));
i1794drivers/scsi/st.cif (i)
i1795drivers/scsi/st.creturn i;
i1852drivers/scsi/st.ci = flush_buffer(inode, file, 0);
i1853drivers/scsi/st.cif (i < 0)
i1854drivers/scsi/st.creturn i;
i1856drivers/scsi/st.ci = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct mtpos));
i1857drivers/scsi/st.cif (i)
i1858drivers/scsi/st.creturn i;
i1953drivers/scsi/st.cint i;
i1963drivers/scsi/st.cfor(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) 
i1966drivers/scsi/st.cif(i >= st_template.dev_max) panic ("scsi_devices corrupt (st)");
i1968drivers/scsi/st.cscsi_tapes[i].device = SDp;
i1970drivers/scsi/st.cscsi_tapes[i].mt_status->mt_type = MT_ISSCSI1;
i1972drivers/scsi/st.cscsi_tapes[i].mt_status->mt_type = MT_ISSCSI2;
i1992drivers/scsi/st.cint i;
i2017drivers/scsi/st.cfor (i=0; i < st_template.dev_max; ++i) {
i2018drivers/scsi/st.cSTp = &(scsi_tapes[i]);
i2039drivers/scsi/st.cmemset((void *) scsi_tapes[i].mt_status, 0, sizeof(struct mtget));
i2053drivers/scsi/st.cfor (i=0; i < st_nbr_buffers; i++) {
i2054drivers/scsi/st.cst_buffers[i] = (ST_buffer *) scsi_init_malloc(sizeof(ST_buffer) - 
i2059drivers/scsi/st.cst_buffers[i]->in_use = 0;
i2060drivers/scsi/st.cst_buffers[i]->writing = 0;
i2068drivers/scsi/st.cint i;
i2070drivers/scsi/st.cfor(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) 
i2092drivers/scsi/st.cint i;
i2105drivers/scsi/st.cfor (i=0; i < st_nbr_buffers; i++) {
i2106drivers/scsi/st.cscsi_init_free((char *) st_buffers[i],
i165drivers/scsi/t128.cint i;
i172drivers/scsi/t128.cfor (i = 0; i < NO_BASES; ++i)
i173drivers/scsi/t128.cif (bases[i].address == (unsigned char *) ints[1]) {
i174drivers/scsi/t128.cbases[i].noauto = 1;
i318drivers/scsi/t128.cregister i = len;
i322drivers/scsi/t128.cfor (; i; --i) {
i326drivers/scsi/t128.cfor (; i; --i) {
i362drivers/scsi/t128.cregister i = len;
i365drivers/scsi/t128.cfor (; i; --i) {
i369drivers/scsi/t128.cfor (; i; --i) {
i559drivers/scsi/u14-34f.cunsigned int i, j, k, flags;
i571drivers/scsi/u14-34f.ci = HD(j)->last_cp_used + 1;
i573drivers/scsi/u14-34f.cfor (k = 0; k < sh[j]->can_queue; k++, i++) {
i575drivers/scsi/u14-34f.cif (i >= sh[j]->can_queue) i = 0;
i577drivers/scsi/u14-34f.cif (HD(j)->cp_stat[i] == FREE) {
i578drivers/scsi/u14-34f.cHD(j)->last_cp_used = i;
i600drivers/scsi/u14-34f.ccpp = &HD(j)->cp[i];
i604drivers/scsi/u14-34f.ccpp->index = i;
i608drivers/scsi/u14-34f.cBN(j), i, SCpnt->target, SCpnt->pid);
i646drivers/scsi/u14-34f.cHD(j)->cp_stat[i] = IN_USE;
i652drivers/scsi/u14-34f.cunsigned int i, j, flags;
i664drivers/scsi/u14-34f.ci = *(unsigned int *)SCarg->host_scribble;
i666drivers/scsi/u14-34f.cBN(j), i, SCarg->target, SCarg->pid);
i668drivers/scsi/u14-34f.cif (i >= sh[j]->can_queue)
i677drivers/scsi/u14-34f.cif (HD(j)->cp_stat[i] == FREE) {
i678drivers/scsi/u14-34f.cprintk("%s: abort, mbox %d is free.\n", BN(j), i);
i683drivers/scsi/u14-34f.cif (HD(j)->cp_stat[i] == IN_USE) {
i684drivers/scsi/u14-34f.cprintk("%s: abort, mbox %d is in use.\n", BN(j), i);
i686drivers/scsi/u14-34f.cif (SCarg != HD(j)->cp[i].SCpnt)
i688drivers/scsi/u14-34f.cBN(j), i, SCarg, HD(j)->cp[i].SCpnt);
i694drivers/scsi/u14-34f.cif (HD(j)->cp_stat[i] == IN_RESET) {
i695drivers/scsi/u14-34f.cprintk("%s: abort, mbox %d is in reset.\n", BN(j), i);
i700drivers/scsi/u14-34f.cif (HD(j)->cp_stat[i] == LOCKED) {
i701drivers/scsi/u14-34f.cprintk("%s: abort, mbox %d is locked.\n", BN(j), i);
i706drivers/scsi/u14-34f.cpanic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i);
i710drivers/scsi/u14-34f.cunsigned int i, j, flags, time, k, limit = 0;
i739drivers/scsi/u14-34f.cfor (i = 0; i < sh[j]->can_queue; i++) {
i741drivers/scsi/u14-34f.cif (HD(j)->cp_stat[i] == FREE) continue;
i743drivers/scsi/u14-34f.cif (HD(j)->cp_stat[i] == LOCKED) {
i744drivers/scsi/u14-34f.cHD(j)->cp_stat[i] = FREE;
i745drivers/scsi/u14-34f.cprintk("%s: reset, locked mbox %d forced free.\n", BN(j), i);
i749drivers/scsi/u14-34f.cSCpnt = HD(j)->cp[i].SCpnt;
i750drivers/scsi/u14-34f.cHD(j)->cp_stat[i] = IN_RESET;
i752drivers/scsi/u14-34f.cBN(j), i, SCpnt->pid);
i755drivers/scsi/u14-34f.cpanic("%s: reset, mbox %d, SCpnt == NULL.\n", BN(j), i);
i758drivers/scsi/u14-34f.cpanic("%s: reset, mbox %d, garbled SCpnt.\n", BN(j), i);
i760drivers/scsi/u14-34f.cif (*(unsigned int *)SCpnt->host_scribble != i) 
i761drivers/scsi/u14-34f.cpanic("%s: reset, mbox %d, index mismatch.\n", BN(j), i);
i764drivers/scsi/u14-34f.cpanic("%s: reset, mbox %d, SCpnt->scsi_done == NULL.\n", BN(j), i);
i789drivers/scsi/u14-34f.cfor (i = 0; i < sh[j]->can_queue; i++) {
i792drivers/scsi/u14-34f.cif (HD(j)->cp_stat[i] != IN_RESET) continue;
i794drivers/scsi/u14-34f.cSCpnt = HD(j)->cp[i].SCpnt;
i799drivers/scsi/u14-34f.cHD(j)->cp_stat[i] = LOCKED;
i802drivers/scsi/u14-34f.cBN(j), i, SCpnt->pid);
i834drivers/scsi/u14-34f.cunsigned int i, j, k, flags, status, tstatus, loops, total_loops = 0;
i869drivers/scsi/u14-34f.ci = spp - HD(j)->cp;
i871drivers/scsi/u14-34f.cif (i >= sh[j]->can_queue)
i874drivers/scsi/u14-34f.cif (HD(j)->cp_stat[i] == IGNORE) {
i875drivers/scsi/u14-34f.cHD(j)->cp_stat[i] = FREE;
i878drivers/scsi/u14-34f.celse if (HD(j)->cp_stat[i] == LOCKED) {
i879drivers/scsi/u14-34f.cHD(j)->cp_stat[i] = FREE;
i881drivers/scsi/u14-34f.cBN(j), i, HD(j)->iocount);
i884drivers/scsi/u14-34f.celse if (HD(j)->cp_stat[i] == FREE) {
i886drivers/scsi/u14-34f.cBN(j), i, HD(j)->iocount);
i889drivers/scsi/u14-34f.celse if (HD(j)->cp_stat[i] == IN_RESET)
i890drivers/scsi/u14-34f.cprintk("%s: ihdlr, mbox %d is in reset.\n", BN(j), i);
i891drivers/scsi/u14-34f.celse if (HD(j)->cp_stat[i] != IN_USE) 
i892drivers/scsi/u14-34f.cpanic("%s: ihdlr, mbox %d, invalid cp_stat.\n", BN(j), i);
i894drivers/scsi/u14-34f.cHD(j)->cp_stat[i] = FREE;
i898drivers/scsi/u14-34f.cpanic("%s: ihdlr, mbox %d, SCpnt == NULL.\n", BN(j), i);
i902drivers/scsi/u14-34f.cBN(j), i, SCpnt->pid, SCpnt);
i904drivers/scsi/u14-34f.cif (*(unsigned int *)SCpnt->host_scribble != i) 
i906drivers/scsi/u14-34f.c" irq %d.\n", BN(j), i, SCpnt->pid, 
i997drivers/scsi/u14-34f.cBN(j), i, spp->adapter_status, spp->target_status,
i329drivers/scsi/ultrastor.cregister int i;
i334drivers/scsi/ultrastor.cfor (i = 0; i < ULTRASTOR_MAX_CMDS; i++)
i336drivers/scsi/ultrastor.cfmt[20 + i*2] = ' ';
i337drivers/scsi/ultrastor.cif (! (config->mscp_free & (1 << i)))
i338drivers/scsi/ultrastor.cfmt[21 + i*2] = '0' + config->mscp[i].target_id;
i340drivers/scsi/ultrastor.cfmt[21 + i*2] = '-';
i351drivers/scsi/ultrastor.csize_t i;
i381drivers/scsi/ultrastor.cfor (i = 0; i < ARRAY_SIZE(ultrastor_ports_14f); i++) {
i382drivers/scsi/ultrastor.cif(check_region(ultrastor_ports_14f[i], 0x0c)) continue;
i383drivers/scsi/ultrastor.cconfig.port_address = ultrastor_ports_14f[i];
i425drivers/scsi/ultrastor.cif (i == ARRAY_SIZE(ultrastor_ports_14f)) {
i524drivers/scsi/ultrastor.cregister int i;
i532drivers/scsi/ultrastor.cfor (i = 1; i < 15; i++)
i535drivers/scsi/ultrastor.cunsigned short addr = (i << 12) | ULTRASTOR_24F_PORT;
i543drivers/scsi/ultrastor.cconfig.slot = i;
i547drivers/scsi/ultrastor.cprintk("U24F: found disabled card in slot %u\n", i);
i552drivers/scsi/ultrastor.cprintk("U24F: found card in slot %u\n", i);
i653drivers/scsi/ultrastor.cint i, max;
i657drivers/scsi/ultrastor.cfor (i = 0; i < max; i++) {
i658drivers/scsi/ultrastor.cmscp->sglist[i].address = (unsigned int)sl[i].address;
i659drivers/scsi/ultrastor.cmscp->sglist[i].num_bytes = sl[i].length;
i660drivers/scsi/ultrastor.ctransfer_length += sl[i].length;
i848drivers/scsi/ultrastor.cint i;
i853drivers/scsi/ultrastor.cfor (i = 0; i < 16; i++)
i855drivers/scsi/ultrastor.cunsigned char p = inb(port0 + i);
i856drivers/scsi/ultrastor.cout[28 + i * 3] = "0123456789abcdef"[p >> 4];
i857drivers/scsi/ultrastor.cout[29 + i * 3] = "0123456789abcdef"[p & 15];
i858drivers/scsi/ultrastor.cout[30 + i * 3] = ' ';
i860drivers/scsi/ultrastor.cout[28 + i * 3] = '\n';
i861drivers/scsi/ultrastor.cout[29 + i * 3] = 0;
i950drivers/scsi/ultrastor.cregister int i;
i978drivers/scsi/ultrastor.cfor (i = 0; i < ULTRASTOR_MAX_CMDS; i++)
i980drivers/scsi/ultrastor.cif (! (config.mscp_free & (1 << i)) &&
i981drivers/scsi/ultrastor.cconfig.mscp[i].done && config.mscp[i].SCint)
i983drivers/scsi/ultrastor.cconfig.mscp[i].SCint->result = DID_RESET << 16;
i984drivers/scsi/ultrastor.cconfig.mscp[i].done(config.mscp[i].SCint);
i985drivers/scsi/ultrastor.cconfig.mscp[i].done = 0;
i987drivers/scsi/ultrastor.cconfig.mscp[i].SCint = 0;
i494drivers/scsi/wd7000.cint i;
i511drivers/scsi/wd7000.cresult.i = 0;  /* clears unused bytes */
i515drivers/scsi/wd7000.creturn result.i;
i606drivers/scsi/wd7000.cint i;
i638drivers/scsi/wd7000.cfor (i = 0; i < needed; i++)  { p = scbfree;  scbfree = p->next; }
i666drivers/scsi/wd7000.cint i;
i674drivers/scsi/wd7000.cfor (i = 0;  i < MAX_SCBS-1;  i++)  {
i675drivers/scsi/wd7000.cscbs[i].next = &(scbs[i+1]);  scbs[i].SCpnt = NULL;
i689drivers/scsi/wd7000.cregister int i, ogmb;
i701drivers/scsi/wd7000.cfor (i = 0; i < OGMB_CNT; i++) {
i718drivers/scsi/wd7000.cif (i >= OGMB_CNT) {
i915drivers/scsi/wd7000.cunsigned i;
i929drivers/scsi/wd7000.cfor (i = 0;  i < SCpnt->use_sg;  i++)  {
i930drivers/scsi/wd7000.cany2scsi(sgb[i].ptr, (int) sg[i].address);
i931drivers/scsi/wd7000.cany2scsi(sgb[i].len, sg[i].length);
i1101drivers/scsi/wd7000.cint i,j, present = 0;
i1111drivers/scsi/wd7000.cfor (i = 0; i < NUM_CONFIGS; i++)  {
i183drivers/sound/ad1848.cint             i;
i189drivers/sound/ad1848.cfor (i = 6; i < 8; i++)
i191drivers/sound/ad1848.cprev = devc->saved_regs[i] = ad_read (devc, i);
i192drivers/sound/ad1848.cad_write (devc, i, prev | 0x80);
i199drivers/sound/ad1848.cint             i;
i204drivers/sound/ad1848.cfor (i = 6; i < 8; i++)
i206drivers/sound/ad1848.cad_write (devc, i, devc->saved_regs[i] & ~0x80);
i266drivers/sound/ad1848.cint             i, n;
i271drivers/sound/ad1848.cfor (i = 0; i < 32; i++)  /* Count selected device bits */
i272drivers/sound/ad1848.cif (mask & (1 << i))
i282drivers/sound/ad1848.cfor (i = 0; i < 32; i++)  /* Count selected device bits */
i283drivers/sound/ad1848.cif (mask & (1 << i))
i399drivers/sound/ad1848.cint             i;
i409drivers/sound/ad1848.cfor (i = 0; i < SOUND_MIXER_NRDEVICES; i++)
i410drivers/sound/ad1848.cad1848_mixer_set (devc, i, devc->levels[i] = default_mixer_levels[i]);
i644drivers/sound/ad1848.cint             i, n, selected = -1;
i653drivers/sound/ad1848.cfor (i = 1 /*really */ ; selected == -1 && i < n; i++)
i654drivers/sound/ad1848.cif (speed_table[i].speed == arg)
i655drivers/sound/ad1848.cselected = i;
i656drivers/sound/ad1848.celse if (speed_table[i].speed > arg)
i660drivers/sound/ad1848.cdiff1 = arg - speed_table[i - 1].speed;
i661drivers/sound/ad1848.cdiff2 = speed_table[i].speed - arg;
i664drivers/sound/ad1848.cselected = i - 1;
i666drivers/sound/ad1848.cselected = i;
i741drivers/sound/ad1848.cint             i, n = sizeof (format2bits) / sizeof (struct format_tbl);
i748drivers/sound/ad1848.cfor (i = 0; i < n; i++)
i749drivers/sound/ad1848.cif (format2bits[i].format == arg)
i751drivers/sound/ad1848.cif ((devc->format_bits = format2bits[i].bits) == 0)
i1050drivers/sound/ad1848.cint             i;
i1137drivers/sound/ad1848.cfor (i = 0; i < 16; i++)
i1138drivers/sound/ad1848.cif ((tmp1 = ad_read (devc, i)) != (tmp2 = ad_read (devc, i + 16)))
i1140drivers/sound/ad1848.cDDB (printk ("ad1848 detect error - step F(%d/%x/%x)\n", i, tmp1, tmp2));
i1224drivers/sound/ad1848.cint             i, my_dev;
i1247drivers/sound/ad1848.cfor (i = 0; i < 16; i++)
i1248drivers/sound/ad1848.cad_write (devc, i, init_values[i]);
i1256drivers/sound/ad1848.cfor (i = 16; i < 32; i++)
i1257drivers/sound/ad1848.cad_write (devc, i, init_values[i]);
i161drivers/sound/audio.cunsigned long   i;
i163drivers/sound/audio.cfor (i = 0; i < n; ++i)
i164drivers/sound/audio.cbuff[i] = table[buff[i]];
i283drivers/sound/configure.cint             i, num, def_size, full_driver = 1;
i327drivers/sound/configure.cfor (i = 0; i <= OPT_LAST; i++)
i328drivers/sound/configure.cif (can_select_option (i))
i330drivers/sound/configure.cif (!(selected_options & B (i)))  /*
i333drivers/sound/configure.cif (!hw_table[i].verify)
i335drivers/sound/configure.cif (hw_table[i].alias)
i336drivers/sound/configure.cselected_options |= B (hw_table[i].alias);
i338drivers/sound/configure.cselected_options |= B (i);
i342drivers/sound/configure.cint             def_answ = hw_table[i].default_answ;
i346drivers/sound/configure.cquestions[i]);
i348drivers/sound/configure.cif (hw_table[i].alias)
i349drivers/sound/configure.cselected_options |= B (hw_table[i].alias);
i351drivers/sound/configure.cselected_options |= B (i);
i546drivers/sound/configure.cfor (i = 0; i <= OPT_LAST; i++)
i547drivers/sound/configure.cif (!hw_table[i].alias)
i548drivers/sound/configure.cif (selected_options & B (i))
i549drivers/sound/configure.cprintf ("#undef  EXCLUDE_%s\n", hw_table[i].macro);
i551drivers/sound/configure.cprintf ("#define EXCLUDE_%s\n", hw_table[i].macro);
i1328drivers/sound/configure.cint             i = 0;
i1341drivers/sound/configure.cif (i != 0 && (i % 10) == 0)
i1344drivers/sound/configure.ci++;
i1347drivers/sound/configure.c"#define %sLen %d\n", varname, i);
i38drivers/sound/dev_table.cint             i, n = sizeof (sound_drivers) / sizeof (struct driver_info);
i40drivers/sound/dev_table.cfor (i = 0; i < (n - 1); i++)
i41drivers/sound/dev_table.cif (sound_drivers[i].card_type == type)
i42drivers/sound/dev_table.creturn i;
i52drivers/sound/dev_table.cint             i, n = sizeof (snd_installed_cards) / sizeof (struct card_info);
i57drivers/sound/dev_table.cfor (i = 0; i < (n - 1); i++)
i58drivers/sound/dev_table.cif (snd_installed_cards[i].enabled)
i59drivers/sound/dev_table.cif ((drv = snd_find_driver (snd_installed_cards[i].card_type)) == -1)
i60drivers/sound/dev_table.csnd_installed_cards[i].enabled = 0;  /*
i63drivers/sound/dev_table.celse if (sound_drivers[drv].probe (&snd_installed_cards[i].config))
i67drivers/sound/dev_table.csnd_installed_cards[i].card_type);
i70drivers/sound/dev_table.cmem_start = sound_drivers[drv].attach (mem_start, &snd_installed_cards[i].config);
i73drivers/sound/dev_table.csnd_installed_cards[i].config.io_base,
i74drivers/sound/dev_table.csnd_installed_cards[i].config.irq,
i75drivers/sound/dev_table.csnd_installed_cards[i].config.dma);
i79drivers/sound/dev_table.csnd_installed_cards[i].enabled = 0;  /*
i89drivers/sound/dev_table.cint             i, n = sizeof (snd_installed_cards) / sizeof (struct card_info);
i94drivers/sound/dev_table.cfor (i = 0; i < (n - 1); i++)
i95drivers/sound/dev_table.cif (snd_installed_cards[i].enabled)
i96drivers/sound/dev_table.cif (snd_installed_cards[i].card_type == unit)
i100drivers/sound/dev_table.csnd_installed_cards[i].config.io_base = hw_config->io_base;
i101drivers/sound/dev_table.csnd_installed_cards[i].config.irq = hw_config->irq;
i102drivers/sound/dev_table.csnd_installed_cards[i].config.dma = hw_config->dma;
i103drivers/sound/dev_table.cif ((drv = snd_find_driver (snd_installed_cards[i].card_type)) == -1)
i104drivers/sound/dev_table.csnd_installed_cards[i].enabled = 0;    /*
i110drivers/sound/dev_table.csnd_installed_cards[i].enabled = 0;  /*
i122drivers/sound/dev_table.cint             i, n = sizeof (snd_installed_cards) / sizeof (struct card_info);
i131drivers/sound/dev_table.cfor (i = 0; i < (n - 1); i++)
i132drivers/sound/dev_table.cif (snd_installed_cards[i].card_type == unit)
i136drivers/sound/dev_table.csnd_installed_cards[i].config.io_base = hw_config->io_base;
i137drivers/sound/dev_table.csnd_installed_cards[i].config.irq = hw_config->irq;
i138drivers/sound/dev_table.csnd_installed_cards[i].config.dma = hw_config->dma;
i140drivers/sound/dev_table.cif ((drv = snd_find_driver (snd_installed_cards[i].card_type)) == -1)
i141drivers/sound/dev_table.csnd_installed_cards[i].enabled = 0;  /*
i162drivers/sound/dev_table.cint             i, n = sizeof (snd_installed_cards) / sizeof (struct card_info);
i168drivers/sound/dev_table.cfor (i = 0; i < n; i++)
i169drivers/sound/dev_table.csnd_installed_cards[i].enabled = 0;
i177drivers/sound/dev_table.cfor (i = 1; i <= ints[0]; i++)
i182drivers/sound/dev_table.cval = (unsigned int) ints[i];
i222drivers/sound/dev_table.cint             i, n = sizeof (snd_installed_cards) / sizeof (struct card_info);
i59drivers/sound/dmabuf.cunsigned        i, p, n;
i124drivers/sound/dmabuf.cfor (i = 0; i < dmap->raw_count &&
i126drivers/sound/dmabuf.cn < MAX_SUB_BUFFERS; i++)
i134drivers/sound/dmabuf.cdmap->buf[n] = dmap->raw_buf[i] + p;
i135drivers/sound/dmabuf.cdmap->buf_phys[n] = dmap->raw_buf_phys[i] + p;
i144drivers/sound/dmabuf.cfor (i = 0; i < dmap->nbufs; i++)
i146drivers/sound/dmabuf.cdmap->counts[i] = 0;
i32drivers/sound/gus_vol.cint             i, m, n, x;
i81drivers/sound/gus_vol.ci = 7;
i84drivers/sound/gus_vol.cwhile (i > 0 && n < (1 << i))
i85drivers/sound/gus_vol.ci--;
i91drivers/sound/gus_vol.ci++;
i97drivers/sound/gus_vol.cm = x - (1 << i);
i104drivers/sound/gus_vol.cif (i > 8)
i105drivers/sound/gus_vol.cm >>= i - 8;
i106drivers/sound/gus_vol.celse if (i < 8)
i107drivers/sound/gus_vol.cm <<= 8 - i;
i110drivers/sound/gus_vol.creturn ((i << 8) + m);
i182drivers/sound/gus_wave.cint             i;
i184drivers/sound/gus_wave.cfor (i = 0; i <= MAX_SAMPLE; i++)
i185drivers/sound/gus_wave.csample_ptrs[i] = -1;
i186drivers/sound/gus_wave.cfor (i = 0; i < 32; i++)
i187drivers/sound/gus_wave.csample_map[i] = -1;
i188drivers/sound/gus_wave.cfor (i = 0; i < 32; i++)
i189drivers/sound/gus_wave.cpatch_map[i] = -1;
i197drivers/sound/gus_wave.cfor (i = 0; i < MAX_PATCH; i++)
i198drivers/sound/gus_wave.cpatch_table[i] = -1;
i204drivers/sound/gus_wave.cint             i;
i206drivers/sound/gus_wave.cfor (i = 0; i < 7; i++)
i652drivers/sound/gus_wave.cint             i;
i659drivers/sound/gus_wave.cfor (i = 0; i < 32; i++)
i661drivers/sound/gus_wave.cgus_voice_init (i);  /* Turn voice off */
i662drivers/sound/gus_wave.cgus_voice_init2 (i);
i821drivers/sound/gus_wave.cunsigned long   i;
i841drivers/sound/gus_wave.cfor (i = 1L; i < 1024L; i++)
i848drivers/sound/gus_wave.cloc = i << 10;
i864drivers/sound/gus_wave.cgus_mem_size = i << 10;
i1283drivers/sound/gus_wave.cint             i;
i1285drivers/sound/gus_wave.cfor (i = 0; i < 6; i++)
i1287drivers/sound/gus_wave.cvoices[voice].env_rate[i] = samples[sample].env_rate[i];
i1288drivers/sound/gus_wave.cvoices[voice].env_offset[i] = samples[sample].env_offset[i];
i1461drivers/sound/gus_wave.cint             i;
i1463drivers/sound/gus_wave.cfor (i = 0; i < 32; i++)
i1465drivers/sound/gus_wave.cgus_voice_init (i);
i1466drivers/sound/gus_wave.cgus_voice_init2 (i);
i1661drivers/sound/gus_wave.clong            i;
i1664drivers/sound/gus_wave.cfor (i = 0; i < blk_size; i++)
i1666drivers/sound/gus_wave.cGET_BYTE_FROM_USER (data, addr, sizeof_patch + i);
i1669drivers/sound/gus_wave.cif (!(patch.mode & WAVE_16_BITS) || (i & 0x01))
i1671drivers/sound/gus_wave.cgus_poke (target + i, data);
i2354drivers/sound/gus_wave.cint             i;
i2371drivers/sound/gus_wave.cfor (i = 0; i < pcm_nblk; i++)
i2372drivers/sound/gus_wave.cpcm_datasize[i] = 0;
i2401drivers/sound/gus_wave.cint             i;
i2408drivers/sound/gus_wave.cfor (i = 0; i < len; i++)
i2421drivers/sound/gus_wave.cint             i;
i2429drivers/sound/gus_wave.cfor (i = 0; i < len; i++)
i2495drivers/sound/gus_wave.cint             i, n;
i2512drivers/sound/gus_wave.cfor (i = 0; i < MAX_PATCH; i++)
i2514drivers/sound/gus_wave.cint             ptr = patch_table[i];
i2516drivers/sound/gus_wave.crec->data.data8[i] = 0;
i2520drivers/sound/gus_wave.crec->data.data8[i]++;
i2678drivers/sound/gus_wave.cint             i, p, best = -1, best_time = 0x7fffffff;
i2685drivers/sound/gus_wave.cfor (i = 0; i < alloc->max_voice; i++)
i2704drivers/sound/gus_wave.cfor (i = 0; i < alloc->max_voice; i++)
i19drivers/sound/hex2hex.hint i,l, c;
i62drivers/sound/hex2hex.hfor (i=0;i<n;i++)
i86drivers/sound/hex2hex.hfor (i=0;i<l;i++)
i88drivers/sound/hex2hex.hif (i) fprintf(outf, ",");
i89drivers/sound/hex2hex.hif (i && !(i % 16)) fprintf(outf, "\n");
i90drivers/sound/hex2hex.hfprintf(outf, "0x%02x", buf[i]);
i234drivers/sound/ics2101.cint             i;
i247drivers/sound/ics2101.cfor (i = 0; i < ICS_MIXDEVS; i++)
i248drivers/sound/ics2101.cleft_fix[i] = 1;
i249drivers/sound/ics2101.cfor (i = 0; i < ICS_MIXDEVS; i++)
i250drivers/sound/ics2101.cright_fix[i] = 2;
i195drivers/sound/mad16.cint             i;
i211drivers/sound/mad16.cfor (i = 0xf8d; i <= 0xf93; i++)
i212drivers/sound/mad16.cif (INB (i) != 0xff)
i214drivers/sound/mad16.cDDB (printk ("port 0x%03x != 0xff (0x%02x)\n", i, INB (i)));
i240drivers/sound/mad16.cfor (i = 0xf8d; i <= 0xf93; i++)
i241drivers/sound/mad16.cDDB (printk ("port %03x = %03x\n", i, mad_read (i)));
i249drivers/sound/mad16.cfor (i = 0; i < 5; i++)
i251drivers/sound/mad16.cif (i > 3)    /* Not a valid port */
i257drivers/sound/mad16.cif (valid_ports[i] == hw_config->io_base)
i259drivers/sound/mad16.ctmp |= i << 4;  /* WSS port select bits */
i298drivers/sound/mad16.cfor (i = 0xf8d; i <= 0xf93; i++)
i299drivers/sound/mad16.cDDB (printk ("port %03x after init = %03x\n", i, mad_read (i)));
i340drivers/sound/mad16.cint             i;    /* A variable with secret power */
i361drivers/sound/mad16.cfor (i = 0; i < 5; i++)
i363drivers/sound/mad16.cif (i > 3)    /* Out of array bounds */
i369drivers/sound/mad16.cif (valid_ports[i] == hw_config->io_base)
i371drivers/sound/mad16.ctmp |= i << 5;
i380drivers/sound/mad16.cfor (i = 0; i < 5; i++)
i382drivers/sound/mad16.cif (i > 3)    /* Out of array bounds */
i388drivers/sound/mad16.cif (valid_irqs[i] == hw_config->irq)
i390drivers/sound/mad16.ctmp |= i << 3;
i466drivers/sound/midi_synth.cint             i;
i507drivers/sound/midi_synth.cfor (i = 0; i < left && !PROCESS_ABORTING (sysex_sleeper, sysex_sleep_flag); i++)
i511drivers/sound/midi_synth.cGET_BYTE_FROM_USER (data, addr, hdr_size + i);
i513drivers/sound/midi_synth.ceox_seen = (i > 0 && data & 0x80);  /* End of sysex */
i518drivers/sound/midi_synth.cif (i == 0)
i282drivers/sound/midibuf.cint             c, n, i;
i315drivers/sound/midibuf.cfor (i = 0; i < n; i++)
i595drivers/sound/mpu401.cint             i, timeout, ok;
i654drivers/sound/mpu401.cfor (i = 0; i < cmd->nr_args; i++)
i658drivers/sound/mpu401.cif (!mpu401_out (dev, cmd->data[i]))
i670drivers/sound/mpu401.cfor (i = 0; i < cmd->nr_returns; i++)
i676drivers/sound/mpu401.ccmd->data[i] = read_data (devc->base);
i110drivers/sound/opl3.cint             i;
i117drivers/sound/opl3.cfor (i = 0; i < 3; i++)
i118drivers/sound/opl3.cphysical_voices[i].voice_mode = 4;
i119drivers/sound/opl3.cfor (i = 3; i < 6; i++)
i120drivers/sound/opl3.cphysical_voices[i].voice_mode = 0;
i122drivers/sound/opl3.cfor (i = 9; i < 12; i++)
i123drivers/sound/opl3.cphysical_voices[i].voice_mode = 4;
i124drivers/sound/opl3.cfor (i = 12; i < 15; i++)
i125drivers/sound/opl3.cphysical_voices[i].voice_mode = 0;
i127drivers/sound/opl3.cfor (i = 0; i < 12; i++)
i128drivers/sound/opl3.clogical_voices[i] = voices_4op[i];
i194drivers/sound/opl3.cint             i;
i232drivers/sound/opl3.cfor (i = 0; i < 50; i++)
i291drivers/sound/opl3.cfor (i = 0; i < 9; i++)
i292drivers/sound/opl3.copl3_command (ioaddr, KEYON_BLOCK + i, 0)