Lines Matching defs:mem
100 auich_mem *mem;
102 if ((mem = malloc(sizeof(*mem))) == NULL)
105 mem->area = alloc_mem(&mem->phy_base, &mem->log_base, size, "auich buffer",
107 mem->size = size;
108 if (mem->area < B_OK) {
109 free(mem);
112 return mem;
117 auich_mem_delete(auich_mem *mem)
119 if (mem->area > B_OK)
120 delete_area(mem->area);
121 free(mem);
128 auich_mem *mem;
130 mem = auich_mem_new(card, size);
131 if (mem == NULL)
134 LIST_INSERT_HEAD(&(card->mems), mem, next);
136 return mem;
143 auich_mem *mem;
145 LIST_FOREACH(mem, &card->mems, next) {
146 if (mem->log_base != ptr)
148 LIST_REMOVE(mem, next);
150 auich_mem_delete(mem);