tag | line | file | source code |
stat | 42 | arch/i386/boot/compressed/xtract.c | struct stat sb; |
stat | 94 | arch/i386/boot/tools/build.c | struct stat sb; |
stat | 101 | arch/i386/boot/tools/build.c | if (stat("/", &sb)) { |
stat | 108 | arch/i386/boot/tools/build.c | if (stat(argv[4], &sb)) { |
stat | 131 | drivers/block/hd.c | static void dump_status (char *msg, unsigned int stat) |
stat | 139 | drivers/block/hd.c | printk("hd%c: %s: status=0x%02x { ", devc, msg, stat & 0xff); |
stat | 140 | drivers/block/hd.c | if (stat & BUSY_STAT) printk("Busy "); |
stat | 141 | drivers/block/hd.c | if (stat & READY_STAT) printk("DriveReady "); |
stat | 142 | drivers/block/hd.c | if (stat & WRERR_STAT) printk("WriteFault "); |
stat | 143 | drivers/block/hd.c | if (stat & SEEK_STAT) printk("SeekComplete "); |
stat | 144 | drivers/block/hd.c | if (stat & DRQ_STAT) printk("DataRequest "); |
stat | 145 | drivers/block/hd.c | if (stat & ECC_STAT) printk("CorrectedError "); |
stat | 146 | drivers/block/hd.c | if (stat & INDEX_STAT) printk("Index "); |
stat | 147 | drivers/block/hd.c | if (stat & ERR_STAT) printk("Error "); |
stat | 149 | drivers/block/hd.c | if ((stat & ERR_STAT) == 0) { |
stat | 286 | drivers/block/hd.c | unsigned short stat = inb_p(HD_STATUS); |
stat | 291 | drivers/block/hd.c | if (stat & (BUSY_STAT|ERR_STAT)) { |
stat | 338 | drivers/block/hd.c | unsigned int dev = DEVICE_NR(CURRENT->dev), stat = inb_p(HD_STATUS); |
stat | 342 | drivers/block/hd.c | if (stat & (BUSY_STAT|ERR_STAT)) { |
stat | 344 | drivers/block/hd.c | dump_status("set multmode failed", stat); |
stat | 433 | drivers/block/hd.c | unsigned int stat = inb_p(HD_STATUS); |
stat | 435 | drivers/block/hd.c | if (stat & (BUSY_STAT|DRQ_STAT|ECC_STAT|ERR_STAT)) { |
stat | 436 | drivers/block/hd.c | dump_status ("unexpected interrupt", stat); |
stat | 465 | drivers/block/hd.c | int retries = 100000, stat; |
stat | 468 | drivers/block/hd.c | if ((stat = inb_p(HD_STATUS)) & DRQ_STAT) |
stat | 470 | drivers/block/hd.c | dump_status("wait_DRQ", stat); |
stat | 58 | drivers/block/ide-cd.c | int stat; |
stat | 185 | drivers/block/ide-cd.c | int stat, err; |
stat | 188 | drivers/block/ide-cd.c | stat = GET_STAT (dev->hwif); |
stat | 189 | drivers/block/ide-cd.c | *stat_ret = stat; |
stat | 191 | drivers/block/ide-cd.c | if (OK_STAT (stat, good_stat, BAD_RW_STAT)) |
stat | 223 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 246 | drivers/block/ide-cd.c | dump_status (dev->hwif, "packet command error", stat); |
stat | 247 | drivers/block/ide-cd.c | pc->stat = 1; /* signal error */ |
stat | 254 | drivers/block/ide-cd.c | ide_error (dev, "cdrom_decode_status", stat); |
stat | 422 | drivers/block/ide-cd.c | int stat; |
stat | 428 | drivers/block/ide-cd.c | if (cdrom_decode_status (dev, 0, &stat)) return; |
stat | 435 | drivers/block/ide-cd.c | if ((stat & DRQ_STAT) == 0) |
stat | 722 | drivers/block/ide-cd.c | int ireason, len, stat, thislen; |
stat | 727 | drivers/block/ide-cd.c | if (cdrom_decode_status (dev, 0, &stat)) return; |
stat | 735 | drivers/block/ide-cd.c | if ((stat & DRQ_STAT) == 0) |
stat | 743 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 763 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 792 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 817 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 849 | drivers/block/ide-cd.c | pc->stat = 0; |
stat | 903 | drivers/block/ide-cd.c | if (pc->stat != 0) |
stat | 1097 | drivers/block/ide-cd.c | int stat, ntracks, i; |
stat | 1122 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (dev, 0, 0, (char *)toc, |
stat | 1125 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1132 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (dev, 0, 0, (char *)toc, |
stat | 1135 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1261 | drivers/block/ide-cd.c | int stat, stat2; |
stat | 1264 | drivers/block/ide-cd.c | stat = cdrom_play_lba_range_play12 (dev, lba_start, lba_end); |
stat | 1265 | drivers/block/ide-cd.c | if (stat == 0) return 0; |
stat | 1269 | drivers/block/ide-cd.c | if (stat2) return stat; |
stat | 1282 | drivers/block/ide-cd.c | return stat; |
stat | 1291 | drivers/block/ide-cd.c | int stat, ntracks; |
stat | 1295 | drivers/block/ide-cd.c | stat = cdrom_read_toc (dev); |
stat | 1296 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1337 | drivers/block/ide-cd.c | int stat, lba_start, lba_end; |
stat | 1339 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *)arg, sizeof (msf)); |
stat | 1340 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1358 | drivers/block/ide-cd.c | int stat, lba_start, lba_end; |
stat | 1362 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *)arg, sizeof (ti)); |
stat | 1363 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1367 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (dev, ti.cdti_trk0, &first_toc); |
stat | 1368 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1369 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (dev, ti.cdti_trk1, &last_toc); |
stat | 1370 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1383 | drivers/block/ide-cd.c | int stat; |
stat | 1387 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, sizeof (tochdr)); |
stat | 1388 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1391 | drivers/block/ide-cd.c | stat = cdrom_read_toc (dev); |
stat | 1392 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1400 | drivers/block/ide-cd.c | return stat; |
stat | 1405 | drivers/block/ide-cd.c | int stat; |
stat | 1409 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (tocentry)); |
stat | 1410 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1411 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, sizeof (tocentry)); |
stat | 1412 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1416 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (dev, tocentry.cdte_track, &toce); |
stat | 1417 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1435 | drivers/block/ide-cd.c | return stat; |
stat | 1441 | drivers/block/ide-cd.c | int stat, abs_lba, rel_lba; |
stat | 1444 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, sizeof (subchnl)); |
stat | 1445 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1446 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (subchnl)); |
stat | 1447 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1451 | drivers/block/ide-cd.c | stat = cdrom_read_subchannel (dev, buffer, sizeof (buffer)); |
stat | 1452 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1483 | drivers/block/ide-cd.c | return stat; |
stat | 1490 | drivers/block/ide-cd.c | int stat; |
stat | 1492 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (volctrl)); |
stat | 1493 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1496 | drivers/block/ide-cd.c | stat = cdrom_mode_sense (dev, 0x0e, 0, buffer, sizeof (buffer)); |
stat | 1497 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1498 | drivers/block/ide-cd.c | stat = cdrom_mode_sense (dev, 0x0e, 1, mask , sizeof (buffer)); |
stat | 1499 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1514 | drivers/block/ide-cd.c | int stat; |
stat | 1519 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (pc.c)); |
stat | 1520 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1528 | drivers/block/ide-cd.c | int stat; |
stat | 1531 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, sizeof (reqbuf)); |
stat | 1532 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1534 | drivers/block/ide-cd.c | stat = cdrom_request_sense (dev, &reqbuf); |
stat | 1538 | drivers/block/ide-cd.c | return stat; |
stat | 237 | drivers/block/ide.c | #define OK_STAT(stat,good,bad) (((stat)&((good)|(bad)))==(good)) |
stat | 415 | drivers/block/ide.c | byte stat; \ |
stat | 425 | drivers/block/ide.c | if (!OK_STAT(stat=GET_STAT(DEV_HWIF), good, bad)) { \ |
stat | 426 | drivers/block/ide.c | ide_error(dev, msg " error", stat); \ |
stat | 509 | drivers/block/ide.c | static void end_drive_cmd (ide_dev_t *dev, byte stat, byte err) |
stat | 515 | drivers/block/ide.c | rq->errors = !OK_STAT(stat,READY_STAT,BAD_STAT); |
stat | 517 | drivers/block/ide.c | args[0] = stat; |
stat | 531 | drivers/block/ide.c | static byte dump_status (byte hwif, const char *msg, byte stat) |
stat | 540 | drivers/block/ide.c | printk("%s: %s: status=0x%02x", name, msg, stat); |
stat | 544 | drivers/block/ide.c | if (stat & BUSY_STAT) |
stat | 547 | drivers/block/ide.c | if (stat & READY_STAT) printk("DriveReady "); |
stat | 548 | drivers/block/ide.c | if (stat & WRERR_STAT) printk("WriteFault "); |
stat | 549 | drivers/block/ide.c | if (stat & SEEK_STAT) printk("SeekComplete "); |
stat | 550 | drivers/block/ide.c | if (stat & DRQ_STAT) printk("DataRequest "); |
stat | 551 | drivers/block/ide.c | if (stat & ECC_STAT) printk("CorrectedError "); |
stat | 552 | drivers/block/ide.c | if (stat & INDEX_STAT) printk("Index "); |
stat | 553 | drivers/block/ide.c | if (stat & ERR_STAT) printk("Error "); |
stat | 559 | drivers/block/ide.c | if ((stat & (BUSY_STAT|ERR_STAT)) == ERR_STAT) { |
stat | 604 | drivers/block/ide.c | static void ide_error (ide_dev_t *dev, const char *msg, byte stat) |
stat | 609 | drivers/block/ide.c | err = dump_status(DEV_HWIF, msg, stat); |
stat | 614 | drivers/block/ide.c | end_drive_cmd(dev, stat, err); |
stat | 618 | drivers/block/ide.c | if (stat & BUSY_STAT) { /* other bits are useless when BUSY */ |
stat | 621 | drivers/block/ide.c | if (dev->type == disk && (stat & ERR_STAT)) { |
stat | 628 | drivers/block/ide.c | if ((stat & DRQ_STAT) && rq->cmd == READ) { |
stat | 650 | drivers/block/ide.c | byte stat; |
stat | 655 | drivers/block/ide.c | if (!OK_STAT(stat=GET_STAT(DEV_HWIF),DATA_READY,BAD_RW_STAT)) { |
stat | 657 | drivers/block/ide.c | ide_error(dev, "read_intr", stat); |
stat | 694 | drivers/block/ide.c | byte stat; |
stat | 698 | drivers/block/ide.c | if (OK_STAT(stat=GET_STAT(DEV_HWIF),DRIVE_READY,BAD_RW_STAT)) { |
stat | 704 | drivers/block/ide.c | if ((rq->nr_sectors == 1) ^ ((stat & DRQ_STAT) != 0)) { |
stat | 722 | drivers/block/ide.c | ide_error(dev, "write_intr", stat); |
stat | 761 | drivers/block/ide.c | byte stat; |
stat | 765 | drivers/block/ide.c | if (OK_STAT(stat=GET_STAT(DEV_HWIF),DRIVE_READY,BAD_RW_STAT)) { |
stat | 766 | drivers/block/ide.c | if (stat & DRQ_STAT) { |
stat | 786 | drivers/block/ide.c | ide_error(dev, "multwrite_intr", stat); |
stat | 805 | drivers/block/ide.c | byte stat = GET_STAT(DEV_HWIF); |
stat | 808 | drivers/block/ide.c | if (!OK_STAT(stat,READY_STAT,BAD_STAT)) { |
stat | 811 | drivers/block/ide.c | (void) dump_status(DEV_HWIF, "set_multmode", stat); |
stat | 824 | drivers/block/ide.c | byte stat = GET_STAT(DEV_HWIF); |
stat | 827 | drivers/block/ide.c | if (!OK_STAT(stat,READY_STAT,BAD_STAT)) |
stat | 828 | drivers/block/ide.c | ide_error(dev, "set_geometry_intr", stat); |
stat | 834 | drivers/block/ide.c | byte stat = GET_STAT(DEV_HWIF); |
stat | 837 | drivers/block/ide.c | if (!OK_STAT(stat,READY_STAT,BAD_STAT)) |
stat | 838 | drivers/block/ide.c | ide_error(dev, "recal_intr", stat); |
stat | 844 | drivers/block/ide.c | byte stat = GET_STAT(DEV_HWIF); |
stat | 847 | drivers/block/ide.c | if (!OK_STAT(stat,READY_STAT,BAD_STAT)) |
stat | 848 | drivers/block/ide.c | ide_error(dev, "drive_cmd", stat); /* calls end_drive_cmd() */ |
stat | 850 | drivers/block/ide.c | end_drive_cmd (dev, stat, GET_ERR(DEV_HWIF)); |
stat | 1168 | drivers/block/ide.c | byte stat; |
stat | 1170 | drivers/block/ide.c | if (!OK_STAT(stat=GET_STAT(HWIF), DRIVE_READY, BAD_STAT)) |
stat | 1171 | drivers/block/ide.c | (void) dump_status(HWIF, "unexpected_intr", stat); |
stat | 1174 | drivers/block/ide.c | if (!OK_STAT(stat=GET_STAT(hwif^1), DRIVE_READY, BAD_STAT)) |
stat | 1175 | drivers/block/ide.c | (void) dump_status(hwif^1, "unexpected_intr", stat); |
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 | 383 | drivers/net/3c505.c | int stat; |
stat | 391 | drivers/net/3c505.c | while (((stat = GET_STATUS())&STATUS_ACRF) == 0 && jiffies < timeout) |
stat | 398 | drivers/net/3c505.c | if ((stat & ASF_PCB_MASK) != ASF_PCB_END) { |
stat | 402 | drivers/net/3c505.c | while (((stat = GET_STATUS())&STATUS_ACRF) == 0 && jiffies < timeout) |
stat | 411 | drivers/net/3c505.c | if ((stat & ASF_PCB_MASK) != ASF_PCB_END) { |
stat | 417 | drivers/net/3c505.c | while (((stat = GET_STATUS())&STATUS_ACRF) == 0 && jiffies < timeout) |
stat | 422 | drivers/net/3c505.c | } while ((stat & ASF_PCB_MASK) != ASF_PCB_END && jiffies < timeout); |
stat | 152 | drivers/net/8390.c | if(ei_local->stat.tx_packets==0) |
stat | 296 | drivers/net/8390.c | ei_local->stat.rx_frame_errors += inb_p(e8390_base + EN0_COUNTER0); |
stat | 297 | drivers/net/8390.c | ei_local->stat.rx_crc_errors += inb_p(e8390_base + EN0_COUNTER1); |
stat | 298 | drivers/net/8390.c | ei_local->stat.rx_missed_errors+= inb_p(e8390_base + EN0_COUNTER2); |
stat | 371 | drivers/net/8390.c | if (status & ENTSR_COL) ei_local->stat.collisions++; |
stat | 373 | drivers/net/8390.c | ei_local->stat.tx_packets++; |
stat | 375 | drivers/net/8390.c | ei_local->stat.tx_errors++; |
stat | 376 | drivers/net/8390.c | if (status & ENTSR_ABT) ei_local->stat.tx_aborted_errors++; |
stat | 377 | drivers/net/8390.c | if (status & ENTSR_CRS) ei_local->stat.tx_carrier_errors++; |
stat | 378 | drivers/net/8390.c | if (status & ENTSR_FU) ei_local->stat.tx_fifo_errors++; |
stat | 379 | drivers/net/8390.c | if (status & ENTSR_CDH) ei_local->stat.tx_heartbeat_errors++; |
stat | 380 | drivers/net/8390.c | if (status & ENTSR_OWC) ei_local->stat.tx_window_errors++; |
stat | 436 | drivers/net/8390.c | ei_local->stat.rx_errors++; |
stat | 445 | drivers/net/8390.c | ei_local->stat.rx_errors++; |
stat | 454 | drivers/net/8390.c | ei_local->stat.rx_dropped++; |
stat | 463 | drivers/net/8390.c | ei_local->stat.rx_packets++; |
stat | 472 | drivers/net/8390.c | ei_local->stat.rx_fifo_errors++; |
stat | 511 | drivers/net/8390.c | ei_local->stat.rx_over_errors++; |
stat | 543 | drivers/net/8390.c | ei_local->stat.rx_frame_errors += inb_p(ioaddr + EN0_COUNTER0); |
stat | 544 | drivers/net/8390.c | ei_local->stat.rx_crc_errors += inb_p(ioaddr + EN0_COUNTER1); |
stat | 545 | drivers/net/8390.c | ei_local->stat.rx_missed_errors+= inb_p(ioaddr + EN0_COUNTER2); |
stat | 547 | drivers/net/8390.c | return &ei_local->stat; |
stat | 61 | 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 | 732 | drivers/net/ni52.c | unsigned short stat; |
stat | 743 | drivers/net/ni52.c | while((stat=p->scb->status & STAT_MASK)) |
stat | 745 | drivers/net/ni52.c | p->scb->cmd = stat; |
stat | 748 | drivers/net/ni52.c | if(stat & STAT_CX) /* command with I-bit set complete */ |
stat | 751 | drivers/net/ni52.c | if(stat & STAT_FR) /* received a frame */ |
stat | 755 | drivers/net/ni52.c | if(stat & STAT_CNA) /* CU went 'not ready' */ |
stat | 758 | 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 | 762 | drivers/net/ni52.c | if(stat & STAT_RNR) /* RU went 'not ready' */ |
stat | 772 | drivers/net/ni52.c | printk("%s: Receiver-Unit went 'NOT READY': %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status); |
stat | 388 | drivers/scsi/wd7000.c | unchar stat; /* (outgoing) completion status byte 1 */ |
stat | 267 | drivers/sound/gus_midi.c | unsigned char stat, data; |
stat | 272 | drivers/sound/gus_midi.c | stat = GUS_MIDI_STATUS (); |
stat | 274 | drivers/sound/gus_midi.c | if (stat & MIDI_RCV_FULL) |
stat | 281 | drivers/sound/gus_midi.c | if (stat & MIDI_XMIT_EMPTY) |
stat | 299 | drivers/sound/gus_midi.c | if (stat & MIDI_FRAME_ERR) |
stat | 301 | drivers/sound/gus_midi.c | if (stat & MIDI_OVERRUN && input_opened) |
stat | 273 | drivers/sound/pas2_midi.c | unsigned char stat; |
stat | 277 | drivers/sound/pas2_midi.c | stat = pas_read (MIDI_STATUS); |
stat | 279 | drivers/sound/pas2_midi.c | if (stat & M_S_INPUT_AVAIL) /* |
stat | 300 | drivers/sound/pas2_midi.c | if (stat & (M_S_OUTPUT_EMPTY | M_S_OUTPUT_HALF_EMPTY)) |
stat | 302 | drivers/sound/pas2_midi.c | if (!(stat & M_S_OUTPUT_EMPTY)) |
stat | 322 | drivers/sound/pas2_midi.c | if (stat & M_S_FRAMING_ERROR) |
stat | 325 | drivers/sound/pas2_midi.c | if (stat & M_S_OUTPUT_OVERRUN) |
stat | 327 | drivers/sound/pas2_midi.c | printk ("MIDI output overrun %x,%x,%d \n", pas_read (MIDI_FIFO_STATUS), stat, ofifo_bytes); |
stat | 331 | 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 | 237 | fs/umsdos/ioctl.c | data.stat.st_ino = inode->i_ino; |
stat | 238 | fs/umsdos/ioctl.c | data.stat.st_mode = inode->i_mode; |
stat | 239 | fs/umsdos/ioctl.c | data.stat.st_size = inode->i_size; |
stat | 240 | fs/umsdos/ioctl.c | data.stat.st_atime = inode->i_atime; |
stat | 241 | fs/umsdos/ioctl.c | data.stat.st_ctime = inode->i_ctime; |
stat | 242 | fs/umsdos/ioctl.c | data.stat.st_mtime = inode->i_mtime; |
stat | 243 | fs/umsdos/ioctl.c | memcpy_tofs (&idata->stat,&data.stat,sizeof(data.stat)); |
stat | 116 | include/linux/umsdos_fs.h | }stat; |