Home
last modified time | relevance | path

Searched refs:sema (Results 1 – 18 of 18) sorted by relevance

/device/soc/rockchip/rk3568/hardware/omx_il/osal/
DRockchip_OSAL_Semaphore.c41 sem_t *sema; in Rockchip_OSAL_SemaphoreCreate() local
43 sema = (sem_t *)Rockchip_OSAL_Malloc(sizeof(sem_t)); in Rockchip_OSAL_SemaphoreCreate()
44 if (!sema) in Rockchip_OSAL_SemaphoreCreate()
47 if (sem_init(sema, 0, 0) != 0) { in Rockchip_OSAL_SemaphoreCreate()
48 Rockchip_OSAL_Free(sema); in Rockchip_OSAL_SemaphoreCreate()
52 *semaphoreHandle = (OMX_HANDLETYPE)sema; in Rockchip_OSAL_SemaphoreCreate()
54 omx_trace("Rockchip_OSAL_SemaphorePost %p", sema); in Rockchip_OSAL_SemaphoreCreate()
60 sem_t *sema = (sem_t *)semaphoreHandle; in Rockchip_OSAL_SemaphoreTerminate() local
62 if (sema == NULL) in Rockchip_OSAL_SemaphoreTerminate()
65 if (sem_destroy(sema) != 0) in Rockchip_OSAL_SemaphoreTerminate()
[all …]
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/bcmdhd/include/
Dlinuxver.h548 struct semaphore sema; member
566 if (down_interruptible(&tsk->sema) == 0) { in binary_sema_down()
597 up(&tsk->sema); in binary_sema_up()
613 sema_init(&((tsk_ctl)->sema), 0); \
635 up(&((tsk_ctl)->sema)); \
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/os_dep/
Dosdep_service.c1425 void _rtw_init_sema(_sema *sema, int init_val) in _rtw_init_sema() argument
1430 sema_init(sema, init_val); in _rtw_init_sema()
1434 sema_init(sema, init_val, "rtw_drv"); in _rtw_init_sema()
1438 KeInitializeSemaphore(sema, init_val, SEMA_UPBND); /* count=0; */ in _rtw_init_sema()
1443 if (*sema == NULL) in _rtw_init_sema()
1444 *sema = CreateSemaphore(NULL, init_val, SEMA_UPBND, NULL); in _rtw_init_sema()
1449 void _rtw_free_sema(_sema *sema) in _rtw_free_sema() argument
1452 sema_destroy(sema); in _rtw_free_sema()
1455 CloseHandle(*sema); in _rtw_free_sema()
1460 void _rtw_up_sema(_sema *sema) in _rtw_up_sema() argument
[all …]
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/bcmdhd/include/
Dlinuxver.h629 struct semaphore sema; member
658 if (down_interruptible(&tsk->sema) == 0) { in binary_sema_down()
691 up(&tsk->sema); in binary_sema_up()
707 sema_init(&((tsk_ctl)->sema), 0); \
735 up(&((tsk_ctl)->sema)); \
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/
Dlinuxver.h592 struct semaphore sema; member
616 if (down_interruptible(&tsk->sema) == 0) { in binary_sema_down()
647 up(&tsk->sema); in binary_sema_up()
662 sema_init(&((tsk_ctl)->sema), 0); \
690 up(&((tsk_ctl)->sema)); \
/device/board/isoftstone/yangfan/kernel/src/driv/net/rockchip_wlan/rkwifi/bcmdhd/include/
Dlinuxver.h612 struct semaphore sema; member
643 if (down_interruptible(&tsk->sema) == 0) { in binary_sema_down()
674 up(&tsk->sema); in binary_sema_up()
689 sema_init(&((tsk_ctl)->sema), 0); \
717 up(&((tsk_ctl)->sema)); \
/device/soc/chipsea/cst85/liteos_m/sdk/modules/wifi/macif/
Dwifi_nx_cmds.h84 rtos_semaphore sema; member
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/bcmdhd/
Dwl_event.c222 if (down_interruptible(&tsk->sema) == 0) { in WL_EXT_EVENT_HANDLER()
302 up(&event_params->thr_event_ctl.sema); in wl_ext_event_send()
Ddhd_linux.c5269 if (down_interruptible(&tsk->sema) == 0) { in dhd_watchdog_thread()
5327 up(&dhd->thr_wdt_ctl.sema); in dhd_watchdog()
5507 if (down_interruptible(&tsk->sema) == 0) { in dhd_rxf_thread()
5691 up(&dhd->thr_rxf_ctl.sema); in dhd_sched_rxf()
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/include/
Dosdep_service.h345 extern void _rtw_init_sema(_sema *sema, int init_val);
346 extern void _rtw_free_sema(_sema *sema);
347 extern void _rtw_up_sema(_sema *sema);
348 extern u32 _rtw_down_sema(_sema *sema);
Dosdep_service_bsd.h76 typedef struct sema _sema;
Drtw_io.h139 _sema sema; member
Ddrv_types.h1710 _sema sema; member
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/bcmdhd/
Dwl_escan.c360 up(&escan->event_tsk.sema); in wl_wakeup_event()
374 while (down_interruptible (&tsk->sema) == 0) { in wl_escan_event_handler()
Ddhd_linux.c6298 if (down_interruptible (&tsk->sema) == 0) { in dhd_watchdog_thread()
6364 up(&dhd->thr_wdt_ctl.sema); in dhd_watchdog()
6399 if (down_interruptible (&tsk->sema) == 0) { in dhd_rpm_state_thread()
6455 up(&dhd->thr_rpm_ctl.sema); in dhd_runtimepm()
6616 if (down_interruptible(&tsk->sema) == 0) { in dhd_rxf_thread()
6831 up(&dhd->thr_rxf_ctl.sema); in dhd_sched_rxf()
6840 up(&dhd->thr_rxf_ctl.sema); in dhd_sched_rxf()
/device/board/isoftstone/yangfan/kernel/src/driv/net/rockchip_wlan/rkwifi/bcmdhd/
Ddhd_linux.c6673 if (down_interruptible (&tsk->sema) == 0) { in dhd_watchdog_thread()
6742 up(&dhd->thr_wdt_ctl.sema); in dhd_watchdog()
6786 if (down_interruptible (&tsk->sema) == 0) { in dhd_rpm_state_thread()
6836 up(&dhd->thr_rpm_ctl.sema); in dhd_runtimepm()
7006 if (down_interruptible(&tsk->sema) == 0) { in dhd_rxf_thread()
7215 up(&dhd->thr_rxf_ctl.sema); in dhd_sched_rxf()
7224 up(&dhd->thr_rxf_ctl.sema); in dhd_sched_rxf()
25221 if (down_interruptible(&tsk->sema) == 0) { in dhd_buzzz_thread()
25269 up(&thr_buzzz_ctl->sema); in dhd_os_sched_buzzz_thread()
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/os_dep/linux/
Dioctl_linux.c11524 _rtw_init_sema(&ploopback->sema, 0);
11934 _rtw_down_sema(&ploopback->sema);
11982 _rtw_up_sema(&ploopback->sema);
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
Ddhd_linux.c5129 if (down_interruptible (&tsk->sema) == 0) { in dhd_watchdog_thread()
5187 up(&dhd->thr_wdt_ctl.sema); in dhd_watchdog()
5359 if (down_interruptible(&tsk->sema) == 0) { in dhd_rxf_thread()
5547 up(&dhd->thr_rxf_ctl.sema); in dhd_sched_rxf()