Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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)); \
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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)
/kernel/linux/linux-5.10/arch/x86/include/asm/xen/
Dhypercall.h344 HYPERVISOR_update_va_mapping(unsigned long va, pte_t new_val, in HYPERVISOR_update_va_mapping() argument
347 if (sizeof(new_val) == sizeof(long)) in HYPERVISOR_update_va_mapping()
349 new_val.pte, flags); in HYPERVISOR_update_va_mapping()
352 new_val.pte, new_val.pte >> 32, flags); in HYPERVISOR_update_va_mapping()
460 pte_t new_val, unsigned long flags) in MULTI_update_va_mapping() argument
464 if (sizeof(new_val) == sizeof(long)) { in MULTI_update_va_mapping()
465 mcl->args[1] = new_val.pte; in MULTI_update_va_mapping()
468 mcl->args[1] = new_val.pte; in MULTI_update_va_mapping()
469 mcl->args[2] = new_val.pte >> 32; in MULTI_update_va_mapping()
473 trace_xen_mc_entry(mcl, sizeof(new_val) == sizeof(long) ? 3 : 4); in MULTI_update_va_mapping()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/fman/
Dfman_dtsec.h39 int dtsec_set_promiscuous(struct fman_mac *dtsec, bool new_val);
44 int dtsec_cfg_max_frame_len(struct fman_mac *dtsec, u16 new_val);
45 int dtsec_cfg_pad_and_crc(struct fman_mac *dtsec, bool new_val);
Dfman_tgec.h39 int tgec_set_promiscuous(struct fman_mac *tgec, bool new_val);
41 int tgec_cfg_max_frame_len(struct fman_mac *tgec, u16 new_val);
Dfman_memac.h42 int memac_set_promiscuous(struct fman_mac *memac, bool new_val);
45 int memac_cfg_max_frame_len(struct fman_mac *memac, u16 new_val);
/kernel/linux/linux-5.10/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()
Daat2870-core.c179 u8 old_val, new_val; in aat2870_update() local
188 new_val = (old_val & ~mask) | (val & mask); in aat2870_update()
189 change = old_val != new_val; in aat2870_update()
191 ret = __aat2870_write(aat2870, addr, new_val); in aat2870_update()
/kernel/linux/linux-5.10/drivers/net/dsa/mv88e6xxx/
Dserdes.c101 u16 val, new_val; in mv88e6352_serdes_power() local
109 new_val = val & ~BMCR_PDOWN; in mv88e6352_serdes_power()
111 new_val = val | BMCR_PDOWN; in mv88e6352_serdes_power()
113 if (val != new_val) in mv88e6352_serdes_power()
114 err = mv88e6352_serdes_write(chip, MII_BMCR, new_val); in mv88e6352_serdes_power()
533 u16 val, new_val; in mv88e6390_serdes_power_10g() local
543 new_val = val & ~(MDIO_CTRL1_RESET | in mv88e6390_serdes_power_10g()
547 new_val = val | MDIO_CTRL1_LPOWER; in mv88e6390_serdes_power_10g()
549 if (val != new_val) in mv88e6390_serdes_power_10g()
551 MV88E6390_10G_CTRL1, new_val); in mv88e6390_serdes_power_10g()
[all …]
/kernel/linux/linux-5.10/drivers/mmc/host/
Dsdhci-esdhc-imx.c588 u32 new_val = 0; in esdhc_writew_le() local
592 new_val = readl(host->ioaddr + ESDHC_VENDOR_SPEC); in esdhc_writew_le()
594 new_val |= ESDHC_VENDOR_SPEC_FRC_SDCLK_ON; in esdhc_writew_le()
596 new_val &= ~ESDHC_VENDOR_SPEC_FRC_SDCLK_ON; in esdhc_writew_le()
597 writel(new_val, host->ioaddr + ESDHC_VENDOR_SPEC); in esdhc_writew_le()
598 if (!(new_val & ESDHC_VENDOR_SPEC_FRC_SDCLK_ON)) in esdhc_writew_le()
602 new_val = readl(host->ioaddr + ESDHC_VENDOR_SPEC); in esdhc_writew_le()
604 new_val |= ESDHC_VENDOR_SPEC_VSELECT; in esdhc_writew_le()
606 new_val &= ~ESDHC_VENDOR_SPEC_VSELECT; in esdhc_writew_le()
607 writel(new_val, host->ioaddr + ESDHC_VENDOR_SPEC); in esdhc_writew_le()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dvmw_vmci_defs.h755 static inline void vmci_q_set_pointer(u64 *var, u64 new_val) in vmci_q_set_pointer() argument
758 WRITE_ONCE(*(unsigned long *)var, (unsigned long)new_val); in vmci_q_set_pointer()
767 u64 new_val = vmci_q_read_pointer(var); in vmci_qp_add_pointer() local
769 if (new_val >= size - add) in vmci_qp_add_pointer()
770 new_val -= size; in vmci_qp_add_pointer()
772 new_val += add; in vmci_qp_add_pointer()
774 vmci_q_set_pointer(var, new_val); in vmci_qp_add_pointer()
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-it87.c139 u8 new_val = curr_val | mask; in superio_set_mask() local
141 if (curr_val != new_val) in superio_set_mask()
142 superio_outb(new_val, reg); in superio_set_mask()
148 u8 new_val = curr_val & ~mask; in superio_clear_mask() local
150 if (curr_val != new_val) in superio_clear_mask()
151 superio_outb(new_val, reg); in superio_clear_mask()
Dgpio-ath79.c57 u32 old_val, new_val; in ath79_gpio_update_bits() local
60 new_val = (old_val & ~mask) | (bits & mask); in ath79_gpio_update_bits()
62 if (new_val != old_val) in ath79_gpio_update_bits()
63 ath79_gpio_write(ctrl, reg, new_val); in ath79_gpio_update_bits()
65 return new_val != old_val; in ath79_gpio_update_bits()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/pinctrl/freescale/
Dpinctrl-imx1-core.c92 u32 new_val; in imx1_write_2bit() local
105 new_val = value & 0x3; /* Make sure value is really 2 bit */ in imx1_write_2bit()
106 new_val <<= offset; in imx1_write_2bit()
107 new_val |= old_val;/* Set new state for pin_id */ in imx1_write_2bit()
109 writel(new_val, reg); in imx1_write_2bit()
119 u32 new_val; in imx1_write_bit() local
125 new_val = value & 0x1; /* Make sure value is really 1 bit */ in imx1_write_bit()
126 new_val <<= offset; in imx1_write_bit()
127 new_val |= old_val;/* Set new state for pin_id */ in imx1_write_bit()
129 writel(new_val, reg); in imx1_write_bit()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/lib/
Dpacking.c34 u64 new_val = 0; in bit_reverse() local
40 new_val |= (bit << (width - i - 1)); in bit_reverse()
42 return new_val; in bit_reverse()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/sound/core/
Dvmaster.c313 static int sync_followers(struct link_master *master, int old_val, int new_val) in sync_followers() argument
325 master->val = new_val; in sync_followers()
336 int err, new_val, old_val; in master_put() local
344 new_val = ucontrol->value.integer.value[0]; in master_put()
345 if (new_val == old_val) in master_put()
348 err = sync_followers(master, old_val, new_val); in master_put()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_top.c96 u32 reg_val, new_val; in dpu_hw_setup_clk_force_ctrl() local
113 new_val = reg_val | BIT(bit_off); in dpu_hw_setup_clk_force_ctrl()
115 new_val = reg_val & ~BIT(bit_off); in dpu_hw_setup_clk_force_ctrl()
117 DPU_REG_WRITE(c, reg_off, new_val); in dpu_hw_setup_clk_force_ctrl()
/kernel/linux/linux-5.10/arch/x86/kernel/
Di8259.c305 unsigned char new_val; in probe_8259A() local
317 new_val = inb(PIC_MASTER_IMR); in probe_8259A()
318 if (new_val != probe_val) { in probe_8259A()
/kernel/linux/linux-5.10/drivers/xen/xen-pciback/
Dconf_space.c115 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()

123