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;
457 &spec->i2cdevs[EWS_I2C_6FIRE]);
472 &spec->i2cdevs[EWS_I2C_CS8404]);
477 &spec->i2cdevs[EWS_I2C_PCF1]);
482 &spec->i2cdevs[EWS_I2C_PCF2]);
492 &spec->i2cdevs[EWS_I2C_88D]);
627 struct ews_spec *spec = ice->spec;
631 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF2], &data, 1) != 1) {
644 struct ews_spec *spec = ice->spec;
648 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF2], &data, 1) != 1) {
653 if (ndata != data && snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_PCF2],
666 struct ews_spec *spec = ice->spec;
673 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF1], &data, 1) != 1) {
687 struct ews_spec *spec = ice->spec;
694 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF1], &data, 1) != 1) {
699 if (ndata != data && snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_PCF1],
735 struct ews_spec *spec = ice->spec;
741 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_88D], data, 2) != 2) {
756 struct ews_spec *spec = ice->spec;
763 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_88D], data, 2) != 2) {
777 snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_88D], data, 2) != 2) {
811 struct ews_spec *spec = ice->spec;
815 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_6FIRE], &byte, 1) != 1) {
822 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_6FIRE], &byte, 1) != 1) {
834 struct ews_spec *spec = ice->spec;
839 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_6FIRE], bytes, 2) != 2) {