Lines Matching full:asm
30 * This is file defines ASM primitives for the executive.
35 #include <asm/octeon/octeon-model.h>
38 #define CVMX_SYNC asm volatile ("sync" : : : "memory")
39 /* String version of SYNCW macro for using in inline asm constructs */
44 #define CVMX_SYNCIO asm volatile ("nop")
46 #define CVMX_SYNCIOBDMA asm volatile ("synciobdma" : : : "memory")
49 #define CVMX_SYNCIOALL asm volatile ("nop")
58 #define CVMX_SYNCW asm volatile ("syncw\n\tsyncw" : : : "memory")
73 #define CVMX_SYNCIO asm volatile ("nop")
75 #define CVMX_SYNCIOBDMA asm volatile ("sync" : : : "memory")
78 #define CVMX_SYNCIOALL asm volatile ("nop")
80 #define CVMX_SYNCW asm volatile ("sync" : : : "memory")
94 asm volatile ("pref 30, " CVMX_TMP_STR(offset) "(%[rbase])" : : \
102 asm volatile ("pref 29, " CVMX_TMP_STR(offset) "(%[rbase])" : : \
107 { CVMX_SYNC; asm volatile ("synci 0($0)" : : ); }
111 { CVMX_SYNC; asm volatile ("cache 0, 0($0)" : : ); }
115 { CVMX_SYNC; asm volatile ("cache 9, 0($0)" : : ); }
118 asm volatile ("cache " CVMX_TMP_STR(op) ", " CVMX_TMP_STR(offset) "(%[rbase])" \
130 asm ("pop %[rd],%[rs]" : [rd] "=d" (result) : [rs] "d" (input))
132 asm ("dpop %[rd],%[rs]" : [rd] "=d" (result) : [rs] "d" (input))
136 asm volatile ("rdhwr %[rt],$" CVMX_TMP_STR(regstr) : [rt] "=d" (result))
138 asm ("rdhwr %[rt],$" CVMX_TMP_STR(regstr) : [rt] "=d" (result))