/illumos-gate/usr/src/contrib/ast/src/lib/libpp/ |
H A D | gentab.sh | 38 typeset -i counter err_line 44 counter=0 99 ksh) ((n=counter-1)) ;; 100 *) n=`expr $counter - 1` ;; 122 ?*) eval $index=$counter ;; 159 "") counter=$init 163 "") counter=$init ;; 164 [0123456789]*) counter=$value ;; 169 1:?*) echo "#define $prefix$first $counter" ;; 185 then case $counter in [all …]
|
/illumos-gate/usr/src/lib/libmvec/common/vis/ |
H A D | __vrhypotf.S | 191 #define counter %i0 macro 327 ld [%fp+tmp_counter],counter 332 cmp counter,0 570 cmp counter,5 575 sub counter,5,counter 847 subcc counter,5,counter ! counter -= 5; 855 add counter,5,counter 858 subcc counter,1,counter 894 subcc counter,1,counter 923 subcc counter,1,counter [all …]
|
H A D | __vsqrtf_ultra3.S | 55 #define counter %l6 macro 145 ld [%fp+tmp_counter],counter 149 cmp counter,0 381 cmp counter,5 386 sub counter,5,counter ! counter 586 subcc counter,5,counter ! counter 593 add counter,5,counter 595 subcc counter,1,counter 609 subcc counter,1,counter 627 subcc counter,1,counter [all …]
|
H A D | __vhypotf.S | 66 #define counter %l0 macro 199 ld [%fp+tmp_counter],counter 204 cmp counter,0 424 cmp counter,5 435 sub counter,5,counter 696 subcc counter,5,counter ! counter -= 5 710 add counter,5,counter 713 subcc counter,1,counter 745 subcc counter,1,counter 779 subcc counter,1,counter [all …]
|
H A D | __vlogf.S | 120 #define counter %l7 macro 141 ! l7 cycle counter 298 ld [%fp+tmp0],counter 303 subcc counter,1,counter 489 subcc counter,7,counter 661 subcc counter,4,counter ! update cycle counter 672 addcc counter,7,counter 729 subcc counter,1,counter 747 subcc counter,1,counter 792 subcc counter,1,counter [all …]
|
H A D | __vatanf.S | 184 #define counter %l1 macro 294 ld [%fp+tmp_counter],counter 298 cmp counter,0 578 subcc counter,8,counter 1081 subcc counter,8,counter 1114 addcc counter,7,counter 1168 subcc counter,1,counter 1219 subcc counter,1,counter 1265 subcc counter,1,counter 1308 subcc counter,1,counter [all …]
|
H A D | __vpowf.S | 534 #define counter %o7 macro 781 ld [%fp+tmp_counter],counter 786 cmp counter,0 1104 cmp counter,6 ! counter 1115 sub counter,3,counter ! counter 1364 cmp counter,6 ! counter 1369 subcc counter,1,counter 1434 subcc counter,1,counter 1489 subcc counter,1,counter 1533 subcc counter,1,counter [all …]
|
H A D | __vrsqrtf.S | 185 #define counter %i5 macro 384 ld [%fp+tmp_counter],counter 388 cmp counter,0 636 cmp counter,6 641 sub counter,6,counter ! counter 861 subcc counter,6,counter ! counter -= 6; 870 add counter,6,counter 873 subcc counter,1,counter 892 subcc counter,1,counter 898 subcc counter,1,counter [all …]
|
H A D | __vsqrt.S | 583 #define counter %l3 macro 709 ld [%fp+tmp_counter],counter 713 cmp counter,0 973 cmp counter,6 1338 sub counter,6,counter ! counter 1343 cmp counter,6 1348 subcc counter,1,counter 1385 subcc counter,1,counter 1418 subcc counter,1,counter 1449 subcc counter,1,counter [all …]
|
H A D | __vhypot.S | 43 #define counter %i0 macro 223 mov tmp_counter,counter 228 cmp counter,0 512 cmp counter,4 517 sub counter,4,counter 775 subcc counter,4,counter ! counter -= 4; 779 add counter,4,counter 782 subcc counter,1,counter 796 subcc counter,1,counter 820 subcc counter,1,counter [all …]
|
H A D | __vrhypot.S | 87 #define counter %l4 macro 307 ld [%fp+tmp_counter],counter 312 cmp counter,0 967 cmp counter,8 972 sub counter,8,counter 1892 subcc counter,8,counter ! counter -= 8; 1896 add counter,8,counter 1899 subcc counter,1,counter 1914 subcc counter,1,counter 1972 subcc counter,1,counter [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/arcfour/ |
H A D | arcfour_str2key.c | 12 int counter; in asctouni() local 13 for (counter=0;counter<len;counter++) { in asctouni() 14 unicode[2*counter]=ascii[counter]; in asctouni() 15 unicode[2*counter + 1]=0x00; in asctouni() 64 int counter; in krb5int_arcfour_string_to_key() 65 for(counter=0;counter<16;counter++) in krb5int_arcfour_string_to_key() 66 printf("%02x", md4_context.digest[counter]); in krb5int_arcfour_string_to_key()
|
/illumos-gate/usr/src/uts/sun4/io/fpc/ |
H A D | fpc-impl.c | 181 fpc_get_counter_reg_index(fire_perfcnt_t regtype, int counter) in fpc_get_counter_reg_index() argument 185 regtype, counter, counters_per_type[regtype]); in fpc_get_counter_reg_index() 186 if (BOUNDS_CHECK_FAILS(counter, counters_per_type[regtype])) in fpc_get_counter_reg_index() 188 FPC_DBG1("returning: %d\n", first_reg_of_type[regtype] + counter); in fpc_get_counter_reg_index() 189 return (first_reg_of_type[regtype] + counter); in fpc_get_counter_reg_index() 210 int num_counters, counter; in fpc_perfcnt_program() local 235 for (counter = 0; counter < num_counters; counter++) { in fpc_perfcnt_program() 237 counter_index = fpc_get_counter_reg_index(reggroup, counter); in fpc_perfcnt_program() 280 int num_counters, counter; in fpc_perfcnt_read() local 298 for (counter = 0; counter < num_counters; counter++) { in fpc_perfcnt_read() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/ |
H A D | tftpsubs.c | 80 int counter; /* size of data in buffer, or flag */ member 111 bfs[0].counter = BF_ALLOC; /* pass out the first buffer */ in rw_init() 113 bfs[1].counter = BF_FREE; in rw_init() 128 bfs[current].counter = BF_FREE; /* free old one */ in readit() 132 if (b->counter == BF_FREE) /* if it's empty */ in readit() 135 return (b->counter); in readit() 152 if (b->counter != BF_FREE) /* nop if not free */ in read_ahead() 159 b->counter = fread(dp->th_data, sizeof (char), blocksize, in read_ahead() 162 b->counter = -1; in read_ahead() 184 b->counter = (int)(p - dp->th_data); in read_ahead() [all …]
|
/illumos-gate/usr/src/uts/sun4v/io/n2piupc/ |
H A D | n2piupc_kstats.c | 337 int counter; in n2piupc_perfcnt_program() local 353 for (counter = 0; counter < grp_p->num_counters; counter++) { in n2piupc_perfcnt_program() 355 if (grp_p->counters_p[counter].zero_regoff == NO_REGISTER) in n2piupc_perfcnt_program() 358 event_mask = grp_p->regsel_p->fields_p[counter].event_mask << in n2piupc_perfcnt_program() 359 grp_p->regsel_p->fields_p[counter].event_offset; in n2piupc_perfcnt_program() 365 grp_p->grp_name, counter, in n2piupc_perfcnt_program() 366 grp_p->counters_p[counter].zero_regoff, in n2piupc_perfcnt_program() 374 N2PIUPC_DBG1("Zeroing counter %d\n", counter); in n2piupc_perfcnt_program() 376 grp_p->counters_p[counter].zero_regoff, in n2piupc_perfcnt_program() 377 grp_p->counters_p[counter].zero_value)) != SUCCESS) in n2piupc_perfcnt_program() [all …]
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | winchnstr.c | 55 int counter = 0; in winchnstr() local 68 while ((counter < ncols) && maxcols > 0) { in winchnstr() 72 if (counter + eucw > ncols) in winchnstr() 80 counter++; in winchnstr() 84 counter++; in winchnstr() 87 if (counter < ncols) in winchnstr() 89 return (counter); in winchnstr()
|
H A D | winnstr.c | 53 int counter = 0; in winnstr() local 67 while (counter < ncols) { in winnstr() 70 if (counter + eucw > ncols) in winnstr() 78 counter++; in winnstr() 83 counter++; in winnstr() 94 if (counter < ncols) in winnstr() 97 return (counter); in winnstr()
|
H A D | delkey.c | 54 int counter = 0, i, num_deleted_keys = 0; in delkey() local 66 while (++counter < numkeys) { in delkey() 86 i = (numkeys - counter) - 1; in delkey() 89 if (counter <= *lmorder) { in delkey() 90 if (counter < *first_macro) { in delkey() 91 if (counter <= *lkorder) in delkey()
|
H A D | winstr.c | 48 int counter = 0; in winstr() local 67 str[counter++] = (char) wc; in winstr() 71 str[counter++] = (char) wc; in winstr() 74 str[counter] = '\0'; in winstr() 76 return (counter); in winstr()
|
/illumos-gate/usr/src/cmd/ldap/ns_ldap/ |
H A D | ldapclient.c | 780 int counter; in client_manual() local 860 for (counter = 0; in client_manual() 861 counter < arglist->serviceAuthenticationMethod->count; in client_manual() 862 counter++) { in client_manual() 865 arglist->serviceAuthenticationMethod->optlist[counter], in client_manual() 868 for (counter = 0; in client_manual() 869 counter < arglist->serviceCredentialLevel->count; in client_manual() 870 counter++) { in client_manual() 873 arglist->serviceCredentialLevel->optlist[counter], in client_manual() 876 for (counter = 0; in client_manual() [all …]
|
/illumos-gate/usr/src/uts/sun4v/io/iospc/ |
H A D | iospc.c | 475 int counter; in iospc_perfcnt_program() local 487 for (counter = 0; counter < grp_p->num_counters; counter++) { in iospc_perfcnt_program() 489 if (grp_p->counters_p[counter].zero_regoff == NO_REGISTER) in iospc_perfcnt_program() 492 event_mask = grp_p->regsel_p->fields_p[counter].event_mask << in iospc_perfcnt_program() 493 grp_p->regsel_p->fields_p[counter].event_offset; in iospc_perfcnt_program() 499 grp_p->grp_name, counter, in iospc_perfcnt_program() 500 grp_p->counters_p[counter].zero_regoff, in iospc_perfcnt_program() 508 IOSPC_DBG1("Zeroing counter %d\n", counter); in iospc_perfcnt_program() 511 IOSPC_REG_WRITE, grp_p->counters_p[counter].zero_regoff, in iospc_perfcnt_program() 512 &grp_p->counters_p[counter].zero_value)) != SUCCESS) in iospc_perfcnt_program() [all …]
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | bbc_beep.c | 328 unsigned long counter; in bbc_beep_freq() local 335 counter = bbc_beep_hztocounter(freq); in bbc_beep_freq() 338 beep_c2 = (counter & 0xff00) >> 8; in bbc_beep_freq() 339 beep_c3 = (counter & 0xff0000) >> 16; in bbc_beep_freq() 355 (void *)dip, freq, (int)counter)); in bbc_beep_freq() 484 unsigned long counter; in bbc_beep_hztocounter() local 502 for (i = BBC_BEEP_MIN_SHIFT, counter = 1 << BBC_BEEP_MSBIT; in bbc_beep_hztocounter() 503 i >= BBC_BEEP_MAX_SHIFT; i--, counter >>= 1) { in bbc_beep_hztocounter() 521 return (counter); in bbc_beep_hztocounter() 533 return (counter); in bbc_beep_hztocounter() [all …]
|
/illumos-gate/usr/src/uts/intel/io/ |
H A D | pit_beep.c | 256 int counter; in pit_beep_freq() local 259 counter = 0; in pit_beep_freq() 261 counter = PIT_HZ / freq; in pit_beep_freq() 262 if (counter > UINT16_MAX) in pit_beep_freq() 263 counter = UINT16_MAX; in pit_beep_freq() 264 else if (counter < 1) in pit_beep_freq() 265 counter = 1; in pit_beep_freq() 269 outb(PITCTR2_PORT, counter & 0xff); in pit_beep_freq() 270 outb(PITCTR2_PORT, counter >> 8); in pit_beep_freq()
|
/illumos-gate/usr/src/common/crypto/modes/ |
H A D | gcm.c | 147 uint64_t counter; in gcm_mode_encrypt_contiguous_blocks() local 184 counter = ntohll(ctx->gcm_cb[1] & counter_mask); in gcm_mode_encrypt_contiguous_blocks() 185 counter = htonll(counter + 1); in gcm_mode_encrypt_contiguous_blocks() 186 counter &= counter_mask; in gcm_mode_encrypt_contiguous_blocks() 187 ctx->gcm_cb[1] = (ctx->gcm_cb[1] & ~counter_mask) | counter; in gcm_mode_encrypt_contiguous_blocks() 269 uint64_t counter; in gcm_encrypt_final() local 280 counter = ntohll(ctx->gcm_cb[1] & counter_mask); in gcm_encrypt_final() 281 counter = htonll(counter + 1); in gcm_encrypt_final() 282 counter &= counter_mask; in gcm_encrypt_final() 283 ctx->gcm_cb[1] = (ctx->gcm_cb[1] & ~counter_mask) | counter; in gcm_encrypt_final() [all …]
|
/illumos-gate/usr/src/cmd/sgs/link_audit/common/ |
H A D | perfcnt.c | 62 static int counter = 0; variable 189 accounted[counter] = 0; in la_sparcv9_pltenter() 190 starts[counter] = gethrvtime(); in la_sparcv9_pltenter() 191 counter++; in la_sparcv9_pltenter() 218 counter--; in la_pltexit64() 219 time_used = gethrvtime() - starts[counter]; in la_pltexit64() 231 if (counter) in la_pltexit64() 232 accounted[counter - 1] += time_used; in la_pltexit64() 235 (*dep)->d_time += (double)((time_used - accounted[counter]) / 1.0e9); in la_pltexit64()
|