taglinefilesource code
i27arch/alpha/boot/main.cint i, j, written, remaining, num_nl;
i32arch/alpha/boot/main.ci = vsprintf(buf, fmt, args);
i38arch/alpha/boot/main.cfor (j = 0; j < i; ++j) {
i42arch/alpha/boot/main.cremaining = i + num_nl;
i43arch/alpha/boot/main.cfor (j = i - 1; j >= 0; --j) {
i57arch/alpha/boot/main.creturn i;
i101arch/alpha/boot/main.cunsigned long i, rev, sum;
i128arch/alpha/boot/main.ci = switch_to_osf_pal(
i134arch/alpha/boot/main.cif (i) {
i135arch/alpha/boot/main.cprintk("failed, code %ld\n", i);
i203arch/alpha/boot/main.clong i;
i221arch/alpha/boot/main.ci = load(dev, START_ADDR, START_SIZE);
i223arch/alpha/boot/main.cif (i != START_SIZE) {
i224arch/alpha/boot/main.cprintk("Failed (%lx)\n", i);
i237arch/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;
i466arch/alpha/kernel/apecs.cint i;
i469arch/alpha/kernel/apecs.cfor (i = 0; i < mchk_header->size / sizeof(long); i += 2) {
i470arch/alpha/kernel/apecs.cprintk(" +%lx %lx %lx\n", i*sizeof(long), ptr[i], ptr[i+1]);
i130arch/alpha/kernel/irq.cint i, len = 0;
i133arch/alpha/kernel/irq.cfor (i = 0 ; i < NR_IRQS ; i++, action++) {
i137arch/alpha/kernel/irq.ci, kstat.interrupts[i],
i282arch/alpha/kernel/irq.cint i;
i287arch/alpha/kernel/irq.cfor (i = 0; i < 16; i++)
i288arch/alpha/kernel/irq.cif (irq_action[i].handler)
i289arch/alpha/kernel/irq.cprintk("[%s:%d] ", irq_action[i].name, i);
i410arch/alpha/kernel/irq.cunsigned int i;
i424arch/alpha/kernel/irq.ci = ffz(~pld);
i426arch/alpha/kernel/irq.cif (i == 4) {
i429arch/alpha/kernel/irq.cdevice_interrupt(16 + i, 16 + i, regs);
i439arch/alpha/kernel/irq.cunsigned int i;
i452arch/alpha/kernel/irq.ci = ffz(~pld);
i455arch/alpha/kernel/irq.cif (i == 5) {
i458arch/alpha/kernel/irq.cdevice_interrupt(16 + i, 16 + i, regs);
i525arch/alpha/kernel/irq.cunsigned int i;
i527arch/alpha/kernel/irq.cfor (i = NR_IRQS - 1; i > 0; i--) {
i528arch/alpha/kernel/irq.cif (!irq_action[i].handler) {
i529arch/alpha/kernel/irq.cenable_irq(i);
i530arch/alpha/kernel/irq.cirqs |= (1 << i);
i560arch/alpha/kernel/irq.cint i;
i574arch/alpha/kernel/irq.ci = ffz(~irqs);
i575arch/alpha/kernel/irq.cif (irqs != (1UL << i))
i576arch/alpha/kernel/irq.ci = -i;
i577arch/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')
i112arch/alpha/kernel/ptrace.cint i;
i114arch/alpha/kernel/ptrace.cfor (i = 1; i < NR_TASKS; i++) {
i115arch/alpha/kernel/ptrace.cif (task[i] != NULL && (task[i]->pid == pid))
i116arch/alpha/kernel/ptrace.creturn task[i];
i417arch/alpha/kernel/ptrace.cint displ, i, res, reg_b, nsaved = 0;
i451arch/alpha/kernel/ptrace.cfor (i = 0; i < nsaved; ++i) {
i452arch/alpha/kernel/ptrace.cres = read_int(child, child->debugreg[i], &insn);
i455arch/alpha/kernel/ptrace.cchild->debugreg[i + 2] = insn;
i456arch/alpha/kernel/ptrace.cDBG(DBG_BPT, ("    -> next_pc=%lx\n", child->debugreg[i]));
i457arch/alpha/kernel/ptrace.cres = write_int(child, child->debugreg[i], BREAKINST);
i471arch/alpha/kernel/ptrace.cint i, nsaved = child->debugreg[4];
i480arch/alpha/kernel/ptrace.cfor (i = 0; i < nsaved; ++i) {
i481arch/alpha/kernel/ptrace.cwrite_int(child, child->debugreg[i], child->debugreg[i + 2]);
i72arch/alpha/kernel/setup.cint i;
i80arch/alpha/kernel/setup.cfor (i = memdesc->numclusters ; i > 0; i--, cluster++) {
i76arch/alpha/kernel/signal.cint i;
i123arch/alpha/kernel/signal.cfor (i = 0; i < 31; i++)
i124arch/alpha/kernel/signal.csw->fp[i] = get_fs_quad(sc->sc_fpregs+i);
i139arch/alpha/kernel/signal.cint i;
i183arch/alpha/kernel/signal.cfor (i = 0; i < 31; i++)
i184arch/alpha/kernel/signal.cput_fs_quad(sw->fp[i], sc->sc_fpregs+i);
i90arch/alpha/kernel/time.cint i;
i98arch/alpha/kernel/time.cfor (i = 0 ; i < 1000000 ; i++)  /* may take up to 1 second... */
i101arch/alpha/kernel/time.cfor (i = 0 ; i < 1000000 ; i++)  /* must try at least 2.228 ms */
i20arch/alpha/kernel/traps.clong i;
i43arch/alpha/kernel/traps.cfor (i = -3; i < 6; i++)
i44arch/alpha/kernel/traps.cprintk("%c%08x%c",i?' ':'<',pc[i],i?' ':'>');
i61arch/alpha/mm/init.cint i,free = 0,total = 0,reserved = 0;
i67arch/alpha/mm/init.ci = MAP_NR(high_memory);
i68arch/alpha/mm/init.cwhile (i-- > 0) {
i70arch/alpha/mm/init.cif (mem_map[i].reserved)
i72arch/alpha/mm/init.celse if (!mem_map[i].count)
i75arch/alpha/mm/init.cshared += mem_map[i].count-1;
i106arch/alpha/mm/init.cint i;
i117arch/alpha/mm/init.cfor (i = memdesc->numclusters ; i > 0; i--, cluster++) {
i182arch/alpha/mm/init.cint i;
i184arch/alpha/mm/init.ci = MAP_NR(high_memory);
i189arch/alpha/mm/init.cwhile (i-- > 0)  {
i190arch/alpha/mm/init.cif (mem_map[i].reserved)
i193arch/alpha/mm/init.cif (!mem_map[i].count)
i195arch/alpha/mm/init.cval->sharedram += mem_map[i].count-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;
i411arch/i386/kernel/bios32.cint i, length;
i427arch/i386/kernel/bios32.cfor (i = 0; i < length ; ++i)
i428arch/i386/kernel/bios32.csum += check->chars[i];
i177arch/i386/kernel/irq.cint i, len = 0;
i180arch/i386/kernel/irq.cfor (i = 0 ; i < 16 ; i++, action++) {
i184arch/i386/kernel/irq.ci, kstat.interrupts[i],
i342arch/i386/kernel/irq.cunsigned int i, irqs = 0, irqmask;
i346arch/i386/kernel/irq.cfor (i = 15; i > 0; i--) {
i347arch/i386/kernel/irq.cif (!request_irq(i, no_action, SA_PROBE, "probe")) {
i348arch/i386/kernel/irq.cenable_irq(i);
i349arch/i386/kernel/irq.cirqs |= (1 << i);
i358arch/i386/kernel/irq.cfor (i = 15; i > 0; i--) {
i359arch/i386/kernel/irq.cif (irqs & (1 << i) & irqmask) {
i360arch/i386/kernel/irq.cirqs ^= (1 << i);
i361arch/i386/kernel/irq.cfree_irq(i);
i372arch/i386/kernel/irq.cunsigned int i, irqmask;
i375arch/i386/kernel/irq.cfor (i = 15; i > 0; i--) {
i376arch/i386/kernel/irq.cif (irqs & (1 << i)) {
i377arch/i386/kernel/irq.cfree_irq(i);
i386arch/i386/kernel/irq.ci = ffz(~irqs);
i387arch/i386/kernel/irq.cif (irqs != (irqs & (1 << i)))
i388arch/i386/kernel/irq.ci = -i;
i389arch/i386/kernel/irq.creturn i;
i394arch/i386/kernel/irq.cint i;
i404arch/i386/kernel/irq.cfor (i = 0; i < 16 ; i++)
i405arch/i386/kernel/irq.cset_intr_gate(0x20+i,bad_interrupt[i]);
i409arch/i386/kernel/irq.cset_intr_gate(0x20+i, interrupt[i]);  /* IRQ '16' - IPI for rescheduling */
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);
i98arch/i386/kernel/process.cint i;
i100arch/i386/kernel/process.cfor (i=0; i<0x10000; i++)
i107arch/i386/kernel/process.cint i, j;
i114arch/i386/kernel/process.cfor (i=0; i<100; i++) {
i162arch/i386/kernel/process.cint i;
i167arch/i386/kernel/process.cfor (i=1 ; i<NR_TASKS ; i++) {
i168arch/i386/kernel/process.cif (task[i] == current)  {
i169arch/i386/kernel/process.cset_ldt_desc(gdt+(i<<1)+
i171arch/i386/kernel/process.cload_ldt(i);
i176arch/i386/kernel/process.cfor (i=0 ; i<8 ; i++)
i177arch/i386/kernel/process.ccurrent->debugreg[i] = 0;
i187arch/i386/kernel/process.cint i;
i219arch/i386/kernel/process.cfor (i = 0; i < IO_BITMAP_SIZE+1 ; i++) /* IO bitmap is actually SIZE+1 */
i220arch/i386/kernel/process.cp->tss.io_bitmap[i] = ~0;
i255arch/i386/kernel/process.cint i;
i265arch/i386/kernel/process.cfor (i = 0; i < 8; i++)
i266arch/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];
i302arch/i386/kernel/ptrace.cint i;
i445arch/i386/kernel/ptrace.cfor(i=0; i<4; i++)
i446arch/i386/kernel/ptrace.cif ((0x5f54 >> ((data >> (16 + 4*i)) & 0xf)) & 1)
i202arch/i386/kernel/setup.cint i;  
i204arch/i386/kernel/setup.cfor(i=0;i<32;i++)
i205arch/i386/kernel/setup.cif(cpu_present_map&(1<<i))
i206arch/i386/kernel/setup.cbp+=sprintf(bp,"%c86             ",cpu_data[i].x86+'0');
i208arch/i386/kernel/setup.cfor(i=0;i<32;i++)
i209arch/i386/kernel/setup.cif(cpu_present_map&(1<<i))
i210arch/i386/kernel/setup.cbp+=sprintf(bp,"%-16s",cpu_data[i].x86_model?
i211arch/i386/kernel/setup.cmodel[cpu_data[i].x86-4][cpu_data[i].x86_model-1]:"Unknown");
i213arch/i386/kernel/setup.cfor(i=0;i<32;i++)
i214arch/i386/kernel/setup.cif(cpu_present_map&(1<<i))
i216arch/i386/kernel/setup.cmask[0] = cpu_data[i].x86_mask+'@';
i218arch/i386/kernel/setup.cbp+=sprintf(bp,"%-16s", cpu_data[i].x86_mask ? mask : "Unknown");
i221arch/i386/kernel/setup.cfor(i=0;i<32;i++)
i222arch/i386/kernel/setup.cif(cpu_present_map&(1<<i))
i223arch/i386/kernel/setup.cbp+=sprintf(bp,"%-16s", cpu_data[i].x86_vendor_id);
i225arch/i386/kernel/setup.cfor(i=0;i<32;i++)
i226arch/i386/kernel/setup.cif(cpu_present_map&(1<<i))
i227arch/i386/kernel/setup.cbp+=sprintf(bp,"%-16s", cpu_data[i].fdiv_bug?"yes":"no");
i229arch/i386/kernel/setup.cfor(i=0;i<32;i++)
i230arch/i386/kernel/setup.cif(cpu_present_map&(1<<i))
i231arch/i386/kernel/setup.cbp+=sprintf(bp,"%-16s", cpu_data[i].hard_math?"yes":"no");
i233arch/i386/kernel/setup.cfor(i=0;i<32;i++)
i234arch/i386/kernel/setup.cif(cpu_present_map&(1<<i))
i235arch/i386/kernel/setup.cbp+=sprintf(bp,"%-16s", cpu_data[i].hlt_works_ok?"yes":"no");
i237arch/i386/kernel/setup.cfor(i=0;i<32;i++)
i238arch/i386/kernel/setup.cif(cpu_present_map&(1<<i))
i239arch/i386/kernel/setup.cbp+=sprintf(bp,"%-16s", cpu_data[i].wp_works_ok?"yes":"no");
i241arch/i386/kernel/setup.cfor(i=0;i<32;i++)
i242arch/i386/kernel/setup.cif(cpu_present_map&(1<<i))
i243arch/i386/kernel/setup.cbp+=sprintf(bp,"%-16s", cpu_data[i].x86_capability&1?"yes":"no");
i245arch/i386/kernel/setup.cfor(i=0;i<32;i++)
i246arch/i386/kernel/setup.cif(cpu_present_map&(1<<i))
i247arch/i386/kernel/setup.cbp+=sprintf(bp,"%-16s", cpu_data[i].x86_capability&2?"yes":"no");
i249arch/i386/kernel/setup.cfor(i=0;i<32;i++)
i250arch/i386/kernel/setup.cif(cpu_present_map&(1<<i))
i251arch/i386/kernel/setup.cbp+=sprintf(bp,"%-16s", (cpu_data[i].x86_capability&4)?"yes":"no");
i253arch/i386/kernel/setup.cfor(i=0;i<32;i++)
i254arch/i386/kernel/setup.cif(cpu_present_map&(1<<i))
i255arch/i386/kernel/setup.cbp+=sprintf(bp,"%-16s", (cpu_data[i].x86_capability)&8?"yes":"no");
i257arch/i386/kernel/setup.cfor(i=0;i<32;i++)
i258arch/i386/kernel/setup.cif(cpu_present_map&(1<<i))
i259arch/i386/kernel/setup.cbp+=sprintf(bp,"%-16s", (cpu_data[i].x86_capability&16)?"yes":"no");
i261arch/i386/kernel/setup.cfor(i=0;i<32;i++)
i262arch/i386/kernel/setup.cif(cpu_present_map&(1<<i))
i263arch/i386/kernel/setup.cbp+=sprintf(bp,"%-16s", (cpu_data[i].x86_capability&32)?"yes":"no");
i265arch/i386/kernel/setup.cfor(i=0;i<32;i++)
i266arch/i386/kernel/setup.cif(cpu_present_map&(1<<i))
i267arch/i386/kernel/setup.cbp+=sprintf(bp,"%-16s", (cpu_data[i].x86_capability&128)?"yes":"no");
i269arch/i386/kernel/setup.cfor(i=0;i<32;i++)
i270arch/i386/kernel/setup.cif(cpu_present_map&(1<<i))
i271arch/i386/kernel/setup.cbp+=sprintf(bp,"%-16s", (cpu_data[i].x86_capability&256)?"yes":"no");
i273arch/i386/kernel/setup.cfor(i=0;i<32;i++)
i276arch/i386/kernel/setup.cif(cpu_present_map&(1<<i))
i278arch/i386/kernel/setup.csprintf(tmp,"%lu.%02lu",cpu_data[i].udelay_val/500000L,
i279arch/i386/kernel/setup.c(cpu_data[i].udelay_val/5000L)%100);
i466arch/i386/kernel/smp.cint i=0;
i492arch/i386/kernel/smp.cfor(i=0;i<NR_CPUS;i++)
i494arch/i386/kernel/smp.cif((cpu_present_map&(1<<i)) && i!=boot_cpu_id)    /* Rebooting yourself is a bad move */
i506arch/i386/kernel/smp.ckernel_stacks[i]=stack;
i509arch/i386/kernel/smp.cprintk("Booting processor %d stack %p: ",i,stack);      /* So we set whats up   */
i527arch/i386/kernel/smp.capic_write(APIC_ICR2, cfg|SET_APIC_DEST_FIELD(i));      /* Target chip       */
i540arch/i386/kernel/smp.cif(cpu_callin_map[0]&(1<<i))
i544arch/i386/kernel/smp.cif(cpu_callin_map[0]&(1<<i))
i556arch/i386/kernel/smp.ccpu_present_map&=~(1<<i);
i572arch/i386/kernel/smp.cfor(i=0;i<32;i++)
i574arch/i386/kernel/smp.cif(cpu_present_map&(1<<i))
i575arch/i386/kernel/smp.cbogosum+=cpu_data[i].udelay_val;
i898arch/i386/kernel/smp.cint i=smp_processor_id();
i912arch/i386/kernel/smp.cif(clear_bit(i,&smp_invalidate_needed))
i914arch/i386/kernel/smp.cset_bit(i, &cpu_callin_map[0]);
i320arch/i386/kernel/time.cint i;
i328arch/i386/kernel/time.cfor (i = 0 ; i < 1000000 ; i++)  /* may take up to 1 second... */
i331arch/i386/kernel/time.cfor (i = 0 ; i < 1000000 ; i++)  /* must try at least 2.228 ms */
i99arch/i386/kernel/traps.cint i;
i123arch/i386/kernel/traps.cstore_TR(i);
i127arch/i386/kernel/traps.ccurrent->comm, current->pid, 0xffff & i, current->kernel_stack_page);
i129arch/i386/kernel/traps.cfor(i=0; i < kstack_depth_to_print; i++) {
i132arch/i386/kernel/traps.cif (i && ((i % 8) == 0))
i138arch/i386/kernel/traps.ci = 1;
i154arch/i386/kernel/traps.cif (i && ((i % 8) == 0))
i157arch/i386/kernel/traps.ci++;
i161arch/i386/kernel/traps.cfor(i=0;i<20;i++)
i162arch/i386/kernel/traps.cprintk("%02x ",0xff & get_seg_byte(regs->cs,(i+(char *)regs->eip)));
i350arch/i386/kernel/traps.cint i;
i382arch/i386/kernel/traps.cfor (i=18;i<48;i++)
i383arch/i386/kernel/traps.cset_trap_gate(i,&reserved);
i391arch/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);
i74arch/i386/mm/init.cint i,free = 0,total = 0,reserved = 0;
i80arch/i386/mm/init.ci = high_memory >> PAGE_SHIFT;
i81arch/i386/mm/init.cwhile (i-- > 0) {
i83arch/i386/mm/init.cif (mem_map[i].reserved)
i85arch/i386/mm/init.celse if (!mem_map[i].count)
i88arch/i386/mm/init.cshared += mem_map[i].count-1;
i273arch/i386/mm/init.cint i;
i275arch/i386/mm/init.ci = high_memory >> PAGE_SHIFT;
i280arch/i386/mm/init.cwhile (i-- > 0)  {
i281arch/i386/mm/init.cif (mem_map[i].reserved)
i284arch/i386/mm/init.cif (!mem_map[i].count)
i286arch/i386/mm/init.cval->sharedram += mem_map[i].count-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);
i130arch/mips/kernel/process.cint i;
i140arch/mips/kernel/process.cfor (i = 0; i < 8; i++)
i141arch/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);
i99arch/sparc/kernel/process.cint i;
i121arch/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;
i636arch/sparc/mm/srmmu.cint i;
i651arch/sparc/mm/srmmu.cfor(i = 0; i < num_contexts; i++)
i652arch/sparc/mm/srmmu.csrmmu_pgd_set(&lnx_root[i], pmdp);
i788arch/sparc/mm/srmmu.cfor(i=0; i<num_contexts; i++)
i789arch/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;
i441arch/sparc/mm/sun4c.cint phys_seg, i, min_prom_segmap;
i459arch/sparc/mm/sun4c.cfor(i=0; i<num_segmaps; i++) phys_seg_map[i] = PSEG_AVL;
i460arch/sparc/mm/sun4c.cfor(i=num_segmaps; i<PSEG_ENTRIES; i++) phys_seg_map[i] = PSEG_RSV;
i517arch/sparc/mm/sun4c.cfor(i=0; i<num_contexts; i++)
i518arch/sparc/mm/sun4c.c(*romvec->pv_setctxt)(i, (char *) addr, phys_seg);
i554arch/sparc/mm/sun4c.cfor(i=0; i<num_contexts; i++)
i555arch/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;
i430drivers/block/floppy.c#define _WAIT(x,i) CALL(ret=wait_til_done((x),i))
i874drivers/block/floppy.cint i, drive, saved_drive;
i880drivers/block/floppy.cfor (i=0; i < N_DRIVE; i++){
i881drivers/block/floppy.cdrive = (saved_drive + i + 1) % N_DRIVE;
i977drivers/block/floppy.cint i;
i980drivers/block/floppy.cfor (i=0; i < raw_cmd->cmd_count; i++)
i981drivers/block/floppy.cprintk("%x,", raw_cmd->cmd[i]);
i1052drivers/block/floppy.cint i = 0, counter, status = 0;
i1064drivers/block/floppy.cresultsize = i;
i1066drivers/block/floppy.creturn i;
i1071drivers/block/floppy.cif (i >= MAX_REPLIES) {
i1075drivers/block/floppy.creply_buffer[i++] = fd_inb(FD_DATA);
i1081drivers/block/floppy.cstatus, fdc, i);
i1331drivers/block/floppy.cint i,ready_date,r, flags,dflags;
i1363drivers/block/floppy.cfor (i=0; i< raw_cmd->cmd_count; i++)
i1364drivers/block/floppy.cr|=output_byte(raw_cmd->cmd[i]);
i1563drivers/block/floppy.cint i;
i1569drivers/block/floppy.cfor (i=0; i<inr; i++)
i1570drivers/block/floppy.cprintk("%d %x\n", i, reply_buffer[i]);
i1579drivers/block/floppy.cfor (i=0; i<inr; i++)
i1580drivers/block/floppy.cprintk("%d %x\n", i, reply_buffer[i]);
i1675drivers/block/floppy.cint i;
i1687drivers/block/floppy.cfor (i=0; i < OLOGSIZE; i++)
i1689drivers/block/floppy.coutput_log[(i+output_log_pos) % OLOGSIZE].data,
i1690drivers/block/floppy.coutput_log[(i+output_log_pos) % OLOGSIZE].status,
i1691drivers/block/floppy.coutput_log[(i+output_log_pos) % OLOGSIZE].jiffies);
i1694drivers/block/floppy.cfor (i=0; i<resultsize; i++){
i1695drivers/block/floppy.cprintk("%2x ", reply_buffer[i]);
i2796drivers/block/floppy.cint i;
i2803drivers/block/floppy.cfor (i=0; i< raw_cmd->reply_count; i++)
i2804drivers/block/floppy.craw_cmd->reply[i] = reply_buffer[i];
i2899drivers/block/floppy.cint i;
i2932drivers/block/floppy.cfor (i=0; i< 16; i++)
i2933drivers/block/floppy.cptr->reply[i] = 0;
i3123drivers/block/floppy.cint i, orig_size, ocmd;
i3127drivers/block/floppy.cfor (i=0; i < ARRAY_SIZE(translation_table); i++) {
i3128drivers/block/floppy.cif ((*cmd & 0xff3f) == (translation_table[i].newcmd & 0xff3f)){
i3129drivers/block/floppy.c*cmd = translation_table[i].newcmd;
i3156drivers/block/floppy.cint i;
i3165drivers/block/floppy.cfor (i=0; i < ARRAY_SIZE(translation_table); i++) {
i3166drivers/block/floppy.cif (*cmd == translation_table[i].oldcmd) {
i3167drivers/block/floppy.c*size = translation_table[i].oldsize;
i3168drivers/block/floppy.c*cmd = translation_table[i].newcmd;
i3184drivers/block/floppy.cint i,drive,type;
i3301drivers/block/floppy.cCALL(i = raw_cmd_ioctl(cmd,(void *) param));
i3303drivers/block/floppy.creturn i;
i3671drivers/block/floppy.cint i;
i3673drivers/block/floppy.cfor (i=0; i < ARRAY_SIZE(default_drive_params); i++){
i3675drivers/block/floppy.cdefault_drive_params[i].params.flags |= 0x80;
i3677drivers/block/floppy.cdefault_drive_params[i].params.flags &= ~0x80;
i3684drivers/block/floppy.cint i;
i3686drivers/block/floppy.cfor (i=0; i < ARRAY_SIZE(default_drive_params); i++){
i3688drivers/block/floppy.cdefault_drive_params[i].params.select_delay = 0;
i3689drivers/block/floppy.cdefault_drive_params[i].params.flags |= FD_SILENT_DCL_CLEAR;
i3691drivers/block/floppy.cdefault_drive_params[i].params.select_delay = 2*HZ/100;
i3692drivers/block/floppy.cdefault_drive_params[i].params.flags &= ~FD_SILENT_DCL_CLEAR;
i3768drivers/block/floppy.cint i;
i3771drivers/block/floppy.cfor (i=0; i< ARRAY_SIZE(config_params); i++){
i3772drivers/block/floppy.cif (strcmp(str,config_params[i].name) == 0){
i3776drivers/block/floppy.cparam = config_params[i].def_param;
i3777drivers/block/floppy.cconfig_params[i].fn(ints,param);
i3785drivers/block/floppy.cfor (i=0; i< ARRAY_SIZE(config_params); i++)
i3786drivers/block/floppy.cprintk(" %s",config_params[i].name);
i3795drivers/block/floppy.cint i,unit,drive;
i3807drivers/block/floppy.cfor (i=0; i<256; i++)
i3808drivers/block/floppy.cif (TYPE(i))
i3809drivers/block/floppy.cfloppy_sizes[i] = floppy_type[TYPE(i)].size >> 1;
i3811drivers/block/floppy.cfloppy_sizes[i] = MAX_DISK_SIZE;
i3819drivers/block/floppy.cfor (i = 0; i < N_FDC; i++) {
i3820drivers/block/floppy.cfdc = i;
i3846drivers/block/floppy.cfor (i = 0; i < N_FDC; i++) {
i3847drivers/block/floppy.cfdc = i;
i3893drivers/block/floppy.cint i;
i3901drivers/block/floppy.cfor (i=0; i< N_FDC; i++){
i3903drivers/block/floppy.cfdc = i;
i3984drivers/block/floppy.cint i;
i3995drivers/block/floppy.cfor (i=current->mm->env_start; i< current->mm->env_end; i ++){
i3996drivers/block/floppy.cc= get_fs_byte(i);
i97drivers/block/genhd.cint i;
i135drivers/block/genhd.cfor (i=0; i<4; i++, p++) {
i141drivers/block/genhd.cif (i >= 2
i164drivers/block/genhd.cfor (i=0; i<4; i++, p++)
i167drivers/block/genhd.cif (i == 4)
i182drivers/block/genhd.cint i, minor = current_minor;
i266drivers/block/genhd.cfor (i=1 ; i<=4 ; minor++,i++,p++) {
i293drivers/block/genhd.cfor (i = 4 ; i < 16 ; i++, current_minor++) {
i313drivers/block/genhd.cint i;
i366drivers/block/genhd.cfor (i = 0 ; i < label->d_npartitions; i++, partition++) {
i386drivers/block/genhd.cint i, csum;
i435drivers/block/genhd.cfor(i=0; i < 8; i++, p++) {
i499drivers/block/genhd.cint i;
i512drivers/block/genhd.cfor (i = first_minor; i < end_minor; i++)
i513drivers/block/genhd.cdev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
i520drivers/block/genhd.cint i, drive;
i524drivers/block/genhd.cfor (i = 0 ; i < end_minor; i++) {
i525drivers/block/genhd.cdev->part[i].start_sect = 0;
i526drivers/block/genhd.cdev->part[i].nr_sects = 0;
i535drivers/block/genhd.cfor (i = 0; i < end_minor; i++)
i536drivers/block/genhd.cdev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
i99drivers/block/hd.cint i;
i105drivers/block/hd.ci = inb_p(0x40);
i106drivers/block/hd.ci |= inb(0x40) << 8;
i108drivers/block/hd.creturn(t - i);
i172drivers/block/hd.cint i = inb_p(HD_STATUS);
i174drivers/block/hd.cif (!OK_STATUS(i)) {
i175drivers/block/hd.cdump_status("check_status", i);
i359drivers/block/hd.cunsigned int i;
i362drivers/block/hd.cfor (i = 0; i < 500000 ; i++) {
i373drivers/block/hd.cint  i;
i376drivers/block/hd.cfor(i = 0; i < 1000; i++) barrier();
i378drivers/block/hd.cfor(i = 0; i < 1000; i++) barrier();
i387drivers/block/hd.cstatic int i;
i392drivers/block/hd.ci = -1;
i399drivers/block/hd.cif (++i < NR_HD) {
i400drivers/block/hd.cspecial_op[i] = recalibrate[i] = 1;
i401drivers/block/hd.cif (unmask_intr[i]) {
i402drivers/block/hd.cunmask_intr[i] = DEFAULT_UNMASK_INTR;
i403drivers/block/hd.cprintk("hd%c: reset irq-unmasking to %d\n",i+'a',
i406drivers/block/hd.cif (mult_req[i] || mult_count[i]) {
i407drivers/block/hd.cmult_count[i] = 0;
i408drivers/block/hd.cmult_req[i] = DEFAULT_MULT_COUNT;
i409drivers/block/hd.cprintk("hd%c: reset multiple mode to %d\n",i+'a',
i412drivers/block/hd.chd_out(i,hd_info[i].sect,hd_info[i].sect,hd_info[i].head-1,
i413drivers/block/hd.chd_info[i].cyl,WIN_SPECIFY,&reset_hd);
i475drivers/block/hd.cint i, retries = 100000, msect = mult_count[dev], nsect;
i480drivers/block/hd.ci = (unsigned) inb_p(HD_STATUS);
i481drivers/block/hd.cif (i & BUSY_STAT)
i483drivers/block/hd.cif (!OK_STATUS(i))
i485drivers/block/hd.cif (i & DRQ_STAT)
i488drivers/block/hd.cdump_status("read_intr", i);
i503drivers/block/hd.ci = (CURRENT->nr_sectors -= nsect);
i512drivers/block/hd.cif (i > 0) {
i548drivers/block/hd.cint i;
i553drivers/block/hd.cif (OK_STATUS(i=inb_p(HD_STATUS))) {
i554drivers/block/hd.cif (i & DRQ_STAT) {
i562drivers/block/hd.cfor (i = CURRENT->nr_sectors; i > 0;){
i563drivers/block/hd.ci -= CURRENT->current_nr_sectors;
i575drivers/block/hd.cdump_status("multwrite_intr", i);
i582drivers/block/hd.cint i;
i588drivers/block/hd.ci = (unsigned) inb_p(HD_STATUS);
i589drivers/block/hd.cif (i & BUSY_STAT)
i591drivers/block/hd.cif (!OK_STATUS(i))
i593drivers/block/hd.cif ((CURRENT->nr_sectors <= 1) || (i & DRQ_STAT))
i596drivers/block/hd.cdump_status("write_intr", i);
i602drivers/block/hd.ci = --CURRENT->nr_sectors;
i605drivers/block/hd.cif (!i || (CURRENT->bh && !SUBSECTOR(i)))
i607drivers/block/hd.cif (i > 0) {
i956drivers/block/hd.cint i;
i1007drivers/block/hd.ci = NR_HD;
i1008drivers/block/hd.cwhile (i-- > 0) {
i1017drivers/block/hd.chd[i<<6].nr_sects = bios_info[i].head *
i1018drivers/block/hd.cbios_info[i].sect * bios_info[i].cyl;
i1019drivers/block/hd.chd_ident_info[i] = (struct hd_driveid *) kmalloc(512,GFP_KERNEL);
i1020drivers/block/hd.cspecial_op[i] = 1;
i1033drivers/block/hd.cfor(i=0;i<(MAX_HD << 6);i++) hd_blocksizes[i] = 1024;
i1086drivers/block/hd.cint i;
i1104drivers/block/hd.cfor (i=max_p - 1; i >=0 ; i--) {
i1105drivers/block/hd.cint minor = start + i;
i385drivers/block/ide-cd.cint i;
i441drivers/block/ide-cd.cfor (i=0; i<sizeof (failed_command->c); i++)
i442drivers/block/ide-cd.cprintk ("%02x ", failed_command->c[i]);
i1732drivers/block/ide-cd.cint stat, ntracks, i;
i1781drivers/block/ide-cd.cfor (i=0; i<=ntracks; i++)
i1785drivers/block/ide-cd.cbyte *adr = (byte *)&(toc->ent[i].lba);
i1786drivers/block/ide-cd.ctoc->ent[i].lba = msf_to_lba (adr[1], adr[2], adr[3]);
i1789drivers/block/ide-cd.cbyte_swap_long (&toc->ent[i].lba);
i229drivers/block/ide.cint i;
i235drivers/block/ide.ci = inb_p(0x40);
i236drivers/block/ide.ci |= inb(0x40) << 8;
i238drivers/block/ide.creturn (t - i);
i851drivers/block/ide.cint i = (drive->mult_count ? drive->mult_count : 1) * SECTOR_WORDS;
i853drivers/block/ide.cwhile (i > 0) {
i855drivers/block/ide.cunsigned int wcount = (i > 16) ? 16 : i;
i856drivers/block/ide.ci -= wcount;
i923drivers/block/ide.cint i;
i951drivers/block/ide.ci = (rq->nr_sectors -= nsect);
i954drivers/block/ide.cif (i > 0) {
i969drivers/block/ide.cint i;
i982drivers/block/ide.ci = --rq->nr_sectors;
i986drivers/block/ide.cif (i > 0) {
i1043drivers/block/ide.cint i;
i1056drivers/block/ide.cfor (i = rq->nr_sectors; i > 0;){
i1057drivers/block/ide.ci -= rq->current_nr_sectors;
i2350drivers/block/ide.cint i;
i2352drivers/block/ide.cfor(i = 0; i < 3; ++i) {
i2480drivers/block/ide.cchar *i = strchr(s, c);
i2481drivers/block/ide.creturn (i && c) ? i - s : -1;
i2500drivers/block/ide.cint i, n;
i2507drivers/block/ide.cfor (i = 0; *keywords != NULL; ++i) {
i2509drivers/block/ide.creturn -(i+1);
i2517drivers/block/ide.cfor (n = 0; (i = stridx(decimal, *s)) >= 0;) {
i2518drivers/block/ide.cvals[n] = i;
i2519drivers/block/ide.cwhile ((i = stridx(decimal, *++s)) >= 0)
i2520drivers/block/ide.cvals[n] = (vals[n] * 10) + i;
i2522drivers/block/ide.cwhile ((i = stridx(hex, *++s)) >= 0)
i2523drivers/block/ide.cvals[n] = (vals[n] * 0x10) + i;
i461drivers/block/ll_rw_blk.cint i;
i483drivers/block/ll_rw_blk.ci = blksize_size[major][MINOR(bh[0]->b_dev)];
i484drivers/block/ll_rw_blk.cif (i)
i485drivers/block/ll_rw_blk.ccorrect_size = i;
i489drivers/block/ll_rw_blk.cfor (i = 0; i < nr; i++) {
i490drivers/block/ll_rw_blk.cif (bh[i] && bh[i]->b_size != correct_size) {
i493drivers/block/ll_rw_blk.ccorrect_size, bh[i]->b_size);
i511drivers/block/ll_rw_blk.cfor (i = 0; i < nr; i++) {
i512drivers/block/ll_rw_blk.cif (bh[i]) {
i513drivers/block/ll_rw_blk.cbh[i]->b_req = 1;
i514drivers/block/ll_rw_blk.cmake_request(major, rw, bh[i]);
i525drivers/block/ll_rw_blk.cfor (i = 0; i < nr; i++) {
i526drivers/block/ll_rw_blk.cif (bh[i])
i527drivers/block/ll_rw_blk.cbh[i]->b_dirt = bh[i]->b_uptodate = 0;
i534drivers/block/ll_rw_blk.cint i, j;
i557drivers/block/ll_rw_blk.cfor (j=0, i=0; i<nb;)
i559drivers/block/ll_rw_blk.cfor (; j < 8 && i < nb; j++, i++, buf += buffersize)
i572drivers/block/ll_rw_blk.creq[j]->sector = (b[i] * buffersize) >> 9;
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;
i188drivers/block/ramdisk.ci++;
i126drivers/block/triton.cint i;
i136drivers/block/triton.cfor (i = rq->nr_sectors; i > 0;) {
i137drivers/block/triton.ci -= rq->current_nr_sectors;
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;
i521drivers/block/xd.cu_char cmdblk[6],i,count = 0;
i523drivers/block/xd.cfor (i = 0; i < XD_MAXDRIVES; i++) {
i524drivers/block/xd.cxd_build(cmdblk,CMD_TESTREADY,i,0,0,0,0,0);
i679drivers/block/xd.cu_char cmdblk[6],i;
i681drivers/block/xd.cfor (i = 0; i < 3; i++) {
i682drivers/block/xd.cwhile (min[i] != max[i] - 1) {
i683drivers/block/xd.ctest[i] = (min[i] + max[i]) / 2;
i686drivers/block/xd.cmin[i] = test[i];
i688drivers/block/xd.cmax[i] = test[i];
i690drivers/block/xd.ctest[i] = min[i];
i608drivers/cdrom/aztcd.c{       int i, st;
i625drivers/cdrom/aztcd.c{ if ((i=aztUpdateToc())<0) RETURNM("aztcd_ioctl 3", i); /* error reading TOC */
i660drivers/cdrom/aztcd.ci = aztPlay(&azt_Play);
i661drivers/cdrom/aztcd.cif (i < 0)
i719drivers/cdrom/aztcd.ci = aztPlay(&azt_Play);
i720drivers/cdrom/aztcd.cif (i < 0)
i754drivers/cdrom/aztcd.ci = aztPlay(&azt_Play);
i755drivers/cdrom/aztcd.cif (i < 0)
i962drivers/cdrom/aztcd.cint i;
i963drivers/cdrom/aztcd.cfor (i = 0; i < AZT_BUF_SIZ && azt_buf_bn[i] != bn; ++i)
i965drivers/cdrom/aztcd.cif (i < AZT_BUF_SIZ) {
i966drivers/cdrom/aztcd.cint offs = (i * 4 + (CURRENT -> sector & 3)) * 512;
i968drivers/cdrom/aztcd.cif (azt_buf_out != i) {
i969drivers/cdrom/aztcd.cazt_buf_out = i;
i970drivers/cdrom/aztcd.cif (azt_buf_bn[i] != bn) {
i1341drivers/cdrom/aztcd.cint i;
i1344drivers/cdrom/aztcd.cfor (i=0; i<CD_FRAMESIZE_RAW; i++) inb(DATA_PORT);
i1346drivers/cdrom/aztcd.cfor (i=0; i<CD_FRAMESIZE; i++) inb(DATA_PORT);
i1421drivers/cdrom/aztcd.c{ int i;
i1426drivers/cdrom/aztcd.cfor (i = 0; i < AZT_BUF_SIZ; ++i)
i1427drivers/cdrom/aztcd.cazt_buf_bn[i] = -1;
i1993drivers/cdrom/aztcd.c{ int i, px;
i2001drivers/cdrom/aztcd.c{ for (i = 0; i < MAX_TRACKS; i++)
i2002drivers/cdrom/aztcd.cToc[i].pointIndex = 0;
i2003drivers/cdrom/aztcd.ci = DiskInfo.last + 3;
i2006drivers/cdrom/aztcd.c{ for (i = DiskInfo.next; i < MAX_TRACKS; i++)
i2007drivers/cdrom/aztcd.cToc[i].pointIndex = 0; 
i2008drivers/cdrom/aztcd.ci = DiskInfo.last + 4 - DiskInfo.next;
i2037drivers/cdrom/aztcd.ci--;
i2040drivers/cdrom/aztcd.cif (i <= 0)
i2049drivers/cdrom/aztcd.cfor (i = 1; i <= DiskInfo.last+1; i++)
i2051drivers/cdrom/aztcd.ci, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex,
i2052drivers/cdrom/aztcd.cToc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame,
i2053drivers/cdrom/aztcd.cToc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame);
i2054drivers/cdrom/aztcd.cfor (i = 100; i < 103; i++)
i2056drivers/cdrom/aztcd.ci, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex,
i2057drivers/cdrom/aztcd.cToc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame,
i2058drivers/cdrom/aztcd.cToc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame);
i688drivers/cdrom/cdu31a.cint i;
i747drivers/cdrom/cdu31a.cfor (i=0; i<8; i++)
i775drivers/cdrom/cdu31a.cfor (i=0; i<10; i++)
i1212drivers/cdrom/cdu31a.cint i;
i1220drivers/cdrom/cdu31a.cfor(i=0; i<CD_XA_HEAD; i++)
i1259drivers/cdrom/cdu31a.cfor(i=0; i<CD_XA_TAIL; i++)
i1911drivers/cdrom/cdu31a.cint i;
i1916drivers/cdrom/cdu31a.cfor (i = 0; i < num_tracks; i++)
i1918drivers/cdrom/cdu31a.cif (sony_toc.tracks[i].track == track)
i1920drivers/cdrom/cdu31a.creturn i;
i2385drivers/cdrom/cdu31a.cint i;
i2447drivers/cdrom/cdu31a.ci=verify_area(VERIFY_READ, (char *) arg, 6);
i2448drivers/cdrom/cdu31a.cif(i)
i2449drivers/cdrom/cdu31a.creturn i;
i2454drivers/cdrom/cdu31a.cfor (i=1; i<7; i++)
i2456drivers/cdrom/cdu31a.cparams[i] = int_to_bcd(params[i]);
i2481drivers/cdrom/cdu31a.ci=verify_area(VERIFY_WRITE, hdr, sizeof(*hdr));
i2482drivers/cdrom/cdu31a.cif(i<0)
i2483drivers/cdrom/cdu31a.creturn i;
i2504drivers/cdrom/cdu31a.ci=verify_area(VERIFY_READ, entry, sizeof(*entry));
i2505drivers/cdrom/cdu31a.cif(i<0)
i2506drivers/cdrom/cdu31a.creturn i;
i2507drivers/cdrom/cdu31a.ci=verify_area(VERIFY_WRITE, entry, sizeof(*entry));
i2508drivers/cdrom/cdu31a.cif(i<0)
i2509drivers/cdrom/cdu31a.creturn i;
i2560drivers/cdrom/cdu31a.ci=verify_area(VERIFY_READ, (char *) arg, sizeof(ti));
i2561drivers/cdrom/cdu31a.cif(i<0)
i2562drivers/cdrom/cdu31a.creturn i;
i2629drivers/cdrom/cdu31a.ci=verify_area(VERIFY_READ, (char *) arg, sizeof(volctrl));
i2630drivers/cdrom/cdu31a.cif(i<0)
i2631drivers/cdrom/cdu31a.creturn i;
i2658drivers/cdrom/cdu31a.ci=verify_area(VERIFY_READ, (char *) arg, sizeof(ra));
i2659drivers/cdrom/cdu31a.cif(i<0)
i2660drivers/cdrom/cdu31a.creturn i;
i2663drivers/cdrom/cdu31a.ci=verify_area(VERIFY_WRITE, ra.buf, CD_FRAMESIZE_RAW * ra.nframes);
i2664drivers/cdrom/cdu31a.cif(i<0)
i2665drivers/cdrom/cdu31a.creturn i;
i2998drivers/cdrom/cdu31a.cint i;
i3040drivers/cdrom/cdu31a.ci = 0;
i3041drivers/cdrom/cdu31a.cwhile (   (cdu31a_addresses[i].base != 0)
i3044drivers/cdrom/cdu31a.cif (check_region(cdu31a_addresses[i].base, 4)) {
i3045drivers/cdrom/cdu31a.ci++;
i3048drivers/cdrom/cdu31a.cget_drive_configuration(cdu31a_addresses[i].base,
i3054drivers/cdrom/cdu31a.ccdu31a_irq = cdu31a_addresses[i].int_num;
i3058drivers/cdrom/cdu31a.ci++;
i129drivers/cdrom/cm206.c#define stats(i) ++cd->stats[st_ ## i]; \
i130drivers/cdrom/cm206.ccd->last_stat[st_ ## i] = cd->stat_counter++;
i132drivers/cdrom/cm206.c#define stats(i) (void) 0
i374drivers/cdrom/cm206.cint i;
i376drivers/cdrom/cm206.cfor(i=0; i<bytes; i++) 
i377drivers/cdrom/cm206.cstatus[i] = send_receive(c_gimme);
i411drivers/cdrom/cm206.cint i, e;
i414drivers/cdrom/cm206.cfor (i=0; i<4; i++) 
i415drivers/cdrom/cm206.cif (read_sector[i] != (e=send_receive(read_sector[i]))) {
i416drivers/cdrom/cm206.cdebug(("read_sector: %x echoes %x\n", read_sector[i], e));
i541drivers/cdrom/cm206.cint i=0;
i543drivers/cdrom/cm206.cwhile (i++<10 && cd->dsb & dsb_drive_not_ready) {
i636drivers/cdrom/cm206.clong int i, cd_sec_no;
i650drivers/cdrom/cm206.cfor (i=0; i<CURRENT->nr_sectors; i++) {
i651drivers/cdrom/cm206.ccd_sec_no = (CURRENT->sector+i)/4; /* 4 times 512 bytes */
i652drivers/cdrom/cm206.cquarter = (CURRENT->sector+i) % 4; 
i653drivers/cdrom/cm206.cdest = CURRENT->buffer + i*512;
i709drivers/cdrom/cm206.cint i;
i713drivers/cdrom/cm206.cfor (i=0; i<4; i++) type_0_command(seek_command[i], 0);
i735drivers/cdrom/cm206.cint i, lba, l, old_lba=0;
i741drivers/cdrom/cm206.cfor (i=track; i>0; i--) if (cd->toc[i].track) {
i742drivers/cdrom/cm206.cmin = fsm2lba(cd->toc[i].fsm);
i789drivers/cdrom/cm206.cint i;
i793drivers/cdrom/cm206.cfor (i=0; i<3; i++) cd->toc[1].fsm[i] = cd->disc_status[3+i];
i805drivers/cdrom/cm206.cint i;
i806drivers/cdrom/cm206.cfor (i=0; i<9; i++) type_0_command(play_command[i], 0);
i807drivers/cdrom/cm206.cfor (i=0; i<3; i++) 
i808drivers/cdrom/cm206.cPLAY_TO.fsm[i] = play_command[i+4];
i816drivers/cdrom/cm206.cint i;
i819drivers/cdrom/cm206.cfor (i=0; i<3; i++) { 
i820drivers/cdrom/cm206.cplay_command[i+1] = cd->audio_status[i+2];
i821drivers/cdrom/cm206.cplay_command[i+4] = PLAY_TO.fsm[i];
i825drivers/cdrom/cm206.cfor (i=0; i<3; i++) {
i826drivers/cdrom/cm206.cplay_command[i+1] = cd->toc[from].fsm[i];
i827drivers/cdrom/cm206.cPLAY_TO.fsm[i] = play_command[i+4] = cd->toc[to+1].fsm[i];
i831drivers/cdrom/cm206.cfor (i=0; i<7; i++) type_0_command(play_command[i],0);
i832drivers/cdrom/cm206.cfor (i=0; i<2; i++) type_0_command(0x2, 0); /* volume */
i838drivers/cdrom/cm206.cint i;
i842drivers/cdrom/cm206.cfor (i=2; i<6; i++) q[i]=bcdbin(q[i]); 
i1191drivers/cdrom/cm206.cint i;
i1192drivers/cdrom/cm206.cfor (i=0; i<2; i++) {
i1193drivers/cdrom/cm206.cif (0x300 <= cm206[i] && i<= 0x370 && cm206[i] % 0x10 == 0) {
i1194drivers/cdrom/cm206.ccm206_base = cm206[i];
i1197drivers/cdrom/cm206.celse if (3 <= cm206[i] && cm206[i] <= 15) {
i1198drivers/cdrom/cm206.ccm206_irq = cm206[i];
i1225drivers/cdrom/cm206.cint i;
i1227drivers/cdrom/cm206.cfor(i=1; i<=p[0]; i++) {
i1228drivers/cdrom/cm206.cif (0x300 <= p[i] && i<= 0x370 && p[i] % 0x10 == 0) {
i1229drivers/cdrom/cm206.ccm206_base = p[i];
i1232drivers/cdrom/cm206.celse if (3 <= p[i] && p[i] <= 15) {
i1233drivers/cdrom/cm206.ccm206_irq = p[i];
i528drivers/cdrom/gscd.cint           i,dummy;
i546drivers/cdrom/gscd.cfor ( i=1,dummy=1 ; i<0xFFFF ; i++ )
i548drivers/cdrom/gscd.cdummy *= i;
i657drivers/cdrom/gscd.cint  i,j;
i668drivers/cdrom/gscd.cfor ( i=0 ; i<j ; i++ )
i737drivers/cdrom/gscd.cint  i;
i763drivers/cdrom/gscd.cfor ( i=0 ; i< size ; i++ )
i814drivers/cdrom/gscd.cint  i;
i835drivers/cdrom/gscd.cfor ( i=0 ; i<size ; i++ )
i853drivers/cdrom/gscd.cint i;
i861drivers/cdrom/gscd.cfor ( i=0 ; i<8 ; i++ )
i902drivers/cdrom/gscd.cint  i;
i908drivers/cdrom/gscd.cfor ( i=0 ; i<0x1E; i++ )
i910drivers/cdrom/gscd.cprintk ( "%c", resp[i] );
i1001drivers/cdrom/gscd.cint i;
i1025drivers/cdrom/gscd.ci = find_drives ();
i1026drivers/cdrom/gscd.cif ( i == 0 )
i1040drivers/cdrom/gscd.ci = 0;
i1041drivers/cdrom/gscd.cwhile ( drv_states[i] != 0 )
i1043drivers/cdrom/gscd.ccurr_drv_state = drv_states[i];
i1044drivers/cdrom/gscd.cprintk ( "GSCD: Reset unit %d ... ",i );
i1047drivers/cdrom/gscd.ci++;
i300drivers/cdrom/mcd.cint i, st;
i319drivers/cdrom/mcd.ci = updateToc();
i320drivers/cdrom/mcd.cif (i < 0)
i321drivers/cdrom/mcd.creturn i;  /* error reading TOC */
i336drivers/cdrom/mcd.ci = getMcdStatus(MCD_STATUS_DELAY);
i348drivers/cdrom/mcd.ci = getMcdStatus(MCD_STATUS_DELAY);
i369drivers/cdrom/mcd.ci = mcdPlay(&mcd_Play);
i370drivers/cdrom/mcd.cif (i < 0)
i406drivers/cdrom/mcd.ci = mcdPlay(&mcd_Play);
i407drivers/cdrom/mcd.cif (i < 0)
i420drivers/cdrom/mcd.ci = getMcdStatus(MCD_STATUS_DELAY);
i452drivers/cdrom/mcd.ci = mcdPlay(&mcd_Play);
i453drivers/cdrom/mcd.cif (i < 0)
i561drivers/cdrom/mcd.ci = getMcdStatus(MCD_STATUS_DELAY);
i562drivers/cdrom/mcd.cif (i < 0)
i580drivers/cdrom/mcd.ci = getMcdStatus(MCD_STATUS_DELAY);
i591drivers/cdrom/mcd.ci = getMcdStatus(MCD_STATUS_DELAY);
i610drivers/cdrom/mcd.cint i;
i611drivers/cdrom/mcd.cfor (i = 0; i < MCD_BUF_SIZ && mcd_buf_bn[i] != bn; ++i)
i613drivers/cdrom/mcd.cif (i < MCD_BUF_SIZ) {
i614drivers/cdrom/mcd.cint offs = (i * 4 + (CURRENT -> sector & 3)) * 512;
i616drivers/cdrom/mcd.cif (mcd_buf_out != i) {
i617drivers/cdrom/mcd.cmcd_buf_out = i;
i618drivers/cdrom/mcd.cif (mcd_buf_bn[i] != bn) {
i1004drivers/cdrom/mcd.cint i = 4096;
i1007drivers/cdrom/mcd.c} while ((inb(MCDPORT(1)) & MFL_STATUSorDATA) == MFL_STATUS && --i);
i1010drivers/cdrom/mcd.ci = 4096;
i1013drivers/cdrom/mcd.c} while ((inb(MCDPORT(1)) & MFL_STATUSorDATA) == MFL_STATUS && --i);
i1094drivers/cdrom/mcd.cint i;
i1095drivers/cdrom/mcd.cfor (i = 0; i < MCD_BUF_SIZ; ++i)
i1096drivers/cdrom/mcd.cmcd_buf_bn[i] = -1;
i1314drivers/cdrom/mcd.cint i;
i1320drivers/cdrom/mcd.ci = inb(MCDPORT(0)) & 0xFF;
i1321drivers/cdrom/mcd.creturn i;
i1545drivers/cdrom/mcd.cint i, px;
i1550drivers/cdrom/mcd.cfor (i = 0; i < MAX_TRACKS; i++)
i1551drivers/cdrom/mcd.cToc[i].pointIndex = 0;
i1553drivers/cdrom/mcd.ci = DiskInfo.last + 3;
i1587drivers/cdrom/mcd.ci--;
i1590drivers/cdrom/mcd.cif (i <= 0)
i1606drivers/cdrom/mcd.cfor (i = 1; i <= DiskInfo.last; i++)
i1608drivers/cdrom/mcd.ci, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex,
i1609drivers/cdrom/mcd.cToc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame,
i1610drivers/cdrom/mcd.cToc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame);
i1611drivers/cdrom/mcd.cfor (i = 100; i < 103; i++)
i1613drivers/cdrom/mcd.ci, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex,
i1614drivers/cdrom/mcd.cToc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame,
i1615drivers/cdrom/mcd.cToc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame);
i613drivers/cdrom/mcdx.cint i;
i615drivers/cdrom/mcdx.cif (-1 == (i = mcdx_transfer(
i628drivers/cdrom/mcdx.cCURRENT->sector += i;
i629drivers/cdrom/mcdx.cCURRENT->nr_sectors -= i;
i630drivers/cdrom/mcdx.cCURRENT->buffer += (i * 512);
i943drivers/cdrom/mcdx.cunsigned char i;
i946drivers/cdrom/mcdx.cfor (i = 1; i < cmdlen; i++) printk(" 0x%02x", cmd[i]);
i1021drivers/cdrom/mcdx.cint i;
i1029drivers/cdrom/mcdx.cfor (i = 0; i < MCDX_NDRIVES; i++)  {
i1030drivers/cdrom/mcdx.cif (mcdx_stuffp[i]) {
i1032drivers/cdrom/mcdx.ci, mcdx_stuffp[i]));
i1046drivers/cdrom/mcdx.cint i;
i1050drivers/cdrom/mcdx.cfor (i = 0; i < MCDX_NDRIVES; i++) {
i1052drivers/cdrom/mcdx.cstuffp = mcdx_stuffp[i];
i1061drivers/cdrom/mcdx.cmcdx_stuffp[i] = NULL;
i1247drivers/cdrom/mcdx.cint i;
i1249drivers/cdrom/mcdx.cfor (i = 100; i; i--) (void) inb((unsigned int) stuffp->rreg_status);
i574drivers/cdrom/optcd.cint i;
i596drivers/cdrom/optcd.cfor (i = 1; i <= DiskInfo.last + 1; i++)
i599drivers/cdrom/optcd.ci, Toc[i].ctrl_addr,
i600drivers/cdrom/optcd.cToc[i].track,
i601drivers/cdrom/optcd.cToc[i].pointIndex,
i602drivers/cdrom/optcd.cToc[i].trackTime.min,
i603drivers/cdrom/optcd.cToc[i].trackTime.sec,
i604drivers/cdrom/optcd.cToc[i].trackTime.frame,
i605drivers/cdrom/optcd.cToc[i].diskTime.min,
i606drivers/cdrom/optcd.cToc[i].diskTime.sec,
i607drivers/cdrom/optcd.cToc[i].diskTime.frame);
i608drivers/cdrom/optcd.cfor (i = 100; i < 103; i++)
i611drivers/cdrom/optcd.ci, Toc[i].ctrl_addr,
i612drivers/cdrom/optcd.cToc[i].track,
i613drivers/cdrom/optcd.cToc[i].pointIndex,
i614drivers/cdrom/optcd.cToc[i].trackTime.min,
i615drivers/cdrom/optcd.cToc[i].trackTime.sec,
i616drivers/cdrom/optcd.cToc[i].trackTime.frame,
i617drivers/cdrom/optcd.cToc[i].diskTime.min,
i618drivers/cdrom/optcd.cToc[i].diskTime.sec,
i619drivers/cdrom/optcd.cToc[i].diskTime.frame);
i656drivers/cdrom/optcd.cint i;
i660drivers/cdrom/optcd.cfor (i = 0; i < OPT_BUF_SIZ; i++)
i661drivers/cdrom/optcd.copt_buf_bn[i] = OPT_NOBUF;
i677drivers/cdrom/optcd.cint i, offs, nr_sectors;
i678drivers/cdrom/optcd.cfor (i = 0; i < OPT_BUF_SIZ && opt_buf_bn[i] != bn; ++i);
i680drivers/cdrom/optcd.cprintk("optcd: found %d\n", i);
i682drivers/cdrom/optcd.cif (i >= OPT_BUF_SIZ) {
i686drivers/cdrom/optcd.coffs = (i * 4 + (CURRENT -> sector & 3)) * 512;
i688drivers/cdrom/optcd.cif (opt_buf_out != i) {
i689drivers/cdrom/optcd.copt_buf_out = i;
i690drivers/cdrom/optcd.cif (opt_buf_bn[i] != bn) {
i1346drivers/cdrom/optcd.cint count, i, ch;
i1352drivers/cdrom/optcd.cfor (i = 0, ch = -1; count > 0; count--) {
i1355drivers/cdrom/optcd.cif (i < 99)
i1356drivers/cdrom/optcd.cdevname[i++] = ch;
i1358drivers/cdrom/optcd.cdevname[i] = '\0';
i1515drivers/cdrom/optcd.cshort i = -1;
i1534drivers/cdrom/optcd.ci = 0;
i1538drivers/cdrom/optcd.ci = 1;
i1545drivers/cdrom/optcd.creturn(i); /* -> not detected: possibly incorrect conclusion */
i1549drivers/cdrom/optcd.ci = 0;
i1551drivers/cdrom/optcd.ci = 1;
i1555drivers/cdrom/optcd.creturn(i);
i1591drivers/cdrom/optcd.cu_char i;
i1647drivers/cdrom/optcd.ci = ISP16_IN(ISP16_DRIVE_SET_PORT) & ISP16_DRIVE_SET_MASK;  /* clear some bits */
i1648drivers/cdrom/optcd.cISP16_OUT( ISP16_DRIVE_SET_PORT, i|drive_type );
i1655drivers/cdrom/optcd.ci = ISP16_IN(ISP16_IO_SET_PORT) & ISP16_IO_SET_MASK;  /* keep some bits */
i1656drivers/cdrom/optcd.cISP16_OUT( ISP16_IO_SET_PORT, i|base_code|irq_code|dma_code );
i728drivers/cdrom/sbpcd.cstatic void mark_timeout_delay(u_long i)
i736drivers/cdrom/sbpcd.cstatic void mark_timeout_data(u_long i)
i745drivers/cdrom/sbpcd.cstatic void mark_timeout_audio(u_long i)
i821drivers/cdrom/sbpcd.cstatic INLINE u_char swap_nibbles(u_char i)
i823drivers/cdrom/sbpcd.creturn ((i<<4)|(i>>4));
i826drivers/cdrom/sbpcd.cstatic INLINE u_char byt2bcd(u_char i)
i828drivers/cdrom/sbpcd.creturn (((i/10)<<4)+i%10);
i839drivers/cdrom/sbpcd.cint i;
i842drivers/cdrom/sbpcd.ci=(msf.c[2] * CD_SECS + msf.c[1]) * CD_FRAMES + msf.c[0] - CD_MSF_OFFSET;
i843drivers/cdrom/sbpcd.cif (i<0) return (0);
i844drivers/cdrom/sbpcd.creturn (i);
i852drivers/cdrom/sbpcd.cint i;
i854drivers/cdrom/sbpcd.ci=(msf[0] * CD_SECS + msf[1]) * CD_FRAMES + msf[2] - CD_MSF_OFFSET;
i855drivers/cdrom/sbpcd.cif (i<0) return (0);
i856drivers/cdrom/sbpcd.creturn (i);
i897drivers/cdrom/sbpcd.cint i;
i899drivers/cdrom/sbpcd.cfor (i=0;i<10;i++) drvcmd[i]=0;
i905drivers/cdrom/sbpcd.cint i;
i909drivers/cdrom/sbpcd.cfor (i=maxtim_data;i!=0;i--) inb(CDi_status);
i912drivers/cdrom/sbpcd.cfor (i=maxtim02;i!=0;i--) inb(CDi_status);
i916drivers/cdrom/sbpcd.cfor (i=maxtim_data;i!=0;i--) inb(CDi_status);
i923drivers/cdrom/sbpcd.cint i,j;
i926drivers/cdrom/sbpcd.cfor(timeout = jiffies + 10*HZ, i=maxtim_data; timeout > jiffies; )
i928drivers/cdrom/sbpcd.cfor ( ;i!=0;i--)
i936drivers/cdrom/sbpcd.ci = 1;
i940drivers/cdrom/sbpcd.cfor(i=maxtim16;i!=0;i--)
i948drivers/cdrom/sbpcd.cfor(timeout = jiffies + 10*HZ, i=maxtim_data; timeout > jiffies; )
i950drivers/cdrom/sbpcd.cfor ( ;i!=0;i--)
i958drivers/cdrom/sbpcd.ci = 1;
i969drivers/cdrom/sbpcd.cint i;
i971drivers/cdrom/sbpcd.ci=inb(CDi_status);
i972drivers/cdrom/sbpcd.cif (i&s_not_data_ready) return (0);
i978drivers/cdrom/sbpcd.cint i;
i980drivers/cdrom/sbpcd.ci=inb(CDi_status);
i981drivers/cdrom/sbpcd.cif (i&s_not_result_ready) return (0);
i987drivers/cdrom/sbpcd.cint i;
i989drivers/cdrom/sbpcd.ci=inb(CDi_status);
i990drivers/cdrom/sbpcd.cif (i&s_attention) return (1);
i998drivers/cdrom/sbpcd.cint i,j,st=0;
i1006drivers/cdrom/sbpcd.cfor (i=0;i<response_count;i++)
i1015drivers/cdrom/sbpcd.cmsg(DBG_SEQ,"ResponseInfo: not_result_ready (got %d of %d bytes).\n", i, response_count);
i1018drivers/cdrom/sbpcd.cinfobuf[i]=inb(CDi_info);
i1022drivers/cdrom/sbpcd.cfor (i=0,timeout=jiffies+HZ;i<response_count;i++) 
i1036drivers/cdrom/sbpcd.cinfobuf[i]=inb(CDi_info);
i1042drivers/cdrom/sbpcd.cinfobuf[i++]=inb(CDi_info);
i1044drivers/cdrom/sbpcd.cj=i-response_count;
i1047drivers/cdrom/sbpcd.cfor (j=0;j<i;j++)
i1050drivers/cdrom/sbpcd.cmsg(DBG_CMD,"ResponseInfo:%s (%d,%d)\n",msgbuf,response_count,i);
i1051drivers/cdrom/sbpcd.cj=response_count-i;
i1053drivers/cdrom/sbpcd.celse return (i);
i1109drivers/cdrom/sbpcd.cint i;
i1117drivers/cdrom/sbpcd.ci=cmd_out_T();
i1118drivers/cdrom/sbpcd.cif (i>=0) i=infobuf[0];
i1121drivers/cdrom/sbpcd.cmsg(DBG_TEA,"get_state_T error %d\n", i);
i1122drivers/cdrom/sbpcd.creturn (i);
i1124drivers/cdrom/sbpcd.cif (i>=0)
i1154drivers/cdrom/sbpcd.cint i,j;
i1170drivers/cdrom/sbpcd.ci=inb(CDi_status);
i1171drivers/cdrom/sbpcd.cif (!(i&s_not_result_ready)) break;
i1184drivers/cdrom/sbpcd.ci=inb(CDi_status);
i1185drivers/cdrom/sbpcd.cif (!(i&s_not_result_ready)) break;
i1200drivers/cdrom/sbpcd.ci=inb(CDi_info);
i1201drivers/cdrom/sbpcd.cmsg(DBG_STA,"ResponseStatus: response %02X.\n", i);
i1202drivers/cdrom/sbpcd.cEvaluateStatus(i);
i1206drivers/cdrom/sbpcd.cmsg(DBG_STA,"status_bits=%02X, i=%02X\n",D_S[d].status_bits,i);
i1210drivers/cdrom/sbpcd.creturn (i);
i1216drivers/cdrom/sbpcd.cint i;
i1224drivers/cdrom/sbpcd.cif (!fam0L_drive) for (i=0;i<6;i++) OUT(CDo_command,0);
i1230drivers/cdrom/sbpcd.cint i;
i1260drivers/cdrom/sbpcd.ci=cmd_out();
i1262drivers/cdrom/sbpcd.cmsg(DBG_ERR,"cc_ReadError: cmd_out(CMDx_READ_ERR) returns %d (%02X)\n",i,i);
i1263drivers/cdrom/sbpcd.cif (i<0) return (i);
i1264drivers/cdrom/sbpcd.cif (fam0_drive) i=1;
i1265drivers/cdrom/sbpcd.celse i=2;
i1266drivers/cdrom/sbpcd.cD_S[d].error_byte=infobuf[i];
i1267drivers/cdrom/sbpcd.cmsg(DBG_ERR,"cc_ReadError: infobuf[%d] is %d (%02X)\n",i,D_S[d].error_byte,D_S[d].error_byte);
i1268drivers/cdrom/sbpcd.ci=sta2err(infobuf[i]);
i1269drivers/cdrom/sbpcd.creturn (i);
i1278drivers/cdrom/sbpcd.cint i, j, l, ntries;
i1284drivers/cdrom/sbpcd.cfor (i=0;i<10;i++) sprintf(&msgbuf[i*3]," %02X",drvcmd[i]);
i1285drivers/cdrom/sbpcd.cmsgbuf[i*3]=0;
i1290drivers/cdrom/sbpcd.ci=inb(CDi_status);
i1291drivers/cdrom/sbpcd.cif (!(i&s_not_result_ready))
i1295drivers/cdrom/sbpcd.ci=inb(CDi_status);
i1299drivers/cdrom/sbpcd.cwhile (!(i&s_not_result_ready));
i1301drivers/cdrom/sbpcd.cfor (i=0;i<10;i++) OUT(CDo_command,drvcmd[i]);
i1309drivers/cdrom/sbpcd.ci=inb(CDi_status);
i1310drivers/cdrom/sbpcd.cif (!(i&s_not_data_ready)) /* f.e. CMDT_DISKINFO */
i1320drivers/cdrom/sbpcd.ci=inb(CDi_status);
i1322drivers/cdrom/sbpcd.cwhile (!(i&s_not_data_ready));
i1333drivers/cdrom/sbpcd.ci=inb(CDi_data);
i1335drivers/cdrom/sbpcd.ci=inb(CDi_status);
i1337drivers/cdrom/sbpcd.cwhile (!(i&s_not_data_ready));
i1342drivers/cdrom/sbpcd.ci=inb(CDi_status);
i1343drivers/cdrom/sbpcd.cif (!(i&s_not_result_ready))
i1350drivers/cdrom/sbpcd.ci=inb(CDi_status);
i1352drivers/cdrom/sbpcd.cwhile (!(i&s_not_result_ready));
i1392drivers/cdrom/sbpcd.cint i=0;
i1398drivers/cdrom/sbpcd.cfor (i=0;i<7;i++)
i1399drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", drvcmd[i]);
i1400drivers/cdrom/sbpcd.cmsgbuf[i*3]=0;
i1403drivers/cdrom/sbpcd.cfor (i=0;i<7;i++) OUT(CDo_command,drvcmd[i]);
i1415drivers/cdrom/sbpcd.celse i=ResponseInfo();
i1416drivers/cdrom/sbpcd.cif (i<0) return (i);
i1421drivers/cdrom/sbpcd.ci=CDi_stat_loop();
i1422drivers/cdrom/sbpcd.cif ((i<0)||!(i&s_attention)) return (-8);
i1434drivers/cdrom/sbpcd.ci=ResponseStatus();
i1436drivers/cdrom/sbpcd.cif (i<0) return (i);
i1441drivers/cdrom/sbpcd.cif ((flags_cmd_out&f_bit1)&&(i&p_success)) goto LOC_232;
i1450drivers/cdrom/sbpcd.ci=cc_ReadError();
i1452drivers/cdrom/sbpcd.cmsg(DBG_000,"cmd_out: cc_ReadError=%d\n", i);
i1453drivers/cdrom/sbpcd.creturn (i);
i1458drivers/cdrom/sbpcd.cint i;
i1505drivers/cdrom/sbpcd.ci=cmd_out();
i1506drivers/cdrom/sbpcd.creturn (i);
i1511drivers/cdrom/sbpcd.cint i;
i1539drivers/cdrom/sbpcd.ci=cmd_out();
i1541drivers/cdrom/sbpcd.creturn (i);
i1546drivers/cdrom/sbpcd.cint i;
i1573drivers/cdrom/sbpcd.ci=cmd_out();
i1574drivers/cdrom/sbpcd.creturn (i);
i1579drivers/cdrom/sbpcd.cint i;
i1585drivers/cdrom/sbpcd.ci=cmd_out_T();
i1586drivers/cdrom/sbpcd.creturn (i);
i1591drivers/cdrom/sbpcd.cint i;
i1605drivers/cdrom/sbpcd.ci=cmd_out_T();
i1606drivers/cdrom/sbpcd.creturn (i);
i1611drivers/cdrom/sbpcd.cint i, j;
i1613drivers/cdrom/sbpcd.ci=cc_get_mode_T();
i1614drivers/cdrom/sbpcd.cif (i<0) return (i);
i1615drivers/cdrom/sbpcd.cfor (i=0;i<10;i++)
i1616drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
i1617drivers/cdrom/sbpcd.cmsgbuf[i*3]=0;
i1629drivers/cdrom/sbpcd.ci=cc_get_mode_T();
i1630drivers/cdrom/sbpcd.cfor (i=0;i<10;i++)
i1631drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
i1632drivers/cdrom/sbpcd.cmsgbuf[i*3]=0;
i1639drivers/cdrom/sbpcd.cint i;
i1672drivers/cdrom/sbpcd.ci=cmd_out();
i1673drivers/cdrom/sbpcd.creturn (i);
i1678drivers/cdrom/sbpcd.cint i;
i1775drivers/cdrom/sbpcd.ci=channel1;
i1777drivers/cdrom/sbpcd.cchannel0=i;
i1778drivers/cdrom/sbpcd.ci=volume1;
i1780drivers/cdrom/sbpcd.cvolume0=i;
i1828drivers/cdrom/sbpcd.ci=cc_prep_mode_T();
i1829drivers/cdrom/sbpcd.cif (i<0) return (i);
i1834drivers/cdrom/sbpcd.ci=cmd_out();
i1835drivers/cdrom/sbpcd.cif (i<0) return (i);
i1843drivers/cdrom/sbpcd.cint i;
i1849drivers/cdrom/sbpcd.ci=cmd_out();
i1850drivers/cdrom/sbpcd.creturn (i);
i1855drivers/cdrom/sbpcd.cint i;
i1865drivers/cdrom/sbpcd.ci=cmd_out();
i1871drivers/cdrom/sbpcd.ci=cmd_out();
i1879drivers/cdrom/sbpcd.cfor (i=1;i<10;i++) OUT(CDo_command,0);
i1891drivers/cdrom/sbpcd.ci=GetStatus();
i1892drivers/cdrom/sbpcd.cif (i<0) return i;
i1900drivers/cdrom/sbpcd.cint i, speed;
i1909drivers/cdrom/sbpcd.ci=cc_SetSpeed(speed,0,0);
i1910drivers/cdrom/sbpcd.creturn (i);
i1915drivers/cdrom/sbpcd.cint i;
i1917drivers/cdrom/sbpcd.ci=cc_DriveReset();
i1918drivers/cdrom/sbpcd.cif (i<0) return (-22);
i1921drivers/cdrom/sbpcd.ci=GetStatus();
i1922drivers/cdrom/sbpcd.cif ((i<0)&&(i!=-615)) return (-2); /* i!=-615 is from sta2err */
i1932drivers/cdrom/sbpcd.ci=DiskInfo();
i1933drivers/cdrom/sbpcd.cif (i<0) return (-23);
i1940drivers/cdrom/sbpcd.cint i, j, n;
i1948drivers/cdrom/sbpcd.ci=msf2blk(pos_audio_start);
i1949drivers/cdrom/sbpcd.cn=msf2blk(pos_audio_end)+1-i;
i1950drivers/cdrom/sbpcd.cdrvcmd[1]=(i>>16)&0x00FF;
i1951drivers/cdrom/sbpcd.cdrvcmd[2]=(i>>8)&0x00FF;
i1952drivers/cdrom/sbpcd.cdrvcmd[3]=i&0x00FF;
i1992drivers/cdrom/sbpcd.ci=cmd_out();
i1993drivers/cdrom/sbpcd.creturn (i);
i1998drivers/cdrom/sbpcd.cint i;
i2031drivers/cdrom/sbpcd.ci=cmd_out();
i2032drivers/cdrom/sbpcd.creturn (i);
i2037drivers/cdrom/sbpcd.cint i;
i2067drivers/cdrom/sbpcd.ci=cmd_out();
i2069drivers/cdrom/sbpcd.creturn (i);
i2075drivers/cdrom/sbpcd.cint i,j;
i2080drivers/cdrom/sbpcd.ci=cc_LockDoor(0);
i2084drivers/cdrom/sbpcd.cwhile ((i<0)&&(j));
i2085drivers/cdrom/sbpcd.cif (i<0)
i2095drivers/cdrom/sbpcd.cint i,j;
i2100drivers/cdrom/sbpcd.ci=cc_LockDoor(1);
i2104drivers/cdrom/sbpcd.cwhile ((i<0)&&(j));
i2111drivers/cdrom/sbpcd.ci=cc_LockDoor(1);
i2115drivers/cdrom/sbpcd.cwhile ((i<0)&&(j));
i2117drivers/cdrom/sbpcd.creturn (i);
i2122drivers/cdrom/sbpcd.cint i;
i2153drivers/cdrom/sbpcd.ci=cmd_out();
i2155drivers/cdrom/sbpcd.creturn (i);
i2160drivers/cdrom/sbpcd.cint i,j;
i2199drivers/cdrom/sbpcd.ci=cmd_out();
i2200drivers/cdrom/sbpcd.cif (i<0) return (i);
i2201drivers/cdrom/sbpcd.cfor (i=0;i<response_count;i++)
i2203drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
i2204drivers/cdrom/sbpcd.cmsgbuf[i*3]=0;
i2220drivers/cdrom/sbpcd.cif (fam0L_drive) i=5;
i2221drivers/cdrom/sbpcd.celse if (fam12_drive) i=4;
i2222drivers/cdrom/sbpcd.celse if (famT_drive) i=8;
i2223drivers/cdrom/sbpcd.cD_S[d].SubQ_run_tot=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */
i2224drivers/cdrom/sbpcd.ci=7;
i2225drivers/cdrom/sbpcd.cif (fam0L_drive) i=9;
i2226drivers/cdrom/sbpcd.celse if (fam12_drive) i=7;
i2227drivers/cdrom/sbpcd.celse if (famT_drive) i=4;
i2228drivers/cdrom/sbpcd.cD_S[d].SubQ_run_trk=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */
i2229drivers/cdrom/sbpcd.cD_S[d].SubQ_whatisthis=infobuf[i+3];
i2236drivers/cdrom/sbpcd.cint i;
i2260drivers/cdrom/sbpcd.ci=cmd_out();
i2261drivers/cdrom/sbpcd.cif (i<0) return (i);
i2262drivers/cdrom/sbpcd.ci=0;
i2264drivers/cdrom/sbpcd.cif (fam1_drive) D_S[d].sense_byte=infobuf[i++];
i2269drivers/cdrom/sbpcd.ci=2;
i2271drivers/cdrom/sbpcd.cD_S[d].frame_size=make16(infobuf[i],infobuf[i+1]);
i2272drivers/cdrom/sbpcd.cfor (i=0;i<response_count;i++)
i2273drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
i2274drivers/cdrom/sbpcd.cmsgbuf[i*3]=0;
i2284drivers/cdrom/sbpcd.cint i;
i2322drivers/cdrom/sbpcd.ci=cmd_out();
i2323drivers/cdrom/sbpcd.cif (i<0) return (i);
i2330drivers/cdrom/sbpcd.cint i;
i2365drivers/cdrom/sbpcd.ci=cc_get_mode_T();
i2366drivers/cdrom/sbpcd.cif (i<0) return (i);
i2370drivers/cdrom/sbpcd.ci=cmd_out();
i2371drivers/cdrom/sbpcd.cif (i<0) return (i);
i2464drivers/cdrom/sbpcd.cint i, j;
i2490drivers/cdrom/sbpcd.ci=cmd_out();
i2491drivers/cdrom/sbpcd.cif (i>=0) break;
i2492drivers/cdrom/sbpcd.cmsg(DBG_000,"cc_ReadCapacity: cmd_out: err %d\n", i);
i2495drivers/cdrom/sbpcd.cif (j==0) return (i);
i2506drivers/cdrom/sbpcd.cint i;
i2546drivers/cdrom/sbpcd.ci=cmd_out();
i2547drivers/cdrom/sbpcd.cif (i<0) return (i);
i2575drivers/cdrom/sbpcd.ci=cmd_out();
i2576drivers/cdrom/sbpcd.cif (i<0) return (i);
i2588drivers/cdrom/sbpcd.ci=cmd_out();
i2589drivers/cdrom/sbpcd.cif (i<0) return (i);
i2620drivers/cdrom/sbpcd.cint i;
i2659drivers/cdrom/sbpcd.ci=cmd_out();
i2660drivers/cdrom/sbpcd.cif (i<0) return (i);
i2664drivers/cdrom/sbpcd.ci=1;
i2666drivers/cdrom/sbpcd.celse if (fam2_drive) i=0;
i2669drivers/cdrom/sbpcd.ci=5;
i2671drivers/cdrom/sbpcd.cD_S[d].TocEnt_ctl_adr=swap_nibbles(infobuf[i++]);
i2674drivers/cdrom/sbpcd.cD_S[d].TocEnt_number=infobuf[i++];
i2675drivers/cdrom/sbpcd.cD_S[d].TocEnt_format=infobuf[i];
i2678drivers/cdrom/sbpcd.cif (fam1_drive) i=4;
i2679drivers/cdrom/sbpcd.celse if (fam0L_drive) i=5;
i2680drivers/cdrom/sbpcd.celse if (fam2_drive) i=2;
i2681drivers/cdrom/sbpcd.celse if (famT_drive) i=9;
i2682drivers/cdrom/sbpcd.cD_S[d].TocEnt_address=make32(make16(0,infobuf[i]),
i2683drivers/cdrom/sbpcd.cmake16(infobuf[i+1],infobuf[i+2]));
i2693drivers/cdrom/sbpcd.cint i;
i2706drivers/cdrom/sbpcd.ci=cmd_out();
i2707drivers/cdrom/sbpcd.creturn (i);
i2712drivers/cdrom/sbpcd.cint i;
i2716drivers/cdrom/sbpcd.cfor (i=0;i<7;i++)
i2718drivers/cdrom/sbpcd.cif (fam1_drive) D_S[d].UPC_buf[i]=swap_nibbles(*p++);
i2721drivers/cdrom/sbpcd.cD_S[d].UPC_buf[i]=((*p++)<<4)&0xFF;
i2722drivers/cdrom/sbpcd.cD_S[d].UPC_buf[i] |= *p++;
i2739drivers/cdrom/sbpcd.cint i;
i2786drivers/cdrom/sbpcd.ci=cmd_out();
i2787drivers/cdrom/sbpcd.cif (i<0)
i2789drivers/cdrom/sbpcd.cmsg(DBG_000,"cc_ReadUPC cmd_out: err %d\n", i);
i2790drivers/cdrom/sbpcd.creturn (i);
i2796drivers/cdrom/sbpcd.ci=cc_ReadPacket();
i2797drivers/cdrom/sbpcd.cif (i<0)
i2799drivers/cdrom/sbpcd.cmsg(DBG_000,"cc_ReadUPC ReadPacket: err %d\n", i);
i2800drivers/cdrom/sbpcd.creturn (i);
i2806drivers/cdrom/sbpcd.cfor (i=0;i<(fam1_drive?8:16);i++)
i2809drivers/cdrom/sbpcd.cchecksum |= infobuf[i];
i2811drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
i2813drivers/cdrom/sbpcd.cmsgbuf[i*3]=0;
i2820drivers/cdrom/sbpcd.cif (fam1_drive) i=0;
i2821drivers/cdrom/sbpcd.celse i=2;
i2822drivers/cdrom/sbpcd.cif ((infobuf[i]&0x80)!=0)
i2824drivers/cdrom/sbpcd.cconvert_UPC(&infobuf[i]);
i2827drivers/cdrom/sbpcd.cfor (i=0;i<7;i++)
i2828drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", D_S[d].UPC_buf[i]);
i2829drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " (%02X)", D_S[d].UPC_ctl_adr);
i2830drivers/cdrom/sbpcd.cmsgbuf[i*3+5]=0;
i2838drivers/cdrom/sbpcd.cint i;
i2850drivers/cdrom/sbpcd.ci=cmd_out();
i2851drivers/cdrom/sbpcd.cif (i<0) return (i);
i2866drivers/cdrom/sbpcd.ci=cmd_out();
i2867drivers/cdrom/sbpcd.cif (i<0) return (i);
i2879drivers/cdrom/sbpcd.ci=cmd_out();
i2880drivers/cdrom/sbpcd.cif (i<0) return (i);
i2890drivers/cdrom/sbpcd.cfor (i=0;i<response_count;i++)
i2891drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
i2892drivers/cdrom/sbpcd.cmsgbuf[i*3]=0;
i2906drivers/cdrom/sbpcd.cint i;
i2926drivers/cdrom/sbpcd.ci=cmd_out(); /* which buffer to use? */
i2927drivers/cdrom/sbpcd.creturn (i);
i2933drivers/cdrom/sbpcd.cint i=0;
i2938drivers/cdrom/sbpcd.cfor (i=0;i<=1000;i++) printk(".");
i2952drivers/cdrom/sbpcd.ci=inb(CDi_status);
i2981drivers/cdrom/sbpcd.cint i;
i2989drivers/cdrom/sbpcd.ci=do_cmd(f_putcmd|f_lopsta|f_getsta|f_ResponseStatus);
i2994drivers/cdrom/sbpcd.ci=do_cmd(f_putcmd);
i2997drivers/cdrom/sbpcd.creturn (i);
i3003drivers/cdrom/sbpcd.cint i;
i3009drivers/cdrom/sbpcd.cfor (i=0;i<12;i++)
i3010drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
i3011drivers/cdrom/sbpcd.cmsgbuf[i*3]=0;
i3013drivers/cdrom/sbpcd.cfor (i=0;i<12;i++)
i3014drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %c ", infobuf[i]);
i3015drivers/cdrom/sbpcd.cmsgbuf[i*3]=0;
i3021drivers/cdrom/sbpcd.cint i, j, l;
i3034drivers/cdrom/sbpcd.ci=cmd_out();
i3035drivers/cdrom/sbpcd.cif (i<0) msg(DBG_INI,"CMD0_READERR returns %d (ok anyway).\n",i);
i3038drivers/cdrom/sbpcd.cfor (i=0;i<12;i++) infobuf[i]=0;
i3042drivers/cdrom/sbpcd.ci=cmd_out();
i3043drivers/cdrom/sbpcd.cif (i<-1) msg(DBG_INI,"CMD0_READ_VER returns %d\n",i);
i3044drivers/cdrom/sbpcd.cif (i==-11) teac_possible++;
i3046drivers/cdrom/sbpcd.cfor (i=0;i<12;i++) j+=infobuf[i];
i3049drivers/cdrom/sbpcd.cfor (i=0;i<12;i++)
i3050drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
i3051drivers/cdrom/sbpcd.cmsgbuf[i*3]=0;
i3054drivers/cdrom/sbpcd.cfor (i=0;i<12;i++)
i3055drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %c ", infobuf[i]);
i3056drivers/cdrom/sbpcd.cmsgbuf[i*3]=0;
i3060drivers/cdrom/sbpcd.cfor (i=0;i<4;i++) if (infobuf[i]!=family1[i]) break;
i3061drivers/cdrom/sbpcd.cif (i==4)
i3067drivers/cdrom/sbpcd.cD_S[d].drive_model[4]=infobuf[i++];
i3068drivers/cdrom/sbpcd.cD_S[d].drive_model[5]=infobuf[i++];
i3074drivers/cdrom/sbpcd.cfor (i=0;i<8;i++) if (infobuf[i]!=family0[i]) break;
i3075drivers/cdrom/sbpcd.cif (i==8)
i3089drivers/cdrom/sbpcd.cfor (i=0;i<8;i++) if (infobuf[i]!=familyL[i]) break;
i3090drivers/cdrom/sbpcd.cif (i==8)
i3105drivers/cdrom/sbpcd.ci=cmd_out();
i3106drivers/cdrom/sbpcd.cif (i<0) msg(DBG_INI,"CMD2_READERR returns %d (ok anyway).\n",i);
i3107drivers/cdrom/sbpcd.cif (i<0) msg(DBG_000,"CMD2_READERR returns %d (ok anyway).\n",i);
i3110drivers/cdrom/sbpcd.cfor (i=0;i<12;i++) infobuf[i]=0;
i3120drivers/cdrom/sbpcd.ci=cmd_out();
i3121drivers/cdrom/sbpcd.cif (i<0) msg(DBG_INI,"CMD2_READ_VER returns %d\n",i);
i3122drivers/cdrom/sbpcd.cif (i==-7) teac_possible++;
i3124drivers/cdrom/sbpcd.cfor (i=0;i<12;i++) j+=infobuf[i];
i3127drivers/cdrom/sbpcd.cfor (i=0;i<12;i++)
i3128drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
i3129drivers/cdrom/sbpcd.cmsgbuf[i*3]=0;
i3131drivers/cdrom/sbpcd.cfor (i=0;i<12;i++)
i3132drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %c ", infobuf[i]);
i3133drivers/cdrom/sbpcd.cmsgbuf[i*3]=0;
i3136drivers/cdrom/sbpcd.cif (i>=0)
i3138drivers/cdrom/sbpcd.cfor (i=0;i<5;i++) if (infobuf[i]!=family2[i]) break;
i3139drivers/cdrom/sbpcd.cif (i==5)
i3146drivers/cdrom/sbpcd.cD_S[d].drive_model[5]=infobuf[i++];
i3147drivers/cdrom/sbpcd.cD_S[d].drive_model[6]=infobuf[i++];
i3168drivers/cdrom/sbpcd.cfor (i=0;i<9;i++) OUT(CDo_command,0);
i3173drivers/cdrom/sbpcd.ci=inb(CDi_status);
i3174drivers/cdrom/sbpcd.cmsg(DBG_TEA,"TEAC CDi_status: %02X.\n",i);
i3176drivers/cdrom/sbpcd.cif (i&s_not_result_ready) continue; /* drive not present or ready */
i3178drivers/cdrom/sbpcd.ci=inb(CDi_info);
i3179drivers/cdrom/sbpcd.cmsg(DBG_TEA,"TEAC CDi_info: %02X.\n",i);
i3180drivers/cdrom/sbpcd.cif (i==0x55) break; /* drive found */
i3182drivers/cdrom/sbpcd.cif (i==0x55) break; /* drive found */
i3184drivers/cdrom/sbpcd.cif (i==0x55) /* drive found */
i3192drivers/cdrom/sbpcd.cfor (i=0;i<12;i++) infobuf[i]=0;
i3193drivers/cdrom/sbpcd.ci=cmd_out_T();
i3194drivers/cdrom/sbpcd.cif (i!=0) msg(DBG_TEA,"cmd_out_T(CMDT_READ_VER) returns %d.\n",i);
i3195drivers/cdrom/sbpcd.cfor (i=1;i<6;i++) if (infobuf[i]!=familyT[i-1]) break;
i3196drivers/cdrom/sbpcd.cif (i==6)
i3213drivers/cdrom/sbpcd.cfor (j=0;j<4;j++) D_S[d].firmware_version[j]=infobuf[i+j];
i3283drivers/cdrom/sbpcd.cstatic void switch_drive(int i)
i3285drivers/cdrom/sbpcd.cd=i;
i3287drivers/cdrom/sbpcd.cmsg(DBG_DID,"drive %d (ID=%d) activated.\n", i, D_S[d].drv_id);
i3299drivers/cdrom/sbpcd.cint i, j, k;
i3312drivers/cdrom/sbpcd.cfor (i=10;i>0;i--) OUT(port+0,0);
i3316drivers/cdrom/sbpcd.cfor (i=10000;i>0;i--)
i3323drivers/cdrom/sbpcd.cfor (i=0;i<N_RESPO;i++)
i3324drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", response[i]);
i3325drivers/cdrom/sbpcd.cmsgbuf[i*3]=0;
i3328drivers/cdrom/sbpcd.cfor (i=10;i>0;i--) OUT(port+0,0);
i3332drivers/cdrom/sbpcd.cfor (i=10000;i>0;i--)
i3339drivers/cdrom/sbpcd.cfor (i=0;i<N_RESPO;i++)
i3340drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", response[i]);
i3341drivers/cdrom/sbpcd.cmsgbuf[i*3]=0;
i3352drivers/cdrom/sbpcd.cfor (i=10;i>0;i--) OUT(port+0,0);
i3356drivers/cdrom/sbpcd.cfor (i=1000000;i>0;i--)
i3363drivers/cdrom/sbpcd.cfor (i=0;i<N_RESPO;i++)
i3364drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", response[i]);
i3365drivers/cdrom/sbpcd.cmsgbuf[i*3]=0;
i3369drivers/cdrom/sbpcd.cfor (i=10;i>0;i--) OUT(port+0,0);
i3373drivers/cdrom/sbpcd.cfor (i=1000000;i>0;i--)
i3380drivers/cdrom/sbpcd.cfor (i=0;i<N_RESPO;i++)
i3381drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", response[i]);
i3382drivers/cdrom/sbpcd.cmsgbuf[i*3]=0;
i3401drivers/cdrom/sbpcd.cint i, j;
i3413drivers/cdrom/sbpcd.ci=check_version();
i3414drivers/cdrom/sbpcd.cif (i<0) msg(DBG_INI,"check_version returns %d.\n",i);
i3557drivers/cdrom/sbpcd.cint i;
i3559drivers/cdrom/sbpcd.ci=msf2blk(D_S[d].pos_audio_end)-1;
i3560drivers/cdrom/sbpcd.cif (i<0) return (-1);
i3561drivers/cdrom/sbpcd.ci=cc_Seek(i,0);
i3562drivers/cdrom/sbpcd.creturn (i);
i3568drivers/cdrom/sbpcd.cint i, j;
i3573drivers/cdrom/sbpcd.ci=cc_ReadTocEntry(j);
i3574drivers/cdrom/sbpcd.cif (i<0)
i3576drivers/cdrom/sbpcd.cmsg(DBG_INF,"cc_ReadTocEntry(%d) returns %d.\n",j,i);
i3577drivers/cdrom/sbpcd.creturn (i);
i3599drivers/cdrom/sbpcd.cint i, j;
i3609drivers/cdrom/sbpcd.ci=SetSpeed();
i3610drivers/cdrom/sbpcd.cif (i<0)
i3612drivers/cdrom/sbpcd.cmsg(DBG_INF,"DiskInfo: SetSpeed returns %d\n", i);
i3615drivers/cdrom/sbpcd.ci=cc_ModeSense();
i3616drivers/cdrom/sbpcd.cif (i<0)
i3618drivers/cdrom/sbpcd.cmsg(DBG_INF,"DiskInfo: cc_ModeSense returns %d\n", i);
i3621drivers/cdrom/sbpcd.ci=cc_ReadCapacity();
i3622drivers/cdrom/sbpcd.cif (i>=0) break;
i3623drivers/cdrom/sbpcd.cmsg(DBG_INF,"DiskInfo: ReadCapacity #%d returns %d\n", j, i);
i3624drivers/cdrom/sbpcd.ci=cc_DriveReset();
i3628drivers/cdrom/sbpcd.ci=cc_ReadTocDescr();
i3629drivers/cdrom/sbpcd.cif (i<0)
i3631drivers/cdrom/sbpcd.cmsg(DBG_INF,"DiskInfo: ReadTocDescr returns %d\n", i);
i3632drivers/cdrom/sbpcd.creturn (i);
i3634drivers/cdrom/sbpcd.ci=ReadToC();
i3635drivers/cdrom/sbpcd.cif (i<0)
i3637drivers/cdrom/sbpcd.cmsg(DBG_INF,"DiskInfo: ReadToC returns %d\n", i);
i3638drivers/cdrom/sbpcd.creturn (i);
i3640drivers/cdrom/sbpcd.ci=cc_CheckMultiSession();
i3641drivers/cdrom/sbpcd.cif (i<0)
i3643drivers/cdrom/sbpcd.cmsg(DBG_INF,"DiskInfo: cc_CheckMultiSession returns %d\n", i);
i3644drivers/cdrom/sbpcd.creturn (i);
i3648drivers/cdrom/sbpcd.ci=cc_ReadTocEntry(D_S[d].n_first_track);
i3649drivers/cdrom/sbpcd.cif (i<0)
i3651drivers/cdrom/sbpcd.cmsg(DBG_INF,"DiskInfo: cc_ReadTocEntry(1) returns %d\n", i);
i3652drivers/cdrom/sbpcd.creturn (i);
i3654drivers/cdrom/sbpcd.ci=cc_ReadUPC();
i3655drivers/cdrom/sbpcd.cif (i<0) msg(DBG_INF,"DiskInfo: cc_ReadUPC returns %d\n", i);
i3674drivers/cdrom/sbpcd.cint i;
i3678drivers/cdrom/sbpcd.ci=inb(CDi_status);
i3679drivers/cdrom/sbpcd.cif (i&s_attention) GetStatus();
i3690drivers/cdrom/sbpcd.ci=check_allowed1(func,subfunc);
i3691drivers/cdrom/sbpcd.cif (i<0) return (-2);
i3695drivers/cdrom/sbpcd.ci=check_allowed3(func,subfunc);
i3696drivers/cdrom/sbpcd.cif (i<0)
i3709drivers/cdrom/sbpcd.ci=check_allowed1(func,subfunc);
i3710drivers/cdrom/sbpcd.cif (i<0) return (-2);
i3718drivers/cdrom/sbpcd.ci=check_allowed2(func,subfunc);
i3719drivers/cdrom/sbpcd.cif (i<0) return (-2);
i3729drivers/cdrom/sbpcd.ci=DiskInfo();
i3730drivers/cdrom/sbpcd.cif (i<0)
i3734drivers/cdrom/sbpcd.ci=check_allowed1(func,subfunc);
i3735drivers/cdrom/sbpcd.cif (i<0) return (-2);
i3798drivers/cdrom/sbpcd.cint i, st;
i3803drivers/cdrom/sbpcd.ci=MINOR(inode->i_rdev);
i3804drivers/cdrom/sbpcd.cif ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1))
i3809drivers/cdrom/sbpcd.cif (d!=i) switch_drive(i);
i3817drivers/cdrom/sbpcd.ci=DiskInfo();
i3818drivers/cdrom/sbpcd.cif (i<0) return (-EIO);  /* error reading TOC */
i3822drivers/cdrom/sbpcd.cmsg(DBG_IO2,"ioctl: device %d, request %04X\n",i,cmd);
i3827drivers/cdrom/sbpcd.ci=sbpcd_dbg_ioctl(arg,1);
i3828drivers/cdrom/sbpcd.creturn (i);
i3839drivers/cdrom/sbpcd.cif (famL_drive) i=cc_ReadSubQ();
i3840drivers/cdrom/sbpcd.celse i=cc_Pause_Resume(1);
i3841drivers/cdrom/sbpcd.cif (i<0) return (-EIO);
i3842drivers/cdrom/sbpcd.cif (famL_drive) i=cc_Pause_Resume(1);
i3843drivers/cdrom/sbpcd.celse i=cc_ReadSubQ();
i3844drivers/cdrom/sbpcd.cif (i<0) return (-EIO);
i3849drivers/cdrom/sbpcd.ci=cc_Seek(D_S[d].pos_audio_start,1);
i3850drivers/cdrom/sbpcd.cif (i<0) return (-EIO);
i3863drivers/cdrom/sbpcd.ci=cc_PlayAudio(D_S[d].pos_audio_start,
i3865drivers/cdrom/sbpcd.celse i=cc_Pause_Resume(3);
i3866drivers/cdrom/sbpcd.cif (i<0) return (-EIO);
i3874drivers/cdrom/sbpcd.ci=cc_Pause_Resume(1);
i3875drivers/cdrom/sbpcd.cif (i<0) return (-EIO);
i3876drivers/cdrom/sbpcd.ci=cc_ReadSubQ();
i3877drivers/cdrom/sbpcd.cif (i<0) return (-EIO);
i3879drivers/cdrom/sbpcd.ci=cc_Seek(D_S[d].pos_audio_start,1);
i3893drivers/cdrom/sbpcd.ci=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end);
i3894drivers/cdrom/sbpcd.cmsg(DBG_IOC,"ioctl: cc_PlayAudio returns %d\n",i);
i3896drivers/cdrom/sbpcd.cif (i<0) return (-EIO);
i3924drivers/cdrom/sbpcd.ci=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end);
i3926drivers/cdrom/sbpcd.cif (i<0) return (-EIO);
i3945drivers/cdrom/sbpcd.ci=tocentry.cdte_track;
i3946drivers/cdrom/sbpcd.cif (i==CDROM_LEADOUT) i=D_S[d].n_last_track+1;
i3947drivers/cdrom/sbpcd.celse if (i<D_S[d].n_first_track||i>D_S[d].n_last_track) return (-EINVAL);
i3948drivers/cdrom/sbpcd.ctocentry.cdte_adr=D_S[d].TocBuffer[i].ctl_adr&0x0F;
i3949drivers/cdrom/sbpcd.ctocentry.cdte_ctrl=(D_S[d].TocBuffer[i].ctl_adr>>4)&0x0F;
i3950drivers/cdrom/sbpcd.ctocentry.cdte_datamode=D_S[d].TocBuffer[i].format;
i3953drivers/cdrom/sbpcd.ctocentry.cdte_addr.msf.minute=(D_S[d].TocBuffer[i].address>>16)&0x00FF;
i3954drivers/cdrom/sbpcd.ctocentry.cdte_addr.msf.second=(D_S[d].TocBuffer[i].address>>8)&0x00FF;
i3955drivers/cdrom/sbpcd.ctocentry.cdte_addr.msf.frame=D_S[d].TocBuffer[i].address&0x00FF;
i3958drivers/cdrom/sbpcd.ctocentry.cdte_addr.lba=msf2blk(D_S[d].TocBuffer[i].address);
i3967drivers/cdrom/sbpcd.ci=DriveReset();
i3969drivers/cdrom/sbpcd.creturn (i);
i3973drivers/cdrom/sbpcd.ci=cc_Pause_Resume(1);
i3975drivers/cdrom/sbpcd.creturn (i);
i3987drivers/cdrom/sbpcd.ci=UnLockDoor();
i3989drivers/cdrom/sbpcd.ci=cc_SpinDown();
i3990drivers/cdrom/sbpcd.cmsg(DBG_IOX,"ioctl: cc_SpinDown returned %d.\n", i);
i3991drivers/cdrom/sbpcd.cmsg(DBG_TEA,"ioctl: cc_SpinDown returned %d.\n", i);
i3992drivers/cdrom/sbpcd.cif (i<0) return (-EIO);
i4013drivers/cdrom/sbpcd.ci=cc_SetVolume();
i4031drivers/cdrom/sbpcd.cif ((st_spinning)||(!subq_valid)) { i=cc_ReadSubQ();
i4032drivers/cdrom/sbpcd.cif (i<0) return (-EIO);
i4113drivers/cdrom/sbpcd.cint i=0, j=0, frame, block;
i4129drivers/cdrom/sbpcd.ci=verify_area(VERIFY_READ, (void *) arg, sizeof(struct cdrom_read_audio));
i4130drivers/cdrom/sbpcd.cif (i) return (i);
i4133drivers/cdrom/sbpcd.ci=verify_area(VERIFY_WRITE, read_audio.buf,
i4135drivers/cdrom/sbpcd.cif (i) return (i);
i4142drivers/cdrom/sbpcd.ci=cc_SetSpeed(speed_150,0,0);
i4143drivers/cdrom/sbpcd.cif (i) msg(DBG_AUD,"read_audio: SetSpeed error %d\n", i);
i4198drivers/cdrom/sbpcd.cfor (i=0;i<7;i++) OUT(CDo_command,drvcmd[i]);
i4245drivers/cdrom/sbpcd.ci=cc_DriveReset();                /* ugly fix to prevent a hang */
i4247drivers/cdrom/sbpcd.ci=cc_ReadError();
i4253drivers/cdrom/sbpcd.ci=maxtim_data;
i4256drivers/cdrom/sbpcd.cfor ( ;i!=0;i--)
i4263drivers/cdrom/sbpcd.cif (i != 0 || timeout <= jiffies) break;
i4265drivers/cdrom/sbpcd.ci = 1;
i4267drivers/cdrom/sbpcd.cif (i==0) msg(DBG_AUD,"read_audio: STATUS TIMEOUT AFTER READ");
i4271drivers/cdrom/sbpcd.ci=cc_DriveReset();  /* ugly fix to prevent a hang */
i4278drivers/cdrom/sbpcd.ci=ResponseStatus();  /* builds status_bits, returns orig. status (old) or faked p_success (new) */
i4279drivers/cdrom/sbpcd.cif (i<0) { msg(DBG_AUD,
i4285drivers/cdrom/sbpcd.cwhile ((fam0L_drive)&&(!st_check)&&(!(i&p_success)));
i4288drivers/cdrom/sbpcd.ci=cc_ReadError();
i4289drivers/cdrom/sbpcd.cmsg(DBG_AUD,"read_audio: cc_ReadError was necessary after read: %02X\n",i);
i4369drivers/cdrom/sbpcd.cint i, status_tries, data_tries;
i4384drivers/cdrom/sbpcd.ci = MINOR(CURRENT->rq_dev);
i4385drivers/cdrom/sbpcd.cif ( (i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1))
i4394drivers/cdrom/sbpcd.cif (D_S[i].audio_state==audio_playing) goto err_done;
i4395drivers/cdrom/sbpcd.cif (d!=i) switch_drive(i);
i4414drivers/cdrom/sbpcd.ci=prepare(0,0); /* at moment not really a hassle check, but ... */
i4415drivers/cdrom/sbpcd.cif (i!=0)
i4416drivers/cdrom/sbpcd.cmsg(DBG_INF,"\"prepare\" tells error %d -- ignored\n", i);
i4460drivers/cdrom/sbpcd.cint i;
i4539drivers/cdrom/sbpcd.cfor (i=0;i<7;i++) OUT(CDo_command,drvcmd[i]);
i4540drivers/cdrom/sbpcd.cif (famT_drive) for (i=7;i<10;i++) OUT(CDo_command,drvcmd[i]);
i4545drivers/cdrom/sbpcd.ci=cmd_out(); /* immediate return here - read data "ourselves" */
i4546drivers/cdrom/sbpcd.cif (i<0) msg(DBG_INF,"error giving READ command: %0d\n", i);
i4557drivers/cdrom/sbpcd.cint i=0, j=0, l, frame;
i4677drivers/cdrom/sbpcd.ci=inb(CDi_status);
i4678drivers/cdrom/sbpcd.cif (!(i&s_not_data_ready))
i4684drivers/cdrom/sbpcd.ci=inb(CDi_data);
i4686drivers/cdrom/sbpcd.ci=inb(CDi_status);
i4688drivers/cdrom/sbpcd.cwhile (!(i&s_not_data_ready));
i4691drivers/cdrom/sbpcd.cif (!(i&s_not_result_ready))
i4698drivers/cdrom/sbpcd.ci=inb(CDi_status);
i4700drivers/cdrom/sbpcd.cwhile (!(i&s_not_result_ready));
i4744drivers/cdrom/sbpcd.ci=cc_DriveReset(); /* ugly fix to prevent a hang */
i4746drivers/cdrom/sbpcd.ci=cc_ReadError();
i4754drivers/cdrom/sbpcd.ci=maxtim_data;
i4757drivers/cdrom/sbpcd.cfor ( ;i!=0;i--)
i4764drivers/cdrom/sbpcd.cif (i != 0 || timeout <= jiffies) break;
i4766drivers/cdrom/sbpcd.ci = 1;
i4768drivers/cdrom/sbpcd.cif (i==0) msg(DBG_INF,"status timeout after READ.\n");
i4772drivers/cdrom/sbpcd.ci=cc_DriveReset();  /* ugly fix to prevent a hang */
i4786drivers/cdrom/sbpcd.cif (famT_drive) msg(DBG_TE2, "================before ResponseStatus=================.\n", i);
i4788drivers/cdrom/sbpcd.ci=ResponseStatus();  /* builds status_bits, returns orig. status (old) or faked p_success (new) */
i4790drivers/cdrom/sbpcd.cif (famT_drive)  msg(DBG_TE2, "================ResponseStatus: %d=================.\n", i);
i4792drivers/cdrom/sbpcd.cif (i<0)
i4798drivers/cdrom/sbpcd.cwhile ((fam0L_drive)&&(!st_check)&&(!(i&p_success)));
i4801drivers/cdrom/sbpcd.ci=cc_ReadError();
i4802drivers/cdrom/sbpcd.cmsg(DBG_INF,"cc_ReadError was necessary after read: %d\n",i);
i4829drivers/cdrom/sbpcd.cint i;
i4831drivers/cdrom/sbpcd.ci = MINOR(ip->i_rdev);
i4832drivers/cdrom/sbpcd.cif ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1))
i4840drivers/cdrom/sbpcd.cswitch_drive(i);
i4842drivers/cdrom/sbpcd.ci=cc_ReadError();
i4845drivers/cdrom/sbpcd.ci=ResponseStatus();
i4846drivers/cdrom/sbpcd.cif (famT_drive&&(i<0))
i4849drivers/cdrom/sbpcd.ci=ResponseStatus();
i4850drivers/cdrom/sbpcd.ci=ResponseStatus();
i4852drivers/cdrom/sbpcd.cif (i<0)
i4854drivers/cdrom/sbpcd.cmsg(DBG_INF,"sbpcd_open: ResponseStatus timed out (%d).\n",i);
i4857drivers/cdrom/sbpcd.cif (famT_drive)  msg(DBG_TE2,"sbpcd_open: ResponseStatus=%02X\n", i);
i4864drivers/cdrom/sbpcd.ci=ResponseStatus();
i4873drivers/cdrom/sbpcd.ci=ResponseStatus();
i4883drivers/cdrom/sbpcd.ci=UnLockDoor();
i4897drivers/cdrom/sbpcd.ci=LockDoor();
i4900drivers/cdrom/sbpcd.ci=DiskInfo();
i4914drivers/cdrom/sbpcd.cint i;
i4916drivers/cdrom/sbpcd.ci = MINOR(ip->i_rdev);
i4917drivers/cdrom/sbpcd.cif ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1))
i4922drivers/cdrom/sbpcd.cswitch_drive(i);
i4938drivers/cdrom/sbpcd.ci=UnLockDoor();
i5046drivers/cdrom/sbpcd.cint i;
i5052drivers/cdrom/sbpcd.ci=inb(SPEA_REG_1);
i5053drivers/cdrom/sbpcd.cif (i!=0x0F)
i5074drivers/cdrom/sbpcd.ci=(inb(SPEA_REG_2)&0xCF)|n_ports;
i5075drivers/cdrom/sbpcd.cOUT(SPEA_REG_2,i);
i5091drivers/cdrom/sbpcd.cint i=0, j=0;
i5138drivers/cdrom/sbpcd.ci=config_spea();
i5139drivers/cdrom/sbpcd.cif (i<0) continue;
i5144drivers/cdrom/sbpcd.ci=check_drives();
i5146drivers/cdrom/sbpcd.cif (i>=0) break; /* drive found */
i5194drivers/cdrom/sbpcd.ci=ResponseStatus();  /* returns orig. status or p_busy_new */
i5195drivers/cdrom/sbpcd.cif (famT_drive) i=ResponseStatus();  /* returns orig. status or p_busy_new */
i5196drivers/cdrom/sbpcd.cif (i<0)
i5197drivers/cdrom/sbpcd.cif (i!=-402)
i5198drivers/cdrom/sbpcd.cmsg(DBG_INF,"init: ResponseStatus returns %d.\n",i);
i5203drivers/cdrom/sbpcd.ci=cc_ReadError();
i5204drivers/cdrom/sbpcd.cmsg(DBG_INI,"init: cc_ReadError returns %d\n",i);
i5207drivers/cdrom/sbpcd.cmsg(DBG_INI,"init: first GetStatus: %d\n",i);
i5215drivers/cdrom/sbpcd.ci=GetStatus();
i5216drivers/cdrom/sbpcd.cmsg(DBG_INI,"init: second GetStatus: %02X\n",i);
i5220drivers/cdrom/sbpcd.cif (i<0) break;
i5225drivers/cdrom/sbpcd.ci=SetSpeed();
i5226drivers/cdrom/sbpcd.cif (i>=0) D_S[d].CD_changed=1;
i5345drivers/cdrom/sbpcd.cint i, st;
i5350drivers/cdrom/sbpcd.ci=MINOR(full_dev);
i5351drivers/cdrom/sbpcd.cif ( (i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1) )
i5357drivers/cdrom/sbpcd.cswitch_drive(i);
i323drivers/cdrom/sjcd.cint i;
i324drivers/cdrom/sjcd.cfor( i = 200; i-- && !SJCD_STATUS_AVAILABLE( inb( SJCDPORT( 1 ) ) ); );
i325drivers/cdrom/sjcd.cif( i > 0 ) *resp++ = ( unsigned char )inb( SJCDPORT( 0 ) );
i438drivers/cdrom/sjcd.cint i;
i445drivers/cdrom/sjcd.cfor( i = 200; i-- && ( sjcd_check_status() == 0 ); );
i446drivers/cdrom/sjcd.cif( i < 0 ){
i452drivers/cdrom/sjcd.celse i = 0;
i454drivers/cdrom/sjcd.creturn( i );
i494drivers/cdrom/sjcd.cint i;
i561drivers/cdrom/sjcd.cfor( i = sjcd_first_track_no; i <= sjcd_last_track_no; i++ ){
i565drivers/cdrom/sjcd.csjcd_send_1_cmd( SCMD_GET_DISK_INFO, bin2bcd( i ) );
i579drivers/cdrom/sjcd.cif( sjcd_load_response( &sjcd_table_of_contents[ i ],
i581drivers/cdrom/sjcd.cprintk( "cannot load info for %d track\n", i );
i585drivers/cdrom/sjcd.cprintk( "get info %d failed\n", i );
i969drivers/cdrom/sjcd.cint i;
i970drivers/cdrom/sjcd.cfor( i = 0; i < SJCD_BUF_SIZ; sjcd_buf_bn[ i++ ] = -1 );
i989drivers/cdrom/sjcd.cint i, bn = CURRENT->sector / 4;
i990drivers/cdrom/sjcd.cfor( i = 0; i < SJCD_BUF_SIZ && sjcd_buf_bn[ i ] != bn; i++ );
i991drivers/cdrom/sjcd.cif( i < SJCD_BUF_SIZ ){
i992drivers/cdrom/sjcd.cint offs = ( i * 4 + ( CURRENT->sector & 3 ) ) * 512;
i994drivers/cdrom/sjcd.cif( sjcd_buf_out != i ){
i995drivers/cdrom/sjcd.csjcd_buf_out = i;
i996drivers/cdrom/sjcd.cif( sjcd_buf_bn[ i ] != bn ){
i1280drivers/cdrom/sjcd.cint i;
i1287drivers/cdrom/sjcd.cfor( i = 2048; i--; ( void )inb( SJCDPORT( 2 ) ) );
i1504drivers/cdrom/sjcd.cint i;
i1549drivers/cdrom/sjcd.cfor( i = 1000; i-- > 0 && !sjcd_status_valid; ){
i1556drivers/cdrom/sjcd.cif ( (i % 100) == 0 ) printk( "." );
i1559drivers/cdrom/sjcd.cif( i == 0 || sjcd_command_failed ){
i1569drivers/cdrom/sjcd.cfor( i = 1000; i > 0 && !sjcd_status_valid; --i ){
i1576drivers/cdrom/sjcd.cif ( (i % 100) == 0 ) printk( "." );
i1579drivers/cdrom/sjcd.cif( i == 0 || sjcd_command_failed ){
i1598drivers/cdrom/sjcd.cfor( i = 1000; i > 0 && !sjcd_status_valid; --i ){
i1605drivers/cdrom/sjcd.cif ( (i % 100) == 0 ) printk( "." );
i1608drivers/cdrom/sjcd.cif( i == 0 || sjcd_command_failed ){
i1680drivers/cdrom/sjcd.cshort i = -1;
i1699drivers/cdrom/sjcd.ci = 0;
i1703drivers/cdrom/sjcd.ci = 1;
i1710drivers/cdrom/sjcd.creturn(i); /* -> not detected: possibly incorrect conclusion */
i1714drivers/cdrom/sjcd.ci = 0;
i1716drivers/cdrom/sjcd.ci = 1;
i1720drivers/cdrom/sjcd.creturn(i);
i1756drivers/cdrom/sjcd.cu_char i;
i1812drivers/cdrom/sjcd.ci = ISP16_IN(ISP16_DRIVE_SET_PORT) & ISP16_DRIVE_SET_MASK;  /* clear some bits */
i1813drivers/cdrom/sjcd.cISP16_OUT( ISP16_DRIVE_SET_PORT, i|drive_type );
i1820drivers/cdrom/sjcd.ci = ISP16_IN(ISP16_IO_SET_PORT) & ISP16_IO_SET_MASK;  /* keep some bits */
i1821drivers/cdrom/sjcd.cISP16_OUT( ISP16_IO_SET_PORT, i|base_code|irq_code|dma_code );
i1828drivers/cdrom/sjcd.cint i;
i1838drivers/cdrom/sjcd.cfor( i = 16*1024; i--; );
i1844drivers/cdrom/sjcd.cfor( i = 5*64*1024; i != 0; i-- )
i1847drivers/cdrom/sjcd.cif( i > 0 ) {
i1865drivers/cdrom/sjcd.ci = 0;
i1868drivers/cdrom/sjcd.cif ( i == 0 ) {
i1874drivers/cdrom/sjcd.cfor( i = 0; i < 16; i++ ) {
i1875drivers/cdrom/sjcd.coutb( 0x20 | ( u_char )i, 0x534 );
i1876drivers/cdrom/sjcd.coutb( defaults[i], 0x535 );
i1878drivers/cdrom/sjcd.cfor ( i = 0; i < 16; i++ ) {
i1879drivers/cdrom/sjcd.coutb( 0x20 | ( u_char )i, 0x534 );
i529drivers/cdrom/sonycd535.cint i;
i532drivers/cdrom/sonycd535.cfor (i = 0; i < n_cmd; i++)
i533drivers/cdrom/sonycd535.coutb(cmd[i], command_reg);
i555drivers/cdrom/sonycd535.cfor (i = 0; 0 < n_response; n_response--, i++)
i556drivers/cdrom/sonycd535.cif (read_result_reg(response + i) != 0)
i596drivers/cdrom/sonycd535.cint  i;
i609drivers/cdrom/sonycd535.cfor (i = 0; i < 6; i++)
i610drivers/cdrom/sonycd535.ccmd_buff[i + 1] = params[i];
i611drivers/cdrom/sonycd535.cfor (i = 0; i < 7; i++)
i612drivers/cdrom/sonycd535.coutb(cmd_buff[i], command_reg);
i627drivers/cdrom/sonycd535.cfor (i = 0; i < block_size; i++)
i638drivers/cdrom/sonycd535.cif ((i = read_exec_status(status)) != 0)
i639drivers/cdrom/sonycd535.creturn i;
i653drivers/cdrom/sonycd535.cint  i, j, n_tracks, track_no;
i668drivers/cdrom/sonycd535.cfor (i = 0; i < n_tracks; i++) {
i677drivers/cdrom/sonycd535.cmemcpy(toc->tracks + i, track_address_buffer, 5);
i955drivers/cdrom/sonycd535.cint i;
i961drivers/cdrom/sonycd535.cfor (i = 0; i < num_tracks; i++) {
i962drivers/cdrom/sonycd535.cif (sony_toc->tracks[i].track == track) {
i963drivers/cdrom/sonycd535.creturn i;
i1077drivers/cdrom/sonycd535.cint  i;
i1177drivers/cdrom/sonycd535.cfor (i = 0; i < 3; i++) {
i1178drivers/cdrom/sonycd535.ccmd_buff[2 + i] = int_to_bcd(params[i]);
i1179drivers/cdrom/sonycd535.ccmd_buff[7 + i] = int_to_bcd(params[i + 3]);
i1492drivers/cdrom/sonycd535.cint  i;
i1614drivers/cdrom/sonycd535.cfor (i = 0; i < sony_buffer_sectors; i++) {
i1615drivers/cdrom/sonycd535.csony_buffer[i] = (Byte *)kmalloc(2048, GFP_KERNEL);
i1616drivers/cdrom/sonycd535.cif (sony_buffer[i] == NULL) {
i1617drivers/cdrom/sonycd535.cwhile (--i>=0)
i1618drivers/cdrom/sonycd535.ckfree(sony_buffer[i]);
i1674drivers/cdrom/sonycd535.cint i;
i1677drivers/cdrom/sonycd535.cfor (i = 0; i < sony_buffer_sectors; i++)
i1678drivers/cdrom/sonycd535.ckfree_s(sony_buffer[i], 2048);
i144drivers/char/atixlmouse.cint i;
i163drivers/char/atixlmouse.cfor(i = 3; i < count; i++)
i164drivers/char/atixlmouse.cput_user(0x00, buffer + i);
i170drivers/char/atixlmouse.creturn i; /* i data bytes returned */
i240drivers/char/busmouse.cint i;
i244drivers/char/busmouse.cfor (i = 0; i < 100000; i++)
i54drivers/char/conmakehash.cint i;
i61drivers/char/conmakehash.cfor ( i = 0 ; i < unicount[fp] ; i++ )
i62drivers/char/conmakehash.cif ( unitable[fp][i] == un )
i86drivers/char/conmakehash.cint i, nuni, nent;
i113drivers/char/conmakehash.cfor ( i = 0 ; i < fontlen ; i++ )
i114drivers/char/conmakehash.cunicount[i] = 0;
i190drivers/char/conmakehash.cfor (i=fp0; i<=fp1; i++)
i191drivers/char/conmakehash.caddpair(i,i);
i222drivers/char/conmakehash.cfor(i=fp0; i<=fp1; i++)
i223drivers/char/conmakehash.caddpair(i,un0-fp0+i);
i246drivers/char/conmakehash.cfor ( i = 0 ; i < fontlen ; i++ )
i247drivers/char/conmakehash.cnuni += unicount[i];
i265drivers/char/conmakehash.cfor ( i = 0 ; i < fontlen ; i++ )
i267drivers/char/conmakehash.cprintf("%3d", unicount[i]);
i268drivers/char/conmakehash.cif ( i == fontlen-1 )
i270drivers/char/conmakehash.celse if ( i % 8 == 7 )
i280drivers/char/conmakehash.cfor ( i = 0 ; i < nuni ; i++ )
i288drivers/char/conmakehash.cif ( i == nuni-1 )
i290drivers/char/conmakehash.celse if ( i % 8 == 7 )
i208drivers/char/console.cint     i;
i221drivers/char/console.cfor (i = 0; *s; i++, s++) {
i289drivers/char/console.cint vc_cons_allocated(unsigned int i)
i291drivers/char/console.creturn (i < MAX_NR_CONSOLES && vc_cons[i].d);
i294drivers/char/console.cint vc_allocate(unsigned int i)    /* return 0 on success */
i296drivers/char/console.cif (i >= MAX_NR_CONSOLES)
i298drivers/char/console.cif (!vc_cons[i].d) {
i302drivers/char/console.cif (i >= MAX_NR_USER_CONSOLES && !suser())
i317drivers/char/console.cvc_cons[i].d = (struct vc_data *) p;
i319drivers/char/console.cvt_cons[i] = (struct vt_struct *) p;
i320drivers/char/console.cvc_scrbuf[i] = (unsigned short *) q;
i321drivers/char/console.cvc_cons[i].d->vc_kmalloced = 1;
i322drivers/char/console.cvc_cons[i].d->vc_screenbuf_size = video_screen_size;
i323drivers/char/console.cvc_init (i, video_num_lines, video_num_columns, 1);
i338drivers/char/console.cunsigned int currcons, i;
i362drivers/char/console.cfor (i = 0; i< currcons; i++)
i363drivers/char/console.cif (newscreens[i])
i364drivers/char/console.ckfree_s(newscreens[i], ss);
i821drivers/char/console.cint i;
i823drivers/char/console.cfor (i=0;i<=npar;i++)
i824drivers/char/console.cswitch (par[i]) {
i903drivers/char/console.cif (par[i] >= 30 && par[i] <= 37)
i904drivers/char/console.ccolor = color_table[par[i]-30]
i906drivers/char/console.celse if (par[i] >= 40 && par[i] <= 47)
i907drivers/char/console.ccolor = (color_table[par[i]-40]<<4)
i1039drivers/char/console.cint i;
i1041drivers/char/console.cfor (i=0; i<=npar; i++)
i1042drivers/char/console.cif (ques) switch(par[i]) {  /* DEC private modes set/reset */
i1087drivers/char/console.c} else switch(par[i]) {    /* ANSI modes set/reset */
i1134drivers/char/console.cunsigned int i = x;
i1138drivers/char/console.cwhile (i++ < video_num_columns) {
i1155drivers/char/console.cunsigned int i = x;
i1158drivers/char/console.cwhile (++i < video_num_columns) {
i1559drivers/char/console.cint i = par[0]*3, j = 1;
i1560drivers/char/console.cpalette[i] = 16*par[j++];
i1561drivers/char/console.cpalette[i++] += par[j++];
i1562drivers/char/console.cpalette[i] = 16*par[j++];
i1563drivers/char/console.cpalette[i++] += par[j++];
i1564drivers/char/console.cpalette[i] = 16*par[j++];
i1565drivers/char/console.cpalette[i] += par[j];
i2146drivers/char/console.cint i;
i2150drivers/char/console.ci = vc_allocate(idx);
i2151drivers/char/console.cif (i)
i2152drivers/char/console.creturn i;
i2199drivers/char/console.cint i;
i2201drivers/char/console.ci = set_get_font (arg,1,ch512);
i2202drivers/char/console.cif ( !i ) {
i2207drivers/char/console.creturn i;
i169drivers/char/consolemap.cstatic void set_inverse_transl(int i)
i172drivers/char/consolemap.cunsigned short *p = translations[i];
i173drivers/char/consolemap.cunsigned char *q = inverse_translations[i];
i177drivers/char/consolemap.cq = inverse_translations[i] = ((i == LAT1_MAP)
i229drivers/char/consolemap.cint i;
i232drivers/char/consolemap.ci = verify_area(VERIFY_READ, (void *)arg, E_TABSZ);
i233drivers/char/consolemap.cif (i)
i234drivers/char/consolemap.creturn i;
i236drivers/char/consolemap.cfor (i=0; i<E_TABSZ ; i++)
i237drivers/char/consolemap.cp[i] = UNI_DIRECT_BASE | get_user(arg+i);
i245drivers/char/consolemap.cint i, ch;
i248drivers/char/consolemap.ci = verify_area(VERIFY_WRITE, (void *)arg, E_TABSZ);
i249drivers/char/consolemap.cif (i)
i250drivers/char/consolemap.creturn i;
i252drivers/char/consolemap.cfor (i=0; i<E_TABSZ ; i++)
i254drivers/char/consolemap.cch = conv_uni_to_pc(p[i]);
i255drivers/char/consolemap.cput_user((ch & ~0xff) ? 0 : ch, arg+i);
i262drivers/char/consolemap.cint i;
i265drivers/char/consolemap.ci = verify_area(VERIFY_READ, (void *)arg,
i267drivers/char/consolemap.cif (i)
i268drivers/char/consolemap.creturn i;
i270drivers/char/consolemap.cfor (i=0; i<E_TABSZ ; i++)
i271drivers/char/consolemap.cp[i] = get_user(arg+i);
i279drivers/char/consolemap.cint i;
i282drivers/char/consolemap.ci = verify_area(VERIFY_WRITE, (void *)arg,
i284drivers/char/consolemap.cif (i)
i285drivers/char/consolemap.creturn i;
i287drivers/char/consolemap.cfor (i=0; i<E_TABSZ ; i++)
i288drivers/char/consolemap.cput_user(p[i], arg+i);
i318drivers/char/consolemap.cint i, n;
i327drivers/char/consolemap.cfor ( i = 0 ; i < 32 ; i++ )
i328drivers/char/consolemap.cp1[i] = NULL;
i337drivers/char/consolemap.cfor ( i = 0 ; i < 64 ; i++ )
i338drivers/char/consolemap.cp2[i] = 0xffff;    /* No glyph for this character (yet) */
i350drivers/char/consolemap.cint i, j;
i353drivers/char/consolemap.cfor ( i = 0 ; i < 32 ; i++ )
i355drivers/char/consolemap.cif ( (p1 = uni_pagedir[i]) != NULL )
i364drivers/char/consolemap.cuni_pagedir[i] = NULL;
i373drivers/char/consolemap.cint err = 0, err1, i;
i383drivers/char/consolemap.cfor ( i = 0 ; i <= 3 ; i++ )
i384drivers/char/consolemap.cset_inverse_transl(i); /* Update all inverse translations */
i397drivers/char/consolemap.cint i, j;
i405drivers/char/consolemap.cfor ( i = 0 ; i < 256 ; i++ )
i406drivers/char/consolemap.cfor ( j = dfont_unicount[i] ; j ; j-- )
i407drivers/char/consolemap.ccon_insert_unipair(*(p++), i);
i409drivers/char/consolemap.cfor ( i = 0 ; i <= 3 ; i++ )
i410drivers/char/consolemap.cset_inverse_transl(i);  /* Update all inverse translations */
i415drivers/char/consolemap.cint i, j, k, ect;
i421drivers/char/consolemap.cfor ( i = 0 ; i < 32 ; i++ )
i422drivers/char/consolemap.cif ( (p1 = uni_pagedir[i]) != NULL )
i429drivers/char/consolemap.cput_user((u_short)((i<<11)+(j<<6)+k),
i493drivers/char/cyclades.cvolatile int  i;
i497drivers/char/cyclades.cfor(i = 0 ; i < 100 ; i++){
i505drivers/char/cyclades.cif ( i == 100 ) {
i652drivers/char/cyclades.cint i,j,index;
i690drivers/char/cyclades.ci = channel + chip * 4 + cinfo->first_line;
i691drivers/char/cyclades.cinfo = &cy_port[i];
i806drivers/char/cyclades.ci = channel + chip * 4 + cinfo->first_line;
i811drivers/char/cyclades.cif( (i < 0) || (NR_PORTS <= i) ){
i815drivers/char/cyclades.cinfo = &cy_port[i];
i1036drivers/char/cyclades.cint i, mask;
i1038drivers/char/cyclades.cfor (i = 0, mask = 1; i < 16; i++, mask <<= 1) {
i1040drivers/char/cyclades.c&& !request_irq(i, cy_probe, SA_INTERRUPT, "serial probe")) {
i1053drivers/char/cyclades.cint i;
i1055drivers/char/cyclades.cfor (i = 0; i < 16; i++) {
i1056drivers/char/cyclades.cif (irq_lines & (1 << i))
i1057drivers/char/cyclades.cfree_irq(i);
i1068drivers/char/cyclades.cint  i, mask;
i1093drivers/char/cyclades.cfor (i = 0, mask = 1; i < 16; i++, mask <<= 1) {
i1094drivers/char/cyclades.cif ((cy_triggered & (1 << i)) &&
i1095drivers/char/cyclades.c(irq_lines & (1 << i))) {
i1354drivers/char/cyclades.cint   i;
i1365drivers/char/cyclades.ci = cflag & CBAUD;
i1375drivers/char/cyclades.cif (i & CBAUDEX) {
i1376drivers/char/cyclades.cif (i == B57600)
i1377drivers/char/cyclades.ci = 16;
i1378drivers/char/cyclades.celse if(i == B115200) 
i1379drivers/char/cyclades.ci = 18;
i1381drivers/char/cyclades.celse if(i == B78600) 
i1382drivers/char/cyclades.ci = 17;
i1388drivers/char/cyclades.cif (i == 15) {
i1390drivers/char/cyclades.ci += 1;
i1392drivers/char/cyclades.ci += 3;
i1394drivers/char/cyclades.cinfo->tbpr = baud_bpr[i]; /* Tx BPR */
i1395drivers/char/cyclades.cinfo->tco = baud_co[i]; /* Tx CO */
i1396drivers/char/cyclades.cinfo->rbpr = baud_bpr[i]; /* Rx BPR */
i1397drivers/char/cyclades.cinfo->rco = baud_co[i]; /* Rx CO */
i1398drivers/char/cyclades.cif (baud_table[i] == 134) {
i1401drivers/char/cyclades.c} else if (baud_table[i]) {
i1402drivers/char/cyclades.cinfo->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2;
i1416drivers/char/cyclades.c: baud_cor3[i]); /* receive threshold */
i1518drivers/char/cyclades.cif(i == 0){ /* baud rate is zero, turn off line */
i2767drivers/char/cyclades.cint      board,port,i;
i2822drivers/char/cyclades.cfor (i = 0; i < 16; i++) {
i2823drivers/char/cyclades.cIRQ_cards[i] = 0;
i2826drivers/char/cyclades.cfor (i = 0; i < NR_CARDS; i++) {
i2828drivers/char/cyclades.ccy_card[i].base_addr = 0;
i2847drivers/char/cyclades.cfor (i = 0 ; i < NR_CARDS ; i++) {
i2848drivers/char/cyclades.cif (cy_card[i].base_addr == 0) {
i2849drivers/char/cyclades.ccy_card[i].first_line = -1;
i2853drivers/char/cyclades.cfor (i = cy_next_channel ; i < NR_PORTS ; i++) {
i2854drivers/char/cyclades.ccy_port[i].line = -1;
i2855drivers/char/cyclades.ccy_port[i].magic = -1;
i2919drivers/char/cyclades.cint i;
i2927drivers/char/cyclades.cfor (i = 0; i < NR_CARDS; i++) {
i2928drivers/char/cyclades.cif (cy_card[i].base_addr != 0)
i2930drivers/char/cyclades.cfree_irq(cy_card[i].irq);
i2947drivers/char/cyclades.cunsigned short  i,j,cy_isa_nchan;
i2952drivers/char/cyclades.cfor (i = 0 ; i < NR_ISA_ADDRESSES ; i++) {
i2953drivers/char/cyclades.ccy_isa_address = cy_isa_addresses[i];
i3028drivers/char/cyclades.cunsigned short  i,j,cy_pci_nchan;
i3037drivers/char/cyclades.cfor (i = 0; i < NR_CARDS; i++) {
i3040drivers/char/cyclades.cPCI_DEVICE_ID_CYCLOMY,i,
i3066drivers/char/cyclades.creturn(i);
i3070drivers/char/cyclades.ci+1,cyy_bus,cyy_dev_fn,cyy_rev_id);
i3081drivers/char/cyclades.creturn(i);
i3089drivers/char/cyclades.creturn(i);
i3112drivers/char/cyclades.creturn(i);
i734drivers/char/istallion.cint    i, j;
i754drivers/char/istallion.ci = tty_unregister_driver(&stli_serial);
i756drivers/char/istallion.cif (i || j) {
i757drivers/char/istallion.cprintk("STALLION: failed to un-register tty driver, errno=%d,%d\n", -i, -j);
i761drivers/char/istallion.cif ((i = unregister_chrdev(STL_SIOMEMMAJOR, "staliomem")))
i762drivers/char/istallion.cprintk("STALLION: failed to un-register serial memory device, errno=%d\n", -i);
i769drivers/char/istallion.cfor (i = 0; (i < stli_nrbrds); i++) {
i770drivers/char/istallion.cbrdp = &stli_brds[i];
i2755drivers/char/istallion.cint    i, panelnr, panelport;
i2761drivers/char/istallion.cfor (i = 0, panelnr = 0, panelport = 0; (i < brdp->nrports); i++) {
i2769drivers/char/istallion.cportp->portnr = i;
i2784drivers/char/istallion.cbrdp->ports[i] = portp;
i3012drivers/char/istallion.cint    i;
i3021drivers/char/istallion.cfor (i = 0; (i < 100); i++)
i3073drivers/char/istallion.cint  i;
i3082drivers/char/istallion.cfor (i = 0; (i < 100); i++)
i3095drivers/char/istallion.cint    i;
i3105drivers/char/istallion.cfor (i = 0; (i < 100); i++)
i3166drivers/char/istallion.cint  i;
i3175drivers/char/istallion.cfor (i = 0; (i < 100); i++)
i3187drivers/char/istallion.cint  i;
i3196drivers/char/istallion.cfor (i = 0; (i < 500); i++)
i3229drivers/char/istallion.cint  i;
i3238drivers/char/istallion.cfor (i = 0; (i < 100); i++)
i3250drivers/char/istallion.cint  i;
i3257drivers/char/istallion.cfor (i = 0; (i < 100); i++)
i3285drivers/char/istallion.cint      i;
i3294drivers/char/istallion.cfor (i = 0; (i < 500); i++)
i3475drivers/char/istallion.cint    i;
i3597drivers/char/istallion.cfor (i = 0; (i < 16); i++) {
i3598drivers/char/istallion.cif (((sig.amask0 << i) & 0x8000) == 0)
i3601drivers/char/istallion.cbrdp->nrports = i;
i3624drivers/char/istallion.cint      portnr, nrdevs, i, rc;
i3671drivers/char/istallion.cfor (i = 1, portnr = 0; (i < nrdevs); i++, portnr++, memp++) {
i3677drivers/char/istallion.cportp->devnr = i;
i3679drivers/char/istallion.cportp->reqbit = (unsigned char) (0x1 << (i * 8 / nrdevs));
i3680drivers/char/istallion.cportp->portidx = (unsigned char) (i / 8);
i3681drivers/char/istallion.cportp->portbit = (unsigned char) (0x1 << (i % 8));
i3689drivers/char/istallion.cfor (i = 1, portnr = 0; (i < nrdevs); i++, portnr++) {
i3731drivers/char/istallion.cint    i, j;
i3747drivers/char/istallion.cfor (i = 0; (i < stli_nrbrds); i++) {
i3748drivers/char/istallion.cbrdp = &stli_brds[i];
i3749drivers/char/istallion.cconfp = &stli_brdconf[i];
i3750drivers/char/istallion.cbrdp->brdnr = i;
i3778drivers/char/istallion.cprintk("STALLION: unit=%d is unknown board type=%d\n", i, confp->brdtype);
i3783drivers/char/istallion.cprintk("STALLION: %s board not found, unit=%d io=%x mem=%x\n", stli_brdnames[brdp->brdtype], i, confp->ioaddr1, (int) confp->memaddr);
i3788drivers/char/istallion.cprintk("STALLION: %s found, unit=%d io=%x mem=%x nrpanels=%d nrports=%d\n", stli_brdnames[brdp->brdtype], i, confp->ioaddr1, (int) confp->memaddr, brdp->nrpanels, brdp->nrports);
i3798drivers/char/istallion.cfor (i = 0; (i < stli_nrbrds); i++) {
i3799drivers/char/istallion.cfor (j = i + 1; (j < stli_nrbrds); j++) {
i3800drivers/char/istallion.cbrdp = &stli_brds[i];
i3811drivers/char/istallion.cfor (i = 0; (i < stli_nrbrds); i++) {
i3812drivers/char/istallion.cbrdp = &stli_brds[i];
i180drivers/char/keyboard.cint i;
i182drivers/char/keyboard.cfor (i=0; i<0x100000; i++)
i689drivers/char/keyboard.cint i;
i691drivers/char/keyboard.cfor (i = fg_console-1; i != fg_console; i--) {
i692drivers/char/keyboard.cif (i == -1)
i693drivers/char/keyboard.ci = MAX_NR_CONSOLES-1;
i694drivers/char/keyboard.cif (vc_cons_allocated(i))
i697drivers/char/keyboard.cwant_console = i;
i702drivers/char/keyboard.cint i;
i704drivers/char/keyboard.cfor (i = fg_console+1; i != fg_console; i++) {
i705drivers/char/keyboard.cif (i == MAX_NR_CONSOLES)
i706drivers/char/keyboard.ci = 0;
i707drivers/char/keyboard.cif (vc_cons_allocated(i))
i710drivers/char/keyboard.cwant_console = i;
i840drivers/char/keyboard.cint i;
i846drivers/char/keyboard.cfor (i = 0; i < accent_table_size; i++) {
i847drivers/char/keyboard.cif (accent_table[i].diacr == d && accent_table[i].base == ch)
i848drivers/char/keyboard.creturn accent_table[i].result;
i982drivers/char/keyboard.cint i, j, k, sym, val;
i985drivers/char/keyboard.cfor(i=0; i < SIZE(k_down); i++)
i986drivers/char/keyboard.ck_down[i] = 0;
i988drivers/char/keyboard.cfor(i=0; i < SIZE(key_down); i++)
i989drivers/char/keyboard.cif(key_down[i]) {  /* skip this word if not a single bit on */
i990drivers/char/keyboard.ck = i*BITS_PER_LONG;
i1059drivers/char/keyboard.cint i;
i1067drivers/char/keyboard.cfor(i=0; i<0x200000; i++) {
i1190drivers/char/keyboard.cint i;
i1201drivers/char/keyboard.cfor (i = 0 ; i < MAX_NR_CONSOLES ; i++)
i1202drivers/char/keyboard.ckbd_table[i] = kbd0;
i132drivers/char/mem.cunsigned int i = file->f_pos;
i135drivers/char/mem.cwhile (count-- > 0 && i < 65536) {
i136drivers/char/mem.cput_user(inb(i),tmp);
i137drivers/char/mem.ci++;
i140drivers/char/mem.cfile->f_pos = i;
i146drivers/char/mem.cunsigned int i = file->f_pos;
i149drivers/char/mem.cwhile (count-- > 0 && i < 65536) {
i150drivers/char/mem.coutb(get_user(tmp),i);
i151drivers/char/mem.ci++;
i154drivers/char/mem.cfile->f_pos = i;
i130drivers/char/msbusmouse.cint i, dx, dy;
i141drivers/char/msbusmouse.cfor (i = 3; i < count; i++)
i142drivers/char/msbusmouse.cput_user(0x00, buffer + i);
i146drivers/char/msbusmouse.creturn i;  
i179drivers/char/msbusmouse.cint mse_byte, i;
i193drivers/char/msbusmouse.cfor (i = 0; i < 4; i++) {
i540drivers/char/n_tty.cint  i;
i546drivers/char/n_tty.ci = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt,
i548drivers/char/n_tty.cmemcpy(tty->read_buf + tty->read_head, cp, i);
i549drivers/char/n_tty.ctty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1);
i550drivers/char/n_tty.ctty->read_cnt += i;
i551drivers/char/n_tty.ccp += i;
i552drivers/char/n_tty.ccount -= i;
i554drivers/char/n_tty.ci = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt,
i556drivers/char/n_tty.cmemcpy(tty->read_buf + tty->read_head, cp, i);
i557drivers/char/n_tty.ctty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1);
i558drivers/char/n_tty.ctty->read_cnt += i;
i560drivers/char/n_tty.cfor (i=count, p = cp, f = fp; i; i--, p++) {
i380drivers/char/psaux.cint i = count;
i382drivers/char/psaux.cwhile (i--) {
i402drivers/char/psaux.cint i = count;
i404drivers/char/psaux.cwhile (i--) {
i422drivers/char/psaux.cint i = count;
i438drivers/char/psaux.cwhile (i > 0 && !queue_empty()) {
i441drivers/char/psaux.ci--;
i444drivers/char/psaux.cif (count-i) {
i446drivers/char/psaux.creturn count-i;
i314drivers/char/random.cunsigned i;
i318drivers/char/random.ci = r->add_ptr = (r->add_ptr - 1) & (POOLWORDS-1);
i319drivers/char/random.cif (i)
i330drivers/char/random.cw ^= r->pool[(i+TAP1)&(POOLWORDS-1)];
i331drivers/char/random.cw ^= r->pool[(i+TAP2)&(POOLWORDS-1)];
i332drivers/char/random.cw ^= r->pool[(i+TAP3)&(POOLWORDS-1)];
i333drivers/char/random.cw ^= r->pool[(i+TAP4)&(POOLWORDS-1)];
i334drivers/char/random.cw ^= r->pool[(i+TAP5)&(POOLWORDS-1)];
i335drivers/char/random.cw ^= r->pool[i];
i337drivers/char/random.cr->pool[i] = (w << 1) | (w >> 31);
i575drivers/char/random.cint ret, i;
i599drivers/char/random.cfor (i = 0; i < POOLWORDS; i += 16)
i600drivers/char/random.cMD5Transform(tmp, r->pool+i);
i614drivers/char/random.ci = MIN(nbytes, 16);
i616drivers/char/random.cmemcpy_tofs(buf, (__u8 const *)tmp, i);
i618drivers/char/random.cmemcpy(buf, (__u8 const *)tmp, i);
i619drivers/char/random.cnbytes -= i;
i620drivers/char/random.cbuf += i;
i705drivers/char/random.cint i;
i708drivers/char/random.cfor (i = count, p = (__u32 *)buffer;
i709drivers/char/random.ci >= sizeof(__u32);
i710drivers/char/random.ci-= sizeof(__u32), p++) {
i714drivers/char/random.cif (i) {
i716drivers/char/random.cmemcpy_fromfs(&word, p, i);
i274drivers/char/scc.cint i;
i278drivers/char/scc.cfor (i = 0 ; i < MAX_IBUFS ; i++)
i285drivers/char/scc.callocated_ibufs = --i;
i290drivers/char/scc.cprintk("Warning: scc_alloc_buffer_pool() - allocated only %i buffers\n",i);
i295drivers/char/scc.csccfreelist[i] = sccb;
i296drivers/char/scc.csccfreelist[i]->bp = bp;
i297drivers/char/scc.cmemset(sccfreelist[i]->bp ,0,sizeof(struct mbuf));
i298drivers/char/scc.csccfreelist[i]->inuse = 0;
i299drivers/char/scc.csccfreelist[i]->bp->type = 0;
i300drivers/char/scc.csccfreelist[i]->bp->refcnt = 0;
i301drivers/char/scc.csccfreelist[i]->bp->size = BUFSIZE;
i308drivers/char/scc.cunsigned int i, used = 0;
i313drivers/char/scc.cfor (i = 0 ; i < allocated_ibufs ; i++)
i315drivers/char/scc.cif (sccfreelist[i]->inuse)
i317drivers/char/scc.cswitch (sccfreelist[i]->bp->type)
i337drivers/char/scc.cint i;
i342drivers/char/scc.cfor (i = 0 ; i < allocated_ibufs ; i++)
i344drivers/char/scc.cif(sccfreelist[i]->inuse == 0)
i346drivers/char/scc.csccfreelist[i]->inuse = 1;
i347drivers/char/scc.csccfreelist[i]->bp->type = type;
i348drivers/char/scc.csccfreelist[i]->bp->next = NULLBUF;
i349drivers/char/scc.csccfreelist[i]->bp->anext = NULLBUF;
i350drivers/char/scc.csccfreelist[i]->bp->dup = NULLBUF;
i351drivers/char/scc.csccfreelist[i]->bp->size = BUFSIZE;
i352drivers/char/scc.csccfreelist[i]->bp->refcnt = 1;
i353drivers/char/scc.csccfreelist[i]->bp->cnt = 0;
i354drivers/char/scc.csccfreelist[i]->bp->in_use = 0;
i357drivers/char/scc.creturn sccfreelist[i]->bp;
i375drivers/char/scc.cint i;
i386drivers/char/scc.cfor(i = 0 ; i < allocated_ibufs ; i++)
i388drivers/char/scc.cif(sccfreelist[i]->bp == bp->dup)
i390drivers/char/scc.cif (sccfreelist[i]->bp->type != type)
i393drivers/char/scc.ctype,sccfreelist[i]->bp->type);
i396drivers/char/scc.csccfreelist[i]->bp->cnt = 0;
i397drivers/char/scc.csccfreelist[i]->bp->refcnt = 0;
i398drivers/char/scc.csccfreelist[i]->bp->in_use = 0;
i399drivers/char/scc.csccfreelist[i]->inuse = 0;
i408drivers/char/scc.cfor(i = 0 ; i < allocated_ibufs ; i++)
i410drivers/char/scc.cif(sccfreelist[i]->bp == bp)
i412drivers/char/scc.cif (sccfreelist[i]->bp->type != type)
i415drivers/char/scc.ctype,sccfreelist[i]->bp->type);
i418drivers/char/scc.csccfreelist[i]->bp->cnt = 0;
i419drivers/char/scc.csccfreelist[i]->bp->refcnt = 0;
i420drivers/char/scc.csccfreelist[i]->inuse = 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)) {
i766drivers/char/serial.cunsigned int  i;
i769drivers/char/serial.cfor (i=1; i < 16; i++) {
i770drivers/char/serial.cinfo = IRQ_ports[i];
i781drivers/char/serial.cif (rs_multiport[i].port1)
i782drivers/char/serial.crs_interrupt_multi(i, NULL);
i784drivers/char/serial.crs_interrupt(i, NULL);
i786drivers/char/serial.crs_interrupt_single(i, NULL);
i821drivers/char/serial.cint      i, mask;
i823drivers/char/serial.cfor (i = 0, mask = 1; i < 16; i++, mask <<= 1) {
i824drivers/char/serial.cif (!(mask & dontgrab) && !request_irq(i, rs_probe, SA_INTERRUPT, "serial probe")) {
i836drivers/char/serial.cint  i;
i838drivers/char/serial.cfor (i = 0; i < 16; i++) {
i839drivers/char/serial.cif (irq_lines & (1 << i))
i840drivers/char/serial.cfree_irq(i);
i1117drivers/char/serial.cint  i;
i1124drivers/char/serial.ci = cflag & CBAUD;
i1125drivers/char/serial.cif (i & CBAUDEX) {
i1126drivers/char/serial.ci &= ~CBAUDEX;
i1127drivers/char/serial.cif (i < 1 || i > 2) 
i1130drivers/char/serial.ci += 15;
i1132drivers/char/serial.cif (i == 15) {
i1134drivers/char/serial.ci += 1;
i1136drivers/char/serial.ci += 2;
i1143drivers/char/serial.c} else if (baud_table[i] == 134) {
i1146drivers/char/serial.c} else if (baud_table[i]) {
i1147drivers/char/serial.cquot = info->baud_base / baud_table[i];
i1148drivers/char/serial.cinfo->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2;
i1467drivers/char/serial.cunsigned int    i,change_irq,change_port;
i1502drivers/char/serial.cfor (i = 0 ; i < NR_PORTS; i++)
i1503drivers/char/serial.cif ((info != &rs_table[i]) &&
i1504drivers/char/serial.c(rs_table[i].port == new_serial.port) &&
i1505drivers/char/serial.crs_table[i].type)
i1691drivers/char/serial.cint  i, mask;
i1716drivers/char/serial.cfor (i = 0, mask = 1; i < 16; i++, mask <<= 1) {
i1717drivers/char/serial.cif ((rs_triggered & (1 << i)) &&
i1718drivers/char/serial.c(irq_lines & (1 << i))) {
i1721drivers/char/serial.cprintk("Wild interrupt?  (IRQ %d)\n", i);
i2577drivers/char/serial.cint i;
i2588drivers/char/serial.cfor (i = 0; i < 16; i++) {
i2589drivers/char/serial.cIRQ_ports[i] = 0;
i2590drivers/char/serial.cIRQ_timeout[i] = 0;
i2591drivers/char/serial.cmemset(&rs_multiport[i], 0, sizeof(struct rs_multiport_struct));
i2645drivers/char/serial.cfor (i = 0, info = rs_table; i < NR_PORTS; i++,info++) {
i2647drivers/char/serial.cinfo->line = i;
i2707drivers/char/serial.cint i;
i2713drivers/char/serial.cfor (i = 0; i < NR_PORTS; i++) {
i2714drivers/char/serial.cif (rs_table[i].port == req->port)
i2717drivers/char/serial.cif (i == NR_PORTS) {
i2718drivers/char/serial.cfor (i = 0; i < NR_PORTS; i++)
i2719drivers/char/serial.cif ((rs_table[i].type == PORT_UNKNOWN) &&
i2720drivers/char/serial.c(rs_table[i].count == 0))
i2723drivers/char/serial.cif (i == NR_PORTS) {
i2727drivers/char/serial.cinfo = &rs_table[i];
i2728drivers/char/serial.cif (rs_table[i].count) {
i2731drivers/char/serial.c"device already open\n", i, req->port, req->irq);
i533drivers/char/stallion.cint    i, j, k;
i550drivers/char/stallion.ci = tty_unregister_driver(&stl_serial);
i552drivers/char/stallion.cif (i || j) {
i553drivers/char/stallion.cprintk("STALLION: failed to un-register tty driver, errno=%d,%d\n", -i, -j);
i561drivers/char/stallion.cfor (i = 0; (i < stl_nrbrds); i++) {
i562drivers/char/stallion.cbrdp = stl_brds[i];
i594drivers/char/stallion.cstl_brds[i] = (stlbrd_t *) NULL;
i597drivers/char/stallion.cfor (i = 0; (i < stl_numintrs); i++)
i598drivers/char/stallion.cfree_irq(stl_gotintrs[i]);
i1759drivers/char/stallion.cint    i, panelnr, iobase;
i1766drivers/char/stallion.cfor (i = 0; (i < stl_nrbrds); ) {
i1767drivers/char/stallion.cif ((brdp = stl_brds[i]) == (stlbrd_t *) NULL) {
i1768drivers/char/stallion.ci++;
i1772drivers/char/stallion.ci++;
i1782drivers/char/stallion.ci++;
i1795drivers/char/stallion.ci++;
i1811drivers/char/stallion.ci++;
i1832drivers/char/stallion.ci++;
i1841drivers/char/stallion.ci++;
i1856drivers/char/stallion.ci++;
i1865drivers/char/stallion.ci++;
i1938drivers/char/stallion.cint  i;
i1940drivers/char/stallion.cfor (i = 0; (i < CCR_MAXWAIT); i++) {
i2359drivers/char/stallion.cint  rc, i;
i2366drivers/char/stallion.cfor (i = 0; (i < stl_numintrs); i++) {
i2367drivers/char/stallion.cif (stl_gotintrs[i] == irq)
i2370drivers/char/stallion.cif (i >= stl_numintrs) {
i2395drivers/char/stallion.cint    i, j;
i2408drivers/char/stallion.cfor (i = 0; (i < nrchips); i++) {
i2410drivers/char/stallion.coutb((panelp->pagenr + (i >> 1)), brdp->ioctrl);
i2413drivers/char/stallion.cioaddr = panelp->iobase + (EREG_BANKSIZE * (i >> 1));
i2415drivers/char/stallion.cuartaddr = (i & 0x01) ? 0x080 : 0;
i2427drivers/char/stallion.cprintk("STALLION: cd1400 not responding, brd=%d panel=%d chip=%d\n", panelp->brdnr, panelp->panelnr, i);
i2430drivers/char/stallion.cchipmask |= (0x1 << i);
i2441drivers/char/stallion.cfor (i = 0; (i < panelp->nrports); i++) {
i2443drivers/char/stallion.coutb((panelp->pagenr + (i >> 3)), brdp->ioctrl);
i2446drivers/char/stallion.cioaddr = panelp->iobase + (EREG_BANKSIZE * (i >> 3));
i2448drivers/char/stallion.cif ((chipmask & (0x1 << (i / 4))) == 0)
i2456drivers/char/stallion.cportp->portnr = i;
i2460drivers/char/stallion.cportp->uartaddr = (i & 0x04) << 5;
i2461drivers/char/stallion.cportp->pagenr = panelp->pagenr + (i >> 3);
i2469drivers/char/stallion.cstl_setreg(portp, CAR, (i & 0x03));
i2470drivers/char/stallion.cstl_setreg(portp, LIVR, (i << 3));
i2471drivers/char/stallion.cpanelp->ports[i] = portp;
i2554drivers/char/stallion.cint    panelnr, ioaddr, i;
i2616drivers/char/stallion.cfor (i = 0; (i < STL_MAXPANELS); i++) {
i2659drivers/char/stallion.ci = stl_mapirq(brdp->irq);
i2660drivers/char/stallion.creturn(i);
i2674drivers/char/stallion.cint  i;
i2700drivers/char/stallion.cfor (i = 0; (i < STL_MAXPANELS); i++)
i2701drivers/char/stallion.cif (brdp->panels[i] != (stlpanel_t *) NULL)
i2702drivers/char/stallion.cstl_initports(brdp, brdp->panels[i]);
i2723drivers/char/stallion.cint    i, rc;
i2730drivers/char/stallion.cfor (i = 0; (i < STL_MAXBRDS); i++) {
i2731drivers/char/stallion.cif (pcibios_find_device(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_87410, i, &busnr, &devnr))
i2818drivers/char/stallion.cint    i;
i2833drivers/char/stallion.cfor (i = 0; (i < stl_nrbrds); i++) {
i2834drivers/char/stallion.cconfp = &stl_brdconf[i];
i2842drivers/char/stallion.cbrdp->brdnr = i;
i206drivers/char/tga.cint i, j;
i212drivers/char/tga.cfor (i = 0; i < 16; i++) {
i213drivers/char/tga.cj = color_table[i];
i222drivers/char/tga.cfor (i = 0; i < 16; i++) {
i223drivers/char/tga.cj = color_table[i];
i387drivers/char/tga.cint i;
i389drivers/char/tga.ci = verify_area(set ? VERIFY_READ : VERIFY_WRITE, (void *)arg, 16*3);
i390drivers/char/tga.cif (i)
i391drivers/char/tga.creturn i;
i393drivers/char/tga.cfor (i=0; i<16; i++) {
i395drivers/char/tga.cdefault_red[i] = get_user(arg++) ;
i396drivers/char/tga.cdefault_grn[i] = get_user(arg++) ;
i397drivers/char/tga.cdefault_blu[i] = get_user(arg++) ;
i399drivers/char/tga.cput_user (default_red[i], arg++) ;
i400drivers/char/tga.cput_user (default_grn[i], arg++) ;
i401drivers/char/tga.cput_user (default_blu[i], arg++) ;
i405drivers/char/tga.cfor (i=0; i<MAX_NR_CONSOLES; i++)
i406drivers/char/tga.cif (vc_cons_allocated(i)) {
i409drivers/char/tga.cvc_cons[i].d->vc_palette[k++] = default_red[j];
i410drivers/char/tga.cvc_cons[i].d->vc_palette[k++] = default_grn[j];
i411drivers/char/tga.cvc_cons[i].d->vc_palette[k++] = default_blu[j];
i526drivers/char/tga.cint i, j, temp;
i552drivers/char/tga.cfor (i = 0; i <= 6; i++) {
i554drivers/char/tga.ctemp = (PLLbits[i] >> (7-j)) & 1;
i555drivers/char/tga.cif (i == 6 && j == 7)
i587drivers/char/tga.cfor (i = 0; i < 16; i++) {
i588drivers/char/tga.cj = color_table[i];
i596drivers/char/tga.cfor (i = 0; i < 240*3; i += 4) {
i625drivers/char/tga.cfor (i = 0; i < 512; i++) {
i628drivers/char/tga.cfor (i = 0; i < 512; i++) {
i661drivers/char/tga.cfor (i = 0; i < 16; i++) {
i662drivers/char/tga.cj = color_table[i];
i670drivers/char/tga.cfor (i = 0; i < 512*3; i += 4) {
i691drivers/char/tga.cfor (i = 0; i < 16; i++) {
i724drivers/char/tga.cfor (i = 0; i < 256; i++) {
i725drivers/char/tga.cwritel(bt463_cursor_source[i], temp + i*4);
i743drivers/char/tga.cregister int i, j;
i747drivers/char/tga.cfor (i = 0; i < tga_fb_height; i++, dst += tga_fb_stride) {
i793drivers/char/tga.cregister int i, j, stride;
i805drivers/char/tga.ci = (c & 0xff) << 4; /* NOTE: assumption of 16 bytes per character bitmap */
i821drivers/char/tga.cfont_row = (unsigned char *)&tga_builtin_font[i];
i855drivers/char/tga.cfor ( i = 0; i < TGA_F_HEIGHT_PADDED; i++ ) {
i856drivers/char/tga.cif (i < TGA_F_HEIGHT) {
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);
i2557drivers/char/tpqic02.cshort i;
i2619drivers/char/tpqic02.cfor (i=0; i<sizeof(qic02_tape_dynconf); i++) 
i2646drivers/char/tpqic02.cfor (i=0; i<sizeof(qic02_tape_dynconf); i++)
i2678drivers/char/tpqic02.cfor (i=0; i<sizeof(operation); i++)
i2740drivers/char/tpqic02.cfor (i=0; i<sizeof(ioctl_status); i++) 
i2773drivers/char/tpqic02.cfor (i=0; i<sizeof(ioctl_tell); i++) 
i162drivers/char/tty_io.cint i, count = 0;
i164drivers/char/tty_io.cfor (f = first_file, i=0; i<nr_files; i++, f = f->f_next) {
i347drivers/char/tty_io.cint i;
i354drivers/char/tty_io.cfor (filp = first_file, i=0; i<nr_files; i++, filp = filp->f_next) {
i388drivers/char/tty_io.ci = (tty->ldisc.open)(tty);
i389drivers/char/tty_io.cif (i < 0)
i391drivers/char/tty_io.c-i);
i696drivers/char/tty_io.cint i;
i723drivers/char/tty_io.ci = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count);
i725drivers/char/tty_io.ci = -EIO;
i726drivers/char/tty_io.cif (i > 0)
i728drivers/char/tty_io.creturn i;
i733drivers/char/tty_io.cint i, is_console;
i759drivers/char/tty_io.ci = (tty->ldisc.write)(tty,file,(const unsigned char *)buf,(unsigned int)count);
i761drivers/char/tty_io.ci = -EIO;
i762drivers/char/tty_io.cif (i > 0)
i764drivers/char/tty_io.creturn i;
i1317drivers/char/tty_io.cint i, n = 0;
i1319drivers/char/tty_io.ci = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct tstruct));
i1320drivers/char/tty_io.cif (i)
i1321drivers/char/tty_io.creturn i;
i1327drivers/char/tty_io.cfor (i=0 ; i<sizeof(struct task_struct) ; i++)
i1594drivers/char/tty_io.cint    i;
i1611drivers/char/tty_io.cfor (i=0; i < NR_OPEN; i++) {
i1612drivers/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;
i70drivers/char/vga.cint i, j ;
i76drivers/char/vga.cfor (i=j=0; i<16; i++) {
i77drivers/char/vga.coutb_p (color_table[i], dac_reg) ;
i167drivers/char/vga.cint i ;
i196drivers/char/vga.cfor (i=0; i<16; i++) {
i198drivers/char/vga.coutb_p (i, 0x3c0) ;
i199drivers/char/vga.coutb_p (i, 0x3c0) ;
i206drivers/char/vga.cfor (i=0; i<16; i++) {
i207drivers/char/vga.coutb_p (color_table[i], 0x3c8) ;
i208drivers/char/vga.coutb_p (default_red[i], 0x3c9) ;
i209drivers/char/vga.coutb_p (default_grn[i], 0x3c9) ;
i210drivers/char/vga.coutb_p (default_blu[i], 0x3c9) ;
i252drivers/char/vga.cint  i;
i257drivers/char/vga.cfor ( i = 0 ; i < 12 ; i++ )
i259drivers/char/vga.coutb_p(i, 0x3b4);
i260drivers/char/vga.coutb_p(herc_txt_tbl[i], 0x3b5);
i308drivers/char/vga.cint i;
i331drivers/char/vga.ci = verify_area(set ? VERIFY_READ : VERIFY_WRITE, (void *)arg,
i333drivers/char/vga.cif (i)
i334drivers/char/vga.creturn i;
i386drivers/char/vga.cfor (i=0; i<cmapsz ; i++)
i387drivers/char/vga.cscr_writeb(get_user(arg + i), charmap + i);
i389drivers/char/vga.cfor (i=0; i<cmapsz ; i++)
i390drivers/char/vga.cput_user(scr_readb(charmap + i), arg + i);
i403drivers/char/vga.cfor (i=0; i<cmapsz ; i++)
i404drivers/char/vga.c*(charmap+i) = get_user(arg+i);
i406drivers/char/vga.cfor (i=0; i<cmapsz ; i++)
i407drivers/char/vga.cput_user(*(charmap+i), arg+i);
i532drivers/char/vga.cint i;
i539drivers/char/vga.ci = verify_area(set ? VERIFY_READ : VERIFY_WRITE, (void *)arg, 16*3);
i540drivers/char/vga.cif (i)
i541drivers/char/vga.creturn i;
i543drivers/char/vga.cfor (i=0; i<16; i++) {
i545drivers/char/vga.cdefault_red[i] = get_user(arg++) ;
i546drivers/char/vga.cdefault_grn[i] = get_user(arg++) ;
i547drivers/char/vga.cdefault_blu[i] = get_user(arg++) ;
i549drivers/char/vga.cput_user (default_red[i], arg++) ;
i550drivers/char/vga.cput_user (default_grn[i], arg++) ;
i551drivers/char/vga.cput_user (default_blu[i], arg++) ;
i555drivers/char/vga.cfor (i=0; i<MAX_NR_CONSOLES; i++)
i556drivers/char/vga.cif (vc_cons_allocated(i)) {
i559drivers/char/vga.cvc_cons[i].d->vc_palette[k++] = default_red[j];
i560drivers/char/vga.cvc_cons[i].d->vc_palette[k++] = default_grn[j];
i561drivers/char/vga.cvc_cons[i].d->vc_palette[k++] = default_blu[j];
i33drivers/char/vt.c#define VT_IS_IN_USE(i)  (console_driver.table[i] && console_driver.table[i]->count)
i34drivers/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, (const 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);
i994drivers/char/vt.ci = con_set_font(NULL, 0);  /* Set font to default */
i995drivers/char/vt.cif (i) return i;
i997drivers/char/vt.ci = con_adjust_height(default_font_height);
i998drivers/char/vt.cif ( i > 0 ) kd_size_changed(i, 0);
i1012drivers/char/vt.ci = verify_area(VERIFY_WRITE, (void *)arg,
i1014drivers/char/vt.cif (i) return i;  
i1017drivers/char/vt.ci = cfdarg.charcount;
i1024drivers/char/vt.cif ( i < nchar )
i1051drivers/char/vt.ci = verify_area(VERIFY_READ, (void *)arg, sizeof(struct unimapinit));
i1052drivers/char/vt.cif (i)
i1053drivers/char/vt.creturn i;
i1066drivers/char/vt.ci = verify_area(VERIFY_READ, (void *)arg, sizeof(struct unimapdesc));
i1067drivers/char/vt.cif (i == 0) {
i1071drivers/char/vt.ci = verify_area(VERIFY_READ, (void *) list,
i1074drivers/char/vt.cif (i)
i1075drivers/char/vt.creturn i;
i1084drivers/char/vt.ci = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct unimapdesc));
i1085drivers/char/vt.cif (i == 0) {
i1090drivers/char/vt.ci = verify_area(VERIFY_WRITE, (void *) list,
i1093drivers/char/vt.cif (i)
i1094drivers/char/vt.creturn i;
i194drivers/net/3c501.cint i;
i202drivers/net/3c501.cfor (i = 0; netcard_portlist[i]; i++) {
i203drivers/net/3c501.cint ioaddr = netcard_portlist[i];
i223drivers/net/3c501.cint i;
i226drivers/net/3c501.cfor (i = 0; i < 6; i++) {
i227drivers/net/3c501.coutw(i, ioaddr + EL1_DATAPTR);
i228drivers/net/3c501.cstation_addr[i] = inb(ioaddr + EL1_SAPROM);
i607drivers/net/3c501.cint i;
i608drivers/net/3c501.cfor (i = 0; i < 6; i++)  /* Set the station address. */
i609drivers/net/3c501.coutb(dev->dev_addr[i], ioaddr + i);
i102drivers/net/3c503.cint i;
i105drivers/net/3c503.cfor(i = 7; i >= 0; i--, base_bits >>= 1)
i110drivers/net/3c503.cif (check_region(netcard_portlist[i], EL2_IO_EXTENT))
i112drivers/net/3c503.cif (el2_probe1(dev, netcard_portlist[i]) == 0)
i128drivers/net/3c503.cint i;
i136drivers/net/3c503.cfor (i = 0; netcard_portlist[i]; i++) {
i137drivers/net/3c503.cint ioaddr = netcard_portlist[i];
i154drivers/net/3c503.cint i, iobase_reg, membase_reg, saved_406, wordlength;
i206drivers/net/3c503.cfor (i = 0; i < 6; i++)
i207drivers/net/3c503.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
i250drivers/net/3c503.cfor (i = sizeof(test_val); i < EL2_MEMSIZE; i+=sizeof(test_val)) {
i251drivers/net/3c503.cwritel(test_val, mem_base + i);
i253drivers/net/3c503.c|| readl(mem_base + i) != test_val) {
i260drivers/net/3c503.cwritel(0, mem_base + i);
i431drivers/net/3c503.cint i;        /* Buffer index */
i456drivers/net/3c503.cfor(i = 0; i < count; i++) {
i457drivers/net/3c503.cif (i % 8 == 0)
i459drivers/net/3c503.cif (++boguscount > (i<<3) + 32) {
i461drivers/net/3c503.cdev->name, i, count, boguscount);
i465drivers/net/3c503.coutb(buf[i], E33G_FIFOH);
i476drivers/net/3c503.cunsigned int i;
i491drivers/net/3c503.cfor(i = 0; i < sizeof(struct e8390_pkt_hdr); i++)
i492drivers/net/3c503.c((char *)(hdr))[i] = inb_p(E33G_FIFOH);
i503drivers/net/3c503.cunsigned int i;
i528drivers/net/3c503.cfor(i = 0; i < count; i++) {
i529drivers/net/3c503.cif (i % 8 == 0)
i531drivers/net/3c503.cif (++boguscount > (i<<3) + 32) {
i533drivers/net/3c503.cdev->name, i, count, boguscount);
i537drivers/net/3c503.c(skb->data)[i] = inb_p(E33G_FIFOH);
i324drivers/net/3c505.cint i;
i349drivers/net/3c505.cfor (i = 0; cont && (i < pcb->length); i++) {
i350drivers/net/3c505.coutb_command(pcb->data.raw[i], dev->base_addr);
i363drivers/net/3c505.ci = GET_ASF(dev->base_addr);
i364drivers/net/3c505.cif ((i == ASF_PCB_ACK) || (i == ASF_PCB_NAK))
i368drivers/net/3c505.cif (i == ASF_PCB_ACK) {
i372drivers/net/3c505.celse if (i == ASF_PCB_NAK) {
i402drivers/net/3c505.cint i, j;
i441drivers/net/3c505.ci = 0;
i446drivers/net/3c505.cpcb->data.raw[i++] = inb_command(dev->base_addr);
i447drivers/net/3c505.cif (i > MAX_PCB_DATA)
i448drivers/net/3c505.cINVALID_PCB_MSG(i);
i457drivers/net/3c505.ctotal_length = pcb->data.raw[--i];
i553drivers/net/3c505.cregister int i;
i584drivers/net/3c505.cfor (i = 0; i < (rlen/2); i++) {
i606drivers/net/3c505.cfor (i = 0; i < (rlen/2); i++) { 
i613drivers/net/3c505.cfilename,__LINE__, i, rlen/2);  
i944drivers/net/3c505.cint i;
i978drivers/net/3c505.cfor (i = 0; i < (nlen/2);i++) {
i985drivers/net/3c505.cdev->name,filename,__LINE__, i, nlen/2);
i1179drivers/net/3c505.cint i;
i1189drivers/net/3c505.cfor (i=0;i<num_addrs;i++)
i1190drivers/net/3c505.cmemcpy(adapter->tx_pcb.data.multicast[i], addrs+6*i,6);
i1383drivers/net/3c505.cint i;
i1446drivers/net/3c505.cfor (i = 0; i < 6; i++) 
i1447drivers/net/3c505.cdev->dev_addr[i] = adapter.rx_pcb.data.eth_addr[i];
i307drivers/net/3c507.cint i;
i314drivers/net/3c507.cfor (i = 0; netcard_portlist[i]; i++) {
i315drivers/net/3c507.cint ioaddr = netcard_portlist[i];
i328drivers/net/3c507.cint i, irq, irqval;
i334drivers/net/3c507.cfor(i = 0; i < 255; i++) {
i375drivers/net/3c507.cfor (i = 0; i < 6; i++) {
i376drivers/net/3c507.cdev->dev_addr[i] = inb(ioaddr + i);
i377drivers/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));
i184drivers/net/3c509.cfor(i = 0; i < 255; i++) {
i203drivers/net/3c509.cfor (i = 0; i < 3; i++) {
i204drivers/net/3c509.cphys_addr[i] = htons(id_read_eeprom(i));
i244drivers/net/3c509.cfor (i = 0; i < 6; i++)
i245drivers/net/3c509.cprintk(" %2.2x", dev->dev_addr[i]);
i313drivers/net/3c509.cint i;
i339drivers/net/3c509.cfor (i = 0; i < 6; i++)
i340drivers/net/3c509.coutb(dev->dev_addr[i], ioaddr + i);
i354drivers/net/3c509.cfor (i = 0; i < 9; i++)
i355drivers/net/3c509.cinb(ioaddr + i);
i457drivers/net/3c509.cint i = 4;
i459drivers/net/3c509.cwhile (--i > 0  &&  (tx_status = inb(ioaddr + TX_STATUS)) > 0) {
i475drivers/net/3c509.cint i = 0;
i508drivers/net/3c509.cif (++i > 10) {
i632drivers/net/8390.cint i;
i661drivers/net/8390.cfor(i = 0; i < 6; i++) {
i662drivers/net/8390.coutb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i);
i666drivers/net/8390.cfor(i = 0; i < 8; i++)
i667drivers/net/8390.coutb_p(0xff, e8390_base + EN1_MULT + i);
i116drivers/net/ac3200.cint i;
i121drivers/net/ac3200.cfor(i = 0; i < 6; i++)
i122drivers/net/ac3200.cprintk(" %02x", inb(ioaddr + AC_SA_PROM + i));
i137drivers/net/ac3200.cfor (i = 0; i < 4; i++)
i151drivers/net/ac3200.cfor(i = 0; i < ETHER_ADDR_LEN; i++)
i152drivers/net/ac3200.cdev->dev_addr[i] = inb(ioaddr + AC_SA_PROM + i);
i185drivers/net/ac3200.cfor (i = 0; i < 7; i++)
i186drivers/net/ac3200.cif (addrmap[i] == dev->mem_start)
i188drivers/net/ac3200.cif (i >= 7)
i189drivers/net/ac3200.ci = 0;
i190drivers/net/ac3200.coutb((inb(ioaddr + AC_CONFIG) & ~7) | i, ioaddr + AC_CONFIG);
i200drivers/net/apricot.cint i;
i207drivers/net/apricot.cfor (i = 0; i < num; i++)
i216drivers/net/apricot.cif (i == 0)
i228drivers/net/apricot.cif (i != 0)
i231drivers/net/apricot.creturn (i);
i537drivers/net/apricot.cint i;
i547drivers/net/apricot.ci = init_rx_bufs(dev, RX_RING_SIZE);
i549drivers/net/apricot.cif ((i = init_rx_bufs(dev, RX_RING_SIZE)) < RX_RING_SIZE)
i550drivers/net/apricot.cprintk("%s: only able to allocate %d receive buffers\n", dev->name, i);
i552drivers/net/apricot.cif (i < 4)
i666drivers/net/apricot.cint i;
i669drivers/net/apricot.cfor (i = 0; i < 6; i++)
i670drivers/net/apricot.cprintk(" %2.2X", (unsigned char)add[i]);
i674drivers/net/apricot.cfor (i = 0; i < 6; i++)
i675drivers/net/apricot.cprintk(" %2.2X", (unsigned char)add[i+6]);
i682drivers/net/apricot.cint i;
i694drivers/net/apricot.cfor (i = 0; i < 8; i++)
i696drivers/net/apricot.ceth_addr[i] = inb(ioaddr+8+i);
i697drivers/net/apricot.cchecksum += eth_addr[i];
i718drivers/net/apricot.cfor (i = 0; i < 6; i++)
i719drivers/net/apricot.cprintk(" %2.2X", dev->dev_addr[i] = eth_addr[i]);
i1042drivers/net/arcnet.cint i;
i1043drivers/net/arcnet.cfor (i=0; i<DEV_NUMBUFFS; i++)
i1044drivers/net/arcnet.cskb_queue_head_init(&dev->buffs[i]);
i1394drivers/net/arcnet.cshort i;
i1395drivers/net/arcnet.cfor( i=0; i< skb->len; i++)
i1397drivers/net/arcnet.cif( i%16 == 0 ) printk("\n[%04hX] ",i);
i1398drivers/net/arcnet.cprintk("%02hX ",((unsigned char*)skb->data)[i]);
i1629drivers/net/arcnet.cshort i;
i1630drivers/net/arcnet.cfor(i=0; i<skb->len; i++)
i1632drivers/net/arcnet.cif( i%16 == 0 ) printk("\n[%04hX] ",i);
i1633drivers/net/arcnet.cprintk("%02hX ",((unsigned char*)skb->data)[i]);
i2368drivers/net/arcnet.cshort i;
i2369drivers/net/arcnet.cfor( i=0; i< skb->len; i++)
i2371drivers/net/arcnet.cif( i%16 == 0 ) printk("\n[%04hX] ",i);
i2372drivers/net/arcnet.cprintk("%02hX ",((unsigned char*)skb->data)[i]);
i2541drivers/net/arcnet.cshort i;
i2542drivers/net/arcnet.cfor(i=0; i<skb->len; i++)
i2544drivers/net/arcnet.cif( i%16 == 0 ) printk("\n[%04hX] ",i);
i2545drivers/net/arcnet.cprintk("%02hX ",((unsigned char*)skb->data)[i]);
i2588drivers/net/arcnet.cshort i;
i2590drivers/net/arcnet.cfor(i=0; i<skb->len; i++)
i2592drivers/net/arcnet.cif (i%16==0)
i2593drivers/net/arcnet.cprintk("\n[%04hX] ",i);
i2595drivers/net/arcnet.cprintk("%02hX ",((u_char *)skb->data)[i]);
i2648drivers/net/arcnet.cshort i;
i2649drivers/net/arcnet.cfor(i=0; i<skb->len; i++)
i2651drivers/net/arcnet.cif( i%16 == 0 ) printk("\n[%04hX] ",i);
i2652drivers/net/arcnet.cprintk("%02hX ",((unsigned char*)skb->data)[i]);
i142drivers/net/at1700.cint i;
i150drivers/net/at1700.cfor (i = 0; at1700_probe_list[i]; i++) {
i151drivers/net/at1700.cint ioaddr = at1700_probe_list[i];
i173drivers/net/at1700.cunsigned int i, irq;
i216drivers/net/at1700.cfor(i = 0; i < 3; i++) {
i217drivers/net/at1700.cunsigned short eeprom_val = read_eeprom(ioaddr, 4+i);
i219drivers/net/at1700.c((unsigned short *)dev->dev_addr)[i] = ntohs(eeprom_val);
i238drivers/net/at1700.cfor (i = 0; i < 6; i++)
i239drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
i243drivers/net/at1700.cfor (i = 0; i < 8; i++)
i244drivers/net/at1700.coutb(0x00, ioaddr + 8 + i);
i280drivers/net/at1700.cint i;
i290drivers/net/at1700.cfor (i = 9; i >= 0; i--) {
i291drivers/net/at1700.cshort dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0;
i300drivers/net/at1700.cfor (i = 16; i > 0; i--) {
i323drivers/net/at1700.cint i;
i329drivers/net/at1700.cfor (i = 0; i < 6; i++)
i330drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
i334drivers/net/at1700.cfor (i = 0; i < 8; i++)
i335drivers/net/at1700.coutb(0x00, ioaddr + 8 + i);
i557drivers/net/at1700.cint i;
i558drivers/net/at1700.cfor (i = 0; i < 20; i++) {
i567drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), i);
i265drivers/net/atp.cint i;
i274drivers/net/atp.cfor (i = 0; i < 3; i++)
i275drivers/net/atp.c((unsigned short *)dev->dev_addr)[i] =
i276drivers/net/atp.cntohs(eeprom_op(ioaddr, EE_READ(sa_offset + i)));
i346drivers/net/atp.cint i;
i350drivers/net/atp.cfor (i = 0; i < 6; i++)
i351drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]);
i585drivers/net/atp.cint i;
i586drivers/net/atp.cfor (i = 0; i < 6; i++)
i587drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]);
i615drivers/net/atp.cint i;
i620drivers/net/atp.cfor (i = 0; i < 6; i++)
i622drivers/net/atp.cif (read_cmd_byte(ioaddr, PAR0 + i) != atp_timed_dev->dev_addr[i])
i625drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, atp_timed_dev->dev_addr[i]);
i626drivers/net/atp.cif (i == 2)
i628drivers/net/atp.celse if (i == 3)
i630drivers/net/atp.celse if (i == 4)
i636drivers/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);
i479drivers/net/de4x5.cint i;\
i480drivers/net/de4x5.ci=inl(DE4X5_BMR);\
i482drivers/net/de4x5.coutl(i | BMR_SWR, DE4X5_BMR);\
i484drivers/net/de4x5.coutl(i, DE4X5_BMR);\
i486drivers/net/de4x5.cfor (i=0;i<5;i++) {inl(DE4X5_BMR); dce_ms_delay(1);}\
i526drivers/net/de4x5.cint tmpbus, tmpchs, i, j, status=0;
i567drivers/net/de4x5.cfor (i = 0; i < ETH_ALEN - 1; i++) {       /* get the ethernet addr. */
i568drivers/net/de4x5.cprintk("%2.2x:", dev->dev_addr[i]);
i570drivers/net/de4x5.cprintk("%2.2x,\n", dev->dev_addr[i]);
i628drivers/net/de4x5.cfor (i=0; i<NUM_RX_DESC; i++) {
i629drivers/net/de4x5.clp->rx_ring[i].status = 0;
i630drivers/net/de4x5.clp->rx_ring[i].des1 = RX_BUFF_SZ;
i631drivers/net/de4x5.clp->rx_ring[i].buf = virt_to_bus(tmp + i * RX_BUFF_SZ);
i632drivers/net/de4x5.clp->rx_ring[i].next = (u32)NULL;
i671drivers/net/de4x5.cfor (dev->irq=0,i=0; (i<sizeof(de4x5_irq)) && (!dev->irq); i++) {
i672drivers/net/de4x5.cif (irqnum == de4x5_irq[i]) {
i755drivers/net/de4x5.cint i, status = 0;
i780drivers/net/de4x5.cfor (i=0;i<6;i++){
i781drivers/net/de4x5.cprintk("%2.2x:",(short)dev->dev_addr[i]);
i787drivers/net/de4x5.cfor (i=0;i<lp->rxRingSize-1;i++){
i788drivers/net/de4x5.cif (i < 3) {
i789drivers/net/de4x5.cprintk("0x%8.8lx  ",(u_long)&lp->rx_ring[i].status);
i792drivers/net/de4x5.cprintk("...0x%8.8lx\n",(u_long)&lp->rx_ring[i].status);
i794drivers/net/de4x5.cfor (i=0;i<lp->txRingSize-1;i++){
i795drivers/net/de4x5.cif (i < 3) {
i796drivers/net/de4x5.cprintk("0x%8.8lx  ", (u_long)&lp->tx_ring[i].status);
i799drivers/net/de4x5.cprintk("...0x%8.8lx\n", (u_long)&lp->tx_ring[i].status);
i801drivers/net/de4x5.cfor (i=0;i<lp->rxRingSize-1;i++){
i802drivers/net/de4x5.cif (i < 3) {
i803drivers/net/de4x5.cprintk("0x%8.8x  ",lp->rx_ring[i].buf);
i806drivers/net/de4x5.cprintk("...0x%8.8x\n",lp->rx_ring[i].buf);
i808drivers/net/de4x5.cfor (i=0;i<lp->txRingSize-1;i++){
i809drivers/net/de4x5.cif (i < 3) {
i810drivers/net/de4x5.cprintk("0x%8.8x  ", lp->tx_ring[i].buf);
i813drivers/net/de4x5.cprintk("...0x%8.8x\n", lp->tx_ring[i].buf);
i868drivers/net/de4x5.cint i, j, status = 0;
i893drivers/net/de4x5.cfor (i = 0; i < lp->rxRingSize; i++) {
i894drivers/net/de4x5.clp->rx_ring[i].status = R_OWN;
i897drivers/net/de4x5.cfor (i = 0; i < lp->txRingSize; i++) {
i898drivers/net/de4x5.clp->tx_ring[i].status = 0;
i914drivers/net/de4x5.cfor (j=0, i=jiffies;(i<=jiffies+HZ/100) && (j==0);) {
i944drivers/net/de4x5.cint i, status = 0;
i978drivers/net/de4x5.cfor (i=lp->tx_old; i!=lp->tx_new; i=(++i)%lp->txRingSize) {
i979drivers/net/de4x5.cif (lp->skb[i] != NULL) {
i980drivers/net/de4x5.cif (lp->skb[i]->len != FAKE_FRAME_LEN) {
i981drivers/net/de4x5.cif (lp->tx_ring[i].status == T_OWN) {
i982drivers/net/de4x5.cdev_queue_xmit(lp->skb[i], dev, SOPRI_NORMAL);
i984drivers/net/de4x5.cdev_kfree_skb(lp->skb[i], FREE_WRITE);
i987drivers/net/de4x5.cdev_kfree_skb(lp->skb[i], FREE_WRITE);
i989drivers/net/de4x5.clp->skb[i] = NULL;
i1130drivers/net/de4x5.cint i, entry;
i1169drivers/net/de4x5.cfor (i=1; i<DE4X5_PKT_STAT_SZ-1; i++) {
i1170drivers/net/de4x5.cif (pkt_len < (i*DE4X5_PKT_BIN_SZ)) {
i1171drivers/net/de4x5.clp->pktStats.bins[i]++;
i1172drivers/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;
i1489drivers/net/de4x5.cint i, maxSlots, status;
i1503drivers/net/de4x5.ci = 1;
i1507drivers/net/de4x5.ci = (ioaddr >> 12);
i1508drivers/net/de4x5.cmaxSlots = i + 1;
i1511drivers/net/de4x5.cfor (status = -ENODEV; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) {
i1810drivers/net/de4x5.cint i, linkBad;
i1816drivers/net/de4x5.cfor (linkBad=1,i=0;(i<t_3s) && linkBad && !(sisr & SISR_NCR);i++) {
i2034drivers/net/de4x5.cint i, entry, linkBad;
i2050drivers/net/de4x5.cfor (linkBad=1,i=0;(i<t_3s) && linkBad;i++) {
i2111drivers/net/de4x5.cs32 i = 2048, j;
i2116drivers/net/de4x5.ci = 8192;
i2118drivers/net/de4x5.ci = 819;
i2122drivers/net/de4x5.coutl((s32)(msec * 10000)/i, DE4X5_GPT);
i2132drivers/net/de4x5.cint i;
i2135drivers/net/de4x5.cfor (i=0; i<ETH_ALEN; i++) {             /* Use this source address */
i2136drivers/net/de4x5.c*buf++ = dev->dev_addr[i];
i2138drivers/net/de4x5.cfor (i=0; i<ETH_ALEN; i++) {             /* Use this destination address */
i2139drivers/net/de4x5.c*buf++ = dev->dev_addr[i];
i2163drivers/net/de4x5.cu_int i;
i2165drivers/net/de4x5.cfor (i=0; i<msec; i++) {
i2178drivers/net/de4x5.cu_int i;
i2197drivers/net/de4x5.cfor (i=0;(*signatures[i] != '\0') && (*name == '\0');i++) {
i2198drivers/net/de4x5.cif (strstr(ManCode, signatures[i]) != NULL) {
i2229drivers/net/de4x5.cint i, j, tmp, status = 0;
i2238drivers/net/de4x5.cfor (i=0,j=0;(j<sigLength) && (i<PROBE_LENGTH+sigLength-1);i++) {
i2262drivers/net/de4x5.cfor (i=0; i<(sizeof(struct de4x5_srom)>>1); i++) {
i2263drivers/net/de4x5.c*p++ = srom_rd(aprom_addr, i);
i2273drivers/net/de4x5.cint i, k, tmp, status = 0;
i2277drivers/net/de4x5.cfor (i=0,k=0,j=0;j<3;j++) {
i2285drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
i2288drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
i2290drivers/net/de4x5.cdev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++;
i2291drivers/net/de4x5.cdev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++;
i2295drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
i2297drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
i2356drivers/net/de4x5.cint i;
i2360drivers/net/de4x5.cfor (i=0; i<6; i++, a <<= 1) {
i2365drivers/net/de4x5.ci = (getfrom_srom(addr) >> 3) & 0x01;
i2366drivers/net/de4x5.cif (i != 0) {
i2376drivers/net/de4x5.cint i;
i2380drivers/net/de4x5.cfor (i=0; i<16; i++) {
i2429drivers/net/de4x5.cint i;
i2438drivers/net/de4x5.cfor (pa=lp->setup_frame+IMPERF_PA_OFFSET, i=0; i<ETH_ALEN; i++) {
i2439drivers/net/de4x5.c*(pa + i) = dev->dev_addr[i];                 /* Host address */
i2440drivers/net/de4x5.cif (i & 0x01) pa += 2;
i2444drivers/net/de4x5.cfor (i=0; i<ETH_ALEN; i++) { /* Host address */
i2445drivers/net/de4x5.c*(pa + (i&1)) = dev->dev_addr[i];
i2446drivers/net/de4x5.cif (i & 0x01) pa += 4;
i2448drivers/net/de4x5.cfor (i=0; i<ETH_ALEN; i++) { /* Broadcast address */
i2449drivers/net/de4x5.c*(pa + (i&1)) = (char) 0xff;
i2450drivers/net/de4x5.cif (i & 0x01) pa += 4;
i2504drivers/net/de4x5.cint i, j, status = 0;
i2518drivers/net/de4x5.cfor (i=0; i<ETH_ALEN; i++) {
i2519drivers/net/de4x5.ctmp.addr[i] = dev->dev_addr[i];
i2533drivers/net/de4x5.cfor (i=0; i<ETH_ALEN; i++) {
i2534drivers/net/de4x5.cdev->dev_addr[i] = tmp.addr[i];
i2676drivers/net/de4x5.cfor (i=0; i<ETH_ALEN; i++) {
i2677drivers/net/de4x5.ctmp.addr[j++] = dev->dev_addr[i];
i2683drivers/net/de4x5.cfor (i=0;i<lp->rxRingSize-1;i++){
i2684drivers/net/de4x5.cif (i < 3) {
i2685drivers/net/de4x5.ctmp.lval[j>>2] = (long)&lp->rx_ring[i].status; j+=4;
i2688drivers/net/de4x5.ctmp.lval[j>>2] = (long)&lp->rx_ring[i].status; 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] = (long)&lp->tx_ring[i].status; j+=4;
i2694drivers/net/de4x5.ctmp.lval[j>>2] = (long)&lp->tx_ring[i].status; j+=4;
i2696drivers/net/de4x5.cfor (i=0;i<lp->rxRingSize-1;i++){
i2697drivers/net/de4x5.cif (i < 3) {
i2698drivers/net/de4x5.ctmp.lval[j>>2] = (s32)lp->rx_ring[i].buf; j+=4;
i2701drivers/net/de4x5.ctmp.lval[j>>2] = (s32)lp->rx_ring[i].buf; j+=4;
i2702drivers/net/de4x5.cfor (i=0;i<lp->txRingSize-1;i++){
i2703drivers/net/de4x5.cif (i < 3) {
i2704drivers/net/de4x5.ctmp.lval[j>>2] = (s32)lp->tx_ring[i].buf; j+=4;
i2707drivers/net/de4x5.ctmp.lval[j>>2] = (s32)lp->tx_ring[i].buf; j+=4;
i2709drivers/net/de4x5.cfor (i=0;i<lp->rxRingSize;i++){
i2710drivers/net/de4x5.ctmp.lval[j>>2] = lp->rx_ring[i].status; j+=4;
i2712drivers/net/de4x5.cfor (i=0;i<lp->txRingSize;i++){
i2713drivers/net/de4x5.ctmp.lval[j>>2] = lp->tx_ring[i].status; j+=4;
i581drivers/net/de600.cint    i;
i622drivers/net/de600.cfor (i = size; i > 0; --i, ++buffer)
i640drivers/net/de600.cint  i;
i667drivers/net/de600.cfor (i = 0; i < ETH_ALEN; i++) {
i668drivers/net/de600.cdev->dev_addr[i] = de600_read_byte(READ_DATA, dev);
i669drivers/net/de600.cdev->broadcast[i] = 0xff;
i694drivers/net/de600.cfor (i = 1; i < ETH_ALEN; i++)
i695drivers/net/de600.cprintk(":%02X",dev->dev_addr[i]);
i720drivers/net/de600.cint  i;
i767drivers/net/de600.cfor (i = 0; i < ETH_ALEN; i++)
i768drivers/net/de600.cde600_put_byte(dev->dev_addr[i]);
i749drivers/net/de620.cint i;
i774drivers/net/de620.cfor (i = 0; i < 6; ++i) { /* W_PARn = 0xaa + n */
i775drivers/net/de620.cde620_set_register(dev, W_PAR0 + i, dev->dev_addr[i]);
i800drivers/net/de620.cif (((i = de620_get_register(dev, R_STS)) & CHECK_MASK) != CHECK_OK) {
i805drivers/net/de620.c"! (%02x)\n", i);
i838drivers/net/de620.cint i;
i877drivers/net/de620.cfor (i = 1; i < ETH_ALEN; i++) {
i878drivers/net/de620.cprintk(":%2.2X", dev->dev_addr[i] = nic_data.NodeID[i]);
i879drivers/net/de620.cdev->broadcast[i] = 0xff;
i446drivers/net/depca.cint i, j, offset, netRAM, mem_len, status=0;
i475drivers/net/depca.cfor (i=0; i<ETH_ALEN - 1; i++) { /* get the ethernet address */
i476drivers/net/depca.cprintk("%2.2x:", dev->dev_addr[i]);
i478drivers/net/depca.cprintk("%2.2x", dev->dev_addr[i]);
i537drivers/net/depca.cfor (i=0, j = lp->rxRingMask; j>0; i++) {
i540drivers/net/depca.clp->rx_rlen = (s32)(i << 29);
i541drivers/net/depca.cfor (i=0, j = lp->txRingMask; j>0; i++) {
i544drivers/net/depca.clp->tx_rlen = (s32)(i << 29);
i589drivers/net/depca.cfor (dev->irq=0,i=0; (depca_irq[i]) && (!dev->irq); i++) {
i590drivers/net/depca.cif (irqnum == depca_irq[i]) {
i653drivers/net/depca.cint i, status = 0;
i683drivers/net/depca.cfor (i=0;i<lp->rxRingMask;i++){
i684drivers/net/depca.cif (i < 3) {
i685drivers/net/depca.cprintk("0x%8.8lx ", (long) &lp->rx_ring[i].base);
i688drivers/net/depca.cprintk("...0x%8.8lx\n", (long) &lp->rx_ring[i].base);
i690drivers/net/depca.cfor (i=0;i<lp->txRingMask;i++){
i691drivers/net/depca.cif (i < 3) {
i692drivers/net/depca.cprintk("0x%8.8lx ", (long) &lp->tx_ring[i].base);
i695drivers/net/depca.cprintk("...0x%8.8lx\n", (long) &lp->tx_ring[i].base);
i697drivers/net/depca.cfor (i=0;i<lp->rxRingMask;i++){
i698drivers/net/depca.cif (i < 3) {
i699drivers/net/depca.cprintk("0x%8.8x  ", readl(&lp->rx_ring[i].base));
i702drivers/net/depca.cprintk("...0x%8.8x\n", readl(&lp->rx_ring[i].base));
i704drivers/net/depca.cfor (i=0;i<lp->txRingMask;i++){
i705drivers/net/depca.cif (i < 3) {
i706drivers/net/depca.cprintk("0x%8.8x  ", readl(&lp->tx_ring[i].base));
i709drivers/net/depca.cprintk("...0x%8.8x\n", readl(&lp->tx_ring[i].base));
i714drivers/net/depca.cfor (i=0;i<ETH_ALEN-1;i++){
i715drivers/net/depca.cprintk("%2.2x:",(u_char)readb(&p->phys_addr[i]));
i717drivers/net/depca.cprintk("%2.2x\n",(u_char)readb(&p->phys_addr[i]));
i719drivers/net/depca.cfor (i=0;i<(HASH_TABLE_LEN >> 3)-1;i++){
i720drivers/net/depca.cprintk("%2.2x:",(u_char)readb(&p->mcast_table[i]));
i722drivers/net/depca.cprintk("%2.2x\n",(u_char)readb(&p->mcast_table[i]));
i766drivers/net/depca.cu_int i;
i776drivers/net/depca.cfor (i = 0; i <= lp->rxRingMask; i++) {
i777drivers/net/depca.cwritel((p=lp->dma_buffs+i*RX_BUFF_SZ) | R_OWN, &lp->rx_ring[i].base);
i778drivers/net/depca.cwritew(-RX_BUFF_SZ, &lp->rx_ring[i].buf_length);
i779drivers/net/depca.clp->rx_memcpy[i]=(char *)(p+lp->bus_offset);
i781drivers/net/depca.cfor (i = 0; i <= lp->txRingMask; i++) {
i782drivers/net/depca.cwritel((p=lp->dma_buffs+(i+lp->txRingMask+1)*TX_BUFF_SZ) & 0x00ffffff,
i783drivers/net/depca.c&lp->tx_ring[i].base);
i784drivers/net/depca.clp->tx_memcpy[i]=(char *)(p+lp->bus_offset);
i793drivers/net/depca.cfor (i = 0; i < ETH_ALEN; i++) {
i794drivers/net/depca.clp->init_block.phys_addr[i] = dev->dev_addr[i];
i920drivers/net/depca.cint i, entry;
i966drivers/net/depca.cfor (i=1; i<DEPCA_PKT_STAT_SZ-1; i++) {
i967drivers/net/depca.cif (pkt_len < (i*DEPCA_PKT_BIN_SZ)) {
i968drivers/net/depca.clp->pktStats.bins[i]++;
i969drivers/net/depca.ci = DEPCA_PKT_STAT_SZ;
i1115drivers/net/depca.cint i, status=0;
i1124drivers/net/depca.cfor (i=0;(i<100) && !(inw(DEPCA_DATA) & IDON); i++); 
i1126drivers/net/depca.cif (i!=100) {
i1131drivers/net/depca.cdev->name, i, lp->sh_mem, inw(DEPCA_DATA));
i1135drivers/net/depca.cdev->name, i, lp->sh_mem, inw(DEPCA_DATA));
i1195drivers/net/depca.cint i, j, bit, byte;
i1200drivers/net/depca.cfor (i=0; i<(HASH_TABLE_LEN>>3); i++) {
i1201drivers/net/depca.clp->init_block.mcast_table[i] = (char)0xff;
i1205drivers/net/depca.cfor (i=0; i<(HASH_TABLE_LEN>>3); i++){
i1206drivers/net/depca.clp->init_block.mcast_table[i]=0;
i1210drivers/net/depca.cfor (i=0;i<num_addrs;i++) {            /* for each address in the list */
i1242drivers/net/depca.cint i = num_depcas, maxSlots;
i1247drivers/net/depca.cif (i >= MAX_NUM_DEPCAS) return;             /* Too many ISA adapters */
i1252drivers/net/depca.cports[i] = ioaddr;
i1253drivers/net/depca.cmaxSlots = i + 1;
i1256drivers/net/depca.cfor (; (i<maxSlots) && (dev!=NULL) && ports[i]; i++) {
i1257drivers/net/depca.cif (DevicePresent(ports[i]) == 0) { 
i1258drivers/net/depca.cif (check_region(ports[i], DEPCA_TOTAL_SIZE) == 0) {
i1259drivers/net/depca.cif ((dev = alloc_device(dev, ports[i])) != NULL) {
i1260drivers/net/depca.cif (depca_hw_init(dev, ports[i]) == 0) {
i1266drivers/net/depca.cprintk("%s: region already allocated at 0x%04x.\n", dev->name,ports[i]);
i1280drivers/net/depca.cint i, maxSlots;
i1289drivers/net/depca.ci = 1;
i1293drivers/net/depca.ci = (ioaddr >> 12);
i1294drivers/net/depca.cmaxSlots = i + 1;
i1298drivers/net/depca.cfor (; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) {
i1435drivers/net/depca.cu_int i,j,k;
i1439drivers/net/depca.cfor (i=0;i<16;i++) {                  /* copy the first 16 bytes of ROM to */
i1440drivers/net/depca.ctmpstr[i] = readb(paddr+0xc000+i);  /* a temporary string */
i1444drivers/net/depca.cfor (i=0;*signatures[i]!='\0' && *name=='\0';i++) {
i1445drivers/net/depca.cfor (j=0,k=0;j<16 && k<strlen(signatures[i]);j++) {
i1446drivers/net/depca.cif (signatures[i][k] == tmpstr[j]) {              /* track signature */
i1452drivers/net/depca.cif (k == strlen(signatures[i])) {
i1453drivers/net/depca.cstrcpy(name,signatures[i]);
i1457drivers/net/depca.cadapter = i - 1;
i1489drivers/net/depca.cint i, j, status = 0;
i1504drivers/net/depca.cfor (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) {
i1532drivers/net/depca.cint i, k, tmp, status = 0;
i1537drivers/net/depca.cfor (i=0,k=0,j=0;j<3;j++) {
i1542drivers/net/depca.cdev->dev_addr[i++] = (u_char) tmp;
i1544drivers/net/depca.cdev->dev_addr[i++] = (u_char) tmp;
i1563drivers/net/depca.cint i, entry, end, len, status = 0;
i1582drivers/net/depca.cfor (i = entry; i != end; i = (++i) & lp->txRingMask) {
i1584drivers/net/depca.cwritel(readl(&lp->tx_ring[i].base) & ~T_FLAGS, &lp->tx_ring[i].base);
i1585drivers/net/depca.cwritew(0x0000, &lp->tx_ring[i].misc);       /* clears other error flags */
i1586drivers/net/depca.cwritew(-TX_BUFF_SZ, &lp->tx_ring[i].length);/* packet length in buffer */
i1599drivers/net/depca.cfor (i=end; i!=entry; --i) {
i1601drivers/net/depca.cwritel(readl(&lp->tx_ring[i].base) | T_OWN, &lp->tx_ring[i].base);
i1602drivers/net/depca.cif (i == 0) i=lp->txRingMask+1;
i1619drivers/net/depca.cu_int i;
i1638drivers/net/depca.cfor (i=0;(*signatures[i] != '\0') && (*name == '\0');i++) {
i1639drivers/net/depca.cif (strstr(ManCode, signatures[i]) != NULL) {
i1656drivers/net/depca.cint i, status = 0;
i1666drivers/net/depca.cfor (i=0; i<ETH_ALEN; i++) {
i1667drivers/net/depca.ctmp.addr[i] = dev->dev_addr[i];
i1679drivers/net/depca.cfor (i=0; i<ETH_ALEN; i++) {
i1680drivers/net/depca.cdev->dev_addr[i] = tmp.addr[i];
i1795drivers/net/depca.ci=0;
i1796drivers/net/depca.ctmp.sval[i++] = inw(DEPCA_NICSR);
i1798drivers/net/depca.ctmp.sval[i++] = inw(DEPCA_DATA);
i1799drivers/net/depca.cmemcpy(&tmp.sval[i], &lp->init_block, sizeof(struct depca_init));
i1800drivers/net/depca.cioc->len = i+sizeof(struct depca_init);
i140drivers/net/e2100.cint i, status;
i158drivers/net/e2100.cfor (i = 0; i < 6; i++)
i159drivers/net/e2100.cstation_addr[i] = inb(ioaddr + E21_SAPROM + i);
i174drivers/net/e2100.cfor (i = 0; i < 6; i++)
i175drivers/net/e2100.cprintk(" %02X", station_addr[i]);
i178drivers/net/e2100.cint irqlist[] = {15,11,10,12,5,9,3,4}, i;
i179drivers/net/e2100.cfor (i = 0; i < 8; i++)
i180drivers/net/e2100.cif (request_irq (irqlist[i], NULL, 0, "bogus") != -EBUSY) {
i181drivers/net/e2100.cdev->irq = irqlist[i];
i184drivers/net/e2100.cif (i >= 8) {
i217drivers/net/e2100.cfor(i = 0; i < 6; i++)
i218drivers/net/e2100.cif (station_addr[i] != inb(ioaddr + E21_SAPROM + 8 + i)) {
i278drivers/net/eepro.cint i;
i286drivers/net/eepro.cfor (i = 0; eepro_portlist[i]; i++) {
i287drivers/net/eepro.cint ioaddr = eepro_portlist[i];
i305drivers/net/eepro.cint i;
i349drivers/net/eepro.cfor (i=0; i < 6; i++) {
i350drivers/net/eepro.cdev->dev_addr[i] = ((unsigned char *) station_addr)[5-i];
i351drivers/net/eepro.cprintk("%c%02x", i ? ':' : ' ', dev->dev_addr[i]);
i361drivers/net/eepro.ci = read_eeprom(ioaddr, 1);
i362drivers/net/eepro.cswitch (i & 0x07) {
i390drivers/net/eepro.ci = read_eeprom(ioaddr, 5);
i391drivers/net/eepro.cif (i & 0x2000) /* bit 13 of EEPROM word 5 */
i501drivers/net/eepro.cint i, ioaddr = dev->base_addr;
i529drivers/net/eepro.cfor (i=0; i < 6; i++) 
i530drivers/net/eepro.coutb(dev->dev_addr[i] , ioaddr + I_ADD_REG0 + i); 
i811drivers/net/eepro.cint i, boguscount = 0;
i829drivers/net/eepro.cfor (i = 0; i < num_addrs; i++) {
i842drivers/net/eepro.ci = lp->tx_end + XMT_HEADER + 6*(num_addrs + 1);
i847drivers/net/eepro.coutw(i, ioaddr + IO_PORT);
i851drivers/net/eepro.clp->tx_end = i ;
i852drivers/net/eepro.c} else lp->tx_start = lp->tx_end = i ;
i859drivers/net/eepro.ci = inb(ioaddr);
i861drivers/net/eepro.cif (i & 0x20) { /* command ABORTed */
i865drivers/net/eepro.c} else if ((i & 0x0f) == 0x03)  { /* MC-Done */
i890drivers/net/eepro.cint i;
i900drivers/net/eepro.cfor (i = 8; i >= 0; i--) {
i901drivers/net/eepro.cshort outval = (read_cmd & (1 << i)) ? ctrl_val | EEDI
i911drivers/net/eepro.cfor (i = 16; i > 0; i--) {
i322drivers/net/eexpress.cint i;
i324drivers/net/eexpress.cfor (i = 16; i > 0; i--)
i328drivers/net/eexpress.cfor (i = 4; i > 0; i--) {
i344drivers/net/eexpress.cint i;
i365drivers/net/eexpress.cfor (i = 0; i < 6; i++) {
i366drivers/net/eexpress.cdev->dev_addr[i] = ((unsigned char*)station_addr)[5-i];
i367drivers/net/eexpress.cprintk(" %02x", dev->dev_addr[i]);
i609drivers/net/eexpress.cint i;
i612drivers/net/eexpress.cfor (i = 0; i < 0x20; i += 2)
i712drivers/net/eexpress.cint i;
i721drivers/net/eexpress.cfor (i = 8; i >= 0; i--) {
i722drivers/net/eexpress.cshort outval = (read_cmd & (1 << i)) ? ctrl_val | EE_DATA_WRITE
i732drivers/net/eexpress.cfor (i = 16; i > 0; i--) {
i211drivers/net/eql.cint i;
i246drivers/net/eql.cfor (i = 0; i < DEV_NUMBUFFS; i++)
i247drivers/net/eql.cskb_queue_head_init(&dev->buffs[i]);
i984drivers/net/eql.cint i;
i988drivers/net/eql.cfor (i = 1, slave = eql_first_slave (queue);
i989drivers/net/eql.ci <= eql_number_slaves (queue);
i990drivers/net/eql.ci++, slave = eql_next_slave (queue, slave))
i1143drivers/net/eql.cint i;
i1149drivers/net/eql.cfor (i = 1, slave = eql_first_slave (eql->queue);
i1150drivers/net/eql.ci <= eql_number_slaves (eql->queue);
i1151drivers/net/eql.ci++, slave = eql_next_slave (eql->queue, slave))
i341drivers/net/eth16i.cint i;
i354drivers/net/eth16i.cfor(i = 0; (ioaddr = eth16i_portlist[i]) ; i++) {
i362drivers/net/eth16i.cfor(i = 0; (ioaddr = eth32i_portlist[i]) ; i++) {
i466drivers/net/eth16i.cint i, node_w = 0;
i471drivers/net/eth16i.cfor(i = 0 ; i < 3 ; i++) {
i472drivers/net/eth16i.cunsigned short node_val = eth16i_read_eeprom(ioaddr, E_NODEID_0 + i);
i473drivers/net/eth16i.c((unsigned short *)dev->dev_addr)[i] = ntohs(node_val);
i476drivers/net/eth16i.cfor(i = 0; i < 6; i++) { 
i477drivers/net/eth16i.coutb( ((unsigned char *)dev->dev_addr)[i], ioaddr + NODE_ID_0 + i);
i479drivers/net/eth16i.cprintk("%02x", inb(ioaddr + NODE_ID_0 + i));
i480drivers/net/eth16i.cif(i != 5)
i487drivers/net/eth16i.cfor(i = 0; i < 8; i++) 
i488drivers/net/eth16i.coutb(0x00, ioaddr + HASH_TABLE_0 + i);
i537drivers/net/eth16i.cint i;
i548drivers/net/eth16i.cfor(i = 0; i < 6; i++) {
i549drivers/net/eth16i.cdummy_packet[i] = inb(ioaddr + NODE_ID_0 + i);
i550drivers/net/eth16i.cdummy_packet[i+6] = inb(ioaddr + NODE_ID_0 + i);
i558drivers/net/eth16i.cfor(i = 0; i < 3; i++) {
i561drivers/net/eth16i.ceth16i_set_port(ioaddr, i);
i564drivers/net/eth16i.cprintk("Set port number %d\n", i);
i571drivers/net/eth16i.cprintk("Eth16i interface port found at %d\n", i);
i572drivers/net/eth16i.creturn i;
i693drivers/net/eth16i.cint i;
i696drivers/net/eth16i.cfor(i = 0; i < 4 ; i++) {
i698drivers/net/eth16i.ccreg[i] = inb(ioaddr + TRANSMIT_MODE_REG + i);
i701drivers/net/eth16i.cprintk("eth16i: read signature byte %x at %x\n", creg[i],
i702drivers/net/eth16i.cioaddr + TRANSMIT_MODE_REG + i);
i750drivers/net/eth16i.cint i;
i753drivers/net/eth16i.cfor(i = 16; i > 0; i--) {
i767drivers/net/eth16i.cint i;
i775drivers/net/eth16i.cfor(i = 7; i >= 0; i--) {
i776drivers/net/eth16i.cshort cmd = ( (command & (1 << i)) ? DI_1 : DI_0 );
i1052drivers/net/eth16i.cint i;
i1054drivers/net/eth16i.cfor(i = 0; i < 14; i++) 
i1055drivers/net/eth16i.cprintk(" %02x", skb->data[i]);
i1068drivers/net/eth16i.cint i;
i1070drivers/net/eth16i.cfor(i = 0; i < 20; i++) {
i332drivers/net/ewrk3.cint i;\
i334drivers/net/ewrk3.cfor (i=0;i<5000;i++) inb(EWRK3_CSR);\
i397drivers/net/ewrk3.cint i, status=0;
i422drivers/net/ewrk3.cfor (chksum=0, i=0; i<EEPROM_MAX; i+=2) {
i428drivers/net/ewrk3.ctmp.val = (short)Read_EEPROM(iobase, (i>>1));
i429drivers/net/ewrk3.ceeprom_image[i] = tmp.c[0];
i430drivers/net/ewrk3.ceeprom_image[i+1] = tmp.c[1];
i432drivers/net/ewrk3.cchksum += eeprom_image[i] + eeprom_image[i+1];
i469drivers/net/ewrk3.cfor (i = 0;i < ETH_ALEN - 1;i++) { /* get the ethernet address */
i470drivers/net/ewrk3.cprintk("%2.2x:", dev->dev_addr[i] = 
i471drivers/net/ewrk3.ceeprom_image[EEPROM_PADDR0 + i]);
i472drivers/net/ewrk3.coutb(eeprom_image[EEPROM_PADDR0 + i], EWRK3_PAR0 + i);
i474drivers/net/ewrk3.cprintk("%2.2x,\n",dev->dev_addr[i] = eeprom_image[EEPROM_PADDR0 + i]);
i475drivers/net/ewrk3.coutb(eeprom_image[EEPROM_PADDR0 + i], EWRK3_PAR0 + i);
i478drivers/net/ewrk3.cfor (i = 0; i < ETH_ALEN - 1; i++) { /* get the ethernet addr. */
i479drivers/net/ewrk3.cprintk("%2.2x:", dev->dev_addr[i] = inb(EWRK3_APROM));
i480drivers/net/ewrk3.coutb(dev->dev_addr[i], EWRK3_PAR0 + i);
i482drivers/net/ewrk3.cprintk("%2.2x,\n", dev->dev_addr[i] = inb(EWRK3_APROM));
i483drivers/net/ewrk3.coutb(dev->dev_addr[i], EWRK3_PAR0 + i);
i650drivers/net/ewrk3.cint i, iobase = dev->base_addr;
i675drivers/net/ewrk3.cfor (i=0;i<6;i++){
i676drivers/net/ewrk3.cprintk("%2.2x:",(short)dev->dev_addr[i]);
i843drivers/net/ewrk3.cint i;
i850drivers/net/ewrk3.cfor (i=0; i<skb->len; i++) {
i973drivers/net/ewrk3.cint i, iobase = dev->base_addr;
i1042drivers/net/ewrk3.cfor (i=0; i<pkt_len; i++) {
i1061drivers/net/ewrk3.cfor (i=1; i<EWRK3_PKT_STAT_SZ-1; i++) {
i1062drivers/net/ewrk3.cif (pkt_len < i*EWRK3_PKT_BIN_SZ) {
i1063drivers/net/ewrk3.clp->pktStats.bins[i]++;
i1064drivers/net/ewrk3.ci = EWRK3_PKT_STAT_SZ;
i1248drivers/net/ewrk3.cint i, iobase = dev->base_addr;
i1264drivers/net/ewrk3.cfor (i=0; i<(HASH_TABLE_LEN >> 3); i++) {
i1269drivers/net/ewrk3.ci++;
i1275drivers/net/ewrk3.cfor (i=0; i<(HASH_TABLE_LEN >> 4) - 1; i++) {
i1278drivers/net/ewrk3.coutb(0x80, EWRK3_DATA); i++;           /* insert the broadcast bit */
i1279drivers/net/ewrk3.cfor (; i<(HASH_TABLE_LEN >> 3); i++) {
i1288drivers/net/ewrk3.cfor (i=0;i<num_addrs;i++) {              /* for each address in the list */
i1330drivers/net/ewrk3.cint i, iobase, status;
i1333drivers/net/ewrk3.cfor (status = -ENODEV, iobase = EWRK3_IO_BASE,i = 0; 
i1334drivers/net/ewrk3.ci < 24;
i1335drivers/net/ewrk3.ciobase += EWRK3_IOP_INC, i++) {
i1373drivers/net/ewrk3.cint i, iobase = EWRK3_EISA_IO_PORTS;
i1377drivers/net/ewrk3.cfor (status = -ENODEV, i=1; i<MAX_EISA_SLOTS; i++, iobase+=EISA_SLOT_INC) {
i1386drivers/net/ewrk3.cmem_chkd |= (0x01 << (i + 24));
i1455drivers/net/ewrk3.cint i;
i1459drivers/net/ewrk3.cfor (i=0;i<5000;i++) inb(EWRK3_CSR);  /* wait 1msec */
i1469drivers/net/ewrk3.cint i;
i1472drivers/net/ewrk3.cfor (i=0;i<5000;i++) inb(EWRK3_CSR);  /* wait 1msec */
i1476drivers/net/ewrk3.cfor (i=0;i<75000;i++) inb(EWRK3_CSR); /* wait 15msec */
i1478drivers/net/ewrk3.cfor (i=0;i<5000;i++) inb(EWRK3_CSR);  /* wait 1msec */
i1488drivers/net/ewrk3.cunsigned long i,j,k;
i1492drivers/net/ewrk3.cfor (i=0;*signatures[i] != '\0' && *name == '\0';i++) {
i1493drivers/net/ewrk3.cfor (j=EEPROM_PNAME7,k=0;j<=EEPROM_PNAME0 && k<strlen(signatures[i]);j++) {
i1494drivers/net/ewrk3.cif (signatures[i][k] == eeprom_image[j]) {          /* track signature */
i1500drivers/net/ewrk3.cif (k == strlen(signatures[i])) {
i1521drivers/net/ewrk3.cint i, j, status = 0;
i1528drivers/net/ewrk3.cfor (i=0,j=0;devSig[i] != '\0' && !status;i+=2,j++) {
i1529drivers/net/ewrk3.cif ((devSig[i]=asc2hex(devSig[i]))>=0) {
i1530drivers/net/ewrk3.cdevSig[i]<<=4;
i1531drivers/net/ewrk3.cif((devSig[i+1]=asc2hex(devSig[i+1]))>=0){
i1532drivers/net/ewrk3.cdevSig[j]=devSig[i]+devSig[i+1];
i1553drivers/net/ewrk3.cfor (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) {
i1609drivers/net/ewrk3.cint i, j, iobase = dev->base_addr, status = 0;
i1619drivers/net/ewrk3.cfor (i=0; i<ETH_ALEN; i++) {
i1620drivers/net/ewrk3.ctmp.addr[i] = dev->dev_addr[i];
i1638drivers/net/ewrk3.cfor (i=0; i<ETH_ALEN; i++) {
i1639drivers/net/ewrk3.cdev->dev_addr[i] = tmp.addr[i];
i1640drivers/net/ewrk3.coutb(tmp.addr[i], EWRK3_PAR0 + i);
i1683drivers/net/ewrk3.cfor (i=0; i<(HASH_TABLE_LEN >> 3); i++) {
i1684drivers/net/ewrk3.ctmp.addr[i] = inb(EWRK3_DATA);
i1773drivers/net/ewrk3.cfor (i=0; i<(EEPROM_MAX>>1); i++) {
i1774drivers/net/ewrk3.ctmp.val[i] = (short)Read_EEPROM(iobase, i);
i1776drivers/net/ewrk3.ci = EEPROM_MAX;
i1777drivers/net/ewrk3.ctmp.addr[i++] = inb(EWRK3_CMR);            /* Config/Management Reg. */
i1779drivers/net/ewrk3.ctmp.addr[i++] = inb(EWRK3_PAR0 + j);
i1794drivers/net/ewrk3.cfor (i=0; i<(EEPROM_MAX>>1); i++) {
i1795drivers/net/ewrk3.cWrite_EEPROM(tmp.val[i], iobase, i);
i126drivers/net/hp-plus.cint i;
i134drivers/net/hp-plus.cfor (i = 0; hpplus_portlist[i]; i++) {
i135drivers/net/hp-plus.cint ioaddr = hpplus_portlist[i];
i149drivers/net/hp-plus.cint i;
i174drivers/net/hp-plus.cfor(i = 0; i < ETHER_ADDR_LEN; i++) {
i175drivers/net/hp-plus.cunsigned char inval = inb(ioaddr + 8 + i);
i176drivers/net/hp-plus.cdev->dev_addr[i] = inval;
i87drivers/net/hp.cint i;
i95drivers/net/hp.cfor (i = 0; hppclan_portlist[i]; i++) {
i96drivers/net/hp.cint ioaddr = hppclan_portlist[i];
i109drivers/net/hp.cint i, board_id, wordmode;
i143drivers/net/hp.cfor(i = 0; i < ETHER_ADDR_LEN; i++)
i144drivers/net/hp.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
i304drivers/net/hp100.cint i;
i334drivers/net/hp100.cfor ( i = uc = eisa_id = 0; i < 4; i++ )
i337drivers/net/hp100.cuc_1 = hp100_inb( BOARD_ID + i );
i353drivers/net/hp100.cfor ( i = 0; i < sizeof( hp100_eisa_ids ) / sizeof( struct hp100_eisa_id ); i++ )
i354drivers/net/hp100.cif ( ( hp100_eisa_ids[ i ].id & 0xf0ffffff ) == ( eisa_id & 0xf0ffffff ) )
i356drivers/net/hp100.cif ( i >= sizeof( hp100_eisa_ids ) / sizeof( struct hp100_eisa_id ) )
i361drivers/net/hp100.ceid = &hp100_eisa_ids[ i ];
i369drivers/net/hp100.cfor ( i = uc = 0; i < 7; i++ )
i370drivers/net/hp100.cuc += hp100_inb( LAN_ADDR + i );
i440drivers/net/hp100.cfor ( i = uc = 0; i < 6; i++ )
i441drivers/net/hp100.cdev -> dev_addr[ i ] = hp100_inb( LAN_ADDR + i );
i491drivers/net/hp100.cint i;
i528drivers/net/hp100.cfor ( i = 0; i < 6; i++ )
i529drivers/net/hp100.chp100_outb( dev -> dev_addr[ i ], MAC_ADDR + i );
i530drivers/net/hp100.cfor ( i = 0; i < 8; i++ )    /* setup multicast filter to receive all */
i531drivers/net/hp100.chp100_outb( 0xff, HASH_BYTE0 + i );
i580drivers/net/hp100.cint i, ok_flag;
i599drivers/net/hp100.cif ( ( i = ( hp100_inl( TX_MEM_FREE ) & ~0x7fffffff ) ) < skb -> len + 16 )
i602drivers/net/hp100.cprintk( "hp100_start_xmit: rx free mem = 0x%x\n", i );
i616drivers/net/hp100.ci = hp100_sense_lan( dev );
i619drivers/net/hp100.cif ( i == HP100_LAN_ERR )
i622drivers/net/hp100.cif ( lp -> lan_type != i )
i626drivers/net/hp100.clp -> lan_type = i;
i651drivers/net/hp100.cfor ( i = 0; i < 6000 && ( hp100_inw( OPTION_MSW ) & HP100_TX_CMD ); i++ )
i665drivers/net/hp100.ci = ok_flag ? skb -> len : HP100_MIN_PACKET_SIZE;
i666drivers/net/hp100.chp100_outw( i, DATA32 );    /* length to memory manager */
i667drivers/net/hp100.chp100_outw( i, FRAGMENT_LEN );
i687drivers/net/hp100.cfor ( i = ( skb -> len + 3 ) & ~3; i < HP100_MIN_PACKET_SIZE; i += 4 )
i996drivers/net/hp100.cint i;
i1002drivers/net/hp100.cfor ( i = 0; i < 6000; i++ )
i1011drivers/net/hp100.cint i;
i1026drivers/net/hp100.cfor ( i = 0; i < 2500; i++ )
i1038drivers/net/hp100.cint i;
i1041drivers/net/hp100.cfor ( i = 2500; i > 0; i-- )
i1043drivers/net/hp100.cif ( i <= 0 )        /* not signal - not logout */
i1060drivers/net/hp100.cint i;
i1086drivers/net/hp100.cfor ( i = 2500; i > 0; i-- )
i1088drivers/net/hp100.cif ( i <= 0 )
i161drivers/net/ibmtr.cshort i, j;
i162drivers/net/ibmtr.cfor (i=0,j=0;i<24;i++,j=j+stride) printk("%1x",((int) pcid[j])&0x0f);
i180drivers/net/ibmtr.cunsigned char segment=0, intr=0, irq=0, i=0, j=0,
i242drivers/net/ibmtr.cfor (i=2,j=1; i<=46; i=i+2,j++) {
i243drivers/net/ibmtr.cif ( (cd_chanid[i] & 0x0f) != tchanid[j]) {
i348drivers/net/ibmtr.cfor (i=0; i<0x18; i=i+2) {
i349drivers/net/ibmtr.ctemp = *(char *)((ulong)AIP + (ulong)i + ti->mmio) & 0x0f; /* Tech ref states must do this */
i625drivers/net/ibmtr.cint i;
i631drivers/net/ibmtr.cfor(i=0;i<  8;i++,check_reason++)
i883drivers/net/ibmtr.cint i;
i913drivers/net/ibmtr.cfor(i=0;i<17;i++)
i914drivers/net/ibmtr.cprintk("%02X ",*(ti->init_srb+i));
i935drivers/net/ibmtr.cfor(i=0;i<TR_ALEN;i++)
i936drivers/net/ibmtr.cprintk("%02X%s",dev->dev_addr[i]=encoded_addr[i],(i==TR_ALEN-1) ? "" : ":" );
i948drivers/net/ibmtr.cint i;
i971drivers/net/ibmtr.cfor(i=jiffies+5;jiffies<=i;); /* wait 50ms */
i340drivers/net/lance.cint i, reset_val, lance_version;
i401drivers/net/lance.cfor (i = 0; i < 6; i++)
i402drivers/net/lance.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
i420drivers/net/lance.cfor (i = 0; i < 6; i++)
i421drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
i505drivers/net/lance.cfor (i = 0; i < 4; i++) {
i507drivers/net/lance.cint dma = dmas[i];
i534drivers/net/lance.cif (i == 4) {      /* Failure: bail. */
i566drivers/net/lance.cint i;
i618drivers/net/lance.ci = 0;
i619drivers/net/lance.cwhile (i++ < 100)
i630drivers/net/lance.cdev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA));
i651drivers/net/lance.cint i;
i653drivers/net/lance.cfor (i = 0; i < TX_RING_SIZE; i++) {
i654drivers/net/lance.cif (lp->tx_skbuff[i]) {
i655drivers/net/lance.cdev_kfree_skb(lp->tx_skbuff[i],FREE_WRITE);
i656drivers/net/lance.clp->tx_skbuff[i] = NULL;
i667drivers/net/lance.cint i;
i673drivers/net/lance.cfor (i = 0; i < RX_RING_SIZE; i++) {
i674drivers/net/lance.clp->rx_ring[i].base = (lp->rx_buffs + i*PKT_BUF_SZ) | 0x80000000;
i675drivers/net/lance.clp->rx_ring[i].buf_length = -PKT_BUF_SZ;
i679drivers/net/lance.cfor (i = 0; i < TX_RING_SIZE; i++) {
i680drivers/net/lance.clp->tx_ring[i].base = 0;
i684drivers/net/lance.cfor (i = 0; i < 6; i++)
i685drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
i726drivers/net/lance.cint i;
i730drivers/net/lance.cfor (i = 0 ; i < RX_RING_SIZE; i++)
i731drivers/net/lance.cprintk("%s %08x %04x %04x", i & 0x3 ? "" : "\n ",
i732drivers/net/lance.clp->rx_ring[i].base, -lp->rx_ring[i].buf_length,
i733drivers/net/lance.clp->rx_ring[i].msg_length);
i734drivers/net/lance.cfor (i = 0 ; i < TX_RING_SIZE; i++)
i735drivers/net/lance.cprintk("%s %08x %04x %04x", i & 0x3 ? "" : "\n ",
i736drivers/net/lance.clp->tx_ring[i].base, -lp->tx_ring[i].length,
i737drivers/net/lance.clp->tx_ring[i].misc);
i963drivers/net/lance.cint i;
i989drivers/net/lance.cfor (i=0; i < RX_RING_SIZE; i++)
i990drivers/net/lance.cif (lp->rx_ring[(entry+i) & RX_RING_MOD_MASK].base < 0)
i993drivers/net/lance.cif (i > RX_RING_SIZE -2) {
i1095drivers/net/lance.cint i;
i1098drivers/net/lance.cfor (i = 0; i < 4; i++) {
i1099drivers/net/lance.coutw(8 + i, ioaddr+LANCE_ADDR);
i1100drivers/net/lance.coutw(multicast_table[i], ioaddr+LANCE_DATA);
i129drivers/net/loopback.cint i;
i165drivers/net/loopback.cfor (i = 0; i < DEV_NUMBUFFS; i++)
i166drivers/net/loopback.cskb_queue_head_init(&dev->buffs[i]);
i136drivers/net/ne.cint i;
i144drivers/net/ne.cfor (i = 0; netcard_portlist[i]; i++) {
i145drivers/net/ne.cint ioaddr = netcard_portlist[i];
i158drivers/net/ne.cint i;
i224drivers/net/ne.cfor (i = 0; i < sizeof(program_seq)/sizeof(program_seq[0]); i++)
i225drivers/net/ne.coutb_p(program_seq[i].value, ioaddr + program_seq[i].offset);
i228drivers/net/ne.cfor(i = 0; i < 32 /*sizeof(SA_prom)*/; i+=2) {
i229drivers/net/ne.cSA_prom[i] = inb(ioaddr + NE_DATAPORT);
i230drivers/net/ne.cSA_prom[i+1] = inb(ioaddr + NE_DATAPORT);
i231drivers/net/ne.cif (SA_prom[i] != SA_prom[i+1])
i241drivers/net/ne.cfor (i = 0; i < 16; i++)
i242drivers/net/ne.cSA_prom[i] = SA_prom[i+i];
i264drivers/net/ne.cfor (i = 0; bad_clone_list[i].name8; i++) {
i265drivers/net/ne.cif (SA_prom[0] == bad_clone_list[i].SAprefix[0] &&
i266drivers/net/ne.cSA_prom[1] == bad_clone_list[i].SAprefix[1] &&
i267drivers/net/ne.cSA_prom[2] == bad_clone_list[i].SAprefix[2]) {
i269drivers/net/ne.cname = bad_clone_list[i].name16;
i271drivers/net/ne.cname = bad_clone_list[i].name8;
i276drivers/net/ne.cif (bad_clone_list[i].name8 == NULL) {
i335drivers/net/ne.cfor(i = 0; i < ETHER_ADDR_LEN; i++) {
i336drivers/net/ne.cprintk(" %2.2x", SA_prom[i]);
i337drivers/net/ne.cdev->dev_addr[i] = SA_prom[i];
i74drivers/net/net_init.cint i;
i83drivers/net/net_init.cfor (i = 0; i < MAX_ETH_CARDS; ++i)
i84drivers/net/net_init.cif (ethdev_index[i] == NULL) {
i85drivers/net/net_init.csprintf(pname, "eth%d", i);
i113drivers/net/net_init.cfor (i = 0; i < MAX_ETH_CARDS; ++i)
i114drivers/net/net_init.cif (ethdev_index[i] == NULL) {
i115drivers/net/net_init.csprintf(dev->name, "eth%d", i);
i116drivers/net/net_init.cethdev_index[i] = dev;
i146drivers/net/net_init.cint i;
i149drivers/net/net_init.cfor (i = 0; i < DEV_NUMBUFFS; i++)
i150drivers/net/net_init.cskb_queue_head_init(&dev->buffs[i]);
i154drivers/net/net_init.ci = simple_strtoul(dev->name + 3, NULL, 0);
i155drivers/net/net_init.cif (ethdev_index[i] == NULL) {
i156drivers/net/net_init.cethdev_index[i] = dev;
i158drivers/net/net_init.celse if (dev != ethdev_index[i]) {
i175drivers/net/net_init.cfor (i = 0; i < ETH_ALEN; i++) {
i176drivers/net/net_init.cdev->broadcast[i]=0xff;
i192drivers/net/net_init.cint i;
i195drivers/net/net_init.cfor (i = 0; i < DEV_NUMBUFFS; i++)
i196drivers/net/net_init.cskb_queue_head_init(&dev->buffs[i]);
i205drivers/net/net_init.cfor (i = 0; i < TR_ALEN; i++) {
i206drivers/net/net_init.cdev->broadcast[i]=0xff;
i241drivers/net/net_init.cint i=MAX_ETH_CARDS;
i249drivers/net/net_init.cfor (i = 0; i < MAX_ETH_CARDS; ++i)
i250drivers/net/net_init.cif (ethdev_index[i] == NULL) {
i251drivers/net/net_init.csprintf(dev->name, "eth%d", i);
i253drivers/net/net_init.cethdev_index[i] = dev;
i259drivers/net/net_init.cif (i < MAX_ETH_CARDS) ethdev_index[i] = NULL;
i282drivers/net/net_init.cint i;
i314drivers/net/net_init.cfor (i = 0; i < MAX_ETH_CARDS; ++i) 
i316drivers/net/net_init.cif (ethdev_index[i] == dev) 
i318drivers/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) { \
i249drivers/net/ni52.cint i;
i260drivers/net/ni52.cfor(i=0;i<2;i++)
i262drivers/net/ni52.cp->iscp = (struct iscp_struct *) iscp_addrs[i];
i348drivers/net/ni52.cint i,size;
i350drivers/net/ni52.cfor(i=0;i<ETH_ALEN;i++)
i351drivers/net/ni52.cdev->dev_addr[i] = inb(dev->base_addr+i);
i383drivers/net/ni52.cfor(i=0;;i++)
i385drivers/net/ni52.cif(!memaddrs[i]) {
i389drivers/net/ni52.cdev->mem_start = memaddrs[i];
i453drivers/net/ni52.cint i,result=0;
i572drivers/net/ni52.cfor(i=0;i<2;i++)
i574drivers/net/ni52.cp->nop_cmds[i] = (struct nop_cmd_struct *)ptr;
i575drivers/net/ni52.cp->nop_cmds[i]->cmd_cmd    = CMD_NOP;
i576drivers/net/ni52.cp->nop_cmds[i]->cmd_status = 0;
i577drivers/net/ni52.cp->nop_cmds[i]->cmd_link   = make16((p->nop_cmds[i]));
i583drivers/net/ni52.cfor(i=0;i<NUM_XMIT_BUFFS;i++)
i585drivers/net/ni52.cp->nop_cmds[i] = (struct nop_cmd_struct *)ptr;
i586drivers/net/ni52.cp->nop_cmds[i]->cmd_cmd    = CMD_NOP;
i587drivers/net/ni52.cp->nop_cmds[i]->cmd_status = 0;
i588drivers/net/ni52.cp->nop_cmds[i]->cmd_link   = make16((p->nop_cmds[i]));
i590drivers/net/ni52.cp->xmit_cmds[i] = (struct transmit_cmd_struct *)ptr; /*transmit cmd/buff 0*/
i620drivers/net/ni52.cfor(i=0;i<num_addrs;i++)
i621drivers/net/ni52.cmemcpy((char *) mc_cmd->mc_list[i],((char (*)[6]) addrs)[i],6);
i637drivers/net/ni52.cfor(i=0;i<NUM_XMIT_BUFFS;i++)
i639drivers/net/ni52.cp->xmit_cbuffs[i] = (char *)ptr; /* char-buffs */
i641drivers/net/ni52.cp->xmit_buffs[i] = (struct tbd_struct *)ptr; /* TBD */
i648drivers/net/ni52.cmemset((char *)(p->xmit_cmds[i]) ,0, sizeof(struct transmit_cmd_struct));
i649drivers/net/ni52.cmemset((char *)(p->xmit_buffs[i]),0, sizeof(struct tbd_struct));
i650drivers/net/ni52.cp->xmit_cmds[i]->cmd_status = STAT_COMPL;
i651drivers/net/ni52.cp->xmit_cmds[i]->cmd_cmd = CMD_XMIT | CMD_INT;
i652drivers/net/ni52.cp->xmit_cmds[i]->tbd_offset = make16((p->xmit_buffs[i]));
i653drivers/net/ni52.cp->xmit_buffs[i]->next = 0xffff;
i654drivers/net/ni52.cp->xmit_buffs[i]->buffer = make24((p->xmit_cbuffs[i]));
i688drivers/net/ni52.cint i;
i694drivers/net/ni52.cfor(i = 0; i < p->num_recv_buffs; i++)
i695drivers/net/ni52.crfd[i].next = make16(rfd + (i+1) % p->num_recv_buffs);
i706drivers/net/ni52.cfor(i=0;i<p->num_recv_buffs;i++)
i708drivers/net/ni52.crbd[i].next = make16((rbd + (i+1) % p->num_recv_buffs));
i709drivers/net/ni52.crbd[i].size = RECV_BUFF_SIZE;
i710drivers/net/ni52.crbd[i].buffer = make24(ptr);
i929drivers/net/ni52.cint len,i;
i995drivers/net/ni52.cfor(i=0;i<16;i++)
i1003drivers/net/ni52.cif(!i)
i1010drivers/net/ni52.cif(i==15)
i206drivers/net/ni65.cint i;
i210drivers/net/ni65.cfor(i=0;i<6;i++)
i211drivers/net/ni65.cstation_addr[i] = dev->dev_addr[i] = inb(PORT+L_EBASE+i);
i276drivers/net/ni65.cfor(i=0;i<TMDNUM;i++)
i278drivers/net/ni65.cif( (p->tmdbufs[i] = kmalloc(T_BUF_SIZE,GFP_ATOMIC)) == NULL) {
i282drivers/net/ni65.cif( (unsigned long) (p->tmdbufs[i]+T_BUF_SIZE) & 0xff000000) {
i289drivers/net/ni65.cfor(i=0;i<RMDNUM;i++)
i291drivers/net/ni65.cif( (p->recv_skb[i] = dev_alloc_skb(R_BUF_SIZE)) == NULL) {
i295drivers/net/ni65.cif( (unsigned long) (p->recv_skb[i]->data + R_BUF_SIZE) & 0xff000000) {
i310drivers/net/ni65.cint i,j;
i337drivers/net/ni65.cfor(i=0;i<TMDNUM;i++)
i339drivers/net/ni65.ctmdp = p->tmdhead + i;
i341drivers/net/ni65.ctmdp->u.buffer = (unsigned long) p->tmdbufs[i];     
i347drivers/net/ni65.cfor(i=0;i<RMDNUM;i++)
i349drivers/net/ni65.crmdp = p->rmdhead + i;
i350drivers/net/ni65.crmdp->u.buffer = (unsigned long) p->recv_skb[i]->data;
i356drivers/net/ni65.cfor(i=0;i<6;i++)
i358drivers/net/ni65.cp->ib.eaddr[i] = dev->dev_addr[i];
i361drivers/net/ni65.cfor(i=0;i<8;i++) 
i362drivers/net/ni65.cp->ib.filter[i] = 0;
i378drivers/net/ni65.cfor(i=0;i<5;i++)
i383drivers/net/ni65.cif(i == 5) 
i1304drivers/net/pi2.cint i;
i1421drivers/net/pi2.cfor (i = 0; i < DEV_NUMBUFFS; i++)
i1422drivers/net/pi2.cskb_queue_head_init(&dev->buffs[i]);
i862drivers/net/plip.cint i;
i873drivers/net/plip.cfor (i=0; i < ETH_ALEN - sizeof(unsigned long); i++)
i874drivers/net/plip.ceth->h_dest[i] = 0xfc;
i875drivers/net/plip.cmemcpy(&(eth->h_dest[i]), &dst, sizeof(unsigned long));
i936drivers/net/plip.cint i;
i964drivers/net/plip.cfor (i=0; i < ETH_ALEN - sizeof(unsigned long); i++)
i965drivers/net/plip.cdev->dev_addr[i] = 0xfc;
i966drivers/net/plip.cmemcpy(&(dev->dev_addr[i]), &dev->pa_addr, sizeof(unsigned long));
i1086drivers/net/plip.cint i;
i1089drivers/net/plip.cfor (i=0; i < 3; i++) {
i1092drivers/net/plip.cif (io[i] != 0) {
i1093drivers/net/plip.cdev_plip[i].base_addr = io[i];
i1096drivers/net/plip.cif (irq[i] != 0) {
i1097drivers/net/plip.cdev_plip[i].irq = irq[i];
i1101drivers/net/plip.cif (register_netdev(&dev_plip[i]) != 0) {
i1102drivers/net/plip.cprintk(KERN_INFO "plip%d: Not found\n", i);
i1112drivers/net/plip.cfor (i=0; i < 3; i++) { 
i1113drivers/net/plip.cif (register_netdev(&dev_plip[i]) == 0)
i1126drivers/net/plip.cint i;
i1128drivers/net/plip.cfor (i=0; i < 3; i++) {
i1129drivers/net/plip.cif (dev_plip[i].priv) {
i1130drivers/net/plip.cunregister_netdev(&dev_plip[i]);
i1131drivers/net/plip.crelease_region(PAR_DATA(&dev_plip[i]), (PAR_DATA(&dev_plip[i]) == 0x3bc)? 3 : 8);
i1132drivers/net/plip.ckfree_s(dev_plip[i].priv, sizeof(struct net_local));
i1133drivers/net/plip.cdev_plip[i].priv = NULL;
i112drivers/net/seeq8005.cint i;
i120drivers/net/seeq8005.cfor (i = 0; seeq8005_portlist[i]; i++) {
i121drivers/net/seeq8005.cint ioaddr = seeq8005_portlist[i];
i139drivers/net/seeq8005.cint i,j;
i193drivers/net/seeq8005.cfor(i=0; i <32; i++) {
i194drivers/net/seeq8005.cj+= SA_prom[i] = inw(SEEQ_BUFFER) & 0xff;
i221drivers/net/seeq8005.cfor(i=0;i<16;i++) {
i222drivers/net/seeq8005.cprintk("%02x ",SA_prom[j|i]);
i225drivers/net/seeq8005.cfor(i=0;i<16;i++) {
i226drivers/net/seeq8005.cif ((SA_prom[j|i]>31)&&(SA_prom[j|i]<127)) {
i227drivers/net/seeq8005.cprintk("%c", SA_prom[j|i]);
i247drivers/net/seeq8005.cfor(i=0;i<32768;i++) {
i260drivers/net/seeq8005.cfor(i=0;i<32768;i++) {
i285drivers/net/seeq8005.cfor (i = 0; i < 6; i++)
i286drivers/net/seeq8005.cprintk(" %2.2x", dev->dev_addr[i] = SA_prom[i+6]);
i483drivers/net/seeq8005.cint i;
i551drivers/net/seeq8005.cfor(i=0;i<14;i++) {
i636drivers/net/seeq8005.cint i;
i649drivers/net/seeq8005.cfor(i=0;i<6;i++) {      /* set Station address */
i650drivers/net/seeq8005.coutb(dev->dev_addr[i], SEEQ_BUFFER);
i669drivers/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];          
i821drivers/net/sk_g16.cfor (i = 0; i < TMDNUM; i++)
i823drivers/net/sk_g16.cp->tmdbufs[i] = &(p->ram)->tmdbuf[i];
i826drivers/net/sk_g16.cfor (i = 0; i < RMDNUM; i++)
i828drivers/net/sk_g16.cp->rmdbufs[i] = &(p->ram)->rmdbuf[i]; 
i868drivers/net/sk_g16.cint i = 0;
i881drivers/net/sk_g16.ci = 0;
i894drivers/net/sk_g16.cirqval = request_irq(irqtab[i], &SK_interrupt, 0, "sk_g16");
i895drivers/net/sk_g16.ci++;
i896drivers/net/sk_g16.c} while (irqval && irqtab[i]);
i904drivers/net/sk_g16.cdev->irq = irqtab[--i]; 
i906drivers/net/sk_g16.coutb(i<<2, SK_POS4);           /* Set Card on probed IRQ */
i928drivers/net/sk_g16.cint i = 0;
i940drivers/net/sk_g16.ccase 3: i = 0;
i942drivers/net/sk_g16.ccase 5: i = 1;
i944drivers/net/sk_g16.ccase 2: i = 2;
i946drivers/net/sk_g16.ccase 11:i = 3;
i956drivers/net/sk_g16.coutb(i<<2, SK_POS4);           /* Set IRQ on card */
i965drivers/net/sk_g16.cif (!(i = SK_lance_init(dev, 0)))  /* LANCE init OK? */
i1033drivers/net/sk_g16.cint i;
i1048drivers/net/sk_g16.cfor (i = 0; i < TMDNUM; i++)     /* Init all TMD's */
i1050drivers/net/sk_g16.ctmdp = p->tmdhead + i; 
i1052drivers/net/sk_g16.ctmdp->u.buffer = (unsigned long) p->tmdbufs[i]; /* assign buffer */
i1063drivers/net/sk_g16.cfor (i = 0; i < RMDNUM; i++)     /* Init all RMD's */
i1065drivers/net/sk_g16.crmdp = p->rmdhead + i;
i1068drivers/net/sk_g16.crmdp->u.buffer = (unsigned long) p->rmdbufs[i]; /* assign buffer */
i1087drivers/net/sk_g16.cfor (i = 0; i < ETH_ALEN; i++)   /* Set physical address */
i1089drivers/net/sk_g16.c(p->ram)->ib.paddr[i] = dev->dev_addr[i]; 
i1092drivers/net/sk_g16.cfor (i = 0; i < 8; i++)          /* Set multicast, logical address */
i1094drivers/net/sk_g16.c(p->ram)->ib.laddr[i] = 0;   /* We do not use logical addressing */
i1145drivers/net/sk_g16.cfor (i = 0; (i < 100) && !(SK_rread_reg() & CSR0_IDON); i++) 
i1148drivers/net/sk_g16.cif (i >= 100) /* Something is wrong ! */
i1163drivers/net/sk_g16.cPRINTK(("## %s: init done after %d ticks\n", SK_NAME, i));
i1786drivers/net/sk_g16.cint i,j;
i1795drivers/net/sk_g16.cfor (i = 0; (rom_location[i] != 0) && (rom_found == 0); i++)
i1798drivers/net/sk_g16.cPRINTK(("##   Trying ROM location %#08x", rom_location[i]));
i1803drivers/net/sk_g16.ctest_byte = (unsigned char *) (rom_location[i]+j);
i1817drivers/net/sk_g16.cSK_NAME, rom_location[(i-1)]));
i1819drivers/net/sk_g16.creturn (rom_location[--i]);
i1857drivers/net/sk_g16.cint i;
i1860drivers/net/sk_g16.cfor (i = 0; i < 10 ; i++) /* Delay min 5ms */
i2088drivers/net/sk_g16.cint i;    
i2101drivers/net/sk_g16.cfor(i = 0; i < TMDNUM; i++)
i2103drivers/net/sk_g16.cif (!(i % 3)) /* Every third line do a newline */
i2107drivers/net/sk_g16.cprintk("tmdbufs%d: %#08x ", (i+1), (int) p->tmdbufs[i]);
i2111drivers/net/sk_g16.cfor(i = 0; i < RMDNUM; i++)
i2113drivers/net/sk_g16.cif (!(i % 3)) /* Every third line do a newline */
i2117drivers/net/sk_g16.cprintk("rmdbufs%d: %#08x ", (i+1), (int) p->rmdbufs[i]);
i128drivers/net/skeleton.cint i;
i136drivers/net/skeleton.cfor (i = 0; netcard_portlist[i]; i++) {
i137drivers/net/skeleton.cint ioaddr = netcard_portlist[i];
i155drivers/net/skeleton.cint i;
i186drivers/net/skeleton.cfor (i = 0; i < 6; i++)
i187drivers/net/skeleton.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
i243drivers/net/skeleton.cfor (i = 7; i > 0; i--)
i244drivers/net/skeleton.cif (test_bit(i, &new_dma_status)) {
i245drivers/net/skeleton.cdev->dma = i;
i248drivers/net/skeleton.cif (i <= 0) {
i100drivers/net/slhc.cregister short i;
i151drivers/net/slhc.cfor(i = comp->tslot_limit; i > 0; --i){
i152drivers/net/slhc.cts[i].cs_this = i;
i153drivers/net/slhc.cts[i].next = &(ts[i - 1]);
i548drivers/net/slhc.cregister short i;
i549drivers/net/slhc.ci = ntohs(ip->tot_len) - hdrlen;
i550drivers/net/slhc.cthp->ack_seq = htonl( ntohl(thp->ack_seq) + i);
i551drivers/net/slhc.cthp->seq = htonl( ntohl(thp->seq) + i);
i113drivers/net/slip.cint i;
i117drivers/net/slip.cfor (i = 0; i < slip_maxdev; i++) {
i118drivers/net/slip.cslp = slip_ctrls[i];
i129drivers/net/slip.cif (i >= slip_maxdev) return NULL;
i133drivers/net/slip.c(slip_ctrls[i] = (slip_ctrl_t *)kmalloc(sizeof(slip_ctrl_t),
i135drivers/net/slip.cslp = slip_ctrls[i];
i141drivers/net/slip.csprintf(slp->if_name, "sl%d", i);
i143drivers/net/slip.cslp->dev.base_addr    = i;
i918drivers/net/slip.cint i;
i934drivers/net/slip.cfor (i = 0; i < len; ++i) {
i935drivers/net/slip.cv = (v << 8) | s[i];
i1175drivers/net/slip.cint i;
i1216drivers/net/slip.cfor (i = 0; i < DEV_NUMBUFFS; i++)  {
i1217drivers/net/slip.cskb_queue_head_init(&dev->buffs[i]);
i1241drivers/net/slip.cint i;
i1244drivers/net/slip.cfor (i = 0; i < slip_maxdev; i++)  {
i1245drivers/net/slip.cif (slip_ctrls[i] != NULL) {
i1246drivers/net/slip.cunregister_netdev(&(slip_ctrls[i]->dev));
i1247drivers/net/slip.ckfree(slip_ctrls[i]);
i1253drivers/net/slip.cif ((i = tty_register_ldisc(N_SLIP, NULL)))  {
i1254drivers/net/slip.cprintk("SLIP: can't unregister line discipline (err = %d)\n", i);
i98drivers/net/smc-ultra.cint i;
i106drivers/net/smc-ultra.cfor (i = 0; ultra_portlist[i]; i++) {
i107drivers/net/smc-ultra.cint ioaddr = ultra_portlist[i];
i120drivers/net/smc-ultra.cint i;
i138drivers/net/smc-ultra.cfor (i = 0; i < 8; i++)
i139drivers/net/smc-ultra.cchecksum += inb(ioaddr + 8 + i);
i156drivers/net/smc-ultra.cfor (i = 0; i < 6; i++)
i157drivers/net/smc-ultra.cprintk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i));
i213drivers/net/tulip.cint i;
i232drivers/net/tulip.cfor (i = 0; i < 6; i++) {
i237drivers/net/tulip.cprintk(" %2.2x", dev->dev_addr[i] = value);
i302drivers/net/tulip.cint *setup_frm = tp->setup_frame, i;
i309drivers/net/tulip.cfor (i = 1; i < 16; i++) {
i356drivers/net/tulip.cint i;
i362drivers/net/tulip.cfor (i = 0; i < RX_RING_SIZE; i++) {
i363drivers/net/tulip.ctp->rx_ring[i].status = 0x80000000;  /* Owned by Tulip chip */
i364drivers/net/tulip.ctp->rx_ring[i].length = PKT_BUF_SZ;
i365drivers/net/tulip.ctp->rx_ring[i].buffer1 = (char *)(tp->rx_buffs + i*PKT_BUF_SZ);
i366drivers/net/tulip.ctp->rx_ring[i].buffer2 = (char *)&tp->rx_ring[i+1];
i369drivers/net/tulip.ctp->rx_ring[i-1].length = PKT_BUF_SZ | 0x02000000;
i370drivers/net/tulip.ctp->rx_ring[i-1].buffer2 = (char *)&tp->rx_ring[0];
i374drivers/net/tulip.cfor (i = 0; i < TX_RING_SIZE; i++) {
i375drivers/net/tulip.ctp->tx_ring[i].status = 0x00000000;
i389drivers/net/tulip.cint i;
i396drivers/net/tulip.cfor (i = 0; i < RX_RING_SIZE; i++)
i397drivers/net/tulip.cprintk(" %8.8x", (unsigned int)tp->rx_ring[i].status);
i399drivers/net/tulip.cfor (i = 0; i < TX_RING_SIZE; i++)
i400drivers/net/tulip.cprintk(" %8.8x", (unsigned int)tp->tx_ring[i].status);
i582drivers/net/tulip.cint i;
i612drivers/net/tulip.cfor (i=0; i < RX_RING_SIZE; i++)
i613drivers/net/tulip.cif (lp->rx_ring[(entry+i) % RX_RING_SIZE].status < 0)
i616drivers/net/tulip.cif (i > RX_RING_SIZE -2) {
i699drivers/net/tulip.cint i;
i705drivers/net/tulip.cfor(i = 0; i < num_addrs; i++) {
i716drivers/net/tulip.c} while (++i < 16);
i725drivers/net/tulip.cint i;
i729drivers/net/tulip.cfor (i = 0; i < 6; i++)
i730drivers/net/tulip.cprintk(" %2.2x", dev->dev_addr[i] = ((unsigned char *)addr)[i]);
i461drivers/net/wavelan.cint    i;
i476drivers/net/wavelan.cfor (i = 1000; i > 0; i--)
i485drivers/net/wavelan.cif (i <= 0)
i501drivers/net/wavelan.cint    i;
i511drivers/net/wavelan.cfor (i = 64; i > 0; i--)
i520drivers/net/wavelan.cif (i <= 0 || !(cb.ac_status & AC_SFLD_OK))
i543drivers/net/wavelan.cint    i;
i566drivers/net/wavelan.cfor (i = 0; i < I82586_MEMZ; i += sizeof(zeroes))
i567drivers/net/wavelan.cobram_write(ioaddr, i, &zeroes[0], sizeof(zeroes));
i596drivers/net/wavelan.cfor (i = 1000; i > 0; i--)
i606drivers/net/wavelan.cif (i <= 0)
i614drivers/net/wavelan.cfor (i = 15; i > 0; i--)
i624drivers/net/wavelan.cif (i <= 0)
i775drivers/net/wavelan.cint      i;
i828drivers/net/wavelan.cfor (i = 0; i < nels(iobase); i++)
i830drivers/net/wavelan.cif (check_region(iobase[i], sizeof(ha_t)))
i833drivers/net/wavelan.cif (wavelan_probe1(dev, iobase[i]) == 0)
i860drivers/net/wavelan.cint    i;
i948drivers/net/wavelan.cfor (i = 0; i < WAVELAN_ADDR_SIZE; i++)
i949drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? " " : ":", dev->dev_addr[i]);
i1077drivers/net/wavelan.cint    i;
i1088drivers/net/wavelan.cfor (i = 0, rx = lp->rx_head; i < NRXBLOCKS; i++, rx = rx_next)
i1090drivers/net/wavelan.crx_next = (i == NRXBLOCKS - 1) ? lp->rx_head : rx + RXBLOCKZ;
i1093drivers/net/wavelan.cfd.fd_command = (i == NRXBLOCKS - 1) ? FD_COMMAND_EL : 0;
i1115drivers/net/wavelan.cfor (i = 1000; i > 0; i--)
i1124drivers/net/wavelan.cif (i <= 0)
i1139drivers/net/wavelan.cint    i;
i1152drivers/net/wavelan.ci = 0, txblock = OFFSET_CU;
i1153drivers/net/wavelan.ci < NTXBLOCKS;
i1154drivers/net/wavelan.ci++, txblock += TXBLOCKZ
i1196drivers/net/wavelan.cfor (i = 1000; i > 0; i--)
i1205drivers/net/wavelan.cif (i <= 0)
i1460drivers/net/wavelan.cint  i;
i1462drivers/net/wavelan.cfor (i = 0; i < WAVELAN_ADDR_SIZE; i++)
i1464drivers/net/wavelan.cif (a0[i] != a1[i])
i1465drivers/net/wavelan.creturn a0[i] - a1[i];
i1577drivers/net/wavelan.cint      i;
i1594drivers/net/wavelan.cfor (i = 0; i < WAVELAN_ADDR_SIZE; i++)
i1595drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? "" : ":", addr[i]);
i1605drivers/net/wavelan.cint    i;
i1609drivers/net/wavelan.cfor (i = 0; i < WAVELAN_ADDR_SIZE; i++)
i1610drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? "" : ":", fd.fd_dest[i]);
i1614drivers/net/wavelan.cfor (i = 0; i < WAVELAN_ADDR_SIZE; i++)
i1615drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? "" : ":", fd.fd_src[i]);
i1622drivers/net/wavelan.cfor (i = 0; i < WAVELAN_ADDR_SIZE; i++)
i1623drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? "" : ":", addr[i]);
i1628drivers/net/wavelan.cfor (i = 0; i < WAVELAN_ADDR_SIZE; i++)
i1629drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? "" : ":", addr[i]);
i1651drivers/net/wavelan.cint  i;
i1659drivers/net/wavelan.cfor (i = 0; i < maxi; i++)
i1663drivers/net/wavelan.cc = skb->data[i];
i1665drivers/net/wavelan.cprintk(" %c", skb->data[i]);
i1667drivers/net/wavelan.cprintk("%02x", skb->data[i]);
i2204drivers/net/wavelan.cwavelan_cu_show_one(device *dev, net_local *lp, int i, unsigned short p)
i2211drivers/net/wavelan.cprintk("%d: 0x%x:", i, p);
i2433drivers/net/wavelan.cunsigned int  i;
i2441drivers/net/wavelan.cfor (i = 0, p = lp->tx_first_in_use; i < NTXBLOCKS; i++)
i2443drivers/net/wavelan.cwavelan_cu_show_one(dev, lp, i, p);
i90drivers/net/wd.cint i;
i98drivers/net/wd.cfor (i = 0; wd_portlist[i]; i++) {
i99drivers/net/wd.cint ioaddr = wd_portlist[i];
i112drivers/net/wd.cint i;
i119drivers/net/wd.cfor (i = 0; i < 8; i++)
i120drivers/net/wd.cchecksum += inb(ioaddr + 8 + i);
i136drivers/net/wd.cfor (i = 0; i < 6; i++)
i137drivers/net/wd.cprintk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i));
i163drivers/net/wd.cfor (i = 0; i < 6; i++)
i164drivers/net/wd.cif (inb(ioaddr+i) != inb(ioaddr+8+i))
i166drivers/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]);
i265drivers/pci/pci.cint i = (min + max) >> 1;
i268drivers/pci/pci.corder = dev_info[i].vendor - (long) vendor;
i270drivers/pci/pci.corder = dev_info[i].device - (long) dev;
i274drivers/pci/pci.cmin = i + 1;
i282drivers/pci/pci.cmax = i - 1;
i288drivers/pci/pci.creturn & dev_info[ i ];
i450drivers/pci/pci.cint i;
i454drivers/pci/pci.cfor (i = 0; i < NUM_OPTIMIZATIONS; i++) {
i455drivers/pci/pci.cprintk("    %s: ", bridge_optimization[i].type);
i456drivers/pci/pci.cbmap = &bridge_mapping[pos + i];
i462drivers/pci/pci.cprintk("%s.", bridge_optimization[i].on);
i468drivers/pci/pci.cprintk("Changed!  Now %s.", bridge_optimization[i].off);
i471drivers/pci/pci.cprintk("%s.", bridge_optimization[i].off);
i477drivers/pci/pci.cprintk("Changed!  Now %s.", bridge_optimization[i].on);
i409drivers/scsi/53c7,8xx.cint i, j, ccf;
i539drivers/scsi/53c7,8xx.ccase DMODE_BL_2: i = 2; break;
i540drivers/scsi/53c7,8xx.ccase DMODE_BL_4: i = 4; break;
i541drivers/scsi/53c7,8xx.ccase DMODE_BL_8: i = 8; break;
i542drivers/scsi/53c7,8xx.ccase DMODE_BL_16: i = 16; break;
i543drivers/scsi/53c7,8xx.cdefault: i = 0;
i545drivers/scsi/53c7,8xx.cprintk ("scsi%d : burst length %d\n", host->host_no, i);
i588drivers/scsi/53c7,8xx.cfor (i = 0; i < 8; ++i) {
i589drivers/scsi/53c7,8xx.chostdata->cmd_allocated[i] = 0;
i591drivers/scsi/53c7,8xx.chostdata->busy[i][j] = 0;
i598drivers/scsi/53c7,8xx.chostdata->sync[i].select_indirect |= (i << 16); 
i600drivers/scsi/53c7,8xx.chostdata->sync[i].script[0] = (DCMD_TYPE_TCI|DCMD_TCI_OP_RETURN) << 24 | 
i609drivers/scsi/53c7,8xx.chostdata->sync[i].select_indirect |= (hostdata->saved_scntl3) << 24;
i869drivers/scsi/53c7,8xx.cint i;
i948drivers/scsi/53c7,8xx.cfor (i = 0; i < NPCI_CHIP_IDS; ++i) {
i949drivers/scsi/53c7,8xx.cif (device_id == pci_chip_ids[i].pci_device_id) {
i950drivers/scsi/53c7,8xx.cmax_revision = pci_chip_ids[i].max_revision;
i951drivers/scsi/53c7,8xx.cmin_revision = pci_chip_ids[i].min_revision;
i952drivers/scsi/53c7,8xx.cexpected_chip = pci_chip_ids[i].chip;
i954drivers/scsi/53c7,8xx.cif (chip == pci_chip_ids[i].chip)
i955drivers/scsi/53c7,8xx.cexpected_id = pci_chip_ids[i].pci_device_id;
i989drivers/scsi/53c7,8xx.cint i;
i1020drivers/scsi/53c7,8xx.cfor (i = 0; i < NPCI_CHIP_IDS; ++i) 
i1023drivers/scsi/53c7,8xx.cpci_chip_ids[i].pci_device_id, pci_index, &pci_bus, 
i1025drivers/scsi/53c7,8xx.c!ncr_pci_init (tpnt, BOARD_GENERIC, pci_chip_ids[i].chip, 
i1053drivers/scsi/53c7,8xx.cint i, ncr_to_memory, memory_to_ncr, ncr_to_ncr;
i1064drivers/scsi/53c7,8xx.cfor (i = 0; i < PATCHES; ++i) 
i1065drivers/scsi/53c7,8xx.chostdata->script[LABELPATCHES[i]] +=
i1079drivers/scsi/53c7,8xx.cfor (i = 0; i < EXTERNAL_PATCHES_LEN; ++i)
i1080drivers/scsi/53c7,8xx.chostdata->script[EXTERNAL_PATCHES[i].offset] +=
i1081drivers/scsi/53c7,8xx.cvirt_to_bus(EXTERNAL_PATCHES[i].address);
i1222drivers/scsi/53c7,8xx.cint failed, i;
i1331drivers/scsi/53c7,8xx.cfor (i = 0; i < 3; ++i) {
i1340drivers/scsi/53c7,8xx.cdsa[0] = (0x33 << 24) | (i << 16)  ;
i1360drivers/scsi/53c7,8xx.chost->host_no, i, data + 8);
i1368drivers/scsi/53c7,8xx.chost->host_no, i);
i1382drivers/scsi/53c7,8xx.chost->host_no, i);
i1407drivers/scsi/53c7,8xx.cint i;
i1447drivers/scsi/53c7,8xx.cint i;
i1451drivers/scsi/53c7,8xx.cfor (i = 0; i < 2; ++i) {
i1452drivers/scsi/53c7,8xx.cfor (search = (i ? hostdata->issue_dsa_head :
i1453drivers/scsi/53c7,8xx.chostdata->reconnect_dsa_head), prev = (i ? 
i1623drivers/scsi/53c7,8xx.cint desire, divisor, i, limit;
i1638drivers/scsi/53c7,8xx.cfor (i = 0; (i < limit) && (divisor < syncs[i + 1].div); ++i);
i1641drivers/scsi/53c7,8xx.csyncs[i].div / 10, syncs[i].div % 10);
i1646drivers/scsi/53c7,8xx.c~SCNTL3_800_SCF_MASK) | (syncs[i].scf << SCNTL3_800_SCF_SHIFT)) : 0;
i1647drivers/scsi/53c7,8xx.csxfer = (msg[4] << SXFER_MO_SHIFT) | ((syncs[i].tp) << SXFER_TP_SHIFT);
i2138drivers/scsi/53c7,8xx.c{DT_help, "?", 0} , TOKEN(h,0), TOKEN(i,0), TOKEN(mp,2), 
i2161drivers/scsi/53c7,8xx.cint i, j, error, len;
i2181drivers/scsi/53c7,8xx.cfor (i = 0; i < NDT; ++i) {
i2182drivers/scsi/53c7,8xx.clen = strlen (debugger_tokens[i].name);
i2183drivers/scsi/53c7,8xx.cif (!strncmp(input_buf, debugger_tokens[i].name, len)) 
i2187drivers/scsi/53c7,8xx.cif (i == NDT) 
i2190drivers/scsi/53c7,8xx.cfor (ptr = input_buf + len, j = 0; j < debugger_tokens[i].nargs && *ptr;) {
i2200drivers/scsi/53c7,8xx.cif (j != debugger_tokens[i].nargs)
i2365drivers/scsi/53c7,8xx.ci;      /* Counter */
i2390drivers/scsi/53c7,8xx.cfor (i = host->hostt->cmd_per_lun - 1; i >= 0  --i) {
i2412drivers/scsi/53c7,8xx.cif (i > 0) {
i2600drivers/scsi/53c7,8xx.cfor (i = 0; cmd->use_sg ? (i < cmd->use_sg) : !i; cmd_datain += 4, 
i2601drivers/scsi/53c7,8xx.ccmd_dataout += 4, ++i) {
i2603drivers/scsi/53c7,8xx.cvirt_to_bus(((struct scatterlist *)cmd->buffer)[i].address) :
i2606drivers/scsi/53c7,8xx.c((struct scatterlist *)cmd->buffer)[i].length :
i3902drivers/scsi/53c7,8xx.cint i, len;
i3911drivers/scsi/53c7,8xx.cfor (i = dsa[hostdata->dsa_msgout / sizeof(u32)],
i3912drivers/scsi/53c7,8xx.cptr = bus_to_virt(dsa[hostdata->dsa_msgout / sizeof(u32) + 1]); i > 0;
i3913drivers/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)] &     \
i265drivers/scsi/BusLogic.cint i;
i266drivers/scsi/BusLogic.cfor (i = 0; i < BusLogic_InitialCCBs; i++)
i273drivers/scsi/BusLogic.cHostAdapter->HostNumber, i);
i488drivers/scsi/BusLogic.cint i;
i491drivers/scsi/BusLogic.cfor (i = 0; i < ReplyBytes; i++)
i492drivers/scsi/BusLogic.cprintk(" %02X", ((unsigned char *) ReplyData)[i]);
i702drivers/scsi/BusLogic.cint TargetID, i;
i779drivers/scsi/BusLogic.cfor (i = 0; i < sizeof(ModelAndRevision.Model); i++)
i781drivers/scsi/BusLogic.cCharacter = ModelAndRevision.Model[i];
i1187drivers/scsi/BusLogic.cint TestCount = 5, i;
i1192drivers/scsi/BusLogic.cfor (i = 0; i < TestCount; i++)
i1860drivers/scsi/BusLogic.cint i;
i1867drivers/scsi/BusLogic.cfor (i = 0; i < CCB->CDB_Length; i++)
i1868drivers/scsi/BusLogic.cprintk(" %02X", CCB->CDB[i]);
i1871drivers/scsi/BusLogic.cfor (i = 0; i < CCB->SenseDataLength; i++)
i1872drivers/scsi/BusLogic.cprintk(" %02X", (*CCB->SenseDataPointer)[i]);
i2427drivers/scsi/BusLogic.cint IntegerCount = Integers[0], TargetID, i;
i2443drivers/scsi/BusLogic.cfor (i = 0; ; i++)
i2444drivers/scsi/BusLogic.cif (BusLogic_IO_StandardAddresses[i] == 0)
i2450drivers/scsi/BusLogic.celse if (i < ProbeListIndex &&
i2451drivers/scsi/BusLogic.cIO_Address == BusLogic_IO_AddressProbeList[i])
i2457drivers/scsi/BusLogic.celse if (IO_Address == BusLogic_IO_StandardAddresses[i]) break;
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;
i153drivers/scsi/NCR53c406a.c#define rtrc(i) {inb(0x3da);outb(0x31,0x3c0);outb((i),0x3c0);}
i155drivers/scsi/NCR53c406a.c#define rtrc(i) {}
i351drivers/scsi/NCR53c406a.cint  i;
i357drivers/scsi/NCR53c406a.ci = inb(PIO_STATUS);
i359drivers/scsi/NCR53c406a.cif (i & 0x80) 
i362drivers/scsi/NCR53c406a.cswitch( i & 0x1e ) {
i376drivers/scsi/NCR53c406a.cif ((i & 0x40) && len == 0) { /* fifo empty and interrupt occured */
i406drivers/scsi/NCR53c406a.cint  i = 0;
i411drivers/scsi/NCR53c406a.cwhile (reqlen && !(i&0x40)) {
i412drivers/scsi/NCR53c406a.ci = inb(PIO_STATUS);
i414drivers/scsi/NCR53c406a.cif (i & 0x80)    /* error */
i417drivers/scsi/NCR53c406a.cswitch( i & 0x1e ) {
i459drivers/scsi/NCR53c406a.cint i;
i491drivers/scsi/NCR53c406a.cfor(i=0;  i<PORT_COUNT && !port_base; i++){
i492drivers/scsi/NCR53c406a.cif(check_region(ports[i], 0x10)){
i493drivers/scsi/NCR53c406a.cDEB(printk("NCR53c406a: port %x in use\n", ports[i]));
i496drivers/scsi/NCR53c406a.cVDEB(printk("NCR53c406a: port %x available\n", ports[i]));
i497drivers/scsi/NCR53c406a.coutb(C5_IMG, ports[i] + 0x0d); /* reg set 1 */
i498drivers/scsi/NCR53c406a.cif(   (inb(ports[i] + 0x0e) ^ inb(ports[i] + 0x0e)) == 7
i499drivers/scsi/NCR53c406a.c&& (inb(ports[i] + 0x0e) ^ inb(ports[i] + 0x0e)) == 7
i500drivers/scsi/NCR53c406a.c&& (inb(ports[i] + 0x0e) & 0xf8) == 0x58 ) {
i503drivers/scsi/NCR53c406a.cport_base = ports[i];
i587drivers/scsi/NCR53c406a.csize_t i;
i600drivers/scsi/NCR53c406a.cfor (i = 0; i < PORT_COUNT && !port_base; i++)
i601drivers/scsi/NCR53c406a.cif (ports[i] == ints[1]) {
i616drivers/scsi/NCR53c406a.cfor (i = 0; i < INTR_COUNT && irq_level < 0; i++)
i617drivers/scsi/NCR53c406a.cif (intrs[i] == ints[2]) {
i644drivers/scsi/NCR53c406a.cint i = jiffies + WATCHDOG;
i646drivers/scsi/NCR53c406a.cwhile(i>jiffies && !(inb(STAT_REG)&0xe0)) /* wait for a pseudo-interrupt */
i649drivers/scsi/NCR53c406a.cif (i <= jiffies) {    /* Timed out */
i676drivers/scsi/NCR53c406a.cint i;
i688drivers/scsi/NCR53c406a.cVDEB(for(i=0; i<SCpnt->cmd_len; i++)
i689drivers/scsi/NCR53c406a.cprintk("cmd[%d]=%02x  ", i, SCpnt->cmnd[i]));
i705drivers/scsi/NCR53c406a.cfor(i=0; i<SCpnt->cmd_len; i++){
i706drivers/scsi/NCR53c406a.coutb(SCpnt->cmnd[i], SCSI_FIFO);
i914drivers/scsi/NCR53c406a.cfor(i=0; i<current_SC->request_bufflen && i<256; i++)
i915drivers/scsi/NCR53c406a.cprintk("%02x ", *((unsigned char*)current_SC->request_buffer + i));
i965drivers/scsi/NCR53c406a.cint i;
i976drivers/scsi/NCR53c406a.ci = jiffies + WATCHDOG;
i977drivers/scsi/NCR53c406a.cwhile(i > jiffies && !(inb(STAT_REG) & 0x80))
i979drivers/scsi/NCR53c406a.cif (i <= jiffies) {    /* Timed out, must be hardware trouble */
i557drivers/scsi/aha152x.cint i;
i563drivers/scsi/aha152x.cfor(i=0; i<16; i++)
i564drivers/scsi/aha152x.cSETPORT( STACK, i );
i567drivers/scsi/aha152x.cfor(i=0; i<16 && GETPORT(STACK)==i; i++)
i570drivers/scsi/aha152x.creturn(i==16);
i575drivers/scsi/aha152x.cint                 i, ok;
i613drivers/scsi/aha152x.cfor( i=0; i<PORT_COUNT && (port_base != ports[i]); i++)
i616drivers/scsi/aha152x.cif(i==PORT_COUNT)
i634drivers/scsi/aha152x.ci=0;
i635drivers/scsi/aha152x.cwhile(irqs[i] && (interrupt_level!=irqs[i]))
i636drivers/scsi/aha152x.ci++;
i637drivers/scsi/aha152x.cif(!irqs[i])
i669drivers/scsi/aha152x.cfor( i=0; i < ADDRESS_COUNT && !ok; i++)
i671drivers/scsi/aha152x.cok=!memcmp((void *) addresses[i]+signatures[j].sig_offset,
i685drivers/scsi/aha152x.cfor( i=0; i<PORT_COUNT && !aha152x_porttest(ports[i]); i++)
i688drivers/scsi/aha152x.cif(i==PORT_COUNT)
i694drivers/scsi/aha152x.cport_base=ports[i];
i1259drivers/scsi/aha152x.cint identify_msg, target, i;
i1286drivers/scsi/aha152x.ci = GETPORT(SELID) & ~(1 << this_host);
i1288drivers/scsi/aha152x.cif(i)
i1289drivers/scsi/aha152x.cfor( ; (i & 1)==0; target++, i>>=1)
i1307drivers/scsi/aha152x.cif((i=getphase())!=P_MSGI)
i1309drivers/scsi/aha152x.cprintk("target doesn't enter MSGI to identify (phase=%02x)\n", i);
i1754drivers/scsi/aha152x.cint           i, code;
i1764drivers/scsi/aha152x.ci=GETPORT(SCSIBUS);
i1768drivers/scsi/aha152x.cprintk("length (%d), code ( ", i);
i1821drivers/scsi/aha152x.cwhile( --i && (make_acklow(), getphase()==P_MSGI))
i1995drivers/scsi/aha152x.cint           i;
i2001drivers/scsi/aha152x.cfor( i=0; i<2*data_count; i++)
i292drivers/scsi/aha1542.cint i;
i311drivers/scsi/aha1542.ci = jiffies + 2;
i312drivers/scsi/aha1542.cwhile (i>jiffies); /* Wait a little bit for things to settle down. */
i489drivers/scsi/aha1542.cint i;
i493drivers/scsi/aha1542.cfor (i = 0; i < 12; i++)
i494drivers/scsi/aha1542.cprintk("%02x ", ccb[mbo].cdb[ccb[mbo].cdblen+i]);
i527drivers/scsi/aha1542.cDEB(int i);
i549drivers/scsi/aha1542.ci = xscsi2int(cmd+2);
i551drivers/scsi/aha1542.ci = scsi2int(cmd+2);
i553drivers/scsi/aha1542.ci = -1;
i555drivers/scsi/aha1542.cprintk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen);
i557drivers/scsi/aha1542.cprintk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen);
i560drivers/scsi/aha1542.cfor (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]);
i613drivers/scsi/aha1542.cint i;
i619drivers/scsi/aha1542.cfor(i=0; i<SCpnt->use_sg; i++) {
i620drivers/scsi/aha1542.cif(sgpnt[i].length == 0 || SCpnt->use_sg > 16 || 
i621drivers/scsi/aha1542.c(((int)sgpnt[i].address) & 1) || (sgpnt[i].length & 1)){
i623drivers/scsi/aha1542.cprintk("Bad segment list supplied to aha1542.c (%d, %d)\n",SCpnt->use_sg,i);
i624drivers/scsi/aha1542.cfor(i=0;i<SCpnt->use_sg;i++){
i625drivers/scsi/aha1542.cprintk("%d: %x %x %d\n",i,(unsigned int) sgpnt[i].address, (unsigned int) sgpnt[i].alt_address,
i626drivers/scsi/aha1542.csgpnt[i].length);
i629drivers/scsi/aha1542.cptr = (unsigned char *) &cptr[i];
i630drivers/scsi/aha1542.cfor(i=0;i<18;i++) printk("%02x ", ptr[i]);
i633drivers/scsi/aha1542.cany2scsi(cptr[i].dataptr, sgpnt[i].address);
i634drivers/scsi/aha1542.cif(((unsigned  int) sgpnt[i].address) & 0xff000000) goto baddma;
i635drivers/scsi/aha1542.cany2scsi(cptr[i].datalen, sgpnt[i].length);
i642drivers/scsi/aha1542.cfor(i=0;i<18;i++) printk("%02x ", ptr[i]);
i657drivers/scsi/aha1542.c{ int i;
i659drivers/scsi/aha1542.cfor (i = 0; i < sizeof(ccb[mbo])-10; i++)
i660drivers/scsi/aha1542.cprintk("%02x ", ((unchar *)&ccb[mbo])[i]);
i699drivers/scsi/aha1542.cint i;
i708drivers/scsi/aha1542.cfor(i=0; i<AHA1542_MAILBOXES; i++){
i709drivers/scsi/aha1542.cmb[i].status = mb[AHA1542_MAILBOXES+i].status = 0;
i710drivers/scsi/aha1542.cany2scsi(mb[i].ccbptr, &ccb[i]);
i727drivers/scsi/aha1542.cint i;
i728drivers/scsi/aha1542.ci = inb(STATUS(base_io));
i729drivers/scsi/aha1542.cif (i & DF) {
i730drivers/scsi/aha1542.ci = inb(DATA(base_io));
i828drivers/scsi/aha1542.cint i;
i829drivers/scsi/aha1542.ci = inb(STATUS(base_io));
i830drivers/scsi/aha1542.cif (i & DF) {
i831drivers/scsi/aha1542.ci = inb(DATA(base_io));
i1043drivers/scsi/aha1542.cint i;
i1045drivers/scsi/aha1542.cfor (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87;
i1046drivers/scsi/aha1542.cfor (i = 0; i < 2; ++i)
i1047drivers/scsi/aha1542.cif (!aha1542_command(i, cmd, buf, sizeof(buf))) {
i1049drivers/scsi/aha1542.ci, xscsi2int(buf+4), xscsi2int(buf));
i1055drivers/scsi/aha1542.cfor (i = 0; i < 4; ++i)
i1062drivers/scsi/aha1542.cxany2scsi(cmd+2, i);
i1084drivers/scsi/aha1542.cint i;
i1090drivers/scsi/aha1542.cfor(i=0; i< AHA1542_MAILBOXES; i++)
i1091drivers/scsi/aha1542.cif(HOSTDATA(shost)->SCint[i] && 
i1092drivers/scsi/aha1542.c!(HOSTDATA(shost)->SCint[i]->device->soft_reset))
i1095drivers/scsi/aha1542.cHOSTDATA(shost)->mb[i].status = 1; /* Indicate ready to restart... */
i1118drivers/scsi/aha1542.cint mbi, mbo, i;
i1147drivers/scsi/aha1542.cfor(i=0; i< AHA1542_MAILBOXES; i++)
i1148drivers/scsi/aha1542.cif(HOSTDATA(SCpnt->host)->SCint[i])
i1150drivers/scsi/aha1542.cif(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt) {
i1153drivers/scsi/aha1542.cif (HOSTDATA(SCpnt->host)->mb[i].status) {
i1188drivers/scsi/aha1542.cint i;
i1227drivers/scsi/aha1542.cfor(i=0; i< AHA1542_MAILBOXES; i++)
i1228drivers/scsi/aha1542.cif(HOSTDATA(SCpnt->host)->SCint[i] != NULL)
i1231drivers/scsi/aha1542.cSCtmp = HOSTDATA(SCpnt->host)->SCint[i];
i1237drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->SCint[i] = NULL;
i1238drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->mb[i].status = 0;
i1257drivers/scsi/aha1542.cfor(i=0; i< AHA1542_MAILBOXES; i++)
i1258drivers/scsi/aha1542.cif(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt)
i1260drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->ccb[i].op = 0x81;  /* BUS DEVICE RESET */
i1273drivers/scsi/aha1542.cfor(i=0; i< AHA1542_MAILBOXES; i++)
i1274drivers/scsi/aha1542.cif(HOSTDATA(SCpnt->host)->SCint[i] &&
i1275drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->SCint[i]->target == SCpnt->target)
i1278drivers/scsi/aha1542.cSCtmp = HOSTDATA(SCpnt->host)->SCint[i];
i1284drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->SCint[i] = NULL;
i1285drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->mb[i].status = 0;
i261drivers/scsi/aha1740.cDEB(int i);
i277drivers/scsi/aha1740.ci = xscsi2int(cmd+2);
i279drivers/scsi/aha1740.ci = scsi2int(cmd+2);
i281drivers/scsi/aha1740.ci = -1;
i282drivers/scsi/aha1740.cprintk("aha1740_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen);
i284drivers/scsi/aha1740.cfor (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]);
i328drivers/scsi/aha1740.cint i;
i337drivers/scsi/aha1740.cfor(i=0; i<SCpnt->use_sg; i++)
i339drivers/scsi/aha1740.ccptr[i].dataptr = (long) sgpnt[i].address;
i340drivers/scsi/aha1740.ccptr[i].datalen = sgpnt[i].length;
i347drivers/scsi/aha1740.cfor(i=0;i<24;i++) printk("%02x ", ptr[i]);
i367drivers/scsi/aha1740.cint i;
i369drivers/scsi/aha1740.cfor (i = 0; i < sizeof(ecb[ecbno])-10; i++)
i370drivers/scsi/aha1740.cprintk("%02x ", ((unchar *)&ecb[ecbno])[i]);
i1288drivers/scsi/aic7xxx.cint   i, n;
i1302drivers/scsi/aic7xxx.cfor (i = 0; options[i].name; i++)
i1304drivers/scsi/aic7xxx.cn = strlen(options[i].name);
i1305drivers/scsi/aic7xxx.cif (!strncmp(options[i].name, p, n))
i1309drivers/scsi/aic7xxx.c*(options[i].flag) = simple_strtoul(p + n + 1, NULL, 0);
i1313drivers/scsi/aic7xxx.c*(options[i].flag) = !0;
i1391drivers/scsi/aic7xxx.cunsigned long i;
i1393drivers/scsi/aic7xxx.ci = jiffies + (seconds * HZ);  /* compute time to stop */
i1395drivers/scsi/aic7xxx.cwhile (jiffies < i)
i1590drivers/scsi/aic7xxx.cint i, segments;
i1599drivers/scsi/aic7xxx.cfor (i = length = 0; (i < cmd->use_sg) && (i < segments); i++)
i1601drivers/scsi/aic7xxx.clength += sg[i].length;
i1624drivers/scsi/aic7xxx.cint i;
i1626drivers/scsi/aic7xxx.cfor (i = 0; i < num_aic7xxx_syncrates; i++)
i1628drivers/scsi/aic7xxx.cif ((aic7xxx_syncrates[i].period - period) >= 0)
i1636drivers/scsi/aic7xxx.cif (! (aic7xxx_syncrates[i].rate & ULTRA_SXFR))
i1640drivers/scsi/aic7xxx.c"above.\n", target, channel, aic7xxx_syncrates[i].english);
i1650drivers/scsi/aic7xxx.cif (aic7xxx_syncrates[i].rate & ULTRA_SXFR)
i1660drivers/scsi/aic7xxx.c*scsirate = (aic7xxx_syncrates[i].rate) | (offset & 0x0F);
i1663drivers/scsi/aic7xxx.ctarget, channel, aic7xxx_syncrates[i].english, offset);
i2001drivers/scsi/aic7xxx.cint i = 0;
i2016drivers/scsi/aic7xxx.cfor (i = 0; i < (queued - found); i++)
i2018drivers/scsi/aic7xxx.csaved_queue[i] = inb(QINFIFO(base));
i2019drivers/scsi/aic7xxx.cscb = &(p->scb_array[saved_queue[i]]);
i2030drivers/scsi/aic7xxx.ci--;
i2037drivers/scsi/aic7xxx.cfor (queued = 0; queued < i; queued++)
i2078drivers/scsi/aic7xxx.cfor(i = 0; i < p->numscb; i++)
i2080drivers/scsi/aic7xxx.cscb = &(p->scb_array[i]);
i2302drivers/scsi/aic7xxx.cint i;
i2306drivers/scsi/aic7xxx.cfor (i = 0; i < NUMBER(hard_error); i++)
i2308drivers/scsi/aic7xxx.cif (errno & hard_error[i].errno)
i2310drivers/scsi/aic7xxx.cprintk("  %s\n", hard_error[i].errmesg);
i3079drivers/scsi/aic7xxx.cint i;
i3097drivers/scsi/aic7xxx.cfor (i = 0; i < sizeof(buf); i++)
i3099drivers/scsi/aic7xxx.coutb(0x80 + i, base);
i3100drivers/scsi/aic7xxx.cbuf[i] = inb(base + i);
i3103drivers/scsi/aic7xxx.cfor (i = 0; i < NUMBER(AIC7xxx); i++)
i3108drivers/scsi/aic7xxx.cif (!memcmp(buf, AIC7xxx[i].signature, AIC7xxx[i].n))
i3112drivers/scsi/aic7xxx.creturn (AIC7xxx[i].type);
i3147drivers/scsi/aic7xxx.cint i = 0, k = 0;
i3182drivers/scsi/aic7xxx.cfor (i = 0; i < seeprom_read.len; i++)
i3184drivers/scsi/aic7xxx.ctemp = CS_2840 | seeprom_read.bits[i];
i3194drivers/scsi/aic7xxx.cfor (i = 5; i >= 0; i--)
i3197drivers/scsi/aic7xxx.ctemp = (temp >> i) & 1;  /* Mask out all but lower bit. */
i3212drivers/scsi/aic7xxx.cfor (i = 0; i <= 16; i++)
i3320drivers/scsi/aic7xxx.cint i = 0, k;
i3374drivers/scsi/aic7xxx.cfor (i = 0; i < seeprom_read.len; i++)
i3376drivers/scsi/aic7xxx.ctemp = SEEMS | SEECS | (seeprom_read.bits[i] << 1);
i3386drivers/scsi/aic7xxx.cfor (i = 5; i >= 0; i--)
i3389drivers/scsi/aic7xxx.ctemp = (temp >> i) & 1;  /* Mask out all but lower bit. */
i3404drivers/scsi/aic7xxx.cfor (i = 0; i <= 16; i++)
i3477drivers/scsi/aic7xxx.cint maxscb = 0, i;
i3540drivers/scsi/aic7xxx.ci = 0;
i3541drivers/scsi/aic7xxx.cwhile (i < AIC7XXX_MAXSCB)
i3543drivers/scsi/aic7xxx.coutb(i, SCBPTR(base));
i3550drivers/scsi/aic7xxx.ci++;
i3552drivers/scsi/aic7xxx.cmaxscb = i;    
i3571drivers/scsi/aic7xxx.cint i;
i3902drivers/scsi/aic7xxx.cfor (i = 0; i < AIC7XXX_MAXSCB; i++)
i3904drivers/scsi/aic7xxx.cp->scb_array[i].state = SCB_FREE;
i3905drivers/scsi/aic7xxx.cp->scb_array[i].next = NULL;
i3906drivers/scsi/aic7xxx.cp->scb_array[i].cmd = NULL;
i4058drivers/scsi/aic7xxx.cfor (i = 0; i < max_targets; i++)
i4062drivers/scsi/aic7xxx.ctarget_settings = ((sc.device_flags[i] & CFXFER) << 4);
i4063drivers/scsi/aic7xxx.cif (sc.device_flags[i] & CFSYNCH)
i4065drivers/scsi/aic7xxx.cp->needsdtr_copy |= (0x01 << i);
i4067drivers/scsi/aic7xxx.cif ((sc.device_flags[i] & CFWIDEB) && (p->bus_type == AIC_WIDE))
i4069drivers/scsi/aic7xxx.cp->needwdtr_copy |= (0x01 << i);
i4071drivers/scsi/aic7xxx.cif (sc.device_flags[i] & CFDISC)
i4073drivers/scsi/aic7xxx.cp->discenable |= (0x01 << i);
i4078drivers/scsi/aic7xxx.ctarget_settings = inb(HA_TARG_SCRATCH(base) + i);
i4081drivers/scsi/aic7xxx.cp->needsdtr_copy |= (0x01 << i);
i4094drivers/scsi/aic7xxx.cp->needwdtr_copy |= (0x01 << i);
i4098drivers/scsi/aic7xxx.coutb(target_settings, (HA_TARG_SCRATCH(base) + i));
i4112drivers/scsi/aic7xxx.cfor (i = 0; i < config->maxscb; i++)
i4114drivers/scsi/aic7xxx.coutb(i, SCBPTR(base));
i4200drivers/scsi/aic7xxx.cint i;
i4213drivers/scsi/aic7xxx.cfor (i = 0; i <= MAXIRQ; i++)
i4215drivers/scsi/aic7xxx.caic7xxx_boards[i] = NULL;
i149drivers/scsi/aic7xxx_asm.cint i;
i167drivers/scsi/aic7xxx_asm.cfor (i = 0; i < p->npatch; i++) {
i168drivers/scsi/aic7xxx_asm.cM[p->patch[i]][0] &= ~1;
i169drivers/scsi/aic7xxx_asm.cM[p->patch[i]][0] |= ((p->value >> 8) & 1);
i170drivers/scsi/aic7xxx_asm.cM[p->patch[i]][1] = p->value & 0xff;
i173drivers/scsi/aic7xxx_asm.cfprintf(stderr, " 0x%x", p->patch[i]);
i189drivers/scsi/aic7xxx_asm.cint i;
i191drivers/scsi/aic7xxx_asm.cfor (i = 0; i < LC; i++)
i193drivers/scsi/aic7xxx_asm.cM[i][3],
i194drivers/scsi/aic7xxx_asm.cM[i][2],
i195drivers/scsi/aic7xxx_asm.cM[i][1],
i196drivers/scsi/aic7xxx_asm.cM[i][0]);
i203drivers/scsi/aic7xxx_asm.cint i;
i208drivers/scsi/aic7xxx_asm.ci = 0;
i226drivers/scsi/aic7xxx_asm.cif (i < MAXTOKEN-1)
i227drivers/scsi/aic7xxx_asm.ca[i++] = p;
i235drivers/scsi/aic7xxx_asm.celse if (i < MAXTOKEN-1) {
i236drivers/scsi/aic7xxx_asm.ca[i++] = quote;
i244drivers/scsi/aic7xxx_asm.cif (i) {
i245drivers/scsi/aic7xxx_asm.c*n = i;
i326drivers/scsi/aic7xxx_asm.cint i;
i346drivers/scsi/aic7xxx_asm.cfor (i = 0; i < sizeof(jmptab)/sizeof(jmptab[0]); i++)
i347drivers/scsi/aic7xxx_asm.cif (jmptab[i].what == want &&
i348drivers/scsi/aic7xxx_asm.c!strcmp(jmptab[i].name, a[spec]))
i350drivers/scsi/aic7xxx_asm.creturn(jmptab[i].value);
i457drivers/scsi/aic7xxx_asm.cint i;
i470drivers/scsi/aic7xxx_asm.cfor (i = 0; instr[i].name; i++) {
i476drivers/scsi/aic7xxx_asm.cif (!strcmp(instr[i].name, *a) && instr[i].n == n)
i479drivers/scsi/aic7xxx_asm.cif (!instr[i].name)
i482drivers/scsi/aic7xxx_asm.cI_op  = eval_operand(a, instr[i].op);
i483drivers/scsi/aic7xxx_asm.cI_src  = eval_sdi(a, instr[i].src);
i484drivers/scsi/aic7xxx_asm.cI_imm  = eval_sdi(a, instr[i].imm);
i485drivers/scsi/aic7xxx_asm.cI_dest  = eval_sdi(a, instr[i].dest);
i486drivers/scsi/aic7xxx_asm.cI_addr  = eval_addr(a, instr[i].addr);
i491drivers/scsi/aic7xxx_asm.cswitch (instr[i].fmt) {
i80drivers/scsi/aic7xxx_proc.cint   i; 
i89drivers/scsi/aic7xxx_proc.cfor (i = 0; i < NUMBER(aic7xxx_boards); i++)
i91drivers/scsi/aic7xxx_proc.cif ((HBAptr = aic7xxx_boards[i]) != NULL)
i111drivers/scsi/constants.cint i,s;
i113drivers/scsi/constants.cfor ( i = 1, s = COMMAND_SIZE(command[0]); i < s; ++i) 
i114drivers/scsi/constants.cprintk("%02x ", command[i]);
i375drivers/scsi/constants.cint i, s;
i421drivers/scsi/constants.cfor(i=0; additional[i].text; i++)
i422drivers/scsi/constants.cif(additional[i].code1 == sense_buffer[12] &&
i423drivers/scsi/constants.cadditional[i].code2 == sense_buffer[13])
i424drivers/scsi/constants.cprintk("Additional sense indicates %s\n", additional[i].text);
i426drivers/scsi/constants.cfor(i=0; additional2[i].text; i++)
i427drivers/scsi/constants.cif(additional2[i].code1 == sense_buffer[12] &&
i428drivers/scsi/constants.cadditional2[i].code2_min >= sense_buffer[13]  &&
i429drivers/scsi/constants.cadditional2[i].code2_max <= sense_buffer[13]) {
i431drivers/scsi/constants.cprintk(additional2[i].text, sense_buffer[13]);
i455drivers/scsi/constants.cfor (i = 0; i < s; ++i) 
i456drivers/scsi/constants.cprintk("0x%02x ", sense_buffer[i]);
i490drivers/scsi/constants.cint len = 0, i;
i511drivers/scsi/constants.cfor (i = 2; i < len; ++i) 
i512drivers/scsi/constants.cprintk("%02x ", msg[i]);
i515drivers/scsi/constants.cfor (i = 0; i < len; ++i)
i516drivers/scsi/constants.cprintk("%02x ", msg[i]);
i606drivers/scsi/eata.cunsigned int i, j, k, flags;
i625drivers/scsi/eata.ci = HD(j)->last_cp_used + 1;
i627drivers/scsi/eata.cfor (k = 0; k < sh[j]->can_queue; k++, i++) {
i629drivers/scsi/eata.cif (i >= sh[j]->can_queue) i = 0;
i631drivers/scsi/eata.cif (HD(j)->cp_stat[i] == FREE) {
i632drivers/scsi/eata.cHD(j)->last_cp_used = i;
i654drivers/scsi/eata.ccpp = &HD(j)->cp[i];
i659drivers/scsi/eata.cspp = &HD(j)->sp[i];
i667drivers/scsi/eata.ccpp->index = i;
i671drivers/scsi/eata.cBN(j), i, SCpnt->target, SCpnt->pid);
i711drivers/scsi/eata.cHD(j)->cp_stat[i] = IN_USE;
i717drivers/scsi/eata.cunsigned int i, j, flags;
i730drivers/scsi/eata.ci = *(unsigned int *)SCarg->host_scribble;
i732drivers/scsi/eata.cBN(j), i, SCarg->target, SCarg->pid);
i734drivers/scsi/eata.cif (i >= sh[j]->can_queue)
i743drivers/scsi/eata.cif (HD(j)->cp_stat[i] == FREE) {
i744drivers/scsi/eata.cprintk("%s: abort, mbox %d is free.\n", BN(j), i);
i749drivers/scsi/eata.cif (HD(j)->cp_stat[i] == IN_USE) {
i750drivers/scsi/eata.cprintk("%s: abort, mbox %d is in use.\n", BN(j), i);
i752drivers/scsi/eata.cif (SCarg != HD(j)->cp[i].SCpnt)
i754drivers/scsi/eata.cBN(j), i, SCarg, HD(j)->cp[i].SCpnt);
i760drivers/scsi/eata.cif (HD(j)->cp_stat[i] == IN_RESET) {
i761drivers/scsi/eata.cprintk("%s: abort, mbox %d is in reset.\n", BN(j), i);
i766drivers/scsi/eata.cif (HD(j)->cp_stat[i] == LOCKED) {
i767drivers/scsi/eata.cprintk("%s: abort, mbox %d is locked.\n", BN(j), i);
i772drivers/scsi/eata.cpanic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i);
i776drivers/scsi/eata.cunsigned int i, j, flags, time, k, limit = 0;
i805drivers/scsi/eata.cfor (i = 0; i < sh[j]->can_queue; i++) {
i807drivers/scsi/eata.cif (HD(j)->cp_stat[i] == FREE) continue;
i809drivers/scsi/eata.cif (HD(j)->cp_stat[i] == LOCKED) {
i810drivers/scsi/eata.cHD(j)->cp_stat[i] = FREE;
i811drivers/scsi/eata.cprintk("%s: reset, locked mbox %d forced free.\n", BN(j), i);
i815drivers/scsi/eata.cSCpnt = HD(j)->cp[i].SCpnt;
i816drivers/scsi/eata.cHD(j)->cp_stat[i] = IN_RESET;
i818drivers/scsi/eata.cBN(j), i, SCpnt->pid);
i821drivers/scsi/eata.cpanic("%s: reset, mbox %d, SCpnt == NULL.\n", BN(j), i);
i824drivers/scsi/eata.cpanic("%s: reset, mbox %d, garbled SCpnt.\n", BN(j), i);
i826drivers/scsi/eata.cif (*(unsigned int *)SCpnt->host_scribble != i) 
i827drivers/scsi/eata.cpanic("%s: reset, mbox %d, index mismatch.\n", BN(j), i);
i830drivers/scsi/eata.cpanic("%s: reset, mbox %d, SCpnt->scsi_done == NULL.\n", BN(j), i);
i854drivers/scsi/eata.cfor (i = 0; i < sh[j]->can_queue; i++) {
i857drivers/scsi/eata.cif (HD(j)->cp_stat[i] != IN_RESET) continue;
i859drivers/scsi/eata.cSCpnt = HD(j)->cp[i].SCpnt;
i864drivers/scsi/eata.cHD(j)->cp_stat[i] = LOCKED;
i867drivers/scsi/eata.cBN(j), i, SCpnt->pid);
i889drivers/scsi/eata.cunsigned int i, j, k, flags, status, tstatus, loops, total_loops = 0;
i924drivers/scsi/eata.cfor (i = 0; i < sh[j]->can_queue; i++) {
i925drivers/scsi/eata.cspp = &HD(j)->sp[i];
i932drivers/scsi/eata.cif (HD(j)->cp_stat[i] == IGNORE) {
i933drivers/scsi/eata.cHD(j)->cp_stat[i] = FREE;
i936drivers/scsi/eata.celse if (HD(j)->cp_stat[i] == LOCKED) {
i937drivers/scsi/eata.cHD(j)->cp_stat[i] = FREE;
i939drivers/scsi/eata.cBN(j), i, HD(j)->iocount);
i942drivers/scsi/eata.celse if (HD(j)->cp_stat[i] == FREE) {
i944drivers/scsi/eata.cBN(j), i, HD(j)->iocount);
i947drivers/scsi/eata.celse if (HD(j)->cp_stat[i] == IN_RESET)
i948drivers/scsi/eata.cprintk("%s: ihdlr, mbox %d is in reset.\n", BN(j), i);
i949drivers/scsi/eata.celse if (HD(j)->cp_stat[i] != IN_USE) 
i950drivers/scsi/eata.cpanic("%s: ihdlr, mbox %d, invalid cp_stat.\n", BN(j), i);
i952drivers/scsi/eata.cHD(j)->cp_stat[i] = FREE;
i953drivers/scsi/eata.ccpp = &HD(j)->cp[i];
i957drivers/scsi/eata.cpanic("%s: ihdlr, mbox %d, SCpnt == NULL.\n", BN(j), i);
i961drivers/scsi/eata.cBN(j), i, SCpnt, cpp->SCpnt);
i965drivers/scsi/eata.cBN(j), i, SCpnt->pid, SCpnt);
i967drivers/scsi/eata.cif (*(unsigned int *)SCpnt->host_scribble != i) 
i969drivers/scsi/eata.c" irq %d.\n", BN(j), i, SCpnt->pid, 
i1059drivers/scsi/eata.cBN(j), i, spp->adapter_status, spp->target_status,
i132drivers/scsi/eata_dma.cuint i;
i138drivers/scsi/eata_dma.cfor (i = 0; i < sh->can_queue; i++){ /* Free all SG arrays */
i139drivers/scsi/eata_dma.cif(SD(sh)->ccb[i].sg_list != NULL)
i140drivers/scsi/eata_dma.cscsi_init_free((void *) SD(sh)->ccb[i].sg_list, 
i156drivers/scsi/eata_dma.cuint i, result = 0;
i273drivers/scsi/eata_dma.cfor (i = 0; i < MAXTARGET; i++)
i274drivers/scsi/eata_dma.cHD(cmd)->t_state[cp->cp_channel][i] = RESET;
i349drivers/scsi/eata_dma.cunsigned int i, x, y;
i483drivers/scsi/eata_dma.cfor(i = 0; i < cmd->use_sg; i++, sl++){
i484drivers/scsi/eata_dma.ccp->sg_list[i].data = htonl(virt_to_bus(sl->address));
i485drivers/scsi/eata_dma.ccp->sg_list[i].len = htonl((u32) sl->length);
i697drivers/scsi/eata_dma.culong i;
i737drivers/scsi/eata_dma.ci = jiffies + (3 * HZ);
i738drivers/scsi/eata_dma.cwhile (fake_int_happened == FALSE && jiffies <= i) 
i749drivers/scsi/eata_dma.cif ((fake_int_result & HA_SERROR) || jiffies > i){
i753drivers/scsi/eata_dma.ci = jiffies;
i754drivers/scsi/eata_dma.cwhile (jiffies < (i + (3 * HZ)) && limit++ < 10000000) 
i1113drivers/scsi/eata_dma.cint i;
i1119drivers/scsi/eata_dma.cfor (i = 0; i < MAXEISA; i++) {
i1120drivers/scsi/eata_dma.cif (EISAbases[i] == TRUE) { /* Still a possibility ?        */
i1122drivers/scsi/eata_dma.cbase = 0x1c88 + (i * 0x1000);
i1146drivers/scsi/eata_dma.cEISAbases[i] = 0;  
i1157drivers/scsi/eata_dma.cint i;
i1159drivers/scsi/eata_dma.cfor (i = 0; i < MAXISA; i++) {  
i1160drivers/scsi/eata_dma.cif (ISAbases[i]) {  
i1161drivers/scsi/eata_dma.cif (get_conf_PIO(ISAbases[i],buf) == TRUE){
i1163drivers/scsi/eata_dma.cregister_HBA(ISAbases[i], buf, tpnt, IS_ISA);
i1165drivers/scsi/eata_dma.cif (check_blink_state(ISAbases[i])) 
i1169drivers/scsi/eata_dma.cISAbases[i] = 0;
i1187drivers/scsi/eata_dma.cu32 error, i, x;
i1191drivers/scsi/eata_dma.cfor (i = 0; i <= MAXPCI; ++i, ++pci_index) {
i1288drivers/scsi/eata_dma.cint i;
i1309drivers/scsi/eata_dma.cfor (i = 0; i <= MAXIRQ; i++) { /* Now that we know what we have, we     */
i1310drivers/scsi/eata_dma.cif (reg_IRQ[i]){            /* exchange the interrupt handler which  */
i1311drivers/scsi/eata_dma.cfree_irq(i);            /* we used for probing with the real one */
i1312drivers/scsi/eata_dma.crequest_irq(i, (void *)(eata_int_handler), SA_INTERRUPT, "eata_dma");
i1325drivers/scsi/eata_dma.cfor (i = 1; i <= registered_HBAs; i++) {
i89drivers/scsi/eata_dma_proc.cint i, x; 
i96drivers/scsi/eata_dma_proc.cfor (i = 1; i <= registered_HBAs; i++) {
i96drivers/scsi/eata_generic.h#define DELAY(x) { __u32 i; i = jiffies + (x * HZ); while (jiffies < i) barrier(); }
i97drivers/scsi/eata_generic.h#define DEL2(x)   { __u32 i; for (i = 0; i < 0xffff * x; i++); }
i821drivers/scsi/eata_pio.cint i;
i823drivers/scsi/eata_pio.cfor (i = 0; i < MAXISA; i++) {  
i824drivers/scsi/eata_pio.cif (ISAbases[i]) {  
i825drivers/scsi/eata_pio.cif (get_pio_conf_PIO(ISAbases[i], buf) == TRUE){
i826drivers/scsi/eata_pio.cregister_pio_HBA(ISAbases[i], buf, tpnt);
i828drivers/scsi/eata_pio.cISAbases[i] = 0;
i837drivers/scsi/eata_pio.cint i;
i843drivers/scsi/eata_pio.cfor (i = 0; i < MAXEISA; i++) {
i844drivers/scsi/eata_pio.cif (EISAbases[i] == TRUE) { /* Still a possibility ?          */
i846drivers/scsi/eata_pio.cbase = 0x1c88 + (i * 0x1000);
i866drivers/scsi/eata_pio.cEISAbases[i] = 0;
i887drivers/scsi/eata_pio.cu32 error, i, x;
i890drivers/scsi/eata_pio.cfor (i = 0; i <= MAXPCI; ++i, ++pci_index) {
i977drivers/scsi/eata_pio.cint i;
i990drivers/scsi/eata_pio.cfor (i = 0; i <= MAXIRQ; i++)
i991drivers/scsi/eata_pio.cif (reg_IRQ[i])
i992drivers/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++) {
i47drivers/scsi/eata_pio_proc.cint i; 
i53drivers/scsi/eata_pio_proc.cfor (i = 1; i <= registered_HBAs; i++) {
i554drivers/scsi/fdomain.cint i;
i557drivers/scsi/fdomain.cfor (i = 0; i < 255; i++) {
i558drivers/scsi/fdomain.coutb( i, port_base + Write_Loopback );
i560drivers/scsi/fdomain.cif (i != result)
i602drivers/scsi/fdomain.cint i;
i635drivers/scsi/fdomain.cfor (flag = 0, i = 0; !flag && i < PORT_COUNT; i++) {
i636drivers/scsi/fdomain.cif (base == ports[i])
i664drivers/scsi/fdomain.cfor (i = 0; i < PORT_COUNT; i++) {
i665drivers/scsi/fdomain.cbase = ports[i];
i688drivers/scsi/fdomain.cint i;
i701drivers/scsi/fdomain.cfor (i = 0xfff8; i > 0xe000; i -= 8) {
i702drivers/scsi/fdomain.cif (check_region( i, 0x10 )) {
i704drivers/scsi/fdomain.cprintk( " (%x inuse)," , i );
i708drivers/scsi/fdomain.cif ((flag = fdomain_is_valid_port( i ))) break;
i713drivers/scsi/fdomain.c*irq    = fdomain_get_irq( i );
i714drivers/scsi/fdomain.c*iobase = i;
i853drivers/scsi/fdomain.cint              i, j;
i885drivers/scsi/fdomain.cfor (i = 0; !bios_base && i < ADDRESS_COUNT; i++) {
i887drivers/scsi/fdomain.cprintk( " %x(%x),", (unsigned)addresses[i], (unsigned)bios_base );
i890drivers/scsi/fdomain.cif (!memcmp( ((char *)addresses[i] + signatures[j].sig_offset),
i896drivers/scsi/fdomain.cbios_base  = addresses[i];
i1021drivers/scsi/fdomain.cfor (i = 0; i < 8; i++) {
i1022drivers/scsi/fdomain.cSCinit.target = i;
i1023drivers/scsi/fdomain.cif (i == tpnt->this_id)  /* Skip host adapter */
i1031drivers/scsi/fdomain.cprintk( "     SCSI ID %d: ", i );
i1869drivers/scsi/fdomain.c} *i;
i1921drivers/scsi/fdomain.ci = (struct drive_info *)( (char *)bios_base + 0x1f33 + drive * 25 );
i1924drivers/scsi/fdomain.ci = (struct drive_info *)( (char *)bios_base + 0x1f36 + drive * 15 );
i1927drivers/scsi/fdomain.ci = (struct drive_info *)( (char *)bios_base + 0x1f34 + drive * 15 );
i1930drivers/scsi/fdomain.ci = (struct drive_info *)( (char *)bios_base + 0x1f31 + drive * 25 );
i1933drivers/scsi/fdomain.cinfo_array[0] = i->heads;
i1934drivers/scsi/fdomain.cinfo_array[1] = i->sectors;
i1935drivers/scsi/fdomain.cinfo_array[2] = i->cylinders;
i1939drivers/scsi/fdomain.ci = (struct drive_info *)( (char *)bios_base + 0x1f71 + drive * 10 );
i1940drivers/scsi/fdomain.cinfo_array[0] = i->heads + 1;
i1941drivers/scsi/fdomain.cinfo_array[1] = i->sectors;
i1942drivers/scsi/fdomain.cinfo_array[2] = i->cylinders;
i333drivers/scsi/hosts.cint i, pcount;
i341drivers/scsi/hosts.cfor (tpnt = &builtin_scsi_hosts[0], i = 0; i < MAX_SCSI_HOSTS; ++i, tpnt++)
i346drivers/scsi/hosts.hextern void scsi_unregister(struct Scsi_Host * i);
i139drivers/scsi/in2000.cint  i;
i150drivers/scsi/in2000.cfor(i=0; i < 3; i++)
i151drivers/scsi/in2000.cif(*(bios_tab[i]+0x04) == 0x41564f4e ||
i152drivers/scsi/in2000.c*(bios_tab[i]+0xc) == 0x61776c41) {
i154drivers/scsi/in2000.ctmp, (unsigned int)bios_tab[i]);
i427drivers/scsi/in2000.cint i;
i443drivers/scsi/in2000.ci = xscsi2int((cmd+1));
i445drivers/scsi/in2000.ci = scsi2int((cmd+1));
i447drivers/scsi/in2000.ci = -1;
i450drivers/scsi/in2000.cprintk("in2000qcmd: pos %d len %d ", i, bufflen);
i452drivers/scsi/in2000.cfor (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]);
i323drivers/scsi/pas16.cint i;
i330drivers/scsi/pas16.cfor (i = 0; i < NO_BASES; ++i)
i331drivers/scsi/pas16.cif (bases[i].io_port == (unsigned short) ints[1]) {
i332drivers/scsi/pas16.cbases[i].noauto = 1;
i494drivers/scsi/pas16.cregister i = len;
i498drivers/scsi/pas16.cinsb( reg, d, i );
i526drivers/scsi/pas16.cregister i = len;
i530drivers/scsi/pas16.coutsb( reg, s, i );
i167drivers/scsi/qlogic.c#define rtrc(i) {inb(0x3da);outb(0x31,0x3c0);outb((i),0x3c0);}
i169drivers/scsi/qlogic.c#define rtrc(i) {}
i275drivers/scsi/qlogic.cint  i,k;
i277drivers/scsi/qlogic.ci = jiffies + WATCHDOG;
i278drivers/scsi/qlogic.cwhile ( i > jiffies && !qabort && !((k = inb(qbase + 4)) & 0xe0))
i280drivers/scsi/qlogic.cif (i <= jiffies)
i297drivers/scsi/qlogic.cunsigned int      i;
i331drivers/scsi/qlogic.cfor (i = 0; i < cmd->cmd_len; i++)
i332drivers/scsi/qlogic.coutb(cmd->cmnd[i], qbase + 2);
i341drivers/scsi/qlogic.cunsigned int  i, j, k;
i352drivers/scsi/qlogic.ci = inb(qbase + 5);
i353drivers/scsi/qlogic.cif (i == 0x20) {
i356drivers/scsi/qlogic.ci |= inb(qbase + 5);  /* the 0x10 bit can be set after the 0x08 */
i357drivers/scsi/qlogic.cif (i != 0x18) {
i358drivers/scsi/qlogic.cprintk("Ql:Bad Interrupt status:%02x\n", i);
i368drivers/scsi/qlogic.cprintk("Ql:Bad sequence for command %d, int %02X, cmdleft = %d\n", j, i, inb( qbase+7 ) & 0x1f );
i421drivers/scsi/qlogic.ci = inb(qbase + 5);          /* get chip irq stat */
i426drivers/scsi/qlogic.cif (!((i == 8 && j == 2) || (i == 0x10 && j == 1))) {
i427drivers/scsi/qlogic.cprintk("Ql:Error during status phase, int=%02X, %d bytes recd\n", i, j);
i435drivers/scsi/qlogic.ci = inb(qbase + 5);  /* should be bus service */
i436drivers/scsi/qlogic.cwhile (!qabort && ((i & 0x20) != 0x20)) {
i438drivers/scsi/qlogic.ci |= inb(qbase + 5);
i456drivers/scsi/qlogic.cint  i;
i457drivers/scsi/qlogic.ci = 16;
i458drivers/scsi/qlogic.cwhile (i-- && inb(qbase + 5)); /* maybe also ql_zap() */
i538drivers/scsi/qlogic.cint  i, j;      /* these are only used by IRQ detect */
i589drivers/scsi/qlogic.ci = 0xffff;
i597drivers/scsi/qlogic.ci &= ~(inb(0x20) | (inb(0xa0) << 8));  /* find IRQ off */
i599drivers/scsi/qlogic.ci &= inb(0x20) | (inb(0xa0) << 8);  /* find IRQ on */
i604drivers/scsi/qlogic.cwhile (i)          /* find on bit */
i605drivers/scsi/qlogic.ci >>= 1, j++;  /* should check for exactly 1 on */
i254drivers/scsi/scsi.cint i = 0;
i256drivers/scsi/scsi.cfor(i=0; 1; i++){
i257drivers/scsi/scsi.cif(device_list[i].vendor == NULL) return 0;
i260drivers/scsi/scsi.cif(memcmp(device_list[i].vendor, pnt,
i261drivers/scsi/scsi.cstrlen(device_list[i].vendor))) continue;
i264drivers/scsi/scsi.cif(memcmp(device_list[i].model, pnt,
i265drivers/scsi/scsi.cstrlen(device_list[i].model))) continue;
i266drivers/scsi/scsi.creturn device_list[i].flags;
i1210drivers/scsi/scsi.cint i;
i1217drivers/scsi/scsi.cfor (i = 0; i < 10; ++i)
i1218drivers/scsi/scsi.cprintk ("%02x  ", ((unsigned char *) cmnd)[i]);
i2150drivers/scsi/scsi.cint i, j;
i2159drivers/scsi/scsi.cfor(i=0;i < (dma_sectors >> (MALLOC_PAGEBITS - 9)); i++)
i2161drivers/scsi/scsi.cif ((dma_malloc_freelist[i] & (mask << j)) == 0){
i2162drivers/scsi/scsi.cdma_malloc_freelist[i] |= (mask << j);
i2166drivers/scsi/scsi.cprintk("SMalloc: %d %p\n",len, dma_malloc_pages[i] + (j << 9));
i2168drivers/scsi/scsi.creturn (void *) ((unsigned long) dma_malloc_pages[i] + (j << 9));
i2367drivers/scsi/scsi.cint i;
i2370drivers/scsi/scsi.cfor (i = 8; i < 16; i++)
i2372drivers/scsi/scsi.cif (data[i] >= 0x20 && i < data[4] + 5)
i2373drivers/scsi/scsi.cprintk("%c", data[i]);
i2379drivers/scsi/scsi.cfor (i = 16; i < 32; i++)
i2381drivers/scsi/scsi.cif (data[i] >= 0x20 && i < data[4] + 5)
i2382drivers/scsi/scsi.cprintk("%c", data[i]);
i2388drivers/scsi/scsi.cfor (i = 32; i < 36; i++)
i2390drivers/scsi/scsi.cif (data[i] >= 0x20 && i < data[4] + 5)
i2391drivers/scsi/scsi.cprintk("%c", data[i]);
i2398drivers/scsi/scsi.ci = data[0] & 0x1f;
i2401drivers/scsi/scsi.ci < MAX_SCSI_DEVICE_CODE ? scsi_device_types[i] : "Unknown          " );
i2501drivers/scsi/scsi.cint i;
i2519drivers/scsi/scsi.cfor(i=0; i < dma_sectors >> 3; i++)
i2520drivers/scsi/scsi.cscsi_init_free(dma_malloc_pages[i], PAGE_SIZE);
i2589drivers/scsi/scsi.cfor(i=dma_sectors >> 3; i< new_dma_sectors >> 3; i++)
i2590drivers/scsi/scsi.cnew_dma_malloc_pages[i] = (unsigned char *)
i3031drivers/scsi/scsi.cint i;
i3035drivers/scsi/scsi.ci = 0;
i3041drivers/scsi/scsi.ci++, SCpnt->host->host_no,
i3063drivers/scsi/scsi.cfor(i=0; i<MAX_BLKDEV; i++)
i3064drivers/scsi/scsi.cif(blk_dev[i].current_request)
i3067drivers/scsi/scsi.cprintk("%d: ", i);
i3068drivers/scsi/scsi.creq = blk_dev[i].current_request;
i132drivers/scsi/scsi_debug.cint i;
i141drivers/scsi/scsi_debug.cfor(i=0; i<SCpnt->use_sg; i++) {
i142drivers/scsi/scsi_debug.clpnt = (int *) sgpnt[i].alt_address;
i143drivers/scsi/scsi_debug.cprintk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length);
i153drivers/scsi/scsi_debug.cfor (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) {
i154drivers/scsi/scsi_debug.cif ((i & 7) == 0) printk("\n");
i160drivers/scsi/scsi_debug.cfor (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) {
i161drivers/scsi/scsi_debug.cif ((i & 7) == 0) printk("\n");
i167drivers/scsi/scsi_debug.cfor (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) {
i168drivers/scsi/scsi_debug.cif ((i & 7) == 0) printk("\n");
i189drivers/scsi/scsi_debug.cint i;
i217drivers/scsi/scsi_debug.cint i;
i219drivers/scsi/scsi_debug.cfor(i=0;i<12;i++) printk("%d ",sense_buffer[i]);
i336drivers/scsi/scsi_debug.cint i;
i338drivers/scsi/scsi_debug.cfor(i=0;i<12;i++) printk("%d ",sense_buffer[i]);
i411drivers/scsi/scsi_debug.cfor(i=0;i<SCSI_DEBUG_MAILBOXES; i++){
i412drivers/scsi/scsi_debug.cif (SCint[i] == 0) break;
i415drivers/scsi/scsi_debug.cif (i >= SCSI_DEBUG_MAILBOXES || SCint[i] != 0) 
i418drivers/scsi/scsi_debug.cSCint[i] = SCpnt;
i422drivers/scsi/scsi_debug.cif (do_done[i])
i425drivers/scsi/scsi_debug.cdo_done[i] = done;
i438drivers/scsi/scsi_debug.ctimeout[i] = jiffies+DISK_SPEED;
i442drivers/scsi/scsi_debug.ctimer_table[SCSI_DEBUG_TIMER].expires = timeout[i];
i450drivers/scsi/scsi_debug.cprintk("Sending command (%d %x %d %d)...", i, done, timeout[i],jiffies);
i481drivers/scsi/scsi_debug.cint i, pending;
i494drivers/scsi/scsi_debug.cfor(i=0;i<SCSI_DEBUG_MAILBOXES; i++) {
i495drivers/scsi/scsi_debug.cif (SCint[i] == 0) continue;
i497drivers/scsi/scsi_debug.cif (timeout[i] == 0) continue;
i498drivers/scsi/scsi_debug.cif (timeout[i] <= jiffies) break;
i504drivers/scsi/scsi_debug.cif(i == SCSI_DEBUG_MAILBOXES){
i507drivers/scsi/scsi_debug.cfor(i=0;i<SCSI_DEBUG_MAILBOXES; i++) {
i508drivers/scsi/scsi_debug.cif (SCint[i] == 0) continue;
i509drivers/scsi/scsi_debug.cif (timeout[i] == 0) continue;
i510drivers/scsi/scsi_debug.cif (timeout[i] <= jiffies) {restore_flags(flags); goto repeat;};
i511drivers/scsi/scsi_debug.cif (timeout[i] > jiffies) {
i512drivers/scsi/scsi_debug.cif (pending > timeout[i]) pending = timeout[i];
i526drivers/scsi/scsi_debug.cif(i < SCSI_DEBUG_MAILBOXES){
i527drivers/scsi/scsi_debug.ctimeout[i] = 0;
i528drivers/scsi/scsi_debug.cmy_done = do_done[i];
i529drivers/scsi/scsi_debug.cdo_done[i] = NULL;
i530drivers/scsi/scsi_debug.cto = timeout[i];
i531drivers/scsi/scsi_debug.ctimeout[i] = 0;
i532drivers/scsi/scsi_debug.cSCtmp = (Scsi_Cmnd *) SCint[i];
i533drivers/scsi/scsi_debug.cSCint[i] = NULL;
i543drivers/scsi/scsi_debug.cprintk("...done %d %x %d %d\n",i , my_done, to, jiffies);
i544drivers/scsi/scsi_debug.cprintk("In intr_handle: %d %x %x\n",i, SCtmp, my_done);
i602drivers/scsi/scsi_debug.cint i;
i609drivers/scsi/scsi_debug.cfor(i=0;i<SCSI_DEBUG_MAILBOXES; i++) {
i610drivers/scsi/scsi_debug.cif (SCint[i] == NULL) continue;
i611drivers/scsi/scsi_debug.cSCint[i]->result = DID_RESET << 16;
i612drivers/scsi/scsi_debug.cmy_done = do_done[i];
i613drivers/scsi/scsi_debug.cmy_done(SCint[i]);
i616drivers/scsi/scsi_debug.cSCint[i] = NULL;
i617drivers/scsi/scsi_debug.cdo_done[i] = NULL;
i618drivers/scsi/scsi_debug.ctimeout[i] = 0;
i279drivers/scsi/scsi_ioctl.cint i;
i281drivers/scsi/scsi_ioctl.cfor (i = 0; i < 12; ++i)
i282drivers/scsi/scsi_ioctl.cprintk("%02x ", cmd[i]);
i284drivers/scsi/scsi_ioctl.cfor (i = 0; i < 20; ++i)
i285drivers/scsi/scsi_ioctl.cprintk("%02x ", buf[i]);
i88drivers/scsi/scsicam.cint i, largest_cyl;
i95drivers/scsi/scsicam.c(0x1BE + bh->b_data), i = 0; i < 4; ++i, ++p) {
i100drivers/scsi/scsicam.ci);
i199drivers/scsi/sd.cint i;
i201drivers/scsi/sd.cfor (i = 0; i < sd_template.dev_max; ++i)
i202drivers/scsi/sd.cif(rscsi_disks[i].device) 
i203drivers/scsi/sd.csd[i << 4].nr_sects = rscsi_disks[i].capacity;
i241drivers/scsi/sd.cint i;
i243drivers/scsi/sd.cfor(i=0; i<SCpnt->use_sg; i++) {
i245drivers/scsi/sd.cprintk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, 
i246drivers/scsi/sd.csgpnt[i].length);
i248drivers/scsi/sd.cif (sgpnt[i].alt_address) {
i250drivers/scsi/sd.cmemcpy(sgpnt[i].alt_address, sgpnt[i].address, 
i251drivers/scsi/sd.csgpnt[i].length);
i252drivers/scsi/sd.cscsi_free(sgpnt[i].address, sgpnt[i].length);
i301drivers/scsi/sd.cint i;
i303drivers/scsi/sd.cfor(i=0; i<SCpnt->use_sg; i++) {
i308drivers/scsi/sd.cif (sgpnt[i].alt_address) {
i309drivers/scsi/sd.cscsi_free(sgpnt[i].address, sgpnt[i].length);
i952drivers/scsi/sd.cstatic int sd_init_onedisk(int i)
i965drivers/scsi/sd.cSCpnt = allocate_device(NULL, rscsi_disks[i].device, 1);
i977drivers/scsi/sd.ccmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0;
i1004drivers/scsi/sd.cif(the_result && !rscsi_disks[i].device->removable && 
i1008drivers/scsi/sd.cprintk( "sd%c: Spinning up disk...", 'a' + i );
i1010drivers/scsi/sd.ccmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0;
i1050drivers/scsi/sd.ccmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0;
i1098drivers/scsi/sd.c'a' + i, 'a' + i,
i1106drivers/scsi/sd.c'a' + i, SCpnt->sense_buffer[2] & 0xf);
i1108drivers/scsi/sd.cprintk("sd%c : sense not available. \n", 'a' + i);
i1111drivers/scsi/sd.c'a' + i);
i1112drivers/scsi/sd.crscsi_disks[i].capacity = 0x1fffff;
i1113drivers/scsi/sd.crscsi_disks[i].sector_size = 512;
i1117drivers/scsi/sd.cif(rscsi_disks[i].device->removable && 
i1119drivers/scsi/sd.crscsi_disks[i].device->changed = 1;
i1127drivers/scsi/sd.crscsi_disks[i].ready = 1;
i1129drivers/scsi/sd.crscsi_disks[i].capacity = (buffer[0] << 24) |
i1134drivers/scsi/sd.crscsi_disks[i].sector_size = (buffer[4] << 24) |
i1137drivers/scsi/sd.cif (rscsi_disks[i].sector_size == 0) {
i1138drivers/scsi/sd.crscsi_disks[i].sector_size = 512;
i1139drivers/scsi/sd.cprintk("sd%c : sector size 0 reported, assuming 512.\n", 'a' + i);
i1143drivers/scsi/sd.cif (rscsi_disks[i].sector_size != 512 &&
i1144drivers/scsi/sd.crscsi_disks[i].sector_size != 1024 &&
i1145drivers/scsi/sd.crscsi_disks[i].sector_size != 256)
i1148drivers/scsi/sd.c'a' + i, rscsi_disks[i].sector_size);
i1149drivers/scsi/sd.cif(rscsi_disks[i].device->removable){
i1150drivers/scsi/sd.crscsi_disks[i].capacity = 0;
i1153drivers/scsi/sd.crscsi_disks[i].device = NULL;
i1155drivers/scsi/sd.creturn i;
i1165drivers/scsi/sd.cint hard_sector = rscsi_disks[i].sector_size;
i1167drivers/scsi/sd.cfor (m=i<<4; m<((i+1)<<4); m++){
i1171drivers/scsi/sd.chard_sector,i+'a');
i1173drivers/scsi/sd.cif(rscsi_disks[i].sector_size == 1024)
i1174drivers/scsi/sd.crscsi_disks[i].capacity <<= 1;  /* Change into 512 byte sectors */
i1175drivers/scsi/sd.cif(rscsi_disks[i].sector_size == 256)
i1176drivers/scsi/sd.crscsi_disks[i].capacity >>= 1;  /* Change into 512 byte sectors */
i1183drivers/scsi/sd.crscsi_disks[i].write_prot = 0;
i1184drivers/scsi/sd.cif ( rscsi_disks[i].device->removable && rscsi_disks[i].ready ) {
i1196drivers/scsi/sd.ccmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0;
i1220drivers/scsi/sd.cprintk ("sd%c: test WP failed, assume Write Protected\n",i+'a');
i1221drivers/scsi/sd.crscsi_disks[i].write_prot = 1;
i1223drivers/scsi/sd.crscsi_disks[i].write_prot = ((buffer[2] & 0x80) != 0);
i1224drivers/scsi/sd.cprintk ("sd%c: Write Protect is %s\n",i+'a',
i1225drivers/scsi/sd.crscsi_disks[i].write_prot ? "on" : "off");
i1230drivers/scsi/sd.crscsi_disks[i].ten = 1;
i1231drivers/scsi/sd.crscsi_disks[i].remap = 1;
i1233drivers/scsi/sd.creturn i;
i1245drivers/scsi/sd.cint i;
i1276drivers/scsi/sd.cfor(i=0;i<(sd_template.dev_max << 4);i++){
i1277drivers/scsi/sd.csd_blocksizes[i] = 1024;
i1278drivers/scsi/sd.csd_hardsizes[i] = 512;
i1296drivers/scsi/sd.cint i;
i1303drivers/scsi/sd.cfor (i = 0; i < sd_template.dev_max; ++i)
i1304drivers/scsi/sd.cif (!rscsi_disks[i].capacity && 
i1305drivers/scsi/sd.crscsi_disks[i].device)
i1307drivers/scsi/sd.ci = sd_init_onedisk(i);
i1309drivers/scsi/sd.c&& !rscsi_disks[i].has_part_table) {
i1310drivers/scsi/sd.csd_sizes[i << 4] = rscsi_disks[i].capacity;
i1311drivers/scsi/sd.crevalidate_scsidisk(MKDEV(MAJOR_NR, i << 4), 0);
i1313drivers/scsi/sd.crscsi_disks[i].has_part_table = 1;
i1340drivers/scsi/sd.cint i;
i1349drivers/scsi/sd.cfor(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) 
i1352drivers/scsi/sd.cif(i >= sd_template.dev_max) panic ("scsi_devices corrupt (sd)");
i1355drivers/scsi/sd.crscsi_disks[i].device = SDp;
i1356drivers/scsi/sd.crscsi_disks[i].has_part_table = 0;
i1381drivers/scsi/sd.cint i;
i1399drivers/scsi/sd.cfor (i=max_p - 1; i >=0 ; i--) {
i1400drivers/scsi/sd.cint minor = start+i;
i1433drivers/scsi/sd.cint i;
i1437drivers/scsi/sd.cfor(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) 
i1443drivers/scsi/sd.cstart = i << sd_gendisk.minor_shift;
i1445drivers/scsi/sd.cfor (i=max_p - 1; i >=0 ; i--) {
i1446drivers/scsi/sd.cint minor = start+i;
i290drivers/scsi/seagate.cint i,j;
i335drivers/scsi/seagate.cfor (i = 0; i < (sizeof (seagate_bases) / sizeof (char  * )); ++i)
i337drivers/scsi/seagate.cif (!memcmp ((const void *) (seagate_bases[i] +
i340drivers/scsi/seagate.cbase_address = (const void *) seagate_bases[i];
i638drivers/scsi/seagate.cint i;
i938drivers/scsi/seagate.cint i;
i941drivers/scsi/seagate.cfor (i = 0; i < nobuffs; ++i)
i943drivers/scsi/seagate.chostno, i, buffer[i].address, buffer[i].length);
i1507drivers/scsi/seagate.cfor (i = 0; i < 20; ++i) 
i1508drivers/scsi/seagate.cprintk ("%02x  ", ((unsigned char *) data)[i]);  /* WDE mod */
i202drivers/scsi/sg.cint i;
i205drivers/scsi/sg.cif ((i=verify_area(VERIFY_WRITE,buf,count)))
i206drivers/scsi/sg.creturn i;
i300drivers/scsi/sg.cint        bsize,size,amt,i;
i309drivers/scsi/sg.cif ((i=verify_area(VERIFY_READ,buf,count)))
i310drivers/scsi/sg.creturn i;
i557drivers/scsi/sg.cint i;
i565drivers/scsi/sg.cfor(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) 
i568drivers/scsi/sg.cif(i >= sg_template.dev_max) panic ("scsi_devices corrupt (sg)");
i570drivers/scsi/sg.cscsi_generics[i].device=SDp;
i571drivers/scsi/sg.cscsi_generics[i].users=0;
i572drivers/scsi/sg.cscsi_generics[i].generic_wait=NULL;
i573drivers/scsi/sg.cscsi_generics[i].read_wait=NULL;
i574drivers/scsi/sg.cscsi_generics[i].write_wait=NULL;
i575drivers/scsi/sg.cscsi_generics[i].buff=NULL;
i576drivers/scsi/sg.cscsi_generics[i].exclude=0;
i577drivers/scsi/sg.cscsi_generics[i].pending=0;
i578drivers/scsi/sg.cscsi_generics[i].timeout=SG_DEFAULT_TIMEOUT;
i588drivers/scsi/sg.cint i;
i590drivers/scsi/sg.cfor(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) 
i186drivers/scsi/sr.cint i;
i188drivers/scsi/sr.cfor(i=0; i<SCpnt->use_sg; i++) {
i189drivers/scsi/sr.cif (sgpnt[i].alt_address) {
i190drivers/scsi/sr.cif (sgpnt[i].alt_address != sgpnt[i].address) {
i191drivers/scsi/sr.cmemcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length);
i193drivers/scsi/sr.cscsi_free(sgpnt[i].address, sgpnt[i].length);
i225drivers/scsi/sr.cint i;
i227drivers/scsi/sr.cfor(i=0; i<SCpnt->use_sg; i++) {
i228drivers/scsi/sr.cif (sgpnt[i].alt_address) {
i229drivers/scsi/sr.cscsi_free(sgpnt[i].address, sgpnt[i].length);
i898drivers/scsi/sr.cint i;
i902drivers/scsi/sr.cfor(i=0; i<12; i++) printk("%2.2x ", cmd[i]);
i939drivers/scsi/sr.cint i;
i949drivers/scsi/sr.cfor(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) 
i952drivers/scsi/sr.cif(i >= sr_template.dev_max) panic ("scsi_devices corrupt (sr)");
i955drivers/scsi/sr.cscsi_CDs[i].device = SDp;
i975drivers/scsi/sr.cstatic void get_sectorsize(int i){
i982drivers/scsi/sr.cSCpnt = allocate_device(NULL, scsi_CDs[i].device, 1);
i987drivers/scsi/sr.ccmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0;
i1015drivers/scsi/sr.cscsi_CDs[i].capacity = 0x1fffff;
i1016drivers/scsi/sr.cscsi_CDs[i].sector_size = 2048;  /* A guess, just in case */
i1017drivers/scsi/sr.cscsi_CDs[i].needs_sector_size = 1;
i1019drivers/scsi/sr.cscsi_CDs[i].capacity = (buffer[0] << 24) |
i1021drivers/scsi/sr.cscsi_CDs[i].sector_size = (buffer[4] << 24) |
i1023drivers/scsi/sr.cif(scsi_CDs[i].sector_size == 0) scsi_CDs[i].sector_size = 2048;
i1024drivers/scsi/sr.cif(scsi_CDs[i].sector_size != 2048 && 
i1025drivers/scsi/sr.cscsi_CDs[i].sector_size != 512) {
i1027drivers/scsi/sr.ci, scsi_CDs[i].sector_size);
i1028drivers/scsi/sr.cscsi_CDs[i].capacity = 0;
i1029drivers/scsi/sr.cscsi_CDs[i].needs_sector_size = 1;
i1031drivers/scsi/sr.cif(scsi_CDs[i].sector_size == 2048)
i1032drivers/scsi/sr.cscsi_CDs[i].capacity *= 4;
i1033drivers/scsi/sr.cscsi_CDs[i].needs_sector_size = 0;
i1034drivers/scsi/sr.csr_sizes[i] = scsi_CDs[i].capacity;
i1043drivers/scsi/sr.cint i;
i1066drivers/scsi/sr.cfor(i=0;i<sr_template.dev_max;i++) sr_blocksizes[i] = 2048;
i1073drivers/scsi/sr.cint i;
i1078drivers/scsi/sr.cfor (i = 0; i < sr_template.nr_dev; ++i)
i1082drivers/scsi/sr.cif (scsi_CDs[i].capacity) continue;
i1083drivers/scsi/sr.cscsi_CDs[i].capacity = 0x1fffff;
i1084drivers/scsi/sr.cscsi_CDs[i].sector_size = 2048;  /* A guess, just in case */
i1085drivers/scsi/sr.cscsi_CDs[i].needs_sector_size = 1;
i1088drivers/scsi/sr.cget_sectorsize(i);
i1089drivers/scsi/sr.cprintk("Scd sectorsize = %d bytes.\n", scsi_CDs[i].sector_size);
i1091drivers/scsi/sr.cscsi_CDs[i].use = 1;
i1092drivers/scsi/sr.cscsi_CDs[i].ten = 1;
i1093drivers/scsi/sr.cscsi_CDs[i].remap = 1;
i1094drivers/scsi/sr.cscsi_CDs[i].auto_eject = 0; /* Default is not to eject upon unmount. */
i1095drivers/scsi/sr.csr_sizes[i] = scsi_CDs[i].capacity;
i1113drivers/scsi/sr.cint i;
i1115drivers/scsi/sr.cfor(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) 
i1117drivers/scsi/sr.ckdev_t devi = MKDEV(MAJOR_NR, i);
i1135drivers/scsi/sr.csr_sizes[i] = 0;
i443drivers/scsi/st.cint i;
i458drivers/scsi/st.cfor (i=0; i < st_nbr_buffers; i++)
i459drivers/scsi/st.cif (!st_buffers[i]->in_use)
i461drivers/scsi/st.cif (i >= st_nbr_buffers) {
i469drivers/scsi/st.cSTp->buffer = st_buffers[i];
i1737drivers/scsi/st.cint i, cmd_nr, cmd_type, result;
i1768drivers/scsi/st.ci = verify_area(VERIFY_READ, (void *)arg, sizeof(mtc));
i1769drivers/scsi/st.cif (i)
i1770drivers/scsi/st.creturn i;
i1775drivers/scsi/st.ci = flush_buffer(inode, file, mtc.mt_op == MTSEEK ||
i1779drivers/scsi/st.cif (i < 0)
i1780drivers/scsi/st.creturn i;
i1823drivers/scsi/st.ci = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct mtget));
i1824drivers/scsi/st.cif (i)
i1825drivers/scsi/st.creturn i;
i1882drivers/scsi/st.ci = flush_buffer(inode, file, 0);
i1883drivers/scsi/st.cif (i < 0)
i1884drivers/scsi/st.creturn i;
i1886drivers/scsi/st.ci = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct mtpos));
i1887drivers/scsi/st.cif (i)
i1888drivers/scsi/st.creturn i;
i2062drivers/scsi/st.cint i;
i2072drivers/scsi/st.cfor(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) 
i2075drivers/scsi/st.cif(i >= st_template.dev_max) panic ("scsi_devices corrupt (st)");
i2077drivers/sc