Home
last modified time | relevance | path

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

12345678910>>...96

/linux/arch/mips/include/asm/octeon/
H A 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/drivers/firewire/
H A Dcore-iso.c286 int bandwidth, bool allocate) in manage_bandwidth() argument
288 int try, new, old = allocate ? BANDWIDTH_AVAILABLE_INITIAL : 0; in manage_bandwidth()
297 new = allocate ? old - bandwidth : old + bandwidth; in manage_bandwidth()
309 return allocate ? -EAGAIN : bandwidth; in manage_bandwidth()
324 u32 channels_mask, u64 offset, bool allocate) in manage_channel() argument
330 old = all = allocate ? cpu_to_be32(~0) : 0; in manage_channel()
349 return allocate ? -EAGAIN : channel; in manage_channel()
389 * fw_iso_resource_manage() - Allocate or deallocate a channel and/or bandwidth
395 * @allocate: whether to allocate (true) or deallocate (false)
397 * In parameters: card, generation, channels_mask, bandwidth, allocate
[all …]
/linux/lib/
H A 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 …]
H A 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/tools/testing/memblock/tests/
H A 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 …]
H A 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
[all...]
H A 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 memor
[all...]
H A 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/fs/jfs/
H A 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/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A 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/drivers/hid/intel-ish-hid/ishtp/
H A 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
H A Ddma-if.c17 * ishtp_cl_alloc_dma_buf() - Allocate DMA RX and TX buffer
20 * Allocate RX and TX DMA buffer once during bus setup.
34 /* Allocate Tx buffer and init usage bitmap */ in ishtp_cl_alloc_dma_buf()
49 /* Allocate Rx buffer */ in ishtp_cl_alloc_dma_buf()
108 dev_err(dev->devc, "Fail to allocate Tx map\n"); in ishtp_cl_get_dma_send_buf()
159 dev_err(dev->devc, "Fail to allocate Tx map\n"); in ishtp_cl_release_dma_acked_mem()
/linux/scripts/coccinelle/api/
H A 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/kernel/irq/
H A Ddevres.c76 * devm_request_threaded_irq - allocate an interrupt line for a managed device with error logging
78 * @irq: Interrupt line to allocate
142 * devm_request_any_context_irq - allocate an interrupt line for a managed device with error logging
144 * @irq: Interrupt line to allocate
209 * __devm_irq_alloc_descs - Allocate and initialize a range of irq descriptors
211 * @dev: Device to allocate the descriptors for
212 * @irq: Allocate for specific irq number if irq >= 0
214 * @cnt: Number of consecutive irqs to allocate
252 * devm_irq_alloc_generic_chip - Allocate and initialize a generic chip
254 * @dev: Device to allocate the generic chip for
/linux/drivers/firmware/efi/libstub/
H A Dmem.c44 * Installing a configuration table might allocate memory, and in efi_get_memory_map()
68 * efi_allocate_pages() - Allocate memory pages
69 * @size: minimum number of bytes to allocate
76 * Allocate pages as EFI_LOADER_DATA. The allocated pages are aligned according
129 * efi_low_alloc_above() - allocate pages at or above given address
130 * @size: size of the memory area to allocate
136 * Allocate at the lowest possible address that is not below @min as
H A Dalignedmem.c9 * 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/drivers/soc/fsl/qe/
H A Dqe_common.c70 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/Documentation/admin-guide/
H A 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/drivers/misc/lkdtm/
H A 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/drivers/scsi/bnx2fc/
H A 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()
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/Documentation/livepatch/
H A 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/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_wq.c94 * queue_alloc_page - allocate page for Queue
112 dev_err(&pdev->dev, "Failed to allocate dma for wqs page\n"); in queue_alloc_page()
131 * wqs_allocate_page - allocate page for WQ set
162 * cmdq_allocate_page - allocate page for cmdq
297 * hinic_wqs_alloc - allocate Work Queues set
299 * @max_wqs: maximum wqs to allocate
321 "Failed to allocate mem for page addresses\n"); in hinic_wqs_alloc()
371 * alloc_wqes_shadow - allocate WQE shadows for WQ
372 * @wq: WQ to allocate shadows for
439 * @wq: WQ to allocate pages for
[all …]
/linux/sound/
H A Dsound_core.c91 * Secondly we need to allocate the dsp, dsp16 and audio devices as
235 * Allocate the controlling structure and add it to the sound driver
337 * @unit: Unit number to allocate
340 * Allocate a special sound device by minor number from the sound
424 * @dev: Unit number to allocate
426 * Allocate a mixer device. Unit is the number of the mixer requested.
449 * @dev: Unit number to allocate
451 * Allocate a DSP device. Unit is the number of the DSP requested.
455 * and will always allocate them as a matching pair - eg dsp3/audio3
471 * @unit: unit number to allocate
[all …]
/linux/include/linux/
H A Dslab.h555 * @flags: the type of memory to allocate.
845 * kmem_cache_alloc - Allocate an object
846 * @cachep: The cache to allocate from.
849 * Allocate an object from this cache.
1000 * kmalloc - allocate kernel memory
1022 * Allocate normal kernel ram. May sleep.
1062 * kmalloc_nolock - Allocate an object of given size from any context.
1063 * @size: size to allocate
1078 * __alloc_objs - Allocate objects of a given type using
1079 * @KMALLOC: which size-based kmalloc wrapper to allocate with.
[all …]
/linux/Documentation/core-api/
H A 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
135 The most straightforward way to allocate memory is to use a function
138 allocate memory for an array, there are kmalloc_array() and kcalloc()
163 try to allocate memory with `kmalloc` and if the allocation fails it
169 If you need to allocate many identical objects you can use the slab
174 wrappers can allocate memory from that cache.

12345678910>>...96