Home
last modified time | relevance | path

Searched refs:bit_test (Results 1 – 9 of 9) sorted by relevance

/xnu-8020.121.3/osfmk/kern/
H A Dprocessor.h612 assert(bit_test(pset->cpu_bitmask, cpuid)); in pset_update_processor_state()
642 if (!bit_test(atomic_load(&node->pset_non_rt_primary_map), pset->pset_id)) { in pset_update_processor_state()
645 if (!bit_test(atomic_load(&node->pset_idle_primary_map), pset->pset_id)) { in pset_update_processor_state()
649 if (!bit_test(atomic_load(&node->pset_non_rt_map), pset->pset_id)) { in pset_update_processor_state()
652 if (!bit_test(atomic_load(&node->pset_idle_map), pset->pset_id)) { in pset_update_processor_state()
659 if (bit_test(atomic_load(&node->pset_idle_map), pset->pset_id)) { in pset_update_processor_state()
667 if (bit_test(atomic_load(&node->pset_idle_primary_map), pset->pset_id)) { in pset_update_processor_state()
H A Dbits.h57 #define bit_test(x, b) ((bool)((x) & BIT(b))) macro
89 bool _bit_is_set = bit_test(*_map, _n); \
99 bool _bit_is_set = bit_test(*_map, _n); \
192 return bit_test(prev, n); in atomic_bit_set()
200 return bit_test(prev, n); in atomic_bit_clear()
295 return bit_test(map[bitmap_index(n)], bitmap_bit(n)); in bitmap_test()
H A Dsched_amp.c236 if (pset == ecore_set && bit_test(pset->pending_spill_cpu_mask, processor->cpu_id)) { in sched_amp_choose_thread()
289 bool spill_pending = bit_test(pset->pending_spill_cpu_mask, processor->cpu_id); in sched_amp_processor_queue_empty()
326 if (pset == ecore_set && bit_test(pset->pending_spill_cpu_mask, processor->cpu_id)) { in sched_amp_processor_csw_check()
371 if (pset == ecore_set && bit_test(pset->pending_spill_cpu_mask, processor->cpu_id)) { in sched_amp_processor_queue_has_priority()
494 bool spill_pending = bit_test(pset->pending_spill_cpu_mask, processor->cpu_id); in sched_amp_steal_thread()
H A Dsched_prim.c2197 if (!bit_test(atomic_load(&node->pset_non_rt_map), pset->pset_id)) { in pset_commit_processor_to_new_thread()
2203 if (!bit_test(atomic_load(&node->pset_non_rt_primary_map), pset->pset_id)) { in pset_commit_processor_to_new_thread()
2374 pending_AST_URGENT = bit_test(pset->pending_AST_URGENT_cpu_mask, processor->cpu_id); in thread_select()
2375 pending_AST_PREEMPT = bit_test(pset->pending_AST_PREEMPT_cpu_mask, processor->cpu_id); in thread_select()
2501 if (bit_test(pset->rt_pending_spill_cpu_mask, processor->cpu_id)) { in thread_select()
2658 if (!pending_AST_URGENT && bit_test(pset->pending_AST_URGENT_cpu_mask, processor->cpu_id)) { in thread_select()
2664 bool spill_pending = bit_test(pset->rt_pending_spill_cpu_mask, processor->cpu_id); in thread_select()
2734 if (!pending_AST_URGENT && bit_test(pset->pending_AST_URGENT_cpu_mask, processor->cpu_id)) { in thread_select()
2769 if ((!pending_AST_URGENT && bit_test(pset->pending_AST_URGENT_cpu_mask, processor->cpu_id)) || in thread_select()
2770 (!pending_AST_PREEMPT && bit_test(pset->pending_AST_PREEMPT_cpu_mask, processor->cpu_id))) { in thread_select()
[all …]
H A Dsched_amp_common.c148 if (bit_test(pset->pending_spill_cpu_mask, processor->cpu_id)) { in pset_signal_spill()
H A Dsched_clutch.c3921 …if (bit_test(target_pset->cpu_running_cluster_shared_rsrc_thread[CLUSTER_SHARED_RSRC_TYPE_RR], for… in sched_edge_cpu_running_foreign_shared_rsrc_available()
3926 …if (bit_test(target_pset->cpu_running_cluster_shared_rsrc_thread[CLUSTER_SHARED_RSRC_TYPE_NATIVE_F… in sched_edge_cpu_running_foreign_shared_rsrc_available()
4258 if (bit_test(local_candidate_map, previous_cluster)) { in sched_edge_iterate_clusters_ordered()
/xnu-8020.121.3/bsd/skywalk/mem/
H A Dskmem_region.c1483 ASSERT(bit_test(skr->skr_seg_bmap[i / BMAPSZ], i % BMAPSZ)); in skmem_region_depopulate()
1515 ASSERT(bit_test(*bmap, i % BMAPSZ)); in sksegment_create()
1555 ASSERT(!bit_test(*bmap, i % BMAPSZ)); in sksegment_destroy()
1834 if (!bit_test(skr->skr_seg_bmap[idx / BMAPSZ], idx % BMAPSZ)) { in sksegment_alloc_with_idx()
1845 VERIFY(!bit_test(skr->skr_seg_bmap[idx / BMAPSZ], idx % BMAPSZ)); in sksegment_alloc_with_idx()
/xnu-8020.121.3/bsd/skywalk/nexus/
H A Dnexus.c2624 if (bit_test(*bmap, j)) { in nx_port_alloc()
2685 ASSERT(!bit_test(nx->nx_ports_bmap[nx_port / NX_PORT_CHUNK], in nx_port_alloc()
2723 ASSERT(!bit_test(*bmap, j)); in nx_port_free()
2768 if (bit_test(*bmap, j)) { in nx_port_bind_info()
2839 (!bit_test(*bmap, j) && nx->nx_active_ports > 0)); in nx_port_unbind()
2851 ASSERT(!bit_test(*bmap, j)); in nx_port_unbind()
2963 if (bit_test(bmap, j)) {
/xnu-8020.121.3/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_owner.c507 ASSERT(!bit_test(bmap[chunk_idx], bit_pos)); in flow_owner_flowadv_index_free()