Home
last modified time | relevance | path

Searched refs:semaphore (Results 1 – 25 of 101) sorted by relevance

12345

/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/
Dosal_semaphore.c28 struct semaphore *p = NULL; in osal_sema_init()
34 p = kmalloc(sizeof(struct semaphore), GFP_KERNEL); in osal_sema_init()
46 struct semaphore *p = NULL; in osal_down()
52 p = (struct semaphore *)(sem->sem); in osal_down()
59 struct semaphore *p = NULL; in osal_down_interruptible()
65 p = (struct semaphore *)(sem->sem); in osal_down_interruptible()
71 struct semaphore *p = NULL; in osal_down_trylock()
77 p = (struct semaphore *)(sem->sem); in osal_down_trylock()
83 struct semaphore *p = NULL; in osal_up()
85 p = (struct semaphore *)(sem->sem); in osal_up()
[all …]
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/osal/
Dosal_semaphore.c28 struct semaphore *p = NULL; in osal_sem_init()
35 p = kmalloc(sizeof(struct semaphore), GFP_KERNEL); in osal_sem_init()
50 struct semaphore *p = NULL; in osal_sem_down()
57 p = (struct semaphore *)(sem->sem); in osal_sem_down()
66 struct semaphore *p = NULL; in osal_sem_down_interruptible()
73 p = (struct semaphore *)(sem->sem); in osal_sem_down_interruptible()
81 struct semaphore *p = NULL; in osal_sem_trydown()
88 p = (struct semaphore *)(sem->sem); in osal_sem_trydown()
96 struct semaphore *p = NULL; in osal_sem_up()
103 p = (struct semaphore *)(sem->sem); in osal_sem_up()
[all …]
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/include/linux/
Dsemaphore.h15 struct semaphore { struct
29 struct semaphore name = __SEMAPHORE_INITIALIZER(name, 1) argument
31 static inline void sema_init(struct semaphore *sem, int val) in sema_init()
34 *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val); in sema_init()
38 extern void down(struct semaphore *sem);
39 extern int __must_check down_interruptible(struct semaphore *sem);
40 extern int __must_check down_killable(struct semaphore *sem);
41 extern int __must_check down_trylock(struct semaphore *sem);
42 extern int __must_check down_timeout(struct semaphore *sem, long jiffies);
43 extern void up(struct semaphore *sem);
/device/board/unionman/unionpi_tiger/kernel/drivers/isp/drivers/v4l2_dev/src/platform/
Dsystem_semaphore.c28 struct semaphore *sys_sem = kmalloc( sizeof( struct semaphore ), GFP_KERNEL | __GFP_NOFAIL ); in system_semaphore_init()
37 struct semaphore *sys_sem = (struct semaphore *)sem; in system_semaphore_raise()
44 struct semaphore *sys_sem = (struct semaphore *)sem; in system_semaphore_wait()
55 struct semaphore *sys_sem = (struct semaphore *)sem; in system_semaphore_destroy()
/device/soc/esp/esp32/components/bt/common/osi/
Dfuture.c34 if (osi_sem_new(&ret->semaphore, 1, 0) != 0) { in future_new()
69 osi_sem_give(&future->semaphore); in future_ready()
78 if (future->semaphore) { in future_await()
79 osi_sem_take(&future->semaphore, OSI_SEM_MAX_TIMEOUT); in future_await()
93 if (future->semaphore) { in future_free()
94 osi_sem_free(&future->semaphore); in future_free()
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/middleware/driver/port/
Dos_port.c57 __bk_weak bk_err_t rtos_init_semaphore(beken_semaphore_t* semaphore, int maxCount) in rtos_init_semaphore() argument
59 *(uint32_t *)semaphore = s_sema_bit++; in rtos_init_semaphore()
64 __bk_weak bk_err_t rtos_init_semaphore_ex(beken_semaphore_t* semaphore, int maxCount, int init_coun… in rtos_init_semaphore_ex() argument
69 __bk_weak bk_err_t rtos_get_semaphore(beken_semaphore_t* semaphore, uint32_t timeout_ms) in rtos_get_semaphore() argument
71 uint32_t sema_bit = *(uint32_t *)semaphore; in rtos_get_semaphore()
83 __bk_weak int rtos_get_semaphore_count(beken_semaphore_t* semaphore) in rtos_get_semaphore_count() argument
88 __bk_weak int rtos_set_semaphore(beken_semaphore_t* semaphore) in rtos_set_semaphore() argument
90 uint32_t sema_bit = *(uint32_t *)semaphore; in rtos_set_semaphore()
96 __bk_weak bk_err_t rtos_deinit_semaphore(beken_semaphore_t* semaphore) in rtos_deinit_semaphore() argument
/device/soc/chipsea/cst85/liteos_m/sdk/modules/rtos/src/os_al/
Drtos_al.c263 int rtos_semaphore_create(rtos_semaphore *semaphore, int max_count, int init_count) in rtos_semaphore_create() argument
265 *semaphore = osSemaphoreNew(max_count, init_count, NULL); in rtos_semaphore_create()
266 if (*semaphore == NULL) { in rtos_semaphore_create()
273 void rtos_semaphore_delete(rtos_semaphore semaphore) in rtos_semaphore_delete() argument
275 osSemaphoreDelete(semaphore); in rtos_semaphore_delete()
278 int rtos_semaphore_get_count(rtos_semaphore semaphore) in rtos_semaphore_get_count() argument
280 return osSemaphoreGetCount(semaphore); in rtos_semaphore_get_count()
283 int rtos_semaphore_wait(rtos_semaphore semaphore, int timeout) in rtos_semaphore_wait() argument
285 osStatus_t ret = osSemaphoreAcquire(semaphore, LOS_MS2Tick(timeout)); in rtos_semaphore_wait()
289 int rtos_semaphore_signal(rtos_semaphore semaphore, bool isr) in rtos_semaphore_signal() argument
[all …]
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/components/bk_os/liteos_m_mst/
Drtos_pub.c361 bk_err_t rtos_init_semaphore(beken_semaphore_t *semaphore, int max_count ) in rtos_init_semaphore() argument
363 return rtos_init_semaphore_ex(semaphore, max_count, 0); in rtos_init_semaphore()
366 bk_err_t rtos_init_semaphore_ex(beken_semaphore_t *semaphore, int max_count, int init_count) in rtos_init_semaphore_ex() argument
372 *semaphore = (beken_semaphore_t)NULL; in rtos_init_semaphore_ex()
384 *semaphore = (beken_semaphore_t)(GET_SEM(uwSemId)); in rtos_init_semaphore_ex()
386 *semaphore = (beken_semaphore_t)NULL; in rtos_init_semaphore_ex()
390 return ( *semaphore != NULL ) ? kNoErr : kGeneralErr; in rtos_init_semaphore_ex()
393 bk_err_t rtos_get_semaphore(beken_semaphore_t *semaphore, uint32_t timeout_ms ) in rtos_get_semaphore() argument
398 BK_ASSERT(semaphore); /* ASSERT VERIFIED */ in rtos_get_semaphore()
404 if (*semaphore == NULL) { in rtos_get_semaphore()
[all …]
/device/soc/asrmicro/asr582x/liteos_m/sdk/rtos/
Dlega_rtos.c157 OSStatus lega_rtos_init_semaphore(lega_semaphore_t *semaphore, int count) in lega_rtos_init_semaphore() argument
167 *semaphore = (lega_semaphore_t *)semId; in lega_rtos_init_semaphore()
177 OSStatus lega_rtos_get_semaphore(lega_semaphore_t *semaphore, uint32_t timeout_ms) in lega_rtos_get_semaphore() argument
181 ret = osSemaphoreAcquire((osSemaphoreId_t)(*semaphore), timeout_ms); in lega_rtos_get_semaphore()
190 FLASH_COMMON2_SEG OSStatus lega_rtos_set_semaphore(lega_semaphore_t *semaphore) in lega_rtos_set_semaphore() argument
194 ret = osSemaphoreRelease((osSemaphoreId_t)(*semaphore)); in lega_rtos_set_semaphore()
203 OSStatus lega_rtos_deinit_semaphore(lega_semaphore_t *semaphore) in lega_rtos_deinit_semaphore() argument
207 ret = osSemaphoreDelete((osSemaphoreId_t)(*semaphore)); in lega_rtos_deinit_semaphore()
212 *semaphore = NULL; in lega_rtos_deinit_semaphore()
216 OSBool lega_rtos_semaphore_pending_task_null(lega_semaphore_t *semaphore) in lega_rtos_semaphore_pending_task_null() argument
[all …]
Dlega_rtos.h197 OSStatus lega_rtos_init_semaphore(lega_semaphore_t *semaphore, int count);
206 OSStatus lega_rtos_set_semaphore(lega_semaphore_t *semaphore);
220 OSStatus lega_rtos_get_semaphore(lega_semaphore_t *semaphore, uint32_t timeout_ms);
231 OSStatus lega_rtos_deinit_semaphore(lega_semaphore_t *semaphore);
242 OSBool lega_rtos_semaphore_pending_task_null(lega_semaphore_t *semaphore);
/device/soc/chipsea/cst85/liteos_m/sdk/modules/rtos/api/
Drtos_ohos_al.h392 int rtos_semaphore_create(rtos_semaphore *semaphore, int max_count, int init_count);
403 int rtos_semaphore_get_count(rtos_semaphore semaphore);
412 void rtos_semaphore_delete(rtos_semaphore semaphore);
425 int rtos_semaphore_wait(rtos_semaphore semaphore, int timeout);
437 int rtos_semaphore_signal(rtos_semaphore semaphore, bool isr);
/device/soc/asrmicro/asr582x/liteos_m/sdk/drivers/ble_inc/
Dsonata_ble_hook.h61 int (*pf_init_semaphore)(void **semaphore, int value);
62 int (*pf_get_semaphore)(void **semaphore, uint32_t timeout_ms);
63 int (*pf_set_semaphore)(void **semaphore);
Darch.h240 int rtos_init_semaphore(void **semaphore, int value);
243 int rtos_get_semaphore(void **semaphore, uint32_t timeout_ms);
246 int rtos_set_semaphore(void **semaphore);
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/include/os/
Dos.h389 bk_err_t rtos_init_semaphore(beken_semaphore_t *semaphore, int max_count);
400 bk_err_t rtos_init_semaphore_ex(beken_semaphore_t *semaphore, int max_count, int init_count);
410 bk_err_t rtos_set_semaphore(beken_semaphore_t *semaphore);
425 bk_err_t rtos_get_semaphore(beken_semaphore_t *semaphore, uint32_t timeout_ms);
428 int rtos_get_semaphore_count(beken_semaphore_t *semaphore);
440 bk_err_t rtos_deinit_semaphore(beken_semaphore_t *semaphore);
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/wlan/
Dscan.h31 struct semaphore lock;
45 struct semaphore status_lock; /*sync scan request and result*/
Detf.h53 struct semaphore proc_sem;
58 struct semaphore send_lock;
69 struct semaphore etf_lock;
Dxradio.h278 struct semaphore conf_lock;
347 struct semaphore bh_sem;
385 struct semaphore wsm_cmd_sema;
391 struct semaphore tx_lock_sem;
393 struct semaphore dtor_lock;
445 struct semaphore wsm_oper_lock;
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/g2d/g2d_legacy/
Dg2d_driver_i.h70 struct semaphore *g2d_finished_sem;
71 struct semaphore *event_sem;
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/g2d/g2d_rcq/
Dg2d_driver_i.h76 struct semaphore *g2d_finished_sem;
77 struct semaphore *event_sem;
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/bcmdhd/
Dbcmsdh_sdmmc_linux.c301 static struct semaphore *notify_semaphore = NULL;
326 int sdio_func_reg_notify(void* semaphore) in sdio_func_reg_notify() argument
328 notify_semaphore = semaphore; in sdio_func_reg_notify()
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
Dbcmsdh_sdmmc_linux.c277 static struct semaphore *notify_semaphore = NULL;
302 int sdio_func_reg_notify(void* semaphore) in sdio_func_reg_notify() argument
304 notify_semaphore = semaphore; in sdio_func_reg_notify()
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/bcmdhd/
Dbcmsdh_sdmmc_linux.c291 static struct semaphore *notify_semaphore = NULL;
316 int sdio_func_reg_notify(void *semaphore) in sdio_func_reg_notify() argument
318 notify_semaphore = semaphore; in sdio_func_reg_notify()
/device/board/isoftstone/yangfan/kernel/src/driv/net/rockchip_wlan/rkwifi/bcmdhd/
Dbcmsdh_sdmmc_linux.c280 static struct semaphore *notify_semaphore = NULL;
306 int sdio_func_reg_notify(void* semaphore) in sdio_func_reg_notify() argument
308 notify_semaphore = semaphore; in sdio_func_reg_notify()
Ddhd_linux_priv.h85 struct semaphore proto_sem;
118 struct semaphore sdsem;
378 struct semaphore fw_download_lock;
/device/soc/esp/esp32/components/bt/common/osi/include/osi/
Dfuture.h26 osi_sem_t semaphore; // NULL semaphore means immediate future member

12345