Lines Matching defs:ahd
47 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,
214 tinfo = ahd_fetch_transinfo(ahd, channel, our_id,
219 starget = ahd->platform_data->starget[target_id];
257 ahd_proc_write_seeprom(struct ahd_softc *ahd, char *buffer, int length)
267 ahd_lock(ahd, &s);
268 paused = ahd_is_paused(ahd);
270 ahd_pause(ahd);
272 saved_modes = ahd_save_modes(ahd);
273 ahd_set_modes(ahd, AHD_MODE_SCSI, AHD_MODE_SCSI);
285 have_seeprom = ahd_acquire_seeprom(ahd);
292 if (ahd->seep_config == NULL) {
293 ahd->seep_config = malloc(sizeof(*ahd->seep_config),
295 if (ahd->seep_config == NULL) {
302 start_addr = 32 * (ahd->channel - 'A');
303 ahd_write_seeprom(ahd, (u_int16_t *)buffer, start_addr,
305 ahd_read_seeprom(ahd, (uint16_t *)ahd->seep_config,
308 ahd_release_seeprom(ahd);
313 ahd_restore_modes(ahd, saved_modes);
315 ahd_unpause(ahd);
316 ahd_unlock(ahd, &s);
326 struct ahd_softc *ahd = *(struct ahd_softc **)shost->hostdata;
335 retval = ahd_proc_write_seeprom(ahd, buffer, length);
349 copy_info(&info, "%s\n", ahd->description);
350 ahd_controller_info(ahd, ahd_info);
353 ahd->scb_data.numscbs, AHD_NSEG);
357 if (ahd->seep_config == NULL)
361 for (i = 0; i < sizeof(*ahd->seep_config)/2; i++) {
366 ((uint16_t*)ahd->seep_config)[i]);
372 if ((ahd->features & AHD_WIDE) == 0)
377 ahd_dump_target_state(ahd, &info, ahd->our_id, 'A',