Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/scsi/aic7xxx/
Daic79xx_core.c106 static void ahd_handle_transmission_error(struct ahd_softc *ahd);
107 static void ahd_handle_lqiphase_error(struct ahd_softc *ahd,
109 static int ahd_handle_pkt_busfree(struct ahd_softc *ahd,
111 static int ahd_handle_nonpkt_busfree(struct ahd_softc *ahd);
112 static void ahd_handle_proto_violation(struct ahd_softc *ahd);
113 static void ahd_force_renegotiation(struct ahd_softc *ahd,
117 ahd_alloc_tstate(struct ahd_softc *ahd,
120 static void ahd_free_tstate(struct ahd_softc *ahd,
123 static void ahd_devlimited_syncrate(struct ahd_softc *ahd,
128 static void ahd_update_neg_table(struct ahd_softc *ahd,
[all …]
Daic79xx_pci.c250 static int ahd_check_extport(struct ahd_softc *ahd);
251 static void ahd_configure_termination(struct ahd_softc *ahd,
253 static void ahd_pci_split_intr(struct ahd_softc *ahd, u_int intstat);
254 static void ahd_pci_intr(struct ahd_softc *ahd);
295 ahd_pci_config(struct ahd_softc *ahd, const struct ahd_pci_identity *entry) in ahd_pci_config() argument
304 ahd->description = entry->name; in ahd_pci_config()
308 subvendor = ahd_pci_read_config(ahd->dev_softc, in ahd_pci_config()
311 ahd->flags |= AHD_HP_BOARD; in ahd_pci_config()
313 error = entry->setup(ahd); in ahd_pci_config()
317 devconfig = ahd_pci_read_config(ahd->dev_softc, DEVCONFIG, /*bytes*/4); in ahd_pci_config()
[all …]
Daic79xx_osm_pci.c81 struct ahd_softc *ahd = pci_get_drvdata(pdev); in ahd_linux_pci_dev_suspend() local
84 if ((rc = ahd_suspend(ahd))) in ahd_linux_pci_dev_suspend()
87 ahd_pci_suspend(ahd); in ahd_linux_pci_dev_suspend()
101 struct ahd_softc *ahd = pci_get_drvdata(pdev); in ahd_linux_pci_dev_resume() local
115 ahd_pci_resume(ahd); in ahd_linux_pci_dev_resume()
117 ahd_resume(ahd); in ahd_linux_pci_dev_resume()
126 struct ahd_softc *ahd = pci_get_drvdata(pdev); in ahd_linux_pci_dev_remove() local
129 if (ahd->platform_data && ahd->platform_data->host) in ahd_linux_pci_dev_remove()
130 scsi_remove_host(ahd->platform_data->host); in ahd_linux_pci_dev_remove()
132 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.c47 static void ahd_dump_target_state(struct ahd_softc *ahd,
53 static int ahd_proc_write_seeprom(struct ahd_softc *ahd,
206 ahd_dump_target_state(struct ahd_softc *ahd, struct info_str *info, in ahd_dump_target_state() argument
214 tinfo = ahd_fetch_transinfo(ahd, channel, our_id, in ahd_dump_target_state()
219 starget = ahd->platform_data->starget[target_id]; in ahd_dump_target_state()
257 ahd_proc_write_seeprom(struct ahd_softc *ahd, char *buffer, int length) in ahd_proc_write_seeprom() argument
267 ahd_lock(ahd, &s); in ahd_proc_write_seeprom()
268 paused = ahd_is_paused(ahd); in ahd_proc_write_seeprom()
270 ahd_pause(ahd); in ahd_proc_write_seeprom()
272 saved_modes = ahd_save_modes(ahd); in ahd_proc_write_seeprom()
[all …]
Daic79xx_osm.h66 #define AIC_LIB_PREFIX ahd
186 int ahd_dmamap_load(struct ahd_softc *ahd, bus_dma_tag_t /*dmat*/,
209 #define ahd_dmamap_sync(ahd, dma_tag, dmamap, offset, len, op) argument
369 uint8_t ahd_inb(struct ahd_softc * ahd, long port);
370 void ahd_outb(struct ahd_softc * ahd, long port, uint8_t val);
371 void ahd_outw_atomic(struct ahd_softc * ahd,
373 void ahd_outsb(struct ahd_softc * ahd, long port,
375 void ahd_insb(struct ahd_softc * ahd, long port,
392 ahd_lockinit(struct ahd_softc *ahd) in ahd_lockinit() argument
394 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) { \