Home
last modified time | relevance | path

Searched refs:ahc (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/drivers/scsi/aic7xxx/
Daic7xxx_core.c134 static void ahc_force_renegotiation(struct ahc_softc *ahc,
137 ahc_alloc_tstate(struct ahc_softc *ahc,
140 static void ahc_free_tstate(struct ahc_softc *ahc,
144 ahc_devlimited_syncrate(struct ahc_softc *ahc,
149 static void ahc_update_pending_scbs(struct ahc_softc *ahc);
150 static void ahc_fetch_devinfo(struct ahc_softc *ahc,
152 static void ahc_scb_devinfo(struct ahc_softc *ahc,
155 static void ahc_assert_atn(struct ahc_softc *ahc);
156 static void ahc_setup_initiator_msgout(struct ahc_softc *ahc,
159 static void ahc_build_transfer_msg(struct ahc_softc *ahc,
[all …]
Daic7xxx_pci.c599 static int ahc_ext_scbram_present(struct ahc_softc *ahc);
600 static void ahc_scbram_config(struct ahc_softc *ahc, int enable,
602 static void ahc_probe_ext_scbram(struct ahc_softc *ahc);
603 static void check_extport(struct ahc_softc *ahc, u_int *sxfrctl1);
604 static void ahc_parse_pci_eeprom(struct ahc_softc *ahc,
606 static void configure_termination(struct ahc_softc *ahc,
611 static void ahc_new_term_detect(struct ahc_softc *ahc,
617 static void aic787X_cable_detect(struct ahc_softc *ahc, int *internal50_present,
621 static void aic785X_cable_detect(struct ahc_softc *ahc, int *internal50_present,
624 static void write_brdctl(struct ahc_softc *ahc, uint8_t value);
[all …]
Daic7770.c56 static int aic7770_chip_init(struct ahc_softc *ahc);
57 static int aha2840_load_seeprom(struct ahc_softc *ahc);
119 aic7770_config(struct ahc_softc *ahc, struct aic7770_identity *entry, u_int io) in aic7770_config() argument
127 error = entry->setup(ahc); in aic7770_config()
132 error = aic7770_map_registers(ahc, io); in aic7770_config()
142 ahc_intr_enable(ahc, FALSE); in aic7770_config()
144 ahc->description = entry->name; in aic7770_config()
145 error = ahc_softc_init(ahc); in aic7770_config()
149 ahc->bus_chip_init = aic7770_chip_init; in aic7770_config()
151 error = ahc_reset(ahc, /*reinit*/FALSE); in aic7770_config()
[all …]
Daic7xxx_osm.c254 ahc_print_path(struct ahc_softc *ahc, struct scb *scb) in ahc_print_path() argument
257 ahc->platform_data->host->host_no, in ahc_print_path()
258 scb != NULL ? SCB_GET_CHANNEL(ahc, scb) : 'X', in ahc_print_path()
259 scb != NULL ? SCB_GET_TARGET(ahc, scb) : -1, in ahc_print_path()
365 static void ahc_linux_queue_cmd_complete(struct ahc_softc *ahc,
367 static void ahc_linux_freeze_simq(struct ahc_softc *ahc);
368 static void ahc_linux_release_simq(struct ahc_softc *ahc);
370 static void ahc_linux_initialize_scsi_bus(struct ahc_softc *ahc);
371 static u_int ahc_linux_user_tagdepth(struct ahc_softc *ahc,
400 ahc_inb(struct ahc_softc * ahc, long port) in ahc_inb() argument
[all …]
Daic7xxx_osm_pci.c127 struct ahc_softc *ahc = dev_get_drvdata(dev); in ahc_linux_pci_dev_suspend() local
129 return ahc_suspend(ahc); in ahc_linux_pci_dev_suspend()
135 struct ahc_softc *ahc = dev_get_drvdata(dev); in ahc_linux_pci_dev_resume() local
137 ahc_pci_resume(ahc); in ahc_linux_pci_dev_resume()
139 return (ahc_resume(ahc)); in ahc_linux_pci_dev_resume()
145 struct ahc_softc *ahc = pci_get_drvdata(pdev); in ahc_linux_pci_dev_remove() local
148 if (ahc->platform_data && ahc->platform_data->host) in ahc_linux_pci_dev_remove()
149 scsi_remove_host(ahc->platform_data->host); in ahc_linux_pci_dev_remove()
151 ahc_lock(ahc, &s); in ahc_linux_pci_dev_remove()
152 ahc_intr_enable(ahc, FALSE); in ahc_linux_pci_dev_remove()
[all …]
Daic7770_osm.c48 aic7770_map_registers(struct ahc_softc *ahc, u_int port) in aic7770_map_registers() argument
55 ahc->tag = BUS_SPACE_PIO; in aic7770_map_registers()
56 ahc->bsh.ioport = port; in aic7770_map_registers()
61 aic7770_map_int(struct ahc_softc *ahc, u_int irq) in aic7770_map_int() argument
67 if ((ahc->flags & AHC_EDGE_INTERRUPT) == 0) in aic7770_map_int()
70 error = request_irq(irq, ahc_linux_isr, shared, "aic7xxx", ahc); in aic7770_map_int()
72 ahc->platform_data->irq = irq; in aic7770_map_int()
82 struct ahc_softc *ahc; in aic7770_probe() local
91 ahc = ahc_alloc(&aic7xxx_driver_template, name); in aic7770_probe()
92 if (ahc == NULL) in aic7770_probe()
[all …]
Daic7xxx_inline.h49 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,
58 static inline char *ahc_name(struct ahc_softc *ahc);
60 static inline char *ahc_name(struct ahc_softc *ahc) in ahc_name() argument
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);
74 void ahc_outw(struct ahc_softc *ahc, u_int port,
[all …]
Daic7xxx_proc.c46 static void ahc_dump_target_state(struct ahc_softc *ahc,
134 ahc_dump_target_state(struct ahc_softc *ahc, struct seq_file *m, in ahc_dump_target_state() argument
143 tinfo = ahc_fetch_transinfo(ahc, channel, our_id, in ahc_dump_target_state()
145 if ((ahc->features & AHC_TWIN) != 0) in ahc_dump_target_state()
150 starget = ahc->platform_data->starget[target_offset]; in ahc_dump_target_state()
190 struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata; in ahc_proc_write_seeprom() local
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()
[all …]
Daic7xxx_osm.h83 #define AIC_LIB_PREFIX ahc
194 int ahc_dmamap_load(struct ahc_softc *ahc, bus_dma_tag_t /*dmat*/,
217 #define ahc_dmamap_sync(ahc, dma_tag, dmamap, offset, len, op) argument
370 uint8_t ahc_inb(struct ahc_softc * ahc, long port);
371 void ahc_outb(struct ahc_softc * ahc, long port, uint8_t val);
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()
391 ahc_lock(struct ahc_softc *ahc, unsigned long *flags) in ahc_lock() argument
[all …]
Daic7xxx.h68 #define SCSIID_TARGET(ahc, scsiid) \ argument
69 (((scsiid) & ((((ahc)->features & AHC_TWIN) != 0) ? TWIN_TID : TID)) \
73 #define SCSIID_CHANNEL(ahc, scsiid) \ argument
74 ((((ahc)->features & AHC_TWIN) != 0) \
77 #define SCB_IS_SCSIBUS_B(ahc, scb) \ argument
78 (SCSIID_CHANNEL(ahc, (scb)->hscb->scsiid) == 'B')
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)
[all …]
Daic7xxx.seq44 PATCH_ARG_LIST = "struct ahc_softc *ahc"
78 if ((ahc->features & AHC_ULTRA2) != 0) {
82 if ((ahc->features & AHC_TWIN) != 0) {
88 if ((ahc->features & AHC_TWIN) != 0) {
95 if ((ahc->features & AHC_QUEUE_REGS) != 0) {
108 if ((ahc->flags & AHC_PAGESCBS) != 0) {
131 if ((ahc->flags & AHC_SEQUENCER_DEBUG) != 0) {
138 if ((ahc->features & AHC_QUEUE_REGS) != 0) {
167 if ((ahc->features & AHC_DT) == 0) {
179 if ((ahc->flags & AHC_TARGETROLE) != 0) {
[all …]
Daic7xxx_seq.h_shipped891 typedef int ahc_patch_func_t (struct ahc_softc *ahc);
895 ahc_patch23_func(struct ahc_softc *ahc)
897 return ((ahc->bugs & AHC_SCBCHAN_UPLOAD_BUG) != 0);
903 ahc_patch22_func(struct ahc_softc *ahc)
905 return ((ahc->features & AHC_CMD_CHAN) == 0);
911 ahc_patch21_func(struct ahc_softc *ahc)
913 return ((ahc->features & AHC_QUEUE_REGS) == 0);
919 ahc_patch20_func(struct ahc_softc *ahc)
921 return ((ahc->features & AHC_WIDE) != 0);
927 ahc_patch19_func(struct ahc_softc *ahc)
[all …]