Lines Matching refs:zres
251 struct zs_zone *zold, *znew, *zres;
272 zres = (struct zs_zone *)
274 if (zres == NULL)
276 *zres = *znew;
278 zres->zsz_system = sres;
279 list_link_init(&zres->zsz_next);
280 zres->zsz_intervals = 0;
283 zold, zres);
286 zres);
289 zres = znew;
293 zres->zsz_intervals++;
310 zres = zold;
312 zres = znew;
315 zres = (struct zs_zone *)
317 if (zres == NULL)
319 *zres = *znew;
320 zres->zsz_system = sres;
321 list_insert_tail(&ures->zsu_zone_list, zres);
324 zres->zsz_intervals++;
330 if (zres->zsz_hrstart > uold->zsu_hrtime) {
335 TIMESTRUC_DELTA(zres->zsz_cpu_usage,
337 TIMESTRUC_DELTA(zres->zsz_cap_time, znew->zsz_cap_time,
339 TIMESTRUC_DELTA(zres->zsz_share_time,
341 TIMESTRUC_DELTA(zres->zsz_pset_time,
344 zres->zsz_tot_bytes = znew->zsz_tot_bytes -
346 zres->zsz_tot_pbytes = znew->zsz_tot_pbytes -
348 zres->zsz_speed = znew->zsz_speed;
349 zres->zsz_pused = zs_uint64_used_pct(
350 znew->zsz_speed, zres->zsz_tot_pbytes,
353 zs_zone_add_usage(zres, znew, func);
364 zres = (struct zs_zone *)calloc(1, sizeof (struct zs_zone));
365 if (zres == NULL)
367 *zres = *znew;
368 zres->zsz_system = sres;
370 zres->zsz_intervals++;
372 list_insert_tail(&uold->zsu_zone_list, zres);
374 list_insert_tail(&ures->zsu_zone_list, zres);