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