Lines Matching refs:host

102 powertecscsi_terminator_ctl(struct Scsi_Host *host, int on_off)  in powertecscsi_terminator_ctl()  argument
104 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_terminator_ctl()
131 powertecscsi_dma_setup(struct Scsi_Host *host, struct scsi_pointer *SCp, in powertecscsi_dma_setup() argument
134 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_dma_setup()
135 struct device *dev = scsi_get_device(host); in powertecscsi_dma_setup()
173 powertecscsi_dma_stop(struct Scsi_Host *host, struct scsi_pointer *SCp) in powertecscsi_dma_stop() argument
175 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_dma_stop()
185 const char *powertecscsi_info(struct Scsi_Host *host) in powertecscsi_info() argument
187 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_info()
191 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in powertecscsi_info()
205 powertecscsi_set_proc_info(struct Scsi_Host *host, char *buffer, int length) in powertecscsi_set_proc_info() argument
215 powertecscsi_terminator_ctl(host, 1); in powertecscsi_set_proc_info()
217 powertecscsi_terminator_ctl(host, 0); in powertecscsi_set_proc_info()
240 static int powertecscsi_show_info(struct seq_file *m, struct Scsi_Host *host) in powertecscsi_show_info() argument
244 info = (struct powertec_info *)host->hostdata; in powertecscsi_show_info()
259 struct Scsi_Host *host = ecard_get_drvdata(ec); in powertecscsi_show_term() local
260 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_show_term()
269 struct Scsi_Host *host = ecard_get_drvdata(ec); in powertecscsi_store_term() local
272 powertecscsi_terminator_ctl(host, buf[0] != '0'); in powertecscsi_store_term()
304 struct Scsi_Host *host; in powertecscsi_probe() local
319 host = scsi_host_alloc(&powertecscsi_template, in powertecscsi_probe()
321 if (!host) { in powertecscsi_probe()
326 ecard_set_drvdata(ec, host); in powertecscsi_probe()
328 info = (struct powertec_info *)host->hostdata; in powertecscsi_probe()
330 powertecscsi_terminator_ctl(host, term[ec->slot_no]); in powertecscsi_probe()
356 ret = fas216_init(host); in powertecscsi_probe()
364 host->host_no, ec->irq, ret); in powertecscsi_probe()
371 host->host_no, info->info.scsi.dma); in powertecscsi_probe()
379 ret = fas216_add(host, &ec->dev); in powertecscsi_probe()
385 free_irq(ec->irq, host); in powertecscsi_probe()
388 fas216_release(host); in powertecscsi_probe()
392 scsi_host_put(host); in powertecscsi_probe()
403 struct Scsi_Host *host = ecard_get_drvdata(ec); in powertecscsi_remove() local
404 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_remove()
407 fas216_remove(host); in powertecscsi_remove()
415 fas216_release(host); in powertecscsi_remove()
416 scsi_host_put(host); in powertecscsi_remove()