Lines Matching refs:i2c_buffer_lock
45 struct mutex *i2c_buffer_lock; member
103 struct mutex i2c_buffer_lock; member
153 if (mutex_lock_interruptible(i2c->i2c_buffer_lock) < 0) { in dib8000_i2c_read16()
167 mutex_unlock(i2c->i2c_buffer_lock); in dib8000_i2c_read16()
200 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib8000_read_word()
207 mutex_unlock(&state->i2c_buffer_lock); in dib8000_read_word()
216 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib8000_read32()
224 mutex_unlock(&state->i2c_buffer_lock); in dib8000_read32()
234 if (mutex_lock_interruptible(i2c->i2c_buffer_lock) < 0) { in dib8000_i2c_write16()
246 mutex_unlock(i2c->i2c_buffer_lock); in dib8000_i2c_write16()
255 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib8000_write_word()
273 mutex_unlock(&state->i2c_buffer_lock); in dib8000_write_word()
4306 client.i2c_buffer_lock = kzalloc(sizeof(struct mutex), GFP_KERNEL); in dib8000_i2c_enumeration()
4307 if (!client.i2c_buffer_lock) { in dib8000_i2c_enumeration()
4312 mutex_init(client.i2c_buffer_lock); in dib8000_i2c_enumeration()
4356 kfree(client.i2c_buffer_lock); in dib8000_i2c_enumeration()
4459 mutex_init(&state->i2c_buffer_lock); in dib8000_init()
4460 state->i2c.i2c_buffer_lock = &state->i2c_buffer_lock; in dib8000_init()