tag | line | file | source code |
hwif | 284 | drivers/block/blk.h | static void end_request(byte uptodate, byte hwif) { |
hwif | 45 | drivers/block/ide-cd.c | #define OUT_WORDS(b,n) outsw (IDE_PORT (HD_DATA, dev->hwif), (b), (n)) |
hwif | 46 | drivers/block/ide-cd.c | #define IN_WORDS(b,n) insw (IDE_PORT (HD_DATA, dev->hwif), (b), (n)) |
hwif | 168 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
hwif | 179 | drivers/block/ide-cd.c | end_request (uptodate, dev->hwif); |
hwif | 189 | drivers/block/ide-cd.c | cdrom_info[dev->hwif][dev->select.b.drive].nsectors_buffered = 0; |
hwif | 197 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
hwif | 201 | drivers/block/ide-cd.c | stat = GET_STAT (dev->hwif); |
hwif | 208 | drivers/block/ide-cd.c | err = IN_BYTE (HD_ERROR, dev->hwif); |
hwif | 259 | drivers/block/ide-cd.c | dump_status (dev->hwif, "packet command error", stat); |
hwif | 345 | drivers/block/ide-cd.c | struct cdrom_info *info = &cdrom_info[dev->hwif][dev->select.b.drive]; |
hwif | 438 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
hwif | 444 | drivers/block/ide-cd.c | ireason = IN_BYTE (HD_NSECTOR, dev->hwif); |
hwif | 445 | drivers/block/ide-cd.c | len = IN_BYTE (HD_LCYL, dev->hwif) + 256 * IN_BYTE (HD_HCYL, dev->hwif); |
hwif | 540 | drivers/block/ide-cd.c | ide_handler[dev->hwif] = cdrom_read_intr; |
hwif | 550 | drivers/block/ide-cd.c | struct cdrom_info *info = &cdrom_info[dev->hwif][dev->select.b.drive]; |
hwif | 551 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
hwif | 613 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
hwif | 678 | drivers/block/ide-cd.c | ide_handler[dev->hwif] = cdrom_read_intr; |
hwif | 692 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
hwif | 716 | drivers/block/ide-cd.c | ide_handler[dev->hwif] = (void (*)(ide_dev_t *))cdrom_start_read_continuation; |
hwif | 736 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
hwif | 743 | drivers/block/ide-cd.c | ireason = IN_BYTE (HD_NSECTOR, dev->hwif); |
hwif | 744 | drivers/block/ide-cd.c | len = IN_BYTE (HD_LCYL, dev->hwif) + 256 * IN_BYTE (HD_HCYL, dev->hwif); |
hwif | 834 | drivers/block/ide-cd.c | ide_handler[dev->hwif] = cdrom_pc_intr; |
hwif | 840 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
hwif | 847 | drivers/block/ide-cd.c | ide_handler[dev->hwif] = cdrom_pc_intr; |
hwif | 856 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
hwif | 868 | drivers/block/ide-cd.c | ide_handler[dev->hwif] = (void (*)(ide_dev_t *))cdrom_do_pc_continuation; |
hwif | 885 | drivers/block/ide-cd.c | int major = ide_major[dev->hwif]; |
hwif | 930 | drivers/block/ide-cd.c | struct request *rq = ide_cur_rq[dev->hwif]; |
hwif | 1112 | drivers/block/ide-cd.c | struct atapi_toc *toc = cdrom_info[dev->hwif][dev->select.b.drive].toc; |
hwif | 1119 | drivers/block/ide-cd.c | cdrom_info[dev->hwif][dev->select.b.drive].toc = toc; |
hwif | 1323 | drivers/block/ide-cd.c | toc = cdrom_info[dev->hwif][dev->select.b.drive].toc; |
hwif | 1419 | drivers/block/ide-cd.c | toc = cdrom_info[dev->hwif][dev->select.b.drive].toc; |
hwif | 1636 | drivers/block/ide-cd.c | ide_capacity[dev->hwif][dev->select.b.drive] = 0x1fffff; |
hwif | 1638 | drivers/block/ide-cd.c | ide_blksizes[dev->hwif][dev->select.b.drive << PARTN_BITS] = CD_FRAMESIZE; |
hwif | 1660 | drivers/block/ide-cd.c | cdrom_info[dev->hwif][dev->select.b.drive].toc = NULL; |
hwif | 1661 | drivers/block/ide-cd.c | cdrom_info[dev->hwif][dev->select.b.drive].sector_buffer = NULL; |
hwif | 1662 | drivers/block/ide-cd.c | cdrom_info[dev->hwif][dev->select.b.drive].sector_buffered = 0; |
hwif | 1663 | drivers/block/ide-cd.c | cdrom_info[dev->hwif][dev->select.b.drive].nsectors_buffered = 0; |
hwif | 222 | drivers/block/ide.c | #define HWIF hwif |
hwif | 223 | drivers/block/ide.c | #define DEV_HWIF (dev->hwif) |
hwif | 247 | drivers/block/ide.c | #define IDE_PORT(p,hwif) ((p)^((hwif)<<7)) /* IDE0: p^0x00 , IDE1: p^0x80 */ |
hwif | 251 | drivers/block/ide.c | #define IN_BYTE(p,hwif) (byte)inb(IDE_PORT(p,hwif)) |
hwif | 254 | drivers/block/ide.c | #define IN_BYTE(p,hwif) (byte)inb_p(IDE_PORT(p,hwif)) |
hwif | 267 | drivers/block/ide.c | #define GET_ERR(hwif) IN_BYTE(HD_ERROR,hwif) |
hwif | 268 | drivers/block/ide.c | #define GET_STAT(hwif) IN_BYTE(HD_STATUS,hwif) |
hwif | 326 | drivers/block/ide.c | byte hwif; /* first field gets very fast access */ |
hwif | 438 | drivers/block/ide.c | static void do_request (byte hwif); |
hwif | 515 | drivers/block/ide.c | static inline void start_ide_timer (byte hwif) |
hwif | 612 | drivers/block/ide.c | static byte dump_status (byte hwif, const char *msg, byte stat) |
hwif | 712 | drivers/block/ide.c | (void) IN_BYTE(HD_DATA, dev->hwif); |
hwif | 715 | drivers/block/ide.c | if (GET_STAT(dev->hwif) & (BUSY_STAT|DRQ_STAT)) |
hwif | 935 | drivers/block/ide.c | static void timer_expiry (byte hwif) |
hwif | 958 | drivers/block/ide.c | hwif = current_hwif; |
hwif | 1123 | drivers/block/ide.c | static void do_request (byte hwif) |
hwif | 1132 | drivers/block/ide.c | current_hwif = hwif; /* used *only* when single_threaded==1 */ |
hwif | 1139 | drivers/block/ide.c | if (sharing_single_irq && (dev = ide_cur_dev[hwif])) /* disable irq */ |
hwif | 1141 | drivers/block/ide.c | rq = blk_dev[ide_major[hwif^=1]].current_request; |
hwif | 1209 | drivers/block/ide.c | #define DO_IDE_REQUEST(hwif) \ |
hwif | 1211 | drivers/block/ide.c | if (ide_handler[hwif] == NULL) { \ |
hwif | 1212 | drivers/block/ide.c | disable_irq(ide_irq[hwif]); \ |
hwif | 1213 | drivers/block/ide.c | if (single_threaded && ide_irq[hwif] != ide_irq[hwif^1]) \ |
hwif | 1214 | drivers/block/ide.c | disable_irq(ide_irq[hwif^1]); \ |
hwif | 1215 | drivers/block/ide.c | do_request(hwif); \ |
hwif | 1217 | drivers/block/ide.c | start_ide_timer(hwif); \ |
hwif | 1218 | drivers/block/ide.c | enable_irq(ide_irq[hwif]); \ |
hwif | 1219 | drivers/block/ide.c | if (single_threaded && ide_irq[hwif] != ide_irq[hwif^1]) \ |
hwif | 1220 | drivers/block/ide.c | enable_irq(ide_irq[hwif^1]); \ |
hwif | 1259 | drivers/block/ide.c | static void unexpected_intr (byte hwif) |
hwif | 1265 | drivers/block/ide.c | outb_p(2,IDE_PORT(HD_CMD,hwif)); /* disable device irq */ |
hwif | 1267 | drivers/block/ide.c | if (single_threaded && ide_irq[hwif] == ide_irq[hwif^1]) { |
hwif | 1268 | drivers/block/ide.c | if (!OK_STAT(stat=GET_STAT(hwif^1), DRIVE_READY, BAD_STAT)) |
hwif | 1269 | drivers/block/ide.c | (void) dump_status(hwif^1, "unexpected_intr", stat); |
hwif | 1270 | drivers/block/ide.c | outb_p(2,IDE_PORT(HD_CMD,hwif^1)); /* disable device irq */ |
hwif | 1280 | drivers/block/ide.c | #define IDE_INTR(hwif) \ |
hwif | 1285 | drivers/block/ide.c | timer_active &= ~ide_timerbit[hwif]; \ |
hwif | 1286 | drivers/block/ide.c | if ((handler = ide_handler[hwif]) != NULL) { \ |
hwif | 1287 | drivers/block/ide.c | ide_handler[hwif] = NULL; \ |
hwif | 1288 | drivers/block/ide.c | dev = ide_cur_dev[hwif]; \ |
hwif | 1293 | drivers/block/ide.c | unexpected_intr(hwif); \ |
hwif | 1301 | drivers/block/ide.c | byte hwif = (irq != ide_irq[0]); |
hwif | 1332 | drivers/block/ide.c | byte hwif = (irq != ide_irq[0]); |
hwif | 2025 | drivers/block/ide.c | static void probe_for_drives (byte hwif) |
hwif | 2062 | drivers/block/ide.c | int i, hwif, drive = next_drive++; |
hwif | 2071 | drivers/block/ide.c | hwif = (drive > 1); |
hwif | 2072 | drivers/block/ide.c | printk("%s: ", ide_name[hwif]); |
hwif | 2078 | drivers/block/ide.c | printk("%s: ", ide_devname[hwif][drive]); |
hwif | 2079 | drivers/block/ide.c | if (!SUPPORT_TWO_INTERFACES && hwif != HWIF) { |
hwif | 2083 | drivers/block/ide.c | dev = &ide_dev[hwif][drive]; |
hwif | 2196 | drivers/block/ide.c | static void init_ide_data (byte hwif) |
hwif | 2201 | drivers/block/ide.c | ide_blksizes[hwif][drive] = 1024; |
hwif | 2202 | drivers/block/ide.c | blksize_size[ide_major[hwif]] = ide_blksizes[hwif]; |
hwif | 2206 | drivers/block/ide.c | ide_dev_t *dev = &ide_dev[hwif][drive]; |
hwif | 2208 | drivers/block/ide.c | dev->hwif = hwif; |
hwif | 2223 | drivers/block/ide.c | ide_hd[hwif][drive<<PARTN_BITS].start_sect = 0; |
hwif | 2224 | drivers/block/ide.c | dev->name = ide_devname[hwif][drive]; |
hwif | 2234 | drivers/block/ide.c | static byte setup_irq (byte hwif) |
hwif | 2270 | drivers/block/ide.c | static void ide_geninit(byte hwif) |
hwif | 2366 | drivers/block/ide.c | byte hwif; |
hwif | 2373 | drivers/block/ide.c | for (hwif = 0; hwif < 2; hwif++) { |
hwif | 2374 | drivers/block/ide.c | init_ide_data (hwif); |
hwif | 2375 | drivers/block/ide.c | if (SUPPORT_TWO_INTERFACES || hwif == HWIF) { |
hwif | 2376 | drivers/block/ide.c | if (hwif == 0) |
hwif | 2383 | drivers/block/ide.c | probe_for_drives (hwif); |
hwif | 2415 | drivers/block/ide.c | for (hwif = 2; hwif-- > 0;) { |
hwif | 2416 | drivers/block/ide.c | if (ide_gendisk[hwif].nr_real != 0 && !setup_irq(hwif)) { |