| /linux/kernel/irq/ |
| H A D | matrix.c | 13 unsigned int allocated; member 159 unsigned int cpu, best_cpu, allocated = UINT_MAX; in matrix_find_best_cpu_managed() local 167 if (!cm->online || cm->managed_allocated > allocated) in matrix_find_best_cpu_managed() 171 allocated = cm->managed_allocated; in matrix_find_best_cpu_managed() 198 cm->allocated--; in irq_matrix_assign_system() 313 cm->allocated++; in irq_matrix_alloc_managed() 336 cm->allocated++; in irq_matrix_assign() 404 cm->allocated++; in irq_matrix_alloc() 435 cm->allocated--; in irq_matrix_free() 484 return cm->allocated - cm->managed_allocated; in irq_matrix_allocated() [all …]
|
| /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/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 …]
|
| H A D | cpu_hotplug.rst | 350 callback. The statically allocated states are described by constants in 364 dynamic allocation is the preferred method. The state number is allocated 391 The @state argument is either a statically allocated state or one of the 392 constants for dynamically allocated states - CPUHP_BP_PREPARE_DYN, 394 which a dynamic state should be allocated. 447 allocation the allocated state is freed. 456 0 Statically allocated state was successfully set up 458 >0 Dynamically allocated state was successfully set up. 460 The returned number is the state number which was allocated. If 464 multi-instance states the dynamically allocated state number is [all …]
|
| /linux/Documentation/mm/ |
| H A D | page_owner.rst | 2 page owner: Tracking about who allocated each page 8 page owner is for the tracking about who allocated each page. 28 allocated base pages, which gives us a quick overview of where the memory 32 allocated base pages (faster to read and parse, eg, for monitoring) that 55 memory system, so, until initialization, many pages can be allocated and 56 they would have no owner information. To fix it up, these early allocated 57 pages are investigated and marked as allocated in initialization phase. 59 at least, we can tell whether the page is allocated or not, 60 more accurately. On 2GB memory x86-64 VM box, 13343 early allocated pages 61 are caught and marked, although they are mostly allocated from struct [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/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/arch/powerpc/platforms/pseries/ |
| H A D | vio.c | 155 if (viodev->cmo.entitled > viodev->cmo.allocated) in vio_cmo_alloc() 156 reserve_free = viodev->cmo.entitled - viodev->cmo.allocated; in vio_cmo_alloc() 167 viodev->cmo.allocated += size; in vio_cmo_alloc() 202 if (viodev->cmo.allocated > viodev->cmo.entitled) { in vio_cmo_dealloc() 203 excess_freed = min(reserve_freed, (viodev->cmo.allocated - in vio_cmo_dealloc() 209 viodev->cmo.allocated -= (reserve_freed + excess_freed); in vio_cmo_dealloc() 320 if ((viodev->cmo.entitled > viodev->cmo.allocated) && in vio_cmo_entitlement_update() 323 max_t(size_t, viodev->cmo.allocated, in vio_cmo_entitlement_update() 346 if ((viodev->cmo.entitled > viodev->cmo.allocated) && in vio_cmo_entitlement_update() 349 max_t(size_t, viodev->cmo.allocated, in vio_cmo_entitlement_update() [all …]
|
| /linux/mm/ |
| H A D | mempool.c | 414 unsigned int count, unsigned int allocated, in mempool_alloc_from_pool() argument 421 if (unlikely(pool->curr_nr < count - allocated)) in mempool_alloc_from_pool() 426 allocated++; in mempool_alloc_from_pool() 440 return allocated; in mempool_alloc_from_pool() 462 return allocated; in mempool_alloc_from_pool() 494 unsigned int count, unsigned int allocated) in mempool_alloc_bulk_noprof() argument 524 allocated++; in mempool_alloc_bulk_noprof() 530 allocated = mempool_alloc_from_pool(pool, elems, count, allocated, in mempool_alloc_bulk_noprof()
|
| /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 134 msg="WARNING: invalid free of devm_ allocated data" 141 msg="WARNING: invalid free of devm_ allocated data"
|
| /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/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/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/fs/ |
| H A D | kernel_read_file.c | 41 void *allocated = NULL; in kernel_read_file() local 80 *buf = allocated = vmalloc(i_size); in kernel_read_file() 115 if (allocated) { in kernel_read_file()
|
| /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 | 20 dsos->allocated = 0; in dsos__init() 38 dsos->allocated = 0; in dsos__purge() 199 if (dsos->cnt == dsos->allocated) { in __dsos__add() 203 if (dsos->allocated > 0) in __dsos__add() 204 to_allocate = dsos->allocated * 2; in __dsos__add() 209 dsos->allocated = to_allocate; in __dsos__add()
|
| /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()
|
| /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/include/linux/ |
| H A D | powercap.h | 70 bool allocated; member 150 bool allocated; member
|
| /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
|