Home
last modified time | relevance | path

Searched refs:allocated (Results 1 – 25 of 402) sorted by relevance

12345678910>>...17

/linux/Documentation/gpu/
H A Dxen-front.rst15 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 Dmempool.c426 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 Dmemory-allocation.rst15 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 …]
H A Dswiotlb.rst67 multiple memory buffer segments, a separate bounce buffer must be allocated for
89 pre-allocated at boot time (but see Dynamic swiotlb below). Because swiotlb
91 allocated as a single contiguous block.
97 this pre-allocated memory is not available for other uses in the system. The
131 Hence there may be pre-padding space that is allocated prior to the start of
137 allocated entirely from granules that are not used for any other purpose.
141 Memory used for swiotlb bounce buffers is allocated from overall system memory
142 as one or more "pools". The default pool is allocated during system boot with a
149 CONFIG_SWIOTLB_DYNAMIC is enabled, additional pools may be allocated later in
151 memory. The default pool is allocated below the 4 GiB physical address line so
[all …]
/linux/scripts/dtc/libfdt/
H A Dfdt_sw.c276 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 Dhw_table.c16 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 Ddmx-reqbufs.rst38 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/scripts/coccinelle/free/
H A Ddevm_free.cocci2 /// Find uses of standard freeing functons on values allocated using devm_
3 /// functions. Values allocated using the devm_functions are freed when
134 msg="WARNING: invalid free of devm_ allocated data"
141 msg="WARNING: invalid free of devm_ allocated data"
/linux/include/trace/events/
H A Dirq_matrix.h77 __field( unsigned int, allocated )
90 __entry->allocated = cmap->allocated;
100 __entry->available, __entry->allocated,
H A Dsock.h95 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 Dpowercap_sys.c387 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 Dhptiop.rst111 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/Documentation/devicetree/bindings/powerpc/fsl/
H A Ddcsr.txt57 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 Dcomedi_buf.c381 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/Documentation/trace/
H A Devents-kmem.rst42 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 Ddsos.c19 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/Documentation/arch/arm64/
H A Dgcs.rst102 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/io_uring/
H A Dzcrx.c1268 unsigned allocated = 0; in io_zcrx_ring_refill() local
1274 while (allocated < to_alloc - 1 && zcrx_rq_iter_next(&it, rq, &rqe)) { in io_zcrx_ring_refill()
1284 netmems[allocated] = net_iov_to_netmem(niov); in io_zcrx_ring_refill()
1285 allocated++; in io_zcrx_ring_refill()
1292 netmems[allocated] = net_iov_to_netmem(niov); in io_zcrx_ring_refill()
1293 allocated++; in io_zcrx_ring_refill()
1297 return allocated; in io_zcrx_ring_refill()
1304 unsigned allocated = 0; in io_zcrx_refill_slow() local
1308 while (allocated < to_alloc) { in io_zcrx_refill_slow()
1319 netmems[allocated] = net_iov_to_netmem(niov); in io_zcrx_refill_slow()
[all …]
/linux/drivers/irqchip/
H A Dirq-mips-cpu.c180 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 Dextents.c46 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/md/dm-vdo/
H A Derrors.c81 int allocated; member
85 .allocated = MAX_ERROR_BLOCKS,
289 if (registered_errors.count == registered_errors.allocated) { in uds_register_error_block()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Drep.c40 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/scripts/coccinelle/misc/
H A Dbadty.cocci5 //# 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
/linux/Documentation/userspace-api/media/v4l/
H A Dvidioc-reqbufs.rst36 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/Documentation/ABI/testing/
H A Ddell-smbios-wmi27 determined above and allocated.
41 8) Be sure to free up your allocated object.

12345678910>>...17