| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | intel_gt_pm_irq.c | 36 u32 new_val; in gen6_gt_pm_update_irq() local 42 new_val = gt->pm_imr; in gen6_gt_pm_update_irq() 43 new_val &= ~interrupt_mask; in gen6_gt_pm_update_irq() 44 new_val |= ~enabled_irq_mask & interrupt_mask; in gen6_gt_pm_update_irq() 46 if (new_val != gt->pm_imr) { in gen6_gt_pm_update_irq() 47 gt->pm_imr = new_val; in gen6_gt_pm_update_irq()
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_dcb.c | 1644 u32 new_val; in i40e_dcb_hw_rx_pb_config() local 1655 new_val = new_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() 1659 reg |= FIELD_PREP(I40E_PRTRPB_SLW_SLW_MASK, new_val); in i40e_dcb_hw_rx_pb_config() 1668 new_val = new_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() 1673 new_val); in i40e_dcb_hw_rx_pb_config() 1678 new_val = new_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() 1683 new_val); in i40e_dcb_hw_rx_pb_config() [all …]
|
| /linux/tools/lib/bpf/ |
| H A D | relo_core.c | 906 res->new_val = 0; in bpf_core_calc_relo() 918 &res->new_val, &res->new_sz, in bpf_core_calc_relo() 961 err = err ?: bpf_core_calc_type_relo(relo, targ_spec, &res->new_val, NULL); in bpf_core_calc_relo() 964 err = err ?: bpf_core_calc_enumval_relo(relo, targ_spec, &res->new_val); in bpf_core_calc_relo() 1045 __u64 orig_val, new_val; in bpf_core_patch_insn() local 1062 new_val = res->new_val; in bpf_core_patch_insn() 1073 (unsigned long long)new_val); in bpf_core_patch_insn() 1077 insn->imm = new_val; in bpf_core_patch_insn() 1080 (unsigned long long)orig_val, (unsigned long long)new_val); in bpf_core_patch_insn() 1088 (unsigned long long)new_val); in bpf_core_patch_insn() [all …]
|
| H A D | relo_core.h | 51 __u64 new_val; member
|
| /linux/arch/arm64/include/asm/ |
| H A D | gcs.h | 71 unsigned long new_val) in gcs_check_locked() argument 76 new_val &= task->thread.gcs_el0_locked; in gcs_check_locked() 78 if (cur_val != new_val) in gcs_check_locked() 180 unsigned long new_val) in gcs_check_locked() argument
|
| /linux/drivers/mfd/ |
| H A D | intel_pmc_bxt.c | 109 u32 new_val; in intel_pmc_gcr_update() local 115 new_val = readl(pmc->gcr_mem_base + offset); in intel_pmc_gcr_update() 117 new_val = (new_val & ~mask) | (val & mask); in intel_pmc_gcr_update() 118 writel(new_val, pmc->gcr_mem_base + offset); in intel_pmc_gcr_update() 120 new_val = readl(pmc->gcr_mem_base + offset); in intel_pmc_gcr_update() 124 return (new_val & mask) != (val & mask) ? -EIO : 0; in intel_pmc_gcr_update()
|
| /linux/drivers/gpio/ |
| H A D | gpio-it87.c | 132 u8 new_val = curr_val | mask; in superio_set_mask() local 134 if (curr_val != new_val) in superio_set_mask() 135 superio_outb(new_val, reg); in superio_set_mask() 141 u8 new_val = curr_val & ~mask; in superio_clear_mask() local 143 if (curr_val != new_val) in superio_clear_mask() 144 superio_outb(new_val, reg); in superio_clear_mask()
|
| H A D | gpio-ath79.c | 59 u32 old_val, new_val; in ath79_gpio_update_bits() local 62 new_val = (old_val & ~mask) | (bits & mask); in ath79_gpio_update_bits() 64 if (new_val != old_val) in ath79_gpio_update_bits() 65 ath79_gpio_write(ctrl, reg, new_val); in ath79_gpio_update_bits() 67 return new_val != old_val; in ath79_gpio_update_bits()
|
| /linux/drivers/pinctrl/freescale/ |
| H A D | pinctrl-imx1-core.c | 95 u32 new_val; in imx1_write_2bit() local 108 new_val = value & 0x3; /* Make sure value is really 2 bit */ in imx1_write_2bit() 109 new_val <<= offset; in imx1_write_2bit() 110 new_val |= old_val;/* Set new state for pin_id */ in imx1_write_2bit() 112 writel(new_val, reg); in imx1_write_2bit() 122 u32 new_val; in imx1_write_bit() local 128 new_val = value & 0x1; /* Make sure value is really 1 bit */ in imx1_write_bit() 129 new_val <<= offset; in imx1_write_bit() 130 new_val |= old_val;/* Set new state for pin_id */ in imx1_write_bit() 132 writel(new_val, reg); in imx1_write_bit()
|
| /linux/drivers/ata/ |
| H A D | ahci_st.c | 40 unsigned long old_val, new_val; in st_ahci_configure_oob() local 42 new_val = (0x02 << ST_AHCI_OOBR_CWMIN_SHIFT) | in st_ahci_configure_oob() 49 writel(new_val | ST_AHCI_OOBR_WE, mmio + ST_AHCI_OOBR); in st_ahci_configure_oob() 50 writel(new_val, 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 352 master->val = new_val; in sync_followers() 362 int err, new_val, old_val; in master_put() local 370 new_val = ucontrol->value.integer.value[0]; in master_put() 371 if (new_val == old_val) in master_put() 373 if (new_val < master->info.min_val || new_val > master->info.max_val) in master_put() 376 err = sync_followers(master, old_val, new_val); in master_put()
|
| /linux/arch/loongarch/mm/ |
| H A D | pageattr.c | 19 unsigned long new_val = val; in set_pageattr_masks() local 22 new_val &= ~(pgprot_val(masks->clear_mask)); in set_pageattr_masks() 23 new_val |= (pgprot_val(masks->set_mask)); in set_pageattr_masks() 25 return new_val; in set_pageattr_masks()
|
| /linux/arch/x86/include/asm/xen/ |
| H A D | hypercall.h | 310 HYPERVISOR_update_va_mapping(unsigned long va, pte_t new_val, in HYPERVISOR_update_va_mapping() argument 313 return _hypercall3(int, update_va_mapping, va, new_val.pte, flags); in HYPERVISOR_update_va_mapping() 333 pte_t new_val, unsigned long flags) in MULTI_update_va_mapping() argument 337 mcl->args[1] = new_val.pte; in MULTI_update_va_mapping()
|
| /linux/drivers/xen/xen-pciback/ |
| H A D | conf_space.c | 115 static inline u32 merge_value(u32 val, u32 new_val, u32 new_val_mask, in merge_value() argument 120 new_val <<= (offset * 8); in merge_value() 123 new_val >>= (offset * -8); in merge_value() 125 val = (val & ~new_val_mask) | (new_val & new_val_mask); in merge_value()
|
| /linux/tools/hv/ |
| H A D | hv_kvp_daemon.c | 1435 static int kvp_set_ip_info(char *if_name, struct hv_kvp_ipaddr_value *new_val) in kvp_set_ip_info() argument 1590 if (new_val->dhcp_enabled) { in kvp_set_ip_info() 1600 error = process_ip_string(ifcfg_file, (char *)new_val->ip_addr, in kvp_set_ip_info() 1605 error = process_ip_string(ifcfg_file, (char *)new_val->sub_net, in kvp_set_ip_info() 1610 error = process_ip_string(ifcfg_file, (char *)new_val->gate_way, in kvp_set_ip_info() 1615 error = process_ip_string(ifcfg_file, (char *)new_val->dns_addr, DNS); in kvp_set_ip_info() 1642 error = process_ip_string_nm(nmfile, (char *)new_val->ip_addr, in kvp_set_ip_info() 1643 (char *)new_val->sub_net, in kvp_set_ip_info() 1662 if (new_val->dhcp_enabled) { in kvp_set_ip_info() 1693 (char *)new_val->gate_way, in kvp_set_ip_info() [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/drivers/iio/light/ |
| H A D | ltr501.c | 466 int ret, samp_period, new_val; in ltr501_write_intr_prst() local 485 new_val = DIV_ROUND_UP(period, samp_period); in ltr501_write_intr_prst() 486 if (new_val < 0 || new_val > 0x0f) in ltr501_write_intr_prst() 490 ret = regmap_field_write(data->reg_als_prst, new_val); in ltr501_write_intr_prst() 505 new_val = DIV_ROUND_UP(period, samp_period); in ltr501_write_intr_prst() 506 if (new_val < 0 || new_val > 0x0f) in ltr501_write_intr_prst() 510 ret = regmap_field_write(data->reg_ps_prst, new_val); in ltr501_write_intr_prst()
|
| /linux/drivers/net/ethernet/qualcomm/emac/ |
| H A D | emac-mac.h | 43 #define BITS_SET(val, lo, hi, new_val) \ argument 45 (((new_val) << (lo)) & GENMASK((hi), (lo))))
|
| /linux/tools/power/acpi/os_specific/service_layers/ |
| H A D | osunixxf.c | 202 * new_val - The new value for the object 213 acpi_string *new_val) in acpi_os_predefined_override() argument 216 if (!init_val || !new_val) { in acpi_os_predefined_override() 220 *new_val = NULL; in acpi_os_predefined_override()
|
| /linux/drivers/iio/adc/ |
| H A D | ti-ads131m02.c | 380 u16 old_val, new_val; in ads131m_rmw_reg() local 389 new_val = (old_val & ~clear) | set; in ads131m_rmw_reg() 390 if (new_val == old_val) in ads131m_rmw_reg() 393 return ads131m_write_reg_unlocked(priv, reg, new_val); in ads131m_rmw_reg()
|
| /linux/tools/perf/util/ |
| H A D | evsel.c | 3295 u64 new_val = 0; in evsel__parse_sample() 3321 new_val = bitfield_swap(value, 0, 1); in evsel__parse_sample() 3322 new_val |= bitfield_swap(value, 1, 1); in evsel__parse_sample() 3323 new_val |= bitfield_swap(value, 2, 1); in evsel__parse_sample() 3324 new_val |= bitfield_swap(value, 3, 1); in evsel__parse_sample() 3325 new_val |= bitfield_swap(value, 4, 16); in evsel__parse_sample() 3326 new_val |= bitfield_swap(value, 20, 4); in evsel__parse_sample() 3327 new_val |= bitfield_swap(value, 24, 2); in evsel__parse_sample() 3328 new_val |= bitfield_swap(value, 26, 4); in evsel__parse_sample() 3329 new_val | in evsel__parse_sample() 3106 u64 new_val = 0; evsel__bitfield_swap_branch_flags() local [all...] |
| /linux/net/ethtool/ |
| H A D | bitset.c | 488 bool old_val, new_val; in ethnl_update_bitset32_verbose() local 497 ret = ethnl_parse_bit(&idx, &new_val, nbits, bit_attr, no_mask, in ethnl_update_bitset32_verbose() 504 if (new_val != old_val) { in ethnl_update_bitset32_verbose() 505 if (new_val) in ethnl_update_bitset32_verbose()
|
| /linux/drivers/w1/masters/ |
| H A D | omap_hdq.c | 75 u8 new_val = (__raw_readl(hdq_data->hdq_base + offset) & ~mask) in hdq_reg_merge() local 77 __raw_writel(new_val, hdq_data->hdq_base + offset); in hdq_reg_merge() 79 return new_val; in hdq_reg_merge()
|
| /linux/sound/usb/ |
| H A D | mixer_quirks.c | 977 bool cur_val, new_val; in snd_mbox1_clk_switch_put() local 980 new_val = ucontrol->value.enumerated.item[0]; in snd_mbox1_clk_switch_put() 981 if (cur_val == new_val) in snd_mbox1_clk_switch_put() 984 kctl->private_value = new_val; in snd_mbox1_clk_switch_put() 985 err = snd_mbox1_clk_switch_update(mixer, new_val); in snd_mbox1_clk_switch_put() 1044 bool cur_val, new_val; in snd_mbox1_src_switch_put() local 1047 new_val = ucontrol->value.enumerated.item[0]; in snd_mbox1_src_switch_put() 1048 if (cur_val == new_val) in snd_mbox1_src_switch_put() 1051 kctl->private_value = new_val; in snd_mbox1_src_switch_put() 1052 err = snd_mbox1_src_switch_update(mixer, new_val); in snd_mbox1_src_switch_put() [all …]
|
| /linux/tools/testing/selftests/kvm/arm64/ |
| H A D | set_id_regs.c | 390 u64 val, new_val, ftr; in test_reg_set_success() local 402 new_val = vcpu_get_reg(vcpu, reg); in test_reg_set_success() 403 TEST_ASSERT_EQ(new_val, val); in test_reg_set_success() 405 return new_val; in test_reg_set_success()
|