Lines Matching refs:initiator
85 struct memory_initiator *initiator; in find_mem_initiator() local
87 list_for_each_entry(initiator, &initiators, node) in find_mem_initiator()
88 if (initiator->processor_pxm == cpu_pxm) in find_mem_initiator()
89 return initiator; in find_mem_initiator()
105 struct memory_initiator *initiator; in alloc_memory_initiator() local
110 initiator = find_mem_initiator(cpu_pxm); in alloc_memory_initiator()
111 if (initiator) in alloc_memory_initiator()
114 initiator = kzalloc(sizeof(*initiator), GFP_KERNEL); in alloc_memory_initiator()
115 if (!initiator) in alloc_memory_initiator()
118 initiator->processor_pxm = cpu_pxm; in alloc_memory_initiator()
119 initiator->has_cpu = node_state(pxm_to_node(cpu_pxm), N_CPU); in alloc_memory_initiator()
120 list_add_tail(&initiator->node, &initiators); in alloc_memory_initiator()
495 struct memory_initiator *initiator, in hmat_initiator_perf() argument
509 if (inits[i] == initiator->processor_pxm) { in hmat_initiator_perf()
575 struct memory_initiator *initiator; in initiators_to_nodemask() local
580 list_for_each_entry(initiator, &initiators, node) in initiators_to_nodemask()
581 set_bit(initiator->processor_pxm, p_nodes); in initiators_to_nodemask()
589 struct memory_initiator *initiator; in hmat_register_target_initiators() local
633 list_for_each_entry(initiator, &initiators, node) { in hmat_register_target_initiators()
636 if (!test_bit(initiator->processor_pxm, p_nodes)) in hmat_register_target_initiators()
639 value = hmat_initiator_perf(target, initiator, in hmat_register_target_initiators()
642 bitmap_clear(p_nodes, 0, initiator->processor_pxm); in hmat_register_target_initiators()
644 clear_bit(initiator->processor_pxm, p_nodes); in hmat_register_target_initiators()
668 list_for_each_entry(initiator, &initiators, node) { in hmat_register_target_initiators()
671 if (!initiator->has_cpu) { in hmat_register_target_initiators()
672 clear_bit(initiator->processor_pxm, p_nodes); in hmat_register_target_initiators()
675 if (!test_bit(initiator->processor_pxm, p_nodes)) in hmat_register_target_initiators()
678 value = hmat_initiator_perf(target, initiator, loc->hmat_loc); in hmat_register_target_initiators()
680 bitmap_clear(p_nodes, 0, initiator->processor_pxm); in hmat_register_target_initiators()
682 clear_bit(initiator->processor_pxm, p_nodes); in hmat_register_target_initiators()
793 struct memory_initiator *initiator, *inext; in hmat_free_structures() local
815 list_for_each_entry_safe(initiator, inext, &initiators, node) { in hmat_free_structures()
816 list_del(&initiator->node); in hmat_free_structures()
817 kfree(initiator); in hmat_free_structures()