tag | line | file | source code |
j | 164 | drivers/block/genhd.c | int j = start + dev->max_p; |
j | 170 | drivers/block/genhd.c | for (i=start ; i < j ; i++) |
j | 177 | drivers/block/genhd.c | int j = dev->max_nr * dev->max_p; |
j | 182 | drivers/block/genhd.c | for (i = 0 ; i < j; i++) { |
j | 191 | drivers/block/genhd.c | for (i=0 ; i < j ; i++) |
j | 590 | drivers/block/sbpcd.c | int i,j; |
j | 596 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 597 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) return (j); |
j | 598 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) return (j); |
j | 599 | drivers/block/sbpcd.c | if (!new_drive) if (j&s_attention) return (j); |
j | 606 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 607 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) return (j); |
j | 608 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) return (j); |
j | 609 | drivers/block/sbpcd.c | if (!new_drive) if (j&s_attention) return (j); |
j | 619 | drivers/block/sbpcd.c | int i,j, st=0; |
j | 625 | drivers/block/sbpcd.c | for (j=maxtim_8;j!=0;j--) |
j | 630 | drivers/block/sbpcd.c | if (j==0) return (-1); |
j | 637 | drivers/block/sbpcd.c | for (j=maxtim_data; ; ) |
j | 639 | drivers/block/sbpcd.c | for ( ;j!=0;j-- ) |
j | 644 | drivers/block/sbpcd.c | if (j != 0 || timeout <= jiffies) break; |
j | 646 | drivers/block/sbpcd.c | j = 1; |
j | 674 | drivers/block/sbpcd.c | int i,j; |
j | 681 | drivers/block/sbpcd.c | if (flags_cmd_out & f_respo3) j = maxtim_8; |
j | 682 | drivers/block/sbpcd.c | else if (flags_cmd_out&f_respo2) j=maxtim16; |
j | 683 | drivers/block/sbpcd.c | else j=maxtim04; |
j | 684 | drivers/block/sbpcd.c | for (;j!=0;j--) |
j | 695 | drivers/block/sbpcd.c | j=maxtim_8; |
j | 698 | drivers/block/sbpcd.c | for ( ;j!=0;j--) |
j | 703 | drivers/block/sbpcd.c | if (j != 0 || timeout <= jiffies) break; |
j | 705 | drivers/block/sbpcd.c | j = 1; |
j | 709 | drivers/block/sbpcd.c | if (j==0) |
j | 1153 | drivers/block/sbpcd.c | int i,j; |
j | 1170 | drivers/block/sbpcd.c | for (j=0;j<255;j++) |
j | 1607 | drivers/block/sbpcd.c | int i, j; |
j | 1648 | drivers/block/sbpcd.c | for (j=0;j<4;j++) DS[d].firmware_version[j]=infobuf[i+j]; |
j | 1649 | drivers/block/sbpcd.c | j = (DS[d].firmware_version[0] & 0x0F) * 100 + |
j | 1654 | drivers/block/sbpcd.c | if (j<100) DS[d].drv_type=drv_099; |
j | 1657 | drivers/block/sbpcd.c | else if (j<200) DS[d].drv_type=drv_199; |
j | 1658 | drivers/block/sbpcd.c | else if (j<201) DS[d].drv_type=drv_200; |
j | 1659 | drivers/block/sbpcd.c | else if (j<210) DS[d].drv_type=drv_201; |
j | 1660 | drivers/block/sbpcd.c | else if (j<211) DS[d].drv_type=drv_210; |
j | 1661 | drivers/block/sbpcd.c | else if (j<300) DS[d].drv_type=drv_211; |
j | 1684 | drivers/block/sbpcd.c | int i, j; |
j | 1690 | drivers/block/sbpcd.c | for (j=0;j<NR_SBPCD;j++) |
j | 1692 | drivers/block/sbpcd.c | DS[j].drv_minor=j; |
j | 1693 | drivers/block/sbpcd.c | switch_drive(j); |
j | 1694 | drivers/block/sbpcd.c | DPRINTF((DBG_ID,"SBPCD: check_drives: drive %d activated.\n",j)); |
j | 1700 | drivers/block/sbpcd.c | DS[d].drv_options=drv_pattern[j]; |
j | 1857 | drivers/block/sbpcd.c | int i, j; |
j | 1860 | drivers/block/sbpcd.c | for (j=DS[d].n_first_track;j<=DS[d].n_last_track;j++) |
j | 1862 | drivers/block/sbpcd.c | i=xx_ReadTocEntry(j); |
j | 1864 | drivers/block/sbpcd.c | DS[d].TocBuffer[j].nixbyte=DS[d].TocEnt_nixbyte; |
j | 1865 | drivers/block/sbpcd.c | DS[d].TocBuffer[j].ctl_adr=DS[d].TocEnt_ctl_adr; |
j | 1866 | drivers/block/sbpcd.c | DS[d].TocBuffer[j].number=DS[d].TocEnt_number; |
j | 1867 | drivers/block/sbpcd.c | DS[d].TocBuffer[j].format=DS[d].TocEnt_format; |
j | 1868 | drivers/block/sbpcd.c | DS[d].TocBuffer[j].address=DS[d].TocEnt_address; |
j | 1872 | drivers/block/sbpcd.c | DS[d].TocBuffer[j].nixbyte=0; |
j | 1873 | drivers/block/sbpcd.c | DS[d].TocBuffer[j].ctl_adr=0; |
j | 1874 | drivers/block/sbpcd.c | DS[d].TocBuffer[j].number=0; |
j | 1875 | drivers/block/sbpcd.c | DS[d].TocBuffer[j].format=0; |
j | 1876 | drivers/block/sbpcd.c | DS[d].TocBuffer[j].address=DS[d].size_msf; |
j | 2629 | drivers/block/sbpcd.c | int i=0, j=0, frame; |
j | 2654 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 2655 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) break; |
j | 2656 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) break; |
j | 2657 | drivers/block/sbpcd.c | if (!new_drive) if (j&s_attention) break; |
j | 2672 | drivers/block/sbpcd.c | if (j&s_not_data_ready) |
j | 2726 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 2727 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) break; |
j | 2728 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) break; |
j | 2729 | drivers/block/sbpcd.c | if (j&s_attention) break; |
j | 2736 | drivers/block/sbpcd.c | if (!(j&s_attention)) |
j | 2922 | drivers/block/sbpcd.c | int i=0, j=0; |
j | 2988 | drivers/block/sbpcd.c | for (j=0;j<NR_SBPCD;j++) |
j | 2990 | drivers/block/sbpcd.c | if (DS[j].drv_minor==-1) continue; |
j | 2991 | drivers/block/sbpcd.c | switch_drive(j); |
j | 3059 | drivers/block/sbpcd.c | for (j=0;j<NR_SBPCD;j++) |
j | 3061 | drivers/block/sbpcd.c | if (DS[j].drv_minor==-1) continue; |
j | 3062 | drivers/block/sbpcd.c | DS[j].sbp_buf=(u_char *)mem_start; |
j | 133 | drivers/block/xd.c | u_char i,j,found = 0; |
j | 143 | drivers/block/xd.c | for (j = 1; j < (sizeof(xd_sigs) / sizeof(xd_sigs[0])) && !found; j++) |
j | 144 | drivers/block/xd.c | if (!memcmp(xd_bases[i] + xd_sigs[j].offset,xd_sigs[j].string,strlen(xd_sigs[j].string))) { |
j | 145 | drivers/block/xd.c | *controller = j; |
j | 713 | drivers/char/keyboard.c | int i, j, k, sym, val; |
j | 722 | drivers/char/keyboard.c | for(j=0; j<32; j++,k++) |
j | 858 | drivers/char/keyboard.c | int i, j; |
j | 868 | drivers/char/keyboard.c | for(j = 0; j < 100000 ; j++) |
j | 1728 | drivers/char/tty_io.c | int i, j, line, mask; |
j | 1738 | drivers/char/tty_io.c | for (j=0, mask=0; j < 32; j++, line++, mask <<= 1) { |
j | 1739 | drivers/char/tty_io.c | if (clear_bit(j, &tty_check_write[i])) { |
j | 402 | drivers/net/depca.c | int i,j, status=0; |
j | 427 | drivers/net/depca.c | for (j = 0, i = 0; mem_base[i] && (j == 0);) { |
j | 432 | drivers/net/depca.c | j = 1; /* set exit flag */ |
j | 455 | drivers/net/depca.c | j = 1; |
j | 457 | drivers/net/depca.c | j = 0; |
j | 462 | drivers/net/depca.c | printk("%2.2x:", dev->dev_addr[i] = inb(DEPCA_PROM + j)); |
j | 464 | drivers/net/depca.c | printk("%2.2x", dev->dev_addr[i] = inb(DEPCA_PROM + j)); |
j | 467 | drivers/net/depca.c | j=inb(DEPCA_PROM); |
j | 515 | drivers/net/depca.c | j = (((netRAM << 10) - offset - sizeof(struct depca_private)) / |
j | 517 | drivers/net/depca.c | for (i=0;j>1;i++) { |
j | 518 | drivers/net/depca.c | j >>= 1; |
j | 525 | drivers/net/depca.c | j = 1 << i; |
j | 550 | drivers/net/depca.c | mem_start += (sizeof(struct depca_rx_head) * j); |
j | 553 | drivers/net/depca.c | mem_start += (sizeof(struct depca_tx_head) * j); |
j | 556 | drivers/net/depca.c | mem_start += (PKT_BUF_SZ * j); |
j | 560 | drivers/net/depca.c | memset(lp->rx_ring, 0, sizeof(struct depca_rx_head)*j); |
j | 561 | drivers/net/depca.c | memset(lp->tx_ring, 0, sizeof(struct depca_tx_head)*j); |
j | 572 | drivers/net/depca.c | lp->ringSize = j; |
j | 580 | drivers/net/depca.c | for (i=0, j = lp->ringSize; j>1; i++) { |
j | 581 | drivers/net/depca.c | j >>= 1; |
j | 1245 | drivers/net/depca.c | char j, ctrl, bit, octet, hashcode; |
j | 1253 | drivers/net/depca.c | for(j=0;j<8;j++) { /* process each address bit */ |
j | 1254 | drivers/net/depca.c | bit = (((char)* (addrs+ETH_ALEN*i+octet)) >> j) & 0x01; |
j | 1263 | drivers/net/depca.c | for (j=0;j<5;j++) { /* ... in reverse order. */ |
j | 1285 | drivers/net/depca.c | unsigned long i,j,k; |
j | 1297 | drivers/net/depca.c | for (j=0,k=0;j<16 && k<strlen(signatures[i]);j++) { |
j | 1298 | drivers/net/depca.c | if (signatures[i][k] == tmpstr[j]) { /* track signature */ |
j | 1331 | drivers/net/depca.c | int i, j, nicsr, status = 0; |
j | 1368 | drivers/net/depca.c | for (i=0,j=0;devSig[i]!=(char)NULL && !status;i+=2,j++) { |
j | 1372 | drivers/net/depca.c | devSig[j]=devSig[i]+devSig[i+1]; |
j | 1380 | drivers/net/depca.c | sigLength=j; |
j | 1393 | drivers/net/depca.c | for (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) { |
j | 1395 | drivers/net/depca.c | if (devSig[j] == data) { /* track signature */ |
j | 1396 | drivers/net/depca.c | j++; |
j | 1398 | drivers/net/depca.c | j=0; |
j | 1402 | drivers/net/depca.c | if (j!=sigLength) { |
j | 498 | drivers/scsi/aha152x.c | int i, j, ok; |
j | 565 | drivers/scsi/aha152x.c | for( j=0; (j < SIGNATURE_COUNT) && !ok; j++) |
j | 566 | drivers/scsi/aha152x.c | ok=!memcmp((void *) addresses[i]+signatures[j].sig_offset, |
j | 567 | drivers/scsi/aha152x.c | (void *) signatures[j].signature, |
j | 568 | drivers/scsi/aha152x.c | (int) signatures[j].sig_length); |
j | 486 | drivers/scsi/fdomain.c | int i, j; |
j | 508 | drivers/scsi/fdomain.c | for (j = 0; !bios_base && j < SIGNATURE_COUNT; j++) { |
j | 509 | drivers/scsi/fdomain.c | if (!memcmp( ((char *)addresses[i] + signatures[j].sig_offset), |
j | 510 | drivers/scsi/fdomain.c | signatures[j].signature, signatures[j].sig_length )) { |
j | 511 | drivers/scsi/fdomain.c | bios_major = signatures[j].major_bios_version; |
j | 512 | drivers/scsi/fdomain.c | bios_minor = signatures[j].minor_bios_version; |
j | 692 | drivers/scsi/fdomain.c | for (j = 8; j < (buf[4] < 32 ? buf[4] : 32); j++) |
j | 693 | drivers/scsi/fdomain.c | printk( "%c", buf[j] >= 20 ? buf[j] : ' ' ); |
j | 154 | drivers/scsi/hosts.c | scsi_unregister(struct Scsi_Host * sh, int j){ |
j | 157 | drivers/scsi/hosts.c | if(((unsigned int) sh) + sizeof(struct Scsi_Host) + j != scsi_init_memory_start) |
j | 175 | drivers/scsi/hosts.c | struct Scsi_Host * scsi_register(int i, int j){ |
j | 178 | drivers/scsi/hosts.c | scsi_init_memory_start += sizeof(struct Scsi_Host) + j; |
j | 187 | drivers/scsi/hosts.c | printk("Register %x %x: %d %d\n", retval, retval->hostt, i, j); |
j | 212 | drivers/scsi/hosts.c | int i, j, count, pcount; |
j | 241 | drivers/scsi/hosts.c | for(j = 0; j < scsi_hosts[i].present; j++) |
j | 242 | drivers/scsi/hosts.h | extern struct Scsi_Host * scsi_register(int i, int j); |
j | 243 | drivers/scsi/hosts.h | extern void scsi_unregister(struct Scsi_Host * i, int j); |
j | 1510 | drivers/scsi/scsi.c | int i, j; |
j | 1519 | drivers/scsi/scsi.c | for(j=0; j<17-nbits; j++){ |
j | 1520 | drivers/scsi/scsi.c | if ((dma_malloc_freelist[i] & (mask << j)) == 0){ |
j | 1521 | drivers/scsi/scsi.c | dma_malloc_freelist[i] |= (mask << j); |
j | 1525 | drivers/scsi/scsi.c | printk("SMalloc: %d %x ",len, dma_malloc_buffer + (i << 13) + (j << 9)); |
j | 1527 | drivers/scsi/scsi.c | return (void *) ((unsigned long) dma_malloc_buffer + (i << 13) + (j << 9)); |
j | 1600 | drivers/scsi/scsi.c | int j; |
j | 1618 | drivers/scsi/scsi.c | for(j=0;j<scsi_devices[i].host->hostt->cmd_per_lun;j++){ |
j | 526 | drivers/scsi/scsi_debug.c | int j; |
j | 530 | drivers/scsi/scsi_debug.c | for(j=0;j<SCSI_DEBUG_MAILBOXES; j++) { |
j | 531 | drivers/scsi/scsi_debug.c | if(SCpnt == SCint[j]) { |
j | 532 | drivers/scsi/scsi_debug.c | my_done = do_done[j]; |
j | 535 | drivers/scsi/scsi_debug.c | timeout[j] = 0; |
j | 536 | drivers/scsi/scsi_debug.c | SCint[j] = NULL; |
j | 537 | drivers/scsi/scsi_debug.c | do_done[j] = NULL; |
j | 785 | drivers/scsi/sd.c | int j = 0; |
j | 954 | drivers/scsi/sd.c | for (j=i; j < NR_SD - 1;) |
j | 955 | drivers/scsi/sd.c | rscsi_disks[j] = rscsi_disks[++j]; |
j | 278 | drivers/scsi/seagate.c | int i,j; |
j | 329 | drivers/scsi/seagate.c | for (j = 0; !base_address && j < NUM_SIGNATURES; ++j) |
j | 331 | drivers/scsi/seagate.c | signatures[j].offset), (void *) signatures[j].signature, |
j | 332 | drivers/scsi/seagate.c | signatures[j].length)) { |
j | 334 | drivers/scsi/seagate.c | controller_type = signatures[j].type; |
j | 545 | drivers/scsi/wd7000.c | int i,j; |
j | 550 | drivers/scsi/wd7000.c | for(j=0;j<NUM_SIGNATURES;j++){ |
j | 551 | drivers/scsi/wd7000.c | if(!memcmp((void *)(wd_bases[i] + signatures[j].offset), |
j | 552 | drivers/scsi/wd7000.c | (void *) signatures[j].signature,signatures[j].length)){ |
j | 603 | drivers/scsi/wd7000.c | { int j; unchar *cdbj = (unchar *) SCpnt->cmnd; |
j | 604 | drivers/scsi/wd7000.c | for (j=0; j < COMMAND_SIZE(*cdbj); j++) printk(" %02x", *(cdbj++)); |
j | 136 | drivers/sound/dev_table.c | int card_type, ioaddr, irq, dma, ptr, j; |
j | 154 | drivers/sound/dev_table.c | for (j=0;j<n && ptr == -1;j++) |
j | 155 | drivers/sound/dev_table.c | if (supported_drivers[j].card_type == card_type) |
j | 156 | drivers/sound/dev_table.c | ptr = j; |
j | 174 | drivers/sound/dev_table.c | int ptr, j; |
j | 177 | drivers/sound/dev_table.c | for (j=0;j<n && ptr == -1;j++) |
j | 178 | drivers/sound/dev_table.c | if (supported_drivers[j].card_type == card_type) |
j | 179 | drivers/sound/dev_table.c | ptr = j; |
j | 193 | drivers/sound/dev_table.c | int j, ptr; |
j | 197 | drivers/sound/dev_table.c | for (j=0;j<n && ptr == -1;j++) |
j | 198 | drivers/sound/dev_table.c | if (supported_drivers[j].card_type == card_type) |
j | 199 | drivers/sound/dev_table.c | ptr = j; |
j | 558 | fs/binfmt_elf.c | int i,j, k; |
j | 598 | fs/binfmt_elf.c | j = 0; |
j | 600 | fs/binfmt_elf.c | if((elf_phdata + i)->p_type == PT_LOAD) j++; |
j | 602 | fs/binfmt_elf.c | if(j != 1) { |
j | 21 | fs/block_dev.c | int blocksize, blocksize_bits, i, j; |
j | 90 | fs/block_dev.c | for(j=0; j<blocks_per_cluster; j++) cluster_list[j] = block+i+j; |
j | 921 | fs/buffer.c | int i, j; |
j | 942 | fs/buffer.c | j = 1; |
j | 949 | fs/buffer.c | bhlist[j++] = bh; |
j | 953 | fs/buffer.c | ll_rw_block(READ, j, bhlist); |
j | 955 | fs/buffer.c | for(i=1; i<j; i++) |
j | 1212 | fs/buffer.c | int i, j; |
j | 1220 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j+= size) { |
j | 1227 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j += size,address += size) { |
j | 95 | fs/ext/freelists.c | int j; |
j | 106 | fs/ext/freelists.c | j = efb->free[--efb->count]; |
j | 112 | fs/ext/freelists.c | j = sb->u.ext_sb.s_firstfreeblocknumber; |
j | 124 | fs/ext/freelists.c | if (j < sb->u.ext_sb.s_firstdatazone || j > sb->u.ext_sb.s_nzones) { |
j | 125 | fs/ext/freelists.c | printk ("ext_new_block: blk = %d\n", j); |
j | 132 | fs/ext/freelists.c | if (!(bh=getblk(sb->s_dev, j, sb->s_blocksize))) { |
j | 141 | fs/ext/freelists.c | printk("ext_new_block: allocating block %d\n", j); |
j | 144 | fs/ext/freelists.c | return j; |
j | 252 | fs/ext/freelists.c | int j; |
j | 265 | fs/ext/freelists.c | j = efi->free[--efi->count]; |
j | 271 | fs/ext/freelists.c | j = sb->u.ext_sb.s_firstfreeinodenumber; |
j | 295 | fs/ext/freelists.c | inode->i_ino = j; |
j | 179 | fs/ext2/balloc.c | int i, j; |
j | 210 | fs/ext2/balloc.c | for (j = i; j > 0; j--) { |
j | 211 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[j] = |
j | 212 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[j - 1]; |
j | 213 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[j] = |
j | 214 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[j - 1]; |
j | 223 | fs/ext2/balloc.c | for (j = sb->u.ext2_sb.s_loaded_block_bitmaps - 1; j > 0; j--) { |
j | 224 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[j] = |
j | 225 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[j - 1]; |
j | 226 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[j] = |
j | 227 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[j - 1]; |
j | 340 | fs/ext2/balloc.c | int i, j, k, tmp; |
j | 371 | fs/ext2/balloc.c | j = ((goal - es->s_first_data_block) % EXT2_BLOCKS_PER_GROUP(sb)); |
j | 373 | fs/ext2/balloc.c | if (j) |
j | 379 | fs/ext2/balloc.c | ext2_debug ("goal is at %d:%d.\n", i, j); |
j | 381 | fs/ext2/balloc.c | if (!test_bit(j, bh->b_data)) { |
j | 388 | fs/ext2/balloc.c | if (j) { |
j | 393 | fs/ext2/balloc.c | lmap = ((((unsigned long *) bh->b_data)[j >> 5]) >> |
j | 394 | fs/ext2/balloc.c | ((j & 31) + 1)); |
j | 395 | fs/ext2/balloc.c | if (j < EXT2_BLOCKS_PER_GROUP(sb) - 32) |
j | 396 | fs/ext2/balloc.c | lmap |= (((unsigned long *) bh->b_data)[(j >> 5) + 1]) << |
j | 397 | fs/ext2/balloc.c | (31 - (j & 31)); |
j | 399 | fs/ext2/balloc.c | lmap |= 0xffffffff << (31 - (j & 31)); |
j | 405 | fs/ext2/balloc.c | if ((j + k) < EXT2_BLOCKS_PER_GROUP(sb)) { |
j | 406 | fs/ext2/balloc.c | j += k; |
j | 423 | fs/ext2/balloc.c | p = ((char *) bh->b_data) + (j >> 3); |
j | 425 | fs/ext2/balloc.c | (EXT2_BLOCKS_PER_GROUP(sb) - j + 7) >> 3); |
j | 428 | fs/ext2/balloc.c | j = k; |
j | 433 | fs/ext2/balloc.c | j); |
j | 435 | fs/ext2/balloc.c | j = k; |
j | 462 | fs/ext2/balloc.c | j = (r - bh->b_data) << 3; |
j | 463 | fs/ext2/balloc.c | if (j < EXT2_BLOCKS_PER_GROUP(sb)) |
j | 466 | fs/ext2/balloc.c | j = find_first_zero_bit ((unsigned long *) bh->b_data, |
j | 468 | fs/ext2/balloc.c | if (j >= EXT2_BLOCKS_PER_GROUP(sb)) { |
j | 481 | fs/ext2/balloc.c | for (k = 0; k < 7 && j > 0 && !test_bit (j - 1, bh->b_data); k++, j--); |
j | 487 | fs/ext2/balloc.c | tmp = j + i * EXT2_BLOCKS_PER_GROUP(sb) + es->s_first_data_block; |
j | 497 | fs/ext2/balloc.c | if (set_bit (j, bh->b_data)) { |
j | 499 | fs/ext2/balloc.c | "bit already set for block %d", j); |
j | 503 | fs/ext2/balloc.c | ext2_debug ("found bit %d\n", j); |
j | 513 | fs/ext2/balloc.c | k < 8 && (j + k) < EXT2_BLOCKS_PER_GROUP(sb); k++) { |
j | 514 | fs/ext2/balloc.c | if (set_bit (j + k, bh->b_data)) |
j | 525 | fs/ext2/balloc.c | j = tmp; |
j | 533 | fs/ext2/balloc.c | if (j >= es->s_blocks_count) { |
j | 536 | fs/ext2/balloc.c | "block_group = %d, block=%d", i, j); |
j | 540 | fs/ext2/balloc.c | if (!(bh = getblk (sb->s_dev, j, sb->s_blocksize))) { |
j | 541 | fs/ext2/balloc.c | ext2_error (sb, "ext2_new_block", "cannot get block %d", j); |
j | 551 | fs/ext2/balloc.c | "Goal hits %d of %d.\n", j, goal_hits, goal_attempts); |
j | 559 | fs/ext2/balloc.c | return j; |
j | 611 | fs/ext2/balloc.c | int i, j; |
j | 630 | fs/ext2/balloc.c | for (j = 0; j < desc_blocks; j++) |
j | 631 | fs/ext2/balloc.c | if (!test_bit (j + 1, bh->b_data)) |
j | 634 | fs/ext2/balloc.c | "%d is marked free", j, i); |
j | 646 | fs/ext2/balloc.c | for (j = 0; j < sb->u.ext2_sb.s_itb_per_group; j++) |
j | 647 | fs/ext2/balloc.c | if (!block_in_use (gdp->bg_inode_table + j, sb, bh->b_data)) |
j | 650 | fs/ext2/balloc.c | "group %d is marked free", j, i); |
j | 121 | fs/ext2/ialloc.c | int i, j; |
j | 154 | fs/ext2/ialloc.c | for (j = i; j > 0; j--) { |
j | 155 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j] = |
j | 156 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j - 1]; |
j | 157 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j] = |
j | 158 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j - 1]; |
j | 167 | fs/ext2/ialloc.c | for (j = sb->u.ext2_sb.s_loaded_inode_bitmaps - 1; j > 0; j--) { |
j | 168 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j] = |
j | 169 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j - 1]; |
j | 170 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j] = |
j | 171 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j - 1]; |
j | 335 | fs/ext2/ialloc.c | int i, j, avefreei; |
j | 369 | fs/ext2/ialloc.c | for (j = 0; j < sb->u.ext2_sb.s_groups_count; j++) { |
j | 370 | fs/ext2/ialloc.c | tmp = get_group_desc (sb, j, &bh2); |
j | 376 | fs/ext2/ialloc.c | i = j; |
j | 398 | fs/ext2/ialloc.c | for (j = 1; j < sb->u.ext2_sb.s_groups_count; j <<= 1) { |
j | 399 | fs/ext2/ialloc.c | i += j; |
j | 414 | fs/ext2/ialloc.c | for (j = 2; j < sb->u.ext2_sb.s_groups_count; j++) { |
j | 433 | fs/ext2/ialloc.c | if ((j = find_first_zero_bit ((unsigned long *) bh->b_data, |
j | 436 | fs/ext2/ialloc.c | if (set_bit (j, bh->b_data)) { |
j | 438 | fs/ext2/ialloc.c | "bit already set for inode %d", j); |
j | 457 | fs/ext2/ialloc.c | j += i * EXT2_INODES_PER_GROUP(sb) + 1; |
j | 458 | fs/ext2/ialloc.c | if (j < EXT2_FIRST_INO || j > es->s_inodes_count) { |
j | 461 | fs/ext2/ialloc.c | "block_group = %d,inode=%d", i, j); |
j | 488 | fs/ext2/ialloc.c | inode->i_ino = j; |
j | 364 | fs/ext2/super.c | int i, j; |
j | 531 | fs/ext2/super.c | for (j = 0; j < i; j++) |
j | 532 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[j]); |
j | 541 | fs/ext2/super.c | for (j = 0; j < i; j++) |
j | 542 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[j]); |
j | 71 | fs/isofs/dir.c | unsigned int block,offset,i, j; |
j | 209 | fs/isofs/dir.c | for(j=0; j<i; j++) |
j | 210 | fs/isofs/dir.c | put_fs_byte(dpnt[j],j+dirent->d_name); /* And save it */ |
j | 44 | fs/minix/bitmap.c | unsigned i, j, end, sum = 0; |
j | 61 | fs/minix/bitmap.c | for (j=0; j<end; j++) |
j | 62 | fs/minix/bitmap.c | sum += nibblemap[bh->b_data[j] & 0xf] |
j | 63 | fs/minix/bitmap.c | + nibblemap[(bh->b_data[j]>>4)&0xf]; |
j | 103 | fs/minix/bitmap.c | int i,j; |
j | 110 | fs/minix/bitmap.c | j = 8192; |
j | 113 | fs/minix/bitmap.c | if ((j=find_first_zero(bh->b_data))<8192) |
j | 115 | fs/minix/bitmap.c | if (i>=8 || !bh || j>=8192) |
j | 117 | fs/minix/bitmap.c | if (set_bit(j,bh->b_data)) { |
j | 122 | fs/minix/bitmap.c | j += i*8192 + sb->u.minix_sb.s_firstdatazone-1; |
j | 123 | fs/minix/bitmap.c | if (j < sb->u.minix_sb.s_firstdatazone || |
j | 124 | fs/minix/bitmap.c | j >= sb->u.minix_sb.s_nzones) |
j | 126 | fs/minix/bitmap.c | if (!(bh = getblk(sb->s_dev,j,BLOCK_SIZE))) { |
j | 134 | fs/minix/bitmap.c | return j; |
j | 186 | fs/minix/bitmap.c | int i,j; |
j | 193 | fs/minix/bitmap.c | j = 8192; |
j | 196 | fs/minix/bitmap.c | if ((j=find_first_zero(bh->b_data))<8192) |
j | 198 | fs/minix/bitmap.c | if (!bh || j >= 8192) { |
j | 202 | fs/minix/bitmap.c | if (set_bit(j,bh->b_data)) { /* shouldn't happen */ |
j | 208 | fs/minix/bitmap.c | j += i*8192; |
j | 209 | fs/minix/bitmap.c | if (!j || j >= inode->i_sb->u.minix_sb.s_ninodes) { |
j | 219 | fs/minix/bitmap.c | inode->i_ino = j; |
j | 383 | fs/pipe.c | int i,j; |
j | 385 | fs/pipe.c | j = verify_area(VERIFY_WRITE,fildes,8); |
j | 386 | fs/pipe.c | if (j) |
j | 387 | fs/pipe.c | return j; |
j | 388 | fs/pipe.c | for(j=0 ; j<2 ; j++) |
j | 389 | fs/pipe.c | if (!(f[j] = get_empty_filp())) |
j | 391 | fs/pipe.c | if (j==1) |
j | 393 | fs/pipe.c | if (j<2) |
j | 395 | fs/pipe.c | j=0; |
j | 396 | fs/pipe.c | for(i=0;j<2 && i<NR_OPEN;i++) |
j | 398 | fs/pipe.c | current->filp[ fd[j]=i ] = f[j]; |
j | 399 | fs/pipe.c | j++; |
j | 401 | fs/pipe.c | if (j==1) |
j | 403 | fs/pipe.c | if (j<2) { |
j | 137 | fs/proc/base.c | int i,j; |
j | 158 | fs/proc/base.c | j = i; |
j | 161 | fs/proc/base.c | return j; |
j | 112 | fs/proc/fd.c | int j = 0; |
j | 116 | fs/proc/fd.c | j++; |
j | 117 | fs/proc/fd.c | if (fd >= j) |
j | 131 | fs/proc/fd.c | int i,j; |
j | 145 | fs/proc/fd.c | i = j = fd+1; |
j | 155 | fs/proc/fd.c | return j; |
j | 169 | fs/proc/fd.c | int j = 0; |
j | 173 | fs/proc/fd.c | j++; |
j | 174 | fs/proc/fd.c | if (fd >= j) |
j | 177 | fs/proc/fd.c | j = 10; |
j | 179 | fs/proc/fd.c | while (fd >= j) { |
j | 180 | fs/proc/fd.c | j *= 10; |
j | 183 | fs/proc/fd.c | j = i; |
j | 195 | fs/proc/fd.c | return j; |
j | 181 | fs/proc/inode.c | int j = 0; |
j | 185 | fs/proc/inode.c | j++; |
j | 186 | fs/proc/inode.c | if (ino >= j) |
j | 86 | fs/proc/link.c | { int j = ino; |
j | 88 | fs/proc/link.c | for(mpnt = p->mmap; mpnt && j >= 0; |
j | 91 | fs/proc/link.c | if(j == 0) { |
j | 95 | fs/proc/link.c | j--; |
j | 144 | fs/proc/net.c | int i,j; |
j | 157 | fs/proc/net.c | j = i; |
j | 160 | fs/proc/net.c | return j; |
j | 137 | fs/proc/root.c | int i,j; |
j | 151 | fs/proc/root.c | j = i; |
j | 154 | fs/proc/root.c | return j; |
j | 165 | fs/proc/root.c | j = 10; |
j | 167 | fs/proc/root.c | while (pid >= j) { |
j | 168 | fs/proc/root.c | j *= 10; |
j | 171 | fs/proc/root.c | j = i; |
j | 179 | fs/proc/root.c | return j; |
j | 85 | fs/select.c | int i,j; |
j | 88 | fs/select.c | for (j = 0 ; j < __FDSET_LONGS ; j++) { |
j | 89 | fs/select.c | i = j << 5; |
j | 92 | fs/select.c | set = in->fds_bits[j] | out->fds_bits[j] | ex->fds_bits[j]; |
j | 93 | fs/sysv/ialloc.c | int i,j,ino,block; |
j | 111 | 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) { |
j | 117 | fs/sysv/ialloc.c | raw_inode = (struct sysv_inode *) bh_data + j; |
j | 118 | fs/sysv/ialloc.c | for (; j < sb->sv_inodes_per_block && i < sb->sv_fic_size; ino++, j++, raw_inode++) { |
j | 167 | fs/sysv/ialloc.c | int j,block,count; |
j | 178 | fs/sysv/ialloc.c | for (block = sb->sv_firstinodezone, j = SYSV_ROOT_INO ; block < sb->sv_firstdatazone ; block++, j = 0) { |
j | 184 | fs/sysv/ialloc.c | raw_inode = (struct sysv_inode *) bh_data + j; |
j | 185 | fs/sysv/ialloc.c | for (; j < sb->sv_inodes_per_block ; j++, raw_inode++) |
j | 114 | fs/sysv/truncate.c | unsigned long i, j; |
j | 135 | fs/sysv/truncate.c | for (i = blocks >> sb->sv_ind_per_block_bits, j = blocks & sb->sv_ind_per_block_1; |
j | 137 | fs/sysv/truncate.c | i++, j = 0) { |
j | 145 | fs/sysv/truncate.c | retry |= coh_trunc_indirect(inode,j,dind,sb->sv_convert,&bh->b_dirt); |
j | 171 | fs/sysv/truncate.c | unsigned long i, j; |
j | 190 | fs/sysv/truncate.c | for (i = blocks >> sb->sv_ind_per_block_2_bits, j = blocks & sb->sv_ind_per_block_2_1; |
j | 192 | fs/sysv/truncate.c | i++, j = 0) { |
j | 200 | fs/sysv/truncate.c | retry |= coh_trunc_dindirect(inode,j,tind,sb->sv_convert,&bh->b_dirt); |
j | 40 | fs/xiafs/bitmap.c | int end, i, j, tmp; |
j | 59 | fs/xiafs/bitmap.c | for (j=0; j < 32; j++) |
j | 60 | fs/xiafs/bitmap.c | if (tmp & (1 << j)) |
j | 63 | fs/xiafs/bitmap.c | "=q" (res):"r" (j),"m" (bmap[i])); |
j | 65 | fs/xiafs/bitmap.c | start_bit=j + (i << 5) + 1; |
j | 69 | fs/xiafs/bitmap.c | return j + (i << 5); |
j | 32 | kernel/ioport.c | int i, j; |
j | 35 | kernel/ioport.c | for (i = j = 0; j < numl; ++i) |
j | 38 | kernel/ioport.c | printk("%s ", ios(current->tss.io_bitmap[j++])); |
j | 39 | kernel/ioport.c | if (j < numl) |
j | 40 | kernel/ioport.c | printk("%s", ios(current->tss.io_bitmap[j++])); |
j | 75 | kernel/itimer.c | register unsigned long i, j; |
j | 79 | kernel/itimer.c | j = tvtojiffies(&value->it_value); |
j | 84 | kernel/itimer.c | if (j) { |
j | 85 | kernel/itimer.c | j += 1+itimer_ticks; |
j | 86 | kernel/itimer.c | if (j < itimer_next) |
j | 87 | kernel/itimer.c | itimer_next = j; |
j | 89 | kernel/itimer.c | current->it_real_value = j; |
j | 93 | kernel/itimer.c | if (j) |
j | 94 | kernel/itimer.c | j++; |
j | 95 | kernel/itimer.c | current->it_virt_value = j; |
j | 99 | kernel/itimer.c | if (j) |
j | 100 | kernel/itimer.c | j++; |
j | 101 | kernel/itimer.c | current->it_prof_value = j; |
j | 57 | kernel/printk.c | unsigned long i, j, count; |
j | 115 | kernel/printk.c | j = log_start + log_size - count; |
j | 117 | kernel/printk.c | c = *((char *) log_buf+(j++ & (LOG_BUF_LEN-1))); |
j | 205 | kernel/printk.c | int i,j; |
j | 213 | kernel/printk.c | for (i=0,j=0; i < log_size; i++) { |
j | 214 | kernel/printk.c | buf[j++] = log_buf[p]; |
j | 216 | kernel/printk.c | if (buf[j-1] != '\n' && i < log_size - 1 && j < sizeof(buf)-1) |
j | 218 | kernel/printk.c | buf[j] = 0; |
j | 226 | kernel/printk.c | if (buf[j-1] == '\n') |
j | 228 | kernel/printk.c | j = 0; |
j | 86 | mm/memory.c | int j; |
j | 100 | mm/memory.c | for (j = 0 ; j < PTRS_PER_PAGE ; j++,page_table++) { |
j | 224 | mm/memory.c | int j; |
j | 247 | mm/memory.c | for (j = 0 ; j < PTRS_PER_PAGE ; j++,old_page_table++,new_page_table++) { |
j | 1179 | mm/memory.c | int i, j; |
j | 1198 | mm/memory.c | for (i=0, j=0; i< PAGE_SIZE ; j++, block++, i += inode->i_sb->s_blocksize) |
j | 1199 | mm/memory.c | nr[j] = bmap(inode,block); |
j | 88 | mm/swap.c | int i, j; |
j | 92 | mm/swap.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j +=p->swap_file->i_sb->s_blocksize) |
j | 549 | mm/swap.c | int j; |
j | 554 | mm/swap.c | for(j = 0, tmp = bh; tmp && (!j || tmp != bh); |
j | 555 | mm/swap.c | tmp = tmp->b_this_page, j++) |
j | 772 | mm/swap.c | int i,j; |
j | 830 | mm/swap.c | j = 0; |
j | 839 | mm/swap.c | j++; |
j | 842 | mm/swap.c | if (!j) { |
j | 861 | mm/swap.c | p->pages = j; |
j | 862 | mm/swap.c | nr_swap_pages += j; |
j | 863 | mm/swap.c | printk("Adding Swap: %dk swap-space\n",j<<2); |
j | 879 | mm/swap.c | unsigned int i, j; |
j | 885 | mm/swap.c | for (j = 0; j < swap_info[i].max; ++j) |
j | 886 | mm/swap.c | switch (swap_info[i].swap_map[j]) { |
j | 174 | net/inet/sock.c | int i, j; |
j | 186 | net/inet/sock.c | j = 0; |
j | 190 | net/inet/sock.c | j++; |
j | 192 | net/inet/sock.c | if (j == 0) { |
j | 198 | net/inet/sock.c | if (j < size) { |
j | 200 | net/inet/sock.c | size = j; |
j | 119 | zBoot/inflate.c | register unsigned j; /* counter */ |
j | 152 | zBoot/inflate.c | for (j = 1; j <= BMAX; j++) |
j | 153 | zBoot/inflate.c | if (c[j]) |
j | 155 | zBoot/inflate.c | k = j; /* minimum code length */ |
j | 156 | zBoot/inflate.c | if ((unsigned)l < j) |
j | 157 | zBoot/inflate.c | l = j; |
j | 169 | zBoot/inflate.c | for (y = 1 << j; j < i; j++, y <<= 1) |
j | 170 | zBoot/inflate.c | if ((y -= c[j]) < 0) |
j | 179 | zBoot/inflate.c | x[1] = j = 0; |
j | 182 | zBoot/inflate.c | *xp++ = (j += *p++); |
j | 190 | zBoot/inflate.c | if ((j = *p++) != 0) |
j | 191 | zBoot/inflate.c | v[x[j]++] = i; |
j | 224 | zBoot/inflate.c | if ((f = 1 << (j = k - w)) > a + 1) /* try a k-w bit table */ |
j | 229 | zBoot/inflate.c | while (++j < z) /* try smaller tables up to z bits */ |
j | 237 | zBoot/inflate.c | z = 1 << j; /* table entries for j-bit table */ |
j | 261 | zBoot/inflate.c | r.e = (uch)(16 + j); /* bits in this table */ |
j | 263 | zBoot/inflate.c | j = i >> (w - l); /* (get around Turbo C bug) */ |
j | 264 | zBoot/inflate.c | u[h-1][j] = r; /* connect to last table */ |
j | 288 | zBoot/inflate.c | for (j = i >> w; j < z; j += f) |
j | 289 | zBoot/inflate.c | q[j] = r; |
j | 292 | zBoot/inflate.c | for (j = 1 << (k - 1); i & j; j >>= 1) |
j | 293 | zBoot/inflate.c | i ^= j; |
j | 294 | zBoot/inflate.c | i ^= j; |
j | 556 | zBoot/inflate.c | unsigned j; |
j | 602 | zBoot/inflate.c | for (j = 0; j < nb; j++) |
j | 605 | zBoot/inflate.c | ll[border[j]] = (unsigned)b & 7; |
j | 608 | zBoot/inflate.c | for (; j < 19; j++) |
j | 609 | zBoot/inflate.c | ll[border[j]] = 0; |
j | 631 | zBoot/inflate.c | j = (td = tl + ((unsigned)b & m))->b; |
j | 632 | zBoot/inflate.c | DUMPBITS(j) |
j | 633 | zBoot/inflate.c | j = td->v.n; |
j | 634 | zBoot/inflate.c | if (j < 16) /* length of code in bits (0..15) */ |
j | 635 | zBoot/inflate.c | ll[i++] = l = j; /* save last length in l */ |
j | 636 | zBoot/inflate.c | else if (j == 16) /* repeat last length 3 to 6 times */ |
j | 639 | zBoot/inflate.c | j = 3 + ((unsigned)b & 3); |
j | 641 | zBoot/inflate.c | if ((unsigned)i + j > n) |
j | 643 | zBoot/inflate.c | while (j--) |
j | 646 | zBoot/inflate.c | else if (j == 17) /* 3 to 10 zero length codes */ |
j | 649 | zBoot/inflate.c | j = 3 + ((unsigned)b & 7); |
j | 651 | zBoot/inflate.c | if ((unsigned)i + j > n) |
j | 653 | zBoot/inflate.c | while (j--) |
j | 660 | zBoot/inflate.c | j = 11 + ((unsigned)b & 0x7f); |
j | 662 | zBoot/inflate.c | if ((unsigned)i + j > n) |
j | 664 | zBoot/inflate.c | while (j--) |