Lines Matching refs:spec

134 	struct ews_spec *spec = ice->spec;
140 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF2], &data, 1) != 1)
144 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_PCF2], &ndata, 1)
220 struct ews_spec *spec = ice->spec;
229 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_CS8404], &bits, 1)
234 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_88D], bytes, 2)
239 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_88D],
413 struct ews_spec *spec;
439 spec = kzalloc(sizeof(*spec), GFP_KERNEL);
440 if (!spec)
442 ice->spec = spec;
458 &spec->i2cdevs[EWS_I2C_6FIRE]);
473 &spec->i2cdevs[EWS_I2C_CS8404]);
478 &spec->i2cdevs[EWS_I2C_PCF1]);
483 &spec->i2cdevs[EWS_I2C_PCF2]);
494 &spec->i2cdevs[EWS_I2C_88D]);
631 struct ews_spec *spec = ice->spec;
635 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF2], &data, 1) != 1) {
648 struct ews_spec *spec = ice->spec;
652 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF2], &data, 1) != 1) {
657 if (ndata != data && snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_PCF2],
670 struct ews_spec *spec = ice->spec;
677 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF1], &data, 1) != 1) {
691 struct ews_spec *spec = ice->spec;
698 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF1], &data, 1) != 1) {
703 if (ndata != data && snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_PCF1],
739 struct ews_spec *spec = ice->spec;
745 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_88D], data, 2) != 2) {
760 struct ews_spec *spec = ice->spec;
767 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_88D], data, 2) != 2) {
781 snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_88D], data, 2) != 2) {
815 struct ews_spec *spec = ice->spec;
819 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_6FIRE], &byte, 1) != 1) {
826 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_6FIRE], &byte, 1) != 1) {
838 struct ews_spec *spec = ice->spec;
843 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_6FIRE], bytes, 2) != 2) {