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 | 135 | drivers/block/hd.c | static void dump_status (char *msg, unsigned int stat) |
stat | 143 | drivers/block/hd.c | printk("hd%c: %s: status=0x%02x { ", devc, msg, stat & 0xff); |
stat | 144 | drivers/block/hd.c | if (stat & BUSY_STAT) printk("Busy "); |
stat | 145 | drivers/block/hd.c | if (stat & READY_STAT) printk("DriveReady "); |
stat | 146 | drivers/block/hd.c | if (stat & WRERR_STAT) printk("WriteFault "); |
stat | 147 | drivers/block/hd.c | if (stat & SEEK_STAT) printk("SeekComplete "); |
stat | 148 | drivers/block/hd.c | if (stat & DRQ_STAT) printk("DataRequest "); |
stat | 149 | drivers/block/hd.c | if (stat & ECC_STAT) printk("CorrectedError "); |
stat | 150 | drivers/block/hd.c | if (stat & INDEX_STAT) printk("Index "); |
stat | 151 | drivers/block/hd.c | if (stat & ERR_STAT) printk("Error "); |
stat | 153 | drivers/block/hd.c | if ((stat & ERR_STAT) == 0) { |
stat | 290 | drivers/block/hd.c | unsigned short stat = inb_p(HD_STATUS); |
stat | 295 | drivers/block/hd.c | if (stat & (BUSY_STAT|ERR_STAT)) { |
stat | 342 | drivers/block/hd.c | unsigned int dev = DEVICE_NR(CURRENT->dev), stat = inb_p(HD_STATUS); |
stat | 346 | drivers/block/hd.c | if (stat & (BUSY_STAT|ERR_STAT)) { |
stat | 348 | drivers/block/hd.c | dump_status("set multmode failed", stat); |
stat | 437 | drivers/block/hd.c | unsigned int stat = inb_p(HD_STATUS); |
stat | 439 | drivers/block/hd.c | if (stat & (BUSY_STAT|DRQ_STAT|ECC_STAT|ERR_STAT)) { |
stat | 440 | drivers/block/hd.c | dump_status ("unexpected interrupt", stat); |
stat | 469 | drivers/block/hd.c | int retries = 100000, stat; |
stat | 472 | drivers/block/hd.c | if ((stat = inb_p(HD_STATUS)) & DRQ_STAT) |
stat | 474 | drivers/block/hd.c | dump_status("wait_DRQ", stat); |
stat | 51 | drivers/block/ide-cd.c | int stat; |
stat | 127 | drivers/block/ide-cd.c | int stat, err; |
stat | 130 | drivers/block/ide-cd.c | stat = GET_STAT (dev->hwif); |
stat | 131 | drivers/block/ide-cd.c | *stat_ret = stat; |
stat | 133 | drivers/block/ide-cd.c | if (OK_STAT (stat, good_stat, BAD_RW_STAT)) |
stat | 166 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 190 | drivers/block/ide-cd.c | dump_status (dev->hwif, "packet command error", stat); |
stat | 191 | drivers/block/ide-cd.c | pc->stat = 1; /* signal error */ |
stat | 198 | drivers/block/ide-cd.c | ide_error (dev, "cdrom_read_intr", stat); |
stat | 277 | drivers/block/ide-cd.c | int stat; |
stat | 280 | drivers/block/ide-cd.c | stat = GET_STAT (dev->hwif); |
stat | 282 | drivers/block/ide-cd.c | if (OK_STAT (stat, 0, BAD_STAT)) |
stat | 296 | drivers/block/ide-cd.c | ide_error (dev, "cdrom_read_intr_2", stat); |
stat | 416 | drivers/block/ide-cd.c | int ireason, len, stat, thislen; |
stat | 421 | drivers/block/ide-cd.c | if (cdrom_decode_status (dev, 0, &stat)) return; |
stat | 429 | drivers/block/ide-cd.c | if ((stat & DRQ_STAT) == 0) |
stat | 437 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 457 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 486 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 511 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 543 | drivers/block/ide-cd.c | pc->stat = 0; |
stat | 597 | drivers/block/ide-cd.c | if (pc->stat != 0) |
stat | 804 | drivers/block/ide-cd.c | int stat, ntracks, i; |
stat | 829 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (dev, 0, 0, (char *)toc, |
stat | 832 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 839 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (dev, 0, 0, (char *)toc, |
stat | 842 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 968 | drivers/block/ide-cd.c | int stat, stat2; |
stat | 971 | drivers/block/ide-cd.c | stat = cdrom_play_lba_range_play12 (dev, lba_start, lba_end); |
stat | 972 | drivers/block/ide-cd.c | if (stat == 0) return 0; |
stat | 976 | drivers/block/ide-cd.c | if (stat2) return stat; |
stat | 989 | drivers/block/ide-cd.c | return stat; |
stat | 998 | drivers/block/ide-cd.c | int stat, ntracks; |
stat | 1002 | drivers/block/ide-cd.c | stat = cdrom_read_toc (dev); |
stat | 1003 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1044 | drivers/block/ide-cd.c | int stat, lba_start, lba_end; |
stat | 1046 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *)arg, sizeof (msf)); |
stat | 1047 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1065 | drivers/block/ide-cd.c | int stat, lba_start, lba_end; |
stat | 1069 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *)arg, sizeof (ti)); |
stat | 1070 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1074 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (dev, ti.cdti_trk0, &first_toc); |
stat | 1075 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1076 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (dev, ti.cdti_trk1, &last_toc); |
stat | 1077 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1090 | drivers/block/ide-cd.c | int stat; |
stat | 1094 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, sizeof (tochdr)); |
stat | 1095 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1098 | drivers/block/ide-cd.c | stat = cdrom_read_toc (dev); |
stat | 1099 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1107 | drivers/block/ide-cd.c | return stat; |
stat | 1112 | drivers/block/ide-cd.c | int stat; |
stat | 1116 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (tocentry)); |
stat | 1117 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1118 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, sizeof (tocentry)); |
stat | 1119 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1123 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (dev, tocentry.cdte_track, &toce); |
stat | 1124 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1142 | drivers/block/ide-cd.c | return stat; |
stat | 1148 | drivers/block/ide-cd.c | int stat, abs_lba, rel_lba; |
stat | 1151 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, sizeof (subchnl)); |
stat | 1152 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1153 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (subchnl)); |
stat | 1154 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1158 | drivers/block/ide-cd.c | stat = cdrom_read_subchannel (dev, buffer, sizeof (buffer)); |
stat | 1159 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1190 | drivers/block/ide-cd.c | return stat; |
stat | 1197 | drivers/block/ide-cd.c | int stat; |
stat | 1199 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (volctrl)); |
stat | 1200 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1203 | drivers/block/ide-cd.c | stat = cdrom_mode_sense (dev, 0x0e, 0, buffer, sizeof (buffer)); |
stat | 1204 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1205 | drivers/block/ide-cd.c | stat = cdrom_mode_sense (dev, 0x0e, 1, mask , sizeof (buffer)); |
stat | 1206 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1221 | drivers/block/ide-cd.c | int stat; |
stat | 1226 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (pc.c)); |
stat | 1227 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1235 | drivers/block/ide-cd.c | int stat; |
stat | 1238 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, sizeof (reqbuf)); |
stat | 1239 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1241 | drivers/block/ide-cd.c | stat = cdrom_request_sense (dev, &reqbuf); |
stat | 1245 | drivers/block/ide-cd.c | return stat; |
stat | 219 | drivers/block/ide.c | #define OK_STAT(stat,good,bad) (((stat)&((good)|(bad)))==(good)) |
stat | 397 | drivers/block/ide.c | byte stat; \ |
stat | 407 | drivers/block/ide.c | if (!OK_STAT(stat=GET_STAT(DEV_HWIF), good, bad)) { \ |
stat | 408 | drivers/block/ide.c | ide_error(dev, msg " error", stat); \ |
stat | 491 | drivers/block/ide.c | static void end_drive_cmd (ide_dev_t *dev, byte stat, byte err) |
stat | 497 | drivers/block/ide.c | rq->errors = !OK_STAT(stat,READY_STAT,BAD_STAT); |
stat | 499 | drivers/block/ide.c | args[0] = stat; |
stat | 513 | drivers/block/ide.c | static byte dump_status (byte hwif, const char *msg, byte stat) |
stat | 522 | drivers/block/ide.c | printk("%s: %s: status=0x%02x", name, msg, stat); |
stat | 526 | drivers/block/ide.c | if (stat & BUSY_STAT) |
stat | 529 | drivers/block/ide.c | if (stat & READY_STAT) printk("DriveReady "); |
stat | 530 | drivers/block/ide.c | if (stat & WRERR_STAT) printk("WriteFault "); |
stat | 531 | drivers/block/ide.c | if (stat & SEEK_STAT) printk("SeekComplete "); |
stat | 532 | drivers/block/ide.c | if (stat & DRQ_STAT) printk("DataRequest "); |
stat | 533 | drivers/block/ide.c | if (stat & ECC_STAT) printk("CorrectedError "); |
stat | 534 | drivers/block/ide.c | if (stat & INDEX_STAT) printk("Index "); |
stat | 535 | drivers/block/ide.c | if (stat & ERR_STAT) printk("Error "); |
stat | 541 | drivers/block/ide.c | if ((stat & (BUSY_STAT|ERR_STAT)) == ERR_STAT) { |
stat | 586 | drivers/block/ide.c | static void ide_error (ide_dev_t *dev, const char *msg, byte stat) |
stat | 591 | drivers/block/ide.c | err = dump_status(DEV_HWIF, msg, stat); |
stat | 596 | drivers/block/ide.c | end_drive_cmd(dev, stat, err); |
stat | 600 | drivers/block/ide.c | if (dev->type == disk && (stat & ERR_STAT)) { |
stat | 607 | drivers/block/ide.c | if ((stat & DRQ_STAT) && rq->cmd == READ) { |
stat | 628 | drivers/block/ide.c | byte stat; |
stat | 633 | drivers/block/ide.c | if (!OK_STAT(stat=GET_STAT(DEV_HWIF),DATA_READY,BAD_RW_STAT)) { |
stat | 635 | drivers/block/ide.c | ide_error(dev, "read_intr", stat); |
stat | 672 | drivers/block/ide.c | byte stat; |
stat | 676 | drivers/block/ide.c | if (OK_STAT(stat=GET_STAT(DEV_HWIF),DRIVE_READY,BAD_RW_STAT)) { |
stat | 682 | drivers/block/ide.c | if ((rq->nr_sectors == 1) ^ ((stat & DRQ_STAT) != 0)) { |
stat | 700 | drivers/block/ide.c | ide_error(dev, "write_intr", stat); |
stat | 739 | drivers/block/ide.c | byte stat; |
stat | 743 | drivers/block/ide.c | if (OK_STAT(stat=GET_STAT(DEV_HWIF),DRIVE_READY,BAD_RW_STAT)) { |
stat | 744 | drivers/block/ide.c | if (stat & DRQ_STAT) { |
stat | 764 | drivers/block/ide.c | ide_error(dev, "multwrite_intr", stat); |
stat | 783 | drivers/block/ide.c | byte stat = GET_STAT(DEV_HWIF); |
stat | 786 | drivers/block/ide.c | if (!OK_STAT(stat,READY_STAT,BAD_STAT)) { |
stat | 789 | drivers/block/ide.c | (void) dump_status(DEV_HWIF, "set_multmode", stat); |
stat | 802 | drivers/block/ide.c | byte stat = GET_STAT(DEV_HWIF); |
stat | 805 | drivers/block/ide.c | if (!OK_STAT(stat,READY_STAT,BAD_STAT)) |
stat | 806 | drivers/block/ide.c | ide_error(dev, "set_geometry_intr", stat); |
stat | 812 | drivers/block/ide.c | byte stat = GET_STAT(DEV_HWIF); |
stat | 815 | drivers/block/ide.c | if (!OK_STAT(stat,READY_STAT,BAD_STAT)) |
stat | 816 | drivers/block/ide.c | ide_error(dev, "recal_intr", stat); |
stat | 822 | drivers/block/ide.c | byte stat = GET_STAT(DEV_HWIF); |
stat | 825 | drivers/block/ide.c | if (!OK_STAT(stat,READY_STAT,BAD_STAT)) |
stat | 826 | drivers/block/ide.c | ide_error(dev, "drive_cmd", stat); /* calls end_drive_cmd() */ |
stat | 828 | drivers/block/ide.c | end_drive_cmd (dev, stat, GET_ERR(DEV_HWIF)); |
stat | 1147 | drivers/block/ide.c | byte stat; |
stat | 1149 | drivers/block/ide.c | if (!OK_STAT(stat=GET_STAT(HWIF), DRIVE_READY, BAD_STAT)) |
stat | 1150 | drivers/block/ide.c | (void) dump_status(HWIF, "unexpected_intr", stat); |
stat | 1153 | drivers/block/ide.c | if (!OK_STAT(stat=GET_STAT(hwif^1), DRIVE_READY, BAD_STAT)) |
stat | 1154 | drivers/block/ide.c | (void) dump_status(hwif^1, "unexpected_intr", stat); |
stat | 642 | drivers/char/tpqic02.c | { int stat = inb_p(QIC02_STAT_PORT); |
stat | 643 | drivers/char/tpqic02.c | status_dead = ((stat & QIC02_STAT_RESETMASK) != QIC02_STAT_RESETVAL); } |
stat | 717 | drivers/char/tpqic02.c | int stat; |
stat | 727 | drivers/char/tpqic02.c | while (((stat = inb_p(QIC02_STAT_PORT) & QIC02_STAT_MASK) == QIC02_STAT_MASK) && (--spin_t>0)) |
stat | 729 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_READY) == 0) |
stat | 739 | drivers/char/tpqic02.c | while (((stat = inb_p(QIC02_STAT_PORT) & QIC02_STAT_MASK) == QIC02_STAT_MASK) && (jiffies<spin_t)) |
stat | 741 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_READY) == 0) |
stat | 754 | drivers/char/tpqic02.c | while (((stat = inb_p(QIC02_STAT_PORT) & QIC02_STAT_MASK) == QIC02_STAT_MASK) && (jiffies<spin_t)) { |
stat | 762 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_MASK) == QIC02_STAT_MASK) { |
stat | 767 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_EXCEPTION) == 0) { |
stat | 780 | drivers/char/tpqic02.c | int i, stat; |
stat | 784 | drivers/char/tpqic02.c | stat = wait_for_ready(TIM_S); |
stat | 785 | drivers/char/tpqic02.c | if (stat != TE_OK) |
stat | 786 | drivers/char/tpqic02.c | return stat; |
stat | 788 | drivers/char/tpqic02.c | stat = notify_cmd(sb[i], ignore_ex); |
stat | 789 | drivers/char/tpqic02.c | if (stat != TE_OK) |
stat | 790 | drivers/char/tpqic02.c | return stat; |
stat | 806 | drivers/char/tpqic02.c | int stat; |
stat | 808 | drivers/char/tpqic02.c | stat = inb_p(QIC02_STAT_PORT); |
stat | 809 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_EXCEPTION) == 0) { /* if exception */ |
stat | 813 | drivers/char/tpqic02.c | if (stat & QIC02_STAT_READY) { /* if not ready */ |
stat | 825 | drivers/char/tpqic02.c | stat = notify_cmd(cmd, ignore_ex); /* tell drive new command was loaded, */ |
stat | 829 | drivers/char/tpqic02.c | stat = send_qic02_data(seek_addr_buf, sizeof(seek_addr_buf), ignore_ex); |
stat | 832 | drivers/char/tpqic02.c | if (stat != TE_OK) { |
stat | 835 | drivers/char/tpqic02.c | return stat; |
stat | 924 | drivers/char/tpqic02.c | int stat = rdstatus((char *) stp, TPSTATSIZE, QCMD_RD_STAT); |
stat | 931 | drivers/char/tpqic02.c | return stat; |
stat | 946 | drivers/char/tpqic02.c | int stat, i; |
stat | 949 | drivers/char/tpqic02.c | stat = rdstatus(vus, sizeof(vus), QCMD_RD_STAT_X3); |
stat | 950 | drivers/char/tpqic02.c | if (stat != TE_OK) |
stat | 951 | drivers/char/tpqic02.c | return stat; |
stat | 1054 | drivers/char/tpqic02.c | int stat; |
stat | 1056 | drivers/char/tpqic02.c | stat = inb(QIC02_STAT_PORT) & QIC02_STAT_MASK; |
stat | 1058 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": Waiting for (re-)wind to finish: stat=0x%x\n", stat); |
stat | 1060 | drivers/char/tpqic02.c | stat = wait_for_ready(timeout); |
stat | 1062 | drivers/char/tpqic02.c | if (stat != TE_OK) { |
stat | 1065 | drivers/char/tpqic02.c | return stat; |
stat | 1078 | drivers/char/tpqic02.c | int stat; |
stat | 1085 | drivers/char/tpqic02.c | stat = wait_for_ready(timeout); /* wait for ready or exception */ |
stat | 1086 | drivers/char/tpqic02.c | if (stat == TE_EX) { |
stat | 1090 | drivers/char/tpqic02.c | stat = TE_OK; |
stat | 1092 | drivers/char/tpqic02.c | if (stat != TE_OK) { |
stat | 1103 | drivers/char/tpqic02.c | stat = send_qic02_cmd(cmd, timeout, 0); /* (checks for exceptions) */ |
stat | 1127 | drivers/char/tpqic02.c | if (stat==TE_EX) { |
stat | 1135 | drivers/char/tpqic02.c | else if (stat!=TE_OK) { |
stat | 1136 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": ll_do_qic_cmd: send_qic02_cmd failed, stat = 0x%x\n", stat); |
stat | 1142 | drivers/char/tpqic02.c | stat = wait_for_rewind(timeout); |
stat | 1144 | drivers/char/tpqic02.c | stat = wait_for_ready(timeout); |
stat | 1146 | drivers/char/tpqic02.c | if (stat==TE_EX) { |
stat | 1157 | drivers/char/tpqic02.c | else if (stat!=TE_OK) { |
stat | 1158 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": ll_do_qic_cmd %x: wait failed, stat == 0x%x\n", cmd, stat); |
stat | 1220 | drivers/char/tpqic02.c | int stat; |
stat | 1227 | drivers/char/tpqic02.c | stat = ll_do_qic_cmd(QCMD_WRT_FM, TIM_M); |
stat | 1228 | drivers/char/tpqic02.c | if (stat != TE_OK) |
stat | 1259 | drivers/char/tpqic02.c | int stat; |
stat | 1266 | drivers/char/tpqic02.c | stat = ll_do_qic_cmd(QCMD_REWIND, TIM_R); |
stat | 1267 | drivers/char/tpqic02.c | if (stat != 0) { |
stat | 1268 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": rewind failed in do_qic_cmd(). stat=0x%2x", stat); |
stat | 1269 | drivers/char/tpqic02.c | return stat; |
stat | 1286 | drivers/char/tpqic02.c | int stat; |
stat | 1310 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_RD_FM_BCK, TIM_F); |
stat | 1312 | drivers/char/tpqic02.c | stat = -ENXIO; |
stat | 1315 | drivers/char/tpqic02.c | return stat; |
stat | 1322 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_SPACE_FWD, TIM_F); |
stat | 1326 | drivers/char/tpqic02.c | stat = -ENXIO; |
stat | 1328 | drivers/char/tpqic02.c | return stat; |
stat | 1336 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_SPACE_BCK, TIM_F); |
stat | 1339 | drivers/char/tpqic02.c | stat = -ENXIO; |
stat | 1342 | drivers/char/tpqic02.c | return stat; |
stat | 1372 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_REWIND, TIM_R); |
stat | 1373 | drivers/char/tpqic02.c | return stat; |
stat | 1428 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_REWIND, TIM_R); |
stat | 1429 | drivers/char/tpqic02.c | if (stat) |
stat | 1430 | drivers/char/tpqic02.c | return stat; |
stat | 1431 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_SEEK_EOD, TIM_F); |
stat | 1435 | drivers/char/tpqic02.c | stat = 0; |
stat | 1436 | drivers/char/tpqic02.c | while ((stat==0) && (!status_eom_detected)) { |
stat | 1437 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_RD_FM, TIM_F); /***** should use MTFSFM here???? ******/ |
stat | 1442 | drivers/char/tpqic02.c | return stat; |
stat | 1468 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_SELF_TST1, TIM_R); |
stat | 1469 | drivers/char/tpqic02.c | if (stat != 0) { |
stat | 1471 | drivers/char/tpqic02.c | return stat; |
stat | 1481 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_SELF_TST2, TIM_R); |
stat | 1482 | drivers/char/tpqic02.c | if (stat != 0) { |
stat | 1484 | drivers/char/tpqic02.c | return stat; |
stat | 1577 | drivers/char/tpqic02.c | int stat; |
stat | 1608 | drivers/char/tpqic02.c | stat = tp_sense(((mode == WRITE)? 0 : TP_WRP) | TP_BOM | TP_FIL); |
stat | 1609 | drivers/char/tpqic02.c | if (stat != TE_OK) |
stat | 1610 | drivers/char/tpqic02.c | return stat; |
stat | 1628 | drivers/char/tpqic02.c | stat = send_qic02_cmd((mode == WRITE)? QCMD_WRT_DATA : QCMD_RD_DATA, TIM_M, 0); |
stat | 1629 | drivers/char/tpqic02.c | if (stat!=TE_OK) { |
stat | 1633 | drivers/char/tpqic02.c | return stat; |
stat | 1691 | drivers/char/tpqic02.c | int stat = TE_OK; |
stat | 1709 | drivers/char/tpqic02.c | stat = wait_for_ready(TIM_M); |
stat | 1710 | drivers/char/tpqic02.c | if (status_error || (stat!=TE_OK)) { |
stat | 1712 | drivers/char/tpqic02.c | stat = tp_sense((dma_mode==READ)? TP_WRP : 0); |
stat | 1800 | drivers/char/tpqic02.c | int stat, r, i; |
stat | 1809 | drivers/char/tpqic02.c | stat = inb(QIC02_STAT_PORT); /* Knock, knock */ |
stat | 1811 | drivers/char/tpqic02.c | if (((stat & (AR_STAT_DMADONE)) == 0) && |
stat | 1812 | drivers/char/tpqic02.c | ((stat & (QIC02_STAT_EXCEPTION)) != 0)) { |
stat | 1818 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_EXCEPTION) == 0) { /* exception occurred */ |
stat | 1826 | drivers/char/tpqic02.c | printk(" status %02x\n", stat); |
stat | 1844 | drivers/char/tpqic02.c | if (stat & QIC02_STAT_READY) { /* not ready */ |
stat | 1923 | drivers/char/tpqic02.c | int stat; |
stat | 2013 | drivers/char/tpqic02.c | stat = start_dma(READ, bytes_todo); |
stat | 2014 | drivers/char/tpqic02.c | if (stat == TE_OK) { |
stat | 2021 | drivers/char/tpqic02.c | } else if (stat != TE_END) { |
stat | 2026 | 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 | 297 | drivers/net/8390.c | ei_local->stat.rx_frame_errors += inb_p(e8390_base + EN0_COUNTER0); |
stat | 298 | drivers/net/8390.c | ei_local->stat.rx_crc_errors += inb_p(e8390_base + EN0_COUNTER1); |
stat | 299 | drivers/net/8390.c | ei_local->stat.rx_missed_errors+= inb_p(e8390_base + EN0_COUNTER2); |
stat | 372 | drivers/net/8390.c | if (status & ENTSR_COL) ei_local->stat.collisions++; |
stat | 374 | drivers/net/8390.c | ei_local->stat.tx_packets++; |
stat | 376 | drivers/net/8390.c | ei_local->stat.tx_errors++; |
stat | 377 | drivers/net/8390.c | if (status & ENTSR_ABT) ei_local->stat.tx_aborted_errors++; |
stat | 378 | drivers/net/8390.c | if (status & ENTSR_CRS) ei_local->stat.tx_carrier_errors++; |
stat | 379 | drivers/net/8390.c | if (status & ENTSR_FU) ei_local->stat.tx_fifo_errors++; |
stat | 380 | drivers/net/8390.c | if (status & ENTSR_CDH) ei_local->stat.tx_heartbeat_errors++; |
stat | 381 | drivers/net/8390.c | if (status & ENTSR_OWC) ei_local->stat.tx_window_errors++; |
stat | 437 | drivers/net/8390.c | ei_local->stat.rx_errors++; |
stat | 446 | drivers/net/8390.c | ei_local->stat.rx_errors++; |
stat | 455 | drivers/net/8390.c | ei_local->stat.rx_dropped++; |
stat | 464 | drivers/net/8390.c | ei_local->stat.rx_packets++; |
stat | 473 | drivers/net/8390.c | ei_local->stat.rx_fifo_errors++; |
stat | 512 | drivers/net/8390.c | ei_local->stat.rx_over_errors++; |
stat | 544 | drivers/net/8390.c | ei_local->stat.rx_frame_errors += inb_p(ioaddr + EN0_COUNTER0); |
stat | 545 | drivers/net/8390.c | ei_local->stat.rx_crc_errors += inb_p(ioaddr + EN0_COUNTER1); |
stat | 546 | drivers/net/8390.c | ei_local->stat.rx_missed_errors+= inb_p(ioaddr + EN0_COUNTER2); |
stat | 548 | 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 | 719 | drivers/net/ni52.c | unsigned short stat; |
stat | 741 | drivers/net/ni52.c | while((stat=p->scb->status & STAT_MASK)) |
stat | 743 | drivers/net/ni52.c | p->scb->cmd = stat; |
stat | 747 | drivers/net/ni52.c | printk("ni52-%04x/%04x-",(int) stat,(int) p->scb->status); /* debug */ |
stat | 749 | drivers/net/ni52.c | if(stat & (STAT_FR | STAT_RNR)) |
stat | 752 | drivers/net/ni52.c | if(stat & STAT_CX) |
stat | 756 | drivers/net/ni52.c | if(stat & STAT_CNA) |
stat | 758 | drivers/net/ni52.c | if( (stat & STAT_CNA) && !(stat & STAT_CX) ) |
stat | 760 | 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) |
stat | 764 | drivers/net/ni52.c | printk("%s: rnr: %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 | 67 | fs/nfs/proc.c | static int nfs_stat_to_errno(int stat); |
stat | 892 | fs/nfs/proc.c | int stat; |
stat | 919 | fs/nfs/proc.c | static int nfs_stat_to_errno(int stat) |
stat | 923 | fs/nfs/proc.c | for (i = 0; nfs_errtbl[i].stat != -1; i++) { |
stat | 924 | fs/nfs/proc.c | if (nfs_errtbl[i].stat == stat) |
stat | 927 | fs/nfs/proc.c | printk("nfs_stat_to_errno: bad nfs status return value: %d\n", stat); |
stat | 218 | fs/umsdos/ioctl.c | data.stat.st_ino = inode->i_ino; |
stat | 219 | fs/umsdos/ioctl.c | data.stat.st_mode = inode->i_mode; |
stat | 220 | fs/umsdos/ioctl.c | data.stat.st_size = inode->i_size; |
stat | 221 | fs/umsdos/ioctl.c | data.stat.st_atime = inode->i_atime; |
stat | 222 | fs/umsdos/ioctl.c | data.stat.st_ctime = inode->i_ctime; |
stat | 223 | fs/umsdos/ioctl.c | data.stat.st_mtime = inode->i_mtime; |
stat | 224 | fs/umsdos/ioctl.c | memcpy_tofs (&idata->stat,&data.stat,sizeof(data.stat)); |
stat | 113 | include/linux/umsdos_fs.h | }stat; |