/drivers/net/ |
D | mdio.c | 73 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/ |
D | pinctrl-imx1-core.c | 97 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/ |
D | mac_hid.c | 189 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/ |
D | ahci_st.c | 44 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/ |
D | aat2870-core.c | 193 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()
|
D | htc-i2cpld.c | 149 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()
|
D | max8998.c | 125 u8 old_val = ret & 0xff; in max8998_update_reg() local 126 u8 new_val = (val & mask) | (old_val & (~mask)); in max8998_update_reg()
|
D | max8997.c | 128 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/ |
D | atom.c | 452 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/ |
D | atom.c | 449 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/ |
D | solo6x10-g723.c | 295 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()
|
D | solo6x10-tw28.c | 855 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/ |
D | m5602_s5k83a.c | 437 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/ |
D | tda998x_drv.c | 516 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/ |
D | input.c | 59 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/ |
D | pinctrl-baytrail.c | 292 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/ |
D | compal-laptop.c | 392 u8 old_val = ec_read_u8(ADDR); \ 395 ec_write(ADDR, state ? (old_val | MASK) : (old_val & ~MASK)); \
|
/drivers/net/wireless/hostap/ |
D | hostap_main.c | 332 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/ |
D | i915_irq.c | 430 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/ |
D | lpfc_attr.c | 1487 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()
|