Home
last modified time | relevance | path

Searched refs:units (Results 1 – 25 of 59) sorted by relevance

123

/titanic_41/usr/src/cmd/lvm/metassist/common/
H A Dvolume_string.c247 units_t units[]) in sizestr_to_bytes() argument
266 for (i = 0; units[i].unit_str != NULL; i++) { in sizestr_to_bytes()
267 if (strcasecmp(unit_str, units[i].unit_str) == 0) { in sizestr_to_bytes()
268 d *= units[i].bytes_per_unit; in sizestr_to_bytes()
274 if (units[i].unit_str == NULL) { in sizestr_to_bytes()
316 units_t units[], in bytes_to_sizestr() argument
322 units_t use_units = units[0]; in bytes_to_sizestr()
325 for (i = 0; units[i].unit_str != NULL; i++) { in bytes_to_sizestr()
326 if (bytes >= units[i].bytes_per_unit) { in bytes_to_sizestr()
327 use_units = units[i]; in bytes_to_sizestr()
H A Dvolume_string.h143 extern int sizestr_to_bytes(char *str, uint64_t *bytes, units_t units[]);
165 uint64_t bytes, char **str, units_t units[], boolean_t round);
/titanic_41/usr/src/cmd/mdb/intel/modules/amd_opteron/
H A Dao.c94 const char *units; in ao_nbcfg_describe() local
103 units = "ms"; in ao_nbcfg_describe()
106 units = "us"; in ao_nbcfg_describe()
110 units = "ns"; in ao_nbcfg_describe()
113 units = " (unknown units)"; in ao_nbcfg_describe()
119 units); in ao_nbcfg_describe()
/titanic_41/usr/src/cmd/lp/filter/postscript/dpost/
H A Dpictures.c101 char units; /* scale indicator for frame dimensions */ in picture() local
166 if ( sscanf(++p, "%lf%c", &frame[i], &units) == 2 ) in picture()
167 if ( units == 'i' || units == ',' || units == '\0' ) in picture()
/titanic_41/usr/src/cmd/sendmail/src/
H A Dconvtime.c44 convtime(p, units)
46 int units; variable
67 c = units;
73 c = units;
/titanic_41/usr/src/cmd/lgrpinfo/
H A Dlgrpinfo.pl187 my $units = KB;
192 $units = 1;
195 $units = KB;
198 $units = KB * KB;
201 $units = KB * KB * KB;
204 $units = KB * KB * KB * KB;
207 $units = KB * KB * KB * KB * KB;
210 $units = KB * KB * KB * KB * KB * KB;
715 my $scaled = $number / $units;
/titanic_41/usr/src/lib/print/libpapi-common/common/
H A Dattribute.c185 result->resolution.units = v->resolution.units; in papiAttributeValueDup()
343 papi_resolution_unit_t units) in papiAttributeListAddResolution() argument
349 v.resolution.units = units; in papiAttributeListAddResolution()
553 papi_resolution_unit_t *units) in papiAttributeListGetResolution() argument
558 if ((x == NULL) || (y == NULL) || (units == NULL)) in papiAttributeListGetResolution()
566 *units = value->resolution.units; in papiAttributeListGetResolution()
740 value->resolution.units = PAPI_RES_PER_INCH; in _add_attribute_value()
742 value->resolution.units = PAPI_RES_PER_CM; in _add_attribute_value()
949 (values[i]->resolution.units == PAPI_RES_PER_CM in papiAttributeToString()
H A Dpapi.h109 papi_resolution_unit_t units; member
274 papi_resolution_unit_t units);
303 papi_resolution_unit_t *units);
/titanic_41/usr/src/cmd/units/
H A Dunits.c87 void units(struct unit *up);
143 units(&u1); in main()
144 units(&u2); in main()
153 units(struct unit *up) in units() function
341 units((struct unit *)tp); in init()
H A DMakefile26 PROG= units
/titanic_41/usr/src/cmd/tail/
H A Dtail.c76 #define ARG(units, forward, backward) { \ in main() argument
79 off = strtoll(optarg, &p, 10) * (units); \ in main()
85 off -= (units); \ in main()
/titanic_41/usr/src/cmd/fm/fminject/common/
H A Dinj_string.c150 inj_strtime(hrtime_t *nsp, const char *units) in inj_strtime() argument
178 if (strcasecmp(suffix[i].name, units) == 0) { in inj_strtime()
184 if (suffix[i].name == NULL && *units != '\0') in inj_strtime()
/titanic_41/usr/src/cmd/backup/restore/
H A Dmain.c91 char units; in main() local
203 units = *(*argv + strlen(*argv) - 1); in main()
204 switch (units) { in main()
219 units); in main()
/titanic_41/usr/src/cmd/krb5/kadmin/gui/dchanger/
H A DDurationHelper.java60 private static String[] units = { getString("Seconds"), field in DurationHelper
111 for (int i = 0; i < units.length; i++) in initUnits()
112 unit.add(units[i]); in initUnits()
/titanic_41/usr/src/cmd/fm/fmstat/common/
H A Dfmstat.c168 } units[] = { in time2str() local
180 for (up = units; time % up->u_mul != 0; up++) in time2str()
190 static const char units[] = "bKMGTPE"; in size2str() local
192 const char *up = units; in size2str()
199 while (size >= scale && up < (units + sizeof (units) - 2)) { in size2str()
/titanic_41/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_method.c389 uint32_t type, state, units; in topo_method_sensor_failure() local
413 type = state = units = 0; in topo_method_sensor_failure()
436 TOPO_PROP_VAL_VAL, &units); in topo_method_sensor_failure()
452 units) != 0 || in topo_method_sensor_failure()
/titanic_41/usr/src/uts/sun4u/montecarlo/io/
H A Dttymux.conf33 sm-max-units = 6; # max no. of linked lower streams.
/titanic_41/usr/src/lib/print/libipp-core/common/
H A Dwrite.c245 int8_t units = (int8_t)(value->resolution).units; in ipp_write_attribute() local
257 if (iwrite(fd, &units, 1) != 1) in ipp_write_attribute()
H A Dread.c400 int8_t units; in ipp_read_attribute_group() local
412 if (iread(fd, &units, 1) != 1) { in ipp_read_attribute_group()
421 (papi_resolution_unit_t)units); in ipp_read_attribute_group()
/titanic_41/usr/src/uts/common/io/1394/
H A Ds1394_hotplug.c488 int j, units, d, lockfail = 0; in s1394_update_devinfo_tree() local
534 for (units = 0, j = 1; j <= dir_len; j++) { in s1394_update_devinfo_tree()
540 unit_dir_ptrs[units++] = ptr; in s1394_update_devinfo_tree()
553 for (d = 0, j = 0; j < units; j++) { in s1394_update_devinfo_tree()
671 int j, d, units; in s1394_offline_node() local
710 for (units = 0, j = 1; j <= dir_len; j++) { in s1394_offline_node()
716 unit_dir_ptrs[units++] = ptr; in s1394_offline_node()
721 for (d = 0, j = 0; j < units; j++) { in s1394_offline_node()
/titanic_41/usr/src/cmd/picl/plugins/sun4u/envmon/
H A Dpiclenvmon.c98 envmon_thresholds_t *lows, uint16_t *speed, char *units);
677 envmon_thresholds_t *lows, uint16_t *speed, char *units) in get_fan_data() argument
691 if (units != NULL) in get_fan_data()
692 (void) strlcpy(units, data.units, sizeof (data.units)); in get_fan_data()
1123 char units[ENVMON_MAXNAMELEN]; in add_env_nodes() local
1177 (uint16_t *)&sensor_data, units); in add_env_nodes()
1290 PICL_READ, 1 + strlen(units), units, NULL); in add_env_nodes()
/titanic_41/usr/src/cmd/sort/common/
H A Dutility.c301 char units = 'k'; in strtomem() local
304 if (sscanf(S, format_str, &val, &units) < 1 || val < 0) in strtomem()
307 if (units == '%') { in strtomem()
312 switch (units) { in strtomem()
/titanic_41/usr/src/cmd/plimit/
H A Dplimit.c351 limit_adjust(struct rlimit64 *rp, int units) in limit_adjust() argument
354 rp->rlim_cur /= units; in limit_adjust()
356 rp->rlim_max /= units; in limit_adjust()
/titanic_41/usr/src/cmd/stat/fsstat/
H A Dfsstat.c115 static char units[] = "num KMGTPE"; variable
152 while (units[unit_index] != unit) { in nicenum()
154 if (unit_index > sizeof (units) - 1) { in nicenum()
167 if (unit_index >= sizeof (units) - 1) { in nicenum()
172 u = units[unit_index]; in nicenum()
/titanic_41/usr/src/uts/common/io/sdcard/impl/
H A Dsda_mem.c246 static const uint32_t units[8] = { in sda_mem_maxclk() local
253 return ((units[ts & 0x7]) * (mult[(ts >> 3) & 0xf])); in sda_mem_maxclk()

123