cregit-Linux how code gets into the kernel

Release 4.7 drivers/firmware/qcom_scm.c

Directory: drivers/firmware
/* Copyright (c) 2010,2015, The Linux Foundation. All rights reserved.
 * Copyright (C) 2015 Linaro Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301, USA.
 */

#include <linux/cpumask.h>
#include <linux/export.h>
#include <linux/types.h>
#include <linux/qcom_scm.h>

#include "qcom_scm.h"

/**
 * qcom_scm_set_cold_boot_addr() - Set the cold boot address for cpus
 * @entry: Entry point function for the cpus
 * @cpus: The cpumask of cpus that will use the entry point
 *
 * Set the cold boot address of the cpus. Any cpu outside the supported
 * range would be removed from the cpu present mask.
 */

int qcom_scm_set_cold_boot_addr(void *entry, const cpumask_t *cpus) { return __qcom_scm_set_cold_boot_addr(entry, cpus); }

Contributors

PersonTokensPropCommitsCommitProp
lina iyerlina iyer2090.91%150.00%
kumar galakumar gala29.09%150.00%
Total22100.00%2100.00%

EXPORT_SYMBOL(qcom_scm_set_cold_boot_addr); /** * qcom_scm_set_warm_boot_addr() - Set the warm boot address for cpus * @entry: Entry point function for the cpus * @cpus: The cpumask of cpus that will use the entry point * * Set the Linux entry point for the SCM to transfer control to when coming * out of a power down. CPU power down may be executed on cpuidle or hotplug. */
int qcom_scm_set_warm_boot_addr(void *entry, const cpumask_t *cpus) { return __qcom_scm_set_warm_boot_addr(entry, cpus); }

Contributors

PersonTokensPropCommitsCommitProp
lina iyerlina iyer2090.91%150.00%
kumar galakumar gala29.09%150.00%
Total22100.00%2100.00%

EXPORT_SYMBOL(qcom_scm_set_warm_boot_addr); /** * qcom_scm_cpu_power_down() - Power down the cpu * @flags - Flags to flush cache * * This is an end point to power down cpu. If there was a pending interrupt, * the control would return from this function, otherwise, the cpu jumps to the * warm boot entry point set for this cpu upon reset. */
void qcom_scm_cpu_power_down(u32 flags) { __qcom_scm_cpu_power_down(flags); }

Contributors

PersonTokensPropCommitsCommitProp
lina iyerlina iyer1292.31%150.00%
kumar galakumar gala17.69%150.00%
Total13100.00%2100.00%

EXPORT_SYMBOL(qcom_scm_cpu_power_down); /** * qcom_scm_hdcp_available() - Check if secure environment supports HDCP. * * Return true if HDCP is supported, false if not. */
bool qcom_scm_hdcp_available(void) { int ret; ret = __qcom_scm_is_call_available(QCOM_SCM_SVC_HDCP, QCOM_SCM_CMD_HDCP); return (ret > 0) ? true : false; }

Contributors

PersonTokensPropCommitsCommitProp
jilai wangjilai wang30100.00%1100.00%
Total30100.00%1100.00%

EXPORT_SYMBOL(qcom_scm_hdcp_available); /** * qcom_scm_hdcp_req() - Send HDCP request. * @req: HDCP request array * @req_cnt: HDCP request array count * @resp: response buffer passed to SCM * * Write HDCP register(s) through SCM. */
int qcom_scm_hdcp_req(struct qcom_scm_hdcp_req *req, u32 req_cnt, u32 *resp) { return __qcom_scm_hdcp_req(req, req_cnt, resp); }

Contributors

PersonTokensPropCommitsCommitProp
jilai wangjilai wang27100.00%1100.00%
Total27100.00%1100.00%

EXPORT_SYMBOL(qcom_scm_hdcp_req);

Overall Contributors

PersonTokensPropCommitsCommitProp
jilai wangjilai wang7043.75%111.11%
lina iyerlina iyer6641.25%333.33%
kumar galakumar gala148.75%333.33%
stephen boydstephen boyd106.25%222.22%
Total160100.00%9100.00%
Directory: drivers/firmware
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}