Home
last modified time | relevance | path

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

/linux-6.1.9/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()
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()
[all …]
Datmel-ecc.c207 struct atmel_i2c_client_priv *i2c_priv, *min_i2c_priv = NULL; in atmel_ecc_i2c_client_alloc() local
219 list_for_each_entry(i2c_priv, &driver_data.i2c_client_list, in atmel_ecc_i2c_client_alloc()
221 tfm_cnt = atomic_read(&i2c_priv->tfm_count); in atmel_ecc_i2c_client_alloc()
224 min_i2c_priv = i2c_priv; in atmel_ecc_i2c_client_alloc()
242 struct atmel_i2c_client_priv *i2c_priv = i2c_get_clientdata(client); in atmel_ecc_i2c_client_free() local
244 atomic_dec(&i2c_priv->tfm_count); in atmel_ecc_i2c_client_free()
317 struct atmel_i2c_client_priv *i2c_priv; in atmel_ecc_probe() local
324 i2c_priv = i2c_get_clientdata(client); in atmel_ecc_probe()
327 list_add_tail(&i2c_priv->i2c_client_list_node, in atmel_ecc_probe()
334 list_del(&i2c_priv->i2c_client_list_node); in atmel_ecc_probe()
[all …]
/linux-6.1.9/drivers/gpu/drm/ast/
Dast_i2c.c29 static void ast_i2c_setsda(void *i2c_priv, int data) in ast_i2c_setsda() argument
31 struct ast_i2c_chan *i2c = i2c_priv; in ast_i2c_setsda()
45 static void ast_i2c_setscl(void *i2c_priv, int clock) in ast_i2c_setscl() argument
47 struct ast_i2c_chan *i2c = i2c_priv; in ast_i2c_setscl()
61 static int ast_i2c_getsda(void *i2c_priv) in ast_i2c_getsda() argument
63 struct ast_i2c_chan *i2c = i2c_priv; in ast_i2c_getsda()
83 static int ast_i2c_getscl(void *i2c_priv) in ast_i2c_getscl() argument
85 struct ast_i2c_chan *i2c = i2c_priv; in ast_i2c_getscl()
/linux-6.1.9/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-6.1.9/drivers/gpu/drm/radeon/
Dradeon_i2c.c174 static int get_clock(void *i2c_priv) in get_clock() argument
176 struct radeon_i2c_chan *i2c = i2c_priv; in get_clock()
189 static int get_data(void *i2c_priv) in get_data() argument
191 struct radeon_i2c_chan *i2c = i2c_priv; in get_data()
203 static void set_clock(void *i2c_priv, int clock) in set_clock() argument
205 struct radeon_i2c_chan *i2c = i2c_priv; in set_clock()
216 static void set_data(void *i2c_priv, int data) in set_data() argument
218 struct radeon_i2c_chan *i2c = i2c_priv; in set_data()