/linux/drivers/misc/ |
A D | pci_endpoint_test.c | 113 int irq_type; member 125 int irq_type; member 246 switch (irq_type) { in pci_endpoint_test_request_irq() 355 int irq_type = test->irq_type; in pci_endpoint_test_copy() local 374 if (irq_type < IRQ_TYPE_LEGACY || irq_type > IRQ_TYPE_MSIX) { in pci_endpoint_test_copy() 489 int irq_type = test->irq_type; in pci_endpoint_test_write() local 508 if (irq_type < IRQ_TYPE_LEGACY || irq_type > IRQ_TYPE_MSIX) { in pci_endpoint_test_write() 588 int irq_type = test->irq_type; in pci_endpoint_test_read() local 606 if (irq_type < IRQ_TYPE_LEGACY || irq_type > IRQ_TYPE_MSIX) { in pci_endpoint_test_read() 738 ret = irq_type; in pci_endpoint_test_ioctl() [all …]
|
/linux/drivers/iio/humidity/ |
A D | hts221_buffer.c | 80 unsigned long irq_type; in hts221_allocate_trigger() local 83 irq_type = irqd_get_trigger_type(irq_get_irq_data(hw->irq)); in hts221_allocate_trigger() 85 switch (irq_type) { in hts221_allocate_trigger() 96 irq_type); in hts221_allocate_trigger() 97 irq_type = IRQF_TRIGGER_RISING; in hts221_allocate_trigger() 110 irq_type |= IRQF_SHARED; in hts221_allocate_trigger() 123 irq_type | IRQF_ONESHOT, in hts221_allocate_trigger()
|
/linux/drivers/pinctrl/bcm/ |
A D | pinctrl-bcm2835.c | 462 switch (pc->irq_type[offset]) { in bcm2835_gpio_irq_config() 528 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_disabled() 545 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled() 554 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled() 557 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled() 567 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled() 570 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled() 580 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled() 585 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled() 588 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled() [all …]
|
/linux/drivers/gpio/ |
A D | gpio-siox.c | 21 u32 irq_type[20]; member 54 u32 irq_type = ddata->irq_type[offset]; in gpio_siox_get_data() local 57 if ((irq_type & IRQ_TYPE_LEVEL_HIGH) || in gpio_siox_get_data() 58 ((irq_type & IRQ_TYPE_EDGE_RISING) && !prev_level)) in gpio_siox_get_data() 61 if ((irq_type & IRQ_TYPE_LEVEL_LOW) || in gpio_siox_get_data() 62 ((irq_type & IRQ_TYPE_EDGE_FALLING) && prev_level)) in gpio_siox_get_data() 138 ddata->irq_type[d->hwirq] = type; in gpio_siox_irq_set_type()
|
A D | gpio-xgs-iproc.c | 51 u32 irq_type, event_status = 0; in iproc_gpio_irq_ack() local 54 irq_type = irq_get_trigger_type(irq); in iproc_gpio_irq_ack() 55 if (irq_type & IRQ_TYPE_EDGE_BOTH) { in iproc_gpio_irq_ack() 70 u32 int_mask, irq_type, event_mask; in iproc_gpio_irq_unmask() local 73 irq_type = irq_get_trigger_type(irq); in iproc_gpio_irq_unmask() 77 if (irq_type & IRQ_TYPE_EDGE_BOTH) { in iproc_gpio_irq_unmask() 96 u32 irq_type, int_mask, event_mask; in iproc_gpio_irq_mask() local 99 irq_type = irq_get_trigger_type(irq); in iproc_gpio_irq_mask() 103 if (irq_type & IRQ_TYPE_EDGE_BOTH) { in iproc_gpio_irq_mask()
|
A D | gpio-max77620.c | 22 unsigned int irq_type[MAX77620_GPIO_NR]; member 71 unsigned int irq_type; in max77620_gpio_set_irq_type() local 75 irq_type = MAX77620_CNFG_GPIO_INT_RISING; in max77620_gpio_set_irq_type() 79 irq_type = MAX77620_CNFG_GPIO_INT_FALLING; in max77620_gpio_set_irq_type() 83 irq_type = MAX77620_CNFG_GPIO_INT_RISING | in max77620_gpio_set_irq_type() 91 gpio->irq_type[data->hwirq] = irq_type; in max77620_gpio_set_irq_type() 111 value = gpio->irq_enabled[offset] ? gpio->irq_type[offset] : 0; in max77620_gpio_bus_sync_unlock()
|
A D | gpio-dln2.c | 61 int irq_type[DLN2_GPIO_MAX_PINS]; member 329 dln2->irq_type[pin] = DLN2_GPIO_EVENT_LVL_HIGH; in dln2_irq_set_type() 332 dln2->irq_type[pin] = DLN2_GPIO_EVENT_LVL_LOW; in dln2_irq_set_type() 335 dln2->irq_type[pin] = DLN2_GPIO_EVENT_CHANGE; in dln2_irq_set_type() 338 dln2->irq_type[pin] = DLN2_GPIO_EVENT_CHANGE_RISING; in dln2_irq_set_type() 341 dln2->irq_type[pin] = DLN2_GPIO_EVENT_CHANGE_FALLING; in dln2_irq_set_type() 372 type = dln2->irq_type[pin] & DLN2_GPIO_EVENT_MASK; in dln2_irq_bus_unlock() 411 switch (dln2->irq_type[pin]) { in dln2_gpio_event()
|
A D | gpio-xlp.c | 163 int pol, irq_type; in xlp_gpio_set_irq_type() local 167 irq_type = XLP_GPIO_IRQ_TYPE_EDGE; in xlp_gpio_set_irq_type() 171 irq_type = XLP_GPIO_IRQ_TYPE_EDGE; in xlp_gpio_set_irq_type() 175 irq_type = XLP_GPIO_IRQ_TYPE_LVL; in xlp_gpio_set_irq_type() 179 irq_type = XLP_GPIO_IRQ_TYPE_LVL; in xlp_gpio_set_irq_type() 186 xlp_gpio_set_reg(priv->gpio_intr_type, d->hwirq, irq_type); in xlp_gpio_set_irq_type()
|
A D | gpio-sta2x11.c | 46 unsigned irq_type[GSTA_NR_GPIO]; member 221 if (chip->irq_type[nr] & IRQ_TYPE_EDGE_RISING) { in gsta_irq_disable() 225 if (chip->irq_type[nr] & IRQ_TYPE_EDGE_FALLING) { in gsta_irq_disable() 244 type = chip->irq_type[nr]; in gsta_irq_enable() 273 chip->irq_type[nr] = type; /* used for enable/disable */ in gsta_irq_type()
|
/linux/drivers/extcon/ |
A D | extcon-max14577.c | 519 static int max14577_parse_irq(struct max14577_muic_info *info, int irq_type) in max14577_parse_irq() argument 521 switch (irq_type) { in max14577_parse_irq() 548 static int max77836_parse_irq(struct max14577_muic_info *info, int irq_type) in max77836_parse_irq() argument 551 if (max14577_parse_irq(info, irq_type)) in max77836_parse_irq() 554 switch (irq_type) { in max77836_parse_irq() 570 int i, irq_type = -1; in max14577_muic_irq_handler() local 581 irq_type = info->muic_irqs[i].irq; in max14577_muic_irq_handler() 585 irq_parsed = max77836_parse_irq(info, irq_type); in max14577_muic_irq_handler() 589 irq_parsed = max14577_parse_irq(info, irq_type); in max14577_muic_irq_handler() 595 irq_type); in max14577_muic_irq_handler()
|
A D | extcon-sm5502.c | 70 int (*parse_irq)(struct sm5502_muic_info *info, int irq_type); 556 static int sm5502_parse_irq(struct sm5502_muic_info *info, int irq_type) in sm5502_parse_irq() argument 558 switch (irq_type) { in sm5502_parse_irq() 584 static int sm5504_parse_irq(struct sm5502_muic_info *info, int irq_type) in sm5504_parse_irq() argument 586 switch (irq_type) { in sm5504_parse_irq() 615 int i, irq_type = -1, ret; in sm5502_muic_irq_handler() local 619 irq_type = info->type->muic_irqs[i].irq; in sm5502_muic_irq_handler() 621 ret = info->type->parse_irq(info, irq_type); in sm5502_muic_irq_handler() 624 irq_type); in sm5502_muic_irq_handler()
|
/linux/drivers/staging/greybus/ |
A D | gpio.c | 28 u8 irq_type; member 297 u8 irq_type; in gb_gpio_irq_set_type() local 301 irq_type = GB_GPIO_IRQ_TYPE_NONE; in gb_gpio_irq_set_type() 304 irq_type = GB_GPIO_IRQ_TYPE_EDGE_RISING; in gb_gpio_irq_set_type() 307 irq_type = GB_GPIO_IRQ_TYPE_EDGE_FALLING; in gb_gpio_irq_set_type() 310 irq_type = GB_GPIO_IRQ_TYPE_EDGE_BOTH; in gb_gpio_irq_set_type() 313 irq_type = GB_GPIO_IRQ_TYPE_LEVEL_LOW; in gb_gpio_irq_set_type() 316 irq_type = GB_GPIO_IRQ_TYPE_LEVEL_HIGH; in gb_gpio_irq_set_type() 323 line->irq_type = irq_type; in gb_gpio_irq_set_type() 344 _gb_gpio_irq_set_type(ggc, d->hwirq, line->irq_type); in gb_gpio_irq_bus_sync_unlock()
|
/linux/drivers/iio/imu/bmi160/ |
A D | bmi160_core.c | 677 if (irq_type == IRQF_TRIGGER_RISING) in bmi160_config_device_irq() 679 else if (irq_type == IRQF_TRIGGER_FALLING) in bmi160_config_device_irq() 681 else if (irq_type == IRQF_TRIGGER_HIGH) in bmi160_config_device_irq() 683 else if (irq_type == IRQF_TRIGGER_LOW) in bmi160_config_device_irq() 687 "Invalid interrupt type 0x%x specified\n", irq_type); in bmi160_config_device_irq() 701 u32 irq_type; in bmi160_setup_irq() local 710 irq_type = irqd_get_trigger_type(desc); in bmi160_setup_irq() 712 ret = bmi160_config_device_irq(indio_dev, irq_type, pin); in bmi160_setup_irq() 716 return bmi160_probe_trigger(indio_dev, irq, irq_type); in bmi160_setup_irq() 782 int bmi160_probe_trigger(struct iio_dev *indio_dev, int irq, u32 irq_type) in bmi160_probe_trigger() argument [all …]
|
/linux/include/linux/ |
A D | vfio_pci_core.h | 110 int irq_type; member 142 #define is_intx(vdev) (vdev->irq_type == VFIO_PCI_INTX_IRQ_INDEX) 143 #define is_msi(vdev) (vdev->irq_type == VFIO_PCI_MSI_IRQ_INDEX) 144 #define is_msix(vdev) (vdev->irq_type == VFIO_PCI_MSIX_IRQ_INDEX) 146 #define irq_is(vdev, type) (vdev->irq_type == type)
|
/linux/arch/um/os-Linux/ |
A D | irq.c | 48 int os_event_mask(enum um_irq_type irq_type) in os_event_mask() argument 50 if (irq_type == IRQ_READ) in os_event_mask() 52 if (irq_type == IRQ_WRITE) in os_event_mask()
|
/linux/drivers/iio/light/ |
A D | st_uvis25_core.c | 174 unsigned long irq_type; in st_uvis25_allocate_trigger() local 177 irq_type = irqd_get_trigger_type(irq_get_irq_data(hw->irq)); in st_uvis25_allocate_trigger() 179 switch (irq_type) { in st_uvis25_allocate_trigger() 188 dev_info(dev, "mode %lx unsupported\n", irq_type); in st_uvis25_allocate_trigger() 199 irq_type | IRQF_ONESHOT, in st_uvis25_allocate_trigger()
|
/linux/drivers/iio/imu/inv_icm42600/ |
A D | inv_icm42600_core.c | 470 int irq_type, bool open_drain) in inv_icm42600_irq_init() argument 477 switch (irq_type) { in inv_icm42600_irq_init() 487 switch (irq_type) { in inv_icm42600_irq_init() 510 inv_icm42600_irq_handler, irq_type, in inv_icm42600_irq_init() 564 int irq_type; in inv_icm42600_core_probe() local 580 irq_type = irqd_get_trigger_type(irq_desc); in inv_icm42600_core_probe() 581 if (!irq_type) in inv_icm42600_core_probe() 582 irq_type = IRQF_TRIGGER_FALLING; in inv_icm42600_core_probe() 647 ret = inv_icm42600_irq_init(st, irq, irq_type, open_drain); in inv_icm42600_core_probe()
|
/linux/drivers/scsi/ |
A D | aha1740.c | 497 unsigned int *irq_type, in DEF_SCSI_QCMD() 503 *irq_type = (inb(INTDEF(base)) & 0x8) >> 3; in DEF_SCSI_QCMD() 558 unsigned int irq_level, irq_type, translation; in aha1740_probe() local 570 aha1740_getconfig(slotbase,&irq_level,&irq_type,&translation); in aha1740_probe() 578 edev->slot, slotbase, irq_level, irq_type ? "edge" : "level"); in aha1740_probe() 603 if (request_irq(irq_level,aha1740_intr_handle,irq_type ? 0 : IRQF_SHARED, in aha1740_probe()
|
/linux/drivers/net/ieee802154/ |
A D | mrf24j40.c | 1063 u32 irq_type; in mrf24j40_hw_init() local 1155 irq_type = irq_get_trigger_type(devrec->spi->irq); in mrf24j40_hw_init() 1156 if (irq_type == IRQ_TYPE_EDGE_RISING || in mrf24j40_hw_init() 1157 irq_type == IRQ_TYPE_EDGE_FALLING) in mrf24j40_hw_init() 1160 switch (irq_type) { in mrf24j40_hw_init() 1273 int ret = -ENOMEM, irq_type; in mrf24j40_probe() local 1335 irq_type = irq_get_trigger_type(spi->irq); in mrf24j40_probe() 1336 if (!irq_type) in mrf24j40_probe() 1337 irq_type = IRQF_TRIGGER_LOW; in mrf24j40_probe() 1340 irq_type, dev_name(&spi->dev), devrec); in mrf24j40_probe()
|
/linux/drivers/pinctrl/actions/ |
A D | pinctrl-owl.c | 668 unsigned int offset, value, irq_type = 0; in irq_set_type() local 679 irq_type = OWL_GPIO_INT_EDGE_FALLING; in irq_set_type() 681 irq_type = OWL_GPIO_INT_EDGE_RISING; in irq_set_type() 685 irq_type = OWL_GPIO_INT_EDGE_RISING; in irq_set_type() 689 irq_type = OWL_GPIO_INT_EDGE_FALLING; in irq_set_type() 693 irq_type = OWL_GPIO_INT_LEVEL_HIGH; in irq_set_type() 697 irq_type = OWL_GPIO_INT_LEVEL_LOW; in irq_set_type() 715 value |= irq_type << ((gpio % 16) * 2); in irq_set_type()
|
/linux/drivers/iio/imu/inv_mpu6050/ |
A D | inv_mpu_core.c | 1444 int irq_type; in inv_mpu_core_probe() local 1481 irq_type = irqd_get_trigger_type(desc); in inv_mpu_core_probe() 1482 if (!irq_type) in inv_mpu_core_probe() 1483 irq_type = IRQF_TRIGGER_RISING; in inv_mpu_core_probe() 1486 irq_type = IRQF_TRIGGER_RISING; in inv_mpu_core_probe() 1489 if (irq_type & IRQF_TRIGGER_RISING) // rising or both-edge in inv_mpu_core_probe() 1491 else if (irq_type == IRQF_TRIGGER_FALLING) in inv_mpu_core_probe() 1493 else if (irq_type == IRQF_TRIGGER_HIGH) in inv_mpu_core_probe() 1496 else if (irq_type == IRQF_TRIGGER_LOW) in inv_mpu_core_probe() 1501 irq_type); in inv_mpu_core_probe() [all …]
|
/linux/drivers/thermal/qcom/ |
A D | tsens.c | 198 enum tsens_irq_type irq_type, bool enable) in tsens_set_interrupt_v1() argument 202 switch (irq_type) { in tsens_set_interrupt_v1() 217 enum tsens_irq_type irq_type, bool enable) in tsens_set_interrupt_v2() argument 228 switch (irq_type) { in tsens_set_interrupt_v2() 264 enum tsens_irq_type irq_type, bool enable) in tsens_set_interrupt() argument 267 irq_type ? ((irq_type == 1) ? "UP" : "CRITICAL") : "LOW", in tsens_set_interrupt() 270 tsens_set_interrupt_v2(priv, hw_id, irq_type, enable); in tsens_set_interrupt() 272 tsens_set_interrupt_v1(priv, hw_id, irq_type, enable); in tsens_set_interrupt()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_fence.c | 419 unsigned irq_type) in amdgpu_fence_driver_start_ring() argument 436 ring->fence_drv.irq_type = irq_type; in amdgpu_fence_driver_start_ring() 561 ring->fence_drv.irq_type); in amdgpu_fence_driver_hw_fini() 612 ring->fence_drv.irq_type); in amdgpu_fence_driver_hw_init()
|
/linux/drivers/pci/endpoint/functions/ |
A D | pci-epf-test.c | 69 u32 irq_type; member 491 static void pci_epf_test_raise_irq(struct pci_epf_test *epf_test, u8 irq_type, in pci_epf_test_raise_irq() argument 502 switch (irq_type) { in pci_epf_test_raise_irq() 541 if (reg->irq_type > IRQ_TYPE_MSIX) { in pci_epf_test_cmd_handler() 559 pci_epf_test_raise_irq(epf_test, reg->irq_type, in pci_epf_test_cmd_handler() 570 pci_epf_test_raise_irq(epf_test, reg->irq_type, in pci_epf_test_cmd_handler() 581 pci_epf_test_raise_irq(epf_test, reg->irq_type, in pci_epf_test_cmd_handler()
|
/linux/drivers/vfio/pci/ |
A D | vfio_pci_intrs.c | 166 vdev->irq_type = VFIO_PCI_INTX_IRQ_INDEX; in vfio_intx_enable() 231 vdev->irq_type = VFIO_PCI_NUM_IRQS; in vfio_intx_disable() 274 vdev->irq_type = msix ? VFIO_PCI_MSIX_IRQ_INDEX : in vfio_msi_enable() 412 vdev->irq_type = VFIO_PCI_NUM_IRQS; in vfio_msi_disable() 529 if (vdev->irq_type == index) in vfio_pci_set_msi_trigger()
|