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