Lines Matching refs:rax

46  * Nanotime returned in %rax.
66 * Uses: %rsi, %rdi, %rdx, %rcx, %rax
69 NANOTIME /* %rax := nanosecs */ ; \
70 movq %rax,%rsi /* save timestamp */ ; \
72 subq (old##_TIMER)+TIMER_TSTAMP(%rcx),%rax /* compute elapsed */; \
73 TIMER_UPDATE(%rcx,%rax,old##_TIMER) /* update timer */ ; \
78 movq %rsi,%rax /* restore timestamp */ ; \
79 subq (old##_STATE)+TIMER_TSTAMP(%rdx),%rax /* compute elapsed */; \
80 TIMER_UPDATE(%rdx,%rax,old##_STATE) /* update timer */ ; \
87 * Uses: %rsi, %rdi, %rdx, %rcx, %rax
93 * Uses: %rsi, %rdi, %rdx, %rcx, %rax
99 * Uses: %rsi, %rdi, %rdx, %rcx, %rax
103 NANOTIME /* %rax := nanosecs */ ; \
104 movq %rax,%gs:CPU_INT_EVENT_TIME /* save in cpu data */ ; \
105 movq %rax,%rsi /* save timestamp */ ; \
108 subq TIMER_TSTAMP(%rcx),%rax /* compute elapsed */ ; \
109 TIMER_UPDATE(%rcx,%rax,0) /* update timer */ ; \
112 movq %rsi,%rax /* restore timestamp */ ; \
115 subq TIMER_TSTAMP(%rcx),%rax /* compute elapsed */ ; \
116 TIMER_UPDATE(%rcx,%rax,0) /* update timer */ ; \
117 leaq IDLE_STATE(%rdx),%rax /* get idle state */ ; \
118 cmpq %rax,%rcx /* compare current */ ; \
126 * Uses: %rsi, %rdi, %rdx, %rcx, %rax
130 NANOTIME /* %rax := nanosecs */ ; \
131 movq %rax,%gs:CPU_INT_EVENT_TIME /* save in cpu data */ ; \
132 movq %rax,%rsi /* save timestamp */ ; \
135 subq TIMER_TSTAMP(%rcx),%rax /* compute elapsed */ ; \
136 TIMER_UPDATE(%rcx,%rax,0) /* update timer */ ; \
139 movq %rsi,%rax /* restore timestamp */ ; \
141 subq TIMER_TSTAMP(%rcx),%rax /* compute elapsed */ ; \
142 TIMER_UPDATE(%rcx,%rax,0) /* update timer */ ; \