/linux/drivers/md/dm-vdo/ |
H A D | memory-alloc.h | 19 * Allocate storage based on element counts, sizes, and alignment. 31 * @count: The number of objects to allocate 33 * @extra: The number of additional bytes to allocate 49 * address space (minus one byte) and thus the system can never allocate that much in __vdo_do_allocation() 60 * Allocate one or more elements of the indicated type, logging an error if the allocation fails. 63 * @COUNT: The number of objects to allocate 64 * @TYPE: The type of objects to allocate. This type determines the alignment of the allocation. 74 * Allocate one object of an indicated type, followed by one or more elements of a second type, 77 * @TYPE1: The type of the primary object to allocate. This type determines the alignment of the 79 * @COUNT: The number of objects to allocate [all …]
|
H A D | memory-alloc.c | 17 * UDS and VDO keep track of which threads are allowed to allocate memory freely, and which threads 35 * If no flag is supplied, the thread is always allowed to allocate storage without complaint. 63 * We do not use kernel functions like the kvasprintf() method, which allocate memory indirectly 70 * We allocate very few large objects, and allocation/deallocation isn't done in a 159 * vmalloc can allocate any integral number of pages. 161 * kmalloc can allocate any number of bytes up to a configured limit, which defaults to 8 megabytes 169 * The advantages of kmalloc do not help out UDS or VDO, because we allocate all our memory up 181 * @size: How many bytes to allocate 189 * Allocate storage based on memory size and alignment, logging an error if the allocation fails. 235 * It is possible for kmalloc to fail to allocate memory because there is in vdo_allocate_memory() [all …]
|
/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-bootmem.h | 29 * Simple allocate only memory allocator. Used to allocate memory at 45 /* Allocate from end of block instead of beginning */ 149 * Allocate a block of memory from the free list that was 151 * address. This is an allocate-only algorithm, so 155 * @size: Size in bytes of block to allocate 156 * @address: Physical address to allocate memory at. If this memory is not 175 * Allocate a block of memory from the free list that was passed 180 * @size: Size in bytes of block to allocate 190 * Allocate a block of memory from a specific range of the free list 197 * @size: Size in bytes of block to allocate [all …]
|
/linux/drivers/net/ethernet/intel/idpf/ |
H A D | idpf_controlq_setup.c | 7 * idpf_ctlq_alloc_desc_ring - Allocate Control Queue (CQ) rings 24 * idpf_ctlq_alloc_bufs - Allocate Control Queue (CQ) buffers 28 * Allocate the buffer head for all control queues, and if it's a receive 29 * queue, allocate DMA buffers 36 /* Do not allocate DMA buffers for transmit queues */ in idpf_ctlq_alloc_bufs() 41 * allocate the mapped buffers for the event processing in idpf_ctlq_alloc_bufs() 48 /* allocate the mapped buffers (except for the last one) */ in idpf_ctlq_alloc_bufs() 143 * idpf_ctlq_alloc_ring_res - allocate memory for descriptor ring and bufs 154 /* allocate the ring memory */ in idpf_ctlq_alloc_ring_res() 159 /* allocate buffers in the rings */ in idpf_ctlq_alloc_ring_res()
|
/linux/drivers/firewire/ |
H A D | core-iso.c | 277 int bandwidth, bool allocate) in manage_bandwidth() argument 279 int try, new, old = allocate ? BANDWIDTH_AVAILABLE_INITIAL : 0; in manage_bandwidth() 288 new = allocate ? old - bandwidth : old + bandwidth; in manage_bandwidth() 300 return allocate ? -EAGAIN : bandwidth; in manage_bandwidth() 315 u32 channels_mask, u64 offset, bool allocate) in manage_channel() argument 321 old = all = allocate ? cpu_to_be32(~0) : 0; in manage_channel() 340 return allocate ? -EAGAIN : channel; in manage_channel() 380 * fw_iso_resource_manage() - Allocate or deallocate a channel and/or bandwidth 386 * @allocate: whether to allocate (true) or deallocate (false) 388 * In parameters: card, generation, channels_mask, bandwidth, allocate [all …]
|
/linux/lib/ |
H A D | genalloc.c | 212 * @pool: pool to allocate from 265 * gen_pool_alloc_algo_owner - allocate special memory from the pool 266 * @pool: pool to allocate from 267 * @size: number of bytes to allocate from the pool 272 * Allocate the requested number of bytes from the specified pool. 329 * gen_pool_dma_alloc - allocate special memory from the pool for DMA usage 330 * @pool: pool to allocate from 331 * @size: number of bytes to allocate from the pool 334 * Allocate the requested number of bytes from the specified pool. 348 * gen_pool_dma_alloc_algo - allocate special memory from the pool for DMA [all …]
|
H A D | bucket_locks.c | 7 /* Allocate an array of spinlocks to be accessed by a hash. Two arguments 8 * indicate the number of elements to allocate in the array. max_size 9 * gives the maximum number of elements to allocate. cpu_mult gives 10 * the number of locks per CPU to allocate. The size is rounded up
|
/linux/tools/testing/memblock/tests/ |
H A D | alloc_nid_api.c | 51 * A simple test that tries to allocate a memory region within min_addr and 62 * Expect to allocate a region that ends at max_addr. 100 * A simple test that tries to allocate a memory region within min_addr and 114 * Expect to allocate an aligned region that ends before max_addr. 153 * A simple test that tries to allocate a memory region, which spans over the 164 * Expect to allocate a region that starts at min_addr and ends at 203 * A test that tries to allocate a memory region, which can't fit into 216 * Expect to drop the lower limit and allocate a memory region which 252 * A test that tries to allocate a memory region, which can't fit into 296 * A test that tries to allocate a memory region within min_addr min_addr range, [all …]
|
H A D | alloc_helpers_api.c | 5 * A simple test that tries to allocate a memory region above a specified, 16 * Expect to allocate a cleared region at the minimal memory address. 47 * A test that tries to allocate a memory region above a certain address. 59 * Expect to allocate a cleared region at the closest aligned memory address. 91 * A test that tries to allocate a memory region above an address that is too 136 * A test that tries to allocate a memory region when there is no space 148 * requirement and to allocate next to the previously reserved region. The 183 * A test that tries to allocate a memory region with a minimal address below 219 * A test that tries to allocate a memory region above an address that is too 262 * A test that tries to allocate a memory region when there is no space [all …]
|
H A D | alloc_exact_nid_api.c | 23 * A test that tries to allocate a memory region in a specific NUMA node that 24 * has enough memory to allocate a region of the requested size. 25 * Expect to allocate an aligned region at the end of the requested node. 65 * A test that tries to allocate a memory region in a specific NUMA node that 76 * Expect to allocate an aligned region at the end of the requested node. The 121 * A test that tries to allocate a memory region that spans over the min_addr 137 * Expect to drop the lower limit and allocate a memory region that ends at 178 * A test that tries to allocate a memory region that spans over the min_addr 194 * Expect to drop the lower limit and allocate a memory region that ends at 235 * A test that tries to allocate memory within min_addr and max_add range when [all …]
|
H A D | alloc_api.c | 21 * A simple test that tries to allocate a small memory region. 22 * Expect to allocate an aligned region near the end of the available memory. 53 * A test that tries to allocate memory next to a reserved region that starts at 114 * A test that tries to allocate memory when there is enough space at the end 156 * A test that tries to allocate memory when there is not enough space at the 204 * A test that tries to allocate memory when there are two reserved regions with 211 * Expect to allocate a region before the one that starts at the lower address, 254 * A test that tries to allocate memory when there are two reserved regions with 308 * A test that tries to allocate memory when the memory is filled with reserved 347 * A test that tries to allocate memory when all memory is reserved. [all …]
|
/linux/include/linux/ |
H A D | sbitmap.h | 69 * @round_robin: Allocate bits in strict round-robin order. 157 * @depth: Number of bits to allocate. 161 * @node: Memory node to allocate on. 162 * @round_robin: If true, be stricter about allocation order; always allocate 203 * sbitmap_get() - Try to allocate a free bit from a &struct sbitmap. 204 * @sb: Bitmap to allocate from. 213 * sbitmap_get_shallow() - Try to allocate a free bit from a &struct sbitmap, 215 * @sb: Bitmap to allocate from. 216 * @shallow_depth: The maximum number of bits to allocate from a single word. 222 * class can only allocate half of the total bits in the bitmap, preventing it [all …]
|
H A D | dma-heap.h | 18 * @allocate: allocate dmabuf and return struct dma_buf ptr 20 * allocate returns dmabuf on success, ERR_PTR(-errno) on error. 23 struct dma_buf *(*allocate)(struct dma_heap *heap, member
|
/linux/include/asm-generic/ |
H A D | pgalloc.h | 11 * __pte_alloc_one_kernel - allocate memory for a PTE-level kernel page table 37 * pte_alloc_one_kernel - allocate memory for a PTE-level kernel page table 60 * __pte_alloc_one - allocate memory for a PTE-level user page table 64 * Allocate memory for a page table and ptdesc and runs pagetable_pte_ctor(). 89 * pte_alloc_one - allocate a page for PTE-level user page table 92 * Allocate memory for a page table and ptdesc and runs pagetable_pte_ctor(). 125 * pmd_alloc_one - allocate memory for a PMD-level page table 128 * Allocate memory for a page table and ptdesc and runs pagetable_pmd_ctor(). 188 * pud_alloc_one - allocate memory for a PUD-level page table 191 * Allocate memory for a page table using %GFP_PGTABLE_USER for user context
|
/linux/fs/jfs/ |
H A D | jfs_extent.c | 50 * FUNCTION: allocate an extent for a specified page range within a 105 * extent if we can allocate the blocks immediately in extAlloc() 116 /* allocate the disk blocks for the extent. initially, extBalloc() in extAlloc() 117 * will try to allocate disk blocks for the requested size (xlen). in extAlloc() 119 * try to allocate a smaller number of blocks (producing a smaller in extAlloc() 123 * and retry the allocation until the number of blocks to allocate in extAlloc() 132 /* Allocate blocks to quota. */ in extAlloc() 280 * FUNCTION: allocate disk blocks to form an extent. 282 * initially, we will try to allocate disk blocks for the 284 * contiguous free blocks not available), we'll try to allocate [all …]
|
/linux/drivers/staging/octeon/ |
H A D | ethernet-mem.c | 18 * @pool: Pool to allocate an skbuff for 20 * @elements: Number of buffers to allocate 43 * @pool: Pool to allocate an skbuff for 45 * @elements: Number of buffers to allocate 73 * @elements: Number of buffers to allocate 90 * We allocate an extra 256 bytes to allow for in cvm_oct_fill_hw_memory() 96 pr_warn("Unable to allocate %u bytes for FPA pool %d\n", in cvm_oct_fill_hw_memory()
|
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | vega10_pptable.h | 132 ATOM_Vega10_State states[]; /* Dynamically allocate entries. */ 166 ATOM_Vega10_GFXCLK_Dependency_Record entries[]; /* Dynamically allocate entries. */ 172 ATOM_Vega10_MCLK_Dependency_Record entries[]; /* Dynamically allocate entries. */ 178 ATOM_Vega10_CLK_Dependency_Record entries[]; /* Dynamically allocate entries. */ 184 ATOM_Vega10_CLK_Dependency_Record entries[]; /* Dynamically allocate entries. */ 190 ATOM_Vega10_CLK_Dependency_Record entries[]; /* Dynamically allocate entries. */ 196 ATOM_Vega10_CLK_Dependency_Record entries[]; /* Dynamically allocate entries. */ 202 ATOM_Vega10_CLK_Dependency_Record entries[]; /* Dynamically allocate entries. */ 216 ATOM_Vega10_MM_Dependency_Record entries[]; /* Dynamically allocate entries */ 228 ATOM_Vega10_PCIE_Record entries[]; /* Dynamically allocate entries. */ [all …]
|
/linux/drivers/firmware/efi/libstub/ |
H A D | relocate.c | 9 * efi_low_alloc_above() - allocate pages at or above given address 10 * @size: size of the memory area to allocate 16 * Allocate at the lowest possible address that is not below @min as 94 * @alloc_size: minimum size of memory to allocate, must be greater or 136 * to the preferred address. If that fails, allocate as low in efi_relocate_kernel() 144 * If preferred address allocation failed allocate as low as in efi_relocate_kernel() 152 efi_err("Failed to allocate usable memory for kernel.\n"); in efi_relocate_kernel()
|
H A D | alignedmem.c | 9 * efi_allocate_pages_aligned() - Allocate memory pages 10 * @size: minimum number of bytes to allocate 17 * @memory_type: the type of memory to allocate 19 * Allocate pages as EFI_LOADER_DATA. The allocated pages are aligned according
|
/linux/scripts/coccinelle/api/ |
H A D | kfree_mismatch.cocci | 169 msg = "WARNING kmalloc is used to allocate this memory at line %s" % (a[0].line) 177 msg = "WARNING kmalloc is used to allocate this memory at line %s" % (a[0].line) 185 msg = "WARNING vmalloc is used to allocate this memory at line %s" % (a[0].line) 193 msg = "WARNING vmalloc is used to allocate this memory at line %s" % (a[0].line) 201 msg = "WARNING kvmalloc is used to allocate this memory at line %s" % (a[0].line) 209 msg = "WARNING kvmalloc is used to allocate this memory at line %s" % (a[0].line) 218 msg = "WARNING kmalloc (line %s) && vmalloc (line %s) are used to allocate this memory" % (ka[0].li… 227 msg = "WARNING kmalloc (line %s) && vmalloc (line %s) are used to allocate this memory" % (ka[0].li…
|
/linux/drivers/soc/fsl/qe/ |
H A D | qe_common.c | 70 pr_err("Cannot allocate memory pool for CPM/QE muram"); in cpm_muram_init() 108 * @size: number of bytes to allocate 139 * cpm_muram_alloc - allocate the requested size worth of multi-user ram 140 * @size: number of bytes to allocate 200 * @dev: Device to allocate memory for 201 * @size: number of bytes to allocate 237 * @size: number of bytes to allocate 260 * @dev: Device to allocate memory for 262 * @size: number of bytes to allocate
|
/linux/drivers/misc/lkdtm/ |
H A D | usercopy.c | 85 pr_warn("Failed to allocate user memory\n"); in do_usercopy_stack() 145 pr_warn("Failed to allocate kernel memory\n"); in do_usercopy_slab_size() 153 pr_warn("Failed to allocate user memory\n"); in do_usercopy_slab_size() 211 pr_warn("Failed to allocate kernel cache\n"); in do_usercopy_slab_whitelist() 216 * Allocate a buffer with a whitelisted window in the buffer. in do_usercopy_slab_whitelist() 220 pr_warn("Failed to allocate buffer from whitelist cache\n"); in do_usercopy_slab_whitelist() 224 /* Allocate user memory we'll poke at. */ in do_usercopy_slab_whitelist() 229 pr_warn("Failed to allocate user memory\n"); in do_usercopy_slab_whitelist() 319 pr_warn("Failed to allocate user memory\n"); in lkdtm_USERCOPY_KERNEL() 358 pr_warn("Failed to allocate user memory\n"); in do_usercopy_page_span() [all …]
|
/linux/Documentation/admin-guide/ |
H A D | numastat.rst | 10 are able to allocate memory from nodes they prefer. If they succeed, numa_hit 25 numa_hit A process wanted to allocate memory from this node, 28 numa_miss A process wanted to allocate memory from another node, 31 numa_foreign A process wanted to allocate on this node, 40 interleave_hit Interleaving wanted to allocate from this node
|
/linux/drivers/scsi/bnx2fc/ |
H A D | bnx2fc_tgt.c | 94 printk(KERN_ERR PFX "Failed to allocate conn id for " in bnx2fc_offload_session() 99 /* Allocate session resources */ in bnx2fc_offload_session() 102 printk(KERN_ERR PFX "Failed to allocate resources\n"); in bnx2fc_offload_session() 658 * bnx2fc_alloc_session_resc - Allocate qp resources for the session 667 /* Allocate and map SQ */ in bnx2fc_alloc_session_resc() 675 printk(KERN_ERR PFX "unable to allocate SQ memory %d\n", in bnx2fc_alloc_session_resc() 680 /* Allocate and map CQ */ in bnx2fc_alloc_session_resc() 688 printk(KERN_ERR PFX "unable to allocate CQ memory %d\n", in bnx2fc_alloc_session_resc() 693 /* Allocate and map RQ and RQ PBL */ in bnx2fc_alloc_session_resc() 701 printk(KERN_ERR PFX "unable to allocate RQ memory %d\n", in bnx2fc_alloc_session_resc() [all …]
|
/linux/include/net/page_pool/ |
H A D | helpers.h | 15 * which allocate memory with or without page splitting depending on the 22 * 1. page_pool_alloc_pages(): allocate memory without page splitting when 27 * 2. page_pool_alloc_frag(): allocate memory with page splitting when driver 87 * page_pool_dev_alloc_pages() - allocate a page. 88 * @pool: pool from which to allocate 100 * page_pool_dev_alloc_frag() - allocate a page fragment. 101 * @pool: pool from which to allocate 164 * page_pool_dev_alloc() - allocate a page or a page fragment. 165 * @pool: pool from which to allocate 170 * depending on the requested size in order to allocate memor [all...] |