/openbmc/linux/drivers/usb/renesas_usbhs/ |
H A D | mod.c | 258 if (irq_state.intsts0 & BRDY) in usbhs_interrupt() 261 if (irq_state.intsts0 & BEMP) in usbhs_interrupt() 271 if (irq_state.intsts0 & VBINT) in usbhs_interrupt() 274 if (irq_state.intsts0 & DVST) in usbhs_interrupt() 277 if (irq_state.intsts0 & CTRT) in usbhs_interrupt() 280 if (irq_state.intsts0 & BEMP) in usbhs_interrupt() 283 if (irq_state.intsts0 & BRDY) in usbhs_interrupt() 288 if (irq_state.intsts1 & ATTCH) in usbhs_interrupt() 291 if (irq_state.intsts1 & DTCH) in usbhs_interrupt() 294 if (irq_state.intsts1 & SIGN) in usbhs_interrupt() [all …]
|
H A D | mod.h | 42 struct usbhs_irq_state *irq_state); 46 struct usbhs_irq_state *irq_state); 50 struct usbhs_irq_state *irq_state); 55 struct usbhs_irq_state *irq_state); 64 struct usbhs_irq_state *irq_state); 68 struct usbhs_irq_state *irq_state); 72 struct usbhs_irq_state *irq_state); 76 struct usbhs_irq_state *irq_state); 95 struct usbhs_irq_state *irq_state); 121 int usbhs_status_get_device_state(struct usbhs_irq_state *irq_state); [all …]
|
H A D | fifo.c | 1317 struct usbhs_irq_state *irq_state) in usbhsf_irq_empty() argument 1323 if (!irq_state->bempsts) { in usbhsf_irq_empty() 1328 dev_dbg(dev, "irq empty [0x%04x]\n", irq_state->bempsts); in usbhsf_irq_empty() 1335 if (!(irq_state->bempsts & (1 << i))) in usbhsf_irq_empty() 1347 struct usbhs_irq_state *irq_state) in usbhsf_irq_ready() argument 1353 if (!irq_state->brdysts) { in usbhsf_irq_ready() 1358 dev_dbg(dev, "irq ready [0x%04x]\n", irq_state->brdysts); in usbhsf_irq_ready() 1365 if (!(irq_state->brdysts & (1 << i))) in usbhsf_irq_ready()
|
/openbmc/qemu/hw/intc/ |
H A D | gic_internal.h | 29 #define GIC_DIST_SET_ENABLED(irq, cm) (s->irq_state[irq].enabled |= (cm)) 32 #define GIC_DIST_SET_PENDING(irq, cm) (s->irq_state[irq].pending |= (cm)) 34 #define GIC_DIST_SET_ACTIVE(irq, cm) (s->irq_state[irq].active |= (cm)) 37 #define GIC_DIST_SET_MODEL(irq) (s->irq_state[irq].model = true) 38 #define GIC_DIST_CLEAR_MODEL(irq) (s->irq_state[irq].model = false) 39 #define GIC_DIST_TEST_MODEL(irq) (s->irq_state[irq].model) 40 #define GIC_DIST_SET_LEVEL(irq, cm) (s->irq_state[irq].level |= (cm)) 45 (s->irq_state[irq].edge_trigger = false) 52 #define GIC_DIST_SET_GROUP(irq, cm) (s->irq_state[irq].group |= (cm)) 169 return s->irq_state[irq].pending & cm; in gic_test_pending() [all …]
|
H A D | mips_gic.c | 33 gic->irq_state[i].map_vp == vp && in mips_gic_set_vp_irq() 34 gic->irq_state[i].enabled) { in mips_gic_set_vp_irq() 35 ored_level |= gic->irq_state[i].pending; in mips_gic_set_vp_irq() 60 int vp = gic->irq_state[n_IRQ].map_vp; in gic_update_pin_for_irq() 73 gic->irq_state[n_IRQ].pending = (uint8_t) level; in gic_set_irq() 74 if (!gic->irq_state[n_IRQ].enabled) { in gic_set_irq() 157 ret = gic->irq_state[irq_src].map_pin; in gic_read() 332 gic->irq_state[irq_src].map_vp = data; in gic_write() 376 gic->irq_state[i].enabled = 0; in gic_reset() 377 gic->irq_state[i].pending = 0; in gic_reset() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/s390x/ |
H A D | resets.c | 70 struct kvm_s390_irq_state irq_state; in assert_noirq() local 73 irq_state.len = sizeof(buf); in assert_noirq() 74 irq_state.buf = (unsigned long)buf; in assert_noirq() 75 irqs = __vcpu_ioctl(vcpu, KVM_S390_GET_IRQ_STATE, &irq_state); in assert_noirq() 192 struct kvm_s390_irq_state irq_state; in inject_irq() local 197 irq_state.len = sizeof(struct kvm_s390_irq); in inject_irq() 198 irq_state.buf = (unsigned long)buf; in inject_irq() 201 irqs = __vcpu_ioctl(vcpu, KVM_S390_SET_IRQ_STATE, &irq_state); in inject_irq()
|
/openbmc/linux/kernel/entry/ |
H A D | common.c | 455 irqentry_state_t irq_state; in irqentry_nmi_enter() local 457 irq_state.lockdep = lockdep_hardirqs_enabled(); in irqentry_nmi_enter() 470 return irq_state; in irqentry_nmi_enter() 473 void noinstr irqentry_nmi_exit(struct pt_regs *regs, irqentry_state_t irq_state) in irqentry_nmi_exit() argument 477 if (irq_state.lockdep) { in irqentry_nmi_exit() 485 if (irq_state.lockdep) in irqentry_nmi_exit()
|
/openbmc/linux/arch/powerpc/kvm/ |
H A D | book3s_xics.c | 83 state = &ics->irq_state[src]; in ics_deliver_irq() 180 state = &ics->irq_state[src]; in kvmppc_xics_set_xive() 210 state = &ics->irq_state[src]; in kvmppc_xics_get_xive() 236 state = &ics->irq_state[src]; in kvmppc_xics_int_on() 262 state = &ics->irq_state[src]; in kvmppc_xics_int_off() 408 state = &ics->irq_state[src]; in icp_deliver_irq() 799 state = &ics->irq_state[src]; in ics_eoi() 1190 irqp = &ics->irq_state[idx]; in xics_get_source() 1246 irqp = &ics->irq_state[idx]; in xics_set_source() 1490 ics->irq_state[idx].intr_cpu = -1; in kvmppc_xics_set_mapped() [all …]
|
H A D | book3s_xive.c | 426 state = &sb->irq_state[src]; in xive_vm_scan_for_rerouted_irqs() 558 state = &sb->irq_state[src]; in xive_vm_h_eoi() 1299 state = &sb->irq_state[idx]; in kvmppc_xive_set_xive() 1383 state = &sb->irq_state[idx]; in kvmppc_xive_get_xive() 1405 state = &sb->irq_state[idx]; in kvmppc_xive_int_on() 1444 state = &sb->irq_state[idx]; in kvmppc_xive_int_off() 1466 state = &sb->irq_state[idx]; in xive_restore_pending_irq() 1573 state = &sb->irq_state[idx]; in kvmppc_xive_set_mapped() 1667 state = &sb->irq_state[idx]; in kvmppc_xive_clr_mapped() 2047 state = &sb->irq_state[idx]; in xive_pre_save_set_queued() [all …]
|
H A D | book3s_hv_rm_xics.c | 44 struct ics_irq_state *state = &ics->irq_state[i]; in ics_rm_check_resend() 308 state = &ics->irq_state[src]; in icp_rm_deliver_irq() 696 state = &ics->irq_state[src]; in ics_rm_eoi() 868 state = &ics->irq_state[src]; in kvmppc_deliver_irq_passthru()
|
H A D | book3s_xive_native.c | 255 state = &sb->irq_state[src]; in xive_native_esb_fault() 363 state = &sb->irq_state[idx]; in kvmppc_xive_native_set_source() 480 state = &sb->irq_state[src]; in kvmppc_xive_native_set_source_config() 525 state = &sb->irq_state[src]; in kvmppc_xive_native_sync_source() 784 struct kvmppc_xive_irq_state *state = &sb->irq_state[i]; in kvmppc_xive_reset_sources() 861 struct kvmppc_xive_irq_state *state = &sb->irq_state[j]; in kvmppc_xive_native_sync_sources()
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-sifive.c | 37 unsigned long irq_state; member 48 trigger = (chip->irq_state & BIT(offset)) ? chip->trigger[offset] : 0; in sifive_gpio_set_ie() 98 assign_bit(offset, &chip->irq_state, 1); in sifive_gpio_irq_enable() 109 assign_bit(offset, &chip->irq_state, 0); in sifive_gpio_irq_disable() 238 chip->irq_state = 0; in sifive_gpio_probe()
|
/openbmc/qemu/hw/pci/ |
H A D | msi.c | 325 uint32_t irq_state, vector_mask, pending; in msi_set_mask() local 335 irq_state = pci_get_long(dev->config + msi_mask_off(dev, msi64bit)); in msi_set_mask() 338 irq_state |= vector_mask; in msi_set_mask() 340 irq_state &= ~vector_mask; in msi_set_mask() 343 pci_set_long(dev->config + msi_mask_off(dev, msi64bit), irq_state); in msi_set_mask()
|
H A D | pci.c | 289 return (d->irq_state >> irq_num) & 0x1; in pci_irq_state() 294 d->irq_state &= ~(0x1 << irq_num); in pci_set_irq_state() 295 d->irq_state |= level << irq_num; in pci_set_irq_state() 335 if (dev->irq_state) { in pci_update_irq_status() 395 assert(dev->irq_state == 0); in pci_do_device_reset() 691 uint32_t irq_state[PCI_NUM_PINS]; in get_pci_irq_state() local 694 irq_state[i] = qemu_get_be32(f); in get_pci_irq_state() 695 if (irq_state[i] != 0x1 && irq_state[i] != 0) { in get_pci_irq_state() 697 irq_state[i]); in get_pci_irq_state() 703 pci_set_irq_state(s, i, irq_state[i]); in get_pci_irq_state() [all …]
|
/openbmc/qemu/hw/ppc/ |
H A D | pnv_occ.c | 54 bool irq_state; in pnv_occ_set_misc() local 59 irq_state = !!(val >> 63); in pnv_occ_set_misc() 60 qemu_set_irq(occ->psi_irq, irq_state); in pnv_occ_set_misc()
|
/openbmc/qemu/hw/isa/ |
H A D | vt82c686.c | 597 uint16_t irq_state[ISA_NUM_IRQS]; member 678 s->irq_state[0] |= mask; in via_isa_set_irq() 680 s->irq_state[0] &= ~mask; in via_isa_set_irq() 692 s->irq_state[irq] |= mask; in via_isa_set_irq() 694 s->irq_state[irq] &= ~mask; in via_isa_set_irq() 697 s->irq_state[irq] &= s->irq_state[0]; in via_isa_set_irq() 699 qemu_set_irq(s->isa_irqs_in[irq], !!s->irq_state[irq]); in via_isa_set_irq()
|
/openbmc/linux/drivers/staging/pi433/ |
H A D | pi433_if.c | 80 u8 irq_state[NUM_DIO]; member 125 if (device->irq_state[DIO0] == DIO_PACKET_SENT) { in DIO0_irq_handler() 129 } else if (device->irq_state[DIO0] == DIO_RSSI_DIO0) { in DIO0_irq_handler() 132 } else if (device->irq_state[DIO0] == DIO_PAYLOAD_READY) { in DIO0_irq_handler() 145 if (device->irq_state[DIO1] == DIO_FIFO_NOT_EMPTY_DIO1) { in DIO1_irq_handler() 147 } else if (device->irq_state[DIO1] == DIO_FIFO_LEVEL) { in DIO1_irq_handler() 384 dev->irq_state[DIO0] = DIO_RSSI_DIO0; in pi433_start_rx() 394 dev->irq_state[DIO1] = DIO_FIFO_LEVEL; in pi433_start_rx() 460 dev->irq_state[DIO0] = DIO_PAYLOAD_READY; in pi433_receive() 686 device->irq_state[DIO1] = DIO_FIFO_LEVEL; in pi433_tx_thread() [all …]
|
/openbmc/linux/arch/s390/kernel/ |
H A D | nmi.c | 376 irqentry_state_t irq_state; in s390_do_machine_check() local 381 irq_state = irqentry_nmi_enter(regs); in s390_do_machine_check() 502 irqentry_nmi_exit(regs, irq_state); in s390_do_machine_check()
|
/openbmc/linux/arch/x86/kernel/ |
H A D | nmi.c | 490 irqentry_state_t irq_state; in DEFINE_IDTENTRY_RAW() local 526 irq_state = irqentry_nmi_enter(regs); in DEFINE_IDTENTRY_RAW() 544 irqentry_nmi_exit(regs, irq_state); in DEFINE_IDTENTRY_RAW()
|
/openbmc/linux/include/pcmcia/ |
H A D | soc_common.h | 71 unsigned int irq_state; member
|
/openbmc/qemu/include/hw/net/ |
H A D | ftgmac100.h | 44 uint32_t irq_state; member
|
/openbmc/linux/drivers/memory/ |
H A D | emif.c | 60 unsigned long irq_state; member 72 static unsigned long irq_state; variable 537 spin_lock_irqsave(&emif_lock, irq_state); in handle_temp_alert() 585 spin_unlock_irqrestore(&emif_lock, irq_state); in handle_temp_alert() 642 spin_lock_irqsave(&emif_lock, irq_state); in emif_threaded_isr() 651 spin_unlock_irqrestore(&emif_lock, irq_state); in emif_threaded_isr()
|
/openbmc/linux/include/linux/ |
H A D | entry-common.h | 466 void noinstr irqentry_nmi_exit(struct pt_regs *regs, irqentry_state_t irq_state);
|
/openbmc/qemu/include/hw/intc/ |
H A D | arm_gic_common.h | 87 gic_irq_state irq_state[GIC_MAXIRQ]; member
|
/openbmc/linux/drivers/pcmcia/ |
H A D | soc_common.c | 372 if (skt->irq_state != 1 && state->io_irq) { in soc_common_pcmcia_config_skt() 373 skt->irq_state = 1; in soc_common_pcmcia_config_skt() 376 } else if (skt->irq_state == 1 && state->io_irq == 0) { in soc_common_pcmcia_config_skt() 377 skt->irq_state = 0; in soc_common_pcmcia_config_skt()
|