Lines Matching refs:clnt
20 struct rpc_clnt *clnt; member
29 struct rpc_clnt *clnt = task->tk_client; in tasks_show() local
40 clnt->cl_clid, xid, task->tk_timeout, task->tk_ops, in tasks_show()
41 clnt->cl_program->name, clnt->cl_vers, rpc_proc_name(task), in tasks_show()
48 __acquires(&clnt->cl_lock) in tasks_start()
52 struct rpc_clnt *clnt = iter->clnt; in tasks_start() local
56 spin_lock(&clnt->cl_lock); in tasks_start()
57 list_for_each_entry(task, &clnt->cl_tasks, tk_task) in tasks_start()
67 struct rpc_clnt *clnt = iter->clnt; in tasks_next() local
75 if (next == &clnt->cl_tasks) in tasks_next()
82 __releases(&clnt->cl_lock) in tasks_stop()
85 struct rpc_clnt *clnt = iter->clnt; in tasks_stop() local
87 spin_unlock(&clnt->cl_lock); in tasks_stop()
106 iter->clnt = inode->i_private; in tasks_open()
108 if (!atomic_inc_not_zero(&iter->clnt->cl_count)) { in tasks_open()
123 rpc_release_client(iter->clnt); in tasks_release()
136 rpc_clnt_debugfs_register(struct rpc_clnt *clnt) in rpc_clnt_debugfs_register() argument
143 if (clnt->cl_debugfs || !rpc_clnt_dir) in rpc_clnt_debugfs_register()
146 len = snprintf(name, sizeof(name), "%x", clnt->cl_clid); in rpc_clnt_debugfs_register()
151 clnt->cl_debugfs = debugfs_create_dir(name, rpc_clnt_dir); in rpc_clnt_debugfs_register()
152 if (!clnt->cl_debugfs) in rpc_clnt_debugfs_register()
156 if (!debugfs_create_file("tasks", S_IFREG | S_IRUSR, clnt->cl_debugfs, in rpc_clnt_debugfs_register()
157 clnt, &tasks_fops)) in rpc_clnt_debugfs_register()
161 xprt = rcu_dereference(clnt->cl_xprt); in rpc_clnt_debugfs_register()
174 if (!debugfs_create_symlink("xprt", clnt->cl_debugfs, name)) in rpc_clnt_debugfs_register()
179 debugfs_remove_recursive(clnt->cl_debugfs); in rpc_clnt_debugfs_register()
180 clnt->cl_debugfs = NULL; in rpc_clnt_debugfs_register()
184 rpc_clnt_debugfs_unregister(struct rpc_clnt *clnt) in rpc_clnt_debugfs_unregister() argument
186 debugfs_remove_recursive(clnt->cl_debugfs); in rpc_clnt_debugfs_unregister()
187 clnt->cl_debugfs = NULL; in rpc_clnt_debugfs_unregister()