Lines Matching refs:usage
608 dladm_usage_t usage;
611 bcopy(&ns->net_stat_ctime, &usage.du_etime, sizeof (usage.du_etime));
613 bcopy(pe[count].net_pe_name, &usage.du_name,
614 sizeof (usage.du_name));
615 bcopy(&pe[count].net_pe_lasttime, &usage.du_stime,
616 sizeof (usage.du_stime));
617 usage.du_rbytes = pe[count].net_pe_totibytes;
618 usage.du_obytes = pe[count].net_pe_totobytes;
620 usage.du_bandwidth = (tottime > 0) ?
622 usage.du_last = (count == entries-1);
623 fn(&usage, arg);
1035 * Walk the ctime list. This is used when looking for usage records
1054 dladm_usage_t usage;
1095 bcopy(ns->net_stat_name, &usage.du_name,
1096 sizeof (usage.du_name));
1097 bcopy(&last_time, &usage.du_stime,
1098 sizeof (usage.du_stime));
1099 bcopy(&ns->net_stat_ctime, &usage.du_etime,
1100 sizeof (usage.du_etime));
1101 usage.du_rbytes = tot_ibytes;
1102 usage.du_obytes = tot_obytes;
1103 usage.du_bandwidth = tot_bytes*8/tot_time;
1104 usage.du_last = B_TRUE;
1105 fn(&usage, arg);
1116 bcopy(&nns->net_stat_name, &usage.du_name,
1117 sizeof (usage.du_name));
1118 bcopy(&nns->net_stat_ctime, &usage.du_stime,
1119 sizeof (usage.du_stime));
1120 usage.du_rbytes = tot_ibytes;
1121 usage.du_obytes = tot_obytes;
1122 usage.du_bandwidth = tot_bytes*8/tot_time;
1123 usage.du_last = B_TRUE;
1124 fn(&usage, arg);
1139 bcopy(&ns->net_stat_name, &usage.du_name,
1140 sizeof (usage.du_name));
1141 bcopy(&last_time, &usage.du_stime,
1142 sizeof (usage.du_stime));
1143 bcopy(&ns->net_stat_ctime, &usage.du_etime,
1144 sizeof (usage.du_etime));
1145 usage.du_rbytes = tot_ibytes;
1146 usage.du_obytes = tot_obytes;
1147 usage.du_bandwidth = tot_bytes*8/tot_time;
1148 usage.du_last = B_TRUE;
1149 fn(&usage, arg);
1164 bcopy(&ns->net_stat_name, &usage.du_name,
1165 sizeof (usage.du_name));
1166 bcopy(&last_time, &usage.du_stime,
1167 sizeof (usage.du_stime));
1168 bcopy(&ns->net_stat_ctime, &usage.du_etime,
1169 sizeof (usage.du_etime));
1170 usage.du_rbytes = tot_ibytes;
1171 usage.du_obytes = tot_obytes;
1172 usage.du_bandwidth = tot_bytes*8/tot_time;
1173 usage.du_last = B_TRUE;
1174 fn(&usage, arg);
1320 dladm_usage_t usage;
1340 bcopy(&nd->net_desc_name, &usage.du_name,
1341 sizeof (usage.du_name));
1342 usage.du_duration = ne->net_entry_ttime;
1343 usage.du_ipackets = ns->net_stat_ipackets;
1344 usage.du_rbytes = ns->net_stat_ibytes;
1345 usage.du_opackets = ns->net_stat_opackets;
1346 usage.du_obytes = ns->net_stat_obytes;
1347 usage.du_bandwidth =
1349 usage.du_duration;
1350 usage.du_last = (count == net_table->net_entries-1);
1351 fn(&usage, arg);
1375 dladm_usage_t usage;
1411 bzero(&usage, sizeof (dladm_usage_t));
1412 (void) strlcpy(usage.du_name, nns->net_stat_name,
1413 sizeof (usage.du_name));
1414 bcopy(&nns->net_stat_ctime, &usage.du_stime,
1415 sizeof (usage.du_stime));
1416 fn(&usage, arg);