Home
last modified time | relevance | path

Searched refs:local_device_data (Results 1 – 2 of 2) sorted by relevance

/linux-4.1.27/drivers/crypto/ux500/hash/
Dhash_core.c386 struct hash_device_data *local_device_data = NULL; in hash_get_device_data() local
397 local_device_data = container_of(device_node, in hash_get_device_data()
399 spin_lock(&local_device_data->ctx_lock); in hash_get_device_data()
401 if (local_device_data->current_ctx) { in hash_get_device_data()
404 local_device_data->current_ctx = ctx; in hash_get_device_data()
405 ctx->device = local_device_data; in hash_get_device_data()
406 spin_unlock(&local_device_data->ctx_lock); in hash_get_device_data()
409 spin_unlock(&local_device_data->ctx_lock); in hash_get_device_data()
425 *device_data = local_device_data; in hash_get_device_data()
/linux-4.1.27/drivers/crypto/ux500/cryp/
Dcryp_core.c428 struct cryp_device_data *local_device_data = NULL; in cryp_get_device_data() local
441 local_device_data = container_of(device_node, in cryp_get_device_data()
443 spin_lock(&local_device_data->ctx_lock); in cryp_get_device_data()
445 if (local_device_data->current_ctx) { in cryp_get_device_data()
448 local_device_data->current_ctx = ctx; in cryp_get_device_data()
449 ctx->device = local_device_data; in cryp_get_device_data()
450 spin_unlock(&local_device_data->ctx_lock); in cryp_get_device_data()
453 spin_unlock(&local_device_data->ctx_lock); in cryp_get_device_data()
469 *device_data = local_device_data; in cryp_get_device_data()