Lines Matching full:thread
13 .macro cpu_save_nonscratch thread
14 stptr.d s0, \thread, THREAD_REG23
15 stptr.d s1, \thread, THREAD_REG24
16 stptr.d s2, \thread, THREAD_REG25
17 stptr.d s3, \thread, THREAD_REG26
18 stptr.d s4, \thread, THREAD_REG27
19 stptr.d s5, \thread, THREAD_REG28
20 stptr.d s6, \thread, THREAD_REG29
21 stptr.d s7, \thread, THREAD_REG30
22 stptr.d s8, \thread, THREAD_REG31
23 stptr.d sp, \thread, THREAD_REG03
24 stptr.d fp, \thread, THREAD_REG22
27 .macro cpu_restore_nonscratch thread
28 ldptr.d s0, \thread, THREAD_REG23
29 ldptr.d s1, \thread, THREAD_REG24
30 ldptr.d s2, \thread, THREAD_REG25
31 ldptr.d s3, \thread, THREAD_REG26
32 ldptr.d s4, \thread, THREAD_REG27
33 ldptr.d s5, \thread, THREAD_REG28
34 ldptr.d s6, \thread, THREAD_REG29
35 ldptr.d s7, \thread, THREAD_REG30
36 ldptr.d s8, \thread, THREAD_REG31
37 ldptr.d ra, \thread, THREAD_REG01
38 ldptr.d sp, \thread, THREAD_REG03
39 ldptr.d fp, \thread, THREAD_REG22
42 .macro fpu_save_csr thread tmp
44 stptr.w \tmp, \thread, THREAD_FCSR
51 stptr.w \tmp, \thread, THREAD_FTOP
58 .macro fpu_restore_csr thread tmp0 tmp1
59 ldptr.w \tmp0, \thread, THREAD_FCSR
66 ldptr.w \tmp0, \thread, THREAD_FTOP
91 .macro fpu_save_cc thread tmp0 tmp1
108 stptr.d \tmp1, \thread, THREAD_FCC
111 .macro fpu_restore_cc thread tmp0 tmp1
112 ldptr.d \tmp0, \thread, THREAD_FCC
131 .macro fpu_save_double thread tmp
133 PTR_ADD \tmp, \tmp, \thread
168 .macro fpu_restore_double thread tmp
170 PTR_ADD \tmp, \tmp, \thread
205 .macro lsx_save_data thread tmp
207 PTR_ADD \tmp, \thread, \tmp
242 .macro lsx_restore_data thread tmp
244 PTR_ADD \tmp, \thread, \tmp
279 .macro lsx_save_all thread tmp0 tmp1
280 fpu_save_cc \thread, \tmp0, \tmp1
281 fpu_save_csr \thread, \tmp0
282 lsx_save_data \thread, \tmp0
285 .macro lsx_restore_all thread tmp0 tmp1
286 lsx_restore_data \thread, \tmp0
287 fpu_restore_cc \thread, \tmp0, \tmp1
288 fpu_restore_csr \thread, \tmp0, \tmp1
296 .macro lsx_save_all_upper thread base tmp
298 PTR_ADD \base, \thread, \tmp
338 .macro lsx_restore_all_upper thread base tmp
340 PTR_ADD \base, \thread, \tmp
415 .macro lasx_save_data thread tmp
417 PTR_ADD \tmp, \thread, \tmp
452 .macro lasx_restore_data thread tmp
454 PTR_ADD \tmp, \thread, \tmp
489 .macro lasx_save_all thread tmp0 tmp1
490 fpu_save_cc \thread, \tmp0, \tmp1
491 fpu_save_csr \thread, \tmp0
492 lasx_save_data \thread, \tmp0
495 .macro lasx_restore_all thread tmp0 tmp1
496 lasx_restore_data \thread, \tmp0
497 fpu_restore_cc \thread, \tmp0, \tmp1
498 fpu_restore_csr \thread, \tmp0, \tmp1
505 .macro lasx_save_all_upper thread base tmp
514 .macro lasx_restore_all_upper thread base tmp
516 PTR_ADD \base, \thread, \tmp