Lines Matching refs:bus
28 struct snd_i2c_bus *bus; /* I2C bus */ member
40 void (*start)(struct snd_i2c_bus *bus); /* transfer start */
41 void (*stop)(struct snd_i2c_bus *bus); /* transfer stop */
42 …void (*direction)(struct snd_i2c_bus *bus, int clock, int data); /* set line direction (0 = write…
43 void (*setlines)(struct snd_i2c_bus *bus, int clock, int data);
44 int (*getclock)(struct snd_i2c_bus *bus);
45 int (*getdata)(struct snd_i2c_bus *bus, int ack);
51 int (*probeaddr)(struct snd_i2c_bus *bus, unsigned short addr);
73 void (*private_free)(struct snd_i2c_bus *bus);
80 int snd_i2c_device_create(struct snd_i2c_bus *bus, const char *name,
84 static inline void snd_i2c_lock(struct snd_i2c_bus *bus) in snd_i2c_lock() argument
86 if (bus->master) in snd_i2c_lock()
87 mutex_lock(&bus->master->lock_mutex); in snd_i2c_lock()
89 mutex_lock(&bus->lock_mutex); in snd_i2c_lock()
92 static inline void snd_i2c_unlock(struct snd_i2c_bus *bus) in snd_i2c_unlock() argument
94 if (bus->master) in snd_i2c_unlock()
95 mutex_unlock(&bus->master->lock_mutex); in snd_i2c_unlock()
97 mutex_unlock(&bus->lock_mutex); in snd_i2c_unlock()
102 int snd_i2c_probeaddr(struct snd_i2c_bus *bus, unsigned short addr);