| /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/gpu/drm/i915/gvt/ |
| H A D | trace.h | 277 unsigned int old_val, bool changed), 279 TP_ARGS(id, reg_name, reg, new_val, old_val, changed), 286 __field(unsigned int, old_val) 295 __entry->old_val = old_val; 301 __entry->old_val, __entry->changed) 348 unsigned int old_val, unsigned int new_val), 350 TP_ARGS(old_id, new_id, action, reg, old_val, new_val), 357 __field(unsigned int, old_val) 366 __entry->old_val = old_val; 373 __entry->old_val, __entry->new_val)
|
| /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/tools/testing/selftests/bpf/prog_tests/ |
| H A D | unpriv_bpf_disabled.c | 39 static int sysctl_set(const char *sysctl_path, char *old_val, const char *new_val) in sysctl_set() argument 47 if (old_val && fscanf(fp, "%s", old_val) <= 0) { in sysctl_set() 49 } else if (!old_val || strcmp(old_val, new_val) != 0) { in sysctl_set()
|
| /linux/drivers/pinctrl/freescale/ |
| H A D | pinctrl-imx1-core.c | 94 u32 old_val; in imx1_write_2bit() local 105 old_val = readl(reg); in imx1_write_2bit() 106 old_val &= mask; in imx1_write_2bit() 110 new_val |= old_val;/* Set new state for pin_id */ in imx1_write_2bit() 121 u32 old_val; in imx1_write_bit() local 125 old_val = readl(reg); in imx1_write_bit() 126 old_val &= mask; in imx1_write_bit() 130 new_val |= old_val;/* Set new state for pin_id */ in imx1_write_bit()
|
| /linux/kernel/sched/ |
| H A D | clock.c | 328 u64 *ptr, old_val, val; in sched_clock_remote() local 369 old_val = remote_clock; in sched_clock_remote() 376 old_val = this_clock; in sched_clock_remote() 380 if (!try_cmpxchg64(ptr, &old_val, val)) in sched_clock_remote()
|
| /linux/drivers/scsi/qla2xxx/ |
| H A D | qla_inline.h | 110 int old_val; in qla2x00_set_fcport_disc_state() local 121 old_val = atomic_read(&fcport->shadow_disc_state); in qla2x00_set_fcport_disc_state() 122 if (old_val == atomic_cmpxchg(&fcport->shadow_disc_state, in qla2x00_set_fcport_disc_state() 123 old_val, (old_val << shiftbits) | state)) { in qla2x00_set_fcport_disc_state() 126 fcport->port_name, (old_val & mask) < port_dstate_str_sz ? in qla2x00_set_fcport_disc_state() 127 port_dstate_str[old_val & mask] : "Unknown", in qla2x00_set_fcport_disc_state()
|
| /linux/sound/core/ |
| H A D | vmaster.c | 341 static int sync_followers(struct link_master *master, int old_val, int new_val) in sync_followers() argument 350 master->val = old_val; in sync_followers() 363 int err, new_val, old_val; in master_put() local 370 old_val = master->val; in master_put() 372 if (new_val == old_val) in master_put() 377 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 | 345 unsigned long old_val; in aia_rmw_iprio() local 356 old_val = 0; in aia_rmw_iprio() 359 old_val |= (unsigned long)prio << (TOPI_IPRIO_BITS * i); in aia_rmw_iprio() 363 *val = old_val; in aia_rmw_iprio() 366 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/net/ethernet/stmicro/stmmac/ |
| H A D | dwmac5.c | 439 u32 old_val, val; in dwmac5_rxp_config() local 442 old_val = readl(ioaddr + GMAC_CONFIG); in dwmac5_rxp_config() 443 val = old_val & ~GMAC_CONFIG_RE; in dwmac5_rxp_config() 516 writel(old_val, ioaddr + GMAC_CONFIG); in dwmac5_rxp_config()
|
| /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()
|
| H A D | solo6x10-tw28.c | 847 u8 old_val; in tw28_set_audio_gain() local 854 old_val = tw_readbyte(solo_dev, chip_num, in tw28_set_audio_gain() 858 val = (old_val & ((ch % 2) ? 0x0f : 0xf0)) | in tw28_set_audio_gain()
|
| /linux/tools/include/nolibc/ |
| H A D | stdlib.h | 444 uintmax_t val = 0, limit, old_val; in __strtox() local 494 old_val = val; in __strtox() 498 if (val > limit || val < old_val) in __strtox()
|
| /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/drivers/gpu/drm/ |
| H A D | drm_atomic_uapi.c | 1141 static int drm_atomic_check_prop_changes(int ret, uint64_t old_val, uint64_t prop_value, in drm_atomic_check_prop_changes() argument 1144 if (ret != 0 || old_val != prop_value) { in drm_atomic_check_prop_changes() 1162 u64 old_val; in drm_atomic_set_property() local 1181 prop, &old_val); in drm_atomic_set_property() 1182 ret = drm_atomic_check_prop_changes(ret, old_val, prop_value, prop); in drm_atomic_set_property() 1203 prop, &old_val); in drm_atomic_set_property() 1204 ret = drm_atomic_check_prop_changes(ret, old_val, prop_value, prop); in drm_atomic_set_property() 1227 prop, &old_val); in drm_atomic_set_property() 1228 ret = drm_atomic_check_prop_changes(ret, old_val, prop_value, prop); in drm_atomic_set_property()
|
| /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 | 692 int old_val; in reg_set() local 694 old_val = reg_read(priv, reg); in reg_set() 695 if (old_val >= 0) in reg_set() 696 reg_write(priv, reg, old_val | val); in reg_set() 702 int old_val; in reg_clear() local 704 old_val = reg_read(priv, reg); in reg_clear() 705 if (old_val >= 0) in reg_clear() 706 reg_write(priv, reg, old_val & ~val); in reg_clear()
|
| /linux/arch/x86/kvm/mmu/ |
| H A D | mmu.c | 886 unsigned long old_val, new_val; in __kvm_rmap_lock() local 896 old_val = atomic_long_read(&rmap_head->val); in __kvm_rmap_lock() 897 if (!old_val) in __kvm_rmap_lock() 906 while (old_val & KVM_RMAP_LOCKED) { in __kvm_rmap_lock() 908 old_val = atomic_long_read(&rmap_head->val); in __kvm_rmap_lock() 915 if (!old_val) in __kvm_rmap_lock() 918 new_val = old_val | KVM_RMAP_LOCKED; in __kvm_rmap_lock() 929 } while (!atomic_long_try_cmpxchg_acquire(&rmap_head->val, &old_val, new_val)); in __kvm_rmap_lock() 936 return old_val; in __kvm_rmap_lock() 993 unsigned long old_val) in kvm_rmap_unlock_readonly() argument [all …]
|