Lines Matching refs: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), GFP_ATOMIC);
246 if (ahd->seep_config == NULL) {
253 start_addr = 32 * (ahd->channel - 'A');
254 ahd_write_seeprom(ahd, (u_int16_t *)buffer, start_addr,
256 ahd_read_seeprom(ahd, (uint16_t *)ahd->seep_config,
259 ahd_release_seeprom(ahd);
264 ahd_restore_modes(ahd, saved_modes);
266 ahd_unpause(ahd);
267 ahd_unlock(ahd, &s);
276 struct ahd_softc *ahd = *(struct ahd_softc **)shost->hostdata;
283 seq_printf(m, "%s\n", ahd->description);
284 ahd_controller_info(ahd, ahd_info);
287 ahd->scb_data.numscbs, AHD_NSEG);
291 if (ahd->seep_config == NULL)
295 for (i = 0; i < sizeof(*ahd->seep_config)/2; i++) {
300 ((uint16_t*)ahd->seep_config)[i]);
306 if ((ahd->features & AHD_WIDE) == 0)
311 ahd_dump_target_state(ahd, m, ahd->our_id, 'A',