Lines Matching refs:id
45 * For amd64 the 32 bit id is the offset of the entry in the arena.
55 * All other architectures use the 32 bit pointer value for the 32 bit id.
79 uintptr_t id;
85 id = ID32_ENCODE((uintptr_t)hent);
86 ASSERT64(id <= UINT32_MAX);
87 return ((uint32_t)id);
94 id32_free(uint32_t id)
96 if (!ID32_VALID(id)) {
97 cmn_err(CE_WARN, "id32_free(%x): bad ID rejected\n", id);
101 kmem_cache_free(id32_cache, (void *)(uintptr_t)ID32_DECODE(id));
108 id32_lookup(uint32_t id)
110 if (!ID32_VALID(id)) {
111 cmn_err(CE_WARN, "id32_lookup(%x): bad ID rejected\n", id);
115 return (((void **)(uintptr_t)ID32_DECODE(id))[0]);