/AliOS-Things-master/kernel/rhino/include/ |
A D | k_sem.h | 36 } ksem_t; typedef 47 kstat_t krhino_sem_create(ksem_t *sem, const name_t *name, sem_count_t count); 56 kstat_t krhino_sem_del(ksem_t *sem); 68 kstat_t krhino_sem_dyn_create(ksem_t **sem, const name_t *name, sem_count_t count); 77 kstat_t krhino_sem_dyn_del(ksem_t *sem); 87 kstat_t krhino_sem_give(ksem_t *sem); 96 kstat_t krhino_sem_give_all(ksem_t *sem); 106 kstat_t krhino_sem_take(ksem_t *sem, tick_t ticks); 116 kstat_t krhino_sem_count_set(ksem_t *sem, sem_count_t count); 126 kstat_t krhino_sem_count_get(ksem_t *sem, sem_count_t *count);
|
A D | k_trace.h | 99 void trace_sem_create(ktask_t *task, ksem_t *sem); 100 void trace_sem_overflow(ktask_t *task, ksem_t *sem); 101 void trace_sem_cnt_increase(ktask_t *task, ksem_t *sem); 102 void trace_sem_get_success(ktask_t *task, ksem_t *sem); 103 void trace_sem_get_blk(ktask_t *task, ksem_t *sem); 104 void trace_sem_task_wake(ktask_t *task, ktask_t *task_waked_up, ksem_t *sem, uint8_t opt_wake_all); 105 void trace_sem_del(ktask_t *task, ksem_t *sem); 106 void trace_sem_give(ksem_t *sem, uint8_t opt_wake_all);
|
A D | k_task_sem.h | 28 kstat_t krhino_task_sem_create(ktask_t *task, ksem_t *sem, const name_t *name, size_t count);
|
A D | k_workqueue.h | 39 ksem_t sem;
|
A D | k_internal.h | 83 extern ksem_t g_res_sem;
|
/AliOS-Things-master/components/osal_aos/rhino/ |
A D | aos_sem.c | 22 ksem_t *s; in aos_sem_new() 28 s = aos_malloc(sizeof(ksem_t)); in aos_sem_new() 47 ksem_t *s; in aos_sem_create() 54 s = aos_malloc(sizeof(ksem_t)); in aos_sem_create() 75 krhino_sem_del((ksem_t *)*sem); in aos_sem_free() 89 ret = krhino_sem_take((ksem_t *)*sem, RHINO_WAIT_FOREVER); in aos_sem_wait() 91 ret = krhino_sem_take((ksem_t *)*sem, MS2TICK(timeout)); in aos_sem_wait() 103 krhino_sem_give((ksem_t *)*sem); in aos_sem_signal() 112 krhino_sem_give_all((ksem_t *)*sem); in aos_sem_signal_all() 117 ksem_t *k_sem; in aos_sem_is_valid()
|
/AliOS-Things-master/kernel/rhino/ |
A D | k_sem.c | 18 memset(sem, 0, sizeof(ksem_t)); in sem_create() 51 kstat_t krhino_sem_del(ksem_t *sem) in krhino_sem_del() 91 kstat_t krhino_sem_dyn_create(ksem_t **sem, const name_t *name, in krhino_sem_dyn_create() 95 ksem_t *sem_obj; in krhino_sem_dyn_create() 99 sem_obj = krhino_mm_alloc(sizeof(ksem_t)); in krhino_sem_dyn_create() 117 kstat_t krhino_sem_dyn_del(ksem_t *sem) in krhino_sem_dyn_del() 160 static kstat_t sem_give(ksem_t *sem, uint8_t opt_wake_all) in sem_give() 223 kstat_t krhino_sem_give(ksem_t *sem) in krhino_sem_give() 230 kstat_t krhino_sem_give_all(ksem_t *sem) in krhino_sem_give_all() 237 kstat_t krhino_sem_take(ksem_t *sem, tick_t ticks) in krhino_sem_take() [all …]
|
A D | k_task_sem.c | 8 kstat_t krhino_task_sem_create(ktask_t *task, ksem_t *sem, const name_t *name, in krhino_task_sem_create()
|
A D | k_obj.c | 71 ksem_t g_res_sem;
|
/AliOS-Things-master/components/kv/src/ |
A D | kv_adapt.c | 163 ksem_t *s; in kv_sem_create() 165 s = krhino_mm_alloc(sizeof(ksem_t)); in kv_sem_create() 183 ksem_t *m = (ksem_t *)sem; in kv_sem_free() 201 return krhino_sem_take((ksem_t *)sem, RHINO_WAIT_FOREVER); in kv_sem_wait() 206 return krhino_sem_give_all((ksem_t *)sem); in kv_sem_post_all()
|
/AliOS-Things-master/components/trace/ |
A D | k_trace.c | 108 void trace_sem_create(ktask_t *task, ksem_t *sem) in trace_sem_create() 113 void trace_sem_overflow(ktask_t *task, ksem_t *sem) in trace_sem_overflow() 118 void trace_sem_cnt_increase(ktask_t *task, ksem_t *sem) in trace_sem_cnt_increase() 123 void trace_sem_get_success(ktask_t *task, ksem_t *sem) in trace_sem_get_success() 128 void trace_sem_get_blk(ktask_t *task, ksem_t *sem) in trace_sem_get_blk() 133 void trace_sem_task_wake(ktask_t *task, ktask_t *task_waked_up, ksem_t *sem, uint8_t opt_wake_all) in trace_sem_task_wake() 138 void trace_sem_del(ktask_t *task, ksem_t *sem) in trace_sem_del() 143 void trace_sem_give(ksem_t *sem, uint8_t opt_wake_all) in trace_sem_give()
|
/AliOS-Things-master/components/cplusplus/include/ |
A D | cpp_semaphore.h | 79 ksem_t *self(void); 85 ksem_t _sem_def;
|
/AliOS-Things-master/components/cplusplus/ |
A D | semaphore.cpp | 95 ksem_t *Semaphore::self(void) in self()
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/rtos/rhino/cmsis/ |
A D | cmsis_os.h | 186 typedef ksem_t *osSemaphoreId; 235 ksem_t *sem;
|
/AliOS-Things-master/hardware/chip/haas1000/hal/ |
A D | uart.c | 34 ksem_t rx_sem; 35 ksem_t tx_sem; 36 ksem_t rx_irq_bottom_sem;
|
/AliOS-Things-master/components/debug/src/ |
A D | debug_overview.c | 323 ksem_t *sem; in debug_sem_overview() 342 sem = krhino_list_entry(listnode, ksem_t, sem_item); in debug_sem_overview()
|
A D | debug_cpuusage.c | 25 ksem_t sync_sem;
|
/AliOS-Things-master/components/ble_host/include/ |
A D | ble_os_port.h | 290 typedef ksem_t _sem_t;
|
/AliOS-Things-master/hardware/board/c906/adapter/ |
A D | csi_rhino.c | 915 ksem_t *sem_handle; in csi_kernel_sem_new() 916 kstat_t ret = krhino_sem_dyn_create((ksem_t **)&sem_handle, "UserSem", initial_count); in csi_kernel_sem_new()
|
/AliOS-Things-master/components/ble_host/bt_host/hci_driver/ |
A D | h4_driver.c | 80 ksem_t sem;
|