Lines Matching refs:mze

268 	mzap_ent_t *mze;
273 mze = kmem_alloc(sizeof (mzap_ent_t), KM_SLEEP);
274 mze->mze_chunkid = chunkid;
275 mze->mze_hash = hash;
276 mze->mze_cd = MZE_PHYS(zap, mze)->mze_cd;
277 ASSERT(MZE_PHYS(zap, mze)->mze_name[0] != 0);
278 avl_add(&zap->zap_m.zap_avl, mze);
285 mzap_ent_t *mze;
296 mze = avl_find(avl, &mze_tofind, &idx);
297 if (mze == NULL)
298 mze = avl_nearest(avl, idx, AVL_AFTER);
299 for (; mze && mze->mze_hash == zn->zn_hash; mze = AVL_NEXT(avl, mze)) {
300 ASSERT3U(mze->mze_cd, ==, MZE_PHYS(zn->zn_zap, mze)->mze_cd);
301 if (zap_match(zn, MZE_PHYS(zn->zn_zap, mze)->mze_name))
302 return (mze);
315 mzap_ent_t *mze;
327 for (mze = avl_find(avl, &mze_tofind, &idx);
328 mze && mze->mze_hash == hash; mze = AVL_NEXT(avl, mze)) {
329 if (mze->mze_cd != cd)
338 mze_remove(zap_t *zap, mzap_ent_t *mze)
343 avl_remove(&zap->zap_m.zap_avl, mze);
344 kmem_free(mze, sizeof (mzap_ent_t));
350 mzap_ent_t *mze;
353 while (mze = avl_destroy_nodes(&zap->zap_m.zap_avl, &avlcookie))
354 kmem_free(mze, sizeof (mzap_ent_t));
405 mzap_ent_phys_t *mze =
407 if (mze->mze_name[0]) {
411 zn = zap_name_alloc(zap, mze->mze_name,
556 mzap_ent_phys_t *mze = &mzp->mz_chunk[i];
558 if (mze->mze_name[0] == 0)
561 mze->mze_name, mze->mze_value);
562 zn = zap_name_alloc(zap, mze->mze_name, MT_EXACT);
563 err = fzap_add_cd(zn, 8, 1, &mze->mze_value, mze->mze_cd, tx);
717 mzap_normalization_conflict(zap_t *zap, zap_name_t *zn, mzap_ent_t *mze)
727 for (other = avl_walk(&zap->zap_m.zap_avl, mze, direction);
728 other && other->mze_hash == mze->mze_hash;
732 zn = zap_name_alloc(zap, MZE_PHYS(zap, mze)->mze_name,
773 mzap_ent_t *mze;
789 mze = mze_find(zn);
790 if (mze == NULL) {
799 MZE_PHYS(zap, mze)->mze_value;
801 MZE_PHYS(zap, mze)->mze_name, rn_len);
804 zn, mze);
877 mzap_ent_t *mze;
891 mze = mze_find(zn);
892 if (mze == NULL) {
940 mzap_ent_phys_t *mze = &zap->zap_m.zap_phys->mz_chunk[i];
941 ASSERT(strcmp(zn->zn_key_orig, mze->mze_name) != 0);
951 mzap_ent_phys_t *mze = &zap->zap_m.zap_phys->mz_chunk[i];
952 if (mze->mze_name[0] == 0) {
953 mze->mze_value = value;
954 mze->mze_cd = cd;
955 (void) strcpy(mze->mze_name, zn->zn_key_orig);
979 mzap_ent_t *mze;
1001 mze = mze_find(zn);
1002 if (mze != NULL) {
1045 mzap_ent_t *mze;
1081 mze = mze_find(zn);
1082 if (mze != NULL) {
1083 ASSERT3U(MZE_PHYS(zap, mze)->mze_value, ==, oldval);
1084 MZE_PHYS(zap, mze)->mze_value = *intval;
1133 mzap_ent_t *mze;
1147 mze = mze_find(zn);
1148 if (mze == NULL) {
1152 bzero(&zap->zap_m.zap_phys->mz_chunk[mze->mze_chunkid],
1154 mze_remove(zap, mze);
1251 mzap_ent_t *mze;
1285 mze = avl_find(&zc->zc_zap->zap_m.zap_avl, &mze_tofind, &idx);
1286 if (mze == NULL) {
1287 mze = avl_nearest(&zc->zc_zap->zap_m.zap_avl,
1290 if (mze) {
1291 mzap_ent_phys_t *mzep = MZE_PHYS(zc->zc_zap, mze);
1292 ASSERT3U(mze->mze_cd, ==, mzep->mze_cd);
1294 mzap_normalization_conflict(zc->zc_zap, NULL, mze);
1299 zc->zc_hash = mze->mze_hash;
1300 zc->zc_cd = mze->mze_cd;
1322 mzap_ent_t *mze;
1343 mze = mze_find(zn);
1344 if (mze == NULL) {
1348 zc->zc_hash = mze->mze_hash;
1349 zc->zc_cd = mze->mze_cd;