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 | 815 | drivers/block/sbpcd.c | int i,j; |
j | 821 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 822 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) return (j); |
j | 823 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) return (j); |
j | 824 | drivers/block/sbpcd.c | if (!new_drive) if (j&s_attention) return (j); |
j | 831 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 832 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) return (j); |
j | 833 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) return (j); |
j | 834 | drivers/block/sbpcd.c | if (!new_drive) if (j&s_attention) return (j); |
j | 876 | drivers/block/sbpcd.c | int i,j, st=0; |
j | 883 | drivers/block/sbpcd.c | for (j=maxtim_8;j!=0;j--) |
j | 888 | drivers/block/sbpcd.c | if (j==0) |
j | 899 | drivers/block/sbpcd.c | for (j=maxtim_data; ; ) |
j | 901 | drivers/block/sbpcd.c | for ( ;j!=0;j-- ) |
j | 906 | drivers/block/sbpcd.c | if (j != 0 || timeout <= jiffies) break; |
j | 908 | drivers/block/sbpcd.c | j = 1; |
j | 949 | drivers/block/sbpcd.c | int i,j; |
j | 956 | drivers/block/sbpcd.c | if (flags_cmd_out & f_respo3) j = maxtim_8; |
j | 957 | drivers/block/sbpcd.c | else if (flags_cmd_out&f_respo2) j=maxtim16; |
j | 958 | drivers/block/sbpcd.c | else j=maxtim04; |
j | 959 | drivers/block/sbpcd.c | for (;j!=0;j--) |
j | 970 | drivers/block/sbpcd.c | j=maxtim_8; |
j | 973 | drivers/block/sbpcd.c | for ( ;j!=0;j--) |
j | 978 | drivers/block/sbpcd.c | if (j != 0 || timeout <= jiffies) break; |
j | 980 | drivers/block/sbpcd.c | j = 1; |
j | 984 | drivers/block/sbpcd.c | if (j==0) |
j | 1494 | drivers/block/sbpcd.c | int i,j; |
j | 1497 | drivers/block/sbpcd.c | for (j=255;j>0;j--) |
j | 1525 | drivers/block/sbpcd.c | if ((!st_spinning) || (j==1)) |
j | 2109 | drivers/block/sbpcd.c | int i, j, found; |
j | 2114 | drivers/block/sbpcd.c | j=look_for_drive(i); |
j | 2115 | drivers/block/sbpcd.c | if (j<1) continue; |
j | 2126 | drivers/block/sbpcd.c | int i, j; |
j | 2179 | drivers/block/sbpcd.c | for (j=0;j<8;j++) |
j | 2180 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[j]=infobuf[j]; |
j | 2190 | drivers/block/sbpcd.c | for (j=0;j<4;j++) DriveStruct[d].firmware_version[j]=infobuf[i+j]; |
j | 2202 | drivers/block/sbpcd.c | j = (DriveStruct[d].firmware_version[0] & 0x0F) * 100 + |
j | 2207 | drivers/block/sbpcd.c | if (j<100) DriveStruct[d].drv_type=drv_099; |
j | 2210 | drivers/block/sbpcd.c | else if (j<200) DriveStruct[d].drv_type=drv_199; |
j | 2211 | drivers/block/sbpcd.c | else if (j<201) DriveStruct[d].drv_type=drv_200; |
j | 2212 | drivers/block/sbpcd.c | else if (j<210) DriveStruct[d].drv_type=drv_201; |
j | 2213 | drivers/block/sbpcd.c | else if (j<211) DriveStruct[d].drv_type=drv_210; |
j | 2214 | drivers/block/sbpcd.c | else if (j<300) DriveStruct[d].drv_type=drv_211; |
j | 2240 | drivers/block/sbpcd.c | int i, j; |
j | 2246 | drivers/block/sbpcd.c | for (j=0;j<NR_SBPCD;j++) |
j | 2248 | drivers/block/sbpcd.c | DriveStruct[j].drv_minor=j; |
j | 2249 | drivers/block/sbpcd.c | switch_drive(j); |
j | 2250 | drivers/block/sbpcd.c | DPRINTF((DBG_ID,"SBPCD: check_drives: drive %d activated.\n",j)); |
j | 2256 | drivers/block/sbpcd.c | DriveStruct[d].drv_options=drv_pattern[j]; |
j | 2424 | drivers/block/sbpcd.c | int i, j; |
j | 2427 | drivers/block/sbpcd.c | for (j=DriveStruct[d].n_first_track;j<=DriveStruct[d].n_last_track;j++) |
j | 2429 | drivers/block/sbpcd.c | i=xx_ReadTocEntry(j); |
j | 2431 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].nixbyte=DriveStruct[d].TocEnt_nixbyte; |
j | 2432 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].ctl_adr=DriveStruct[d].TocEnt_ctl_adr; |
j | 2433 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].number=DriveStruct[d].TocEnt_number; |
j | 2434 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].format=DriveStruct[d].TocEnt_format; |
j | 2435 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].address=DriveStruct[d].TocEnt_address; |
j | 2439 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].nixbyte=0; |
j | 2440 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].ctl_adr=0; |
j | 2441 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].number=CDROM_LEADOUT; |
j | 2442 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].format=0; |
j | 2443 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].address=DriveStruct[d].size_msf; |
j | 2451 | drivers/block/sbpcd.c | int i, j; |
j | 2458 | drivers/block/sbpcd.c | for (j=1;j<LOOP_COUNT;j++) |
j | 2474 | drivers/block/sbpcd.c | DPRINTF((DBG_INF,"SBPCD: DiskInfo: ReadCapacity #%d returns %d\n", j, i)); |
j | 2477 | drivers/block/sbpcd.c | if (j==LOOP_COUNT) return (-2); /* give up */ |
j | 2975 | drivers/block/sbpcd.c | int i=0, j=0, frame, block; |
j | 3061 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 3062 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) break; |
j | 3063 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) break; |
j | 3064 | drivers/block/sbpcd.c | if (!new_drive) if (j&s_attention) break; |
j | 3079 | drivers/block/sbpcd.c | if (j&s_not_data_ready) |
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 (j&s_attention) break; |
j | 3125 | drivers/block/sbpcd.c | if (!(j&s_attention)) |
j | 3443 | drivers/block/sbpcd.c | int i=0, j=0, frame; |
j | 3466 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 3467 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) break; |
j | 3468 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) break; |
j | 3469 | drivers/block/sbpcd.c | if (!new_drive) if (j&s_attention) break; |
j | 3484 | drivers/block/sbpcd.c | if (j&s_not_data_ready) |
j | 3536 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 3537 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) break; |
j | 3538 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) break; |
j | 3539 | drivers/block/sbpcd.c | if (j&s_attention) break; |
j | 3546 | drivers/block/sbpcd.c | if (!(j&s_attention)) |
j | 3815 | drivers/block/sbpcd.c | int i=0, j=0; |
j | 3912 | drivers/block/sbpcd.c | for (j=0;j<NR_SBPCD;j++) |
j | 3914 | drivers/block/sbpcd.c | if (DriveStruct[j].drv_minor==-1) continue; |
j | 3915 | drivers/block/sbpcd.c | switch_drive(j); |
j | 3991 | drivers/block/sbpcd.c | for (j=0;j<NR_SBPCD;j++) |
j | 3993 | drivers/block/sbpcd.c | if (DriveStruct[j].drv_minor==-1) continue; |
j | 3997 | drivers/block/sbpcd.c | DriveStruct[j].sbp_buf=(u_char *)mem_start; |
j | 4001 | drivers/block/sbpcd.c | DriveStruct[j].aud_buf=(u_char *)mem_start; |
j | 4004 | drivers/block/sbpcd.c | else DriveStruct[j].aud_buf=NULL; |
j | 4008 | 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 | 192 | drivers/char/cyclades.c | #define small_delay(x) for(j=0;j<x;j++)k++; |
j | 547 | drivers/char/cyclades.c | int i,j; |
j | 591 | drivers/char/cyclades.c | j = (base_addr[CyRIVR] & CyIVRMask); |
j | 592 | drivers/char/cyclades.c | if ( j == CyIVRRxEx ) { /* exception */ |
j | 602 | drivers/char/cyclades.c | j = (base_addr[CyRIVR] & CyIVRMask); |
j | 603 | drivers/char/cyclades.c | if ( j == CyIVRRxEx ) { /* exception */ |
j | 949 | drivers/char/keyboard.c | int i, j, k, sym, val; |
j | 958 | drivers/char/keyboard.c | for(j=0; j<32; j++,k++) |
j | 1157 | drivers/char/keyboard.c | int i, j; |
j | 1167 | drivers/char/keyboard.c | for(j = 0; j < 100000 ; j++) |
j | 456 | drivers/char/vt.c | int j, k, sz; |
j | 470 | drivers/char/vt.c | for (j = i+1; j < MAX_NR_FUNC && !func_table[j]; j++) ; |
j | 471 | drivers/char/vt.c | if (j < MAX_NR_FUNC) |
j | 472 | drivers/char/vt.c | fj = func_table[j]; |
j | 484 | drivers/char/vt.c | if (j < MAX_NR_FUNC) { |
j | 486 | drivers/char/vt.c | for (k = j; k < MAX_NR_FUNC; k++) |
j | 505 | drivers/char/vt.c | for (k = 0; k < j; k++) |
j | 511 | drivers/char/vt.c | for (k = j; k < MAX_NR_FUNC; k++) |
j | 407 | drivers/net/depca.c | int i,j, status=0; |
j | 431 | drivers/net/depca.c | for (j = 0, i = 0; mem_base[i] && (j == 0);i++) { |
j | 436 | drivers/net/depca.c | j = 1; /* set exit flag */ |
j | 463 | drivers/net/depca.c | j = 1; |
j | 465 | drivers/net/depca.c | j = 0; |
j | 470 | drivers/net/depca.c | printk("%2.2x:", dev->dev_addr[i] = inb(DEPCA_PROM + j)); |
j | 472 | drivers/net/depca.c | printk("%2.2x", dev->dev_addr[i] = inb(DEPCA_PROM + j)); |
j | 475 | drivers/net/depca.c | j=inb(DEPCA_PROM); |
j | 528 | drivers/net/depca.c | j = (((netRAM << 10) - offset - sizeof(struct depca_private)) / |
j | 530 | drivers/net/depca.c | for (i=0;j>1;i++) { |
j | 531 | drivers/net/depca.c | j >>= 1; |
j | 538 | drivers/net/depca.c | j = 1 << i; |
j | 564 | drivers/net/depca.c | mem_start += (sizeof(struct depca_rx_head) * j); |
j | 567 | drivers/net/depca.c | mem_start += (sizeof(struct depca_tx_head) * j); |
j | 573 | drivers/net/depca.c | mem_start += (PKT_BUF_SZ * j); |
j | 577 | drivers/net/depca.c | memset(lp->rx_ring, 0, sizeof(struct depca_rx_head)*j); |
j | 578 | drivers/net/depca.c | memset(lp->tx_ring, 0, sizeof(struct depca_tx_head)*j); |
j | 589 | drivers/net/depca.c | lp->ringSize = j; |
j | 597 | drivers/net/depca.c | for (i=0, j = lp->ringSize; j>1; i++) { |
j | 598 | drivers/net/depca.c | j >>= 1; |
j | 1278 | drivers/net/depca.c | char j, ctrl, bit, octet, hashcode; |
j | 1286 | drivers/net/depca.c | for(j=0;j<8;j++) { /* process each address bit */ |
j | 1287 | drivers/net/depca.c | bit = (((char)* (addrs+ETH_ALEN*i+octet)) >> j) & 0x01; |
j | 1296 | drivers/net/depca.c | for (j=0;j<5;j++) { /* ... in reverse order. */ |
j | 1419 | drivers/net/depca.c | unsigned long i,j,k; |
j | 1431 | drivers/net/depca.c | for (j=0,k=0;j<16 && k<strlen(signatures[i]);j++) { |
j | 1432 | drivers/net/depca.c | if (signatures[i][k] == tmpstr[j]) { /* track signature */ |
j | 1462 | drivers/net/depca.c | int i, j, nicsr, status = 0; |
j | 1485 | drivers/net/depca.c | for (i=0,j=0;devSig[i] != '\0' && !status;i+=2,j++) { |
j | 1489 | drivers/net/depca.c | devSig[j]=devSig[i]+devSig[i+1]; |
j | 1497 | drivers/net/depca.c | sigLength=j; |
j | 1510 | drivers/net/depca.c | for (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) { |
j | 1512 | drivers/net/depca.c | if (devSig[j] == data) { /* track signature */ |
j | 1513 | drivers/net/depca.c | j++; |
j | 1515 | drivers/net/depca.c | j=0; |
j | 1519 | drivers/net/depca.c | if (j!=sigLength) { |
j | 1251 | drivers/net/ewrk3.c | char j, ctrl, bit, octet; |
j | 1288 | drivers/net/ewrk3.c | for(j=0;j<8;j++) { /* process each address bit */ |
j | 1289 | drivers/net/ewrk3.c | bit = (((char)* (addrs+ETH_ALEN*i+octet)) >> j) & 0x01; |
j | 1298 | drivers/net/ewrk3.c | for (j=0;j<8;j++) { /* ... in reverse order. */ |
j | 1490 | drivers/net/ewrk3.c | unsigned long i,j,k; |
j | 1495 | drivers/net/ewrk3.c | for (j=EEPROM_PNAME7,k=0;j<=EEPROM_PNAME0 && k<strlen(signatures[i]);j++) { |
j | 1496 | drivers/net/ewrk3.c | if (signatures[i][k] == eeprom_image[j]) { /* track signature */ |
j | 1523 | drivers/net/ewrk3.c | int i, j, status = 0; |
j | 1530 | drivers/net/ewrk3.c | for (i=0,j=0;devSig[i] != '\0' && !status;i+=2,j++) { |
j | 1534 | drivers/net/ewrk3.c | devSig[j]=devSig[i]+devSig[i+1]; |
j | 1542 | drivers/net/ewrk3.c | sigLength=j; |
j | 1555 | drivers/net/ewrk3.c | for (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) { |
j | 1557 | drivers/net/ewrk3.c | if (devSig[j] == data) { /* track signature */ |
j | 1558 | drivers/net/ewrk3.c | j++; |
j | 1560 | drivers/net/ewrk3.c | j=0; |
j | 1564 | drivers/net/ewrk3.c | if (j!=sigLength) { |
j | 1575 | drivers/net/ewrk3.c | unsigned short j,chksum; |
j | 1580 | drivers/net/ewrk3.c | for (crc=0x6a, j=0; j<ETH_ALEN; j++) { |
j | 1581 | drivers/net/ewrk3.c | for (sd=inb(EWRK3_PAR0+j), k=0; k<8; k++, sd >>= 1) { |
j | 1588 | drivers/net/ewrk3.c | for (k=0,j=0;j<3;j++) { |
j | 1591 | drivers/net/ewrk3.c | k += inw(EWRK3_PAR0 + (j<<1)); |
j | 1611 | drivers/net/ewrk3.c | int i, j, iobase = dev->base_addr, status = 0; |
j | 1756 | drivers/net/ewrk3.c | for (j=0;j<ETH_ALEN;j++) { |
j | 1757 | drivers/net/ewrk3.c | tmp.addr[i++] = inb(EWRK3_PAR0 + j); |
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 | 408 | drivers/scsi/53c7,8xx.c | int i, j, ccf; |
j | 577 | drivers/scsi/53c7,8xx.c | for (j = 0; j < 8; ++j) |
j | 578 | drivers/scsi/53c7,8xx.c | hostdata->busy[i][j] = 0; |
j | 2062 | drivers/scsi/53c7,8xx.c | int i, j, error, len; |
j | 2091 | drivers/scsi/53c7,8xx.c | for (ptr = input_buf + len, j = 0; j < debugger_tokens[i].nargs && *ptr;) { |
j | 2095 | drivers/scsi/53c7,8xx.c | args[j++] = simple_strtoul (ptr, &ptr, 0); |
j | 2101 | drivers/scsi/53c7,8xx.c | if (j != debugger_tokens[i].nargs) |
j | 540 | drivers/scsi/aha152x.c | int i, j, ok; |
j | 620 | drivers/scsi/aha152x.c | for( j=0; (j < SIGNATURE_COUNT) && !ok; j++) |
j | 621 | drivers/scsi/aha152x.c | ok=!memcmp((void *) addresses[i]+signatures[j].sig_offset, |
j | 622 | drivers/scsi/aha152x.c | (void *) signatures[j].signature, |
j | 623 | drivers/scsi/aha152x.c | (int) signatures[j].sig_length); |
j | 297 | drivers/scsi/eata.c | static inline int port_detect(ushort *port_base, unsigned int j, |
j | 309 | drivers/scsi/eata.c | sprintf(name, "%s%d", driver_name, j); |
j | 378 | drivers/scsi/eata.c | sh[j] = scsi_register(tpnt, sizeof(struct hostdata)); |
j | 379 | drivers/scsi/eata.c | sh[j]->io_port = *port_base; |
j | 380 | drivers/scsi/eata.c | sh[j]->dma_channel = dma_channel; |
j | 381 | drivers/scsi/eata.c | sh[j]->irq = irq; |
j | 382 | drivers/scsi/eata.c | sh[j]->sg_tablesize = (ushort) ntohs(info.scatt_size); |
j | 383 | drivers/scsi/eata.c | sh[j]->this_id = (ushort) ntohl(info.host_addr); |
j | 384 | drivers/scsi/eata.c | sh[j]->can_queue = (ushort) ntohs(info.queue_size); |
j | 385 | drivers/scsi/eata.c | sh[j]->cmd_per_lun = MAX_CMD_PER_LUN; |
j | 388 | drivers/scsi/eata.c | snarf_region(sh[j]->io_port, REG_REGION); |
j | 390 | drivers/scsi/eata.c | memset(HD(j), 0, sizeof(struct hostdata)); |
j | 391 | drivers/scsi/eata.c | HD(j)->subversion = subversion; |
j | 392 | drivers/scsi/eata.c | HD(j)->board_number = j; |
j | 393 | drivers/scsi/eata.c | irqlist[irq] = j; |
j | 395 | drivers/scsi/eata.c | if (HD(j)->subversion == ESA) |
j | 396 | drivers/scsi/eata.c | sh[j]->unchecked_isa_dma = FALSE; |
j | 398 | drivers/scsi/eata.c | sh[j]->block = sh[j]; |
j | 399 | drivers/scsi/eata.c | sh[j]->unchecked_isa_dma = TRUE; |
j | 406 | drivers/scsi/eata.c | strcpy(BN(j), name); |
j | 409 | drivers/scsi/eata.c | "Mbox %d, CmdLun %d.\n", BN(j), board_status, sh[j]->this_id, |
j | 410 | drivers/scsi/eata.c | sh[j]->io_port, sh[j]->irq, |
j | 411 | drivers/scsi/eata.c | sh[j]->dma_channel, sh[j]->sg_tablesize, |
j | 412 | drivers/scsi/eata.c | sh[j]->can_queue, sh[j]->cmd_per_lun); |
j | 415 | drivers/scsi/eata.c | if (sh[j]->sg_tablesize > MAX_SGLIST || sh[j]->sg_tablesize < 2) { |
j | 416 | drivers/scsi/eata.c | printk("%s: detect, forcing to use %d SG lists.\n", BN(j), MAX_SGLIST); |
j | 417 | drivers/scsi/eata.c | sh[j]->sg_tablesize = MAX_SGLIST; |
j | 421 | drivers/scsi/eata.c | if (sh[j]->can_queue > MAX_MAILBOXES || sh[j]->can_queue < 2) { |
j | 422 | drivers/scsi/eata.c | printk("%s: detect, forcing to use %d Mbox.\n", BN(j), MAX_MAILBOXES); |
j | 423 | drivers/scsi/eata.c | sh[j]->can_queue = MAX_MAILBOXES; |
j | 436 | drivers/scsi/eata.c | unsigned int j = 0, k, flags; |
j | 458 | drivers/scsi/eata.c | if (j < MAX_BOARDS && port_detect(port_base, j, tpnt)) j++; |
j | 464 | drivers/scsi/eata.c | return j; |
j | 483 | drivers/scsi/eata.c | unsigned int i, j, k, flags; |
j | 490 | drivers/scsi/eata.c | j = ((struct hostdata *) SCpnt->host->hostdata)->board_number; |
j | 492 | drivers/scsi/eata.c | if (!done) panic("%s: qcomm, pid %ld, null done.\n", BN(j), SCpnt->pid); |
j | 496 | drivers/scsi/eata.c | i = HD(j)->last_cp_used + 1; |
j | 498 | drivers/scsi/eata.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
j | 500 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) i = 0; |
j | 502 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) { |
j | 503 | drivers/scsi/eata.c | HD(j)->last_cp_used = i; |
j | 508 | drivers/scsi/eata.c | if (k == sh[j]->can_queue) { |
j | 509 | drivers/scsi/eata.c | printk("%s: qcomm, no free mailbox, resetting.\n", BN(j)); |
j | 511 | drivers/scsi/eata.c | if (HD(j)->in_reset) |
j | 512 | drivers/scsi/eata.c | printk("%s: qcomm, already in reset.\n", BN(j)); |
j | 514 | drivers/scsi/eata.c | panic("%s: qcomm, SCSI_RESET_SUCCESS.\n", BN(j)); |
j | 518 | drivers/scsi/eata.c | printk("%s: qcomm, pid %ld, DID_BUS_BUSY, done.\n", BN(j), SCpnt->pid); |
j | 525 | drivers/scsi/eata.c | cpp = &HD(j)->cp[i]; |
j | 530 | drivers/scsi/eata.c | spp = &HD(j)->sp[i]; |
j | 542 | drivers/scsi/eata.c | BN(j), i, SCpnt->target, SCpnt->pid); |
j | 570 | drivers/scsi/eata.c | if (do_dma(sh[j]->io_port, (unsigned int) cpp, SEND_CP_DMA)) { |
j | 574 | drivers/scsi/eata.c | BN(j), SCpnt->target, SCpnt->pid); |
j | 580 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = IN_USE; |
j | 586 | drivers/scsi/eata.c | unsigned int i, j, flags; |
j | 590 | drivers/scsi/eata.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
j | 594 | drivers/scsi/eata.c | BN(j), SCarg->target, SCarg->pid); |
j | 600 | drivers/scsi/eata.c | BN(j), i, SCarg->target, SCarg->pid); |
j | 602 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) |
j | 603 | drivers/scsi/eata.c | panic("%s: abort, invalid SCarg->host_scribble.\n", BN(j)); |
j | 605 | drivers/scsi/eata.c | if (wait_on_busy(sh[j]->io_port)) { |
j | 606 | drivers/scsi/eata.c | printk("%s: abort, timeout error.\n", BN(j)); |
j | 611 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) { |
j | 612 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is free.\n", BN(j), i); |
j | 617 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IN_USE) { |
j | 618 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is in use.\n", BN(j), i); |
j | 620 | drivers/scsi/eata.c | if (SCarg != HD(j)->cp[i].SCpnt) |
j | 622 | drivers/scsi/eata.c | BN(j), i, SCarg, HD(j)->cp[i].SCpnt); |
j | 628 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IN_RESET) { |
j | 629 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is in reset.\n", BN(j), i); |
j | 634 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
j | 635 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is locked.\n", BN(j), i); |
j | 640 | drivers/scsi/eata.c | panic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i); |
j | 644 | drivers/scsi/eata.c | unsigned int i, j, flags, time, k, limit = 0; |
j | 650 | drivers/scsi/eata.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
j | 652 | drivers/scsi/eata.c | BN(j), SCarg->target, SCarg->pid); |
j | 655 | drivers/scsi/eata.c | printk("%s: reset, pid %ld inactive.\n", BN(j), SCarg->pid); |
j | 657 | drivers/scsi/eata.c | if (HD(j)->in_reset) { |
j | 658 | drivers/scsi/eata.c | printk("%s: reset, exit, already in reset.\n", BN(j)); |
j | 663 | drivers/scsi/eata.c | if (wait_on_busy(sh[j]->io_port)) { |
j | 664 | drivers/scsi/eata.c | printk("%s: reset, exit, timeout error.\n", BN(j)); |
j | 669 | drivers/scsi/eata.c | for (k = 0; k < MAX_TARGET; k++) HD(j)->target_reset[k] = TRUE; |
j | 671 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
j | 673 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) continue; |
j | 675 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
j | 676 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
j | 677 | drivers/scsi/eata.c | printk("%s: reset, locked mbox %d forced free.\n", BN(j), i); |
j | 681 | drivers/scsi/eata.c | SCpnt = HD(j)->cp[i].SCpnt; |
j | 682 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = IN_RESET; |
j | 684 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid); |
j | 687 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, SCpnt == NULL.\n", BN(j), i); |
j | 690 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, garbled SCpnt.\n", BN(j), i); |
j | 693 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, index mismatch.\n", BN(j), i); |
j | 696 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, SCpnt->scsi_done == NULL.\n", BN(j), i); |
j | 701 | drivers/scsi/eata.c | if (do_dma(sh[j]->io_port, 0, RESET_PIO)) { |
j | 702 | drivers/scsi/eata.c | printk("%s: reset, cannot reset, timeout error.\n", BN(j)); |
j | 707 | drivers/scsi/eata.c | printk("%s: reset, board reset done, enabling interrupts.\n", BN(j)); |
j | 709 | drivers/scsi/eata.c | HD(j)->in_reset = TRUE; |
j | 714 | drivers/scsi/eata.c | printk("%s: reset, interrupts disabled, loops %d.\n", BN(j), limit); |
j | 716 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
j | 719 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] != IN_RESET) continue; |
j | 721 | drivers/scsi/eata.c | SCpnt = HD(j)->cp[i].SCpnt; |
j | 726 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = LOCKED; |
j | 729 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid); |
j | 735 | drivers/scsi/eata.c | HD(j)->in_reset = FALSE; |
j | 740 | drivers/scsi/eata.c | printk("%s: reset, exit, success.\n", BN(j)); |
j | 744 | drivers/scsi/eata.c | printk("%s: reset, exit, wakeup.\n", BN(j)); |
j | 751 | drivers/scsi/eata.c | unsigned int i, j, k, flags, status, loops, total_loops = 0; |
j | 768 | drivers/scsi/eata.c | for (j = 0; sh[j] != NULL; j++) { |
j | 770 | drivers/scsi/eata.c | if (sh[j]->irq != irq) continue; |
j | 775 | drivers/scsi/eata.c | while (inb(sh[j]->io_port + REG_AUX_STATUS) & IRQ_ASSERTED) { |
j | 780 | drivers/scsi/eata.c | BN(j), HD(j)->iocount); |
j | 783 | drivers/scsi/eata.c | inb(sh[j]->io_port + REG_STATUS); |
j | 786 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
j | 787 | drivers/scsi/eata.c | spp = &HD(j)->sp[i]; |
j | 794 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
j | 795 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
j | 797 | drivers/scsi/eata.c | BN(j), i, HD(j)->iocount); |
j | 800 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == FREE) { |
j | 802 | drivers/scsi/eata.c | BN(j), i, HD(j)->iocount); |
j | 805 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == IN_RESET) |
j | 806 | drivers/scsi/eata.c | printk("%s: ihdlr, mbox %d is in reset.\n", BN(j), i); |
j | 807 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] != IN_USE) |
j | 808 | drivers/scsi/eata.c | panic("%s: ihdlr, mbox %d, invalid cp_stat.\n", BN(j), i); |
j | 810 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
j | 811 | drivers/scsi/eata.c | cpp = &HD(j)->cp[i]; |
j | 815 | drivers/scsi/eata.c | panic("%s: ihdlr, mbox %d, SCpnt == NULL.\n", BN(j), i); |
j | 819 | drivers/scsi/eata.c | BN(j), i, SCpnt, cpp->SCpnt); |
j | 823 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid, SCpnt); |
j | 827 | drivers/scsi/eata.c | " irq %d.\n", BN(j), i, SCpnt->pid, |
j | 841 | drivers/scsi/eata.c | && HD(j)->target_reset[SCpnt->target]) |
j | 847 | drivers/scsi/eata.c | HD(j)->target_reset[SCpnt->target] = FALSE; |
j | 849 | drivers/scsi/eata.c | HD(j)->target_time_out[SCpnt->target] = 0; |
j | 855 | drivers/scsi/eata.c | if (HD(j)->target_time_out[SCpnt->target] > 1) |
j | 859 | drivers/scsi/eata.c | HD(j)->target_time_out[SCpnt->target]++; |
j | 871 | drivers/scsi/eata.c | HD(j)->target_reset[k] = TRUE; |
j | 889 | drivers/scsi/eata.c | HD(j)->iocount++; |
j | 891 | drivers/scsi/eata.c | if (loops > 1) HD(j)->multicount++; |
j | 896 | drivers/scsi/eata.c | if ((spp->adapter_status != ASOK && HD(j)->iocount > 1000) || |
j | 898 | drivers/scsi/eata.c | spp->adapter_status != ASST && HD(j)->iocount <= 1000) || |
j | 903 | drivers/scsi/eata.c | BN(j), i, spp->adapter_status, spp->target_status, |
j | 904 | drivers/scsi/eata.c | SCpnt->target, SCpnt->lun, SCpnt->pid, HD(j)->iocount); |
j | 930 | drivers/scsi/eata.c | for (j = 0; sh[j] != NULL; j++) |
j | 931 | drivers/scsi/eata.c | printk("%s: ihdlr, calls %d, count %d, multi %d.\n", BN(j), |
j | 932 | drivers/scsi/eata.c | calls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount); |
j | 515 | drivers/scsi/fdomain.c | int i, j; |
j | 536 | drivers/scsi/fdomain.c | for (j = 0; !bios_base && j < SIGNATURE_COUNT; j++) { |
j | 537 | drivers/scsi/fdomain.c | if (!memcmp( ((char *)addresses[i] + signatures[j].sig_offset), |
j | 538 | drivers/scsi/fdomain.c | signatures[j].signature, signatures[j].sig_length )) { |
j | 539 | drivers/scsi/fdomain.c | bios_major = signatures[j].major_bios_version; |
j | 540 | drivers/scsi/fdomain.c | bios_minor = signatures[j].minor_bios_version; |
j | 541 | drivers/scsi/fdomain.c | PCI_bus = (signatures[j].flag == 1); |
j | 542 | drivers/scsi/fdomain.c | ISA_200S = (signatures[j].flag == 2); |
j | 740 | drivers/scsi/fdomain.c | for (j = 8; j < (buf[4] < 32 ? buf[4] : 32); j++) |
j | 741 | drivers/scsi/fdomain.c | printk( "%c", buf[j] >= 20 ? buf[j] : ' ' ); |
j | 207 | drivers/scsi/hosts.c | int j; |
j | 209 | drivers/scsi/hosts.c | j = sh->extra_bytes; |
j | 219 | drivers/scsi/hosts.c | scsi_init_free((char *) sh, sizeof(struct Scsi_Host) + j); |
j | 226 | drivers/scsi/hosts.c | struct Scsi_Host * scsi_register(Scsi_Host_Template * tpnt, int j){ |
j | 228 | drivers/scsi/hosts.c | retval = (struct Scsi_Host *)scsi_init_malloc(sizeof(struct Scsi_Host) + j); |
j | 231 | drivers/scsi/hosts.c | if(j > 0xffff) panic("Too many extra bytes requested\n"); |
j | 232 | drivers/scsi/hosts.c | retval->extra_bytes = j; |
j | 244 | drivers/scsi/hosts.c | printk("Register %x %x: %d\n", retval, retval->hostt, j); |
j | 279 | drivers/scsi/hosts.c | int i, j, count, pcount; |
j | 309 | drivers/scsi/hosts.c | for(j = 0; j < tpnt->present; j++) |
j | 301 | drivers/scsi/hosts.h | extern struct Scsi_Host * scsi_register(Scsi_Host_Template *, int j); |
j | 136 | drivers/scsi/qlogic.c | int j; |
j | 137 | drivers/scsi/qlogic.c | j = 0; |
j | 146 | drivers/scsi/qlogic.c | while( reqlen >= 84 && !( j & 0xc0 ) ) /* 2/3 */ |
j | 147 | drivers/scsi/qlogic.c | if( (j=inb( qbase + 8 )) & 4 ) { |
j | 159 | drivers/scsi/qlogic.c | j = 0; |
j | 160 | drivers/scsi/qlogic.c | while( reqlen && !( (j & 0x10) && (j & 0xc0) ) ) { |
j | 162 | drivers/scsi/qlogic.c | j &= 0xc0; |
j | 163 | drivers/scsi/qlogic.c | while ( reqlen && !( (j=inb(qbase + 8)) & 0x10 ) ) { |
j | 167 | drivers/scsi/qlogic.c | if( j & 0x10 ) |
j | 168 | drivers/scsi/qlogic.c | j = inb(qbase+8); |
j | 179 | drivers/scsi/qlogic.c | while( reqlen >= 84 && !( j & 0xc0 ) ) /* 1/3 */ |
j | 180 | drivers/scsi/qlogic.c | if( !((j=inb( qbase + 8 )) & 8) ) { |
j | 192 | drivers/scsi/qlogic.c | j = 0; |
j | 193 | drivers/scsi/qlogic.c | while( reqlen && !( (j & 2) && (j & 0xc0) ) ) { |
j | 195 | drivers/scsi/qlogic.c | while ( reqlen && !( (j=inb(qbase + 8)) & 2 ) ) { |
j | 199 | drivers/scsi/qlogic.c | if( j & 2 ) |
j | 200 | drivers/scsi/qlogic.c | j = inb(qbase+8); |
j | 284 | drivers/scsi/qlogic.c | unsigned int i, j, k; |
j | 293 | drivers/scsi/qlogic.c | j = inb(qbase + 6); |
j | 304 | drivers/scsi/qlogic.c | j &= 7; /* j = inb( qbase + 7 ) >> 5; */ |
j | 309 | drivers/scsi/qlogic.c | if(j != 3 && j != 4) { |
j | 310 | drivers/scsi/qlogic.c | printk("Ql:Bad sequence for command %d, int %02X, cmdleft = %d\n", j, i, inb( qbase+7 ) & 0x1f ); |
j | 365 | drivers/scsi/qlogic.c | j = inb(qbase + 7) & 0x1f; /* and bytes rec'd */ |
j | 369 | drivers/scsi/qlogic.c | if (!((i == 8 && j == 2) || (i == 0x10 && j == 1))) { |
j | 370 | drivers/scsi/qlogic.c | printk("Ql:Error during status phase, int=%02X, %d bytes recd\n", i, j); |
j | 465 | drivers/scsi/qlogic.c | int i, j; /* these are only used by IRQ detect */ |
j | 512 | drivers/scsi/qlogic.c | j = 3; |
j | 517 | drivers/scsi/qlogic.c | while (j--) { |
j | 1798 | drivers/scsi/scsi.c | int i, j; |
j | 1808 | drivers/scsi/scsi.c | for(j=0; j<17-nbits; j++){ |
j | 1809 | drivers/scsi/scsi.c | if ((dma_malloc_freelist[i] & (mask << j)) == 0){ |
j | 1810 | drivers/scsi/scsi.c | dma_malloc_freelist[i] |= (mask << j); |
j | 1814 | drivers/scsi/scsi.c | printk("SMalloc: %d %x ",len, dma_malloc_buffer + (i << 13) + (j << 9)); |
j | 1816 | drivers/scsi/scsi.c | return (void *) ((unsigned long) dma_malloc_buffer + (i << 13) + (j << 9)); |
j | 1925 | drivers/scsi/scsi.c | int j; |
j | 1930 | drivers/scsi/scsi.c | for(j=0;j<SDpnt->host->cmd_per_lun;j++){ |
j | 2055 | drivers/scsi/scsi.c | int j, i; |
j | 2103 | drivers/scsi/scsi.c | for(j=0;j<SDpnt->host->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 | 260 | drivers/scsi/u14-34f.c | static inline int port_detect(ushort *port_base, unsigned int j, |
j | 302 | drivers/scsi/u14-34f.c | sprintf(name, "%s%d", driver_name, j); |
j | 333 | drivers/scsi/u14-34f.c | sh[j] = scsi_register(tpnt, sizeof(struct hostdata)); |
j | 334 | drivers/scsi/u14-34f.c | sh[j]->io_port = *port_base; |
j | 335 | drivers/scsi/u14-34f.c | sh[j]->base = bios_segment_table[config_1.bios_segment]; |
j | 336 | drivers/scsi/u14-34f.c | sh[j]->irq = irq; |
j | 337 | drivers/scsi/u14-34f.c | sh[j]->this_id = config_2.ha_scsi_id; |
j | 338 | drivers/scsi/u14-34f.c | sh[j]->can_queue = MAX_MAILBOXES; |
j | 339 | drivers/scsi/u14-34f.c | sh[j]->cmd_per_lun = MAX_CMD_PER_LUN; |
j | 345 | drivers/scsi/u14-34f.c | sys_mask = inb(sh[j]->io_port + REG_SYS_MASK); |
j | 346 | drivers/scsi/u14-34f.c | lcl_mask = inb(sh[j]->io_port + REG_LCL_MASK); |
j | 352 | drivers/scsi/u14-34f.c | if (sh[j]->base == 0) outb(CMD_ENA_INTR, sh[j]->io_port + REG_SYS_MASK); |
j | 355 | drivers/scsi/u14-34f.c | snarf_region(sh[j]->io_port, REG_REGION); |
j | 357 | drivers/scsi/u14-34f.c | memset(HD(j), 0, sizeof(struct hostdata)); |
j | 358 | drivers/scsi/u14-34f.c | HD(j)->heads = mapping_table[config_2.mapping_mode].heads; |
j | 359 | drivers/scsi/u14-34f.c | HD(j)->sectors = mapping_table[config_2.mapping_mode].sectors; |
j | 360 | drivers/scsi/u14-34f.c | HD(j)->bios_drive_number = config_2.bios_drive_number; |
j | 361 | drivers/scsi/u14-34f.c | HD(j)->subversion = subversion; |
j | 362 | drivers/scsi/u14-34f.c | HD(j)->board_number = j; |
j | 363 | drivers/scsi/u14-34f.c | irqlist[irq] = j; |
j | 365 | drivers/scsi/u14-34f.c | if (HD(j)->subversion == ESA) { |
j | 366 | drivers/scsi/u14-34f.c | sh[j]->dma_channel = 0; |
j | 367 | drivers/scsi/u14-34f.c | sh[j]->unchecked_isa_dma = FALSE; |
j | 368 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = U34F_MAX_SGLIST; |
j | 369 | drivers/scsi/u14-34f.c | sh[j]->hostt->use_clustering = U34F_CLUSTERING; |
j | 370 | drivers/scsi/u14-34f.c | sprintf(BN(j), "U34F%d", j); |
j | 373 | drivers/scsi/u14-34f.c | sh[j]->dma_channel = dma_channel; |
j | 374 | drivers/scsi/u14-34f.c | sh[j]->block = sh[j]; |
j | 375 | drivers/scsi/u14-34f.c | sh[j]->unchecked_isa_dma = TRUE; |
j | 376 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = U14F_MAX_SGLIST; |
j | 377 | drivers/scsi/u14-34f.c | sh[j]->hostt->use_clustering = U14F_CLUSTERING; |
j | 378 | drivers/scsi/u14-34f.c | sprintf(BN(j), "U14F%d", j); |
j | 386 | drivers/scsi/u14-34f.c | "Mbox %d, CmdLun %d, C%d.\n", BN(j), sh[j]->io_port, |
j | 387 | drivers/scsi/u14-34f.c | (int)sh[j]->base, sh[j]->irq, |
j | 388 | drivers/scsi/u14-34f.c | sh[j]->dma_channel, sh[j]->sg_tablesize, |
j | 389 | drivers/scsi/u14-34f.c | sh[j]->can_queue, sh[j]->cmd_per_lun, |
j | 390 | drivers/scsi/u14-34f.c | sh[j]->hostt->use_clustering); |
j | 395 | drivers/scsi/u14-34f.c | unsigned int j = 0, k, flags; |
j | 415 | drivers/scsi/u14-34f.c | if (j < MAX_BOARDS && port_detect(port_base, j, tpnt)) j++; |
j | 421 | drivers/scsi/u14-34f.c | return j; |
j | 442 | drivers/scsi/u14-34f.c | unsigned int i, j, k, flags; |
j | 448 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCpnt->host->hostdata)->board_number; |
j | 450 | drivers/scsi/u14-34f.c | if (!done) panic("%s: qcomm, pid %ld, null done.\n", BN(j), SCpnt->pid); |
j | 454 | drivers/scsi/u14-34f.c | i = HD(j)->last_cp_used + 1; |
j | 456 | drivers/scsi/u14-34f.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
j | 458 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) i = 0; |
j | 460 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) { |
j | 461 | drivers/scsi/u14-34f.c | HD(j)->last_cp_used = i; |
j | 466 | drivers/scsi/u14-34f.c | if (k == sh[j]->can_queue) { |
j | 467 | drivers/scsi/u14-34f.c | printk("%s: qcomm, no free mailbox, resetting.\n", BN(j)); |
j | 469 | drivers/scsi/u14-34f.c | if (HD(j)->in_reset) |
j | 470 | drivers/scsi/u14-34f.c | printk("%s: qcomm, already in reset.\n", BN(j)); |
j | 472 | drivers/scsi/u14-34f.c | panic("%s: qcomm, SCSI_RESET_SUCCESS.\n", BN(j)); |
j | 476 | drivers/scsi/u14-34f.c | printk("%s: qcomm, pid %ld, DID_BUS_BUSY, done.\n", BN(j), SCpnt->pid); |
j | 483 | drivers/scsi/u14-34f.c | cpp = &HD(j)->cp[i]; |
j | 491 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->target, SCpnt->pid); |
j | 513 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
j | 517 | drivers/scsi/u14-34f.c | BN(j), SCpnt->target, SCpnt->pid); |
j | 524 | drivers/scsi/u14-34f.c | outl((unsigned int)cpp, sh[j]->io_port + REG_OGM); |
j | 527 | drivers/scsi/u14-34f.c | outb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR); |
j | 529 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = IN_USE; |
j | 535 | drivers/scsi/u14-34f.c | unsigned int i, j, flags; |
j | 539 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
j | 543 | drivers/scsi/u14-34f.c | BN(j), SCarg->target, SCarg->pid); |
j | 549 | drivers/scsi/u14-34f.c | BN(j), i, SCarg->target, SCarg->pid); |
j | 551 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
j | 552 | drivers/scsi/u14-34f.c | panic("%s: abort, invalid SCarg->host_scribble.\n", BN(j)); |
j | 554 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
j | 555 | drivers/scsi/u14-34f.c | printk("%s: abort, timeout error.\n", BN(j)); |
j | 560 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) { |
j | 561 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is free.\n", BN(j), i); |
j | 566 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IN_USE) { |
j | 567 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is in use.\n", BN(j), i); |
j | 569 | drivers/scsi/u14-34f.c | if (SCarg != HD(j)->cp[i].SCpnt) |
j | 571 | drivers/scsi/u14-34f.c | BN(j), i, SCarg, HD(j)->cp[i].SCpnt); |
j | 577 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IN_RESET) { |
j | 578 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is in reset.\n", BN(j), i); |
j | 583 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
j | 584 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is locked.\n", BN(j), i); |
j | 589 | drivers/scsi/u14-34f.c | panic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i); |
j | 593 | drivers/scsi/u14-34f.c | unsigned int i, j, flags, time, k, limit = 0; |
j | 599 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
j | 601 | drivers/scsi/u14-34f.c | BN(j), SCarg->target, SCarg->pid); |
j | 604 | drivers/scsi/u14-34f.c | printk("%s: reset, pid %ld inactive.\n", BN(j), SCarg->pid); |
j | 606 | drivers/scsi/u14-34f.c | if (HD(j)->in_reset) { |
j | 607 | drivers/scsi/u14-34f.c | printk("%s: reset, exit, already in reset.\n", BN(j)); |
j | 612 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
j | 613 | drivers/scsi/u14-34f.c | printk("%s: reset, exit, timeout error.\n", BN(j)); |
j | 618 | drivers/scsi/u14-34f.c | for (k = 0; k < MAX_TARGET; k++) HD(j)->target_reset[k] = TRUE; |
j | 620 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
j | 622 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) continue; |
j | 624 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
j | 625 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
j | 626 | drivers/scsi/u14-34f.c | printk("%s: reset, locked mbox %d forced free.\n", BN(j), i); |
j | 630 | drivers/scsi/u14-34f.c | SCpnt = HD(j)->cp[i].SCpnt; |
j | 631 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = IN_RESET; |
j | 633 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid); |
j | 636 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, SCpnt == NULL.\n", BN(j), i); |
j | 639 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, garbled SCpnt.\n", BN(j), i); |
j | 642 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, index mismatch.\n", BN(j), i); |
j | 645 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, SCpnt->scsi_done == NULL.\n", BN(j), i); |
j | 650 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
j | 651 | drivers/scsi/u14-34f.c | printk("%s: reset, cannot reset, timeout error.\n", BN(j)); |
j | 656 | drivers/scsi/u14-34f.c | outb(CMD_RESET, sh[j]->io_port + REG_LCL_INTR); |
j | 657 | drivers/scsi/u14-34f.c | printk("%s: reset, board reset done, enabling interrupts.\n", BN(j)); |
j | 659 | drivers/scsi/u14-34f.c | HD(j)->in_reset = TRUE; |
j | 664 | drivers/scsi/u14-34f.c | printk("%s: reset, interrupts disabled, loops %d.\n", BN(j), limit); |
j | 666 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
j | 669 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] != IN_RESET) continue; |
j | 671 | drivers/scsi/u14-34f.c | SCpnt = HD(j)->cp[i].SCpnt; |
j | 676 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = LOCKED; |
j | 679 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid); |
j | 685 | drivers/scsi/u14-34f.c | HD(j)->in_reset = FALSE; |
j | 690 | drivers/scsi/u14-34f.c | printk("%s: reset, exit, success.\n", BN(j)); |
j | 694 | drivers/scsi/u14-34f.c | printk("%s: reset, exit, wakeup.\n", BN(j)); |
j | 700 | drivers/scsi/u14-34f.c | unsigned int j = 0; |
j | 703 | drivers/scsi/u14-34f.c | dkinfo[0] = HD(j)->heads; |
j | 704 | drivers/scsi/u14-34f.c | dkinfo[1] = HD(j)->sectors; |
j | 705 | drivers/scsi/u14-34f.c | dkinfo[2] = size / (HD(j)->heads * HD(j)->sectors); |
j | 711 | drivers/scsi/u14-34f.c | unsigned int i, j, k, flags, status, loops, total_loops = 0; |
j | 727 | drivers/scsi/u14-34f.c | for (j = 0; sh[j] != NULL; j++) { |
j | 729 | drivers/scsi/u14-34f.c | if (sh[j]->irq != irq) continue; |
j | 734 | drivers/scsi/u14-34f.c | while (inb(sh[j]->io_port + REG_SYS_INTR) & INTR_ASSERTED) { |
j | 739 | drivers/scsi/u14-34f.c | BN(j), HD(j)->iocount); |
j | 741 | drivers/scsi/u14-34f.c | spp = (struct mscp *)inl(sh[j]->io_port + REG_ICM); |
j | 744 | drivers/scsi/u14-34f.c | outb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR); |
j | 746 | drivers/scsi/u14-34f.c | i = spp - HD(j)->cp; |
j | 748 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
j | 749 | drivers/scsi/u14-34f.c | panic("%s: ihdlr, invalid mscp address.\n", BN(j)); |
j | 751 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
j | 752 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
j | 754 | drivers/scsi/u14-34f.c | BN(j), i, HD(j)->iocount); |
j | 757 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == FREE) { |
j | 759 | drivers/scsi/u14-34f.c | BN(j), i, HD(j)->iocount); |
j | 762 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == IN_RESET) |
j | 763 | drivers/scsi/u14-34f.c | printk("%s: ihdlr, mbox %d is in reset.\n", BN(j), i); |
j | 764 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] != IN_USE) |
j | 765 | drivers/scsi/u14-34f.c | panic("%s: ihdlr, mbox %d, invalid cp_stat.\n", BN(j), i); |
j | 767 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
j | 771 | drivers/scsi/u14-34f.c | panic("%s: ihdlr, mbox %d, SCpnt == NULL.\n", BN(j), i); |
j | 775 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid, SCpnt); |
j | 779 | drivers/scsi/u14-34f.c | " irq %d.\n", BN(j), i, SCpnt->pid, |
j | 793 | drivers/scsi/u14-34f.c | && HD(j)->target_reset[SCpnt->target]) |
j | 799 | drivers/scsi/u14-34f.c | HD(j)->target_reset[SCpnt->target] = FALSE; |
j | 801 | drivers/scsi/u14-34f.c | HD(j)->target_time_out[SCpnt->target] = 0; |
j | 806 | drivers/scsi/u14-34f.c | if (HD(j)->target_time_out[SCpnt->target] > 1) |
j | 810 | drivers/scsi/u14-34f.c | HD(j)->target_time_out[SCpnt->target]++; |
j | 826 | drivers/scsi/u14-34f.c | HD(j)->target_reset[k] = TRUE; |
j | 842 | drivers/scsi/u14-34f.c | HD(j)->iocount++; |
j | 844 | drivers/scsi/u14-34f.c | if (loops > 1) HD(j)->multicount++; |
j | 849 | drivers/scsi/u14-34f.c | if ((spp->adapter_status != ASOK && HD(j)->iocount > 1000) || |
j | 851 | drivers/scsi/u14-34f.c | spp->adapter_status != ASST && HD(j)->iocount <= 1000) || |
j | 856 | drivers/scsi/u14-34f.c | BN(j), i, spp->adapter_status, spp->target_status, |
j | 857 | drivers/scsi/u14-34f.c | SCpnt->target, SCpnt->lun, SCpnt->pid, HD(j)->iocount); |
j | 881 | drivers/scsi/u14-34f.c | for (j = 0; sh[j] != NULL; j++) |
j | 882 | drivers/scsi/u14-34f.c | printk("%s: ihdlr, calls %d, count %d, multi %d.\n", BN(j), |
j | 883 | drivers/scsi/u14-34f.c | calls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount); |
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 | 664 | fs/binfmt_elf.c | int i,j, k; |
j | 721 | fs/binfmt_elf.c | j = 0; |
j | 723 | fs/binfmt_elf.c | if((elf_phdata + i)->p_type == PT_LOAD) j++; |
j | 725 | fs/binfmt_elf.c | if(j != 1) { |
j | 22 | fs/block_dev.c | int blocksize, blocksize_bits, i, j, buffercount,write_error; |
j | 96 | fs/block_dev.c | for(j=0; j<blocks_per_cluster; j++) cluster_list[j] = block+i+j; |
j | 833 | fs/buffer.c | int i, j; |
j | 854 | fs/buffer.c | j = 1; |
j | 861 | fs/buffer.c | bhlist[j++] = bh; |
j | 865 | fs/buffer.c | ll_rw_block(READ, j, bhlist); |
j | 867 | fs/buffer.c | for(i=1; i<j; i++) |
j | 1135 | fs/buffer.c | int i, j; |
j | 1143 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j+= size) { |
j | 1150 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j += size, where += size) { |
j | 88 | fs/ext/freelists.c | int j; |
j | 99 | fs/ext/freelists.c | j = efb->free[--efb->count]; |
j | 105 | fs/ext/freelists.c | j = sb->u.ext_sb.s_firstfreeblocknumber; |
j | 117 | fs/ext/freelists.c | if (j < sb->u.ext_sb.s_firstdatazone || j > sb->u.ext_sb.s_nzones) { |
j | 118 | fs/ext/freelists.c | printk ("ext_new_block: blk = %d\n", j); |
j | 125 | fs/ext/freelists.c | if (!(bh=getblk(sb->s_dev, j, sb->s_blocksize))) { |
j | 134 | fs/ext/freelists.c | printk("ext_new_block: allocating block %d\n", j); |
j | 137 | fs/ext/freelists.c | return j; |
j | 245 | fs/ext/freelists.c | int j; |
j | 258 | fs/ext/freelists.c | j = efi->free[--efi->count]; |
j | 264 | fs/ext/freelists.c | j = sb->u.ext_sb.s_firstfreeinodenumber; |
j | 288 | 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 | 292 | fs/ext2/balloc.c | j = ((goal - es->s_first_data_block) % EXT2_BLOCKS_PER_GROUP(sb)); |
j | 294 | fs/ext2/balloc.c | if (j) |
j | 300 | fs/ext2/balloc.c | ext2_debug ("goal is at %d:%d.\n", i, j); |
j | 302 | fs/ext2/balloc.c | if (!test_bit(j, bh->b_data)) { |
j | 309 | fs/ext2/balloc.c | if (j) { |
j | 314 | fs/ext2/balloc.c | lmap = ((((unsigned long *) bh->b_data)[j >> 5]) >> |
j | 315 | fs/ext2/balloc.c | ((j & 31) + 1)); |
j | 316 | fs/ext2/balloc.c | if (j < EXT2_BLOCKS_PER_GROUP(sb) - 32) |
j | 317 | fs/ext2/balloc.c | lmap |= (((unsigned long *) bh->b_data)[(j >> 5) + 1]) << |
j | 318 | fs/ext2/balloc.c | (31 - (j & 31)); |
j | 320 | fs/ext2/balloc.c | lmap |= 0xffffffff << (31 - (j & 31)); |
j | 323 | fs/ext2/balloc.c | if ((j + k) < EXT2_BLOCKS_PER_GROUP(sb)) { |
j | 324 | fs/ext2/balloc.c | j += k; |
j | 341 | fs/ext2/balloc.c | p = ((char *) bh->b_data) + (j >> 3); |
j | 342 | fs/ext2/balloc.c | r = memscan(p, 0, (EXT2_BLOCKS_PER_GROUP(sb) - j + 7) >> 3); |
j | 345 | fs/ext2/balloc.c | j = k; |
j | 350 | fs/ext2/balloc.c | j); |
j | 352 | fs/ext2/balloc.c | j = k; |
j | 378 | fs/ext2/balloc.c | j = (r - bh->b_data) << 3; |
j | 379 | fs/ext2/balloc.c | if (j < EXT2_BLOCKS_PER_GROUP(sb)) |
j | 382 | fs/ext2/balloc.c | j = find_first_zero_bit ((unsigned long *) bh->b_data, |
j | 384 | fs/ext2/balloc.c | if (j >= EXT2_BLOCKS_PER_GROUP(sb)) { |
j | 397 | fs/ext2/balloc.c | for (k = 0; k < 7 && j > 0 && !test_bit (j - 1, bh->b_data); k++, j--); |
j | 403 | fs/ext2/balloc.c | tmp = j + i * EXT2_BLOCKS_PER_GROUP(sb) + es->s_first_data_block; |
j | 413 | fs/ext2/balloc.c | if (set_bit (j, bh->b_data)) { |
j | 415 | fs/ext2/balloc.c | "bit already set for block %d", j); |
j | 419 | fs/ext2/balloc.c | ext2_debug ("found bit %d\n", j); |
j | 429 | fs/ext2/balloc.c | k < 8 && (j + k) < EXT2_BLOCKS_PER_GROUP(sb); k++) { |
j | 430 | fs/ext2/balloc.c | if (set_bit (j + k, bh->b_data)) |
j | 441 | fs/ext2/balloc.c | j = tmp; |
j | 449 | fs/ext2/balloc.c | if (j >= es->s_blocks_count) { |
j | 452 | fs/ext2/balloc.c | "block_group = %d, block=%d", i, j); |
j | 456 | fs/ext2/balloc.c | if (!(bh = getblk (sb->s_dev, j, sb->s_blocksize))) { |
j | 457 | fs/ext2/balloc.c | ext2_error (sb, "ext2_new_block", "cannot get block %d", j); |
j | 467 | fs/ext2/balloc.c | "Goal hits %d of %d.\n", j, goal_hits, goal_attempts); |
j | 475 | fs/ext2/balloc.c | return j; |
j | 527 | fs/ext2/balloc.c | int i, j; |
j | 546 | fs/ext2/balloc.c | for (j = 0; j < desc_blocks; j++) |
j | 547 | fs/ext2/balloc.c | if (!test_bit (j + 1, bh->b_data)) |
j | 550 | fs/ext2/balloc.c | "%d is marked free", j, i); |
j | 562 | fs/ext2/balloc.c | for (j = 0; j < sb->u.ext2_sb.s_itb_per_group; j++) |
j | 563 | fs/ext2/balloc.c | if (!block_in_use (gdp->bg_inode_table + j, sb, bh->b_data)) |
j | 566 | fs/ext2/balloc.c | "group %d is marked free", j, i); |
j | 96 | fs/ext2/ialloc.c | int i, j; |
j | 129 | fs/ext2/ialloc.c | for (j = i; j > 0; j--) { |
j | 130 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j] = |
j | 131 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j - 1]; |
j | 132 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j] = |
j | 133 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j - 1]; |
j | 142 | fs/ext2/ialloc.c | for (j = sb->u.ext2_sb.s_loaded_inode_bitmaps - 1; j > 0; j--) { |
j | 143 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j] = |
j | 144 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j - 1]; |
j | 145 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j] = |
j | 146 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j - 1]; |
j | 310 | fs/ext2/ialloc.c | int i, j, avefreei; |
j | 344 | fs/ext2/ialloc.c | for (j = 0; j < sb->u.ext2_sb.s_groups_count; j++) { |
j | 345 | fs/ext2/ialloc.c | tmp = get_group_desc (sb, j, &bh2); |
j | 351 | fs/ext2/ialloc.c | i = j; |
j | 373 | fs/ext2/ialloc.c | for (j = 1; j < sb->u.ext2_sb.s_groups_count; j <<= 1) { |
j | 374 | fs/ext2/ialloc.c | i += j; |
j | 389 | fs/ext2/ialloc.c | for (j = 2; j < sb->u.ext2_sb.s_groups_count; j++) { |
j | 408 | fs/ext2/ialloc.c | if ((j = find_first_zero_bit ((unsigned long *) bh->b_data, |
j | 411 | fs/ext2/ialloc.c | if (set_bit (j, bh->b_data)) { |
j | 413 | fs/ext2/ialloc.c | "bit already set for inode %d", j); |
j | 432 | fs/ext2/ialloc.c | j += i * EXT2_INODES_PER_GROUP(sb) + 1; |
j | 433 | fs/ext2/ialloc.c | if (j < EXT2_FIRST_INO || j > es->s_inodes_count) { |
j | 436 | fs/ext2/ialloc.c | "block_group = %d,inode=%d", i, j); |
j | 463 | fs/ext2/ialloc.c | inode->i_ino = j; |
j | 402 | fs/ext2/super.c | int i, j; |
j | 576 | fs/ext2/super.c | for (j = 0; j < i; j++) |
j | 577 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[j]); |
j | 588 | fs/ext2/super.c | for (j = 0; j < db_count; j++) |
j | 589 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[j]); |
j | 68 | fs/isofs/dir.c | unsigned int block,offset,i, j; |
j | 221 | fs/isofs/dir.c | for(j=0; j<i; j++) |
j | 222 | fs/isofs/dir.c | put_fs_byte(dpnt[j],j+dirent->d_name); /* And save it */ |
j | 22 | fs/minix/bitmap.c | unsigned i, j, end, sum = 0; |
j | 39 | fs/minix/bitmap.c | for (j=0; j<end; j++) |
j | 40 | fs/minix/bitmap.c | sum += nibblemap[bh->b_data[j] & 0xf] |
j | 41 | fs/minix/bitmap.c | + nibblemap[(bh->b_data[j]>>4)&0xf]; |
j | 81 | fs/minix/bitmap.c | int i,j; |
j | 88 | fs/minix/bitmap.c | j = 8192; |
j | 91 | fs/minix/bitmap.c | if ((j=find_first_zero_bit(bh->b_data, 8192)) < 8192) |
j | 93 | fs/minix/bitmap.c | if (i>=8 || !bh || j>=8192) |
j | 95 | fs/minix/bitmap.c | if (set_bit(j,bh->b_data)) { |
j | 100 | fs/minix/bitmap.c | j += i*8192 + sb->u.minix_sb.s_firstdatazone-1; |
j | 101 | fs/minix/bitmap.c | if (j < sb->u.minix_sb.s_firstdatazone || |
j | 102 | fs/minix/bitmap.c | j >= sb->u.minix_sb.s_nzones) |
j | 104 | fs/minix/bitmap.c | if (!(bh = getblk(sb->s_dev,j,BLOCK_SIZE))) { |
j | 112 | fs/minix/bitmap.c | return j; |
j | 164 | fs/minix/bitmap.c | int i,j; |
j | 171 | fs/minix/bitmap.c | j = 8192; |
j | 174 | fs/minix/bitmap.c | if ((j=find_first_zero_bit(bh->b_data, 8192)) < 8192) |
j | 176 | fs/minix/bitmap.c | if (!bh || j >= 8192) { |
j | 180 | fs/minix/bitmap.c | if (set_bit(j,bh->b_data)) { /* shouldn't happen */ |
j | 186 | fs/minix/bitmap.c | j += i*8192; |
j | 187 | fs/minix/bitmap.c | if (!j || j >= inode->i_sb->u.minix_sb.s_ninodes) { |
j | 197 | 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 | 128 | fs/proc/base.c | int i,j; |
j | 149 | fs/proc/base.c | j = i; |
j | 152 | fs/proc/base.c | return j; |
j | 122 | fs/proc/fd.c | int i,j; |
j | 135 | fs/proc/fd.c | i = j = fd+1; |
j | 145 | fs/proc/fd.c | return j; |
j | 159 | fs/proc/fd.c | j = 10; |
j | 161 | fs/proc/fd.c | while (fd >= j) { |
j | 162 | fs/proc/fd.c | j *= 10; |
j | 165 | fs/proc/fd.c | j = i; |
j | 175 | fs/proc/fd.c | return j; |
j | 180 | fs/proc/net.c | int i,j; |
j | 193 | fs/proc/net.c | j = i; |
j | 196 | fs/proc/net.c | return j; |
j | 144 | fs/proc/root.c | int i,j; |
j | 158 | fs/proc/root.c | j = i; |
j | 161 | fs/proc/root.c | return j; |
j | 172 | fs/proc/root.c | j = 10; |
j | 174 | fs/proc/root.c | while (pid >= j) { |
j | 175 | fs/proc/root.c | j *= 10; |
j | 178 | fs/proc/root.c | j = i; |
j | 186 | 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 | 108 | fs/sysv/ialloc.c | int i,j,ino,block; |
j | 126 | 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 | 132 | fs/sysv/ialloc.c | raw_inode = (struct sysv_inode *) bh->b_data + j; |
j | 133 | fs/sysv/ialloc.c | for (; j < sb->sv_inodes_per_block && i < sb->sv_fic_size; ino++, j++, raw_inode++) { |
j | 181 | fs/sysv/ialloc.c | int j,block,count; |
j | 192 | fs/sysv/ialloc.c | for (block = sb->sv_firstinodezone, j = SYSV_ROOT_INO ; block < sb->sv_firstdatazone ; block++, j = 0) { |
j | 198 | fs/sysv/ialloc.c | raw_inode = (struct sysv_inode *) bh->b_data + j; |
j | 199 | fs/sysv/ialloc.c | for (; j < sb->sv_inodes_per_block ; j++, raw_inode++) |
j | 36 | fs/xiafs/bitmap.c | int end, i, j, tmp; |
j | 54 | fs/xiafs/bitmap.c | for (j=0; j < 32; j++) |
j | 55 | fs/xiafs/bitmap.c | if (tmp & (1 << j)) |
j | 57 | fs/xiafs/bitmap.c | if (set_bit(j,bmap+i)) { |
j | 58 | fs/xiafs/bitmap.c | start_bit=j + (i << 5) + 1; |
j | 62 | fs/xiafs/bitmap.c | return j + (i << 5); |
j | 575 | ibcs/binfmt_elf.c | int i,j, k; |
j | 615 | ibcs/binfmt_elf.c | j = 0; |
j | 617 | ibcs/binfmt_elf.c | if((elf_phdata + i)->p_type == PT_LOAD) j++; |
j | 619 | 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 | 206 | kernel/printk.c | int i,j; |
j | 214 | kernel/printk.c | for (i=0,j=0; i < log_size; i++) { |
j | 215 | kernel/printk.c | buf[j++] = log_buf[p]; |
j | 217 | kernel/printk.c | if (buf[j-1] != '\n' && i < log_size - 1 && j < sizeof(buf)-1) |
j | 219 | kernel/printk.c | buf[j] = 0; |
j | 227 | kernel/printk.c | if (buf[j-1] == '\n') |
j | 229 | 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 | 157 | mm/swap.c | int j; |
j | 160 | mm/swap.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j += 512){ |
j | 167 | mm/swap.c | int j; |
j | 171 | mm/swap.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j +=swapf->i_sb->s_blocksize) |
j | 879 | mm/swap.c | int i,j; |
j | 946 | mm/swap.c | j = 0; |
j | 955 | mm/swap.c | j++; |
j | 958 | mm/swap.c | if (!j) { |
j | 977 | mm/swap.c | p->pages = j; |
j | 978 | mm/swap.c | nr_swap_pages += j; |
j | 979 | mm/swap.c | printk("Adding Swap: %dk swap-space\n",j<<2); |
j | 998 | mm/swap.c | unsigned int i, j; |
j | 1004 | mm/swap.c | for (j = 0; j < swap_info[i].max; ++j) |
j | 1005 | mm/swap.c | switch (swap_info[i].swap_map[j]) { |
j | 104 | net/inet/af_inet.c | int i, j; |
j | 119 | net/inet/af_inet.c | j = 0; |
j | 124 | net/inet/af_inet.c | j++; |
j | 126 | net/inet/af_inet.c | if (j == 0) |
j | 131 | net/inet/af_inet.c | if (j < size) |
j | 134 | net/inet/af_inet.c | size = j; |
j | 928 | net/inet/arp.c | int i,j,k; |
j | 951 | net/inet/arp.c | for(k=0,j=0;k<HBUFFERLEN-3 && j<entry->hlen;j++) |
j | 953 | net/inet/arp.c | hbuffer[k++]=hexbuf[ (entry->ha[j]>>4)&15 ]; |
j | 954 | net/inet/arp.c | hbuffer[k++]=hexbuf[ entry->ha[j]&15 ]; |
j | 272 | net/inet/igmp.c | struct ip_mc_list *j; |
j | 273 | net/inet/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=j) |
j | 275 | net/inet/igmp.c | j=i->next; |
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--) |