/kernel/linux/linux-5.10/arch/riscv/include/asm/ |
D | mmio.h | 114 #define readb_relaxed(c) ({ u8 __v; __io_rbr(); __v = readb_cpu(c); __io_rar(); __v; }) 115 #define readw_relaxed(c) ({ u16 __v; __io_rbr(); __v = readw_cpu(c); __io_rar(); __v; }) 116 #define readl_relaxed(c) ({ u32 __v; __io_rbr(); __v = readl_cpu(c); __io_rar(); __v; }) 123 #define readq_relaxed(c) ({ u64 __v; __io_rbr(); __v = readq_cpu(c); __io_rar(); __v; }) 138 #define readb(c) ({ u8 __v; __io_br(); __v = readb_cpu(c); __io_ar(__v); __v; }) 139 #define readw(c) ({ u16 __v; __io_br(); __v = readw_cpu(c); __io_ar(__v); __v; }) 140 #define readl(c) ({ u32 __v; __io_br(); __v = readl_cpu(c); __io_ar(__v); __v; }) 147 #define readq(c) ({ u64 __v; __io_br(); __v = readq_cpu(c); __io_ar(__v); __v; })
|
D | csr.h | 159 unsigned long __v = (unsigned long)(val); \ 161 : "=r" (__v) : "rK" (__v) \ 163 __v; \ 168 register unsigned long __v; \ 170 : "=r" (__v) : \ 172 __v; \ 177 unsigned long __v = (unsigned long)(val); \ 179 : : "rK" (__v) \ 185 unsigned long __v = (unsigned long)(val); \ 187 : "=r" (__v) : "rK" (__v) \ [all …]
|
D | io.h | 55 #define inb(c) ({ u8 __v; __io_pbr(); __v = readb_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); … 56 #define inw(c) ({ u16 __v; __io_pbr(); __v = readw_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); … 57 #define inl(c) ({ u32 __v; __io_pbr(); __v = readl_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); … 64 #define inq(c) ({ u64 __v; __io_pbr(); __v = readq_cpu((void*)(c)); __io_par(__v); __v; })
|
/kernel/linux/linux-5.10/arch/m68k/include/asm/ |
D | raw_io.h | 20 ({ u8 __v = (*(__force volatile u8 *) (unsigned long)(addr)); __v; }) 22 ({ u16 __v = (*(__force volatile u16 *) (unsigned long)(addr)); __v; }) 24 ({ u32 __v = (*(__force volatile u32 *) (unsigned long)(addr)); __v; }) 26 ({ u16 __v = le16_to_cpu(*(__force volatile __le16 *) (unsigned long)(addr)); __v; }) 28 ({ u32 __v = le32_to_cpu(*(__force volatile __le32 *) (unsigned long)(addr)); __v; }) 76 ({ u16 __v = (*(__force volatile u16 *) (addr)); __v >>= 8; __v; }) 78 ({ u16 __v = (*(__force volatile u16 *) (addr)); __v; }) 80 ({ u16 __v = le16_to_cpu(*(__force volatile u16 *) (addr)); __v; }) 83 (void)({u8 __maybe_unused __w, __v = (b); u32 _addr = ((u32) (addr)); \ 84 __w = ((*(__force volatile u8 *) ((_addr | 0x10000) + (__v<<1)))); }) [all …]
|
D | io_no.h | 17 ({ u8 __v = (*(__force volatile u8 *) (addr)); __v; }) 19 ({ u16 __v = (*(__force volatile u16 *) (addr)); __v; }) 21 ({ u32 __v = (*(__force volatile u32 *) (addr)); __v; })
|
/kernel/linux/linux-5.10/arch/arm64/include/asm/ |
D | io.h | 135 #define readb(c) ({ u8 __v = readb_relaxed(c); __iormb(__v); __v; }) 136 #define readw(c) ({ u16 __v = readw_relaxed(c); __iormb(__v); __v; }) 137 #define readl(c) ({ u32 __v = readl_relaxed(c); __iormb(__v); __v; }) 138 #define readq(c) ({ u64 __v = readq_relaxed(c); __iormb(__v); __v; }) 186 #define ioread16be(p) ({ __u16 __v = be16_to_cpu((__force __be16)__raw_readw(p)); __iormb(__v); __… 187 #define ioread32be(p) ({ __u32 __v = be32_to_cpu((__force __be32)__raw_readl(p)); __iormb(__v); __… 188 #define ioread64be(p) ({ __u64 __v = be64_to_cpu((__force __be64)__raw_readq(p)); __iormb(__v); __…
|
/kernel/linux/linux-5.10/arch/nds32/include/asm/ |
D | io.h | 63 #define readb_relaxed(c) ({ u8 __v = __raw_readb(c); __v; }) 64 #define readw_relaxed(c) ({ u16 __v = le16_to_cpu((__force __le16)__raw_readw(c)); __v; }) 65 #define readl_relaxed(c) ({ u32 __v = le32_to_cpu((__force __le32)__raw_readl(c)); __v; }) 74 #define readb(c) ({ u8 __v = readb_relaxed(c); __iormb(); __v; }) 75 #define readw(c) ({ u16 __v = readw_relaxed(c); __iormb(); __v; }) 76 #define readl(c) ({ u32 __v = readl_relaxed(c); __iormb(); __v; })
|
/kernel/linux/linux-5.10/arch/csky/include/asm/ |
D | io.h | 22 #define readb(c) ({ u8 __v = readb_relaxed(c); rmb(); __v; }) 23 #define readw(c) ({ u16 __v = readw_relaxed(c); rmb(); __v; }) 24 #define readl(c) ({ u32 __v = readl_relaxed(c); rmb(); __v; })
|
/kernel/liteos_m/arch/risc-v/nuclei/gcc/nmsis/Core/Include/ |
D | core_feature_base.h | 287 register rv_csr_t __v = (unsigned long)(val); \ 289 : "=r"(__v) \ 290 : "rK"(__v) \ 292 __v; \ 305 register rv_csr_t __v; \ 307 : "=r"(__v) \ 310 __v; \ 323 register rv_csr_t __v = (rv_csr_t)(val); \ 326 : "rK"(__v) \ 342 register rv_csr_t __v = (rv_csr_t)(val); \ [all …]
|
/kernel/linux/linux-5.10/arch/arm/include/asm/ |
D | io.h | 258 #define inb(p) ({ __u8 __v = __raw_readb(__io(p)); __iormb(); __v; }) 259 #define inw(p) ({ __u16 __v = le16_to_cpu((__force __le16) \ 260 __raw_readw(__io(p))); __iormb(); __v; }) 261 #define inl(p) ({ __u32 __v = le32_to_cpu((__force __le32) \ 262 __raw_readl(__io(p))); __iormb(); __v; }) 301 #define readb(c) ({ u8 __v = readb_relaxed(c); __iormb(); __v; }) 302 #define readw(c) ({ u16 __v = readw_relaxed(c); __iormb(); __v; }) 303 #define readl(c) ({ u32 __v = readl_relaxed(c); __iormb(); __v; }) 407 #define ioread16be(p) ({ __u16 __v = be16_to_cpu((__force __be16)__raw_readw(p)); __iormb(); __v; … 408 #define ioread32be(p) ({ __u32 __v = be32_to_cpu((__force __be32)__raw_readl(p)); __iormb(); __v; …
|
/kernel/linux/linux-5.10/arch/arm/vfp/ |
D | vfpinstr.h | 68 u32 __v; \ 71 : "=r" (__v) : : "cc"); \ 72 __v; \ 85 u32 __v; \ 87 : "=r" (__v) : : "cc"); \ 88 __v; \
|
/kernel/linux/linux-5.10/arch/arc/include/asm/ |
D | io.h | 40 #define ioread16be(p) ({ u16 __v = be16_to_cpu((__force __be16)__raw_readw(p)); __iormb(); __v; }) 41 #define ioread32be(p) ({ u32 __v = be32_to_cpu((__force __be32)__raw_readl(p)); __iormb(); __v; }) 200 #define readb(c) ({ u8 __v = readb_relaxed(c); __iormb(); __v; }) 201 #define readw(c) ({ u16 __v = readw_relaxed(c); __iormb(); __v; }) 202 #define readl(c) ({ u32 __v = readl_relaxed(c); __iormb(); __v; })
|
/kernel/linux/linux-5.10/drivers/usb/host/ |
D | isp1362.h | 724 u16 __v; \ 727 __v = isp1362_read_data16(d); \ 728 RDBG("%s: Read %04x from %s[%02x]\n", __func__, __v, #r, \ 730 __v; \ 734 u32 __v; \ 737 __v = isp1362_read_data32(d); \ 738 RDBG("%s: Read %08x from %s[%02x]\n", __func__, __v, #r, \ 740 __v; \ 760 u16 __v; \ 761 __v = isp1362_read_reg16(d, r); \ [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | i915_utils.h | 161 unsigned long __v = (unsigned long)(ptr); \ 162 (typeof(ptr))(__v & -BIT(n)); \ 168 unsigned long __v = (unsigned long)(ptr); \ 169 *(bits) = __v & (BIT(n) - 1); \ 170 (typeof(ptr))(__v & -BIT(n)); \ 180 unsigned long __v = (unsigned long)(ptr); \ 181 (typeof(ptr))(__v - 1); \ 185 unsigned long __v = (unsigned long)(ptr); \ 186 (typeof(ptr))(__v + 1); \
|
/kernel/linux/linux-5.10/drivers/net/ethernet/smsc/ |
D | smc911x.h | 824 u32 __v; \ 826 SMC_GET_MII_ACC((lp), __v); \ 827 } while ( __v & MII_ACC_MII_BUSY_ ); \ 831 SMC_GET_MII_ACC( (lp), __v); \ 832 } while ( __v & MII_ACC_MII_BUSY_ ); \ 837 u32 __v; \ 839 SMC_GET_MII_ACC((lp), __v); \ 840 } while ( __v & MII_ACC_MII_BUSY_ ); \ 846 SMC_GET_MII_ACC((lp), __v); \ 847 } while ( __v & MII_ACC_MII_BUSY_ ); \ [all …]
|
D | smc91x.h | 80 unsigned int __v = v, __smc_r = r; \ 82 __SMC_outw(lp, __v, a, __smc_r); \ 84 SMC_outw_b(__v, a, __smc_r); \ 1010 unsigned int __v; \ 1011 __v = SMC_inw(ioaddr, ADDR0_REG(lp)); \ 1012 addr[0] = __v; addr[1] = __v >> 8; \ 1013 __v = SMC_inw(ioaddr, ADDR1_REG(lp)); \ 1014 addr[2] = __v; addr[3] = __v >> 8; \ 1015 __v = SMC_inw(ioaddr, ADDR2_REG(lp)); \ 1016 addr[4] = __v; addr[5] = __v >> 8; \
|
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
D | io.h | 39 #define readb_relaxed(c) ({ u8 __v = ioswabb(__raw_readb(c)); __v; }) 40 #define readw_relaxed(c) ({ u16 __v = ioswabw(__raw_readw(c)); __v; }) 41 #define readl_relaxed(c) ({ u32 __v = ioswabl(__raw_readl(c)); __v; }) 42 #define readq_relaxed(c) ({ u64 __v = ioswabq(__raw_readq(c)); __v; })
|
/kernel/linux/linux-5.10/include/linux/ |
D | regset.h | 54 typeof(v) __v = (v); \ 55 size_t __size = sizeof(__v); \ 58 memcpy(__s->p, &__v, __size); \ 60 *(typeof(__v + 0) *)__s->p = __v; \
|
D | compiler.h | 208 __unqual_scalar_typeof(({ expr; })) __v = ({ \ 213 __v; \
|
/kernel/linux/linux-5.10/lib/ |
D | iov_iter.c | 18 #define iterate_iovec(i, n, __v, __p, skip, STEP) { \ argument 22 __v.iov_len = min(n, __p->iov_len - skip); \ 23 if (likely(__v.iov_len)) { \ 24 __v.iov_base = __p->iov_base + skip; \ 26 __v.iov_len -= left; \ 27 skip += __v.iov_len; \ 28 n -= __v.iov_len; \ 34 __v.iov_len = min(n, __p->iov_len); \ 35 if (unlikely(!__v.iov_len)) \ 37 __v.iov_base = __p->iov_base; \ [all …]
|
D | bootconfig.c | 465 static int __init __xbc_parse_value(char **__v, char **__n) in __xbc_parse_value() argument 467 char *p, *v = *__v; in __xbc_parse_value() 509 *__v = v; in __xbc_parse_value() 514 static int __init xbc_parse_array(char **__v) in xbc_parse_array() argument 521 c = __xbc_parse_value(__v, &next); in xbc_parse_array() 525 node = xbc_add_sibling(*__v, XBC_VALUE); in xbc_parse_array() 528 *__v = next; in xbc_parse_array()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | unwind-libunwind-local.c | 103 type __v; \ 106 __v = *__p++; \ 108 __v; \ 164 u64 __v; \ 165 if (__dw_read_encoded_value(&ptr, end, &__v, enc)) { \ 168 __v; \
|
/kernel/linux/linux-5.10/drivers/net/ethernet/seeq/ |
D | ether3.c | 111 #define ether3_inb(r) ({ unsigned int __v = readb((r)); udelay(1); __v; }) 112 #define ether3_inw(r) ({ unsigned int __v = readw((r)); udelay(1); __v; })
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cadence/ |
D | macb.h | 725 u32 __v; \ 727 __v = gem_readl((__bp), __reg); \ 729 __v = macb_readl((__bp), __reg); \ 730 __v; \
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
D | kvm_ppc.h | 400 u64 __v; \ 402 case 4: __v = (val).wval; break; \ 403 case 8: __v = (val).dval; break; \ 406 __v; \
|