Home
last modified time | relevance | path

Searched refs:capacity (Results 1 - 25 of 404) sorted by relevance

12345678910>>...17

/kernel/linux/linux-6.6/drivers/power/supply/
H A Dsamsung-sdi-battery.c428 * so this represents the capacity ratio at different temperatures.
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
[all...]
H A 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
[all...]
H A Dacer_a500_battery.c60 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()
[all...]
H A 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...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/basics/
H A Dvector.c34 uint32_t capacity, in dal_vector_construct()
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()
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()
31 dal_vector_construct( struct vector *vector, struct dc_context *ctx, uint32_t capacity, uint32_t struct_size) dal_vector_construct() argument
114 dal_vector_create( struct dc_context *ctx, uint32_t capacity, uint32_t struct_size) dal_vector_create() argument
287 dal_vector_reserve(struct vector *vector, uint32_t capacity) dal_vector_reserve() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/basics/
H A Dvector.c32 uint32_t capacity, in dal_vector_construct()
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()
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()
29 dal_vector_construct( struct vector *vector, struct dc_context *ctx, uint32_t capacity, uint32_t struct_size) dal_vector_construct() argument
111 dal_vector_create( struct dc_context *ctx, uint32_t capacity, uint32_t struct_size) dal_vector_create() argument
284 dal_vector_reserve(struct vector *vector, uint32_t capacity) dal_vector_reserve() argument
[all...]
/kernel/linux/linux-5.10/drivers/misc/vmw_vmci/
H A 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()
[all...]
/kernel/linux/linux-6.6/drivers/misc/vmw_vmci/
H A 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()
[all...]
/kernel/linux/linux-5.10/drivers/scsi/
H A 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 / tem in setsize()
219 scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip) scsicam_bios_param() argument
[all...]
/kernel/linux/linux-6.6/drivers/scsi/
H A 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 / tem in setsize()
218 scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip) scsicam_bios_param() argument
[all...]
/kernel/linux/linux-6.6/rust/alloc/
H A Draw_vec.rs38 /// * Catches all overflows in capacity computations (promotes them to "capacity overflow" panics).
43 /// * Uses the excess returned from the allocator to use the largest available capacity.
49 /// Note that the excess of a zero-sized types is always infinite, so `capacity()` always returns
51 /// `Box<[T]>`, since `capacity()` won't yield the length.
69 /// `RawVec` with capacity `0`. If `T` is zero-sized, then it makes a
70 /// `RawVec` with capacity `usize::MAX`. Useful for implementing
78 /// capacity and alignment requirements for a `[T; capacity]`. This is
79 /// equivalent to calling `RawVec::new` when `capacity` i
263 pub fn capacity(&self) -> usize { capacity() functions
[all...]
/kernel/linux/linux-6.6/drivers/cpufreq/
H A Damd-pstate-trace.h29 unsigned long capacity,
41 capacity,
54 __field(unsigned long, capacity)
67 __entry->capacity = capacity;
80 (unsigned long)__entry->capacity,
/kernel/linux/linux-5.10/arch/arm/kernel/
H A 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_capacit in parse_dt_topology()
[all...]
/kernel/linux/linux-6.6/arch/arm/kernel/
H A 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_capacit in parse_dt_topology()
[all...]
/kernel/linux/linux-6.6/block/
H A Dblk-zoned.c142 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 || !zon in blk_revalidate_zone_cb()
540 sector_t capacity = get_capacity(disk); blk_revalidate_disk_zones() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dmub/inc/
H A Ddmub_cmd.h795 uint32_t capacity; member
805 uint32_t capacity; member
824 data_count = rb->capacity - (rb->rptr - rb->wrpt); in dmub_rb_full()
826 return (data_count == (rb->capacity - DMUB_RB_CMD_SIZE)); in dmub_rb_full()
845 if (rb->wrpt >= rb->capacity) in dmub_rb_push_front()
846 rb->wrpt %= rb->capacity; in dmub_rb_push_front()
864 if (rb->wrpt >= rb->capacity) in dmub_rb_out_push_front()
865 rb->wrpt %= rb->capacity; in dmub_rb_out_push_front()
907 if (rb->rptr >= rb->capacity) in dmub_rb_pop_front()
908 rb->rptr %= rb->capacity; in dmub_rb_pop_front()
[all...]
/kernel/linux/linux-5.10/drivers/power/supply/
H A 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...]
/kernel/linux/linux-5.10/drivers/ide/
H A 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_M in idedisk_check_hpa()
528 unsigned long long capacity; update_flush() local
659 unsigned long long capacity; ide_disk_setup() local
[all...]
/kernel/linux/linux-6.6/rust/alloc/vec/
H A Dmod.rs200 /// [Capacity and Reallocation](#capacity-and-reallocation).
264 /// The capacity of a vector is the amount of space allocated for any future
267 /// within the vector. If a vector's length exceeds its capacity, its capacity
271 /// For example, a vector with capacity 10 and length 0 would be an empty vector
273 /// vector will not change its capacity or cause reallocation to occur. However,
287 /// Most fundamentally, `Vec` is and always will be a (pointer, capacity, length)
293 /// if you construct a `Vec` with capacity 0 via [`Vec::new`], [`vec![]`][`vec!`],
297 /// the `Vec` might not report a [`capacity`] of 0*. `Vec` will allocate if and only
298 /// if <code>[mem::size_of::\<T>]\() * [capacity]\() >
1003 pub fn capacity(&self) -> usize { capacity() functions
[all...]
/kernel/linux/linux-5.10/drivers/staging/fwserial/
H A Ddma_fifo.c61 int capacity; in dma_fifo_alloc() local
67 capacity = size + align * open_limit + align * DMA_FIFO_GUARD; in dma_fifo_alloc()
68 fifo->data = kmalloc(capacity, gfp_mask); in dma_fifo_alloc()
82 fifo->capacity = capacity; in dma_fifo_alloc()
153 ofs = fifo->in % fifo->capacity; in dma_fifo_in()
154 l = min(n, fifo->capacity - ofs); in dma_fifo_in()
202 ofs = fifo->out % fifo->capacity; in dma_fifo_out_pend()
203 l = fifo->capacity - ofs; in dma_fifo_out_pend()
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_plane.c358 uint64_t **mods, uint64_t *size, uint64_t *capacity) in add_gfx10_1_modifiers()
362 add_modifier(mods, size, capacity, AMD_FMT_MOD | in add_gfx10_1_modifiers()
371 add_modifier(mods, size, capacity, AMD_FMT_MOD | in add_gfx10_1_modifiers()
381 add_modifier(mods, size, capacity, AMD_FMT_MOD | in add_gfx10_1_modifiers()
386 add_modifier(mods, size, capacity, AMD_FMT_MOD | in add_gfx10_1_modifiers()
393 add_modifier(mods, size, capacity, AMD_FMT_MOD | in add_gfx10_1_modifiers()
397 add_modifier(mods, size, capacity, AMD_FMT_MOD | in add_gfx10_1_modifiers()
403 uint64_t **mods, uint64_t *size, uint64_t *capacity) in add_gfx9_modifiers()
424 add_modifier(mods, size, capacity, AMD_FMT_MOD | in add_gfx9_modifiers()
435 add_modifier(mods, size, capacity, AMD_FMT_MO in add_gfx9_modifiers()
357 add_gfx10_1_modifiers(const struct amdgpu_device *adev, uint64_t **mods, uint64_t *size, uint64_t *capacity) add_gfx10_1_modifiers() argument
402 add_gfx9_modifiers(const struct amdgpu_device *adev, uint64_t **mods, uint64_t *size, uint64_t *capacity) add_gfx9_modifiers() argument
508 add_gfx10_3_modifiers(const struct amdgpu_device *adev, uint64_t **mods, uint64_t *size, uint64_t *capacity) add_gfx10_3_modifiers() argument
580 add_gfx11_modifiers(struct amdgpu_device *adev, uint64_t **mods, uint64_t *size, uint64_t *capacity) add_gfx11_modifiers() argument
647 uint64_t size = 0, capacity = 128; get_plane_modifiers() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/include/
H A Dvector.h33 uint32_t capacity; member
40 uint32_t capacity,
45 uint32_t capacity,
104 bool dal_vector_reserve(struct vector *vector, uint32_t capacity);
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/include/
H A Dvector.h33 uint32_t capacity; member
40 uint32_t capacity,
45 uint32_t capacity,
104 bool dal_vector_reserve(struct vector *vector, uint32_t capacity);
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/
H A Di915_drm_client.c74 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()
88 drm_printf(p, "drm-engine-capacity-%s:\t%u\n", in show_client_class()
90 capacity); in show_client_class()
/kernel/linux/linux-5.10/kernel/sched/
H A Dsched_avg.c161 unsigned long capacity, flags; in sched_get_cpu_util() local
167 capacity = capacity_orig_of(cpu); in sched_get_cpu_util()
178 util = (util >= capacity) ? capacity : util; in sched_get_cpu_util()
179 busy = div64_ul((util * 100), capacity); in sched_get_cpu_util()

Completed in 16 milliseconds

12345678910>>...17