Lines Matching refs:ctrl
41 struct nvmet_ctrl *ctrl = m->private; in nvmet_ctrl_hostnqn_show() local
43 seq_puts(m, ctrl->hostnqn); in nvmet_ctrl_hostnqn_show()
50 struct nvmet_ctrl *ctrl = m->private; in nvmet_ctrl_kato_show() local
52 seq_printf(m, "%d\n", ctrl->kato); in nvmet_ctrl_kato_show()
59 struct nvmet_ctrl *ctrl = m->private; in nvmet_ctrl_port_show() local
61 seq_printf(m, "%d\n", le16_to_cpu(ctrl->port->disc_addr.portid)); in nvmet_ctrl_port_show()
77 struct nvmet_ctrl *ctrl = m->private; in nvmet_ctrl_state_show() local
84 if (!(ctrl->csts & state)) in nvmet_ctrl_state_show()
103 struct nvmet_ctrl *ctrl = m->private; in nvmet_ctrl_state_write() local
111 nvmet_ctrl_fatal_error(ctrl); in nvmet_ctrl_state_write()
120 struct nvmet_ctrl *ctrl = m->private; in nvmet_ctrl_host_traddr_show() local
124 size = nvmet_ctrl_host_traddr(ctrl, buf, NVMF_TRADDR_SIZE); in nvmet_ctrl_host_traddr_show()
138 struct nvmet_ctrl *ctrl = m->private; in nvmet_ctrl_tls_key_show() local
139 key_serial_t keyid = nvmet_queue_tls_keyid(ctrl->sqs[0]); in nvmet_ctrl_tls_key_show()
148 struct nvmet_ctrl *ctrl = m->private; in nvmet_ctrl_tls_concat_show() local
150 seq_printf(m, "%d\n", ctrl->concat); in nvmet_ctrl_tls_concat_show()
156 int nvmet_debugfs_ctrl_setup(struct nvmet_ctrl *ctrl) in nvmet_debugfs_ctrl_setup() argument
159 struct dentry *parent = ctrl->subsys->debugfs_dir; in nvmet_debugfs_ctrl_setup()
164 snprintf(name, sizeof(name), "ctrl%d", ctrl->cntlid); 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()
190 void nvmet_debugfs_ctrl_free(struct nvmet_ctrl *ctrl) in nvmet_debugfs_ctrl_free() argument
192 debugfs_remove_recursive(ctrl->debugfs_dir); in nvmet_debugfs_ctrl_free()