/illumos-gate/usr/src/uts/common/io/bge/ |
H A D | bge_atomic.c | 42 uint64_t newval; in bge_atomic_reserve() local 47 newval = oldval - n; in bge_atomic_reserve() 50 } while (atomic_cas_64(count_p, oldval, newval) != oldval); in bge_atomic_reserve() 52 return (newval); in bge_atomic_reserve() 62 uint64_t newval; in bge_atomic_renounce() local 67 newval = oldval + n; in bge_atomic_renounce() 68 } while (atomic_cas_64(count_p, oldval, newval) != oldval); in bge_atomic_renounce() 78 uint64_t newval; in bge_atomic_claim() local 83 newval = NEXT(oldval, limit); in bge_atomic_claim() 84 } while (atomic_cas_64(count_p, oldval, newval) != oldval); in bge_atomic_claim() [all …]
|
/illumos-gate/usr/src/uts/common/io/nge/ |
H A D | nge_atomic.c | 37 uint64_t newval; in nge_atomic_decrease() local 42 newval = oldval - n; in nge_atomic_decrease() 45 } while (atomic_cas_64(count_p, oldval, newval) != oldval); in nge_atomic_decrease() 57 uint64_t newval; in nge_atomic_increase() local 62 newval = oldval + n; in nge_atomic_increase() 63 } while (atomic_cas_64(count_p, oldval, newval) != oldval); in nge_atomic_increase() 75 uint32_t newval; in nge_atomic_shl32() local 80 newval = oldval << count; in nge_atomic_shl32() 81 } while (atomic_cas_32(sp, oldval, newval) != oldval); in nge_atomic_shl32()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dmu_objset.c | 172 checksum_changed_cb(void *arg, uint64_t newval) in checksum_changed_cb() argument 179 ASSERT(newval != ZIO_CHECKSUM_INHERIT); in checksum_changed_cb() 181 os->os_checksum = zio_checksum_select(newval, ZIO_CHECKSUM_ON_VALUE); in checksum_changed_cb() 185 compression_changed_cb(void *arg, uint64_t newval) in compression_changed_cb() argument 192 ASSERT(newval != ZIO_COMPRESS_INHERIT); in compression_changed_cb() 194 os->os_compress = zio_compress_select(os->os_spa, newval, in compression_changed_cb() 199 copies_changed_cb(void *arg, uint64_t newval) in copies_changed_cb() argument 206 ASSERT(newval > 0); in copies_changed_cb() 207 ASSERT(newval <= spa_max_replication(os->os_spa)); in copies_changed_cb() 209 os->os_copies = newval; in copies_changed_cb() [all …]
|
H A D | zfs_vfsops.c | 258 atime_changed_cb(void *arg, uint64_t newval) in atime_changed_cb() argument 262 if (newval == TRUE) { in atime_changed_cb() 274 xattr_changed_cb(void *arg, uint64_t newval) in xattr_changed_cb() argument 278 if (newval == TRUE) { in xattr_changed_cb() 292 blksz_changed_cb(void *arg, uint64_t newval) in blksz_changed_cb() argument 295 ASSERT3U(newval, <=, spa_maxblocksize(dmu_objset_spa(zfsvfs->z_os))); in blksz_changed_cb() 296 ASSERT3U(newval, >=, SPA_MINBLOCKSIZE); in blksz_changed_cb() 297 ASSERT(ISP2(newval)); in blksz_changed_cb() 299 zfsvfs->z_max_blksz = newval; in blksz_changed_cb() 300 zfsvfs->z_vfs->vfs_bsize = newval; in blksz_changed_cb() [all …]
|
H A D | dsl_dir.c | 1589 uint64_t towrite, newval; in dsl_dir_set_quota_check() local 1596 ddsqra->ddsqra_source, ddsqra->ddsqra_value, &newval); in dsl_dir_set_quota_check() 1602 if (newval == 0) { in dsl_dir_set_quota_check() 1616 (newval < dsl_dir_phys(ds->ds_dir)->dd_reserved || in dsl_dir_set_quota_check() 1617 newval < dsl_dir_phys(ds->ds_dir)->dd_used_bytes + towrite)) { in dsl_dir_set_quota_check() 1631 uint64_t newval; in dsl_dir_set_quota_sync() local 1641 zfs_prop_to_name(ZFS_PROP_QUOTA), &newval)); in dsl_dir_set_quota_sync() 1643 newval = ddsqra->ddsqra_value; in dsl_dir_set_quota_sync() 1645 zfs_prop_to_name(ZFS_PROP_QUOTA), (longlong_t)newval); in dsl_dir_set_quota_sync() 1650 dsl_dir_phys(ds->ds_dir)->dd_quota = newval; in dsl_dir_set_quota_sync() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/channel_program/lua_core/ |
H A D | nvlist_to_lua.c | 267 nvlist_t *newval = fnvlist_alloc(); in run_tests() local 268 fnvlist_add_nvlist(newval, "key", nvl); in run_tests() 270 nvl = newval; in run_tests() 276 nvlist_t *newval = fnvlist_alloc(); in run_tests() local 277 fnvlist_add_nvlist(newval, "key", nvl); in run_tests() 279 nvl = newval; in run_tests()
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_utils.c | 230 uint32_t newval; in oce_atomic_reserve() local 239 newval = oldval - n; in oce_atomic_reserve() 241 } while (atomic_cas_32(count_p, oldval, newval) != oldval); in oce_atomic_reserve() 243 return (newval); in oce_atomic_reserve()
|
/illumos-gate/usr/src/test/zfs-tests/include/ |
H A D | properties.shlib | 107 typeset newval='off' 109 [[ $val = $newval ]] && newval='on' 110 log_must zfs set $prop=$newval $ds
|
/illumos-gate/usr/src/uts/common/io/rge/ |
H A D | rge_rxtx.c | 44 uint32_t newval; in rge_atomic_reserve() local 49 newval = oldval - n; in rge_atomic_reserve() 52 } while (atomic_cas_32(count_p, oldval, newval) != oldval); in rge_atomic_reserve() 54 return (newval); in rge_atomic_reserve() 67 uint32_t newval; in rge_atomic_renounce() local 72 newval = oldval + n; in rge_atomic_renounce() 73 } while (atomic_cas_32(count_p, oldval, newval) != oldval); in rge_atomic_renounce()
|
/illumos-gate/usr/src/uts/intel/io/vmm/io/ |
H A D | vrtc.c | 878 vrtc_regb_write(struct vrtc *vrtc, uint8_t newval) in vrtc_regb_write() argument 884 uint8_t changed = rtc->reg_b ^ newval; in vrtc_regb_write() 885 rtc->reg_b = newval; in vrtc_regb_write() 888 if ((newval & RTCSB_HALT) == 0) { in vrtc_regb_write() 967 vrtc_rega_write(struct vrtc *vrtc, uint8_t newval) in vrtc_rega_write() argument 975 if (rega_divider_en(oldval) && !rega_divider_en(newval)) { in vrtc_rega_write() 977 } else if (!rega_divider_en(oldval) && rega_divider_en(newval)) { in vrtc_rega_write() 994 const hrtime_t period_new = rega_period(newval); in vrtc_rega_write() 1019 vrtc->rtcdev.reg_a = newval & ~RTCSA_TUP; in vrtc_rega_write()
|
H A D | vhpet.c | 393 uint64_t oldval, newval; in vhpet_timer_update_config() local 403 newval = oldval; in vhpet_timer_update_config() 404 update_register(&newval, data, mask); in vhpet_timer_update_config() 405 newval &= ~(HPET_TCAP_RO_MASK | HPET_TCNF_32MODE); in vhpet_timer_update_config() 406 newval |= oldval & HPET_TCAP_RO_MASK; in vhpet_timer_update_config() 408 if (newval == oldval) in vhpet_timer_update_config() 411 vhpet->timer[n].cap_config = newval; in vhpet_timer_update_config()
|
/illumos-gate/usr/src/compat/bhyve/amd64/machine/ |
H A D | cpufunc.h | 128 wrmsr(u_int msr, uint64_t newval) in wrmsr() argument 132 low = newval; in wrmsr() 133 high = newval >> 32; in wrmsr()
|
/illumos-gate/usr/src/cmd/dlmgmtd/ |
H A D | dlmgmt_db.c | 961 char *newval = NULL, *pname; in dlmgmt_attr_rename() local 971 if ((newval = malloc(newsize)) == NULL) in dlmgmt_attr_rename() 973 (void) strcpy(newval, new); in dlmgmt_attr_rename() 975 attrp->lp_val = newval; in dlmgmt_attr_rename() 986 if ((newval = calloc(MAXLINKATTRVALLEN, sizeof (char))) == NULL) in dlmgmt_attr_rename() 993 (void) strcat(newval, new); in dlmgmt_attr_rename() 996 (void) strcat(newval, pname); in dlmgmt_attr_rename() 998 (void) strcat(newval, ":"); in dlmgmt_attr_rename() 1003 attrp->lp_val = newval; in dlmgmt_attr_rename() 1004 attrp->lp_sz = strlen(newval) + 1; in dlmgmt_attr_rename() [all …]
|
/illumos-gate/usr/src/cmd/ldap/common/ |
H A D | ldapmodify.c | 42 static int newval, contoper, force, valsfromfiles, display_binary_values; variable 177 if ( !newval && strcmp( ldaptool_progname, "ldapadd" ) == 0 ) { in main() 178 newval = 1; in main() 398 newval = 1; in options_callback() 454 new_entry = newval; 611 } else if ( newval ) { /* missing changetype => add */ 849 if ( value == NULL && newval ) { 886 } else if (( rc = domodify( ld, dn, pmods, newval )) == LDAP_SUCCESS ){ 888 } else if (( rc = domodify( dn, pmods, newval )) == LDAP_SUCCESS ){
|
/illumos-gate/usr/src/cmd/projadd/ |
H A D | projmod.pl | 158 my ($oldval, $newval); 179 foreach $newval (@$new) { 184 projent_values_equal($newval, $oldval)) { 194 projent_values2string($newval)]);
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | ldap_util.c | 720 char *newval, *s; in escapeSpecialChars() local 739 if ((newval = am(myself, val->val[i].length + count + 1)) == 0) in escapeSpecialChars() 747 newval[k++] = '\\'; in escapeSpecialChars() 748 newval[k] = *s; in escapeSpecialChars() 752 val->val[i].value = newval; in escapeSpecialChars()
|
/illumos-gate/usr/src/cmd/prtfru/ |
H A D | prtfru.c | 437 unsigned int newval = (unsigned int)*val, tmpval = 0; in convertbcdtobinary() local 438 while (newval > 0) { in convertbcdtobinary() 439 tmpval = (tmpval << 4) | (newval & 0xF); in convertbcdtobinary() 440 newval >>= 4; in convertbcdtobinary() 443 newval = (newval * 10) + (tmpval & 0xF); in convertbcdtobinary() 446 *val = newval; in convertbcdtobinary()
|
/illumos-gate/usr/src/boot/sys/amd64/include/ |
H A D | cpufunc.h | 409 wrmsr(u_int msr, uint64_t newval) in wrmsr() argument 413 low = newval; in wrmsr() 414 high = newval >> 32; in wrmsr() 868 void wrmsr(u_int msr, uint64_t newval); 876 int wrmsr_safe(u_int msr, uint64_t newval);
|
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | eftread.c | 63 eftread_showheader(int newval) in eftread_showheader() argument 65 Showheader = newval; in eftread_showheader()
|
H A D | eftread.h | 36 void eftread_showheader(int newval);
|
/illumos-gate/usr/src/uts/common/io/xge/drv/ |
H A D | xge_osdep.h | 189 #define xge_os_cmpxchg(targetp, cmp, newval) \ argument 191 atomic_cas_32((uint32_t *)targetp, cmp, newval) : \ 192 atomic_cas_64((uint64_t *)targetp, cmp, newval)
|
/illumos-gate/usr/src/uts/sun4u/cpu/ |
H A D | us3_common_mmu.c | 478 uint16_t oldval, newval; in mmu_check_page_sizes() local 515 newval = tmp_pgsz[0] << 8 | tmp_pgsz[1]; in mmu_check_page_sizes() 516 if (newval != oldval) { in mmu_check_page_sizes()
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | bhyverun.c | 257 char *newval; in bhyve_pincpu_parse() local 279 if (asprintf(&newval, "%s%s%d", value != NULL ? value : "", in bhyve_pincpu_parse() 285 set_config_value(key, newval); in bhyve_pincpu_parse() 286 free(newval); in bhyve_pincpu_parse()
|
/illumos-gate/usr/src/boot/sys/i386/include/ |
H A D | cpufunc.h | 387 wrmsr(u_int msr, uint64_t newval) in wrmsr() argument 389 __asm __volatile("wrmsr" : : "A" (newval), "c" (msr)); in wrmsr() 788 void wrmsr(u_int msr, uint64_t newval); 796 int wrmsr_safe(u_int msr, uint64_t newval);
|
/illumos-gate/usr/src/uts/intel/io/vmm/amd/ |
H A D | svm.c | 1135 svm_write_efer(struct svm_softc *sc, int vcpu, uint64_t newval) in svm_write_efer() argument 1141 newval &= ~0xFE; /* clear the Read-As-Zero (RAZ) bits */ in svm_write_efer() 1143 if (newval & EFER_MBZ_BITS) { in svm_write_efer() 1148 const uint64_t changed = state->efer ^ newval; in svm_write_efer() 1156 if ((newval & EFER_LME) != 0 && (state->cr0 & CR0_PG) != 0) { in svm_write_efer() 1161 if ((newval & EFER_LMA) != lma) { in svm_write_efer() 1165 if ((newval & EFER_NXE) != 0 && in svm_write_efer() 1169 if ((newval & EFER_FFXSR) != 0 && in svm_write_efer() 1173 if ((newval & EFER_TCE) != 0 && in svm_write_efer() 1182 if (newval & EFER_LMSLE) { in svm_write_efer() [all …]
|