tag | line | file | source code |
j | 119 | arch/i386/boot/compressed/inflate.c | register unsigned j; /* counter */ |
j | 152 | arch/i386/boot/compressed/inflate.c | for (j = 1; j <= BMAX; j++) |
j | 153 | arch/i386/boot/compressed/inflate.c | if (c[j]) |
j | 155 | arch/i386/boot/compressed/inflate.c | k = j; /* minimum code length */ |
j | 156 | arch/i386/boot/compressed/inflate.c | if ((unsigned)l < j) |
j | 157 | arch/i386/boot/compressed/inflate.c | l = j; |
j | 169 | arch/i386/boot/compressed/inflate.c | for (y = 1 << j; j < i; j++, y <<= 1) |
j | 170 | arch/i386/boot/compressed/inflate.c | if ((y -= c[j]) < 0) |
j | 179 | arch/i386/boot/compressed/inflate.c | x[1] = j = 0; |
j | 182 | arch/i386/boot/compressed/inflate.c | *xp++ = (j += *p++); |
j | 190 | arch/i386/boot/compressed/inflate.c | if ((j = *p++) != 0) |
j | 191 | arch/i386/boot/compressed/inflate.c | v[x[j]++] = i; |
j | 224 | arch/i386/boot/compressed/inflate.c | if ((f = 1 << (j = k - w)) > a + 1) /* try a k-w bit table */ |
j | 229 | arch/i386/boot/compressed/inflate.c | while (++j < z) /* try smaller tables up to z bits */ |
j | 237 | arch/i386/boot/compressed/inflate.c | z = 1 << j; /* table entries for j-bit table */ |
j | 253 | arch/i386/boot/compressed/inflate.c | r.e = (uch)(16 + j); /* bits in this table */ |
j | 255 | arch/i386/boot/compressed/inflate.c | j = i >> (w - l); /* (get around Turbo C bug) */ |
j | 256 | arch/i386/boot/compressed/inflate.c | u[h-1][j] = r; /* connect to last table */ |
j | 280 | arch/i386/boot/compressed/inflate.c | for (j = i >> w; j < z; j += f) |
j | 281 | arch/i386/boot/compressed/inflate.c | q[j] = r; |
j | 284 | arch/i386/boot/compressed/inflate.c | for (j = 1 << (k - 1); i & j; j >>= 1) |
j | 285 | arch/i386/boot/compressed/inflate.c | i ^= j; |
j | 286 | arch/i386/boot/compressed/inflate.c | i ^= j; |
j | 548 | arch/i386/boot/compressed/inflate.c | unsigned j; |
j | 594 | arch/i386/boot/compressed/inflate.c | for (j = 0; j < nb; j++) |
j | 597 | arch/i386/boot/compressed/inflate.c | ll[border[j]] = (unsigned)b & 7; |
j | 600 | arch/i386/boot/compressed/inflate.c | for (; j < 19; j++) |
j | 601 | arch/i386/boot/compressed/inflate.c | ll[border[j]] = 0; |
j | 623 | arch/i386/boot/compressed/inflate.c | j = (td = tl + ((unsigned)b & m))->b; |
j | 624 | arch/i386/boot/compressed/inflate.c | DUMPBITS(j) |
j | 625 | arch/i386/boot/compressed/inflate.c | j = td->v.n; |
j | 626 | arch/i386/boot/compressed/inflate.c | if (j < 16) /* length of code in bits (0..15) */ |
j | 627 | arch/i386/boot/compressed/inflate.c | ll[i++] = l = j; /* save last length in l */ |
j | 628 | arch/i386/boot/compressed/inflate.c | else if (j == 16) /* repeat last length 3 to 6 times */ |
j | 631 | arch/i386/boot/compressed/inflate.c | j = 3 + ((unsigned)b & 3); |
j | 633 | arch/i386/boot/compressed/inflate.c | if ((unsigned)i + j > n) |
j | 635 | arch/i386/boot/compressed/inflate.c | while (j--) |
j | 638 | arch/i386/boot/compressed/inflate.c | else if (j == 17) /* 3 to 10 zero length codes */ |
j | 641 | arch/i386/boot/compressed/inflate.c | j = 3 + ((unsigned)b & 7); |
j | 643 | arch/i386/boot/compressed/inflate.c | if ((unsigned)i + j > n) |
j | 645 | arch/i386/boot/compressed/inflate.c | while (j--) |
j | 652 | arch/i386/boot/compressed/inflate.c | j = 11 + ((unsigned)b & 0x7f); |
j | 654 | arch/i386/boot/compressed/inflate.c | if ((unsigned)i + j > n) |
j | 656 | arch/i386/boot/compressed/inflate.c | while (j--) |
j | 85 | arch/i386/kernel/process.c | int i, j; |
j | 94 | arch/i386/kernel/process.c | for(j = 0; j < 100000 ; j++) |
j | 316 | drivers/block/genhd.c | int j = start + dev->max_p; |
j | 322 | drivers/block/genhd.c | for (i=start ; i < j ; i++) |
j | 329 | drivers/block/genhd.c | int j = dev->max_nr * dev->max_p; |
j | 334 | drivers/block/genhd.c | for (i = 0 ; i < j; i++) { |
j | 343 | drivers/block/genhd.c | for (i=0 ; i < j ; i++) |
j | 669 | drivers/block/gscd.c | int i,j; |
j | 677 | drivers/block/gscd.c | j = *pstr & 0x0F; |
j | 680 | drivers/block/gscd.c | for ( i=0 ; i<j ; i++ ) |
j | 523 | drivers/block/ll_rw_blk.c | int i, j; |
j | 545 | drivers/block/ll_rw_blk.c | for (j=0, i=0; i<nb;) |
j | 547 | drivers/block/ll_rw_blk.c | for (; j < 8 && i < nb; j++, i++, buf += buffersize) |
j | 549 | drivers/block/ll_rw_blk.c | if (j == 0) { |
j | 550 | drivers/block/ll_rw_blk.c | req[j] = get_request_wait(NR_REQUEST, dev); |
j | 553 | drivers/block/ll_rw_blk.c | req[j] = get_request(NR_REQUEST, dev); |
j | 555 | drivers/block/ll_rw_blk.c | if (req[j] == NULL) |
j | 558 | drivers/block/ll_rw_blk.c | req[j]->cmd = rw; |
j | 559 | drivers/block/ll_rw_blk.c | req[j]->errors = 0; |
j | 560 | drivers/block/ll_rw_blk.c | req[j]->sector = (b[i] * buffersize) >> 9; |
j | 561 | drivers/block/ll_rw_blk.c | req[j]->nr_sectors = buffersize >> 9; |
j | 562 | drivers/block/ll_rw_blk.c | req[j]->current_nr_sectors = buffersize >> 9; |
j | 563 | drivers/block/ll_rw_blk.c | req[j]->buffer = buf; |
j | 564 | drivers/block/ll_rw_blk.c | req[j]->sem = &sem; |
j | 565 | drivers/block/ll_rw_blk.c | req[j]->bh = NULL; |
j | 566 | drivers/block/ll_rw_blk.c | req[j]->next = NULL; |
j | 567 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req[j]); |
j | 569 | drivers/block/ll_rw_blk.c | while (j > 0) { |
j | 570 | drivers/block/ll_rw_blk.c | j--; |
j | 920 | drivers/block/sbpcd.c | int i,j; |
j | 927 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 928 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) return (j); |
j | 929 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) return (j); |
j | 930 | drivers/block/sbpcd.c | if (fam0L_drive) if (j&s_attention) return (j); |
j | 939 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 940 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) return (j); |
j | 941 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) return (j); |
j | 942 | drivers/block/sbpcd.c | if (fam0L_drive) if (j&s_attention) return (j); |
j | 949 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 950 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) return (j); |
j | 951 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) return (j); |
j | 952 | drivers/block/sbpcd.c | if (fam0L_drive) if (j&s_attention) return (j); |
j | 995 | drivers/block/sbpcd.c | int i,j,st=0; |
j | 1005 | drivers/block/sbpcd.c | for (j=maxtim_8;j!=0;j--) |
j | 1010 | drivers/block/sbpcd.c | if (j==0) |
j | 1021 | drivers/block/sbpcd.c | for (j=maxtim_data; ; ) |
j | 1023 | drivers/block/sbpcd.c | for ( ;j!=0;j-- ) |
j | 1028 | drivers/block/sbpcd.c | if ((j!=0)||(timeout<=jiffies)) break; |
j | 1030 | drivers/block/sbpcd.c | j = 1; |
j | 1041 | drivers/block/sbpcd.c | j=i-response_count; |
j | 1042 | drivers/block/sbpcd.c | if (j>0) msg(DBG_INF,"ResponseInfo: got %d trailing bytes.\n",j); |
j | 1044 | drivers/block/sbpcd.c | for (j=0;j<i;j++) |
j | 1045 | drivers/block/sbpcd.c | sprintf(&msgbuf[j*3]," %02X",infobuf[j]); |
j | 1046 | drivers/block/sbpcd.c | msgbuf[j*3]=0; |
j | 1048 | drivers/block/sbpcd.c | j=response_count-i; |
j | 1049 | drivers/block/sbpcd.c | if (j>0) return (-j); |
j | 1151 | drivers/block/sbpcd.c | int i,j; |
j | 1162 | drivers/block/sbpcd.c | if (flags_cmd_out & f_respo3) j = maxtim_8; |
j | 1163 | drivers/block/sbpcd.c | else if (flags_cmd_out&f_respo2) j=maxtim16; |
j | 1164 | drivers/block/sbpcd.c | else j=maxtim04; |
j | 1165 | drivers/block/sbpcd.c | for (;j!=0;j--) |
j | 1176 | drivers/block/sbpcd.c | j=maxtim_8; |
j | 1179 | drivers/block/sbpcd.c | for ( ;j!=0;j--) |
j | 1184 | drivers/block/sbpcd.c | if ((j!=0)||(timeout<jiffies)) break; |
j | 1186 | drivers/block/sbpcd.c | j = 1; |
j | 1190 | drivers/block/sbpcd.c | if (j==0) |
j | 1275 | drivers/block/sbpcd.c | int i, j, l, ntries; |
j | 1291 | drivers/block/sbpcd.c | j=inb(CDi_info); |
j | 1294 | drivers/block/sbpcd.c | msg(DBG_TEA,"cmd_out_T: spurious !s_not_result_ready. (%02X)\n", j); |
j | 1320 | drivers/block/sbpcd.c | for (j=0;j<l;j++) sprintf(&msgbuf[j*3]," %02X",infobuf[j]); |
j | 1321 | drivers/block/sbpcd.c | msgbuf[j*3]=0; |
j | 1327 | drivers/block/sbpcd.c | j=0; |
j | 1331 | drivers/block/sbpcd.c | j++; |
j | 1335 | drivers/block/sbpcd.c | msg(DBG_TEA,"cmd_out_T: data response: discarded %d bytes.\n", j); |
j | 1350 | drivers/block/sbpcd.c | for (j=0;j<l;j++) sprintf(&msgbuf[j*3]," %02X",infobuf[j]); |
j | 1351 | drivers/block/sbpcd.c | msgbuf[j*3]=0; |
j | 1360 | drivers/block/sbpcd.c | j=cmd_out_T(); /* !!! recursive here !!! */ |
j | 1364 | drivers/block/sbpcd.c | while (j<0); |
j | 1608 | drivers/block/sbpcd.c | int i, j; |
j | 1625 | drivers/block/sbpcd.c | j=cc_set_mode_T(); |
j | 1631 | drivers/block/sbpcd.c | return (j); |
j | 1937 | drivers/block/sbpcd.c | int i, j, n; |
j | 1958 | drivers/block/sbpcd.c | j=1; |
j | 1973 | drivers/block/sbpcd.c | j=3; |
j | 1982 | drivers/block/sbpcd.c | drvcmd[j]=(pos_audio_start>>16)&0x00FF; |
j | 1983 | drivers/block/sbpcd.c | drvcmd[j+1]=(pos_audio_start>>8)&0x00FF; |
j | 1984 | drivers/block/sbpcd.c | drvcmd[j+2]=pos_audio_start&0x00FF; |
j | 1985 | drivers/block/sbpcd.c | drvcmd[j+3]=(pos_audio_end>>16)&0x00FF; |
j | 1986 | drivers/block/sbpcd.c | drvcmd[j+4]=(pos_audio_end>>8)&0x00FF; |
j | 1987 | drivers/block/sbpcd.c | drvcmd[j+5]=pos_audio_end&0x00FF; |
j | 2072 | drivers/block/sbpcd.c | int i,j; |
j | 2074 | drivers/block/sbpcd.c | j=20; |
j | 2078 | drivers/block/sbpcd.c | --j; |
j | 2081 | drivers/block/sbpcd.c | while ((i<0)&&(j)); |
j | 2092 | drivers/block/sbpcd.c | int i,j; |
j | 2094 | drivers/block/sbpcd.c | j=20; |
j | 2098 | drivers/block/sbpcd.c | --j; |
j | 2101 | drivers/block/sbpcd.c | while ((i<0)&&(j)); |
j | 2102 | drivers/block/sbpcd.c | if (j==0) |
j | 2105 | drivers/block/sbpcd.c | j=20; |
j | 2109 | drivers/block/sbpcd.c | --j; |
j | 2112 | drivers/block/sbpcd.c | while ((i<0)&&(j)); |
j | 2157 | drivers/block/sbpcd.c | int i,j; |
j | 2160 | drivers/block/sbpcd.c | for (j=255;j>0;j--) |
j | 2206 | drivers/block/sbpcd.c | if ((!st_spinning) || (j==1)) |
j | 2461 | drivers/block/sbpcd.c | int i, j; |
j | 2465 | drivers/block/sbpcd.c | for (j=3;j>0;j--) |
j | 2500 | drivers/block/sbpcd.c | if (j==0) return (i); |
j | 3020 | drivers/block/sbpcd.c | int i, j, l; |
j | 3044 | drivers/block/sbpcd.c | j=0; |
j | 3045 | drivers/block/sbpcd.c | for (i=0;i<12;i++) j+=infobuf[i]; |
j | 3046 | drivers/block/sbpcd.c | if (j) |
j | 3091 | drivers/block/sbpcd.c | for (j=0;j<8;j++) |
j | 3092 | drivers/block/sbpcd.c | D_S[d].drive_model[j]=infobuf[j]; |
j | 3122 | drivers/block/sbpcd.c | j=0; |
j | 3123 | drivers/block/sbpcd.c | for (i=0;i<12;i++) j+=infobuf[i]; |
j | 3124 | drivers/block/sbpcd.c | if (j) |
j | 3156 | drivers/block/sbpcd.c | for (j=1;j<=((D_S[d].drv_id==0)?3:1);j++) |
j | 3160 | drivers/block/sbpcd.c | msg(DBG_TEA,"TEAC reset #%d-%d.\n", j, l); |
j | 3212 | drivers/block/sbpcd.c | for (j=0;j<4;j++) D_S[d].firmware_version[j]=infobuf[i+j]; |
j | 3218 | drivers/block/sbpcd.c | for (j=0;j<4;j++) |
j | 3219 | drivers/block/sbpcd.c | if (D_S[d].firmware_version[j]!=lcs_firm_e1[j]) break; |
j | 3220 | drivers/block/sbpcd.c | if (j==4) D_S[d].drv_type=drv_e1; |
j | 3222 | drivers/block/sbpcd.c | for (j=0;j<4;j++) |
j | 3223 | drivers/block/sbpcd.c | if (D_S[d].firmware_version[j]!=lcs_firm_f4[j]) break; |
j | 3224 | drivers/block/sbpcd.c | if (j==4) D_S[d].drv_type=drv_f4; |
j | 3230 | drivers/block/sbpcd.c | j=infobuf[4]; /* one-byte version??? - here: 0x15 */ |
j | 3231 | drivers/block/sbpcd.c | if (j=='5') |
j | 3240 | drivers/block/sbpcd.c | if (j!=0x15) ask_mail(); |
j | 3243 | drivers/block/sbpcd.c | D_S[d].firmware_version[2]='0'+(j>>4); |
j | 3244 | drivers/block/sbpcd.c | D_S[d].firmware_version[3]='0'+(j&0x0f); |
j | 3249 | drivers/block/sbpcd.c | j = (D_S[d].firmware_version[0] & 0x0F) * 100 + |
j | 3254 | drivers/block/sbpcd.c | if (j<200) D_S[d].drv_type=drv_199; |
j | 3255 | drivers/block/sbpcd.c | else if (j<201) D_S[d].drv_type=drv_200; |
j | 3256 | drivers/block/sbpcd.c | else if (j<210) D_S[d].drv_type=drv_201; |
j | 3257 | drivers/block/sbpcd.c | else if (j<211) D_S[d].drv_type=drv_210; |
j | 3258 | drivers/block/sbpcd.c | else if (j<300) D_S[d].drv_type=drv_211; |
j | 3259 | drivers/block/sbpcd.c | else if (j>=300) D_S[d].drv_type=drv_300; |
j | 3263 | drivers/block/sbpcd.c | if (j<100) D_S[d].drv_type=drv_099; |
j | 3267 | drivers/block/sbpcd.c | if ((j!=500)||(j!=102)) ask_mail(); |
j | 3274 | drivers/block/sbpcd.c | if ((j!=101)&&(j!=35)) ask_mail(); /* only 1.01 and 0.35 known at time */ |
j | 3298 | drivers/block/sbpcd.c | int i, j, k; |
j | 3307 | drivers/block/sbpcd.c | for (j=0;j<NR_SBPCD;j++) |
j | 3309 | drivers/block/sbpcd.c | OUT(port+3,j) ; /* enable drive #j */ |
j | 3325 | drivers/block/sbpcd.c | msg(DBG_TEA,"path check 00 (%d): %s\n", j, msgbuf); |
j | 3341 | drivers/block/sbpcd.c | msg(DBG_TEA,"path check 00 (%d): %s\n", j, msgbuf); |
j | 3347 | drivers/block/sbpcd.c | for (j=0;j<NR_SBPCD;j++) |
j | 3349 | drivers/block/sbpcd.c | OUT(port+3,j) ; /* enable drive #j */ |
j | 3365 | drivers/block/sbpcd.c | msg(DBG_TEA,"path check 12 (%d): %s\n", j, msgbuf); |
j | 3382 | drivers/block/sbpcd.c | msg(DBG_TEA,"path check 12 (%d): %s\n", j, msgbuf); |
j | 3400 | drivers/block/sbpcd.c | int i, j; |
j | 3404 | drivers/block/sbpcd.c | for (j=0;j<MAX_DRIVES;j++) |
j | 3406 | drivers/block/sbpcd.c | D_S[ndrives].drv_id=j; |
j | 3407 | drivers/block/sbpcd.c | if (sbpro_type==1) D_S[ndrives].drv_sel=(j&0x01)<<1|(j&0x02)>>1; |
j | 3408 | drivers/block/sbpcd.c | else D_S[ndrives].drv_sel=j; |
j | 3410 | drivers/block/sbpcd.c | msg(DBG_INI,"check_drives: drive %d (ID=%d) activated.\n",ndrives,j); |
j | 3411 | drivers/block/sbpcd.c | msg(DBG_000,"check_drives: drive %d (ID=%d) activated.\n",ndrives,j); |
j | 3416 | drivers/block/sbpcd.c | D_S[d].drv_options=drv_pattern[j]; |
j | 3428 | drivers/block/sbpcd.c | for (j=ndrives;j<NR_SBPCD;j++) D_S[j].drv_id=-1; |
j | 3567 | drivers/block/sbpcd.c | int i, j; |
j | 3570 | drivers/block/sbpcd.c | for (j=D_S[d].n_first_track;j<=D_S[d].n_last_track;j++) |
j | 3572 | drivers/block/sbpcd.c | i=cc_ReadTocEntry(j); |
j | 3575 | drivers/block/sbpcd.c | msg(DBG_INF,"cc_ReadTocEntry(%d) returns %d.\n",j,i); |
j | 3578 | drivers/block/sbpcd.c | D_S[d].TocBuffer[j].nixbyte=D_S[d].TocEnt_nixbyte; |
j | 3579 | drivers/block/sbpcd.c | D_S[d].TocBuffer[j].ctl_adr=D_S[d].TocEnt_ctl_adr; |
j | 3580 | drivers/block/sbpcd.c | D_S[d].TocBuffer[j].number=D_S[d].TocEnt_number; |
j | 3581 | drivers/block/sbpcd.c | D_S[d].TocBuffer[j].format=D_S[d].TocEnt_format; |
j | 3582 | drivers/block/sbpcd.c | D_S[d].TocBuffer[j].address=D_S[d].TocEnt_address; |
j | 3586 | drivers/block/sbpcd.c | D_S[d].TocBuffer[j].nixbyte=0; |
j | 3587 | drivers/block/sbpcd.c | D_S[d].TocBuffer[j].ctl_adr=0; |
j | 3588 | drivers/block/sbpcd.c | D_S[d].TocBuffer[j].number=CDROM_LEADOUT; |
j | 3589 | drivers/block/sbpcd.c | D_S[d].TocBuffer[j].format=0; |
j | 3590 | drivers/block/sbpcd.c | D_S[d].TocBuffer[j].address=D_S[d].size_msf; |
j | 3598 | drivers/block/sbpcd.c | int i, j; |
j | 3606 | drivers/block/sbpcd.c | for (j=1;j<LOOP_COUNT;j++) |
j | 3622 | drivers/block/sbpcd.c | msg(DBG_INF,"DiskInfo: ReadCapacity #%d returns %d\n", j, i); |
j | 3625 | drivers/block/sbpcd.c | if (j==LOOP_COUNT) return (-33); /* give up */ |
j | 4112 | drivers/block/sbpcd.c | int i=0, j=0, frame, block; |
j | 4207 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 4208 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) break; |
j | 4209 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) break; |
j | 4210 | drivers/block/sbpcd.c | if (fam0L_drive) if (j&s_attention) break; |
j | 4225 | drivers/block/sbpcd.c | if (j&s_not_data_ready) |
j | 4257 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 4258 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) break; |
j | 4259 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) break; |
j | 4260 | drivers/block/sbpcd.c | if (j&s_attention) break; |
j | 4267 | drivers/block/sbpcd.c | if (!(j&s_attention)) |
j | 4553 | drivers/block/sbpcd.c | int i=0, j=0, l, frame; |
j | 4592 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 4593 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) break;; |
j | 4594 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) break; |
j | 4595 | drivers/block/sbpcd.c | if (fam0L_drive) if (j&s_attention) break; |
j | 4597 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) goto data_ready; |
j | 4613 | drivers/block/sbpcd.c | msg(DBG_INF,"sbp_data: CDi_status timeout (timed_out_data) (%02X).\n", j); |
j | 4619 | drivers/block/sbpcd.c | msg(DBG_INF,"sbp_data: CDi_status timeout (try=0) (%02X).\n", j); |
j | 4623 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) |
j | 4625 | drivers/block/sbpcd.c | msg(DBG_INF, "sbp_data: RESULT_READY where DATA_READY awaited (%02X).\n", j); |
j | 4627 | drivers/block/sbpcd.c | j=ResponseInfo(); |
j | 4628 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 4630 | drivers/block/sbpcd.c | if (j&s_not_data_ready) |
j | 4634 | drivers/block/sbpcd.c | else msg(DBG_INF, "sbp_data: DATA_READY timeout (%02X).\n", j); |
j | 4677 | drivers/block/sbpcd.c | j=0; |
j | 4681 | drivers/block/sbpcd.c | j++; |
j | 4685 | drivers/block/sbpcd.c | msg(DBG_TEA, "=============too much data (%d bytes)=================.\n", j); |
j | 4699 | drivers/block/sbpcd.c | for (j=0;j<l;j++) sprintf(&msgbuf[j*3], " %02X", infobuf[j]); |
j | 4700 | drivers/block/sbpcd.c | msgbuf[j*3]=0; |
j | 4713 | drivers/block/sbpcd.c | j=cmd_out_T(); /* !!! recursive here !!! */ |
j | 4717 | drivers/block/sbpcd.c | while (j<0); |
j | 4755 | drivers/block/sbpcd.c | j=inb(CDi_status); |
j | 4756 | drivers/block/sbpcd.c | if (!(j&s_not_data_ready)) break; |
j | 4757 | drivers/block/sbpcd.c | if (!(j&s_not_result_ready)) break; |
j | 4758 | drivers/block/sbpcd.c | if (j&s_attention) break; |
j | 4765 | drivers/block/sbpcd.c | if (!(j&s_attention)) |
j | 5073 | drivers/block/sbpcd.c | int i=0, j=0; |
j | 5154 | drivers/block/sbpcd.c | for (j=0;j<NR_SBPCD;j++) |
j | 5156 | drivers/block/sbpcd.c | if (D_S[j].drv_id==-1) continue; |
j | 5157 | drivers/block/sbpcd.c | switch_drive(j); |
j | 5241 | drivers/block/sbpcd.c | for (j=0;j<NR_SBPCD;j++) |
j | 5243 | drivers/block/sbpcd.c | if (D_S[j].drv_id==-1) continue; |
j | 5244 | drivers/block/sbpcd.c | switch_drive(j); |
j | 5248 | drivers/block/sbpcd.c | D_S[j].aud_buf=NULL; |
j | 5249 | drivers/block/sbpcd.c | D_S[j].sbp_audsiz=0; |
j | 5250 | drivers/block/sbpcd.c | D_S[j].sbp_bufsiz=SBP_BUFFER_FRAMES; |
j | 5251 | drivers/block/sbpcd.c | if (D_S[j].drv_type&drv_fam1) |
j | 5252 | drivers/block/sbpcd.c | if (READ_AUDIO>0) D_S[j].sbp_audsiz=READ_AUDIO; |
j | 5254 | drivers/block/sbpcd.c | D_S[j].sbp_buf=(u_char *) vmalloc(D_S[j].sbp_bufsiz*CD_FRAMESIZE); |
j | 5255 | drivers/block/sbpcd.c | if (D_S[j].sbp_buf==NULL) |
j | 5257 | drivers/block/sbpcd.c | msg(DBG_INF,"data buffer (%d frames) not available.\n",D_S[j].sbp_bufsiz); |
j | 5261 | drivers/block/sbpcd.c | if (D_S[j].sbp_audsiz>0) |
j | 5263 | drivers/block/sbpcd.c | D_S[j].aud_buf=(u_char *) vmalloc(D_S[j].sbp_audsiz*CD_FRAMESIZE_RAW); |
j | 5264 | drivers/block/sbpcd.c | if (D_S[j].aud_buf==NULL) msg(DBG_INF,"audio buffer (%d frames) not available.\n",D_S[j].sbp_audsiz); |
j | 5265 | drivers/block/sbpcd.c | else msg(DBG_INF,"audio buffer size: %d frames.\n",D_S[j].sbp_audsiz); |
j | 5268 | drivers/block/sbpcd.c | D_S[j].sbp_buf=(u_char *)mem_start; |
j | 5269 | drivers/block/sbpcd.c | mem_start += D_S[j].sbp_bufsiz*CD_FRAMESIZE; |
j | 5270 | drivers/block/sbpcd.c | if (D_S[j].sbp_audsiz>0) |
j | 5272 | drivers/block/sbpcd.c | D_S[j].aud_buf=(u_char *)mem_start; |
j | 5273 | drivers/block/sbpcd.c | mem_start += D_S[j].sbp_audsiz*CD_FRAMESIZE_RAW; |
j | 5279 | drivers/block/sbpcd.c | sbpcd_blocksizes[j]=CD_FRAMESIZE; |
j | 5305 | drivers/block/sbpcd.c | int j; |
j | 5319 | drivers/block/sbpcd.c | for (j=0;j<NR_SBPCD;j++) |
j | 5321 | drivers/block/sbpcd.c | if (D_S[j].drv_id==-1) continue; |
j | 5322 | drivers/block/sbpcd.c | vfree(D_S[j].sbp_buf); |
j | 5323 | drivers/block/sbpcd.c | if (D_S[j].sbp_audsiz>0) |
j | 5324 | drivers/block/sbpcd.c | vfree(D_S[j].aud_buf); |
j | 687 | drivers/block/sonycd535.c | int i, j, n_tracks, track_no; |
j | 704 | drivers/block/sonycd535.c | for (j = 0; j < 5; j++) { |
j | 705 | drivers/block/sonycd535.c | if (read_result_reg(track_address_buffer + j) != 0) |
j | 707 | drivers/block/sonycd535.c | if (j == 1) /* need to convert from bcd */ |
j | 708 | drivers/block/sonycd535.c | track_no = bcd_to_int(track_address_buffer[j]); |
j | 135 | drivers/block/xd.c | u_char i,j,found = 0; |
j | 145 | drivers/block/xd.c | for (j = 1; j < (sizeof(xd_sigs) / sizeof(xd_sigs[0])) && !found; j++) |
j | 146 | drivers/block/xd.c | if (!memcmp(xd_bases[i] + xd_sigs[j].offset,xd_sigs[j].string,strlen(xd_sigs[j].string))) { |
j | 147 | drivers/block/xd.c | *controller = j; |
j | 1645 | drivers/char/console.c | int i = par[0]*3, j = 1; |
j | 1646 | drivers/char/console.c | palette[i] = 16*par[j++]; |
j | 1647 | drivers/char/console.c | palette[i++] += par[j++]; |
j | 1648 | drivers/char/console.c | palette[i] = 16*par[j++]; |
j | 1649 | drivers/char/console.c | palette[i++] += par[j++]; |
j | 1650 | drivers/char/console.c | palette[i] = 16*par[j++]; |
j | 1651 | drivers/char/console.c | palette[i] += par[j]; |
j | 1951 | drivers/char/console.c | int j, k ; |
j | 1962 | drivers/char/console.c | for (j=k=0; j<16; j++) { |
j | 1963 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_red[j] ; |
j | 1964 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_grn[j] ; |
j | 1965 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_blu[j] ; |
j | 2127 | drivers/char/console.c | int j, k ; |
j | 2138 | drivers/char/console.c | for (j=k=0; j<16; j++) { |
j | 2139 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_red[j] ; |
j | 2140 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_grn[j] ; |
j | 2141 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_blu[j] ; |
j | 2533 | drivers/char/console.c | int j, k ; |
j | 2534 | drivers/char/console.c | for (j=k=0; j<16; j++) { |
j | 2535 | drivers/char/console.c | vc_cons[i].d->vc_palette[k++] = default_red[j]; |
j | 2536 | drivers/char/console.c | vc_cons[i].d->vc_palette[k++] = default_grn[j]; |
j | 2537 | drivers/char/console.c | vc_cons[i].d->vc_palette[k++] = default_blu[j]; |
j | 2566 | drivers/char/console.c | int j, k ; |
j | 2567 | drivers/char/console.c | for (j=k=0; j<16; j++) { |
j | 2568 | drivers/char/console.c | palette[k++] = default_red[j]; |
j | 2569 | drivers/char/console.c | palette[k++] = default_grn[j]; |
j | 2570 | drivers/char/console.c | palette[k++] = default_blu[j]; |
j | 2577 | drivers/char/console.c | int i, j ; |
j | 2583 | drivers/char/console.c | for (i=j=0; i<16; i++) { |
j | 2585 | drivers/char/console.c | outb_p (vc_cons[fg_console].d->vc_palette[j++]>>2, dac_val) ; |
j | 2586 | drivers/char/console.c | outb_p (vc_cons[fg_console].d->vc_palette[j++]>>2, dac_val) ; |
j | 2587 | drivers/char/console.c | outb_p (vc_cons[fg_console].d->vc_palette[j++]>>2, dac_val) ; |
j | 167 | drivers/char/consolemap.c | int j, glyph; |
j | 179 | drivers/char/consolemap.c | for (j=0; j<E_TABSZ; j++) |
j | 180 | drivers/char/consolemap.c | q[j] = 0; |
j | 181 | drivers/char/consolemap.c | for (j=0; j<E_TABSZ; j++) |
j | 182 | drivers/char/consolemap.c | if (q[glyph = conv_uni_to_pc(p[j])] < 32) |
j | 184 | drivers/char/consolemap.c | q[glyph] = j; |
j | 227 | drivers/char/cyclades.c | #define small_delay(x) for(j=0;j<x;j++)k++; |
j | 598 | drivers/char/cyclades.c | int i,j; |
j | 642 | drivers/char/cyclades.c | j = (base_addr[CyRIVR] & CyIVRMask); |
j | 643 | drivers/char/cyclades.c | if ( j == CyIVRRxEx ) { /* exception */ |
j | 653 | drivers/char/cyclades.c | j = (base_addr[CyRIVR] & CyIVRMask); |
j | 654 | drivers/char/cyclades.c | if ( j == CyIVRRxEx ) { /* exception */ |
j | 966 | drivers/char/keyboard.c | int i, j, k, sym, val; |
j | 975 | drivers/char/keyboard.c | for(j=0; j<BITS_PER_LONG; j++,k++) |
j | 460 | drivers/char/vt.c | int j; |
j | 471 | drivers/char/vt.c | for (j = 1; j < NR_KEYS; j++) |
j | 472 | drivers/char/vt.c | key_map[j] = U(K_HOLE); |
j | 518 | drivers/char/vt.c | int j, k, sz; |
j | 532 | drivers/char/vt.c | for (j = i+1; j < MAX_NR_FUNC && !func_table[j]; j++) ; |
j | 533 | drivers/char/vt.c | if (j < MAX_NR_FUNC) |
j | 534 | drivers/char/vt.c | fj = func_table[j]; |
j | 546 | drivers/char/vt.c | if (j < MAX_NR_FUNC) { |
j | 548 | drivers/char/vt.c | for (k = j; k < MAX_NR_FUNC; k++) |
j | 567 | drivers/char/vt.c | for (k = 0; k < j; k++) |
j | 573 | drivers/char/vt.c | for (k = j; k < MAX_NR_FUNC; k++) |
j | 398 | drivers/net/3c505.c | int i, j; |
j | 439 | drivers/net/3c505.c | j = 0; |
j | 440 | drivers/net/3c505.c | while (((stat = get_status(dev->base_addr))&ACRF) == 0 && j++ < 20000) |
j | 445 | drivers/net/3c505.c | } while ((stat & ASF_PCB_MASK) != ASF_PCB_END && j < 20000); |
j | 447 | drivers/net/3c505.c | if (j >= 20000) { |
j | 533 | drivers/net/de4x5.c | int tmpbus, tmpchs, i, j, status=0; |
j | 629 | drivers/net/de4x5.c | for (tmp=NULL, j=0; (j<BUFF_ALLOC_RETRIES) && (tmp==NULL); j++) { |
j | 873 | drivers/net/de4x5.c | int i, j, status = 0; |
j | 919 | drivers/net/de4x5.c | for (j=0, i=jiffies;(i==jiffies) && (j==0);) { |
j | 920 | drivers/net/de4x5.c | if (lp->tx_ring[lp->tx_new].status >= 0) j=1; |
j | 924 | drivers/net/de4x5.c | if (j == 0) { |
j | 1427 | drivers/net/de4x5.c | int i, j, bit, byte; |
j | 1446 | drivers/net/de4x5.c | for (bit = *addrs++,j=0;j<8;j++, bit>>=1) { |
j | 1468 | drivers/net/de4x5.c | for (j=0; j<num_addrs; j++) { |
j | 2098 | drivers/net/de4x5.c | s32 i = 2048, j; |
j | 2101 | drivers/net/de4x5.c | j = inl(DE4X5_OMR); |
j | 2102 | drivers/net/de4x5.c | if ((j & OMR_TTM) && (j & OMR_PS)) { /* 10Mb/s MII */ |
j | 2104 | drivers/net/de4x5.c | } else if ((~j & OMR_TTM) && (j & OMR_PS)) { /* 100Mb/s MII */ |
j | 2216 | drivers/net/de4x5.c | int i, j, tmp, status = 0; |
j | 2225 | drivers/net/de4x5.c | for (i=0,j=0;(j<sigLength) && (i<PROBE_LENGTH+sigLength-1);i++) { |
j | 2232 | drivers/net/de4x5.c | if (dev.Sig[j] == data) { /* track signature */ |
j | 2233 | drivers/net/de4x5.c | j++; |
j | 2236 | drivers/net/de4x5.c | j=1; |
j | 2238 | drivers/net/de4x5.c | j=0; |
j | 2243 | drivers/net/de4x5.c | if (j!=sigLength) { |
j | 2261 | drivers/net/de4x5.c | u_short j,chksum; |
j | 2264 | drivers/net/de4x5.c | for (i=0,k=0,j=0;j<3;j++) { |
j | 2491 | drivers/net/de4x5.c | int i, j, status = 0; |
j | 2643 | drivers/net/de4x5.c | j = 0; |
j | 2644 | drivers/net/de4x5.c | tmp.lval[0] = inl(DE4X5_STS); j+=4; |
j | 2645 | drivers/net/de4x5.c | tmp.lval[1] = inl(DE4X5_BMR); j+=4; |
j | 2646 | drivers/net/de4x5.c | tmp.lval[2] = inl(DE4X5_IMR); j+=4; |
j | 2647 | drivers/net/de4x5.c | tmp.lval[3] = inl(DE4X5_OMR); j+=4; |
j | 2648 | drivers/net/de4x5.c | tmp.lval[4] = inl(DE4X5_SISR); j+=4; |
j | 2649 | drivers/net/de4x5.c | tmp.lval[5] = inl(DE4X5_SICR); j+=4; |
j | 2650 | drivers/net/de4x5.c | tmp.lval[6] = inl(DE4X5_STRR); j+=4; |
j | 2651 | drivers/net/de4x5.c | tmp.lval[7] = inl(DE4X5_SIGR); j+=4; |
j | 2652 | drivers/net/de4x5.c | ioc->len = j; |
j | 2661 | drivers/net/de4x5.c | j = 0; |
j | 2662 | drivers/net/de4x5.c | tmp.addr[j++] = dev->irq; |
j | 2664 | drivers/net/de4x5.c | tmp.addr[j++] = dev->dev_addr[i]; |
j | 2666 | drivers/net/de4x5.c | tmp.addr[j++] = lp->rxRingSize; |
j | 2667 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)lp->rx_ring; j+=4; |
j | 2668 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)lp->tx_ring; j+=4; |
j | 2672 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->rx_ring[i].status; j+=4; |
j | 2675 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->rx_ring[i].status; j+=4; |
j | 2678 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->tx_ring[i].status; j+=4; |
j | 2681 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->tx_ring[i].status; j+=4; |
j | 2685 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->rx_ring[i].buf; j+=4; |
j | 2688 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->rx_ring[i].buf; j+=4; |
j | 2691 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->tx_ring[i].buf; j+=4; |
j | 2694 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->tx_ring[i].buf; j+=4; |
j | 2697 | drivers/net/de4x5.c | tmp.lval[j>>2] = lp->rx_ring[i].status; j+=4; |
j | 2700 | drivers/net/de4x5.c | tmp.lval[j>>2] = lp->tx_ring[i].status; j+=4; |
j | 2703 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_STS); j+=4; |
j | 2704 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_BMR); j+=4; |
j | 2705 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_IMR); j+=4; |
j | 2706 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_OMR); j+=4; |
j | 2707 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_SISR); j+=4; |
j | 2708 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_SICR); j+=4; |
j | 2709 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_STRR); j+=4; |
j | 2710 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_SIGR); j+=4; |
j | 2712 | drivers/net/de4x5.c | tmp.addr[j++] = lp->txRingSize; |
j | 2713 | drivers/net/de4x5.c | tmp.addr[j++] = dev->tbusy; |
j | 2715 | drivers/net/de4x5.c | ioc->len = j; |
j | 453 | drivers/net/depca.c | int i, j, offset, netRAM, mem_len, status=0; |
j | 542 | drivers/net/depca.c | for (i=0, j = lp->rxRingMask; j>0; i++) { |
j | 543 | drivers/net/depca.c | j >>= 1; |
j | 546 | drivers/net/depca.c | for (i=0, j = lp->txRingMask; j>0; i++) { |
j | 547 | drivers/net/depca.c | j >>= 1; |
j | 1200 | drivers/net/depca.c | int i, j, bit, byte; |
j | 1220 | drivers/net/depca.c | for (bit = *addrs++,j=0;j<8;j++, bit>>=1) { |
j | 1225 | drivers/net/depca.c | for (j=0;j<5;j++) { /* ... in reverse order. */ |
j | 1440 | drivers/net/depca.c | u_int i,j,k; |
j | 1450 | drivers/net/depca.c | for (j=0,k=0;j<16 && k<strlen(signatures[i]);j++) { |
j | 1451 | drivers/net/depca.c | if (signatures[i][k] == tmpstr[j]) { /* track signature */ |
j | 1494 | drivers/net/depca.c | int i, j, status = 0; |
j | 1509 | drivers/net/depca.c | for (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) { |
j | 1511 | drivers/net/depca.c | if (dev.Sig[j] == data) { /* track signature */ |
j | 1512 | drivers/net/depca.c | j++; |
j | 1515 | drivers/net/depca.c | j=1; |
j | 1517 | drivers/net/depca.c | j=0; |
j | 1522 | drivers/net/depca.c | if (j!=sigLength) { |
j | 1538 | drivers/net/depca.c | u_short j, x, chksum; |
j | 1542 | drivers/net/depca.c | for (i=0,k=0,j=0;j<3;j++) { |
j | 1255 | drivers/net/ewrk3.c | char j, bit, byte; |
j | 1299 | drivers/net/ewrk3.c | for (bit = *addrs++,j=0;j<8;j++, bit>>=1) { |
j | 1494 | drivers/net/ewrk3.c | unsigned long i,j,k; |
j | 1499 | drivers/net/ewrk3.c | for (j=EEPROM_PNAME7,k=0;j<=EEPROM_PNAME0 && k<strlen(signatures[i]);j++) { |
j | 1500 | drivers/net/ewrk3.c | if (signatures[i][k] == eeprom_image[j]) { /* track signature */ |
j | 1527 | drivers/net/ewrk3.c | int i, j, status = 0; |
j | 1534 | drivers/net/ewrk3.c | for (i=0,j=0;devSig[i] != '\0' && !status;i+=2,j++) { |
j | 1538 | drivers/net/ewrk3.c | devSig[j]=devSig[i]+devSig[i+1]; |
j | 1546 | drivers/net/ewrk3.c | sigLength=j; |
j | 1559 | drivers/net/ewrk3.c | for (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) { |
j | 1561 | drivers/net/ewrk3.c | if (devSig[j] == data) { /* track signature */ |
j | 1562 | drivers/net/ewrk3.c | j++; |
j | 1564 | drivers/net/ewrk3.c | j=0; |
j | 1568 | drivers/net/ewrk3.c | if (j!=sigLength) { |
j | 1579 | drivers/net/ewrk3.c | unsigned short j,chksum; |
j | 1584 | drivers/net/ewrk3.c | for (crc=0x6a, j=0; j<ETH_ALEN; j++) { |
j | 1585 | drivers/net/ewrk3.c | for (sd=inb(EWRK3_PAR0+j), k=0; k<8; k++, sd >>= 1) { |
j | 1592 | drivers/net/ewrk3.c | for (k=0,j=0;j<3;j++) { |
j | 1595 | drivers/net/ewrk3.c | k += inw(EWRK3_PAR0 + (j<<1)); |
j | 1615 | drivers/net/ewrk3.c | int i, j, iobase = dev->base_addr, status = 0; |
j | 1784 | drivers/net/ewrk3.c | for (j=0;j<ETH_ALEN;j++) { |
j | 1785 | drivers/net/ewrk3.c | tmp.addr[i++] = inb(EWRK3_PAR0 + j); |
j | 126 | drivers/net/ibmtr.c | short i, j; |
j | 127 | drivers/net/ibmtr.c | for (i=0,j=0;i<24;i++,j=j+stride) printk("%1x",((int) pcid[j])&0x0f); |
j | 144 | drivers/net/ibmtr.c | unsigned char segment=0, intr=0, irq=0, i=0, j=0, |
j | 205 | drivers/net/ibmtr.c | for (i=2,j=1; i<=46; i=i+2,j++) { |
j | 206 | drivers/net/ibmtr.c | if ( (cd_chanid[i] & 0x0f) != tchanid[j]) { |
j | 303 | drivers/net/ibmtr.c | j=0; |
j | 306 | drivers/net/ibmtr.c | printk("%1X",ti->hw_address[j]=temp); |
j | 307 | drivers/net/ibmtr.c | if(j&1) |
j | 308 | drivers/net/ibmtr.c | dev->dev_addr[(j/2)]=ti->hw_address[j]+(ti->hw_address[j-1]<<4); |
j | 309 | drivers/net/ibmtr.c | ++j; |
j | 309 | drivers/net/ni65.c | int i,j; |
j | 379 | drivers/net/ni65.c | for(j=0;j<2000000;j++); /* wait a while */ |
j | 145 | drivers/net/seeq8005.c | int i,j; |
j | 198 | drivers/net/seeq8005.c | j=0; |
j | 200 | drivers/net/seeq8005.c | j+= SA_prom[i] = inw(SEEQ_BUFFER) & 0xff; |
j | 205 | drivers/net/seeq8005.c | if ( (j&0xff) != 0 ) { /* checksum appears to be 8bit = 0 */ |
j | 224 | drivers/net/seeq8005.c | printk("seeq8005: prom sum = 0x%08x\n",j); |
j | 225 | drivers/net/seeq8005.c | for(j=0; j<32; j+=16) { |
j | 226 | drivers/net/seeq8005.c | printk("seeq8005: prom %02x: ",j); |
j | 228 | drivers/net/seeq8005.c | printk("%02x ",SA_prom[j|i]); |
j | 232 | drivers/net/seeq8005.c | if ((SA_prom[j|i]>31)&&(SA_prom[j|i]<127)) { |
j | 233 | drivers/net/seeq8005.c | printk("%c", SA_prom[j|i]); |
j | 256 | drivers/net/seeq8005.c | j=jiffies+HZ; |
j | 257 | drivers/net/seeq8005.c | while ( ((inw(SEEQ_STATUS) & SEEQSTAT_FIFO_EMPTY) != SEEQSTAT_FIFO_EMPTY) && jiffies < j ) |
j | 260 | drivers/net/seeq8005.c | while ( ((inw(SEEQ_STATUS) & SEEQSTAT_WINDOW_INT) != SEEQSTAT_WINDOW_INT) && jiffies < j+HZ) |
j | 265 | drivers/net/seeq8005.c | j=0; |
j | 268 | drivers/net/seeq8005.c | j++; |
j | 270 | drivers/net/seeq8005.c | if (j) { |
j | 271 | drivers/net/seeq8005.c | printk("%i\n",j); |
j | 638 | drivers/net/sk_g16.c | int i,j; /* Counters */ |
j | 758 | drivers/net/sk_g16.c | for (i = 0, j = 0; i < ETH_ALEN; i++, j+=2) |
j | 760 | drivers/net/sk_g16.c | dev->dev_addr[i] = board->rom[j]; |
j | 1782 | drivers/net/sk_g16.c | int i,j; |
j | 1797 | drivers/net/sk_g16.c | for (j = 0; j < 6; j++) |
j | 1799 | drivers/net/sk_g16.c | test_byte = (unsigned char *) (rom_location[i]+j); |
j | 1802 | drivers/net/sk_g16.c | if(!(*test_byte == rom_id[j])) |
j | 404 | drivers/scsi/53c7,8xx.c | int i, j, ccf; |
j | 585 | drivers/scsi/53c7,8xx.c | for (j = 0; j < 8; ++j) |
j | 586 | drivers/scsi/53c7,8xx.c | hostdata->busy[i][j] = 0; |
j | 2155 | drivers/scsi/53c7,8xx.c | int i, j, error, len; |
j | 2184 | drivers/scsi/53c7,8xx.c | for (ptr = input_buf + len, j = 0; j < debugger_tokens[i].nargs && *ptr;) { |
j | 2188 | drivers/scsi/53c7,8xx.c | args[j++] = simple_strtoul (ptr, &ptr, 0); |
j | 2194 | drivers/scsi/53c7,8xx.c | if (j != debugger_tokens[i].nargs) |
j | 651 | drivers/scsi/aha152x.c | int j; |
j | 655 | drivers/scsi/aha152x.c | for( j=0; (j < SIGNATURE_COUNT) && !ok; j++) |
j | 656 | drivers/scsi/aha152x.c | ok=!memcmp((void *) addresses[i]+signatures[j].sig_offset, |
j | 657 | drivers/scsi/aha152x.c | (void *) signatures[j].signature, |
j | 658 | drivers/scsi/aha152x.c | (int) signatures[j].sig_length); |
j | 362 | drivers/scsi/eata.c | static inline int port_detect(ushort *port_base, unsigned int j, |
j | 374 | drivers/scsi/eata.c | sprintf(name, "%s%d", driver_name, j); |
j | 473 | drivers/scsi/eata.c | sh[j] = scsi_register(tpnt, sizeof(struct hostdata)); |
j | 475 | drivers/scsi/eata.c | if (sh[j] == NULL) { |
j | 485 | drivers/scsi/eata.c | sh[j]->io_port = *port_base; |
j | 486 | drivers/scsi/eata.c | sh[j]->n_io_port = REGION_SIZE; |
j | 487 | drivers/scsi/eata.c | sh[j]->dma_channel = dma_channel; |
j | 488 | drivers/scsi/eata.c | sh[j]->irq = irq; |
j | 489 | drivers/scsi/eata.c | sh[j]->sg_tablesize = (ushort) ntohs(info.scatt_size); |
j | 490 | drivers/scsi/eata.c | sh[j]->this_id = (ushort) info.host_addr[3]; |
j | 491 | drivers/scsi/eata.c | sh[j]->can_queue = (ushort) ntohs(info.queue_size); |
j | 492 | drivers/scsi/eata.c | sh[j]->cmd_per_lun = MAX_CMD_PER_LUN; |
j | 495 | drivers/scsi/eata.c | request_region(sh[j]->io_port, REGION_SIZE, driver_name); |
j | 497 | drivers/scsi/eata.c | memset(HD(j), 0, sizeof(struct hostdata)); |
j | 498 | drivers/scsi/eata.c | HD(j)->subversion = subversion; |
j | 499 | drivers/scsi/eata.c | HD(j)->protocol_rev = protocol_rev; |
j | 500 | drivers/scsi/eata.c | HD(j)->board_number = j; |
j | 501 | drivers/scsi/eata.c | irqlist[irq] = j; |
j | 503 | drivers/scsi/eata.c | if (HD(j)->subversion == ESA) |
j | 504 | drivers/scsi/eata.c | sh[j]->unchecked_isa_dma = FALSE; |
j | 506 | drivers/scsi/eata.c | sh[j]->wish_block = TRUE; |
j | 507 | drivers/scsi/eata.c | sh[j]->unchecked_isa_dma = TRUE; |
j | 514 | drivers/scsi/eata.c | strcpy(BN(j), name); |
j | 517 | drivers/scsi/eata.c | "Mbox %d, CmdLun %d.\n", BN(j), HD(j)->protocol_rev, board_status, |
j | 518 | drivers/scsi/eata.c | sh[j]->this_id, sh[j]->io_port, sh[j]->irq, sh[j]->dma_channel, |
j | 519 | drivers/scsi/eata.c | sh[j]->sg_tablesize, sh[j]->can_queue, sh[j]->cmd_per_lun); |
j | 522 | drivers/scsi/eata.c | if (sh[j]->sg_tablesize > MAX_SGLIST || sh[j]->sg_tablesize < 2) { |
j | 523 | drivers/scsi/eata.c | printk("%s: detect, forcing to use %d SG lists.\n", BN(j), MAX_SGLIST); |
j | 524 | drivers/scsi/eata.c | sh[j]->sg_tablesize = MAX_SGLIST; |
j | 528 | drivers/scsi/eata.c | if (sh[j]->can_queue > MAX_MAILBOXES || sh[j]->can_queue < 2) { |
j | 529 | drivers/scsi/eata.c | printk("%s: detect, forcing to use %d Mbox.\n", BN(j), MAX_MAILBOXES); |
j | 530 | drivers/scsi/eata.c | sh[j]->can_queue = MAX_MAILBOXES; |
j | 548 | drivers/scsi/eata.c | unsigned int j = 0, k, flags; |
j | 570 | drivers/scsi/eata.c | if (j < MAX_BOARDS && port_detect(port_base, j, tpnt)) j++; |
j | 575 | drivers/scsi/eata.c | if (j > 0) |
j | 579 | drivers/scsi/eata.c | return j; |
j | 598 | drivers/scsi/eata.c | unsigned int i, j, k, flags; |
j | 611 | drivers/scsi/eata.c | j = ((struct hostdata *) SCpnt->host->hostdata)->board_number; |
j | 613 | drivers/scsi/eata.c | if (!done) panic("%s: qcomm, pid %ld, null done.\n", BN(j), SCpnt->pid); |
j | 617 | drivers/scsi/eata.c | i = HD(j)->last_cp_used + 1; |
j | 619 | drivers/scsi/eata.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
j | 621 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) i = 0; |
j | 623 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) { |
j | 624 | drivers/scsi/eata.c | HD(j)->last_cp_used = i; |
j | 629 | drivers/scsi/eata.c | if (k == sh[j]->can_queue) { |
j | 630 | drivers/scsi/eata.c | printk("%s: qcomm, no free mailbox, resetting.\n", BN(j)); |
j | 632 | drivers/scsi/eata.c | if (HD(j)->in_reset) |
j | 633 | drivers/scsi/eata.c | printk("%s: qcomm, already in reset.\n", BN(j)); |
j | 635 | drivers/scsi/eata.c | panic("%s: qcomm, SCSI_RESET_SUCCESS.\n", BN(j)); |
j | 639 | drivers/scsi/eata.c | printk("%s: qcomm, pid %ld, DID_BUS_BUSY, done.\n", BN(j), SCpnt->pid); |
j | 646 | drivers/scsi/eata.c | cpp = &HD(j)->cp[i]; |
j | 651 | drivers/scsi/eata.c | spp = &HD(j)->sp[i]; |
j | 663 | drivers/scsi/eata.c | BN(j), i, SCpnt->target, SCpnt->pid); |
j | 693 | drivers/scsi/eata.c | if (do_dma(sh[j]->io_port, (unsigned int) cpp, SEND_CP_DMA)) { |
j | 697 | drivers/scsi/eata.c | BN(j), SCpnt->target, SCpnt->pid); |
j | 703 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = IN_USE; |
j | 709 | drivers/scsi/eata.c | unsigned int i, j, flags; |
j | 713 | drivers/scsi/eata.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
j | 717 | drivers/scsi/eata.c | BN(j), SCarg->target, SCarg->pid); |
j | 723 | drivers/scsi/eata.c | BN(j), i, SCarg->target, SCarg->pid); |
j | 725 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) |
j | 726 | drivers/scsi/eata.c | panic("%s: abort, invalid SCarg->host_scribble.\n", BN(j)); |
j | 728 | drivers/scsi/eata.c | if (wait_on_busy(sh[j]->io_port)) { |
j | 729 | drivers/scsi/eata.c | printk("%s: abort, timeout error.\n", BN(j)); |
j | 734 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) { |
j | 735 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is free.\n", BN(j), i); |
j | 740 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IN_USE) { |
j | 741 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is in use.\n", BN(j), i); |
j | 743 | drivers/scsi/eata.c | if (SCarg != HD(j)->cp[i].SCpnt) |
j | 745 | drivers/scsi/eata.c | BN(j), i, SCarg, HD(j)->cp[i].SCpnt); |
j | 751 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IN_RESET) { |
j | 752 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is in reset.\n", BN(j), i); |
j | 757 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
j | 758 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is locked.\n", BN(j), i); |
j | 763 | drivers/scsi/eata.c | panic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i); |
j | 767 | drivers/scsi/eata.c | unsigned int i, j, flags, time, k, limit = 0; |
j | 773 | drivers/scsi/eata.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
j | 775 | drivers/scsi/eata.c | BN(j), SCarg->target, SCarg->pid); |
j | 778 | drivers/scsi/eata.c | printk("%s: reset, pid %ld inactive.\n", BN(j), SCarg->pid); |
j | 780 | drivers/scsi/eata.c | if (HD(j)->in_reset) { |
j | 781 | drivers/scsi/eata.c | printk("%s: reset, exit, already in reset.\n", BN(j)); |
j | 786 | drivers/scsi/eata.c | if (wait_on_busy(sh[j]->io_port)) { |
j | 787 | drivers/scsi/eata.c | printk("%s: reset, exit, timeout error.\n", BN(j)); |
j | 792 | drivers/scsi/eata.c | for (k = 0; k < MAX_TARGET; k++) HD(j)->target_reset[k] = TRUE; |
j | 794 | drivers/scsi/eata.c | for (k = 0; k < MAX_TARGET; k++) HD(j)->target_time_out[k] = 0; |
j | 796 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
j | 798 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) continue; |
j | 800 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
j | 801 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
j | 802 | drivers/scsi/eata.c | printk("%s: reset, locked mbox %d forced free.\n", BN(j), i); |
j | 806 | drivers/scsi/eata.c | SCpnt = HD(j)->cp[i].SCpnt; |
j | 807 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = IN_RESET; |
j | 809 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid); |
j | 812 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, SCpnt == NULL.\n", BN(j), i); |
j | 815 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, garbled SCpnt.\n", BN(j), i); |
j | 818 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, index mismatch.\n", BN(j), i); |
j | 821 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, SCpnt->scsi_done == NULL.\n", BN(j), i); |
j | 826 | drivers/scsi/eata.c | if (do_dma(sh[j]->io_port, 0, RESET_PIO)) { |
j | 827 | drivers/scsi/eata.c | printk("%s: reset, cannot reset, timeout error.\n", BN(j)); |
j | 832 | drivers/scsi/eata.c | printk("%s: reset, board reset done, enabling interrupts.\n", BN(j)); |
j | 838 | drivers/scsi/eata.c | HD(j)->in_reset = TRUE; |
j | 843 | drivers/scsi/eata.c | printk("%s: reset, interrupts disabled, loops %d.\n", BN(j), limit); |
j | 845 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
j | 848 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] != IN_RESET) continue; |
j | 850 | drivers/scsi/eata.c | SCpnt = HD(j)->cp[i].SCpnt; |
j | 855 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = LOCKED; |
j | 858 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid); |
j | 864 | drivers/scsi/eata.c | HD(j)->in_reset = FALSE; |
j | 869 | drivers/scsi/eata.c | printk("%s: reset, exit, success.\n", BN(j)); |
j | 873 | drivers/scsi/eata.c | printk("%s: reset, exit, wakeup.\n", BN(j)); |
j | 880 | drivers/scsi/eata.c | unsigned int i, j, k, flags, status, tstatus, loops, total_loops = 0; |
j | 897 | drivers/scsi/eata.c | for (j = 0; sh[j] != NULL; j++) { |
j | 899 | drivers/scsi/eata.c | if (sh[j]->irq != irq) continue; |
j | 904 | drivers/scsi/eata.c | while (inb(sh[j]->io_port + REG_AUX_STATUS) & IRQ_ASSERTED) { |
j | 909 | drivers/scsi/eata.c | BN(j), HD(j)->iocount); |
j | 912 | drivers/scsi/eata.c | inb(sh[j]->io_port + REG_STATUS); |
j | 915 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
j | 916 | drivers/scsi/eata.c | spp = &HD(j)->sp[i]; |
j | 923 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IGNORE) { |
j | 924 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
j | 927 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == LOCKED) { |
j | 928 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
j | 930 | drivers/scsi/eata.c | BN(j), i, HD(j)->iocount); |
j | 933 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == FREE) { |
j | 935 | drivers/scsi/eata.c | BN(j), i, HD(j)->iocount); |
j | 938 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == IN_RESET) |
j | 939 | drivers/scsi/eata.c | printk("%s: ihdlr, mbox %d is in reset.\n", BN(j), i); |
j | 940 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] != IN_USE) |
j | 941 | drivers/scsi/eata.c | panic("%s: ihdlr, mbox %d, invalid cp_stat.\n", BN(j), i); |
j | 943 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
j | 944 | drivers/scsi/eata.c | cpp = &HD(j)->cp[i]; |
j | 948 | drivers/scsi/eata.c | panic("%s: ihdlr, mbox %d, SCpnt == NULL.\n", BN(j), i); |
j | 952 | drivers/scsi/eata.c | BN(j), i, SCpnt, cpp->SCpnt); |
j | 956 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid, SCpnt); |
j | 960 | drivers/scsi/eata.c | " irq %d.\n", BN(j), i, SCpnt->pid, |
j | 975 | drivers/scsi/eata.c | && HD(j)->target_reset[SCpnt->target]) |
j | 988 | drivers/scsi/eata.c | HD(j)->target_reset[SCpnt->target] = FALSE; |
j | 992 | drivers/scsi/eata.c | "0x%x, sense key 0x%x.\n", BN(j), |
j | 996 | drivers/scsi/eata.c | HD(j)->target_time_out[SCpnt->target] = 0; |
j | 1002 | drivers/scsi/eata.c | if (HD(j)->target_time_out[SCpnt->target] > 1) |
j | 1006 | drivers/scsi/eata.c | HD(j)->target_time_out[SCpnt->target]++; |
j | 1019 | drivers/scsi/eata.c | HD(j)->target_reset[k] = TRUE; |
j | 1036 | drivers/scsi/eata.c | HD(j)->iocount++; |
j | 1038 | drivers/scsi/eata.c | if (loops > 1) HD(j)->multicount++; |
j | 1043 | drivers/scsi/eata.c | if ((spp->adapter_status != ASOK && HD(j)->iocount > 1000) || |
j | 1045 | drivers/scsi/eata.c | spp->adapter_status != ASST && HD(j)->iocount <= 1000) || |
j | 1050 | drivers/scsi/eata.c | BN(j), i, spp->adapter_status, spp->target_status, |
j | 1051 | drivers/scsi/eata.c | SCpnt->target, SCpnt->lun, SCpnt->pid, HD(j)->iocount); |
j | 1077 | drivers/scsi/eata.c | for (j = 0; sh[j] != NULL; j++) |
j | 1078 | drivers/scsi/eata.c | printk("%s: ihdlr, calls %d, count %d, multi %d.\n", BN(j), |
j | 1079 | drivers/scsi/eata.c | calls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount); |
j | 816 | drivers/scsi/fdomain.c | int i, j; |
j | 838 | drivers/scsi/fdomain.c | for (j = 0; !bios_base && j < SIGNATURE_COUNT; j++) { |
j | 839 | drivers/scsi/fdomain.c | if (!memcmp( ((char *)addresses[i] + signatures[j].sig_offset), |
j | 840 | drivers/scsi/fdomain.c | signatures[j].signature, signatures[j].sig_length )) { |
j | 841 | drivers/scsi/fdomain.c | bios_major = signatures[j].major_bios_version; |
j | 842 | drivers/scsi/fdomain.c | bios_minor = signatures[j].minor_bios_version; |
j | 843 | drivers/scsi/fdomain.c | PCI_bus = (signatures[j].flag == 1); |
j | 844 | drivers/scsi/fdomain.c | Quantum = (signatures[j].flag > 1) ? signatures[j].flag : 0; |
j | 967 | drivers/scsi/fdomain.c | for (j = 8; j < (buf[4] < 32 ? buf[4] : 32); j++) |
j | 968 | drivers/scsi/fdomain.c | printk( "%c", buf[j] >= 20 ? buf[j] : ' ' ); |
j | 267 | drivers/scsi/hosts.c | struct Scsi_Host * scsi_register(Scsi_Host_Template * tpnt, int j){ |
j | 269 | drivers/scsi/hosts.c | retval = (struct Scsi_Host *)scsi_init_malloc(sizeof(struct Scsi_Host) + j, |
j | 270 | drivers/scsi/hosts.c | (tpnt->unchecked_isa_dma && j ? GFP_DMA : 0) | GFP_ATOMIC); |
j | 274 | drivers/scsi/hosts.c | if(j > 0xffff) panic("Too many extra bytes requested\n"); |
j | 275 | drivers/scsi/hosts.c | retval->extra_bytes = j; |
j | 296 | drivers/scsi/hosts.c | printk("Register %x %x: %d\n", (int)retval, (int)retval->hostt, j); |
j | 329 | drivers/scsi/hosts.h | extern struct Scsi_Host * scsi_register(Scsi_Host_Template *, int j); |
j | 193 | drivers/scsi/qlogic.c | int j; |
j | 194 | drivers/scsi/qlogic.c | j = 0; |
j | 204 | drivers/scsi/qlogic.c | while( reqlen >= 84 && !( j & 0xc0 ) ) /* 2/3 */ |
j | 205 | drivers/scsi/qlogic.c | if( (j=inb( qbase + 8 )) & 4 ) { |
j | 218 | drivers/scsi/qlogic.c | j = 0; |
j | 219 | drivers/scsi/qlogic.c | while( reqlen && !( (j & 0x10) && (j & 0xc0) ) ) { |
j | 221 | drivers/scsi/qlogic.c | j &= 0xc0; |
j | 222 | drivers/scsi/qlogic.c | while ( reqlen && !( (j=inb(qbase + 8)) & 0x10 ) ) { |
j | 226 | drivers/scsi/qlogic.c | if( j & 0x10 ) |
j | 227 | drivers/scsi/qlogic.c | j = inb(qbase+8); |
j | 239 | drivers/scsi/qlogic.c | while( reqlen >= 84 && !( j & 0xc0 ) ) /* 1/3 */ |
j | 240 | drivers/scsi/qlogic.c | if( !((j=inb( qbase + 8 )) & 8) ) { |
j | 253 | drivers/scsi/qlogic.c | j = 0; |
j | 254 | drivers/scsi/qlogic.c | while( reqlen && !( (j & 2) && (j & 0xc0) ) ) { |
j | 256 | drivers/scsi/qlogic.c | while ( reqlen && !( (j=inb(qbase + 8)) & 2 ) ) { |
j | 260 | drivers/scsi/qlogic.c | if( j & 2 ) |
j | 261 | drivers/scsi/qlogic.c | j = inb(qbase+8); |
j | 338 | drivers/scsi/qlogic.c | unsigned int i, j, k; |
j | 348 | drivers/scsi/qlogic.c | j = inb(qbase + 6); |
j | 359 | drivers/scsi/qlogic.c | j &= 7; /* j = inb( qbase + 7 ) >> 5; */ |
j | 364 | drivers/scsi/qlogic.c | if(j != 3 && j != 4) { |
j | 365 | drivers/scsi/qlogic.c | printk("Ql:Bad sequence for command %d, int %02X, cmdleft = %d\n", j, i, inb( qbase+7 ) & 0x1f ); |
j | 419 | drivers/scsi/qlogic.c | j = inb(qbase + 7) & 0x1f; /* and bytes rec'd */ |
j | 423 | drivers/scsi/qlogic.c | if (!((i == 8 && j == 2) || (i == 0x10 && j == 1))) { |
j | 424 | drivers/scsi/qlogic.c | printk("Ql:Error during status phase, int=%02X, %d bytes recd\n", i, j); |
j | 535 | drivers/scsi/qlogic.c | int i, j; /* these are only used by IRQ detect */ |
j | 585 | drivers/scsi/qlogic.c | j = 3; |
j | 590 | drivers/scsi/qlogic.c | while (j--) { |
j | 598 | drivers/scsi/qlogic.c | j = -1; |
j | 600 | drivers/scsi/qlogic.c | i >>= 1, j++; /* should check for exactly 1 on */ |
j | 601 | drivers/scsi/qlogic.c | qlirq = j; |
j | 2083 | drivers/scsi/scsi.c | int i, j; |
j | 2093 | drivers/scsi/scsi.c | for(j=0; j<=(sizeof(*dma_malloc_freelist) * 8) - nbits; j++){ |
j | 2094 | drivers/scsi/scsi.c | if ((dma_malloc_freelist[i] & (mask << j)) == 0){ |
j | 2095 | drivers/scsi/scsi.c | dma_malloc_freelist[i] |= (mask << j); |
j | 2099 | drivers/scsi/scsi.c | printk("SMalloc: %d %p ",len, dma_malloc_pages[i] + (j << 9)); |
j | 2101 | drivers/scsi/scsi.c | return (void *) ((unsigned long) dma_malloc_pages[i] + (j << 9)); |
j | 2227 | drivers/scsi/scsi.c | int j; |
j | 2231 | drivers/scsi/scsi.c | for(j=0;j<SDpnt->host->cmd_per_lun;j++){ |
j | 557 | drivers/scsi/scsi_debug.c | int j; |
j | 563 | drivers/scsi/scsi_debug.c | for(j=0;j<SCSI_DEBUG_MAILBOXES; j++) { |
j | 564 | drivers/scsi/scsi_debug.c | if(SCpnt == SCint[j]) { |
j | 565 | drivers/scsi/scsi_debug.c | my_done = do_done[j]; |
j | 569 | drivers/scsi/scsi_debug.c | timeout[j] = 0; |
j | 570 | drivers/scsi/scsi_debug.c | SCint[j] = NULL; |
j | 571 | drivers/scsi/scsi_debug.c | do_done[j] = NULL; |
j | 284 | drivers/scsi/seagate.c | int i,j; |
j | 329 | drivers/scsi/seagate.c | for (j = 0; !base_address && j < NUM_SIGNATURES; ++j) |
j | 331 | drivers/scsi/seagate.c | signatures[j].offset), (void *) signatures[j].signature, |
j | 332 | drivers/scsi/seagate.c | signatures[j].length)) { |
j | 334 | drivers/scsi/seagate.c | controller_type = signatures[j].type; |
j | 296 | drivers/scsi/u14-34f.c | static int board_inquiry(unsigned int j) { |
j | 300 | drivers/scsi/u14-34f.c | cpp = &HD(j)->cp[0]; |
j | 304 | drivers/scsi/u14-34f.c | cpp->data_address = (unsigned int) HD(j)->board_id; |
j | 305 | drivers/scsi/u14-34f.c | cpp->data_len = sizeof(HD(j)->board_id); |
j | 309 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
j | 310 | drivers/scsi/u14-34f.c | printk("%s: board_inquiry, adapter busy.\n", BN(j)); |
j | 314 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[0] = IGNORE; |
j | 317 | drivers/scsi/u14-34f.c | outb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR); |
j | 320 | drivers/scsi/u14-34f.c | outl((unsigned int)cpp, sh[j]->io_port + REG_OGM); |
j | 323 | drivers/scsi/u14-34f.c | outb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR); |
j | 330 | drivers/scsi/u14-34f.c | if (cpp->adapter_status || HD(j)->cp_stat[0] != FREE) { |
j | 331 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[0] = FREE; |
j | 332 | drivers/scsi/u14-34f.c | printk("%s: board_inquiry, err 0x%x.\n", BN(j), cpp->adapter_status); |
j | 339 | drivers/scsi/u14-34f.c | static inline int port_detect(ushort *port_base, unsigned int j, |
j | 381 | drivers/scsi/u14-34f.c | sprintf(name, "%s%d", driver_name, j); |
j | 416 | drivers/scsi/u14-34f.c | sh[j] = scsi_register(tpnt, sizeof(struct hostdata)); |
j | 418 | drivers/scsi/u14-34f.c | if (sh[j] == NULL) { |
j | 428 | drivers/scsi/u14-34f.c | sh[j]->io_port = *port_base; |
j | 429 | drivers/scsi/u14-34f.c | sh[j]->n_io_port = REGION_SIZE; |
j | 430 | drivers/scsi/u14-34f.c | sh[j]->base = bios_segment_table[config_1.bios_segment]; |
j | 431 | drivers/scsi/u14-34f.c | sh[j]->irq = irq; |
j | 432 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = MAX_SGLIST; |
j | 433 | drivers/scsi/u14-34f.c | sh[j]->this_id = config_2.ha_scsi_id; |
j | 434 | drivers/scsi/u14-34f.c | sh[j]->can_queue = MAX_MAILBOXES; |
j | 435 | drivers/scsi/u14-34f.c | sh[j]->cmd_per_lun = MAX_CMD_PER_LUN; |
j | 441 | drivers/scsi/u14-34f.c | sys_mask = inb(sh[j]->io_port + REG_SYS_MASK); |
j | 442 | drivers/scsi/u14-34f.c | lcl_mask = inb(sh[j]->io_port + REG_LCL_MASK); |
j | 448 | drivers/scsi/u14-34f.c | if (sh[j]->base == 0) outb(CMD_ENA_INTR, sh[j]->io_port + REG_SYS_MASK); |
j | 451 | drivers/scsi/u14-34f.c | request_region(sh[j]->io_port, REGION_SIZE, driver_name); |
j | 453 | drivers/scsi/u14-34f.c | memset(HD(j), 0, sizeof(struct hostdata)); |
j | 454 | drivers/scsi/u14-34f.c | HD(j)->heads = mapping_table[config_2.mapping_mode].heads; |
j | 455 | drivers/scsi/u14-34f.c | HD(j)->sectors = mapping_table[config_2.mapping_mode].sectors; |
j | 456 | drivers/scsi/u14-34f.c | HD(j)->subversion = subversion; |
j | 457 | drivers/scsi/u14-34f.c | HD(j)->board_number = j; |
j | 458 | drivers/scsi/u14-34f.c | irqlist[irq] = j; |
j | 460 | drivers/scsi/u14-34f.c | if (HD(j)->subversion == ESA) { |
j | 463 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = MAX_SAFE_SGLIST; |
j | 466 | drivers/scsi/u14-34f.c | sh[j]->dma_channel = NO_DMA; |
j | 467 | drivers/scsi/u14-34f.c | sh[j]->unchecked_isa_dma = FALSE; |
j | 468 | drivers/scsi/u14-34f.c | sprintf(BN(j), "U34F%d", j); |
j | 471 | drivers/scsi/u14-34f.c | sh[j]->wish_block = TRUE; |
j | 474 | drivers/scsi/u14-34f.c | sh[j]->hostt->use_clustering = DISABLE_CLUSTERING; |
j | 475 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = MAX_SAFE_SGLIST; |
j | 478 | drivers/scsi/u14-34f.c | sh[j]->dma_channel = dma_channel; |
j | 479 | drivers/scsi/u14-34f.c | sh[j]->unchecked_isa_dma = TRUE; |
j | 480 | drivers/scsi/u14-34f.c | sprintf(BN(j), "U14F%d", j); |
j | 487 | drivers/scsi/u14-34f.c | if (HD(j)->subversion == ISA && !board_inquiry(j)) { |
j | 488 | drivers/scsi/u14-34f.c | HD(j)->board_id[40] = 0; |
j | 490 | drivers/scsi/u14-34f.c | if (strcmp(&HD(j)->board_id[32], "06000600")) { |
j | 491 | drivers/scsi/u14-34f.c | printk("%s: %s.\n", BN(j), &HD(j)->board_id[8]); |
j | 493 | drivers/scsi/u14-34f.c | BN(j), &HD(j)->board_id[32]); |
j | 494 | drivers/scsi/u14-34f.c | sh[j]->hostt->use_clustering = DISABLE_CLUSTERING; |
j | 495 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = MAX_SAFE_SGLIST; |
j | 500 | drivers/scsi/u14-34f.c | "Mbox %d, CmdLun %d, C%d.\n", BN(j), sh[j]->io_port, |
j | 501 | drivers/scsi/u14-34f.c | (int)sh[j]->base, sh[j]->irq, |
j | 502 | drivers/scsi/u14-34f.c | sh[j]->dma_channel, sh[j]->sg_tablesize, |
j | 503 | drivers/scsi/u14-34f.c | sh[j]->can_queue, sh[j]->cmd_per_lun, |
j | 504 | drivers/scsi/u14-34f.c | sh[j]->hostt->use_clustering); |
j | 509 | drivers/scsi/u14-34f.c | unsigned int j = 0, k, flags; |
j | 529 | drivers/scsi/u14-34f.c | if (j < MAX_BOARDS && port_detect(port_base, j, tpnt)) j++; |
j | 534 | drivers/scsi/u14-34f.c | if (j > 0) |
j | 538 | drivers/scsi/u14-34f.c | return j; |
j | 559 | drivers/scsi/u14-34f.c | unsigned int i, j, k, flags; |
j | 565 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCpnt->host->hostdata)->board_number; |
j | 567 | drivers/scsi/u14-34f.c | if (!done) panic("%s: qcomm, pid %ld, null done.\n", BN(j), SCpnt->pid); |
j | 571 | drivers/scsi/u14-34f.c | i = HD(j)->last_cp_used + 1; |
j | 573 | drivers/scsi/u14-34f.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
j | 575 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) i = 0; |
j | 577 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) { |
j | 578 | drivers/scsi/u14-34f.c | HD(j)->last_cp_used = i; |
j | 583 | drivers/scsi/u14-34f.c | if (k == sh[j]->can_queue) { |
j | 584 | drivers/scsi/u14-34f.c | printk("%s: qcomm, no free mailbox, resetting.\n", BN(j)); |
j | 586 | drivers/scsi/u14-34f.c | if (HD(j)->in_reset) |
j | 587 | drivers/scsi/u14-34f.c | printk("%s: qcomm, already in reset.\n", BN(j)); |
j | 589 | drivers/scsi/u14-34f.c | panic("%s: qcomm, SCSI_RESET_SUCCESS.\n", BN(j)); |
j | 593 | drivers/scsi/u14-34f.c | printk("%s: qcomm, pid %ld, DID_BUS_BUSY, done.\n", BN(j), SCpnt->pid); |
j | 600 | drivers/scsi/u14-34f.c | cpp = &HD(j)->cp[i]; |
j | 608 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->target, SCpnt->pid); |
j | 630 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
j | 634 | drivers/scsi/u14-34f.c | BN(j), SCpnt->target, SCpnt->pid); |
j | 641 | drivers/scsi/u14-34f.c | outl((unsigned int)cpp, sh[j]->io_port + REG_OGM); |
j | 644 | drivers/scsi/u14-34f.c | outb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR); |
j | 646 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = IN_USE; |
j | 652 | drivers/scsi/u14-34f.c | unsigned int i, j, flags; |
j | 656 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
j | 660 | drivers/scsi/u14-34f.c | BN(j), SCarg->target, SCarg->pid); |
j | 666 | drivers/scsi/u14-34f.c | BN(j), i, SCarg->target, SCarg->pid); |
j | 668 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
j | 669 | drivers/scsi/u14-34f.c | panic("%s: abort, invalid SCarg->host_scribble.\n", BN(j)); |
j | 671 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
j | 672 | drivers/scsi/u14-34f.c | printk("%s: abort, timeout error.\n", BN(j)); |
j | 677 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) { |
j | 678 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is free.\n", BN(j), i); |
j | 683 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IN_USE) { |
j | 684 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is in use.\n", BN(j), i); |
j | 686 | drivers/scsi/u14-34f.c | if (SCarg != HD(j)->cp[i].SCpnt) |
j | 688 | drivers/scsi/u14-34f.c | BN(j), i, SCarg, HD(j)->cp[i].SCpnt); |
j | 694 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IN_RESET) { |
j | 695 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is in reset.\n", BN(j), i); |
j | 700 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
j | 701 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is locked.\n", BN(j), i); |
j | 706 | drivers/scsi/u14-34f.c | panic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i); |
j | 710 | drivers/scsi/u14-34f.c | unsigned int i, j, flags, time, k, limit = 0; |
j | 716 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
j | 718 | drivers/scsi/u14-34f.c | BN(j), SCarg->target, SCarg->pid); |
j | 721 | drivers/scsi/u14-34f.c | printk("%s: reset, pid %ld inactive.\n", BN(j), SCarg->pid); |
j | 723 | drivers/scsi/u14-34f.c | if (HD(j)->in_reset) { |
j | 724 | drivers/scsi/u14-34f.c | printk("%s: reset, exit, already in reset.\n", BN(j)); |
j | 729 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
j | 730 | drivers/scsi/u14-34f.c | printk("%s: reset, exit, timeout error.\n", BN(j)); |
j | 735 | drivers/scsi/u14-34f.c | for (k = 0; k < MAX_TARGET; k++) HD(j)->target_reset[k] = TRUE; |
j | 737 | drivers/scsi/u14-34f.c | for (k = 0; k < MAX_TARGET; k++) HD(j)->target_time_out[k] = 0; |
j | 739 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
j | 741 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) continue; |
j | 743 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
j | 744 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
j | 745 | drivers/scsi/u14-34f.c | printk("%s: reset, locked mbox %d forced free.\n", BN(j), i); |
j | 749 | drivers/scsi/u14-34f.c | SCpnt = HD(j)->cp[i].SCpnt; |
j | 750 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = IN_RESET; |
j | 752 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid); |
j | 755 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, SCpnt == NULL.\n", BN(j), i); |
j | 758 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, garbled SCpnt.\n", BN(j), i); |
j | 761 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, index mismatch.\n", BN(j), i); |
j | 764 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, SCpnt->scsi_done == NULL.\n", BN(j), i); |
j | 769 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
j | 770 | drivers/scsi/u14-34f.c | printk("%s: reset, cannot reset, timeout error.\n", BN(j)); |
j | 775 | drivers/scsi/u14-34f.c | outb(CMD_RESET, sh[j]->io_port + REG_LCL_INTR); |
j | 776 | drivers/scsi/u14-34f.c | printk("%s: reset, board reset done, enabling interrupts.\n", BN(j)); |
j | 782 | drivers/scsi/u14-34f.c | HD(j)->in_reset = TRUE; |
j | 787 | drivers/scsi/u14-34f.c | printk("%s: reset, interrupts disabled, loops %d.\n", BN(j), limit); |
j | 789 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
j | 792 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] != IN_RESET) continue; |
j | 794 | drivers/scsi/u14-34f.c | SCpnt = HD(j)->cp[i].SCpnt; |
j | 799 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = LOCKED; |
j | 802 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid); |
j | 808 | drivers/scsi/u14-34f.c | HD(j)->in_reset = FALSE; |
j | 813 | drivers/scsi/u14-34f.c | printk("%s: reset, exit, success.\n", BN(j)); |
j | 817 | drivers/scsi/u14-34f.c | printk("%s: reset, exit, wakeup.\n", BN(j)); |
j | 823 | drivers/scsi/u14-34f.c | unsigned int j = 0; |
j | 826 | drivers/scsi/u14-34f.c | dkinfo[0] = HD(j)->heads; |
j | 827 | drivers/scsi/u14-34f.c | dkinfo[1] = HD(j)->sectors; |
j | 828 | drivers/scsi/u14-34f.c | dkinfo[2] = size / (HD(j)->heads * HD(j)->sectors); |
j | 834 | drivers/scsi/u14-34f.c | unsigned int i, j, k, flags, status, tstatus, loops, total_loops = 0; |
j | 850 | drivers/scsi/u14-34f.c | for (j = 0; sh[j] != NULL; j++) { |
j | 852 | drivers/scsi/u14-34f.c | if (sh[j]->irq != irq) continue; |
j | 857 | drivers/scsi/u14-34f.c | while (inb(sh[j]->io_port + REG_SYS_INTR) & IRQ_ASSERTED) { |
j | 862 | drivers/scsi/u14-34f.c | BN(j), HD(j)->iocount); |
j | 864 | drivers/scsi/u14-34f.c | spp = (struct mscp *)inl(sh[j]->io_port + REG_ICM); |
j | 867 | drivers/scsi/u14-34f.c | outb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR); |
j | 869 | drivers/scsi/u14-34f.c | i = spp - HD(j)->cp; |
j | 871 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
j | 872 | drivers/scsi/u14-34f.c | panic("%s: ihdlr, invalid mscp address.\n", BN(j)); |
j | 874 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IGNORE) { |
j | 875 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
j | 878 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == LOCKED) { |
j | 879 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
j | 881 | drivers/scsi/u14-34f.c | BN(j), i, HD(j)->iocount); |
j | 884 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == FREE) { |
j | 886 | drivers/scsi/u14-34f.c | BN(j), i, HD(j)->iocount); |
j | 889 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == IN_RESET) |
j | 890 | drivers/scsi/u14-34f.c | printk("%s: ihdlr, mbox %d is in reset.\n", BN(j), i); |
j | 891 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] != IN_USE) |
j | 892 | drivers/scsi/u14-34f.c | panic("%s: ihdlr, mbox %d, invalid cp_stat.\n", BN(j), i); |
j | 894 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
j | 898 | drivers/scsi/u14-34f.c | panic("%s: ihdlr, mbox %d, SCpnt == NULL.\n", BN(j), i); |
j | 902 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid, SCpnt); |
j | 906 | drivers/scsi/u14-34f.c | " irq %d.\n", BN(j), i, SCpnt->pid, |
j | 921 | drivers/scsi/u14-34f.c | && HD(j)->target_reset[SCpnt->target]) |
j | 934 | drivers/scsi/u14-34f.c | HD(j)->target_reset[SCpnt->target] = FALSE; |
j | 938 | drivers/scsi/u14-34f.c | "0x%x, sense key 0x%x.\n", BN(j), |
j | 942 | drivers/scsi/u14-34f.c | HD(j)->target_time_out[SCpnt->target] = 0; |
j | 947 | drivers/scsi/u14-34f.c | if (HD(j)->target_time_out[SCpnt->target] > 1) |
j | 951 | drivers/scsi/u14-34f.c | HD(j)->target_time_out[SCpnt->target]++; |
j | 967 | drivers/scsi/u14-34f.c | HD(j)->target_reset[k] = TRUE; |
j | 983 | drivers/scsi/u14-34f.c | HD(j)->iocount++; |
j | 985 | drivers/scsi/u14-34f.c | if (loops > 1) HD(j)->multicount++; |
j | 990 | drivers/scsi/u14-34f.c | if ((spp->adapter_status != ASOK && HD(j)->iocount > 1000) || |
j | 992 | drivers/scsi/u14-34f.c | spp->adapter_status != ASST && HD(j)->iocount <= 1000) || |
j | 997 | drivers/scsi/u14-34f.c | BN(j), i, spp->adapter_status, spp->target_status, |
j | 998 | drivers/scsi/u14-34f.c | SCpnt->target, SCpnt->lun, SCpnt->pid, HD(j)->iocount); |
j | 1022 | drivers/scsi/u14-34f.c | for (j = 0; sh[j] != NULL; j++) |
j | 1023 | drivers/scsi/u14-34f.c | printk("%s: ihdlr, calls %d, count %d, multi %d.\n", BN(j), |
j | 1024 | drivers/scsi/u14-34f.c | calls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount); |
j | 1101 | drivers/scsi/wd7000.c | int i,j, present = 0; |
j | 1113 | drivers/scsi/wd7000.c | for (j = 0; j < NUM_SIGNATURES; j++) { |
j | 179 | drivers/sound/dev_table.c | int card_type, ioaddr, irq, dma, ptr, j; |
j | 199 | drivers/sound/dev_table.c | for (j = 0; j < n && ptr == -1; j++) |
j | 200 | drivers/sound/dev_table.c | if (snd_installed_cards[j].card_type == card_type && |
j | 201 | drivers/sound/dev_table.c | !snd_installed_cards[j].enabled) /* |
j | 204 | drivers/sound/dev_table.c | ptr = j; |
j | 224 | drivers/sound/dev_table.c | int ptr, j; |
j | 227 | drivers/sound/dev_table.c | for (j = 0; j < n && ptr == -1; j++) |
j | 228 | drivers/sound/dev_table.c | if (snd_installed_cards[j].card_type == card_type && |
j | 229 | drivers/sound/dev_table.c | !snd_installed_cards[j].enabled) /* |
j | 232 | drivers/sound/dev_table.c | ptr = j; |
j | 251 | drivers/sound/dev_table.c | int j, ptr; |
j | 255 | drivers/sound/dev_table.c | for (j = 0; j < n && ptr == -1; j++) |
j | 256 | drivers/sound/dev_table.c | if (snd_installed_cards[j].card_type == card_type) |
j | 257 | drivers/sound/dev_table.c | ptr = j; |
j | 252 | drivers/sound/pss.c | int j; |
j | 254 | drivers/sound/pss.c | for (j = 0; j < 327670; j++) |
j | 261 | drivers/sound/pss.c | if (j == 327670) |
j | 687 | fs/binfmt_elf.c | int i,j, k; |
j | 730 | fs/binfmt_elf.c | j = 0; |
j | 732 | fs/binfmt_elf.c | if((elf_phdata + i)->p_type == PT_LOAD) j++; |
j | 734 | fs/binfmt_elf.c | if(j != 1) { |
j | 25 | fs/block_dev.c | int blocksize, blocksize_bits, i, j, buffercount,write_error; |
j | 99 | fs/block_dev.c | for(j=0; j<blocks_per_cluster; j++) cluster_list[j] = block+i+j; |
j | 834 | fs/buffer.c | int i, j; |
j | 855 | fs/buffer.c | j = 1; |
j | 862 | fs/buffer.c | bhlist[j++] = bh; |
j | 866 | fs/buffer.c | ll_rw_block(READ, j, bhlist); |
j | 868 | fs/buffer.c | for(i=1; i<j; i++) |
j | 1136 | fs/buffer.c | int i, j; |
j | 1144 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j+= size) { |
j | 1151 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j += size, where += size) { |
j | 1169 | fs/buffer.c | int i, j; |
j | 1171 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j+= size) { |
j | 1176 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j += size, address += 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 | 98 | fs/ext2/balloc.c | int i, j; |
j | 129 | fs/ext2/balloc.c | for (j = i; j > 0; j--) { |
j | 130 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[j] = |
j | 131 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[j - 1]; |
j | 132 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[j] = |
j | 133 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[j - 1]; |
j | 142 | fs/ext2/balloc.c | for (j = sb->u.ext2_sb.s_loaded_block_bitmaps - 1; j > 0; j--) { |
j | 143 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[j] = |
j | 144 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap_number[j - 1]; |
j | 145 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[j] = |
j | 146 | fs/ext2/balloc.c | sb->u.ext2_sb.s_block_bitmap[j - 1]; |
j | 259 | 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 | 318 | fs/ext2/balloc.c | int end_goal = (j + 63) & ~63; |
j | 319 | fs/ext2/balloc.c | j = find_next_zero_bit(bh->b_data, end_goal, j); |
j | 320 | fs/ext2/balloc.c | if (j < end_goal) |
j | 335 | fs/ext2/balloc.c | p = ((char *) bh->b_data) + (j >> 3); |
j | 336 | fs/ext2/balloc.c | r = memscan(p, 0, (EXT2_BLOCKS_PER_GROUP(sb) - j + 7) >> 3); |
j | 339 | fs/ext2/balloc.c | j = k; |
j | 344 | fs/ext2/balloc.c | j); |
j | 346 | fs/ext2/balloc.c | j = k; |
j | 372 | fs/ext2/balloc.c | j = (r - bh->b_data) << 3; |
j | 373 | fs/ext2/balloc.c | if (j < EXT2_BLOCKS_PER_GROUP(sb)) |
j | 376 | fs/ext2/balloc.c | j = find_first_zero_bit ((unsigned long *) bh->b_data, |
j | 378 | fs/ext2/balloc.c | if (j >= EXT2_BLOCKS_PER_GROUP(sb)) { |
j | 391 | fs/ext2/balloc.c | for (k = 0; k < 7 && j > 0 && !test_bit (j - 1, bh->b_data); k++, j--); |
j | 397 | fs/ext2/balloc.c | tmp = j + i * EXT2_BLOCKS_PER_GROUP(sb) + es->s_first_data_block; |
j | 407 | fs/ext2/balloc.c | if (set_bit (j, bh->b_data)) { |
j | 409 | fs/ext2/balloc.c | "bit already set for block %d", j); |
j | 413 | fs/ext2/balloc.c | ext2_debug ("found bit %d\n", j); |
j | 423 | fs/ext2/balloc.c | k < 8 && (j + k) < EXT2_BLOCKS_PER_GROUP(sb); k++) { |
j | 424 | fs/ext2/balloc.c | if (set_bit (j + k, bh->b_data)) |
j | 435 | fs/ext2/balloc.c | j = tmp; |
j | 443 | fs/ext2/balloc.c | if (j >= es->s_blocks_count) { |
j | 446 | fs/ext2/balloc.c | "block_group = %d, block=%d", i, j); |
j | 450 | fs/ext2/balloc.c | if (!(bh = getblk (sb->s_dev, j, sb->s_blocksize))) { |
j | 451 | fs/ext2/balloc.c | ext2_error (sb, "ext2_new_block", "cannot get block %d", j); |
j | 461 | fs/ext2/balloc.c | "Goal hits %d of %d.\n", j, goal_hits, goal_attempts); |
j | 469 | fs/ext2/balloc.c | return j; |
j | 521 | fs/ext2/balloc.c | int i, j; |
j | 540 | fs/ext2/balloc.c | for (j = 0; j < desc_blocks; j++) |
j | 541 | fs/ext2/balloc.c | if (!test_bit (j + 1, bh->b_data)) |
j | 544 | fs/ext2/balloc.c | "%d is marked free", j, i); |
j | 556 | fs/ext2/balloc.c | for (j = 0; j < sb->u.ext2_sb.s_itb_per_group; j++) |
j | 557 | fs/ext2/balloc.c | if (!block_in_use (gdp->bg_inode_table + j, sb, bh->b_data)) |
j | 560 | fs/ext2/balloc.c | "group %d is marked free", j, i); |
j | 97 | fs/ext2/ialloc.c | int i, j; |
j | 130 | fs/ext2/ialloc.c | for (j = i; j > 0; j--) { |
j | 131 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j] = |
j | 132 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j - 1]; |
j | 133 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j] = |
j | 134 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j - 1]; |
j | 143 | fs/ext2/ialloc.c | for (j = sb->u.ext2_sb.s_loaded_inode_bitmaps - 1; j > 0; j--) { |
j | 144 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j] = |
j | 145 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap_number[j - 1]; |
j | 146 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j] = |
j | 147 | fs/ext2/ialloc.c | sb->u.ext2_sb.s_inode_bitmap[j - 1]; |
j | 311 | fs/ext2/ialloc.c | int i, j, avefreei; |
j | 345 | fs/ext2/ialloc.c | for (j = 0; j < sb->u.ext2_sb.s_groups_count; j++) { |
j | 346 | fs/ext2/ialloc.c | tmp = get_group_desc (sb, j, &bh2); |
j | 352 | fs/ext2/ialloc.c | i = j; |
j | 374 | fs/ext2/ialloc.c | for (j = 1; j < sb->u.ext2_sb.s_groups_count; j <<= 1) { |
j | 375 | fs/ext2/ialloc.c | i += j; |
j | 390 | fs/ext2/ialloc.c | for (j = 2; j < sb->u.ext2_sb.s_groups_count; j++) { |
j | 409 | fs/ext2/ialloc.c | if ((j = find_first_zero_bit ((unsigned long *) bh->b_data, |
j | 412 | fs/ext2/ialloc.c | if (set_bit (j, bh->b_data)) { |
j | 414 | fs/ext2/ialloc.c | "bit already set for inode %d", j); |
j | 433 | fs/ext2/ialloc.c | j += i * EXT2_INODES_PER_GROUP(sb) + 1; |
j | 434 | fs/ext2/ialloc.c | if (j < EXT2_FIRST_INO || j > es->s_inodes_count) { |
j | 437 | fs/ext2/ialloc.c | "block_group = %d,inode=%d", i, j); |
j | 464 | fs/ext2/ialloc.c | inode->i_ino = j; |
j | 405 | fs/ext2/super.c | int i, j; |
j | 609 | fs/ext2/super.c | for (j = 0; j < i; j++) |
j | 610 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[j]); |
j | 621 | fs/ext2/super.c | for (j = 0; j < db_count; j++) |
j | 622 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[j]); |
j | 26 | fs/minix/bitmap.c | unsigned i, j, end, sum = 0; |
j | 43 | fs/minix/bitmap.c | for (j=0; j<end; j++) |
j | 44 | fs/minix/bitmap.c | sum += nibblemap[bh->b_data[j] & 0xf] |
j | 45 | fs/minix/bitmap.c | + nibblemap[(bh->b_data[j]>>4)&0xf]; |
j | 85 | fs/minix/bitmap.c | int i,j; |
j | 92 | fs/minix/bitmap.c | j = 8192; |
j | 95 | fs/minix/bitmap.c | if ((j=find_first_zero_bit(bh->b_data, 8192)) < 8192) |
j | 97 | fs/minix/bitmap.c | if (i>=8 || !bh || j>=8192) |
j | 99 | fs/minix/bitmap.c | if (set_bit(j,bh->b_data)) { |
j | 104 | fs/minix/bitmap.c | j += i*8192 + sb->u.minix_sb.s_firstdatazone-1; |
j | 105 | fs/minix/bitmap.c | if (j < sb->u.minix_sb.s_firstdatazone || |
j | 106 | fs/minix/bitmap.c | j >= sb->u.minix_sb.s_nzones) |
j | 108 | fs/minix/bitmap.c | if (!(bh = getblk(sb->s_dev,j,BLOCK_SIZE))) { |
j | 116 | fs/minix/bitmap.c | return j; |
j | 168 | fs/minix/bitmap.c | int i,j; |
j | 175 | fs/minix/bitmap.c | j = 8192; |
j | 178 | fs/minix/bitmap.c | if ((j=find_first_zero_bit(bh->b_data, 8192)) < 8192) |
j | 180 | fs/minix/bitmap.c | if (!bh || j >= 8192) { |
j | 184 | fs/minix/bitmap.c | if (set_bit(j,bh->b_data)) { /* shouldn't happen */ |
j | 190 | fs/minix/bitmap.c | j += i*8192; |
j | 191 | fs/minix/bitmap.c | if (!j || j >= inode->i_sb->u.minix_sb.s_ninodes) { |
j | 201 | fs/minix/bitmap.c | inode->i_ino = j; |
j | 378 | fs/pipe.c | int i,j; |
j | 384 | fs/pipe.c | for(j=0 ; j<2 ; j++) |
j | 385 | fs/pipe.c | if (!(f[j] = get_empty_filp())) |
j | 387 | fs/pipe.c | if (j < 2) { |
j | 389 | fs/pipe.c | if (j) |
j | 393 | fs/pipe.c | j=0; |
j | 394 | fs/pipe.c | for(i=0;j<2 && i<NR_OPEN && i<current->rlim[RLIMIT_NOFILE].rlim_cur;i++) |
j | 396 | fs/pipe.c | current->files->fd[ fd[j]=i ] = f[j]; |
j | 397 | fs/pipe.c | j++; |
j | 399 | fs/pipe.c | if (j<2) { |
j | 403 | fs/pipe.c | if (j) |
j | 126 | fs/proc/fd.c | unsigned long i,j; |
j | 156 | fs/proc/fd.c | j = NUMBUF; |
j | 159 | fs/proc/fd.c | j--; |
j | 160 | fs/proc/fd.c | buf[j] = '0' + (i % 10); |
j | 165 | fs/proc/fd.c | if (filldir(dirent, buf+j, NUMBUF-j, fd+2, ino) < 0) |
j | 152 | fs/proc/root.c | unsigned long i,j; |
j | 173 | fs/proc/root.c | j = NUMBUF; |
j | 176 | fs/proc/root.c | j--; |
j | 177 | fs/proc/root.c | buf[j] = '0' + (i % 10); |
j | 181 | fs/proc/root.c | if (filldir(dirent, buf+j, NUMBUF-j, nr+NR_ROOT_DIRENTRY, (pid << 16)+2) < 0) |
j | 92 | fs/select.c | int i,j; |
j | 95 | fs/select.c | for (j = 0 ; j < __FDSET_LONGS ; j++) { |
j | 96 | fs/select.c | i = j << 5; |
j | 99 | fs/select.c | set = in->fds_bits[j] | out->fds_bits[j] | ex->fds_bits[j]; |
j | 362 | fs/smbfs/proc.c | int i, j, len; |
j | 384 | fs/smbfs/proc.c | for (j = i; j < i+10; j++) |
j | 385 | fs/smbfs/proc.c | if (j < len) |
j | 386 | fs/smbfs/proc.c | printk("%02x ", packet[j]); |
j | 390 | fs/smbfs/proc.c | for (j = i; j < i+10; j++) |
j | 391 | fs/smbfs/proc.c | if (j < len) |
j | 392 | fs/smbfs/proc.c | printk("%c", print_char(packet[j])); |
j | 1874 | fs/smbfs/proc.c | int i,j; |
j | 1886 | fs/smbfs/proc.c | for (j=0; err[j].name; j++) { |
j | 1887 | fs/smbfs/proc.c | if (num != err[j].code) |
j | 1890 | fs/smbfs/proc.c | err_classes[i].class, err[j].name, |
j | 1891 | fs/smbfs/proc.c | err[j].message); |
j | 112 | fs/sysv/ialloc.c | int i,j,ino,block; |
j | 130 | fs/sysv/ialloc.c | for (i = 0, ino = SYSV_ROOT_INO+1, block = sb->sv_firstinodezone, j = SYSV_ROOT_INO ; i < sb->sv_fic_size && block < sb->sv_firstdatazone ; block++, j = 0) { |
j | 136 | fs/sysv/ialloc.c | raw_inode = (struct sysv_inode *) bh->b_data + j; |
j | 137 | fs/sysv/ialloc.c | for (; j < sb->sv_inodes_per_block && i < sb->sv_fic_size; ino++, j++, raw_inode++) { |
j | 185 | fs/sysv/ialloc.c | int j,block,count; |
j | 196 | fs/sysv/ialloc.c | for (block = sb->sv_firstinodezone, j = SYSV_ROOT_INO ; block < sb->sv_firstdatazone ; block++, j = 0) { |
j | 202 | fs/sysv/ialloc.c | raw_inode = (struct sysv_inode *) bh->b_data + j; |
j | 203 | fs/sysv/ialloc.c | for (; j < sb->sv_inodes_per_block ; j++, raw_inode++) |
j | 40 | fs/xiafs/bitmap.c | int end, i, j, tmp; |
j | 58 | fs/xiafs/bitmap.c | for (j=0; j < 32; j++) |
j | 59 | fs/xiafs/bitmap.c | if (tmp & (1 << j)) |
j | 61 | fs/xiafs/bitmap.c | if (set_bit(j,bmap+i)) { |
j | 62 | fs/xiafs/bitmap.c | start_bit=j + (i << 5) + 1; |
j | 66 | fs/xiafs/bitmap.c | return j + (i << 5); |
j | 76 | kernel/itimer.c | register unsigned long i, j; |
j | 80 | kernel/itimer.c | j = tvtojiffies(&value->it_value); |
j | 85 | kernel/itimer.c | if (j) { |
j | 86 | kernel/itimer.c | j += 1+itimer_ticks; |
j | 87 | kernel/itimer.c | if (j < itimer_next) |
j | 88 | kernel/itimer.c | itimer_next = j; |
j | 90 | kernel/itimer.c | current->it_real_value = j; |
j | 94 | kernel/itimer.c | if (j) |
j | 95 | kernel/itimer.c | j++; |
j | 96 | kernel/itimer.c | current->it_virt_value = j; |
j | 100 | kernel/itimer.c | if (j) |
j | 101 | kernel/itimer.c | j++; |
j | 102 | kernel/itimer.c | current->it_prof_value = j; |
j | 57 | kernel/printk.c | unsigned long i, j, count; |
j | 115 | kernel/printk.c | j = log_start + log_size - count; |
j | 117 | kernel/printk.c | c = *((char *) log_buf+(j++ & (LOG_BUF_LEN-1))); |
j | 207 | kernel/printk.c | int i,j; |
j | 215 | kernel/printk.c | for (i=0,j=0; i < log_size; i++) { |
j | 216 | kernel/printk.c | buf[j++] = log_buf[p]; |
j | 218 | kernel/printk.c | if (buf[j-1] != '\n' && i < log_size - 1 && j < sizeof(buf)-1) |
j | 220 | kernel/printk.c | buf[j] = 0; |
j | 228 | kernel/printk.c | if (buf[j-1] == '\n') |
j | 230 | kernel/printk.c | j = 0; |
j | 98 | mm/memory.c | int j; |
j | 114 | mm/memory.c | for (j = 0; j < PTRS_PER_PTE ; j++) |
j | 115 | mm/memory.c | free_one_pte(pte+j); |
j | 121 | mm/memory.c | int j; |
j | 137 | mm/memory.c | for (j = 0; j < PTRS_PER_PMD ; j++) |
j | 138 | mm/memory.c | free_one_pmd(pmd+j); |
j | 255 | mm/memory.c | int j; |
j | 274 | mm/memory.c | for (j = 0 ; j < PTRS_PER_PTE ; j++) { |
j | 284 | mm/memory.c | int j; |
j | 303 | mm/memory.c | for (j = 0 ; j < PTRS_PER_PMD ; j++) { |
j | 159 | mm/swap.c | int j; |
j | 162 | mm/swap.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j += 512){ |
j | 169 | mm/swap.c | int j; |
j | 173 | mm/swap.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j +=swapf->i_sb->s_blocksize) |
j | 1069 | mm/swap.c | int i, j, prev; |
j | 1144 | mm/swap.c | j = 0; |
j | 1153 | mm/swap.c | j++; |
j | 1156 | mm/swap.c | if (!j) { |
j | 1175 | mm/swap.c | p->pages = j; |
j | 1176 | mm/swap.c | nr_swap_pages += j; |
j | 1177 | mm/swap.c | printk("Adding Swap: %dk swap-space\n",j<<(PAGE_SHIFT-10)); |
j | 1211 | mm/swap.c | unsigned int i, j; |
j | 1217 | mm/swap.c | for (j = 0; j < swap_info[i].max; ++j) |
j | 1218 | mm/swap.c | switch (swap_info[i].swap_map[j]) { |
j | 120 | net/ipv4/af_inet.c | int i, j; |
j | 135 | net/ipv4/af_inet.c | j = 0; |
j | 140 | net/ipv4/af_inet.c | j++; |
j | 142 | net/ipv4/af_inet.c | if (j == 0) |
j | 147 | net/ipv4/af_inet.c | if (j < size) |
j | 150 | net/ipv4/af_inet.c | size = j; |
j | 1008 | net/ipv4/arp.c | int i,j,k; |
j | 1036 | net/ipv4/arp.c | for(k=0,j=0;k<HBUFFERLEN-3 && j<entry->hlen;j++) |
j | 1038 | net/ipv4/arp.c | hbuffer[k++]=hexbuf[ (entry->ha[j]>>4)&15 ]; |
j | 1039 | net/ipv4/arp.c | hbuffer[k++]=hexbuf[ entry->ha[j]&15 ]; |
j | 288 | net/ipv4/igmp.c | struct ip_mc_list *j; |
j | 289 | net/ipv4/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=j) |
j | 291 | net/ipv4/igmp.c | j=i->next; |