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