| /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/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. 68 phy_db->trans = trans; in iwl_phy_db_init() 70 phy_db->n_group_txp = -1; in iwl_phy_db_init() [all …]
|
| /linux/drivers/net/ethernet/dec/tulip/ |
| H A D | uli526x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 27 #include <linux/dma-mapping.h> 38 /* Board/System/Debug information/definition ---------------- */ 45 #define TX_FREE_DESC_CNT (TX_DESC_CNT - 2) /* Max TX packet count */ 46 #define TX_WAKE_DESC_CNT (TX_DESC_CNT - 3) /* TX wakeup count */ 75 #define ULI526X_TX_TIMEOUT ((16*HZ)/2) /* tx packet time-out time 8 s" */ 76 #define ULI526X_TX_KICK (4*HZ/2) /* tx packet Kick-out time 2 s" */ 105 /* Structure/enum declaration ------------------------------- */ 196 /* Global variable declaration ----------------------------- */ 206 /* function declaration ------------------------------------- */ [all …]
|
| H A D | dmfe.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 DAVICOM Web-Site: www.davicom.com.tw 10 Author: Sten Wang, 886-3-5798797-8517, E-mail: sten_wang@davicom.com.tw 13 (C)Copyright 1997-1998 DAVICOM Semiconductor,Inc. All Rights Reserved. 22 Removed IRQ 0-15 assumption 69 #include <linux/dma-mapping.h> 91 /* Board/System/Debug information/definition ---------------- */ 102 #define TX_FREE_DESC_CNT (TX_DESC_CNT - 2) /* Max TX packet count */ 103 #define TX_WAKE_DESC_CNT (TX_DESC_CNT - 3) /* TX wakeup count */ 140 #define DMFE_TX_TIMEOUT ((3*HZ)/2) /* tx packet time-out time 1.5 s" */ [all …]
|
| /linux/drivers/scsi/ |
| H A D | wd33c93.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * Drew Eckhardt's excellent 'Generic NCR5380' sources from Linux-PC 18 * - Target Disconnection/Reconnection is now supported. Any 21 * call 'adaptive disconnect' - meaning that each command 24 * device chooses), or as a "SCSI-bus-hog". 26 * - Synchronous data transfers are now supported. Because of 29 * this faster protocol - it can be enabled via the command- 30 * line on a device-by-device basis. 32 * - Runtime operating parameters can now be specified through 38 * - The old driver relied exclusively on what the Western Digital [all …]
|
| H A D | wd33c93.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * wd33c93.h - Linux device driver definitions for the 6 * IMPORTANT: This file is for version 1.25 - 09/Jul/1997 22 #define DEBUGGING_ON /* enable command-line debugging bitmask */ 27 #define DB(f,a) if (hostdata->args & (f)) a; macro 29 #define DB(f,a) macro 148 /* pass input-clock explicitly. accepted mhz values are 8-10,12-20 */ 198 #define OPTIMUM_SX_PER 252 /* (ns) best we can do (mult-of-4) */ 206 /* FEF: defines for hostdata->dma_buffer_pool */ 232 uchar level2; /* extent to which Level-2 commands are used */ [all …]
|
| /linux/drivers/soc/qcom/ |
| H A D | cmd-db.c | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2016-2018, 2020, The Linux Foundation. All rights reserved. 18 #include <soc/qcom/cmd-db.h> 64 * struct cmd_db_header: The DB header information 66 * @version: The cmd db version 83 * DOC: Description of the Command DB database. 85 * At the start of the command DB memory is the cmd_db_header structure. 105 const u8 *magic = header->magic; in cmd_db_magic_matches() 114 u16 offset = le16_to_cpu(hdr->header_offset); in rsc_to_entry_header() 116 return cmd_db_header->data + offset; in rsc_to_entry_header() [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/drivers/macintosh/ |
| H A D | rack-meter.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * RackMac vu-meter driver 8 * Support the CPU-meter LEDs of the Xserve G5 11 * interface for fun. Also, the CPU-meter could be made nicer by being 13 * time. Patches welcome :-) 24 #include <linux/dma-mapping.h> 43 struct dbdma_cmd cmd[4] ____cacheline_aligned; member 86 retval = kcpustat->cpustat[CPUTIME_IDLE] + in get_cpu_idle_time() 87 kcpustat->cpustat[CPUTIME_IOWAIT]; in get_cpu_idle_time() 97 struct macio_chip *macio = rm->mdev->bus->chip; in rackmeter_setup_i2s() [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/media/i2c/ |
| H A D | tvaudio.c | 14 * Copyright(c) 2005-2008 Mauro Carvalho Chehab 15 * - Some cleanups, code fixes, etc 16 * - Convert it to V4L2 API 21 * debug - set to 1 if you'd like to see debug messages 40 #include <media/v4l2-device.h> 41 #include <media/v4l2-ctrls.h> 43 /* ---------------------------------------------------------------------- */ 53 #define UNSET (-1U) 55 /* ---------------------------------------------------------------------- */ 97 /* functions to convert the values (v4l -> chip) */ [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 * - MIX : Mixer 21 * - DVC : Digital Volume and Mute Function 22 * - SSI : Serial Sound Interface 27 * - SRC : Sampling Rate Converter [all …]
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_psp.h | 38 #define PSP_TMR_SIZE(adev) ((adev)->asic_type == CHIP_ALDEBARAN ? 0x800000 : 0x400000) 59 * both status bits and response state - helps to detect a command failure 285 /** PSP runtime DB **/ 302 /* PSP runtime DB header */ 304 /* determine the existence of runtime db */ 306 /* version of runtime db */ 310 /* PSP runtime DB entry */ 312 /* type of runtime db entry */ 320 /* PSP runtime DB directory */ 324 /* db entries*/ [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/sound/soc/codecs/ |
| H A D | peb2466.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // peb2466.c -- Infineon PEB2466 ALSA SoC driver 42 u8 spi_tx_buf[2 + 8]; /* Cannot use stack area for SPI (dma-safe memory) */ 43 u8 spi_rx_buf[2 + 8]; /* Cannot use stack area for SPI (dma-safe memory) */ 133 static int peb2466_write_byte(struct peb2466 *peb2466, u8 cmd, u8 val) in peb2466_write_byte() argument 136 .tx_buf = &peb2466->spi_tx_buf, in peb2466_write_byte() 140 peb2466->spi_tx_bu in peb2466_write_byte() 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/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/emulex/benet/ |
| H A D | be_cmds.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2005 - 2016 Broadcom 7 * linux-drivers@emulex.com 20 …"Optics faulted/incorrectly installed/not installed - Reseat optics. If issue not resolved, replac… 24 "Uncertified optics – Replace with Avago-certified optics to enable link operation." 35 "Link is non-operational", 103 u32 cmd_privileges = adapter->cmd_privileges; in be_cmd_allowed() 116 return wrb->payload.embedded_payload; in embedded_payload() 121 struct be_queue_info *mccq = &adapter->mcc_obj.q; in be_mcc_notify() 125 return -EIO; in be_mcc_notify() [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/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/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> 64 #define MBOX_IRQ_NAME "pcc-mbox" 67 * struct pcc_chan_reg - PCC register bundle 84 * struct pcc_chan_info - PCC channel specific information 87 * @db: PCC register bundle for the doorbell register 105 struct pcc_chan_reg db; member 168 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/drivers/clk/qcom/ |
| H A D | clk-rpmh.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2018-2021, The Linux Foundation. All rights reserved. 6 #include <linux/clk-provider.h> 13 #include <soc/qcom/cmd-db.h> 17 #include <dt-bindings/clock/qcom,rpmh.h> 23 * struct bcm_db - Auxiliary data pertaining to each Bus Clock Manager(BCM) 37 * struct clk_rpmh - individual rpmh clock data structure 38 * @hw: handle between common and hardware-specific interfaces 142 return (c->last_sent_aggr_state & BIT(state)) in has_state_changed() 143 != (c->aggr_state & BIT(state)); in has_state_changed() [all …]
|