/dports/databases/mariadb105-server/mariadb-10.5.15/storage/tokudb/PerconaFT/locktree/tests/ |
H A D | locktree_simple_lock.cc | 104 const int64_t num_locks = 10000; in test_simple_lock() local 106 int64_t *keys = (int64_t *) toku_malloc(num_locks * sizeof(int64_t)); in test_simple_lock() 107 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock() 110 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock() 111 int64_t k = rand() % num_locks; in test_simple_lock() 118 r = mgr.set_max_lock_memory((num_locks + 1) * 500); in test_simple_lock() 126 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock() 132 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
|
/dports/databases/mariadb105-client/mariadb-10.5.15/storage/tokudb/PerconaFT/locktree/tests/ |
H A D | locktree_simple_lock.cc | 104 const int64_t num_locks = 10000; in test_simple_lock() local 106 int64_t *keys = (int64_t *) toku_malloc(num_locks * sizeof(int64_t)); in test_simple_lock() 107 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock() 110 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock() 111 int64_t k = rand() % num_locks; in test_simple_lock() 118 r = mgr.set_max_lock_memory((num_locks + 1) * 500); in test_simple_lock() 126 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock() 132 for (int64_t i = 0; i < num_locks; i++) { in test_simple_lock()
|
/dports/net/samba412/samba-4.12.15/source3/smbd/ |
H A D | blocking.c | 34 uint16_t num_locks, in smbd_do_locks_try() argument 112 uint16_t num_locks; member 125 uint16_t num_locks, 254 uint16_t num_locks, in smbd_smb1_do_locks_send() argument 272 state->num_locks = num_locks; in smbd_smb1_do_locks_send() 352 uint16_t num_locks, in smbd_smb1_do_locks_check_blocked() argument 398 uint16_t num_locks, in smbd_smb1_do_locks_check() argument 423 SMB_ASSERT(blocked_state->num_locks == num_locks); in smbd_smb1_do_locks_check() 435 num_locks, in smbd_smb1_do_locks_check() 449 num_locks, in smbd_smb1_do_locks_check() [all …]
|
/dports/devel/py-distributed/distributed-2021.11.2/distributed/ |
H A D | multi_lock.py | 51 def _request_locks(self, locks: list[str], id: Hashable, num_locks: int) -> bool: 70 assert len(locks) >= num_locks and num_locks > 0 71 self.requests_left[id] = num_locks 116 self, comm=None, locks=None, id=None, timeout=None, num_locks=None argument 119 if not self._request_locks(locks, id, num_locks): 173 def acquire(self, blocking=True, timeout=None, num_locks=None): argument 210 num_locks=num_locks or len(self.names),
|
/dports/devel/ga/ga-5.8/armci/src-gemini/ |
H A D | locks.c | 21 void CreateInitLocks(int num_locks, lockset_t *plockid) in CreateInitLocks() argument 27 locks_per_proc = (num_locks*armci_nclus)/armci_nproc + 1; in CreateInitLocks() 60 void InitLocks(int num_locks, lockset_t lockid) in InitLocks() argument 77 void CreateInitLocks(int num_locks, lockset_t *lockid) in CreateInitLocks() argument 80 void InitLocks(int num_locks, lockset_t lockid) in InitLocks() argument
|
/dports/devel/ga/ga-5.8/armci/src-portals/ |
H A D | locks.c | 21 void CreateInitLocks(int num_locks, lockset_t *plockid) in CreateInitLocks() argument 27 locks_per_proc = (num_locks*armci_nclus)/armci_nproc + 1; in CreateInitLocks() 60 void InitLocks(int num_locks, lockset_t lockid) in InitLocks() argument 77 void CreateInitLocks(int num_locks, lockset_t *lockid) in CreateInitLocks() argument 80 void InitLocks(int num_locks, lockset_t lockid) in InitLocks() argument
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/hwspinlock/ |
H A D | omap_hwspinlock.c | 81 int num_locks, i, ret; in omap_hwspinlock_probe() local 121 num_locks = i * 32; /* actual number of locks in this device */ in omap_hwspinlock_probe() 123 bank = devm_kzalloc(&pdev->dev, struct_size(bank, lock, num_locks), in omap_hwspinlock_probe() 132 for (i = 0, hwlock = &bank->lock[0]; i < num_locks; i++, hwlock++) in omap_hwspinlock_probe() 136 base_id, num_locks); in omap_hwspinlock_probe() 141 num_locks); in omap_hwspinlock_probe()
|
H A D | u8500_hsem.c | 91 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()
|
H A D | hwspinlock_core.c | 380 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()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/hwspinlock/ |
H A D | omap_hwspinlock.c | 81 int num_locks, i, ret; in omap_hwspinlock_probe() local 121 num_locks = i * 32; /* actual number of locks in this device */ in omap_hwspinlock_probe() 123 bank = devm_kzalloc(&pdev->dev, struct_size(bank, lock, num_locks), in omap_hwspinlock_probe() 132 for (i = 0, hwlock = &bank->lock[0]; i < num_locks; i++, hwlock++) in omap_hwspinlock_probe() 136 base_id, num_locks); in omap_hwspinlock_probe() 141 num_locks); in omap_hwspinlock_probe()
|
H A D | u8500_hsem.c | 91 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()
|
H A D | hwspinlock_core.c | 380 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()
|
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/hwspinlock/ |
H A D | omap_hwspinlock.c | 81 int num_locks, i, ret; in omap_hwspinlock_probe() local 121 num_locks = i * 32; /* actual number of locks in this device */ in omap_hwspinlock_probe() 123 bank = devm_kzalloc(&pdev->dev, struct_size(bank, lock, num_locks), in omap_hwspinlock_probe() 132 for (i = 0, hwlock = &bank->lock[0]; i < num_locks; i++, hwlock++) in omap_hwspinlock_probe() 136 base_id, num_locks); in omap_hwspinlock_probe() 141 num_locks); in omap_hwspinlock_probe()
|
H A D | u8500_hsem.c | 91 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()
|
H A D | hwspinlock_core.c | 380 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()
|
/dports/net/samba412/samba-4.12.15/source4/torture/raw/ |
H A D | pingpong.c | 165 int num_locks; in torture_ping_pong() local 184 num_locks = torture_setting_int(torture, "num_locks", -1); in torture_ping_pong() 185 if (num_locks == -1) { in torture_ping_pong() 205 write_byte(cli, fd, 0, num_locks); in torture_ping_pong() 210 val = talloc_zero_array(mem_ctx, uint8_t, num_locks); in torture_ping_pong() 215 lock_byte(cli, fd, (i+1)%num_locks, lock_timeout); in torture_ping_pong() 231 i = (i+1)%num_locks; in torture_ping_pong() 233 if (loops>num_locks && incr!=last_incr) { in torture_ping_pong()
|
/dports/lang/clover/mesa-21.3.6/src/gallium/frontends/nine/ |
H A D | nine_memory_helper.c | 412 region->num_locks = 0; in allocate_region() 486 if (region->num_locks == 0) { in nine_flush_pending_releases() 514 if (region->num_locks != 0) { in nine_flush_pending_frees() 515 region->num_locks = 0; in nine_flush_pending_frees() 556 assert(region->num_locks == 0); in remove_allocation() 882 region->num_locks++; in nine_get_pointer() 884 if (region->num_locks == 1) in nine_get_pointer() 913 region->num_locks--; in nine_pointer_weakrelease() 914 if (region->num_locks == 0) { in nine_pointer_weakrelease() 930 region->num_locks--; in nine_pointer_strongrelease() [all …]
|
/dports/graphics/libosmesa/mesa-21.3.6/src/gallium/frontends/nine/ |
H A D | nine_memory_helper.c | 412 region->num_locks = 0; in allocate_region() 486 if (region->num_locks == 0) { in nine_flush_pending_releases() 514 if (region->num_locks != 0) { in nine_flush_pending_frees() 515 region->num_locks = 0; in nine_flush_pending_frees() 556 assert(region->num_locks == 0); in remove_allocation() 882 region->num_locks++; in nine_get_pointer() 884 if (region->num_locks == 1) in nine_get_pointer() 913 region->num_locks--; in nine_pointer_weakrelease() 914 if (region->num_locks == 0) { in nine_pointer_weakrelease() 930 region->num_locks--; in nine_pointer_strongrelease() [all …]
|
/dports/graphics/libosmesa-gallium/mesa-21.3.6/src/gallium/frontends/nine/ |
H A D | nine_memory_helper.c | 412 region->num_locks = 0; in allocate_region() 486 if (region->num_locks == 0) { in nine_flush_pending_releases() 514 if (region->num_locks != 0) { in nine_flush_pending_frees() 515 region->num_locks = 0; in nine_flush_pending_frees() 556 assert(region->num_locks == 0); in remove_allocation() 882 region->num_locks++; in nine_get_pointer() 884 if (region->num_locks == 1) in nine_get_pointer() 913 region->num_locks--; in nine_pointer_weakrelease() 914 if (region->num_locks == 0) { in nine_pointer_weakrelease() 930 region->num_locks--; in nine_pointer_strongrelease() [all …]
|
/dports/graphics/mesa-gallium-xa/mesa-21.3.6/src/gallium/frontends/nine/ |
H A D | nine_memory_helper.c | 412 region->num_locks = 0; in allocate_region() 486 if (region->num_locks == 0) { in nine_flush_pending_releases() 514 if (region->num_locks != 0) { in nine_flush_pending_frees() 515 region->num_locks = 0; in nine_flush_pending_frees() 556 assert(region->num_locks == 0); in remove_allocation() 882 region->num_locks++; in nine_get_pointer() 884 if (region->num_locks == 1) in nine_get_pointer() 913 region->num_locks--; in nine_pointer_weakrelease() 914 if (region->num_locks == 0) { in nine_pointer_weakrelease() 930 region->num_locks--; in nine_pointer_strongrelease() [all …]
|
/dports/graphics/mesa-gallium-vdpau/mesa-21.3.6/src/gallium/frontends/nine/ |
H A D | nine_memory_helper.c | 412 region->num_locks = 0; in allocate_region() 486 if (region->num_locks == 0) { in nine_flush_pending_releases() 514 if (region->num_locks != 0) { in nine_flush_pending_frees() 515 region->num_locks = 0; in nine_flush_pending_frees() 556 assert(region->num_locks == 0); in remove_allocation() 882 region->num_locks++; in nine_get_pointer() 884 if (region->num_locks == 1) in nine_get_pointer() 913 region->num_locks--; in nine_pointer_weakrelease() 914 if (region->num_locks == 0) { in nine_pointer_weakrelease() 930 region->num_locks--; in nine_pointer_strongrelease() [all …]
|
/dports/graphics/mesa-libs/mesa-21.3.6/src/gallium/frontends/nine/ |
H A D | nine_memory_helper.c | 412 region->num_locks = 0; in allocate_region() 486 if (region->num_locks == 0) { in nine_flush_pending_releases() 514 if (region->num_locks != 0) { in nine_flush_pending_frees() 515 region->num_locks = 0; in nine_flush_pending_frees() 556 assert(region->num_locks == 0); in remove_allocation() 882 region->num_locks++; in nine_get_pointer() 884 if (region->num_locks == 1) in nine_get_pointer() 913 region->num_locks--; in nine_pointer_weakrelease() 914 if (region->num_locks == 0) { in nine_pointer_weakrelease() 930 region->num_locks--; in nine_pointer_strongrelease() [all …]
|
/dports/graphics/mesa-dri-gallium/mesa-21.3.6/src/gallium/frontends/nine/ |
H A D | nine_memory_helper.c | 412 region->num_locks = 0; in allocate_region() 486 if (region->num_locks == 0) { in nine_flush_pending_releases() 514 if (region->num_locks != 0) { in nine_flush_pending_frees() 515 region->num_locks = 0; in nine_flush_pending_frees() 556 assert(region->num_locks == 0); in remove_allocation() 882 region->num_locks++; in nine_get_pointer() 884 if (region->num_locks == 1) in nine_get_pointer() 913 region->num_locks--; in nine_pointer_weakrelease() 914 if (region->num_locks == 0) { in nine_pointer_weakrelease() 930 region->num_locks--; in nine_pointer_strongrelease() [all …]
|
/dports/graphics/mesa-gallium-va/mesa-21.3.6/src/gallium/frontends/nine/ |
H A D | nine_memory_helper.c | 412 region->num_locks = 0; in allocate_region() 486 if (region->num_locks == 0) { in nine_flush_pending_releases() 514 if (region->num_locks != 0) { in nine_flush_pending_frees() 515 region->num_locks = 0; in nine_flush_pending_frees() 556 assert(region->num_locks == 0); in remove_allocation() 882 region->num_locks++; in nine_get_pointer() 884 if (region->num_locks == 1) in nine_get_pointer() 913 region->num_locks--; in nine_pointer_weakrelease() 914 if (region->num_locks == 0) { in nine_pointer_weakrelease() 930 region->num_locks--; in nine_pointer_strongrelease() [all …]
|
/dports/graphics/mesa-devel/mesa-22.0-branchpoint-2059-ge8a63cf61ec/src/gallium/frontends/nine/ |
H A D | nine_memory_helper.c | 412 region->num_locks = 0; in allocate_region() 486 if (region->num_locks == 0) { in nine_flush_pending_releases() 514 if (region->num_locks != 0) { in nine_flush_pending_frees() 515 region->num_locks = 0; in nine_flush_pending_frees() 556 assert(region->num_locks == 0); in remove_allocation() 882 region->num_locks++; in nine_get_pointer() 884 if (region->num_locks == 1) in nine_get_pointer() 913 region->num_locks--; in nine_pointer_weakrelease() 914 if (region->num_locks == 0) { in nine_pointer_weakrelease() 930 region->num_locks--; in nine_pointer_strongrelease() [all …]
|