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()
582 struct memory_locality *loc = NULL; in hmat_register_target_initiators() local
616 loc = localities_types[i]; in hmat_register_target_initiators()
617 if (!loc) in hmat_register_target_initiators()
628 loc->hmat_loc); in hmat_register_target_initiators()
629 if (hmat_update_best(loc->hmat_loc->data_type, value, &best)) in hmat_register_target_initiators()
635 hmat_update_target_access(target, loc->hmat_loc->data_type, in hmat_register_target_initiators()
650 loc = localities_types[i]; in hmat_register_target_initiators()
651 if (!loc) in hmat_register_target_initiators()
665 value = hmat_initiator_perf(target, initiator, loc->hmat_loc); in hmat_register_target_initiators()
666 if (hmat_update_best(loc->hmat_loc->data_type, value, &best)) in hmat_register_target_initiators()
672 hmat_update_target_access(target, loc->hmat_loc->data_type, best, 1); in hmat_register_target_initiators()
779 struct memory_locality *loc, *lnext; in hmat_free_structures() local
807 list_for_each_entry_safe(loc, lnext, &localities, node) { in hmat_free_structures()
808 list_del(&loc->node); in hmat_free_structures()
809 kfree(loc); in hmat_free_structures()