/Linux-v6.1/arch/mips/include/asm/ |
D | asm-eva.h | 19 #define kernel_ll(reg, addr) "ll " reg ", " addr "\n" argument 20 #define kernel_sc(reg, addr) "sc " reg ", " addr "\n" argument 21 #define kernel_lw(reg, addr) "lw " reg ", " addr "\n" argument 22 #define kernel_lwl(reg, addr) "lwl " reg ", " addr "\n" argument 23 #define kernel_lwr(reg, addr) "lwr " reg ", " addr "\n" argument 24 #define kernel_lh(reg, addr) "lh " reg ", " addr "\n" argument 25 #define kernel_lb(reg, addr) "lb " reg ", " addr "\n" argument 26 #define kernel_lbu(reg, addr) "lbu " reg ", " addr "\n" argument 27 #define kernel_sw(reg, addr) "sw " reg ", " addr "\n" argument 28 #define kernel_swl(reg, addr) "swl " reg ", " addr "\n" argument [all …]
|
/Linux-v6.1/arch/mips/kernel/ |
D | unaligned.c | 18 * only the performance is affected. Much worse is that such code is non- 30 * option in your user programs - I discourage the use of the software 31 * emulation strongly - use the following code in your userland stuff: 92 #include <asm/unaligned-emul.h> 96 #include "access-helper.h" 112 void __user *addr, unsigned int *pc) in emulate_load_store_insn() argument 120 orig31 = regs->regs[31]; in emulate_load_store_insn() 132 * can assume therefore that the code is MIPS-aware and in emulate_load_store_insn() 167 if (user && !access_ok(addr, 4)) in emulate_load_store_insn() 169 LoadW(addr, value, res); in emulate_load_store_insn() [all …]
|
/Linux-v6.1/drivers/net/wireless/silabs/wfx/ |
D | hwio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Low-level I/O functions. 5 * Copyright (c) 2017-2020, Silicon Laboratories, Inc. 6 * Copyright (c) 2010, ST-Ericsson 20 static int wfx_read32(struct wfx_dev *wdev, int reg, u32 *val) in wfx_read32() argument 27 return -ENOMEM; in wfx_read32() 28 ret = wdev->hwbus_ops->copy_from_io(wdev->hwbus_priv, reg, tmp, sizeof(u32)); in wfx_read32() 33 dev_err(wdev->dev, "%s: bus communication error: %d\n", __func__, ret); in wfx_read32() 37 static int wfx_write32(struct wfx_dev *wdev, int reg, u32 val) in wfx_write32() argument 43 return -ENOMEM; in wfx_write32() [all …]
|
D | traces.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (c) 2018-2020, Silicon Laboratories, Inc. 47 * #define list_for_print_symbolic list_names { -1, NULL } 99 #define hif_msg_list hif_msg_list_enum { -1, NULL } 157 #define hif_mib_list hif_mib_list_enum { -1, NULL } 175 __entry->tx_fill_level = tx_fill_level; 176 __entry->msg_len = le16_to_cpu(hif->len); 177 __entry->msg_id = hif->id; 178 __entry->if_id = hif->interface; 180 __entry->msg_type = __entry->msg_id & 0x80 ? "IND" : "CNF"; [all …]
|
/Linux-v6.1/drivers/staging/media/atomisp/pci/hive_isp_css_include/host/ |
D | sp_public.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 52 \param reg[in] register index 55 \return none, SP[ID].sc[reg] = value 59 const hrt_address reg, 65 \param reg[in] register index 68 \return SP[ID].sc[reg] 72 const hrt_address reg); 77 \param reg[in] register index 80 \return (SP[ID].sc[reg] & (1<<bit)) != 0 84 const hrt_address reg, [all …]
|
D | isp_public.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 49 \param reg[in] register index 52 \return none, ISP[ID].sc[reg] = value 56 const unsigned int reg, 62 \param reg[in] register index 65 \return ISP[ID].sc[reg] 69 const unsigned int reg); 74 \param reg[in] register index 77 \return (ISP[ID].sc[reg] & (1<<bit)) != 0 81 const unsigned int reg, [all …]
|
/Linux-v6.1/sound/isa/gus/ |
D | gus_io.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 31 static inline void __snd_gf1_ctrl_stop(struct snd_gus_card * gus, unsigned char reg) in __snd_gf1_ctrl_stop() argument 35 outb(reg | 0x80, gus->gf1.reg_regsel); in __snd_gf1_ctrl_stop() 37 value = inb(gus->gf1.reg_data8); in __snd_gf1_ctrl_stop() 39 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_ctrl_stop() 41 outb((value | 0x03) & ~(0x80 | 0x20), gus->gf1.reg_data8); in __snd_gf1_ctrl_stop() 46 unsigned char reg, in __snd_gf1_write8() argument 49 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_write8() 51 outb(data, gus->gf1.reg_data8); in __snd_gf1_write8() 56 unsigned char reg) in __snd_gf1_look8() argument [all …]
|
/Linux-v6.1/drivers/fsi/ |
D | fsi-master-hub.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include "fsi-master.h" 29 * device (the hub->upstream device), and provides access to the downstream FSI 30 * bus as through an address range on the slave itself (->addr and ->size). 39 uint32_t addr, size; /* slave-relative addr of */ member 46 uint8_t id, uint32_t addr, void *val, size_t size) in hub_master_read() argument 51 return -EINVAL; in hub_master_read() 53 addr += hub->addr + (link * FSI_HUB_LINK_SIZE); in hub_master_read() 54 return fsi_slave_read(hub->upstream->slave, addr, val, size); in hub_master_read() 58 uint8_t id, uint32_t addr, const void *val, size_t size) in hub_master_write() argument [all …]
|
D | fsi-master-aspeed.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 #include "fsi-master.h" 97 static int __opb_write(struct fsi_master_aspeed *aspeed, u32 addr, in __opb_write() argument 100 void __iomem *base = aspeed->base; in __opb_write() 101 u32 reg, status; in __opb_write() local 110 writel_relaxed(addr, base + OPB0_FSI_ADDR); in __opb_write() 115 ret = readl_poll_timeout(base + OPB_IRQ_STATUS, reg, in __opb_write() 116 (reg & OPB0_XFER_ACK_EN) != 0, in __opb_write() 121 trace_fsi_master_aspeed_opb_write(addr, val, transfer_size, status, reg); in __opb_write() 129 return -EIO; in __opb_write() [all …]
|
/Linux-v6.1/drivers/iio/imu/st_lsm6dsx/ |
D | st_lsm6dsx_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * and 3D digital gyroscope system-in-package with a digital I2C/SPI serial 8 * LSM6DSx IMU MEMS series has a dynamic user-selectable full-scale 9 * acceleration range of +-2/+-4/+-8/+-16 g and an angular rate range of 10 * +-125/+-245/+-500/+-1000/+-2000 dps 11 * LSM6DSx series has an integrated First-In-First-Out (FIFO) buffer 17 * - LSM6DS3: 18 * - Accelerometer/Gyroscope supported ODR [Hz]: 12.5, 26, 52, 104, 208, 416 19 * - Accelerometer supported full-scale [g]: +-2/+-4/+-8/+-16 20 * - Gyroscope supported full-scale [dps]: +-125/+-245/+-500/+-1000/+-2000 [all …]
|
/Linux-v6.1/arch/powerpc/kernel/ |
D | optprobes.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 #include <asm/code-patching.h> 18 #include <asm/ppc-opcode.h> 21 #define TMPL_CALL_HDLR_IDX (optprobe_template_call_handler - optprobe_template_entry) 22 #define TMPL_EMULATE_IDX (optprobe_template_call_emulate - optprobe_template_entry) 23 #define TMPL_RET_IDX (optprobe_template_ret - optprobe_template_entry) 24 #define TMPL_OP_IDX (optprobe_template_op_address - optprobe_template_entry) 25 #define TMPL_INSN_IDX (optprobe_template_insn - optprobe_template_entry) 26 #define TMPL_END_IDX (optprobe_template_end - optprobe_template_entry) 44 * Check if we can optimize this probe. Returns NIP post-emulation if this can [all …]
|
/Linux-v6.1/drivers/net/dsa/sja1105/ |
D | sja1105_mdio.c | 1 // SPDX-License-Identifier: GPL-2.0 4 #include <linux/pcs/pcs-xpcs.h> 10 int sja1105_pcs_mdio_read(struct mii_bus *bus, int phy, int reg) in sja1105_pcs_mdio_read() argument 12 struct sja1105_mdio_private *mdio_priv = bus->priv; in sja1105_pcs_mdio_read() 13 struct sja1105_private *priv = mdio_priv->priv; in sja1105_pcs_mdio_read() 14 u64 addr; in sja1105_pcs_mdio_read() local 19 if (!(reg & MII_ADDR_C45)) in sja1105_pcs_mdio_read() 20 return -EINVAL; in sja1105_pcs_mdio_read() 22 mmd = (reg >> MII_DEVADDR_C45_SHIFT) & 0x1f; in sja1105_pcs_mdio_read() 23 addr = (mmd << 16) | (reg & GENMASK(15, 0)); in sja1105_pcs_mdio_read() [all …]
|
/Linux-v6.1/arch/arm/boot/dts/ |
D | axm5516-cpus.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * arch/arm/boot/dts/axm5516-cpus.dtsi 10 #address-cells = <1>; 11 #size-cells = <0>; 13 cpu-map { 74 compatible = "arm,cortex-a15"; 75 reg = <0x00>; 76 clock-frequency = <1400000000>; 77 cpu-release-addr = <0>; // Fixed by the boot loader 82 compatible = "arm,cortex-a15"; [all …]
|
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
D | hwsq.h | 1 /* SPDX-License-Identifier: MIT */ 15 u32 addr; member 22 hwsq_stride(u32 addr, u32 stride, u32 mask) in hwsq_stride() argument 27 .addr = addr, in hwsq_stride() 40 .addr = addr1, in hwsq_reg2() 41 .stride = addr2 - addr1, in hwsq_reg2() 48 hwsq_reg(u32 addr) in hwsq_reg() argument 53 .addr = addr, in hwsq_reg() 65 ret = nvkm_hwsq_init(subdev, &ram->hwsq); in hwsq_init() 69 ram->sequence++; in hwsq_init() [all …]
|
/Linux-v6.1/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
D | sp_private.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright (c) 2010-2015, Intel Corporation. 27 const hrt_address reg, in sp_ctrl_store() argument 31 assert(SP_CTRL_BASE[ID] != (hrt_address)-1); in sp_ctrl_store() 32 ia_css_device_store_uint32(SP_CTRL_BASE[ID] + reg * sizeof(hrt_data), value); in sp_ctrl_store() 38 const hrt_address reg) in sp_ctrl_load() argument 41 assert(SP_CTRL_BASE[ID] != (hrt_address)-1); in sp_ctrl_load() 42 return ia_css_device_load_uint32(SP_CTRL_BASE[ID] + reg * sizeof(hrt_data)); in sp_ctrl_load() 47 const hrt_address reg, in sp_ctrl_getbit() argument 50 hrt_data val = sp_ctrl_load(ID, reg); in sp_ctrl_getbit() [all …]
|
D | isp_private.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 32 const unsigned int reg, in isp_ctrl_store() argument 36 assert(ISP_CTRL_BASE[ID] != (hrt_address) - 1); in isp_ctrl_store() 38 ia_css_device_store_uint32(ISP_CTRL_BASE[ID] + reg * sizeof(hrt_data), value); in isp_ctrl_store() 40 hrt_master_port_store_32(ISP_CTRL_BASE[ID] + reg * sizeof(hrt_data), value); in isp_ctrl_store() 47 const unsigned int reg) in isp_ctrl_load() argument 50 assert(ISP_CTRL_BASE[ID] != (hrt_address) - 1); in isp_ctrl_load() 52 return ia_css_device_load_uint32(ISP_CTRL_BASE[ID] + reg * sizeof(hrt_data)); in isp_ctrl_load() 54 return hrt_master_port_uload_32(ISP_CTRL_BASE[ID] + reg * sizeof(hrt_data)); in isp_ctrl_load() 60 const unsigned int reg, in isp_ctrl_getbit() argument [all …]
|
/Linux-v6.1/arch/mips/lib/ |
D | csum_partial.S | 15 #include <asm/asm-offsets.h> 59 #define ADDC(sum,reg) \ argument 62 ADD sum, reg; \ 63 sltu v1, sum, reg; \ 67 #define ADDC32(sum,reg) \ argument 70 addu sum, reg; \ 71 sltu v1, sum, reg; \ 342 * reg : Register 343 * addr : Address 346 #define EXC(insn, type, reg, addr) \ argument [all …]
|
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
D | ramfuc.h | 1 /* SPDX-License-Identifier: MIT */ 16 u32 addr; member 23 ramfuc_stride(u32 addr, u32 stride, u32 mask) in ramfuc_stride() argument 27 .addr = addr, in ramfuc_stride() 39 .addr = addr1, in ramfuc_reg2() 40 .stride = addr2 - addr1, in ramfuc_reg2() 47 ramfuc_reg(u32 addr) in ramfuc_reg() argument 51 .addr = addr, in ramfuc_reg() 61 int ret = nvkm_memx_init(fb->subdev.device->pmu, &ram->memx); in ramfuc_init() 65 ram->sequence++; in ramfuc_init() [all …]
|
/Linux-v6.1/arch/x86/pci/ |
D | mmconfig_64.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * mmconfig.c - Low-level direct PCI config space access via MMCONFIG 23 if (cfg && cfg->virt) in pci_dev_base() 24 return cfg->virt + (PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12)); in pci_dev_base() 29 unsigned int devfn, int reg, int len, u32 *value) in pci_mmcfg_read() argument 31 char __iomem *addr; in pci_mmcfg_read() local 33 /* Why do we have this when nobody checks it. How about a BUG()!? -AK */ in pci_mmcfg_read() 34 if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) { in pci_mmcfg_read() 35 err: *value = -1; in pci_mmcfg_read() 36 return -EINVAL; in pci_mmcfg_read() [all …]
|
/Linux-v6.1/arch/powerpc/boot/ |
D | devtree.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * devtree.c - convenience functions for device tree manipulation 25 if (getprop(root, "#address-cells", &naddr, sizeof(naddr)) < 0) in dt_fixup_memory() 30 fatal("Can't cope with #address-cells == %d in /\n\r", naddr); in dt_fixup_memory() 32 if (getprop(root, "#size-cells", &nsize, sizeof(nsize)) < 0) in dt_fixup_memory() 37 fatal("Can't cope with #size-cells == %d in /\n\r", nsize); in dt_fixup_memory() 53 printf("Memory <- <0x%x", be32_to_cpu(memreg[0])); in dt_fixup_memory() 58 setprop(memory, "reg", memreg, (naddr + nsize)*sizeof(u32)); in dt_fixup_memory() 67 printf("CPU clock-frequency <- 0x%x (%dMHz)\n\r", cpu, MHZ(cpu)); in dt_fixup_cpu_clocks() 68 printf("CPU timebase-frequency <- 0x%x (%dMHz)\n\r", tb, MHZ(tb)); in dt_fixup_cpu_clocks() [all …]
|
/Linux-v6.1/drivers/media/pci/cx18/ |
D | cx18-io.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 12 #include "cx18-driver.h" 24 static inline u32 cx18_raw_readl(struct cx18 *cx, const void __iomem *addr) in cx18_raw_readl() argument 26 return __raw_readl(addr); in cx18_raw_readl() 30 void cx18_raw_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel_noretry() argument 32 __raw_writel(val, addr); in cx18_raw_writel_noretry() 35 static inline void cx18_raw_writel(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel() argument 39 cx18_raw_writel_noretry(cx, val, addr); in cx18_raw_writel() 40 if (val == cx18_raw_readl(cx, addr)) in cx18_raw_writel() 46 static inline u32 cx18_readl(struct cx18 *cx, const void __iomem *addr) in cx18_readl() argument [all …]
|
/Linux-v6.1/drivers/net/wireless/ti/wlcore/ |
D | io.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 1998-2009 Texas Instruments. All rights reserved. 6 * Copyright (C) 2008-2010 Nokia Corporation 41 int wlcore_translate_addr(struct wl1271 *wl, int addr); 44 static inline int __must_check wlcore_raw_write(struct wl1271 *wl, int addr, in wlcore_raw_write() argument 50 if (test_bit(WL1271_FLAG_IO_FAILED, &wl->flags) || in wlcore_raw_write() 51 WARN_ON((test_bit(WL1271_FLAG_IN_ELP, &wl->flags) && in wlcore_raw_write() 52 addr != HW_ACCESS_ELP_CTRL_REG))) in wlcore_raw_write() 53 return -EIO; in wlcore_raw_write() 55 ret = wl->if_ops->write(wl->dev, addr, buf, len, fixed); in wlcore_raw_write() [all …]
|
/Linux-v6.1/drivers/net/wan/ |
D | hd64572.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * hd64572.h Description of the Hitachi HD64572 (SCA-II), valid for 8 * Copyright: (c) 2000-2001 Cyclades Corp. 15 * PC300 initial CVS version (3.4.0-pre1) 28 #define PABR0L 0x20 /* Physical Addr Boundary Register 0 L */ 29 #define PABR0H 0x21 /* Physical Addr Boundary Register 0 H */ 30 #define PABR1L 0x22 /* Physical Addr Boundary Register 1 L */ 31 #define PABR1H 0x23 /* Physical Addr Boundary Register 1 H */ 46 #define M_REG(reg, chan) (reg + 0x80*chan) /* MSCI */ argument 47 #define DRX_REG(reg, chan) (reg + 0x40*chan) /* DMA Rx */ argument [all …]
|
/Linux-v6.1/include/sound/ |
D | hdaudio.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * HD-audio core stuff 12 #include <linux/io-64-nonatomic-lo-hi.h> 49 * HD-audio codec base device 55 unsigned int addr; /* codec address */ member 121 const char *name, unsigned int addr); 161 * snd_hdac_read_parm - read a codec parameter 166 * Returns -1 for error. If you need to distinguish the error more 174 return _snd_hdac_read_parm(codec, nid, parm, &val) < 0 ? -1 : val; in snd_hdac_read_parm() 187 atomic_inc(&codec->in_pm); in snd_hdac_enter_pm() [all …]
|
/Linux-v6.1/drivers/usb/dwc3/ |
D | ulpi.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * ulpi.c - DesignWare USB3 Controller's ULPI PHY interface 24 static int dwc3_ulpi_busyloop(struct dwc3 *dwc, u8 addr, bool read) in dwc3_ulpi_busyloop() argument 28 u32 reg; in dwc3_ulpi_busyloop() local 30 if (addr >= ULPI_EXT_VENDOR_SPECIFIC) in dwc3_ulpi_busyloop() 36 reg = dwc3_readl(dwc->regs, DWC3_GUSB2PHYCFG(0)); in dwc3_ulpi_busyloop() 37 if (reg & DWC3_GUSB2PHYCFG_SUSPHY) in dwc3_ulpi_busyloop() 40 while (count--) { in dwc3_ulpi_busyloop() 42 reg = dwc3_readl(dwc->regs, DWC3_GUSB2PHYACC(0)); in dwc3_ulpi_busyloop() 43 if (reg & DWC3_GUSB2PHYACC_DONE) in dwc3_ulpi_busyloop() [all …]
|