Searched defs:capacity (Results 1 - 25 of 41) sorted by relevance

12

/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/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/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/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
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Pg/
H A DPg.pm428 # Since we have two cookies, update capacity in both
452 # Return an estimate of PG capacity Capacity is calculated as the maximum of
456 # We store capacity per sharing relationship, assuming that the same sharing has
457 # the same capacity. This may not be true for heterogeneous systems.
459 sub capacity subroutine
461 scalar @_ == 2 or _usage("capacity(cookie, pg");
605 # Since we have two cookies, update capacity in both
664 my $capacity = max($c2->{MAX_FREQUENCY}, $c2->{CAPACITY}->{$shname});
666 $capacity = $utilization unless $capacity;
[all...]
/illumos-gate/usr/src/cmd/rmformat/
H A Drmf_menu.c224 DPRINTF1("media capacity %u\n", (uint32_t)med_info.sm_capacity);
844 diskaddr_t capacity; local
862 capacity = (uint32_t)med_info.sm_capacity;
895 capacity = (diskaddr_t)med_info.sm_pcyl *
901 if ((bn + j) >= capacity)
941 if ((bn + j) >= capacity)
963 if ((bn + j) >= capacity)
H A Drmf_slice.c1227 * slice 0 = slice 2 = medium capacity.
1229 * capacity <= 1GB,
1231 * capacity > 1gb,
1239 * But the capacity is reduced by 1 cyl, to leave space for fdisk table.
1250 diskaddr_t capacity; local
1268 * if the capacity <= 1GB, head = 64, sect = 32.
1270 * NOTE: the capacity should be equal to C*H*S values.
1283 capacity = (diskaddr_t)nhead * nsect * numcyl;
1286 v_toc.v_part[0].p_size = capacity;
1291 v_toc.v_part[2].p_size = capacity;
1335 diskaddr_t capacity; local
[all...]
/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/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/hal/probing/volume/
H A Dprobe-volume.c227 uint64_t capacity = 0; local
306 (void) get_disc_capacity_for_profile(fd, profile, &capacity);
355 libhal_changeset_set_property_uint64 (cs, "volume.disc.capacity", capacity);
/illumos-gate/usr/src/lib/libefi/common/
H A Drdwr_efi.c122 read_disk_info(int fd, diskaddr_t *capacity, uint_t *lbsize) argument
128 *capacity = disk_info.dki_capacity;
146 diskaddr_t capacity; local
153 if (read_disk_info(fd, &capacity, &lbsize) != 0) {
192 vptr->efi_last_lba = capacity - 1;
193 vptr->efi_altern_lba = capacity -1;
788 * Since we can locate the backup label by disk capacity,
/illumos-gate/usr/src/cmd/format/
H A Dlabel.c190 * The SCSI READ_CAPACITY command is used here to get the capacity of the
198 struct scsi_capacity_16 capacity; local
200 if (uscsi_read_capacity(cur_file, &capacity)) {
201 err_print("Warning: Unable to get capacity."
206 if (capacity.sc_capacity < ncyl * nhead * nsect) {
401 * written now is not way off from the actual capacity
565 get_disk_capacity(int fd, uint64_t *capacity) argument
571 *capacity = minf.dki_capacity * minf.dki_lbsize / cur_blksz;
576 *capacity = cap16.sc_capacity;
578 /* Since we are counting from zero, add 1 to capacity */
[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.c2108 type->revision, type->capacity);
2516 uint64_t capacity)
2565 scaled = bn2mb(capacity);
2515 print_efi_string(char *vendor, char *product, char *revision, uint64_t capacity) argument
H A Dmenu_command.c435 fmt_print("%s: configured with capacity of ",
456 fmt_print("%s: configured with capacity of ",
458 scaled = bn2mb(efi_info.capacity);
466 efi_info.revision, efi_info.capacity);
760 cur_dtype->capacity);
776 cur_dtype->capacity);
800 struct scsi_capacity_16 capacity; local
1002 if (uscsi_read_capacity_16(cur_file, &capacity)) {
1006 p_type = get_cur_protection_type(&capacity);
1592 if (cur_dtype->capacity > INFINIT
[all...]
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...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_disk.c273 uint64_t capacity = 0, blksz = 0, pbsize; local
504 capacity = dkmext->dki_capacity - 1;
512 capacity = dkm->dki_capacity - 1;
534 *max_psize = capacity * blksz;
/illumos-gate/usr/src/uts/i86pc/i86hvm/io/
H A Dxdf_shell.c225 diskaddr_t capacity; local
238 capacity = pgeom.g_capacity;
245 if (capacity >= (63 * 254 * 1024)) {
251 vgeomp->g_capacity = capacity;
254 vgeomp->g_ncyl = capacity / (63 * 254);
/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/fdformat/
H A Dfdformat.c459 char *capacity = NULL; local
587 capacity = "1.2 MB";
592 capacity = "1.44 MB";
610 capacity = "360 KB";
616 capacity = "720 KB";
636 capacity = "1.2 MB";
645 capacity = "2.88 MB";
811 capacity, num_cyl, spt, interleave, real_name);
814 capacity, real_name);
994 capacity, real_nam
[all...]
/illumos-gate/usr/src/uts/common/fs/
H A Ddnlc.c1291 uint_t capacity; local
1361 capacity = (dcp->dc_nhash_mask + 1) << dnlc_dir_hash_size_shift;
1363 (capacity << dnlc_dir_hash_resize_shift)) {
1406 uint_t capacity; local
1466 capacity = (dcp->dc_fhash_mask + 1) << dnlc_dir_hash_size_shift;
1468 (capacity << dnlc_dir_hash_resize_shift)) {
1591 uint_t capacity; local
1605 capacity = (dcp->dc_nhash_mask + 1) <<
1608 (capacity >> dnlc_dir_hash_resize_shift)) {
1669 uint_t capacity; local
1732 uint_t capacity; local
[all...]
/illumos-gate/usr/src/uts/intel/io/amr/
H A Damr.c141 unsigned int capacity);
1500 uint32_t capacity; local
1606 case SCMD_READ_CAPACITY: /* read capacity */
1610 capacity = softs->logic_drive[ap->a_target].al_size - 1;
1611 cp.capacity = BE_32(capacity);
1635 capacity = softs->logic_drive[ap->a_target].al_size - 1;
1636 amr_mode_sense(cdbp, bp, capacity);
2006 amr_mode_sense(union scsi_cdb *cdbp, struct buf *bp, unsigned int capacity) argument
2046 ncyl = capacity / (AMR_DEFAULT_HEAD
[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
/illumos-gate/usr/src/cmd/raidctl/
H A Draidctl.c517 "[-z <capacity>] [-s <stripe_size>] <controller>\n"), prog_namep,
572 uint64_t capacity = 0; local
639 * The rang check of capacity and stripe size is performed in library,
646 calc_size(capacityp, &capacity) != SUCCESS) {
687 disk_handlesp, raid_level, capacity, stripe_size, NULL);
722 * to be compatible with old raidctl. The capacity and stripe size can't
734 uint64_t capacity = 0; local
844 * For old raidctl, capacity is 0, which means to creates
845 * max possible capacity of array.
849 disk_handlesp, raid_level, capacity, stripe_siz
2109 char capacity[8]; local
2247 char capacity[16]; local
[all...]

Completed in 624 milliseconds

12