Home
last modified time | relevance | path

Searched refs:ksem_t (Results 1 – 20 of 20) sorted by relevance

/AliOS-Things-master/kernel/rhino/include/
A Dk_sem.h36 } 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 Dk_trace.h99 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 Dk_task_sem.h28 kstat_t krhino_task_sem_create(ktask_t *task, ksem_t *sem, const name_t *name, size_t count);
A Dk_workqueue.h39 ksem_t sem;
A Dk_internal.h83 extern ksem_t g_res_sem;
/AliOS-Things-master/components/osal_aos/rhino/
A Daos_sem.c22 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 Dk_sem.c18 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 Dk_task_sem.c8 kstat_t krhino_task_sem_create(ktask_t *task, ksem_t *sem, const name_t *name, in krhino_task_sem_create()
A Dk_obj.c71 ksem_t g_res_sem;
/AliOS-Things-master/components/kv/src/
A Dkv_adapt.c163 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 Dk_trace.c108 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 Dcpp_semaphore.h79 ksem_t *self(void);
85 ksem_t _sem_def;
/AliOS-Things-master/components/cplusplus/
A Dsemaphore.cpp95 ksem_t *Semaphore::self(void) in self()
/AliOS-Things-master/hardware/chip/haas1000/drivers/rtos/rhino/cmsis/
A Dcmsis_os.h186 typedef ksem_t *osSemaphoreId;
235 ksem_t *sem;
/AliOS-Things-master/hardware/chip/haas1000/hal/
A Duart.c34 ksem_t rx_sem;
35 ksem_t tx_sem;
36 ksem_t rx_irq_bottom_sem;
/AliOS-Things-master/components/debug/src/
A Ddebug_overview.c323 ksem_t *sem; in debug_sem_overview()
342 sem = krhino_list_entry(listnode, ksem_t, sem_item); in debug_sem_overview()
A Ddebug_cpuusage.c25 ksem_t sync_sem;
/AliOS-Things-master/components/ble_host/include/
A Dble_os_port.h290 typedef ksem_t _sem_t;
/AliOS-Things-master/hardware/board/c906/adapter/
A Dcsi_rhino.c915 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 Dh4_driver.c80 ksem_t sem;

Completed in 40 milliseconds