Lines Matching refs:ahc

46 static void	ahc_dump_target_state(struct ahc_softc *ahc,
134 ahc_dump_target_state(struct ahc_softc *ahc, struct seq_file *m, in ahc_dump_target_state() argument
143 tinfo = ahc_fetch_transinfo(ahc, channel, our_id, in ahc_dump_target_state()
145 if ((ahc->features & AHC_TWIN) != 0) in ahc_dump_target_state()
150 starget = ahc->platform_data->starget[target_offset]; in ahc_dump_target_state()
190 struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata; in ahc_proc_write_seeprom() local
199 ahc_lock(ahc, &s); in ahc_proc_write_seeprom()
200 paused = ahc_is_paused(ahc); in ahc_proc_write_seeprom()
202 ahc_pause(ahc); in ahc_proc_write_seeprom()
215 sd.sd_ahc = ahc; in ahc_proc_write_seeprom()
217 if ((ahc->chip & AHC_PCI) != 0) { in ahc_proc_write_seeprom()
221 if (ahc->flags & AHC_LARGE_SEEPROM) in ahc_proc_write_seeprom()
231 have_seeprom = ahc_acquire_seeprom(ahc, &sd); in ahc_proc_write_seeprom()
234 if ((ahc->chip & AHC_VL) != 0) { in ahc_proc_write_seeprom()
257 if (ahc->seep_config == NULL) { in ahc_proc_write_seeprom()
258 ahc->seep_config = kmalloc(sizeof(*ahc->seep_config), in ahc_proc_write_seeprom()
260 if (ahc->seep_config == NULL) { in ahc_proc_write_seeprom()
267 start_addr = 32 * (ahc->channel - 'A'); in ahc_proc_write_seeprom()
270 ahc_read_seeprom(&sd, (uint16_t *)ahc->seep_config, in ahc_proc_write_seeprom()
273 if ((ahc->chip & AHC_VL) == 0) in ahc_proc_write_seeprom()
281 ahc_unpause(ahc); in ahc_proc_write_seeprom()
282 ahc_unlock(ahc, &s); in ahc_proc_write_seeprom()
292 struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata; in ahc_linux_show_info() local
299 seq_printf(m, "%s\n", ahc->description); in ahc_linux_show_info()
300 ahc_controller_info(ahc, ahc_info); in ahc_linux_show_info()
303 ahc->scb_data->numscbs, AHC_NSEG); in ahc_linux_show_info()
306 if (ahc->seep_config == NULL) in ahc_linux_show_info()
310 for (i = 0; i < sizeof(*ahc->seep_config)/2; i++) { in ahc_linux_show_info()
315 ((uint16_t*)ahc->seep_config)[i]); in ahc_linux_show_info()
322 if ((ahc->features & (AHC_WIDE|AHC_TWIN)) == 0) in ahc_linux_show_info()
331 our_id = ahc->our_id; in ahc_linux_show_info()
333 if (i > 7 && (ahc->features & AHC_TWIN) != 0) { in ahc_linux_show_info()
335 our_id = ahc->our_id_b; in ahc_linux_show_info()
339 ahc_dump_target_state(ahc, m, our_id, in ahc_linux_show_info()