Lines Matching defs:mze

275 	mzap_ent_t *mze;
281 mze = kmem_alloc(sizeof (mzap_ent_t), KM_SLEEP);
282 mze->mze_chunkid = chunkid;
283 mze->mze_hash = hash;
284 mze->mze_cd = MZE_PHYS(zap, mze)->mze_cd;
285 ASSERT(MZE_PHYS(zap, mze)->mze_name[0] != 0);
286 if (avl_find(&zap->zap_m.zap_avl, mze, &idx) != NULL) {
287 kmem_free(mze, sizeof (mzap_ent_t));
290 avl_insert(&zap->zap_m.zap_avl, mze, idx);
298 mzap_ent_t *mze;
309 mze = avl_find(avl, &mze_tofind, &idx);
310 if (mze == NULL)
311 mze = avl_nearest(avl, idx, AVL_AFTER);
312 for (; mze && mze->mze_hash == zn->zn_hash; mze = AVL_NEXT(avl, mze)) {
313 ASSERT3U(mze->mze_cd, ==, MZE_PHYS(zn->zn_zap, mze)->mze_cd);
314 if (zap_match(zn, MZE_PHYS(zn->zn_zap, mze)->mze_name))
315 return (mze);
328 mzap_ent_t *mze;
340 for (mze = avl_find(avl, &mze_tofind, &idx);
341 mze && mze->mze_hash == hash; mze = AVL_NEXT(avl, mze)) {
342 if (mze->mze_cd != cd)
351 mze_remove(zap_t *zap, mzap_ent_t *mze)
356 avl_remove(&zap->zap_m.zap_avl, mze);
357 kmem_free(mze, sizeof (mzap_ent_t));
363 mzap_ent_t *mze;
366 while (mze = avl_destroy_nodes(&zap->zap_m.zap_avl, &avlcookie))
367 kmem_free(mze, sizeof (mzap_ent_t));
420 mzap_ent_phys_t *mze =
422 if (mze->mze_name[0]) {
425 zn = zap_name_alloc(zap, mze->mze_name,
432 mze->mze_name);
626 mzap_ent_phys_t *mze = &mzp->mz_chunk[i];
628 if (mze->mze_name[0] == 0)
631 mze->mze_name, mze->mze_value);
632 zn = zap_name_alloc(zap, mze->mze_name, MT_EXACT);
633 err = fzap_add_cd(zn, 8, 1, &mze->mze_value, mze->mze_cd,
787 mzap_normalization_conflict(zap_t *zap, zap_name_t *zn, mzap_ent_t *mze)
797 for (other = avl_walk(&zap->zap_m.zap_avl, mze, direction);
798 other && other->mze_hash == mze->mze_hash;
802 zn = zap_name_alloc(zap, MZE_PHYS(zap, mze)->mze_name,
842 mzap_ent_t *mze;
853 mze = mze_find(zn);
854 if (mze == NULL) {
863 MZE_PHYS(zap, mze)->mze_value;
866 MZE_PHYS(zap, mze)->mze_name, rn_len);
869 zn, mze);
986 mzap_ent_t *mze;
1000 mze = mze_find(zn);
1001 if (mze == NULL) {
1049 mzap_ent_phys_t *mze = &zap_m_phys(zap)->mz_chunk[i];
1050 ASSERT(strcmp(zn->zn_key_orig, mze->mze_name) != 0);
1060 mzap_ent_phys_t *mze = &zap_m_phys(zap)->mz_chunk[i];
1061 if (mze->mze_name[0] == 0) {
1062 mze->mze_value = value;
1063 mze->mze_cd = cd;
1064 (void) strcpy(mze->mze_name, zn->zn_key_orig);
1088 mzap_ent_t *mze;
1112 mze = mze_find(zn);
1113 if (mze != NULL) {
1156 mzap_ent_t *mze;
1194 mze = mze_find(zn);
1195 if (mze != NULL) {
1196 ASSERT3U(MZE_PHYS(zap, mze)->mze_value, ==, oldval);
1197 MZE_PHYS(zap, mze)->mze_value = *intval;
1246 mzap_ent_t *mze;
1260 mze = mze_find(zn);
1261 if (mze == NULL) {
1265 bzero(&zap_m_phys(zap)->mz_chunk[mze->mze_chunkid],
1267 mze_remove(zap, mze);
1364 mzap_ent_t *mze;
1396 mze = avl_find(&zc->zc_zap->zap_m.zap_avl, &mze_tofind, &idx);
1397 if (mze == NULL) {
1398 mze = avl_nearest(&zc->zc_zap->zap_m.zap_avl,
1401 if (mze) {
1402 mzap_ent_phys_t *mzep = MZE_PHYS(zc->zc_zap, mze);
1403 ASSERT3U(mze->mze_cd, ==, mzep->mze_cd);
1405 mzap_normalization_conflict(zc->zc_zap, NULL, mze);
1410 zc->zc_hash = mze->mze_hash;
1411 zc->zc_cd = mze->mze_cd;
1434 mzap_ent_t *mze;
1455 mze = mze_find(zn);
1456 if (mze == NULL) {
1460 zc->zc_hash = mze->mze_hash;
1461 zc->zc_cd = mze->mze_cd;