Lines Matching refs:debugfs_dir
138 struct dentry *parent = ctrl->subsys->debugfs_dir; in nvmet_debugfs_ctrl_setup()
144 ctrl->debugfs_dir = debugfs_create_dir(name, parent); in nvmet_debugfs_ctrl_setup()
145 if (IS_ERR(ctrl->debugfs_dir)) { in nvmet_debugfs_ctrl_setup()
146 ret = PTR_ERR(ctrl->debugfs_dir); in nvmet_debugfs_ctrl_setup()
147 ctrl->debugfs_dir = NULL; in nvmet_debugfs_ctrl_setup()
150 debugfs_create_file("port", S_IRUSR, ctrl->debugfs_dir, ctrl, in nvmet_debugfs_ctrl_setup()
152 debugfs_create_file("hostnqn", S_IRUSR, ctrl->debugfs_dir, ctrl, in nvmet_debugfs_ctrl_setup()
154 debugfs_create_file("kato", S_IRUSR, ctrl->debugfs_dir, ctrl, in nvmet_debugfs_ctrl_setup()
156 debugfs_create_file("state", S_IRUSR | S_IWUSR, ctrl->debugfs_dir, ctrl, in nvmet_debugfs_ctrl_setup()
158 debugfs_create_file("host_traddr", S_IRUSR, ctrl->debugfs_dir, ctrl, in nvmet_debugfs_ctrl_setup()
165 debugfs_remove_recursive(ctrl->debugfs_dir); in nvmet_debugfs_ctrl_free()
172 subsys->debugfs_dir = debugfs_create_dir(subsys->subsysnqn, in nvmet_debugfs_subsys_setup()
174 if (IS_ERR(subsys->debugfs_dir)) { in nvmet_debugfs_subsys_setup()
175 ret = PTR_ERR(subsys->debugfs_dir); in nvmet_debugfs_subsys_setup()
176 subsys->debugfs_dir = NULL; in nvmet_debugfs_subsys_setup()
183 debugfs_remove_recursive(subsys->debugfs_dir); in nvmet_debugfs_subsys_free()