Lines Matching refs:shost
61 struct Scsi_Host *shost = data;
64 n = shost->hostt->proc_info(shost, buffer, start, offset, length, 0);
80 struct Scsi_Host *shost = data;
93 ret = shost->hostt->proc_info(shost, page, &start, 0, count, 1);
142 * @shost: host to add
144 void scsi_proc_host_add(struct Scsi_Host *shost)
146 struct scsi_host_template *sht = shost->hostt;
153 sprintf(name,"%d", shost->host_no);
155 sht->proc_dir, proc_scsi_read, shost);
158 "%s\n", __func__, shost->host_no,
168 * @shost: which host
170 void scsi_proc_host_rm(struct Scsi_Host *shost)
174 if (!shost->hostt->proc_dir)
177 sprintf(name,"%d", shost->host_no);
178 remove_proc_entry(name, shost->hostt->proc_dir);
255 struct Scsi_Host *shost;
258 shost = scsi_host_lookup(host);
259 if (!shost)
262 if (shost->transportt->user_scan)
263 error = shost->transportt->user_scan(shost, channel, id, lun);
265 error = scsi_scan_host_selected(shost, channel, id, lun, 1);
266 scsi_host_put(shost);
283 struct Scsi_Host *shost;
286 shost = scsi_host_lookup(host);
287 if (!shost)
289 sdev = scsi_device_lookup(shost, channel, id, lun);
296 scsi_host_put(shost);