| /linux/tools/testing/selftests/futex/functional/ |
| H A D | futex_requeue_pi_signal_restart.c | 78 unsigned int old_val; in waiterfn() local 83 old_val = f1; in waiterfn() 84 res = futex_wait_requeue_pi(&f1, old_val, &(f2), NULL, in waiterfn() 100 unsigned int old_val; in TEST() local 133 old_val = f1; in TEST() 134 res = futex_cmp_requeue_pi(&f1, old_val, &(f2), 1, 0, in TEST()
|
| H A D | futex_requeue_pi.c | 162 futex_t old_val; in waiterfn() local 170 old_val = f1; in waiterfn() 174 args->ret = futex_wait_requeue_pi(&f1, old_val, &f2, args->timeout, in waiterfn() 199 futex_t old_val; in broadcast_wakerfn() local 214 old_val = f1; in broadcast_wakerfn() 215 args->ret = futex_cmp_requeue_pi(&f1, old_val, &f2, nr_wake, nr_requeue, in broadcast_wakerfn() 243 unsigned int old_val; in signal_wakerfn() local 264 old_val = f1; in signal_wakerfn() 265 args->ret = futex_cmp_requeue_pi(&f1, old_val, &f2, in signal_wakerfn()
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_dcb.c | 1643 u32 old_val; in i40e_dcb_hw_rx_pb_config() local 1654 old_val = old_pb_cfg->shared_pool_low_wm; in i40e_dcb_hw_rx_pb_config() 1656 if (new_val < old_val) { in i40e_dcb_hw_rx_pb_config() 1667 old_val = old_pb_cfg->shared_pool_low_thresh[i]; in i40e_dcb_hw_rx_pb_config() 1669 if (new_val < old_val) { in i40e_dcb_hw_rx_pb_config() 1677 old_val = old_pb_cfg->tc_pool_low_wm[i]; in i40e_dcb_hw_rx_pb_config() 1679 if (new_val < old_val) { in i40e_dcb_hw_rx_pb_config() 1689 old_val = old_pb_cfg->shared_pool_high_wm; in i40e_dcb_hw_rx_pb_config() 1691 if (new_val < old_val) { in i40e_dcb_hw_rx_pb_config() 1702 old_val = old_pb_cfg->shared_pool_high_thresh[i]; in i40e_dcb_hw_rx_pb_config() [all …]
|
| /linux/drivers/macintosh/ |
| H A D | mac_hid.c | 190 int old_val; in mac_hid_toggle_emumouse() local 197 old_val = *valp; in mac_hid_toggle_emumouse() 200 if (rc == 0 && write && *valp != old_val) { in mac_hid_toggle_emumouse() 211 *valp = old_val; in mac_hid_toggle_emumouse()
|
| /linux/drivers/net/ethernet/freescale/enetc/ |
| H A D | enetc4_pf.c | 671 u32 old_val, val; in enetc4_set_rgmii_mac() local 673 old_val = enetc_port_mac_rd(si, ENETC4_PM_IF_MODE(0)); in enetc4_set_rgmii_mac() 674 val = old_val & ~(PM_IF_MODE_ENA | PM_IF_MODE_M10 | PM_IF_MODE_REVMII); in enetc4_set_rgmii_mac() 690 if (val == old_val) in enetc4_set_rgmii_mac() 699 u32 old_val, val; in enetc4_set_rmii_mac() local 701 old_val = enetc_port_mac_rd(si, ENETC4_PM_IF_MODE(0)); in enetc4_set_rmii_mac() 702 val = old_val & ~(PM_IF_MODE_ENA | PM_IF_MODE_SSP); in enetc4_set_rmii_mac() 715 if (val == old_val) in enetc4_set_rmii_mac() 724 u32 old_val, val; in enetc4_set_hd_flow_control() local 729 old_val = enetc_port_mac_rd(si, ENETC4_PM_CMD_CFG(0)); in enetc4_set_hd_flow_control() [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | unpriv_bpf_disabled.c | 39 sysctl_set(const char * sysctl_path,char * old_val,const char * new_val) sysctl_set() argument
|
| /linux/sound/core/ |
| H A D | vmaster.c | 340 static int sync_followers(struct link_master *master, int old_val, int new_val) in sync_followers() argument 349 master->val = old_val; in sync_followers() 362 int err, new_val, old_val; in master_put() local 369 old_val = master->val; in master_put() 371 if (new_val == old_val) in master_put() 376 err = sync_followers(master, old_val, new_val); in master_put()
|
| /linux/drivers/ata/ |
| H A D | ahci_st.c | 40 unsigned long old_val, new_val; in st_ahci_configure_oob() local 47 old_val = readl(mmio + ST_AHCI_OOBR); in st_ahci_configure_oob() 48 writel(old_val | ST_AHCI_OOBR_WE, mmio + ST_AHCI_OOBR); in st_ahci_configure_oob()
|
| /linux/drivers/mfd/ |
| H A D | aat2870-core.c | 179 u8 old_val, new_val; in aat2870_update() local 184 ret = __aat2870_read(aat2870, addr, &old_val); in aat2870_update() 188 new_val = (old_val & ~mask) | (val & mask); in aat2870_update() 189 change = old_val != new_val; in aat2870_update()
|
| /linux/arch/riscv/kvm/ |
| H A D | aia.c | 356 unsigned long old_val; in aia_rmw_iprio() local 367 old_val = 0; in aia_rmw_iprio() 370 old_val |= (unsigned long)prio << (TOPI_IPRIO_BITS * i); in aia_rmw_iprio() 374 *val = old_val; in aia_rmw_iprio() 377 new_val = (old_val & ~wr_mask) | (new_val & wr_mask); in aia_rmw_iprio()
|
| H A D | aia_imsic.c | 221 unsigned long old_val = 0, tmp = 0; in imsic_mrif_atomic_rmw() local 229 : "+A" (*ptr), "+r" (old_val), "+r" (tmp) in imsic_mrif_atomic_rmw() 233 return old_val; in imsic_mrif_atomic_rmw() 316 unsigned long *ei, num, old_val = 0; in imsic_mrif_rmw() local 320 old_val = imsic_mrif_atomic_rmw(mrif, &mrif->eidelivery, in imsic_mrif_rmw() 324 old_val = imsic_mrif_atomic_rmw(mrif, &mrif->eithreshold, in imsic_mrif_rmw() 353 old_val = imsic_mrif_atomic_rmw(mrif, ei, new_val, wr_mask); in imsic_mrif_rmw() 360 *val = old_val; in imsic_mrif_rmw()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | atom.c | 458 atom_dst_to_src[(attr >> 3) & 7][(attr >> 6) & 3], old_val = in atom_put_dst() local 461 old_val &= atom_arg_mask[align] >> atom_arg_shift[align]; in atom_put_dst() 572 DEBUG(".[31:0] <- 0x%08X\n", old_val); in atom_put_dst() 575 DEBUG(".[15:0] <- 0x%04X\n", old_val); in atom_put_dst() 578 DEBUG(".[23:8] <- 0x%04X\n", old_val); in atom_put_dst() 581 DEBUG(".[31:16] <- 0x%04X\n", old_val); in atom_put_dst() 584 DEBUG(".[7:0] <- 0x%02X\n", old_val); in atom_put_dst() 587 DEBUG(".[15:8] <- 0x%02X\n", old_val); in atom_put_dst() 590 DEBUG(".[23:16] <- 0x%02X\n", old_val); in atom_put_dst() 593 DEBUG(".[31:24] <- 0x%02X\n", old_val); in atom_put_dst()
|
| /linux/drivers/media/pci/solo6x10/ |
| H A D | solo6x10-g723.c | 271 u8 old_val; in snd_solo_capture_volume_put() local 273 old_val = tw28_get_audio_gain(solo_dev, ch); in snd_solo_capture_volume_put() 274 if (old_val == value->value.integer.value[0]) in snd_solo_capture_volume_put()
|
| /linux/tools/include/nolibc/ |
| H A D | stdlib.h | 439 uintmax_t val = 0, limit, old_val; 489 old_val = val; in __strtox() 493 if (val > limit || val < old_val) in __strtox() 444 uintmax_t val = 0, limit, old_val; __strtox() local
|
| /linux/tools/perf/util/ |
| H A D | expr.c | 282 struct expr_id_data *old_val = NULL; in expr__del_id() local 285 hashmap__delete(ctx->ids, id, &old_key, &old_val); in expr__del_id() 287 free(old_val); in expr__del_id()
|
| /linux/sound/i2c/other/ |
| H A D | ak4117.c | 192 u8 old_val; in snd_ak4117_rx_put() local 195 old_val = chip->regmap[AK4117_REG_IO]; in snd_ak4117_rx_put() 196 change = !!ucontrol->value.integer.value[0] != ((old_val & AK4117_IPS) ? 1 : 0); in snd_ak4117_rx_put() 198 …reg_write(chip, AK4117_REG_IO, (old_val & ~AK4117_IPS) | (ucontrol->value.integer.value[0] ? AK411… in snd_ak4117_rx_put()
|
| H A D | ak4113.c | 235 u8 old_val; in snd_ak4113_rx_put() local 238 old_val = chip->regmap[AK4113_REG_IO1]; in snd_ak4113_rx_put() 239 change = ucontrol->value.integer.value[0] != AK4113_IPS(old_val); in snd_ak4113_rx_put() 242 (old_val & (~AK4113_IPS(0xff))) | in snd_ak4113_rx_put()
|
| /linux/drivers/media/usb/gspca/m5602/ |
| H A D | m5602_s5k83a.c | 557 u8 old_val, ctrl_val, test_val = 0xff; in s5k83a_dump_registers() local 559 m5602_read_sensor(sd, address, &old_val, 1); in s5k83a_dump_registers() 571 m5602_write_sensor(sd, address, &old_val, 1); in s5k83a_dump_registers()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | crypto.c | 431 bool old_val; in mlx5_crypto_dek_free_locked() local 435 old_val = test_and_clear_bit(obj_offset, bulk->in_use); in mlx5_crypto_dek_free_locked() 436 WARN_ON_ONCE(!old_val); in mlx5_crypto_dek_free_locked() 437 if (!old_val) { in mlx5_crypto_dek_free_locked()
|
| /linux/drivers/gpu/drm/bridge/ |
| H A D | tda998x_drv.c | 691 int old_val; in reg_set() local 693 old_val = reg_read(priv, reg); in reg_set() 694 if (old_val >= 0) in reg_set() 695 reg_write(priv, reg, old_val | val); in reg_set() 701 int old_val; in reg_clear() local 703 old_val = reg_read(priv, reg); in reg_clear() 704 if (old_val >= 0) in reg_clear() 705 reg_write(priv, reg, old_val & ~val); in reg_clear()
|
| /linux/arch/x86/kvm/mmu/ |
| H A D | mmu.c | 888 unsigned long old_val, new_val; in __kvm_rmap_lock() local 898 old_val = atomic_long_read(&rmap_head->val); in __kvm_rmap_lock() 899 if (!old_val) in __kvm_rmap_lock() 908 while (old_val & KVM_RMAP_LOCKED) { in __kvm_rmap_lock() 910 old_val = atomic_long_read(&rmap_head->val); in __kvm_rmap_lock() 917 if (!old_val) in __kvm_rmap_lock() 920 new_val = old_val | KVM_RMAP_LOCKED; in __kvm_rmap_lock() 931 } while (!atomic_long_try_cmpxchg_acquire(&rmap_head->val, &old_val, new_val)); in __kvm_rmap_lock() 938 return old_val; in __kvm_rmap_lock() 995 unsigned long old_val) in kvm_rmap_unlock_readonly() argument [all …]
|
| /linux/lib/ |
| H A D | ubsan.c | 289 void __ubsan_handle_negate_overflow(void *_data, void *old_val) in __ubsan_handle_negate_overflow() argument 299 val_to_string(old_val_str, sizeof(old_val_str), data->type, old_val); in __ubsan_handle_negate_overflow()
|
| /linux/arch/x86/kvm/ |
| H A D | ioapic.c | 93 bool new_val, old_val; in __rtc_irq_eoi_tracking_restore_one() local 105 old_val = test_bit(vcpu->vcpu_id, status->map); in __rtc_irq_eoi_tracking_restore_one() 107 if (new_val == old_val) in __rtc_irq_eoi_tracking_restore_one()
|
| /linux/net/ethtool/ |
| H A D | bitset.c | 488 bool old_val, new_val; in ethnl_update_bitset32_verbose() local 503 old_val = bitmap[idx / 32] & ((u32)1 << (idx % 32)); in ethnl_update_bitset32_verbose() 504 if (new_val != old_val) { in ethnl_update_bitset32_verbose()
|
| /linux/fs/btrfs/ |
| H A D | block-group.c | 1896 const u64 old_val = new_val + bytes_freed; in should_reclaim_block_group() local 1905 if (old_val < thresh_bytes) in should_reclaim_block_group() 3845 u64 old_val; in btrfs_update_block_group() local 3852 old_val = btrfs_super_bytes_used(info->super_copy); in btrfs_update_block_group() 3854 old_val += num_bytes; in btrfs_update_block_group() 3856 old_val -= num_bytes; in btrfs_update_block_group() 3857 btrfs_set_super_bytes_used(info->super_copy, old_val); in btrfs_update_block_group() 3886 old_val = cache->used; in btrfs_update_block_group() 3888 old_val += num_bytes; in btrfs_update_block_group() 3889 cache->used = old_val; in btrfs_update_block_group() [all …]
|