tag | line | file | source code |
j | 28 | arch/alpha/boot/main.c | int i, j, written, remaining, num_nl; |
j | 39 | arch/alpha/boot/main.c | for (j = 0; j < i; ++j) { |
j | 40 | arch/alpha/boot/main.c | if (buf[j] == '\n') |
j | 44 | arch/alpha/boot/main.c | for (j = i - 1; j >= 0; --j) { |
j | 45 | arch/alpha/boot/main.c | buf[j + num_nl] = buf[j]; |
j | 46 | arch/alpha/boot/main.c | if (buf[j] == '\n') { |
j | 48 | arch/alpha/boot/main.c | buf[j + num_nl] = '\r'; |
j | 366 | arch/alpha/kernel/irq.c | int j; |
j | 376 | arch/alpha/kernel/irq.c | j = *(volatile int *) IACK_SC; |
j | 377 | arch/alpha/kernel/irq.c | j &= 0xff; |
j | 378 | arch/alpha/kernel/irq.c | if (j == 7) { |
j | 384 | arch/alpha/kernel/irq.c | device_interrupt(j, j, regs); |
j | 406 | arch/alpha/kernel/irq.c | j = ffz(~pic); |
j | 408 | arch/alpha/kernel/irq.c | device_interrupt(j, j, regs); |
j | 259 | arch/i386/kernel/irq.c | int i,j, len = 0; |
j | 285 | arch/i386/kernel/irq.c | for (j=0;j<smp_num_cpus;j++) |
j | 287 | arch/i386/kernel/irq.c | int_count[cpu_logical_map[j]][i]); |
j | 197 | arch/i386/kernel/process.c | int i, j; |
j | 206 | arch/i386/kernel/process.c | for(j = 0; j < 100000 ; j++) |
j | 690 | arch/i386/kernel/smp.c | int timeout, num_starts, j; |
j | 795 | arch/i386/kernel/smp.c | for (j = 1; !(send_status || accept_status) |
j | 796 | arch/i386/kernel/smp.c | && (j <= num_starts) ; j++) |
j | 798 | arch/i386/kernel/smp.c | SMP_PRINTK(("Sending STARTUP #%d.\n",j)); |
j | 56 | arch/mips/kernel/process.c | int i, j; |
j | 62 | arch/mips/kernel/process.c | for(j = 0; j < 100000 ; j++) |
j | 685 | arch/ppc/kernel/raw_printf.c | for (j = ROW - 1 - i; j--; pp -= COL) |
j | 723 | arch/ppc/mm/init.c | int i, j, flags; |
j | 741 | arch/ppc/mm/init.c | for (j = 0; j < PTRS_PER_PTE; j++) |
j | 4101 | drivers/block/floppy.c | int j; |
j | 4108 | drivers/block/floppy.c | j=1; |
j | 4113 | drivers/block/floppy.c | if (j==99) |
j | 4115 | drivers/block/floppy.c | buffer[j] = c; |
j | 4117 | drivers/block/floppy.c | if (j){ |
j | 4118 | drivers/block/floppy.c | buffer[j] = '\0'; |
j | 4121 | drivers/block/floppy.c | j=0; |
j | 4123 | drivers/block/floppy.c | j++; |
j | 4128 | drivers/block/floppy.c | if ((!j && !c) || (j && c == pattern[j-1])) |
j | 4129 | drivers/block/floppy.c | j++; |
j | 4131 | drivers/block/floppy.c | j=0; |
j | 4132 | drivers/block/floppy.c | if (j==length){ |
j | 4134 | drivers/block/floppy.c | j=0; |
j | 185 | drivers/block/linear.c | int j; |
j | 189 | drivers/block/linear.c | for (j=0; j<data->nr_zones; j++) |
j | 192 | drivers/block/linear.c | partition_name (data->hash_table[j].dev0->dev)); |
j | 194 | drivers/block/linear.c | if (data->hash_table[j].dev1) |
j | 196 | drivers/block/linear.c | partition_name(data->hash_table[j].dev1->dev)); |
j | 554 | drivers/block/ll_rw_blk.c | int i, j; |
j | 579 | drivers/block/ll_rw_blk.c | for (j=0, i=0; i<nb;) |
j | 581 | drivers/block/ll_rw_blk.c | for (; j < 8 && i < nb; j++, i++, buf += buffersize) |
j | 583 | drivers/block/ll_rw_blk.c | if (j == 0) { |
j | 584 | drivers/block/ll_rw_blk.c | req[j] = get_request_wait(NR_REQUEST, dev); |
j | 587 | drivers/block/ll_rw_blk.c | req[j] = get_request(NR_REQUEST, dev); |
j | 589 | drivers/block/ll_rw_blk.c | if (req[j] == NULL) |
j | 592 | drivers/block/ll_rw_blk.c | req[j]->cmd = rw; |
j | 593 | drivers/block/ll_rw_blk.c | req[j]->errors = 0; |
j | 594 | drivers/block/ll_rw_blk.c | req[j]->sector = (b[i] * buffersize) >> 9; |
j | 595 | drivers/block/ll_rw_blk.c | req[j]->nr_sectors = buffersize >> 9; |
j | 596 | drivers/block/ll_rw_blk.c | req[j]->current_nr_sectors = buffersize >> 9; |
j | 597 | drivers/block/ll_rw_blk.c | req[j]->buffer = buf; |
j | 598 | drivers/block/ll_rw_blk.c | req[j]->sem = &sem; |
j | 599 | drivers/block/ll_rw_blk.c | req[j]->bh = NULL; |
j | 600 | drivers/block/ll_rw_blk.c | req[j]->next = NULL; |
j | 601 | drivers/block/ll_rw_blk.c | add_request(major+blk_dev,req[j]); |
j | 604 | drivers/block/ll_rw_blk.c | while (j > 0) { |
j | 605 | drivers/block/ll_rw_blk.c | j--; |
j | 117 | drivers/block/md.c | int i, j, minra=INT_MAX; |
j | 124 | drivers/block/md.c | for (j=0; j<md_dev[i].nb_dev; j++) |
j | 125 | drivers/block/md.c | if (read_ahead[MAJOR(devices[i][j].dev)]<minra) |
j | 126 | drivers/block/md.c | minra=read_ahead[MAJOR(devices[i][j].dev)]; |
j | 453 | drivers/block/md.c | int i, j, max_req, major=0, rw, found; |
j | 557 | drivers/block/md.c | for (j=0; j<n; j++) |
j | 559 | drivers/block/md.c | if (!pending[j].bh) |
j | 562 | drivers/block/md.c | pending[j].bh=NULL; |
j | 625 | drivers/block/md.c | int sz=0, i, j; |
j | 647 | drivers/block/md.c | for (j=0; j<md_dev[i].nb_dev; j++) |
j | 649 | drivers/block/md.c | (devices[i][j].invalid==VALID) ? "" : "(", |
j | 650 | drivers/block/md.c | partition_name(devices[i][j].dev), |
j | 651 | drivers/block/md.c | (devices[i][j].invalid==VALID) ? "" : ")"); |
j | 34 | drivers/block/raid0.c | int i, j, c=0; |
j | 43 | drivers/block/raid0.c | for (j=0; j<i; j++) |
j | 44 | drivers/block/raid0.c | if (devices[minor][i].size==devices[minor][j].size) |
j | 67 | drivers/block/raid0.c | for (j=0; j<mddev->nb_dev; j++) |
j | 68 | drivers/block/raid0.c | if (devices[minor][j].size>current_offset) |
j | 70 | drivers/block/raid0.c | data->strip_zone[i].dev[c++]=devices[minor]+j; |
j | 72 | drivers/block/raid0.c | smallest_by_zone->size > devices[minor][j].size) |
j | 73 | drivers/block/raid0.c | smallest_by_zone=devices[minor]+j; |
j | 273 | drivers/block/raid0.c | int j, k; |
j | 277 | drivers/block/raid0.c | for (j=0; j<data->nr_zones; j++) |
j | 280 | drivers/block/raid0.c | data->hash_table[j].zone0-data->strip_zone); |
j | 281 | drivers/block/raid0.c | if (data->hash_table[j].zone1) |
j | 283 | drivers/block/raid0.c | data->hash_table[j].zone1-data->strip_zone); |
j | 290 | drivers/block/raid0.c | for (j=0; j<data->nr_strip_zones; j++) |
j | 292 | drivers/block/raid0.c | sz+=sprintf (page+sz, " z%d=[", j); |
j | 293 | drivers/block/raid0.c | for (k=0; k<data->strip_zone[j].nb_dev; k++) |
j | 295 | drivers/block/raid0.c | partition_name(data->strip_zone[j].dev[k]->dev)); |
j | 298 | drivers/block/raid0.c | data->strip_zone[j].zone_offset, |
j | 299 | drivers/block/raid0.c | data->strip_zone[j].dev_offset, |
j | 300 | drivers/block/raid0.c | data->strip_zone[j].size); |
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 | 657 | drivers/cdrom/gscd.c | int i,j; |
j | 665 | drivers/cdrom/gscd.c | j = *pstr & 0x0F; |
j | 668 | drivers/cdrom/gscd.c | for ( i=0 ; i<j ; i++ ) |
j | 939 | drivers/cdrom/sbpcd.c | int i,j; |
j | 945 | drivers/cdrom/sbpcd.c | j=inb(CDi_status); |
j | 946 | drivers/cdrom/sbpcd.c | if (!(j&s_not_data_ready)) return (j); |
j | 947 | drivers/cdrom/sbpcd.c | if (!(j&s_not_result_ready)) return (j); |
j | 948 | drivers/cdrom/sbpcd.c | if (fam0L_drive) if (j&s_attention) return (j); |
j | 990 | drivers/cdrom/sbpcd.c | int i,j,st=0; |
j | 995 | drivers/cdrom/sbpcd.c | for (j=maxtim_data; ; ) |
j | 997 | drivers/cdrom/sbpcd.c | for ( ;j!=0;j-- ) |
j | 1002 | drivers/cdrom/sbpcd.c | if ((j!=0)||(timeout<=jiffies)) break; |
j | 1004 | drivers/cdrom/sbpcd.c | j = 1; |
j | 1014 | drivers/cdrom/sbpcd.c | j=i-response_count; |
j | 1015 | drivers/cdrom/sbpcd.c | if (j>0) msg(DBG_INF,"ResponseInfo: got %d trailing bytes.\n",j); |
j | 1017 | drivers/cdrom/sbpcd.c | for (j=0;j<i;j++) |
j | 1018 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[j*3]," %02X",infobuf[j]); |
j | 1019 | drivers/cdrom/sbpcd.c | msgbuf[j*3]=0; |
j | 1021 | drivers/cdrom/sbpcd.c | j=response_count-i; |
j | 1022 | drivers/cdrom/sbpcd.c | if (j>0) return (-j); |
j | 1122 | drivers/cdrom/sbpcd.c | int i,j; |
j | 1130 | drivers/cdrom/sbpcd.c | j=maxtim_8; |
j | 1133 | drivers/cdrom/sbpcd.c | for ( ;j!=0;j--) |
j | 1138 | drivers/cdrom/sbpcd.c | if ((j!=0)||(timeout<jiffies)) break; |
j | 1140 | drivers/cdrom/sbpcd.c | j = 1; |
j | 1143 | drivers/cdrom/sbpcd.c | if (j==0) |
j | 1222 | drivers/cdrom/sbpcd.c | int i, j, l=0, m, ntries; |
j | 1245 | drivers/cdrom/sbpcd.c | j=inb(CDi_info); |
j | 1248 | drivers/cdrom/sbpcd.c | msg(DBG_TEA,"cmd_out_T: spurious !s_not_result_ready. (%02X)\n", j); |
j | 1286 | drivers/cdrom/sbpcd.c | for (j=0;j<l;j++) sprintf(&msgbuf[j*3]," %02X",infobuf[j]); |
j | 1287 | drivers/cdrom/sbpcd.c | msgbuf[j*3]=0; |
j | 1294 | drivers/cdrom/sbpcd.c | j=0; |
j | 1299 | drivers/cdrom/sbpcd.c | j++; |
j | 1303 | drivers/cdrom/sbpcd.c | msg(DBG_TEA,"cmd_out_T: data response: discarded %d bytes/words.\n", j); |
j | 1319 | drivers/cdrom/sbpcd.c | for (j=0;j<m;j++) sprintf(&msgbuf[j*3]," %02X",infobuf[j]); |
j | 1320 | drivers/cdrom/sbpcd.c | msgbuf[j*3]=0; |
j | 1334 | drivers/cdrom/sbpcd.c | j=cmd_out_T(); /* !!! recursive here !!! */ |
j | 1338 | drivers/cdrom/sbpcd.c | while (j<0); |
j | 1593 | drivers/cdrom/sbpcd.c | int i, j; |
j | 1610 | drivers/cdrom/sbpcd.c | j=cc_set_mode_T(); |
j | 1616 | drivers/cdrom/sbpcd.c | return (j); |
j | 1924 | drivers/cdrom/sbpcd.c | int i, j, n; |
j | 1948 | drivers/cdrom/sbpcd.c | j=1; |
j | 1963 | drivers/cdrom/sbpcd.c | j=3; |
j | 1972 | drivers/cdrom/sbpcd.c | drvcmd[j]=(pos_audio_start>>16)&0x00FF; |
j | 1973 | drivers/cdrom/sbpcd.c | drvcmd[j+1]=(pos_audio_start>>8)&0x00FF; |
j | 1974 | drivers/cdrom/sbpcd.c | drvcmd[j+2]=pos_audio_start&0x00FF; |
j | 1975 | drivers/cdrom/sbpcd.c | drvcmd[j+3]=(pos_audio_end>>16)&0x00FF; |
j | 1976 | drivers/cdrom/sbpcd.c | drvcmd[j+4]=(pos_audio_end>>8)&0x00FF; |
j | 1977 | drivers/cdrom/sbpcd.c | drvcmd[j+5]=pos_audio_end&0x00FF; |
j | 2067 | drivers/cdrom/sbpcd.c | int i,j; |
j | 2069 | drivers/cdrom/sbpcd.c | j=20; |
j | 2073 | drivers/cdrom/sbpcd.c | --j; |
j | 2076 | drivers/cdrom/sbpcd.c | while ((i<0)&&(j)); |
j | 2087 | drivers/cdrom/sbpcd.c | int i,j; |
j | 2089 | drivers/cdrom/sbpcd.c | j=20; |
j | 2093 | drivers/cdrom/sbpcd.c | --j; |
j | 2096 | drivers/cdrom/sbpcd.c | while ((i<0)&&(j)); |
j | 2097 | drivers/cdrom/sbpcd.c | if (j==0) |
j | 2100 | drivers/cdrom/sbpcd.c | j=20; |
j | 2104 | drivers/cdrom/sbpcd.c | --j; |
j | 2107 | drivers/cdrom/sbpcd.c | while ((i<0)&&(j)); |
j | 2155 | drivers/cdrom/sbpcd.c | int i,j; |
j | 2158 | drivers/cdrom/sbpcd.c | for (j=255;j>0;j--) |
j | 2204 | drivers/cdrom/sbpcd.c | if ((!st_spinning) || (j==1)) |
j | 2462 | drivers/cdrom/sbpcd.c | int i, j; |
j | 2468 | drivers/cdrom/sbpcd.c | for (j=3;j>0;j--) |
j | 2496 | drivers/cdrom/sbpcd.c | if (j==0) return (i); |
j | 3035 | drivers/cdrom/sbpcd.c | int i, j, l; |
j | 3058 | drivers/cdrom/sbpcd.c | j=0; |
j | 3059 | drivers/cdrom/sbpcd.c | for (i=0;i<12;i++) j+=infobuf[i]; |
j | 3060 | drivers/cdrom/sbpcd.c | if (j) |
j | 3103 | drivers/cdrom/sbpcd.c | for (j=0;j<8;j++) |
j | 3104 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[j]=infobuf[j]; |
j | 3114 | drivers/cdrom/sbpcd.c | for (j=0;j<6;j++) |
j | 3115 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[j]=infobuf[j]; |
j | 3146 | drivers/cdrom/sbpcd.c | j=0; |
j | 3147 | drivers/cdrom/sbpcd.c | for (i=0;i<12;i++) j+=infobuf[i]; |
j | 3148 | drivers/cdrom/sbpcd.c | if (j) |
j | 3180 | drivers/cdrom/sbpcd.c | for (j=1;j<=((D_S[d].drv_id==0)?3:1);j++) |
j | 3184 | drivers/cdrom/sbpcd.c | msg(DBG_TEA,"TEAC reset #%d-%d.\n", j, l); |
j | 3236 | drivers/cdrom/sbpcd.c | for (j=0;j<4;j++) D_S[d].firmware_version[j]=infobuf[i+j]; |
j | 3242 | drivers/cdrom/sbpcd.c | for (j=0;j<4;j++) |
j | 3243 | drivers/cdrom/sbpcd.c | if (D_S[d].firmware_version[j]!=lcs_firm_e1[j]) break; |
j | 3244 | drivers/cdrom/sbpcd.c | if (j==4) D_S[d].drv_type=drv_e1; |
j | 3246 | drivers/cdrom/sbpcd.c | for (j=0;j<4;j++) |
j | 3247 | drivers/cdrom/sbpcd.c | if (D_S[d].firmware_version[j]!=lcs_firm_f4[j]) break; |
j | 3248 | drivers/cdrom/sbpcd.c | if (j==4) D_S[d].drv_type=drv_f4; |
j | 3254 | drivers/cdrom/sbpcd.c | j=infobuf[4]; /* one-byte version??? - here: 0x15 */ |
j | 3255 | drivers/cdrom/sbpcd.c | if (j=='5') |
j | 3264 | drivers/cdrom/sbpcd.c | if (j!=0x15) ask_mail(); |
j | 3267 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[2]='0'+(j>>4); |
j | 3268 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[3]='0'+(j&0x0f); |
j | 3273 | drivers/cdrom/sbpcd.c | j = (D_S[d].firmware_version[0] & 0x0F) * 100 + |
j | 3278 | drivers/cdrom/sbpcd.c | if (j<200) D_S[d].drv_type=drv_199; |
j | 3279 | drivers/cdrom/sbpcd.c | else if (j<201) D_S[d].drv_type=drv_200; |
j | 3280 | drivers/cdrom/sbpcd.c | else if (j<210) D_S[d].drv_type=drv_201; |
j | 3281 | drivers/cdrom/sbpcd.c | else if (j<211) D_S[d].drv_type=drv_210; |
j | 3282 | drivers/cdrom/sbpcd.c | else if (j<300) D_S[d].drv_type=drv_211; |
j | 3283 | drivers/cdrom/sbpcd.c | else if (j>=300) D_S[d].drv_type=drv_300; |
j | 3287 | drivers/cdrom/sbpcd.c | if (j<100) D_S[d].drv_type=drv_099; |
j | 3291 | drivers/cdrom/sbpcd.c | if ((j!=500)&&(j!=102)) ask_mail(); |
j | 3298 | drivers/cdrom/sbpcd.c | if ((j!=1)&&(j!=35)&&(j!=200)&&(j!=210)) |
j | 3304 | drivers/cdrom/sbpcd.c | if ((j!=101)&&(j!=35)) |
j | 3310 | drivers/cdrom/sbpcd.c | if (j==100) D_S[d].drv_type=drv_at; |
j | 3335 | drivers/cdrom/sbpcd.c | int i, j, k; |
j | 3344 | drivers/cdrom/sbpcd.c | for (j=0;j<NR_SBPCD;j++) |
j | 3346 | drivers/cdrom/sbpcd.c | OUT(port+3,j) ; /* enable drive #j */ |
j | 3362 | drivers/cdrom/sbpcd.c | msg(DBG_TEA,"path check 00 (%d): %s\n", j, msgbuf); |
j | 3378 | drivers/cdrom/sbpcd.c | msg(DBG_TEA,"path check 00 (%d): %s\n", j, msgbuf); |
j | 3384 | drivers/cdrom/sbpcd.c | for (j=0;j<NR_SBPCD;j++) |
j | 3386 | drivers/cdrom/sbpcd.c | OUT(port+3,j) ; /* enable drive #j */ |
j | 3402 | drivers/cdrom/sbpcd.c | msg(DBG_TEA,"path check 12 (%d): %s\n", j, msgbuf); |
j | 3419 | drivers/cdrom/sbpcd.c | msg(DBG_TEA,"path check 12 (%d): %s\n", j, msgbuf); |
j | 3437 | drivers/cdrom/sbpcd.c | int i, j; |
j | 3441 | drivers/cdrom/sbpcd.c | for (j=0;j<MAX_DRIVES;j++) |
j | 3443 | drivers/cdrom/sbpcd.c | D_S[ndrives].drv_id=j; |
j | 3444 | drivers/cdrom/sbpcd.c | if (sbpro_type==1) D_S[ndrives].drv_sel=(j&0x01)<<1|(j&0x02)>>1; |
j | 3445 | drivers/cdrom/sbpcd.c | else D_S[ndrives].drv_sel=j; |
j | 3447 | drivers/cdrom/sbpcd.c | msg(DBG_INI,"check_drives: drive %d (ID=%d) activated.\n",ndrives,j); |
j | 3448 | drivers/cdrom/sbpcd.c | msg(DBG_000,"check_drives: drive %d (ID=%d) activated.\n",ndrives,j); |
j | 3453 | drivers/cdrom/sbpcd.c | D_S[d].drv_options=drv_pattern[j]; |
j | 3465 | drivers/cdrom/sbpcd.c | for (j=ndrives;j<NR_SBPCD;j++) D_S[j].drv_id=-1; |
j | 3604 | drivers/cdrom/sbpcd.c | int i, j; |
j | 3607 | drivers/cdrom/sbpcd.c | for (j=D_S[d].n_first_track;j<=D_S[d].n_last_track;j++) |
j | 3609 | drivers/cdrom/sbpcd.c | i=cc_ReadTocEntry(j); |
j | 3612 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"cc_ReadTocEntry(%d) returns %d.\n",j,i); |
j | 3615 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].nixbyte=D_S[d].TocEnt_nixbyte; |
j | 3616 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].ctl_adr=D_S[d].TocEnt_ctl_adr; |
j | 3617 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].number=D_S[d].TocEnt_number; |
j | 3618 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].format=D_S[d].TocEnt_format; |
j | 3619 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].address=D_S[d].TocEnt_address; |
j | 3623 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].nixbyte=0; |
j | 3624 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].ctl_adr=0; |
j | 3625 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].number=CDROM_LEADOUT; |
j | 3626 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].format=0; |
j | 3627 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].address=D_S[d].size_msf; |
j | 3635 | drivers/cdrom/sbpcd.c | int i, j; |
j | 3643 | drivers/cdrom/sbpcd.c | for (j=1;j<LOOP_COUNT;j++) |
j | 3659 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"DiskInfo: ReadCapacity #%d returns %d\n", j, i); |
j | 3662 | drivers/cdrom/sbpcd.c | if (j==LOOP_COUNT) return (-33); /* give up */ |
j | 4146 | drivers/cdrom/sbpcd.c | int i=0, j=0, frame, block; |
j | 4252 | drivers/cdrom/sbpcd.c | j=inb(CDi_status); |
j | 4253 | drivers/cdrom/sbpcd.c | if (!(j&s_not_data_ready)) break; |
j | 4254 | drivers/cdrom/sbpcd.c | if (!(j&s_not_result_ready)) break; |
j | 4255 | drivers/cdrom/sbpcd.c | if (fam0L_drive) if (j&s_attention) break; |
j | 4270 | drivers/cdrom/sbpcd.c | if (j&s_not_data_ready) |
j | 4303 | drivers/cdrom/sbpcd.c | j=inb(CDi_status); |
j | 4304 | drivers/cdrom/sbpcd.c | if (!(j&s_not_data_ready)) break; |
j | 4305 | drivers/cdrom/sbpcd.c | if (!(j&s_not_result_ready)) break; |
j | 4306 | drivers/cdrom/sbpcd.c | if (j&s_attention) break; |
j | 4313 | drivers/cdrom/sbpcd.c | if (!(j&s_attention)) |
j | 4610 | drivers/cdrom/sbpcd.c | int i=0, j=0, l, frame; |
j | 4648 | drivers/cdrom/sbpcd.c | j=inb(CDi_status); |
j | 4649 | drivers/cdrom/sbpcd.c | if (!(j&s_not_data_ready)) break;; |
j | 4650 | drivers/cdrom/sbpcd.c | if (!(j&s_not_result_ready)) break; |
j | 4651 | drivers/cdrom/sbpcd.c | if (fam0LV_drive) if (j&s_attention) break; |
j | 4653 | drivers/cdrom/sbpcd.c | if (!(j&s_not_data_ready)) goto data_ready; |
j | 4669 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"sbp_data: CDi_status timeout (timed_out_data) (%02X).\n", j); |
j | 4675 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"sbp_data: CDi_status timeout (try=0) (%02X).\n", j); |
j | 4679 | drivers/cdrom/sbpcd.c | if (!(j&s_not_result_ready)) |
j | 4681 | drivers/cdrom/sbpcd.c | msg(DBG_INF, "sbp_data: RESULT_READY where DATA_READY awaited (%02X).\n", j); |
j | 4683 | drivers/cdrom/sbpcd.c | j=ResponseInfo(); |
j | 4684 | drivers/cdrom/sbpcd.c | j=inb(CDi_status); |
j | 4686 | drivers/cdrom/sbpcd.c | if (j&s_not_data_ready) |
j | 4690 | drivers/cdrom/sbpcd.c | else msg(DBG_INF, "sbp_data: DATA_READY timeout (%02X).\n", j); |
j | 4737 | drivers/cdrom/sbpcd.c | j=0; |
j | 4742 | drivers/cdrom/sbpcd.c | j++; |
j | 4746 | drivers/cdrom/sbpcd.c | msg(DBG_TEA, "==========too much data (%d bytes/words)==============.\n", j); |
j | 4760 | drivers/cdrom/sbpcd.c | for (j=0;j<l;j++) sprintf(&msgbuf[j*3], " %02X", infobuf[j]); |
j | 4761 | drivers/cdrom/sbpcd.c | msgbuf[j*3]=0; |
j | 4774 | drivers/cdrom/sbpcd.c | j=cmd_out_T(); /* !!! recursive here !!! */ |
j | 4778 | drivers/cdrom/sbpcd.c | while (j<0); |
j | 4816 | drivers/cdrom/sbpcd.c | j=inb(CDi_status); |
j | 4817 | drivers/cdrom/sbpcd.c | if (!(j&s_not_data_ready)) break; |
j | 4818 | drivers/cdrom/sbpcd.c | if (!(j&s_not_result_ready)) break; |
j | 4819 | drivers/cdrom/sbpcd.c | if (j&s_attention) break; |
j | 4826 | drivers/cdrom/sbpcd.c | if (!(j&s_attention)) |
j | 5162 | drivers/cdrom/sbpcd.c | int i=0, j=0; |
j | 5244 | drivers/cdrom/sbpcd.c | for (j=0;j<NR_SBPCD;j++) |
j | 5246 | drivers/cdrom/sbpcd.c | if (D_S[j].drv_id==-1) continue; |
j | 5247 | drivers/cdrom/sbpcd.c | switch_drive(j); |
j | 5321 | drivers/cdrom/sbpcd.c | for (j=0;j<NR_SBPCD;j++) |
j | 5323 | drivers/cdrom/sbpcd.c | if (D_S[j].drv_id==-1) continue; |
j | 5324 | drivers/cdrom/sbpcd.c | switch_drive(j); |
j | 5328 | drivers/cdrom/sbpcd.c | D_S[j].aud_buf=NULL; |
j | 5329 | drivers/cdrom/sbpcd.c | D_S[j].sbp_audsiz=0; |
j | 5330 | drivers/cdrom/sbpcd.c | D_S[j].sbp_bufsiz=SBP_BUFFER_FRAMES; |
j | 5331 | drivers/cdrom/sbpcd.c | if (D_S[j].drv_type&drv_fam1) |
j | 5332 | drivers/cdrom/sbpcd.c | if (READ_AUDIO>0) D_S[j].sbp_audsiz=READ_AUDIO; |
j | 5333 | drivers/cdrom/sbpcd.c | D_S[j].sbp_buf=(u_char *) vmalloc(D_S[j].sbp_bufsiz*CD_FRAMESIZE); |
j | 5334 | drivers/cdrom/sbpcd.c | if (D_S[j].sbp_buf==NULL) |
j | 5336 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"data buffer (%d frames) not available.\n",D_S[j].sbp_bufsiz); |
j | 5342 | drivers/cdrom/sbpcd.c | if (D_S[j].sbp_audsiz>0) |
j | 5344 | drivers/cdrom/sbpcd.c | D_S[j].aud_buf=(u_char *) vmalloc(D_S[j].sbp_audsiz*CD_FRAMESIZE_RAW); |
j | 5345 | drivers/cdrom/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 | 5346 | drivers/cdrom/sbpcd.c | else msg(DBG_INF,"audio buffer size: %d frames.\n",D_S[j].sbp_audsiz); |
j | 5351 | drivers/cdrom/sbpcd.c | sbpcd_blocksizes[j]=CD_FRAMESIZE; |
j | 5375 | drivers/cdrom/sbpcd.c | int j; |
j | 5384 | drivers/cdrom/sbpcd.c | for (j=0;j<NR_SBPCD;j++) |
j | 5386 | drivers/cdrom/sbpcd.c | if (D_S[j].drv_id==-1) continue; |
j | 5387 | drivers/cdrom/sbpcd.c | vfree(D_S[j].sbp_buf); |
j | 5388 | drivers/cdrom/sbpcd.c | if (D_S[j].sbp_audsiz>0) vfree(D_S[j].aud_buf); |
j | 655 | drivers/cdrom/sonycd535.c | int i, j, n_tracks, track_no; |
j | 672 | drivers/cdrom/sonycd535.c | for (j = 0; j < 5; j++) { |
j | 673 | drivers/cdrom/sonycd535.c | if (read_result_reg(track_address_buffer + j) != 0) |
j | 675 | drivers/cdrom/sonycd535.c | if (j == 1) /* need to convert from bcd */ |
j | 676 | drivers/cdrom/sonycd535.c | track_no = bcd_to_int(track_address_buffer[j]); |
j | 1600 | drivers/char/console.c | int i = par[0]*3, j = 1; |
j | 1601 | drivers/char/console.c | palette[i] = 16*par[j++]; |
j | 1602 | drivers/char/console.c | palette[i++] += par[j++]; |
j | 1603 | drivers/char/console.c | palette[i] = 16*par[j++]; |
j | 1604 | drivers/char/console.c | palette[i++] += par[j++]; |
j | 1605 | drivers/char/console.c | palette[i] = 16*par[j++]; |
j | 1606 | drivers/char/console.c | palette[i] += par[j]; |
j | 1918 | drivers/char/console.c | int j, k ; |
j | 1929 | drivers/char/console.c | for (j=k=0; j<16; j++) { |
j | 1930 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_red[j] ; |
j | 1931 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_grn[j] ; |
j | 1932 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_blu[j] ; |
j | 2040 | drivers/char/console.c | int j, k ; |
j | 2051 | drivers/char/console.c | for (j=k=0; j<16; j++) { |
j | 2052 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_red[j] ; |
j | 2053 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_grn[j] ; |
j | 2054 | drivers/char/console.c | vc_cons[currcons].d->vc_palette[k++] = default_blu[j] ; |
j | 2283 | drivers/char/console.c | int j, k ; |
j | 2284 | drivers/char/console.c | for (j=k=0; j<16; j++) { |
j | 2285 | drivers/char/console.c | palette[k++] = default_red[j]; |
j | 2286 | drivers/char/console.c | palette[k++] = default_grn[j]; |
j | 2287 | drivers/char/console.c | palette[k++] = default_blu[j]; |
j | 171 | drivers/char/consolemap.c | int j, glyph; |
j | 183 | drivers/char/consolemap.c | for (j=0; j<MAX_GLYPH; j++) |
j | 184 | drivers/char/consolemap.c | q[j] = 0; |
j | 186 | drivers/char/consolemap.c | for (j=0; j<E_TABSZ; j++) { |
j | 187 | drivers/char/consolemap.c | glyph = conv_uni_to_pc(p[j]); |
j | 190 | drivers/char/consolemap.c | q[glyph] = j; |
j | 350 | drivers/char/consolemap.c | int i, j; |
j | 357 | drivers/char/consolemap.c | for ( j = 0 ; j < 32 ; j++ ) |
j | 359 | drivers/char/consolemap.c | if ( p1[j] ) |
j | 360 | drivers/char/consolemap.c | kfree(p1[j]); |
j | 397 | drivers/char/consolemap.c | int i, j; |
j | 406 | drivers/char/consolemap.c | for ( j = dfont_unicount[i] ; j ; j-- ) |
j | 415 | drivers/char/consolemap.c | int i, j, k, ect; |
j | 423 | drivers/char/consolemap.c | for ( j = 0 ; j < 32 ; j++ ) |
j | 429 | drivers/char/consolemap.c | put_user((u_short)((i<<11)+(j<<6)+k), |
j | 273 | drivers/char/cyclades.c | #define small_delay(x) for(j=0;j<x;j++)k++; |
j | 658 | drivers/char/cyclades.c | int i,j,index; |
j | 704 | drivers/char/cyclades.c | j = (base_addr[CyRIVR<<index] & CyIVRMask); |
j | 705 | drivers/char/cyclades.c | if ( j == CyIVRRxEx ) { /* exception */ |
j | 715 | drivers/char/cyclades.c | j = (base_addr[CyRIVR<<index] & CyIVRMask); |
j | 716 | drivers/char/cyclades.c | if ( j == CyIVRRxEx ) { /* exception */ |
j | 2952 | drivers/char/cyclades.c | unsigned short i,j,cy_isa_nchan; |
j | 2983 | drivers/char/cyclades.c | for (j = 0 ; j < NR_CARDS ; j++) { |
j | 2984 | drivers/char/cyclades.c | if (cy_card[j].base_addr == 0) break; |
j | 2986 | drivers/char/cyclades.c | if (j == NR_CARDS) { /* no more cy_cards available */ |
j | 3001 | drivers/char/cyclades.c | cy_card[j].base_addr = (int) cy_isa_address; |
j | 3002 | drivers/char/cyclades.c | cy_card[j].irq = (int) cy_isa_irq; |
j | 3003 | drivers/char/cyclades.c | cy_card[j].bus_index = 0; |
j | 3004 | drivers/char/cyclades.c | cy_card[j].first_line = cy_next_channel; |
j | 3005 | drivers/char/cyclades.c | cy_card[j].num_chips = cy_isa_nchan/4; |
j | 3006 | drivers/char/cyclades.c | IRQ_cards[cy_isa_irq] = &cy_card[j]; |
j | 3011 | drivers/char/cyclades.c | j+1,(unsigned int) cy_isa_address, |
j | 3033 | drivers/char/cyclades.c | unsigned short i,j,cy_pci_nchan; |
j | 3080 | drivers/char/cyclades.c | for (j = 0 ; j < NR_CARDS ; j++) { |
j | 3081 | drivers/char/cyclades.c | if (cy_card[j].base_addr == 0) break; |
j | 3083 | drivers/char/cyclades.c | if (j == NR_CARDS) { /* no more cy_cards available */ |
j | 3098 | drivers/char/cyclades.c | cy_card[j].base_addr = (int) cy_pci_address; |
j | 3099 | drivers/char/cyclades.c | cy_card[j].irq = (int) cy_pci_irq; |
j | 3100 | drivers/char/cyclades.c | cy_card[j].bus_index = 1; |
j | 3101 | drivers/char/cyclades.c | cy_card[j].first_line = cy_next_channel; |
j | 3102 | drivers/char/cyclades.c | cy_card[j].num_chips = cy_pci_nchan/4; |
j | 3103 | drivers/char/cyclades.c | IRQ_cards[cy_pci_irq] = &cy_card[j]; |
j | 3111 | drivers/char/cyclades.c | j+1,(unsigned int) cy_pci_address, |
j | 466 | drivers/char/ftape/ecc.c | int i, j; |
j | 471 | drivers/char/ftape/ecc.c | for (j = 0; j < n; ++j) { |
j | 472 | drivers/char/ftape/ecc.c | dot_prod = gfadd(dot_prod, gfmul(A[i][j], s[j])); |
j | 789 | drivers/char/istallion.c | int i, j; |
j | 810 | drivers/char/istallion.c | j = tty_unregister_driver(&stli_callout); |
j | 811 | drivers/char/istallion.c | if (i || j) { |
j | 812 | drivers/char/istallion.c | printk("STALLION: failed to un-register tty driver, errno=%d,%d\n", -i, -j); |
j | 828 | drivers/char/istallion.c | for (j = 0; (j < STL_MAXPORTS); j++) { |
j | 829 | drivers/char/istallion.c | portp = brdp->ports[j]; |
j | 4093 | drivers/char/istallion.c | int i, j; |
j | 4141 | drivers/char/istallion.c | for (j = i + 1; (j < stli_nrbrds); j++) { |
j | 4142 | drivers/char/istallion.c | nxtbrdp = stli_brds[j]; |
j | 993 | drivers/char/keyboard.c | int i, j, k, sym, val; |
j | 1002 | drivers/char/keyboard.c | for(j=0; j<BITS_PER_LONG; j++,k++) |
j | 772 | drivers/char/pcxx.c | int i, j, last; |
j | 855 | drivers/char/pcxx.c | for(j=0;j<PCXX_NUM_TYPES;j++) |
j | 856 | drivers/char/pcxx.c | if (strcmp(board_desc[j], str) == 0) |
j | 860 | drivers/char/pcxx.c | board.type = j; |
j | 577 | drivers/char/stallion.c | int i, j, k; |
j | 595 | drivers/char/stallion.c | j = tty_unregister_driver(&stl_callout); |
j | 596 | drivers/char/stallion.c | if (i || j) { |
j | 597 | drivers/char/stallion.c | printk("STALLION: failed to un-register tty driver, errno=%d,%d\n", -i, -j); |
j | 609 | drivers/char/stallion.c | for (j = 0; (j < STL_MAXPANELS); j++) { |
j | 610 | drivers/char/stallion.c | panelp = brdp->panels[j]; |
j | 2475 | drivers/char/stallion.c | int i, j; |
j | 2502 | drivers/char/stallion.c | for (j = 0; (j < CCR_MAXWAIT); j++) { |
j | 2506 | drivers/char/stallion.c | if ((j >= CCR_MAXWAIT) || (gfrcr < 0x40) || (gfrcr > 0x60)) { |
j | 206 | drivers/char/tga.c | int i, j; |
j | 213 | drivers/char/tga.c | j = color_table[i]; |
j | 214 | drivers/char/tga.c | TGA_WRITE_REG(default_red[j]|(BT485_DATA_PAL<<8),TGA_RAMDAC_REG); |
j | 215 | drivers/char/tga.c | TGA_WRITE_REG(default_grn[j]|(BT485_DATA_PAL<<8),TGA_RAMDAC_REG); |
j | 216 | drivers/char/tga.c | TGA_WRITE_REG(default_blu[j]|(BT485_DATA_PAL<<8),TGA_RAMDAC_REG); |
j | 223 | drivers/char/tga.c | j = color_table[i]; |
j | 224 | drivers/char/tga.c | TGA_WRITE_REG(default_red[j]|(BT463_PALETTE<<10), TGA_RAMDAC_REG); |
j | 225 | drivers/char/tga.c | TGA_WRITE_REG(default_grn[j]|(BT463_PALETTE<<10), TGA_RAMDAC_REG); |
j | 226 | drivers/char/tga.c | TGA_WRITE_REG(default_blu[j]|(BT463_PALETTE<<10), TGA_RAMDAC_REG); |
j | 406 | drivers/char/tga.c | int j, k ; |
j | 407 | drivers/char/tga.c | for (j=k=0; j<16; j++) { |
j | 408 | drivers/char/tga.c | vc_cons[i].d->vc_palette[k++] = default_red[j]; |
j | 409 | drivers/char/tga.c | vc_cons[i].d->vc_palette[k++] = default_grn[j]; |
j | 410 | drivers/char/tga.c | vc_cons[i].d->vc_palette[k++] = default_blu[j]; |
j | 528 | drivers/char/tga.c | int i, j, temp; |
j | 555 | drivers/char/tga.c | for (j = 0; j <= 7; j++) { |
j | 556 | drivers/char/tga.c | temp = (PLLbits[i] >> (7-j)) & 1; |
j | 557 | drivers/char/tga.c | if (i == 6 && j == 7) |
j | 590 | drivers/char/tga.c | j = color_table[i]; |
j | 591 | drivers/char/tga.c | TGA_WRITE_REG(default_red[j]|(BT485_DATA_PAL<<8), |
j | 593 | drivers/char/tga.c | TGA_WRITE_REG(default_grn[j]|(BT485_DATA_PAL<<8), |
j | 595 | drivers/char/tga.c | TGA_WRITE_REG(default_blu[j]|(BT485_DATA_PAL<<8), |
j | 664 | drivers/char/tga.c | j = color_table[i]; |
j | 665 | drivers/char/tga.c | TGA_WRITE_REG(default_red[j]|(BT463_PALETTE<<10), |
j | 667 | drivers/char/tga.c | TGA_WRITE_REG(default_grn[j]|(BT463_PALETTE<<10), |
j | 669 | drivers/char/tga.c | TGA_WRITE_REG(default_blu[j]|(BT463_PALETTE<<10), |
j | 745 | drivers/char/tga.c | register int i, j; |
j | 750 | drivers/char/tga.c | for (j = 0; j < tga_fb_stride; j++) { |
j | 751 | drivers/char/tga.c | writel(0, (dst+j)); |
j | 795 | drivers/char/tga.c | register int i, j, stride; |
j | 833 | drivers/char/tga.c | for ( j = 0; j < TGA_F_HEIGHT_PADDED; j++ ) { |
j | 834 | drivers/char/tga.c | if (j < TGA_F_HEIGHT) { |
j | 835 | drivers/char/tga.c | rowbits = font_row[j]; |
j | 839 | drivers/char/tga.c | rowbits = font_row[j-(TGA_F_HEIGHT_PADDED-TGA_F_HEIGHT)]; |
j | 871 | drivers/char/tga.c | for (j = 0; j < TGA_F_WIDTH; j++, data >>= 1) { |
j | 873 | drivers/char/tga.c | writel(fgmask, (dst+j)); |
j | 875 | drivers/char/tga.c | writel(bgmask, (dst+j)); |
j | 70 | drivers/char/vga.c | int i, j ; |
j | 76 | drivers/char/vga.c | for (i=j=0; i<16; i++) { |
j | 78 | drivers/char/vga.c | outb_p (vc_cons[fg_console].d->vc_palette[j++]>>2, dac_val) ; |
j | 79 | drivers/char/vga.c | outb_p (vc_cons[fg_console].d->vc_palette[j++]>>2, dac_val) ; |
j | 80 | drivers/char/vga.c | outb_p (vc_cons[fg_console].d->vc_palette[j++]>>2, dac_val) ; |
j | 560 | drivers/char/vga.c | int j, k ; |
j | 561 | drivers/char/vga.c | for (j=k=0; j<16; j++) { |
j | 562 | drivers/char/vga.c | vc_cons[i].d->vc_palette[k++] = default_red[j]; |
j | 563 | drivers/char/vga.c | vc_cons[i].d->vc_palette[k++] = default_grn[j]; |
j | 564 | drivers/char/vga.c | vc_cons[i].d->vc_palette[k++] = default_blu[j]; |
j | 479 | drivers/char/vt.c | int j; |
j | 490 | drivers/char/vt.c | for (j = 1; j < NR_KEYS; j++) |
j | 491 | drivers/char/vt.c | key_map[j] = U(K_HOLE); |
j | 537 | drivers/char/vt.c | int j, k, sz; |
j | 551 | drivers/char/vt.c | for (j = i+1; j < MAX_NR_FUNC && !func_table[j]; j++) ; |
j | 552 | drivers/char/vt.c | if (j < MAX_NR_FUNC) |
j | 553 | drivers/char/vt.c | fj = func_table[j]; |
j | 565 | drivers/char/vt.c | if (j < MAX_NR_FUNC) { |
j | 567 | drivers/char/vt.c | for (k = j; k < MAX_NR_FUNC; k++) |
j | 586 | drivers/char/vt.c | for (k = 0; k < j; k++) |
j | 592 | drivers/char/vt.c | for (k = j; k < MAX_NR_FUNC; k++) |
j | 1641 | drivers/isdn/isdn_common.c | int n, j, k; |
j | 1726 | drivers/isdn/isdn_common.c | for (j = 0; j < n; j++) |
j | 1729 | drivers/isdn/isdn_common.c | dev->chanmap[k] = j; |
j | 519 | drivers/isdn/isdn_ppp.c | int i, j; |
j | 532 | drivers/isdn/isdn_ppp.c | for (j = 0; j < NUM_RCV_BUFFS; j++) { |
j | 533 | drivers/isdn/isdn_ppp.c | ippp_table[i].rq[j].buf = NULL; |
j | 534 | drivers/isdn/isdn_ppp.c | ippp_table[i].rq[j].last = ippp_table[i].rq + |
j | 535 | drivers/isdn/isdn_ppp.c | (NUM_RCV_BUFFS + j - 1) % NUM_RCV_BUFFS; |
j | 536 | drivers/isdn/isdn_ppp.c | ippp_table[i].rq[j].next = ippp_table[i].rq + (j + 1) % NUM_RCV_BUFFS; |
j | 54 | drivers/isdn/teles/mod.c | int i, j, argc; |
j | 59 | drivers/isdn/teles/mod.c | j = 1; |
j | 62 | drivers/isdn/teles/mod.c | io[i].iobase = ints[j]; |
j | 63 | drivers/isdn/teles/mod.c | j++; argc--; |
j | 66 | drivers/isdn/teles/mod.c | io[i].interrupt = ints[j]; |
j | 67 | drivers/isdn/teles/mod.c | j++; argc--; |
j | 70 | drivers/isdn/teles/mod.c | io[i].membase = (byte *)ints[j]; |
j | 71 | drivers/isdn/teles/mod.c | j++; argc--; |
j | 74 | drivers/isdn/teles/mod.c | io[i].protocol = ints[j]; |
j | 75 | drivers/isdn/teles/mod.c | j++; argc--; |
j | 417 | drivers/net/3c505.c | int i, j; |
j | 456 | drivers/net/3c505.c | j = 0; |
j | 457 | drivers/net/3c505.c | while (((stat = get_status(dev->base_addr))&ACRF) == 0 && j++ < 20000) |
j | 462 | drivers/net/3c505.c | } while ((stat & ASF_PCB_MASK) != ASF_PCB_END && j < 20000); |
j | 464 | drivers/net/3c505.c | if (j >= 20000) { |
j | 723 | drivers/net/3c59x.c | int j; |
j | 725 | drivers/net/3c59x.c | for (j = 20; j >= 0 ; j--) |
j | 963 | drivers/net/de4x5.c | int i, j, status = 0; |
j | 1017 | drivers/net/de4x5.c | for (j=0, i=0;(i<500) && (j==0);i++) { /* Upto 500ms delay */ |
j | 1019 | drivers/net/de4x5.c | if (lp->tx_ring[lp->tx_new].status >= 0) j=1; |
j | 1023 | drivers/net/de4x5.c | if (j == 0) { |
j | 1456 | drivers/net/de4x5.c | int i, j, bit, byte; |
j | 1476 | drivers/net/de4x5.c | for (bit = *addrs++,j=0;j<8;j++, bit>>=1) { |
j | 1493 | drivers/net/de4x5.c | for (j=0; j<dev->mc_count; j++) { |
j | 2858 | drivers/net/de4x5.c | u_short j,chksum; |
j | 2862 | drivers/net/de4x5.c | for (i=0,k=0,j=0;j<3;j++) { |
j | 3137 | drivers/net/de4x5.c | u32 j; |
j | 3139 | drivers/net/de4x5.c | j = (data & 1) << 17; |
j | 3140 | drivers/net/de4x5.c | outl(command | j, ioaddr); |
j | 3142 | drivers/net/de4x5.c | outl(command | MII_MDC | j, ioaddr); |
j | 3209 | drivers/net/de4x5.c | int i, j, k, limit=sizeof(phy_info)/sizeof(struct phy_table); |
j | 3223 | drivers/net/de4x5.c | for (j=0; j<limit; j++) { /* Search PHY table */ |
j | 3224 | drivers/net/de4x5.c | if (id != phy_info[j].id) continue; /* ID match? */ |
j | 3228 | drivers/net/de4x5.c | (char *)&phy_info[j], sizeof(struct phy_table)); |
j | 3233 | drivers/net/de4x5.c | j = limit; |
j | 3508 | drivers/net/de4x5.c | int i, j, status = 0; |
j | 3662 | drivers/net/de4x5.c | j = 0; |
j | 3663 | drivers/net/de4x5.c | tmp.lval[0] = inl(DE4X5_STS); j+=4; |
j | 3664 | drivers/net/de4x5.c | tmp.lval[1] = inl(DE4X5_BMR); j+=4; |
j | 3665 | drivers/net/de4x5.c | tmp.lval[2] = inl(DE4X5_IMR); j+=4; |
j | 3666 | drivers/net/de4x5.c | tmp.lval[3] = inl(DE4X5_OMR); j+=4; |
j | 3667 | drivers/net/de4x5.c | tmp.lval[4] = inl(DE4X5_SISR); j+=4; |
j | 3668 | drivers/net/de4x5.c | tmp.lval[5] = inl(DE4X5_SICR); j+=4; |
j | 3669 | drivers/net/de4x5.c | tmp.lval[6] = inl(DE4X5_STRR); j+=4; |
j | 3670 | drivers/net/de4x5.c | tmp.lval[7] = inl(DE4X5_SIGR); j+=4; |
j | 3671 | drivers/net/de4x5.c | ioc->len = j; |
j | 3680 | drivers/net/de4x5.c | j = 0; |
j | 3681 | drivers/net/de4x5.c | tmp.addr[j++] = dev->irq; |
j | 3683 | drivers/net/de4x5.c | tmp.addr[j++] = dev->dev_addr[i]; |
j | 3685 | drivers/net/de4x5.c | tmp.addr[j++] = lp->rxRingSize; |
j | 3686 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)lp->rx_ring; j+=4; |
j | 3687 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)lp->tx_ring; j+=4; |
j | 3691 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->rx_ring[i].status; j+=4; |
j | 3694 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->rx_ring[i].status; j+=4; |
j | 3697 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->tx_ring[i].status; j+=4; |
j | 3700 | drivers/net/de4x5.c | tmp.lval[j>>2] = (long)&lp->tx_ring[i].status; j+=4; |
j | 3704 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->rx_ring[i].buf; j+=4; |
j | 3707 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->rx_ring[i].buf; j+=4; |
j | 3710 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->tx_ring[i].buf; j+=4; |
j | 3713 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->tx_ring[i].buf; j+=4; |
j | 3716 | drivers/net/de4x5.c | tmp.lval[j>>2] = lp->rx_ring[i].status; j+=4; |
j | 3719 | drivers/net/de4x5.c | tmp.lval[j>>2] = lp->tx_ring[i].status; j+=4; |
j | 3722 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_BMR); j+=4; |
j | 3723 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_TPD); j+=4; |
j | 3724 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_RPD); j+=4; |
j | 3725 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_RRBA); j+=4; |
j | 3726 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_TRBA); j+=4; |
j | 3727 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_STS); j+=4; |
j | 3728 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_OMR); j+=4; |
j | 3729 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_IMR); j+=4; |
j | 3730 | drivers/net/de4x5.c | tmp.lval[j>>2] = lp->chipset; j+=4; |
j | 3732 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_GEP); j+=4; |
j | 3734 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_SISR); j+=4; |
j | 3735 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_SICR); j+=4; |
j | 3736 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_STRR); j+=4; |
j | 3737 | drivers/net/de4x5.c | tmp.lval[j>>2] = inl(DE4X5_SIGR); j+=4; |
j | 3739 | drivers/net/de4x5.c | tmp.lval[j>>2] = lp->phy[lp->active].id; j+=4; |
j | 3741 | drivers/net/de4x5.c | tmp.lval[j>>2] = lp->active; j+=4; |
j | 3742 | drivers/net/de4x5.c | tmp.lval[j>>2]=mii_rd(MII_CR,lp->phy[lp->active].addr,DE4X5_MII); j+=4; |
j | 3743 | drivers/net/de4x5.c | tmp.lval[j>>2]=mii_rd(MII_SR,lp->phy[lp->active].addr,DE4X5_MII); j+=4; |
j | 3744 | drivers/net/de4x5.c | tmp.lval[j>>2]=mii_rd(MII_ID0,lp->phy[lp->active].addr,DE4X5_MII); j+=4; |
j | 3745 | drivers/net/de4x5.c | tmp.lval[j>>2]=mii_rd(MII_ID1,lp->phy[lp->active].addr,DE4X5_MII); j+=4; |
j | 3747 | drivers/net/de4x5.c | tmp.lval[j>>2]=mii_rd(MII_ANA,lp->phy[lp->active].addr,DE4X5_MII); j+=4; |
j | 3748 | drivers/net/de4x5.c | tmp.lval[j>>2]=mii_rd(MII_ANLPA,lp->phy[lp->active].addr,DE4X5_MII); j+=4; |
j | 3750 | drivers/net/de4x5.c | tmp.lval[j>>2]=mii_rd(0x10,lp->phy[lp->active].addr,DE4X5_MII); j+=4; |
j | 3752 | drivers/net/de4x5.c | tmp.lval[j>>2]=mii_rd(0x11,lp->phy[lp->active].addr,DE4X5_MII); j+=4; |
j | 3753 | drivers/net/de4x5.c | tmp.lval[j>>2]=mii_rd(0x12,lp->phy[lp->active].addr,DE4X5_MII); j+=4; |
j | 3755 | drivers/net/de4x5.c | tmp.lval[j>>2]=mii_rd(0x14,lp->phy[lp->active].addr,DE4X5_MII); j+=4; |
j | 3759 | drivers/net/de4x5.c | tmp.addr[j++] = lp->txRingSize; |
j | 3760 | drivers/net/de4x5.c | tmp.addr[j++] = dev->tbusy; |
j | 3762 | drivers/net/de4x5.c | ioc->len = j; |
j | 473 | drivers/net/depca.c | int i, j, offset, netRAM, mem_len, status=0; |
j | 573 | drivers/net/depca.c | for (i=0, j = lp->rxRingMask; j>0; i++) { |
j | 574 | drivers/net/depca.c | j >>= 1; |
j | 577 | drivers/net/depca.c | for (i=0, j = lp->txRingMask; j>0; i++) { |
j | 578 | drivers/net/depca.c | j >>= 1; |
j | 1169 | drivers/net/depca.c | int i, j, bit, byte; |
j | 1189 | drivers/net/depca.c | for (bit = *addrs++,j=0;j<8;j++, bit>>=1) { |
j | 1194 | drivers/net/depca.c | for (j=0;j<5;j++) { /* ... in reverse order. */ |
j | 1407 | drivers/net/depca.c | u_int i,j,k; |
j | 1417 | drivers/net/depca.c | for (j=0,k=0;j<16 && k<strlen(signatures[i]);j++) { |
j | 1418 | drivers/net/depca.c | if (signatures[i][k] == tmpstr[j]) { /* track signature */ |
j | 1461 | drivers/net/depca.c | int i, j, status = 0; |
j | 1476 | drivers/net/depca.c | for (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) { |
j | 1478 | drivers/net/depca.c | if (dev.Sig[j] == data) { /* track signature */ |
j | 1479 | drivers/net/depca.c | j++; |
j | 1482 | drivers/net/depca.c | j=1; |
j | 1484 | drivers/net/depca.c | j=0; |
j | 1489 | drivers/net/depca.c | if (j!=sigLength) { |
j | 1505 | drivers/net/depca.c | u_short j, x, chksum; |
j | 1509 | drivers/net/depca.c | for (i=0,k=0,j=0;j<3;j++) { |
j | 1214 | drivers/net/ewrk3.c | char *addrs, j, bit, byte; |
j | 1260 | drivers/net/ewrk3.c | for (bit = *addrs++,j=0;j<8;j++, bit>>=1) { |
j | 1517 | drivers/net/ewrk3.c | u_long i,j,k; |
j | 1522 | drivers/net/ewrk3.c | for (j=EEPROM_PNAME7,k=0;j<=EEPROM_PNAME0 && k<strlen(signatures[i]);j++) { |
j | 1523 | drivers/net/ewrk3.c | if (signatures[i][k] == eeprom_image[j]) { /* track signature */ |
j | 1563 | drivers/net/ewrk3.c | int i, j, status = 0; |
j | 1569 | drivers/net/ewrk3.c | for (i=0,j=0;j<sigLength && i<PROBE_LENGTH+sigLength-1;i++) { |
j | 1571 | drivers/net/ewrk3.c | if (dev.Sig[j] == data) { /* track signature */ |
j | 1572 | drivers/net/ewrk3.c | j++; |
j | 1575 | drivers/net/ewrk3.c | j=1; |
j | 1577 | drivers/net/ewrk3.c | j=0; |
j | 1582 | drivers/net/ewrk3.c | if (j!=sigLength) { |
j | 1591 | drivers/net/ewrk3.c | int i, j, k; |
j | 1598 | drivers/net/ewrk3.c | for (crc=0x6a, j=0; j<ETH_ALEN; j++) { |
j | 1599 | drivers/net/ewrk3.c | sd = dev->dev_addr[j] = eeprom_image[EEPROM_PADDR0 + j]; |
j | 1600 | drivers/net/ewrk3.c | outb(dev->dev_addr[j], EWRK3_PAR0 + j); |
j | 1677 | drivers/net/ewrk3.c | int i, j, status = 0; |
j | 1835 | drivers/net/ewrk3.c | for (j=0;j<ETH_ALEN;j++) { |
j | 1836 | drivers/net/ewrk3.c | tmp.addr[i++] = inb(EWRK3_PAR0 + j); |
j | 185 | drivers/net/ibmtr.c | short i, j; |
j | 186 | drivers/net/ibmtr.c | for (i=0, j=0; i<24; i++, j+=stride) |
j | 187 | drivers/net/ibmtr.c | printk("%1x", ((int) pcid[j]) & 0x0f); |
j | 193 | drivers/net/ibmtr.c | short i, j; |
j | 194 | drivers/net/ibmtr.c | for (i=0, j=0; i<24; i++, j+=stride) |
j | 195 | drivers/net/ibmtr.c | printk("%1x", ((int)readb(pcid + j)) & 0x0f); |
j | 212 | drivers/net/ibmtr.c | unsigned char segment=0, intr=0, irq=0, i=0, j=0, cardpresent=NOTOK,temp=0; |
j | 283 | drivers/net/ibmtr.c | for (i=2,j=1; i<=46; i=i+2,j++) { |
j | 284 | drivers/net/ibmtr.c | if ((readb(cd_chanid+i) & 0x0f) != tchanid[j]) { |
j | 386 | drivers/net/ibmtr.c | j=0; |
j | 391 | drivers/net/ibmtr.c | printk("%1X",ti->hw_address[j]=temp); |
j | 393 | drivers/net/ibmtr.c | ti->hw_address[j]=temp; |
j | 395 | drivers/net/ibmtr.c | if(j&1) |
j | 396 | drivers/net/ibmtr.c | dev->dev_addr[(j/2)]=ti->hw_address[j]+(ti->hw_address[j-1]<<4); |
j | 397 | drivers/net/ibmtr.c | ++j; |
j | 139 | drivers/net/seeq8005.c | int i,j; |
j | 192 | drivers/net/seeq8005.c | j=0; |
j | 194 | drivers/net/seeq8005.c | j+= SA_prom[i] = inw(SEEQ_BUFFER) & 0xff; |
j | 199 | drivers/net/seeq8005.c | if ( (j&0xff) != 0 ) { /* checksum appears to be 8bit = 0 */ |
j | 218 | drivers/net/seeq8005.c | printk("seeq8005: prom sum = 0x%08x\n",j); |
j | 219 | drivers/net/seeq8005.c | for(j=0; j<32; j+=16) { |
j | 220 | drivers/net/seeq8005.c | printk("seeq8005: prom %02x: ",j); |
j | 222 | drivers/net/seeq8005.c | printk("%02x ",SA_prom[j|i]); |
j | 226 | drivers/net/seeq8005.c | if ((SA_prom[j|i]>31)&&(SA_prom[j|i]<127)) { |
j | 227 | drivers/net/seeq8005.c | printk("%c", SA_prom[j|i]); |
j | 250 | drivers/net/seeq8005.c | j=jiffies+HZ; |
j | 251 | drivers/net/seeq8005.c | while ( ((inw(SEEQ_STATUS) & SEEQSTAT_FIFO_EMPTY) != SEEQSTAT_FIFO_EMPTY) && jiffies < j ) |
j | 254 | drivers/net/seeq8005.c | while ( ((inw(SEEQ_STATUS) & SEEQSTAT_WINDOW_INT) != SEEQSTAT_WINDOW_INT) && jiffies < j+HZ) |
j | 259 | drivers/net/seeq8005.c | j=0; |
j | 262 | drivers/net/seeq8005.c | j++; |
j | 264 | drivers/net/seeq8005.c | if (j) { |
j | 265 | drivers/net/seeq8005.c | printk("%i\n",j); |
j | 635 | drivers/net/sk_g16.c | int i,j; /* Counters */ |
j | 755 | drivers/net/sk_g16.c | for (i = 0, j = 0; i < ETH_ALEN; i++, j+=2) |
j | 757 | drivers/net/sk_g16.c | dev->dev_addr[i] = board->rom[j]; |
j | 1774 | drivers/net/sk_g16.c | int i,j; |
j | 1789 | drivers/net/sk_g16.c | for (j = 0; j < 6; j++) |
j | 1791 | drivers/net/sk_g16.c | test_byte = (unsigned char *) (rom_location[i]+j); |
j | 1794 | drivers/net/sk_g16.c | if(!(*test_byte == rom_id[j])) |
j | 388 | drivers/net/sunlance.c | int i, j; |
j | 394 | drivers/net/sunlance.c | j = lp->tx_old; |
j | 396 | drivers/net/sunlance.c | td = &ib->btx_ring [j]; |
j | 422 | drivers/net/sunlance.c | j = (j + 1) & TX_RING_MOD_MASK; |
j | 778 | drivers/scsi/53c7,8xx.c | int i, j; |
j | 782 | drivers/scsi/53c7,8xx.c | for (j = 0; j < 8; ++j) |
j | 783 | drivers/scsi/53c7,8xx.c | hostdata->busy[i][j] = 0; |
j | 3211 | drivers/scsi/53c7,8xx.c | int i, j, error, len; |
j | 3240 | drivers/scsi/53c7,8xx.c | for (ptr = input_buf + len, j = 0; j < debugger_tokens[i].nargs && *ptr;) { |
j | 3244 | drivers/scsi/53c7,8xx.c | args[j++] = simple_strtoul (ptr, &ptr, 0); |
j | 3250 | drivers/scsi/53c7,8xx.c | if (j != debugger_tokens[i].nargs) |
j | 593 | drivers/scsi/AM53C974.c | int i, j; |
j | 636 | drivers/scsi/AM53C974.c | j = overrides[i].target_scsi_id; |
j | 637 | drivers/scsi/AM53C974.c | hostdata->sync_en[j] = 1; |
j | 638 | drivers/scsi/AM53C974.c | hostdata->max_rate[j] = overrides[i].max_rate; |
j | 639 | drivers/scsi/AM53C974.c | hostdata->max_offset[j] = overrides[i].max_offset; |
j | 1553 | drivers/scsi/AM53C974.c | int j; |
j | 1738 | drivers/scsi/AM53C974.c | for (j = 0; j < extended_msg[1] + 2; j++) { |
j | 1739 | drivers/scsi/AM53C974.c | printk("0x%02x ", extended_msg[j]); |
j | 1740 | drivers/scsi/AM53C974.c | if (j && !(j % 16)) printk("\n"); } |
j | 4927 | drivers/scsi/advansys.c | int j; |
j | 4943 | drivers/scsi/advansys.c | for (j = 0; j < k; j++) { |
j | 4945 | drivers/scsi/advansys.c | (unsigned) s[i+(j*4)], (unsigned) s[i+(j*4)+1], |
j | 4946 | drivers/scsi/advansys.c | (unsigned) s[i+(j*4)+2], (unsigned) s[i+(j*4)+3]); |
j | 4955 | drivers/scsi/advansys.c | (unsigned) s[i+(j*4)+4]); |
j | 4959 | drivers/scsi/advansys.c | (unsigned) s[i+(j*4)+4], |
j | 4960 | drivers/scsi/advansys.c | (unsigned) s[i+(j*4)+5]); |
j | 4964 | drivers/scsi/advansys.c | (unsigned) s[i+(j*4)+4], |
j | 4965 | drivers/scsi/advansys.c | (unsigned) s[i+(j*4)+5], |
j | 4966 | drivers/scsi/advansys.c | (unsigned) s[i+(j*4)+6]); |
j | 654 | drivers/scsi/aha152x.c | int i, j, ok; |
j | 728 | drivers/scsi/aha152x.c | for(j=0; (j < SIGNATURE_COUNT) && !ok; j++) |
j | 729 | drivers/scsi/aha152x.c | ok=!memcmp((void *) addresses[i]+signatures[j].sig_offset, |
j | 730 | drivers/scsi/aha152x.c | (void *) signatures[j].signature, |
j | 731 | drivers/scsi/aha152x.c | (int) signatures[j].sig_length); |
j | 802 | drivers/scsi/aha152x.c | for(j=0; j<8; j++) |
j | 803 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->syncrate[j] = 0; |
j | 368 | drivers/scsi/eata.c | static inline int port_detect(ushort *port_base, unsigned int j, |
j | 380 | drivers/scsi/eata.c | sprintf(name, "%s%d", driver_name, j); |
j | 479 | drivers/scsi/eata.c | sh[j] = scsi_register(tpnt, sizeof(struct hostdata)); |
j | 481 | drivers/scsi/eata.c | if (sh[j] == NULL) { |
j | 491 | drivers/scsi/eata.c | sh[j]->io_port = *port_base; |
j | 492 | drivers/scsi/eata.c | sh[j]->n_io_port = REGION_SIZE; |
j | 493 | drivers/scsi/eata.c | sh[j]->dma_channel = dma_channel; |
j | 494 | drivers/scsi/eata.c | sh[j]->irq = irq; |
j | 495 | drivers/scsi/eata.c | sh[j]->sg_tablesize = (ushort) ntohs(info.scatt_size); |
j | 496 | drivers/scsi/eata.c | sh[j]->this_id = (ushort) info.host_addr[3]; |
j | 497 | drivers/scsi/eata.c | sh[j]->can_queue = (ushort) ntohs(info.queue_size); |
j | 498 | drivers/scsi/eata.c | sh[j]->cmd_per_lun = MAX_CMD_PER_LUN; |
j | 501 | drivers/scsi/eata.c | request_region(sh[j]->io_port, REGION_SIZE, driver_name); |
j | 503 | drivers/scsi/eata.c | memset(HD(j), 0, sizeof(struct hostdata)); |
j | 504 | drivers/scsi/eata.c | HD(j)->subversion = subversion; |
j | 505 | drivers/scsi/eata.c | HD(j)->protocol_rev = protocol_rev; |
j | 506 | drivers/scsi/eata.c | HD(j)->board_number = j; |
j | 507 | drivers/scsi/eata.c | irqlist[irq] = j; |
j | 509 | drivers/scsi/eata.c | if (HD(j)->subversion == ESA) |
j | 510 | drivers/scsi/eata.c | sh[j]->unchecked_isa_dma = FALSE; |
j | 512 | drivers/scsi/eata.c | sh[j]->wish_block = TRUE; |
j | 513 | drivers/scsi/eata.c | sh[j]->unchecked_isa_dma = TRUE; |
j | 520 | drivers/scsi/eata.c | strcpy(BN(j), name); |
j | 523 | drivers/scsi/eata.c | "Mbox %d, CmdLun %d.\n", BN(j), HD(j)->protocol_rev, board_status, |
j | 524 | drivers/scsi/eata.c | sh[j]->this_id, sh[j]->io_port, sh[j]->irq, sh[j]->dma_channel, |
j | 525 | drivers/scsi/eata.c | sh[j]->sg_tablesize, sh[j]->can_queue, sh[j]->cmd_per_lun); |
j | 528 | drivers/scsi/eata.c | if (sh[j]->sg_tablesize > MAX_SGLIST || sh[j]->sg_tablesize < 2) { |
j | 529 | drivers/scsi/eata.c | printk("%s: detect, forcing to use %d SG lists.\n", BN(j), MAX_SGLIST); |
j | 530 | drivers/scsi/eata.c | sh[j]->sg_tablesize = MAX_SGLIST; |
j | 534 | drivers/scsi/eata.c | if (sh[j]->can_queue > MAX_MAILBOXES || sh[j]->can_queue < 2) { |
j | 535 | drivers/scsi/eata.c | printk("%s: detect, forcing to use %d Mbox.\n", BN(j), MAX_MAILBOXES); |
j | 536 | drivers/scsi/eata.c | sh[j]->can_queue = MAX_MAILBOXES; |
j | 554 | drivers/scsi/eata.c | unsigned int j = 0, k, flags; |
j | 578 | drivers/scsi/eata.c | if (j < MAX_BOARDS && port_detect(port_base, j, tpnt)) j++; |
j | 583 | drivers/scsi/eata.c | if (j > 0) |
j | 587 | drivers/scsi/eata.c | return j; |
j | 606 | drivers/scsi/eata.c | unsigned int i, j, k, flags; |
j | 619 | drivers/scsi/eata.c | j = ((struct hostdata *) SCpnt->host->hostdata)->board_number; |
j | 621 | drivers/scsi/eata.c | if (!done) panic("%s: qcomm, pid %ld, null done.\n", BN(j), SCpnt->pid); |
j | 625 | drivers/scsi/eata.c | i = HD(j)->last_cp_used + 1; |
j | 627 | drivers/scsi/eata.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
j | 629 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) i = 0; |
j | 631 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) { |
j | 632 | drivers/scsi/eata.c | HD(j)->last_cp_used = i; |
j | 637 | drivers/scsi/eata.c | if (k == sh[j]->can_queue) { |
j | 638 | drivers/scsi/eata.c | printk("%s: qcomm, no free mailbox, resetting.\n", BN(j)); |
j | 640 | drivers/scsi/eata.c | if (HD(j)->in_reset) |
j | 641 | drivers/scsi/eata.c | printk("%s: qcomm, already in reset.\n", BN(j)); |
j | 643 | drivers/scsi/eata.c | panic("%s: qcomm, SCSI_RESET_SUCCESS.\n", BN(j)); |
j | 647 | drivers/scsi/eata.c | printk("%s: qcomm, pid %ld, DID_BUS_BUSY, done.\n", BN(j), SCpnt->pid); |
j | 654 | drivers/scsi/eata.c | cpp = &HD(j)->cp[i]; |
j | 659 | drivers/scsi/eata.c | spp = &HD(j)->sp[i]; |
j | 671 | drivers/scsi/eata.c | BN(j), i, SCpnt->target, SCpnt->pid); |
j | 701 | drivers/scsi/eata.c | if (do_dma(sh[j]->io_port, (unsigned int) cpp, SEND_CP_DMA)) { |
j | 705 | drivers/scsi/eata.c | BN(j), SCpnt->target, SCpnt->pid); |
j | 711 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = IN_USE; |
j | 717 | drivers/scsi/eata.c | unsigned int i, j, flags; |
j | 721 | drivers/scsi/eata.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
j | 725 | drivers/scsi/eata.c | BN(j), SCarg->target, SCarg->pid); |
j | 732 | drivers/scsi/eata.c | BN(j), i, SCarg->target, SCarg->pid); |
j | 734 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) |
j | 735 | drivers/scsi/eata.c | panic("%s: abort, invalid SCarg->host_scribble.\n", BN(j)); |
j | 737 | drivers/scsi/eata.c | if (wait_on_busy(sh[j]->io_port)) { |
j | 738 | drivers/scsi/eata.c | printk("%s: abort, timeout error.\n", BN(j)); |
j | 743 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) { |
j | 744 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is free.\n", BN(j), i); |
j | 749 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IN_USE) { |
j | 750 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is in use.\n", BN(j), i); |
j | 752 | drivers/scsi/eata.c | if (SCarg != HD(j)->cp[i].SCpnt) |
j | 754 | drivers/scsi/eata.c | BN(j), i, SCarg, HD(j)->cp[i].SCpnt); |
j | 760 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IN_RESET) { |
j | 761 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is in reset.\n", BN(j), i); |
j | 766 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
j | 767 | drivers/scsi/eata.c | printk("%s: abort, mbox %d is locked.\n", BN(j), i); |
j | 772 | drivers/scsi/eata.c | panic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i); |
j | 776 | drivers/scsi/eata.c | unsigned int i, j, flags, time, k, limit = 0; |
j | 782 | drivers/scsi/eata.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
j | 784 | drivers/scsi/eata.c | BN(j), SCarg->target, SCarg->pid); |
j | 787 | drivers/scsi/eata.c | printk("%s: reset, pid %ld inactive.\n", BN(j), SCarg->pid); |
j | 789 | drivers/scsi/eata.c | if (HD(j)->in_reset) { |
j | 790 | drivers/scsi/eata.c | printk("%s: reset, exit, already in reset.\n", BN(j)); |
j | 795 | drivers/scsi/eata.c | if (wait_on_busy(sh[j]->io_port)) { |
j | 796 | drivers/scsi/eata.c | printk("%s: reset, exit, timeout error.\n", BN(j)); |
j | 801 | drivers/scsi/eata.c | for (k = 0; k < MAX_TARGET; k++) HD(j)->target_reset[k] = TRUE; |
j | 803 | drivers/scsi/eata.c | for (k = 0; k < MAX_TARGET; k++) HD(j)->target_time_out[k] = 0; |
j | 805 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
j | 807 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) continue; |
j | 809 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
j | 810 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
j | 811 | drivers/scsi/eata.c | printk("%s: reset, locked mbox %d forced free.\n", BN(j), i); |
j | 815 | drivers/scsi/eata.c | SCpnt = HD(j)->cp[i].SCpnt; |
j | 816 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = IN_RESET; |
j | 818 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid); |
j | 821 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, SCpnt == NULL.\n", BN(j), i); |
j | 824 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, garbled SCpnt.\n", BN(j), i); |
j | 827 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, index mismatch.\n", BN(j), i); |
j | 830 | drivers/scsi/eata.c | panic("%s: reset, mbox %d, SCpnt->scsi_done == NULL.\n", BN(j), i); |
j | 835 | drivers/scsi/eata.c | if (do_dma(sh[j]->io_port, 0, RESET_PIO)) { |
j | 836 | drivers/scsi/eata.c | printk("%s: reset, cannot reset, timeout error.\n", BN(j)); |
j | 841 | drivers/scsi/eata.c | printk("%s: reset, board reset done, enabling interrupts.\n", BN(j)); |
j | 847 | drivers/scsi/eata.c | HD(j)->in_reset = TRUE; |
j | 852 | drivers/scsi/eata.c | printk("%s: reset, interrupts disabled, loops %d.\n", BN(j), limit); |
j | 854 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
j | 857 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] != IN_RESET) continue; |
j | 859 | drivers/scsi/eata.c | SCpnt = HD(j)->cp[i].SCpnt; |
j | 864 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = LOCKED; |
j | 867 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid); |
j | 873 | drivers/scsi/eata.c | HD(j)->in_reset = FALSE; |
j | 878 | drivers/scsi/eata.c | printk("%s: reset, exit, success.\n", BN(j)); |
j | 882 | drivers/scsi/eata.c | printk("%s: reset, exit, wakeup.\n", BN(j)); |
j | 889 | drivers/scsi/eata.c | unsigned int i, j, k, flags, status, tstatus, loops, total_loops = 0; |
j | 906 | drivers/scsi/eata.c | for (j = 0; sh[j] != NULL; j++) { |
j | 908 | drivers/scsi/eata.c | if (sh[j]->irq != irq) continue; |
j | 913 | drivers/scsi/eata.c | while (inb(sh[j]->io_port + REG_AUX_STATUS) & IRQ_ASSERTED) { |
j | 918 | drivers/scsi/eata.c | BN(j), HD(j)->iocount); |
j | 921 | drivers/scsi/eata.c | inb(sh[j]->io_port + REG_STATUS); |
j | 924 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
j | 925 | drivers/scsi/eata.c | spp = &HD(j)->sp[i]; |
j | 932 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IGNORE) { |
j | 933 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
j | 936 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == LOCKED) { |
j | 937 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
j | 939 | drivers/scsi/eata.c | BN(j), i, HD(j)->iocount); |
j | 942 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == FREE) { |
j | 944 | drivers/scsi/eata.c | BN(j), i, HD(j)->iocount); |
j | 947 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == IN_RESET) |
j | 948 | drivers/scsi/eata.c | printk("%s: ihdlr, mbox %d is in reset.\n", BN(j), i); |
j | 949 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] != IN_USE) |
j | 950 | drivers/scsi/eata.c | panic("%s: ihdlr, mbox %d, invalid cp_stat.\n", BN(j), i); |
j | 952 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
j | 953 | drivers/scsi/eata.c | cpp = &HD(j)->cp[i]; |
j | 957 | drivers/scsi/eata.c | panic("%s: ihdlr, mbox %d, SCpnt == NULL.\n", BN(j), i); |
j | 961 | drivers/scsi/eata.c | BN(j), i, SCpnt, cpp->SCpnt); |
j | 965 | drivers/scsi/eata.c | BN(j), i, SCpnt->pid, SCpnt); |
j | 969 | drivers/scsi/eata.c | " irq %d.\n", BN(j), i, SCpnt->pid, |
j | 984 | drivers/scsi/eata.c | && HD(j)->target_reset[SCpnt->target]) |
j | 997 | drivers/scsi/eata.c | HD(j)->target_reset[SCpnt->target] = FALSE; |
j | 1001 | drivers/scsi/eata.c | "0x%x, sense key 0x%x.\n", BN(j), |
j | 1005 | drivers/scsi/eata.c | HD(j)->target_time_out[SCpnt->target] = 0; |
j | 1011 | drivers/scsi/eata.c | if (HD(j)->target_time_out[SCpnt->target] > 1) |
j | 1015 | drivers/scsi/eata.c | HD(j)->target_time_out[SCpnt->target]++; |
j | 1028 | drivers/scsi/eata.c | HD(j)->target_reset[k] = TRUE; |
j | 1045 | drivers/scsi/eata.c | HD(j)->iocount++; |
j | 1047 | drivers/scsi/eata.c | if (loops > 1) HD(j)->multicount++; |
j | 1052 | drivers/scsi/eata.c | if ((spp->adapter_status != ASOK && HD(j)->iocount > 1000) || |
j | 1054 | drivers/scsi/eata.c | spp->adapter_status != ASST && HD(j)->iocount <= 1000) || |
j | 1059 | drivers/scsi/eata.c | BN(j), i, spp->adapter_status, spp->target_status, |
j | 1060 | drivers/scsi/eata.c | SCpnt->target, SCpnt->lun, SCpnt->pid, HD(j)->iocount); |
j | 1086 | drivers/scsi/eata.c | for (j = 0; sh[j] != NULL; j++) |
j | 1087 | drivers/scsi/eata.c | printk("%s: ihdlr, calls %d, count %d, multi %d.\n", BN(j), |
j | 1088 | drivers/scsi/eata.c | calls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount); |
j | 912 | drivers/scsi/fdomain.c | int i, j; |
j | 948 | drivers/scsi/fdomain.c | for (j = 0; !bios_base && j < SIGNATURE_COUNT; j++) { |
j | 949 | drivers/scsi/fdomain.c | if (!memcmp( ((char *)addresses[i] + signatures[j].sig_offset), |
j | 950 | drivers/scsi/fdomain.c | signatures[j].signature, signatures[j].sig_length )) { |
j | 951 | drivers/scsi/fdomain.c | bios_major = signatures[j].major_bios_version; |
j | 952 | drivers/scsi/fdomain.c | bios_minor = signatures[j].minor_bios_version; |
j | 953 | drivers/scsi/fdomain.c | PCI_bus = (signatures[j].flag == 1); |
j | 954 | drivers/scsi/fdomain.c | Quantum = (signatures[j].flag > 1) ? signatures[j].flag : 0; |
j | 1094 | drivers/scsi/fdomain.c | for (j = 8; j < (buf[4] < 32 ? buf[4] : 32); j++) |
j | 1095 | drivers/scsi/fdomain.c | printk( "%c", buf[j] >= 20 ? buf[j] : ' ' ); |
j | 289 | drivers/scsi/hosts.c | struct Scsi_Host * scsi_register(Scsi_Host_Template * tpnt, int j){ |
j | 291 | drivers/scsi/hosts.c | retval = (struct Scsi_Host *)scsi_init_malloc(sizeof(struct Scsi_Host) + j, |
j | 292 | drivers/scsi/hosts.c | (tpnt->unchecked_isa_dma && j ? GFP_DMA : 0) | GFP_ATOMIC); |
j | 296 | drivers/scsi/hosts.c | if(j > 0xffff) panic("Too many extra bytes requested\n"); |
j | 297 | drivers/scsi/hosts.c | retval->extra_bytes = j; |
j | 317 | drivers/scsi/hosts.c | printk("Register %x %x: %d\n", (int)retval, (int)retval->hostt, j); |
j | 337 | drivers/scsi/hosts.h | extern struct Scsi_Host * scsi_register(Scsi_Host_Template *, int j); |
j | 196 | drivers/scsi/qlogic.c | int j; |
j | 197 | drivers/scsi/qlogic.c | j = 0; |
j | 207 | drivers/scsi/qlogic.c | while( reqlen >= 84 && !( j & 0xc0 ) ) /* 2/3 */ |
j | 208 | drivers/scsi/qlogic.c | if( (j=inb( qbase + 8 )) & 4 ) { |
j | 221 | drivers/scsi/qlogic.c | j = 0; |
j | 222 | drivers/scsi/qlogic.c | while( reqlen && !( (j & 0x10) && (j & 0xc0) ) ) { |
j | 224 | drivers/scsi/qlogic.c | j &= 0xc0; |
j | 225 | drivers/scsi/qlogic.c | while ( reqlen && !( (j=inb(qbase + 8)) & 0x10 ) ) { |
j | 229 | drivers/scsi/qlogic.c | if( j & 0x10 ) |
j | 230 | drivers/scsi/qlogic.c | j = inb(qbase+8); |
j | 242 | drivers/scsi/qlogic.c | while( reqlen >= 84 && !( j & 0xc0 ) ) /* 1/3 */ |
j | 243 | drivers/scsi/qlogic.c | if( !((j=inb( qbase + 8 )) & 8) ) { |
j | 256 | drivers/scsi/qlogic.c | j = 0; |
j | 257 | drivers/scsi/qlogic.c | while( reqlen && !( (j & 2) && (j & 0xc0) ) ) { |
j | 259 | drivers/scsi/qlogic.c | while ( reqlen && !( (j=inb(qbase + 8)) & 2 ) ) { |
j | 263 | drivers/scsi/qlogic.c | if( j & 2 ) |
j | 264 | drivers/scsi/qlogic.c | j = inb(qbase+8); |
j | 341 | drivers/scsi/qlogic.c | unsigned int i, j, k; |
j | 351 | drivers/scsi/qlogic.c | j = inb(qbase + 6); |
j | 362 | drivers/scsi/qlogic.c | j &= 7; /* j = inb( qbase + 7 ) >> 5; */ |
j | 367 | drivers/scsi/qlogic.c | if(j != 3 && j != 4) { |
j | 368 | drivers/scsi/qlogic.c | printk("Ql:Bad sequence for command %d, int %02X, cmdleft = %d\n", j, i, inb( qbase+7 ) & 0x1f ); |
j | 422 | drivers/scsi/qlogic.c | j = inb(qbase + 7) & 0x1f; /* and bytes rec'd */ |
j | 426 | drivers/scsi/qlogic.c | if (!((i == 8 && j == 2) || (i == 0x10 && j == 1))) { |
j | 427 | drivers/scsi/qlogic.c | printk("Ql:Error during status phase, int=%02X, %d bytes recd\n", i, j); |
j | 538 | drivers/scsi/qlogic.c | int i, j; /* these are only used by IRQ detect */ |
j | 590 | drivers/scsi/qlogic.c | j = 3; |
j | 595 | drivers/scsi/qlogic.c | while (j--) { |
j | 603 | drivers/scsi/qlogic.c | j = -1; |
j | 605 | drivers/scsi/qlogic.c | i >>= 1, j++; /* should check for exactly 1 on */ |
j | 606 | drivers/scsi/qlogic.c | qlirq = j; |
j | 2217 | drivers/scsi/scsi.c | int i, j; |
j | 2227 | drivers/scsi/scsi.c | for(j=0; j<=SECTORS_PER_PAGE - nbits; j++){ |
j | 2228 | drivers/scsi/scsi.c | if ((dma_malloc_freelist[i] & (mask << j)) == 0){ |
j | 2229 | drivers/scsi/scsi.c | dma_malloc_freelist[i] |= (mask << j); |
j | 2233 | drivers/scsi/scsi.c | printk("SMalloc: %d %p\n",len, dma_malloc_pages[i] + (j << 9)); |
j | 2235 | drivers/scsi/scsi.c | return (void *) ((unsigned long) dma_malloc_pages[i] + (j << 9)); |
j | 2325 | drivers/scsi/scsi.c | int j; |
j | 2329 | drivers/scsi/scsi.c | for(j=0;j<SDpnt->host->cmd_per_lun;j++){ |
j | 565 | drivers/scsi/scsi_debug.c | int j; |
j | 572 | drivers/scsi/scsi_debug.c | for(j=0;j<SCSI_DEBUG_MAILBOXES; j++) { |
j | 573 | drivers/scsi/scsi_debug.c | if(SCpnt == SCint[j]) { |
j | 574 | drivers/scsi/scsi_debug.c | my_done = do_done[j]; |
j | 578 | drivers/scsi/scsi_debug.c | timeout[j] = 0; |
j | 579 | drivers/scsi/scsi_debug.c | SCint[j] = NULL; |
j | 580 | drivers/scsi/scsi_debug.c | do_done[j] = NULL; |
j | 288 | drivers/scsi/seagate.c | int i,j; |
j | 334 | drivers/scsi/seagate.c | for (j = 0; !base_address && j < NUM_SIGNATURES; ++j) |
j | 336 | drivers/scsi/seagate.c | signatures[j].offset), (const void *) signatures[j].signature, |
j | 337 | drivers/scsi/seagate.c | signatures[j].length)) { |
j | 339 | drivers/scsi/seagate.c | controller_type = signatures[j].type; |
j | 302 | drivers/scsi/u14-34f.c | static int board_inquiry(unsigned int j) { |
j | 306 | drivers/scsi/u14-34f.c | cpp = &HD(j)->cp[0]; |
j | 310 | drivers/scsi/u14-34f.c | cpp->data_address = (unsigned int) HD(j)->board_id; |
j | 311 | drivers/scsi/u14-34f.c | cpp->data_len = sizeof(HD(j)->board_id); |
j | 315 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
j | 316 | drivers/scsi/u14-34f.c | printk("%s: board_inquiry, adapter busy.\n", BN(j)); |
j | 320 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[0] = IGNORE; |
j | 323 | drivers/scsi/u14-34f.c | outb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR); |
j | 326 | drivers/scsi/u14-34f.c | outl((unsigned int)cpp, sh[j]->io_port + REG_OGM); |
j | 329 | drivers/scsi/u14-34f.c | outb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR); |
j | 336 | drivers/scsi/u14-34f.c | if (cpp->adapter_status || HD(j)->cp_stat[0] != FREE) { |
j | 337 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[0] = FREE; |
j | 338 | drivers/scsi/u14-34f.c | printk("%s: board_inquiry, err 0x%x.\n", BN(j), cpp->adapter_status); |
j | 345 | drivers/scsi/u14-34f.c | static inline int port_detect(ushort *port_base, unsigned int j, |
j | 387 | drivers/scsi/u14-34f.c | sprintf(name, "%s%d", driver_name, j); |
j | 422 | drivers/scsi/u14-34f.c | sh[j] = scsi_register(tpnt, sizeof(struct hostdata)); |
j | 424 | drivers/scsi/u14-34f.c | if (sh[j] == NULL) { |
j | 434 | drivers/scsi/u14-34f.c | sh[j]->io_port = *port_base; |
j | 435 | drivers/scsi/u14-34f.c | sh[j]->n_io_port = REGION_SIZE; |
j | 436 | drivers/scsi/u14-34f.c | sh[j]->base = bios_segment_table[config_1.bios_segment]; |
j | 437 | drivers/scsi/u14-34f.c | sh[j]->irq = irq; |
j | 438 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = MAX_SGLIST; |
j | 439 | drivers/scsi/u14-34f.c | sh[j]->this_id = config_2.ha_scsi_id; |
j | 440 | drivers/scsi/u14-34f.c | sh[j]->can_queue = MAX_MAILBOXES; |
j | 441 | drivers/scsi/u14-34f.c | sh[j]->cmd_per_lun = MAX_CMD_PER_LUN; |
j | 447 | drivers/scsi/u14-34f.c | sys_mask = inb(sh[j]->io_port + REG_SYS_MASK); |
j | 448 | drivers/scsi/u14-34f.c | lcl_mask = inb(sh[j]->io_port + REG_LCL_MASK); |
j | 454 | drivers/scsi/u14-34f.c | if (sh[j]->base == 0) outb(CMD_ENA_INTR, sh[j]->io_port + REG_SYS_MASK); |
j | 457 | drivers/scsi/u14-34f.c | request_region(sh[j]->io_port, REGION_SIZE, driver_name); |
j | 459 | drivers/scsi/u14-34f.c | memset(HD(j), 0, sizeof(struct hostdata)); |
j | 460 | drivers/scsi/u14-34f.c | HD(j)->heads = mapping_table[config_2.mapping_mode].heads; |
j | 461 | drivers/scsi/u14-34f.c | HD(j)->sectors = mapping_table[config_2.mapping_mode].sectors; |
j | 462 | drivers/scsi/u14-34f.c | HD(j)->subversion = subversion; |
j | 463 | drivers/scsi/u14-34f.c | HD(j)->board_number = j; |
j | 464 | drivers/scsi/u14-34f.c | irqlist[irq] = j; |
j | 466 | drivers/scsi/u14-34f.c | if (HD(j)->subversion == ESA) { |
j | 469 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = MAX_SAFE_SGLIST; |
j | 472 | drivers/scsi/u14-34f.c | sh[j]->dma_channel = NO_DMA; |
j | 473 | drivers/scsi/u14-34f.c | sh[j]->unchecked_isa_dma = FALSE; |
j | 474 | drivers/scsi/u14-34f.c | sprintf(BN(j), "U34F%d", j); |
j | 477 | drivers/scsi/u14-34f.c | sh[j]->wish_block = TRUE; |
j | 480 | drivers/scsi/u14-34f.c | sh[j]->hostt->use_clustering = DISABLE_CLUSTERING; |
j | 481 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = MAX_SAFE_SGLIST; |
j | 484 | drivers/scsi/u14-34f.c | sh[j]->dma_channel = dma_channel; |
j | 485 | drivers/scsi/u14-34f.c | sh[j]->unchecked_isa_dma = TRUE; |
j | 486 | drivers/scsi/u14-34f.c | sprintf(BN(j), "U14F%d", j); |
j | 493 | drivers/scsi/u14-34f.c | if (HD(j)->subversion == ISA && !board_inquiry(j)) { |
j | 494 | drivers/scsi/u14-34f.c | HD(j)->board_id[40] = 0; |
j | 496 | drivers/scsi/u14-34f.c | if (strcmp(&HD(j)->board_id[32], "06000600")) { |
j | 497 | drivers/scsi/u14-34f.c | printk("%s: %s.\n", BN(j), &HD(j)->board_id[8]); |
j | 499 | drivers/scsi/u14-34f.c | BN(j), &HD(j)->board_id[32]); |
j | 500 | drivers/scsi/u14-34f.c | sh[j]->hostt->use_clustering = DISABLE_CLUSTERING; |
j | 501 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = MAX_SAFE_SGLIST; |
j | 506 | drivers/scsi/u14-34f.c | "Mbox %d, CmdLun %d, C%d.\n", BN(j), sh[j]->io_port, |
j | 507 | drivers/scsi/u14-34f.c | (int)sh[j]->base, sh[j]->irq, |
j | 508 | drivers/scsi/u14-34f.c | sh[j]->dma_channel, sh[j]->sg_tablesize, |
j | 509 | drivers/scsi/u14-34f.c | sh[j]->can_queue, sh[j]->cmd_per_lun, |
j | 510 | drivers/scsi/u14-34f.c | sh[j]->hostt->use_clustering); |
j | 515 | drivers/scsi/u14-34f.c | unsigned int j = 0, k, flags; |
j | 537 | drivers/scsi/u14-34f.c | if (j < MAX_BOARDS && port_detect(port_base, j, tpnt)) j++; |
j | 542 | drivers/scsi/u14-34f.c | if (j > 0) |
j | 546 | drivers/scsi/u14-34f.c | return j; |
j | 567 | drivers/scsi/u14-34f.c | unsigned int i, j, k, flags; |
j | 573 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCpnt->host->hostdata)->board_number; |
j | 575 | drivers/scsi/u14-34f.c | if (!done) panic("%s: qcomm, pid %ld, null done.\n", BN(j), SCpnt->pid); |
j | 579 | drivers/scsi/u14-34f.c | i = HD(j)->last_cp_used + 1; |
j | 581 | drivers/scsi/u14-34f.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
j | 583 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) i = 0; |
j | 585 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) { |
j | 586 | drivers/scsi/u14-34f.c | HD(j)->last_cp_used = i; |
j | 591 | drivers/scsi/u14-34f.c | if (k == sh[j]->can_queue) { |
j | 592 | drivers/scsi/u14-34f.c | printk("%s: qcomm, no free mailbox, resetting.\n", BN(j)); |
j | 594 | drivers/scsi/u14-34f.c | if (HD(j)->in_reset) |
j | 595 | drivers/scsi/u14-34f.c | printk("%s: qcomm, already in reset.\n", BN(j)); |
j | 597 | drivers/scsi/u14-34f.c | panic("%s: qcomm, SCSI_RESET_SUCCESS.\n", BN(j)); |
j | 601 | drivers/scsi/u14-34f.c | printk("%s: qcomm, pid %ld, DID_BUS_BUSY, done.\n", BN(j), SCpnt->pid); |
j | 608 | drivers/scsi/u14-34f.c | cpp = &HD(j)->cp[i]; |
j | 616 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->target, SCpnt->pid); |
j | 638 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
j | 642 | drivers/scsi/u14-34f.c | BN(j), SCpnt->target, SCpnt->pid); |
j | 649 | drivers/scsi/u14-34f.c | outl((unsigned int)cpp, sh[j]->io_port + REG_OGM); |
j | 652 | drivers/scsi/u14-34f.c | outb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR); |
j | 654 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = IN_USE; |
j | 660 | drivers/scsi/u14-34f.c | unsigned int i, j, flags; |
j | 664 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
j | 668 | drivers/scsi/u14-34f.c | BN(j), SCarg->target, SCarg->pid); |
j | 675 | drivers/scsi/u14-34f.c | BN(j), i, SCarg->target, SCarg->pid); |
j | 677 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
j | 678 | drivers/scsi/u14-34f.c | panic("%s: abort, invalid SCarg->host_scribble.\n", BN(j)); |
j | 680 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
j | 681 | drivers/scsi/u14-34f.c | printk("%s: abort, timeout error.\n", BN(j)); |
j | 686 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) { |
j | 687 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is free.\n", BN(j), i); |
j | 692 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IN_USE) { |
j | 693 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is in use.\n", BN(j), i); |
j | 695 | drivers/scsi/u14-34f.c | if (SCarg != HD(j)->cp[i].SCpnt) |
j | 697 | drivers/scsi/u14-34f.c | BN(j), i, SCarg, HD(j)->cp[i].SCpnt); |
j | 703 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IN_RESET) { |
j | 704 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is in reset.\n", BN(j), i); |
j | 709 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
j | 710 | drivers/scsi/u14-34f.c | printk("%s: abort, mbox %d is locked.\n", BN(j), i); |
j | 715 | drivers/scsi/u14-34f.c | panic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i); |
j | 719 | drivers/scsi/u14-34f.c | unsigned int i, j, flags, time, k, limit = 0; |
j | 725 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
j | 727 | drivers/scsi/u14-34f.c | BN(j), SCarg->target, SCarg->pid); |
j | 730 | drivers/scsi/u14-34f.c | printk("%s: reset, pid %ld inactive.\n", BN(j), SCarg->pid); |
j | 732 | drivers/scsi/u14-34f.c | if (HD(j)->in_reset) { |
j | 733 | drivers/scsi/u14-34f.c | printk("%s: reset, exit, already in reset.\n", BN(j)); |
j | 738 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
j | 739 | drivers/scsi/u14-34f.c | printk("%s: reset, exit, timeout error.\n", BN(j)); |
j | 744 | drivers/scsi/u14-34f.c | for (k = 0; k < MAX_TARGET; k++) HD(j)->target_reset[k] = TRUE; |
j | 746 | drivers/scsi/u14-34f.c | for (k = 0; k < MAX_TARGET; k++) HD(j)->target_time_out[k] = 0; |
j | 748 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
j | 750 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) continue; |
j | 752 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
j | 753 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
j | 754 | drivers/scsi/u14-34f.c | printk("%s: reset, locked mbox %d forced free.\n", BN(j), i); |
j | 758 | drivers/scsi/u14-34f.c | SCpnt = HD(j)->cp[i].SCpnt; |
j | 759 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = IN_RESET; |
j | 761 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid); |
j | 764 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, SCpnt == NULL.\n", BN(j), i); |
j | 767 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, garbled SCpnt.\n", BN(j), i); |
j | 770 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, index mismatch.\n", BN(j), i); |
j | 773 | drivers/scsi/u14-34f.c | panic("%s: reset, mbox %d, SCpnt->scsi_done == NULL.\n", BN(j), i); |
j | 778 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
j | 779 | drivers/scsi/u14-34f.c | printk("%s: reset, cannot reset, timeout error.\n", BN(j)); |
j | 784 | drivers/scsi/u14-34f.c | outb(CMD_RESET, sh[j]->io_port + REG_LCL_INTR); |
j | 785 | drivers/scsi/u14-34f.c | printk("%s: reset, board reset done, enabling interrupts.\n", BN(j)); |
j | 791 | drivers/scsi/u14-34f.c | HD(j)->in_reset = TRUE; |
j | 796 | drivers/scsi/u14-34f.c | printk("%s: reset, interrupts disabled, loops %d.\n", BN(j), limit); |
j | 798 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
j | 801 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] != IN_RESET) continue; |
j | 803 | drivers/scsi/u14-34f.c | SCpnt = HD(j)->cp[i].SCpnt; |
j | 808 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = LOCKED; |
j | 811 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid); |
j | 817 | drivers/scsi/u14-34f.c | HD(j)->in_reset = FALSE; |
j | 822 | drivers/scsi/u14-34f.c | printk("%s: reset, exit, success.\n", BN(j)); |
j | 826 | drivers/scsi/u14-34f.c | printk("%s: reset, exit, wakeup.\n", BN(j)); |
j | 832 | drivers/scsi/u14-34f.c | unsigned int j = 0; |
j | 835 | drivers/scsi/u14-34f.c | dkinfo[0] = HD(j)->heads; |
j | 836 | drivers/scsi/u14-34f.c | dkinfo[1] = HD(j)->sectors; |
j | 837 | drivers/scsi/u14-34f.c | dkinfo[2] = size / (HD(j)->heads * HD(j)->sectors); |
j | 843 | drivers/scsi/u14-34f.c | unsigned int i, j, k, flags, status, tstatus, loops, total_loops = 0; |
j | 859 | drivers/scsi/u14-34f.c | for (j = 0; sh[j] != NULL; j++) { |
j | 861 | drivers/scsi/u14-34f.c | if (sh[j]->irq != irq) continue; |
j | 866 | drivers/scsi/u14-34f.c | while (inb(sh[j]->io_port + REG_SYS_INTR) & IRQ_ASSERTED) { |
j | 871 | drivers/scsi/u14-34f.c | BN(j), HD(j)->iocount); |
j | 873 | drivers/scsi/u14-34f.c | spp = (struct mscp *)inl(sh[j]->io_port + REG_ICM); |
j | 876 | drivers/scsi/u14-34f.c | outb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR); |
j | 878 | drivers/scsi/u14-34f.c | i = spp - HD(j)->cp; |
j | 880 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
j | 881 | drivers/scsi/u14-34f.c | panic("%s: ihdlr, invalid mscp address.\n", BN(j)); |
j | 883 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IGNORE) { |
j | 884 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
j | 887 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == LOCKED) { |
j | 888 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
j | 890 | drivers/scsi/u14-34f.c | BN(j), i, HD(j)->iocount); |
j | 893 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == FREE) { |
j | 895 | drivers/scsi/u14-34f.c | BN(j), i, HD(j)->iocount); |
j | 898 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == IN_RESET) |
j | 899 | drivers/scsi/u14-34f.c | printk("%s: ihdlr, mbox %d is in reset.\n", BN(j), i); |
j | 900 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] != IN_USE) |
j | 901 | drivers/scsi/u14-34f.c | panic("%s: ihdlr, mbox %d, invalid cp_stat.\n", BN(j), i); |
j | 903 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
j | 907 | drivers/scsi/u14-34f.c | panic("%s: ihdlr, mbox %d, SCpnt == NULL.\n", BN(j), i); |
j | 911 | drivers/scsi/u14-34f.c | BN(j), i, SCpnt->pid, SCpnt); |
j | 915 | drivers/scsi/u14-34f.c | " irq %d.\n", BN(j), i, SCpnt->pid, |
j | 930 | drivers/scsi/u14-34f.c | && HD(j)->target_reset[SCpnt->target]) |
j | 943 | drivers/scsi/u14-34f.c | HD(j)->target_reset[SCpnt->target] = FALSE; |
j | 947 | drivers/scsi/u14-34f.c | "0x%x, sense key 0x%x.\n", BN(j), |
j | 951 | drivers/scsi/u14-34f.c | HD(j)->target_time_out[SCpnt->target] = 0; |
j | 956 | drivers/scsi/u14-34f.c | if (HD(j)->target_time_out[SCpnt->target] > 1) |
j | 960 | drivers/scsi/u14-34f.c | HD(j)->target_time_out[SCpnt->target]++; |
j | 976 | drivers/scsi/u14-34f.c | HD(j)->target_reset[k] = TRUE; |
j | 992 | drivers/scsi/u14-34f.c | HD(j)->iocount++; |
j | 994 | drivers/scsi/u14-34f.c | if (loops > 1) HD(j)->multicount++; |
j | 999 | drivers/scsi/u14-34f.c | if ((spp->adapter_status != ASOK && HD(j)->iocount > 1000) || |
j | 1001 | drivers/scsi/u14-34f.c | spp->adapter_status != ASST && HD(j)->iocount <= 1000) || |
j | 1006 | drivers/scsi/u14-34f.c | BN(j), i, spp->adapter_status, spp->target_status, |
j | 1007 | drivers/scsi/u14-34f.c | SCpnt->target, SCpnt->lun, SCpnt->pid, HD(j)->iocount); |
j | 1031 | drivers/scsi/u14-34f.c | for (j = 0; sh[j] != NULL; j++) |
j | 1032 | drivers/scsi/u14-34f.c | printk("%s: ihdlr, calls %d, count %d, multi %d.\n", BN(j), |
j | 1033 | drivers/scsi/u14-34f.c | calls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount); |
j | 1108 | drivers/scsi/wd7000.c | int i,j, present = 0; |
j | 1122 | drivers/scsi/wd7000.c | for (j = 0; j < NUM_SIGNATURES; j++) { |
j | 432 | drivers/sound/configure.c | unsigned int j; |
j | 434 | drivers/sound/configure.c | for (j = 0; j < strlen (choices); j++) |
j | 435 | drivers/sound/configure.c | if (choices[j] == '\'') |
j | 436 | drivers/sound/configure.c | choices[j] = '_'; |
j | 1164 | drivers/sound/configure.c | int n = 0, j; |
j | 1168 | drivers/sound/configure.c | for (j = 0; j < OPT_LAST; j++) |
j | 1169 | drivers/sound/configure.c | if (!(DISABLED_OPTIONS & B (j))) |
j | 1170 | drivers/sound/configure.c | if (extra_options[i].mask & B (j)) |
j | 1177 | drivers/sound/configure.c | printf ("defined(CONFIG_%s)", hw_table[j].macro); |
j | 1196 | drivers/sound/configure.c | int j; |
j | 1198 | drivers/sound/configure.c | for (j = 0; j < OPT_LAST; j++) |
j | 1199 | drivers/sound/configure.c | if (!(DISABLED_OPTIONS & B (j))) |
j | 1200 | drivers/sound/configure.c | if (extra_options[i].mask & B (j)) |
j | 1202 | drivers/sound/configure.c | printf ("ifdef CONFIG_%s\n", hw_table[j].macro); |
j | 334 | drivers/sound/dev_table.c | int j; |
j | 336 | drivers/sound/dev_table.c | for (j = 0; j < 80 && name[j] == id[j]; j++) |
j | 337 | drivers/sound/dev_table.c | if (id[j] == 0 && name[j] == 0) /* Match */ |
j | 364 | drivers/sound/dev_table.c | int card_type, ioaddr, irq, dma, ptr, j; |
j | 384 | drivers/sound/dev_table.c | for (j = 0; j < n && ptr == -1; j++) |
j | 385 | drivers/sound/dev_table.c | if (snd_installed_cards[j].card_type == card_type && |
j | 386 | drivers/sound/dev_table.c | !snd_installed_cards[j].enabled) /* |
j | 389 | drivers/sound/dev_table.c | ptr = j; |
j | 415 | drivers/sound/dev_table.c | int j, ptr; |
j | 419 | drivers/sound/dev_table.c | for (j = 0; j < n && ptr == -1 && snd_installed_cards[j].card_type; j++) |
j | 420 | drivers/sound/dev_table.c | if (snd_installed_cards[j].card_type == card_type) |
j | 421 | drivers/sound/dev_table.c | ptr = j; |
j | 263 | drivers/sound/pss.c | int j; |
j | 265 | drivers/sound/pss.c | for (j = 0; j < 327670; j++) |
j | 272 | drivers/sound/pss.c | if (j == 327670) |
j | 715 | fs/binfmt_elf.c | int i,j, k; |
j | 761 | fs/binfmt_elf.c | j = 0; |
j | 763 | fs/binfmt_elf.c | if((elf_phdata + i)->p_type == PT_LOAD) j++; |
j | 765 | 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 | 913 | fs/buffer.c | int i, j; |
j | 934 | fs/buffer.c | j = 1; |
j | 941 | fs/buffer.c | bhlist[j++] = bh; |
j | 945 | fs/buffer.c | ll_rw_block(READ, j, bhlist); |
j | 947 | fs/buffer.c | for(i=1; i<j; i++) |
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 | 262 | fs/ext2/balloc.c | int i, j, k, tmp; |
j | 298 | fs/ext2/balloc.c | j = ((goal - es->s_first_data_block) % EXT2_BLOCKS_PER_GROUP(sb)); |
j | 300 | fs/ext2/balloc.c | if (j) |
j | 306 | fs/ext2/balloc.c | ext2_debug ("goal is at %d:%d.\n", i, j); |
j | 308 | fs/ext2/balloc.c | if (!test_bit(j, bh->b_data)) { |
j | 315 | fs/ext2/balloc.c | if (j) { |
j | 324 | fs/ext2/balloc.c | int end_goal = (j + 63) & ~63; |
j | 325 | fs/ext2/balloc.c | j = find_next_zero_bit(bh->b_data, end_goal, j); |
j | 326 | fs/ext2/balloc.c | if (j < end_goal) |
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 | 413 | fs/ext2/balloc.c | tmp = j + i * EXT2_BLOCKS_PER_GROUP(sb) + es->s_first_data_block; |
j | 423 | fs/ext2/balloc.c | if (set_bit (j, bh->b_data)) { |
j | 425 | fs/ext2/balloc.c | "bit already set for block %d", j); |
j | 431 | fs/ext2/balloc.c | ext2_debug ("found bit %d\n", j); |
j | 441 | fs/ext2/balloc.c | k < 8 && (j + k) < EXT2_BLOCKS_PER_GROUP(sb); k++) { |
j | 445 | fs/ext2/balloc.c | if (set_bit (j + k, bh->b_data)) { |
j | 459 | fs/ext2/balloc.c | j = tmp; |
j | 467 | fs/ext2/balloc.c | if (j >= es->s_blocks_count) { |
j | 470 | fs/ext2/balloc.c | "block_group = %d, block=%d", i, j); |
j | 474 | fs/ext2/balloc.c | if (!(bh = getblk (sb->s_dev, j, sb->s_blocksize))) { |
j | 475 | fs/ext2/balloc.c | ext2_error (sb, "ext2_new_block", "cannot get block %d", j); |
j | 485 | fs/ext2/balloc.c | "Goal hits %d of %d.\n", j, goal_hits, goal_attempts); |
j | 494 | fs/ext2/balloc.c | return j; |
j | 546 | fs/ext2/balloc.c | int i, j; |
j | 565 | fs/ext2/balloc.c | for (j = 0; j < desc_blocks; j++) |
j | 566 | fs/ext2/balloc.c | if (!test_bit (j + 1, bh->b_data)) |
j | 569 | fs/ext2/balloc.c | "%d is marked free", j, i); |
j | 581 | fs/ext2/balloc.c | for (j = 0; j < sb->u.ext2_sb.s_itb_per_group; j++) |
j | 582 | fs/ext2/balloc.c | if (!block_in_use (gdp->bg_inode_table + j, sb, bh->b_data)) |
j | 585 | 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 | 313 | fs/ext2/ialloc.c | int i, j, avefreei; |
j | 348 | fs/ext2/ialloc.c | for (j = 0; j < sb->u.ext2_sb.s_groups_count; j++) { |
j | 349 | fs/ext2/ialloc.c | tmp = get_group_desc (sb, j, &bh2); |
j | 355 | fs/ext2/ialloc.c | i = j; |
j | 377 | fs/ext2/ialloc.c | for (j = 1; j < sb->u.ext2_sb.s_groups_count; j <<= 1) { |
j | 378 | fs/ext2/ialloc.c | i += j; |
j | 393 | fs/ext2/ialloc.c | for (j = 2; j < sb->u.ext2_sb.s_groups_count; j++) { |
j | 412 | fs/ext2/ialloc.c | if ((j = find_first_zero_bit ((unsigned long *) bh->b_data, |
j | 415 | fs/ext2/ialloc.c | if (set_bit (j, bh->b_data)) { |
j | 417 | fs/ext2/ialloc.c | "bit already set for inode %d", j); |
j | 436 | fs/ext2/ialloc.c | j += i * EXT2_INODES_PER_GROUP(sb) + 1; |
j | 437 | fs/ext2/ialloc.c | if (j < EXT2_FIRST_INO || j > es->s_inodes_count) { |
j | 440 | fs/ext2/ialloc.c | "block_group = %d,inode=%d", i, j); |
j | 467 | fs/ext2/ialloc.c | inode->i_ino = j; |
j | 376 | fs/ext2/super.c | int i, j; |
j | 553 | fs/ext2/super.c | for (j = 0; j < i; j++) |
j | 554 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[j]); |
j | 566 | fs/ext2/super.c | for (j = 0; j < db_count; j++) |
j | 567 | fs/ext2/super.c | brelse (sb->u.ext2_sb.s_group_desc[j]); |
j | 21 | fs/minix/bitmap.c | unsigned i, j, sum = 0; |
j | 27 | fs/minix/bitmap.c | for (j=0; j<BLOCK_SIZE; j++) |
j | 28 | fs/minix/bitmap.c | sum += nibblemap[bh->b_data[j] & 0xf] |
j | 29 | fs/minix/bitmap.c | + nibblemap[(bh->b_data[j]>>4)&0xf]; |
j | 70 | fs/minix/bitmap.c | int i,j; |
j | 77 | fs/minix/bitmap.c | j = 8192; |
j | 80 | fs/minix/bitmap.c | if ((j=find_first_zero_bit(bh->b_data, 8192)) < 8192) |
j | 82 | fs/minix/bitmap.c | if (i>=64 || !bh || j>=8192) |
j | 84 | fs/minix/bitmap.c | if (set_bit(j,bh->b_data)) { |
j | 89 | fs/minix/bitmap.c | j += i*8192 + sb->u.minix_sb.s_firstdatazone-1; |
j | 90 | fs/minix/bitmap.c | if (j < sb->u.minix_sb.s_firstdatazone || |
j | 91 | fs/minix/bitmap.c | j >= sb->u.minix_sb.s_nzones) |
j | 93 | fs/minix/bitmap.c | if (!(bh = getblk(sb->s_dev,j,BLOCK_SIZE))) { |
j | 101 | fs/minix/bitmap.c | return j; |
j | 222 | fs/minix/bitmap.c | int i,j; |
j | 229 | fs/minix/bitmap.c | j = 8192; |
j | 232 | fs/minix/bitmap.c | if ((j=find_first_zero_bit(bh->b_data, 8192)) < 8192) |
j | 234 | fs/minix/bitmap.c | if (!bh || j >= 8192) { |
j | 238 | fs/minix/bitmap.c | if (set_bit(j,bh->b_data)) { /* shouldn't happen */ |
j | 244 | fs/minix/bitmap.c | j += i*8192; |
j | 245 | fs/minix/bitmap.c | if (!j || j >= inode->i_sb->u.minix_sb.s_ninodes) { |
j | 255 | fs/minix/bitmap.c | inode->i_ino = j; |
j | 415 | fs/pipe.c | int i,j; |
j | 421 | fs/pipe.c | for(j=0 ; j<2 ; j++) |
j | 422 | fs/pipe.c | if (!(f[j] = get_empty_filp())) |
j | 424 | fs/pipe.c | if (j < 2) { |
j | 426 | fs/pipe.c | if (j) |
j | 430 | fs/pipe.c | j=0; |
j | 431 | fs/pipe.c | for(i=0;j<2 && i<NR_OPEN && i<current->rlim[RLIMIT_NOFILE].rlim_cur;i++) |
j | 433 | fs/pipe.c | current->files->fd[ fd[j]=i ] = f[j]; |
j | 434 | fs/pipe.c | j++; |
j | 436 | fs/pipe.c | if (j<2) { |
j | 440 | fs/pipe.c | if (j) |
j | 128 | fs/proc/fd.c | unsigned long i,j; |
j | 160 | fs/proc/fd.c | j = NUMBUF; |
j | 163 | fs/proc/fd.c | j--; |
j | 164 | fs/proc/fd.c | buf[j] = '0' + (i % 10); |
j | 169 | fs/proc/fd.c | if (filldir(dirent, buf+j, NUMBUF-j, fd+2, ino) < 0) |
j | 546 | fs/proc/root.c | unsigned long i,j; |
j | 562 | fs/proc/root.c | j = NUMBUF; |
j | 565 | fs/proc/root.c | j--; |
j | 566 | fs/proc/root.c | buf[j] = '0' + (i % 10); |
j | 570 | fs/proc/root.c | if (filldir(dirent, buf+j, NUMBUF-j, filp->f_pos, (pid << 16) + PROC_PID_INO) < 0) |
j | 92 | fs/select.c | int i,j; |
j | 95 | fs/select.c | for (j = 0 ; j < __FDSET_INTS ; j++) { |
j | 96 | fs/select.c | i = j * __NFDBITS; |
j | 99 | fs/select.c | set = in->fds_bits[j] | out->fds_bits[j] | ex->fds_bits[j]; |
j | 351 | fs/smbfs/proc.c | int i, j, len; |
j | 373 | fs/smbfs/proc.c | for (j = i; j < i+10; j++) |
j | 374 | fs/smbfs/proc.c | if (j < len) |
j | 375 | fs/smbfs/proc.c | printk("%02x ", packet[j]); |
j | 379 | fs/smbfs/proc.c | for (j = i; j < i+10; j++) |
j | 380 | fs/smbfs/proc.c | if (j < len) |
j | 381 | fs/smbfs/proc.c | printk("%c", print_char(packet[j])); |
j | 2002 | fs/smbfs/proc.c | int i,j; |
j | 2014 | fs/smbfs/proc.c | for (j=0; err[j].name; j++) { |
j | 2015 | fs/smbfs/proc.c | if (num != err[j].code) |
j | 2018 | fs/smbfs/proc.c | err_classes[i].class, err[j].name, |
j | 2019 | fs/smbfs/proc.c | err[j].message); |
j | 109 | fs/sysv/ialloc.c | int i,j,ino,block; |
j | 127 | 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 | 133 | fs/sysv/ialloc.c | raw_inode = (struct sysv_inode *) bh->b_data + j; |
j | 134 | fs/sysv/ialloc.c | for (; j < sb->sv_inodes_per_block && i < sb->sv_fic_size; ino++, j++, raw_inode++) { |
j | 182 | fs/sysv/ialloc.c | int j,block,count; |
j | 193 | fs/sysv/ialloc.c | for (block = sb->sv_firstinodezone, j = SYSV_ROOT_INO ; block < sb->sv_firstdatazone ; block++, j = 0) { |
j | 199 | fs/sysv/ialloc.c | raw_inode = (struct sysv_inode *) bh->b_data + j; |
j | 200 | fs/sysv/ialloc.c | for (; j < sb->sv_inodes_per_block ; j++, raw_inode++) |
j | 674 | fs/vfat/namei.c | int end, j; |
j | 686 | fs/vfat/namei.c | j = offset; |
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 | 263 | include/linux/ncp.h | struct nw_queue_job_entry j; |
j | 623 | init/main.c | int i, j; |
j | 635 | init/main.c | j = cpu_logical_map[i]; |
j | 644 | init/main.c | current_set[j]=task[i]; |
j | 645 | init/main.c | current_set[j]->processor=j; |
j | 117 | kernel/itimer.c | register unsigned long i, j; |
j | 121 | kernel/itimer.c | j = tvtojiffies(&value->it_value); |
j | 127 | kernel/itimer.c | current->it_real_value = j; |
j | 129 | kernel/itimer.c | if (!j) |
j | 131 | kernel/itimer.c | i = j + jiffies; |
j | 133 | kernel/itimer.c | if (i < j) |
j | 139 | kernel/itimer.c | if (j) |
j | 140 | kernel/itimer.c | j++; |
j | 141 | kernel/itimer.c | current->it_virt_value = j; |
j | 145 | kernel/itimer.c | if (j) |
j | 146 | kernel/itimer.c | j++; |
j | 147 | kernel/itimer.c | current->it_prof_value = j; |
j | 63 | kernel/printk.c | unsigned long i, j, count; |
j | 121 | kernel/printk.c | j = log_start + log_size - count; |
j | 123 | kernel/printk.c | c = *((char *) log_buf+(j++ & (LOG_BUF_LEN-1))); |
j | 215 | kernel/printk.c | int i,j; |
j | 223 | kernel/printk.c | for (i=0,j=0; i < log_size; i++) { |
j | 224 | kernel/printk.c | buf[j++] = log_buf[p]; |
j | 226 | kernel/printk.c | if (buf[j-1] != '\n' && i < log_size - 1 && j < sizeof(buf)-1) |
j | 228 | kernel/printk.c | buf[j] = 0; |
j | 236 | kernel/printk.c | if (buf[j-1] == '\n') |
j | 238 | kernel/printk.c | j = 0; |
j | 938 | kernel/sched.c | int cpu,j; |
j | 940 | kernel/sched.c | for (j=0;j<smp_num_cpus;j++) |
j | 942 | kernel/sched.c | int i = cpu_logical_map[j]; |
j | 288 | lib/inflate.c | register unsigned j; /* counter */ |
j | 324 | lib/inflate.c | for (j = 1; j <= BMAX; j++) |
j | 325 | lib/inflate.c | if (c[j]) |
j | 327 | lib/inflate.c | k = j; /* minimum code length */ |
j | 328 | lib/inflate.c | if ((unsigned)l < j) |
j | 329 | lib/inflate.c | l = j; |
j | 341 | lib/inflate.c | for (y = 1 << j; j < i; j++, y <<= 1) |
j | 342 | lib/inflate.c | if ((y -= c[j]) < 0) |
j | 351 | lib/inflate.c | x[1] = j = 0; |
j | 354 | lib/inflate.c | *xp++ = (j += *p++); |
j | 362 | lib/inflate.c | if ((j = *p++) != 0) |
j | 363 | lib/inflate.c | v[x[j]++] = i; |
j | 396 | lib/inflate.c | if ((f = 1 << (j = k - w)) > a + 1) /* try a k-w bit table */ |
j | 401 | lib/inflate.c | while (++j < z) /* try smaller tables up to z bits */ |
j | 409 | lib/inflate.c | z = 1 << j; /* table entries for j-bit table */ |
j | 431 | lib/inflate.c | r.e = (uch)(16 + j); /* bits in this table */ |
j | 433 | lib/inflate.c | j = i >> (w - l); /* (get around Turbo C bug) */ |
j | 434 | lib/inflate.c | u[h-1][j] = r; /* connect to last table */ |
j | 459 | lib/inflate.c | for (j = i >> w; j < z; j += f) |
j | 460 | lib/inflate.c | q[j] = r; |
j | 463 | lib/inflate.c | for (j = 1 << (k - 1); i & j; j >>= 1) |
j | 464 | lib/inflate.c | i ^= j; |
j | 465 | lib/inflate.c | i ^= j; |
j | 730 | lib/inflate.c | unsigned j; |
j | 776 | lib/inflate.c | for (j = 0; j < nb; j++) |
j | 779 | lib/inflate.c | ll[border[j]] = (unsigned)b & 7; |
j | 782 | lib/inflate.c | for (; j < 19; j++) |
j | 783 | lib/inflate.c | ll[border[j]] = 0; |
j | 805 | lib/inflate.c | j = (td = tl + ((unsigned)b & m))->b; |
j | 806 | lib/inflate.c | DUMPBITS(j) |
j | 807 | lib/inflate.c | j = td->v.n; |
j | 808 | lib/inflate.c | if (j < 16) /* length of code in bits (0..15) */ |
j | 809 | lib/inflate.c | ll[i++] = l = j; /* save last length in l */ |
j | 810 | lib/inflate.c | else if (j == 16) /* repeat last length 3 to 6 times */ |
j | 813 | lib/inflate.c | j = 3 + ((unsigned)b & 3); |
j | 815 | lib/inflate.c | if ((unsigned)i + j > n) |
j | 817 | lib/inflate.c | while (j--) |
j | 820 | lib/inflate.c | else if (j == 17) /* 3 to 10 zero length codes */ |
j | 823 | lib/inflate.c | j = 3 + ((unsigned)b & 7); |
j | 825 | lib/inflate.c | if ((unsigned)i + j > n) |
j | 827 | lib/inflate.c | while (j--) |
j | 834 | lib/inflate.c | j = 11 + ((unsigned)b & 0x7f); |
j | 836 | lib/inflate.c | if ((unsigned)i + j > n) |
j | 838 | lib/inflate.c | while (j--) |
j | 107 | mm/memory.c | int j; |
j | 119 | mm/memory.c | for (j = 0; j < PTRS_PER_PMD ; j++) |
j | 120 | mm/memory.c | free_one_pmd(pmd+j); |
j | 91 | mm/page_io.c | int j; |
j | 94 | mm/page_io.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j += 512){ |
j | 101 | mm/page_io.c | int j; |
j | 105 | mm/page_io.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j +=swapf->i_sb->s_blocksize) |
j | 397 | mm/swapfile.c | int i, j, prev; |
j | 474 | mm/swapfile.c | j = 0; |
j | 483 | mm/swapfile.c | j++; |
j | 486 | mm/swapfile.c | if (!j) { |
j | 505 | mm/swapfile.c | p->pages = j; |
j | 506 | mm/swapfile.c | nr_swap_pages += j; |
j | 507 | mm/swapfile.c | printk("Adding Swap: %dk swap-space\n",j<<(PAGE_SHIFT-10)); |
j | 541 | mm/swapfile.c | unsigned int i, j; |
j | 547 | mm/swapfile.c | for (j = 0; j < swap_info[i].max; ++j) |
j | 548 | mm/swapfile.c | switch (swap_info[i].swap_map[j]) { |
j | 145 | net/ipv4/af_inet.c | int i, j; |
j | 163 | net/ipv4/af_inet.c | j = 0; |
j | 168 | net/ipv4/af_inet.c | j++; |
j | 170 | net/ipv4/af_inet.c | if (j == 0) |
j | 175 | net/ipv4/af_inet.c | if (j < size) |
j | 178 | net/ipv4/af_inet.c | size = j; |
j | 1540 | net/ipv4/arp.c | int i,j,k; |
j | 1569 | net/ipv4/arp.c | for(k=0,j=0;k<HBUFFERLEN-3 && j<entry->dev->addr_len;j++) |
j | 1571 | net/ipv4/arp.c | hbuffer[k++]=hexbuf[ (entry->ha[j]>>4)&15 ]; |
j | 1572 | net/ipv4/arp.c | hbuffer[k++]=hexbuf[ entry->ha[j]&15 ]; |
j | 539 | net/ipv4/igmp.c | struct ip_mc_list *j; |
j | 540 | net/ipv4/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=j) |
j | 542 | net/ipv4/igmp.c | j=i->next; |
j | 32 | scripts/lxdialog/menubox.c | int i, j; |
j | 37 | scripts/lxdialog/menubox.c | j = first_alpha(menu_item); |
j | 48 | scripts/lxdialog/menubox.c | mvwaddch(win, choice, item_x+j, menu_item[j]); |
j | 123 | scripts/lxdialog/menubox.c | int i, j, x, y, box_x, box_y; |
j | 208 | scripts/lxdialog/menubox.c | j = first_alpha(items[(scroll+i)*2+1]); |
j | 209 | scripts/lxdialog/menubox.c | if (key == tolower(items[(scroll+i)*2+1][j])) |
j | 214 | scripts/lxdialog/menubox.c | j = first_alpha(items[(scroll+i)*2+1]); |
j | 215 | scripts/lxdialog/menubox.c | if (key == tolower(items[(scroll+i)*2+1][j])) |
j | 114 | scripts/lxdialog/util.c | int i, j; |
j | 119 | scripts/lxdialog/util.c | for (j = 0; j < width; j++) |
j | 289 | scripts/lxdialog/util.c | int i, j; |
j | 294 | scripts/lxdialog/util.c | for (j = 0; j < width; j++) |
j | 295 | scripts/lxdialog/util.c | if (!i && !j) |
j | 297 | scripts/lxdialog/util.c | else if (i == height - 1 && !j) |
j | 299 | scripts/lxdialog/util.c | else if (!i && j == width - 1) |
j | 301 | scripts/lxdialog/util.c | else if (i == height - 1 && j == width - 1) |
j | 307 | scripts/lxdialog/util.c | else if (!j) |
j | 309 | scripts/lxdialog/util.c | else if (j == width - 1) |