tag | line | file | source code |
stat | 42 | arch/i386/boot/compressed/xtract.c | struct stat sb; |
stat | 104 | arch/i386/boot/tools/build.c | struct stat sb; |
stat | 111 | arch/i386/boot/tools/build.c | if (stat("/", &sb)) { |
stat | 118 | 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 | 629 | drivers/block/ide-cd.c | int stat, err, sense_key, cmd; |
stat | 632 | drivers/block/ide-cd.c | stat = GET_STAT(); |
stat | 633 | drivers/block/ide-cd.c | *stat_ret = stat; |
stat | 635 | drivers/block/ide-cd.c | if (OK_STAT (stat, good_stat, BAD_R_STAT)) |
stat | 655 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 657 | drivers/block/ide-cd.c | ide_error (drive, "request sense failure", stat); |
stat | 687 | drivers/block/ide-cd.c | stat); |
stat | 699 | drivers/block/ide-cd.c | if ((stat & ERR_STAT) != 0) { |
stat | 704 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 707 | drivers/block/ide-cd.c | if ((stat & ERR_STAT) != 0) |
stat | 733 | drivers/block/ide-cd.c | ide_dump_status (drive, "command error", stat); |
stat | 738 | drivers/block/ide-cd.c | ide_error (drive, "cdrom_decode_status", stat); |
stat | 747 | drivers/block/ide-cd.c | if ((stat & ERR_STAT) != 0) |
stat | 924 | drivers/block/ide-cd.c | int stat; |
stat | 930 | drivers/block/ide-cd.c | if (cdrom_decode_status (drive, 0, &stat)) return; |
stat | 937 | drivers/block/ide-cd.c | if ((stat & DRQ_STAT) == 0) { |
stat | 1201 | drivers/block/ide-cd.c | int ireason, len, stat, thislen; |
stat | 1206 | drivers/block/ide-cd.c | if (cdrom_decode_status (drive, 0, &stat)) return; |
stat | 1214 | drivers/block/ide-cd.c | if ((stat & DRQ_STAT) == 0) { |
stat | 1231 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 1249 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 1276 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 1298 | drivers/block/ide-cd.c | pc->stat = 1; |
stat | 1326 | drivers/block/ide-cd.c | pc->stat = 0; |
stat | 1363 | drivers/block/ide-cd.c | if (pc->stat != 0) { |
stat | 1385 | drivers/block/ide-cd.c | } while (pc->stat != 0 && retries >= 0); |
stat | 1389 | drivers/block/ide-cd.c | if (pc->stat != 0) |
stat | 1506 | drivers/block/ide-cd.c | int stat; |
stat | 1514 | drivers/block/ide-cd.c | stat = 0; |
stat | 1521 | drivers/block/ide-cd.c | stat = cdrom_queue_packet_command (drive, &pc); |
stat | 1524 | drivers/block/ide-cd.c | if (stat == 0) |
stat | 1534 | drivers/block/ide-cd.c | stat = 0; |
stat | 1538 | drivers/block/ide-cd.c | return stat; |
stat | 1599 | drivers/block/ide-cd.c | int stat; |
stat | 1609 | drivers/block/ide-cd.c | stat = cdrom_queue_packet_command (drive, &pc); |
stat | 1610 | drivers/block/ide-cd.c | if (stat == 0) |
stat | 1613 | drivers/block/ide-cd.c | return stat; |
stat | 1644 | drivers/block/ide-cd.c | int stat, ntracks, i; |
stat | 1671 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (drive, 0, 1, 0, (char *)&toc->hdr, |
stat | 1675 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1689 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (drive, 0, 1, 0, (char *)&toc->hdr, |
stat | 1694 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1718 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (drive, 0, 1, 1, |
stat | 1721 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1735 | drivers/block/ide-cd.c | stat = cdrom_read_capacity (drive, &toc->capacity, reqbuf); |
stat | 1736 | drivers/block/ide-cd.c | if (stat) toc->capacity = 0x1fffff; |
stat | 1846 | drivers/block/ide-cd.c | int i, stat; |
stat | 1858 | drivers/block/ide-cd.c | stat = cdrom_play_lba_range_1 (drive, lba_start, lba_end, |
stat | 1861 | drivers/block/ide-cd.c | if (stat == 0 || |
stat | 1864 | drivers/block/ide-cd.c | return stat; |
stat | 1870 | drivers/block/ide-cd.c | return stat; |
stat | 1879 | drivers/block/ide-cd.c | int stat, ntracks; |
stat | 1883 | drivers/block/ide-cd.c | stat = cdrom_read_toc (drive, reqbuf); |
stat | 1884 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1909 | drivers/block/ide-cd.c | int stat; |
stat | 1936 | drivers/block/ide-cd.c | stat = cdrom_queue_packet_command (drive, &pc); |
stat | 1941 | drivers/block/ide-cd.c | if (stat && reqbuf->sense_key == ILLEGAL_REQUEST && |
stat | 1953 | drivers/block/ide-cd.c | return stat; |
stat | 1962 | drivers/block/ide-cd.c | int stat; |
stat | 1967 | drivers/block/ide-cd.c | stat = cdrom_lockdoor (drive, 0, NULL); |
stat | 1968 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1974 | drivers/block/ide-cd.c | int stat; |
stat | 1978 | drivers/block/ide-cd.c | stat = cdrom_eject (drive, 1, NULL); |
stat | 1979 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 1999 | drivers/block/ide-cd.c | int stat; |
stat | 2001 | drivers/block/ide-cd.c | stat = cdrom_startstop (drive, 0, NULL); |
stat | 2002 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2009 | drivers/block/ide-cd.c | int stat, lba_start, lba_end; |
stat | 2011 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *)arg, sizeof (msf)); |
stat | 2012 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2029 | drivers/block/ide-cd.c | int stat, lba_start, lba_end; |
stat | 2033 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *)arg, sizeof (ti)); |
stat | 2034 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2038 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (drive, ti.cdti_trk0, &first_toc, |
stat | 2040 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2041 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (drive, ti.cdti_trk1, &last_toc, |
stat | 2043 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2055 | drivers/block/ide-cd.c | int stat; |
stat | 2059 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, |
stat | 2061 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2064 | drivers/block/ide-cd.c | stat = cdrom_read_toc (drive, NULL); |
stat | 2065 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2073 | drivers/block/ide-cd.c | return stat; |
stat | 2077 | drivers/block/ide-cd.c | int stat; |
stat | 2081 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, |
stat | 2083 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2084 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, |
stat | 2086 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2090 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (drive, tocentry.cdte_track, &toce, |
stat | 2092 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2108 | drivers/block/ide-cd.c | return stat; |
stat | 2113 | drivers/block/ide-cd.c | int stat, msf_flag; |
stat | 2116 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, |
stat | 2118 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2119 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, |
stat | 2121 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2125 | drivers/block/ide-cd.c | stat = cdrom_read_subchannel (drive, 1, /* current position */ |
stat | 2128 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2171 | drivers/block/ide-cd.c | return stat; |
stat | 2177 | drivers/block/ide-cd.c | int stat; |
stat | 2179 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, |
stat | 2181 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2184 | drivers/block/ide-cd.c | stat = cdrom_mode_sense (drive, 0x0e, 0, buffer, |
stat | 2186 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2187 | drivers/block/ide-cd.c | stat = cdrom_mode_sense (drive, 0x0e, 1, mask, |
stat | 2189 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2205 | drivers/block/ide-cd.c | int stat; |
stat | 2207 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, |
stat | 2209 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2211 | drivers/block/ide-cd.c | stat = cdrom_mode_sense (drive, 0x0e, 0, buffer, |
stat | 2213 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2228 | drivers/block/ide-cd.c | int stat; |
stat | 2230 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *)arg, |
stat | 2232 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2233 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *)arg, |
stat | 2235 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2240 | drivers/block/ide-cd.c | stat = cdrom_read_toc (drive, NULL); |
stat | 2241 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2264 | drivers/block/ide-cd.c | int stat, lba; |
stat | 2270 | drivers/block/ide-cd.c | stat = cdrom_read_toc (drive, NULL); |
stat | 2271 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2275 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (char *)arg, sizeof (ra)); |
stat | 2276 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2285 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (char *)ra.buf, |
stat | 2287 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2302 | drivers/block/ide-cd.c | stat = cdrom_read_block (drive, 1, lba, buf, |
stat | 2304 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2317 | drivers/block/ide-cd.c | int blocksize, format, stat, lba; |
stat | 2329 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (char *)arg, sizeof (msf)); |
stat | 2330 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2331 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (char *)arg, blocksize); |
stat | 2332 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2341 | drivers/block/ide-cd.c | stat = cdrom_read_toc (drive, NULL); |
stat | 2342 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2349 | drivers/block/ide-cd.c | stat = cdrom_read_block (drive, format, lba, buf, blocksize, |
stat | 2351 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2358 | drivers/block/ide-cd.c | int stat; |
stat | 2362 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, |
stat | 2364 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2366 | drivers/block/ide-cd.c | stat = cdrom_read_subchannel (drive, 2, /* get MCN */ |
stat | 2369 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2378 | drivers/block/ide-cd.c | return stat; |
stat | 2393 | drivers/block/ide-cd.c | int stat; |
stat | 2399 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (pc.c)); |
stat | 2400 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2404 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_READ, (void *) arg, sizeof (len)); |
stat | 2405 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2410 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (void *) arg, len); |
stat | 2411 | drivers/block/ide-cd.c | if (stat) return stat; |
stat | 2424 | drivers/block/ide-cd.c | stat = cdrom_queue_packet_command (drive, &pc); |
stat | 2430 | drivers/block/ide-cd.c | return stat; |
stat | 2469 | drivers/block/ide-cd.c | int stat; |
stat | 2474 | drivers/block/ide-cd.c | stat = cdrom_check_status (drive, &my_reqbuf); |
stat | 2477 | drivers/block/ide-cd.c | if (stat && my_reqbuf.sense_key == NOT_READY) { |
stat | 2479 | drivers/block/ide-cd.c | stat = cdrom_check_status (drive, &my_reqbuf); |
stat | 2483 | drivers/block/ide-cd.c | if (stat && my_reqbuf.sense_key != UNIT_ATTENTION) { |
stat | 605 | drivers/block/ide.c | byte stat; |
stat | 610 | drivers/block/ide.c | if (OK_STAT(stat=GET_STAT(), 0, BUSY_STAT)) { |
stat | 618 | drivers/block/ide.c | printk("%s: ATAPI reset timed-out, status=0x%02x\n", drive->name, stat); |
stat | 773 | drivers/block/ide.c | void ide_end_drive_cmd (ide_drive_t *drive, byte stat, byte err) |
stat | 780 | drivers/block/ide.c | rq->errors = !OK_STAT(stat,READY_STAT,BAD_STAT); |
stat | 782 | drivers/block/ide.c | args[0] = stat; |
stat | 800 | drivers/block/ide.c | byte ide_dump_status (ide_drive_t *drive, const char *msg, byte stat) |
stat | 807 | drivers/block/ide.c | printk("%s: %s: status=0x%02x", drive->name, msg, stat); |
stat | 811 | drivers/block/ide.c | if (stat & BUSY_STAT) |
stat | 814 | drivers/block/ide.c | if (stat & READY_STAT) printk("DriveReady "); |
stat | 815 | drivers/block/ide.c | if (stat & WRERR_STAT) printk("DeviceFault "); |
stat | 816 | drivers/block/ide.c | if (stat & SEEK_STAT) printk("SeekComplete "); |
stat | 817 | drivers/block/ide.c | if (stat & DRQ_STAT) printk("DataRequest "); |
stat | 818 | drivers/block/ide.c | if (stat & ECC_STAT) printk("CorrectedError "); |
stat | 819 | drivers/block/ide.c | if (stat & INDEX_STAT) printk("Index "); |
stat | 820 | drivers/block/ide.c | if (stat & ERR_STAT) printk("Error "); |
stat | 826 | drivers/block/ide.c | if ((stat & (BUSY_STAT|ERR_STAT)) == ERR_STAT) { |
stat | 887 | drivers/block/ide.c | void ide_error (ide_drive_t *drive, const char *msg, byte stat) |
stat | 892 | drivers/block/ide.c | err = ide_dump_status(drive, msg, stat); |
stat | 898 | drivers/block/ide.c | ide_end_drive_cmd(drive, stat, err); |
stat | 901 | drivers/block/ide.c | if (stat & BUSY_STAT) { /* other bits are useless when BUSY */ |
stat | 904 | drivers/block/ide.c | if (drive->media == ide_disk && (stat & ERR_STAT)) { |
stat | 911 | drivers/block/ide.c | if ((stat & DRQ_STAT) && rq->cmd != WRITE) |
stat | 943 | drivers/block/ide.c | byte stat; |
stat | 948 | drivers/block/ide.c | if (!OK_STAT(stat=GET_STAT(),DATA_READY,BAD_R_STAT)) { |
stat | 949 | drivers/block/ide.c | ide_error(drive, "read_intr", stat); |
stat | 985 | drivers/block/ide.c | byte stat; |
stat | 990 | drivers/block/ide.c | if (OK_STAT(stat=GET_STAT(),DRIVE_READY,drive->bad_wstat)) { |
stat | 996 | drivers/block/ide.c | if ((rq->nr_sectors == 1) ^ ((stat & DRQ_STAT) != 0)) { |
stat | 1011 | drivers/block/ide.c | ide_error(drive, "write_intr", stat); |
stat | 1055 | drivers/block/ide.c | byte stat; |
stat | 1060 | drivers/block/ide.c | if (OK_STAT(stat=GET_STAT(),DRIVE_READY,drive->bad_wstat)) { |
stat | 1061 | drivers/block/ide.c | if (stat & DRQ_STAT) { |
stat | 1078 | drivers/block/ide.c | ide_error(drive, "multwrite_intr", stat); |
stat | 1098 | drivers/block/ide.c | byte stat = GET_STAT(); |
stat | 1101 | drivers/block/ide.c | if (OK_STAT(stat,READY_STAT,BAD_STAT)) { |
stat | 1106 | drivers/block/ide.c | (void) ide_dump_status(drive, "set_multmode", stat); |
stat | 1115 | drivers/block/ide.c | byte stat = GET_STAT(); |
stat | 1118 | drivers/block/ide.c | if (!OK_STAT(stat,READY_STAT,BAD_STAT)) |
stat | 1119 | drivers/block/ide.c | 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 | ide_error(drive, "recal_intr", stat); |
stat | 1141 | drivers/block/ide.c | byte stat = GET_STAT(); |
stat | 1144 | drivers/block/ide.c | if ((stat & DRQ_STAT) && args && args[3]) { |
stat | 1146 | drivers/block/ide.c | stat = GET_STAT(); |
stat | 1148 | drivers/block/ide.c | if (OK_STAT(stat,READY_STAT,BAD_STAT)) |
stat | 1149 | drivers/block/ide.c | ide_end_drive_cmd (drive, stat, GET_ERR()); |
stat | 1151 | drivers/block/ide.c | ide_error(drive, "drive_cmd", stat); /* calls ide_end_drive_cmd */ |
stat | 1214 | drivers/block/ide.c | byte stat; |
stat | 1219 | drivers/block/ide.c | if (OK_STAT((stat = GET_STAT()), good, bad)) |
stat | 1221 | drivers/block/ide.c | if (!(stat & BUSY_STAT)) { |
stat | 1222 | drivers/block/ide.c | ide_error(drive, "status error", stat); |
stat | 1230 | drivers/block/ide.c | if (!((stat = GET_STAT()) & BUSY_STAT)) { |
stat | 1591 | drivers/block/ide.c | byte stat; |
stat | 1605 | drivers/block/ide.c | if (!OK_STAT(stat=GET_STAT(), drive->ready_stat, BAD_STAT)) |
stat | 1606 | drivers/block/ide.c | (void) ide_dump_status(drive, "unexpected_intr", stat); |
stat | 1607 | drivers/block/ide.c | if ((stat & DRQ_STAT)) |
stat | 114 | drivers/block/ide.h | #define OK_STAT(stat,good,bad) (((stat)&((good)|(bad)))==(good)) |
stat | 181 | drivers/block/ide.h | int stat; |
stat | 498 | drivers/block/ide.h | byte ide_dump_status (ide_drive_t *drive, const char *msg, byte stat); |
stat | 504 | drivers/block/ide.h | void ide_error (ide_drive_t *drive, const char *msg, byte stat); |
stat | 594 | drivers/block/ide.h | void ide_end_drive_cmd (ide_drive_t *drive, byte stat, byte err); |
stat | 193 | drivers/block/promise.c | byte stat; |
stat | 198 | drivers/block/promise.c | if (!OK_STAT(stat=GET_STAT(),DATA_READY,BAD_R_STAT)) { |
stat | 199 | drivers/block/promise.c | ide_error(drive, "promise_read_intr", stat); |
stat | 231 | drivers/block/promise.c | stat = GET_STAT(); |
stat | 232 | drivers/block/promise.c | if(stat & DRQ_STAT) |
stat | 234 | drivers/block/promise.c | if(stat & BUSY_STAT) { |
stat | 239 | drivers/block/promise.c | ide_error(drive, "promise read intr", stat); |
stat | 309 | drivers/block/promise.c | byte stat; |
stat | 322 | drivers/block/promise.c | stat=GET_STAT(); |
stat | 323 | drivers/block/promise.c | if(stat & DRQ_STAT) { |
stat | 152 | drivers/block/triton.c | byte stat, dma_stat; |
stat | 159 | drivers/block/triton.c | stat = GET_STAT(); /* get drive status */ |
stat | 160 | drivers/block/triton.c | if (OK_STAT(stat,DRIVE_READY,drive->bad_wstat|DRQ_STAT)) { |
stat | 172 | drivers/block/triton.c | ide_error(drive, "dma_intr", stat); |
stat | 1098 | drivers/cdrom/sjcd.c | unsigned char stat; |
stat | 1100 | drivers/cdrom/sjcd.c | sjcd_s_data: stat = inb( SJCDPORT( 1 ) ); |
stat | 1102 | drivers/cdrom/sjcd.c | printk( "SJCD_S_DATA: status = 0x%02x\n", stat ); |
stat | 1104 | drivers/cdrom/sjcd.c | if( SJCD_STATUS_AVAILABLE( stat ) ){ |
stat | 1132 | drivers/cdrom/sjcd.c | } else if( SJCD_DATA_AVAILABLE( stat ) ){ |
stat | 1213 | drivers/cdrom/sjcd.c | unsigned char stat; |
stat | 1215 | drivers/cdrom/sjcd.c | stat = inb( SJCDPORT( 1 ) ); |
stat | 1217 | drivers/cdrom/sjcd.c | printk( "SJCD_S_STOP: status = 0x%02x\n", stat ); |
stat | 1219 | drivers/cdrom/sjcd.c | if( SJCD_DATA_AVAILABLE( stat ) ){ |
stat | 1229 | drivers/cdrom/sjcd.c | } else if( SJCD_STATUS_AVAILABLE( stat ) ){ |
stat | 542 | drivers/char/ftape/fdc-io.c | byte stat[1]; |
stat | 547 | drivers/char/ftape/fdc-io.c | result = fdc_issue_command(cmd3, 1, stat, 1); |
stat | 548 | drivers/char/ftape/fdc-io.c | if (result < 0 || stat[0] != 0x00) { |
stat | 556 | drivers/char/ftape/fdc-io.c | result = fdc_issue_command(cmd2, 1, stat, 1); |
stat | 900 | drivers/char/ftape/fdc-io.c | byte stat; |
stat | 947 | drivers/char/ftape/fdc-io.c | result = fdc_issue_command(cmd2, NR_ITEMS(cmd2), &stat, 1); |
stat | 948 | drivers/char/ftape/fdc-io.c | if (result < 0 || stat != 0x10) { |
stat | 949 | drivers/char/ftape/fdc-io.c | TRACEx1(-1, "FDC lock command failed, stat = 0x%02x", stat); |
stat | 972 | drivers/char/ftape/fdc-io.c | byte stat[16]; /* must be able to hold dumpregs & save results */ |
stat | 984 | drivers/char/ftape/fdc-io.c | result = fdc_issue_command(cmd, 1, stat, 1); |
stat | 986 | drivers/char/ftape/fdc-io.c | if (stat[0] == 0x80) { |
stat | 992 | drivers/char/ftape/fdc-io.c | fdc_result(&stat[1], 9); |
stat | 993 | drivers/char/ftape/fdc-io.c | fdc_save_state[0] = stat[7]; |
stat | 994 | drivers/char/ftape/fdc-io.c | fdc_save_state[1] = stat[8]; |
stat | 996 | drivers/char/ftape/fdc-io.c | result = fdc_issue_command(cmd, 1, stat, 1); |
stat | 997 | drivers/char/ftape/fdc-io.c | if (result < 0 || stat[0] == 0x80) { |
stat | 1000 | drivers/char/ftape/fdc-io.c | } else if (*stat == 0x90) { |
stat | 1002 | drivers/char/ftape/fdc-io.c | result = fdc_issue_command(cmd, 1, stat, 1); |
stat | 1003 | drivers/char/ftape/fdc-io.c | if (result < 0 || stat[0] != 0x00) { |
stat | 1011 | drivers/char/ftape/fdc-io.c | result = fdc_issue_command(cmd, 1, stat, 1); |
stat | 1016 | drivers/char/ftape/fdc-io.c | result = fdc_issue_command(cmd, 1, stat, 1); |
stat | 1017 | drivers/char/ftape/fdc-io.c | if (result < 0 || stat[0] == 0x80) { |
stat | 1035 | drivers/char/ftape/fdc-io.c | switch (stat[0] >> 5) { |
stat | 1045 | drivers/char/ftape/fdc-io.c | result = fdc_issue_command(cmd, 1, stat, 16); |
stat | 1052 | drivers/char/ftape/fdc-io.c | if ((stat[0] & FDC_SEL3V_BIT)) { |
stat | 1077 | drivers/char/ftape/fdc-io.c | stat[0]); |
stat | 479 | drivers/char/scc.c | buflen = sizeof(struct mbuf) + scc->stat.bufsize; |
stat | 481 | drivers/char/scc.c | if (scc->stat.bufsize < 336) scc->stat.bufsize = 336; |
stat | 484 | drivers/char/scc.c | scc->stat.bufsize = 4096-sizeof(struct mbuf); |
stat | 488 | drivers/char/scc.c | if (scc->stat.rxbuffers < 4) scc->stat.rxbuffers = 4; |
stat | 489 | drivers/char/scc.c | if (scc->stat.txbuffers < 4) scc->stat.txbuffers = 4; |
stat | 495 | drivers/char/scc.c | for (k = 0; k < scc->stat.rxbuffers ; k++) |
stat | 524 | drivers/char/scc.c | for (k = 0; k < scc->stat.txbuffers ; k++) |
stat | 622 | drivers/char/scc.c | if (cnt < scc->stat.rxbuffers) /* hmm... hmm... :-( */ |
stat | 623 | drivers/char/scc.c | printk("z8530drv: oops, deallocated only %d of %d rx buffers\n", cnt, scc->stat.rxbuffers); |
stat | 624 | drivers/char/scc.c | if (cnt > scc->stat.rxbuffers) /* WHAT?!! */ |
stat | 625 | drivers/char/scc.c | printk("z8530drv: oops, deallocated %d instead of %d rx buffers. Very strange.\n", cnt, scc->stat.rxbuffers); |
stat | 640 | drivers/char/scc.c | if (cnt < scc->stat.txbuffers) |
stat | 641 | drivers/char/scc.c | printk("z8530drv: oops, deallocated only %d of %d tx buffers\n", cnt, scc->stat.txbuffers); |
stat | 642 | drivers/char/scc.c | if (cnt > scc->stat.txbuffers) |
stat | 643 | drivers/char/scc.c | printk("z8530drv: oops, deallocated %d instead of %d tx buffers. Very strange.\n", cnt, scc->stat.txbuffers); |
stat | 832 | drivers/char/scc.c | scc->stat.txints++; |
stat | 847 | drivers/char/scc.c | scc->stat.tx_state = TXS_BUSY; |
stat | 870 | drivers/char/scc.c | scc->stat.tx_state = TXS_ACTIVE; /* next byte... */ |
stat | 874 | drivers/char/scc.c | if (--scc->stat.tx_queued < 0) scc->stat.tx_queued = 0; |
stat | 880 | drivers/char/scc.c | scc->stat.tx_state = TXS_NEWFRAME; /* next frame... */ |
stat | 900 | drivers/char/scc.c | scc->stat.rxerrs++; /* then count it as an error */ |
stat | 914 | drivers/char/scc.c | scc->stat.exints++; |
stat | 954 | drivers/char/scc.c | if ( (status & TxEOM) && (scc->stat.tx_state == TXS_ACTIVE) ) |
stat | 956 | drivers/char/scc.c | scc->stat.tx_under++; /* oops, an underrun! count 'em */ |
stat | 967 | drivers/char/scc.c | if (--scc->stat.tx_queued < 0) scc->stat.tx_queued = 0; |
stat | 973 | drivers/char/scc.c | scc->stat.tx_under = 9999; /* errr... yes. */ |
stat | 983 | drivers/char/scc.c | if (--scc->stat.tx_queued < 0) scc->stat.tx_queued = 0; |
stat | 999 | drivers/char/scc.c | scc->stat.rxints++; |
stat | 1018 | drivers/char/scc.c | scc->stat.nospace++; |
stat | 1025 | drivers/char/scc.c | if (bp->cnt > scc->stat.bufsize) |
stat | 1071 | drivers/char/scc.c | scc->stat.spints++; |
stat | 1080 | drivers/char/scc.c | scc->stat.rx_over++; /* count them */ |
stat | 1098 | drivers/char/scc.c | scc->stat.rxframes++; |
stat | 1099 | drivers/char/scc.c | scc->stat.rx_queued++; |
stat | 1104 | drivers/char/scc.c | scc->stat.rxerrs++; |
stat | 1441 | drivers/char/scc.c | scc->stat.tx_state = TXS_BUSY; |
stat | 1445 | drivers/char/scc.c | scc->stat.tx_state = TXS_IDLE; |
stat | 1453 | drivers/char/scc.c | scc->stat.tx_state = TXS_BUSY; |
stat | 1471 | drivers/char/scc.c | scc->stat.tx_state = TXS_IDLE; |
stat | 1486 | drivers/char/scc.c | scc->stat.tx_state = TXS_BUSY; |
stat | 1566 | drivers/char/scc.c | scc->stat.tx_state = TXS_IDLE; |
stat | 1696 | drivers/char/scc.c | scc->stat.txframes++; |
stat | 1697 | drivers/char/scc.c | scc->stat.tx_queued++; |
stat | 1702 | drivers/char/scc.c | if(scc->stat.tx_state == TXS_IDLE) |
stat | 1704 | drivers/char/scc.c | scc->stat.tx_state = TXS_BUSY; |
stat | 1717 | drivers/char/scc.c | if (bp->cnt > scc->stat.bufsize) |
stat | 1730 | drivers/char/scc.c | switch (scc->stat.tx_kiss_state) |
stat | 1739 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_DATA; |
stat | 1740 | drivers/char/scc.c | } else scc->stat.txerrs++; |
stat | 1745 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_ESCAPE; |
stat | 1749 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_IDLE; |
stat | 1758 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_DATA; |
stat | 1763 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_DATA; |
stat | 1769 | drivers/char/scc.c | scc->stat.txerrs++; |
stat | 1770 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_IDLE; |
stat | 1801 | drivers/char/scc.c | scc->stat.rx_kiss_state = KISS_IDLE; |
stat | 1809 | drivers/char/scc.c | if (--scc->stat.rx_queued < 0) |
stat | 1810 | drivers/char/scc.c | scc->stat.rx_queued = 0; |
stat | 1812 | drivers/char/scc.c | if (scc->stat.rx_kiss_state == KISS_RXFRAME) /* new packet? */ |
stat | 1815 | drivers/char/scc.c | scc->stat.rx_kiss_state = KISS_IDLE; /* generate FEND for new frame */ |
stat | 1825 | drivers/char/scc.c | if (scc->stat.rx_kiss_state == KISS_IDLE) |
stat | 1832 | drivers/char/scc.c | scc->stat.rx_kiss_state = KISS_RXFRAME; |
stat | 1999 | drivers/char/scc.c | scc->stat.tx_kiss_state = KISS_IDLE; /* don't change this... */ |
stat | 2000 | drivers/char/scc.c | scc->stat.rx_kiss_state = KISS_IDLE; /* ...or this */ |
stat | 2068 | drivers/char/scc.c | if (scc->stat.tx_state == 0) /* only switch baudrate on rx... ;-) */ |
stat | 2319 | drivers/char/scc.c | if(scc->stat.tx_state == TXS_IDLE && !Running(t_idle)) |
stat | 2355 | drivers/char/scc.c | scc->stat.rxbuffers = memcfg.rxbuffers; |
stat | 2356 | drivers/char/scc.c | scc->stat.txbuffers = memcfg.txbuffers; |
stat | 2357 | drivers/char/scc.c | scc->stat.bufsize = memcfg.bufsize; |
stat | 2372 | drivers/char/scc.c | memcpy_tofs((void *) arg, &scc->stat, sizeof(struct scc_stat)); |
stat | 2514 | drivers/char/scc.c | scc->stat.nospace++; |
stat | 2724 | drivers/char/scc.c | SCC_Info[2*chip+chan].stat.rxbuffers = RXBUFFERS; |
stat | 2725 | drivers/char/scc.c | SCC_Info[2*chip+chan].stat.txbuffers = TXBUFFERS; |
stat | 2726 | drivers/char/scc.c | SCC_Info[2*chip+chan].stat.bufsize = BUFSIZE; |
stat | 644 | drivers/char/tpqic02.c | { int stat = inb_p(QIC02_STAT_PORT); |
stat | 645 | drivers/char/tpqic02.c | status_dead = ((stat & QIC02_STAT_RESETMASK) != QIC02_STAT_RESETVAL); } |
stat | 719 | drivers/char/tpqic02.c | int stat; |
stat | 729 | drivers/char/tpqic02.c | while (((stat = inb_p(QIC02_STAT_PORT) & QIC02_STAT_MASK) == QIC02_STAT_MASK) && (--spin_t>0)) |
stat | 731 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_READY) == 0) |
stat | 741 | drivers/char/tpqic02.c | while (((stat = inb_p(QIC02_STAT_PORT) & QIC02_STAT_MASK) == QIC02_STAT_MASK) && (jiffies<spin_t)) |
stat | 743 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_READY) == 0) |
stat | 756 | drivers/char/tpqic02.c | while (((stat = inb_p(QIC02_STAT_PORT) & QIC02_STAT_MASK) == QIC02_STAT_MASK) && (jiffies<spin_t)) { |
stat | 764 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_MASK) == QIC02_STAT_MASK) { |
stat | 769 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_EXCEPTION) == 0) { |
stat | 782 | drivers/char/tpqic02.c | int i, stat; |
stat | 786 | drivers/char/tpqic02.c | stat = wait_for_ready(TIM_S); |
stat | 787 | drivers/char/tpqic02.c | if (stat != TE_OK) |
stat | 788 | drivers/char/tpqic02.c | return stat; |
stat | 790 | drivers/char/tpqic02.c | stat = notify_cmd(sb[i], ignore_ex); |
stat | 791 | drivers/char/tpqic02.c | if (stat != TE_OK) |
stat | 792 | drivers/char/tpqic02.c | return stat; |
stat | 808 | drivers/char/tpqic02.c | int stat; |
stat | 810 | drivers/char/tpqic02.c | stat = inb_p(QIC02_STAT_PORT); |
stat | 811 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_EXCEPTION) == 0) { /* if exception */ |
stat | 815 | drivers/char/tpqic02.c | if (stat & QIC02_STAT_READY) { /* if not ready */ |
stat | 827 | drivers/char/tpqic02.c | stat = notify_cmd(cmd, ignore_ex); /* tell drive new command was loaded, */ |
stat | 831 | drivers/char/tpqic02.c | stat = send_qic02_data(seek_addr_buf, sizeof(seek_addr_buf), ignore_ex); |
stat | 834 | drivers/char/tpqic02.c | if (stat != TE_OK) { |
stat | 837 | drivers/char/tpqic02.c | return stat; |
stat | 926 | drivers/char/tpqic02.c | int stat = rdstatus((char *) stp, TPSTATSIZE, QCMD_RD_STAT); |
stat | 933 | drivers/char/tpqic02.c | return stat; |
stat | 948 | drivers/char/tpqic02.c | int stat, i; |
stat | 951 | drivers/char/tpqic02.c | stat = rdstatus(vus, sizeof(vus), QCMD_RD_STAT_X3); |
stat | 952 | drivers/char/tpqic02.c | if (stat != TE_OK) |
stat | 953 | drivers/char/tpqic02.c | return stat; |
stat | 1056 | drivers/char/tpqic02.c | int stat; |
stat | 1058 | drivers/char/tpqic02.c | stat = inb(QIC02_STAT_PORT) & QIC02_STAT_MASK; |
stat | 1060 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": Waiting for (re-)wind to finish: stat=0x%x\n", stat); |
stat | 1062 | drivers/char/tpqic02.c | stat = wait_for_ready(timeout); |
stat | 1064 | drivers/char/tpqic02.c | if (stat != TE_OK) { |
stat | 1067 | drivers/char/tpqic02.c | return stat; |
stat | 1080 | drivers/char/tpqic02.c | int stat; |
stat | 1087 | drivers/char/tpqic02.c | stat = wait_for_ready(timeout); /* wait for ready or exception */ |
stat | 1088 | drivers/char/tpqic02.c | if (stat == TE_EX) { |
stat | 1092 | drivers/char/tpqic02.c | stat = TE_OK; |
stat | 1094 | drivers/char/tpqic02.c | if (stat != TE_OK) { |
stat | 1105 | drivers/char/tpqic02.c | stat = send_qic02_cmd(cmd, timeout, 0); /* (checks for exceptions) */ |
stat | 1129 | drivers/char/tpqic02.c | if (stat==TE_EX) { |
stat | 1137 | drivers/char/tpqic02.c | else if (stat!=TE_OK) { |
stat | 1138 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": ll_do_qic_cmd: send_qic02_cmd failed, stat = 0x%x\n", stat); |
stat | 1144 | drivers/char/tpqic02.c | stat = wait_for_rewind(timeout); |
stat | 1146 | drivers/char/tpqic02.c | stat = wait_for_ready(timeout); |
stat | 1148 | drivers/char/tpqic02.c | if (stat==TE_EX) { |
stat | 1159 | drivers/char/tpqic02.c | else if (stat!=TE_OK) { |
stat | 1160 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": ll_do_qic_cmd %x: wait failed, stat == 0x%x\n", cmd, stat); |
stat | 1222 | drivers/char/tpqic02.c | int stat; |
stat | 1229 | drivers/char/tpqic02.c | stat = ll_do_qic_cmd(QCMD_WRT_FM, TIM_M); |
stat | 1230 | drivers/char/tpqic02.c | if (stat != TE_OK) |
stat | 1261 | drivers/char/tpqic02.c | int stat; |
stat | 1268 | drivers/char/tpqic02.c | stat = ll_do_qic_cmd(QCMD_REWIND, TIM_R); |
stat | 1269 | drivers/char/tpqic02.c | if (stat != 0) { |
stat | 1270 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": rewind failed in do_qic_cmd(). stat=0x%2x", stat); |
stat | 1271 | drivers/char/tpqic02.c | return stat; |
stat | 1288 | drivers/char/tpqic02.c | int stat; |
stat | 1312 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_RD_FM_BCK, TIM_F); |
stat | 1314 | drivers/char/tpqic02.c | stat = -ENXIO; |
stat | 1317 | drivers/char/tpqic02.c | return stat; |
stat | 1324 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_SPACE_FWD, TIM_F); |
stat | 1328 | drivers/char/tpqic02.c | stat = -ENXIO; |
stat | 1330 | drivers/char/tpqic02.c | return stat; |
stat | 1338 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_SPACE_BCK, TIM_F); |
stat | 1341 | drivers/char/tpqic02.c | stat = -ENXIO; |
stat | 1344 | drivers/char/tpqic02.c | return stat; |
stat | 1374 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_REWIND, TIM_R); |
stat | 1375 | drivers/char/tpqic02.c | return stat; |
stat | 1430 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_REWIND, TIM_R); |
stat | 1431 | drivers/char/tpqic02.c | if (stat) |
stat | 1432 | drivers/char/tpqic02.c | return stat; |
stat | 1433 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_SEEK_EOD, TIM_F); |
stat | 1437 | drivers/char/tpqic02.c | stat = 0; |
stat | 1438 | drivers/char/tpqic02.c | while ((stat==0) && (!status_eom_detected)) { |
stat | 1439 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_RD_FM, TIM_F); /***** should use MTFSFM here???? ******/ |
stat | 1444 | drivers/char/tpqic02.c | return stat; |
stat | 1470 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_SELF_TST1, TIM_R); |
stat | 1471 | drivers/char/tpqic02.c | if (stat != 0) { |
stat | 1473 | drivers/char/tpqic02.c | return stat; |
stat | 1483 | drivers/char/tpqic02.c | stat = do_qic_cmd(QCMD_SELF_TST2, TIM_R); |
stat | 1484 | drivers/char/tpqic02.c | if (stat != 0) { |
stat | 1486 | drivers/char/tpqic02.c | return stat; |
stat | 1579 | drivers/char/tpqic02.c | int stat; |
stat | 1610 | drivers/char/tpqic02.c | stat = tp_sense(((mode == WRITE)? 0 : TP_WRP) | TP_BOM | TP_FIL); |
stat | 1611 | drivers/char/tpqic02.c | if (stat != TE_OK) |
stat | 1612 | drivers/char/tpqic02.c | return stat; |
stat | 1630 | drivers/char/tpqic02.c | stat = send_qic02_cmd((mode == WRITE)? QCMD_WRT_DATA : QCMD_RD_DATA, TIM_M, 0); |
stat | 1631 | drivers/char/tpqic02.c | if (stat!=TE_OK) { |
stat | 1635 | drivers/char/tpqic02.c | return stat; |
stat | 1693 | drivers/char/tpqic02.c | int stat = TE_OK; |
stat | 1711 | drivers/char/tpqic02.c | stat = wait_for_ready(TIM_M); |
stat | 1712 | drivers/char/tpqic02.c | if (status_error || (stat!=TE_OK)) { |
stat | 1714 | drivers/char/tpqic02.c | stat = tp_sense((dma_mode==READ)? TP_WRP : 0); |
stat | 1802 | drivers/char/tpqic02.c | int stat, r, i; |
stat | 1811 | drivers/char/tpqic02.c | stat = inb(QIC02_STAT_PORT); /* Knock, knock */ |
stat | 1813 | drivers/char/tpqic02.c | if (((stat & (AR_STAT_DMADONE)) == 0) && |
stat | 1814 | drivers/char/tpqic02.c | ((stat & (QIC02_STAT_EXCEPTION)) != 0)) { |
stat | 1820 | drivers/char/tpqic02.c | if ((stat & QIC02_STAT_EXCEPTION) == 0) { /* exception occurred */ |
stat | 1828 | drivers/char/tpqic02.c | printk(" status %02x\n", stat); |
stat | 1846 | drivers/char/tpqic02.c | if (stat & QIC02_STAT_READY) { /* not ready */ |
stat | 1925 | drivers/char/tpqic02.c | int stat; |
stat | 2015 | drivers/char/tpqic02.c | stat = start_dma(READ, bytes_todo); |
stat | 2016 | drivers/char/tpqic02.c | if (stat == TE_OK) { |
stat | 2023 | drivers/char/tpqic02.c | } else if (stat != TE_END) { |
stat | 2028 | drivers/char/tpqic02.c | printk("Trouble: stat==%02x\n", stat); |
stat | 419 | drivers/net/3c505.c | int stat; |
stat | 426 | drivers/net/3c505.c | while (((stat = get_status(dev->base_addr))&ACRF) == 0 && jiffies < timeout) |
stat | 437 | drivers/net/3c505.c | while (((stat = get_status(dev->base_addr)) & ACRF) == 0 && jiffies < timeout) |
stat | 441 | drivers/net/3c505.c | printk("%s: status %02x\n", dev->name, stat); |
stat | 457 | drivers/net/3c505.c | while (((stat = get_status(dev->base_addr))&ACRF) == 0 && j++ < 20000) |
stat | 462 | drivers/net/3c505.c | } while ((stat & ASF_PCB_MASK) != ASF_PCB_END && j < 20000); |
stat | 1020 | drivers/net/3c505.c | int stat; |
stat | 1023 | drivers/net/3c505.c | stat = inb_status(dev->base_addr); |
stat | 1024 | drivers/net/3c505.c | printk("%s: transmit timed out, %s?\n", dev->name, (stat & ACRF)?"IRQ conflict":"network cable problem"); |
stat | 1026 | drivers/net/3c505.c | printk("%s: status %#02x\n", dev->name, stat); |
stat | 168 | drivers/net/8390.c | if (!isr && !ei_local->stat.tx_packets) { |
stat | 309 | drivers/net/8390.c | ei_local->stat.rx_frame_errors += inb_p(e8390_base + EN0_COUNTER0); |
stat | 310 | drivers/net/8390.c | ei_local->stat.rx_crc_errors += inb_p(e8390_base + EN0_COUNTER1); |
stat | 311 | drivers/net/8390.c | ei_local->stat.rx_missed_errors+= inb_p(e8390_base + EN0_COUNTER2); |
stat | 392 | drivers/net/8390.c | if (status & ENTSR_COL) ei_local->stat.collisions++; |
stat | 394 | drivers/net/8390.c | ei_local->stat.tx_packets++; |
stat | 396 | drivers/net/8390.c | ei_local->stat.tx_errors++; |
stat | 397 | drivers/net/8390.c | if (status & ENTSR_ABT) ei_local->stat.tx_aborted_errors++; |
stat | 398 | drivers/net/8390.c | if (status & ENTSR_CRS) ei_local->stat.tx_carrier_errors++; |
stat | 399 | drivers/net/8390.c | if (status & ENTSR_FU) ei_local->stat.tx_fifo_errors++; |
stat | 400 | drivers/net/8390.c | if (status & ENTSR_CDH) ei_local->stat.tx_heartbeat_errors++; |
stat | 401 | drivers/net/8390.c | if (status & ENTSR_OWC) ei_local->stat.tx_window_errors++; |
stat | 456 | drivers/net/8390.c | ei_local->stat.rx_errors++; |
stat | 465 | drivers/net/8390.c | ei_local->stat.rx_errors++; |
stat | 474 | drivers/net/8390.c | ei_local->stat.rx_dropped++; |
stat | 483 | drivers/net/8390.c | ei_local->stat.rx_packets++; |
stat | 492 | drivers/net/8390.c | ei_local->stat.rx_fifo_errors++; |
stat | 532 | drivers/net/8390.c | ei_local->stat.rx_over_errors++; |
stat | 564 | drivers/net/8390.c | if (dev->start == 0) return &ei_local->stat; |
stat | 567 | drivers/net/8390.c | ei_local->stat.rx_frame_errors += inb_p(ioaddr + EN0_COUNTER0); |
stat | 568 | drivers/net/8390.c | ei_local->stat.rx_crc_errors += inb_p(ioaddr + EN0_COUNTER1); |
stat | 569 | drivers/net/8390.c | ei_local->stat.rx_missed_errors+= inb_p(ioaddr + EN0_COUNTER2); |
stat | 571 | 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 | 210 | drivers/net/apricot.c | rfd->stat = 0x0000; |
stat | 268 | drivers/net/apricot.c | lp->iscp.stat = 0x0001; |
stat | 279 | drivers/net/apricot.c | while (lp->iscp.stat) |
stat | 332 | drivers/net/apricot.c | while ((lp->scb.rfd->stat) & STAT_C) |
stat | 336 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & STAT_OK) |
stat | 363 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0001) lp->stats.collisions++; |
stat | 364 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0080) lp->stats.rx_length_errors++; |
stat | 365 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0100) lp->stats.rx_over_errors++; |
stat | 366 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0200) lp->stats.rx_fifo_errors++; |
stat | 367 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0400) lp->stats.rx_frame_errors++; |
stat | 368 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0800) lp->stats.rx_crc_errors++; |
stat | 369 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x1000) lp->stats.rx_length_errors++; |
stat | 372 | drivers/net/apricot.c | lp->scb.rfd->stat = 0; |
stat | 816 | drivers/net/ni52.c | unsigned short stat; |
stat | 833 | drivers/net/ni52.c | while((stat=p->scb->cus & STAT_MASK)) |
stat | 835 | drivers/net/ni52.c | p->scb->cmd_cuc = stat; |
stat | 838 | drivers/net/ni52.c | if(stat & STAT_FR) /* received a frame */ |
stat | 841 | drivers/net/ni52.c | if(stat & STAT_RNR) /* RU went 'not ready' */ |
stat | 853 | drivers/net/ni52.c | printk("%s: Receiver-Unit went 'NOT READY': %04x/%02x.\n",dev->name,(int) stat,(int) p->scb->rus); |
stat | 858 | drivers/net/ni52.c | if(stat & STAT_CX) /* command with I-bit set complete */ |
stat | 862 | drivers/net/ni52.c | if(stat & STAT_CNA) /* CU went 'not ready' */ |
stat | 865 | drivers/net/ni52.c | printk("%s: oops! CU has left active state. stat: %04x/%02x.\n",dev->name,(int) stat,(int) p->scb->cus); |
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 | 271 | drivers/sound/gus_midi.c | volatile unsigned char stat, data; |
stat | 278 | drivers/sound/gus_midi.c | while (timeout-- > 0 && (stat = GUS_MIDI_STATUS ()) & (MIDI_RCV_FULL | MIDI_XMIT_EMPTY)) |
stat | 280 | drivers/sound/gus_midi.c | if (stat & MIDI_RCV_FULL) |
stat | 287 | 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 | 69 | fs/nfs/proc.c | static int nfs_stat_to_errno(int stat); |
stat | 986 | fs/nfs/proc.c | int stat; |
stat | 1014 | fs/nfs/proc.c | static int nfs_stat_to_errno(int stat) |
stat | 1018 | fs/nfs/proc.c | for (i = 0; nfs_errtbl[i].stat != -1; i++) { |
stat | 1019 | fs/nfs/proc.c | if (nfs_errtbl[i].stat == stat) |
stat | 1022 | fs/nfs/proc.c | printk("nfs_stat_to_errno: bad nfs status return value: %d\n", stat); |
stat | 278 | fs/umsdos/ioctl.c | data.stat.st_ino = inode->i_ino; |
stat | 279 | fs/umsdos/ioctl.c | data.stat.st_mode = inode->i_mode; |
stat | 280 | fs/umsdos/ioctl.c | data.stat.st_size = inode->i_size; |
stat | 281 | fs/umsdos/ioctl.c | data.stat.st_atime = inode->i_atime; |
stat | 282 | fs/umsdos/ioctl.c | data.stat.st_ctime = inode->i_ctime; |
stat | 283 | fs/umsdos/ioctl.c | data.stat.st_mtime = inode->i_mtime; |
stat | 284 | fs/umsdos/ioctl.c | memcpy_tofs (&idata->stat,&data.stat,sizeof(data.stat)); |
stat | 250 | include/linux/scc.h | struct scc_stat stat; /* statistical information */ |
stat | 121 | include/linux/umsdos_fs.h | }stat; |