| 141 | } |
| 142 | |
| 143 | void *cbmem_add(u32 id, u64 size) |
| 144 | { |
| 145 | const struct imd_entry *e; |
| 146 | |
| 147 | e = imd_entry_find_or_add(&imd, id, size); |
| 148 | |
| 149 | if (e == NULL) |
| 150 | return NULL; |
| 151 | |
| 152 | return imd_entry_at(&imd, e); |
| 153 | } |
| 154 | |
| 155 | /* Retrieve a region provided a given id. */ |
| 156 | const struct cbmem_entry *cbmem_entry_find(u32 id) |
no test coverage detected