acpi.c (d5a4dfc3cf30faa9d0b0333e58900ddd80ddd745) acpi.c (1738061c9ec854db2db76be8bb968f550d9bdddc)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * AMD Platform Management Framework Driver
4 *
5 * Copyright (c) 2022, Advanced Micro Devices, Inc.
6 * All Rights Reserved.
7 *
8 * Author: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>

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

228 params.command_code,
229 params.heartbeat_int);
230 params.flags = params.flags & params.valid_mask;
231 dev->hb_interval = params.heartbeat_int;
232
233 return 0;
234}
235
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * AMD Platform Management Framework Driver
4 *
5 * Copyright (c) 2022, Advanced Micro Devices, Inc.
6 * All Rights Reserved.
7 *
8 * Author: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>

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

228 params.command_code,
229 params.heartbeat_int);
230 params.flags = params.flags & params.valid_mask;
231 dev->hb_interval = params.heartbeat_int;
232
233 return 0;
234}
235
236int apmf_get_dyn_slider_def_ac(struct amd_pmf_dev *pdev, struct apmf_dyn_slider_output *data)
237{
238 return apmf_if_call_store_buffer(pdev, APMF_FUNC_DYN_SLIDER_AC, data, sizeof(*data));
239}
240
241int apmf_get_dyn_slider_def_dc(struct amd_pmf_dev *pdev, struct apmf_dyn_slider_output *data)
242{
243 return apmf_if_call_store_buffer(pdev, APMF_FUNC_DYN_SLIDER_DC, data, sizeof(*data));
244}
245
236void apmf_acpi_deinit(struct amd_pmf_dev *pmf_dev)
237{
238 acpi_handle ahandle = ACPI_HANDLE(pmf_dev->dev);
239
240 if (pmf_dev->hb_interval)
241 cancel_delayed_work_sync(&pmf_dev->heart_beat);
242
243 if (is_apmf_func_supported(pmf_dev, APMF_FUNC_AUTO_MODE) &&

--- 45 unchanged lines hidden ---
246void apmf_acpi_deinit(struct amd_pmf_dev *pmf_dev)
247{
248 acpi_handle ahandle = ACPI_HANDLE(pmf_dev->dev);
249
250 if (pmf_dev->hb_interval)
251 cancel_delayed_work_sync(&pmf_dev->heart_beat);
252
253 if (is_apmf_func_supported(pmf_dev, APMF_FUNC_AUTO_MODE) &&

--- 45 unchanged lines hidden ---