Lines Matching refs:addr
10 extern __inline__ unsigned ld_le16(const volatile unsigned short *addr) in ld_le16() argument
14 __asm__ __volatile__ ("lhbrx %0,0,%1" : "=r" (val) : "r" (addr), "m" (*addr)); in ld_le16()
18 extern __inline__ void st_le16(volatile unsigned short *addr, const unsigned val) in st_le16() argument
20 __asm__ __volatile__ ("sthbrx %1,0,%2" : "=m" (*addr) : "r" (val), "r" (addr)); in st_le16()
23 extern __inline__ unsigned ld_le32(const volatile unsigned *addr) in ld_le32() argument
27 __asm__ __volatile__ ("lwbrx %0,0,%1" : "=r" (val) : "r" (addr), "m" (*addr)); in ld_le32()
31 extern __inline__ void st_le32(volatile unsigned *addr, const unsigned val) in st_le32() argument
33 __asm__ __volatile__ ("stwbrx %1,0,%2" : "=m" (*addr) : "r" (val), "r" (addr)); in st_le32()
36 extern __inline__ unsigned long long ld_le64(const volatile unsigned long long *addr) in ld_le64() argument
38 unsigned char *taddr = (unsigned char *) addr; in ld_le64()
41 __asm__ __volatile__ ("lwbrx %L0,0,%1" : "=r" (val) : "r" (taddr), "m" (*addr)); in ld_le64()
42 __asm__ __volatile__ ("lwbrx %0,0,%1" : "=r" (val) : "r" (taddr+4), "m" (*addr), "0" (val)); in ld_le64()
46 extern __inline__ void st_le64(volatile unsigned long long *addr, const unsigned long long val) in st_le64() argument
48 unsigned char *taddr = (unsigned char *) addr; in st_le64()
50 __asm__ __volatile__ ("stwbrx %L1,0,%2" : "=m" (*addr) : "r" (val), "r" (taddr)); in st_le64()
51 __asm__ __volatile__ ("stwbrx %1,0,%2" : "=m" (*addr) : "r" (val), "r" (taddr+4)); in st_le64()
76 #define __arch__swab16p(addr) ld_le16(addr) argument
77 #define __arch__swab32p(addr) ld_le32(addr) argument
78 #define __arch__swab64p(addr) ld_le64(addr) argument
81 #define __arch__swab16s(addr) st_le16(addr,*addr) argument
82 #define __arch__swab32s(addr) st_le32(addr,*addr) argument
83 #define __arch__swab64s(addr) st_le64(addr,*addr) argument