Searched refs:lock_count (Results 1 – 6 of 6) sorted by relevance
23 static int lock_count; member25 void lock() {++lock_count;} in lock()29 int mutex::lock_count = 0; member in mutex39 assert(mutex::lock_count == 1); in main()44 assert(mutex::lock_count == 1); in main()
25 static int lock_count; member27 void lock_shared() {++lock_count;} in lock_shared()31 int mutex::lock_count = 0; member in mutex44 assert(mutex::lock_count == 1); in main()49 assert(mutex::lock_count == 1); in main()
358 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()
85 int lock_count; member
364 UINT8 lock_count; in rw_t1t_handle_write_rsp() local482 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()
2474 UINT8 lock_count; in rw_t2t_set_dynamic_lock_bits() local2491 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()