Home
last modified time | relevance | path

Searched refs:opstats (Results 1 – 10 of 10) sorted by relevance

/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_debugfs.c81 struct qib_opcode_stats_perctx *opstats; in _opcode_stats_seq_start() local
83 if (*pos >= ARRAY_SIZE(opstats->stats)) in _opcode_stats_seq_start()
90 struct qib_opcode_stats_perctx *opstats; in _opcode_stats_seq_next() local
93 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()
Dqib_init.c185 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()
Dqib.h239 struct qib_opcode_stats_perctx *opstats; member
Dqib_verbs.c667 rcd->opstats->stats[opcode].n_bytes += tlen; in qib_ib_rcv()
668 rcd->opstats->stats[opcode].n_packets++; in qib_ib_rcv()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Ddebugfs.c112 struct hfi1_opcode_stats_perctx *opstats; in _opcode_stats_seq_start() local
115 if (*pos >= ARRAY_SIZE(opstats->stats)) in _opcode_stats_seq_start()
122 struct hfi1_opcode_stats_perctx *opstats; in _opcode_stats_seq_next() local
125 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()
Dinit.c318 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()
Dhfi.h295 struct hfi1_opcode_stats_perctx *opstats; member
Dverbs.c641 inc_opstats(tlen, &rcd->opstats->stats[opcode]); in hfi1_ib_rcv()
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_verbs.c637 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()
Dipath_verbs.h632 struct ipath_opcode_stats opstats[128]; member