Lines Matching full:isc
27 #include <asm/isc.h>
210 static uint64_t isc_to_isc_bits(int isc) in isc_to_isc_bits() argument
212 return (0x80 >> isc) << 24; in isc_to_isc_bits()
215 static inline u32 isc_to_int_word(u8 isc) in isc_to_int_word() argument
217 return ((u32)isc << 27) | 0x80000000; in isc_to_int_word()
341 static inline int isc_to_irq_type(unsigned long isc) in isc_to_irq_type() argument
343 return IRQ_PEND_IO_ISC_0 - isc; in isc_to_irq_type()
1169 u32 isc; in __deliver_io() local
1175 isc = irq_type_to_isc(irq_type); in __deliver_io()
1176 isc_list = &fi->lists[isc]; in __deliver_io()
1209 if (gi->origin && gisa_tac_ipm_gisc(gi->origin, isc)) { in __deliver_io()
1214 VCPU_EVENT(vcpu, 4, "%s isc %u", "deliver: I/O (AI/gisa)", isc); in __deliver_io()
1216 io.io_int_word = isc_to_int_word(isc); in __deliver_io()
1709 int isc, u32 schid) in get_io_int() argument
1712 struct list_head *isc_list = &fi->lists[FIRQ_LIST_IO_ISC_0 + isc]; in get_io_int()
1726 clear_bit(isc_to_irq_type(isc), &fi->pending_irqs); in get_io_int()
1738 int isc; in get_top_io_int() local
1740 for (isc = 0; isc <= MAX_ISC && !inti; isc++) { in get_top_io_int()
1741 if (isc_mask & isc_to_isc_bits(isc)) in get_top_io_int()
1742 inti = get_io_int(kvm, isc, schid); in get_top_io_int()
1751 int isc; in get_top_gisa_isc() local
1760 isc = __fls(active_mask) ^ (BITS_PER_LONG - 1); in get_top_gisa_isc()
1761 if (gisa_tac_ipm_gisc(gi->origin, isc)) in get_top_gisa_isc()
1762 return isc; in get_top_gisa_isc()
1763 clear_bit_inv(isc, &active_mask); in get_top_gisa_isc()
1771 * subclasses as designated by the isc mask in cr6 and the schid (if != 0).
1776 * out adapter interrupts on the same isc. Linux does not do
1786 int isc; in kvm_s390_get_io_int() local
1790 isc = get_top_gisa_isc(kvm, isc_mask, schid); in kvm_s390_get_io_int()
1791 if (isc < 0) in kvm_s390_get_io_int()
1800 if (int_word_to_isc(inti->io.io_int_word) <= isc) { in kvm_s390_get_io_int()
1802 gisa_set_ipm_gisc(gi->origin, isc); in kvm_s390_get_io_int()
1809 tmp_inti->io.io_int_word = isc_to_int_word(isc); in kvm_s390_get_io_int()
1814 gisa_set_ipm_gisc(gi->origin, isc); in kvm_s390_get_io_int()
1908 int isc; in __inject_io() local
1911 isc = int_word_to_isc(inti->io.io_int_word); in __inject_io()
1920 VM_EVENT(kvm, 4, "%s isc %1u", "inject: I/O (AI/gisa)", isc); in __inject_io()
1921 gisa_set_ipm_gisc(gi->origin, isc); in __inject_io()
1941 list = &fi->lists[FIRQ_LIST_IO_ISC_0 + isc]; in __inject_io()
1943 set_bit(isc_to_irq_type(isc), &fi->pending_irqs); in __inject_io()
2487 adapter->isc = adapter_info.isc; in register_io_adapter()
2588 if (req.isc > MAX_ISC) in modify_ais_mode()
2591 trace_kvm_s390_modify_ais_mode(req.isc, in modify_ais_mode()
2592 (fi->simm & AIS_MODE_MASK(req.isc)) ? in modify_ais_mode()
2593 (fi->nimm & AIS_MODE_MASK(req.isc)) ? in modify_ais_mode()
2600 fi->simm &= ~AIS_MODE_MASK(req.isc); in modify_ais_mode()
2601 fi->nimm &= ~AIS_MODE_MASK(req.isc); in modify_ais_mode()
2604 fi->simm |= AIS_MODE_MASK(req.isc); in modify_ais_mode()
2605 fi->nimm &= ~AIS_MODE_MASK(req.isc); in modify_ais_mode()
2622 .parm64 = isc_to_int_word(adapter->isc), in kvm_s390_inject_airq()
2630 if (fi->nimm & AIS_MODE_MASK(adapter->isc)) { in kvm_s390_inject_airq()
2631 trace_kvm_s390_airq_suppressed(adapter->id, adapter->isc); in kvm_s390_inject_airq()
2636 if (!ret && (fi->simm & AIS_MODE_MASK(adapter->isc))) { in kvm_s390_inject_airq()
2637 fi->nimm |= AIS_MODE_MASK(adapter->isc); in kvm_s390_inject_airq()
2638 trace_kvm_s390_modify_ais_mode(adapter->isc, in kvm_s390_inject_airq()
3244 * kvm_s390_gisc_register - register a guest ISC
3255 * Returns: the nonspecific ISC (NISC) the gib alert mechanism
3258 * -ERANGE in case the guest ISC is invalid
3282 * kvm_s390_gisc_unregister - unregister a guest ISC
3293 * Returns: the nonspecific ISC (NISC) the gib alert mechanism
3296 * -ERANGE in case the guest ISC is invalid
3297 * -EINVAL in case the guest ISC is not registered
3354 static void aen_process_gait(u8 isc) in aen_process_gait() argument
3373 zpci_set_irq_ctrl(SIC_IRQ_MODE_SINGLE, isc, in aen_process_gait()
3401 aen_process_gait(info->isc); in gib_alert_irq_handler()
3444 gib_alert_irq.isc = nisc; in kvm_s390_gib_init()