/openbmc/linux/tools/lib/bpf/ |
H A D | hashmap.h | 131 long *old_key, long *old_value); 133 #define hashmap__insert(map, key, value, strategy, old_key, old_value) \ argument 136 hashmap_cast_ptr(old_value)) 141 #define hashmap__set(map, key, value, old_key, old_value) \ argument 142 hashmap__insert((map), (key), (value), HASHMAP_SET, (old_key), (old_value)) 144 #define hashmap__update(map, key, value, old_key, old_value) \ argument 145 hashmap__insert((map), (key), (value), HASHMAP_UPDATE, (old_key), (old_value)) 150 bool hashmap_delete(struct hashmap *map, long key, long *old_key, long *old_value); 152 #define hashmap__delete(map, key, old_key, old_value) \ argument 155 hashmap_cast_ptr(old_value))
|
H A D | hashmap.c | 156 long *old_key, long *old_value) in hashmap_insert() argument 164 if (old_value) in hashmap_insert() 165 *old_value = 0; in hashmap_insert() 172 if (old_value) in hashmap_insert() 173 *old_value = entry->value; in hashmap_insert() 221 long *old_key, long *old_value) in hashmap_delete() argument 232 if (old_value) in hashmap_delete() 233 *old_value = entry->value; in hashmap_delete()
|
/openbmc/linux/tools/perf/util/ |
H A D | hashmap.h | 131 long *old_key, long *old_value); 133 #define hashmap__insert(map, key, value, strategy, old_key, old_value) \ argument 136 hashmap_cast_ptr(old_value)) 141 #define hashmap__set(map, key, value, old_key, old_value) \ argument 142 hashmap__insert((map), (key), (value), HASHMAP_SET, (old_key), (old_value)) 144 #define hashmap__update(map, key, value, old_key, old_value) \ argument 145 hashmap__insert((map), (key), (value), HASHMAP_UPDATE, (old_key), (old_value)) 150 bool hashmap_delete(struct hashmap *map, long key, long *old_key, long *old_value); 152 #define hashmap__delete(map, key, old_key, old_value) \ argument 155 hashmap_cast_ptr(old_value))
|
H A D | hashmap.c | 156 long *old_key, long *old_value) in hashmap_insert() argument 164 if (old_value) in hashmap_insert() 165 *old_value = 0; in hashmap_insert() 172 if (old_value) in hashmap_insert() 173 *old_value = entry->value; in hashmap_insert() 221 long *old_key, long *old_value) in hashmap_delete() argument 232 if (old_value) in hashmap_delete() 233 *old_value = entry->value; in hashmap_delete()
|
/openbmc/linux/drivers/xen/xen-pciback/ |
H A D | conf_space_capability.c | 118 u16 old_value; in pm_ctrl_write() local 121 err = pci_read_config_word(dev, offset, &old_value); in pm_ctrl_write() 128 if ((old_value & PM_OK_BITS) != new_value) { in pm_ctrl_write() 129 new_value = (old_value & ~PM_OK_BITS) | new_value; in pm_ctrl_write() 220 u16 old_value; in msi_msix_flags_write() local 227 err = pci_read_config_word(dev, offset, &old_value); in msi_msix_flags_write() 231 if (new_value == old_value) in msi_msix_flags_write() 235 (new_value ^ old_value) & ~field_config->allowed_bits) in msi_msix_flags_write()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | hashmap.c | 262 const char *key, *value, *old_key, *old_value; in test_hashmap_ptr_iface() local 279 err = hashmap__insert(map, "a", "apple", HASHMAP_SET, &old_key, &old_value); in test_hashmap_ptr_iface() 283 CHECK_STR("hashmap__update", old_value, "apricot"); in test_hashmap_ptr_iface() 289 err = hashmap__set(map, "b", "breadfruit", &old_key, &old_value); in test_hashmap_ptr_iface() 293 CHECK_STR("hashmap__set", old_value, "banana"); in test_hashmap_ptr_iface() 295 err = hashmap__update(map, "b", "blueberry", &old_key, &old_value); in test_hashmap_ptr_iface() 299 CHECK_STR("hashmap__update", old_value, "breadfruit"); in test_hashmap_ptr_iface() 305 if (CHECK(!hashmap__delete(map, "c", &old_key, &old_value), in test_hashmap_ptr_iface() 309 CHECK_STR("hashmap__delete", old_value, "cherry"); in test_hashmap_ptr_iface()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools/core/ |
H A D | 0013-adb-Support-riscv64.patch | 117 +int android_atomic_cas(int32_t old_value, int32_t new_value, 120 + return __sync_val_compare_and_swap(ptr, old_value, new_value) != old_value; 124 +int android_atomic_acquire_cas(int32_t old_value, int32_t new_value, 127 + int status = android_atomic_cas(old_value, new_value, ptr); 133 +int android_atomic_release_cas(int32_t old_value, int32_t new_value, 137 + return android_atomic_cas(old_value, new_value, ptr);
|
/openbmc/linux/sound/drivers/opl4/ |
H A D | opl4_mixer.c | 39 u8 value, old_value; in snd_opl4_ctl_put() local 44 old_value = snd_opl4_read(opl4, reg); in snd_opl4_ctl_put() 47 return value != old_value; in snd_opl4_ctl_put()
|
/openbmc/qemu/util/ |
H A D | keyval.c | 326 QObject *old_value; in keyval_do_merge() local 329 old_value = qdict_get(dest, ent->key); in keyval_do_merge() 330 if (old_value) { in keyval_do_merge() 331 if (qobject_type(old_value) != qobject_type(ent->value)) { in keyval_do_merge() 339 keyval_do_merge(qobject_to(QDict, old_value), in keyval_do_merge() 346 QList *old = qobject_to(QList, old_value); in keyval_do_merge()
|
/openbmc/boost-dbus/include/dbus/impl/ |
H A D | connection.ipp | 114 bool old_value(true); 115 if (is_paused.compare_exchange_strong(old_value, false)) { 125 bool old_value(false); 126 if (is_paused.compare_exchange_strong(old_value, true)) {
|
/openbmc/pyphosphor/obmc/dbuslib/ |
H A D | bindings.py | 87 old_value = self.properties[interface_name][property_name] 88 if (old_value != new_value): 110 old_value = self.properties[interface_name][property_name] 111 if (old_value != new_value):
|
/openbmc/linux/fs/xfs/scrub/ |
H A D | fscounters.c | 467 const int64_t old_value, in xchk_fscount_within_range() argument 475 old_value); in xchk_fscount_within_range() 485 min_value = min(old_value, curr_value); in xchk_fscount_within_range() 486 max_value = max(old_value, curr_value); in xchk_fscount_within_range()
|
/openbmc/linux/drivers/mmc/host/ |
H A D | sdhci-of-esdhc.c | 240 int spec_reg, u32 value, u32 old_value) in esdhc_writel_fixup() argument 258 int spec_reg, u16 value, u32 old_value) in esdhc_writew_fixup() argument 271 return old_value; in esdhc_writew_fixup() 277 ret = old_value & (~(0xffff << shift)); in esdhc_writew_fixup() 292 int spec_reg, u8 value, u32 old_value) in esdhc_writeb_fixup() argument 304 return old_value; in esdhc_writeb_fixup() 315 return old_value; in esdhc_writeb_fixup() 319 ret = (old_value & (~(SDHCI_CTRL_DMA_MASK << 5))) | dma_bits; in esdhc_writeb_fixup() 321 (old_value & SDHCI_CTRL_DMA_MASK); in esdhc_writeb_fixup() 329 ret = (old_value & (~(0xff << shift))) | (value << shift); in esdhc_writeb_fixup()
|
/openbmc/u-boot/drivers/ddr/marvell/a38x/ |
H A D | xor.c | 153 u32 old_value; in mv_xor_ctrl_set() local 156 old_value = reg_read(XOR_CONFIG_REG(XOR_UNIT(chan), XOR_CHAN(chan))) & in mv_xor_ctrl_set() 159 xor_ctrl |= old_value; in mv_xor_ctrl_set()
|
/openbmc/qemu/hw/gpio/ |
H A D | mpc8xxx.c | 168 uint32_t old_value = s->dat & mask; in mpc8xxx_gpio_set_irq() local 174 if (!(s->icr & irq) || (old_value && !level)) { in mpc8xxx_gpio_set_irq()
|
H A D | pca9554.c | 48 uint8_t old_value = s->regs[PCA9554_INPUT] & bit_mask; in pca9554_update_pin_input() local 72 if (new_value != old_value) { in pca9554_update_pin_input()
|
H A D | pca9552.c | 117 uint8_t old_value = s->regs[input_reg] & bit_mask; in pca955x_update_pin_input() local 146 if (new_value != old_value) { in pca955x_update_pin_input()
|
/openbmc/qemu/hw/display/ |
H A D | exynos4210_fimd.c | 1380 uint32_t old_value; in exynos4210_fimd_write() local 1412 old_value = s->window[w].wincon; in exynos4210_fimd_write() 1439 (!(old_value & FIMD_WINCON_ENWIN) && (s->window[w].wincon & in exynos4210_fimd_write() 1445 old_value = s->shadowcon; in exynos4210_fimd_write() 1448 if (FIMD_WINDOW_PROTECTED(old_value, w) && in exynos4210_fimd_write() 1462 old_value = s->window[w].lefttop_y; in exynos4210_fimd_write() 1467 if (s->window[w].lefttop_y != old_value) { in exynos4210_fimd_write() 1472 old_value = s->window[w].rightbot_y; in exynos4210_fimd_write() 1477 if (s->window[w].rightbot_y != old_value) { in exynos4210_fimd_write() 1553 old_value = s->window[w].winmap; in exynos4210_fimd_write() [all …]
|
/openbmc/linux/drivers/clocksource/ |
H A D | sh_cmt.c | 251 u32 old_value = sh_cmt_read_cmstr(ch); in sh_cmt_write_cmstr() local 253 if (value != old_value) { in sh_cmt_write_cmstr() 271 u32 old_value = sh_cmt_read_cmcsr(ch); in sh_cmt_write_cmcsr() local 273 if (value != old_value) { in sh_cmt_write_cmcsr() 305 u32 old_value = ch->cmt->info->read_count(ch->ioctrl, CMCOR); in sh_cmt_write_cmcor() local 307 if (value != old_value) { in sh_cmt_write_cmcor()
|
/openbmc/linux/drivers/media/usb/gspca/m5602/ |
H A D | m5602_ov7660.c | 453 u8 old_value, ctrl_value; in ov7660_dump_registers() local 456 m5602_read_sensor(sd, address, &old_value, 1); in ov7660_dump_registers() 466 m5602_write_sensor(sd, address, &old_value, 1); in ov7660_dump_registers()
|
H A D | m5602_po1030.c | 608 u8 old_value, ctrl_value; in po1030_dump_registers() local 611 m5602_read_sensor(sd, address, &old_value, 1); in po1030_dump_registers() 621 m5602_write_sensor(sd, address, &old_value, 1); in po1030_dump_registers()
|
H A D | m5602_ov9650.c | 769 u8 old_value, ctrl_value; in ov9650_dump_registers() local 772 m5602_read_sensor(sd, address, &old_value, 1); in ov9650_dump_registers() 782 m5602_write_sensor(sd, address, &old_value, 1); in ov9650_dump_registers()
|
H A D | m5602_s5k4aa.c | 740 u8 old_value, ctrl_value, test_value = 0xff; in s5k4aa_dump_registers() local 742 m5602_read_sensor(sd, address, &old_value, 1); in s5k4aa_dump_registers() 754 m5602_write_sensor(sd, address, &old_value, 1); in s5k4aa_dump_registers()
|
/openbmc/linux/drivers/md/persistent-data/ |
H A D | dm-array.c | 815 void *old_value; in array_set_value() local 832 old_value = element_at(info, ab, entry); in array_set_value() 834 (!vt->equal || !vt->equal(vt->context, old_value, value))) { in array_set_value() 835 vt->dec(vt->context, old_value, 1); in array_set_value() 840 memcpy(old_value, value, info->value_type.size); in array_set_value()
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_ethtool.c | 4204 bool old_value, new_value; in i40e_print_input_set() local 4207 old_value = !!(old & I40E_L3_SRC_MASK); in i40e_print_input_set() 4209 if (old_value != new_value) in i40e_print_input_set() 4211 old_value ? "ON" : "OFF", in i40e_print_input_set() 4214 old_value = !!(old & I40E_L3_DST_MASK); in i40e_print_input_set() 4216 if (old_value != new_value) in i40e_print_input_set() 4218 old_value ? "ON" : "OFF", in i40e_print_input_set() 4221 old_value = !!(old & I40E_L4_SRC_MASK); in i40e_print_input_set() 4223 if (old_value != new_value) in i40e_print_input_set() 4225 old_value ? "ON" : "OFF", in i40e_print_input_set() [all …]
|