/openbmc/linux/arch/alpha/kernel/ |
H A D | io.c | 17 ioread8(const void __iomem *addr) in ioread8() 26 unsigned int ioread16(const void __iomem *addr) in ioread16() 35 unsigned int ioread32(const void __iomem *addr) in ioread32() 44 u64 ioread64(const void __iomem *addr) in ioread64() 53 void iowrite8(u8 b, void __iomem *addr) in iowrite8() 59 void iowrite16(u16 b, void __iomem *addr) in iowrite16() 65 void iowrite32(u32 b, void __iomem *addr) in iowrite32() 71 void iowrite64(u64 b, void __iomem *addr) in iowrite64() 172 u8 readb(const volatile void __iomem *addr) in readb() 181 u16 readw(const volatile void __iomem *addr) in readw() [all …]
|
/openbmc/linux/arch/hexagon/include/asm/ |
H A D | bitops.h | 31 static inline int test_and_clear_bit(int nr, volatile void *addr) in test_and_clear_bit() 55 static inline int test_and_set_bit(int nr, volatile void *addr) in test_and_set_bit() 81 static inline int test_and_change_bit(int nr, volatile void *addr) in test_and_change_bit() 106 static inline void clear_bit(int nr, volatile void *addr) in clear_bit() 111 static inline void set_bit(int nr, volatile void *addr) in set_bit() 116 static inline void change_bit(int nr, volatile void *addr) in change_bit() 131 arch___clear_bit(unsigned long nr, volatile unsigned long *addr) in arch___clear_bit() 137 arch___set_bit(unsigned long nr, volatile unsigned long *addr) in arch___set_bit() 143 arch___change_bit(unsigned long nr, volatile unsigned long *addr) in arch___change_bit() 156 arch___test_and_set_bit(unsigned long nr, volatile unsigned long *addr) in arch___test_and_set_bit() [all …]
|
/openbmc/linux/arch/riscv/include/asm/ |
H A D | io.h | 97 #define readsb(addr, buffer, count) __readsb(addr, buffer, count) argument 98 #define readsw(addr, buffer, count) __readsw(addr, buffer, count) argument 99 #define readsl(addr, buffer, count) __readsl(addr, buffer, count) argument 104 #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) argument 105 #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) argument 111 #define writesb(addr, buffer, count) __writesb(addr, buffer, count) argument 112 #define writesw(addr, buffer, count) __writesw(addr, buffer, count) argument 113 #define writesl(addr, buffer, count) __writesl(addr, buffer, count) argument 124 #define readsq(addr, buffer, count) __readsq(addr, buffer, count) argument 130 #define writesq(addr, buffer, count) __writesq(addr, buffer, count) argument [all …]
|
H A D | bitops.h | 36 #define __test_and_op_bit_ord(op, mod, nr, addr, ord) \ argument 48 #define __op_bit_ord(op, mod, nr, addr, ord) \ argument 55 #define __test_and_op_bit(op, mod, nr, addr) \ argument 57 #define __op_bit(op, mod, nr, addr) \ argument 71 static inline int test_and_set_bit(int nr, volatile unsigned long *addr) in test_and_set_bit() 113 static inline void set_bit(int nr, volatile unsigned long *addr) in set_bit() 127 static inline void clear_bit(int nr, volatile unsigned long *addr) in clear_bit() 141 static inline void change_bit(int nr, volatile unsigned long *addr) in change_bit() 155 unsigned long nr, volatile unsigned long *addr) in test_and_set_bit_lock() 168 unsigned long nr, volatile unsigned long *addr) in clear_bit_unlock() [all …]
|
/openbmc/u-boot/arch/nios2/include/asm/ |
H A D | io.h | 56 #define readb(addr)\ argument 59 #define readw(addr)\ argument 62 #define readl(addr)\ argument 66 #define writeb(val,addr)\ argument 68 #define writew(val,addr)\ argument 70 #define writel(val,addr)\ argument 73 #define inb(addr) readb(addr) argument 74 #define inw(addr) readw(addr) argument 75 #define inl(addr) readl(addr) argument 139 #define clrbits(type, addr, clear) \ argument [all …]
|
/openbmc/linux/drivers/staging/media/atomisp/pci/ |
H A D | ia_css_device_access.c | 33 ia_css_device_load_uint8(const hrt_address addr) in ia_css_device_load_uint8() 39 ia_css_device_load_uint16(const hrt_address addr) in ia_css_device_load_uint16() 45 ia_css_device_load_uint32(const hrt_address addr) in ia_css_device_load_uint32() 51 ia_css_device_load_uint64(const hrt_address 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() 66 ia_css_device_store_uint16(const hrt_address addr, const uint16_t data) in ia_css_device_store_uint16() 72 ia_css_device_store_uint32(const hrt_address addr, const uint32_t data) in ia_css_device_store_uint32() 78 ia_css_device_store_uint64(const hrt_address addr, const uint64_t data) in ia_css_device_store_uint64() 87 ia_css_device_load(const hrt_address addr, void *data, const size_t size) in ia_css_device_load() 93 ia_css_device_store(const hrt_address addr, const void *data, const size_t size) in ia_css_device_store()
|
/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() 36 vmw_shmem_write(PCIDevice *d, hwaddr addr, void *buf, int len) in vmw_shmem_write() 55 vmw_shmem_set(PCIDevice *d, hwaddr addr, uint8_t val, int len) in vmw_shmem_set() 66 vmw_shmem_ld8(PCIDevice *d, hwaddr addr) in vmw_shmem_ld8() 75 vmw_shmem_st8(PCIDevice *d, hwaddr addr, uint8_t value) in vmw_shmem_st8() 82 vmw_shmem_ld16(PCIDevice *d, hwaddr addr) in vmw_shmem_ld16() 92 vmw_shmem_st16(PCIDevice *d, hwaddr addr, uint16_t value) in vmw_shmem_st16() 100 vmw_shmem_ld32(PCIDevice *d, hwaddr addr) in vmw_shmem_ld32() 110 vmw_shmem_st32(PCIDevice *d, hwaddr addr, uint32_t value) in vmw_shmem_st32() 118 vmw_shmem_ld64(PCIDevice *d, hwaddr addr) in vmw_shmem_ld64() [all …]
|
/openbmc/u-boot/drivers/bios_emulator/x86emu/ |
H A D | sys.c | 64 u8 X86API rdb(u32 addr) in rdb() 79 u16 X86API rdw(u32 addr) in rdw() 93 u32 X86API rdl(u32 addr) in rdl() 106 void X86API wrb(u32 addr, u8 val) in wrb() 118 void X86API wrw(u32 addr, u16 val) in wrw() 130 void X86API wrl(u32 addr, u32 val) in wrl() 142 static u8 X86API p_inb(X86EMU_pioAddr addr) in p_inb() 157 static u16 X86API p_inw(X86EMU_pioAddr addr) in p_inw() 172 static u32 X86API p_inl(X86EMU_pioAddr addr) in p_inl() 186 static void X86API p_outb(X86EMU_pioAddr addr, u8 val) in p_outb() [all …]
|
/openbmc/linux/include/asm-generic/bitops/ |
H A D | instrumented-non-atomic.h | 26 ___set_bit(unsigned long nr, volatile unsigned long *addr) in ___set_bit() 42 ___clear_bit(unsigned long nr, volatile unsigned long *addr) in ___clear_bit() 58 ___change_bit(unsigned long nr, volatile unsigned long *addr) in ___change_bit() 64 static __always_inline void __instrument_read_write_bitop(long nr, volatile unsigned long *addr) in __instrument_read_write_bitop() 97 ___test_and_set_bit(unsigned long nr, volatile unsigned long *addr) in ___test_and_set_bit() 112 ___test_and_clear_bit(unsigned long nr, volatile unsigned long *addr) in ___test_and_clear_bit() 127 ___test_and_change_bit(unsigned long nr, volatile unsigned long *addr) in ___test_and_change_bit() 139 _test_bit(unsigned long nr, const volatile unsigned long *addr) in _test_bit() 151 _test_bit_acquire(unsigned long nr, const volatile unsigned long *addr) in _test_bit_acquire()
|
H A D | le.h | 19 static inline int test_bit_le(int nr, const void *addr) in test_bit_le() 24 static inline void set_bit_le(int nr, void *addr) in set_bit_le() 29 static inline void clear_bit_le(int nr, void *addr) in clear_bit_le() 34 static inline void __set_bit_le(int nr, void *addr) in __set_bit_le() 39 static inline void __clear_bit_le(int nr, void *addr) in __clear_bit_le() 44 static inline int test_and_set_bit_le(int nr, void *addr) in test_and_set_bit_le() 49 static inline int test_and_clear_bit_le(int nr, void *addr) in test_and_clear_bit_le() 54 static inline int __test_and_set_bit_le(int nr, void *addr) in __test_and_set_bit_le() 59 static inline int __test_and_clear_bit_le(int nr, void *addr) in __test_and_clear_bit_le()
|
/openbmc/linux/arch/powerpc/boot/ |
H A D | io.h | 12 static inline int in_8(const volatile unsigned char *addr) in in_8() 21 static inline void out_8(volatile unsigned char *addr, int val) in out_8() 27 static inline unsigned in_le16(const volatile u16 *addr) in in_le16() 37 static inline unsigned in_be16(const volatile u16 *addr) in in_be16() 46 static inline void out_le16(volatile u16 *addr, int val) in out_le16() 52 static inline void out_be16(volatile u16 *addr, int val) in out_be16() 58 static inline unsigned in_le32(const volatile unsigned *addr) in in_le32() 67 static inline unsigned in_be32(const volatile unsigned *addr) in in_be32() 76 static inline void out_le32(volatile unsigned *addr, int val) in out_le32() 82 static inline void out_be32(volatile unsigned *addr, int val) in out_be32()
|
/openbmc/u-boot/arch/powerpc/include/asm/ |
H A D | bitops.h | 31 static __inline__ void set_bit(int nr, volatile void * addr) in set_bit() 48 static __inline__ void clear_bit(int nr, volatile void *addr) in clear_bit() 65 static __inline__ void change_bit(int nr, volatile void *addr) in change_bit() 234 #define find_first_zero_bit(addr, size) \ argument 237 static __inline__ unsigned long find_next_zero_bit(void * addr, in find_next_zero_bit() 285 static __inline__ int ext2_set_bit(int nr, void * addr) in ext2_set_bit() 298 static __inline__ int ext2_clear_bit(int nr, void * addr) in ext2_clear_bit() 324 #define ext2_find_first_zero_bit(addr, size) \ argument 364 #define minix_test_and_set_bit(nr,addr) ext2_set_bit(nr,addr) argument 365 #define minix_set_bit(nr,addr) ((void)ext2_set_bit(nr,addr)) argument [all …]
|
/openbmc/u-boot/arch/xtensa/include/asm/ |
H A D | io.h | 35 #define readb(addr) \ argument 37 #define readw(addr) \ argument 39 #define readl(addr) \ argument 89 # define in_8(addr) (*(u8 *)(addr)) argument 90 # define in_le16(addr) _swapw(*(u16 *)(addr)) argument 91 # define in_le32(addr) _swapl(*(u32 *)(addr)) argument 92 # define out_8(b, addr) *(u8 *)(addr) = (b) argument 96 # define in_8(addr) (*(u8 *)(addr)) argument 97 # define in_le16(addr) (*(u16 *)(addr)) argument 98 # define in_le32(addr) (*(u32 *)(addr)) argument [all …]
|
/openbmc/u-boot/include/linux/ |
H A D | io.h | 11 static inline u8 ioread8(const volatile void __iomem *addr) in ioread8() 16 static inline u16 ioread16(const volatile void __iomem *addr) in ioread16() 21 static inline u32 ioread32(const volatile void __iomem *addr) in ioread32() 28 static inline u64 ioread64(const volatile void __iomem *addr) in ioread64() 35 static inline void iowrite8(u8 value, volatile void __iomem *addr) in iowrite8() 40 static inline void iowrite16(u16 value, volatile void __iomem *addr) in iowrite16() 45 static inline void iowrite32(u32 value, volatile void __iomem *addr) in iowrite32() 52 static inline void iowrite64(u64 value, volatile void __iomem *addr) in iowrite64() 65 static inline void iounmap(void __iomem *addr) in iounmap()
|
/openbmc/linux/arch/m68k/include/asm/ |
H A D | io_no.h | 16 #define __raw_readb(addr) \ argument 18 #define __raw_readw(addr) \ argument 20 #define __raw_readl(addr) \ argument 23 #define __raw_writeb(b, addr) (void)((*(__force volatile u8 *) (addr)) = (b)) argument 24 #define __raw_writew(b, addr) (void)((*(__force volatile u16 *) (addr)) = (b)) argument 48 static int __cf_internalio(unsigned long addr) in __cf_internalio() 53 static int cf_internalio(const volatile void __iomem *addr) in cf_internalio() 66 static inline u16 readw(const volatile void __iomem *addr) in readw() 74 static inline u32 readl(const volatile void __iomem *addr) in readl() 82 static inline void writew(u16 value, volatile void __iomem *addr) in writew() [all …]
|
/openbmc/linux/drivers/media/pci/cx18/ |
H A D | cx18-io.h | 24 static inline u32 cx18_raw_readl(struct cx18 *cx, const void __iomem *addr) in cx18_raw_readl() 30 void cx18_raw_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel_noretry() 46 static inline u32 cx18_readl(struct cx18 *cx, const void __iomem *addr) in cx18_readl() 52 void cx18_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_writel_noretry() 68 void cx18_writel_expect(struct cx18 *cx, u32 val, void __iomem *addr, in cx18_writel_expect() 84 static inline u16 cx18_readw(struct cx18 *cx, const void __iomem *addr) in cx18_readw() 90 void cx18_writew_noretry(struct cx18 *cx, u16 val, void __iomem *addr) in cx18_writew_noretry() 105 static inline u8 cx18_readb(struct cx18 *cx, const void __iomem *addr) in cx18_readb() 111 void cx18_writeb_noretry(struct cx18 *cx, u8 val, void __iomem *addr) in cx18_writeb_noretry() 160 static inline void cx18_write_enc(struct cx18 *cx, u32 val, u32 addr) in cx18_write_enc() [all …]
|
/openbmc/u-boot/arch/arm/include/asm/ |
H A D | bitops.h | 36 static inline void __change_bit(int nr, volatile void *addr) in __change_bit() 44 static inline int __test_and_set_bit(int nr, volatile void *addr) in __test_and_set_bit() 54 static inline int test_and_set_bit(int nr, volatile void * addr) in test_and_set_bit() 66 static inline int __test_and_clear_bit(int nr, volatile void *addr) in __test_and_clear_bit() 76 static inline int test_and_clear_bit(int nr, volatile void * addr) in test_and_clear_bit() 90 static inline int __test_and_change_bit(int nr, volatile void *addr) in __test_and_change_bit() 103 static inline int test_bit(int nr, const void * addr) in test_bit() 161 #define find_first_zero_bit(addr, size) \ argument 171 #define minix_test_and_set_bit(nr,addr) test_and_set_bit(nr,addr) argument 172 #define minix_set_bit(nr,addr) set_bit(nr,addr) argument [all …]
|
/openbmc/u-boot/board/micronas/vct/ |
H A D | ebi_nor_flash.c | 10 static u32 ebi_read(u32 addr) in ebi_read() 20 static int ebi_write_u16(u32 addr, u32 data, int fetchIO) in ebi_write_u16() 44 static u16 ebi_read_u16(u32 addr) in ebi_read_u16() 49 static u8 ebi_read_u8(u32 addr) in ebi_read_u8() 82 void flash_write8(u8 value, void *addr) in flash_write8() 87 void flash_write16(u16 value, void *addr) in flash_write16() 92 u8 flash_read8(void *addr) in flash_read8() 97 u16 flash_read16(void *addr) in flash_read16() 102 u32 flash_read32(void *addr) in flash_read32()
|
/openbmc/linux/arch/alpha/include/asm/ |
H A D | io.h | 298 extern inline void ioport_unmap(void __iomem *addr) in ioport_unmap() 313 static inline void iounmap(volatile void __iomem *addr) in iounmap() 318 static inline int __is_ioaddr(unsigned long addr) in __is_ioaddr() 353 extern inline void iowrite8(u8 b, void __iomem *addr) in iowrite8() 359 extern inline void iowrite16(u16 b, void __iomem *addr) in iowrite16() 401 extern inline u64 ioread64(const void __iomem *addr) in ioread64() 410 extern inline void iowrite32(u32 b, void __iomem *addr) in iowrite32() 416 extern inline void iowrite64(u64 b, void __iomem *addr) in iowrite64() 459 extern inline u8 readb(const volatile void __iomem *addr) in readb() 468 extern inline u16 readw(const volatile void __iomem *addr) in readw() [all …]
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio-config-io.c | 16 uint32_t virtio_config_readb(VirtIODevice *vdev, uint32_t addr) in virtio_config_readb() 31 uint32_t virtio_config_readw(VirtIODevice *vdev, uint32_t addr) in virtio_config_readw() 46 uint32_t virtio_config_readl(VirtIODevice *vdev, uint32_t addr) in virtio_config_readl() 61 void virtio_config_writeb(VirtIODevice *vdev, uint32_t addr, uint32_t data) in virtio_config_writeb() 77 void virtio_config_writew(VirtIODevice *vdev, uint32_t addr, uint32_t data) in virtio_config_writew() 109 uint32_t virtio_config_modern_readb(VirtIODevice *vdev, uint32_t addr) in virtio_config_modern_readb() 124 uint32_t virtio_config_modern_readw(VirtIODevice *vdev, uint32_t addr) in virtio_config_modern_readw() 139 uint32_t virtio_config_modern_readl(VirtIODevice *vdev, uint32_t addr) in virtio_config_modern_readl() 155 uint32_t addr, uint32_t data) in virtio_config_modern_writeb() 172 uint32_t addr, uint32_t data) in virtio_config_modern_writew() [all …]
|
/openbmc/linux/include/linux/ |
H A D | iopoll.h | 134 #define readx_poll_timeout(op, addr, val, cond, sleep_us, timeout_us) \ argument 157 #define readb_poll_timeout(addr, val, cond, delay_us, timeout_us) \ argument 160 #define readb_poll_timeout_atomic(addr, val, cond, delay_us, timeout_us) \ argument 163 #define readw_poll_timeout(addr, val, cond, delay_us, timeout_us) \ argument 166 #define readw_poll_timeout_atomic(addr, val, cond, delay_us, timeout_us) \ argument 169 #define readl_poll_timeout(addr, val, cond, delay_us, timeout_us) \ argument 172 #define readl_poll_timeout_atomic(addr, val, cond, delay_us, timeout_us) \ argument 175 #define readq_poll_timeout(addr, val, cond, delay_us, timeout_us) \ argument 178 #define readq_poll_timeout_atomic(addr, val, cond, delay_us, timeout_us) \ argument 181 #define readb_relaxed_poll_timeout(addr, val, cond, delay_us, timeout_us) \ argument [all …]
|
/openbmc/linux/tools/include/linux/ |
H A D | bitops.h | 33 #define bitop(op, nr, addr) \ argument 36 #define __set_bit(nr, addr) bitop(___set_bit, nr, addr) argument 37 #define __clear_bit(nr, addr) bitop(___clear_bit, nr, addr) argument 38 #define __change_bit(nr, addr) bitop(___change_bit, nr, addr) argument 39 #define __test_and_set_bit(nr, addr) bitop(___test_and_set_bit, nr, addr) argument 40 #define __test_and_clear_bit(nr, addr) bitop(___test_and_clear_bit, nr, addr) argument 41 #define __test_and_change_bit(nr, addr) bitop(___test_and_change_bit, nr, addr) argument 42 #define test_bit(nr, addr) bitop(_test_bit, nr, addr) argument 52 #define for_each_set_bit(bit, addr, size) \ argument 57 #define for_each_clear_bit(bit, addr, size) \ argument [all …]
|
/openbmc/qemu/include/exec/ |
H A D | exec-all.h | 288 static inline void tlb_flush_page(CPUState *cpu, vaddr addr) in tlb_flush_page() 291 static inline void tlb_flush_page_all_cpus(CPUState *src, vaddr addr) in tlb_flush_page_all_cpus() 315 vaddr addr, in tlb_flush_page_by_mmuidx_all_cpus() 320 vaddr addr, in tlb_flush_page_by_mmuidx_all_cpus_synced() 333 vaddr addr, in tlb_flush_page_bits_by_mmuidx() 339 vaddr addr, in tlb_flush_page_bits_by_mmuidx_all_cpus() 349 static inline void tlb_flush_range_by_mmuidx(CPUState *cpu, vaddr addr, in tlb_flush_range_by_mmuidx() 355 vaddr addr, in tlb_flush_range_by_mmuidx_all_cpus() 488 tb_page_addr_t addr) in tb_set_page_addr0() 507 tb_page_addr_t addr) in tb_set_page_addr1() [all …]
|
/openbmc/qemu/tests/qtest/libqos/ |
H A D | generic-pcihost.c | 42 static uint8_t qpci_generic_pio_readb(QPCIBus *bus, uint32_t addr) in qpci_generic_pio_readb() 49 static void qpci_generic_pio_writeb(QPCIBus *bus, uint32_t addr, uint8_t val) in qpci_generic_pio_writeb() 56 static uint16_t qpci_generic_pio_readw(QPCIBus *bus, uint32_t addr) in qpci_generic_pio_readw() 63 static void qpci_generic_pio_writew(QPCIBus *bus, uint32_t addr, uint16_t val) in qpci_generic_pio_writew() 70 static uint32_t qpci_generic_pio_readl(QPCIBus *bus, uint32_t addr) in qpci_generic_pio_readl() 77 static void qpci_generic_pio_writel(QPCIBus *bus, uint32_t addr, uint32_t val) in qpci_generic_pio_writel() 84 static uint64_t qpci_generic_pio_readq(QPCIBus *bus, uint32_t addr) in qpci_generic_pio_readq() 91 static void qpci_generic_pio_writeq(QPCIBus *bus, uint32_t addr, uint64_t val) in qpci_generic_pio_writeq() 103 static void qpci_generic_memwrite(QPCIBus *bus, uint32_t addr, in qpci_generic_memwrite() 112 uint64_t addr = gbus->ecam_alloc_ptr + ((0 << 20) | (devfn << 12) | offset); in qpci_generic_config_readb() local [all …]
|
/openbmc/u-boot/arch/nds32/include/asm/ |
H A D | bitops.h | 37 static inline void __set_bit(int nr, void *addr) in __set_bit() 51 static inline void __clear_bit(int nr, void *addr) in __clear_bit() 68 static inline void __change_bit(int nr, void *addr) in __change_bit() 80 static inline int __test_and_set_bit(int nr, void *addr) in __test_and_set_bit() 94 static inline int __test_and_clear_bit(int nr, void *addr) in __test_and_clear_bit() 108 static inline int __test_and_change_bit(int nr, void *addr) in __test_and_change_bit() 126 static inline int test_bit(int nr, const void *addr) in test_bit() 186 #define minix_test_and_set_bit(nr, addr) test_and_set_bit(nr, addr) argument 187 #define minix_set_bit(nr, addr) set_bit(nr, addr) argument 188 #define minix_test_and_clear_bit(nr, addr) test_and_clear_bit(nr, addr) argument [all …]
|