Home
last modified time | relevance | path

Searched refs:oldval (Results 1 – 25 of 36) sorted by relevance

12

/illumos-gate/usr/src/uts/common/io/bge/
H A Dbge_atomic.c41 uint64_t oldval; in bge_atomic_reserve() local
46 oldval = *count_p; in bge_atomic_reserve()
47 newval = oldval - n; in bge_atomic_reserve()
48 if (oldval <= n) in bge_atomic_reserve()
50 } while (atomic_cas_64(count_p, oldval, newval) != oldval); in bge_atomic_reserve()
61 uint64_t oldval; in bge_atomic_renounce() local
66 oldval = *count_p; in bge_atomic_renounce()
67 newval = oldval + n; in bge_atomic_renounce()
68 } while (atomic_cas_64(count_p, oldval, newval) != oldval); in bge_atomic_renounce()
77 uint64_t oldval; in bge_atomic_claim() local
[all …]
/illumos-gate/usr/src/uts/common/io/nge/
H A Dnge_atomic.c36 uint64_t oldval; in nge_atomic_decrease() local
41 oldval = *count_p; in nge_atomic_decrease()
42 newval = oldval - n; in nge_atomic_decrease()
43 if (oldval < n) in nge_atomic_decrease()
45 } while (atomic_cas_64(count_p, oldval, newval) != oldval); in nge_atomic_decrease()
56 uint64_t oldval; in nge_atomic_increase() local
61 oldval = *count_p; in nge_atomic_increase()
62 newval = oldval + n; in nge_atomic_increase()
63 } while (atomic_cas_64(count_p, oldval, newval) != oldval); in nge_atomic_increase()
74 uint32_t oldval; in nge_atomic_shl32() local
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/delegate/
H A Ddelegate_common.kshlib379 typeset oldval
498 typeset oldval
501 oldval=$(get_prop $perm $dtst)
502 if [[ $oldval == "on" ]]; then
504 elif [[ $oldval == "off" ]]; then
522 typeset oldval
525 oldval=$(get_prop $perm $dtst)
526 if [[ $oldval -eq 1 ]]; then
528 elif [[ $oldval -eq 2 ]]; then
530 elif [[ $oldval -eq 3 ]]; then
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Dmanpath.c237 char *oldval; in manconf_output() local
265 oldval = mandoc_strdup(conf->includes); in manconf_output()
272 oldval = mandoc_strdup(conf->man); in manconf_output()
279 oldval = mandoc_strdup(conf->paper); in manconf_output()
286 oldval = mandoc_strdup(conf->style); in manconf_output()
293 mandoc_asprintf(&oldval, "%zu", conf->indent); in manconf_output()
304 mandoc_asprintf(&oldval, "%zu", conf->width); in manconf_output()
315 oldval = mandoc_strdup(conf->outfilename); in manconf_output()
322 oldval = mandoc_strdup(conf->tagfilename); in manconf_output()
333 oldval = mandoc_strdup(conf->tag); in manconf_output()
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/
H A Doce_utils.c229 uint32_t oldval; in oce_atomic_reserve() local
236 oldval = *count_p; in oce_atomic_reserve()
237 if (oldval < n) in oce_atomic_reserve()
239 newval = oldval - n; in oce_atomic_reserve()
241 } while (atomic_cas_32(count_p, oldval, newval) != oldval); in oce_atomic_reserve()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/uwin/
H A Drand48.c64 static unsigned short oldval[3]; variable
157 oldval[0] = X[2]; in seed48()
158 oldval[1] = X[1]; in seed48()
159 oldval[2] = X[0]; in seed48()
163 return(oldval); in seed48()
/illumos-gate/usr/src/uts/common/io/rge/
H A Drge_rxtx.c40 uint32_t oldval; in rge_atomic_reserve() local
45 oldval = *count_p; in rge_atomic_reserve()
46 newval = oldval - n; in rge_atomic_reserve()
47 if (oldval <= n) in rge_atomic_reserve()
49 } while (atomic_cas_32(count_p, oldval, newval) != oldval); in rge_atomic_reserve()
60 uint32_t oldval; in rge_atomic_renounce() local
65 oldval = *count_p; in rge_atomic_renounce()
66 newval = oldval + n; in rge_atomic_renounce()
67 } while (atomic_cas_32(count_p, oldval, newval) != oldval); in rge_atomic_renounce()
H A Drge_chip.c241 uint32_t oldval; in rge_atomic_shl32() local
246 oldval = *sp; in rge_atomic_shl32()
247 newval = oldval << count; in rge_atomic_shl32()
248 } while (atomic_cas_32(sp, oldval, newval) != oldval); in rge_atomic_shl32()
250 return (oldval); in rge_atomic_shl32()
/illumos-gate/usr/src/lib/libnisdb/yptol/
H A Dttl_utils.c287 struct timeval oldval; in add_to_timeval() local
289 oldval.tv_sec = t1->tv_sec; in add_to_timeval()
295 if (!(t1->tv_sec >= oldval.tv_sec)) { in add_to_timeval()
297 "Wrap when adding %d to %d", t2, oldval.tv_sec); in add_to_timeval()
/illumos-gate/usr/src/cmd/passwd/
H A Dpasswd.c512 getresponse(char *oldval) in getresponse() argument
522 if (*resp != '\0' && strcmp(resp, oldval) != 0) in getresponse()
541 char *oldval; /* shorthand for oldattr.data.val_s */ in userinput() local
552 oldval = oldattr.data.val_s; in userinput()
556 if (*oldval == '\0') { in userinput()
557 free(oldval); in userinput()
558 oldval = strdup(DEFSHL); in userinput()
565 while (valid && strcmp(valid, oldval) != 0) in userinput()
570 (void) fprintf(stderr, gettext(MSG_RS), oldval); in userinput()
571 free(oldval); in userinput()
[all …]
/illumos-gate/usr/src/uts/sun4u/vm/
H A Dmach_kpm.c699 int oldval; in sfmmu_kpm_mapin() local
855 oldval = sfmmu_kpm_stsbmtl(&ksp->kp_mapped_flag, &kpmsp->kshl_lock, in sfmmu_kpm_mapin()
859 if (oldval != 0) in sfmmu_kpm_mapin()
886 int oldval; in sfmmu_kpm_mapout() local
1049 oldval = sfmmu_kpm_stsbmtl(&ksp->kp_mapped_flag, in sfmmu_kpm_mapout()
1052 if (oldval != KPM_MAPPEDS) { in sfmmu_kpm_mapout()
1057 if (oldval != KPM_MAPPEDSC) in sfmmu_kpm_mapout()
1069 oldval = sfmmu_kpm_stsbmtl(&ksp->kp_mapped_flag, in sfmmu_kpm_mapout()
1072 if (oldval != KPM_MAPPEDSC || PP_ISKPMC(pp) == 0) in sfmmu_kpm_mapout()
1091 oldval = sfmmu_kpm_stsbmtl(&ksp->kp_mapped_flag, in sfmmu_kpm_mapout()
[all …]
/illumos-gate/usr/src/uts/intel/io/vmm/io/
H A Dvhpet.c405 uint64_t oldval, newval; in vhpet_timer_update_config() local
413 oldval = vhpet->timer[n].cap_config; in vhpet_timer_update_config()
415 newval = oldval; in vhpet_timer_update_config()
418 newval |= oldval & HPET_TCAP_RO_MASK; in vhpet_timer_update_config()
420 if (newval == oldval) in vhpet_timer_update_config()
476 uint64_t data, mask, oldval, val64; in vhpet_mmio_write() local
518 oldval = vhpet->config; in vhpet_mmio_write()
527 if ((oldval ^ vhpet->config) & HPET_CNF_ENABLE) { in vhpet_mmio_write()
H A Dvrtc.c984 const uint8_t oldval = vrtc->rtcdev.reg_a; in vrtc_rega_write() local
987 if (rega_divider_en(oldval) && !rega_divider_en(newval)) { in vrtc_rega_write()
989 } else if (!rega_divider_en(oldval) && rega_divider_en(newval)) { in vrtc_rega_write()
1005 const hrtime_t period_old = rega_period(oldval); in vrtc_rega_write()
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_util.c1197 struct Dwarf_Printf_Callback_Info_s oldval = dbg->de_printf_callback; in dwarf_register_printf_callback() local
1199 return oldval; in dwarf_register_printf_callback()
1202 if( oldval.dp_buffer_user_provided) { in dwarf_register_printf_callback()
1208 free(oldval.dp_buffer); in dwarf_register_printf_callback()
1209 oldval.dp_buffer = 0; in dwarf_register_printf_callback()
1212 } else if (oldval.dp_buffer_user_provided){ in dwarf_register_printf_callback()
1221 oldval.dp_buffer_len; in dwarf_register_printf_callback()
1223 oldval.dp_buffer; in dwarf_register_printf_callback()
1225 return oldval; in dwarf_register_printf_callback()
H A Ddwarf_init_finish.c115 int oldval = _dwarf_apply_relocs; in dwarf_set_reloc_application() local
117 return oldval; in dwarf_set_reloc_application()
123 int oldval = _dwarf_assume_string_in_bounds; in dwarf_set_stringcheck() local
126 return oldval; in dwarf_set_stringcheck()
/illumos-gate/usr/src/cmd/projadd/
H A Dprojmod.pl158 my ($oldval, $newval);
182 foreach $oldval (@$lastmerged) {
184 projent_values_equal($newval, $oldval)) {
187 push(@merged, $oldval);
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_stats.c360 uint32_t shift, mask, oldval; in tavor_kstat_cntr_update() local
417 oldval = ib_perf[indx].ks_old_pic0; in tavor_kstat_cntr_update()
426 tmp = tmp - oldval; in tavor_kstat_cntr_update()
440 oldval = ib_perf[indx].ks_old_pic1; in tavor_kstat_cntr_update()
449 tmp = tmp - oldval; in tavor_kstat_cntr_update()
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_stats.c345 uint32_t oldval; in hermon_kstat_cntr_update() local
401 oldval = ib_perf[indx].ks_old_pic0; in hermon_kstat_cntr_update()
466 tmp = tmp - oldval; in hermon_kstat_cntr_update()
477 oldval = ib_perf[indx].ks_old_pic1; in hermon_kstat_cntr_update()
542 tmp = tmp - oldval; in hermon_kstat_cntr_update()
/illumos-gate/usr/src/uts/sun4u/cpu/
H A Dus3_common_mmu.c478 uint16_t oldval, newval; in mmu_check_page_sizes() local
507 oldval = sfmmup->sfmmu_pgsz[0] << 8 | sfmmup->sfmmu_pgsz[1]; in mmu_check_page_sizes()
516 if (newval != oldval) { in mmu_check_page_sizes()
H A Dopl_olympus.c977 uint16_t oldval, newval; local
998 oldval = sfmmup->sfmmu_pgsz[0] << 8 | sfmmup->sfmmu_pgsz[1];
1004 if (newval != oldval) {
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Dib_send.c363 long oldval, newval; in rdsv3_ib_send_grab_credits() local
374 oldval = newval = atomic_get(&ic->i_credits); in rdsv3_ib_send_grab_credits()
375 posted = IB_GET_POST_CREDITS(oldval); in rdsv3_ib_send_grab_credits()
376 avail = IB_GET_SEND_CREDITS(oldval); in rdsv3_ib_send_grab_credits()
408 if (atomic_cmpxchg(&ic->i_credits, oldval, newval) != oldval) in rdsv3_ib_send_grab_credits()
/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dlvm.c142 TValue *oldval = cast(TValue *, luaH_get(h, key)); in luaV_settable() local
145 if (!ttisnil(oldval) || in luaV_settable()
149 (oldval != luaO_nilobject || in luaV_settable()
152 (oldval = luaH_newkey(L, h, key), 1)))) { in luaV_settable()
154 setobj2t(L, oldval, val); /* assign new value to that entry */ in luaV_settable()
/illumos-gate/usr/src/lib/libproc/common/
H A DPcontrol.c2788 int oldval; in Psetaction() local
2801 oldval = prset_ismember(sp, size, which) ? TRUE : FALSE; in Psetaction()
2807 } else if (!oldval) { in Psetaction()
2815 } else if (oldval) { in Psetaction()
2824 return (oldval); in Psetaction()
2833 int oldval; in Psignal() local
2840 oldval = Psetaction(P, &P->status.pr_sigtrace, sizeof (sigset_t), in Psignal()
2843 if (oldval != -1 && which == 0 && stop != 0) in Psignal()
2846 return (oldval); in Psignal()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/
H A Dilbd_scf.c868 scf_value_t *oldval = NULL; in ilbd_scf_set_prop() local
879 ret = ilbd_scf_get_prop_val(pg, propname, &oldval); in ilbd_scf_set_prop()
880 if (oldval != NULL) in ilbd_scf_set_prop()
881 scf_value_destroy(oldval); in ilbd_scf_set_prop()
/illumos-gate/usr/src/uts/common/io/pcn/
H A Dpcn.c592 uint16_t newval, oldval; in pcn_m_multicast() local
605 newval = oldval = pcnp->pcn_mctab[index]; in pcn_m_multicast()
616 if (newval != oldval) { in pcn_m_multicast()

12