Home
last modified time | relevance | path

Searched refs:i2c_priv (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.10/drivers/crypto/
Datmel-sha204a.c24 struct atmel_i2c_client_priv *i2c_priv = work_data->ctx; in atmel_sha204a_rng_done() local
28 dev_warn_ratelimited(&i2c_priv->client->dev, in atmel_sha204a_rng_done()
33 atomic_dec(&i2c_priv->tfm_count); in atmel_sha204a_rng_done()
39 struct atmel_i2c_client_priv *i2c_priv; in atmel_sha204a_rng_read_nonblocking() local
42 i2c_priv = container_of(rng, struct atmel_i2c_client_priv, hwrng); in atmel_sha204a_rng_read_nonblocking()
45 if (!atomic_add_unless(&i2c_priv->tfm_count, 1, 1)) in atmel_sha204a_rng_read_nonblocking()
58 work_data->ctx = i2c_priv; in atmel_sha204a_rng_read_nonblocking()
59 work_data->client = i2c_priv->client; in atmel_sha204a_rng_read_nonblocking()
73 struct atmel_i2c_client_priv *i2c_priv; in atmel_sha204a_rng_read() local
80 i2c_priv = container_of(rng, struct atmel_i2c_client_priv, hwrng); in atmel_sha204a_rng_read()
[all …]
Datmel-i2c.c170 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()
321 struct atmel_i2c_client_priv *i2c_priv; in atmel_i2c_probe() local
347 i2c_priv = devm_kmalloc(dev, sizeof(*i2c_priv), GFP_KERNEL); in atmel_i2c_probe()
348 if (!i2c_priv) in atmel_i2c_probe()
[all …]
Datmel-ecc.c220 struct atmel_i2c_client_priv *i2c_priv, *min_i2c_priv = NULL; in atmel_ecc_i2c_client_alloc() local
232 list_for_each_entry(i2c_priv, &driver_data.i2c_client_list, in atmel_ecc_i2c_client_alloc()
234 tfm_cnt = atomic_read(&i2c_priv->tfm_count); in atmel_ecc_i2c_client_alloc()
237 min_i2c_priv = i2c_priv; in atmel_ecc_i2c_client_alloc()
255 struct atmel_i2c_client_priv *i2c_priv = i2c_get_clientdata(client); in atmel_ecc_i2c_client_free() local
257 atomic_dec(&i2c_priv->tfm_count); in atmel_ecc_i2c_client_free()
329 struct atmel_i2c_client_priv *i2c_priv; in atmel_ecc_probe() local
336 i2c_priv = i2c_get_clientdata(client); in atmel_ecc_probe()
339 list_add_tail(&i2c_priv->i2c_client_list_node, in atmel_ecc_probe()
346 list_del(&i2c_priv->i2c_client_list_node); in atmel_ecc_probe()
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_i2c.c101 static int amdgpu_i2c_get_clock(void *i2c_priv) in amdgpu_i2c_get_clock() argument
103 struct amdgpu_i2c_chan *i2c = i2c_priv; in amdgpu_i2c_get_clock()
116 static int amdgpu_i2c_get_data(void *i2c_priv) in amdgpu_i2c_get_data() argument
118 struct amdgpu_i2c_chan *i2c = i2c_priv; in amdgpu_i2c_get_data()
130 static void amdgpu_i2c_set_clock(void *i2c_priv, int clock) in amdgpu_i2c_set_clock() argument
132 struct amdgpu_i2c_chan *i2c = i2c_priv; in amdgpu_i2c_set_clock()
143 static void amdgpu_i2c_set_data(void *i2c_priv, int data) in amdgpu_i2c_set_data() argument
145 struct amdgpu_i2c_chan *i2c = i2c_priv; in amdgpu_i2c_set_data()
/Linux-v5.10/drivers/gpu/drm/radeon/
Dradeon_i2c.c182 static int get_clock(void *i2c_priv) in get_clock() argument
184 struct radeon_i2c_chan *i2c = i2c_priv; in get_clock()
197 static int get_data(void *i2c_priv) in get_data() argument
199 struct radeon_i2c_chan *i2c = i2c_priv; in get_data()
211 static void set_clock(void *i2c_priv, int clock) in set_clock() argument
213 struct radeon_i2c_chan *i2c = i2c_priv; in set_clock()
224 static void set_data(void *i2c_priv, int data) in set_data() argument
226 struct radeon_i2c_chan *i2c = i2c_priv; in set_data()
/Linux-v5.10/drivers/gpu/drm/ast/
Dast_mode.c1166 static int get_clock(void *i2c_priv) in get_clock() argument
1168 struct ast_i2c_chan *i2c = i2c_priv; in get_clock()
1188 static int get_data(void *i2c_priv) in get_data() argument
1190 struct ast_i2c_chan *i2c = i2c_priv; in get_data()
1210 static void set_clock(void *i2c_priv, int clock) in set_clock() argument
1212 struct ast_i2c_chan *i2c = i2c_priv; in set_clock()
1226 static void set_data(void *i2c_priv, int data) in set_data() argument
1228 struct ast_i2c_chan *i2c = i2c_priv; in set_data()