/linux-master/include/scsi/ |
H A D | scsicam.h | 16 int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip); 17 bool scsi_partsize(struct block_device *bdev, sector_t capacity, int geom[3]);
|
/linux-master/drivers/power/supply/ |
H A D | samsung-sdi-battery.c | 428 * 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 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 [all...] |
H A D | acer_a500_battery.c | 60 unsigned int capacity; member in struct:a500_battery 65 unsigned int capacity; local 68 err = regmap_read(bat->regmap, ec_data[REG_CAPACITY].reg, &capacity); 72 /* capacity can be >100% even if max value is 100% */ 73 capacity = min(capacity, 100u); 75 if (bat->capacity != capacity) { 76 bat->capacity = capacity; [all...] |
H A D | ds2782_battery.c | 26 #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 in struct:ds278x_info 161 static int ds2782_get_capacity(struct ds278x_info *info, int *capacity) argument 169 *capacity = raw; 201 static int ds2786_get_capacity(struct ds278x_info *info, int *capacity) argument 209 /* Relative capacity is displayed with resolution 0.5 % */ 210 *capacity = raw/2 ; 218 int capacity; local [all...] |
H A D | rx51_battery.c | 134 int capacity = rx51_battery_read_adc(di->channel_bsi); local 136 if (capacity < 0) { 137 dev_err(di->dev, "Could not read ADC: %d\n", capacity); 138 return capacity; 141 return 1280 * (1200 * capacity)/(1024 - capacity);
|
/linux-master/include/linux/power/ |
H A D | twl4030_madc_battery.h | 23 unsigned int capacity; /* total capacity in uAh */ member in struct:twl4030_madc_bat_platform_data
|
/linux-master/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) argument 15 if (max_capacity == 0 || capacity > max_capacity) 18 if (capacity == 0) 19 capacity = min((u32)VMCI_HANDLE_ARRAY_DEFAULT_CAPACITY, 22 array = kmalloc(struct_size(array, entries, capacity), GFP_ATOMIC); 26 array->capacity = capacity; 43 if (unlikely(array->size >= array->capacity)) { 46 u32 capacity_bump = min(array->max_capacity - array->capacity, 47 array->capacity); [all...] |
H A D | vmci_handle_array.h | 16 u32 capacity; member in struct:vmci_handle_arr 20 struct vmci_handle entries[] __counted_by(capacity); 23 /* Select a default capacity that results in a 64 byte sized array */ 26 struct vmci_handle_arr *vmci_handle_arr_create(u32 capacity, u32 max_capacity);
|
/linux-master/drivers/scsi/ |
H A D | scsicam.c | 52 * @capacity: size of the disk in sectors 60 bool scsi_partsize(struct block_device *bdev, sector_t capacity, int geom[3]) argument 124 geom[2] = (unsigned long)capacity / 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, argument 185 heads = capacity / temp; /* Compute value for number of heads */ 186 if (capacity % temp) { /* If no remainder, done! */ 189 sectors = capacity / tem 218 scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip) argument [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/basics/ |
H A D | vector.c | 32 uint32_t capacity, 37 if (!struct_size || !capacity) { 43 vector->container = kcalloc(capacity, struct_size, GFP_KERNEL); 46 vector->capacity = capacity; 85 vector->capacity = count; 113 uint32_t capacity, 121 if (dal_vector_construct(vector, ctx, capacity, struct_size)) 134 vector->capacity = 0; 209 if (vector->count == vector->capacity) { 29 dal_vector_construct( struct vector *vector, struct dc_context *ctx, uint32_t capacity, uint32_t struct_size) argument 111 dal_vector_create( struct dc_context *ctx, uint32_t capacity, uint32_t struct_size) argument 284 dal_vector_reserve(struct vector *vector, uint32_t capacity) argument [all...] |
/linux-master/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,
|
/linux-master/drivers/gpu/drm/amd/display/include/ |
H A D | vector.h | 33 uint32_t capacity; member in struct:vector 40 uint32_t capacity, 45 uint32_t capacity, 104 bool dal_vector_reserve(struct vector *vector, uint32_t capacity);
|
/linux-master/drivers/md/dm-vdo/indexer/ |
H A D | sparse-cache.h | 30 unsigned int capacity, unsigned int zone_count,
|
H A D | sparse-cache.c | 138 u8 capacity; member in struct:search_list 156 unsigned int capacity; member in struct:sparse_cache 243 (cache->capacity * sizeof(struct cached_chapter_index *))); 248 list->capacity = cache->capacity; 251 for (i = 0; i < list->capacity; i++) 258 int uds_make_sparse_cache(const struct index_geometry *geometry, unsigned int capacity, argument 266 bytes = (sizeof(struct sparse_cache) + (capacity * sizeof(struct cached_chapter_index))); 272 cache->capacity = capacity; [all...] |
/linux-master/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; local 128 capacity = ((be32_to_cpup(rate)) >> 20) * cpu_eff->efficiency; 130 /* Save min capacity of the system */ 131 if (capacity < min_capacit [all...] |
/linux-master/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 in struct:int_map 153 * @capacity: The initial capacity of the map. 157 static int allocate_buckets(struct int_map *map, size_t capacity) argument 160 map->capacity = capacity; 166 map->bucket_count = capacity + (NEIGHBORHOOD - 1); 183 size_t capacity; local [all...] |
/linux-master/block/ |
H A D | blk-zoned.c | 141 sector_t capacity = get_capacity(disk); local 146 if (!nr_zones || sector >= capacity) 182 sector_t capacity = bdev_nr_sectors(bdev); local 199 while (sector < capacity) { 252 sector_t capacity = bdev_nr_sectors(bdev); local 266 if (end_sector <= sector || end_sector > capacity) 274 if (!bdev_is_zone_start(bdev, nr_sectors) && end_sector != capacity) 283 if (op == REQ_OP_ZONE_RESET && sector == 0 && nr_sectors == capacity) { 453 sector_t capacity = get_capacity(disk); local 463 if (zone->start >= capacity || !zon 536 sector_t capacity = get_capacity(disk); local [all...] |
/linux-master/include/linux/ |
H A D | misc_cgroup.h | 58 int misc_cg_set_capacity(enum misc_res_type type, u64 capacity); 106 static inline int misc_cg_set_capacity(enum misc_res_type type, u64 capacity) argument
|
H A D | objpool.h | 24 * 1) Maximum objects (capacity) is fixed after objpool creation 34 * @mask: bits mask for modulo capacity to compute array indexes 73 * @capacity: max objs can be managed by one objpool_slot 85 int capacity; member in struct:objpool_head
|
/linux-master/include/linux/usb/ |
H A D | ljca.h | 75 * @capacity: ljca i2c client device capacity 80 u8 capacity; member in struct:ljca_i2c_info 88 * @capacity: ljca spi client device capacity 92 u8 capacity; member in struct:ljca_spi_info
|
/linux-master/lib/ |
H A D | objpool.c | 24 void *obj = (void *)&slot->entries[pool->capacity]; 28 slot->mask = pool->capacity - 1; 68 size = struct_size(slot, entries, pool->capacity) + 116 int rc, capacity, slot_size; local 126 /* calculate capacity of percpu objpool_slot */ 127 capacity = roundup_pow_of_two(nr_objs); 128 if (!capacity) 135 pool->capacity = capacity;
|
/linux-master/drivers/base/ |
H A D | arch_topology.c | 158 void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity) argument 160 per_cpu(cpu_scale, cpu) = capacity; 167 * @cpus : The related CPUs for which capacity has been reduced 182 unsigned long max_capacity, capacity, th_pressure; local 195 capacity = max_capacity; 197 capacity = mult_frac(max_capacity, capped_freq, max_freq); 199 th_pressure = max_capacity - capacity; 248 cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "topology/cpu-capacity", 286 u64 capacity; local 295 capacity 370 u64 capacity, capacity_scale = 0; local [all...] |
/linux-master/drivers/scsi/aic7xxx/ |
H A D | aiclib.h | 122 aic_sector_div(sector_t capacity, int heads, int sectors) argument 125 sector_div(capacity, (heads * sectors)); 126 return (int)capacity;
|
/linux-master/fs/overlayfs/ |
H A D | params.h | 30 size_t capacity; member in struct:ovl_fs_context
|