• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/scsi/aic7xxx/

Lines Matching defs:ahc

48 static void	ahc_dump_target_state(struct ahc_softc *ahc,
54 static int ahc_proc_write_seeprom(struct ahc_softc *ahc,
181 ahc_dump_target_state(struct ahc_softc *ahc, struct info_str *info,
190 tinfo = ahc_fetch_transinfo(ahc, channel, our_id,
192 if ((ahc->features & AHC_TWIN) != 0)
197 starget = ahc->platform_data->starget[target_offset];
235 ahc_proc_write_seeprom(struct ahc_softc *ahc, char *buffer, int length)
245 ahc_lock(ahc, &s);
246 paused = ahc_is_paused(ahc);
248 ahc_pause(ahc);
261 sd.sd_ahc = ahc;
263 if ((ahc->chip & AHC_PCI) != 0) {
267 if (ahc->flags & AHC_LARGE_SEEPROM)
277 have_seeprom = ahc_acquire_seeprom(ahc, &sd);
280 if ((ahc->chip & AHC_VL) != 0) {
303 if (ahc->seep_config == NULL) {
304 ahc->seep_config = malloc(sizeof(*ahc->seep_config),
306 if (ahc->seep_config == NULL) {
313 start_addr = 32 * (ahc->channel - 'A');
316 ahc_read_seeprom(&sd, (uint16_t *)ahc->seep_config,
319 if ((ahc->chip & AHC_VL) == 0)
327 ahc_unpause(ahc);
328 ahc_unlock(ahc, &s);
339 struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata;
348 retval = ahc_proc_write_seeprom(ahc, buffer, length);
362 copy_info(&info, "%s\n", ahc->description);
363 ahc_controller_info(ahc, ahc_info);
366 ahc->scb_data->numscbs, AHC_NSEG);
369 if (ahc->seep_config == NULL)
373 for (i = 0; i < sizeof(*ahc->seep_config)/2; i++) {
378 ((uint16_t*)ahc->seep_config)[i]);
385 if ((ahc->features & (AHC_WIDE|AHC_TWIN)) == 0)
394 our_id = ahc->our_id;
396 if (i > 7 && (ahc->features & AHC_TWIN) != 0) {
398 our_id = ahc->our_id_b;
402 ahc_dump_target_state(ahc, &info, our_id,