| /linux/drivers/power/supply/ ! |
| H A D | samsung-sdi-battery.c | 428 * 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 …]
|
| H A D | ab8500_bmdata.c | 20 { .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 …]
|
| H A D | sc27xx_fuel_gauge.c | 82 * @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 …]
|
| H A D | acer_a500_battery.c | 39 [REG_CAPACITY] = EC_DATA(0x00, CAPACITY), 61 unsigned int capacity; member 66 unsigned int capacity; in a500_battery_update_capacity() local 69 err = regmap_read(bat->regmap, ec_data[REG_CAPACITY].reg, &capacity); in a500_battery_update_capacity() 73 /* capacity can be >100% even if max value is 100% */ in a500_battery_update_capacity() 74 capacity = min(capacity, 100u); in a500_battery_update_capacity() 76 if (bat->capacity != capacity) { in a500_battery_update_capacity() 77 bat->capacity = capacity; in a500_battery_update_capacity() 86 if (bat->capacity < 100) { in a500_battery_get_status() 165 val->intval = bat->capacity; in a500_battery_get_property()
|
| H A D | ab8500_fg.c | 171 * @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 …]
|
| H A D | ds2782_battery.c | 27 #define DS2782_REG_RARC 0x06 /* Remaining active relative capacity */ 39 #define DS2786_REG_RARC 0x02 /* Remaining active relative capacity */ 50 int (*get_battery_capacity)(struct ds278x_info *info, int *capacity); 62 int capacity; member 160 static int ds2782_get_capacity(struct ds278x_info *info, int *capacity) in ds2782_get_capacity() argument 168 *capacity = raw; in ds2782_get_capacity() 200 static int ds2786_get_capacity(struct ds278x_info *info, int *capacity) in ds2786_get_capacity() argument 208 /* Relative capacity is displayed with resolution 0.5 % */ in ds2786_get_capacity() 209 *capacity = raw/2 ; in ds2786_get_capacity() 217 int capacity; in ds278x_get_status() local [all …]
|
| /linux/Documentation/scheduler/ ! |
| H A D | sched-capacity.rst | 2 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/drivers/gpu/drm/amd/display/dc/basics/ ! |
| H A D | vector.c | 32 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/Documentation/translations/zh_CN/scheduler/ ! |
| H A D | sched-capacity.rst | 4 :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/arch/arm/kernel/ ! |
| H A D | topology.c | 34 * 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/Documentation/devicetree/bindings/cpu/ ! |
| H A D | cpu-capacity.txt | 2 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/drivers/scsi/ ! |
| H A D | scsicam.c | 52 * @capacity: size of the disk in sectors 60 bool scsi_partsize(struct gendisk *disk, 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 …]
|
| H A D | sd_zbc.c | 64 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() 70 "Invalid zone at LBA %llu with capacity %llu and length %llu; granularity = %llu\n", 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() 456 * sd_zbc_check_capacity - Check the device capacity 461 * Get the device zone size and check that the device capacity as reported 462 * by READ CAPACITY matches the max_lba value (plus one) of the report zones 481 /* The max_lba field is the capacity of this device */ in sd_zbc_check_capacity() [all …]
|
| /linux/drivers/misc/vmw_vmci/ ! |
| H A D | vmci_handle_array.c | 11 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 …]
|
| /linux/Documentation/power/ ! |
| H A D | power_supply_class.rst | 61 | **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/Documentation/driver-api/cxl/allocation/ ! |
| H A D | hugepages.rst | 10 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/Documentation/driver-api/cxl/linux/ ! |
| H A D | memory-hotplug.rst | 32 :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/Documentation/driver-api/cxl/platform/ ! |
| H A D | device-hotplug.rst | 42 A device present at boot likely had its capacity reported in the 44 the capacity of the new device will be limited to the original CFMWS capacity. 46 Adding capacity larger than the original device will cause memory region 60 expanders as a single large-capacity device, should report the **maximum 61 possible capacity** for the device at boot. :: 72 Limiting the size to the capacity preset at boot will limit hot-add support 73 to replacing capacity that was present at boot. 85 a CEDT CFMWS region with sufficient memory capacity to cover all future 86 potentially added capacity (along with any relevant CEDT CHBS entry). 91 memory capacity. :: [all …]
|
| /linux/Documentation/devicetree/bindings/power/supply/ ! |
| H A D | battery.yaml | 64 description: battery design capacity 108 ocv-capacity-celsius: 111 for each of the battery capacity lookup table. 139 description: Table of capacity values matching the values in VDR tables. 150 '^ocv-capacity-table-[0-9]+$': 154 of the battery and corresponding battery capacity percent, which is used 155 to look up battery capacity according to current OCV value. And the open 161 - description: battery capacity percent 166 table should match a capacity value in the volt-drop-soc table. 193 ocv-capacity-celsius = <(-10) 0 10>; [all …]
|
| /linux/kernel/cgroup/ ! |
| H A D | misc.c | 37 * Miscellaneous resources capacity for the entire machine. 0 capacity means 40 * root_cg.max and capacity are independent of each other. root_cg.max can be 41 * more than the actual capacity. We are using Limits resource distribution 75 * misc_cg_set_capacity() - Set the capacity of the misc cgroup res. 77 * @capacity: Supported capacity of the misc res on the host. 79 * If capacity is 0 then the charging a misc cgroup fails for that type. 83 * * %0 - Successfully registered the capacity. 86 int misc_cg_set_capacity(enum misc_res_type type, u64 capacity) in misc_cg_set_capacity() argument 91 WRITE_ONCE(misc_res_capacity[type], capacity); in misc_cg_set_capacity() 148 * * -EINVAL - If @type is invalid or misc res has 0 capacity. [all …]
|
| /linux/fs/xfs/libxfs/ ! |
| H A D | xfs_zones.c | 33 zone->wp >= zone->start + zone->capacity) { in xfs_validate_blk_zone_seq() 43 *write_pointer = XFS_BB_TO_FSB(mp, zone->capacity); in xfs_validate_blk_zone_seq() 85 * Check that the zone capacity matches the rtgroup size stored in the in xfs_validate_blk_zone() 87 * uniform capacity. in xfs_validate_blk_zone() 89 if (XFS_BB_TO_FSB(mp, zone->capacity) != expected_capacity) { in xfs_validate_blk_zone() 91 "zone %u capacity (%llu) does not match RT group size (%u).", in xfs_validate_blk_zone() 92 zone_no, XFS_BB_TO_FSB(mp, zone->capacity), in xfs_validate_blk_zone()
|
| /linux/rust/kernel/alloc/ ! |
| H A D | kvec.rs | 79 /// capacity of the vector (the number of elements that currently fit into the vector), its length 97 /// without re-allocation. For ZSTs `self.layout`'s capacity is zero. However, it is legal for the 100 /// - `self.len()` is always less than or equal to `self.capacity()`. 108 /// Note: This isn't quite the same as `Self::capacity`, which in contrast returns the number of 181 pub const fn capacity(&self) -> usize { in capacity() function 199 /// - `additional` must be less than or equal to `self.capacity - self.len`. 204 debug_assert!(additional <= self.capacity() - self.len()); in inc_len() 288 // - `layout` is an empty `ArrayLayout` (zero capacity) in new() 299 /// Returns a slice of `MaybeUninit<T>` for the remaining spare capacity of the vector. 302 // - `self.len` is smaller than `self.capacity` by the type invariant and hence, the in spare_capacity_mut() [all …]
|
| /linux/lib/ ! |
| H A D | objpool.c | 24 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/drivers/md/dm-vdo/ ! |
| H A D | int-map.c | 92 * capacity and bucket_count are different. 97 /** @capacity: The number of neighborhoods in the map. */ 98 size_t capacity; member 153 * @capacity: The initial capacity of the map. 157 static int allocate_buckets(struct int_map *map, size_t capacity) in allocate_buckets() argument 160 map->capacity = capacity; in allocate_buckets() 166 map->bucket_count = capacity + (NEIGHBORHOOD - 1); in allocate_buckets() 183 size_t capacity; in vdo_int_map_create() local 189 /* Use the default capacity if the caller did not specify one. */ in vdo_int_map_create() 190 capacity = (initial_capacity > 0) ? initial_capacity : DEFAULT_CAPACITY; in vdo_int_map_create() [all …]
|
| /linux/arch/s390/kernel/ ! |
| H A D | hiperdispatch.c | 10 * Dynamically calculates the optimum number of high capacity COREs 12 * that a capacity update is necessary, it schedules a topology update. 18 * determine high capacity CPU count. 32 * 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 …]
|