Home
last modified time | relevance | path

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

12345678910>>...39

/kernel/linux/linux-5.10/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 ``capacity_orig`` is its maximum attainable capacity, i.e. its maximum
43 attainable performance level. A CPU's ``capacity`` is its ``capacity_orig`` to
47 Note that a CPU's ``capacity`` is solely intended to be used by the CFS class,
[all …]
/kernel/linux/linux-5.10/drivers/misc/vmw_vmci/
Dvmci_handle_array.c11 static size_t handle_arr_calc_size(u32 capacity) in handle_arr_calc_size() argument
14 capacity * sizeof(struct vmci_handle); in handle_arr_calc_size()
17 struct vmci_handle_arr *vmci_handle_arr_create(u32 capacity, u32 max_capacity) in vmci_handle_arr_create() argument
21 if (max_capacity == 0 || capacity > max_capacity) in vmci_handle_arr_create()
24 if (capacity == 0) in vmci_handle_arr_create()
25 capacity = min((u32)VMCI_HANDLE_ARRAY_DEFAULT_CAPACITY, in vmci_handle_arr_create()
28 array = kmalloc(handle_arr_calc_size(capacity), GFP_ATOMIC); in vmci_handle_arr_create()
32 array->capacity = capacity; in vmci_handle_arr_create()
49 if (unlikely(array->size >= array->capacity)) { in vmci_handle_arr_append_entry()
52 u32 capacity_bump = min(array->max_capacity - array->capacity, in vmci_handle_arr_append_entry()
[all …]
/kernel/linux/linux-4.19/drivers/misc/vmw_vmci/
Dvmci_handle_array.c19 static size_t handle_arr_calc_size(u32 capacity) in handle_arr_calc_size() argument
22 capacity * sizeof(struct vmci_handle); in handle_arr_calc_size()
25 struct vmci_handle_arr *vmci_handle_arr_create(u32 capacity, u32 max_capacity) in vmci_handle_arr_create() argument
29 if (max_capacity == 0 || capacity > max_capacity) in vmci_handle_arr_create()
32 if (capacity == 0) in vmci_handle_arr_create()
33 capacity = min((u32)VMCI_HANDLE_ARRAY_DEFAULT_CAPACITY, in vmci_handle_arr_create()
36 array = kmalloc(handle_arr_calc_size(capacity), GFP_ATOMIC); in vmci_handle_arr_create()
40 array->capacity = capacity; in vmci_handle_arr_create()
57 if (unlikely(array->size >= array->capacity)) { in vmci_handle_arr_append_entry()
60 u32 capacity_bump = min(array->max_capacity - array->capacity, in vmci_handle_arr_append_entry()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/basics/
Dvector.c34 uint32_t capacity, in dal_vector_construct() argument
39 if (!struct_size || !capacity) { in dal_vector_construct()
45 vector->container = kcalloc(capacity, struct_size, GFP_KERNEL); in dal_vector_construct()
48 vector->capacity = capacity; in dal_vector_construct()
88 vector->capacity = count; in dal_vector_presized_costruct()
116 uint32_t capacity, in dal_vector_create() argument
124 if (dal_vector_construct(vector, ctx, capacity, struct_size)) in dal_vector_create()
137 vector->capacity = 0; in dal_vector_destruct()
212 if (vector->count == vector->capacity) { in dal_vector_insert_at()
215 calc_increased_capacity(vector->capacity))) in dal_vector_insert_at()
[all …]
/kernel/linux/linux-4.19/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()
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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/arm/
Dcpu-capacity.txt2 ARM CPUs 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 …]
/kernel/linux/linux-4.19/drivers/scsi/
Dscsicam.c25 static int setsize(unsigned long capacity, unsigned int *cyls, unsigned int *hds,
58 * @capacity: size of the disk in sectors
68 int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip) in scsicam_bios_param() argument
71 u64 capacity64 = capacity; /* Suppress gcc warning */ in scsicam_bios_param()
79 ret = scsi_partsize(p, (unsigned long)capacity, (unsigned int *)ip + 2, in scsicam_bios_param()
87 ret = setsize((unsigned long)capacity, (unsigned int *)ip + 2, in scsicam_bios_param()
94 if ((capacity >> 11) > 65534) { in scsicam_bios_param()
102 if (capacity > 65535*63*255) in scsicam_bios_param()
105 ip[2] = (unsigned long)capacity / (ip[0] * ip[1]); in scsicam_bios_param()
115 * @capacity: size of the disk in sectors
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/arm/
Dcpu-capacity.txt2 ARM CPUs 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 …]
/kernel/linux/linux-5.10/drivers/scsi/
Dscsicam.c53 * @capacity: size of the disk in sectors
61 bool scsi_partsize(struct block_device *bdev, sector_t capacity, int geom[3]) in scsi_partsize() argument
125 geom[2] = (unsigned long)capacity / in scsi_partsize()
143 * Function : static int setsize(unsigned long capacity,unsigned int *cyls,
147 * SCSI disk in terms of lost space of size capacity, storing
166 * setsize() converts a read capacity value to int 13h
176 static int setsize(unsigned long capacity, unsigned int *cyls, unsigned int *hds, in setsize() argument
186 heads = capacity / temp; /* Compute value for number of heads */ in setsize()
187 if (capacity % temp) { /* If no remainder, done! */ in setsize()
190 sectors = capacity / temp; /* Compute value for sectors per in setsize()
[all …]
/kernel/linux/linux-4.19/Documentation/power/
Dpower_supply_class.txt59 ~ ~ ~ ~ ~ ~ ~ Charge/Energy/Capacity - how to not confuse ~ ~ ~ ~ ~ ~ ~
61 ~ Because both "charge" (µAh) and "energy" (µWh) represents "capacity" ~
64 ~ CHARGE_* attributes represents capacity in µAh only. ~
65 ~ ENERGY_* attributes represents capacity in µWh only. ~
66 ~ CAPACITY attribute represents capacity in *percents*, from 0 to 100. ~
95 no direct relation between voltage and battery capacity, but some dumb
96 batteries use voltage for very approximated calculation of capacity.
125 of charge cycle (typically 20% of battery capacity).
128 current is below this setting (typically 10% of battery capacity).
146 CAPACITY - capacity in percents.
[all …]
/kernel/linux/linux-4.19/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
134 capacity = ((be32_to_cpup(rate)) >> 20) * cpu_eff->efficiency; in parse_dt_topology()
136 /* Save min capacity of the system */ in parse_dt_topology()
137 if (capacity < min_capacity) in parse_dt_topology()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/power/supply/
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 …]
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.c174 * @init_capacity: Indicate if initial capacity measuring should be done
182 * @bat_cap: Structure for battery capacity specific parameters
183 * @avg_cap: Average capacity filter
373 * ab8500_fg_add_cap_sample() - Add capacity to average filter
375 * @sample: the capacity in mAh to add to the filter
377 * A capacity is added to the filter and a new mean capacity is calculated and
412 * The capacity filter is is reset to zero.
433 * @sample: the capacity in mAh to fill the filter with
435 * The capacity filter is filled with a capacity in mAh
848 * ab8500_fg_volt_to_capacity() - Voltage based capacity
[all …]
/kernel/linux/linux-4.19/include/linux/mfd/
Dabx500.h57 * struct abx500_v_to_cap - Table for translating voltage to capacity
59 * @capacity: Capacity in percent
63 int capacity; member
87 * @user_cap_limit Capacity reported from user must be within this
140 * @charge_full_design: Maximum battery capacity in mAh
144 * @recharge_cap battery capacity limit that will trigger a new
161 * @v_to_cap_tbl: Voltage to capacity (in %) table
194 * struct abx500_bm_capacity_levels - abx500 capacity level data
195 * @critical: critical capacity level in percent
196 * @low: low capacity level in percent
[all …]
/kernel/linux/linux-5.10/include/linux/mfd/
Dabx500.h57 * struct abx500_v_to_cap - Table for translating voltage to capacity
59 * @capacity: Capacity in percent
63 int capacity; member
87 * @user_cap_limit Capacity reported from user must be within this
140 * @charge_full_design: Maximum battery capacity in mAh
144 * @recharge_cap battery capacity limit that will trigger a new
161 * @v_to_cap_tbl: Voltage to capacity (in %) table
194 * struct abx500_bm_capacity_levels - abx500 capacity level data
195 * @critical: critical capacity level in percent
196 * @low: low capacity level in percent
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/
Dbattery.yaml50 description: battery design capacity
80 ocv-capacity-celsius:
83 for each of the battery capacity lookup table.
110 '^ocv-capacity-table-[0-9]+$':
114 of the battery and corresponding battery capacity percent, which is used
115 to look up battery capacity according to current OCV value. And the open
121 - description: battery capacity percent
146 ocv-capacity-celsius = <(-10) 0 10>;
148 ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>;
150 ocv-capacity-table-1 = <4200000 100>, <4185000 95>, <4113000 90>;
[all …]
/kernel/linux/linux-4.19/drivers/power/supply/
Dds2782_battery.c30 #define DS2782_REG_RARC 0x06 /* Remaining active relative capacity */
42 #define DS2786_REG_RARC 0x02 /* Remaining active relative capacity */
53 int (*get_battery_capacity)(struct ds278x_info *info, int *capacity);
66 int capacity; member
165 static int ds2782_get_capacity(struct ds278x_info *info, int *capacity) in ds2782_get_capacity() argument
173 *capacity = raw; in ds2782_get_capacity()
205 static int ds2786_get_capacity(struct ds278x_info *info, int *capacity) in ds2786_get_capacity() argument
213 /* Relative capacity is displayed with resolution 0.5 % */ in ds2786_get_capacity()
214 *capacity = raw/2 ; in ds2786_get_capacity()
222 int capacity; in ds278x_get_status() local
[all …]
Dab8500_fg.c174 * @init_capacity: Indicate if initial capacity measuring should be done
182 * @bat_cap: Structure for battery capacity specific parameters
183 * @avg_cap: Average capacity filter
373 * ab8500_fg_add_cap_sample() - Add capacity to average filter
375 * @sample: the capacity in mAh to add to the filter
377 * A capacity is added to the filter and a new mean capacity is calculated and
412 * The capacity filter is is reset to zero.
433 * @sample: the capacity in mAh to fill the filter with
435 * The capacity filter is filled with a capacity in mAh
848 * ab8500_fg_volt_to_capacity() - Voltage based capacity
[all …]
/kernel/linux/linux-4.19/drivers/base/
Darch_topology.c36 void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity) in topology_set_cpu_scale() argument
38 per_cpu(cpu_scale, cpu) = capacity; in topology_set_cpu_scale()
112 u64 capacity; in topology_normalize_cpu_scale() local
123 capacity = (raw_capacity[cpu] << SCHED_CAPACITY_SHIFT) in topology_normalize_cpu_scale()
125 topology_set_cpu_scale(cpu, capacity); in topology_normalize_cpu_scale()
141 ret = of_property_read_u32(cpu_node, "capacity-dmips-mhz", in topology_parse_cpu_capacity()
160 pr_err("cpu_capacity: missing %pOF raw capacity\n", in topology_parse_cpu_capacity()
190 pr_debug("cpu_capacity: init cpu capacity for CPUs [%*pbl] (to_visit=%*pbl)\n", in init_cpu_capacity_callback()
221 * on ACPI-based systems we need to use the default cpu capacity in register_cpufreq_notifier()
222 * until we have the necessary code to parse the cpu capacity, so in register_cpufreq_notifier()
/kernel/linux/linux-4.19/drivers/ide/
Dide-disk.c203 * Queries for true maximum capacity of the drive.
300 u64 capacity, set_max; in ide_disk_hpa_get_native_capacity() local
302 capacity = drive->capacity64; in ide_disk_hpa_get_native_capacity()
310 if (set_max == capacity + 1) in ide_disk_hpa_get_native_capacity()
328 u64 capacity, set_max; in idedisk_check_hpa() local
331 capacity = drive->capacity64; in idedisk_check_hpa()
334 if (set_max <= capacity) in idedisk_check_hpa()
340 "\tcurrent capacity is %llu sectors (%llu MB)\n" in idedisk_check_hpa()
341 "\tnative capacity is %llu sectors (%llu MB)\n", in idedisk_check_hpa()
343 capacity, sectors_to_MB(capacity), in idedisk_check_hpa()
[all …]
/kernel/linux/linux-5.10/drivers/ide/
Dide-disk.c203 * Queries for true maximum capacity of the drive.
300 u64 capacity, set_max; in ide_disk_hpa_get_native_capacity() local
302 capacity = drive->capacity64; in ide_disk_hpa_get_native_capacity()
310 if (set_max == capacity + 1) in ide_disk_hpa_get_native_capacity()
328 u64 capacity, set_max; in idedisk_check_hpa() local
331 capacity = drive->capacity64; in idedisk_check_hpa()
334 if (set_max <= capacity) in idedisk_check_hpa()
340 "\tcurrent capacity is %llu sectors (%llu MB)\n" in idedisk_check_hpa()
341 "\tnative capacity is %llu sectors (%llu MB)\n", in idedisk_check_hpa()
343 capacity, sectors_to_MB(capacity), in idedisk_check_hpa()
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dexynos5420-cpus.dtsi34 capacity-dmips-mhz = <1024>;
46 capacity-dmips-mhz = <1024>;
58 capacity-dmips-mhz = <1024>;
70 capacity-dmips-mhz = <1024>;
82 capacity-dmips-mhz = <539>;
94 capacity-dmips-mhz = <539>;
106 capacity-dmips-mhz = <539>;
118 capacity-dmips-mhz = <539>;

12345678910>>...39