Lines Matching refs:host
121 eesoxscsi_terminator_ctl(struct Scsi_Host *host, int on_off) in eesoxscsi_terminator_ctl() argument
123 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_terminator_ctl()
126 spin_lock_irqsave(host->host_lock, flags); in eesoxscsi_terminator_ctl()
133 spin_unlock_irqrestore(host->host_lock, flags); in eesoxscsi_terminator_ctl()
158 eesoxscsi_dma_setup(struct Scsi_Host *host, struct scsi_pointer *SCp, in eesoxscsi_dma_setup() argument
161 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_dma_setup()
162 struct device *dev = scsi_get_device(host); in eesoxscsi_dma_setup()
353 eesoxscsi_dma_pseudo(struct Scsi_Host *host, struct scsi_pointer *SCp, in eesoxscsi_dma_pseudo() argument
356 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_dma_pseudo()
370 eesoxscsi_dma_stop(struct Scsi_Host *host, struct scsi_pointer *SCp) in eesoxscsi_dma_stop() argument
372 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_dma_stop()
382 const char *eesoxscsi_info(struct Scsi_Host *host) in eesoxscsi_info() argument
384 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_info()
388 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in eesoxscsi_info()
402 eesoxscsi_set_proc_info(struct Scsi_Host *host, char *buffer, int length) in eesoxscsi_set_proc_info() argument
412 eesoxscsi_terminator_ctl(host, 1); in eesoxscsi_set_proc_info()
414 eesoxscsi_terminator_ctl(host, 0); in eesoxscsi_set_proc_info()
425 static int eesoxscsi_show_info(struct seq_file *m, struct Scsi_Host *host) in eesoxscsi_show_info() argument
429 info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_show_info()
444 struct Scsi_Host *host = ecard_get_drvdata(ec); in eesoxscsi_show_term() local
445 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_show_term()
453 struct Scsi_Host *host = ecard_get_drvdata(ec); in eesoxscsi_store_term() local
454 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_store_term()
458 spin_lock_irqsave(host->host_lock, flags); in eesoxscsi_store_term()
465 spin_unlock_irqrestore(host->host_lock, flags); in eesoxscsi_store_term()
495 struct Scsi_Host *host; in eesoxscsi_probe() local
510 host = scsi_host_alloc(&eesox_template, in eesoxscsi_probe()
512 if (!host) { in eesoxscsi_probe()
517 ecard_set_drvdata(ec, host); in eesoxscsi_probe()
519 info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_probe()
549 ret = fas216_init(host); in eesoxscsi_probe()
556 host->host_no, ec->irq, ret); in eesoxscsi_probe()
563 host->host_no, info->info.scsi.dma); in eesoxscsi_probe()
572 ret = fas216_add(host, &ec->dev); in eesoxscsi_probe()
578 free_irq(ec->irq, host); in eesoxscsi_probe()
581 fas216_remove(host); in eesoxscsi_probe()
585 scsi_host_put(host); in eesoxscsi_probe()
596 struct Scsi_Host *host = ecard_get_drvdata(ec); in eesoxscsi_remove() local
597 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; in eesoxscsi_remove()
600 fas216_remove(host); in eesoxscsi_remove()
608 fas216_release(host); in eesoxscsi_remove()
609 scsi_host_put(host); in eesoxscsi_remove()