Home
last modified time | relevance | path

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

12

/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/vm/
H A Dmemguard.h36 struct vmem;
40 void memguard_init(struct vmem *);
H A Dvm_kern.c258 vmem_t *vmem; in kmem_alloc_attr_domain() local
268 vmem = vm_dom[domain].vmd_kernel_arena; in kmem_alloc_attr_domain()
269 if (vmem_alloc(vmem, asize, M_BESTFIT | flags, &addr)) in kmem_alloc_attr_domain()
281 vmem_free(vmem, addr, asize); in kmem_alloc_attr_domain()
349 vmem_t *vmem; in kmem_alloc_contig_domain() local
359 vmem = vm_dom[domain].vmd_kernel_arena; in kmem_alloc_contig_domain()
360 if (vmem_alloc(vmem, asize, flags | M_BESTFIT, &addr)) in kmem_alloc_contig_domain()
370 vmem_free(vmem, addr, asize); in kmem_alloc_contig_domain()
634 static struct vmem *
638 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. */
246 struct vmem *vmd_kernel_nofree_arena; /* (c) per-domain kva NOFREE arena. */
H A Dvm_extern.h39 struct vmem;
/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()
1105 struct irdma_virt_mem *vmem; in irdma_puda_create_rsrc() local
1113 vmem = &vsi->ilq_mem; in irdma_puda_create_rsrc()
1116 vmem = &vsi->ieq_mem; in irdma_puda_create_rsrc()
1121 vmem->size = pudasize + sqwridsize + rqwridsize; 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()
[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…
170 def V6_ldcnp0Alias : InstAlias<"if (!$Pv4) $Vd32.cur = vmem($Rt32)", (V6_vL32b_cur_npred_pi HvxVR:$…
171 def V6_ldcnpnt0Alias : InstAlias<"if (!$Pv4) $Vd32.cur = vmem($Rt32):nt", (V6_vL32b_nt_cur_npred_pi…
172 def V6_ldcp0Alias : InstAlias<"if ($Pv4) $Vd32.cur = vmem($Rt32)", (V6_vL32b_cur_pred_pi HvxVR:$Vd3…
173 def V6_ldcpnt0Alias : InstAlias<"if ($Pv4) $Vd32.cur = vmem($Rt32):nt", (V6_vL32b_nt_cur_pred_pi Hv…
174 def V6_ldnp0Alias : InstAlias<"if (!$Pv4) $Vd32 = vmem($Rt32)", (V6_vL32b_npred_pi HvxVR:$Vd32, Int…
175 def V6_ldnpnt0Alias : InstAlias<"if (!$Pv4) $Vd32 = vmem($Rt32):nt", (V6_vL32b_nt_npred_pi HvxVR:$V…
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…
178 def V6_ldpnt0Alias : InstAlias<"if ($Pv4) $Vd32 = vmem($Rt32):nt", (V6_vL32b_nt_pred_ai HvxVR:$Vd32…
[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.c1539 void *vmem; in __ice_write_sr_buf()
1544 vmem = ice_calloc(hw, words, sizeof(u16)); in __ice_write_sr_buf()
1545 if (!vmem) in __ice_write_sr_buf()
1547 data_local = (_FORCE_ __le16 *)vmem; in __ice_write_sr_buf()
1557 ice_free(hw, vmem);
1578 void *vmem; in ice_calc_sr_checksum()
1584 vmem = ice_calloc(hw, ICE_SR_SECTOR_SIZE_IN_WORDS, sizeof(u16)); in ice_calc_sr_checksum()
1585 if (!vmem) in ice_calc_sr_checksum()
1587 data = (u16 *)vmem; in ice_calc_sr_checksum()
1631 ice_free(hw, vmem); in ice_update_sr_checksum()
1527 void *vmem; __ice_write_sr_buf() local
1566 void *vmem; ice_calc_sr_checksum() local
[all...]
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dvmem.h31 typedef struct vmem { } vmem_t; struct
/freebsd/sys/kern/
H A Dsubr_vmem.c59 #include <sys/vmem.h>
98 * Data structures private to vmem.
100 MALLOC_DEFINE(M_VMEM, "vmem", "vmem internal structures");
133 /* vmem arena */
134 struct vmem { struct
138 LIST_ENTRY(vmem) vm_alllist; argument
184 &enable_vmem_check, 0, "Enable vmem check"); argument
193 static LIST_HEAD(, vmem) vmem_list = LIST_HEAD_INITIALIZER(vmem_list);
236 static struct vmem kernel_arena_storag
139 vm_hash0vmem global() argument
140 vm_freelistvmem global() argument
141 vm_seglistvmem global() argument
142 vm_hashlistvmem global() argument
143 vm_hashsizevmem global() argument
146 vm_qcache_maxvmem global() argument
147 vm_quantum_maskvmem global() argument
148 vm_import_quantumvmem global() argument
152 vm_quantum_shiftvmem global() argument
155 vm_inusevmem global() argument
156 vm_sizevmem global() argument
157 vm_limitvmem global() argument
158 vm_cursorvmem global() argument
161 vm_importfnvmem global() argument
162 vm_releasefnvmem global() argument
166 vm_reclaimfnvmem global() argument
1710 DB_SHOW_COMMAND(vmem,vmem_summ) DB_SHOW_COMMAND() argument
1755 DB_SHOW_ALL_COMMAND(vmem,vmem_summall) DB_SHOW_ALL_COMMAND() argument
[all...]
/freebsd/sys/amd64/sgx/
H A Dsgxvar.h80 struct vmem *vmem_epc;
/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.h54 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/sys/dev/ixl/
H A Di40e_nvm.c698 struct i40e_virt_mem vmem; in i40e_calc_nvm_checksum() local
707 ret_code = i40e_allocate_virt_mem(hw, &vmem, in i40e_calc_nvm_checksum()
711 data = (u16 *)vmem.va; in i40e_calc_nvm_checksum()
765 i40e_free_virt_mem(hw, &vmem); in i40e_calc_nvm_checksum()
/freebsd/sys/contrib/openzfs/include/os/linux/
H A DMakefile.am107 %D%/spl/sys/vmem.h \

12