Lines Matching defs:host
93 /* Prototype: void powertecscsi_terminator_ctl(host, on_off)
95 * Params : host - card to turn on/off
99 powertecscsi_terminator_ctl(struct Scsi_Host *host, int on_off)
101 struct powertec_info *info = (struct powertec_info *)host->hostdata;
119 /* Prototype: fasdmatype_t powertecscsi_dma_setup(host, SCpnt, direction, min_type)
121 * Params : host - host
128 powertecscsi_dma_setup(struct Scsi_Host *host, struct scsi_pointer *SCp,
131 struct powertec_info *info = (struct powertec_info *)host->hostdata;
132 struct device *dev = scsi_get_device(host);
165 /* Prototype: int powertecscsi_dma_stop(host, SCpnt)
167 * Params : host - host
171 powertecscsi_dma_stop(struct Scsi_Host *host, struct scsi_pointer *SCp)
173 struct powertec_info *info = (struct powertec_info *)host->hostdata;
178 /* Prototype: const char *powertecscsi_info(struct Scsi_Host * host)
180 * Params : host - driver host structure to return info for.
183 const char *powertecscsi_info(struct Scsi_Host *host)
185 struct powertec_info *info = (struct powertec_info *)host->hostdata;
189 host->hostt->name, info->info.scsi.type, info->ec->slot_no,
195 /* Prototype: int powertecscsi_set_proc_info(struct Scsi_Host *host, char *buffer, int length)
197 * Params : host - host to setup
203 powertecscsi_set_proc_info(struct Scsi_Host *host, char *buffer, int length)
213 powertecscsi_terminator_ctl(host, 1);
215 powertecscsi_terminator_ctl(host, 0);
238 static int powertecscsi_show_info(struct seq_file *m, struct Scsi_Host *host)
242 info = (struct powertec_info *)host->hostdata;
257 struct Scsi_Host *host = ecard_get_drvdata(ec);
258 struct powertec_info *info = (struct powertec_info *)host->hostdata;
267 struct Scsi_Host *host = ecard_get_drvdata(ec);
270 powertecscsi_terminator_ctl(host, buf[0] != '0');
301 struct Scsi_Host *host;
316 host = scsi_host_alloc(&powertecscsi_template,
318 if (!host) {
323 ecard_set_drvdata(ec, host);
325 info = (struct powertec_info *)host->hostdata;
327 powertecscsi_terminator_ctl(host, term[ec->slot_no]);
353 ret = fas216_init(host);
361 host->host_no, ec->irq, ret);
368 host->host_no, info->info.scsi.dma);
376 ret = fas216_add(host, &ec->dev);
385 fas216_release(host);
389 scsi_host_put(host);
400 struct Scsi_Host *host = ecard_get_drvdata(ec);
401 struct powertec_info *info = (struct powertec_info *)host->hostdata;
404 fas216_remove(host);
412 fas216_release(host);
413 scsi_host_put(host);