Lines Matching defs:ahc
46 static void ahc_dump_target_state(struct ahc_softc *ahc,
134 ahc_dump_target_state(struct ahc_softc *ahc, struct seq_file *m,
143 tinfo = ahc_fetch_transinfo(ahc, channel, our_id,
145 if ((ahc->features & AHC_TWIN) != 0)
150 starget = ahc->platform_data->starget[target_offset];
190 struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata;
199 ahc_lock(ahc, &s);
200 paused = ahc_is_paused(ahc);
202 ahc_pause(ahc);
215 sd.sd_ahc = ahc;
217 if ((ahc->chip & AHC_PCI) != 0) {
221 if (ahc->flags & AHC_LARGE_SEEPROM)
231 have_seeprom = ahc_acquire_seeprom(ahc, &sd);
234 if ((ahc->chip & AHC_VL) != 0) {
257 if (ahc->seep_config == NULL) {
258 ahc->seep_config = kmalloc(sizeof(*ahc->seep_config), GFP_ATOMIC);
259 if (ahc->seep_config == NULL) {
266 start_addr = 32 * (ahc->channel - 'A');
269 ahc_read_seeprom(&sd, (uint16_t *)ahc->seep_config,
272 if ((ahc->chip & AHC_VL) == 0)
280 ahc_unpause(ahc);
281 ahc_unlock(ahc, &s);
291 struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata;
298 seq_printf(m, "%s\n", ahc->description);
299 ahc_controller_info(ahc, ahc_info);
302 ahc->scb_data->numscbs, AHC_NSEG);
305 if (ahc->seep_config == NULL)
309 for (i = 0; i < sizeof(*ahc->seep_config)/2; i++) {
314 ((uint16_t*)ahc->seep_config)[i]);
321 if ((ahc->features & (AHC_WIDE|AHC_TWIN)) == 0)
330 our_id = ahc->our_id;
332 if (i > 7 && (ahc->features & AHC_TWIN) != 0) {
334 our_id = ahc->our_id_b;
338 ahc_dump_target_state(ahc, m, our_id,