Lines Matching refs:cop0
320 struct mips_coproc *cop0; member
437 static inline __KVMT##type kvm_read_sw_gc0_##name(struct mips_coproc *cop0) \
439 return cop0->reg[(_reg)][(sel)]; \
441 static inline void kvm_write_sw_gc0_##name(struct mips_coproc *cop0, \
444 cop0->reg[(_reg)][(sel)] = val; \
449 static inline void kvm_set_sw_gc0_##name(struct mips_coproc *cop0, \
452 cop0->reg[(_reg)][(sel)] |= val; \
454 static inline void kvm_clear_sw_gc0_##name(struct mips_coproc *cop0, \
457 cop0->reg[(_reg)][(sel)] &= ~val; \
459 static inline void kvm_change_sw_gc0_##name(struct mips_coproc *cop0, \
464 cop0->reg[(_reg)][(sel)] &= ~_mask; \
465 cop0->reg[(_reg)][(sel)] |= val & _mask; \
470 static inline void kvm_set_sw_gc0_##name(struct mips_coproc *cop0, \
473 _kvm_atomic_set_c0_guest_reg(&cop0->reg[(_reg)][(sel)], val); \
475 static inline void kvm_clear_sw_gc0_##name(struct mips_coproc *cop0, \
478 _kvm_atomic_clear_c0_guest_reg(&cop0->reg[(_reg)][(sel)], val); \
480 static inline void kvm_change_sw_gc0_##name(struct mips_coproc *cop0, \
484 _kvm_atomic_change_c0_guest_reg(&cop0->reg[(_reg)][(sel)], mask, \
495 static inline __KVMT##type kvm_read_vz_gc0_##name(struct mips_coproc *cop0) \
499 static inline void kvm_write_vz_gc0_##name(struct mips_coproc *cop0, \
507 static inline void kvm_set_vz_gc0_##name(struct mips_coproc *cop0, \
512 static inline void kvm_clear_vz_gc0_##name(struct mips_coproc *cop0, \
517 static inline void kvm_change_vz_gc0_##name(struct mips_coproc *cop0, \
526 static inline void kvm_restore_gc0_##name(struct mips_coproc *cop0) \
528 write_gc0_##name(cop0->reg[(_reg)][(sel)]); \
530 static inline void kvm_save_gc0_##name(struct mips_coproc *cop0) \
532 cop0->reg[(_reg)][(sel)] = read_gc0_##name(); \
542 static inline __KVMT##type kvm_read_##name1(struct mips_coproc *cop0) \
544 return kvm_read_##name2(cop0); \
546 static inline void kvm_write_##name1(struct mips_coproc *cop0, \
549 kvm_write_##name2(cop0, val); \
554 static inline void kvm_set_##name1(struct mips_coproc *cop0, \
557 kvm_set_##name2(cop0, val); \
559 static inline void kvm_clear_##name1(struct mips_coproc *cop0, \
562 kvm_clear_##name2(cop0, val); \
564 static inline void kvm_change_##name1(struct mips_coproc *cop0, \
568 kvm_change_##name2(cop0, mask, val); \
701 kvm_read_c0_guest_config1(vcpu->cop0) & MIPS_CONF1_FP; in kvm_mips_guest_has_fpu()
713 kvm_read_c0_guest_config3(vcpu->cop0) & MIPS_CONF3_MSA; in kvm_mips_guest_has_msa()