Lines Matching refs:host

131 cumanascsi_2_terminator_ctl(struct Scsi_Host *host, int on_off)  in cumanascsi_2_terminator_ctl()  argument
133 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_terminator_ctl()
165 cumanascsi_2_dma_setup(struct Scsi_Host *host, Scsi_Pointer *SCp, in cumanascsi_2_dma_setup() argument
168 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_dma_setup()
169 int dmach = host->dma_channel; in cumanascsi_2_dma_setup()
216 cumanascsi_2_dma_pseudo(struct Scsi_Host *host, Scsi_Pointer *SCp, in cumanascsi_2_dma_pseudo() argument
219 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_dma_pseudo()
289 cumanascsi_2_dma_stop(struct Scsi_Host *host, Scsi_Pointer *SCp) in cumanascsi_2_dma_stop() argument
291 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_dma_stop()
292 if (host->dma_channel != NO_DMA) { in cumanascsi_2_dma_stop()
294 disable_dma(host->dma_channel); in cumanascsi_2_dma_stop()
303 const char *cumanascsi_2_info(struct Scsi_Host *host) in cumanascsi_2_info() argument
305 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_info()
309 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in cumanascsi_2_info()
323 cumanascsi_2_set_proc_info(struct Scsi_Host *host, char *buffer, int length) in cumanascsi_2_set_proc_info() argument
333 cumanascsi_2_terminator_ctl(host, 1); in cumanascsi_2_set_proc_info()
335 cumanascsi_2_terminator_ctl(host, 0); in cumanascsi_2_set_proc_info()
363 struct Scsi_Host *host; in cumanascsi_2_proc_info() local
367 host = scsi_host_hn_get(host_no); in cumanascsi_2_proc_info()
368 if (!host) in cumanascsi_2_proc_info()
372 return cumanascsi_2_set_proc_info(host, buffer, length); in cumanascsi_2_proc_info()
374 info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_proc_info()
386 for (scd = host->host_queue; scd; scd = scd->next) { in cumanascsi_2_proc_info()
449 static void cumanascsi2_remove(struct Scsi_Host *host);
455 static int cumanascsi_2_release(struct Scsi_Host *host) in cumanascsi_2_release() argument
457 cumanascsi2_remove(host); in cumanascsi_2_release()
488 struct Scsi_Host *host; in cumanascsi2_probe() local
501 host = scsi_register(&cumanascsi2_template, in cumanascsi2_probe()
503 if (!host) { in cumanascsi2_probe()
508 host->io_port = base; in cumanascsi2_probe()
509 host->irq = ec->irq; in cumanascsi2_probe()
510 host->dma_channel = ec->dma; in cumanascsi2_probe()
512 info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi2_probe()
523 cumanascsi_2_terminator_ctl(host, term[ec->slot_no]); in cumanascsi2_probe()
527 info->info.scsi.irq = host->irq; in cumanascsi2_probe()
540 ret = fas216_init(host); in cumanascsi2_probe()
544 ret = request_irq(host->irq, cumanascsi_2_intr, in cumanascsi2_probe()
548 host->host_no, host->irq, ret); in cumanascsi2_probe()
552 if (host->dma_channel != NO_DMA) { in cumanascsi2_probe()
553 if (request_dma(host->dma_channel, "cumanascsi2")) { in cumanascsi2_probe()
555 host->host_no, host->dma_channel); in cumanascsi2_probe()
556 host->dma_channel = NO_DMA; in cumanascsi2_probe()
558 set_dma_speed(host->dma_channel, 180); in cumanascsi2_probe()
563 ret = fas216_add(host); in cumanascsi2_probe()
567 if (host->dma_channel != NO_DMA) in cumanascsi2_probe()
568 free_dma(host->dma_channel); in cumanascsi2_probe()
569 free_irq(host->irq, host); in cumanascsi2_probe()
572 fas216_release(host); in cumanascsi2_probe()
575 scsi_unregister(host); in cumanascsi2_probe()
585 static void cumanascsi2_remove(struct Scsi_Host *host) in cumanascsi2_remove() argument
587 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi2_remove()
589 fas216_remove(host); in cumanascsi2_remove()
591 if (host->dma_channel != NO_DMA) in cumanascsi2_remove()
592 free_dma(host->dma_channel); in cumanascsi2_remove()
593 free_irq(host->irq, host); in cumanascsi2_remove()
595 release_region(host->io_port + CUMANASCSI2_FAS216_OFFSET, in cumanascsi2_remove()
598 fas216_release(host); in cumanascsi2_remove()