Lines Matching refs:cmd_q
115 struct ccp_cmd_queue *cmd_q = &ccp->cmd_q[i]; in ccp5_debugfs_stats_read() local
117 total_ops += cmd_q->total_ops; in ccp5_debugfs_stats_read()
118 total_aes_ops += cmd_q->total_aes_ops; in ccp5_debugfs_stats_read()
119 total_xts_aes_ops += cmd_q->total_xts_aes_ops; in ccp5_debugfs_stats_read()
120 total_3des_ops += cmd_q->total_3des_ops; in ccp5_debugfs_stats_read()
121 total_sha_ops += cmd_q->total_sha_ops; in ccp5_debugfs_stats_read()
122 total_rsa_ops += cmd_q->total_rsa_ops; in ccp5_debugfs_stats_read()
123 total_pt_ops += cmd_q->total_pt_ops; in ccp5_debugfs_stats_read()
124 total_ecc_ops += cmd_q->total_ecc_ops; in ccp5_debugfs_stats_read()
158 static void ccp5_debugfs_reset_queue_stats(struct ccp_cmd_queue *cmd_q) in ccp5_debugfs_reset_queue_stats() argument
160 cmd_q->total_ops = 0L; in ccp5_debugfs_reset_queue_stats()
161 cmd_q->total_aes_ops = 0L; in ccp5_debugfs_reset_queue_stats()
162 cmd_q->total_xts_aes_ops = 0L; in ccp5_debugfs_reset_queue_stats()
163 cmd_q->total_3des_ops = 0L; in ccp5_debugfs_reset_queue_stats()
164 cmd_q->total_sha_ops = 0L; in ccp5_debugfs_reset_queue_stats()
165 cmd_q->total_rsa_ops = 0L; in ccp5_debugfs_reset_queue_stats()
166 cmd_q->total_pt_ops = 0L; in ccp5_debugfs_reset_queue_stats()
167 cmd_q->total_ecc_ops = 0L; in ccp5_debugfs_reset_queue_stats()
182 ccp5_debugfs_reset_queue_stats(&ccp->cmd_q[i]); in ccp5_debugfs_stats_write()
194 struct ccp_cmd_queue *cmd_q = filp->private_data; in ccp5_debugfs_queue_read() local
200 if (!cmd_q) in ccp5_debugfs_queue_read()
208 cmd_q->total_ops); in ccp5_debugfs_queue_read()
210 cmd_q->total_aes_ops); in ccp5_debugfs_queue_read()
212 cmd_q->total_xts_aes_ops); in ccp5_debugfs_queue_read()
214 cmd_q->total_3des_ops); in ccp5_debugfs_queue_read()
216 cmd_q->total_sha_ops); in ccp5_debugfs_queue_read()
218 cmd_q->total_rsa_ops); in ccp5_debugfs_queue_read()
220 cmd_q->total_pt_ops); in ccp5_debugfs_queue_read()
222 cmd_q->total_ecc_ops); in ccp5_debugfs_queue_read()
224 regval = ioread32(cmd_q->reg_int_enable); in ccp5_debugfs_queue_read()
249 struct ccp_cmd_queue *cmd_q = filp->private_data; in ccp5_debugfs_queue_write() local
251 ccp5_debugfs_reset_queue_stats(cmd_q); in ccp5_debugfs_queue_write()
284 struct ccp_cmd_queue *cmd_q; in ccp5_debugfs_setup() local
306 cmd_q = &ccp->cmd_q[i]; in ccp5_debugfs_setup()
308 snprintf(name, MAX_NAME_LEN - 1, "q%d", cmd_q->id); in ccp5_debugfs_setup()
313 debugfs_create_file("stats", 0600, debugfs_q_instance, cmd_q, in ccp5_debugfs_setup()