Home
last modified time | relevance | path

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

12345678910>>...203

/linux-5.10/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-5.10/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-5.10/include/linux/
Dsbitmap.h133 * @round_robin: Allocate bits in strict round-robin order.
147 * @depth: Number of bits to allocate.
151 * @node: Memory node to allocate on.
179 * sbitmap_get() - Try to allocate a free bit from a &struct sbitmap.
180 * @sb: Bitmap to allocate from.
182 * @round_robin: If true, be stricter about allocation order; always allocate
193 * sbitmap_get_shallow() - Try to allocate a free bit from a &struct sbitmap,
195 * @sb: Bitmap to allocate from.
197 * @shallow_depth: The maximum number of bits to allocate from a single word.
203 * class can only allocate half of the total bits in the bitmap, preventing it
[all …]
Ddma-heap.h19 * @allocate: allocate dmabuf and return fd
21 * allocate returns dmabuf fd on success, -errno on error.
24 int (*allocate)(struct dma_heap *heap, member
/linux-5.10/lib/
Dgenalloc.c210 * @pool: pool to allocate from
263 * gen_pool_alloc_algo_owner - allocate special memory from the pool
264 * @pool: pool to allocate from
265 * @size: number of bytes to allocate from the pool
270 * Allocate the requested number of bytes from the specified pool.
327 * gen_pool_dma_alloc - allocate special memory from the pool for DMA usage
328 * @pool: pool to allocate from
329 * @size: number of bytes to allocate from the pool
332 * Allocate the requested number of bytes from the specified pool.
346 * gen_pool_dma_alloc_algo - allocate special memory from the pool for DMA
[all …]
Dbucket_locks.c7 /* 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-5.10/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-5.10/fs/jfs/
Djfs_extent.c53 * FUNCTION: allocate an extent for a specified page range within a
103 * extent if we can allocate the blocks immediately in extAlloc()
114 /* allocate the disk blocks for the extent. initially, extBalloc() in extAlloc()
115 * will try to allocate disk blocks for the requested size (xlen). in extAlloc()
117 * try to allocate a smaller number of blocks (producing a smaller in extAlloc()
121 * and retry the allocation until the number of blocks to allocate in extAlloc()
130 /* Allocate blocks to quota. */ in extAlloc()
238 * try to allocate a new set of blocks large enough for the in extRealloc()
239 * request. in satisfying a request, dbReAlloc() may allocate in extRealloc()
240 * less than what was request but will always allocate enough in extRealloc()
[all …]
/linux-5.10/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-5.10/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-5.10/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-5.10/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
102 * @alloc_size: minimum size of memory to allocate, must be greater or
144 * to the preferred address. If that fails, allocate as low in efi_relocate_kernel()
152 * If preferred address allocation failed allocate as low as in efi_relocate_kernel()
160 efi_err("Failed to allocate usable memory for kernel.\n"); in efi_relocate_kernel()
/linux-5.10/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[1]; /* 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-5.10/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-5.10/sound/core/
Dmemalloc.c26 /* allocate the coherent DMA pages */
57 * snd_malloc_dev_iram - allocate memory from on-chip internal ram
59 * @size: number of bytes to allocate from the iram
113 * snd_dma_alloc_pages - allocate the buffer area according to the given type
116 * @size: the buffer size to allocate
185 * snd_dma_alloc_pages_fallback - allocate the buffer area according to the given type with fallback
188 * @size: the buffer size to allocate
193 * tries to allocate again. The size actually allocated is stored in
/linux-5.10/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-5.10/drivers/misc/lkdtm/
Dheap.c70 pr_info("Unable to allocate base memory.\n"); in lkdtm_READ_AFTER_FREE()
76 pr_info("Unable to allocate val memory.\n"); in lkdtm_READ_AFTER_FREE()
103 pr_info("Unable to allocate free page\n"); in lkdtm_WRITE_BUDDY_AFTER_FREE()
126 pr_info("Unable to allocate free page\n"); in lkdtm_READ_BUDDY_AFTER_FREE()
132 pr_info("Unable to allocate val memory.\n"); in lkdtm_READ_BUDDY_AFTER_FREE()
161 pr_info("Unable to allocate double_free_cache memory.\n"); in lkdtm_SLAB_FREE_DOUBLE()
178 pr_info("Unable to allocate a_cache memory.\n"); in lkdtm_SLAB_FREE_CROSS()
Dusercopy.c73 pr_warn("Failed to allocate user memory\n"); in do_usercopy_stack()
133 pr_warn("Failed to allocate kernel memory\n"); in do_usercopy_heap_size()
141 pr_warn("Failed to allocate user memory\n"); in do_usercopy_heap_size()
197 pr_warn("Failed to allocate kernel cache\n"); in do_usercopy_heap_whitelist()
202 * Allocate a buffer with a whitelisted window in the buffer. in do_usercopy_heap_whitelist()
206 pr_warn("Failed to allocate buffer from whitelist cache\n"); in do_usercopy_heap_whitelist()
210 /* Allocate user memory we'll poke at. */ in do_usercopy_heap_whitelist()
215 pr_warn("Failed to allocate user memory\n"); in do_usercopy_heap_whitelist()
303 pr_warn("Failed to allocate user memory\n"); in lkdtm_USERCOPY_KERNEL()
/linux-5.10/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-5.10/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-5.10/include/asm-generic/
Dpgalloc.h11 * __pte_alloc_one_kernel - allocate a page for PTE-level kernel page table
26 * pte_alloc_one_kernel - allocate a page for PTE-level kernel page table
48 * __pte_alloc_one - allocate a page for PTE-level user page table
76 * pte_alloc_one - allocate a page for PTE-level user page table
110 * pmd_alloc_one - allocate a page for PMD-level page table
152 * pud_alloc_one - allocate a page for PUD-level page table
/linux-5.10/drivers/scsi/bnx2fc/
Dbnx2fc_tgt.c94 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()
660 * bnx2fc_alloc_session_resc - Allocate qp resources for the session
669 /* Allocate and map SQ */ in bnx2fc_alloc_session_resc()
677 printk(KERN_ERR PFX "unable to allocate SQ memory %d\n", in bnx2fc_alloc_session_resc()
682 /* Allocate and map CQ */ in bnx2fc_alloc_session_resc()
690 printk(KERN_ERR PFX "unable to allocate CQ memory %d\n", in bnx2fc_alloc_session_resc()
695 /* Allocate and map RQ and RQ PBL */ in bnx2fc_alloc_session_resc()
703 printk(KERN_ERR PFX "unable to allocate RQ memory %d\n", in bnx2fc_alloc_session_resc()
[all …]
/linux-5.10/Documentation/livepatch/
Dshadow-vars.rst9 to allocate/add and remove/free shadow variables to/from their parents.
51 * klp_shadow_alloc() - allocate and add a new shadow variable
60 - allocate a new shadow variable
73 - allocate a new shadow variable
120 allocate a shadow copy of the ps_lock pointer, then initialize it::
166 Sometimes it may not be convenient or possible to allocate shadow
172 For commit 1d147bfa6429, a good spot to allocate a shadow spinlock is
/linux-5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_wq.c93 * queue_alloc_page - allocate page for Queue
111 dev_err(&pdev->dev, "Failed to allocate dma for wqs page\n"); in queue_alloc_page()
130 * wqs_allocate_page - allocate page for WQ set
161 * cmdq_allocate_page - allocate page for cmdq
298 * hinic_wqs_alloc - allocate Work Queues set
300 * @max_wqs: maximum wqs to allocate
322 "Failed to allocate mem for page addresses\n"); in hinic_wqs_alloc()
372 * alloc_wqes_shadow - allocate WQE shadows for WQ
373 * @wq: WQ to allocate shadows for
441 * @wq: WQ to allocate pages for
[all …]
/linux-5.10/Documentation/core-api/
Dmemory-allocation.rst8 allocate small chunks using `kmalloc` or `kmem_cache_alloc` families,
19 makes the question "How should I allocate memory?" not that easy to
134 The most straightforward way to allocate memory is to use a function
137 allocate memory for an array, there are kmalloc_array() and kcalloc()
156 try to allocate memory with `kmalloc` and if the allocation fails it
162 If you need to allocate many identical objects you can use the slab
167 wrappers can allocate memory from that cache.

12345678910>>...203