tag | line | file | source code |
hwif | 284 | drivers/block/blk.h | static void end_request(byte uptodate, byte hwif) { |
hwif | 44 | drivers/block/ide-cd.c | #define OUT_WORDS(b,n) outsw (IDE_PORT (HD_DATA, dev->hwif), (b), (n)) |
hwif | 45 | drivers/block/ide-cd.c | #define IN_WORDS(b,n) insw (IDE_PORT (HD_DATA, dev->hwif), (b), (n)) |
hwif | 163 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
hwif | 174 | drivers/block/ide-cd.c | end_request (uptodate, dev->hwif); |
hwif | 184 | drivers/block/ide-cd.c | cdrom_info[dev->hwif][dev->select.b.drive].nsectors_buffered = 0; |
hwif | 192 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
hwif | 196 | drivers/block/ide-cd.c | stat = GET_STAT (dev->hwif); |
hwif | 203 | drivers/block/ide-cd.c | err = IN_BYTE (HD_ERROR, dev->hwif); |
hwif | 254 | drivers/block/ide-cd.c | dump_status (dev->hwif, "packet command error", stat); |
hwif | 340 | drivers/block/ide-cd.c | struct cdrom_info *info = &cdrom_info[dev->hwif][dev->select.b.drive]; |
hwif | 433 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
hwif | 439 | drivers/block/ide-cd.c | ireason = IN_BYTE (HD_NSECTOR, dev->hwif); |
hwif | 440 | drivers/block/ide-cd.c | len = IN_BYTE (HD_LCYL, dev->hwif) + 256 * IN_BYTE (HD_HCYL, dev->hwif); |
hwif | 535 | drivers/block/ide-cd.c | ide_handler[dev->hwif] = cdrom_read_intr; |
hwif | 545 | drivers/block/ide-cd.c | struct cdrom_info *info = &cdrom_info[dev->hwif][dev->select.b.drive]; |
hwif | 546 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
hwif | 608 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
hwif | 673 | drivers/block/ide-cd.c | ide_handler[dev->hwif] = cdrom_read_intr; |
hwif | 687 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
hwif | 711 | drivers/block/ide-cd.c | ide_handler[dev->hwif] = (void (*)(ide_dev_t *))cdrom_start_read_continuation; |
hwif | 731 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
hwif | 738 | drivers/block/ide-cd.c | ireason = IN_BYTE (HD_NSECTOR, dev->hwif); |
hwif | 739 | drivers/block/ide-cd.c | len = IN_BYTE (HD_LCYL, dev->hwif) + 256 * IN_BYTE (HD_HCYL, dev->hwif); |
hwif | 829 | drivers/block/ide-cd.c | ide_handler[dev->hwif] = cdrom_pc_intr; |
hwif | 835 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
hwif | 842 | drivers/block/ide-cd.c | ide_handler[dev->hwif] = cdrom_pc_intr; |
hwif | 851 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
hwif | 863 | drivers/block/ide-cd.c | ide_handler[dev->hwif] = (void (*)(ide_dev_t *))cdrom_do_pc_continuation; |
hwif | 880 | drivers/block/ide-cd.c | int major = ide_major[dev->hwif]; |
hwif | 925 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
hwif | 1107 | drivers/block/ide-cd.c | struct atapi_toc *toc = cdrom_info[dev->hwif][dev->select.b.drive].toc; |
hwif | 1114 | drivers/block/ide-cd.c | cdrom_info[dev->hwif][dev->select.b.drive].toc = toc; |
hwif | 1318 | drivers/block/ide-cd.c | toc = cdrom_info[dev->hwif][dev->select.b.drive].toc; |
hwif | 1414 | drivers/block/ide-cd.c | toc = cdrom_info[dev->hwif][dev->select.b.drive].toc; |
hwif | 1631 | drivers/block/ide-cd.c | ide_capacity[dev->hwif][dev->select.b.drive] = 0x1fffff; |
hwif | 1633 | drivers/block/ide-cd.c | ide_blksizes[dev->hwif][dev->select.b.drive << PARTN_BITS] = CD_FRAMESIZE; |
hwif | 1655 | drivers/block/ide-cd.c | cdrom_info[dev->hwif][dev->select.b.drive].toc = NULL; |
hwif | 1656 | drivers/block/ide-cd.c | cdrom_info[dev->hwif][dev->select.b.drive].sector_buffer = NULL; |
hwif | 1657 | drivers/block/ide-cd.c | cdrom_info[dev->hwif][dev->select.b.drive].sector_buffered = 0; |
hwif | 1658 | drivers/block/ide-cd.c | cdrom_info[dev->hwif][dev->select.b.drive].nsectors_buffered = 0; |
hwif | 198 | drivers/block/ide.c | #define HWIF hwif |
hwif | 199 | drivers/block/ide.c | #define DEV_HWIF (dev->hwif) |
hwif | 217 | drivers/block/ide.c | #define IDE_PORT(p,hwif) ((p)^((hwif)<<7)) /* IDE0: p^0x00 , IDE1: p^0x80 */ |
hwif | 221 | drivers/block/ide.c | #define IN_BYTE(p,hwif) (byte)inb(IDE_PORT(p,hwif)) |
hwif | 224 | drivers/block/ide.c | #define IN_BYTE(p,hwif) (byte)inb_p(IDE_PORT(p,hwif)) |
hwif | 235 | drivers/block/ide.c | #define GET_ERR(hwif) IN_BYTE(HD_ERROR,hwif) |
hwif | 236 | drivers/block/ide.c | #define GET_STAT(hwif) IN_BYTE(HD_STATUS,hwif) |
hwif | 292 | drivers/block/ide.c | byte hwif; /* first field gets very fast access */ |
hwif | 401 | drivers/block/ide.c | static void do_request (byte hwif); |
hwif | 434 | drivers/block/ide.c | static inline void start_ide_timer (byte hwif) |
hwif | 531 | drivers/block/ide.c | static byte dump_status (byte hwif, const char *msg, byte stat) |
hwif | 631 | drivers/block/ide.c | (void) IN_BYTE(HD_DATA, dev->hwif); |
hwif | 634 | drivers/block/ide.c | if (GET_STAT(dev->hwif) & (BUSY_STAT|DRQ_STAT)) |
hwif | 854 | drivers/block/ide.c | static void timer_expiry (byte hwif) |
hwif | 873 | drivers/block/ide.c | hwif = current_hwif; |
hwif | 1034 | drivers/block/ide.c | static void do_request (byte hwif) |
hwif | 1043 | drivers/block/ide.c | current_hwif = hwif; /* used *only* when sharing_single_irq==1 */ |
hwif | 1050 | drivers/block/ide.c | if ((dev = ide_cur_dev[hwif])) /* disable irq */ |
hwif | 1052 | drivers/block/ide.c | rq = blk_dev[ide_major[hwif^=1]].current_request; |
hwif | 1120 | drivers/block/ide.c | #define DO_IDE_REQUEST(hwif) \ |
hwif | 1122 | drivers/block/ide.c | if (ide_handler[hwif] == NULL) { \ |
hwif | 1123 | drivers/block/ide.c | disable_irq(ide_irq[hwif]); \ |
hwif | 1124 | drivers/block/ide.c | do_request(hwif); \ |
hwif | 1126 | drivers/block/ide.c | start_ide_timer(hwif); \ |
hwif | 1127 | drivers/block/ide.c | enable_irq(ide_irq[hwif]); \ |
hwif | 1166 | drivers/block/ide.c | static void unexpected_intr (byte hwif) |
hwif | 1174 | drivers/block/ide.c | if (!OK_STAT(stat=GET_STAT(hwif^1), DRIVE_READY, BAD_STAT)) |
hwif | 1175 | drivers/block/ide.c | (void) dump_status(hwif^1, "unexpected_intr", stat); |
hwif | 1185 | drivers/block/ide.c | #define IDE_INTR(hwif) \ |
hwif | 1190 | drivers/block/ide.c | timer_active &= ~ide_timerbit[hwif]; \ |
hwif | 1191 | drivers/block/ide.c | if ((handler = ide_handler[hwif]) != NULL) { \ |
hwif | 1192 | drivers/block/ide.c | ide_handler[hwif] = NULL; \ |
hwif | 1193 | drivers/block/ide.c | dev = ide_cur_dev[hwif]; \ |
hwif | 1198 | drivers/block/ide.c | unexpected_intr(hwif); \ |
hwif | 1200 | drivers/block/ide.c | start_ide_timer(hwif); \ |
hwif | 1226 | drivers/block/ide.c | byte hwif = (irq != ide_irq[0]); |
hwif | 1898 | drivers/block/ide.c | static void probe_for_drives (byte hwif) |
hwif | 1935 | drivers/block/ide.c | int i, hwif, drive = next_drive++; |
hwif | 1944 | drivers/block/ide.c | hwif = (drive > 1); |
hwif | 1945 | drivers/block/ide.c | printk("%s: ", ide_name[hwif]); |
hwif | 1951 | drivers/block/ide.c | printk("%s: ", ide_devname[hwif][drive]); |
hwif | 1952 | drivers/block/ide.c | if (!SUPPORT_TWO_INTERFACES && hwif != HWIF) { |
hwif | 1956 | drivers/block/ide.c | dev = &ide_dev[hwif][drive]; |
hwif | 2055 | drivers/block/ide.c | static void init_ide_data (byte hwif) |
hwif | 2060 | drivers/block/ide.c | ide_blksizes[hwif][drive] = 1024; |
hwif | 2061 | drivers/block/ide.c | blksize_size[ide_major[hwif]] = ide_blksizes[hwif]; |
hwif | 2065 | drivers/block/ide.c | ide_dev_t *dev = &ide_dev[hwif][drive]; |
hwif | 2067 | drivers/block/ide.c | dev->hwif = hwif; |
hwif | 2080 | drivers/block/ide.c | ide_hd[hwif][drive<<PARTN_BITS].start_sect = 0; |
hwif | 2081 | drivers/block/ide.c | dev->name = ide_devname[hwif][drive]; |
hwif | 2091 | drivers/block/ide.c | static byte setup_irq (byte hwif) |
hwif | 2120 | drivers/block/ide.c | static void ide_geninit(byte hwif) |
hwif | 2168 | drivers/block/ide.c | byte hwif; |
hwif | 2170 | drivers/block/ide.c | for (hwif = 0; hwif < 2; hwif++) { |
hwif | 2171 | drivers/block/ide.c | init_ide_data (hwif); |
hwif | 2172 | drivers/block/ide.c | if (SUPPORT_TWO_INTERFACES || hwif == HWIF) { |
hwif | 2173 | drivers/block/ide.c | if (hwif == 0) |
hwif | 2180 | drivers/block/ide.c | probe_for_drives (hwif); |
hwif | 2211 | drivers/block/ide.c | for (hwif = 2; hwif-- > 0;) { |
hwif | 2212 | drivers/block/ide.c | if (ide_gendisk[hwif].nr_real != 0 && !setup_irq(hwif)) { |