Lines Matching full:pc
110 static uint8_t pc[1024]; variable
171 mad_decode_field(pc, IB_PC_PORT_SELECT_F, &val); in aggregate_perfcounters()
173 mad_decode_field(pc, IB_PC_COUNTER_SELECT_F, &val); in aggregate_perfcounters()
175 mad_decode_field(pc, IB_PC_ERR_SYM_F, &val); in aggregate_perfcounters()
177 mad_decode_field(pc, IB_PC_LINK_RECOVERS_F, &val); in aggregate_perfcounters()
179 mad_decode_field(pc, IB_PC_LINK_DOWNED_F, &val); in aggregate_perfcounters()
181 mad_decode_field(pc, IB_PC_ERR_RCV_F, &val); in aggregate_perfcounters()
183 mad_decode_field(pc, IB_PC_ERR_PHYSRCV_F, &val); in aggregate_perfcounters()
185 mad_decode_field(pc, IB_PC_ERR_SWITCH_REL_F, &val); in aggregate_perfcounters()
187 mad_decode_field(pc, IB_PC_XMT_DISCARDS_F, &val); in aggregate_perfcounters()
189 mad_decode_field(pc, IB_PC_ERR_XMTCONSTR_F, &val); in aggregate_perfcounters()
191 mad_decode_field(pc, IB_PC_ERR_RCVCONSTR_F, &val); in aggregate_perfcounters()
193 mad_decode_field(pc, IB_PC_ERR_LOCALINTEG_F, &val); in aggregate_perfcounters()
195 mad_decode_field(pc, IB_PC_ERR_EXCESS_OVR_F, &val); in aggregate_perfcounters()
198 mad_decode_field(pc, IB_PC_QP1_DROP_F, &val); in aggregate_perfcounters()
201 mad_decode_field(pc, IB_PC_VL15_DROPPED_F, &val); in aggregate_perfcounters()
203 mad_decode_field(pc, IB_PC_XMT_BYTES_F, &val); in aggregate_perfcounters()
205 mad_decode_field(pc, IB_PC_RCV_BYTES_F, &val); in aggregate_perfcounters()
207 mad_decode_field(pc, IB_PC_XMT_PKTS_F, &val); in aggregate_perfcounters()
209 mad_decode_field(pc, IB_PC_RCV_PKTS_F, &val); in aggregate_perfcounters()
211 mad_decode_field(pc, IB_PC_XMT_WAIT_F, &val); in aggregate_perfcounters()
222 mad_encode_field(pc, IB_PC_PORT_SELECT_F, &val); in output_aggregate_perfcounters()
223 mad_encode_field(pc, IB_PC_COUNTER_SELECT_F, &perf_count.counterselect); in output_aggregate_perfcounters()
224 mad_encode_field(pc, IB_PC_ERR_SYM_F, &perf_count.symbolerrors); in output_aggregate_perfcounters()
225 mad_encode_field(pc, IB_PC_LINK_RECOVERS_F, &perf_count.linkrecovers); in output_aggregate_perfcounters()
226 mad_encode_field(pc, IB_PC_LINK_DOWNED_F, &perf_count.linkdowned); in output_aggregate_perfcounters()
227 mad_encode_field(pc, IB_PC_ERR_RCV_F, &perf_count.rcverrors); in output_aggregate_perfcounters()
228 mad_encode_field(pc, IB_PC_ERR_PHYSRCV_F, in output_aggregate_perfcounters()
230 mad_encode_field(pc, IB_PC_ERR_SWITCH_REL_F, in output_aggregate_perfcounters()
232 mad_encode_field(pc, IB_PC_XMT_DISCARDS_F, &perf_count.xmtdiscards); in output_aggregate_perfcounters()
233 mad_encode_field(pc, IB_PC_ERR_XMTCONSTR_F, in output_aggregate_perfcounters()
235 mad_encode_field(pc, IB_PC_ERR_RCVCONSTR_F, in output_aggregate_perfcounters()
237 mad_encode_field(pc, IB_PC_ERR_LOCALINTEG_F, in output_aggregate_perfcounters()
239 mad_encode_field(pc, IB_PC_ERR_EXCESS_OVR_F, in output_aggregate_perfcounters()
242 mad_encode_field(pc, IB_PC_QP1_DROP_F, &perf_count.qp1dropped); in output_aggregate_perfcounters()
244 mad_encode_field(pc, IB_PC_VL15_DROPPED_F, &perf_count.vl15dropped); in output_aggregate_perfcounters()
245 mad_encode_field(pc, IB_PC_XMT_BYTES_F, &perf_count.xmtdata); in output_aggregate_perfcounters()
246 mad_encode_field(pc, IB_PC_RCV_BYTES_F, &perf_count.rcvdata); in output_aggregate_perfcounters()
247 mad_encode_field(pc, IB_PC_XMT_PKTS_F, &perf_count.xmtpkts); in output_aggregate_perfcounters()
248 mad_encode_field(pc, IB_PC_RCV_PKTS_F, &perf_count.rcvpkts); in output_aggregate_perfcounters()
249 mad_encode_field(pc, IB_PC_XMT_WAIT_F, &perf_count.xmtwait); in output_aggregate_perfcounters()
251 mad_dump_perfcounters(buf, sizeof buf, pc, sizeof pc); in output_aggregate_perfcounters()
262 mad_decode_field(pc, IB_PC_EXT_PORT_SELECT_F, &val); in aggregate_perfcounters_ext()
264 mad_decode_field(pc, IB_PC_EXT_COUNTER_SELECT_F, &val); in aggregate_perfcounters_ext()
266 mad_decode_field(pc, IB_PC_EXT_XMT_BYTES_F, &val64); in aggregate_perfcounters_ext()
268 mad_decode_field(pc, IB_PC_EXT_RCV_BYTES_F, &val64); in aggregate_perfcounters_ext()
270 mad_decode_field(pc, IB_PC_EXT_XMT_PKTS_F, &val64); in aggregate_perfcounters_ext()
272 mad_decode_field(pc, IB_PC_EXT_RCV_PKTS_F, &val64); in aggregate_perfcounters_ext()
276 mad_decode_field(pc, IB_PC_EXT_XMT_UPKTS_F, &val64); in aggregate_perfcounters_ext()
278 mad_decode_field(pc, IB_PC_EXT_RCV_UPKTS_F, &val64); in aggregate_perfcounters_ext()
280 mad_decode_field(pc, IB_PC_EXT_XMT_MPKTS_F, &val64); in aggregate_perfcounters_ext()
282 mad_decode_field(pc, IB_PC_EXT_RCV_MPKTS_F, &val64); in aggregate_perfcounters_ext()
287 mad_decode_field(pc, IB_PC_EXT_COUNTER_SELECT2_F, &val); in aggregate_perfcounters_ext()
289 mad_decode_field(pc, IB_PC_EXT_ERR_SYM_F, &val64); in aggregate_perfcounters_ext()
291 mad_decode_field(pc, IB_PC_EXT_LINK_RECOVERS_F, &val64); in aggregate_perfcounters_ext()
293 mad_decode_field(pc, IB_PC_EXT_LINK_DOWNED_F, &val64); in aggregate_perfcounters_ext()
295 mad_decode_field(pc, IB_PC_EXT_ERR_RCV_F, &val64); in aggregate_perfcounters_ext()
297 mad_decode_field(pc, IB_PC_EXT_ERR_PHYSRCV_F, &val64); in aggregate_perfcounters_ext()
299 mad_decode_field(pc, IB_PC_EXT_ERR_SWITCH_REL_F, &val64); in aggregate_perfcounters_ext()
301 mad_decode_field(pc, IB_PC_EXT_XMT_DISCARDS_F, &val64); in aggregate_perfcounters_ext()
303 mad_decode_field(pc, IB_PC_EXT_ERR_XMTCONSTR_F, &val64); in aggregate_perfcounters_ext()
305 mad_decode_field(pc, IB_PC_EXT_ERR_RCVCONSTR_F, &val64); in aggregate_perfcounters_ext()
307 mad_decode_field(pc, IB_PC_EXT_ERR_LOCALINTEG_F, &val64); in aggregate_perfcounters_ext()
309 mad_decode_field(pc, IB_PC_EXT_ERR_EXCESS_OVR_F, &val64); in aggregate_perfcounters_ext()
311 mad_decode_field(pc, IB_PC_EXT_VL15_DROPPED_F, &val64); in aggregate_perfcounters_ext()
313 mad_decode_field(pc, IB_PC_EXT_XMT_WAIT_F, &val64); in aggregate_perfcounters_ext()
315 mad_decode_field(pc, IB_PC_EXT_QP1_DROP_F, &val64); in aggregate_perfcounters_ext()
329 mad_encode_field(pc, IB_PC_EXT_PORT_SELECT_F, &val); in output_aggregate_perfcounters_ext()
330 mad_encode_field(pc, IB_PC_EXT_COUNTER_SELECT_F, in output_aggregate_perfcounters_ext()
332 mad_encode_field(pc, IB_PC_EXT_XMT_BYTES_F, in output_aggregate_perfcounters_ext()
334 mad_encode_field(pc, IB_PC_EXT_RCV_BYTES_F, in output_aggregate_perfcounters_ext()
336 mad_encode_field(pc, IB_PC_EXT_XMT_PKTS_F, in output_aggregate_perfcounters_ext()
338 mad_encode_field(pc, IB_PC_EXT_RCV_PKTS_F, &perf_count_ext.portrcvpkts); in output_aggregate_perfcounters_ext()
341 mad_encode_field(pc, IB_PC_EXT_XMT_UPKTS_F, in output_aggregate_perfcounters_ext()
343 mad_encode_field(pc, IB_PC_EXT_RCV_UPKTS_F, in output_aggregate_perfcounters_ext()
345 mad_encode_field(pc, IB_PC_EXT_XMT_MPKTS_F, in output_aggregate_perfcounters_ext()
347 mad_encode_field(pc, IB_PC_EXT_RCV_MPKTS_F, in output_aggregate_perfcounters_ext()
352 mad_encode_field(pc, IB_PC_EXT_COUNTER_SELECT2_F, in output_aggregate_perfcounters_ext()
354 mad_encode_field(pc, IB_PC_EXT_ERR_SYM_F, in output_aggregate_perfcounters_ext()
356 mad_encode_field(pc, IB_PC_EXT_LINK_RECOVERS_F, in output_aggregate_perfcounters_ext()
358 mad_encode_field(pc, IB_PC_EXT_LINK_DOWNED_F, in output_aggregate_perfcounters_ext()
360 mad_encode_field(pc, IB_PC_EXT_ERR_RCV_F, in output_aggregate_perfcounters_ext()
362 mad_encode_field(pc, IB_PC_EXT_ERR_PHYSRCV_F, in output_aggregate_perfcounters_ext()
364 mad_encode_field(pc, IB_PC_EXT_ERR_SWITCH_REL_F, in output_aggregate_perfcounters_ext()
366 mad_encode_field(pc, IB_PC_EXT_XMT_DISCARDS_F, in output_aggregate_perfcounters_ext()
368 mad_encode_field(pc, IB_PC_EXT_ERR_XMTCONSTR_F, in output_aggregate_perfcounters_ext()
370 mad_encode_field(pc, IB_PC_EXT_ERR_RCVCONSTR_F, in output_aggregate_perfcounters_ext()
372 mad_encode_field(pc, IB_PC_EXT_ERR_LOCALINTEG_F, in output_aggregate_perfcounters_ext()
374 mad_encode_field(pc, IB_PC_EXT_ERR_EXCESS_OVR_F, in output_aggregate_perfcounters_ext()
376 mad_encode_field(pc, IB_PC_EXT_VL15_DROPPED_F, in output_aggregate_perfcounters_ext()
378 mad_encode_field(pc, IB_PC_EXT_XMT_WAIT_F, in output_aggregate_perfcounters_ext()
380 mad_encode_field(pc, IB_PC_EXT_QP1_DROP_F, in output_aggregate_perfcounters_ext()
384 mad_dump_perfcounters_ext(buf, sizeof buf, pc, sizeof pc); in output_aggregate_perfcounters_ext()
397 memset(pc, 0, sizeof(pc)); in dump_perfcounters()
398 if (!pma_query_via(pc, portid, port, timeout, in dump_perfcounters()
406 mad_encode_field(pc, IB_PC_XMT_WAIT_F, in dump_perfcounters()
413 mad_dump_perfcounters(buf, sizeof buf, pc, sizeof pc); in dump_perfcounters()
415 mad_dump_fields(buf, sizeof buf, pc, sizeof pc, in dump_perfcounters()
430 memset(pc, 0, sizeof(pc)); in dump_perfcounters()
431 if (!pma_query_via(pc, portid, port, timeout, in dump_perfcounters()
437 mad_dump_perfcounters_ext(buf, sizeof buf, pc, in dump_perfcounters()
438 sizeof pc); in dump_perfcounters()
457 memset(pc, 0, sizeof(pc)); in reset_counters()
459 if (!performance_reset_via(pc, portid, port, mask, timeout, in reset_counters()
463 if (!performance_reset_via(pc, portid, port, mask, timeout, in reset_counters()
484 memset(pc, 0, sizeof(pc)); in common_func()
485 if (!pma_query_via(pc, portid, port_num, ibd_timeout, attr, in common_func()
489 dump_func(buf, sizeof(buf), pc, sizeof(pc)); in common_func()
495 memset(pc, 0, sizeof(pc)); in common_func()
496 if (reset && !performance_reset_via(pc, portid, port, mask, ibd_timeout, in common_func()
613 !ext_speeds_reset_via(pc, portid, port, ext_mask, ibd_timeout, srcport)) in extended_speeds_query()
705 memset(pc, 0, sizeof(pc)); in dump_portsamples_control()
706 if (!pma_query_via(pc, portid, port, ibd_timeout, in dump_portsamples_control()
710 mad_dump_portsamples_control(buf, sizeof buf, pc, sizeof pc); in dump_portsamples_control()
927 memset(pc, 0, sizeof(pc)); in main()
928 if (!pma_query_via(pc, &portid, port, ibd_timeout, CLASS_PORT_INFO, in main()
932 memcpy(&cap_mask, pc + 2, sizeof(cap_mask)); /* CapabilityMask */ in main()
933 memcpy(&cap_mask2, pc + 4, sizeof(cap_mask2)); /* CapabilityMask2 */ in main()