Searched refs:local_device_data (Results 1 – 2 of 2) sorted by relevance
371 struct hash_device_data *local_device_data = NULL; in hash_get_device_data() local382 local_device_data = container_of(device_node, in hash_get_device_data()384 spin_lock(&local_device_data->ctx_lock); in hash_get_device_data()386 if (local_device_data->current_ctx) { in hash_get_device_data()389 local_device_data->current_ctx = ctx; in hash_get_device_data()390 ctx->device = local_device_data; in hash_get_device_data()391 spin_unlock(&local_device_data->ctx_lock); in hash_get_device_data()394 spin_unlock(&local_device_data->ctx_lock); in hash_get_device_data()410 *device_data = local_device_data; in hash_get_device_data()
429 struct cryp_device_data *local_device_data = NULL; in cryp_get_device_data() local442 local_device_data = container_of(device_node, in cryp_get_device_data()444 spin_lock(&local_device_data->ctx_lock); in cryp_get_device_data()446 if (local_device_data->current_ctx) { in cryp_get_device_data()449 local_device_data->current_ctx = ctx; in cryp_get_device_data()450 ctx->device = local_device_data; in cryp_get_device_data()451 spin_unlock(&local_device_data->ctx_lock); in cryp_get_device_data()454 spin_unlock(&local_device_data->ctx_lock); in cryp_get_device_data()470 *device_data = local_device_data; in cryp_get_device_data()