| /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() 101 unsigned int old_val; in TEST() 132 old_val = f1; in TEST() 133 res = futex_cmp_requeue_pi(&f1, old_val, &(f2), 1, 0, in TEST() 100 unsigned int old_val; TEST() local
|
| H A D | futex_requeue_pi.c | 157 futex_t old_val; 166 old_val = f1; in waiterfn() 169 args->ret = futex_wait_requeue_pi(&f1, old_val, &f2, args->timeout, in waiterfn() 196 futex_t old_val; in broadcast_wakerfn() 211 old_val = f1; in broadcast_wakerfn() 212 args->ret = futex_cmp_requeue_pi(&f1, old_val, &f2, nr_wake, nr_requeue, in broadcast_wakerfn() 244 unsigned int old_val; in signal_wakerfn() 264 old_val = f1; in signal_wakerfn() 265 args->ret = futex_cmp_requeue_pi(&f1, old_val, &f2, in signal_wakerfn() 162 futex_t old_val; waiterfn() local 199 futex_t old_val; broadcast_wakerfn() local 243 unsigned int old_val; signal_wakerfn() local
|
| /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/gpio/ |
| H A D | gpio-ath79.c | 59 u32 old_val, new_val; in ath79_gpio_update_bits() local 61 old_val = ath79_gpio_read(ctrl, reg); in ath79_gpio_update_bits() 62 new_val = (old_val & ~mask) | (bits & mask); in ath79_gpio_update_bits() 64 if (new_val != old_val) in ath79_gpio_update_bits() 67 return new_val != old_val; in ath79_gpio_update_bits()
|
| /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/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/drivers/net/ethernet/freescale/enetc/ |
| H A D | enetc4_pf.c | 658 u32 old_val, val; in enetc4_set_rgmii_mac() local 660 old_val = enetc_port_mac_rd(si, ENETC4_PM_IF_MODE(0)); in enetc4_set_rgmii_mac() 661 val = old_val & ~(PM_IF_MODE_ENA | PM_IF_MODE_M10 | PM_IF_MODE_REVMII); in enetc4_set_rgmii_mac() 677 if (val == old_val) in enetc4_set_rgmii_mac() 686 u32 old_val, val; in enetc4_set_rmii_mac() local 688 old_val = enetc_port_mac_rd(si, ENETC4_PM_IF_MODE(0)); in enetc4_set_rmii_mac() 689 val = old_val & ~(PM_IF_MODE_ENA | PM_IF_MODE_SSP); in enetc4_set_rmii_mac() 702 if (val == old_val) in enetc4_set_rmii_mac() 711 u32 old_val, val; in enetc4_set_rx_pause() local 713 old_val = enetc_port_mac_rd(si, ENETC4_PM_CMD_CFG(0)); in enetc4_set_rx_pause() [all …]
|
| /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/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/sound/soc/sophgo/ |
| H A D | cv1800b-sound-adc.c | 254 u32 val, old_val; in cv1800b_adc_volume_set() local 257 old_val = val; in cv1800b_adc_volume_set() 264 if (val == old_val) in cv1800b_adc_volume_set()
|
| /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/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/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 | 292 struct expr_id_data *old_val = NULL; in expr__ctx_new() 295 hashmap__delete(ctx->ids, id, &old_key, &old_val); in expr__ctx_new() 297 free(old_val); in expr__ctx_new() 282 struct expr_id_data *old_val = NULL; expr__del_id() local
|
| /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/iio/adc/ |
| H A D | ti-ads131m02.c | 380 u16 old_val, new_val; in ads131m_rmw_reg() local 385 ret = ads131m_read_reg_unlocked(priv, reg, &old_val); in ads131m_rmw_reg() 389 new_val = (old_val & ~clear) | set; in ads131m_rmw_reg() 390 if (new_val == old_val) in ads131m_rmw_reg()
|
| /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/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/hwmon/ |
| H A D | pwm-fan.c | 267 int old_val; in pwm_fan_update_enable() local 274 old_val = ctx->enable_mode; in pwm_fan_update_enable() 284 ctx->enable_mode = old_val; in pwm_fan_update_enable()
|
| /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/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 | 1924 const u64 old_val = new_val + bytes_freed; in should_reclaim_block_group() local 1933 if (old_val < thresh_bytes) in should_reclaim_block_group() 3878 u64 old_val; in btrfs_update_block_group() local 3885 old_val = btrfs_super_bytes_used(info->super_copy); in btrfs_update_block_group() 3887 old_val += num_bytes; in btrfs_update_block_group() 3889 old_val -= num_bytes; in btrfs_update_block_group() 3890 btrfs_set_super_bytes_used(info->super_copy, old_val); in btrfs_update_block_group() 3919 old_val = cache->used; in btrfs_update_block_group() 3921 old_val += num_bytes; in btrfs_update_block_group() 3922 cache->used = old_val; in btrfs_update_block_group() [all …]
|