ipa_main.c
Includes Linux kernel module headerAssigns a negative errno constant
SHA-256d8f7347ff7d303bb5d83eee4b45e98da0e2b89205a735b11bdd27fff347f615f
MaleculeO(Er)H(Os)
Evidence
1// SPDX-License-Identifier: GPL-2.0
2
3/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
4 * Copyright (C) 2018-2024 Linaro Ltd.
5 */
6
7#include <linux/bug.h>
8#include <linux/firmware.h>
9#include <linux/io.h>
10#include <linux/module.h>
11#include <linux/of.h>
12#include <linux/of_reserved_mem.h>
13#include <linux/platform_device.h>
14#include <linux/pm_runtime.h>
15#include <linux/types.h>
16
17#include <linux/firmware/qcom/qcom_scm.h>
18#include <linux/soc/qcom/mdt_loader.h>
19
20#include "ipa.h"
21#include "ipa_cmd.h"
22#include "ipa_data.h"
23#include "ipa_endpoint.h"
24#include "ipa_interrupt.h"
25#include "ipa_mem.h"
26#include "ipa_modem.h"
27#include "ipa_power.h"
28#include "ipa_reg.h"
29#include "ipa_resource.h"
30#include "ipa_smp2p.h"
31#include "ipa_sysfs.h"
32#include "ipa_table.h"
33#include "ipa_uc.h"
34#include "ipa_version.h"
35
36/**
37 * DOC: The IP Accelerator
38 *
39 * This driver supports the Qualcomm IP Accelerator (IPA), which is a
40 * networking component found in …
41:14… lication processor (AP), but is also connected (and partially
42 * controlled by) other "execution environments" (EEs), such as a modem.
43 *
44 * The IPA is the conduit between the AP and the modem that carries network
45 * traffic. This driver presents a network interface representing the
46 * conne …
59:7… e. The GSI implements a set of "channels" used for communication
60 * between the AP and the IPA.
61 *
62 * The IPA layer uses GSI channels to implement …
620:4… (!virt) {
621 dev_err(dev, "unable to remap firmware memory\n");
622 ret = -ENOMEM;
623 goto out_release_firmware;
624 }
⋯4 lines
800:5… (!data) {
801 dev_err(dev, "matched hardware not supported\n");
802 return -ENODEV;
803 }
804
⋯6 lines