i2c_priv 220 drivers/crypto/atmel-ecc.c struct atmel_i2c_client_priv *i2c_priv, *min_i2c_priv = NULL; i2c_priv 232 drivers/crypto/atmel-ecc.c list_for_each_entry(i2c_priv, &driver_data.i2c_client_list, i2c_priv 234 drivers/crypto/atmel-ecc.c tfm_cnt = atomic_read(&i2c_priv->tfm_count); i2c_priv 237 drivers/crypto/atmel-ecc.c min_i2c_priv = i2c_priv; i2c_priv 255 drivers/crypto/atmel-ecc.c struct atmel_i2c_client_priv *i2c_priv = i2c_get_clientdata(client); i2c_priv 257 drivers/crypto/atmel-ecc.c atomic_dec(&i2c_priv->tfm_count); i2c_priv 329 drivers/crypto/atmel-ecc.c struct atmel_i2c_client_priv *i2c_priv; i2c_priv 336 drivers/crypto/atmel-ecc.c i2c_priv = i2c_get_clientdata(client); i2c_priv 339 drivers/crypto/atmel-ecc.c list_add_tail(&i2c_priv->i2c_client_list_node, i2c_priv 346 drivers/crypto/atmel-ecc.c list_del(&i2c_priv->i2c_client_list_node); i2c_priv 360 drivers/crypto/atmel-ecc.c struct atmel_i2c_client_priv *i2c_priv = i2c_get_clientdata(client); i2c_priv 363 drivers/crypto/atmel-ecc.c if (atomic_read(&i2c_priv->tfm_count)) { i2c_priv 371 drivers/crypto/atmel-ecc.c list_del(&i2c_priv->i2c_client_list_node); i2c_priv 170 drivers/crypto/atmel-i2c.c struct atmel_i2c_client_priv *i2c_priv = i2c_get_clientdata(client); i2c_priv 179 drivers/crypto/atmel-i2c.c i2c_master_send(client, i2c_priv->wake_token, i2c_priv->wake_token_sz); i2c_priv 218 drivers/crypto/atmel-i2c.c struct atmel_i2c_client_priv *i2c_priv = i2c_get_clientdata(client); i2c_priv 221 drivers/crypto/atmel-i2c.c mutex_lock(&i2c_priv->lock); i2c_priv 245 drivers/crypto/atmel-i2c.c mutex_unlock(&i2c_priv->lock); i2c_priv 248 drivers/crypto/atmel-i2c.c mutex_unlock(&i2c_priv->lock); i2c_priv 320 drivers/crypto/atmel-i2c.c struct atmel_i2c_client_priv *i2c_priv; i2c_priv 346 drivers/crypto/atmel-i2c.c i2c_priv = devm_kmalloc(dev, sizeof(*i2c_priv), GFP_KERNEL); i2c_priv 347 drivers/crypto/atmel-i2c.c if (!i2c_priv) i2c_priv 350 drivers/crypto/atmel-i2c.c i2c_priv->client = client; i2c_priv 351 drivers/crypto/atmel-i2c.c mutex_init(&i2c_priv->lock); i2c_priv 358 drivers/crypto/atmel-i2c.c i2c_priv->wake_token_sz = atmel_i2c_wake_token_sz(bus_clk_rate); i2c_priv 360 drivers/crypto/atmel-i2c.c memset(i2c_priv->wake_token, 0, sizeof(i2c_priv->wake_token)); i2c_priv 362 drivers/crypto/atmel-i2c.c atomic_set(&i2c_priv->tfm_count, 0); i2c_priv 364 drivers/crypto/atmel-i2c.c i2c_set_clientdata(client, i2c_priv); i2c_priv 24 drivers/crypto/atmel-sha204a.c struct atmel_i2c_client_priv *i2c_priv = work_data->ctx; i2c_priv 28 drivers/crypto/atmel-sha204a.c dev_warn_ratelimited(&i2c_priv->client->dev, i2c_priv 33 drivers/crypto/atmel-sha204a.c atomic_dec(&i2c_priv->tfm_count); i2c_priv 39 drivers/crypto/atmel-sha204a.c struct atmel_i2c_client_priv *i2c_priv; i2c_priv 42 drivers/crypto/atmel-sha204a.c i2c_priv = container_of(rng, struct atmel_i2c_client_priv, hwrng); i2c_priv 45 drivers/crypto/atmel-sha204a.c if (!atomic_add_unless(&i2c_priv->tfm_count, 1, 1)) i2c_priv 58 drivers/crypto/atmel-sha204a.c work_data->ctx = i2c_priv; i2c_priv 59 drivers/crypto/atmel-sha204a.c work_data->client = i2c_priv->client; i2c_priv 73 drivers/crypto/atmel-sha204a.c struct atmel_i2c_client_priv *i2c_priv; i2c_priv 80 drivers/crypto/atmel-sha204a.c i2c_priv = container_of(rng, struct atmel_i2c_client_priv, hwrng); i2c_priv 84 drivers/crypto/atmel-sha204a.c ret = atmel_i2c_send_receive(i2c_priv->client, &cmd); i2c_priv 97 drivers/crypto/atmel-sha204a.c struct atmel_i2c_client_priv *i2c_priv; i2c_priv 104 drivers/crypto/atmel-sha204a.c i2c_priv = i2c_get_clientdata(client); i2c_priv 106 drivers/crypto/atmel-sha204a.c memset(&i2c_priv->hwrng, 0, sizeof(i2c_priv->hwrng)); i2c_priv 108 drivers/crypto/atmel-sha204a.c i2c_priv->hwrng.name = dev_name(&client->dev); i2c_priv 109 drivers/crypto/atmel-sha204a.c i2c_priv->hwrng.read = atmel_sha204a_rng_read; i2c_priv 110 drivers/crypto/atmel-sha204a.c i2c_priv->hwrng.quality = 1024; i2c_priv 112 drivers/crypto/atmel-sha204a.c ret = devm_hwrng_register(&client->dev, &i2c_priv->hwrng); i2c_priv 121 drivers/crypto/atmel-sha204a.c struct atmel_i2c_client_priv *i2c_priv = i2c_get_clientdata(client); i2c_priv 123 drivers/crypto/atmel-sha204a.c if (atomic_read(&i2c_priv->tfm_count)) { i2c_priv 128 drivers/crypto/atmel-sha204a.c if (i2c_priv->hwrng.priv) i2c_priv 129 drivers/crypto/atmel-sha204a.c kfree((void *)i2c_priv->hwrng.priv); i2c_priv 101 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c static int amdgpu_i2c_get_clock(void *i2c_priv) i2c_priv 103 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c struct amdgpu_i2c_chan *i2c = i2c_priv; i2c_priv 116 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c static int amdgpu_i2c_get_data(void *i2c_priv) i2c_priv 118 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c struct amdgpu_i2c_chan *i2c = i2c_priv; i2c_priv 130 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c static void amdgpu_i2c_set_clock(void *i2c_priv, int clock) i2c_priv 132 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c struct amdgpu_i2c_chan *i2c = i2c_priv; i2c_priv 143 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c static void amdgpu_i2c_set_data(void *i2c_priv, int data) i2c_priv 145 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c struct amdgpu_i2c_chan *i2c = i2c_priv; i2c_priv 958 drivers/gpu/drm/ast/ast_mode.c static int get_clock(void *i2c_priv) i2c_priv 960 drivers/gpu/drm/ast/ast_mode.c struct ast_i2c_chan *i2c = i2c_priv; i2c_priv 980 drivers/gpu/drm/ast/ast_mode.c static int get_data(void *i2c_priv) i2c_priv 982 drivers/gpu/drm/ast/ast_mode.c struct ast_i2c_chan *i2c = i2c_priv; i2c_priv 1002 drivers/gpu/drm/ast/ast_mode.c static void set_clock(void *i2c_priv, int clock) i2c_priv 1004 drivers/gpu/drm/ast/ast_mode.c struct ast_i2c_chan *i2c = i2c_priv; i2c_priv 1018 drivers/gpu/drm/ast/ast_mode.c static void set_data(void *i2c_priv, int data) i2c_priv 1020 drivers/gpu/drm/ast/ast_mode.c struct ast_i2c_chan *i2c = i2c_priv; i2c_priv 182 drivers/gpu/drm/radeon/radeon_i2c.c static int get_clock(void *i2c_priv) i2c_priv 184 drivers/gpu/drm/radeon/radeon_i2c.c struct radeon_i2c_chan *i2c = i2c_priv; i2c_priv 197 drivers/gpu/drm/radeon/radeon_i2c.c static int get_data(void *i2c_priv) i2c_priv 199 drivers/gpu/drm/radeon/radeon_i2c.c struct radeon_i2c_chan *i2c = i2c_priv; i2c_priv 211 drivers/gpu/drm/radeon/radeon_i2c.c static void set_clock(void *i2c_priv, int clock) i2c_priv 213 drivers/gpu/drm/radeon/radeon_i2c.c struct radeon_i2c_chan *i2c = i2c_priv; i2c_priv 224 drivers/gpu/drm/radeon/radeon_i2c.c static void set_data(void *i2c_priv, int data) i2c_priv 226 drivers/gpu/drm/radeon/radeon_i2c.c struct radeon_i2c_chan *i2c = i2c_priv;