Lines Matching defs:hmat_loc
88 struct acpi_hmat_locality *hmat_loc;
361 static __init void hmat_add_locality(struct acpi_hmat_locality *hmat_loc)
371 loc->hmat_loc = hmat_loc;
374 switch (hmat_loc->data_type) {
421 struct acpi_hmat_locality *hmat_loc = (void *)header;
427 if (hmat_loc->header.length < sizeof(*hmat_loc)) {
429 hmat_loc->header.length);
433 type = hmat_loc->data_type;
434 mem_hier = hmat_loc->flags & ACPI_HMAT_MEMORY_HIERARCHY;
435 ipds = hmat_loc->number_of_initiator_Pds;
436 tpds = hmat_loc->number_of_target_Pds;
437 total_size = sizeof(*hmat_loc) + sizeof(*entries) * ipds * tpds +
439 if (hmat_loc->header.length < total_size) {
441 hmat_loc->header.length, total_size);
446 hmat_loc->flags, hmat_data_type(type), ipds, tpds,
447 hmat_loc->entry_base_unit);
449 inits = (u32 *)(hmat_loc + 1);
456 hmat_loc->entry_base_unit,
468 hmat_add_locality(hmat_loc);
633 struct acpi_hmat_locality *hmat_loc)
639 ipds = hmat_loc->number_of_initiator_Pds;
640 tpds = hmat_loc->number_of_target_Pds;
641 inits = (u32 *)(hmat_loc + 1);
665 hmat_loc->entry_base_unit,
666 hmat_loc->data_type);
788 value = hmat_initiator_perf(target, initiator, loc->hmat_loc);
789 if (hmat_update_best(loc->hmat_loc->data_type, value, &best))
795 hmat_update_target_access(target, loc->hmat_loc->data_type, best, access);