Home
last modified time | relevance | path

Searched refs:irq_type (Results 1 – 25 of 41) sorted by relevance

12

/drivers/pinctrl/bcm/
Dpinctrl-bcm2835.c101 unsigned int irq_type[BCM2835_NUM_GPIOS]; member
408 type = pc->irq_type[gpio]; in bcm2835_gpio_irq_handler()
432 switch (pc->irq_type[offset]) { in bcm2835_gpio_irq_config()
496 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_disabled()
511 if (pc->irq_type[offset] != type) { in __bcm2835_gpio_irq_set_type_enabled()
513 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled()
518 if (pc->irq_type[offset] == IRQ_TYPE_EDGE_BOTH) { in __bcm2835_gpio_irq_set_type_enabled()
520 pc->irq_type[offset] = IRQ_TYPE_EDGE_FALLING; in __bcm2835_gpio_irq_set_type_enabled()
522 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled()
523 } else if (pc->irq_type[offset] != type) { in __bcm2835_gpio_irq_set_type_enabled()
[all …]
/drivers/vfio/pci/
Dvfio_pci_private.h77 int irq_type; member
100 #define is_intx(vdev) (vdev->irq_type == VFIO_PCI_INTX_IRQ_INDEX)
101 #define is_msi(vdev) (vdev->irq_type == VFIO_PCI_MSI_IRQ_INDEX)
102 #define is_msix(vdev) (vdev->irq_type == VFIO_PCI_MSIX_IRQ_INDEX)
104 #define irq_is(vdev, type) (vdev->irq_type == type)
Dvfio_pci_intrs.c169 vdev->irq_type = VFIO_PCI_INTX_IRQ_INDEX; in vfio_intx_enable()
234 vdev->irq_type = VFIO_PCI_NUM_IRQS; in vfio_intx_disable()
273 vdev->irq_type = msix ? VFIO_PCI_MSIX_IRQ_INDEX : in vfio_msi_enable()
399 vdev->irq_type = VFIO_PCI_NUM_IRQS; in vfio_msi_disable()
516 if (vdev->irq_type == index) in vfio_pci_set_msi_trigger()
Dvfio_pci.c305 vdev->irq_type, 0, 0, NULL); in vfio_pci_disable()
415 static int vfio_pci_get_irq_count(struct vfio_pci_device *vdev, int irq_type) in vfio_pci_get_irq_count() argument
417 if (irq_type == VFIO_PCI_INTX_IRQ_INDEX) { in vfio_pci_get_irq_count()
423 } else if (irq_type == VFIO_PCI_MSI_IRQ_INDEX) { in vfio_pci_get_irq_count()
433 } else if (irq_type == VFIO_PCI_MSIX_IRQ_INDEX) { in vfio_pci_get_irq_count()
444 } else if (irq_type == VFIO_PCI_ERR_IRQ_INDEX) { in vfio_pci_get_irq_count()
447 } else if (irq_type == VFIO_PCI_REQ_IRQ_INDEX) { in vfio_pci_get_irq_count()
1241 vdev->irq_type = VFIO_PCI_NUM_IRQS; in vfio_pci_probe()
/drivers/extcon/
Dextcon-max14577.c528 static int max14577_parse_irq(struct max14577_muic_info *info, int irq_type) in max14577_parse_irq() argument
530 switch (irq_type) { in max14577_parse_irq()
555 static int max77836_parse_irq(struct max14577_muic_info *info, int irq_type) in max77836_parse_irq() argument
558 if (max14577_parse_irq(info, irq_type)) in max77836_parse_irq()
561 switch (irq_type) { in max77836_parse_irq()
577 int i, irq_type = -1; in max14577_muic_irq_handler() local
588 irq_type = info->muic_irqs[i].irq; in max14577_muic_irq_handler()
592 irq_parsed = max77836_parse_irq(info, irq_type); in max14577_muic_irq_handler()
596 irq_parsed = max14577_parse_irq(info, irq_type); in max14577_muic_irq_handler()
602 irq_type); in max14577_muic_irq_handler()
Dextcon-sm5502.c453 static int sm5502_parse_irq(struct sm5502_muic_info *info, int irq_type) in sm5502_parse_irq() argument
455 switch (irq_type) { in sm5502_parse_irq()
484 int i, irq_type = -1, ret; in sm5502_muic_irq_handler() local
488 irq_type = info->muic_irqs[i].irq; in sm5502_muic_irq_handler()
490 ret = sm5502_parse_irq(info, irq_type); in sm5502_muic_irq_handler()
493 irq_type); in sm5502_muic_irq_handler()
Dextcon-max8997.c521 int irq_type = 0; in max8997_muic_irq_work() local
531 irq_type = muic_irqs[i].irq; in max8997_muic_irq_work()
541 switch (irq_type) { in max8997_muic_irq_work()
560 irq_type); in max8997_muic_irq_work()
Dextcon-rt8973a.c450 int i, irq_type = -1; in rt8973a_muic_irq_handler() local
454 irq_type = info->muic_irqs[i].irq; in rt8973a_muic_irq_handler()
456 switch (irq_type) { in rt8973a_muic_irq_handler()
482 "Cannot handle this interrupt (%d)\n", irq_type); in rt8973a_muic_irq_handler()
Dextcon-max77843.c598 int i, irq_type = -1; in max77843_muic_irq_handler() local
602 irq_type = max77843_muic_irqs[i].irq; in max77843_muic_irq_handler()
604 switch (irq_type) { in max77843_muic_irq_handler()
627 dev_err(info->dev, "Cannot recognize IRQ(%d)\n", irq_type); in max77843_muic_irq_handler()
Dextcon-max77693.c948 int irq_type = -1; in max77693_muic_irq_work() local
958 irq_type = muic_irqs[i].irq; in max77693_muic_irq_work()
968 switch (irq_type) { in max77693_muic_irq_work()
995 irq_type); in max77693_muic_irq_work()
/drivers/staging/greybus/
Dgpio.c29 u8 irq_type; member
303 u8 irq_type; in gb_gpio_irq_set_type() local
307 irq_type = GB_GPIO_IRQ_TYPE_NONE; in gb_gpio_irq_set_type()
310 irq_type = GB_GPIO_IRQ_TYPE_EDGE_RISING; in gb_gpio_irq_set_type()
313 irq_type = GB_GPIO_IRQ_TYPE_EDGE_FALLING; in gb_gpio_irq_set_type()
316 irq_type = GB_GPIO_IRQ_TYPE_EDGE_BOTH; in gb_gpio_irq_set_type()
319 irq_type = GB_GPIO_IRQ_TYPE_LEVEL_LOW; in gb_gpio_irq_set_type()
322 irq_type = GB_GPIO_IRQ_TYPE_LEVEL_HIGH; in gb_gpio_irq_set_type()
329 line->irq_type = irq_type; in gb_gpio_irq_set_type()
350 _gb_gpio_irq_set_type(ggc, d->hwirq, line->irq_type); in gb_gpio_irq_bus_sync_unlock()
/drivers/gpio/
Dgpio-dln2.c64 int irq_type[DLN2_GPIO_MAX_PINS]; member
328 dln2->irq_type[pin] = DLN2_GPIO_EVENT_LVL_HIGH; in dln2_irq_set_type()
331 dln2->irq_type[pin] = DLN2_GPIO_EVENT_LVL_LOW; in dln2_irq_set_type()
334 dln2->irq_type[pin] = DLN2_GPIO_EVENT_CHANGE; in dln2_irq_set_type()
337 dln2->irq_type[pin] = DLN2_GPIO_EVENT_CHANGE_RISING; in dln2_irq_set_type()
340 dln2->irq_type[pin] = DLN2_GPIO_EVENT_CHANGE_FALLING; in dln2_irq_set_type()
371 type = dln2->irq_type[pin] & DLN2_GPIO_EVENT_MASK; in dln2_irq_bus_unlock()
425 switch (dln2->irq_type[pin]) { in dln2_gpio_event()
Dgpio-xlp.c171 int pol, irq_type; in xlp_gpio_set_irq_type() local
175 irq_type = XLP_GPIO_IRQ_TYPE_EDGE; in xlp_gpio_set_irq_type()
179 irq_type = XLP_GPIO_IRQ_TYPE_EDGE; in xlp_gpio_set_irq_type()
183 irq_type = XLP_GPIO_IRQ_TYPE_LVL; in xlp_gpio_set_irq_type()
187 irq_type = XLP_GPIO_IRQ_TYPE_LVL; in xlp_gpio_set_irq_type()
194 xlp_gpio_set_reg(priv->gpio_intr_type, d->hwirq, irq_type); in xlp_gpio_set_irq_type()
Dgpio-sta2x11.c58 unsigned irq_type[GSTA_NR_GPIO]; member
243 if (chip->irq_type[nr] & IRQ_TYPE_EDGE_RISING) { in gsta_irq_disable()
247 if (chip->irq_type[nr] & IRQ_TYPE_EDGE_FALLING) { in gsta_irq_disable()
266 type = chip->irq_type[nr]; in gsta_irq_enable()
295 chip->irq_type[nr] = type; /* used for enable/disable */ in gsta_irq_type()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_fence.c322 unsigned irq_type) in amdgpu_fence_driver_start_ring() argument
337 amdgpu_irq_get(adev, irq_src, irq_type); in amdgpu_fence_driver_start_ring()
340 ring->fence_drv.irq_type = irq_type; in amdgpu_fence_driver_start_ring()
452 ring->fence_drv.irq_type); in amdgpu_fence_driver_fini()
489 ring->fence_drv.irq_type); in amdgpu_fence_driver_suspend()
516 ring->fence_drv.irq_type); in amdgpu_fence_driver_resume()
Damdgpu_ring.c167 struct amdgpu_irq_src *irq_src, unsigned irq_type, in amdgpu_ring_init() argument
211 r = amdgpu_fence_driver_start_ring(ring, irq_src, irq_type); in amdgpu_ring_init()
Ddce_virtual.c707 unsigned irq_type = AMDGPU_CRTC_IRQ_VBLANK1; in dce_virtual_crtc_irq() local
711 if (amdgpu_irq_enabled(adev, source, irq_type)) { in dce_virtual_crtc_irq()
/drivers/scsi/
Daha1740.c492 unsigned int *irq_type, in DEF_SCSI_QCMD()
498 *irq_type = (inb(INTDEF(base)) & 0x8) >> 3; in DEF_SCSI_QCMD()
554 unsigned int irq_level, irq_type, translation; in aha1740_probe() local
566 aha1740_getconfig(slotbase,&irq_level,&irq_type,&translation); in aha1740_probe()
574 edev->slot, slotbase, irq_level, irq_type ? "edge" : "level"); in aha1740_probe()
600 if (request_irq(irq_level,aha1740_intr_handle,irq_type ? 0 : IRQF_SHARED, in aha1740_probe()
/drivers/net/ieee802154/
Dmrf24j40.c1071 u32 irq_type; in mrf24j40_hw_init() local
1163 irq_type = irq_get_trigger_type(devrec->spi->irq); in mrf24j40_hw_init()
1164 if (irq_type == IRQ_TYPE_EDGE_RISING || in mrf24j40_hw_init()
1165 irq_type == IRQ_TYPE_EDGE_FALLING) in mrf24j40_hw_init()
1168 switch (irq_type) { in mrf24j40_hw_init()
1281 int ret = -ENOMEM, irq_type; in mrf24j40_probe() local
1342 irq_type = irq_get_trigger_type(spi->irq); in mrf24j40_probe()
1343 if (!irq_type) in mrf24j40_probe()
1344 irq_type = IRQF_TRIGGER_LOW; in mrf24j40_probe()
1347 irq_type, dev_name(&spi->dev), devrec); in mrf24j40_probe()
Dat86rf230.c1383 int rc, irq_type, irq_pol = IRQ_ACTIVE_HIGH; in at86rf230_hw_init() local
1391 irq_type = irq_get_trigger_type(lp->spi->irq); in at86rf230_hw_init()
1392 if (irq_type == IRQ_TYPE_EDGE_FALLING || in at86rf230_hw_init()
1393 irq_type == IRQ_TYPE_LEVEL_LOW) in at86rf230_hw_init()
1682 int rc, irq_type, rstn, slp_tr; in at86rf230_probe() local
1758 irq_type = irq_get_trigger_type(spi->irq); in at86rf230_probe()
1759 if (!irq_type) in at86rf230_probe()
1760 irq_type = IRQF_TRIGGER_HIGH; in at86rf230_probe()
1763 IRQF_SHARED | irq_type, dev_name(&spi->dev), lp); in at86rf230_probe()
Dadf7242.c1140 int ret, irq_type; in adf7242_probe() local
1213 irq_type = irq_get_trigger_type(spi->irq); in adf7242_probe()
1214 if (!irq_type) in adf7242_probe()
1215 irq_type = IRQF_TRIGGER_HIGH; in adf7242_probe()
1218 irq_type | IRQF_ONESHOT, in adf7242_probe()
/drivers/gpu/drm/bridge/analogix/
Danalogix_dp_core.c811 enum dp_irq_type irq_type; in analogix_dp_hardirq() local
813 irq_type = analogix_dp_get_irq_type(dp); in analogix_dp_hardirq()
814 if (irq_type != DP_IRQ_TYPE_UNKNOWN) { in analogix_dp_hardirq()
825 enum dp_irq_type irq_type; in analogix_dp_irq_thread() local
827 irq_type = analogix_dp_get_irq_type(dp); in analogix_dp_irq_thread()
828 if (irq_type & DP_IRQ_TYPE_HP_CABLE_IN || in analogix_dp_irq_thread()
829 irq_type & DP_IRQ_TYPE_HP_CABLE_OUT) { in analogix_dp_irq_thread()
835 if (irq_type != DP_IRQ_TYPE_UNKNOWN) { in analogix_dp_irq_thread()
/drivers/infiniband/hw/hfi1/
Daffinity.h52 enum irq_type { enum
/drivers/dma/
Dsun6i-dma.c149 u8 irq_type; member
371 vchan->irq_type = vchan->cyclic ? DMA_IRQ_PKG : DMA_IRQ_QUEUE; in sun6i_dma_start_desc()
376 irq_val |= vchan->irq_type << (irq_offset * DMA_IRQ_CHAN_WIDTH); in sun6i_dma_start_desc()
475 if (vchan && (status & vchan->irq_type)) { in sun6i_dma_interrupt()
/drivers/pinctrl/
Dpinctrl-at91.c167 int (*irq_type)(struct irq_data *d, unsigned type); member
598 .irq_type = gpio_irq_type,
617 .irq_type = alt_gpio_irq_type,
636 .irq_type = alt_gpio_irq_type,
1603 gpio_irqchip.irq_set_type = at91_gpio->ops->irq_type; in at91_gpio_of_irq_setup()

12