/linux-4.19.296/drivers/misc/vmw_vmci/ |
D | vmci_handle_array.c | 19 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 …]
|
D | vmci_handle_array.h | 24 u32 capacity; member 40 struct vmci_handle_arr *vmci_handle_arr_create(u32 capacity, u32 max_capacity);
|
/linux-4.19.296/drivers/base/ |
D | arch_topology.c | 36 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()
|
D | Kconfig | 275 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/ |
D | scsicam.h | 16 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/ |
D | ie.c | 203 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/ |
D | hid-logitech-hidpp.c | 126 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 …]
|
D | hid-input.c | 541 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/ |
D | qed_chain.h | 133 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/ |
D | twl4030_madc_battery.h | 32 unsigned int capacity; /* total capacity in uAh */ member
|
D | bq27xxx_battery.h | 49 int capacity; member
|
/linux-4.19.296/include/linux/ |
D | arch_topology.h | 25 void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity);
|
D | cdrom.h | 48 int capacity; /* number of discs in jukebox */ member
|
/linux-4.19.296/include/uapi/linux/ |
D | virtio_blk.h | 58 __u64 capacity; member
|
/linux-4.19.296/drivers/of/unittest-data/ |
D | overlay.dts | 47 gondola-capacity = < 6 >;
|
/linux-4.19.296/fs/exofs/ |
D | super.c | 916 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/ |
D | mptscsih.h | 125 …ih_bios_param(struct scsi_device * sdev, struct block_device *bdev, sector_t capacity, int geom[]);
|
/linux-4.19.296/drivers/edac/ |
D | pnd2_edac.c | 1235 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/ |
D | abx500.h | 63 int capacity; member
|
/linux-4.19.296/drivers/memstick/core/ |
D | mspro_block.c | 1177 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()
|
D | ms_block.c | 2101 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/ |
D | 9p.h | 562 size_t capacity; member
|
/linux-4.19.296/include/linux/mmc/ |
D | card.h | 40 unsigned int capacity; member
|
/linux-4.19.296/drivers/cpufreq/ |
D | Kconfig | 196 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/ |
D | cdrom.c | 1319 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()
|