Lines Matching refs:entity

365 	vmu_entity_t *entity = (vmu_entity_t *)val;  in vmu_free_entity()  local
367 if (entity->vme_vnode_hash != NULL) in vmu_free_entity()
368 i_mod_hash_clear_nosync(entity->vme_vnode_hash); in vmu_free_entity()
369 if (entity->vme_amp_hash != NULL) in vmu_free_entity()
370 i_mod_hash_clear_nosync(entity->vme_amp_hash); in vmu_free_entity()
371 if (entity->vme_anon_hash != NULL) in vmu_free_entity()
372 i_mod_hash_clear_nosync(entity->vme_anon_hash); in vmu_free_entity()
374 entity->vme_next = vmu_data.vmu_free_entities; in vmu_free_entity()
375 vmu_data.vmu_free_entities = entity; in vmu_free_entity()
464 vmu_entity_t *entity; in vmu_alloc_entity() local
467 entity = vmu_data.vmu_free_entities; in vmu_alloc_entity()
470 bzero(&entity->vme_result, sizeof (vmusage_t)); in vmu_alloc_entity()
472 entity = kmem_zalloc(sizeof (vmu_entity_t), KM_SLEEP); in vmu_alloc_entity()
474 entity->vme_result.vmu_id = id; in vmu_alloc_entity()
475 entity->vme_result.vmu_zoneid = zoneid; in vmu_alloc_entity()
476 entity->vme_result.vmu_type = type; in vmu_alloc_entity()
478 if (entity->vme_vnode_hash == NULL) in vmu_alloc_entity()
479 entity->vme_vnode_hash = mod_hash_create_ptrhash( in vmu_alloc_entity()
483 if (entity->vme_amp_hash == NULL) in vmu_alloc_entity()
484 entity->vme_amp_hash = mod_hash_create_ptrhash( in vmu_alloc_entity()
488 if (entity->vme_anon_hash == NULL) in vmu_alloc_entity()
489 entity->vme_anon_hash = mod_hash_create_ptrhash( in vmu_alloc_entity()
493 entity->vme_next = vmu_data.vmu_entities; in vmu_alloc_entity()
494 vmu_data.vmu_entities = entity; in vmu_alloc_entity()
497 return (entity); in vmu_alloc_entity()
639 vmu_entity_t *entity; in vmu_find_insert_entity() local
642 (mod_hash_val_t *)&entity); in vmu_find_insert_entity()
644 entity = vmu_alloc_entity(id, type, zoneid); in vmu_find_insert_entity()
646 (mod_hash_key_t)(uintptr_t)id, (mod_hash_val_t)entity, in vmu_find_insert_entity()
650 return (entity); in vmu_find_insert_entity()
1091 vmu_entity_t *entity; in vmu_calculate_seg() local
1315 for (entity = vmu_entities; entity != NULL; in vmu_calculate_seg()
1316 entity = entity->vme_next_calc) { in vmu_calculate_seg()
1318 result = &entity->vme_result; in vmu_calculate_seg()
1323 if (vmu_find_insert_anon(entity->vme_anon_hash, in vmu_calculate_seg()
1337 for (entity = vmu_entities; entity != NULL; in vmu_calculate_seg()
1338 entity = entity->vme_next_calc) { in vmu_calculate_seg()
1339 result = &entity->vme_result; in vmu_calculate_seg()
1389 for (entity = vmu_entities; entity != NULL; in vmu_calculate_seg()
1390 entity = entity->vme_next_calc) { in vmu_calculate_seg()
1393 result = &entity->vme_result; in vmu_calculate_seg()
1397 VMUSAGE_TYPE_VNODE ? entity->vme_vnode_hash: in vmu_calculate_seg()
1398 entity->vme_amp_hash, in vmu_calculate_seg()
1898 vmu_entity_t *entity; in vm_getusage() local
1996 for (entity = vmu_data.vmu_entities; entity != NULL; in vm_getusage()
1997 entity = entity->vme_next) { in vm_getusage()
1998 *result = entity->vme_result; in vm_getusage()