tag | line | file | source code |
i | 27 | arch/alpha/boot/main.c | int i; |
i | 31 | arch/alpha/boot/main.c | i = vsprintf(buf, fmt, args); |
i | 33 | arch/alpha/boot/main.c | puts(buf,i); |
i | 34 | arch/alpha/boot/main.c | return i; |
i | 78 | arch/alpha/boot/main.c | unsigned long i, rev, sum; |
i | 105 | arch/alpha/boot/main.c | i = switch_to_osf_pal( |
i | 111 | arch/alpha/boot/main.c | if (i) { |
i | 112 | arch/alpha/boot/main.c | printk("failed, code %ld\n", i); |
i | 180 | arch/alpha/boot/main.c | long i; |
i | 196 | arch/alpha/boot/main.c | i = load(dev, START_ADDR, START_SIZE); |
i | 198 | arch/alpha/boot/main.c | if (i != START_SIZE) { |
i | 199 | arch/alpha/boot/main.c | printk("Failed (%lx)\n", i); |
i | 204 | arch/alpha/boot/main.c | for (i = 0 ; i < 0x100000000 ; i++) |
i | 42 | arch/alpha/boot/tools/build.c | int fd, i; |
i | 82 | arch/alpha/boot/tools/build.c | for (i = 0 ; i < 63 ; i++) |
i | 83 | arch/alpha/boot/tools/build.c | tmp += bootblock[i]; |
i | 104 | arch/alpha/boot/tools/build.c | for (i = 0 ; i < fhdr.f_nscns ; i++) { |
i | 105 | arch/alpha/boot/tools/build.c | if (read(fd, i+shdr, sizeof(struct scnhdr)) != sizeof(struct scnhdr)) |
i | 107 | arch/alpha/boot/tools/build.c | if (shdr[i].s_paddr != shdr[i].s_vaddr) |
i | 109 | arch/alpha/boot/tools/build.c | if (shdr[i].s_relptr) |
i | 113 | arch/alpha/boot/tools/build.c | i, shdr[i].s_name, |
i | 114 | arch/alpha/boot/tools/build.c | shdr[i].s_vaddr, |
i | 115 | arch/alpha/boot/tools/build.c | shdr[i].s_vaddr + shdr[i].s_size, |
i | 116 | arch/alpha/boot/tools/build.c | shdr[i].s_scnptr); |
i | 121 | arch/alpha/boot/tools/build.c | for (i = 0 ; i < fhdr.f_nscns ; i++) { |
i | 124 | arch/alpha/boot/tools/build.c | if (!strcmp(shdr[i].s_name, ".comment")) |
i | 126 | arch/alpha/boot/tools/build.c | if (shdr[i].s_vaddr != start) |
i | 128 | arch/alpha/boot/tools/build.c | size = shdr[i].s_size; |
i | 130 | arch/alpha/boot/tools/build.c | offset = shdr[i].s_scnptr; |
i | 146 | arch/alpha/boot/tools/build.c | i, shdr[i].s_name, |
i | 147 | arch/alpha/boot/tools/build.c | shdr[i].s_vaddr, |
i | 148 | arch/alpha/boot/tools/build.c | shdr[i].s_vaddr + shdr[i].s_size, |
i | 149 | arch/alpha/boot/tools/build.c | shdr[i].s_scnptr); |
i | 160 | arch/alpha/boot/tools/build.c | int i = MAXBUF; |
i | 161 | arch/alpha/boot/tools/build.c | if (i > count) |
i | 162 | arch/alpha/boot/tools/build.c | i = count; |
i | 163 | arch/alpha/boot/tools/build.c | i = write(1, buffer, i); |
i | 164 | arch/alpha/boot/tools/build.c | if (i <= 0) { |
i | 168 | arch/alpha/boot/tools/build.c | count -= i; |
i | 93 | arch/alpha/kernel/irq.c | int i, len = 0; |
i | 96 | arch/alpha/kernel/irq.c | for (i = 0 ; i < 16 ; i++, action++) { |
i | 100 | arch/alpha/kernel/irq.c | i, kstat.interrupts[i], |
i | 206 | arch/alpha/kernel/irq.c | int i; |
i | 211 | arch/alpha/kernel/irq.c | for (i = 0; i < 16; i++) |
i | 212 | arch/alpha/kernel/irq.c | if (irq_action[i].handler) |
i | 213 | arch/alpha/kernel/irq.c | printk("[%s:%d] ", irq_action[i].name, i); |
i | 334 | arch/alpha/kernel/irq.c | unsigned int i, irqs = 0, irqmask; |
i | 337 | arch/alpha/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 338 | arch/alpha/kernel/irq.c | if (!irq_action[i].handler) { |
i | 339 | arch/alpha/kernel/irq.c | enable_irq(i); |
i | 340 | arch/alpha/kernel/irq.c | irqs |= (1 << i); |
i | 361 | arch/alpha/kernel/irq.c | unsigned int i, irqmask; |
i | 367 | arch/alpha/kernel/irq.c | i = ffz(~irqs); |
i | 368 | arch/alpha/kernel/irq.c | if (irqs != (1 << i)) |
i | 369 | arch/alpha/kernel/irq.c | i = -i; |
i | 370 | arch/alpha/kernel/irq.c | return i; |
i | 53 | arch/alpha/kernel/setup.c | int i; |
i | 60 | arch/alpha/kernel/setup.c | for (i = memdesc->numclusters ; i > 0; i--, cluster++) { |
i | 15 | arch/alpha/kernel/traps.c | unsigned long i; |
i | 20 | arch/alpha/kernel/traps.c | for (i = 0 ; i < 5000000000 ; i++) |
i | 62 | arch/alpha/mm/init.c | int i,free = 0,total = 0,reserved = 0; |
i | 68 | arch/alpha/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 69 | arch/alpha/mm/init.c | while (i-- > 0) { |
i | 71 | arch/alpha/mm/init.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 73 | arch/alpha/mm/init.c | else if (!mem_map[i]) |
i | 76 | arch/alpha/mm/init.c | shared += mem_map[i]-1; |
i | 107 | arch/alpha/mm/init.c | int i; |
i | 118 | arch/alpha/mm/init.c | for (i = memdesc->numclusters ; i > 0; i--, cluster++) { |
i | 184 | arch/alpha/mm/init.c | int i; |
i | 186 | arch/alpha/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 191 | arch/alpha/mm/init.c | while (i-- > 0) { |
i | 192 | arch/alpha/mm/init.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 195 | arch/alpha/mm/init.c | if (!mem_map[i]) |
i | 197 | arch/alpha/mm/init.c | val->sharedram += mem_map[i]-1; |
i | 118 | arch/i386/boot/compressed/inflate.c | register unsigned i; /* counter, current code */ |
i | 137 | arch/i386/boot/compressed/inflate.c | p = b; i = n; |
i | 140 | arch/i386/boot/compressed/inflate.c | } while (--i); |
i | 158 | arch/i386/boot/compressed/inflate.c | for (i = BMAX; i; i--) |
i | 159 | arch/i386/boot/compressed/inflate.c | if (c[i]) |
i | 161 | arch/i386/boot/compressed/inflate.c | g = i; /* maximum code length */ |
i | 162 | arch/i386/boot/compressed/inflate.c | if ((unsigned)l > i) |
i | 163 | arch/i386/boot/compressed/inflate.c | l = i; |
i | 169 | arch/i386/boot/compressed/inflate.c | for (y = 1 << j; j < i; j++, y <<= 1) |
i | 172 | arch/i386/boot/compressed/inflate.c | if ((y -= c[i]) < 0) |
i | 174 | arch/i386/boot/compressed/inflate.c | c[i] += y; |
i | 181 | arch/i386/boot/compressed/inflate.c | while (--i) { /* note that i == g from above */ |
i | 188 | arch/i386/boot/compressed/inflate.c | p = b; i = 0; |
i | 191 | arch/i386/boot/compressed/inflate.c | v[x[j]++] = i; |
i | 192 | arch/i386/boot/compressed/inflate.c | } while (++i < n); |
i | 197 | arch/i386/boot/compressed/inflate.c | x[0] = i = 0; /* first Huffman code is zero */ |
i | 251 | arch/i386/boot/compressed/inflate.c | x[h] = i; /* save pattern for backing up */ |
i | 255 | arch/i386/boot/compressed/inflate.c | j = i >> (w - l); /* (get around Turbo C bug) */ |
i | 280 | arch/i386/boot/compressed/inflate.c | for (j = i >> w; j < z; j += f) |
i | 284 | arch/i386/boot/compressed/inflate.c | for (j = 1 << (k - 1); i & j; j >>= 1) |
i | 285 | arch/i386/boot/compressed/inflate.c | i ^= j; |
i | 286 | arch/i386/boot/compressed/inflate.c | i ^= j; |
i | 289 | arch/i386/boot/compressed/inflate.c | while ((i & ((1 << w) - 1)) != x[h]) |
i | 495 | arch/i386/boot/compressed/inflate.c | int i; /* temporary variable */ |
i | 505 | arch/i386/boot/compressed/inflate.c | for (i = 0; i < 144; i++) |
i | 506 | arch/i386/boot/compressed/inflate.c | l[i] = 8; |
i | 507 | arch/i386/boot/compressed/inflate.c | for (; i < 256; i++) |
i | 508 | arch/i386/boot/compressed/inflate.c | l[i] = 9; |
i | 509 | arch/i386/boot/compressed/inflate.c | for (; i < 280; i++) |
i | 510 | arch/i386/boot/compressed/inflate.c | l[i] = 7; |
i | 511 | arch/i386/boot/compressed/inflate.c | for (; i < 288; i++) /* make a complete, but wrong code set */ |
i | 512 | arch/i386/boot/compressed/inflate.c | l[i] = 8; |
i | 514 | arch/i386/boot/compressed/inflate.c | if ((i = huft_build(l, 288, 257, cplens, cplext, &tl, &bl)) != 0) |
i | 515 | arch/i386/boot/compressed/inflate.c | return i; |
i | 519 | arch/i386/boot/compressed/inflate.c | for (i = 0; i < 30; i++) /* make an incomplete code set */ |
i | 520 | arch/i386/boot/compressed/inflate.c | l[i] = 5; |
i | 522 | arch/i386/boot/compressed/inflate.c | if ((i = huft_build(l, 30, 0, cpdist, cpdext, &td, &bd)) > 1) |
i | 527 | arch/i386/boot/compressed/inflate.c | return i; |
i | 547 | arch/i386/boot/compressed/inflate.c | int i; /* temporary variables */ |
i | 607 | arch/i386/boot/compressed/inflate.c | if ((i = huft_build(ll, 19, 19, NULL, NULL, &tl, &bl)) != 0) |
i | 609 | arch/i386/boot/compressed/inflate.c | if (i == 1) |
i | 611 | arch/i386/boot/compressed/inflate.c | return i; /* incomplete code set */ |
i | 619 | arch/i386/boot/compressed/inflate.c | i = l = 0; |
i | 620 | arch/i386/boot/compressed/inflate.c | while ((unsigned)i < n) |
i | 627 | arch/i386/boot/compressed/inflate.c | ll[i++] = l = j; /* save last length in l */ |
i | 633 | arch/i386/boot/compressed/inflate.c | if ((unsigned)i + j > n) |
i | 636 | arch/i386/boot/compressed/inflate.c | ll[i++] = l; |
i | 643 | arch/i386/boot/compressed/inflate.c | if ((unsigned)i + j > n) |
i | 646 | arch/i386/boot/compressed/inflate.c | ll[i++] = 0; |
i | 654 | arch/i386/boot/compressed/inflate.c | if ((unsigned)i + j > n) |
i | 657 | arch/i386/boot/compressed/inflate.c | ll[i++] = 0; |
i | 677 | arch/i386/boot/compressed/inflate.c | if ((i = huft_build(ll, nl, 257, cplens, cplext, &tl, &bl)) != 0) |
i | 680 | arch/i386/boot/compressed/inflate.c | if (i == 1) { |
i | 684 | arch/i386/boot/compressed/inflate.c | return i; /* incomplete code set */ |
i | 688 | arch/i386/boot/compressed/inflate.c | if ((i = huft_build(ll + nl, nd, 0, cpdist, cpdext, &td, &bd)) != 0) |
i | 691 | arch/i386/boot/compressed/inflate.c | if (i == 1) { |
i | 694 | arch/i386/boot/compressed/inflate.c | i = 0; |
i | 700 | arch/i386/boot/compressed/inflate.c | return i; /* incomplete code set */ |
i | 121 | arch/i386/boot/compressed/misc.c | int i; |
i | 124 | arch/i386/boot/compressed/misc.c | for ( i = ( lines - 1 ) * cols * 2; i < lines * cols * 2; i += 2 ) |
i | 125 | arch/i386/boot/compressed/misc.c | vidmem[i] = ' '; |
i | 161 | arch/i386/boot/compressed/misc.c | int i; |
i | 164 | arch/i386/boot/compressed/misc.c | for (i=0;i<n;i++) ss[i] = c; |
i | 170 | arch/i386/boot/compressed/misc.c | int i; |
i | 173 | arch/i386/boot/compressed/misc.c | for (i=0;i<__n;i++) d[i] = s[i]; |
i | 219 | arch/i386/boot/compressed/misc.c | int len, i; |
i | 228 | arch/i386/boot/compressed/misc.c | for (i=0;i<len;i++) inbuf[insize+i] = input_data[input_ptr+i]; |
i | 271 | arch/i386/boot/compressed/misc.c | int i; /* counter for all possible eight bit values */ |
i | 279 | arch/i386/boot/compressed/misc.c | for (i = 0; i < sizeof(p)/sizeof(int); i++) |
i | 280 | arch/i386/boot/compressed/misc.c | e |= 1L << (31 - p[i]); |
i | 284 | arch/i386/boot/compressed/misc.c | for (i = 1; i < 256; i++) |
i | 287 | arch/i386/boot/compressed/misc.c | for (k = i | 256; k != 1; k >>= 1) |
i | 293 | arch/i386/boot/compressed/misc.c | crc_32_tab[i] = c; |
i | 39 | arch/i386/boot/compressed/xtract.c | int i,c,id, sz; |
i | 89 | arch/i386/boot/tools/build.c | int i,c,id, sz; |
i | 123 | arch/i386/boot/tools/build.c | for (i=0;i<sizeof buf; i++) buf[i]=0; |
i | 140 | arch/i386/boot/tools/build.c | i=read(id,buf,sizeof buf); |
i | 141 | arch/i386/boot/tools/build.c | fprintf(stderr,"Boot sector %d bytes.\n",i); |
i | 142 | arch/i386/boot/tools/build.c | if (i != 512) |
i | 148 | arch/i386/boot/tools/build.c | i=write(1,buf,512); |
i | 149 | arch/i386/boot/tools/build.c | if (i!=512) |
i | 169 | arch/i386/boot/tools/build.c | for (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c ) |
i | 175 | arch/i386/boot/tools/build.c | setup_sectors = (unsigned char)((i + 511) / 512); |
i | 179 | arch/i386/boot/tools/build.c | fprintf(stderr,"Setup is %d bytes.\n",i); |
i | 182 | arch/i386/boot/tools/build.c | while (i < setup_sectors * 512) { |
i | 183 | arch/i386/boot/tools/build.c | c = setup_sectors * 512 - i; |
i | 188 | arch/i386/boot/tools/build.c | i += c; |
i | 140 | arch/i386/ibcs/binfmt_elf.c | int i, k; |
i | 175 | arch/i386/ibcs/binfmt_elf.c | for(i=0; i<interp_elf_ex->e_phnum; i++, eppnt++) |
i | 271 | arch/i386/ibcs/binfmt_elf.c | int i; |
i | 340 | arch/i386/ibcs/binfmt_elf.c | for(i=0;i < elf_ex.e_phnum; i++){ |
i | 448 | arch/i386/ibcs/binfmt_elf.c | for(i=0;i < elf_ex.e_phnum; i++){ |
i | 575 | arch/i386/ibcs/binfmt_elf.c | int i,j, k; |
i | 616 | arch/i386/ibcs/binfmt_elf.c | for(i=0; i<elf_ex.e_phnum; i++) |
i | 617 | arch/i386/ibcs/binfmt_elf.c | if((elf_phdata + i)->p_type == PT_LOAD) j++; |
i | 499 | arch/i386/kernel/bios32.c | int i; |
i | 504 | arch/i386/kernel/bios32.c | for (i=0;i<PCI_CLASS_NUM-1;i++) |
i | 505 | arch/i386/kernel/bios32.c | if (class==pci_class[i].class_id) break; |
i | 506 | arch/i386/kernel/bios32.c | return i; |
i | 512 | arch/i386/kernel/bios32.c | int i; |
i | 517 | arch/i386/kernel/bios32.c | for (i=0;i<PCI_DEVICE_NUM;i++) |
i | 518 | arch/i386/kernel/bios32.c | if ((device==pci_device[i].device_id) |
i | 519 | arch/i386/kernel/bios32.c | && (pci_vendor[vendor_num].vendor_id==pci_device[i].vendor_id)) return i; |
i | 526 | arch/i386/kernel/bios32.c | int i; |
i | 531 | arch/i386/kernel/bios32.c | for (i=0;i<PCI_VENDOR_NUM;i++) |
i | 532 | arch/i386/kernel/bios32.c | if (vendor==pci_vendor[i].vendor_id) return i; |
i | 542 | arch/i386/kernel/bios32.c | int i; |
i | 547 | arch/i386/kernel/bios32.c | for (i=0;i<OPTIMISATION_NUM;i++) |
i | 549 | arch/i386/kernel/bios32.c | printk(" %s : ",optimisation[i].type); |
i | 550 | arch/i386/kernel/bios32.c | if (bridge_mapping[pos+i].address==0) printk("Not supported."); |
i | 553 | arch/i386/kernel/bios32.c | bus, dev_fn, bridge_mapping[pos+i].address, &val); |
i | 554 | arch/i386/kernel/bios32.c | if ((val & bridge_mapping[pos+i].mask)==bridge_mapping[pos+i].value) |
i | 556 | arch/i386/kernel/bios32.c | printk("%s.",optimisation[i].on); |
i | 560 | arch/i386/kernel/bios32.c | bus, dev_fn, bridge_mapping[pos+i].address, |
i | 561 | arch/i386/kernel/bios32.c | (val | bridge_mapping[pos+i].mask) - |
i | 562 | arch/i386/kernel/bios32.c | bridge_mapping[pos+i].value); |
i | 563 | arch/i386/kernel/bios32.c | printk("Changed! now %s.",optimisation[i].off); |
i | 566 | arch/i386/kernel/bios32.c | printk("%s.",optimisation[i].off); |
i | 570 | arch/i386/kernel/bios32.c | bus, dev_fn, bridge_mapping[pos+i].address, |
i | 571 | arch/i386/kernel/bios32.c | (val & (0xff-bridge_mapping[pos+i].mask)) + |
i | 572 | arch/i386/kernel/bios32.c | bridge_mapping[pos+i].value); |
i | 573 | arch/i386/kernel/bios32.c | printk("Changed! now %s.",optimisation[i].on); |
i | 739 | arch/i386/kernel/bios32.c | int i, length; |
i | 757 | arch/i386/kernel/bios32.c | for (i = 0; i < length ; ++i) |
i | 758 | arch/i386/kernel/bios32.c | sum += check->chars[i]; |
i | 165 | arch/i386/kernel/irq.c | int i, len = 0; |
i | 168 | arch/i386/kernel/irq.c | for (i = 0 ; i < 16 ; i++, action++) { |
i | 172 | arch/i386/kernel/irq.c | i, kstat.interrupts[i], |
i | 300 | arch/i386/kernel/irq.c | unsigned int i, irqs = 0, irqmask; |
i | 304 | arch/i386/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 305 | arch/i386/kernel/irq.c | if (!request_irq(i, no_action, SA_PROBE, "probe")) { |
i | 306 | arch/i386/kernel/irq.c | enable_irq(i); |
i | 307 | arch/i386/kernel/irq.c | irqs |= (1 << i); |
i | 316 | arch/i386/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 317 | arch/i386/kernel/irq.c | if (irqs & (1 << i) & irqmask) { |
i | 318 | arch/i386/kernel/irq.c | irqs ^= (1 << i); |
i | 319 | arch/i386/kernel/irq.c | free_irq(i); |
i | 330 | arch/i386/kernel/irq.c | unsigned int i, irqmask; |
i | 333 | arch/i386/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 334 | arch/i386/kernel/irq.c | if (irqs & (1 << i)) { |
i | 335 | arch/i386/kernel/irq.c | free_irq(i); |
i | 344 | arch/i386/kernel/irq.c | i = ffz(~irqs); |
i | 345 | arch/i386/kernel/irq.c | if (irqs != (irqs & (1 << i))) |
i | 346 | arch/i386/kernel/irq.c | i = -i; |
i | 347 | arch/i386/kernel/irq.c | return i; |
i | 352 | arch/i386/kernel/irq.c | int i; |
i | 358 | arch/i386/kernel/irq.c | for (i = 0; i < 16 ; i++) |
i | 359 | arch/i386/kernel/irq.c | set_intr_gate(0x20+i,bad_interrupt[i]); |
i | 42 | arch/i386/kernel/ldt.c | int error, i; |
i | 65 | arch/i386/kernel/ldt.c | for (i=1 ; i<NR_TASKS ; i++) { |
i | 66 | arch/i386/kernel/ldt.c | if (task[i] == current) { |
i | 70 | arch/i386/kernel/ldt.c | set_ldt_desc(gdt+(i<<1)+FIRST_LDT_ENTRY, current->ldt, LDT_ENTRIES); |
i | 71 | arch/i386/kernel/ldt.c | load_ldt(i); |
i | 47 | arch/i386/kernel/process.c | int i; |
i | 53 | arch/i386/kernel/process.c | for (i = 0 ; i < 768 ; i++) |
i | 54 | arch/i386/kernel/process.c | pgd_clear(swapper_pg_dir + i); |
i | 74 | arch/i386/kernel/process.c | int i; |
i | 76 | arch/i386/kernel/process.c | for (i=0; i<0x10000; i++) |
i | 83 | arch/i386/kernel/process.c | int i, j; |
i | 90 | arch/i386/kernel/process.c | for (i=0; i<100; i++) { |
i | 135 | arch/i386/kernel/process.c | int i; |
i | 140 | arch/i386/kernel/process.c | for (i=1 ; i<NR_TASKS ; i++) { |
i | 141 | arch/i386/kernel/process.c | if (task[i] == current) { |
i | 142 | arch/i386/kernel/process.c | set_ldt_desc(gdt+(i<<1)+ |
i | 144 | arch/i386/kernel/process.c | load_ldt(i); |
i | 149 | arch/i386/kernel/process.c | for (i=0 ; i<8 ; i++) |
i | 150 | arch/i386/kernel/process.c | current->debugreg[i] = 0; |
i | 156 | arch/i386/kernel/process.c | int i; |
i | 188 | arch/i386/kernel/process.c | for (i = 0; i < IO_BITMAP_SIZE+1 ; i++) /* IO bitmap is actually SIZE+1 */ |
i | 189 | arch/i386/kernel/process.c | p->tss.io_bitmap[i] = ~0; |
i | 199 | arch/i386/kernel/process.c | int i; |
i | 209 | arch/i386/kernel/process.c | for (i = 0; i < 8; i++) |
i | 210 | arch/i386/kernel/process.c | dump->u_debugreg[i] = current->debugreg[i]; |
i | 40 | arch/i386/kernel/ptrace.c | int i; |
i | 42 | arch/i386/kernel/ptrace.c | for (i = 1; i < NR_TASKS; i++) { |
i | 43 | arch/i386/kernel/ptrace.c | if (task[i] != NULL && (task[i]->pid == pid)) |
i | 44 | arch/i386/kernel/ptrace.c | return task[i]; |
i | 304 | arch/i386/kernel/ptrace.c | int i; |
i | 447 | arch/i386/kernel/ptrace.c | for(i=0; i<4; i++) |
i | 448 | arch/i386/kernel/ptrace.c | if ((0x5f54 >> ((data >> (16 + 4*i)) & 0xf)) & 1) |
i | 98 | arch/i386/kernel/traps.c | int i; |
i | 121 | arch/i386/kernel/traps.c | store_TR(i); |
i | 125 | arch/i386/kernel/traps.c | current->comm, current->pid, 0xffff & i, current->kernel_stack_page); |
i | 127 | arch/i386/kernel/traps.c | for(i=0; i < kstack_depth_to_print; i++) { |
i | 130 | arch/i386/kernel/traps.c | if (i && ((i % 8) == 0)) |
i | 136 | arch/i386/kernel/traps.c | i = 1; |
i | 152 | arch/i386/kernel/traps.c | if (i && ((i % 8) == 0)) |
i | 155 | arch/i386/kernel/traps.c | i++; |
i | 159 | arch/i386/kernel/traps.c | for(i=0;i<20;i++) |
i | 160 | arch/i386/kernel/traps.c | printk("%02x ",0xff & get_seg_byte(regs->cs,(i+(char *)regs->eip))); |
i | 306 | arch/i386/kernel/traps.c | int i; |
i | 330 | arch/i386/kernel/traps.c | for (i=18;i<48;i++) |
i | 331 | arch/i386/kernel/traps.c | set_trap_gate(i,&reserved); |
i | 339 | arch/i386/kernel/traps.c | for(i=1 ; i<NR_TASKS ; i++) { |
i | 77 | arch/i386/kernel/vm86.c | int i; |
i | 86 | arch/i386/kernel/vm86.c | for (i = 0 ; i < 32 ; i++) { |
i | 291 | arch/i386/kernel/vm86.c | static void do_int(struct vm86_regs *regs, int i, unsigned char * ssp, unsigned long sp) |
i | 293 | arch/i386/kernel/vm86.c | unsigned short seg = get_fs_word((void *) ((i<<2)+2)); |
i | 296 | arch/i386/kernel/vm86.c | is_revectored(i, ¤t->tss.vm86_info->int_revectored)) |
i | 297 | arch/i386/kernel/vm86.c | return_to_32bit(regs, VM86_INTx + (i << 8)); |
i | 298 | arch/i386/kernel/vm86.c | if (i==0x21 && is_revectored(AH(regs),¤t->tss.vm86_info->int21_revectored)) |
i | 299 | arch/i386/kernel/vm86.c | return_to_32bit(regs, VM86_INTx + (i << 8)); |
i | 305 | arch/i386/kernel/vm86.c | IP(regs) = get_fs_word((void *) (i<<2)); |
i | 87 | arch/i386/math-emu/errors.c | int i; |
i | 99 | arch/i386/math-emu/errors.c | for ( i = 0; i < MAX_PRINTED_BYTES; i++ ) |
i | 110 | arch/i386/math-emu/errors.c | if ( i == MAX_PRINTED_BYTES ) |
i | 166 | arch/i386/math-emu/errors.c | for ( i = 0; i < 8; i++ ) |
i | 168 | arch/i386/math-emu/errors.c | FPU_REG *r = &st(i); |
i | 177 | arch/i386/math-emu/errors.c | i, r->sign ? '-' : '+'); |
i | 184 | arch/i386/math-emu/errors.c | printk("st(%d) %c .%04lx %04lx %04lx %04lx e%+-6ld ", i, |
i | 305 | arch/i386/math-emu/errors.c | int i, int_type; |
i | 342 | arch/i386/math-emu/errors.c | for (i=0; exception_names[i].type; i++) |
i | 343 | arch/i386/math-emu/errors.c | if ( (exception_names[i].type & n) == exception_names[i].type ) |
i | 346 | arch/i386/math-emu/errors.c | if (exception_names[i].type) |
i | 349 | arch/i386/math-emu/errors.c | printk("FP Exception: %s!\n", exception_names[i].name); |
i | 640 | arch/i386/math-emu/errors.c | void stack_underflow_i(int i) |
i | 646 | arch/i386/math-emu/errors.c | reg_move(&CONST_QNaN, &(st(i))); |
i | 656 | arch/i386/math-emu/errors.c | void stack_underflow_pop(int i) |
i | 662 | arch/i386/math-emu/errors.c | reg_move(&CONST_QNaN, &(st(i))); |
i | 123 | arch/i386/math-emu/fpu_emu.h | #define NOT_EMPTY(i) (st(i).tag != TW_Empty) |
i | 157 | arch/i386/math-emu/fpu_entry.c | int i; |
i | 158 | arch/i386/math-emu/fpu_entry.c | for ( i = 0; i < 8; i++ ) |
i | 162 | arch/i386/math-emu/fpu_entry.c | regs[i].exp = 0; |
i | 163 | arch/i386/math-emu/fpu_entry.c | regs[i].sigh = 0x80000000; |
i | 7 | arch/i386/math-emu/fpu_proto.h | extern void stack_underflow_i(int i); |
i | 8 | arch/i386/math-emu/fpu_proto.h | extern void stack_underflow_pop(int i); |
i | 1017 | arch/i386/math-emu/reg_ld_str.c | int i, precision_loss; |
i | 1044 | arch/i386/math-emu/reg_ld_str.c | for ( i = 0; i < 7; i++) |
i | 1045 | arch/i386/math-emu/reg_ld_str.c | put_fs_byte(0, (unsigned char *) d+i); /* These bytes "undefined" */ |
i | 1064 | arch/i386/math-emu/reg_ld_str.c | for ( i = 0; i < 9; i++) |
i | 1069 | arch/i386/math-emu/reg_ld_str.c | put_fs_byte(b,(unsigned char *) d+i); |
i | 1153 | arch/i386/math-emu/reg_ld_str.c | int i; |
i | 1204 | arch/i386/math-emu/reg_ld_str.c | for ( i = 0; i < 8; i++ ) |
i | 1211 | arch/i386/math-emu/reg_ld_str.c | regs[i].tag = TW_Empty; |
i | 1212 | arch/i386/math-emu/reg_ld_str.c | else if ( regs[i].tag == TW_Empty ) |
i | 1216 | arch/i386/math-emu/reg_ld_str.c | if ( regs[i].exp == EXP_BIAS - EXTENDED_Ebias ) |
i | 1218 | arch/i386/math-emu/reg_ld_str.c | if ( !(regs[i].sigl | regs[i].sigh) ) |
i | 1219 | arch/i386/math-emu/reg_ld_str.c | regs[i].tag = TW_Zero; |
i | 1221 | arch/i386/math-emu/reg_ld_str.c | regs[i].tag = TW_Valid; |
i | 1223 | arch/i386/math-emu/reg_ld_str.c | else if ( regs[i].exp == 0x7fff + EXP_BIAS - EXTENDED_Ebias ) |
i | 1225 | arch/i386/math-emu/reg_ld_str.c | if ( !((regs[i].sigh & ~0x80000000) | regs[i].sigl) ) |
i | 1226 | arch/i386/math-emu/reg_ld_str.c | regs[i].tag = TW_Infinity; |
i | 1228 | arch/i386/math-emu/reg_ld_str.c | regs[i].tag = TW_NaN; |
i | 1231 | arch/i386/math-emu/reg_ld_str.c | regs[i].tag = TW_Valid; |
i | 1243 | arch/i386/math-emu/reg_ld_str.c | int i, stnr; |
i | 1247 | arch/i386/math-emu/reg_ld_str.c | for ( i = 0; i < 8; i++ ) |
i | 1250 | arch/i386/math-emu/reg_ld_str.c | stnr = (i+top) & 7; |
i | 1252 | arch/i386/math-emu/reg_ld_str.c | reg_load_extended((long double *)(s+i*10), ®s[stnr]); |
i | 1264 | arch/i386/math-emu/reg_ld_str.c | int i; |
i | 1266 | arch/i386/math-emu/reg_ld_str.c | for ( i = 7; i >= 0; i-- ) |
i | 1268 | arch/i386/math-emu/reg_ld_str.c | switch ( tag = regs[i].tag ) |
i | 1271 | arch/i386/math-emu/reg_ld_str.c | if ( regs[i].exp <= (EXP_BIAS - EXTENDED_Ebias) ) |
i | 1361 | arch/i386/math-emu/reg_ld_str.c | int i; |
i | 1367 | arch/i386/math-emu/reg_ld_str.c | for ( i = 0; i < 8; i++ ) |
i | 1368 | arch/i386/math-emu/reg_ld_str.c | write_to_extended(®s[(top + i) & 7], d + 10 * i); |
i | 79 | arch/i386/mm/init.c | int i,free = 0,total = 0,reserved = 0; |
i | 85 | arch/i386/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 86 | arch/i386/mm/init.c | while (i-- > 0) { |
i | 88 | arch/i386/mm/init.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 90 | arch/i386/mm/init.c | else if (!mem_map[i]) |
i | 93 | arch/i386/mm/init.c | shared += mem_map[i]-1; |
i | 230 | arch/i386/mm/init.c | int i; |
i | 232 | arch/i386/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 237 | arch/i386/mm/init.c | while (i-- > 0) { |
i | 238 | arch/i386/mm/init.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 241 | arch/i386/mm/init.c | if (!mem_map[i]) |
i | 243 | arch/i386/mm/init.c | val->sharedram += mem_map[i]-1; |
i | 114 | arch/mips/kernel/irq.c | int i, len = 0; |
i | 117 | arch/mips/kernel/irq.c | for (i = 0 ; i < 16 ; i++, action++) { |
i | 121 | arch/mips/kernel/irq.c | i, kstat.interrupts[i], |
i | 233 | arch/mips/kernel/irq.c | unsigned int i, irqs = 0, irqmask; |
i | 237 | arch/mips/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 238 | arch/mips/kernel/irq.c | if (!request_irq(i, no_action, SA_PROBE, "probe")) { |
i | 239 | arch/mips/kernel/irq.c | enable_irq(i); |
i | 240 | arch/mips/kernel/irq.c | irqs |= (1 << i); |
i | 249 | arch/mips/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 250 | arch/mips/kernel/irq.c | if (irqs & (1 << i) & irqmask) { |
i | 251 | arch/mips/kernel/irq.c | irqs ^= (1 << i); |
i | 252 | arch/mips/kernel/irq.c | free_irq(i); |
i | 263 | arch/mips/kernel/irq.c | unsigned int i, irqmask; |
i | 266 | arch/mips/kernel/irq.c | for (i = 15; i > 0; i--) { |
i | 267 | arch/mips/kernel/irq.c | if (irqs & (1 << i)) { |
i | 268 | arch/mips/kernel/irq.c | free_irq(i); |
i | 277 | arch/mips/kernel/irq.c | i = ffz(~irqs); |
i | 278 | arch/mips/kernel/irq.c | if (irqs != (irqs & (1 << i))) |
i | 279 | arch/mips/kernel/irq.c | i = -i; |
i | 280 | arch/mips/kernel/irq.c | return i; |
i | 285 | arch/mips/kernel/irq.c | int i; |
i | 291 | arch/mips/kernel/irq.c | for (i = 0; i < 16 ; i++) |
i | 292 | arch/mips/kernel/irq.c | set_intr_gate(i, bad_interrupt); |
i | 297 | arch/mips/kernel/irq.c | for (i = 0; i < 32; i++) { |
i | 298 | arch/mips/kernel/irq.c | bh_base[i].routine = NULL; |
i | 299 | arch/mips/kernel/irq.c | bh_base[i].data = NULL; |
i | 38 | arch/mips/kernel/process.c | int i; |
i | 46 | arch/mips/kernel/process.c | for (i = 0 ; i < 512 ; i++) |
i | 47 | arch/mips/kernel/process.c | pgd_clear(swapper_pg_dir + i); |
i | 133 | arch/mips/kernel/process.c | int i; |
i | 143 | arch/mips/kernel/process.c | for (i = 0; i < 8; i++) |
i | 144 | arch/mips/kernel/process.c | dump->u_debugreg[i] = current->debugreg[i]; |
i | 38 | arch/mips/kernel/ptrace.c | int i; |
i | 40 | arch/mips/kernel/ptrace.c | for (i = 1; i < NR_TASKS; i++) { |
i | 41 | arch/mips/kernel/ptrace.c | if (task[i] != NULL && (task[i]->pid == pid)) |
i | 42 | arch/mips/kernel/ptrace.c | return task[i]; |
i | 284 | arch/mips/kernel/ptrace.c | int i; |
i | 428 | arch/mips/kernel/ptrace.c | for(i=0; i<4; i++) |
i | 429 | arch/mips/kernel/ptrace.c | if ((0x5f54 >> ((data >> (16 + 4*i)) & 0xf)) & 1) |
i | 80 | arch/mips/kernel/traps.c | int i; |
i | 131 | arch/mips/kernel/traps.c | current->comm, current->pid, 0xffff & i, |
i | 133 | arch/mips/kernel/traps.c | for(i=0;i<5;i++) |
i | 136 | arch/mips/kernel/traps.c | for(i=0; i < kstack_depth_to_print; i++) { |
i | 139 | arch/mips/kernel/traps.c | if (i && ((i % 8) == 0)) |
i | 145 | arch/mips/kernel/traps.c | i = 1; |
i | 161 | arch/mips/kernel/traps.c | if (i && ((i % 8) == 0)) |
i | 164 | arch/mips/kernel/traps.c | i++; |
i | 169 | arch/mips/kernel/traps.c | for(i=0;i<5;i++) |
i | 296 | arch/mips/kernel/traps.c | int i; |
i | 306 | arch/mips/kernel/traps.c | for (i=0;i<=31;i++) |
i | 307 | arch/mips/kernel/traps.c | set_except_vector(i, handle_reserved); |
i | 108 | arch/mips/mm/init.c | int i,free = 0,total = 0,reserved = 0; |
i | 114 | arch/mips/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 115 | arch/mips/mm/init.c | while (i-- > 0) { |
i | 117 | arch/mips/mm/init.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 119 | arch/mips/mm/init.c | else if (!mem_map[i]) |
i | 122 | arch/mips/mm/init.c | shared += mem_map[i]-1; |
i | 238 | arch/mips/mm/init.c | int i; |
i | 240 | arch/mips/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 245 | arch/mips/mm/init.c | while (i-- > 0) { |
i | 246 | arch/mips/mm/init.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 249 | arch/mips/mm/init.c | if (!mem_map[i]) |
i | 251 | arch/mips/mm/init.c | val->sharedram += mem_map[i]-1; |
i | 20 | arch/sparc/kernel/idprom.c | int i; |
i | 25 | arch/sparc/kernel/idprom.c | for(i = 0; i<IDPROM_SIZE; i++) |
i | 156 | arch/sparc/kernel/irq.c | int i, len = 0; |
i | 159 | arch/sparc/kernel/irq.c | for (i = 0 ; i < 16 ; i++, action++) { |
i | 163 | arch/sparc/kernel/irq.c | i, kstat.interrupts[i], |
i | 203 | arch/sparc/kernel/irq.c | int i; |
i | 209 | arch/sparc/kernel/irq.c | for (i = 0; i < 16; i++) |
i | 210 | arch/sparc/kernel/irq.c | if (irq_action[i].handler) |
i | 211 | arch/sparc/kernel/irq.c | printk("[%s:%d] ", irq_action[i].name, i); |
i | 327 | arch/sparc/kernel/irq.c | unsigned int i = 0; |
i | 329 | arch/sparc/kernel/irq.c | return i; |
i | 127 | arch/sparc/kernel/probe.c | register int i = 0; |
i | 157 | arch/sparc/kernel/probe.c | for(i = 0; i<23; i++) |
i | 159 | arch/sparc/kernel/probe.c | if(linux_sparc_chips[i].psr_impl == psr_impl) |
i | 160 | arch/sparc/kernel/probe.c | if(linux_sparc_chips[i].psr_vers == psr_vers) |
i | 162 | arch/sparc/kernel/probe.c | sparc_cpu_type = linux_sparc_chips[i].cpu_name; |
i | 167 | arch/sparc/kernel/probe.c | if(i==23) |
i | 175 | arch/sparc/kernel/probe.c | for(i = 0; i<32; i++) |
i | 177 | arch/sparc/kernel/probe.c | if(linux_sparc_fpu[i].psr_impl == psr_impl) |
i | 178 | arch/sparc/kernel/probe.c | if(linux_sparc_fpu[i].fp_vers == fpu_vers) |
i | 180 | arch/sparc/kernel/probe.c | sparc_fpu_type = linux_sparc_fpu[i].fp_name; |
i | 185 | arch/sparc/kernel/probe.c | if(i == 32) |
i | 369 | arch/sparc/kernel/probe.c | register int nd, i; |
i | 412 | arch/sparc/kernel/probe.c | for(i=0; sp_banks[i].num_bytes != 0; i++) { |
i | 413 | arch/sparc/kernel/probe.c | printk("Bank %d: base 0x%x bytes %d\n", i, |
i | 414 | arch/sparc/kernel/probe.c | (unsigned int) sp_banks[i].base_addr, |
i | 415 | arch/sparc/kernel/probe.c | (int) sp_banks[i].num_bytes); |
i | 416 | arch/sparc/kernel/probe.c | end_of_phys_memory = sp_banks[i].base_addr + sp_banks[i].num_bytes; |
i | 55 | arch/sparc/mm/fault.c | register int i; |
i | 59 | arch/sparc/mm/fault.c | i=0; |
i | 72 | arch/sparc/mm/fault.c | i++; |
i | 76 | arch/sparc/mm/fault.c | sp_banks[i].base_addr = (unsigned long) mlist->start_adr; |
i | 77 | arch/sparc/mm/fault.c | sp_banks[i].num_bytes = mlist->num_bytes; |
i | 86 | arch/sparc/mm/fault.c | i++; |
i | 87 | arch/sparc/mm/fault.c | sp_banks[i].base_addr = 0xdeadbeef; |
i | 88 | arch/sparc/mm/fault.c | sp_banks[i].num_bytes = 0; |
i | 103 | arch/sparc/mm/fault.c | register int segmap_entry, i; |
i | 119 | arch/sparc/mm/fault.c | for(i = num_contexts; --i > 0;) |
i | 120 | arch/sparc/mm/fault.c | (*romvec->pv_setctxt)(i, (char *) prom_va_begin, |
i | 143 | arch/sparc/mm/fault.c | for(i = 0x40; --i >= 0; prom_va_begin+=4096) |
i | 69 | arch/sparc/mm/init.c | int i,free = 0,total = 0,reserved = 0; |
i | 75 | arch/sparc/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 76 | arch/sparc/mm/init.c | while (i-- > 0) { |
i | 78 | arch/sparc/mm/init.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 80 | arch/sparc/mm/init.c | else if (!mem_map[i]) |
i | 83 | arch/sparc/mm/init.c | shared += mem_map[i]-1; |
i | 107 | arch/sparc/mm/init.c | unsigned long i, a, b, mask=0; |
i | 143 | arch/sparc/mm/init.c | for(i=0; i<40960; i+=PAGE_SIZE) |
i | 144 | arch/sparc/mm/init.c | printk("address=0x%x vseg=%d pte=0x%x\n", (unsigned int) i, |
i | 145 | arch/sparc/mm/init.c | (int) get_segmap(i), (unsigned int) get_pte(i)); |
i | 157 | arch/sparc/mm/init.c | for(i=0; sp_banks[i].num_bytes != 0; i++) |
i | 158 | arch/sparc/mm/init.c | if((address >= sp_banks[i].base_addr) && |
i | 159 | arch/sparc/mm/init.c | (address <= (sp_banks[i].base_addr + sp_banks[i].num_bytes))) |
i | 205 | arch/sparc/mm/init.c | for(i=0x1a3000; i<(0x1a3000+40960); i+=PAGE_SIZE) |
i | 206 | arch/sparc/mm/init.c | printk("address=0x%x vseg=%d pte=0x%x\n", (unsigned int) i, |
i | 207 | arch/sparc/mm/init.c | (int) get_segmap(i), (unsigned int) get_pte(i)); |
i | 218 | arch/sparc/mm/init.c | for(i=0; i<num_contexts; i++) |
i | 221 | arch/sparc/mm/init.c | (*(romvec->pv_setctxt))(i, (char *) c, a); |
i | 249 | arch/sparc/mm/init.c | for(i=0; i<8; i++) |
i | 253 | arch/sparc/mm/init.c | switch_to_context(i); |
i | 264 | arch/sparc/mm/init.c | for(i=0; i<num_contexts; i++) |
i | 266 | arch/sparc/mm/init.c | switch_to_context(i); |
i | 267 | arch/sparc/mm/init.c | printk("%d ", (int) i); |
i | 283 | arch/sparc/mm/init.c | int i = 0; |
i | 293 | arch/sparc/mm/init.c | for(i = 0; sp_banks[i].num_bytes != 0; i++) { |
i | 294 | arch/sparc/mm/init.c | tmp = sp_banks[i].base_addr; |
i | 295 | arch/sparc/mm/init.c | limit = (sp_banks[i].base_addr + sp_banks[i].num_bytes); |
i | 306 | arch/sparc/mm/init.c | if(sp_banks[i+1].num_bytes != 0) |
i | 307 | arch/sparc/mm/init.c | while(tmp < sp_banks[i+1].base_addr) { |
i | 346 | arch/sparc/mm/init.c | int i; |
i | 348 | arch/sparc/mm/init.c | i = high_memory >> PAGE_SHIFT; |
i | 353 | arch/sparc/mm/init.c | while (i-- > 0) { |
i | 354 | arch/sparc/mm/init.c | if (mem_map[i] & MAP_PAGE_RESERVED) |
i | 357 | arch/sparc/mm/init.c | if (!mem_map[i]) |
i | 359 | arch/sparc/mm/init.c | val->sharedram += mem_map[i]-1; |
i | 390 | drivers/block/aztcd.c | int i; |
i | 392 | drivers/block/aztcd.c | i = inb(STATUS_PORT) & AFL_STATUS; /* is STEN=0? ???*/ |
i | 393 | drivers/block/aztcd.c | if (!i) |
i | 456 | drivers/block/aztcd.c | { int i, st; |
i | 472 | drivers/block/aztcd.c | { if ((i=aztUpdateToc())<0) return i; /* error reading TOC */ |
i | 506 | drivers/block/aztcd.c | i = aztPlay(&azt_Play); |
i | 507 | drivers/block/aztcd.c | if (i < 0) |
i | 531 | drivers/block/aztcd.c | i = aztPlay(&azt_Play); |
i | 532 | drivers/block/aztcd.c | if (i < 0) |
i | 566 | drivers/block/aztcd.c | i = aztPlay(&azt_Play); |
i | 567 | drivers/block/aztcd.c | if (i < 0) |
i | 726 | drivers/block/aztcd.c | int i; |
i | 727 | drivers/block/aztcd.c | for (i = 0; i < AZT_BUF_SIZ && azt_buf_bn[i] != bn; ++i) |
i | 729 | drivers/block/aztcd.c | if (i < AZT_BUF_SIZ) { |
i | 730 | drivers/block/aztcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
i | 732 | drivers/block/aztcd.c | if (azt_buf_out != i) { |
i | 733 | drivers/block/aztcd.c | azt_buf_out = i; |
i | 734 | drivers/block/aztcd.c | if (azt_buf_bn[i] != bn) { |
i | 1089 | drivers/block/aztcd.c | int i; |
i | 1091 | drivers/block/aztcd.c | for (i=0; i<2048; i++) { |
i | 1166 | drivers/block/aztcd.c | { int i; |
i | 1171 | drivers/block/aztcd.c | for (i = 0; i < AZT_BUF_SIZ; ++i) |
i | 1172 | drivers/block/aztcd.c | azt_buf_bn[i] = -1; |
i | 1543 | drivers/block/aztcd.c | { int i, px; |
i | 1550 | drivers/block/aztcd.c | for (i = 0; i < MAX_TRACKS; i++) |
i | 1551 | drivers/block/aztcd.c | Toc[i].pointIndex = 0; |
i | 1553 | drivers/block/aztcd.c | i = DiskInfo.last + 3; |
i | 1572 | drivers/block/aztcd.c | i--; |
i | 1575 | drivers/block/aztcd.c | if (i <= 0) |
i | 1583 | drivers/block/aztcd.c | for (i = 1; i <= DiskInfo.last+1; i++) |
i | 1585 | drivers/block/aztcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
i | 1586 | drivers/block/aztcd.c | Toc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame, |
i | 1587 | drivers/block/aztcd.c | Toc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame); |
i | 1588 | drivers/block/aztcd.c | for (i = 100; i < 103; i++) |
i | 1590 | drivers/block/aztcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
i | 1591 | drivers/block/aztcd.c | Toc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame, |
i | 1592 | drivers/block/aztcd.c | Toc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame); |
i | 615 | drivers/block/cdu31a.c | int i; |
i | 674 | drivers/block/cdu31a.c | for (i=0; i<8; i++) |
i | 702 | drivers/block/cdu31a.c | for (i=0; i<10; i++) |
i | 1090 | drivers/block/cdu31a.c | int i; |
i | 1098 | drivers/block/cdu31a.c | for(i=0; i<CD_XA_HEAD; i++) |
i | 1137 | drivers/block/cdu31a.c | for(i=0; i<CD_XA_TAIL; i++) |
i | 1724 | drivers/block/cdu31a.c | int i; |
i | 1729 | drivers/block/cdu31a.c | for (i = 0; i < num_tracks; i++) |
i | 1731 | drivers/block/cdu31a.c | if (sony_toc->tracks[i].track == track) |
i | 1733 | drivers/block/cdu31a.c | return i; |
i | 2179 | drivers/block/cdu31a.c | int i; |
i | 2270 | drivers/block/cdu31a.c | for (i=1; i<7; i++) |
i | 2272 | drivers/block/cdu31a.c | params[i] = int_to_bcd(params[i]); |
i | 2800 | drivers/block/cdu31a.c | int i; |
i | 2842 | drivers/block/cdu31a.c | i = 0; |
i | 2843 | drivers/block/cdu31a.c | while ( (cdu31a_addresses[i].base != 0) |
i | 2846 | drivers/block/cdu31a.c | if (check_region(cdu31a_addresses[i].base, 4)) { |
i | 2847 | drivers/block/cdu31a.c | i++; |
i | 2850 | drivers/block/cdu31a.c | get_drive_configuration(cdu31a_addresses[i].base, |
i | 2856 | drivers/block/cdu31a.c | irq_used = cdu31a_addresses[i].int_num; |
i | 2860 | drivers/block/cdu31a.c | i++; |
i | 379 | drivers/block/floppy.c | #define _WAIT(x,i) CALL(ret=wait_til_done((x),i)) |
i | 745 | drivers/block/floppy.c | int i, drive, saved_drive; |
i | 751 | drivers/block/floppy.c | for(i=0; i< N_DRIVE; i++){ |
i | 752 | drivers/block/floppy.c | drive = (saved_drive + i + 1 ) % N_DRIVE; |
i | 922 | drivers/block/floppy.c | int i = 0, counter, status; |
i | 932 | drivers/block/floppy.c | return i; |
i | 936 | drivers/block/floppy.c | if (i >= MAX_REPLIES) { |
i | 940 | drivers/block/floppy.c | reply_buffer[i++] = inb_p(FD_DATA); |
i | 946 | drivers/block/floppy.c | status, fdc, i); |
i | 1198 | drivers/block/floppy.c | int i,ready_date,r, flags,dflags; |
i | 1230 | drivers/block/floppy.c | for(i=0; i< raw_cmd.cmd_count; i++) |
i | 1231 | drivers/block/floppy.c | r|=output_byte( raw_cmd.cmd[i] ); |
i | 1428 | drivers/block/floppy.c | int i; |
i | 1434 | drivers/block/floppy.c | for(i=0; i<inr; i++) |
i | 1435 | drivers/block/floppy.c | printk("%d %x\n", i, reply_buffer[i] ); |
i | 1444 | drivers/block/floppy.c | for(i=0; i<inr; i++) |
i | 1445 | drivers/block/floppy.c | printk("%d %x\n", i, reply_buffer[i] ); |
i | 1532 | drivers/block/floppy.c | int i; |
i | 1537 | drivers/block/floppy.c | for(i=0; i<N_FDC; i++){ |
i | 1539 | drivers/block/floppy.c | printk("dor %d = %x\n", i, fdc_state[i].dor ); |
i | 1540 | drivers/block/floppy.c | outb_p(fdc_state[i].address+2, fdc_state[i].dor); |
i | 2589 | drivers/block/floppy.c | int i; |
i | 2591 | drivers/block/floppy.c | i = verify_area(VERIFY_WRITE,param,size); |
i | 2592 | drivers/block/floppy.c | if (i) |
i | 2593 | drivers/block/floppy.c | return i; |
i | 2628 | drivers/block/floppy.c | int i, drive, count, ret; |
i | 2658 | drivers/block/floppy.c | i = verify_area(VERIFY_READ, raw_cmd.data, count ); |
i | 2659 | drivers/block/floppy.c | if (i) |
i | 2660 | drivers/block/floppy.c | return i; |
i | 2681 | drivers/block/floppy.c | for( i=0; i< raw_cmd.reply_count; i++) |
i | 2682 | drivers/block/floppy.c | raw_cmd.reply[i] = reply_buffer[i]; |
i | 2692 | drivers/block/floppy.c | i=fd_copyout( raw_cmd.data, floppy_track_buffer, count); |
i | 2693 | drivers/block/floppy.c | if (i) |
i | 2694 | drivers/block/floppy.c | return i; |
i | 2718 | drivers/block/floppy.c | int i,device,drive,type,cnt; |
i | 2730 | drivers/block/floppy.c | i=verify_area(VERIFY_WRITE,(void *) param,16); |
i | 2731 | drivers/block/floppy.c | if (i) |
i | 2732 | drivers/block/floppy.c | return i; |
i | 2780 | drivers/block/floppy.c | CALL(i = raw_cmd_ioctl((void *) param)); |
i | 2782 | drivers/block/floppy.c | return i; |
i | 3214 | drivers/block/floppy.c | int i; |
i | 3216 | drivers/block/floppy.c | for (i=0; i < ARRAY_SIZE(default_drive_params); i++){ |
i | 3218 | drivers/block/floppy.c | default_drive_params[i].params.flags |= 0x80; |
i | 3220 | drivers/block/floppy.c | default_drive_params[i].params.flags &= ~0x80; |
i | 3227 | drivers/block/floppy.c | int i; |
i | 3229 | drivers/block/floppy.c | for (i=0; i < ARRAY_SIZE(default_drive_params); i++){ |
i | 3231 | drivers/block/floppy.c | default_drive_params[i].params.select_delay = 0; |
i | 3232 | drivers/block/floppy.c | default_drive_params[i].params.flags |= FD_SILENT_DCL_CLEAR; |
i | 3234 | drivers/block/floppy.c | default_drive_params[i].params.select_delay = 2*HZ/100; |
i | 3235 | drivers/block/floppy.c | default_drive_params[i].params.flags &= ~FD_SILENT_DCL_CLEAR; |
i | 3309 | drivers/block/floppy.c | int i; |
i | 3313 | drivers/block/floppy.c | for(i=0; i< ARRAY_SIZE(config_params); i++){ |
i | 3314 | drivers/block/floppy.c | if (strcmp(str,config_params[i].name) == 0 ){ |
i | 3318 | drivers/block/floppy.c | param = config_params[i].def_param; |
i | 3319 | drivers/block/floppy.c | config_params[i].fn(ints,param); |
i | 3325 | drivers/block/floppy.c | for(i=0; i< ARRAY_SIZE(config_params); i++) |
i | 3326 | drivers/block/floppy.c | printk(" %s",config_params[i].name); |
i | 3336 | drivers/block/floppy.c | int i,drive; |
i | 3346 | drivers/block/floppy.c | for(i=0; i<256; i++) |
i | 3347 | drivers/block/floppy.c | if ( TYPE(i)) |
i | 3348 | drivers/block/floppy.c | floppy_sizes[i] = floppy_type[TYPE(i)].size >> 1; |
i | 3350 | drivers/block/floppy.c | floppy_sizes[i] = MAX_DISK_SIZE; |
i | 3365 | drivers/block/floppy.c | for (i = 0 ; i < N_FDC ; i++) { |
i | 3366 | drivers/block/floppy.c | fdc = i; |
i | 3393 | drivers/block/floppy.c | for (i = 0 ; i < N_FDC ; i++) { |
i | 3394 | drivers/block/floppy.c | fdc = i; |
i | 3434 | drivers/block/floppy.c | int i; |
i | 3444 | drivers/block/floppy.c | for(i=0; i< N_FDC; i++){ |
i | 3446 | drivers/block/floppy.c | fdc = i; |
i | 106 | drivers/block/genhd.c | int i, minor = current_minor; |
i | 134 | drivers/block/genhd.c | for (i=1 ; i<=4 ; minor++,i++,p++) { |
i | 151 | drivers/block/genhd.c | for (i = 4 ; i < 16 ; i++, current_minor++) { |
i | 177 | drivers/block/genhd.c | int i; |
i | 185 | drivers/block/genhd.c | for (i=start ; i < j ; i++) |
i | 186 | drivers/block/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
i | 191 | drivers/block/genhd.c | int i; |
i | 197 | drivers/block/genhd.c | for (i = 0 ; i < j; i++) { |
i | 198 | drivers/block/genhd.c | dev->part[i].start_sect = 0; |
i | 199 | drivers/block/genhd.c | dev->part[i].nr_sects = 0; |
i | 206 | drivers/block/genhd.c | for (i=0 ; i < j ; i++) |
i | 207 | drivers/block/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
i | 101 | drivers/block/hd.c | int i; |
i | 107 | drivers/block/hd.c | i = inb_p(0x40); |
i | 108 | drivers/block/hd.c | i |= inb(0x40) << 8; |
i | 110 | drivers/block/hd.c | return(t - i); |
i | 174 | drivers/block/hd.c | int i = inb_p(HD_STATUS); |
i | 176 | drivers/block/hd.c | if (!OK_STATUS(i)) { |
i | 177 | drivers/block/hd.c | dump_status("check_status", i); |
i | 361 | drivers/block/hd.c | unsigned int i; |
i | 364 | drivers/block/hd.c | for (i = 0; i < 500000 ; i++) { |
i | 375 | drivers/block/hd.c | int i; |
i | 378 | drivers/block/hd.c | for(i = 0; i < 1000; i++) nop(); |
i | 380 | drivers/block/hd.c | for(i = 0; i < 1000; i++) nop(); |
i | 389 | drivers/block/hd.c | static int i; |
i | 394 | drivers/block/hd.c | i = -1; |
i | 401 | drivers/block/hd.c | if (++i < NR_HD) { |
i | 402 | drivers/block/hd.c | special_op[i] = recalibrate[i] = 1; |
i | 403 | drivers/block/hd.c | if (unmask_intr[i]) { |
i | 404 | drivers/block/hd.c | unmask_intr[i] = DEFAULT_UNMASK_INTR; |
i | 405 | drivers/block/hd.c | printk("hd%c: reset irq-unmasking to %d\n",i+'a', |
i | 408 | drivers/block/hd.c | if (mult_req[i] || mult_count[i]) { |
i | 409 | drivers/block/hd.c | mult_count[i] = 0; |
i | 410 | drivers/block/hd.c | mult_req[i] = DEFAULT_MULT_COUNT; |
i | 411 | drivers/block/hd.c | printk("hd%c: reset multiple mode to %d\n",i+'a', |
i | 414 | drivers/block/hd.c | hd_out(i,hd_info[i].sect,hd_info[i].sect,hd_info[i].head-1, |
i | 415 | drivers/block/hd.c | hd_info[i].cyl,WIN_SPECIFY,&reset_hd); |
i | 477 | drivers/block/hd.c | int i, retries = 100000, msect = mult_count[dev], nsect; |
i | 482 | drivers/block/hd.c | i = (unsigned) inb_p(HD_STATUS); |
i | 483 | drivers/block/hd.c | if (i & BUSY_STAT) |
i | 485 | drivers/block/hd.c | if (!OK_STATUS(i)) |
i | 487 | drivers/block/hd.c | if (i & DRQ_STAT) |
i | 490 | drivers/block/hd.c | dump_status("read_intr", i); |
i | 505 | drivers/block/hd.c | i = (CURRENT->nr_sectors -= nsect); |
i | 514 | drivers/block/hd.c | if (i > 0) { |
i | 550 | drivers/block/hd.c | int i; |
i | 555 | drivers/block/hd.c | if (OK_STATUS(i=inb_p(HD_STATUS))) { |
i | 556 | drivers/block/hd.c | if (i & DRQ_STAT) { |
i | 564 | drivers/block/hd.c | for (i = CURRENT->nr_sectors; i > 0;){ |
i | 565 | drivers/block/hd.c | i -= CURRENT->current_nr_sectors; |
i | 577 | drivers/block/hd.c | dump_status("multwrite_intr", i); |
i | 584 | drivers/block/hd.c | int i; |
i | 590 | drivers/block/hd.c | i = (unsigned) inb_p(HD_STATUS); |
i | 591 | drivers/block/hd.c | if (i & BUSY_STAT) |
i | 593 | drivers/block/hd.c | if (!OK_STATUS(i)) |
i | 595 | drivers/block/hd.c | if ((CURRENT->nr_sectors <= 1) || (i & DRQ_STAT)) |
i | 598 | drivers/block/hd.c | dump_status("write_intr", i); |
i | 604 | drivers/block/hd.c | i = --CURRENT->nr_sectors; |
i | 607 | drivers/block/hd.c | if (!i || (CURRENT->bh && !SUBSECTOR(i))) |
i | 609 | drivers/block/hd.c | if (i > 0) { |
i | 955 | drivers/block/hd.c | int drive, i; |
i | 1003 | drivers/block/hd.c | i = NR_HD; |
i | 1004 | drivers/block/hd.c | while (i-- > 0) { |
i | 1013 | drivers/block/hd.c | hd[i<<6].nr_sects = bios_info[i].head * |
i | 1014 | drivers/block/hd.c | bios_info[i].sect * bios_info[i].cyl; |
i | 1015 | drivers/block/hd.c | hd_ident_info[i] = (struct hd_driveid *) kmalloc(512,GFP_KERNEL); |
i | 1016 | drivers/block/hd.c | special_op[i] = 1; |
i | 1029 | drivers/block/hd.c | for(i=0;i<(MAX_HD << 6);i++) hd_blocksizes[i] = 1024; |
i | 1082 | drivers/block/hd.c | int i; |
i | 1101 | drivers/block/hd.c | for (i=max_p - 1; i >=0 ; i--) { |
i | 1102 | drivers/block/hd.c | sync_dev(major | start | i); |
i | 1103 | drivers/block/hd.c | invalidate_inodes(major | start | i); |
i | 1104 | drivers/block/hd.c | invalidate_buffers(major | start | i); |
i | 1105 | drivers/block/hd.c | gdev->part[start+i].start_sect = 0; |
i | 1106 | drivers/block/hd.c | gdev->part[start+i].nr_sects = 0; |
i | 1097 | drivers/block/ide-cd.c | int stat, ntracks, i; |
i | 1137 | drivers/block/ide-cd.c | for (i=0; i<=ntracks; i++) |
i | 1138 | drivers/block/ide-cd.c | byte_swap_long (&toc->ent[i].lba); |
i | 383 | drivers/block/ide.c | int i; |
i | 389 | drivers/block/ide.c | i = inb_p(0x40); |
i | 390 | drivers/block/ide.c | i |= inb(0x40) << 8; |
i | 392 | drivers/block/ide.c | return (t - i); |
i | 629 | drivers/block/ide.c | int i = dev->mult_count ? dev->mult_count<<8 : 1<<8; |
i | 630 | drivers/block/ide.c | while (i-- > 0) /* try to flush data */ |
i | 651 | drivers/block/ide.c | int i; |
i | 679 | drivers/block/ide.c | i = (rq->nr_sectors -= nsect); |
i | 682 | drivers/block/ide.c | if (i > 0) { |
i | 695 | drivers/block/ide.c | int i; |
i | 708 | drivers/block/ide.c | i = --rq->nr_sectors; |
i | 712 | drivers/block/ide.c | if (i > 0) { |
i | 762 | drivers/block/ide.c | int i; |
i | 776 | drivers/block/ide.c | for (i = rq->nr_sectors; i > 0;){ |
i | 777 | drivers/block/ide.c | i -= rq->current_nr_sectors; |
i | 1307 | drivers/block/ide.c | unsigned int i, major, start, drive = DEVICE_NR(i_rdev); |
i | 1328 | drivers/block/ide.c | for (i = 0; i < (1<<PARTN_BITS); i++) { |
i | 1329 | drivers/block/ide.c | unsigned int minor = start + i; |
i | 1935 | drivers/block/ide.c | int i, hwif, drive = next_drive++; |
i | 1977 | drivers/block/ide.c | for (i=0; i++ < ints[0];) |
i | 1978 | drivers/block/ide.c | printk("%s=%d%c",p[i-1],ints[i],i<ints[0]?',':'\n'); |
i | 401 | drivers/block/ll_rw_blk.c | int i; |
i | 423 | drivers/block/ll_rw_blk.c | i = blksize_size[major][MINOR(bh[0]->b_dev)]; |
i | 424 | drivers/block/ll_rw_blk.c | if (i) |
i | 425 | drivers/block/ll_rw_blk.c | correct_size = i; |
i | 429 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
i | 430 | drivers/block/ll_rw_blk.c | if (bh[i] && bh[i]->b_size != correct_size) { |
i | 433 | drivers/block/ll_rw_blk.c | correct_size, bh[i]->b_size); |
i | 457 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
i | 458 | drivers/block/ll_rw_blk.c | if (bh[i]) { |
i | 459 | drivers/block/ll_rw_blk.c | bh[i]->b_req = 1; |
i | 460 | drivers/block/ll_rw_blk.c | make_request(major, rw, bh[i]); |
i | 476 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
i | 477 | drivers/block/ll_rw_blk.c | if (bh[i]) |
i | 478 | drivers/block/ll_rw_blk.c | bh[i]->b_dirt = bh[i]->b_uptodate = 0; |
i | 485 | drivers/block/ll_rw_blk.c | int i; |
i | 507 | drivers/block/ll_rw_blk.c | for (i=0; i<nb; i++, buf += buffersize) |
i | 514 | drivers/block/ll_rw_blk.c | req->sector = (b[i] * buffersize) >> 9; |
i | 243 | drivers/block/mcd.c | int i, st; |
i | 262 | drivers/block/mcd.c | i = updateToc(); |
i | 263 | drivers/block/mcd.c | if (i < 0) |
i | 264 | drivers/block/mcd.c | return i; /* error reading TOC */ |
i | 279 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 291 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 312 | drivers/block/mcd.c | i = mcdPlay(&mcd_Play); |
i | 313 | drivers/block/mcd.c | if (i < 0) |
i | 349 | drivers/block/mcd.c | i = mcdPlay(&mcd_Play); |
i | 350 | drivers/block/mcd.c | if (i < 0) |
i | 363 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 395 | drivers/block/mcd.c | i = mcdPlay(&mcd_Play); |
i | 396 | drivers/block/mcd.c | if (i < 0) |
i | 504 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 505 | drivers/block/mcd.c | if (i < 0) |
i | 523 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 534 | drivers/block/mcd.c | i = getMcdStatus(MCD_STATUS_DELAY); |
i | 553 | drivers/block/mcd.c | int i; |
i | 554 | drivers/block/mcd.c | for (i = 0; i < MCD_BUF_SIZ && mcd_buf_bn[i] != bn; ++i) |
i | 556 | drivers/block/mcd.c | if (i < MCD_BUF_SIZ) { |
i | 557 | drivers/block/mcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
i | 559 | drivers/block/mcd.c | if (mcd_buf_out != i) { |
i | 560 | drivers/block/mcd.c | mcd_buf_out = i; |
i | 561 | drivers/block/mcd.c | if (mcd_buf_bn[i] != bn) { |
i | 911 | drivers/block/mcd.c | int i = 4096; |
i | 914 | drivers/block/mcd.c | } while ((inb(MCDPORT(1)) & MFL_STATUSorDATA) == MFL_STATUS && --i); |
i | 917 | drivers/block/mcd.c | i = 4096; |
i | 920 | drivers/block/mcd.c | } while ((inb(MCDPORT(1)) & MFL_STATUSorDATA) == MFL_STATUS && --i); |
i | 1001 | drivers/block/mcd.c | int i; |
i | 1002 | drivers/block/mcd.c | for (i = 0; i < MCD_BUF_SIZ; ++i) |
i | 1003 | drivers/block/mcd.c | mcd_buf_bn[i] = -1; |
i | 1216 | drivers/block/mcd.c | int i; |
i | 1222 | drivers/block/mcd.c | i = inb(MCDPORT(0)) & 0xFF; |
i | 1223 | drivers/block/mcd.c | return i; |
i | 1447 | drivers/block/mcd.c | int i, px; |
i | 1452 | drivers/block/mcd.c | for (i = 0; i < MAX_TRACKS; i++) |
i | 1453 | drivers/block/mcd.c | Toc[i].pointIndex = 0; |
i | 1455 | drivers/block/mcd.c | i = DiskInfo.last + 3; |
i | 1489 | drivers/block/mcd.c | i--; |
i | 1492 | drivers/block/mcd.c | if (i <= 0) |
i | 1508 | drivers/block/mcd.c | for (i = 1; i <= DiskInfo.last; i++) |
i | 1510 | drivers/block/mcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
i | 1511 | drivers/block/mcd.c | Toc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame, |
i | 1512 | drivers/block/mcd.c | Toc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame); |
i | 1513 | drivers/block/mcd.c | for (i = 100; i < 103; i++) |
i | 1515 | drivers/block/mcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
i | 1516 | drivers/block/mcd.c | Toc[i].trackTime.min, Toc[i].trackTime.sec, Toc[i].trackTime.frame, |
i | 1517 | drivers/block/mcd.c | Toc[i].diskTime.min, Toc[i].diskTime.sec, Toc[i].diskTime.frame); |
i | 80 | drivers/block/ramdisk.c | int i; |
i | 91 | drivers/block/ramdisk.c | for (i=0; i < length; i++) |
i | 94 | drivers/block/ramdisk.c | for(i=0;i<2;i++) rd_blocksizes[i] = 1024; |
i | 115 | drivers/block/ramdisk.c | int i = 1; |
i | 190 | drivers/block/ramdisk.c | i++; |
i | 766 | drivers/block/sbpcd.c | static INLINE u_char swap_nibbles(u_char i) |
i | 768 | drivers/block/sbpcd.c | return ((i<<4)|(i>>4)); |
i | 771 | drivers/block/sbpcd.c | static INLINE u_char byt2bcd(u_char i) |
i | 773 | drivers/block/sbpcd.c | return (((i/10)<<4)+i%10); |
i | 784 | drivers/block/sbpcd.c | int i; |
i | 787 | drivers/block/sbpcd.c | i=(msf.c[2] * CD_SECS + msf.c[1]) * CD_FRAMES + msf.c[0] - CD_BLOCK_OFFSET; |
i | 788 | drivers/block/sbpcd.c | if (i<0) return (0); |
i | 789 | drivers/block/sbpcd.c | return (i); |
i | 797 | drivers/block/sbpcd.c | int i; |
i | 799 | drivers/block/sbpcd.c | i=(msf[0] * CD_SECS + msf[1]) * CD_FRAMES + msf[2] - CD_BLOCK_OFFSET; |
i | 800 | drivers/block/sbpcd.c | if (i<0) return (0); |
i | 801 | drivers/block/sbpcd.c | return (i); |
i | 826 | drivers/block/sbpcd.c | int i; |
i | 828 | drivers/block/sbpcd.c | for (i=0;i<10;i++) drvcmd[i]=0; |
i | 832 | drivers/block/sbpcd.c | static void mark_timeout(unsigned long i) |
i | 847 | drivers/block/sbpcd.c | int i; |
i | 851 | drivers/block/sbpcd.c | for (i=maxtim_data;i!=0;i--) inb(CDi_status); |
i | 854 | drivers/block/sbpcd.c | for (i=maxtim02;i!=0;i--) inb(CDi_status); |
i | 858 | drivers/block/sbpcd.c | for (i=maxtim_data;i!=0;i--) inb(CDi_status); |
i | 879 | drivers/block/sbpcd.c | int i,j; |
i | 883 | drivers/block/sbpcd.c | for(timeout = jiffies + 1000, i=maxtim_data; timeout > jiffies; ) |
i | 885 | drivers/block/sbpcd.c | for ( ;i!=0;i--) |
i | 893 | drivers/block/sbpcd.c | i = 1; |
i | 897 | drivers/block/sbpcd.c | for(i=maxtim16;i!=0;i--) |
i | 905 | drivers/block/sbpcd.c | for(timeout = jiffies + 1000, i=maxtim_data; timeout > jiffies; ) |
i | 907 | drivers/block/sbpcd.c | for ( ;i!=0;i--) |
i | 915 | drivers/block/sbpcd.c | i = 1; |
i | 924 | drivers/block/sbpcd.c | int i,j, st=0; |
i | 929 | drivers/block/sbpcd.c | for (i=0, timeout = jiffies + 100; i < response_count; i++) |
i | 943 | drivers/block/sbpcd.c | infobuf[i]=inb(CDi_info); |
i | 947 | drivers/block/sbpcd.c | for (i=0;i<response_count;i++) |
i | 956 | drivers/block/sbpcd.c | DPRINTF((DBG_SEQ,"SBPCD: ResponseInfo: not_result_ready (got %d of %d bytes).\n", i, response_count)); |
i | 959 | drivers/block/sbpcd.c | infobuf[i]=inb(CDi_info); |
i | 963 | drivers/block/sbpcd.c | for (i=0, timeout = jiffies + 100; i < response_count; i++) |
i | 977 | drivers/block/sbpcd.c | infobuf[i]=inb(CDi_info); |
i | 1022 | drivers/block/sbpcd.c | int i,j; |
i | 1035 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1036 | drivers/block/sbpcd.c | if (!(i&s_not_result_ready)) break; |
i | 1051 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1052 | drivers/block/sbpcd.c | if (!(i&s_not_result_ready)) break; |
i | 1065 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 1066 | drivers/block/sbpcd.c | if (!(i&s_not_result_ready)) break; |
i | 1081 | drivers/block/sbpcd.c | i=inb(CDi_info); |
i | 1082 | drivers/block/sbpcd.c | DPRINTF((DBG_STA,"SBPCD: ResponseStatus: response %2X.\n", i)); |
i | 1083 | drivers/block/sbpcd.c | EvaluateStatus(i); |
i | 1089 | drivers/block/sbpcd.c | int i; |
i | 1096 | drivers/block/sbpcd.c | if (!fam0L_drive) for (i=0;i<6;i++) OUT(CDo_command,0); |
i | 1102 | drivers/block/sbpcd.c | int i; |
i | 1127 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 1129 | drivers/block/sbpcd.c | DPRINTF((DBG_ERR,"SBPCD: xx_ReadError: cmd_out(82) returns %d (%02X)\n",i,i)); |
i | 1130 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1131 | drivers/block/sbpcd.c | if (fam0_drive) i=1; |
i | 1132 | drivers/block/sbpcd.c | else i=2; |
i | 1133 | drivers/block/sbpcd.c | DriveStruct[d].error_byte=infobuf[i]; |
i | 1134 | drivers/block/sbpcd.c | DPRINTF((DBG_ERR,"SBPCD: xx_ReadError: infobuf[%d] is %d (%02X)\n",i,DriveStruct[d].error_byte,DriveStruct[d].error_byte)); |
i | 1135 | drivers/block/sbpcd.c | i=sta2err(infobuf[i]); |
i | 1136 | drivers/block/sbpcd.c | return (i); |
i | 1141 | drivers/block/sbpcd.c | int i=0; |
i | 1146 | drivers/block/sbpcd.c | for (i=0;i<len;i++) DPRINTF((DBG_CMD," %02X",drvcmd[i])); |
i | 1150 | drivers/block/sbpcd.c | for (i=0;i<len;i++) OUT(CDo_command,drvcmd[i]); |
i | 1162 | drivers/block/sbpcd.c | else i=ResponseInfo(); |
i | 1163 | drivers/block/sbpcd.c | if (i<0) return (-9); |
i | 1168 | drivers/block/sbpcd.c | i=CDi_stat_loop(); |
i | 1169 | drivers/block/sbpcd.c | if ((i<0)||!(i&s_attention)) return (-9); |
i | 1181 | drivers/block/sbpcd.c | i=ResponseStatus(); |
i | 1183 | drivers/block/sbpcd.c | if (i<0) return (-9); |
i | 1188 | drivers/block/sbpcd.c | if (flags_cmd_out&f_bit1) if (i&p_success_old) goto LOC_232; |
i | 1198 | drivers/block/sbpcd.c | i=xx_ReadError(); |
i | 1200 | drivers/block/sbpcd.c | return (i); |
i | 1205 | drivers/block/sbpcd.c | int i; |
i | 1242 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 1243 | drivers/block/sbpcd.c | return (i); |
i | 1248 | drivers/block/sbpcd.c | int i; |
i | 1271 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 1273 | drivers/block/sbpcd.c | return (i); |
i | 1278 | drivers/block/sbpcd.c | int i; |
i | 1300 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 1301 | drivers/block/sbpcd.c | return (i); |
i | 1306 | drivers/block/sbpcd.c | int i; |
i | 1335 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 1336 | drivers/block/sbpcd.c | return (i); |
i | 1341 | drivers/block/sbpcd.c | int i; |
i | 1438 | drivers/block/sbpcd.c | i=channel1; |
i | 1440 | drivers/block/sbpcd.c | channel0=i; |
i | 1441 | drivers/block/sbpcd.c | i=volume1; |
i | 1443 | drivers/block/sbpcd.c | volume0=i; |
i | 1487 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 1488 | drivers/block/sbpcd.c | if (i>0) return (i); |
i | 1495 | drivers/block/sbpcd.c | int i; |
i | 1500 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 1501 | drivers/block/sbpcd.c | return (i); |
i | 1506 | drivers/block/sbpcd.c | int i; |
i | 1516 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 1522 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 1528 | drivers/block/sbpcd.c | i=GetStatus(); |
i | 1529 | drivers/block/sbpcd.c | if (i>=0) return -1; |
i | 1536 | drivers/block/sbpcd.c | int i, speed; |
i | 1545 | drivers/block/sbpcd.c | i=yy_SetSpeed(speed,0,0); |
i | 1546 | drivers/block/sbpcd.c | return (i); |
i | 1551 | drivers/block/sbpcd.c | int i; |
i | 1553 | drivers/block/sbpcd.c | i=xy_DriveReset(); |
i | 1554 | drivers/block/sbpcd.c | if (i<0) return (-2); |
i | 1557 | drivers/block/sbpcd.c | i=GetStatus(); |
i | 1558 | drivers/block/sbpcd.c | if ((i<0)&&(i!=-15)) return (-2); /* i!=-15 is from sta2err */ |
i | 1567 | drivers/block/sbpcd.c | i=DiskInfo(); |
i | 1568 | drivers/block/sbpcd.c | if (i<0) return (-2); |
i | 1575 | drivers/block/sbpcd.c | int i; |
i | 1602 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 1603 | drivers/block/sbpcd.c | return (i); |
i | 1608 | drivers/block/sbpcd.c | int i; |
i | 1633 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 1635 | drivers/block/sbpcd.c | return (i); |
i | 1640 | drivers/block/sbpcd.c | int i; |
i | 1666 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 1668 | drivers/block/sbpcd.c | return (i); |
i | 1673 | drivers/block/sbpcd.c | int i,j; |
i | 1703 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 1704 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1706 | drivers/block/sbpcd.c | for (i=0;i<response_count;i++) |
i | 1708 | drivers/block/sbpcd.c | DPRINTF((DBG_SQ," %02X", infobuf[i])); |
i | 1722 | drivers/block/sbpcd.c | i=4; |
i | 1723 | drivers/block/sbpcd.c | if (fam0L_drive) i=5; |
i | 1724 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_run_tot=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */ |
i | 1725 | drivers/block/sbpcd.c | i=7; |
i | 1726 | drivers/block/sbpcd.c | if (fam0L_drive) i=9; |
i | 1727 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_run_trk=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */ |
i | 1728 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_whatisthis=infobuf[i+3]; |
i | 1735 | drivers/block/sbpcd.c | int i; |
i | 1755 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 1756 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1757 | drivers/block/sbpcd.c | i=0; |
i | 1758 | drivers/block/sbpcd.c | if (fam1_drive) DriveStruct[d].sense_byte=infobuf[i++]; |
i | 1760 | drivers/block/sbpcd.c | DriveStruct[d].frame_size=make16(infobuf[i],infobuf[i+1]); |
i | 1763 | drivers/block/sbpcd.c | for (i=0;i<(fam1_drive?5:2);i++) |
i | 1765 | drivers/block/sbpcd.c | DPRINTF((DBG_XA,"%02X ", infobuf[i])); |
i | 1776 | drivers/block/sbpcd.c | int i; |
i | 1810 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 1811 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1819 | drivers/block/sbpcd.c | int i; |
i | 1849 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 1850 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1931 | drivers/block/sbpcd.c | int i; |
i | 1957 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 1958 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 1968 | drivers/block/sbpcd.c | int i; |
i | 1998 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 1999 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2026 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 2027 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2039 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 2040 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2063 | drivers/block/sbpcd.c | int i; |
i | 2091 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 2092 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2093 | drivers/block/sbpcd.c | if (fam2_drive) i=0; |
i | 2097 | drivers/block/sbpcd.c | i=1; |
i | 2099 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_ctl_adr=swap_nibbles(infobuf[i++]); |
i | 2102 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_number=infobuf[i++]; |
i | 2103 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_format=infobuf[i]; |
i | 2105 | drivers/block/sbpcd.c | if (fam1_drive) i=4; |
i | 2106 | drivers/block/sbpcd.c | else if (fam0L_drive) i=5; |
i | 2107 | drivers/block/sbpcd.c | else if (fam2_drive) i=2; |
i | 2108 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_address=make32(make16(0,infobuf[i]), |
i | 2109 | drivers/block/sbpcd.c | make16(infobuf[i+1],infobuf[i+2])); |
i | 2119 | drivers/block/sbpcd.c | int i; |
i | 2129 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 2130 | drivers/block/sbpcd.c | return (i); |
i | 2135 | drivers/block/sbpcd.c | int i; |
i | 2139 | drivers/block/sbpcd.c | for (i=0;i<7;i++) |
i | 2141 | drivers/block/sbpcd.c | if (fam1_drive) DriveStruct[d].UPC_buf[i]=swap_nibbles(*p++); |
i | 2144 | drivers/block/sbpcd.c | DriveStruct[d].UPC_buf[i]=((*p++)<<4)&0xFF; |
i | 2145 | drivers/block/sbpcd.c | DriveStruct[d].UPC_buf[i] |= *p++; |
i | 2158 | drivers/block/sbpcd.c | int i; |
i | 2197 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 2198 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2203 | drivers/block/sbpcd.c | i=xx_ReadPacket(); |
i | 2204 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2210 | drivers/block/sbpcd.c | for (i=0;i<(fam1_drive?8:16);i++) |
i | 2213 | drivers/block/sbpcd.c | checksum |= infobuf[i]; |
i | 2215 | drivers/block/sbpcd.c | DPRINTF((DBG_UPC,"%02X ", infobuf[i])); |
i | 2223 | drivers/block/sbpcd.c | if (fam1_drive) i=0; |
i | 2224 | drivers/block/sbpcd.c | else i=2; |
i | 2225 | drivers/block/sbpcd.c | if ((infobuf[i]&0x80)!=0) |
i | 2227 | drivers/block/sbpcd.c | convert_UPC(&infobuf[i]); |
i | 2233 | drivers/block/sbpcd.c | for (i=0;i<7;i++) |
i | 2235 | drivers/block/sbpcd.c | DPRINTF((DBG_UPC,"%02X ", DriveStruct[d].UPC_buf[i])); |
i | 2245 | drivers/block/sbpcd.c | int i; |
i | 2257 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 2258 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2277 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 2278 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2298 | drivers/block/sbpcd.c | int i; |
i | 2314 | drivers/block/sbpcd.c | i=cmd_out(7); /* which buffer to use? */ |
i | 2315 | drivers/block/sbpcd.c | return (i); |
i | 2322 | drivers/block/sbpcd.c | int i=0; |
i | 2327 | drivers/block/sbpcd.c | for (i=0;i<=1000;i++) printk("."); |
i | 2339 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 2372 | drivers/block/sbpcd.c | int i; |
i | 2380 | drivers/block/sbpcd.c | i=do_cmd(f_putcmd|f_lopsta|f_getsta|f_ResponseStatus); |
i | 2386 | drivers/block/sbpcd.c | i=do_cmd(f_putcmd); |
i | 2389 | drivers/block/sbpcd.c | return (i); |
i | 2394 | drivers/block/sbpcd.c | int i; |
i | 2402 | drivers/block/sbpcd.c | i=do_cmd(f_putcmd|f_lopsta|f_getsta|f_ResponseStatus); |
i | 2407 | drivers/block/sbpcd.c | i=do_cmd(f_putcmd); |
i | 2410 | drivers/block/sbpcd.c | return (i); |
i | 2418 | drivers/block/sbpcd.c | int i; |
i | 2423 | drivers/block/sbpcd.c | for (i=0;i<12;i++) printk("%02X ",infobuf[i]); |
i | 2425 | drivers/block/sbpcd.c | for (i=0;i<12;i++) printk("%c",infobuf[i]); |
i | 2431 | drivers/block/sbpcd.c | int i, j; |
i | 2442 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 2443 | drivers/block/sbpcd.c | if (i<0) DPRINTF((DBG_INI,"SBPCD: CMD2_READERR returns %d (ok anyway).\n",i)); |
i | 2446 | drivers/block/sbpcd.c | for (i=0;i<12;i++) infobuf[i]=0; |
i | 2456 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 2457 | drivers/block/sbpcd.c | if (i<0) DPRINTF((DBG_INI,"SBPCD: CMD2_READ_VER returns %d\n",i)); |
i | 2458 | drivers/block/sbpcd.c | if (i>=0) /* from CD200 */ |
i | 2460 | drivers/block/sbpcd.c | for (i=0, j=0;i<12;i++) j+=infobuf[i]; |
i | 2464 | drivers/block/sbpcd.c | for (i=0;i<12;i++) DPRINTF((DBG_ID,"%02X ",infobuf[i])); |
i | 2465 | drivers/block/sbpcd.c | for (i=0;i<12;i++) DPRINTF((DBG_ID,"%c",infobuf[i])); |
i | 2468 | drivers/block/sbpcd.c | for (i=0;i<5;i++) if (infobuf[i]!=family2[i]) break; |
i | 2469 | drivers/block/sbpcd.c | if (i==5) |
i | 2476 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[5]=infobuf[i++]; |
i | 2477 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[6]=infobuf[i++]; |
i | 2491 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 2492 | drivers/block/sbpcd.c | if (i<0) DPRINTF((DBG_INI,"SBPCD: CMD0_READERR returns %d (ok anyway).\n",i)); |
i | 2495 | drivers/block/sbpcd.c | for (i=0;i<12;i++) infobuf[i]=0; |
i | 2499 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 2500 | drivers/block/sbpcd.c | if (i<0) DPRINTF((DBG_INI,"SBPCD: CMD0_READ_VER returns %d\n",i)); |
i | 2502 | drivers/block/sbpcd.c | for (i=0, j=0;i<12;i++) j+=infobuf[i]; |
i | 2506 | drivers/block/sbpcd.c | for (i=0;i<12;i++) DPRINTF((DBG_ID,"%02X ",infobuf[i])); |
i | 2507 | drivers/block/sbpcd.c | for (i=0;i<12;i++) DPRINTF((DBG_ID,"%c",infobuf[i])); |
i | 2511 | drivers/block/sbpcd.c | for (i=0;i<4;i++) if (infobuf[i]!=family1[i]) break; |
i | 2512 | drivers/block/sbpcd.c | if (i==4) |
i | 2518 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[4]=infobuf[i++]; |
i | 2519 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[5]=infobuf[i++]; |
i | 2525 | drivers/block/sbpcd.c | for (i=0;i<8;i++) if (infobuf[i]!=family0[i]) break; |
i | 2526 | drivers/block/sbpcd.c | if (i==8) |
i | 2540 | drivers/block/sbpcd.c | for (i=0;i<8;i++) if (infobuf[i]!=familyL[i]) break; |
i | 2541 | drivers/block/sbpcd.c | if (i==8) |
i | 2555 | drivers/block/sbpcd.c | for (j=0;j<4;j++) DriveStruct[d].firmware_version[j]=infobuf[i+j]; |
i | 2558 | drivers/block/sbpcd.c | for (i=0;i<2;i++) |
i | 2561 | drivers/block/sbpcd.c | if (DriveStruct[d].firmware_version[j]!=lcs_firm[i][j]) break; |
i | 2603 | drivers/block/sbpcd.c | static int switch_drive(int i) |
i | 2605 | drivers/block/sbpcd.c | d=i; |
i | 2609 | drivers/block/sbpcd.c | DPRINTF((DBG_DID,"SBPCD: drive %d (ID=%d) activated.\n", i, DriveStruct[d].drv_id)); |
i | 2620 | drivers/block/sbpcd.c | int i, j; |
i | 2633 | drivers/block/sbpcd.c | i=check_version(); |
i | 2634 | drivers/block/sbpcd.c | if (i<0) DPRINTF((DBG_INI,"SBPCD: check_version returns %d.\n",i)); |
i | 2656 | drivers/block/sbpcd.c | int i; |
i | 2657 | drivers/block/sbpcd.c | for (i=0; i<65500; i++); |
i | 2785 | drivers/block/sbpcd.c | int i; |
i | 2787 | drivers/block/sbpcd.c | i=msf2blk(DriveStruct[d].pos_audio_end)-1; |
i | 2788 | drivers/block/sbpcd.c | if (i<0) return (-1); |
i | 2789 | drivers/block/sbpcd.c | i=xx_Seek(i,0); |
i | 2790 | drivers/block/sbpcd.c | return (i); |
i | 2795 | drivers/block/sbpcd.c | int i, j; |
i | 2800 | drivers/block/sbpcd.c | i=xx_ReadTocEntry(j); |
i | 2801 | drivers/block/sbpcd.c | if (i<0) return (i); |
i | 2822 | drivers/block/sbpcd.c | int i, j; |
i | 2831 | drivers/block/sbpcd.c | i=SetSpeed(); |
i | 2832 | drivers/block/sbpcd.c | if (i<0) |
i | 2834 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: DiskInfo: SetSpeed returns %d\n", i)); |
i | 2837 | drivers/block/sbpcd.c | i=xx_ModeSense(); |
i | 2838 | drivers/block/sbpcd.c | if (i<0) |
i | 2840 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: DiskInfo: xx_ModeSense returns %d\n", i)); |
i | 2843 | drivers/block/sbpcd.c | i=xx_ReadCapacity(); |
i | 2844 | drivers/block/sbpcd.c | if (i>=0) break; |
i | 2845 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: DiskInfo: ReadCapacity #%d returns %d\n", j, i)); |
i | 2846 | drivers/block/sbpcd.c | i=DriveReset(); |
i | 2850 | drivers/block/sbpcd.c | i=xx_ReadTocDescr(); |
i | 2851 | drivers/block/sbpcd.c | if (i<0) |
i | 2853 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: DiskInfo: ReadTocDescr returns %d\n", i)); |
i | 2854 | drivers/block/sbpcd.c | return (i); |
i | 2856 | drivers/block/sbpcd.c | i=ReadToC(); |
i | 2857 | drivers/block/sbpcd.c | if (i<0) |
i | 2859 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: DiskInfo: ReadToC returns %d\n", i)); |
i | 2860 | drivers/block/sbpcd.c | return (i); |
i | 2862 | drivers/block/sbpcd.c | i=yy_CheckMultiSession(); |
i | 2863 | drivers/block/sbpcd.c | if (i<0) |
i | 2865 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: DiskInfo: yy_CheckMultiSession returns %d\n", i)); |
i | 2866 | drivers/block/sbpcd.c | return (i); |
i | 2868 | drivers/block/sbpcd.c | i=xx_ReadTocEntry(DriveStruct[d].n_first_track); |
i | 2869 | drivers/block/sbpcd.c | if (i<0) |
i | 2871 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: DiskInfo: xx_ReadTocEntry(1) returns %d\n", i)); |
i | 2872 | drivers/block/sbpcd.c | return (i); |
i | 2874 | drivers/block/sbpcd.c | i=xx_ReadUPC(); |
i | 2875 | drivers/block/sbpcd.c | if (i<0) |
i | 2877 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: DiskInfo: xx_ReadUPC returns %d\n", i)); |
i | 2878 | drivers/block/sbpcd.c | return (i); |
i | 2897 | drivers/block/sbpcd.c | int i; |
i | 2901 | drivers/block/sbpcd.c | i=inb(CDi_status); |
i | 2902 | drivers/block/sbpcd.c | if (i&s_attention) GetStatus(); |
i | 2915 | drivers/block/sbpcd.c | i=check_allowed1(func,subfunc); |
i | 2916 | drivers/block/sbpcd.c | if (i<0) return (-2); |
i | 2920 | drivers/block/sbpcd.c | i=check_allowed3(func,subfunc); |
i | 2921 | drivers/block/sbpcd.c | if (i<0) |
i | 2937 | drivers/block/sbpcd.c | i=check_allowed1(func,subfunc); |
i | 2938 | drivers/block/sbpcd.c | if (i<0) return (-2); |
i | 2946 | drivers/block/sbpcd.c | i=check_allowed2(func,subfunc); |
i | 2947 | drivers/block/sbpcd.c | if (i<0) return (-2); |
i | 2957 | drivers/block/sbpcd.c | i=DiskInfo(); |
i | 2958 | drivers/block/sbpcd.c | if (i<0) |
i | 2965 | drivers/block/sbpcd.c | i=check_allowed1(func,subfunc); |
i | 2966 | drivers/block/sbpcd.c | if (i<0) return (-2); |
i | 2976 | drivers/block/sbpcd.c | int i, n; |
i | 2983 | drivers/block/sbpcd.c | i=msf2blk(pos_audio_start); |
i | 2984 | drivers/block/sbpcd.c | n=msf2blk(pos_audio_end)+1-i; |
i | 2985 | drivers/block/sbpcd.c | drvcmd[1]=(i>>16)&0x00FF; |
i | 2986 | drivers/block/sbpcd.c | drvcmd[2]=(i>>8)&0x00FF; |
i | 2987 | drivers/block/sbpcd.c | drvcmd[3]=i&0x00FF; |
i | 3021 | drivers/block/sbpcd.c | i=cmd_out(7); |
i | 3022 | drivers/block/sbpcd.c | return (i); |
i | 3080 | drivers/block/sbpcd.c | int i, st; |
i | 3085 | drivers/block/sbpcd.c | i=MINOR(inode->i_rdev); |
i | 3086 | drivers/block/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (DriveStruct[i].drv_id==-1)) |
i | 3091 | drivers/block/sbpcd.c | switch_drive(i); |
i | 3098 | drivers/block/sbpcd.c | i=DiskInfo(); |
i | 3099 | drivers/block/sbpcd.c | if (i<0) return (-EIO); /* error reading TOC */ |
i | 3102 | drivers/block/sbpcd.c | DPRINTF((DBG_IO2,"SBPCD: ioctl: device %d, request %04X\n",i,cmd)); |
i | 3107 | drivers/block/sbpcd.c | i = verify_area(VERIFY_READ, (int *) arg, sizeof(int)); |
i | 3108 | drivers/block/sbpcd.c | if (i>=0) i=sbpcd_dbg_ioctl(arg,1); |
i | 3109 | drivers/block/sbpcd.c | return (i); |
i | 3120 | drivers/block/sbpcd.c | if (famL_drive) i=xx_ReadSubQ(); |
i | 3121 | drivers/block/sbpcd.c | else i=xx_Pause_Resume(1); |
i | 3122 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3123 | drivers/block/sbpcd.c | if (famL_drive) i=xx_Pause_Resume(1); |
i | 3124 | drivers/block/sbpcd.c | else i=xx_ReadSubQ(); |
i | 3125 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3130 | drivers/block/sbpcd.c | i=xx_Seek(DriveStruct[d].pos_audio_start,1); |
i | 3131 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3144 | drivers/block/sbpcd.c | i=xx_PlayAudio(DriveStruct[d].pos_audio_start, |
i | 3146 | drivers/block/sbpcd.c | else i=xx_Pause_Resume(3); |
i | 3147 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3155 | drivers/block/sbpcd.c | i=xx_Pause_Resume(1); |
i | 3156 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3157 | drivers/block/sbpcd.c | i=xx_ReadSubQ(); |
i | 3158 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3160 | drivers/block/sbpcd.c | i=xx_Seek(DriveStruct[d].pos_audio_start,1); |
i | 3174 | drivers/block/sbpcd.c | i=xx_PlayAudio(DriveStruct[d].pos_audio_start,DriveStruct[d].pos_audio_end); |
i | 3175 | drivers/block/sbpcd.c | DPRINTF((DBG_IOC,"SBPCD: ioctl: xx_PlayAudio returns %d\n",i)); |
i | 3177 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3205 | drivers/block/sbpcd.c | i=xx_PlayAudio(DriveStruct[d].pos_audio_start,DriveStruct[d].pos_audio_end); |
i | 3207 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3226 | drivers/block/sbpcd.c | i=tocentry.cdte_track; |
i | 3227 | drivers/block/sbpcd.c | if (i==CDROM_LEADOUT) i=DriveStruct[d].n_last_track+1; |
i | 3228 | drivers/block/sbpcd.c | else if (i<DriveStruct[d].n_first_track||i>DriveStruct[d].n_last_track) return (-EINVAL); |
i | 3229 | drivers/block/sbpcd.c | tocentry.cdte_adr=DriveStruct[d].TocBuffer[i].ctl_adr&0x0F; |
i | 3230 | drivers/block/sbpcd.c | tocentry.cdte_ctrl=(DriveStruct[d].TocBuffer[i].ctl_adr>>4)&0x0F; |
i | 3231 | drivers/block/sbpcd.c | tocentry.cdte_datamode=DriveStruct[d].TocBuffer[i].format; |
i | 3233 | drivers/block/sbpcd.c | { tocentry.cdte_addr.msf.minute=(DriveStruct[d].TocBuffer[i].address>>16)&0x00FF; |
i | 3234 | drivers/block/sbpcd.c | tocentry.cdte_addr.msf.second=(DriveStruct[d].TocBuffer[i].address>>8)&0x00FF; |
i | 3235 | drivers/block/sbpcd.c | tocentry.cdte_addr.msf.frame=DriveStruct[d].TocBuffer[i].address&0x00FF; |
i | 3238 | drivers/block/sbpcd.c | tocentry.cdte_addr.lba=msf2blk(DriveStruct[d].TocBuffer[i].address); |
i | 3247 | drivers/block/sbpcd.c | i=xx_Pause_Resume(1); |
i | 3260 | drivers/block/sbpcd.c | do i=yy_LockDoor(0); |
i | 3261 | drivers/block/sbpcd.c | while (i!=0); |
i | 3263 | drivers/block/sbpcd.c | i=yy_SpinDown(); |
i | 3264 | drivers/block/sbpcd.c | DPRINTF((DBG_IOX,"SBPCD: ioctl: yy_SpinDown returned %d.\n", i)); |
i | 3265 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3286 | drivers/block/sbpcd.c | i=xx_SetVolume(); |
i | 3291 | drivers/block/sbpcd.c | if ((st_spinning)||(!subq_valid)) { i=xx_ReadSubQ(); |
i | 3292 | drivers/block/sbpcd.c | if (i<0) return (-EIO); |
i | 3351 | drivers/block/sbpcd.c | int i=0, j=0, frame, block; |
i | 3366 | drivers/block/sbpcd.c | i=verify_area(VERIFY_READ, (void *) arg, sizeof(struct cdrom_read_audio)); |
i | 3367 | drivers/block/sbpcd.c | if (i) return (i); |
i | 3370 | drivers/block/sbpcd.c | i=verify_area(VERIFY_WRITE, read_audio.buf, |
i | 3372 | drivers/block/sbpcd.c | if (i) return (i); |
i | 3379 | drivers/block/sbpcd.c | i=yy_SetSpeed(speed_150,0,0); |
i | 3380 | drivers/block/sbpcd.c | if (i) DPRINTF((DBG_AUD,"SBPCD: read_audio: SetSpeed error %d\n", i)); |
i | 3432 | drivers/block/sbpcd.c | for (i=0;i<7;i++) OUT(CDo_command,drvcmd[i]); |
i | 3485 | drivers/block/sbpcd.c | i=DriveReset(); /* ugly fix to prevent a hang */ |
i | 3487 | drivers/block/sbpcd.c | i=xx_ReadError(); |
i | 3493 | drivers/block/sbpcd.c | i=maxtim_data; |
i | 3496 | drivers/block/sbpcd.c | for ( ;i!=0;i--) |
i | 3503 | drivers/block/sbpcd.c | if (i != 0 || timeout <= jiffies) break; |
i | 3505 | drivers/block/sbpcd.c | i = 1; |
i | 3507 | drivers/block/sbpcd.c | if (i==0) { DPRINTF((DBG_AUD,"SBPCD: read_audio: STATUS TIMEOUT AFTER READ")); } |
i | 3511 | drivers/block/sbpcd.c | i=DriveReset(); /* ugly fix to prevent a hang */ |
i | 3518 | drivers/block/sbpcd.c | i=ResponseStatus(); /* builds status_byte, returns orig. status (old) or faked p_success_old (new) */ |
i | 3519 | drivers/block/sbpcd.c | if (i<0) { DPRINTF((DBG_AUD, |
i | 3525 | drivers/block/sbpcd.c | while ((fam0L_drive)&&(!st_check)&&(!(i&p_success_old))); |
i | 3528 | drivers/block/sbpcd.c | i=xx_ReadError(); |
i | 3529 | drivers/block/sbpcd.c | DPRINTF((DBG_AUD,"SBPCD: read_audio: xx_ReadError was necessary after read: %02X\n",i)); |
i | 3609 | drivers/block/sbpcd.c | int i, status_tries, data_tries; |
i | 3622 | drivers/block/sbpcd.c | i = MINOR(CURRENT->dev); |
i | 3623 | drivers/block/sbpcd.c | if ( (i<0) || (i>=NR_SBPCD) || (DriveStruct[i].drv_id==-1)) |
i | 3628 | drivers/block/sbpcd.c | switch_drive(i); |
i | 3646 | drivers/block/sbpcd.c | i=prepare(0,0); /* at moment not really a hassle check, but ... */ |
i | 3647 | drivers/block/sbpcd.c | if (i!=0) |
i | 3648 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: \"prepare\" tells error %d -- ignored\n", i)); |
i | 3701 | drivers/block/sbpcd.c | int i; |
i | 3779 | drivers/block/sbpcd.c | for (i=0;i<7;i++) OUT(CDo_command,drvcmd[i]); |
i | 3791 | drivers/block/sbpcd.c | int i=0, j=0, frame; |
i | 3873 | drivers/block/sbpcd.c | i=DriveReset(); /* ugly fix to prevent a hang */ |
i | 3875 | drivers/block/sbpcd.c | i=xx_ReadError(); |
i | 3883 | drivers/block/sbpcd.c | i=maxtim_data; |
i | 3886 | drivers/block/sbpcd.c | for ( ;i!=0;i--) |
i | 3893 | drivers/block/sbpcd.c | if (i != 0 || timeout <= jiffies) break; |
i | 3895 | drivers/block/sbpcd.c | i = 1; |
i | 3897 | drivers/block/sbpcd.c | if (i==0) { DPRINTF((DBG_INF,"SBPCD: STATUS TIMEOUT AFTER READ")); } |
i | 3901 | drivers/block/sbpcd.c | i=DriveReset(); /* ugly fix to prevent a hang */ |
i | 3911 | drivers/block/sbpcd.c | i=ResponseStatus(); /* builds status_byte, returns orig. status (old) or faked p_success_old (new) */ |
i | 3912 | drivers/block/sbpcd.c | if (i<0) { DPRINTF((DBG_INF,"SBPCD: xx_ReadStatus error after read: %02X\n", |
i | 3917 | drivers/block/sbpcd.c | while ((fam0L_drive)&&(!st_check)&&(!(i&p_success_old))); |
i | 3920 | drivers/block/sbpcd.c | i=xx_ReadError(); |
i | 3921 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: xx_ReadError was necessary after read: %02X\n",i)); |
i | 3937 | drivers/block/sbpcd.c | int i; |
i | 3939 | drivers/block/sbpcd.c | i = MINOR(ip->i_rdev); |
i | 3940 | drivers/block/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (DriveStruct[i].drv_id==-1)) |
i | 3948 | drivers/block/sbpcd.c | switch_drive(i); |
i | 3952 | drivers/block/sbpcd.c | i=ResponseStatus(); |
i | 3958 | drivers/block/sbpcd.c | i=ResponseStatus(); |
i | 3965 | drivers/block/sbpcd.c | i=ResponseStatus(); |
i | 3967 | drivers/block/sbpcd.c | if (i<0) |
i | 3978 | drivers/block/sbpcd.c | i=yy_LockDoor(0); |
i | 3979 | drivers/block/sbpcd.c | while (i!=0); |
i | 3993 | drivers/block/sbpcd.c | i=yy_LockDoor(1); |
i | 3994 | drivers/block/sbpcd.c | while (i!=0); |
i | 3998 | drivers/block/sbpcd.c | i=DiskInfo(); |
i | 4009 | drivers/block/sbpcd.c | int i; |
i | 4011 | drivers/block/sbpcd.c | i = MINOR(ip->i_rdev); |
i | 4012 | drivers/block/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (DriveStruct[i].drv_id==-1)) |
i | 4017 | drivers/block/sbpcd.c | switch_drive(i); |
i | 4034 | drivers/block/sbpcd.c | i=yy_LockDoor(0); |
i | 4035 | drivers/block/sbpcd.c | while (i!=0); |
i | 4127 | drivers/block/sbpcd.c | int i; |
i | 4133 | drivers/block/sbpcd.c | i=inb(SPEA_REG_1); |
i | 4134 | drivers/block/sbpcd.c | if (i!=0x0F) |
i | 4156 | drivers/block/sbpcd.c | i=(inb(SPEA_REG_2)&0xCF)|n_ports; |
i | 4157 | drivers/block/sbpcd.c | OUT(SPEA_REG_2,i); |
i | 4174 | drivers/block/sbpcd.c | int i=0, j=0; |
i | 4223 | drivers/block/sbpcd.c | i=config_spea(); |
i | 4224 | drivers/block/sbpcd.c | if (i<0) |
i | 4230 | drivers/block/sbpcd.c | i=check_drives(); |
i | 4232 | drivers/block/sbpcd.c | if (i>=0) break; /* drive found */ |
i | 4291 | drivers/block/sbpcd.c | i=ResponseStatus(); /* returns orig. status or p_busy_new */ |
i | 4292 | drivers/block/sbpcd.c | if (i<0) |
i | 4293 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: init: ResponseStatus returns %02X\n",i)); |
i | 4298 | drivers/block/sbpcd.c | i=xx_ReadError(); |
i | 4299 | drivers/block/sbpcd.c | DPRINTF((DBG_INI,"SBPCD: init: xx_ReadError returns %d\n",i)); |
i | 4302 | drivers/block/sbpcd.c | DPRINTF((DBG_INI,"SBPCD: init: first GetStatus: %d\n",i)); |
i | 4307 | drivers/block/sbpcd.c | do { i=GetStatus(); |
i | 4308 | drivers/block/sbpcd.c | DPRINTF((DBG_INI,"SBPCD: init: second GetStatus: %02X\n",i)); |
i | 4312 | drivers/block/sbpcd.c | if (i<0) break; |
i | 4317 | drivers/block/sbpcd.c | i=SetSpeed(); |
i | 4318 | drivers/block/sbpcd.c | if (i>=0) DriveStruct[d].CD_changed=1; |
i | 4436 | drivers/block/sbpcd.c | int i, st; |
i | 4441 | drivers/block/sbpcd.c | i=MINOR(full_dev); |
i | 4442 | drivers/block/sbpcd.c | if ( (i<0) || (i>=NR_SBPCD) || (DriveStruct[i].drv_id==-1) ) |
i | 4448 | drivers/block/sbpcd.c | switch_drive(i); |
i | 535 | drivers/block/sonycd535.c | int i; |
i | 538 | drivers/block/sonycd535.c | for (i = 0; i < n_cmd; i++) |
i | 539 | drivers/block/sonycd535.c | outb(cmd[i], command_reg); |
i | 561 | drivers/block/sonycd535.c | for (i = 0; 0 < n_response; n_response--, i++) |
i | 562 | drivers/block/sonycd535.c | if (read_result_reg(response + i) != 0) |
i | 607 | drivers/block/sonycd535.c | int i; |
i | 624 | drivers/block/sonycd535.c | for (i = 0; i < 6; i++) |
i | 625 | drivers/block/sonycd535.c | cmd_buff[i + 1] = params[i]; |
i | 626 | drivers/block/sonycd535.c | for (i = 0; i < 7; i++) |
i | 627 | drivers/block/sonycd535.c | outb(cmd_buff[i], command_reg); |
i | 644 | drivers/block/sonycd535.c | for (i = 0; i < block_size; i++) |
i | 655 | drivers/block/sonycd535.c | if ((i = read_exec_status(status)) != 0) |
i | 656 | drivers/block/sonycd535.c | return i; |
i | 674 | drivers/block/sonycd535.c | int i, j, n_tracks, track_no; |
i | 689 | drivers/block/sonycd535.c | for (i = 0; i < n_tracks; i++) { |
i | 698 | drivers/block/sonycd535.c | memcpy(toc->tracks + i, track_address_buffer, 5); |
i | 962 | drivers/block/sonycd535.c | int i; |
i | 968 | drivers/block/sonycd535.c | for (i = 0; i < num_tracks; i++) { |
i | 969 | drivers/block/sonycd535.c | if (sony_toc->tracks[i].track == track) { |
i | 970 | drivers/block/sonycd535.c | return i; |
i | 1082 | drivers/block/sonycd535.c | int i, dsc_status; |
i | 1179 | drivers/block/sonycd535.c | for (i = 0; i < 3; i++) { |
i | 1180 | drivers/block/sonycd535.c | cmd_buff[2 + i] = int_to_bcd(params[i]); |
i | 1181 | drivers/block/sonycd535.c | cmd_buff[7 + i] = int_to_bcd(params[i + 3]); |
i | 1492 | drivers/block/sonycd535.c | int i; |
i | 1621 | drivers/block/sonycd535.c | for (i = 0; i < sony_buffer_sectors; i++) |
i | 1622 | drivers/block/sonycd535.c | sony_buffer[i] = (Byte *)kmalloc(2048, GFP_KERNEL); |
i | 1676 | drivers/block/sonycd535.c | int i; |
i | 1682 | drivers/block/sonycd535.c | for (i = 0; i < sony_buffer_sectors; i++) |
i | 1683 | drivers/block/sonycd535.c | kfree_s(sony_buffer[i], 2048); |
i | 135 | drivers/block/xd.c | u_char i,j,found = 0; |
i | 144 | drivers/block/xd.c | for (i = 0; i < (sizeof(xd_bases) / sizeof(xd_bases[0])) && !found; i++) |
i | 146 | drivers/block/xd.c | if (!memcmp(xd_bases[i] + xd_sigs[j].offset,xd_sigs[j].string,strlen(xd_sigs[j].string))) { |
i | 148 | drivers/block/xd.c | *address = xd_bases[i]; |
i | 158 | drivers/block/xd.c | u_char i,controller,*address; |
i | 168 | drivers/block/xd.c | for (i = 0; i < xd_drives; i++) |
i | 169 | drivers/block/xd.c | printk("xd_geninit: drive %d geometry - heads = %d, cylinders = %d, sectors = %d\n",i,xd_info[i].heads,xd_info[i].cylinders,xd_info[i].sectors); |
i | 181 | drivers/block/xd.c | for (i = 0; i < xd_drives; i++) { |
i | 182 | drivers/block/xd.c | xd[i << 6].nr_sects = xd_info[i].heads * xd_info[i].cylinders * xd_info[i].sectors; |
i | 183 | drivers/block/xd.c | xd_valid[i] = 1; |
i | 188 | drivers/block/xd.c | for(i=0;i<(XD_MAXDRIVES << 6);i++) xd_blocksizes[i] = 1024; |
i | 511 | drivers/block/xd.c | u_char cmdblk[6],i,count = 0; |
i | 513 | drivers/block/xd.c | for (i = 0; i < XD_MAXDRIVES; i++) { |
i | 514 | drivers/block/xd.c | xd_build(cmdblk,CMD_TESTREADY,i,0,0,0,0,0); |
i | 669 | drivers/block/xd.c | u_char cmdblk[6],i; |
i | 671 | drivers/block/xd.c | for (i = 0; i < 3; i++) { |
i | 672 | drivers/block/xd.c | while (min[i] != max[i] - 1) { |
i | 673 | drivers/block/xd.c | test[i] = (min[i] + max[i]) / 2; |
i | 676 | drivers/block/xd.c | min[i] = test[i]; |
i | 678 | drivers/block/xd.c | max[i] = test[i]; |
i | 680 | drivers/block/xd.c | test[i] = min[i]; |
i | 123 | drivers/char/atixlmouse.c | int i; |
i | 142 | drivers/char/atixlmouse.c | for(i = 3; i < count; i++) |
i | 143 | drivers/char/atixlmouse.c | put_fs_byte(0x00, buffer + i); |
i | 149 | drivers/char/atixlmouse.c | return i; /* i data bytes returned */ |
i | 219 | drivers/char/busmouse.c | int i; |
i | 223 | drivers/char/busmouse.c | for (i = 0; i < 100000; i++) |
i | 314 | drivers/char/console.c | int vc_cons_allocated(unsigned int i) |
i | 316 | drivers/char/console.c | return (i < MAX_NR_CONSOLES && vc_cons[i].d); |
i | 319 | drivers/char/console.c | int vc_allocate(unsigned int i) /* return 0 on success */ |
i | 321 | drivers/char/console.c | if (i >= MAX_NR_CONSOLES) |
i | 323 | drivers/char/console.c | if (!vc_cons[i].d) { |
i | 327 | drivers/char/console.c | if (i >= MAX_NR_USER_CONSOLES && !suser()) |
i | 342 | drivers/char/console.c | vc_cons[i].d = (struct vc_data *) p; |
i | 344 | drivers/char/console.c | vt_cons[i] = (struct vt_struct *) p; |
i | 345 | drivers/char/console.c | vc_scrbuf[i] = (unsigned short *) q; |
i | 346 | drivers/char/console.c | vc_cons[i].d->vc_kmalloced = 1; |
i | 347 | drivers/char/console.c | vc_cons[i].d->vc_screenbuf_size = video_screen_size; |
i | 348 | drivers/char/console.c | vc_init (i, video_num_lines, video_num_columns, 1); |
i | 363 | drivers/char/console.c | unsigned int currcons, i; |
i | 387 | drivers/char/console.c | for (i = 0; i< currcons; i++) |
i | 388 | drivers/char/console.c | if (newscreens[i]) |
i | 389 | drivers/char/console.c | kfree_s(newscreens[i], ss); |
i | 845 | drivers/char/console.c | int i; |
i | 847 | drivers/char/console.c | for (i=0;i<=npar;i++) |
i | 848 | drivers/char/console.c | switch (par[i]) { |
i | 927 | drivers/char/console.c | if (par[i] >= 30 && par[i] <= 37) |
i | 928 | drivers/char/console.c | color = color_table[par[i]-30] |
i | 930 | drivers/char/console.c | else if (par[i] >= 40 && par[i] <= 47) |
i | 931 | drivers/char/console.c | color = (color_table[par[i]-40]<<4) |
i | 1055 | drivers/char/console.c | int i; |
i | 1057 | drivers/char/console.c | for (i=0; i<=npar; i++) |
i | 1058 | drivers/char/console.c | if (ques) switch(par[i]) { /* DEC private modes set/reset */ |
i | 1103 | drivers/char/console.c | } else switch(par[i]) { /* ANSI modes set/reset */ |
i | 1150 | drivers/char/console.c | unsigned int i = x; |
i | 1154 | drivers/char/console.c | while (i++ < video_num_columns) { |
i | 1171 | drivers/char/console.c | unsigned int i = x; |
i | 1174 | drivers/char/console.c | while (++i < video_num_columns) { |
i | 2010 | drivers/char/console.c | int i; |
i | 2015 | drivers/char/console.c | for ( i = 0 ; i < 12 ; i++ ) |
i | 2017 | drivers/char/console.c | outb_p(i, 0x3b4); |
i | 2018 | drivers/char/console.c | outb_p(herc_txt_tbl[i], 0x3b5); |
i | 2154 | drivers/char/console.c | int i; |
i | 2158 | drivers/char/console.c | i = vc_allocate(idx); |
i | 2159 | drivers/char/console.c | if (i) |
i | 2160 | drivers/char/console.c | return i; |
i | 2198 | drivers/char/console.c | int i; |
i | 2213 | drivers/char/console.c | i = verify_area(set ? VERIFY_READ : VERIFY_WRITE, (void *)arg, cmapsz); |
i | 2214 | drivers/char/console.c | if (i) |
i | 2215 | drivers/char/console.c | return i; |
i | 2236 | drivers/char/console.c | for (i=0; i<cmapsz ; i++) |
i | 2237 | drivers/char/console.c | *(charmap+i) = get_fs_byte(arg+i); |
i | 2239 | drivers/char/console.c | for (i=0; i<cmapsz ; i++) |
i | 2240 | drivers/char/console.c | put_fs_byte(*(charmap+i), arg+i); |
i | 92 | drivers/char/consolemap.c | static void set_inverse_transl(int i) |
i | 95 | drivers/char/consolemap.c | unsigned char *p = translations[i]; |
i | 96 | drivers/char/consolemap.c | unsigned char *q = inverse_translations[i]; |
i | 100 | drivers/char/consolemap.c | q = inverse_translations[i] = ((i == NORM_MAP) |
i | 138 | drivers/char/consolemap.c | int i; |
i | 141 | drivers/char/consolemap.c | i = verify_area(VERIFY_READ, (void *)arg, E_TABSZ); |
i | 142 | drivers/char/consolemap.c | if (i) |
i | 143 | drivers/char/consolemap.c | return i; |
i | 145 | drivers/char/consolemap.c | for (i=0; i<E_TABSZ ; i++) |
i | 146 | drivers/char/consolemap.c | p[i] = get_fs_byte(arg+i); |
i | 154 | drivers/char/consolemap.c | int i; |
i | 157 | drivers/char/consolemap.c | i = verify_area(VERIFY_WRITE, (void *)arg, E_TABSZ); |
i | 158 | drivers/char/consolemap.c | if (i) |
i | 159 | drivers/char/consolemap.c | return i; |
i | 161 | drivers/char/consolemap.c | for (i=0; i<E_TABSZ ; i++) put_fs_byte(p[i],arg+i); |
i | 197 | drivers/char/consolemap.c | int i; |
i | 214 | drivers/char/consolemap.c | for (i=0; i<hashsize; i++) |
i | 215 | drivers/char/consolemap.c | hashtable[i].unicode = 0xffff; |
i | 221 | drivers/char/consolemap.c | int i, lct; |
i | 229 | drivers/char/consolemap.c | i = u % hashsize; |
i | 231 | drivers/char/consolemap.c | while ((hu = hashtable[i].unicode) != 0xffff && hu != u) { |
i | 234 | drivers/char/consolemap.c | i += hashstep; |
i | 235 | drivers/char/consolemap.c | if (i >= hashsize) |
i | 236 | drivers/char/consolemap.c | i -= hashsize; |
i | 240 | drivers/char/consolemap.c | hashtable[i].unicode = u; |
i | 241 | drivers/char/consolemap.c | hashtable[i].fontpos = get_fs_word(&list->fontpos); |
i | 250 | drivers/char/consolemap.c | int i, ect; |
i | 254 | drivers/char/consolemap.c | for (i = 0; i<hashsize; i++) |
i | 255 | drivers/char/consolemap.c | if (hashtable[i].unicode != 0xffff) { |
i | 257 | drivers/char/consolemap.c | put_fs_word(hashtable[i].unicode, &list->unicode); |
i | 258 | drivers/char/consolemap.c | put_fs_word(hashtable[i].fontpos, &list->fontpos); |
i | 268 | drivers/char/consolemap.c | int i, h; |
i | 278 | drivers/char/consolemap.c | for (i = 0; i < hashlevel; i++) { |
i | 451 | drivers/char/cyclades.c | volatile int i; |
i | 455 | drivers/char/cyclades.c | for(i = 0 ; i < 100 ; i++){ |
i | 463 | drivers/char/cyclades.c | if ( i == 10 ) { |
i | 587 | drivers/char/cyclades.c | int i,j; |
i | 623 | drivers/char/cyclades.c | i = channel + chip * 4 + cinfo->first_line; |
i | 624 | drivers/char/cyclades.c | info = &cy_port[i]; |
i | 739 | drivers/char/cyclades.c | i = channel + chip * 4 + cinfo->first_line; |
i | 744 | drivers/char/cyclades.c | if( (i < 0) || (NR_PORTS <= i) ){ |
i | 748 | drivers/char/cyclades.c | info = &cy_port[i]; |
i | 970 | drivers/char/cyclades.c | int i, mask; |
i | 972 | drivers/char/cyclades.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 974 | drivers/char/cyclades.c | && !request_irq(i, cy_probe, SA_INTERRUPT, "serial probe")) { |
i | 987 | drivers/char/cyclades.c | int i; |
i | 989 | drivers/char/cyclades.c | for (i = 0; i < 16; i++) { |
i | 990 | drivers/char/cyclades.c | if (irq_lines & (1 << i)) |
i | 991 | drivers/char/cyclades.c | free_irq(i); |
i | 1002 | drivers/char/cyclades.c | int i, mask; |
i | 1027 | drivers/char/cyclades.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 1028 | drivers/char/cyclades.c | if ((cy_triggered & (1 << i)) && |
i | 1029 | drivers/char/cyclades.c | (irq_lines & (1 << i))) { |
i | 1297 | drivers/char/cyclades.c | int i; |
i | 1308 | drivers/char/cyclades.c | i = cflag & CBAUD; |
i | 1318 | drivers/char/cyclades.c | if (i & CBAUDEX) { |
i | 1319 | drivers/char/cyclades.c | if (i == B57600) |
i | 1320 | drivers/char/cyclades.c | i = 16; |
i | 1321 | drivers/char/cyclades.c | else if(i == B115200) |
i | 1322 | drivers/char/cyclades.c | i = 18; |
i | 1324 | drivers/char/cyclades.c | else if(i == B78600) |
i | 1325 | drivers/char/cyclades.c | i = 17; |
i | 1331 | drivers/char/cyclades.c | if (i == 15) { |
i | 1333 | drivers/char/cyclades.c | i += 1; |
i | 1335 | drivers/char/cyclades.c | i += 3; |
i | 1337 | drivers/char/cyclades.c | info->tbpr = baud_bpr[i]; /* Tx BPR */ |
i | 1338 | drivers/char/cyclades.c | info->tco = baud_co[i]; /* Tx CO */ |
i | 1339 | drivers/char/cyclades.c | info->rbpr = baud_bpr[i]; /* Rx BPR */ |
i | 1340 | drivers/char/cyclades.c | info->rco = baud_co[i]; /* Rx CO */ |
i | 1341 | drivers/char/cyclades.c | if (baud_table[i] == 134) { |
i | 1344 | drivers/char/cyclades.c | } else if (baud_table[i]) { |
i | 1345 | drivers/char/cyclades.c | info->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2; |
i | 1359 | drivers/char/cyclades.c | : baud_cor3[i]); /* receive threshold */ |
i | 1448 | drivers/char/cyclades.c | if(i == 0){ /* baud rate is zero, turn off line */ |
i | 167 | drivers/char/keyboard.c | int i; |
i | 169 | drivers/char/keyboard.c | for (i=0; i<0x100000; i++) |
i | 673 | drivers/char/keyboard.c | int i; |
i | 675 | drivers/char/keyboard.c | for (i = fg_console-1; i != fg_console; i--) { |
i | 676 | drivers/char/keyboard.c | if (i == -1) |
i | 677 | drivers/char/keyboard.c | i = MAX_NR_CONSOLES-1; |
i | 678 | drivers/char/keyboard.c | if (vc_cons_allocated(i)) |
i | 681 | drivers/char/keyboard.c | want_console = i; |
i | 686 | drivers/char/keyboard.c | int i; |
i | 688 | drivers/char/keyboard.c | for (i = fg_console+1; i != fg_console; i++) { |
i | 689 | drivers/char/keyboard.c | if (i == MAX_NR_CONSOLES) |
i | 690 | drivers/char/keyboard.c | i = 0; |
i | 691 | drivers/char/keyboard.c | if (vc_cons_allocated(i)) |
i | 694 | drivers/char/keyboard.c | want_console = i; |
i | 824 | drivers/char/keyboard.c | int i; |
i | 830 | drivers/char/keyboard.c | for (i = 0; i < accent_table_size; i++) { |
i | 831 | drivers/char/keyboard.c | if (accent_table[i].diacr == d && accent_table[i].base == ch) |
i | 832 | drivers/char/keyboard.c | return accent_table[i].result; |
i | 966 | drivers/char/keyboard.c | int i, j, k, sym, val; |
i | 969 | drivers/char/keyboard.c | for(i=0; i < SIZE(k_down); i++) |
i | 970 | drivers/char/keyboard.c | k_down[i] = 0; |
i | 972 | drivers/char/keyboard.c | for(i=0; i < SIZE(key_down); i++) |
i | 973 | drivers/char/keyboard.c | if(key_down[i]) { /* skip this word if not a single bit on */ |
i | 974 | drivers/char/keyboard.c | k = i*BITS_PER_LONG; |
i | 1036 | drivers/char/keyboard.c | int i; |
i | 1044 | drivers/char/keyboard.c | for(i=0; i<0x200000; i++) { |
i | 1167 | drivers/char/keyboard.c | int i; |
i | 1177 | drivers/char/keyboard.c | for (i = 0 ; i < MAX_NR_CONSOLES ; i++) |
i | 1178 | drivers/char/keyboard.c | kbd_table[i] = kbd0; |
i | 125 | drivers/char/mem.c | unsigned int i = file->f_pos; |
i | 128 | drivers/char/mem.c | while (count-- > 0 && i < 65536) { |
i | 129 | drivers/char/mem.c | put_fs_byte(inb(i),tmp); |
i | 130 | drivers/char/mem.c | i++; |
i | 133 | drivers/char/mem.c | file->f_pos = i; |
i | 139 | drivers/char/mem.c | unsigned int i = file->f_pos; |
i | 142 | drivers/char/mem.c | while (count-- > 0 && i < 65536) { |
i | 143 | drivers/char/mem.c | outb(get_fs_byte(tmp),i); |
i | 144 | drivers/char/mem.c | i++; |
i | 147 | drivers/char/mem.c | file->f_pos = i; |
i | 106 | drivers/char/msbusmouse.c | int i, dx, dy; |
i | 117 | drivers/char/msbusmouse.c | for (i = 3; i < count; i++) |
i | 118 | drivers/char/msbusmouse.c | put_fs_byte(0x00, buffer + i); |
i | 122 | drivers/char/msbusmouse.c | return i; |
i | 149 | drivers/char/msbusmouse.c | int mse_byte, i; |
i | 159 | drivers/char/msbusmouse.c | for (i = 0; i < 4; i++) { |
i | 533 | drivers/char/n_tty.c | int i; |
i | 539 | drivers/char/n_tty.c | i = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt, |
i | 541 | drivers/char/n_tty.c | memcpy(tty->read_buf + tty->read_head, cp, i); |
i | 542 | drivers/char/n_tty.c | tty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1); |
i | 543 | drivers/char/n_tty.c | tty->read_cnt += i; |
i | 544 | drivers/char/n_tty.c | cp += i; |
i | 545 | drivers/char/n_tty.c | count -= i; |
i | 547 | drivers/char/n_tty.c | i = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt, |
i | 549 | drivers/char/n_tty.c | memcpy(tty->read_buf + tty->read_head, cp, i); |
i | 550 | drivers/char/n_tty.c | tty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1); |
i | 551 | drivers/char/n_tty.c | tty->read_cnt += i; |
i | 553 | drivers/char/n_tty.c | for (i=count, p = cp, f = fp; i; i--, p++) { |
i | 337 | drivers/char/psaux.c | int i = count; |
i | 339 | drivers/char/psaux.c | while (i--) { |
i | 359 | drivers/char/psaux.c | int i = count; |
i | 361 | drivers/char/psaux.c | while (i--) { |
i | 379 | drivers/char/psaux.c | int i = count; |
i | 395 | drivers/char/psaux.c | while (i > 0 && !queue_empty()) { |
i | 398 | drivers/char/psaux.c | i--; |
i | 401 | drivers/char/psaux.c | if (count-i) { |
i | 403 | drivers/char/psaux.c | return count-i; |
i | 90 | drivers/char/selection.c | int i = verify_area(VERIFY_READ, (char *) arg, 36); |
i | 91 | drivers/char/selection.c | if (i) |
i | 92 | drivers/char/selection.c | return i; |
i | 117 | drivers/char/selection.c | int i, ps, pe; |
i | 249 | drivers/char/selection.c | for (i = sel_start; i <= sel_end; i += 2) { |
i | 250 | drivers/char/selection.c | *bp = sel_pos(i); |
i | 253 | drivers/char/selection.c | if (! ((i + 2) % video_size_row)) { |
i | 750 | drivers/char/serial.c | unsigned int i; |
i | 753 | drivers/char/serial.c | for (i=1; i < 16; i++) { |
i | 754 | drivers/char/serial.c | info = IRQ_ports[i]; |
i | 765 | drivers/char/serial.c | if (rs_multiport[i].port1) |
i | 766 | drivers/char/serial.c | rs_interrupt_multi(i, NULL); |
i | 768 | drivers/char/serial.c | rs_interrupt(i, NULL); |
i | 770 | drivers/char/serial.c | rs_interrupt_single(i, NULL); |
i | 805 | drivers/char/serial.c | int i, mask; |
i | 807 | drivers/char/serial.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 808 | drivers/char/serial.c | if (!(mask & dontgrab) && !request_irq(i, rs_probe, SA_INTERRUPT, "serial probe")) { |
i | 820 | drivers/char/serial.c | int i; |
i | 822 | drivers/char/serial.c | for (i = 0; i < 16; i++) { |
i | 823 | drivers/char/serial.c | if (irq_lines & (1 << i)) |
i | 824 | drivers/char/serial.c | free_irq(i); |
i | 1101 | drivers/char/serial.c | int i; |
i | 1108 | drivers/char/serial.c | i = cflag & CBAUD; |
i | 1109 | drivers/char/serial.c | if (i & CBAUDEX) { |
i | 1110 | drivers/char/serial.c | i &= ~CBAUDEX; |
i | 1111 | drivers/char/serial.c | if (i < 1 || i > 2) |
i | 1114 | drivers/char/serial.c | i += 15; |
i | 1116 | drivers/char/serial.c | if (i == 15) { |
i | 1118 | drivers/char/serial.c | i += 1; |
i | 1120 | drivers/char/serial.c | i += 2; |
i | 1127 | drivers/char/serial.c | } else if (baud_table[i] == 134) { |
i | 1130 | drivers/char/serial.c | } else if (baud_table[i]) { |
i | 1131 | drivers/char/serial.c | quot = info->baud_base / baud_table[i]; |
i | 1132 | drivers/char/serial.c | info->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2; |
i | 1443 | drivers/char/serial.c | unsigned int i,change_irq,change_port; |
i | 1478 | drivers/char/serial.c | for (i = 0 ; i < NR_PORTS; i++) |
i | 1479 | drivers/char/serial.c | if ((info != &rs_table[i]) && |
i | 1480 | drivers/char/serial.c | (rs_table[i].port == new_serial.port) && |
i | 1481 | drivers/char/serial.c | rs_table[i].type) |
i | 1667 | drivers/char/serial.c | int i, mask; |
i | 1692 | drivers/char/serial.c | for (i = 0, mask = 1; i < 16; i++, mask <<= 1) { |
i | 1693 | drivers/char/serial.c | if ((rs_triggered & (1 << i)) && |
i | 1694 | drivers/char/serial.c | (irq_lines & (1 << i))) { |
i | 1697 | drivers/char/serial.c | printk("Wild interrupt? (IRQ %d)\n", i); |
i | 2536 | drivers/char/serial.c | int i; |
i | 2547 | drivers/char/serial.c | for (i = 0; i < 16; i++) { |
i | 2548 | drivers/char/serial.c | IRQ_ports[i] = 0; |
i | 2549 | drivers/char/serial.c | IRQ_timeout[i] = 0; |
i | 2550 | drivers/char/serial.c | memset(&rs_multiport[i], 0, sizeof(struct rs_multiport_struct)); |
i | 2604 | drivers/char/serial.c | for (i = 0, info = rs_table; i < NR_PORTS; i++,info++) { |
i | 2606 | drivers/char/serial.c | info->line = i; |
i | 2664 | drivers/char/serial.c | int i; |
i | 2670 | drivers/char/serial.c | for (i = 0; i < NR_PORTS; i++) { |
i | 2671 | drivers/char/serial.c | if (rs_table[i].port == req->port) |
i | 2674 | drivers/char/serial.c | if (i == NR_PORTS) { |
i | 2675 | drivers/char/serial.c | for (i = 0; i < NR_PORTS; i++) |
i | 2676 | drivers/char/serial.c | if ((rs_table[i].type == PORT_UNKNOWN) && |
i | 2677 | drivers/char/serial.c | (rs_table[i].count == 0)) |
i | 2680 | drivers/char/serial.c | if (i == NR_PORTS) { |
i | 2684 | drivers/char/serial.c | info = &rs_table[i]; |
i | 2685 | drivers/char/serial.c | if (rs_table[i].count) { |
i | 2688 | drivers/char/serial.c | "device already open\n", i, req->port, req->irq); |
i | 488 | drivers/char/tpqic02.c | int i; |
i | 490 | drivers/char/tpqic02.c | for (i=1; i<NR_OF_EXC; i++) { |
i | 491 | drivers/char/tpqic02.c | if ((s & exception_list[i].mask)==exception_list[i].code) |
i | 492 | drivers/char/tpqic02.c | return i; |
i | 667 | drivers/char/tpqic02.c | int i; |
i | 686 | drivers/char/tpqic02.c | i = TAPE_NOTIFY_TIMEOUT; |
i | 691 | drivers/char/tpqic02.c | while ((inb_p(QIC02_STAT_PORT) & QIC02_STAT_READY) && (--i>0)) |
i | 693 | drivers/char/tpqic02.c | if (i==0) { |
i | 700 | drivers/char/tpqic02.c | i = TAPE_NOTIFY_TIMEOUT; |
i | 702 | drivers/char/tpqic02.c | while (((inb_p(QIC02_STAT_PORT) & QIC02_STAT_READY) == 0) && (--i>0)) |
i | 704 | drivers/char/tpqic02.c | if (i==0) { |
i | 781 | drivers/char/tpqic02.c | int i, stat; |
i | 783 | drivers/char/tpqic02.c | for (i=0; i<size; i++) { |
i | 789 | drivers/char/tpqic02.c | stat = notify_cmd(sb[i], ignore_ex); |
i | 947 | drivers/char/tpqic02.c | int stat, i; |
i | 955 | drivers/char/tpqic02.c | for (i=0; i<sizeof(vus); i++) { |
i | 956 | drivers/char/tpqic02.c | if ( i % 8 == 0 ) |
i | 958 | drivers/char/tpqic02.c | printk(" %2x", vus[i] & 0xff); |
i | 1801 | drivers/char/tpqic02.c | int stat, r, i; |
i | 1850 | drivers/char/tpqic02.c | if ( (i = get_dma_residue(QIC02_TAPE_DMA)) != 0 ) { |
i | 1851 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": dma_residue == %x !!!\n", i); |
i | 2563 | drivers/char/tpqic02.c | short i; |
i | 2625 | drivers/char/tpqic02.c | for (i=0; i<sizeof(qic02_tape_dynconf); i++) |
i | 2652 | drivers/char/tpqic02.c | for (i=0; i<sizeof(qic02_tape_dynconf); i++) |
i | 2684 | drivers/char/tpqic02.c | for (i=0; i<sizeof(operation); i++) |
i | 2746 | drivers/char/tpqic02.c | for (i=0; i<sizeof(ioctl_status); i++) |
i | 2779 | drivers/char/tpqic02.c | for (i=0; i<sizeof(ioctl_tell); i++) |
i | 155 | drivers/char/tty_io.c | int i, count = 0; |
i | 157 | drivers/char/tty_io.c | for (f = first_file, i=0; i<nr_files; i++, f = f->f_next) { |
i | 339 | drivers/char/tty_io.c | int i; |
i | 346 | drivers/char/tty_io.c | for (filp = first_file, i=0; i<nr_files; i++, filp = filp->f_next) { |
i | 379 | drivers/char/tty_io.c | i = (tty->ldisc.open)(tty); |
i | 380 | drivers/char/tty_io.c | if (i < 0) |
i | 382 | drivers/char/tty_io.c | -i); |
i | 676 | drivers/char/tty_io.c | int i; |
i | 703 | drivers/char/tty_io.c | i = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count); |
i | 705 | drivers/char/tty_io.c | i = -EIO; |
i | 706 | drivers/char/tty_io.c | if (i > 0) |
i | 708 | drivers/char/tty_io.c | return i; |
i | 713 | drivers/char/tty_io.c | int i, is_console; |
i | 739 | drivers/char/tty_io.c | i = (tty->ldisc.write)(tty,file,(unsigned char *)buf,(unsigned int)count); |
i | 741 | drivers/char/tty_io.c | i = -EIO; |
i | 742 | drivers/char/tty_io.c | if (i > 0) |
i | 744 | drivers/char/tty_io.c | return i; |
i | 1261 | drivers/char/tty_io.c | int i, n = 0; |
i | 1263 | drivers/char/tty_io.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct tstruct)); |
i | 1264 | drivers/char/tty_io.c | if (i) |
i | 1265 | drivers/char/tty_io.c | return i; |
i | 1271 | drivers/char/tty_io.c | for (i=0 ; i<sizeof(struct task_struct) ; i++) |
i | 1538 | drivers/char/tty_io.c | int i; |
i | 1555 | drivers/char/tty_io.c | for (i=0; i < NR_OPEN; i++) { |
i | 1556 | drivers/char/tty_io.c | filp = (*p)->files->fd[i]; |
i | 78 | drivers/char/tty_ioctl.c | int i; |
i | 92 | drivers/char/tty_ioctl.c | for (i=0; i < NCCS; i++) |
i | 93 | drivers/char/tty_ioctl.c | termios->c_cc[i] = locked->c_cc[i] ? |
i | 94 | drivers/char/tty_ioctl.c | old->c_cc[i] : termios->c_cc[i]; |
i | 182 | drivers/char/tty_ioctl.c | int i; |
i | 185 | drivers/char/tty_ioctl.c | i = verify_area(VERIFY_WRITE, termio, sizeof (struct termio)); |
i | 186 | drivers/char/tty_ioctl.c | if (i) |
i | 187 | drivers/char/tty_ioctl.c | return i; |
i | 193 | drivers/char/tty_ioctl.c | for(i=0 ; i < NCC ; i++) |
i | 194 | drivers/char/tty_ioctl.c | tmp_termio.c_cc[i] = tty->termios->c_cc[i]; |
i | 32 | drivers/char/vt.c | #define VT_IS_IN_USE(i) (console_driver.table[i] && console_driver.table[i]->count) |
i | 33 | drivers/char/vt.c | #define VT_BUSY(i) (VT_IS_IN_USE(i) || i == fg_console || i == sel_cons) |
i | 138 | drivers/char/vt.c | int i, perm; |
i | 185 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned char)); |
i | 186 | drivers/char/vt.c | if (!i) |
i | 188 | drivers/char/vt.c | return i; |
i | 239 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned long)); |
i | 240 | drivers/char/vt.c | if (!i) |
i | 242 | drivers/char/vt.c | return i; |
i | 278 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned long)); |
i | 279 | drivers/char/vt.c | if (!i) { |
i | 286 | drivers/char/vt.c | return i; |
i | 304 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned long)); |
i | 305 | drivers/char/vt.c | if (!i) { |
i | 310 | drivers/char/vt.c | return i; |
i | 318 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)a, sizeof(struct kbkeycode)); |
i | 319 | drivers/char/vt.c | if (i) |
i | 320 | drivers/char/vt.c | return i; |
i | 336 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)a, sizeof(struct kbkeycode)); |
i | 337 | drivers/char/vt.c | if (i) |
i | 338 | drivers/char/vt.c | return i; |
i | 350 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)a, sizeof(struct kbentry)); |
i | 351 | drivers/char/vt.c | if (i) |
i | 352 | drivers/char/vt.c | return i; |
i | 353 | drivers/char/vt.c | if ((i = get_fs_byte((char *) &a->kb_index)) >= NR_KEYS) |
i | 359 | drivers/char/vt.c | val = U(key_map[i]); |
i | 363 | drivers/char/vt.c | val = (i ? K_HOLE : K_NOSUCHMAP); |
i | 377 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)a, sizeof(struct kbentry)); |
i | 378 | drivers/char/vt.c | if (i) |
i | 379 | drivers/char/vt.c | return i; |
i | 380 | drivers/char/vt.c | if ((i = get_fs_byte((char *) &a->kb_index)) >= NR_KEYS) |
i | 385 | drivers/char/vt.c | if (!i && v == K_NOSUCHMAP) { |
i | 406 | drivers/char/vt.c | if (!i) |
i | 425 | drivers/char/vt.c | ov = U(key_map[i]); |
i | 434 | drivers/char/vt.c | key_map[i] = U(v); |
i | 447 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)a, sizeof(struct kbsentry)); |
i | 448 | drivers/char/vt.c | if (i) |
i | 449 | drivers/char/vt.c | return i; |
i | 450 | drivers/char/vt.c | if ((i = get_fs_byte(&a->kb_func)) >= MAX_NR_FUNC || i < 0) |
i | 455 | drivers/char/vt.c | p = func_table[i]; |
i | 474 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)a, sizeof(struct kbsentry)); |
i | 475 | drivers/char/vt.c | if (i) |
i | 476 | drivers/char/vt.c | return i; |
i | 477 | drivers/char/vt.c | if ((i = get_fs_byte(&a->kb_func)) >= MAX_NR_FUNC) |
i | 479 | drivers/char/vt.c | q = func_table[i]; |
i | 482 | drivers/char/vt.c | for (j = i+1; j < MAX_NR_FUNC && !func_table[j]; j++) ; |
i | 503 | drivers/char/vt.c | func_table[i] = fj; |
i | 514 | drivers/char/vt.c | func_table[i] = fj; |
i | 533 | drivers/char/vt.c | for (p = a->kb_string, q = func_table[i]; ; p++, q++) |
i | 543 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) a, sizeof(struct kbdiacrs)); |
i | 544 | drivers/char/vt.c | if (i) |
i | 545 | drivers/char/vt.c | return i; |
i | 559 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *) a, sizeof(struct kbdiacrs)); |
i | 560 | drivers/char/vt.c | if (i) |
i | 561 | drivers/char/vt.c | return i; |
i | 573 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned char)); |
i | 574 | drivers/char/vt.c | if (i) |
i | 575 | drivers/char/vt.c | return i; |
i | 593 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(unsigned char)); |
i | 594 | drivers/char/vt.c | if (i) |
i | 595 | drivers/char/vt.c | return i; |
i | 634 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)vtmode, sizeof(struct vt_mode)); |
i | 635 | drivers/char/vt.c | if (i) |
i | 636 | drivers/char/vt.c | return i; |
i | 655 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct vt_mode)); |
i | 656 | drivers/char/vt.c | if (i) |
i | 657 | drivers/char/vt.c | return i; |
i | 676 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE,(void *)vtstat, sizeof(struct vt_stat)); |
i | 677 | drivers/char/vt.c | if (i) |
i | 678 | drivers/char/vt.c | return i; |
i | 681 | drivers/char/vt.c | for (i = 0, mask = 2; i < MAX_NR_CONSOLES && mask; ++i, mask <<= 1) |
i | 682 | drivers/char/vt.c | if (VT_IS_IN_USE(i)) |
i | 692 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) arg, sizeof(long)); |
i | 693 | drivers/char/vt.c | if (i) |
i | 694 | drivers/char/vt.c | return i; |
i | 695 | drivers/char/vt.c | for (i = 0; i < MAX_NR_CONSOLES; ++i) |
i | 696 | drivers/char/vt.c | if (! VT_IS_IN_USE(i)) |
i | 698 | drivers/char/vt.c | put_fs_long(i < MAX_NR_CONSOLES ? (i+1) : -1, |
i | 713 | drivers/char/vt.c | i = vc_allocate(arg); |
i | 714 | drivers/char/vt.c | if (i) |
i | 715 | drivers/char/vt.c | return i; |
i | 771 | drivers/char/vt.c | i = vc_allocate(newvt); |
i | 772 | drivers/char/vt.c | if (i) |
i | 773 | drivers/char/vt.c | return i; |
i | 800 | drivers/char/vt.c | for (i=1; i<MAX_NR_CONSOLES; i++) |
i | 801 | drivers/char/vt.c | if (! VT_BUSY(i)) |
i | 802 | drivers/char/vt.c | vc_disallocate(i); |
i | 819 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)vtsizes, sizeof(struct vt_sizes)); |
i | 820 | drivers/char/vt.c | if (i) |
i | 821 | drivers/char/vt.c | return i; |
i | 853 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)arg, sizeof(struct unimapinit)); |
i | 854 | drivers/char/vt.c | if (i) |
i | 855 | drivers/char/vt.c | return i; |
i | 868 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *)arg, sizeof(struct unimapdesc)); |
i | 869 | drivers/char/vt.c | if (i == 0) { |
i | 873 | drivers/char/vt.c | i = verify_area(VERIFY_READ, (void *) list, |
i | 876 | drivers/char/vt.c | if (i) |
i | 877 | drivers/char/vt.c | return i; |
i | 886 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct unimapdesc)); |
i | 887 | drivers/char/vt.c | if (i == 0) { |
i | 892 | drivers/char/vt.c | i = verify_area(VERIFY_WRITE, (void *) list, |
i | 895 | drivers/char/vt.c | if (i) |
i | 896 | drivers/char/vt.c | return i; |
i | 193 | drivers/net/3c501.c | int i; |
i | 201 | drivers/net/3c501.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 202 | drivers/net/3c501.c | int ioaddr = netcard_portlist[i]; |
i | 222 | drivers/net/3c501.c | int i; |
i | 225 | drivers/net/3c501.c | for (i = 0; i < 6; i++) { |
i | 226 | drivers/net/3c501.c | outw(i, ioaddr + EL1_DATAPTR); |
i | 227 | drivers/net/3c501.c | station_addr[i] = inb(ioaddr + EL1_SAPROM); |
i | 593 | drivers/net/3c501.c | int i; |
i | 594 | drivers/net/3c501.c | for (i = 0; i < 6; i++) /* Set the station address. */ |
i | 595 | drivers/net/3c501.c | outb(dev->dev_addr[i], ioaddr + i); |
i | 92 | drivers/net/3c503.c | int i; |
i | 95 | drivers/net/3c503.c | for(i = 7; i >= 0; i--, base_bits >>= 1) |
i | 100 | drivers/net/3c503.c | if (check_region(netcard_portlist[i], EL2_IO_EXTENT)) |
i | 102 | drivers/net/3c503.c | if (el2_probe1(dev, netcard_portlist[i]) == 0) |
i | 118 | drivers/net/3c503.c | int i; |
i | 126 | drivers/net/3c503.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 127 | drivers/net/3c503.c | int ioaddr = netcard_portlist[i]; |
i | 144 | drivers/net/3c503.c | int i, iobase_reg, membase_reg, saved_406; |
i | 189 | drivers/net/3c503.c | for (i = 0; i < 6; i++) |
i | 190 | drivers/net/3c503.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 222 | drivers/net/3c503.c | for (i = 1; i < EL2_MEMSIZE/sizeof(mem_base[0]); i++) { |
i | 223 | drivers/net/3c503.c | mem_base[i] = memtest_value; |
i | 225 | drivers/net/3c503.c | || mem_base[i] != memtest_value) { |
i | 231 | drivers/net/3c503.c | mem_base[i] = 0; |
i | 378 | drivers/net/3c503.c | int i; /* Buffer index */ |
i | 403 | drivers/net/3c503.c | for(i = 0; i < count; i++) { |
i | 404 | drivers/net/3c503.c | if (i % 8 == 0) |
i | 406 | drivers/net/3c503.c | if (++boguscount > (i<<3) + 32) { |
i | 408 | drivers/net/3c503.c | dev->name, i, count, boguscount); |
i | 411 | drivers/net/3c503.c | outb(buf[i], E33G_FIFOH); |
i | 423 | drivers/net/3c503.c | unsigned int i; |
i | 447 | drivers/net/3c503.c | for(i = 0; i < count; i++) { |
i | 448 | drivers/net/3c503.c | if (i % 8 == 0) |
i | 450 | drivers/net/3c503.c | if (++boguscount > (i<<3) + 32) { |
i | 452 | drivers/net/3c503.c | dev->name, i, count, boguscount); |
i | 456 | drivers/net/3c503.c | buf[i] = inb_p(E33G_FIFOH); |
i | 291 | drivers/net/3c505.c | int i; |
i | 320 | drivers/net/3c505.c | for (i = 0; cont && (i < pcb->length); i++) { |
i | 321 | drivers/net/3c505.c | OUTB(pcb->data.raw[i], (adapter->io_addr)+PORT_COMMAND); |
i | 333 | drivers/net/3c505.c | i = GET_ASF(); |
i | 334 | drivers/net/3c505.c | if ((i == ASF_PCB_ACK) || |
i | 335 | drivers/net/3c505.c | (i == ASF_PCB_NAK)) |
i | 342 | drivers/net/3c505.c | if (i == ASF_PCB_ACK) { |
i | 345 | drivers/net/3c505.c | } else if (i == ASF_PCB_NAK) { |
i | 381 | drivers/net/3c505.c | int i; |
i | 414 | drivers/net/3c505.c | i = 0; |
i | 419 | drivers/net/3c505.c | pcb->data.raw[i++] = INB(adapter->io_addr+PORT_COMMAND); |
i | 420 | drivers/net/3c505.c | if (i > MAX_PCB_DATA) |
i | 421 | drivers/net/3c505.c | printk(invalid_pcb_msg, i, filename, __LINE__); |
i | 428 | drivers/net/3c505.c | total_length = pcb->data.raw[--i]; |
i | 547 | drivers/net/3c505.c | register int i; |
i | 586 | drivers/net/3c505.c | for (i = 0; i < (rlen/2); i++) { |
i | 615 | drivers/net/3c505.c | for (i = 0; i < (rlen/2); i++) { |
i | 623 | drivers/net/3c505.c | filename,__LINE__, i, rlen/2); |
i | 972 | drivers/net/3c505.c | int i; |
i | 1006 | drivers/net/3c505.c | for (i = 0; i < (nlen/2);i++) { |
i | 1012 | drivers/net/3c505.c | filename,__LINE__, i, nlen/2); |
i | 1225 | drivers/net/3c505.c | int i; |
i | 1235 | drivers/net/3c505.c | for (i=0;i<num_addrs;i++) |
i | 1236 | drivers/net/3c505.c | memcpy(adapter->tx_pcb.data.multicast[i], addrs+6*i,6); |
i | 1293 | drivers/net/3c505.c | int i; |
i | 1294 | drivers/net/3c505.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 1295 | drivers/net/3c505.c | dev->buffs[i] = NULL; |
i | 1339 | drivers/net/3c505.c | int i; |
i | 1340 | drivers/net/3c505.c | for (i = 0; i < dev->addr_len; i++) |
i | 1341 | drivers/net/3c505.c | dev->broadcast[i] = 0xff; |
i | 1463 | drivers/net/3c505.c | int i; |
i | 1527 | drivers/net/3c505.c | for (i = 0; i < 6; i++) |
i | 1528 | drivers/net/3c505.c | dev->dev_addr[i] = adapter.rx_pcb.data.eth_addr[i]; |
i | 309 | drivers/net/3c507.c | int i; |
i | 316 | drivers/net/3c507.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 317 | drivers/net/3c507.c | int ioaddr = netcard_portlist[i]; |
i | 330 | drivers/net/3c507.c | int i, irq, irqval; |
i | 336 | drivers/net/3c507.c | for(i = 0; i < 255; i++) { |
i | 377 | drivers/net/3c507.c | for (i = 0; i < 6; i++) { |
i | 378 | drivers/net/3c507.c | dev->dev_addr[i] = inb(ioaddr + i); |
i | 379 | drivers/net/3c507.c | printk(" %02x", dev->dev_addr[i]); |
i | 118 | drivers/net/3c509.c | short lrs_state = 0xff, i; |
i | 140 | drivers/net/3c509.c | for (i = 0; i < 3; i++) |
i | 141 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
i | 154 | drivers/net/3c509.c | for (i = 0; i < 8; i++) |
i | 155 | drivers/net/3c509.c | if ((mca_adaptor_id(i) | 1) == 0x627c) { |
i | 156 | drivers/net/3c509.c | ioaddr = mca_pos_base_addr(i); |
i | 159 | drivers/net/3c509.c | for (i = 0; i < 3; i++) |
i | 160 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
i | 176 | drivers/net/3c509.c | for(i = 0; i < 255; i++) { |
i | 195 | drivers/net/3c509.c | for (i = 0; i < 3; i++) { |
i | 196 | drivers/net/3c509.c | phys_addr[i] = htons(id_read_eeprom(i)); |
i | 236 | drivers/net/3c509.c | for (i = 0; i < 6; i++) |
i | 237 | drivers/net/3c509.c | printk(" %2.2x", dev->dev_addr[i]); |
i | 303 | drivers/net/3c509.c | int i; |
i | 329 | drivers/net/3c509.c | for (i = 0; i < 6; i++) |
i | 330 | drivers/net/3c509.c | outb(dev->dev_addr[i], ioaddr + i); |
i | 344 | drivers/net/3c509.c | for (i = 0; i < 9; i++) |
i | 345 | drivers/net/3c509.c | inb(ioaddr + i); |
i | 449 | drivers/net/3c509.c | int i = 4; |
i | 451 | drivers/net/3c509.c | while (--i > 0 && (tx_status = inb(ioaddr + TX_STATUS)) > 0) { |
i | 467 | drivers/net/3c509.c | int i = 0; |
i | 500 | drivers/net/3c509.c | if (++i > 10) { |
i | 611 | drivers/net/8390.c | int i; |
i | 638 | drivers/net/8390.c | for(i = 0; i < 6; i++) { |
i | 639 | drivers/net/8390.c | outb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i); |
i | 643 | drivers/net/8390.c | for(i = 0; i < 8; i++) |
i | 644 | drivers/net/8390.c | outb_p(0xff, e8390_base + EN1_MULT + i); |
i | 97 | drivers/net/ac3200.c | int i; |
i | 102 | drivers/net/ac3200.c | for(i = 0; i < 6; i++) |
i | 103 | drivers/net/ac3200.c | printk(" %02x", inb(ioaddr + AC_SA_PROM + i)); |
i | 118 | drivers/net/ac3200.c | for (i = 0; i < 4; i++) |
i | 125 | drivers/net/ac3200.c | for(i = 0; i < ETHER_ADDR_LEN; i++) |
i | 126 | drivers/net/ac3200.c | dev->dev_addr[i] = inb(ioaddr + AC_SA_PROM + i); |
i | 150 | drivers/net/ac3200.c | for (i = 0; i < 7; i++) |
i | 151 | drivers/net/ac3200.c | if (addrmap[i] == dev->mem_start) |
i | 153 | drivers/net/ac3200.c | if (i >= 7) |
i | 154 | drivers/net/ac3200.c | i = 0; |
i | 155 | drivers/net/ac3200.c | outb((inb(ioaddr + AC_CONFIG) & ~7) | i, ioaddr + AC_CONFIG); |
i | 203 | drivers/net/apricot.c | int i; |
i | 210 | drivers/net/apricot.c | for (i = 0; i < num; i++) |
i | 219 | drivers/net/apricot.c | if (i == 0) |
i | 231 | drivers/net/apricot.c | if (i != 0) |
i | 234 | drivers/net/apricot.c | return (i); |
i | 540 | drivers/net/apricot.c | int i; |
i | 550 | drivers/net/apricot.c | i = init_rx_bufs(dev, RX_RING_SIZE); |
i | 552 | drivers/net/apricot.c | if ((i = init_rx_bufs(dev, RX_RING_SIZE)) < RX_RING_SIZE) |
i | 553 | drivers/net/apricot.c | printk("%s: only able to allocate %d receive buffers\n", dev->name, i); |
i | 555 | drivers/net/apricot.c | if (i < 4) |
i | 671 | drivers/net/apricot.c | int i; |
i | 674 | drivers/net/apricot.c | for (i = 0; i < 6; i++) |
i | 675 | drivers/net/apricot.c | printk(" %2.2X", (unsigned char)add[i]); |
i | 679 | drivers/net/apricot.c | for (i = 0; i < 6; i++) |
i | 680 | drivers/net/apricot.c | printk(" %2.2X", (unsigned char)add[i+6]); |
i | 687 | drivers/net/apricot.c | int i; |
i | 699 | drivers/net/apricot.c | for (i = 0; i < 8; i++) |
i | 701 | drivers/net/apricot.c | eth_addr[i] = inb(ioaddr+8+i); |
i | 702 | drivers/net/apricot.c | checksum += eth_addr[i]; |
i | 723 | drivers/net/apricot.c | for (i = 0; i < 6; i++) |
i | 724 | drivers/net/apricot.c | printk(" %2.2X", dev->dev_addr[i] = eth_addr[i]); |
i | 144 | drivers/net/at1700.c | int i; |
i | 152 | drivers/net/at1700.c | for (i = 0; at1700_probe_list[i]; i++) { |
i | 153 | drivers/net/at1700.c | int ioaddr = at1700_probe_list[i]; |
i | 175 | drivers/net/at1700.c | unsigned int i, irq; |
i | 218 | drivers/net/at1700.c | for(i = 0; i < 3; i++) { |
i | 219 | drivers/net/at1700.c | unsigned short eeprom_val = read_eeprom(ioaddr, 4+i); |
i | 221 | drivers/net/at1700.c | ((unsigned short *)dev->dev_addr)[i] = ntohs(eeprom_val); |
i | 240 | drivers/net/at1700.c | for (i = 0; i < 6; i++) |
i | 241 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
i | 245 | drivers/net/at1700.c | for (i = 0; i < 8; i++) |
i | 246 | drivers/net/at1700.c | outb(0x00, ioaddr + 8 + i); |
i | 281 | drivers/net/at1700.c | int i; |
i | 291 | drivers/net/at1700.c | for (i = 9; i >= 0; i--) { |
i | 292 | drivers/net/at1700.c | short dataval = (read_cmd & (1 << i)) ? EE_DATA_WRITE : 0; |
i | 301 | drivers/net/at1700.c | for (i = 16; i > 0; i--) { |
i | 324 | drivers/net/at1700.c | int i; |
i | 330 | drivers/net/at1700.c | for (i = 0; i < 6; i++) |
i | 331 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
i | 335 | drivers/net/at1700.c | for (i = 0; i < 8; i++) |
i | 336 | drivers/net/at1700.c | outb(0x00, ioaddr + 8 + i); |
i | 555 | drivers/net/at1700.c | int i; |
i | 556 | drivers/net/at1700.c | for (i = 0; i < 20; i++) { |
i | 565 | drivers/net/at1700.c | dev->name, inb(ioaddr + RX_MODE), i); |
i | 263 | drivers/net/atp.c | int i; |
i | 272 | drivers/net/atp.c | for (i = 0; i < 3; i++) |
i | 273 | drivers/net/atp.c | ((unsigned short *)dev->dev_addr)[i] = |
i | 274 | drivers/net/atp.c | ntohs(eeprom_op(ioaddr, EE_READ(sa_offset + i))); |
i | 344 | drivers/net/atp.c | int i; |
i | 348 | drivers/net/atp.c | for (i = 0; i < 6; i++) |
i | 349 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
i | 583 | drivers/net/atp.c | int i; |
i | 584 | drivers/net/atp.c | for (i = 0; i < 6; i++) |
i | 585 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
i | 613 | drivers/net/atp.c | int i; |
i | 618 | drivers/net/atp.c | for (i = 0; i < 6; i++) |
i | 620 | drivers/net/atp.c | if (read_cmd_byte(ioaddr, PAR0 + i) != atp_timed_dev->dev_addr[i]) |
i | 623 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, atp_timed_dev->dev_addr[i]); |
i | 624 | drivers/net/atp.c | if (i == 2) |
i | 626 | drivers/net/atp.c | else if (i == 3) |
i | 628 | drivers/net/atp.c | else if (i == 4) |
i | 634 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, atp_timed_dev->dev_addr[i]); |
i | 63 | drivers/net/auto_irq.c | int i, mask; |
i | 68 | drivers/net/auto_irq.c | for (i = 0; i < 16; i++) { |
i | 69 | drivers/net/auto_irq.c | if (test_bit(i, &irqs_busy) == 0 |
i | 70 | drivers/net/auto_irq.c | && request_irq(i, autoirq_probe, SA_INTERRUPT, "irq probe") == 0) |
i | 71 | drivers/net/auto_irq.c | set_bit(i, (void *)&irq_handled); /* irq_handled |= 1 << i;*/ |
i | 82 | drivers/net/auto_irq.c | for (i = 0, mask = 0x01; i < 16; i++, mask <<= 1) { |
i | 86 | drivers/net/auto_irq.c | printk(" Spurious interrupt on IRQ %d\n", i); |
i | 88 | drivers/net/auto_irq.c | free_irq(i); |
i | 96 | drivers/net/auto_irq.c | int i; |
i | 107 | drivers/net/auto_irq.c | for (i = 0; i < 16; i++) { |
i | 108 | drivers/net/auto_irq.c | if (test_bit(i, (void *)&irq_handled)) |
i | 109 | drivers/net/auto_irq.c | free_irq(i); |
i | 380 | drivers/net/de4x5.c | long i;\ |
i | 381 | drivers/net/de4x5.c | i=inl(DE4X5_BMR);\ |
i | 382 | drivers/net/de4x5.c | outl(i | BMR_SWR, DE4X5_BMR);\ |
i | 383 | drivers/net/de4x5.c | outl(i, DE4X5_BMR);\ |
i | 384 | drivers/net/de4x5.c | for (i=0;i<5;i++) inl(DE4X5_BMR);\ |
i | 425 | drivers/net/de4x5.c | int tmpbus, i, j, status=0; |
i | 459 | drivers/net/de4x5.c | for (i = 0; i < ETH_ALEN - 1; i++) { /* get the ethernet addr. */ |
i | 460 | drivers/net/de4x5.c | printk("%2.2x:", dev->dev_addr[i]); |
i | 462 | drivers/net/de4x5.c | printk("%2.2x,\n", dev->dev_addr[i]); |
i | 493 | drivers/net/de4x5.c | for (i=0; i<NUM_RX_DESC; i++) { |
i | 494 | drivers/net/de4x5.c | lp->rx_ring[i].status = 0; |
i | 495 | drivers/net/de4x5.c | lp->rx_ring[i].des1 = RX_BUFF_SZ; |
i | 496 | drivers/net/de4x5.c | lp->rx_ring[i].buf = tmp + i * RX_BUFF_SZ; |
i | 497 | drivers/net/de4x5.c | lp->rx_ring[i].next = NULL; |
i | 529 | drivers/net/de4x5.c | for (dev->irq=0,i=0; i<sizeof(de4x5_irq) && !dev->irq; i++) { |
i | 530 | drivers/net/de4x5.c | if (irqnum == de4x5_irq[i]) { |
i | 606 | drivers/net/de4x5.c | int i, status = 0; |
i | 628 | drivers/net/de4x5.c | for (i=0;i<6;i++){ |
i | 629 | drivers/net/de4x5.c | printk("%2.2x:",(short)dev->dev_addr[i]); |
i | 635 | drivers/net/de4x5.c | for (i=0;i<lp->rxRingSize-1;i++){ |
i | 636 | drivers/net/de4x5.c | if (i < 3) { |
i | 637 | drivers/net/de4x5.c | printk("0x%8.8lx ",(long)&lp->rx_ring[i].status); |
i | 640 | drivers/net/de4x5.c | printk("...0x%8.8lx\n",(long)&lp->rx_ring[i].status); |
i | 642 | drivers/net/de4x5.c | for (i=0;i<lp->txRingSize-1;i++){ |
i | 643 | drivers/net/de4x5.c | if (i < 3) { |
i | 644 | drivers/net/de4x5.c | printk("0x%8.8lx ", (long)&lp->tx_ring[i].status); |
i | 647 | drivers/net/de4x5.c | printk("...0x%8.8lx\n", (long)&lp->tx_ring[i].status); |
i | 649 | drivers/net/de4x5.c | for (i=0;i<lp->rxRingSize-1;i++){ |
i | 650 | drivers/net/de4x5.c | if (i < 3) { |
i | 651 | drivers/net/de4x5.c | printk("0x%8.8lx ",(long)lp->rx_ring[i].buf); |
i | 654 | drivers/net/de4x5.c | printk("...0x%8.8lx\n",(long)lp->rx_ring[i].buf); |
i | 656 | drivers/net/de4x5.c | for (i=0;i<lp->txRingSize-1;i++){ |
i | 657 | drivers/net/de4x5.c | if (i < 3) { |
i | 658 | drivers/net/de4x5.c | printk("0x%8.8lx ", (long)lp->tx_ring[i].buf); |
i | 661 | drivers/net/de4x5.c | printk("...0x%8.8lx\n", (long)lp->tx_ring[i].buf); |
i | 714 | drivers/net/de4x5.c | u_long i, j, bmr, omr; |
i | 741 | drivers/net/de4x5.c | for (i = 0; i < lp->rxRingSize; i++) { |
i | 742 | drivers/net/de4x5.c | lp->rx_ring[i].status = R_OWN; |
i | 746 | drivers/net/de4x5.c | for (i = 0; i < lp->txRingSize; i++) { |
i | 747 | drivers/net/de4x5.c | lp->tx_ring[i].status = 0; |
i | 769 | drivers/net/de4x5.c | for (j=0, i=0;i<100 && j==0;i++) { |
i | 774 | drivers/net/de4x5.c | if (i == 100) { |
i | 940 | drivers/net/de4x5.c | int i, entry; |
i | 984 | drivers/net/de4x5.c | for (i=1; i<DE4X5_PKT_STAT_SZ-1; i++) { |
i | 985 | drivers/net/de4x5.c | if (pkt_len < i*DE4X5_PKT_BIN_SZ) { |
i | 986 | drivers/net/de4x5.c | lp->pktStats.bins[i]++; |
i | 987 | drivers/net/de4x5.c | i = DE4X5_PKT_STAT_SZ; |
i | 1178 | drivers/net/de4x5.c | int i; |
i | 1183 | drivers/net/de4x5.c | for (i=0; i<(HASH_TABLE_LEN >> 4); i++) { |
i | 1192 | drivers/net/de4x5.c | for (i=0;i<num_addrs;i++) { /* for each address in the list */ |
i | 1227 | drivers/net/de4x5.c | int i, maxSlots; |
i | 1239 | drivers/net/de4x5.c | i = 1; |
i | 1243 | drivers/net/de4x5.c | i = (ioaddr >> 12); |
i | 1244 | drivers/net/de4x5.c | maxSlots = i + 1; |
i | 1247 | drivers/net/de4x5.c | for (status = -ENODEV; i<maxSlots && dev!=NULL; i++, iobase+=EISA_SLOT_INC) { |
i | 1462 | drivers/net/de4x5.c | u_long i, omr, sisr, linkBad; |
i | 1472 | drivers/net/de4x5.c | for (linkBad=1,i=0;i<t_3s && linkBad;i++) { |
i | 1511 | drivers/net/de4x5.c | for (linkBad=1,i=0;i<t_3s && linkBad;i++) { |
i | 1545 | drivers/net/de4x5.c | for (linkBad=1,i=0;i<t_3s && linkBad;i++) { |
i | 1581 | drivers/net/de4x5.c | int i, j; |
i | 1584 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { /* Use this source address */ |
i | 1585 | drivers/net/de4x5.c | *buf++ = dev->dev_addr[i]; |
i | 1587 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { /* Use this destination address */ |
i | 1588 | drivers/net/de4x5.c | *buf++ = dev->dev_addr[i]; |
i | 1595 | drivers/net/de4x5.c | for (i=len-4; i<len; i++) { /* CRC */ |
i | 1596 | drivers/net/de4x5.c | buf[i] = 0; |
i | 1624 | drivers/net/de4x5.c | u_long i, start, now, quant=(DELAY_QUANT*1000)/TIMER_TICK+1; |
i | 1626 | drivers/net/de4x5.c | for (i=0; i<usec/DELAY_QUANT; i++) { |
i | 1645 | drivers/net/de4x5.c | u_long i; |
i | 1647 | drivers/net/de4x5.c | for (i=0; i<msec; i++) { |
i | 1660 | drivers/net/de4x5.c | unsigned long i; |
i | 1678 | drivers/net/de4x5.c | for (i=0;*signatures[i] != '\0' && *name == '\0';i++) { |
i | 1679 | drivers/net/de4x5.c | if (strstr(ManCode, signatures[i]) != NULL) { |
i | 1709 | drivers/net/de4x5.c | long i, j, tmp; |
i | 1718 | drivers/net/de4x5.c | for (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) { |
i | 1746 | drivers/net/de4x5.c | long i, k, tmp; |
i | 1751 | drivers/net/de4x5.c | for (i=0,k=0,j=0;j<3;j++) { |
i | 1758 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 1761 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 1764 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 1766 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
i | 1796 | drivers/net/de4x5.c | int i, j, iobase = dev->base_addr, status = 0; |
i | 1806 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1807 | drivers/net/de4x5.c | tmp.addr[i] = dev->dev_addr[i]; |
i | 1820 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1821 | drivers/net/de4x5.c | dev->dev_addr[i] = tmp.addr[i]; |
i | 1830 | drivers/net/de4x5.c | for (pa=lp->setup_frame+offset, i=0; i<ETH_ALEN; i++) { |
i | 1831 | drivers/net/de4x5.c | *(pa + i) = dev->dev_addr[i]; |
i | 1832 | drivers/net/de4x5.c | if (i & 0x01) pa += 2; |
i | 1956 | drivers/net/de4x5.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1957 | drivers/net/de4x5.c | tmp.addr[j++] = dev->dev_addr[i]; |
i | 1963 | drivers/net/de4x5.c | for (i=0;i<lp->rxRingSize-1;i++){ |
i | 1964 | drivers/net/de4x5.c | if (i < 3) { |
i | 1965 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->rx_ring[i].status; j+=4; |
i | 1968 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->rx_ring[i].status; j+=4; |
i | 1969 | drivers/net/de4x5.c | for (i=0;i<lp->txRingSize-1;i++){ |
i | 1970 | drivers/net/de4x5.c | if (i < 3) { |
i | 1971 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->tx_ring[i].status; j+=4; |
i | 1974 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->tx_ring[i].status; j+=4; |
i | 1976 | drivers/net/de4x5.c | for (i=0;i<lp->rxRingSize-1;i++){ |
i | 1977 | drivers/net/de4x5.c | if (i < 3) { |
i | 1978 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)lp->rx_ring[i].buf; j+=4; |
i | 1981 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)lp->rx_ring[i].buf; j+=4; |
i | 1982 | drivers/net/de4x5.c | for (i=0;i<lp->txRingSize-1;i++){ |
i | 1983 | drivers/net/de4x5.c | if (i < 3) { |
i | 1984 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)lp->tx_ring[i].buf; j+=4; |
i | 1987 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)lp->tx_ring[i].buf; j+=4; |
i | 1989 | drivers/net/de4x5.c | for (i=0;i<lp->rxRingSize;i++){ |
i | 1990 | drivers/net/de4x5.c | tmp.lval[j>>2] = lp->rx_ring[i].status; j+=4; |
i | 1992 | drivers/net/de4x5.c | for (i=0;i<lp->txRingSize;i++){ |
i | 1993 | drivers/net/de4x5.c | tmp.lval[j>>2] = lp->tx_ring[i].status; j+=4; |
i | 588 | drivers/net/de600.c | int i; |
i | 627 | drivers/net/de600.c | for (i = size; i > 0; --i, ++buffer) |
i | 644 | drivers/net/de600.c | int i; |
i | 671 | drivers/net/de600.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 672 | drivers/net/de600.c | dev->dev_addr[i] = de600_read_byte(READ_DATA, dev); |
i | 673 | drivers/net/de600.c | dev->broadcast[i] = 0xff; |
i | 698 | drivers/net/de600.c | for (i = 1; i < ETH_ALEN; i++) |
i | 699 | drivers/net/de600.c | printk(":%02X",dev->dev_addr[i]); |
i | 722 | drivers/net/de600.c | int i; |
i | 768 | drivers/net/de600.c | for (i = 0; i < ETH_ALEN; i++) |
i | 769 | drivers/net/de600.c | de600_put_byte(dev->dev_addr[i]); |
i | 717 | drivers/net/de620.c | int i; |
i | 742 | drivers/net/de620.c | for (i = 0; i < 6; ++i) { /* W_PARn = 0xaa + n */ |
i | 743 | drivers/net/de620.c | de620_set_register(W_PAR0 + i, dev->dev_addr[i]); |
i | 768 | drivers/net/de620.c | if (((i = de620_get_register(R_STS)) & CHECK_MASK) != CHECK_OK) { |
i | 773 | drivers/net/de620.c | "! (%02x)\n", i); |
i | 806 | drivers/net/de620.c | int i; |
i | 838 | drivers/net/de620.c | for (i = 1; i < ETH_ALEN; i++) { |
i | 839 | drivers/net/de620.c | printk(":%2.2X", dev->dev_addr[i] = nic_data.NodeID[i]); |
i | 840 | drivers/net/de620.c | dev->broadcast[i] = 0xff; |
i | 416 | drivers/net/depca.c | int i,j, status=0; |
i | 440 | drivers/net/depca.c | for (j = 0, i = 0; mem_base[i] && (j == 0);i++) { |
i | 441 | drivers/net/depca.c | if (((mem_chkd >> i) & 0x01) == 0) { /* has the memory been checked? */ |
i | 442 | drivers/net/depca.c | name = DepcaSignature(mem_base[i]);/* check for a DEPCA here */ |
i | 443 | drivers/net/depca.c | mem_chkd |= (0x01 << i); /* mark location checked */ |
i | 446 | drivers/net/depca.c | --i; |
i | 452 | drivers/net/depca.c | mem_start = mem_base[i]; |
i | 478 | drivers/net/depca.c | for (i = 0; i < ETH_ALEN - 1; i++) { /* get the ethernet address */ |
i | 479 | drivers/net/depca.c | printk("%2.2x:", dev->dev_addr[i] = inb(DEPCA_PROM + j)); |
i | 481 | drivers/net/depca.c | printk("%2.2x", dev->dev_addr[i] = inb(DEPCA_PROM + j)); |
i | 483 | drivers/net/depca.c | for (;i<32;i++) { /* leave ROM counter in known state */ |
i | 537 | drivers/net/depca.c | for (i=0;j>1;i++) { |
i | 545 | drivers/net/depca.c | j = 1 << i; |
i | 604 | drivers/net/depca.c | for (i=0, j = lp->ringSize; j>1; i++) { |
i | 607 | drivers/net/depca.c | lp->rlen = (unsigned long)(i << 29); |
i | 682 | drivers/net/depca.c | int i,nicsr,ioaddr = dev->base_addr; |
i | 716 | drivers/net/depca.c | for (i=0;i<lp->ringSize;i++){ |
i | 717 | drivers/net/depca.c | printk("\t0x%8.8lx 0x%8.8lx\n",(long)&lp->rx_ring[i].base, |
i | 718 | drivers/net/depca.c | (long)&lp->tx_ring[i].base); |
i | 721 | drivers/net/depca.c | for (i=0;i<lp->ringSize;i++){ |
i | 722 | drivers/net/depca.c | printk("\t0x%8.8lx 0x%8.8lx\n",(long)lp->rx_ring[i].base, |
i | 723 | drivers/net/depca.c | (long)lp->tx_ring[i].base); |
i | 728 | drivers/net/depca.c | for (i=0;i<6;i++){ |
i | 729 | drivers/net/depca.c | printk("%2.2x:",(short)lp->init_block.phys_addr[i]); |
i | 732 | drivers/net/depca.c | for (i=0;i<4;i++){ |
i | 733 | drivers/net/depca.c | printk("%2.2x",(short)lp->init_block.filter[i]); |
i | 778 | drivers/net/depca.c | unsigned long i; |
i | 785 | drivers/net/depca.c | for (i = 0; i < lp->ringSize; i++) { |
i | 786 | drivers/net/depca.c | lp->rx_ring[i].base = (lp->dma_buffs + i*PKT_BUF_SZ) | R_OWN; |
i | 787 | drivers/net/depca.c | lp->rx_ring[i].buf_length = -PKT_BUF_SZ; |
i | 788 | drivers/net/depca.c | lp->tx_ring[i].base = (lp->dma_buffs + (i+lp->ringSize) * PKT_BUF_SZ) & |
i | 793 | drivers/net/depca.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 794 | drivers/net/depca.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
i | 796 | drivers/net/depca.c | for (i = 0; i < 4; i++) { |
i | 797 | drivers/net/depca.c | lp->init_block.filter[i] = 0x0000; |
i | 1205 | drivers/net/depca.c | int i, status=0; |
i | 1211 | drivers/net/depca.c | for (i=0;(i<100) && !(inw(DEPCA_DATA) & IDON); i++); |
i | 1213 | drivers/net/depca.c | if (i!=100) { |
i | 1218 | drivers/net/depca.c | dev->name, i, (long) &lp->init_block, inw(DEPCA_DATA)); |
i | 1223 | drivers/net/depca.c | dev->name, i, (long) &lp->init_block, inw(DEPCA_DATA)); |
i | 1281 | drivers/net/depca.c | short int i; |
i | 1284 | drivers/net/depca.c | for (i=0;i<num_addrs;i++) { /* for each address in the list */ |
i | 1285 | drivers/net/depca.c | if (((char) *(addrs+ETH_ALEN*i) & 0x01) == 1) {/* is multicast address? */ |
i | 1289 | drivers/net/depca.c | bit = (((char)* (addrs+ETH_ALEN*i+octet)) >> j) & 0x01; |
i | 1346 | drivers/net/depca.c | int i, ioaddr = DEPCA_EISA_IO_PORTS; |
i | 1350 | drivers/net/depca.c | for (status = -ENODEV, i=1; i<MAX_EISA_SLOTS; i++, ioaddr+=0x1000) { |
i | 1421 | drivers/net/depca.c | unsigned long i,j,k; |
i | 1426 | drivers/net/depca.c | for (i=0;i<16;i++) { /* copy the first 16 bytes of ROM to */ |
i | 1427 | drivers/net/depca.c | tmpstr[i] = *(unsigned char *)(mem_addr+0xc000+i); /* a temporary string */ |
i | 1429 | drivers/net/depca.c | tmpstr[i]='\0'; |
i | 1432 | drivers/net/depca.c | for (i=0;*signatures[i]!='\0' && *thisName=='\0';i++) { |
i | 1433 | drivers/net/depca.c | for (j=0,k=0;j<16 && k<strlen(signatures[i]);j++) { |
i | 1434 | drivers/net/depca.c | if (signatures[i][k] == tmpstr[j]) { /* track signature */ |
i | 1440 | drivers/net/depca.c | if (k == strlen(signatures[i])) { |
i | 1441 | drivers/net/depca.c | strcpy(thisName,signatures[i]); |
i | 1474 | drivers/net/depca.c | int i, j, nicsr, status = 0; |
i | 1489 | drivers/net/depca.c | for (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) { |
i | 1514 | drivers/net/depca.c | unsigned long i; |
i | 1523 | drivers/net/depca.c | for (i=0; i<4; i++) { |
i | 1524 | drivers/net/depca.c | Eisa.Id[i] = inb(iobase + i); |
i | 1534 | drivers/net/depca.c | for (status = -ENXIO, i=0;*signatures[i] != '\0' && status;i++) { |
i | 1535 | drivers/net/depca.c | if (strstr(ManCode, signatures[i]) != NULL) { |
i | 133 | drivers/net/e2100.c | int i, status; |
i | 153 | drivers/net/e2100.c | for (i = 0; i < 6; i++) |
i | 154 | drivers/net/e2100.c | station_addr[i] = inb(ioaddr + E21_SAPROM + i); |
i | 160 | drivers/net/e2100.c | for (i = 0; i < 6; i++) |
i | 161 | drivers/net/e2100.c | printk(" %02X", station_addr[i]); |
i | 164 | drivers/net/e2100.c | int irqlist[] = {15,11,10,12,5,9,3,4}, i; |
i | 165 | drivers/net/e2100.c | for (i = 0; i < 8; i++) |
i | 166 | drivers/net/e2100.c | if (request_irq (irqlist[i], NULL, 0, "bogus") != -EBUSY) { |
i | 167 | drivers/net/e2100.c | dev->irq = irqlist[i]; |
i | 170 | drivers/net/e2100.c | if (i >= 8) { |
i | 196 | drivers/net/e2100.c | for(i = 0; i < 6; i++) |
i | 197 | drivers/net/e2100.c | if (station_addr[i] != inb(ioaddr + E21_SAPROM + 8 + i)) { |
i | 326 | drivers/net/eexpress.c | int i; |
i | 328 | drivers/net/eexpress.c | for (i = 16; i > 0; i--) |
i | 332 | drivers/net/eexpress.c | for (i = 4; i > 0; i--) { |
i | 348 | drivers/net/eexpress.c | int i; |
i | 369 | drivers/net/eexpress.c | for (i = 0; i < 6; i++) { |
i | 370 | drivers/net/eexpress.c | dev->dev_addr[i] = ((unsigned char*)station_addr)[5-i]; |
i | 371 | drivers/net/eexpress.c | printk(" %02x", dev->dev_addr[i]); |
i | 611 | drivers/net/eexpress.c | int i; |
i | 614 | drivers/net/eexpress.c | for (i = 0; i < 0x20; i += 2) |
i | 719 | drivers/net/eexpress.c | int i; |
i | 728 | drivers/net/eexpress.c | for (i = 8; i >= 0; i--) { |
i | 729 | drivers/net/eexpress.c | short outval = (read_cmd & (1 << i)) ? ctrl_val | EE_DATA_WRITE |
i | 739 | drivers/net/eexpress.c | for (i = 16; i > 0; i--) { |
i | 335 | drivers/net/ewrk3.c | int i;\ |
i | 337 | drivers/net/ewrk3.c | for (i=0;i<5000;i++) inb(EWRK3_CSR);\ |
i | 400 | drivers/net/ewrk3.c | int i, status=0; |
i | 425 | drivers/net/ewrk3.c | for (chksum=0, i=0; i<EEPROM_MAX; i+=2) { |
i | 431 | drivers/net/ewrk3.c | tmp.val = (short)Read_EEPROM(iobase, (i>>1)); |
i | 432 | drivers/net/ewrk3.c | eeprom_image[i] = tmp.c[0]; |
i | 433 | drivers/net/ewrk3.c | eeprom_image[i+1] = tmp.c[1]; |
i | 435 | drivers/net/ewrk3.c | chksum += eeprom_image[i] + eeprom_image[i+1]; |
i | 472 | drivers/net/ewrk3.c | for (i = 0;i < ETH_ALEN - 1;i++) { /* get the ethernet address */ |
i | 473 | drivers/net/ewrk3.c | printk("%2.2x:", dev->dev_addr[i] = |
i | 474 | drivers/net/ewrk3.c | eeprom_image[EEPROM_PADDR0 + i]); |
i | 475 | drivers/net/ewrk3.c | outb(eeprom_image[EEPROM_PADDR0 + i], EWRK3_PAR0 + i); |
i | 477 | drivers/net/ewrk3.c | printk("%2.2x,\n",dev->dev_addr[i] = eeprom_image[EEPROM_PADDR0 + i]); |
i | 478 | drivers/net/ewrk3.c | outb(eeprom_image[EEPROM_PADDR0 + i], EWRK3_PAR0 + i); |
i | 481 | drivers/net/ewrk3.c | for (i = 0; i < ETH_ALEN - 1; i++) { /* get the ethernet addr. */ |
i | 482 | drivers/net/ewrk3.c | printk("%2.2x:", dev->dev_addr[i] = inb(EWRK3_APROM)); |
i | 483 | drivers/net/ewrk3.c | outb(dev->dev_addr[i], EWRK3_PAR0 + i); |
i | 485 | drivers/net/ewrk3.c | printk("%2.2x,\n", dev->dev_addr[i] = inb(EWRK3_APROM)); |
i | 486 | drivers/net/ewrk3.c | outb(dev->dev_addr[i], EWRK3_PAR0 + i); |
i | 651 | drivers/net/ewrk3.c | int i, iobase = dev->base_addr; |
i | 676 | drivers/net/ewrk3.c | for (i=0;i<6;i++){ |
i | 677 | drivers/net/ewrk3.c | printk("%2.2x:",(short)dev->dev_addr[i]); |
i | 847 | drivers/net/ewrk3.c | int i; |
i | 854 | drivers/net/ewrk3.c | for (i=0; i<skb->len; i++) { |
i | 977 | drivers/net/ewrk3.c | int i, iobase = dev->base_addr; |
i | 1046 | drivers/net/ewrk3.c | for (i=0; i<skb->len; i++) { |
i | 1063 | drivers/net/ewrk3.c | for (i=1; i<EWRK3_PKT_STAT_SZ-1; i++) { |
i | 1064 | drivers/net/ewrk3.c | if (pkt_len < i*EWRK3_PKT_BIN_SZ) { |
i | 1065 | drivers/net/ewrk3.c | lp->pktStats.bins[i]++; |
i | 1066 | drivers/net/ewrk3.c | i = EWRK3_PKT_STAT_SZ; |
i | 1252 | drivers/net/ewrk3.c | int i, iobase = dev->base_addr; |
i | 1268 | drivers/net/ewrk3.c | for (i=0; i<(HASH_TABLE_LEN >> 3); i++) { |
i | 1273 | drivers/net/ewrk3.c | i++; |
i | 1279 | drivers/net/ewrk3.c | for (i=0; i<(HASH_TABLE_LEN >> 4) - 1; i++) { |
i | 1282 | drivers/net/ewrk3.c | outb(0x80, EWRK3_DATA); i++; /* insert the broadcast bit */ |
i | 1283 | drivers/net/ewrk3.c | for (; i<(HASH_TABLE_LEN >> 3); i++) { |
i | 1292 | drivers/net/ewrk3.c | for (i=0;i<num_addrs;i++) { /* for each address in the list */ |
i | 1334 | drivers/net/ewrk3.c | int i, iobase, status; |
i | 1337 | drivers/net/ewrk3.c | for (status = -ENODEV, iobase = EWRK3_IO_BASE,i = 0; |
i | 1338 | drivers/net/ewrk3.c | i < 24; |
i | 1339 | drivers/net/ewrk3.c | iobase += EWRK3_IOP_INC, i++) { |
i | 1377 | drivers/net/ewrk3.c | int i, iobase = EWRK3_EISA_IO_PORTS; |
i | 1381 | drivers/net/ewrk3.c | for (status = -ENODEV, i=1; i<MAX_EISA_SLOTS; i++, iobase+=EISA_SLOT_INC) { |
i | 1390 | drivers/net/ewrk3.c | mem_chkd |= (0x01 << (i + 24)); |
i | 1459 | drivers/net/ewrk3.c | int i; |
i | 1463 | drivers/net/ewrk3.c | for (i=0;i<5000;i++) inb(EWRK3_CSR); /* wait 1msec */ |
i | 1473 | drivers/net/ewrk3.c | int i; |
i | 1476 | drivers/net/ewrk3.c | for (i=0;i<5000;i++) inb(EWRK3_CSR); /* wait 1msec */ |
i | 1480 | drivers/net/ewrk3.c | for (i=0;i<75000;i++) inb(EWRK3_CSR); /* wait 15msec */ |
i | 1482 | drivers/net/ewrk3.c | for (i=0;i<5000;i++) inb(EWRK3_CSR); /* wait 1msec */ |
i | 1492 | drivers/net/ewrk3.c | unsigned long i,j,k; |
i | 1496 | drivers/net/ewrk3.c | for (i=0;*signatures[i] != '\0' && *name == '\0';i++) { |
i | 1497 | drivers/net/ewrk3.c | for (j=EEPROM_PNAME7,k=0;j<=EEPROM_PNAME0 && k<strlen(signatures[i]);j++) { |
i | 1498 | drivers/net/ewrk3.c | if (signatures[i][k] == eeprom_image[j]) { /* track signature */ |
i | 1504 | drivers/net/ewrk3.c | if (k == strlen(signatures[i])) { |
i | 1525 | drivers/net/ewrk3.c | int i, j, status = 0; |
i | 1532 | drivers/net/ewrk3.c | for (i=0,j=0;devSig[i] != '\0' && !status;i+=2,j++) { |
i | 1533 | drivers/net/ewrk3.c | if ((devSig[i]=asc2hex(devSig[i]))>=0) { |
i | 1534 | drivers/net/ewrk3.c | devSig[i]<<=4; |
i | 1535 | drivers/net/ewrk3.c | if((devSig[i+1]=asc2hex(devSig[i+1]))>=0){ |
i | 1536 | drivers/net/ewrk3.c | devSig[j]=devSig[i]+devSig[i+1]; |
i | 1557 | drivers/net/ewrk3.c | for (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) { |
i | 1613 | drivers/net/ewrk3.c | int i, j, iobase = dev->base_addr, status = 0; |
i | 1622 | drivers/net/ewrk3.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1623 | drivers/net/ewrk3.c | tmp.addr[i] = dev->dev_addr[i]; |
i | 1636 | drivers/net/ewrk3.c | for (i=0; i<ETH_ALEN; i++) { |
i | 1637 | drivers/net/ewrk3.c | dev->dev_addr[i] = tmp.addr[i]; |
i | 1638 | drivers/net/ewrk3.c | outb(tmp.addr[i], EWRK3_PAR0 + i); |
i | 1678 | drivers/net/ewrk3.c | for (i=0; i<(HASH_TABLE_LEN >> 3); i++) { |
i | 1679 | drivers/net/ewrk3.c | tmp.addr[i] = inb(EWRK3_DATA); |
i | 1753 | drivers/net/ewrk3.c | for (i=0; i<(EEPROM_MAX>>1); i++) { |
i | 1754 | drivers/net/ewrk3.c | tmp.val[i] = (short)Read_EEPROM(iobase, i); |
i | 1756 | drivers/net/ewrk3.c | i = EEPROM_MAX; |
i | 1757 | drivers/net/ewrk3.c | tmp.addr[i++] = inb(EWRK3_CMR); /* Config/Management Reg. */ |
i | 1759 | drivers/net/ewrk3.c | tmp.addr[i++] = inb(EWRK3_PAR0 + j); |
i | 1771 | drivers/net/ewrk3.c | for (i=0; i<(EEPROM_MAX>>1); i++) { |
i | 1772 | drivers/net/ewrk3.c | Write_EEPROM(tmp.val[i], iobase, i); |
i | 122 | drivers/net/hp-plus.c | int i; |
i | 130 | drivers/net/hp-plus.c | for (i = 0; hpplus_portlist[i]; i++) { |
i | 131 | drivers/net/hp-plus.c | int ioaddr = hpplus_portlist[i]; |
i | 145 | drivers/net/hp-plus.c | int i; |
i | 163 | drivers/net/hp-plus.c | for(i = 0; i < ETHER_ADDR_LEN; i++) { |
i | 164 | drivers/net/hp-plus.c | unsigned char inval = inb(ioaddr + 8 + i); |
i | 165 | drivers/net/hp-plus.c | dev->dev_addr[i] = inval; |
i | 80 | drivers/net/hp.c | int i; |
i | 88 | drivers/net/hp.c | for (i = 0; hppclan_portlist[i]; i++) { |
i | 89 | drivers/net/hp.c | int ioaddr = hppclan_portlist[i]; |
i | 102 | drivers/net/hp.c | int i, board_id, wordmode; |
i | 132 | drivers/net/hp.c | for(i = 0; i < ETHER_ADDR_LEN; i++) |
i | 133 | drivers/net/hp.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 316 | drivers/net/lance.c | int i, reset_val, lance_version; |
i | 380 | drivers/net/lance.c | for (i = 0; i < 6; i++) |
i | 381 | drivers/net/lance.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 405 | drivers/net/lance.c | for (i = 0; i < 6; i++) |
i | 406 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
i | 492 | drivers/net/lance.c | for (i = 0; i < 4; i++) { |
i | 493 | drivers/net/lance.c | int dma = dmas[i]; |
i | 519 | drivers/net/lance.c | if (i == 4) { /* Failure: bail. */ |
i | 551 | drivers/net/lance.c | int i; |
i | 603 | drivers/net/lance.c | i = 0; |
i | 604 | drivers/net/lance.c | while (i++ < 100) |
i | 615 | drivers/net/lance.c | dev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA)); |
i | 625 | drivers/net/lance.c | int i; |
i | 631 | drivers/net/lance.c | for (i = 0; i < RX_RING_SIZE; i++) { |
i | 632 | drivers/net/lance.c | lp->rx_ring[i].base = (lp->rx_buffs + i*PKT_BUF_SZ) | 0x80000000; |
i | 633 | drivers/net/lance.c | lp->rx_ring[i].buf_length = -PKT_BUF_SZ; |
i | 637 | drivers/net/lance.c | for (i = 0; i < TX_RING_SIZE; i++) { |
i | 638 | drivers/net/lance.c | lp->tx_ring[i].base = 0; |
i | 642 | drivers/net/lance.c | for (i = 0; i < 6; i++) |
i | 643 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
i | 669 | drivers/net/lance.c | int i; |
i | 673 | drivers/net/lance.c | for (i = 0 ; i < RX_RING_SIZE; i++) |
i | 674 | drivers/net/lance.c | printk("%s %08x %04x %04x", i & 0x3 ? "" : "\n ", |
i | 675 | drivers/net/lance.c | lp->rx_ring[i].base, -lp->rx_ring[i].buf_length, |
i | 676 | drivers/net/lance.c | lp->rx_ring[i].msg_length); |
i | 677 | drivers/net/lance.c | for (i = 0 ; i < TX_RING_SIZE; i++) |
i | 678 | drivers/net/lance.c | printk("%s %08x %04x %04x", i & 0x3 ? "" : "\n ", |
i | 679 | drivers/net/lance.c | lp->tx_ring[i].base, -lp->tx_ring[i].length, |
i | 680 | drivers/net/lance.c | lp->tx_ring[i].misc); |
i | 896 | drivers/net/lance.c | int i; |
i | 922 | drivers/net/lance.c | for (i=0; i < RX_RING_SIZE; i++) |
i | 923 | drivers/net/lance.c | if (lp->rx_ring[(entry+i) & RX_RING_MOD_MASK].base < 0) |
i | 926 | drivers/net/lance.c | if (i > RX_RING_SIZE -2) { |
i | 1025 | drivers/net/lance.c | int i; |
i | 1028 | drivers/net/lance.c | for (i = 0; i < 4; i++) { |
i | 1029 | drivers/net/lance.c | outw(8 + i, ioaddr+LANCE_ADDR); |
i | 1030 | drivers/net/lance.c | outw(multicast_table[i], ioaddr+LANCE_DATA); |
i | 99 | drivers/net/loopback.c | int i; |
i | 136 | drivers/net/loopback.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 137 | drivers/net/loopback.c | skb_queue_head_init(&dev->buffs[i]); |
i | 101 | drivers/net/ne.c | int i; |
i | 109 | drivers/net/ne.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 110 | drivers/net/ne.c | int ioaddr = netcard_portlist[i]; |
i | 123 | drivers/net/ne.c | int i; |
i | 170 | drivers/net/ne.c | for (i = 0; i < sizeof(program_seq)/sizeof(program_seq[0]); i++) |
i | 171 | drivers/net/ne.c | outb_p(program_seq[i].value, ioaddr + program_seq[i].offset); |
i | 173 | drivers/net/ne.c | for(i = 0; i < 32 /*sizeof(SA_prom)*/; i+=2) { |
i | 174 | drivers/net/ne.c | SA_prom[i] = inb(ioaddr + NE_DATAPORT); |
i | 175 | drivers/net/ne.c | SA_prom[i+1] = inb(ioaddr + NE_DATAPORT); |
i | 176 | drivers/net/ne.c | if (SA_prom[i] != SA_prom[i+1]) |
i | 186 | drivers/net/ne.c | for (i = 0; i < 16; i++) |
i | 187 | drivers/net/ne.c | SA_prom[i] = SA_prom[i+i]; |
i | 195 | drivers/net/ne.c | for(i = 0; i < ETHER_ADDR_LEN; i++) { |
i | 196 | drivers/net/ne.c | dev->dev_addr[i] = SA_prom[i]; |
i | 197 | drivers/net/ne.c | printk(" %2.2x", SA_prom[i]); |
i | 213 | drivers/net/ne.c | for (i = 0; bad_clone_list[i].name8; i++) { |
i | 214 | drivers/net/ne.c | if (SA_prom[0] == bad_clone_list[i].SAprefix[0] && |
i | 215 | drivers/net/ne.c | SA_prom[1] == bad_clone_list[i].SAprefix[1] && |
i | 216 | drivers/net/ne.c | SA_prom[2] == bad_clone_list[i].SAprefix[2]) { |
i | 218 | drivers/net/ne.c | name = bad_clone_list[i].name16; |
i | 220 | drivers/net/ne.c | name = bad_clone_list[i].name8; |
i | 225 | drivers/net/ne.c | if (bad_clone_list[i].name8 == NULL) { |
i | 265 | drivers/net/ne.c | for(i = 0; i < ETHER_ADDR_LEN; i++) |
i | 266 | drivers/net/ne.c | dev->dev_addr[i] = SA_prom[i]; |
i | 95 | drivers/net/net_init.c | int i; |
i | 104 | drivers/net/net_init.c | for (i = 0; i < MAX_ETH_CARDS; ++i) |
i | 105 | drivers/net/net_init.c | if (ethdev_index[i] == NULL) { |
i | 106 | drivers/net/net_init.c | sprintf(pname, "eth%d", i); |
i | 140 | drivers/net/net_init.c | for (i = 0; i < MAX_ETH_CARDS; ++i) |
i | 141 | drivers/net/net_init.c | if (ethdev_index[i] == NULL) { |
i | 142 | drivers/net/net_init.c | sprintf(dev->name, "eth%d", i); |
i | 143 | drivers/net/net_init.c | ethdev_index[i] = dev; |
i | 163 | drivers/net/net_init.c | int i; |
i | 166 | drivers/net/net_init.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 167 | drivers/net/net_init.c | skb_queue_head_init(&dev->buffs[i]); |
i | 171 | drivers/net/net_init.c | i = simple_strtoul(dev->name + 3, NULL, 0); |
i | 172 | drivers/net/net_init.c | if (ethdev_index[i] == NULL) { |
i | 173 | drivers/net/net_init.c | ethdev_index[i] = dev; |
i | 175 | drivers/net/net_init.c | else if (dev != ethdev_index[i]) { |
i | 190 | drivers/net/net_init.c | for (i = 0; i < ETH_ALEN; i++) { |
i | 191 | drivers/net/net_init.c | dev->broadcast[i]=0xff; |
i | 224 | drivers/net/net_init.c | int i=MAX_ETH_CARDS; |
i | 232 | drivers/net/net_init.c | for (i = 0; i < MAX_ETH_CARDS; ++i) |
i | 233 | drivers/net/net_init.c | if (ethdev_index[i] == NULL) { |
i | 234 | drivers/net/net_init.c | sprintf(dev->name, "eth%d", i); |
i | 236 | drivers/net/net_init.c | ethdev_index[i] = dev; |
i | 242 | drivers/net/net_init.c | if (i < MAX_ETH_CARDS) ethdev_index[i] = NULL; |
i | 265 | drivers/net/net_init.c | int i; |
i | 297 | drivers/net/net_init.c | for (i = 0; i < MAX_ETH_CARDS; ++i) { |
i | 298 | drivers/net/net_init.c | if (ethdev_index[i] == dev) { |
i | 299 | drivers/net/net_init.c | ethdev_index[i] = NULL; |
i | 130 | drivers/net/ni52.c | #define DELAY(x) {int i=jiffies; \ |
i | 132 | drivers/net/ni52.c | while(i+(x)>jiffies); \ |
i | 141 | drivers/net/ni52.c | #define WAIT_4_SCB_CMD() { int i; \ |
i | 142 | drivers/net/ni52.c | for(i=0;i<1024;i++) { \ |
i | 145 | drivers/net/ni52.c | if(i == 1023) { \ |
i | 252 | drivers/net/ni52.c | int i; |
i | 263 | drivers/net/ni52.c | for(i=0;i<2;i++) |
i | 265 | drivers/net/ni52.c | p->iscp = (struct iscp_struct *) iscp_addrs[i]; |
i | 351 | drivers/net/ni52.c | int i,size; |
i | 353 | drivers/net/ni52.c | for(i=0;i<ETH_ALEN;i++) |
i | 354 | drivers/net/ni52.c | dev->dev_addr[i] = inb(dev->base_addr+i); |
i | 384 | drivers/net/ni52.c | for(i=0;;i++) |
i | 386 | drivers/net/ni52.c | if(!memaddrs[i]) { |
i | 390 | drivers/net/ni52.c | dev->mem_start = memaddrs[i]; |
i | 454 | drivers/net/ni52.c | int i,result=0; |
i | 573 | drivers/net/ni52.c | for(i=0;i<2;i++) |
i | 575 | drivers/net/ni52.c | p->nop_cmds[i] = (struct nop_cmd_struct *)ptr; |
i | 576 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_cmd = CMD_NOP; |
i | 577 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_status = 0; |
i | 578 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_link = make16((p->nop_cmds[i])); |
i | 584 | drivers/net/ni52.c | for(i=0;i<NUM_XMIT_BUFFS;i++) |
i | 586 | drivers/net/ni52.c | p->nop_cmds[i] = (struct nop_cmd_struct *)ptr; |
i | 587 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_cmd = CMD_NOP; |
i | 588 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_status = 0; |
i | 589 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_link = make16((p->nop_cmds[i])); |
i | 591 | drivers/net/ni52.c | p->xmit_cmds[i] = (struct transmit_cmd_struct *)ptr; /*transmit cmd/buff 0*/ |
i | 621 | drivers/net/ni52.c | for(i=0;i<num_addrs;i++) |
i | 622 | drivers/net/ni52.c | memcpy((char *) mc_cmd->mc_list[i],((char (*)[6]) addrs)[i],6); |
i | 638 | drivers/net/ni52.c | for(i=0;i<NUM_XMIT_BUFFS;i++) |
i | 640 | drivers/net/ni52.c | p->xmit_cbuffs[i] = (char *)ptr; /* char-buffs */ |
i | 642 | drivers/net/ni52.c | p->xmit_buffs[i] = (struct tbd_struct *)ptr; /* TBD */ |
i | 649 | drivers/net/ni52.c | memset((char *)(p->xmit_cmds[i]) ,0, sizeof(struct transmit_cmd_struct)); |
i | 650 | drivers/net/ni52.c | memset((char *)(p->xmit_buffs[i]),0, sizeof(struct tbd_struct)); |
i | 651 | drivers/net/ni52.c | p->xmit_cmds[i]->cmd_status = STAT_COMPL; |
i | 652 | drivers/net/ni52.c | p->xmit_cmds[i]->cmd_cmd = CMD_XMIT | CMD_INT; |
i | 653 | drivers/net/ni52.c | p->xmit_cmds[i]->tbd_offset = make16((p->xmit_buffs[i])); |
i | 654 | drivers/net/ni52.c | p->xmit_buffs[i]->next = 0xffff; |
i | 655 | drivers/net/ni52.c | p->xmit_buffs[i]->buffer = make24((p->xmit_cbuffs[i])); |
i | 689 | drivers/net/ni52.c | int i; |
i | 695 | drivers/net/ni52.c | for(i = 0; i < p->num_recv_buffs; i++) |
i | 696 | drivers/net/ni52.c | rfd[i].next = make16(rfd + (i+1) % p->num_recv_buffs); |
i | 707 | drivers/net/ni52.c | for(i=0;i<p->num_recv_buffs;i++) |
i | 709 | drivers/net/ni52.c | rbd[i].next = make16((rbd + (i+1) % p->num_recv_buffs)); |
i | 710 | drivers/net/ni52.c | rbd[i].size = RECV_BUFF_SIZE; |
i | 711 | drivers/net/ni52.c | rbd[i].buffer = make24(ptr); |
i | 929 | drivers/net/ni52.c | int len,i; |
i | 995 | drivers/net/ni52.c | for(i=0;i<16;i++) |
i | 1003 | drivers/net/ni52.c | if(!i) |
i | 1010 | drivers/net/ni52.c | if(i==15) |
i | 208 | drivers/net/ni65.c | int i; |
i | 212 | drivers/net/ni65.c | for(i=0;i<6;i++) |
i | 213 | drivers/net/ni65.c | station_addr[i] = dev->dev_addr[i] = inb(PORT+L_EBASE+i); |
i | 275 | drivers/net/ni65.c | for(i=0;i<TMDNUM;i++) |
i | 277 | drivers/net/ni65.c | if( (p->tmdbufs[i] = kmalloc(T_BUF_SIZE,GFP_ATOMIC)) == NULL) { |
i | 281 | drivers/net/ni65.c | if( (unsigned long) (p->tmdbufs[i]+T_BUF_SIZE) & 0xff000000) { |
i | 288 | drivers/net/ni65.c | for(i=0;i<RMDNUM;i++) |
i | 290 | drivers/net/ni65.c | if( (p->recv_skb[i] = (struct sk_buff *) alloc_skb(R_BUF_SIZE,GFP_ATOMIC)) == NULL) { |
i | 294 | drivers/net/ni65.c | if( (unsigned long) (p->recv_skb[i]->data + R_BUF_SIZE) & 0xff000000) { |
i | 309 | drivers/net/ni65.c | int i,j; |
i | 336 | drivers/net/ni65.c | for(i=0;i<TMDNUM;i++) |
i | 338 | drivers/net/ni65.c | tmdp = p->tmdhead + i; |
i | 340 | drivers/net/ni65.c | tmdp->u.buffer = (unsigned long) p->tmdbufs[i]; |
i | 346 | drivers/net/ni65.c | for(i=0;i<RMDNUM;i++) |
i | 348 | drivers/net/ni65.c | rmdp = p->rmdhead + i; |
i | 349 | drivers/net/ni65.c | rmdp->u.buffer = (unsigned long) p->recv_skb[i]->data; |
i | 355 | drivers/net/ni65.c | for(i=0;i<6;i++) |
i | 357 | drivers/net/ni65.c | p->ib.eaddr[i] = dev->dev_addr[i]; |
i | 360 | drivers/net/ni65.c | for(i=0;i<8;i++) |
i | 361 | drivers/net/ni65.c | p->ib.filter[i] = 0; |
i | 377 | drivers/net/ni65.c | for(i=0;i<5;i++) |
i | 382 | drivers/net/ni65.c | if(i == 5) |
i | 850 | drivers/net/plip.c | int i; |
i | 861 | drivers/net/plip.c | for (i=0; i < ETH_ALEN - sizeof(unsigned long); i++) |
i | 862 | drivers/net/plip.c | eth->h_dest[i] = 0xfc; |
i | 863 | drivers/net/plip.c | memcpy(&(eth->h_dest[i]), &dst, sizeof(unsigned long)); |
i | 924 | drivers/net/plip.c | int i; |
i | 952 | drivers/net/plip.c | for (i=0; i < ETH_ALEN - sizeof(unsigned long); i++) |
i | 953 | drivers/net/plip.c | dev->dev_addr[i] = 0xfc; |
i | 954 | drivers/net/plip.c | memcpy(&(dev->dev_addr[i]), &dev->pa_addr, sizeof(unsigned long)); |
i | 215 | drivers/net/ppp.c | int i; |
i | 255 | drivers/net/ppp.c | if ((i = tty_register_ldisc(N_PPP, &ppp_ldisc)) == 0) |
i | 258 | drivers/net/ppp.c | printk(KERN_ERR "error registering line discipline: %d\n", i); |
i | 291 | drivers/net/ppp.c | for (i = 0; i < DEV_NUMBUFFS; i++) |
i | 292 | drivers/net/ppp.c | skb_queue_head_init(&dev->buffs[i]); /* = NULL if NET02D */ |
i | 799 | drivers/net/ppp.c | i, count; |
i | 805 | drivers/net/ppp.c | i = tail; |
i | 808 | drivers/net/ppp.c | while (i != head) { |
i | 809 | drivers/net/ppp.c | buffer [count] = tty->read_q.buf[i]; |
i | 814 | drivers/net/ppp.c | i = (i + 1) & (TTY_BUF_SIZE - 1); |
i | 870 | drivers/net/ppp.c | int i; |
i | 872 | drivers/net/ppp.c | for (i = 0; i < n; i++, c++) { |
i | 1230 | drivers/net/ppp.c | int len, i; |
i | 1280 | drivers/net/ppp.c | i = len; |
i | 1281 | drivers/net/ppp.c | while (i-- > 0) { |
i | 1330 | drivers/net/ppp.c | int i; |
i | 1376 | drivers/net/ppp.c | i = nr; |
i | 1377 | drivers/net/ppp.c | while (i-- > 0) |
i | 1402 | drivers/net/ppp.c | ppp_ioctl(struct tty_struct *tty, struct file *file, unsigned int i, |
i | 1420 | drivers/net/ppp.c | switch (i) { |
i | 1601 | drivers/net/ppp.c | error = n_tty_ioctl(tty, file, i, l); |
i | 1611 | drivers/net/ppp.c | i, |
i | 1903 | drivers/net/ppp.c | int i; |
i | 1904 | drivers/net/ppp.c | for (i = 0; i < PPP_NRUNIT; i++) |
i | 1905 | drivers/net/ppp.c | if (ppp_ctrl[i].inuse && (ppp_ctrl[i].tty == tty)) return &ppp_ctrl[i]; |
i | 1915 | drivers/net/ppp.c | int i; |
i | 1916 | drivers/net/ppp.c | for (i = 0; i < PPP_NRUNIT; i++) |
i | 1917 | drivers/net/ppp.c | if (!set_bit(0, &ppp_ctrl[i].inuse)) return &ppp_ctrl[i]; |
i | 1973 | drivers/net/ppp.c | int i; |
i | 1975 | drivers/net/ppp.c | for (i = 0; i < ppp->rcount - 2; i++, c++) |
i | 2068 | drivers/net/ppp.c | int i; |
i | 2070 | drivers/net/ppp.c | for (i = 0; i < PPP_NRUNIT; i++) { |
i | 2071 | drivers/net/ppp.c | if ((err = register_netdev(&dev_ppp[i]))) { |
i | 2084 | drivers/net/ppp.c | int i; |
i | 2090 | drivers/net/ppp.c | for (i = 0; i < PPP_NRUNIT; i++) { |
i | 2091 | drivers/net/ppp.c | unregister_netdev(&dev_ppp[i]); |
i | 2093 | drivers/net/ppp.c | if ((i = tty_register_ldisc(N_PPP, NULL))) { |
i | 2094 | drivers/net/ppp.c | printk("PPP: can't unregister line discipline (err = %d)\n", i); |
i | 638 | drivers/net/sk_g16.c | int i,j; /* Counters */ |
i | 758 | drivers/net/sk_g16.c | for (i = 0, j = 0; i < ETH_ALEN; i++, j+=2) |
i | 760 | drivers/net/sk_g16.c | dev->dev_addr[i] = board->rom[j]; |
i | 817 | drivers/net/sk_g16.c | for (i = 0; i < TMDNUM; i++) |
i | 819 | drivers/net/sk_g16.c | p->tmdbufs[i] = &(p->ram)->tmdbuf[i]; |
i | 822 | drivers/net/sk_g16.c | for (i = 0; i < RMDNUM; i++) |
i | 824 | drivers/net/sk_g16.c | p->rmdbufs[i] = &(p->ram)->rmdbuf[i]; |
i | 864 | drivers/net/sk_g16.c | int i = 0; |
i | 877 | drivers/net/sk_g16.c | i = 0; |
i | 890 | drivers/net/sk_g16.c | irqval = request_irq(irqtab[i], &SK_interrupt, 0, "sk_g16"); |
i | 891 | drivers/net/sk_g16.c | i++; |
i | 892 | drivers/net/sk_g16.c | } while (irqval && irqtab[i]); |
i | 900 | drivers/net/sk_g16.c | dev->irq = irqtab[--i]; |
i | 902 | drivers/net/sk_g16.c | outb(i<<2, SK_POS4); /* Set Card on probed IRQ */ |
i | 924 | drivers/net/sk_g16.c | int i = 0; |
i | 936 | drivers/net/sk_g16.c | case 3: i = 0; |
i | 938 | drivers/net/sk_g16.c | case 5: i = 1; |
i | 940 | drivers/net/sk_g16.c | case 2: i = 2; |
i | 942 | drivers/net/sk_g16.c | case 11:i = 3; |
i | 952 | drivers/net/sk_g16.c | outb(i<<2, SK_POS4); /* Set IRQ on card */ |
i | 961 | drivers/net/sk_g16.c | if (!(i = SK_lance_init(dev, 0))) /* LANCE init OK? */ |
i | 1029 | drivers/net/sk_g16.c | int i; |
i | 1044 | drivers/net/sk_g16.c | for (i = 0; i < TMDNUM; i++) /* Init all TMD's */ |
i | 1046 | drivers/net/sk_g16.c | tmdp = p->tmdhead + i; |
i | 1048 | drivers/net/sk_g16.c | tmdp->u.buffer = (unsigned long) p->tmdbufs[i]; /* assign buffer */ |
i | 1059 | drivers/net/sk_g16.c | for (i = 0; i < RMDNUM; i++) /* Init all RMD's */ |
i | 1061 | drivers/net/sk_g16.c | rmdp = p->rmdhead + i; |
i | 1064 | drivers/net/sk_g16.c | rmdp->u.buffer = (unsigned long) p->rmdbufs[i]; /* assign buffer */ |
i | 1083 | drivers/net/sk_g16.c | for (i = 0; i < ETH_ALEN; i++) /* Set physical address */ |
i | 1085 | drivers/net/sk_g16.c | (p->ram)->ib.paddr[i] = dev->dev_addr[i]; |
i | 1088 | drivers/net/sk_g16.c | for (i = 0; i < 8; i++) /* Set multicast, logical address */ |
i | 1090 | drivers/net/sk_g16.c | (p->ram)->ib.laddr[i] = 0; /* We do not use logical addressing */ |
i | 1141 | drivers/net/sk_g16.c | for (i = 0; (i < 100) && !(SK_rread_reg() & CSR0_IDON); i++) |
i | 1144 | drivers/net/sk_g16.c | if (i >= 100) /* Something is wrong ! */ |
i | 1159 | drivers/net/sk_g16.c | PRINTK(("## %s: init done after %d ticks\n", SK_NAME, i)); |
i | 1781 | drivers/net/sk_g16.c | int i,j; |
i | 1790 | drivers/net/sk_g16.c | for (i = 0; (rom_location[i] != 0) && (rom_found == 0); i++) |
i | 1793 | drivers/net/sk_g16.c | PRINTK(("## Trying ROM location %#08x", rom_location[i])); |
i | 1798 | drivers/net/sk_g16.c | test_byte = (unsigned char *) (rom_location[i]+j); |
i | 1812 | drivers/net/sk_g16.c | SK_NAME, rom_location[(i-1)])); |
i | 1814 | drivers/net/sk_g16.c | return (rom_location[--i]); |
i | 1852 | drivers/net/sk_g16.c | int i; |
i | 1855 | drivers/net/sk_g16.c | for (i = 0; i < 10 ; i++) /* Delay min 5ms */ |
i | 2083 | drivers/net/sk_g16.c | int i; |
i | 2096 | drivers/net/sk_g16.c | for(i = 0; i < TMDNUM; i++) |
i | 2098 | drivers/net/sk_g16.c | if (!(i % 3)) /* Every third line do a newline */ |
i | 2102 | drivers/net/sk_g16.c | printk("tmdbufs%d: %#08x ", (i+1), (int) p->tmdbufs[i]); |
i | 2106 | drivers/net/sk_g16.c | for(i = 0; i < RMDNUM; i++) |
i | 2108 | drivers/net/sk_g16.c | if (!(i % 3)) /* Every third line do a newline */ |
i | 2112 | drivers/net/sk_g16.c | printk("rmdbufs%d: %#08x ", (i+1), (int) p->rmdbufs[i]); |
i | 127 | drivers/net/skeleton.c | int i; |
i | 135 | drivers/net/skeleton.c | for (i = 0; netcard_portlist[i]; i++) { |
i | 136 | drivers/net/skeleton.c | int ioaddr = netcard_portlist[i]; |
i | 154 | drivers/net/skeleton.c | int i; |
i | 178 | drivers/net/skeleton.c | for (i = 0; i < 6; i++) |
i | 179 | drivers/net/skeleton.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
i | 233 | drivers/net/skeleton.c | for (i = 7; i > 0; i--) |
i | 235 | drivers/net/skeleton.c | dev->dma = i; |
i | 238 | drivers/net/skeleton.c | if (i <= 0) { |
i | 96 | drivers/net/slhc.c | register short i; |
i | 147 | drivers/net/slhc.c | for(i = comp->tslot_limit; i > 0; --i){ |
i | 148 | drivers/net/slhc.c | ts[i].cs_this = i; |
i | 149 | drivers/net/slhc.c | ts[i].next = &(ts[i - 1]); |
i | 548 | drivers/net/slhc.c | register short i; |
i | 549 | drivers/net/slhc.c | i = ntohs(ip->tot_len) - hdrlen; |
i | 550 | drivers/net/slhc.c | thp->ack_seq = htonl( ntohl(thp->ack_seq) + i); |
i | 551 | drivers/net/slhc.c | thp->seq = htonl( ntohl(thp->seq) + i); |
i | 104 | drivers/net/slip.c | int i; |
i | 106 | drivers/net/slip.c | for (i = 0; i < SL_NRUNIT; i++) { |
i | 107 | drivers/net/slip.c | sl = &sl_ctrl[i]; |
i | 869 | drivers/net/slip.c | int i; |
i | 885 | drivers/net/slip.c | for (i = 0; i < len; ++i) { |
i | 886 | drivers/net/slip.c | v = (v << 8) | s[i]; |
i | 1055 | drivers/net/slip.c | int i; |
i | 1092 | drivers/net/slip.c | if ((i = tty_register_ldisc(N_SLIP, &sl_ldisc)) != 0) { |
i | 1093 | drivers/net/slip.c | printk("SLIP: can't register line discipline (err = %d)\n", i); |
i | 1128 | drivers/net/slip.c | for (i = 0; i < DEV_NUMBUFFS; i++) { |
i | 1129 | drivers/net/slip.c | skb_queue_head_init(&dev->buffs[i]); |
i | 1175 | drivers/net/slip.c | int i; |
i | 1177 | drivers/net/slip.c | for (i = 0; i < SL_NRUNIT; i++) { |
i | 1178 | drivers/net/slip.c | if ((err = register_netdev(&dev_slip[i]))) { |
i | 1191 | drivers/net/slip.c | int i; |
i | 1197 | drivers/net/slip.c | for (i = 0; i < SL_NRUNIT; i++) { |
i | 1198 | drivers/net/slip.c | unregister_netdev(&dev_slip[i]); |
i | 1200 | drivers/net/slip.c | if ((i = tty_register_ldisc(N_SLIP, NULL))) { |
i | 1201 | drivers/net/slip.c | printk("SLIP: can't unregister line discipline (err = %d)\n", i); |
i | 90 | drivers/net/smc-ultra.c | int i; |
i | 98 | drivers/net/smc-ultra.c | for (i = 0; ultra_portlist[i]; i++) { |
i | 99 | drivers/net/smc-ultra.c | int ioaddr = ultra_portlist[i]; |
i | 112 | drivers/net/smc-ultra.c | int i; |
i | 129 | drivers/net/smc-ultra.c | for (i = 0; i < 8; i++) |
i | 130 | drivers/net/smc-ultra.c | checksum += inb(ioaddr + 8 + i); |
i | 141 | drivers/net/smc-ultra.c | for (i = 0; i < 6; i++) |
i | 142 | drivers/net/smc-ultra.c | printk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i)); |
i | 208 | drivers/net/tulip.c | int i; |
i | 229 | drivers/net/tulip.c | for (i = 0; i < 6; i++) { |
i | 234 | drivers/net/tulip.c | printk(" %2.2x", dev->dev_addr[i] = value); |
i | 299 | drivers/net/tulip.c | int *setup_frm = tp->setup_frame, i; |
i | 306 | drivers/net/tulip.c | for (i = 1; i < 16; i++) { |
i | 352 | drivers/net/tulip.c | int i; |
i | 358 | drivers/net/tulip.c | for (i = 0; i < RX_RING_SIZE; i++) { |
i | 359 | drivers/net/tulip.c | tp->rx_ring[i].status = 0x80000000; /* Owned by Tulip chip */ |
i | 360 | drivers/net/tulip.c | tp->rx_ring[i].length = PKT_BUF_SZ; |
i | 361 | drivers/net/tulip.c | tp->rx_ring[i].buffer1 = (char *)(tp->rx_buffs + i*PKT_BUF_SZ); |
i | 362 | drivers/net/tulip.c | tp->rx_ring[i].buffer2 = (char *)&tp->rx_ring[i+1]; |
i | 365 | drivers/net/tulip.c | tp->rx_ring[i-1].length = PKT_BUF_SZ | 0x02000000; |
i | 366 | drivers/net/tulip.c | tp->rx_ring[i-1].buffer2 = (char *)&tp->rx_ring[0]; |
i | 370 | drivers/net/tulip.c | for (i = 0; i < TX_RING_SIZE; i++) { |
i | 371 | drivers/net/tulip.c | tp->tx_ring[i].status = 0x00000000; |
i | 385 | drivers/net/tulip.c | int i; |
i | 392 | drivers/net/tulip.c | for (i = 0; i < RX_RING_SIZE; i++) |
i | 393 | drivers/net/tulip.c | printk(" %8.8x", (unsigned int)tp->rx_ring[i].status); |
i | 395 | drivers/net/tulip.c | for (i = 0; i < TX_RING_SIZE; i++) |
i | 396 | drivers/net/tulip.c | printk(" %8.8x", (unsigned int)tp->tx_ring[i].status); |
i | 578 | drivers/net/tulip.c | int i; |
i | 608 | drivers/net/tulip.c | for (i=0; i < RX_RING_SIZE; i++) |
i | 609 | drivers/net/tulip.c | if (lp->rx_ring[(entry+i) % RX_RING_SIZE].status < 0) |
i | 612 | drivers/net/tulip.c | if (i > RX_RING_SIZE -2) { |
i | 693 | drivers/net/tulip.c | int i; |
i | 699 | drivers/net/tulip.c | for(i = 0; i < num_addrs; i++) { |
i | 710 | drivers/net/tulip.c | } while (++i < 16); |
i | 719 | drivers/net/tulip.c | int i; |
i | 723 | drivers/net/tulip.c | for (i = 0; i < 6; i++) |
i | 724 | drivers/net/tulip.c | printk(" %2.2x", dev->dev_addr[i] = ((unsigned char *)addr)[i]); |
i | 425 | drivers/net/wavelan.c | int i; |
i | 440 | drivers/net/wavelan.c | for (i = 1000; i > 0; i--) |
i | 449 | drivers/net/wavelan.c | if (i <= 0) |
i | 465 | drivers/net/wavelan.c | int i; |
i | 475 | drivers/net/wavelan.c | for (i = 64; i > 0; i--) |
i | 484 | drivers/net/wavelan.c | if (i <= 0 || !(cb.ac_status & AC_SFLD_OK)) |
i | 507 | drivers/net/wavelan.c | int i; |
i | 527 | drivers/net/wavelan.c | for (i = 0; i < I82586_MEMZ; i += sizeof(zeroes)) |
i | 528 | drivers/net/wavelan.c | obram_write(ioaddr, i, &zeroes[0], sizeof(zeroes)); |
i | 557 | drivers/net/wavelan.c | for (i = 1000; i > 0; i--) |
i | 567 | drivers/net/wavelan.c | if (i <= 0) |
i | 570 | drivers/net/wavelan.c | for (i = 15; i > 0; i--) |
i | 580 | drivers/net/wavelan.c | if (i <= 0) |
i | 710 | drivers/net/wavelan.c | int i; |
i | 746 | drivers/net/wavelan.c | for (i = 0; i < nels(iobase); i++) |
i | 748 | drivers/net/wavelan.c | if (check_region(iobase[i], sizeof(ha_t))) |
i | 751 | drivers/net/wavelan.c | if (wavelan_probe1(dev, iobase[i]) == 0) |
i | 764 | drivers/net/wavelan.c | int i; |
i | 815 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 816 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? " " : ":", dev->dev_addr[i]); |
i | 936 | drivers/net/wavelan.c | int i; |
i | 947 | drivers/net/wavelan.c | for (i = 0, rx = lp->rx_head; i < NRXBLOCKS; i++, rx = rx_next) |
i | 949 | drivers/net/wavelan.c | rx_next = (i == NRXBLOCKS - 1) ? lp->rx_head : rx + RXBLOCKZ; |
i | 952 | drivers/net/wavelan.c | fd.fd_command = (i == NRXBLOCKS - 1) ? FD_COMMAND_EL : 0; |
i | 974 | drivers/net/wavelan.c | for (i = 1000; i > 0; i--) |
i | 983 | drivers/net/wavelan.c | if (i <= 0) |
i | 998 | drivers/net/wavelan.c | int i; |
i | 1011 | drivers/net/wavelan.c | i = 0, txblock = OFFSET_CU; |
i | 1012 | drivers/net/wavelan.c | i < NTXBLOCKS; |
i | 1013 | drivers/net/wavelan.c | i++, txblock += TXBLOCKZ |
i | 1055 | drivers/net/wavelan.c | for (i = 1000; i > 0; i--) |
i | 1064 | drivers/net/wavelan.c | if (i <= 0) |
i | 1300 | drivers/net/wavelan.c | int i; |
i | 1302 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1304 | drivers/net/wavelan.c | if (a0[i] != a1[i]) |
i | 1305 | drivers/net/wavelan.c | return a0[i] - a1[i]; |
i | 1417 | drivers/net/wavelan.c | int i; |
i | 1434 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1435 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", addr[i]); |
i | 1445 | drivers/net/wavelan.c | int i; |
i | 1449 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1450 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", fd.fd_dest[i]); |
i | 1454 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1455 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", fd.fd_src[i]); |
i | 1462 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1463 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", addr[i]); |
i | 1468 | drivers/net/wavelan.c | for (i = 0; i < WAVELAN_ADDR_SIZE; i++) |
i | 1469 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? "" : ":", addr[i]); |
i | 1492 | drivers/net/wavelan.c | int i; |
i | 1500 | drivers/net/wavelan.c | for (i = 0; i < maxi; i++) |
i | 1504 | drivers/net/wavelan.c | c = skb->data[i]; |
i | 1506 | drivers/net/wavelan.c | printk(" %c", skb->data[i]); |
i | 1508 | drivers/net/wavelan.c | printk("%02x", skb->data[i]); |
i | 2030 | drivers/net/wavelan.c | wavelan_cu_show_one(device *dev, net_local *lp, int i, unsigned short p) |
i | 2037 | drivers/net/wavelan.c | printk("%d: 0x%x:", i, p); |
i | 2259 | drivers/net/wavelan.c | unsigned int i; |
i | 2267 | drivers/net/wavelan.c | for (i = 0, p = lp->tx_first_in_use; i < NTXBLOCKS; i++) |
i | 2269 | drivers/net/wavelan.c | wavelan_cu_show_one(dev, lp, i, p); |
i | 80 | drivers/net/wd.c | int i; |
i | 88 | drivers/net/wd.c | for (i = 0; wd_portlist[i]; i++) { |
i | 89 | drivers/net/wd.c | int ioaddr = wd_portlist[i]; |
i | 102 | drivers/net/wd.c | int i; |
i | 108 | drivers/net/wd.c | for (i = 0; i < 8; i++) |
i | 109 | drivers/net/wd.c | checksum += inb(ioaddr + 8 + i); |
i | 119 | drivers/net/wd.c | for (i = 0; i < 6; i++) |
i | 120 | drivers/net/wd.c | printk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i)); |
i | 146 | drivers/net/wd.c | for (i = 0; i < 6; i++) |
i | 147 | drivers/net/wd.c | if (inb(ioaddr+i) != inb(ioaddr+8+i)) |
i | 149 | drivers/net/wd.c | if (i >= 6) { |
i | 204 | drivers/net/znet.c | int i; |
i | 225 | drivers/net/znet.c | for (i = 0; i < 6; i++) |
i | 226 | drivers/net/znet.c | printk(" %2.2x", dev->dev_addr[i] = netinfo->netid[i]); |
i | 426 | drivers/scsi/53c7,8xx.c | int i, j, ccf; |
i | 546 | drivers/scsi/53c7,8xx.c | case DMODE_BL_2: i = 2; break; |
i | 547 | drivers/scsi/53c7,8xx.c | case DMODE_BL_4: i = 4; break; |
i | 548 | drivers/scsi/53c7,8xx.c | case DMODE_BL_8: i = 8; break; |
i | 549 | drivers/scsi/53c7,8xx.c | case DMODE_BL_16: i = 16; break; |
i | 551 | drivers/scsi/53c7,8xx.c | printk ("scsi%d ; burst length %d\n", host->host_no, i); |
i | 594 | drivers/scsi/53c7,8xx.c | for (i = 0; i < 8; ++i) { |
i | 596 | drivers/scsi/53c7,8xx.c | hostdata->busy[i][j] = 0; |
i | 603 | drivers/scsi/53c7,8xx.c | hostdata->sync[i].select_indirect |= (i << 16); |
i | 605 | drivers/scsi/53c7,8xx.c | hostdata->sync[i].script[0] = (DCMD_TYPE_TCI|DCMD_TCI_OP_RETURN) << 24 | |
i | 614 | drivers/scsi/53c7,8xx.c | hostdata->sync[i].select_indirect |= (hostdata->saved_scntl3) << 24; |
i | 819 | drivers/scsi/53c7,8xx.c | int i; |
i | 894 | drivers/scsi/53c7,8xx.c | for (i = 0; i < NPCI_CHIP_IDS; ++i) { |
i | 895 | drivers/scsi/53c7,8xx.c | if (device_id == pci_chip_ids[i].pci_device_id) { |
i | 896 | drivers/scsi/53c7,8xx.c | max_revision = pci_chip_ids[i].max_revision; |
i | 897 | drivers/scsi/53c7,8xx.c | min_revision = pci_chip_ids[i].min_revision; |
i | 898 | drivers/scsi/53c7,8xx.c | expected_chip = pci_chip_ids[i].chip; |
i | 900 | drivers/scsi/53c7,8xx.c | if (chip == pci_chip_ids[i].chip) |
i | 901 | drivers/scsi/53c7,8xx.c | expected_id = pci_chip_ids[i].pci_device_id; |
i | 936 | drivers/scsi/53c7,8xx.c | int i; |
i | 966 | drivers/scsi/53c7,8xx.c | for (i = 0; i < NPCI_CHIP_IDS; ++i) |
i | 969 | drivers/scsi/53c7,8xx.c | pci_chip_ids[i].pci_device_id, pci_index, &pci_bus, |
i | 971 | drivers/scsi/53c7,8xx.c | !pci_init (tpnt, BOARD_GENERIC, pci_chip_ids[i].chip, |
i | 997 | drivers/scsi/53c7,8xx.c | int i, ncr_to_memory, memory_to_ncr, ncr_to_ncr; |
i | 1008 | drivers/scsi/53c7,8xx.c | for (i = 0; i < PATCHES; ++i) |
i | 1009 | drivers/scsi/53c7,8xx.c | hostdata->script[LABELPATCHES[i]] += |
i | 1148 | drivers/scsi/53c7,8xx.c | int old_level, failed, i; |
i | 1255 | drivers/scsi/53c7,8xx.c | for (i = 0; i < 3; ++i) { |
i | 1264 | drivers/scsi/53c7,8xx.c | dsa[0] = (0x33 << 24) | (i << 16) ; |
i | 1281 | drivers/scsi/53c7,8xx.c | host->host_no, i, data + 8); |
i | 1289 | drivers/scsi/53c7,8xx.c | host->host_no, i); |
i | 1303 | drivers/scsi/53c7,8xx.c | host->host_no, i); |
i | 1329 | drivers/scsi/53c7,8xx.c | int i; |
i | 1369 | drivers/scsi/53c7,8xx.c | int i; |
i | 1372 | drivers/scsi/53c7,8xx.c | for (i = 0; i < 2; ++i) { |
i | 1373 | drivers/scsi/53c7,8xx.c | for (search = (char *) (i ? hostdata->issue_dsa_head : |
i | 1374 | drivers/scsi/53c7,8xx.c | hostdata->reconnect_dsa_head), prev = (char **) (i ? |
i | 1548 | drivers/scsi/53c7,8xx.c | int desire, divisor, i, limit; |
i | 1563 | drivers/scsi/53c7,8xx.c | for (i = 0; (i < limit) && (divisor < syncs[i + 1].div); ++i); |
i | 1566 | drivers/scsi/53c7,8xx.c | syncs[i].div / 10, syncs[i].div % 10); |
i | 1571 | drivers/scsi/53c7,8xx.c | ~SCNTL3_800_SCF_MASK) | (syncs[i].scf << SCNTL3_800_SCF_SHIFT)) : 0; |
i | 1572 | drivers/scsi/53c7,8xx.c | sxfer = (msg[4] << SXFER_MO_SHIFT) | ((syncs[i].tp) << SXFER_TP_SHIFT); |
i | 2057 | drivers/scsi/53c7,8xx.c | {DT_help, "?", 0} , TOKEN(h,0), TOKEN(i,0), TOKEN(mp,2), |
i | 2080 | drivers/scsi/53c7,8xx.c | int i, j, error, len; |
i | 2100 | drivers/scsi/53c7,8xx.c | for (i = 0; i < NDT; ++i) { |
i | 2101 | drivers/scsi/53c7,8xx.c | len = strlen (debugger_tokens[i].name); |
i | 2102 | drivers/scsi/53c7,8xx.c | if (!strncmp(input_buf, debugger_tokens[i].name, len)) |
i | 2106 | drivers/scsi/53c7,8xx.c | if (i == NDT) |
i | 2109 | drivers/scsi/53c7,8xx.c | for (ptr = input_buf + len, j = 0; j < debugger_tokens[i].nargs && *ptr;) { |
i | 2119 | drivers/scsi/53c7,8xx.c | if (j != debugger_tokens[i].nargs) |
i | 2268 | drivers/scsi/53c7,8xx.c | i, /* Counter */ |
i | 2503 | drivers/scsi/53c7,8xx.c | for (i = 0; cmd->use_sg ? (i < cmd->use_sg) : !i; cmd_datain += 4, |
i | 2504 | drivers/scsi/53c7,8xx.c | cmd_dataout += 4, ++i) { |
i | 2506 | drivers/scsi/53c7,8xx.c | ((struct scatterlist *)cmd->buffer)[i].address : |
i | 2509 | drivers/scsi/53c7,8xx.c | ((struct scatterlist *)cmd->buffer)[i].length : |
i | 3775 | drivers/scsi/53c7,8xx.c | int i, len; |
i | 3784 | drivers/scsi/53c7,8xx.c | for (i = dsa[hostdata->dsa_msgout / sizeof(long)], |
i | 3785 | drivers/scsi/53c7,8xx.c | ptr = (char *) dsa[hostdata->dsa_msgout / sizeof(long) + 1]; i > 0; |
i | 3786 | drivers/scsi/53c7,8xx.c | ptr += len, i -= len) { |
i | 1297 | drivers/scsi/53c7,8xx.h | for (i = 0; i < (sizeof (A_##symbol##_used) / sizeof \ |
i | 1298 | drivers/scsi/53c7,8xx.h | (unsigned long)); ++i) { \ |
i | 1299 | drivers/scsi/53c7,8xx.h | (script)[A_##symbol##_used[i] - (offset)] += (value); \ |
i | 1302 | drivers/scsi/53c7,8xx.h | host->host_no, #symbol, i, A_##symbol##_used[i] - \ |
i | 1303 | drivers/scsi/53c7,8xx.h | (offset), #script, (script)[A_##symbol##_used[i] - \ |
i | 1308 | drivers/scsi/53c7,8xx.h | for (i = 0; i < (sizeof (A_##symbol##_used) / sizeof \ |
i | 1309 | drivers/scsi/53c7,8xx.h | (unsigned long)); ++i) \ |
i | 1310 | drivers/scsi/53c7,8xx.h | (script)[A_##symbol##_used[i] - (offset)] = \ |
i | 1311 | drivers/scsi/53c7,8xx.h | ((script)[A_##symbol##_used[i] - (offset)] & \ |
i | 348 | drivers/scsi/NCR5380.c | unsigned char status, data, basr, mr, icr, i; |
i | 357 | drivers/scsi/NCR5380.c | for (i = 0; signals[i].mask ; ++i) |
i | 358 | drivers/scsi/NCR5380.c | if (status & signals[i].mask) |
i | 359 | drivers/scsi/NCR5380.c | printk(" %s", signals[i].name); |
i | 360 | drivers/scsi/NCR5380.c | for (i = 0; basrs[i].mask ; ++i) |
i | 361 | drivers/scsi/NCR5380.c | if (basr & basrs[i].mask) |
i | 362 | drivers/scsi/NCR5380.c | printk(" %s", basrs[i].name); |
i | 363 | drivers/scsi/NCR5380.c | for (i = 0; icrs[i].mask; ++i) |
i | 364 | drivers/scsi/NCR5380.c | if (icr & icrs[i].mask) |
i | 365 | drivers/scsi/NCR5380.c | printk(" %s", icrs[i].name); |
i | 366 | drivers/scsi/NCR5380.c | for (i = 0; mrs[i].mask; ++i) |
i | 367 | drivers/scsi/NCR5380.c | if (mr & mrs[i].mask) |
i | 368 | drivers/scsi/NCR5380.c | printk(" %s", mrs[i].name); |
i | 391 | drivers/scsi/NCR5380.c | int i; |
i | 399 | drivers/scsi/NCR5380.c | for (i = 0; (phases[i].value != PHASE_UNKNOWN) && |
i | 400 | drivers/scsi/NCR5380.c | (phases[i].value != (status & PHASE_MASK)); ++i); |
i | 401 | drivers/scsi/NCR5380.c | printk("scsi%d : phase %s\n", instance->host_no, phases[i].name); |
i | 612 | drivers/scsi/NCR5380.c | int trying_irqs, i, mask; |
i | 615 | drivers/scsi/NCR5380.c | for (trying_irqs = i = 0, mask = 1; i < 16; ++i, mask <<= 1) |
i | 616 | drivers/scsi/NCR5380.c | if ((mask & possible) && (request_irq(i, &probe_intr, SA_INTERRUPT, "NCR-probe") |
i | 644 | drivers/scsi/NCR5380.c | for (i = 0, mask = 1; i < 16; ++i, mask <<= 1) |
i | 646 | drivers/scsi/NCR5380.c | free_irq(i); |
i | 764 | drivers/scsi/NCR5380.c | int i; |
i | 782 | drivers/scsi/NCR5380.c | for (i = hostdata->id_mask; i <= 0x80; i <<= 1) |
i | 783 | drivers/scsi/NCR5380.c | if (i > hostdata->id_mask) |
i | 784 | drivers/scsi/NCR5380.c | hostdata->id_higher_mask |= i; |
i | 785 | drivers/scsi/NCR5380.c | for (i = 0; i < 8; ++i) |
i | 786 | drivers/scsi/NCR5380.c | hostdata->busy[i] = 0; |
i | 531 | drivers/scsi/aha152x.c | int i; |
i | 537 | drivers/scsi/aha152x.c | for(i=0; i<16; i++) |
i | 538 | drivers/scsi/aha152x.c | SETPORT( STACK, i ); |
i | 541 | drivers/scsi/aha152x.c | for(i=0; i<16 && GETPORT(STACK)==i; i++) |
i | 544 | drivers/scsi/aha152x.c | return(i==16); |
i | 549 | drivers/scsi/aha152x.c | int i, ok; |
i | 583 | drivers/scsi/aha152x.c | for( i=0; i<PORT_COUNT && (port_base != ports[i]); i++) |
i | 586 | drivers/scsi/aha152x.c | if(i==PORT_COUNT) |
i | 598 | drivers/scsi/aha152x.c | i=0; |
i | 599 | drivers/scsi/aha152x.c | while(irqs[i] && (interrupt_level!=irqs[i])) |
i | 600 | drivers/scsi/aha152x.c | i++; |
i | 601 | drivers/scsi/aha152x.c | if(!irqs[i]) |
i | 632 | drivers/scsi/aha152x.c | for( i=0; i < ADDRESS_COUNT && !ok; i++) |
i | 634 | drivers/scsi/aha152x.c | ok=!memcmp((void *) addresses[i]+signatures[j].sig_offset, |
i | 648 | drivers/scsi/aha152x.c | for( i=0; i<PORT_COUNT && !aha152x_porttest(ports[i]); i++) |
i | 651 | drivers/scsi/aha152x.c | if(i==PORT_COUNT) |
i | 657 | drivers/scsi/aha152x.c | port_base=ports[i]; |
i | 1216 | drivers/scsi/aha152x.c | int identify_msg, target, i; |
i | 1243 | drivers/scsi/aha152x.c | i = GETPORT(SELID) & ~(1 << this_host); |
i | 1245 | drivers/scsi/aha152x.c | if(i) |
i | 1246 | drivers/scsi/aha152x.c | for( ; (i & 1)==0; target++, i>>=1) |
i | 1264 | drivers/scsi/aha152x.c | if((i=getphase())!=P_MSGI) |
i | 1266 | drivers/scsi/aha152x.c | printk("target doesn't enter MSGI to identify (phase=%02x)\n", i); |
i | 1711 | drivers/scsi/aha152x.c | int i, code; |
i | 1721 | drivers/scsi/aha152x.c | i=GETPORT(SCSIBUS); |
i | 1725 | drivers/scsi/aha152x.c | printk("length (%d), code ( ", i); |
i | 1778 | drivers/scsi/aha152x.c | while( --i && (make_acklow(), getphase()==P_MSGI)) |
i | 1952 | drivers/scsi/aha152x.c | int i; |
i | 1958 | drivers/scsi/aha152x.c | for( i=0; i<2*data_count; i++) |
i | 285 | drivers/scsi/aha1542.c | int i; |
i | 304 | drivers/scsi/aha1542.c | i = jiffies + 2; |
i | 305 | drivers/scsi/aha1542.c | while (i>jiffies); /* Wait a little bit for things to settle down. */ |
i | 482 | drivers/scsi/aha1542.c | int i; |
i | 486 | drivers/scsi/aha1542.c | for (i = 0; i < 12; i++) |
i | 487 | drivers/scsi/aha1542.c | printk("%02x ", ccb[mbo].cdb[ccb[mbo].cdblen+i]); |
i | 520 | drivers/scsi/aha1542.c | DEB(int i); |
i | 542 | drivers/scsi/aha1542.c | i = xscsi2int(cmd+2); |
i | 544 | drivers/scsi/aha1542.c | i = scsi2int(cmd+2); |
i | 546 | drivers/scsi/aha1542.c | i = -1; |
i | 548 | drivers/scsi/aha1542.c | printk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 550 | drivers/scsi/aha1542.c | printk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 553 | drivers/scsi/aha1542.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
i | 606 | drivers/scsi/aha1542.c | int i; |
i | 612 | drivers/scsi/aha1542.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 613 | drivers/scsi/aha1542.c | if(sgpnt[i].length == 0 || SCpnt->use_sg > 16 || |
i | 614 | drivers/scsi/aha1542.c | (((int)sgpnt[i].address) & 1) || (sgpnt[i].length & 1)){ |
i | 616 | drivers/scsi/aha1542.c | printk("Bad segment list supplied to aha1542.c (%d, %d)\n",SCpnt->use_sg,i); |
i | 617 | drivers/scsi/aha1542.c | for(i=0;i<SCpnt->use_sg;i++){ |
i | 618 | drivers/scsi/aha1542.c | printk("%d: %x %x %d\n",i,(unsigned int) sgpnt[i].address, (unsigned int) sgpnt[i].alt_address, |
i | 619 | drivers/scsi/aha1542.c | sgpnt[i].length); |
i | 622 | drivers/scsi/aha1542.c | ptr = (unsigned char *) &cptr[i]; |
i | 623 | drivers/scsi/aha1542.c | for(i=0;i<18;i++) printk("%02x ", ptr[i]); |
i | 626 | drivers/scsi/aha1542.c | any2scsi(cptr[i].dataptr, sgpnt[i].address); |
i | 627 | drivers/scsi/aha1542.c | if(((unsigned int) sgpnt[i].address) & 0xff000000) goto baddma; |
i | 628 | drivers/scsi/aha1542.c | any2scsi(cptr[i].datalen, sgpnt[i].length); |
i | 635 | drivers/scsi/aha1542.c | for(i=0;i<18;i++) printk("%02x ", ptr[i]); |
i | 650 | drivers/scsi/aha1542.c | { int i; |
i | 652 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(ccb[mbo])-10; i++) |
i | 653 | drivers/scsi/aha1542.c | printk("%02x ", ((unchar *)&ccb[mbo])[i]); |
i | 691 | drivers/scsi/aha1542.c | int i; |
i | 700 | drivers/scsi/aha1542.c | for(i=0; i<AHA1542_MAILBOXES; i++){ |
i | 701 | drivers/scsi/aha1542.c | mb[i].status = mb[AHA1542_MAILBOXES+i].status = 0; |
i | 702 | drivers/scsi/aha1542.c | any2scsi(mb[i].ccbptr, &ccb[i]); |
i | 719 | drivers/scsi/aha1542.c | int i; |
i | 720 | drivers/scsi/aha1542.c | i = inb(STATUS(base_io)); |
i | 721 | drivers/scsi/aha1542.c | if (i & DF) { |
i | 722 | drivers/scsi/aha1542.c | i = inb(DATA(base_io)); |
i | 819 | drivers/scsi/aha1542.c | int i; |
i | 820 | drivers/scsi/aha1542.c | i = inb(STATUS(base_io)); |
i | 821 | drivers/scsi/aha1542.c | if (i & DF) { |
i | 822 | drivers/scsi/aha1542.c | i = inb(DATA(base_io)); |
i | 1029 | drivers/scsi/aha1542.c | int i; |
i | 1031 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87; |
i | 1032 | drivers/scsi/aha1542.c | for (i = 0; i < 2; ++i) |
i | 1033 | drivers/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
i | 1035 | drivers/scsi/aha1542.c | i, xscsi2int(buf+4), xscsi2int(buf)); |
i | 1041 | drivers/scsi/aha1542.c | for (i = 0; i < 4; ++i) |
i | 1048 | drivers/scsi/aha1542.c | xany2scsi(cmd+2, i); |
i | 1069 | drivers/scsi/aha1542.c | int i; |
i | 1075 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1076 | drivers/scsi/aha1542.c | if(HOSTDATA(shost)->SCint[i] && |
i | 1077 | drivers/scsi/aha1542.c | !(HOSTDATA(shost)->SCint[i]->device->soft_reset)) |
i | 1080 | drivers/scsi/aha1542.c | HOSTDATA(shost)->mb[i].status = 1; /* Indicate ready to restart... */ |
i | 1103 | drivers/scsi/aha1542.c | int mbi, mbo, i; |
i | 1132 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1133 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i]) |
i | 1135 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt) { |
i | 1137 | drivers/scsi/aha1542.c | if (HOSTDATA(SCpnt->host)->mb[i].status) { |
i | 1171 | drivers/scsi/aha1542.c | int i; |
i | 1180 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1181 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt) |
i | 1183 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->ccb[i].op = 0x81; /* BUS DEVICE RESET */ |
i | 1197 | drivers/scsi/aha1542.c | for(i=0; i< AHA1542_MAILBOXES; i++) |
i | 1198 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] && |
i | 1199 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[i]->target == SCpnt->target) |
i | 1202 | drivers/scsi/aha1542.c | SCtmp = HOSTDATA(SCpnt->host)->SCint[i]; |
i | 1208 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[i] = NULL; |
i | 1209 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->mb[i].status = 0; |
i | 254 | drivers/scsi/aha1740.c | DEB(int i); |
i | 270 | drivers/scsi/aha1740.c | i = xscsi2int(cmd+2); |
i | 272 | drivers/scsi/aha1740.c | i = scsi2int(cmd+2); |
i | 274 | drivers/scsi/aha1740.c | i = -1; |
i | 275 | drivers/scsi/aha1740.c | printk("aha1740_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
i | 277 | drivers/scsi/aha1740.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
i | 321 | drivers/scsi/aha1740.c | int i; |
i | 330 | drivers/scsi/aha1740.c | for(i=0; i<SCpnt->use_sg; i++) |
i | 332 | drivers/scsi/aha1740.c | cptr[i].dataptr = (long) sgpnt[i].address; |
i | 333 | drivers/scsi/aha1740.c | cptr[i].datalen = sgpnt[i].length; |
i | 340 | drivers/scsi/aha1740.c | for(i=0;i<24;i++) printk("%02x ", ptr[i]); |
i | 360 | drivers/scsi/aha1740.c | int i; |
i | 362 | drivers/scsi/aha1740.c | for (i = 0; i < sizeof(ecb[ecbno])-10; i++) |
i | 363 | drivers/scsi/aha1740.c | printk("%02x ", ((unchar *)&ecb[ecbno])[i]); |
i | 318 | drivers/scsi/aha274x.c | int i; |
i | 330 | drivers/scsi/aha274x.c | for (i = 0; options[i].name; i++) |
i | 331 | drivers/scsi/aha274x.c | if (!strcmp(options[i].name, p)) |
i | 332 | drivers/scsi/aha274x.c | *(options[i].flag) = !0; |
i | 362 | drivers/scsi/aha274x.c | int i, segments; |
i | 370 | drivers/scsi/aha274x.c | for (i = length = 0; |
i | 371 | drivers/scsi/aha274x.c | i < cmd->use_sg && i < segments; |
i | 372 | drivers/scsi/aha274x.c | i++) |
i | 374 | drivers/scsi/aha274x.c | length += sg[i].length; |
i | 385 | drivers/scsi/aha274x.c | int i; |
i | 389 | drivers/scsi/aha274x.c | for (i = 0; i < cmd->use_sg; i++) |
i | 390 | drivers/scsi/aha274x.c | if ((unsigned)sg[i].length > 0xffff) |
i | 400 | drivers/scsi/aha274x.c | int i; |
i | 404 | drivers/scsi/aha274x.c | for (i = 0; i < aha274x_synctab_max-1; i++) { |
i | 406 | drivers/scsi/aha274x.c | if (transfer == aha274x_synctab[i].period) { |
i | 407 | drivers/scsi/aha274x.c | *rate = (aha274x_synctab[i].rate << 4) | (offset & 0xf); |
i | 411 | drivers/scsi/aha274x.c | if (transfer > aha274x_synctab[i].period && |
i | 412 | drivers/scsi/aha274x.c | transfer < aha274x_synctab[i+1].period) |
i | 414 | drivers/scsi/aha274x.c | *rate = (aha274x_synctab[i+1].rate << 4) | |
i | 740 | drivers/scsi/aha274x.c | int i; |
i | 753 | drivers/scsi/aha274x.c | for (i = 0; i < sizeof(buf); i++) { |
i | 758 | drivers/scsi/aha274x.c | outb(0x80 + i, s_base); |
i | 759 | drivers/scsi/aha274x.c | buf[i] = inb(s_base + i); |
i | 762 | drivers/scsi/aha274x.c | for (i = 0; i < sizeof(S)/sizeof(S[0]); i++) { |
i | 763 | drivers/scsi/aha274x.c | if (!memcmp(buf, S[i].signature, S[i].n)) { |
i | 768 | drivers/scsi/aha274x.c | return(S[i].type); |
i | 862 | drivers/scsi/aha274x.c | int i, irq, scsi_id; |
i | 942 | drivers/scsi/aha274x.c | for (i = 0; i < AHA274X_MAXSCB; i++) |
i | 943 | drivers/scsi/aha274x.c | p->SCB_array[i] = NULL; |
i | 1267 | drivers/scsi/aha274x.c | int i, scb, found, queued; |
i | 1292 | drivers/scsi/aha274x.c | for (i = found = 0; i < queued; i++) { |
i | 1293 | drivers/scsi/aha274x.c | scbsave[i] = inb(O_QINFIFO(p->base)); |
i | 1295 | drivers/scsi/aha274x.c | if (scbsave[i] == scb) { |
i | 1297 | drivers/scsi/aha274x.c | i -= 1; |
i | 1302 | drivers/scsi/aha274x.c | for (i = 0; i < queued; i++) |
i | 1303 | drivers/scsi/aha274x.c | outb(scbsave[i], O_QINFIFO(p->base)); |
i | 1388 | drivers/scsi/aha274x.c | int i; |
i | 1446 | drivers/scsi/aha274x.c | for (i = 0; i < AHA274X_MAXSCB; i++) { |
i | 1447 | drivers/scsi/aha274x.c | if (cmd == p->SCB_array[i]) { |
i | 1448 | drivers/scsi/aha274x.c | reset = (Scsi_Cmnd *)p->SCB_array[i]; |
i | 1449 | drivers/scsi/aha274x.c | p->SCB_array[i] = NULL; |
i | 147 | drivers/scsi/aic7770.c | int i; |
i | 165 | drivers/scsi/aic7770.c | for (i = 0; i < p->npatch; i++) { |
i | 166 | drivers/scsi/aic7770.c | M[p->patch[i]][0] &= ~1; |
i | 167 | drivers/scsi/aic7770.c | M[p->patch[i]][0] |= ((p->value >> 8) & 1); |
i | 168 | drivers/scsi/aic7770.c | M[p->patch[i]][1] = p->value & 0xff; |
i | 171 | drivers/scsi/aic7770.c | fprintf(stderr, " 0x%x", p->patch[i]); |
i | 186 | drivers/scsi/aic7770.c | int i; |
i | 188 | drivers/scsi/aic7770.c | for (i = 0; i < LC; i++) |
i | 190 | drivers/scsi/aic7770.c | M[i][3], |
i | 191 | drivers/scsi/aic7770.c | M[i][2], |
i | 192 | drivers/scsi/aic7770.c | M[i][1], |
i | 193 | drivers/scsi/aic7770.c | M[i][0]); |
i | 198 | drivers/scsi/aic7770.c | int i; |
i | 203 | drivers/scsi/aic7770.c | i = 0; |
i | 217 | drivers/scsi/aic7770.c | if (i < MAXTOKEN-1) |
i | 218 | drivers/scsi/aic7770.c | a[i++] = p; |
i | 221 | drivers/scsi/aic7770.c | if (i) { |
i | 222 | drivers/scsi/aic7770.c | *n = i; |
i | 303 | drivers/scsi/aic7770.c | int i; |
i | 323 | drivers/scsi/aic7770.c | for (i = 0; i < sizeof(jmptab)/sizeof(jmptab[0]); i++) |
i | 324 | drivers/scsi/aic7770.c | if (jmptab[i].what == want && |
i | 325 | drivers/scsi/aic7770.c | !strcmp(jmptab[i].name, a[spec])) |
i | 327 | drivers/scsi/aic7770.c | return(jmptab[i].value); |
i | 431 | drivers/scsi/aic7770.c | int i; |
i | 444 | drivers/scsi/aic7770.c | for (i = 0; instr[i].name; i++) { |
i | 450 | drivers/scsi/aic7770.c | if (!strcmp(instr[i].name, *a) && instr[i].n == n) |
i | 453 | drivers/scsi/aic7770.c | if (!instr[i].name) |
i | 456 | drivers/scsi/aic7770.c | I_op = eval_operand(a, instr[i].op); |
i | 457 | drivers/scsi/aic7770.c | I_src = eval_sdi(a, instr[i].src); |
i | 458 | drivers/scsi/aic7770.c | I_imm = eval_sdi(a, instr[i].imm); |
i | 459 | drivers/scsi/aic7770.c | I_dest = eval_sdi(a, instr[i].dest); |
i | 460 | drivers/scsi/aic7770.c | I_addr = eval_addr(a, instr[i].addr); |
i | 462 | drivers/scsi/aic7770.c | switch (instr[i].fmt) { |
i | 236 | drivers/scsi/buslogic.c | int s = inb(STATUS(base)), i = inb(INTERRUPT(base)); |
i | 238 | drivers/scsi/buslogic.c | buslogic_printk("status=%02X intrflags=%02X\n", s, i); |
i | 574 | drivers/scsi/buslogic.c | size_t i; |
i | 577 | drivers/scsi/buslogic.c | for (i = 0; i < sizeof sctmp->sense_buffer; i++) |
i | 578 | drivers/scsi/buslogic.c | printk(" %02X", sctmp->sense_buffer[i]); |
i | 635 | drivers/scsi/buslogic.c | int i; |
i | 639 | drivers/scsi/buslogic.c | i = *(int *)(cmd + 2); |
i | 641 | drivers/scsi/buslogic.c | i = -1; |
i | 643 | drivers/scsi/buslogic.c | target, *cmd, i, bufflen); |
i | 646 | drivers/scsi/buslogic.c | for (i = 0; i < scpnt->cmd_len; i++) |
i | 647 | drivers/scsi/buslogic.c | printk(" %02X", cmd[i]); |
i | 715 | drivers/scsi/buslogic.c | size_t i; |
i | 732 | drivers/scsi/buslogic.c | for (i = 0; i < scpnt->use_sg; i++) { |
i | 733 | drivers/scsi/buslogic.c | CHECK_DMA_ADDR(shpnt->unchecked_isa_dma, sgpnt[i].address, |
i | 735 | drivers/scsi/buslogic.c | cptr[i].dataptr = sgpnt[i].address; |
i | 736 | drivers/scsi/buslogic.c | cptr[i].datalen = sgpnt[i].length; |
i | 746 | drivers/scsi/buslogic.c | for (i = 0; i < 18; i++) |
i | 747 | drivers/scsi/buslogic.c | printk(" %02X", ptr[i]); |
i | 768 | drivers/scsi/buslogic.c | size_t i; |
i | 771 | drivers/scsi/buslogic.c | for (i = 0; i < sizeof ccb[mbo] - 10; i++) |
i | 772 | drivers/scsi/buslogic.c | printk(" %02X", ((unsigned char *)&ccb[mbo])[i]); |
i | 829 | drivers/scsi/buslogic.c | size_t i; |
i | 838 | drivers/scsi/buslogic.c | for (i = 0; i < BUSLOGIC_MAILBOXES; i++) { |
i | 839 | drivers/scsi/buslogic.c | mb[i].status = mb[BUSLOGIC_MAILBOXES + i].status = MBX_NOT_IN_USE; |
i | 840 | drivers/scsi/buslogic.c | mb[i].ccbptr = &ccb[i]; |
i | 867 | drivers/scsi/buslogic.c | int i; |
i | 873 | drivers/scsi/buslogic.c | i = inb(STATUS(base)); |
i | 874 | drivers/scsi/buslogic.c | if (i & DIRRDY) |
i | 875 | drivers/scsi/buslogic.c | i = inb(DATA_IN(base)); |
i | 977 | drivers/scsi/buslogic.c | unsigned int i; |
i | 1005 | drivers/scsi/buslogic.c | i = jiffies + 2; |
i | 1006 | drivers/scsi/buslogic.c | while (i > jiffies); |
i | 1309 | drivers/scsi/buslogic.c | size_t i; |
i | 1314 | drivers/scsi/buslogic.c | for (i = 0; i < sizeof buf; i++) |
i | 1315 | drivers/scsi/buslogic.c | buf[i] = 0x87; |
i | 1316 | drivers/scsi/buslogic.c | for (i = 0; i < 2; i++) |
i | 1317 | drivers/scsi/buslogic.c | if (!buslogic_command(i, cmd, buf, sizeof buf)) { |
i | 1319 | drivers/scsi/buslogic.c | i, *(int *)(buf + 4), *(int *)buf); |
i | 1325 | drivers/scsi/buslogic.c | for (i = 0; i < 4; i++) { |
i | 1330 | drivers/scsi/buslogic.c | xany2scsi(cmd + 2, i); |
i | 1352 | drivers/scsi/buslogic.c | unsigned int i; |
i | 1358 | drivers/scsi/buslogic.c | for (i = 0; i < BUSLOGIC_MAILBOXES; i++) |
i | 1359 | drivers/scsi/buslogic.c | if (HOSTDATA(shpnt)->sc[i] |
i | 1360 | drivers/scsi/buslogic.c | && !HOSTDATA(shpnt)->sc[i]->device->soft_reset) { |
i | 1362 | drivers/scsi/buslogic.c | HOSTDATA(shpnt)->mb[i].status |
i | 1388 | drivers/scsi/buslogic.c | unsigned int i; |
i | 1422 | drivers/scsi/buslogic.c | for (i = 0; i < BUSLOGIC_MAILBOXES; i++) |
i | 1423 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i]) { |
i | 1424 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i] == scpnt) { |
i | 1427 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->mb[i].status != MBX_NOT_IN_USE) { |
i | 1466 | drivers/scsi/buslogic.c | unsigned int i; |
i | 1477 | drivers/scsi/buslogic.c | for (i = 0; i < BUSLOGIC_MAILBOXES; i++) |
i | 1478 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i] == scpnt) { |
i | 1479 | drivers/scsi/buslogic.c | HOSTDATA(scpnt->host)->ccbs[i].op = CCB_OP_BUS_RESET; |
i | 1496 | drivers/scsi/buslogic.c | for (i = 0; i < BUSLOGIC_MAILBOXES; i++) |
i | 1497 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i] |
i | 1498 | drivers/scsi/buslogic.c | && HOSTDATA(scpnt->host)->sc[i]->target == scpnt->target) { |
i | 1499 | drivers/scsi/buslogic.c | Scsi_Cmnd *sctmp = HOSTDATA(scpnt->host)->sc[i]; |
i | 1508 | drivers/scsi/buslogic.c | HOSTDATA(scpnt->host)->sc[i] = NULL; |
i | 1509 | drivers/scsi/buslogic.c | HOSTDATA(scpnt->host)->mb[i].status = MBX_NOT_IN_USE; |
i | 1568 | drivers/scsi/buslogic.c | size_t i; |
i | 1579 | drivers/scsi/buslogic.c | for (i = 0; i < ARRAY_SIZE(valid_bases); i++) |
i | 1580 | drivers/scsi/buslogic.c | if (valid_bases[i] == ints[1]) { |
i | 1585 | drivers/scsi/buslogic.c | buslogic_printk("invalid base 0x%X specified.\n", ints[i]); |
i | 102 | drivers/scsi/constants.c | int i,s; |
i | 104 | drivers/scsi/constants.c | for ( i = 1, s = COMMAND_SIZE(command[0]); i < s; ++i) |
i | 105 | drivers/scsi/constants.c | printk("%02x ", command[i]); |
i | 366 | drivers/scsi/constants.c | int i, s; |
i | 411 | drivers/scsi/constants.c | for(i=0; additional[i].text; i++) |
i | 412 | drivers/scsi/constants.c | if(additional[i].code1 == sense_buffer[12] && |
i | 413 | drivers/scsi/constants.c | additional[i].code2 == sense_buffer[13]) |
i | 414 | drivers/scsi/constants.c | printk("Additional sense indicates %s\n", additional[i].text); |
i | 416 | drivers/scsi/constants.c | for(i=0; additional2[i].text; i++) |
i | 417 | drivers/scsi/constants.c | if(additional2[i].code1 == sense_buffer[12] && |
i | 418 | drivers/scsi/constants.c | additional2[i].code2_min >= sense_buffer[13] && |
i | 419 | drivers/scsi/constants.c | additional2[i].code2_max <= sense_buffer[13]) { |
i | 421 | drivers/scsi/constants.c | printk(additional2[i].text, sense_buffer[13]); |
i | 443 | drivers/scsi/constants.c | for (i = 0; i < s; ++i) |
i | 444 | drivers/scsi/constants.c | printk("0x%02x ", sense_buffer[i]); |
i | 478 | drivers/scsi/constants.c | int len = 0, i; |
i | 499 | drivers/scsi/constants.c | for (i = 2; i < len; ++i) |
i | 500 | drivers/scsi/constants.c | printk("%02x ", msg[i]); |
i | 503 | drivers/scsi/constants.c | for (i = 0; i < len; ++i) |
i | 504 | drivers/scsi/constants.c | printk("%02x ", msg[i]); |
i | 576 | drivers/scsi/eata.c | unsigned int i, j, k, flags; |
i | 595 | drivers/scsi/eata.c | i = HD(j)->last_cp_used + 1; |
i | 597 | drivers/scsi/eata.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
i | 599 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) i = 0; |
i | 601 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) { |
i | 602 | drivers/scsi/eata.c | HD(j)->last_cp_used = i; |
i | 624 | drivers/scsi/eata.c | cpp = &HD(j)->cp[i]; |
i | 629 | drivers/scsi/eata.c | spp = &HD(j)->sp[i]; |
i | 637 | drivers/scsi/eata.c | cpp->index = i; |
i | 641 | drivers/scsi/eata.c | BN(j), i, SCpnt->target, SCpnt->pid); |
i | 681 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = IN_USE; |
i | 687 | drivers/scsi/eata.c | unsigned int i, j, flags; |
i | 699 | drivers/scsi/eata.c | i = *(unsigned int *)SCarg->host_scribble; |
i | 701 | drivers/scsi/eata.c | BN(j), i, SCarg->target, SCarg->pid); |
i | 703 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) |
i | 712 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) { |
i | 713 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is free.\n", BN(j), i); |
i | 718 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IN_USE) { |
i | 719 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is in use.\n", BN(j), i); |
i | 721 | drivers/scsi/eata.c | if (SCarg != HD(j)->cp[i].SCpnt) |
i | 723 | drivers/scsi/eata.c | BN(j), i, SCarg, HD(j)->cp[i].SCpnt); |
i | 729 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IN_RESET) { |
i | 730 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is in reset.\n", BN(j), i); |
i | 735 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 736 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is locked.\n", BN(j), i); |
i | 741 | drivers/scsi/eata.c | panic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i); |
i | 745 | drivers/scsi/eata.c | unsigned int i, j, flags, time, k, limit = 0; |
i | 774 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 776 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) continue; |
i | 778 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 779 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
i | 780 | drivers/scsi/eata.c | printk("%s: reset, locked mbox %d forced free.\n", BN(j), i); |
i | 784 | drivers/scsi/eata.c | SCpnt = HD(j)->cp[i].SCpnt; |
i | 785 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = IN_RESET; |
i | 787 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid); |
i | 790 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, SCpnt == NULL.\n", BN(j), i); |
i | 793 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, garbled SCpnt.\n", BN(j), i); |
i | 795 | drivers/scsi/eata.c | if (*(unsigned int *)SCpnt->host_scribble != i) |
i | 796 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, index mismatch.\n", BN(j), i); |
i | 799 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, SCpnt->scsi_done == NULL.\n", BN(j), i); |
i | 823 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 826 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] != IN_RESET) continue; |
i | 828 | drivers/scsi/eata.c | SCpnt = HD(j)->cp[i].SCpnt; |
i | 833 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = LOCKED; |
i | 836 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid); |
i | 858 | drivers/scsi/eata.c | unsigned int i, j, k, flags, status, tstatus, loops, total_loops = 0; |
i | 893 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 894 | drivers/scsi/eata.c | spp = &HD(j)->sp[i]; |
i | 901 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IGNORE) { |
i | 902 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
i | 905 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == LOCKED) { |
i | 906 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
i | 908 | drivers/scsi/eata.c | BN(j), i, HD(j)->iocount); |
i | 911 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == FREE) { |
i | 913 | drivers/scsi/eata.c | BN(j), i, HD(j)->iocount); |
i | 916 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == IN_RESET) |
i | 917 | drivers/scsi/eata.c | printk("%s: ihdlr, mbox %d is in reset.\n", BN(j), i); |
i | 918 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] != IN_USE) |
i | 919 | drivers/scsi/eata.c | panic("%s: ihdlr, mbox %d, invalid cp_stat.\n", BN(j), i); |
i | 921 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
i | 922 | drivers/scsi/eata.c | cpp = &HD(j)->cp[i]; |
i | 926 | drivers/scsi/eata.c | panic("%s: ihdlr, mbox %d, SCpnt == NULL.\n", BN(j), i); |
i | 930 | drivers/scsi/eata.c | BN(j), i, SCpnt, cpp->SCpnt); |
i | 934 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid, SCpnt); |
i | 936 | drivers/scsi/eata.c | if (*(unsigned int *)SCpnt->host_scribble != i) |
i | 938 | drivers/scsi/eata.c | " irq %d.\n", BN(j), i, SCpnt->pid, |
i | 1033 | drivers/scsi/eata.c | BN(j), i, spp->adapter_status, spp->target_status, |
i | 128 | drivers/scsi/eata_dma.c | uint i, result; |
i | 214 | drivers/scsi/eata_dma.c | for (i = 0; i < MAXTARGET; i++) |
i | 215 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[i] = RESET; |
i | 277 | drivers/scsi/eata_dma.c | uint i, x, y; |
i | 361 | drivers/scsi/eata_dma.c | for(i = 0; i < cmd->use_sg; i++, sl++){ |
i | 362 | drivers/scsi/eata_dma.c | cp->sg_list[i].data = htonl((ulong) sl->address); |
i | 363 | drivers/scsi/eata_dma.c | cp->sg_list[i].len = htonl((ulong) sl->length); |
i | 698 | drivers/scsi/eata_dma.c | uint i; |
i | 769 | drivers/scsi/eata_dma.c | for (i = 0; i <= gc->MAX_CHAN; i++) { |
i | 806 | drivers/scsi/eata_dma.c | sh->this_id = gc->scsi_id[3 - i]; |
i | 824 | drivers/scsi/eata_dma.c | hd->channel = i; |
i | 846 | drivers/scsi/eata_dma.c | if((hd->primary == TRUE) && (i == 0) && HARDCODED){ |
i | 878 | drivers/scsi/eata_dma.c | int i; |
i | 884 | drivers/scsi/eata_dma.c | for (i = 0; i < MAXEISA; i++) { |
i | 885 | drivers/scsi/eata_dma.c | if (EISAbases[i] == TRUE) { /* Still a possibility ? */ |
i | 887 | drivers/scsi/eata_dma.c | base = (void *)0x1c88 + (i * 0x1000); |
i | 906 | drivers/scsi/eata_dma.c | EISAbases[i] = 0; |
i | 912 | drivers/scsi/eata_dma.c | EISAbases[i] = 0; |
i | 951 | drivers/scsi/eata_dma.c | uint error, i, x; |
i | 954 | drivers/scsi/eata_dma.c | for (i = 0; i <= MAXPCI; ++i, ++pci_index) { |
i | 1040 | drivers/scsi/eata_dma.c | int i; |
i | 1054 | drivers/scsi/eata_dma.c | for (i = 0; i < MAXEISA; i++) { |
i | 1060 | drivers/scsi/eata_dma.c | for (i = 0; i <= MAXISA; i++) { |
i | 1066 | drivers/scsi/eata_dma.c | for (i = 0; i <= MAXIRQ; i++) |
i | 1067 | drivers/scsi/eata_dma.c | if (reg_IRQ[i]) |
i | 1068 | drivers/scsi/eata_dma.c | request_irq(i, eata_int_handler, SA_INTERRUPT, "EATA-DMA"); |
i | 1074 | drivers/scsi/eata_dma.c | for (i = 1; i <= registered_HBAs; i++) { |
i | 159 | drivers/scsi/eata_dma.h | #define DELAY(x) { int i; i = jiffies + x; while (jiffies < i); } |
i | 160 | drivers/scsi/eata_dma.h | #define DEL2(x) { ulong i; for (i = 0; i < 0xffff*x; i++); } |
i | 519 | drivers/scsi/fdomain.c | int i; |
i | 522 | drivers/scsi/fdomain.c | for (i = 0; i < 255; i++) { |
i | 523 | drivers/scsi/fdomain.c | outb( i, port_base + Write_Loopback ); |
i | 525 | drivers/scsi/fdomain.c | if (i != result) |
i | 533 | drivers/scsi/fdomain.c | int i, j; |
i | 551 | drivers/scsi/fdomain.c | for (i = 0; !bios_base && i < ADDRESS_COUNT; i++) { |
i | 553 | drivers/scsi/fdomain.c | printk( " %x(%x),", (unsigned)addresses[i], (unsigned)bios_base ); |
i | 556 | drivers/scsi/fdomain.c | if (!memcmp( ((char *)addresses[i] + signatures[j].sig_offset), |
i | 562 | drivers/scsi/fdomain.c | bios_base = addresses[i]; |
i | 595 | drivers/scsi/fdomain.c | for (flag = 0, i = 0; !flag && i < PORT_COUNT; i++) { |
i | 596 | drivers/scsi/fdomain.c | if (port_base == ports[i]) |
i | 626 | drivers/scsi/fdomain.c | for (i = 0; !flag && i < PORT_COUNT; i++) { |
i | 627 | drivers/scsi/fdomain.c | port_base = ports[i]; |
i | 651 | drivers/scsi/fdomain.c | for (i = 0xff00; !flag && i > 0xf000; i -= 8) { |
i | 652 | drivers/scsi/fdomain.c | port_base = i; |
i | 749 | drivers/scsi/fdomain.c | for (i = 0; i < 8; i++) { |
i | 750 | drivers/scsi/fdomain.c | SCinit.target = i; |
i | 751 | drivers/scsi/fdomain.c | if (i == tpnt->this_id) /* Skip host adapter */ |
i | 759 | drivers/scsi/fdomain.c | printk( " SCSI ID %d: ", i ); |
i | 1558 | drivers/scsi/fdomain.c | } *i; |
i | 1607 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f33 + drive * 25 ); |
i | 1609 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f31 + drive * 25 ); |
i | 1611 | drivers/scsi/fdomain.c | info_array[0] = i->heads; |
i | 1612 | drivers/scsi/fdomain.c | info_array[1] = i->sectors; |
i | 1613 | drivers/scsi/fdomain.c | info_array[2] = i->cylinders; |
i | 1617 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f71 + drive * 10 ); |
i | 1618 | drivers/scsi/fdomain.c | info_array[0] = i->heads + 1; |
i | 1619 | drivers/scsi/fdomain.c | info_array[1] = i->sectors; |
i | 1620 | drivers/scsi/fdomain.c | info_array[2] = i->cylinders; |
i | 299 | drivers/scsi/hosts.c | int i, pcount; |
i | 307 | drivers/scsi/hosts.c | for (tpnt = &builtin_scsi_hosts[0], i = 0; i < MAX_SCSI_HOSTS; ++i, tpnt++) |
i | 306 | drivers/scsi/hosts.h | extern void scsi_unregister(struct Scsi_Host * i); |
i | 130 | drivers/scsi/in2000.c | int i; |
i | 141 | drivers/scsi/in2000.c | for(i=0; i < 3; i++) |
i | 142 | drivers/scsi/in2000.c | if(*(bios_tab[i]+0x04) == 0x41564f4e || |
i | 143 | drivers/scsi/in2000.c | *(bios_tab[i]+0xc) == 0x61776c41) { |
i | 145 | drivers/scsi/in2000.c | tmp, (unsigned int)bios_tab[i]); |
i | 418 | drivers/scsi/in2000.c | int i; |
i | 434 | drivers/scsi/in2000.c | i = xscsi2int((cmd+1)); |
i | 436 | drivers/scsi/in2000.c | i = scsi2int((cmd+1)); |
i | 438 | drivers/scsi/in2000.c | i = -1; |
i | 441 | drivers/scsi/in2000.c | printk("in2000qcmd: pos %d len %d ", i, bufflen); |
i | 443 | drivers/scsi/in2000.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
i | 312 | drivers/scsi/pas16.c | int i; |
i | 319 | drivers/scsi/pas16.c | for (i = 0; i < NO_BASES; ++i) |
i | 320 | drivers/scsi/pas16.c | if (bases[i].io_port == (unsigned short) ints[1]) { |
i | 321 | drivers/scsi/pas16.c | bases[i].noauto = 1; |
i | 481 | drivers/scsi/pas16.c | register i = len; |
i | 485 | drivers/scsi/pas16.c | insb( reg, d, i ); |
i | 513 | drivers/scsi/pas16.c | register i = len; |
i | 517 | drivers/scsi/pas16.c | outsb( reg, s, i ); |
i | 156 | drivers/scsi/qlogic.c | #define rtrc(i) {inb(0x3da);outb(0x31,0x3c0);outb((i),0x3c0);} |
i | 158 | drivers/scsi/qlogic.c | #define rtrc(i) {} |
i | 264 | drivers/scsi/qlogic.c | int i,k; |
i | 265 | drivers/scsi/qlogic.c | i = jiffies + WATCHDOG; |
i | 266 | drivers/scsi/qlogic.c | while ( i > jiffies && !qabort && !((k = inb(qbase + 4)) & 0xe0)); |
i | 267 | drivers/scsi/qlogic.c | if (i <= jiffies) |
i | 284 | drivers/scsi/qlogic.c | unsigned int i; |
i | 318 | drivers/scsi/qlogic.c | for (i = 0; i < cmd->cmd_len; i++) |
i | 319 | drivers/scsi/qlogic.c | outb(cmd->cmnd[i], qbase + 2); |
i | 328 | drivers/scsi/qlogic.c | unsigned int i, j, k; |
i | 339 | drivers/scsi/qlogic.c | i = inb(qbase + 5); |
i | 340 | drivers/scsi/qlogic.c | if (i == 0x20) { |
i | 343 | drivers/scsi/qlogic.c | i |= inb(qbase + 5); /* the 0x10 bit can be set after the 0x08 */ |
i | 344 | drivers/scsi/qlogic.c | if (i != 0x18) { |
i | 345 | drivers/scsi/qlogic.c | printk("Ql:Bad Interrupt status:%02x\n", i); |
i | 355 | drivers/scsi/qlogic.c | printk("Ql:Bad sequence for command %d, int %02X, cmdleft = %d\n", j, i, inb( qbase+7 ) & 0x1f ); |
i | 408 | drivers/scsi/qlogic.c | i = inb(qbase + 5); /* get chip irq stat */ |
i | 413 | drivers/scsi/qlogic.c | if (!((i == 8 && j == 2) || (i == 0x10 && j == 1))) { |
i | 414 | drivers/scsi/qlogic.c | printk("Ql:Error during status phase, int=%02X, %d bytes recd\n", i, j); |
i | 422 | drivers/scsi/qlogic.c | i = inb(qbase + 5); /* should be bus service */ |
i | 423 | drivers/scsi/qlogic.c | while (!qabort && ((i & 0x20) != 0x20)) |
i | 424 | drivers/scsi/qlogic.c | i |= inb(qbase + 5); |
i | 441 | drivers/scsi/qlogic.c | int i; |
i | 442 | drivers/scsi/qlogic.c | i = 16; |
i | 443 | drivers/scsi/qlogic.c | while (i-- && inb(qbase + 5)); /* maybe also ql_zap() */ |
i | 522 | drivers/scsi/qlogic.c | int i, j; /* these are only used by IRQ detect */ |
i | 571 | drivers/scsi/qlogic.c | i = 0xffff; |
i | 579 | drivers/scsi/qlogic.c | i &= ~(inb(0x20) | (inb(0xa0) << 8)); /* find IRQ off */ |
i | 581 | drivers/scsi/qlogic.c | i &= inb(0x20) | (inb(0xa0) << 8); /* find IRQ on */ |
i | 585 | drivers/scsi/qlogic.c | while (i) /* find on bit */ |
i | 586 | drivers/scsi/qlogic.c | i >>= 1, qlirq++; /* should check for exactly 1 on */ |
i | 183 | drivers/scsi/scsi.c | int i = 0; |
i | 185 | drivers/scsi/scsi.c | for(i=0; 1; i++){ |
i | 186 | drivers/scsi/scsi.c | if(blacklist[i].vendor == NULL) return 0; |
i | 189 | drivers/scsi/scsi.c | if(memcmp(blacklist[i].vendor, pnt, |
i | 190 | drivers/scsi/scsi.c | strlen(blacklist[i].vendor))) continue; |
i | 193 | drivers/scsi/scsi.c | if(memcmp(blacklist[i].model, pnt, |
i | 194 | drivers/scsi/scsi.c | strlen(blacklist[i].model))) continue; |
i | 984 | drivers/scsi/scsi.c | int i; |
i | 989 | drivers/scsi/scsi.c | for (i = 0; i < 10; ++i) |
i | 990 | drivers/scsi/scsi.c | printk ("%02x ", ((unsigned char *) cmnd)[i]); |
i | 1842 | drivers/scsi/scsi.c | int i, j; |
i | 1851 | drivers/scsi/scsi.c | for(i=0;i < (dma_sectors >> (MALLOC_PAGEBITS - 9)); i++) |
i | 1853 | drivers/scsi/scsi.c | if ((dma_malloc_freelist[i] & (mask << j)) == 0){ |
i | 1854 | drivers/scsi/scsi.c | dma_malloc_freelist[i] |= (mask << j); |
i | 1858 | drivers/scsi/scsi.c | printk("SMalloc: %d %x ",len, dma_malloc_pages[i] + (j << 9)); |
i | 1860 | drivers/scsi/scsi.c | return (void *) ((unsigned long) dma_malloc_pages[i] + (j << 9)); |
i | 1976 | drivers/scsi/scsi.c | int i; |
i | 2075 | drivers/scsi/scsi.c | for(i=0; i< dma_sectors >> 3; i++) |
i | 2076 | drivers/scsi/scsi.c | dma_malloc_pages[i] = (unsigned char *) |
i | 2106 | drivers/scsi/scsi.c | int i; |
i | 2109 | drivers/scsi/scsi.c | for (i = 8; i < 16; i++) |
i | 2111 | drivers/scsi/scsi.c | if (data[i] >= 0x20 && i < data[4] + 5) |
i | 2112 | drivers/scsi/scsi.c | printk("%c", data[i]); |
i | 2118 | drivers/scsi/scsi.c | for (i = 16; i < 32; i++) |
i | 2120 | drivers/scsi/scsi.c | if (data[i] >= 0x20 && i < data[4] + 5) |
i | 2121 | drivers/scsi/scsi.c | printk("%c", data[i]); |
i | 2127 | drivers/scsi/scsi.c | for (i = 32; i < 36; i++) |
i | 2129 | drivers/scsi/scsi.c | if (data[i] >= 0x20 && i < data[4] + 5) |
i | 2130 | drivers/scsi/scsi.c | printk("%c", data[i]); |
i | 2137 | drivers/scsi/scsi.c | i = data[0] & 0x1f; |
i | 2140 | drivers/scsi/scsi.c | i < MAX_SCSI_DEVICE_CODE ? scsi_device_types[i] : "Unknown " ); |
i | 2161 | drivers/scsi/scsi.c | int j, i; |
i | 2275 | drivers/scsi/scsi.c | for(i=dma_sectors >> 3; i< new_dma_sectors >> 3; i++) |
i | 2276 | drivers/scsi/scsi.c | new_dma_malloc_pages[i] = (unsigned char *) |
i | 2490 | drivers/scsi/scsi.c | int i; |
i | 2494 | drivers/scsi/scsi.c | i = 0; |
i | 2500 | drivers/scsi/scsi.c | i++, SCpnt->host->host_no, |
i | 2521 | drivers/scsi/scsi.c | for(i=0; i<MAX_BLKDEV; i++) |
i | 2522 | drivers/scsi/scsi.c | if(blk_dev[i].current_request) |
i | 2525 | drivers/scsi/scsi.c | printk("%d: ", i); |
i | 2526 | drivers/scsi/scsi.c | req = blk_dev[i].current_request; |
i | 111 | drivers/scsi/scsi_debug.c | int i; |
i | 120 | drivers/scsi/scsi_debug.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 121 | drivers/scsi/scsi_debug.c | lpnt = (int *) sgpnt[i].alt_address; |
i | 122 | drivers/scsi/scsi_debug.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 132 | drivers/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 133 | drivers/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 139 | drivers/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 140 | drivers/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 146 | drivers/scsi/scsi_debug.c | for (i=0;i<sizeof(Scsi_Cmnd)/4+1; i++) { |
i | 147 | drivers/scsi/scsi_debug.c | if ((i & 7) == 0) printk("\n"); |
i | 168 | drivers/scsi/scsi_debug.c | int i; |
i | 186 | drivers/scsi/scsi_debug.c | { int i; |
i | 188 | drivers/scsi/scsi_debug.c | for(i=0;i<12;i++) printk("%d ",sense_buffer[i]); |
i | 303 | drivers/scsi/scsi_debug.c | { int i; |
i | 305 | drivers/scsi/scsi_debug.c | for(i=0;i<12;i++) printk("%d ",sense_buffer[i]); |
i | 378 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++){ |
i | 379 | drivers/scsi/scsi_debug.c | if (SCint[i] == 0) break; |
i | 382 | drivers/scsi/scsi_debug.c | if (i >= SCSI_DEBUG_MAILBOXES || SCint[i] != 0) |
i | 385 | drivers/scsi/scsi_debug.c | SCint[i] = SCpnt; |
i | 389 | drivers/scsi/scsi_debug.c | if (do_done[i]) |
i | 392 | drivers/scsi/scsi_debug.c | do_done[i] = done; |
i | 401 | drivers/scsi/scsi_debug.c | timeout[i] = jiffies+DISK_SPEED; |
i | 405 | drivers/scsi/scsi_debug.c | timer_table[SCSI_DEBUG_TIMER].expires = timeout[i]; |
i | 413 | drivers/scsi/scsi_debug.c | printk("Sending command (%d %x %d %d)...", i, done, timeout[i],jiffies); |
i | 444 | drivers/scsi/scsi_debug.c | int i, pending; |
i | 457 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 458 | drivers/scsi/scsi_debug.c | if (SCint[i] == 0) continue; |
i | 460 | drivers/scsi/scsi_debug.c | if (timeout[i] == 0) continue; |
i | 461 | drivers/scsi/scsi_debug.c | if (timeout[i] <= jiffies) break; |
i | 467 | drivers/scsi/scsi_debug.c | if(i == SCSI_DEBUG_MAILBOXES){ |
i | 470 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 471 | drivers/scsi/scsi_debug.c | if (SCint[i] == 0) continue; |
i | 472 | drivers/scsi/scsi_debug.c | if (timeout[i] == 0) continue; |
i | 473 | drivers/scsi/scsi_debug.c | if (timeout[i] <= jiffies) {restore_flags(flags); goto repeat;}; |
i | 474 | drivers/scsi/scsi_debug.c | if (timeout[i] > jiffies) { |
i | 475 | drivers/scsi/scsi_debug.c | if (pending > timeout[i]) pending = timeout[i]; |
i | 489 | drivers/scsi/scsi_debug.c | if(i < SCSI_DEBUG_MAILBOXES){ |
i | 490 | drivers/scsi/scsi_debug.c | timeout[i] = 0; |
i | 491 | drivers/scsi/scsi_debug.c | my_done = do_done[i]; |
i | 492 | drivers/scsi/scsi_debug.c | do_done[i] = NULL; |
i | 493 | drivers/scsi/scsi_debug.c | to = timeout[i]; |
i | 494 | drivers/scsi/scsi_debug.c | timeout[i] = 0; |
i | 495 | drivers/scsi/scsi_debug.c | SCtmp = (Scsi_Cmnd *) SCint[i]; |
i | 496 | drivers/scsi/scsi_debug.c | SCint[i] = NULL; |
i | 506 | drivers/scsi/scsi_debug.c | printk("...done %d %x %d %d\n",i , my_done, to, jiffies); |
i | 507 | drivers/scsi/scsi_debug.c | printk("In intr_handle: %d %x %x\n",i, SCtmp, my_done); |
i | 562 | drivers/scsi/scsi_debug.c | int i; |
i | 567 | drivers/scsi/scsi_debug.c | for(i=0;i<SCSI_DEBUG_MAILBOXES; i++) { |
i | 568 | drivers/scsi/scsi_debug.c | if (SCint[i] == NULL) continue; |
i | 569 | drivers/scsi/scsi_debug.c | SCint[i]->result = DID_ABORT << 16; |
i | 570 | drivers/scsi/scsi_debug.c | my_done = do_done[i]; |
i | 571 | drivers/scsi/scsi_debug.c | my_done(SCint[i]); |
i | 574 | drivers/scsi/scsi_debug.c | SCint[i] = NULL; |
i | 575 | drivers/scsi/scsi_debug.c | do_done[i] = NULL; |
i | 576 | drivers/scsi/scsi_debug.c | timeout[i] = 0; |
i | 221 | drivers/scsi/scsi_ioctl.c | int i; |
i | 223 | drivers/scsi/scsi_ioctl.c | for (i = 0; i < 12; ++i) |
i | 224 | drivers/scsi/scsi_ioctl.c | printk("%02x ", cmd[i]); |
i | 226 | drivers/scsi/scsi_ioctl.c | for (i = 0; i < 20; ++i) |
i | 227 | drivers/scsi/scsi_ioctl.c | printk("%02x ", buf[i]); |
i | 79 | drivers/scsi/scsicam.c | int i, largest_cyl; |
i | 86 | drivers/scsi/scsicam.c | (0x1BE + bh->b_data), i = 0; i < 4; ++i, ++p) { |
i | 91 | drivers/scsi/scsicam.c | i); |
i | 164 | drivers/scsi/sd.c | int i; |
i | 166 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
i | 167 | drivers/scsi/sd.c | if(rscsi_disks[i].device) |
i | 168 | drivers/scsi/sd.c | sd[i << 4].nr_sects = rscsi_disks[i].capacity; |
i | 204 | drivers/scsi/sd.c | int i; |
i | 206 | drivers/scsi/sd.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 208 | drivers/scsi/sd.c | printk(":%x %x %d\n",sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 210 | drivers/scsi/sd.c | if (sgpnt[i].alt_address) { |
i | 212 | drivers/scsi/sd.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 213 | drivers/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 260 | drivers/scsi/sd.c | int i; |
i | 262 | drivers/scsi/sd.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 267 | drivers/scsi/sd.c | if (sgpnt[i].alt_address) { |
i | 268 | drivers/scsi/sd.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 852 | drivers/scsi/sd.c | static int sd_init_onedisk(int i) |
i | 864 | drivers/scsi/sd.c | SCpnt = allocate_device(NULL, rscsi_disks[i].device, 1); |
i | 873 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 891 | drivers/scsi/sd.c | if(the_result && !rscsi_disks[i].device->removable && |
i | 895 | drivers/scsi/sd.c | printk( "sd%c: Spinning up disk...", 'a' + i ); |
i | 897 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 933 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
i | 985 | drivers/scsi/sd.c | 'a' + i, 'a' + i, |
i | 992 | drivers/scsi/sd.c | printk("sd%c : extended sense code = %1x \n", 'a' + i, SCpnt->sense_buffer[2] & 0xf); |
i | 994 | drivers/scsi/sd.c | printk("sd%c : sense not available. \n", 'a' + i); |
i | 996 | drivers/scsi/sd.c | printk("sd%c : block size assumed to be 512 bytes, disk size 1GB. \n", 'a' + i); |
i | 997 | drivers/scsi/sd.c | rscsi_disks[i].capacity = 0x1fffff; |
i | 998 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = 512; |
i | 1002 | drivers/scsi/sd.c | if(rscsi_disks[i].device->removable && |
i | 1004 | drivers/scsi/sd.c | rscsi_disks[i].device->changed = 1; |
i | 1009 | drivers/scsi/sd.c | rscsi_disks[i].capacity = (buffer[0] << 24) | |
i | 1014 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = (buffer[4] << 24) | |
i | 1017 | drivers/scsi/sd.c | if (rscsi_disks[i].sector_size != 512 && |
i | 1018 | drivers/scsi/sd.c | rscsi_disks[i].sector_size != 1024 && |
i | 1019 | drivers/scsi/sd.c | rscsi_disks[i].sector_size != 256) |
i | 1022 | drivers/scsi/sd.c | 'a' + i, rscsi_disks[i].sector_size); |
i | 1023 | drivers/scsi/sd.c | if(rscsi_disks[i].device->removable){ |
i | 1024 | drivers/scsi/sd.c | rscsi_disks[i].capacity = 0; |
i | 1027 | drivers/scsi/sd.c | rscsi_disks[i].device = NULL; |
i | 1029 | drivers/scsi/sd.c | return i; |
i | 1039 | drivers/scsi/sd.c | int hard_sector = rscsi_disks[i].sector_size; |
i | 1041 | drivers/scsi/sd.c | for (m=i<<4; m<((i+1)<<4); m++){ |
i | 1045 | drivers/scsi/sd.c | ,hard_sector,i+'a'); |
i | 1047 | drivers/scsi/sd.c | if(rscsi_disks[i].sector_size == 1024) |
i | 1048 | drivers/scsi/sd.c | rscsi_disks[i].capacity <<= 1; /* Change this into 512 byte sectors */ |
i | 1049 | drivers/scsi/sd.c | if(rscsi_disks[i].sector_size == 256) |
i | 1050 | drivers/scsi/sd.c | rscsi_disks[i].capacity >>= 1; /* Change this into 512 byte sectors */ |
i | 1053 | drivers/scsi/sd.c | rscsi_disks[i].ten = 1; |
i | 1054 | drivers/scsi/sd.c | rscsi_disks[i].remap = 1; |
i | 1056 | drivers/scsi/sd.c | return i; |
i | 1067 | drivers/scsi/sd.c | int i; |
i | 1099 | drivers/scsi/sd.c | for(i=0;i<(sd_template.dev_max << 4);i++){ |
i | 1100 | drivers/scsi/sd.c | sd_blocksizes[i] = 1024; |
i | 1101 | drivers/scsi/sd.c | sd_hardsizes[i] = 512; |
i | 1119 | drivers/scsi/sd.c | int i; |
i | 1126 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
i | 1127 | drivers/scsi/sd.c | if (!rscsi_disks[i].capacity && |
i | 1128 | drivers/scsi/sd.c | rscsi_disks[i].device) |
i | 1130 | drivers/scsi/sd.c | i = sd_init_onedisk(i); |
i | 1132 | drivers/scsi/sd.c | && !rscsi_disks[i].has_part_table) { |
i | 1133 | drivers/scsi/sd.c | sd_sizes[i << 4] = rscsi_disks[i].capacity; |
i | 1134 | drivers/scsi/sd.c | revalidate_scsidisk(i << 4, 0); |
i | 1136 | drivers/scsi/sd.c | rscsi_disks[i].has_part_table = 1; |
i | 1164 | drivers/scsi/sd.c | int i; |
i | 1173 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
i | 1176 | drivers/scsi/sd.c | if(i >= sd_template.dev_max) panic ("scsi_devices corrupt (sd)"); |
i | 1179 | drivers/scsi/sd.c | rscsi_disks[i].device = SDp; |
i | 1180 | drivers/scsi/sd.c | rscsi_disks[i].has_part_table = 0; |
i | 1205 | drivers/scsi/sd.c | int i; |
i | 1224 | drivers/scsi/sd.c | for (i=max_p - 1; i >=0 ; i--) { |
i | 1225 | drivers/scsi/sd.c | sync_dev(major | start | i); |
i | 1226 | drivers/scsi/sd.c | invalidate_inodes(major | start | i); |
i | 1227 | drivers/scsi/sd.c | invalidate_buffers(major | start | i); |
i | 1228 | drivers/scsi/sd.c | gdev->part[start+i].start_sect = 0; |
i | 1229 | drivers/scsi/sd.c | gdev->part[start+i].nr_sects = 0; |
i | 1251 | drivers/scsi/sd.c | int i; |
i | 1256 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
i | 1261 | drivers/scsi/sd.c | start = i << sd_gendisk.minor_shift; |
i | 1264 | drivers/scsi/sd.c | for (i=max_p - 1; i >=0 ; i--) { |
i | 1265 | drivers/scsi/sd.c | sync_dev(major | start | i); |
i | 1266 | drivers/scsi/sd.c | invalidate_inodes(major | start | i); |
i | 1267 | drivers/scsi/sd.c | invalidate_buffers(major | start | i); |
i | 1268 | drivers/scsi/sd.c | sd_gendisk.part[start+i].start_sect = 0; |
i | 1269 | drivers/scsi/sd.c | sd_gendisk.part[start+i].nr_sects = 0; |
i | 1270 | drivers/scsi/sd.c | sd_sizes[start+i] = 0; |
i | 279 | drivers/scsi/seagate.c | int i,j; |
i | 323 | drivers/scsi/seagate.c | for (i = 0; i < (sizeof (seagate_bases) / sizeof (char * )); ++i) |
i | 325 | drivers/scsi/seagate.c | if (!memcmp ((void *) (seagate_bases[i] + |
i | 328 | drivers/scsi/seagate.c | base_address = (void *) seagate_bases[i]; |
i | 599 | drivers/scsi/seagate.c | int i; |
i | 899 | drivers/scsi/seagate.c | int i; |
i | 902 | drivers/scsi/seagate.c | for (i = 0; i < nobuffs; ++i) |
i | 904 | drivers/scsi/seagate.c | hostno, i, buffer[i].address, buffer[i].length); |
i | 1468 | drivers/scsi/seagate.c | for (i = 0; i < 20; ++i) |
i | 1469 | drivers/scsi/seagate.c | printk ("%02x ", ((unsigned char *) data)[i]); /* WDE mod */ |
i | 173 | drivers/scsi/sg.c | int i; |
i | 175 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_WRITE,buf,count))) |
i | 176 | drivers/scsi/sg.c | return i; |
i | 232 | drivers/scsi/sg.c | int bsize,size,amt,i; |
i | 237 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_READ,buf,count))) |
i | 238 | drivers/scsi/sg.c | return i; |
i | 383 | drivers/scsi/sg.c | int i; |
i | 391 | drivers/scsi/sg.c | for(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) |
i | 394 | drivers/scsi/sg.c | if(i >= sg_template.dev_max) panic ("scsi_devices corrupt (sg)"); |
i | 396 | drivers/scsi/sg.c | scsi_generics[i].device=SDp; |
i | 397 | drivers/scsi/sg.c | scsi_generics[i].users=0; |
i | 398 | drivers/scsi/sg.c | scsi_generics[i].generic_wait=NULL; |
i | 399 | drivers/scsi/sg.c | scsi_generics[i].read_wait=NULL; |
i | 400 | drivers/scsi/sg.c | scsi_generics[i].write_wait=NULL; |
i | 401 | drivers/scsi/sg.c | scsi_generics[i].buff=NULL; |
i | 402 | drivers/scsi/sg.c | scsi_generics[i].exclude=0; |
i | 403 | drivers/scsi/sg.c | scsi_generics[i].pending=0; |
i | 404 | drivers/scsi/sg.c | scsi_generics[i].timeout=SG_DEFAULT_TIMEOUT; |
i | 414 | drivers/scsi/sg.c | int i; |
i | 416 | drivers/scsi/sg.c | for(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) |
i | 177 | drivers/scsi/sr.c | int i; |
i | 179 | drivers/scsi/sr.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 180 | drivers/scsi/sr.c | if (sgpnt[i].alt_address) { |
i | 181 | drivers/scsi/sr.c | if (sgpnt[i].alt_address != sgpnt[i].address) { |
i | 182 | drivers/scsi/sr.c | memcpy(sgpnt[i].alt_address, sgpnt[i].address, sgpnt[i].length); |
i | 184 | drivers/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 216 | drivers/scsi/sr.c | int i; |
i | 218 | drivers/scsi/sr.c | for(i=0; i<SCpnt->use_sg; i++) { |
i | 219 | drivers/scsi/sr.c | if (sgpnt[i].alt_address) { |
i | 220 | drivers/scsi/sr.c | scsi_free(sgpnt[i].address, sgpnt[i].length); |
i | 827 | drivers/scsi/sr.c | int i; |
i | 831 | drivers/scsi/sr.c | for(i=0; i<12; i++) printk("%2.2x ", cmd[i]); |
i | 868 | drivers/scsi/sr.c | int i; |
i | 878 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
i | 881 | drivers/scsi/sr.c | if(i >= sr_template.dev_max) panic ("scsi_devices corrupt (sr)"); |
i | 884 | drivers/scsi/sr.c | scsi_CDs[i].device = SDp; |
i | 904 | drivers/scsi/sr.c | static void get_sectorsize(int i){ |
i | 911 | drivers/scsi/sr.c | SCpnt = allocate_device(NULL, scsi_CDs[i].device, 1); |
i | 916 | drivers/scsi/sr.c | cmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0; |
i | 949 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0x1fffff; |
i | 950 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = 2048; /* A guess, just in case */ |
i | 951 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
i | 953 | drivers/scsi/sr.c | scsi_CDs[i].capacity = (buffer[0] << 24) | |
i | 955 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = (buffer[4] << 24) | |
i | 957 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size == 0) scsi_CDs[i].sector_size = 2048; |
i | 958 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size != 2048 && |
i | 959 | drivers/scsi/sr.c | scsi_CDs[i].sector_size != 512) { |
i | 961 | drivers/scsi/sr.c | i, scsi_CDs[i].sector_size); |
i | 962 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0; |
i | 963 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
i | 965 | drivers/scsi/sr.c | if(scsi_CDs[i].sector_size == 2048) |
i | 966 | drivers/scsi/sr.c | scsi_CDs[i].capacity *= 4; |
i | 967 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 0; |
i | 968 | drivers/scsi/sr.c | sr_sizes[i] = scsi_CDs[i].capacity; |
i | 975 | drivers/scsi/sr.c | int i; |
i | 999 | drivers/scsi/sr.c | for(i=0;i<sr_template.dev_max;i++) sr_blocksizes[i] = 2048; |
i | 1006 | drivers/scsi/sr.c | int i; |
i | 1011 | drivers/scsi/sr.c | for (i = 0; i < sr_template.nr_dev; ++i) |
i | 1015 | drivers/scsi/sr.c | if (scsi_CDs[i].capacity) continue; |
i | 1016 | drivers/scsi/sr.c | scsi_CDs[i].capacity = 0x1fffff; |
i | 1017 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = 2048; /* A guess, just in case */ |
i | 1018 | drivers/scsi/sr.c | scsi_CDs[i].needs_sector_size = 1; |
i | 1021 | drivers/scsi/sr.c | get_sectorsize(i); |
i | 1022 | drivers/scsi/sr.c | printk("Scd sectorsize = %d bytes.\n", scsi_CDs[i].sector_size); |
i | 1024 | drivers/scsi/sr.c | scsi_CDs[i].use = 1; |
i | 1025 | drivers/scsi/sr.c | scsi_CDs[i].ten = 1; |
i | 1026 | drivers/scsi/sr.c | scsi_CDs[i].remap = 1; |
i | 1027 | drivers/scsi/sr.c | sr_sizes[i] = scsi_CDs[i].capacity; |
i | 1045 | drivers/scsi/sr.c | int i, major; |
i | 1049 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
i | 1055 | drivers/scsi/sr.c | invalidate_inodes(major | i); |
i | 1056 | drivers/scsi/sr.c | invalidate_buffers(major | i); |
i | 1067 | drivers/scsi/sr.c | sr_sizes[i] = 0; |
i | 409 | drivers/scsi/st.c | int i; |
i | 424 | drivers/scsi/st.c | for (i=0; i < st_nbr_buffers; i++) |
i | 425 | drivers/scsi/st.c | if (!st_buffers[i]->in_use) |
i | 427 | drivers/scsi/st.c | if (i >= st_nbr_buffers) { |
i | 431 | drivers/scsi/st.c | STp->buffer = st_buffers[i]; |
i | 1673 | drivers/scsi/st.c | int i, cmd, result; |
i | 1695 | drivers/scsi/st.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(mtc)); |
i | 1696 | drivers/scsi/st.c | if (i) |
i | 1697 | drivers/scsi/st.c | return i; |
i | 1701 | drivers/scsi/st.c | i = flush_buffer(inode, file, mtc.mt_op == MTSEEK || |
i | 1704 | drivers/scsi/st.c | if (i < 0) |
i | 1705 | drivers/scsi/st.c | return i; |
i | 1721 | drivers/scsi/st.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct mtget)); |
i | 1722 | drivers/scsi/st.c | if (i) |
i | 1723 | drivers/scsi/st.c | return i; |
i | 1780 | drivers/scsi/st.c | i = flush_buffer(inode, file, 0); |
i | 1781 | drivers/scsi/st.c | if (i < 0) |
i | 1782 | drivers/scsi/st.c | return i; |
i | 1784 | drivers/scsi/st.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(struct mtpos)); |
i | 1785 | drivers/scsi/st.c | if (i) |
i | 1786 | drivers/scsi/st.c | return i; |
i | 1875 | drivers/scsi/st.c | int i; |
i | 1885 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
i | 1888 | drivers/scsi/st.c | if(i >= st_template.dev_max) panic ("scsi_devices corrupt (st)"); |
i | 1890 | drivers/scsi/st.c | scsi_tapes[i].device = SDp; |
i | 1892 | drivers/scsi/st.c | scsi_tapes[i].mt_status->mt_type = MT_ISSCSI1; |
i | 1894 | drivers/scsi/st.c | scsi_tapes[i].mt_status->mt_type = MT_ISSCSI2; |
i | 1914 | drivers/scsi/st.c | int i; |
i | 1939 | drivers/scsi/st.c | for (i=0; i < st_template.dev_max; ++i) { |
i | 1940 | drivers/scsi/st.c | STp = &(scsi_tapes[i]); |
i | 1961 | drivers/scsi/st.c | memset((void *) scsi_tapes[i].mt_status, 0, sizeof(struct mtget)); |
i | 1975 | drivers/scsi/st.c | for (i=0; i < st_nbr_buffers; i++) { |
i | 1976 | drivers/scsi/st.c | st_buffers[i] = (ST_buffer *) scsi_init_malloc(sizeof(ST_buffer) - |
i | 1981 | drivers/scsi/st.c | st_buffers[i]->in_use = 0; |
i | 1982 | drivers/scsi/st.c | st_buffers[i]->writing = 0; |
i | 1990 | drivers/scsi/st.c | int i; |
i | 1992 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
i | 165 | drivers/scsi/t128.c | int i; |
i | 172 | drivers/scsi/t128.c | for (i = 0; i < NO_BASES; ++i) |
i | 173 | drivers/scsi/t128.c | if (bases[i].address == (unsigned char *) ints[1]) { |
i | 174 | drivers/scsi/t128.c | bases[i].noauto = 1; |
i | 318 | drivers/scsi/t128.c | register i = len; |
i | 322 | drivers/scsi/t128.c | for (; i; --i) { |
i | 326 | drivers/scsi/t128.c | for (; i; --i) { |
i | 362 | drivers/scsi/t128.c | register i = len; |
i | 365 | drivers/scsi/t128.c | for (; i; --i) { |
i | 369 | drivers/scsi/t128.c | for (; i; --i) { |
i | 527 | drivers/scsi/u14-34f.c | unsigned int i, j, k, flags; |
i | 539 | drivers/scsi/u14-34f.c | i = HD(j)->last_cp_used + 1; |
i | 541 | drivers/scsi/u14-34f.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
i | 543 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) i = 0; |
i | 545 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) { |
i | 546 | drivers/scsi/u14-34f.c | HD(j)->last_cp_used = i; |
i | 568 | drivers/scsi/u14-34f.c | cpp = &HD(j)->cp[i]; |
i | 572 | drivers/scsi/u14-34f.c | cpp->index = i; |
i | 576 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->target, SCpnt->pid); |
i | 614 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = IN_USE; |
i | 620 | drivers/scsi/u14-34f.c | unsigned int i, j, flags; |
i | 632 | drivers/scsi/u14-34f.c | i = *(unsigned int *)SCarg->host_scribble; |
i | 634 | drivers/scsi/u14-34f.c | BN(j), i, SCarg->target, SCarg->pid); |
i | 636 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
i | 645 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) { |
i | 646 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is free.\n", BN(j), i); |
i | 651 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IN_USE) { |
i | 652 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is in use.\n", BN(j), i); |
i | 654 | drivers/scsi/u14-34f.c | if (SCarg != HD(j)->cp[i].SCpnt) |
i | 656 | drivers/scsi/u14-34f.c | BN(j), i, SCarg, HD(j)->cp[i].SCpnt); |
i | 662 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IN_RESET) { |
i | 663 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is in reset.\n", BN(j), i); |
i | 668 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 669 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is locked.\n", BN(j), i); |
i | 674 | drivers/scsi/u14-34f.c | panic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i); |
i | 678 | drivers/scsi/u14-34f.c | unsigned int i, j, flags, time, k, limit = 0; |
i | 707 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 709 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) continue; |
i | 711 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
i | 712 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
i | 713 | drivers/scsi/u14-34f.c | printk("%s: reset, locked mbox %d forced free.\n", BN(j), i); |
i | 717 | drivers/scsi/u14-34f.c | SCpnt = HD(j)->cp[i].SCpnt; |
i | 718 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = IN_RESET; |
i | 720 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid); |
i | 723 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, SCpnt == NULL.\n", BN(j), i); |
i | 726 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, garbled SCpnt.\n", BN(j), i); |
i | 728 | drivers/scsi/u14-34f.c | if (*(unsigned int *)SCpnt->host_scribble != i) |
i | 729 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, index mismatch.\n", BN(j), i); |
i | 732 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, SCpnt->scsi_done == NULL.\n", BN(j), i); |
i | 757 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
i | 760 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] != IN_RESET) continue; |
i | 762 | drivers/scsi/u14-34f.c | SCpnt = HD(j)->cp[i].SCpnt; |
i | 767 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = LOCKED; |
i | 770 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid); |
i | 802 | drivers/scsi/u14-34f.c | unsigned int i, j, k, flags, status, tstatus, loops, total_loops = 0; |
i | 837 | drivers/scsi/u14-34f.c | i = spp - HD(j)->cp; |
i | 839 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
i | 842 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IGNORE) { |
i | 843 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
i | 846 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == LOCKED) { |
i | 847 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
i | 849 | drivers/scsi/u14-34f.c | BN(j), i, HD(j)->iocount); |
i | 852 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == FREE) { |
i | 854 | drivers/scsi/u14-34f.c | BN(j), i, HD(j)->iocount); |
i | 857 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == IN_RESET) |
i | 858 | drivers/scsi/u14-34f.c | printk("%s: ihdlr, mbox %d is in reset.\n", BN(j), i); |
i | 859 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] != IN_USE) |
i | 860 | drivers/scsi/u14-34f.c | panic("%s: ihdlr, mbox %d, invalid cp_stat.\n", BN(j), i); |
i | 862 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
i | 866 | drivers/scsi/u14-34f.c | panic("%s: ihdlr, mbox %d, SCpnt == NULL.\n", BN(j), i); |
i | 870 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid, SCpnt); |
i | 872 | drivers/scsi/u14-34f.c | if (*(unsigned int *)SCpnt->host_scribble != i) |
i | 874 | drivers/scsi/u14-34f.c | " irq %d.\n", BN(j), i, SCpnt->pid, |
i | 970 | drivers/scsi/u14-34f.c | BN(j), i, spp->adapter_status, spp->target_status, |
i | 325 | drivers/scsi/ultrastor.c | register int i; |
i | 330 | drivers/scsi/ultrastor.c | for (i = 0; i < ULTRASTOR_MAX_CMDS; i++) |
i | 332 | drivers/scsi/ultrastor.c | fmt[20 + i*2] = ' '; |
i | 333 | drivers/scsi/ultrastor.c | if (! (config->mscp_free & (1 << i))) |
i | 334 | drivers/scsi/ultrastor.c | fmt[21 + i*2] = '0' + config->mscp[i].target_id; |
i | 336 | drivers/scsi/ultrastor.c | fmt[21 + i*2] = '-'; |
i | 347 | drivers/scsi/ultrastor.c | size_t i; |
i | 377 | drivers/scsi/ultrastor.c | for (i = 0; i < ARRAY_SIZE(ultrastor_ports_14f); i++) { |
i | 378 | drivers/scsi/ultrastor.c | if(check_region(ultrastor_ports_14f[i], 0x0c)) continue; |
i | 379 | drivers/scsi/ultrastor.c | config.port_address = ultrastor_ports_14f[i]; |
i | 421 | drivers/scsi/ultrastor.c | if (i == ARRAY_SIZE(ultrastor_ports_14f)) { |
i | 520 | drivers/scsi/ultrastor.c | register int i; |
i | 528 | drivers/scsi/ultrastor.c | for (i = 1; i < 15; i++) |
i | 531 | drivers/scsi/ultrastor.c | unsigned short addr = (i << 12) | ULTRASTOR_24F_PORT; |
i | 539 | drivers/scsi/ultrastor.c | config.slot = i; |
i | 543 | drivers/scsi/ultrastor.c | printk("U24F: found disabled card in slot %u\n", i); |
i | 548 | drivers/scsi/ultrastor.c | printk("U24F: found card in slot %u\n", i); |
i | 649 | drivers/scsi/ultrastor.c | int i, max; |
i | 653 | drivers/scsi/ultrastor.c | for (i = 0; i < max; i++) { |
i | 654 | drivers/scsi/ultrastor.c | mscp->sglist[i].address = (unsigned int)sl[i].address; |
i | 655 | drivers/scsi/ultrastor.c | mscp->sglist[i].num_bytes = sl[i].length; |
i | 656 | drivers/scsi/ultrastor.c | transfer_length += sl[i].length; |
i | 844 | drivers/scsi/ultrastor.c | int i; |
i | 849 | drivers/scsi/ultrastor.c | for (i = 0; i < 16; i++) |
i | 851 | drivers/scsi/ultrastor.c | unsigned char p = inb(port0 + i); |
i | 852 | drivers/scsi/ultrastor.c | out[28 + i * 3] = "0123456789abcdef"[p >> 4]; |
i | 853 | drivers/scsi/ultrastor.c | out[29 + i * 3] = "0123456789abcdef"[p & 15]; |
i | 854 | drivers/scsi/ultrastor.c | out[30 + i * 3] = ' '; |
i | 856 | drivers/scsi/ultrastor.c | out[28 + i * 3] = '\n'; |
i | 857 | drivers/scsi/ultrastor.c | out[29 + i * 3] = 0; |
i | 946 | drivers/scsi/ultrastor.c | register int i; |
i | 974 | drivers/scsi/ultrastor.c | for (i = 0; i < ULTRASTOR_MAX_CMDS; i++) |
i | 976 | drivers/scsi/ultrastor.c | if (! (config.mscp_free & (1 << i)) && |
i | 977 | drivers/scsi/ultrastor.c | config.mscp[i].done && config.mscp[i].SCint) |
i | 979 | drivers/scsi/ultrastor.c | config.mscp[i].SCint->result = DID_RESET << 16; |
i | 980 | drivers/scsi/ultrastor.c | config.mscp[i].done(config.mscp[i].SCint); |
i | 981 | drivers/scsi/ultrastor.c | config.mscp[i].done = 0; |
i | 983 | drivers/scsi/ultrastor.c | config.mscp[i].SCint = 0; |
i | 490 | drivers/scsi/wd7000.c | int i; |
i | 507 | drivers/scsi/wd7000.c | result.i = 0; /* clears unused bytes */ |
i | 511 | drivers/scsi/wd7000.c | return result.i; |
i | 602 | drivers/scsi/wd7000.c | int i; |
i | 634 | drivers/scsi/wd7000.c | for (i = 0; i < needed; i++) { p = scbfree; scbfree = p->next; } |
i | 662 | drivers/scsi/wd7000.c | int i; |
i | 670 | drivers/scsi/wd7000.c | for (i = 0; i < MAX_SCBS-1; i++) { |
i | 671 | drivers/scsi/wd7000.c | scbs[i].next = &(scbs[i+1]); scbs[i].SCpnt = NULL; |
i | 685 | drivers/scsi/wd7000.c | register int i, ogmb; |
i | 697 | drivers/scsi/wd7000.c | for (i = 0; i < OGMB_CNT; i++) { |
i | 714 | drivers/scsi/wd7000.c | if (i >= OGMB_CNT) { |
i | 911 | drivers/scsi/wd7000.c | unsigned i; |
i | 925 | drivers/scsi/wd7000.c | for (i = 0; i < SCpnt->use_sg; i++) { |
i | 926 | drivers/scsi/wd7000.c | any2scsi(sgb[i].ptr, (int) sg[i].address); |
i | 927 | drivers/scsi/wd7000.c | any2scsi(sgb[i].len, sg[i].length); |
i | 1095 | drivers/scsi/wd7000.c | int i,j, present = 0; |
i | 1105 | drivers/scsi/wd7000.c | for (i = 0; i < NUM_CONFIGS; i++) { |
i | 290 | drivers/sound/ad1848.c | int i, n, selected = -1; |
i | 299 | drivers/sound/ad1848.c | for (i = 1 /*really*/ ; selected == -1 && i < n; i++) |
i | 300 | drivers/sound/ad1848.c | if (speed_table[i].speed == arg) |
i | 301 | drivers/sound/ad1848.c | selected = i; |
i | 302 | drivers/sound/ad1848.c | else if (speed_table[i].speed > arg) |
i | 306 | drivers/sound/ad1848.c | diff1 = arg - speed_table[i - 1].speed; |
i | 307 | drivers/sound/ad1848.c | diff2 = speed_table[i].speed - arg; |
i | 310 | drivers/sound/ad1848.c | selected = i - 1; |
i | 312 | drivers/sound/ad1848.c | selected = i; |
i | 387 | drivers/sound/ad1848.c | int i, n = sizeof (format2bits) / sizeof (struct format_tbl); |
i | 394 | drivers/sound/ad1848.c | for (i = 0; i < n; i++) |
i | 395 | drivers/sound/ad1848.c | if (format2bits[i].format == arg) |
i | 397 | drivers/sound/ad1848.c | if ((devc->format_bits = format2bits[i].bits) == 0) |
i | 666 | drivers/sound/ad1848.c | int i; |
i | 750 | drivers/sound/ad1848.c | for (i = 0; i < 16; i++) |
i | 751 | drivers/sound/ad1848.c | if ((tmp1 = ad_read (devc, i)) != (tmp2 = ad_read (devc, i + 16))) |
i | 753 | drivers/sound/ad1848.c | DDB (printk ("ad_detect_F(%d/%x/%x)\n", i, tmp1, tmp2)); |
i | 817 | drivers/sound/ad1848.c | int i, my_dev; |
i | 835 | drivers/sound/ad1848.c | for (i = 0; i < 16; i++) |
i | 836 | drivers/sound/ad1848.c | ad_write (devc, i, init_values[i]); |
i | 144 | drivers/sound/audio.c | unsigned long i; |
i | 146 | drivers/sound/audio.c | for (i = 0; i < n; ++i) |
i | 147 | drivers/sound/audio.c | buff[i] = table[buff[i]]; |
i | 259 | drivers/sound/configure.c | int i, num, def_size, full_driver = 1; |
i | 296 | drivers/sound/configure.c | for (i = 0; i <= OPT_LAST; i++) |
i | 297 | drivers/sound/configure.c | if (can_select_option (i)) |
i | 299 | drivers/sound/configure.c | if (!(selected_options & B (i))) /* |
i | 302 | drivers/sound/configure.c | if (!hw_table[i].verify) |
i | 304 | drivers/sound/configure.c | if (hw_table[i].alias) |
i | 305 | drivers/sound/configure.c | selected_options |= B (hw_table[i].alias); |
i | 307 | drivers/sound/configure.c | selected_options |= B (i); |
i | 311 | drivers/sound/configure.c | int def_answ = hw_table[i].default_answ; |
i | 315 | drivers/sound/configure.c | questions[i]); |
i | 317 | drivers/sound/configure.c | if (hw_table[i].alias) |
i | 318 | drivers/sound/configure.c | selected_options |= B (hw_table[i].alias); |
i | 320 | drivers/sound/configure.c | selected_options |= B (i); |
i | 358 | drivers/sound/configure.c | int i = 0; |
i | 371 | drivers/sound/configure.c | if (i != 0 && (i % 10) == 0) |
i | 374 | drivers/sound/configure.c | i++; |
i | 377 | drivers/sound/configure.c | "#define pss_synthLen %d\n", i); |
i | 412 | drivers/sound/configure.c | for (i = 0; i <= OPT_LAST; i++) |
i | 413 | drivers/sound/configure.c | if (!hw_table[i].alias) |
i | 414 | drivers/sound/configure.c | if (selected_options & B (i)) |
i | 415 | drivers/sound/configure.c | printf ("#undef EXCLUDE_%s\n", hw_table[i].macro); |
i | 417 | drivers/sound/configure.c | printf ("#define EXCLUDE_%s\n", hw_table[i].macro); |
i | 38 | drivers/sound/dev_table.c | int i, n = sizeof (sound_drivers) / sizeof (struct driver_info); |
i | 40 | drivers/sound/dev_table.c | for (i = 0; i < (n - 1); i++) |
i | 41 | drivers/sound/dev_table.c | if (sound_drivers[i].card_type == type) |
i | 42 | drivers/sound/dev_table.c | return i; |
i | 52 | drivers/sound/dev_table.c | int i, n = sizeof (snd_installed_cards) / sizeof (struct card_info); |
i | 55 | drivers/sound/dev_table.c | for (i = 0; i < (n - 1); i++) |
i | 56 | drivers/sound/dev_table.c | if (snd_installed_cards[i].enabled) |
i | 57 | drivers/sound/dev_table.c | if ((drv = snd_find_driver (snd_installed_cards[i].card_type)) == -1) |
i | 58 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; /* |
i | 61 | drivers/sound/dev_table.c | else if (sound_drivers[drv].probe (&snd_installed_cards[i].config)) |
i | 65 | drivers/sound/dev_table.c | snd_installed_cards[i].card_type); |
i | 68 | drivers/sound/dev_table.c | mem_start = sound_drivers[drv].attach (mem_start, &snd_installed_cards[i].config); |
i | 71 | drivers/sound/dev_table.c | snd_installed_cards[i].config.io_base, |
i | 72 | drivers/sound/dev_table.c | snd_installed_cards[i].config.irq, |
i | 73 | drivers/sound/dev_table.c | snd_installed_cards[i].config.dma); |
i | 77 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; /* |
i | 86 | drivers/sound/dev_table.c | int i, n = sizeof (snd_installed_cards) / sizeof (struct card_info); |
i | 91 | drivers/sound/dev_table.c | for (i = 0; i < (n - 1); i++) |
i | 92 | drivers/sound/dev_table.c | if (snd_installed_cards[i].enabled) |
i | 93 | drivers/sound/dev_table.c | if (snd_installed_cards[i].card_type == unit) |
i | 97 | drivers/sound/dev_table.c | snd_installed_cards[i].config.io_base = hw_config->io_base; |
i | 98 | drivers/sound/dev_table.c | snd_installed_cards[i].config.irq = hw_config->irq; |
i | 99 | drivers/sound/dev_table.c | snd_installed_cards[i].config.dma = hw_config->dma; |
i | 100 | drivers/sound/dev_table.c | if ((drv = snd_find_driver (snd_installed_cards[i].card_type)) == -1) |
i | 101 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; /* |
i | 107 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; /* |
i | 119 | drivers/sound/dev_table.c | int i, n = sizeof (snd_installed_cards) / sizeof (struct card_info); |
i | 128 | drivers/sound/dev_table.c | for (i = 0; i < (n - 1); i++) |
i | 129 | drivers/sound/dev_table.c | if (snd_installed_cards[i].card_type == unit) |
i | 133 | drivers/sound/dev_table.c | snd_installed_cards[i].config.io_base = hw_config->io_base; |
i | 134 | drivers/sound/dev_table.c | snd_installed_cards[i].config.irq = hw_config->irq; |
i | 135 | drivers/sound/dev_table.c | snd_installed_cards[i].config.dma = hw_config->dma; |
i | 137 | drivers/sound/dev_table.c | if ((drv = snd_find_driver (snd_installed_cards[i].card_type)) == -1) |
i | 138 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; /* |
i | 159 | drivers/sound/dev_table.c | int i, n = sizeof (snd_installed_cards) / sizeof (struct card_info); |
i | 165 | drivers/sound/dev_table.c | for (i = 0; i < n; i++) |
i | 166 | drivers/sound/dev_table.c | snd_installed_cards[i].enabled = 0; |
i | 174 | drivers/sound/dev_table.c | for (i = 1; i <= ints[0]; i++) |
i | 179 | drivers/sound/dev_table.c | val = (unsigned int) ints[i]; |
i | 219 | drivers/sound/dev_table.c | int i, n = sizeof (snd_installed_cards) / sizeof (struct card_info); |
i | 57 | drivers/sound/dmabuf.c | unsigned i, p, n; |
i | 122 | drivers/sound/dmabuf.c | for (i = 0; i < dmap->raw_count && |
i | 124 | drivers/sound/dmabuf.c | n < MAX_SUB_BUFFERS; i++) |
i | 132 | drivers/sound/dmabuf.c | dmap->buf[n] = dmap->raw_buf[i] + p; |
i | 133 | drivers/sound/dmabuf.c | dmap->buf_phys[n] = dmap->raw_buf_phys[i] + p; |
i | 142 | drivers/sound/dmabuf.c | for (i = 0; i < dmap->nbufs; i++) |
i | 144 | drivers/sound/dmabuf.c | dmap->counts[i] = 0; |
i | 32 | drivers/sound/gus_vol.c | int i, m, n, x; |
i | 81 | drivers/sound/gus_vol.c | i = 7; |
i | 84 | drivers/sound/gus_vol.c | while (i > 0 && n < (1 << i)) |
i | 85 | drivers/sound/gus_vol.c | i--; |
i | 91 | drivers/sound/gus_vol.c | i++; |
i | 97 | drivers/sound/gus_vol.c | m = x - (1 << i); |
i | 104 | drivers/sound/gus_vol.c | if (i > 8) |
i | 105 | drivers/sound/gus_vol.c | m >>= i - 8; |
i | 106 | drivers/sound/gus_vol.c | else if (i < 8) |
i | 107 | drivers/sound/gus_vol.c | m <<= 8 - i; |
i | 110 | drivers/sound/gus_vol.c | return ((i << 8) + m); |
i | 178 | drivers/sound/gus_wave.c | int i; |
i | 180 | drivers/sound/gus_wave.c | for (i = 0; i <= MAX_SAMPLE; i++) |
i | 181 | drivers/sound/gus_wave.c | sample_ptrs[i] = -1; |
i | 182 | drivers/sound/gus_wave.c | for (i = 0; i < 32; i++) |
i | 183 | drivers/sound/gus_wave.c | sample_map[i] = -1; |
i | 184 | drivers/sound/gus_wave.c | for (i = 0; i < 32; i++) |
i | 185 | drivers/sound/gus_wave.c | patch_map[i] = -1; |
i | 193 | drivers/sound/gus_wave.c | for (i = 0; i < MAX_PATCH; i++) |
i | 194 | drivers/sound/gus_wave.c | patch_table[i] = -1; |
i | 200 | drivers/sound/gus_wave.c | int i; |
i | 202 | drivers/sound/gus_wave.c | for (i = 0; i < 7; i++) |
i | 646 | drivers/sound/gus_wave.c | int i; |
i | 653 | drivers/sound/gus_wave.c | for (i = 0; i < 32; i++) |
i | 655 | drivers/sound/gus_wave.c | gus_voice_init (i); /* Turn voice off */ |
i | 656 | drivers/sound/gus_wave.c | gus_voice_init2 (i); |
i | 791 | drivers/sound/gus_wave.c | unsigned long i; |
i | 811 | drivers/sound/gus_wave.c | for (i = 1L; i < 1024L; i++) |
i | 818 | drivers/sound/gus_wave.c | loc = i << 10; |
i | 834 | drivers/sound/gus_wave.c | gus_mem_size = i << 10; |
i | 1252 | drivers/sound/gus_wave.c | int i; |
i | 1254 | drivers/sound/gus_wave.c | for (i = 0; i < 6; i++) |
i | 1256 | drivers/sound/gus_wave.c | voices[voice].env_rate[i] = samples[sample].env_rate[i]; |
i | 1257 | drivers/sound/gus_wave.c | voices[voice].env_offset[i] = samples[sample].env_offset[i]; |
i | 1430 | drivers/sound/gus_wave.c | int i; |
i | 1432 | drivers/sound/gus_wave.c | for (i = 0; i < 32; i++) |
i | 1434 | drivers/sound/gus_wave.c | gus_voice_init (i); |
i | 1435 | drivers/sound/gus_wave.c | gus_voice_init2 (i); |
i | 1626 | drivers/sound/gus_wave.c | long i; |
i | 1629 | drivers/sound/gus_wave.c | for (i = 0; i < blk_size; i++) |
i | 1631 | drivers/sound/gus_wave.c | GET_BYTE_FROM_USER (data, addr, sizeof_patch + i); |
i | 1634 | drivers/sound/gus_wave.c | if (!(patch.mode & WAVE_16_BITS) || (i & 0x01)) |
i | 1636 | drivers/sound/gus_wave.c | gus_poke (target + i, data); |
i | 2299 | drivers/sound/gus_wave.c | int i; |
i | 2316 | drivers/sound/gus_wave.c | for (i = 0; i < pcm_nblk; i++) |
i | 2317 | drivers/sound/gus_wave.c | pcm_datasize[i] = 0; |
i | 2346 | drivers/sound/gus_wave.c | int i; |
i | 2353 | drivers/sound/gus_wave.c | for (i = 0; i < len; i++) |
i | 2366 | drivers/sound/gus_wave.c | int i; |
i | 2374 | drivers/sound/gus_wave.c | for (i = 0; i < len; i++) |
i | 2423 | drivers/sound/gus_wave.c | int i, n; |
i | 2440 | drivers/sound/gus_wave.c | for (i = 0; i < MAX_PATCH; i++) |
i | 2442 | drivers/sound/gus_wave.c | int ptr = patch_table[i]; |
i | 2444 | drivers/sound/gus_wave.c | rec->data.data8[i] = 0; |
i | 2448 | drivers/sound/gus_wave.c | rec->data.data8[i]++; |
i | 2606 | drivers/sound/gus_wave.c | int i, p; |
i | 2613 | drivers/sound/gus_wave.c | for (i = 0; i < alloc->max_voice; i++) |
i | 2627 | drivers/sound/gus_wave.c | for (i = 0; i < alloc->max_voice; i++) |
i | 233 | drivers/sound/ics2101.c | int i; |
i | 246 | drivers/sound/ics2101.c | for (i = 0; i < ICS_MIXDEVS; i++) |
i | 247 | drivers/sound/ics2101.c | left_fix[i] = 1; |
i | 248 | drivers/sound/ics2101.c | for (i = 0; i < ICS_MIXDEVS; i++) |
i | 249 | drivers/sound/ics2101.c | right_fix[i] = 2; |
i | 303 | drivers/sound/midi_synth.c | int i; |
i | 343 | drivers/sound/midi_synth.c | for (i = 0; i < left && !PROCESS_ABORTING (sysex_sleeper, sysex_sleep_flag); i++) |
i | 347 | drivers/sound/midi_synth.c | GET_BYTE_FROM_USER (data, addr, sizeof (struct sysex_info) + i); |
i | 356 | drivers/sound/midi_synth.c | if (i == 0) |
i | 282 | drivers/sound/midibuf.c | int c, n, i; |
i | 315 | drivers/sound/midibuf.c | for (i = 0; i < n; i++) |
i | 610 | drivers/sound/mpu401.c | int i, timeout, ok; |
i | 661 | drivers/sound/mpu401.c | for (i = 0; i < cmd->nr_args; i++) |
i | 665 | drivers/sound/mpu401.c | if (!mpu401_out (dev, cmd->data[i])) |
i | 677 | drivers/sound/mpu401.c | for (i = 0; i < cmd->nr_returns; i++) |
i | 683 | drivers/sound/mpu401.c | cmd->data[i] = read_data (devc->base); |
i | 690 | drivers/sound/mpu401.c | printk ("MPU: No response(%d) to command (0x%x)\n", i, (int) cmd->cmd); |
i | 975 | drivers/sound/mpu401.c | int i; |
i | 981 | drivers/sound/mpu401.c | for (i = 0; i < 16; i++) |
i | 982 | drivers/sound/mpu401.c | irq2dev[i] = -1; |
i | 1004 | drivers/sound/mpu401.c | for (i = 0; i < 32; i++) |
i | 1005 | drivers/sound/mpu401.c | devc->controls[i] = 0x2000; |
i | 109 | drivers/sound/opl3.c | int i; |
i | 116 | drivers/sound/opl3.c | for (i = 0; i < 3; i++) |
i | 117 | drivers/sound/opl3.c | physical_voices[i].voice_mode = 4; |
i | 118 | drivers/sound/opl3.c | for (i = 3; i < 6; i++) |
i | 119 | drivers/sound/opl3.c | physical_voices[i].voice_mode = 0; |
i | 121 | drivers/sound/opl3.c | for (i = 9; i < 12; i++) |
i | 122 | drivers/sound/opl3.c | physical_voices[i].voice_mode = 4; |
i | 123 | drivers/sound/opl3.c | for (i = 12; i < 15; i++) |
i | 124 | drivers/sound/opl3.c | physical_voices[i].voice_mode = 0; |
i | 126 | drivers/sound/opl3.c | for (i = 0; i < 12; i++) |
i | 127 | drivers/sound/opl3.c | logical_voices[i] = voices_4op[i]; |
i | 193 | drivers/sound/opl3.c | int i; |
i | 242 | drivers/sound/opl3.c | for (i = 0; i < 50; i++) |
i | 279 | drivers/sound/opl3.c | for (i = 0; i < 9; i++) |
i | 280 | drivers/sound/opl3.c | opl3_command (ioaddr, KEYON_BLOCK + i, 0); /* |
i | 785 | drivers/sound/opl3.c | int i; |
i | 800 | drivers/sound/opl3.c | for (i = 0; i < 2; i++) |
i | 815 | drivers/sound/opl3.c | for (i = 0; i < 2; i++) |
i | 822 | drivers/sound/opl3.c | int i; |
i | 824 | drivers/sound/opl3.c | for (i = 0; i < nr_voices; i++) |
i | 826 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
i | 827 | drivers/sound/opl3.c | KSL_LEVEL + physical_voices[logical_voices[i]].op[0], 0xff); |
i | 829 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
i | 830 | drivers/sound/opl3.c | KSL_LEVEL + physical_voices[logical_voices[i]].op[1], 0xff); |
i | 832 | drivers/sound/opl3.c | if (physical_voices[logical_voices[i]].voice_mode == 4) |
i | 834 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
i | 835 | drivers/sound/opl3.c | KSL_LEVEL + physical_voices[logical_voices[i]].op[2], 0xff); |
i | 837 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
i | 838 | drivers/sound/opl3.c | KSL_LEVEL + physical_voices[logical_voices[i]].op[3], 0xff); |
i | 841 | drivers/sound/opl3.c | opl3_kill_note (dev, i, 0, 64); |
i | 848 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 849 | drivers/sound/opl3.c | logical_voices[i] = i; |
i | 851 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 852 | drivers/sound/opl3.c | physical_voices[i].voice_mode = 2; |
i | 1079 | drivers/sound/opl3.c | int i, p, avail_voices; |
i | 1116 | drivers/sound/opl3.c | for (i = 0; i < avail_voices; i++) |
i | 1160 | drivers/sound/opl3.c | int i; |
i | 1187 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 1188 | drivers/sound/opl3.c | if (physical_voices[i].ioaddr == USE_LEFT) |
i | 1189 | drivers/sound/opl3.c | physical_voices[i].ioaddr = left_address; |
i | 1191 | drivers/sound/opl3.c | physical_voices[i].ioaddr = right_address; |
i | 1214 | drivers/sound/opl3.c | for (i = 0; i < 18; i++) |
i | 1215 | drivers/sound/opl3.c | physical_voices[i].ioaddr = left_address; |
i | 1219 | drivers/sound/opl3.c | for (i = 0; i < SBFM_MAXINSTR; i++) |
i | 1220 | drivers/sound/opl3.c | instrmap[i].channel = -1; |
i | 274 | drivers/sound/pas2_midi.c | int i, incount; |
i | 289 | drivers/sound/pas2_midi.c | for (i = 0; i < incount; i++) |
i | 156 | drivers/sound/pas2_mixer.c | int left, right, devmask, changed, i, mixer = 0; |
i | 245 | drivers/sound/pas2_mixer.c | i = 0; |
i | 248 | drivers/sound/pas2_mixer.c | i = (level / 20) - 1; |
i | 254 | drivers/sound/pas2_mixer.c | if (i) |
i | 255 | drivers/sound/pas2_mixer.c | i = (i + 1) * 20; |
i | 256 | drivers/sound/pas2_mixer.c | return i; |
i | 275 | drivers/sound/pas2_mixer.c | for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) |
i | 276 | drivers/sound/pas2_mixer.c | if (changed & (1 << i)) |
i | 278 | drivers/sound/pas2_mixer.c | pas_mixer_set (i, levels[i]); |
i | 124 | drivers/sound/pss.c | int i, limit; |
i | 135 | drivers/sound/pss.c | for (i = 0; i < 5000000 && GET_TIME () < limit; i++) |
i | 170 | drivers/sound/pss.c | int i; |
i | 230 | drivers/sound/pss.c | for (i = 0; i < 5; i++) |
i | 629 | drivers/sound/pss.c | unsigned long i, limit = GET_TIME () + 10; |
i | 633 | drivers/sound/pss.c | for (i = 0; i < 32768 && GET_TIME () < limit; i++) |
i | 645 | drivers/sound/pss.c | int i, limit, val, count; |
i | 654 | drivers/sound/pss.c | for (i = 0; i < 32768 && GET_TIME () < limit; i++) |
i | 696 | drivers/sound/pss.c | for (i = 0; i < 32768 && GET_TIME () < limit; i++) |
i | 702 | drivers/sound/pss.c | for (i = 0; i < 32768 && GET_TIME () < limit; i++) |
i | 710 | drivers/sound/pss.c | for (i = 0; i < 32000; i++) |
i | 716 | drivers/sound/pss.c | if (i == 32000) |
i | 105 | drivers/sound/sb16_dsp.c | int i = 1 << 16; |
i | 107 | drivers/sound/sb16_dsp.c | while (--i & (!INB (DSP_STATUS) & 0x80)); |
i | 108 | drivers/sound/sb16_dsp.c | if (!i) |
i | 104 | drivers/sound/sb_dsp.c | int i; |
i | 119 | drivers/sound/sb_dsp.c | for (i = 0; i < 500000 && GET_TIME () < limit; i++) |
i | 762 | drivers/sound/sb_dsp.c | int i; |
i | 770 | drivers/sound/sb_dsp.c | for (i = 1000; i; i--) |
i | 251 | drivers/sound/sb_mixer.c | int devmask, i; |
i | 312 | drivers/sound/sb_mixer.c | for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) |
i | 313 | drivers/sound/sb_mixer.c | if ((1 << i) & devmask) |
i | 315 | drivers/sound/sb_mixer.c | regimageL |= sb16_recmasks_L[i]; |
i | 316 | drivers/sound/sb_mixer.c | regimageR |= sb16_recmasks_R[i]; |
i | 385 | drivers/sound/sb_mixer.c | int i; |
i | 387 | drivers/sound/sb_mixer.c | for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) |
i | 388 | drivers/sound/sb_mixer.c | sb_mixer_set (i, levels[i]); |
i | 443 | drivers/sound/sequencer.c | int i; |
i | 447 | drivers/sound/sequencer.c | for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) |
i | 448 | drivers/sound/sequencer.c | if (synth_devs[dev]->alloc.map[i] == key) |
i | 449 | drivers/sound/sequencer.c | return i; |
i | 887 | drivers/sound/sequencer.c | int i; |
i | 889 | drivers/sound/sequencer.c | for (i = 0; i < 128; i++) |
i | 890 | drivers/sound/sequencer.c | controller[i] = ctrl_def_values[i]; |
i | 927 | drivers/sound/sequencer.c | int retval, mode, i; |
i | 983 | drivers/sound/sequencer.c | int i, best; |
i | 986 | drivers/sound/sequencer.c | for (i = 0; i < num_sound_timers; i++) |
i | 987 | drivers/sound/sequencer.c | if (sound_timer_devs[i]->priority > best) |
i | 989 | drivers/sound/sequencer.c | tmr_no = i; |
i | 990 | drivers/sound/sequencer.c | best = sound_timer_devs[i]->priority; |
i | 1022 | drivers/sound/sequencer.c | for (i = 0; i < max_mididev; i++) |
i | 1024 | drivers/sound/sequencer.c | midi_opened[i] = 0; |
i | 1025 | drivers/sound/sequencer.c | midi_written[i] = 0; |
i | 1031 | drivers/sound/sequencer.c | for (i = 0; i < max_synthdev; i++) /* |
i | 1034 | drivers/sound/sequencer.c | if ((tmp = synth_devs[i]->open (i, mode)) < 0) |
i | 1036 | drivers/sound/sequencer.c | printk ("Sequencer: Warning! Cannot open synth device #%d (%d)\n", i, tmp); |
i | 1037 | drivers/sound/sequencer.c | if (synth_devs[i]->midi_dev) |
i | 1038 | drivers/sound/sequencer.c | printk ("(Maps to midi dev #%d\n", synth_devs[i]->midi_dev); |
i | 1042 | drivers/sound/sequencer.c | synth_open_mask |= (1 << i); |
i | 1043 | drivers/sound/sequencer.c | if (synth_devs[i]->midi_dev) /* |
i | 1046 | drivers/sound/sequencer.c | midi_opened[synth_devs[i]->midi_dev] = 1; |
i | 1057 | drivers/sound/sequencer.c | for (i = 0; i < max_mididev; i++) |
i | 1058 | drivers/sound/sequencer.c | if (!midi_opened[i]) |
i | 1060 | drivers/sound/sequencer.c | if ((retval = midi_devs[i]->open (i, mode, |
i | 1062 | drivers/sound/sequencer.c | midi_opened[i] = 1; |
i | 1076 | drivers/sound/sequencer.c | for (i = 0; i < num_synths; i++) |
i | 1077 | drivers/sound/sequencer.c | if (pmgr_present[i]) |
i | 1078 | drivers/sound/sequencer.c | pmgr_inform (i, PM_E_OPENED, 0, 0, 0, 0); |
i | 1086 | drivers/sound/sequencer.c | int i, n; |
i | 1098 | drivers/sound/sequencer.c | for (i = 0; i < max_mididev; i++) |
i | 1099 | drivers/sound/sequencer.c | if (midi_opened[i] && midi_written[i]) |
i | 1100 | drivers/sound/sequencer.c | if (midi_devs[i]->buffer_status != NULL) |
i | 1101 | drivers/sound/sequencer.c | if (midi_devs[i]->buffer_status (i)) |
i | 1117 | drivers/sound/sequencer.c | int i; |
i | 1154 | drivers/sound/sequencer.c | for (i = 0; i < max_synthdev; i++) |
i | 1155 | drivers/sound/sequencer.c | if (synth_open_mask & (1 << i)) /* |
i | 1158 | drivers/sound/sequencer.c | if (synth_devs[i]) |
i | 1160 | drivers/sound/sequencer.c | synth_devs[i]->close (i); |
i | 1162 | drivers/sound/sequencer.c | if (synth_devs[i]->midi_dev) |
i | 1163 | drivers/sound/sequencer.c | midi_opened[synth_devs[i]->midi_dev] = 0; |
i | 1166 | drivers/sound/sequencer.c | for (i = 0; i < num_synths; i++) |
i | 1167 | drivers/sound/sequencer.c | if (pmgr_present[i]) |
i | 1168 | drivers/sound/sequencer.c | pmgr_inform (i, PM_E_CLOSED, 0, 0, 0, 0); |
i | 1170 | drivers/sound/sequencer.c | for (i = 0; i < max_mididev; i++) |
i | 1171 | drivers/sound/sequencer.c | if (midi_opened[i]) |
i | 1172 | drivers/sound/sequencer.c | midi_devs[i]->close (i); |
i | 1234 | drivers/sound/sequencer.c | int i; |
i | 1246 | drivers/sound/sequencer.c | for (i = 0; i < max_synthdev; i++) |
i | 1247 | drivers/sound/sequencer.c | if (synth_open_mask & (1 << i)) |
i | 1248 | drivers/sound/sequencer.c | if (synth_devs[i]) |
i | 1249 | drivers/sound/sequencer.c | synth_devs[i]->reset (i); |
i | 1253 | drivers/sound/sequencer.c | for (i = 0; i < max_synthdev; i++) |
i | 1254 | drivers/sound/sequencer.c | if (synth_open_mask & (1 << i)) |
i | 1255 | drivers/sound/sequencer.c | if (synth_devs[i]) |
i | 1257 | drivers/sound/sequencer.c | synth_devs[i]->controller (i, chn, 0xfe, 0); /* All notes off */ |
i | 1261 | drivers/sound/sequencer.c | for (i = 0; i < max_mididev; i++) |
i | 1262 | drivers/sound/sequencer.c | if (midi_written[i]) /* |
i | 1271 | drivers/sound/sequencer.c | midi_outc (i, 0xfe); |
i | 1275 | drivers/sound/sequencer.c | midi_outc (i, |
i | 1280 | drivers/sound/sequencer.c | midi_outc (i, 0x7b); /* |
i | 1283 | drivers/sound/sequencer.c | midi_outc (i, 0); /* |
i | 1288 | drivers/sound/sequencer.c | midi_devs[i]->close (i); |
i | 1290 | drivers/sound/sequencer.c | midi_written[i] = 0; |
i | 1291 | drivers/sound/sequencer.c | midi_opened[i] = 0; |
i | 114 | drivers/sound/sound_switch.c | int i; |
i | 131 | drivers/sound/sound_switch.c | for (i = 0; i < (num_sound_drivers - 1); i++) |
i | 135 | drivers/sound/sound_switch.c | if (!put_status_int (sound_drivers[i].card_type, 10)) |
i | 139 | drivers/sound/sound_switch.c | if (!put_status (sound_drivers[i].name)) |
i | 149 | drivers/sound/sound_switch.c | for (i = 0; i < (num_sound_cards - 1); i++) |
i | 153 | drivers/sound/sound_switch.c | if (!snd_installed_cards[i].enabled) |
i | 162 | drivers/sound/sound_switch.c | if ((drv = snd_find_driver (snd_installed_cards[i].card_type)) != -1) |
i | 168 | drivers/sound/sound_switch.c | if (!put_status_int (snd_installed_cards[i].config.io_base, 16)) |
i | 172 | drivers/sound/sound_switch.c | if (!put_status_int (snd_installed_cards[i].config.irq, 10)) |
i | 176 | drivers/sound/sound_switch.c | if (!put_status_int (snd_installed_cards[i].config.dma, 10)) |
i | 179 | drivers/sound/sound_switch.c | if (!snd_installed_cards[i].enabled) |
i | 190 | drivers/sound/sound_switch.c | for (i = 0; i < num_audiodevs; i++) |
i | 192 | drivers/sound/sound_switch.c | if (!put_status_int (i, 10)) |
i | 196 | drivers/sound/sound_switch.c | if (!put_status (audio_devs[i]->name)) |
i | 205 | drivers/sound/sound_switch.c | for (i = 0; i < num_synths; i++) |
i | 207 | drivers/sound/sound_switch.c | if (!put_status_int (i, 10)) |
i | 211 | drivers/sound/sound_switch.c | if (!put_status (synth_devs[i]->info->name)) |
i | 220 | drivers/sound/sound_switch.c | for (i = 0; i < num_midis; i++) |
i | 222 | drivers/sound/sound_switch.c | if (!put_status_int (i, 10)) |
i | 226 | drivers/sound/sound_switch.c | if (!put_status (midi_devs[i]->info.name)) |
i | 235 | drivers/sound/sound_switch.c | for (i = 0; i < num_sound_timers; i++) |
i | 237 | drivers/sound/sound_switch.c | if (!put_status_int (i, 10)) |
i | 241 | drivers/sound/sound_switch.c | if (!put_status (sound_timer_devs[i]->info.name)) |
i | 53 | drivers/sound/sound_timer.c | int i; |
i | 57 | drivers/sound/sound_timer.c | for (i = 0; i < 2; i++) |
i | 62 | drivers/sound/sound_timer.c | for (i = 0; i < 2; i++) |
i | 218 | drivers/sound/soundcard.c | int i; |
i | 220 | drivers/sound/soundcard.c | for (i = 0; i < 16; i++) |
i | 292 | drivers/sound/soundcard.c | int i, dev; |
i | 339 | drivers/sound/soundcard.c | for (i = MAP_NR (start_addr); i <= MAP_NR (end_addr); i++) |
i | 341 | drivers/sound/soundcard.c | if (mem_map[i]) |
i | 344 | drivers/sound/soundcard.c | mem_map[i] = MAP_PAGE_RESERVED; |
i | 174 | fs/binfmt_elf.c | int i, k; |
i | 209 | fs/binfmt_elf.c | for(i=0; i<interp_elf_ex->e_phnum; i++, eppnt++) |
i | 308 | fs/binfmt_elf.c | int i; |
i | 385 | fs/binfmt_elf.c | for(i=0;i < elf_ex.e_phnum; i++){ |
i | 503 | fs/binfmt_elf.c | for(i=0;i < elf_ex.e_phnum; i++){ |
i | 646 | fs/binfmt_elf.c | int i,j, k; |
i | 693 | fs/binfmt_elf.c | for(i=0; i<elf_ex.e_phnum; i++) |
i | 694 | fs/binfmt_elf.c | if((elf_phdata + i)->p_type == PT_LOAD) j++; |
i | 25 | fs/block_dev.c | int blocksize, blocksize_bits, i, j, buffercount,write_error; |
i | 47 | fs/block_dev.c | i = blocksize; |
i | 49 | fs/block_dev.c | while(i != 1) { |
i | 51 | fs/block_dev.c | i >>= 1; |
i | 77 | fs/block_dev.c | for(i=0; i<blocks_per_cluster; i++) cluster_list[i] = block+i; |
i | 97 | fs/block_dev.c | for(i=1; i<blocks; i++){ |
i | 98 | fs/block_dev.c | if(((i+block) % blocks_per_cluster) == 0) { |
i | 99 | fs/block_dev.c | for(j=0; j<blocks_per_cluster; j++) cluster_list[j] = block+i+j; |
i | 102 | fs/block_dev.c | bhlist[i] = getblk (dev, block+i, blocksize); |
i | 103 | fs/block_dev.c | if(!bhlist[i]){ |
i | 104 | fs/block_dev.c | while(i >= 0) brelse(bhlist[i--]); |
i | 109 | fs/block_dev.c | for(i=1; i<blocks; i++) brelse(bhlist[i]); |
i | 134 | fs/block_dev.c | for(i=0; i<buffercount; i++){ |
i | 135 | fs/block_dev.c | wait_on_buffer(bufferlist[i]); |
i | 136 | fs/block_dev.c | if (!bufferlist[i]->b_uptodate) |
i | 138 | fs/block_dev.c | brelse(bufferlist[i]); |
i | 147 | fs/block_dev.c | for(i=0; i<buffercount; i++){ |
i | 148 | fs/block_dev.c | wait_on_buffer(bufferlist[i]); |
i | 149 | fs/block_dev.c | if (!bufferlist[i]->b_uptodate) |
i | 151 | fs/block_dev.c | brelse(bufferlist[i]); |
i | 165 | fs/block_dev.c | int blocksize_bits, i; |
i | 183 | fs/block_dev.c | i = blocksize; |
i | 185 | fs/block_dev.c | while (i != 1) { |
i | 187 | fs/block_dev.c | i >>= 1; |
i | 242 | fs/block_dev.c | for(i=0; i<blocks_per_cluster; i++) cluster_list[i] = block+i; |
i | 139 | fs/buffer.c | int i, retry, pass = 0, err = 0; |
i | 158 | fs/buffer.c | for (i = nr_buffers_type[nlist]*2 ; i-- > 0 ; bh = next) { |
i | 256 | fs/buffer.c | int i; |
i | 262 | fs/buffer.c | for (i = nr_buffers_type[nlist]*2 ; --i > 0 ; bh = bh->b_next_free) { |
i | 453 | fs/buffer.c | int i, nlist; |
i | 478 | fs/buffer.c | for (i = nr_buffers_type[nlist]*2 ; --i > 0 ; bh = bhnext) { |
i | 505 | fs/buffer.c | int i; |
i | 546 | fs/buffer.c | for(i=0; i<NR_LIST; i++){ |
i | 547 | fs/buffer.c | if(i == BUF_DIRTY || i == BUF_SHARED || |
i | 548 | fs/buffer.c | nr_buffers_type[i] == 0) { |
i | 549 | fs/buffer.c | candidate[i] = NULL; |
i | 550 | fs/buffer.c | buffers[i] = 0; |
i | 553 | fs/buffer.c | buffers[i] = nr_buffers_type[i]; |
i | 554 | fs/buffer.c | for (bh = lru_list[i]; buffers[i] > 0; bh = tmp, buffers[i]--) |
i | 556 | fs/buffer.c | if(buffers[i] < 0) panic("Here is the problem"); |
i | 573 | fs/buffer.c | if(bh->b_lock && (i == BUF_LOCKED || i == BUF_LOCKED1)) { |
i | 574 | fs/buffer.c | buffers[i] = 0; |
i | 581 | fs/buffer.c | if(!buffers[i]) candidate[i] = NULL; /* Nothing on this list */ |
i | 582 | fs/buffer.c | else candidate[i] = bh; |
i | 583 | fs/buffer.c | if(candidate[i] && candidate[i]->b_count) panic("Here is the problem"); |
i | 592 | fs/buffer.c | for(i=0; i<NR_LIST; i++){ |
i | 593 | fs/buffer.c | if(!candidate[i]) continue; |
i | 594 | fs/buffer.c | if(candidate[i]->b_lru_time < best_time){ |
i | 595 | fs/buffer.c | best_time = candidate[i]->b_lru_time; |
i | 596 | fs/buffer.c | winner = i; |
i | 602 | fs/buffer.c | i = winner; |
i | 603 | fs/buffer.c | bh = candidate[i]; |
i | 604 | fs/buffer.c | candidate[i] = bh->b_next_free; |
i | 605 | fs/buffer.c | if(candidate[i] == bh) candidate[i] = NULL; /* Got last one */ |
i | 617 | fs/buffer.c | buffers[i]--; |
i | 618 | fs/buffer.c | if(buffers[i] < 0) panic("Here is the problem"); |
i | 620 | fs/buffer.c | if(buffers[i] == 0) candidate[i] = NULL; |
i | 624 | fs/buffer.c | if(candidate[i] && buffers[i] > 0){ |
i | 625 | fs/buffer.c | if(buffers[i] <= 0) panic("Here is another problem"); |
i | 626 | fs/buffer.c | for (bh = candidate[i]; buffers[i] > 0; bh = tmp, buffers[i]--) { |
i | 627 | fs/buffer.c | if(buffers[i] < 0) panic("Here is the problem"); |
i | 644 | fs/buffer.c | if(bh->b_lock && (i == BUF_LOCKED || i == BUF_LOCKED1)) { |
i | 645 | fs/buffer.c | buffers[i] = 0; |
i | 652 | fs/buffer.c | if(!buffers[i]) candidate[i] = NULL; /* Nothing here */ |
i | 653 | fs/buffer.c | else candidate[i] = bh; |
i | 654 | fs/buffer.c | if(candidate[i] && candidate[i]->b_count) |
i | 834 | fs/buffer.c | int i, j; |
i | 856 | fs/buffer.c | for(i=1; i<blocks; i++) { |
i | 857 | fs/buffer.c | bh = getblk(dev,block+i,bufsize); |
i | 868 | fs/buffer.c | for(i=1; i<j; i++) |
i | 869 | fs/buffer.c | brelse(bhlist[i]); |
i | 896 | fs/buffer.c | int i; |
i | 905 | fs/buffer.c | for (nr_buffer_heads+=i=PAGE_SIZE/sizeof*bh ; i>0; i--) { |
i | 966 | fs/buffer.c | int i; |
i | 970 | fs/buffer.c | for (i = 0 ; i < nrbuf ; i++) { |
i | 971 | fs/buffer.c | if (bh[i] && !bh[i]->b_uptodate) |
i | 972 | fs/buffer.c | bhr[bhnum++] = bh[i]; |
i | 976 | fs/buffer.c | for (i = 0 ; i < nrbuf ; i++) { |
i | 977 | fs/buffer.c | if (bh[i]) { |
i | 978 | fs/buffer.c | wait_on_buffer(bh[i]); |
i | 1136 | fs/buffer.c | int i, j; |
i | 1144 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j+= size) { |
i | 1145 | fs/buffer.c | bh[i] = NULL; |
i | 1146 | fs/buffer.c | if (b[i]) |
i | 1147 | fs/buffer.c | bh[i] = getblk(dev, b[i], size); |
i | 1149 | fs/buffer.c | read_buffers(bh,i); |
i | 1151 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j += size, where += size) { |
i | 1152 | fs/buffer.c | if (bh[i]) { |
i | 1153 | fs/buffer.c | if (bh[i]->b_uptodate) |
i | 1154 | fs/buffer.c | memcpy((void *) where, bh[i]->b_data, size); |
i | 1155 | fs/buffer.c | brelse(bh[i]); |
i | 1336 | fs/buffer.c | int i, isize, isize1; |
i | 1349 | fs/buffer.c | for (i=0 ; !i || bh != free_list[isize]; bh = bh->b_next_free, i++) { |
i | 1366 | fs/buffer.c | i = 2*nr_buffers_type[nlist] >> priority; |
i | 1367 | fs/buffer.c | for ( ; i-- > 0 ; bh = bh->b_next_free) { |
i | 1500 | fs/buffer.c | int i; |
i | 1510 | fs/buffer.c | for (i=0 ; !i || bh != free_list[isize] ; bh = bh->b_next_free, i++) { |
i | 1581 | fs/buffer.c | int i, offset; |
i | 1583 | fs/buffer.c | for (i = 0, offset = 0 ; offset < PAGE_SIZE ; i++, offset += size) { |
i | 1584 | fs/buffer.c | if(i && b[i]-1 != b[i-1]) return 0; /* No need to cluster */ |
i | 1585 | fs/buffer.c | if(find_buffer(dev, b[i], size)) return 0; |
i | 1617 | fs/buffer.c | int i; |
i | 1635 | fs/buffer.c | for (i = 0 ; i < MAP_NR(high_memory) ; i++) |
i | 1636 | fs/buffer.c | buffer_pages[i] = NULL; |
i | 1638 | fs/buffer.c | for (i = 0 ; i < nr_hash ; i++) |
i | 1639 | fs/buffer.c | hash_table[i] = NULL; |
i | 1685 | fs/buffer.c | int i, isize; |
i | 1706 | fs/buffer.c | for (i = nr_buffers_type[nlist]; i-- > 0; bh = next) { |
i | 1711 | fs/buffer.c | printk("Dirty list empty %d\n", i); |
i | 1760 | fs/buffer.c | int i, error; |
i | 1774 | fs/buffer.c | i = (func-2) >> 1; |
i | 1775 | fs/buffer.c | if (i < 0 || i >= N_PARAM) |
i | 1781 | fs/buffer.c | put_fs_long(bdf_prm.data[i], data); |
i | 1784 | fs/buffer.c | if (data < bdflush_min[i] || data > bdflush_max[i]) |
i | 1786 | fs/buffer.c | bdf_prm.data[i] = data; |
i | 1812 | fs/buffer.c | for (i = nr_buffers_type[nlist]; i-- > 0 && ndirty < bdf_prm.b_un.ndirty; |
i | 1818 | fs/buffer.c | printk("Dirty list empty %d\n", i); |
i | 215 | fs/dcache.c | int i; |
i | 249 | fs/dcache.c | for (i = 0 ; i < DCACHE_HASH_QUEUES ; i++) |
i | 250 | fs/dcache.c | hash_table[i].next = hash_table[i].next = |
i | 251 | fs/dcache.c | (struct dir_cache_entry *) &hash_table[i]; |
i | 33 | fs/devices.c | int i; |
i | 37 | fs/devices.c | for (i = 0; i < MAX_CHRDEV ; i++) { |
i | 38 | fs/devices.c | if (chrdevs[i].fops) { |
i | 39 | fs/devices.c | len += sprintf(page+len, "%2d %s\n", i, chrdevs[i].name); |
i | 43 | fs/devices.c | for (i = 0; i < MAX_BLKDEV ; i++) { |
i | 44 | fs/devices.c | if (blkdevs[i].fops) { |
i | 45 | fs/devices.c | len += sprintf(page+len, "%2d %s\n", i, blkdevs[i].name); |
i | 144 | fs/devices.c | int i; |
i | 147 | fs/devices.c | i = MAJOR(dev); |
i | 148 | fs/devices.c | if (i >= MAX_BLKDEV || (fops = blkdevs[i].fops) == NULL) |
i | 157 | fs/devices.c | for (i=0 ; i<NR_SUPER ; i++) |
i | 158 | fs/devices.c | if (super_blocks[i].s_dev == dev) |
i | 159 | fs/devices.c | put_super(super_blocks[i].s_dev); |
i | 173 | fs/devices.c | int i; |
i | 175 | fs/devices.c | i = MAJOR(inode->i_rdev); |
i | 176 | fs/devices.c | if (i >= MAX_BLKDEV || !blkdevs[i].fops) |
i | 178 | fs/devices.c | filp->f_op = blkdevs[i].fops; |
i | 224 | fs/devices.c | int i; |
i | 226 | fs/devices.c | i = MAJOR(inode->i_rdev); |
i | 227 | fs/devices.c | if (i >= MAX_CHRDEV || !chrdevs[i].fops) |
i | 229 | fs/devices.c | filp->f_op = chrdevs[i].fops; |
i | 353 | fs/exec.c | int error, i = 0; |
i | 361 | fs/exec.c | i++; |
i | 367 | fs/exec.c | return i; |
i | 440 | fs/exec.c | int i; |
i | 447 | fs/exec.c | for (i=MAX_ARG_PAGES-1 ; i>=0 ; i--) { |
i | 449 | fs/exec.c | if (page[i]) { |
i | 451 | fs/exec.c | put_dirty_page(current,page[i],data_base); |
i | 508 | fs/exec.c | int i; |
i | 514 | fs/exec.c | for (i=0; (ch = *(name++)) != '\0';) { |
i | 516 | fs/exec.c | i = 0; |
i | 518 | fs/exec.c | if (i < 15) |
i | 519 | fs/exec.c | current->comm[i++] = ch; |
i | 521 | fs/exec.c | current->comm[i] = '\0'; |
i | 532 | fs/exec.c | for (i=0 ; i<32 ; i++) { |
i | 533 | fs/exec.c | current->sigaction[i].sa_mask = 0; |
i | 534 | fs/exec.c | current->sigaction[i].sa_flags = 0; |
i | 535 | fs/exec.c | if (current->sigaction[i].sa_handler != SIG_IGN) |
i | 536 | fs/exec.c | current->sigaction[i].sa_handler = NULL; |
i | 538 | fs/exec.c | for (i=0 ; i<NR_OPEN ; i++) |
i | 539 | fs/exec.c | if (FD_ISSET(i,¤t->files->close_on_exec)) |
i | 540 | fs/exec.c | sys_close(i); |
i | 556 | fs/exec.c | int i; |
i | 561 | fs/exec.c | for (i=0 ; i<MAX_ARG_PAGES ; i++) /* clear page-table */ |
i | 562 | fs/exec.c | bprm.page[i] = 0; |
i | 585 | fs/exec.c | i = bprm.inode->i_mode; |
i | 586 | fs/exec.c | if (IS_NOSUID(bprm.inode) && (((i & S_ISUID) && bprm.inode->i_uid != current-> |
i | 587 | fs/exec.c | euid) || ((i & S_ISGID) && !in_group_p(bprm.inode->i_gid))) && !suser()) { |
i | 596 | fs/exec.c | bprm.e_uid = (i & S_ISUID) ? bprm.inode->i_uid : current->euid; |
i | 597 | fs/exec.c | bprm.e_gid = (i & S_ISGID) ? bprm.inode->i_gid : current->egid; |
i | 716 | fs/exec.c | for (i=0 ; i<MAX_ARG_PAGES ; i++) |
i | 717 | fs/exec.c | free_page(bprm.page[i]); |
i | 70 | fs/ext/dir.c | unsigned int i; |
i | 89 | fs/ext/dir.c | for (i = 0; i < 1024 && i < offset; ) { |
i | 90 | fs/ext/dir.c | de = (struct ext_dir_entry *) (bh->b_data + i); |
i | 93 | fs/ext/dir.c | i += de->rec_len; |
i | 95 | fs/ext/dir.c | offset = i; |
i | 112 | fs/ext/dir.c | for (i = 0; i < de->name_len; i++) |
i | 113 | fs/ext/dir.c | if ((c = de->name[i]) != 0) |
i | 114 | fs/ext/dir.c | put_fs_byte(c,i+dirent->d_name); |
i | 117 | fs/ext/dir.c | if (i) { |
i | 119 | fs/ext/dir.c | put_fs_byte(0,i+dirent->d_name); |
i | 120 | fs/ext/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 121 | fs/ext/dir.c | ret = ROUND_UP(NAME_OFFSET(dirent)+i+1); |
i | 85 | fs/ext/fsync.c | int i; |
i | 88 | fs/ext/fsync.c | for (i = 0; i < 9; i++) { |
i | 89 | fs/ext/fsync.c | rc = sync_block (inode, inode->u.ext_i.i_data + i, wait); |
i | 100 | fs/ext/fsync.c | int i; |
i | 108 | fs/ext/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 110 | fs/ext/fsync.c | ((unsigned long *) ind_bh->b_data) + i, |
i | 124 | fs/ext/fsync.c | int i; |
i | 132 | fs/ext/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 134 | fs/ext/fsync.c | ((unsigned long *) dind_bh->b_data) + i, |
i | 148 | fs/ext/fsync.c | int i; |
i | 156 | fs/ext/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 158 | fs/ext/fsync.c | ((unsigned long *) tind_bh->b_data) + i, |
i | 179 | fs/ext/inode.c | int i; |
i | 193 | fs/ext/inode.c | i = inode_bmap(inode,9); |
i | 194 | fs/ext/inode.c | if (!i) |
i | 196 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
i | 200 | fs/ext/inode.c | i = inode_bmap(inode,10); |
i | 201 | fs/ext/inode.c | if (!i) |
i | 203 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>8); |
i | 204 | fs/ext/inode.c | if (!i) |
i | 206 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
i | 209 | fs/ext/inode.c | i = inode_bmap(inode,11); |
i | 210 | fs/ext/inode.c | if (!i) |
i | 212 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>16); |
i | 213 | fs/ext/inode.c | if (!i) |
i | 215 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),(block>>8) & 255); |
i | 216 | fs/ext/inode.c | if (!i) |
i | 218 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
i | 190 | fs/ext/namei.c | int i; |
i | 290 | fs/ext/namei.c | for (i=0; i < namelen ; i++) |
i | 291 | fs/ext/namei.c | de->name[i] = name[i]; |
i | 626 | fs/ext/namei.c | int i; |
i | 643 | fs/ext/namei.c | i = 0; |
i | 644 | fs/ext/namei.c | while (i < 1023 && (c = *(symname++))) |
i | 645 | fs/ext/namei.c | name_block->b_data[i++] = c; |
i | 646 | fs/ext/namei.c | name_block->b_data[i] = 0; |
i | 649 | fs/ext/namei.c | inode->i_size = i; |
i | 88 | fs/ext/symlink.c | int i; |
i | 101 | fs/ext/symlink.c | i = 0; |
i | 102 | fs/ext/symlink.c | while (i<buflen && (c = bh->b_data[i])) { |
i | 103 | fs/ext/symlink.c | i++; |
i | 107 | fs/ext/symlink.c | return i; |
i | 34 | fs/ext/truncate.c | int i, tmp; |
i | 41 | fs/ext/truncate.c | for (i = DIRECT_BLOCK ; i < 9 ; i++) { |
i | 42 | fs/ext/truncate.c | p = inode->u.ext_i.i_data+i; |
i | 46 | fs/ext/truncate.c | if (i < DIRECT_BLOCK) { |
i | 65 | fs/ext/truncate.c | int i, tmp; |
i | 85 | fs/ext/truncate.c | for (i = INDIRECT_BLOCK ; i < 256 ; i++) { |
i | 86 | fs/ext/truncate.c | if (i < 0) |
i | 87 | fs/ext/truncate.c | i = 0; |
i | 88 | fs/ext/truncate.c | if (i < INDIRECT_BLOCK) |
i | 90 | fs/ext/truncate.c | ind = i+(unsigned long *) ind_bh->b_data; |
i | 95 | fs/ext/truncate.c | if (i < INDIRECT_BLOCK) { |
i | 110 | fs/ext/truncate.c | for (i = 0; i < 256; i++) |
i | 113 | fs/ext/truncate.c | if (i >= 256) |
i | 128 | fs/ext/truncate.c | int i,tmp; |
i | 147 | fs/ext/truncate.c | for (i = DINDIRECT_BLOCK ; i < 256 ; i ++) { |
i | 148 | fs/ext/truncate.c | if (i < 0) |
i | 149 | fs/ext/truncate.c | i = 0; |
i | 150 | fs/ext/truncate.c | if (i < DINDIRECT_BLOCK) |
i | 152 | fs/ext/truncate.c | dind = i+(unsigned long *) dind_bh->b_data; |
i | 156 | fs/ext/truncate.c | retry |= trunc_indirect(inode,offset+(i<<8),dind); |
i | 160 | fs/ext/truncate.c | for (i = 0; i < 256; i++) |
i | 163 | fs/ext/truncate.c | if (i >= 256) |
i | 178 | fs/ext/truncate.c | int i,tmp; |
i | 197 | fs/ext/truncate.c | for (i = TINDIRECT_BLOCK ; i < 256 ; i ++) { |
i | 198 | fs/ext/truncate.c | if (i < 0) |
i | 199 | fs/ext/truncate.c | i = 0; |
i | 200 | fs/ext/truncate.c | if (i < TINDIRECT_BLOCK) |
i | 202 | fs/ext/truncate.c | tind = i+(unsigned long *) tind_bh->b_data; |
i | 203 | fs/ext/truncate.c | retry |= trunc_dindirect(inode,9+256+256*256+(i<<16),tind); |
i | 207 | fs/ext/truncate.c | for (i = 0; i < 256; i++) |
i | 210 | fs/ext/truncate.c | if (i >= 256) |
i | 97 | fs/ext2/balloc.c | int i, j; |
i | 121 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_loaded_block_bitmaps && |
i | 122 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[i] != block_group; i++) |
i | 124 | fs/ext2/balloc.c | if (i < sb->u.ext2_sb.s_loaded_block_bitmaps && |
i | 125 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[i] == block_group) { |
i | 126 | fs/ext2/balloc.c | block_bitmap_number = sb->u.ext2_sb.s_block_bitmap_number[i]; |
i | 127 | fs/ext2/balloc.c | block_bitmap = sb->u.ext2_sb.s_block_bitmap[i]; |
i | 128 | fs/ext2/balloc.c | for (j = i; j > 0; j--) { |
i | 174 | fs/ext2/balloc.c | unsigned long i; |
i | 220 | fs/ext2/balloc.c | for (i = 0; i < count; i++) { |
i | 221 | fs/ext2/balloc.c | if (!clear_bit (bit + i, bh->b_data)) |
i | 258 | fs/ext2/balloc.c | int i, j, k, tmp; |
i | 289 | fs/ext2/balloc.c | i = (goal - es->s_first_data_block) / EXT2_BLOCKS_PER_GROUP(sb); |
i | 290 | fs/ext2/balloc.c | gdp = get_group_desc (sb, i, &bh2); |
i | 297 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 300 | fs/ext2/balloc.c | ext2_debug ("goal is at %d:%d.\n", i, j); |
i | 357 | fs/ext2/balloc.c | ext2_debug ("Bit not found in block group %d.\n", i); |
i | 364 | fs/ext2/balloc.c | i++; |
i | 365 | fs/ext2/balloc.c | if (i >= sb->u.ext2_sb.s_groups_count) |
i | 366 | fs/ext2/balloc.c | i = 0; |
i | 367 | fs/ext2/balloc.c | gdp = get_group_desc (sb, i, &bh2); |
i | 375 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 386 | fs/ext2/balloc.c | "Free blocks count corrupted for block group %d", i); |
i | 401 | fs/ext2/balloc.c | ext2_debug ("using block group %d(%d)\n", i, gdp->bg_free_blocks_count); |
i | 403 | fs/ext2/balloc.c | tmp = j + i * EXT2_BLOCKS_PER_GROUP(sb) + es->s_first_data_block; |
i | 452 | fs/ext2/balloc.c | "block_group = %d, block=%d", i, j); |
i | 485 | fs/ext2/balloc.c | int i; |
i | 492 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 493 | fs/ext2/balloc.c | gdp = get_group_desc (sb, i, NULL); |
i | 495 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 499 | fs/ext2/balloc.c | i, gdp->bg_free_blocks_count, x); |
i | 527 | fs/ext2/balloc.c | int i, j; |
i | 536 | fs/ext2/balloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 537 | fs/ext2/balloc.c | gdp = get_group_desc (sb, i, NULL); |
i | 539 | fs/ext2/balloc.c | bitmap_nr = load_block_bitmap (sb, i); |
i | 544 | fs/ext2/balloc.c | "Superblock in group %d is marked free", i); |
i | 550 | fs/ext2/balloc.c | "%d is marked free", j, i); |
i | 555 | fs/ext2/balloc.c | i); |
i | 560 | fs/ext2/balloc.c | i); |
i | 566 | fs/ext2/balloc.c | "group %d is marked free", j, i); |
i | 572 | fs/ext2/balloc.c | "stored = %d, counted = %lu", i, |
i | 16 | fs/ext2/bitmap.c | unsigned int i; |
i | 21 | fs/ext2/bitmap.c | for (i = 0; i < numchars; i++) |
i | 22 | fs/ext2/bitmap.c | sum += nibblemap[map->b_data[i] & 0xf] + |
i | 23 | fs/ext2/bitmap.c | nibblemap[(map->b_data[i] >> 4) & 0xf]; |
i | 104 | fs/ext2/dir.c | int i, num, stored, dlen; |
i | 130 | fs/ext2/dir.c | for (i = 16 >> (EXT2_BLOCK_SIZE_BITS(sb) - 9), num = 0; |
i | 131 | fs/ext2/dir.c | i > 0; i--) { |
i | 140 | fs/ext2/dir.c | for (i = 0; i < num; i++) |
i | 141 | fs/ext2/dir.c | brelse (bha[i]); |
i | 151 | fs/ext2/dir.c | for (i = 0; i < sb->s_blocksize && i < offset; ) { |
i | 153 | fs/ext2/dir.c | (bh->b_data + i); |
i | 162 | fs/ext2/dir.c | i += de->rec_len; |
i | 164 | fs/ext2/dir.c | offset = i; |
i | 201 | fs/ext2/dir.c | i = de->name_len; |
i | 202 | fs/ext2/dir.c | memcpy_tofs (dirent->d_name, de->name, i); |
i | 204 | fs/ext2/dir.c | put_fs_byte (0, dirent->d_name + i); |
i | 205 | fs/ext2/dir.c | put_fs_word (i, &dirent->d_reclen); |
i | 241 | fs/ext2/file.c | int i,buffercount,write_error; |
i | 314 | fs/ext2/file.c | for(i=0; i<buffercount; i++){ |
i | 315 | fs/ext2/file.c | wait_on_buffer(bufferlist[i]); |
i | 316 | fs/ext2/file.c | if (!bufferlist[i]->b_uptodate) |
i | 318 | fs/ext2/file.c | brelse(bufferlist[i]); |
i | 327 | fs/ext2/file.c | for(i=0; i<buffercount; i++){ |
i | 328 | fs/ext2/file.c | wait_on_buffer(bufferlist[i]); |
i | 329 | fs/ext2/file.c | if (!bufferlist[i]->b_uptodate) |
i | 331 | fs/ext2/file.c | brelse(bufferlist[i]); |
i | 84 | fs/ext2/fsync.c | int i; |
i | 87 | fs/ext2/fsync.c | for (i = 0; i < EXT2_NDIR_BLOCKS; i++) { |
i | 88 | fs/ext2/fsync.c | rc = sync_block (inode, inode->u.ext2_i.i_data + i, wait); |
i | 99 | fs/ext2/fsync.c | int i; |
i | 107 | fs/ext2/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 109 | fs/ext2/fsync.c | ((u32 *) ind_bh->b_data) + i, |
i | 122 | fs/ext2/fsync.c | int i; |
i | 130 | fs/ext2/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 132 | fs/ext2/fsync.c | ((u32 *) dind_bh->b_data) + i, |
i | 145 | fs/ext2/fsync.c | int i; |
i | 153 | fs/ext2/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 155 | fs/ext2/fsync.c | ((u32 *) tind_bh->b_data) + i, |
i | 96 | fs/ext2/ialloc.c | int i, j; |
i | 121 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_loaded_inode_bitmaps && |
i | 122 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[i] != block_group; |
i | 123 | fs/ext2/ialloc.c | i++) |
i | 125 | fs/ext2/ialloc.c | if (i < sb->u.ext2_sb.s_loaded_inode_bitmaps && |
i | 126 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[i] == block_group) { |
i | 127 | fs/ext2/ialloc.c | inode_bitmap_number = sb->u.ext2_sb.s_inode_bitmap_number[i]; |
i | 128 | fs/ext2/ialloc.c | inode_bitmap = sb->u.ext2_sb.s_inode_bitmap[i]; |
i | 129 | fs/ext2/ialloc.c | for (j = i; j > 0; j--) { |
i | 310 | fs/ext2/ialloc.c | int i, j, avefreei; |
i | 325 | fs/ext2/ialloc.c | gdp = NULL; i=0; |
i | 351 | fs/ext2/ialloc.c | i = j; |
i | 363 | fs/ext2/ialloc.c | i = dir->u.ext2_i.i_block_group; |
i | 364 | fs/ext2/ialloc.c | tmp = get_group_desc (sb, i, &bh2); |
i | 374 | fs/ext2/ialloc.c | i += j; |
i | 375 | fs/ext2/ialloc.c | if (i >= sb->u.ext2_sb.s_groups_count) |
i | 376 | fs/ext2/ialloc.c | i -= sb->u.ext2_sb.s_groups_count; |
i | 377 | fs/ext2/ialloc.c | tmp = get_group_desc (sb, i, &bh2); |
i | 388 | fs/ext2/ialloc.c | i = dir->u.ext2_i.i_block_group + 1; |
i | 390 | fs/ext2/ialloc.c | if (++i >= sb->u.ext2_sb.s_groups_count) |
i | 391 | fs/ext2/ialloc.c | i = 0; |
i | 392 | fs/ext2/ialloc.c | tmp = get_group_desc (sb, i, &bh2); |
i | 406 | fs/ext2/ialloc.c | bitmap_nr = load_inode_bitmap (sb, i); |
i | 425 | fs/ext2/ialloc.c | i); |
i | 432 | fs/ext2/ialloc.c | j += i * EXT2_INODES_PER_GROUP(sb) + 1; |
i | 436 | fs/ext2/ialloc.c | "block_group = %d,inode=%d", i, j); |
i | 476 | fs/ext2/ialloc.c | inode->u.ext2_i.i_block_group = i; |
i | 496 | fs/ext2/ialloc.c | int i; |
i | 503 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 504 | fs/ext2/ialloc.c | gdp = get_group_desc (sb, i, NULL); |
i | 506 | fs/ext2/ialloc.c | bitmap_nr = load_inode_bitmap (sb, i); |
i | 510 | fs/ext2/ialloc.c | i, gdp->bg_free_inodes_count, x); |
i | 528 | fs/ext2/ialloc.c | int i; |
i | 535 | fs/ext2/ialloc.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) { |
i | 536 | fs/ext2/ialloc.c | gdp = get_group_desc (sb, i, NULL); |
i | 538 | fs/ext2/ialloc.c | bitmap_nr = load_inode_bitmap (sb, i); |
i | 544 | fs/ext2/ialloc.c | "stored = %d, counted = %lu", i, |
i | 65 | fs/ext2/inode.c | int i = inode->u.ext2_i.i_prealloc_count; |
i | 69 | fs/ext2/inode.c | i); |
i | 129 | fs/ext2/inode.c | int i; |
i | 146 | fs/ext2/inode.c | i = inode_bmap (inode, EXT2_IND_BLOCK); |
i | 147 | fs/ext2/inode.c | if (!i) |
i | 149 | fs/ext2/inode.c | return block_bmap (bread (inode->i_dev, i, |
i | 154 | fs/ext2/inode.c | i = inode_bmap (inode, EXT2_DIND_BLOCK); |
i | 155 | fs/ext2/inode.c | if (!i) |
i | 157 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, |
i | 160 | fs/ext2/inode.c | if (!i) |
i | 162 | fs/ext2/inode.c | return block_bmap (bread (inode->i_dev, i, |
i | 167 | fs/ext2/inode.c | i = inode_bmap (inode, EXT2_TIND_BLOCK); |
i | 168 | fs/ext2/inode.c | if (!i) |
i | 170 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i | 172 | fs/ext2/inode.c | if (!i) |
i | 174 | fs/ext2/inode.c | i = block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i | 176 | fs/ext2/inode.c | if (!i) |
i | 178 | fs/ext2/inode.c | return block_bmap (bread (inode->i_dev, i, inode->i_sb->s_blocksize), |
i | 331 | fs/ext2/inode.c | int i; |
i | 340 | fs/ext2/inode.c | for(i=0; i< (PAGE_SIZE / inode->i_sb->s_blocksize); i++) { |
i | 341 | fs/ext2/inode.c | p = (u32 *) bh->b_data + nr + i; |
i | 347 | fs/ext2/inode.c | if(i==0) firstblock = *p; |
i | 348 | fs/ext2/inode.c | else if(*p != firstblock + i) goto out; |
i | 75 | fs/ext2/namei.c | int block, toread, i, err; |
i | 133 | fs/ext2/namei.c | for (i = 0; i < NAMEI_RA_SIZE; ++i) { |
i | 134 | fs/ext2/namei.c | if (bh_use[i] != bh) |
i | 135 | fs/ext2/namei.c | brelse (bh_use[i]); |
i | 157 | fs/ext2/namei.c | for (i = 0; i < NAMEI_RA_SIZE; ++i) |
i | 158 | fs/ext2/namei.c | brelse (bh_use[i]); |
i | 342 | fs/ext2/namei.c | int i; |
i | 344 | fs/ext2/namei.c | i = 0; |
i | 347 | fs/ext2/namei.c | while (i < bh->b_size) { |
i | 349 | fs/ext2/namei.c | de, bh, i)) |
i | 357 | fs/ext2/namei.c | i += de->rec_len; |
i | 748 | fs/ext2/namei.c | int i, err; |
i | 780 | fs/ext2/namei.c | i = 0; |
i | 781 | fs/ext2/namei.c | while (i < inode->i_sb->s_blocksize - 1 && (c = *(symname++))) |
i | 782 | fs/ext2/namei.c | link[i++] = c; |
i | 783 | fs/ext2/namei.c | link[i] = 0; |
i | 788 | fs/ext2/namei.c | inode->i_size = i; |
i | 94 | fs/ext2/super.c | int i; |
i | 103 | fs/ext2/super.c | for (i = 0; i < db_count; i++) |
i | 104 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc[i]) |
i | 105 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[i]); |
i | 108 | fs/ext2/super.c | for (i = 0; i < EXT2_MAX_GROUP_LOADED; i++) |
i | 109 | fs/ext2/super.c | if (sb->u.ext2_sb.s_inode_bitmap[i]) |
i | 110 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_inode_bitmap[i]); |
i | 111 | fs/ext2/super.c | for (i = 0; i < EXT2_MAX_GROUP_LOADED; i++) |
i | 112 | fs/ext2/super.c | if (sb->u.ext2_sb.s_block_bitmap[i]) |
i | 113 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_block_bitmap[i]); |
i | 140 | fs/ext2/super.c | int i; |
i | 155 | fs/ext2/super.c | for (i = 0; i < groups_count; i++) { |
i | 156 | fs/ext2/super.c | gdp[i].bg_block_bitmap = old_group_desc[i].bg_block_bitmap; |
i | 157 | fs/ext2/super.c | gdp[i].bg_inode_bitmap = old_group_desc[i].bg_inode_bitmap; |
i | 158 | fs/ext2/super.c | gdp[i].bg_inode_table = old_group_desc[i].bg_inode_table; |
i | 159 | fs/ext2/super.c | gdp[i].bg_free_blocks_count = old_group_desc[i].bg_free_blocks_count; |
i | 160 | fs/ext2/super.c | gdp[i].bg_free_inodes_count = old_group_desc[i].bg_free_inodes_count; |
i | 346 | fs/ext2/super.c | int i; |
i | 353 | fs/ext2/super.c | for (i = 0; i < sb->u.ext2_sb.s_groups_count; i++) |
i | 355 | fs/ext2/super.c | if ((i % EXT2_DESC_PER_BLOCK(sb)) == 0) |
i | 363 | fs/ext2/super.c | i, (unsigned long) gdp->bg_block_bitmap); |
i | 372 | fs/ext2/super.c | i, (unsigned long) gdp->bg_inode_bitmap); |
i | 382 | fs/ext2/super.c | i, (unsigned long) gdp->bg_inode_table); |
i | 402 | fs/ext2/super.c | int i, j; |
i | 570 | fs/ext2/super.c | for (i = 0; i < db_count; i++) { |
i | 571 | fs/ext2/super.c | sb->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1, |
i | 573 | fs/ext2/super.c | if (!sb->u.ext2_sb.s_group_desc[i]) { |
i | 576 | fs/ext2/super.c | for (j = 0; j < i; j++) |
i | 596 | fs/ext2/super.c | for (i = 0; i < EXT2_MAX_GROUP_LOADED; i++) { |
i | 597 | fs/ext2/super.c | sb->u.ext2_sb.s_inode_bitmap_number[i] = 0; |
i | 598 | fs/ext2/super.c | sb->u.ext2_sb.s_inode_bitmap[i] = NULL; |
i | 599 | fs/ext2/super.c | sb->u.ext2_sb.s_block_bitmap_number[i] = 0; |
i | 600 | fs/ext2/super.c | sb->u.ext2_sb.s_block_bitmap[i] = NULL; |
i | 613 | fs/ext2/super.c | for (i = 0; i < db_count; i++) |
i | 614 | fs/ext2/super.c | if (sb->u.ext2_sb.s_group_desc[i]) |
i | 615 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[i]); |
i | 624 | fs/ext2/super.c | for (i = 0; i < db_count; i++) |
i | 625 | fs/ext2/super.c | mark_buffer_dirty(sb->u.ext2_sb.s_group_desc[i], 1); |
i | 99 | fs/ext2/symlink.c | int i, err; |
i | 118 | fs/ext2/symlink.c | i = 0; |
i | 119 | fs/ext2/symlink.c | while (i < buflen && (c = link[i])) { |
i | 120 | fs/ext2/symlink.c | i++; |
i | 126 | fs/ext2/symlink.c | return i; |
i | 49 | fs/ext2/truncate.c | int i, tmp; |
i | 60 | fs/ext2/truncate.c | for (i = direct_block ; i < EXT2_NDIR_BLOCKS ; i++) { |
i | 61 | fs/ext2/truncate.c | p = inode->u.ext2_i.i_data + i; |
i | 71 | fs/ext2/truncate.c | if (i < direct_block) { |
i | 107 | fs/ext2/truncate.c | int i, tmp; |
i | 132 | fs/ext2/truncate.c | for (i = indirect_block ; i < addr_per_block ; i++) { |
i | 133 | fs/ext2/truncate.c | if (i < 0) |
i | 134 | fs/ext2/truncate.c | i = 0; |
i | 135 | fs/ext2/truncate.c | if (i < indirect_block) |
i | 137 | fs/ext2/truncate.c | ind = i + (u32 *) ind_bh->b_data; |
i | 147 | fs/ext2/truncate.c | if (i < indirect_block) { |
i | 180 | fs/ext2/truncate.c | for (i = 0; i < addr_per_block; i++) |
i | 183 | fs/ext2/truncate.c | if (i >= addr_per_block) |
i | 204 | fs/ext2/truncate.c | int i, tmp; |
i | 226 | fs/ext2/truncate.c | for (i = dindirect_block ; i < addr_per_block ; i++) { |
i | 227 | fs/ext2/truncate.c | if (i < 0) |
i | 228 | fs/ext2/truncate.c | i = 0; |
i | 229 | fs/ext2/truncate.c | if (i < dindirect_block) |
i | 231 | fs/ext2/truncate.c | dind = i + (u32 *) dind_bh->b_data; |
i | 235 | fs/ext2/truncate.c | retry |= trunc_indirect (inode, offset + (i * addr_per_block), |
i | 240 | fs/ext2/truncate.c | for (i = 0; i < addr_per_block; i++) |
i | 243 | fs/ext2/truncate.c | if (i >= addr_per_block) |
i | 263 | fs/ext2/truncate.c | int i, tmp; |
i | 287 | fs/ext2/truncate.c | for (i = tindirect_block ; i < addr_per_block ; i++) { |
i | 288 | fs/ext2/truncate.c | if (i < 0) |
i | 289 | fs/ext2/truncate.c | i = 0; |
i | 290 | fs/ext2/truncate.c | if (i < tindirect_block) |
i | 292 | fs/ext2/truncate.c | tind = i + (u32 *) tind_bh->b_data; |
i | 294 | fs/ext2/truncate.c | addr_per_block + (i + 1) * addr_per_block * addr_per_block, |
i | 299 | fs/ext2/truncate.c | for (i = 0; i < addr_per_block; i++) |
i | 302 | fs/ext2/truncate.c | if (i >= addr_per_block) |
i | 46 | fs/file_table.c | int i; |
i | 53 | fs/file_table.c | nr_files+=i= PAGE_SIZE/sizeof(struct file); |
i | 56 | fs/file_table.c | file->f_next = file->f_prev = first_file = file++, i--; |
i | 58 | fs/file_table.c | for (; i ; i--) |
i | 70 | fs/file_table.c | int i; |
i | 76 | fs/file_table.c | for (f = first_file, i=0; i < nr_files; i++, f = f->f_next) |
i | 846 | fs/hpfs/hpfs_fs.c | unsigned i, count; |
i | 854 | fs/hpfs/hpfs_fs.c | for (i = 0; i < 8 * 2048; i++) |
i | 855 | fs/hpfs/hpfs_fs.c | count += (test_bit(i, bits) != 0); |
i | 1038 | fs/hpfs/hpfs_fs.c | int i; |
i | 1048 | fs/hpfs/hpfs_fs.c | for (i = 0; i < b->n_used_nodes; i++) { |
i | 1049 | fs/hpfs/hpfs_fs.c | unsigned t = file_secno - n[i].file_secno; |
i | 1050 | fs/hpfs/hpfs_fs.c | if (t < n[i].length) { |
i | 1051 | fs/hpfs/hpfs_fs.c | inode->i_hpfs_file_sec = n[i].file_secno; |
i | 1052 | fs/hpfs/hpfs_fs.c | inode->i_hpfs_disk_sec = n[i].disk_secno; |
i | 1053 | fs/hpfs/hpfs_fs.c | inode->i_hpfs_n_secs = n[i].length; |
i | 1054 | fs/hpfs/hpfs_fs.c | return n[i].disk_secno + t; |
i | 1066 | fs/hpfs/hpfs_fs.c | for (i = 0; i < b->n_used_nodes; i++) { |
i | 1067 | fs/hpfs/hpfs_fs.c | if (file_secno < n[i].file_secno) { |
i | 1069 | fs/hpfs/hpfs_fs.c | anode_secno ano = n[i].down; |
i | 1542 | fs/hpfs/hpfs_fs.c | int i; |
i | 1549 | fs/hpfs/hpfs_fs.c | for (i = 1; de < de_end; i++, de = de_next_de(de)) { |
i | 1550 | fs/hpfs/hpfs_fs.c | if (i == n) |
i | 24 | fs/inode.c | static inline int const hashfn(dev_t dev, unsigned int i) |
i | 26 | fs/inode.c | return (dev ^ i) % NR_IHASH; |
i | 29 | fs/inode.c | static inline struct inode_hash_entry * const hash(dev_t dev, int i) |
i | 31 | fs/inode.c | return hash_table + hashfn(dev, i); |
i | 92 | fs/inode.c | int i; |
i | 97 | fs/inode.c | i=PAGE_SIZE / sizeof(struct inode); |
i | 98 | fs/inode.c | nr_inodes += i; |
i | 99 | fs/inode.c | nr_free_inodes += i; |
i | 102 | fs/inode.c | inode->i_next = inode->i_prev = first_inode = inode++, i--; |
i | 104 | fs/inode.c | for ( ; i ; i-- ) |
i | 165 | fs/inode.c | int i; |
i | 168 | fs/inode.c | for (i = nr_inodes ; i > 0 ; i--) { |
i | 183 | fs/inode.c | int i; |
i | 186 | fs/inode.c | for (i=0 ; i < nr_inodes ; i++, inode = inode->i_next) { |
i | 199 | fs/inode.c | int i; |
i | 202 | fs/inode.c | for (file = first_file, i=0; i<nr_files; i++, file=file->f_next) { |
i | 342 | fs/inode.c | int i; |
i | 345 | fs/inode.c | for(i = nr_inodes ; i > 0 ; i--) { |
i | 360 | fs/inode.c | int i; |
i | 364 | fs/inode.c | for(i = 0; i < nr_inodes*2; i++, inode = inode->i_next) { |
i | 421 | fs/inode.c | int i; |
i | 428 | fs/inode.c | for (i = 0; i<nr_inodes; inode = inode->i_next, i++) { |
i | 72 | fs/isofs/dir.c | unsigned int block,offset,i, j; |
i | 151 | fs/isofs/dir.c | i = 1; |
i | 163 | fs/isofs/dir.c | i = 2; |
i | 200 | fs/isofs/dir.c | i = dlen; |
i | 210 | fs/isofs/dir.c | i = dlen; |
i | 217 | fs/isofs/dir.c | for (i = 0; i < dlen && i < NAME_MAX; i++) { |
i | 218 | fs/isofs/dir.c | if (!(c = dpnt1[i])) break; |
i | 220 | fs/isofs/dir.c | if (c == '.' && i == dlen-3 && de->name[i+1] == ';' && de->name[i+2] == '1') |
i | 222 | fs/isofs/dir.c | if (c == ';' && i == dlen-2 && de->name[i+1] == '1') |
i | 225 | fs/isofs/dir.c | dpnt[i] = c; |
i | 228 | fs/isofs/dir.c | for(j=0; j<i; j++) |
i | 235 | fs/isofs/dir.c | dcache_add(inode, dpnt, i, inode_number); |
i | 238 | fs/isofs/dir.c | printk("Nchar: %d\n",i); |
i | 247 | fs/isofs/dir.c | if (i) { |
i | 249 | fs/isofs/dir.c | put_fs_byte(0,i+dirent->d_name); |
i | 250 | fs/isofs/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 252 | fs/isofs/dir.c | return ROUND_UP(NAME_OFFSET(dirent) + i + 1); |
i | 101 | fs/isofs/file.c | int result, i; |
i | 109 | fs/isofs/file.c | for(i=0;i<(inode->i_size < ISOFS_BUFFER_SIZE(inode) ? inode->i_size : ISOFS_BUFFER_SIZE(inode)); |
i | 110 | fs/isofs/file.c | i++,pnt++){ |
i | 161 | fs/isofs/inode.c | int i; |
i | 173 | fs/isofs/inode.c | i=get_blkfops(MAJOR(dev))->ioctl(&inode_fake, |
i | 179 | fs/isofs/inode.c | printk("isofs.inode: CDROMMULTISESSION: rc=%d\n",i); |
i | 180 | fs/isofs/inode.c | if (i==0) |
i | 186 | fs/isofs/inode.c | if ((i==0)&&(ms_info.xa_flag)) vol_desc_start=ms_info.addr.lba; |
i | 232 | fs/isofs/inode.c | int i = opt.blocksize; |
i | 233 | fs/isofs/inode.c | while (i != 1){ |
i | 235 | fs/isofs/inode.c | i >>=1; |
i | 426 | fs/isofs/inode.c | int i; |
i | 475 | fs/isofs/inode.c | for(i=0; i< raw_inode->name_len[0]; i++) |
i | 476 | fs/isofs/inode.c | if(raw_inode->name[i]=='.' || raw_inode->name[i]==';') |
i | 478 | fs/isofs/inode.c | if(i == raw_inode->name_len[0] || raw_inode->name[i] == ';') |
i | 70 | fs/isofs/namei.c | unsigned int block, i, f_pos, offset, inode_number; |
i | 165 | fs/isofs/namei.c | for (i = 0; i < dlen; i++) { |
i | 166 | fs/isofs/namei.c | c = dpnt[i]; |
i | 168 | fs/isofs/namei.c | if (c == ';' && i == dlen-2 && dpnt[i+1] == '1') { |
i | 173 | fs/isofs/namei.c | de->name[i] = c; |
i | 87 | fs/isofs/symlink.c | int i; |
i | 102 | fs/isofs/symlink.c | i = 0; |
i | 104 | fs/isofs/symlink.c | while (i<buflen && (c = pnt[i])) { |
i | 105 | fs/isofs/symlink.c | i++; |
i | 109 | fs/isofs/symlink.c | return i; |
i | 80 | fs/isofs/util.c | int i; |
i | 82 | fs/isofs/util.c | for (i = 0; i < 4; i++) { |
i | 83 | fs/isofs/util.c | if (p[i] != p[7-i]) { |
i | 99 | fs/isofs/util.c | int crtime, days, i; |
i | 117 | fs/isofs/util.c | for (i = 1; i < month; i++) |
i | 118 | fs/isofs/util.c | days += monlen[i-1]; |
i | 26 | fs/minix/bitmap.c | unsigned i, j, end, sum = 0; |
i | 29 | fs/minix/bitmap.c | for (i=0; (i<numblocks) && numbits; i++) { |
i | 30 | fs/minix/bitmap.c | if (!(bh=map[i])) |
i | 85 | fs/minix/bitmap.c | int i,j; |
i | 93 | fs/minix/bitmap.c | for (i=0 ; i<8 ; i++) |
i | 94 | fs/minix/bitmap.c | if ((bh=sb->u.minix_sb.s_zmap[i]) != NULL) |
i | 97 | fs/minix/bitmap.c | if (i>=8 || !bh || j>=8192) |
i | 104 | fs/minix/bitmap.c | j += i*8192 + sb->u.minix_sb.s_firstdatazone-1; |
i | 168 | fs/minix/bitmap.c | int i,j; |
i | 176 | fs/minix/bitmap.c | for (i=0 ; i<8 ; i++) |
i | 177 | fs/minix/bitmap.c | if ((bh = inode->i_sb->u.minix_sb.s_imap[i]) != NULL) |
i | 190 | fs/minix/bitmap.c | j += i*8192; |
i | 67 | fs/minix/dir.c | unsigned int offset,i,ret; |
i | 94 | fs/minix/dir.c | for (i = 0; i < info->s_namelen; i++) |
i | 95 | fs/minix/dir.c | if ((c = de->name[i]) != 0) |
i | 96 | fs/minix/dir.c | put_fs_byte(c,i+dirent->d_name); |
i | 99 | fs/minix/dir.c | if (i) { |
i | 101 | fs/minix/dir.c | put_fs_byte(0,i+dirent->d_name); |
i | 102 | fs/minix/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 105 | fs/minix/dir.c | ret = ROUND_UP(NAME_OFFSET(dirent)+i+1); |
i | 87 | fs/minix/fsync.c | int i; |
i | 90 | fs/minix/fsync.c | for (i = 0; i < 7; i++) { |
i | 91 | fs/minix/fsync.c | rc = sync_block (inode, inode->u.minix_i.i_data + i, wait); |
i | 102 | fs/minix/fsync.c | int i; |
i | 110 | fs/minix/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 112 | fs/minix/fsync.c | ((unsigned short *) ind_bh->b_data) + i, |
i | 126 | fs/minix/fsync.c | int i; |
i | 134 | fs/minix/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 136 | fs/minix/fsync.c | ((unsigned short *) dind_bh->b_data) + i, |
i | 60 | fs/minix/inode.c | int i; |
i | 68 | fs/minix/inode.c | for(i = 0 ; i < MINIX_I_MAP_SLOTS ; i++) |
i | 69 | fs/minix/inode.c | brelse(sb->u.minix_sb.s_imap[i]); |
i | 70 | fs/minix/inode.c | for(i = 0 ; i < MINIX_Z_MAP_SLOTS ; i++) |
i | 71 | fs/minix/inode.c | brelse(sb->u.minix_sb.s_zmap[i]); |
i | 129 | fs/minix/inode.c | int i,dev=s->s_dev,block; |
i | 172 | fs/minix/inode.c | for (i=0;i < MINIX_I_MAP_SLOTS;i++) |
i | 173 | fs/minix/inode.c | s->u.minix_sb.s_imap[i] = NULL; |
i | 174 | fs/minix/inode.c | for (i=0;i < MINIX_Z_MAP_SLOTS;i++) |
i | 175 | fs/minix/inode.c | s->u.minix_sb.s_zmap[i] = NULL; |
i | 177 | fs/minix/inode.c | for (i=0 ; i < s->u.minix_sb.s_imap_blocks ; i++) |
i | 178 | fs/minix/inode.c | if ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
i | 182 | fs/minix/inode.c | for (i=0 ; i < s->u.minix_sb.s_zmap_blocks ; i++) |
i | 183 | fs/minix/inode.c | if ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
i | 188 | fs/minix/inode.c | for(i=0;i<MINIX_I_MAP_SLOTS;i++) |
i | 189 | fs/minix/inode.c | brelse(s->u.minix_sb.s_imap[i]); |
i | 190 | fs/minix/inode.c | for(i=0;i<MINIX_Z_MAP_SLOTS;i++) |
i | 191 | fs/minix/inode.c | brelse(s->u.minix_sb.s_zmap[i]); |
i | 260 | fs/minix/inode.c | int i; |
i | 274 | fs/minix/inode.c | i = inode_bmap(inode,7); |
i | 275 | fs/minix/inode.c | if (!i) |
i | 277 | fs/minix/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
i | 280 | fs/minix/inode.c | i = inode_bmap(inode,8); |
i | 281 | fs/minix/inode.c | if (!i) |
i | 283 | fs/minix/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>9); |
i | 284 | fs/minix/inode.c | if (!i) |
i | 286 | fs/minix/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 511); |
i | 154 | fs/minix/namei.c | int i; |
i | 197 | fs/minix/namei.c | for (i = 0; i < info->s_namelen ; i++) |
i | 198 | fs/minix/namei.c | de->name[i] = (i < namelen) ? name[i] : 0; |
i | 549 | fs/minix/namei.c | int i; |
i | 566 | fs/minix/namei.c | i = 0; |
i | 567 | fs/minix/namei.c | while (i < 1023 && (c=*(symname++))) |
i | 568 | fs/minix/namei.c | name_block->b_data[i++] = c; |
i | 569 | fs/minix/namei.c | name_block->b_data[i] = 0; |
i | 572 | fs/minix/namei.c | inode->i_size = i; |
i | 583 | fs/minix/namei.c | i = minix_add_entry(dir, name, len, &bh, &de); |
i | 584 | fs/minix/namei.c | if (i) { |
i | 589 | fs/minix/namei.c | return i; |
i | 86 | fs/minix/symlink.c | int i; |
i | 99 | fs/minix/symlink.c | i = 0; |
i | 100 | fs/minix/symlink.c | while (i<buflen && (c = bh->b_data[i])) { |
i | 101 | fs/minix/symlink.c | i++; |
i | 105 | fs/minix/symlink.c | return i; |
i | 34 | fs/minix/truncate.c | int i, tmp; |
i | 39 | fs/minix/truncate.c | for (i = DIRECT_BLOCK ; i < 7 ; i++) { |
i | 40 | fs/minix/truncate.c | p = i + inode->u.minix_i.i_data; |
i | 44 | fs/minix/truncate.c | if (i < DIRECT_BLOCK) { |
i | 64 | fs/minix/truncate.c | int i, tmp; |
i | 83 | fs/minix/truncate.c | for (i = INDIRECT_BLOCK ; i < 512 ; i++) { |
i | 84 | fs/minix/truncate.c | if (i < 0) |
i | 85 | fs/minix/truncate.c | i = 0; |
i | 86 | fs/minix/truncate.c | if (i < INDIRECT_BLOCK) |
i | 88 | fs/minix/truncate.c | ind = i+(unsigned short *) ind_bh->b_data; |
i | 93 | fs/minix/truncate.c | if (i < INDIRECT_BLOCK) { |
i | 108 | fs/minix/truncate.c | for (i = 0; i < 512; i++) |
i | 111 | fs/minix/truncate.c | if (i >= 512) |
i | 125 | fs/minix/truncate.c | int i, tmp; |
i | 144 | fs/minix/truncate.c | for (i = DINDIRECT_BLOCK ; i < 512 ; i ++) { |
i | 145 | fs/minix/truncate.c | if (i < 0) |
i | 146 | fs/minix/truncate.c | i = 0; |
i | 147 | fs/minix/truncate.c | if (i < DINDIRECT_BLOCK) |
i | 149 | fs/minix/truncate.c | dind = i+(unsigned short *) dind_bh->b_data; |
i | 150 | fs/minix/truncate.c | retry |= trunc_indirect(inode,7+512+(i<<9),dind); |
i | 154 | fs/minix/truncate.c | for (i = 0; i < 512; i++) |
i | 157 | fs/minix/truncate.c | if (i >= 512) |
i | 141 | fs/msdos/buffer.c | int i; |
i | 142 | fs/msdos/buffer.c | for (i=0; i<nbreq; i++){ |
i | 143 | fs/msdos/buffer.c | tmp[i] = bh[i]->b_next; |
i | 72 | fs/msdos/dir.c | int ino,i,i2,last; |
i | 83 | fs/msdos/dir.c | for (i = 0; *walk; walk++) |
i | 84 | fs/msdos/dir.c | put_fs_byte(*walk,dirent->d_name+i++); |
i | 86 | fs/msdos/dir.c | put_fs_byte(0,dirent->d_name+i); |
i | 87 | fs/msdos/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 88 | fs/msdos/dir.c | return ROUND_UP(NAME_OFFSET(dirent) + i + 1); |
i | 97 | fs/msdos/dir.c | for (i = last = 0; i < 8; i++) { |
i | 98 | fs/msdos/dir.c | if (!(c = de->name[i])) break; |
i | 101 | fs/msdos/dir.c | last = i+1; |
i | 102 | fs/msdos/dir.c | ptname[i] = c; |
i | 104 | fs/msdos/dir.c | i = last; |
i | 105 | fs/msdos/dir.c | ptname[i] = '.'; |
i | 106 | fs/msdos/dir.c | i++; |
i | 111 | fs/msdos/dir.c | last = i+1; |
i | 112 | fs/msdos/dir.c | ptname[i] = c; |
i | 113 | fs/msdos/dir.c | i++; |
i | 115 | fs/msdos/dir.c | if ((i = last) != 0) { |
i | 120 | fs/msdos/dir.c | bufname[i] = '\0'; |
i | 122 | fs/msdos/dir.c | memcpy_tofs(dirent->d_name,bufname,i+1); |
i | 123 | fs/msdos/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 126 | fs/msdos/dir.c | PRINTK (("readdir retourne %d\n",i)); |
i | 127 | fs/msdos/dir.c | return ROUND_UP(NAME_OFFSET(dirent) + i + 1); |
i | 131 | fs/msdos/file.c | int i; |
i | 132 | fs/msdos/file.c | for (i=0; i<nb; i++){ |
i | 147 | fs/msdos/file.c | for (i=pre->nblist; i<MSDOS_PREFETCH; i++) pre->bhlist[i] = NULL; |
i | 162 | fs/msdos/file.c | int i; |
i | 257 | fs/msdos/file.c | for (i=0; i<pre.nblist; i++) brelse (pre.bhlist[i]); |
i | 56 | fs/namei.c | int i, error; |
i | 60 | fs/namei.c | i = get_max_filename((unsigned long) filename); |
i | 61 | fs/namei.c | if (i < 0) |
i | 62 | fs/namei.c | return i; |
i | 64 | fs/namei.c | if (!i) { |
i | 66 | fs/namei.c | i = PAGE_SIZE; |
i | 74 | fs/namei.c | while (--i) { |
i | 102 | fs/nfs/dir.c | int i; |
i | 113 | fs/nfs/dir.c | i = sizeof (struct nfs_entry)*NFS_READDIR_CACHE_SIZE; |
i | 114 | fs/nfs/dir.c | c_entry = (struct nfs_entry *) kmalloc(i, GFP_KERNEL); |
i | 115 | fs/nfs/dir.c | for (i = 0; i < NFS_READDIR_CACHE_SIZE; i++) { |
i | 116 | fs/nfs/dir.c | c_entry[i].name = (char *) kmalloc(NFS_MAXNAMLEN + 1, |
i | 125 | fs/nfs/dir.c | for (i = 0; i < c_size; i++) { |
i | 126 | fs/nfs/dir.c | if (filp->f_pos == c_entry[i].cookie) { |
i | 127 | fs/nfs/dir.c | if (i == c_size - 1) { |
i | 128 | fs/nfs/dir.c | if (c_entry[i].eof) |
i | 132 | fs/nfs/dir.c | entry = c_entry + i + 1; |
i | 158 | fs/nfs/dir.c | i = strlen(entry->name); |
i | 159 | fs/nfs/dir.c | memcpy_tofs(dirent->d_name, entry->name, i + 1); |
i | 161 | fs/nfs/dir.c | put_fs_word(i, &dirent->d_reclen); |
i | 163 | fs/nfs/dir.c | return ROUND_UP(NAME_OFFSET(dirent)+i+1); |
i | 194 | fs/nfs/dir.c | int i; |
i | 196 | fs/nfs/dir.c | for (i = 0; i < NFS_LOOKUP_CACHE_SIZE; i++) { |
i | 197 | fs/nfs/dir.c | entry = nfs_lookup_cache + i; |
i | 260 | fs/nfs/dir.c | int i; |
i | 272 | fs/nfs/dir.c | for (i = 0; i < NFS_LOOKUP_CACHE_SIZE; i++) { |
i | 273 | fs/nfs/dir.c | entry = nfs_lookup_cache + i; |
i | 285 | fs/nfs/dir.c | int i; |
i | 287 | fs/nfs/dir.c | for (i = 0; i < NFS_LOOKUP_CACHE_SIZE; i++) { |
i | 288 | fs/nfs/dir.c | entry = nfs_lookup_cache + i; |
i | 101 | fs/nfs/file.c | int result, hunk, i, n, fs; |
i | 122 | fs/nfs/file.c | for (i = 0; i < READ_CACHE_SIZE; i++) |
i | 123 | fs/nfs/file.c | if ((cache[i].inode_num == inode->i_ino) |
i | 124 | fs/nfs/file.c | && (cache[i].file_pos <= pos) |
i | 125 | fs/nfs/file.c | && (cache[i].file_pos + cache[i].len >= pos + count) |
i | 126 | fs/nfs/file.c | && (abs(jiffies - cache[i].time) <= EXPIRE_CACHE)) |
i | 128 | fs/nfs/file.c | if (i < READ_CACHE_SIZE) { |
i | 129 | fs/nfs/file.c | ++cache[i].in_use; |
i | 132 | fs/nfs/file.c | memcpy_tofs(buf, cache[i].buf + pos - cache[i].file_pos, count); |
i | 133 | fs/nfs/file.c | --cache[i].in_use; |
i | 139 | fs/nfs/file.c | for (i = 0; i < count - n; i += n) { |
i | 149 | fs/nfs/file.c | return i + result; |
i | 164 | fs/nfs/file.c | hunk = count - i; |
i | 170 | fs/nfs/file.c | return i + hunk; |
i | 190 | fs/nfs/file.c | return i + hunk; |
i | 196 | fs/nfs/file.c | int result, hunk, i, n, pos; |
i | 213 | fs/nfs/file.c | for (i = 0; i < READ_CACHE_SIZE; i++) |
i | 214 | fs/nfs/file.c | if(cache[i].inode_num == inode->i_ino) |
i | 215 | fs/nfs/file.c | cache[i].time -= EXPIRE_CACHE; |
i | 222 | fs/nfs/file.c | for (i = 0; i < count; i += n) { |
i | 223 | fs/nfs/file.c | hunk = count - i; |
i | 233 | fs/nfs/file.c | i += hunk; |
i | 239 | fs/nfs/file.c | return i; |
i | 40 | fs/nfs/mmap.c | int i; |
i | 54 | fs/nfs/mmap.c | for (i = 0; i < (PAGE_SIZE - clear); i += n) { |
i | 57 | fs/nfs/mmap.c | hunk = PAGE_SIZE - i; |
i | 61 | fs/nfs/mmap.c | pos, hunk, (char *) (page + i), &fattr, 0); |
i | 66 | fs/nfs/mmap.c | i += result; |
i | 83 | fs/nfs/proc.c | int *i; |
i | 85 | fs/nfs/proc.c | while (!(i = (int *)kmalloc(size+NFS_SLACK_SPACE,GFP_NFS))) { |
i | 88 | fs/nfs/proc.c | return i; |
i | 735 | fs/nfs/proc.c | int i; |
i | 755 | fs/nfs/proc.c | for (i = 0; i < count && *p++; i++) { |
i | 764 | fs/nfs/proc.c | eof = (i == count && !*p++ && *p++) |
i | 765 | fs/nfs/proc.c | || (i < count && *p++); |
i | 766 | fs/nfs/proc.c | if (eof && i) |
i | 768 | fs/nfs/proc.c | PRINTK("NFS reply readdir %d %s\n", i, |
i | 770 | fs/nfs/proc.c | status = i; |
i | 828 | fs/nfs/proc.c | int i; |
i | 849 | fs/nfs/proc.c | for (i = 0; i < 16 && i < NGROUPS && current->groups[i] != NOGROUP; i++) |
i | 850 | fs/nfs/proc.c | *p++ = htonl(current->groups[i]); |
i | 851 | fs/nfs/proc.c | *p2 = htonl(i); |
i | 926 | fs/nfs/proc.c | int i; |
i | 928 | fs/nfs/proc.c | for (i = 0; nfs_errtbl[i].stat != -1; i++) { |
i | 929 | fs/nfs/proc.c | if (nfs_errtbl[i].stat == stat) |
i | 930 | fs/nfs/proc.c | return nfs_errtbl[i].errno; |
i | 933 | fs/nfs/proc.c | return nfs_errtbl[i].errno; |
i | 384 | fs/pipe.c | int i,j; |
i | 397 | fs/pipe.c | for(i=0;j<2 && i<NR_OPEN && i<current->rlim[RLIMIT_NOFILE].rlim_cur;i++) |
i | 398 | fs/pipe.c | if (!current->files->fd[i]) { |
i | 399 | fs/pipe.c | current->files->fd[ fd[j]=i ] = f[j]; |
i | 153 | fs/proc/array.c | int i=prof_len; |
i | 155 | fs/proc/array.c | while (i--) |
i | 156 | fs/proc/array.c | prof_buffer[i]=0UL; |
i | 188 | fs/proc/array.c | int i, len; |
i | 191 | fs/proc/array.c | for (i = 0 ; i < 16 ; i++) |
i | 192 | fs/proc/array.c | sum += kstat.interrupts[i]; |
i | 212 | fs/proc/array.c | for (i = 0 ; i < 16 ; i++) |
i | 213 | fs/proc/array.c | len += sprintf(buffer + len, " %u", kstat.interrupts[i]); |
i | 257 | fs/proc/array.c | struct sysinfo i; |
i | 259 | fs/proc/array.c | si_meminfo(&i); |
i | 260 | fs/proc/array.c | si_swapinfo(&i); |
i | 264 | fs/proc/array.c | i.totalram, i.totalram-i.freeram, i.freeram, i.sharedram, i.bufferram, |
i | 265 | fs/proc/array.c | i.totalswap, i.totalswap-i.freeswap, i.freeswap); |
i | 453 | fs/proc/array.c | int i,tty_pgrp; |
i | 472 | fs/proc/array.c | for(i=0; i<32; ++i) { |
i | 473 | fs/proc/array.c | switch((unsigned long) (*p)->sigaction[i].sa_handler) { |
i | 664 | fs/proc/array.c | int i; |
i | 677 | fs/proc/array.c | for (map = (*p)->mm->mmap, i = 0; map && (i < lineno); map = map->vm_next, i++) |
i | 718 | fs/proc/array.c | i = len-column; |
i | 719 | fs/proc/array.c | if (i > count) |
i | 720 | fs/proc/array.c | i = count; |
i | 721 | fs/proc/array.c | memcpy_tofs(destptr, line+column, i); |
i | 722 | fs/proc/array.c | destptr += i; count -= i; |
i | 723 | fs/proc/array.c | column += i; |
i | 86 | fs/proc/base.c | int i; |
i | 97 | fs/proc/base.c | i = NR_BASE_DIRENTRY; |
i | 98 | fs/proc/base.c | while (i-- > 0 && !proc_match(len,name,base_dir+i)) |
i | 100 | fs/proc/base.c | if (i < 0) { |
i | 104 | fs/proc/base.c | if (base_dir[i].low_ino == 1) |
i | 107 | fs/proc/base.c | ino = (pid << 16) + base_dir[i].low_ino; |
i | 108 | fs/proc/base.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 109 | fs/proc/base.c | if (task[i] && task[i]->pid == pid) |
i | 111 | fs/proc/base.c | if (!pid || i >= NR_TASKS) { |
i | 128 | fs/proc/base.c | int i,j; |
i | 134 | fs/proc/base.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 135 | fs/proc/base.c | if (task[i] && task[i]->pid == pid) |
i | 137 | fs/proc/base.c | if (!pid || i >= NR_TASKS) |
i | 142 | fs/proc/base.c | i = de->namelen; |
i | 147 | fs/proc/base.c | put_fs_word(i,&dirent->d_reclen); |
i | 148 | fs/proc/base.c | put_fs_byte(0,i+dirent->d_name); |
i | 149 | fs/proc/base.c | j = i; |
i | 150 | fs/proc/base.c | while (i--) |
i | 151 | fs/proc/base.c | put_fs_byte(de->name[i], i+dirent->d_name); |
i | 59 | fs/proc/fd.c | int i; |
i | 101 | fs/proc/fd.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 102 | fs/proc/fd.c | if ((p = task[i]) && p->pid == pid) |
i | 104 | fs/proc/fd.c | if (!pid || i >= NR_TASKS) |
i | 122 | fs/proc/fd.c | int i,j; |
i | 135 | fs/proc/fd.c | i = j = fd+1; |
i | 141 | fs/proc/fd.c | put_fs_word(i, &dirent->d_reclen); |
i | 142 | fs/proc/fd.c | put_fs_byte(0, i+dirent->d_name); |
i | 143 | fs/proc/fd.c | while (i--) |
i | 144 | fs/proc/fd.c | put_fs_byte('.', i+dirent->d_name); |
i | 148 | fs/proc/fd.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 149 | fs/proc/fd.c | if ((p = task[i]) && p->pid == pid) |
i | 151 | fs/proc/fd.c | if (i >= NR_TASKS) |
i | 160 | fs/proc/fd.c | i = 1; |
i | 163 | fs/proc/fd.c | i++; |
i | 165 | fs/proc/fd.c | j = i; |
i | 169 | fs/proc/fd.c | put_fs_word(i, &dirent->d_reclen); |
i | 170 | fs/proc/fd.c | put_fs_byte(0, i+dirent->d_name); |
i | 171 | fs/proc/fd.c | while (i--) { |
i | 172 | fs/proc/fd.c | put_fs_byte('0'+(fd % 10), i+dirent->d_name); |
i | 113 | fs/proc/inode.c | int i; |
i | 127 | fs/proc/inode.c | for (i = 0; i < NR_TASKS ; i++) |
i | 128 | fs/proc/inode.c | if ((p = task[i]) && (p->pid == pid)) |
i | 130 | fs/proc/inode.c | if (!p || i >= NR_TASKS) |
i | 135 | fs/proc/inode.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 136 | fs/proc/inode.c | if (task[i]) |
i | 69 | fs/proc/link.c | int i, fd; |
i | 83 | fs/proc/link.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 84 | fs/proc/link.c | if ((p = task[i]) && p->pid == pid) |
i | 87 | fs/proc/link.c | if ((i >= NR_TASKS) || |
i | 107 | fs/proc/link.c | int i, error; |
i | 121 | fs/proc/link.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 122 | fs/proc/link.c | if ((p = task[i]) && p->pid == pid) |
i | 124 | fs/proc/link.c | if (i >= NR_TASKS) { |
i | 173 | fs/proc/link.c | int i; |
i | 181 | fs/proc/link.c | i = proc_follow_link(NULL, inode, 0, 0, &inode); |
i | 182 | fs/proc/link.c | if (i) |
i | 183 | fs/proc/link.c | return i; |
i | 189 | fs/proc/link.c | i = sprintf(buf,"[%04x]:%u", dev, ino); |
i | 190 | fs/proc/link.c | if (buflen > i) |
i | 191 | fs/proc/link.c | buflen = i; |
i | 192 | fs/proc/link.c | i = 0; |
i | 193 | fs/proc/link.c | while (i < buflen) |
i | 194 | fs/proc/link.c | put_fs_byte(buf[i++],buffer++); |
i | 195 | fs/proc/link.c | return i; |
i | 36 | fs/proc/mem.c | int i; |
i | 43 | fs/proc/mem.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 44 | fs/proc/mem.c | if (task[i] && task[i]->pid == pid) { |
i | 45 | fs/proc/mem.c | tsk = task[i]; |
i | 75 | fs/proc/mem.c | i = PAGE_SIZE-(addr & ~PAGE_MASK); |
i | 76 | fs/proc/mem.c | if (i > count) |
i | 77 | fs/proc/mem.c | i = count; |
i | 78 | fs/proc/mem.c | memcpy_tofs(tmp, page, i); |
i | 79 | fs/proc/mem.c | addr += i; |
i | 80 | fs/proc/mem.c | tmp += i; |
i | 81 | fs/proc/mem.c | count -= i; |
i | 98 | fs/proc/mem.c | int i; |
i | 106 | fs/proc/mem.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 107 | fs/proc/mem.c | if (task[i] && task[i]->pid == pid) { |
i | 108 | fs/proc/mem.c | tsk = task[i]; |
i | 139 | fs/proc/mem.c | i = PAGE_SIZE-(addr & ~PAGE_MASK); |
i | 140 | fs/proc/mem.c | if (i > count) |
i | 141 | fs/proc/mem.c | i = count; |
i | 142 | fs/proc/mem.c | memcpy_fromfs(page, tmp, i); |
i | 143 | fs/proc/mem.c | addr += i; |
i | 144 | fs/proc/mem.c | tmp += i; |
i | 145 | fs/proc/mem.c | count -= i; |
i | 183 | fs/proc/mem.c | int i; |
i | 188 | fs/proc/mem.c | for (i = 1 ; i < NR_TASKS ; i++) |
i | 189 | fs/proc/mem.c | if (task[i] && task[i]->pid == (inode->i_ino >> 16)) { |
i | 190 | fs/proc/mem.c | tsk = task[i]; |
i | 214 | fs/proc/net.c | int i,j; |
i | 222 | fs/proc/net.c | i = de->namelen; |
i | 225 | fs/proc/net.c | put_fs_word(i,&dirent->d_reclen); |
i | 226 | fs/proc/net.c | put_fs_byte(0,i+dirent->d_name); |
i | 227 | fs/proc/net.c | j = i; |
i | 228 | fs/proc/net.c | while (i--) |
i | 229 | fs/proc/net.c | put_fs_byte(de->name[i], i+dirent->d_name); |
i | 91 | fs/proc/root.c | int i, ino; |
i | 100 | fs/proc/root.c | i = NR_ROOT_DIRENTRY; |
i | 101 | fs/proc/root.c | while (i-- > 0 && !proc_match(len,name,root_dir+i)) |
i | 103 | fs/proc/root.c | if (i >= 0) { |
i | 104 | fs/proc/root.c | ino = root_dir[i].low_ino; |
i | 127 | fs/proc/root.c | for (i = 0 ; i < NR_TASKS ; i++) |
i | 128 | fs/proc/root.c | if (task[i] && task[i]->pid == pid) |
i | 130 | fs/proc/root.c | if (!pid || i >= NR_TASKS) { |
i | 149 | fs/proc/root.c | int i,j; |
i | 159 | fs/proc/root.c | i = de->namelen; |
i | 161 | fs/proc/root.c | put_fs_word(i,&dirent->d_reclen); |
i | 162 | fs/proc/root.c | put_fs_byte(0,i+dirent->d_name); |
i | 163 | fs/proc/root.c | j = i; |
i | 164 | fs/proc/root.c | while (i--) |
i | 165 | fs/proc/root.c | put_fs_byte(de->name[i], i+dirent->d_name); |
i | 178 | fs/proc/root.c | i = 1; |
i | 181 | fs/proc/root.c | i++; |
i | 183 | fs/proc/root.c | j = i; |
i | 185 | fs/proc/root.c | put_fs_word(i, &dirent->d_reclen); |
i | 186 | fs/proc/root.c | put_fs_byte(0, i+dirent->d_name); |
i | 187 | fs/proc/root.c | while (i--) { |
i | 188 | fs/proc/root.c | put_fs_byte('0'+(pid % 10), i+dirent->d_name); |
i | 92 | fs/select.c | int i,j; |
i | 96 | fs/select.c | i = j << 5; |
i | 97 | fs/select.c | if (i >= n) |
i | 100 | fs/select.c | for ( ; set ; i++,set >>= 1) { |
i | 101 | fs/select.c | if (i >= n) |
i | 105 | fs/select.c | if (!current->files->fd[i]) |
i | 107 | fs/select.c | if (!current->files->fd[i]->f_inode) |
i | 109 | fs/select.c | max = i; |
i | 125 | fs/select.c | for (i = 0 ; i < n ; i++) { |
i | 126 | fs/select.c | if (FD_ISSET(i,in) && check(SEL_IN,wait,current->files->fd[i])) { |
i | 127 | fs/select.c | FD_SET(i, res_in); |
i | 131 | fs/select.c | if (FD_ISSET(i,out) && check(SEL_OUT,wait,current->files->fd[i])) { |
i | 132 | fs/select.c | FD_SET(i, res_out); |
i | 136 | fs/select.c | if (FD_ISSET(i,ex) && check(SEL_EX,wait,current->files->fd[i])) { |
i | 137 | fs/select.c | FD_SET(i, res_ex); |
i | 205 | fs/select.c | int i; |
i | 213 | fs/select.c | i = verify_area(VERIFY_READ, buffer, 20); |
i | 214 | fs/select.c | if (i) |
i | 215 | fs/select.c | return i; |
i | 225 | fs/select.c | if ((i = get_fd_set(n, inp, &in)) || |
i | 226 | fs/select.c | (i = get_fd_set(n, outp, &out)) || |
i | 227 | fs/select.c | (i = get_fd_set(n, exp, &ex))) return i; |
i | 230 | fs/select.c | i = verify_area(VERIFY_WRITE, tvp, sizeof(*tvp)); |
i | 231 | fs/select.c | if (i) |
i | 232 | fs/select.c | return i; |
i | 239 | fs/select.c | i = do_select(n, &in, &out, &ex, &res_in, &res_out, &res_ex); |
i | 251 | fs/select.c | if (i < 0) |
i | 252 | fs/select.c | return i; |
i | 253 | fs/select.c | if (!i && (current->signal & ~current->blocked)) |
i | 258 | fs/select.c | return i; |
i | 303 | fs/super.c | int i; |
i | 305 | fs/super.c | for (i = 1; i < 256; i++) { |
i | 306 | fs/super.c | if (!set_bit(i,unnamed_dev_in_use)) |
i | 307 | fs/super.c | return (UNNAMED_MAJOR << 8) | i; |
i | 513 | fs/super.c | int i; |
i | 524 | fs/super.c | i = vma->vm_end - (unsigned long) data; |
i | 525 | fs/super.c | if (PAGE_SIZE <= (unsigned long) i) |
i | 526 | fs/super.c | i = PAGE_SIZE-1; |
i | 530 | fs/super.c | memcpy_fromfs((void *) page,data,i); |
i | 236 | fs/sysv/balloc.c | int i; |
i | 242 | fs/sysv/balloc.c | for (i = *sb->sv_sb_flc_count ; /* i > 0 */ ; ) { |
i | 243 | fs/sysv/balloc.c | block = sb->sv_sb_flc_blocks[--i]; |
i | 249 | fs/sysv/balloc.c | if (i == 0) |
i | 294 | fs/sysv/balloc.c | for (i = *flc_count ; /* i > 0 */ ; ) { |
i | 295 | fs/sysv/balloc.c | block = flc_blocks[--i]; |
i | 301 | fs/sysv/balloc.c | if (i == 0) |
i | 75 | fs/sysv/dir.c | unsigned int offset,i; |
i | 105 | fs/sysv/dir.c | for (i = 0; i < SYSV_NAMELEN; i++) |
i | 106 | fs/sysv/dir.c | if ((c = sde.name[i]) != 0) |
i | 107 | fs/sysv/dir.c | put_fs_byte(c,i+dirent->d_name); |
i | 110 | fs/sysv/dir.c | if (i) { |
i | 115 | fs/sysv/dir.c | put_fs_byte(0,i+dirent->d_name); |
i | 116 | fs/sysv/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 118 | fs/sysv/dir.c | return ROUND_UP(NAME_OFFSET(dirent)+i+1); |
i | 95 | fs/sysv/fsync.c | int i; |
i | 98 | fs/sysv/fsync.c | for (i = 0; i < 10; i++) { |
i | 99 | fs/sysv/fsync.c | rc = sync_block (inode, inode->u.sysv_i.i_data + i, 0, wait); |
i | 110 | fs/sysv/fsync.c | int i; |
i | 120 | fs/sysv/fsync.c | for (i = 0; i < sb->sv_ind_per_block; i++) { |
i | 122 | fs/sysv/fsync.c | ((unsigned long *) ind_bh->b_data) + i, sb->sv_convert, |
i | 136 | fs/sysv/fsync.c | int i; |
i | 146 | fs/sysv/fsync.c | for (i = 0; i < sb->sv_ind_per_block; i++) { |
i | 148 | fs/sysv/fsync.c | ((unsigned long *) dind_bh->b_data) + i, sb->sv_convert, |
i | 162 | fs/sysv/fsync.c | int i; |
i | 172 | fs/sysv/fsync.c | for (i = 0; i < sb->sv_ind_per_block; i++) { |
i | 174 | fs/sysv/fsync.c | ((unsigned long *) tind_bh->b_data) + i, sb->sv_convert, |
i | 42 | fs/sysv/ialloc.c | static inline sysv_ino_t * sv_sb_fic_inode (struct super_block * sb, unsigned int i) |
i | 45 | fs/sysv/ialloc.c | return &sb->sv_sb_fic_inodes[i]; |
i | 48 | fs/sysv/ialloc.c | unsigned int offset = offsetof(struct xenix_super_block, s_inode[i]); |
i | 112 | fs/sysv/ialloc.c | int i,j,ino,block; |
i | 130 | fs/sysv/ialloc.c | for (i = 0, ino = SYSV_ROOT_INO+1, block = sb->sv_firstinodezone, j = SYSV_ROOT_INO ; i < sb->sv_fic_size && block < sb->sv_firstdatazone ; block++, j = 0) { |
i | 137 | fs/sysv/ialloc.c | for (; j < sb->sv_inodes_per_block && i < sb->sv_fic_size; ino++, j++, raw_inode++) { |
i | 139 | fs/sysv/ialloc.c | *sv_sb_fic_inode(sb,i++) = ino; |
i | 143 | fs/sysv/ialloc.c | if (i == 0) { |
i | 148 | fs/sysv/ialloc.c | *sb->sv_sb_fic_count = i; |
i | 385 | fs/sysv/inode.c | int i; |
i | 386 | fs/sysv/inode.c | for (i = 0; i < sizeof(offsets)/sizeof(offsets[0]); i++) |
i | 387 | fs/sysv/inode.c | if ((bh = bread(dev, offsets[i], BLOCK_SIZE)) != NULL) { |
i | 390 | fs/sysv/inode.c | sb->sv_block_base = offsets[i] << sb->sv_block_size_ratio_bits; |
i | 394 | fs/sysv/inode.c | sb->sv_block_base = offsets[i] << sb->sv_block_size_ratio_bits; |
i | 586 | fs/sysv/inode.c | int i; |
i | 594 | fs/sysv/inode.c | i = inode_bmap(sb,inode,10); |
i | 595 | fs/sysv/inode.c | if (!i) |
i | 597 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 602 | fs/sysv/inode.c | i = inode_bmap(sb,inode,11); |
i | 603 | fs/sysv/inode.c | if (!i) |
i | 605 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 606 | fs/sysv/inode.c | i = block_bmap(sb, bh, block >> sb->sv_ind_per_block_bits, convert); |
i | 607 | fs/sysv/inode.c | if (!i) |
i | 609 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 614 | fs/sysv/inode.c | i = inode_bmap(sb,inode,12); |
i | 615 | fs/sysv/inode.c | if (!i) |
i | 617 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 618 | fs/sysv/inode.c | i = block_bmap(sb, bh, block >> sb->sv_ind_per_block_2_bits, convert); |
i | 619 | fs/sysv/inode.c | if (!i) |
i | 621 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 622 | fs/sysv/inode.c | i = block_bmap(sb, bh, (block >> sb->sv_ind_per_block_bits) & sb->sv_ind_per_block_1,convert); |
i | 623 | fs/sysv/inode.c | if (!i) |
i | 625 | fs/sysv/inode.c | bh = bread(inode->i_dev,i,sb->sv_block_size); |
i | 987 | fs/sysv/inode.c | int i; |
i | 989 | fs/sysv/inode.c | for (i = 0; i < 3; i++) |
i | 990 | fs/sysv/inode.c | register_filesystem(&sysv_fs_type[i]); |
i | 997 | fs/sysv/inode.c | int i; |
i | 999 | fs/sysv/inode.c | for (i = 0; i < 3; i++) |
i | 1000 | fs/sysv/inode.c | unregister_filesystem(&sysv_fs_type[i]); |
i | 151 | fs/sysv/namei.c | int i; |
i | 192 | fs/sysv/namei.c | for (i = 0; i < SYSV_NAMELEN ; i++) |
i | 193 | fs/sysv/namei.c | de->name[i] = (i < namelen) ? name[i] : 0; |
i | 541 | fs/sysv/namei.c | int i; |
i | 561 | fs/sysv/namei.c | i = 0; |
i | 562 | fs/sysv/namei.c | while (i < sb->sv_block_size_1 && (c = *(symname++))) |
i | 563 | fs/sysv/namei.c | name_block_data[i++] = c; |
i | 564 | fs/sysv/namei.c | name_block_data[i] = 0; |
i | 567 | fs/sysv/namei.c | inode->i_size = i; |
i | 578 | fs/sysv/namei.c | i = sysv_add_entry(dir, name, len, &bh, &de); |
i | 579 | fs/sysv/namei.c | if (i) { |
i | 584 | fs/sysv/namei.c | return i; |
i | 93 | fs/sysv/symlink.c | int i; |
i | 107 | fs/sysv/symlink.c | i = 0; |
i | 108 | fs/sysv/symlink.c | while (i<buflen && (c = bh_data[i])) { |
i | 109 | fs/sysv/symlink.c | i++; |
i | 113 | fs/sysv/symlink.c | return i; |
i | 47 | fs/sysv/truncate.c | unsigned int i; |
i | 55 | fs/sysv/truncate.c | for (i = ((unsigned long) inode->i_size + sb->sv_block_size_1) >> sb->sv_block_size_bits; i < 10; i++) { |
i | 56 | fs/sysv/truncate.c | p = inode->u.sysv_i.i_data + i; |
i | 61 | fs/sysv/truncate.c | if ((i << sb->sv_block_size_bits) < inode->i_size) { |
i | 83 | fs/sysv/truncate.c | unsigned int i; |
i | 107 | fs/sysv/truncate.c | i = 0; |
i | 109 | fs/sysv/truncate.c | i = (inode->i_size - offset + sb->sv_block_size_1) >> sb->sv_block_size_bits; |
i | 110 | fs/sysv/truncate.c | for (; i < sb->sv_ind_per_block; i++) { |
i | 111 | fs/sysv/truncate.c | ind = ((sysv_zone_t *) indbh->b_data) + i; |
i | 118 | fs/sysv/truncate.c | if ((i << sb->sv_block_size_bits) + offset < inode->i_size) { |
i | 132 | fs/sysv/truncate.c | for (i = 0; i < sb->sv_ind_per_block; i++) |
i | 133 | fs/sysv/truncate.c | if (((sysv_zone_t *) indbh->b_data)[i]) |
i | 152 | fs/sysv/truncate.c | unsigned int i; |
i | 174 | fs/sysv/truncate.c | i = 0; |
i | 176 | fs/sysv/truncate.c | i = (inode->i_size - offset + sb->sv_ind_per_block_block_size_1) >> sb->sv_ind_per_block_block_size_bits; |
i | 177 | fs/sysv/truncate.c | for (; i < sb->sv_ind_per_block; i++) { |
i | 178 | fs/sysv/truncate.c | ind = ((sysv_zone_t *) indbh->b_data) + i; |
i | 184 | fs/sysv/truncate.c | retry |= trunc_indirect(inode,offset+(i<<sb->sv_ind_per_block_bits),ind,sb->sv_convert,&indbh->b_dirt); |
i | 186 | fs/sysv/truncate.c | for (i = 0; i < sb->sv_ind_per_block; i++) |
i | 187 | fs/sysv/truncate.c | if (((sysv_zone_t *) indbh->b_data)[i]) |
i | 206 | fs/sysv/truncate.c | unsigned int i; |
i | 228 | fs/sysv/truncate.c | i = 0; |
i | 230 | fs/sysv/truncate.c | i = (inode->i_size - offset + sb->sv_ind_per_block_2_block_size_1) >> sb->sv_ind_per_block_2_block_size_bits; |
i | 231 | fs/sysv/truncate.c | for (; i < sb->sv_ind_per_block; i++) { |
i | 232 | fs/sysv/truncate.c | ind = ((sysv_zone_t *) indbh->b_data) + i; |
i | 238 | fs/sysv/truncate.c | retry |= trunc_dindirect(inode,offset+(i<<sb->sv_ind_per_block_2_bits),ind,sb->sv_convert,&indbh->b_dirt); |
i | 240 | fs/sysv/truncate.c | for (i = 0; i < sb->sv_ind_per_block; i++) |
i | 241 | fs/sysv/truncate.c | if (((sysv_zone_t *) indbh->b_data)[i]) |
i | 40 | fs/umsdos/check.c | int i; |
i | 41 | fs/umsdos/check.c | for (i = 0 ; i < PTRS_PER_PAGE ; i++,page_dir++){ |
i | 45 | fs/umsdos/check.c | printk ("|%d:%08lx| ",i, page_dir->pgd); |
i | 177 | fs/umsdos/mangle.c | int i; |
i | 180 | fs/umsdos/mangle.c | for (i=0; i<=32; i++) lkp[i] = '#'; |
i | 181 | fs/umsdos/mangle.c | for (i=33; i<'A'; i++) lkp[i] = (char)i; |
i | 182 | fs/umsdos/mangle.c | for (i='A'; i<='Z'; i++) lkp[i] = (char)(i+('a'-'A')); |
i | 183 | fs/umsdos/mangle.c | for (i='Z'+1; i<127; i++) lkp[i] = (char)i; |
i | 184 | fs/umsdos/mangle.c | for (i=128; i<256; i++) lkp[i] = '#'; |
i | 286 | fs/umsdos/mangle.c | int i; |
i | 294 | fs/umsdos/mangle.c | for (i=0; i<msdos_len; i++, pt++) *pt = lkp[(unsigned char)(*pt)]; |
i | 357 | fs/umsdos/mangle.c | int i; |
i | 358 | fs/umsdos/mangle.c | for (i=start_ind_dev[base_len-1]; i<start_ind_dev[base_len]; i++){ |
i | 359 | fs/umsdos/mangle.c | if (memcmp(info->fake.fname,tbdev[i],base_len)==0){ |
i | 453 | fs/umsdos/mangle.c | int i,rold,rnew; |
i | 455 | fs/umsdos/mangle.c | for (i=0; i<sizeof(tb)/sizeof(tb[0]); i++){ |
i | 456 | fs/umsdos/mangle.c | struct MANG_TEST *pttb = tb+i; |
i | 471 | fs/umsdos/mangle.c | for (i=0; i<UMSDOS_MAXNAME ; i++){ |
i | 472 | fs/umsdos/mangle.c | rnew=umsdos_evalrecsize (i); |
i | 473 | fs/umsdos/mangle.c | rold=umsdos_evalrecsize_old (i); |
i | 474 | fs/umsdos/mangle.c | if (!(i%UMSDOS_REC_SIZE)){ |
i | 475 | fs/umsdos/mangle.c | printf ("\n%d:\t",i); |
i | 478 | fs/umsdos/mangle.c | printf ("**** %d newres: %d != %d \n", i, rnew, rold); |
i | 40 | fs/xiafs/bitmap.c | int end, i, j, tmp; |
i | 47 | fs/xiafs/bitmap.c | i=start_bit >> 5; |
i | 48 | fs/xiafs/bitmap.c | if ( (tmp=(~bmap[i]) & (0xffffffff << (start_bit & 31))) ) |
i | 50 | fs/xiafs/bitmap.c | while (++i < end) |
i | 51 | fs/xiafs/bitmap.c | if (~bmap[i]) { |
i | 52 | fs/xiafs/bitmap.c | tmp=~bmap[i]; |
i | 55 | fs/xiafs/bitmap.c | if ( !(tmp=~bmap[i] & ((1 << (end_bit & 31)) -1)) ) |
i | 61 | fs/xiafs/bitmap.c | if (set_bit(j,bmap+i)) { |
i | 62 | fs/xiafs/bitmap.c | start_bit=j + (i << 5) + 1; |
i | 66 | fs/xiafs/bitmap.c | return j + (i << 5); |
i | 71 | fs/xiafs/bitmap.c | register int i; |
i | 75 | fs/xiafs/bitmap.c | for (i= bh->b_size >> 2; i-- > 0; ) |
i | 83 | fs/xiafs/bitmap.c | int i; |
i | 87 | fs/xiafs/bitmap.c | for (i=pos; i > 0; i--) { |
i | 88 | fs/xiafs/bitmap.c | bmap[i]=bmap[i-1]; |
i | 89 | fs/xiafs/bitmap.c | bznr[i]=bznr[i-1]; |
i | 116 | fs/xiafs/bitmap.c | int z_nr, i; |
i | 126 | fs/xiafs/bitmap.c | for (i=0; i < slots; i++) |
i | 127 | fs/xiafs/bitmap.c | if (bznr[i]==z_nr) |
i | 129 | fs/xiafs/bitmap.c | if (i < slots) { /* cache hit */ |
i | 131 | fs/xiafs/bitmap.c | *not_que=i; |
i | 132 | fs/xiafs/bitmap.c | return bmap_buf[i]; |
i | 134 | fs/xiafs/bitmap.c | que(bmap_buf, bznr, i); |
i | 345 | fs/xiafs/bitmap.c | int i, tmp; |
i | 349 | fs/xiafs/bitmap.c | for (i=bh->b_size; i-- > 0; ) { |
i | 350 | fs/xiafs/bitmap.c | tmp=bh->b_data[i]; |
i | 359 | fs/xiafs/bitmap.c | int izones, i, not_que; |
i | 364 | fs/xiafs/bitmap.c | for (i=0; i < izones; i++) { |
i | 365 | fs/xiafs/bitmap.c | bh=get_imap_zone(sb, i << XIAFS_BITS_PER_Z_BITS(sb), ¬_que); |
i | 371 | fs/xiafs/bitmap.c | i=izones << XIAFS_BITS_PER_Z_BITS(sb); |
i | 372 | fs/xiafs/bitmap.c | return i - sum; |
i | 378 | fs/xiafs/bitmap.c | int zzones, i, not_que; |
i | 383 | fs/xiafs/bitmap.c | for (i=0; i < zzones; i++) { |
i | 384 | fs/xiafs/bitmap.c | bh=get_zmap_zone(sb, i << XIAFS_BITS_PER_Z_BITS(sb), ¬_que); |
i | 390 | fs/xiafs/bitmap.c | i=zzones << XIAFS_BITS_PER_Z_BITS(sb); |
i | 391 | fs/xiafs/bitmap.c | return i - sum; |
i | 75 | fs/xiafs/dir.c | u_int offset, i,ret; |
i | 91 | fs/xiafs/dir.c | for (i = 0; i < XIAFS_ZSIZE(inode->i_sb) && i < offset; ) { |
i | 92 | fs/xiafs/dir.c | de = (struct xiafs_direct *) (bh->b_data + i); |
i | 95 | fs/xiafs/dir.c | i += de->d_rec_len; |
i | 97 | fs/xiafs/dir.c | offset = i; |
i | 114 | fs/xiafs/dir.c | for (i = 0; i < de->d_name_len ; i++) |
i | 115 | fs/xiafs/dir.c | put_fs_byte(de->d_name[i],i+dirent->d_name); |
i | 116 | fs/xiafs/dir.c | put_fs_byte(0,i+dirent->d_name); |
i | 118 | fs/xiafs/dir.c | put_fs_word(i,&dirent->d_reclen); |
i | 123 | fs/xiafs/dir.c | ret = ROUND_UP(NAME_OFFSET(dirent)+i+1); |
i | 88 | fs/xiafs/fsync.c | int i; |
i | 91 | fs/xiafs/fsync.c | for (i = 0; i < 8; i++) { |
i | 92 | fs/xiafs/fsync.c | rc = sync_block (inode, inode->u.ext_i.i_data + i, wait); |
i | 103 | fs/xiafs/fsync.c | int i; |
i | 111 | fs/xiafs/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 113 | fs/xiafs/fsync.c | ((unsigned long *) ind_bh->b_data) + i, |
i | 127 | fs/xiafs/fsync.c | int i; |
i | 135 | fs/xiafs/fsync.c | for (i = 0; i < addr_per_block; i++) { |
i | 137 | fs/xiafs/fsync.c | ((unsigned long *) dind_bh->b_data) + i, |
i | 45 | fs/xiafs/inode.c | int i; |
i | 49 | fs/xiafs/inode.c | for(i = 0 ; i < _XIAFS_IMAP_SLOTS ; i++) |
i | 50 | fs/xiafs/inode.c | brelse(sb->u.xiafs_sb.s_imap_buf[i]); |
i | 51 | fs/xiafs/inode.c | for(i = 0 ; i < _XIAFS_ZMAP_SLOTS ; i++) |
i | 52 | fs/xiafs/inode.c | brelse(sb->u.xiafs_sb.s_zmap_buf[i]); |
i | 73 | fs/xiafs/inode.c | int i, z, dev; |
i | 123 | fs/xiafs/inode.c | for (i=0;i < _XIAFS_IMAP_SLOTS;i++) { |
i | 124 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_buf[i] = NULL; |
i | 125 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_iznr[i] = -1; |
i | 127 | fs/xiafs/inode.c | for (i=0;i < _XIAFS_ZMAP_SLOTS;i++) { |
i | 128 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_buf[i] = NULL; |
i | 129 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_zznr[i] = -1; |
i | 136 | fs/xiafs/inode.c | for (i=0 ; i < s->u.xiafs_sb.s_imap_zones ; i++) { |
i | 137 | fs/xiafs/inode.c | if (!(s->u.xiafs_sb.s_imap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s)))) |
i | 139 | fs/xiafs/inode.c | s->u.xiafs_sb.s_imap_iznr[i]=i; |
i | 146 | fs/xiafs/inode.c | for (i=0 ; i < s->u.xiafs_sb.s_zmap_zones ; i++) { |
i | 147 | fs/xiafs/inode.c | if (!(s->u.xiafs_sb.s_zmap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s)))) |
i | 149 | fs/xiafs/inode.c | s->u.xiafs_sb.s_zmap_zznr[i]=i; |
i | 163 | fs/xiafs/inode.c | for(i=0; i < _XIAFS_IMAP_SLOTS; i++) |
i | 164 | fs/xiafs/inode.c | brelse(s->u.xiafs_sb.s_imap_buf[i]); |
i | 165 | fs/xiafs/inode.c | for(i=0; i < _XIAFS_ZMAP_SLOTS; i++) |
i | 166 | fs/xiafs/inode.c | brelse(s->u.xiafs_sb.s_zmap_buf[i]); |
i | 203 | fs/xiafs/inode.c | int i; |
i | 221 | fs/xiafs/inode.c | i = inode->u.xiafs_i.i_ind_zone; |
i | 222 | fs/xiafs/inode.c | if (i) |
i | 223 | fs/xiafs/inode.c | i = zone_bmap(bread(inode->i_dev, i, XIAFS_ZSIZE(inode->i_sb)), zone); |
i | 224 | fs/xiafs/inode.c | return i; |
i | 227 | fs/xiafs/inode.c | i = inode->u.xiafs_i.i_dind_zone; |
i | 228 | fs/xiafs/inode.c | if (i) |
i | 229 | fs/xiafs/inode.c | i = zone_bmap(bread(inode->i_dev, i, XIAFS_ZSIZE(inode->i_sb)), |
i | 231 | fs/xiafs/inode.c | if (i) |
i | 232 | fs/xiafs/inode.c | i= zone_bmap(bread(inode->i_dev,i, XIAFS_ZSIZE(inode->i_sb)), |
i | 234 | fs/xiafs/inode.c | return i; |
i | 37 | fs/xiafs/namei.c | int i; |
i | 46 | fs/xiafs/namei.c | for (i=0; i < len; i++) |
i | 47 | fs/xiafs/namei.c | if (*name++ != dep->d_name[i]) |
i | 64 | fs/xiafs/namei.c | int i, zones, pos; |
i | 79 | fs/xiafs/namei.c | for (i=0; i < zones; i++ ) { |
i | 80 | fs/xiafs/namei.c | bh = xiafs_bread(inode, i, 0); |
i | 84 | fs/xiafs/namei.c | if (!i && (dep->d_rec_len != 12 || !dep->d_ino || |
i | 161 | fs/xiafs/namei.c | int i, pos, offset; |
i | 210 | fs/xiafs/namei.c | i=RNDUP4(de->d_name_len)+8; |
i | 212 | fs/xiafs/namei.c | de=(struct xiafs_direct *)(i+(u_char *)de_pre); |
i | 214 | fs/xiafs/namei.c | de->d_rec_len=de_pre->d_rec_len-i; |
i | 215 | fs/xiafs/namei.c | de_pre->d_rec_len=i; |
i | 411 | fs/xiafs/namei.c | int i, zones, offset; |
i | 421 | fs/xiafs/namei.c | for (i=0; i < zones; i++) { |
i | 422 | fs/xiafs/namei.c | bh = xiafs_bread(inode, i, 0); |
i | 423 | fs/xiafs/namei.c | if (!i) { |
i | 594 | fs/xiafs/namei.c | int i; |
i | 617 | fs/xiafs/namei.c | for (i = 0; i < BLOCK_SIZE-1 && (c=*symname++); i++) |
i | 618 | fs/xiafs/namei.c | name_block->b_data[i] = c; |
i | 619 | fs/xiafs/namei.c | name_block->b_data[i] = 0; |
i | 622 | fs/xiafs/namei.c | inode->i_size = i; |
i | 54 | fs/xiafs/symlink.c | int i; |
i | 71 | fs/xiafs/symlink.c | for (i=0; i < buflen && (c=bh->b_data[i]); i++) |
i | 73 | fs/xiafs/symlink.c | if (i < buflen-1) |
i | 76 | fs/xiafs/symlink.c | return i; |
i | 46 | fs/xiafs/truncate.c | int i, tmp; |
i | 50 | fs/xiafs/truncate.c | for (i = DT_ZONE ; i < 8 ; i++) { |
i | 51 | fs/xiafs/truncate.c | if (i < DT_ZONE) |
i | 53 | fs/xiafs/truncate.c | lp=i + inode->u.xiafs_i.i_zone; |
i | 57 | fs/xiafs/truncate.c | if (i < DT_ZONE) { |
i | 80 | fs/xiafs/truncate.c | int i, tmp; |
i | 96 | fs/xiafs/truncate.c | for (i = INDT_ZONE<0?0:INDT_ZONE; i < XIAFS_ADDRS_PER_Z(inode->i_sb); i++) { |
i | 97 | fs/xiafs/truncate.c | if (i < INDT_ZONE) |
i | 99 | fs/xiafs/truncate.c | indp = i+(u_long *) ind_bh->b_data; |
i | 103 | fs/xiafs/truncate.c | if (i < INDT_ZONE) { |
i | 118 | fs/xiafs/truncate.c | for (i = 0; i < XIAFS_ADDRS_PER_Z(inode->i_sb) && !(*indp++); i++) ; |
i | 119 | fs/xiafs/truncate.c | if (i >= XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i | 139 | fs/xiafs/truncate.c | int i, tmp; |
i | 157 | fs/xiafs/truncate.c | for (i=DINDT_ZONE<0?0:DINDT_ZONE ; i < XIAFS_ADDRS_PER_Z(inode->i_sb) ; i ++) { |
i | 158 | fs/xiafs/truncate.c | if (i < DINDT_ZONE) |
i | 160 | fs/xiafs/truncate.c | dindp = i+(u_long *) dind_bh->b_data; |
i | 162 | fs/xiafs/truncate.c | 8+((1+i)<<XIAFS_ADDRS_PER_Z_BITS(inode->i_sb)), |
i | 167 | fs/xiafs/truncate.c | for (i = 0; i < XIAFS_ADDRS_PER_Z(inode->i_sb) && !(*dindp++); i++); |
i | 168 | fs/xiafs/truncate.c | if (i >= XIAFS_ADDRS_PER_Z(inode->i_sb)) { |
i | 131 | include/asm-alpha/unistd.h | long retval, i; |
i | 135 | include/asm-alpha/unistd.h | for (i = 0; i < 1000000000; i++); |
i | 62 | include/asm-i386/io.h | #define __IN(s,s1,i...) \ |
i | 63 | include/asm-i386/io.h | __IN1(s) __IN2(s,s1,"w") : "=a" (_v) : "d" (port) ,##i ); return _v; } \ |
i | 64 | include/asm-i386/io.h | __IN1(s##c) __IN2(s,s1,"") : "=a" (_v) : "i" (port) ,##i ); return _v; } \ |
i | 65 | include/asm-i386/io.h | __IN1(s##_p) __IN2(s,s1,"w") : "=a" (_v) : "d" (port) ,##i ); SLOW_DOWN_IO; return _v; } \ |
i | 66 | include/asm-i386/io.h | __IN1(s##c_p) __IN2(s,s1,"") : "=a" (_v) : "i" (port) ,##i ); SLOW_DOWN_IO; return _v; } |
i | 94 | include/asm-mips/io.h | #define __INS(m,s,i) \ |
i | 97 | include/asm-mips/io.h | : "0" (addr), "1" (count), "i" (0), "r" (PORT_BASE+port), "I" (i) \ |
i | 101 | include/asm-mips/io.h | : "0" (addr), "1" (count), "i" (port), "r" (PORT_BASE), "I" (i) \ |
i | 119 | include/asm-mips/io.h | #define __OUTS(m,s,i) \ |
i | 122 | include/asm-mips/io.h | : "0" (addr), "1" (count), "i" (0), "r" (PORT_BASE+port), "I" (i) \ |
i | 126 | include/asm-mips/io.h | : "0" (addr), "1" (count), "i" (port), "r" (PORT_BASE), "I" (i) \ |
i | 43 | include/linux/msdos_fs.h | #define MSDOS_I(i) (&((i)->u.msdos_i)) |
i | 118 | init/main.c | int i=1; |
i | 120 | init/main.c | while (cur && isdigit(*cur) && i <= 10) { |
i | 121 | init/main.c | ints[i++] = simple_strtoul(cur,NULL,0); |
i | 125 | init/main.c | ints[0] = i-1; |
i | 220 | init/main.c | int i = 0; |
i | 223 | init/main.c | while (bootsetups[i].str) { |
i | 224 | init/main.c | int n = strlen(bootsetups[i].str); |
i | 225 | init/main.c | if (!strncmp(line,bootsetups[i].str,n)) { |
i | 226 | init/main.c | bootsetups[i].setup_func(get_options(line+n,ints), ints); |
i | 229 | init/main.c | i++; |
i | 410 | init/main.c | int i; |
i | 413 | init/main.c | write(1,printbuf,i=vsprintf(printbuf, fmt, args)); |
i | 415 | init/main.c | return i; |
i | 420 | init/main.c | int pid,i; |
i | 457 | init/main.c | while (pid != wait(&i)) |
i | 473 | init/main.c | if (pid == wait(&i)) |
i | 475 | init/main.c | printf("\n\rchild %d died with code %04x\n\r",pid,i); |
i | 57 | ipc/sem.c | int i; |
i | 61 | ipc/sem.c | for (i = 0; i < SEMMNI; i++) |
i | 62 | ipc/sem.c | semary[i] = (struct semid_ds *) IPC_UNUSED; |
i | 180 | ipc/sem.c | int i = 0; |
i | 182 | ipc/sem.c | while (i < nsops) { |
i | 183 | ipc/sem.c | struct sembuf * sop = &sops[i]; |
i | 196 | ipc/sem.c | i++; |
i | 206 | ipc/sem.c | while (--i >= 0) { |
i | 207 | ipc/sem.c | struct sembuf * sop = &sops[i]; |
i | 219 | ipc/sem.c | int i; |
i | 221 | ipc/sem.c | for (i = 0; i < nsops; i++) { |
i | 222 | ipc/sem.c | struct sembuf * sop = &sops[i]; |
i | 300 | ipc/sem.c | int i; |
i | 301 | ipc/sem.c | for (i = 0; i < nsops; i++) |
i | 302 | ipc/sem.c | if (sops[i].sem_num == semnum |
i | 303 | ipc/sem.c | && (sops[i].sem_op < 0) |
i | 304 | ipc/sem.c | && !(sops[i].sem_flg & IPC_NOWAIT)) |
i | 318 | ipc/sem.c | int i; |
i | 319 | ipc/sem.c | for (i = 0; i < nsops; i++) |
i | 320 | ipc/sem.c | if (sops[i].sem_num == semnum |
i | 321 | ipc/sem.c | && (sops[i].sem_op == 0) |
i | 322 | ipc/sem.c | && !(sops[i].sem_flg & IPC_NOWAIT)) |
i | 364 | ipc/sem.c | int i, id, val = 0; |
i | 395 | ipc/sem.c | i = verify_area(VERIFY_WRITE, tmp, sizeof(struct seminfo)); |
i | 396 | ipc/sem.c | if (i) |
i | 397 | ipc/sem.c | return i; |
i | 404 | ipc/sem.c | i = verify_area (VERIFY_WRITE, buf, sizeof (*buf)); |
i | 405 | ipc/sem.c | if (i) |
i | 406 | ipc/sem.c | return i; |
i | 459 | ipc/sem.c | i = verify_area (VERIFY_WRITE, array, nsems*sizeof(ushort)); |
i | 460 | ipc/sem.c | if (i) |
i | 461 | ipc/sem.c | return i; |
i | 477 | ipc/sem.c | if ((i = verify_area (VERIFY_READ, array, nsems*sizeof(ushort)))) |
i | 478 | ipc/sem.c | return i; |
i | 480 | ipc/sem.c | for (i = 0; i < nsems; i++) |
i | 481 | ipc/sem.c | if (sem_io[i] > SEMVMX) |
i | 486 | ipc/sem.c | if ((i = verify_area (VERIFY_WRITE, buf, sizeof(*buf)))) |
i | 487 | ipc/sem.c | return i; |
i | 491 | ipc/sem.c | if ((i = verify_area (VERIFY_READ, buf, sizeof (*buf)))) |
i | 492 | ipc/sem.c | return i; |
i | 506 | ipc/sem.c | for (i = 0; i < sma->sem_nsems; i++) |
i | 507 | ipc/sem.c | sem_io[i] = sma->sem_base[i].semval; |
i | 542 | ipc/sem.c | for (i = 0; i < nsems; i++) |
i | 543 | ipc/sem.c | sma->sem_base[i].semval = sem_io[i]; |
i | 545 | ipc/sem.c | for (i = 0; i < nsems; i++) |
i | 546 | ipc/sem.c | un->semadj[i] = 0; |
i | 559 | ipc/sem.c | int i, id, size, error; |
i | 571 | ipc/sem.c | if ((i = verify_area (VERIFY_READ, tsops, nsops * sizeof(*tsops)))) |
i | 572 | ipc/sem.c | return i; |
i | 579 | ipc/sem.c | for (i = 0; i < nsops; i++) { |
i | 580 | ipc/sem.c | sop = &sops[i]; |
i | 668 | ipc/sem.c | int nsems, i; |
i | 698 | ipc/sem.c | for (i = 0; i < nsems; i++) { |
i | 699 | ipc/sem.c | struct sem * sem = &sma->sem_base[i]; |
i | 700 | ipc/sem.c | sem->semval += u->semadj[i]; |
i | 78 | ipc/shm.c | int id, i; |
i | 109 | ipc/shm.c | for (i = 0; i < numpages; shp->shm_pages[i++] = 0); |
i | 166 | ipc/shm.c | int i, numpages; |
i | 184 | ipc/shm.c | for (i = 0; i < numpages ; i++) { |
i | 186 | ipc/shm.c | pte_val(pte) = shp->shm_pages[i]; |
i | 59 | kernel/dma.c | int i, len = 0; |
i | 61 | kernel/dma.c | for (i = 0 ; i < MAX_DMA_CHANNELS ; i++) { |
i | 62 | kernel/dma.c | if (dma_chan_busy[i].lock) { |
i | 64 | kernel/dma.c | i, |
i | 65 | kernel/dma.c | dma_chan_busy[i].device_id); |
i | 84 | kernel/exit.c | int i; |
i | 92 | kernel/exit.c | for (i=1 ; i<NR_TASKS ; i++) |
i | 93 | kernel/exit.c | if (task[i] == p) { |
i | 94 | kernel/exit.c | task[i] = NULL; |
i | 112 | kernel/exit.c | int i; |
i | 116 | kernel/exit.c | for (i=0 ; i<NR_TASKS ; i++) |
i | 117 | kernel/exit.c | if (task[i] == p) |
i | 133 | kernel/exit.c | int i; |
i | 135 | kernel/exit.c | for (i=1 ; i<NR_TASKS ; i++) { |
i | 136 | kernel/exit.c | if (!task[i]) |
i | 138 | kernel/exit.c | if (bad_task_ptr(task[i]->p_pptr)) |
i | 140 | kernel/exit.c | task[i]->pid); |
i | 141 | kernel/exit.c | if (bad_task_ptr(task[i]->p_cptr)) |
i | 143 | kernel/exit.c | task[i]->pid); |
i | 144 | kernel/exit.c | if (bad_task_ptr(task[i]->p_ysptr)) |
i | 146 | kernel/exit.c | task[i]->pid); |
i | 147 | kernel/exit.c | if (bad_task_ptr(task[i]->p_osptr)) |
i | 149 | kernel/exit.c | task[i]->pid); |
i | 150 | kernel/exit.c | if (task[i]->p_pptr == task[i]) |
i | 152 | kernel/exit.c | task[i]->pid); |
i | 153 | kernel/exit.c | if (task[i]->p_cptr == task[i]) |
i | 155 | kernel/exit.c | task[i]->pid); |
i | 156 | kernel/exit.c | if (task[i]->p_ysptr == task[i]) |
i | 158 | kernel/exit.c | task[i]->pid); |
i | 159 | kernel/exit.c | if (task[i]->p_osptr == task[i]) |
i | 161 | kernel/exit.c | task[i]->pid); |
i | 162 | kernel/exit.c | if (task[i]->p_osptr) { |
i | 163 | kernel/exit.c | if (task[i]->p_pptr != task[i]->p_osptr->p_pptr) |
i | 166 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid, |
i | 167 | kernel/exit.c | task[i]->p_osptr->p_pptr->pid); |
i | 168 | kernel/exit.c | if (task[i]->p_osptr->p_ysptr != task[i]) |
i | 171 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid); |
i | 173 | kernel/exit.c | if (task[i]->p_ysptr) { |
i | 174 | kernel/exit.c | if (task[i]->p_pptr != task[i]->p_ysptr->p_pptr) |
i | 177 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid, |
i | 178 | kernel/exit.c | task[i]->p_osptr->p_pptr->pid); |
i | 179 | kernel/exit.c | if (task[i]->p_ysptr->p_osptr != task[i]) |
i | 182 | kernel/exit.c | task[i]->pid, task[i]->p_ysptr->pid); |
i | 184 | kernel/exit.c | if (task[i]->p_cptr) { |
i | 185 | kernel/exit.c | if (task[i]->p_cptr->p_pptr != task[i]) |
i | 188 | kernel/exit.c | task[i]->pid, task[i]->p_cptr->pid); |
i | 189 | kernel/exit.c | if (task[i]->p_cptr->p_ysptr) |
i | 192 | kernel/exit.c | task[i]->pid, task[i]->p_cptr->pid); |
i | 359 | kernel/exit.c | int i; |
i | 361 | kernel/exit.c | for (i=0 ; i<NR_OPEN ; i++) |
i | 362 | kernel/exit.c | if (current->files->fd[i]) |
i | 363 | kernel/exit.c | sys_close(i); |
i | 32 | kernel/fork.c | int i, tasks_free; |
i | 41 | kernel/fork.c | i = NR_TASKS; |
i | 42 | kernel/fork.c | while (--i > 0) { |
i | 43 | kernel/fork.c | if (!task[i]) { |
i | 44 | kernel/fork.c | free_task = i; |
i | 48 | kernel/fork.c | if (task[i]->uid == current->uid) |
i | 50 | kernel/fork.c | if (task[i]->pid == last_pid || task[i]->pgrp == last_pid || |
i | 51 | kernel/fork.c | task[i]->session == last_pid) |
i | 119 | kernel/fork.c | int i; |
i | 123 | kernel/fork.c | for (i=0; i<NR_OPEN;i++) |
i | 124 | kernel/fork.c | if ((f = p->files->fd[i]) != NULL) |
i | 125 | kernel/fork.c | p->files->fd[i] = copy_fd(f); |
i | 127 | kernel/fork.c | for (i=0; i<NR_OPEN;i++) |
i | 128 | kernel/fork.c | if ((f = p->files->fd[i]) != NULL) |
i | 76 | kernel/itimer.c | register unsigned long i, j; |
i | 79 | kernel/itimer.c | i = tvtojiffies(&value->it_interval); |
i | 91 | kernel/itimer.c | current->it_real_incr = i; |
i | 97 | kernel/itimer.c | current->it_virt_incr = i; |
i | 103 | kernel/itimer.c | current->it_prof_incr = i; |
i | 62 | kernel/module.c | int i; |
i | 64 | kernel/module.c | for (i = 0, sym = symbol_table.symbol; sym->name; ++sym, ++i) |
i | 66 | kernel/module.c | symbol_table.n_symbols = i; |
i | 77 | kernel/module.c | int i = 0; /* keep gcc silent */ |
i | 81 | kernel/module.c | for (i = module_list->symtab->n_symbols; i > 0; ++sym, --i) { |
i | 231 | kernel/module.c | int i; |
i | 261 | kernel/module.c | for (sym = &(newtab->symbol[0]), i = 0; |
i | 262 | kernel/module.c | i < newtab->n_symbols; ++sym, ++i) { |
i | 281 | kernel/module.c | for (ref = (struct module_ref *)sym, i = 0; |
i | 282 | kernel/module.c | i < newtab->n_refs; ++ref, ++i) { |
i | 365 | kernel/module.c | int i; |
i | 381 | kernel/module.c | if ((i = verify_area(VERIFY_WRITE, to, nmodsyms * sizeof(*table)))) |
i | 382 | kernel/module.c | return i; |
i | 394 | kernel/module.c | for (i = mp->symtab->n_symbols, |
i | 396 | kernel/module.c | i > 0; --i, ++from, ++to) { |
i | 417 | kernel/module.c | int i; |
i | 419 | kernel/module.c | i = 0; |
i | 420 | kernel/module.c | for (i = 0 ; (buf[i] = get_fs_byte(user_name + i)) != '\0' ; ) { |
i | 421 | kernel/module.c | if (++i >= MOD_MAX_NAME) |
i | 513 | kernel/module.c | int i; |
i | 524 | kernel/module.c | i = 20; |
i | 527 | kernel/module.c | i--; |
i | 530 | kernel/module.c | i -= strlen(size); |
i | 531 | kernel/module.c | if (i <= 0) |
i | 532 | kernel/module.c | i = 1; |
i | 533 | kernel/module.c | while (--i >= 0) |
i | 574 | kernel/module.c | int i; |
i | 580 | kernel/module.c | for (i = mp->symtab->n_symbols, |
i | 582 | kernel/module.c | i > 0; --i, ++sym) { |
i | 57 | kernel/printk.c | unsigned long i, j, count; |
i | 85 | kernel/printk.c | i = 0; |
i | 86 | kernel/printk.c | while (log_size && i < len) { |
i | 94 | kernel/printk.c | i++; |
i | 98 | kernel/printk.c | return i; |
i | 116 | kernel/printk.c | for (i = 0; i < count; i++) { |
i | 122 | kernel/printk.c | return i; |
i | 145 | kernel/printk.c | int i; |
i | 153 | kernel/printk.c | i = vsprintf(buf + 3, fmt, args); /* hopefully i < sizeof(buf)-4 */ |
i | 154 | kernel/printk.c | buf_end = buf + 3 + i; |
i | 196 | kernel/printk.c | return i; |
i | 207 | kernel/printk.c | int i,j; |
i | 215 | kernel/printk.c | for (i=0,j=0; i < log_size; i++) { |
i | 218 | kernel/printk.c | if (buf[j-1] != '\n' && i < log_size - 1 && j < sizeof(buf)-1) |
i | 75 | kernel/resource.c | int i; |
i | 77 | kernel/resource.c | for (i = 0; i < IOTABLE_SIZE; i++) |
i | 78 | kernel/resource.c | if (iotable[i].num == 0) |
i | 80 | kernel/resource.c | if (i == IOTABLE_SIZE) |
i | 86 | kernel/resource.c | iotable[i].name = name; |
i | 87 | kernel/resource.c | iotable[i].from = from; |
i | 88 | kernel/resource.c | iotable[i].num = num; |
i | 89 | kernel/resource.c | iotable[i].next = p->next; |
i | 90 | kernel/resource.c | p->next = &iotable[i]; |
i | 134 | kernel/resource.c | int i; |
i | 136 | kernel/resource.c | for (i = 1; i < ints[0]; i += 2) |
i | 137 | kernel/resource.c | request_region(ints[i], ints[i+1], "reserved"); |
i | 757 | kernel/sched.c | int i; |
i | 761 | kernel/sched.c | for (i=0 ; i<NR_TASKS ; i++) |
i | 762 | kernel/sched.c | if (task[i]) |
i | 763 | kernel/sched.c | show_task(i,task[i]); |
i | 529 | kernel/sys.c | int i; |
i | 532 | kernel/sys.c | i = verify_area(VERIFY_WRITE, grouplist, sizeof(gid_t) * gidsetsize); |
i | 533 | kernel/sys.c | if (i) |
i | 534 | kernel/sys.c | return i; |
i | 536 | kernel/sys.c | for (i = 0 ; (i < NGROUPS) && (current->groups[i] != NOGROUP) ; i++) { |
i | 539 | kernel/sys.c | if (i >= gidsetsize) |
i | 541 | kernel/sys.c | put_fs_word(current->groups[i], (short *) grouplist); |
i | 544 | kernel/sys.c | return(i); |
i | 549 | kernel/sys.c | int i; |
i | 555 | kernel/sys.c | for (i = 0; i < gidsetsize; i++, grouplist++) { |
i | 556 | kernel/sys.c | current->groups[i] = get_fs_word((unsigned short *) grouplist); |
i | 558 | kernel/sys.c | if (i < NGROUPS) |
i | 559 | kernel/sys.c | current->groups[i] = NOGROUP; |
i | 565 | kernel/sys.c | int i; |
i | 570 | kernel/sys.c | for (i = 0; i < NGROUPS; i++) { |
i | 571 | kernel/sys.c | if (current->groups[i] == NOGROUP) |
i | 573 | kernel/sys.c | if (current->groups[i] == grp) |
i | 638 | kernel/sys.c | int i; |
i | 644 | kernel/sys.c | for (i=0; i < len; i++) { |
i | 645 | kernel/sys.c | if ((system_utsname.nodename[i] = get_fs_byte(name+i)) == 0) |
i | 648 | kernel/sys.c | system_utsname.nodename[i] = 0; |
i | 658 | kernel/sys.c | int i; |
i | 664 | kernel/sys.c | for (i=0; i < len; i++) { |
i | 665 | kernel/sys.c | if ((system_utsname.domainname[i] = get_fs_byte(name+i)) == 0) |
i | 668 | kernel/sys.c | system_utsname.domainname[i] = 0; |
i | 64 | kernel/time.c | int i; |
i | 72 | kernel/time.c | for (i = 0 ; i < 1000000 ; i++) /* may take up to 1 second... */ |
i | 75 | kernel/time.c | for (i = 0 ; i < 1000000 ; i++) /* must try at least 2.228 ms*/ |
i | 108 | kernel/time.c | int i, error; |
i | 110 | kernel/time.c | i = CURRENT_TIME; |
i | 115 | kernel/time.c | put_fs_long(i,(unsigned long *)tloc); |
i | 117 | kernel/time.c | return i; |
i | 47 | lib/vsprintf.c | int i=0; |
i | 50 | lib/vsprintf.c | i = i*10 + *((*s)++) - '0'; |
i | 51 | lib/vsprintf.c | return i; |
i | 73 | lib/vsprintf.c | int i; |
i | 102 | lib/vsprintf.c | i = 0; |
i | 104 | lib/vsprintf.c | tmp[i++]='0'; |
i | 106 | lib/vsprintf.c | tmp[i++] = digits[do_div(num,base)]; |
i | 107 | lib/vsprintf.c | if (i > precision) |
i | 108 | lib/vsprintf.c | precision = i; |
i | 125 | lib/vsprintf.c | while (i < precision--) |
i | 127 | lib/vsprintf.c | while (i-- > 0) |
i | 128 | lib/vsprintf.c | *str++ = tmp[i]; |
i | 138 | lib/vsprintf.c | int i, base; |
i | 226 | lib/vsprintf.c | for (i = 0; i < len; ++i) |
i | 299 | lib/vsprintf.c | int i; |
i | 302 | lib/vsprintf.c | i=vsprintf(buf,fmt,args); |
i | 304 | lib/vsprintf.c | return i; |
i | 38 | mm/filemap.c | int i, *p; |
i | 43 | mm/filemap.c | i = PAGE_SIZE >> inode->i_sb->s_blocksize_bits; |
i | 47 | mm/filemap.c | i--; |
i | 50 | mm/filemap.c | } while (i > 0); |
i | 167 | mm/kmalloc.c | int order,tries,i,sz; |
i | 254 | mm/kmalloc.c | for (i=NBLOCKS(order),p=BH (page+1);i > 1;i--,p=p->bh_next) |
i | 153 | mm/memory.c | int i; |
i | 172 | mm/memory.c | for (i = USER_PTRS_PER_PGD ; i < PTRS_PER_PGD ; i++) |
i | 173 | mm/memory.c | new_pg[i] = page_dir[i]; |
i | 178 | mm/memory.c | for (i = 0 ; i < USER_PTRS_PER_PGD ; i++) |
i | 179 | mm/memory.c | free_one_pgd(page_dir + i); |
i | 189 | mm/memory.c | int i; |
i | 208 | mm/memory.c | for (i = 0 ; i < PTRS_PER_PGD ; i++) |
i | 209 | mm/memory.c | free_one_pgd(page_dir + i); |
i | 321 | mm/memory.c | int i; |
i | 330 | mm/memory.c | for (i = 0 ; i < PTRS_PER_PGD ; i++) { |
i | 142 | mm/swap.c | int i; |
i | 160 | mm/swap.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j += 512){ |
i | 161 | mm/swap.c | if (!(zones[i] = swapf->i_op->smap(swapf,block++))) { |
i | 171 | mm/swap.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j +=swapf->i_sb->s_blocksize) |
i | 172 | mm/swap.c | if (!(zones[i] = bmap(swapf,block++))) { |
i | 177 | mm/swap.c | ll_rw_swap_file(rw,swapf->i_dev, zones, i,buf); |
i | 587 | mm/swap.c | int i=6; |
i | 592 | mm/swap.c | if (priority != GFP_NOBUFFER && shrink_buffers(i)) |
i | 596 | mm/swap.c | if (shm_swap(i)) |
i | 600 | mm/swap.c | if (swap_out(i)) |
i | 603 | mm/swap.c | } while(--i); |
i | 982 | mm/swap.c | int i; |
i | 986 | mm/swap.c | i = namei(specialfile,&inode); |
i | 987 | mm/swap.c | if (i) |
i | 988 | mm/swap.c | return i; |
i | 1009 | mm/swap.c | i = try_to_unuse(type); |
i | 1010 | mm/swap.c | if (i) { |
i | 1013 | mm/swap.c | return i; |
i | 1051 | mm/swap.c | int i,j; |
i | 1097 | mm/swap.c | for (i = 0 ; i < nr_swapfiles ; i++) { |
i | 1098 | mm/swap.c | if (i == type) |
i | 1100 | mm/swap.c | if (p->swap_device == swap_info[i].swap_device) |
i | 1121 | mm/swap.c | for (i = 1 ; i < 8*PAGE_SIZE ; i++) { |
i | 1122 | mm/swap.c | if (test_bit(i,p->swap_lockmap)) { |
i | 1124 | mm/swap.c | p->lowest_bit = i; |
i | 1125 | mm/swap.c | p->highest_bit = i; |
i | 1126 | mm/swap.c | p->max = i+1; |
i | 1140 | mm/swap.c | for (i = 1 ; i < p->max ; i++) { |
i | 1141 | mm/swap.c | if (test_bit(i,p->swap_lockmap)) |
i | 1142 | mm/swap.c | p->swap_map[i] = 0; |
i | 1144 | mm/swap.c | p->swap_map[i] = 0x80; |
i | 1170 | mm/swap.c | unsigned int i, j; |
i | 1173 | mm/swap.c | for (i = 0; i < nr_swapfiles; i++) { |
i | 1174 | mm/swap.c | if ((swap_info[i].flags & SWP_WRITEOK) != SWP_WRITEOK) |
i | 1176 | mm/swap.c | for (j = 0; j < swap_info[i].max; ++j) |
i | 1177 | mm/swap.c | switch (swap_info[i].swap_map[j]) { |
i | 1201 | mm/swap.c | int i; |
i | 1207 | mm/swap.c | i = (end_mem - PAGE_OFFSET) >> (PAGE_SHIFT+6); |
i | 1208 | mm/swap.c | if (i < 16) |
i | 1209 | mm/swap.c | i = 16; |
i | 1210 | mm/swap.c | min_free_pages = i; |
i | 1218 | mm/swap.c | for (i = 0 ; i < NR_MEM_LISTS ; i++) { |
i | 1220 | mm/swap.c | free_area_list[i].prev = free_area_list[i].next = &free_area_list[i]; |
i | 1223 | mm/swap.c | bitmap_size = (end_mem - PAGE_OFFSET) >> (PAGE_SHIFT + i); |
i | 1226 | mm/swap.c | free_area_map[i] = (unsigned char *) start_mem; |
i | 112 | net/inet/af_inet.c | int i, j; |
i | 125 | net/inet/af_inet.c | for(i=0; i < SOCK_ARRAY_SIZE; i++) |
i | 128 | net/inet/af_inet.c | sk = prot->sock_array[(i+base+1) &(SOCK_ARRAY_SIZE -1)]; |
i | 136 | net/inet/af_inet.c | start =(i+1+start )%1024; |
i | 137 | net/inet/af_inet.c | return(i+base+1); |
i | 141 | net/inet/af_inet.c | best = i; |
i | 1517 | net/inet/af_inet.c | int i; |
i | 1534 | net/inet/af_inet.c | for(i = 0; i < SOCK_ARRAY_SIZE; i++) |
i | 1536 | net/inet/af_inet.c | tcp_prot.sock_array[i] = NULL; |
i | 1537 | net/inet/af_inet.c | udp_prot.sock_array[i] = NULL; |
i | 1538 | net/inet/af_inet.c | raw_prot.sock_array[i] = NULL; |
i | 196 | net/inet/arp.c | int i; |
i | 202 | net/inet/arp.c | for (i = 0; i < FULL_ARP_TABLE_SIZE; i++) |
i | 205 | net/inet/arp.c | struct arp_table **pentry = &arp_tables[i]; |
i | 263 | net/inet/arp.c | int i; |
i | 274 | net/inet/arp.c | for (i = 0; i < FULL_ARP_TABLE_SIZE; i++) |
i | 277 | net/inet/arp.c | struct arp_table **pentry = &arp_tables[i]; |
i | 952 | net/inet/arp.c | int i,j,k; |
i | 961 | net/inet/arp.c | for(i=0; i<FULL_ARP_TABLE_SIZE; i++) |
i | 963 | net/inet/arp.c | for(entry=arp_tables[i]; entry!=NULL; entry=entry->next) |
i | 771 | net/inet/dev.c | int i; |
i | 780 | net/inet/dev.c | for(i = 0;i < DEV_NUMBUFFS; i++) |
i | 788 | net/inet/dev.c | while((skb=skb_dequeue(&dev->buffs[i]))!=NULL) |
i | 799 | net/inet/dev.c | dev_queue_xmit(skb,dev,-i - 1); |
i | 225 | net/inet/igmp.c | struct ip_mc_list *i; |
i | 226 | net/inet/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=i->next) |
i | 228 | net/inet/igmp.c | if(i->multiaddr==addr) |
i | 230 | net/inet/igmp.c | i->users++; |
i | 234 | net/inet/igmp.c | i=(struct ip_mc_list *)kmalloc(sizeof(*i), GFP_KERNEL); |
i | 235 | net/inet/igmp.c | if(!i) |
i | 237 | net/inet/igmp.c | i->users=1; |
i | 238 | net/inet/igmp.c | i->interface=dev; |
i | 239 | net/inet/igmp.c | i->multiaddr=addr; |
i | 240 | net/inet/igmp.c | i->next=dev->ip_mc_list; |
i | 241 | net/inet/igmp.c | igmp_group_added(i); |
i | 242 | net/inet/igmp.c | dev->ip_mc_list=i; |
i | 251 | net/inet/igmp.c | struct ip_mc_list **i; |
i | 252 | net/inet/igmp.c | for(i=&(dev->ip_mc_list);(*i)!=NULL;i=&(*i)->next) |
i | 254 | net/inet/igmp.c | if((*i)->multiaddr==addr) |
i | 256 | net/inet/igmp.c | if(--((*i)->users)) |
i | 260 | net/inet/igmp.c | struct ip_mc_list *tmp= *i; |
i | 262 | net/inet/igmp.c | *i=(*i)->next; |
i | 275 | net/inet/igmp.c | struct ip_mc_list *i; |
i | 277 | net/inet/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=j) |
i | 279 | net/inet/igmp.c | j=i->next; |
i | 280 | net/inet/igmp.c | kfree_s(i,sizeof(*i)); |
i | 291 | net/inet/igmp.c | struct ip_mc_list *i; |
i | 292 | net/inet/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=i->next) |
i | 293 | net/inet/igmp.c | if(i->multiaddr==IGMP_ALL_HOSTS) |
i | 295 | net/inet/igmp.c | i=(struct ip_mc_list *)kmalloc(sizeof(*i), GFP_KERNEL); |
i | 296 | net/inet/igmp.c | if(!i) |
i | 298 | net/inet/igmp.c | i->users=1; |
i | 299 | net/inet/igmp.c | i->interface=dev; |
i | 300 | net/inet/igmp.c | i->multiaddr=IGMP_ALL_HOSTS; |
i | 301 | net/inet/igmp.c | i->next=dev->ip_mc_list; |
i | 302 | net/inet/igmp.c | dev->ip_mc_list=i; |
i | 303 | net/inet/igmp.c | ip_mc_filter_add(i->interface, i->multiaddr); |
i | 314 | net/inet/igmp.c | int i; |
i | 325 | net/inet/igmp.c | for(i=0;i<IP_MAX_MEMBERSHIPS;i++) |
i | 327 | net/inet/igmp.c | if(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev) |
i | 329 | net/inet/igmp.c | if(sk->ip_mc_list->multidev[i]==NULL) |
i | 330 | net/inet/igmp.c | unused=i; |
i | 347 | net/inet/igmp.c | int i; |
i | 355 | net/inet/igmp.c | for(i=0;i<IP_MAX_MEMBERSHIPS;i++) |
i | 357 | net/inet/igmp.c | if(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev) |
i | 359 | net/inet/igmp.c | sk->ip_mc_list->multidev[i]=NULL; |
i | 373 | net/inet/igmp.c | int i; |
i | 378 | net/inet/igmp.c | for(i=0;i<IP_MAX_MEMBERSHIPS;i++) |
i | 380 | net/inet/igmp.c | if(sk->ip_mc_list->multidev[i]) |
i | 382 | net/inet/igmp.c | ip_mc_dec_group(sk->ip_mc_list->multidev[i], sk->ip_mc_list->multiaddr[i]); |
i | 383 | net/inet/igmp.c | sk->ip_mc_list->multidev[i]=NULL; |
i | 356 | net/inet/ip.c | int i, len = sizeof(struct iphdr); |
i | 406 | net/inet/ip.c | for (i = 0; i < opt->loose_route.route_size; i++) { |
i | 407 | net/inet/ip.c | if(i>=MAX_ROUTE) |
i | 409 | net/inet/ip.c | opt->loose_route.route[i] = *(unsigned long *)buff; |
i | 423 | net/inet/ip.c | for (i = 0; i < opt->strict_route.route_size; i++) { |
i | 424 | net/inet/ip.c | if(i>=MAX_ROUTE) |
i | 426 | net/inet/ip.c | opt->strict_route.route[i] = *(unsigned long *)buff; |
i | 440 | net/inet/ip.c | for (i = 0; i < opt->record_route.route_size; i++) { |
i | 441 | net/inet/ip.c | if(i>=MAX_ROUTE) |
i | 443 | net/inet/ip.c | opt->record_route.route[i] = *(unsigned long *)buff; |
i | 464 | net/inet/ip.c | for (i = 0; i < opt->tstamp.len; i++) { |
i | 465 | net/inet/ip.c | opt->tstamp.data[i] = *(unsigned long *)buff; |
i | 902 | net/inet/ip.c | int i, ihl, end; |
i | 991 | net/inet/ip.c | i = prev->end - offset; |
i | 992 | net/inet/ip.c | offset += i; /* ptr into datagram */ |
i | 993 | net/inet/ip.c | ptr += i; /* ptr into fragment data */ |
i | 1007 | net/inet/ip.c | i = end - next->offset; /* overlap is 'i' bytes */ |
i | 1008 | net/inet/ip.c | next->len -= i; /* so reduce size of */ |
i | 1009 | net/inet/ip.c | next->offset += i; /* next fragment */ |
i | 1010 | net/inet/ip.c | next->ptr += i; |
i | 923 | net/inet/ip_fw.c | struct ip_fw *i; |
i | 932 | net/inet/ip_fw.c | i = ip_fw_blk_chain; |
i | 937 | net/inet/ip_fw.c | i = ip_fw_fwd_chain; |
i | 944 | net/inet/ip_fw.c | i = ip_acct_chain; |
i | 950 | net/inet/ip_fw.c | i = NULL; |
i | 958 | net/inet/ip_fw.c | while(i!=NULL) |
i | 961 | net/inet/ip_fw.c | ntohl(i->fw_src.s_addr),ntohl(i->fw_smsk.s_addr), |
i | 962 | net/inet/ip_fw.c | ntohl(i->fw_dst.s_addr),ntohl(i->fw_dmsk.s_addr), |
i | 963 | net/inet/ip_fw.c | ntohl(i->fw_via.s_addr),i->fw_flg); |
i | 965 | net/inet/ip_fw.c | i->fw_nsp,i->fw_ndp, i->fw_pcnt,i->fw_bcnt); |
i | 967 | net/inet/ip_fw.c | len+=sprintf(buffer+len, " %u", i->fw_pts[p]); |
i | 979 | net/inet/ip_fw.c | i->fw_pcnt=0L; |
i | 980 | net/inet/ip_fw.c | i->fw_bcnt=0L; |
i | 984 | net/inet/ip_fw.c | i=i->fw_next; |
i | 198 | net/inet/ipx.c | ipx_interface *i; |
i | 200 | net/inet/ipx.c | for (i=ipx_interfaces; |
i | 201 | net/inet/ipx.c | i && ((i->if_dev!=dev) || (i->if_dlink_type!=datalink)); |
i | 202 | net/inet/ipx.c | i=i->if_next) |
i | 204 | net/inet/ipx.c | return i; |
i | 210 | net/inet/ipx.c | ipx_interface *i; |
i | 215 | net/inet/ipx.c | for (i=ipx_interfaces; i && (i->if_netnum!=net); i=i->if_next) |
i | 218 | net/inet/ipx.c | return i; |
i | 256 | net/inet/ipx.c | ipx_interface *i; |
i | 279 | net/inet/ipx.c | for (i = ipx_interfaces; |
i | 280 | net/inet/ipx.c | (i != NULL) && (i->if_next != intrfc); |
i | 281 | net/inet/ipx.c | i = i->if_next) |
i | 283 | net/inet/ipx.c | if ((i != NULL) && (i->if_next == intrfc)) |
i | 284 | net/inet/ipx.c | i->if_next = intrfc->if_next; |
i | 300 | net/inet/ipx.c | ipx_interface *i, *tmp; |
i | 305 | net/inet/ipx.c | for (i = ipx_interfaces; i != NULL; ) { |
i | 307 | net/inet/ipx.c | tmp = i->if_next; |
i | 308 | net/inet/ipx.c | if (i->if_dev == dev) |
i | 309 | net/inet/ipx.c | ipxitf_down(i); |
i | 310 | net/inet/ipx.c | i = tmp; |
i | 550 | net/inet/ipx.c | ipx_interface *i; |
i | 559 | net/inet/ipx.c | if ((i=ipxitf_find_using_net(ipx->ipx_source.net))==NULL) { |
i | 565 | net/inet/ipx.c | ipx_device_name(i), |
i | 566 | net/inet/ipx.c | ipx_frame_name(i->if_dlink_type), |
i | 596 | net/inet/ipx.c | ipx_interface *i; |
i | 602 | net/inet/ipx.c | for (i = ipx_interfaces; i->if_next != NULL; i = i->if_next) |
i | 604 | net/inet/ipx.c | i->if_next = intrfc; |
i | 1029 | net/inet/ipx.c | ipx_interface *i; |
i | 1037 | net/inet/ipx.c | i = r->ir_intrfc; |
i | 1038 | net/inet/ipx.c | (void)ipxitf_send(i, skb, (r->ir_routed) ? |
i | 1109 | net/inet/ipx.c | ipx_interface *i; |
i | 1118 | net/inet/ipx.c | for (i = ipx_interfaces; i != NULL; i = i->if_next) { |
i | 1119 | net/inet/ipx.c | len += sprintf(buffer+len, "%08lX ", ntohl(i->if_netnum)); |
i | 1121 | net/inet/ipx.c | i->if_node[0], i->if_node[1], i->if_node[2], |
i | 1122 | net/inet/ipx.c | i->if_node[3], i->if_node[4], i->if_node[5]); |
i | 1123 | net/inet/ipx.c | len += sprintf(buffer+len, "%-9s", (i == ipx_primary_net) ? |
i | 1125 | net/inet/ipx.c | len += sprintf (buffer+len, "%-11s", ipx_device_name(i)); |
i | 1127 | net/inet/ipx.c | ipx_frame_name(i->if_dlink_type)); |
i | 1153 | net/inet/ipx.c | ipx_interface *i; |
i | 1163 | net/inet/ipx.c | for (i = ipx_interfaces; i != NULL; i = i->if_next) { |
i | 1164 | net/inet/ipx.c | for (s = i->if_sklist; s != NULL; s = s->next) { |
i | 1166 | net/inet/ipx.c | htonl(i->if_netnum), |
i | 1580 | net/inet/ipx.c | int l,i; |
i | 1584 | net/inet/ipx.c | for (i=0; i < 8 ; i++) { |
i | 1585 | net/inet/ipx.c | *(p++) = h2c[d[i] & 0x0f]; |
i | 1586 | net/inet/ipx.c | *(p++) = h2c[(d[i] >> 4) & 0x0f]; |
i | 1591 | net/inet/ipx.c | for (i=0; i < 8 ; i++) *(p++) = ' '<= d[i] && d[i]<'\177' ? d[i] : '.'; |
i | 1593 | net/inet/ipx.c | d += i; |
i | 61 | net/inet/proc.c | int i; |
i | 76 | net/inet/proc.c | for(i = 0; i < SOCK_ARRAY_SIZE; i++) |
i | 79 | net/inet/proc.c | sp = s_array[i]; |
i | 94 | net/inet/proc.c | i, src, srcp, dest, destp, sp->state, |
i | 98 | net/inet/skbuff.c | int i = 0; |
i | 99 | net/inet/skbuff.c | while (skb2 != skb && i < 5) { |
i | 104 | net/inet/skbuff.c | i++; |
i | 69 | net/inet/utils.c | int i; |
i | 72 | net/inet/utils.c | for (i = 0; i < 4; i++) |
i | 600 | net/socket.c | int i, fd; |
i | 605 | net/socket.c | for (i = 0; i < NPROTO; ++i) |
i | 607 | net/socket.c | if (pops[i] == NULL) continue; |
i | 608 | net/socket.c | if (pops[i]->family == family) |
i | 612 | net/socket.c | if (i == NPROTO) |
i | 617 | net/socket.c | ops = pops[i]; |
i | 645 | net/socket.c | if ((i = sock->ops->create(sock, protocol)) < 0) |
i | 648 | net/socket.c | return(i); |
i | 666 | net/socket.c | int fd1, fd2, i; |
i | 695 | net/socket.c | if ((i = sock1->ops->socketpair(sock1, sock2)) < 0) |
i | 699 | net/socket.c | return(i); |
i | 732 | net/socket.c | int i; |
i | 745 | net/socket.c | if ((i = sock->ops->bind(sock, (struct sockaddr *)address, addrlen)) < 0) |
i | 747 | net/socket.c | return(i); |
i | 792 | net/socket.c | int i; |
i | 817 | net/socket.c | if ((i = sock->ops->dup(newsock, sock)) < 0) |
i | 820 | net/socket.c | return(i); |
i | 823 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
i | 824 | net/socket.c | if ( i < 0) |
i | 827 | net/socket.c | return(i); |
i | 854 | net/socket.c | int i; |
i | 888 | net/socket.c | i = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags); |
i | 889 | net/socket.c | if (i < 0) |
i | 891 | net/socket.c | return(i); |
i | 1288 | net/socket.c | int i; |
i | 1291 | net/socket.c | for(i = 0; i < NPROTO; i++) |
i | 1293 | net/socket.c | if (pops[i] != NULL) |
i | 1295 | net/socket.c | pops[i] = ops; |
i | 1296 | net/socket.c | pops[i]->family = family; |
i | 1298 | net/socket.c | return(i); |
i | 1312 | net/socket.c | int i; |
i | 1315 | net/socket.c | for(i = 0; i < NPROTO; i++) |
i | 1317 | net/socket.c | if (pops[i] == NULL) |
i | 1319 | net/socket.c | if(pops[i]->family == family) |
i | 1321 | net/socket.c | pops[i]=NULL; |
i | 1323 | net/socket.c | return(i); |
i | 1348 | net/socket.c | int i; |
i | 1356 | net/socket.c | for (i = 0; i < NPROTO; ++i) pops[i] = NULL; |
i | 44 | net/unix/proc.c | int i; |
i | 52 | net/unix/proc.c | for(i = 0; i < NSOCKETS_UNIX; i++) |
i | 56 | net/unix/proc.c | if (unix_datas[i].refcnt>0 && unix_datas[i].socket!=NULL) |
i | 59 | net/unix/proc.c | s_type=unix_datas[i].socket->type; |
i | 60 | net/unix/proc.c | s_flags=unix_datas[i].socket->flags; |
i | 61 | net/unix/proc.c | s_state=unix_datas[i].socket->state; |
i | 63 | net/unix/proc.c | len += sprintf(buffer+len, "%2d: %08X %08X %08lX %04X %02X", i, |
i | 64 | net/unix/proc.c | unix_datas[i].refcnt, |
i | 65 | net/unix/proc.c | unix_datas[i].protocol, |
i | 72 | net/unix/proc.c | if(unix_datas[i].sockaddr_len>0) |
i | 75 | net/unix/proc.c | unix_datas[i].sockaddr_un.sun_path); |
i | 397 | net/unix/sock.c | int i; |
i | 421 | net/unix/sock.c | i = do_mknod(fname, S_IFSOCK | S_IRWXUGO, 0); |
i | 423 | net/unix/sock.c | if (i == 0) |
i | 424 | net/unix/sock.c | i = open_namei(fname, 0, S_IFSOCK, &upd->inode, NULL); |
i | 426 | net/unix/sock.c | if (i < 0) |
i | 429 | net/unix/sock.c | if(i==-EEXIST) |
i | 430 | net/unix/sock.c | i=-EADDRINUSE; |
i | 431 | net/unix/sock.c | return(i); |
i | 453 | net/unix/sock.c | int i; |
i | 484 | net/unix/sock.c | i = open_namei(fname, 0, S_IFSOCK, &inode, NULL); |
i | 486 | net/unix/sock.c | if (i < 0) |
i | 488 | net/unix/sock.c | return(i); |
i | 498 | net/unix/sock.c | if ((i = sock_awaitconn(sock, serv_upd->socket, flags)) < 0) |
i | 500 | net/unix/sock.c | return(i); |