Home
last modified time | relevance | path

Searched refs:ahd (Results 1 – 11 of 11) sorted by relevance

/openbmc/linux/drivers/scsi/aic7xxx/
H A Daic79xx_core.c331 return (ahd_build_mode_state(ahd, ahd->src_mode, ahd->dst_mode)); in ahd_save_modes()
364 ahd_outb(ahd, HCNTRL, ahd->pause); in ahd_pause()
395 ahd_set_modes(ahd, ahd->saved_src_mode, ahd->saved_dst_mode); in ahd_unpause()
1016 ahd->bus_intr(ahd); in ahd_intr()
3500 ahd_set_modes(ahd, ahd->saved_src_mode, ahd->saved_dst_mode); in ahd_clear_critical_section()
4381 ahd->msgout_buf[ahd->msgout_index++] = ahd->send_msg_perror; in ahd_setup_initiator_msgout()
4820 ahd->msgin_buf[ahd->msgin_index] = ahd_inb(ahd, SCSIBUS); in ahd_handle_message_phase()
4917 ahd_outb(ahd, SCSIDAT, ahd->msgout_buf[ahd->msgout_index++]); in ahd_handle_message_phase()
4942 ahd->msgin_buf[ahd->msgin_index] = ahd_inb(ahd, SCSIDAT); in ahd_handle_message_phase()
6124 ahd_dmamem_free(ahd, ahd->shared_data_dmat, ahd->qoutfifo, in ahd_free()
[all …]
H A Daic79xx_pci.c311 ahd->chip |= AHD_PCI; in ahd_pci_config()
315 ahd->chip |= AHD_PCIX; in ahd_pci_config()
357 ahd->pci_cachesize = in ahd_pci_config()
369 error = ahd_init(ahd); in ahd_pci_config()
372 ahd->init_level++; in ahd_pci_config()
512 sc = ahd->seep_config; in ahd_check_extport()
711 ahd_name(ahd), in ahd_configure_termination()
715 ahd_name(ahd), in ahd_configure_termination()
719 ahd_name(ahd), in ahd_configure_termination()
835 ahd_unpause(ahd); in ahd_pci_intr()
[all …]
H A Daic79xx_osm_pci.c86 ahd_pci_suspend(ahd); in ahd_linux_pci_dev_suspend()
96 ahd_pci_resume(ahd); in ahd_linux_pci_dev_resume()
98 ahd_resume(ahd); in ahd_linux_pci_dev_resume()
109 if (ahd->platform_data && ahd->platform_data->host) in ahd_linux_pci_dev_remove()
112 ahd_lock(ahd, &s); in ahd_linux_pci_dev_remove()
114 ahd_unlock(ahd, &s); in ahd_linux_pci_dev_remove()
115 ahd_free(ahd); in ahd_linux_pci_dev_remove()
165 if (ahd == NULL) in ahd_linux_pci_dev_probe()
168 ahd_free(ahd); in ahd_linux_pci_dev_probe()
190 ahd_free(ahd); in ahd_linux_pci_dev_probe()
[all …]
H A Daic79xx_inline.h53 return (ahd->name); in ahd_name()
71 int ahd_is_paused(struct ahd_softc *ahd);
72 void ahd_pause(struct ahd_softc *ahd);
73 void ahd_unpause(struct ahd_softc *ahd);
78 ahd->src_mode = src; in ahd_known_modes()
79 ahd->dst_mode = dst; in ahd_known_modes()
80 ahd->saved_src_mode = src; in ahd_known_modes()
81 ahd->saved_dst_mode = dst; in ahd_known_modes()
106 void ahd_sync_sglist(struct ahd_softc *ahd,
118 ahd_fetch_transinfo(struct ahd_softc *ahd,
[all …]
H A Daic79xx_osm.c627 tinfo = ahd_fetch_transinfo(ahd, 'A', ahd->our_id, in ahd_linux_target_alloc()
647 tinfo = ahd_fetch_transinfo(ahd, channel, ahd->our_id, in ahd_linux_target_alloc()
812 tinfo = ahd_fetch_transinfo(ahd, 'A', ahd->our_id, in ahd_linux_dev_reset()
1227 ahd_lock(ahd, &s); in ahd_linux_register_host()
1287 tinfo = ahd_fetch_transinfo(ahd, 'A', ahd->our_id, in ahd_linux_initialize_scsi_bus()
1332 free_irq(ahd->platform_data->irq, ahd); in ahd_platform_free()
1375 ahd_platform_abort_scbs(ahd, SCB_GET_TARGET(ahd, scb), in ahd_platform_freeze_devq()
1555 tinfo = ahd_fetch_transinfo(ahd, 'A', ahd->our_id, in ahd_linux_run_command()
1679 tinfo = ahd_fetch_transinfo(ahd, channel, ahd->our_id, in ahd_send_async()
2779 ahd_pause(ahd); in ahd_linux_get_signalling()
[all …]
H A Daic79xx_proc.c219 ahd_lock(ahd, &s); in ahd_proc_write_seeprom()
220 paused = ahd_is_paused(ahd); in ahd_proc_write_seeprom()
222 ahd_pause(ahd); in ahd_proc_write_seeprom()
244 if (ahd->seep_config == NULL) { in ahd_proc_write_seeprom()
245 ahd->seep_config = kmalloc(sizeof(*ahd->seep_config), in ahd_proc_write_seeprom()
257 ahd_read_seeprom(ahd, (uint16_t *)ahd->seep_config, in ahd_proc_write_seeprom()
260 ahd_release_seeprom(ahd); in ahd_proc_write_seeprom()
267 ahd_unpause(ahd); in ahd_proc_write_seeprom()
268 ahd_unlock(ahd, &s); in ahd_proc_write_seeprom()
292 if (ahd->seep_config == NULL) in ahd_linux_show_info()
[all …]
H A Daic79xx_osm.h66 #define AIC_LIB_PREFIX ahd
359 void ahd_outw_atomic(struct ahd_softc * ahd,
363 void ahd_insb(struct ahd_softc * ahd, long port,
372 ahd_lockinit(struct ahd_softc *ahd) in ahd_lockinit() argument
374 spin_lock_init(&ahd->platform_data->spin_lock); in ahd_lockinit()
456 int ahd_pci_map_int(struct ahd_softc *ahd);
487 ahd_flush_device_writes(struct ahd_softc *ahd) in ahd_flush_device_writes() argument
490 ahd_inb(ahd, INTSTAT); in ahd_flush_device_writes()
621 ahd->flags &= ~AHD_RESOURCE_SHORTAGE; in ahd_platform_scb_free()
625 void ahd_platform_free(struct ahd_softc *ahd);
[all …]
H A Daic79xx.h71 #define SCSIID_TARGET(ahd, scsiid) \ argument
75 #define SCSIID_CHANNEL(ahd, scsiid) ('A') argument
76 #define SCB_IS_SCSIBUS_B(ahd, scb) (0) argument
79 #define SCB_GET_TARGET(ahd, scb) \ argument
80 SCSIID_TARGET((ahd), (scb)->hscb->scsiid)
81 #define SCB_GET_CHANNEL(ahd, scb) \ argument
82 SCSIID_CHANNEL(ahd, (scb)->hscb->scsiid)
85 #define SCB_GET_TARGET_OFFSET(ahd, scb) \ argument
86 SCB_GET_TARGET(ahd, scb)
87 #define SCB_GET_TARGET_MASK(ahd, scb) \ argument
[all …]
H A Daic79xx_seq.h_shipped841 ahd_patch23_func(struct ahd_softc *ahd)
953 ahd_patch9_func(struct ahd_softc *ahd)
961 ahd_patch8_func(struct ahd_softc *ahd)
969 ahd_patch7_func(struct ahd_softc *ahd)
977 ahd_patch6_func(struct ahd_softc *ahd)
985 ahd_patch5_func(struct ahd_softc *ahd)
993 ahd_patch4_func(struct ahd_softc *ahd)
1001 ahd_patch3_func(struct ahd_softc *ahd)
1009 ahd_patch2_func(struct ahd_softc *ahd)
1017 ahd_patch1_func(struct ahd_softc *ahd)
[all …]
H A Daic79xx.seq44 PATCH_ARG_LIST = "struct ahd_softc *ahd"
51 if ((ahd->bugs & AHD_INTCOLLISION_BUG) != 0) {
58 if ((ahd->bugs & AHD_INTCOLLISION_BUG) != 0) {
124 if ((ahd->bugs & AHD_FAINT_LED_BUG) != 0) {
298 if ((ahd->bugs & AHD_PKT_LUN_BUG) != 0) {
520 if ((ahd->bugs & AHD_SET_MODE_BUG) != 0) {
801 if ((ahd->bugs & AHD_LQO_ATNO_BUG) != 0) {
1490 if ((ahd->features & AHD_RTI) == 0) {
1737 if ((ahd->flags & AHD_TARGETROLE) != 0) {
1850 if ((ahd->features & AHD_RTI) == 0) {
[all …]
H A Daic79xx.reg62 if ((ahd->bugs & AHD_SET_MODE_BUG) != 0) { \
69 if ((ahd->bugs & AHD_SET_MODE_BUG) != 0) { \
76 if ((ahd->bugs & AHD_INTCOLLISION_BUG) != 0) { \