Lines Matching defs:shost
52 struct Scsi_Host *shost = PDE_DATA(file_inode(file));
59 if (!shost->hostt->write_info)
67 ret = shost->hostt->write_info(shost, page, count);
76 struct Scsi_Host *shost = m->private;
77 return shost->hostt->show_info(m, shost);
136 * @shost: host to add
138 void scsi_proc_host_add(struct Scsi_Host *shost)
140 struct scsi_host_template *sht = shost->hostt;
147 sprintf(name,"%d", shost->host_no);
149 sht->proc_dir, &proc_scsi_ops, shost);
152 "%s\n", __func__, shost->host_no,
158 * @shost: which host
160 void scsi_proc_host_rm(struct Scsi_Host *shost)
164 if (!shost->hostt->proc_dir)
167 sprintf(name,"%d", shost->host_no);
168 remove_proc_entry(name, shost->hostt->proc_dir);
245 struct Scsi_Host *shost;
248 shost = scsi_host_lookup(host);
249 if (!shost)
252 if (shost->transportt->user_scan)
253 error = shost->transportt->user_scan(shost, channel, id, lun);
255 error = scsi_scan_host_selected(shost, channel, id, lun,
257 scsi_host_put(shost);
274 struct Scsi_Host *shost;
277 shost = scsi_host_lookup(host);
278 if (!shost)
280 sdev = scsi_device_lookup(shost, channel, id, lun);
287 scsi_host_put(shost);