• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/acorn/scsi/

Lines Matching refs:host

139 /* Prototype: void cumanascsi_2_terminator_ctl(host, on_off)
141 * Params : host - card to turn on/off
145 cumanascsi_2_terminator_ctl(struct Scsi_Host *host, int on_off)
147 CumanaScsi2_Info *info = (CumanaScsi2_Info *)host->hostdata;
167 struct Scsi_Host *host = (struct Scsi_Host *)dev_id;
169 fas216_intr(host);
172 /* Prototype: fasdmatype_t cumanascsi_2_dma_setup(host, SCpnt, direction, min_type)
174 * Params : host - host
181 cumanascsi_2_dma_setup(struct Scsi_Host *host, Scsi_Pointer *SCp,
184 CumanaScsi2_Info *info = (CumanaScsi2_Info *)host->hostdata;
185 int dmach = host->dma_channel;
230 * Prototype: void cumanascsi_2_dma_pseudo(host, SCpnt, direction, transfer)
232 * Params : host - host
238 cumanascsi_2_dma_pseudo(struct Scsi_Host *host, Scsi_Pointer *SCp,
241 CumanaScsi2_Info *info = (CumanaScsi2_Info *)host->hostdata;
289 /* Prototype: int cumanascsi_2_dma_stop(host, SCpnt)
291 * Params : host - host
295 cumanascsi_2_dma_stop(struct Scsi_Host *host, Scsi_Pointer *SCp)
297 CumanaScsi2_Info *info = (CumanaScsi2_Info *)host->hostdata;
298 if (host->dma_channel != NO_DMA) {
300 disable_dma(host->dma_channel);
307 * Returns : >0 if host found, 0 otherwise.
315 struct Scsi_Host *host;
331 host = scsi_register(tpnt, sizeof (CumanaScsi2_Info));
332 if (!host) {
337 host->io_port = ecard_address(ecs[count], ECARD_MEMC, 0);
338 host->irq = ecs[count]->irq;
339 host->dma_channel = ecs[count]->dma;
340 info = (CumanaScsi2_Info *)host->hostdata;
343 cumanascsi_2_terminator_ctl(host, info->terms);
345 info->info.scsi.io_port = host->io_port + CUMANASCSI2_FAS216_OFFSET;
347 info->info.scsi.irq = host->irq;
358 info->dmaarea = host->io_port + CUMANASCSI2_PSEUDODMA;
359 info->status = host->io_port + CUMANASCSI2_STATUS;
360 info->alatch = host->io_port + CUMANASCSI2_ALATCH;
367 request_region(host->io_port + CUMANASCSI2_FAS216_OFFSET,
370 if (host->irq != NO_IRQ &&
371 request_irq(host->irq, cumanascsi_2_intr,
372 SA_INTERRUPT, "cumanascsi2", host)) {
374 host->host_no, host->irq);
375 host->irq = NO_IRQ;
379 if (host->dma_channel != NO_DMA &&
380 request_dma(host->dma_channel, "cumanascsi2")) {
382 host->host_no, host->dma_channel);
383 host->dma_channel = NO_DMA;
386 fas216_init(host);
392 /* Prototype: int cumanascsi_2_release(struct Scsi_Host * host)
394 * Params : host - driver host structure to return info for.
396 int cumanascsi_2_release(struct Scsi_Host *host)
400 fas216_release(host);
402 if (host->irq != NO_IRQ)
403 free_irq(host->irq, host);
404 if (host->dma_channel != NO_DMA)
405 free_dma(host->dma_channel);
406 release_region(host->io_port + CUMANASCSI2_FAS216_OFFSET,
410 if (ecs[i] && host->io_port == ecard_address (ecs[i], ECARD_MEMC, 0))
415 /* Prototype: const char *cumanascsi_2_info(struct Scsi_Host * host)
417 * Params : host - driver host structure to return info for.
420 const char *cumanascsi_2_info(struct Scsi_Host *host)
422 CumanaScsi2_Info *info = (CumanaScsi2_Info *)host->hostdata;
426 p += sprintf(p, "%s ", host->hostt->name);
435 /* Prototype: int cumanascsi_2_set_proc_info(struct Scsi_Host *host, char *buffer, int length)
437 * Params : host - host to setup
443 cumanascsi_2_set_proc_info(struct Scsi_Host *host, char *buffer, int length)
453 cumanascsi_2_terminator_ctl(host, 1);
455 cumanascsi_2_terminator_ctl(host, 0);
475 * host_no - host number to return information for
483 struct Scsi_Host *host = scsi_hostlist;
487 while (host) {
488 if (host->host_no == host_no)
490 host = host->next;
492 if (!host)
496 return cumanascsi_2_set_proc_info(host, buffer, length);
498 info = (CumanaScsi2_Info *)host->hostdata;
513 for (scd = host->host_queue; scd; scd = scd->next) {