Lines Matching refs:thread_ptr

301 VOID  _tx_thread_smp_core_interrupt(TX_THREAD *thread_ptr, UINT current_core, UINT target_core)  in _tx_thread_smp_core_interrupt()  argument
318 if ((current_thread != TX_NULL) && (thread_ptr != current_thread)) in _tx_thread_smp_core_interrupt()
470 TX_THREAD *thread_ptr; in _tx_thread_smp_possible_cores_get() local
473 thread_ptr = _tx_thread_execute_ptr[0]; in _tx_thread_smp_possible_cores_get()
474 if (thread_ptr != TX_NULL) in _tx_thread_smp_possible_cores_get()
476 possible_cores = thread_ptr -> tx_thread_smp_cores_allowed; in _tx_thread_smp_possible_cores_get()
479 thread_ptr = _tx_thread_execute_ptr[1]; in _tx_thread_smp_possible_cores_get()
480 if (thread_ptr != TX_NULL) in _tx_thread_smp_possible_cores_get()
482 possible_cores = possible_cores | thread_ptr -> tx_thread_smp_cores_allowed; in _tx_thread_smp_possible_cores_get()
485 thread_ptr = _tx_thread_execute_ptr[2]; in _tx_thread_smp_possible_cores_get()
486 if (thread_ptr != TX_NULL) in _tx_thread_smp_possible_cores_get()
488 possible_cores = possible_cores | thread_ptr -> tx_thread_smp_cores_allowed; in _tx_thread_smp_possible_cores_get()
491 thread_ptr = _tx_thread_execute_ptr[3]; in _tx_thread_smp_possible_cores_get()
492 if (thread_ptr != TX_NULL) in _tx_thread_smp_possible_cores_get()
494 possible_cores = possible_cores | thread_ptr -> tx_thread_smp_cores_allowed; in _tx_thread_smp_possible_cores_get()
497 thread_ptr = _tx_thread_execute_ptr[4]; in _tx_thread_smp_possible_cores_get()
498 if (thread_ptr != TX_NULL) in _tx_thread_smp_possible_cores_get()
500 possible_cores = possible_cores | thread_ptr -> tx_thread_smp_cores_allowed; in _tx_thread_smp_possible_cores_get()
503 thread_ptr = _tx_thread_execute_ptr[5]; in _tx_thread_smp_possible_cores_get()
504 if (thread_ptr != TX_NULL) in _tx_thread_smp_possible_cores_get()
506 possible_cores = possible_cores | thread_ptr -> tx_thread_smp_cores_allowed; in _tx_thread_smp_possible_cores_get()
522 thread_ptr = _tx_thread_execute_ptr[j]; in _tx_thread_smp_possible_cores_get()
523 if (thread_ptr != TX_NULL) in _tx_thread_smp_possible_cores_get()
525 possible_cores = possible_cores | thread_ptr -> tx_thread_smp_cores_allowed; in _tx_thread_smp_possible_cores_get()
547 TX_THREAD *thread_ptr; in _tx_thread_smp_lowest_priority_get() local
551 thread_ptr = _tx_thread_execute_ptr[0]; in _tx_thread_smp_lowest_priority_get()
552 if (thread_ptr != TX_NULL) in _tx_thread_smp_lowest_priority_get()
554 if (thread_ptr -> tx_thread_priority > lowest_priority) in _tx_thread_smp_lowest_priority_get()
556 lowest_priority = thread_ptr -> tx_thread_priority; in _tx_thread_smp_lowest_priority_get()
560 thread_ptr = _tx_thread_execute_ptr[1]; in _tx_thread_smp_lowest_priority_get()
561 if (thread_ptr != TX_NULL) in _tx_thread_smp_lowest_priority_get()
563 if (thread_ptr -> tx_thread_priority > lowest_priority) in _tx_thread_smp_lowest_priority_get()
565 lowest_priority = thread_ptr -> tx_thread_priority; in _tx_thread_smp_lowest_priority_get()
569 thread_ptr = _tx_thread_execute_ptr[2]; in _tx_thread_smp_lowest_priority_get()
570 if (thread_ptr != TX_NULL) in _tx_thread_smp_lowest_priority_get()
572 if (thread_ptr -> tx_thread_priority > lowest_priority) in _tx_thread_smp_lowest_priority_get()
574 lowest_priority = thread_ptr -> tx_thread_priority; in _tx_thread_smp_lowest_priority_get()
578 thread_ptr = _tx_thread_execute_ptr[3]; in _tx_thread_smp_lowest_priority_get()
579 if (thread_ptr != TX_NULL) in _tx_thread_smp_lowest_priority_get()
581 if (thread_ptr -> tx_thread_priority > lowest_priority) in _tx_thread_smp_lowest_priority_get()
583 lowest_priority = thread_ptr -> tx_thread_priority; in _tx_thread_smp_lowest_priority_get()
587 thread_ptr = _tx_thread_execute_ptr[4]; in _tx_thread_smp_lowest_priority_get()
588 if (thread_ptr != TX_NULL) in _tx_thread_smp_lowest_priority_get()
590 if (thread_ptr -> tx_thread_priority > lowest_priority) in _tx_thread_smp_lowest_priority_get()
592 lowest_priority = thread_ptr -> tx_thread_priority; in _tx_thread_smp_lowest_priority_get()
596 thread_ptr = _tx_thread_execute_ptr[5]; in _tx_thread_smp_lowest_priority_get()
597 if (thread_ptr != TX_NULL) in _tx_thread_smp_lowest_priority_get()
599 if (thread_ptr -> tx_thread_priority > lowest_priority) in _tx_thread_smp_lowest_priority_get()
601 lowest_priority = thread_ptr -> tx_thread_priority; in _tx_thread_smp_lowest_priority_get()
618 thread_ptr = _tx_thread_execute_ptr[j]; in _tx_thread_smp_lowest_priority_get()
619 if (thread_ptr != TX_NULL) in _tx_thread_smp_lowest_priority_get()
623 if (thread_ptr -> tx_thread_priority > lowest_priority) in _tx_thread_smp_lowest_priority_get()
625 lowest_priority = thread_ptr -> tx_thread_priority; in _tx_thread_smp_lowest_priority_get()
651 TX_THREAD *thread_ptr; in _tx_thread_smp_remap_solution_find() local
713 thread_ptr = _tx_thread_smp_schedule_list[core]; in _tx_thread_smp_remap_solution_find()
716 if (thread_ptr != TX_NULL) in _tx_thread_smp_remap_solution_find()
720 thread_possible_cores = thread_ptr -> tx_thread_smp_cores_allowed; in _tx_thread_smp_remap_solution_find()
733 last_thread = thread_ptr; in _tx_thread_smp_remap_solution_find()
756 thread_remap_list[core] = thread_ptr; in _tx_thread_smp_remap_solution_find()
778 thread_ptr = thread_remap_list[core]; in _tx_thread_smp_remap_solution_find()
781 while (thread_ptr != schedule_thread) in _tx_thread_smp_remap_solution_find()
785 _tx_thread_smp_schedule_list[core] = thread_ptr; in _tx_thread_smp_remap_solution_find()
791 core = thread_ptr -> tx_thread_smp_core_mapped; in _tx_thread_smp_remap_solution_find()
794 thread_ptr -> tx_thread_smp_core_mapped = previous_core; in _tx_thread_smp_remap_solution_find()
797 thread_ptr = thread_remap_list[core]; in _tx_thread_smp_remap_solution_find()
801 _tx_thread_smp_schedule_list[core] = thread_ptr; in _tx_thread_smp_remap_solution_find()
804 thread_ptr -> tx_thread_smp_core_mapped = core; in _tx_thread_smp_remap_solution_find()
832 TX_THREAD *thread_ptr; in _tx_thread_smp_preemptable_threads_get() local
890 thread_ptr = _tx_thread_execute_ptr[i]; in _tx_thread_smp_preemptable_threads_get()
893 if (thread_ptr != TX_NULL) in _tx_thread_smp_preemptable_threads_get()
897 possible_cores = possible_cores | thread_ptr -> tx_thread_smp_cores_allowed; in _tx_thread_smp_preemptable_threads_get()
900 if (priority < thread_ptr -> tx_thread_priority) in _tx_thread_smp_preemptable_threads_get()
906 possible_preemption_list[j] = thread_ptr; in _tx_thread_smp_preemptable_threads_get()
927 thread_ptr = possible_preemption_list[i]; in _tx_thread_smp_preemptable_threads_get()
940 if (next_thread -> tx_thread_priority > thread_ptr -> tx_thread_priority) in _tx_thread_smp_preemptable_threads_get()
945 possible_preemption_list[k] = thread_ptr; in _tx_thread_smp_preemptable_threads_get()
946 thread_ptr = next_thread; in _tx_thread_smp_preemptable_threads_get()
952 if (next_thread -> tx_thread_priority == thread_ptr -> tx_thread_priority) in _tx_thread_smp_preemptable_threads_get()
956 search_thread = thread_ptr -> tx_thread_ready_next; in _tx_thread_smp_preemptable_threads_get()
959 list_head = _tx_thread_priority_list[thread_ptr -> tx_thread_priority]; in _tx_thread_smp_preemptable_threads_get()
971 possible_preemption_list[k] = thread_ptr; in _tx_thread_smp_preemptable_threads_get()
972 thread_ptr = next_thread; in _tx_thread_smp_preemptable_threads_get()
996 VOID _tx_thread_smp_simple_priority_change(TX_THREAD *thread_ptr, UINT new_priority) in _tx_thread_smp_simple_priority_change() argument
1008 priority = thread_ptr -> tx_thread_priority; in _tx_thread_smp_simple_priority_change()
1012 if (thread_ptr -> tx_thread_ready_next != thread_ptr) in _tx_thread_smp_simple_priority_change()
1018 …(thread_ptr -> tx_thread_ready_next) -> tx_thread_ready_previous = thread_ptr -> tx_thread_read… in _tx_thread_smp_simple_priority_change()
1019 …(thread_ptr -> tx_thread_ready_previous) -> tx_thread_ready_next = thread_ptr -> tx_thread_read… in _tx_thread_smp_simple_priority_change()
1022 if (_tx_thread_priority_list[priority] == thread_ptr) in _tx_thread_smp_simple_priority_change()
1026 _tx_thread_priority_list[priority] = thread_ptr -> tx_thread_ready_next; in _tx_thread_smp_simple_priority_change()
1061 if (new_priority < thread_ptr -> tx_thread_inherit_priority) in _tx_thread_smp_simple_priority_change()
1065 thread_ptr -> tx_thread_priority = new_priority; in _tx_thread_smp_simple_priority_change()
1066 thread_ptr -> tx_thread_preempt_threshold = new_priority; in _tx_thread_smp_simple_priority_change()
1072 thread_ptr -> tx_thread_priority = thread_ptr -> tx_thread_inherit_priority; in _tx_thread_smp_simple_priority_change()
1073 thread_ptr -> tx_thread_preempt_threshold = thread_ptr -> tx_thread_inherit_priority; in _tx_thread_smp_simple_priority_change()
1088 tail_ptr -> tx_thread_ready_next = thread_ptr; in _tx_thread_smp_simple_priority_change()
1089 head_ptr -> tx_thread_ready_previous = thread_ptr; in _tx_thread_smp_simple_priority_change()
1090 thread_ptr -> tx_thread_ready_previous = tail_ptr; in _tx_thread_smp_simple_priority_change()
1091 thread_ptr -> tx_thread_ready_next = head_ptr; in _tx_thread_smp_simple_priority_change()
1097 _tx_thread_priority_list[new_priority] = thread_ptr; in _tx_thread_smp_simple_priority_change()
1098 thread_ptr -> tx_thread_ready_next = thread_ptr; in _tx_thread_smp_simple_priority_change()
1099 thread_ptr -> tx_thread_ready_previous = thread_ptr; in _tx_thread_smp_simple_priority_change()