Lines Matching refs:rax
174 * Nanotime returned in %rax.
194 * Uses: %rsi, %rdi, %rdx, %rcx, %rax
197 NANOTIME /* %rax := nanosecs */ ; \
198 movq %rax,%rsi /* save timestamp */ ; \
200 subq (old##_TIMER)+TIMER_TSTAMP(%rcx),%rax /* compute elapsed */; \
201 TIMER_UPDATE(%rcx,%rax,old##_TIMER) /* update timer */ ; \
206 movq %rsi,%rax /* restore timestamp */ ; \
207 subq (old##_STATE)+TIMER_TSTAMP(%rdx),%rax /* compute elapsed */; \
208 TIMER_UPDATE(%rdx,%rax,old##_STATE) /* update timer */ ; \
215 * Uses: %rsi, %rdi, %rdx, %rcx, %rax
221 * Uses: %rsi, %rdi, %rdx, %rcx, %rax
227 * Uses: %rsi, %rdi, %rdx, %rcx, %rax
231 NANOTIME /* %rax := nanosecs */ ; \
232 movq %rax,%gs:CPU_INT_EVENT_TIME /* save in cpu data */ ; \
233 movq %rax,%rsi /* save timestamp */ ; \
236 subq TIMER_TSTAMP(%rcx),%rax /* compute elapsed */ ; \
237 TIMER_UPDATE(%rcx,%rax,0) /* update timer */ ; \
240 movq %rsi,%rax /* restore timestamp */ ; \
243 subq TIMER_TSTAMP(%rcx),%rax /* compute elapsed */ ; \
244 TIMER_UPDATE(%rcx,%rax,0) /* update timer */ ; \
245 leaq IDLE_STATE(%rdx),%rax /* get idle state */ ; \
246 cmpq %rax,%rcx /* compare current */ ; \
254 * Uses: %rsi, %rdi, %rdx, %rcx, %rax
258 NANOTIME /* %rax := nanosecs */ ; \
259 movq %rax,%gs:CPU_INT_EVENT_TIME /* save in cpu data */ ; \
260 movq %rax,%rsi /* save timestamp */ ; \
263 subq TIMER_TSTAMP(%rcx),%rax /* compute elapsed */ ; \
264 TIMER_UPDATE(%rcx,%rax,0) /* update timer */ ; \
267 movq %rsi,%rax /* restore timestamp */ ; \
269 subq TIMER_TSTAMP(%rcx),%rax /* compute elapsed */ ; \
270 TIMER_UPDATE(%rcx,%rax,0) /* update timer */ ; \