Lines Matching refs:host
3 * parallel port SCSI host adapter.
49 struct Scsi_Host *host;
63 static inline imm_struct *imm_dev(struct Scsi_Host *host)
65 return *(imm_struct **)&host->hostdata;
132 static int imm_write_info(struct Scsi_Host *host, char *buffer, int length)
134 imm_struct *dev = imm_dev(host);
144 static int imm_show_info(struct seq_file *m, struct Scsi_Host *host)
146 imm_struct *dev = imm_dev(host);
617 imm_struct *dev = imm_dev(cmd->device->host);
643 imm_struct *dev = imm_dev(cmd->device->host);
737 struct Scsi_Host *host = cmd->device->host;
784 spin_lock_irqsave(host->host_lock, flags);
787 spin_unlock_irqrestore(host->host_lock, flags);
930 imm_struct *dev = imm_dev(cmd->device->host);
973 imm_struct *dev = imm_dev(cmd->device->host);
1003 imm_struct *dev = imm_dev(cmd->device->host);
1151 struct Scsi_Host *host;
1224 host = scsi_host_alloc(&imm_template, sizeof(imm_struct *));
1225 if (!host)
1227 host->no_highmem = true;
1228 host->io_port = pb->base;
1229 host->n_io_port = ports;
1230 host->dma_channel = -1;
1231 host->unique_id = pb->number;
1232 *(imm_struct **)&host->hostdata = dev;
1233 dev->host = host;
1238 err = scsi_add_host(host, NULL);
1241 scsi_scan_host(host);
1246 scsi_host_put(host);
1265 scsi_remove_host(dev->host);
1266 scsi_host_put(dev->host);