| /linux/Documentation/gpu/ |
| H A D | xen-front.rst | 15 Buffers allocated by the frontend driver 19 :doc: Buffers allocated by the frontend driver 21 Buffers allocated by the backend 25 :doc: Buffers allocated by the backend
|
| /linux/mm/ |
| H A D | mempool.c | 426 unsigned int count, unsigned int allocated, in mempool_alloc_from_pool() argument 433 if (unlikely(pool->curr_nr < count - allocated)) in mempool_alloc_from_pool() 435 while (allocated < count) in mempool_alloc_from_pool() 436 elems[allocated++] = remove_element(pool); in mempool_alloc_from_pool() 448 return allocated; in mempool_alloc_from_pool() 470 return allocated; in mempool_alloc_from_pool() 505 unsigned int allocated = 0; in mempool_alloc_bulk_noprof() local 525 while (allocated < count) { in mempool_alloc_bulk_noprof() 526 elems[allocated] = pool->alloc(gfp_temp, pool->pool_data); in mempool_alloc_bulk_noprof() 527 if (unlikely(!elems[allocated])) in mempool_alloc_bulk_noprof() [all …]
|
| /linux/Documentation/core-api/ |
| H A D | memory-allocation.rst | 15 memory should be allocated. The GFP acronym stands for "get free 69 ``GFP_HIGHUSER_MOVABLE`` does not require that allocated memory 73 ``GFP_HIGHUSER`` means that the allocated memory is not movable, 78 ``GFP_USER`` means that the allocated memory is not movable and it 90 used to ensure that the allocated memory is accessible by hardware 154 allocated and the count of elements in the array for the array versions. 158 The address of a chunk allocated with `kmalloc` is aligned to at least 164 Chunks allocated with kmalloc() can be resized with krealloc(). Similarly 169 a chunk that can be allocated with `kmalloc` is limited by `KMALLOC_MAX_SIZE`, 194 When the allocated memor [all...] |
| /linux/scripts/dtc/libfdt/ |
| H A D | fdt_sw.c | 276 static int fdt_find_add_string_(void *fdt, const char *s, int *allocated) in fdt_find_add_string_() argument 282 *allocated = 0; in fdt_find_add_string_() 288 *allocated = 1; in fdt_find_add_string_() 297 int allocated; in fdt_property_placeholder() local 303 allocated = 1; in fdt_property_placeholder() 306 nameoff = fdt_find_add_string_(fdt, name, &allocated); in fdt_property_placeholder() 313 if (allocated) in fdt_property_placeholder()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
| H A D | hw_table.c | 16 u8 allocated: 1; member 94 if (!hwc->sfs[i].allocated && free_idx == -1) { in mlx5_sf_hw_table_id_alloc() 99 if (hwc->sfs[i].allocated && hwc->sfs[i].usr_sfnum == usr_sfnum) in mlx5_sf_hw_table_id_alloc() 107 hwc->sfs[free_idx].allocated = true; in mlx5_sf_hw_table_id_alloc() 118 hwc->sfs[id].allocated = false; in mlx5_sf_hw_table_id_free() 186 hwc->sfs[idx].allocated = false; in mlx5_sf_hw_table_hwc_sf_free() 209 hwc->sfs[id].allocated = false; in mlx5_sf_hw_table_sf_deferred_free() 224 if (hwc->sfs[i].allocated) in mlx5_sf_hw_table_hwc_dealloc_all() 415 if (sf_hw->allocated && sf_hw->pending_delete) in mlx5_sf_hw_vhca_event() 472 if (sf_hw->allocated in mlx5_sf_hw_table_esw_changed_event_handler() [all...] |
| /linux/Documentation/userspace-api/media/dvb/ |
| H A D | dmx-reqbufs.rst | 38 Memory mapped buffers are located in device memory and must be allocated 40 space. User buffers are allocated by applications themselves, and this 43 allocated by applications through a device driver, and this ioctl only 54 number allocated in the ``count`` field. The ``count`` can be smaller than the number requested, ev… 56 function correctly. The actual allocated buffer size can is returned
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_vce.c | 726 * @allocated: allocated a new handle? 732 uint32_t handle, uint32_t *allocated) in amdgpu_vce_validate_handle() 752 *allocated |= 1 << i; in amdgpu_vce_validate_handle() 776 uint32_t allocated = 0; in amdgpu_vce_ring_parse_cs() 860 &allocated); in amdgpu_vce_ring_parse_cs() 877 allocated |= 1 << session_idx; in amdgpu_vce_ring_parse_cs() 879 } else if (!(allocated & (1 << session_idx))) { in amdgpu_vce_ring_parse_cs() 1002 if (allocated & ~created) { in amdgpu_vce_ring_parse_cs() 1012 /* Error during parsing, free all allocated handl 730 amdgpu_vce_validate_handle(struct amdgpu_cs_parser * p,uint32_t handle,uint32_t * allocated) amdgpu_vce_validate_handle() argument 774 uint32_t allocated = 0; amdgpu_vce_ring_parse_cs() local 1022 uint32_t allocated = 0; amdgpu_vce_ring_parse_cs_vm() local [all...] |
| /linux/include/trace/events/ |
| H A D | irq_matrix.h | 77 __field( unsigned int, allocated ) 90 __entry->allocated = cmap->allocated; 100 __entry->available, __entry->allocated,
|
| H A D | sock.h | 95 TP_PROTO(struct sock *sk, struct proto *prot, long allocated, int kind), 97 TP_ARGS(sk, prot, allocated, kind), 102 __field(long, allocated) 116 __entry->allocated = allocated; 125 TP_printk("proto:%s sysctl_mem=%ld,%ld,%ld allocated=%ld sysctl_rmem=%d rmem_alloc=%d sysctl_wmem=%d wmem_alloc=%d wmem_queued=%d kind=%s", 130 __entry->allocated,
|
| /linux/drivers/powercap/ |
| H A D | powercap_sys.c | 387 bool allocated; in powercap_release() local 393 allocated = power_zone->allocated; in powercap_release() 403 if (allocated) in powercap_release() 410 allocated = control_type->allocated; in powercap_release() 415 if (allocated) in powercap_release() 507 power_zone->allocated = true; in powercap_register_zone() 578 if (power_zone->allocated) in powercap_register_zone() 619 control_type->allocated = true; in powercap_register_control_type()
|
| /linux/Documentation/scsi/ |
| H A D | hptiop.rst | 111 A request packet can be allocated in either IOP or host memory. 121 Requests allocated in host memory must be aligned on 32-bytes boundary. 126 allocated in IOP memory, write the offset to inbound queue port. For 127 requests allocated in host memory, write (0x80000000|(bus_addr>>5)) 134 For requests allocated in IOP memory, the request offset is posted to 137 For requests allocated in host memory, (0x80000000|(bus_addr>>5)) 144 For requests allocated in IOP memory, the host driver free the request 161 Requests allocated in host memory must be aligned on 32-bytes boundary.
|
| /linux/scripts/coccinelle/free/ |
| H A D | devm_free.cocci | 2 /// Find uses of standard freeing functons on values allocated using devm_ 3 /// functions. Values allocated using the devm_functions are freed when 143 msg="WARNING: invalid free of devm_ allocated data" 150 msg="WARNING: invalid free of devm_ allocated data"
|
| /linux/Documentation/devicetree/bindings/powerpc/fsl/ |
| H A D | dcsr.txt | 57 This node represents the region of DCSR space allocated to the EPU 107 This node represents the region of DCSR space allocated to the NPC 144 This node represents the region of DCSR space allocated to the NXC 168 This node represents the region of DCSR space allocated to 202 This node represents the region of DCSR space allocated to 231 This node represents the region of DCSR space allocated to 259 This node represents the region of DCSR space allocated to 291 This node represents the region of DCSR space allocated to 320 This node represents the region of DCSR space allocated to 349 This node represents the region of DCSR space allocated to
|
| /linux/drivers/comedi/ |
| H A D | comedi_buf.c | 381 unsigned int allocated = comedi_buf_write_n_allocated(s); in _comedi_buf_write_free() local 383 if (nbytes > allocated) in _comedi_buf_write_free() 384 nbytes = allocated; in _comedi_buf_write_free() 525 unsigned int allocated; in _comedi_buf_read_free() local 533 allocated = comedi_buf_read_n_allocated(async); in _comedi_buf_read_free() 534 if (nbytes > allocated) in _comedi_buf_read_free() 535 nbytes = allocated; in _comedi_buf_read_free()
|
| /linux/io_uring/ |
| H A D | zcrx.c | 716 /* copy fallback allocated niovs */ in io_zcrx_return_niov() 1269 unsigned allocated = 0; in io_zcrx_ring_refill() local 1275 while (allocated < to_alloc - 1 && zcrx_rq_iter_next(&it, rq, &rqe)) { in io_zcrx_ring_refill() 1285 netmems[allocated] = net_iov_to_netmem(niov); in io_zcrx_ring_refill() 1286 allocated++; in io_zcrx_ring_refill() 1293 netmems[allocated] = net_iov_to_netmem(niov); in io_zcrx_ring_refill() 1294 allocated++; in io_zcrx_ring_refill() 1298 return allocated; in io_zcrx_ring_refill() 1305 unsigned allocated = 0; in io_zcrx_refill_slow() local 1309 while (allocated < to_allo in io_zcrx_refill_slow() 1378 unsigned allocated; io_pp_zc_alloc_netmems() local [all...] |
| /linux/Documentation/arch/arm64/ |
| H A D | gcs.rst | 102 the stack will remain allocated for the lifetime of the thread. At present 117 allocated for it of half the standard stack size or 2 gigabytes, 121 new Guarded Control Stack will be allocated for the new thread with 124 * When a stack is allocated by enabling GCS or during thread creation then 129 * Additional Guarded Control Stacks can be allocated using the 132 * Stacks allocated using map_shadow_stack() can optionally have an end of 140 * Stacks allocated using map_shadow_stack() must have a size which is a 146 * When a thread is freed the Guarded Control Stack initially allocated for 203 If GCS is enabled via ptrace no new GCS will be allocated for the thread.
|
| /linux/Documentation/trace/ |
| H A D | events-kmem.rst | 42 of writing, no information is available on what slab is being allocated from, 55 a simple indicator of page allocator activity. Pages may be allocated from 58 If pages are allocated directly from the buddy allocator, the 85 When a per-CPU list is empty or pages of the wrong type are allocated, 87 triggered is mm_page_alloc_zone_locked for each page allocated with the 101 can be allocated and freed on the same CPU through some algorithm change.
|
| /linux/tools/perf/util/ |
| H A D | dsos.c | 19 dsos->allocated = 0; in dsos__init() 37 dsos->allocated = 0; in dsos__purge() 201 if (dsos->cnt == dsos->allocated) { in __dsos__add() 205 if (dsos->allocated > 0) in __dsos__add() 206 to_allocate = dsos->allocated * 2; in __dsos__add() 211 dsos->allocated = to_allocate; in __dsos__add() 299 bool allocated = false; in dso__set_basename() 308 allocated = true; in dso__set_basename() 313 dso__set_short_name(dso, base, allocated); in dso__set_basename()
|
| /linux/fs/ext4/ |
| H A D | extents.c | 46 struct ext4_ext_path *path, int flags, unsigned int *allocated); 1070 * into the newly allocated blocks in ext4_ext_split() 1085 ext4_fsblk_t *ablocks = NULL; /* array of allocated blocks */ in ext4_ext_split() 1122 * Get array to track all allocated blocks. in ext4_ext_split() 1311 /* free all allocated blocks in error case */ 1439 /* we use already allocated block for index block, in ext4_ext_create_new_leaf() 1481 * search the closest allocated block to the left for *logical in ext4_ext_search_left() 1483 * if *logical is the smallest allocated block, the function in ext4_ext_search_left() 1545 * Search the closest allocated block to the right for *logical in ext4_ext_search_right() 1548 * 1 which means we found an allocated bloc in ext4_ext_search_right() 3422 ext4_split_extent(handle_t * handle,struct inode * inode,struct ext4_ext_path * path,struct ext4_map_blocks * map,int split_flag,int flags,unsigned int * allocated,bool * did_zeroout) ext4_split_extent() argument 3567 ext4_ext_convert_to_initialized(handle_t * handle,struct inode * inode,struct ext4_map_blocks * map,struct ext4_ext_path * path,int flags,unsigned int * allocated) ext4_ext_convert_to_initialized() argument 3828 ext4_split_convert_extents(handle_t * handle,struct inode * inode,struct ext4_map_blocks * map,struct ext4_ext_path * path,int flags,unsigned int * allocated) ext4_split_convert_extents() argument 3948 convert_initialized_extent(handle_t * handle,struct inode * inode,struct ext4_map_blocks * map,struct ext4_ext_path * path,int flags,unsigned int * allocated) convert_initialized_extent() argument 4003 ext4_ext_handle_unwritten_extents(handle_t * handle,struct inode * inode,struct ext4_map_blocks * map,struct ext4_ext_path * path,int flags,unsigned int * allocated,ext4_fsblk_t newblock) ext4_ext_handle_unwritten_extents() argument 4285 unsigned int allocated = 0, offset = 0; ext4_ext_map_blocks() local 6401 ext4_split_convert_extents_test(handle_t * handle,struct inode * inode,struct ext4_map_blocks * map,struct ext4_ext_path * path,int flags,unsigned int * allocated) ext4_split_convert_extents_test() argument [all...] |
| /linux/drivers/irqchip/ |
| H A D | irq-mips-cpu.c | 180 DECLARE_BITMAP(allocated, 2); 191 hwirq = find_first_zero_bit(state->allocated, 2); in mips_cpu_ipi_alloc() 194 bitmap_set(state->allocated, hwirq, 1); in mips_cpu_ipi_alloc()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | rep.c | 40 int ent, allocated = 0; in rvu_rep_mcam_flow_init() local 54 while (allocated < count) { in rvu_rep_mcam_flow_init() 62 req->count = (count - allocated) > NPC_MAX_NONCONTIG_ENTRIES ? in rvu_rep_mcam_flow_init() 63 NPC_MAX_NONCONTIG_ENTRIES : count - allocated; in rvu_rep_mcam_flow_init() 74 rep->flow_cfg->flow_ent[ent + allocated] = rsp->entry_list[ent]; in rvu_rep_mcam_flow_init() 76 allocated += rsp->count; in rvu_rep_mcam_flow_init() 87 if (allocated) in rvu_rep_mcam_flow_init() 88 sort(&rep->flow_cfg->flow_ent[0], allocated, in rvu_rep_mcam_flow_init() 93 rep->flow_cfg->max_flows = allocated; in rvu_rep_mcam_flow_init() 95 if (allocated) { in rvu_rep_mcam_flow_init() [all...] |
| /linux/drivers/gpu/ |
| H A D | buddy.c | 1094 * gpu_buddy_allocated_addr_to_block - given relative address find the allocated block in __alloc_range() 1354 * free the allocated blocks. in __gpu_buddy_alloc_blocks() 1563 * free the allocated blocks. in gpu_buddy_alloc_blocks() 1578 LIST_HEAD(allocated); in gpu_buddy_block_print() 1624 list_add_tail(&block->link, &allocated); in gpu_buddy_module_init() 1644 list_splice_tail(&allocated, blocks); 1652 * free the allocated blocks. 1658 list_splice_tail(&allocated, blocks); 1661 gpu_buddy_free_list_internal(mm, &allocated); 1782 * @blocks: Input and output list of allocated block [all...] |
| /linux/drivers/md/dm-vdo/ |
| H A D | errors.c | 81 int allocated; member 85 .allocated = MAX_ERROR_BLOCKS, 289 if (registered_errors.count == registered_errors.allocated) { in uds_register_error_block()
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | vidioc-reqbufs.rst | 36 Memory mapped buffers are located in device memory and must be allocated 38 space. User buffers are allocated by applications themselves, and this 41 allocated by applications through a device driver, and this ioctl only 52 allocated in the ``count`` field. It can be smaller than the number 107 free any previously allocated buffers, so this is typically something 181 - A buffer is allocated either in coherent (it will be automatically
|
| /linux/scripts/coccinelle/misc/ |
| H A D | badty.cocci | 5 //# in memory allocation functions by checking the type of the allocated memory 7 //# to the the memory being allocated. There are false positives in cases the
|