Home
last modified time | relevance | path

Searched refs:old_val (Results 1 – 20 of 20) sorted by relevance

/drivers/net/
Dmdio.c73 int old_val = mdio->mdio_read(mdio->dev, prtad, devad, addr); in mdio_set_flag() local
76 if (old_val < 0) in mdio_set_flag()
77 return old_val; in mdio_set_flag()
79 new_val = old_val | mask; in mdio_set_flag()
81 new_val = old_val & ~mask; in mdio_set_flag()
82 if (old_val == new_val) in mdio_set_flag()
/drivers/pinctrl/freescale/
Dpinctrl-imx1-core.c97 u32 old_val; in imx1_write_2bit() local
108 old_val = readl(reg); in imx1_write_2bit()
109 old_val &= mask; in imx1_write_2bit()
113 new_val |= old_val;/* Set new state for pin_id */ in imx1_write_2bit()
124 u32 old_val; in imx1_write_bit() local
128 old_val = readl(reg); in imx1_write_bit()
129 old_val &= mask; in imx1_write_bit()
133 new_val |= old_val;/* Set new state for pin_id */ in imx1_write_bit()
/drivers/macintosh/
Dmac_hid.c189 int old_val = *valp; in mac_hid_toggle_emumouse() local
198 if (rc == 0 && write && *valp != old_val) { in mac_hid_toggle_emumouse()
209 *valp = old_val; in mac_hid_toggle_emumouse()
/drivers/ata/
Dahci_st.c44 unsigned long old_val, new_val; in st_ahci_configure_oob() local
51 old_val = readl(mmio + ST_AHCI_OOBR); in st_ahci_configure_oob()
52 writel(old_val | ST_AHCI_OOBR_WE, mmio + ST_AHCI_OOBR); in st_ahci_configure_oob()
/drivers/mfd/
Daat2870-core.c193 u8 old_val, new_val; in aat2870_update() local
198 ret = __aat2870_read(aat2870, addr, &old_val); in aat2870_update()
202 new_val = (old_val & ~mask) | (val & mask); in aat2870_update()
203 change = old_val != new_val; in aat2870_update()
Dhtc-i2cpld.c149 unsigned long uval, old_val; in htcpld_handler() local
179 old_val = chip->cache_in; in htcpld_handler()
197 oldb = (old_val >> irqpin) & 1; in htcpld_handler()
Dmax8998.c125 u8 old_val = ret & 0xff; in max8998_update_reg() local
126 u8 new_val = (val & mask) | (old_val & (~mask)); in max8998_update_reg()
Dmax8997.c128 u8 old_val = ret & 0xff; in max8997_update_reg() local
129 u8 new_val = (val & mask) | (old_val & (~mask)); in max8997_update_reg()
/drivers/gpu/drm/radeon/
Datom.c452 atom_dst_to_src[(attr >> 3) & 7][(attr >> 6) & 3], old_val = in atom_put_dst() local
455 old_val &= atom_arg_mask[align] >> atom_arg_shift[align]; in atom_put_dst()
561 DEBUG(".[31:0] <- 0x%08X\n", old_val); in atom_put_dst()
564 DEBUG(".[15:0] <- 0x%04X\n", old_val); in atom_put_dst()
567 DEBUG(".[23:8] <- 0x%04X\n", old_val); in atom_put_dst()
570 DEBUG(".[31:16] <- 0x%04X\n", old_val); in atom_put_dst()
573 DEBUG(".[7:0] <- 0x%02X\n", old_val); in atom_put_dst()
576 DEBUG(".[15:8] <- 0x%02X\n", old_val); in atom_put_dst()
579 DEBUG(".[23:16] <- 0x%02X\n", old_val); in atom_put_dst()
582 DEBUG(".[31:24] <- 0x%02X\n", old_val); in atom_put_dst()
/drivers/gpu/drm/amd/amdgpu/
Datom.c449 atom_dst_to_src[(attr >> 3) & 7][(attr >> 6) & 3], old_val = in atom_put_dst() local
452 old_val &= atom_arg_mask[align] >> atom_arg_shift[align]; in atom_put_dst()
558 DEBUG(".[31:0] <- 0x%08X\n", old_val); in atom_put_dst()
561 DEBUG(".[15:0] <- 0x%04X\n", old_val); in atom_put_dst()
564 DEBUG(".[23:8] <- 0x%04X\n", old_val); in atom_put_dst()
567 DEBUG(".[31:16] <- 0x%04X\n", old_val); in atom_put_dst()
570 DEBUG(".[7:0] <- 0x%02X\n", old_val); in atom_put_dst()
573 DEBUG(".[15:8] <- 0x%02X\n", old_val); in atom_put_dst()
576 DEBUG(".[23:16] <- 0x%02X\n", old_val); in atom_put_dst()
579 DEBUG(".[31:24] <- 0x%02X\n", old_val); in atom_put_dst()
/drivers/media/pci/solo6x10/
Dsolo6x10-g723.c295 u8 old_val; in snd_solo_capture_volume_put() local
297 old_val = tw28_get_audio_gain(solo_dev, ch); in snd_solo_capture_volume_put()
298 if (old_val == value->value.integer.value[0]) in snd_solo_capture_volume_put()
Dsolo6x10-tw28.c855 u8 old_val; in tw28_set_audio_gain() local
862 old_val = tw_readbyte(solo_dev, chip_num, in tw28_set_audio_gain()
866 val = (old_val & ((ch % 2) ? 0x0f : 0xf0)) | in tw28_set_audio_gain()
/drivers/media/usb/gspca/m5602/
Dm5602_s5k83a.c437 u8 old_val, ctrl_val, test_val = 0xff; in s5k83a_dump_registers() local
439 m5602_read_sensor(sd, address, &old_val, 1); in s5k83a_dump_registers()
451 m5602_write_sensor(sd, address, &old_val, 1); in s5k83a_dump_registers()
/drivers/gpu/drm/i2c/
Dtda998x_drv.c516 int old_val; in reg_set() local
518 old_val = reg_read(priv, reg); in reg_set()
519 if (old_val >= 0) in reg_set()
520 reg_write(priv, reg, old_val | val); in reg_set()
526 int old_val; in reg_clear() local
528 old_val = reg_read(priv, reg); in reg_clear()
529 if (old_val >= 0) in reg_clear()
530 reg_write(priv, reg, old_val & ~val); in reg_clear()
/drivers/input/
Dinput.c59 static int input_defuzz_abs_event(int value, int old_val, int fuzz) in input_defuzz_abs_event() argument
62 if (value > old_val - fuzz / 2 && value < old_val + fuzz / 2) in input_defuzz_abs_event()
63 return old_val; in input_defuzz_abs_event()
65 if (value > old_val - fuzz && value < old_val + fuzz) in input_defuzz_abs_event()
66 return (old_val * 3 + value) / 4; in input_defuzz_abs_event()
68 if (value > old_val - fuzz * 2 && value < old_val + fuzz * 2) in input_defuzz_abs_event()
69 return (old_val + value) / 2; in input_defuzz_abs_event()
/drivers/pinctrl/intel/
Dpinctrl-baytrail.c292 u32 old_val; in byt_gpio_set() local
296 old_val = readl(reg); in byt_gpio_set()
299 writel(old_val | BYT_LEVEL, reg); in byt_gpio_set()
301 writel(old_val & ~BYT_LEVEL, reg); in byt_gpio_set()
/drivers/platform/x86/
Dcompal-laptop.c392 u8 old_val = ec_read_u8(ADDR); \
395 ec_write(ADDR, state ? (old_val | MASK) : (old_val & ~MASK)); \
/drivers/net/wireless/hostap/
Dhostap_main.c332 u16 val, old_val; in hostap_set_encryption() local
352 old_val = val; in hostap_set_encryption()
376 if (val != old_val && in hostap_set_encryption()
/drivers/gpu/drm/i915/
Di915_irq.c430 uint32_t old_val; in bdw_update_port_irq() local
439 old_val = I915_READ(GEN8_DE_PORT_IMR); in bdw_update_port_irq()
441 new_val = old_val; in bdw_update_port_irq()
445 if (new_val != old_val) { in bdw_update_port_irq()
/drivers/scsi/lpfc/
Dlpfc_attr.c1487 uint32_t old_val; in lpfc_poll_store() local
1508 old_val = phba->cfg_poll; in lpfc_poll_store()
1512 !(old_val & DISABLE_FCP_RING_INT)) { in lpfc_poll_store()
1529 (old_val & DISABLE_FCP_RING_INT)) in lpfc_poll_store()