Home
last modified time | relevance | path

Searched +full:fw +full:- +full:cfg +full:- +full:mmio (Results 1 – 25 of 53) sorted by relevance

123

/kernel/linux/linux-6.6/Documentation/devicetree/bindings/firmware/
Dqemu,fw-cfg-mmio.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/firmware/qemu,fw-cfg-mmio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Rob Herring <robh@kernel.org>
16 - A write-only, 16-bit wide selector (or control) register,
17 - a read-write, 64-bit wide data register.
23 The authoritative guest-side hardware interface documentation to the fw_cfg
29 const: qemu,fw-cfg-mmio
39 dma-coherent: true
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/arm/
Dfw-cfg.txt3 QEMU's arm-softmmu and aarch64-softmmu emulation / virtualization targets
7 - A write-only, 16-bit wide selector (or control) register,
8 - a read-write, 64-bit wide data register.
14 The authoritative guest-side hardware interface documentation to the fw_cfg
20 - compatible: "qemu,fw-cfg-mmio".
22 - reg: the MMIO region used by the device.
31 #size-cells = <0x2>;
32 #address-cells = <0x2>;
34 fw-cfg@9020000 {
35 compatible = "qemu,fw-cfg-mmio";
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gvt/
Dfirmware.c2 * Copyright(c) 2011-2016 Intel Corporation. All rights reserved.
58 memcpy(buf, attr->private + offset, count); in gvt_firmware_read()
71 struct intel_gvt_device_info *info = &gvt->device_info; in expose_firmware_sysfs()
72 struct drm_i915_private *i915 = gvt->gt->i915; in expose_firmware_sysfs()
73 struct pci_dev *pdev = to_pci_dev(i915->drm.dev); in expose_firmware_sysfs()
80 size = offsetof(struct gvt_firmware_header, data) + info->mmio_size + info->cfg_space_size; in expose_firmware_sysfs()
83 return -ENOMEM; in expose_firmware_sysfs()
87 h->magic = VGT_MAGIC; in expose_firmware_sysfs()
88 h->version = FIRMWARE_VERSION; in expose_firmware_sysfs()
89 h->cfg_space_size = info->cfg_space_size; in expose_firmware_sysfs()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gvt/
Dfirmware.c2 * Copyright(c) 2011-2016 Intel Corporation. All rights reserved.
58 memcpy(buf, attr->private + offset, count); in gvt_firmware_read()
71 *(u32 *)(data + offset) = intel_uncore_read_notrace(gvt->gt->uncore, in mmio_snapshot_handler()
78 struct intel_gvt_device_info *info = &gvt->device_info; in expose_firmware_sysfs()
79 struct pci_dev *pdev = gvt->gt->i915->drm.pdev; in expose_firmware_sysfs()
86 size = sizeof(*h) + info->mmio_size + info->cfg_space_size; in expose_firmware_sysfs()
89 return -ENOMEM; in expose_firmware_sysfs()
93 h->magic = VGT_MAGIC; in expose_firmware_sysfs()
94 h->version = FIRMWARE_VERSION; in expose_firmware_sysfs()
95 h->cfg_space_size = info->cfg_space_size; in expose_firmware_sysfs()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/kvm/
Dpowerpc.c1 // SPDX-License-Identifier: GPL-2.0-only
51 return !!(v->arch.pending_exceptions) || kvm_request_pending(v); in kvm_arch_vcpu_runnable()
95 vcpu->run->exit_reason = KVM_EXIT_INTR; in kvmppc_prepare_to_enter()
96 r = -EINTR; in kvmppc_prepare_to_enter()
100 vcpu->mode = IN_GUEST_MODE; in kvmppc_prepare_to_enter()
103 * Reading vcpu->requests must happen after setting vcpu->mode, in kvmppc_prepare_to_enter()
143 struct kvm_vcpu_arch_shared *shared = vcpu->arch.shared; in kvmppc_swab_shared()
146 shared->sprg0 = swab64(shared->sprg0); in kvmppc_swab_shared()
147 shared->sprg1 = swab64(shared->sprg1); in kvmppc_swab_shared()
148 shared->sprg2 = swab64(shared->sprg2); in kvmppc_swab_shared()
[all …]
/kernel/linux/linux-6.6/arch/powerpc/kvm/
Dpowerpc.c1 // SPDX-License-Identifier: GPL-2.0-only
52 return !!(v->arch.pending_exceptions) || kvm_request_pending(v); in kvm_arch_vcpu_runnable()
96 vcpu->run->exit_reason = KVM_EXIT_INTR; in kvmppc_prepare_to_enter()
97 r = -EINTR; in kvmppc_prepare_to_enter()
101 vcpu->mode = IN_GUEST_MODE; in kvmppc_prepare_to_enter()
104 * Reading vcpu->requests must happen after setting vcpu->mode, in kvmppc_prepare_to_enter()
144 struct kvm_vcpu_arch_shared *shared = vcpu->arch.shared; in kvmppc_swab_shared()
147 shared->sprg0 = swab64(shared->sprg0); in kvmppc_swab_shared()
148 shared->sprg1 = swab64(shared->sprg1); in kvmppc_swab_shared()
149 shared->sprg2 = swab64(shared->sprg2); in kvmppc_swab_shared()
[all …]
/kernel/linux/linux-6.6/sound/soc/sof/mediatek/mt8195/
Dmt8195.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
24 #include "../../sof-of-dev.h"
25 #include "../../sof-audio.h"
27 #include "../mtk-adsp-common.h"
29 #include "mt8195-clk.h"
44 struct adsp_priv *priv = sdev->pdata->hw_pdata; in mt8195_send_msg()
46 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, in mt8195_send_msg()
47 msg->msg_size); in mt8195_send_msg()
49 return mtk_adsp_ipc_send(priv->dsp_ipc, MTK_ADSP_IPC_REQ, MTK_ADSP_IPC_OP_REQ); in mt8195_send_msg()
57 spin_lock_irqsave(&priv->sdev->ipc_lock, flags); in mt8195_dsp_handle_reply()
[all …]
/kernel/linux/linux-6.6/sound/soc/sof/mediatek/mt8186/
Dmt8186.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
5 // Author: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
24 #include "../../sof-of-dev.h"
25 #include "../../sof-audio.h"
27 #include "../mtk-adsp-common.h"
29 #include "mt8186-clk.h"
44 struct adsp_priv *priv = sdev->pdata->hw_pdata; in mt8186_send_msg()
46 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, in mt8186_send_msg()
47 msg->msg_size); in mt8186_send_msg()
49 return mtk_adsp_ipc_send(priv->dsp_ipc, MTK_ADSP_IPC_REQ, MTK_ADSP_IPC_OP_REQ); in mt8186_send_msg()
[all …]
/kernel/linux/linux-6.6/drivers/accel/ivpu/
Dvpu_boot_api.h1 /* SPDX-License-Identifier: MIT */
3 * Copyright (C) 2020-2023 Intel Corporation
10 * =========== FW API version information beginning ================
12 * fw_bin_header->api_version[VPU_BOOT_API_VER_ID] = (VPU_BOOT_API_VER_MAJOR << 16) |
39 /* ------------ FW API version information end ---------------------*/
97 * a specific VPU FW binary may support only a subset of such output
140 u8 cfg; member
156 /* Clock frequencies: 0x20 - 0xFF */
161 /* Memory regions: 0x100 - 0x1FF */
175 * ShaveNN FW section VPU base address
[all …]
/kernel/linux/linux-5.10/drivers/remoteproc/
Dqcom_wcnss.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
138 mutex_lock(&wcnss->iris_lock); in qcom_wcnss_assign_iris()
140 wcnss->iris = iris; in qcom_wcnss_assign_iris()
141 wcnss->use_48mhz_xo = use_48mhz_xo; in qcom_wcnss_assign_iris()
143 mutex_unlock(&wcnss->iris_lock); in qcom_wcnss_assign_iris()
146 static int wcnss_load(struct rproc *rproc, const struct firmware *fw) in wcnss_load() argument
148 struct qcom_wcnss *wcnss = (struct qcom_wcnss *)rproc->priv; in wcnss_load()
151 ret = qcom_mdt_load(wcnss->dev, fw, rproc->firmware, WCNSS_PAS_ID, in wcnss_load()
152 wcnss->mem_region, wcnss->mem_phys, in wcnss_load()
[all …]
/kernel/linux/linux-6.6/drivers/remoteproc/
Dqcom_wcnss.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
155 static int wcnss_load(struct rproc *rproc, const struct firmware *fw) in wcnss_load() argument
157 struct qcom_wcnss *wcnss = rproc->priv; in wcnss_load()
160 ret = qcom_mdt_load(wcnss->dev, fw, rproc->firmware, WCNSS_PAS_ID, in wcnss_load()
161 wcnss->mem_region, wcnss->mem_phys, in wcnss_load()
162 wcnss->mem_size, &wcnss->mem_reloc); in wcnss_load()
166 qcom_pil_info_store("wcnss", wcnss->mem_phys, wcnss->mem_size); in wcnss_load()
176 val = readl(wcnss->spare_out); in wcnss_indicate_nv_download()
178 writel(val, wcnss->spare_out); in wcnss_indicate_nv_download()
[all …]
/kernel/linux/linux-6.6/arch/arm64/boot/dts/ti/
Dk3-am64-main.dtsi1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/
8 #include <dt-bindings/phy/phy-cadence.h>
9 #include <dt-bindings/phy/phy-ti.h>
12 serdes_refclk: clock-cmnrefclk {
13 #clock-cells = <0>;
14 compatible = "fixed-clock";
15 clock-frequency = <0>;
21 compatible = "mmio-sram";
23 #address-cells = <1>;
[all …]
Dk3-j721e-main.dtsi1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2016-2020 Texas Instruments Incorporated - https://www.ti.com/
7 #include <dt-bindings/phy/phy.h>
8 #include <dt-bindings/phy/phy-ti.h>
9 #include <dt-bindings/mux/mux.h>
11 #include "k3-serdes.h"
14 cmn_refclk: clock-cmnrefclk {
15 #clock-cells = <0>;
16 compatible = "fixed-clock";
17 clock-frequency = <0>;
[all …]
Dk3-am65-main.dtsi1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2016-2018 Texas Instruments Incorporated - https://www.ti.com/
7 #include <dt-bindings/phy/phy-am654-serdes.h>
11 compatible = "mmio-sram";
13 #address-cells = <1>;
14 #size-cells = <1>;
17 atf-sram@0 {
21 sysfw-sram@f0000 {
25 l3cache-sram@100000 {
30 gic500: interrupt-controller@1800000 {
[all …]
Dk3-am65-mcu.dtsi1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2016-2020 Texas Instruments Incorporated - https://www.ti.com/
9 mcu_conf: scm-conf@40f00000 {
10 compatible = "syscon", "simple-mfd";
12 #address-cells = <1>;
13 #size-cells = <1>;
17 compatible = "ti,am654-phy-gmii-sel";
19 #phy-cells = <1>;
25 compatible = "pinctrl-single";
27 #pinctrl-cells = <1>;
[all …]
Dk3-j784s4-main.dtsi1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
10 compatible = "mmio-sram";
12 #address-cells = <1>;
13 #size-cells = <1>;
16 atf-sram@0 {
20 tifs-sram@1f0000 {
24 l3cache-sram@200000 {
29 gic500: interrupt-controller@1800000 {
30 compatible = "arm,gic-v3";
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dgf100.c51 struct nvkm_device *device = gr->base.engine.subdev.device; in gf100_gr_zbc_clear_color()
52 if (gr->zbc_color[zbc].format) { in gf100_gr_zbc_clear_color()
53 nvkm_wr32(device, 0x405804, gr->zbc_color[zbc].ds[0]); in gf100_gr_zbc_clear_color()
54 nvkm_wr32(device, 0x405808, gr->zbc_color[zbc].ds[1]); in gf100_gr_zbc_clear_color()
55 nvkm_wr32(device, 0x40580c, gr->zbc_color[zbc].ds[2]); in gf100_gr_zbc_clear_color()
56 nvkm_wr32(device, 0x405810, gr->zbc_color[zbc].ds[3]); in gf100_gr_zbc_clear_color()
58 nvkm_wr32(device, 0x405814, gr->zbc_color[zbc].format); in gf100_gr_zbc_clear_color()
67 struct nvkm_ltc *ltc = gr->base.engine.subdev.device->ltc; in gf100_gr_zbc_color_get()
68 int zbc = -ENOSPC, i; in gf100_gr_zbc_color_get()
70 for (i = ltc->zbc_min; i <= ltc->zbc_max; i++) { in gf100_gr_zbc_color_get()
[all …]
/kernel/linux/linux-6.6/drivers/net/wireless/ath/wcn36xx/
Dmain.c190 return NL80211_IFTYPE_STATION == vif->type ? in get_sta_index()
191 sta_priv->bss_sta_index : in get_sta_index()
192 sta_priv->sta_index; in get_sta_index()
200 if (wcn36xx_firmware_get_feat_caps(wcn->fw_feat_caps, i)) { in wcn36xx_feat_caps_info()
201 wcn36xx_dbg(WCN36XX_DBG_MAC, "FW Cap %s\n", in wcn36xx_feat_caps_info()
209 struct wcn36xx *wcn = hw->priv; in wcn36xx_start()
263 INIT_LIST_HEAD(&wcn->vif_list); in wcn36xx_start()
264 spin_lock_init(&wcn->dxe_lock); in wcn36xx_start()
265 spin_lock_init(&wcn->survey_lock); in wcn36xx_start()
283 struct wcn36xx *wcn = hw->priv; in wcn36xx_stop()
[all …]
/kernel/linux/linux-6.6/arch/arm/boot/dts/ti/omap/
Dam4372.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
8 #include <dt-bindings/bus/ti-sysc.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
11 #include <dt-bindings/clock/am4.h>
15 interrupt-parent = <&wakeupgen>;
16 #address-cells = <1>;
17 #size-cells = <1>;
41 #address-cells = <1>;
[all …]
/kernel/linux/linux-5.10/sound/soc/intel/skylake/
Dskl-messages.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * skl-message.c - HDA DSP interface for FW registration, Pipe and Module
16 #include <uapi/sound/skl-tplg-interface.h>
17 #include "skl-sst-dsp.h"
18 #include "cnl-sst-dsp.h"
19 #include "skl-sst-ipc.h"
21 #include "../common/sst-dsp.h"
22 #include "../common/sst-dsp-priv.h"
23 #include "skl-topology.h"
47 skl_ipc_set_large_config(&skl->ipc, &msg, data); in skl_dsp_set_astate_cfg()
[all …]
/kernel/linux/linux-6.6/drivers/firmware/
Dqemu_fw_cfg.c7 * sysfs (read-only, under "/sys/firmware/qemu_fw_cfg/...").
15 * [qemu_fw_cfg.]mmio=<size>@<base>[:<ctrl_off>:<data_off>[:<dma_off>]]
18 * <size> := size of ioport or mmio range
19 * <base> := physical base address of ioport or mmio range
27 * qemu_fw_cfg.mmio=16@0x9020000:8:0:16 (the default on arm)
46 /* fw_cfg revision attribute, in /sys/firmware/qemu_fw_cfg top-level dir. */
80 u32 ctrl = be32_to_cpu(READ_ONCE(d->control)); in fw_cfg_wait_for_control()
82 /* do not reorder the read to d->control */ in fw_cfg_wait_for_control()
99 ret = -ENOMEM; in fw_cfg_dma_transfer()
113 /* force memory to sync before notifying device via MMIO */ in fw_cfg_dma_transfer()
[all …]
/kernel/linux/linux-5.10/drivers/firmware/
Dqemu_fw_cfg.c7 * sysfs (read-only, under "/sys/firmware/qemu_fw_cfg/...").
15 * [qemu_fw_cfg.]mmio=<size>@<base>[:<ctrl_off>:<data_off>[:<dma_off>]]
18 * <size> := size of ioport or mmio range
19 * <base> := physical base address of ioport or mmio range
27 * qemu_fw_cfg.mmio=16@0x9020000:8:0:16 (the default on arm)
46 /* fw_cfg revision attribute, in /sys/firmware/qemu_fw_cfg top-level dir. */
80 u32 ctrl = be32_to_cpu(READ_ONCE(d->control)); in fw_cfg_wait_for_control()
82 /* do not reorder the read to d->control */ in fw_cfg_wait_for_control()
99 ret = -ENOMEM; in fw_cfg_dma_transfer()
113 /* force memory to sync before notifying device via MMIO */ in fw_cfg_dma_transfer()
[all …]
/kernel/linux/linux-6.6/sound/soc/intel/skylake/
Dskl-messages.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * skl-message.c - HDA DSP interface for FW registration, Pipe and Module
16 #include <uapi/sound/skl-tplg-interface.h>
17 #include "skl-sst-dsp.h"
18 #include "cnl-sst-dsp.h"
19 #include "skl-sst-ipc.h"
21 #include "../common/sst-dsp.h"
22 #include "../common/sst-dsp-priv.h"
23 #include "skl-topology.h"
47 skl_ipc_set_large_config(&skl->ipc, &msg, data); in skl_dsp_set_astate_cfg()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dgf100.c51 struct nvkm_device *device = gr->base.engine.subdev.device; in gf100_gr_zbc_clear_color()
52 if (gr->zbc_color[zbc].format) { in gf100_gr_zbc_clear_color()
53 nvkm_wr32(device, 0x405804, gr->zbc_color[zbc].ds[0]); in gf100_gr_zbc_clear_color()
54 nvkm_wr32(device, 0x405808, gr->zbc_color[zbc].ds[1]); in gf100_gr_zbc_clear_color()
55 nvkm_wr32(device, 0x40580c, gr->zbc_color[zbc].ds[2]); in gf100_gr_zbc_clear_color()
56 nvkm_wr32(device, 0x405810, gr->zbc_color[zbc].ds[3]); in gf100_gr_zbc_clear_color()
58 nvkm_wr32(device, 0x405814, gr->zbc_color[zbc].format); in gf100_gr_zbc_clear_color()
67 struct nvkm_ltc *ltc = gr->base.engine.subdev.device->ltc; in gf100_gr_zbc_color_get()
68 int zbc = -ENOSPC, i; in gf100_gr_zbc_color_get()
70 for (i = ltc->zbc_color_min; i <= ltc->zbc_color_max; i++) { in gf100_gr_zbc_color_get()
[all …]
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/
Dmt76_connac_mcu.c1 // SPDX-License-Identifier: ISC
106 struct mt76_dev *dev = phy->dev; in mt76_connac_mcu_set_channel_domain()
110 n_max_channels = phy->sband_2g.sband.n_channels + in mt76_connac_mcu_set_channel_domain()
111 phy->sband_5g.sband.n_channels + in mt76_connac_mcu_set_channel_domain()
112 phy->sband_6g.sband.n_channels; in mt76_connac_mcu_set_channel_domain()
117 return -ENOMEM; in mt76_connac_mcu_set_channel_domain()
121 for (i = 0; i < phy->sband_2g.sband.n_channels; i++) { in mt76_connac_mcu_set_channel_domain()
122 chan = &phy->sband_2g.sband.channels[i]; in mt76_connac_mcu_set_channel_domain()
123 if (chan->flags & IEEE80211_CHAN_DISABLED) in mt76_connac_mcu_set_channel_domain()
126 channel.hw_value = cpu_to_le16(chan->hw_value); in mt76_connac_mcu_set_channel_domain()
[all …]

123