Lines Matching defs:memory
1 /* Hardware memory allocator.
54 struct hw_alloc_data *memory = ZALLOC (struct hw_alloc_data);
55 memory->alloc = zalloc (size);
56 memory->next = me->alloc_of_hw;
57 me->alloc_of_hw = memory;
58 return memory->alloc;
64 struct hw_alloc_data *memory = ZALLOC (struct hw_alloc_data);
65 memory->alloc = zalloc (size);
66 memory->next = me->alloc_of_hw;
67 me->alloc_of_hw = memory;
68 return memory->alloc;
75 struct hw_alloc_data **memory;
76 for (memory = &me->alloc_of_hw;
77 *memory != NULL;
78 memory = &(*memory)->next)
80 if ((*memory)->alloc == alloc)
82 struct hw_alloc_data *die = (*memory);
83 (*memory) = die->next;
89 hw_abort (me, "free of memory not belonging to a device");