Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/scsi/aic7xxx/
Daic79xx_core.c98 static void ahd_handle_transmission_error(struct ahd_softc *ahd);
99 static void ahd_handle_lqiphase_error(struct ahd_softc *ahd,
101 static int ahd_handle_pkt_busfree(struct ahd_softc *ahd,
103 static int ahd_handle_nonpkt_busfree(struct ahd_softc *ahd);
104 static void ahd_handle_proto_violation(struct ahd_softc *ahd);
105 static void ahd_force_renegotiation(struct ahd_softc *ahd,
109 ahd_alloc_tstate(struct ahd_softc *ahd,
112 static void ahd_free_tstate(struct ahd_softc *ahd,
115 static void ahd_devlimited_syncrate(struct ahd_softc *ahd,
120 static void ahd_update_neg_table(struct ahd_softc *ahd,
[all …]
Daic79xx_pci.c244 static int ahd_check_extport(struct ahd_softc *ahd);
245 static void ahd_configure_termination(struct ahd_softc *ahd,
247 static void ahd_pci_split_intr(struct ahd_softc *ahd, u_int intstat);
248 static void ahd_pci_intr(struct ahd_softc *ahd);
289 ahd_pci_config(struct ahd_softc *ahd, const struct ahd_pci_identity *entry) in ahd_pci_config() argument
296 ahd->description = entry->name; in ahd_pci_config()
300 subvendor = ahd_pci_read_config(ahd->dev_softc, in ahd_pci_config()
303 ahd->flags |= AHD_HP_BOARD; in ahd_pci_config()
305 error = entry->setup(ahd); in ahd_pci_config()
309 devconfig = ahd_pci_read_config(ahd->dev_softc, DEVCONFIG, /*bytes*/4); in ahd_pci_config()
[all …]
Daic79xx_osm_pci.c80 struct ahd_softc *ahd = dev_get_drvdata(dev); in ahd_linux_pci_dev_suspend() local
83 if ((rc = ahd_suspend(ahd))) in ahd_linux_pci_dev_suspend()
86 ahd_pci_suspend(ahd); in ahd_linux_pci_dev_suspend()
94 struct ahd_softc *ahd = dev_get_drvdata(dev); in ahd_linux_pci_dev_resume() local
96 ahd_pci_resume(ahd); in ahd_linux_pci_dev_resume()
98 ahd_resume(ahd); in ahd_linux_pci_dev_resume()
106 struct ahd_softc *ahd = pci_get_drvdata(pdev); in ahd_linux_pci_dev_remove() local
109 if (ahd->platform_data && ahd->platform_data->host) in ahd_linux_pci_dev_remove()
110 scsi_remove_host(ahd->platform_data->host); in ahd_linux_pci_dev_remove()
112 ahd_lock(ahd, &s); in ahd_linux_pci_dev_remove()
[all …]
Daic79xx_inline.h49 static inline char *ahd_name(struct ahd_softc *ahd);
51 static inline char *ahd_name(struct ahd_softc *ahd) in ahd_name() argument
53 return (ahd->name); in ahd_name()
57 static inline void ahd_known_modes(struct ahd_softc *ahd,
59 static inline ahd_mode_state ahd_build_mode_state(struct ahd_softc *ahd,
62 static inline void ahd_extract_mode_state(struct ahd_softc *ahd,
66 void ahd_set_modes(struct ahd_softc *ahd, ahd_mode src,
68 ahd_mode_state ahd_save_modes(struct ahd_softc *ahd);
69 void ahd_restore_modes(struct ahd_softc *ahd,
71 int ahd_is_paused(struct ahd_softc *ahd);
[all …]
Daic79xx_osm.c224 ahd_print_path(struct ahd_softc *ahd, struct scb *scb) in ahd_print_path() argument
227 ahd->platform_data->host->host_no, in ahd_print_path()
228 scb != NULL ? SCB_GET_CHANNEL(ahd, scb) : 'X', in ahd_print_path()
229 scb != NULL ? SCB_GET_TARGET(ahd, scb) : -1, in ahd_print_path()
355 static void ahd_linux_queue_cmd_complete(struct ahd_softc *ahd,
358 static void ahd_linux_initialize_scsi_bus(struct ahd_softc *ahd);
359 static u_int ahd_linux_user_tagdepth(struct ahd_softc *ahd,
367 static void ahd_freeze_simq(struct ahd_softc *ahd);
368 static void ahd_release_simq(struct ahd_softc *ahd);
391 uint8_t ahd_inb(struct ahd_softc * ahd, long port);
[all …]
Daic79xx_proc.c45 static void ahd_dump_target_state(struct ahd_softc *ahd,
157 ahd_dump_target_state(struct ahd_softc *ahd, struct seq_file *m, in ahd_dump_target_state() argument
165 tinfo = ahd_fetch_transinfo(ahd, channel, our_id, in ahd_dump_target_state()
170 starget = ahd->platform_data->starget[target_id]; in ahd_dump_target_state()
210 struct ahd_softc *ahd = *(struct ahd_softc **)shost->hostdata; in ahd_proc_write_seeprom() local
219 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()
224 saved_modes = ahd_save_modes(ahd); in ahd_proc_write_seeprom()
225 ahd_set_modes(ahd, AHD_MODE_SCSI, AHD_MODE_SCSI); in ahd_proc_write_seeprom()
[all …]
Daic79xx_osm.h66 #define AIC_LIB_PREFIX ahd
181 int ahd_dmamap_load(struct ahd_softc *ahd, bus_dma_tag_t /*dmat*/,
204 #define ahd_dmamap_sync(ahd, dma_tag, dmamap, offset, len, op) argument
357 uint8_t ahd_inb(struct ahd_softc * ahd, long port);
358 void ahd_outb(struct ahd_softc * ahd, long port, uint8_t val);
359 void ahd_outw_atomic(struct ahd_softc * ahd,
361 void ahd_outsb(struct ahd_softc * ahd, long port,
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()
[all …]
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 …]
Daic79xx_seq.h_shipped837 typedef int ahd_patch_func_t (struct ahd_softc *ahd);
841 ahd_patch23_func(struct ahd_softc *ahd)
843 return ((ahd->bugs & AHD_PKT_BITBUCKET_BUG) != 0);
849 ahd_patch22_func(struct ahd_softc *ahd)
851 return ((ahd->bugs & AHD_PKT_BITBUCKET_BUG) == 0);
857 ahd_patch21_func(struct ahd_softc *ahd)
859 return ((ahd->flags & AHD_INITIATORROLE) != 0);
865 ahd_patch20_func(struct ahd_softc *ahd)
867 return ((ahd->flags & AHD_TARGETROLE) != 0);
873 ahd_patch19_func(struct ahd_softc *ahd)
[all …]
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) {
528 if ((ahd->bugs & AHD_INTCOLLISION_BUG) != 0) {
539 if ((ahd->bugs & AHD_SENT_SCB_UPDATE_BUG) != 0) {
594 if ((ahd->bugs & AHD_NONPACKFIFO_BUG) != 0) {
618 if ((ahd->bugs & AHD_FAINT_LED_BUG) != 0) {
[all …]
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) { \