Lines Matching refs:ide
74 fmd_idelem_t *ide, *nde; in fmd_idspace_destroy() local
83 for (ide = ids->ids_hash[i]; ide != NULL; ide = nde) { in fmd_idspace_destroy()
84 nde = ide->ide_next; in fmd_idspace_destroy()
85 fmd_free(ide, sizeof (fmd_idelem_t)); in fmd_idspace_destroy()
97 fmd_idelem_t *ide; in fmd_idspace_apply() local
106 for (ide = ids->ids_hash[i]; ide != NULL; ide = ide->ide_next) in fmd_idspace_apply()
107 *idp++ = ide->ide_id; in fmd_idspace_apply()
122 fmd_idelem_t *ide; in fmd_idspace_lookup() local
125 ide = ids->ids_hash[id & (ids->ids_hashlen - 1)]; in fmd_idspace_lookup()
127 for (; ide != NULL; ide = ide->ide_next) { in fmd_idspace_lookup()
128 if (ide->ide_id == id) in fmd_idspace_lookup()
132 return (ide); in fmd_idspace_lookup()
138 fmd_idelem_t *ide; in fmd_idspace_getspecific() local
142 ide = fmd_idspace_lookup(ids, id); in fmd_idspace_getspecific()
143 data = ide ? ide->ide_data : NULL; in fmd_idspace_getspecific()
152 fmd_idelem_t *ide; in fmd_idspace_setspecific() local
159 if ((ide = fmd_idspace_lookup(ids, id)) == NULL) { in fmd_idspace_setspecific()
164 ide->ide_data = data; in fmd_idspace_setspecific()
171 fmd_idelem_t *ide; in fmd_idspace_contains() local
174 ide = fmd_idspace_lookup(ids, id); in fmd_idspace_contains()
177 return (ide != NULL); in fmd_idspace_contains()
189 fmd_idelem_t *ide; in fmd_idspace_xalloc_locked() local
201 ide = fmd_alloc(sizeof (fmd_idelem_t), FMD_SLEEP); in fmd_idspace_xalloc_locked()
204 ide->ide_next = ids->ids_hash[h]; in fmd_idspace_xalloc_locked()
205 ide->ide_data = data; in fmd_idspace_xalloc_locked()
206 ide->ide_id = id; in fmd_idspace_xalloc_locked()
208 ids->ids_hash[h] = ide; in fmd_idspace_xalloc_locked()
275 fmd_idelem_t *ide, **pp; in fmd_idspace_free() local
281 for (ide = *pp; ide != NULL; ide = ide->ide_next) { in fmd_idspace_free()
282 if (ide->ide_id != id) in fmd_idspace_free()
283 pp = &ide->ide_next; in fmd_idspace_free()
288 if (ide == NULL) { in fmd_idspace_free()
293 data = ide->ide_data; in fmd_idspace_free()
294 *pp = ide->ide_next; in fmd_idspace_free()
295 fmd_free(ide, sizeof (fmd_idelem_t)); in fmd_idspace_free()
315 fmd_idelem_t *ide; in fmd_idspace_hold() local
320 if ((ide = fmd_idspace_lookup(ids, id)) != NULL) { in fmd_idspace_hold()
323 data = ide->ide_data; in fmd_idspace_hold()