Home
last modified time | relevance | path

Searched refs:new_val (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/contrib/ofed/opensm/include/complib/
H A Dcl_atomic_osd.h61 int32_t new_val; in cl_atomic_inc() local
64 new_val = *p_value + 1; in cl_atomic_inc()
65 *p_value = new_val; in cl_atomic_inc()
67 return (new_val); in cl_atomic_inc()
72 int32_t new_val; in cl_atomic_dec() local
75 new_val = *p_value - 1; in cl_atomic_dec()
76 *p_value = new_val; in cl_atomic_dec()
78 return (new_val); in cl_atomic_dec()
84 int32_t new_val; in cl_atomic_add() local
87 new_val = *p_value + increment; in cl_atomic_add()
[all …]
/freebsd/contrib/ntp/sntp/libopts/
H A Dnested.c197 tOptionValue * new_val = AGALOC(sz, "bool val"); in add_bool() local
207 new_val->v.boolVal = 0; in add_bool()
210 new_val->v.boolVal = (unsigned)atoi(val); in add_bool()
212 else new_val->v.boolVal = ! IS_FALSE_TYPE_CHAR(*val); in add_bool()
214 new_val->valType = OPARG_TYPE_BOOLEAN; in add_bool()
215 new_val->pzName = (char *)(new_val + 1); in add_bool()
216 memcpy(new_val->pzName, name, nm_len); in add_bool()
217 new_val->pzName[ nm_len ] = NUL; in add_bool()
218 addArgListEntry(pp, new_val); in add_bool()
219 return new_val; in add_bool()
[all …]
/freebsd/sys/dev/liquidio/
H A Dlio_sysctl.c1708 uint64_t new_val = 0, old_val = 0; in lio_get_set_intr_coalesce() local
1717 new_val = old_val = lio->intrmod_cfg.rx_enable; in lio_get_set_intr_coalesce()
1719 err = sysctl_handle_64(oidp, &new_val, 0, req); in lio_get_set_intr_coalesce()
1723 if (old_val == new_val) in lio_get_set_intr_coalesce()
1726 lio->intrmod_cfg.rx_enable = new_val ? 1 : 0; in lio_get_set_intr_coalesce()
1731 new_val = old_val = lio->intrmod_cfg.tx_enable; in lio_get_set_intr_coalesce()
1733 err = sysctl_handle_64(oidp, &new_val, 0, req); in lio_get_set_intr_coalesce()
1737 if (old_val == new_val) in lio_get_set_intr_coalesce()
1740 lio->intrmod_cfg.tx_enable = new_val ? 1 : 0; in lio_get_set_intr_coalesce()
1745 new_val = old_val = oct->rx_coalesce_usecs; in lio_get_set_intr_coalesce()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_inherit/
H A Dzfs_inherit_001_neg.ksh64 new_val=$(get_prop ${prop[i]} $obj)
66 if [[ $new_val != $orig_val ]]; then
68 " to $new_val"
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_inherit/
H A Dzfs_inherit_001_neg.ksh80 new_val=$(get_prop ${prop[i]} $obj)
82 if [[ $new_val != $orig_val ]]; then
84 " to $new_val"
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_set/
H A Dversion_001_neg.ksh71 new_val=$(get_prop version $obj)
73 if [[ $new_val != $orig_val ]]; then
75 "($orig_val : $new_val)"
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_set/
H A Dversion_001_neg.ksh88 new_val=$(get_prop version $obj)
90 if [[ $new_val != $orig_val ]]; then
92 "($orig_val : $new_val)"
/freebsd/sys/i386/include/xen/
H A Dhypercall.h254 unsigned long va, uint64_t new_val, unsigned long flags) in HYPERVISOR_update_va_mapping() argument
258 lo = (uint32_t)(new_val & 0xffffffff); in HYPERVISOR_update_va_mapping()
259 hi = (uint32_t)(new_val >> 32); in HYPERVISOR_update_va_mapping()
302 unsigned long va, uint64_t new_val, unsigned long flags, domid_t domid) in HYPERVISOR_update_va_mapping_otherdomain() argument
306 lo = (uint32_t)(new_val & 0xffffffff); in HYPERVISOR_update_va_mapping_otherdomain()
307 hi = (uint32_t)(new_val >> 32); in HYPERVISOR_update_va_mapping_otherdomain()
/freebsd/sys/dev/vmware/vmci/
H A Dvmci_defs.h447 uint64_t new_val = qp_atomic_read_offset(var); in qp_add_pointer() local
449 if (new_val >= size - add) in qp_add_pointer()
450 new_val -= size; in qp_add_pointer()
452 new_val += add; in qp_add_pointer()
453 qp_atomic_write_offset(var, new_val); in qp_add_pointer()
/freebsd/contrib/libcbor/test/
H A Darray_test.c43 cbor_item_t *new_val = cbor_build_uint8(10); in test_simple_array() local
44 assert_false(cbor_array_set(arr, 1, new_val)); in test_simple_array()
45 assert_false(cbor_array_set(arr, 3, new_val)); in test_simple_array()
46 cbor_decref(&new_val); in test_simple_array()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFISelDAGToDAG.cpp246 } new_val; // hold up the constant values replacing loads. in PreprocessLoad() local
276 getConstantFieldValue(GADN, CDN->getZExtValue(), size, new_val.c); in PreprocessLoad()
284 to_replace = getConstantFieldValue(GADN, 0, size, new_val.c); in PreprocessLoad()
293 val = new_val.c[0]; in PreprocessLoad()
295 val = new_val.s; in PreprocessLoad()
297 val = new_val.i; in PreprocessLoad()
299 val = new_val.d; in PreprocessLoad()
/freebsd/sys/amd64/include/xen/
H A Dhypercall.h272 unsigned long va, uint64_t new_val, unsigned long flags) in HYPERVISOR_update_va_mapping() argument
274 return _hypercall3(int, update_va_mapping, va, new_val, flags); in HYPERVISOR_update_va_mapping()
314 unsigned long va, uint64_t new_val, unsigned long flags, domid_t domid) in HYPERVISOR_update_va_mapping_otherdomain() argument
317 new_val, flags, domid); in HYPERVISOR_update_va_mapping_otherdomain()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/synctask_core/
H A Dtst.set_props.zcp79 new_val, src = zfs.get_prop(fs, prop)
80 if (tostring(new_val) ~= tostring(val)) then
81 val_fail[prop] = new_val
/freebsd/sys/dev/cpufreq/
H A Dichss.c326 uint8_t bmval, new_val, old_val, req_val; in ichss_set() local
354 new_val = ICH_GET_REG(sc->ctrl_reg); in ichss_set()
358 if (req_val != (new_val & ICHSS_CTRL_BIT)) { in ichss_set()
/freebsd/contrib/hyperv/tools/
H A Dhv_kvp_daemon.c968 kvp_set_ip_info(char *if_name, struct hv_kvp_ipaddr_value *new_val) in kvp_set_ip_info() argument
1011 (char *)new_val->ip_addr); in kvp_set_ip_info()
1018 (char *)new_val->sub_net); in kvp_set_ip_info()
1026 (char *)new_val->gate_way); in kvp_set_ip_info()
1032 error = kvp_write_file(file, "DNS", "", (char *)new_val->dns_addr); in kvp_set_ip_info()
1038 if (new_val->dhcp_enabled) { in kvp_set_ip_info()
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_interface.inc156 void __tsan_vptr_update(void **vptr_p, void *new_val) {
157 if (*vptr_p == new_val)
H A Dtsan_interface.h76 void __tsan_vptr_update(void **vptr_p, void *new_val);
/freebsd/sys/kern/
H A Dsched_4bsd.c195 int error, new_val, period; in sysctl_kern_quantum() local
198 new_val = period * sched_slice; in sysctl_kern_quantum()
199 error = sysctl_handle_int(oidp, &new_val, 0, req); in sysctl_kern_quantum()
202 if (new_val <= 0) in sysctl_kern_quantum()
204 sched_slice = imax(1, (new_val + period / 2) / period); in sysctl_kern_quantum()
H A Dkern_sig.c3765 int new_val; in sysctl_debug_num_cores_check() local
3767 new_val = num_cores; in sysctl_debug_num_cores_check()
3768 error = sysctl_handle_int(oidp, &new_val, 0, req); in sysctl_debug_num_cores_check()
3771 if (new_val > MAX_NUM_CORE_FILES) in sysctl_debug_num_cores_check()
3772 new_val = MAX_NUM_CORE_FILES; in sysctl_debug_num_cores_check()
3773 if (new_val < 0) in sysctl_debug_num_cores_check()
3774 new_val = 0; in sysctl_debug_num_cores_check()
3775 num_cores = new_val; in sysctl_debug_num_cores_check()
H A Dsched_ule.c3286 int error, new_val, period;
3289 new_val = period * sched_slice; in sysctl_kern_quantum() local
3290 error = sysctl_handle_int(oidp, &new_val, 0, req); in sysctl_kern_quantum()
3293 if (new_val <= 0) in sysctl_kern_quantum()
3295 sched_slice = imax(1, (new_val + period / 2) / period); in sysctl_kern_quantum()
/freebsd/tests/sys/cddl/zfs/tests/inheritance/
H A Dinherit_001_pos.ksh91 typeset new_val
/freebsd/sys/arm64/arm64/
H A Didentcpu.c2557 uint64_t cur, mask, new_val; in update_special_reg_field() local
2561 new_val = value & mask; in update_special_reg_field()
2565 if (mrs_field_cmp(new_val, cur, shift, width, sign) == 0) in update_special_reg_field()
2572 if (mrs_field_cmp(new_val, cur, shift, width, sign) < 0) in update_special_reg_field()
2573 cur = new_val; in update_special_reg_field()
2576 if (cur == 0 || new_val == 0) { in update_special_reg_field()
2582 if (mrs_field_cmp(new_val, cur, shift, width, sign) > 0) in update_special_reg_field()
2583 cur = new_val; in update_special_reg_field()
/freebsd/sys/dev/smartpqi/
H A Dsmartpqi_defines.h968 os_atomic64_cas(volatile uint64_t* var, uint64_t old_val, uint64_t new_val) in os_atomic64_cas() argument
970 return (atomic_cmpset_64(var, old_val, new_val)); in os_atomic64_cas()
/freebsd/sys/dev/sound/pci/
H A Demu10kx.c1578 int new_val; in sysctl_emu_digitalswitch_control() local
1583 new_val = (sc->mode == MODE_DIGITAL) ? 1 : 0; in sysctl_emu_digitalswitch_control()
1584 err = sysctl_handle_int(oidp, &new_val, 0, req); in sysctl_emu_digitalswitch_control()
1588 if (new_val < 0 || new_val > 1) in sysctl_emu_digitalswitch_control()
1591 switch (new_val) { in sysctl_emu_digitalswitch_control()
/freebsd/contrib/llvm-project/lldb/include/lldb/Target/
H A DThread.h323 virtual void SetQueueID(lldb::queue_id_t new_val) {} in SetQueueID() argument

12