Lines Matching refs:isc
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()
351 static inline int isc_to_irq_type(unsigned long isc) in isc_to_irq_type() argument
353 return IRQ_PEND_IO_ISC_0 - isc; in isc_to_irq_type()
1179 u32 isc; in __deliver_io() local
1185 isc = irq_type_to_isc(irq_type); in __deliver_io()
1186 isc_list = &fi->lists[isc]; in __deliver_io()
1219 if (gi->origin && gisa_tac_ipm_gisc(gi->origin, isc)) { in __deliver_io()
1224 VCPU_EVENT(vcpu, 4, "%s isc %u", "deliver: I/O (AI/gisa)", isc); in __deliver_io()
1226 io.io_int_word = isc_to_int_word(isc); in __deliver_io()
1705 int isc, u32 schid) in get_io_int() argument
1708 struct list_head *isc_list = &fi->lists[FIRQ_LIST_IO_ISC_0 + isc]; in get_io_int()
1722 clear_bit(isc_to_irq_type(isc), &fi->pending_irqs); in get_io_int()
1734 int isc; in get_top_io_int() local
1736 for (isc = 0; isc <= MAX_ISC && !inti; isc++) { in get_top_io_int()
1737 if (isc_mask & isc_to_isc_bits(isc)) in get_top_io_int()
1738 inti = get_io_int(kvm, isc, schid); in get_top_io_int()
1747 int isc; in get_top_gisa_isc() local
1756 isc = __fls(active_mask) ^ (BITS_PER_LONG - 1); in get_top_gisa_isc()
1757 if (gisa_tac_ipm_gisc(gi->origin, isc)) in get_top_gisa_isc()
1758 return isc; in get_top_gisa_isc()
1759 clear_bit_inv(isc, &active_mask); in get_top_gisa_isc()
1782 int isc; in kvm_s390_get_io_int() local
1786 isc = get_top_gisa_isc(kvm, isc_mask, schid); in kvm_s390_get_io_int()
1787 if (isc < 0) in kvm_s390_get_io_int()
1796 if (int_word_to_isc(inti->io.io_int_word) <= isc) { in kvm_s390_get_io_int()
1798 gisa_set_ipm_gisc(gi->origin, isc); in kvm_s390_get_io_int()
1805 tmp_inti->io.io_int_word = isc_to_int_word(isc); in kvm_s390_get_io_int()
1810 gisa_set_ipm_gisc(gi->origin, isc); in kvm_s390_get_io_int()
1904 int isc; in __inject_io() local
1907 isc = int_word_to_isc(inti->io.io_int_word); in __inject_io()
1916 VM_EVENT(kvm, 4, "%s isc %1u", "inject: I/O (AI/gisa)", isc); in __inject_io()
1917 gisa_set_ipm_gisc(gi->origin, isc); in __inject_io()
1937 list = &fi->lists[FIRQ_LIST_IO_ISC_0 + isc]; in __inject_io()
1939 set_bit(isc_to_irq_type(isc), &fi->pending_irqs); in __inject_io()
2483 adapter->isc = adapter_info.isc; in register_io_adapter()
2584 if (req.isc > MAX_ISC) in modify_ais_mode()
2587 trace_kvm_s390_modify_ais_mode(req.isc, in modify_ais_mode()
2588 (fi->simm & AIS_MODE_MASK(req.isc)) ? in modify_ais_mode()
2589 (fi->nimm & AIS_MODE_MASK(req.isc)) ? in modify_ais_mode()
2596 fi->simm &= ~AIS_MODE_MASK(req.isc); in modify_ais_mode()
2597 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()
2618 .parm64 = isc_to_int_word(adapter->isc), in kvm_s390_inject_airq()
2626 if (fi->nimm & AIS_MODE_MASK(adapter->isc)) { in kvm_s390_inject_airq()
2627 trace_kvm_s390_airq_suppressed(adapter->id, adapter->isc); in kvm_s390_inject_airq()
2632 if (!ret && (fi->simm & AIS_MODE_MASK(adapter->isc))) { in kvm_s390_inject_airq()
2633 fi->nimm |= AIS_MODE_MASK(adapter->isc); in kvm_s390_inject_airq()
2634 trace_kvm_s390_modify_ais_mode(adapter->isc, in kvm_s390_inject_airq()
3348 static void aen_process_gait(u8 isc) in aen_process_gait() argument
3367 zpci_set_irq_ctrl(SIC_IRQ_MODE_SINGLE, isc, in aen_process_gait()
3395 aen_process_gait(info->isc); in gib_alert_irq_handler()
3438 gib_alert_irq.isc = nisc; in kvm_s390_gib_init()