Lines Matching defs:gisc
306 static inline void gisa_set_ipm_gisc(struct kvm_s390_gisa *gisa, u32 gisc)
308 set_bit_inv(IPM_BIT_OFFSET + gisc, (unsigned long *) gisa);
316 static inline int gisa_tac_ipm_gisc(struct kvm_s390_gisa *gisa, u32 gisc)
318 return test_and_clear_bit_inv(IPM_BIT_OFFSET + gisc, (unsigned long *) gisa);
3247 * @gisc: the guest interruption sub class to register
3260 int kvm_s390_gisc_register(struct kvm *kvm, u32 gisc)
3266 if (gisc > MAX_ISC)
3270 gi->alert.ref_count[gisc]++;
3271 if (gi->alert.ref_count[gisc] == 1) {
3272 gi->alert.mask |= 0x80 >> gisc;
3285 * @gisc: the guest interruption sub class to register
3299 int kvm_s390_gisc_unregister(struct kvm *kvm, u32 gisc)
3306 if (gisc > MAX_ISC)
3310 if (gi->alert.ref_count[gisc] == 0) {
3314 gi->alert.ref_count[gisc]--;
3315 if (gi->alert.ref_count[gisc] == 0) {
3316 gi->alert.mask &= ~(0x80 >> gisc);
3344 if (!(gi->origin->g1.simm & AIS_MODE_MASK(gaite->gisc)) ||
3345 !(gi->origin->g1.nimm & AIS_MODE_MASK(gaite->gisc))) {
3346 gisa_set_ipm_gisc(gi->origin, gaite->gisc);