Lines Matching refs:loc
257 struct memory_locality *loc; in hmat_add_locality() local
259 loc = kzalloc(sizeof(*loc), GFP_KERNEL); in hmat_add_locality()
260 if (!loc) { in hmat_add_locality()
265 loc->hmat_loc = hmat_loc; in hmat_add_locality()
266 list_add_tail(&loc->node, &localities); in hmat_add_locality()
270 localities_types[READ_LATENCY] = loc; in hmat_add_locality()
271 localities_types[WRITE_LATENCY] = loc; in hmat_add_locality()
274 localities_types[READ_LATENCY] = loc; in hmat_add_locality()
277 localities_types[WRITE_LATENCY] = loc; in hmat_add_locality()
280 localities_types[READ_BANDWIDTH] = loc; in hmat_add_locality()
281 localities_types[WRITE_BANDWIDTH] = loc; in hmat_add_locality()
284 localities_types[READ_BANDWIDTH] = loc; in hmat_add_locality()
287 localities_types[WRITE_BANDWIDTH] = loc; in hmat_add_locality()
591 struct memory_locality *loc = NULL; in hmat_register_target_initiators() local
628 loc = localities_types[i]; in hmat_register_target_initiators()
629 if (!loc) in hmat_register_target_initiators()
640 loc->hmat_loc); in hmat_register_target_initiators()
641 if (hmat_update_best(loc->hmat_loc->data_type, value, &best)) in hmat_register_target_initiators()
647 hmat_update_target_access(target, loc->hmat_loc->data_type, in hmat_register_target_initiators()
663 loc = localities_types[i]; in hmat_register_target_initiators()
664 if (!loc) in hmat_register_target_initiators()
678 value = hmat_initiator_perf(target, initiator, loc->hmat_loc); in hmat_register_target_initiators()
679 if (hmat_update_best(loc->hmat_loc->data_type, value, &best)) in hmat_register_target_initiators()
685 hmat_update_target_access(target, loc->hmat_loc->data_type, best, 1); in hmat_register_target_initiators()
792 struct memory_locality *loc, *lnext; in hmat_free_structures() local
820 list_for_each_entry_safe(loc, lnext, &localities, node) { in hmat_free_structures()
821 list_del(&loc->node); in hmat_free_structures()
822 kfree(loc); in hmat_free_structures()