Lines Matching defs:ent
185 ipmi_sdr_cache_ent_t *ent;
330 if ((ent = ipmi_zalloc(ihp,
336 ent->isc_sdr = sdr;
339 if ((ent->isc_name = ipmi_alloc(ihp, namelen + 1)) ==
341 ipmi_free(ihp, ent->isc_sdr);
342 ipmi_free(ihp, ent);
346 ipmi_decode_string(type, namelen, name, ent->isc_name);
356 if (ipmi_hash_lookup(ihp->ih_sdr_cache, ent) != NULL) {
357 ipmi_free(ihp, ent->isc_sdr);
358 ipmi_free(ihp, ent->isc_name);
359 ipmi_free(ihp, ent);
363 ipmi_hash_insert(ihp->ih_sdr_cache, ent);
439 ipmi_sdr_cache_ent_t *ent;
441 while ((ent = ipmi_hash_first(ihp->ih_sdr_cache)) != NULL) {
442 ipmi_hash_remove(ihp->ih_sdr_cache, ent);
443 ipmi_free(ihp, ent->isc_sdr);
444 ipmi_free(ihp, ent->isc_name);
445 ipmi_free(ihp, ent);
548 ipmi_sdr_cache_ent_t *ent;
555 for (ent = ipmi_hash_first(ihp->ih_sdr_cache); ent != NULL;
556 ent = ipmi_hash_next(ihp->ih_sdr_cache, ent)) {
557 if ((ret = func(ihp, ent->isc_name, ent->isc_sdr, data)) != 0)
567 ipmi_sdr_cache_ent_t *ent, search;
575 if ((ent = ipmi_hash_lookup(ihp->ih_sdr_cache, &search)) == NULL) {
580 return (ent->isc_sdr);