Lines Matching refs:iaa_device

76 	atomic64_inc(&wq->iaa_device->comp_calls);  in update_wq_comp_calls()
84 atomic64_add(n, &wq->iaa_device->comp_bytes); in update_wq_comp_bytes()
92 atomic64_inc(&wq->iaa_device->decomp_calls); in update_wq_decomp_calls()
100 atomic64_add(n, &wq->iaa_device->decomp_bytes); in update_wq_decomp_bytes()
123 static void reset_device_stats(struct iaa_device *iaa_device) in reset_device_stats() argument
127 atomic64_set(&iaa_device->comp_calls, 0); in reset_device_stats()
128 atomic64_set(&iaa_device->comp_bytes, 0); in reset_device_stats()
129 atomic64_set(&iaa_device->decomp_calls, 0); in reset_device_stats()
130 atomic64_set(&iaa_device->decomp_bytes, 0); in reset_device_stats()
132 list_for_each_entry(iaa_wq, &iaa_device->wqs, list) in reset_device_stats()
149 static void device_stats_show(struct seq_file *m, struct iaa_device *iaa_device) in device_stats_show() argument
154 seq_printf(m, " id: %d\n", iaa_device->idxd->id); in device_stats_show()
155 seq_printf(m, " n_wqs: %d\n", iaa_device->n_wq); in device_stats_show()
157 atomic64_read(&iaa_device->comp_calls)); in device_stats_show()
159 atomic64_read(&iaa_device->comp_bytes)); in device_stats_show()
161 atomic64_read(&iaa_device->decomp_calls)); in device_stats_show()
163 atomic64_read(&iaa_device->decomp_bytes)); in device_stats_show()
166 list_for_each_entry(iaa_wq, &iaa_device->wqs, list) in device_stats_show()
195 struct iaa_device *iaa_device; in wq_stats_show() local
199 list_for_each_entry(iaa_device, &iaa_devices, list) in wq_stats_show()
200 device_stats_show(m, iaa_device); in wq_stats_show()
209 struct iaa_device *iaa_device; in iaa_crypto_stats_reset() local
215 list_for_each_entry(iaa_device, &iaa_devices, list) in iaa_crypto_stats_reset()
216 reset_device_stats(iaa_device); in iaa_crypto_stats_reset()