Lines Matching refs:thread_ptr

302 VOID  _tx_thread_smp_core_interrupt(TX_THREAD *thread_ptr, UINT current_core, UINT target_core)  in _tx_thread_smp_core_interrupt()  argument
319 if ((current_thread != TX_NULL) && (thread_ptr != current_thread)) in _tx_thread_smp_core_interrupt()
471 TX_THREAD *thread_ptr; in _tx_thread_smp_possible_cores_get() local
474 thread_ptr = _tx_thread_execute_ptr[0]; in _tx_thread_smp_possible_cores_get()
475 if (thread_ptr != TX_NULL) in _tx_thread_smp_possible_cores_get()
477 possible_cores = thread_ptr -> tx_thread_smp_cores_allowed; in _tx_thread_smp_possible_cores_get()
480 thread_ptr = _tx_thread_execute_ptr[1]; in _tx_thread_smp_possible_cores_get()
481 if (thread_ptr != TX_NULL) in _tx_thread_smp_possible_cores_get()
483 possible_cores = possible_cores | thread_ptr -> tx_thread_smp_cores_allowed; in _tx_thread_smp_possible_cores_get()
486 thread_ptr = _tx_thread_execute_ptr[2]; in _tx_thread_smp_possible_cores_get()
487 if (thread_ptr != TX_NULL) in _tx_thread_smp_possible_cores_get()
489 possible_cores = possible_cores | thread_ptr -> tx_thread_smp_cores_allowed; in _tx_thread_smp_possible_cores_get()
492 thread_ptr = _tx_thread_execute_ptr[3]; in _tx_thread_smp_possible_cores_get()
493 if (thread_ptr != TX_NULL) in _tx_thread_smp_possible_cores_get()
495 possible_cores = possible_cores | thread_ptr -> tx_thread_smp_cores_allowed; in _tx_thread_smp_possible_cores_get()
498 thread_ptr = _tx_thread_execute_ptr[4]; in _tx_thread_smp_possible_cores_get()
499 if (thread_ptr != TX_NULL) in _tx_thread_smp_possible_cores_get()
501 possible_cores = possible_cores | thread_ptr -> tx_thread_smp_cores_allowed; in _tx_thread_smp_possible_cores_get()
504 thread_ptr = _tx_thread_execute_ptr[5]; in _tx_thread_smp_possible_cores_get()
505 if (thread_ptr != TX_NULL) in _tx_thread_smp_possible_cores_get()
507 possible_cores = possible_cores | thread_ptr -> tx_thread_smp_cores_allowed; in _tx_thread_smp_possible_cores_get()
523 thread_ptr = _tx_thread_execute_ptr[j]; in _tx_thread_smp_possible_cores_get()
524 if (thread_ptr != TX_NULL) in _tx_thread_smp_possible_cores_get()
526 possible_cores = possible_cores | thread_ptr -> tx_thread_smp_cores_allowed; in _tx_thread_smp_possible_cores_get()
548 TX_THREAD *thread_ptr; in _tx_thread_smp_lowest_priority_get() local
552 thread_ptr = _tx_thread_execute_ptr[0]; in _tx_thread_smp_lowest_priority_get()
553 if (thread_ptr != TX_NULL) in _tx_thread_smp_lowest_priority_get()
555 if (thread_ptr -> tx_thread_priority > lowest_priority) in _tx_thread_smp_lowest_priority_get()
557 lowest_priority = thread_ptr -> tx_thread_priority; in _tx_thread_smp_lowest_priority_get()
561 thread_ptr = _tx_thread_execute_ptr[1]; in _tx_thread_smp_lowest_priority_get()
562 if (thread_ptr != TX_NULL) in _tx_thread_smp_lowest_priority_get()
564 if (thread_ptr -> tx_thread_priority > lowest_priority) in _tx_thread_smp_lowest_priority_get()
566 lowest_priority = thread_ptr -> tx_thread_priority; in _tx_thread_smp_lowest_priority_get()
570 thread_ptr = _tx_thread_execute_ptr[2]; in _tx_thread_smp_lowest_priority_get()
571 if (thread_ptr != TX_NULL) in _tx_thread_smp_lowest_priority_get()
573 if (thread_ptr -> tx_thread_priority > lowest_priority) in _tx_thread_smp_lowest_priority_get()
575 lowest_priority = thread_ptr -> tx_thread_priority; in _tx_thread_smp_lowest_priority_get()
579 thread_ptr = _tx_thread_execute_ptr[3]; in _tx_thread_smp_lowest_priority_get()
580 if (thread_ptr != TX_NULL) in _tx_thread_smp_lowest_priority_get()
582 if (thread_ptr -> tx_thread_priority > lowest_priority) in _tx_thread_smp_lowest_priority_get()
584 lowest_priority = thread_ptr -> tx_thread_priority; in _tx_thread_smp_lowest_priority_get()
588 thread_ptr = _tx_thread_execute_ptr[4]; in _tx_thread_smp_lowest_priority_get()
589 if (thread_ptr != TX_NULL) in _tx_thread_smp_lowest_priority_get()
591 if (thread_ptr -> tx_thread_priority > lowest_priority) in _tx_thread_smp_lowest_priority_get()
593 lowest_priority = thread_ptr -> tx_thread_priority; in _tx_thread_smp_lowest_priority_get()
597 thread_ptr = _tx_thread_execute_ptr[5]; in _tx_thread_smp_lowest_priority_get()
598 if (thread_ptr != TX_NULL) in _tx_thread_smp_lowest_priority_get()
600 if (thread_ptr -> tx_thread_priority > lowest_priority) in _tx_thread_smp_lowest_priority_get()
602 lowest_priority = thread_ptr -> tx_thread_priority; in _tx_thread_smp_lowest_priority_get()
619 thread_ptr = _tx_thread_execute_ptr[j]; in _tx_thread_smp_lowest_priority_get()
620 if (thread_ptr != TX_NULL) in _tx_thread_smp_lowest_priority_get()
624 if (thread_ptr -> tx_thread_priority > lowest_priority) in _tx_thread_smp_lowest_priority_get()
626 lowest_priority = thread_ptr -> tx_thread_priority; in _tx_thread_smp_lowest_priority_get()
652 TX_THREAD *thread_ptr; in _tx_thread_smp_remap_solution_find() local
714 thread_ptr = _tx_thread_smp_schedule_list[core]; in _tx_thread_smp_remap_solution_find()
717 if (thread_ptr != TX_NULL) in _tx_thread_smp_remap_solution_find()
721 thread_possible_cores = thread_ptr -> tx_thread_smp_cores_allowed; in _tx_thread_smp_remap_solution_find()
734 last_thread = thread_ptr; in _tx_thread_smp_remap_solution_find()
757 thread_remap_list[core] = thread_ptr; in _tx_thread_smp_remap_solution_find()
779 thread_ptr = thread_remap_list[core]; in _tx_thread_smp_remap_solution_find()
782 while (thread_ptr != schedule_thread) in _tx_thread_smp_remap_solution_find()
786 _tx_thread_smp_schedule_list[core] = thread_ptr; in _tx_thread_smp_remap_solution_find()
792 core = thread_ptr -> tx_thread_smp_core_mapped; in _tx_thread_smp_remap_solution_find()
795 thread_ptr -> tx_thread_smp_core_mapped = previous_core; in _tx_thread_smp_remap_solution_find()
798 thread_ptr = thread_remap_list[core]; in _tx_thread_smp_remap_solution_find()
802 _tx_thread_smp_schedule_list[core] = thread_ptr; in _tx_thread_smp_remap_solution_find()
805 thread_ptr -> tx_thread_smp_core_mapped = core; in _tx_thread_smp_remap_solution_find()
833 TX_THREAD *thread_ptr; in _tx_thread_smp_preemptable_threads_get() local
891 thread_ptr = _tx_thread_execute_ptr[i]; in _tx_thread_smp_preemptable_threads_get()
894 if (thread_ptr != TX_NULL) in _tx_thread_smp_preemptable_threads_get()
898 possible_cores = possible_cores | thread_ptr -> tx_thread_smp_cores_allowed; in _tx_thread_smp_preemptable_threads_get()
901 if (priority < thread_ptr -> tx_thread_priority) in _tx_thread_smp_preemptable_threads_get()
907 possible_preemption_list[j] = thread_ptr; in _tx_thread_smp_preemptable_threads_get()
928 thread_ptr = possible_preemption_list[i]; in _tx_thread_smp_preemptable_threads_get()
941 if (next_thread -> tx_thread_priority > thread_ptr -> tx_thread_priority) in _tx_thread_smp_preemptable_threads_get()
946 possible_preemption_list[k] = thread_ptr; in _tx_thread_smp_preemptable_threads_get()
947 thread_ptr = next_thread; in _tx_thread_smp_preemptable_threads_get()
953 if (next_thread -> tx_thread_priority == thread_ptr -> tx_thread_priority) in _tx_thread_smp_preemptable_threads_get()
957 search_thread = thread_ptr -> tx_thread_ready_next; in _tx_thread_smp_preemptable_threads_get()
960 list_head = _tx_thread_priority_list[thread_ptr -> tx_thread_priority]; in _tx_thread_smp_preemptable_threads_get()
972 possible_preemption_list[k] = thread_ptr; in _tx_thread_smp_preemptable_threads_get()
973 thread_ptr = next_thread; in _tx_thread_smp_preemptable_threads_get()
997 VOID _tx_thread_smp_simple_priority_change(TX_THREAD *thread_ptr, UINT new_priority) in _tx_thread_smp_simple_priority_change() argument
1009 priority = thread_ptr -> tx_thread_priority; in _tx_thread_smp_simple_priority_change()
1013 if (thread_ptr -> tx_thread_ready_next != thread_ptr) in _tx_thread_smp_simple_priority_change()
1019 …(thread_ptr -> tx_thread_ready_next) -> tx_thread_ready_previous = thread_ptr -> tx_thread_read… in _tx_thread_smp_simple_priority_change()
1020 …(thread_ptr -> tx_thread_ready_previous) -> tx_thread_ready_next = thread_ptr -> tx_thread_read… in _tx_thread_smp_simple_priority_change()
1023 if (_tx_thread_priority_list[priority] == thread_ptr) in _tx_thread_smp_simple_priority_change()
1027 _tx_thread_priority_list[priority] = thread_ptr -> tx_thread_ready_next; in _tx_thread_smp_simple_priority_change()
1062 if (new_priority < thread_ptr -> tx_thread_inherit_priority) in _tx_thread_smp_simple_priority_change()
1066 thread_ptr -> tx_thread_priority = new_priority; in _tx_thread_smp_simple_priority_change()
1067 thread_ptr -> tx_thread_preempt_threshold = new_priority; in _tx_thread_smp_simple_priority_change()
1073 thread_ptr -> tx_thread_priority = thread_ptr -> tx_thread_inherit_priority; in _tx_thread_smp_simple_priority_change()
1074 thread_ptr -> tx_thread_preempt_threshold = thread_ptr -> tx_thread_inherit_priority; in _tx_thread_smp_simple_priority_change()
1089 tail_ptr -> tx_thread_ready_next = thread_ptr; in _tx_thread_smp_simple_priority_change()
1090 head_ptr -> tx_thread_ready_previous = thread_ptr; in _tx_thread_smp_simple_priority_change()
1091 thread_ptr -> tx_thread_ready_previous = tail_ptr; in _tx_thread_smp_simple_priority_change()
1092 thread_ptr -> tx_thread_ready_next = head_ptr; in _tx_thread_smp_simple_priority_change()
1098 _tx_thread_priority_list[new_priority] = thread_ptr; in _tx_thread_smp_simple_priority_change()
1099 thread_ptr -> tx_thread_ready_next = thread_ptr; in _tx_thread_smp_simple_priority_change()
1100 thread_ptr -> tx_thread_ready_previous = thread_ptr; in _tx_thread_smp_simple_priority_change()