| /linux/drivers/misc/ |
| H A D | pci_endpoint_test.c | 125 int irq_type; member 171 test->irq_type = PCITEST_IRQ_TYPE_UNDEFINED; in pci_endpoint_test_free_irq_vectors() 211 test->irq_type = type; in pci_endpoint_test_alloc_irq_vectors() 246 switch (test->irq_type) { in pci_endpoint_test_request_irq() 498 int irq_type = test->irq_type; in pci_endpoint_test_copy() local 519 if (irq_type < PCITEST_IRQ_TYPE_INTX || in pci_endpoint_test_copy() 520 irq_type > PCITEST_IRQ_TYPE_MSIX) { in pci_endpoint_test_copy() 590 pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_IRQ_TYPE, irq_type); in pci_endpoint_test_copy() 631 int irq_type = test->irq_type; in pci_endpoint_test_write() local 652 if (irq_type < PCITEST_IRQ_TYPE_INTX || in pci_endpoint_test_write() [all …]
|
| /linux/drivers/gpio/ |
| H A D | gpio-siox.c | 20 u32 irq_type[20]; member 53 u32 irq_type = ddata->irq_type[offset]; in gpio_siox_get_data() local 56 if ((irq_type & IRQ_TYPE_LEVEL_HIGH) || in gpio_siox_get_data() 57 ((irq_type & IRQ_TYPE_EDGE_RISING) && !prev_level)) in gpio_siox_get_data() 60 if ((irq_type & IRQ_TYPE_LEVEL_LOW) || in gpio_siox_get_data() 61 ((irq_type & IRQ_TYPE_EDGE_FALLING) && prev_level)) in gpio_siox_get_data() 135 ddata->irq_type[d->hwirq] = type; in gpio_siox_irq_set_type()
|
| H A D | gpio-max77620.c | 22 unsigned int irq_type[MAX77620_GPIO_NR]; member 73 unsigned int irq_type; in max77620_gpio_set_irq_type() local 77 irq_type = MAX77620_CNFG_GPIO_INT_RISING; in max77620_gpio_set_irq_type() 81 irq_type = MAX77620_CNFG_GPIO_INT_FALLING; in max77620_gpio_set_irq_type() 85 irq_type = MAX77620_CNFG_GPIO_INT_RISING | in max77620_gpio_set_irq_type() 93 gpio->irq_type[data->hwirq] = irq_type; in max77620_gpio_set_irq_type() 113 value = gpio->irq_enabled[offset] ? gpio->irq_type[offset] : 0; in max77620_gpio_bus_sync_unlock()
|
| H A D | gpio-xlp.c | 142 int pol, irq_type; in xlp_gpio_set_irq_type() local 146 irq_type = XLP_GPIO_IRQ_TYPE_EDGE; in xlp_gpio_set_irq_type() 150 irq_type = XLP_GPIO_IRQ_TYPE_EDGE; in xlp_gpio_set_irq_type() 154 irq_type = XLP_GPIO_IRQ_TYPE_LVL; in xlp_gpio_set_irq_type() 158 irq_type = XLP_GPIO_IRQ_TYPE_LVL; in xlp_gpio_set_irq_type() 165 xlp_gpio_set_reg(priv->gpio_intr_type, d->hwirq, irq_type); in xlp_gpio_set_irq_type()
|
| H A D | gpio-dln2.c | 60 int irq_type[DLN2_GPIO_MAX_PINS]; member 331 dln2->irq_type[pin] = DLN2_GPIO_EVENT_LVL_HIGH; in dln2_irq_set_type() 334 dln2->irq_type[pin] = DLN2_GPIO_EVENT_LVL_LOW; in dln2_irq_set_type() 337 dln2->irq_type[pin] = DLN2_GPIO_EVENT_CHANGE; in dln2_irq_set_type() 340 dln2->irq_type[pin] = DLN2_GPIO_EVENT_CHANGE_RISING; in dln2_irq_set_type() 343 dln2->irq_type[pin] = DLN2_GPIO_EVENT_CHANGE_FALLING; in dln2_irq_set_type() 374 type = dln2->irq_type[pin] & DLN2_GPIO_EVENT_MASK; in dln2_irq_bus_unlock() 424 switch (dln2->irq_type[pin]) { in dln2_gpio_event()
|
| H A D | gpio-mockup.c | 155 int curr, irq, irq_type, ret = 0; in gpio_mockup_apply_pull() local 174 irq_type = irq_get_trigger_type(irq); in gpio_mockup_apply_pull() 176 if ((value == 1 && (irq_type & IRQ_TYPE_EDGE_RISING)) || in gpio_mockup_apply_pull() 177 (value == 0 && (irq_type & IRQ_TYPE_EDGE_FALLING))) { in gpio_mockup_apply_pull()
|
| /linux/drivers/regulator/ |
| H A D | tps65219-regulator.c | 404 struct tps65219_regulator_irq_type *irq_type; in tps65219_regulator_probe() local 440 irq_type = &pmic->common_irq_types[i]; in tps65219_regulator_probe() 441 irq = platform_get_irq_byname(pdev, irq_type->irq_name); in tps65219_regulator_probe() 450 irq_data->type = irq_type; in tps65219_regulator_probe() 454 irq_type->irq_name, in tps65219_regulator_probe() 459 irq_type->irq_name, irq); in tps65219_regulator_probe() 463 irq_type = &pmic->irq_types[i]; in tps65219_regulator_probe() 464 irq = platform_get_irq_byname(pdev, irq_type->irq_name); in tps65219_regulator_probe() 473 irq_data->type = irq_type; in tps65219_regulator_probe() 477 irq_type->irq_name, in tps65219_regulator_probe() [all …]
|
| /linux/drivers/extcon/ |
| H 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()
|
| H A D | extcon-sm5502.c | 70 int (*parse_irq)(struct sm5502_muic_info *info, int irq_type); 554 static int sm5502_parse_irq(struct sm5502_muic_info *info, int irq_type) in sm5502_parse_irq() argument 556 switch (irq_type) { in sm5502_parse_irq() 582 static int sm5504_parse_irq(struct sm5502_muic_info *info, int irq_type) in sm5504_parse_irq() argument 584 switch (irq_type) { in sm5504_parse_irq() 613 int i, irq_type = -1, ret; in sm5502_muic_irq_handler() local 617 irq_type = info->type->muic_irqs[i].irq; in sm5502_muic_irq_handler() 619 ret = info->type->parse_irq(info, irq_type); in sm5502_muic_irq_handler() 622 irq_type); in sm5502_muic_irq_handler()
|
| H A D | extcon-rt8973a.c | 447 int i, irq_type = -1; in rt8973a_muic_irq_handler() local 451 irq_type = info->muic_irqs[i].irq; in rt8973a_muic_irq_handler() 453 switch (irq_type) { in rt8973a_muic_irq_handler() 479 "Cannot handle this interrupt (%d)\n", irq_type); in rt8973a_muic_irq_handler()
|
| H A D | extcon-max8997.c | 512 int irq_type = 0; in max8997_muic_irq_work() local 522 irq_type = muic_irqs[i].irq; in max8997_muic_irq_work() 532 switch (irq_type) { in max8997_muic_irq_work() 553 irq_type); in max8997_muic_irq_work()
|
| /linux/drivers/staging/greybus/ |
| H A D | gpio.c | 28 u8 irq_type; member 295 u8 irq_type; in gb_gpio_irq_set_type() local 299 irq_type = GB_GPIO_IRQ_TYPE_NONE; in gb_gpio_irq_set_type() 302 irq_type = GB_GPIO_IRQ_TYPE_EDGE_RISING; in gb_gpio_irq_set_type() 305 irq_type = GB_GPIO_IRQ_TYPE_EDGE_FALLING; in gb_gpio_irq_set_type() 308 irq_type = GB_GPIO_IRQ_TYPE_EDGE_BOTH; in gb_gpio_irq_set_type() 311 irq_type = GB_GPIO_IRQ_TYPE_LEVEL_LOW; in gb_gpio_irq_set_type() 314 irq_type = GB_GPIO_IRQ_TYPE_LEVEL_HIGH; in gb_gpio_irq_set_type() 321 line->irq_type = irq_type; in gb_gpio_irq_set_type() 342 _gb_gpio_irq_set_type(ggc, d->hwirq, line->irq_type); in gb_gpio_irq_bus_sync_unlock()
|
| /linux/arch/um/os-Linux/ |
| H 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/imu/bmi160/ |
| H A D | bmi160_core.c | 661 static int bmi160_config_device_irq(struct iio_dev *indio_dev, int irq_type, in bmi160_config_device_irq() argument 670 if (irq_type == IRQF_TRIGGER_RISING) in bmi160_config_device_irq() 672 else if (irq_type == IRQF_TRIGGER_FALLING) in bmi160_config_device_irq() 674 else if (irq_type == IRQF_TRIGGER_HIGH) in bmi160_config_device_irq() 676 else if (irq_type == IRQF_TRIGGER_LOW) in bmi160_config_device_irq() 680 "Invalid interrupt type 0x%x specified\n", irq_type); in bmi160_config_device_irq() 693 u32 irq_type = irq_get_trigger_type(irq); in bmi160_setup_irq() local 696 ret = bmi160_config_device_irq(indio_dev, irq_type, pin); in bmi160_setup_irq() 700 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/drivers/vfio/pci/ |
| H A D | vfio_pci_intrs.c | 37 return vdev->irq_type == type; in irq_is() 42 return vdev->irq_type == VFIO_PCI_INTX_IRQ_INDEX; in is_intx() 47 return !(vdev->irq_type == VFIO_PCI_INTX_IRQ_INDEX || in is_irq_none() 48 vdev->irq_type == VFIO_PCI_MSI_IRQ_INDEX || in is_irq_none() 49 vdev->irq_type == VFIO_PCI_MSIX_IRQ_INDEX); in is_irq_none() 305 vdev->irq_type = VFIO_PCI_INTX_IRQ_INDEX; in vfio_intx_enable() 315 vdev->irq_type = VFIO_PCI_NUM_IRQS; in vfio_intx_enable() 367 vdev->irq_type = VFIO_PCI_NUM_IRQS; in vfio_intx_disable() 402 vdev->irq_type = msix ? VFIO_PCI_MSIX_IRQ_INDEX : in vfio_msi_enable() 577 vdev->irq_type = VFIO_PCI_NUM_IRQS; in vfio_msi_disable() [all …]
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_crtc.c | 308 int irq_type; in amdgpu_dm_crtc_set_vblank() local 318 irq_type = amdgpu_display_crtc_idx_to_irq_type(adev, acrtc->crtc_id); in amdgpu_dm_crtc_set_vblank() 357 rc = amdgpu_irq_get(adev, &adev->crtc_irq, irq_type); in amdgpu_dm_crtc_set_vblank() 360 rc = amdgpu_irq_put(adev, &adev->crtc_irq, irq_type); in amdgpu_dm_crtc_set_vblank() 376 rc = amdgpu_irq_get(adev, &adev->pageflip_irq, irq_type); in amdgpu_dm_crtc_set_vblank() 379 rc = amdgpu_irq_put(adev, &adev->pageflip_irq, irq_type); in amdgpu_dm_crtc_set_vblank() 390 rc = amdgpu_irq_get(adev, &adev->vline0_irq, irq_type); in amdgpu_dm_crtc_set_vblank() 393 rc = amdgpu_irq_put(adev, &adev->vline0_irq, irq_type); in amdgpu_dm_crtc_set_vblank()
|
| /linux/drivers/input/touchscreen/ |
| H A D | novatek-nvt-ts.c | 200 int error, width, height, irq_type; in nvt_ts_probe() local 259 irq_type = data->buf[NVT_TS_PARAMS_IRQ_TYPE]; in nvt_ts_probe() 263 irq_type >= ARRAY_SIZE(nvt_ts_irq_type) || in nvt_ts_probe() 300 nvt_ts_irq_type[irq_type], in nvt_ts_probe()
|
| /linux/drivers/irqchip/ |
| H A D | irq-sg2042-msi.c | 45 unsigned int irq_type; member 142 fwspec.param[1] = data->irq_type; in sg204x_msi_parent_domain_alloc() 149 return d->chip->irq_set_type(d, data->irq_type); in sg204x_msi_parent_domain_alloc() 303 data->irq_type = (unsigned int)args.args[1]; in sg2042_msi_probe()
|
| /linux/drivers/iio/pressure/ |
| H A D | mpl3115.c | 627 int ret, irq, irq_type, irq_pin = MPL3115_IRQ_INT1; in mpl3115_trigger_probe() local 638 irq_type = irq_get_trigger_type(irq); in mpl3115_trigger_probe() 639 if (irq_type != IRQF_TRIGGER_RISING && irq_type != IRQF_TRIGGER_FALLING) in mpl3115_trigger_probe() 654 if (irq_type == IRQF_TRIGGER_RISING) { in mpl3115_trigger_probe() 661 } else if (irq_type == IRQF_TRIGGER_RISING) { in mpl3115_trigger_probe()
|
| /linux/drivers/net/ieee802154/ |
| H 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/ |
| H A D | pinctrl-owl.c | 670 unsigned int offset, value, irq_type = 0; in irq_set_type() local 681 irq_type = OWL_GPIO_INT_EDGE_FALLING; in irq_set_type() 683 irq_type = OWL_GPIO_INT_EDGE_RISING; in irq_set_type() 687 irq_type = OWL_GPIO_INT_EDGE_RISING; in irq_set_type() 691 irq_type = OWL_GPIO_INT_EDGE_FALLING; in irq_set_type() 695 irq_type = OWL_GPIO_INT_LEVEL_HIGH; in irq_set_type() 699 irq_type = OWL_GPIO_INT_LEVEL_LOW; in irq_set_type() 717 value |= irq_type << ((gpio % 16) * 2); in irq_set_type()
|
| /linux/drivers/iio/imu/inv_icm45600/ |
| H A D | inv_icm45600_core.c | 614 int irq_type, bool open_drain) in inv_icm45600_irq_init() argument 621 switch (irq_type) { in inv_icm45600_irq_init() 631 switch (irq_type) { in inv_icm45600_irq_init() 648 inv_icm45600_irq_handler, irq_type | IRQF_ONESHOT, in inv_icm45600_irq_init() 694 int irq, irq_type; in inv_icm45600_core_probe() local 704 irq_type = irq_get_trigger_type(irq); in inv_icm45600_core_probe() 775 ret = inv_icm45600_irq_init(st, irq, irq_type, open_drain); in inv_icm45600_core_probe()
|
| /linux/drivers/pinctrl/starfive/ |
| H A D | pinctrl-starfive-jh7110.c | 775 u32 irq_type, edge_both, polarity; in jh7110_irq_set_type() local 780 irq_type = mask; /* 1: edge triggered */ in jh7110_irq_set_type() 785 irq_type = mask; /* 1: edge triggered */ in jh7110_irq_set_type() 790 irq_type = mask; /* 1: edge triggered */ in jh7110_irq_set_type() 795 irq_type = 0; /* 0: level triggered */ in jh7110_irq_set_type() 800 irq_type = 0; /* 0: level triggered */ in jh7110_irq_set_type() 814 irq_type |= readl_relaxed(base + irq_reg->is_reg_base) & ~mask; in jh7110_irq_set_type() 815 writel_relaxed(irq_type, base + irq_reg->is_reg_base); in jh7110_irq_set_type()
|
| /linux/rust/kernel/pci/ |
| H A D | irq.rs | 64 pub const fn with(self, irq_type: IrqType) -> Self { in with() 65 Self(self.0 | irq_type.as_raw()) in with()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_fence.c | 417 unsigned int irq_type) in amdgpu_fence_driver_start_ring() argument 434 ring->fence_drv.irq_type = irq_type; in amdgpu_fence_driver_start_ring() 564 ring->fence_drv.irq_type); in amdgpu_fence_driver_hw_fini() 641 ring->fence_drv.irq_type); in amdgpu_fence_driver_hw_init()
|