Searched refs:device_allocation (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/crypto/ux500/cryp/
H A Dcryp_core.c52 * @device_allocation: A semaphore initialized with number of devices.
56 struct semaphore device_allocation; member in struct:cryp_driver_data
432 ret = down_interruptible(&driver_data.device_allocation); cryp_get_device_data()
463 * device_allocation, is therefore decremented by not doing cryp_get_device_data()
464 * an up(device_allocation). cryp_get_device_data()
873 up(&driver_data.device_allocation); ablk_dma_crypt()
939 up(&driver_data.device_allocation); ablk_crypt()
1532 up(&driver_data.device_allocation); ux500_cryp_probe()
1586 if (down_trylock(&driver_data.device_allocation)) ux500_cryp_remove()
1596 up(&driver_data.device_allocation); ux500_cryp_remove()
1656 if (down_trylock(&driver_data.device_allocation)) ux500_cryp_shutdown()
1721 if (down_interruptible(&driver_data.device_allocation)) ux500_cryp_suspend()
1758 up(&driver_data.device_allocation); ux500_cryp_resume()
1797 sema_init(&driver_data.device_allocation, 0); ux500_cryp_mod_init()
/linux-4.1.27/drivers/crypto/ux500/hash/
H A Dhash_core.c79 * @device_allocation: A semaphore initialized with number of devices.
83 struct semaphore device_allocation; member in struct:hash_driver_data
118 up(&driver_data.device_allocation); release_hash_device()
389 ret = down_interruptible(&driver_data.device_allocation); hash_get_device_data()
419 * device_allocation, is therefore decremented by not doing hash_get_device_data()
420 * an up(device_allocation). hash_get_device_data()
1737 up(&driver_data.device_allocation); ux500_hash_probe()
1790 if (down_trylock(&driver_data.device_allocation)) ux500_hash_remove()
1800 up(&driver_data.device_allocation); ux500_hash_remove()
1853 if (down_trylock(&driver_data.device_allocation)) ux500_hash_shutdown()
1907 if (down_interruptible(&driver_data.device_allocation)) ux500_hash_suspend()
1944 up(&driver_data.device_allocation); ux500_hash_resume()
1980 sema_init(&driver_data.device_allocation, 0); ux500_hash_mod_init()

Completed in 86 milliseconds