Lines Matching refs:entry
118 sim_memopt **entry,
222 while ((*entry) != NULL)
223 entry = &(*entry)->next;
224 (*entry) = ZALLOC (sim_memopt);
225 (*entry)->level = level;
226 (*entry)->space = space;
227 (*entry)->addr = addr;
228 (*entry)->nr_bytes = nr_bytes;
229 (*entry)->modulo = modulo;
230 (*entry)->buffer = free_buffer;
235 (*entry)->munmap_length = free_length;
240 (*entry)->munmap_length = 0;
242 return (*entry);
251 sim_memopt **entry = &STATE_MEMOPT (sd);
253 while ((*entry) != NULL
254 && ((*entry)->level != level
255 || (*entry)->space != space
256 || (*entry)->addr != addr))
257 entry = &(*entry)->next;
258 if ((*entry) == NULL)
265 if ((*entry)->buffer != NULL)
268 if ((*entry)->munmap_length > 0)
269 munmap ((*entry)->buffer, (*entry)->munmap_length);
272 free ((*entry)->buffer);
276 alias = *entry;
277 *entry = (*entry)->next;
413 sim_memopt *entry;
423 entry = do_memopt_add (sd, level, space, addr, nr_bytes, modulo,
434 &entry->alias, entry->buffer);
498 sim_memopt *entry;
500 for (entry = STATE_MEMOPT (sd); entry != NULL; entry = entry->next)
504 if (entry->alias == NULL)
508 if (entry->space != 0)
509 sim_io_printf (sd, "0x%lx:", (long) entry->space);
510 sim_io_printf (sd, "0x%08lx", (long) entry->addr);
511 if (entry->level != 0)
512 sim_io_printf (sd, "@0x%lx", (long) entry->level);
514 (long) entry->nr_bytes);
515 if (entry->modulo != 0)
516 sim_io_printf (sd, "%%0x%lx", (long) entry->modulo);
517 for (alias = entry->alias;
606 sim_memopt **entry = &STATE_MEMOPT (sd);
609 while ((*entry) != NULL)
612 if ((*entry)->buffer != NULL)
615 if ((*entry)->munmap_length > 0)
616 munmap ((*entry)->buffer, (*entry)->munmap_length);
619 free ((*entry)->buffer);
623 alias = *entry;
626 *entry = (*entry)->next;