Lines Matching refs:entry
122 sim_memopt **entry,
226 while ((*entry) != NULL)
227 entry = &(*entry)->next;
228 (*entry) = ZALLOC (sim_memopt);
229 (*entry)->level = level;
230 (*entry)->space = space;
231 (*entry)->addr = addr;
232 (*entry)->nr_bytes = nr_bytes;
233 (*entry)->modulo = modulo;
234 (*entry)->buffer = free_buffer;
239 (*entry)->munmap_length = free_length;
244 (*entry)->munmap_length = 0;
246 return (*entry);
255 sim_memopt **entry = &STATE_MEMOPT (sd);
257 while ((*entry) != NULL
258 && ((*entry)->level != level
259 || (*entry)->space != space
260 || (*entry)->addr != addr))
261 entry = &(*entry)->next;
262 if ((*entry) == NULL)
269 if ((*entry)->buffer != NULL)
272 if ((*entry)->munmap_length > 0)
273 munmap ((*entry)->buffer, (*entry)->munmap_length);
276 free ((*entry)->buffer);
280 alias = *entry;
281 *entry = (*entry)->next;
417 sim_memopt *entry;
427 entry = do_memopt_add (sd, level, space, addr, nr_bytes, modulo,
438 &entry->alias, entry->buffer);
502 sim_memopt *entry;
504 for (entry = STATE_MEMOPT (sd); entry != NULL; entry = entry->next)
508 if (entry->alias == NULL)
512 if (entry->space != 0)
513 sim_io_printf (sd, "0x%lx:", (long) entry->space);
514 sim_io_printf (sd, "0x%08lx", (long) entry->addr);
515 if (entry->level != 0)
516 sim_io_printf (sd, "@0x%lx", (long) entry->level);
518 (long) entry->nr_bytes);
519 if (entry->modulo != 0)
520 sim_io_printf (sd, "%%0x%lx", (long) entry->modulo);
521 for (alias = entry->alias;
610 sim_memopt **entry = &STATE_MEMOPT (sd);
613 while ((*entry) != NULL)
616 if ((*entry)->buffer != NULL)
619 if ((*entry)->munmap_length > 0)
620 munmap ((*entry)->buffer, (*entry)->munmap_length);
623 free ((*entry)->buffer);
627 alias = *entry;
630 *entry = (*entry)->next;