/linux-6.3-rc2/drivers/scsi/aic7xxx/ |
A D | aic7xxx_core.c | 334 ahc_outb(ahc, HCNTRL, ahc->pause); in ahc_pause() 669 ahc_dmamap_sync(ahc, ahc->shared_data_dmat, ahc->shared_data_dmamap, in ahc_sync_qoutfifo() 699 ahc_dmamap_sync(ahc, ahc->shared_data_dmat, ahc->shared_data_dmamap, in ahc_check_cmdcmpltqueues() 755 ahc->bus_intr(ahc); in ahc_intr() 861 ahc_outb(ahc, SEQCTL, ahc->seqctl); in ahc_restart() 3301 ahc_outb(ahc, SCSIDATL, ahc->msgout_buf[ahc->msgout_index++]); in ahc_handle_message_phase() 3337 ahc->msgin_buf[ahc->msgin_index] = ahc_inb(ahc, SCSIBUSL); in ahc_handle_message_phase() 3429 ahc_outb(ahc, SCSIDATL, ahc->msgout_buf[ahc->msgout_index++]); in ahc_handle_message_phase() 3449 ahc->msgin_buf[ahc->msgin_index] = ahc_inb(ahc, SCSIDATL); in ahc_handle_message_phase() 4472 ahc_dmamem_free(ahc, ahc->shared_data_dmat, ahc->qoutfifo, in ahc_free() [all …]
|
A D | aic7xxx_pci.c | 787 ahc_pause(ahc); in ahc_pci_config() 933 ahc->bus_softc.pci_softc.dscommand0 = ahc_inb(ahc, DSCOMMAND0); in ahc_pci_config() 947 ahc->bus_softc.pci_softc.scbbaddr = ahc_inb(ahc, SCBBADDR); in ahc_pci_config() 950 ahc->bus_softc.pci_softc.dff_thrsh = ahc_inb(ahc, DFF_THRSH); in ahc_pci_config() 1015 ahc_outb(ahc, SCBBADDR, ahc_get_pci_function(ahc->dev_softc)); in ahc_scbram_config() 1260 sd.sd_ahc = ahc; in check_extport() 1935 ahc_inb(ahc, SEQADDR0) | (ahc_inb(ahc, SEQADDR1) << 8)); in ahc_pci_intr() 1978 ahc_name(ahc), ahc_name(ahc), ahc_name(ahc), in ahc_pci_intr() 1979 ahc_name(ahc), ahc_name(ahc), ahc_name(ahc)); in ahc_pci_intr() 1981 ahc_outb(ahc, SEQCTL, ahc->seqctl); in ahc_pci_intr() [all …]
|
A D | aic7770.c | 187 ahc->flags |= 1; in aic7770_config() 225 ahc_outb(ahc, SBLKCTL, ahc_inb(ahc, SBLKCTL) & ~AUTOFLUSHDIS); in aic7770_config() 238 error = ahc_init(ahc); in aic7770_config() 246 ahc->init_level++; in aic7770_config() 258 ahc_outb(ahc, BUSSPD, ahc->bus_softc.aic7770_softc.busspd); in aic7770_chip_init() 259 ahc_outb(ahc, BUSTIME, ahc->bus_softc.aic7770_softc.bustime); in aic7770_chip_init() 260 ahc_outb(ahc, SBLKCTL, ahc_inb(ahc, SBLKCTL) & ~AUTOFLUSHDIS); in aic7770_chip_init() 276 sd.sd_ahc = ahc; in aha2840_load_seeprom() 360 ahc->chip |= AHC_VL; in ahc_aic7770_VL_setup() 377 ahc->channel = 'A'; in ahc_aic7770_setup() [all …]
|
A D | aic7xxx_osm.c | 1093 ahc_lock(ahc, &s); in ahc_linux_register_host() 1134 ahc_lock(ahc, &s); in ahc_linux_initialize_scsi_bus() 1200 ahc_lockinit(ahc); in ahc_platform_alloc() 1225 free_irq(ahc->platform_data->irq, ahc); in ahc_platform_free() 1246 ahc_platform_abort_scbs(ahc, SCB_GET_TARGET(ahc, scb), in ahc_platform_freeze_devq() 1382 ? ahc->our_id : ahc->our_id_b, in ahc_linux_device_queue_depth() 1463 tinfo = ahc_fetch_transinfo(ahc, SCB_GET_CHANNEL(ahc, scb), in ahc_linux_run_command() 1800 ahc->our_id, in ahc_linux_handle_scsi_status() 2174 bus_scb = ahc_lookup_scb(ahc, ahc_inb(ahc, SCB_TAG)); in ahc_linux_queue_recovery_cmd() 2513 ahc_pause(ahc); in ahc_linux_get_signalling() [all …]
|
A D | aic7xxx_osm_pci.c | 137 ahc_pci_resume(ahc); in ahc_linux_pci_dev_resume() 148 if (ahc->platform_data && ahc->platform_data->host) in ahc_linux_pci_dev_remove() 151 ahc_lock(ahc, &s); in ahc_linux_pci_dev_remove() 153 ahc_unlock(ahc, &s); in ahc_linux_pci_dev_remove() 154 ahc_free(ahc); in ahc_linux_pci_dev_remove() 208 if (ahc == NULL) in ahc_linux_pci_dev_probe() 211 ahc_free(ahc); in ahc_linux_pci_dev_probe() 223 ahc_free(ahc); in ahc_linux_pci_dev_probe() 228 ahc->dev_softc = pci; in ahc_linux_pci_dev_probe() 232 ahc_free(ahc); in ahc_linux_pci_dev_probe() [all …]
|
A D | aic7770_osm.c | 55 ahc->tag = BUS_SPACE_PIO; in aic7770_map_registers() 56 ahc->bsh.ioport = port; in aic7770_map_registers() 82 struct ahc_softc *ahc; in aic7770_probe() local 92 if (ahc == NULL) in aic7770_probe() 94 ahc->dev = dev; in aic7770_probe() 98 ahc->bsh.ioport = 0; in aic7770_probe() 99 ahc_free(ahc); in aic7770_probe() 115 if (ahc->platform_data && ahc->platform_data->host) in aic7770_remove() 118 ahc_lock(ahc, &s); in aic7770_remove() 120 ahc_unlock(ahc, &s); in aic7770_remove() [all …]
|
A D | aic7xxx_inline.h | 49 int ahc_is_paused(struct ahc_softc *ahc); 50 void ahc_pause(struct ahc_softc *ahc); 51 void ahc_unpause(struct ahc_softc *ahc); 54 void ahc_sync_sglist(struct ahc_softc *ahc, 62 return (ahc->name); in ahc_name() 68 ahc_fetch_transinfo(struct ahc_softc *ahc, 73 ahc_inw(struct ahc_softc *ahc, u_int port); 77 ahc_inl(struct ahc_softc *ahc, u_int port); 85 ahc_get_scb(struct ahc_softc *ahc); 91 ahc_get_sense_buf(struct ahc_softc *ahc, [all …]
|
A D | aic7xxx_proc.c | 199 ahc_lock(ahc, &s); in ahc_proc_write_seeprom() 200 paused = ahc_is_paused(ahc); in ahc_proc_write_seeprom() 202 ahc_pause(ahc); in ahc_proc_write_seeprom() 215 sd.sd_ahc = ahc; in ahc_proc_write_seeprom() 258 ahc->seep_config = kmalloc(sizeof(*ahc->seep_config), in ahc_proc_write_seeprom() 273 if ((ahc->chip & AHC_VL) == 0) in ahc_proc_write_seeprom() 281 ahc_unpause(ahc); in ahc_proc_write_seeprom() 282 ahc_unlock(ahc, &s); in ahc_proc_write_seeprom() 306 if (ahc->seep_config == NULL) in ahc_linux_show_info() 331 our_id = ahc->our_id; in ahc_linux_show_info() [all …]
|
A D | aic7xxx_osm.h | 83 #define AIC_LIB_PREFIX ahc 370 uint8_t ahc_inb(struct ahc_softc * ahc, long port); 372 void ahc_outsb(struct ahc_softc * ahc, long port, 374 void ahc_insb(struct ahc_softc * ahc, long port, 385 ahc_lockinit(struct ahc_softc *ahc) in ahc_lockinit() argument 387 spin_lock_init(&ahc->platform_data->spin_lock); in ahc_lockinit() 449 int aic7770_map_registers(struct ahc_softc *ahc, 465 int ahc_pci_map_int(struct ahc_softc *ahc); 504 ahc_flush_device_writes(struct ahc_softc *ahc) in ahc_flush_device_writes() argument 507 ahc_inb(ahc, INTSTAT); in ahc_flush_device_writes() [all …]
|
A D | aic7xxx.h | 68 #define SCSIID_TARGET(ahc, scsiid) \ argument 73 #define SCSIID_CHANNEL(ahc, scsiid) \ argument 74 ((((ahc)->features & AHC_TWIN) != 0) \ 77 #define SCB_IS_SCSIBUS_B(ahc, scb) \ argument 81 #define SCB_GET_TARGET(ahc, scb) \ argument 82 SCSIID_TARGET((ahc), (scb)->hscb->scsiid) 83 #define SCB_GET_CHANNEL(ahc, scb) \ argument 84 SCSIID_CHANNEL(ahc, (scb)->hscb->scsiid) 87 #define SCB_GET_TARGET_OFFSET(ahc, scb) \ argument 88 (SCB_GET_TARGET(ahc, scb) + (SCB_IS_SCSIBUS_B(ahc, scb) ? 8 : 0)) [all …]
|
A D | aic7xxx.seq | 44 PATCH_ARG_LIST = "struct ahc_softc *ahc" 82 if ((ahc->features & AHC_TWIN) != 0) { 88 if ((ahc->features & AHC_TWIN) != 0) { 108 if ((ahc->flags & AHC_PAGESCBS) != 0) { 167 if ((ahc->features & AHC_DT) == 0) { 787 if ((ahc->bugs & AHC_PCI_MWI_BUG) != 0 && ahc->pci_cachesize != 0) { 871 if ((ahc->bugs & AHC_PCI_MWI_BUG) != 0 && ahc->pci_cachesize != 0) { 1095 && ahc->pci_cachesize != 0) { 1163 && ahc->pci_cachesize != 0) { 1236 && ahc->pci_cachesize != 0) { [all …]
|
A D | aic7xxx_seq.h_shipped | 969 return ((ahc->bugs & AHC_PCI_MWI_BUG) != 0 && ahc->pci_cachesize != 0); 1007 ahc_patch9_func(struct ahc_softc *ahc) 1015 ahc_patch8_func(struct ahc_softc *ahc) 1023 ahc_patch7_func(struct ahc_softc *ahc) 1031 ahc_patch6_func(struct ahc_softc *ahc) 1039 ahc_patch5_func(struct ahc_softc *ahc) 1047 ahc_patch4_func(struct ahc_softc *ahc) 1055 ahc_patch3_func(struct ahc_softc *ahc) 1063 ahc_patch2_func(struct ahc_softc *ahc) 1071 ahc_patch1_func(struct ahc_softc *ahc) [all …]
|