| /linux/drivers/power/supply/ |
| H A D | samsung-sdi-battery.c | 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}, 459 { .ocv = 4062000, .capacity = 75}, 460 { .ocv = 4013000, .capacity = 70}, [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 | acer_a500_battery.c | 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() 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 | ds2782_battery.c | 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 209 *capacity = raw/2 ; in ds2786_get_capacity() 217 int capacity; in ds278x_get_status() local 223 err = info->ops->get_battery_capacity(info, &capacity); in ds278x_get_status() 227 info->capacity = capacity; in ds278x_get_status() 229 if (capacity == 100) in ds278x_get_status() [all …]
|
| H A D | rx51_battery.c | 134 int capacity = rx51_battery_read_adc(di->channel_bsi); in rx51_battery_read_capacity() local 136 if (capacity < 0) { in rx51_battery_read_capacity() 137 dev_err(di->dev, "Could not read ADC: %d\n", capacity); in rx51_battery_read_capacity() 138 return capacity; in rx51_battery_read_capacity() 141 return 1280 * (1200 * capacity)/(1024 - capacity); in rx51_battery_read_capacity()
|
| /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/drivers/scsi/ |
| H A D | scsicam.c | 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() 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() 191 if (capacity % temp) { /* If no remainder, done! */ in setsize() 194 cylinders = capacity / temp; /* Compute number of cylinders */ in setsize() 218 int scsicam_bios_param(struct gendisk *disk, sector_t capacity, int *ip) in scsicam_bios_param() argument 220 u64 capacity64 = capacity; /* Suppress gcc warning */ in scsicam_bios_param() [all …]
|
| H A D | sd_zbc.c | 66 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() 74 sectors_to_logical(sdp, zone.capacity), in sd_zbc_parse_report() 242 if (!sdkp->capacity) in sd_zbc_report_zones() 250 while (zone_idx < nr_zones && lba < sdkp->capacity) { in sd_zbc_report_zones() 489 if (sdkp->capacity != max_lba + 1) { in sd_zbc_check_capacity() 493 (unsigned long long)sdkp->capacity, in sd_zbc_check_capacity() 495 sdkp->capacity = max_lba + 1; in sd_zbc_check_capacity() 527 if (sdkp->device->type != TYPE_ZBC || !sdkp->capacity) in sd_zbc_print_zones() 530 if (sdkp->capacity & (sdkp->zone_info.zone_blocks - 1)) in sd_zbc_print_zones() [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(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/Documentation/scheduler/ |
| H A D | sched-capacity.rst | 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 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 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/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
|
| H A D | page-allocator.rst | 9 allocator based on the selected `Memory Zone` and `NUMA node` the capacity is 24 `local` capacity for that compute node. 29 CXL capacity may be onlined in :code:`ZONE_NORMAL` or :code:`ZONE_MOVABLE`. 46 Let's consider a configuration where the local DRAM capacity is largely onlined 47 into :code:`ZONE_NORMAL`, with no :code:`ZONE_MOVABLE` capacity present. The 48 CXL capacity has the opposite configuration - all onlined in 63 for CXL capacity to be used is via `demotion` in the reclaim path. 66 capacity - when that capacity is depleted, the page allocator will actually
|
| /linux/drivers/md/dm-vdo/indexer/ |
| H A D | sparse-cache.c | 138 u8 capacity; member 156 unsigned int capacity; member 243 (cache->capacity * sizeof(struct cached_chapter_index *))); in make_search_list() 248 list->capacity = cache->capacity; in make_search_list() 251 for (i = 0; i < list->capacity; i++) in make_search_list() 258 int uds_make_sparse_cache(const struct index_geometry *geometry, unsigned int capacity, in uds_make_sparse_cache() argument 266 bytes = (sizeof(struct sparse_cache) + (capacity * sizeof(struct cached_chapter_index))); in uds_make_sparse_cache() 272 cache->capacity = capacity; in uds_make_sparse_cache() 284 for (i = 0; i < capacity; i++) { in uds_make_sparse_cache() 297 result = vdo_allocate(capacity * 2, struct cached_chapter_index *, in uds_make_sparse_cache() [all …]
|
| /linux/arch/arm/kernel/ |
| H A D | topology.c | 91 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/drivers/md/dm-vdo/ |
| H A D | int-map.c | 98 size_t capacity; member 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 190 capacity = (initial_capacity > 0) ? initial_capacity : DEFAULT_CAPACITY; in vdo_int_map_create() 196 capacity = capacity * 100 / DEFAULT_LOAD; in vdo_int_map_create() 198 result = allocate_buckets(map, capacity); in vdo_int_map_create() 307 return &map->buckets[(hash * map->capacity) >> 32]; in select_bucket() 379 size_t new_capacity = map->capacity / 2 * 3; in resize_buckets() [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 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 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/drivers/cpufreq/ |
| H A D | amd-pstate-trace.h | 29 u8 capacity, 40 capacity, 52 __field(u8, capacity) 64 __entry->capacity = capacity; 76 (u8)__entry->capacity,
|
| /linux/drivers/base/ |
| H A D | arch_topology.c | 176 unsigned long max_capacity, capacity, pressure; in topology_update_hw_pressure() local 189 capacity = max_capacity; in topology_update_hw_pressure() 191 capacity = mult_frac(max_capacity, capped_freq, max_freq); in topology_update_hw_pressure() 193 pressure = max_capacity - capacity; in topology_update_hw_pressure() 236 u64 capacity; in topology_normalize_cpu_scale() local 245 capacity = raw_capacity[cpu] * in topology_normalize_cpu_scale() 247 capacity_scale = max(capacity, capacity_scale); in topology_normalize_cpu_scale() 252 capacity = raw_capacity[cpu] * in topology_normalize_cpu_scale() 254 capacity = div64_u64(capacity << SCHED_CAPACITY_SHIFT, in topology_normalize_cpu_scale() 256 topology_set_cpu_scale(cpu, capacity); in topology_normalize_cpu_scale() [all …]
|
| /linux/arch/arm/boot/dts/samsung/ |
| H A D | exynos5420-cpus.dtsi | 66 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 D | exynos5422-cpus.dtsi | 65 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/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_plane.c | 404 uint64_t *capacity) in amdgpu_dm_plane_add_gfx10_1_modifiers() argument 408 amdgpu_dm_plane_add_modifier(mods, size, capacity, AMD_FMT_MOD | in amdgpu_dm_plane_add_gfx10_1_modifiers() 417 amdgpu_dm_plane_add_modifier(mods, size, capacity, AMD_FMT_MOD | in amdgpu_dm_plane_add_gfx10_1_modifiers() 427 amdgpu_dm_plane_add_modifier(mods, size, capacity, AMD_FMT_MOD | in amdgpu_dm_plane_add_gfx10_1_modifiers() 432 amdgpu_dm_plane_add_modifier(mods, size, capacity, AMD_FMT_MOD | in amdgpu_dm_plane_add_gfx10_1_modifiers() 439 amdgpu_dm_plane_add_modifier(mods, size, capacity, AMD_FMT_MOD | in amdgpu_dm_plane_add_gfx10_1_modifiers() 443 amdgpu_dm_plane_add_modifier(mods, size, capacity, AMD_FMT_MOD | in amdgpu_dm_plane_add_gfx10_1_modifiers() 451 uint64_t *capacity) in amdgpu_dm_plane_add_gfx9_modifiers() argument 472 amdgpu_dm_plane_add_modifier(mods, size, capacity, AMD_FMT_MOD | in amdgpu_dm_plane_add_gfx9_modifiers() 483 amdgpu_dm_plane_add_modifier(mods, size, capacity, AMD_FMT_MOD | in amdgpu_dm_plane_add_gfx9_modifiers() [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-steelseries.c | 389 static int battery_capacity_to_level(int capacity) in battery_capacity_to_level() argument 391 if (capacity >= 50) in battery_capacity_to_level() 393 if (capacity >= 20) in battery_capacity_to_level() 618 static uint8_t steelseries_headset_map_capacity(uint8_t capacity, uint8_t min_in, uint8_t max_in) in steelseries_headset_map_capacity() argument 620 if (capacity >= max_in) in steelseries_headset_map_capacity() 622 if (capacity <= min_in) in steelseries_headset_map_capacity() 624 return (capacity - min_in) * 100 / (max_in - min_in); in steelseries_headset_map_capacity() 632 int capacity = sd->battery_capacity; in steelseries_headset_raw_event() local 652 capacity = 100; in steelseries_headset_raw_event() 655 capacity = read_buf[3]; in steelseries_headset_raw_event() [all …]
|