Lines Matching defs:ahd
45 static void ahd_dump_target_state(struct ahd_softc *ahd,
157 ahd_dump_target_state(struct ahd_softc *ahd, struct seq_file *m,
165 tinfo = ahd_fetch_transinfo(ahd, channel, our_id,
170 starget = ahd->platform_data->starget[target_id];
210 struct ahd_softc *ahd = *(struct ahd_softc **)shost->hostdata;
219 ahd_lock(ahd, &s);
220 paused = ahd_is_paused(ahd);
222 ahd_pause(ahd);
224 saved_modes = ahd_save_modes(ahd);
225 ahd_set_modes(ahd, AHD_MODE_SCSI, AHD_MODE_SCSI);
237 have_seeprom = ahd_acquire_seeprom(ahd);
244 if (ahd->seep_config == NULL) {
245 ahd->seep_config = kmalloc(sizeof(*ahd->seep_config),
247 if (ahd->seep_config == NULL) {
254 start_addr = 32 * (ahd->channel - 'A');
255 ahd_write_seeprom(ahd, (u_int16_t *)buffer, start_addr,
257 ahd_read_seeprom(ahd, (uint16_t *)ahd->seep_config,
260 ahd_release_seeprom(ahd);
265 ahd_restore_modes(ahd, saved_modes);
267 ahd_unpause(ahd);
268 ahd_unlock(ahd, &s);
277 struct ahd_softc *ahd = *(struct ahd_softc **)shost->hostdata;
284 seq_printf(m, "%s\n", ahd->description);
285 ahd_controller_info(ahd, ahd_info);
288 ahd->scb_data.numscbs, AHD_NSEG);
292 if (ahd->seep_config == NULL)
296 for (i = 0; i < sizeof(*ahd->seep_config)/2; i++) {
301 ((uint16_t*)ahd->seep_config)[i]);
307 if ((ahd->features & AHD_WIDE) == 0)
312 ahd_dump_target_state(ahd, m, ahd->our_id, 'A',