Lines Matching refs:pe
564 clear_pe(net_plot_entry_t *pe, int entries, int *pentries) in clear_pe() argument
569 pe[count].net_pe_totbytes = 0; in clear_pe()
570 pe[count].net_pe_totibytes = 0; in clear_pe()
571 pe[count].net_pe_totobytes = 0; in clear_pe()
572 pe[count].net_pe_tottime = 0; in clear_pe()
579 update_pe(net_plot_entry_t *pe, net_stat_t *nns, int nentries, in update_pe() argument
585 if (strcmp(pe[count].net_pe_name, nns->net_stat_name) == 0) in update_pe()
591 if (pe[count].net_pe_totbytes == 0) in update_pe()
592 pe[count].net_pe_lasttime = lasttime; in update_pe()
594 pe[count].net_pe_totbytes += nns->net_stat_ibytes + in update_pe()
596 pe[count].net_pe_tottime += nns->net_stat_tdiff; in update_pe()
597 pe[count].net_pe_totibytes += nns->net_stat_ibytes; in update_pe()
598 pe[count].net_pe_totobytes += nns->net_stat_obytes; in update_pe()
604 add_pe_to_file(int (*fn)(dladm_usage_t *, void *), net_plot_entry_t *pe, in add_pe_to_file() argument
613 bcopy(pe[count].net_pe_name, &usage.du_name, in add_pe_to_file()
615 bcopy(&pe[count].net_pe_lasttime, &usage.du_stime, in add_pe_to_file()
617 usage.du_rbytes = pe[count].net_pe_totibytes; in add_pe_to_file()
618 usage.du_obytes = pe[count].net_pe_totobytes; in add_pe_to_file()
619 tottime = pe[count].net_pe_tottime; in add_pe_to_file()
621 ((pe[count].net_pe_totbytes * 8) / tottime) : 0; in add_pe_to_file()
1194 net_plot_entry_t *pe; in dladm_walk_usage_time() local
1229 pe = malloc(sizeof (net_plot_entry_t) * net_table->net_entries + 1); in dladm_walk_usage_time()
1230 if (pe == NULL) in dladm_walk_usage_time()
1236 pe[count].net_pe_name = nd->net_desc_name; in dladm_walk_usage_time()
1240 clear_pe(pe, nentries, &pentries); in dladm_walk_usage_time()
1261 add_pe_to_file(fn, pe, ns, nentries, in dladm_walk_usage_time()
1263 clear_pe(pe, nentries, &pentries); in dladm_walk_usage_time()
1265 free(pe); in dladm_walk_usage_time()
1273 add_pe_to_file(fn, pe, ns, nentries, in dladm_walk_usage_time()
1275 clear_pe(pe, nentries, &pentries); in dladm_walk_usage_time()
1291 add_pe_to_file(fn, pe, ns, nentries, arg); in dladm_walk_usage_time()
1292 clear_pe(pe, nentries, &pentries); in dladm_walk_usage_time()
1296 update_pe(pe, nns, nentries, &pentries, last_time); in dladm_walk_usage_time()
1303 add_pe_to_file(fn, pe, ns, nentries, arg); in dladm_walk_usage_time()
1305 free(pe); in dladm_walk_usage_time()