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), GFP_ATOMIC); in ahc_proc_write_seeprom()
259 if (ahc->seep_config == NULL) { in ahc_proc_write_seeprom()
266 start_addr = 32 * (ahc->channel - 'A'); in ahc_proc_write_seeprom()
269 ahc_read_seeprom(&sd, (uint16_t *)ahc->seep_config, in ahc_proc_write_seeprom()
272 if ((ahc->chip & AHC_VL) == 0) in ahc_proc_write_seeprom()
280 ahc_unpause(ahc); in ahc_proc_write_seeprom()
281 ahc_unlock(ahc, &s); in ahc_proc_write_seeprom()
291 struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata; in ahc_linux_show_info() local
298 seq_printf(m, "%s\n", ahc->description); in ahc_linux_show_info()
299 ahc_controller_info(ahc, ahc_info); in ahc_linux_show_info()
302 ahc->scb_data->numscbs, AHC_NSEG); in ahc_linux_show_info()
305 if (ahc->seep_config == NULL) in ahc_linux_show_info()
309 for (i = 0; i < sizeof(*ahc->seep_config)/2; i++) { in ahc_linux_show_info()
314 ((uint16_t*)ahc->seep_config)[i]); in ahc_linux_show_info()
321 if ((ahc->features & (AHC_WIDE|AHC_TWIN)) == 0) in ahc_linux_show_info()
330 our_id = ahc->our_id; in ahc_linux_show_info()
332 if (i > 7 && (ahc->features & AHC_TWIN) != 0) { in ahc_linux_show_info()
334 our_id = ahc->our_id_b; in ahc_linux_show_info()
338 ahc_dump_target_state(ahc, m, our_id, in ahc_linux_show_info()