/device/soc/esp/esp32/components/bt/common/osi/ |
D | thread.c | 37 osi_thread_t *thread; member 52 osi_thread_t *thread = start->thread; in osi_thread_run() local 59 osi_sem_take(&thread->work_sem, OSI_SEM_MAX_TIMEOUT); in osi_thread_run() 61 if (thread->stop) { in osi_thread_run() 65 while (!thread->stop && idx < thread->work_queue_num) { in osi_thread_run() 66 work_item_t *item = fixed_queue_dequeue(thread->work_queues[idx], 0); in osi_thread_run() 78 thread->thread_handle = NULL; in osi_thread_run() 79 osi_sem_give(&thread->stop_sem); in osi_thread_run() 84 static int osi_thread_join(osi_thread_t *thread, uint32_t wait_ms) in osi_thread_join() argument 86 assert(thread != NULL); in osi_thread_join() [all …]
|
/device/soc/rockchip/rk3568/hardware/omx_il/osal/ |
D | Rockchip_OSAL_Thread.c | 60 ROCKCHIP_THREAD_HANDLE_TYPE *thread; in Rockchip_OSAL_ThreadCreate() local 63 thread = Rockchip_OSAL_Malloc(sizeof(ROCKCHIP_THREAD_HANDLE_TYPE)); in Rockchip_OSAL_ThreadCreate() 64 Rockchip_OSAL_Memset(thread, 0, sizeof(ROCKCHIP_THREAD_HANDLE_TYPE)); in Rockchip_OSAL_ThreadCreate() 66 pthread_attr_init(&thread->attr); in Rockchip_OSAL_ThreadCreate() 67 if (thread->stack_size != 0) { in Rockchip_OSAL_ThreadCreate() 68 pthread_attr_setstacksize(&thread->attr, thread->stack_size); in Rockchip_OSAL_ThreadCreate() 72 if (thread->schedparam.sched_priority != 0) { in Rockchip_OSAL_ThreadCreate() 73 pthread_attr_setschedparam(&thread->attr, &thread->schedparam); in Rockchip_OSAL_ThreadCreate() 76 detach_ret = pthread_attr_setdetachstate(&thread->attr, PTHREAD_CREATE_JOINABLE); in Rockchip_OSAL_ThreadCreate() 78 Rockchip_OSAL_Free(thread); in Rockchip_OSAL_ThreadCreate() [all …]
|
/device/soc/hisilicon/hi3861v100/hi3861_adapter/kal/posix/src/ |
D | pthread.c | 120 int pthread_create(pthread_t *thread, const pthread_attr_t *attr, in pthread_create() argument 127 if ((thread == NULL) || (startRoutine == NULL)) { in pthread_create() 169 *thread = T2P(taskID); in pthread_create() 173 int pthread_setschedparam(pthread_t thread, int policy, const struct sched_param *param) in pthread_setschedparam() argument 175 UINT32 taskID = P2T(thread); in pthread_setschedparam() 202 int pthread_getschedparam(pthread_t thread, int *policy, struct sched_param *param) in pthread_getschedparam() argument 205 UINT32 taskID = P2T(thread); in pthread_getschedparam() 231 int pthread_cancel(pthread_t thread) in pthread_cancel() argument 233 UINT32 taskID = P2T(thread); in pthread_cancel() 240 if (thread == pthread_self()) { in pthread_cancel() [all …]
|
/device/soc/esp/esp32/components/bt/common/osi/include/osi/ |
D | thread.h | 57 void osi_thread_free(osi_thread_t *thread); 68 bool osi_thread_post(osi_thread_t *thread, osi_thread_func_t func, void *context, int queue_idx, ui… 76 bool osi_thread_set_priority(osi_thread_t *thread, int priority); 82 const char *osi_thread_name(osi_thread_t *thread); 89 int osi_thread_queue_wait_size(osi_thread_t *thread, int wq_idx);
|
/device/soc/rockchip/rk3588/kernel/include/trace/hooks/ |
D | binder.h | 49 struct binder_thread *thread, struct binder_transaction_data *tr), 50 TP_ARGS(target_proc, proc, thread, tr)); 53 struct binder_thread *thread, struct binder_transaction_data *tr), 54 TP_ARGS(target_proc, proc, thread, tr)); 57 struct binder_thread *thread, struct binder_transaction_data *tr), 58 TP_ARGS(target_proc, proc, thread, tr), 1);
|
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/include/os/ |
D | os.h | 130 beken_thread_t thread; /**< OS thread handle */ member 139 beken_worker_thread_t *thread; /**< OS work thread handle */ member 225 bk_err_t rtos_create_thread(beken_thread_t *thread, uint8_t priority, const char *name, beken_threa… 234 bk_err_t rtos_delete_thread(beken_thread_t *thread); 270 void rtos_suspend_thread(beken_thread_t *thread); 303 bk_err_t rtos_thread_join(beken_thread_t *thread); 317 bk_err_t rtos_thread_force_awake(beken_thread_t *thread); 330 bool rtos_is_current_thread(beken_thread_t *thread);
|
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/components/bk_os/liteos_m_mst/ |
D | rtos_pub.c | 96 bk_err_t rtos_create_thread( beken_thread_t *thread, uint8_t priority, const char *name, in rtos_create_thread() argument 134 if(thread) in rtos_create_thread() 136 *thread = (beken_thread_t *)pstTaskCB; in rtos_create_thread() 144 bk_err_t rtos_delete_thread(beken_thread_t *thread) in rtos_delete_thread() argument 154 if (thread && (*thread == NULL)) { in rtos_delete_thread() 158 if(NULL == thread) in rtos_delete_thread() 165 pstTaskCB = (LosTaskCB *)*thread; in rtos_delete_thread() 184 uint32_t _thread_get_status(beken_thread_t *thread) in _thread_get_status() argument 190 BK_ASSERT(thread); /* ASSERT VERIFIED */ in _thread_get_status() 191 if (OS_INT_ACTIVE || *thread == NULL) { in _thread_get_status() [all …]
|
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/middleware/driver/port/ |
D | os_port.c | 28 __bk_weak bk_err_t rtos_create_thread(beken_thread_t* thread, uint8_t priority, const char* name, in rtos_create_thread() argument 37 __bk_weak bk_err_t rtos_delete_thread( beken_thread_t* thread ) in rtos_delete_thread() argument 42 __bk_weak bk_err_t rtos_thread_join(beken_thread_t* thread) in rtos_thread_join() argument 47 __bk_weak bool rtos_is_current_thread(beken_thread_t* thread) in rtos_is_current_thread() argument 259 __bk_weak void rtos_suspend_thread(beken_thread_t *thread) in rtos_suspend_thread() argument 263 __bk_weak void rtos_resume_thread(beken_thread_t *thread) in rtos_resume_thread() argument
|
/device/soc/rockchip/common/sdk_linux/arch/arm64/kernel/ |
D | process.c | 308 current->thread.uw.tp_value = 0; in tls_thread_flush() 364 dst->thread.sve_state = NULL; in arch_dup_task_struct() 380 memset(&p->thread.cpu_context, 0, sizeof(struct cpu_context)); in copy_thread() 416 p->thread.uw.tp_value = tls; in copy_thread() 432 p->thread.cpu_context.x19 = stack_start; in copy_thread() 433 p->thread.cpu_context.x20 = stk_sz; in copy_thread() 435 p->thread.cpu_context.pc = (unsigned long)ret_from_fork; in copy_thread() 436 p->thread.cpu_context.sp = (unsigned long)childregs; in copy_thread() 453 write_sysreg(next->thread.uw.tp_value, tpidrro_el0); in tls_thread_switch()
|
/device/soc/esp/esp32/components/pthread/ |
D | pthread.c | 124 static inline TaskHandle_t pthread_find_handle(pthread_t thread) 126 return pthread_list_find_item(pthread_get_handle_by_desc, (void *)thread); 217 int pthread_create(pthread_t *thread, const pthread_attr_t *attr, 321 *thread = (pthread_t)pthread; // pointer value fit into pthread_t (uint32_t) 328 int pthread_join(pthread_t thread, void **retval) 330 esp_pthread_t *pthread = (esp_pthread_t *)thread; 341 TaskHandle_t handle = pthread_find_handle(thread); 392 int pthread_detach(pthread_t thread) 394 esp_pthread_t *pthread = (esp_pthread_t *)thread; 400 TaskHandle_t handle = pthread_find_handle(thread); [all …]
|
/device/soc/asrmicro/asr582x/liteos_m/sdk/rtos/ |
D | lega_rtos.c | 91 OSStatus lega_rtos_create_thread(lega_thread_t *thread, uint8_t priority, const char *name, in lega_rtos_create_thread() argument 98 if (thread == NULL || name == NULL || function == NULL) { in lega_rtos_create_thread() 117 *(unsigned int *)thread = (unsigned int)threadId; in lega_rtos_create_thread() 129 OSStatus lega_rtos_delete_thread(lega_thread_t *thread) in lega_rtos_delete_thread() argument 132 if (thread == NULL) { in lega_rtos_delete_thread() 135 threadId = (osThreadId_t)(*(unsigned int *)thread); in lega_rtos_delete_thread() 143 if (thread != NULL) { in lega_rtos_delete_thread() 144 *(unsigned int *)thread = 0; in lega_rtos_delete_thread()
|
D | lega_rtos.h | 172 OSStatus lega_rtos_create_thread(lega_thread_t *thread, uint8_t priority, const char *name, 182 OSStatus lega_rtos_delete_thread(lega_thread_t *thread); 501 OSStatus lega_rtos_get_threadinfo(lega_thread_t *thread, lega_threadinfo_t *info);
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/cbb/based/ext_inc/ |
D | valg_plat.h | 112 __inline static hi_s32 valg_thread_init(osal_task_t **thread, hi_void *task_function, hi_void *data… in valg_thread_init() argument 114 *thread = osal_kthread_create(task_function, data, task_name); in valg_thread_init() 115 if (*thread == NULL) { in valg_thread_init()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/ |
D | osal_task.c | 27 osal_task_t *osal_kthread_create(threadfn_t thread, void *data, const char *name) in osal_kthread_create() argument 37 k = kthread_run(thread, data, name); in osal_kthread_create()
|
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/amvdec_ports/ |
D | aml_vcodec_dec.c | 983 struct aml_vdec_thread *thread = in vdec_thread() local 986 (struct aml_vcodec_ctx *) thread->priv; in vdec_thread() 994 if (down_interruptible(&thread->sem)) in vdec_thread() 997 if (thread->stop) in vdec_thread() 1001 thread->func(ctx); in vdec_thread() 1015 struct aml_vdec_thread *thread = NULL; in aml_thread_notify() local 1018 list_for_each_entry(thread, &ctx->vdec_thread_list, node) { in aml_thread_notify() 1019 if (thread->task == NULL) in aml_thread_notify() 1022 if (thread->type == type) in aml_thread_notify() 1023 up(&thread->sem); in aml_thread_notify() [all …]
|
/device/board/bearpi/bearpi_hm_nano/app/A3_kernel_event/ |
D | README.md | 72 * @brief Event sender thread used to set event flag 80 // suspend thread 88 * @brief Event receiver thread blocking wait event flag
|
/device/board/talkweb/niobe407/applications/004_system_event/ |
D | README_zh.md | 157 /// Create a thread and add it to Active Threads. 158 /// \param[in] func thread function. 159 … /// \param[in] argument pointer that is passed to the thread function as start argument. 160 /// \param[in] attr thread attributes; NULL: default values. 161 /// \return thread ID for reference by other functions or NULL in case of error
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ |
D | mali_kbase_vinstr.c | 114 struct task_struct *thread; member 397 vinstr_ctx->thread = kthread_run(kbasep_vinstr_service_task, vinstr_ctx, "mali_vinstr_service"); in kbasep_vinstr_create_kctx() 398 if (!vinstr_ctx->thread) { in kbasep_vinstr_create_kctx() 428 vinstr_ctx->thread = NULL; in kbasep_vinstr_destroy_kctx() 469 struct task_struct *thread = NULL; in kbasep_vinstr_attach_client() local 566 thread = vinstr_ctx->thread; in kbasep_vinstr_attach_client() 574 if (thread) { in kbasep_vinstr_attach_client() 575 kthread_stop(thread); in kbasep_vinstr_attach_client() 585 struct task_struct *thread = NULL; in kbase_vinstr_detach_client() local 624 thread = vinstr_ctx->thread; in kbase_vinstr_detach_client() [all …]
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/ |
D | mali_kbase_vinstr.c | 126 struct task_struct *thread; member 435 vinstr_ctx->thread = kthread_run( in kbasep_vinstr_create_kctx() 439 if (!vinstr_ctx->thread) { in kbasep_vinstr_create_kctx() 469 vinstr_ctx->thread = NULL; in kbasep_vinstr_destroy_kctx() 508 struct task_struct *thread = NULL; in kbasep_vinstr_attach_client() local 608 thread = vinstr_ctx->thread; in kbasep_vinstr_attach_client() 616 if (thread) in kbasep_vinstr_attach_client() 617 kthread_stop(thread); in kbasep_vinstr_attach_client() 626 struct task_struct *thread = NULL; in kbase_vinstr_detach_client() local 666 thread = vinstr_ctx->thread; in kbase_vinstr_detach_client() [all …]
|
/device/board/talkweb/niobe407/applications/007_system_message/ |
D | README_zh.md | 13 …过将线程添加到活动线程列表并将其设置为就绪状态来启动线程函数。线程函数的参数使用参数指针*argument传递。当创建的thread函数的优先级高于当前运行的线程时,创建的thread函数立即启动… 105 //suspend thread
|
/device/soc/bestechnic/bes2600/liteos_m/components/ui/ |
D | ui_main.cpp | 144 pthread_t thread; in UiMain() local 151 if (pthread_create(&thread, &attr, UiMainTask, nullptr) != 0) { in UiMain()
|
/device/board/talkweb/niobe407/applications/002_system_thread/ |
D | README_zh.md | 13 …过将线程添加到活动线程列表并将其设置为就绪状态来启动线程函数。线程函数的参数使用参数指针*argument传递。当创建的thread函数的优先级高于当前运行的线程时,创建的thread函数立即启动…
|
/device/board/talkweb/niobe407/applications/006_system_semp/ |
D | README_zh.md | 13 …过将线程添加到活动线程列表并将其设置为就绪状态来启动线程函数。线程函数的参数使用参数指针*argument传递。当创建的thread函数的优先级高于当前运行的线程时,创建的thread函数立即启动…
|
/device/board/bearpi/bearpi_hm_nano/app/A1_kernal_thread/ |
D | README.md | 14 …过将线程添加到活动线程列表并将其设置为就绪状态来启动线程函数。线程函数的参数使用参数指针*argument传递。当创建的thread函数的优先级高于当前运行的线程时,创建的thread函数立即启动…
|
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/components/bk_os/include/ |
D | bk_rtos_debug.h | 25 void rtos_dump_task_backtrace(beken_thread_t *thread);
|