Searched refs:sem_ptr (Results 1 – 2 of 2) sorted by relevance
73 sem_t *sem_ptr; in posix_get_new_sem() local81 for (i = 0, sem_ptr = &(posix_sem_pool[0]); in posix_get_new_sem()83 i++, sem_ptr++) in posix_get_new_sem()86 if (sem_ptr->in_use == TX_FALSE) in posix_get_new_sem()90 tx_sem = MAKE_TX_SEM(sem_ptr); in posix_get_new_sem()93 sem_ptr->in_use = TX_TRUE; in posix_get_new_sem()
151 sem_t *sem_ptr; in posix_semaphore_init() local154 sem_ptr = &(posix_sem_pool[0]); in posix_semaphore_init()156 for (i = 0; i < SEM_NSEMS_MAX; i++, sem_ptr++) in posix_semaphore_init()159 sem_ptr->in_use = TX_FALSE; in posix_semaphore_init()160 sem_ptr->count = 0; in posix_semaphore_init()161 sem_ptr->sem_name = ""; in posix_semaphore_init()162 sem_ptr->refCnt = 0; in posix_semaphore_init()163 sem_ptr->psemId = 0; in posix_semaphore_init()164 sem_ptr->unlink_flag = TX_FALSE; in posix_semaphore_init()