Lines Matching refs:i2c_buffer_lock
48 struct mutex *i2c_buffer_lock; member
106 struct mutex i2c_buffer_lock; member
156 if (mutex_lock_interruptible(i2c->i2c_buffer_lock) < 0) { in dib8000_i2c_read16()
170 mutex_unlock(i2c->i2c_buffer_lock); in dib8000_i2c_read16()
203 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib8000_read_word()
210 mutex_unlock(&state->i2c_buffer_lock); in dib8000_read_word()
219 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib8000_read32()
227 mutex_unlock(&state->i2c_buffer_lock); in dib8000_read32()
237 if (mutex_lock_interruptible(i2c->i2c_buffer_lock) < 0) { in dib8000_i2c_write16()
249 mutex_unlock(i2c->i2c_buffer_lock); in dib8000_i2c_write16()
258 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib8000_write_word()
276 mutex_unlock(&state->i2c_buffer_lock); in dib8000_write_word()
4309 client.i2c_buffer_lock = kzalloc(sizeof(struct mutex), GFP_KERNEL); in dib8000_i2c_enumeration()
4310 if (!client.i2c_buffer_lock) { in dib8000_i2c_enumeration()
4315 mutex_init(client.i2c_buffer_lock); in dib8000_i2c_enumeration()
4359 kfree(client.i2c_buffer_lock); in dib8000_i2c_enumeration()
4462 mutex_init(&state->i2c_buffer_lock); in dib8000_init()
4463 state->i2c.i2c_buffer_lock = &state->i2c_buffer_lock; in dib8000_init()