Lines Matching refs:bit
57 size_t bit = to_posix_mutex_idx(mu); in get_posix_mutex() local
66 if (sys_bitarray_test_bit(&posix_mutex_bitarray, bit, &actually_initialized) < 0) { in get_posix_mutex()
77 return &posix_mutex_pool[bit]; in get_posix_mutex()
83 size_t bit; in to_posix_mutex() local
91 if (sys_bitarray_alloc(&posix_mutex_bitarray, 1, &bit) < 0) { in to_posix_mutex()
97 *mu = mark_pthread_obj_initialized(bit); in to_posix_mutex()
100 m = &posix_mutex_pool[bit]; in to_posix_mutex()
111 size_t bit = -1; in acquire_mutex() local
127 bit = posix_mutex_to_offset(m); in acquire_mutex()
128 type = posix_mutex_type[bit]; in acquire_mutex()
224 size_t bit; in pthread_mutex_init() local
235 bit = posix_mutex_to_offset(m); in pthread_mutex_init()
237 posix_mutex_type[bit] = def_attr.type; in pthread_mutex_init()
239 posix_mutex_type[bit] = attr->type; in pthread_mutex_init()
293 size_t bit; in pthread_mutex_destroy() local
301 bit = to_posix_mutex_idx(*mu); in pthread_mutex_destroy()
302 err = sys_bitarray_free(&posix_mutex_bitarray, 1, bit); in pthread_mutex_destroy()