| /kernel/linux/linux-4.19/arch/mips/include/asm/ |
| D | asm-eva.h | 18 #define kernel_ll(reg, addr) "ll " reg ", " addr "\n" argument 19 #define kernel_sc(reg, addr) "sc " reg ", " addr "\n" argument 20 #define kernel_lw(reg, addr) "lw " reg ", " addr "\n" argument 21 #define kernel_lwl(reg, addr) "lwl " reg ", " addr "\n" argument 22 #define kernel_lwr(reg, addr) "lwr " reg ", " addr "\n" argument 23 #define kernel_lh(reg, addr) "lh " reg ", " addr "\n" argument 24 #define kernel_lb(reg, addr) "lb " reg ", " addr "\n" argument 25 #define kernel_lbu(reg, addr) "lbu " reg ", " addr "\n" argument 26 #define kernel_sw(reg, addr) "sw " reg ", " addr "\n" argument 27 #define kernel_swl(reg, addr) "swl " reg ", " addr "\n" argument [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-5.10/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> 110 void __user *addr, unsigned int __user *pc) in emulate_load_store_insn() argument 119 orig31 = regs->regs[31]; in emulate_load_store_insn() 131 * can assume therefore that the code is MIPS-aware and in emulate_load_store_insn() 166 if (!access_ok(addr, 4)) in emulate_load_store_insn() 168 LoadW(addr, value, res); in emulate_load_store_insn() 172 regs->regs[insn.dsp_format.rd] = value; in emulate_load_store_insn() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/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 29 static int read32(struct wfx_dev *wdev, int reg, u32 *val) in read32() argument 36 return -ENOMEM; in read32() 37 ret = wdev->hwbus_ops->copy_from_io(wdev->hwbus_priv, reg, tmp, in read32() 43 dev_err(wdev->dev, "%s: bus communication error: %d\n", in read32() 48 static int write32(struct wfx_dev *wdev, int reg, u32 val) in write32() argument 54 return -ENOMEM; in write32() [all …]
|
| /kernel/linux/linux-5.10/arch/arm64/kvm/vgic/ |
| D | vgic-kvm-device.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 phys_addr_t addr, phys_addr_t alignment) in vgic_check_ioaddr() argument 20 if (addr & ~kvm_phys_mask(kvm)) in vgic_check_ioaddr() 21 return -E2BIG; in vgic_check_ioaddr() 23 if (!IS_ALIGNED(addr, alignment)) in vgic_check_ioaddr() 24 return -EINVAL; in vgic_check_ioaddr() 27 return -EEXIST; in vgic_check_ioaddr() 34 if (kvm->arch.vgic.vgic_model != type_needed) in vgic_check_type() 35 return -ENODEV; in vgic_check_type() 41 * kvm_vgic_addr - set or get vgic VM base addresses [all …]
|
| /kernel/linux/linux-4.19/virt/kvm/arm/vgic/ |
| D | vgic-kvm-device.c | 26 phys_addr_t addr, phys_addr_t alignment) in vgic_check_ioaddr() argument 28 if (addr & ~KVM_PHYS_MASK) in vgic_check_ioaddr() 29 return -E2BIG; in vgic_check_ioaddr() 31 if (!IS_ALIGNED(addr, alignment)) in vgic_check_ioaddr() 32 return -EINVAL; in vgic_check_ioaddr() 35 return -EEXIST; in vgic_check_ioaddr() 42 if (kvm->arch.vgic.vgic_model != type_needed) in vgic_check_type() 43 return -ENODEV; in vgic_check_type() 49 * kvm_vgic_addr - set or get vgic VM base addresses 51 * @type: the VGIC addr type, one of KVM_VGIC_V[23]_ADDR_TYPE_XXX [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/mediatek/ |
| D | mtk_drm_ddp.c | 203 unsigned int *addr) in mtk_ddp_mout_en() argument 208 *addr = DISP_REG_CONFIG_DISP_OVL0_MOUT_EN; in mtk_ddp_mout_en() 211 *addr = DISP_REG_CONFIG_DISP_OVL_MOUT_EN; in mtk_ddp_mout_en() 214 *addr = DISP_REG_CONFIG_DISP_OD_MOUT_EN; in mtk_ddp_mout_en() 217 *addr = DISP_REG_CONFIG_DISP_UFOE_MOUT_EN; in mtk_ddp_mout_en() 220 *addr = DISP_REG_CONFIG_DISP_OVL1_MOUT_EN; in mtk_ddp_mout_en() 223 *addr = DISP_REG_CONFIG_DISP_GAMMA_MOUT_EN; in mtk_ddp_mout_en() 226 *addr = DISP_REG_CONFIG_DISP_OD_MOUT_EN; in mtk_ddp_mout_en() 229 *addr = DISP_REG_CONFIG_DISP_RDMA0_SOUT_EN; in mtk_ddp_mout_en() 232 *addr = DISP_REG_CONFIG_DISP_RDMA0_SOUT_EN; in mtk_ddp_mout_en() [all …]
|
| /kernel/linux/linux-5.10/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 106 writel(addr, base + OPB0_FSI_ADDR); in __opb_write() 111 ret = readl_poll_timeout(base + OPB_IRQ_STATUS, reg, in __opb_write() 112 (reg & OPB0_XFER_ACK_EN) != 0, in __opb_write() 117 trace_fsi_master_aspeed_opb_write(addr, val, transfer_size, status, reg); in __opb_write() 125 return -EIO; in __opb_write() [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-4.19/sound/isa/gus/ |
| D | gus_io.c | 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 46 static inline void __snd_gf1_ctrl_stop(struct snd_gus_card * gus, unsigned char reg) in __snd_gf1_ctrl_stop() argument 50 outb(reg | 0x80, gus->gf1.reg_regsel); in __snd_gf1_ctrl_stop() 52 value = inb(gus->gf1.reg_data8); in __snd_gf1_ctrl_stop() 54 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_ctrl_stop() 56 outb((value | 0x03) & ~(0x80 | 0x20), gus->gf1.reg_data8); in __snd_gf1_ctrl_stop() 61 unsigned char reg, in __snd_gf1_write8() argument 64 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_write8() 66 outb(data, gus->gf1.reg_data8); in __snd_gf1_write8() 71 unsigned char reg) in __snd_gf1_look8() argument [all …]
|
| /kernel/linux/linux-5.10/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]: 13, 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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-4.19/arch/arm/boot/dts/ |
| D | axm5516-cpus.dtsi | 2 * arch/arm/boot/dts/axm5516-cpus.dtsi 14 #address-cells = <1>; 15 #size-cells = <0>; 17 cpu-map { 78 compatible = "arm,cortex-a15"; 79 reg = <0x00>; 80 clock-frequency= <1400000000>; 81 cpu-release-addr = <0>; // Fixed by the boot loader 86 compatible = "arm,cortex-a15"; 87 reg = <0x01>; [all …]
|
| /kernel/linux/linux-4.19/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: 111 #define _LoadHW(addr, value, res, type) \ argument 130 : "r" (addr), "i" (-EFAULT)); \ 134 #define _LoadW(addr, value, res, type) \ argument 151 : "r" (addr), "i" (-EFAULT)); \ 156 #define _LoadW(addr, value, res, type) \ argument 186 : "r" (addr), "i" (-EFAULT)); \ 191 #define _LoadHWU(addr, value, res, type) \ argument [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
| D | hwsq.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-5.10/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> 22 (optprobe_template_call_handler - optprobe_template_entry) 24 (optprobe_template_call_emulate - optprobe_template_entry) 26 (optprobe_template_ret - optprobe_template_entry) 28 (optprobe_template_op_address - optprobe_template_entry) 30 (optprobe_template_insn - optprobe_template_entry) 32 (optprobe_template_end - optprobe_template_entry) 61 * Check if we can optimize this probe. Returns NIP post-emulation if this can [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
| D | ramfuc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-4.19/include/linux/iio/imu/ |
| D | adis.h | 5 * Author: Lars-Peter Clausen <lars@metafoo.de> 7 * Licensed under the GPL-2 or later. 17 #define ADIS_WRITE_REG(reg) ((0x80 | (reg))) argument 18 #define ADIS_READ_REG(reg) ((reg) & 0x7f) argument 26 * struct adis_data - ADIS chip variant specific data 75 int adis_write_reg(struct adis *adis, unsigned int reg, 77 int adis_read_reg(struct adis *adis, unsigned int reg, 81 * adis_write_reg_8() - Write single byte to a register 83 * @reg: The address of the register to be written 86 static inline int adis_write_reg_8(struct adis *adis, unsigned int reg, in adis_write_reg_8() argument [all …]
|
| /kernel/linux/linux-4.19/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|