/linux-6.14.4/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-6.14.4/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> 97 #include "access-helper.h" 113 void __user *addr, unsigned int *pc) in emulate_load_store_insn() argument 121 orig31 = regs->regs[31]; in emulate_load_store_insn() 133 * can assume therefore that the code is MIPS-aware and in emulate_load_store_insn() 171 if (user && !access_ok(addr, 4)) in emulate_load_store_insn() 173 LoadW(addr, value, res); in emulate_load_store_insn() [all …]
|
/linux-6.14.4/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 …]
|
/linux-6.14.4/drivers/staging/media/atomisp/pci/hive_isp_css_include/host/ |
D | sp_public.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 27 \param reg[in] register index 30 \return none, SP[ID].sc[reg] = value 34 const hrt_address reg, 40 \param reg[in] register index 43 \return SP[ID].sc[reg] 47 const hrt_address reg); 52 \param reg[in] register index 55 \return (SP[ID].sc[reg] & (1<<bit)) != 0 59 const hrt_address reg, [all …]
|
D | isp_public.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 27 \param reg[in] register index 30 \return none, ISP[ID].sc[reg] = value 34 const unsigned int reg, 40 \param reg[in] register index 43 \return ISP[ID].sc[reg] 47 const unsigned int reg); 52 \param reg[in] register index 55 \return (ISP[ID].sc[reg] & (1<<bit)) != 0 59 const unsigned int reg, [all …]
|
/linux-6.14.4/drivers/gpu/drm/nouveau/ |
D | nouveau_uvmm.c | 1 // SPDX-License-Identifier: MIT 68 u64 addr; member 78 struct nouveau_uvma_region *reg; member 85 u64 addr; member 92 u64 addr, u64 range) in nouveau_uvmm_vmm_sparse_ref() argument 94 struct nvif_vmm *vmm = &uvmm->vmm.vmm; in nouveau_uvmm_vmm_sparse_ref() 96 return nvif_vmm_raw_sparse(vmm, addr, range, true); in nouveau_uvmm_vmm_sparse_ref() 101 u64 addr, u64 range) in nouveau_uvmm_vmm_sparse_unref() argument 103 struct nvif_vmm *vmm = &uvmm->vmm.vmm; in nouveau_uvmm_vmm_sparse_unref() 105 return nvif_vmm_raw_sparse(vmm, addr, range, false); in nouveau_uvmm_vmm_sparse_unref() [all …]
|
/linux-6.14.4/drivers/net/ethernet/mscc/ |
D | ocelot_io.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 13 int __ocelot_bulk_read_ix(struct ocelot *ocelot, enum ocelot_reg reg, in __ocelot_bulk_read_ix() argument 17 u32 addr; in __ocelot_bulk_read_ix() local 19 ocelot_reg_to_target_addr(ocelot, reg, &target, &addr); in __ocelot_bulk_read_ix() 22 return regmap_bulk_read(ocelot->targets[target], addr + offset, in __ocelot_bulk_read_ix() 27 u32 __ocelot_read_ix(struct ocelot *ocelot, enum ocelot_reg reg, u32 offset) in __ocelot_read_ix() argument 30 u32 addr, val; in __ocelot_read_ix() local 32 ocelot_reg_to_target_addr(ocelot, reg, &target, &addr); in __ocelot_read_ix() 35 regmap_read(ocelot->targets[target], addr + offset, &val); in __ocelot_read_ix() 40 void __ocelot_write_ix(struct ocelot *ocelot, u32 val, enum ocelot_reg reg, in __ocelot_write_ix() argument [all …]
|
/linux-6.14.4/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-6.14.4/arch/powerpc/kernel/ |
D | optprobes.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 #include <asm/text-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-6.14.4/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. 18 const hrt_address reg, in sp_ctrl_store() argument 22 assert(SP_CTRL_BASE[ID] != (hrt_address)-1); in sp_ctrl_store() 23 ia_css_device_store_uint32(SP_CTRL_BASE[ID] + reg * sizeof(hrt_data), value); in sp_ctrl_store() 29 const hrt_address reg) in sp_ctrl_load() argument 32 assert(SP_CTRL_BASE[ID] != (hrt_address)-1); in sp_ctrl_load() 33 return ia_css_device_load_uint32(SP_CTRL_BASE[ID] + reg * sizeof(hrt_data)); in sp_ctrl_load() 38 const hrt_address reg, in sp_ctrl_getbit() argument 41 hrt_data val = sp_ctrl_load(ID, reg); in sp_ctrl_getbit() [all …]
|
D | isp_private.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 23 const unsigned int reg, in isp_ctrl_store() argument 27 assert(ISP_CTRL_BASE[ID] != (hrt_address) - 1); in isp_ctrl_store() 29 ia_css_device_store_uint32(ISP_CTRL_BASE[ID] + reg * sizeof(hrt_data), value); in isp_ctrl_store() 31 hrt_master_port_store_32(ISP_CTRL_BASE[ID] + reg * sizeof(hrt_data), value); in isp_ctrl_store() 38 const unsigned int reg) in isp_ctrl_load() argument 41 assert(ISP_CTRL_BASE[ID] != (hrt_address) - 1); in isp_ctrl_load() 43 return ia_css_device_load_uint32(ISP_CTRL_BASE[ID] + reg * sizeof(hrt_data)); in isp_ctrl_load() 45 return hrt_master_port_uload_32(ISP_CTRL_BASE[ID] + reg * sizeof(hrt_data)); in isp_ctrl_load() 51 const unsigned int reg, in isp_ctrl_getbit() argument [all …]
|
/linux-6.14.4/arch/arm/boot/dts/intel/axm/ |
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-6.14.4/drivers/gpu/drm/xe/ |
D | xe_mmio.c | 1 // SPDX-License-Identifier: MIT 3 * Copyright © 2021-2023 Intel Corporation 9 #include <linux/io-64-nonatomic-lo-hi.h> 33 tile->mmio.regs = NULL; in tiles_fini() 37 * On multi-tile devices, partition the BAR space for MMIO on each tile, 43 * .----------------------. <- tile_count * tile_mmio_size 45 * |----------------------| <- 2 * tile_mmio_size 47 * |----------------------| <- 1 * tile_mmio_size + 4MB 48 * | tile1->mmio.regs | 49 * |----------------------| <- 1 * tile_mmio_size [all …]
|
/linux-6.14.4/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 18 * - LSM6DS3 19 * - Accelerometer/Gyroscope supported ODR [Hz]: 12.5, 26, 52, 104, 208, 416 20 * - Accelerometer supported full-scale [g]: +-2/+-4/+-8/+-16 21 * - Gyroscope supported full-scale [dps]: +-125/+-245/+-500/+-1000/+-2000 [all …]
|
/linux-6.14.4/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-6.14.4/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_c45(struct mii_bus *bus, int phy, int mmd, int reg) in sja1105_pcs_mdio_read_c45() argument 12 struct sja1105_mdio_private *mdio_priv = bus->priv; in sja1105_pcs_mdio_read_c45() 13 struct sja1105_private *priv = mdio_priv->priv; in sja1105_pcs_mdio_read_c45() 14 u64 addr; in sja1105_pcs_mdio_read_c45() local 18 addr = (mmd << 16) | reg; in sja1105_pcs_mdio_read_c45() 23 if (mmd == MDIO_MMD_VEND2 && (reg & GENMASK(15, 0)) == MII_PHYSID1) in sja1105_pcs_mdio_read_c45() 25 if (mmd == MDIO_MMD_VEND2 && (reg & GENMASK(15, 0)) == MII_PHYSID2) in sja1105_pcs_mdio_read_c45() 28 rc = sja1105_xfer_u32(priv, SPI_READ, addr, &tmp, NULL); in sja1105_pcs_mdio_read_c45() [all …]
|
/linux-6.14.4/drivers/net/dsa/mv88e6xxx/ |
D | phy.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 int addr, int reg, u16 *val) in mv88e6165_phy_read() argument 19 return mv88e6xxx_read(chip, addr, reg, val); in mv88e6165_phy_read() 23 int addr, int reg, u16 val) in mv88e6165_phy_write() argument 25 return mv88e6xxx_write(chip, addr, reg, val); in mv88e6165_phy_write() 28 int mv88e6xxx_phy_read(struct mv88e6xxx_chip *chip, int phy, int reg, u16 *val) in mv88e6xxx_phy_read() argument 30 int addr = phy; /* PHY devices addresses start at 0x0 */ in mv88e6xxx_phy_read() local 35 return -EOPNOTSUPP; in mv88e6xxx_phy_read() 37 if (!chip->info->ops->phy_read) in mv88e6xxx_phy_read() 38 return -EOPNOTSUPP; in mv88e6xxx_phy_read() [all …]
|
/linux-6.14.4/arch/mips/lib/ |
D | csum_partial.S | 16 #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-6.14.4/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-6.14.4/drivers/mfd/ |
D | rsmu_i2c.c | 1 // SPDX-License-Identifier: GPL-2.0+ 21 * 32-bit register address: the lower 8 bits of the register address come 22 * from the offset addr byte and the upper 24 bits come from the page register. 29 * 15-bit register address: the lower 7 bits of the register address come 30 * from the offset addr byte and the upper 8 bits come from the page register. 35 typedef int (*rsmu_rw_device)(struct rsmu_ddata *rsmu, u8 reg, u8 *buf, u8 bytes); 49 static bool rsmu_sabre_volatile_reg(struct device *dev, unsigned int reg) in rsmu_sabre_volatile_reg() argument 51 switch (reg) { in rsmu_sabre_volatile_reg() 59 static int rsmu_smbus_i2c_write_device(struct rsmu_ddata *rsmu, u8 reg, u8 *buf, u8 bytes) in rsmu_smbus_i2c_write_device() argument 61 struct i2c_client *client = to_i2c_client(rsmu->dev); in rsmu_smbus_i2c_write_device() [all …]
|
/linux-6.14.4/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-6.14.4/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> 50 * HD-audio codec base device 56 unsigned int addr; /* codec address */ member 122 const char *name, unsigned int addr); 163 * snd_hdac_read_parm - read a codec parameter 168 * Returns -1 for error. If you need to distinguish the error more 176 return _snd_hdac_read_parm(codec, nid, parm, &val) < 0 ? -1 : val; in snd_hdac_read_parm() 189 atomic_inc(&codec->in_pm); in snd_hdac_enter_pm() [all …]
|
/linux-6.14.4/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-6.14.4/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 …]
|