/openbmc/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 | 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() 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()
|
H A D | ds2782_battery.c | 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 210 *capacity = raw/2 ; in ds2786_get_capacity() 218 int capacity; in ds278x_get_status() local 224 err = info->ops->get_battery_capacity(info, &capacity); in ds278x_get_status() 228 info->capacity = capacity; in ds278x_get_status() 230 if (capacity == 100) in ds278x_get_status() [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/linux/drivers/misc/vmw_vmci/ |
H A D | vmci_handle_array.c | 11 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 …]
|
/openbmc/linux/drivers/scsi/ |
H A D | scsicam.c | 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() 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 block_device *bdev, sector_t capacity, int *ip) in scsicam_bios_param() argument 220 u64 capacity64 = capacity; /* Suppress gcc warning */ in scsicam_bios_param() [all …]
|
/openbmc/qemu/util/ |
H A D | fifo8.c | 25 void fifo8_create(Fifo8 *fifo, uint32_t capacity) in fifo8_create() argument 27 fifo->data = g_new(uint8_t, capacity); in fifo8_create() 28 fifo->capacity = capacity; in fifo8_create() 39 assert(fifo->num < fifo->capacity); in fifo8_push() 40 fifo->data[(fifo->head + fifo->num) % fifo->capacity] = data; in fifo8_push() 48 assert(fifo->num + num <= fifo->capacity); in fifo8_push_all() 50 start = (fifo->head + fifo->num) % fifo->capacity; in fifo8_push_all() 52 if (start + num <= fifo->capacity) { in fifo8_push_all() 55 avail = fifo->capacity - start; in fifo8_push_all() 69 fifo->head %= fifo->capacity; in fifo8_pop() [all …]
|
H A D | buffer.c | 42 size_t old = buffer->capacity; in buffer_adj_size() 43 buffer->capacity = buffer_req_size(buffer, len); in buffer_adj_size() 44 buffer->buffer = g_realloc(buffer->buffer, buffer->capacity); in buffer_adj_size() 46 old, buffer->capacity); in buffer_adj_size() 51 buffer->capacity << BUFFER_AVG_SIZE_SHIFT); in buffer_adj_size() 83 if (new < buffer->capacity >> 3 && in buffer_shrink() 93 if ((buffer->capacity - buffer->offset) < len) { in buffer_reserve() 116 trace_buffer_free(buffer->name ?: "unnamed", buffer->capacity); in buffer_free() 120 buffer->capacity = 0; in buffer_free() 148 to->capacity = from->capacity; in buffer_move_empty() [all …]
|
/openbmc/linux/rust/alloc/ |
H A D | raw_vec.rs | 93 pub fn with_capacity(capacity: usize) -> Self { in with_capacity() 94 Self::with_capacity_in(capacity, Global) in with_capacity() 101 pub fn with_capacity_zeroed(capacity: usize) -> Self { in with_capacity_zeroed() 102 Self::with_capacity_zeroed_in(capacity, Global) in with_capacity_zeroed() 131 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in() 132 Self::allocate_in(capacity, AllocInit::Uninitialized, alloc) in with_capacity_in() 138 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in() 139 Self::try_allocate_in(capacity, AllocInit::Uninitialized, alloc) in try_with_capacity_in() 146 pub fn with_capacity_zeroed_in(capacity: usize, alloc: A) -> Self { in with_capacity_zeroed_in() 147 Self::allocate_in(capacity, AllocInit::Zeroed, alloc) in with_capacity_zeroed_in() [all …]
|
/openbmc/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 ``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, 49 the term ``capacity`` interchangeably with ``capacity_orig`` for the sake of 58 Consider an hypothetical dual-core asymmetric CPU capacity system where [all …]
|
/openbmc/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 …]
|
/openbmc/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()
|
/openbmc/linux/drivers/cpufreq/ |
H A D | amd-pstate-trace.h | 29 unsigned long capacity, 41 capacity, 54 __field(unsigned long, capacity) 67 __entry->capacity = capacity; 80 (unsigned long)__entry->capacity,
|
/openbmc/qemu/io/ |
H A D | channel-buffer.c | 29 qio_channel_buffer_new(size_t capacity) in qio_channel_buffer_new() argument 35 if (capacity) { in qio_channel_buffer_new() 36 ioc->data = g_new0(uint8_t, capacity); in qio_channel_buffer_new() 37 ioc->capacity = capacity; in qio_channel_buffer_new() 48 ioc->capacity = ioc->usage = ioc->offset = 0; in qio_channel_buffer_finalize() 97 if ((bioc->offset + towrite) > bioc->capacity) { in qio_channel_buffer_writev() 98 bioc->capacity = bioc->offset + towrite; in qio_channel_buffer_writev() 99 bioc->data = g_realloc(bioc->data, bioc->capacity); in qio_channel_buffer_writev() 147 bioc->capacity = bioc->usage = bioc->offset = 0; in qio_channel_buffer_close()
|
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_plane.c | 359 uint64_t **mods, uint64_t *size, uint64_t *capacity) in add_gfx10_1_modifiers() argument 363 add_modifier(mods, size, capacity, AMD_FMT_MOD | in add_gfx10_1_modifiers() 372 add_modifier(mods, size, capacity, AMD_FMT_MOD | in add_gfx10_1_modifiers() 382 add_modifier(mods, size, capacity, AMD_FMT_MOD | in add_gfx10_1_modifiers() 387 add_modifier(mods, size, capacity, AMD_FMT_MOD | in add_gfx10_1_modifiers() 394 add_modifier(mods, size, capacity, AMD_FMT_MOD | in add_gfx10_1_modifiers() 398 add_modifier(mods, size, capacity, AMD_FMT_MOD | in add_gfx10_1_modifiers() 404 uint64_t **mods, uint64_t *size, uint64_t *capacity) in add_gfx9_modifiers() argument 425 add_modifier(mods, size, capacity, AMD_FMT_MOD | in add_gfx9_modifiers() 436 add_modifier(mods, size, capacity, AMD_FMT_MOD | in add_gfx9_modifiers() [all …]
|
/openbmc/linux/block/ |
H A D | blk-zoned.c | 142 sector_t capacity = get_capacity(disk); in blkdev_report_zones() local 147 if (!nr_zones || sector >= capacity) in blkdev_report_zones() 184 sector_t capacity = bdev_nr_sectors(bdev); in blkdev_zone_reset_all_emulated() local 201 while (sector < capacity) { in blkdev_zone_reset_all_emulated() 255 sector_t capacity = bdev_nr_sectors(bdev); in blkdev_zone_mgmt() local 269 if (end_sector <= sector || end_sector > capacity) in blkdev_zone_mgmt() 277 if (!bdev_is_zone_start(bdev, nr_sectors) && end_sector != capacity) in blkdev_zone_mgmt() 286 if (op == REQ_OP_ZONE_RESET && sector == 0 && nr_sectors == capacity) { in blkdev_zone_mgmt() 457 sector_t capacity = get_capacity(disk); in blk_revalidate_zone_cb() local 467 if (zone->start >= capacity || !zone->len) { in blk_revalidate_zone_cb() [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | virtio-blk-test.c | 118 uint64_t capacity; in test_basic() local 133 capacity = qvirtio_config_readq(dev, 0); in test_basic() 134 g_assert_cmpint(capacity, ==, TEST_IMAGE_SIZE / 512); in test_basic() 356 uint64_t capacity; in indirect() local 370 capacity = qvirtio_config_readq(dev, 0); in indirect() 371 g_assert_cmpint(capacity, ==, TEST_IMAGE_SIZE / 512); in indirect() 439 uint64_t capacity; in config() local 448 capacity = qvirtio_config_readq(dev, 0); in config() 449 g_assert_cmpint(capacity, ==, TEST_IMAGE_SIZE / 512); in config() 459 capacity = qvirtio_config_readq(dev, 0); in config() [all …]
|
/openbmc/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>;
|
/openbmc/linux/arch/arm64/boot/dts/amlogic/ |
H A D | meson-gxm.dtsi | 46 capacity-dmips-mhz = <1024>; 50 capacity-dmips-mhz = <1024>; 54 capacity-dmips-mhz = <1024>; 58 capacity-dmips-mhz = <1024>; 66 capacity-dmips-mhz = <1024>; 77 capacity-dmips-mhz = <1024>; 88 capacity-dmips-mhz = <1024>; 99 capacity-dmips-mhz = <1024>;
|
H A D | meson-g12b.dtsi | 51 capacity-dmips-mhz = <592>; 61 capacity-dmips-mhz = <592>; 71 capacity-dmips-mhz = <1024>; 81 capacity-dmips-mhz = <1024>; 91 capacity-dmips-mhz = <1024>; 101 capacity-dmips-mhz = <1024>;
|
/openbmc/linux/rust/alloc/vec/ |
H A D | mod.rs | 481 pub fn with_capacity(capacity: usize) -> Self { in with_capacity() 482 Self::with_capacity_in(capacity, Global) in with_capacity() 536 pub fn try_with_capacity(capacity: usize) -> Result<Self, TryReserveError> { in try_with_capacity() 537 Self::try_with_capacity_in(capacity, Global) in try_with_capacity() 643 pub unsafe fn from_raw_parts(ptr: *mut T, length: usize, capacity: usize) -> Self { in from_raw_parts() 644 unsafe { Self::from_raw_parts_in(ptr, length, capacity, Global) } in from_raw_parts() 727 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in() 728 Vec { buf: RawVec::with_capacity_in(capacity, alloc), len: 0 } in with_capacity_in() 787 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in() 788 Ok(Vec { buf: RawVec::try_with_capacity_in(capacity, alloc)?, len: 0 }) in try_with_capacity_in() [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | i915_drm_client.c | 74 const unsigned int capacity = i915->engine_uabi_class_count[class]; in show_client_class() local 83 if (capacity) in show_client_class() 87 if (capacity > 1) in show_client_class() 90 capacity); in show_client_class()
|