Lines Matching defs:ures
247 zs_usage_compute_zones(struct zs_usage *ures, struct zs_usage *uold,
253 sres = ures->zsu_system;
271 if (ures != unew) {
281 if (ures == uold)
285 list_insert_tail(&ures->zsu_zone_list,
309 if (ures == uold) {
311 } else if (ures == unew) {
321 list_insert_tail(&ures->zsu_zone_list, zres);
359 if (ures == unew)
371 if (ures == uold)
374 list_insert_tail(&ures->zsu_zone_list, zres);
395 zs_usage_compute_pset_usage(struct zs_usage *uold, struct zs_usage *ures,
430 pures->zspz_zone = zs_lookup_zone_byname(ures,
494 pures->zspz_zone = zs_lookup_zone_byname(ures,
544 pures->zspz_zone = zs_lookup_zone_byname(ures,
587 zs_usage_compute_psets(struct zs_usage *ures, struct zs_usage *uold,
609 if (ures != unew) {
620 if (ures == uold)
624 list_insert_tail(&ures->zsu_pset_list,
630 if (zs_usage_compute_pset_usage(uold, ures, pres,
651 if (ures == uold) {
653 } else if (ures == unew) {
665 list_insert_tail(&ures->zsu_pset_list, pres);
689 if (zs_usage_compute_pset_usage(uold, ures, pres, pold,
697 if (ures == unew)
712 if (ures == uold)
715 list_insert_tail(&ures->zsu_pset_list, pres);
717 if (zs_usage_compute_pset_usage(uold, ures, pres, NULL,
927 zs_usage_compute_datalinks(struct zs_usage *ures, struct zs_usage *uold,
954 if (ures != unew) {
967 if (ures == uold)
973 &ures->zsu_datalink_list, dres);
1002 if (ures == uold) {
1004 } else if (ures == unew) {
1018 list_insert_tail(&ures->zsu_datalink_list, dres);
1066 if (ures != unew) {
1086 list_insert_tail(&ures->zsu_datalink_list, dres);
2853 struct zs_usage *ures = (struct zs_usage *)uresin;
2865 if (ures == NULL) {
2867 ures = zs_usage_alloc();
2868 if (ures == NULL)
2872 sres = ures->zsu_system;
2905 ures->zsu_hrintervaltime = unew->zsu_hrintervaltime -
2986 ures->zsu_intervals++;
3069 ures->zsu_hrintervaltime += unew->zsu_hrintervaltime;
3074 zs_usage_free((zs_usage_t)ures);
3078 if (zs_usage_compute_zones(ures, uold, unew, func) != 0)
3081 if (zs_usage_compute_psets(ures, uold, unew, func) != 0)
3084 if (zs_usage_compute_datalinks(ures, uold, unew, func) != 0)
3087 return ((zs_usage_t)ures);
3090 zs_usage_free((zs_usage_t)ures);