Home
last modified time | relevance | path

Searched refs:new_val (Results 1 – 25 of 86) sorted by relevance

1234

/Linux-v6.6/arch/arm/include/asm/
Dfloppy.h14 int new_val = (val); \
16 if (new_val & 0xf0) \
17 new_val = (new_val & 0x0c) | \
18 floppy_selects[new_val & 3]; \
20 new_val &= 0x0c; \
22 outb(new_val, (base) + (reg)); \
/Linux-v6.6/drivers/gpu/drm/i915/gt/
Dintel_gt_pm_irq.c36 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-v6.6/drivers/gpu/drm/i915/gvt/
Dtrace.h276 TP_PROTO(int id, char *reg_name, unsigned int reg, unsigned int new_val,
279 TP_ARGS(id, reg_name, reg, new_val, old_val, changed),
285 __field(unsigned int, new_val)
294 __entry->new_val = new_val;
300 __entry->id, __entry->buf, __entry->reg, __entry->new_val,
348 unsigned int old_val, unsigned int new_val),
350 TP_ARGS(old_id, new_id, action, reg, old_val, new_val),
358 __field(unsigned int, new_val)
367 __entry->new_val = new_val;
373 __entry->old_val, __entry->new_val)
/Linux-v6.6/drivers/net/ethernet/intel/i40e/
Di40e_dcb.c1710 u32 new_val; in i40e_dcb_hw_rx_pb_config() local
1721 new_val = new_pb_cfg->shared_pool_low_wm; in i40e_dcb_hw_rx_pb_config()
1722 if (new_val < old_val) { in i40e_dcb_hw_rx_pb_config()
1725 reg |= (new_val << I40E_PRTRPB_SLW_SLW_SHIFT) & in i40e_dcb_hw_rx_pb_config()
1735 new_val = new_pb_cfg->shared_pool_low_thresh[i]; in i40e_dcb_hw_rx_pb_config()
1736 if (new_val < old_val) { in i40e_dcb_hw_rx_pb_config()
1739 reg |= (new_val << I40E_PRTRPB_SLT_SLT_TCN_SHIFT) & in i40e_dcb_hw_rx_pb_config()
1745 new_val = new_pb_cfg->tc_pool_low_wm[i]; in i40e_dcb_hw_rx_pb_config()
1746 if (new_val < old_val) { in i40e_dcb_hw_rx_pb_config()
1749 reg |= (new_val << I40E_PRTRPB_DLW_DLW_TCN_SHIFT) & in i40e_dcb_hw_rx_pb_config()
[all …]
/Linux-v6.6/arch/sparc/kernel/
Dprom_common.c54 void *new_val; in of_set_property() local
57 new_val = kmemdup(val, len, GFP_KERNEL); in of_set_property()
58 if (!new_val) in of_set_property()
77 prop->value = new_val; in of_set_property()
/Linux-v6.6/tools/lib/bpf/
Drelo_core.c889 res->new_val = 0; in bpf_core_calc_relo()
901 &res->new_val, &res->new_sz, in bpf_core_calc_relo()
944 err = err ?: bpf_core_calc_type_relo(relo, targ_spec, &res->new_val, NULL); in bpf_core_calc_relo()
947 err = err ?: bpf_core_calc_enumval_relo(relo, targ_spec, &res->new_val); in bpf_core_calc_relo()
1028 __u64 orig_val, new_val; in bpf_core_patch_insn() local
1045 new_val = res->new_val; in bpf_core_patch_insn()
1056 (unsigned long long)new_val); in bpf_core_patch_insn()
1060 insn->imm = new_val; in bpf_core_patch_insn()
1063 (unsigned long long)orig_val, (unsigned long long)new_val); in bpf_core_patch_insn()
1071 (unsigned long long)new_val); in bpf_core_patch_insn()
[all …]
/Linux-v6.6/drivers/mfd/
Dintel_pmc_bxt.c110 u32 new_val; in intel_pmc_gcr_update() local
116 new_val = readl(pmc->gcr_mem_base + offset); in intel_pmc_gcr_update()
118 new_val = (new_val & ~mask) | (val & mask); in intel_pmc_gcr_update()
119 writel(new_val, pmc->gcr_mem_base + offset); in intel_pmc_gcr_update()
121 new_val = readl(pmc->gcr_mem_base + offset); in intel_pmc_gcr_update()
125 return (new_val & mask) != (val & mask) ? -EIO : 0; in intel_pmc_gcr_update()
/Linux-v6.6/arch/riscv/kvm/
Daia.c212 unsigned long new_val, in kvm_riscv_vcpu_aia_rmw_topei() argument
224 val, new_val, wr_mask); in kvm_riscv_vcpu_aia_rmw_topei()
333 unsigned long *val, unsigned long new_val, in aia_rmw_iprio() argument
358 new_val = (old_val & ~wr_mask) | (new_val & wr_mask); in aia_rmw_iprio()
360 prio = (new_val >> (TOPI_IPRIO_BITS * i)) & in aia_rmw_iprio()
370 unsigned long *val, unsigned long new_val, in kvm_riscv_vcpu_aia_rmw_ireg() argument
382 return aia_rmw_iprio(vcpu, isel, val, new_val, wr_mask); in kvm_riscv_vcpu_aia_rmw_ireg()
385 return kvm_riscv_vcpu_aia_imsic_rmw(vcpu, isel, val, new_val, in kvm_riscv_vcpu_aia_rmw_ireg()
Dvcpu_insn.c212 unsigned long *val, unsigned long new_val,
257 ulong val = 0, wr_mask = 0, new_val = 0; in csr_insn() local
263 new_val = rs1_val; in csr_insn()
267 new_val = -1UL; in csr_insn()
271 new_val = 0; in csr_insn()
275 new_val = rs1_num; in csr_insn()
279 new_val = -1UL; in csr_insn()
283 new_val = 0; in csr_insn()
295 run->riscv_csr.new_value = new_val; in csr_insn()
311 rc = cfn->func(vcpu, csr_num, &val, new_val, wr_mask); in csr_insn()
/Linux-v6.6/drivers/gpio/
Dgpio-it87.c131 u8 new_val = curr_val | mask; in superio_set_mask() local
133 if (curr_val != new_val) in superio_set_mask()
134 superio_outb(new_val, reg); in superio_set_mask()
140 u8 new_val = curr_val & ~mask; in superio_clear_mask() local
142 if (curr_val != new_val) in superio_clear_mask()
143 superio_outb(new_val, reg); in superio_clear_mask()
Dgpio-ath79.c58 u32 old_val, new_val; in ath79_gpio_update_bits() local
61 new_val = (old_val & ~mask) | (bits & mask); in ath79_gpio_update_bits()
63 if (new_val != old_val) in ath79_gpio_update_bits()
64 ath79_gpio_write(ctrl, reg, new_val); in ath79_gpio_update_bits()
66 return new_val != old_val; in ath79_gpio_update_bits()
/Linux-v6.6/include/linux/
Dvmw_vmci_defs.h817 static inline void vmci_q_set_pointer(u64 *var, u64 new_val) in vmci_q_set_pointer() argument
820 WRITE_ONCE(*(unsigned long *)var, (unsigned long)new_val); in vmci_q_set_pointer()
829 u64 new_val = vmci_q_read_pointer(var); in vmci_qp_add_pointer() local
831 if (new_val >= size - add) in vmci_qp_add_pointer()
832 new_val -= size; in vmci_qp_add_pointer()
834 new_val += add; in vmci_qp_add_pointer()
836 vmci_q_set_pointer(var, new_val); in vmci_qp_add_pointer()
/Linux-v6.6/drivers/base/regmap/
Dregmap-debugfs.c465 bool new_val, require_sync = false; in regmap_cache_only_write_file() local
468 err = kstrtobool_from_user(user_buf, count, &new_val); in regmap_cache_only_write_file()
479 if (new_val && !map->cache_only) { in regmap_cache_only_write_file()
482 } else if (!new_val && map->cache_only) { in regmap_cache_only_write_file()
486 map->cache_only = new_val; in regmap_cache_only_write_file()
512 bool new_val; in regmap_cache_bypass_write_file() local
515 err = kstrtobool_from_user(user_buf, count, &new_val); in regmap_cache_bypass_write_file()
526 if (new_val && !map->cache_bypass) { in regmap_cache_bypass_write_file()
529 } else if (!new_val && map->cache_bypass) { in regmap_cache_bypass_write_file()
532 map->cache_bypass = new_val; in regmap_cache_bypass_write_file()
/Linux-v6.6/drivers/pinctrl/freescale/
Dpinctrl-imx1-core.c95 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-v6.6/drivers/ata/
Dahci_st.c41 unsigned long old_val, new_val; in st_ahci_configure_oob() local
43 new_val = (0x02 << ST_AHCI_OOBR_CWMIN_SHIFT) | in st_ahci_configure_oob()
50 writel(new_val | ST_AHCI_OOBR_WE, mmio + ST_AHCI_OOBR); in st_ahci_configure_oob()
51 writel(new_val, mmio + ST_AHCI_OOBR); in st_ahci_configure_oob()
/Linux-v6.6/arch/riscv/mm/
Dpageattr.c20 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-v6.6/drivers/gpu/drm/i915/display/
Dintel_display_irq.c42 u32 new_val; in ilk_update_display_irq() local
47 new_val = dev_priv->irq_mask; in ilk_update_display_irq()
48 new_val &= ~interrupt_mask; in ilk_update_display_irq()
49 new_val |= (~enabled_irq_mask & interrupt_mask); in ilk_update_display_irq()
51 if (new_val != dev_priv->irq_mask && in ilk_update_display_irq()
53 dev_priv->irq_mask = new_val; in ilk_update_display_irq()
78 u32 new_val; in bdw_update_port_irq() local
90 new_val = old_val; in bdw_update_port_irq()
91 new_val &= ~interrupt_mask; in bdw_update_port_irq()
92 new_val |= (~enabled_irq_mask & interrupt_mask); in bdw_update_port_irq()
[all …]
/Linux-v6.6/drivers/regulator/
Dmax8997-regulator.c539 u8 new_val, int *best) in max8997_assess_side_effect() argument
575 if (new_val != (buckx_val[rid])[i]) { in max8997_assess_side_effect()
621 int new_val, new_idx, damage, tmp_val, tmp_idx, tmp_dmg; in max8997_set_voltage_buck() local
647 new_val = max8997_get_voltage_proper_val(desc, min_uV, max_uV); in max8997_set_voltage_buck()
648 if (new_val < 0) in max8997_set_voltage_buck()
649 return new_val; in max8997_set_voltage_buck()
655 damage = max8997_assess_side_effect(rdev, new_val, &new_idx); in max8997_set_voltage_buck()
661 tmp_val = new_val; in max8997_set_voltage_buck()
665 new_val++; in max8997_set_voltage_buck()
666 } while (desc->min + desc->step * new_val <= desc->max); in max8997_set_voltage_buck()
[all …]
/Linux-v6.6/arch/riscv/include/asm/
Dkvm_aia.h98 unsigned long *val, unsigned long new_val,
142 unsigned long new_val,
145 unsigned long *val, unsigned long new_val,
/Linux-v6.6/drivers/mmc/host/
Dsdhci-esdhc-imx.c688 u32 new_val = 0; in esdhc_writew_le() local
692 new_val = readl(host->ioaddr + ESDHC_VENDOR_SPEC); in esdhc_writew_le()
694 new_val |= ESDHC_VENDOR_SPEC_FRC_SDCLK_ON; in esdhc_writew_le()
696 new_val &= ~ESDHC_VENDOR_SPEC_FRC_SDCLK_ON; in esdhc_writew_le()
697 writel(new_val, host->ioaddr + ESDHC_VENDOR_SPEC); in esdhc_writew_le()
698 if (!(new_val & ESDHC_VENDOR_SPEC_FRC_SDCLK_ON)) in esdhc_writew_le()
702 new_val = readl(host->ioaddr + ESDHC_VENDOR_SPEC); in esdhc_writew_le()
704 new_val |= ESDHC_VENDOR_SPEC_VSELECT; in esdhc_writew_le()
706 new_val &= ~ESDHC_VENDOR_SPEC_VSELECT; in esdhc_writew_le()
707 writel(new_val, host->ioaddr + ESDHC_VENDOR_SPEC); in esdhc_writew_le()
[all …]
/Linux-v6.6/sound/core/
Dvmaster.c341 static int sync_followers(struct link_master *master, int old_val, int new_val) in sync_followers() argument
353 master->val = new_val; in sync_followers()
364 int err, new_val, old_val; in master_put() local
372 new_val = ucontrol->value.integer.value[0]; in master_put()
373 if (new_val == old_val) in master_put()
376 err = sync_followers(master, old_val, new_val); in master_put()
/Linux-v6.6/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_top.c71 u32 reg_val, new_val; in dpu_hw_setup_clk_force_ctrl() local
88 new_val = reg_val | BIT(bit_off); in dpu_hw_setup_clk_force_ctrl()
90 new_val = reg_val & ~BIT(bit_off); in dpu_hw_setup_clk_force_ctrl()
92 DPU_REG_WRITE(c, reg_off, new_val); in dpu_hw_setup_clk_force_ctrl()
/Linux-v6.6/tools/hv/
Dhv_kvp_daemon.c1239 static int kvp_set_ip_info(char *if_name, struct hv_kvp_ipaddr_value *new_val) in kvp_set_ip_info() argument
1395 if (new_val->dhcp_enabled) { in kvp_set_ip_info()
1405 error = process_ip_string(ifcfg_file, (char *)new_val->ip_addr, in kvp_set_ip_info()
1410 error = process_ip_string(ifcfg_file, (char *)new_val->sub_net, in kvp_set_ip_info()
1415 error = process_ip_string(ifcfg_file, (char *)new_val->gate_way, in kvp_set_ip_info()
1420 error = process_ip_string(ifcfg_file, (char *)new_val->dns_addr, DNS); in kvp_set_ip_info()
1424 if (new_val->addr_family == ADDR_FAMILY_IPV6) { in kvp_set_ip_info()
1439 if (new_val->dhcp_enabled) { in kvp_set_ip_info()
1453 error = process_ip_string_nm(nmfile, (char *)new_val->ip_addr, in kvp_set_ip_info()
1454 (char *)new_val->sub_net, is_ipv6); in kvp_set_ip_info()
[all …]
/Linux-v6.6/arch/x86/kernel/
Di8259.c303 unsigned char new_val, probe_val = ~(1 << PIC_CASCADE_IR); in probe_8259A() local
334 new_val = inb(PIC_MASTER_IMR); in probe_8259A()
335 if (new_val != probe_val) { in probe_8259A()
/Linux-v6.6/arch/x86/include/asm/xen/
Dhypercall.h303 HYPERVISOR_update_va_mapping(unsigned long va, pte_t new_val, in HYPERVISOR_update_va_mapping() argument
306 return _hypercall3(int, update_va_mapping, va, new_val.pte, flags); in HYPERVISOR_update_va_mapping()
326 pte_t new_val, unsigned long flags) in MULTI_update_va_mapping() argument
330 mcl->args[1] = new_val.pte; in MULTI_update_va_mapping()

1234