Lines Matching refs:addr
8 static __inline__ unsigned ld_le16(const volatile unsigned short *addr) in ld_le16() argument
12 __asm__ __volatile__ ("lhbrx %0,0,%1" : "=r" (val) : "r" (addr), "m" (*addr)); in ld_le16()
16 static __inline__ void st_le16(volatile unsigned short *addr, const unsigned val) in st_le16() argument
18 __asm__ __volatile__ ("sthbrx %1,0,%2" : "=m" (*addr) : "r" (val), "r" (addr)); in st_le16()
21 static __inline__ unsigned ld_le32(const volatile unsigned *addr) in ld_le32() argument
25 __asm__ __volatile__ ("lwbrx %0,0,%1" : "=r" (val) : "r" (addr), "m" (*addr)); in ld_le32()
29 static __inline__ void st_le32(volatile unsigned *addr, const unsigned val) in st_le32() argument
31 __asm__ __volatile__ ("stwbrx %1,0,%2" : "=m" (*addr) : "r" (val), "r" (addr)); in st_le32()
70 #define __arch__swab16p(addr) ld_le16(addr) argument
71 #define __arch__swab32p(addr) ld_le32(addr) argument
74 #define __arch__swab16s(addr) st_le16(addr,*addr) argument
75 #define __arch__swab32s(addr) st_le32(addr,*addr) argument