/linux-2.6.39/include/linux/ |
D | percpu.h | 500 #define _this_cpu_generic_cmpxchg(pcp, oval, nval) \ argument 504 if (ret__ == (oval)) \ 512 # define this_cpu_cmpxchg_1(pcp, oval, nval) _this_cpu_generic_cmpxchg(pcp, oval, nval) argument 515 # define this_cpu_cmpxchg_2(pcp, oval, nval) _this_cpu_generic_cmpxchg(pcp, oval, nval) argument 518 # define this_cpu_cmpxchg_4(pcp, oval, nval) _this_cpu_generic_cmpxchg(pcp, oval, nval) argument 521 # define this_cpu_cmpxchg_8(pcp, oval, nval) _this_cpu_generic_cmpxchg(pcp, oval, nval) argument 523 # define this_cpu_cmpxchg(pcp, oval, nval) \ argument 524 __pcpu_size_call_return2(this_cpu_cmpxchg_, pcp, oval, nval) 743 #define __this_cpu_generic_cmpxchg(pcp, oval, nval) \ argument 747 if (ret__ == (oval)) \ [all …]
|
/linux-2.6.39/arch/x86/include/asm/ |
D | percpu.h | 318 #define percpu_cmpxchg_op(var, oval, nval) \ argument 321 typeof(var) pco_old__ = (oval); \ 396 #define __this_cpu_cmpxchg_8(pcp, oval, nval) percpu_cmpxchg_op(pcp, oval, nval) argument 440 #define __this_cpu_cmpxchg_1(pcp, oval, nval) percpu_cmpxchg_op(pcp, oval, nval) argument 441 #define __this_cpu_cmpxchg_2(pcp, oval, nval) percpu_cmpxchg_op(pcp, oval, nval) argument 442 #define __this_cpu_cmpxchg_4(pcp, oval, nval) percpu_cmpxchg_op(pcp, oval, nval) argument 447 #define this_cpu_cmpxchg_1(pcp, oval, nval) percpu_cmpxchg_op(pcp, oval, nval) argument 448 #define this_cpu_cmpxchg_2(pcp, oval, nval) percpu_cmpxchg_op(pcp, oval, nval) argument 449 #define this_cpu_cmpxchg_4(pcp, oval, nval) percpu_cmpxchg_op(pcp, oval, nval) argument 451 #define irqsafe_cpu_cmpxchg_1(pcp, oval, nval) percpu_cmpxchg_op(pcp, oval, nval) argument [all …]
|
/linux-2.6.39/net/netfilter/ |
D | xt_statistic.c | 35 int nval, oval; in statistic_mt() local 44 oval = atomic_read(&info->master->count); in statistic_mt() 45 nval = (oval == info->u.nth.every) ? 0 : oval + 1; in statistic_mt() 46 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval); in statistic_mt()
|
/linux-2.6.39/sound/isa/sb/ |
D | sb_mixer.c | 95 unsigned char val, oval; in snd_sbmixer_put_single() local 99 oval = snd_sbmixer_read(sb, reg); in snd_sbmixer_put_single() 100 val = (oval & ~(mask << shift)) | val; in snd_sbmixer_put_single() 101 change = val != oval; in snd_sbmixer_put_single() 202 unsigned char oval; in snd_dt019x_input_sw_get() local 205 oval = snd_sbmixer_read(sb, SB_DT019X_CAPTURE_SW); in snd_dt019x_input_sw_get() 207 switch (oval & 0x07) { in snd_dt019x_input_sw_get() 239 unsigned char nval, oval; in snd_dt019x_input_sw_put() local 263 oval = snd_sbmixer_read(sb, SB_DT019X_CAPTURE_SW); in snd_dt019x_input_sw_put() 264 change = nval != oval; in snd_dt019x_input_sw_put() [all …]
|
/linux-2.6.39/sound/ppc/ |
D | burgundy.c | 314 int oval; in snd_pmac_burgundy_get_gain() local 316 oval = snd_pmac_burgundy_rcb(chip, addr); in snd_pmac_burgundy_get_gain() 318 oval = ~oval & 0xff; in snd_pmac_burgundy_get_gain() 319 ucontrol->value.integer.value[0] = oval & 0xf; in snd_pmac_burgundy_get_gain() 321 ucontrol->value.integer.value[1] = (oval >> 4) & 0xf; in snd_pmac_burgundy_get_gain() 332 int oval, val; in snd_pmac_burgundy_put_gain() local 334 oval = snd_pmac_burgundy_rcb(chip, addr); in snd_pmac_burgundy_put_gain() 336 oval = ~oval & 0xff; in snd_pmac_burgundy_put_gain() 345 return val != oval; in snd_pmac_burgundy_put_gain() 392 int val, oval; in snd_pmac_burgundy_put_switch_w() local [all …]
|
D | beep.c | 198 unsigned int oval, nval; in snd_pmac_put_beep() local 201 oval = chip->beep->volume; in snd_pmac_put_beep() 206 return oval != chip->beep->volume; in snd_pmac_put_beep()
|
/linux-2.6.39/drivers/staging/rtl8187se/ |
D | r8180_rtl8225z2.c | 309 u16 oval, oval2, oval3, tmp; in read_rtl8225() local 316 oval = read_nic_word(dev, RFPinsOutput); in read_rtl8225() 325 oval &= ~0xf; in read_rtl8225() 327 write_nic_word(dev, RFPinsOutput, oval | BB_HOST_BANG_EN); in read_rtl8225() 330 write_nic_word(dev, RFPinsOutput, oval); in read_rtl8225() 339 write_nic_word(dev, RFPinsOutput, bit | oval | rw); in read_rtl8225() 343 bit | oval | BB_HOST_BANG_CLK | rw); in read_rtl8225() 346 bit | oval | BB_HOST_BANG_CLK | rw); in read_rtl8225() 354 bit | oval | BB_HOST_BANG_CLK | rw); in read_rtl8225() 356 write_nic_word(dev, RFPinsOutput, bit | oval | rw); in read_rtl8225() [all …]
|
/linux-2.6.39/sound/pci/ice1712/ |
D | pontis.c | 143 unsigned short oval, nval; in wm_dac_vol_put() local 151 oval = wm_get(ice, idx) & 0xff; in wm_dac_vol_put() 152 if (oval != nval) { in wm_dac_vol_put() 236 unsigned short oval, nval; in wm_adc_mux_put() local 240 nval = oval = wm_get(ice, WM_ADC_MUX); in wm_adc_mux_put() 245 change = nval != oval; in wm_adc_mux_put() 271 unsigned short val, oval; in wm_bypass_put() local 275 val = oval = wm_get(ice, WM_OUT_MUX); in wm_bypass_put() 280 if (val != oval) { in wm_bypass_put() 306 unsigned short val, oval; in wm_chswap_put() local [all …]
|
D | prodigy_hifi.c | 588 unsigned short oval, nval; in wm_adc_mux_enum_put() local 592 oval = wm_get(ice, WM_ADC_MUX); in wm_adc_mux_enum_put() 593 nval = (oval & 0xe0) | ucontrol->value.integer.value[0]; in wm_adc_mux_enum_put() 594 if (nval != oval) { in wm_adc_mux_enum_put() 684 unsigned short oval, nval; in wm_adc_mux_put() local 688 nval = oval = wm_get(ice, WM_ADC_MUX); in wm_adc_mux_put() 693 change = nval != oval; in wm_adc_mux_put() 722 unsigned short val, oval; in wm_bypass_put() local 726 val = oval = wm_get(ice, WM_OUT_MUX); in wm_bypass_put() 731 if (val != oval) { in wm_bypass_put() [all …]
|
D | aureon.c | 231 unsigned char oval, nval; in aureon_universe_inmux_put() local 238 oval = spec->pca9554_out; in aureon_universe_inmux_put() 239 change = (oval != nval); in aureon_universe_inmux_put() 736 unsigned short nval, oval; in wm_pcm_mute_put() local 740 oval = wm_get(ice, WM_MUTE); in wm_pcm_mute_put() 741 nval = (oval & ~0x10) | (ucontrol->value.integer.value[0] ? 0 : 0x10); in wm_pcm_mute_put() 742 change = (oval != nval); in wm_pcm_mute_put() 1141 unsigned short oval, nval; in wm_adc_mux_put() local 1145 oval = wm_get(ice, WM_ADC_MUX); in wm_adc_mux_put() 1146 nval = oval & ~0x77; in wm_adc_mux_put() [all …]
|
D | phase.c | 316 unsigned short nval, oval; in wm_pcm_mute_put() local 320 oval = wm_get(ice, WM_MUTE); in wm_pcm_mute_put() 321 nval = (oval & ~0x10) | (ucontrol->value.integer.value[0] ? 0 : 0x10); in wm_pcm_mute_put() 322 change = (nval != oval); in wm_pcm_mute_put()
|
/linux-2.6.39/drivers/scsi/aic94xx/ |
D | aic94xx_reg.h | 229 u16 oval = asd_ddbsite_read_word(asd_ha, ddb_site_no, offs); in asd_ddbsite_update_word() local 230 if (oval != oldval) in asd_ddbsite_update_word() 250 u16 oval; in asd_ddbsite_update_byte() local 256 oval = (_oldval << 8) | (nval & 0xFF); in asd_ddbsite_update_byte() 261 oval = (nval & 0xFF00) | _oldval; in asd_ddbsite_update_byte() 263 return asd_ddbsite_update_word(asd_ha, ddb_site_no, base, oval, nval); in asd_ddbsite_update_byte()
|
/linux-2.6.39/sound/isa/gus/ |
D | gus_mixer.c | 59 unsigned char oval, nval; in snd_gf1_put_single() local 66 oval = gus->mix_cntrl_reg; in snd_gf1_put_single() 67 nval = (oval & ~(1 << shift)) | nval; in snd_gf1_put_single() 68 change = nval != oval; in snd_gf1_put_single()
|
/linux-2.6.39/drivers/staging/iio/magnetometer/ |
D | ak8975.c | 239 unsigned long oval; in store_mode() local 244 if (strict_strtoul(buf, 10, &oval)) in store_mode() 247 if (oval > 1) { in store_mode() 255 if (data->mode != oval) { in store_mode() 258 (u8)oval, in store_mode() 267 data->mode = oval; in store_mode()
|
/linux-2.6.39/sound/i2c/other/ |
D | ak4xxx-adda.c | 537 unsigned char val, oval; in ak4xxx_switch_put() local 542 oval = snd_akm4xxx_get(ak, chip, addr); in ak4xxx_switch_put() 544 val = oval | (1<<shift); in ak4xxx_switch_put() 546 val = oval & ~(1<<shift); in ak4xxx_switch_put() 547 change = (oval != val); in ak4xxx_switch_put() 612 unsigned char oval, val; in ak4xxx_capture_source_put() local 618 oval = snd_akm4xxx_get(ak, chip, addr); in ak4xxx_capture_source_put() 619 val = oval & ~mask; in ak4xxx_capture_source_put() 621 if (val != oval) { in ak4xxx_capture_source_put()
|
/linux-2.6.39/sound/isa/es1688/ |
D | es1688_lib.c | 777 unsigned char oval, nval; in snd_es1688_put_mux() local 783 oval = snd_es1688_mixer_read(chip, ES1688_REC_DEV); in snd_es1688_put_mux() 784 nval = (ucontrol->value.enumerated.item[0] & 7) | (oval & ~15); in snd_es1688_put_mux() 785 change = nval != oval; in snd_es1688_put_mux() 835 unsigned char oval, nval; in snd_es1688_put_single() local 842 oval = snd_es1688_mixer_read(chip, reg); in snd_es1688_put_single() 843 nval = (oval & ~(mask << shift)) | nval; in snd_es1688_put_single() 844 change = nval != oval; in snd_es1688_put_single()
|
/linux-2.6.39/sound/pci/ |
D | es1938.c | 297 unsigned char old, new, oval; in snd_es1938_mixer_bits() local 301 oval = old & mask; in snd_es1938_mixer_bits() 302 if (val != oval) { in snd_es1938_mixer_bits() 311 return oval; in snd_es1938_mixer_bits() 384 unsigned char old, new, oval; in snd_es1938_bits() local 389 oval = old & mask; in snd_es1938_bits() 390 if (val != oval) { in snd_es1938_bits() 400 return oval; in snd_es1938_bits() 1107 unsigned char oval, nval; in snd_es1938_put_spatializer_enable() local 1110 oval = snd_es1938_mixer_read(chip, 0x50) & 0x0c; in snd_es1938_put_spatializer_enable() [all …]
|
D | via82xx.c | 1602 u8 val, oval; in snd_via8233_capture_source_put() local 1605 oval = inb(port); in snd_via8233_capture_source_put() 1606 val = oval & ~VIA_REG_CAPTURE_CHANNEL_MIC; in snd_via8233_capture_source_put() 1609 if (val != oval) in snd_via8233_capture_source_put() 1612 return val != oval; in snd_via8233_capture_source_put() 1640 u8 val, oval; in snd_via8233_dxs3_spdif_put() local 1642 pci_read_config_byte(chip->pci, VIA8233_SPDIF_CTRL, &oval); in snd_via8233_dxs3_spdif_put() 1643 val = oval & ~VIA8233_SPDIF_DX3; in snd_via8233_dxs3_spdif_put() 1648 if (val != oval) { in snd_via8233_dxs3_spdif_put()
|
D | cmipci.c | 550 unsigned int val, oval; in snd_cmipci_set_bit() local 551 val = oval = inl(cm->iobase + cmd); in snd_cmipci_set_bit() 553 if (val == oval) in snd_cmipci_set_bit() 561 unsigned int val, oval; in snd_cmipci_clear_bit() local 562 val = oval = inl(cm->iobase + cmd); in snd_cmipci_clear_bit() 564 if (val == oval) in snd_cmipci_clear_bit() 573 unsigned char val, oval; in snd_cmipci_set_bit_b() local 574 val = oval = inb(cm->iobase + cmd); in snd_cmipci_set_bit_b() 576 if (val == oval) in snd_cmipci_set_bit_b() 584 unsigned char val, oval; in snd_cmipci_clear_bit_b() local [all …]
|
/linux-2.6.39/sound/usb/ |
D | mixer.c | 936 int c, cnt, val, oval, err; in mixer_ctl_feature_put() local 944 err = get_cur_mix_value(cval, c + 1, cnt, &oval); in mixer_ctl_feature_put() 949 if (oval != val) { in mixer_ctl_feature_put() 957 err = get_cur_mix_value(cval, 0, 0, &oval); in mixer_ctl_feature_put() 962 if (val != oval) { in mixer_ctl_feature_put() 1420 int val, oval, err; in mixer_ctl_procunit_put() local 1422 err = get_cur_ctl_value(cval, cval->control << 8, &oval); in mixer_ctl_procunit_put() 1430 if (val != oval) { in mixer_ctl_procunit_put() 1702 int val, oval, err; in mixer_ctl_selector_put() local 1704 err = get_cur_ctl_value(cval, cval->control << 8, &oval); in mixer_ctl_selector_put() [all …]
|
/linux-2.6.39/sound/isa/ |
D | es18xx.c | 248 unsigned char old, new, oval; in snd_es18xx_bits() local 262 oval = old & mask; in snd_es18xx_bits() 263 if (val != oval) { in snd_es18xx_bits() 276 ret = oval; in snd_es18xx_bits() 313 unsigned char old, new, oval; in snd_es18xx_mixer_bits() local 318 oval = old & mask; in snd_es18xx_mixer_bits() 319 if (val != oval) { in snd_es18xx_mixer_bits() 328 return oval; in snd_es18xx_mixer_bits() 1074 unsigned char oval, nval; in snd_es18xx_put_spatializer_enable() local 1077 oval = snd_es18xx_mixer_read(chip, 0x50) & 0x0c; in snd_es18xx_put_spatializer_enable() [all …]
|
D | opl3sa2.c | 382 unsigned short val, oval; in snd_opl3sa2_put_single() local 389 oval = chip->ctlregs[reg]; in snd_opl3sa2_put_single() 390 val = (oval & ~(mask << shift)) | val; in snd_opl3sa2_put_single() 391 change = val != oval; in snd_opl3sa2_put_single()
|
/linux-2.6.39/sound/pci/ymfpci/ |
D | ymfpci_main.c | 1475 unsigned int val, oval; in snd_ymfpci_put_single() local 1485 oval = snd_ymfpci_readl(chip, reg); in snd_ymfpci_put_single() 1486 val = (oval & ~(mask << shift)) | val; in snd_ymfpci_put_single() 1487 change = val != oval; in snd_ymfpci_put_single() 1539 unsigned int val1, val2, oval; in snd_ymfpci_put_double() local 1548 oval = snd_ymfpci_readl(chip, reg); in snd_ymfpci_put_double() 1549 val1 = (oval & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_ymfpci_put_double() 1550 change = val1 != oval; in snd_ymfpci_put_double() 1563 unsigned int value, oval; in snd_ymfpci_put_nativedacvol() local 1568 oval = snd_ymfpci_readl(chip, reg); in snd_ymfpci_put_nativedacvol() [all …]
|
/linux-2.6.39/sound/pci/emu10k1/ |
D | p16v.c | 735 u32 value, oval; in snd_p16v_volume_put() local 737 oval = value = snd_emu10k1_ptr20_read(emu, reg, 0); in snd_p16v_volume_put() 747 if (value != oval) { in snd_p16v_volume_put()
|
/linux-2.6.39/sound/pci/ca0106/ |
D | ca0106_mixer.c | 469 unsigned int oval, nval; in snd_ca0106_volume_put() local 475 oval = snd_ca0106_ptr_read(emu, reg, channel_id); in snd_ca0106_volume_put() 480 if (oval == nval) in snd_ca0106_volume_put()
|