Lines Matching defs:hiballoc_entry
127 struct hiballoc_entry {
130 RBT_ENTRY(hiballoc_entry) hibe_entry;
213 * Since the address is fixed, relative to struct hiballoc_entry,
214 * we just compare the hiballoc_entry pointers.
217 hibe_cmp(const struct hiballoc_entry *l, const struct hiballoc_entry *r)
225 RBT_PROTOTYPE(hiballoc_addr, hiballoc_entry, hibe_entry, hibe_cmp)
231 hib_entry_to_addr(struct hiballoc_entry *entry)
236 addr += HIB_SIZEOF(struct hiballoc_entry);
243 static __inline struct hiballoc_entry*
249 addr -= HIB_SIZEOF(struct hiballoc_entry);
250 return (struct hiballoc_entry*)addr;
253 RBT_GENERATE(hiballoc_addr, hiballoc_entry, hibe_entry, hibe_cmp);
263 struct hiballoc_entry *entry, *new_entry;
282 find_sz = alloc_sz + HIB_SIZEOF(struct hiballoc_entry);
300 new_entry = (struct hiballoc_entry*)(
334 struct hiballoc_entry *entry, *prev;
354 (void *)((caddr_t)prev + HIB_SIZEOF(struct hiballoc_entry) +
358 prev->hibe_space += HIB_SIZEOF(struct hiballoc_entry) +
375 struct hiballoc_entry *entry;
392 if (len <= HIB_SIZEOF(struct hiballoc_entry))
398 entry = (struct hiballoc_entry*)ptr;
400 entry->hibe_space = len - HIB_SIZEOF(struct hiballoc_entry);