| /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/net/ethernet/freescale/enetc/ |
| H A D | enetc4_pf.c | 680 u32 old_val, val; in enetc4_set_rgmii_mac() local 682 old_val = enetc_port_mac_rd(si, ENETC4_PM_IF_MODE(0)); in enetc4_set_rgmii_mac() 683 val = old_val & ~(PM_IF_MODE_ENA | PM_IF_MODE_M10 | PM_IF_MODE_REVMII); in enetc4_set_rgmii_mac() 699 if (val == old_val) in enetc4_set_rgmii_mac() 708 u32 old_val, val; in enetc4_set_rmii_mac() local 710 old_val = enetc_port_mac_rd(si, ENETC4_PM_IF_MODE(0)); in enetc4_set_rmii_mac() 711 val = old_val & ~(PM_IF_MODE_ENA | PM_IF_MODE_SSP); in enetc4_set_rmii_mac() 724 if (val == old_val) in enetc4_set_rmii_mac() 733 u32 old_val, val; in enetc4_set_hd_flow_control() local 738 old_val = enetc_port_mac_rd(si, ENETC4_PM_CMD_CFG(0)); in enetc4_set_hd_flow_control() [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 | 331 u64 *ptr, old_val, val; in sched_clock_remote() 372 old_val = remote_clock; in sched_clock_remote() 379 old_val = this_clock; in sched_clock_remote() 383 if (!try_cmpxchg64(ptr, &old_val, val)) in sched_clock_remote() 328 u64 *ptr, old_val, val; sched_clock_remote() local
|
| /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 | 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/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/arch/riscv/kvm/ |
| 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/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 | 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/amd/amdgpu/ |
| H A D | atom.c | 459 atom_dst_to_src[(attr >> 3) & 7][(attr >> 6) & 3], old_val = in atom_put_dst() local 462 old_val &= atom_arg_mask[align] >> atom_arg_shift[align]; in atom_put_dst() 573 DEBUG(".[31:0] <- 0x%08X\n", old_val); in atom_put_dst() 576 DEBUG(".[15:0] <- 0x%04X\n", old_val); in atom_put_dst() 579 DEBUG(".[23:8] <- 0x%04X\n", old_val); in atom_put_dst() 582 DEBUG(".[31:16] <- 0x%04X\n", old_val); in atom_put_dst() 585 DEBUG(".[7:0] <- 0x%02X\n", old_val); in atom_put_dst() 588 DEBUG(".[15:8] <- 0x%02X\n", old_val); in atom_put_dst() 591 DEBUG(".[23:16] <- 0x%02X\n", old_val); in atom_put_dst() 594 DEBUG(".[31:24] <- 0x%02X\n", old_val); in atom_put_dst()
|
| /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/gpu/drm/ |
| H A D | drm_atomic_uapi.c | 1157 static int drm_atomic_check_prop_changes(int ret, uint64_t old_val, uint64_t prop_value, in drm_atomic_check_prop_changes() argument 1160 if (ret != 0 || old_val != prop_value) { in drm_atomic_check_prop_changes() 1178 u64 old_val; in drm_atomic_set_property() local 1197 prop, &old_val); in drm_atomic_set_property() 1198 ret = drm_atomic_check_prop_changes(ret, old_val, prop_value, prop); in drm_atomic_set_property() 1219 prop, &old_val); in drm_atomic_set_property() 1220 ret = drm_atomic_check_prop_changes(ret, old_val, prop_value, prop); in drm_atomic_set_property() 1243 prop, &old_val); in drm_atomic_set_property() 1244 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/input/ |
| H A D | input.c | 71 static int input_defuzz_abs_event(int value, int old_val, int fuzz) in input_defuzz_abs_event() argument 74 if (value > old_val - fuzz / 2 && value < old_val + fuzz / 2) in input_defuzz_abs_event() 75 return old_val; in input_defuzz_abs_event() 77 if (value > old_val - fuzz && value < old_val + fuzz) in input_defuzz_abs_event() 78 return (old_val * 3 + value) / 4; in input_defuzz_abs_event() 80 if (value > old_val - fuzz * 2 && value < old_val + fuzz * 2) in input_defuzz_abs_event() 81 return (old_val + value) / 2; in input_defuzz_abs_event()
|
| /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()
|