/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_config.c | 689 int i, n, max; in ndmpd_config_get_tape_info_v3() local 696 max = sasd_dev_count(); in ndmpd_config_get_tape_info_v3() 698 tip_save = tip = ndmp_malloc(sizeof (ndmp_device_info_v3) * max); in ndmpd_config_get_tape_info_v3() 700 envp_save = envp = ndmp_malloc(sizeof (ndmp_pval) * max * 3); in ndmpd_config_get_tape_info_v3() 713 for (i = n = 0; i < max; i++) { in ndmpd_config_get_tape_info_v3() 751 if (n == 0 || max <= 0) { in ndmpd_config_get_tape_info_v3() 793 int i, n, max; in ndmpd_config_get_scsi_info_v3() local 800 max = sasd_dev_count(); in ndmpd_config_get_scsi_info_v3() 801 sip_save = sip = ndmp_malloc(sizeof (ndmp_device_info_v3) * max); in ndmpd_config_get_scsi_info_v3() 803 envp_save = envp = ndmp_malloc(sizeof (ndmp_pval) * max * 2); in ndmpd_config_get_scsi_info_v3() [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/apix/ |
H A D | apix_irm.c | 464 uint_t max; in apix_irm_disable_intr() local 466 max = apix_system_max_vectors - in apix_irm_disable_intr() 470 new_pool_size = MIN(new_pool_size, max); in apix_irm_disable_intr() 570 uint_t max; in apix_irm_enable_intr() local 572 max = apix_system_max_vectors - in apix_irm_enable_intr() 576 new_pool_size = MIN(new_pool_size, max); in apix_irm_enable_intr()
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/ |
H A D | x86pi.c | 141 topo_instance_t min, topo_instance_t max, void *pi_private, void *data) in x86pi_enum() argument 265 int min, max; in x86pi_enum_gentopo() local 455 max = min + ncmp - 1; in x86pi_enum_gentopo() 467 f, min, max); in x86pi_enum_gentopo() 469 CHIP, min, max); in x86pi_enum_gentopo() 481 CHIP, CHIP, min, max, in x86pi_enum_gentopo() 483 min = max + 1; in x86pi_enum_gentopo()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/ |
H A D | prof_parse.c | 457 size_t cur, max; member 465 if (b->max - b->cur < len) { in add_data_to_buffer() 469 newsize = b->max + (b->max >> 1) + len + 1024; in add_data_to_buffer() 476 b->max = newsize; in add_data_to_buffer() 498 if (prof_buf.max - prof_buf.cur > (prof_buf.max >> 3)) { in profile_write_tree_to_buffer()
|
H A D | prof_get.c | 36 list->max = 10; in init_list() 37 list->list = malloc(list->max * sizeof(char *)); in init_list() 63 list->num = list->max = 0; in end_list() 75 if (list->num+1 >= list->max) { in add_to_list() 76 newmax = list->max + 10; in add_to_list() 80 list->max = newmax; in add_to_list()
|
/illumos-gate/usr/src/ucblib/libcurses/ |
H A D | overlay.c | 26 #define max(a, b) ((a) > (b) ? (a) : (b)) macro 42 starty = max(win1->_begy, win2->_begy); in overlay() 43 startx = max(win1->_begx, win2->_begx); in overlay()
|
H A D | toucholap.c | 25 #define max(a, b) ((a) > (b) ? (a) : (b)) macro 39 starty = max(win1->_begy, win2->_begy); in touchoverlap() 40 startx = max(win1->_begx, win2->_begx); in touchoverlap()
|
/illumos-gate/usr/src/uts/common/inet/ |
H A D | tunables.c | 221 uint32_t *min, uint32_t *max) in mod_get_buf_prop_range() argument 227 *max = maxbuf_pinfo->prop_cur_uval; in mod_get_buf_prop_range() 243 uint32_t min, max; in mod_set_buf_prop() local 253 mod_get_buf_prop_range(ptbl, pinfo, &min, &max); in mod_set_buf_prop() 254 if (new_value < min || new_value > max) in mod_set_buf_prop() 273 uint32_t min, max; in mod_get_buf_prop() local 276 mod_get_buf_prop_range(ptbl, pinfo, &min, &max); in mod_get_buf_prop() 277 nbytes = snprintf(pval, psize, "%u-%u", min, max); in mod_get_buf_prop()
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | lexer.c | 154 static char *yytexttostr(offset, max) in yytexttostr() argument 155 int offset, max; in yytexttostr() 161 (yytext[offset] == yytext[offset + max - 1])) { 163 max--; 166 if (max > yylast) 167 max = yylast; 168 str = malloc(max + 1); 170 for (i = offset; i < max; i++)
|
/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/ |
H A D | xgehal-config.c | 170 new_queue->max = new_queue->initial; in __hal_fifo_queue_check() 172 if ((new_queue->max < XGE_HAL_MIN_FIFO_QUEUE_LENGTH) || in __hal_fifo_queue_check() 173 (new_queue->max > XGE_HAL_MAX_FIFO_QUEUE_LENGTH)) { in __hal_fifo_queue_check() 177 if (new_queue->max < new_config->reserve_threshold) { in __hal_fifo_queue_check() 228 new_config->max = new_config->initial; in __hal_ring_queue_check() 230 if ((new_config->max < XGE_HAL_MIN_RING_QUEUE_BLOCKS) || in __hal_ring_queue_check() 231 (new_config->max > XGE_HAL_MAX_RING_QUEUE_BLOCKS)) { in __hal_ring_queue_check() 406 total_fifo_length += new_config->queue[i].max; in __hal_fifo_config_check()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | sendto_kdc.c | 132 #ifndef max in krb5int_debug_fprint() 133 #define max(a,b) ((a) > (b) ? (a) : (b)) in krb5int_debug_fprint() macro 622 out->max, in krb5int_cm_call_select() 623 &out->rfds, &out->wfds, &out->xfds, out->max, in krb5int_cm_call_select() 856 if (selstate->max <= state->fd) in start_connection() 857 selstate->max = state->fd + 1; in start_connection() 930 if (selstate->max == 1 + conn->fd) { in kill_conn() 931 while (selstate->max > 0 in kill_conn() 935 selstate->max--; in kill_conn() 937 dprint("new max_fd + 1 is %d\n", selstate->max); in kill_conn() [all …]
|
/illumos-gate/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/ |
H A D | LinearDistribution.java | 132 long max; in getBucketRange() local 143 max = Long.MAX_VALUE; in getBucketRange() 145 max = ((base + (i * step)) - 1); in getBucketRange() 148 long[] range = new long[] {min, max}; in getBucketRange()
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | tempnam.c | 43 #define max(A, B) (((A) < (B))?(B):(A)) macro 67 if ((p = malloc(max(max(x, y), z)+16)) == NULL) in tempnam()
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | memnode.c | 304 pfn_t max = 0; in mem_node_max_range() local 310 if (max < mem_node_config[mnode].physmax) in mem_node_max_range() 311 max = mem_node_config[mnode].physmax; in mem_node_max_range() 315 ASSERT(base != (pfn_t)-1 && max != 0); in mem_node_max_range() 317 *maxp = max; in mem_node_max_range()
|
/illumos-gate/usr/src/lib/libkmf/include/ |
H A D | kmfapiP.h | 293 #ifndef max 294 #define max(a, b) ((a) < (b) ? (b) : (a)) macro 299 (max(KMF_NUMBER_RSA_PUBLIC_KEY_PARTS, \ 303 (max(KMF_NUMBER_RSA_PRIVATE_KEY_PARTS, \ 307 (max(KMF_MAX_PUBLIC_KEY_PARTS, KMF_MAX_PRIVATE_KEY_PARTS))
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/aggs/ |
H A D | tst.max_neg.d | 41 @ = max(0); 42 @ = max(-900);
|
/illumos-gate/usr/src/test/util-tests/tests/awk/examples/awk/ |
H A D | p.31 | 1 length($1) > max { max = length($1); name = $1 }
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | ddi.h | 64 #ifdef max 65 #undef max 67 #define max(a, b) ((a) < (b) ? (b) : (a)) macro
|
/illumos-gate/usr/src/uts/common/io/rsm/ |
H A D | rsm.conf | 35 max-exported-memory=0; 46 max-segments=65535;
|
/illumos-gate/usr/src/lib/libsqlite/test/ |
H A D | select1.test | 62 execsql {SELECT *, min(f1,f2), max(f1,f2) FROM test1} 191 execsql {SELECT coalesce(max(a),'xyzzy') FROM t3} 194 execsql {SELECT max(coalesce(a,'xyzzy')) FROM t3} 519 coalesce(max(f1/(f1-33),6),'z') 525 SELECT min(1,2,3), -max(1,2,3) 663 SELECT t3.* FROM t3, (SELECT max(a), max(b) FROM t4) 668 SELECT t3.* FROM (SELECT max(a), max(b) FROM t4), t3 673 SELECT * FROM t3, (SELECT max(a), max(b) FROM t4) AS 'tx' 675 } {t3.a 1 t3.b 2 tx.max(a) 3 tx.max(b) 4} 678 SELECT y.*, t3.* FROM t3, (SELECT max(a), max(b) FROM t4) AS y [all …]
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | remove.c | 301 uint_t cnt, max = DYNINFOCNT(lmp); in remove_so() local 303 for (cnt = 0; cnt < max; cnt++, dip++) { in remove_so() 458 uint_t cnt, max = DYNINFOCNT(clmp); in remove_lists() local 460 for (cnt = 0; cnt < max; cnt++, dip++) { in remove_lists() 666 uint_t cnt, max = DYNINFOCNT(lmp); in gdp_collect() local 711 uint_t cnt, max; in remove_rescan() local 739 max = DYNINFOCNT(lmp); in remove_rescan() 741 for (cnt = 0; cnt < max; cnt++, dip++) { in remove_rescan() 944 uint_t cnt, max = DYNINFOCNT(lmp); in remove_lmc() local 1353 uint_t cnt, max; in remove_hdl() local [all …]
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | fcntl.c | 845 if (start > max) in flock_check() 849 if (flp->l_start > (max - offset)) in flock_check() 852 if (start > max) in flock_check() 859 if (flp->l_start > (max - (offset_t)vattr.va_size)) in flock_check() 862 if (start > max) in flock_check() 875 if (flp->l_len > (max - start + 1)) in flock_check() 878 ASSERT(end <= max); in flock_check() 888 if (start > max) in flock_check() 890 ASSERT(end <= max); in flock_check() 892 ASSERT(start <= max); in flock_check() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_estate.c | 279 sval_t min, max; in estate_get_single_value() local 284 max = rl_max(estate_rl(state)); in estate_get_single_value() 285 if (sval_cmp(min, max) != 0) in estate_get_single_value() 300 static struct data_info *alloc_dinfo_range(sval_t min, sval_t max) in alloc_dinfo_range() argument 305 add_range(&ret->value_ranges, min, max); in alloc_dinfo_range() 401 struct smatch_state *alloc_estate_range(sval_t min, sval_t max) in alloc_estate_range() argument 406 state->data = alloc_dinfo_range(min, max); in alloc_estate_range()
|
H A D | ptrlist.c | 154 int linearize_ptr_list(struct ptr_list *head, void **arr, int max) in linearize_ptr_list() argument 157 if (head && max > 0) { in linearize_ptr_list() 162 if (i > max) in linearize_ptr_list() 163 i = max; in linearize_ptr_list() 167 max -= i; in linearize_ptr_list() 168 if (!max) in linearize_ptr_list()
|
/illumos-gate/usr/src/uts/common/inet/cc/ |
H A D | cc_newreno.c | 150 incr = max((incr * incr / cw), 1); in newreno_ack_received() 204 max(2 * CCV(ccv, tcp_mss), 4380)); in newreno_after_idle() 222 max((CCV(ccv, tcp_snxt) - CCV(ccv, tcp_suna)) / 2 / mss, 2) in newreno_cong_signal() 228 cwin = max(cwin / 2 / mss, 2) * mss; in newreno_cong_signal()
|