/Linux-v5.15/drivers/firewire/ |
D | core-iso.c | 205 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-v5.15/arch/mips/include/asm/octeon/ |
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-v5.15/lib/ |
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 …]
|
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-v5.15/include/linux/ |
D | sbitmap.h | 60 * @round_robin: Allocate bits in strict round-robin order. 142 * @depth: Number of bits to allocate. 146 * @node: Memory node to allocate on. 147 * @round_robin: If true, be stricter about allocation order; always allocate 180 * sbitmap_get() - Try to allocate a free bit from a &struct sbitmap. 181 * @sb: Bitmap to allocate from. 190 * sbitmap_get_shallow() - Try to allocate a free bit from a &struct sbitmap, 192 * @sb: Bitmap to allocate from. 193 * @shallow_depth: The maximum number of bits to allocate from a single word. 199 * class can only allocate half of the total bits in the bitmap, preventing it [all …]
|
D | dma-heap.h | 19 * @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-v5.15/fs/ntfs/ |
D | malloc.h | 16 * __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-v5.15/drivers/misc/lkdtm/ |
D | heap.c | 97 pr_info("Unable to allocate base memory.\n"); in lkdtm_READ_AFTER_FREE() 103 pr_info("Unable to allocate val memory.\n"); in lkdtm_READ_AFTER_FREE() 131 pr_info("Unable to allocate free page\n"); in lkdtm_WRITE_BUDDY_AFTER_FREE() 154 pr_info("Unable to allocate free page\n"); in lkdtm_READ_BUDDY_AFTER_FREE() 160 pr_info("Unable to allocate val memory.\n"); in lkdtm_READ_BUDDY_AFTER_FREE() 191 pr_info("Unable to allocate 512 bytes the first time.\n"); in lkdtm_SLAB_INIT_ON_ALLOC() 200 pr_info("Unable to allocate 512 bytes the second time.\n"); in lkdtm_SLAB_INIT_ON_ALLOC() 223 pr_info("Unable to allocate first free page\n"); in lkdtm_BUDDY_INIT_ON_ALLOC() 232 pr_info("Unable to allocate second free page\n"); in lkdtm_BUDDY_INIT_ON_ALLOC() 255 pr_info("Unable to allocate double_free_cache memory.\n"); in lkdtm_SLAB_FREE_DOUBLE() [all …]
|
D | usercopy.c | 73 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() 199 pr_warn("Failed to allocate kernel cache\n"); in do_usercopy_heap_whitelist() 204 * Allocate a buffer with a whitelisted window in the buffer. in do_usercopy_heap_whitelist() 208 pr_warn("Failed to allocate buffer from whitelist cache\n"); in do_usercopy_heap_whitelist() 212 /* Allocate user memory we'll poke at. */ in do_usercopy_heap_whitelist() 217 pr_warn("Failed to allocate user memory\n"); in do_usercopy_heap_whitelist() 307 pr_warn("Failed to allocate user memory\n"); in lkdtm_USERCOPY_KERNEL()
|
/Linux-v5.15/fs/jfs/ |
D | jfs_extent.c | 53 * 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-v5.15/drivers/staging/media/atomisp/pci/ |
D | ia_css_dvs.h | 163 /* @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-v5.15/kernel/irq/ |
D | devres.c | 33 * 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-v5.15/drivers/staging/octeon/ |
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-v5.15/drivers/firmware/efi/libstub/ |
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 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-v5.15/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | vega10_pptable.h | 132 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-v5.15/drivers/hid/intel-ish-hid/ishtp/ |
D | client-buffers.c | 12 * 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-v5.15/scripts/coccinelle/api/ |
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-v5.15/fs/xfs/ |
D | xfs_rtalloc.c | 145 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-v5.15/Documentation/admin-guide/ |
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-v5.15/drivers/net/wireless/intel/iwlwifi/pcie/ |
D | ctxt-info-gen3.c | 107 /* Allocate prph scratch */ in iwl_pcie_ctxt_info_gen3_init() 132 /* allocate ucode sections in dram and set addresses */ in iwl_pcie_ctxt_info_gen3_init() 138 /* Allocate prph information in iwl_pcie_ctxt_info_gen3_init() 156 /* Allocate context info */ in iwl_pcie_ctxt_info_gen3_init() 191 /* Allocate IML */ in iwl_pcie_ctxt_info_gen3_init() 284 /* only allocate the DRAM if not allocated yet */ in iwl_trans_pcie_ctx_info_gen3_set_pnvm() 292 IWL_DEBUG_FW(trans, "Failed to allocate PNVM DMA %d.\n", in iwl_trans_pcie_ctx_info_gen3_set_pnvm() 317 /* only allocate the DRAM if not allocated yet */ in iwl_trans_pcie_ctx_info_gen3_set_reduce_power() 326 "Failed to allocate reduce power DMA %d.\n", in iwl_trans_pcie_ctx_info_gen3_set_reduce_power()
|
/Linux-v5.15/include/asm-generic/ |
D | pgalloc.h | 11 * __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-v5.15/drivers/scsi/bnx2fc/ |
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() 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-v5.15/Documentation/livepatch/ |
D | shadow-vars.rst | 9 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-v5.15/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_wq.c | 94 * 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 299 * hinic_wqs_alloc - allocate Work Queues set 301 * @max_wqs: maximum wqs to allocate 323 "Failed to allocate mem for page addresses\n"); in hinic_wqs_alloc() 373 * alloc_wqes_shadow - allocate WQE shadows for WQ 374 * @wq: WQ to allocate shadows for 442 * @wq: WQ to allocate pages for [all …]
|
/Linux-v5.15/Documentation/core-api/ |
D | memory-allocation.rst | 8 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() 160 try to allocate memory with `kmalloc` and if the allocation fails it 166 If you need to allocate many identical objects you can use the slab 171 wrappers can allocate memory from that cache.
|