/openbmc/linux/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 …]
|
/openbmc/linux/arch/parisc/lib/ |
H A D | iomap.c | 32 * Technically, this should be 'if (VMALLOC_START < addr < VMALLOC_END), 36 #define INDIRECT_ADDR(addr) (((unsigned long)(addr) & 1UL<<63) != 0) argument 37 #define ADDR_TO_REGION(addr) (((unsigned long)addr >> 60) & 7) argument 40 #define INDIRECT_ADDR(addr) (((unsigned long)(addr) & 1UL<<31) != 0) argument 41 #define ADDR_TO_REGION(addr) (((unsigned long)addr >> 28) & 7) argument 74 #define ADDR2PORT(addr) ((unsigned long __force)(addr) & 0xffffff) argument 76 static unsigned int ioport_read8(const void __iomem *addr) in ioport_read8() argument 78 return inb(ADDR2PORT(addr)); in ioport_read8() 81 static unsigned int ioport_read16(const void __iomem *addr) in ioport_read16() argument 83 return inw(ADDR2PORT(addr)); in ioport_read16() [all …]
|
/openbmc/u-boot/arch/sandbox/include/asm/ |
H A D | io.h | 42 #define readb(addr) ((void)addr, 0) argument 43 #define readw(addr) ((void)addr, 0) argument 44 #define readl(addr) ((void)addr, 0) argument 46 #define readq(addr) ((void)addr, 0) argument 48 #define writeb(v, addr) ((void)addr) argument 49 #define writew(v, addr) ((void)addr) argument 50 #define writel(v, addr) ((void)addr) argument 52 #define writeq(v, addr) ((void)addr) argument 83 #define clrbits(type, addr, clear) \ argument 84 out_##type((addr), in_##type(addr) & ~(clear)) [all …]
|
/openbmc/qemu/accel/tcg/ |
H A D | ldst_common.c.inc | 15 tcg_target_ulong helper_ldub_mmu(CPUArchState *env, uint64_t addr, 19 return do_ld1_mmu(env_cpu(env), addr, oi, retaddr, MMU_DATA_LOAD); 22 tcg_target_ulong helper_lduw_mmu(CPUArchState *env, uint64_t addr, 26 return do_ld2_mmu(env_cpu(env), addr, oi, retaddr, MMU_DATA_LOAD); 29 tcg_target_ulong helper_ldul_mmu(CPUArchState *env, uint64_t addr, 33 return do_ld4_mmu(env_cpu(env), addr, oi, retaddr, MMU_DATA_LOAD); 36 uint64_t helper_ldq_mmu(CPUArchState *env, uint64_t addr, 40 return do_ld8_mmu(env_cpu(env), addr, oi, retaddr, MMU_DATA_LOAD); 48 tcg_target_ulong helper_ldsb_mmu(CPUArchState *env, uint64_t addr, 51 return (int8_t)helper_ldub_mmu(env, addr, oi, retaddr); [all …]
|
/openbmc/qemu/tests/qtest/fuzz/ |
H A D | qtest_wrappers.c | 26 WRAP(uint8_t , qtest_inb(QTestState *s, uint16_t addr)) in WRAP() argument 27 WRAP(uint16_t , qtest_inw(QTestState *s, uint16_t addr)) in WRAP() 28 WRAP(uint32_t , qtest_inl(QTestState *s, uint16_t addr)) in WRAP() 29 WRAP(void , qtest_outb(QTestState *s, uint16_t addr, uint8_t value)) in WRAP() 30 WRAP(void , qtest_outw(QTestState *s, uint16_t addr, uint16_t value)) in WRAP() 31 WRAP(void , qtest_outl(QTestState *s, uint16_t addr, uint32_t value)) in WRAP() 32 WRAP(uint8_t , qtest_readb(QTestState *s, uint64_t addr)) in WRAP() 33 WRAP(uint16_t , qtest_readw(QTestState *s, uint64_t addr)) in WRAP() 34 WRAP(uint32_t , qtest_readl(QTestState *s, uint64_t addr)) in WRAP() 35 WRAP(uint64_t , qtest_readq(QTestState *s, uint64_t addr)) in WRAP() [all …]
|
/openbmc/linux/include/asm-generic/ |
H A D | io.h | 82 void log_write_mmio(u64 val, u8 width, volatile void __iomem *addr, 84 void log_post_write_mmio(u64 val, u8 width, volatile void __iomem *addr, 86 void log_read_mmio(u8 width, const volatile void __iomem *addr, 88 void log_post_read_mmio(u64 val, u8 width, const volatile void __iomem *addr, 93 static inline void log_write_mmio(u64 val, u8 width, volatile void __iomem *addr, in log_write_mmio() argument 95 static inline void log_post_write_mmio(u64 val, u8 width, volatile void __iomem *addr, in log_post_write_mmio() argument 97 static inline void log_read_mmio(u8 width, const volatile void __iomem *addr, in log_read_mmio() argument 99 static inline void log_post_read_mmio(u64 val, u8 width, const volatile void __iomem *addr, in log_post_read_mmio() argument 114 static inline u8 __raw_readb(const volatile void __iomem *addr) in __raw_readb() argument 116 return *(const volatile u8 __force *)addr; in __raw_readb() [all …]
|
/openbmc/linux/arch/alpha/include/asm/ |
H A D | jensen.h | 92 __EXTERN_INLINE void jensen_set_hae(unsigned long addr) in jensen_set_hae() argument 95 addr >>= 25; in jensen_set_hae() 96 if (addr != alpha_mv.hae_cache) in jensen_set_hae() 97 set_hae(addr); in jensen_set_hae() 115 __EXTERN_INLINE unsigned int jensen_local_inb(unsigned long addr) in jensen_local_inb() argument 117 return 0xff & *(vuip)((addr << 9) + EISA_VL82C106); in jensen_local_inb() 120 __EXTERN_INLINE void jensen_local_outb(u8 b, unsigned long addr) in jensen_local_outb() argument 122 *(vuip)((addr << 9) + EISA_VL82C106) = b; in jensen_local_outb() 126 __EXTERN_INLINE unsigned int jensen_bus_inb(unsigned long addr) in jensen_bus_inb() argument 131 result = *(volatile int *)((addr << 7) + EISA_IO + 0x00); in jensen_bus_inb() [all …]
|
/openbmc/u-boot/arch/x86/include/asm/ |
H A D | io.h | 60 #define readb(addr) (*(volatile u8 *)(uintptr_t)(addr)) argument 61 #define readw(addr) (*(volatile u16 *)(uintptr_t)(addr)) argument 62 #define readl(addr) (*(volatile u32 *)(uintptr_t)(addr)) argument 63 #define readq(addr) (*(volatile u64 *)(uintptr_t)(addr)) argument 69 #define writeb(b, addr) (*(volatile u8 *)(addr) = (b)) argument 70 #define writew(b, addr) (*(volatile u16 *)(addr) = (b)) argument 71 #define writel(b, addr) (*(volatile u32 *)(addr) = (b)) argument 72 #define writeq(b, addr) (*(volatile u64 *)(addr) = (b)) argument 102 #define clrbits(type, addr, clear) \ argument 103 out_##type((addr), in_##type(addr) & ~(clear)) [all …]
|
/openbmc/u-boot/arch/m68k/include/asm/ |
H A D | io.h | 18 #define __raw_readb(addr) (*(volatile u8 *)(addr)) argument 19 #define __raw_readw(addr) (*(volatile u16 *)(addr)) argument 20 #define __raw_readl(addr) (*(volatile u32 *)(addr)) argument 22 #define __raw_writeb(b,addr) ((*(volatile u8 *) (addr)) = (b)) argument 23 #define __raw_writew(w,addr) ((*(volatile u16 *) (addr)) = (w)) argument 24 #define __raw_writel(l,addr) ((*(volatile u32 *) (addr)) = (l)) argument 26 #define readb(addr) in_8((volatile u8 *)(addr)) argument 27 #define writeb(b,addr) out_8((volatile u8 *)(addr), (b)) argument 29 #define readw(addr) (*(volatile u16 *) (addr)) argument 30 #define readl(addr) (*(volatile u32 *) (addr)) argument [all …]
|
/openbmc/u-boot/arch/powerpc/include/asm/ |
H A D | io.h | 23 #define readb(addr) in_8((volatile u8 *)(addr)) argument 24 #define writeb(b,addr) out_8((volatile u8 *)(addr), (b)) argument 26 #define readw(addr) (*(volatile u16 *) (addr)) argument 27 #define readl(addr) (*(volatile u32 *) (addr)) argument 28 #define writew(b,addr) ((*(volatile u16 *) (addr)) = (b)) argument 29 #define writel(b,addr) ((*(volatile u32 *) (addr)) = (b)) argument 31 #define readw(addr) in_le16((volatile u16 *)(addr)) argument 32 #define readl(addr) in_le32((volatile u32 *)(addr)) argument 33 #define writew(b,addr) out_le16((volatile u16 *)(addr),(b)) argument 34 #define writel(b,addr) out_le32((volatile u32 *)(addr),(b)) argument [all …]
|
H A D | pci_io.h | 10 #define pci_read_le16(addr, dest) \ argument 12 "r" (addr), "m" (*addr)); 14 #define pci_write_le16(addr, val) \ argument 15 __asm__ __volatile__("sthbrx %1,0,%2" : "=m" (*addr) : \ 16 "r" (val), "r" (addr)); 19 #define pci_read_le32(addr, dest) \ argument 21 "r" (addr), "m" (*addr)); 23 #define pci_write_le32(addr, val) \ argument 24 __asm__ __volatile__("stwbrx %1,0,%2" : "=m" (*addr) : \ 25 "r" (val), "r" (addr)); [all …]
|
/openbmc/linux/lib/ |
H A D | iomap.c | 52 #define IO_COND(addr, is_pio, is_mmio) do { \ argument 53 unsigned long port = (unsigned long __force)addr; \ 69 #define mmio_read16be(addr) swab16(readw(addr)) argument 70 #define mmio_read32be(addr) swab32(readl(addr)) argument 71 #define mmio_read64be(addr) swab64(readq(addr)) argument 79 unsigned int ioread8(const void __iomem *addr) in ioread8() argument 81 IO_COND(addr, return inb(port), return readb(addr)); in ioread8() 85 unsigned int ioread16(const void __iomem *addr) in ioread16() argument 87 IO_COND(addr, return inw(port), return readw(addr)); in ioread16() 91 unsigned int ioread16be(const void __iomem *addr) in ioread16be() argument [all …]
|
/openbmc/linux/net/core/ |
H A D | dev_addr_lists_test.c | 68 u8 addr[ETH_ALEN]; in dev_addr_test_basic() local 72 memset(addr, 2, sizeof(addr)); in dev_addr_test_basic() 73 eth_hw_addr_set(netdev, addr); in dev_addr_test_basic() 74 KUNIT_EXPECT_MEMEQ(test, netdev->dev_addr, addr, sizeof(addr)); in dev_addr_test_basic() 76 memset(addr, 3, sizeof(addr)); in dev_addr_test_basic() 77 dev_addr_set(netdev, addr); in dev_addr_test_basic() 78 KUNIT_EXPECT_MEMEQ(test, netdev->dev_addr, addr, sizeof(addr)); in dev_addr_test_basic() 85 u8 addr[ETH_ALEN]; in dev_addr_test_sync_one() local 89 memset(addr, 1, sizeof(addr)); in dev_addr_test_sync_one() 90 eth_hw_addr_set(netdev, addr); in dev_addr_test_sync_one() [all …]
|
/openbmc/linux/arch/sh/kernel/ |
H A D | iomap.c | 11 unsigned int ioread8(const void __iomem *addr) in ioread8() argument 13 return readb(addr); in ioread8() 17 unsigned int ioread16(const void __iomem *addr) in ioread16() argument 19 return readw(addr); in ioread16() 23 unsigned int ioread16be(const void __iomem *addr) in ioread16be() argument 25 return be16_to_cpu(__raw_readw(addr)); in ioread16be() 29 unsigned int ioread32(const void __iomem *addr) in ioread32() argument 31 return readl(addr); in ioread32() 35 unsigned int ioread32be(const void __iomem *addr) in ioread32be() argument 37 return be32_to_cpu(__raw_readl(addr)); in ioread32be() [all …]
|
/openbmc/u-boot/board/gdsys/common/ |
H A D | dp501.c | 24 static void dp501_setbits(u8 addr, u8 reg, u8 mask) in dp501_setbits() argument 28 val = i2c_reg_read(addr, reg); in dp501_setbits() 30 i2c_reg_write(addr, reg, val); in dp501_setbits() 33 static void dp501_clrbits(u8 addr, u8 reg, u8 mask) in dp501_clrbits() argument 37 val = i2c_reg_read(addr, reg); in dp501_clrbits() 39 i2c_reg_write(addr, reg, val); in dp501_clrbits() 42 static int dp501_detect_cable_adapter(u8 addr) in dp501_detect_cable_adapter() argument 44 u8 val = i2c_reg_read(addr, 0x00); in dp501_detect_cable_adapter() 49 static void dp501_link_training(u8 addr) in dp501_link_training() argument 56 val = i2c_reg_read(addr, 0x51); in dp501_link_training() [all …]
|
/openbmc/u-boot/arch/nios2/include/asm/ |
H A D | io.h | 56 #define readb(addr)\ argument 58 asm volatile( "ldbio %0, 0(%1)" :"=r"(val) : "r" (addr)); val;}) 59 #define readw(addr)\ argument 61 asm volatile( "ldhio %0, 0(%1)" :"=r"(val) : "r" (addr)); val;}) 62 #define readl(addr)\ argument 64 asm volatile( "ldwio %0, 0(%1)" :"=r"(val) : "r" (addr)); val;}) 66 #define writeb(val,addr)\ argument 67 asm volatile ("stbio %0, 0(%1)" : : "r" (val), "r" (addr)) 68 #define writew(val,addr)\ argument 69 asm volatile ("sthio %0, 0(%1)" : : "r" (val), "r" (addr)) [all …]
|
/openbmc/linux/mm/kasan/ |
H A D | init.c | 92 static void __ref zero_pte_populate(pmd_t *pmd, unsigned long addr, in zero_pte_populate() argument 95 pte_t *pte = pte_offset_kernel(pmd, addr); in zero_pte_populate() 102 while (addr + PAGE_SIZE <= end) { in zero_pte_populate() 103 set_pte_at(&init_mm, addr, pte, zero_pte); in zero_pte_populate() 104 addr += PAGE_SIZE; in zero_pte_populate() 105 pte = pte_offset_kernel(pmd, addr); in zero_pte_populate() 109 static int __ref zero_pmd_populate(pud_t *pud, unsigned long addr, in zero_pmd_populate() argument 112 pmd_t *pmd = pmd_offset(pud, addr); in zero_pmd_populate() 116 next = pmd_addr_end(addr, end); in zero_pmd_populate() 118 if (IS_ALIGNED(addr, PMD_SIZE) && end - addr >= PMD_SIZE) { in zero_pmd_populate() [all …]
|
/openbmc/qemu/hw/pci-host/ |
H A D | trace-events | 8 …s, uint8_t devfn, uint64_t offset, uint64_t data) "%s bus:0x%x devfn:0x%x addr 0x%" PRIx64 " data … 15 bonito_spciconf_small_access(uint64_t addr, unsigned size) "PCI config address is smaller then 32-b… 21 gt64120_read(uint64_t addr, uint64_t value) "gt64120 read 0x%03"PRIx64" value:0x%08" PRIx64 22 gt64120_write(uint64_t addr, uint64_t value) "gt64120 write 0x%03"PRIx64" value:0x%08" PRIx64 30 mv64361_reg_read(uint64_t addr, uint32_t val) "0x%"PRIx64" -> 0x%x" 31 mv64361_reg_write(uint64_t addr, uint64_t val) "0x%"PRIx64" <- 0x%"PRIx64 36 sabre_config_write(uint64_t addr, uint64_t val) "addr 0x%"PRIx64" val 0x%"PRIx64 37 sabre_config_read(uint64_t addr, uint64_t val) "addr 0x%"PRIx64" val 0x%"PRIx64 38 sabre_pci_config_write(uint64_t addr, uint64_t val) "addr 0x%"PRIx64" val 0x%"PRIx64 39 sabre_pci_config_read(uint64_t addr, uint64_t val) "addr 0x%"PRIx64" val 0x%"PRIx64 [all …]
|
/openbmc/u-boot/arch/microblaze/include/asm/ |
H A D | bitops.h | 36 static inline void set_bit(int nr, volatile void *addr) in set_bit() argument 38 int * a = (int *) addr; in set_bit() 49 static inline void __set_bit(int nr, volatile void *addr) in __set_bit() argument 51 int * a = (int *) addr; in __set_bit() 66 static inline void clear_bit(int nr, volatile void *addr) in clear_bit() argument 68 int * a = (int *) addr; in clear_bit() 79 #define __clear_bit(nr, addr) clear_bit(nr, addr) argument 82 static inline void change_bit(int nr, volatile void *addr) in change_bit() argument 86 unsigned long *ADDR = (unsigned long *) addr; in change_bit() local 88 ADDR += nr >> 5; in change_bit() [all …]
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | io.h | 98 static inline u##size name(const volatile u##size __iomem *addr) \ 102 : "=r" (ret) : "r" (addr) : "memory"); \ 107 static inline void name(volatile u##size __iomem *addr, u##size val) \ 110 : : "r" (addr), "r" (val) : "memory"); \ 115 static inline u##size name(const volatile u##size __iomem *addr) \ 119 : "=r" (ret) : "b" (addr) : "memory"); \ 124 static inline void name(volatile u##size __iomem *addr, u##size val) \ 127 : : "b" (addr), "r" (val) : "memory"); \ 132 static inline u##size name(const volatile u##size __iomem *addr) \ 136 : "=r" (ret) : "Z" (*addr) : "memory"); \ [all …]
|
H A D | io-defs.h | 5 DEF_PCI_AC_RET(readb, u8, (const PCI_IO_ADDR addr), (addr), mem, addr) 6 DEF_PCI_AC_RET(readw, u16, (const PCI_IO_ADDR addr), (addr), mem, addr) 7 DEF_PCI_AC_RET(readl, u32, (const PCI_IO_ADDR addr), (addr), mem, addr) 8 DEF_PCI_AC_RET(readw_be, u16, (const PCI_IO_ADDR addr), (addr), mem, addr) 9 DEF_PCI_AC_RET(readl_be, u32, (const PCI_IO_ADDR addr), (addr), mem, addr) 10 DEF_PCI_AC_NORET(writeb, (u8 val, PCI_IO_ADDR addr), (val, addr), mem, addr) 11 DEF_PCI_AC_NORET(writew, (u16 val, PCI_IO_ADDR addr), (val, addr), mem, addr) 12 DEF_PCI_AC_NORET(writel, (u32 val, PCI_IO_ADDR addr), (val, addr), mem, addr) 13 DEF_PCI_AC_NORET(writew_be, (u16 val, PCI_IO_ADDR addr), (val, addr), mem, addr) 14 DEF_PCI_AC_NORET(writel_be, (u32 val, PCI_IO_ADDR addr), (val, addr), mem, addr) [all …]
|
/openbmc/qemu/hw/net/ |
H A D | vmware_utils.h | 29 vmw_shmem_read(PCIDevice *d, hwaddr addr, void *buf, int len) in vmw_shmem_read() argument 31 VMW_SHPRN("SHMEM r: %" PRIx64 ", len: %d to %p", addr, len, buf); in vmw_shmem_read() 32 pci_dma_read(d, addr, buf, len); in vmw_shmem_read() 36 vmw_shmem_write(PCIDevice *d, hwaddr addr, void *buf, int len) in vmw_shmem_write() argument 38 VMW_SHPRN("SHMEM w: %" PRIx64 ", len: %d to %p", addr, len, buf); in vmw_shmem_write() 39 pci_dma_write(d, addr, buf, len); in vmw_shmem_write() 43 vmw_shmem_rw(PCIDevice *d, hwaddr addr, void *buf, int len, int is_write) in vmw_shmem_rw() argument 46 addr, len, buf, is_write); in vmw_shmem_rw() 49 pci_dma_write(d, addr, buf, len); in vmw_shmem_rw() 51 pci_dma_read(d, addr, buf, len); in vmw_shmem_rw() [all …]
|
/openbmc/qemu/hw/rtc/ |
H A D | trace-events | 4 allwinner_rtc_read(uint64_t addr, uint64_t value) "addr 0x%" PRIx64 " value 0x%" PRIx64 5 allwinner_rtc_write(uint64_t addr, uint64_t value) "addr 0x%" PRIx64 " value 0x%" PRIx64 8 sun4v_rtc_read(uint64_t addr, uint64_t value) "read: addr 0x%" PRIx64 " value 0x%" PRIx64 9 sun4v_rtc_write(uint64_t addr, uint64_t value) "write: addr 0x%" PRIx64 " value 0x%" PRIx64 16 pl031_read(uint32_t addr, uint32_t value) "addr 0x%08x value 0x%08x" 17 pl031_write(uint32_t addr, uint32_t value) "addr 0x%08x value 0x%08x" 22 aspeed_rtc_read(uint64_t addr, uint64_t value) "addr 0x%02" PRIx64 " value 0x%08" PRIx64 23 aspeed_rtc_write(uint64_t addr, uint64_t value) "addr 0x%02" PRIx64 " value 0x%08" PRIx64 26 ds1338_recv(uint32_t addr, uint8_t value) "[0x%" PRIx32 "] -> 0x%02" PRIx8 27 ds1338_send(uint32_t addr, uint8_t value) "[0x%" PRIx32 "] <- 0x%02" PRIx8 [all …]
|
/openbmc/linux/include/trace/events/ |
H A D | thp.h | 13 TP_PROTO(unsigned long addr, unsigned long pte), 14 TP_ARGS(addr, pte), 16 __field(unsigned long, addr) 21 __entry->addr = addr; 25 TP_printk("Set page table entry with 0x%lx with 0x%lx", __entry->addr, __entry->pte) 29 TP_PROTO(unsigned long addr, unsigned long pmd), 30 TP_ARGS(addr, pmd) 34 TP_PROTO(unsigned long addr, unsigned long pud), 35 TP_ARGS(addr, pud) 40 TP_PROTO(unsigned long addr, unsigned long pte, unsigned long clr, unsigned long set), [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtw88/ |
H A D | hci.h | 25 u8 (*read8)(struct rtw_dev *rtwdev, u32 addr); 26 u16 (*read16)(struct rtw_dev *rtwdev, u32 addr); 27 u32 (*read32)(struct rtw_dev *rtwdev, u32 addr); 28 void (*write8)(struct rtw_dev *rtwdev, u32 addr, u8 val); 29 void (*write16)(struct rtw_dev *rtwdev, u32 addr, u16 val); 30 void (*write32)(struct rtw_dev *rtwdev, u32 addr, u32 val); 87 static inline u8 rtw_read8(struct rtw_dev *rtwdev, u32 addr) in rtw_read8() argument 89 return rtwdev->hci.ops->read8(rtwdev, addr); in rtw_read8() 92 static inline u16 rtw_read16(struct rtw_dev *rtwdev, u32 addr) in rtw_read16() argument 94 return rtwdev->hci.ops->read16(rtwdev, addr); in rtw_read16() [all …]
|