Lines Matching refs: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 = kmalloc(sizeof(*ahd->seep_config), GFP_ATOMIC);
294 if (ahd->seep_config == NULL) {
301 start_addr = 32 * (ahd->channel - 'A');
302 ahd_write_seeprom(ahd, (u_int16_t *)buffer, start_addr,
304 ahd_read_seeprom(ahd, (uint16_t *)ahd->seep_config,
307 ahd_release_seeprom(ahd);
312 ahd_restore_modes(ahd, saved_modes);
314 ahd_unpause(ahd);
315 ahd_unlock(ahd, &s);
325 struct ahd_softc *ahd = *(struct ahd_softc **)shost->hostdata;
334 retval = ahd_proc_write_seeprom(ahd, buffer, length);
348 copy_info(&info, "%s\n", ahd->description);
349 ahd_controller_info(ahd, ahd_info);
352 ahd->scb_data.numscbs, AHD_NSEG);
356 if (ahd->seep_config == NULL)
360 for (i = 0; i < sizeof(*ahd->seep_config)/2; i++) {
365 ((uint16_t*)ahd->seep_config)[i]);
371 if ((ahd->features & AHD_WIDE) == 0)
376 ahd_dump_target_state(ahd, &info, ahd->our_id, 'A',