telemetry.c (1ac731c529cd4d6adbce134754b51ff7d822b145) telemetry.c (4d1b7efee3fc703c64bacc37c4824888c5f26e8b)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Intel Platform Monitory Technology Telemetry driver
4 *
5 * Copyright (c) 2020, Intel Corporation.
6 * All Rights Reserved.
7 *
8 * Author: "David E. Box" <david.e.box@linux.intel.com>

--- 44 unchanged lines hidden (view full) ---

53 (guid == TELEM_CLIENT_FIXED_BLOCK_GUID))
54 return true;
55 }
56
57 return false;
58}
59
60static int pmt_telem_header_decode(struct intel_pmt_entry *entry,
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Intel Platform Monitory Technology Telemetry driver
4 *
5 * Copyright (c) 2020, Intel Corporation.
6 * All Rights Reserved.
7 *
8 * Author: "David E. Box" <david.e.box@linux.intel.com>

--- 44 unchanged lines hidden (view full) ---

53 (guid == TELEM_CLIENT_FIXED_BLOCK_GUID))
54 return true;
55 }
56
57 return false;
58}
59
60static int pmt_telem_header_decode(struct intel_pmt_entry *entry,
61 struct intel_pmt_header *header,
62 struct device *dev)
63{
64 void __iomem *disc_table = entry->disc_table;
61 struct device *dev)
62{
63 void __iomem *disc_table = entry->disc_table;
64 struct intel_pmt_header *header = &entry->header;
65
66 if (pmt_telem_region_overlaps(entry, dev))
67 return 1;
68
69 header->access_type = TELEM_ACCESS(readl(disc_table));
70 header->guid = readl(disc_table + TELEM_GUID_OFFSET);
71 header->base_offset = readl(disc_table + TELEM_BASE_OFFSET);
72

--- 91 unchanged lines hidden ---
65
66 if (pmt_telem_region_overlaps(entry, dev))
67 return 1;
68
69 header->access_type = TELEM_ACCESS(readl(disc_table));
70 header->guid = readl(disc_table + TELEM_GUID_OFFSET);
71 header->base_offset = readl(disc_table + TELEM_BASE_OFFSET);
72

--- 91 unchanged lines hidden ---