Lines Matching refs:seq
35 static void print_status_bits(struct seq_file *seq, u8 status) in print_status_bits() argument
37 seq_puts(seq, "status:"); in print_status_bits()
38 PRINT_SBIT_NAME(seq, status, VIRTIO_CONFIG_S_ACKNOWLEDGE); in print_status_bits()
39 PRINT_SBIT_NAME(seq, status, VIRTIO_CONFIG_S_DRIVER); in print_status_bits()
40 PRINT_SBIT_NAME(seq, status, VIRTIO_CONFIG_S_DRIVER_OK); in print_status_bits()
41 PRINT_SBIT_NAME(seq, status, VIRTIO_CONFIG_S_FEATURES_OK); in print_status_bits()
42 PRINT_SBIT_NAME(seq, status, VIRTIO_CONFIG_S_NEEDS_RESET); in print_status_bits()
43 PRINT_SBIT_NAME(seq, status, VIRTIO_CONFIG_S_FAILED); in print_status_bits()
44 seq_puts(seq, "\n"); in print_status_bits()
47 static void print_feature_bits_all(struct seq_file *seq, u64 features) in print_feature_bits_all() argument
51 seq_puts(seq, "features:"); in print_feature_bits_all()
58 seq_puts(seq, " VIRTIO_NET_F_CSUM"); in print_feature_bits_all()
61 seq_puts(seq, " VIRTIO_NET_F_GUEST_CSUM"); in print_feature_bits_all()
64 seq_puts(seq, " VIRTIO_NET_F_CTRL_GUEST_OFFLOADS"); in print_feature_bits_all()
67 seq_puts(seq, " VIRTIO_NET_F_MTU"); in print_feature_bits_all()
70 seq_puts(seq, " VIRTIO_NET_F_MAC"); in print_feature_bits_all()
73 seq_puts(seq, " VIRTIO_NET_F_GUEST_TSO4"); in print_feature_bits_all()
76 seq_puts(seq, " VIRTIO_NET_F_GUEST_TSO6"); in print_feature_bits_all()
79 seq_puts(seq, " VIRTIO_NET_F_GUEST_ECN"); in print_feature_bits_all()
82 seq_puts(seq, " VIRTIO_NET_F_GUEST_UFO"); in print_feature_bits_all()
85 seq_puts(seq, " VIRTIO_NET_F_HOST_TSO4"); in print_feature_bits_all()
88 seq_puts(seq, " VIRTIO_NET_F_HOST_TSO6"); in print_feature_bits_all()
91 seq_puts(seq, " VIRTIO_NET_F_HOST_ECN"); in print_feature_bits_all()
94 seq_puts(seq, " VIRTIO_NET_F_HOST_UFO"); in print_feature_bits_all()
97 seq_puts(seq, " VIRTIO_NET_F_MRG_RXBUF"); in print_feature_bits_all()
100 seq_puts(seq, " VIRTIO_NET_F_STATUS"); in print_feature_bits_all()
103 seq_puts(seq, " VIRTIO_NET_F_CTRL_VQ"); in print_feature_bits_all()
106 seq_puts(seq, " VIRTIO_NET_F_CTRL_RX"); in print_feature_bits_all()
109 seq_puts(seq, " VIRTIO_NET_F_CTRL_VLAN"); in print_feature_bits_all()
112 seq_puts(seq, " VIRTIO_NET_F_CTRL_RX_EXTRA"); in print_feature_bits_all()
115 seq_puts(seq, " VIRTIO_NET_F_GUEST_ANNOUNCE"); in print_feature_bits_all()
118 seq_puts(seq, " VIRTIO_NET_F_MQ"); in print_feature_bits_all()
121 seq_puts(seq, " VIRTIO_NET_F_CTRL_MAC_ADDR"); in print_feature_bits_all()
124 seq_puts(seq, " VIRTIO_NET_F_HASH_REPORT"); in print_feature_bits_all()
127 seq_puts(seq, " VIRTIO_NET_F_RSS"); in print_feature_bits_all()
130 seq_puts(seq, " VIRTIO_NET_F_RSC_EXT"); in print_feature_bits_all()
133 seq_puts(seq, " VIRTIO_NET_F_STANDBY"); in print_feature_bits_all()
136 seq_puts(seq, " VIRTIO_NET_F_SPEED_DUPLEX"); in print_feature_bits_all()
139 seq_puts(seq, " VIRTIO_F_NOTIFY_ON_EMPTY"); in print_feature_bits_all()
142 seq_puts(seq, " VIRTIO_F_ANY_LAYOUT"); in print_feature_bits_all()
145 seq_puts(seq, " VIRTIO_F_VERSION_1"); in print_feature_bits_all()
148 seq_puts(seq, " VIRTIO_F_ACCESS_PLATFORM"); in print_feature_bits_all()
151 seq_puts(seq, " VIRTIO_F_RING_PACKED"); in print_feature_bits_all()
154 seq_puts(seq, " VIRTIO_F_ORDER_PLATFORM"); in print_feature_bits_all()
157 seq_puts(seq, " VIRTIO_F_SR_IOV"); in print_feature_bits_all()
162 seq_printf(seq, " bit_%d", i); in print_feature_bits_all()
167 seq_puts(seq, "\n"); in print_feature_bits_all()
175 static int identity_show(struct seq_file *seq, void *v) in identity_show() argument
177 struct pds_vdpa_aux *vdpa_aux = seq->private; in identity_show()
181 seq_printf(seq, "aux_dev: %s\n", in identity_show()
185 seq_printf(seq, "max_vqs: %d\n", mgmt->max_supported_vqs); in identity_show()
186 seq_printf(seq, "config_attr_mask: %#llx\n", mgmt->config_attr_mask); in identity_show()
188 seq_printf(seq, "hw_features: %#llx\n", hw_features); in identity_show()
189 print_feature_bits_all(seq, hw_features); in identity_show()
201 static int config_show(struct seq_file *seq, void *v) in config_show() argument
203 struct pds_vdpa_device *pdsv = seq->private; in config_show()
210 seq_printf(seq, "mac: %pM\n", vc.mac); in config_show()
211 seq_printf(seq, "max_virtqueue_pairs: %d\n", in config_show()
213 seq_printf(seq, "mtu: %d\n", __virtio16_to_cpu(true, vc.mtu)); in config_show()
214 seq_printf(seq, "speed: %d\n", le32_to_cpu(vc.speed)); in config_show()
215 seq_printf(seq, "duplex: %d\n", vc.duplex); in config_show()
216 seq_printf(seq, "rss_max_key_size: %d\n", vc.rss_max_key_size); in config_show()
217 seq_printf(seq, "rss_max_indirection_table_length: %d\n", in config_show()
219 seq_printf(seq, "supported_hash_types: %#x\n", in config_show()
221 seq_printf(seq, "vn_status: %#x\n", in config_show()
225 seq_printf(seq, "dev_status: %#x\n", status); in config_show()
226 print_status_bits(seq, status); in config_show()
227 seq_printf(seq, "negotiated_features: %#llx\n", pdsv->negotiated_features); in config_show()
228 print_feature_bits_all(seq, pdsv->negotiated_features); in config_show()
229 seq_printf(seq, "vdpa_index: %d\n", pdsv->vdpa_index); in config_show()
230 seq_printf(seq, "num_vqs: %d\n", pdsv->num_vqs); in config_show()
236 static int vq_show(struct seq_file *seq, void *v) in vq_show() argument
238 struct pds_vdpa_vq_info *vq = seq->private; in vq_show()
240 seq_printf(seq, "ready: %d\n", vq->ready); in vq_show()
241 seq_printf(seq, "desc_addr: %#llx\n", vq->desc_addr); in vq_show()
242 seq_printf(seq, "avail_addr: %#llx\n", vq->avail_addr); in vq_show()
243 seq_printf(seq, "used_addr: %#llx\n", vq->used_addr); in vq_show()
244 seq_printf(seq, "q_len: %d\n", vq->q_len); in vq_show()
245 seq_printf(seq, "qid: %d\n", vq->qid); in vq_show()
247 seq_printf(seq, "doorbell: %#llx\n", vq->doorbell); in vq_show()
248 seq_printf(seq, "avail_idx: %d\n", vq->avail_idx); in vq_show()
249 seq_printf(seq, "used_idx: %d\n", vq->used_idx); in vq_show()
250 seq_printf(seq, "irq: %d\n", vq->irq); in vq_show()
251 seq_printf(seq, "irq-name: %s\n", vq->irq_name); in vq_show()