Home
last modified time | relevance | path

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

12345678910>>...193

/Linux-v6.6/drivers/firewire/
Dcore-iso.c205 int bandwidth, bool allocate) in manage_bandwidth() argument
207 int try, new, old = allocate ? BANDWIDTH_AVAILABLE_INITIAL : 0; in manage_bandwidth()
216 new = allocate ? old - bandwidth : old + bandwidth; in manage_bandwidth()
228 return allocate ? -EAGAIN : bandwidth; in manage_bandwidth()
243 u32 channels_mask, u64 offset, bool allocate) in manage_channel() argument
249 old = all = allocate ? cpu_to_be32(~0) : 0; in manage_channel()
268 return allocate ? -EAGAIN : channel; in manage_channel()
308 * fw_iso_resource_manage() - Allocate or deallocate a channel and/or bandwidth
314 * @allocate: whether to allocate (true) or deallocate (false)
316 * In parameters: card, generation, channels_mask, bandwidth, allocate
[all …]
/Linux-v6.6/include/asm-generic/
Dpgalloc.h11 * __pte_alloc_one_kernel - allocate memory for a PTE-level kernel page table
31 * pte_alloc_one_kernel - allocate memory for a PTE-level kernel page table
53 * __pte_alloc_one - allocate memory for a PTE-level user page table
57 * Allocate memory for a page table and ptdesc and runs pagetable_pte_ctor().
81 * pte_alloc_one - allocate a page for PTE-level user page table
84 * Allocate memory for a page table and ptdesc and runs pagetable_pte_ctor().
117 * pmd_alloc_one - allocate memory for a PMD-level page table
120 * Allocate memory for a page table and ptdesc and runs pagetable_pmd_ctor().
177 * pud_alloc_one - allocate memory for a PUD-level page table
180 * Allocate memory for a page table using %GFP_PGTABLE_USER for user context
/Linux-v6.6/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-v6.6/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-v6.6/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-v6.6/fs/ntfs/
Dmalloc.h16 * __ntfs_malloc - allocate memory in multiples of pages
17 * @size: number of bytes to allocate
42 * ntfs_malloc_nofs - allocate memory in multiples of pages
43 * @size: number of bytes to allocate
56 * ntfs_malloc_nofs_nofail - allocate memory in multiples of pages
57 * @size: number of bytes to allocate
/Linux-v6.6/include/linux/
Dsbitmap.h64 * @round_robin: Allocate bits in strict round-robin order.
152 * @depth: Number of bits to allocate.
156 * @node: Memory node to allocate on.
157 * @round_robin: If true, be stricter about allocation order; always allocate
198 * sbitmap_get() - Try to allocate a free bit from a &struct sbitmap.
199 * @sb: Bitmap to allocate from.
208 * sbitmap_get_shallow() - Try to allocate a free bit from a &struct sbitmap,
210 * @sb: Bitmap to allocate from.
211 * @shallow_depth: The maximum number of bits to allocate from a single word.
217 * class can only allocate half of the total bits in the bitmap, preventing it
[all …]
Ddma-heap.h19 * @allocate: allocate dmabuf and return struct dma_buf ptr
21 * allocate returns dmabuf on success, ERR_PTR(-errno) on error.
24 struct dma_buf *(*allocate)(struct dma_heap *heap, member
/Linux-v6.6/drivers/staging/media/atomisp/pci/
Dia_css_dvs.h163 /* @brief Allocate the DVS statistics memory on the ISP
177 /* @brief Allocate the DVS 2.0 statistics memory
191 /* @brief Allocate the DVS statistics memory on the host
205 /* @brief Allocate the DVS coefficients memory
219 /* @brief Allocate the DVS 2.0 statistics memory on the host
233 /* @brief Allocate the DVS 2.0 coefficients memory
247 /* @brief Allocate the DVS 2.0 6-axis config memory
261 /* @brief Allocate a dvs statistics map structure
270 * If the data_ptr is NULL, this function will allocate the host-side
274 * Note that this function does not allocate or map any ISP
[all …]
/Linux-v6.6/drivers/misc/lkdtm/
Dheap.c105 pr_info("Unable to allocate base memory.\n"); in lkdtm_READ_AFTER_FREE()
111 pr_info("Unable to allocate val memory.\n"); in lkdtm_READ_AFTER_FREE()
139 pr_info("Unable to allocate free page\n"); in lkdtm_WRITE_BUDDY_AFTER_FREE()
162 pr_info("Unable to allocate free page\n"); in lkdtm_READ_BUDDY_AFTER_FREE()
168 pr_info("Unable to allocate val memory.\n"); in lkdtm_READ_BUDDY_AFTER_FREE()
199 pr_info("Unable to allocate 512 bytes the first time.\n"); in lkdtm_SLAB_INIT_ON_ALLOC()
208 pr_info("Unable to allocate 512 bytes the second time.\n"); in lkdtm_SLAB_INIT_ON_ALLOC()
231 pr_info("Unable to allocate first free page\n"); in lkdtm_BUDDY_INIT_ON_ALLOC()
240 pr_info("Unable to allocate second free page\n"); in lkdtm_BUDDY_INIT_ON_ALLOC()
263 pr_info("Unable to allocate double_free_cache memory.\n"); in lkdtm_SLAB_FREE_DOUBLE()
[all …]
Dusercopy.c85 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-v6.6/kernel/irq/
Ddevres.c33 * devm_request_threaded_irq - allocate an interrupt line for a managed device
35 * @irq: Interrupt line to allocate
83 * devm_request_any_context_irq - allocate an interrupt line for a managed device
85 * @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-v6.6/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-v6.6/fs/jfs/
Djfs_extent.c50 * FUNCTION: allocate an extent for a specified page range within a
100 * extent if we can allocate the blocks immediately in extAlloc()
111 /* allocate the disk blocks for the extent. initially, extBalloc() in extAlloc()
112 * will try to allocate disk blocks for the requested size (xlen). in extAlloc()
114 * try to allocate a smaller number of blocks (producing a smaller in extAlloc()
118 * and retry the allocation until the number of blocks to allocate in extAlloc()
127 /* Allocate blocks to quota. */ in extAlloc()
270 * FUNCTION: allocate disk blocks to form an extent.
272 * initially, we will try to allocate disk blocks for the
274 * contiguous free blocks not available), we'll try to allocate
[all …]
/Linux-v6.6/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega10_pptable.h132 ATOM_Vega10_State states[1]; /* Dynamically allocate entries. */
166 ATOM_Vega10_GFXCLK_Dependency_Record entries[]; /* Dynamically allocate entries. */
172 ATOM_Vega10_MCLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */
178 ATOM_Vega10_CLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */
184 ATOM_Vega10_CLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */
190 ATOM_Vega10_CLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */
196 ATOM_Vega10_CLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */
202 ATOM_Vega10_CLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */
216 ATOM_Vega10_MM_Dependency_Record entries[1]; /* Dynamically allocate entries */
228 ATOM_Vega10_PCIE_Record entries[1]; /* Dynamically allocate entries. */
[all …]
/Linux-v6.6/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
93 * @alloc_size: minimum size of memory to allocate, must be greater or
135 * to the preferred address. If that fails, allocate as low in efi_relocate_kernel()
143 * If preferred address allocation failed allocate as low as in efi_relocate_kernel()
151 efi_err("Failed to allocate usable memory for kernel.\n"); in efi_relocate_kernel()
/Linux-v6.6/drivers/hwtracing/coresight/
Dcoresight-trace-id.h16 * The system will allocate Ids on a demand basis, and allow them to be
64 /* Allocate and release IDs for a single default trace ID map */
67 * Read and optionally allocate a CoreSight trace ID and associate with a CPU.
75 * @cpu: The CPU index to allocate for.
97 * Fast read of the current value that does not allocate if no ID allocated
115 * Allocate a CoreSight trace ID for a system component.
119 * Used to allocate IDs for system trace sources such as STM.
/Linux-v6.6/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-v6.6/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-v6.6/fs/xfs/
Dxfs_rtalloc.c145 xfs_rtblock_t start, /* start block to allocate */ in xfs_rtallocate_range()
146 xfs_extlen_t len, /* length to allocate */ in xfs_rtallocate_range()
215 * Attempt to allocate an extent minlen<=len<=maxlen starting from
225 xfs_extlen_t minlen, /* minimum length to allocate */ in xfs_rtallocate_extent_block()
226 xfs_extlen_t maxlen, /* maximum length to allocate */ in xfs_rtallocate_extent_block()
263 * i for maxlen is all free, allocate and return that. in xfs_rtallocate_extent_block()
316 * Allocate besti for bestlen & return that. in xfs_rtallocate_extent_block()
335 * Allocate an extent of length minlen<=len<=maxlen, starting at block
344 xfs_rtblock_t bno, /* starting block number to allocate */ in xfs_rtallocate_extent_exact()
345 xfs_extlen_t minlen, /* minimum length to allocate */ in xfs_rtallocate_extent_exact()
[all …]
/Linux-v6.6/Documentation/admin-guide/
Dnumastat.rst10 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-v6.6/drivers/crypto/aspeed/
Daspeed-hace.c186 /* Allocate DMA buffer for hash engine input used */ in aspeed_hace_probe()
193 dev_err(&pdev->dev, "Failed to allocate dma buffer\n"); in aspeed_hace_probe()
198 /* Allocate DMA buffer for crypto engine context used */ in aspeed_hace_probe()
205 dev_err(&pdev->dev, "Failed to allocate cipher ctx dma\n"); in aspeed_hace_probe()
210 /* Allocate DMA buffer for crypto engine input used */ in aspeed_hace_probe()
217 dev_err(&pdev->dev, "Failed to allocate cipher addr dma\n"); in aspeed_hace_probe()
222 /* Allocate DMA buffer for crypto engine output used */ in aspeed_hace_probe()
230 dev_err(&pdev->dev, "Failed to allocate dst_sg dma\n"); in aspeed_hace_probe()

12345678910>>...193