Lines Matching refs:ahc
68 #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)
87 #define SCB_GET_TARGET_OFFSET(ahc, scb) \ argument
88 (SCB_GET_TARGET(ahc, scb) + (SCB_IS_SCSIBUS_B(ahc, scb) ? 8 : 0))
89 #define SCB_GET_TARGET_MASK(ahc, scb) \ argument
90 (0x01 << (SCB_GET_TARGET_OFFSET(ahc, scb)))
1138 void ahc_pci_resume(struct ahc_softc *ahc);
1143 int aic7770_config(struct ahc_softc *ahc,
1149 void ahc_qinfifo_requeue_tail(struct ahc_softc *ahc,
1151 int ahc_match_scb(struct ahc_softc *ahc, struct scb *scb,
1158 void ahc_controller_info(struct ahc_softc *ahc, char *buf);
1159 int ahc_chip_init(struct ahc_softc *ahc);
1160 int ahc_init(struct ahc_softc *ahc);
1161 void ahc_intr_enable(struct ahc_softc *ahc, int enable);
1162 void ahc_pause_and_flushwork(struct ahc_softc *ahc);
1164 int ahc_suspend(struct ahc_softc *ahc);
1165 int ahc_resume(struct ahc_softc *ahc);
1169 void ahc_free(struct ahc_softc *ahc);
1170 int ahc_reset(struct ahc_softc *ahc, int reinit);
1178 int ahc_search_qinfifo(struct ahc_softc *ahc, int target,
1182 int ahc_search_untagged_queues(struct ahc_softc *ahc,
1187 int ahc_search_disc_list(struct ahc_softc *ahc, int target,
1191 int ahc_reset_channel(struct ahc_softc *ahc, char channel,
1200 const struct ahc_syncrate* ahc_find_syncrate(struct ahc_softc *ahc, u_int *period,
1202 u_int ahc_find_period(struct ahc_softc *ahc,
1218 void ahc_set_width(struct ahc_softc *ahc,
1221 void ahc_set_syncrate(struct ahc_softc *ahc,
1237 void ahc_handle_en_lun(struct ahc_softc *ahc,
1239 cam_status ahc_find_tmode_devs(struct ahc_softc *ahc,
1265 void ahc_print_devinfo(struct ahc_softc *ahc,
1267 void ahc_dump_card_state(struct ahc_softc *ahc);
1276 int ahc_acquire_seeprom(struct ahc_softc *ahc,