Home
last modified time | relevance | path

Searched refs:HWIF (Results 1 – 25 of 48) sorted by relevance

12

/linux-2.4.37.9/drivers/ide/legacy/
Dpdc4030.c107 number = (HWIF(drive)->channel << 1) + drive->select.b.unit; in promise_selectproc()
108 HWIF(drive)->OUTB(number, IDE_FEATURE_REG); in promise_selectproc()
122 HWIF(drive)->OUTB(0xF3, IDE_SECTOR_REG); in pdc4030_cmd()
123 HWIF(drive)->OUTB(cmd, IDE_SELECT_REG); in pdc4030_cmd()
124 HWIF(drive)->OUTB(PROMISE_EXTENDED_COMMAND, IDE_COMMAND_REG); in pdc4030_cmd()
133 status_val = HWIF(drive)->INB(IDE_SECTOR_REG); in pdc4030_cmd()
408 status.all = HWIF(drive)->INB(IDE_STATUS_REG); in promise_read_intr()
415 sectors_left = HWIF(drive)->INB(IDE_NSECTOR_REG); in promise_read_intr()
416 HWIF(drive)->INB(IDE_SECTOR_REG); in promise_read_intr()
417 } while (HWIF(drive)->INB(IDE_NSECTOR_REG) != sectors_left); in promise_read_intr()
[all …]
Dht6560b.c155 (void) HWIF(drive)->INB(HT_CONFIG_PORT); in ht6560b_selectproc()
156 (void) HWIF(drive)->INB(HT_CONFIG_PORT); in ht6560b_selectproc()
157 (void) HWIF(drive)->INB(HT_CONFIG_PORT); in ht6560b_selectproc()
158 (void) HWIF(drive)->INB(HT_CONFIG_PORT); in ht6560b_selectproc()
159 HWIF(drive)->OUTB(select, HT_CONFIG_PORT); in ht6560b_selectproc()
163 HWIF(drive)->OUTB(timing, IDE_SELECT_REG); in ht6560b_selectproc()
164 (void) HWIF(drive)->INB(IDE_STATUS_REG); in ht6560b_selectproc()
Dqd65xx.c225 ide_hwif_t *hwif = HWIF(drive); in qd_set_timing()
257 qd_set_timing(drive, qd6500_compute_timing(HWIF(drive), active_time, recovery_time)); in qd6500_tune_drive()
267 int base = HWIF(drive)->select_data; in qd6580_tune_drive()
304 if (!HWIF(drive)->channel && drive->media != ide_disk) { in qd6580_tune_drive()
308 drive->name, HWIF(drive)->name); in qd6580_tune_drive()
/linux-2.4.37.9/drivers/ide/
Dide-iops.c270 u8 hcyl = HWIF(drive)->INB(IDE_HCYL_REG); in read_24()
271 u8 lcyl = HWIF(drive)->INB(IDE_LCYL_REG); in read_24()
272 u8 sect = HWIF(drive)->INB(IDE_SECTOR_REG); in read_24()
280 if (HWIF(drive)->selectproc) in SELECT_DRIVE()
281 HWIF(drive)->selectproc(drive); in SELECT_DRIVE()
282 HWIF(drive)->OUTB(drive->select.all, IDE_SELECT_REG); in SELECT_DRIVE()
289 if (HWIF(drive)->intrproc) in SELECT_INTERRUPT()
290 HWIF(drive)->intrproc(drive); in SELECT_INTERRUPT()
292 HWIF(drive)->OUTB(drive->ctl|2, IDE_CONTROL_REG); in SELECT_INTERRUPT()
299 if (HWIF(drive)->maskproc) in SELECT_MASK()
[all …]
Dide-dma.c219 dma_stat = HWIF(drive)->ide_dma_end(drive); in ide_dma_intr()
220 stat = HWIF(drive)->INB(IDE_STATUS_REG); /* get drive status */ in ide_dma_intr()
374 ide_hwif_t *hwif = HWIF(drive); in ide_build_dmatable()
470 struct pci_dev *dev = HWIF(drive)->pci_dev; in ide_destroy_dmatable()
471 struct scatterlist *sg = HWIF(drive)->sg_table; in ide_destroy_dmatable()
472 int nents = HWIF(drive)->sg_nents; in ide_destroy_dmatable()
474 pci_unmap_sg(dev, sg, nents, HWIF(drive)->sg_dma_direction); in ide_destroy_dmatable()
475 HWIF(drive)->sg_dma_active = 0; in ide_destroy_dmatable()
494 ide_hwif_t *hwif = HWIF(drive); in config_drive_for_dma()
540 ide_hwif_t *hwif = HWIF(drive); in dma_timer_expiry()
[all …]
Dide-cd.c605 error.all = HWIF(drive)->INB(IDE_ERROR_REG); in ide_cdrom_dump_status()
645 if (HWIF(drive)->INB(IDE_STATUS_REG) & (BUSY_STAT|DRQ_STAT)) in ide_cdrom_error()
647 HWIF(drive)->OUTB(WIN_IDLEIMMEDIATE,IDE_COMMAND_REG); in ide_cdrom_error()
704 *stat_ret = stat = HWIF(drive)->INB(IDE_STATUS_REG); in cdrom_decode_status()
710 err = HWIF(drive)->INB(IDE_ERROR_REG); in cdrom_decode_status()
868 info->dma = !HWIF(drive)->ide_dma_read(drive); in cdrom_start_packet_command()
870 info->dma = !HWIF(drive)->ide_dma_write(drive); in cdrom_start_packet_command()
878 HWIF(drive)->OUTB(info->dma, IDE_FEATURE_REG); in cdrom_start_packet_command()
879 HWIF(drive)->OUTB(0, IDE_IREASON_REG); in cdrom_start_packet_command()
880 HWIF(drive)->OUTB(0, IDE_SECTOR_REG); in cdrom_start_packet_command()
[all …]
Dide-floppy.c519 (void) HWIF(drive)->INB(IDE_DATA_REG); in idefloppy_discard_data()
526 HWIF(drive)->OUTB(0, IDE_DATA_REG); in idefloppy_write_zeros()
619 HWIF(drive)->atapi_input_bytes(drive, bh->b_data + pc->b_count, count); in idefloppy_input_buffers()
649 HWIF(drive)->atapi_output_bytes(drive, pc->b_data, count); in idefloppy_output_buffers()
788 error.all = HWIF(drive)->INB(IDE_ERROR_REG); in idefloppy_retry_pc()
816 if (HWIF(drive)->ide_dma_end(drive)) { in idefloppy_pc_intr()
829 status.all = HWIF(drive)->INB(IDE_STATUS_REG); in idefloppy_pc_intr()
868 (void) HWIF(drive)->ide_dma_off(drive); in idefloppy_pc_intr()
873 bcount.b.high = HWIF(drive)->INB(IDE_BCOUNTH_REG); in idefloppy_pc_intr()
874 bcount.b.low = HWIF(drive)->INB(IDE_BCOUNTL_REG); in idefloppy_pc_intr()
[all …]
Dide-lib.c88 ide_hwif_t *hwif = HWIF(drive); in ide_dma_speed()
182 ide_hwif_t *hwif = HWIF(drive); in ide_dma_enable()
407 addr = HWIF(drive)->pci_dev->dma_mask; in ide_toggle_bounce()
432 if(HWIF(drive)->speedproc) in ide_set_xfer_rate()
433 return HWIF(drive)->speedproc(drive, rate); in ide_set_xfer_rate()
Dide-io.c116 ide_hwif_t *hwif = HWIF(drive); in ide_end_drive_cmd()
220 HWIF(drive)->ata_input_data(drive, buffer, wcount); in try_to_flush_leftover_data()
253 hwif = HWIF(drive); in ide_error()
340 hwif = HWIF(drive); in ide_abort()
374 ide_hwif_t *hwif = HWIF(drive); in ide_cmd()
397 ide_hwif_t *hwif = HWIF(drive); in drive_cmd_intr()
439 if (HWIF(drive)->tuneproc != NULL) in do_special()
440 HWIF(drive)->tuneproc(drive, drive->tune_req); in do_special()
463 ide_hwif_t *hwif = HWIF(drive); in execute_drive_cmd()
560 ide_hwif_t *hwif = HWIF(drive); in ide_start_request()
[all …]
Dide-taskfile.c91 return (HWIF(drive)->INB(IDE_HCYL_REG)<<16) | in task_read_24()
92 (HWIF(drive)->INB(IDE_LCYL_REG)<<8) | in task_read_24()
93 HWIF(drive)->INB(IDE_SECTOR_REG); in task_read_24()
111 HWIF(drive)->ata_input_data(drive, buffer, wcount); in taskfile_input_data()
122 HWIF(drive)->ata_output_data(drive, buffer, wcount); in taskfile_output_data()
125 HWIF(drive)->ata_output_data(drive, buffer, wcount); in taskfile_output_data()
172 ide_hwif_t *hwif = HWIF(drive); in do_rw_taskfile()
268 ide_hwif_t *hwif = HWIF(drive); in taskfile_dump_status()
350 ide_hwif_t *hwif = HWIF(drive); in ide_end_taskfile()
441 hwif = HWIF(drive); in taskfile_error()
[all …]
/linux-2.4.37.9/drivers/ide/pci/
Dhpt366.c218 struct pci_dev *dev = HWIF(drive)->pci_dev; in hpt3xx_ratemask()
249 struct pci_dev *dev = HWIF(drive)->pci_dev; in hpt3xx_ratefilter()
324 struct pci_dev *dev = HWIF(drive)->pci_dev; in hpt366_tune_chipset()
328 u8 regfast = (HWIF(drive)->channel) ? 0x55 : 0x51; in hpt366_tune_chipset()
368 struct pci_dev *dev = HWIF(drive)->pci_dev; in hpt370_tune_chipset()
371 u8 regfast = (HWIF(drive)->channel) ? 0x55 : 0x51; in hpt370_tune_chipset()
412 struct pci_dev *dev = HWIF(drive)->pci_dev; in hpt372_tune_chipset()
415 u8 regfast = (HWIF(drive)->channel) ? 0x55 : 0x51; in hpt372_tune_chipset()
444 struct pci_dev *dev = HWIF(drive)->pci_dev; in hpt3xx_tune_chipset()
490 if (pci_get_drvdata(HWIF(drive)->pci_dev) == NULL) in config_chipset_for_dma()
[all …]
Dcy82c693.c140 index = (HWIF(drive)->channel==0) ? CY82_INDEX_CHANNEL0 : CY82_INDEX_CHANNEL1; in cy82c693_dma_enable()
145 HWIF(drive)->OUTB(index, CY82_INDEX_PORT); in cy82c693_dma_enable()
146 data = HWIF(drive)->INB(CY82_DATA_PORT); in cy82c693_dma_enable()
149 drive->name, HWIF(drive)->channel, drive->select.b.unit, in cy82c693_dma_enable()
155 HWIF(drive)->OUTB(index, CY82_INDEX_PORT); in cy82c693_dma_enable()
156 HWIF(drive)->OUTB(data, CY82_DATA_PORT); in cy82c693_dma_enable()
160 drive->name, HWIF(drive)->channel, drive->select.b.unit, in cy82c693_dma_enable()
175 HWIF(drive)->OUTB(CY82_INDEX_TIMEOUT, CY82_INDEX_PORT); in cy82c693_dma_enable()
176 HWIF(drive)->OUTB(data, CY82_DATA_PORT); in cy82c693_dma_enable()
220 ide_hwif_t *hwif = HWIF(drive); in cy82c693_tune_drive()
Dsl82c105.c84 ide_hwif_t *hwif = HWIF(drive); in config_for_pio()
125 ide_hwif_t *hwif = HWIF(drive); in config_for_dma()
148 ide_hwif_t *hwif = HWIF(drive); in sl82c105_check_drive()
204 ide_hwif_t *hwif = HWIF(drive); in sl82c105_ide_dma_lost_irq()
244 ide_hwif_t *hwif = HWIF(drive); in sl82c105_ide_dma_begin()
255 ide_hwif_t *hwif = HWIF(drive); in sl82c105_ide_dma_timeout()
270 return HWIF(drive)->ide_dma_off_quietly(drive); in sl82c105_ide_dma_on()
317 ide_hwif_t *hwif = HWIF(drive); in sl82c105_selectproc()
341 ide_hwif_t *hwif = HWIF(drive); in sl82c105_resetproc()
Dsgiioc4.c173 ide_hwif_t *hwif = HWIF(drive); in sgiioc4_maskproc()
256 ide_hwif_t *hwif = HWIF(drive); in sgiioc4_ide_dma_begin()
270 ide_hwif_t *hwif = HWIF(drive); in sgiioc4_ide_dma_end()
338 return HWIF(drive)->ide_dma_host_on(drive); in sgiioc4_ide_dma_on()
346 return HWIF(drive)->ide_dma_off_quietly(drive); in sgiioc4_ide_dma_off()
354 return HWIF(drive)->ide_dma_host_off(drive); in sgiioc4_ide_dma_off_quietly()
361 return sgiioc4_checkirq(HWIF(drive)); in sgiioc4_ide_dma_test_irq()
384 return HWIF(drive)->ide_dma_begin(drive); in sgiioc4_ide_dma_count()
401 HWIF(drive)->resetproc(drive); in sgiioc4_ide_dma_lostirq()
410 if (HWIF(drive)->ide_dma_test_irq(drive)) in sgiioc4_ide_dma_timeout()
[all …]
Dtrm290.c147 ide_hwif_t *hwif = HWIF(drive); in trm290_prepare_drive()
182 ide_hwif_t *hwif = HWIF(drive); in trm290_ide_dma_write()
228 return HWIF(drive)->ide_dma_count(drive); in trm290_ide_dma_write()
233 ide_hwif_t *hwif = HWIF(drive); in trm290_ide_dma_read()
272 return HWIF(drive)->ide_dma_count(drive); in trm290_ide_dma_read()
282 ide_hwif_t *hwif = HWIF(drive); in trm290_ide_dma_end()
294 ide_hwif_t *hwif = HWIF(drive); in trm290_ide_dma_test_irq()
Daec62xx.c205 ide_hwif_t *hwif = HWIF(drive); in aec62xx_ratemask()
235 ide_hwif_t *hwif = HWIF(drive); in aec6210_tune_chipset()
263 ide_hwif_t *hwif = HWIF(drive); in aec6260_tune_chipset()
287 switch (HWIF(drive)->pci_dev->device) { in aec62xx_tune_chipset()
329 ide_hwif_t *hwif = HWIF(drive); in aec62xx_config_drive_xfer_rate()
372 ide_hwif_t *hwif = HWIF(drive); in aec62xx_irq_timeout()
385 pci_read_config_byte(HWIF(drive)->pci_dev, 0x49, &reg49h); in aec62xx_irq_timeout()
387 pci_write_config_byte(HWIF(drive)->pci_dev, 0x49, reg49h|0x10); in aec62xx_irq_timeout()
388 pci_write_config_byte(HWIF(drive)->pci_dev, 0x49, reg49h & ~0x10); in aec62xx_irq_timeout()
397 ide_hwif_t *hwif = HWIF(drive); in aec62xx_irq_timeout()
[all …]
Dpdc202xx_new.c99 switch(HWIF(drive)->pci_dev->device) { in pdcnew_ratemask()
141 ide_hwif_t *hwif = HWIF(drive); in pdcnew_tune_chipset()
243 ide_hwif_t *hwif = HWIF(drive); in pdcnew_new_tune_chipset()
310 ide_hwif_t *hwif = HWIF(drive); in config_chipset_for_dma()
385 ide_hwif_t *hwif = HWIF(drive); in pdcnew_config_drive_xfer_rate()
436 if (HWIF(drive)->resetproc != NULL) in pdcnew_ide_dma_lostirq()
437 HWIF(drive)->resetproc(drive); in pdcnew_ide_dma_lostirq()
443 if (HWIF(drive)->resetproc != NULL) in pdcnew_ide_dma_timeout()
444 HWIF(drive)->resetproc(drive); in pdcnew_ide_dma_timeout()
454 HWIF(drive)->channel ? "Secondary" : "Primary"); in pdcnew_new_reset()
[all …]
Dpdc202xx_old.c196 switch(HWIF(drive)->pci_dev->device) { in pdc202xx_ratemask()
237 ide_hwif_t *hwif = HWIF(drive); in pdc202xx_tune_chipset()
365 ide_hwif_t *hwif = HWIF(drive); in config_chipset_for_dma()
486 ide_hwif_t *hwif = HWIF(drive); in pdc202xx_config_drive_xfer_rate()
539 ide_hwif_t *hwif = HWIF(drive); in pdc202xx_old_ide_dma_begin()
560 ide_hwif_t *hwif = HWIF(drive); in pdc202xx_old_ide_dma_end()
575 ide_hwif_t *hwif = HWIF(drive); in pdc202xx_old_ide_dma_test_irq()
599 if (HWIF(drive)->resetproc != NULL) in pdc202xx_ide_dma_lostirq()
600 HWIF(drive)->resetproc(drive); in pdc202xx_ide_dma_lostirq()
606 if (HWIF(drive)->resetproc != NULL) in pdc202xx_ide_dma_timeout()
[all …]
Dsiimage.c114 ide_hwif_t *hwif = HWIF(drive); in siimage_seldev()
197 ide_hwif_t *hwif = HWIF(drive); in siimage_ratemask()
268 ide_hwif_t *hwif = HWIF(drive); in siimage_tuneproc()
340 u8 channel_timings = siimage_taskfile_timing(HWIF(drive)); in config_siimage_chipset_for_pio()
374 ide_hwif_t *hwif = HWIF(drive); in siimage_tune_chipset()
488 ide_hwif_t *hwif = HWIF(drive); in siimage_config_drive_for_dma()
533 ide_hwif_t *hwif = HWIF(drive); in siimage_io_ide_dma_test_irq()
561 ide_hwif_t *hwif = HWIF(drive); in siimage_mmio_ide_dma_count()
586 ide_hwif_t *hwif = HWIF(drive); in siimage_mmio_ide_dma_test_irq()
642 ide_hwif_t *hwif = HWIF(drive); in siimage_busproc()
[all …]
Dcmd64x.c176 struct pci_dev *dev = HWIF(drive)->pci_dev; in program_drive_counts()
177 ide_drive_t *drives = HWIF(drive)->drives; in program_drive_counts()
190 int channel = (int) HWIF(drive)->channel; in program_drive_counts()
321 struct pci_dev *dev = HWIF(drive)->pci_dev; in cmd64x_ratemask()
386 ide_hwif_t *hwif = HWIF(drive); in cmd64x_tune_chipset()
458 ide_hwif_t *hwif = HWIF(drive); in cmd64x_config_drive_for_dma()
514 ide_hwif_t *hwif = HWIF(drive); in cmd64x_ide_dma_end()
543 ide_hwif_t *hwif = HWIF(drive); in cmd64x_ide_dma_test_irq()
572 ide_hwif_t *hwif = HWIF(drive); in cmd646_1_ide_dma_end()
Dns87415.c39 ide_hwif_t *hwif = HWIF(drive); in ns87415_prepare_drive()
88 ide_hwif_t *hwif = HWIF(drive); in ns87415_ide_dma_end()
131 return HWIF(drive)->ide_dma_off_quietly(drive); in ns87415_ide_dma_check()
/linux-2.4.37.9/drivers/ide/arm/
Dicside.c269 return HWIF(drive)->sg_nents = ide_build_sglist(HWIF(drive), HWGROUP(drive)->rq, ddir); in icside_build_dmatable()
275 struct scatterlist *sg = HWIF(drive)->sg_table; in icside_destroy_dmatable()
276 int nents = HWIF(drive)->sg_nents; in icside_destroy_dmatable()
278 pci_unmap_sg(NULL, sg, nents, HWIF(drive)->sg_dma_direction); in icside_destroy_dmatable()
337 u8 dma_stat = HWIF(drive)->ide_dma_end(drive); in icside_dmaintr()
339 u8 stat = HWIF(drive)->INB(IDE_STATUS_REG); in icside_dmaintr()
446 ide_hwif_t *hwif = HWIF(drive); in icside_dma_check()
496 ide_hwif_t *hwif = HWIF(drive); in icside_dma_test_irq()
530 ide_hwif_t *hwif = HWIF(drive); in icside_dma_begin()
538 ide_hwif_t *hwif = HWIF(drive); in icside_dma_end()
[all …]
/linux-2.4.37.9/include/linux/
Dide.h148 #define HWIF(drive) ((ide_hwif_t *)((drive)->hwif)) macro
149 #define HWGROUP(drive) ((ide_hwgroup_t *)(HWIF(drive)->hwgroup))
181 #define IDE_DATA_REG (HWIF(drive)->io_ports[IDE_DATA_OFFSET])
182 #define IDE_ERROR_REG (HWIF(drive)->io_ports[IDE_ERROR_OFFSET])
183 #define IDE_NSECTOR_REG (HWIF(drive)->io_ports[IDE_NSECTOR_OFFSET])
184 #define IDE_SECTOR_REG (HWIF(drive)->io_ports[IDE_SECTOR_OFFSET])
185 #define IDE_LCYL_REG (HWIF(drive)->io_ports[IDE_LCYL_OFFSET])
186 #define IDE_HCYL_REG (HWIF(drive)->io_ports[IDE_HCYL_OFFSET])
187 #define IDE_SELECT_REG (HWIF(drive)->io_ports[IDE_SELECT_OFFSET])
188 #define IDE_STATUS_REG (HWIF(drive)->io_ports[IDE_STATUS_OFFSET])
[all …]
/linux-2.4.37.9/drivers/scsi/
Dide-scsi.c132 (void) HWIF(drive)->INB(IDE_DATA_REG); in idescsi_discard_data()
138 HWIF(drive)->OUTB(0, IDE_DATA_REG); in idescsi_output_zeros()
156 HWIF(drive)->atapi_input_bytes(drive, pc->sg->address + pc->b_count, count); in idescsi_input_buffers()
178 HWIF(drive)->atapi_output_bytes(drive, pc->sg->address + pc->b_count, count); in idescsi_output_buffers()
433 (void) (HWIF(drive)->ide_dma_end(drive)); in idescsi_pc_intr()
438 status.all = HWIF(drive)->INB(IDE_STATUS_REG); in idescsi_pc_intr()
453 bcount.b.low = HWIF(drive)->INB(IDE_BCOUNTL_REG); in idescsi_pc_intr()
454 bcount.b.high = HWIF(drive)->INB(IDE_BCOUNTH_REG); in idescsi_pc_intr()
455 ireason.all = HWIF(drive)->INB(IDE_IREASON_REG); in idescsi_pc_intr()
479 HWIF(drive)->atapi_input_bytes(drive, pc->current_position, temp); in idescsi_pc_intr()
[all …]
/linux-2.4.37.9/drivers/ide/ppc/
Dpmac.c400 pmac_ide_hwif_t* pmif = (pmac_ide_hwif_t *)HWIF(drive)->hwif_data; in pmac_ide_selectproc()
417 pmac_ide_hwif_t* pmif = (pmac_ide_hwif_t *)HWIF(drive)->hwif_data; in pmac_ide_kauai_selectproc()
439 pmac_ide_hwif_t* pmif = (pmac_ide_hwif_t *)HWIF(drive)->hwif_data; in pmac_ide_do_update_timings()
462 ide_hwif_t *hwif = HWIF(drive); in pmac_ide_do_setfeature()
541 pmac_ide_hwif_t* pmif = (pmac_ide_hwif_t *)HWIF(drive)->hwif_data; in pmac_ide_tuneproc()
607 if (drive->select.all == HWIF(drive)->INB(IDE_SELECT_REG)) in pmac_ide_tuneproc()
788 pmac_ide_hwif_t* pmif = (pmac_ide_hwif_t *)HWIF(drive)->hwif_data; in pmac_ide_tune_chipset()
804 if (HWIF(drive)->udma_four == 0) in pmac_ide_tune_chipset()
1313 ide_hwif_t *hwif = HWIF(drive); in pmac_ide_build_dmatable()
1392 struct pci_dev *dev = HWIF(drive)->pci_dev; in pmac_ide_destroy_dmatable()
[all …]

12