Searched refs:opstats (Results 1 – 10 of 10) sorted by relevance
81 struct qib_opcode_stats_perctx *opstats; in _opcode_stats_seq_start() local83 if (*pos >= ARRAY_SIZE(opstats->stats)) in _opcode_stats_seq_start()90 struct qib_opcode_stats_perctx *opstats; in _opcode_stats_seq_next() local93 if (*pos >= ARRAY_SIZE(opstats->stats)) in _opcode_stats_seq_next()115 n_packets += dd->rcd[j]->opstats->stats[i].n_packets; in _opcode_stats_seq_show()116 n_bytes += dd->rcd[j]->opstats->stats[i].n_bytes; in _opcode_stats_seq_show()179 for (j = 0; j < ARRAY_SIZE(dd->rcd[i]->opstats->stats); j++) in _ctx_stats_seq_show()180 n_packets += dd->rcd[i]->opstats->stats[j].n_packets; in _ctx_stats_seq_show()
185 rcd->opstats = kzalloc_node(sizeof(*rcd->opstats), in qib_create_ctxtdata()187 if (!rcd->opstats) { in qib_create_ctxtdata()980 kfree(rcd->opstats); in qib_free_ctxtdata()981 rcd->opstats = NULL; in qib_free_ctxtdata()
239 struct qib_opcode_stats_perctx *opstats; member
667 rcd->opstats->stats[opcode].n_bytes += tlen; in qib_ib_rcv()668 rcd->opstats->stats[opcode].n_packets++; in qib_ib_rcv()
112 struct hfi1_opcode_stats_perctx *opstats; in _opcode_stats_seq_start() local115 if (*pos >= ARRAY_SIZE(opstats->stats)) in _opcode_stats_seq_start()122 struct hfi1_opcode_stats_perctx *opstats; in _opcode_stats_seq_next() local125 if (*pos >= ARRAY_SIZE(opstats->stats)) in _opcode_stats_seq_next()148 n_packets += dd->rcd[j]->opstats->stats[i].n_packets; in _opcode_stats_seq_show()149 n_bytes += dd->rcd[j]->opstats->stats[i].n_bytes; in _opcode_stats_seq_show()214 for (j = 0; j < ARRAY_SIZE(dd->rcd[i]->opstats->stats); j++) in _ctx_stats_seq_show()215 n_packets += dd->rcd[i]->opstats->stats[j].n_packets; in _ctx_stats_seq_show()
318 rcd->opstats = kzalloc(sizeof(*rcd->opstats), in hfi1_create_ctxtdata()320 if (!rcd->opstats) in hfi1_create_ctxtdata()326 kfree(rcd->opstats); in hfi1_create_ctxtdata()952 kfree(rcd->opstats); in hfi1_free_ctxtdata()
295 struct hfi1_opcode_stats_perctx *opstats; member
641 inc_opstats(tlen, &rcd->opstats->stats[opcode]); in hfi1_ib_rcv()
637 dev->opstats[opcode].n_bytes += tlen; in ipath_ib_rcv()638 dev->opstats[opcode].n_packets++; in ipath_ib_rcv()2337 for (i = 0; i < ARRAY_SIZE(dev->opstats); i++) { in show_stats()2338 const struct ipath_opcode_stats *si = &dev->opstats[i]; in show_stats()
632 struct ipath_opcode_stats opstats[128]; member