Lines Matching refs:s

40 static int mic_log_buf_show(struct seq_file *s, void *unused)  in mic_log_buf_show()  argument
44 struct mic_device *mdev = s->private; in mic_log_buf_show()
70 seq_write(s, kva, size); in mic_log_buf_show()
99 static int mic_smpt_show(struct seq_file *s, void *pos) in mic_smpt_show() argument
102 struct mic_device *mdev = s->private; in mic_smpt_show()
105 seq_printf(s, "MIC %-2d |%-10s| %-14s %-10s\n", in mic_smpt_show()
107 seq_puts(s, "====================================================\n"); in mic_smpt_show()
113 seq_printf(s, "%9s|%-10d| %-#14llx %-10lld\n", in mic_smpt_show()
119 seq_puts(s, "====================================================\n"); in mic_smpt_show()
141 static int mic_soft_reset_show(struct seq_file *s, void *pos) in mic_soft_reset_show() argument
143 struct mic_device *mdev = s->private; in mic_soft_reset_show()
167 static int mic_post_code_show(struct seq_file *s, void *pos) in mic_post_code_show() argument
169 struct mic_device *mdev = s->private; in mic_post_code_show()
172 seq_printf(s, "%c%c", reg & 0xff, (reg >> 8) & 0xff); in mic_post_code_show()
194 static int mic_dp_show(struct seq_file *s, void *pos) in mic_dp_show() argument
196 struct mic_device *mdev = s->private; in mic_dp_show()
205 seq_printf(s, "Bootparam: magic 0x%x\n", in mic_dp_show()
207 seq_printf(s, "Bootparam: h2c_shutdown_db %d\n", in mic_dp_show()
209 seq_printf(s, "Bootparam: h2c_config_db %d\n", in mic_dp_show()
211 seq_printf(s, "Bootparam: c2h_shutdown_db %d\n", in mic_dp_show()
213 seq_printf(s, "Bootparam: shutdown_status %d\n", in mic_dp_show()
215 seq_printf(s, "Bootparam: shutdown_card %d\n", in mic_dp_show()
230 seq_printf(s, "Type %d ", d->type); in mic_dp_show()
231 seq_printf(s, "Num VQ %d ", d->num_vq); in mic_dp_show()
232 seq_printf(s, "Feature Len %d\n", d->feature_len); in mic_dp_show()
233 seq_printf(s, "Config Len %d ", d->config_len); in mic_dp_show()
234 seq_printf(s, "Shutdown Status %d\n", d->status); in mic_dp_show()
238 seq_printf(s, "vqconfig[%d]: ", j); in mic_dp_show()
239 seq_printf(s, "address 0x%llx ", vqconfig->address); in mic_dp_show()
240 seq_printf(s, "num %d ", vqconfig->num); in mic_dp_show()
241 seq_printf(s, "used address 0x%llx\n", in mic_dp_show()
246 seq_printf(s, "Features: Host 0x%x ", features[0]); in mic_dp_show()
247 seq_printf(s, "Guest 0x%x\n", features[1]); in mic_dp_show()
251 seq_printf(s, "config[%d]=%d\n", j, config[j]); in mic_dp_show()
253 seq_puts(s, "Device control:\n"); in mic_dp_show()
254 seq_printf(s, "Config Change %d ", dc->config_change); in mic_dp_show()
255 seq_printf(s, "Vdev reset %d\n", dc->vdev_reset); in mic_dp_show()
256 seq_printf(s, "Guest Ack %d ", dc->guest_ack); in mic_dp_show()
257 seq_printf(s, "Host ack %d\n", dc->host_ack); in mic_dp_show()
258 seq_printf(s, "Used address updated %d ", in mic_dp_show()
260 seq_printf(s, "Vdev 0x%llx\n", dc->vdev); in mic_dp_show()
261 seq_printf(s, "c2h doorbell %d ", dc->c2h_vdev_db); in mic_dp_show()
262 seq_printf(s, "h2c doorbell %d\n", dc->h2c_vdev_db); in mic_dp_show()
286 static int mic_vdev_info_show(struct seq_file *s, void *unused) in mic_vdev_info_show() argument
288 struct mic_device *mdev = s->private; in mic_vdev_info_show()
296 seq_printf(s, "VDEV type %d state %s in %ld out %ld\n", in mic_vdev_info_show()
311 seq_printf(s, "vring i %d avail_idx %d", in mic_vdev_info_show()
313 seq_printf(s, " vring i %d avail_idx %d\n", in mic_vdev_info_show()
315 seq_printf(s, "vrh i %d weak_barriers %d", in mic_vdev_info_show()
317 seq_printf(s, " last_avail_idx %d last_used_idx %d", in mic_vdev_info_show()
319 seq_printf(s, " completed %d\n", vrh->completed); in mic_vdev_info_show()
321 seq_printf(s, "desc[%d] addr 0x%llx len %d", in mic_vdev_info_show()
323 seq_printf(s, " flags 0x%x next %d\n", in mic_vdev_info_show()
328 seq_printf(s, "avail flags 0x%x idx %d\n", in mic_vdev_info_show()
331 seq_printf(s, "avail flags 0x%x idx %d\n", in mic_vdev_info_show()
335 seq_printf(s, "avail ring[%d] %d\n", in mic_vdev_info_show()
338 seq_printf(s, "used flags 0x%x idx %d\n", in mic_vdev_info_show()
341 seq_printf(s, "used flags 0x%x idx %d\n", in mic_vdev_info_show()
345 seq_printf(s, "used ring[%d] id %d len %d\n", in mic_vdev_info_show()
375 static int mic_msi_irq_info_show(struct seq_file *s, void *pos) in mic_msi_irq_info_show() argument
377 struct mic_device *mdev = s->private; in mic_msi_irq_info_show()
397 seq_printf(s, "%s %-10d %s %-10d MXAR[%d]: %08X\n", in mic_msi_irq_info_show()
400 seq_printf(s, "%-10s", "offset:"); in mic_msi_irq_info_show()
402 seq_printf(s, "%4d ", j); in mic_msi_irq_info_show()
403 seq_puts(s, "\n"); in mic_msi_irq_info_show()
406 seq_printf(s, "%-10s", "count:"); in mic_msi_irq_info_show()
408 seq_printf(s, "%4d ", in mic_msi_irq_info_show()
411 seq_puts(s, "\n\n"); in mic_msi_irq_info_show()
414 seq_puts(s, "MSI/MSIx interrupts not enabled\n"); in mic_msi_irq_info_show()