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->rq_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 | 613 | drivers/block/ide-cd.c | int stat, err, sense_key, cmd; |
stat | 616 | drivers/block/ide-cd.c | stat = GET_STAT(); |
stat | 617 | drivers/block/ide-cd.c | *stat_ret = stat; |
stat | 619 | drivers/block/ide-cd.c | if (OK_STAT (stat, good_stat, BAD_R_STAT)) |
stat | 639 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 641 | drivers/block/ide-cd.c | if (ide_error (drive, "request sense failure", stat)) |
stat | 676 | drivers/block/ide-cd.c | ide_dump_status (drive, "packet command error", stat); |
stat | 687 | drivers/block/ide-cd.c | if ((stat & ERR_STAT) != 0) |
stat | 693 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 696 | drivers/block/ide-cd.c | if ((stat & ERR_STAT) != 0) |
stat | 730 | drivers/block/ide-cd.c | ide_dump_status (drive, "command error", stat); |
stat | 737 | drivers/block/ide-cd.c | if (ide_error (drive, "cdrom_decode_status", stat)) |
stat | 749 | drivers/block/ide-cd.c | if ((stat & ERR_STAT) != 0) |
stat | 938 | drivers/block/ide-cd.c | int stat; |
stat | 944 | drivers/block/ide-cd.c | if (cdrom_decode_status (drive, 0, &stat)) return; |
stat | 951 | drivers/block/ide-cd.c | if ((stat & DRQ_STAT) == 0) |
stat | 1222 | drivers/block/ide-cd.c | int ireason, len, stat, thislen; |
stat | 1227 | drivers/block/ide-cd.c | if (cdrom_decode_status (drive, 0, &stat)) return; |
stat | 1235 | drivers/block/ide-cd.c | if ((stat & DRQ_STAT) == 0) |
stat | 1252 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 1272 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 1301 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 1326 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 1353 | drivers/block/ide-cd.c | pc->stat = 0; |
stat | 1429 | drivers/block/ide-cd.c | if (pc->stat != 0) |
stat | 1454 | drivers/block/ide-cd.c | } while (pc->stat != 0 && retries >= 0); |
stat | 1458 | drivers/block/ide-cd.c | if (pc->stat != 0) |
stat | 1589 | drivers/block/ide-cd.c | int stat; |
stat | 1597 | drivers/block/ide-cd.c | stat = 0; |
stat | 1605 | drivers/block/ide-cd.c | stat = cdrom_queue_packet_command (drive, &pc); |
stat | 1608 | drivers/block/ide-cd.c | if (stat == 0) |
stat | 1618 | drivers/block/ide-cd.c | stat = 0; |
stat | 1622 | drivers/block/ide-cd.c | return stat; |
stat | 1683 | drivers/block/ide-cd.c | int stat; |
stat | 1693 | drivers/block/ide-cd.c | stat = cdrom_queue_packet_command (drive, &pc); |
stat | 1694 | drivers/block/ide-cd.c | if (stat == 0) |
stat | 1700 | drivers/block/ide-cd.c | return stat; |
stat | 1732 | drivers/block/ide-cd.c | int stat, ntracks, i; |
stat | 1764 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (drive, 0, msf_flag, 0, (char *)&toc->hdr, |
stat | 1768 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1775 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (drive, 0, msf_flag, 0, (char *)&toc->hdr, |
stat | 1779 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1793 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (drive, 0, msf_flag, 1, |
stat | 1796 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1810 | drivers/block/ide-cd.c | stat = cdrom_read_capacity (drive, &toc->capacity, reqbuf); |
stat | 1811 | drivers/block/ide-cd.c | if (stat) toc->capacity = 0x1fffff; |
stat | 1953 | drivers/block/ide-cd.c | int stat; |
stat | 1959 | drivers/block/ide-cd.c | stat = cdrom_play_lba_range_play12 (drive, lba_start, lba_end, reqbuf); |
stat | 1960 | drivers/block/ide-cd.c | if (stat == 0) return 0; |
stat | 1975 | drivers/block/ide-cd.c | return stat; |
stat | 1985 | drivers/block/ide-cd.c | int stat, ntracks; |
stat | 1989 | drivers/block/ide-cd.c | stat = cdrom_read_toc (drive, reqbuf); |
stat | 1990 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2015 | drivers/block/ide-cd.c | int stat; |
stat | 2037 | drivers/block/ide-cd.c | stat = cdrom_queue_packet_command (drive, &pc); |
stat | 2041 | drivers/block/ide-cd.c | if (stat && reqbuf->sense_key == ILLEGAL_REQUEST && reqbuf->asc == 0x20 && |
stat | 2050 | drivers/block/ide-cd.c | return stat; |
stat | 2061 | drivers/block/ide-cd.c | int stat; |
stat | 2066 | drivers/block/ide-cd.c | stat = cdrom_lockdoor (drive, 0, NULL); |
stat | 2067 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2089 | drivers/block/ide-cd.c | int stat; |
stat | 2091 | drivers/block/ide-cd.c | stat = cdrom_startstop (drive, 0, NULL); |
stat | 2092 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2100 | drivers/block/ide-cd.c | int stat, lba_start, lba_end; |
stat | 2102 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *)arg, sizeof (msf)); |
stat | 2103 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2121 | drivers/block/ide-cd.c | int stat, lba_start, lba_end; |
stat | 2125 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *)arg, sizeof (ti)); |
stat | 2126 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2130 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (drive, ti.cdti_trk0, &first_toc, NULL); |
stat | 2131 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2132 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (drive, ti.cdti_trk1, &last_toc, NULL); |
stat | 2133 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2146 | drivers/block/ide-cd.c | int stat; |
stat | 2150 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, sizeof (tochdr)); |
stat | 2151 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2154 | drivers/block/ide-cd.c | stat = cdrom_read_toc (drive, NULL); |
stat | 2155 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2163 | drivers/block/ide-cd.c | return stat; |
stat | 2168 | drivers/block/ide-cd.c | int stat; |
stat | 2172 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (tocentry)); |
stat | 2173 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2174 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, sizeof (tocentry)); |
stat | 2175 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2179 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (drive, tocentry.cdte_track, &toce, NULL); |
stat | 2180 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2198 | drivers/block/ide-cd.c | return stat; |
stat | 2204 | drivers/block/ide-cd.c | int stat, abs_lba, rel_lba; |
stat | 2207 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, sizeof (subchnl)); |
stat | 2208 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2209 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (subchnl)); |
stat | 2210 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2214 | drivers/block/ide-cd.c | stat = cdrom_read_subchannel (drive, buffer, sizeof (buffer), NULL); |
stat | 2215 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2246 | drivers/block/ide-cd.c | return stat; |
stat | 2253 | drivers/block/ide-cd.c | int stat; |
stat | 2255 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (volctrl)); |
stat | 2256 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2259 | drivers/block/ide-cd.c | stat = cdrom_mode_sense (drive, 0x0e, 0, buffer, sizeof (buffer),NULL); |
stat | 2260 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2261 | drivers/block/ide-cd.c | stat = cdrom_mode_sense (drive, 0x0e, 1, mask , sizeof (buffer),NULL); |
stat | 2262 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2278 | drivers/block/ide-cd.c | int stat; |
stat | 2280 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, sizeof (volctrl)); |
stat | 2281 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2283 | drivers/block/ide-cd.c | stat = cdrom_mode_sense (drive, 0x0e, 0, buffer, sizeof (buffer), NULL); |
stat | 2284 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2300 | drivers/block/ide-cd.c | int stat; |
stat | 2302 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *)arg, sizeof (ms_info)); |
stat | 2303 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2304 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *)arg, sizeof (ms_info)); |
stat | 2305 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2310 | drivers/block/ide-cd.c | stat = cdrom_read_toc (drive, NULL); |
stat | 2311 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2337 | drivers/block/ide-cd.c | int stat, lba; |
stat | 2343 | drivers/block/ide-cd.c | stat = cdrom_read_toc (drive, NULL); |
stat | 2344 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2348 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (char *)arg, sizeof (ra)); |
stat | 2349 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2358 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (char *)ra.buf, |
stat | 2360 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2377 | drivers/block/ide-cd.c | stat = cdrom_read_block (drive, 1, lba, buf, |
stat | 2379 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2393 | drivers/block/ide-cd.c | int blocksize, format, stat, lba; |
stat | 2408 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (char *)arg, sizeof (msf)); |
stat | 2409 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2410 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (char *)arg, blocksize); |
stat | 2411 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2418 | drivers/block/ide-cd.c | stat = cdrom_read_toc (drive, NULL); |
stat | 2419 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2426 | drivers/block/ide-cd.c | stat = cdrom_read_block (drive, format, lba, buf, blocksize, NULL); |
stat | 2427 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2448 | drivers/block/ide-cd.c | int stat; |
stat | 2454 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (pc.c)); |
stat | 2455 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2459 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (len)); |
stat | 2460 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2465 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, len); |
stat | 2466 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2479 | drivers/block/ide-cd.c | stat = cdrom_queue_packet_command (drive, &pc); |
stat | 2485 | drivers/block/ide-cd.c | return stat; |
stat | 2526 | drivers/block/ide-cd.c | int stat; |
stat | 2531 | drivers/block/ide-cd.c | stat = cdrom_check_status (drive, &my_reqbuf); |
stat | 2534 | drivers/block/ide-cd.c | if (stat && my_reqbuf.sense_key == NOT_READY) |
stat | 2537 | drivers/block/ide-cd.c | stat = cdrom_check_status (drive, &my_reqbuf); |
stat | 2541 | drivers/block/ide-cd.c | if (stat && my_reqbuf.sense_key != UNIT_ATTENTION) |
stat | 602 | drivers/block/ide.c | byte stat; |
stat | 607 | drivers/block/ide.c | if (!OK_STAT(stat=GET_STAT(), 0, BUSY_STAT)) { |
stat | 612 | drivers/block/ide.c | printk("%s: ATAPI reset timed-out, status=0x%02x\n", drive->name, stat); |
stat | 763 | drivers/block/ide.c | static void end_drive_cmd (ide_drive_t *drive, byte stat, byte err) |
stat | 769 | drivers/block/ide.c | rq->errors = !OK_STAT(stat,READY_STAT,BAD_STAT); |
stat | 771 | drivers/block/ide.c | args[0] = stat; |
stat | 785 | drivers/block/ide.c | byte ide_dump_status (ide_drive_t *drive, const char *msg, byte stat) |
stat | 792 | drivers/block/ide.c | printk("%s: %s: status=0x%02x", drive->name, msg, stat); |
stat | 796 | drivers/block/ide.c | if (stat & BUSY_STAT) |
stat | 799 | drivers/block/ide.c | if (stat & READY_STAT) printk("DriveReady "); |
stat | 800 | drivers/block/ide.c | if (stat & WRERR_STAT) printk("DeviceFault "); |
stat | 801 | drivers/block/ide.c | if (stat & SEEK_STAT) printk("SeekComplete "); |
stat | 802 | drivers/block/ide.c | if (stat & DRQ_STAT) printk("DataRequest "); |
stat | 803 | drivers/block/ide.c | if (stat & ECC_STAT) printk("CorrectedError "); |
stat | 804 | drivers/block/ide.c | if (stat & INDEX_STAT) printk("Index "); |
stat | 805 | drivers/block/ide.c | if (stat & ERR_STAT) printk("Error "); |
stat | 811 | drivers/block/ide.c | if ((stat & (BUSY_STAT|ERR_STAT)) == ERR_STAT) { |
stat | 876 | drivers/block/ide.c | int ide_error (ide_drive_t *drive, const char *msg, byte stat) |
stat | 881 | drivers/block/ide.c | err = ide_dump_status(drive, msg, stat); |
stat | 885 | drivers/block/ide.c | end_drive_cmd(drive, stat, err); |
stat | 888 | drivers/block/ide.c | if (stat & BUSY_STAT) { /* other bits are useless when BUSY */ |
stat | 891 | drivers/block/ide.c | if (drive->media == disk && (stat & ERR_STAT)) { |
stat | 898 | drivers/block/ide.c | if ((stat & DRQ_STAT) && rq->cmd != WRITE) |
stat | 930 | drivers/block/ide.c | byte stat; |
stat | 935 | drivers/block/ide.c | if (!OK_STAT(stat=GET_STAT(),DATA_READY,BAD_R_STAT)) { |
stat | 937 | drivers/block/ide.c | if (!ide_error(drive, "read_intr", stat)) |
stat | 976 | drivers/block/ide.c | byte stat; |
stat | 980 | drivers/block/ide.c | if (OK_STAT(stat=GET_STAT(),DRIVE_READY,drive->bad_wstat)) { |
stat | 986 | drivers/block/ide.c | if ((rq->nr_sectors == 1) ^ ((stat & DRQ_STAT) != 0)) { |
stat | 1004 | drivers/block/ide.c | if (!ide_error(drive, "write_intr", stat)) |
stat | 1050 | drivers/block/ide.c | byte stat; |
stat | 1054 | drivers/block/ide.c | if (OK_STAT(stat=GET_STAT(),DRIVE_READY,drive->bad_wstat)) { |
stat | 1055 | drivers/block/ide.c | if (stat & DRQ_STAT) { |
stat | 1074 | drivers/block/ide.c | if (!ide_error(drive, "multwrite_intr", stat)) |
stat | 1095 | drivers/block/ide.c | byte stat = GET_STAT(); |
stat | 1098 | drivers/block/ide.c | if (OK_STAT(stat,READY_STAT,BAD_STAT)) { |
stat | 1103 | drivers/block/ide.c | (void) ide_dump_status(drive, "set_multmode", 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, "set_geometry_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 | if (ide_error(drive, "recal_intr", stat)) |
stat | 1141 | drivers/block/ide.c | byte stat = GET_STAT(); |
stat | 1144 | drivers/block/ide.c | if (OK_STAT(stat,READY_STAT,BAD_STAT)) |
stat | 1145 | drivers/block/ide.c | end_drive_cmd (drive, stat, GET_ERR()); |
stat | 1146 | drivers/block/ide.c | else if (ide_error(drive, "drive_cmd", stat)) /* calls end_drive_cmd */ |
stat | 1203 | drivers/block/ide.c | byte stat; |
stat | 1207 | drivers/block/ide.c | if (OK_STAT((stat = GET_STAT()), good, bad)) |
stat | 1209 | drivers/block/ide.c | if (!(stat & BUSY_STAT)) { |
stat | 1210 | drivers/block/ide.c | (void) ide_error(drive, "status error", stat); |
stat | 1218 | drivers/block/ide.c | if (!((stat = GET_STAT()) & BUSY_STAT)) { |
stat | 1539 | drivers/block/ide.c | byte stat; |
stat | 1565 | drivers/block/ide.c | if (!OK_STAT(stat=GET_STAT(), drive->ready_stat, BAD_STAT)) |
stat | 1566 | drivers/block/ide.c | (void) ide_dump_status(drive, "unexpected_intr", stat); |
stat | 1567 | drivers/block/ide.c | if ((stat & DRQ_STAT)) |
stat | 128 | drivers/block/ide.h | #define OK_STAT(stat,good,bad) (((stat)&((good)|(bad)))==(good)) |
stat | 177 | drivers/block/ide.h | int stat; |
stat | 399 | drivers/block/ide.h | byte ide_dump_status (ide_drive_t *drive, const char *msg, byte stat); |
stat | 408 | drivers/block/ide.h | int ide_error (ide_drive_t *drive, const char *msg, byte stat); |
stat | 129 | drivers/block/triton.c | byte stat, dma_stat; |
stat | 136 | drivers/block/triton.c | stat = GET_STAT(); /* get drive status */ |
stat | 137 | drivers/block/triton.c | if (OK_STAT(stat,DRIVE_READY,drive->bad_wstat|DRQ_STAT)) { |
stat | 150 | drivers/block/triton.c | if (!ide_error(drive, "dma_intr", stat)) |
stat | 1158 | drivers/cdrom/sjcd.c | unsigned char stat; |
stat | 1160 | drivers/cdrom/sjcd.c | sjcd_s_data: stat = inb( SJCDPORT( 1 ) ); |
stat | 1162 | drivers/cdrom/sjcd.c | printk( "SJCD_S_DATA: status = 0x%02x\n", stat ); |
stat | 1164 | drivers/cdrom/sjcd.c | if( SJCD_STATUS_AVAILABLE( stat ) ){ |
stat | 1192 | drivers/cdrom/sjcd.c | } else if( SJCD_DATA_AVAILABLE( stat ) ){ |
stat | 1273 | drivers/cdrom/sjcd.c | unsigned char stat; |
stat | 1275 | drivers/cdrom/sjcd.c | stat = inb( SJCDPORT( 1 ) ); |
stat | 1277 | drivers/cdrom/sjcd.c | printk( "SJCD_S_STOP: status = 0x%02x\n", stat ); |
stat | 1279 | drivers/cdrom/sjcd.c | if( SJCD_DATA_AVAILABLE( stat ) ){ |
stat | 1289 | drivers/cdrom/sjcd.c | } else if( SJCD_STATUS_AVAILABLE( stat ) ){ |
stat | 633 | drivers/char/scc.c | scc->stat.tx_state = TXS_NEWFRAME; |
stat | 636 | drivers/char/scc.c | scc->stat.tx_state = TXS_BUSY; |
stat | 648 | drivers/char/scc.c | scc->stat.txints++; |
stat | 657 | drivers/char/scc.c | if (--scc->stat.tx_queued < 0) |
stat | 658 | drivers/char/scc.c | scc->stat.tx_queued = 0; |
stat | 666 | drivers/char/scc.c | if (scc->stat.tx_state == TXS_NEWFRAME) |
stat | 675 | drivers/char/scc.c | scc->stat.tx_state = TXS_ACTIVE;/* next byte... */ |
stat | 713 | drivers/char/scc.c | scc->stat.rxerrs++; /* then count it as an error */ |
stat | 727 | drivers/char/scc.c | scc->stat.exints++; |
stat | 766 | drivers/char/scc.c | if ((scc->stat.tx_state == TXS_ACTIVE) && (status & TxEOM)) |
stat | 768 | drivers/char/scc.c | scc->stat.tx_under++; /* oops, an underrun! count 'em */ |
stat | 774 | drivers/char/scc.c | if (--scc->stat.tx_queued < 0) scc->stat.tx_queued = 0; |
stat | 780 | drivers/char/scc.c | scc->stat.tx_under = 9999; /* errr... yes. */ |
stat | 784 | drivers/char/scc.c | if (--scc->stat.tx_queued < 0) scc->stat.tx_queued = 0; |
stat | 800 | drivers/char/scc.c | scc->stat.rxints++; |
stat | 828 | drivers/char/scc.c | scc->stat.nospace++; /* and count this error */ |
stat | 866 | drivers/char/scc.c | scc->stat.spints++; |
stat | 874 | drivers/char/scc.c | scc->stat.rx_over++; /* count them */ |
stat | 892 | drivers/char/scc.c | scc->stat.rxframes++; |
stat | 893 | drivers/char/scc.c | scc->stat.rx_queued++; |
stat | 897 | drivers/char/scc.c | scc->stat.rxerrs++; |
stat | 1160 | drivers/char/scc.c | if (scc->stat.tx_state != TXS_BUSY) |
stat | 1182 | drivers/char/scc.c | scc->stat.tx_state = TXS_BUSY; |
stat | 1186 | drivers/char/scc.c | scc->stat.tx_state = TXS_IDLE; |
stat | 1194 | drivers/char/scc.c | scc->stat.tx_state = TXS_BUSY; |
stat | 1213 | drivers/char/scc.c | scc->stat.tx_state = TXS_IDLE; |
stat | 1228 | drivers/char/scc.c | scc->stat.tx_state = TXS_BUSY; |
stat | 1236 | drivers/char/scc.c | if (scc->stat.rx_queued > QUEUE_THRES) |
stat | 1241 | drivers/char/scc.c | " (%d) but queue is empty\n", scc->stat.rx_queued); |
stat | 1243 | drivers/char/scc.c | scc->stat.rx_queued = 0; /* correct it */ |
stat | 1244 | drivers/char/scc.c | scc->stat.nospace = 12345; /* draw attention to it */ |
stat | 1250 | drivers/char/scc.c | while (bp && (scc->stat.rx_queued > QUEUE_HYST)) |
stat | 1253 | drivers/char/scc.c | scc->stat.rx_queued--; |
stat | 1254 | drivers/char/scc.c | scc->stat.nospace++; |
stat | 1322 | drivers/char/scc.c | scc->stat.tx_state = TXS_IDLE; |
stat | 1454 | drivers/char/scc.c | scc->stat.txframes++; |
stat | 1455 | drivers/char/scc.c | scc->stat.tx_queued++; |
stat | 1460 | drivers/char/scc.c | if(scc->stat.tx_state == TXS_IDLE) |
stat | 1463 | drivers/char/scc.c | scc->stat.tx_state = TXS_BUSY; |
stat | 1489 | drivers/char/scc.c | switch (scc->stat.tx_kiss_state) |
stat | 1497 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_DATA; |
stat | 1498 | drivers/char/scc.c | } else scc->stat.txerrs++; |
stat | 1503 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_ESCAPE; |
stat | 1507 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_IDLE; |
stat | 1516 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_DATA; |
stat | 1521 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_DATA; |
stat | 1527 | drivers/char/scc.c | scc->stat.txerrs++; |
stat | 1528 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_IDLE; |
stat | 1550 | drivers/char/scc.c | scc->stat.rx_kiss_state = KISS_IDLE; |
stat | 1562 | drivers/char/scc.c | if (scc->stat.rx_kiss_state == KISS_IDLE) |
stat | 1569 | drivers/char/scc.c | scc->stat.rx_kiss_state = KISS_RXFRAME; |
stat | 1603 | drivers/char/scc.c | if (--scc->stat.rx_queued < 0) |
stat | 1604 | drivers/char/scc.c | scc->stat.rx_queued = 0; |
stat | 1606 | drivers/char/scc.c | if (scc->stat.rx_kiss_state == KISS_RXFRAME) /* new packet? */ |
stat | 1609 | drivers/char/scc.c | scc->stat.rx_kiss_state = KISS_IDLE; /* generate FEND for new frame */ |
stat | 1746 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_IDLE; /* don't change this... */ |
stat | 1747 | drivers/char/scc.c | scc->stat.rx_kiss_state = KISS_IDLE; /* ...or this */ |
stat | 1805 | drivers/char/scc.c | if (scc->stat.tx_state == 0) /* only switch baudrate on rx... ;-) */ |
stat | 1962 | drivers/char/scc.c | if(scc->stat.tx_state == TXS_IDLE && !Running(t_idle)) |
stat | 2000 | drivers/char/scc.c | scc->stat.used_buf = scc_count_used_buffers(&scc->stat.rx_alloc, |
stat | 2001 | drivers/char/scc.c | &scc->stat.tx_alloc); |
stat | 2003 | drivers/char/scc.c | memcpy_tofs((void *) arg, &scc->stat, sizeof(struct scc_stat)); |
stat | 2110 | drivers/char/scc.c | if (scc->stat.tx_queued > QUEUE_THRES) |
stat | 2115 | drivers/char/scc.c | " (%d) but queue is empty\n", scc->stat.tx_queued); |
stat | 2117 | drivers/char/scc.c | scc->stat.tx_queued = 0; /* correct it */ |
stat | 2118 | drivers/char/scc.c | scc->stat.nospace = 54321; /* draw attention to it */ |
stat | 2124 | drivers/char/scc.c | while (bp && (scc->stat.tx_queued > QUEUE_HYST)) |
stat | 2127 | drivers/char/scc.c | scc->stat.tx_queued--; |
stat | 2128 | drivers/char/scc.c | scc->stat.nospace++; |
stat | 2174 | drivers/char/scc.c | scc->stat.nospace++; |
stat | 2216 | drivers/char/scc.c | if (scc->stat.tx_alloc >= QUEUE_THRES) |
stat | 2242 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_IDLE; |
stat | 646 | drivers/char/tpqic02.c | { int stat = inb_p(QIC02_STAT_PORT); |
stat | 647 | drivers/char/tpqic02.c | status_dead = ((stat & QIC02_STAT_RESETMASK) != QIC02_STAT_RESETVAL); } |
stat | 721 | drivers/char/tpqic02.c | int stat; |
stat | 731 | drivers/char/tpqic02.c | while (((stat = inb_p(QIC02_STAT_PORT) & QIC02_STAT_MASK) == QIC02_STAT_MASK) && (--spin_t>0)) |
stat | 733 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_READY) == 0) |
stat | 743 | drivers/char/tpqic02.c | while (((stat = inb_p(QIC02_STAT_PORT) & QIC02_STAT_MASK) == QIC02_STAT_MASK) && (jiffies<spin_t)) |
stat | 745 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_READY) == 0) |
stat | 758 | drivers/char/tpqic02.c | while (((stat = inb_p(QIC02_STAT_PORT) & QIC02_STAT_MASK) == QIC02_STAT_MASK) && (jiffies<spin_t)) { |
stat | 766 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_MASK) == QIC02_STAT_MASK) { |
stat | 771 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_EXCEPTION) == 0) { |
stat | 784 | drivers/char/tpqic02.c | int i, stat; |
stat | 788 | drivers/char/tpqic02.c | stat = wait_for_ready(TIM_S); |
stat | 789 | drivers/char/tpqic02.c | if (stat != TE_OK) |
stat | 790 | drivers/char/tpqic02.c | return stat; |
stat | 792 | drivers/char/tpqic02.c | stat = notify_cmd(sb[i], ignore_ex); |
stat | 793 | drivers/char/tpqic02.c | if (stat != TE_OK) |
stat | 794 | drivers/char/tpqic02.c | return stat; |
stat | 810 | drivers/char/tpqic02.c | int stat; |
stat | 812 | drivers/char/tpqic02.c | stat = inb_p(QIC02_STAT_PORT); |
stat | 813 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_EXCEPTION) == 0) { /* if exception */ |
stat | 817 | drivers/char/tpqic02.c | if (stat & QIC02_STAT_READY) { /* if not ready */ |
stat | 829 | drivers/char/tpqic02.c | stat = notify_cmd(cmd, ignore_ex); /* tell drive new command was loaded, */ |
stat | 833 | drivers/char/tpqic02.c | stat = send_qic02_data(seek_addr_buf, sizeof(seek_addr_buf), ignore_ex); |
stat | 836 | drivers/char/tpqic02.c | if (stat != TE_OK) { |
stat | 839 | drivers/char/tpqic02.c | return stat; |
stat | 928 | drivers/char/tpqic02.c | int stat = rdstatus((char *) stp, TPSTATSIZE, QCMD_RD_STAT); |
stat | 935 | drivers/char/tpqic02.c | return stat; |
stat | 950 | drivers/char/tpqic02.c | int stat, i; |
stat | 953 | drivers/char/tpqic02.c | stat = rdstatus(vus, sizeof(vus), QCMD_RD_STAT_X3); |
stat | 954 | drivers/char/tpqic02.c | if (stat != TE_OK) |
stat | 955 | drivers/char/tpqic02.c | return stat; |
stat | 1058 | drivers/char/tpqic02.c | int stat; |
stat | 1060 | drivers/char/tpqic02.c | stat = inb(QIC02_STAT_PORT) & QIC02_STAT_MASK; |
stat | 1062 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": Waiting for (re-)wind to finish: stat=0x%x\n", stat); |
stat | 1064 | drivers/char/tpqic02.c | stat = wait_for_ready(timeout); |
stat | 1066 | drivers/char/tpqic02.c | if (stat != TE_OK) { |
stat | 1069 | drivers/char/tpqic02.c | return stat; |
stat | 1082 | drivers/char/tpqic02.c | int stat; |
stat | 1089 | drivers/char/tpqic02.c | stat = wait_for_ready(timeout); /* wait for ready or exception */ |
stat | 1090 | drivers/char/tpqic02.c | if (stat == TE_EX) { |
stat | 1094 | drivers/char/tpqic02.c | stat = TE_OK; |
stat | 1096 | drivers/char/tpqic02.c | if (stat != TE_OK) { |
stat | 1107 | drivers/char/tpqic02.c | stat = send_qic02_cmd(cmd, timeout, 0); /* (checks for exceptions) */ |
stat | 1131 | drivers/char/tpqic02.c | if (stat==TE_EX) { |
stat | 1139 | drivers/char/tpqic02.c | else if (stat!=TE_OK) { |
stat | 1140 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": ll_do_qic_cmd: send_qic02_cmd failed, stat = 0x%x\n", stat); |
stat | 1146 | drivers/char/tpqic02.c | stat = wait_for_rewind(timeout); |
stat | 1148 | drivers/char/tpqic02.c | stat = wait_for_ready(timeout); |
stat | 1150 | drivers/char/tpqic02.c | if (stat==TE_EX) { |
stat | 1161 | drivers/char/tpqic02.c | else if (stat!=TE_OK) { |
stat | 1162 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": ll_do_qic_cmd %x: wait failed, stat == 0x%x\n", cmd, stat); |
stat | 1224 | drivers/char/tpqic02.c | int stat; |
stat | 1231 | drivers/char/tpqic02.c | stat = ll_do_qic_cmd(QCMD_WRT_FM, TIM_M); |
stat | 1232 | drivers/char/tpqic02.c | if (stat != TE_OK) |
stat | 1263 | drivers/char/tpqic02.c | int stat; |
stat | 1270 | drivers/char/tpqic02.c | stat = ll_do_qic_cmd(QCMD_REWIND, TIM_R); |
stat | 1271 | drivers/char/tpqic02.c | if (stat != 0) { |
stat | 1272 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": rewind failed in do_qic_cmd(). stat=0x%2x", stat); |
stat | 1273 | drivers/char/tpqic02.c | return stat; |
stat | 1290 | drivers/char/tpqic02.c | int stat; |
stat | 1314 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_RD_FM_BCK, TIM_F); |
stat | 1316 | drivers/char/tpqic02.c | stat = -ENXIO; |
stat | 1319 | drivers/char/tpqic02.c | return stat; |
stat | 1326 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_SPACE_FWD, TIM_F); |
stat | 1330 | drivers/char/tpqic02.c | stat = -ENXIO; |
stat | 1332 | drivers/char/tpqic02.c | return stat; |
stat | 1340 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_SPACE_BCK, TIM_F); |
stat | 1343 | drivers/char/tpqic02.c | stat = -ENXIO; |
stat | 1346 | drivers/char/tpqic02.c | return stat; |
stat | 1376 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_REWIND, TIM_R); |
stat | 1377 | drivers/char/tpqic02.c | return stat; |
stat | 1432 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_REWIND, TIM_R); |
stat | 1433 | drivers/char/tpqic02.c | if (stat) |
stat | 1434 | drivers/char/tpqic02.c | return stat; |
stat | 1435 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_SEEK_EOD, TIM_F); |
stat | 1439 | drivers/char/tpqic02.c | stat = 0; |
stat | 1440 | drivers/char/tpqic02.c | while ((stat==0) && (!status_eom_detected)) { |
stat | 1441 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_RD_FM, TIM_F); /***** should use MTFSFM here???? ******/ |
stat | 1446 | drivers/char/tpqic02.c | return stat; |
stat | 1472 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_SELF_TST1, TIM_R); |
stat | 1473 | drivers/char/tpqic02.c | if (stat != 0) { |
stat | 1475 | drivers/char/tpqic02.c | return stat; |
stat | 1485 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_SELF_TST2, TIM_R); |
stat | 1486 | drivers/char/tpqic02.c | if (stat != 0) { |
stat | 1488 | drivers/char/tpqic02.c | return stat; |
stat | 1581 | drivers/char/tpqic02.c | int stat; |
stat | 1612 | drivers/char/tpqic02.c | stat = tp_sense(((mode == WRITE)? 0 : TP_WRP) | TP_BOM | TP_FIL); |
stat | 1613 | drivers/char/tpqic02.c | if (stat != TE_OK) |
stat | 1614 | drivers/char/tpqic02.c | return stat; |
stat | 1632 | drivers/char/tpqic02.c | stat = send_qic02_cmd((mode == WRITE)? QCMD_WRT_DATA : QCMD_RD_DATA, TIM_M, 0); |
stat | 1633 | drivers/char/tpqic02.c | if (stat!=TE_OK) { |
stat | 1637 | drivers/char/tpqic02.c | return stat; |
stat | 1695 | drivers/char/tpqic02.c | int stat = TE_OK; |
stat | 1713 | drivers/char/tpqic02.c | stat = wait_for_ready(TIM_M); |
stat | 1714 | drivers/char/tpqic02.c | if (status_error || (stat!=TE_OK)) { |
stat | 1716 | drivers/char/tpqic02.c | stat = tp_sense((dma_mode==READ)? TP_WRP : 0); |
stat | 1804 | drivers/char/tpqic02.c | int stat, r, i; |
stat | 1813 | drivers/char/tpqic02.c | stat = inb(QIC02_STAT_PORT); /* Knock, knock */ |
stat | 1815 | drivers/char/tpqic02.c | if (((stat & (AR_STAT_DMADONE)) == 0) && |
stat | 1816 | drivers/char/tpqic02.c | ((stat & (QIC02_STAT_EXCEPTION)) != 0)) { |
stat | 1822 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_EXCEPTION) == 0) { /* exception occurred */ |
stat | 1830 | drivers/char/tpqic02.c | printk(" status %02x\n", stat); |
stat | 1848 | drivers/char/tpqic02.c | if (stat & QIC02_STAT_READY) { /* not ready */ |
stat | 1927 | drivers/char/tpqic02.c | int stat; |
stat | 2017 | drivers/char/tpqic02.c | stat = start_dma(READ, bytes_todo); |
stat | 2018 | drivers/char/tpqic02.c | if (stat == TE_OK) { |
stat | 2025 | drivers/char/tpqic02.c | } else if (stat != TE_END) { |
stat | 2030 | drivers/char/tpqic02.c | printk("Trouble: stat==%02x\n", stat); |
stat | 404 | drivers/net/3c505.c | int stat; |
stat | 414 | drivers/net/3c505.c | while (((stat = get_status(dev->base_addr))&ACRF) == 0 && jiffies < timeout) |
stat | 425 | drivers/net/3c505.c | while (((stat = get_status(dev->base_addr)) & ACRF) == 0 && jiffies < timeout) |
stat | 444 | drivers/net/3c505.c | while (((stat = get_status(dev->base_addr))&ACRF) == 0 && j++ < 20000) |
stat | 449 | 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 | 170 | drivers/net/8390.c | if (!isr && !ei_local->stat.tx_packets) { |
stat | 311 | drivers/net/8390.c | ei_local->stat.rx_frame_errors += inb_p(e8390_base + EN0_COUNTER0); |
stat | 312 | drivers/net/8390.c | ei_local->stat.rx_crc_errors += inb_p(e8390_base + EN0_COUNTER1); |
stat | 313 | drivers/net/8390.c | ei_local->stat.rx_missed_errors+= inb_p(e8390_base + EN0_COUNTER2); |
stat | 394 | drivers/net/8390.c | if (status & ENTSR_COL) ei_local->stat.collisions++; |
stat | 396 | drivers/net/8390.c | ei_local->stat.tx_packets++; |
stat | 398 | drivers/net/8390.c | ei_local->stat.tx_errors++; |
stat | 399 | drivers/net/8390.c | if (status & ENTSR_ABT) ei_local->stat.tx_aborted_errors++; |
stat | 400 | drivers/net/8390.c | if (status & ENTSR_CRS) ei_local->stat.tx_carrier_errors++; |
stat | 401 | drivers/net/8390.c | if (status & ENTSR_FU) ei_local->stat.tx_fifo_errors++; |
stat | 402 | drivers/net/8390.c | if (status & ENTSR_CDH) ei_local->stat.tx_heartbeat_errors++; |
stat | 403 | drivers/net/8390.c | if (status & ENTSR_OWC) ei_local->stat.tx_window_errors++; |
stat | 458 | drivers/net/8390.c | ei_local->stat.rx_errors++; |
stat | 467 | drivers/net/8390.c | ei_local->stat.rx_errors++; |
stat | 476 | drivers/net/8390.c | ei_local->stat.rx_dropped++; |
stat | 485 | drivers/net/8390.c | ei_local->stat.rx_packets++; |
stat | 494 | drivers/net/8390.c | ei_local->stat.rx_fifo_errors++; |
stat | 533 | drivers/net/8390.c | ei_local->stat.rx_over_errors++; |
stat | 565 | drivers/net/8390.c | if (dev->start == 0) return &ei_local->stat; |
stat | 568 | drivers/net/8390.c | ei_local->stat.rx_frame_errors += inb_p(ioaddr + EN0_COUNTER0); |
stat | 569 | drivers/net/8390.c | ei_local->stat.rx_crc_errors += inb_p(ioaddr + EN0_COUNTER1); |
stat | 570 | drivers/net/8390.c | ei_local->stat.rx_missed_errors+= inb_p(ioaddr + EN0_COUNTER2); |
stat | 572 | drivers/net/8390.c | return &ei_local->stat; |
stat | 70 | drivers/net/8390.h | struct enet_statistics stat; |
stat | 112 | drivers/net/apricot.c | unsigned short stat; |
stat | 139 | drivers/net/apricot.c | unsigned long stat; |
stat | 158 | drivers/net/apricot.c | unsigned long stat; |
stat | 212 | drivers/net/apricot.c | rfd->stat = 0x0000; |
stat | 270 | drivers/net/apricot.c | lp->iscp.stat = 0x0001; |
stat | 281 | drivers/net/apricot.c | while (lp->iscp.stat) |
stat | 334 | drivers/net/apricot.c | while ((lp->scb.rfd->stat) & STAT_C) |
stat | 338 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & STAT_OK) |
stat | 365 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0001) lp->stats.collisions++; |
stat | 366 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0080) lp->stats.rx_length_errors++; |
stat | 367 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0100) lp->stats.rx_over_errors++; |
stat | 368 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0200) lp->stats.rx_fifo_errors++; |
stat | 369 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0400) lp->stats.rx_frame_errors++; |
stat | 370 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0800) lp->stats.rx_crc_errors++; |
stat | 371 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x1000) lp->stats.rx_length_errors++; |
stat | 374 | 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 | 138 | drivers/scsi/eata_pio.c | unchar stat,odd; |
stat | 159 | drivers/scsi/eata_pio.c | stat=inb(base+HA_RSTATUS); |
stat | 160 | drivers/scsi/eata_pio.c | if (stat&HA_SDRQ) |
stat | 221 | drivers/scsi/eata_pio.c | while ((stat&HA_SDRQ)||((stat&HA_SMORE)&&hd->moresupport)); |
stat | 226 | drivers/scsi/eata_pio.c | if (stat&HA_SBUSY) break; |
stat | 250 | drivers/scsi/eata_pio.c | if (stat != 0x50) |
stat | 251 | drivers/scsi/eata_pio.c | printk("stat: %#.2x, result: %#.8x\n", stat, cmd->result); |
stat | 399 | drivers/scsi/wd7000.c | unchar stat; /* (outgoing) completion status byte 1 */ |
stat | 273 | drivers/sound/gus_midi.c | unsigned char stat, data; |
stat | 279 | drivers/sound/gus_midi.c | stat = GUS_MIDI_STATUS (); |
stat | 281 | drivers/sound/gus_midi.c | if (stat & MIDI_RCV_FULL) |
stat | 288 | drivers/sound/gus_midi.c | if (stat & MIDI_XMIT_EMPTY) |
stat | 277 | drivers/sound/pas2_midi.c | unsigned char stat; |
stat | 281 | drivers/sound/pas2_midi.c | stat = pas_read (MIDI_STATUS); |
stat | 283 | drivers/sound/pas2_midi.c | if (stat & M_S_INPUT_AVAIL) /* |
stat | 304 | drivers/sound/pas2_midi.c | if (stat & (M_S_OUTPUT_EMPTY | M_S_OUTPUT_HALF_EMPTY)) |
stat | 306 | drivers/sound/pas2_midi.c | if (!(stat & M_S_OUTPUT_EMPTY)) |
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 | 67 | fs/nfs/proc.c | static int nfs_stat_to_errno(int stat); |
stat | 909 | fs/nfs/proc.c | int stat; |
stat | 937 | fs/nfs/proc.c | static int nfs_stat_to_errno(int stat) |
stat | 941 | fs/nfs/proc.c | for (i = 0; nfs_errtbl[i].stat != -1; i++) { |
stat | 942 | fs/nfs/proc.c | if (nfs_errtbl[i].stat == stat) |
stat | 945 | fs/nfs/proc.c | printk("nfs_stat_to_errno: bad nfs status return value: %d\n", stat); |
stat | 276 | fs/umsdos/ioctl.c | data.stat.st_ino = inode->i_ino; |
stat | 277 | fs/umsdos/ioctl.c | data.stat.st_mode = inode->i_mode; |
stat | 278 | fs/umsdos/ioctl.c | data.stat.st_size = inode->i_size; |
stat | 279 | fs/umsdos/ioctl.c | data.stat.st_atime = inode->i_atime; |
stat | 280 | fs/umsdos/ioctl.c | data.stat.st_ctime = inode->i_ctime; |
stat | 281 | fs/umsdos/ioctl.c | data.stat.st_mtime = inode->i_mtime; |
stat | 282 | 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; |