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