Home
last modified time | relevance | path

Searched refs:lock_count (Results 1 – 6 of 6) sorted by relevance

/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/
Drelease.pass.cpp23 static int lock_count; member
25 void lock() {++lock_count;} in lock()
29 int mutex::lock_count = 0; member in mutex
39 assert(mutex::lock_count == 1); in main()
44 assert(mutex::lock_count == 1); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/
Drelease.pass.cpp25 static int lock_count; member
27 void lock_shared() {++lock_count;} in lock_shared()
31 int mutex::lock_count = 0; member in mutex
44 assert(mutex::lock_count == 1); in main()
49 assert(mutex::lock_count == 1); in main()
/external/drm_gralloc/
Dgralloc_drm.cpp358 if (bo->lock_count && (bo->locked_for & usage) != usage) in gralloc_drm_bo_lock()
376 bo->lock_count++; in gralloc_drm_bo_lock()
390 if (!bo->lock_count) in gralloc_drm_bo_unlock()
396 bo->lock_count--; in gralloc_drm_bo_unlock()
397 if (!bo->lock_count) in gralloc_drm_bo_unlock()
Dgralloc_drm_priv.h85 int lock_count; member
/external/libnfc-nci/src/nfc/tags/
Drw_t1t_ndef.c364 UINT8 lock_count; in rw_t1t_handle_write_rsp() local
482 lock_count = num_locks + 1; in rw_t1t_handle_write_rsp()
483 while (lock_count < p_t1t->num_lockbytes) in rw_t1t_handle_write_rsp()
485 …next_offset = p_t1t->lock_tlv[p_t1t->lockbyte[lock_count].tlv_index].offset + p_t1t->lockbyte[lock… in rw_t1t_handle_write_rsp()
486 …te[lock_count].byte_index + 1)* 8 <= p_t1t->lock_tlv[p_t1t->lockbyte[lock_count].tlv_index].num_bi… in rw_t1t_handle_write_rsp()
494 lock_count ++; in rw_t1t_handle_write_rsp()
501 while (lock_count > num_locks) in rw_t1t_handle_write_rsp()
503 … p_t1t->lockbyte[lock_count - 1].lock_status = RW_T1T_LOCK_UPDATE_INITIATED; in rw_t1t_handle_write_rsp()
504 lock_count --; in rw_t1t_handle_write_rsp()
Drw_t2t_ndef.c2474 UINT8 lock_count; in rw_t2t_set_dynamic_lock_bits() local
2491 lock_count = num_locks + 1; in rw_t2t_set_dynamic_lock_bits()
2494 while (lock_count < p_t2t->num_lockbytes) in rw_t2t_set_dynamic_lock_bits()
2496 …set = p_t2t->lock_tlv[p_t2t->lockbyte[lock_count].tlv_index].offset + p_t2t->lockbyte[loc… in rw_t2t_set_dynamic_lock_bits()
2499 …are_locks = ((p_t2t->lockbyte[lock_count].byte_index + 1) * TAG_BITS_PER_BYTE <= p_t2t->lock_tlv[p… in rw_t2t_set_dynamic_lock_bits()
2500 …l_bits_are_locks ? TAG_BITS_PER_BYTE : p_t2t->lock_tlv[p_t2t->lockbyte[lock_count].tlv_index].num_… in rw_t2t_set_dynamic_lock_bits()
2508 lock_count ++; in rw_t2t_set_dynamic_lock_bits()
2515 while (lock_count > num_locks) in rw_t2t_set_dynamic_lock_bits()
2518 p_t2t->lockbyte[lock_count - 1].lock_status = RW_T2T_LOCK_UPDATE_INITIATED; in rw_t2t_set_dynamic_lock_bits()
2519 lock_count --; in rw_t2t_set_dynamic_lock_bits()