Lines Matching refs:debugfs_dir
159 struct dentry *parent = ctrl->subsys->debugfs_dir; in nvmet_debugfs_ctrl_setup()
165 ctrl->debugfs_dir = debugfs_create_dir(name, parent); in nvmet_debugfs_ctrl_setup()
166 if (IS_ERR(ctrl->debugfs_dir)) { in nvmet_debugfs_ctrl_setup()
167 ret = PTR_ERR(ctrl->debugfs_dir); in nvmet_debugfs_ctrl_setup()
168 ctrl->debugfs_dir = NULL; in nvmet_debugfs_ctrl_setup()
171 debugfs_create_file("port", S_IRUSR, ctrl->debugfs_dir, ctrl, in nvmet_debugfs_ctrl_setup()
173 debugfs_create_file("hostnqn", S_IRUSR, ctrl->debugfs_dir, ctrl, in nvmet_debugfs_ctrl_setup()
175 debugfs_create_file("kato", S_IRUSR, ctrl->debugfs_dir, ctrl, in nvmet_debugfs_ctrl_setup()
177 debugfs_create_file("state", S_IRUSR | S_IWUSR, ctrl->debugfs_dir, ctrl, in nvmet_debugfs_ctrl_setup()
179 debugfs_create_file("host_traddr", S_IRUSR, ctrl->debugfs_dir, ctrl, in nvmet_debugfs_ctrl_setup()
182 debugfs_create_file("tls_concat", S_IRUSR, ctrl->debugfs_dir, ctrl, in nvmet_debugfs_ctrl_setup()
184 debugfs_create_file("tls_key", S_IRUSR, ctrl->debugfs_dir, ctrl, in nvmet_debugfs_ctrl_setup()
192 debugfs_remove_recursive(ctrl->debugfs_dir); in nvmet_debugfs_ctrl_free()
199 subsys->debugfs_dir = debugfs_create_dir(subsys->subsysnqn, in nvmet_debugfs_subsys_setup()
201 if (IS_ERR(subsys->debugfs_dir)) { in nvmet_debugfs_subsys_setup()
202 ret = PTR_ERR(subsys->debugfs_dir); in nvmet_debugfs_subsys_setup()
203 subsys->debugfs_dir = NULL; in nvmet_debugfs_subsys_setup()
210 debugfs_remove_recursive(subsys->debugfs_dir); in nvmet_debugfs_subsys_free()