Home
last modified time | relevance | path

Searched refs:num_locks (Results 1 – 4 of 4) sorted by relevance

/drivers/hwspinlock/
Domap_hwspinlock.c80 int num_locks, i, ret; in omap_hwspinlock_probe() local
120 num_locks = i * 32; /* actual number of locks in this device */ in omap_hwspinlock_probe()
122 bank = devm_kzalloc(&pdev->dev, struct_size(bank, lock, num_locks), in omap_hwspinlock_probe()
131 for (i = 0, hwlock = &bank->lock[0]; i < num_locks; i++, hwlock++) in omap_hwspinlock_probe()
135 base_id, num_locks); in omap_hwspinlock_probe()
140 num_locks); in omap_hwspinlock_probe()
Du8500_hsem.c91 int i, num_locks = U8500_MAX_SEMAPHORE; in u8500_hsem_probe() local
108 bank = devm_kzalloc(&pdev->dev, struct_size(bank, lock, num_locks), in u8500_hsem_probe()
115 for (i = 0, hwlock = &bank->lock[0]; i < num_locks; i++, hwlock++) in u8500_hsem_probe()
120 pdata->base_id, num_locks); in u8500_hsem_probe()
Dhwspinlock_core.c380 if (id < 0 || id >= hwlock->bank->num_locks) { in of_hwspin_lock_get_id()
487 const struct hwspinlock_ops *ops, int base_id, int num_locks) in hwspin_lock_register() argument
492 if (!bank || !ops || !dev || !num_locks || !ops->trylock || in hwspin_lock_register()
501 bank->num_locks = num_locks; in hwspin_lock_register()
503 for (i = 0; i < num_locks; i++) { in hwspin_lock_register()
539 for (i = 0; i < bank->num_locks; i++) { in hwspin_lock_unregister()
615 int base_id, int num_locks) in devm_hwspin_lock_register() argument
624 ret = hwspin_lock_register(bank, dev, ops, base_id, num_locks); in devm_hwspin_lock_register()
Dhwspinlock_internal.h58 int num_locks; member