Lines Matching refs:loc

256 	struct memory_locality *loc;  in hmat_add_locality()  local
258 loc = kzalloc(sizeof(*loc), GFP_KERNEL); in hmat_add_locality()
259 if (!loc) { in hmat_add_locality()
264 loc->hmat_loc = hmat_loc; in hmat_add_locality()
265 list_add_tail(&loc->node, &localities); in hmat_add_locality()
269 localities_types[READ_LATENCY] = loc; in hmat_add_locality()
270 localities_types[WRITE_LATENCY] = loc; in hmat_add_locality()
273 localities_types[READ_LATENCY] = loc; in hmat_add_locality()
276 localities_types[WRITE_LATENCY] = loc; in hmat_add_locality()
279 localities_types[READ_BANDWIDTH] = loc; in hmat_add_locality()
280 localities_types[WRITE_BANDWIDTH] = loc; in hmat_add_locality()
283 localities_types[READ_BANDWIDTH] = loc; in hmat_add_locality()
286 localities_types[WRITE_BANDWIDTH] = loc; in hmat_add_locality()
590 struct memory_locality *loc = NULL; in hmat_register_target_initiators() local
627 loc = localities_types[i]; in hmat_register_target_initiators()
628 if (!loc) in hmat_register_target_initiators()
639 loc->hmat_loc); in hmat_register_target_initiators()
640 if (hmat_update_best(loc->hmat_loc->data_type, value, &best)) in hmat_register_target_initiators()
646 hmat_update_target_access(target, loc->hmat_loc->data_type, in hmat_register_target_initiators()
662 loc = localities_types[i]; in hmat_register_target_initiators()
663 if (!loc) in hmat_register_target_initiators()
677 value = hmat_initiator_perf(target, initiator, loc->hmat_loc); in hmat_register_target_initiators()
678 if (hmat_update_best(loc->hmat_loc->data_type, value, &best)) in hmat_register_target_initiators()
684 hmat_update_target_access(target, loc->hmat_loc->data_type, best, 1); in hmat_register_target_initiators()
786 struct memory_locality *loc, *lnext; in hmat_free_structures() local
814 list_for_each_entry_safe(loc, lnext, &localities, node) { in hmat_free_structures()
815 list_del(&loc->node); in hmat_free_structures()
816 kfree(loc); in hmat_free_structures()