Home
last modified time | relevance | path

Searched refs:__v (Results 1 – 25 of 46) sorted by relevance

12

/linux-6.12.1/arch/riscv/include/asm/
Dmmio.h115 #define readb_relaxed(c) ({ u8 __v; __io_rbr(); __v = readb_cpu(c); __io_rar(); __v; })
116 #define readw_relaxed(c) ({ u16 __v; __io_rbr(); __v = readw_cpu(c); __io_rar(); __v; })
117 #define readl_relaxed(c) ({ u32 __v; __io_rbr(); __v = readl_cpu(c); __io_rar(); __v; })
124 #define readq_relaxed(c) ({ u64 __v; __io_rbr(); __v = readq_cpu(c); __io_rar(); __v; })
139 #define readb(c) ({ u8 __v; __io_br(); __v = readb_cpu(c); __io_ar(__v); __v; })
140 #define readw(c) ({ u16 __v; __io_br(); __v = readw_cpu(c); __io_ar(__v); __v; })
141 #define readl(c) ({ u32 __v; __io_br(); __v = readl_cpu(c); __io_ar(__v); __v; })
148 #define readq(c) ({ u64 __v; __io_br(); __v = readq_cpu(c); __io_ar(__v); __v; })
Dcsr.h488 unsigned long __v = (unsigned long)(val); \
490 : "=r" (__v) : "rK" (__v) \
492 __v; \
497 register unsigned long __v; \
499 : "=r" (__v) : \
501 __v; \
506 unsigned long __v = (unsigned long)(val); \
508 : : "rK" (__v) \
514 unsigned long __v = (unsigned long)(val); \
516 : "=r" (__v) : "rK" (__v) \
[all …]
/linux-6.12.1/arch/m68k/include/asm/
Draw_io.h20 ({ u8 __v = (*(__force const volatile u8 *) (unsigned long)(addr)); __v; })
22 ({ u16 __v = (*(__force const volatile u16 *) (unsigned long)(addr)); __v; })
24 ({ u32 __v = (*(__force const volatile u32 *) (unsigned long)(addr)); __v; })
26 ({ u16 __v = le16_to_cpu(*(__force const volatile __le16 *) (unsigned long)(addr)); __v; })
28 ({ u32 __v = le32_to_cpu(*(__force const volatile __le32 *) (unsigned long)(addr)); __v; })
76 ({ u16 __v = (*(__force const volatile u16 *) (addr)); __v >>= 8; __v; })
78 ({ u16 __v = (*(__force const volatile u16 *) (addr)); __v; })
80 ({ u16 __v = le16_to_cpu(*(__force const 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 …]
Dio_no.h17 ({ u8 __v = (*(__force volatile u8 *) (addr)); __v; })
19 ({ u16 __v = (*(__force volatile u16 *) (addr)); __v; })
21 ({ u32 __v = (*(__force volatile u32 *) (addr)); __v; })
/linux-6.12.1/arch/riscv/kvm/
Daia_imsic.c101 #define imsic_vs_csr_swap(__c, __v) \ argument
105 __r = csr_swap(CSR_VSIREG, __v); \
109 #define imsic_swap_switchcase(__ireg, __v) \ argument
111 return imsic_vs_csr_swap(__ireg, __v);
112 #define imsic_swap_switchcase_2(__ireg, __v) \ argument
113 imsic_swap_switchcase(__ireg + 0, __v) \
114 imsic_swap_switchcase(__ireg + 1, __v)
115 #define imsic_swap_switchcase_4(__ireg, __v) \ argument
116 imsic_swap_switchcase_2(__ireg + 0, __v) \
117 imsic_swap_switchcase_2(__ireg + 2, __v)
[all …]
/linux-6.12.1/tools/arch/riscv/include/asm/
Dcsr.h481 unsigned long __v = (unsigned long)(val); \
483 : "=r" (__v) : "rK" (__v) \
485 __v; \
490 register unsigned long __v; \
492 : "=r" (__v) : \
494 __v; \
499 unsigned long __v = (unsigned long)(val); \
501 : : "rK" (__v) \
507 unsigned long __v = (unsigned long)(val); \
509 : "=r" (__v) : "rK" (__v) \
[all …]
/linux-6.12.1/arch/arm/include/asm/
Dio.h241 #define inb(p) ({ __u8 __v = __raw_readb(__io(p)); __iormb(); __v; })
242 #define inw(p) ({ __u16 __v = le16_to_cpu((__force __le16) \
243 __raw_readw(__io(p))); __iormb(); __v; })
244 #define inl(p) ({ __u32 __v = le32_to_cpu((__force __le32) \
245 __raw_readl(__io(p))); __iormb(); __v; })
284 #define readb(c) ({ u8 __v = readb_relaxed(c); __iormb(); __v; })
285 #define readw(c) ({ u16 __v = readw_relaxed(c); __iormb(); __v; })
286 #define readl(c) ({ u32 __v = readl_relaxed(c); __iormb(); __v; })
390 #define ioread16be(p) ({ __u16 __v = be16_to_cpu((__force __be16)__raw_readw(p)); __iormb(); __v; …
391 #define ioread32be(p) ({ __u32 __v = be32_to_cpu((__force __be32)__raw_readl(p)); __iormb(); __v; …
/linux-6.12.1/arch/csky/include/asm/
Dio.h20 #define readb(c) ({ u8 __v = readb_relaxed(c); rmb(); __v; })
21 #define readw(c) ({ u16 __v = readw_relaxed(c); rmb(); __v; })
22 #define readl(c) ({ u32 __v = readl_relaxed(c); rmb(); __v; })
/linux-6.12.1/drivers/usb/host/
Disp1362.h723 u16 __v; \
726 __v = isp1362_read_data16(d); \
727 RDBG("%s: Read %04x from %s[%02x]\n", __func__, __v, #r, \
729 __v; \
733 u32 __v; \
736 __v = isp1362_read_data32(d); \
737 RDBG("%s: Read %08x from %s[%02x]\n", __func__, __v, #r, \
739 __v; \
759 u16 __v; \
760 __v = isp1362_read_reg16(d, r); \
[all …]
/linux-6.12.1/arch/arc/include/asm/
Dio.h39 #define ioread16be(p) ({ u16 __v = be16_to_cpu((__force __be16)__raw_readw(p)); __iormb(); __v; })
40 #define ioread32be(p) ({ u32 __v = be32_to_cpu((__force __be32)__raw_readl(p)); __iormb(); __v; })
199 #define readb(c) ({ u8 __v = readb_relaxed(c); __iormb(); __v; })
200 #define readw(c) ({ u16 __v = readw_relaxed(c); __iormb(); __v; })
201 #define readl(c) ({ u32 __v = readl_relaxed(c); __iormb(); __v; })
/linux-6.12.1/arch/arm/vfp/
Dvfpinstr.h68 u32 __v; \
71 : "=r" (__v) : : "cc"); \
72 __v; \
86 u32 __v; \
89 : "=r" (__v) : : "cc"); \
90 __v; \
/linux-6.12.1/arch/arm64/include/asm/
Dio.h290 #define ioread16be(p) ({ __u16 __v = be16_to_cpu((__force __be16)__raw_readw(p)); __iormb(__v); __…
291 #define ioread32be(p) ({ __u32 __v = be32_to_cpu((__force __be32)__raw_readl(p)); __iormb(__v); __…
292 #define ioread64be(p) ({ __u64 __v = be64_to_cpu((__force __be64)__raw_readq(p)); __iormb(__v); __…
/linux-6.12.1/drivers/gpu/drm/i915/
Di915_utils.h97 unsigned long __v = (unsigned long)(ptr); \
98 (typeof(ptr))(__v & -BIT(n)); \
104 unsigned long __v = (unsigned long)(ptr); \
105 *(bits) = __v & (BIT(n) - 1); \
106 (typeof(ptr))(__v & -BIT(n)); \
116 unsigned long __v = (unsigned long)(ptr); \
117 (typeof(ptr))(__v - 1); \
121 unsigned long __v = (unsigned long)(ptr); \
122 (typeof(ptr))(__v + 1); \
/linux-6.12.1/arch/loongarch/include/asm/
Dkvm_csr.h16 register unsigned long __v; \
19 : [val] "=r" (__v) \
22 __v; \
27 register unsigned long __v = v; \
30 : [val] "+r" (__v) \
33 __v; \
38 register unsigned long __v = v; \
41 : [val] "+r" (__v) \
44 __v; \
/linux-6.12.1/tools/testing/selftests/kvm/include/aarch64/
Dprocessor.h198 #define readl(c) ({ u32 __v = readl_relaxed(c); __iormb(__v); __v; })
200 #define readq(c) ({ u64 __v = readq_relaxed(c); __iormb(__v); __v; })
/linux-6.12.1/include/linux/
Dregset.h66 typeof(v) __v = (v); \
67 size_t __size = sizeof(__v); \
70 memcpy(__s->p, &__v, __size); \
72 *(typeof(__v + 0) *)__s->p = __v; \
Dcompiler.h212 __auto_type __v = (expr); \
214 __v; \
/linux-6.12.1/arch/sh/include/asm/
Dio.h39 #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; })
/linux-6.12.1/drivers/net/ethernet/smsc/
Dsmc91x.h80 unsigned int __v = v, __smc_r = r; \
82 __SMC_outw(lp, __v, a, __smc_r); \
84 SMC_outw_b(__v, a, __smc_r); \
980 unsigned int __v; \
981 __v = SMC_inw(ioaddr, ADDR0_REG(lp)); \
982 addr[0] = __v; addr[1] = __v >> 8; \
983 __v = SMC_inw(ioaddr, ADDR1_REG(lp)); \
984 addr[2] = __v; addr[3] = __v >> 8; \
985 __v = SMC_inw(ioaddr, ADDR2_REG(lp)); \
986 addr[4] = __v; addr[5] = __v >> 8; \
/linux-6.12.1/lib/
Dbootconfig.c561 static int __init __xbc_parse_value(char **__v, char **__n) in __xbc_parse_value() argument
563 char *p, *v = *__v; in __xbc_parse_value()
605 *__v = v; in __xbc_parse_value()
610 static int __init xbc_parse_array(char **__v) in xbc_parse_array() argument
620 c = __xbc_parse_value(__v, &next); in xbc_parse_array()
624 node = xbc_add_child(*__v, XBC_VALUE); in xbc_parse_array()
627 *__v = next; in xbc_parse_array()
/linux-6.12.1/tools/perf/util/
Dunwind-libunwind-local.c104 type __v; \
107 __v = *__p++; \
109 __v; \
165 u64 __v; \
166 if (__dw_read_encoded_value(&ptr, end, &__v, enc)) { \
169 __v; \
/linux-6.12.1/tools/lib/perf/
Dmmap.c419 register unsigned long __v; \
421 : "=r" (__v) \
423 __v; \
/linux-6.12.1/drivers/net/ethernet/seeq/
Dether3.c111 #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; })
/linux-6.12.1/drivers/net/ethernet/cadence/
Dmacb.h807 u32 __v; \
809 __v = gem_readl((__bp), __reg); \
811 __v = macb_readl((__bp), __reg); \
812 __v; \
/linux-6.12.1/arch/powerpc/include/asm/
Dkvm_ppc.h420 u64 __v; \
422 case 4: __v = (val).wval; break; \
423 case 8: __v = (val).dval; break; \
426 __v; \

12