Lines Matching refs:hmat_loc
80 struct acpi_hmat_locality *hmat_loc; member
255 static __init void hmat_add_locality(struct acpi_hmat_locality *hmat_loc) in hmat_add_locality() argument
265 loc->hmat_loc = hmat_loc; in hmat_add_locality()
268 switch (hmat_loc->data_type) { in hmat_add_locality()
297 struct acpi_hmat_locality *hmat_loc = (void *)header; in hmat_parse_locality() local
304 if (hmat_loc->header.length < sizeof(*hmat_loc)) { in hmat_parse_locality()
306 hmat_loc->header.length); in hmat_parse_locality()
310 type = hmat_loc->data_type; in hmat_parse_locality()
311 mem_hier = hmat_loc->flags & ACPI_HMAT_MEMORY_HIERARCHY; in hmat_parse_locality()
312 ipds = hmat_loc->number_of_initiator_Pds; in hmat_parse_locality()
313 tpds = hmat_loc->number_of_target_Pds; in hmat_parse_locality()
314 total_size = sizeof(*hmat_loc) + sizeof(*entries) * ipds * tpds + in hmat_parse_locality()
316 if (hmat_loc->header.length < total_size) { in hmat_parse_locality()
318 hmat_loc->header.length, total_size); in hmat_parse_locality()
323 hmat_loc->flags, hmat_data_type(type), ipds, tpds, in hmat_parse_locality()
324 hmat_loc->entry_base_unit); in hmat_parse_locality()
326 inits = (u32 *)(hmat_loc + 1); in hmat_parse_locality()
333 hmat_loc->entry_base_unit, in hmat_parse_locality()
352 hmat_add_locality(hmat_loc); in hmat_parse_locality()
496 struct acpi_hmat_locality *hmat_loc) in hmat_initiator_perf() argument
502 ipds = hmat_loc->number_of_initiator_Pds; in hmat_initiator_perf()
503 tpds = hmat_loc->number_of_target_Pds; in hmat_initiator_perf()
504 inits = (u32 *)(hmat_loc + 1); in hmat_initiator_perf()
528 hmat_loc->entry_base_unit, in hmat_initiator_perf()
529 hmat_loc->data_type); in hmat_initiator_perf()
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()
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()