Home
last modified time | relevance | path

Searched full:capacity (Results 1 – 25 of 729) sorted by relevance

12345678910>>...30

/linux-6.12.1/drivers/power/supply/
Dsamsung-sdi-battery.c428 * so this represents the capacity ratio at different temperatures.
446 * Capacity tables for different Open Circuit Voltages (OCV).
451 { .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},
[all …]
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 …]
Dsc27xx_fuel_gauge.c82 * @total_cap: the total capacity of the battery in mAh
83 * @init_cap: the initial capacity of the battery in mAh
84 * @alarm_cap: the alarm capacity
89 * @table_len: the capacity table length
94 * @cap_table: capacity table with corresponding ocv
124 static int sc27xx_fgu_cap_to_clbcnt(struct sc27xx_fgu_data *data, int capacity);
162 * We use low 4 bits to save the last battery capacity and high 12 bits in sc27xx_fgu_is_first_poweron()
281 * When system boots on, we can not read battery capacity from coulomb
284 * capacity according to the capacity table.
293 * battery capacity as the initial battery capacity. Otherwise we should in sc27xx_fgu_get_boot_capacity()
[all …]
Dacer_a500_battery.c38 [REG_CAPACITY] = EC_DATA(0x00, CAPACITY),
60 unsigned int capacity; member
65 unsigned int capacity; in a500_battery_update_capacity() local
68 err = regmap_read(bat->regmap, ec_data[REG_CAPACITY].reg, &capacity); in a500_battery_update_capacity()
72 /* capacity can be >100% even if max value is 100% */ in a500_battery_update_capacity()
73 capacity = min(capacity, 100u); in a500_battery_update_capacity()
75 if (bat->capacity != capacity) { in a500_battery_update_capacity()
76 bat->capacity = capacity; in a500_battery_update_capacity()
85 if (bat->capacity < 100) { in a500_battery_get_status()
164 val->intval = bat->capacity; in a500_battery_get_property()
Dds2782_battery.c26 #define DS2782_REG_RARC 0x06 /* Remaining active relative capacity */
38 #define DS2786_REG_RARC 0x02 /* Remaining active relative capacity */
49 int (*get_battery_capacity)(struct ds278x_info *info, int *capacity);
62 int capacity; member
161 static int ds2782_get_capacity(struct ds278x_info *info, int *capacity) in ds2782_get_capacity() argument
169 *capacity = raw; in ds2782_get_capacity()
201 static int ds2786_get_capacity(struct ds278x_info *info, int *capacity) in ds2786_get_capacity() argument
209 /* Relative capacity is displayed with resolution 0.5 % */ in ds2786_get_capacity()
210 *capacity = raw/2 ; in ds2786_get_capacity()
218 int capacity; in ds278x_get_status() local
[all …]
Dab8500_fg.c171 * @init_capacity: Indicate if initial capacity measuring should be done
179 * @bat_cap: Structure for battery capacity specific parameters
180 * @avg_cap: Average capacity filter
371 * ab8500_fg_add_cap_sample() - Add capacity to average filter
373 * @sample: the capacity in mAh to add to the filter
375 * A capacity is added to the filter and a new mean capacity is calculated and
410 * The capacity filter is reset to zero.
431 * @sample: the capacity in mAh to fill the filter with
433 * The capacity filter is filled with a capacity in mAh
846 * ab8500_fg_volt_to_capacity() - Voltage based capacity
[all …]
/linux-6.12.1/Documentation/scheduler/
Dsched-capacity.rst2 Capacity Aware Scheduling
5 1. CPU Capacity
16 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
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/basics/
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()
85 vector->capacity = count; in dal_vector_presized_costruct()
113 uint32_t capacity, in dal_vector_create() argument
121 if (dal_vector_construct(vector, ctx, capacity, struct_size)) in dal_vector_create()
134 vector->capacity = 0; in dal_vector_destruct()
209 if (vector->count == vector->capacity) { in dal_vector_insert_at()
212 calc_increased_capacity(vector->capacity))) in dal_vector_insert_at()
[all …]
/linux-6.12.1/Documentation/translations/zh_CN/scheduler/
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-6.12.1/arch/arm/kernel/
Dtopology.c34 * cpu capacity scale management
38 * cpu capacity table
39 * This per cpu data structure describes the relative capacity of each core.
40 * On a heteregenous system, cores don't have the same computation capacity
61 * is used to compute the capacity of a CPU.
82 * 'average' CPU is of middle capacity. Also see the comments near
91 unsigned long capacity = 0; in parse_dt_topology() local
128 capacity = ((be32_to_cpup(rate)) >> 20) * cpu_eff->efficiency; in parse_dt_topology()
130 /* Save min capacity of the system */ in parse_dt_topology()
131 if (capacity < min_capacity) in parse_dt_topology()
[all …]
/linux-6.12.1/drivers/misc/vmw_vmci/
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(struct_size(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 …]
/linux-6.12.1/Documentation/devicetree/bindings/cpu/
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-6.12.1/drivers/scsi/
Dscsicam.c52 * @capacity: size of the disk in sectors
60 bool scsi_partsize(struct block_device *bdev, sector_t capacity, int geom[3]) in scsi_partsize() argument
124 geom[2] = (unsigned long)capacity / in scsi_partsize()
142 * Function : static int setsize(unsigned long capacity,unsigned int *cyls,
146 * SCSI disk in terms of lost space of size capacity, storing
165 * setsize() converts a read capacity value to int 13h
175 static int setsize(unsigned long capacity, unsigned int *cyls, unsigned int *hds, in setsize() argument
185 heads = capacity / temp; /* Compute value for number of heads */ in setsize()
186 if (capacity % temp) { /* If no remainder, done! */ in setsize()
189 sectors = capacity / temp; /* Compute value for sectors per in setsize()
[all …]
Dsd_zbc.c66 zone.capacity = logical_to_sectors(sdp, get_unaligned_be64(&buf[8])); in sd_zbc_parse_report()
67 zone.len = zone.capacity; in sd_zbc_parse_report()
72 "Invalid zone at LBA %llu with capacity %llu and length %llu; granularity = %llu\n", in sd_zbc_parse_report()
74 sectors_to_logical(sdp, zone.capacity), in sd_zbc_parse_report()
238 if (!sdkp->capacity) in sd_zbc_report_zones()
246 while (zone_idx < nr_zones && lba < sdkp->capacity) { in sd_zbc_report_zones()
458 * sd_zbc_check_capacity - Check the device capacity
463 * Get the device zone size and check that the device capacity as reported
464 * by READ CAPACITY matches the max_lba value (plus one) of the report zones
483 /* The max_lba field is the capacity of this device */ in sd_zbc_check_capacity()
[all …]
/linux-6.12.1/Documentation/power/
Dpower_supply_class.rst61 | **Charge/Energy/Capacity - how to not confuse** |
63 | **Because both "charge" (µAh) and "energy" (µWh) represents "capacity" |
67 | attributes represents capacity in µAh only. |
69 | attributes represents capacity in µWh only. |
70 | - `CAPACITY` |
71 | attribute represents capacity in *percents*, from 0 to 100. |
108 between voltage and battery capacity, but some dumb
109 batteries use voltage for very approximated calculation of capacity.
146 (typically 20% of battery capacity).
151 this setting (typically 10% of battery capacity).
[all …]
/linux-6.12.1/rust/kernel/alloc/
Dvec_ext.rs10 /// Creates a new [`Vec`] instance with at least the given capacity.
17 /// assert!(v.capacity() >= 20);
20 fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError>; in with_capacity()
56 /// Ensures that the capacity exceeds the length by at least `additional` elements.
65 /// let cap = v.capacity();
69 /// let new_cap = v.capacity();
78 fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity()
80 <Self as VecExt<_>>::reserve(&mut v, capacity, flags)?; in with_capacity()
90 // by 1. We also know that the new length is <= capacity because of the previous call to in push()
106 // the length by the same amount. We also know that the new length is <= capacity because in extend_from_slice()
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/power/supply/
Dbattery.yaml64 description: battery design capacity
99 ocv-capacity-celsius:
102 for each of the battery capacity lookup table.
126 '^ocv-capacity-table-[0-9]+$':
130 of the battery and corresponding battery capacity percent, which is used
131 to look up battery capacity according to current OCV value. And the open
137 - description: battery capacity percent
162 ocv-capacity-celsius = <(-10) 0 10>;
164 ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>;
166 ocv-capacity-table-1 = <4200000 100>, <4185000 95>, <4113000 90>;
[all …]
/linux-6.12.1/drivers/base/
Darch_topology.c159 void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity) in topology_set_cpu_scale() argument
161 per_cpu(cpu_scale, cpu) = capacity; in topology_set_cpu_scale()
168 * @cpus : The related CPUs for which capacity has been reduced
183 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()
249 cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "topology/cpu-capacity", in register_cpu_capacity_sysctl()
287 u64 capacity; in topology_normalize_cpu_scale() local
296 capacity = raw_capacity[cpu] * per_cpu(capacity_freq_ref, cpu); in topology_normalize_cpu_scale()
[all …]
/linux-6.12.1/lib/
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
132 /* calculate capacity of percpu objpool_slot */ in objpool_init()
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-6.12.1/kernel/cgroup/
Dmisc.c33 * Miscellaneous resources capacity for the entire machine. 0 capacity means
36 * root_cg.max and capacity are independent of each other. root_cg.max can be
37 * more than the actual capacity. We are using Limits resource distribution
87 * misc_cg_set_capacity() - Set the capacity of the misc cgroup res.
89 * @capacity: Supported capacity of the misc res on the host.
91 * If capacity is 0 then the charging a misc cgroup fails for that type.
95 * * %0 - Successfully registered the capacity.
98 int misc_cg_set_capacity(enum misc_res_type type, u64 capacity) in misc_cg_set_capacity() argument
103 WRITE_ONCE(misc_res_capacity[type], capacity); in misc_cg_set_capacity()
160 * * -EINVAL - If @type is invalid or misc res has 0 capacity.
[all …]
/linux-6.12.1/drivers/cpufreq/
Damd-pstate-trace.h29 unsigned long capacity,
41 capacity,
54 __field(unsigned long, capacity)
67 __entry->capacity = capacity;
80 (unsigned long)__entry->capacity,
/linux-6.12.1/arch/arm/boot/dts/samsung/
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>;
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>;
/linux-6.12.1/kernel/sched/
Dpelt.h12 int update_hw_load_avg(u64 now, struct rq *rq, u64 capacity);
20 update_hw_load_avg(u64 now, struct rq *rq, u64 capacity) in update_hw_load_avg() argument
91 * @ max capacity ------******---------------******---------------
92 * @ half capacity ------************---------************---------
104 * When a rq runs at a lower compute capacity, it will need in update_rq_clock_pelt()
106 * capacity. In order to be invariant, we scale the delta to in update_rq_clock_pelt()
109 * disturb the load signal compared to max capacity. This in update_rq_clock_pelt()
143 * phase would be present at max capacity. As soon as the in update_idle_rq_clock_pelt()
206 update_hw_load_avg(u64 now, struct rq *rq, u64 capacity) in update_hw_load_avg() argument
/linux-6.12.1/arch/s390/kernel/
Dhiperdispatch.c11 * Dynamically calculates the optimum number of high capacity COREs
13 * that a capacity update is necessary, it schedules a topology update.
19 * determine high capacity CPU count.
33 * of them high capacity.
72 static int hd_high_capacity_cores; /* Current CORE count with high capacity */
77 static unsigned long hd_high_time; /* Total time spent while all cpus have high capacity */
78 static unsigned long hd_low_time; /* Total time spent while vl cpus have low capacity */
159 unsigned long capacity; in hd_update_capacities() local
162 capacity = upscaling_cores > 0 ? CPU_CAPACITY_HIGH : CPU_CAPACITY_LOW; in hd_update_capacities()
165 smp_set_core_capacity(cpu, capacity); in hd_update_capacities()
[all …]

12345678910>>...30