Lines Matching refs:UINT

63 #define TX_THREAD_EXECUTE_LOG_SIZE              ((UINT) 8)
146 UINT _tx_thread_smp_find_next_priority(UINT priority);
148 void _tx_thread_smp_rebalance_execute_list(UINT core_index);
155 void _tx_thread_smp_low_level_initialize(UINT number_of_cores);
156 void _tx_thread_smp_core_preempt(UINT core);
314 THREAD_DECLARE volatile UINT _tx_thread_preempt_disable;
456 #define TX_MOD32_BIT_SET(a,b) (b) = (((ULONG) 1) << ((a)%((UINT) 32)));
471 #define TX_DIV32_BIT_SET(a,b) (b) = (((ULONG) 1) << ((a)/((UINT) 32)));
545 static INLINE_DECLARE UINT _tx_thread_lowest_set_bit_calculate(ULONG map) in _tx_thread_lowest_set_bit_calculate()
547 UINT bit_set; in _tx_thread_lowest_set_bit_calculate()
551 bit_set = ((UINT) 0); in _tx_thread_lowest_set_bit_calculate()
558 bit_set = ((UINT) 1); in _tx_thread_lowest_set_bit_calculate()
562 bit_set = ((UINT) 9); in _tx_thread_lowest_set_bit_calculate()
563 map = map >> ((UINT) 8); in _tx_thread_lowest_set_bit_calculate()
567 bit_set = ((UINT) 17); in _tx_thread_lowest_set_bit_calculate()
568 map = map >> ((UINT) 16); in _tx_thread_lowest_set_bit_calculate()
572 bit_set = ((UINT) 25); in _tx_thread_lowest_set_bit_calculate()
573 map = map >> ((UINT) 24); in _tx_thread_lowest_set_bit_calculate()
577 map = map >> ((UINT) 4); in _tx_thread_lowest_set_bit_calculate()
578 bit_set = bit_set + ((UINT) 4); in _tx_thread_lowest_set_bit_calculate()
582 map = map >> ((UINT) 2); in _tx_thread_lowest_set_bit_calculate()
583 bit_set = bit_set + ((UINT) 2); in _tx_thread_lowest_set_bit_calculate()
585 bit_set = bit_set - (UINT) (map & (ULONG) 0x1); in _tx_thread_lowest_set_bit_calculate()
602 static INLINE_DECLARE UINT _tx_thread_smp_next_priority_find(UINT priority) in _tx_thread_smp_next_priority_find()
611 found_priority = ((UINT) TX_MAX_PRIORITIES); in _tx_thread_smp_next_priority_find()
612 if (priority < ((UINT) TX_MAX_PRIORITIES)) in _tx_thread_smp_next_priority_find()
614 map_index = priority/((UINT) 32); in _tx_thread_smp_next_priority_find()
616 priority_bit = (((ULONG) 1) << (priority % ((UINT) 32))); in _tx_thread_smp_next_priority_find()
617 local_priority_map = local_priority_map & ~(priority_bit - ((UINT)1)); in _tx_thread_smp_next_priority_find()
621 found_priority = (map_index * ((UINT) 32)) + first_bit_set; in _tx_thread_smp_next_priority_find()
627 if (map_index < (((UINT) TX_MAX_PRIORITIES)/((UINT) 32))) in _tx_thread_smp_next_priority_find()
630 … local_priority_map_active = _tx_thread_priority_map_active & ~(priority_bit - ((UINT) 1)); in _tx_thread_smp_next_priority_find()
636 found_priority = (map_index * ((UINT) 32)) + first_bit_set; in _tx_thread_smp_next_priority_find()
645 static INLINE_DECLARE UINT _tx_thread_smp_next_priority_find(UINT priority) in _tx_thread_smp_next_priority_find()
647 UINT first_bit_set; in _tx_thread_smp_next_priority_find()
649 UINT next_priority; in _tx_thread_smp_next_priority_find()
656 next_priority = ((UINT) TX_MAX_PRIORITIES); in _tx_thread_smp_next_priority_find()
660 if (next_priority >= ((UINT) TX_MAX_PRIORITIES)) in _tx_thread_smp_next_priority_find()
662 next_priority = ((UINT) TX_MAX_PRIORITIES); in _tx_thread_smp_next_priority_find()
679 UINT i; in _tx_thread_smp_schedule_list_clear()
698 i = ((UINT) 6); in _tx_thread_smp_schedule_list_clear()
702 while (i < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_schedule_list_clear()
725 UINT j; in _tx_thread_smp_execute_list_clear()
743 j = ((UINT) 6); in _tx_thread_smp_execute_list_clear()
747 while (j < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_execute_list_clear()
772 UINT j; in _tx_thread_smp_schedule_list_setup()
789 j = ((UINT) 6); in _tx_thread_smp_schedule_list_setup()
792 while (j < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_schedule_list_setup()
815 …CLARE VOID _tx_thread_smp_core_interrupt(TX_THREAD *thread_ptr, UINT current_core, UINT target_co… in _tx_thread_smp_core_interrupt()
854 static INLINE_DECLARE VOID _tx_thread_smp_core_wakeup(UINT current_core, UINT target_core) in _tx_thread_smp_core_wakeup()
874 static INLINE_DECLARE VOID _tx_thread_smp_execute_list_setup(UINT core_index) in _tx_thread_smp_execute_list_setup()
878 UINT i; in _tx_thread_smp_execute_list_setup()
882 i = ((UINT) 0); in _tx_thread_smp_execute_list_setup()
885 while (i < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_execute_list_setup()
921 UINT j; in _tx_thread_smp_available_cores_get()
958 j = ((UINT) 6); in _tx_thread_smp_available_cores_get()
961 while (j < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_available_cores_get()
991 UINT j; in _tx_thread_smp_possible_cores_get()
1035 j = ((UINT) 6); in _tx_thread_smp_possible_cores_get()
1038 while (j < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_possible_cores_get()
1065 static INLINE_DECLARE UINT _tx_thread_smp_lowest_priority_get(void) in _tx_thread_smp_lowest_priority_get()
1069 UINT j; in _tx_thread_smp_lowest_priority_get()
1072 UINT lowest_priority; in _tx_thread_smp_lowest_priority_get()
1074 lowest_priority = ((UINT) 0); in _tx_thread_smp_lowest_priority_get()
1131 j = ((UINT) 6); in _tx_thread_smp_lowest_priority_get()
1134 while (j < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_lowest_priority_get()
1166 static INLINE_DECLARE UINT _tx_thread_smp_remap_solution_find(TX_THREAD *schedule_thread, ULONG av… in _tx_thread_smp_remap_solution_find()
1169 UINT core; in _tx_thread_smp_remap_solution_find()
1170 UINT previous_core; in _tx_thread_smp_remap_solution_find()
1173 UINT queue_first, queue_last; in _tx_thread_smp_remap_solution_find()
1174 UINT core_queue[TX_THREAD_SMP_MAX_CORES-1]; in _tx_thread_smp_remap_solution_find()
1187 queue_first = ((UINT) 0); in _tx_thread_smp_remap_solution_find()
1188 queue_last = ((UINT) 0); in _tx_thread_smp_remap_solution_find()
1344 core = ((UINT) TX_THREAD_SMP_MAX_CORES); in _tx_thread_smp_remap_solution_find()
1352 static INLINE_DECLARE ULONG _tx_thread_smp_preemptable_threads_get(UINT priority, TX_THREAD *possi… in _tx_thread_smp_preemptable_threads_get()
1355 UINT i, j, k; in _tx_thread_smp_preemptable_threads_get()
1378 j = ((UINT) 6); in _tx_thread_smp_preemptable_threads_get()
1382 while (j < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_preemptable_threads_get()
1403 i = ((UINT) 0); in _tx_thread_smp_preemptable_threads_get()
1404 j = ((UINT) 0); in _tx_thread_smp_preemptable_threads_get()
1406 while (i < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_preemptable_threads_get()
1442 if (j > ((UINT) 1)) in _tx_thread_smp_preemptable_threads_get()
1446 i = ((UINT) 0); in _tx_thread_smp_preemptable_threads_get()
1454 k = i + ((UINT) 1); in _tx_thread_smp_preemptable_threads_get()
1513 while (i < (j-((UINT) 1))); in _tx_thread_smp_preemptable_threads_get()
1520 static INLINE_DECLARE VOID _tx_thread_smp_simple_priority_change(TX_THREAD *thread_ptr, UINT new_p… in _tx_thread_smp_simple_priority_change()
1523 UINT priority; in _tx_thread_smp_simple_priority_change()
1528 UINT map_index; in _tx_thread_smp_simple_priority_change()
1563 map_index = priority/((UINT) 32); in _tx_thread_smp_simple_priority_change()
1628 map_index = new_priority/((UINT) 32); in _tx_thread_smp_simple_priority_change()
1644 UINT _tx_thread_lowest_set_bit_calculate(ULONG map);
1647 UINT _tx_thread_smp_next_priority_find(UINT priority);
1653 VOID _tx_thread_smp_core_interrupt(TX_THREAD *thread_ptr, UINT current_core, UINT target_core);
1660 VOID _tx_thread_smp_core_wakeup(UINT current_core, UINT target_core);
1666 VOID _tx_thread_smp_execute_list_setup(UINT core_index);
1669 UINT _tx_thread_smp_lowest_priority_get(void);
1670 UINT _tx_thread_smp_remap_solution_find(TX_THREAD *schedule_thread, ULONG available_cores, ULONG …
1671 ULONG _tx_thread_smp_preemptable_threads_get(UINT priority, TX_THREAD *possible_preemption_list[]);
1672 VOID _tx_thread_smp_simple_priority_change(TX_THREAD *thread_ptr, UINT new_priority);