Lines Matching refs:UINT
64 #define TX_THREAD_EXECUTE_LOG_SIZE ((UINT) 8)
147 UINT _tx_thread_smp_find_next_priority(UINT priority);
149 void _tx_thread_smp_rebalance_execute_list(UINT core_index);
156 void _tx_thread_smp_low_level_initialize(UINT number_of_cores);
157 void _tx_thread_smp_core_preempt(UINT core);
315 THREAD_DECLARE volatile UINT _tx_thread_preempt_disable;
457 #define TX_MOD32_BIT_SET(a,b) (b) = (((ULONG) 1) << ((a)%((UINT) 32)));
472 #define TX_DIV32_BIT_SET(a,b) (b) = (((ULONG) 1) << ((a)/((UINT) 32)));
546 static INLINE_DECLARE UINT _tx_thread_lowest_set_bit_calculate(ULONG map) in _tx_thread_lowest_set_bit_calculate()
548 UINT bit_set; in _tx_thread_lowest_set_bit_calculate()
552 bit_set = ((UINT) 0); in _tx_thread_lowest_set_bit_calculate()
559 bit_set = ((UINT) 1); in _tx_thread_lowest_set_bit_calculate()
563 bit_set = ((UINT) 9); in _tx_thread_lowest_set_bit_calculate()
564 map = map >> ((UINT) 8); in _tx_thread_lowest_set_bit_calculate()
568 bit_set = ((UINT) 17); in _tx_thread_lowest_set_bit_calculate()
569 map = map >> ((UINT) 16); in _tx_thread_lowest_set_bit_calculate()
573 bit_set = ((UINT) 25); in _tx_thread_lowest_set_bit_calculate()
574 map = map >> ((UINT) 24); in _tx_thread_lowest_set_bit_calculate()
578 map = map >> ((UINT) 4); in _tx_thread_lowest_set_bit_calculate()
579 bit_set = bit_set + ((UINT) 4); in _tx_thread_lowest_set_bit_calculate()
583 map = map >> ((UINT) 2); in _tx_thread_lowest_set_bit_calculate()
584 bit_set = bit_set + ((UINT) 2); in _tx_thread_lowest_set_bit_calculate()
586 bit_set = bit_set - (UINT) (map & (ULONG) 0x1); in _tx_thread_lowest_set_bit_calculate()
603 static INLINE_DECLARE UINT _tx_thread_smp_next_priority_find(UINT priority) in _tx_thread_smp_next_priority_find()
612 found_priority = ((UINT) TX_MAX_PRIORITIES); in _tx_thread_smp_next_priority_find()
613 if (priority < ((UINT) TX_MAX_PRIORITIES)) in _tx_thread_smp_next_priority_find()
615 map_index = priority/((UINT) 32); in _tx_thread_smp_next_priority_find()
617 priority_bit = (((ULONG) 1) << (priority % ((UINT) 32))); in _tx_thread_smp_next_priority_find()
618 local_priority_map = local_priority_map & ~(priority_bit - ((UINT)1)); in _tx_thread_smp_next_priority_find()
622 found_priority = (map_index * ((UINT) 32)) + first_bit_set; in _tx_thread_smp_next_priority_find()
628 if (map_index < (((UINT) TX_MAX_PRIORITIES)/((UINT) 32))) in _tx_thread_smp_next_priority_find()
631 … local_priority_map_active = _tx_thread_priority_map_active & ~(priority_bit - ((UINT) 1)); in _tx_thread_smp_next_priority_find()
637 found_priority = (map_index * ((UINT) 32)) + first_bit_set; in _tx_thread_smp_next_priority_find()
646 static INLINE_DECLARE UINT _tx_thread_smp_next_priority_find(UINT priority) in _tx_thread_smp_next_priority_find()
648 UINT first_bit_set; in _tx_thread_smp_next_priority_find()
650 UINT next_priority; in _tx_thread_smp_next_priority_find()
657 next_priority = ((UINT) TX_MAX_PRIORITIES); in _tx_thread_smp_next_priority_find()
661 if (next_priority >= ((UINT) TX_MAX_PRIORITIES)) in _tx_thread_smp_next_priority_find()
663 next_priority = ((UINT) TX_MAX_PRIORITIES); in _tx_thread_smp_next_priority_find()
680 UINT i; in _tx_thread_smp_schedule_list_clear()
699 i = ((UINT) 6); in _tx_thread_smp_schedule_list_clear()
703 while (i < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_schedule_list_clear()
726 UINT j; in _tx_thread_smp_execute_list_clear()
744 j = ((UINT) 6); in _tx_thread_smp_execute_list_clear()
748 while (j < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_execute_list_clear()
773 UINT j; in _tx_thread_smp_schedule_list_setup()
790 j = ((UINT) 6); in _tx_thread_smp_schedule_list_setup()
793 while (j < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_schedule_list_setup()
816 …CLARE VOID _tx_thread_smp_core_interrupt(TX_THREAD *thread_ptr, UINT current_core, UINT target_co… in _tx_thread_smp_core_interrupt()
855 static INLINE_DECLARE VOID _tx_thread_smp_core_wakeup(UINT current_core, UINT target_core) in _tx_thread_smp_core_wakeup()
875 static INLINE_DECLARE VOID _tx_thread_smp_execute_list_setup(UINT core_index) in _tx_thread_smp_execute_list_setup()
879 UINT i; in _tx_thread_smp_execute_list_setup()
883 i = ((UINT) 0); in _tx_thread_smp_execute_list_setup()
886 while (i < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_execute_list_setup()
922 UINT j; in _tx_thread_smp_available_cores_get()
959 j = ((UINT) 6); in _tx_thread_smp_available_cores_get()
962 while (j < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_available_cores_get()
992 UINT j; in _tx_thread_smp_possible_cores_get()
1036 j = ((UINT) 6); in _tx_thread_smp_possible_cores_get()
1039 while (j < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_possible_cores_get()
1066 static INLINE_DECLARE UINT _tx_thread_smp_lowest_priority_get(void) in _tx_thread_smp_lowest_priority_get()
1070 UINT j; in _tx_thread_smp_lowest_priority_get()
1073 UINT lowest_priority; in _tx_thread_smp_lowest_priority_get()
1075 lowest_priority = ((UINT) 0); in _tx_thread_smp_lowest_priority_get()
1132 j = ((UINT) 6); in _tx_thread_smp_lowest_priority_get()
1135 while (j < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_lowest_priority_get()
1167 static INLINE_DECLARE UINT _tx_thread_smp_remap_solution_find(TX_THREAD *schedule_thread, ULONG av… in _tx_thread_smp_remap_solution_find()
1170 UINT core; in _tx_thread_smp_remap_solution_find()
1171 UINT previous_core; in _tx_thread_smp_remap_solution_find()
1174 UINT queue_first, queue_last; in _tx_thread_smp_remap_solution_find()
1175 UINT core_queue[TX_THREAD_SMP_MAX_CORES-1]; in _tx_thread_smp_remap_solution_find()
1188 queue_first = ((UINT) 0); in _tx_thread_smp_remap_solution_find()
1189 queue_last = ((UINT) 0); in _tx_thread_smp_remap_solution_find()
1345 core = ((UINT) TX_THREAD_SMP_MAX_CORES); in _tx_thread_smp_remap_solution_find()
1353 static INLINE_DECLARE ULONG _tx_thread_smp_preemptable_threads_get(UINT priority, TX_THREAD *possi… in _tx_thread_smp_preemptable_threads_get()
1356 UINT i, j, k; in _tx_thread_smp_preemptable_threads_get()
1379 j = ((UINT) 6); in _tx_thread_smp_preemptable_threads_get()
1383 while (j < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_preemptable_threads_get()
1404 i = ((UINT) 0); in _tx_thread_smp_preemptable_threads_get()
1405 j = ((UINT) 0); in _tx_thread_smp_preemptable_threads_get()
1407 while (i < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_preemptable_threads_get()
1443 if (j > ((UINT) 1)) in _tx_thread_smp_preemptable_threads_get()
1447 i = ((UINT) 0); in _tx_thread_smp_preemptable_threads_get()
1455 k = i + ((UINT) 1); in _tx_thread_smp_preemptable_threads_get()
1514 while (i < (j-((UINT) 1))); in _tx_thread_smp_preemptable_threads_get()
1521 static INLINE_DECLARE VOID _tx_thread_smp_simple_priority_change(TX_THREAD *thread_ptr, UINT new_p… in _tx_thread_smp_simple_priority_change()
1524 UINT priority; in _tx_thread_smp_simple_priority_change()
1529 UINT map_index; in _tx_thread_smp_simple_priority_change()
1564 map_index = priority/((UINT) 32); in _tx_thread_smp_simple_priority_change()
1629 map_index = new_priority/((UINT) 32); in _tx_thread_smp_simple_priority_change()
1645 UINT _tx_thread_lowest_set_bit_calculate(ULONG map);
1648 UINT _tx_thread_smp_next_priority_find(UINT priority);
1654 VOID _tx_thread_smp_core_interrupt(TX_THREAD *thread_ptr, UINT current_core, UINT target_core);
1661 VOID _tx_thread_smp_core_wakeup(UINT current_core, UINT target_core);
1667 VOID _tx_thread_smp_execute_list_setup(UINT core_index);
1670 UINT _tx_thread_smp_lowest_priority_get(void);
1671 UINT _tx_thread_smp_remap_solution_find(TX_THREAD *schedule_thread, ULONG available_cores, ULONG …
1672 ULONG _tx_thread_smp_preemptable_threads_get(UINT priority, TX_THREAD *possible_preemption_list[TX…
1673 VOID _tx_thread_smp_simple_priority_change(TX_THREAD *thread_ptr, UINT new_priority);