Home
last modified time | relevance | path

Searched refs:memlist (Results 1 – 25 of 107) sorted by relevance

12345

/titanic_50/usr/src/uts/common/sys/
H A Dpci_impl.h93 struct memlist *io_avail; /* available free io res */
94 struct memlist *io_used; /* used io res */
95 struct memlist *mem_avail; /* available free mem res */
96 struct memlist *mem_used; /* used mem res */
97 struct memlist *pmem_avail; /* available free prefetchable mem res */
98 struct memlist *pmem_used; /* used prefetchable mem res */
99 struct memlist *bus_avail; /* available free bus res */
122 extern struct memlist *memlist_alloc(void);
123 extern void memlist_free(struct memlist *);
124 extern void memlist_free_all(struct memlist **);
[all …]
H A Dmemlist_impl.h42 extern struct memlist *memlist_get_one(void);
43 extern void memlist_free_one(struct memlist *);
44 extern void memlist_free_list(struct memlist *);
46 extern void memlist_insert(struct memlist *new, struct memlist **);
47 extern void memlist_del(struct memlist *, struct memlist **);
48 extern struct memlist *memlist_find(struct memlist *, uint64_t address);
55 struct memlist **);
57 struct memlist **);
H A Dmemlist.h43 typedef struct memlist { struct
46 struct memlist *ml_next; /* link to next list element */ argument
47 struct memlist *ml_prev; /* link to previous list element */ argument
50 extern int address_in_memlist(struct memlist *, uint64_t, size_t);
58 extern struct memlist *phys_install;
64 extern struct memlist *bios_rsvd;
/titanic_50/usr/src/uts/intel/io/pci/
H A Dpci_memlist.c44 memlist_dump(struct memlist *listp) in memlist_dump()
55 struct memlist *
58 return ((struct memlist *)kmem_zalloc(sizeof (struct memlist), in memlist_alloc()
63 memlist_free(struct memlist *buf) in memlist_free()
65 kmem_free(buf, sizeof (struct memlist)); in memlist_free()
69 memlist_free_all(struct memlist **list) in memlist_free_all()
71 struct memlist *next, *buf; in memlist_free_all()
77 kmem_free(buf, sizeof (struct memlist)); in memlist_free_all()
84 memlist_insert(struct memlist **listp, uint64_t addr, uint64_t size) in memlist_insert()
87 struct memlist *entry; in memlist_insert()
[all …]
H A Dpci_resource.c54 static int mps_find_bus_res(int, int, struct memlist **);
56 static int hrt_find_bus_res(int, int, struct memlist **);
57 static int acpi_find_bus_res(int, int, struct memlist **);
64 struct memlist *acpi_io_res[256];
65 struct memlist *acpi_mem_res[256];
66 struct memlist *acpi_pmem_res[256];
67 struct memlist *acpi_bus_res[256];
76 struct memlist *
79 struct memlist *res = NULL; in find_bus_res()
136 struct memlist *ranges, *current; in acpi_trim_bus_ranges()
[all …]
/titanic_50/usr/src/uts/i86pc/sys/
H A Ddr_util.h68 extern void dr_memlist_delete(struct memlist *mlist);
69 extern void memlist_dump(struct memlist *mlist);
70 extern int dr_memlist_intersect(struct memlist *al,
71 struct memlist *bl);
72 extern void dr_memlist_coalesce(struct memlist *mlist);
73 extern struct memlist *dr_memlist_dup(struct memlist *mlist);
74 extern struct memlist *dr_memlist_add_span(struct memlist *mlist,
76 extern struct memlist *dr_memlist_del_span(struct memlist *mlist,
78 extern struct memlist *dr_memlist_cat_span(struct memlist *mlist,
/titanic_50/usr/src/uts/sun4u/ngdr/sys/
H A Ddr_util.h71 extern void dr_memlist_delete(struct memlist *mlist);
72 extern void memlist_dump(struct memlist *mlist);
73 extern int dr_memlist_intersect(struct memlist *al,
74 struct memlist *bl);
75 extern void dr_memlist_coalesce(struct memlist *mlist);
76 extern struct memlist *dr_memlist_dup(struct memlist *mlist);
77 extern struct memlist *dr_memlist_add_span(struct memlist *mlist,
79 extern struct memlist *dr_memlist_del_span(struct memlist *mlist,
81 extern struct memlist *dr_memlist_cat_span(struct memlist *mlist,
/titanic_50/usr/src/uts/i86pc/io/dr/
H A Ddr_util.c175 dr_memlist_delete(struct memlist *mlist) in dr_memlist_delete()
177 register struct memlist *ml; in dr_memlist_delete()
181 FREESTRUCT(ml, struct memlist, 1); in dr_memlist_delete()
186 dr_memlist_intersect(struct memlist *al, struct memlist *bl) in dr_memlist_intersect()
221 dr_memlist_coalesce(struct memlist *mlist) in dr_memlist_coalesce()
231 struct memlist *nl; in dr_memlist_coalesce()
240 FREESTRUCT(nl, struct memlist, 1); in dr_memlist_coalesce()
252 memlist_dump(struct memlist *mlist) in memlist_dump()
254 register struct memlist *ml; in memlist_dump()
264 struct memlist *
[all …]
/titanic_50/usr/src/uts/sun4u/ngdr/io/
H A Ddr_util.c175 dr_memlist_delete(struct memlist *mlist) in dr_memlist_delete()
177 register struct memlist *ml; in dr_memlist_delete()
181 FREESTRUCT(ml, struct memlist, 1); in dr_memlist_delete()
186 dr_memlist_intersect(struct memlist *al, struct memlist *bl) in dr_memlist_intersect()
221 dr_memlist_coalesce(struct memlist *mlist) in dr_memlist_coalesce()
231 struct memlist *nl; in dr_memlist_coalesce()
240 FREESTRUCT(nl, struct memlist, 1); in dr_memlist_coalesce()
252 memlist_dump(struct memlist *mlist) in memlist_dump()
254 register struct memlist *ml; in memlist_dump()
263 struct memlist *
[all …]
/titanic_50/usr/src/uts/common/os/
H A Dmemlist_new.c34 static struct memlist *memlist_freelist;
41 struct memlist *
44 struct memlist *mlp; in memlist_get_one()
58 memlist_free_one(struct memlist *mlp) in memlist_free_one()
70 memlist_free_list(struct memlist *mlp) in memlist_free_list()
72 struct memlist *mlendp; in memlist_free_list()
92 struct memlist *mlp, *mlendp; in memlist_free_block()
95 count = bytes / sizeof (struct memlist); in memlist_free_block()
99 mlp = (struct memlist *)base; in memlist_free_block()
104 mlp = (struct memlist *)base; in memlist_free_block()
[all …]
/titanic_50/usr/src/uts/sun4/sys/
H A Dmemlist_plat.h52 extern void copy_memlist(prom_memlist_t *, size_t, struct memlist **);
58 extern void installed_top_size(struct memlist *, pfn_t *, pgcnt_t *);
59 extern void fix_prom_pages(struct memlist *, struct memlist *);
67 extern void diff_memlists(struct memlist *, struct memlist *,
69 extern void sync_memlists(struct memlist *, struct memlist *);
/titanic_50/usr/src/psm/stand/boot/sparc/common/
H A Dsun4u_memlist.c54 struct memlist *fill_memlists(char *name, char *prop, struct memlist *);
55 extern struct memlist *pfreelistp, *vfreelistp, *pinstalledp;
57 static struct memlist *reg_to_list(struct sun4u_prom_memlist *a, size_t size,
58 struct memlist *old);
74 struct memlist *
75 fill_memlists(char *name, char *prop, struct memlist *old) in fill_memlists()
81 struct memlist *al; in fill_memlists()
159 static struct memlist *
160 reg_to_list(struct sun4u_prom_memlist *ar, size_t n, struct memlist *old) in reg_to_list()
162 struct memlist *ptr, *head, *last; in reg_to_list()
[all …]
H A Dbootprop.c45 struct memlist *pfreelistp, /* physmem available */
121 struct memlist *ml; in bgetproplen()
135 for (ml = *((struct memlist **)p->val); in bgetproplen()
144 size += (int)(sizeof (struct memlist) - in bgetproplen()
145 2*sizeof (struct memlist *)); in bgetproplen()
170 struct memlist *ml; in bgetprop()
209 for (ml = *((struct memlist **)p->val); in bgetprop()
/titanic_50/usr/src/stand/lib/sa/
H A Dmemlist.c47 print_memlist(struct memlist *av) in print_memlist()
49 struct memlist *p = av; in print_memlist()
106 static struct memlist *free_memlist_ptr = NULL;
114 struct memlist *
117 struct memlist *ptr; in get_memlist_struct()
122 sizeof (struct memlist)); in get_memlist_struct()
123 bzero(free_memlist_ptr, (ALLOC_SZ * sizeof (struct memlist))); in get_memlist_struct()
137 add_to_freelist(struct memlist *ptr) in add_to_freelist()
139 struct memlist *tmp; in add_to_freelist()
/titanic_50/usr/src/uts/sun4v/io/
H A Ddr_util.c145 struct memlist *
146 dr_memlist_dup(struct memlist *mlist) in dr_memlist_dup()
148 struct memlist *hl = NULL, *tl, **mlp; in dr_memlist_dup()
156 *mlp = (struct memlist *)kmem_zalloc(sizeof (struct memlist),\ in dr_memlist_dup()
173 dr_memlist_delete(struct memlist *mlist) in dr_memlist_delete()
175 register struct memlist *ml; in dr_memlist_delete()
179 kmem_free((void *)ml, sizeof (struct memlist)); in dr_memlist_delete()
/titanic_50/usr/src/uts/intel/sys/
H A Dmemlist_plat.h45 extern void copy_memlist_filter(struct memlist *, struct memlist **,
47 extern void installed_top_size(struct memlist *, pfn_t *, pgcnt_t *);
48 extern void installed_top_size_ex(struct memlist *, pfn_t *, pgcnt_t *, int *);
H A Dbootconf.h81 struct memlist *physinstalled; /* amt of physmem installed */
82 struct memlist *rsvdmem; /* amt of bios reserved mem */
83 struct memlist *physavail; /* amt of physmem avail for use */
84 struct memlist *virtavail; /* amt of virtmem avail for use */
85 struct memlist *pcimem; /* amt of pcimem avail for use */
/titanic_50/usr/src/uts/sun4u/os/
H A Dmemscrub.c223 static int memscrub_add_span_gen(pfn_t, pgcnt_t, struct memlist **, uint_t *);
231 static struct memlist *memscrub_memlist;
307 struct memlist *src; in memscrub_init()
383 memscrub_printmemlist(char *title, struct memlist *listp) in memscrub_printmemlist()
385 struct memlist *list; in memscrub_printmemlist()
664 struct memlist *mlp; in memscrub_verify_span()
762 struct memlist **list, in memscrub_add_span_gen()
767 struct memlist *dst; in memscrub_add_span_gen()
768 struct memlist *prev, *next; in memscrub_add_span_gen()
775 dst = (struct memlist *) in memscrub_add_span_gen()
[all …]
/titanic_50/usr/src/uts/sun4/os/
H A Dstartup.c83 extern int ndata_alloc_mmfsa(struct memlist *ndata);
165 struct memlist *phys_install; /* Total installed physical memory */
166 struct memlist *phys_avail; /* Available (unreserved) physical memory */
167 struct memlist *virt_avail; /* Available (unmapped?) virtual memory */
168 struct memlist *nopp_list; /* pages with no backing page structs */
169 struct memlist ndata; /* memlist of nucleus allocatable memory */
249 static int ndata_alloc_memseg(struct memlist *, size_t);
250 static void memlist_new(uint64_t, uint64_t, struct memlist **);
252 struct memlist **, struct memlist **);
267 static struct memlist *memlist; variable
[all …]
/titanic_50/usr/src/uts/sun4u/opl/io/
H A Ddr_mem.c59 extern struct memlist *phys_install;
78 struct memlist *mlist);
80 dr_mem_unit_t *mp, struct memlist *ml);
82 static struct memlist *dr_memlist_del_retired_pages(struct memlist *ml);
85 struct memlist *s_ml, struct memlist *x_ml,
86 struct memlist *b_ml);
88 static int memlist_canfit(struct memlist *s_mlist,
89 struct memlist *t_mlist);
90 static int dr_del_mlist_query(struct memlist *mlist,
92 static struct memlist *dr_get_copy_mlist(struct memlist *s_ml,
[all …]
/titanic_50/usr/src/uts/sun4/vm/
H A Dsfmmu.c261 extern struct memlist *virt_avail; in sfmmu_map_prom_mappings()
487 ndata_alloc_init(struct memlist *ndata, uintptr_t base, uintptr_t end) in ndata_alloc_init()
489 ASSERT(sizeof (struct memlist) <= ecache_alignsize); in ndata_alloc_init()
506 ndata_maxsize(struct memlist *ndata) in ndata_maxsize()
526 ndata_extra_base(struct memlist *ndata, size_t alignment, caddr_t endaddr) in ndata_extra_base()
565 bzero((void *)base, sizeof (struct memlist)); in ndata_extra_base()
579 static struct memlist *
580 ndata_select_chunk(struct memlist *ndata, size_t wanted, size_t alignment) in ndata_select_chunk()
582 struct memlist *fnd_below = NULL; in ndata_select_chunk()
583 struct memlist *fnd_above = NULL; in ndata_select_chunk()
[all …]
/titanic_50/usr/src/uts/i86pc/os/
H A Dmemscrub.c148 static struct memlist *memscrub_memlist;
172 struct memlist *src; in memscrub_init()
215 memscrub_printmemlist(char *title, struct memlist *listp) in memscrub_printmemlist()
217 struct memlist *list; in memscrub_printmemlist()
265 struct memlist *mlp; in memscrubber()
460 struct memlist *dst; in memscrub_add_span()
461 struct memlist *prev, *next; in memscrub_add_span()
527 dst = kmem_alloc(sizeof (struct memlist), KM_NOSLEEP); in memscrub_add_span()
/titanic_50/usr/src/stand/sys/
H A Dsalib.h66 extern void print_memlist(struct memlist *);
68 extern struct memlist *get_memlist_struct(void);
69 extern void add_to_freelist(struct memlist *);
/titanic_50/usr/src/uts/sun4v/sys/
H A Dmachsystm.h273 extern int ndata_alloc_mmfsa(struct memlist *);
274 extern int ndata_alloc_page_freelists(struct memlist *, int);
275 extern int ndata_alloc_dmv(struct memlist *);
276 extern int ndata_alloc_tsbs(struct memlist *, pgcnt_t);
277 extern int ndata_alloc_hat(struct memlist *);
278 extern int ndata_alloc_kpm(struct memlist *, pgcnt_t);
279 extern int ndata_alloc_page_mutexs(struct memlist *ndata);
/titanic_50/usr/src/uts/sun4u/sys/
H A Dmachsystm.h273 extern int ndata_alloc_page_freelists(struct memlist *, int);
274 extern int ndata_alloc_dmv(struct memlist *);
275 extern int ndata_alloc_tsbs(struct memlist *, pgcnt_t);
276 extern int ndata_alloc_hat(struct memlist *);
277 extern int ndata_alloc_kpm(struct memlist *, pgcnt_t);
278 extern int ndata_alloc_page_mutexs(struct memlist *ndata);

12345