/Linux-v5.10/drivers/net/ethernet/wiznet/ |
D | w5100-spi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 …* http://www.wiznet.co.kr/wp-content/uploads/wiznethome/Chip/W5100/Document/W5100_Datasheet_v1.2.6… 9 …* http://wiznethome.cafe24.com/wp-content/uploads/wiznethome/Chip/W5200/Documents/W5200_DS_V140E.p… 26 static int w5100_spi_read(struct net_device *ndev, u32 addr) in w5100_spi_read() argument 28 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5100_spi_read() 29 u8 cmd[3] = { W5100_SPI_READ_OPCODE, addr >> 8, addr & 0xff }; in w5100_spi_read() 30 u8 data; in w5100_spi_read() local 33 ret = spi_write_then_read(spi, cmd, sizeof(cmd), &data, 1); in w5100_spi_read() 35 return ret ? ret : data; in w5100_spi_read() 38 static int w5100_spi_write(struct net_device *ndev, u32 addr, u8 data) in w5100_spi_write() argument [all …]
|
/Linux-v5.10/drivers/net/dsa/mv88e6xxx/ |
D | global2_avb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright (c) 2016-2017 Savoir-faire Linux Inc. 19 * Offset 0x17: AVB Data Register 22 * "6352": 3-bit "op" field, 4-bit "port" field. 23 * "6390": 2-bit "op" field, 5-bit "port" field. 29 /* mv88e6xxx_g2_avb_read -- Read one or multiple 16-bit words. 40 u16 *data, int len) in mv88e6xxx_g2_avb_read() argument 51 return -E2BIG; in mv88e6xxx_g2_avb_read() 64 &data[i]); in mv88e6xxx_g2_avb_read() 72 /* mv88e6xxx_g2_avb_write -- Write one 16-bit word. */ [all …]
|
/Linux-v5.10/drivers/staging/media/atomisp/pci/hive_isp_css_include/host/ |
D | sp_public.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 53 \param value[in] The data to be written 66 \param value[in] The data to be written 116 \param addr[in] the address in DMEM 117 \param data[in] The data to be written 118 \param size[in] The size(in bytes) of the data to be written 120 \return none, SP[ID].dmem[addr...addr+size-1] = data 124 hrt_address addr, 125 const void *data, 131 \param addr[in] the address in DMEM [all …]
|
/Linux-v5.10/drivers/staging/rtl8723bs/hal/ |
D | odm_RegConfig8723B.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 12 u32 Addr, in odm_ConfigRFReg_8723B() argument 13 u32 Data, in odm_ConfigRFReg_8723B() argument 18 if (Addr == 0xfe || Addr == 0xffe) in odm_ConfigRFReg_8723B() 21 PHY_SetRFReg(pDM_Odm->Adapter, RF_PATH, RegAddr, bRFRegOffsetMask, Data); in odm_ConfigRFReg_8723B() 26 if (Addr == 0xb6) { in odm_ConfigRFReg_8723B() 31 pDM_Odm->Adapter, RF_PATH, Addr, bMaskDWord in odm_ConfigRFReg_8723B() 36 while ((getvalue>>8) != (Data>>8)) { in odm_ConfigRFReg_8723B() 38 PHY_SetRFReg(pDM_Odm->Adapter, RF_PATH, RegAddr, bRFRegOffsetMask, Data); in odm_ConfigRFReg_8723B() [all …]
|
/Linux-v5.10/arch/arm/mach-ixp4xx/include/mach/ |
D | io.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * arch/arm/mach-ixp4xx/include/mach/io.h 7 * Copyright (C) 2002-2005 MontaVista Software, Inc. 17 extern int (*ixp4xx_pci_read)(u32 addr, u32 cmd, u32* data); 18 extern int ixp4xx_pci_write(u32 addr, u32 cmd, u32 data); 29 * problematic if using video cards and other memory-heavy targets. 49 static inline int is_pci_memory(u32 addr) in is_pci_memory() argument 51 return (addr >= pcibios_min_mem) && (addr <= 0x4FFFFFFF); in is_pci_memory() 80 u32 addr = (u32)p; in __indirect_writeb() local 81 u32 n, byte_enables, data; in __indirect_writeb() local [all …]
|
/Linux-v5.10/arch/arm64/kvm/hyp/ |
D | pgtable.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Stand-alone page-table allocator for hyp stage-1 and guest stage-2. 52 u64 addr; member 67 static bool kvm_block_mapping_supported(u64 addr, u64 end, u64 phys, u32 level) in kvm_block_mapping_supported() argument 73 * 52-bit PAs. in kvm_block_mapping_supported() 78 if (granule > (end - addr)) in kvm_block_mapping_supported() 81 return IS_ALIGNED(addr, granule) && IS_ALIGNED(phys, granule); in kvm_block_mapping_supported() 84 static u32 kvm_pgtable_idx(struct kvm_pgtable_walk_data *data, u32 level) in kvm_pgtable_idx() argument 87 u64 mask = BIT(PAGE_SHIFT - 3) - 1; in kvm_pgtable_idx() 89 return (data->addr >> shift) & mask; in kvm_pgtable_idx() [all …]
|
/Linux-v5.10/drivers/staging/media/atomisp/pci/ |
D | ia_css_device_access.c | 1 // SPDX-License-Identifier: GPL-2.0 33 ia_css_device_load_uint8(const hrt_address addr) in ia_css_device_load_uint8() argument 35 return my_env.load_8(addr); in ia_css_device_load_uint8() 39 ia_css_device_load_uint16(const hrt_address addr) in ia_css_device_load_uint16() argument 41 return my_env.load_16(addr); in ia_css_device_load_uint16() 45 ia_css_device_load_uint32(const hrt_address addr) in ia_css_device_load_uint32() argument 47 return my_env.load_32(addr); in ia_css_device_load_uint32() 51 ia_css_device_load_uint64(const hrt_address addr) in ia_css_device_load_uint64() argument 55 (void)addr; in ia_css_device_load_uint64() 60 ia_css_device_store_uint8(const hrt_address addr, const uint8_t data) in ia_css_device_store_uint8() argument [all …]
|
/Linux-v5.10/arch/powerpc/kernel/ |
D | vmlinux.lds.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 #include <asm-generic/vmlinux.lds.h> 38 * Text, read only data and other permanent read-only sections 51 .head.text : AT(ADDR(.head.text) - LOAD_OFFSET) { 61 KEEP(*(.head.data.fwnmi_page)); 77 .text ALIGN(0) : AT(ADDR(.text) - LOAD_OFFSET) { 84 .text : AT(ADDR(.text) - LOAD_OFFSET) { 100 * -Os builds call FP save/restore functions. The powerpc64 103 * sections, which can break start-of-text offset if it is 123 /* Read-only data */ [all …]
|
/Linux-v5.10/drivers/hwmon/ |
D | sch56xx-common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2010-2012 Hans de Goede <hdegoede@redhat.com> * 20 #include "sch56xx-common.h" 29 #define SIO_UNLOCK_KEY 0x55 /* Key to enable Super-I/O */ 30 #define SIO_LOCK_KEY 0xAA /* Key to disable Super-I/O */ 53 u16 addr; member 76 return -EBUSY; in superio_enter() 96 static int sch56xx_send_cmd(u16 addr, u8 cmd, u16 reg, u8 v) in sch56xx_send_cmd() argument 103 * responds within 15-32 reads, so we first busy poll, and if in sch56xx_send_cmd() 110 /* (Optional) Write-Clear the EC to Host Mailbox Register */ in sch56xx_send_cmd() [all …]
|
/Linux-v5.10/drivers/net/ethernet/apm/xgene/ |
D | xgene_enet_xgmac.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* Applied Micro X-Gene SoC Ethernet Driver 18 void __iomem *addr = pdata->eth_csr_addr + offset; in xgene_enet_wr_csr() local 20 iowrite32(val, addr); in xgene_enet_wr_csr() 26 void __iomem *addr = pdata->eth_ring_if_addr + offset; in xgene_enet_wr_ring_if() local 28 iowrite32(val, addr); in xgene_enet_wr_ring_if() 34 void __iomem *addr = pdata->eth_diag_csr_addr + offset; in xgene_enet_wr_diag_csr() local 36 iowrite32(val, addr); in xgene_enet_wr_diag_csr() 39 static bool xgene_enet_wr_indirect(void __iomem *addr, void __iomem *wr, in xgene_enet_wr_indirect() argument 46 iowrite32(wr_addr, addr); in xgene_enet_wr_indirect() [all …]
|
/Linux-v5.10/drivers/char/tpm/ |
D | tpm_tis_core.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 10 * Maintained by: <tpmdd-devel@lists.sourceforge.net> 103 int (*read_bytes)(struct tpm_tis_data *data, u32 addr, u16 len, 105 int (*write_bytes)(struct tpm_tis_data *data, u32 addr, u16 len, 107 int (*read16)(struct tpm_tis_data *data, u32 addr, u16 *result); 108 int (*read32)(struct tpm_tis_data *data, u32 addr, u32 *result); 109 int (*write32)(struct tpm_tis_data *data, u32 addr, u32 src); 112 static inline int tpm_tis_read_bytes(struct tpm_tis_data *data, u32 addr, in tpm_tis_read_bytes() argument 115 return data->phy_ops->read_bytes(data, addr, len, result); in tpm_tis_read_bytes() 118 static inline int tpm_tis_read8(struct tpm_tis_data *data, u32 addr, u8 *result) in tpm_tis_read8() argument [all …]
|
/Linux-v5.10/drivers/staging/media/atomisp/pci/hive_isp_css_include/device_access/ |
D | device_access.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 Copyright (c) 2010 - 2015, Intel Corporation. 41 * - hrt_address a type that can hold the (sub)system address range 46 * a pointer because a (say) 64-bit host can be simulated in a 32-bit 72 /*! Read an 8-bit value from a device register or memory in the device 74 \param addr[in] Local address 76 \return device[addr] 79 const hrt_address addr); 81 /*! Read a 16-bit value from a device register or memory in the device 83 \param addr[in] Local address [all …]
|
/Linux-v5.10/drivers/usb/musb/ |
D | musb_trace.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * musb_trace.h - MUSB Controller Trace Support 5 * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com 7 * Author: Bin Liu <b-liu@ti.com> 30 __string(name, dev_name(musb->controller)) 34 __assign_str(name, dev_name(musb->controller)); 35 vsnprintf(__get_str(msg), MUSB_MSG_MAX, vaf->fmt, *vaf->va); 41 TP_PROTO(void *caller, const void __iomem *addr, 42 unsigned int offset, u8 data), 43 TP_ARGS(caller, addr, offset, data), [all …]
|
/Linux-v5.10/drivers/gpio/ |
D | gpio-f7188x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * GPIO driver for Fintek Super-I/O F71869, F71869A, F71882, F71889 and F81866 5 * Copyright (C) 2010-2013 LaCie 17 #define DRVNAME "gpio-f7188x" 20 * Super-I/O registers 28 #define SIO_UNLOCK_KEY 0x87 /* Key to enable Super-I/O */ 29 #define SIO_LOCK_KEY 0xAA /* Key to disable Super-I/O */ 65 int addr; member 72 struct f7188x_gpio_data *data; member 82 * Super-I/O functions. [all …]
|
/Linux-v5.10/arch/s390/kernel/ |
D | ptrace.c | 1 // SPDX-License-Identifier: GPL-2.0 46 struct thread_struct *thread = &task->thread; in update_cr_regs() 60 if (task->thread.per_flags & PER_FLAG_NO_TE) in update_cr_regs() 64 if (task->thread.per_flags & PER_FLAG_TE_ABORT_RAND) { in update_cr_regs() 65 if (task->thread.per_flags & PER_FLAG_TE_ABORT_RAND_TEND) in update_cr_regs() 74 if (task->thread.gs_cb) in update_cr_regs() 85 new.control = thread->per_user.control; in update_cr_regs() 86 new.start = thread->per_user.start; in update_cr_regs() 87 new.end = thread->per_user.end; in update_cr_regs() 101 new.end = -1UL; in update_cr_regs() [all …]
|
/Linux-v5.10/include/trace/events/ |
D | fsi.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 uint32_t addr, size_t size), 14 TP_ARGS(master, link, id, addr, size), 19 __field(__u32, addr) 23 __entry->master_idx = master->idx; 24 __entry->link = link; 25 __entry->id = id; 26 __entry->addr = addr; 27 __entry->size = size; 30 __entry->master_idx, [all …]
|
/Linux-v5.10/arch/ia64/kernel/ |
D | vmlinux.lds.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 #include <asm-generic/vmlinux.lds.h> 13 OUTPUT_FORMAT("elf64-ia64-little") 21 data PT_LOAD; 39 phys_start = _start - LOAD_OFFSET; 48 .text : AT(ADDR(.text) - LOAD_OFFSET) { 62 .text2 : AT(ADDR(.text2) - LOAD_OFFSET) { 67 .text..lock : AT(ADDR(.text..lock) - LOAD_OFFSET) { 74 * Read-only data 79 __mca_table : AT(ADDR(__mca_table) - LOAD_OFFSET) { [all …]
|
/Linux-v5.10/drivers/thermal/ |
D | hisi_thermal.c | 4 * Copyright (c) 2014-2015 Hisilicon Limited. 5 * Copyright (c) 2014-2015 Linaro Limited. 49 #define HI6220_TEMP_BASE (-60000) 54 #define HI3660_TEMP_BASE (-63780) 69 struct hisi_thermal_data *data; member 81 int (*probe)(struct hisi_thermal_data *data); 97 * Temperature base: -60°C 100 * millidegree and begins at -60 000 m°C 108 * steps = (Temp - TempBase) / 785 118 return DIV_ROUND_UP(temp - HI6220_TEMP_BASE, HI6220_TEMP_STEP); in hi6220_thermal_temp_to_step() [all …]
|
/Linux-v5.10/arch/mips/kernel/ |
D | ptrace32.c | 14 * At this time Linux/MIPS64 only supports syscall tracing, even for 32-bit 40 * Tracing a 32-bit process with a 64-bit strace and vice versa will not 46 int addr = caddr; in compat_arch_ptrace() local 47 int data = cdata; in compat_arch_ptrace() local 54 * data is a pointer specifying where the user wants the in compat_arch_ptrace() 56 * addr is a pointer in the user's storage that contains an 8 byte in compat_arch_ptrace() 58 * (this is run in a 32-bit process looking at a 64-bit process) in compat_arch_ptrace() 67 ret = -EIO; in compat_arch_ptrace() 69 /* Get the addr in the other process that we want to read */ in compat_arch_ptrace() 70 if (get_user(addrOthers, (u32 __user * __user *) (unsigned long) addr) != 0) in compat_arch_ptrace() [all …]
|
/Linux-v5.10/arch/s390/pci/ |
D | pci_insn.c | 1 // SPDX-License-Identifier: GPL-2.0 27 } __packed data = {req, offset, cc, status}; in zpci_err_insn() local 29 zpci_err_hex(&data, sizeof(data)); in zpci_err_insn() 64 static inline u8 __rpcit(u64 fn, u64 addr, u64 range, u8 *status) in __rpcit() argument 66 register u64 __addr asm("2") = addr; in __rpcit() 71 " .insn rre,0xb9d30000,%[fn],%[addr]\n" in __rpcit() 75 : [addr] "d" (__addr), "d" (__range) in __rpcit() 81 int zpci_refresh_trans(u64 fn, u64 addr, u64 range) in zpci_refresh_trans() argument 86 cc = __rpcit(fn, addr, range, &status); in zpci_refresh_trans() 92 zpci_err_insn(cc, status, addr, range); in zpci_refresh_trans() [all …]
|
/Linux-v5.10/drivers/net/ethernet/qlogic/qed/ |
D | qed_init_ops.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 3 * Copyright (c) 2015-2017 QLogic Corporation 4 * Copyright (c) 2019-2020 Marvell International Ltd. 27 0x1c02, /* win 2: addr=0x1c02000, size=4096 bytes */ 28 0x1c80, /* win 3: addr=0x1c80000, size=4096 bytes */ 29 0x1d00, /* win 4: addr=0x1d00000, size=4096 bytes */ 30 0x1d01, /* win 5: addr=0x1d01000, size=4096 bytes */ 31 0x1d02, /* win 6: addr=0x1d02000, size=4096 bytes */ 32 0x1d80, /* win 7: addr=0x1d80000, size=4096 bytes */ 33 0x1d81, /* win 8: addr=0x1d81000, size=4096 bytes */ [all …]
|
/Linux-v5.10/drivers/gpu/drm/nouveau/include/nvkm/core/ |
D | object.h | 1 /* SPDX-License-Identifier: MIT */ 32 int (*mthd)(struct nvkm_object *, u32 mthd, void *data, u32 size); 35 enum nvkm_object_map *, u64 *addr, u64 *size); 37 int (*rd08)(struct nvkm_object *, u64 addr, u8 *data); 38 int (*rd16)(struct nvkm_object *, u64 addr, u16 *data); 39 int (*rd32)(struct nvkm_object *, u64 addr, u32 *data); 40 int (*wr08)(struct nvkm_object *, u64 addr, u8 data); 41 int (*wr16)(struct nvkm_object *, u64 addr, u16 data); 42 int (*wr32)(struct nvkm_object *, u64 addr, u32 data); 51 const struct nvkm_oclass *, void *data, u32 size, [all …]
|
/Linux-v5.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. 31 assert(SP_CTRL_BASE[ID] != (hrt_address)-1); in sp_ctrl_store() 41 assert(SP_CTRL_BASE[ID] != (hrt_address)-1); in sp_ctrl_load() 60 hrt_data data = sp_ctrl_load(ID, reg); in sp_ctrl_setbit() local 62 sp_ctrl_store(ID, reg, (data | (1UL << bit))); in sp_ctrl_setbit() 71 hrt_data data = sp_ctrl_load(ID, reg); in sp_ctrl_clearbit() local 73 sp_ctrl_store(ID, reg, (data & ~(1UL << bit))); in sp_ctrl_clearbit() 79 hrt_address addr, in sp_dmem_store() argument 80 const void *data, in sp_dmem_store() argument [all …]
|
/Linux-v5.10/arch/hexagon/include/asm/ |
D | io.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved. 30 extern void iounmap(const volatile void __iomem *addr); 33 extern void __raw_readsw(const void __iomem *addr, void *data, int wordlen); 34 extern void __raw_writesw(void __iomem *addr, const void *data, int wordlen); 36 extern void __raw_readsl(const void __iomem *addr, void *data, int wordlen); 37 extern void __raw_writesl(void __iomem *addr, const void *data, int wordlen); 46 * virt_to_phys - map virtual address to physical 55 * phys_to_virt - map physical address to virtual 79 * readb - read byte from memory mapped device [all …]
|
/Linux-v5.10/drivers/sh/intc/ |
D | access.c | 20 for (k = 0; k < d->nr_windows; k++) { in intc_phys_to_virt() 21 window = d->window + k; in intc_phys_to_virt() 23 if (address < window->phys) in intc_phys_to_virt() 26 if (address >= (window->phys + window->size)) in intc_phys_to_virt() 29 address -= window->phys; in intc_phys_to_virt() 30 address += (unsigned long)window->virt; in intc_phys_to_virt() 45 for (k = 0; k < d->nr_reg; k++) { in intc_get_reg() 46 if (d->reg[k] == address) in intc_get_reg() 61 value &= ~(((1 << width) - 1) << shift); in intc_set_field_from_handle() 70 unsigned int mask = ((1 << width) - 1) << shift; in intc_get_field_from_handle() [all …]
|