Lines Matching refs:s

34 static int mic_smpt_show(struct seq_file *s, void *pos)  in mic_smpt_show()  argument
37 struct mic_device *mdev = s->private; in mic_smpt_show()
40 seq_printf(s, "MIC %-2d |%-10s| %-14s %-10s\n", in mic_smpt_show()
42 seq_puts(s, "====================================================\n"); in mic_smpt_show()
48 seq_printf(s, "%9s|%-10d| %-#14llx %-10lld\n", in mic_smpt_show()
54 seq_puts(s, "====================================================\n"); in mic_smpt_show()
76 static int mic_post_code_show(struct seq_file *s, void *pos) in mic_post_code_show() argument
78 struct mic_device *mdev = s->private; in mic_post_code_show()
81 seq_printf(s, "%c%c", reg & 0xff, (reg >> 8) & 0xff); in mic_post_code_show()
103 static int mic_dp_show(struct seq_file *s, void *pos) in mic_dp_show() argument
105 struct mic_device *mdev = s->private; in mic_dp_show()
114 seq_printf(s, "Bootparam: magic 0x%x\n", in mic_dp_show()
116 seq_printf(s, "Bootparam: h2c_config_db %d\n", in mic_dp_show()
118 seq_printf(s, "Bootparam: node_id %d\n", in mic_dp_show()
120 seq_printf(s, "Bootparam: c2h_scif_db %d\n", in mic_dp_show()
122 seq_printf(s, "Bootparam: h2c_scif_db %d\n", in mic_dp_show()
124 seq_printf(s, "Bootparam: scif_host_dma_addr 0x%llx\n", in mic_dp_show()
126 seq_printf(s, "Bootparam: scif_card_dma_addr 0x%llx\n", in mic_dp_show()
142 seq_printf(s, "Type %d ", d->type); in mic_dp_show()
143 seq_printf(s, "Num VQ %d ", d->num_vq); in mic_dp_show()
144 seq_printf(s, "Feature Len %d\n", d->feature_len); in mic_dp_show()
145 seq_printf(s, "Config Len %d ", d->config_len); in mic_dp_show()
146 seq_printf(s, "Shutdown Status %d\n", d->status); in mic_dp_show()
150 seq_printf(s, "vqconfig[%d]: ", j); in mic_dp_show()
151 seq_printf(s, "address 0x%llx ", vqconfig->address); in mic_dp_show()
152 seq_printf(s, "num %d ", vqconfig->num); in mic_dp_show()
153 seq_printf(s, "used address 0x%llx\n", in mic_dp_show()
158 seq_printf(s, "Features: Host 0x%x ", features[0]); in mic_dp_show()
159 seq_printf(s, "Guest 0x%x\n", features[1]); in mic_dp_show()
163 seq_printf(s, "config[%d]=%d\n", j, config[j]); in mic_dp_show()
165 seq_puts(s, "Device control:\n"); in mic_dp_show()
166 seq_printf(s, "Config Change %d ", dc->config_change); in mic_dp_show()
167 seq_printf(s, "Vdev reset %d\n", dc->vdev_reset); in mic_dp_show()
168 seq_printf(s, "Guest Ack %d ", dc->guest_ack); in mic_dp_show()
169 seq_printf(s, "Host ack %d\n", dc->host_ack); in mic_dp_show()
170 seq_printf(s, "Used address updated %d ", in mic_dp_show()
172 seq_printf(s, "Vdev 0x%llx\n", dc->vdev); in mic_dp_show()
173 seq_printf(s, "c2h doorbell %d ", dc->c2h_vdev_db); in mic_dp_show()
174 seq_printf(s, "h2c doorbell %d\n", dc->h2c_vdev_db); in mic_dp_show()
198 static int mic_vdev_info_show(struct seq_file *s, void *unused) in mic_vdev_info_show() argument
200 struct mic_device *mdev = s->private; in mic_vdev_info_show()
208 seq_printf(s, "VDEV type %d state %s in %ld out %ld\n", in mic_vdev_info_show()
223 seq_printf(s, "vring i %d avail_idx %d", in mic_vdev_info_show()
225 seq_printf(s, " vring i %d avail_idx %d\n", in mic_vdev_info_show()
227 seq_printf(s, "vrh i %d weak_barriers %d", in mic_vdev_info_show()
229 seq_printf(s, " last_avail_idx %d last_used_idx %d", in mic_vdev_info_show()
231 seq_printf(s, " completed %d\n", vrh->completed); in mic_vdev_info_show()
233 seq_printf(s, "desc[%d] addr 0x%llx len %d", in mic_vdev_info_show()
235 seq_printf(s, " flags 0x%x next %d\n", in mic_vdev_info_show()
240 seq_printf(s, "avail flags 0x%x idx %d\n", in mic_vdev_info_show()
243 seq_printf(s, "avail flags 0x%x idx %d\n", in mic_vdev_info_show()
247 seq_printf(s, "avail ring[%d] %d\n", in mic_vdev_info_show()
250 seq_printf(s, "used flags 0x%x idx %d\n", in mic_vdev_info_show()
253 seq_printf(s, "used flags 0x%x idx %d\n", in mic_vdev_info_show()
257 seq_printf(s, "used ring[%d] id %d len %d\n", in mic_vdev_info_show()
287 static int mic_msi_irq_info_show(struct seq_file *s, void *pos) in mic_msi_irq_info_show() argument
289 struct mic_device *mdev = s->private; in mic_msi_irq_info_show()
308 seq_printf(s, "%s %-10d %s %-10d MXAR[%d]: %08X\n", in mic_msi_irq_info_show()
311 seq_printf(s, "%-10s", "offset:"); in mic_msi_irq_info_show()
313 seq_printf(s, "%4d ", j); in mic_msi_irq_info_show()
314 seq_puts(s, "\n"); in mic_msi_irq_info_show()
317 seq_printf(s, "%-10s", "count:"); in mic_msi_irq_info_show()
319 seq_printf(s, "%4d ", in mic_msi_irq_info_show()
322 seq_puts(s, "\n\n"); in mic_msi_irq_info_show()
325 seq_puts(s, "MSI/MSIx interrupts not enabled\n"); in mic_msi_irq_info_show()