Lines Matching +full:pm +full:- +full:api

1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2014-2018 Xilinx, Inc.
19 #include <linux/firmware/xlnx-zynqmp.h>
20 #include "zynqmp-debug.h"
62 * zynqmp_pm_ioctl - PM IOCTL for device control and configs
79 * zynqmp_pm_argument_value() - Extract argument value from a PM-API request
80 * @arg: Entered PM-API argument in string format
99 * get_pm_api_id() - Extract API-ID from a PM-API request
100 * @pm_api_req: Entered PM-API argument in string format
101 * @pm_id: API-ID
117 /* If no name was entered look for PM-API ID instead */ in get_pm_api_id()
119 return -EINVAL; in get_pm_api_id()
133 sprintf(debugfs_buf, "PM-API Version = %d.%d\n", in process_api_request()
285 sprintf(debugfs_buf, "Unsupported PM-API request\n"); in process_api_request()
286 ret = -EINVAL; in process_api_request()
293 * zynqmp_pm_debugfs_api_write() - debugfs write function
295 * @ptr: User entered PM-API string
299 * Used for triggering pm api functions by writing
303 * Return: Number of bytes copied if PM-API request succeeds,
314 /* Return values from PM APIs calls */ in zynqmp_pm_debugfs_api_write()
322 if (*off != 0 || len <= 1 || len > PAGE_SIZE - 1) in zynqmp_pm_debugfs_api_write()
323 return -EINVAL; in zynqmp_pm_debugfs_api_write()
330 /* Read the API name from a user request */ in zynqmp_pm_debugfs_api_write()
337 /* Read node_id and arguments from the PM-API request */ in zynqmp_pm_debugfs_api_write()
355 * zynqmp_pm_debugfs_api_read() - debugfs read function
379 * zynqmp_pm_api_debugfs_init - Initialize debugfs interface
386 firmware_debugfs_root = debugfs_create_dir("zynqmp-firmware", NULL); in zynqmp_pm_api_debugfs_init()
387 debugfs_create_file("pm", 0660, firmware_debugfs_root, NULL, in zynqmp_pm_api_debugfs_init()
392 * zynqmp_pm_api_debugfs_exit - Remove debugfs interface