Searched refs:capacity (Results 1 - 25 of 64) sorted by relevance

123

/illumos-gate/usr/src/head/
H A Dpkgdev.h40 longlong_t capacity; /* number of 512-blocks on device */ member in struct:pkgdev
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/
H A Dcvrt_spd_data.c104 int capacity; local
162 * calculate the capacity and insert into capacity record
180 capacity = spd->mod_row_density;
182 (capacity > 16)) ||
183 (capacity > 4)) {
184 capacity *= 4;
192 capacity *= c;
193 if ((m_or_g == 'M') && (capacity >= 1024)) {
194 capacity /
[all...]
/illumos-gate/usr/src/cmd/hal/utils/
H A Dcdutils.h35 uint_t capacity; member in struct:disc_info
54 boolean_t read_format_capacity(int fd, uint64_t *capacity);
57 uint64_t *capacity);
H A Dcdutils.c398 di->capacity = ((buf[21] * 60) + buf[22]) * 75;
400 di->capacity = 0;
407 * returns current/maximum format capacity in bytes
410 read_format_capacity(int fd, uint64_t *capacity) argument
436 *capacity = (uint64_t)num_blocks * block_len;
449 * disc capacity (in bytes)
452 get_disc_capacity_for_profile(int fd, int profile, uint64_t *capacity) argument
462 *capacity = mi.dki_capacity * mi.dki_lbsize;
467 if (read_format_capacity(fd, capacity) && (*capacity >
[all...]
/illumos-gate/usr/src/cmd/pgstat/
H A Dpgstat.pl506 my ($hwload, $utilization, $capacity, $accuracy) =
522 $pgs{$pg}->{capacity} = $capacity;
584 my $capacity = $pgs{$pg}->{capacity};
600 number_to_scaled_string($capacity),
635 number_to_scaled_string($capacity);
687 my ($hwload, $utilization, $capacity, $accuracy) =
704 $pgs{$pg}->{capacity} = number_to_scaled_string($capacity);
[all...]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dbd_chain_st.h23 u16_t capacity; /* number of _usable_ bds (e.g. not including _next_ bds) */ member in struct:_lm_bd_chain_t
H A Dbd_chain.h79 return (bd_chain->bd_left == bd_chain->capacity);
257 bd_chain->capacity = bd_chain->page_cnt * bd_chain->usable_bds_per_page;
258 bd_chain->bd_left = bd_chain->capacity;
291 * bug is that an "imulw $-0x80,..." is generated which wrecks the capacity
298 bd_chain->capacity = page_cnt;
299 bd_chain->capacity *= bd_chain->usable_bds_per_page;
301 bd_chain->capacity = page_cnt * bd_chain->usable_bds_per_page;
314 bd_chain->bd_left = bd_chain->capacity;
510 DbgBreakIfFastPath(bd_chain->bd_left > bd_chain->capacity);
572 DbgBreakIf(bd_chain->bd_left == bd_chain->capacity);
[all...]
/illumos-gate/usr/src/lib/udapl/udapl_tavor/include/
H A Ddapl_hash.h83 IN DAT_COUNT capacity,
/illumos-gate/usr/src/lib/libpkg/common/
H A Ddevtype.c50 devp->capacity = 0;
79 /* check for capacity */
80 if (name = devattr(alias, "capacity")) {
82 devp->capacity = atoll(name);
/illumos-gate/usr/src/cmd/lvm/metassist/layout/
H A Dlayout_concat.c71 * nbytes - the desired capacity of the concat
356 * capacity using slices on disks in the input list.
380 uint64_t capacity = 0; local
410 while (capacity < nbytes) {
430 error = choose_slice((nbytes-capacity), npaths, slices, comps,
456 /* increment concat's capacity */
459 capacity += csize;
473 if (capacity >= nbytes) {
486 if (capacity > 0) {
488 print_insufficient_capacity_msg(capacity);
[all...]
/illumos-gate/usr/src/cmd/format/
H A Dauto_sense.c72 * Disk capacity root swap usr
147 * capacity of the configured lun.
185 struct scsi_capacity_16 *capacity,
193 struct scsi_capacity_16 *capacity);
227 static int adjust_disk_geometry(diskaddr_t capacity, uint_t *cyl,
234 diskaddr_t capacity,
275 * get vendor, product, revision and capacity info.
348 disk->capacity = label->capacity;
492 /* get the LBA size and capacity */
776 struct scsi_capacity_16 capacity; local
894 generic_disk_sense( int fd, int can_prompt, struct dk_label *label, struct scsi_inquiry *inquiry, struct scsi_capacity_16 *capacity, char *disk_name) argument
1378 use_existing_disk_type( int fd, int can_prompt, struct dk_label *label, struct scsi_inquiry *inquiry, struct disk_type *disk_type, struct scsi_capacity_16 *capacity) argument
1456 diskaddr_t capacity; local
2100 adjust_disk_geometry(diskaddr_t capacity, uint_t *cyl, uint_t *nhead, uint_t *nsect) argument
2156 square_box( diskaddr_t capacity, uint_t *dim1, uint_t lim1, uint_t *dim2, uint_t lim2, uint_t *dim3, uint_t lim3) argument
[all...]
H A Dhardware_structs.h118 uint64_t capacity; member in struct:disk_type
125 uint64_t capacity; member in struct:efi_info
H A Dio.h122 uint64_t capacity);
H A Dctlr_scsi.c2045 * formatting drives with huge capacity
2597 uscsi_read_capacity_16(fd, capacity)
2599 struct scsi_capacity_16 *capacity;
2605 (void) memset((char *)capacity, 0, sizeof (struct scsi_capacity_16));
2611 ucmd.uscsi_bufaddr = (caddr_t)capacity;
2639 err_print("Read capacity 16 failed\n");
2643 * Dump the capacity data if anyone's interested
2645 dump("Capacity: ", (caddr_t)capacity,
2649 capacity->sc_capacity = BE_64(capacity
3603 get_cur_protection_type(struct scsi_capacity_16 *capacity) argument
[all...]
/illumos-gate/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/
H A DAggregate.java107 int capacity = (int)(((float)aggregations.size() * 3.0f) / 2.0f);
109 map = new HashMap <String, Aggregation> (capacity, 1.0f);
119 int capacity = (int)(((float)recordSequence * 3.0f) / 2.0f);
120 Set <Integer> ordinals = new HashSet <Integer> (capacity, 1.0f);
H A DAggregation.java147 int capacity = (int)(((float)records.size() * 3.0f) / 2.0f);
149 map = new HashMap <Tuple, AggregationRecord> (capacity, 1.0f);
/illumos-gate/usr/src/uts/sun/sys/dada/impl/
H A Dcommands.h67 uint_t capacity; member in struct:dcd_capacity
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/
H A Dcapacity.notes.txt38 how one is supposed to calculate capacity:
48 reliably calculate the capacity of an ATA drive, but I can't make
68 implement this algorithm in deriving the capacity and geometry
82 >reliably calculate the capacity of an ATA drive, but I can't make
100 Of course Read/Set Max do alter the drive's apparent capacity but assuming
105 53:58. Words 60:61 are the drive capacity. But even if you must use CHS
106 mode, words 60:61 are still the true drive capacity but words 57:58 are
107 the capacity that the current CHS geometry can address and [57:58] must be
141 The drive capacity is (num-cyl)*(favorite heads)*(favorite sectors).
146 drive capacity
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Dcmlb.c291 static void cmlb_resync_geom_caches(struct cmlb_lun *cl, diskaddr_t capacity,
293 static int cmlb_read_fdisk(struct cmlb_lun *cl, diskaddr_t capacity,
298 static int cmlb_use_efi(struct cmlb_lun *cl, diskaddr_t capacity, int flags,
325 static void cmlb_convert_geometry(struct cmlb_lun *cl, diskaddr_t capacity,
602 * one bug in obtaining capacity (in sd):
605 * disks' capacity on x86 platform. And LBAs are addressed
623 * If capacity increasing by 1 causes disks' capacity
632 * sd uses (capacity -1) to calculate geometry;
636 * so that sd doesn't support a disk with capacity
1126 cmlb_efi_label_capacity(cmlb_handle_t cmlbhandle, diskaddr_t *capacity, void *tg_cookie) argument
1386 diskaddr_t capacity; local
1622 diskaddr_t capacity; local
1846 cmlb_convert_geometry(struct cmlb_lun *cl, diskaddr_t capacity, struct dk_geom *cl_g, void *tg_cookie) argument
1962 cmlb_resync_geom_caches(struct cmlb_lun *cl, diskaddr_t capacity, void *tg_cookie) argument
2378 cmlb_read_fdisk(struct cmlb_lun *cl, diskaddr_t capacity, void *tg_cookie) argument
2800 cmlb_use_efi(struct cmlb_lun *cl, diskaddr_t capacity, int flags, void *tg_cookie) argument
3273 diskaddr_t capacity; local
5208 diskaddr_t capacity; local
5388 diskaddr_t capacity; local
5540 diskaddr_t capacity; local
5712 diskaddr_t capacity; local
[all...]
/illumos-gate/usr/src/cmd/smserverd/
H A Dsmediad.c267 static int32_t get_floppy_geom(int32_t fd, uint32_t capacity,
269 static int32_t get_media_capacity(int32_t fd, uint32_t *capacity,
272 static int32_t scsi_ls120_format(uint_t fd, uint_t flavor, uint32_t capacity,
354 debug(5, "Read capacity : %d - %d errno = %d\n",
545 get_media_capacity(int32_t fd, uint32_t *capacity, uint32_t *blocksize) argument
592 * Generate capacity and blocksize information
595 *capacity = (uint32_t)((data[4] << 24) + (data[5] << 16) +
598 debug(1, "capacity is %x %x %x %x = %x", data[4], data[5], data[6],
599 data[7], *capacity);
616 uint32_t capacity; local
764 scsi_ls120_format(uint_t fd, uint_t flavor, uint32_t capacity, uint32_t blocksize) argument
861 uint32_t capacity; local
2188 uint32_t capacity; local
3040 get_floppy_geom(int32_t fd, uint32_t capacity, struct dk_geom *dkgeom) argument
3094 uint32_t capacity, blocksize; local
[all...]
/illumos-gate/usr/src/lib/libraidcfg/common/
H A Draidcfg_spi.h284 uint64_t capacity; member in struct:__anon3842
295 uint64_t capacity; member in struct:__anon3843
H A Draidcfg.c977 array_attr->capacity = size;
1230 uint64_t offset, capacity; local
1245 arraypart_attrs[i].size = disk_attr->capacity;
1269 if ((disk_attr->capacity - offset) > arraypart_attrs[i].size) {
1271 arraypart_attrs[i].size = disk_attr->capacity -
1276 capacity = OBJ_ATTR_NONE;
1292 if (capacity > arraypart_attrs[i].size)
1293 capacity = arraypart_attrs[i].size;
1299 capacity = capacity * disk_nu
[all...]
/illumos-gate/usr/src/cmd/power/
H A Dsvc-power51 while read device kbytes used avail capacity filesys; do
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/
H A Dtopo_gather.c231 char *capacity = NULL; local
320 TOPO_STORAGE_CAPACITY, &capacity, &err);
324 capacity == NULL ? 0 : strtoull(capacity, 0, 0));
334 if (capacity)
335 topo_hdl_strfree(thp, capacity);
/illumos-gate/usr/src/cmd/tip/aculib/
H A Dbiz31.c191 * the bizcomp in sync. If you don't have the capacity or nread
198 struct capacity b;

Completed in 175 milliseconds

123