tag | line | file | source code |
j | 165 | drivers/block/genhd.c | int j = start + dev->max_p; |
j | 171 | drivers/block/genhd.c | for (i=start ; i < j ; i++) |
j | 178 | drivers/block/genhd.c | int j = dev->max_nr * dev->max_p; |
j | 183 | drivers/block/genhd.c | for (i = 0 ; i < j; i++) { |
j | 192 | drivers/block/genhd.c | for (i=0 ; i < j ; i++) |
j | 780 | drivers/block/sbpcd.c | int i,j; |
j | 786 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 787 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) return (j); |
j | 788 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) return (j); |
j | 789 | drivers/block/sbpcd.c | if (!new_drive) if (j&s_attention) return (j); |
j | 796 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 797 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) return (j); |
j | 798 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) return (j); |
j | 799 | drivers/block/sbpcd.c | if (!new_drive) if (j&s_attention) return (j); |
j | 809 | drivers/block/sbpcd.c | int i,j, st=0; |
j | 816 | drivers/block/sbpcd.c | for (j=maxtim_8;j!=0;j--) |
j | 821 | drivers/block/sbpcd.c | if (j==0) |
j | 832 | drivers/block/sbpcd.c | for (j=maxtim_data; ; ) |
j | 834 | drivers/block/sbpcd.c | for ( ;j!=0;j-- ) |
j | 839 | drivers/block/sbpcd.c | if (j != 0 || timeout <= jiffies) break; |
j | 841 | drivers/block/sbpcd.c | j = 1; |
j | 870 | drivers/block/sbpcd.c | int i,j; |
j | 877 | drivers/block/sbpcd.c | if (flags_cmd_out & f_respo3) j = maxtim_8; |
j | 878 | drivers/block/sbpcd.c | else if (flags_cmd_out&f_respo2) j=maxtim16; |
j | 879 | drivers/block/sbpcd.c | else j=maxtim04; |
j | 880 | drivers/block/sbpcd.c | for (;j!=0;j--) |
j | 891 | drivers/block/sbpcd.c | j=maxtim_8; |
j | 894 | drivers/block/sbpcd.c | for ( ;j!=0;j--) |
j | 899 | drivers/block/sbpcd.c | if (j != 0 || timeout <= jiffies) break; |
j | 901 | drivers/block/sbpcd.c | j = 1; |
j | 905 | drivers/block/sbpcd.c | if (j==0) |
j | 1361 | drivers/block/sbpcd.c | int i,j; |
j | 1364 | drivers/block/sbpcd.c | for (j=255;j>0;j--) |
j | 1389 | drivers/block/sbpcd.c | if ((!st_spinning) || (j==1)) |
j | 1878 | drivers/block/sbpcd.c | int i, j; |
j | 1925 | drivers/block/sbpcd.c | for (j=0;j<4;j++) DriveStruct[d].firmware_version[j]=infobuf[i+j]; |
j | 1926 | drivers/block/sbpcd.c | j = (DriveStruct[d].firmware_version[0] & 0x0F) * 100 + |
j | 1931 | drivers/block/sbpcd.c | if (j<100) DriveStruct[d].drv_type=drv_099; |
j | 1934 | drivers/block/sbpcd.c | else if (j<200) DriveStruct[d].drv_type=drv_199; |
j | 1935 | drivers/block/sbpcd.c | else if (j<201) DriveStruct[d].drv_type=drv_200; |
j | 1936 | drivers/block/sbpcd.c | else if (j<210) DriveStruct[d].drv_type=drv_201; |
j | 1937 | drivers/block/sbpcd.c | else if (j<211) DriveStruct[d].drv_type=drv_210; |
j | 1938 | drivers/block/sbpcd.c | else if (j<300) DriveStruct[d].drv_type=drv_211; |
j | 1962 | drivers/block/sbpcd.c | int i, j; |
j | 1968 | drivers/block/sbpcd.c | for (j=0;j<NR_SBPCD;j++) |
j | 1970 | drivers/block/sbpcd.c | DriveStruct[j].drv_minor=j; |
j | 1971 | drivers/block/sbpcd.c | switch_drive(j); |
j | 1972 | drivers/block/sbpcd.c | DPRINTF((DBG_ID,"SBPCD: check_drives: drive %d activated.\n",j)); |
j | 1978 | drivers/block/sbpcd.c | DriveStruct[d].drv_options=drv_pattern[j]; |
j | 2136 | drivers/block/sbpcd.c | int i, j; |
j | 2139 | drivers/block/sbpcd.c | for (j=DriveStruct[d].n_first_track;j<=DriveStruct[d].n_last_track;j++) |
j | 2141 | drivers/block/sbpcd.c | i=xx_ReadTocEntry(j); |
j | 2143 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].nixbyte=DriveStruct[d].TocEnt_nixbyte; |
j | 2144 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].ctl_adr=DriveStruct[d].TocEnt_ctl_adr; |
j | 2145 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].number=DriveStruct[d].TocEnt_number; |
j | 2146 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].format=DriveStruct[d].TocEnt_format; |
j | 2147 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].address=DriveStruct[d].TocEnt_address; |
j | 2151 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].nixbyte=0; |
j | 2152 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].ctl_adr=0; |
j | 2153 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].number=CDROM_LEADOUT; |
j | 2154 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].format=0; |
j | 2155 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].address=DriveStruct[d].size_msf; |
j | 2163 | drivers/block/sbpcd.c | int i, j; |
j | 2170 | drivers/block/sbpcd.c | for (j=1;j<LOOP_COUNT;j++) |
j | 2186 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: DiskInfo: ReadCapacity #%d returns %d\n", j, i)); |
j | 2189 | drivers/block/sbpcd.c | if (j==LOOP_COUNT) return (-2); /* give up */ |
j | 2660 | drivers/block/sbpcd.c | int i=0, j=0, frame, block; |
j | 2746 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 2747 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) break; |
j | 2748 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) break; |
j | 2749 | drivers/block/sbpcd.c | if (!new_drive) if (j&s_attention) break; |
j | 2764 | drivers/block/sbpcd.c | if (j&s_not_data_ready) |
j | 2800 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 2801 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) break; |
j | 2802 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) break; |
j | 2803 | drivers/block/sbpcd.c | if (j&s_attention) break; |
j | 2810 | drivers/block/sbpcd.c | if (!(j&s_attention)) |
j | 3092 | drivers/block/sbpcd.c | int i=0, j=0, frame; |
j | 3115 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 3116 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) break; |
j | 3117 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) break; |
j | 3118 | drivers/block/sbpcd.c | if (!new_drive) if (j&s_attention) break; |
j | 3133 | drivers/block/sbpcd.c | if (j&s_not_data_ready) |
j | 3185 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 3186 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) break; |
j | 3187 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) break; |
j | 3188 | drivers/block/sbpcd.c | if (j&s_attention) break; |
j | 3195 | drivers/block/sbpcd.c | if (!(j&s_attention)) |
j | 3457 | drivers/block/sbpcd.c | int i=0, j=0; |
j | 3541 | drivers/block/sbpcd.c | for (j=0;j<NR_SBPCD;j++) |
j | 3543 | drivers/block/sbpcd.c | if (DriveStruct[j].drv_minor==-1) continue; |
j | 3544 | drivers/block/sbpcd.c | switch_drive(j); |
j | 3609 | drivers/block/sbpcd.c | for (j=0;j<NR_SBPCD;j++) |
j | 3611 | drivers/block/sbpcd.c | if (DriveStruct[j].drv_minor==-1) continue; |
j | 3615 | drivers/block/sbpcd.c | DriveStruct[j].sbp_buf=(u_char *)mem_start; |
j | 3619 | drivers/block/sbpcd.c | DriveStruct[j].aud_buf=(u_char *)mem_start; |
j | 3622 | drivers/block/sbpcd.c | else DriveStruct[j].aud_buf=NULL; |
j | 3626 | drivers/block/sbpcd.c | sbpcd_blocksizes[j]=CD_FRAMESIZE; |
j | 134 | drivers/block/xd.c | u_char i,j,found = 0; |
j | 144 | drivers/block/xd.c | for (j = 1; j < (sizeof(xd_sigs) / sizeof(xd_sigs[0])) && !found; j++) |
j | 145 | drivers/block/xd.c | if (!memcmp(xd_bases[i] + xd_sigs[j].offset,xd_sigs[j].string,strlen(xd_sigs[j].string))) { |
j | 146 | drivers/block/xd.c | *controller = j; |
j | 737 | drivers/char/keyboard.c | int i, j, k, sym, val; |
j | 746 | drivers/char/keyboard.c | for(j=0; j<32; j++,k++) |
j | 862 | drivers/char/keyboard.c | int i, j; |
j | 872 | drivers/char/keyboard.c | for(j = 0; j < 100000 ; j++) |
j | 395 | drivers/net/depca.c | int i,j, status=0; |
j | 419 | drivers/net/depca.c | for (j = 0, i = 0; mem_base[i] && (j == 0);) { |
j | 424 | drivers/net/depca.c | j = 1; /* set exit flag */ |
j | 452 | drivers/net/depca.c | j = 1; |
j | 454 | drivers/net/depca.c | j = 0; |
j | 459 | drivers/net/depca.c | printk("%2.2x:", dev->dev_addr[i] = inb(DEPCA_PROM + j)); |
j | 461 | drivers/net/depca.c | printk("%2.2x", dev->dev_addr[i] = inb(DEPCA_PROM + j)); |
j | 464 | drivers/net/depca.c | j=inb(DEPCA_PROM); |
j | 517 | drivers/net/depca.c | j = (((netRAM << 10) - offset - sizeof(struct depca_private)) / |
j | 519 | drivers/net/depca.c | for (i=0;j>1;i++) { |
j | 520 | drivers/net/depca.c | j >>= 1; |
j | 527 | drivers/net/depca.c | j = 1 << i; |
j | 552 | drivers/net/depca.c | mem_start += (sizeof(struct depca_rx_head) * j); |
j | 555 | drivers/net/depca.c | mem_start += (sizeof(struct depca_tx_head) * j); |
j | 561 | drivers/net/depca.c | mem_start += (PKT_BUF_SZ * j); |
j | 565 | drivers/net/depca.c | memset(lp->rx_ring, 0, sizeof(struct depca_rx_head)*j); |
j | 566 | drivers/net/depca.c | memset(lp->tx_ring, 0, sizeof(struct depca_tx_head)*j); |
j | 577 | drivers/net/depca.c | lp->ringSize = j; |
j | 585 | drivers/net/depca.c | for (i=0, j = lp->ringSize; j>1; i++) { |
j | 586 | drivers/net/depca.c | j >>= 1; |
j | 1255 | drivers/net/depca.c | char j, ctrl, bit, octet, hashcode; |
j | 1263 | drivers/net/depca.c | for(j=0;j<8;j++) { /* process each address bit */ |
j | 1264 | drivers/net/depca.c | bit = (((char)* (addrs+ETH_ALEN*i+octet)) >> j) & 0x01; |
j | 1273 | drivers/net/depca.c | for (j=0;j<5;j++) { /* ... in reverse order. */ |
j | 1396 | drivers/net/depca.c | unsigned long i,j,k; |
j | 1408 | drivers/net/depca.c | for (j=0,k=0;j<16 && k<strlen(signatures[i]);j++) { |
j | 1409 | drivers/net/depca.c | if (signatures[i][k] == tmpstr[j]) { /* track signature */ |
j | 1439 | drivers/net/depca.c | int i, j, nicsr, status = 0; |
j | 1462 | drivers/net/depca.c | for (i=0,j=0;devSig[i] != '\0' && !status;i+=2,j++) { |
j | 1466 | drivers/net/depca.c | devSig[j]=devSig[i]+devSig[i+1]; |
j | 1474 | drivers/net/depca.c | sigLength=j; |
j | 1487 | drivers/net/depca.c | for (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) { |
j | 1489 | drivers/net/depca.c | if (devSig[j] == data) { /* track signature */ |
j | 1490 | drivers/net/depca.c | j++; |
j | 1492 | drivers/net/depca.c | j=0; |
j | 1496 | drivers/net/depca.c | if (j!=sigLength) { |
j | 310 | drivers/net/ni65.c | int i,j; |
j | 380 | drivers/net/ni65.c | for(j=0;j<2000000;j++); /* wait a while */ |
j | 639 | drivers/net/sk_g16.c | int i,j; /* Counters */ |
j | 759 | drivers/net/sk_g16.c | for (i = 0, j = 0; i < ETH_ALEN; i++, j+=2) |
j | 761 | drivers/net/sk_g16.c | dev->dev_addr[i] = board->rom[j]; |
j | 1783 | drivers/net/sk_g16.c | int i,j; |
j | 1798 | drivers/net/sk_g16.c | for (j = 0; j < 6; j++) |
j | 1800 | drivers/net/sk_g16.c | test_byte = (unsigned char *) (rom_location[i]+j); |
j | 1803 | drivers/net/sk_g16.c | if(!(*test_byte == rom_id[j])) |
j | 407 | drivers/scsi/53c7,8xx.c | int i, j, ccf; |
j | 574 | drivers/scsi/53c7,8xx.c | for (j = 0; j < 8; ++j) |
j | 575 | drivers/scsi/53c7,8xx.c | hostdata->busy[i][j] = 0; |
j | 2059 | drivers/scsi/53c7,8xx.c | int i, j, error, len; |
j | 2088 | drivers/scsi/53c7,8xx.c | for (ptr = input_buf + len, j = 0; j < debugger_tokens[i].nargs && *ptr;) { |
j | 2092 | drivers/scsi/53c7,8xx.c | args[j++] = simple_strtoul (ptr, &ptr, 0); |
j | 2098 | drivers/scsi/53c7,8xx.c | if (j != debugger_tokens[i].nargs) |
j | 522 | drivers/scsi/aha152x.c | int i, j, ok; |
j | 591 | drivers/scsi/aha152x.c | for( j=0; (j < SIGNATURE_COUNT) && !ok; j++) |
j | 592 | drivers/scsi/aha152x.c | ok=!memcmp((void *) addresses[i]+signatures[j].sig_offset, |
j | 593 | drivers/scsi/aha152x.c | (void *) signatures[j].signature, |
j | 594 | drivers/scsi/aha152x.c | (int) signatures[j].sig_length); |
j | 489 | drivers/scsi/fdomain.c | int i, j; |
j | 510 | drivers/scsi/fdomain.c | for (j = 0; !bios_base && j < SIGNATURE_COUNT; j++) { |
j | 511 | drivers/scsi/fdomain.c | if (!memcmp( ((char *)addresses[i] + signatures[j].sig_offset), |
j | 512 | drivers/scsi/fdomain.c | signatures[j].signature, signatures[j].sig_length )) { |
j | 513 | drivers/scsi/fdomain.c | bios_major = signatures[j].major_bios_version; |
j | 514 | drivers/scsi/fdomain.c | bios_minor = signatures[j].minor_bios_version; |
j | 515 | drivers/scsi/fdomain.c | PCI_bus = signatures[j].PCI_bus; |
j | 711 | drivers/scsi/fdomain.c | for (j = 8; j < (buf[4] < 32 ? buf[4] : 32); j++) |
j | 712 | drivers/scsi/fdomain.c | printk( "%c", buf[j] >= 20 ? buf[j] : ' ' ); |
j | 179 | drivers/scsi/hosts.c | int j; |
j | 181 | drivers/scsi/hosts.c | j = sh->extra_bytes; |
j | 191 | drivers/scsi/hosts.c | scsi_init_free((char *) sh, sizeof(struct Scsi_Host) + j); |
j | 198 | drivers/scsi/hosts.c | struct Scsi_Host * scsi_register(Scsi_Host_Template * tpnt, int j){ |
j | 200 | drivers/scsi/hosts.c | retval = (struct Scsi_Host *)scsi_init_malloc(sizeof(struct Scsi_Host) + j); |
j | 202 | drivers/scsi/hosts.c | if(j > 0xffff) panic("Too many extra bytes requested\n"); |
j | 203 | drivers/scsi/hosts.c | retval->extra_bytes = j; |
j | 213 | drivers/scsi/hosts.c | printk("Register %x %x: %d\n", retval, retval->hostt, j); |
j | 246 | drivers/scsi/hosts.c | int i, j, count, pcount; |
j | 276 | drivers/scsi/hosts.c | for(j = 0; j < tpnt->present; j++) |
j | 277 | drivers/scsi/hosts.h | extern struct Scsi_Host * scsi_register(Scsi_Host_Template *, int j); |
j | 1644 | drivers/scsi/scsi.c | int i, j; |
j | 1653 | drivers/scsi/scsi.c | for(j=0; j<17-nbits; j++){ |
j | 1654 | drivers/scsi/scsi.c | if ((dma_malloc_freelist[i] & (mask << j)) == 0){ |
j | 1655 | drivers/scsi/scsi.c | dma_malloc_freelist[i] |= (mask << j); |
j | 1659 | drivers/scsi/scsi.c | printk("SMalloc: %d %x ",len, dma_malloc_buffer + (i << 13) + (j << 9)); |
j | 1661 | drivers/scsi/scsi.c | return (void *) ((unsigned long) dma_malloc_buffer + (i << 13) + (j << 9)); |
j | 1768 | drivers/scsi/scsi.c | int j; |
j | 1773 | drivers/scsi/scsi.c | for(j=0;j<SDpnt->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 | 275 | drivers/scsi/seagate.c | int i,j; |
j | 320 | drivers/scsi/seagate.c | for (j = 0; !base_address && j < NUM_SIGNATURES; ++j) |
j | 322 | drivers/scsi/seagate.c | signatures[j].offset), (void *) signatures[j].signature, |
j | 323 | drivers/scsi/seagate.c | signatures[j].length)) { |
j | 325 | drivers/scsi/seagate.c | controller_type = signatures[j].type; |
j | 1102 | drivers/scsi/wd7000.c | int i,j, present = 0; |
j | 1114 | drivers/scsi/wd7000.c | for (j = 0; j < NUM_SIGNATURES; j++) { |
j | 176 | drivers/sound/dev_table.c | int card_type, ioaddr, irq, dma, ptr, j; |
j | 196 | drivers/sound/dev_table.c | for (j = 0; j < n && ptr == -1; j++) |
j | 197 | drivers/sound/dev_table.c | if (snd_installed_cards[j].card_type == card_type && |
j | 198 | drivers/sound/dev_table.c | !snd_installed_cards[j].enabled) /* |
j | 201 | drivers/sound/dev_table.c | ptr = j; |
j | 221 | drivers/sound/dev_table.c | int ptr, j; |
j | 224 | drivers/sound/dev_table.c | for (j = 0; j < n && ptr == -1; j++) |
j | 225 | drivers/sound/dev_table.c | if (snd_installed_cards[j].card_type == card_type && |
j | 226 | drivers/sound/dev_table.c | !snd_installed_cards[j].enabled) /* |
j | 229 | drivers/sound/dev_table.c | ptr = j; |
j | 248 | drivers/sound/dev_table.c | int j, ptr; |
j | 252 | drivers/sound/dev_table.c | for (j = 0; j < n && ptr == -1; j++) |
j | 253 | drivers/sound/dev_table.c | if (snd_installed_cards[j].card_type == card_type) |
j | 254 | drivers/sound/dev_table.c | ptr = j; |
j | 666 | drivers/sound/pss.c | int j; |
j | 668 | drivers/sound/pss.c | for (j = 0; j < 327670; j++) |
j | 675 | drivers/sound/pss.c | if (j == 327670) |
j | 22 | fs/block_dev.c | int blocksize, blocksize_bits, i, j, buffercount,write_error; |
j | 94 | fs/block_dev.c | for(j=0; j<blocks_per_cluster; j++) cluster_list[j] = block+i+j; |
j | 829 | fs/buffer.c | int i, j; |
j | 850 | fs/buffer.c | j = 1; |
j | 857 | fs/buffer.c | bhlist[j++] = bh; |
j | 861 | fs/buffer.c | ll_rw_block(READ, j, bhlist); |
j | 863 | fs/buffer.c | for(i=1; i<j; i++) |
j | 1120 | fs/buffer.c | int i, j; |
j | 1128 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j+= size) { |
j | 1135 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j += size, where += 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 | 97 | fs/ext2/balloc.c | int i, j; |
j | 128 | fs/ext2/balloc.c | for (j = i; j > 0; j--) { |
j | 129 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[j] = |
j | 130 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[j - 1]; |
j | 131 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[j] = |
j | 132 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[j - 1]; |
j | 141 | fs/ext2/balloc.c | for (j = sb->u.ext2_sb.s_loaded_block_bitmaps - 1; j > 0; j--) { |
j | 142 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[j] = |
j | 143 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[j - 1]; |
j | 144 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[j] = |
j | 145 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[j - 1]; |
j | 258 | fs/ext2/balloc.c | int i, j, k, tmp; |
j | 289 | fs/ext2/balloc.c | j = ((goal - es->s_first_data_block) % EXT2_BLOCKS_PER_GROUP(sb)); |
j | 291 | fs/ext2/balloc.c | if (j) |
j | 297 | fs/ext2/balloc.c | ext2_debug ("goal is at %d:%d.\n", i, j); |
j | 299 | fs/ext2/balloc.c | if (!test_bit(j, bh->b_data)) { |
j | 306 | fs/ext2/balloc.c | if (j) { |
j | 311 | fs/ext2/balloc.c | lmap = ((((unsigned long *) bh->b_data)[j >> 5]) >> |
j | 312 | fs/ext2/balloc.c | ((j & 31) + 1)); |
j | 313 | fs/ext2/balloc.c | if (j < EXT2_BLOCKS_PER_GROUP(sb) - 32) |
j | 314 | fs/ext2/balloc.c | lmap |= (((unsigned long *) bh->b_data)[(j >> 5) + 1]) << |
j | 315 | fs/ext2/balloc.c | (31 - (j & 31)); |
j | 317 | fs/ext2/balloc.c | lmap |= 0xffffffff << (31 - (j & 31)); |
j | 320 | fs/ext2/balloc.c | if ((j + k) < EXT2_BLOCKS_PER_GROUP(sb)) { |
j | 321 | fs/ext2/balloc.c | j += k; |
j | 338 | fs/ext2/balloc.c | p = ((char *) bh->b_data) + (j >> 3); |
j | 339 | fs/ext2/balloc.c | r = memscan(p, 0, (EXT2_BLOCKS_PER_GROUP(sb) - j + 7) >> 3); |
j | 342 | fs/ext2/balloc.c | j = k; |
j | 347 | fs/ext2/balloc.c | j); |
j | 349 | fs/ext2/balloc.c | j = k; |
j | 375 | fs/ext2/balloc.c | j = (r - bh->b_data) << 3; |
j | 376 | fs/ext2/balloc.c | if (j < EXT2_BLOCKS_PER_GROUP(sb)) |
j | 379 | fs/ext2/balloc.c | j = find_first_zero_bit ((unsigned long *) bh->b_data, |
j | 381 | fs/ext2/balloc.c | if (j >= EXT2_BLOCKS_PER_GROUP(sb)) { |
j | 394 | fs/ext2/balloc.c | for (k = 0; k < 7 && j > 0 && !test_bit (j - 1, bh->b_data); k++, j--); |
j | 400 | fs/ext2/balloc.c | tmp = j + i * EXT2_BLOCKS_PER_GROUP(sb) + es->s_first_data_block; |
j | 410 | fs/ext2/balloc.c | if (set_bit (j, bh->b_data)) { |
j | 412 | fs/ext2/balloc.c | "bit already set for block %d", j); |
j | 416 | fs/ext2/balloc.c | ext2_debug ("found bit %d\n", j); |
j | 426 | fs/ext2/balloc.c | k < 8 && (j + k) < EXT2_BLOCKS_PER_GROUP(sb); k++) { |
j | 427 | fs/ext2/balloc.c | if (set_bit (j + k, bh->b_data)) |
j | 438 | fs/ext2/balloc.c | j = tmp; |
j | 446 | fs/ext2/balloc.c | if (j >= es->s_blocks_count) { |
j | 449 | fs/ext2/balloc.c | "block_group = %d, block=%d", i, j); |
j | 453 | fs/ext2/balloc.c | if (!(bh = getblk (sb->s_dev, j, sb->s_blocksize))) { |
j | 454 | fs/ext2/balloc.c | ext2_error (sb, "ext2_new_block", "cannot get block %d", j); |
j | 464 | fs/ext2/balloc.c | "Goal hits %d of %d.\n", j, goal_hits, goal_attempts); |
j | 472 | fs/ext2/balloc.c | return j; |
j | 524 | fs/ext2/balloc.c | int i, j; |
j | 543 | fs/ext2/balloc.c | for (j = 0; j < desc_blocks; j++) |
j | 544 | fs/ext2/balloc.c | if (!test_bit (j + 1, bh->b_data)) |
j | 547 | fs/ext2/balloc.c | "%d is marked free", j, i); |
j | 559 | fs/ext2/balloc.c | for (j = 0; j < sb->u.ext2_sb.s_itb_per_group; j++) |
j | 560 | fs/ext2/balloc.c | if (!block_in_use (gdp->bg_inode_table + j, sb, bh->b_data)) |
j | 563 | fs/ext2/balloc.c | "group %d is marked free", j, i); |
j | 95 | fs/ext2/ialloc.c | int i, j; |
j | 128 | fs/ext2/ialloc.c | for (j = i; j > 0; j--) { |
j | 129 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j] = |
j | 130 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j - 1]; |
j | 131 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j] = |
j | 132 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j - 1]; |
j | 141 | fs/ext2/ialloc.c | for (j = sb->u.ext2_sb.s_loaded_inode_bitmaps - 1; j > 0; j--) { |
j | 142 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j] = |
j | 143 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j - 1]; |
j | 144 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j] = |
j | 145 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j - 1]; |
j | 309 | fs/ext2/ialloc.c | int i, j, avefreei; |
j | 343 | fs/ext2/ialloc.c | for (j = 0; j < sb->u.ext2_sb.s_groups_count; j++) { |
j | 344 | fs/ext2/ialloc.c | tmp = get_group_desc (sb, j, &bh2); |
j | 350 | fs/ext2/ialloc.c | i = j; |
j | 372 | fs/ext2/ialloc.c | for (j = 1; j < sb->u.ext2_sb.s_groups_count; j <<= 1) { |
j | 373 | fs/ext2/ialloc.c | i += j; |
j | 388 | fs/ext2/ialloc.c | for (j = 2; j < sb->u.ext2_sb.s_groups_count; j++) { |
j | 407 | fs/ext2/ialloc.c | if ((j = find_first_zero_bit ((unsigned long *) bh->b_data, |
j | 410 | fs/ext2/ialloc.c | if (set_bit (j, bh->b_data)) { |
j | 412 | fs/ext2/ialloc.c | "bit already set for inode %d", j); |
j | 431 | fs/ext2/ialloc.c | j += i * EXT2_INODES_PER_GROUP(sb) + 1; |
j | 432 | fs/ext2/ialloc.c | if (j < EXT2_FIRST_INO || j > es->s_inodes_count) { |
j | 435 | fs/ext2/ialloc.c | "block_group = %d,inode=%d", i, j); |
j | 462 | fs/ext2/ialloc.c | inode->i_ino = j; |
j | 368 | fs/ext2/super.c | int i, j; |
j | 534 | fs/ext2/super.c | for (j = 0; j < i; j++) |
j | 535 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[j]); |
j | 546 | fs/ext2/super.c | for (j = 0; j < db_count; j++) |
j | 547 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[j]); |
j | 65 | fs/isofs/dir.c | unsigned int block,offset,i, j; |
j | 207 | fs/isofs/dir.c | for(j=0; j<i; j++) |
j | 208 | 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->files->fd[ 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 | 123 | fs/proc/fd.c | int i,j; |
j | 137 | fs/proc/fd.c | i = j = fd+1; |
j | 147 | fs/proc/fd.c | return j; |
j | 161 | fs/proc/fd.c | j = 10; |
j | 163 | fs/proc/fd.c | while (fd >= j) { |
j | 164 | fs/proc/fd.c | j *= 10; |
j | 167 | fs/proc/fd.c | j = i; |
j | 177 | fs/proc/fd.c | return j; |
j | 166 | fs/proc/net.c | int i,j; |
j | 179 | fs/proc/net.c | j = i; |
j | 182 | fs/proc/net.c | return j; |
j | 141 | fs/proc/root.c | int i,j; |
j | 155 | fs/proc/root.c | j = i; |
j | 158 | fs/proc/root.c | return j; |
j | 169 | fs/proc/root.c | j = 10; |
j | 171 | fs/proc/root.c | while (pid >= j) { |
j | 172 | fs/proc/root.c | j *= 10; |
j | 175 | fs/proc/root.c | j = i; |
j | 183 | fs/proc/root.c | return j; |
j | 91 | fs/select.c | int i,j; |
j | 94 | fs/select.c | for (j = 0 ; j < __FDSET_LONGS ; j++) { |
j | 95 | fs/select.c | i = j << 5; |
j | 98 | 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 | 576 | ibcs/binfmt_elf.c | int i,j, k; |
j | 616 | ibcs/binfmt_elf.c | j = 0; |
j | 618 | ibcs/binfmt_elf.c | if((elf_phdata + i)->p_type == PT_LOAD) j++; |
j | 620 | ibcs/binfmt_elf.c | if(j != 1) { |
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 | 56 | kernel/printk.c | unsigned long i, j, count; |
j | 114 | kernel/printk.c | j = log_start + log_size - count; |
j | 116 | kernel/printk.c | c = *((char *) log_buf+(j++ & (LOG_BUF_LEN-1))); |
j | 204 | kernel/printk.c | int i,j; |
j | 212 | kernel/printk.c | for (i=0,j=0; i < log_size; i++) { |
j | 213 | kernel/printk.c | buf[j++] = log_buf[p]; |
j | 215 | kernel/printk.c | if (buf[j-1] != '\n' && i < log_size - 1 && j < sizeof(buf)-1) |
j | 217 | kernel/printk.c | buf[j] = 0; |
j | 225 | kernel/printk.c | if (buf[j-1] == '\n') |
j | 227 | kernel/printk.c | j = 0; |
j | 96 | mm/memory.c | int j; |
j | 110 | mm/memory.c | for (j = 0 ; j < PTRS_PER_PAGE ; j++,page_table++) { |
j | 234 | mm/memory.c | int j; |
j | 257 | mm/memory.c | for (j = 0 ; j < PTRS_PER_PAGE ; j++,old_page_table++,new_page_table++) { |
j | 154 | mm/swap.c | int j; |
j | 157 | mm/swap.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j += 512){ |
j | 164 | mm/swap.c | int j; |
j | 168 | mm/swap.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j +=swapf->i_sb->s_blocksize) |
j | 794 | mm/swap.c | int i,j; |
j | 852 | mm/swap.c | j = 0; |
j | 861 | mm/swap.c | j++; |
j | 864 | mm/swap.c | if (!j) { |
j | 883 | mm/swap.c | p->pages = j; |
j | 884 | mm/swap.c | nr_swap_pages += j; |
j | 885 | mm/swap.c | printk("Adding Swap: %dk swap-space\n",j<<2); |
j | 901 | mm/swap.c | unsigned int i, j; |
j | 907 | mm/swap.c | for (j = 0; j < swap_info[i].max; ++j) |
j | 908 | mm/swap.c | switch (swap_info[i].swap_map[j]) { |
j | 94 | net/inet/af_inet.c | int i, j; |
j | 109 | net/inet/af_inet.c | j = 0; |
j | 114 | net/inet/af_inet.c | j++; |
j | 116 | net/inet/af_inet.c | if (j == 0) |
j | 121 | net/inet/af_inet.c | if (j < size) |
j | 124 | net/inet/af_inet.c | size = j; |
j | 874 | net/inet/arp.c | int i,j,k; |
j | 896 | net/inet/arp.c | for(k=0,j=0;k<HBUFFERLEN-3 && j<entry->hlen;j++) |
j | 898 | net/inet/arp.c | hbuffer[k++]=hexbuf[ (entry->ha[j]>>4)&15 ]; |
j | 899 | net/inet/arp.c | hbuffer[k++]=hexbuf[ entry->ha[j]&15 ]; |
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 | 253 | zBoot/inflate.c | r.e = (uch)(16 + j); /* bits in this table */ |
j | 255 | zBoot/inflate.c | j = i >> (w - l); /* (get around Turbo C bug) */ |
j | 256 | zBoot/inflate.c | u[h-1][j] = r; /* connect to last table */ |
j | 280 | zBoot/inflate.c | for (j = i >> w; j < z; j += f) |
j | 281 | zBoot/inflate.c | q[j] = r; |
j | 284 | zBoot/inflate.c | for (j = 1 << (k - 1); i & j; j >>= 1) |
j | 285 | zBoot/inflate.c | i ^= j; |
j | 286 | zBoot/inflate.c | i ^= j; |
j | 548 | zBoot/inflate.c | unsigned j; |
j | 594 | zBoot/inflate.c | for (j = 0; j < nb; j++) |
j | 597 | zBoot/inflate.c | ll[border[j]] = (unsigned)b & 7; |
j | 600 | zBoot/inflate.c | for (; j < 19; j++) |
j | 601 | zBoot/inflate.c | ll[border[j]] = 0; |
j | 623 | zBoot/inflate.c | j = (td = tl + ((unsigned)b & m))->b; |
j | 624 | zBoot/inflate.c | DUMPBITS(j) |
j | 625 | zBoot/inflate.c | j = td->v.n; |
j | 626 | zBoot/inflate.c | if (j < 16) /* length of code in bits (0..15) */ |
j | 627 | zBoot/inflate.c | ll[i++] = l = j; /* save last length in l */ |
j | 628 | zBoot/inflate.c | else if (j == 16) /* repeat last length 3 to 6 times */ |
j | 631 | zBoot/inflate.c | j = 3 + ((unsigned)b & 3); |
j | 633 | zBoot/inflate.c | if ((unsigned)i + j > n) |
j | 635 | zBoot/inflate.c | while (j--) |
j | 638 | zBoot/inflate.c | else if (j == 17) /* 3 to 10 zero length codes */ |
j | 641 | zBoot/inflate.c | j = 3 + ((unsigned)b & 7); |
j | 643 | zBoot/inflate.c | if ((unsigned)i + j > n) |
j | 645 | zBoot/inflate.c | while (j--) |
j | 652 | zBoot/inflate.c | j = 11 + ((unsigned)b & 0x7f); |
j | 654 | zBoot/inflate.c | if ((unsigned)i + j > n) |
j | 656 | zBoot/inflate.c | while (j--) |