Lines Matching refs:zone
419 cap_zone_enable(zone_t *zone, hrtime_t value) in cap_zone_enable() argument
421 cpucap_t *cap = zone->zone_cpucap; in cap_zone_enable()
429 cap->cap_zone = zone; in cap_zone_enable()
434 if ((cap->cap_kstat = rctl_kstat_create_zone(zone, "cpucaps", in cap_zone_enable()
455 cap_zone_disable(zone_t *zone) in cap_zone_disable() argument
457 cpucap_t *cap = zone->zone_cpucap; in cap_zone_disable()
461 ASSERT(cap->cap_zone == zone); in cap_zone_disable()
518 zone_t *zone = cap->cap_zone; in cap_project_usage_walker() local
523 ASSERT(zone == cap->cap_project->kpj_zone); in cap_project_usage_walker()
535 if (ZONE_IS_CAPPED(zone)) { in cap_project_usage_walker()
536 cpucap_t *zcap = zone->zone_cpucap; in cap_project_usage_walker()
538 ASSERT(zcap->cap_zone == zone); in cap_project_usage_walker()
655 cpucaps_zone_set(zone_t *zone, rctl_qty_t cap_val) in cpucaps_zone_set() argument
671 if ((CPUCAPS_OFF() || !ZONE_IS_CAPPED(zone)) && (cap_val == NOCAP)) in cpucaps_zone_set()
674 if (zone->zone_cpucap == NULL) in cpucaps_zone_set()
688 if (zone->zone_cpucap == NULL) { in cpucaps_zone_set()
689 zone->zone_cpucap = cap; in cpucaps_zone_set()
694 cap = zone->zone_cpucap; in cpucaps_zone_set()
716 cap_zone_disable(zone); in cpucaps_zone_set()
723 (void) project_walk_all(zone->zone_id, in cpucaps_zone_set()
733 cap_zone_enable(zone, value); in cpucaps_zone_set()
740 (void) project_walk_all(zone->zone_id, in cpucaps_zone_set()
779 cpucaps_zone_remove(zone_t *zone) in cpucaps_zone_remove() argument
782 while (ZONE_IS_CAPPED(zone)) { in cpucaps_zone_remove()
784 (void) cpucaps_zone_set(zone, NOCAP); in cpucaps_zone_remove()
787 if (zone->zone_cpucap != NULL) { in cpucaps_zone_remove()
788 cap_free(zone->zone_cpucap); in cpucaps_zone_remove()
789 zone->zone_cpucap = NULL; in cpucaps_zone_remove()
945 cpucaps_zone_get(zone_t *zone) in cpucaps_zone_get() argument
947 return (cap_get(zone->zone_cpucap)); in cpucaps_zone_get()
1027 zone_t *zone; in cpucaps_charge() local
1055 zone = ttozone(t); in cpucaps_charge()
1056 if (!ZONE_IS_CAPPED(zone)) { in cpucaps_charge()
1060 cpucap_t *zone_cap = zone->zone_cpucap; in cpucaps_charge()