Lines Matching refs:sss
6225 i_ddi_soft_state_bystr *sss;
6240 sss = kmem_zalloc(sizeof (*sss), KM_SLEEP);
6241 sss->ss_size = size;
6242 sss->ss_mod_hash = mod_hash_create_strhash("soft_state_bystr",
6244 *state_p = (ddi_soft_state_bystr *)sss;
6251 i_ddi_soft_state_bystr *sss = (i_ddi_soft_state_bystr *)state;
6255 ASSERT(sss && str && sss->ss_mod_hash);
6256 if ((sss == NULL) || (str == NULL) || (sss->ss_mod_hash == NULL))
6258 sso = kmem_zalloc(sss->ss_size, KM_SLEEP);
6260 if (mod_hash_insert(sss->ss_mod_hash,
6269 kmem_free(sso, sss->ss_size);
6276 i_ddi_soft_state_bystr *sss = (i_ddi_soft_state_bystr *)state;
6279 ASSERT(sss && str && sss->ss_mod_hash);
6280 if ((sss == NULL) || (str == NULL) || (sss->ss_mod_hash == NULL))
6283 if (mod_hash_find(sss->ss_mod_hash,
6292 i_ddi_soft_state_bystr *sss = (i_ddi_soft_state_bystr *)state;
6295 ASSERT(sss && str && sss->ss_mod_hash);
6296 if ((sss == NULL) || (str == NULL) || (sss->ss_mod_hash == NULL))
6299 (void) mod_hash_remove(sss->ss_mod_hash,
6301 kmem_free(sso, sss->ss_size);
6307 i_ddi_soft_state_bystr *sss;
6313 sss = (i_ddi_soft_state_bystr *)(*state_p);
6314 if (sss == NULL)
6317 ASSERT(sss->ss_mod_hash);
6318 if (sss->ss_mod_hash) {
6319 mod_hash_destroy_strhash(sss->ss_mod_hash);
6320 sss->ss_mod_hash = NULL;
6323 kmem_free(sss, sizeof (*sss));