Home
last modified time | relevance | path

Searched full:allocate (Results 1 – 25 of 4826) sorted by relevance

12345678910>>...194

/linux-6.15/drivers/md/dm-vdo/
Dmemory-alloc.h19 * 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 …]
Dmemory-alloc.c17 * 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-6.15/drivers/net/ethernet/intel/idpf/
Didpf_controlq_setup.c7 * 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-6.15/arch/mips/include/asm/octeon/
Dcvmx-bootmem.h29 * 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-6.15/drivers/firewire/
Dcore-iso.c277 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-6.15/lib/
Dgenalloc.c212 * @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 …]
/linux-6.15/tools/testing/memblock/tests/
Dalloc_helpers_api.c5 * 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 …]
Dalloc_nid_api.c51 * 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 …]
Dalloc_exact_nid_api.c23 * 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 …]
Dalloc_api.c21 * 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-6.15/drivers/hwtracing/coresight/
Dcoresight-trace-id.h16 * The system will allocate Ids on a demand basis, and allow them to be
47 * Read and optionally allocate a CoreSight trace ID and associate with a CPU.
55 * @cpu: The CPU index to allocate for.
85 * Fast read of the current value that does not allocate if no ID allocated
109 * Allocate a CoreSight trace ID for a system component.
113 * Used to allocate IDs for system trace sources such as STM.
120 * Allocate a CoreSight static trace ID for a system component.
122 * Used to allocate static IDs for system trace sources such as dummy source.
/linux-6.15/include/asm-generic/
Dpgalloc.h11 * __pte_alloc_one_kernel - allocate memory for a PTE-level kernel page table
32 * pte_alloc_one_kernel - allocate memory for a PTE-level kernel page table
55 * __pte_alloc_one - allocate memory for a PTE-level user page table
59 * Allocate memory for a page table and ptdesc and runs pagetable_pte_ctor().
84 * pte_alloc_one - allocate a page for PTE-level user page table
87 * Allocate memory for a page table and ptdesc and runs pagetable_pte_ctor().
120 * pmd_alloc_one - allocate memory for a PMD-level page table
123 * Allocate memory for a page table and ptdesc and runs pagetable_pmd_ctor().
183 * pud_alloc_one - allocate memory for a PUD-level page table
186 * Allocate memory for a page table using %GFP_PGTABLE_USER for user context
/linux-6.15/drivers/staging/media/atomisp/pci/
Dia_css_dvs.h158 /* @brief Allocate the DVS statistics memory on the ISP
172 /* @brief Allocate the DVS 2.0 statistics memory
186 /* @brief Allocate the DVS statistics memory on the host
200 /* @brief Allocate the DVS coefficients memory
214 /* @brief Allocate the DVS 2.0 statistics memory on the host
228 /* @brief Allocate the DVS 2.0 coefficients memory
242 /* @brief Allocate the DVS 2.0 6-axis config memory
256 /* @brief Allocate a dvs statistics map structure
265 * If the data_ptr is NULL, this function will allocate the host-side
269 * Note that this function does not allocate or map any ISP
[all …]
/linux-6.15/include/linux/
Dsbitmap.h69 * @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 …]
Ddma-heap.h18 * @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-6.15/drivers/staging/octeon/
Dethernet-mem.c18 * @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-6.15/fs/jfs/
Djfs_extent.c50 * 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-6.15/drivers/misc/lkdtm/
Dheap.c106 pr_info("Unable to allocate base memory.\n"); in lkdtm_READ_AFTER_FREE()
112 pr_info("Unable to allocate val memory.\n"); in lkdtm_READ_AFTER_FREE()
163 pr_err("FAIL: Unable to allocate kfence memory!\n"); in lkdtm_KFENCE_READ_AFTER_FREE()
198 pr_info("Unable to allocate free page\n"); in lkdtm_WRITE_BUDDY_AFTER_FREE()
221 pr_info("Unable to allocate free page\n"); in lkdtm_READ_BUDDY_AFTER_FREE()
227 pr_info("Unable to allocate val memory.\n"); in lkdtm_READ_BUDDY_AFTER_FREE()
258 pr_info("Unable to allocate 512 bytes the first time.\n"); in lkdtm_SLAB_INIT_ON_ALLOC()
267 pr_info("Unable to allocate 512 bytes the second time.\n"); in lkdtm_SLAB_INIT_ON_ALLOC()
290 pr_info("Unable to allocate first free page\n"); in lkdtm_BUDDY_INIT_ON_ALLOC()
299 pr_info("Unable to allocate second free page\n"); in lkdtm_BUDDY_INIT_ON_ALLOC()
[all …]
/linux-6.15/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega10_pptable.h132 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-6.15/drivers/firmware/efi/libstub/
Drelocate.c9 * 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()
/linux-6.15/kernel/irq/
Ddevres.c34 * devm_request_threaded_irq - allocate an interrupt line for a managed device
36 * @irq: Interrupt line to allocate
84 * devm_request_any_context_irq - allocate an interrupt line for a managed device
86 * @irq: Interrupt line to allocate
162 * __devm_irq_alloc_descs - Allocate and initialize a range of irq descriptors
164 * @dev: Device to allocate the descriptors for
165 * @irq: Allocate for specific irq number if irq >= 0
167 * @cnt: Number of consecutive irqs to allocate
205 * devm_irq_alloc_generic_chip - Allocate and initialize a generic chip
207 * @dev: Device to allocate the generic chip for
/linux-6.15/drivers/hid/intel-ish-hid/ishtp/
Dclient-buffers.c12 * ishtp_cl_alloc_rx_ring() - Allocate RX ring buffers
15 * Allocate and initialize RX ring buffers
50 * ishtp_cl_alloc_tx_ring() - Allocate TX ring buffers
53 * Allocate and initialize TX ring buffers
65 /* Allocate pool to free Tx bufs */ in ishtp_cl_alloc_tx_ring()
175 * ishtp_io_rb_init() - Allocate and init IO request block
178 * Allocate and initialize request block
197 * ishtp_io_rb_alloc_buf() - Allocate and init response buffer
201 * Allocate respose buffer
/linux-6.15/fs/btrfs/tests/
Dbtrfs-tests.c24 [TEST_ALLOC_FS_INFO] = "cannot allocate fs_info",
25 [TEST_ALLOC_ROOT] = "cannot allocate root",
27 [TEST_ALLOC_PATH] = "cannot allocate path",
28 [TEST_ALLOC_INODE] = "cannot allocate inode",
29 [TEST_ALLOC_BLOCK_GROUP] = "cannot allocate block group",
30 [TEST_ALLOC_EXTENT_MAP] = "cannot allocate extent map",
31 [TEST_ALLOC_CHUNK_MAP] = "cannot allocate chunk map",
32 [TEST_ALLOC_IO_CONTEXT] = "cannot allocate io context",
33 [TEST_ALLOC_TRANSACTION] = "cannot allocate transaction",
/linux-6.15/scripts/coccinelle/api/
Dkfree_mismatch.cocci169 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-6.15/Documentation/admin-guide/mm/
Dhugetlbpage.rst52 which a commitment to allocate from the pool has been made,
54 guarantee that an application will be able to allocate a
82 privileges can dynamically allocate more or free some persistent huge pages
98 The administrator can allocate persistent huge pages on the kernel boot
103 Some platforms support multiple huge page sizes. To allocate huge pages
127 allocate. If the number of huge pages of default size is implicitly
131 to allocate on specific nodes.
146 It will allocate 1 2M hugepage on node0 and 2 2M hugepages on node1.
149 Specify the number of threads that should be used to allocate hugepages
180 Thus, one can use the following command to dynamically allocate/deallocate
[all …]

12345678910>>...194