Home
last modified time | relevance | path

Searched refs:capacity (Results 1 – 25 of 261) sorted by relevance

1234567891011

/linux/drivers/power/supply/
H A Dsamsung-sdi-battery.c451 { .ocv = 4330000, .capacity = 100},
452 { .ocv = 4320000, .capacity = 99},
453 { .ocv = 4283000, .capacity = 95},
454 { .ocv = 4246000, .capacity = 92},
455 { .ocv = 4211000, .capacity = 89},
456 { .ocv = 4167000, .capacity = 85},
457 { .ocv = 4146000, .capacity = 83},
458 { .ocv = 4124000, .capacity = 81},
459 { .ocv = 4062000, .capacity = 75},
460 { .ocv = 4013000, .capacity = 70},
[all …]
H A Dab8500_bmdata.c20 { .ocv = 4186000, .capacity = 100},
21 { .ocv = 4163000, .capacity = 99},
22 { .ocv = 4114000, .capacity = 95},
23 { .ocv = 4068000, .capacity = 90},
24 { .ocv = 3990000, .capacity = 80},
25 { .ocv = 3926000, .capacity = 70},
26 { .ocv = 3898000, .capacity = 65},
27 { .ocv = 3866000, .capacity = 60},
28 { .ocv = 3833000, .capacity = 55},
29 { .ocv = 3812000, .capacity = 50},
[all …]
/linux/drivers/gpu/drm/amd/display/dc/basics/
H A Dvector.c32 uint32_t capacity, in dal_vector_construct() argument
37 if (!struct_size || !capacity) { in dal_vector_construct()
43 vector->container = kcalloc(capacity, struct_size, GFP_KERNEL); in dal_vector_construct()
46 vector->capacity = capacity; in dal_vector_construct()
86 vector->capacity = count; in dal_vector_presized_costruct()
114 uint32_t capacity, in dal_vector_create() argument
122 if (dal_vector_construct(vector, ctx, capacity, struct_size)) in dal_vector_create()
135 vector->capacity = 0; in dal_vector_destruct()
210 if (vector->count == vector->capacity) { in dal_vector_insert_at()
213 calc_increased_capacity(vector->capacity))) in dal_vector_insert_at()
[all …]
/linux/Documentation/translations/zh_CN/scheduler/
H A Dsched-capacity.rst4 :Original: Documentation/scheduler/sched-capacity.rst
27 我们引入CPU算力(capacity)的概念来测量每个CPU能达到的性能,它的值相对系统中性能最强的CPU
42 capacity(cpu) = work_per_hz(cpu) * max_freq(cpu)
48 CPU的 ``capacity`` 是 ``capacity_orig`` 扣除了一些性能损失(比如处理中断的耗时)的值。
50 注意CPU的 ``capacity`` 仅仅被设计用于CFS调度类,而 ``capacity_orig`` 是不感知调度类的。为
51 简洁起见,本文档的剩余部分将不加区分的使用术语 ``capacity`` 和 ``capacity_orig`` 。
67 - capacity(CPU0) = C
68 - capacity(CPU1) = C/2
98 - capacity(CPU0) = C
99 - capacity(CPU1) = C/3
[all …]
/linux/drivers/misc/vmw_vmci/
H A Dvmci_handle_array.c11 struct vmci_handle_arr *vmci_handle_arr_create(u32 capacity, u32 max_capacity) in vmci_handle_arr_create() argument
15 if (max_capacity == 0 || capacity > max_capacity) in vmci_handle_arr_create()
18 if (capacity == 0) in vmci_handle_arr_create()
19 capacity = min((u32)VMCI_HANDLE_ARRAY_DEFAULT_CAPACITY, in vmci_handle_arr_create()
22 array = kmalloc_flex(*array, entries, capacity, GFP_ATOMIC); in vmci_handle_arr_create()
26 array->capacity = capacity; in vmci_handle_arr_create()
43 if (unlikely(array->size >= array->capacity)) { in vmci_handle_arr_append_entry()
46 u32 capacity_bump = min(array->max_capacity - array->capacity, in vmci_handle_arr_append_entry()
47 array->capacity); in vmci_handle_arr_append_entry()
49 size_add(array->capacity, capacity_bump)); in vmci_handle_arr_append_entry()
[all …]
H A Dvmci_handle_array.h16 u32 capacity; member
20 struct vmci_handle entries[] __counted_by(capacity);
26 struct vmci_handle_arr *vmci_handle_arr_create(u32 capacity, u32 max_capacity);
/linux/Documentation/scheduler/
H A Dsched-capacity.rst16 CPU capacity is a measure of the performance a CPU can reach, normalized against
18 asymmetric CPU capacity systems, as they contain CPUs of different capacities.
20 Disparity in maximum attainable performance (IOW in maximum CPU capacity) stems
36 capacity(cpu) = work_per_hz(cpu) * max_freq(cpu)
41 Two different capacity values are used within the scheduler. A CPU's
42 ``original capacity`` is its maximum attainable capacity, i.e. its maximum
43 attainable performance level. This original capacity is returned by
44 the function arch_scale_cpu_capacity(). A CPU's ``capacity`` is its ``original
45 capacity`` to which some loss of available performance (e.g. time spent
48 Note that a CPU's ``capacity`` is solely intended to be used by the CFS class,
[all …]
/linux/Documentation/devicetree/bindings/cpu/
H A Dcpu-capacity.txt2 CPU capacity bindings
15 2 - CPU capacity definition
18 CPU capacity is a number that provides the scheduler information about CPUs
27 final capacity should, however, be:
43 3 - capacity-dmips-mhz
46 capacity-dmips-mhz is an optional cpu node [1] property: u32 value
47 representing CPU capacity expressed in normalized DMIPS/MHz. At boot time, the
48 maximum frequency available to the cpu is then used to calculate the capacity
51 capacity-dmips-mhz property is all-or-nothing: if it is specified for a cpu
53 fall back to the default capacity value for every CPU. If cpufreq is not
[all …]
/linux/Documentation/driver-api/cxl/allocation/
H A Dhugepages.rst10 as the NUMA node hosting that capacity will be `Online` at the time CMA
11 carves out contiguous capacity.
14 capacity allocated by CMA - as the NUMA node hosting the capacity is `Offline`
15 at :code:`__init` time - when CMA carves out contiguous capacity.
23 All CXL capacity regardless of configuration time or memory zone is eligible
28 CXL capacity onlined in :code:`ZONE_NORMAL` is eligible for 1GB Gigantic Page
31 CXL capacity onlined in :code:`ZONE_MOVABLE` is not eligible for 1GB Gigantic
/linux/mm/
H A Dpage_reporting.c188 budget = DIV_ROUND_UP(area->nr_free, prdev->capacity * 16); in page_reporting_cycle()
233 err = prdev->report(prdev, sgl, prdev->capacity); in page_reporting_cycle()
236 *offset = prdev->capacity; in page_reporting_cycle()
245 page_reporting_drain(prdev, sgl, prdev->capacity, !err); in page_reporting_cycle()
271 unsigned int order, mt, leftover, offset = prdev->capacity; in page_reporting_process_zone()
277 (prdev->capacity << page_reporting_order); in page_reporting_process_zone()
301 leftover = prdev->capacity - offset; in page_reporting_process_zone()
333 sgl = kmalloc_objs(*sgl, prdev->capacity); in page_reporting_process()
337 sg_init_table(sgl, prdev->capacity); in page_reporting_process()
388 if (!prdev->capacity || prdev->capacity > PAGE_REPORTING_CAPACITY) in page_reporting_register()
[all …]
/linux/arch/arm/kernel/
H A Dtopology.c91 unsigned long capacity = 0; in parse_dt_topology() local
128 capacity = ((be32_to_cpup(rate)) >> 20) * cpu_eff->efficiency; in parse_dt_topology()
131 if (capacity < min_capacity) in parse_dt_topology()
132 min_capacity = capacity; in parse_dt_topology()
135 if (capacity > max_capacity) in parse_dt_topology()
136 max_capacity = capacity; in parse_dt_topology()
138 cpu_capacity(cpu) = capacity; in parse_dt_topology()
/linux/lib/
H A Dobjpool.c24 void *obj = (void *)&slot->entries[pool->capacity]; in objpool_init_percpu_slot()
28 slot->mask = pool->capacity - 1; in objpool_init_percpu_slot()
68 size = struct_size(slot, entries, pool->capacity) + in objpool_init_percpu_slots()
122 int rc, capacity, slot_size; in objpool_init() local
133 capacity = roundup_pow_of_two(nr_objs); in objpool_init()
134 if (!capacity) in objpool_init()
141 pool->capacity = capacity; in objpool_init()
/linux/Documentation/driver-api/cxl/linux/
H A Dmemory-hotplug.rst32 :code:`ZONE_NORMAL` implies this capacity may be used for almost any allocation,
33 while :code:`ZONE_MOVABLE` implies this capacity should only be used for
37 so that it the entire region may be hot-unplugged at a later time. Any capacity
45 capacity exceeds 64GB. As of v6.15, Linux does not take into account the
52 memory capacity are dictated by the following system settings:
58 capacity will be carved out of the memory block being onlined. This has
62 If either parameter is set to false, :code:`struct folio` for this capacity
64 procedure. This capacity will be allocated from :code:`ZONE_NORMAL` on
69 :code:`ZONE_NORMAL` capacity to host the memory map for the hotplugged capacity.
/linux/arch/arm/boot/dts/samsung/
H A Dexynos5420-cpus.dtsi66 capacity-dmips-mhz = <1024>;
78 capacity-dmips-mhz = <1024>;
90 capacity-dmips-mhz = <1024>;
102 capacity-dmips-mhz = <1024>;
114 capacity-dmips-mhz = <539>;
126 capacity-dmips-mhz = <539>;
138 capacity-dmips-mhz = <539>;
150 capacity-dmips-mhz = <539>;
H A Dexynos5422-cpus.dtsi65 capacity-dmips-mhz = <539>;
78 capacity-dmips-mhz = <539>;
91 capacity-dmips-mhz = <539>;
104 capacity-dmips-mhz = <539>;
117 capacity-dmips-mhz = <1024>;
130 capacity-dmips-mhz = <1024>;
143 capacity-dmips-mhz = <1024>;
156 capacity-dmips-mhz = <1024>;
/linux/rust/kernel/alloc/
H A Dkvec.rs108 /// capacity of the vector (the number of elements that currently fit into the vector), its length
126 /// without re-allocation. For ZSTs `self.layout`'s capacity is zero. However, it is legal for the
129 /// - `self.len()` is always less than or equal to `self.capacity()`.
137 /// Note: This isn't quite the same as `Self::capacity`, which in contrast returns the number of
210 pub const fn capacity(&self) -> usize { in inc_len()
228 /// - `additional` must be less than or equal to `self.capacity - self.len`. in dec_len()
233 debug_assert!(additional <= self.capacity() - self.len());
317 // - `layout` is an empty `ArrayLayout` (zero capacity)
328 /// Returns a slice of `MaybeUninit<T>` for the remaining spare capacity of the vector. in push()
331 // - `self.len` is smaller than `self.capacity` b in push()
184 pub const fn capacity(&self) -> usize { capacity() function
582 let capacity = me.capacity(); into_raw_parts() localVariable
[all...]
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_plane.c447 uint64_t *capacity) in amdgpu_dm_plane_add_gfx10_1_modifiers() argument
451 amdgpu_dm_plane_add_modifier(mods, size, capacity, AMD_FMT_MOD | in amdgpu_dm_plane_add_gfx10_1_modifiers()
460 amdgpu_dm_plane_add_modifier(mods, size, capacity, AMD_FMT_MOD | in amdgpu_dm_plane_add_gfx10_1_modifiers()
470 amdgpu_dm_plane_add_modifier(mods, size, capacity, AMD_FMT_MOD | in amdgpu_dm_plane_add_gfx10_1_modifiers()
475 amdgpu_dm_plane_add_modifier(mods, size, capacity, AMD_FMT_MOD | in amdgpu_dm_plane_add_gfx10_1_modifiers()
482 amdgpu_dm_plane_add_modifier(mods, size, capacity, AMD_FMT_MOD | in amdgpu_dm_plane_add_gfx10_1_modifiers()
486 amdgpu_dm_plane_add_modifier(mods, size, capacity, AMD_FMT_MOD | in amdgpu_dm_plane_add_gfx10_1_modifiers()
719 u64 *capacity) in amdgpu_dm_plane_add_gfx6_modifiers() argument
722 amdgpu_dm_plane_add_modifier(mods, size, capacity, in amdgpu_dm_plane_add_gfx6_modifiers()
724 amdgpu_dm_plane_add_modifier_dedup(mods, size, capacity, in amdgpu_dm_plane_add_gfx6_modifiers()
[all …]
/linux/drivers/scsi/
H A Dsd_zbc.c64 zone.capacity = logical_to_sectors(sdp, get_unaligned_be64(&buf[8])); in sd_zbc_parse_report()
65 zone.len = zone.capacity; in sd_zbc_parse_report()
72 sectors_to_logical(sdp, zone.capacity), in sd_zbc_parse_report()
236 if (!sdkp->capacity) in sd_zbc_report_zones()
244 while (zone_idx < nr_zones && lba < sdkp->capacity) { in sd_zbc_report_zones()
483 if (sdkp->capacity != max_lba + 1) { in sd_zbc_check_capacity()
487 (unsigned long long)sdkp->capacity, in sd_zbc_check_capacity()
489 sdkp->capacity = max_lba + 1; in sd_zbc_check_capacity()
521 if (sdkp->device->type != TYPE_ZBC || !sdkp->capacity) in sd_zbc_print_zones()
524 if (sdkp->capacity & (sdkp->zone_info.zone_blocks - 1)) in sd_zbc_print_zones()
[all …]
/linux/drivers/base/
H A Darch_topology.c183 unsigned long max_capacity, capacity, pressure; in topology_update_hw_pressure() local
196 capacity = max_capacity; in topology_update_hw_pressure()
198 capacity = mult_frac(max_capacity, capped_freq, max_freq); in topology_update_hw_pressure()
200 pressure = max_capacity - capacity; in topology_update_hw_pressure()
243 u64 capacity; in topology_normalize_cpu_scale() local
252 capacity = raw_capacity[cpu] * in topology_normalize_cpu_scale()
254 capacity_scale = max(capacity, capacity_scale); in topology_normalize_cpu_scale()
259 capacity = raw_capacity[cpu] * in topology_normalize_cpu_scale()
261 capacity = div64_u64(capacity << SCHED_CAPACITY_SHIFT, in topology_normalize_cpu_scale()
263 topology_set_cpu_scale(cpu, capacity); in topology_normalize_cpu_scale()
[all …]
/linux/drivers/char/tpm/
H A Dtpm-buf.c12 u32 buf_size_2 = (u32)buf->capacity + (u32)sizeof(*buf); in __tpm_buf_size_invariant()
14 if (!buf->capacity) { in __tpm_buf_size_invariant()
43 buf->capacity = buf_size - sizeof(*buf); in __tpm_buf_reset()
59 buf->capacity = buf_size - sizeof(*buf); in __tpm_buf_reset_sized()
97 u16 buf_size = buf->capacity + sizeof(*buf); in tpm_buf_reset()
109 u16 buf_size = buf->capacity + sizeof(*buf); in tpm_buf_reset_sized()
140 if (total_length > (u32)buf->capacity) { in tpm_buf_append()
/linux/drivers/iio/dac/
H A Dad5686-spi.c29 unsigned int capacity; member
30 struct spi_transfer xfers[] __counted_by(capacity);
39 if (bus_data->size >= bus_data->capacity) in ad5686_spi_write()
158 unsigned int capacity; in ad5686_spi_probe() local
165 capacity = max(info->num_channels, 2); in ad5686_spi_probe()
166 bus_data = devm_kzalloc(dev, struct_size(bus_data, xfers, capacity), in ad5686_spi_probe()
171 bus_data->capacity = capacity; in ad5686_spi_probe()
/linux/security/landlock/
H A Dtsync.c192 size_t capacity; in tsync_works_provide()
202 * capacity. This can legitimately happen if new threads get started after we in tsync_works_provide()
203 * grew the capacity. in tsync_works_provide()
213 if (s->size >= s->capacity)
262 * guaranteed to succeed. (size + n <= capacity) in tsync_works_grow_by()
277 /* No need to reallocate if s already has sufficient capacity. */ in tsync_works_grow_by()
278 if (new_capacity <= s->capacity) in tsync_works_grow_by()
288 for (i = s->capacity; i < new_capacity; i++) {
295 s->capacity = i; in tsync_works_contains_task()
300 s->capacity in tsync_works_contains_task()
175 size_t capacity; global() member
[all...]
/linux/drivers/usb/storage/
H A Dsddr55.c87 unsigned long capacity; /* Size of card in bytes */ member
473 if (new_pba >= (info->capacity >> (info->blockshift + info->pageshift))) { in sddr55_write_data()
656 if (!info->capacity) in sddr55_read_map()
659 numblocks = info->capacity >> (info->blockshift + info->pageshift); in sddr55_read_map()
794 unsigned long capacity; in sddr55_transport() local
867 capacity = sddr55_get_capacity(us); in sddr55_transport()
869 if (!capacity) { in sddr55_transport()
874 info->capacity = capacity; in sddr55_transport()
880 info->max_log_blks = ((info->capacity >> (info->pageshift + info->blockshift)) / 256) * 250; in sddr55_transport()
886 capacity = (capacity / 256) * 250; in sddr55_transport()
[all …]
/linux/drivers/gpu/drm/amd/display/include/
H A Dvector.h33 uint32_t capacity; member
40 uint32_t capacity,
45 uint32_t capacity,
104 bool dal_vector_reserve(struct vector *vector, uint32_t capacity);
/linux/drivers/net/wireless/st/cw1200/
H A Dqueue.c119 if (queue->num_queued <= (queue->capacity >> 1)) { in __cw1200_queue_gc()
166 size_t capacity, in cw1200_queue_init() argument
173 queue->capacity = capacity; in cw1200_queue_init()
182 queue->pool = kzalloc_objs(struct cw1200_queue_item, capacity); in cw1200_queue_init()
193 for (i = 0; i < capacity; ++i) in cw1200_queue_init()
250 queue->capacity = 0; in cw1200_queue_deinit()
316 (queue->capacity - (num_present_cpus() - 1))) { in cw1200_queue_put()
385 } else if (item_id >= (unsigned) queue->capacity) { in cw1200_queue_requeue()
429 } else if (item_id >= (unsigned) queue->capacity) { in cw1200_queue_remove()
449 (queue->num_queued <= (queue->capacity >> 1))) { in cw1200_queue_remove()
[all …]

1234567891011