Lines Matching refs:val
12 unsigned val; in ld_le16() local
14 __asm__ __volatile__ ("lhbrx %0,0,%1" : "=r" (val) : "r" (addr), "m" (*addr)); in ld_le16()
15 return val; 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()
25 unsigned val; in ld_le32() local
27 __asm__ __volatile__ ("lwbrx %0,0,%1" : "=r" (val) : "r" (addr), "m" (*addr)); in ld_le32()
28 return val; 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()
39 unsigned long long val; in ld_le64() local
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()
43 return val; in ld_le64()
46 extern __inline__ void st_le64(volatile unsigned long long *addr, const unsigned long long val) in st_le64() argument
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()