Lines Matching refs:UINT
65 #define TX_THREAD_EXECUTE_LOG_SIZE ((UINT) 8)
148 UINT _tx_thread_smp_find_next_priority(UINT priority);
150 void _tx_thread_smp_rebalance_execute_list(UINT core_index);
157 void _tx_thread_smp_low_level_initialize(UINT number_of_cores);
158 void _tx_thread_smp_core_preempt(UINT core);
316 THREAD_DECLARE volatile UINT _tx_thread_preempt_disable;
458 #define TX_MOD32_BIT_SET(a,b) (b) = (((ULONG) 1) << ((a)%((UINT) 32)));
473 #define TX_DIV32_BIT_SET(a,b) (b) = (((ULONG) 1) << ((a)/((UINT) 32)));
547 static INLINE_DECLARE UINT _tx_thread_lowest_set_bit_calculate(ULONG map) in _tx_thread_lowest_set_bit_calculate()
549 UINT bit_set; in _tx_thread_lowest_set_bit_calculate()
553 bit_set = ((UINT) 0); in _tx_thread_lowest_set_bit_calculate()
560 bit_set = ((UINT) 1); in _tx_thread_lowest_set_bit_calculate()
564 bit_set = ((UINT) 9); in _tx_thread_lowest_set_bit_calculate()
565 map = map >> ((UINT) 8); in _tx_thread_lowest_set_bit_calculate()
569 bit_set = ((UINT) 17); in _tx_thread_lowest_set_bit_calculate()
570 map = map >> ((UINT) 16); in _tx_thread_lowest_set_bit_calculate()
574 bit_set = ((UINT) 25); in _tx_thread_lowest_set_bit_calculate()
575 map = map >> ((UINT) 24); in _tx_thread_lowest_set_bit_calculate()
579 map = map >> ((UINT) 4); in _tx_thread_lowest_set_bit_calculate()
580 bit_set = bit_set + ((UINT) 4); in _tx_thread_lowest_set_bit_calculate()
584 map = map >> ((UINT) 2); in _tx_thread_lowest_set_bit_calculate()
585 bit_set = bit_set + ((UINT) 2); in _tx_thread_lowest_set_bit_calculate()
587 bit_set = bit_set - (UINT) (map & (ULONG) 0x1); in _tx_thread_lowest_set_bit_calculate()
604 static INLINE_DECLARE UINT _tx_thread_smp_next_priority_find(UINT priority) in _tx_thread_smp_next_priority_find()
613 found_priority = ((UINT) TX_MAX_PRIORITIES); in _tx_thread_smp_next_priority_find()
614 if (priority < ((UINT) TX_MAX_PRIORITIES)) in _tx_thread_smp_next_priority_find()
616 map_index = priority/((UINT) 32); in _tx_thread_smp_next_priority_find()
618 priority_bit = (((ULONG) 1) << (priority % ((UINT) 32))); in _tx_thread_smp_next_priority_find()
619 local_priority_map = local_priority_map & ~(priority_bit - ((UINT)1)); in _tx_thread_smp_next_priority_find()
623 found_priority = (map_index * ((UINT) 32)) + first_bit_set; in _tx_thread_smp_next_priority_find()
629 if (map_index < (((UINT) TX_MAX_PRIORITIES)/((UINT) 32))) in _tx_thread_smp_next_priority_find()
632 … local_priority_map_active = _tx_thread_priority_map_active & ~(priority_bit - ((UINT) 1)); in _tx_thread_smp_next_priority_find()
638 found_priority = (map_index * ((UINT) 32)) + first_bit_set; in _tx_thread_smp_next_priority_find()
647 static INLINE_DECLARE UINT _tx_thread_smp_next_priority_find(UINT priority) in _tx_thread_smp_next_priority_find()
649 UINT first_bit_set; in _tx_thread_smp_next_priority_find()
651 UINT next_priority; in _tx_thread_smp_next_priority_find()
658 next_priority = ((UINT) TX_MAX_PRIORITIES); in _tx_thread_smp_next_priority_find()
662 if (next_priority >= ((UINT) TX_MAX_PRIORITIES)) in _tx_thread_smp_next_priority_find()
664 next_priority = ((UINT) TX_MAX_PRIORITIES); in _tx_thread_smp_next_priority_find()
681 UINT i; in _tx_thread_smp_schedule_list_clear()
700 i = ((UINT) 6); in _tx_thread_smp_schedule_list_clear()
704 while (i < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_schedule_list_clear()
727 UINT j; in _tx_thread_smp_execute_list_clear()
745 j = ((UINT) 6); in _tx_thread_smp_execute_list_clear()
749 while (j < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_execute_list_clear()
774 UINT j; in _tx_thread_smp_schedule_list_setup()
791 j = ((UINT) 6); in _tx_thread_smp_schedule_list_setup()
794 while (j < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_schedule_list_setup()
817 …CLARE VOID _tx_thread_smp_core_interrupt(TX_THREAD *thread_ptr, UINT current_core, UINT target_co… in _tx_thread_smp_core_interrupt()
856 static INLINE_DECLARE VOID _tx_thread_smp_core_wakeup(UINT current_core, UINT target_core) in _tx_thread_smp_core_wakeup()
876 static INLINE_DECLARE VOID _tx_thread_smp_execute_list_setup(UINT core_index) in _tx_thread_smp_execute_list_setup()
880 UINT i; in _tx_thread_smp_execute_list_setup()
884 i = ((UINT) 0); in _tx_thread_smp_execute_list_setup()
887 while (i < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_execute_list_setup()
923 UINT j; in _tx_thread_smp_available_cores_get()
960 j = ((UINT) 6); in _tx_thread_smp_available_cores_get()
963 while (j < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_available_cores_get()
993 UINT j; in _tx_thread_smp_possible_cores_get()
1037 j = ((UINT) 6); in _tx_thread_smp_possible_cores_get()
1040 while (j < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_possible_cores_get()
1067 static INLINE_DECLARE UINT _tx_thread_smp_lowest_priority_get(void) in _tx_thread_smp_lowest_priority_get()
1071 UINT j; in _tx_thread_smp_lowest_priority_get()
1074 UINT lowest_priority; in _tx_thread_smp_lowest_priority_get()
1076 lowest_priority = ((UINT) 0); in _tx_thread_smp_lowest_priority_get()
1133 j = ((UINT) 6); in _tx_thread_smp_lowest_priority_get()
1136 while (j < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_lowest_priority_get()
1168 static INLINE_DECLARE UINT _tx_thread_smp_remap_solution_find(TX_THREAD *schedule_thread, ULONG av… in _tx_thread_smp_remap_solution_find()
1171 UINT core; in _tx_thread_smp_remap_solution_find()
1172 UINT previous_core; in _tx_thread_smp_remap_solution_find()
1175 UINT queue_first, queue_last; in _tx_thread_smp_remap_solution_find()
1176 UINT core_queue[TX_THREAD_SMP_MAX_CORES-1]; in _tx_thread_smp_remap_solution_find()
1189 queue_first = ((UINT) 0); in _tx_thread_smp_remap_solution_find()
1190 queue_last = ((UINT) 0); in _tx_thread_smp_remap_solution_find()
1346 core = ((UINT) TX_THREAD_SMP_MAX_CORES); in _tx_thread_smp_remap_solution_find()
1354 static INLINE_DECLARE ULONG _tx_thread_smp_preemptable_threads_get(UINT priority, TX_THREAD *possi… in _tx_thread_smp_preemptable_threads_get()
1357 UINT i, j, k; in _tx_thread_smp_preemptable_threads_get()
1380 j = ((UINT) 6); in _tx_thread_smp_preemptable_threads_get()
1384 while (j < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_preemptable_threads_get()
1405 i = ((UINT) 0); in _tx_thread_smp_preemptable_threads_get()
1406 j = ((UINT) 0); in _tx_thread_smp_preemptable_threads_get()
1408 while (i < ((UINT) TX_THREAD_SMP_MAX_CORES)) in _tx_thread_smp_preemptable_threads_get()
1444 if (j > ((UINT) 1)) in _tx_thread_smp_preemptable_threads_get()
1448 i = ((UINT) 0); in _tx_thread_smp_preemptable_threads_get()
1456 k = i + ((UINT) 1); in _tx_thread_smp_preemptable_threads_get()
1515 while (i < (j-((UINT) 1))); in _tx_thread_smp_preemptable_threads_get()
1522 static INLINE_DECLARE VOID _tx_thread_smp_simple_priority_change(TX_THREAD *thread_ptr, UINT new_p… in _tx_thread_smp_simple_priority_change()
1525 UINT priority; in _tx_thread_smp_simple_priority_change()
1530 UINT map_index; in _tx_thread_smp_simple_priority_change()
1565 map_index = priority/((UINT) 32); in _tx_thread_smp_simple_priority_change()
1630 map_index = new_priority/((UINT) 32); in _tx_thread_smp_simple_priority_change()
1646 UINT _tx_thread_lowest_set_bit_calculate(ULONG map);
1649 UINT _tx_thread_smp_next_priority_find(UINT priority);
1655 VOID _tx_thread_smp_core_interrupt(TX_THREAD *thread_ptr, UINT current_core, UINT target_core);
1662 VOID _tx_thread_smp_core_wakeup(UINT current_core, UINT target_core);
1668 VOID _tx_thread_smp_execute_list_setup(UINT core_index);
1671 UINT _tx_thread_smp_lowest_priority_get(void);
1672 UINT _tx_thread_smp_remap_solution_find(TX_THREAD *schedule_thread, ULONG available_cores, ULONG …
1673 ULONG _tx_thread_smp_preemptable_threads_get(UINT priority, TX_THREAD *possible_preemption_list[TX…
1674 VOID _tx_thread_smp_simple_priority_change(TX_THREAD *thread_ptr, UINT new_priority);