Lines Matching refs:i2c_priv
170 struct atmel_i2c_client_priv *i2c_priv = i2c_get_clientdata(client); in atmel_i2c_wakeup() local
179 i2c_transfer_buffer_flags(client, i2c_priv->wake_token, in atmel_i2c_wakeup()
180 i2c_priv->wake_token_sz, I2C_M_IGNORE_NAK); in atmel_i2c_wakeup()
219 struct atmel_i2c_client_priv *i2c_priv = i2c_get_clientdata(client); in atmel_i2c_send_receive() local
222 mutex_lock(&i2c_priv->lock); in atmel_i2c_send_receive()
246 mutex_unlock(&i2c_priv->lock); in atmel_i2c_send_receive()
249 mutex_unlock(&i2c_priv->lock); in atmel_i2c_send_receive()
329 struct atmel_i2c_client_priv *i2c_priv; in atmel_i2c_probe() local
355 i2c_priv = devm_kmalloc(dev, sizeof(*i2c_priv), GFP_KERNEL); in atmel_i2c_probe()
356 if (!i2c_priv) in atmel_i2c_probe()
359 i2c_priv->client = client; in atmel_i2c_probe()
360 mutex_init(&i2c_priv->lock); in atmel_i2c_probe()
367 i2c_priv->wake_token_sz = atmel_i2c_wake_token_sz(bus_clk_rate); in atmel_i2c_probe()
369 memset(i2c_priv->wake_token, 0, sizeof(i2c_priv->wake_token)); in atmel_i2c_probe()
371 atomic_set(&i2c_priv->tfm_count, 0); in atmel_i2c_probe()
373 i2c_set_clientdata(client, i2c_priv); in atmel_i2c_probe()