Home
last modified time | relevance | path

Searched refs:capacity (Results 1 – 25 of 38) sorted by relevance

12

/linux-4.19.296/drivers/misc/vmw_vmci/
Dvmci_handle_array.c19 static size_t handle_arr_calc_size(u32 capacity) in handle_arr_calc_size() argument
22 capacity * sizeof(struct vmci_handle); in handle_arr_calc_size()
25 struct vmci_handle_arr *vmci_handle_arr_create(u32 capacity, u32 max_capacity) in vmci_handle_arr_create() argument
29 if (max_capacity == 0 || capacity > max_capacity) in vmci_handle_arr_create()
32 if (capacity == 0) in vmci_handle_arr_create()
33 capacity = min((u32)VMCI_HANDLE_ARRAY_DEFAULT_CAPACITY, in vmci_handle_arr_create()
36 array = kmalloc(handle_arr_calc_size(capacity), GFP_ATOMIC); in vmci_handle_arr_create()
40 array->capacity = capacity; in vmci_handle_arr_create()
57 if (unlikely(array->size >= array->capacity)) { in vmci_handle_arr_append_entry()
60 u32 capacity_bump = min(array->max_capacity - array->capacity, in vmci_handle_arr_append_entry()
[all …]
Dvmci_handle_array.h24 u32 capacity; member
40 struct vmci_handle_arr *vmci_handle_arr_create(u32 capacity, u32 max_capacity);
/linux-4.19.296/drivers/base/
Darch_topology.c36 void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity) in topology_set_cpu_scale() argument
38 per_cpu(cpu_scale, cpu) = capacity; in topology_set_cpu_scale()
112 u64 capacity; in topology_normalize_cpu_scale() local
123 capacity = (raw_capacity[cpu] << SCHED_CAPACITY_SHIFT) in topology_normalize_cpu_scale()
125 topology_set_cpu_scale(cpu, capacity); in topology_normalize_cpu_scale()
DKconfig275 CPU capacity information from DT, usage of such information for
276 appropriate scaling, sysfs interface for changing capacity values at
/linux-4.19.296/include/scsi/
Dscsicam.h16 extern int scsicam_bios_param (struct block_device *bdev, sector_t capacity, int *ip);
17 extern int scsi_partsize(unsigned char *buf, unsigned long capacity,
/linux-4.19.296/drivers/uwb/
Die.c203 int capacity; in uwb_rc_ie_setup() local
205 capacity = uwb_rc_get_ie(uwb_rc, &ie_info); in uwb_rc_ie_setup()
206 if (capacity < 0) in uwb_rc_ie_setup()
207 return capacity; in uwb_rc_ie_setup()
214 uwb_rc->ies_capacity = capacity; in uwb_rc_ie_setup()
/linux-4.19.296/drivers/hid/
Dhid-logitech-hidpp.c126 int capacity; member
556 hidpp->battery.capacity = response.rap.params[0]; in hidpp10_query_battery_mileage()
569 int status, capacity, level; in hidpp10_battery_event() local
577 capacity = hidpp->battery.capacity; in hidpp10_battery_event()
582 capacity = report->rap.params[0]; in hidpp10_battery_event()
590 changed = capacity != hidpp->battery.capacity || in hidpp10_battery_event()
956 static int hidpp_map_battery_level(int capacity) in hidpp_map_battery_level() argument
958 if (capacity < 11) in hidpp_map_battery_level()
964 else if (capacity < 30) in hidpp_map_battery_level()
966 else if (capacity < 81) in hidpp_map_battery_level()
[all …]
Dhid-input.c541 int capacity; in hidinput_update_battery() local
549 capacity = hidinput_scale_battery_capacity(dev, value); in hidinput_update_battery()
552 capacity != dev->battery_capacity) { in hidinput_update_battery()
553 dev->battery_capacity = capacity; in hidinput_update_battery()
/linux-4.19.296/include/linux/qed/
Dqed_chain.h133 u32 capacity; member
222 return (u16)(p_chain->capacity - used); in qed_chain_get_elem_left()
239 return p_chain->capacity - used; in qed_chain_get_elem_left_u32()
401 return p_chain->capacity; in qed_chain_get_capacity()
501 for (i = 0; i < p_chain->capacity; i++) in qed_chain_reset()
547 p_chain->capacity = p_chain->usable_per_page * page_cnt; in qed_chain_init_params()
/linux-4.19.296/include/linux/power/
Dtwl4030_madc_battery.h32 unsigned int capacity; /* total capacity in uAh */ member
Dbq27xxx_battery.h49 int capacity; member
/linux-4.19.296/include/linux/
Darch_topology.h25 void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity);
Dcdrom.h48 int capacity; /* number of discs in jukebox */ member
/linux-4.19.296/include/uapi/linux/
Dvirtio_blk.h58 __u64 capacity; member
/linux-4.19.296/drivers/of/unittest-data/
Doverlay.dts47 gondola-capacity = < 6 >;
/linux-4.19.296/fs/exofs/
Dsuper.c916 uint64_t capacity = ULLONG_MAX; in exofs_statfs() local
935 capacity = get_unaligned_be64(attrs[0].val_ptr); in exofs_statfs()
936 if (unlikely(!capacity)) in exofs_statfs()
937 capacity = ULLONG_MAX; in exofs_statfs()
950 buf->f_blocks = capacity >> 9; in exofs_statfs()
951 buf->f_bfree = (capacity - used) >> 9; in exofs_statfs()
/linux-4.19.296/drivers/message/fusion/
Dmptscsih.h125 …ih_bios_param(struct scsi_device * sdev, struct block_device *bdev, sector_t capacity, int geom[]);
/linux-4.19.296/drivers/edac/
Dpnd2_edac.c1235 u64 capacity; in apl_get_dimm_config() local
1261 capacity = (d->rken0 + d->rken1) * 8 * (1ul << dimms[g].rowbits) * in apl_get_dimm_config()
1263 edac_dbg(0, "Channel %d: %lld MByte DIMM\n", i, capacity >> (20 - 3)); in apl_get_dimm_config()
1264 dimm->nr_pages = MiB_TO_PAGES(capacity >> (20 - 3)); in apl_get_dimm_config()
1282 u64 capacity; in dnv_get_dimm_config() local
1328 capacity = ranks_of_dimm[j] * banks * (1ul << rowbits) * (1ul << colbits); in dnv_get_dimm_config()
1329 edac_dbg(0, "Channel %d DIMM %d: %lld MByte DIMM\n", i, j, capacity >> (20 - 3)); in dnv_get_dimm_config()
1330 dimm->nr_pages = MiB_TO_PAGES(capacity >> (20 - 3)); in dnv_get_dimm_config()
/linux-4.19.296/include/linux/mfd/
Dabx500.h63 int capacity; member
/linux-4.19.296/drivers/memstick/core/
Dmspro_block.c1177 unsigned long capacity; in mspro_block_init_disk() local
1233 capacity = be16_to_cpu(sys_info->user_block_count); in mspro_block_init_disk()
1234 capacity *= be16_to_cpu(sys_info->block_size); in mspro_block_init_disk()
1235 capacity *= msb->page_size >> 9; in mspro_block_init_disk()
1236 set_capacity(msb->disk, capacity); in mspro_block_init_disk()
1237 dev_dbg(&card->dev, "capacity set %ld\n", capacity); in mspro_block_init_disk()
Dms_block.c2101 unsigned long capacity; in msb_init_disk() local
2136 capacity = msb->pages_in_block * msb->logical_block_count; in msb_init_disk()
2137 capacity *= (msb->page_size / 512); in msb_init_disk()
2138 set_capacity(msb->disk, capacity); in msb_init_disk()
2139 dbg("Set total disk size to %lu sectors", capacity); in msb_init_disk()
/linux-4.19.296/include/net/9p/
D9p.h562 size_t capacity; member
/linux-4.19.296/include/linux/mmc/
Dcard.h40 unsigned int capacity; member
/linux-4.19.296/drivers/cpufreq/
DKconfig196 the utilization/capacity ratio coming from the scheduler. If the
200 frequency tipping point is at utilization/capacity equal to 80% in
/linux-4.19.296/drivers/cdrom/
Dcdrom.c1319 cdi->capacity * sizeof(struct cdrom_slot); in cdrom_read_mech_status()
1365 cdi->capacity = 0; in cdrom_number_of_slots()
2385 if (arg >= cdi->capacity) in cdrom_ioctl_media_changed()
2455 if (arg >= cdi->capacity) in cdrom_ioctl_select_disc()
2556 if (arg >= cdi->capacity) in cdrom_ioctl_drive_status()
2611 return cdi->capacity; in cdrom_ioctl_changer_nslots()
3479 "\t%d", cdi->capacity); in cdrom_print_info()

12