/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_fwlog.c | 1 // SPDX-License-Identifier: GPL-2.0 13 head = rings->head; in ice_fwlog_ring_full() 14 tail = rings->tail; in ice_fwlog_ring_full() 16 if (head < tail && (tail - head == (rings->size - 1))) in ice_fwlog_ring_full() 18 else if (head > tail && (tail == (head - 1))) in ice_fwlog_ring_full() 26 return rings->head == rings->tail; in ice_fwlog_ring_empty() 31 *item = (*item + 1) & (size - 1); in ice_fwlog_ring_increment() 39 nr_bytes = rings->size * ICE_AQ_MAX_BUF_LEN; in ice_fwlog_alloc_ring_buffs() 42 return -ENOMEM; in ice_fwlog_alloc_ring_buffs() 44 for (i = 0; i < rings->size; i++) { in ice_fwlog_alloc_ring_buffs() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/ |
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 3 obj-$(CONFIG_IWLWIFI) += iwlwifi.o 4 iwlwifi-objs += iwl-io.o 5 iwlwifi-objs += iwl-drv.o 6 iwlwifi-objs += iwl-debug.o 7 iwlwifi-objs += iwl-nvm-utils.o 8 iwlwifi-objs += iwl-phy-db.o iwl-nvm-parse.o 9 iwlwifi-objs += pcie/drv.o pcie/rx.o pcie/tx.o pcie/trans.o 10 iwlwifi-objs += pcie/ctxt-info.o pcie/ctxt-info-gen3.o 11 iwlwifi-objs += pcie/trans-gen2.o pcie/tx-gen2.o [all …]
|
H A D | iwl-nvm-parse.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2005-2014, 2018-2023 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 14 #include "iwl-drv.h" 15 #include "iwl-modparams.h" 16 #include "iwl-nvm-parse.h" 17 #include "iwl-prph.h" 18 #include "iwl-io.h" 19 #include "iwl-csr.h" [all …]
|
H A D | iwl-drv.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2005-2014, 2018-2024 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 8 #include <linux/dma-mapping.h> 13 #include "iwl-drv.h" 14 #include "iwl-csr.h" 15 #include "iwl-debug.h" 16 #include "iwl-trans.h" 17 #include "iwl-op-mode.h" [all …]
|
H A D | iwl-nvm-parse.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2005-2015, 2018-2024 Intel Corporation 4 * Copyright (C) 2016-2017 Intel Deutschland GmbH 10 #include "iwl-nvm-utils.h" 11 #include "mei/iwl-mei.h" 14 * enum iwl_nvm_sbands_flags - modification flags for the channel profiles 25 * iwl_parse_nvm_data - parse NVM data and return values 33 iwl_parse_nvm_data(struct iwl_trans *trans, const struct iwl_cfg *cfg, 34 const struct iwl_fw *fw, 41 * iwl_parse_nvm_mcc_info - parse MCC (mobile country code) info coming from FW [all …]
|
H A D | iwl-trans.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2005-2014, 2018-2023 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 15 #include "iwl-debug.h" 16 #include "iwl-config.h" 17 #include "fw/img.h" 18 #include "iwl-op-mode.h" 20 #include "fw/api/cmdhdr.h" 21 #include "fw/api/txq.h" [all …]
|
/linux/drivers/media/pci/intel/ipu6/ |
H A D | ipu6-fw-com.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2013--2024 Intel Corporation 7 #include <linux/dma-mapping.h> 14 #include "ipu6-bus.h" 15 #include "ipu6-fw-com.h" 18 * FWCOM layer is a shared resource between FW and driver. It consist 23 * see the same buffer. Indexes are located in ISP DMEM so that FW code 31 /* Shared structure between driver and FW - do not modify */ 109 /* pass pkg_dir address to SPC in non-secure mode */ 111 /* Tunit CFG blob for secure - provided by host.*/ [all …]
|
H A D | ipu6-fw-isys.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2013--2024 Intel Corporation 13 #include "ipu6-bus.h" 14 #include "ipu6-fw-com.h" 15 #include "ipu6-isys.h" 16 #include "ipu6-platform-isys-csi2-reg.h" 17 #include "ipu6-platform-regs.h" 31 struct device *dev = &isys->adev->auxdev.dev; in handle_proxy_response() 35 resp = ipu6_recv_get_token(isys->fwcom, IPU6_BASE_PROXY_RECV_QUEUES); in handle_proxy_response() 40 resp->request_id, resp->error_info.error, in handle_proxy_response() [all …]
|
H A D | ipu6-isys.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* Copyright (C) 2013--2024 Intel Corporation */ 14 #include <media/media-device.h> 15 #include <media/v4l2-async.h> 16 #include <media/v4l2-device.h> 19 #include "ipu6-fw-isys.h" 20 #include "ipu6-isys-csi2.h" 21 #include "ipu6-isys-video.h" 26 /* FW support max 16 streams */ 119 * @fwcom: fw communication layer private pointer [all …]
|
/linux/Documentation/devicetree/bindings/firmware/ |
H A D | qemu,fw-cfg-mmio.yaml | 1 # 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 …]
|
/linux/drivers/leds/ |
H A D | leds-lp55xx-common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Derived from leds-lp5521.c, leds-lp5523.c 21 #include <linux/platform_data/leds-lp55xx.h> 24 #include <dt-bindings/leds/leds-lp55xx.h> 26 #include "leds-lp55xx-common.h" 48 #define LP55xx_MODE_ENGn_SHIFT(n, shift) ((shift) + (2 * (3 - (n)))) 59 #define LP55xx_EXEC_ENGn_SHIFT(n, shift) ((shift) + (2 * (3 - (n)))) 65 #define LP55xx_PAGE_OFFSET(n, pages) (((n) - 1) * (pages)) 92 const struct lp55xx_device_config *cfg = chip->cfg; in lp55xx_wait_opmode_done() local 101 if (cfg->engine_busy.val) { in lp55xx_wait_opmode_done() [all …]
|
/linux/sound/soc/codecs/ |
H A D | wm8958-dsp2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8958-dsp2.c -- WM8958 DSP2 support 42 const struct firmware *fw, bool check) in wm8958_dsp2_fw() argument 53 if (wm8994->cur_fw == fw) in wm8958_dsp2_fw() 56 if (fw->size < 32) { in wm8958_dsp2_fw() 57 dev_err(component->dev, "%s: firmware too short (%zd bytes)\n", in wm8958_dsp2_fw() 58 name, fw->size); in wm8958_dsp2_fw() 62 if (memcmp(fw->data, "WMFW", 4) != 0) { in wm8958_dsp2_fw() 63 data32 = get_unaligned_be32(fw->data); in wm8958_dsp2_fw() 64 dev_err(component->dev, "%s: firmware has bad file magic %08x\n", in wm8958_dsp2_fw() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | scan.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2012-2014, 2018-2024 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 12 #include "fw/api/scan.h" 13 #include "iwl-io.h" 82 /* For CDB this is low band scan type, for non-CDB - type. */ 112 struct iwl_scan_req_umac *cmd = mvm->scan_cmd; in iwl_mvm_get_scan_req_umac_data() 115 return (void *)&cmd->v8.data; in iwl_mvm_get_scan_req_umac_data() 118 return (void *)&cmd->v7.data; in iwl_mvm_get_scan_req_umac_data() [all …]
|
H A D | nvm.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2012-2014, 2018-2019, 2021-2024 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 9 #include "iwl-trans.h" 10 #include "iwl-csr.h" 12 #include "iwl-nvm-utils.h" 13 #include "iwl-nvm-parse.h" 14 #include "iwl-prph.h" 15 #include "fw/acpi.h" [all …]
|
H A D | fw-api.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2012-2014, 2018, 2020 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 10 #include "fw/api/tdls.h" 11 #include "fw/api/mac-cfg.h" 12 #include "fw/api/offload.h" 13 #include "fw/api/context.h" 14 #include "fw/api/time-event.h" 15 #include "fw/api/datapath.h" [all …]
|
/linux/drivers/misc/mei/ |
H A D | hw-me.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2012-2022, Intel Corporation. All rights reserved. 18 * mei_cfg - mei device configuration 20 * @fw_status: FW status 24 * @fw_ver_supported: is fw version retrievable from FW 37 #define MEI_PCI_DEVICE(dev, cfg) \ argument 40 .driver_data = (kernel_ulong_t)(cfg), 45 * struct mei_me_hw - me hw specific data 47 * @cfg: per device generation config and ops 53 * @read_fws: read FW status register handler [all …]
|
/linux/drivers/iommu/arm/arm-smmu/ |
H A D | arm-smmu.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 18 #include <linux/io-64-nonatomic-hi-lo.h> 19 #include <linux/io-pgtable.h> 367 struct arm_smmu_cfg *cfg; member 381 struct arm_smmu_cfg cfg; member 393 static inline u32 arm_smmu_lpae_tcr(const struct io_pgtable_cfg *cfg) in arm_smmu_lpae_tcr() argument 395 u32 tcr = FIELD_PREP(ARM_SMMU_TCR_TG0, cfg->arm_lpae_s1_cfg.tcr.tg) | in arm_smmu_lpae_tcr() 396 FIELD_PREP(ARM_SMMU_TCR_SH0, cfg->arm_lpae_s1_cfg.tcr.sh) | in arm_smmu_lpae_tcr() 397 FIELD_PREP(ARM_SMMU_TCR_ORGN0, cfg->arm_lpae_s1_cfg.tcr.orgn) | in arm_smmu_lpae_tcr() 398 FIELD_PREP(ARM_SMMU_TCR_IRGN0, cfg->arm_lpae_s1_cfg.tcr.irgn) | in arm_smmu_lpae_tcr() [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/ |
H A D | ps.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2009-2012 Realtek Corporation.*/ 18 if (rtlhal->interface == INTF_PCI) in rtl_ps_enable_nic() 19 rtlpriv->intf_ops->reset_trx_ring(hw); in rtl_ps_enable_nic() 26 if (rtlpriv->cfg->ops->hw_init(hw)) in rtl_ps_enable_nic() 28 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_RETRY_LIMIT, in rtl_ps_enable_nic() 29 &rtlmac->retry_long); in rtl_ps_enable_nic() 32 rtlpriv->cfg->ops->switch_channel(hw); in rtl_ps_enable_nic() 33 rtlpriv->cfg->ops->set_channel_access(hw); in rtl_ps_enable_nic() 34 rtlpriv->cfg->ops->set_bw_mode(hw, in rtl_ps_enable_nic() [all …]
|
/linux/drivers/media/tuners/ |
H A D | xc5000.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 #include "tuner-i2c.h" 88 /* Set the output amplitude - SIF for analog, DTVP/DTVN for digital */ 118 char[0 ]=len0_MSB -> len = len_MSB * 256 + len_LSB 119 char[1 ]=len0_LSB -> length of first write transaction 120 char[2 ]=data0 -> first byte to be sent 124 char[M ]=dataN -> last byte to be sent 125 char[M+1]=len1_MSB -> len = len_MSB * 256 + len_LSB 126 char[M+2]=len1_LSB -> length of second write transaction 177 {"M/N-NTSC/PAL-BTSC", 0x0400, 0x8020}, [all …]
|
/linux/drivers/media/pci/cx18/ |
H A D | cx18-dvb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 #include "cx18-version.h" 10 #include "cx18-dvb.h" 11 #include "cx18-io.h" 12 #include "cx18-queue.h" 13 #include "cx18-streams.h" 14 #include "cx18-cards.h" 15 #include "cx18-gpio.h" 29 #define FWFILE "dvb-cx18-mpc718-mt352.fw" 123 const struct firmware **fw) in yuan_mpc718_mt352_reqfw() argument [all …]
|
/linux/drivers/input/touchscreen/ |
H A D | atmel_mxt_ts.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (C) 2011-2014 Atmel Corporation 30 #include <media/v4l2-device.h> 31 #include <media/v4l2-ioctl.h> 32 #include <media/videobuf2-v4l2.h> 33 #include <media/videobuf2-vmalloc.h> 34 #include <dt-bindings/input/atmel-maxtouch.h> 37 #define MXT_FW_NAME "maxtouch.fw" 38 #define MXT_CFG_NAME "maxtouch.cfg" 340 /* for fw update in bootloader */ [all …]
|
/linux/arch/arm/boot/dts/ti/omap/ |
H A D | am57-pruss.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/ 9 pruss1_tm: target-module@4b226000 { 10 compatible = "ti,sysc-pruss", "ti,sysc"; 13 reg-names = "rev", "sysc"; 14 ti,sysc-mask = <(SYSC_PRUSS_STANDBY_INIT | 16 ti,sysc-midle = <SYSC_IDLE_FORCE>, 19 ti,sysc-sidle = <SYSC_IDLE_FORCE>, 24 clock-names = "fck"; 25 #address-cells = <1>; [all …]
|
/linux/lib/ |
H A D | test_firmware.c | 1 // SPDX-License-Identifier: GPL-2.0-only 32 #define TEST_FIRMWARE_NAME "test-firmware.bin" 46 const struct firmware *fw; member 55 * struct test_config - represents configuration for the test for different triggers 81 * found so we can only assume -ENOENT on async calls if the firmware is 89 * -EINVAL: invalid parameters or request 90 * -ENOENT: files not found 94 * -ENOMEM: memory pressure on system 95 * -ENODEV: out of number of devices to test 96 * -EINVAL: an unexpected error has occurred [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/fw/ |
H A D | dbg.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2005-2014, 2018-2024 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2015-2017 Intel Deutschland GmbH 8 #include "iwl-drv.h" 12 #include "iwl-io.h" 13 #include "iwl-prph.h" 14 #include "iwl-csr.h" 15 #include "iwl-fh.h" 17 * struct iwl_fw_dump_ptrs - set of pointers needed for the fw-error-dump [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/pcie/ |
H A D | ctxt-info.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 4 * Copyright (C) 2018-2024 Intel Corporation 6 #include "iwl-trans.h" 7 #include "iwl-fh.h" 8 #include "iwl-context-info.h" 10 #include "iwl-prph.h" 23 result = dma_alloc_coherent(trans->dev, size, phys, GFP_KERNEL); in _iwl_pcie_ctxt_info_dma_alloc_coherent() 35 dma_free_coherent(trans->dev, size, old, oldphys); in _iwl_pcie_ctxt_info_dma_alloc_coherent() 52 dram->block = iwl_pcie_ctxt_info_dma_alloc_coherent(trans, len, in iwl_pcie_ctxt_info_alloc_dma() 53 &dram->physical); in iwl_pcie_ctxt_info_alloc_dma() [all …]
|