/drivers/scsi/ |
H A D | sr.h | 35 unsigned capacity; /* size in blocks */ member in struct:scsi_cd
|
H A D | scsicam.c | 24 static int setsize(unsigned long capacity, unsigned int *cyls, unsigned int *hds, 57 * @capacity: size of the disk in sectors 67 int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip) argument 70 u64 capacity64 = capacity; /* Suppress gcc warning */ 78 ret = scsi_partsize(p, (unsigned long)capacity, (unsigned int *)ip + 2, 86 ret = setsize((unsigned long)capacity, (unsigned int *)ip + 2, 93 if ((capacity >> 11) > 65534) { 101 if (capacity > 65535*63*255) 104 ip[2] = (unsigned long)capacity / (ip[0] * ip[1]); 114 * @capacity 125 scsi_partsize(unsigned char *buf, unsigned long capacity, unsigned int *cyls, unsigned int *hds, unsigned int *secs) argument 230 setsize(unsigned long capacity, unsigned int *cyls, unsigned int *hds, unsigned int *secs) argument [all...] |
H A D | pas16.c | 512 sector_t capacity, int * ip) 514 int size = capacity; 511 pas16_biosparam(struct scsi_device *sdev, struct block_device *dev, sector_t capacity, int * ip) argument
|
H A D | t128.c | 328 sector_t capacity, int * ip) 332 ip[2] = capacity >> 11; 327 t128_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int * ip) argument
|
H A D | dtc.c | 334 sector_t capacity, int *ip) 336 int size = capacity; 333 dtc_biosparam(struct scsi_device *sdev, struct block_device *dev, sector_t capacity, int *ip) argument
|
H A D | sd.h | 26 * Size of the initial data buffer for mode and read capacity data 56 sector_t capacity; /* size in 512-byte sectors */ member in struct:scsi_disk
|
/drivers/uwb/ |
H A D | ie.c | 203 int capacity; local 205 capacity = uwb_rc_get_ie(uwb_rc, &ie_info); 206 if (capacity < 0) 207 return capacity; 214 uwb_rc->ies_capacity = capacity;
|
/drivers/ide/ |
H A D | ide-cd.h | 72 unsigned long capacity; member in struct:atapi_toc
|
H A D | ide-floppy.c | 306 * Look at the flexible disk page parameters. We ignore the CHS capacity 315 int capacity, lba_capacity; local 342 capacity = cyls * heads * sectors * sector_size; 347 drive->name, capacity / 1024, cyls, heads, 356 if (capacity < lba_capacity) { 357 printk(KERN_NOTICE PFX "%s: The disk reports a capacity of %d " 359 drive->name, lba_capacity, capacity); 361 capacity / floppy->block_size : 0; 370 * capacity. 396 desc_cnt = header_len / 8; /* capacity descripto [all...] |
H A D | ide-disk.c | 203 * Queries for true maximum capacity of the drive. 300 u64 capacity, set_max; local 302 capacity = drive->capacity64; 310 if (set_max == capacity + 1) 328 u64 capacity, set_max; local 331 capacity = drive->capacity64; 334 if (set_max <= capacity) 340 "\tcurrent capacity is %llu sectors (%llu MB)\n" 341 "\tnative capacity is %llu sectors (%llu MB)\n", 343 capacity, sectors_to_M 529 unsigned long long capacity; local 660 unsigned long long capacity; local [all...] |
/drivers/message/i2o/ |
H A D | i2o_scsi.c | 738 * @capacity: size in sectors 746 struct block_device *dev, sector_t capacity, 751 size = capacity; 745 i2o_scsi_bios_param(struct scsi_device *sdev, struct block_device *dev, sector_t capacity, int *ip) argument
|
H A D | i2o_block.c | 541 static void i2o_block_biosparam(unsigned long capacity, unsigned short *cyls, argument 547 if (capacity <= BLOCK_SIZE_528M) 549 else if (capacity <= BLOCK_SIZE_1G) 551 else if (capacity <= BLOCK_SIZE_21G) 553 else if (capacity <= BLOCK_SIZE_42G) 558 cylinders = (unsigned long)capacity / (heads * sectors); 1094 * then we ask for the device capacity data
|
/drivers/power/ |
H A D | apm_power.c | 91 /* try guess battery with more capacity */ 286 union power_supply_propval capacity, time_to_full, time_to_empty; local 309 /* battery life (i.e. capacity, in percents) */ 311 if (MPSY_PROP(CAPACITY, &capacity) == 0) { 312 info->battery_life = capacity.intval;
|
H A D | ds2782_battery.c | 27 #define DS2782_REG_RARC 0x06 /* Remaining active relative capacity */ 39 #define DS2786_REG_RARC 0x02 /* Remaining active relative capacity */ 48 int (*get_battery_capacity)(struct ds278x_info *info, int *capacity); 156 static int ds2782_get_capacity(struct ds278x_info *info, int *capacity) argument 164 *capacity = raw; 196 static int ds2786_get_capacity(struct ds278x_info *info, int *capacity) argument 204 /* Relative capacity is displayed with resolution 0.5 % */ 205 *capacity = raw/2 ; 213 int capacity; local 219 err = info->ops->get_battery_capacity(info, &capacity); [all...] |
H A D | da9052-battery.c | 55 /* Lookup table for voltage vs capacity */ 350 static int da9052_bat_read_capacity(struct da9052_battery *bat, int *capacity) argument 374 *capacity = 100; 378 *capacity = 0; 397 *capacity = da9052_bat_interpolate(vbat_lower, vbat_upper, level_lower, 407 int capacity; local 419 ret = da9052_bat_read_capacity(bat, &capacity); 422 if (capacity < DA9052_BAT_LOW_CAP)
|
H A D | ds2780_battery.c | 309 int *capacity) 318 *capacity = raw; 324 int ret, current_uA, capacity; local 330 ret = ds2780_get_capacity(dev_info, &capacity); 334 if (capacity == 100) 308 ds2780_get_capacity(struct ds2780_device_info *dev_info, int *capacity) argument
|
H A D | ds2781_battery.c | 311 int *capacity) 320 *capacity = raw; 326 int ret, current_uA, capacity; local 332 ret = ds2781_get_capacity(dev_info, &capacity); 337 if (capacity == 100) 310 ds2781_get_capacity(struct ds2781_device_info *dev_info, int *capacity) argument
|
H A D | intel_mid_battery.c | 145 u32 capacity; /* Charger capacity */ member in struct:battery_property 192 prop->capacity = data[0]; 342 /* set batt_prev_charge_full to battery capacity the first time */ 349 pbi->batt_prev_charge_full = batt_prop.capacity;
|
/drivers/scsi/aic7xxx/ |
H A D | aiclib.h | 137 aic_sector_div(sector_t capacity, int heads, int sectors) argument 140 sector_div(capacity, (heads * sectors)); 141 return (int)capacity;
|
/drivers/usb/storage/ |
H A D | sddr55.c | 95 unsigned long capacity; /* Size of card in bytes */ member in struct:sddr55_card_info 571 US_DEBUGP("Reading capacity...\n"); 659 if (!info->capacity) 662 numblocks = info->capacity >> (info->blockshift + info->pageshift); 793 unsigned long capacity; local 859 capacity = sddr55_get_capacity(us); 861 if (!capacity) { 866 info->capacity = capacity; 870 info->max_log_blks = ((info->capacity >> (inf [all...] |
/drivers/block/ |
H A D | virtio_blk.c | 326 u64 capacity, size; local 332 /* Host must always specify the capacity. */ 333 vdev->config->get(vdev, offsetof(struct virtio_blk_config, capacity), 334 &capacity, sizeof(capacity)); 336 /* If capacity is too big, truncate with warning. */ 337 if ((sector_t)capacity != capacity) { 339 (unsigned long long)capacity); 340 capacity [all...] |
/drivers/firewire/ |
H A D | nosy.c | 72 size_t capacity; member in struct:packet_buffer 127 packet_buffer_init(struct packet_buffer *buffer, size_t capacity) argument 129 buffer->data = kmalloc(capacity, GFP_KERNEL); 134 buffer->capacity = capacity; 165 end = buffer->data + buffer->capacity; 199 if (buffer->capacity < 205 end = buffer->data + buffer->capacity;
|
/drivers/net/wireless/iwlwifi/ |
H A D | iwl-agn.c | 316 u32 capacity, u32 mode) 344 if (WARN_ON(num_events > capacity - start_idx)) 345 num_events = capacity - start_idx; 370 u32 capacity; /* event log capacity in # entries */ local 372 u32 capacity; member in struct:__anon3587 386 capacity = read.capacity; 395 * Therefore, it can happen that we read next_entry == capacity, 398 if (unlikely(next_entry == capacity)) 314 iwl_print_cont_event_trace(struct iwl_priv *priv, u32 base, u32 start_idx, u32 num_events, u32 capacity, u32 mode) argument [all...] |
H A D | iwl-trans-pcie-rx.c | 790 static int iwl_print_last_event_logs(struct iwl_trans *trans, u32 capacity, argument 802 capacity - (size - next_entry), 829 u32 capacity; /* event log capacity in # entries */ local 859 capacity = iwl_read_targ_mem(trans, base); 864 if (capacity > logsize) { 865 IWL_ERR(trans, "Log capacity %d is bogus, limit to %d " 866 "entries\n", capacity, logsize); 867 capacity = logsize; 876 size = num_wraps ? capacity [all...] |
/drivers/scsi/aacraid/ |
H A D | linit.c | 310 * @capacity: the sector capacity of the disk 315 * number of cylinders so as not to exceed drive capacity. In order for 329 sector_t capacity, int *geom) 339 if (capacity >= 2 * 1024 * 1024) { /* 1 GB in 512 byte sectors */ 340 if(capacity >= 4 * 1024 * 1024) { /* 2 GB in 512 byte sectors */ 352 param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); 395 param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); 416 * total capacity and the queue depth supported by the target device. 484 * total capacity an 328 aac_biosparm(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int *geom) argument [all...] |