tag | line | file | source code |
stat | 42 | arch/i386/boot/compressed/xtract.c | struct stat sb; |
stat | 99 | arch/i386/boot/tools/build.c | struct stat sb; |
stat | 106 | arch/i386/boot/tools/build.c | if (stat("/", &sb)) { |
stat | 113 | arch/i386/boot/tools/build.c | if (stat(argv[4], &sb)) { |
stat | 129 | drivers/block/hd.c | static void dump_status (const char *msg, unsigned int stat) |
stat | 137 | drivers/block/hd.c | printk("hd%c: %s: status=0x%02x { ", devc, msg, stat & 0xff); |
stat | 138 | drivers/block/hd.c | if (stat & BUSY_STAT) printk("Busy "); |
stat | 139 | drivers/block/hd.c | if (stat & READY_STAT) printk("DriveReady "); |
stat | 140 | drivers/block/hd.c | if (stat & WRERR_STAT) printk("WriteFault "); |
stat | 141 | drivers/block/hd.c | if (stat & SEEK_STAT) printk("SeekComplete "); |
stat | 142 | drivers/block/hd.c | if (stat & DRQ_STAT) printk("DataRequest "); |
stat | 143 | drivers/block/hd.c | if (stat & ECC_STAT) printk("CorrectedError "); |
stat | 144 | drivers/block/hd.c | if (stat & INDEX_STAT) printk("Index "); |
stat | 145 | drivers/block/hd.c | if (stat & ERR_STAT) printk("Error "); |
stat | 147 | drivers/block/hd.c | if ((stat & ERR_STAT) == 0) { |
stat | 284 | drivers/block/hd.c | unsigned short stat = inb_p(HD_STATUS); |
stat | 289 | drivers/block/hd.c | if (stat & (BUSY_STAT|ERR_STAT)) { |
stat | 336 | drivers/block/hd.c | unsigned int dev = DEVICE_NR(CURRENT->dev), stat = inb_p(HD_STATUS); |
stat | 340 | drivers/block/hd.c | if (stat & (BUSY_STAT|ERR_STAT)) { |
stat | 342 | drivers/block/hd.c | dump_status("set multmode failed", stat); |
stat | 431 | drivers/block/hd.c | unsigned int stat = inb_p(HD_STATUS); |
stat | 433 | drivers/block/hd.c | if (stat & (BUSY_STAT|DRQ_STAT|ECC_STAT|ERR_STAT)) { |
stat | 434 | drivers/block/hd.c | dump_status ("unexpected interrupt", stat); |
stat | 463 | drivers/block/hd.c | int retries = 100000, stat; |
stat | 466 | drivers/block/hd.c | if ((stat = inb_p(HD_STATUS)) & DRQ_STAT) |
stat | 468 | drivers/block/hd.c | dump_status("wait_DRQ", stat); |
stat | 585 | drivers/block/ide-cd.c | int stat, err, sense_key, cmd; |
stat | 588 | drivers/block/ide-cd.c | stat = GET_STAT(); |
stat | 589 | drivers/block/ide-cd.c | *stat_ret = stat; |
stat | 591 | drivers/block/ide-cd.c | if (OK_STAT (stat, good_stat, BAD_R_STAT)) |
stat | 611 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 613 | drivers/block/ide-cd.c | if (ide_error (drive, "request sense failure", stat)) |
stat | 648 | drivers/block/ide-cd.c | ide_dump_status (drive, "packet command error", stat); |
stat | 659 | drivers/block/ide-cd.c | if ((stat & ERR_STAT) != 0) |
stat | 665 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 668 | drivers/block/ide-cd.c | if ((stat & ERR_STAT) != 0) |
stat | 702 | drivers/block/ide-cd.c | ide_dump_status (drive, "command error", stat); |
stat | 709 | drivers/block/ide-cd.c | if (ide_error (drive, "cdrom_decode_status", stat)) |
stat | 721 | drivers/block/ide-cd.c | if ((stat & ERR_STAT) != 0) |
stat | 904 | drivers/block/ide-cd.c | int stat; |
stat | 910 | drivers/block/ide-cd.c | if (cdrom_decode_status (drive, 0, &stat)) return; |
stat | 917 | drivers/block/ide-cd.c | if ((stat & DRQ_STAT) == 0) |
stat | 1190 | drivers/block/ide-cd.c | int ireason, len, stat, thislen; |
stat | 1195 | drivers/block/ide-cd.c | if (cdrom_decode_status (drive, 0, &stat)) return; |
stat | 1203 | drivers/block/ide-cd.c | if ((stat & DRQ_STAT) == 0) |
stat | 1220 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 1240 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 1269 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 1294 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 1324 | drivers/block/ide-cd.c | pc->stat = 0; |
stat | 1399 | drivers/block/ide-cd.c | if (pc->stat != 0) |
stat | 1424 | drivers/block/ide-cd.c | } while (pc->stat != 0 && retries >= 0); |
stat | 1428 | drivers/block/ide-cd.c | if (pc->stat != 0) |
stat | 1559 | drivers/block/ide-cd.c | int stat; |
stat | 1567 | drivers/block/ide-cd.c | stat = 0; |
stat | 1575 | drivers/block/ide-cd.c | stat = cdrom_queue_packet_command (drive, &pc); |
stat | 1578 | drivers/block/ide-cd.c | if (stat == 0) |
stat | 1588 | drivers/block/ide-cd.c | stat = 0; |
stat | 1592 | drivers/block/ide-cd.c | return stat; |
stat | 1653 | drivers/block/ide-cd.c | int stat; |
stat | 1663 | drivers/block/ide-cd.c | stat = cdrom_queue_packet_command (drive, &pc); |
stat | 1664 | drivers/block/ide-cd.c | if (stat == 0) |
stat | 1670 | drivers/block/ide-cd.c | return stat; |
stat | 1702 | drivers/block/ide-cd.c | int stat, ntracks, i; |
stat | 1734 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (drive, 0, msf_flag, 0, (char *)&toc->hdr, |
stat | 1738 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1745 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (drive, 0, msf_flag, 0, (char *)&toc->hdr, |
stat | 1749 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1763 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (drive, 0, msf_flag, 1, |
stat | 1766 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1780 | drivers/block/ide-cd.c | stat = cdrom_read_capacity (drive, &toc->capacity, reqbuf); |
stat | 1781 | drivers/block/ide-cd.c | if (stat) toc->capacity = 0x1fffff; |
stat | 1922 | drivers/block/ide-cd.c | int stat; |
stat | 1928 | drivers/block/ide-cd.c | stat = cdrom_play_lba_range_play12 (drive, lba_start, lba_end, reqbuf); |
stat | 1929 | drivers/block/ide-cd.c | if (stat == 0) return 0; |
stat | 1944 | drivers/block/ide-cd.c | return stat; |
stat | 1954 | drivers/block/ide-cd.c | int stat, ntracks; |
stat | 1958 | drivers/block/ide-cd.c | stat = cdrom_read_toc (drive, reqbuf); |
stat | 1959 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1984 | drivers/block/ide-cd.c | int stat; |
stat | 2006 | drivers/block/ide-cd.c | stat = cdrom_queue_packet_command (drive, &pc); |
stat | 2010 | drivers/block/ide-cd.c | if (stat && reqbuf->sense_key == ILLEGAL_REQUEST && reqbuf->asc == 0x20 && |
stat | 2019 | drivers/block/ide-cd.c | return stat; |
stat | 2030 | drivers/block/ide-cd.c | int stat; |
stat | 2035 | drivers/block/ide-cd.c | stat = cdrom_lockdoor (drive, 0, NULL); |
stat | 2036 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2058 | drivers/block/ide-cd.c | int stat; |
stat | 2060 | drivers/block/ide-cd.c | stat = cdrom_startstop (drive, 0, NULL); |
stat | 2061 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2069 | drivers/block/ide-cd.c | int stat, lba_start, lba_end; |
stat | 2071 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *)arg, sizeof (msf)); |
stat | 2072 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2090 | drivers/block/ide-cd.c | int stat, lba_start, lba_end; |
stat | 2094 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *)arg, sizeof (ti)); |
stat | 2095 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2099 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (drive, ti.cdti_trk0, &first_toc, NULL); |
stat | 2100 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2101 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (drive, ti.cdti_trk1, &last_toc, NULL); |
stat | 2102 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2115 | drivers/block/ide-cd.c | int stat; |
stat | 2119 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, sizeof (tochdr)); |
stat | 2120 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2123 | drivers/block/ide-cd.c | stat = cdrom_read_toc (drive, NULL); |
stat | 2124 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2132 | drivers/block/ide-cd.c | return stat; |
stat | 2137 | drivers/block/ide-cd.c | int stat; |
stat | 2141 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (tocentry)); |
stat | 2142 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2143 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, sizeof (tocentry)); |
stat | 2144 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2148 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (drive, tocentry.cdte_track, &toce, NULL); |
stat | 2149 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2167 | drivers/block/ide-cd.c | return stat; |
stat | 2173 | drivers/block/ide-cd.c | int stat, abs_lba, rel_lba; |
stat | 2176 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, sizeof (subchnl)); |
stat | 2177 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2178 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (subchnl)); |
stat | 2179 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2183 | drivers/block/ide-cd.c | stat = cdrom_read_subchannel (drive, buffer, sizeof (buffer), NULL); |
stat | 2184 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2215 | drivers/block/ide-cd.c | return stat; |
stat | 2222 | drivers/block/ide-cd.c | int stat; |
stat | 2224 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (volctrl)); |
stat | 2225 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2228 | drivers/block/ide-cd.c | stat = cdrom_mode_sense (drive, 0x0e, 0, buffer, sizeof (buffer),NULL); |
stat | 2229 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2230 | drivers/block/ide-cd.c | stat = cdrom_mode_sense (drive, 0x0e, 1, mask , sizeof (buffer),NULL); |
stat | 2231 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2247 | drivers/block/ide-cd.c | int stat; |
stat | 2249 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, sizeof (volctrl)); |
stat | 2250 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2252 | drivers/block/ide-cd.c | stat = cdrom_mode_sense (drive, 0x0e, 0, buffer, sizeof (buffer), NULL); |
stat | 2253 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2269 | drivers/block/ide-cd.c | int stat; |
stat | 2271 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *)arg, sizeof (ms_info)); |
stat | 2272 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2273 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *)arg, sizeof (ms_info)); |
stat | 2274 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2279 | drivers/block/ide-cd.c | stat = cdrom_read_toc (drive, NULL); |
stat | 2280 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2306 | drivers/block/ide-cd.c | int stat, lba; |
stat | 2312 | drivers/block/ide-cd.c | stat = cdrom_read_toc (drive, NULL); |
stat | 2313 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2317 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (char *)arg, sizeof (ra)); |
stat | 2318 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2327 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (char *)ra.buf, |
stat | 2329 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2346 | drivers/block/ide-cd.c | stat = cdrom_read_block (drive, 1, lba, buf, |
stat | 2348 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2362 | drivers/block/ide-cd.c | int blocksize, format, stat, lba; |
stat | 2377 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (char *)arg, sizeof (msf)); |
stat | 2378 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2379 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (char *)arg, blocksize); |
stat | 2380 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2387 | drivers/block/ide-cd.c | stat = cdrom_read_toc (drive, NULL); |
stat | 2388 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2395 | drivers/block/ide-cd.c | stat = cdrom_read_block (drive, format, lba, buf, blocksize, NULL); |
stat | 2396 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2417 | drivers/block/ide-cd.c | int stat; |
stat | 2423 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (pc.c)); |
stat | 2424 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2428 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (len)); |
stat | 2429 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2434 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, len); |
stat | 2435 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2448 | drivers/block/ide-cd.c | stat = cdrom_queue_packet_command (drive, &pc); |
stat | 2454 | drivers/block/ide-cd.c | return stat; |
stat | 2495 | drivers/block/ide-cd.c | int stat; |
stat | 2500 | drivers/block/ide-cd.c | stat = cdrom_check_status (drive, &my_reqbuf); |
stat | 2503 | drivers/block/ide-cd.c | if (stat && my_reqbuf.sense_key == NOT_READY) |
stat | 2506 | drivers/block/ide-cd.c | stat = cdrom_check_status (drive, &my_reqbuf); |
stat | 2510 | drivers/block/ide-cd.c | if (stat && my_reqbuf.sense_key != UNIT_ATTENTION) |
stat | 588 | drivers/block/ide.c | byte stat; |
stat | 593 | drivers/block/ide.c | if (!OK_STAT(stat=GET_STAT(), 0, BUSY_STAT)) { |
stat | 598 | drivers/block/ide.c | printk("%s: ATAPI reset timed-out, status=0x%02x\n", drive->name, stat); |
stat | 749 | drivers/block/ide.c | static void end_drive_cmd (ide_drive_t *drive, byte stat, byte err) |
stat | 755 | drivers/block/ide.c | rq->errors = !OK_STAT(stat,READY_STAT,BAD_STAT); |
stat | 757 | drivers/block/ide.c | args[0] = stat; |
stat | 771 | drivers/block/ide.c | byte ide_dump_status (ide_drive_t *drive, const char *msg, byte stat) |
stat | 778 | drivers/block/ide.c | printk("%s: %s: status=0x%02x", drive->name, msg, stat); |
stat | 782 | drivers/block/ide.c | if (stat & BUSY_STAT) |
stat | 785 | drivers/block/ide.c | if (stat & READY_STAT) printk("DriveReady "); |
stat | 786 | drivers/block/ide.c | if (stat & WRERR_STAT) printk("DeviceFault "); |
stat | 787 | drivers/block/ide.c | if (stat & SEEK_STAT) printk("SeekComplete "); |
stat | 788 | drivers/block/ide.c | if (stat & DRQ_STAT) printk("DataRequest "); |
stat | 789 | drivers/block/ide.c | if (stat & ECC_STAT) printk("CorrectedError "); |
stat | 790 | drivers/block/ide.c | if (stat & INDEX_STAT) printk("Index "); |
stat | 791 | drivers/block/ide.c | if (stat & ERR_STAT) printk("Error "); |
stat | 797 | drivers/block/ide.c | if ((stat & (BUSY_STAT|ERR_STAT)) == ERR_STAT) { |
stat | 862 | drivers/block/ide.c | int ide_error (ide_drive_t *drive, const char *msg, byte stat) |
stat | 867 | drivers/block/ide.c | err = ide_dump_status(drive, msg, stat); |
stat | 871 | drivers/block/ide.c | end_drive_cmd(drive, stat, err); |
stat | 874 | drivers/block/ide.c | if (stat & BUSY_STAT) { /* other bits are useless when BUSY */ |
stat | 877 | drivers/block/ide.c | if (drive->media == disk && (stat & ERR_STAT)) { |
stat | 884 | drivers/block/ide.c | if ((stat & DRQ_STAT) && rq->cmd != WRITE) |
stat | 916 | drivers/block/ide.c | byte stat; |
stat | 921 | drivers/block/ide.c | if (!OK_STAT(stat=GET_STAT(),DATA_READY,BAD_R_STAT)) { |
stat | 923 | drivers/block/ide.c | if (!ide_error(drive, "read_intr", stat)) |
stat | 962 | drivers/block/ide.c | byte stat; |
stat | 966 | drivers/block/ide.c | if (OK_STAT(stat=GET_STAT(),DRIVE_READY,drive->bad_wstat)) { |
stat | 972 | drivers/block/ide.c | if ((rq->nr_sectors == 1) ^ ((stat & DRQ_STAT) != 0)) { |
stat | 990 | drivers/block/ide.c | if (!ide_error(drive, "write_intr", stat)) |
stat | 1036 | drivers/block/ide.c | byte stat; |
stat | 1040 | drivers/block/ide.c | if (OK_STAT(stat=GET_STAT(),DRIVE_READY,drive->bad_wstat)) { |
stat | 1041 | drivers/block/ide.c | if (stat & DRQ_STAT) { |
stat | 1060 | drivers/block/ide.c | if (!ide_error(drive, "multwrite_intr", stat)) |
stat | 1081 | drivers/block/ide.c | byte stat = GET_STAT(); |
stat | 1084 | drivers/block/ide.c | if (OK_STAT(stat,READY_STAT,BAD_STAT)) { |
stat | 1089 | drivers/block/ide.c | (void) ide_dump_status(drive, "set_multmode", stat); |
stat | 1099 | drivers/block/ide.c | byte stat = GET_STAT(); |
stat | 1102 | drivers/block/ide.c | if (!OK_STAT(stat,READY_STAT,BAD_STAT)) |
stat | 1103 | drivers/block/ide.c | if (ide_error(drive, "set_geometry_intr", stat)) |
stat | 1113 | drivers/block/ide.c | byte stat = GET_STAT(); |
stat | 1116 | drivers/block/ide.c | if (!OK_STAT(stat,READY_STAT,BAD_STAT)) |
stat | 1117 | drivers/block/ide.c | if (ide_error(drive, "recal_intr", stat)) |
stat | 1127 | drivers/block/ide.c | byte stat = GET_STAT(); |
stat | 1130 | drivers/block/ide.c | if (OK_STAT(stat,READY_STAT,BAD_STAT)) |
stat | 1131 | drivers/block/ide.c | end_drive_cmd (drive, stat, GET_ERR()); |
stat | 1132 | drivers/block/ide.c | else if (ide_error(drive, "drive_cmd", stat)) /* calls end_drive_cmd */ |
stat | 1189 | drivers/block/ide.c | byte stat; |
stat | 1193 | drivers/block/ide.c | if (OK_STAT((stat = GET_STAT()), good, bad)) |
stat | 1195 | drivers/block/ide.c | if (!(stat & BUSY_STAT)) { |
stat | 1196 | drivers/block/ide.c | (void) ide_error(drive, "status error", stat); |
stat | 1204 | drivers/block/ide.c | if (!((stat = GET_STAT()) & BUSY_STAT)) { |
stat | 1518 | drivers/block/ide.c | byte stat; |
stat | 1544 | drivers/block/ide.c | if (!OK_STAT(stat=GET_STAT(), drive->ready_stat, BAD_STAT)) |
stat | 1545 | drivers/block/ide.c | (void) ide_dump_status(drive, "unexpected_intr", stat); |
stat | 1546 | drivers/block/ide.c | if ((stat & DRQ_STAT)) |
stat | 117 | drivers/block/ide.h | #define OK_STAT(stat,good,bad) (((stat)&((good)|(bad)))==(good)) |
stat | 166 | drivers/block/ide.h | int stat; |
stat | 385 | drivers/block/ide.h | byte ide_dump_status (ide_drive_t *drive, const char *msg, byte stat); |
stat | 394 | drivers/block/ide.h | int ide_error (ide_drive_t *drive, const char *msg, byte stat); |
stat | 1077 | drivers/block/sjcd.c | unsigned char stat; |
stat | 1079 | drivers/block/sjcd.c | sjcd_s_data: stat = inb( SJCDPORT( 1 ) ) & 0x0B; |
stat | 1081 | drivers/block/sjcd.c | printk( "SJCD_S_DATA: status = 0x%02x\n", stat ); |
stat | 1083 | drivers/block/sjcd.c | if( stat == 0x09 ){ |
stat | 1107 | drivers/block/sjcd.c | } else if( stat == 0x0A ){ |
stat | 1179 | drivers/block/sjcd.c | unsigned char stat; |
stat | 1181 | drivers/block/sjcd.c | stat = inb( SJCDPORT( 1 ) ) & 0x0B; |
stat | 1183 | drivers/block/sjcd.c | printk( "SJCD_S_STOP: status = 0x%02x\n", stat ); |
stat | 1185 | drivers/block/sjcd.c | if( stat == 0x0A ){ |
stat | 1195 | drivers/block/sjcd.c | } else if( stat == 0x09 ){ |
stat | 112 | drivers/block/triton.c | byte stat, dma_stat; |
stat | 119 | drivers/block/triton.c | stat = GET_STAT(); /* get drive status */ |
stat | 120 | drivers/block/triton.c | if (OK_STAT(stat,DRIVE_READY,drive->bad_wstat|DRQ_STAT)) { |
stat | 133 | drivers/block/triton.c | if (!ide_error(drive, "dma_intr", stat)) |
stat | 637 | drivers/char/scc.c | scc->stat.tx_state = TXS_NEWFRAME; |
stat | 640 | drivers/char/scc.c | scc->stat.tx_state = TXS_BUSY; |
stat | 652 | drivers/char/scc.c | scc->stat.txints++; |
stat | 661 | drivers/char/scc.c | if (--scc->stat.tx_queued < 0) |
stat | 662 | drivers/char/scc.c | scc->stat.tx_queued = 0; |
stat | 670 | drivers/char/scc.c | if (scc->stat.tx_state == TXS_NEWFRAME) |
stat | 679 | drivers/char/scc.c | scc->stat.tx_state = TXS_ACTIVE;/* next byte... */ |
stat | 717 | drivers/char/scc.c | scc->stat.rxerrs++; /* then count it as an error */ |
stat | 731 | drivers/char/scc.c | scc->stat.exints++; |
stat | 770 | drivers/char/scc.c | if ((scc->stat.tx_state == TXS_ACTIVE) && (status & TxEOM)) |
stat | 772 | drivers/char/scc.c | scc->stat.tx_under++; /* oops, an underrun! count 'em */ |
stat | 778 | drivers/char/scc.c | if (--scc->stat.tx_queued < 0) scc->stat.tx_queued = 0; |
stat | 784 | drivers/char/scc.c | scc->stat.tx_under = 9999; /* errr... yes. */ |
stat | 788 | drivers/char/scc.c | if (--scc->stat.tx_queued < 0) scc->stat.tx_queued = 0; |
stat | 804 | drivers/char/scc.c | scc->stat.rxints++; |
stat | 832 | drivers/char/scc.c | scc->stat.nospace++; /* and count this error */ |
stat | 870 | drivers/char/scc.c | scc->stat.spints++; |
stat | 878 | drivers/char/scc.c | scc->stat.rx_over++; /* count them */ |
stat | 896 | drivers/char/scc.c | scc->stat.rxframes++; |
stat | 897 | drivers/char/scc.c | scc->stat.rx_queued++; |
stat | 901 | drivers/char/scc.c | scc->stat.rxerrs++; |
stat | 1164 | drivers/char/scc.c | if (scc->stat.tx_state != TXS_BUSY) |
stat | 1186 | drivers/char/scc.c | scc->stat.tx_state = TXS_BUSY; |
stat | 1190 | drivers/char/scc.c | scc->stat.tx_state = TXS_IDLE; |
stat | 1198 | drivers/char/scc.c | scc->stat.tx_state = TXS_BUSY; |
stat | 1217 | drivers/char/scc.c | scc->stat.tx_state = TXS_IDLE; |
stat | 1232 | drivers/char/scc.c | scc->stat.tx_state = TXS_BUSY; |
stat | 1240 | drivers/char/scc.c | if (scc->stat.rx_queued > QUEUE_THRES) |
stat | 1245 | drivers/char/scc.c | " (%d) but queue is empty\n", scc->stat.rx_queued); |
stat | 1247 | drivers/char/scc.c | scc->stat.rx_queued = 0; /* correct it */ |
stat | 1248 | drivers/char/scc.c | scc->stat.nospace = 12345; /* draw attention to it */ |
stat | 1254 | drivers/char/scc.c | while (bp && (scc->stat.rx_queued > QUEUE_HYST)) |
stat | 1257 | drivers/char/scc.c | scc->stat.rx_queued--; |
stat | 1258 | drivers/char/scc.c | scc->stat.nospace++; |
stat | 1326 | drivers/char/scc.c | scc->stat.tx_state = TXS_IDLE; |
stat | 1458 | drivers/char/scc.c | scc->stat.txframes++; |
stat | 1459 | drivers/char/scc.c | scc->stat.tx_queued++; |
stat | 1464 | drivers/char/scc.c | if(scc->stat.tx_state == TXS_IDLE) |
stat | 1467 | drivers/char/scc.c | scc->stat.tx_state = TXS_BUSY; |
stat | 1493 | drivers/char/scc.c | switch (scc->stat.tx_kiss_state) |
stat | 1501 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_DATA; |
stat | 1502 | drivers/char/scc.c | } else scc->stat.txerrs++; |
stat | 1507 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_ESCAPE; |
stat | 1511 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_IDLE; |
stat | 1520 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_DATA; |
stat | 1525 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_DATA; |
stat | 1531 | drivers/char/scc.c | scc->stat.txerrs++; |
stat | 1532 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_IDLE; |
stat | 1554 | drivers/char/scc.c | scc->stat.rx_kiss_state = KISS_IDLE; |
stat | 1566 | drivers/char/scc.c | if (scc->stat.rx_kiss_state == KISS_IDLE) |
stat | 1573 | drivers/char/scc.c | scc->stat.rx_kiss_state = KISS_RXFRAME; |
stat | 1607 | drivers/char/scc.c | if (--scc->stat.rx_queued < 0) |
stat | 1608 | drivers/char/scc.c | scc->stat.rx_queued = 0; |
stat | 1610 | drivers/char/scc.c | if (scc->stat.rx_kiss_state == KISS_RXFRAME) /* new packet? */ |
stat | 1613 | drivers/char/scc.c | scc->stat.rx_kiss_state = KISS_IDLE; /* generate FEND for new frame */ |
stat | 1747 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_IDLE; /* don't change this... */ |
stat | 1748 | drivers/char/scc.c | scc->stat.rx_kiss_state = KISS_IDLE; /* ...or this */ |
stat | 1806 | drivers/char/scc.c | if (scc->stat.tx_state == 0) /* only switch baudrate on rx... ;-) */ |
stat | 1963 | drivers/char/scc.c | if(scc->stat.tx_state == TXS_IDLE && !Running(t_idle)) |
stat | 2001 | drivers/char/scc.c | scc->stat.used_buf = scc_count_used_buffers(&scc->stat.rx_alloc, |
stat | 2002 | drivers/char/scc.c | &scc->stat.tx_alloc); |
stat | 2004 | drivers/char/scc.c | memcpy_tofs((void *) arg, &scc->stat, sizeof(struct scc_stat)); |
stat | 2111 | drivers/char/scc.c | if (scc->stat.tx_queued > QUEUE_THRES) |
stat | 2116 | drivers/char/scc.c | " (%d) but queue is empty\n", scc->stat.tx_queued); |
stat | 2118 | drivers/char/scc.c | scc->stat.tx_queued = 0; /* correct it */ |
stat | 2119 | drivers/char/scc.c | scc->stat.nospace = 54321; /* draw attention to it */ |
stat | 2125 | drivers/char/scc.c | while (bp && (scc->stat.tx_queued > QUEUE_HYST)) |
stat | 2128 | drivers/char/scc.c | scc->stat.tx_queued--; |
stat | 2129 | drivers/char/scc.c | scc->stat.nospace++; |
stat | 2175 | drivers/char/scc.c | scc->stat.nospace++; |
stat | 2217 | drivers/char/scc.c | if (scc->stat.tx_alloc >= QUEUE_THRES) |
stat | 2243 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_IDLE; |
stat | 643 | drivers/char/tpqic02.c | { int stat = inb_p(QIC02_STAT_PORT); |
stat | 644 | drivers/char/tpqic02.c | status_dead = ((stat & QIC02_STAT_RESETMASK) != QIC02_STAT_RESETVAL); } |
stat | 718 | drivers/char/tpqic02.c | int stat; |
stat | 728 | drivers/char/tpqic02.c | while (((stat = inb_p(QIC02_STAT_PORT) & QIC02_STAT_MASK) == QIC02_STAT_MASK) && (--spin_t>0)) |
stat | 730 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_READY) == 0) |
stat | 740 | drivers/char/tpqic02.c | while (((stat = inb_p(QIC02_STAT_PORT) & QIC02_STAT_MASK) == QIC02_STAT_MASK) && (jiffies<spin_t)) |
stat | 742 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_READY) == 0) |
stat | 755 | drivers/char/tpqic02.c | while (((stat = inb_p(QIC02_STAT_PORT) & QIC02_STAT_MASK) == QIC02_STAT_MASK) && (jiffies<spin_t)) { |
stat | 763 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_MASK) == QIC02_STAT_MASK) { |
stat | 768 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_EXCEPTION) == 0) { |
stat | 781 | drivers/char/tpqic02.c | int i, stat; |
stat | 785 | drivers/char/tpqic02.c | stat = wait_for_ready(TIM_S); |
stat | 786 | drivers/char/tpqic02.c | if (stat != TE_OK) |
stat | 787 | drivers/char/tpqic02.c | return stat; |
stat | 789 | drivers/char/tpqic02.c | stat = notify_cmd(sb[i], ignore_ex); |
stat | 790 | drivers/char/tpqic02.c | if (stat != TE_OK) |
stat | 791 | drivers/char/tpqic02.c | return stat; |
stat | 807 | drivers/char/tpqic02.c | int stat; |
stat | 809 | drivers/char/tpqic02.c | stat = inb_p(QIC02_STAT_PORT); |
stat | 810 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_EXCEPTION) == 0) { /* if exception */ |
stat | 814 | drivers/char/tpqic02.c | if (stat & QIC02_STAT_READY) { /* if not ready */ |
stat | 826 | drivers/char/tpqic02.c | stat = notify_cmd(cmd, ignore_ex); /* tell drive new command was loaded, */ |
stat | 830 | drivers/char/tpqic02.c | stat = send_qic02_data(seek_addr_buf, sizeof(seek_addr_buf), ignore_ex); |
stat | 833 | drivers/char/tpqic02.c | if (stat != TE_OK) { |
stat | 836 | drivers/char/tpqic02.c | return stat; |
stat | 925 | drivers/char/tpqic02.c | int stat = rdstatus((char *) stp, TPSTATSIZE, QCMD_RD_STAT); |
stat | 932 | drivers/char/tpqic02.c | return stat; |
stat | 947 | drivers/char/tpqic02.c | int stat, i; |
stat | 950 | drivers/char/tpqic02.c | stat = rdstatus(vus, sizeof(vus), QCMD_RD_STAT_X3); |
stat | 951 | drivers/char/tpqic02.c | if (stat != TE_OK) |
stat | 952 | drivers/char/tpqic02.c | return stat; |
stat | 1055 | drivers/char/tpqic02.c | int stat; |
stat | 1057 | drivers/char/tpqic02.c | stat = inb(QIC02_STAT_PORT) & QIC02_STAT_MASK; |
stat | 1059 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": Waiting for (re-)wind to finish: stat=0x%x\n", stat); |
stat | 1061 | drivers/char/tpqic02.c | stat = wait_for_ready(timeout); |
stat | 1063 | drivers/char/tpqic02.c | if (stat != TE_OK) { |
stat | 1066 | drivers/char/tpqic02.c | return stat; |
stat | 1079 | drivers/char/tpqic02.c | int stat; |
stat | 1086 | drivers/char/tpqic02.c | stat = wait_for_ready(timeout); /* wait for ready or exception */ |
stat | 1087 | drivers/char/tpqic02.c | if (stat == TE_EX) { |
stat | 1091 | drivers/char/tpqic02.c | stat = TE_OK; |
stat | 1093 | drivers/char/tpqic02.c | if (stat != TE_OK) { |
stat | 1104 | drivers/char/tpqic02.c | stat = send_qic02_cmd(cmd, timeout, 0); /* (checks for exceptions) */ |
stat | 1128 | drivers/char/tpqic02.c | if (stat==TE_EX) { |
stat | 1136 | drivers/char/tpqic02.c | else if (stat!=TE_OK) { |
stat | 1137 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": ll_do_qic_cmd: send_qic02_cmd failed, stat = 0x%x\n", stat); |
stat | 1143 | drivers/char/tpqic02.c | stat = wait_for_rewind(timeout); |
stat | 1145 | drivers/char/tpqic02.c | stat = wait_for_ready(timeout); |
stat | 1147 | drivers/char/tpqic02.c | if (stat==TE_EX) { |
stat | 1158 | drivers/char/tpqic02.c | else if (stat!=TE_OK) { |
stat | 1159 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": ll_do_qic_cmd %x: wait failed, stat == 0x%x\n", cmd, stat); |
stat | 1221 | drivers/char/tpqic02.c | int stat; |
stat | 1228 | drivers/char/tpqic02.c | stat = ll_do_qic_cmd(QCMD_WRT_FM, TIM_M); |
stat | 1229 | drivers/char/tpqic02.c | if (stat != TE_OK) |
stat | 1260 | drivers/char/tpqic02.c | int stat; |
stat | 1267 | drivers/char/tpqic02.c | stat = ll_do_qic_cmd(QCMD_REWIND, TIM_R); |
stat | 1268 | drivers/char/tpqic02.c | if (stat != 0) { |
stat | 1269 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": rewind failed in do_qic_cmd(). stat=0x%2x", stat); |
stat | 1270 | drivers/char/tpqic02.c | return stat; |
stat | 1287 | drivers/char/tpqic02.c | int stat; |
stat | 1311 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_RD_FM_BCK, TIM_F); |
stat | 1313 | drivers/char/tpqic02.c | stat = -ENXIO; |
stat | 1316 | drivers/char/tpqic02.c | return stat; |
stat | 1323 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_SPACE_FWD, TIM_F); |
stat | 1327 | drivers/char/tpqic02.c | stat = -ENXIO; |
stat | 1329 | drivers/char/tpqic02.c | return stat; |
stat | 1337 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_SPACE_BCK, TIM_F); |
stat | 1340 | drivers/char/tpqic02.c | stat = -ENXIO; |
stat | 1343 | drivers/char/tpqic02.c | return stat; |
stat | 1373 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_REWIND, TIM_R); |
stat | 1374 | drivers/char/tpqic02.c | return stat; |
stat | 1429 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_REWIND, TIM_R); |
stat | 1430 | drivers/char/tpqic02.c | if (stat) |
stat | 1431 | drivers/char/tpqic02.c | return stat; |
stat | 1432 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_SEEK_EOD, TIM_F); |
stat | 1436 | drivers/char/tpqic02.c | stat = 0; |
stat | 1437 | drivers/char/tpqic02.c | while ((stat==0) && (!status_eom_detected)) { |
stat | 1438 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_RD_FM, TIM_F); /***** should use MTFSFM here???? ******/ |
stat | 1443 | drivers/char/tpqic02.c | return stat; |
stat | 1469 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_SELF_TST1, TIM_R); |
stat | 1470 | drivers/char/tpqic02.c | if (stat != 0) { |
stat | 1472 | drivers/char/tpqic02.c | return stat; |
stat | 1482 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_SELF_TST2, TIM_R); |
stat | 1483 | drivers/char/tpqic02.c | if (stat != 0) { |
stat | 1485 | drivers/char/tpqic02.c | return stat; |
stat | 1578 | drivers/char/tpqic02.c | int stat; |
stat | 1609 | drivers/char/tpqic02.c | stat = tp_sense(((mode == WRITE)? 0 : TP_WRP) | TP_BOM | TP_FIL); |
stat | 1610 | drivers/char/tpqic02.c | if (stat != TE_OK) |
stat | 1611 | drivers/char/tpqic02.c | return stat; |
stat | 1629 | drivers/char/tpqic02.c | stat = send_qic02_cmd((mode == WRITE)? QCMD_WRT_DATA : QCMD_RD_DATA, TIM_M, 0); |
stat | 1630 | drivers/char/tpqic02.c | if (stat!=TE_OK) { |
stat | 1634 | drivers/char/tpqic02.c | return stat; |
stat | 1692 | drivers/char/tpqic02.c | int stat = TE_OK; |
stat | 1710 | drivers/char/tpqic02.c | stat = wait_for_ready(TIM_M); |
stat | 1711 | drivers/char/tpqic02.c | if (status_error || (stat!=TE_OK)) { |
stat | 1713 | drivers/char/tpqic02.c | stat = tp_sense((dma_mode==READ)? TP_WRP : 0); |
stat | 1801 | drivers/char/tpqic02.c | int stat, r, i; |
stat | 1810 | drivers/char/tpqic02.c | stat = inb(QIC02_STAT_PORT); /* Knock, knock */ |
stat | 1812 | drivers/char/tpqic02.c | if (((stat & (AR_STAT_DMADONE)) == 0) && |
stat | 1813 | drivers/char/tpqic02.c | ((stat & (QIC02_STAT_EXCEPTION)) != 0)) { |
stat | 1819 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_EXCEPTION) == 0) { /* exception occurred */ |
stat | 1827 | drivers/char/tpqic02.c | printk(" status %02x\n", stat); |
stat | 1845 | drivers/char/tpqic02.c | if (stat & QIC02_STAT_READY) { /* not ready */ |
stat | 1924 | drivers/char/tpqic02.c | int stat; |
stat | 2014 | drivers/char/tpqic02.c | stat = start_dma(READ, bytes_todo); |
stat | 2015 | drivers/char/tpqic02.c | if (stat == TE_OK) { |
stat | 2022 | drivers/char/tpqic02.c | } else if (stat != TE_END) { |
stat | 2027 | drivers/char/tpqic02.c | printk("Trouble: stat==%02x\n", stat); |
stat | 407 | drivers/net/3c505.c | int stat; |
stat | 417 | drivers/net/3c505.c | while (((stat = get_status(dev->base_addr))&ACRF) == 0 && jiffies < timeout) |
stat | 428 | drivers/net/3c505.c | while (((stat = get_status(dev->base_addr)) & ACRF) == 0 && jiffies < timeout) |
stat | 447 | drivers/net/3c505.c | while (((stat = get_status(dev->base_addr))&ACRF) == 0 && j++ < 20000) |
stat | 452 | drivers/net/3c505.c | } while ((stat & ASF_PCB_MASK) != ASF_PCB_END && j < 20000); |
stat | 1031 | drivers/net/3c505.c | int stat; |
stat | 1035 | drivers/net/3c505.c | if (((stat=inb_status(dev->base_addr))&ACRF) != 0) |
stat | 1037 | drivers/net/3c505.c | printk("%s: status %#02x\n", dev->name, stat); |
stat | 163 | drivers/net/8390.c | if(ei_local->stat.tx_packets==0) |
stat | 302 | drivers/net/8390.c | ei_local->stat.rx_frame_errors += inb_p(e8390_base + EN0_COUNTER0); |
stat | 303 | drivers/net/8390.c | ei_local->stat.rx_crc_errors += inb_p(e8390_base + EN0_COUNTER1); |
stat | 304 | drivers/net/8390.c | ei_local->stat.rx_missed_errors+= inb_p(e8390_base + EN0_COUNTER2); |
stat | 385 | drivers/net/8390.c | if (status & ENTSR_COL) ei_local->stat.collisions++; |
stat | 387 | drivers/net/8390.c | ei_local->stat.tx_packets++; |
stat | 389 | drivers/net/8390.c | ei_local->stat.tx_errors++; |
stat | 390 | drivers/net/8390.c | if (status & ENTSR_ABT) ei_local->stat.tx_aborted_errors++; |
stat | 391 | drivers/net/8390.c | if (status & ENTSR_CRS) ei_local->stat.tx_carrier_errors++; |
stat | 392 | drivers/net/8390.c | if (status & ENTSR_FU) ei_local->stat.tx_fifo_errors++; |
stat | 393 | drivers/net/8390.c | if (status & ENTSR_CDH) ei_local->stat.tx_heartbeat_errors++; |
stat | 394 | drivers/net/8390.c | if (status & ENTSR_OWC) ei_local->stat.tx_window_errors++; |
stat | 450 | drivers/net/8390.c | ei_local->stat.rx_errors++; |
stat | 459 | drivers/net/8390.c | ei_local->stat.rx_errors++; |
stat | 468 | drivers/net/8390.c | ei_local->stat.rx_dropped++; |
stat | 478 | drivers/net/8390.c | ei_local->stat.rx_packets++; |
stat | 487 | drivers/net/8390.c | ei_local->stat.rx_fifo_errors++; |
stat | 526 | drivers/net/8390.c | ei_local->stat.rx_over_errors++; |
stat | 558 | drivers/net/8390.c | if (dev->start == 0) return &ei_local->stat; |
stat | 561 | drivers/net/8390.c | ei_local->stat.rx_frame_errors += inb_p(ioaddr + EN0_COUNTER0); |
stat | 562 | drivers/net/8390.c | ei_local->stat.rx_crc_errors += inb_p(ioaddr + EN0_COUNTER1); |
stat | 563 | drivers/net/8390.c | ei_local->stat.rx_missed_errors+= inb_p(ioaddr + EN0_COUNTER2); |
stat | 565 | drivers/net/8390.c | return &ei_local->stat; |
stat | 60 | drivers/net/8390.h | struct enet_statistics stat; |
stat | 115 | drivers/net/apricot.c | unsigned short stat; |
stat | 142 | drivers/net/apricot.c | unsigned long stat; |
stat | 161 | drivers/net/apricot.c | unsigned long stat; |
stat | 215 | drivers/net/apricot.c | rfd->stat = 0x0000; |
stat | 273 | drivers/net/apricot.c | lp->iscp.stat = 0x0001; |
stat | 284 | drivers/net/apricot.c | while (lp->iscp.stat) |
stat | 337 | drivers/net/apricot.c | while ((lp->scb.rfd->stat) & STAT_C) |
stat | 341 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & STAT_OK) |
stat | 368 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0001) lp->stats.collisions++; |
stat | 369 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0080) lp->stats.rx_length_errors++; |
stat | 370 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0100) lp->stats.rx_over_errors++; |
stat | 371 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0200) lp->stats.rx_fifo_errors++; |
stat | 372 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0400) lp->stats.rx_frame_errors++; |
stat | 373 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0800) lp->stats.rx_crc_errors++; |
stat | 374 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x1000) lp->stats.rx_length_errors++; |
stat | 377 | drivers/net/apricot.c | lp->scb.rfd->stat = 0; |
stat | 731 | drivers/net/ni52.c | unsigned short stat; |
stat | 742 | drivers/net/ni52.c | while((stat=p->scb->status & STAT_MASK)) |
stat | 744 | drivers/net/ni52.c | p->scb->cmd = stat; |
stat | 747 | drivers/net/ni52.c | if(stat & STAT_CX) /* command with I-bit set complete */ |
stat | 750 | drivers/net/ni52.c | if(stat & STAT_FR) /* received a frame */ |
stat | 754 | drivers/net/ni52.c | if(stat & STAT_CNA) /* CU went 'not ready' */ |
stat | 757 | drivers/net/ni52.c | printk("%s: oops! CU has left active state. stat: %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status); |
stat | 761 | drivers/net/ni52.c | if(stat & STAT_RNR) /* RU went 'not ready' */ |
stat | 771 | drivers/net/ni52.c | printk("%s: Receiver-Unit went 'NOT READY': %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status); |
stat | 133 | drivers/scsi/eata_pio.c | unchar stat,odd; |
stat | 154 | drivers/scsi/eata_pio.c | stat=inb(base+HA_RSTATUS); |
stat | 155 | drivers/scsi/eata_pio.c | if (stat&HA_SDRQ) |
stat | 216 | drivers/scsi/eata_pio.c | while ((stat&HA_SDRQ)||((stat&HA_SMORE)&&hd->moresupport)); |
stat | 221 | drivers/scsi/eata_pio.c | if (stat&HA_SBUSY) break; |
stat | 245 | drivers/scsi/eata_pio.c | if (stat != 0x50) |
stat | 246 | drivers/scsi/eata_pio.c | printk("stat: %#.2x, result: %#.8x\n", stat, cmd->result); |
stat | 392 | drivers/scsi/wd7000.c | unchar stat; /* (outgoing) completion status byte 1 */ |
stat | 268 | drivers/sound/gus_midi.c | unsigned char stat, data; |
stat | 273 | drivers/sound/gus_midi.c | stat = GUS_MIDI_STATUS (); |
stat | 275 | drivers/sound/gus_midi.c | if (stat & MIDI_RCV_FULL) |
stat | 282 | drivers/sound/gus_midi.c | if (stat & MIDI_XMIT_EMPTY) |
stat | 301 | drivers/sound/gus_midi.c | if (stat & MIDI_FRAME_ERR) |
stat | 303 | drivers/sound/gus_midi.c | if (stat & MIDI_OVERRUN && input_opened) |
stat | 274 | drivers/sound/pas2_midi.c | unsigned char stat; |
stat | 278 | drivers/sound/pas2_midi.c | stat = pas_read (MIDI_STATUS); |
stat | 280 | drivers/sound/pas2_midi.c | if (stat & M_S_INPUT_AVAIL) /* |
stat | 301 | drivers/sound/pas2_midi.c | if (stat & (M_S_OUTPUT_EMPTY | M_S_OUTPUT_HALF_EMPTY)) |
stat | 303 | drivers/sound/pas2_midi.c | if (!(stat & M_S_OUTPUT_EMPTY)) |
stat | 324 | drivers/sound/pas2_midi.c | if (stat & M_S_FRAMING_ERROR) |
stat | 328 | drivers/sound/pas2_midi.c | if (stat & M_S_OUTPUT_OVERRUN) |
stat | 330 | drivers/sound/pas2_midi.c | printk ("MIDI output overrun %x,%x,%d \n", pas_read (MIDI_FIFO_STATUS), stat, ofifo_bytes); |
stat | 334 | drivers/sound/pas2_midi.c | pas_write (stat, MIDI_STATUS); /* |
stat | 71 | fs/nfs/proc.c | static int nfs_stat_to_errno(int stat); |
stat | 896 | fs/nfs/proc.c | int stat; |
stat | 924 | fs/nfs/proc.c | static int nfs_stat_to_errno(int stat) |
stat | 928 | fs/nfs/proc.c | for (i = 0; nfs_errtbl[i].stat != -1; i++) { |
stat | 929 | fs/nfs/proc.c | if (nfs_errtbl[i].stat == stat) |
stat | 932 | fs/nfs/proc.c | printk("nfs_stat_to_errno: bad nfs status return value: %d\n", stat); |
stat | 279 | fs/umsdos/ioctl.c | data.stat.st_ino = inode->i_ino; |
stat | 280 | fs/umsdos/ioctl.c | data.stat.st_mode = inode->i_mode; |
stat | 281 | fs/umsdos/ioctl.c | data.stat.st_size = inode->i_size; |
stat | 282 | fs/umsdos/ioctl.c | data.stat.st_atime = inode->i_atime; |
stat | 283 | fs/umsdos/ioctl.c | data.stat.st_ctime = inode->i_ctime; |
stat | 284 | fs/umsdos/ioctl.c | data.stat.st_mtime = inode->i_mtime; |
stat | 285 | fs/umsdos/ioctl.c | memcpy_tofs (&idata->stat,&data.stat,sizeof(data.stat)); |
stat | 240 | include/linux/scc.h | struct scc_stat stat; /* statistical information */ |
stat | 118 | include/linux/umsdos_fs.h | }stat; |