| /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 61 ``GFP_HIGHUSER_MOVABLE`` does not require that allocated memory 65 ``GFP_HIGHUSER`` means that the allocated memory is not movable, 70 ``GFP_USER`` means that the allocated memory is not movable and it 82 used to ensure that the allocated memory is accessible by hardware 142 The maximal size of a chunk that can be allocated with `kmalloc` is 147 The address of a chunk allocated with `kmalloc` is aligned to at least 153 Chunks allocated with kmalloc() can be resized with krealloc(). Similarly 158 request pages from the page allocator. The memory allocated by `vmalloc` 176 When the allocated memory is no longer needed it must be freed. [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() 422 if (sf_hw->allocated && sf_hw->pending_delete) in mlx5_sf_hw_vhca_event() 479 if (sf_hw->allocated && sf_hw->pending_delete) in mlx5_sf_hw_table_esw_changed_event_handler()
|
| /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 | 730 uint32_t handle, uint32_t *allocated) in amdgpu_vce_validate_handle() argument 750 *allocated |= 1 << i; in amdgpu_vce_validate_handle() 774 uint32_t allocated = 0; in amdgpu_vce_ring_parse_cs() local 857 &allocated); in amdgpu_vce_ring_parse_cs() 874 allocated |= 1 << session_idx; in amdgpu_vce_ring_parse_cs() 876 } else if (!(allocated & (1 << session_idx))) { in amdgpu_vce_ring_parse_cs() 987 if (allocated & ~created) { in amdgpu_vce_ring_parse_cs() 998 tmp = allocated; in amdgpu_vce_ring_parse_cs() 1022 uint32_t allocated = 0; in amdgpu_vce_ring_parse_cs_vm() local 1040 &allocated); in amdgpu_vce_ring_parse_cs_vm() [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() 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() 1309 while (allocated < to_allo in io_zcrx_refill_slow() 1268 unsigned allocated = 0; io_zcrx_ring_refill() local 1304 unsigned allocated = 0; io_zcrx_refill_slow() local 1377 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 208 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/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/fs/ext4/ |
| H A D | extents.c | 46 struct ext4_ext_path *path, int flags, unsigned int *allocated); 3422 unsigned int *allocated, bool *did_zeroout) in ext4_split_extent() argument 3528 if (allocated) { in ext4_split_extent() 3530 *allocated = ee_len - (map->m_lblk - ee_block); in ext4_split_extent() 3532 *allocated = map->m_len; in ext4_split_extent() 3567 int flags, unsigned int *allocated) in ext4_ext_convert_to_initialized() argument 3617 *allocated = 0; in ext4_ext_convert_to_initialized() 3662 *allocated = map_len; in ext4_ext_convert_to_initialized() 3708 *allocated = map_len; in ext4_ext_convert_to_initialized() 3711 if (*allocated) { in ext4_ext_convert_to_initialized() [all …]
|
| /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()
|
| /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/drivers/gpu/ |
| H A D | buddy.c | 1071 LIST_HEAD(allocated); in __alloc_range() 1107 list_add_tail(&block->link, &allocated); in __alloc_range() 1130 list_splice_tail(&allocated, blocks); in __alloc_range() 1144 list_splice_tail(&allocated, blocks); in __alloc_range() 1147 gpu_buddy_free_list_internal(mm, &allocated); in __alloc_range() 1401 LIST_HEAD(allocated); in gpu_buddy_alloc_blocks() 1525 list_add_tail(&block->link, &allocated); in gpu_buddy_alloc_blocks() 1540 trim_list = &allocated; in gpu_buddy_alloc_blocks() 1543 if (!list_is_singular(&allocated)) { in gpu_buddy_alloc_blocks() 1544 block = list_last_entry(&allocated, typeof(*block), link); in gpu_buddy_alloc_blocks() [all …]
|
| /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
|