Lines Matching refs:pp
201 static void __init cps_gen_cache_routine(u32 **pp, struct uasm_label **pl, in cps_gen_cache_routine() argument
215 UASM_i_LA(pp, t0, (long)CKSEG0); in cps_gen_cache_routine()
219 uasm_i_addiu(pp, t1, t0, cache_size); in cps_gen_cache_routine()
221 UASM_i_LA(pp, t1, (long)(CKSEG0 + cache_size)); in cps_gen_cache_routine()
224 uasm_build_label(pl, *pp, lbl); in cps_gen_cache_routine()
228 uasm_i_cache(pp, op, i * cache->linesz, t0); in cps_gen_cache_routine()
231 uasm_i_addiu(pp, t0, t0, unroll_lines * cache->linesz); in cps_gen_cache_routine()
234 uasm_il_bne(pp, pr, t0, t1, lbl); in cps_gen_cache_routine()
235 uasm_i_nop(pp); in cps_gen_cache_routine()
238 static int __init cps_gen_flush_fsb(u32 **pp, struct uasm_label **pl, in cps_gen_flush_fsb() argument
285 uasm_i_mfc0(pp, t2, 25, (perf_counter * 2) + 0); /* PerfCtlN */ in cps_gen_flush_fsb()
286 uasm_i_mfc0(pp, t3, 25, (perf_counter * 2) + 1); /* PerfCntN */ in cps_gen_flush_fsb()
289 uasm_i_addiu(pp, t0, zero, (perf_event << 5) | 0xf); in cps_gen_flush_fsb()
290 uasm_i_mtc0(pp, t0, 25, (perf_counter * 2) + 0); /* PerfCtlN */ in cps_gen_flush_fsb()
291 uasm_i_ehb(pp); in cps_gen_flush_fsb()
292 uasm_i_mtc0(pp, zero, 25, (perf_counter * 2) + 1); /* PerfCntN */ in cps_gen_flush_fsb()
293 uasm_i_ehb(pp); in cps_gen_flush_fsb()
296 UASM_i_LA(pp, t0, (long)CKSEG0); in cps_gen_flush_fsb()
299 uasm_build_label(pl, *pp, lbl); in cps_gen_flush_fsb()
303 uasm_i_lw(pp, zero, i * line_size * line_stride, t0); in cps_gen_flush_fsb()
310 uasm_i_cache(pp, Hit_Invalidate_D, in cps_gen_flush_fsb()
312 uasm_i_cache(pp, Hit_Writeback_Inv_SD, in cps_gen_flush_fsb()
317 uasm_i_sync(pp, stype_memory); in cps_gen_flush_fsb()
318 uasm_i_ehb(pp); in cps_gen_flush_fsb()
321 uasm_i_mfc0(pp, t1, 25, (perf_counter * 2) + 1); /* PerfCntN */ in cps_gen_flush_fsb()
324 uasm_il_beqz(pp, pr, t1, lbl); in cps_gen_flush_fsb()
325 uasm_i_nop(pp); in cps_gen_flush_fsb()
328 uasm_i_mtc0(pp, t2, 25, (perf_counter * 2) + 0); /* PerfCtlN */ in cps_gen_flush_fsb()
329 uasm_i_ehb(pp); in cps_gen_flush_fsb()
330 uasm_i_mtc0(pp, t3, 25, (perf_counter * 2) + 1); /* PerfCntN */ in cps_gen_flush_fsb()
331 uasm_i_ehb(pp); in cps_gen_flush_fsb()
336 static void __init cps_gen_set_top_bit(u32 **pp, struct uasm_label **pl, in cps_gen_set_top_bit() argument
340 uasm_i_lui(pp, t0, uasm_rel_hi(0x80000000)); in cps_gen_set_top_bit()
341 uasm_build_label(pl, *pp, lbl); in cps_gen_set_top_bit()
342 uasm_i_ll(pp, t1, 0, r_addr); in cps_gen_set_top_bit()
343 uasm_i_or(pp, t1, t1, t0); in cps_gen_set_top_bit()
344 uasm_i_sc(pp, t1, 0, r_addr); in cps_gen_set_top_bit()
345 uasm_il_beqz(pp, pr, t1, lbl); in cps_gen_set_top_bit()
346 uasm_i_nop(pp); in cps_gen_set_top_bit()