Lines Matching refs:l2cache

1448 	nvlist_t **l2cache;  in spa_load_l2cache()  local
1459 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0); in spa_load_l2cache()
1475 VERIFY(nvlist_lookup_uint64(l2cache[i], ZPOOL_CONFIG_GUID, in spa_load_l2cache()
1495 VERIFY(spa_config_parse(spa, &vd, l2cache[i], NULL, 0, in spa_load_l2cache()
1519 (void) nvlist_lookup_boolean_value(l2cache[i], in spa_load_l2cache()
1561 l2cache = kmem_alloc(sav->sav_count * sizeof (void *), KM_SLEEP); in spa_load_l2cache()
1563 l2cache[i] = vdev_config_generate(spa, in spa_load_l2cache()
1566 ZPOOL_CONFIG_L2CACHE, l2cache, sav->sav_count) == 0); in spa_load_l2cache()
1569 nvlist_free(l2cache[i]); in spa_load_l2cache()
1571 kmem_free(l2cache, sav->sav_count * sizeof (void *)); in spa_load_l2cache()
3153 nvlist_t **l2cache; in spa_add_l2cache() local
3169 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0); in spa_add_l2cache()
3172 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0); in spa_add_l2cache()
3174 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0); in spa_add_l2cache()
3181 VERIFY(nvlist_lookup_uint64(l2cache[i], in spa_add_l2cache()
3194 VERIFY(nvlist_lookup_uint64_array(l2cache[i], in spa_add_l2cache()
3498 nvlist_t **spares, **l2cache; in spa_create() local
3608 &l2cache, &nl2cache) == 0) { in spa_create()
3612 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0); in spa_create()
3951 nvlist_t **spares, **l2cache; in spa_import() local
4079 &l2cache, &nl2cache) == 0) { in spa_import()
4087 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache) == 0); in spa_import()
4374 nvlist_t **spares, **l2cache; in spa_vdev_add() local
4391 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_L2CACHE, &l2cache, in spa_vdev_add()
4438 spa_set_aux_vdevs(&spa->spa_l2cache, l2cache, nl2cache, in spa_vdev_add()
5343 nvlist_t **spares, **l2cache, *nv; in spa_vdev_remove() local
5374 ZPOOL_CONFIG_L2CACHE, &l2cache, &nl2cache) == 0 && in spa_vdev_remove()
5375 (nv = spa_nvlist_lookup_by_guid(l2cache, nl2cache, guid)) != NULL) { in spa_vdev_remove()
5380 ZPOOL_CONFIG_L2CACHE, l2cache, nl2cache, nv); in spa_vdev_remove()