| /linux/drivers/net/wireless/intel/iwlwifi/ |
| H A D | iwl-phy-db.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2005-2014, 2020-2021 Intel Corporation 10 #include "iwl-drv.h" 11 #include "iwl-phy-db.h" 12 #include "iwl-debug.h" 13 #include "iwl-op-mode.h" 14 #include "iwl-trans.h" 22 * struct iwl_phy_db - stores phy configuration and calibration data. 67 phy_db->trans = trans; in iwl_phy_db_init() 69 phy_db->n_group_txp = -1; in iwl_phy_db_init() [all …]
|
| /linux/Documentation/devicetree/bindings/reserved-memory/ |
| H A D | qcom,cmd-db.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/reserved-memory/qcom,cmd-db.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Qualcomm Command DB 10 Command DB is a database that provides a mapping between resource key and the 20 - Bjorn Andersson <bjorn.andersson@linaro.org> 23 - $ref: reserved-memory.yaml 27 const: qcom,cmd-db 30 - reg [all …]
|
| /linux/sound/pci/lx6464es/ |
| H A D | lx_core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* -*- linux-c -*- * 5 * low-level interface 20 /* low-level register access */ 57 void __iomem *base_address = chip->port_dsp_bar; in lx_dsp_register() 114 void __iomem *base_address = chip->port_plx_remapped; in lx_plx_register() 142 u32 dcCodeOp; /* Op Code of the command (usually 1st 24-bits 153 - OpCode: 155 - CmdLength 157 - StatusType [all …]
|
| /linux/sound/soc/sophgo/ |
| H A D | cv1800b-sound-adc.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <sound/soc-component.h> 66 0x0001, /* 0dB */ 67 0x0002, /* 2dB */ 68 0x0004, /* 4dB */ 69 0x0008, /* 6dB */ 70 0x0010, /* 8dB */ 71 0x0020, /* 10dB */ 72 0x0040, /* 12dB */ 73 0x0080, /* 14dB */ [all …]
|
| /linux/drivers/net/ethernet/davicom/ |
| H A D | dm9000.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * (C) Copyright 1997-1998 DAVICOM Semiconductor,Inc. All Rights Reserved. 39 /* Board/System/Debug information/definition ---------------- */ 57 MODULE_PARM_DESC(debug, "dm9000 debug level (0-6)"); 87 /* Structure/enum declaration ------------------------------- */ 141 #define dm9000_dbg(db, lev, msg...) do { \ argument 143 dev_dbg(db->dev, msg); \ 152 /* DM9000 network board routine ---------------------------- */ 158 ior(struct board_info *db, int reg) in ior() argument 160 writeb(reg, db->io_addr); in ior() [all …]
|
| /linux/sound/sparc/ |
| H A D | amd7930.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * --- Notes from Thomas's original driver --- 23 * which provide mono-channel audio at 8K samples per second via either 24 * 8-bit A-law or 8-bit mu-law encoding. Also, the chip features an 30 * --- End of notes from Thoamas's original driver --- 52 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 72 #define AMD7930_DSR1 0x02UL /* D-channel Status Register 1 (R) */ 73 #define AMD7930_DER 0x03UL /* D-channel Error Register (R) */ 74 #define AMD7930_DCTB 0x04UL /* D-channel Transmit Buffer (W) */ 75 #define AMD7930_DCRB AMD7930_DCTB /* D-channel Receive Buffer (R) */ [all …]
|
| /linux/drivers/net/fddi/skfp/ |
| H A D | ess.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 27 * FDDI sub-system supporting the SBA application. 50 ------------------------------------------------------------- 52 ------------------------------------------------------------- 66 ------------------------------------------------------------- 68 ------------------------------------------------------------- 73 ------------------------------------------------------------- 75 ------------------------------------------------------------- 85 ------------------------------------------------------------- 87 ------------------------------------------------------------- [all …]
|
| /linux/drivers/scsi/ibmvscsi_tgt/ |
| H A D | libsrp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 #include <linux/dma-mapping.h> 30 q->pool = kzalloc_objs(struct iu_entry *, max); in srp_iu_pool_alloc() 31 if (!q->pool) in srp_iu_pool_alloc() 32 return -ENOMEM; in srp_iu_pool_alloc() 33 q->items = kzalloc_objs(struct iu_entry, max); in srp_iu_pool_alloc() 34 if (!q->items) in srp_iu_pool_alloc() 37 spin_lock_init(&q->lock); in srp_iu_pool_alloc() 38 kfifo_init(&q->queue, (void *)q->pool, max * sizeof(void *)); in srp_iu_pool_alloc() 40 for (i = 0, iue = q->items; i < max; i++) { in srp_iu_pool_alloc() [all …]
|
| /linux/sound/soc/renesas/rcar/ |
| H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Renesas R-Car SRU/SCU/SSIU/SSI support 12 * Renesas R-Car sound device structure 17 * - SRC : Sampling Rate Converter 18 * - CMD 19 * - CTU : Channel Count Conversion Unit 20 * - MI 410 struct rsnd_mod *cmd = rsnd_io_to_mod_cmd(io); rsnd_get_dalign() local 692 rsnd_soc_dai_trigger(struct snd_pcm_substream * substream,int cmd,struct snd_soc_dai * dai) rsnd_soc_dai_trigger() argument [all...] |
| /linux/drivers/net/ethernet/alibaba/eea/ |
| H A D | eea_adminq.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 112 ering = enet->rx[qid / 2]->ering; in qid_to_ering() 114 ering = enet->tx[qid / 2].ering; in qid_to_ering() 123 if (enet->adminq.broken) in eea_device_broken() 126 eea_device_reset(enet->edev); in eea_device_broken() 127 enet->adminq.broken = true; in eea_device_broken() 130 static int eea_adminq_submit(struct eea_net *enet, u16 cmd, in eea_adminq_submit() argument 138 if (enet->adminq.broken) in eea_adminq_submit() 139 return -EIO; in eea_adminq_submit() 141 desc = eea_ering_aq_alloc_desc(enet->adminq.ring); in eea_adminq_submit() [all …]
|
| /linux/sound/soc/atmel/ |
| H A D | atmel-pdmic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 #include "atmel-pdmic.h" 40 .compatible = "atmel,sama5d2-pdmic", 52 struct device_node *np = dev->of_node; in atmel_pdmic_dt_init() 57 return ERR_PTR(-EINVAL); in atmel_pdmic_dt_init() 62 return ERR_PTR(-ENOME in atmel_pdmic_dt_init() 432 atmel_pdmic_cpu_dai_trigger(struct snd_pcm_substream * substream,int cmd,struct snd_soc_dai * cpu_dai) atmel_pdmic_cpu_dai_trigger() argument [all...] |
| /linux/drivers/net/ethernet/fungible/funcore/ |
| H A D | fun_queue.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 3 #include <linux/dma-mapping.h> 15 * ring, an optional 64b HW write-back area, and an optional SW state ring. 17 * and the VA of the write-back area. 31 /* Place optional write-back area at end of descriptor ring. */ in fun_alloc_ring_mem() 52 *wb_va = va + dma_sz - sizeof(u64); in fun_alloc_ring_mem() 72 * provided parameters. If the queue ID is auto-allocated by the device it is 84 } cmd; in fun_sq_create() local 89 if (sq_depth > fdev->q_depth) in fun_sq_create() 90 return -EINVAL; in fun_sq_create() [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | peb2466.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // peb2466.c -- Infineon PEB2466 ALSA SoC driver 43 u8 spi_tx_buf[2 + 8]; /* Cannot use stack area for SPI (dma-safe memory) */ 44 u8 spi_rx_buf[2 + 8]; /* Cannot use stack area for SPI (dma-safe memory) */ 134 static int peb2466_write_byte(struct peb2466 *peb2466, u8 cmd, u8 val) in peb2466_write_byte() 137 .tx_buf = &peb2466->spi_tx_buf, in peb2466_write_byte() 141 peb2466->spi_tx_bu in peb2466_write_byte() 133 peb2466_write_byte(struct peb2466 * peb2466,u8 cmd,u8 val) peb2466_write_byte() argument 149 peb2466_read_byte(struct peb2466 * peb2466,u8 cmd,u8 * val) peb2466_read_byte() argument 179 peb2466_write_buf(struct peb2466 * peb2466,u8 cmd,const u8 * buf,unsigned int len) peb2466_write_buf() argument [all...] |
| /linux/drivers/net/ethernet/tehuti/ |
| H A D | tehuti.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 * 1) RX Free Fifo - RXF - holds descriptors of empty buffers to accept incoming 16 * 2) RX Data Fifo - RXD - holds descriptors of full buffers. This Fifo is 23 * One holds 1.5K packets and another - 26K packets. Depending on incoming 30 * skb db - used to keep track of all skbs owned by SW and their dma addresses. 33 * skb db. Implemented as array with bitmask. 34 * fifo - keeps info about fifo's size and location, relevant HW registers, 35 * usage and skb db. Each RXD and RXF Fifo has its own fifo structure. 45 * NAPI - interrupt-driven mixed with polling 46 * interrupt-driven only [all …]
|
| H A D | tn40.c | 1 // SPDX-License-Identifier: GPL-2.0+ 23 tn40_write_reg(priv, TN40_REG_IMR, priv->isr_mask); in tn40_enable_interrupts() 43 f->va = dma_alloc_coherent(&priv->pdev->dev, in tn40_fifo_alloc() 44 memsz + TN40_FIFO_EXTRA_SPACE, &f->da, in tn40_fifo_alloc() 46 if (!f->va) in tn40_fifo_alloc() 47 return -ENOMEM; in tn40_fifo_alloc() 49 f->reg_cfg0 = reg_cfg0; in tn40_fifo_alloc() 50 f->reg_cfg1 = reg_cfg1; in tn40_fifo_alloc() 51 f->reg_rptr = reg_rptr; in tn40_fifo_alloc() 52 f->reg_wptr = reg_wptr; in tn40_fifo_alloc() [all …]
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | stv0910.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for the ST STV0910 DVB-S/S2 demodulator. 5 * Copyright (C) 2014-2015 Ralph Metzler <rjkm@metzlerbros.de> 129 struct i2c_adapter *adap = state->base->i2c; in write_reg() 131 struct i2c_msg msg = {.addr = state->base->adr, .flags = 0, in write_reg() 135 dev_warn(&adap->dev, "i2c write error ([%02x] %04x: %02x)\n", in write_reg() 136 state->base->adr, reg, val); in write_reg() 137 return -EIO; in write_reg() 152 dev_warn(&adapter->dev, "i2c read error ([%02x] %04x)\n", in i2c_read_regs16() 154 return -EIO; in i2c_read_regs16() [all …]
|
| /linux/drivers/interconnect/qcom/ |
| H A D | bcm-voter.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 #include <soc/qcom/cmd-db.h> 13 #include "icc-rpmh.h"
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_sched.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * ice_sched_add_root_node - Insert the Tx scheduler root node in SW DB 13 * to the SW DB. 23 return -EINVAL; in ice_sched_add_root_node() 25 hw = pi->hw; in ice_sched_add_root_node() 29 return -ENOMEM; in ice_sched_add_root_node() 31 root->children = devm_kcalloc(ice_hw_to_dev(hw), hw->max_children[0], in ice_sched_add_root_node() 32 sizeof(*root->children), GFP_KERNEL); in ice_sched_add_root_node() 33 if (!root->children) { in ice_sched_add_root_node() 35 return -ENOMEM; in ice_sched_add_root_node() [all …]
|
| /linux/drivers/mailbox/ |
| H A D | pcc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 20 * * After it is acquired it writes READ cmd in communication region cmd 32 * * Client writes WRITE cmd in communication region cmd address. 59 #include <linux/io-64-nonatomic-lo-hi.h> 62 #define MBOX_IRQ_NAME "pcc-mbox" 65 * struct pcc_chan_reg - PCC register bundle 82 * struct pcc_chan_info - PCC channel specific information 85 * @db: PCC register bundle for the doorbell register 102 struct pcc_chan_reg db; member 165 if (!reg->gas) { in pcc_chan_reg_read() [all …]
|
| /linux/drivers/vdpa/mlx5/net/ |
| H A D | mlx5_vnet.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 47 #define MLX5_FEATURE(_mvdev, _feature) (!!((_mvdev)->actual_features & BIT_ULL(_feature))) 73 struct mlx5_db db; member 87 struct mlx5_db db; member 149 if (!(mvdev->actual_features & BIT_ULL(VIRTIO_NET_F_MQ))) { in is_index_valid() 150 if (!(mvdev->actual_features & BIT_ULL(VIRTIO_NET_F_CTRL_VQ))) in is_index_valid() 156 return idx <= mvdev->max_idx; in is_index_valid() 179 /* TODO: cross-endian support */ 183 (mvdev->actual_features & BIT_ULL(VIRTIO_F_VERSION_1)); in mlx5_vdpa_is_little_endian() 198 if (!(mvdev->actual_features & BIT_ULL(VIRTIO_NET_F_MQ))) in ctrl_vq_idx() [all …]
|
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | sa8155p.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 7 * though the cmd-db doesn't reflect that and access attemps result in a bite. 13 power-domains = <&rpmhpd SA8155P_CX>; 17 power-domains = <&rpmhpd SA8155P_CX>; 21 power-domains = <&rpmhpd SA8155P_CX>; 25 power-domains = <&rpmhpd SA8155P_CX>; 29 power-domains = <&rpmhpd SA8155P_CX>; 33 power-domains = <&rpmhpd SA8155P_CX>, 43 compatible = "qcom,sa8155p-rpmhpd"; 47 power-domains = <&rpmhpd SA8155P_CX>;
|
| /linux/drivers/net/ieee802154/ |
| H A D | adf7242.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Analog Devices ADF7242 Low-Power IEEE 802.15.4 Transceiver 5 * Copyright 2009-2017 Analog Devices Inc. 48 #define REG_CH_FREQ0 0x300 /* RW Channel Frequency Settings - Low */ 49 #define REG_CH_FREQ1 0x301 /* RW Channel Frequency Settings - Middle */ 50 #define REG_CH_FREQ2 0x302 /* RW Channel Frequency Settings - High */ 62 #define REG_TMR_CFG0 0x316 /* RW Wake up Timer Conf Register - High */ 63 #define REG_TMR_CFG1 0x317 /* RW Wake up Timer Conf Register - Low */ 64 #define REG_TMR_RLD0 0x318 /* RW Wake up Timer Value Register - High */ 65 #define REG_TMR_RLD1 0x319 /* RW Wake up Timer Value Register - Low */ [all …]
|
| /linux/drivers/net/wireless/intel/iwlegacy/ |
| H A D | 4965.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved. 8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 15 #include <linux/dma-mapping.h> 29 * il_verify_inst_sparse - verify runtime uCode image in card vs. host, 44 /* read data comes through single port, auto-incr addr */ in il4965_verify_inst_sparse() 50 ret = -EIO; in il4965_verify_inst_sparse() 61 * il4965_verify_inst_full - verify runtime uCode image in card vs. host, 77 for (; len > 0; len -= sizeof(u32), image++) { in il4965_verify_inst_full() 78 /* read data comes through single port, auto-incr addr */ in il4965_verify_inst_full() [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | fw.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2012-2014, 2018-2026 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 11 #include "iwl-trans.h" 12 #include "iwl-op-mode.h" 14 #include "iwl-debug.h" 15 #include "iwl-prph.h" 23 #include "iwl-phy-db.h" 24 #include "iwl-modparams.h" [all …]
|
| /linux/drivers/nvme/target/ |
| H A D | pci-epf.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * REDS Institute, HEIG-VD, HES-SO, Switzerland 19 #include <linux/pci-epc.h> 20 #include <linux/pci-epf.h> 31 * allow up to 128 page-sized segments. For the maximum allowed, 36 (NVMET_PCI_EPF_MAX_SEGS << (PAGE_SHIFT - 10)) 97 u32 db; member 125 struct nvme_command cmd; member 227 __le32 *bar_reg = ctrl->bar + off; in nvmet_pci_epf_bar_read32() 235 __le32 *bar_reg = ctrl->bar + off; in nvmet_pci_epf_bar_write32() [all …]
|