Lines Matching refs:cloud_ptr
86 UINT _nxe_cloud_create(NX_CLOUD *cloud_ptr, const CHAR *cloud_name, VOID *memory_ptr, ULONG memory_… in _nxe_cloud_create() argument
93 if ((cloud_ptr == NX_NULL) || (memory_ptr == NX_NULL)) in _nxe_cloud_create()
114 status = _nx_cloud_create(cloud_ptr, cloud_name, memory_ptr, memory_size, priority); in _nxe_cloud_create()
165 UINT _nx_cloud_create(NX_CLOUD *cloud_ptr, const CHAR* cloud_name, VOID* memory_ptr, ULONG memory_s… in _nx_cloud_create() argument
173 memset(cloud_ptr, 0, sizeof(NX_CLOUD)); in _nx_cloud_create()
176 cloud_ptr -> nx_cloud_name = cloud_name; in _nx_cloud_create()
179 status = tx_mutex_create(&(cloud_ptr -> nx_cloud_mutex), (CHAR*)cloud_name, TX_NO_INHERIT); in _nx_cloud_create()
190 status = tx_event_flags_create(&cloud_ptr -> nx_cloud_events, (CHAR*)cloud_name); in _nx_cloud_create()
197 tx_mutex_delete(&(cloud_ptr -> nx_cloud_mutex)); in _nx_cloud_create()
207 status = tx_thread_create(&(cloud_ptr -> nx_cloud_thread), (CHAR*)cloud_name, in _nx_cloud_create()
208 _nx_cloud_thread_entry, (ULONG)cloud_ptr, in _nx_cloud_create()
216 tx_event_flags_delete(&(cloud_ptr -> nx_cloud_events)); in _nx_cloud_create()
217 tx_mutex_delete(&(cloud_ptr -> nx_cloud_mutex)); in _nx_cloud_create()
227 status = tx_timer_create(&(cloud_ptr -> nx_cloud_periodic_timer), (CHAR*)cloud_name, in _nx_cloud_create()
228 _nx_cloud_periodic_timer_entry, (ULONG)cloud_ptr, in _nx_cloud_create()
236 tx_thread_delete(&(cloud_ptr -> nx_cloud_thread)); in _nx_cloud_create()
237 tx_event_flags_delete(&(cloud_ptr -> nx_cloud_events)); in _nx_cloud_create()
238 tx_mutex_delete(&(cloud_ptr -> nx_cloud_mutex)); in _nx_cloud_create()
248 cloud_ptr -> nx_cloud_id = NX_CLOUD_ID; in _nx_cloud_create()
295 UINT _nxe_cloud_delete(NX_CLOUD *cloud_ptr) in _nxe_cloud_delete() argument
302 if ((cloud_ptr == NX_NULL) || (cloud_ptr -> nx_cloud_id != NX_CLOUD_ID)) in _nxe_cloud_delete()
311 status = _nx_cloud_delete(cloud_ptr); in _nxe_cloud_delete()
368 UINT _nx_cloud_delete(NX_CLOUD *cloud_ptr) in _nx_cloud_delete() argument
375 tx_mutex_get(&(cloud_ptr -> nx_cloud_mutex), TX_WAIT_FOREVER); in _nx_cloud_delete()
378 if (cloud_ptr -> nx_cloud_modules_count) in _nx_cloud_delete()
384 tx_mutex_put(&(cloud_ptr -> nx_cloud_mutex)); in _nx_cloud_delete()
393 tx_mutex_put(&(cloud_ptr -> nx_cloud_mutex)); in _nx_cloud_delete()
396 tx_timer_deactivate(&(cloud_ptr -> nx_cloud_periodic_timer)); in _nx_cloud_delete()
397 tx_timer_delete(&(cloud_ptr -> nx_cloud_periodic_timer)); in _nx_cloud_delete()
400 tx_thread_terminate(&(cloud_ptr -> nx_cloud_thread)); in _nx_cloud_delete()
403 tx_mutex_delete(&(cloud_ptr -> nx_cloud_mutex)); in _nx_cloud_delete()
406 tx_event_flags_delete(&(cloud_ptr -> nx_cloud_events)); in _nx_cloud_delete()
410 tx_thread_delete(&(cloud_ptr -> nx_cloud_thread)); in _nx_cloud_delete()
413 cloud_ptr -> nx_cloud_id = 0; in _nx_cloud_delete()
468 UINT _nxe_cloud_module_register(NX_CLOUD* cloud_ptr, NX_CLOUD_MODULE *module_ptr, const CHAR *modul… in _nxe_cloud_module_register() argument
476 if ((cloud_ptr == NX_NULL) || (cloud_ptr -> nx_cloud_id != NX_CLOUD_ID) || in _nxe_cloud_module_register()
492 …status = _nx_cloud_module_register(cloud_ptr, module_ptr, module_name, module_registered_event, mo… in _nxe_cloud_module_register()
547 UINT _nx_cloud_module_register(NX_CLOUD* cloud_ptr, NX_CLOUD_MODULE *module_ptr, const CHAR *module… in _nx_cloud_module_register() argument
555 tx_mutex_get(&(cloud_ptr -> nx_cloud_mutex), NX_WAIT_FOREVER); in _nx_cloud_module_register()
558 …for (current_module = cloud_ptr -> nx_cloud_modules_list_header; current_module; current_module = … in _nx_cloud_module_register()
566 tx_mutex_put(&(cloud_ptr -> nx_cloud_mutex)); in _nx_cloud_module_register()
577 module_ptr -> nx_cloud_ptr = cloud_ptr; in _nx_cloud_module_register()
580 module_ptr -> nx_cloud_module_next = cloud_ptr -> nx_cloud_modules_list_header; in _nx_cloud_module_register()
581 cloud_ptr -> nx_cloud_modules_list_header = module_ptr; in _nx_cloud_module_register()
582 cloud_ptr -> nx_cloud_modules_count ++; in _nx_cloud_module_register()
585 tx_mutex_put(&(cloud_ptr -> nx_cloud_mutex)); in _nx_cloud_module_register()
632 UINT _nxe_cloud_module_deregister(NX_CLOUD* cloud_ptr, NX_CLOUD_MODULE* module_ptr) in _nxe_cloud_module_deregister() argument
639 if ((cloud_ptr == NX_NULL) || (cloud_ptr -> nx_cloud_id != NX_CLOUD_ID) || in _nxe_cloud_module_deregister()
649 status = _nx_cloud_module_deregister(cloud_ptr, module_ptr); in _nxe_cloud_module_deregister()
697 UINT _nx_cloud_module_deregister(NX_CLOUD* cloud_ptr, NX_CLOUD_MODULE* module_ptr) in _nx_cloud_module_deregister() argument
706 tx_mutex_get(&(cloud_ptr -> nx_cloud_mutex), NX_WAIT_FOREVER); in _nx_cloud_module_deregister()
709 for (previous_module = NX_NULL, current_module = cloud_ptr -> nx_cloud_modules_list_header; in _nx_cloud_module_deregister()
726 tx_mutex_put(&(cloud_ptr -> nx_cloud_mutex)); in _nx_cloud_module_deregister()
736 cloud_ptr -> nx_cloud_modules_list_header = current_module -> nx_cloud_module_next; in _nx_cloud_module_deregister()
744 cloud_ptr -> nx_cloud_modules_count--; in _nx_cloud_module_deregister()
747 tx_mutex_put(&(cloud_ptr -> nx_cloud_mutex)); in _nx_cloud_module_deregister()
867 NX_CLOUD *cloud_ptr = cloud_module -> nx_cloud_ptr; in _nx_cloud_module_event_set() local
883 tx_event_flags_set(&(cloud_ptr -> nx_cloud_events), registered_event, TX_OR); in _nx_cloud_module_event_set()
1006 NX_CLOUD *cloud_ptr = cloud_module -> nx_cloud_ptr; in _nx_cloud_module_event_clear() local
1026 tx_event_flags_set(&(cloud_ptr -> nx_cloud_events), ~registered_event, TX_AND); in _nx_cloud_module_event_clear()
1084 NX_CLOUD *cloud_ptr; in _nx_cloud_thread_entry() local
1091 cloud_ptr = (NX_CLOUD*)cloud_ptr_value; in _nx_cloud_thread_entry()
1097 tx_event_flags_get(&cloud_ptr -> nx_cloud_events, NX_CLOUD_ALL_EVENTS, in _nx_cloud_thread_entry()
1101 tx_mutex_get(&cloud_ptr -> nx_cloud_mutex, NX_WAIT_FOREVER); in _nx_cloud_thread_entry()
1104 …for (cloud_module = cloud_ptr -> nx_cloud_modules_list_header; cloud_module; cloud_module = cloud_… in _nx_cloud_thread_entry()
1124 tx_mutex_put(&(cloud_ptr -> nx_cloud_mutex)); in _nx_cloud_thread_entry()
1130 tx_mutex_get(&cloud_ptr -> nx_cloud_mutex, NX_WAIT_FOREVER); in _nx_cloud_thread_entry()
1135 tx_mutex_put(&(cloud_ptr -> nx_cloud_mutex)); in _nx_cloud_thread_entry()
1182 NX_CLOUD *cloud_ptr = (NX_CLOUD *)cloud_ptr_value; in _nx_cloud_periodic_timer_entry() local
1186 tx_event_flags_set(&(cloud_ptr -> nx_cloud_events), NX_CLOUD_COMMON_PERIODIC_EVENT, TX_OR); in _nx_cloud_periodic_timer_entry()