Home
last modified time | relevance | path

Searched refs:memseg (Results 1 – 25 of 36) sorted by relevance

12

/titanic_50/usr/src/lib/libtnfctl/
H A Dtargmem.c49 tnf_memseg_t memseg; in _tnfctl_targmem_alloc() local
55 miscstat = hndl->p_read(hndl->proc_p, hndl->memseg_p, &memseg, in _tnfctl_targmem_alloc()
56 sizeof (memseg)); in _tnfctl_targmem_alloc()
61 if ((memseg.min_p + memseg.i_reqsz) <= (memseg.max_p - size)) { in _tnfctl_targmem_alloc()
62 memseg.max_p -= size; in _tnfctl_targmem_alloc()
65 &memseg, sizeof (memseg)); in _tnfctl_targmem_alloc()
69 *addr_p = (uintptr_t) memseg.max_p; in _tnfctl_targmem_alloc()
/titanic_50/usr/src/uts/sun4v/io/
H A Dldc_shm.c222 mhdl->memseg = NULL; in ldc_mem_alloc_handle()
351 ldc_memseg_t *memseg; in i_ldc_mem_bind_handle() local
375 if (mhdl->status == LDC_BOUND || mhdl->memseg != NULL) { in i_ldc_mem_bind_handle()
488 memseg = mhdl->memseg = in i_ldc_mem_bind_handle()
492 memseg->pages = kmem_zalloc((sizeof (ldc_page_t) * npages), KM_SLEEP); in i_ldc_mem_bind_handle()
493 memseg->cookies = in i_ldc_mem_bind_handle()
603 memseg->pages[i].index = index; in i_ldc_mem_bind_handle()
604 memseg->pages[i].raddr = raddr; in i_ldc_mem_bind_handle()
605 memseg->pages[i].mte = &(mtbl->table[index]); in i_ldc_mem_bind_handle()
610 memseg->cookies[cookie_idx].addr = in i_ldc_mem_bind_handle()
[all …]
/titanic_50/usr/src/uts/sun4v/vm/
H A Dmach_kpm.c40 extern pfn_t memseg_get_start(struct memseg *);
218 hat_kpm_mseghash_update(pgcnt_t inx, struct memseg *msp) in hat_kpm_mseghash_update()
223 hat_kpm_addmem_mseg_update(struct memseg *msp, pgcnt_t nkpmpgs, in hat_kpm_addmem_mseg_update()
255 hat_kpm_mseg_reuse(struct memseg *msp) in hat_kpm_mseg_reuse()
262 hat_kpm_addmem_mseg_insert(struct memseg *msp) in hat_kpm_addmem_mseg_insert()
267 hat_kpm_addmem_memsegs_update(struct memseg *msp) in hat_kpm_addmem_memsegs_update()
272 hat_kpm_delmem_mseg_update(struct memseg *msp, struct memseg **mspp) in hat_kpm_delmem_mseg_update()
293 hat_kpm_split_mseg_update(struct memseg *msp, struct memseg **mspp, in hat_kpm_split_mseg_update()
294 struct memseg *lo, struct memseg *mid, struct memseg *hi) in hat_kpm_split_mseg_update()
306 struct memseg *msp; in hat_kpm_walk()
/titanic_50/usr/src/uts/common/sys/rsm/
H A Drsmpi.h246 rsm_memseg_export_handle_t *memseg,
255 (rsm_memseg_export_handle_t memseg,
261 (rsm_memseg_export_handle_t memseg,
265 (rsm_memseg_export_handle_t memseg,
271 (rsm_memseg_export_handle_t memseg,
278 (rsm_memseg_export_handle_t memseg);
280 (rsm_memseg_export_handle_t memseg,
519 #define RSM_SEG_CREATE(controller, memseg, size, flags, memory, callback, \ argument
522 ((controller).handle, (memseg), (size), (flags), (memory), \
524 #define RSM_SEG_DESTROY(controller, memseg) \ argument
[all …]
/titanic_50/usr/src/uts/common/vm/
H A Dhat.h65 struct memseg;
248 void hat_kpm_mseghash_update(pgcnt_t, struct memseg *);
249 void hat_kpm_addmem_mseg_update(struct memseg *, pgcnt_t, offset_t);
250 void hat_kpm_addmem_mseg_insert(struct memseg *);
251 void hat_kpm_addmem_memsegs_update(struct memseg *);
252 caddr_t hat_kpm_mseg_reuse(struct memseg *);
253 void hat_kpm_delmem_mseg_update(struct memseg *, struct memseg **);
254 void hat_kpm_split_mseg_update(struct memseg *, struct memseg **,
255 struct memseg *, struct memseg *, struct memseg *);
H A Dpage.h1125 struct memseg { struct
1128 struct memseg *next; /* next segment in list */ argument
1129 struct memseg *lnext; /* next segment in deleted list */ argument
1162 extern struct memseg *memsegs; /* list of memory segments */
1167 extern struct memseg *page_numtomemseg_nolock(pfn_t pfnum);
H A Dvm_page.c314 struct memseg *memsegs; /* list of memory segments */
5745 struct memseg *memseg_hash[N_MEM_SLOTS];
5750 struct memseg *seg; in page_numtopp_nolock()
5812 struct memseg *
5815 struct memseg *seg; in page_numtomemseg_nolock()
5845 return ((struct memseg *)NULL); in page_numtomemseg_nolock()
5859 struct memseg *seg; in page_nextn()
5932 struct memseg *seg = (struct memseg *)*cookie; in page_next_scan_large()
6000 struct memseg *pseg; in build_pfn_hash()
/titanic_50/usr/src/lib/librsm/inc/
H A Drsmapi.h128 rsm_memseg_export_handle_t *memseg,
132 int rsm_memseg_export_destroy(rsm_memseg_export_handle_t memseg);
136 int rsm_memseg_export_rebind(rsm_memseg_export_handle_t memseg,
141 int rsm_memseg_export_publish(rsm_memseg_export_handle_t memseg,
147 int rsm_memseg_export_unpublish(rsm_memseg_export_handle_t memseg);
149 int rsm_memseg_export_republish(rsm_memseg_export_handle_t memseg,
/titanic_50/usr/src/cmd/mdb/sun4v/modules/ldc/
H A Dldc.c428 ldc_memseg_t memseg; in ldcmhdl() local
464 mhdl.memseg); in ldcmhdl()
466 if (mhdl.memseg != NULL) { in ldcmhdl()
467 if (mdb_vread(&memseg, sizeof (memseg), in ldcmhdl()
468 (uintptr_t)mhdl.memseg) != sizeof (memseg)) { in ldcmhdl()
470 mhdl.memseg); in ldcmhdl()
474 mdb_printf("0x%p 0x%-8lx\n", memseg.vaddr, memseg.size); in ldcmhdl()
/titanic_50/usr/src/uts/sun4u/vm/
H A Dmach_kpm.c48 static int sfmmu_kpm_fault(caddr_t, struct memseg *, page_t *);
49 static int sfmmu_kpm_fault_small(caddr_t, struct memseg *, page_t *);
271 struct memseg *mseg; \
285 struct memseg *mseg; \
311 struct memseg *mseg; in hat_kpm_fault()
372 hat_kpm_mseghash_update(pgcnt_t inx, struct memseg *msp) in hat_kpm_mseghash_update()
384 hat_kpm_addmem_mseg_update(struct memseg *msp, pgcnt_t nkpmpgs, in hat_kpm_addmem_mseg_update()
403 hat_kpm_addmem_mseg_insert(struct memseg *msp) in hat_kpm_addmem_mseg_insert()
419 hat_kpm_addmem_memsegs_update(struct memseg *msp) in hat_kpm_addmem_memsegs_update()
438 hat_kpm_mseg_reuse(struct memseg *msp) in hat_kpm_mseg_reuse()
[all …]
/titanic_50/usr/src/uts/i86xpv/os/
H A Dballoon.c184 struct memseg memseg; member
193 #define MEM_STRUCT_SIZE (sizeof (struct memseg) + sizeof (struct memlist))
211 struct memseg *segp; in balloon_init_new_pages()
331 mem->memseg.pages_base = meta_start; in balloon_init_new_pages()
332 mem->memseg.pages_end = bln_stats.bln_max_pages - 1; in balloon_init_new_pages()
333 mem->memseg.pages = &page_array[0]; in balloon_init_new_pages()
334 mem->memseg.epages = &page_array[num_pages - 1]; in balloon_init_new_pages()
335 mem->memseg.next = NULL; in balloon_init_new_pages()
339 segp->next = &mem->memseg; in balloon_init_new_pages()
/titanic_50/usr/src/uts/sun4v/os/
H A Dmemseg.c41 extern struct memseg *memseg_va_avail;
42 extern struct memseg *memseg_alloc();
49 extern struct memseg *memseg_reuse(pgcnt_t);
221 memseg_remap_meta(struct memseg *seg) in memseg_remap_meta()
/titanic_50/usr/src/uts/sun4/os/
H A Dstartup.c231 struct memseg *memseg_free;
326 printmemseg(struct memseg *memseg) in printmemseg() argument
333 while (memseg) { in printmemseg()
336 memseg->pages, memseg->epages, in printmemseg()
337 memseg->pages_base, memseg->pages_end); in printmemseg()
338 memseg = memseg->next; in printmemseg()
2453 struct memseg *msp; in ndata_alloc_memseg()
2461 memseg_sz = (avail + 10) * sizeof (struct memseg); in ndata_alloc_memseg()
2463 nseg = memseg_sz / sizeof (struct memseg); in ndata_alloc_memseg()
2488 memseg_list_add(struct memseg *memsegp) in memseg_list_add()
[all …]
/titanic_50/usr/src/uts/common/os/
H A Dmem_config.c74 struct memseg *memseg_va_avail;
75 struct memseg *memseg_alloc(void);
76 static struct memseg *memseg_delete_junk;
77 static struct memseg *memseg_edit_junk;
79 static void memseg_remap_to_dummy(struct memseg *);
81 static struct memseg *memseg_reuse(pgcnt_t);
99 extern void memseg_remap_meta(struct memseg *);
100 static int memseg_is_dynamic(struct memseg *);
101 static int memseg_includes_meta(struct memseg *);
102 pfn_t memseg_get_start(struct memseg *);
[all …]
/titanic_50/usr/src/lib/librsm/common/
H A Drsmlib.c751 rsm_memseg_export_handle_t *memseg, in rsm_memseg_export_create() argument
773 if (!memseg) { in rsm_memseg_export_create()
779 *memseg = 0; in rsm_memseg_export_create()
894 *memseg = (rsm_memseg_export_handle_t)p; in rsm_memseg_export_create()
903 rsm_memseg_export_destroy(rsm_memseg_export_handle_t memseg) in rsm_memseg_export_destroy() argument
910 if (!memseg) { in rsm_memseg_export_destroy()
916 seg = (rsmseg_handle_t *)memseg; in rsm_memseg_export_destroy()
941 rsm_memseg_export_rebind(rsm_memseg_export_handle_t memseg, void *vaddr, in rsm_memseg_export_rebind() argument
945 rsmseg_handle_t *seg = (rsmseg_handle_t *)memseg; in rsm_memseg_export_rebind()
988 rsm_memseg_export_publish(rsm_memseg_export_handle_t memseg, in rsm_memseg_export_publish() argument
[all …]
H A Drsmgen.c978 rsm_memseg_export_handle_t memseg; in __rsm_create_memory_handle() local
992 e = rsm_memseg_export_create(controller, &memseg, in __rsm_create_memory_handle()
1014 e = rsm_memseg_export_publish(memseg, &segid, acl, 1); in __rsm_create_memory_handle()
1018 rsm_memseg_export_destroy(memseg); in __rsm_create_memory_handle()
1023 *local_hndl_p = (rsm_localmemory_handle_t)memseg; in __rsm_create_memory_handle()
/titanic_50/usr/src/cmd/mdb/sun4u/modules/unix/
H A Dsfmmu.c393 struct memseg ms; in memseg_list()
408 if (mdb_vread(&ms, sizeof (struct memseg), addr) == -1) { in memseg_list()
435 wsp->walk_data = mdb_alloc(sizeof (struct memseg), UM_SLEEP); in memseg_walk_init()
449 if (mdb_vread(wsp->walk_data, sizeof (struct memseg), in memseg_walk_step()
458 wsp->walk_addr = (uintptr_t)(((struct memseg *)wsp->walk_data)->next); in memseg_walk_step()
466 mdb_free(wsp->walk_data, sizeof (struct memseg)); in memseg_walk_fini()
/titanic_50/usr/src/cmd/mdb/i86pc/modules/unix/
H A Di86mmu.c78 struct memseg ms; in memseg_list()
93 if (mdb_vread(&ms, sizeof (struct memseg), addr) == -1) { in memseg_list()
120 wsp->walk_data = mdb_alloc(sizeof (struct memseg), UM_SLEEP); in memseg_walk_init()
134 if (mdb_vread(wsp->walk_data, sizeof (struct memseg), in memseg_walk_step()
143 wsp->walk_addr = (uintptr_t)(((struct memseg *)wsp->walk_data)->next); in memseg_walk_step()
151 mdb_free(wsp->walk_data, sizeof (struct memseg)); in memseg_walk_fini()
/titanic_50/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_mem.c54 bzero(hba->memseg, sizeof (hba->memseg)); in emlxs_mem_alloc_buffer()
73 seg = &hba->memseg[i]; in emlxs_mem_alloc_buffer()
205 seg = &hba->memseg[MEM_BPL]; in emlxs_mem_alloc_buffer()
364 emlxs_mem_pool_destroy(hba, &hba->memseg[j]); in emlxs_mem_free_buffer()
1123 seg = &hba->memseg[seg_id]; in emlxs_mem_get()
1170 seg = &hba->memseg[seg_id]; in emlxs_mem_put()
/titanic_50/usr/src/uts/i86pc/vm/
H A Dhat_i86.c198 extern pfn_t memseg_get_start(struct memseg *);
4356 hat_kpm_mseghash_update(pgcnt_t inx, struct memseg *msp) in hat_kpm_mseghash_update()
4361 hat_kpm_addmem_mseg_update(struct memseg *msp, pgcnt_t nkpmpgs, in hat_kpm_addmem_mseg_update()
4391 hat_kpm_addmem_mseg_insert(struct memseg *msp) in hat_kpm_addmem_mseg_insert()
4397 hat_kpm_addmem_memsegs_update(struct memseg *msp) in hat_kpm_addmem_memsegs_update()
4407 hat_kpm_mseg_reuse(struct memseg *msp) in hat_kpm_mseg_reuse()
4413 hat_kpm_delmem_mseg_update(struct memseg *msp, struct memseg **mspp) in hat_kpm_delmem_mseg_update()
4420 hat_kpm_split_mseg_update(struct memseg *msp, struct memseg **mspp, in hat_kpm_split_mseg_update()
4421 struct memseg *lo, struct memseg *mid, struct memseg *hi) in hat_kpm_split_mseg_update()
4436 struct memseg *msp; in hat_kpm_walk()
H A Dvm_dep.h452 struct memseg *vc_pnum_memseg;
453 struct memseg *vc_pnext_memseg;
/titanic_50/usr/src/uts/sun4v/sys/
H A Dldc_impl.h382 ldc_memseg_t *memseg; /* Bound memory segment */ member
/titanic_50/usr/src/uts/sun4v/
H A DMakefile.files63 CORE_OBJS += memseg.o
/titanic_50/usr/src/uts/sun4/vm/
H A Dvm_dep.h689 struct memseg *vc_pnum_memseg;
690 struct memseg *vc_pnext_memseg;
/titanic_50/usr/src/uts/sun4v/ml/
H A Dmach_offsets.in219 memseg MEMSEG_SIZE

12