Lines Matching defs:pr_ndx
222 int pr_ndx; /* probe index in pii->pii_probes[] */
324 pr_ndx = pii->pii_probe_next;
325 assert(pr_ndx >= 0 && pr_ndx < PROBE_STATS_COUNT);
328 if (pii->pii_probes[pr_ndx].pr_status == PR_LOST)
330 else if (pii->pii_probes[pr_ndx].pr_status == PR_ACKED)
334 pii->pii_probes[pr_ndx].pr_id = pii->pii_snxt;
335 pii->pii_probes[pr_ndx].pr_tv_sent = sent_tv;
336 pii->pii_probes[pr_ndx].pr_hrtime_sent = sent_hrtime;
337 pii->pii_probes[pr_ndx].pr_hrtime_start = start_hrtime;
338 pii->pii_probes[pr_ndx].pr_target = pii->pii_target_next;
339 probe_chstate(&pii->pii_probes[pr_ndx], pii, PR_UNACKED);
711 int pr_ndx;
752 * Get the probe index pr_ndx corresponding to the received icmp seq.
756 pr_ndx = MOD_SUB(pii->pii_probe_next,
759 assert(PR_STATUS_VALID(pii->pii_probes[pr_ndx].pr_status));
761 target = pii->pii_probes[pr_ndx].pr_target;
779 pii->pii_probes[pr_ndx].pr_status,
783 } else if (pii->pii_probes[pr_ndx].pr_status == PR_ACKED) {
791 pii->pii_probes[pr_ndx].pr_status,
800 assert(pii->pii_probes[pr_ndx].pr_status != PR_UNACKED);
801 if (pii->pii_probes[pr_ndx].pr_status == PR_UNUSED) {
809 pii->pii_probes[pr_ndx].pr_status,
953 pr_statp = &pii->pii_probes[pr_ndx];
987 int pr_ndx;
997 pr_ndx = PROBE_INDEX_PREV(pii->pii_probe_next);
1005 for (; pr_ndx != pii->pii_probe_next;
1006 pr_ndx = PROBE_INDEX_PREV(pr_ndx), pr_seq--) {
1007 if (pii->pii_probes[pr_ndx].pr_target == tg &&
1008 pii->pii_probes[pr_ndx].pr_status == PR_ACKED) {
1589 int pr_ndx;
1740 pr_ndx = PROBE_INDEX_PREV(pii->pii_probe_next);
1744 pr_statp = &pii->pii_probes[pr_ndx];
1745 cur_tg = pii->pii_probes[pr_ndx].pr_target;
1808 pr_ndx = PROBE_INDEX_PREV(pr_ndx);
2061 int pr_ndx;
2068 pr_ndx = PROBE_INDEX_PREV(pii->pii_probe_next);
2069 cur_tg = pii->pii_probes[pr_ndx].pr_target;
2529 int pr_ndx;
2564 pr_ndx = PROBE_INDEX_PREV(pii->pii_probe_next);
2565 cur_tg = pii->pii_probes[pr_ndx].pr_target;
2574 pr_ndx = PROBE_INDEX_PREV(pii->pii_probe_next);
2575 cur_tg = pii->pii_probes[pr_ndx].pr_target;