Home
last modified time | relevance | path

Searched refs:osi_info (Results 1 – 5 of 5) sorted by relevance

/hardware/samsung/nfc/halimpl/osi/
Dosi_main.cc28 tOSI_INFO osi_info; variable
33 memset(&osi_info, 0, sizeof(osi_info)); in OSI_init()
36 pthread_mutex_init(&osi_info.mutex, NULL); in OSI_init()
40 osi_info.task[index].state = OSI_FREE; in OSI_init()
44 osi_info.mem_max_cnt = OSI_MAX_MEM_POOL; in OSI_init()
47 osi_info.mem[index] = (tOSI_MEM_HANDLER)malloc(OSI_MEM_POOL_SIZE); in OSI_init()
48 if (osi_info.mem[index] == NULL) { in OSI_init()
51 osi_info.mem_max_cnt = index; in OSI_init()
54 osi_info.mem[index]->state = OSI_FREE; in OSI_init()
56 osi_info.mem[index].state = OSI_FREE; in OSI_init()
[all …]
Dosi_timer.cc42 if (osi_info.timer[index].state == OSI_FREE) { in OSI_timer_allocate()
44 free_timer = (tOSI_TIMER_HANDLER)&osi_info.timer[index]; in OSI_timer_allocate()
46 if ((char const*)osi_info.timer[index].name == NULL) continue; in OSI_timer_allocate()
48 if (strcmp((char const*)osi_info.timer[index].name, in OSI_timer_allocate()
97 if (osi_info.usingTimer < 1) { in OSI_timer_start()
98 osi_info.timer_thread_flag |= OSI_TIMER_THREAD_FLAG_DETACH; in OSI_timer_start()
100 osi_info.usingTimer++; in OSI_timer_start()
108 ret_th = pthread_create(&osi_info.timer_thread, &attr, in OSI_timer_start()
120 osi_info.usingTimer++; in OSI_timer_start()
137 osi_info.usingTimer--; in OSI_timer_stop()
[all …]
Dosi_memory.cc48 for (index = 0; index < osi_info.mem_max_cnt; index++) { in OSI_mem_get()
50 if (osi_info.mem[index]->state == OSI_FREE) in OSI_mem_get()
51 free_mem = (tOSI_MEM_HANDLER)osi_info.mem[index]; in OSI_mem_get()
53 if (osi_info.mem[index].state == OSI_FREE) in OSI_mem_get()
54 free_mem = (tOSI_MEM_HANDLER)&osi_info.mem[index]; in OSI_mem_get()
61 osi_info.mem_max_cnt); in OSI_mem_get()
64 free_mem = osi_info.mem[index] = in OSI_mem_get()
66 if (osi_info.mem[index] != NULL) { in OSI_mem_get()
67 osi_info.mem[index]->state = OSI_FREE; in OSI_mem_get()
68 osi_info.mem_max_cnt++; in OSI_mem_get()
[all …]
Dosi_task.cc53 if (osi_info.task[index].state == OSI_FREE) { in OSI_task_allocate()
55 free_task = (tOSI_TASK_HANDLER)&osi_info.task[index]; in OSI_task_allocate()
57 if (osi_info.task[index].name == NULL) continue; in OSI_task_allocate()
60 if (strcmp((char const*)osi_info.task[index].name, in OSI_task_allocate()
175 if ((char const*)osi_info.task[index].name == NULL) continue; in OSI_task_get_handler()
177 if (strcmp((char const*)osi_info.task[index].name, (char const*)name) == in OSI_task_get_handler()
179 task = &osi_info.task[index]; in OSI_task_get_handler()
Dosi_common.h131 extern tOSI_INFO osi_info;