Home
last modified time | relevance | path

Searched refs:vmp (Results 1 – 25 of 30) sorted by relevance

12

/titanic_44/usr/src/uts/common/os/
H A Dvmem.c401 vmem_getseg(vmem_t *vmp) in vmem_getseg() argument
405 ASSERT(vmp->vm_nsegfree > 0); in vmem_getseg()
407 vsp = vmp->vm_segfree; in vmem_getseg()
408 vmp->vm_segfree = vsp->vs_knext; in vmem_getseg()
409 vmp->vm_nsegfree--; in vmem_getseg()
418 vmem_putseg(vmem_t *vmp, vmem_seg_t *vsp) in vmem_putseg() argument
420 vsp->vs_knext = vmp->vm_segfree; in vmem_putseg()
421 vmp->vm_segfree = vsp; in vmem_putseg()
422 vmp->vm_nsegfree++; in vmem_putseg()
429 vmem_freelist_insert(vmem_t *vmp, vmem_seg_t *vsp) in vmem_freelist_insert() argument
[all …]
H A Dkmem.c1535 vmem_t *vmp = cp->cache_arena; in kmem_slab_create() local
1544 slab = vmem_alloc(vmp, slabsize, kmflag & KM_VMFLAGS); in kmem_slab_create()
1549 ASSERT(P2PHASE((uintptr_t)slab, vmp->vm_quantum) == 0); in kmem_slab_create()
1625 vmem_free(vmp, slab, slabsize); in kmem_slab_create()
1641 vmem_t *vmp = cp->cache_arena; in kmem_slab_destroy() local
1642 void *slab = (void *)P2ALIGN((uintptr_t)sp->slab_base, vmp->vm_quantum); in kmem_slab_destroy()
1655 vmem_free(vmp, slab, cp->cache_slabsize); in kmem_slab_destroy()
2966 kmem_firewall_va_alloc(vmem_t *vmp, size_t size, int vmflag) in kmem_firewall_va_alloc() argument
2968 size_t realsize = size + vmp->vm_quantum; in kmem_firewall_va_alloc()
2991 addr = vmem_alloc(vmp, realsize, vmflag | VM_NEXTFIT); in kmem_firewall_va_alloc()
[all …]
H A Dbp_map.c63 bp_vmem_alloc(vmem_t *vmp, size_t size, int vmflag) in bp_vmem_alloc() argument
65 return (vmem_xalloc(vmp, size, bp_align, 0, 0, NULL, NULL, vmflag)); in bp_vmem_alloc()
/titanic_44/usr/src/lib/libumem/common/
H A Dvmem.c271 vmem_getseg(vmem_t *vmp) in vmem_getseg() argument
275 ASSERT(vmp->vm_nsegfree > 0); in vmem_getseg()
277 vsp = vmp->vm_segfree; in vmem_getseg()
278 vmp->vm_segfree = vsp->vs_knext; in vmem_getseg()
279 vmp->vm_nsegfree--; in vmem_getseg()
288 vmem_putseg(vmem_t *vmp, vmem_seg_t *vsp) in vmem_putseg() argument
290 vsp->vs_knext = vmp->vm_segfree; in vmem_putseg()
291 vmp->vm_segfree = vsp; in vmem_putseg()
292 vmp->vm_nsegfree++; in vmem_putseg()
299 vmem_freelist_insert(vmem_t *vmp, vmem_seg_t *vsp) in vmem_freelist_insert() argument
[all …]
H A Dumem.c1405 vmem_t *vmp = cp->cache_arena; in umem_slab_create() local
1412 slab = vmem_alloc(vmp, slabsize, UMEM_VMFLAGS(umflag)); in umem_slab_create()
1417 ASSERT(P2PHASE((uintptr_t)slab, vmp->vm_quantum) == 0); in umem_slab_create()
1484 vmem_free(vmp, slab, slabsize); in umem_slab_create()
1500 vmem_t *vmp = cp->cache_arena; in umem_slab_destroy() local
1501 void *slab = (void *)P2ALIGN((uintptr_t)sp->slab_base, vmp->vm_quantum); in umem_slab_destroy()
1511 vmem_free(vmp, slab, cp->cache_slabsize); in umem_slab_destroy()
2265 umem_firewall_va_alloc(vmem_t *vmp, size_t size, int vmflag) in umem_firewall_va_alloc() argument
2267 size_t realsize = size + vmp->vm_quantum; in umem_firewall_va_alloc()
2281 return (vmem_alloc(vmp, realsize, vmflag | VM_NEXTFIT)); in umem_firewall_va_alloc()
[all …]
H A Dvmem_base.h46 extern void *_vmem_extend_alloc(vmem_t *vmp, void *vaddr, size_t size,
/titanic_44/usr/src/uts/sun4v/io/
H A Dvio_util.c55 vio_mblk_t *vmp; in vio_create_mblks() local
92 vmp = &(vmplp->basep[i]); in vio_create_mblks()
93 vmp->vmplp = vmplp; in vio_create_mblks()
94 vmp->datap = datap; in vio_create_mblks()
95 vmp->reclaim.free_func = vio_freeb; in vio_create_mblks()
96 vmp->reclaim.free_arg = (caddr_t)vmp; in vio_create_mblks()
97 vmp->mp = desballoc(vmp->datap, mblk_size, BPRI_MED, in vio_create_mblks()
98 &vmp->reclaim); in vio_create_mblks()
100 if (vmp->mp == NULL) { in vio_create_mblks()
115 vmp->index = i; in vio_create_mblks()
[all …]
H A Dvnet_txdring.c447 vio_mblk_pool_t *vmp = NULL; in vgen_unmap_rx_dring() local
450 vio_destroy_multipools(&ldcp->vmp, &vmp); in vgen_unmap_rx_dring()
451 if (vmp != NULL) { in vgen_unmap_rx_dring()
461 vgen_destroy_rxpools, vmp, DDI_SLEEP); in vgen_unmap_rx_dring()
511 status = vio_init_multipools(&ldcp->vmp, in vgen_init_multipools()
518 status = vio_init_multipools(&ldcp->vmp, in vgen_init_multipools()
540 status = vio_init_multipools(&ldcp->vmp, VGEN_NUM_VMPOOLS, in vgen_init_multipools()
557 status = vio_init_multipools(&ldcp->vmp, VGEN_NUM_VMPOOLS + 1, in vgen_init_multipools()
570 status = vio_init_multipools(&ldcp->vmp, VGEN_NUM_VMPOOLS + 1, in vgen_init_multipools()
977 vio_mblk_t *vmp = NULL; in vgen_process_dringdata() local
[all …]
H A Dvsw_txdring.c502 vio_destroy_multipools(&ldcp->vmp, &fvmp); in vsw_unmap_rx_dring()
545 rv = vio_init_multipools(&ldcp->vmp, in vsw_init_multipools()
552 rv = vio_init_multipools(&ldcp->vmp, in vsw_init_multipools()
576 rv = vio_init_multipools(&ldcp->vmp, VSW_NUM_VMPOOLS, in vsw_init_multipools()
593 rv = vio_init_multipools(&ldcp->vmp, VSW_NUM_VMPOOLS + 1, in vsw_init_multipools()
607 rv = vio_init_multipools(&ldcp->vmp, VSW_NUM_VMPOOLS + 1, in vsw_init_multipools()
1029 vio_mblk_t *vmp = NULL; in vsw_process_dringdata() local
1184 vmp = NULL; in vsw_process_dringdata()
1186 vmp = vio_multipool_allocb(&ldcp->vmp, nbytes); in vsw_process_dringdata()
1187 if (vmp == NULL) { in vsw_process_dringdata()
[all …]
H A Dvsw_rxdring.c253 vio_mblk_t *vmp; in vsw_setup_rx_dring() local
347 vmp = vio_allocb(dp->rx_vmp); in vsw_setup_rx_dring()
348 ASSERT(vmp != NULL); in vsw_setup_rx_dring()
349 rxdp->data_buf_offset = VIO_MBLK_DATA_OFF(vmp) + VNET_IPALIGN; in vsw_setup_rx_dring()
351 rxdp_to_vmp[i] = vmp; in vsw_setup_rx_dring()
718 vio_mblk_t *vmp; in vsw_receive_packet() local
732 vmp = dp->rxdp_to_vmp[rxi]; in vsw_receive_packet()
749 (VIO_MBLK_DATA_OFF(vmp) + VNET_IPALIGN))) { in vsw_receive_packet()
770 mp = vmp->mp; in vsw_receive_packet()
788 vmp->state = VIO_MBLK_HAS_DATA; in vsw_receive_packet()
H A Dvnet_rxdring.c122 vio_mblk_t *vmp; in vgen_create_rx_dring() local
237 vmp = vio_allocb(ldcp->rx_vmp); in vgen_create_rx_dring()
238 ASSERT(vmp != NULL); in vgen_create_rx_dring()
239 rxdp->data_buf_offset = VIO_MBLK_DATA_OFF(vmp) + VNET_IPALIGN; in vgen_create_rx_dring()
241 rxdp_to_vmp[i] = vmp; in vgen_create_rx_dring()
1052 vio_mblk_t *vmp; in vgen_receive_packet() local
1065 vmp = ldcp->rxdp_to_vmp[rxi]; in vgen_receive_packet()
1085 (VIO_MBLK_DATA_OFF(vmp) + VNET_IPALIGN))) { in vgen_receive_packet()
1105 mp = vmp->mp; in vgen_receive_packet()
1127 vmp->state = VIO_MBLK_HAS_DATA; in vgen_receive_packet()
H A Dvsw_ldc.c3456 vio_mblk_t *vmp; in vsw_process_pkt_data() local
3469 vmp = vio_multipool_allocb(&ldcp->vmp, size + VLAN_TAGSZ); in vsw_process_pkt_data()
3470 if (vmp == NULL) { in vsw_process_pkt_data()
3480 mp = vmp->mp; in vsw_process_pkt_data()
3490 if (vmp != NULL) { in vsw_process_pkt_data()
3491 vmp->state = VIO_MBLK_HAS_DATA; in vsw_process_pkt_data()
3945 vio_mblk_t *vmp; in vsw_ldcsend_pkt() local
3977 vmp = vio_allocb(vswp->pri_tx_vmp); in vsw_ldcsend_pkt()
3978 if (vmp == NULL) { in vsw_ldcsend_pkt()
3983 nmp = vmp->mp; in vsw_ldcsend_pkt()
[all …]
/titanic_44/usr/src/uts/common/vm/
H A Dseg_kmem.c197 hat_memload_alloc(vmem_t *vmp, size_t size, int flags) in hat_memload_alloc() argument
200 return (segkmem_alloc(vmp, size, flags)); in hat_memload_alloc()
210 segkmem_alloc_permanent(vmem_t *vmp, size_t size, int flags) in segkmem_alloc_permanent() argument
212 return (segkmem_alloc(vmp, size, flags | VM_NORELOC)); in segkmem_alloc_permanent()
860 segkmem_xalloc(vmem_t *vmp, void *inaddr, size_t size, int vmflag, uint_t attr, in segkmem_xalloc() argument
868 if (inaddr == NULL && (addr = vmem_alloc(vmp, size, vmflag)) == NULL) in segkmem_xalloc()
875 vmem_free(vmp, addr, size); in segkmem_xalloc()
882 vmem_free(vmp, addr, size); in segkmem_xalloc()
930 segkmem_alloc_vn(vmem_t *vmp, size_t size, int vmflag, struct vnode *vp) in segkmem_alloc_vn() argument
950 if (gcp->gc_arena == vmp && gcp->gc_size == size) { in segkmem_alloc_vn()
[all …]
/titanic_44/usr/src/uts/sun4v/vm/
H A Dmach_vm_dep.c402 contig_mem_span_alloc(vmem_t *vmp, size_t size, int vmflag) in contig_mem_span_alloc() argument
416 if ((addr = vmem_xalloc(vmp, size, size, 0, 0, in contig_mem_span_alloc()
425 vmem_xfree(vmp, addr, size); in contig_mem_span_alloc()
437 vmem_xfree(vmp, addr, size); in contig_mem_span_alloc()
487 span_alloc_downsize(vmem_t *vmp, size_t *sizep, size_t align, int vmflag) in span_alloc_downsize() argument
508 addr = contig_mem_span_alloc(vmp, page_size, vmflag); in span_alloc_downsize()
521 contig_mem_span_xalloc(vmem_t *vmp, size_t *sizep, size_t align, int vmflag) in contig_mem_span_xalloc() argument
523 return (span_alloc_downsize(vmp, sizep, align, vmflag | VM_NORELOC)); in contig_mem_span_xalloc()
527 contig_mem_reloc_span_xalloc(vmem_t *vmp, size_t *sizep, size_t align, in contig_mem_reloc_span_xalloc() argument
531 return (span_alloc_downsize(vmp, sizep, align, vmflag)); in contig_mem_reloc_span_xalloc()
[all …]
/titanic_44/usr/src/lib/libumem/common/sys/
H A Dvmem_impl_user.h83 #define VMEM_HASH(vmp, addr) \ argument
84 (&(vmp)->vm_hash_table[VMEM_HASH_INDEX(addr, \
85 (vmp)->vm_hash_shift, (vmp)->vm_qshift, (vmp)->vm_hash_mask)])
/titanic_44/usr/src/uts/common/sys/
H A Dvmem_impl.h84 #define VMEM_HASH(vmp, addr) \ argument
85 (&(vmp)->vm_hash_table[VMEM_HASH_INDEX(addr, \
86 (vmp)->vm_hash_shift, (vmp)->vm_qshift, (vmp)->vm_hash_mask)])
H A Dvmem.h146 extern void vmem_qcache_reap(vmem_t *vmp);
/titanic_44/usr/src/uts/sun4v/sys/
H A Dvio_util.h144 #define VIO_MBLK_DATA_OFF(vmp) ((vmp)->datap - ((vmp)->vmplp)->datap) argument
/titanic_44/usr/src/lib/libfakekernel/common/
H A Dkmem.c86 vmem_t *vmp, /* vmem source for slab allocation */ in kmem_cache_create() argument
102 private, vmp, ucflags); in kmem_cache_create()
142 vmem_qcache_reap(struct vmem *vmp) in vmem_qcache_reap() argument
/titanic_44/usr/src/uts/i86pc/os/
H A Dddi_impl.c1012 segkmem_free_io(vmem_t *vmp, void * ptr, size_t size) in segkmem_free_io() argument
1015 segkmem_xfree(vmp, ptr, size, page_destroy_io); in segkmem_free_io()
1020 segkmem_alloc_io_4P(vmem_t *vmp, size_t size, int vmflag) in segkmem_alloc_io_4P() argument
1022 return (segkmem_xalloc(vmp, NULL, size, vmflag, 0, in segkmem_alloc_io_4P()
1027 segkmem_alloc_io_64G(vmem_t *vmp, size_t size, int vmflag) in segkmem_alloc_io_64G() argument
1029 return (segkmem_xalloc(vmp, NULL, size, vmflag, 0, in segkmem_alloc_io_64G()
1034 segkmem_alloc_io_4G(vmem_t *vmp, size_t size, int vmflag) in segkmem_alloc_io_4G() argument
1036 return (segkmem_xalloc(vmp, NULL, size, vmflag, 0, in segkmem_alloc_io_4G()
1041 segkmem_alloc_io_2G(vmem_t *vmp, size_t size, int vmflag) in segkmem_alloc_io_2G() argument
1043 return (segkmem_xalloc(vmp, NULL, size, vmflag, 0, in segkmem_alloc_io_2G()
[all …]
/titanic_44/usr/src/uts/sun4/vm/
H A Dsfmmu.c1115 sfmmu_tsb_xalloc(vmem_t *vmp, void *inaddr, size_t size, int vmflag, in sfmmu_tsb_xalloc() argument
1132 if ((inaddr == NULL) && ((addr = vmem_xalloc(vmp, size, size, 0, 0, in sfmmu_tsb_xalloc()
1138 vmem_xfree(vmp, addr, size); in sfmmu_tsb_xalloc()
1145 vmem_xfree(vmp, addr, size); in sfmmu_tsb_xalloc()
1178 sfmmu_tsb_segkmem_alloc(vmem_t *vmp, size_t size, int vmflag) in sfmmu_tsb_segkmem_alloc() argument
1189 vmp != kmem_tsb_default_arena[lgrpid]; lgrpid++) in sfmmu_tsb_segkmem_alloc()
1195 return (sfmmu_tsb_xalloc(vmp, NULL, size, vmflag, 0, in sfmmu_tsb_segkmem_alloc()
1201 sfmmu_tsb_segkmem_free(vmem_t *vmp, void *inaddr, size_t size) in sfmmu_tsb_segkmem_free() argument
1232 if (vmp != NULL) in sfmmu_tsb_segkmem_free()
1233 vmem_xfree(vmp, inaddr, size); in sfmmu_tsb_segkmem_free()
/titanic_44/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_rsrc.c386 vmem_t *vmp; in hermon_rsrc_fexch_alloc() local
399 vmp = fcoib->hfc_fexch_vmemp[portm1]; in hermon_rsrc_fexch_alloc()
400 addr = vmem_xalloc(vmp, num, num, 0, 0, NULL, NULL, flag | VM_FIRSTFIT); in hermon_rsrc_fexch_alloc()
415 vmem_xfree(vmp, addr, num); in hermon_rsrc_fexch_alloc()
429 vmem_xfree(vmp, addr, num); in hermon_rsrc_fexch_alloc()
445 vmem_xfree(vmp, addr, num); in hermon_rsrc_fexch_alloc()
483 vmem_t *vmp; in hermon_rsrc_rfci_alloc() local
496 vmp = fcoib->hfc_rfci_vmemp[portm1]; in hermon_rsrc_rfci_alloc()
497 addr = vmem_xalloc(vmp, num, num, 0, 0, NULL, NULL, flag | VM_FIRSTFIT); in hermon_rsrc_rfci_alloc()
512 vmem_xfree(vmp, addr, num); in hermon_rsrc_rfci_alloc()
[all …]
/titanic_44/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_rsrc.c1777 vmem_t *vmp; in tavor_rsrc_mbox_init() local
1830 vmp = vmem_create(info->mbi_rsrcname, in tavor_rsrc_mbox_init()
1833 if (vmp == NULL) { in tavor_rsrc_mbox_init()
1844 rsrc_pool->rsrc_vmp = vmp; in tavor_rsrc_mbox_init()
1901 vmem_t *vmp; in tavor_rsrc_hw_entries_init() local
1964 vmp = vmem_create(info->hwi_rsrcname, in tavor_rsrc_hw_entries_init()
1967 if (vmp == NULL) { in tavor_rsrc_hw_entries_init()
1980 rsrc_pool->rsrc_vmp = vmp; in tavor_rsrc_hw_entries_init()
2158 vmem_t *vmp; in tavor_rsrc_pd_handles_init() local
2182 vmp = vmem_create(vmem_name, (caddr_t)1, info->swi_num, 1, NULL, in tavor_rsrc_pd_handles_init()
[all …]
/titanic_44/usr/src/common/ctf/
H A Dctf_types.c420 const void *vmp; in ctf_type_align() local
423 vmp = (uchar_t *)tp + increment; in ctf_type_align()
430 const ctf_member_t *mp = vmp; in ctf_type_align()
436 const ctf_lmember_t *lmp = vmp; in ctf_type_align()
/titanic_44/usr/src/uts/sun4/os/
H A Dddi_impl.c1053 segkmem_alloc_le(vmem_t *vmp, size_t size, int flag) in segkmem_alloc_le() argument
1055 return (segkmem_xalloc(vmp, NULL, size, flag, HAT_STRUCTURE_LE, in segkmem_alloc_le()
1060 segkmem_alloc_be(vmem_t *vmp, size_t size, int flag) in segkmem_alloc_be() argument
1062 return (segkmem_xalloc(vmp, NULL, size, flag, HAT_STRUCTURE_BE, in segkmem_alloc_be()

12