/drivers/scsi/ |
H A D | aha1740.c | 524 sector_t capacity, int* ip) 526 int size = capacity; 522 aha1740_biosparam(struct scsi_device *sdev, struct block_device *dev, sector_t capacity, int* ip) argument
|
H A D | atp870u.c | 3129 sector_t capacity, int *ip) 3135 cylinders = (unsigned long)capacity / (heads * sectors); 3139 cylinders = (unsigned long)capacity / (heads * sectors); 3128 atp870u_biosparam(struct scsi_device *disk, struct block_device *dev, sector_t capacity, int *ip) argument
|
H A D | g_NCR5380.c | 551 sector_t capacity, int *ip) 555 ip[2] = capacity >> 11; 550 generic_NCR5380_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int *ip) argument
|
H A D | imm.c | 955 * Apparently the disk->capacity attribute is off by 1 sector 961 sector_t capacity, int ip[]) 965 ip[2] = ((unsigned long) capacity + 1) / (ip[0] * ip[1]); 969 ip[2] = ((unsigned long) capacity + 1) / (ip[0] * ip[1]); 960 imm_biosparam(struct scsi_device *sdev, struct block_device *dev, sector_t capacity, int ip[]) argument
|
H A D | in2000.c | 2137 static int in2000_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int *iinfo) argument 2141 size = capacity; 2153 iinfo[2] = (unsigned long) capacity / (iinfo[0] * iinfo[1]); 2158 iinfo[2] = (unsigned long) capacity / (iinfo[0] * iinfo[1]); 2163 iinfo[2] = (unsigned long) capacity / (iinfo[0] * iinfo[1]);
|
H A D | ppa.c | 827 * Apparently the disk->capacity attribute is off by 1 sector 833 sector_t capacity, int ip[]) 837 ip[2] = ((unsigned long) capacity + 1) / (ip[0] * ip[1]); 841 ip[2] = ((unsigned long) capacity + 1) / (ip[0] * ip[1]); 832 ppa_biosparam(struct scsi_device *sdev, struct block_device *dev, sector_t capacity, int ip[]) argument
|
H A D | 3w-xxxx.c | 114 1.02.00.012 - Fix read capacity to under report by 1 sector to fix get 1369 sector_t capacity, int geom[]) 1379 cylinders = sector_div(capacity, heads * sectors); 1381 if (capacity >= 0x200000) { 1384 cylinders = sector_div(capacity, heads * sectors); 1682 u32 capacity; local 1696 capacity = (param_data[3] << 24) | (param_data[2] << 16) | 1700 capacity -= 1; 1702 dprintk(KERN_NOTICE "3w-xxxx: tw_scsiop_read_capacity_complete(): Capacity = 0x%x.\n", capacity); 1705 buff[0] = (capacity >> 2 1368 tw_scsi_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[]) argument [all...] |
H A D | NCR53c406a.c | 752 sector_t capacity, int *info_array) 758 size = capacity; 750 NCR53c406a_biosparm(struct scsi_device *disk, struct block_device *dev, sector_t capacity, int *info_array) argument
|
H A D | aha1542.c | 1704 struct block_device *bdev, sector_t capacity, int *ip) 1707 int size = capacity; 1703 aha1542_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int *ip) argument
|
H A D | fdomain.c | 1590 sector_t capacity, int *info_array) 1593 int size = capacity; 1588 fdomain_16x0_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int *info_array) argument
|
H A D | initio.c | 2685 * @capacity: Sector size of drive 2695 sector_t capacity, int *info_array) 2706 info_array[2] = (unsigned long)capacity / tc->heads / tc->sectors; 2711 info_array[2] = (unsigned long)capacity / 255 / 63; 2715 info_array[2] = (unsigned long)capacity >> 11; 2694 i91u_biosparam(struct scsi_device *sdev, struct block_device *dev, sector_t capacity, int *info_array) argument
|
/drivers/scsi/libsas/ |
H A D | sas_scsi_host.c | 856 sector_t capacity, int *hsc) 860 sector_div(capacity, 255*63); 861 hsc[2] = capacity; 854 sas_bios_param(struct scsi_device *scsi_dev, struct block_device *bdev, sector_t capacity, int *hsc) argument
|
/drivers/block/drbd/ |
H A D | drbd_bitmap.c | 604 int drbd_bm_resize(struct drbd_conf *mdev, sector_t capacity, int set_new_bits) argument 617 dev_info(DEV, "drbd_bm_resize called with capacity == %llu\n", 618 (unsigned long long)capacity); 620 if (capacity == b->bm_dev_capacity) 625 if (capacity == 0) { 641 bits = BM_SECT_TO_BIT(ALIGN(capacity, BM_SECT_PER_BIT)); 691 b->bm_dev_capacity = capacity;
|
H A D | drbd_worker.c | 515 const sector_t capacity = drbd_get_capacity(mdev->this_bdev); local 622 if (sector + (size>>9) > capacity) 623 size = (capacity-sector)<<9; 674 const sector_t capacity = drbd_get_capacity(mdev->this_bdev); local 683 if (sector >= capacity) { 695 if (sector + (size>>9) > capacity) 696 size = (capacity-sector)<<9;
|
/drivers/block/paride/ |
H A D | pt.c | 224 int capacity; /* Size of tape in KB */ member in struct:pt_unit 555 tape->capacity = 0; 568 tape->capacity = xn(buf, 24, 4); 576 printk(", blocksize %d, %d MB\n", tape->bs, tape->capacity / 1024);
|
H A D | pd.c | 227 int capacity; /* Size of this volume in sectors */ member in struct:pd_unit 676 disk->capacity = le32_to_cpu(*(__le32 *) (pd_scratch + 120)); 678 disk->capacity = disk->sectors * disk->heads * disk->cylinders; 693 disk->capacity, disk->capacity / 2048, 697 if (disk->capacity) 759 geo->cylinders = disk->capacity / (geo->heads * geo->sectors); 814 set_capacity(p, disk->capacity); 866 disk->capacity = 0; 900 set_capacity(disk->gd, disk->capacity); [all...] |
/drivers/block/ |
H A D | xen-blkfront.c | 529 static int xlvbd_alloc_gendisk(blkif_sector_t capacity, argument 600 set_capacity(gd, capacity); 1197 * a capacity change; update the capacity. 1203 printk(KERN_INFO "Setting capacity to %Lu\n",
|
/drivers/ide/ |
H A D | ide-cd.c | 112 * don't care about tray state messages for e.g. capacity 873 static int cdrom_read_capacity(ide_drive_t *drive, unsigned long *capacity, argument 918 *capacity = 1 + be32_to_cpu(capbuf.lba); 922 *capacity, *sectors_per_frame); 985 /* try to get the total cdrom capacity and sector size */ 986 stat = cdrom_read_capacity(drive, &toc->capacity, §ors_per_frame, 989 toc->capacity = 0x1fffff; 991 set_capacity(info->disk, toc->capacity * sectors_per_frame); 992 /* save a private copy of the TOC capacity for error handling */ 993 drive->probed_capacity = toc->capacity * sectors_per_fram 1393 unsigned long capacity, sectors_per_frame; local [all...] |
/drivers/net/ |
H A D | virtio_net.c | 620 int capacity; local 626 capacity = xmit_skb(vi, skb); 629 if (unlikely(capacity < 0)) { 630 if (likely(capacity == -ENOMEM)) { 639 capacity); 653 if (capacity < 2+MAX_SKB_FRAGS) { 657 capacity += free_old_xmit_skbs(vi); 658 if (capacity >= 2+MAX_SKB_FRAGS) {
|
/drivers/power/ |
H A D | bq27x00_battery.c | 50 #define BQ27x00_REG_NAC 0x0C /* Nominal available capacity */ 64 #define BQ27500_REG_DCAP 0x3C /* Design capacity */ 86 int capacity; member in struct:bq27x00_reg_cache 317 dev_info(di->dev, "battery is not calibrated! ignoring capacity values\n"); 318 cache.capacity = -ENODATA; 325 cache.capacity = bq27x00_battery_read_rsoc(di); 518 ret = bq27x00_simple_value(di->cache.capacity, val);
|
/drivers/scsi/pcmcia/ |
H A D | sym53c500_cs.c | 604 sector_t capacity, int *info_array) 610 size = capacity; 602 SYM53C500_biosparm(struct scsi_device *disk, struct block_device *dev, sector_t capacity, int *info_array) argument
|
/drivers/usb/storage/ |
H A D | alauda.c | 95 unsigned long capacity; /* total media size in bytes */ member in struct:alauda_media_info 178 unsigned char chipshift; /* 1<<cs bytes total capacity */ 296 unsigned int num_zones = media_info->capacity >> shift; 353 * Retrieves a 4-byte media signature, which indicates manufacturer, capacity, 386 * Examines the media and deduces capacity, etc. 434 MEDIA_INFO(us).capacity = 1 << media_info->chipshift; 435 US_DEBUGP("Found media with capacity: %ldMB\n", 436 MEDIA_INFO(us).capacity >> 20); 449 num_zones = MEDIA_INFO(us).capacity >> (MEDIA_INFO(us).zoneshift 952 max_lba = MEDIA_INFO(us).capacity >> (blockshif 1164 unsigned long capacity; local [all...] |
H A D | sddr09.c | 119 int chipshift; /* 1<<cs bytes total capacity */ 262 unsigned long capacity; /* Size of card in bytes */ member in struct:sddr09_card_info 762 maxlba = info->capacity >> (info->pageshift + info->blockshift); 790 /* Not overflowing capacity? */ 846 end = info->capacity >> (info->blockshift + info->pageshift); 991 maxlba = info->capacity >> (info->pageshift + info->blockshift); 1032 /* Not overflowing capacity? */ 1157 US_DEBUGP("Reading capacity...\n"); 1218 if (!info->capacity) 1222 // divide into the total capacity t 1554 unsigned long capacity; local [all...] |
/drivers/ata/ |
H A D | libata-scsi.c | 361 * @capacity: capacity of SCSI device 376 sector_t capacity, int geom[]) 380 sector_div(capacity, 255*63); 381 geom[2] = capacity; 387 * ata_scsi_unlock_native_capacity - unlock native capacity 388 * @sdev: SCSI device to adjust device capacity for 375 ata_std_bios_param(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[]) argument
|
/drivers/block/mtip32xx/ |
H A D | mtip32xx.c | 1672 * Get the drive capacity. 3429 * -ENOTTY An error occurred while reading the drive capacity. 3435 sector_t capacity; local 3440 if (!(mtip_hw_get_capacity(dd, &capacity))) { 3442 "Could not get drive capacity.\n"); 3448 sector_div(capacity, (geo->heads * geo->sectors)); 3449 geo->cylinders = capacity; 3558 sector_t capacity; local 3644 /* Set the capacity of the device in 512 byte sectors. */ 3645 if (!(mtip_hw_get_capacity(dd, &capacity))) { [all...] |