Lines Matching defs:sht
46 /* Protect sht->present and sht->proc_dir */
96 * @sht: owner of this directory
98 * Sets sht->proc_dir to the new directory.
101 void scsi_proc_hostdir_add(struct scsi_host_template *sht)
103 if (!sht->show_info)
107 if (!sht->present++) {
108 sht->proc_dir = proc_mkdir(sht->proc_name, proc_scsi);
109 if (!sht->proc_dir)
111 __func__, sht->proc_name);
118 * @sht: owner of directory
120 void scsi_proc_hostdir_rm(struct scsi_host_template *sht)
122 if (!sht->show_info)
126 if (!--sht->present && sht->proc_dir) {
127 remove_proc_entry(sht->proc_name, proc_scsi);
128 sht->proc_dir = NULL;
140 struct scsi_host_template *sht = shost->hostt;
144 if (!sht->proc_dir)
149 sht->proc_dir, &proc_scsi_ops, shost);
153 sht->proc_name);