capacity 91 arch/arm/kernel/topology.c unsigned long capacity = 0; capacity 128 arch/arm/kernel/topology.c capacity = ((be32_to_cpup(rate)) >> 20) * cpu_eff->efficiency; capacity 131 arch/arm/kernel/topology.c if (capacity < min_capacity) capacity 132 arch/arm/kernel/topology.c min_capacity = capacity; capacity 135 arch/arm/kernel/topology.c if (capacity > max_capacity) capacity 136 arch/arm/kernel/topology.c max_capacity = capacity; capacity 138 arch/arm/kernel/topology.c cpu_capacity(cpu) = capacity; capacity 4229 arch/x86/events/intel/core.c EVENT_ATTR_STR(tx-capacity, tx_capacity, "event=0x54,umask=0x2"); capacity 4234 arch/x86/events/intel/core.c EVENT_ATTR_STR(el-capacity, el_capacity, "event=0x54,umask=0x2"); capacity 4272 arch/x86/events/intel/core.c EVENT_ATTR_STR(tx-capacity-read, tx_capacity_read, "event=0x54,umask=0x80"); capacity 4273 arch/x86/events/intel/core.c EVENT_ATTR_STR(tx-capacity-write, tx_capacity_write, "event=0x54,umask=0x2"); capacity 4274 arch/x86/events/intel/core.c EVENT_ATTR_STR(el-capacity-read, el_capacity_read, "event=0x54,umask=0x80"); capacity 4275 arch/x86/events/intel/core.c EVENT_ATTR_STR(el-capacity-write, el_capacity_write, "event=0x54,umask=0x2"); capacity 127 block/blk-zoned.c sector_t capacity = get_capacity(disk); capacity 130 block/blk-zoned.c while (z < nrz && sector < capacity) { capacity 41 drivers/acpi/battery.c #define ACPI_BATTERY_CAPACITY_VALID(capacity) \ capacity 42 drivers/acpi/battery.c ((capacity) != 0 && (capacity) != ACPI_BATTERY_VALUE_UNKNOWN) capacity 2887 drivers/acpi/nfit/core.c mapping->size = nfit_mem->bdw->capacity; capacity 492 drivers/ata/libata-scsi.c sector_t capacity, int geom[]) capacity 496 drivers/ata/libata-scsi.c sector_div(capacity, 255*63); capacity 497 drivers/ata/libata-scsi.c geom[2] = capacity; capacity 40 drivers/base/arch_topology.c void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity) capacity 42 drivers/base/arch_topology.c per_cpu(cpu_scale, cpu) = capacity; capacity 110 drivers/base/arch_topology.c u64 capacity; capacity 120 drivers/base/arch_topology.c capacity = (raw_capacity[cpu] << SCHED_CAPACITY_SHIFT) capacity 122 drivers/base/arch_topology.c topology_set_cpu_scale(cpu, capacity); capacity 632 drivers/block/drbd/drbd_bitmap.c int drbd_bm_resize(struct drbd_device *device, sector_t capacity, int set_new_bits) capacity 647 drivers/block/drbd/drbd_bitmap.c (unsigned long long)capacity); capacity 649 drivers/block/drbd/drbd_bitmap.c if (capacity == b->bm_dev_capacity) capacity 652 drivers/block/drbd/drbd_bitmap.c if (capacity == 0) { capacity 668 drivers/block/drbd/drbd_bitmap.c bits = BM_SECT_TO_BIT(ALIGN(capacity, BM_SECT_PER_BIT)); capacity 718 drivers/block/drbd/drbd_bitmap.c b->bm_dev_capacity = capacity; capacity 3219 drivers/block/drbd/drbd_main.c sector_t capacity = drbd_get_capacity(bdev->md_bdev); capacity 3257 drivers/block/drbd/drbd_main.c if (capacity < in_core->md_size_sect) capacity 3259 drivers/block/drbd/drbd_main.c if (capacity - in_core->md_size_sect < drbd_md_first_sector(bdev)) capacity 3291 drivers/block/drbd/drbd_main.c (unsigned long long)capacity); capacity 1862 drivers/block/drbd/drbd_receiver.c const sector_t capacity = drbd_get_capacity(device->this_bdev); capacity 1921 drivers/block/drbd/drbd_receiver.c if (sector + (ds>>9) > capacity) { capacity 1924 drivers/block/drbd/drbd_receiver.c (unsigned long long)capacity, capacity 2840 drivers/block/drbd/drbd_receiver.c sector_t capacity; capacity 2851 drivers/block/drbd/drbd_receiver.c capacity = drbd_get_capacity(device->this_bdev); capacity 2861 drivers/block/drbd/drbd_receiver.c if (sector + (size>>9) > capacity) { capacity 593 drivers/block/drbd/drbd_worker.c const sector_t capacity = drbd_get_capacity(device->this_bdev); capacity 714 drivers/block/drbd/drbd_worker.c if (sector + (size>>9) > capacity) capacity 715 drivers/block/drbd/drbd_worker.c size = (capacity-sector)<<9; capacity 771 drivers/block/drbd/drbd_worker.c const sector_t capacity = drbd_get_capacity(device->this_bdev); capacity 781 drivers/block/drbd/drbd_worker.c if (sector >= capacity) capacity 800 drivers/block/drbd/drbd_worker.c if (sector + (size>>9) > capacity) capacity 801 drivers/block/drbd/drbd_worker.c size = (capacity-sector)<<9; capacity 3325 drivers/block/mtip32xx/mtip32xx.c sector_t capacity; capacity 3330 drivers/block/mtip32xx/mtip32xx.c if (!(mtip_hw_get_capacity(dd, &capacity))) { capacity 3338 drivers/block/mtip32xx/mtip32xx.c sector_div(capacity, (geo->heads * geo->sectors)); capacity 3339 drivers/block/mtip32xx/mtip32xx.c geo->cylinders = capacity; capacity 3579 drivers/block/mtip32xx/mtip32xx.c sector_t capacity; capacity 3678 drivers/block/mtip32xx/mtip32xx.c if (!(mtip_hw_get_capacity(dd, &capacity))) { capacity 3684 drivers/block/mtip32xx/mtip32xx.c set_capacity(dd->disk, capacity); capacity 339 drivers/block/paride/pcd.c cd->info.capacity = 1; capacity 227 drivers/block/paride/pd.c int capacity; /* Size of this volume in sectors */ capacity 724 drivers/block/paride/pd.c disk->capacity = le32_to_cpu(*(__le32 *) (pd_scratch + 120)); capacity 726 drivers/block/paride/pd.c disk->capacity = disk->sectors * disk->heads * disk->cylinders; capacity 741 drivers/block/paride/pd.c disk->capacity, disk->capacity / 2048, capacity 745 drivers/block/paride/pd.c if (disk->capacity) capacity 813 drivers/block/paride/pd.c geo->cylinders = disk->capacity / (geo->heads * geo->sectors); capacity 866 drivers/block/paride/pd.c set_capacity(p, disk->capacity); capacity 948 drivers/block/paride/pd.c disk->capacity = 0; capacity 989 drivers/block/paride/pd.c set_capacity(disk->gd, disk->capacity); capacity 356 drivers/block/paride/pf.c sector_t capacity = get_capacity(pf->disk); capacity 358 drivers/block/paride/pf.c if (capacity < PF_FD_MAX) { capacity 359 drivers/block/paride/pf.c geo->cylinders = sector_div(capacity, PF_FD_HDS * PF_FD_SPT); capacity 363 drivers/block/paride/pf.c geo->cylinders = sector_div(capacity, PF_HD_HDS * PF_HD_SPT); capacity 224 drivers/block/paride/pt.c int capacity; /* Size of tape in KB */ capacity 556 drivers/block/paride/pt.c tape->capacity = 0; capacity 569 drivers/block/paride/pt.c tape->capacity = xn(buf, 24, 4); capacity 577 drivers/block/paride/pt.c printk(", blocksize %d, %d MB\n", tape->bs, tape->capacity / 1024); capacity 3091 drivers/block/skd_main.c u64 capacity; capacity 3099 drivers/block/skd_main.c capacity = get_capacity(skdev->disk); capacity 3102 drivers/block/skd_main.c geo->cylinders = (capacity) / (255 * 64); capacity 248 drivers/block/sx8.c u64 capacity; capacity 834 drivers/block/sx8.c port->capacity = lo | (hi << 32); capacity 851 drivers/block/sx8.c (unsigned long long) port->capacity); capacity 1183 drivers/block/sx8.c set_capacity(disk, port->capacity); capacity 523 drivers/block/virtio_blk.c u64 capacity; capacity 526 drivers/block/virtio_blk.c virtio_cread(vdev, struct virtio_blk_config, capacity, &capacity); capacity 529 drivers/block/virtio_blk.c if ((sector_t)capacity != capacity) { capacity 531 drivers/block/virtio_blk.c (unsigned long long)capacity); capacity 532 drivers/block/virtio_blk.c capacity = (sector_t)-1; capacity 535 drivers/block/virtio_blk.c nblocks = DIV_ROUND_UP_ULL(capacity, queue_logical_block_size(q) >> 9); capacity 551 drivers/block/virtio_blk.c set_capacity(vblk->disk, capacity); capacity 1092 drivers/block/xen-blkfront.c static int xlvbd_alloc_gendisk(blkif_sector_t capacity, capacity 1159 drivers/block/xen-blkfront.c set_capacity(gd, capacity); capacity 1319 drivers/cdrom/cdrom.c cdi->capacity * sizeof(struct cdrom_slot); capacity 1365 drivers/cdrom/cdrom.c cdi->capacity = 0; capacity 2385 drivers/cdrom/cdrom.c if (arg >= cdi->capacity) capacity 2455 drivers/cdrom/cdrom.c if (arg >= cdi->capacity) capacity 2556 drivers/cdrom/cdrom.c if (arg >= cdi->capacity) capacity 2611 drivers/cdrom/cdrom.c return cdi->capacity; capacity 3479 drivers/cdrom/cdrom.c "\t%d", cdi->capacity); capacity 707 drivers/cdrom/gdrom.c gd.cd_info->capacity = 1; capacity 1227 drivers/edac/pnd2_edac.c u64 capacity; capacity 1253 drivers/edac/pnd2_edac.c capacity = (d->rken0 + d->rken1) * 8 * (1ul << dimms[g].rowbits) * capacity 1255 drivers/edac/pnd2_edac.c edac_dbg(0, "Channel %d: %lld MByte DIMM\n", i, capacity >> (20 - 3)); capacity 1256 drivers/edac/pnd2_edac.c dimm->nr_pages = MiB_TO_PAGES(capacity >> (20 - 3)); capacity 1274 drivers/edac/pnd2_edac.c u64 capacity; capacity 1320 drivers/edac/pnd2_edac.c capacity = ranks_of_dimm[j] * banks * (1ul << rowbits) * (1ul << colbits); capacity 1321 drivers/edac/pnd2_edac.c edac_dbg(0, "Channel %d DIMM %d: %lld MByte DIMM\n", i, j, capacity >> (20 - 3)); capacity 1322 drivers/edac/pnd2_edac.c dimm->nr_pages = MiB_TO_PAGES(capacity >> (20 - 3)); capacity 60 drivers/firewire/nosy.c size_t capacity; capacity 115 drivers/firewire/nosy.c packet_buffer_init(struct packet_buffer *buffer, size_t capacity) capacity 117 drivers/firewire/nosy.c buffer->data = kmalloc(capacity, GFP_KERNEL); capacity 122 drivers/firewire/nosy.c buffer->capacity = capacity; capacity 153 drivers/firewire/nosy.c end = buffer->data + buffer->capacity; capacity 187 drivers/firewire/nosy.c if (buffer->capacity < capacity 193 drivers/firewire/nosy.c end = buffer->data + buffer->capacity; capacity 34 drivers/gpu/drm/amd/display/dc/basics/vector.c uint32_t capacity, capacity 39 drivers/gpu/drm/amd/display/dc/basics/vector.c if (!struct_size || !capacity) { capacity 45 drivers/gpu/drm/amd/display/dc/basics/vector.c vector->container = kcalloc(capacity, struct_size, GFP_KERNEL); capacity 48 drivers/gpu/drm/amd/display/dc/basics/vector.c vector->capacity = capacity; capacity 88 drivers/gpu/drm/amd/display/dc/basics/vector.c vector->capacity = count; capacity 116 drivers/gpu/drm/amd/display/dc/basics/vector.c uint32_t capacity, capacity 124 drivers/gpu/drm/amd/display/dc/basics/vector.c if (dal_vector_construct(vector, ctx, capacity, struct_size)) capacity 137 drivers/gpu/drm/amd/display/dc/basics/vector.c vector->capacity = 0; capacity 212 drivers/gpu/drm/amd/display/dc/basics/vector.c if (vector->count == vector->capacity) { capacity 215 drivers/gpu/drm/amd/display/dc/basics/vector.c calc_increased_capacity(vector->capacity))) capacity 258 drivers/gpu/drm/amd/display/dc/basics/vector.c vector->capacity, capacity 277 drivers/gpu/drm/amd/display/dc/basics/vector.c vec_cloned->struct_size * vec_cloned->capacity); capacity 284 drivers/gpu/drm/amd/display/dc/basics/vector.c return vector->capacity; capacity 287 drivers/gpu/drm/amd/display/dc/basics/vector.c bool dal_vector_reserve(struct vector *vector, uint32_t capacity) capacity 291 drivers/gpu/drm/amd/display/dc/basics/vector.c if (capacity <= vector->capacity) capacity 295 drivers/gpu/drm/amd/display/dc/basics/vector.c capacity * vector->struct_size, GFP_KERNEL); capacity 299 drivers/gpu/drm/amd/display/dc/basics/vector.c vector->capacity = capacity; capacity 33 drivers/gpu/drm/amd/display/include/vector.h uint32_t capacity; capacity 40 drivers/gpu/drm/amd/display/include/vector.h uint32_t capacity, capacity 45 drivers/gpu/drm/amd/display/include/vector.h uint32_t capacity, capacity 104 drivers/gpu/drm/amd/display/include/vector.h bool dal_vector_reserve(struct vector *vector, uint32_t capacity); capacity 526 drivers/hid/hid-input.c int capacity; capacity 534 drivers/hid/hid-input.c capacity = hidinput_scale_battery_capacity(dev, value); capacity 537 drivers/hid/hid-input.c capacity != dev->battery_capacity) { capacity 538 drivers/hid/hid-input.c dev->battery_capacity = capacity; capacity 142 drivers/hid/hid-logitech-hidpp.c int capacity; capacity 685 drivers/hid/hid-logitech-hidpp.c hidpp->battery.capacity = response.rap.params[0]; capacity 698 drivers/hid/hid-logitech-hidpp.c int status, capacity, level; capacity 706 drivers/hid/hid-logitech-hidpp.c capacity = hidpp->battery.capacity; capacity 711 drivers/hid/hid-logitech-hidpp.c capacity = report->rap.params[0]; capacity 719 drivers/hid/hid-logitech-hidpp.c changed = capacity != hidpp->battery.capacity || capacity 1033 drivers/hid/hid-logitech-hidpp.c static int hidpp_map_battery_level(int capacity) capacity 1035 drivers/hid/hid-logitech-hidpp.c if (capacity < 11) capacity 1041 drivers/hid/hid-logitech-hidpp.c else if (capacity < 30) capacity 1043 drivers/hid/hid-logitech-hidpp.c else if (capacity < 81) capacity 1048 drivers/hid/hid-logitech-hidpp.c static int hidpp20_batterylevel_map_status_capacity(u8 data[3], int *capacity, capacity 1054 drivers/hid/hid-logitech-hidpp.c *capacity = data[0]; capacity 1064 drivers/hid/hid-logitech-hidpp.c *level = hidpp_map_battery_level(*capacity); capacity 1075 drivers/hid/hid-logitech-hidpp.c *capacity = 100; capacity 1094 drivers/hid/hid-logitech-hidpp.c int *capacity, capacity 1116 drivers/hid/hid-logitech-hidpp.c *status = hidpp20_batterylevel_map_status_capacity(params, capacity, capacity 1157 drivers/hid/hid-logitech-hidpp.c int status, capacity, next_capacity, level; capacity 1170 drivers/hid/hid-logitech-hidpp.c &status, &capacity, capacity 1181 drivers/hid/hid-logitech-hidpp.c hidpp->battery.capacity = capacity; capacity 1194 drivers/hid/hid-logitech-hidpp.c int status, capacity, next_capacity, level; capacity 1202 drivers/hid/hid-logitech-hidpp.c &capacity, capacity 1210 drivers/hid/hid-logitech-hidpp.c changed = capacity != hidpp->battery.capacity || capacity 1216 drivers/hid/hid-logitech-hidpp.c hidpp->battery.capacity = capacity; capacity 1248 drivers/hid/hid-logitech-hidpp.c val->intval = hidpp->battery.capacity; capacity 1421 drivers/hid/hid-logitech-hidpp.c int capacity, lux, status; capacity 1433 drivers/hid/hid-logitech-hidpp.c capacity = report->fap.params[0]; capacity 1445 drivers/hid/hid-logitech-hidpp.c if (capacity < hidpp->battery.capacity) capacity 1452 drivers/hid/hid-logitech-hidpp.c if (capacity == 100) capacity 1456 drivers/hid/hid-logitech-hidpp.c if (capacity != hidpp->battery.capacity || capacity 1458 drivers/hid/hid-logitech-hidpp.c hidpp->battery.capacity = capacity; capacity 1949 drivers/hid/wacom_wac.c int capacity = wacom_wac->hid_data.battery_capacity; capacity 1954 drivers/hid/wacom_wac.c wacom_notify_battery(wacom_wac, status, capacity, charging, capacity 432 drivers/hwtracing/coresight/coresight-etb10.c u32 read_ptr, write_ptr, capacity; capacity 441 drivers/hwtracing/coresight/coresight-etb10.c capacity = drvdata->buffer_depth * ETB_FRAME_SIZE_WORDS; capacity 479 drivers/hwtracing/coresight/coresight-etb10.c to_read = capacity; capacity 983 drivers/ide/ide-cd.c static int cdrom_read_capacity(ide_drive_t *drive, unsigned long *capacity, capacity 1027 drivers/ide/ide-cd.c *capacity = 1 + be32_to_cpu(capbuf.lba); capacity 1031 drivers/ide/ide-cd.c *capacity, *sectors_per_frame); capacity 1094 drivers/ide/ide-cd.c stat = cdrom_read_capacity(drive, &toc->capacity, §ors_per_frame); capacity 1096 drivers/ide/ide-cd.c toc->capacity = 0x1fffff; capacity 1098 drivers/ide/ide-cd.c set_capacity(info->disk, toc->capacity * sectors_per_frame); capacity 1100 drivers/ide/ide-cd.c drive->probed_capacity = toc->capacity * sectors_per_frame; capacity 1212 drivers/ide/ide-cd.c if (!stat && (last_written > toc->capacity)) { capacity 1213 drivers/ide/ide-cd.c toc->capacity = last_written; capacity 1214 drivers/ide/ide-cd.c set_capacity(info->disk, toc->capacity * sectors_per_frame); capacity 1215 drivers/ide/ide-cd.c drive->probed_capacity = toc->capacity * sectors_per_frame; capacity 1300 drivers/ide/ide-cd.c devinfo->capacity = nslots; capacity 1424 drivers/ide/ide-cd.c unsigned long capacity, sectors_per_frame; capacity 1426 drivers/ide/ide-cd.c if (cdrom_read_capacity(drive, &capacity, §ors_per_frame)) capacity 1429 drivers/ide/ide-cd.c return capacity * sectors_per_frame; capacity 69 drivers/ide/ide-cd.h unsigned long capacity; capacity 300 drivers/ide/ide-disk.c u64 capacity, set_max; capacity 302 drivers/ide/ide-disk.c capacity = drive->capacity64; capacity 310 drivers/ide/ide-disk.c if (set_max == capacity + 1) capacity 328 drivers/ide/ide-disk.c u64 capacity, set_max; capacity 331 drivers/ide/ide-disk.c capacity = drive->capacity64; capacity 334 drivers/ide/ide-disk.c if (set_max <= capacity) capacity 343 drivers/ide/ide-disk.c capacity, sectors_to_MB(capacity), capacity 528 drivers/ide/ide-disk.c unsigned long long capacity; capacity 538 drivers/ide/ide-disk.c capacity = ide_gd_capacity(drive); capacity 542 drivers/ide/ide-disk.c capacity <= (1ULL << 28) || capacity 659 drivers/ide/ide-disk.c unsigned long long capacity; capacity 700 drivers/ide/ide-disk.c capacity = ide_gd_capacity(drive); capacity 710 drivers/ide/ide-disk.c unsigned int cap0 = capacity; /* truncate to 32 bits */ capacity 713 drivers/ide/ide-disk.c if (cap0 != capacity) capacity 726 drivers/ide/ide-disk.c drive->name, capacity, sectors_to_MB(capacity)); capacity 321 drivers/ide/ide-floppy.c int capacity, lba_capacity; capacity 348 drivers/ide/ide-floppy.c capacity = cyls * heads * sectors * sector_size; capacity 353 drivers/ide/ide-floppy.c drive->name, capacity / 1024, cyls, heads, capacity 362 drivers/ide/ide-floppy.c if (capacity < lba_capacity) { capacity 365 drivers/ide/ide-floppy.c drive->name, lba_capacity, capacity); capacity 367 drivers/ide/ide-floppy.c capacity / floppy->block_size : 0; capacity 884 drivers/infiniband/hw/qedr/verbs.c cq->ibcq.cqe = cq->pbl.capacity; capacity 413 drivers/lightnvm/core.c set_capacity(tdisk, tt->capacity(targetdata)); capacity 1952 drivers/lightnvm/pblk-core.c if (!(lba < pblk->capacity)) { capacity 1992 drivers/lightnvm/pblk-core.c if (!(lba < pblk->capacity)) { capacity 2038 drivers/lightnvm/pblk-core.c if (!(lba < pblk->capacity)) { capacity 2105 drivers/lightnvm/pblk-core.c if (!(lba < pblk->capacity)) { capacity 89 drivers/lightnvm/pblk-init.c return entry_size * pblk->capacity; capacity 159 drivers/lightnvm/pblk-init.c for (i = 0; i < pblk->capacity; i++) capacity 696 drivers/lightnvm/pblk-init.c pblk->capacity = (provisioned - blk_meta) * clba; capacity 1141 drivers/lightnvm/pblk-init.c return pblk->capacity * NR_PHY_IN_LOG; capacity 1254 drivers/lightnvm/pblk-init.c (unsigned long long)pblk->capacity, capacity 1285 drivers/lightnvm/pblk-init.c .capacity = pblk_capacity, capacity 394 drivers/lightnvm/pblk-read.c if (lba >= pblk->capacity) { capacity 458 drivers/lightnvm/pblk-recovery.c if (lba == ADDR_EMPTY || lba >= pblk->capacity) capacity 617 drivers/lightnvm/pblk.h sector_t capacity; /* Device capacity when bad blocks are subtracted */ capacity 1099 drivers/md/dm-zoned-metadata.c if (blkz->start + blkz->len == dev->capacity) capacity 1198 drivers/md/dm-zoned-metadata.c while (sector < dev->capacity) { capacity 1221 drivers/md/dm-zoned-metadata.c if (sector < dev->capacity) { capacity 2478 drivers/md/dm-zoned-metadata.c (u64)dev->capacity); capacity 714 drivers/md/dm-zoned-target.c dev->capacity = i_size_read(dev->bdev->bd_inode) >> SECTOR_SHIFT; capacity 715 drivers/md/dm-zoned-target.c aligned_capacity = dev->capacity & capacity 718 drivers/md/dm-zoned-target.c ((ti->len != dev->capacity) && (ti->len != aligned_capacity))) { capacity 963 drivers/md/dm-zoned-target.c sector_t capacity = dev->capacity & ~(dev->zone_nr_sectors - 1); capacity 965 drivers/md/dm-zoned-target.c return fn(ti, dmz->ddev, 0, capacity, data); capacity 56 drivers/md/dm-zoned.h sector_t capacity; capacity 2104 drivers/memstick/core/ms_block.c unsigned long capacity; capacity 2141 drivers/memstick/core/ms_block.c capacity = msb->pages_in_block * msb->logical_block_count; capacity 2142 drivers/memstick/core/ms_block.c capacity *= (msb->page_size / 512); capacity 2143 drivers/memstick/core/ms_block.c set_capacity(msb->disk, capacity); capacity 2144 drivers/memstick/core/ms_block.c dbg("Set total disk size to %lu sectors", capacity); capacity 1182 drivers/memstick/core/mspro_block.c unsigned long capacity; capacity 1240 drivers/memstick/core/mspro_block.c capacity = be16_to_cpu(sys_info->user_block_count); capacity 1241 drivers/memstick/core/mspro_block.c capacity *= be16_to_cpu(sys_info->block_size); capacity 1242 drivers/memstick/core/mspro_block.c capacity *= msb->page_size >> 9; capacity 1243 drivers/memstick/core/mspro_block.c set_capacity(msb->disk, capacity); capacity 1244 drivers/memstick/core/mspro_block.c dev_dbg(&card->dev, "capacity set %ld\n", capacity); capacity 2086 drivers/message/fusion/mptscsih.c sector_t capacity, int geom[]) capacity 2097 drivers/message/fusion/mptscsih.c cylinders = capacity; capacity 2104 drivers/message/fusion/mptscsih.c if ((ulong)capacity >= 0x200000) { capacity 2108 drivers/message/fusion/mptscsih.c cylinders = capacity; capacity 125 drivers/message/fusion/mptscsih.h extern int mptscsih_bios_param(struct scsi_device * sdev, struct block_device *bdev, sector_t capacity, int geom[]); capacity 11 drivers/misc/vmw_vmci/vmci_handle_array.c static size_t handle_arr_calc_size(u32 capacity) capacity 14 drivers/misc/vmw_vmci/vmci_handle_array.c capacity * sizeof(struct vmci_handle); capacity 17 drivers/misc/vmw_vmci/vmci_handle_array.c struct vmci_handle_arr *vmci_handle_arr_create(u32 capacity, u32 max_capacity) capacity 21 drivers/misc/vmw_vmci/vmci_handle_array.c if (max_capacity == 0 || capacity > max_capacity) capacity 24 drivers/misc/vmw_vmci/vmci_handle_array.c if (capacity == 0) capacity 25 drivers/misc/vmw_vmci/vmci_handle_array.c capacity = min((u32)VMCI_HANDLE_ARRAY_DEFAULT_CAPACITY, capacity 28 drivers/misc/vmw_vmci/vmci_handle_array.c array = kmalloc(handle_arr_calc_size(capacity), GFP_ATOMIC); capacity 32 drivers/misc/vmw_vmci/vmci_handle_array.c array->capacity = capacity; capacity 49 drivers/misc/vmw_vmci/vmci_handle_array.c if (unlikely(array->size >= array->capacity)) { capacity 52 drivers/misc/vmw_vmci/vmci_handle_array.c u32 capacity_bump = min(array->max_capacity - array->capacity, capacity 53 drivers/misc/vmw_vmci/vmci_handle_array.c array->capacity); capacity 54 drivers/misc/vmw_vmci/vmci_handle_array.c size_t new_size = handle_arr_calc_size(array->capacity + capacity 64 drivers/misc/vmw_vmci/vmci_handle_array.c new_array->capacity += capacity_bump; capacity 16 drivers/misc/vmw_vmci/vmci_handle_array.h u32 capacity; capacity 32 drivers/misc/vmw_vmci/vmci_handle_array.h struct vmci_handle_arr *vmci_handle_arr_create(u32 capacity, u32 max_capacity); capacity 2385 drivers/mmc/core/block.c size = (typeof(sector_t))card->csd.capacity capacity 1530 drivers/mmc/core/core.c sz = (card->csd.capacity << (card->csd.read_blkbits - 9)) >> 11; capacity 164 drivers/mmc/core/mmc.c csd->capacity = (1 + m) << (e + 2); capacity 677 drivers/mmc/core/mmc.c if (card->csd.capacity == (4096 * 512)) { capacity 614 drivers/mmc/core/mmc_test.c return card->csd.capacity << (card->csd.read_blkbits - 9); capacity 121 drivers/mmc/core/sd.c csd->capacity = (1 + m) << (e + 2); capacity 162 drivers/mmc/core/sd.c csd->capacity = (1 + m) << 10; capacity 1153 drivers/net/ethernet/qlogic/qed/qed_ll2.c u32 capacity; capacity 1171 drivers/net/ethernet/qlogic/qed/qed_ll2.c capacity = qed_chain_get_capacity(&p_ll2_info->rx_queue.rxq_chain); capacity 1172 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_descq = kcalloc(capacity, sizeof(struct qed_ll2_rx_packet), capacity 1206 drivers/net/ethernet/qlogic/qed/qed_ll2.c u32 capacity; capacity 1222 drivers/net/ethernet/qlogic/qed/qed_ll2.c capacity = qed_chain_get_capacity(&p_ll2_info->tx_queue.txq_chain); capacity 1228 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_descq = kcalloc(capacity, desc_size, GFP_KERNEL); capacity 1487 drivers/net/ethernet/qlogic/qed/qed_ll2.c u32 i, capacity; capacity 1510 drivers/net/ethernet/qlogic/qed/qed_ll2.c capacity = qed_chain_get_capacity(&p_rx->rxq_chain); capacity 1511 drivers/net/ethernet/qlogic/qed/qed_ll2.c for (i = 0; i < capacity; i++) capacity 1521 drivers/net/ethernet/qlogic/qed/qed_ll2.c capacity = qed_chain_get_capacity(&p_tx->txq_chain); capacity 1527 drivers/net/ethernet/qlogic/qed/qed_ll2.c for (i = 0; i < capacity; i++) { capacity 493 drivers/net/ethernet/qlogic/qed/qed_spq.c u32 i, capacity; capacity 506 drivers/net/ethernet/qlogic/qed/qed_spq.c capacity = qed_chain_get_capacity(&p_spq->chain); capacity 507 drivers/net/ethernet/qlogic/qed/qed_spq.c for (i = 0; i < capacity; i++) { capacity 557 drivers/net/ethernet/qlogic/qed/qed_spq.c u32 capacity; capacity 575 drivers/net/ethernet/qlogic/qed/qed_spq.c capacity = qed_chain_get_capacity(&p_spq->chain); capacity 577 drivers/net/ethernet/qlogic/qed/qed_spq.c capacity * sizeof(struct qed_spq_entry), capacity 598 drivers/net/ethernet/qlogic/qed/qed_spq.c u32 capacity; capacity 609 drivers/net/ethernet/qlogic/qed/qed_spq.c capacity = qed_chain_get_capacity(&p_spq->chain); capacity 611 drivers/net/ethernet/qlogic/qed/qed_spq.c capacity * capacity 405 drivers/net/wireless/intel/iwlwifi/dvm/main.c u32 capacity, u32 mode) capacity 430 drivers/net/wireless/intel/iwlwifi/dvm/main.c if (WARN_ON(num_events > capacity - start_idx)) capacity 431 drivers/net/wireless/intel/iwlwifi/dvm/main.c num_events = capacity - start_idx; capacity 455 drivers/net/wireless/intel/iwlwifi/dvm/main.c u32 capacity; /* event log capacity in # entries */ capacity 457 drivers/net/wireless/intel/iwlwifi/dvm/main.c u32 capacity; capacity 471 drivers/net/wireless/intel/iwlwifi/dvm/main.c capacity = read.capacity; capacity 483 drivers/net/wireless/intel/iwlwifi/dvm/main.c if (unlikely(next_entry == capacity)) capacity 501 drivers/net/wireless/intel/iwlwifi/dvm/main.c capacity, mode); capacity 517 drivers/net/wireless/intel/iwlwifi/dvm/main.c capacity - priv->event_log.next_entry, capacity 518 drivers/net/wireless/intel/iwlwifi/dvm/main.c capacity, mode); capacity 521 drivers/net/wireless/intel/iwlwifi/dvm/main.c priv, base, 0, next_entry, capacity, mode); capacity 525 drivers/net/wireless/intel/iwlwifi/dvm/main.c capacity - next_entry, capacity 526 drivers/net/wireless/intel/iwlwifi/dvm/main.c capacity, mode); capacity 529 drivers/net/wireless/intel/iwlwifi/dvm/main.c priv, base, 0, next_entry, capacity, mode); capacity 1775 drivers/net/wireless/intel/iwlwifi/dvm/main.c static int iwl_print_last_event_logs(struct iwl_priv *priv, u32 capacity, capacity 1787 drivers/net/wireless/intel/iwlwifi/dvm/main.c capacity - (size - next_entry), capacity 1814 drivers/net/wireless/intel/iwlwifi/dvm/main.c u32 capacity; /* event log capacity in # entries */ capacity 1845 drivers/net/wireless/intel/iwlwifi/dvm/main.c capacity = iwl_trans_read_mem32(trans, base); capacity 1850 drivers/net/wireless/intel/iwlwifi/dvm/main.c if (capacity > logsize) { capacity 1852 drivers/net/wireless/intel/iwlwifi/dvm/main.c "entries\n", capacity, logsize); capacity 1853 drivers/net/wireless/intel/iwlwifi/dvm/main.c capacity = logsize; capacity 1862 drivers/net/wireless/intel/iwlwifi/dvm/main.c size = num_wraps ? capacity : next_entry; capacity 1879 drivers/net/wireless/intel/iwlwifi/dvm/main.c bufsz = capacity * 48; capacity 1894 drivers/net/wireless/intel/iwlwifi/dvm/main.c capacity - next_entry, mode, capacity 1900 drivers/net/wireless/intel/iwlwifi/dvm/main.c pos = iwl_print_last_event_logs(priv, capacity, num_wraps, capacity 1904 drivers/net/wireless/intel/iwlwifi/dvm/main.c pos = iwl_print_last_event_logs(priv, capacity, num_wraps, capacity 74 drivers/net/wireless/st/cw1200/debug.c seq_printf(seq, " capacity: %zu\n", q->capacity); capacity 117 drivers/net/wireless/st/cw1200/queue.c if (queue->num_queued <= (queue->capacity >> 1)) { capacity 165 drivers/net/wireless/st/cw1200/queue.c size_t capacity, capacity 172 drivers/net/wireless/st/cw1200/queue.c queue->capacity = capacity; capacity 181 drivers/net/wireless/st/cw1200/queue.c queue->pool = kcalloc(capacity, sizeof(struct cw1200_queue_item), capacity 194 drivers/net/wireless/st/cw1200/queue.c for (i = 0; i < capacity; ++i) capacity 251 drivers/net/wireless/st/cw1200/queue.c queue->capacity = 0; capacity 317 drivers/net/wireless/st/cw1200/queue.c (queue->capacity - (num_present_cpus() - 1))) { capacity 386 drivers/net/wireless/st/cw1200/queue.c } else if (item_id >= (unsigned) queue->capacity) { capacity 457 drivers/net/wireless/st/cw1200/queue.c } else if (item_id >= (unsigned) queue->capacity) { capacity 477 drivers/net/wireless/st/cw1200/queue.c (queue->num_queued <= (queue->capacity >> 1))) { capacity 506 drivers/net/wireless/st/cw1200/queue.c } else if (item_id >= (unsigned) queue->capacity) { capacity 28 drivers/net/wireless/st/cw1200/queue.h size_t capacity; capacity 71 drivers/net/wireless/st/cw1200/queue.h size_t capacity, capacity 1770 drivers/nvme/host/core.c sector_t capacity = le64_to_cpu(id->nsze) << (ns->lba_shift - 9); capacity 1818 drivers/nvme/host/core.c capacity = 0; capacity 1820 drivers/nvme/host/core.c set_capacity(disk, capacity); capacity 96 drivers/platform/chrome/wilco_ec/event.c int capacity; capacity 106 drivers/platform/chrome/wilco_ec/event.c static struct ec_event_queue *event_queue_new(int capacity) capacity 110 drivers/platform/chrome/wilco_ec/event.c q = kzalloc(struct_size(q, entries, capacity), GFP_KERNEL); capacity 114 drivers/platform/chrome/wilco_ec/event.c q->capacity = capacity; capacity 140 drivers/platform/chrome/wilco_ec/event.c q->tail = (q->tail + 1) % q->capacity; capacity 157 drivers/platform/chrome/wilco_ec/event.c q->head = (q->head + 1) % q->capacity; capacity 871 drivers/power/supply/ab8500_fg.c tbl[i].capacity * 10, capacity 873 drivers/power/supply/ab8500_fg.c tbl[i-1].capacity * 10); capacity 1182 drivers/power/supply/ab8500_fg.c int capacity = di->bat_cap.prev_percent; capacity 1185 drivers/power/supply/ab8500_fg.c return capacity; capacity 1194 drivers/power/supply/ab8500_fg.c max(capacity, di->bm->fg_params->maint_thres); capacity 1202 drivers/power/supply/ab8500_fg.c capacity = min(100, capacity 1208 drivers/power/supply/ab8500_fg.c if (capacity < cs->disable_cap_level) { capacity 1209 drivers/power/supply/ab8500_fg.c cs->disable_cap_level = capacity; capacity 1217 drivers/power/supply/ab8500_fg.c capacity = di->bat_cap.prev_percent; capacity 1222 drivers/power/supply/ab8500_fg.c capacity = cs->disable_cap_level; capacity 1227 drivers/power/supply/ab8500_fg.c return capacity; capacity 286 drivers/power/supply/apm_power.c union power_supply_propval capacity, time_to_full, time_to_empty; capacity 311 drivers/power/supply/apm_power.c if (MPSY_PROP(CAPACITY, &capacity) == 0) { capacity 312 drivers/power/supply/apm_power.c info->battery_life = capacity.intval; capacity 1584 drivers/power/supply/bq27xxx_battery.c cache.capacity = -ENODATA; capacity 1599 drivers/power/supply/bq27xxx_battery.c cache.capacity = bq27xxx_battery_read_soc(di); capacity 1615 drivers/power/supply/bq27xxx_battery.c if ((di->cache.capacity != cache.capacity) || capacity 1791 drivers/power/supply/bq27xxx_battery.c ret = bq27xxx_simple_value(di->cache.capacity, val); capacity 353 drivers/power/supply/da9052-battery.c static int da9052_bat_read_capacity(struct da9052_battery *bat, int *capacity) capacity 377 drivers/power/supply/da9052-battery.c *capacity = 100; capacity 381 drivers/power/supply/da9052-battery.c *capacity = 0; capacity 400 drivers/power/supply/da9052-battery.c *capacity = da9052_bat_interpolate(vbat_lower, vbat_upper, level_lower, capacity 410 drivers/power/supply/da9052-battery.c int capacity; capacity 422 drivers/power/supply/da9052-battery.c ret = da9052_bat_read_capacity(bat, &capacity); capacity 425 drivers/power/supply/da9052-battery.c if (capacity < DA9052_BAT_LOW_CAP) capacity 297 drivers/power/supply/ds2780_battery.c int *capacity) capacity 306 drivers/power/supply/ds2780_battery.c *capacity = raw; capacity 312 drivers/power/supply/ds2780_battery.c int ret, current_uA, capacity; capacity 318 drivers/power/supply/ds2780_battery.c ret = ds2780_get_capacity(dev_info, &capacity); capacity 322 drivers/power/supply/ds2780_battery.c if (capacity == 100) capacity 298 drivers/power/supply/ds2781_battery.c int *capacity) capacity 307 drivers/power/supply/ds2781_battery.c *capacity = raw; capacity 313 drivers/power/supply/ds2781_battery.c int ret, current_uA, capacity; capacity 319 drivers/power/supply/ds2781_battery.c ret = ds2781_get_capacity(dev_info, &capacity); capacity 324 drivers/power/supply/ds2781_battery.c if (capacity == 100) capacity 49 drivers/power/supply/ds2782_battery.c int (*get_battery_capacity)(struct ds278x_info *info, int *capacity); capacity 62 drivers/power/supply/ds2782_battery.c int capacity; capacity 161 drivers/power/supply/ds2782_battery.c static int ds2782_get_capacity(struct ds278x_info *info, int *capacity) capacity 169 drivers/power/supply/ds2782_battery.c *capacity = raw; capacity 201 drivers/power/supply/ds2782_battery.c static int ds2786_get_capacity(struct ds278x_info *info, int *capacity) capacity 210 drivers/power/supply/ds2782_battery.c *capacity = raw/2 ; capacity 218 drivers/power/supply/ds2782_battery.c int capacity; capacity 224 drivers/power/supply/ds2782_battery.c err = info->ops->get_battery_capacity(info, &capacity); capacity 228 drivers/power/supply/ds2782_battery.c info->capacity = capacity; capacity 230 drivers/power/supply/ds2782_battery.c if (capacity == 100) capacity 280 drivers/power/supply/ds2782_battery.c int old_capacity = info->capacity; capacity 284 drivers/power/supply/ds2782_battery.c if ((old_status != info->status) || (old_capacity != info->capacity)) capacity 422 drivers/power/supply/ds2782_battery.c info->capacity = 100; capacity 675 drivers/power/supply/power_supply_core.c table[i].capacity = be32_to_cpu(*list); capacity 720 drivers/power/supply/power_supply_core.c tmp = (table[i - 1].capacity - table[i].capacity) * capacity 723 drivers/power/supply/power_supply_core.c cap = tmp + table[i].capacity; capacity 725 drivers/power/supply/power_supply_core.c cap = table[0].capacity; capacity 727 drivers/power/supply/power_supply_core.c cap = table[table_len - 1].capacity; capacity 287 drivers/power/supply/power_supply_sysfs.c POWER_SUPPLY_ATTR(capacity), capacity 134 drivers/power/supply/rx51_battery.c int capacity = rx51_battery_read_adc(di->channel_bsi); capacity 136 drivers/power/supply/rx51_battery.c if (capacity < 0) { capacity 137 drivers/power/supply/rx51_battery.c dev_err(di->dev, "Could not read ADC: %d\n", capacity); capacity 138 drivers/power/supply/rx51_battery.c return capacity; capacity 141 drivers/power/supply/rx51_battery.c return 1280 * (1200 * capacity)/(1024 - capacity); capacity 111 drivers/power/supply/sc27xx_fuel_gauge.c static int sc27xx_fgu_cap_to_clbcnt(struct sc27xx_fgu_data *data, int capacity); capacity 846 drivers/power/supply/sc27xx_fuel_gauge.c static int sc27xx_fgu_cap_to_clbcnt(struct sc27xx_fgu_data *data, int capacity) capacity 852 drivers/power/supply/sc27xx_fuel_gauge.c int cur_cap = DIV_ROUND_CLOSEST(data->total_cap * capacity, 100); capacity 141 drivers/power/supply/twl4030_madc_battery.c val->intval = (percent * bat->pdata->capacity) / 100; capacity 149 drivers/power/supply/twl4030_madc_battery.c val->intval = bat->pdata->capacity; capacity 158 drivers/power/supply/twl4030_madc_battery.c int chg = (percent * (bat->pdata->capacity/1000))/100; capacity 1698 drivers/scsi/3w-9xxx.c static int twa_scsi_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[]) capacity 1705 drivers/scsi/3w-9xxx.c if (capacity >= 0x200000) { capacity 1708 drivers/scsi/3w-9xxx.c cylinders = sector_div(capacity, heads * sectors); capacity 1712 drivers/scsi/3w-9xxx.c cylinders = sector_div(capacity, heads * sectors); capacity 1408 drivers/scsi/3w-sas.c static int twl_scsi_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[]) capacity 1415 drivers/scsi/3w-sas.c if (capacity >= 0x200000) { capacity 1425 drivers/scsi/3w-sas.c geom[2] = sector_div(capacity, heads * sectors); /* cylinders */ capacity 1344 drivers/scsi/3w-xxxx.c sector_t capacity, int geom[]) capacity 1354 drivers/scsi/3w-xxxx.c cylinders = sector_div(capacity, heads * sectors); capacity 1356 drivers/scsi/3w-xxxx.c if (capacity >= 0x200000) { capacity 1359 drivers/scsi/3w-xxxx.c cylinders = sector_div(capacity, heads * sectors); capacity 1657 drivers/scsi/3w-xxxx.c u32 capacity; capacity 1671 drivers/scsi/3w-xxxx.c capacity = (param_data[3] << 24) | (param_data[2] << 16) | capacity 1675 drivers/scsi/3w-xxxx.c capacity -= 1; capacity 1677 drivers/scsi/3w-xxxx.c dprintk(KERN_NOTICE "3w-xxxx: tw_scsiop_read_capacity_complete(): Capacity = 0x%x.\n", capacity); capacity 1680 drivers/scsi/3w-xxxx.c buff[0] = (capacity >> 24); capacity 1681 drivers/scsi/3w-xxxx.c buff[1] = (capacity >> 16) & 0xff; capacity 1682 drivers/scsi/3w-xxxx.c buff[2] = (capacity >> 8) & 0xff; capacity 1683 drivers/scsi/3w-xxxx.c buff[3] = capacity & 0xff; capacity 3385 drivers/scsi/BusLogic.c sector_t capacity, int *params) capacity 3392 drivers/scsi/BusLogic.c if (adapter->ext_trans_enable && capacity >= 2 * 1024 * 1024 /* 1 GB in 512 byte sectors */) { capacity 3393 drivers/scsi/BusLogic.c if (capacity >= 4 * 1024 * 1024 /* 2 GB in 512 byte sectors */) { capacity 3404 drivers/scsi/BusLogic.c diskparam->cylinders = (unsigned long) capacity / (diskparam->heads * diskparam->sectors); capacity 3441 drivers/scsi/BusLogic.c diskparam->cylinders = (unsigned long) capacity / (diskparam->heads * diskparam->sectors); capacity 664 drivers/scsi/aacraid/aachba.c = ((u64)le32_to_cpu(dresp->mnt[0].capacity)) + capacity 3053 drivers/scsi/aacraid/aachba.c u64 capacity; capacity 3058 drivers/scsi/aacraid/aachba.c capacity = fsa_dev_ptr[cid].size - 1; capacity 3059 drivers/scsi/aacraid/aachba.c cp[0] = (capacity >> 56) & 0xff; capacity 3060 drivers/scsi/aacraid/aachba.c cp[1] = (capacity >> 48) & 0xff; capacity 3061 drivers/scsi/aacraid/aachba.c cp[2] = (capacity >> 40) & 0xff; capacity 3062 drivers/scsi/aacraid/aachba.c cp[3] = (capacity >> 32) & 0xff; capacity 3063 drivers/scsi/aacraid/aachba.c cp[4] = (capacity >> 24) & 0xff; capacity 3064 drivers/scsi/aacraid/aachba.c cp[5] = (capacity >> 16) & 0xff; capacity 3065 drivers/scsi/aacraid/aachba.c cp[6] = (capacity >> 8) & 0xff; capacity 3066 drivers/scsi/aacraid/aachba.c cp[7] = (capacity >> 0) & 0xff; capacity 3093 drivers/scsi/aacraid/aachba.c u32 capacity; capacity 3098 drivers/scsi/aacraid/aachba.c capacity = fsa_dev_ptr[cid].size - 1; capacity 3100 drivers/scsi/aacraid/aachba.c capacity = (u32)-1; capacity 3102 drivers/scsi/aacraid/aachba.c cp[0] = (capacity >> 24) & 0xff; capacity 3103 drivers/scsi/aacraid/aachba.c cp[1] = (capacity >> 16) & 0xff; capacity 3104 drivers/scsi/aacraid/aachba.c cp[2] = (capacity >> 8) & 0xff; capacity 3105 drivers/scsi/aacraid/aachba.c cp[3] = (capacity >> 0) & 0xff; capacity 3121 drivers/scsi/aacraid/aachba.c u32 capacity; capacity 3125 drivers/scsi/aacraid/aachba.c capacity = fsa_dev_ptr[cid].size - 1; capacity 3127 drivers/scsi/aacraid/aachba.c capacity = (u32)-1; capacity 3166 drivers/scsi/aacraid/aachba.c if (capacity > 0xffffff) { capacity 3171 drivers/scsi/aacraid/aachba.c mpd.bd.block_count[0] = (capacity >> 16) & 0xff; capacity 3172 drivers/scsi/aacraid/aachba.c mpd.bd.block_count[1] = (capacity >> 8) & 0xff; capacity 3173 drivers/scsi/aacraid/aachba.c mpd.bd.block_count[2] = capacity & 0xff; capacity 3199 drivers/scsi/aacraid/aachba.c u32 capacity; capacity 3204 drivers/scsi/aacraid/aachba.c capacity = fsa_dev_ptr[cid].size - 1; capacity 3206 drivers/scsi/aacraid/aachba.c capacity = (u32)-1; capacity 3243 drivers/scsi/aacraid/aachba.c if (capacity > 0xffffff) { capacity 3249 drivers/scsi/aacraid/aachba.c (capacity >> 16) & 0xff; capacity 3251 drivers/scsi/aacraid/aachba.c (capacity >> 8) & 0xff; capacity 3253 drivers/scsi/aacraid/aachba.c capacity & 0xff; capacity 2234 drivers/scsi/aacraid/aacraid.h __le32 capacity; capacity 2623 drivers/scsi/aacraid/aacraid.h static inline unsigned int cap_to_cyls(sector_t capacity, unsigned divisor) capacity 2625 drivers/scsi/aacraid/aacraid.h sector_div(capacity, divisor); capacity 2626 drivers/scsi/aacraid/aacraid.h return capacity; capacity 297 drivers/scsi/aacraid/linit.c sector_t capacity, int *geom) capacity 307 drivers/scsi/aacraid/linit.c if (capacity >= 2 * 1024 * 1024) { /* 1 GB in 512 byte sectors */ capacity 308 drivers/scsi/aacraid/linit.c if(capacity >= 4 * 1024 * 1024) { /* 2 GB in 512 byte sectors */ capacity 320 drivers/scsi/aacraid/linit.c param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); capacity 363 drivers/scsi/aacraid/linit.c param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); capacity 7186 drivers/scsi/advansys.c sector_t capacity, int ip[]) capacity 7194 drivers/scsi/advansys.c ASC_CNTL_BIOS_GT_1GB) && capacity > 0x200000) { capacity 7203 drivers/scsi/advansys.c BIOS_CTRL_EXTENDED_XLAT) && capacity > 0x200000) { capacity 7211 drivers/scsi/advansys.c ip[2] = (unsigned long)capacity / (ip[0] * ip[1]); capacity 1224 drivers/scsi/aha152x.c sector_t capacity, int *info_array) capacity 1231 drivers/scsi/aha152x.c info_array[2] = (unsigned long)capacity / (64 * 32); capacity 1238 drivers/scsi/aha152x.c if (scsicam_bios_param(bdev, capacity, info) < 0 || capacity 1246 drivers/scsi/aha152x.c info_array[2] = (unsigned long)capacity / (255 * 63); capacity 982 drivers/scsi/aha1542.c struct block_device *bdev, sector_t capacity, int geom[]) capacity 986 drivers/scsi/aha1542.c if (capacity >= 0x200000 && capacity 995 drivers/scsi/aha1542.c geom[2] = sector_div(capacity, geom[0] * geom[1]); /* cylinders */ capacity 506 drivers/scsi/aha1740.c sector_t capacity, int* ip) capacity 508 drivers/scsi/aha1740.c int size = capacity; capacity 724 drivers/scsi/aic7xxx/aic79xx_osm.c sector_t capacity, int geom[]) capacity 738 drivers/scsi/aic7xxx/aic79xx_osm.c ret = scsi_partsize(bh, capacity, capacity 746 drivers/scsi/aic7xxx/aic79xx_osm.c cylinders = aic_sector_div(capacity, heads, sectors); capacity 755 drivers/scsi/aic7xxx/aic79xx_osm.c cylinders = aic_sector_div(capacity, heads, sectors); capacity 696 drivers/scsi/aic7xxx/aic7xxx_osm.c sector_t capacity, int geom[]) capacity 712 drivers/scsi/aic7xxx/aic7xxx_osm.c ret = scsi_partsize(bh, capacity, capacity 720 drivers/scsi/aic7xxx/aic7xxx_osm.c cylinders = aic_sector_div(capacity, heads, sectors); capacity 731 drivers/scsi/aic7xxx/aic7xxx_osm.c cylinders = aic_sector_div(capacity, heads, sectors); capacity 137 drivers/scsi/aic7xxx/aiclib.h aic_sector_div(sector_t capacity, int heads, int sectors) capacity 140 drivers/scsi/aic7xxx/aiclib.h sector_div(capacity, (heads * sectors)); capacity 141 drivers/scsi/aic7xxx/aiclib.h return (int)capacity; capacity 112 drivers/scsi/arcmsr/arcmsr_hba.c struct block_device *bdev, sector_t capacity, int *info); capacity 354 drivers/scsi/arcmsr/arcmsr_hba.c struct block_device *bdev, sector_t capacity, int *geom) capacity 361 drivers/scsi/arcmsr/arcmsr_hba.c ret = scsi_partsize(buffer, capacity, &geom[2], &geom[0], &geom[1]); capacity 366 drivers/scsi/arcmsr/arcmsr_hba.c total_capacity = capacity; capacity 1638 drivers/scsi/atp870u.c sector_t capacity, int *ip) capacity 1644 drivers/scsi/atp870u.c cylinders = (unsigned long)capacity / (heads * sectors); capacity 1648 drivers/scsi/atp870u.c cylinders = (unsigned long)capacity / (heads * sectors); capacity 1060 drivers/scsi/dc395x.c struct block_device *bdev, sector_t capacity, int *info) capacity 1065 drivers/scsi/dc395x.c int size = capacity; capacity 1083 drivers/scsi/dc395x.c return scsicam_bios_param(bdev, capacity, info); capacity 482 drivers/scsi/dpt_i2o.c sector_t capacity, int geom[]) capacity 491 drivers/scsi/dpt_i2o.c if (capacity < 0x2000 ) { // floppy capacity 496 drivers/scsi/dpt_i2o.c else if (capacity < 0x20000) { capacity 501 drivers/scsi/dpt_i2o.c else if (capacity < 0x40000) { capacity 506 drivers/scsi/dpt_i2o.c else if (capacity < 0x80000) { capacity 515 drivers/scsi/dpt_i2o.c cylinders = sector_div(capacity, heads * sectors); capacity 179 drivers/scsi/dpti.h u32 capacity; capacity 335 drivers/scsi/esas2r/atioctl.h u32 capacity; capacity 194 drivers/scsi/esas2r/atvda.h u64 capacity; capacity 291 drivers/scsi/esas2r/atvda.h u64 capacity; capacity 354 drivers/scsi/esas2r/atvda.h u64 capacity; capacity 1347 drivers/scsi/esas2r/esas2r_main.c d->capacity = le64_to_cpu(d->capacity); capacity 1375 drivers/scsi/esas2r/esas2r_main.c g->capacity = le64_to_cpu(g->capacity); capacity 463 drivers/scsi/fdomain.c struct block_device *bdev, sector_t capacity, capacity 473 drivers/scsi/fdomain.c if (capacity >= 0x7e0000) { capacity 476 drivers/scsi/fdomain.c } else if (capacity >= 0x200000) { capacity 484 drivers/scsi/fdomain.c geom[2] = sector_div(capacity, geom[0] * geom[1]); capacity 3364 drivers/scsi/gdth.c unsigned capacity; capacity 3367 drivers/scsi/gdth.c capacity = cap; capacity 3375 drivers/scsi/gdth.c gdth_eval_mapping(capacity,&ip[2],&ip[0],&ip[1]); capacity 3379 drivers/scsi/gdth.c ip[2] = capacity / ip[0] / ip[1]; capacity 946 drivers/scsi/imm.c sector_t capacity, int ip[]) capacity 950 drivers/scsi/imm.c ip[2] = ((unsigned long) capacity + 1) / (ip[0] * ip[1]); capacity 954 drivers/scsi/imm.c ip[2] = ((unsigned long) capacity + 1) / (ip[0] * ip[1]); capacity 2665 drivers/scsi/initio.c sector_t capacity, int *info_array) capacity 2676 drivers/scsi/initio.c info_array[2] = (unsigned long)capacity / tc->heads / tc->sectors; capacity 2681 drivers/scsi/initio.c info_array[2] = (unsigned long)capacity / 255 / 63; capacity 2685 drivers/scsi/initio.c info_array[2] = (unsigned long)capacity >> 11; capacity 4746 drivers/scsi/ipr.c sector_t capacity, int *parm) capacity 4754 drivers/scsi/ipr.c cylinders = capacity; capacity 1141 drivers/scsi/ips.c sector_t capacity, int geom[]) capacity 1161 drivers/scsi/ips.c if ((capacity > 0x400000) && ((ha->enq->ucMiscFlag & 0x8) == 0)) { capacity 1169 drivers/scsi/ips.c cylinders = (unsigned long) capacity / (heads * sectors); capacity 402 drivers/scsi/ips.h sector_t capacity, int geom[]); capacity 878 drivers/scsi/libsas/sas_scsi_host.c sector_t capacity, int *hsc) capacity 882 drivers/scsi/libsas/sas_scsi_host.c sector_div(capacity, 255*63); capacity 883 drivers/scsi/libsas/sas_scsi_host.c hsc[2] = capacity; capacity 2795 drivers/scsi/megaraid.c sector_t capacity, int geom[]) capacity 2811 drivers/scsi/megaraid.c cylinders = (ulong)capacity / (heads * sectors); capacity 2817 drivers/scsi/megaraid.c if ((ulong)capacity >= 0x200000) { capacity 2820 drivers/scsi/megaraid.c cylinders = (ulong)capacity / (heads * sectors); capacity 2832 drivers/scsi/megaraid.c rval = scsi_partsize(bh, capacity, capacity 2846 drivers/scsi/megaraid.c cylinders = (ulong)capacity / (heads * sectors); capacity 2849 drivers/scsi/megaraid.c if ((ulong)capacity >= 0x200000) { capacity 2852 drivers/scsi/megaraid.c cylinders = (ulong)capacity / (heads * sectors); capacity 3074 drivers/scsi/megaraid/megaraid_sas_base.c sector_t capacity, int geom[]) capacity 3086 drivers/scsi/megaraid/megaraid_sas_base.c cylinders = capacity; capacity 3094 drivers/scsi/megaraid/megaraid_sas_base.c if (capacity >= 0x200000) { capacity 3098 drivers/scsi/megaraid/megaraid_sas_base.c cylinders = capacity; capacity 2483 drivers/scsi/mpt3sas/mpt3sas_scsih.c sector_t capacity, int params[]) capacity 2494 drivers/scsi/mpt3sas/mpt3sas_scsih.c cylinders = capacity; capacity 2501 drivers/scsi/mpt3sas/mpt3sas_scsih.c if ((ulong)capacity >= 0x200000) { capacity 2505 drivers/scsi/mpt3sas/mpt3sas_scsih.c cylinders = capacity; capacity 2148 drivers/scsi/mvumi.c sector_t capacity, int geom[]) capacity 2157 drivers/scsi/mvumi.c cylinders = capacity; capacity 2160 drivers/scsi/mvumi.c if (capacity >= 0x200000) { capacity 2164 drivers/scsi/mvumi.c cylinders = capacity; capacity 1778 drivers/scsi/myrb.c sector_t capacity, int geom[]) capacity 1784 drivers/scsi/myrb.c geom[2] = sector_div(capacity, geom[0] * geom[1]); capacity 595 drivers/scsi/pcmcia/sym53c500_cs.c sector_t capacity, int *info_array) capacity 601 drivers/scsi/pcmcia/sym53c500_cs.c size = capacity; capacity 822 drivers/scsi/ppa.c sector_t capacity, int ip[]) capacity 826 drivers/scsi/ppa.c ip[2] = ((unsigned long) capacity + 1) / (ip[0] * ip[1]); capacity 830 drivers/scsi/ppa.c ip[2] = ((unsigned long) capacity + 1) / (ip[0] * ip[1]); capacity 1035 drivers/scsi/qla1280.c sector_t capacity, int geom[]) capacity 1041 drivers/scsi/qla1280.c cylinders = (unsigned long)capacity / (heads * sectors); capacity 1045 drivers/scsi/qla1280.c cylinders = (unsigned long)capacity / (heads * sectors); capacity 469 drivers/scsi/qlogicfas408.c sector_t capacity, int ip[]) capacity 474 drivers/scsi/qlogicfas408.c ip[2] = (unsigned long) capacity / (ip[0] * ip[1]); capacity 478 drivers/scsi/qlogicfas408.c ip[2] = (unsigned long) capacity / (ip[0] * ip[1]); capacity 110 drivers/scsi/qlogicfas408.h sector_t capacity, int ip[]); capacity 25 drivers/scsi/scsicam.c static int setsize(unsigned long capacity, unsigned int *cyls, unsigned int *hds, capacity 68 drivers/scsi/scsicam.c int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip) capacity 71 drivers/scsi/scsicam.c u64 capacity64 = capacity; /* Suppress gcc warning */ capacity 79 drivers/scsi/scsicam.c ret = scsi_partsize(p, (unsigned long)capacity, (unsigned int *)ip + 2, capacity 87 drivers/scsi/scsicam.c ret = setsize((unsigned long)capacity, (unsigned int *)ip + 2, capacity 94 drivers/scsi/scsicam.c if ((capacity >> 11) > 65534) { capacity 102 drivers/scsi/scsicam.c if (capacity > 65535*63*255) capacity 105 drivers/scsi/scsicam.c ip[2] = (unsigned long)capacity / (ip[0] * ip[1]); capacity 126 drivers/scsi/scsicam.c int scsi_partsize(unsigned char *buf, unsigned long capacity, capacity 185 drivers/scsi/scsicam.c *cyls = capacity / ((end_head + 1) * end_sector); capacity 231 drivers/scsi/scsicam.c static int setsize(unsigned long capacity, unsigned int *cyls, unsigned int *hds, capacity 241 drivers/scsi/scsicam.c heads = capacity / temp; /* Compute value for number of heads */ capacity 242 drivers/scsi/scsicam.c if (capacity % temp) { /* If no remainder, done! */ capacity 245 drivers/scsi/scsicam.c sectors = capacity / temp; /* Compute value for sectors per capacity 247 drivers/scsi/scsicam.c if (capacity % temp) { /* If no remainder, done! */ capacity 250 drivers/scsi/scsicam.c cylinders = capacity / temp; /* Compute number of cylinders */ capacity 1199 drivers/scsi/sd.c threshold = sdkp->capacity - SD_LAST_BUGGY_SECTORS; capacity 1428 drivers/scsi/sd.c sector_t capacity = logical_to_sectors(sdp, sdkp->capacity); capacity 1434 drivers/scsi/sd.c diskinfo[2] = capacity >> 11; capacity 1438 drivers/scsi/sd.c host->hostt->bios_param(sdp, bdev, capacity, diskinfo); capacity 1440 drivers/scsi/sd.c scsicam_bios_param(bdev, capacity, diskinfo); capacity 1520 drivers/scsi/sd.c sdkp->capacity = 0; capacity 2261 drivers/scsi/sd.c sdkp->capacity = 0; /* unknown mapped to zero - as usual */ capacity 2332 drivers/scsi/sd.c sdkp->capacity = 0; capacity 2358 drivers/scsi/sd.c sdkp->capacity = lba + 1; capacity 2412 drivers/scsi/sd.c sdkp->capacity = 0; capacity 2417 drivers/scsi/sd.c sdkp->capacity = lba + 1; capacity 2460 drivers/scsi/sd.c if ((sizeof(sdkp->capacity) > 4) && capacity 2461 drivers/scsi/sd.c (sdkp->capacity > 0xffffffffULL)) { capacity 2469 drivers/scsi/sd.c sdkp->capacity = 1 + (sector_t) 0xffffffff; capacity 2489 drivers/scsi/sd.c (sdp->guess_capacity && (sdkp->capacity & 0x01))) { capacity 2492 drivers/scsi/sd.c (unsigned long long) sdkp->capacity); capacity 2493 drivers/scsi/sd.c --sdkp->capacity; capacity 2515 drivers/scsi/sd.c sdkp->capacity = 0; capacity 2529 drivers/scsi/sd.c if (sdkp->capacity > 0xffffffff) capacity 2544 drivers/scsi/sd.c if (!sdkp->first_scan && old_capacity == sdkp->capacity) capacity 2547 drivers/scsi/sd.c string_get_size(sdkp->capacity, sector_size, capacity 2549 drivers/scsi/sd.c string_get_size(sdkp->capacity, sector_size, capacity 2554 drivers/scsi/sd.c (unsigned long long)sdkp->capacity, capacity 3103 drivers/scsi/sd.c sector_t old_capacity = sdkp->capacity; capacity 3194 drivers/scsi/sd.c set_capacity(disk, logical_to_sectors(sdp, sdkp->capacity)); capacity 3366 drivers/scsi/sd.c sdkp->capacity = 0; capacity 3387 drivers/scsi/sd.c if (sdkp->capacity) capacity 84 drivers/scsi/sd.h sector_t capacity; /* size in logical blocks */ capacity 368 drivers/scsi/sd_zbc.c if (sdkp->capacity != max_lba + 1) { capacity 372 drivers/scsi/sd_zbc.c (unsigned long long)sdkp->capacity, capacity 374 drivers/scsi/sd_zbc.c sdkp->capacity = max_lba + 1; capacity 408 drivers/scsi/sd_zbc.c (block + this_zone_blocks < sdkp->capacity capacity 417 drivers/scsi/sd_zbc.c if (block < sdkp->capacity) { capacity 424 drivers/scsi/sd_zbc.c } while (block < sdkp->capacity); capacity 489 drivers/scsi/sd_zbc.c nr_zones = round_up(sdkp->capacity, zone_blocks) >> ilog2(zone_blocks); capacity 519 drivers/scsi/sd_zbc.c sdkp->capacity = 0; capacity 526 drivers/scsi/sd_zbc.c if (!sd_is_zoned(sdkp) || !sdkp->capacity) capacity 529 drivers/scsi/sd_zbc.c if (sdkp->capacity & (sdkp->zone_blocks - 1)) capacity 372 drivers/scsi/sr.c cd->capacity - error_sector < 4 * 75) capacity 728 drivers/scsi/sr.c cd->capacity = 0x1fffff; capacity 738 drivers/scsi/sr.c cd->cdi.capacity = 1; capacity 747 drivers/scsi/sr.c set_capacity(disk, cd->capacity); capacity 805 drivers/scsi/sr.c cd->capacity = 0x1fffff; capacity 810 drivers/scsi/sr.c cd->capacity = 1 + ((buffer[0] << 24) | (buffer[1] << 16) | capacity 820 drivers/scsi/sr.c cd->capacity = max_t(long, cd->capacity, last_written); capacity 837 drivers/scsi/sr.c cd->capacity *= 4; capacity 844 drivers/scsi/sr.c cd->capacity = 0; capacity 853 drivers/scsi/sr.c set_capacity(cd->disk, cd->capacity); capacity 949 drivers/scsi/sr.c cd->cdi.capacity = capacity 951 drivers/scsi/sr.c if (cd->cdi.capacity <= 1) capacity 36 drivers/scsi/sr.h unsigned capacity; /* size in blocks */ capacity 1459 drivers/scsi/stex.c struct block_device *bdev, sector_t capacity, int geom[]) capacity 1463 drivers/scsi/stex.c if (capacity < 0x200000) { capacity 1468 drivers/scsi/stex.c sector_div(capacity, heads * sectors); capacity 1472 drivers/scsi/stex.c geom[2] = capacity; capacity 1449 drivers/scsi/storvsc_drv.c sector_t capacity, int *info) capacity 1451 drivers/scsi/storvsc_drv.c sector_t nsect = capacity; capacity 546 drivers/scsi/wd719x.c sector_t capacity, int geom[]) capacity 548 drivers/scsi/wd719x.c if (capacity >= 0x200000) { capacity 555 drivers/scsi/wd719x.c geom[2] = sector_div(capacity, geom[0] * geom[1]); /* cylinders */ capacity 61 drivers/staging/fwserial/dma_fifo.c int capacity; capacity 67 drivers/staging/fwserial/dma_fifo.c capacity = size + align * open_limit + align * DMA_FIFO_GUARD; capacity 68 drivers/staging/fwserial/dma_fifo.c fifo->data = kmalloc(capacity, gfp_mask); capacity 82 drivers/staging/fwserial/dma_fifo.c fifo->capacity = capacity; capacity 153 drivers/staging/fwserial/dma_fifo.c ofs = fifo->in % fifo->capacity; capacity 154 drivers/staging/fwserial/dma_fifo.c l = min(n, fifo->capacity - ofs); capacity 202 drivers/staging/fwserial/dma_fifo.c ofs = fifo->out % fifo->capacity; capacity 203 drivers/staging/fwserial/dma_fifo.c l = fifo->capacity - ofs; capacity 47 drivers/staging/fwserial/dma_fifo.h int capacity; /* size + reserved */ capacity 1128 drivers/staging/rts5208/ms.c chip->capacity[chip->card2lun[MS_CARD]] = capacity 1129 drivers/staging/rts5208/ms.c ms_card->capacity = xc_total_blk * xc_blk_size; capacity 1131 drivers/staging/rts5208/ms.c chip->capacity[chip->card2lun[MS_CARD]] = capacity 1132 drivers/staging/rts5208/ms.c ms_card->capacity = total_blk * blk_size; capacity 1135 drivers/staging/rts5208/ms.c ms_card->capacity = total_blk * blk_size; capacity 1136 drivers/staging/rts5208/ms.c chip->capacity[chip->card2lun[MS_CARD]] = ms_card->capacity; capacity 2034 drivers/staging/rts5208/ms.c ms_card->capacity = 0x1EE0; capacity 2036 drivers/staging/rts5208/ms.c ms_card->capacity = 0x3DE0; capacity 2040 drivers/staging/rts5208/ms.c ms_card->capacity = 0x7BC0; capacity 2042 drivers/staging/rts5208/ms.c ms_card->capacity = 0xF7C0; capacity 2044 drivers/staging/rts5208/ms.c ms_card->capacity = 0x1EF80; capacity 2046 drivers/staging/rts5208/ms.c ms_card->capacity = 0x3DF00; capacity 2053 drivers/staging/rts5208/ms.c ms_card->capacity = ((u32)eblock_cnt - 2) << ms_card->block_shift; capacity 2056 drivers/staging/rts5208/ms.c chip->capacity[chip->card2lun[MS_CARD]] = ms_card->capacity; capacity 2689 drivers/staging/rts5208/ms.c if ((ms_card->capacity - start_sector) > 0xFE00) capacity 2692 drivers/staging/rts5208/ms.c count = (u16)(ms_card->capacity - start_sector); capacity 177 drivers/staging/rts5208/rtsx_card.c chip->capacity[chip->card2lun[SD_CARD]] = 0; capacity 230 drivers/staging/rts5208/rtsx_card.c chip->capacity[chip->card2lun[XD_CARD]] = 0; capacity 278 drivers/staging/rts5208/rtsx_card.c chip->capacity[chip->card2lun[MS_CARD]] = 0; capacity 1139 drivers/staging/rts5208/rtsx_card.c chip->capacity[lun] = 0; capacity 1144 drivers/staging/rts5208/rtsx_card.c chip->capacity[lun] = 0; capacity 1149 drivers/staging/rts5208/rtsx_card.c chip->capacity[lun] = 0; capacity 1027 drivers/staging/rts5208/rtsx_card.h return chip->capacity[lun]; capacity 1029 drivers/staging/rts5208/rtsx_card.h return chip->capacity[lun]; capacity 400 drivers/staging/rts5208/rtsx_chip.h ((sd_card)->capacity <= 0x4000000)) capacity 402 drivers/staging/rts5208/rtsx_chip.h ((sd_card)->capacity > 0x4000000)) capacity 481 drivers/staging/rts5208/rtsx_chip.h u32 capacity; capacity 538 drivers/staging/rts5208/rtsx_chip.h u32 capacity; capacity 587 drivers/staging/rts5208/rtsx_chip.h u32 capacity; capacity 753 drivers/staging/rts5208/rtsx_chip.h u32 capacity[MAX_ALLOWED_LUN_CNT]; capacity 1590 drivers/staging/rts5208/rtsx_scsi.c if (sd_card->capacity > 0x4000000) capacity 463 drivers/staging/rts5208/sd.c sd_card->capacity = 0; capacity 475 drivers/staging/rts5208/sd.c sd_card->capacity = (((u32)(c_size + 1)) * capacity 483 drivers/staging/rts5208/sd.c sd_card->capacity = (total_sector + 1) << 10; capacity 2013 drivers/staging/rts5208/sd.c sd_card->capacity = 0; capacity 2020 drivers/staging/rts5208/sd.c chip->capacity[chip->card2lun[SD_CARD]] = 0; capacity 2811 drivers/staging/rts5208/sd.c sd_card->capacity = ((u32)ptr[5] << 24) | ((u32)ptr[4] << 16) | capacity 2992 drivers/staging/rts5208/sd.c if (CHK_MMC_SECTOR_MODE(sd_card) && (sd_card->capacity == 0)) capacity 3053 drivers/staging/rts5208/sd.c chip->capacity[chip->card2lun[SD_CARD]] = 0; capacity 3119 drivers/staging/rts5208/sd.c chip->capacity[chip->card2lun[SD_CARD]] = sd_card->capacity; capacity 3138 drivers/staging/rts5208/sd.c sd_card->capacity = 0; capacity 3146 drivers/staging/rts5208/sd.c chip->capacity[chip->card2lun[SD_CARD]] = sd_card->capacity = 0; capacity 3171 drivers/staging/rts5208/sd.c chip->capacity[chip->card2lun[SD_CARD]] = sd_card->capacity; capacity 3316 drivers/staging/rts5208/sd.c chip->capacity[chip->card2lun[SD_CARD]] = 0; capacity 3567 drivers/staging/rts5208/sd.c chip->capacity[chip->card2lun[SD_CARD]] = 0; capacity 587 drivers/staging/rts5208/xd.c xd_card->capacity = 8000; capacity 595 drivers/staging/rts5208/xd.c xd_card->capacity = 16000; capacity 601 drivers/staging/rts5208/xd.c xd_card->capacity = 32000; capacity 607 drivers/staging/rts5208/xd.c xd_card->capacity = 64000; capacity 613 drivers/staging/rts5208/xd.c xd_card->capacity = 128000; capacity 619 drivers/staging/rts5208/xd.c xd_card->capacity = 256000; capacity 625 drivers/staging/rts5208/xd.c xd_card->capacity = 512000; capacity 631 drivers/staging/rts5208/xd.c xd_card->capacity = 1024000; capacity 637 drivers/staging/rts5208/xd.c xd_card->capacity = 2048000; capacity 643 drivers/staging/rts5208/xd.c xd_card->capacity = 4096000; capacity 667 drivers/staging/rts5208/xd.c xd_card->capacity = 0; capacity 743 drivers/staging/rts5208/xd.c chip->capacity[chip->card2lun[XD_CARD]] = xd_card->capacity; capacity 973 drivers/staging/rts5208/xd.c xd_card->capacity = 0; capacity 189 drivers/staging/uwb/ie.c int capacity; capacity 191 drivers/staging/uwb/ie.c capacity = uwb_rc_get_ie(uwb_rc, &ie_info); capacity 192 drivers/staging/uwb/ie.c if (capacity < 0) capacity 193 drivers/staging/uwb/ie.c return capacity; capacity 200 drivers/staging/uwb/ie.c uwb_rc->ies_capacity = capacity; capacity 337 drivers/tty/ipwireless/hardware.c unsigned int capacity; capacity 584 drivers/tty/ipwireless/hardware.c packet->capacity = new_capacity; capacity 589 drivers/tty/ipwireless/hardware.c if (packet->length + minimum_free_space > packet->capacity) { capacity 602 drivers/tty/ipwireless/hardware.c packet->capacity = old_packet->length + minimum_free_space; capacity 86 drivers/usb/storage/alauda.c unsigned long capacity; /* total media size in bytes */ capacity 288 drivers/usb/storage/alauda.c unsigned int num_zones = media_info->capacity >> shift; capacity 422 drivers/usb/storage/alauda.c MEDIA_INFO(us).capacity = 1 << media_info->chipshift; capacity 424 drivers/usb/storage/alauda.c MEDIA_INFO(us).capacity >> 20); capacity 437 drivers/usb/storage/alauda.c num_zones = MEDIA_INFO(us).capacity >> (MEDIA_INFO(us).zoneshift capacity 936 drivers/usb/storage/alauda.c max_lba = MEDIA_INFO(us).capacity >> (blockshift + pageshift); capacity 1038 drivers/usb/storage/alauda.c max_lba = MEDIA_INFO(us).capacity >> (pageshift + blockshift); capacity 1143 drivers/usb/storage/alauda.c unsigned long capacity; capacity 1149 drivers/usb/storage/alauda.c num_zones = MEDIA_INFO(us).capacity >> (MEDIA_INFO(us).zoneshift capacity 1152 drivers/usb/storage/alauda.c capacity = num_zones * MEDIA_INFO(us).uzonesize capacity 1156 drivers/usb/storage/alauda.c ((__be32 *) ptr)[0] = cpu_to_be32(capacity - 1); capacity 1286 drivers/usb/storage/isd200.c unsigned long capacity; capacity 1292 drivers/usb/storage/isd200.c capacity = ata_id_u32(id, ATA_ID_LBA_CAPACITY) - 1; capacity 1294 drivers/usb/storage/isd200.c capacity = (id[ATA_ID_HEADS] * id[ATA_ID_CYLS] * capacity 1297 drivers/usb/storage/isd200.c readCapacityData.LogicalBlockAddress = cpu_to_be32(capacity); capacity 248 drivers/usb/storage/sddr09.c unsigned long capacity; /* Size of card in bytes */ capacity 747 drivers/usb/storage/sddr09.c maxlba = info->capacity >> (info->pageshift + info->blockshift); capacity 830 drivers/usb/storage/sddr09.c end = info->capacity >> (info->blockshift + info->pageshift); capacity 974 drivers/usb/storage/sddr09.c maxlba = info->capacity >> (info->pageshift + info->blockshift); capacity 1205 drivers/usb/storage/sddr09.c if (!info->capacity) capacity 1213 drivers/usb/storage/sddr09.c numblocks = info->capacity >> (info->blockshift + info->pageshift); capacity 1543 drivers/usb/storage/sddr09.c unsigned long capacity; capacity 1600 drivers/usb/storage/sddr09.c info->capacity = (1 << cardinfo->chipshift); capacity 1615 drivers/usb/storage/sddr09.c capacity = (info->lbact << info->blockshift) - 1; capacity 1617 drivers/usb/storage/sddr09.c ((__be32 *) ptr)[0] = cpu_to_be32(capacity); capacity 87 drivers/usb/storage/sddr55.c unsigned long capacity; /* Size of card in bytes */ capacity 650 drivers/usb/storage/sddr55.c if (!info->capacity) capacity 653 drivers/usb/storage/sddr55.c numblocks = info->capacity >> (info->blockshift + info->pageshift); capacity 788 drivers/usb/storage/sddr55.c unsigned long capacity; capacity 862 drivers/usb/storage/sddr55.c capacity = sddr55_get_capacity(us); capacity 864 drivers/usb/storage/sddr55.c if (!capacity) { capacity 869 drivers/usb/storage/sddr55.c info->capacity = capacity; capacity 875 drivers/usb/storage/sddr55.c info->max_log_blks = ((info->capacity >> (info->pageshift + info->blockshift)) / 256) * 250; capacity 881 drivers/usb/storage/sddr55.c capacity = (capacity / 256) * 250; capacity 883 drivers/usb/storage/sddr55.c capacity /= PAGESIZE; capacity 884 drivers/usb/storage/sddr55.c capacity--; capacity 886 drivers/usb/storage/sddr55.c ((__be32 *) ptr)[0] = cpu_to_be32(capacity); capacity 555 drivers/usb/storage/transport.c if (sector + 1 != sdkp->capacity) capacity 1094 include/acpi/actbl2.h u64 capacity; capacity 26 include/linux/arch_topology.h void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity); capacity 48 include/linux/cdrom.h int capacity; /* number of discs in jukebox */ capacity 200 include/linux/drbd_genl.h __u64_field(3, DRBD_GENLA_F_MANDATORY, capacity) capacity 1181 include/linux/libata.h sector_t capacity, int geom[]); capacity 654 include/linux/lightnvm.h nvm_tgt_capacity_fn *capacity; capacity 63 include/linux/mfd/abx500.h int capacity; capacity 37 include/linux/mmc/card.h unsigned int capacity; capacity 50 include/linux/power/bq27xxx_battery.h int capacity; capacity 23 include/linux/power/twl4030_madc_battery.h unsigned int capacity; /* total capacity in uAh */ capacity 325 include/linux/power_supply.h int capacity; /* percent */ capacity 133 include/linux/qed/qed_chain.h u32 capacity; capacity 219 include/linux/qed/qed_chain.h return (u16)(p_chain->capacity - used); capacity 233 include/linux/qed/qed_chain.h return p_chain->capacity - used; capacity 395 include/linux/qed/qed_chain.h return p_chain->capacity; capacity 495 include/linux/qed/qed_chain.h for (i = 0; i < p_chain->capacity; i++) capacity 541 include/linux/qed/qed_chain.h p_chain->capacity = p_chain->usable_per_page * page_cnt; capacity 547 include/net/9p/9p.h size_t capacity; capacity 670 include/scsi/libsas.h sector_t capacity, int *hsc); capacity 16 include/scsi/scsicam.h extern int scsicam_bios_param (struct block_device *bdev, sector_t capacity, int *ip); capacity 17 include/scsi/scsicam.h extern int scsi_partsize(unsigned char *buf, unsigned long capacity, capacity 60 include/uapi/linux/virtio_blk.h __u64 capacity; capacity 3807 kernel/sched/fair.c static inline int task_fits_capacity(struct task_struct *p, long capacity) capacity 3809 kernel/sched/fair.c return fits_capacity(task_util_est(p), capacity); capacity 5629 kernel/sched/fair.c group->sgc->capacity; capacity 5631 kernel/sched/fair.c group->sgc->capacity; capacity 7796 kernel/sched/fair.c unsigned long capacity = scale_rt_capacity(sd, cpu); capacity 7801 kernel/sched/fair.c if (!capacity) capacity 7802 kernel/sched/fair.c capacity = 1; capacity 7804 kernel/sched/fair.c cpu_rq(cpu)->cpu_capacity = capacity; capacity 7805 kernel/sched/fair.c sdg->sgc->capacity = capacity; capacity 7806 kernel/sched/fair.c sdg->sgc->min_capacity = capacity; capacity 7807 kernel/sched/fair.c sdg->sgc->max_capacity = capacity; capacity 7814 kernel/sched/fair.c unsigned long capacity, min_capacity, max_capacity; capacity 7826 kernel/sched/fair.c capacity = 0; capacity 7852 kernel/sched/fair.c capacity += capacity_of(cpu); capacity 7855 kernel/sched/fair.c capacity += sgc->capacity; capacity 7858 kernel/sched/fair.c min_capacity = min(capacity, min_capacity); capacity 7859 kernel/sched/fair.c max_capacity = max(capacity, max_capacity); capacity 7871 kernel/sched/fair.c capacity += sgc->capacity; capacity 7878 kernel/sched/fair.c sdg->sgc->capacity = capacity; capacity 8096 kernel/sched/fair.c sgs->group_capacity = group->sgc->capacity; capacity 8644 kernel/sched/fair.c unsigned long capacity, load; capacity 8685 kernel/sched/fair.c capacity = capacity_of(i); capacity 8694 kernel/sched/fair.c capacity_of(env->dst_cpu) < capacity && capacity 8720 kernel/sched/fair.c if (load * busiest_capacity > busiest_load * capacity) { capacity 8722 kernel/sched/fair.c busiest_capacity = capacity; capacity 1397 kernel/sched/sched.h unsigned long capacity; capacity 87 kernel/sched/topology.c if (group->sgc->capacity != SCHED_CAPACITY_SCALE) capacity 88 kernel/sched/topology.c printk(KERN_CONT " cap=%lu", group->sgc->capacity); capacity 921 kernel/sched/topology.c sg->sgc->capacity = SCHED_CAPACITY_SCALE * cpumask_weight(sg_span); capacity 1087 kernel/sched/topology.c sg->sgc->capacity = SCHED_CAPACITY_SCALE * cpumask_weight(sched_group_span(sg)); capacity 1960 kernel/sched/topology.c unsigned long capacity; capacity 1962 kernel/sched/topology.c capacity = arch_scale_cpu_capacity(j); capacity 1964 kernel/sched/topology.c if (capacity <= max_capacity) capacity 1967 kernel/sched/topology.c max_capacity = capacity; capacity 1258 lib/iov_iter.c size_t capacity; capacity 1270 lib/iov_iter.c capacity = min(npages,maxpages) * PAGE_SIZE - *start; capacity 1272 lib/iov_iter.c return __pipe_get_pages(i, min(maxsize, capacity), pages, idx, start); capacity 237 net/9p/client.c fc->capacity = alloc_msize; capacity 56 net/9p/protocol.c size_t len = min(pdu->capacity - pdu->size, size); capacity 65 net/9p/protocol.c size_t len = min(pdu->capacity - pdu->size, size); capacity 551 net/9p/protocol.c fake_pdu.capacity = len; capacity 602 net/9p/protocol.c fake_pdu.capacity = len; capacity 291 net/9p/trans_fd.c m->rc.capacity = 7; /* start by reading header */ capacity 296 net/9p/trans_fd.c m, m->rc.offset, m->rc.capacity, capacity 297 net/9p/trans_fd.c m->rc.capacity - m->rc.offset); capacity 299 net/9p/trans_fd.c m->rc.capacity - m->rc.offset); capacity 310 net/9p/trans_fd.c if ((!m->rreq) && (m->rc.offset == m->rc.capacity)) { capacity 351 net/9p/trans_fd.c memcpy(m->rc.sdata, m->tmp_buf, m->rc.capacity); capacity 352 net/9p/trans_fd.c m->rc.capacity = m->rc.size; capacity 358 net/9p/trans_fd.c if ((m->rreq) && (m->rc.offset == m->rc.capacity)) { capacity 376 net/9p/trans_fd.c m->rc.capacity = 0; capacity 273 net/9p/trans_virtio.c VIRTQUEUE_NUM, req->rc.sdata, req->rc.capacity); capacity 140 samples/mic/mpssd/mpssd.c .capacity = htole64(0), capacity 993 samples/mic/mpssd/mpssd.c virtblk_dev_page.blk_config.capacity = capacity 996 samples/mic/mpssd/mpssd.c virtblk_dev_page.blk_config.capacity++; capacity 998 samples/mic/mpssd/mpssd.c virtblk_dev_page.blk_config.capacity = capacity 999 samples/mic/mpssd/mpssd.c htole64(virtblk_dev_page.blk_config.capacity); capacity 60 security/selinux/ss/sidtab.c u32 capacity = SIDTAB_LEAF_ENTRIES; capacity 63 security/selinux/ss/sidtab.c while (count > capacity) { capacity 64 security/selinux/ss/sidtab.c capacity <<= SIDTAB_INNER_SHIFT; capacity 120 sound/firewire/fireworks/fireworks_transaction.c size_t capacity, till_end; capacity 129 sound/firewire/fireworks/fireworks_transaction.c capacity = (unsigned int)(efw->pull_ptr - efw->push_ptr); capacity 131 sound/firewire/fireworks/fireworks_transaction.c capacity = snd_efw_resp_buf_size - capacity 135 sound/firewire/fireworks/fireworks_transaction.c if (capacity < length) { capacity 2265 tools/testing/nvdimm/test/nfit.c bdw->capacity = DIMM_SIZE; capacity 2277 tools/testing/nvdimm/test/nfit.c bdw->capacity = DIMM_SIZE; capacity 2289 tools/testing/nvdimm/test/nfit.c bdw->capacity = DIMM_SIZE; capacity 2301 tools/testing/nvdimm/test/nfit.c bdw->capacity = DIMM_SIZE; capacity 2390 tools/testing/nvdimm/test/nfit.c bdw->capacity = DIMM_SIZE;