Lines Matching defs:mze

275 	mzap_ent_t *mze;
280 mze = kmem_alloc(sizeof (mzap_ent_t), KM_SLEEP);
281 mze->mze_chunkid = chunkid;
282 mze->mze_hash = hash;
283 mze->mze_cd = MZE_PHYS(zap, mze)->mze_cd;
284 ASSERT(MZE_PHYS(zap, mze)->mze_name[0] != 0);
285 avl_add(&zap->zap_m.zap_avl, mze);
292 mzap_ent_t *mze;
303 mze = avl_find(avl, &mze_tofind, &idx);
304 if (mze == NULL)
305 mze = avl_nearest(avl, idx, AVL_AFTER);
306 for (; mze && mze->mze_hash == zn->zn_hash; mze = AVL_NEXT(avl, mze)) {
307 ASSERT3U(mze->mze_cd, ==, MZE_PHYS(zn->zn_zap, mze)->mze_cd);
308 if (zap_match(zn, MZE_PHYS(zn->zn_zap, mze)->mze_name))
309 return (mze);
322 mzap_ent_t *mze;
334 for (mze = avl_find(avl, &mze_tofind, &idx);
335 mze && mze->mze_hash == hash; mze = AVL_NEXT(avl, mze)) {
336 if (mze->mze_cd != cd)
345 mze_remove(zap_t *zap, mzap_ent_t *mze)
350 avl_remove(&zap->zap_m.zap_avl, mze);
351 kmem_free(mze, sizeof (mzap_ent_t));
357 mzap_ent_t *mze;
360 while (mze = avl_destroy_nodes(&zap->zap_m.zap_avl, &avlcookie))
361 kmem_free(mze, sizeof (mzap_ent_t));
414 mzap_ent_phys_t *mze =
416 if (mze->mze_name[0]) {
420 zn = zap_name_alloc(zap, mze->mze_name,
615 mzap_ent_phys_t *mze = &mzp->mz_chunk[i];
617 if (mze->mze_name[0] == 0)
620 mze->mze_name, mze->mze_value);
621 zn = zap_name_alloc(zap, mze->mze_name, MT_EXACT);
622 err = fzap_add_cd(zn, 8, 1, &mze->mze_value, mze->mze_cd,
776 mzap_normalization_conflict(zap_t *zap, zap_name_t *zn, mzap_ent_t *mze)
786 for (other = avl_walk(&zap->zap_m.zap_avl, mze, direction);
787 other && other->mze_hash == mze->mze_hash;
791 zn = zap_name_alloc(zap, MZE_PHYS(zap, mze)->mze_name,
831 mzap_ent_t *mze;
842 mze = mze_find(zn);
843 if (mze == NULL) {
852 MZE_PHYS(zap, mze)->mze_value;
854 MZE_PHYS(zap, mze)->mze_name, rn_len);
857 zn, mze);
974 mzap_ent_t *mze;
988 mze = mze_find(zn);
989 if (mze == NULL) {
1037 mzap_ent_phys_t *mze = &zap_m_phys(zap)->mz_chunk[i];
1038 ASSERT(strcmp(zn->zn_key_orig, mze->mze_name) != 0);
1048 mzap_ent_phys_t *mze = &zap_m_phys(zap)->mz_chunk[i];
1049 if (mze->mze_name[0] == 0) {
1050 mze->mze_value = value;
1051 mze->mze_cd = cd;
1052 (void) strcpy(mze->mze_name, zn->zn_key_orig);
1076 mzap_ent_t *mze;
1100 mze = mze_find(zn);
1101 if (mze != NULL) {
1144 mzap_ent_t *mze;
1182 mze = mze_find(zn);
1183 if (mze != NULL) {
1184 ASSERT3U(MZE_PHYS(zap, mze)->mze_value, ==, oldval);
1185 MZE_PHYS(zap, mze)->mze_value = *intval;
1234 mzap_ent_t *mze;
1248 mze = mze_find(zn);
1249 if (mze == NULL) {
1253 bzero(&zap_m_phys(zap)->mz_chunk[mze->mze_chunkid],
1255 mze_remove(zap, mze);
1352 mzap_ent_t *mze;
1384 mze = avl_find(&zc->zc_zap->zap_m.zap_avl, &mze_tofind, &idx);
1385 if (mze == NULL) {
1386 mze = avl_nearest(&zc->zc_zap->zap_m.zap_avl,
1389 if (mze) {
1390 mzap_ent_phys_t *mzep = MZE_PHYS(zc->zc_zap, mze);
1391 ASSERT3U(mze->mze_cd, ==, mzep->mze_cd);
1393 mzap_normalization_conflict(zc->zc_zap, NULL, mze);
1398 zc->zc_hash = mze->mze_hash;
1399 zc->zc_cd = mze->mze_cd;