| /OK3568_Linux_fs/kernel/arch/mips/include/asm/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/arch/mips/kernel/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/wfx/ |
| H A 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 …]
|
| H A D | traces.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (c) 2018-2020, Silicon Laboratories, Inc. 48 * #define list_for_print_symbolic list_names { -1, NULL } 100 #define hif_msg_list hif_msg_list_enum { -1, NULL } 158 #define hif_mib_list hif_mib_list_enum { -1, NULL } 176 __entry->tx_fill_level = tx_fill_level; 177 __entry->msg_len = le16_to_cpu(hif->len); 178 __entry->msg_id = hif->id; 179 __entry->if_id = hif->interface; 181 __entry->msg_type = __entry->msg_id & 0x80 ? "IND" : "CNF"; [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm64/kvm/vgic/ |
| H A 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 …]
|
| /OK3568_Linux_fs/u-boot/cmd/ |
| H A D | mii.c | 5 * SPDX-License-Identifier: GPL-2.0+ 42 { 11, 11, 0x01, "power-down" }, 51 { 15, 15, 0x01, "100BASE-T4 able" }, 52 { 14, 14, 0x01, "100BASE-X full duplex able" }, 53 { 13, 13, 0x01, "100BASE-X half duplex able" }, 56 { 10, 10, 0x01, "100BASE-T2 full duplex able" }, 57 { 9, 9, 0x01, "100BASE-T2 half duplex able" }, 86 { 9, 9, 0x01, "100BASE-T4 able" }, 87 { 8, 8, 0x01, "100BASE-TX full duplex able" }, 88 { 7, 7, 0x01, "100BASE-TX able" }, [all …]
|
| H A D | mdio.c | 5 * SPDX-License-Identifier: GPL-2.0+ 32 return -1; in extract_range() 34 if ((*end == '-') && *(++end)) in extract_range() 39 return -1; in extract_range() 50 int addr, devad, reg; in mdio_write_ranges() local 53 for (addr = addrlo; addr <= addrhi; addr++) { in mdio_write_ranges() 55 for (reg = reglo; reg <= reghi; reg++) { in mdio_write_ranges() 57 err = bus->write(bus, addr, devad, in mdio_write_ranges() 58 reg, data); in mdio_write_ranges() 60 err = phydev->drv->writeext(phydev, in mdio_write_ranges() [all …]
|
| /OK3568_Linux_fs/kernel/sound/isa/gus/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/iio/imu/st_lsm6dsx/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/fsi/ |
| H A 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 …]
|
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/hive_isp_css_include/host/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/kernel/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/arch/mips/lib/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/include/sound/ |
| H A D | hdaudio.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * HD-audio core stuff 47 * HD-audio codec base device 53 unsigned int addr; /* codec address */ member 118 const char *name, unsigned int addr); 158 * snd_hdac_read_parm - read a codec parameter 163 * Returns -1 for error. If you need to distinguish the error more 171 return _snd_hdac_read_parm(codec, nid, parm, &val) < 0 ? -1 : val; in snd_hdac_read_parm() 184 atomic_inc(&codec->in_pm); in snd_hdac_enter_pm() 190 atomic_dec(&codec->in_pm); in snd_hdac_leave_pm() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188eu/include/ |
| H A D | rtw_io.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright(c) 2007 - 2017 Realtek Corporation. 23 #define MAX_PROT_SZ (64-16) 91 u8(*_read8)(struct intf_hdl *pintfhdl, u32 addr); 92 u16(*_read16)(struct intf_hdl *pintfhdl, u32 addr); 93 u32(*_read32)(struct intf_hdl *pintfhdl, u32 addr); 95 int (*_write8)(struct intf_hdl *pintfhdl, u32 addr, u8 val); 96 int (*_write16)(struct intf_hdl *pintfhdl, u32 addr, u16 val); 97 int (*_write32)(struct intf_hdl *pintfhdl, u32 addr, u32 val); 98 int (*_writeN)(struct intf_hdl *pintfhdl, u32 addr, u32 length, u8 *pdata); [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188fu/include/ |
| H A D | rtw_io.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright(c) 2007 - 2017 Realtek Corporation. 23 #define MAX_PROT_SZ (64-16) 91 u8(*_read8)(struct intf_hdl *pintfhdl, u32 addr); 92 u16(*_read16)(struct intf_hdl *pintfhdl, u32 addr); 93 u32(*_read32)(struct intf_hdl *pintfhdl, u32 addr); 95 int (*_write8)(struct intf_hdl *pintfhdl, u32 addr, u8 val); 96 int (*_write16)(struct intf_hdl *pintfhdl, u32 addr, u16 val); 97 int (*_write32)(struct intf_hdl *pintfhdl, u32 addr, u32 val); 98 int (*_writeN)(struct intf_hdl *pintfhdl, u32 addr, u32 length, u8 *pdata); [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189fs/include/ |
| H A D | rtw_io.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright(c) 2007 - 2017 Realtek Corporation. 23 #define MAX_PROT_SZ (64-16) 91 u8(*_read8)(struct intf_hdl *pintfhdl, u32 addr); 92 u16(*_read16)(struct intf_hdl *pintfhdl, u32 addr); 93 u32(*_read32)(struct intf_hdl *pintfhdl, u32 addr); 95 int (*_write8)(struct intf_hdl *pintfhdl, u32 addr, u8 val); 96 int (*_write16)(struct intf_hdl *pintfhdl, u32 addr, u16 val); 97 int (*_write32)(struct intf_hdl *pintfhdl, u32 addr, u32 val); 98 int (*_writeN)(struct intf_hdl *pintfhdl, u32 addr, u32 length, u8 *pdata); [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wan/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/boot/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/regulator/ |
| H A D | palmas-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2011-2013 Texas Instruments Inc. 42 .sname = "smps1-in", 50 .sname = "smps1-in", 58 .sname = "smps3-in", 65 .sname = "smps4-in", 73 .sname = "smps4-in", 81 .sname = "smps6-in", 89 .sname = "smps7-in", 96 .sname = "smps8-in", [all …]
|