Searched refs:osal_semaphore_t (Results 1 – 12 of 12) sorted by relevance
26 int osal_sema_init(osal_semaphore_t *sem, int val) in osal_sema_init()44 int osal_down(osal_semaphore_t *sem) in osal_down()57 int osal_down_interruptible(osal_semaphore_t *sem) in osal_down_interruptible()69 int osal_down_trylock(osal_semaphore_t *sem) in osal_down_trylock()81 void osal_up(osal_semaphore_t *sem) in osal_up()89 void osal_sema_destroy(osal_semaphore_t *sem) in osal_sema_destroy()
49 } osal_semaphore_t; typedef50 extern int osal_sema_init(osal_semaphore_t *sem, int val);51 extern int osal_down(osal_semaphore_t *sem);52 extern int osal_down_interruptible(osal_semaphore_t *sem);53 extern int osal_down_trylock(osal_semaphore_t *sem);54 extern void osal_up(osal_semaphore_t *sem);56 extern void osal_sema_destroy(osal_semaphore_t *sem);
52 } osal_semaphore_t; typedef53 extern int osal_sema_init(osal_semaphore_t *sem, int val);54 extern int osal_down(osal_semaphore_t *sem);55 extern int osal_down_interruptible(osal_semaphore_t *sem);56 extern int osal_down_trylock(osal_semaphore_t *sem);57 extern void osal_up(osal_semaphore_t *sem);59 extern void osal_sema_destroy(osal_semaphore_t *sem);
64 osal_semaphore_t mutex_thread;65 osal_semaphore_t mutex_proc;
59 osal_semaphore_t event_mutex; /* lock to avoid competition */
43 static osal_semaphore_t g_hdmi_mutex;
72 #define hdmi_mutex_unlock(a) osal_up((osal_semaphore_t *)&(a))106 hi_s32 result = osal_down((osal_semaphore_t *)&(a)); \
37 osal_semaphore_t sem;
124 osal_semaphore_t ddc_wr_mutex;
27 osal_semaphore_t mach_mutex;
34 static osal_semaphore_t g_sys_dev_sem;