acpi.c (6f84981772535e670e4e2df051a672af229b6694) acpi.c (cbbd05d036e91b9dd976af4382f6c8d91b69b38a)
1// SPDX-License-Identifier: GPL-2.0-only
2/* Copyright(c) 2021 Intel Corporation. All rights reserved. */
3#include <linux/platform_device.h>
4#include <linux/module.h>
5#include <linux/device.h>
6#include <linux/kernel.h>
7#include <linux/acpi.h>
8#include <linux/pci.h>

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

14
15struct cxl_cxims_data {
16 int nr_maps;
17 u64 xormaps[];
18};
19
20/*
21 * Find a targets entry (n) in the host bridge interleave list.
1// SPDX-License-Identifier: GPL-2.0-only
2/* Copyright(c) 2021 Intel Corporation. All rights reserved. */
3#include <linux/platform_device.h>
4#include <linux/module.h>
5#include <linux/device.h>
6#include <linux/kernel.h>
7#include <linux/acpi.h>
8#include <linux/pci.h>

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

14
15struct cxl_cxims_data {
16 int nr_maps;
17 u64 xormaps[];
18};
19
20/*
21 * Find a targets entry (n) in the host bridge interleave list.
22 * CXL Specfication 3.0 Table 9-22
22 * CXL Specification 3.0 Table 9-22
23 */
24static int cxl_xor_calc_n(u64 hpa, struct cxl_cxims_data *cximsd, int iw,
25 int ig)
26{
27 int i = 0, n = 0;
28 u8 eiw;
29
30 /* IW: 2,4,6,8,12,16 begin building 'n' using xormaps */

--- 709 unchanged lines hidden ---
23 */
24static int cxl_xor_calc_n(u64 hpa, struct cxl_cxims_data *cximsd, int iw,
25 int ig)
26{
27 int i = 0, n = 0;
28 u8 eiw;
29
30 /* IW: 2,4,6,8,12,16 begin building 'n' using xormaps */

--- 709 unchanged lines hidden ---