Lines Matching refs:stats
119 struct rpc_iostats *stats; in rpc_alloc_iostats() local
122 stats = kcalloc(clnt->cl_maxproc, sizeof(*stats), GFP_KERNEL); in rpc_alloc_iostats()
123 if (stats) { in rpc_alloc_iostats()
125 spin_lock_init(&stats[i].om_lock); in rpc_alloc_iostats()
127 return stats; in rpc_alloc_iostats()
136 void rpc_free_iostats(struct rpc_iostats *stats) in rpc_free_iostats() argument
138 kfree(stats); in rpc_free_iostats()
185 void rpc_count_iostats(const struct rpc_task *task, struct rpc_iostats *stats) in rpc_count_iostats() argument
188 &stats[task->tk_msg.rpc_proc->p_statidx]); in rpc_count_iostats()
205 struct rpc_iostats *stats = clnt->cl_metrics; in rpc_print_iostats() local
209 if (!stats) in rpc_print_iostats()
224 struct rpc_iostats *metrics = &stats[op]; in rpc_print_iostats()