Searched refs:sem (Results 1 – 5 of 5) sorted by relevance
43 static SemaphoreP_Status dpl_sem_pool_free(struct k_sem *sem) in dpl_sem_pool_free() argument45 k_mem_slab_free(&sem_slab, (void **)&sem); in dpl_sem_pool_free()68 struct k_sem *sem; in SemaphoreP_create() local75 sem = dpl_sem_pool_alloc(); in SemaphoreP_create()76 if (sem) { in SemaphoreP_create()77 k_sem_init(sem, count, limit); in SemaphoreP_create()80 return (SemaphoreP_Handle)sem; in SemaphoreP_create()143 struct k_sem *sem; in SemaphoreP_construct() local150 sem = (struct k_sem *)handle; in SemaphoreP_construct()151 if (sem) { in SemaphoreP_construct()[all …]
173 if (object->sem[type] != NULL) in CryptoCC32XX_close()175 SemaphoreP_delete(object->sem[type]); in CryptoCC32XX_close()245 object->sem[type] = SemaphoreP_create(1, &semParams); in CryptoCC32XX_open()246 if (object->sem[type] == NULL) in CryptoCC32XX_open()261 object->sem[type] = NULL; in CryptoCC32XX_open()292 if (object->sem[cryptoIndex] == NULL) in CryptoCC32XX_encrypt()297 if (SemaphoreP_OK == SemaphoreP_pend(object->sem[cryptoIndex], in CryptoCC32XX_encrypt()313 SemaphoreP_post(object->sem[cryptoIndex]); in CryptoCC32XX_encrypt()331 if (object->sem[cryptoIndex] == NULL) in CryptoCC32XX_decrypt()336 if (SemaphoreP_OK == SemaphoreP_pend(object->sem[cryptoIndex], in CryptoCC32XX_decrypt()[all …]
378 SemaphoreP_Handle sem[CryptoCC32XX_MAX_TYPES]; member
123 SemaphoreP_Handle sem; in NVSRAM_init() local126 sem = SemaphoreP_createBinary(1); in NVSRAM_init()133 writeSem = sem; in NVSRAM_init()141 if (sem) { in NVSRAM_init()142 SemaphoreP_delete(sem); in NVSRAM_init()
444 SemaphoreP_Handle sem; in GPIO_init() local448 sem = SemaphoreP_createBinary(1); in GPIO_init()451 if (sem == NULL) return; in GPIO_init()456 initSem = sem; in GPIO_init()463 if (sem) SemaphoreP_delete(sem); in GPIO_init()