Home
last modified time | relevance | path

Searched refs:vmem (Results 1 – 25 of 34) sorted by relevance

12

/freebsd/sys/vm/
H A Dvm_kern.h71 extern struct vmem *kernel_arena;
72 extern struct vmem *kmem_arena;
73 extern struct vmem *buffer_arena;
74 extern struct vmem *transient_arena;
75 extern struct vmem *memguard_arena;
H A Dmemguard.h36 struct vmem;
40 void memguard_init(struct vmem *);
H A Dvm_kern.c255 vmem_t *vmem; in kmem_alloc_attr_domain() local
265 vmem = vm_dom[domain].vmd_kernel_arena; in kmem_alloc_attr_domain()
266 if (vmem_alloc(vmem, asize, M_BESTFIT | flags, &addr)) in kmem_alloc_attr_domain()
278 vmem_free(vmem, addr, asize); in kmem_alloc_attr_domain()
346 vmem_t *vmem; in kmem_alloc_contig_domain() local
356 vmem = vm_dom[domain].vmd_kernel_arena; in kmem_alloc_contig_domain()
357 if (vmem_alloc(vmem, asize, flags | M_BESTFIT, &addr)) in kmem_alloc_contig_domain()
367 vmem_free(vmem, addr, asize); in kmem_alloc_contig_domain()
629 static struct vmem *
632 struct vmem *arena; in _kmem_unback()
[all …]
H A Dvm_pagequeue.h244 struct vmem *vmd_kernel_arena; /* (c) per-domain kva R/W arena. */
245 struct vmem *vmd_kernel_rwx_arena; /* (c) per-domain kva R/W/X arena. */
H A Dvm_extern.h39 struct vmem;
/freebsd/sys/arm64/intel/
H A Dstratix10-svc.c67 vmem_t *vmem; member
141 if (vmem_alloc(sc->vmem, size, in s10_svc_allocate_memory()
161 vmem_free(sc->vmem, mem->paddr, mem->size); in s10_svc_free_memory()
170 vmem_t *vmem; in s10_get_memory() local
177 vmem = vmem_create("stratix10 vmem", 0, 0, PAGE_SIZE, in s10_get_memory()
179 if (vmem == NULL) in s10_get_memory()
188 vmem_add(vmem, addr, size, 0); in s10_get_memory()
190 sc->vmem = vmem; in s10_get_memory()
/freebsd/sys/dev/xdma/
H A Dxdma_iommu.c73 vmem_free(xio->vmem, va, PAGE_SIZE); in xdma_iommu_remove_entry()
109 if (vmem_alloc(xio->vmem, size, in xdma_iommu_add_entry()
142 xio->vmem = vmem_create("xDMA vmem", 0, 0, PAGE_SIZE, in xdma_iommu_init()
144 if (xio->vmem == NULL) in xdma_iommu_init()
149 if (xdma_handle_mem_node(xio->vmem, mem_node) != 0) { in xdma_iommu_init()
150 vmem_destroy(xio->vmem); in xdma_iommu_init()
166 vmem_destroy(xio->vmem); in xdma_iommu_release()
H A Dxdma.c359 xdma_handle_mem_node(vmem_t *vmem, phandle_t memory) in xdma_handle_mem_node() argument
390 vmem_add(vmem, mem_start, mem_size, 0); in xdma_handle_mem_node()
402 vmem_t *vmem; in xdma_get_memory() local
418 vmem = vmem_create("xDMA vmem", 0, 0, PAGE_SIZE, in xdma_get_memory()
420 if (vmem == NULL) in xdma_get_memory()
424 if (xdma_handle_mem_node(vmem, mem_node) != 0) { in xdma_get_memory()
425 vmem_destroy(vmem); in xdma_get_memory()
429 return (vmem); in xdma_get_memory()
433 xdma_put_memory(vmem_t *vmem) in xdma_put_memory() argument
436 vmem_destroy(vmem); in xdma_put_memory()
[all …]
H A Dxdma.h84 vmem_t *vmem; /* Bounce memory. */ member
132 vmem_t *vmem; /* VA space */ member
138 vmem_t *vmem; member
237 void xdma_put_memory(vmem_t *vmem);
239 int xdma_handle_mem_node(vmem_t *vmem, phandle_t memory);
246 void xchan_set_memory(xdma_channel_t *xchan, vmem_t *vmem);
H A Dxdma_sg.c83 vmem_free(xchan->vmem, xr->buf.paddr, size); in xchan_bufs_free_reserved()
101 if (xchan->vmem == NULL) in xchan_bufs_alloc_reserved()
107 if (vmem_alloc(xchan->vmem, size, in xchan_bufs_alloc_reserved()
/freebsd/sys/powerpc/pseries/
H A Dplpar_iommu.c49 vmem_t *vmem; member
59 vmem_t *vmem; member
138 window->map->vmem = vmem_create("IOMMU mappings", PAGE_SIZE, in phyp_iommu_set_dma_tag()
180 error = vmem_xalloc(window->map->vmem, allocsize, in phyp_iommu_map()
239 vmem_xfree(window->map->vmem, pageround, roundedsize); in phyp_iommu_unmap()
/freebsd/sys/dev/irdma/
H A Dirdma_puda.c935 struct irdma_virt_mem *vmem; in irdma_puda_dele_rsrc() local
943 vmem = &vsi->ilq_mem; in irdma_puda_dele_rsrc()
950 vmem = &vsi->ieq_mem; in irdma_puda_dele_rsrc()
994 kfree(vmem->va); in irdma_puda_dele_rsrc()
1113 vmem = &vsi->ilq_mem; in irdma_puda_create_rsrc()
1116 vmem = &vsi->ieq_mem; in irdma_puda_create_rsrc()
1122 vmem->va = kzalloc(vmem->size, GFP_KERNEL); in irdma_puda_create_rsrc()
1123 if (!vmem->va) in irdma_puda_create_rsrc()
1126 rsrc = vmem->va; in irdma_puda_create_rsrc()
1130 vsi->ilq = vmem->va; in irdma_puda_create_rsrc()
[all …]
H A Dirdma_hmc.c539 struct irdma_virt_mem *vmem = in irdma_add_sd_table_entry() local
542 vmem->size = sizeof(struct irdma_hmc_pd_entry) * 512; in irdma_add_sd_table_entry()
543 vmem->va = kzalloc(vmem->size, GFP_KERNEL); in irdma_add_sd_table_entry()
544 if (!vmem->va) { in irdma_add_sd_table_entry()
548 sd_entry->u.pd_table.pd_entry = vmem->va; in irdma_add_sd_table_entry()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonDepMappings.td169 def V6_ld0Alias : InstAlias<"$Vd32 = vmem($Rt32)", (V6_vL32b_ai HvxVR:$Vd32, IntRegs:$Rt32, 0)>, Re…
176 def V6_ldnt0Alias : InstAlias<"$Vd32 = vmem($Rt32):nt", (V6_vL32b_nt_ai HvxVR:$Vd32, IntRegs:$Rt32,…
177 def V6_ldp0Alias : InstAlias<"if ($Pv4) $Vd32 = vmem($Rt32)", (V6_vL32b_pred_ai HvxVR:$Vd32, PredRe…
184 def V6_st0Alias : InstAlias<"vmem($Rt32) = $Vs32", (V6_vS32b_ai IntRegs:$Rt32, 0, HvxVR:$Vs32)>, Re…
185 def V6_stn0Alias : InstAlias<"vmem($Rt32) = $Os8.new", (V6_vS32b_new_ai IntRegs:$Rt32, 0, HvxVR:$Os…
186 def V6_stnnt0Alias : InstAlias<"vmem($Rt32):nt = $Os8.new", (V6_vS32b_nt_new_ai IntRegs:$Rt32, 0, H…
191 def V6_stnt0Alias : InstAlias<"vmem($Rt32):nt = $Vs32", (V6_vS32b_nt_ai IntRegs:$Rt32, 0, HvxVR:$Vs…
192 def V6_stp0Alias : InstAlias<"if ($Pv4) vmem($Rt32) = $Vs32", (V6_vS32b_pred_ai PredRegs:$Pv4, IntR…
194 def V6_stq0Alias : InstAlias<"if ($Qv4) vmem($Rt32) = $Vs32", (V6_vS32b_qpred_ai HvxQR:$Qv4, IntReg…
472 def V6_zld0Alias : InstAlias<"z = vmem($Rt32)", (V6_zLd_ai IntRegs:$Rt32, 0)>, Requires<[UseHVX]>;
[all …]
/freebsd/stand/i386/libi386/
H A Dvbe.c907 vbe_print_memory(unsigned vmem) in vbe_print_memory() argument
911 vmem /= 1024; in vbe_print_memory()
912 if (vmem >= 10240000) { in vbe_print_memory()
913 vmem /= 1048576; in vbe_print_memory()
915 } else if (vmem >= 10000) { in vbe_print_memory()
916 vmem /= 1024; in vbe_print_memory()
919 printf("Total memory: %u%cB\n", vmem, unit); in vbe_print_memory()
/freebsd/sys/dev/ice/
H A Dice_nvm.c1529 void *vmem; in __ice_write_sr_buf() local
1534 vmem = ice_calloc(hw, words, sizeof(u16)); in __ice_write_sr_buf()
1535 if (!vmem) in __ice_write_sr_buf()
1537 data_local = (_FORCE_ __le16 *)vmem; in __ice_write_sr_buf()
1547 ice_free(hw, vmem); in __ice_write_sr_buf()
1568 void *vmem; in ice_calc_sr_checksum() local
1574 vmem = ice_calloc(hw, ICE_SR_SECTOR_SIZE_IN_WORDS, sizeof(u16)); in ice_calc_sr_checksum()
1575 if (!vmem) in ice_calc_sr_checksum()
1577 data = (u16 *)vmem; in ice_calc_sr_checksum()
1621 ice_free(hw, vmem); in ice_calc_sr_checksum()
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dvmem.h31 typedef struct vmem { } vmem_t; struct
/freebsd/sys/amd64/sgx/
H A Dsgxvar.h80 struct vmem *vmem_epc;
/freebsd/sys/kern/
H A Dsubr_vmem.c134 struct vmem { struct
138 LIST_ENTRY(vmem) vm_alllist; argument
193 static LIST_HEAD(, vmem) vmem_list = LIST_HEAD_INITIALIZER(vmem_list);
236 static struct vmem kernel_arena_storage;
237 static struct vmem buffer_arena_storage;
238 static struct vmem transient_arena_storage;
246 static struct vmem memguard_arena_storage;
705 sizeof(struct vmem), NULL, NULL, NULL, NULL, in vmem_startup()
1710 DB_SHOW_COMMAND(vmem, vmem_summ) in DB_SHOW_COMMAND() argument
1755 DB_SHOW_ALL_COMMAND(vmem, vmem_summall) in DB_SHOW_ALL_COMMAND() argument
/freebsd/sys/dev/xilinx/
H A Dif_xae.c836 vmem_t *vmem; in setup_xdma() local
888 vmem = xdma_get_memory(dev); in setup_xdma()
889 if (vmem) { in setup_xdma()
890 xchan_set_memory(sc->xchan_tx, vmem); in setup_xdma()
891 xchan_set_memory(sc->xchan_rx, vmem); in setup_xdma()
H A Daxidma.c327 vmem_free(xchan->vmem, chan->mem_paddr, chan->mem_size); in axidma_desc_free()
354 if (vmem_alloc(xchan->vmem, chan->mem_size, M_FIRSTFIT | M_NOWAIT, in axidma_desc_alloc()
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dkmem.h53 typedef struct vmem vmem_t;
/freebsd/sys/sys/
H A Dvmem.h38 typedef struct vmem vmem_t;
/freebsd/sys/contrib/device-tree/src/mips/ingenic/
H A Drs90.dts24 vmem: video-memory@1f00000 { label
313 memory-region = <&vmem>;
/freebsd/share/man/man9/
H A DMakefile414 vmem.9 \
2357 MLINKS+=vmem.9 vmem_add.9 \
2358 vmem.9 vmem_alloc.9 \
2359 vmem.9 vmem_create.9 \
2360 vmem.9 vmem_destroy.9 \
2361 vmem.9 vmem_free.9 \
2362 vmem.9 vmem_xalloc.9 \
2363 vmem.9 vmem_xfree.9

12