Lines Matching defs:ndata
150 unsigned char data, ndata;
157 ndata = (data & 0xf0) | chip_mask;
158 if (ndata != data)
159 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_PCF2], &ndata, 1)
664 unsigned char data, ndata;
671 ndata = (data & ~ICE1712_EWS88MT_OUTPUT_SENSE) | (ucontrol->value.enumerated.item[0] ? ICE1712_EWS88MT_OUTPUT_SENSE : 0);
672 if (ndata != data && snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_PCF2],
673 &ndata, 1) != 1) {
678 return ndata != data;
708 unsigned char data, ndata;
717 ndata = (data & ~(1 << channel)) | (ucontrol->value.enumerated.item[0] ? 0 : (1 << channel));
718 if (ndata != data && snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_PCF1],
719 &ndata, 1) != 1) {
724 return ndata != data;
778 unsigned char data[2], ndata[2];
786 ndata[shift >> 3] = data[shift >> 3] & ~(1 << (shift & 7));
789 ndata[shift >> 3] |= (1 << (shift & 7));
792 ndata[shift >> 3] |= (1 << (shift & 7));
794 change = (data[shift >> 3] != ndata[shift >> 3]);
884 int data, ndata;
888 ndata = data & ~(1 << shift);
890 ndata |= (1 << shift);
892 ndata ^= (1 << shift);
893 if (data != ndata) {
894 snd_ice1712_6fire_write_pca(ice, PCF9554_REG_OUTPUT, (unsigned char)ndata);
928 int data, ndata;
932 ndata = data & ~3;
933 ndata |= (ucontrol->value.integer.value[0] & 3);
934 if (data != ndata) {
935 snd_ice1712_6fire_write_pca(ice, PCF9554_REG_OUTPUT, (unsigned char)ndata);